41
Figure 2. Modbus TCP Message
Name
Length
Function
Transaction ID 2 For synchronization between messages of
Number of remaining bytes in this frame
Slave Address (default value 0)
Function codes as in other variants
Data as response or commands
Table 1. Modbus TCP frame format
The Modbus RTU serial protocol’s message data is in hexadecimal format (i.e. raw
unconverted binary). The frame for the Modbus-TCP message is 12 bytes long for read
requests, write requests, and write replies. Messages can be longer than 12 bytes, but not
exceeding 260 bytes for read replies if more than one register is requested. Table 2 is an
example of a read request, and Table 3 is an example of a write request.
Identifier
Field
Identifier
Code
13 0 6 0 4 102 01
Table 2. Example Modbus TCP read request for Genesis Controller circuit #2 heater
current