Chapter 4 CP 240 - serial
Manual VIPA System 200V
4-40
HB97E - CP - Rev. 11/30
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
Summary of Contents for CP 240 RS232
Page 1: ...Manual VIPA System 200V CP Order No VIPA HB97E_CP Rev 11 30...
Page 2: ...L...
Page 14: ...Chapter 1 Basics Manual VIPA System 200V 1 6 HB97E CP Rev 11 30...
Page 126: ...Chapter 5 CP 240 EnOcean Manual VIPA System 200V 5 32 HB97E CP Rev 11 30...
Page 144: ...Chapter 6 CP 240 M Bus Manual VIPA System 200V 6 18 HB97E CP Rev 11 30...
Page 148: ...Index Manual VIPA System 200V A 4 HB97E CP Rev 11 30 M Stich...