OmronConnectedCipNetRead 方法 (String, UInt16) |
[商业授权] 批量读取多地址的数据信息,例如我可以读取两个标签的数据 "A","B[0]", 长度为 [1, 5],返回的是一整个的字节数组,需要自行解析
[Authorization] Read the data information of multiple addresses in batches. For example, I can read the data "A", "B[0]" of two tags,
the length is [1, 5], and the return is an entire byte array, and I need to do it myself Parsing
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<byte[]> Read(
string[] address,
ushort[] length
)
Public Function Read (
address As String(),
length As UShort()
) As OperateResult(Of Byte())
public:
OperateResult<array<unsigned char>^>^ Read(
array<String^>^ address,
array<unsigned short>^ length
)
member Read :
address : string[] *
length : uint16[] -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
节点的名称 -> Name of the node - length
- 类型:SystemUInt16
如果是数组,就为数组长度 -> In the case of arrays, the length of the array
返回值
类型:
OperateResultByte带有结果对象的结果数据 -> Result data with result object
参见