DLT645With1997OverTcpReadAsync 方法 (String, UInt16) |
根据指定的数据标识来读取相关的原始数据信息,地址标识根据手册来,从高位到地位,例如 B6-11,分割符可以任意特殊字符或是没有分隔符。
Read the relevant original data information according to the specified data identifier. The address identifier is based on the manual,
from high to position, such as B6-11. The separator can be any special character or no separator.
命名空间:
HslCommunication.Instrument.DLT
程序集:
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
数据标识,具体需要查找手册来对应 - length
- 类型:SystemUInt16
数据长度信息
返回值
类型:
TaskOperateResultByte结果信息
实现
IReadWriteNetReadAsync(String, UInt16)IReadWriteNetReadAsync(String, UInt16)备注
地址可以携带地址域信息,例如 "s=2;B6-11" 或是 "s=100000;B6-11",关于数据域信息,需要查找手册,例如:B6-30 表示: (当前)正向有功总电能
参见