LSCnetOverTcpRead 方法 (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 OperateResult<byte[]> Read(
string[] address
)
Public Function Read (
address As String()
) As OperateResult(Of Byte())
public:
OperateResult<array<unsigned char>^>^ Read(
array<String^>^ address
)
member Read :
address : string[] -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
PLC的地址信息,例如 M100, MB100, MW100, MD100
返回值
类型:
OperateResultByte结果对象数据
备注 按照每16个地址长度进行自动的切割,支持任意的多的长度地址
参见