ModbusInfoBuildWriteBoolModbusCommand 方法 (ModbusAddress, Boolean) |
构建Modbus写入bool数组的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
To construct the core message that Modbus writes to the bool array, you need to specify the address, length,
station number, whether the starting address is 0, and the default function code
命名空间:
HslCommunication.ModBus
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteBoolModbusCommand(
ModbusAddress mAddress,
bool[] values
)
Public Shared Function BuildWriteBoolModbusCommand (
mAddress As ModbusAddress,
values As Boolean()
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteBoolModbusCommand(
ModbusAddress^ mAddress,
array<bool>^ values
)
static member BuildWriteBoolModbusCommand :
mAddress : ModbusAddress *
values : bool[] -> OperateResult<byte[]>
参数
- mAddress
- 类型:HslCommunication.Core.AddressModbusAddress
Modbus的富文本地址 - values
- 类型:SystemBoolean
bool数组的信息
返回值
类型:
OperateResultByte包含最终命令的结果对象
参见