RE_240-1CA20

Chapter 3 Deployment Manual VIPA System 200V
3-50 HB97E - CP - RE_240-1CA20 - Rev. 12/42
Modbus - Example
In the following example a communication between a master and a slave
via Modbus is build-up. Furthermore the example shows how you can
easily control the communication processes by means of the handling
blocks.
At need you may receive the example project from VIPA.
The following components are required for the example:
2 System 200V with CPU 21x and CP 240
Programming cable for MPI connection (e.g. Green Cable from VIPA)
Serial cable to connect both CP 240
Assemble a Modbus system, existing of master system, slave system
and connect them with the serial cable.
Engineer the master side! For this open the sample project using your
configuration tool. Adjust the transfer parameters accordingly.
Select "Modbus Master RTU" at Protocol.
Edit the OB1 and coordinate the module addresses with the addresses
of the parameterization.
Transfer your project into the master CPU 21x.
Engineer the slave side. For this you open the sample project using your
configuration tool. Adjust the parameters of the CP 240 accordingly.
Select "Modbus Slave RTU" at Protocol. Type a slave address in
Address.
For the communication with Modbus, the slave doesn't need a PLC
application, because the master transfers source and destination.
To de-archive your project into the configuration tool follow the described
approach:
Start the Siemens SIMATIC Manager.
To extract the file Modbus.zip click on File > de-archive.
Select the example file Modbus.zip and choose as destination directory
"s7proj".
After the extraction open the project.
Overview
Requirements
Approach
De-archive project