Application on Communication

Similar documents
Application for Process Automation

I-Device Function in Standard PN Communication SIMATIC S7-CPU, CP, SIMOTION, SINUMERIK. Configuration Example 08/2015

Applications & Tools. Communication between WinAC MP and a SIMATIC S7. Application for the PUT and GET Function Blocks of the S7 Communication

Drive System Application

Setting up a secure VPN Connection between SCALANCE S and CP x43-1 Adv. Using a static IP Address. SCALANCE S, CP Advanced, CP Advanced

Position Control with SIMATIC S and SINAMICS V90 via IRT PROFINET SINAMICS V90 PROFINET. Application description 03/2016

Setting up a secure VPN Connection between CP x43-1 Adv. and SOFTNET Security Client Using a static IP Address

Applications & Tools. System Architectures With SIMATIC PCS 7/OPEN OS SIMATIC PCS 7. Application Description November Answers for industry.

Micro Application Example

Configuration of an MRP ring with SIMOCODE and SIMATIC S SIMOCODE pro V PN, SIMATIC S Siemens Industry Online Support



Communication between HMI and Frequency Converter. Basic Panel, Comfort Panel, Runtime Advanced, SINAMICS G120. Application Example 04/2016

Application on Control Technology

Display of SINAMICS Error Messages in Runtime Professional

Setting up a secure VPN connection between two SCALANCE S Modules Using a static IP Address

Display of SINAMICS Fault Messages in WinCC V7.4

Topology Reporter Tool Description April 2012 Applications & Tools Answers for industry.

Setting up a secure VPN Connection between the TS Adapter IE Advanced and Windows 7

Drive System Application

Application for Communication

Application for Process Automation

Monitoring of 24 V load circuits

Application for Communication

Setting up a secure VPN Connection between SCALANCE S and SSC Using a static IP Address. SCALANCE S, SOFTNET Security Client

Drive System Application

Generating the Parameters for the Modbus/TCP Communication

Applikationen & Tools. Network Address Translation (NAT) and Network Port Address Translation (NAPT) SCALANCE W. Application Description July 2009

TeleService of a S station via mobile network

Checking of STEP 7 Programs for the Migration of S7-318 to S CPU318 Migration Check. Application description 01/2015

Configuring the F-I-Device function with the SENDDP and RCVDP blocks.

SINAMICS G/S: Integrating Warning and Error Messages into STEP 7 V5.x or WinCC flexible


SIMATIC PCS 7 Minimal Configuration

Connecting a distributed I/O to SIMATIC TDC with PROFINET RT and IRT

Configuration of an MRP Ring and a Topology with Two Projects

Application about Drive Technology

Automatic Visualization of the Sample Blocks in WinCC Advanced

Key Panel Library / TIA Portal

Drive System Application

Configuration Control with the S and ET 200SP


Monitoring of 24 V load circuits


Applications & Tools. Time-of-Day Synchronization between WinCC Runtime Professional and S7 Controllers. WinCC Runtime Professional

Applications & Tools. Block for STEP 7 V5.5 for monitoring 24 V DC load circuits using SITOP PSE200U Single Channel Message and S7-300/400 CPUs

Safe and Fault Tolerant Controllers


Windows firewall settings for X-Tools Server Pro. CMS X-Tools / V / CPU PN/DP. Application description 6/2016

Applications & Tools. Configuration Control (Options Handling) for ET 200SP and PROFINET SIMATIC S7. Application Description June 2012

House Control with Touch Panel

Acyclic communication between S and V90PN via PROFINET. Application example 12/

Applications & Tools. Configuration of Direct Starters with the APL Channel Block FbSwtMMS in SIMATIC PCS 7 SIMATIC PCS 7 V8.0


Applications & Tools. Configuring RT communication between SIMATIC and SIMOTION (I-Device) SIMATIC & SIMOTION. Application Example June 2012

User Login with RFID Card Reader

Applications & Tools. Remote Control of Operator Panel in Applications requiring Validation in the Pharmaceutical Environment


Networking a SINUMERIK 828D

Engineering of the Configuration Control for IO Systems

Application for Process Automation

Data Synchronization between Head and Field PLCs with Storage of the Process Values in CSV Files

Applications & Tools. Configuration Examples for SIMATIC S7-400H with PROFINET. SIMATIC S7-400H as of V6.0. Application Description January 2013

Diagnostics for enabled Configuration Control with S and ET200SP

Application about Communication

Set on Human Machine Interface

Failsafe Controllers. SIMATIC Safety Integrated Two-Hand Control Panel with Integrated Emergency Stop in Category 4 according to EN 954-1

X-Tools Loading Profile Files (LPF)

Applications & Tools. Individual Access to Stored PDF- and HTML-Documents via Comfort Panel. WinCC Comfort V11. Application Description May 2012

Simple Introduction into Energy Management with WinCC WinCC Application Description December 2011 Applications & Tools Answers for industry.

Setting up time synchronization of Process Historian and Information Server


Setting up a secure VPN Connection between CP x43-1 Adv. and M812-1 Using a static IP Address

Setting up a secure VPN Connection between two M812-1 Using a static IP Address

Block for SIMOTION SCOUT for Monitoring 24V-Branches

STEP 7 function block to control a MICROMASTER 4 or SINAMICS G120/G120D via PROFIBUS DP

Application about Drive Technology

Configuration Control with the S and ET 200SP

Micro Application Example

Application Description 03/2014. Detecting PROFINET Topologies and Activating IO Devices.

Applications & Tools. Wireless Data Communication via SMS with SIMATIC S SIMATIC S7-1200, SINAUT MD Application Description July 2010


S Data Transfer with SEND/RECEIVE Interface


Applications & Tools. Security Configurations in LAN and WAN (DSL) with SCALANCE S61x Modules and the Softnet Security Client. Industrial Security

Moving a Process Historian/ Information Server from Workgroup A to Workgroup B

Application example 02/2017. SIMATIC IOT2000 Connection to IBM Watson IoT Platform SIMATIC IOT2040


STEP 7 Professional V14 SP1, Energy Suite V14 SP1, SENTRON PAC Measuring Devices, Modbus TCP

SIMATIC Visualization Architect (SiVArc) Getting Started

Applications & Tools. Remote Configurations in Water and Wastewater Technology SIMATIC PCS 7. Application Description May Answers for industry.

Configuration Instruction

Setting up a secure VPN Connection between SCALANCE S and M812-1 Using a static IP Address

Communication via the CM PtP of the ET200 SP using the Freeport Protocol. S7-300, ET200SP, CM PtP, SIMATIC MV340. Application description 03/2015

PNDriver V2.1 Quick Start Guide for IOT2040 SIMATIC IOT

Use and Visualization of IOLink Devices


Process automation with the SIMATIC PCS 7 CPU 410-5H controller

Applications & Tools. SINAMICS S120: Control of the Safety Integrated Basic Functions via onboard terminals SINAMICS S120

Exchange of large data volumes between S control system and WinCC

Transcription:

Application on Communication PROFINET IO Configuration and Diagnostics Configuration Example

Warranty, liability and support PROFINET_IO Entry ID: 22981197 Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are correctly used. These Application Examples do not relieve you of the responsibility of safely and professionally using, installing, operating and servicing equipment. When using these Application Examples, you recognize that Siemens cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in these Application Examples and other Siemens publications e.g. Catalogs then the contents of the other documents have priority. Warranty, liability and support We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract ( wesentliche Vertragspflichten ). However, claims arising from a breach of a condition which goes to the root of the contract shall be limited to the foreseeable damage which is intrinsic to the contract, unless caused by intent or gross negligence or based on mandatory liability for injury of life, body or health. The above provisions do not imply a change in the burden of proof to your detriment. Copyright 2006 Siemens A&D. It is not permissible to transfer or copy these Application Examples or excerpts of them without first having prior authorization from Siemens A&D in writing. For questions about this document please use the following e-mail address: mailto:csweb@ad.siemens.de Version 1.0 Edition 05/15/06 2/37

Foreword PROFINET_IO Entry ID: 22981197 Foreword Objective of the document This application shows the configuration, startup and a simple overview diagnostics of a PROFINET IO configuration in simple, comprehensible and, above all, reproducible steps. Main contents of this document This document deals with the following key elements: Step-by-step configuration of a PN IO system Integration of a PROFIBUS line into PROFINET IO Standard STEP7 diagnostic functions for PROFINET IO Delimitation This application does not include a detailed description of the PROFINET mechanisms. Structure of the document The documentation of this application is divided into the following main parts. Part Application Description Principles of Operation Structure, Configuration and Operation of the Application Literature Description This part describes the automation problem to be solved. This section provides an overview of the function classes of the PROFINET system, the possible performance classes, the functional model of the PN IO system and the configuration and diagnostics in STEP 7. It is required to read this part to obtain an overview of the functionality and the functional scope of PROFINET. This part takes you step by step through structure, important configuration steps, startup and a simple diagnostics of the PN IO configuration. This section of the documentation includes further information, e.g. bibliographic references, internet links, etc. Reference to Automation and Drives Service & Support This entry is from the internet application portal of Automation and Drives Service & Support. Clicking the link below directly displays the download page of this document. http://support.automation.siemens.com/ww/view/en/22981197 Version 1.0 Edition 05/15/06 3/37

Foreword PROFINET_IO Entry ID: 22981197 Table of Contents Table of Contents... 4 Application Description... 5 1 Automation Problem... 5 1.1 Overview... 5 1.2 System configuration... 6 1.3 Required hardware and software components... 7 Principles of Operation... 9 2 Valuable Information on PROFINET... 9 2.1 General overview... 9 2.2 PROFINET real-time communication... 10 2.3 Functional model... 10 2.4 Configuration... 11 2.5 Diagnostics... 12... 13 3 Installation and Startup... 13 3.1 Installation of hardware and software... 13 4 Configuration... 16 4.1 Setting PG/PC interface... 16 4.2 Creating a new project... 17 4.3 Hardware configuration of an S7-300 station... 19 4.4 Hardware configuration of an ET 200S... 22 4.5 Connecting IE/PB Link PN IO to PROFINET IO system... 25 4.6 Connecting ET 200S Compact to PROFIBUS... 27 4.7 Integrating SCALANCE X208 into PROFINET IO-diagnostics... 28 4.8 Creating user program and downloading project... 30 5 Diagnostics with STEP7 Basis... 32 5.1 Activating diagnostic function in STEP 7 Basis... 32 5.2 Diagnostics of a module failure... 33 5.3 Diagnostics of an open circuit... 34 Literature... 37 6 Literature... 37 6.1 Bibliographic references... 37 6.2 Internet links... 37 Version 1.0 Edition 05/15/06 4/37

Application Description Automation Problem PROFINET_IO Entry ID: 22981197 Application Description Content The following chapter provides information on the used components (standard hardware and software components) necessary for this application. In addition, this chapter includes an overview of the configuration process in STEP 7. 1 Automation Problem You are provided with information on the specific automation problem described in this documentation. 1.1 Overview Description of the automation problem The problem is to configure a PROFINET IO system. The system is to consist of one PROFINET IO controller and several IO devices. These devices are to be connected to the controller via both Ethernet and PROFIBUS. Finally, the diagnostics of the complete PROFINET IO system is to be performed using STEP7 means. Version 1.0 Edition 05/15/06 5/37

Application Description Automation Problem PROFINET_IO Entry ID: 22981197 1.2 System configuration Schematic layout The following figure schematically shows the most important components of the solution: Figure 1-1 PROFINET IO system CPU 315-2 PN/DP SCALANCE X208 IE/PB LINK PN IO Field PG ET 200S PN Further ET 200S PN possible ET 200S COMPACT Configuration The system is configured in star topology around the SCALANCE X208 Ethernet switch. The central control unit is a SIMATIC S7-300 station with a CPU 315-2 PN/DP. As PROFINET devices an ET 200S with IM 151-3 PN and an IE/PB Link PN IO are connected via Ethernet. Since the IE/PB Link is used as a gateway between PROFINET IO and PROFIBUS, PROFIBUS modules can also be connected via this module. In this document the module is an ET 200S COMPACT. A PG/PC with Ethernet interface is used as configuration and programming device. Note The integration of a 2-port switch into the ET 200S enables a line topology of the cabling without further external switches. Version 1.0 Edition 05/15/06 6/37

Application Description Automation Problem PROFINET_IO Entry ID: 22981197 Advantages of this solution Using this solution, PROFINET enables to realize real-time Ethernet applications with already existing Ethernet infrastructures and to connect field devices directly to Ethernet. In addition, innovative networking options make it possible to easily and cost-effectively connect existing PROFIBUS segments to a wide area networking via Ethernet. This ensures that a further use of already existing installations is possible which safeguards already made investments. 1.3 Required hardware and software components Hardware components Table 1-1 Component No. MLFB / Order number Note Field PG or PC Programming device (PG) or PC with Ethernet network card, 100 Mbit/s full duplex 1 Depending on configuration Installed software STEP 7, from version 5.3. SP3 HF 1 PROFINET IO - CPU315-2 PN/DP DIN rail 1 E. g. 6ES7 390-1AE80-0AA0 Power supply (PS307, DC24V/5A) CPU 315-2 PN/DP from V2.3 Micro Memory Card (MMC) 1 E. g. 6ES7 307-1EA00-0AA0 1 6ES7315-2EG10-0AB0 1 E. g. 6ES7 953-8LL11-0AA0 Switch, IE/PB Link, network components Switch, e. g. 1 6GK5 208-0BA00-2AA3 SCALANCE X208 IE/PB Link PN IO 1 6GK1411-5AB00 Industrial Ethernet twisted pair cable (Cat5) with RJ45 plugs (TP cord patch cable RJ45/RJ45, length 6 m) 3 E. g. 6XV1 850-2GH60 PROFINET IO - ET 200S Standard DIN rail 35 6ES5 710-8MA11 mm (e. g. length 483 mm) The MMC is mandatory for operating the CPU. Version 1.0 Edition 05/15/06 7/37

Application Description Automation Problem PROFINET_IO Entry ID: 22981197 Component No. MLFB / Order number Note IM151-3 PN interface module and terminating module Micro Memory Card (MMC) PM-E power module for ET 200S, DC24V 2DI DC24V ST input module (5 ea.) 4DO DC24V/0.5A ST output module (5 ea.) TM-P15S23-A1 Fast Connect terminal module (1 ea.) TM-E15S24-A1 Fast Connect terminal module (5 ea.) Industrial Ethernet FC RJ45 plug 90 (10 ea.) Industrial Ethernet FC stripping tool ET 200S Compact IM151-1 COMPACT interface module 16DI DC24V / 16DO DC24V/0.5A TM-P120C214-00 terminal module for IM151-1 COMPACT Standard DIN rail 35mm, 483mm 6ES7 151-3BA20-0AB0 E. g. 6ES7 953-8LF11-0AA0 Head module with 2-port RJ45 switch. The MMC is mandatory for operating the ET 200S PN. 1 6ES7 138-4CA01-0AA0 Mandatory for the power supply. 2 6ES7 131-4BB00-0AA0 1 6ES7 132-4BD01-0AA0 1 6ES7 193-4CC20-0AA0 Necessary for the power module. 3 6ES7 193-4CA20-0AA0 1 6GK1 901-1BB20-2AB0 1 6GK1 901-1GA00 1 6ES7151-1CA00-3BL0 1 6ES7193-4DL00-0AA0 Necessary for the interface module. 1 6ES5710-8MA11 Profibus cable 1.5 m 1 6XV1830-1CH15 Standard software components Table 1-2 Component No. MLFB / Order number Note STEP 7 V 5.3 SP 3 HF 1 1 6ES7810-5CC08-0YA5 Floating license for STEP 7 V 5.3 or higher Version 1.0 Edition 05/15/06 8/37

Principles of Operation Valuable Information on PROFINET Principles of Operation Content The following chapter provides you with basic background information on PROFINET. 2 Valuable Information on PROFINET 2.1 General overview As the field bus PROFIBUS, the PROFINET technology is standardized and developed by the PROFIBUS user organization. PROFINET differentiates between two applications: PROFINET CBA (Component Based Automation) this version which was developed first defines the cross-vendor communication of intelligent automation components and plant parts at the control level. Using the SIMATIC imap interconnection editor, the communication between controllers is configured instead of programmed. PROFINET IO defines the connection of distributed field devices to central controllers via Ethernet and die cyclic transmission of I/O data. One of the main challenges for the development of PROFINET was to use Ethernet and other proven IT technologies in all fields of automation. Since its introduction, the PROFINET standard has managed to advance to the field bus level based on Ethernet, also enabling the transparent integration of existing field bus systems e.g. PROFIBUS. The essential advantages include: Achievement of an integrated communication and reduction of the interfaces Simplification of the engineering Simplification of the diagnostics Use of the existing know-how and protection of the investments already made IT world and automation world grow closer together. Version 1.0 Edition 05/15/06 9/37

Principles of Operation Valuable Information on PROFINET 2.2 PROFINET real-time communication As shown in the figure below, the Ethernet-based communication is scalable and provides three performance classes with different response times: TCP/IP (100ms): For open TCP communication (e.g. for the transmission of non-time-critical data: Parameterization, diagnostics) RT (10ms): Real-time communication for time-critical data (e.g. in factory automation: Cyclic data, event-controlled messages, alarms) IRT (1ms): Isochronous real-time for sophisticated applications (e.g. in motion control) Figure 2-1 2.3 Functional model The PROFINET IO functional model resembles the model of PROFIBUS DP, but the master-slave procedure was converted into a providerconsumer model since all nodes have equal rights when using Ethernet. The devices of PROFINET IO are referred to as IO controller and IO device or IO supervisor. Version 1.0 Edition 05/15/06 10/37

Principles of Operation Valuable Information on PROFINET Table 2-1 Device type IO controller IO device IO supervisor Description Master for the input/output data of the field devices. Represents the communications interface of a controller. Corresponds to DP Master Class 1 Distributed field device Designation for an engineering and diagnostic station. Corresponds to DP Master Class 2 Figure 2-2 Configuration I/O data Interrupts PLC IO controller PG/PC IO supervisor Field device IO device Parameterization Status Diagnostics Existing field bus systems can be easily integrated into PROFINET. This is realized using a proxy; this proxy is either integrated into a PROFINET device or it is an autonomous device (e.g. SIMATIC NET IE PB Link PN IO). 2.4 Configuration Analogous to PROFIBUS DP, a plant engineering requires the devicespecific system data (GSD-XML files) of the used field devices. They are imported to the configuration tool (e.g. STEP7), which, based on the network data, establishes an address list for the IO controller. The planner assigns a unique logical name to each field device. The actual name assignment in the device is performed by the DCP (Discovery and Control Protocol) integrated in each IO device. To ensure that each device is detected as node on the Ethernet, an IP address has to assigned to each device. The IP addresses are generated by the configuration tool and loaded to the IO controller as the configuration. During the system startup, the controller assigns these configured IP addresses to the configured field devices. See the schematic representation below. Version 1.0 Edition 05/15/06 11/37

Principles of Operation Valuable Information on PROFINET Figure 2-3 2.5 Diagnostics PROFINET offers a powerful diagnostic concept which comprises each device configured in PROFINET, also network components which are PROFINET devices (e.g. SCALANCE X208). This device diagnostics is divided into three stages: Error on the device: Failure of a station Error on the slot: Defect of an individual module Channel error: E.g. wire break If an error occurs, the corresponding IO device generates a diagnostic interrupt which is reported to the controller. The user is responsible for its evaluation. In addition, this diagnostic information can be read and evaluated directly from a connected IO supervisor. Version 1.0 Edition 05/15/06 12/37

Installation and Startup Structure, Configuration and Operation of the Application Content This part takes you step by step through structure, important configuration steps, startup and test of the example system. 3 Installation and Startup You are provided with information on the hardware and software you have to install and the steps necessary to start up the example. 3.1 Installation of hardware and software This chapter describes which hardware and software components have to be installed. The descriptions and manuals as well as delivery information included in the delivery of the respective products should be observed in any case. Installation of the hardware For details on the hardware components, please refer to chapter 1.3. For the hardware configuration, please follow the instructions listed in the table below:! Warning Only switch on the power supply after the last step. Table 3-1 No. Focus Instruction 1. SCALANCE-X208 Mount the entire module on the S7-300 DIN rail. /1/ 2. CPU 315-2 PN/DP Insert the MMC card into the MMC slot of the CPU 315-2 PN/DP. /2/ Mount the CPU and the PS on the S7-300 DIN rail. 3. IE/PB Link PN IO Mount the IE/PB Link PN IO on the S7-300 DIN rail. 4. ET 200S (IM 151-3 PN) Assemble the following modules according to guide /3/ in the following order: 1. IM151-3 PN interface module 2. 1 x TM-P15N23-A1 Fast Connect terminal module 3. 3 x TM-E15N24-A1 Fast Connect terminal module 4. Terminating module Insert the modules listed below into the now available terminal Version 1.0 Edition 05/15/06 13/37

Installation and Startup No. Focus Instruction 5. ET 200S COMPACT (IM 151-1 COMPACT) modules in the same order: 1. 1 x PM-E DC 24V 2. 2 x DI DC 24V ST 3. 1 x DO 24V/0.5A ST Mount the entire module on a standard DIN rail 35 mm. Insert the electronic block of the ET 200S COMPACT into the TM-C terminal module until it snaps into place. Mount the entire module on a standard DIN rail 35 mm. 6. Cabling Connect the system as follows: Industrial Ethernet Port 1 CPU 315-2PN/DP Port 2 ET 200S PN (IM151-3) Port 3 IE/PB LINK PN IO PROFIBUS Connection between IE/PB LINK PN IO and ET 200S COMPACT Electrical connections: Connect the output signals to the inputs of the ET 200S. Connect some output signals to the inputs of the electronic block of the ET 200S COMPACT. Supply all necessary voltage points with 24 V voltage from the PS. Note The installation guidelines for Industrial Ethernet networks, for ET200 and S7-300 always have to be observed. Version 1.0 Edition 05/15/06 14/37

Installation and Startup Installation of the standard software Table 3-2 The table below includes the necessary standard software packages and the advisable or necessary extensions for STEP7. No. Standard software Comment / link 1. STEP 7 V 5.3 + SP 3 + HF 1 For configuring the S7-300 station and programming the user program. 2. HW update / HSP Install the most current HW updates online or via the HSP on the internet. See \1\ 3. GSD XML files Install the current GSD / XML files as described in manual /4/: ET 200S if required see \2\ SCALANCE (necessary for this document) see \3\ Version 1.0 Edition 05/15/06 15/37

Configuration 4 Configuration You are provided with a step-by-step configuring guide describing how this configuration is configured in STEP7. 4.1 Setting PG/PC interface Table 4-1 The following section describes the basic settings of the PG/PC interface. The Set PG/PC Interface dialog box can be accessed within STEP7 and via the menu tree. No. Instruction Screen shot 1. Open the Set PG/PC Interface dialog box. Select the S7ONLINE access path. Select the network card used by you. Version 1.0 Edition 05/15/06 16/37

Configuration No. Instruction Screen shot 2. Now select the Properties option. Select the IE-PG Access tab. Select the point Assign IP addresses unique to the project 3. Then click OK twice to confirm this setting. 4.2 Creating a new project This section describes the creation of a new project within STEP7. In addition, the creation of a new S7-300 station is shown. Version 1.0 Edition 05/15/06 17/37

Configuration Table 4-2 No. Instruction Screen shot 1. In the SIMATIC Manager, select the menu command: File > New Enter a name for the project and confirm it by clicking OK. 2. Use the command Insert > Station > SIMATIC 300 Station to insert a new station. 3. Inserting the S7-300 station is now completed. Version 1.0 Edition 05/15/06 18/37

Configuration 4.3 Hardware configuration of an S7-300 station Table 4-3 The following step sequence describes the procedure for configuring an S7-300 station with a CPU 315-2 PN/DP for a PROFINET IO connection. No. Instruction Screen shot 1. In the right part of the window, double-click the SIMATIC 300(1) icon. Double-click the Hardware icon to open the HW Config tool. 2. You can use the hardware catalog to insert your hardware components. If no catalog is displayed, activate it using the menu command View > Catalog 3. In the hardware catalog, first navigate SIMATIC 300 to Rack-300. Now use drag & drop to move the DIN rail to the upper left part of the HW Config window. Subsequently change to PS- 300 and insert the power supply used by you into slot 1 of the DIN rail. Please observe that the order numbers of the modules must correspond! Version 1.0 Edition 05/15/06 19/37

Configuration No. Instruction Screen shot 4. Now navigate to CPU-300 and deeper in the tree to CPU 315-2 PN/DP. Drag the module with version 2.3 (V 2.3) to slot 2. 5. Each node of an Ethernet network can be identified by a worldwide unique address. This MAC address is assigned by the manufacturer and cannot be changed. The address relevant in PROFINET, the IP address, is assigned in this dialog box after inserting the CPU hardware into the rack. 6. Networking the station requires a subnet, which is created in the project by clicking the New button. A parameterization of the Ethernet network is not required if no router is used. Version 1.0 Edition 05/15/06 20/37

Configuration No. Instruction Screen shot 7. After confirming by clicking OK, the CPU is inserted in the S7 controller with PROFINET IO network. Version 1.0 Edition 05/15/06 21/37

Configuration 4.4 Hardware configuration of an ET 200S As PROFIBUS DP slaves, PROFINET devices are assigned to the network and thus to the controller in the hardware configuration. This section describes the configuration of an ET 200S PN within a PROFINET IO network. Table 4-4 No. Instruction Screen shot 1. From the hardware catalog, select the IM153-3 PN module with the order number from the catalog PROFINET IO > I/O > ET 200S. 2. Use drag & drop to insert this head module into the Ethernet PROFINET line. Version 1.0 Edition 05/15/06 22/37

Configuration No. Instruction Screen shot 3. From the submenu of the head module, insert the ET 200S modules used by you into the intended slots. See also chapter 1.3 of this document. 4. Double-click the IM 151-3 station to display the properties of the head module. You can check whether the IP address is unique or adapt the Device Name. The device name must be unique in the network, 2 devices must not use the same device name Here the device name IM151-3PNHF is used. 5. After confirming with OK, the device name can be transferred to the IM151-3 PN online. To do this, open: PLC > Ethernet > Assign Device Name... The execution requires a direct connection to the Ethernet PROFINET. Version 1.0 Edition 05/15/06 23/37

Configuration No. Instruction Screen shot 6. After the search process the SIMATIC devices located on the PROFINET network are displayed. Select the device used by you and use the Assign name function to assign the desired device name to the device. Here it is stored on the MMC card of the module. Note! Warning To check the selection of the used device, the Flashing on function as shown in the screen shot of step 6 can also be used. Each device name, both controller and device, must be unique network-wide! Version 1.0 Edition 05/15/06 24/37

Configuration 4.5 Connecting IE/PB Link PN IO to PROFINET IO system Table 4-5 The connection of PROFIBUS components, here PROFIBUS DP slaves, to a PROFINET network requires links with proxy functionality. The IE/PB Link PN IO is such a link. The following steps are necessary to connect such a device to PROFINET. No. Instruction Screen shot 1. In the hardware catalog, navigate to PROFINET IO > Gateway > IE/PB Link PN IO > 6GK1 411-5AB00 Select version 2.0 (V 2.0) and use drag & drop to move it to the PROFINET Ethernet. 2. The Properties window of the PROFIBUS interface opens. Select a PROFIBUS address for the link. 3. Create a new PROFIBUS subnet according to the parameters desired by you. By default a transmission rate of 1.5 Mbps and the DP bus profile are used. Version 1.0 Edition 05/15/06 25/37

Configuration No. Instruction Screen shot 4. After confirming the dialog box with OK, the IE/PB Link PN IO is displayed on PROFINET. 5. The device name can be transferred to the IE/PB Link online by selecting: PLC > Ethernet > Assign Device Name... This requires a direct connection to the network. 6. After the search process the SIMATIC devices connected to the network are displayed. Select the device used by you and use the Assign name function to assign the desired device name to the device. This name is stored in the module. Here the device name IE-PB-Link is used. 7. Exit the dialog box by clicking Close. Note To check the selection of the used device, the Flashing on function as shown in the screen shot of step 6 can also be used.! Warning Each device name, of both the controller and the device, must be unique network-wide! Version 1.0 Edition 05/15/06 26/37

Configuration 4.6 Connecting ET 200S Compact to PROFIBUS The available IE/PB Link PN IO allows to connect PROFIBUS I/O to a PROFINET network. To show this process, an ET 200S Compact will be connected to a PROFIBUS line of the IE/PB Link PN IO in the following steps. Note Please observe the address setting on the corresponding DP slave. Table 4-6 No. Instruction Screen shot 1. In the hardware catalog, navigate to PROFIBUS DP > ET 200S > ET 200S Compact 16DI/16DO Select the head module and use drag & drop to move it to the PROFIBUS DP Master network. 2. After inserting the module into the PROFIBUS, the Properties window of the ET 200S Compact opens and the PROFIBUS address can be selected. The system automatically suggests a free address. 3. After exiting the dialog box with OK, the DP slave is displayed in the configuration. Further modules can be added to the slave, please refer to the hardware catalog for the selection of the possible modules. Version 1.0 Edition 05/15/06 27/37

Configuration 4.7 Integrating SCALANCE X208 into PROFINET IO-diagnostics Table 4-7 One advantage of the PROFINET architecture is that the PROFINETcapable network infrastructure such as the SCALANCE X200 switches can be integrated into the PROFINET IO-diagnostics. In the following a SCALANCE X208 is inserted as PROFINET IO device. This function is optional. No. Instruction Screen shot 1. In the hardware catalog, navigate to PROFINET IO > General > SCALANCE X-200 Switches > SCALANCE X208. 2. Use drag & drop to move them to the Ethernet PROFINET network. 3. Double-click the module to open the Properties dialog box of the module. The following can be entered: The device name The GSD XML file to be used The IP address to be assigned Version 1.0 Edition 05/15/06 28/37

Configuration No. Instruction Screen shot 4. Use the Change Release Number function to select the GSD XML file to be used by the system. We recommend using the most current version. Click OK to exit the dialog box. (See chapter 6.2 \3\) 5. The Ethernet function is used to specify the IP address of the SCALANCE X208. The system presets a free IP address in the STEP7 project, it can be adapted as desired. The address is dynamically assigned during the startup of the controller. Click OK twice to close the dialog box. Version 1.0 Edition 05/15/06 29/37

Configuration 4.8 Creating user program and downloading project Table 4-8 No. The following small user program is used as an example to show the simple access to I/O modules in bit, byte, word and double word format via the interconnection of inputs and outputs. Instruction 1. After saving and compiling in HW Config, this tool can be closed. In the tree of the STEP 7 Manager, change to: SIMATIC 300(1) > CPU 315-2 PN/DP > S7-Program(1) > Blocks On the right window pane, in which so far only the system data folder and OB 1 are listed, create the following blocks via Insert > S7 Block > Organization Block: OB 35 (watchdog interrupt OB 100 ms) For the execution of the user program in a time rundown which can be better monitored. OB 82 (diagnostic interrupt OB) Block for the evaluation of diagnostic interrupts of interrupt-capable modules, here of the PN IO controller. OB 83 (unplugging/plugging OB) Block for the diagnostics / evaluation of module failures. OB 86 (rack failure OB) Block for the diagnostics / evaluation of failures of expansion units, DP masters, PN IO controllers or of DP slaves or PN IO devices. 2. Double-click the block OB 35 to open it and insert the following code: With these code lines the outputs of the ET 200S and ET 200S Compact are incremented in the 100ms grid. 3. Save the block in the block editor and close this editor. Version 1.0 Edition 05/15/06 30/37

Configuration No. Instruction 4. In the left project tree, select the SIMATIC300(1) station and in the menu, select PLC > Download. After downloading the configuration, the CPU automatically assigns the configured IP addresses to the IO devices. If the subnet is set up correctly and if the configuration corresponds to the actual IO device configuration, the IO device is ready for the cyclic data exchange. The BF LED of the CPU starts flashing after downloading the hardware configuration. If the CPU can correctly accept the IO devices, both the BF LED of the CPU and the still flashing BF-LED of the IO devices go out. With this step, the configuration of the configuration is completed. To test this configuration, the following diagnostic functions can be used. Version 1.0 Edition 05/15/06 31/37

Diagnostics with STEP7 Basis 5 Diagnostics with STEP7 Basis You are provided with information on the diagnostic functions available to you for a PROFINET IO system in STEP 7. Overview This chapter uses the simulation of the failures of a module and an assembly to show the diagnostic capabilities within the S7 project. STEP 7 tools are used exclusively. Note For the diagnostics of the individual modules via the LED displays, please use the corresponding operating instructions of the device. The system description has to be observed for the diagnostics via the user program. 5.1 Activating diagnostic function in STEP 7 Basis Table 5-1 No. Instruction Screen shot 1. Open HW Config and select the online view of the configuration via Station > Open ONLINE 2. This overview diagnostics shows all parameterized stations. All intelligent modules are displayed with status information. Version 1.0 Edition 05/15/06 32/37

Diagnostics with STEP7 Basis 5.2 Diagnostics of a module failure Table 5-2 No. Instruction Screen shot 1. The first fault scenario is to provoke a failure of the I/O module. Unplug an I/O module, e.g. the second 2 DI module, from the IM 151-3 PN. Press the F5 key to update the display. This display appears in the overview. 2. Double-clicking Device starts the detailed diagnostics of the device. It is indicated that an error has occurred, the exact information on the error is provided in IO Device Diagnostics. 3. After selecting IO Device Diagnostics, the error message can be read in plain text in Standard Diagnostics in the middle of the window. Here the failure or the unplugging of the module in slot 3 was diagnosed. As soon as you reinsert the module, the error message disappears after the update. Version 1.0 Edition 05/15/06 33/37

Diagnostics with STEP7 Basis 5.3 Diagnostics of an open circuit Note The fault mask of the SCALANCE can, according to manual /1/, be configured via the pushbutton on the front of the SCLANCE or the web interface. Short instructions for configuring the fault mask The fastest way to define the fault mask is to use the Set pushbutton on the SCALANCE X208. The following steps have to be performed: Press the pushbutton on the front, on the right below the RJ45 ports. After pressing the pushbutton for approximately 3 seconds, the currently valid fault mask is displayed. The monitored ports flash at 5 Hz. After the 3 seconds the new fault mask is displayed. The flashing frequency reduces to 2.5 Hz. After another 3 seconds the new fault mask is applied and saved. The monitored ports are now indicated by permanently lit LEDs until the pushbutton is released. The configuration is now completed. Version 1.0 Edition 05/15/06 34/37

Diagnostics with STEP7 Basis Table 5-3 No. Instruction Screen shot 1. The second fault scenario is to provoke an open circuit by removing the RJ45 plug connected to the IE/PB Link PN IO from the switch. After the update by pressing F5, an error is displayed in the components SCALANCE X208, IE/PB Link PN IO and ET 200S Compact. 2. Double-click SCALANCE X208 to open the module information of the switch. 3. Select IO Device Diagnostics to display Channel-Specific Diagnostics. Illegal linkdown on port 3 of the switch is displayed here. Version 1.0 Edition 05/15/06 35/37

Diagnostics with STEP7 Basis No. Instruction Screen shot 4. This status can also be graphically displayed by selecting the Status tab. This ensures an easy locating of the error. 5. The Fault Mask tab enables to additionally check which interface of the SCALANCE X208 switch is monitored. This fault mask can be changed via the web interface or the Set pushbutton on the actual device. Version 1.0 Edition 05/15/06 36/37

Literature Literature PROFINET_IO Entry ID: 22981197 6 Literature 6.1 Bibliographic references Literature Table 6-1 This list is by no means complete and only provides a selection of appropriate sources. Topic /1/ SCALANCE X Industrial Ethernet SCALANCE X-100 and SCALANCE X-200 Product Line http://support.automation.siemens.com/ww/view/en/22305980 /2/ CPU 315-2 PN/DP S7-300, CPU 31xC and CPU 31x: Installation Operating Instructions http://support.automation.siemens.com/ww/view/en/13008499 /3/ ET 200S ET 200S Distributed I/O System Operating Instructions http://support.automation.siemens.com/ww/view/en/1144348 /4/ PROFINET IO PROFINET System Description http://support.automation.siemens.com/ww/view/en/19292127 6.2 Internet links Table 6-2 Title This list is by no means complete and only provides a selection of appropriate sources. Topic \1\ Hardware Support Package on the internet \2\ GSD XML for ET200S PN on the internet \3\ GSD XML for SCALANCE X on the internet Title http://support.automation.siemens.com/ww/view/en/22374877 http://support.automation.siemens.com/ww/view/en/19699080 http://support.automation.siemens.com/ww/view/en/19999730 Note To be able to use the most current version of the PROFINET IO or SCALANCE modules as device, it is necessary to install the current GSD XML file in STEP 7. Version 1.0 Edition 05/15/06 37/37