Siemens SIMATIC NET S7-CPs Configuring And Installing

Configuring and commissioning
Hide thumbs Also See for SIMATIC NET S7-CPs:

Advertisement

Quick Links

SIMATIC NET
Manual
Part A − General Application
Release 07/2010
C79000−G8976−C182−10
Preface, Contents
Communication in S7 Stations
Commissioning an Ethernet CP
Appendix A − E / Index
1
2
3
4
5
6
7
8
9
10
11
12
13

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC NET S7-CPs

  • Page 1: Table Of Contents

    Preface, Contents Communication in S7 Stations Characteristics of the Ethernet Commissioning an Ethernet CP SIMATIC NET SEND/RECEIVE interface S7-CPs for Industrial Ethernet Configuring Connections Configuring and Commissioning CP as PROFINET IO Controller S7−300 CP as PROFINET IO Device Manual Part A − General Application Sending Process Messages by E-Mail File Management and File...
  • Page 2 Classification of Safety−Related Notices This manual contains notices which you should observe to ensure your own personal safety, as well as to protect the product and connected equipment. These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger: Danger indicates that death or severe personal injury will result if proper precautions are...
  • Page 3: S7-Cps For Industrial Ethernet Configuring And Commissioning

    Siemens. This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended.
  • Page 4 For ordering data of the documentation please refer to the catalogs or contact your local SIEMENS representative. Copyright E Siemens AG 2001−2008 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 permitted without express written authority.
  • Page 5 Part B) for your S7-CP is in the SIMATIC NET Manual Collection. For details, refer to the References in the Appendix. After installing STEP 7, the examples described in the “Primer” are located in the project folder for sample programs (<drive>:\Programs\Siemens\Step7\EXAMPLES)! S7-CPs for Industrial Ethernet Configuring and Commissioning A−5 Release 07/2010...
  • Page 6 This manual... Audience This manual is intended for personnel responsible for installing and programming STEP 7 programs and for service personnel. Scope of this manual This manual is valid as of version V5.4 SP4 of the STEP 7 software. Notice If functions are described that require higher versions, this is indicated by an additional icon.
  • Page 7 This manual... New Technical Information / Content Apart from various adaptations to the currently available devices and the current versioln of STEP 7 / NCM S7 V5.5, the following changes were made: S In the Chapter “Configuring Communications Connections”, the information on unspecified connections as it relates to S7 connections was expanded S The previous name “S5−compatible communication”...
  • Page 8 The following table provides you with an overview of the content and the addresses for downloading from the Web. Title Content / Web Addresses Configuring and General section: CommissioningS7-CPs http://support.automation.siemens.com/WW/view/en/8777865 for Industrial Ethernet Configuration Manual Part A S7-CPs for Industrial Device descriptions: Ethernet...
  • Page 9 DVD was written. Version history/current downloads for the SIMATIC NET S7 CPs In the “Version History/Current Downloads for the SIMATIC NET S7-CPs”, you will find information on all previously available CPs for SIMATIC S7 (Ind. Ethernet, PROFIBUS and IE/PB Link).
  • Page 10 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://support.automation.siemens.com/WW/view/en/21827955 Additional information on SIMATIC S7 and STEP 7 The additional documentation on the basic software STEP 7 of the SIMATIC programmable controllers is included in electronic format in your STEP 7 installation.
  • Page 11 This manual... Symbols used in this manual Unless indicated otherwise, the functions described in this manual assume the use of STEP 7. This symbol is used to indicate functions that require a specific version of STEP 7 or higher, for example Version V5.2. This symbol appears in the margin to draw your attention to useful tips.
  • Page 12 Contents Contents Contents − Part A This manual............. A−5 1 Communication via Ethernet CPs in S7 Stations .
  • Page 13 Contents 2.4.5 Note on S7-400 CPU: Connection resources ..... A−59 3 Operating the Ethernet CP with STEP 7/NCM S7 ......A−60 How to commission an Ethernet CP .
  • Page 14 Contents 5.3.2 Connections to partners in other projects ......A−124 5.3.3 Further functions ..........A−126 5.3.4 Connections without assignment...
  • Page 15 Contents 7.3.2 Initialization and configuration ........A−188 Example of configuration and programming .
  • Page 16 Contents 11.3 Diagnostics pages of the CP ........A−242 11.3.1 Start page...
  • Page 17 Contents E Linking to Other Systems with FETCH/WRITE ......A−307 F Document History ............A−312 S7-CPs for Industrial Ethernet Configuring and Commissioning A−17...
  • Page 18 S7-CPs for Industrial Ethernet Configuring and Commissioning A−18 Release 07/2010 C79000−G8976−C182−10...
  • Page 19 1 Communication via Ethernet CPs in S7 Stations The Ethernet CP for SIMATIC S7 provides a series of communications services for different tasks. This chapter explains the following: S The types of communication possible with the Ethernet CP on Industrial Ethernet S The tasks handled by the Ethernet CP for the various services S How to create the conditions for your communications requirements...
  • Page 20 1 Communication via Ethernet CPs in S7 Stations Industrial Ethernet Definition Within the open, heterogeneous SIMATIC NET communication system, Industrial Ethernet is the network for the management and cell level. Physically, Industrial Ethernet is an electrical network that uses a shielded coaxial cable or twisted pair or an optical network with fiber-optic cables.
  • Page 21 1 Communication via Ethernet CPs in S7 Stations SIMATIC S7 communication with S7 Ethernet CPs 1.2.1 Possible types of communication The Ethernet CP for SIMATIC S7 supports the following types of communication depending on the CP type: Ethernet CP Ethernet CP S7-400 S7-300 Interfaces / Services /...
  • Page 22 1 Communication via Ethernet CPs in S7 Stations 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. S S7 communication S7 communication forms a simple and efficient interface between SIMATIC S7 stations and PGs/PCs using communication function blocks.
  • Page 23 1 Communication via Ethernet CPs in S7 Stations For PROFINET IO communication, TCP connections are used to assign parameters and RT (real time) or IRT (isochronous real time) for cyclic IO data traffic. S PROFINET CBA An S7 station equipped with a CP capable of PROFINET CBA can be interconnected as a PROFINET CBA component in SIMATIC iMap.
  • Page 24 1 Communication via Ethernet CPs in S7 Stations 1.2.2 The communication services of the Ethernet CPs Depending on the module type, the S7-CPs support the following communications options: Automation system Supported functions PG/OP Open PROFINET comm comm. Module services CP 343-1 Lean −...
  • Page 25 1 Communication via Ethernet CPs in S7 Stations Possibilities for communication between device types The possible communication available with the types of communication listed above is shown in the following table: S5-115 to PC station S7-400 -155U/H ET 200 S7-300 S7-300 S7 communication S7 communication...
  • Page 26 1 Communication via Ethernet CPs in S7 Stations 1.2.3 Operation using a configured or programmed database Configuration and diagnostics The STEP 7 or NCM S7 configuration software is required to connect and configure the Ethernet CP. NCM S7 provides a wide range of diagnostic functions for the various types of communication with Industrial Ethernet.
  • Page 27 1 Communication via Ethernet CPs in S7 Stations PG/OP communication via Industrial Ethernet Application PG/OP communication provides functions that are already integrated in every SIMATIC S7/M7/C7 device. A distinction must be made between the following two types of function: S PG communication PG communication with STEP 7 PLCs on Industrial Ethernet means the following: −...
  • Page 28 1 Communication via Ethernet CPs in S7 Stations Operator Interface functions PC with Ethernet CP STEP 7 Ethernet attachment Modem / NCM S7 ISDN Create configuration data for every CP and download to the Ethernet CPs Ind. Ethernet Router (for example S7 −...
  • Page 29 1 Communication via Ethernet CPs in S7 Stations 1.3.1 PG communication with STEP 7 over Industrial Ethernet Requirements for PG communication PG communication is possible when the following requirements are met: S An Ethernet CP is installed in the PG or engineering station or there is a modem/ISDN interface for remote access.
  • Page 30 1 Communication via Ethernet CPs in S7 Stations 1.3.2 OP operation: Connecting operator interface devices via Industrial Ethernet Requirements Operation allowing operator interface functions is possible when the following conditions are met: S The following are installed in the operator control and monitoring device: −...
  • Page 31 1 Communication via Ethernet CPs in S7 Stations S7 communication on Industrial Ethernet Application S7 communication via Industrial Ethernet allows program-controlled communication using communication SFBs/FBs via configured S7 connections. Per job, up to 64 Kbytes of user data can be transmitted. The Ethernet CP acts as an “S7 communication relay”...
  • Page 32 1 Communication via Ethernet CPs in S7 Stations Nodes Two situations must be distinguished depending on device type and plant configuration: S Client and server functionality at both ends S7 connections can be operated between the following nodes with the entire functionality of S7 communication: −...
  • Page 33 1 Communication via Ethernet CPs in S7 Stations S Client and server functionality at one end only (S7 connections configured at one end) In the following situations, write and read functions can be implemented with PUT / GET on one-ended S7 connections: −...
  • Page 34 1 Communication via Ethernet CPs in S7 Stations Configuring S7 connections Create S7 connections to use S7 communication for data exchange between two SIMATIC S7 stations. For more detailed information, refer to the STEP 7 Description /6/. Notice S7 connections via routers are supported only within a STEP 7 project but not between partners in different STEP 7 projects of a multiproject! Interface in the user program of the S7 station You use SFBs (for S7-400) and FBs (for S7-300) in the user program.
  • Page 35 1 Communication via Ethernet CPs in S7 Stations Notes on S7 communication between PC/PG station and S7 station Applications in a PC/PG station communicate with the S7 station over an OPC interface or SAPI-S7 interface for operator intervention, monitoring and control. The S7 stations use the integrated communication SFBs/FBs (client and server functionality at both ends).
  • Page 36 1 Communication via Ethernet CPs in S7 Stations Open communications services (SEND/RECEIVE interface) Application Using the SEND/RECEIVE interface, your S7 user program has access to open communications services with configured connections. Data transmission over a configured connection is suitable for the following types of transmission: S the reliable transmission of related blocks of data between two Ethernet nodes using...
  • Page 37 1 Communication via Ethernet CPs in S7 Stations IP (Internet Protocol) For internetwork data transmission, the following services are available with suitable CPs such as the CP 443-1: S ISO-on-TCP connection ISO-on-TCP is intended for reliable, internetwork data transmission. The ISO-on-TCP service corresponds to the TCP/IP standard (Transmission Control Protocol/Internet Protocol) with the RFC 1006 extension according to layer 4 of the ISO reference model (see /9/).
  • Page 38 1 Communication via Ethernet CPs in S7 Stations Stations The SEND/RECEIVE interface allows program-controlled communication on Industrial Ethernet between the SIMATIC S7 PLC and the following: S SIMATIC S7 PLC with Ethernet CP S SIMATIC S5 PLC with Ethernet CP S PC/PG with Ethernet CP S Stations with Ethernet attachment Ethernet CP...
  • Page 39 1 Communication via Ethernet CPs in S7 Stations FETCH/WRITE services (Server) Application In addition to the SEND/RECEIVE interface, the FETCH/WRITE functionality provides further services for open communications services on configured transport connections. The FETCH/WRITE interface is used primarily to attach SIMATIC S7 to SIMATIC S5 and to other non-S7 stations (for example PCs).
  • Page 40 1 Communication via Ethernet CPs in S7 Stations Networking stations with STEP 7 Configuring To allow stations to communicate with each other the networks must be configured in the STEP 7 projects. Configuring a network or subnet involves the following: 1.
  • Page 41 1 Communication via Ethernet CPs in S7 Stations Variants Before configuring networks with STEP 7, you should be aware of the various configurations possible in the STEP 7 project. The following configurations are typical for stations networked with CPs: Variant (examples) Characteristics/Configuration 1 subnet −...
  • Page 42 1 Communication via Ethernet CPs in S7 Stations 1.7.1 Network/project variant : One subnet, one project Configuration of the system In the simplest case, your system consists of SIMATIC S7 stations connected by one subnet, for example of the type Industrial Ethernet. S7-400/1 S7-300/1 System...
  • Page 43 1 Communication via Ethernet CPs in S7 Stations 1.7.2 Network/project variant: SIMATIC S5 and non-SIMATIC devices on the subnet Configuration of the system In addition to SIMATIC S7 stations, SIMATIC S5 stations and non-SIMATIC devices can be included in your system. S7-400/1 S7-400/1 System...
  • Page 44 1 Communication via Ethernet CPs in S7 Stations 1.7.3 Network/project variant: Two or more subnets, one project Configuration of the system Due to the different tasks of the stations or due to the extent of the system it may be necessary to operate more than one network. S7-400/1 Ethernet (1) System...
  • Page 45 1 Communication via Ethernet CPs in S7 Stations 1.7.4 Network/project variant: One subnet, multiple (sub) projects Configuration of the system In complex networked systems, during configuration it is sometimes more efficient to manage plant sections in different (sub) projects. The situation can arise that communication takes place over an interproject subnet and that interproject connections must then also be created.
  • Page 46 1 Communication via Ethernet CPs in S7 Stations The topic of multiprojects is dealt with in detail in the STEP 7 basic help. Here, you will find information on the following topics: S Requirements for interproject functions S How to create multiprojects S How to create a new project in a multiproject S How to separate a project from a multiproject S How to include projects in the multiproject...
  • Page 47 1 Communication via Ethernet CPs in S7 Stations Merging projects in the multiproject: If you have used the multiproject functions allowing you to use connections to a partner in an unknown project, STEP 7 will automatically attempt to synchronize two separately configured connections. If you have configured projects with representative objects and want to merge these projects into a multiproject, you have the following options: S You can leave the representative objects with the configured connections...
  • Page 48 1 Communication via Ethernet CPs in S7 Stations 1.7.5 Network/project variant: Multiple subnets in multiple (sub) projects Configuration of the system If several network types need to be used and if these need to be managed in different projects due to the different tasks of the stations or due to the large span of the plant, stations can be created as follows: S Using (sub) projects in the “multiproject”...
  • Page 49 1 Communication via Ethernet CPs in S7 Stations Organization in a multiproject 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.
  • Page 50 1 Communication via Ethernet CPs in S7 Stations 1.7.6 Network/project variant: Connections across subnets (TCP/IP) Configuration of the system If connections are required to stations on network structures connected by routers due to the differing tasks of the stations or the large span of the network, the stations in the other project can be reached by configuring “Other Stations”.
  • Page 51 1 Communication via Ethernet CPs in S7 Stations 1.7.7 Network/project variant: IP connection across subnets (TCP/IP) Configuration of the system If for example, you want to access to the production network from your company network (PG/PC), you can use an Advanced CP. PG/PC Ethernet (1) Gigabit...
  • Page 52 1 Communication via Ethernet CPs in S7 Stations − UNIX PC: route add −net 157.0.0.0 netmask 255.0.0.0 gw 157.55.80.1 Explanation of the example: 157.0.0.0 = target network 255.0.0.0 = netzmask 157.55.80.1 = address of the default gateway) When forwarding IP addresses, the Advanced CP does not distinguish between public and private addresses.
  • Page 53: Characteristics Of The Ethernet Cps

    2 Characteristics of the Ethernet CPs 2 Characteristics of the Ethernet CPs Communications processors for S7-300 The module was designed to match the components of the S7-300/C7-300 programmable logic controller and has the following features: S Compact modules (single or double-width) for simple installation on the S7 standard rail S Can be used in central or expansion racks;...
  • Page 54 2 Characteristics of the Ethernet CPs C-PLUG (at rear) LEDs Behind front panel: Text with MAC addresses Firmware version X = Placeholder for hardware Behind front version panel: PROFINET interface: Gigabit interface: 2 x 8-pin RJ-45 jack 1 x 8-pin RJ-45 jack Figure 2-1 Example: Front view of the CP 343-1 Advanced Communications processors for S7-400...
  • Page 55 2 Characteristics of the Ethernet CPs Placeholder for hardware version C-PLUG Firmware version LEDs Gigabit interface: 1 x 8-pin RJ-45 jack Port 1 Port 2 PROFINET interface: 4 x 8-pin RJ-45 jack Port 3 Port 4 Text with MAC addresses Figure 2-2 Example: Front view of the CP 443-1 Advanced S7-CPs for Industrial Ethernet Configuring and Commissioning...
  • Page 56 2 Characteristics of the Ethernet CPs Slot rules for SIMATIC S7-300 2.3.1 Permitted slots In the SIMATIC S7-300 there is no set slot assignment for the SIMATIC NET CPs. Slots 4 to 11 are permissible (1, 2 and 3 cannot be used for CPs). The SIMATIC NET CPs can be installed both in the central rack and in an expansion rack, linked to the central rack via an IM 360/IM 361 (K-bus connection).
  • Page 57 2 Characteristics of the Ethernet CPs 2.3.4 Removing/inserting (module replacement) Note Removing and inserting the SIMATIC NET CPs for the SIMATIC S7-300 while the power is on not permitted. You should also remember that by removing a module from the rack, all modules on the other side of it will be disconnected from the CPU.
  • Page 58 2 Characteristics of the Ethernet CPs Slot rules for SIMATIC S7-400 2.4.1 Permitted slots An S7-400 CP can be inserted both in the central rack and in the expansion rack with a K bus interface. In the SIMATIC S7-400, there is no set slot assignment for the SIMATIC NET CPs. Slots 2...18 are permitted.
  • Page 59 2 Characteristics of the Ethernet CPs 2.4.4 Removing/inserting (module replacement) Removing and inserting the SIMATIC NET CPs for the S7-400 while the power is on is possible without damaging the modules. If a CP is replaced with a new CP with the same order number, the configuration data simply needs to be downloaded again if it is not stored on the CPU (see also CP-specific sections of this manual).
  • Page 60 3 Operating the Ethernet CP with STEP 7/NCM S7 To attach a SIMATIC station via the Ethernet CP to Industrial*Ethernet, you configure the CP with the NCM S7 configuration software. This chapter explains the following: S How the CP is configured in the STEP 7 project 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...
  • Page 61 3 Operating the Ethernet CP with STEP 7/NCM S7 How to commission an Ethernet CP The essential steps in commissioning an Ethernet CP are shown in the following overview: Notice The chart below shows the basic steps. Please read the device-specific instructions in “Installation and Commissioning”...
  • Page 62 3 Operating the Ethernet CP with STEP 7/NCM S7 General information on STEP 7 / NCM S7 Installation The functions of NCM S7 are available automatically immediately after installing 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 63 3 Operating the Ethernet CP with STEP 7/NCM S7 Configuring − how it is done? A CP is managed in an S7*project just as the other modules. You use STEP 7 to configure the hardware and create and manage the user software (see /6/). Configuring a CP involves the following steps (the broken lines indicate options): Create the Industrial Ethernet subnet (see 3.3.1) Check or set the network properties...
  • Page 64 3 Operating the Ethernet CP with STEP 7/NCM S7 3.3.1 Creating an Industrial Ethernet subnet Aims To be able to attach the SIMATIC stations to a subnet, you create the subnet in your project. This means that all the parameters for the entire subnet are managed centrally.
  • Page 65 3 Operating the Ethernet CP with STEP 7/NCM S7 3. If you prefer a NetPro graphic network display, select the network object “Ethernet” and confirm with Edit Open Object. " Figure 3-2 Graphic network representation (here showing stations not yet networked) From this graphic representation, you can also activate all the functions for networking and configuring connections with the Ethernet CPs.
  • Page 66 3 Operating the Ethernet CP with STEP 7/NCM S7 Notice Preserving consistency in merged subnets After merging the subnets, you should check the consistency throughout the multiproject using the menu command Network > Check Interproject Consistency in NetPro to make sure that there is consistency throughout the multiproject. This check, for example, identifies S7 subnet IDs that are not unique in the multiproject.
  • Page 67 3 Operating the Ethernet CP with STEP 7/NCM S7 Note You can open the dialog for setting the interface at any time from the Properties dialog of the CP in the “General” tab. 1. If you have not yet created a subnet in the project or have not yet created the selected subnet, you can now create a subnet.
  • Page 68 3 Operating the Ethernet CP with STEP 7/NCM S7 If you replace a module, the MAC address of the predecessor is adopted when you load the configuration data; configured ISO transport connections remain operable. Note If you exchange CP modules in your plant often, you can avoid double assignment of MAC addresses when using ISO services, for example, by following the procedure below: Enter the first 3 vendor−specific bytes of the printed MAC address in the...
  • Page 69 3 Operating the Ethernet CP with STEP 7/NCM S7 Setting addresses in the configuration and addressing for the first time The address settings described here are made on the CP only after you download the configuration data. With the latest Ethernet CPs, the situation is as follows: 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.
  • Page 70 3 Operating the Ethernet CP with STEP 7/NCM S7 Overview in table form The table view in the Properties dialog of the station provides a detailed overview of the components used for network attachment. Follow the steps below: 1. Using the SIMATIC Manager, select the station in your project that you want to check.
  • Page 71: Send/Receive

    3 Operating the Ethernet CP with STEP 7/NCM S7 Setting further CP properties Overview In addition to the network attachment, you can also make further settings for the specific module or you can call functions. 1. Select the Ethernet CP in the hardware configuration. 2.
  • Page 72 3 Operating the Ethernet CP with STEP 7/NCM S7 Table 3-1 Tabs and functions in the properties dialog of the CP, continued Tabs Settings for FTP ** Create / modify file allocation table PROFINET Specify properties for PROFINET IO and PROFINET CBA * Media redundancy Configure the device as a node in a ring topology with the medium redundancy mode MRP *...
  • Page 73 3 Operating the Ethernet CP with STEP 7/NCM S7 3.4.2 Options tab Depending on the CP type, you can make the following settings: Table 3-2 Settings in the “Options” tab Option Meaning / Effect Time-of-day synchronization In this tab, you can make the settings for one of the two synchronizatoion modes: SIMATIC mode If the CP receives MMS time messages, its local time of day is...
  • Page 74 3 Operating the Ethernet CP with STEP 7/NCM S7 Table 3-2 Settings in the “Options” tab , continued Option Meaning / Effect Module access protection With this function, you can protect the CP from accidental (protection level) intervention during productive operation. The following options are available: Not locked Status−dependent...
  • Page 75 3 Operating the Ethernet CP with STEP 7/NCM S7 Table 3-2 Settings in the “Options” tab , continued Option Meaning / Effect Individual network settings Here, you can make fixed network settings, when necessary. As default, “Automatic Setting” is selected and this setting generally guarantees problem-free communication in most situations.
  • Page 76 3 Operating the Ethernet CP with STEP 7/NCM S7 Table 3-2 Settings in the “Options” tab , continued Option Meaning / Effect Multiplex OP connections / To attach TD/OPs or HMI devices, you can optimize the connection reserve internal CPU resources on the S7-300 CPU by having up to 16 of these devices connection resources communication on a single CPU connection resource (multiplex...
  • Page 77 3 Operating the Ethernet CP with STEP 7/NCM S7 S SIMATIC mode If the CP receives MMS time-of-day frames, its local time is synchronized providing the NTP mode was not configured (MMS = Manufacturing Message Specification). The advantage of this mode is the accuracy that is generally higher than achieved with the NTP mode.
  • Page 78 3 Operating the Ethernet CP with STEP 7/NCM S7 In this tab, you can activate or deactivate IP access protection and can enter IP addresses in an IP access control list (IP-ACL). With Advanced CPs, it is possible to send entries for the IP access control list to the CP using HTTP (see Section 3.5).
  • Page 79 3 Operating the Ethernet CP with STEP 7/NCM S7 Configuration S “Activate Web server” option The CP provides you with the function of a Web server for access using a Web browser. To allow this, certain HTML pages with CP information and diagnostics functions are stored in a memory area of the CP.
  • Page 80 3 Operating the Ethernet CP with STEP 7/NCM S7 Notice You can view the IP-ACl with NCM Diagnostics. When IP access protection is activated, remember that in the following special case, the IP−ACL is displayed as being empty and IP access protection as being deactivated: S There is no connection configured and S no fixed IP address entered in the IP−ACL and...
  • Page 81 3 Operating the Ethernet CP with STEP 7/NCM S7 Table 3-4 Options in the “IP Configuration” tab, continued Option Meaning / Effect Obtain an IP address from a If you select this option, the IP address is obtained from a DHCP DHCP server server when the S7 station starts up.
  • Page 82 3 Operating the Ethernet CP with STEP 7/NCM S7 3.4.7 “Port Parameters” tab Here, you can, when necessary, make fixed network settings for the transmission properties of every port. As default, “Automatic Setting” is selected and this setting generally guarantees problem-free communication in most situations. Whenever possible, leave the “Automatic settings”...
  • Page 83 3 Operating the Ethernet CP with STEP 7/NCM S7 3.4.9 Configuring IT functions The settings described in this section are supported only by Advanced CPs. “IP Access Protection” tab If you want to block IP communication with HTTP (port 80) or FTP (port 21) for an Advanced CP, enable the “Activate Web server”...
  • Page 84 3 Operating the Ethernet CP with STEP 7/NCM S7 Notice Make sure that you cancel any access rights assigned to “everybody”. Otherwise you allow everybody to use services without any authorization. With the “Add” or “Edit” buttons, you display the dialog box in which you can specify or modify rights.
  • Page 85 3 Operating the Ethernet CP with STEP 7/NCM S7 With the information in the file allocation table, it is possible to address data blocks in one or more CPUs (up to 4) in an S7 station. S ”Use Ethernet CP as FTP server for S7 CPU data” To transfer data with FTP, create data blocks in the CPU of your S7 station;...
  • Page 86 3 Operating the Ethernet CP with STEP 7/NCM S7 Sending entries for the IP access control list to the CP (Advanced CP) by HTTP Meaning Communications partners entered in the IP access control list with the “Modify” access right, can send entries to the CP for the IP access control list using HTTP. The transfer has the following effect in the IP access control list of the addressed S With the access rights transferred using HTTP, entries configured with STEP 7 can be modified but not deleted.
  • Page 87 3 Operating the Ethernet CP with STEP 7/NCM S7 Table 3-6 Access attribute Meaning A (access) Access to the station is authorized. M (modify) Modifying the IP access control list by HTTP is permitted. R (routing) There is access to the subnet connected to the other interface of the CP.
  • Page 88 3 Operating the Ethernet CP with STEP 7/NCM S7 Media Redundancy tab 3.6.1 Media redundancy options To increase the availability of an Industrial Ethernet network with optical or electrical bus topologies, there are several options available: S Mesh networks S Parallel connection of transmission paths S Closing a linear bus topology to form a ring topology 3.6.2 Media redundancy in ring topologies...
  • Page 89 3 Operating the Ethernet CP with STEP 7/NCM S7 Note Before physically closing the ring, download the configuration of your STEP 7 project to the individual devices. How media redundancy works in a ring topology When using media redundancy, the data paths between the individual devices are reconfigured if the ring is interrupted at any point.
  • Page 90 CP 1604 (6GK1 160 4AA00) as of firmware version V2.2 − Non−Siemens devices that support this function. Other Siemens devices will support MRP in future. S All devices must be interconnected via their ring ports. S “MRP” must be activated on all devices in the ring (see “MRP configuration in PROFINET IO”).
  • Page 91 3 Operating the Ethernet CP with STEP 7/NCM S7 Topology The following schematic shows a possible topology for devices in a ring with MRP. Figure 3-7 Example of a ring topology with the media redundancy protocol MRP The following rules apply to a ring topology with media redundancy using MRP: S All the devices connected within the ring topology are members of the same redundancy domain.
  • Page 92 3 Operating the Ethernet CP with STEP 7/NCM S7 In the STEP 7 configuration, properties dialog of the PROFINET interface > “Media redundancy” tab > “MRP configuration” box, set the role to “Not node in the ring” in the “mrp−domain1” domain. 3.6.4 MRP configuration with PROFINET IO To configure in STEP 7, open the “Media redundancy”...
  • Page 93 Role The choice of role depends on the following uses. S You want to use MRP in a ring topology only with Siemens devices and without monitoring diagnostic interrupts: Assign all devices to the “default−mrpdomain”.
  • Page 94 3 Operating the Ethernet CP with STEP 7/NCM S7 Ring port 1 / ring port 2 Notice If you reset to the factory settings, the ring port settings are also reset. With the appropriate attachment, a ring node that was previously correctly configured can cause circulating frames and a loss of the data traffic.
  • Page 95 3 Operating the Ethernet CP with STEP 7/NCM S7 “Substitute objects” in the STEP 7 project Overview Communication connections can be configured fully when the communications partners are available in the current project. For the stations on the Ethernet subnet, whose configuration data were not created in STEP 7 or whose configuration data are not managed in the currently active project, the following substitute objects can be created in the project: S SIMATIC S5 stations...
  • Page 96 3 Operating the Ethernet CP with STEP 7/NCM S7 Procedure To enter a substitute object in the project, following the steps below: 1. Select the project in the SIMATIC Manager. 2. Select Insert Station and then as necessary " " Other Station, PG/PC or SIMATIC S5 Possible result: the selected object is created in the project.
  • Page 97 3 Operating the Ethernet CP with STEP 7/NCM S7 Figure 3-10 Selecting the Subnet Type for “Other Station” (Example) 3. Select a subnet. Result: The “Properties − Ethernet Interface” dialog is displayed. Here, you can select the subnet, connect the station to the network and set the address (MAC, IP).
  • Page 98 3 Operating the Ethernet CP with STEP 7/NCM S7 Configuring communication services Setting up connections You must set up connections for the connection-oriented services supported by the Industrial Ethernet CP, see also the Table in Section 1.2. S S7 connections see the STEP 7 user manual /6/ S ISO transport connections see Section 5.4...
  • Page 99: Interface

    3 Operating the Ethernet CP with STEP 7/NCM S7 Assigning addresses for the first time Meaning of the address assignment − MAC address and IP address The CP ships with one or two fixed MAC addresses. Without further configuration, the device can only be accessed over the Ethernet port using these MAC addresses.
  • Page 100 3 Operating the Ethernet CP with STEP 7/NCM S7 Requirements Before you can use the addressing described here, the CP must be obtainable online, which means: S An attachment to the Ethernet LAN must already exist; there must be no routers between subnets in the path.
  • Page 101 3 Operating the Ethernet CP with STEP 7/NCM S7 Alternative procedure You can also follow the steps outlined below in the SIMATIC Manager: 1. Use the menu command PLC Display Accessible Nodes to display the " nodes that you can access over Industrial Ethernet. 2.
  • Page 102 3 Operating the Ethernet CP with STEP 7/NCM S7 4. Assign the IP parameters taken from the networking to the CP by clicking the “OK” button. Result: After downloading the configuration data, the CP can be reached on Industrial Ethernet using the IP address. Note You will find further detailed information on this procedure in the STEP 7 online help.
  • Page 103 3 Operating the Ethernet CP with STEP 7/NCM S7 3.10 Downloading the configuration data to the target system Principle The configuration data of the Ethernet CP are downloaded from the hardware configuration. All the configuration data of the S7 station are downloaded including the central configuration, all relevant DP master systems and all parameter settings.
  • Page 104 3 Operating the Ethernet CP with STEP 7/NCM S7 Procedure To download the configuration data to the S7 station, follow the steps outlined below: 1. Open the “Set PG/PC Interface” dialog box in the Windows Control Panel. 2. Set the PG/PC interface according to the CPs available on your PG and according to the bus attachment (interface parameter assignment used).
  • Page 105 3 Operating the Ethernet CP with STEP 7/NCM S7 Relocating the CP in the Hardware Configuration If you are using communication services with configured connections, the connection IDs also identify the slot of the CP. If you “drag” a CP you have already configured to a different slot, note the following: Notice If you drag the CP to a different slot, the data of the connection configuration are...
  • Page 106 STEP 7 / NCM S7; for a description, refer to the “Primer” /3/. S Sample program for the SEND/RECEIVE interface with the blocks FC5 (AG_SEND) and FC6 (AG_RECV) for S7−300: http://support.automation.siemens.com/WW/view/en/17853532 S Sample program for the SEND/RECEIVE interface with the blocks FC50 (AG_LSEND) and FC60 (AG_LRECV) for S7−400: Here, you will also find a collection of further entries and sample projects and programs for S7 CPs for Industrial Ethernet.
  • Page 107 4 SEND/RECEIVE Interface in the User Program How the SEND/RECEIVE interface on the CPU works The following blocks (FCs) are available for handling communication on connections: S AG_SEND (FC 5) / AG_LSEND (FC 50) / AG_SSEND (FC 53) The block transfers the user data from the specified user data area for transfer to the Ethernet CP.
  • Page 108 4 SEND/RECEIVE Interface in the User Program Amounts of data and configuration limits The Ethernet CP can transfer the following amounts of data per job (send or receive) over a connection: Table 4-1 ISO Transport ISO Transport send AG_SEND * 8192 bytes 8192 bytes 8192 bytes...
  • Page 109 4 SEND/RECEIVE Interface in the User Program Programming the SEND/RECEIVE interface Principle of job and data transfer The user program triggers the transfer of the user data areas with FC calls and monitors the transfer by evaluating the return codes of the FCs. Among others, the following parameters are transferred when the FCs are called: S The number of the connection (ID) S The location of the user data area in the CPU...
  • Page 110 4 SEND/RECEIVE Interface in the User Program Calling FCs in the CPU program One possible sequence for FCs in conjunction with the organization and program blocks in the CPU cycle is illustrated in the following diagram. Read in the received Read PII data of the connection...
  • Page 111 4 SEND/RECEIVE Interface in the User Program on a connection using the AG_SEND call. 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 be called more than once in a cycle for one communication connection.
  • Page 112 4 SEND/RECEIVE Interface in the User Program Data exchange S7 CPU <−> Ethernet CP The Ethernet CP processes the send and receive jobs independent of the CPU cycle and requires one transmission time. The interface to the user program with the FCs is synchronized by an acknowledgment.
  • Page 113 4 SEND/RECEIVE Interface in the User Program Notice 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”).
  • Page 114 4 SEND/RECEIVE Interface in the User Program Additional information 4.4.1 Programming data transfer on TCP connections Purpose of TCP connections TCP connections should be used above all for connections to systems of a different type if they do not support the RFC1006. For communication between devices of the SIMATIC family, you should use the more convenient ISO-on-TCP connections! The following sections explain certain special points to note.
  • Page 115 4 SEND/RECEIVE Interface in the User Program 4.4.2 Recommendations for use with a high communications load Overview The points below relate to the Ethernet CPs and will help you to avoid overload situations on your CPU. In particular when you replace an older CP with a newer CP and are then confronted with overload problems, you should check your application for the pitfalls outlined below.
  • Page 116 5 Configuring Communication Connections This chapter explains the following: S The general aspects of configuring communication connections S How to configure ISO transport connections, ISO−on−TCP, UDP and TCP connections S How to use the connection configuration functions to specify communication partners that exchange data via UDP You will find a description of the connection−specific properties dialogs in the following sections:...
  • Page 117 5 Configuring Communication Connections Procedure Initial situation The steps described here assume the following: 1. You have created the local S7 station and the required partner stations in your STEP 7 projects (refer to the description in Chapter 3). 2. You have clarified the other station types with which connections must be established.
  • Page 118 5 Configuring Communication Connections Possible connection configurations Communication connections are possible between the communication partners shown in the diagram below. The communication partners can be in the same project or distributed in the subprojects of a multiproject. Connections to communication partners outside a project are configured using the STEP 7 object “Partner other project”...
  • Page 119 5 Configuring Communication Connections Organization in a multiproject If interproject subnets are configured, you can also configure connections over such subnets. 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.
  • Page 120 5 Configuring Communication Connections Connections Characteristics of a connection A communication connection allows program−controlled communication between two nodes on Industrial Ethernet with the following characteristics: S The data transfer is bi−directional, in other words, it is possible to transmit and receive on the connection simultaneously.
  • Page 121: Configuring Connections

    5 Configuring Communication Connections Amounts of data Refer to the manual supplied with the Ethernet CP /1/ for the number of communications connections supported by the specific Ethernet CP. The number of connections per station can be increased by adding more CPs. For information on the amounts of data transferred by the Ethernet CP per job (send or receive) over a connection, refer to Table 4-1.
  • Page 122 5 Configuring Communication Connections 5.3.1 New connection Principle When you create new connections, you start from entered and networked stations. A connection is then configured starting from a station or CPU in the current S7 project and then selecting a destination station. Due to the networking, the node addresses (MAC or IP addresses) of the two stations are already decided.
  • Page 123 5 Configuring Communication Connections Handling connections in a multiproject Interproject connections to a specified partner (for example a CPU) are created just like connections within a project (identical procedure). The dialog for selecting the connection partner has been extended and allows you not only to select the endpoint (module) but also the project within a multiproject to which the endpoint belongs.
  • Page 124 5 Configuring Communication Connections 5.3.2 Connections to partners in other projects There are various ways of creating connections to partners configured in other STEP 7 projects or with other tools outside the current STEP 7 project: S Connections using substitute objects such as “SIMATIC S5”, “PC/PG” , “SIMATIC PC Station”...
  • Page 125 5 Configuring Communication Connections S Connection to a specific station in any project The address setting for the ISO−on−TCP connection is then as follows: You can specify the remote IP address and the port of any destination station. The destination station can be in the current STEP 7 project or in another project.
  • Page 126 5 Configuring Communication Connections 5.3.3 Further functions Toolbar In the toolbar of the connection configuration dialog the following functions are available: Save To save the configured connection, select the Save function or click the save button. Print You can print the entire connection table or individual sections of it by selecting the Print function or clicking the print button.
  • Page 127 5 Configuring Communication Connections 5.3.4 Connections without assignment Overview This section explains the actions that can lead to a configured connection losing its assignment to the CP or being deleted. Caution Remember that in contrast to the S7 connections, the connections of the SEND/RECEIVE interface are assigned a CP−dependent ID.
  • Page 128 5 Configuring Communication Connections Table 5-2 Actions that can cause changes to configured connections, continued Action Consequences for the How to Establish the Connection Connections Again Deleting the SIMATIC S7 All the connections to the station Reconfigure the station and station.
  • Page 129 5 Configuring Communication Connections Display (Example) The status of connections is displayed in the “Properties ISO Transport Connection” dialog in the “Overview” tab. Figure 5-3 Status of the connections in the “Overview” tab (example of ISO transport connections) S7-CPs for Industrial Ethernet Configuring and Commissioning A−129 Release 07/2010 C79000−G8976−C182−10...
  • Page 130 5 Configuring Communication Connections Configuring ISO transport connections Introduction When you create a connection in the New dialog, you specify the connection type and, as far as possible, the connection partner. When necessary, you can adapt other connection partners that are set as default when you create a new connection as described below.
  • Page 131 5 Configuring Communication Connections 5.4.1 Specifying the local connection endpoint General Tab This tab of the Properties dialog displays general connection parameters that identify the local connection endpoint. Figure 5-4 Layout of the “General” tab in the Properties dialog (ISO transport connections) Attributes Description Access...
  • Page 132 5 Configuring Communication Connections Attributes Description Access Active connection With this option, you specify whether the connection is established by Modifiable establishment this S7 station. This is the default setting when the address of the partner is specified. ON: the connection is established actively. OFF: the connection is established by the partner.
  • Page 133 5 Configuring Communication Connections 5.4.2 Specifying ISO transport addresses Address parameters An ISO transport connection is specified by the local and remote connection endpoint. S Local addresses: Local MAC address and local TSAP (Transport Service Access Point) S Remote addresses: Remote MAC address and remote TSAP Ethernet station A Ethernet station B...
  • Page 134 5 Configuring Communication Connections Addresses tab The addresses tab displays proposed values for the relevant local and remote address information. When connecting to non−S7 stations, you can set the TSAP addresses individually. Figure 5-6 Layout of the “Addresses” tab of the properties dialog with default TSAPs TSAP format ISO transport connections have a TSAP length of 1 to 16 bytes.
  • Page 135 5 Configuring Communication Connections Local and remote TSAPs 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. Default TSAPs During configuration of the local and remote TSAPs, defaults (can be changed) are proposed (for example, ISO−1 for the first connection between two partners) .
  • Page 136 5 Configuring Communication Connections 5.4.3 Specifying ISO transport dynamic properties Dynamics tab The relevant timers and counters of the connection are displayed in the Dynamics tab. You can normally accept these default values. If necessary, for example with connections to non−Simatic systems, you can set the timers and counters individually and influence the dynamic response of the connection.
  • Page 137 5 Configuring Communication Connections Attributes Description Access Inactivity Time The inactivity time specifies the interval after which the Modifiable connection is terminated if no sign of life is received from the partner (6−180 s, default 30 s). Window Time The window time specifies the intervals at which Display only sign−of−life frames are sent.
  • Page 138 5 Configuring Communication Connections 5.4.4 Checking ISO transport connection properties Overview Tab The overview tab displays all the previously configured ISO transport connections and their parameters for this station (this is only for information and cannot be modified). For an example of this display, refer to Section 5.3.4. Parameter Description Local ID...
  • Page 139 5 Configuring Communication Connections Configuring ISO−on−TCP connection properties Introduction When you create a connection in the New dialog, you specify the connection type and, as far as possible, the connection partner. When necessary, you can adapt other connection partners that are set as default when you create a new connection as described below.
  • Page 140 5 Configuring Communication Connections 5.5.1 Specifying the local connection endpoint General tab This tab of the Properties dialog displays general connection parameters that identify the local connection endpoint. Figure 5-9 Layout of the “General” tab in the properties dialog for ISO−on−TCP connections Parameter Description Access...
  • Page 141 5 Configuring Communication Connections Active connection With this option, you specify whether the connection is Modifiable establishment established by this S7 station. This is the default setting when the address of the partner is specified. ON: the connection is established actively. OFF: the connection is established by the partner.
  • Page 142 5 Configuring Communication Connections 5.5.2 Specifying ISO−on−TCP addresses Address parameters A connection is specified by the local and remote connection endpoint. S Local addresses: Local IP address and local TSAP (Transport Service Access Point) S Remote addresses: Remote IP address and remote TSAP Ethernet station A Ethernet station B Local...
  • Page 143 5 Configuring Communication Connections Addresses tab The addresses tab displays proposed values for the relevant local and remote address information. If necessary, you can set the TSAP addresses individually. Figure 5-11 Layout of the “Addresses” tab of the properties dialog with default TSAPs for ISO−on−TCP connections TSAP format ISO−on−TCP connections have a TSAP length of 1 to 16 bytes.
  • Page 144 5 Configuring Communication Connections Local and remote TSAPs Remote and local TSAPs can be identical since the connection is uniquely identified by the different MAC addresses. If more than one connection is required between two stations, the TSAPs must also be different. Default TSAPs When configuring the local and remote TSAPs, there is a default value “TCP−1”...
  • Page 145 5 Configuring Communication Connections 5.5.3 Checking ISO−on−TCP connection properties Overview tab The overview shows all the configured ISO−on−TCP connections and their parameters (cannot be modified here). You can set the column width in the table individually. For an example of this display, refer to Section 5.3.4 (the ISO transport connection).
  • Page 146 5 Configuring Communication Connections Configuring TCP connection properties Introduction When you create a connection in the New dialog, you specify the connection type and, as far as possible, the connection partner. When necessary, you can adapt other connection partners that are set as default when you create a new connection as described below.
  • Page 147 5 Configuring Communication Connections 5.6.1 Specifying the local connection endpoint General tab This tab of the Properties dialog displays general connection parameters that identify the local connection endpoint. Figure 5-13 Layout of the “General” tab in the properties dialog for TCP connections Attributes Description Access...
  • Page 148 5 Configuring Communication Connections Active connection With this option, you specify whether the connection is Modifiable establishment established by this S7 station. This is the default setting when the address of the partner is specified. If you selected partner “unspecified” when you created the connection, the option is deselected as default.
  • Page 149 5 Configuring Communication Connections 5.6.2 Specifying TCP addresses Address parameters and connection types With TCP, the communication partners are addressed by the local and remote endpoints as follows: S Local addresses: Local IP address and local port S Remote addresses: Remote IP address and remote port Ethernet station A Ethernet station B...
  • Page 150 5 Configuring Communication Connections Addresses tab − specified TCP connection The addresses tab displays proposed values for the relevant local and remote address information. You can change the port settings individually. Figure 5-15 Layout of the properties dialog in the “Addresses” tab with DEFAULT ports for TCP connections Ports The ports or port addresses define the access point to the user program within the...
  • Page 151 5 Configuring Communication Connections Table 5-3 , Fortsetzung Port addresses Application / Note Port addresses higher than 5000 are used by the system! 5001 to 49151 Note: If the partner uses a port in this range for active connection establishment, then change the port of the partner, where possible, to a range <5000.
  • Page 152 5 Configuring Communication Connections Addresses tab − unspecified TCP connection If you select the partner type as “unspecified”, depending on your task, you can enter address information about the communication partner here. The options available to you are explained in detail in Section 5.3.1. The Addresses tab shown here illustrates the situation in which the remote port but not the IP address was specified.
  • Page 153 5 Configuring Communication Connections 5.6.3 Checking TCP connection properties Overview tab The overview shows all the previously configured TCP connections and their parameters (cannot be modified here). You can set the column width in the table individually. For an example of this display, refer to Section 5.3.4 (the ISO transport connection).
  • Page 154 5 Configuring Communication Connections Configuring UDP connection properties Introduction When you create a connection in the New dialog, you specify the connection type and, as far as possible, the connection partner. When necessary, you can adapt other connection partners that are set as default when you create a new connection as described below.
  • Page 155 5 Configuring Communication Connections 5.7.1 Specifying the local connection endpoint General tab This tab of the Properties dialog displays general connection parameters that identify the local connection endpoint. Figure 5-17 Layout of the “General” tab in the properties dialog for UDP connections Attributes Description Access...
  • Page 156 5 Configuring Communication Connections Block parameters This value must be entered as a block call parameter ID for Display only calling the FC in the user program to identify the connection. The ID changes if the local ID is changed. LADDR This value must be entered as a block call parameter ID for Display only...
  • Page 157 5 Configuring Communication Connections Ethernet station A Ethernet station B local remote port port connection remote local port port address A address B Figure 5-18 Sending and receiving on one UDP connection Depending on the required connection type, the remote address parameters are either specified or left open during configuration.
  • Page 158 5 Configuring Communication Connections Addresses tab − specified UDP connections The addresses tab displays proposed values for the relevant local and remote address information. You can make the settings for the ports individually. Figure 5-19 Layout of the properties dialog in the “Addresses” tab with DEFAULT ports for UDP connections Ports The ports or port addresses define the access point to the user program within the...
  • Page 159 5 Configuring Communication Connections Table 5-6 Reserved port numbers Protocol Port number Service SNMP_REQUEST 34964 PN IO 65532 65533 65534 65535 Addresses tab − unspecified UDP connection An unspecified UDP connection can be used in two ways: S Free UDP connection To configure a free UDP connection, select the “Address assignment in block”...
  • Page 160 5 Configuring Communication Connections 5.7.3 UDP with broadcast and multicast Application With UDP, the frames are received without acknowledgment because the UDP protocol has no provision for acknowledgments. This is intentional so that a higher speed at low network load is achieved. This has advantages particularly when using multicast.
  • Page 161 5 Configuring Communication Connections Why does an S7 CP prevent reception on broadcast connections? It is often necessary for one station to send frames to a number of partner stations. It is important that the frames are sent at the same time and arrive and practically the same time.
  • Page 162 5 Configuring Communication Connections Addresses tab − connection to all broadcast nodes If you select “all broadcast nodes” as the connection partner, you specify that UDP frames are sent to all obtainable broadcast nodes. In the “Addresses” tab, a valid broadcast address in the network is proposed for the partner under the IP address (IP).
  • Page 163 5 Configuring Communication Connections Addresses tab − Connection to all multicast nodes By selecting “all multicast nodes” as the connection partner, you specify that S sent UDP frames are delivered to all multicast nodes of the multicast group; S the local device receives multicast frames in the specified multicast group. The multicast group is specified using the IP address and the port addresses.
  • Page 164 5 Configuring Communication Connections Notice The port used for multicast frames must be different from the port addresses of any UDP connections that may have been configured. If a configured UDP connection uses the same port address, the multicast frame of another node that uses this port number may cause these connections to be terminated.
  • Page 165 5 Configuring Communication Connections IP addresses for IP multicast S Possible Values IP addresses from 224.0.0.0 to 239.255.255.255 can be used for IP multicast. Since the IP addresses from 224.0.0.0 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.
  • Page 166 5 Configuring Communication Connections 5.7.4 Checking the properties of a UDP connection Overview tab At the overview level, all the configured UDP connections and their parameters in this station are displayed (cannot be modified). You can set the column width in the table individually. For an example of this display, refer to Section 5.3.4 (the ISO transport connection).
  • Page 167 5 Configuring Communication Connections 5.7.5 Free UDP connection Program−controlled addressing A free UDP connection allows program−controlled addressing of the communication partner. Communication between two nodes on Industrial Ethernet has the following properties: S Data transfer is bi−directional; in other words it is possible to send and receive on the UDP connection at the same time.
  • Page 168 5 Configuring Communication Connections FETCH/WRITE mode FETCH / WRITE The FETCH/WRITE services allow direct access to the system memory areas on the SIMATIC S7 CPU from SIMATIC S5, SIMATIC PC stations, or from devices of other ranges. S FETCH: Read data directly S WRITE: Write data directly Connection types The FETCH/WRITE services can be configured and used in SIMATIC S7 on the...
  • Page 169 5 Configuring Communication Connections Notice Remember that with this configuration on an S7−300, one connection resource (free connection for S7 functions) of the 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.
  • Page 170 5 Configuring Communication Connections Links to other systems The FETCH and WRITE modes supported on ISO transport connections and ISO−on−TCP or TCP connections can be used with any other device to access the S7 system memory areas. To be able to use this type of access, for example for PC applications, you need to know the PDU structure of the jobs.
  • Page 171 5 Configuring Communication Connections Routing to distribute load Routing to distribute load If two or more CPs of the same type exist in a station and are connected to the same subnet, you can select the route Clicking the ”Route” button in the ”General” tab of the properties dialog of the connection opens the ”Route”...
  • Page 172: Cp As Profinet Io Controller

    When setting up a PROFINET IO system, please read the comprehensive system documentation: S PROFINET System Description S From PROFIBUS DP to PROFINET IO Programming Manual, Siemens AG This manual contains more information on the structure and function of the supported data records. S7-CPs for Industrial Ethernet Configuring and Commissioning A−172...
  • Page 173 6 CP as PROFINET IO Controller Configuration 6.1.1 PROFINET IO system in STEP 7 The basic procedure to configure the CP as a PROFINET IO controller is as follows: 1. You create a PROFINET IO system in STEP 7 / HW Config. You can either assign an existing or a new Ethernet subnet to the CP as the PROFINET IO system.
  • Page 174 6 CP as PROFINET IO Controller Notice Keep within the IO data area limits The module size of a PROFINET IO device must not exceed the size of the IO data area of the PROFINET IO controller. Check the characteristic data of PROFI- NET IO in the manual of the CP.
  • Page 175 6 CP as PROFINET IO Controller Configuring the limits of the sync domain If you use the CP for IRT communication, you will need to configure the limits of the sync domain for the relevant ports: 1. Open the properties dialog of the port in HW Config. 2.
  • Page 176 6 CP as PROFINET IO Controller Optimized data transfer after failure of an IO device The data transfer optimized by reducing the length of FC11 as described below is possible only in the PROFINET IO controller mode. On the PROFINET IO interface, you can optimize data transmission by calling FC PNIO_SEND (FC11) with a length (LEN parameter) shorter than the configured total length of the IO data on the PNIO chain.
  • Page 177 6 CP as PROFINET IO Controller Note If FB54 has been called (at least) once in the user program, it must continue to be called to acknowledge pending interrupts. Interrupts are pending when FC12 signals a value not equal to “0” in the ADD_INFO parameter. If FB54 is no longer called after it has been called once or more in the user program, interrupts are not acknowledged and there is no guarantee that the IO image will be updated correctly.
  • Page 178 The factors that influence this are the switch configurations (“switch depth”), the update time and the MC/BC frame lengths. For more detailed information on the influencing factors and possible solutions, refer to: http://support.automation.siemens.com/WW/view/en/29104898 S7-CPs for Industrial Ethernet Configuring and Commissioning A−178 Release 07/2010...
  • Page 179: S7−300 Cp As Profinet Io Device

    When setting up a PROFINET IO system, please read the comprehensive system documentation: S PROFINET System Description S From PROFIBUS DP to PROFINET IO Programming Manual, Siemens AG This manual contains more information on the structure and function of the supported data records. S7-CPs for Industrial Ethernet Configuring and Commissioning A−179...
  • Page 180 7 S7−300 CP as PROFINET IO Device Principle of the data exchange in IO device mode Data exchange between controller and CP as PROFINET IO device Data exchange between a PROFINET IO controller and PROFINET IO device involves the following procedure: S On the PROFINET IO controller Data exchange is initiated by the PROFINET IO controller that writes output data to the configured output area (O addresses) and fetches input data from...
  • Page 181 7 S7−300 CP as PROFINET IO Device Configuration Configuring the CP as a PROFINET IO device involves the two following activities in STEP 7: S Inserting the CP as PROFINET IO device in the IO system The CP is assigned as a PROFINET IO device to the IO system of a PROFINET IO controller in HW Config.
  • Page 182 7 S7−300 CP as PROFINET IO Device 7.2.2 Activating the CP as a PROFINET IO device in the S7 station The CP is enabled for PROFINET IO device mode in the properties dialog and explicitly coupled with the IO device. Requirement: The CP was inserted in the S7 station in HW Config.
  • Page 183 7 S7−300 CP as PROFINET IO Device In the station of the IO controller: 1. Open the station window of the controller station in HW Config. 2. Open the properties dialog of the controller and create the IRT configuration in the “Synchronization”...
  • Page 184 If you do not configure your system with STEP 7, you will need to use the GSDML file of the CP to configure the CP in your configuration system. http://support.automation.siemens.com/WW/view/en/19698639 PROFINET IO controller PROFINET IO controllers can be the following: S Stations of the type SIMATIC 300 and SIMATIC 400 −...
  • Page 185 7 S7−300 CP as PROFINET IO Device 4. Add input and output modules with the required I/O data length (1 to max. 240 bytes) to the PROFINET IO device. The following screenshot shows the configuration table of an S7−400 station as PROFINET IO controller.
  • Page 186 7 S7−300 CP as PROFINET IO Device Step 2: Assigning the device name to the CP as PROFINET IO device Continue configuration in HW Config as follows: 1. Open the properties dialog of the PROFINET IO device that you inserted in the PROFINET IO system.
  • Page 187 7 S7−300 CP as PROFINET IO Device Programming By programming, you specify the sequence of the user program for the CPU and therefore also access to the I/O data. To write and read process data, use the FCs PNIO_SEND (FC11) or PNIO_RECV (FC12) from the SIMATIC NET block library in your user program.
  • Page 188 7 S7−300 CP as PROFINET IO Device Data consistency The length information in the block call must be identical to the total length of the input or output data configured for this PROFINET IO device. The entire input or output data area of the PROFINET IO controller is transferred in its entirety between the CP and CPU and is therefore consistent.
  • Page 189 7 S7−300 CP as PROFINET IO Device Reasons for reinitialization The PROFINET IO device requests reinitialization by the user program in the following situations: S The length information of the input and output areas in the FCs does not match the information configured for this PROFINET IO device on the PROFINET IO system.
  • Page 190 7 S7−300 CP as PROFINET IO Device Example of configuration and programming The configured input/output modules must be accessed in the user program of the PROFINET IO device using FCs. The FCs provide the process data preprocessed in the user program of the PROFINET IO device on the interface to the PROFINET IO controller (PNIO_SEND) or fetch the data provided by the PROFINET IO controller for further processing in the user program of the PROFINET IO device (PNIO_RECV).
  • Page 191 7 S7−300 CP as PROFINET IO Device PNIO_SEND transfers the process inputs (DB10) in to the I addresses For the configured I addresses, you will need to make data areas available on the PROFINET IO device, for example in a DB (in this example in a DB10) that contains not only the process data but also the data areas for the IOCS status information.
  • Page 192 7 S7−300 CP as PROFINET IO Device PNIO_RECV transfers the O addresses to the process outputs (DB11) For the configured O addresses, you will need to make data areas available on the PROFINET IO device, for example in a DB (in this example in a DB11) that contains not only the process data but also the data areas for the IOPS status information.
  • Page 193: Sending Process Messages By E-Mail

    8 Sending Process Messages by E-Mail This chapter contains instructions on the E−mail functions of the Advanced CP. The following topics are covered: S What preparations need to be made? S What options are there for sending E−mails from the Advanced CP? S How can you test the E−mail function? You can see an outline of the procedures in the flowchart.
  • Page 194 8 Sending Process Messages by E-Mail 8.1.1 Authentication and other features of the Advanced CP Features of the CP S The Advanced CP operates as an E-mail client. It supports the SMTP service (Simple Mail Transfer Protocol). S As of device type CP 343–1 Advanced (GX30) and CP 443–1 Advanced (GX20), ESMTP with authentication is supported.
  • Page 195 8 Sending Process Messages by E-Mail Configuration 8.2.1 Procedure Follow the steps below to send E−mails: Clarify mail server mode: Is there already a mail server in your network environment? Who can set up access for the CP? with STEP 7 / NetPro Configure the E-mail connection See Section 8.3...
  • Page 196 8 Sending Process Messages by E-Mail S Send E-mails from the user program The information to be sent by E-mail including the address information is stored in a data block (DB). The information is sent via the user program using an FC AG_SEND/AG_LSEND.
  • Page 197 8 Sending Process Messages by E-Mail In the following schematic, one possibility, namely that of a mail server connected to your intranet is assumed (see Table 8-1; Mail server operation “internal with external connection”). Example: server.local S Programmed recipient address You specify the recipient address in the data block in the user program in which the E-mail is prepared.
  • Page 198 8 Sending Process Messages by E-Mail You can set up an E−mail connection as follows: S During connection configuration in STEP 7 (standard application) This situation is described below. S In the user program with FB CP_CONFIG and the configuration data block. There are situations in which it is an advantage to set up the communication connections not over the configuration interface of STEP 7 but rather program−controlled by specific applications.
  • Page 199 8 Sending Process Messages by E-Mail Table 8-2 Available parameters Parameter Description Examples E-mail Server − IP Address of the mail server, over which the E-mails absolute: Address are sent. 140.80.0.4 You can specify an absolute or alias IP address. As an alias: The use of an alias assumes that the Advanced CP mail.compuserve.co...
  • Page 200 8 Sending Process Messages by E-Mail Table 8-3 E-mail data block in STL notation in STEP 7 Address Name Type Initial value Comment Entry STRUCT +0.0 USER STRING[40] ’USER:name@provider.com;’ User name +42.0 PASS STRING[40] ’PASS:password;’ Password +84.0 STRING[40] ’TO:name.name@provider.com;’ Recipient mandatory +126.0 STRING[40]...
  • Page 201 8 Sending Process Messages by E-Mail S Authentication The E−mail provider must know the user name and password. If you are working with an older mail program without authentication, do not enter the user name and password in the DB. In this case, there is no authentication and the SMTP protocol is used instead of ESMTP.
  • Page 202 8 Sending Process Messages by E-Mail Testing the E-mail function Purpose and possibilities With E-mail functionality, you make your programmable controller capable of sending specific up-to-date information from the process at any time. To allow you to check that E-mail is functioning correctly at any time, you can initiate a test mail.
  • Page 203 8 Sending Process Messages by E-Mail Note When sending a test mail using NCM diagnostics, no authentication is supported. NCM diagnostics can be called either directly from the Windows Start menu “Industrial Ethernet Diagnostics” or using the Properties dialog of the IT/CP in the “Diagnostics”...
  • Page 204: File Management And File Access With Ftp

    We recommend that you always use the latest block versions for all module types. You will find information on the current block versions and the current blocks to download from the Internet in our customer support. http://support.automation.siemens.com/WW/view/en/8797900 This recommendation assumes that you are using the latest firmware for this module type.
  • Page 205 9 File Management and File Access with FTP FTP functions in an S7 station with the Advanced CP Range of functions The FTP functions of the Advanced CP support both FTP client and FTP server functionality on the S7 station. S7 station with an Advanced CP in the role of FTP server The server role can be divided into two distinct functions: S The Advanced CP as FTP server for the file system on the Advanced CP...
  • Page 206 9 File Management and File Access with FTP Advanced CP as FTP server for the file system on the CP 9.2.1 Method The Advanced CP manages the predefined HTML system pages as well as the HTML pages you have created yourself in a special memory area. With FTP, you have standardized accents to the files managed on the Advanced FTP client: FTP server:...
  • Page 207 9 File Management and File Access with FTP 9.2.2 File system − structure and features Structure of the file system on the IT−CP as shipped If you use the FTP tool for access, the file system of the Advanced CP presents itself as follows: Figure 9-1 The “readme.htm”...
  • Page 208 9 File Management and File Access with FTP Available storage For information on the total memory available in the file system, the currently available memory in the flash area and in the RAM area of the file system and other operational data, refer to the Web diagnostics of your Advanced CP (start page/file system) and the manual of your Advanced CP /1/.
  • Page 209 9 File Management and File Access with FTP S MS DOS prompt In the MS DOS prompt of Windows, you can establish an FTP connection and then execute all the FTP commands supported by the Advanced CP. The following example shows how you can find out which FTP commands are available using the ’quote help’...
  • Page 210 9 File Management and File Access with FTP Advanced CP as FTP server for S7 CPU data 9.3.1 Method The functionality described here allows you to transfer data in the form of files to data blocks or from data blocks of an S7 station using FTP commands. At the same time, the conventional FTP commands for reading, writing and managing files can also be used.
  • Page 211 9 File Management and File Access with FTP 9.3.2 FTP commands on the FTP client Example of access The following screenshot shows an example of a typical access sequence in the MS−DOS window. How typical FTP functions use the permitted FTP commands The following table shows which FTP commands can be executed to access file DBs on the CPU.
  • Page 212 9 File Management and File Access with FTP Table 9-1 , continued Typical FTP Functions FTP Command Meaning open close dele Deletes a file DB by setting the EXIST bit in the file DB header to “0”. retr Reads the user data in the specified file DB into the specified file on the FTP client.
  • Page 213 9 File Management and File Access with FTP Notice If you specify a file for the transfer that is not included in the file allocation table, the requested file system operation is executed on the current folder. Transfer mode for file transfer File transfer only uses the binary mode.
  • Page 214 9 File Management and File Access with FTP − Permitted characters: Letters “A−Z,a−z”; numbers “0−9”, “_”, “.” S Row length: maximum of 256 characters Example: # CONFIGURATION FILE for file transfer between an FTP client of a remote system # and an S7−CPU using the FTP server of the Advanced CP # This is an ASCII file and may be edited.
  • Page 215 9 File Management and File Access with FTP If the file file_db.txt does not exist, it is not possible to access file DBs using the FTP server of the Advanced CP. After editing the file and transferring it to the file system of the Advanced CP, you should therefore make sure that the transfer was successful.
  • Page 216 9 File Management and File Access with FTP Example With the configured CPU directories, the file name is displayed. This can include the number of the corresponding file DB. S7-CPs for Industrial Ethernet Configuring and Commissioning A−216 Release 07/2010 C79000−G8976−C182−10...
  • Page 217 9 File Management and File Access with FTP Meaning of the flags of ”cpu” folders with the dir command: S −r− −r− −r− − (read flag) : If this flag is displayed, the EXIST bit is set in the file DB. It is possible to read this file DB as long as the LOCKED bit is not set.
  • Page 218 9 File Management and File Access with FTP 9.3.4 Structure of the data blocks (File DB) for FTP services Method To allow the transfer of data with FTP, you create data blocks (file DBs) in the CPU of your S7 station. These data blocks must have a specific structure so that they can be used as transferable files by the FTP services.
  • Page 219 9 File Management and File Access with FTP Table 9-2 , continued Parameter Type Value / Meaning Set by LOCKED BOOL The LOCKED bit is used to The stor and retr FTP commands set restrict access to the file DB. LOCKED=1 when they are executed.
  • Page 220 9 File Management and File Access with FTP Table 9-2 , continued Parameter Type Value / Meaning Set by FTP_REPLY_ This parameter is irrelevant in Is set to ”0” by the FTP server. CODE FTP server operation. DATE_TIME DATE_A Date and time of the last The current date is updated following a ND_TIME modification to the file.
  • Page 221 9 File Management and File Access with FTP Table 9-3 , continued Address Name Type Initial value Comment +1.5 bit05 BOOL FALSE Reserved +1.6 bit06 BOOL FALSE Reserved +1.7 bit07 BOOL FALSE Reserved +2.0 ACT_LENGTH DINT current size of the content in bytes (not including the header of 20 bytes) +6.0...
  • Page 222 9 File Management and File Access with FTP The Advanced CP as FTP client for S7 CPU data 9.4.1 Method To transfer data using FTP, you create data blocks (file DBs) in the CPU of your S7 station (for structure, refer to Section 9.3.4). The user program sends FTP jobs that are executed by the Advanced CP as an FTP client.
  • Page 223 9 File Management and File Access with FTP FTP client: FTP server S7 station with Advanced CP S7 − 400 FTP connection S7 − 300 File DBs FTP_CMD (CMD=3) DB127 Header DB243 DB244 User data FTP_CMD (CMD=2) User program CALL FB 40, DB127 Figure 9-4 How FTP data transmission works when using FB40 9.4.2...
  • Page 224 9 File Management and File Access with FTP How to configure FTP connections To use FTP functionality, you require TCP connections with special properties. Follow the steps outlined below to configure the connection in STEP 7 / NetPro: 1. Create a TCP connection with an unspecified connection partner for the CPU in your S7 station.
  • Page 225 9 File Management and File Access with FTP 9.4.3 Structure of the data blocks (File DB) for FTP services Method To allow the transfer of data with FTP, you create data blocks (file DBs) in the CPU of your S7 station. These data blocks must have a specific structure so that they can be used as transferable files by the FTP services.
  • Page 226 9 File Management and File Access with FTP Table 9-4 , continued Parameter Type Value / Meaning Set by LOCKED BOOL The LOCKED bit is used to The stor and retr FTP commands set restrict access to the file DB. LOCKED=1 when they are executed.
  • Page 227 9 File Management and File Access with FTP Table 9-4 , continued Parameter Type Value / Meaning Set by FTP_REPLY_ Unsigned integer (16−bit) This is updated by the FTP client when CODE containing the last reply code the FTP command is executed. from FTP as a binary value.
  • Page 228 9 File Management and File Access with FTP 9.4.4 FCs and FBs for FTP services Using the blocks For data transmission using FTP, the user program uses either FC40...44 or FB40. Depending on the module type of the Advanced CP, either FC40...44 or FB40 can be used in the user program: S FB40 FB40 is available as of STEP 7 V5.4 SP4.
  • Page 229: Cp As Web Server: Html Process Control

    10 CP as Web Server: HTML Process Control Note The term “S7 applet” is used generally for applets. Use the S7 beans for communication with the Advanced CP. The Advanced CP provides you with the function of a Web server for access using a Web browser.
  • Page 230 10 CP as Web Server: HTML Process Control Individual solutions with S7 beans / individual S7 applets You want to use graphics options adapted to your application and create more complex applets. You not only want to display your process data in the plant pictures but also want to use the data, for example, for evaluation in a database.
  • Page 231 10 CP as Web Server: HTML Process Control 10.2 Security when Accessing Process Data Guaranteeing information security The access to process data by the Advanced CP via Internet brings with it the danger of misuse. You should therefore always protect process data not only with passwords but also by restricting access to your network with suitable security mechanisms.
  • Page 232 10 CP as Web Server: HTML Process Control Table 10-1 , (Fortsetzung) TCP Port to be Function used Enabling required for access in enabled direction 20 and 21 File access: FTP client with firewall −> CP Access to files on the Advanced CP using CP −>...
  • Page 233 10 CP as Web Server: HTML Process Control 10.3 Accessing the Advanced CP via a Web browser Hoe to access the Advanced CP via a Web browser The basis of communication via an intranet or the Internet is the Internet TCP/IP protocol that is implemented on the Advanced CP.
  • Page 234 The following schematic illustrates the structure (typical URL) and shows the contents for calling Advanced CPs. Protocol Server name[:Port] [Folder] File name Typical URL http://www.ad.siemens.de/net/page.htm URL for http://142.80.00.01/user/index.htm Advanced CP HTTP protocol IP address [Folder] Name of the...
  • Page 235 10 CP as Web Server: HTML Process Control 10.4 Accessing HTML system pages − Examples Basic information is available immediately HTML system pages are HTML pages saved on the Advanced CP containing system information that you can display without any further adaptation using your Web browser.
  • Page 236 10 CP as Web Server: HTML Process Control Setting the language for the diagnostic buffer display (Advanced CP) This function is available on several CPs with ready−made HTML pages, for example the Advanced CPs. As default, the CP uses internal message texts in English.
  • Page 237 10 CP as Web Server: HTML Process Control 10.5 Creating and storing your own ”home page” Flexible use of the Advanced CP file system The existing start page provides you with basic functions that are adequate for a large number of requirements. The Advanced CP file system provides a flexible instrument for the presentation of functions and data adapted to your plant.
  • Page 238 10 CP as Web Server: HTML Process Control Points to remember Refer to the information in the manual of the Advanced CP /1/ regarding the following points. S The size of the file system is limited. S The number of characters in the URLs to be specified is limited. S The length of the file names is limited.
  • Page 239: Web Diagnostics

    11 Web Diagnostics 11 Web Diagnostics With Web diagnostics, the CP provides you with the option of calling up the most important settings of a connected station and the status of their network connections and communication partners from an HTTP client on a PG/PC. You can also query the diagnostic buffer entries of the modules of the rack in which the CP is located.
  • Page 240 11 Web Diagnostics If you want to block port 80, disable the ”Activate Web server function” option. This option is not available in STEP 7 for all CPs. Note Station or device names configured in STEP 7 with special characters (for example umlauts ä, ü...
  • Page 241 11 Web Diagnostics Layout of the diagnostics pages The title bar of each Web diagnostics page displays the STEP 7 station name of the S7 station in which the CP is located. Above the navigation panel to the left, you can see the module type (here: “SIMATIC S7 CP”).
  • Page 242 11 Web Diagnostics 11.3 Diagnostics pages of the CP Note The diagnostics pages described below are not all available for every CP type. Depending on the CP type, you will find, for example, information on the device as PROFINET IO controller and/or PROFINET IO device in the navigation panel under ”PROFINET IO”.
  • Page 243 11 Web Diagnostics “File System” tab On this page, you will find information on the file system of an IT−CP. Parameter Function Settings File system Displays the setting of “Match case (case sensitive)” Flash file system ( / ) Memory capacity Total capacity of the non−volatile flash memory area Free memory Free space in the flash file system...
  • Page 244 11 Web Diagnostics 11.3.2 Identification Here, you can see a variety of information on the CP for identification and maintenance. Parameter Function Identification Plant designation Plant designation of the CP if this was configured. Location identifier Location identifier of the CP if this was configured. Serial number Serial number of the CP Order number...
  • Page 245 11 Web Diagnostics 11.3.3 Rack configuration The slots of the station and general data along with the status of the devices is displayed here. Parameter Function Rack configuration (rack name, rack number) Slot Slot of the individual modules in the rack Status Status display of the relevant module: Green (OK, module in operation)
  • Page 246 11 Web Diagnostics 11.3.4 Diagnostic buffer The entries in the diagnostic buffers of the CPU and CP modules in the rack are displayed here. This table lists the last 32 events in the chronological order in which they were received. The latest entry is at the start and the oldest entry at the end of the table.
  • Page 247 11 Web Diagnostics 11.3.5 Industrial Ethernet The “Industrial Ethernet” navigation provides information on the Ethernet interface. Interface setting If the device has several interfaces, the interface number (for example ”Interface X1”) is displayed below the title bar. Select the required interface from the drop−down list. The setting applies to all tabs under ”Industrial Ethernet”.
  • Page 248 11 Web Diagnostics Parameter Function Mode Displays the current network properties (transmission rate and direction). Possible values: 10 Mbps half duplex 10 Mbps full duplex 100 Mbps half duplex 100 Mbps full duplex 1 Gbps full duplex Mode when using media redundancy (for details, refer to “media redundancy” navigation) Media redundancy Display of the role and with the manager, the ring status:...
  • Page 249 11 Web Diagnostics Parameter Function Partner port Number of the port on the partner used for the TCP connection Status Connection status of the TCP connection, for example: LISTEN (waiting for connection) ESTABLISHED (existing connection) TIME WAIT (wait state prior to connection termination) and other interim statuses such as SYN SENT, SYN RECV, CLOSING etc.) “UDP Connections”...
  • Page 250 11 Web Diagnostics 11.3.6 PROFINET IO This page provides you with information on the most important parameters of the PROFINET IO configuration. Whether and which parameters are shown depends on whether the CP is configured as a PROFINET IO controller and/or device. Select individual devices in the device list using the mouse to obtain information on the underlying submodules of the device in the ”Submodule”...
  • Page 251 11 Web Diagnostics Parameters of a PROFINET IO device Parameter Function PROFINET IO configuration Mode PROFINET IO mode of the CP (here: PROFINET IO device): PROFINET IO controller PROFINET IO device No PROFINET IO configuration Device name Device name IP address IP address of the CP (or of the interface) Status Status of the device:...
  • Page 252 11 Web Diagnostics 11.3.7 Configured connections The ”Configured Connections” navigation link opens the tabs of the relevant connection types containing information on the configuration and status of the connections serviced by the CP. Statistics relating to the mode and the frames transferred since the last module restart are also displayed.
  • Page 253 11 Web Diagnostics Sending a test E−mail in the “SMTP” tab The “SMTP” tab has a box at the bottom of the dialog with which you can send a test E−mail from the CP. The maximum total length of the message is 240 characters (all characters entered).
  • Page 254 11 Web Diagnostics 11.3.8 IP access protection The following tabs are active only if you enabled IP access protection in the configuration (CP properties dialog, ” IP Access Protection” tab). “Configured IP Addresses” tab Here, the IP addresses of the communication partners configured in STEP 7 / NetPro are listed.
  • Page 255 11 Web Diagnostics 11.3.9 Media redundancy The tab is active only when you have configured the CP with media redundancy. Parameter Function Role Manager Client Disabled Domain Name of the configured redundancy domain Status Status of the ring on the redundancy manager: open closed Link status X2 Px...
  • Page 256: Ncm S7 Diagnostics

    12 NCM S7 Diagnostics The NCM S7 Diagnostics described here provides dynamic information on the operating state of the communication functions of online CPs. 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 257 12 NCM S7 Diagnostics 12.1 Overview Diagnostic options in STEP 7 STEP 7 provides you with a graded concept allowing you to query information about the status of your SIMATIC S7 components and functions and to sort out problems in a variety of different situations. These options cover the following: S Hardware diagnostics and troubleshooting with STEP 7 Hardware diagnostics provides dynamic information on the operating mode of modules including CPs when the S7 station is online.
  • Page 258 12 NCM S7 Diagnostics 12.2 Functions of NCM S7 Diagnostics Functions The diagnostic functions can be grouped as follows: S General diagnostic and statistical functions S Type and mode-dependent diagnostic functions General diagnostic and statistical functions Regardless of the configured mode of the Ethernet CP, the following diagnostic functions are possible: S Querying the operating mode on Ethernet S Querying the event messages recorded on the Ethernet CP (diagnostic buffer)
  • Page 259 12 NCM S7 Diagnostics 12.2.1 Installing and starting NCM S7 Diagnostics Installation NCM S7 Diagnostics is an integral part of the STEP 7 option NCM S7. There are several ways in which you can start the diagnostic tool, for example: S From the standard Start menu of Windows in the program group SIMATIC.
  • Page 260 12 NCM S7 Diagnostics Layout 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 261 12 NCM S7 Diagnostics 12.2.2 General menu commands Overview When running diagnostic functions, the following menu commands have general significance. Depending on the context, other functions may be available; for more detailed information refer to the online help for NCM Diagnostics. Table 12-1 Meaning of the menu commands Menu Meaning...
  • Page 262 12 NCM S7 Diagnostics Table 12-1 Meaning of the menu commands Menu Meaning Options Customize With this menu command, you set the general parameters for the diagnostic " session. Dialog update time This sets the interval at which the diagnostic data are updated in a contents area when cyclic updating is selected.
  • Page 263 12 NCM S7 Diagnostics 12.3 Starting diagnostics 12.3.1 Establishing a connection to the Ethernet CP Initial situation Establish the physical connection between the PG and the SIMATIC S7 Station. There are two ways of doing this: S MPI S Industrial Ethernet (ISO protocol) S Industrial Ethernet TCP/IP (IP protocol) S PROFIBUS Ways of starting diagnostics...
  • Page 264 12 NCM S7 Diagnostics 12.3.3 Starting diagnostics from the Windows Start menu If there are no configuration data on your PG/PC, follow the steps outlined below to start diagnostics with a connected CP: 1. Open the Windows Start menu and select the command SIMATIC STEP 7 "...
  • Page 265 12 NCM S7 Diagnostics Examples of an online path without gateway Rack / slot : 0/4 S7 − 300 PG/PC Node address (MAC): 08-00-06-01-02-03 Attachment of target sta- tion: Industrial Ethernet Figure 12-1 CP requiring diagnostics can be reached directly Rack / slot : 0/5 S7 −...
  • Page 266 12 NCM S7 Diagnostics 12.3.4 Using a gateway Case a: One gateway If the CP you want to check with diagnostic functions can only be reached via a gateway, you must select the device and specify its node address in the local network.
  • Page 267 12 NCM S7 Diagnostics Case b: several gateways If the CP requiring diagnostics can only be reached over several gateways, you only specify the first gateway. Routing over the other gateways is done automatically. Node address (gateway) (MAC): 08-00-06-01-02-03 S7 − 300 PG/PC Rack / slot : 0/5 Attachment of gateway: Indu-...
  • Page 268 12 NCM S7 Diagnostics Case c: IP subnet gateway via an Advanced CP with 2 interfaces In the following case, the CP for which you want to run diagnostics is in a different IP subnet from your PG/PC (but in the same S7 subnet). The IP subnet gateway is on an Advanced CP with 1 PROFINET interface and 1 gigabit interface.
  • Page 269 12 NCM S7 Diagnostics 12.3.5 Using a PC station − setting a gateway with ”PC internal” There is a special situation when you use your PC/PG as a PC station and have therefore set the interface to PC internal (local) in ”Setting the PG/PC Interface”. You must then set parameter values for the gateway, even when you do not need to go through any other gateway to reach the target station.
  • Page 270 12 NCM S7 Diagnostics 12.3.6 Other ways of starting diagnostics Starting in the properties dialog of the connections: 1. Select the PLC Activate Connection Status menu command to activate " online access. 2. Select the “Special Diagnostics” button in the “Status Information” tab. Starting in the hardware configuration tool HW Config: 1.
  • Page 271 12 NCM S7 Diagnostics 12.4 How to use diagnostics Procedure To use diagnostics efficiently, particularly when working with the diagnostic tool for the first time, the following procedure can be recommended. 1. Use the sequence shown below as a basis for using diagnostics: Start NCM S7 Diagnostics: −...
  • Page 272 12 NCM S7 Diagnostics 12.5 Starting diagnostic functions explicitly The following table shows the diagnostic options that exist in the available functions. Table 12-3 General diagnostic and statistical functions Diagnostic Diagnostic aims Special Features functions / diagnostic object CP information The aim is to identify the CP to which NCM S7 Diagnostics is connected and to find out the current mode.
  • Page 273 12 NCM S7 Diagnostics Table 12-4 Mode-dependent functions Diagnostic Diagnostic aims Special Features functions / diagnostic object To display and monitor communication connections. You obtain an overview or detailed information in the contents area depending on the diagnostic object you select. Connections Overview of All Connection Types By double-clicking the objects in the...
  • Page 274 12 NCM S7 Diagnostics 12.6 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.
  • Page 275 12 NCM S7 Diagnostics 12.6.2 Communication connection checklist Table 12-6 Checklist for typical problems with ISO transport / ISO-on-TCP / UDP connections Problem Possible Cause Identifying the Cause and Remedy No data transfer on an AG-SEND and AG-RECV Check the user program. ISO transport connection are not called in the user Evaluate status bytes in AG-SEND and...
  • Page 276 12 NCM S7 Diagnostics 12.7 Diagnostic messages from E−mail connections with authentication Some Advanced CPs can operate with authentication on an E−mail server (refer to the device manual). If the authentication is incorrect, the sending of the E−mail is aborted and a diagnostic message is entered in the diagnostic buffer of the CP.
  • Page 277 12 NCM S7 Diagnostics Table 12-8 Diagnostic messages resulting from authentication errors: SMTP status SMTP Meaning status The mail server has accepted the request but is itself not yet active. A confirmation message is required. Mail server executed request without error. The mail server understood the request but requires further information for processing.
  • Page 278: Firmware Loader

    13 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. 13.1 Area of application Firmware Here, firmware means the system programs in the SIMATIC NET modules. Uses of the Firmware Loader The firmware loader allows you to download more recent firmware versions to the SIMATIC NET modules.
  • Page 279 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. S7-CPs for Industrial Ethernet Configuring and Commissioning A−279...
  • Page 280 13 Firmware Loader Caution Remember that interrupting the download can lead to an inconsistent state on the module! For more information, read the description of the relevant device in Part B of this manual. For more detailed information on the various load options, refer to the integrated help.
  • Page 281 A Connector Pinning A Connector Pinning 24 V DC connector Terminal Function +24 V Ground RJ-45 jack for twisted−pair Ethernet CPs with One Connector Pin no. Signal name Function TP− / Transmit + TD_N TP− / Transmit − TP− / Receive + −...
  • Page 282 A Connector Pinning Gigabit interface Pin no. Name / signal Function P0−P TD+ / RD+ Transmit + / Receive + P0−N TD− / RD− Transmit − / Receive − P1−P TD+ / RD+ Transmit + / Receive + P2−P TD+ / RD+ Transmit + / Receive + P2−N TD−...
  • Page 283 A Connector Pinning Connector for PROFIBUS 9-pin D-sub female connector for PROFIBUS (used with IE/PB Link) Pin no. Signal name PROFIBUS Used with name RS-485 Protective earth − − − RxD/TxD−P Data line B RTS (AG) Control A − M5V2 Data reference potential P5V2...
  • Page 284 B Standards and approvals of SIMATIC NET S7 CPs B Standards and approvals of SIMATIC NET S7 CPs The approvals listed in this chapter apply to the following modules. Notice You will find the valid approvals on the type plate of the relevant product. Product description: S CP 343−1 Lean Order no.: 6GK7 343−1CX00−0XE0...
  • Page 285 S 94/9/EEC ”Equipment and Protective Systems for Use in Potentially Explosive Atmospheres” (explosion protection directive) The EU conformity certificates are available for the responsible authorities according to the above-mentioned EU directive at the following address: S Siemens Aktiengesellschaft Industry Automation Industrielle Kommunikation SIMATIC NET Postfach 4848 D−90327 NürnbergGermany...
  • Page 286 All Documents > “Approval of SIMATIC/SIMATIC NET Products for Direct Installation in Ex−Zone 2” You will find details of the SIMATIC products here: S On the Internet at the address http://support.automation.siemens.com/WW/view/en/13702947 Machinery directive The product remains a component in compliance with Article 4(2) of the EC Machinery Directive 98/37/EEC.
  • Page 287 B Standards and approvals of SIMATIC NET S7 CPs Notice for Canada This class A digital device meets the requirements of the Canadian ICES-003 standard. AVIS CANADIEN Cet appareil numérique de la classe A est conforme à la norme NMB-003 du Canada.
  • Page 288 B Standards and approvals of SIMATIC NET S7 CPs cULus approval, Hazardous Location CULUS Listed 7RA9 IND. CONT. EQ. FOR HAZ. LOC. Underwriters Laboratories Inc. according to S UL 508 (Industrial Control Equipment) S CSA C22.2 No. 142 (Process Control Equipment) S ANSI ISA 12.12.01, CSA C22.2 No.
  • Page 289 B Standards and approvals of SIMATIC NET S7 CPs Note The system must be set up according to the regulations of the NEC (National Electrical Code). When used in environments corresponding to Class I, Division 2 (see above), the SIMATIC NET S7 CPs must be installed in an enclosure. FM approval Factory Mutual Approval Standard Class Number 3611, Class I, Division 2, Group A, B, C, D, T3...T6 or...
  • Page 290 C References and Literature Locating Siemens literature The order numbers for Siemens documentation can be found in the catalogs ”SIMATIC NET Industrial Communication, catalog IK PI” and ”SIMATIC Products for Totally Integrated Automation and Micro Automation, catalog ST 70”. You can obtain these catalogs and any further information you require from your local SIEMENS office or national head office.
  • Page 291 On configuration with STEP 7 / NCM S7 SIMATIC NET NCM S7 for Industrial Ethernet Primer Siemens AG Part of the online documentation in STEP 7 SIMATIC NET S7 CPs for Industrial Ethernet − device documentation Part A Configuration and Commissioning...
  • Page 292 C References and Literature Basic Help in the SIMATIC iMap Engineering Tool (online help) Siemens AG You will find further information on SIMATIC iMAP at: http://support.automation.siemens.com/WW/view/en/10805413 On programming /10/ SIMATIC NET Functions (FC) and Function Blocks (FBs) for SIMATIC NET S7 CPs...
  • Page 293 C References and Literature SIMATIC S7 SIMATIC S7 S7−400, M7−400 Automation system − Installation Manual (ID: 1117849) − Module Data: Reference Manual (ID: 1117740) Siemens AG http://support.automation.siemens.com/WW/view/en/1117849 http://support.automation.siemens.com/WW/view/en/1117740 On using and configuring PROFINET IO /15/ SIMATIC PROFINET System Description System Manual...
  • Page 294 C References and Literature On setting up and operating an Industrial Ethernet network /19/ SIMATIC NET Manual Twisted Pair and Fiber−Optic Networks Siemens AG (SIMATIC NET Manual Collection) /20/ SIMATIC NET Manual Triaxial Networks (SIMATIC NET Manual Collection) SIMATIC and STEP 7 basics...
  • Page 295 C References and Literature /25/ RFC1006 (ISO Transport Service on top of the TCP Version: 3) Request For Comment (http://www.ietf.org) /26/ RFC793 (TCP) (http://www.ietf.org) RFC791 (IP) /27/ (http://www.ietf.org) S7-CPs for Industrial Ethernet Configuring and Commissioning A−295 Release 07/2010 C79000−G8976−C182−10...
  • Page 296 D Glossary General Section ..........A−296 Industrial Ethernet and IT functions of the CPs .
  • Page 297 D Glossary Frame trailer A frame trailer consists of a checksum and the end identifier of the −> frame. Functions (FCs) STEP 7 code blocks of the type “function”. Gateway Intelligent connectivity device that connects local area −> networks of different types at the ISO Layer 7 level.
  • Page 298 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 Industrial Ethernet SIMATIC NET LAN system for industrial applications based on Ethernet.
  • Page 299 D Glossary SINEC Previous product name for −> networks and network components from Siemens. Now: SIMATIC NET Station A station is identified by a S MAC address in the Ethernet network S PROFIBUS address in the PROFIBUS network Subnet A subnet is part of a −> network whose parameters (for example −> PROFIBUS) must be matched.
  • Page 300 D Glossary Industrial Ethernet and IT functions of the CPs Application Programming Interface: programming library. Applet −> Java applet Bean −> JavaBean Base address Logical address of a module in S7 systems. S For PROFIBUS The PROFIBUS base address is the address starting at which all addresses that are calculated automatically in the project are assigned.
  • Page 301 D Glossary HTML page A file created in HTML format that can be made available, for example on Web servers and can be called in the intranet/Internet. HTTP Hyper Text Transfer Protocol HTML tag HTML tags are structure elements of HTML documents. These structure elements include, for example, titles, paragraphs, tables and even applet calls.
  • Page 302 D Glossary ISO transport connection Communication connection of the transport layer (with the CP/COM 143 previously S5S5 connection). ISO transport connections allow program/event-controlled communication on Industrial Ethernet between SIMATIC S7 PLCs and S SIMATIC S7 PLC with Ethernet CP S SIMATIC S5 with an Ethernet CP (e.g. CP 143 or CP 1430) S PC/PG with Ethernet CP (for example CP 1613) S Any system using the ISO transport protocol (ISO 8073) The transfer of blocks of data on an ISO transport connection is bi-directional.
  • Page 303 D Glossary Media Access Control (MAC) Mechanisms for controlling access by a station to a common transmission medium shared with other stations. Proxy server A proxy server can increase the security in a network. The software can be used, for example, to check access or to deny access to particular pages or documents as is also the case with a firewall.
  • Page 304 D Glossary SUN Java Virtual Machine (JVM) The Java Virtual Machine is the central element in SUN’s Java programming environment. This component makes Java programs independent of a particular platform. TCP/IP TCP = Transport Connection Protocol; IP = Internet Protocol Industrial Ethernet node A station is identified by a −>...
  • Page 305 D Glossary PROFINET Component based Automation Concept for implementing modular, distributed automation applications on the basis of open standards and data communication. Component based Automation is an expansion of Totally Integrated Automation (TIA). Device IN PROFINET CBA: Part of the PROFINET component that contains the hardware-specific data of the PROFINET component.
  • Page 306 A PROFINET component always includes a technological function and the corresponding device. SIMATIC iMap Engineering tool from Siemens for PROFINET CBA. Allows the configuration, commissioning, and monitoring of modular, distributed automation systems based on the PROFINET standard. SIMATIC iMap − STEP 7 Add−on Software for the SIMATIC iMap interface to STEP 7.
  • Page 307 E Linking to Other Systems with FETCH/WRITE The FETCH and WRITE modes supported on ISO transport connections, TCP, and ISO-on-TCP connections can be used with any other device to access the S7 system memory areas. To be able to use this type of access, for example for PC applications, you need to know the PDU structure of the jobs.
  • Page 308 E Linking to Other Systems with FETCH/WRITE b) Structure of FETCH frames The meaning and values of parameters shown without values in the following table “Parameter values“. can be found in the section FETCH request frame FETCH response frame System ID =”S”...
  • Page 309 E Linking to Other Systems with FETCH/WRITE Parameter values S7 Address Area ORG ID Source/dest. Source/dest. Source/dest. Source/dest. data from/to data from/to data from/to data from/to data block in bit memory process process main memory area image of the image of the inputs (PII) outputs (PIQ) DBNR...
  • Page 310 E Linking to Other Systems with FETCH/WRITE PI/PQ Address Area ORG ID Source/dest. Source/dest Source/dest data from/to in data from/to data from/to I/O modules. counter cells timer cells With source data input modules, with dest data output modules DBNR irrelevant irrelevant irrelevant Start address...
  • Page 311 E Linking to Other Systems with FETCH/WRITE Relevant return values in the acknowledgment frame / error field Error field Meaning Explanation Not a valid ORG format The data target / data source for a job is specified neither in the handling block (Q/ZTYP = “NN”) nor in the connection block Solution:...
  • Page 312 F Document History This section provides an overview of the previous releases of this manual and the functional expansions in STEP 7 and NCM S7. This was new in release 09 / STEP 7 V5.4 SP4 (C79000−G8976−C182−09) The manuals for the S7−Cps for Industrial Ethernet were restructured: S The “Information Technology in SIMATIC S7 with CPs for S7−300 and S7−400”...
  • Page 313 F Document History S New functions in the CP 343−1GX30−0XE0 and CP 443−1GX20−0XE0: upper/lower case for file names in the file system This was new in release 08 / STEP 7 V5.4 SP3 (C79000−G8976−C182−08) Apart from various adaptations to the currently supplied devices and the current version of STEP 7/NCM S7 V5.4 SP3, the following features were included: S Additional information in the block description New blocks for user programs (only S7−400 / CP 443−1):...
  • Page 314 F Document History version of STEP 7/NCM S7 V5.4 SP1, the following features were included: S Configuration of the CP mode PROFINET IO device Depending on the device type, certain CPs can be configured and operated in the PROFINET IO controller or PROFINET IO device modes. S Corrections and additions to the block description Corrections and additions were made to the following FCs/FBs.
  • Page 315 F Document History on the Web. You will find the useful link in Chapter 7 of release 03. S Expanded sample of programmed communication connections. S Printed version − General Part A and Device Description Part B separate Due to the increasing size, the printed version has been divided into two volumes.
  • Page 316 F Document History These include new functions for IP configuration: S IP Access Protection Using IP access protection gives you the opportunity of restricting access to the local S7 station to partners with specific IP addresses. S Configuring connections from the user program In some situations, it is an advantage to set up communication connections not over the configuration interface of STEP 7 but program-controlled by specific applications.
  • Page 317 Configuration E−mail connection: IT_E−Mail A−197 Access protection: IT_Webserver A−235 FTP connections: IT_FTP_ohne_FCs Access rights, FTP: IT_FTP_ohne_FCs A−223 A−208 mail server address: IT_E−Mail A−193 Access rights for IT CPs, configuring: PROFINET IO device: PNIO−Device Inbetrieb A−83 A−181 Activating Web server functionality: Web−Diag Configuration data, downloading to target A−239 system: Inbetrieb A−103...
  • Page 318 FTP tools, file access: IT_FTP_ohne_FCs A−208 E−mail, testing: IT_E−Mail A−202 Functions (FC), typical sequence: sendrecv E−mail client: IT_E−Mail A−193 A−110 E−mail connection, configuring: IT_E−Mail Functions (FCs) A−195, A−197 PNIO_RECV: PNIO−Device A−192 E−mail DB: IT_E−Mail A−199 PNIO_SEND: PNIO−Device A−191 E-mail attachments: IT_E−Mail A−201 data length: IT_E−Mail A−201 Ethernet, overview: einstieg A−20 Ethernet CP...
  • Page 319 ISO−on−TCP connection NCM S7 Diagnostics online path addresses: verb A−142 examples of an online path with gateway: checking: verb A−145 NCM−Diag A−266 properties: verb A−139 examples of an online path without specifying the connection partner: verb gateway: NCM−Diag A−265 A−140 Network access: einstieg A−20 New connection: verb A−122 NTP mode, time−of−day synchronization:...
  • Page 320 Project variant Slots 1 subnet − 1 project: einstieg A−42 S7-300: CP_Merkmale A−56 1 subnet − multiple projects: einstieg A−45 S7-400: CP_Merkmale A−58 Connections across subnets: einstieg A−50 STEP 7, Version: historie A−312 Multiple subnets − 1 project: einstieg A−44 SUN Java Virtual Machine: IT_Webserver Multiple subnets −...

Table of Contents