FanucInterfaceNetReadAsync 方法 (String, UInt16) |
按照字为单位批量读取设备的原始数据,需要指定地址及长度,地址示例:D1,AI1,AQ1,共计3个区的数据,注意地址的起始为1
Read the raw data of the device in batches in units of words. You need to specify the address and length. Example addresses: D1, AI1, AQ1, a total of 3 areas of data. Note that the start of the address is 1.
命名空间:
HslCommunication.Robot.FANUC
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override Task<OperateResult<byte[]>> ReadAsync(
string address,
ushort length
)
Public Overrides Function ReadAsync (
address As String,
length As UShort
) As Task(Of OperateResult(Of Byte()))
public:
virtual Task<OperateResult<array<unsigned char>^>^>^ ReadAsync(
String^ address,
unsigned short length
) override
abstract ReadAsync :
address : string *
length : uint16 -> Task<OperateResult<byte[]>>
override ReadAsync :
address : string *
length : uint16 -> Task<OperateResult<byte[]>>
参数
- address
- 类型:SystemString
起始地址,地址示例:D1,AI1,AQ1,共计3个区的数据,注意起始的起始为1 - length
- 类型:SystemUInt16
读取的长度,字为单位
返回值
类型:
TaskOperateResultByte返回的数据信息结果
实现
IReadWriteNetReadAsync(String, UInt16)IReadWriteNetReadAsync(String, UInt16)备注
地址也支持直接使用 GO100, GI100
参见