Example
The following example describes writing to registers 40150 … 40154.
Table 14-33 Structure of a write request
Value Byte Description
Modbus Appli‐
cation Header
- 0 … 6 -
Protocol Data
Unit
10 h 7 Function code
0095h 8, 9 Register (40150)
0005 h 10, 11 Number of registers to be written to (ve registers)
0Ah 12 Number of data bytes (ve registers of two bytes each = ten bytes)
047Eh 13,14 40150: Control word
1000h 15,16 40151: Main setpoint
0000h 17,18 40152: Process data item 3
0000h 19,20 40153: Process data item 4
0815h 21,22 40154: Process data item 5
Table 14-34 Response of the converter to a valid write request
Value Byte Description
Modbus Appli‐
cation Header
- 0 … 6 -
Protocol Data
Unit
10 h 7 Function code
0095h 8, 9 Register (40150)
0005 h 10, 11 Number of registers to be written to (ve registers)
Table 14-35 Response of the converter to an invalid write request
Value Byte Description
Modbus Applica‐
tion Header
- 0 … 6 -
Protocol Data Unit 90h 7 Highest bit = 1 and function code
01h
…
04h
8 Error code
14.5.7 Communication via DS 47
Overview
Communication via DS47 is possible using registers 40601 … 40722.
Functions
14.5Modbus TCP communication
SINAMICS G220 converter
394 Operating Instructions, 04/2024, FW V6.2, A5E51781573B AB