RS-485 Installation and Set...
7.8.9 Function Codes Supported by
Modbus RTU
Modbus RTU supports use of the function codes in
Table 7.16 in the function field of a message.
Function
Read coils
Read holding registers
Write single coil
Write single register
Write multiple coils
Write multiple registers
Get comm. event counter
Report follower ID
Table 7.16 Function Codes
7.8.10 Database Error Codes
In the event of an error, the following error codes may appear in the data field of a response message. For a full
explanation of the structure of an exception (error) response, refer to chapter 7.8.5 Function Field.
Error Code in data field
(decimal)
00
01
02
03
04
05
06
07
11
17
18
64
65
66
67
130
131
Table 7.18 Error Codes
MG20Z202
Design Guide
Function code
1 hex
3 hex
5 hex
6 hex
F hex
10 hex
B hex
11 hex
Database Error Code description
The parameter number does not exist
There is no write access to the parameter
The data value exceeds the parameter limits
The sub-index in use does not exist
The parameter is not of the array type
The data type does not match the parameter called
Only reset
Not changeable
No write access
Data change in the parameter called is not possible in the present mode
Other error
Invalid data address
Invalid message length
Invalid data length or value
Invalid function code
There is no bus access to the parameter called
Data change is not possible because factory set-up is selected
Danfoss A/S © Rev. 06/2014 All rights reserved.
Function
Function
Sub-
code
function
code
Diagnostics 8
1
2
10
11
12
13
14
Table 7.17 Function Codes
Sub-function
Restart communication
Return diagnostic register
Clear counters and
diagnostic register
Return bus message count
Return bus communication
error count
Return bus exception error
count
Return follower message
count
159
7
7