SiemensS7NetRead 方法 |
名称 | 说明 | |
---|---|---|
ReadT |
读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考api文档说明,或是官网的详细文档 (继承自 DeviceCommunication。)Read the data content of the Hsl attribute. The attribute is HslDeviceAddressAttribute, please refer to the api documentation for details. | |
Read(S7AddressData) |
读取西门子的地址数据信息,支持任意个数的数据读取 Read Siemens address data information, support any number of data reading | |
Read(String, UInt16) |
从PLC读取原始的字节数据,地址格式为I100,Q100,DB20.100,M100,长度参数以字节为单位 (重写 DeviceCommunicationRead(String, UInt16).)Read the original byte data from the PLC, the address format is I100, Q100, DB20.100, M100, length parameters in bytes | |
Read(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 |