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.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<byte[]>> ReadAsync(
IReadWriteDevice keyence,
string address,
ushort length
)
Public Shared Function ReadAsync (
keyence As IReadWriteDevice,
address As String,
length As UShort
) As Task(Of OperateResult(Of Byte()))
public:
static Task<OperateResult<array<unsigned char>^>^>^ ReadAsync(
IReadWriteDevice^ keyence,
String^ address,
unsigned short length
)
static member ReadAsync :
keyence : IReadWriteDevice *
address : string *
length : uint16 -> Task<OperateResult<byte[]>>
参数
- 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
参见