点击或拖拽改变大小

ModbusInfoBuildWriteMaskModbusCommand 方法 (ModbusAddress, UInt16, UInt16)

构建Modbus写入掩码数据的核心报文,需要指定地址,长度,站号,是否起始地址0,默认的功能码
To construct the core message of Modbus writing mask data, 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.0.0.0 (12.0.0.0)
语法
public static OperateResult<byte[]> BuildWriteMaskModbusCommand(
	ModbusAddress mAddress,
	ushort andMask,
	ushort orMask
)

参数

mAddress
类型:HslCommunication.Core.AddressModbusAddress
Modbus的富文本地址
andMask
类型:SystemUInt16
等待进行与操作的掩码
orMask
类型:SystemUInt16
等待进行或操作的掩码

返回值

类型:OperateResultByte
包含最终命令的结果对象
参见