CJT188OverTcpRead 方法 (String, UInt16) |
根据指定的数据标识来读取相关的原始数据信息,地址标识根据手册来,从高位到地位,例如 91-1F,分割符可以任意特殊字符或是没有分隔符。
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 91-1F. The separator can be any special character or no separator.
命名空间:
HslCommunication.Instrument.CJT
程序集:
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;90-1F" 或是 "s=100000;90-1F",关于数据域信息,需要查找手册,例如:D1-20 表示: 上一月结算日累积流量
参见