public override void ServerEncode( ModbusCommand command, ByteArrayWriter body) { ModbusCodecBase.PushRequestHeader( command, body); }
public override void ClientEncode(ModbusCommand command, ByteArrayWriter body) { ModbusCodecBase.PushRequestHeader(command, body); int count = command.Count; body.WriteByte((byte)(count * 2)); for (int index = 0; index < count; ++index) { body.WriteUInt16BE(command.Data[index]); } }
public override void ClientEncode( ModbusCommand command, ByteArrayWriter body) { ModbusCodecBase.PushRequestHeader( command, body); ModbusCodecBase.PushDiscretes( command, body); }