V2/Cet/IO/Cet.IO.Protocols.Modbus/ModbusCodecBase.cs
/// <summary>
/// Append the typical header for a request command (master-side)
/// </summary>
/// <param name="command"></param>
/// <param name="body"></param>
Append the typical header for a request command (master-side)
Append the typical header for a request command ( master - side )
internal static void PushRequestHeader(
            ModbusCommand command,
            ByteArrayWriter body)
        {
            body.WriteUInt16BE((ushort)command.Offset);
            body.WriteInt16BE((short)command.Count);
        }
internal static void PushRequestHeader ( ModbusCommand command , ByteArrayWriter body ) { body . WriteUInt16BE ( ( ushort ) command . Offset ) ; body . WriteInt16BE ( ( short ) command . Count ) ; }
Append the typical header for a request command (master-side)
Append the typical header for a request command ( master - side )
command
ModbusCommand
None
body
ByteArrayWriter
None