Description of function
The structure of the protocol data unit (PDU) in the case of read access using function code FC 03
is as follows:
• Byte7: FCode 03
• Byte8 and Byte9: Register
• Byte10 and Byte11: Number of registers the controller is reading
Example
Table 14-27 Structure of a read request
Value Byte Description
Modbus Applica‐
tion Header
- 0 … 6 -
Protocol Data Unit 03h 7 Function code
00h 8 "High" register (40110)
6Dh 9 "Low" register
00h 10 Number of "High" registers (two registers: 40110; 40111)
02h 11 Number of "Low" registers
The converter responds with the content of the register requested (bytes 8 … 11).
Table 14-28 Response of the converter to a valid read request
Value Byte Description
Modbus Applica‐
tion Header
- 0 … 6 -
Protocol Data Unit 03h 7 Function code
04h 8 Number of bytes (four bytes are returned)
11h 9 Data from the rst register, "High"
22h 10 Data from the rst register, "Low"
33h 11 Data from the second register, "High"
44h 12 Data from the second register, "Low"
Table 14-29 Response of the converter to an invalid read request
Value Byte Description
Modbus Applica‐
tion Header
- 0 … 6 -
Protocol Data Unit 83h 7 Highest bit = 1 and function code
01h
…
04h
8 Error code
Functions
14.5Modbus TCP communication
SINAMICS G220 converter
Operating Instructions, 04/2024, FW V6.2, A5E51781573B AB 391