LSCnetReadAsync 方法 (String) |
从PLC设备读取多个地址的数据信息,返回连续的字节数组,需要按照实际情况进行按顺序解析。
Read the data information of multiple addresses from the PLC device and return a continuous byte array, which needs to be parsed in order according to the actual situation.
命名空间:
HslCommunication.Profinet.LSIS
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<byte[]>> ReadAsync(
string[] address
)
Public Function ReadAsync (
address As String()
) As Task(Of OperateResult(Of Byte()))
public:
Task<OperateResult<array<unsigned char>^>^>^ ReadAsync(
array<String^>^ address
)
member ReadAsync :
address : string[] -> Task<OperateResult<byte[]>>
参数
- address
- 类型:SystemString
PLC的地址信息,例如 M100, MB100, MW100, MD100
返回值
类型:
TaskOperateResultByte结果对象数据
备注 按照每16个地址长度进行自动的切割,支持任意的多的长度地址
参见