![Siemens SINAMICS V20 Series Operating Instructions Manual Download Page 109](http://html.mh-extra.com/html/siemens/sinamics-v20-series/sinamics-v20-series_operating-instructions-manual_378245109.webp)
Communicating with the PLC
6.2 MODBUS communication
SINAMICS V20 Inverter
Operating Instructions, 07/2012, A5E03728167
109
Parameter
Function
Setting
r2024[0]
...
r2031[0]
USS / MODBUS error statistics
The state of the telegram information on RS485 is reported
regardless of the protocol set in P2023.
r2018[0...7]
CO: PZD from USS / MODBUS on
RS485
Displays process data received via USS / MODBUS on
RS485.
P2019[0...7]
CI: PZD to USS / MODBUS on RS485
Displays process data transmitted via USS / MODBUS on
RS485.
6.2
MODBUS communication
Overview
In MODBUS, only the master can start a communication and the slave will answer it. There
are two ways of sending a message to a slave. One is unicast mode (address 1 ... 247),
where the master addresses the slave directly; the other is broadcast mode (address 0),
where the master addresses all slaves.
When a slave has received a message, which was addressed at it, the Function Code tells it
what to do. For the task defined by the Function Code, the slave may receive some data.
And for error checking a CRC code is also included.
After receiving and processing a unicast message, the MODBUS slave will send a reply, but
only if no error was detected in the received message. If a processing error occurs, the slave
will reply with an error message. The following fixed framing characters in a message can
not be altered: 8 data bits, 1 parity-even bit and 1 stop bit.
6WDUWSDXVH
&KDUDFWHUUXQ
WLPH
(QGSDXVH
&KDUDFWHUUXQ
WLPH
$SSOLFDWLRQ'DWD8QLW
3URWRFRO'DWD8QLW
6ODYH
$GGUHVV
)XQFWLRQ&RGH
'DWD
E\WH
E\WHV
E\WH
E\WHV
&5&ORZ &5&KLJK
!
!
&5&
Supported Function Codes
The SINAMICS V20 supports only three Function Codes. If a request with an unknown
Function Code is received, an error message will be returned.
FC3 - Read Holding Registers
When a message with FC = 0 x 03 is received, then 4 bytes of data are expected, that is,
FC3 has 4 bytes of data:
●
2 bytes for the starting address
●
2 bytes for the number of registers
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
Address FC (0 x 03) Start address
(MSF)
Start address
(LSF)
Number of
registers (MSF)
Number of
registers (LSF)
CRC
CRC