点击或拖拽改变大小

XGBCnetRead 方法 (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.0.0.0 (12.0.0.0)
语法
public OperateResult<byte[]> Read(
	string[] address
)

参数

address
类型:SystemString
PLC的地址信息,例如 M100, MB100, MW100, MD100

返回值

类型:OperateResultByte
结果对象数据
备注
按照每16个地址长度进行自动的切割,支持任意的多的长度地址
参见