Ppi Protocol; Mpi Protocol - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

Setting Up Communications Hardware and Network Communications

PPI Protocol

PPI is a master/slave protocol. In this protocol the master devices (other CPUs,
SIMATIC programming devices, or TD 200s) send requests to the slave devices
and the slave devices respond. Slave devices do not initiate messages, but wait
until a master sends them a request or polls them for a response. All S7-200 CPUs
act as slave devices on the network.
Some S7-200 CPUs can act as master devices while they are in RUN mode, if you
enable PPI master mode in the user program. (See the description of SMB30 in
Appendix C.) Once PPI master mode has been enabled, you can read from or
write to other CPUs by using the Network Read (NETR) and Network Write
(NETW) instructions. See Section 9.15, SIMATIC Communications Instructions in
Chapter 9 for a description of these instructions. While acting as a PPI master, the
S7-200 CPU still responds as a slave to requests from other masters.
PPI has no limit on how many masters can communicate to any one slave CPU,
but there can be no more than 32 masters on a network.

MPI Protocol

MPI may be either a Master/Master protocol or a Master/Slave protocol. Exactly
how the protocol operates is based on the type of device. If the destination device
is an S7-300 CPU, then a master/master connection is established because all
S7-300 CPUs are network masters. If the destination device is an S7-200 CPU,
then a master/slave connection is established because the S7-200 CPUs are slave
devices.
MPI always establishes a connection between the two devices communicating with
each other. A connection is like a private link between the two devices. Another
master cannot interfere with a connection established between two devices. A
master can establish a connection to use for a short period of time, or the
connection can remain open indefinitely.
Because the connections are private links between devices and require resources
in the CPU, each CPU can only support a finite number of connections. Each
S7-200 CPU supports 4 connections on each of Port 0 and Port 1, and each
EM 277 module supports 6 connections. Both the EM 277 and the S7-200 reserve
two connections; one for a SIMATIC programming device or PC, and one for
operator panels. The reserved connections enable you to always connect at least
one programming device or PC and at least one operator panel to the S7-200 CPU
or EM 277 PROFIBUS-DP module. These reserved connections cannot be used
by other types of master devices (such as CPUs).
The S7-300 and S7-400 CPUs can communicate with the S7-200 CPUs by
establishing a connection on the non-reserved connections of the S7-200 CPU or
the EM 277 PROFIBUS-DP module. The S7-300s and S7-400s can read and write
data to the S7-200s using the XGET and XPUT instructions (refer to your S7-300
or S7-400 programming manuals).
7-30
S7-200 Programmable Controller System Manual
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents