Operation
7.7 Communication via Modbus TCP
SINAMICS DCP
282 Operating Instructions, 09/2019, A5E34382853K
Structure of a write request via Modbus function code 06 (FC 06)
Start address is the holding register address.
Via FC 06, with one request, only precisely one register can be addressed. The value, which
is written to the addressed register, is contained in bytes 10 and 11 of the write request.
Table 7- 38 Structure of a write request for device number 17, example
00 h
63 h
55 h
8
9
10
Register start address "High" (write register 40100)
Register start address "Low"
Register data "High"
The response returns register address (bytes 8 and 9) and the value (bytes 10 and 11),
which the higher-level control had written to the register.
Table 7- 39 Device response to the write request, example
00 h
63 h
55 h
8
9
10
Register start address "High"
Register start address "Low"
Register data "High"
Table 7- 40 Invalid write request
Incorrect address (a holding register address does not exist) Exception Code 02 - invalid data
Write to a "read-only" register Exception Code 04 - device failure
Write to a reserved register
For Exception Code 4, via the holding register 40499, you can read out the internal drive
error code, which has occurred for the last parameter access via the holding register.