Siemens NCM S7 Manual

Simatic net ncm for industrial ethernet
Table of Contents

Advertisement

Quick Links

SIMATIC NET
NCM for Industrial Ethernet
Manual
for NCM S7 V5.2 and higher
11/2002
C79000–G8976–C129
Release 06
Preface, Contents
Communication via Ethernet CPs
in S7 Stations
Installing and Starting the
Ethernet CP with STEP 7
SEND/RECEIVE
interface
Configuring Communication
Connections
Programming Functions (FCs)
NCM S7 Diagnostics
Firmware Loader
Appendix
References
Glossary
Linking to Other Systems with
FETCH/WRITE
Document History
Index
1
2
3
4
5
6
7
A
B
C
D

Advertisement

Table of Contents
loading

Summary of Contents for Siemens NCM S7

  • Page 1 Installing and Starting the NCM for Industrial Ethernet Ethernet CP with STEP 7 SEND/RECEIVE Manual interface Configuring Communication Connections for NCM S7 V5.2 and higher Programming Functions (FCs) NCM S7 Diagnostics Firmware Loader Appendix References Glossary Linking to Other Systems with...
  • Page 2 Note highlights important information on the product, using the product, or part of the documentation that is of particular importance and that will be of benefit to the user. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 3 Before you use the supplied sample programs or programs you have written your- self, make certain that no injury to persons nor damage to equipment can result in your plant or process. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 4 For ordering data of the documentation please refer to the catalogs or contact your local SIEMENS representative. Copyright E Siemens AG 2001–2002 All rights reserved Disclaimer of Liability The reproduction, transmission or use of this document or its contents is not We have checked the contents of this manual for agreement with the hard- permitted without express written authority.
  • Page 5 ...supports you when using the communication services provided by the SIMATIC NET communications processors (Industrial Ethernet CPs) for communication on SIMATIC NET with Industrial Ethernet in the management and cell areas. The documentation on your S7-CPs and NCM S7 is in several parts that fit together as shown below: S7-CP –...
  • Page 6 This manual is intended for personnel responsible for installing and programming STEP 7 programs and for service personnel. Scope of this Manual This manual applies to version 5.2 and higher of the NCM S7 configuration software for Industrial Ethernet and to version 5.2 and higher of the STEP 7 software.
  • Page 7: Networking Stations With Step

    This Manual on SIMATIC NET NCM S7 for Industrial Ethernet You will find additional information in the following sources: This manual is also part of the NCM S7 for Industrial Ethernet documentation package. These documents are also on the Manual Collection CD supplied with every S7-CP and they are also available on the Internet.
  • Page 8 This Manual on SIMATIC NET NCM S7 for Industrial Ethernet Quick Start CD: Samples covering all aspects of communication The Quick Start CD that can be ordered separately is a treasure-trove of sample programs and configurations. You can order this directly over the Internet at: http://www.ad.siemens.de/net/html_00/online_zugreifen.htm...
  • Page 9 This Manual on SIMATIC NET NCM S7 for Industrial Ethernet Access to Online Help of STEP 7 and NCM S7 With the online help, you can obtain the following information: S You can display the contents of the STEP 7 basic help system with the menu command Help –>...
  • Page 10: Table Of Contents

    Installing and Starting the Ethernet CP with STEP 7 ..... . . General Information About the NCM S7 for Industrial Ethernet Option Procedure .
  • Page 11 ....... . . SIMATIC NET NCM S7 for Industrial Ethernet...
  • Page 12 ........SIMATIC NET NCM S7 for Industrial Ethernet...
  • Page 13: Communication Via Ethernet Cps In S7 Stations

    /8/. S For using, structuring and handling Industrial Ethernet, you will find detailed information in /11/. S For a general introduction to local area networks with TCP/IP refer to /16/ and /17/. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 14: Industrial Ethernet

    Figure 1-1 Industrial Ethernet in the SIMATIC NET Concept Network Access Industrial Ethernet is accessed using the CSMA/CD (Carrier Sense Multiple Access with Collision Detection) network access technique specified in IEEE 802.3. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 15: Simatic S7 Communication With S7 Ethernet Cps

    FTP / IP protocol S PG/OP communication PG/OP communication is used to download programs and configuration data, to run tests and diagnostic functions, and to control and monitor a plant from OPs. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 16 S HTML process control With an IT-CP, use the supplied functions and HTML pages to query important system data using a Web browser (you should also refer to the instructions on the IT-CP /5/). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 17 HTML process control PROFInet FTP services PG/OP S7 communication S7 communication SEND/RECEIVE communication S7/M7-400 SEND/RECEIVE SEND/RECEIVE FETCH/WRITE S7 communication FTP services SEND/RECEIVE FETCH/WRITE HTML process control FTP services 1) PC only as client SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 18 To connect and configure the Ethernet CP, you require the STEP 7 configuration software and the SIMATIC NET NCM S7 for Industrial Ethernet option. NCM S7 for Industrial Ethernet is installed as a STEP 7 option and is therefore integrated in STEP 7.
  • Page 19: Pg/Op Communication Via Industrial Ethernet

    PG/OP communication on Industrial Ethernet allows the operation and monitoring of all modules in a SIMATIC S7 PLC using operator interface systems (TD/OP). The Ethernet CP acts as a “communications relay” that relays the PG/OP communication via Industrial Ethernet. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 20 CP and download to the Ethernet CPs Ethernet S7 – 400 S7 – 300 Ethernet CP WAN * * only TCP/IP S7 – 400 Ethernet CP Ethernet CP Figure 1-2 Configuration for PG/OP Operation SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 21: Pg Communication With Step 7 Over Industrial Ethernet

    2. Set the PG/PC interface according to the CPs available on your PG and according to the bus attachment (interface parameter assignment used). For more detailed information on the topic of PG operation and engineering station, refer to /4/. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 22 To be able to use S7 communication, address the required module in the SIMATIC S7 PLC on your operator interface system. For more detailed information, refer to the description of your operator interface system. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 23: S7 Communication On Industrial Ethernet

    PUT / GET BSEND / BRECV USEND / URECV WAN * * only TCP/IP PC/PG with Ethernet CP S7 – 300 / 400 Figure 1-3 Nodes Communicating on S7 Connections over Industrial Ethernet SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 24 PC/PG station communicates over a gateway with S7 stations on an underlying PROFIBUS or Ethernet For more detailed information on the features supported by your Ethernet CP, refer to the manual /1/. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 25 If information in the word or double-word format is located across such bounda- ries, data inconsistency may arise during transmission using S7 communication! For more detailed information, refer to the STEP 7 documentation /9/. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 26 In this situation, configure a one-ended S7 connection to the PC/PG station in the other subnet for the PC/PG station in STEP 7 NetPro. You can then access data in the S7 station in your user program using the functions PUT (writing) and GET (reading). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 27: S5-Compatible Communication (Send/Receive Interface)

    SEND/RECEIVE interface. ISO transport is operated only on Industrial Ethernet and is optimized for high-performance operation at the self-contained manufacturing level. The previous name of the SEND/RECEIVE interface was S5S5 connections SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 28 SEND/RECEIVE interface Data transfer is triggered by the user program. The interface to the user program in the SIMATIC S7 is formed by special SIMATIC S7 blocks of the type FC (functions). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 29 D D D Other station with SIMATIC S5 PG/PC with Ethernet Ethernet attachment with Ethernet CP attachment Internet only TCP/IP Router Figure 1-5 SIMATIC S7 PLC with Possible Communications Partners on the SEND/RECEIVE Interface SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 30: Fetch/Write Services (Server)

    With these FCs, you can coordinate access to system memory areas so that no inconsistent data are created and transferred. SIMATIC S5 On the SIMATIC S5 station, the FETCH/WRITE services are configured and started by READ ACTIVE/PASSIVE and WRITE ACTIVE/PASSIVE. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 31 The SIMATIC Manager provides convenient tools for configuring and documenting networks (also graphically with NetPro). The chapters describing network configuration in /6/ and the online help system also contain information about configuring SIMATIC S7 networks. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 32 More than one subnet – more than one project Internetwork connections (TCP) These variants will be used as a basis to illustrate how real configurations can be created in STEP 7 projects. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 33: Network/Project Variant: One Subnet - One Project

    View in a STEP 7 Project You create an Industrial Ethernet object in the STEP 7 project. Stations created in the same project refer to this object as soon as they are configured as network nodes. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 34: Network/Project Variant: Simatic S5 And Non-Simatic Devices

    S7-300/2 View in a STEP 7 Project SIMATIC S5 stations you intend to include in the communication can be selected directly. Non-SIMATIC devices must be entered in the configuration as Other stations. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 35: Network/Project Variant: Two Or More Subnets - One Project

    S More than one subnet can be managed in one project. S Each station is created once in the project. S Each station can be assigned to more than one subnet by assigning its CPs to different subnets. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 36: Network/Project Variant: One Subnet - More Than One (Sub)Project

    In this case, agreement is necessary, for example, regarding the assignment of connection names because it will be far easier when synchronizing the projects SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 37 The stations can then communicate immediately over the created connections after the configuration data have been downloaded. Use this variant when you want to operate projects separately due to the complexity. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 38 S You can leave the representative objects with the configured connections unchanged. S You can reassign the connection partner and then delete the representative objects. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 39: Network/Project Variant: Several Subnets In Several (Sub) Projects

    If you use a multiproject organization, follow the steps below to connect the S7-400/1 station to the PROFIBUS (1) subnet: Create a subnet of the type PROFIBUS in both subprojects and merge these two subnets in NetPro. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 40 To be able to network the representative objects, you must once again create a subnet of the type PROFIBUS in both projects as shown in the example here. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 41: Network/Project Variant: Connections Between Subnets (Tcp/Ip)

    Ethernet CP * only TCP/IP View in a STEP 7 Project If the stations in the two networks are managed in the same project, the networking appears as shown below in NetPro. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 42 Communication via Ethernet CPs in S7 Stations SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 43: Installing And Starting The Ethernet Cp With Step 7

    S How the various network configurations are managed (setting up access to other systems) S How to control and supply the CP with data using NCM S7 You will find further information in the following sources: S When installing the Ethernet CP, please refer to the instructions in the manual /1/ supplied with the Ethernet CP.
  • Page 44: General Information About The Ncm S7 For Industrial Ethernet Option

    General Information About the NCM S7 for Industrial Ethernet Option Installation Please follow the instructions in the README file when installing the NCM S7 for Industrial Ethernet option on your PG/PC under STEP 7. Functions NCM S7 consists of the following: S CP-specific index dialogs that you call using the properties dialog box of the modules.
  • Page 45: Procedure

    – UDP Configuration data in the STEP 7 project Download the configuration to the PLC (see 2.4). The steps are explained in detail in the sections shown. Fields with broken lines are optional. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 46: Creating An Industrial Ethernet Subnet

    Result: An object of the type network is created in the project. This allows all the SIMATIC stations created in the project to be attached to this subnet. Figure 2-1 Project with Assigned Ethernet Network SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 47 Some parameters relate specifically to a subproject and remain unchanged; these include, for example, descriptive parameters such as the name, author, and any comments. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 48 Network > Check Interproject Consistency in NetPro to make sure that there is consistency throughout the multiproject. This check detects, for example, S7 subnet IDs that are not unique within the multipro- ject. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 49: Entering An Ethernet Cp In The Hardware Configuration

    You select CPs in the hardware catalog using a short text and the order number. Once you have installed NCM S7, the CPs are available in the catalog. Result: The CP is assigned to the SIMATIC station.
  • Page 50 6. You must finally confirm your input with OK, otherwise the networking is not entered (refer to Point 3.). Result: The CP is now configured as a network node for the corresponding S7 station. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 51 To be able to reach the CP using these addresses before you download the configuration data, you can address the CP using its default MAC address and then supply it with project-specific address information. How to do this is described in Section 2.3. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 52: Displaying The Network Attachments Of A Station

    Follow the steps below: 1. Double-click one of the network objects, for example Ethernet in your project in the SIMATIC Manager. Figure 2-3 NetPro View of a Subnet of the Type Industrial Ethernet SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 53 3. Select the “Interfaces” tab. Result: Figure 2-4 “Interface” Tab in the “SIMATIC 300/400” Properties Dialog Box In the displayed dialog, you can see the subnet attachments that were configured for the SIMATIC station. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 54: Setting Further Cp Properties

    The Addresses tab displays the address at which the module can be addressed by the user program. You require this address when calling the FCs for transport connections –> see Chapter 5. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 55 S7-300 CPU is used. CPU connection resources are also used, for example, by S7-300 CPs, in the FMS mode or by PGs and OPs. For more detailed information about the maximum connection resources, refer to /13/ and /7/. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 56 S7 connections. Otherwise you must expect your system to be more susceptible to problems since, for example, the number of transfer or connection establishment attempts is reduced compared with non-redundant systems. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 57 If this is not required, set the interval so high that the underlying connection is closed down when no further user data are sent before a keepalive is sent. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 58 The advantage of this mode is that the time of day can be synchronized beyond the boundaries of the subnet. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 59 Installing and Starting the Ethernet CP with STEP 7 Diagnostics Tab In the “Diagnostics” tab, you can start NCM S7 Ethernet Diagnostics. See Chapter 6 Diagnostics for a description of the diagnostic functions themselves. Addressing Tab In the ”Addressing” tab, you can assign the previously configured IP address and IP parameters to the CP.
  • Page 60: Substitute Objects" In The Step 7 Project

    These partners do not appear in the NetPro plant view. Plant Plant ”Production 1” ”Production 2” S7-400/1 S7-400/2 PC/PG S7–400/4 Non-Siemen s device Ethernet subnet (1) S7-400/5 S7-400/3 SIMATIC S5 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 61 2. In the Properties dialog box that is displayed select the ”Interfaces” tab and click the “New” button (for example “Other Station”. Result: The New Interface – Type Selection dialog box is displayed. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 62 IP). All the SIMATIC stations in the project can establish communication relationships to this substitute object. The addresses (MAP/IP) configured for the substitute object here must also be set on the station using the appropriate tool, for example COM 1430. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 63: Configuring Communication Services

    CPs. You will find this information in the online help with integrated in STEP 7 by selecting Help " Contents. Select the topic “Configuring Connections and Data Exchange. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 64: Assigning Addresses For The First Time (Applies To Latest Cps)

    This is described in Section 2.3.2. S Downloading configuration data using the ISO protocol Another option is to download configuration data with a defined IP address using the ISO protocol (see above). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 65: Addressing By Selecting The Target System In The Simatic Manager

    Addressing by Selecting the Target System in the SIMATIC Manager Follow the steps below to assign the IP address the first time: 1. Open the SIMATIC Manager 2. Select the menu command PLC " Assign Ethernet Address. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 66 5. Enter the required IP parameters and assign them to the CP. Result: The CP is now accessible on Industrial Ethernet using the IP address. Note You will find further detailed information on this procedure in the STEP 7 online help. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 67 You cannot modify the MAC address of the node. 4. Enter the required IP parameters and assign them to the CP (see above under STEP 5.). Result: The CP is now accessible on Industrial Ethernet using the IP address. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 68: Addressing Using The Properties Dialog In Hw Config Or Netpro

    7. Assign the IP parameters taken from the networking to the CP by clicking the relevant button. Result: The CP is now accessible on Industrial Ethernet using the IP address. Note You will find further detailed information on this procedure in the STEP 7 online help. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 69: Downloading The Configuration Data To The Target System

    Config; this is the only way you will be prompted to enter the current MAC address. The SIMATIC Manager, on the other hand, aborts the download if the target station cannot be reached. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 70 If you have assigned a new address to the Ethernet CP or have configured connections, you must always download the connection configuration again. Remember that you also make suitable address adaptations for the other stations or “substitute objects”. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 71 Notice If you drag the CP to a different slot, the data of the connection configuration are automatically updated. The data of the connection configuration must, however, be downloaded again! SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 72 Installing and Starting the Ethernet CP with STEP 7 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 73: Send/Receive Interface In The User Program

    SIMATIC S5 PLC with the CP 1430 TCP, PC with CP 1413), please refer to the appropriate manuals. S The FCs for programming connections are described in Section 5.3. S Configuring the Ethernet CP with NCM S7 is described in Chapter 4. Sample programs: Sample configurations and programs are available for the SEND/RECEIVE...
  • Page 74: How The Send/Receive Interface Works On The Cpu

    The Ethernet CP can transfer the amounts of data shown in the table below per job on one connection: Table 3-1 ISO Transport ISO-on-TCP Sending 8192 bytes 8192 bytes 8192 bytes 2048 bytes Receiving 8192 bytes 8192 bytes 8192 bytes 2048 bytes SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 75: Programming The Send/Receive Interface

    STEP 7 provides you with the option of accepting all the relevant parameters from the hardware configuration (HW Config) and from the connection configuration. For more information, refer to Section 5.2 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 76 The following points are illustrated by the diagram: S The user program consisting of any number of blocks (OBs, FBs or FCs –> see also /6/ accesses several connections (Figure 3-2 illustrates three connections). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 77 S At various points in the CPU cycle, the user program accepts the data received on the connection using an AG_RECV call. Note The blocks can also be called more than once in a cycle for the same communication connection. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 78: Data Exchange S7 Cpu <-> Ethernet Cp

    (at the earliest however with the next call). S AG_RECV/AG_LRECV: The job is acknowledged with “New Data Received” when the data have been transferred to the user program. Following this, the FC call can be repeated. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 79 Remember that resource shortages can occur if the processing speeds on the sender and receiver are not the same (sender faster than receiver). The sender receives a message from the FCs if problems occur (“No resources on the destination station”). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 80: Additional Information

    Fetch the appropriate length of user data in another receive job by specifying an ANY pointer of the required length on the FC interface for fetching the actual user data. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 81: Recommendations For Use With A High Communications Load

    OB1. S If necessary, reduce the time taken for communication processing on the CPU by changing the parameters set for “cyclic load due to communication” in the properties dialog of the CPU. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 82 SEND/RECEIVE Interface in the User Program SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 83: Configuring Communication Connections

    S You will find information on the numbers of connections and amounts of data in Section 3.1. S For information on configuring connections, refer to the online help of STEP 7 by selecting Help " Contents. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 84: Procedure

    (Refer to Section 3.2 and the appropriate tool. detailed FC description in Chapter 5). Configure connection properties. Download connection configurations to the CP necessary steps optional steps Figure 4-1 Operating Connections with the Ethernet CP SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 85: Possible Connection Configurations

    Ethernet CP Subnet 1 WAN* Ethernet CP LAN * only TCP/IP PG/PC with Ethernet CP SIMATIC S5 Subnet 2 Ethernet CP S7 – 400 Other station with Ethernet attachment Figure 4-2 Possible Connections SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 86 STEP 7 V5.2. The endpoints of these connections can be located in different projects. STEP 7 supports you both when creating interproject connections within a multiproject as well as when synchronizing connections that were configured without a multiproject context. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 87: Connections

    The term “connection” is also used here for UDP. Reason: during configuration (just as in TCP) the communication partners are assigned to each other and therefore logically “connected”. In actual fact, with UDP there is no explicit connection establishment between communication partners. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 88 Entry of the sender of the message in the job header. S When sending Evaluation of the job header and addressing the partner The connection is established automatically as soon as the partner is obtainable. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 89 All stations not in the STEP 7 project must be configured with substitute objects (for example as “SIMATIC S5” or “Other stations”). Use the “unspecified” partner type when you create the connection. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 90: Creating A New Connection

    1. In NetPro, select the station or the CPU in the station from which you want to establish the connection. 2. Select the menu command Insert " New Connections (also available with the right mouse button!). Result: The following dialog appears on the screen. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 91 Configuring Communication Connections SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 92 When you click OK, the connection is entered in the list, the dialog is terminated and the display in the main dialog is updated. If you click Cancel, the dialog is terminated and the connection is not entered in the list. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 93: Connections To Partners In Other Projects

    S STEP 7 object ”Partner in other project” (multiproject) With this method, a connection is reserved in both subprojects that can be synchronized later by the system when the partner project is included in the multiproject. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 94 Possible Connection Establishment MAC Address Establishment by any partner empty empty passive by any partner via specific TSAP empty specified passive to or by a specific partner specified specified active / passive SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 95 /1/supplied with the CP. If several CPs are installed in one station, the next CP is automatically selected if the limit is exceeded. The connections can be routed in the Properties dialog of the connection. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 96: Further Functions

    Windows applications. Print Function in the “Overview” Tab An additional function for printing the configured connections and configuration status is available in the “Overview” tab. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 97: Connections Without Assignment

    2. Adapt the connection ID in the user program. 3. Download the connection configuration to the CP again. Deleting the SIMATIC S7 All the connections to this station Reconfigure the station and station. are deleted within the project. connections. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 98 Status of the Connections in the “Overview” Tab (Example of ISO Transport Connections) Notice If you replace one CP with another, this must provide at least the same services and have at least the same version. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 99: Configuring Iso Transport Connections

    S7 station with their parameters and the status of the connection. S Status Information This tab displays the current status information for the connection (valid at the time the dialog is opened). This information corresponds to that displayed by NCM diagnostics. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 100: Specifying The Local Connection Endpoint

    General Tab This tab of the Properties dialog displays general connection parameters that identify the local connection endpoint. Figure 4-6 Layout of the Properties Dialog for the “General” Tab (ISO Transport Connections) SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 101 Interproject connections can then be joined up based on this reference. As soon as the connections have been brought together, the connection name (reference) can no longer be entered. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 102: Specifying Iso Transport Addresses

    The TSAPs of an ISO transport connection must match as follows: Remote TSAP (on Ethernet CP) = local TSAP (in destination station); Local TSAP (on Ethernet CP) = remote TSAP (in destination station); SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 103 Remote and local TSAPs can be identical since the connection is uniquely identified by the different MAC addresses. If you require more than one connection between two stations, the TSAPs must also be different. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 104 TSAP were not specified. If you do not make any further settings, this means that you are willing to accept a connection establishment request from any communication partner. Figure 4-9 Layout of the “Addresses” Tab of the Properties Dialog for an Unspecified Connection SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 105: Specifying Iso Transport Dynamic Properties

    This parameter specifies the interval after which an Modifiable unsuccessful transmission attempt can be triggered again (100–30000 ms, default 1000 ms). Max. Count Max. Count is the number of attempted transmissions Modifiable including the first (1–100, default 5). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 106 The partner responds to a sign of life frame with a frame. They are therefore sent to the partner at the intervals of the window time. To avoid unwanted connection termination, the inactivity time should be at least three times as long as the window time. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 107: Iso Transport With The Fetch/Write Mode

    If you select the WRITE mode, you allow direct write access to system memory on the SIMATIC S7 PLC. Such access can be, for example, from a SIMATIC S5 station or other station. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 108 As a result of FETCH/WRITE access, negative acknowledgments from the S7-CPU are possible. This then leads to corresponding connection-oriented entries in the diagnostic buffer that you can read out with NCM Diagnostics (see Section 6.5). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 109: Checking Iso Transport Connection Properties

    Connection Overview with Multiple CPUs in an S7 Station If you operate more than one CPU in your S7 station, you can click the button to extend the overview to the connections on all CPUs. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 110: Configuring Iso-On-Tcp Connections Properties

    S7 station with their parameters and the status of the connection. S Status Information This tab displays the current status information for the connection (valid at the time the dialog is opened). This information corresponds to that displayed by NCM diagnostics. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 111: Specifying The Local Connection Endpoint

    General Tab This tab of the Properties dialog displays general connection parameters that identify the local connection endpoint. Figure 4-12 Layout of the “General” Tab in the Properties Dialog for ISO-on-TCP Connections SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 112 Interproject connections can then be joined up based on this reference. As soon as the connections have been brought together, the connection name (reference) can no longer be entered. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 113: Specifying Iso-On-Tcp Addresses

    Figure 4-13 Sending and Receiving on One ISO-on-TCP Connection The address parameters are configured with NCM S7 and saved in the CP database. Modifications and extensions to the Industrial Ethernet network topology do not therefore have any effect on the CPU user program.
  • Page 114 Remote and local TSAPs can be identical since the connection is uniquely identified by the different MAC addresses. If you require more than one connection between two stations, the TSAPs must also be different. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 115 TSAP were not specified. If you make no further entries, you are accepting connection establishment from any communication partner. Figure 4-15 Layout of the “Addresses” Tab of the Properties Dialog for an Unspecified Connection SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 116: Iso-On-Tcp With The Fetch/Write Mode

    If you select the WRITE mode, you allow direct write access to system memory on the SIMATIC S7 PLC. Such access can be, for example, from a SIMATIC S5 station or other station. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 117 As a result of FETCH/WRITE access, negative acknowledgments from the S7-CPU are possible. This then leads to corresponding connection-oriented entries in the diagnostic buffer that you can read out with NCM Diagnostics (see Section 6.5). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 118: Checking Iso-On-Tcp Connection Properties

    Connection Overview with Multiple CPUs in an S7 Station If you operate more than one CPU in your S7 station, you can click the button to extend the overview to the connections on all CPUs. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 119: Configuring Tcp Connection Properties

    S Status Information This tab displays the current status information for the connection (valid at the time the dialog is opened). This information corresponds to that displayed by NCM diagnostics. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 120: Specifying The Local Connection Endpoint

    General Tab This tab of the Properties dialog displays general connection parameters that identify the local connection endpoint. Figure 4-17 Layout of the “General” Tab in the Properties Dialog for TCP Connections SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 121 Interproject connections can then be joined up based on this reference. As soon as the connections have been brought together, the connection name (reference) can no longer be entered. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 122: Specifying Tcp Addresses

    S Specified TCP connection You specified a destination station when you created the connection. S Unspecified TCP connection You entered “unspecified” for the connection partner when you created the connection. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 123 You can set any port address within this range. Port addresses higher than 5000 are used by the system! from 5000...65535 Note: If you want to use these port addresses, please contact your system administrator. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 124 The Addresses tab shown here illustrates the situation in which the remote port but not the IP address was specified. If you make no further entries, you are accepting connection establishment with any communication partner that uses the specified port. Figure 4-20 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 125: Tcp With The Fetch/Write Mode

    If you select the WRITE mode, you allow direct write access to system memory on the SIMATIC S7 PLC. Such access can be, for example, from a SIMATIC S5 station or other station. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 126 As a result of FETCH/WRITE access, negative acknowledgments from the S7 CPU are possible. This then leads to corresponding connection-oriented entries in the diagnostic buffer that you can read out with NCM Diagnostics (see Section 6.5). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 127: Checking Tcp Connection Properties

    Connection Overview with Multiple CPUs in an S7 Station If you operate more than one CPU in your S7 station, you can click the button to extend the overview to the connections on all CPUs. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 128: Configuring Udp Connection Properties

    S Status Information This tab displays the current status information for the connection (valid at the time the dialog is opened). This information corresponds to that displayed by NCM diagnostics. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 129: Specifying The Local Connection Endpoint

    The local ID is identical to the ID in the NetPro connection table (STEP 7 connection configuration) and is shown here to illustrate the assignment. Figure 4-22 Layout of the “General” Tab in the Properties Dialog for UDP Connections SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 130 Interproject connections can then be joined up based on this reference. As soon as the connections have been brought together, the connection name (reference) can no longer be entered. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 131: Specifying Udp Addresses

    You specified a destination station when you created the connection. Configuring broadcast or multicast provides you with a further option (see Section 4.7.3 below). S Unspecified UDP connection You entered “unspecified” for the connection partner when you created the connection. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 132 Fixed, must not be used! Assigned as default, should not be used (well-known ports) 1 to 1024 Range used by NCM in which a free port address is 2000... onwards searched for and assigned. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 133 UDP connection is only possible when the partner addresses (IP address and port ) are specified. Figure 4-25 Layout of the Properties Dialog in the “Addresses” Tab for the “Free UDP Connection” Mode SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 134: Udp With Broadcast And Multicast

    By specifying a particular group of recipients (multicast circle), load on recipients for which the message is not intended is prevented. Multicast therefore represents a better solution than broadcast when frames are sent to groups of partner stations. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 135 S For the application, this means that the S7-CP cannot receive broadcast frames intended for the transfer of user data. It is, however, possible for the module to send broadcast frames within the network. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 136 IP address (IP). You must enter a PORT address suitable for all partners you want to reach under PORT. Layout of the Properties Dialog “Addresses” Tab for the “Broadcast” Mode Figure 4-26 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 137 IP addresses from 224.0.0.0 to 239.255.255.255 can be used for IP multicast. Since the IP addresses up to 224.0.0.255 are reserved for special purposes, we recommend that you use IP addresses starting at 224.0.1.0 (default) for IP multicast. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 138: Checking The Properties Of A Udp Connection

    Connection Overview with Multiple CPUs in an S7 Station If you operate more than one CPU in your S7 station, you can click the button to extend the overview to the connections on all CPUs. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 139: Free Udp Connection

    Ethernet CP. The number of connections per station can be increased by adding more CPs. Up to 2042 bytes of user data can be transferred per job buffer. The job header uses an additional 6 bytes. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 140: Routing To Distribute Load

    If there is only one CP in the remote station, no selection is possible. If the partner is an “other station” or SIMATIC S5 PLC, one or more attachments are displayed for selection depending on the configuration and networking of the station. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 141: Programming Fcs (Functions) And Fbs For S7 Ethernet Cps

    S In the sample project PROJECT_ETHERNET that you can start immediately after installing NCM S7; for a description, refer to the Primer /3/. S On the Internet as downloadable sample projects; refer to the information in Appendix C “Support and Training”.
  • Page 142: General Notes On Fcs / Fbs

    SIMATIC Manager: S SIMATIC_NET_CP These blocks are available when you install the NCM S7 for Industrial Ethernet option (default setting in STEP 7 Setup). Please note that you must use different FCs for the S7-300 and S7-400 (separate libraries).
  • Page 143 Please take note of the version identifiers of the blocks you are using. The SIMATIC Manager block libraries installed with STEP 7 / NCM S7 contain the block versions that were current at the time of the STEP 7 release.
  • Page 144 You will find more information on replacing blocks in our Customer Support on the Internet. The manuals /1/ contain information on the compatibility of the S7-CPs and the corresponding blocks (FCs / FBs). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 145: Setting Parameters For Fc Calls

    With connection-oriented jobs, you must also reference the connection to be used by its connection ID. You will find this in the properties dialog of the connection under “Block parameters” (refer to the information in NetPro). SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 146 If you inadvertently address not a CP but another module type, errors occur that cannot be indicated by the error messages of the FCs themselves. This function is possible only with the block library ..V5.0 SP3 or later. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 147: Parameters For Specifying A Cpu Data Area (Input Parameters)

    FC are reset as follows: S DONE = 0 S NDR = 0 S ERROR = 0 S STATUS = 8180 for AG_RECV / AG_LRECV or 8181 for AG_SEND /AG_LSEND SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 148: Fcs For Configured Connections

    You will find an overview of the versions of the FCs/FBs in the documentation and block history. Application The following diagram illustrates the use of the FCs described here for bi-directional data transfer on one configured connection. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 149 FCs AG_LSEND or AG_LRECV. Please check the length of the data area in the product information. The following table shows the limit values of the various connection types. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 150 On specified connections, the address and job parameters are specified by the connection configuration. The user program only provides the user data in the UDP data area when sending with AG_SEND / AG_LSEND or receives the data with AG_RECV / AG_LRECV. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 151 6 bytes are reserved for the job header. Please note that the data length specified in the block call (LEN parameter) must include the header and the user data! SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 152: Fc5 Ag_Send / Fc50 Ag_Lsend

    //=LADDR 256 dec. in hardware configuration MW 14 //Buffer with send data DONE M 10.1 //Length for send data ERROR M 10.2 //Execution code STATUS := MW 16 //Error code //Status code SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 153 To update the status code without starting a new send job, start a new block call with the parameter ACT = 0. Refer to the sample program at the end of Section 5.3.1. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 154 AG_SEND 0, 0, 8181 Transfer Supply AG_SEND “X” ACT = 0 active on Ethernet AG_SEND 0, 0, 8181 AG_SEND 1, 0, 0000 Time Time Time Legend: 1) parameter transfer DONE, ERROR, STATUS SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 155 Specify this address here. SEND INPUT Specifies the address and length. The address of the data area refers to one of the following: – Process image area – Bit memory – Data block area SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 156 DONE and ERROR parameters. Condition Codes The following table shows the condition codes formed by the DONE, ERROR and STATUS parameters that must be evaluated by the user program. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 157 8F33 DB number error. 8F3A Area not loaded (DB). 8F42 Timeout reading a parameter from the I/O area. 8F44 Address of the parameter to be read is disabled in the access track. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 158 There are too many jobs pending. 80C3 CPU resources (memory) occupied. 80C4 Communication error (occurs temporarily and a repetition in the user program will often remedy the problem). 80D2 Module base address incorrect. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 159 Neither DONE nor ERROR is set, the job is still running. //–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– done S M100.0; Job completed without error. Set ACT = TRUE so BEU; that the following call can trigger the new job. //––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 160 BEU; error disappears. //––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– END_FUNCTION ORGANIZATION_BLOCK OB100 TITLE = Init_for_FC100 FAMILY: S7300 NAME: SENDE_DEMO_INIT VERSION: VAR_TEMP OB1_System: array [1..20] of byte; END_VAR BEGIN S M100.0 Initialize ACT parameter END_ORGANIZATION_BLOCK SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 161: Fc6 Ag_Recv / Fc60 Ag_Lrecv

    RECV P#M 0.0 BYTE 100 //Buffer for received data DB 110.DBX 0.6 //Receive code ERROR DB 110.DBX 0.7 //Execution code STATUS := DB 110.DBW 2 //Error code DB 110.DBW 4 //Status code SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 162 Please not the following special feature on TCP connections: With the S7-CPs for S7-400, you must use FC AG_LRECV on TCP connections! With the latest S7-CPs for S7-300, you must also use FC AG_RECV for TCP connections. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 163 1, 0, 0000 Accept / evaluate received data “B” Transfer AG_RECV “C” active on Ethernet Time Time Time Legend: 1) Parameter transfer NDR, ERROR, STATUS The status code is updated at each block call. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 164 STATUS OUTPUT WORD see following Status code table For the meaning of this parameter in conjunction with the NDR and ERROR parameters, refer to the following table. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 165 No configuration or the ISO transport service has not yet started on the Ethernet CP. 8184 System error (the source data area is incorrect). 8185 Destination buffer (RECV) is too short. 8186 ID parameter invalid. ID != 1,2..16 (S7-300). ID != 1,2..64.(S7-400) SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 166 There are too many jobs pending. 80C3 CPU resources (memory) occupied. 80C4 Communication error (occurs temporarily and a repetition in the user program will often remedy the problem). 80D2 Module base address incorrect. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 167: Fcs For Access Coordination With Fetch/Write

    The following diagram illustrates the usual chronological sequence of memory access coordination controlled in the user program with AG_LOCK and AG_UNLOCK. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 168 FETCH/WRITE access active. If LOCKED=1 is indicated, this shows that the lock is active; data can now be modified by the user program. The status code is updated at each block call. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 169: Fc7 Ag_Lock

    DB 100.DBW 4 //Status code LOCKED := DB 100.DBX 0.6 //Status code of access disable Explanation of the Formal Parameters The following table explains all the formal parameters for the AG_LOCK function: SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 170 CP is not processing a job 7001 FETCH active 7002 WRITE active 8183 FETCH/WRITE not configured for this connection 8186 ID number not in permitted range (e.g. 1...64 with S7-400 Industrial Ethernet CPs) SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 171: Fc8 Ag_Unlock

    To release the connection again, the LOCK request bit must be reset by the FC again. The FC also shows the current status using error messages. Explanation of the Formal Parameters The following table explains all the formal parameters for the AG_UNLOCK function: SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 172 CP is not processing a job 7001 FETCH active 7002 WRITE active 8183 FETCH/WRITE not configured for this connection 8186 ID number not in permitted range (e.g. 1...64 with S7-400 Industrial Ethernet CPs) SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 173: Numeric Data / Resource Requirements Of The Fcs

    Table 5-7 Information for FCs with an S7-300 NAME Version FC no. Load Work Local data memory memory Bytes Bytes bytes bytes AG_SEND 1916 1610 1574 AG_RECV 1408 1174 1138 AG_LOCK AG_UNLOCK SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 174 Programming FCs (Functions) and FBs for S7 Ethernet CPs SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 175: Ncm S7 Diagnostics

    This chapter provides a general overview of the individual diagnostic functions. The following checklist will help you to recognize several typical problems and their possible causes and shows how you can use the NCM S7 for PROFIBUS diagnostics tool to remedy the situation.
  • Page 176: Overview

    What You Should Already Know You should be familiar with the basic information from Chapter 2 about handling NCM S7. This means that you know how to connect the Ethernet CP to the PG and how to control the module using the PG.
  • Page 177: Functions Of Ncm S7 Diagnostics

    S Diagnostics of ISO transport connections S Diagnostics of ISO-on-TCP connections S Diagnostics of TCP connections S Diagnostics of UDP connections; S Diagnostics of E-mail connections; S Diagnostics of TCP connections for PROFInet SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 178: Installing And Starting Ncm S7 Diagnostics

    NCM S7 Diagnostics is an integrated component of the NCM S7 for Industrial Ethernet optional package. NCM S7 Ethernet Diagnostics is installed along with NCM S7 for Ethernet on your There are several ways in which you can start the diagnostic tool:...
  • Page 179 NCM S7 Diagnostics Structure In the same way, for example, as the SIMATIC Manager, NCM S7 Diagnostics appears as a separate two-part application window with a menu and toolbar: Navigation area with diagnostic objects Content area with the diagnostic result S In the navigation area on the left-hand side, you will find the hierarchically arranged diagnostic objects.
  • Page 180: General Menu Commands

    " Diagnostics Close Online Connection... If you want to use more than one diagnostic connection at the same time, you can start NCM S7 diagnostics more than once. " Operating Mode You can control the CP as follows: Stop a module Stops the CP.
  • Page 181 “The online connection was terminated”. You can reestablish the connection to the CP with the corresponding acknowledgment in the dialog. The connection is then automatically reestablished whenever possible. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 182: Starting Diagnostics - Establishing A Connection To The Ethernet Cp

    CP: 1. Select the function “NCM Diagnostics” in the NCM S7 program group. NCM S7 Diagnostics is started with the message “No online connection to the CP” in the contents area. 2. Select the “Diagnostics "...
  • Page 183 2. Select the CP and open the Properties dialog. 3. Select the “Diagnostics” dialog. 4. Select the “Run” button. Result: NCM S7 Diagnostics is opened. The path is set automatically to match the current connection in STEP 7. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 184 To operate several diagnostic connections at the same time, you can start NCM S7 Diagnostics more than once. You can also start NCM S7 Diagnostics twice with an online connection to the same CP; this can, for example, be useful if you want to monitor the diagnostic buffer at the same time as running diagnostic functions on a connection.
  • Page 185: How To Use Diagnostics

    If necessary, correct configuration or programming. 2. Pinpoint your problem or task, for example based on the checklist in Section 6.6 and select the diagnostic function you require based on the recommendation in the list. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 186: Call-Specific Diagnostic Functions

    50 entries. To display and decode event messages recorded on the CP in detail. The In NCM S7, on the other hand, up to 500 diagnostic buffer provides you with messages can be saved! detailed information about all the All the CP functions can generate event communication services of the CP.
  • Page 187 Overview of all the communication Type connections of a particular type, for example all TCP connections; Information on the connection status " Connections Detailed information about the status " Type of a communication connection. Type-connection-n SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 188: Checklist For 'Typical Problems' In A System

    Meaning The following lists contain several typical problems and their possible causes and how you can use the NCM S7 Ethernet Diagnostics tool to remedy the situation. The checklists deal with the following topics: 1. Checklist for General CP Functions 2.
  • Page 189: Checklist For General Cp Functions

    Yellow STOP LED and red SF LED lit change to the RUN mode. loaded on the Ethernet continuously. Call up the diagnostic buffer in NCM S7 Ethernet Diagnostics. Example of an entry CP STOP due to invalid CP parameter assignment What to do: Correct the configuration of the Ethernet CP.
  • Page 190: Communication Connections Checklist

    The complete data field The buffer specified with What to do: is not sent on an ISO the ANY pointer is too Correct the LEN parameter and the ANY pointer. transport / small. ISO-on-TCP/UDP connection. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 191: Firmware Loader

    Firmware Loader This chapter will familiarize you with the uses and handling of the Firmware Loader. The firmware loader allows you to download more recent firmware versions to the SIMATIC NET modules. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 192: Application

    Working with the Firmware Loader Depending on the module type, the downloading is prepared and executed in three or four steps. For more detailed information, refer to the next section and the dialog boxes themselves. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 193: Loading Firmware

    Make sure that the load file you are using is intended as an update for the version of the firmware contained on your module. If you are in any doubt, contact your local Siemens advisor. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 194 Parameter Assignments” list box) and according to the bus attachment (“Properties” list box). For more detailed information, refer to the integrated help system. Continue to follow the instructions in the dialog to establish the connection to the Ethernet CP. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 195 With Industrial Ethernet, please note the instruction in the second step for displaying the emergency address. Using the Modify... button, you can set the PG/PC interface back to its original values. For more detailed information, refer to the integrated help system. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 196 Firmware Loader SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 197: A References

    Siemens AG NCM S7 for PROFIBUS Primer Part – of the documentation package NCM S7 for PROFIBUS – of the online documentation in the STEP 7 optional package NCM S7 for PROFIBUS SIEMENS AG NCM S7 for Industrial Ethernet Manual Part –...
  • Page 198 SIMATIC NET IT–CP, manual Part – of the documentation package NCM S7 for Industrial Ethernet – of the online documentation in the STEP 7 optional package NCM S7 for Industrial Ethernet Siemens AG SIMATIC STEP 7 Configuring Hardware with STEP 7...
  • Page 199 Lokale Netze – Kommunikationsplattform der 90er Jahre Andreas Zenk Addison–Wesley ISBN 3-89319-567-X /17/ TCP/IP Internet-Protokolle im professionellen Einsatz Mathias Hein International Thomson Publishing ISBN 3-8266-400-4 ITP Online-Center: http://www.ora.de /18/ RFC1006 (Request For Comment) SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 200 Manual Order Numbers The order numbers for the SIEMENS documentation listed above can be found in the catalogs “SIMATIC NET Industrial Communication, Catalog IK PI” and “SIMATIC Programmable Controllers SIMATIC S7 / M7 / C7”. You can obtain these catalogs and any further information you require from your local SIEMENS office or national head office.
  • Page 201: B Glossary

    ............SIMATIC NET NCM S7 for Industrial Ethernet...
  • Page 202: General Section

    –> server. Configuration data Parameters that determine the modes and functions of a–> CP. They are set and downloaded using the NCM S7 configuration tool. Communications Processor. Module for communications tasks. CSMA/CD CSMA/CD (Carrier Sense Multiple Access with Collision Detection) Frame A message from one PROFIBUS/Ethernet station/node to another.
  • Page 203 At the start of the cyclic program, the signal states of the input modules are transferred to the process input image. At the end of the cyclic program, the pro- cess output image is transferred as a signal state to the output modules. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 204 Services Services provided by a communication protocol. SIMATIC NET Siemens SIMATIC Network and Communication. Product name for –> networks and network components from Siemens. (previously SINEC) SIMATIC NET Ind. Ethernet SIMATIC NET LAN system for industrial applications based on Ethernet.
  • Page 205 CP. The transport interface pre- sents itself to the control program in the form of handling blocks (HDBs). TSAP Transport Service Access Point Watchdog Mechanism for monitoring operability. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 206: Industrial Ethernet

    ISO-on-TCP connections allow program/event-controlled communication via Ethernet from a SIMATIC S7 PLC to S SIMATIC S7 PLC with Ethernet CP S SIMATIC S5 PLC with Ethernet CP S PC/PG with Ethernet CP S any system SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 207 (see ISO-on-TCP). The bits in the IP address whose corresponding bits in the subnet mask have the value 1 are assigned to the network number. Subnet number A –> system consists of several –> subnets with unique subnet numbers. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 208: Profinet

    View of the devices and the networks (Ethernet, PROFIBUS) in SIMATIC iMap. Plant view View of the technological functions of the automation system and its interconnections in SIMATIC iMap. One chart is displayed in the plant view. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 209 A PROFInet component always includes a technological function and the corresponding device. SIMATIC IMap Engineering tool from Siemens for Component based Automation. Allows the configuration, commissioning, and monitoring of modular, distributed automation systems based on the PROFInet standard. SIMATIC iMap – STEP 7 AddOn Software for the SIMATIC iMap interface to STEP 7.
  • Page 210 Glossary SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 211: Linking To Other Systems With Fetch/Write

    To be able to use this type of access, for example for PC applications, you need to know the PDU structure of the jobs. The required S7 or S5 header for request and response frames are 16 bytes long and their structure is described in this chapter. SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 212 Error field DBNR =FFh Empty field Start address High Byte Length empty field Low Byte Length High Byte Low Byte free Empty field =FFh. Length empty field Data up to 64 K SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 213 Start address High Byte Length empty field Low Byte Length High Byte Low Byte free Empty field =FFh. Length empty field Data up to 64 K but only if Error no. =0 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 214 Length of the Length of the source/dest. source/dest. source/dest. source/dest. data field in data field in data field in data field in words bytes bytes bytes permitted range 1...2048 1...256 1...128 1...128 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 215 Length of the Length of the source/dest. source/dest. source/dest. data field in data field in data field in bytes words (counter words (counter cell = 1 word) cell = 1 word) permitted range 1...256 SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 216 Linking to Other Systems with FETCH/WRITE SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 217: Document History

    FCs AG_LOCK and AG_UNLOCK. See Chapter 5. S NCM Diagnostics has a completely revised user interface. See Chapter 6 The description of NCM S7 Diagnostics has been restructured. While this manual provides you with an overview and checklists, the online help provides you with detailed information on the diagnostic events.
  • Page 218 Document History SIMATIC NET NCM S7 for Industrial Ethernet C79000-G8976-C129–06...
  • Page 219: Esimatic Net Support And Training

    105 installing and starting, 43 general, 100 procedure, 45 overview, 109 save connection, 96 unspecified connection, 104 ISO–on–TCP connection, specifying the connection partner, 111 block number, 142 general notes, 142 SIMATIC NET NCM S7 for Industrial Ethernet Index-223 C79000-G8976-C129–06...
  • Page 220 PG operation, with STEP 7 via Ethernet, 19 UDP connection, specifying the connection PG/PC interface, 23 partner, 129 PROFIBUS, 14 Unspecified connection, 94 PROFIBUS; user interface to, 23 PROFInet communication, 15, 16 SIMATIC NET NCM S7 for Industrial Ethernet Index-224 C79000-G8976-C129–06...
  • Page 221 Technical Support 24 hours a day, 365 days a year Phone: +49 (0) 180 5050-222 Fax: +49 (0) 180 5050-223 E-Mail: adsupport@ siemens.com GMT: +1:00 Europe / Africa (Nuernberg) United States (Johnson City) Asia / Australia (Beijing) Authorization Technical Support and...
  • Page 222 A&D Technical Support Service & Support on the Internet In addition to our documentation, we offer our Know-how online on the internet at: http://www.siemens.com/automation/service&support where you will find the following: • The newsletter, which constantly provides you with up-to-date information on your products.

Table of Contents