点击或拖拽改变大小

KeyenceNanoHelperReadAsync 方法

批量读取字节数组信息,需要指定地址和长度,返回原始的字节数组
Batch read byte array information, need to specify the address and length, return the original byte array

命名空间:  HslCommunication.Profinet.Keyence
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static Task<OperateResult<byte[]>> ReadAsync(
	IReadWriteDevice keyence,
	string address,
	ushort length
)

参数

keyence
类型:HslCommunication.CoreIReadWriteDevice

[缺少 "M:HslCommunication.Profinet.Keyence.KeyenceNanoHelper.ReadAsync(HslCommunication.Core.IReadWriteDevice,System.String,System.UInt16)" 的 <param name="keyence"/> 文档]

address
类型:SystemString
数据地址
length
类型:SystemUInt16
数据长度

返回值

类型:TaskOperateResultByte
带有成功标识的byte[]数组
备注
地址支持读取扩展单元缓冲存储器的数据,例如读取扩展单元号1,地址100的数据,地址写为 unit=1;100
The address supports reading the data in the buffer memory of the expansion unit, such as reading the data of the expansion unit number 1, address 100, and the address is written as unit=1;100
参见