DeviceCommunicationBuildDeviceReadCommand 方法 |
根据输入的地址,长度信息构建一个读取数据的报文命令
命名空间:
HslCommunication.Core.Device
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.9.1.0 (12.9.1.0)
语法protected virtual OperateResult<List<byte[]>> BuildDeviceReadCommand(
string address,
ushort length,
bool isBit
)
Protected Overridable Function BuildDeviceReadCommand (
address As String,
length As UShort,
isBit As Boolean
) As OperateResult(Of List(Of Byte()))
protected:
virtual OperateResult<List<array<unsigned char>^>^>^ BuildDeviceReadCommand(
String^ address,
unsigned short length,
bool isBit
)
abstract BuildDeviceReadCommand :
address : string *
length : uint16 *
isBit : bool -> OperateResult<List<byte[]>>
override BuildDeviceReadCommand :
address : string *
length : uint16 *
isBit : bool -> OperateResult<List<byte[]>> 参数
- address
- 类型:SystemString
输入的地址 - length
- 类型:SystemUInt16
读取的长度信息 - isBit
- 类型:SystemBoolean
是否位操作
返回值
类型:
OperateResultListByte等待发送的命令报文
参见