点击或拖拽改变大小

AllenBradleyNetRead 方法

重载列表
  名称说明
公共方法代码示例ReadT
读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考api文档说明,或是官网的详细文档
Read the data content of the Hsl attribute. The attribute is HslDeviceAddressAttribute, please refer to the api documentation for details.
(继承自 DeviceCommunication。)
公共方法Read(String)
[商业授权] 批量读取多地址的数据信息,例如我可以读取两个标签的数据 "A","B[0]",每个地址的数据长度为1,表示一个数据,最终读取返回的是一整个的字节数组,需要自行解析
[Authorization] Batch read data information of multiple addresses, for example, I can read the data of two tags "A", "B[0]", the data length of each address is 1, which means one data, and the final read returns a The entire byte array, which needs to be parsed by itself
公共方法Read(String, UInt16)
读取指定地址的二进制数据内容,长度为地址长度,一般都是1,除非读取数组时,如果需要强制使用 片段读取功能码,则地址里携带 x=0x52; 或是 x=82; 则强制使用片段读取。
Read the binary data content of the specified address, the length is the address length, generally 1, unless the array is read, if you need to force the fragment reading function code, the address carries x=0x52; or x=82; then the fragment read is forced.
(重写 DeviceCommunicationRead(String, UInt16).)
公共方法Read(String, UInt16)
[商业授权] 批量读取多地址的数据信息,例如我可以读取两个标签的数据 "A","B[0]", 长度为 [1, 5],返回的是一整个的字节数组,需要自行解析
[Authorization] Read the data information of multiple addresses in batches. For example, I can read the data "A", "B[0]" of two tags, the length is [1, 5], and the return is an entire byte array, and I need to do it myself Parsing
Top
参见