OmronHostLinkOverTcpRead 方法 (String) |
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
命名空间:
HslCommunication.Profinet.Omron
程序集:
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中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
返回值
类型:
OperateResultByte带成功标志的结果数据对象
备注
如果需要需要额外指定站号的话,在第一个地址里,使用 s=2;D100 这种携带地址的功能
参见