OmronFinsNetHelperReadAsync 方法 (IOmronFins, String) |
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.2.0.0 (12.2.0.0)
语法 public static Task<OperateResult<byte[]>> ReadAsync(
IOmronFins omron,
string[] address
)
Public Shared Function ReadAsync (
omron As IOmronFins,
address As String()
) As Task(Of OperateResult(Of Byte()))
public:
static Task<OperateResult<array<unsigned char>^>^>^ ReadAsync(
IOmronFins^ omron,
array<String^>^ address
)
static member ReadAsync :
omron : IOmronFins *
address : string[] -> Task<OperateResult<byte[]>>
参数
- omron
- 类型:HslCommunication.Profinet.Omron.HelperIOmronFins
PLC设备的连接对象 - address
- 类型:SystemString
从欧姆龙PLC中读取多个地址的数据,返回读取结果,每个地址按照字为单位读取,地址格式为"D100","C100","W100","H100","A100"
返回值
类型:
TaskOperateResultByte带成功标志的结果数据对象
参见