Write And Read Access Via Fc 03 And Fc 06 - Siemens SINAMICS G120 Original Instructions Manual

Sinamics g120 inverter with cu230p-2 control units
Hide thumbs Also See for SINAMICS G120:
Table of Contents

Advertisement

Configuring the fieldbus
7.6 Communication via RS485
7.6.3.4

Write and read access via FC 03 and FC 06

Function codes used
For data exchange between the master and slave, predefined function codes are used for
communication via Modbus.
The Control Unit uses the Modbus function code 03, FC 03 (read holding registers) for
reading, and the Modbus function code 06, FC 06 (preset single register) for writing.
Structure of a read request via Modbus function code 03 (FC 03)
Any valid register address is permitted as the start address.
The controller can access more than one register via FC 03 with a request. The number of
addressed registers is contained in bytes 4 and 5 of the read request.
Table 7- 19
Read request
Invalid register address
Read a write-only register
Read a reserved register
Controller addresses more than 125 registers
The start address and the number of registers of an
address are located outside of a defined register
block
Table 7- 20
Example
11 h
03 h
00 h
6D h
00 h
02 h
xx h
xx h
The response returns the corresponding data set:
168
Invalid read requests
Structure of a read request for slave number 17
Byte
Description
0
Slave address
1
Function code
2
Register start address "High" (register 40110)
3
Register start address "Low"
4
Number of registers "High" (2 registers: 40110; 40111)
5
Number of registers "Low"
6
CRC "Low"
7
CRC "High"
Converter response
Exception code 02 (invalid data address)
Telegram in which all values are set to 0.
Exception code 03 (invalid data value)
Exception code 02 (invalid data address)
Inverter with CU230P-2 Control Units
Operating Instructions, 11/2013, FW V4.6.6, A5E02430659B AG

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinamics g120dCu230p-2

Table of Contents