点击或拖拽改变大小

OmronFinsNetHelper.ReadAsync 方法 (IOmronFins, String, UInt16, Int32)

从欧姆龙PLC中读取想要的数据,返回读取结果,读取长度的单位为字,地址格式为"D100","C100","W100","H100","A100"
Read the desired data from the Omron PLC and return the read result. The unit of the read length is word. The address format is "D100", "C100", "W100", "H100", "A100"

命名空间:  HslCommunication.Profinet.Omron
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.3.1.0 (12.3.1.0)
语法
public static Task<OperateResult<byte[]>> ReadAsync(
	IOmronFins omron,
	string address,
	ushort length,
	int splits
)

参数

omron
类型:HslCommunication.Profinet.Omron.Helper.IOmronFins
PLC设备的连接对象
address
类型:System.String
读取地址,格式为"D100","C100","W100","H100","A100"
length
类型:System.UInt16
读取的数据长度
splits
类型:System.Int32
分割信息

返回值

类型:Task<OperateResult<Byte[]>>
带成功标志的结果数据对象
参见