| ModbusInfoBuildReadModbusCommand 方法 (ModbusAddress, Int32, Int32) | 
 
            构建Modbus读取数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码应该根据bool或是字来区分
            To construct the core message of Modbus reading data, you need to specify the address, length, station number, 
            whether the starting address is 0, and the default function code should be distinguished according to bool or word
            
 
        命名空间: 
     HslCommunication.ModBus
        程序集:
     HslCommunication (在 HslCommunication.dll 中) 版本:12.5.1.0 (12.5.1.0)
 语法
语法public static OperateResult<byte[][]> BuildReadModbusCommand(
	ModbusAddress mAddress,
	int length,
	int cuttingBatchLength
)
Public Shared Function BuildReadModbusCommand ( 
	mAddress As ModbusAddress,
	length As Integer,
	cuttingBatchLength As Integer
) As OperateResult(Of Byte()())
public:
static OperateResult<array<array<unsigned char>^>^>^ BuildReadModbusCommand(
	ModbusAddress^ mAddress, 
	int length, 
	int cuttingBatchLength
)
static member BuildReadModbusCommand : 
        mAddress : ModbusAddress * 
        length : int * 
        cuttingBatchLength : int -> OperateResult<byte[][]> 
参数
- mAddress
- 类型:HslCommunication.Core.AddressModbusAddress
 Modbus的富文本地址
- length
- 类型:SystemInt32
 读取的数据长度
- cuttingBatchLength
- 类型:SystemInt32
 切割长度信息,针对字读取的情况下,切割多次读取的设置值信息
返回值
类型:
OperateResultByte包含最终命令的结果对象
 参见
参见