点击或拖拽改变大小

BeckhoffAdsNetReadAsync 方法

重载列表
  名称说明
公共方法代码示例ReadAsyncT
异步读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考api文档说明
Asynchronously read the data content of the Hsl attribute. The attribute is HslDeviceAddressAttribute, please refer to the api documentation for details.
(重写 DeviceCommunicationReadAsyncT.)
公共方法ReadAsync(String, UInt16)
读取PLC的数据,地址共有三种格式,一:I,Q,M数据信息,举例M0,M100;二:内存地址,i=100000;三:标签地址,s=A
Read PLC data, there are three formats of address, one: I, Q, M data information, such as M0, M100; two: memory address, i = 100000; three: tag address, s = A
(重写 DeviceCommunicationReadAsync(String, UInt16).)
公共方法ReadAsync(String, UInt16)
批量读取PLC的数据,需要传入地址数组,以及读取的长度数组信息,长度单位为字节单位,如果是读取bool变量的,则以bool为单位,统一返回一串字节数据信息,需要进行二次解析的操作。
To read PLC data in batches, you need to pass in the address array and the read length array information. The unit of length is in bytes. If you read a bool variable, it will return a string of byte data information in units of bool. , which requires a secondary parsing operation.
Top
参见