Technical Instructions for Configuring an S7 Connection

download Technical Instructions for  Configuring an S7 Connection

of 35

Transcript of Technical Instructions for Configuring an S7 Connection

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    1/35

    Service & SupportAnswers for industry.

    Cover

    Technical Instructions forConfiguring an S7 Connection

    S7-300 / S7-400 Industrial Ethernet CPs

    FAQ January 2011

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    2/35

    Question

    2Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    This entry is from the Service&Support portal of Siemens AG, Sector Industry,Industry Automation and Drive Technologies. The general terms of use(http://www.siemens.com/terms_of_use) apply.

    Clicking the link below directly displays the download page of this document.

    http://support.automation.siemens.com/WW/view/en/17628518

    QuestionHow do you configure a specified and an unspecified S7 connection for dataexchange between S7-300 and / or S7-400 over Industrial Ethernet CPs?

    AnswerThe instructions and notes listed in this document provide a detailed answer to thisquestion.

    http://www.siemens.com/terms_of_usehttp://support.automation.siemens.com/WW/view/en/17628518http://support.automation.siemens.com/WW/view/en/17628518http://support.automation.siemens.com/WW/view/en/17628518http://www.siemens.com/terms_of_use
  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    3/35

    Table of Contents

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 3

    Table of Contents

    1 Introduction........................................................................................................ 42 Configuration..................................................................................................... 5

    2.1 Configuring CP343-1 and CP443-1 Advanced .................................... 52.1.1 Assigning IP addresses to CP343-1 and CP443-1 Advanced............. 52.1.2 Entering the IP address of CP343-1 in the Hardware Configuration

    and downloading the configuration into the CPU................................. 82.1.3 Entering the IP address of CP443-1 Advanced in the Hardware

    Configuration and downloading the configuration into the CPU ........ 102.2 Configuring the S7 Connection Bilaterally.......................................... 132.2.1 Configuring a specified S7 connection............................................... 142.2.2 Configuring an unspecified S7 connection......................................... 19

    Configuring an unspecified S7 connection for the S7-300................. 19Configuring an unspecified S7 connection for the S7-400................. 22

    2.3 Configuring the S7 Connection Unilaterally ....................................... 272.3.1 Configuring an S7 connection unilaterally for the S7-300.................. 272.3.2 Configuring an S7 connection unilaterally for the S7-400.................. 31

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    4/35

    1 Introduction

    4Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    1 IntroductionYou can use the S7 communication through S7 connections for data exchange byway of the Industrial Ethernet CPs of S7-300 and S7-400.

    In this example an S7-300 is connected over the PROFINET interface of theCP343-1 on the subnetwork 172.16.0.0. The S7-400 on the other hand isconnected over the GBIT interface of the CP443-1 Advanced on the subnetwork172.16.0.0. The PROFINET interface of the CP443-1 Advanced is connected onthe subnetwork 192.168.99.0.

    Configuration overview

    Figure 1-1 shows an overview of the configuration.

    Figure 1-1

    S7-400S7-300CP343-1

    CP443-1Advanced

    S7 connection

    SCALALANCE X

    IP address: 172.16.43.2

    subnet mask: 255.255.0.0

    IP address PROFINET interface:192.168.99.121

    subnet mask: 255.255.255.0

    IP address Gigabit interface:172.16.49.99

    subnet mask: 255.255.0.0

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    5/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 5

    2 ConfigurationBelow we describe how to configure an S7 connection for bilateral exchange ofdata by way of the Industrial Ethernet CPs of S7-300 and S7-400.

    The S7 connection is configured bilaterally in the S7-300 and in the S7-400.

    2.1 Configuring CP343-1 and CP443-1 Advanced

    2.1.1 Assigning IP addresses to CP343-1 and CP443-1 Advanced

    The following IP addresses are used in this configuration.

    Table 2-1

    Industrial Ethernet CP Interface IP address Subnet mask

    CP343-1 PROFINET 172.16.43.2 255.255.0.0

    CP443-1 Advanced PROFINET 192.168.99.121 255.255.255.0

    CP443-1 Advanced GBIT 172.16.49.99 255.255.0.0

    Assign the IP addresses to CP343-1 and CP443-1 Advanced.

    Follow the instructions below for assigning the IP addresses.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    6/35

    2 Configuration

    6Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    Table 2-2

    No. Configuration step Note

    1. Connect the SIMATIC Field PG on

    which the configuration created withSTEP 7 is stored to the PROFINETinterface of CP343-1.

    In Windows network settings

    LAN (Local Area Network) of the

    SIMATIC Field PG you enter an IPaddress that is in the samesubnetwork as that of CP343-1.

    In this example the IP address172.16.43.100 and subnetwork mask255.255.0.0 are used for theSIMATIC Field PG.

    2. In the SIMATIC Manager you openthe STEP 7 project that contains theconfigurations of S7-300 and S7-400between which the data is to beexchanged over an S7 connection.

    By means of the menu PLC Edit

    Ethernet Node you open the "EditEthernet Node" dialog.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    7/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 7

    No. Configuration step Note

    3. In the "Edit Ethernet Node" dialogyou click the "Browse..." button andselect the MAC address of CP343-1.

    4. Enter the IP address and subnetmask of CP343-1.Click the "Assign IP Configuration"

    button to assign the IP addressentered to CP343-1.

    Then click the "Close" button to closethe "Edit Ethernet Node" dialog.

    5. Enter the assigned IP address in theHardware Configuration of the S7-300 station and download theconfiguration into the S7-300 CPU.

    See section 2.1.2

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    8/35

    2 Configuration

    8Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    6. Connect the SIMATIC Field PG onwhich the configuration created withSTEP 7 is stored to the PROFINET

    interface of CP443-1 Advanced.

    In Windows network settings

    LAN (Local Area Network) of the

    SIMATIC Field PG you enter an IPaddress that is in the samesubnetwork as that of CP443-1.

    In this example the IP address192.168.99.100 and subnetworkmask 255.255.255.0 are used for theSIMATIC Field PG.

    7. Repeat configuration steps 2 to 4 toassign the IP address192.168.99.121 and subnet mask255.255.255.0 to CP443-1 Advanced.

    8. Enter the assigned IP address in theHardware Configuration of the S7-400 station and download the

    configuration into the S7-400 CPU.

    See section 2.1.3

    2.1.2 Entering the IP address of CP343-1 in the Hardware Configuration anddownloading the configuration into the CPU

    After you have assigned the IP address 172.16.43.2 and subnet mask 255.255.0.0to CP343-1 you enter the assigned IP address in the Hardware Configuration.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    9/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 9

    Table 2-3

    No. Configuration step Note

    1. In the SIMATIC Manager you mark

    the SIMATIC S7 300 station anddouble-click "Hardware" in order toopen the Hardware Configuration ofthe S7-300 station.

    2. In the Hardware Configuration of S7-300 you double-click the PROFINETinterface of CP343-1. The Propertiesdialog of the PROFINET interfaceopens.

    3. In the Properties dialog of thePROFINET interface you click the"Properties..." button to open the"Properties - Ethernet interface PN-

    IO" dialog.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    10/35

    2 Configuration

    10Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    4. Enter the IP address 172.16.43.2 andthe subnet mask 255.255.0.0.

    Activate the "Set MAC address / UseISO protocol" function and enter theMAC address 00-0E-8C-D9-F0-1D ofCP343-1.

    Assign an existing subnet to CP343-1or click the "New..." button to create anew subnet.

    Apply the settings with "OK".

    5. Save and compile the hardwareconfiguration of the S7-300 and thenload the configuration into the S7-300CPU.

    Save and Compiledownload

    2.1.3 Entering the IP address of CP443-1 Advanced in the HardwareConfiguration and downloading the configuration into the CPU

    After you have assigned the IP address 192.168.99.121 and subnet mask255.255.255.0 to CP343-1 you enter the assigned IP address in the HardwareConfiguration.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    11/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 11

    Table 2-4

    No. Configuration step Note

    1. In the SIMATIC Manager you mark

    the SIMATIC S7 400 station anddouble-click "Hardware" in order toopen the Hardware Configuration ofthe S7-400 station.

    2. In the Hardware Configuration of S7-400 you double-click the PROFINETinterface of CP443-1 Advanced. TheProperties dialog of the PROFINETinterface opens.

    3. In the Properties dialog of thePROFINET interface you click the"Properties..." button to open the"Properties - Ethernet interface PN-IO" dialog.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    12/35

    2 Configuration

    12Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    4. Enter the IP address 192.168.99.121and the subnet mask 255.255.255.0.

    Assign a subnet to the PROFINETinterface of CP443-1 Advanced.In this example the subnet assignedto the PROFINET interface of CP443-1 Advanced is different to thatassigned to the PROFINET interfaceof CP343-1.

    Apply the settings with "OK".

    5. In the Hardware Configuration of S7-400 you double-click the GBITinterface of CP443-1 Advanced. TheProperties dialog of the GBITinterface opens.

    6. In the Properties dialog of the GBITinterface you click the "Properties..."button to open the "Properties -Ethernet interface GBIT" dialog.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    13/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 13

    No. Configuration step Note

    7. Activate the "Set MAC address / UseISO protocol" function and enter theMAC address 00-0E-8C-DB-D2-98 of

    CP443-1 Advanced.

    Enter the IP address 172.16.49.99and the subnet mask 255.255.0.0.

    Assign the same subnet to the GBITinterface of CP443-1 Advanced as tothe PROFINET interface of CP343-1.

    Apply the settings with "OK".

    8. Save and compile the hardwareconfiguration of the S7-400 and thenload the configuration into the S7-400CPU.

    Save and compile download

    2.2 Configuring the S7 Connection Bilaterally

    Once you have completed configuration of CP343-1 and CP443-1 Advanced andhave downloaded the hardware configuration into the S7-300 CPU and the S7-400

    CPU, then you configure the S7 connection for data exchange between S7-300and S7-400 by way of Industrial Ethernet CPs.

    The function blocks and system functions below are used for data exchange byway of S7 connections configured bilaterally in S7-300 and S7-400.

    FB/SFB12 "BSEND" and FB/SFB13 "BRCV"

    FB/SFB8 "USEND" and FB9 "URCV"

    FB/SFB14 "GET" and FB/SFB15 "PUT"

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    14/35

    2 Configuration

    14Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    Note If you use the BSEND and BRCV or USEND and URCV services for datatransfer, you must configure the S7 connection bilaterally for S7-300 and S7-400,because the services are based on the client-client principle.

    You can use the PUT and GET services for data transfer by way of S7connections configured unilaterally as well as by way of S7 connectionsconfigured bilaterally. They are based on the client-server principle.

    Below we describe how to configure a specified and an unspecified S7 connectionfor S7-300 and S7-400.

    2.2.1 Configuring a specified S7 connection

    If the S7-300 and S7-400 between which there is data exchange are configured inthe same STEP 7 project, then you configure a specified S7 connection.

    The connection parameters below are used for the S7 connection in this example.Table 2-5

    Connection parameters S7-300 S7-400

    Connection partners S7-400 CPU S7-300 CPU

    Connection type S7 connection S7 connection

    IP address 172.16.43.2 172.16.49.99

    MAC address 00-0E-8C-D9-F0-1D 00-0E-8C-DB-D2-98

    Partner IP address 172.16.49.99 172.16.43.2

    Partner MAC address 00-0E-8C-DB-D2-98 00-0E-8C-D9-F0-1D

    Connection setup Active Passive

    ID (connection number) 2 2LADDR(module start address)

    W#16#0100 W#16#3FFA

    Local TSAP 10.04 11.02

    Partner TSAP 11.02 10.04

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    15/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 15

    Follow the instructions below to configure a specified S7 connection.

    Table 2-6

    No. Configuration step Note

    1. In the SIMATIC Manager you openthe STEP 7 project that contains theconfigurations of S7-300 and/or S7-400 between which the data is to beexchanged over an S7 connection.

    By means of the menu Options

    Configure Network you open

    NetPro where you configure the S7connection.

    2. Mark the CPU of the SIMATIC 300station and create a new connectionby means of the menu Insert

    New Connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    16/35

    2 Configuration

    16Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    3. You configure the connection partnerand the type of connection in the"Insert New Connection" dialog.

    Select the S7-400 CPU asconnection partner.

    Select "S7 connection" as theconnection type.

    Then click the "Apply" button to openthe Properties dialog of the S7connection.

    4. In the Properties dialog of the S7connection "General" tab you

    determine the connection number bymeans of the block parameter "ID".You specify the connection number atthe "ID" input parameter of thefunction blocks or system functionsused for sending and receiving thedata.

    The function blocks and systemfunctions are called in the userprogram of the CPU.

    Activate the function "Activeconnection establishment" becausethe S7-300 actively establishes theS7 connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    17/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 17

    No. Configuration step Note

    5. In the "Properties" dialog of the S7connection "General" tab you seethat the S7 connection is established

    between the addresses 00-0E-8C-D9-F0-1D and 00-0E-8C-DB-D2-98,i.e. the data is exchanged betweenS7-300 and S7-400 via CP343-1 andthe GBIT interface of CP443-1.

    Click on the "Address Details..."button.

    6. In the "Address Details" dialog thelocal connection end point in the S7-300 and the connection end point inthe communication partner aredefined with the local TSAP and thepartner TSAP respectively.

    The connection resource "10" and theCP's rack and slot are specified asthe local TSAP in the S7-300 station.

    The connection resource "11" and therack and slot of the S7-400 CPU arespecified as the partner TSAP.

    Click on the "Close" button to close

    the dialog.

    Slot of the CP in

    the S7-300 station

    Slot of the

    S7-400 CPU

    local TSAP in the S7-300 station local TSAP in the S7-400 station

    7. Mark the CPU of the SIMATIC 300station. The configured S7connection is now displayed in theconnection table.

    8. Mark the CPU of the SIMATIC 400station. The configured S7connection is now displayed in theconnection table.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    18/35

    2 Configuration

    18Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    9. Once you have completed theconnection configuration, you saveand compile the configuration.

    Mark the SIMATIC 300 station anddownload the configuration into theS7-300 CPU.

    Then mark the SIMATIC 400 stationand download the configuration intothe S7-400 CPU.

    Save and compile download

    10. Call the function blocks below in the

    user program of the S7-300. FB12 "BSEND" and FB13

    "BRCV" or

    FB8 "USEND" and FB9 "URCV"or

    FB14 "GET" and FB15 "PUT"

    You will find function blocks in the library

    "SIMATIC_NET_CP CP CP 300 Blocks".At the link below is a sample program for the S7-300with the call of the function blocks FB12 "BSEND" andFB13 "BRCV".

    http://support.automation.siemens.com/WW/view/de/18516182

    At the link below is a sample program for the S7-300with the call of the function blocks FB8 "BSEND" andFB9 "BRCV".

    http://support.automation.siemens.com/WW/view/de/22791526

    At the link below is a sample program for the S7-300with the call of the function blocks FB14 "GET" andFB15 "PUT".

    http://support.automation.siemens.com/WW/view/de/18610307

    11. Call the system functions below in theuser program of the S7-400.

    SFB12 "BSEND" and SFB13"BRCV" or

    SFB8 "USEND" and SFB9"URCV" or

    SFB14 "GET" and SFB15 "PUT"

    These system functions are available in the library"Standard Library System Function Blocks Blocks".

    At the link below is a sample program for the S7-400with the call of the system functions SFB14 "GET" andSFB15 "PUT".

    http://support.automation.siemens.com/WW/view/de/1819293

    http://support.automation.siemens.com/WW/view/de/18516182http://support.automation.siemens.com/WW/view/de/18516182http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/18516182http://support.automation.siemens.com/WW/view/de/18516182
  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    19/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 19

    2.2.2 Configuring an unspecified S7 connection

    If the S7-300 and S7-400 between which there is data exchange are configured in

    different STEP 7 projects, then you configure an unspecified S7 connection.The connection parameters below are used for the S7 connection in this example.

    Table 2-7

    Connection parameters S7-300 S7-400

    Connection partners Unspecified Unspecified

    Connection type S7 connection S7 connection

    IP address 172.16.43.2 172.16.49.99

    MAC address 00-0E-8C-D9-F0-1D 00-0E-8C-DB-D2-98

    Partner IP address 172.16.49.99 172.16.43.2

    Partner MAC address 00-0E-8C-DB-D2-98 00-0E-8C-D9-F0-1D

    Connection setup Active Passive

    ID (connection number) 3 3

    LADDR(module start address)

    W#16#0100 W#16#3FFA

    Local TSAP 11.04 12.02

    Partner TSAP 12.02 11.04

    Note The configurations of the connection parameters for the S7-300 and the S7-400must match.

    Configuring an unspecified S7 connection for the S7-300

    Follow the instructions below to configure an unspecified S7 connection for the S7-300.

    Table 2-8

    No. Configuration step Note

    1. In the SIMATIC Manager you openthe STEP 7 project that contains theconfiguration of S7-300 which is tosend and receive the data over an S7connection.

    By means of the menu Options Configure Network you open

    NetPro where you configure the S7connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    20/35

    2 Configuration

    20Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    2. Mark the CPU of the SIMATIC 300station and create a new connectionby means of the menu Insert

    New Connection.

    3. In the "Insert New Connection" dialogyou select the item "unspecified" asconnection partner.

    Select "S7 connection" as theconnection type.

    Then click the "Apply" button to openthe Properties dialog of the S7connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    21/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 21

    No. Configuration step Note

    4. In the Properties dialog of the S7connection "General" tab youdetermine the connection number by

    means of the block parameter "ID".You specify the connection number atthe "ID" input parameter of thefunction blocks used for sending andreceiving the data.

    The function blocks are called in theuser program of the CPU.

    Activate the function "Activeconnection establishment" becausethe S7-300 actively establishes theS7 connection.

    5. In the Properties dialog of the S7connection "General" tab you enterthe IP address of the communicationpartner, i.e. in this example you enterthe IP address 172.16.49.99 ofCP443-1 Advanced.

    Click on the "Address Details..."button.

    6. In the "Address Details" dialog thelocal connection end point in the S7-300 and the connection end point inthe communication partner aredefined with the local TSAP and thepartner TSAP respectively.

    The connection resource "11" and theCP's rack and slot are specified asthe local TSAP in the S7-300 station.

    For the partner you enter the rack

    and slot of the S7-400 CPU andselect the connection resource for thepartner so that the local TSAP of theS7-400 is defined as the partnerTSAP.

    Apply the settings with "OK".

    Slot of the CPU

    local TSAP in the S7-300 station local TSAP in the S7-400 station

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    22/35

    2 Configuration

    22Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    7. Mark the CPU of the SIMATIC 300station. The configured S7connection is now displayed in the

    connection table.

    8. Once you have completed theconnection configuration, you saveand compile the configuration.Mark the SIMATIC 300 station anddownload the configuration into theS7-300 CPU.

    Save and compile download

    9. Call the function blocks below in theuser program of the S7-300.

    FB12 "BSEND" and FB13"BRCV" or

    FB8 "USEND" and FB9 "URCV"or

    FB14 "GET" and FB15 "PUT"

    You will find function blocks in the library"SIMATIC_NET_CP CP CP 300 Blocks".

    At the link below is a sample program for the S7-300with the call of the function blocks FB12 "BSEND" andFB13 "BRCV".

    http://support.automation.siemens.com/WW/view/de/18516182

    At the link below is a sample program for the S7-300with the call of the function blocks FB8 "BSEND" and

    FB9 "BRCV".http://support.automation.siemens.com/WW/view/de/22791526

    At the link below is a sample program for the S7-300with the call of the function blocks FB14 "GET" andFB15 "PUT".

    http://support.automation.siemens.com/WW/view/de/18610307

    Configuring an unspecified S7 connection for the S7-400

    Follow the instructions below to configure an unspecified S7 connection for the S7-400.

    http://support.automation.siemens.com/WW/view/de/18516182http://support.automation.siemens.com/WW/view/de/18516182http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/18610307http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/22791526http://support.automation.siemens.com/WW/view/de/18516182http://support.automation.siemens.com/WW/view/de/18516182
  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    23/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 23

    Table 2-9

    No. Configuration step Note

    1. In the SIMATIC Manager you open

    the STEP 7 project that contains theconfiguration of S7-400 which is tosend and receive the data over an S7connection.

    By means of the menu Options

    Configure Network you open

    NetPro where you configure the S7connection.

    2. Mark the CPU of the SIMATIC 400station and create a new connectionby means of the menu Insert

    New Connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    24/35

    2 Configuration

    24Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    3. In the "Insert New Connection" dialogyou select the item "unspecified" asconnection partner.

    Select "S7 connection" as theconnection type.

    Then click the "Apply" button to openthe Properties dialog of the S7connection.

    4. In the Properties dialog of the S7

    connection "General" tab youdetermine the connection number bymeans of the block parameter "ID".You specify the connection number atthe "ID" input parameter of thesystem functions used for sendingand receiving the data.

    The system functions are called inthe user program of the CPU.

    Deactivate the function "Activeconnection establishment" becausethe S7-400 is passively involved inestablishing the S7 connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    25/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 25

    No. Configuration step Note

    5. In the Properties dialog of the S7connection "General" tab you enterthe IP address of the communication

    partner, i.e. in this example you enterthe IP address 172.16.43.2 ofCP343-1.

    Click on the "Address Details..."button.

    6. In the "Address Details" dialog thelocal connection end point in the S7-400 and the connection end point inthe communication partner aredefined with the local TSAP and thepartner TSAP respectively.

    The connection resource "12" and therack and slot of the S7-400 CPU arespecified as the local TSAP.

    For the partner you enter the rackand slot of the CP in the S7-300 andselect the connection resource for thepartner so that the local TSAP of theS7-300 is defined as the partnerTSAP.

    Apply the settings with "OK".

    Slot of the CP

    local TSAP in the S7-400 station local TSAP in the S7-300 station

    7. Mark the CPU of the SIMATIC 400station. The configured S7connection is now displayed in theconnection table.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    26/35

    2 Configuration

    26Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    8. Once you have completed theconnection configuration, you saveand compile the configuration.

    Mark the SIMATIC 400 station anddownload the configuration into theS7-400 CPU.

    Save and Compile download

    9. Call the system functions below in theuser program of the S7-400.

    SFB12 "BSEND" and SFB13"BRCV" or

    SFB8 "USEND" and SFB9"URCV" or

    SFB14 "GET" and SFB15 "PUT"

    These system functions are available in the library"Standard Library System Function Blocks Blocks".

    At the link below is a sample program for the S7-400with the call of the system functions SFB14 "GET" andSFB15 "PUT".

    http://support.automation.siemens.com/WW/view/de/1819293

    http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293
  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    27/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 27

    2.3 Configuring the S7 Connection Unilaterally

    Once you have completed configuration of CP343-1 and CP443-1 Advanced and

    have downloaded the hardware configuration into the S7-300 CPU and the S7-400CPU, then you configure the S7 connection for data exchange between S7-300and S7-400 by way of Industrial Ethernet CPs.

    Using the function blocks/system functions FB/SFB14 "GET" and FB/SFB15 "PUT"you can also transfer the data over unilaterally configured S7 connections,because they are based on the client-server principle.

    2.3.1 Configuring an S7 connection unilaterally for the S7-300

    Below we describe how to configure an S7 connection unilaterally for S7-300.

    The connection parameters below are used for the S7 connection in this example.

    Table 2-10

    Connection parameters S7-300

    Connection partners Unspecified

    Connection type S7 connection

    IP address 172.16.43.2

    IP address of the communication partner 172.16.49.99

    Connection setup Active

    ID (connection number) 4

    LADDR(module start address)

    W#16#0100

    Local TSAP 12.04

    Partner TSAP 03.02

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    28/35

    2 Configuration

    28Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    Table 2-11

    No. Configuration step Note

    1. In the SIMATIC Manager you open

    the STEP 7 project that contains theconfiguration of S7-300 which is tosend and receive the data over an S7connection.

    By means of the menu Options

    Configure Network you open

    NetPro where you configure the S7connection.

    2. Mark the CPU of the SIMATIC 300station and create a new connectionby means of the menu Insert

    New Connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    29/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 29

    No. Configuration step Note

    3. In the "Insert New Connection" dialogyou select the item "unspecified" asconnection partner.

    Select "S7 connection" as theconnection type.

    Then click the "Apply" button to openthe Properties dialog of the S7connection.

    4. In the Properties dialog of the S7

    connection "General" tab youdetermine the connection number bymeans of the block parameter "ID".You specify the connection number atthe "ID" input parameter when youcall the function blocks FB14 "GET"and FB15 "PUT".

    These function blocks are called inthe user program of the CPU and arefor sending and receiving data.

    Activate the function "Activeconnection establishment" becausethe S7-300 actively establishes theS7 connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    30/35

    2 Configuration

    30Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    5. In the Properties dialog of the S7connection "General" tab you enterthe IP address of the communication

    partner, i.e. in this example you enterthe IP address 172.16.49.99 ofCP443-1 Advanced.

    Click on the "Address Details..."button.

    6. In the "Address Details" dialog thelocal connection end point in the S7-300 and the connection end point inthe communication partner aredefined with the local TSAP and thepartner TSAP respectively.

    For the partner you select theconnection resource "03", becausethe S7 connection is configuredunilaterally for the S7-300.Specify the rack and slot of the S7-400 CPU for the partner.

    The partner TSAP "03.02" is used inthis example.

    Apply the settings with "OK".

    Slot of the CPU

    l ocal T SAP in the S7-300 station Partner T SAP

    7. Mark the CPU of the SIMATIC 300station. The configured S7connection is now displayed in theconnection table.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    31/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 31

    No. Configuration step Note

    8. Once you have completed theconnection configuration, you saveand compile the configuration.

    Mark the SIMATIC 300 station anddownload the configuration into theS7-300 CPU.

    Save and compile download

    9. In the user program of the S7-300you call the functions FB14 "GET"and FB15 "PUT".

    You will find function blocks in the library"SIMATIC_NET_CP CP CP 300 Blocks".

    At the link below is a sample program for the S7-300with the call of the function blocks FB14 "GET" andFB15 "PUT".

    http://support.automation.siemens.com/WW/view/de/22792404

    2.3.2 Configuring an S7 connection unilaterally for the S7-400

    Below we describe how to configure an S7 connection unilaterally for S7-400.

    The connection parameters below are used for the S7 connection in this example.

    Table 2-12

    Connection parameters S7-400

    Connection partners Unspecified

    Connection type S7 connection

    IP address 172.16.49.99

    IP address of the communication partner 172.16.43.2

    Connection setup Active

    ID (connection number) 5

    LADDR(module start address)

    W#16#3FFA

    Local TSAP 15.02

    Partner TSAP 03.02

    http://support.automation.siemens.com/WW/view/de/22792404http://support.automation.siemens.com/WW/view/de/22792404http://support.automation.siemens.com/WW/view/de/22792404http://support.automation.siemens.com/WW/view/de/22792404
  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    32/35

    2 Configuration

    32Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    1. In the SIMATIC Manager you openthe STEP 7 project that contains theconfiguration of S7-400 which is to

    send and receive the data over an S7connection.

    By means of the menu Options

    Configure Network you open

    NetPro where you configure the S7connection.

    2. Mark the CPU of the SIMATIC 400station and create a new connectionby means of the menu Insert

    New Connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    33/35

    2 Configuration

    Technical instructions on configuring an S7 connectionV1.0, Item ID: 17628518 33

    No. Configuration step Note

    3. In the "Insert New Connection" dialogyou select the item "unspecified" asconnection partner.

    Select "S7 connection" as theconnection type.

    Then click the "Apply" button to openthe Properties dialog of the S7connection.

    4. In the Properties dialog of the S7

    connection "General" tab youdetermine the connection number bymeans of the block parameter "ID".You specify the connection number atthe "ID" input parameter when youcall the system functions SFB14"GET" and SFB15 "PUT".

    These system functions are called inthe user program of the CPU and arefor sending and receiving data.

    Activate the function "Activeconnection establishment" becausethe S7-400 actively establishes theS7 connection.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    34/35

    2 Configuration

    34Technical instructions on configuring an S7 connection

    V1.0, Item ID: 17628518

    No. Configuration step Note

    5. In the Properties dialog of the S7connection "General" tab you enterthe IP address of the communication

    partner, i.e. in this example you enterthe IP address 172.16.43.2 ofCP343-1.

    Click on the "Address Details..."button.

    6. In the "Address Details" dialog thelocal connection end point in the S7-400 and the connection end point inthe communication partner aredefined with the local TSAP and thepartner TSAP respectively.

    For the partner you select theconnection resource "03", becausethe S7 connection is configuredunilaterally for the S7-400.Specify the rack and slot of the S7-300 CPU for the partner.

    The partner TSAP "03.02" is used inthis example.

    Apply the settings with "OK".

    Slot of the CPU

    local TSAP in the S7-400 Partner TSAP

    7. Mark the CPU of the SIMATIC 400station. The configured S7connection is now displayed in theconnection table.

  • 7/29/2019 Technical Instructions for Configuring an S7 Connection

    35/35

    2 Configuration

    No. Configuration step Note

    8. Once you have completed theconnection configuration, you saveand compile the configuration.

    Mark the SIMATIC 300 station anddownload the configuration into theS7-300 CPU.

    Save and Compile download

    9. In the user program of the S7-400you call the system functions SFB14"GET" and SFB15 "PUT".

    These system functions are available in the library"Standard Library System Function Blocks Blocks".

    At the link below is a sample program for the S7-300with the call of the function blocks SFB14 "GET" andSFB15 "PUT".

    http://support.automation.siemens.com/WW/view/de/1819293

    http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293http://support.automation.siemens.com/WW/view/de/1819293