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