BeckhoffAdsNetRead 方法 |
名称 | 说明 | |
---|---|---|
ReadT |
读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考api文档说明,或是官网的详细文档 (重写 DeviceCommunicationReadT.)Read the data content of the Hsl attribute. The attribute is HslDeviceAddressAttribute, please refer to the api documentation for details. | |
Read(String, UInt16) |
读取PLC的数据,地址共有三种格式,一:I,Q,M数据信息,举例M0,M100;二:内存地址,i=100000;三:标签地址,s=A (重写 DeviceCommunicationRead(String, UInt16).)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 | |
Read(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. |