根据指定的数据标识来读取相关的原始数据信息,地址标识根据手册来,从高位到地位,例如 00-00-00-00,分割符可以任意特殊字符或是没有分隔符。
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 00-00-00-00. The separator can be any special character or no separator.
命名空间:
HslCommunication.Instrument.DLT.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<byte[]>> ReadAsync(
IDlt645 dlt,
string address,
ushort length
)
Public Shared Function ReadAsync (
dlt As IDlt645,
address As String,
length As UShort
) As Task(Of OperateResult(Of Byte()))
public:
static Task<OperateResult<array<unsigned char>^>^>^ ReadAsync(
IDlt645^ dlt,
String^ address,
unsigned short length
)
static member ReadAsync :
dlt : IDlt645 *
address : string *
length : uint16 -> Task<OperateResult<byte[]>>
参数
- dlt
- 类型:HslCommunication.Instrument.DLT.HelperIDlt645
DLT通信对象 - address
- 类型:SystemString
数据标识,具体需要查找手册来对应 - length
- 类型:SystemUInt16
数据长度信息
返回值
类型:
TaskOperateResultByte结果信息
备注
地址可以携带地址域信息,例如 "s=2;00-00-00-00" 或是 "s=100000;00-00-02-00",关于数据域信息,需要查找手册,例如:00-01-00-00 表示: (当前)正向有功总电能
参见