18 - MPI Communication
18 - MPI Communication
MPI COMMUNICATION
SIEMENS
SIMATIC S7 1/18 March 27, 2024
SIEMENS LTD EGYPT 2007
All Rights Reserved
SIEMENS
Objectives
CP5611
Transmission rate 9.6 kbit/s to 12 Mbit/s
CP5511
Transmission rate 9.6 kbit/s to 12 Mbit/s
MPI Communication
- Data communication: 187.5 kbit/s to 12 Mbit/s
- Communication services:
. PG/OP communication functions
. Global data communication for small data
volumes, without a programming
overhead Add.= 4
. S7 Basic communication for small
Add.= 0
data volumes up to 76 bytes
Add.= 1
Add.= 3
Add.= 5
Two station
CPU-MPI
PC address: 0
address: 2
CPU-MPI
PC address: 1
address: 3
S7 Basic Communication
SFC NAME Short Description
SFC 65 X_SEND Send block for sending data to the X_RCV (Client) block
SFC 66 X_RCV Receive block for receiving the data of the X_SEND block
SFC65 (X_SEND)
CALL SFC 65
REQ:= M4.0 //Trigger REQ RET_VAL
CONT:= FALSE //Disc. connection CONT BUSY
DEST_ID:= W#16#4 //MPI_addr.
REQ_ID:= DW#16#1 //Identifier
DEST_ID
SD:= P#M20.0 BYTE 10 //Variable
RET_VAL:= MW40 //Error code REQ_ID
BUSY:= M 4.1 //SFC active
SD
SFC66 (X_RSV)
CALL SFC 66 EN_DT RET_VAL
EN_DT:= TRUE //Trigger data trans.
RET_VAL:= MW 50 //Error code REQ_ID
REQ_ID:= MD52 //Job ID
NDA:= M40.0 //Data exist NDA
RD:= P#M20.0 BYTE 10 //Variable
RD
S7 Extended Communication
- Data exchange using MPI, Profibus or Industrial Ethernet
- SFBs:
S7 Extended Communication
SFB/SFC NAME Comm. Type Short Description
SFB 8 USEND two-sided Send block for sending data to the URCV (Client) block
SFB 9 URCV two-sided Receive block for receiving data of the USEND block