CANBus功能介绍与使用指南.pdfVIP

  • 0
  • 0
  • 约1.76千字
  • 约 6页
  • 2026-02-05 发布于北京
  • 举报

一.CANBus介绍

1.目前显控AK系列触摸屏,支持CANBus的基本读写功能,数据的接收、发送。

目前不支持CanOpen协议。

2.型号

凡是AK-**AC的触摸屏都带CANBus功能,例如AK-070AC,AK-043AC;

二.CANBus功能使用

CANBus所有设置,和数据的接收发送,都通过来实现。

1.创建工程,打开AKWorkShop,点击“文件”,“新建工程”创建一个工程

2.点击左边“系统参数”-“”,在“”右键选择“添加”

例如:库名称填写Can_Start(备注:名称自己设定)

3.添加CANBus设置命令

4.启动和设置CANBus

5.同理添加接收

6.同理添加发送

7.根据自己需要,添加全局,或其他,全局表示一直运行

例如:

(备注:由于Can_dump里有while循环不会,会一直执行,所以只

需执行一次)

1.CANBusI

ntroduction

1.Currently,theAKseriestouchscreenssupportthebasicreadandwritefunctionsofCANBus,

includngdatareceptioniandtransmission.TheydonotcurrentlysupporttheCanOpenprotocol.

.MK-*reequippedwithCANBusfunctionality,forexample

2odelAllA*ACtouchscreensa

K-070A,AK-043AC;

AC

.C

2ANBusFunctionUsage

CANBusallsettings,anddatareceptionandtransmission,areimplementedt

ro

hughscripts.

ateaproject,

1.CreopenAKWorkShop,click“File”,“NewProject”tocreateanewproject

2.Clickon“SystemParameters”-“Script”ontheleft,right-clickon“Script”andselect

ddScript”.Forexample,enterthelibrarynameasC_setthe

“AanStart(Note:Youcan

nameyourself)

3AddCANBusconfigurationcommands.

4.StartandconfigureCANBus

5.Similarly,Add

Reception

6.Similarly,Add

Sending

7.Accordingtoyourneeds,addglobalscriptsorotherscripts.Globalindicates

thatitwillruncontinuously,forexample:

_

(Note:SinceCandumpcontainsawhileloop,thescriptwillnotexitandwillcontinueto

run,soitonlyneedstobeexecutedonce)

文档评论(0)

1亿VIP精品文档

相关文档