386 Fieldbus control through the embedded fieldbus interface (EFB)
Modbus function codes
The table below shows the Modbus function codes supported by the embedded
fieldbus interface.
400005 Default: Actual value 1 (Act1 16bit).
The selection can be changed using parameter 58.105 Data I/O 5.
400006 Actual value 2 (Act2 16bit).
The selection can be changed using parameter 58.106 Data I/O 6.
400007…400014 Data in/out 7…14.
Selected by parameters 58.107 Data I/O 7 … 58.114 Data I/O 14.
400015
…400089 Unused
400090
…400100 Error code access. See section Error code registers (holding registers
400090…400100) (page 390).
400101
…465536 Parameter read/write.
Parameters are mapped to register addresses according to parameter
58.33 Addressing mode.
Code Function name Description
01h Read Coils N/A
02h Read Discrete Inputs N/A
03h Read Holding Registers N/A
05h Write Single Coil N/A
06h Write Single Register N/A
08h Diagnostics Provides a series of tests for checking the
communication, or for checking various internal error
conditions.
Supported subcodes:
• 00h Return Query Data: Echo/loopback test.
• 01h Restart Comm Option: Restarts and initializes
the EFB, clears communications event counters.
• 04h Force Listen Only Mode
• 0Ah Clear Counters and Diagnostic Register
• 0Bh Return Bus Message Count
• 0Ch Return Bus Comm. Error Count
• 0Dh Return Bus Exception Error Count
• 0Eh Return Slave Message Count
• 0Fh Return Slave No Response Count
• 10h Return Slave NAK (negative acknowledge)
Count
• 11h Return Slave Busy Count
• 12h Return Bus Character Overrun Count
• 14h Clear Overrun Counter and Flag
0Bh Get Comm Event
Counter
N/A