FanucInterfaceNetReadAsync 方法 (Byte, UInt16, UInt16) |
按照字为单位批量读取设备的原始数据,需要指定数据块地址,偏移地址及长度,主要针对08, 10, 12的数据块,注意地址的起始为1
Read the raw data of the device in batches in units of words. You need to specify the data block address, offset address, and length. It is mainly for data blocks of 08, 10, and 12. Note that the start of the address is 1.
命名空间:
HslCommunication.Robot.FANUC
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<byte[]>> ReadAsync(
byte select,
ushort address,
ushort length
)
Public Function ReadAsync (
select As Byte,
address As UShort,
length As UShort
) As Task(Of OperateResult(Of Byte()))
public:
Task<OperateResult<array<unsigned char>^>^>^ ReadAsync(
unsigned char select,
unsigned short address,
unsigned short length
)
member ReadAsync :
select : byte *
address : uint16 *
length : uint16 -> Task<OperateResult<byte[]>>
参数
- select
- 类型:SystemByte
数据块信息 - address
- 类型:SystemUInt16
偏移地址 - length
- 类型:SystemUInt16
读取的长度,字为单位
返回值
类型:
TaskOperateResultByte[缺少 "M:HslCommunication.Robot.FANUC.FanucInterfaceNet.ReadAsync(System.Byte,System.UInt16,System.UInt16)" 的 <returns> 文档]
参见