16 communication via mpi

Upload: sina20795

Post on 14-Apr-2018

231 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 16 Communication via MPI

    1/18

    Date: 24.09.2013File: PRO1_16E.1

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Communication via MPI

    PG 720

  • 7/29/2019 16 Communication via MPI

    2/18

    Date: 24.09.2013File: PRO1_16E.2

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Networking via MPI

    PLC link via MPI

    S7-300 or S7- 400

    PG connection via MPI

    OP connection via MPI

    CPU 1 CPU 2

    PG 720

    S7-300 or S7- 400

    0

    1

    2

    n Default MPI address

  • 7/29/2019 16 Communication via MPI

    3/18

    Date: 24.09.2013File: PRO1_16E.3

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Connection Options to MPI

    Bus connector

    Connection forPG/HMI

    To MPIinterfaceofCPU

    To MPIinterfaceofCPU

    Switch for terminating

    resistor

  • 7/29/2019 16 Communication via MPI

    4/18

    Date: 24.09.2013File: PRO1_16E.4

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Global Data: Overview

    Global Data

    CPU 1MW 10

    CPU 2MW 20

    CPU 3MW 30

  • 7/29/2019 16 Communication via MPI

    5/18

    Date: 24.09.2013File: PRO1_16E.5

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    2

    GD CirclesCPU1 CPU2 CPU3 CPU4 CPU5

    GD circle

    1

    3

    4

    5

    6

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

    S GD 1.1

    R GD 1.2

    R GD 1.1

    S GD 1.2

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

    S GD 3.1R GD 3.2

    R GD 3.1

    S GD 3.2

    R GD 4.1 S GD 4.1 R GD 4.1

    S GD 5.1 R GD 5.1 R GD 5.1

    R GD 6.1 S GD 6.1 R GD 6.1

  • 7/29/2019 16 Communication via MPI

    6/18

    Date: 24.09.2013File: PRO1_16E.6

    SIMATIC S7Siemens AG 1999. All rights reserved.

    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

  • 7/29/2019 16 Communication via MPI

    7/18

    Date: 24.09.2013File: PRO1_16E.7

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Global Data: Configuring the Hardware

    Set MPI address

    Network CPUs"Accessible Nodes"

    Create stations

  • 7/29/2019 16 Communication via MPI

    8/18

    Date: 24.09.2013File: PRO1_16E.8

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Editing the GD Table

    Define Global Data

    Open GD Table

    Select CPUs

    Replication factor

  • 7/29/2019 16 Communication via MPI

    9/18

    Date: 24.09.2013File: PRO1_16E.9

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Compiling the GD Table

    Compile GD Table

    Define scan rates andstatus information

  • 7/29/2019 16 Communication via MPI

    10/18

    Date: 24.09.2013File: PRO1_16E.10

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Downloading GD Configuration Data

    Download GD configuration data

  • 7/29/2019 16 Communication via MPI

    11/18

    Date: 24.09.2013File: PRO1_16E.11

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Range length errorin sender

    Status of GD Communication

    MB 1207 6 5 4 5 4 3 2 1 0

    MB 121

    MD 120

    7 6 5 4 3 2 1 0MB 122

    6 5 4 3 2 1MB 123

    7 0

    DB does not existin sender

    GD packet lost

    Syntax error in GD packet

    GD object missing in GD packet

    GD objects in sender and receiverare not the same length

    Range length error in receiver

    DB does not exist in receiver

    Sender has performed a restartReceiver has received new data

    0

  • 7/29/2019 16 Communication via MPI

    12/18

    Date: 24.09.2013File: PRO1_16E.12

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Exercise: Preparing for Communication

    Training Area 2

    PG740

    SIEMENS Node No.:.......

    Station 2

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

    PG740

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

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

    Training Area 1

  • 7/29/2019 16 Communication via MPI

    13/18

    Date: 24.09.2013File: PRO1_16E.13

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Exercise: Configuring Global Data Communication

    Station PLC1 Station PLC2

    0 8 1 50 8 1 5

    4 7 1 1 4 7 1 1

  • 7/29/2019 16 Communication via MPI

    14/18

    Date: 24.09.2013File: PRO1_16E.14

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Exercise: Monitoring Variables in Several Stations

  • 7/29/2019 16 Communication via MPI

    15/18

    Date: 24.09.2013File: PRO1_16E.15

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Transferring Global Data with SFC 60, 61

  • 7/29/2019 16 Communication via MPI

    16/18

    Date: 24.09.2013File: PRO1_16E.16

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Configuring with NETPRO

    Insert hardware stations

    Define global data

  • 7/29/2019 16 Communication via MPI

    17/18

    Date: 24.09.2013File: PRO1_16E.17

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Subnets in SIMATIC

    -SINUMERIK, RCM-TI 505-Other PLC

    S7-300S7-400 M7-400

    OPs

    SIMATIC S5

    PROFIBUS-DP

    ET 200B/LET 200C

    DP/AS-I link

    ASI (Actuator Sensor Interface)

    AS-Isubmodules

    Sensors and ActuatorsField device with AS-I ASIC

    AS-I power supply

    Industrial Ethernet

    PROFIBUS

    MPI network

    Point-to-Point

    PCs, OS PGs

    PG720

    Cell level

    Field level

    AS-Ilevel

  • 7/29/2019 16 Communication via MPI

    18/18

    Date: 24.09.2013File: PRO1_16E.18

    SIMATIC S7Siemens AG 1999. All rights reserved.

    Information and Training Center

    Knowledge for Automation

    Event-driven

    viaMPI, Profibusor IndustrialEthernet

    Event-driven

    via

    MPI or K-Bus

    S7 Communication Methods

    Global Data

    Basic communication( non-configured connection )

    Extended communication(configured connection )

    SFC SFC SFB SFB

    Op. Sys.of CPU

    Op. Sys.of CPU

    cyclic or event-driven

    via MPI