- 1、本文档共14页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
BECKHOFF技术_ADS通讯_V2概要1
ADS通讯 BECKHOFF技术特点 ADS通讯 BECKHOFF技术特点 内容 1,什么是ADS通讯 2,ADS通讯的架构 3,ADS通讯的机制 4,数据包的格式 5,ADS指令 6,典型的ADS设备 7,非典型的ADS设备 8,典型ADS设备变量寻址 9,ADS通讯的形式 10,TWINCAT之间的通讯 11,与高级语言之间的通讯 12,PLC变量的ADS寻址 什么是ADS通讯 The Automation Device Specification describes a device-independent and fieldbus-independent interface governing the type of access to ADS devices. The ADS interface permits: communication with other ADS devices implementation of an ADS device An object that has implemented the ADS interface (thus being accessible via ADS) and that offers server services, is known as an ADS device. The detailed meaning of an ADS service is specific to each ADS device, and is described in the relevant ADS device documentation ADS通讯的架构 ADS的通讯机制 ADS-Client ADS-Server Request - - Indication Confirmation - - Response ADS 通讯分为Asynchronous、synchronous和Notification。 PLC中调用的ADS读写指令均为Asynchronous方式,就算在同一硬件上的两个ADS设备之间通讯,也至少需要3个PLC周期。如果在局域网通讯,通讯时间还受网络的繁忙程度影响力。 通讯诊断工具ADS-Monitor ,可以从这个网址下载: /download/Software/TwinCAT/TwinCAT2/Unsupported Utilities/AdsMonitor/ ADS数据包的格式 Data array Size Description AMS/TCP Header 6 bytes 数据包的长度 AMS Header 32 bytes AMS/TCP-Header 包括发送方和接收方的地址. 错误代码、以及指令码和其它信息 ADS Data n bytes ADS data 包括一个ADS指令需要的参数 ADS指令 Command Description ADS Read Device Info Reads the name and the version number of the ADS device. ADS Read With ADS Read data can be read from an ADS device ADS Write With ADS Write data can be written to an ADS device. ADS Read State Reads the ADS status and the device status of an ADS device. ADS Write Control Changes the ADS status and the device status of an ADS device. ADS Add Device Notification A notification is created in an ADS device. ADS Delete Device Notification One before defined notification is deleted in an ADS device. ADS Device Notification Data will carry forward independently from an ADS device to a Client ADS Read Write With ADS Read Write data will be written to an ADS device. Additionally, data can be read from the ADS device. 典型ADS设备 TwinCat 控
文档评论(0)