Sei sulla pagina 1di 18

Communication via MPI

PG 720

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.1

Information and Training Center Knowledge for Automation

Networking via MPI

S7-300 or S7- 400


CPU 1

S7-300 or S7- 400


CPU 2

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

PG 720

Default MPI address


Information and Training Center Knowledge for Automation

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.2

Connection Options to MPI

Bus connector

To MPI interface of CPU

Connection for PG/HMI

To MPI interface of CPU Switch for terminating resistor

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.3

Information and Training Center Knowledge for Automation

Global Data: Overview

CPU 1 MW 10

CPU 2 MW 20

CPU 3 MW 30

Global Data

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.4

Information and Training Center Knowledge for Automation

GD Circles
CPU1 CPU2 CPU3 CPU4 CPU5

GD circle
1

S GD 1.1 R GD 1.2

R GD 1.1 S GD 1.2

R GD 2.1
3

S GD 2.1 S GD 3.1 R GD 3.2

R GD 2.1 R GD 3.1 S GD 3.2 S GD 4.1

R GD 2.1

R GD 2.1

R GD 4.1

R GD 4.1

S GD 5.1
6

R GD 5.1 S GD 6.1

R GD 5.1 R GD 6.1

R GD 6.1

S=Sender; R=Receiver; GD x.y=GD Packet y in global data circle x

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.5

Information and Training Center Knowledge for Automation

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
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.6

Information and Training Center Knowledge for Automation

Global Data: Configuring the Hardware

Create stations

Set MPI address


Network CPUs "Accessible Nodes"

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.7

Information and Training Center Knowledge for Automation

Editing the GD Table


Open GD Table

Select CPUs

Define Global Data

Replication factor

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.8

Information and Training Center Knowledge for Automation

Compiling the GD Table

Compile GD Table

Define scan rates and status information

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.9

Information and Training Center Knowledge for Automation

Downloading GD Configuration Data

Download GD configuration data

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.10

Information and Training Center Knowledge for Automation

Status of GD Communication

MD 120
MB 120 7 6 5 4 5 4 MB 121 3 2 1 0 7 6 5 MB 122 4 3 2 1 0 7 6 5 MB 123 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
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.11

Information and Training Center Knowledge for Automation

Exercise: Preparing for Communication


Training Area 1
Station 1 CPU-MPI address:
PG 740

SIEMENS

Node No.:.......

.............

Training Area 2
Station 2
SIEMENS

Node No.:....... CPU-MPI address: .............

PG 740

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.12

Information and Training Center Knowledge for Automation

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
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.13

Information and Training Center Knowledge for Automation

Exercise: Monitoring Variables in Several Stations

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.14

Information and Training Center Knowledge for Automation

Transferring Global Data with SFC 60, 61

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.15

Information and Training Center Knowledge for Automation

Configuring with NETPRO


Insert hardware stations

Define global data

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.16

Information and Training Center Knowledge for Automation

Subnets in SIMATIC

P G 720

OPs MPI network Industrial Ethernet PROFIBUS

PCs, OS

PGs

Point-to-Point

Cell level

SIMATIC S5 PROFIBUS-DP

S7-400

M7-400

S7-300

-SINUMERIK, RCM -TI 505 -Other PLC

DP/AS-I link ET 200C ASI (Actuator Sensor Interface) AS-I submodules Field device with AS-I ASIC Sensors and Actuators ET 200B/L

Field level

AS-I power supply

AS-I level

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.17

Information and Training Center Knowledge for Automation

S7 Communication Methods

Global Data

Op. Sys. of CPU

cyclic or event-driven via MPI

Op. Sys. of CPU

Basic communication ( non-configured connection )


Event-driven via MPI or K-Bus

Extended communication (configured connection )


Event-driven via MPI, Profibus or Industrial Ethernet

SFC

SFC

SFB

SFB

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date: File:

24.09.2013 PRO1_16E.18

Information and Training Center Knowledge for Automation

Potrebbero piacerti anche