点击或拖拽改变大小

SiemensS7NetReadAsync 方法

重载列表
  名称说明
公共方法代码示例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.
(继承自 NetworkDeviceBase。)
公共方法ReadAsync(S7AddressData)
读取西门子的地址数据信息,支持任意个数的数据读取
Read Siemens address data information, support any number of data reading
公共方法代码示例ReadAsync(String, UInt16)
从PLC读取原始的字节数据,地址格式为I100,Q100,DB20.100,M100,长度参数以字节为单位
Read the original byte data from the PLC, the address format is I100, Q100, DB20.100, M100, length parameters in bytes
(重写 NetworkDeviceBaseReadAsync(String, UInt16).)
公共方法代码示例ReadAsync(String, UInt16)
一次性从PLC获取所有的数据,按照先后顺序返回一个统一的Buffer,需要按照顺序处理,两个数组长度必须一致,数组长度无限制
One-time from the PLC to obtain all the data, in order to return a unified buffer, need to be processed sequentially, two array length must be consistent
Top
参见