FujiSPHNetReadAsync 方法 (String, UInt16) |
批量读取PLC的地址数据,长度单位为字。地址支持M1.1000,M3.1000,M10.1000,返回读取的原始字节数组。
Read PLC address data in batches, the length unit is words. The address supports M1.1000, M3.1000, M10.1000,
and returns the original byte array read.
命名空间:
HslCommunication.Profinet.Fuji
程序集:
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
PLC的地址,支持M1.1000,M3.1000,M10.1000 - length
- 类型:SystemUInt16
读取的长度信息,按照字为单位
返回值
类型:
TaskOperateResultByte包含byte[]的原始字节数据内容
实现
IReadWriteNetReadAsync(String, UInt16)参见