Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

Communication via MPI

P G 720

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.1
Networking via MPI

S7-300 or S7- 400 S7-300 or S7- 400


CPU 1 CPU 2

2
PG connection via MPI
PLC link via MPI
0
OP connection via MPI
1

P G 72 0

n Default MPI address

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.2
Connection Options to MPI

Bus connector

To MPI
interface Connection for
of PG/HMI
CPU

To MPI
interface
of
CPU

Switch for terminating


resistor

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.3
Global Data: Overview

CPU 1 CPU 2 CPU 3


MW 10 MW 20 MW 30

Global Data

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.4
GD Circles
CPU1 CPU2 CPU3 CPU4 CPU5

GD circle
1 S GD 1.1 R GD 1.1
R GD 1.2 S GD 1.2

2
R GD 2.1 S GD 2.1 R GD 2.1 R GD 2.1 R GD 2.1

3
S GD 3.1 R GD 3.1
R GD 3.2 S GD 3.2

4 R GD 4.1 S GD 4.1 R GD 4.1

5
S GD 5.1 R GD 5.1 R GD 5.1

6 R GD 6.1 S GD 6.1 R GD 6.1


S=Sender; R=Receiver; GD x.y=GD Packet y in global data circle
x
SIMATIC S7 Date: 13.09.2021 Information and Training Center
Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.5
Global Data: Configuration Procedure

 Create hardware stations in a project


 with the "SIMATIC Manager"

 Create and download configuration data (MPI address)


for the individual CPUs
 with the "HW Config" tool

 Configure Global Data table


 with the "Defining Global Data" tool

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.6
Global Data: Configuring the Hardware

Create stations

Set MPI address

Network CPUs
"Accessible Nodes"

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.7
Editing the GD Table
Open GD Table

Select CPUs

Define Global Data

Replication factor

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.8
Compiling the GD Table

Compile GD Table

Define scan rates and


status information

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.9
Downloading GD Configuration Data

Download GD configuration data

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.10
Status of GD Communication

MD 120
MB 120 MB 121 MB 122 MB 123
7 6 5 4 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0

Range length error


in sender
DB does not exist
in sender
GD packet lost
Syntax error in GD packet
GD object missing in GD
packet

GD objects in sender and


receiver are not the same length
Range length error in receiver

DB does not exist in receiver


Receiver has received new data
Sender has performed a restart

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.11
Exercise: Preparing for Communication

Training Area 1

Station 1
SIEMENS Node No.:.......

CPU-MPI address: .............


PG 740

Training Area 2

Station 2
SIEMENS Node No.:.......
CPU-MPI address: .............

PG 740

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.12
Exercise: Configuring Global Data Communication

Station PLC1 Station PLC2

4 7 1 1 47 1 1

0 8 15 0 8 1 5

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.13
Exercise: Monitoring Variables in Several Stations

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.14
Transferring Global Data with SFC 60, 61

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.15
Configuring with NETPRO

Insert hardware stations

Define global data

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.16
Subnets in SIMATIC

PG 720

OPs PCs, OS PGs

MPI network
Industrial Ethernet
PROFIBUS Point-to-Point
Cell level

-SINUMERIK, RCM
S7-300 -TI 505
SIMATIC S5 S7-400 M7-400 -Other PLC

PROFIBUS-DP

DP/AS-I link Field


level
ET 200C
ET 200B/L
ASI (Actuator Sensor Interface)

AS-I
AS-I
AS-I power supply submodules level

Field device with AS-I ASIC Sensors and Actuators

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.17
S7 Communication Methods

Global Data

Op. Sys. cyclic or event-driven Op. Sys.


of CPU via MPI of CPU

Basic communication Extended communication


( non-configured connection ) (configured
connection )
Event-driven Event-driven
via via
SFC SFC SFB SFB
MPI, Profibus
MPI or K-Bus or Industrial
Ethernet

SIMATIC S7 Date: 13.09.2021 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_16E.18

You might also like