MPI Messaging

Join Date
Aug 2005
Location
Alberta
Posts
237
Hi guys.. I am new in the world of Siemens, so please bear with me. I have 2 CPU314-2 PTP Processors that are connected via MPI. I need to send data from one plc to the other. What block would i use to accomplish this?
 
You have to specify where the data has to be retrieved from in the source PLC and where it has to be stored in the target PLC by means of ANY pointers.
An ANY pointer can point to any type of variable and also informs the number of variables to send.
I dont have an example right here and now. Tro to check the online help about ANY pointers.
 
With MPI you can use global data to send data from plc to plc. We use this a lot (replacing the relay communication between plc's which we used in the past). Most of the time we just send 1 or 2 words.
There is no need to program the communication protocol just set up a connection matrix/interface.
 
Out of my head:

The plc's have to be connected to the MPI network. (Hardware configuration properties of the plc. Connected to network must be yes).

All plc's must have unique MPI address. Save and compile all hardware configurations.

In the s7 manager right click on the MPI connection and select define global data. Now you you see the matrix. Add plc's to the coloms. (Click at the top of the first colom, and select add/select plc)

When this is done you can start to define the interface.

Example:

Code:
CPU1		 CPU2
DB20.DBW10   DB21.DBW2
DB21.DBW8	DB22.DBW6

A cell in the matrix can be receiving or sending data. In this example it might be that CPU1 is sending DB20.DBW10 and CPU2 is receiving this information in DB21.DBW2

When finished defining the matrix you have to compile it. (Compile twice, in the right bottom corner of the screen you will see phase 1 after compiling the first time and phase 2 after compiling the second time. When compiling twice (phase 2) then the configuration is stored in the SDB and on eprom/flash memory card) Then download this global data definition to all plc's using the download button in this configurator.

We use puls bits in all plc's to check wether the connection is still "alive".

I don't have my computer with me so sorry if I made some mistakes, but this is the general idee of setting up a global data connection.
 

Similar Topics

Hi I Have new CU320 Module (6sl3040-0MA00-0AA01) for sinamis G150. i want to download Backup config. of old CU320 to new Module with PC Adapter...
Replies
1
Views
520
I have a customer that wants us to use a S7-400 PLC. I don't get into Siemens too often (unless I have to). This machine doesn't do much and...
Replies
15
Views
4,954
So I am working on a machine where the PC has died. The PC was running Windows XP, Protool RT, Step7 V5.3, SimoComU and other software. The...
Replies
9
Views
2,440
Hello guys, I have upgraded the old 318-2aj00-0ab0 cpu to a 317-1ak14-0ab0. After an upgrade there seems to be a communication issue to a HMI...
Replies
7
Views
1,853
Hello automation experts. Do you have any experience with cheaper USB/DP adapters, such as Amsamotion? I would use it occasionaly, mainly for...
Replies
1
Views
1,662
Back
Top Bottom