42
ID
Identifier
Field
Identifier
Code
Byte Value
0x00 0x01 0x00 0x00 0x00 0x06 0x00 0x06 0x00 0xC9 0x01 0xC4
1 0 6 0 6 201 452
(Binary)
0000
0000
000
0
0000
0000
0000
0000
0000
0000
000
0
0000
0000
0000
0110
0000
0000
1100
1001
0000
0001
1100
0100
Table 3. Example Modbus TCP write request for Genesis Controller circuit #2 with
maintain temperature set point value 452 which is equivalent of 45.2F.
1.2 Modbus Exception Codes
In a normal response, the slave repeats the function code. If an error occurs in the query
received, the slave will return an exception message. In an exception response, the slave
returns with the requested function code plus one byte of data, known as the exception
code. Table 4 contains a list of exception code response used by the client/master
application.
Code Text Details
1 Illegal Function The function code received in the query is not allowed or invalid.
2 Illegal Data Address The data address received in the query is not an allowable
address for the slave or is invalid.
3 Illegal Data Value Value is not accepted by slave
4 Slave Device Failure Unrecoverable error occurred while slave was attempting to
perform requested action
5 Acknowledge Slave has accepted request and is processing it, but a long
duration of time is required. This response is returned to
prevent a timeout error from occurring in the master. Master
can next issue a Poll Program Complete message to determine
whether processing is completed
6 Slave Device Busy Slave is engaged in processing a long-duration command.
Master should retry later
7 Negative
Acknowledge
Slave cannot perform the programming functions. Master
should request diagnostic or error information from slave
8 Memory Parity Error Slave detected a parity error in memory. Master can retry the
request, but service may be required on the slave device
10 Gateway Path
Unavailable
Specialized for Modbus gateways. Indicates a misconfigured
gateway