DLT645With1997OverTcpRead 方法 (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 OperateResult<byte[]> Read(
string address,
ushort length
)
Public Overrides Function Read (
address As String,
length As UShort
) As OperateResult(Of Byte())
public:
virtual OperateResult<array<unsigned char>^>^ Read(
String^ address,
unsigned short length
) override
abstract Read :
address : string *
length : uint16 -> OperateResult<byte[]>
override Read :
address : string *
length : uint16 -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
数据标识,具体需要查找手册来对应 - length
- 类型:SystemUInt16
数据长度信息
返回值
类型:
OperateResultByte结果信息
实现
IReadWriteNetRead(String, UInt16)IReadWriteNetRead(String, UInt16)备注
地址可以携带地址域信息,例如 "s=2;B6-11" 或是 "s=100000;B6-11",关于数据域信息,需要查找手册,例如:B6-30 表示: (当前)正向有功总电能
参见