Contents SIMATIC Getting Started - Introduction Step 1: Defining your PROFInet components 1 2 Step 2: Creating PROFInet Components with STEP 7 3 Component based Automation Getting Started with SIMATIC iMap Step 3 to 7: Configuring a plant with SIMATIC iMap 4 Step 8: Generating and downloading 5 Getting Started Step 9: Diagnostics 6 Step 10: Visualizing Process Data If you want to learn more... Index Edition 12/2002 A5E00122600-03 7 Safety Guidelines This manual contains notices intended to ensure personal safety, as well as to protect the products and connected equipment against damage. These notices are highlighted by the symbols shown below and graded according to severity by the following texts: ! Danger ! Warning ! Caution indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken. indicates that death, severe personal injury or substantial property damage can result if proper precautions are not taken. indicates that minor personal injury can result if proper precautions are not taken. Caution indicates that property damage can result if proper precautions are not taken. Notice draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation. Qualified Personnel Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and systems in accordance with established safety practices and standards. Correct Usage Note the following: ! Warning This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by 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. Trademarks SIMATIC(R), SIMATIC HMI(R) and SIMATIC NET(R) are registered trademarks of SIEMENS AG. Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners. Copyright (c) Siemens AG 2002 All rights reserved Disclaimer of Liability The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed. Siemens AG Bereich Automatisierungs- und Antriebstechnik Geschaeftsgebiet Industrie-Automatisierungssysteme Postfach 4848, D- 90327 Nuernberg (c)Siemens AG 2001-2002 Technical data subject to change. Siemens Aktiengesellschaft A5E00122600 Content Content Getting Started - Introduction..................................................................................................1-1 Step 1: Defining your PROFInet components........................................................................2-1 2.1 2.2 Breaking down the plant into modules ..............................................................2-1 Defining Devices and Technological Functions ................................................2-4 Step 2: Creating PROFInet Components with STEP 7 ..........................................................3-1 3.1 3.2 3.2.1 3.2.2 3.2.3 3.3 3.3.1 3.3.2 3.3.3 3.4 3.4.1 3.4.2 3.4.3 Basic procedure ................................................................................................3-1 Creating the Coordinator Component from WinLC PN.....................................3-3 Creating an S7 Project and Configuring the Hardware.....................................3-3 Blocks in the S7 Program..................................................................................3-5 Creating PROFInet Components ......................................................................3-7 Creating the Conveyor component from ET 200X ..........................................3-12 Creating an S7 Project and Configuring the Hardware...................................3-12 Blocks in the S7 Program................................................................................3-14 Creating PROFInet Components ....................................................................3-18 Creating the ProcessStation component from ET 200S .................................3-19 Creating an S7 Project and Configuring the Hardware...................................3-19 Blocks in the S7 Program................................................................................3-22 Creating PROFInet Components ....................................................................3-26 Step 3 to 7: Configuring a plant with SIMATIC iMap .............................................................4-1 4.1 4.2 4.3 4.4 4.5 Step 3: Creating a SIMATIC iMap library..........................................................4-1 Step 4: Importing PROFInet Components into a Library ..................................4-4 Step 5: Inserting PROFInet components into the project .................................4-7 Step 6: Assigning addresses...........................................................................4-10 Step 7: Interconnecting technological functions..............................................4-14 Step 8: Generating and downloading ...................................................................................5-17 5.1 5.2 5.3 5.4 Saving and Generating a Project ....................................................................5-17 IM 151/CPU: Download PROFIBUS address to the device for the first time..5-19 Checking your Settings ...................................................................................5-23 Downloading Programs and Interconnections ................................................5-27 Step 9: Diagnostics...................................................................................................................6-1 6.1 Monitoring the plant online ................................................................................6-1 Step 10: Visualizing process data...........................................................................................7-1 7.1 Analyzing with OPC ..........................................................................................7-1 If you want to learn more .........................................................................................................8-1 Index Getting Started with Component based Automation A5E00122600-03 iii 1 Getting Started - Introduction The aim of these instructions is to teach you how to work with SIMATIC iMap with reference to a specific automation task. Aims and Target Groups These instructions can be subdivided into two groups of tasks: Target group Task Plant and machine constructors Creating PROFInet components with SIMATIC iMap STEP 7 AddOn Plant planners and operators * Planning and commissioning a plant with SIMATIC iMap * Visualizing and analyzing process data Basic Knowledge Required The basic knowledge you will need depends on your aims. It is assumed that plant and machine constructors who are creating PROFInet component will know the following: * How to use stored program controllers, * Knowledge of the SIMATIC modules used (e.g. ET 200S, ET 200X) and Windows Logic Controller (WinLC PN) * How to work with STEP 7 (e.g. programming and planning) Planners and plant operators who use the off-the-shelf PROFInet components, and therefore only work with SIMATIC iMap, also require: * Knowledge of the technical processes used within the plant, * Knowledge of Windows applications, * Knowledge of the PROFInet components used. Getting Started with Component based Automation A5E00122600-03 1-1 Getting Started - Introduction Description of the Automation Task In the machining station of a machine, workpieces are fed in (1), machined (2) and then removed (3). A higher-level controller (4) coordinated the individual partial functions, and makes the necessary data available via integral operator monitoring and control functions (5). The machined workpieces are then moved on to a second machine (6). The number of transported workpieces should also be recorded on the analysis PC (5). Figure 1-1 Automation Task This automation task differs from the viewpoints of the two target groups: * Plant and machine constructors have to create reusable PROFInet components from the parts of the plant. SIMATIC iMap STEP 7 AddOn helps them to create PROFInet components from SIMATIC automation and field devices. * Plant planners and operators have to plan the plant with reference to off-theshelf PROFInet components. SIMATIC iMap helps them to plan and commission the plant and to visualize the process data. 1-2 Getting Started with Component based Automation A5E00122600-03 Getting Started - Introduction Steps of the Solution The automation task can be broken down into individual steps of the solution, from analysis of the plant through to analysis of the process data. These tasks are generally carried out by different users, each using the necessary software. You can also select and edit individual steps for this sample project, where such steps are of relevance for your specific tasks. Table 1-1 Steps Steps of the solution for the automation task Tasks Users Software Step 1 Defining PROFInet components Component creator - Step 2 Creating PROFInet Components PLC programmers, STEP 7 users, STEP 7 Step 3 Creating the SIMATIC iMap library Planners, commissioning SIMATIC iMap engineers and plant operators Step 4 Importing PROFInet Planners, commissioning SIMATIC iMap Components into a Library engineers and plant operators Step 5 Inserting PROFInet Components into the Project Planners, commissioning SIMATIC iMap engineers and plant operators Step 6 Assigning addresses Planners, commissioning SIMATIC iMap engineers and plant operators Step 7 Interconnecting technological functions Planners, commissioning SIMATIC iMap engineers and plant operators Step 8 Generating and downloading Planners, commissioning SIMATIC iMap engineers and plant operators Step 9 Diagnostics Planners, commissioning SIMATIC iMap engineers and plant operators Step 10 Visualizing and analyzing process data Plant operators, analysis level SIMATIC iMap, (instrumentation and control) OPC Server, MS Office, MS Visual Basic, C++, etc. Next Steps You can Get Started with SIMATIC iMap in the following ways: If you want to learn about... How to create PROFInet components Read ... Steps 1 and 2 How to plan a plant with SIMATIC iMap Steps 3 to 9 How to visualize and analyse process data Step 10 Getting Started with Component based Automation A5E00122600-03 1-3 Step 1: Defining your PROFInet components 2.1 2 Breaking down the plant into modules Breaking Down the Plant into Technological Modules Before you can create PROFInet components using STEP 7 and then interconnect the associated technological functions in SIMATIC iMap, you must first break down the plant into reusable modules. These technological modules should form a single unit consisting of electrical, mechanical and control functions. The plant described in the automation task section can be broken down as follows: Figure 2-1 Breaking Down the Plant into Technological Modules Getting Started with Component based Automation A5E00122600-03 2-1 Step 1: Defining your PROFInet components Machine 1 Table 2-1 Technological module, machine 1 Modules Designation Stations Coordination station Coordinator PROFIBUS master: WinLC PN Transport module Conveyor PROFIBUS slave: SIMATIC ET 200X station with BM 147 basic module Machining station ProcessStation PROFIBUS slave: SIMATIC ET 200S station with IM151/CPU PC for visualization and analysis Analysis PC on the Ethernet Machine 2 Table 2-2 Technological module, machine 2 Modules Testing station Designation Testing Stations Link to ET 200X station Machine 2 is listed for the sake of completeness, and is not discussed further in the following descriptions. 2-2 Getting Started with Component based Automation A5E00122600-03 Step 1: Defining your PROFInet components Structure of the Plant Figure 2-2 Structure of the plant from the sample project Reusable Modules Breaking down the plant gives the following reusable modules: * one coordination station, * two transport modules, * one machining station PROFInet components are to be created for these modules. The next step is to define the devices and technological functions for the PROFInet components to be created. Getting Started with Component based Automation A5E00122600-03 2-3 Step 1: Defining your PROFInet components 2.2 Defining Devices and Technological Functions Devices and Component Interfaces of the Modules Once you have identified the modules in the plant, you can then define the component interfaces. In STEP 7, the component interface of a PROFInet component is implemented by the interface DB that determines the connectors between PROFInet components in SIMATIC iMap. Interface definitions for the Coordinator, Conveyor and ProcessStation components are needed for the plant described in the automation task. Coordinator Component The coordinator contains the higher-level functions of a plant. The OFF/ON signals from the control element ("OffOn" input) are converted to a static ON signal and output at the "StatOn" output. The processing time "ProcTimeHMI" specified in the control element is limited, and is output at the "ProcTime" output. The device is a PC station running WinLC PN V1.1 on the Ethernet with a PROFIBUS connector. It acts as a DP master with proxy functionality. Table 2-3 Input / Output 2-4 Component interface for the Coordinator component Name Type Initial value Description Input OffOn BOOL FALSE OFF/ON pulse from the HMI Input ProcTimeHMI INT 0 Machining time from the HMI Output StatIn BOOL FALSE Stations ON Output ProcTime INT 0 Output machining time Getting Started with Component based Automation A5E00122600-03 Step 1: Defining your PROFInet components Conveyor Component The conveyor element transports the material in one direction and at one speed. It has a sensor on both the input and the output side. If no errors have occurred and the conveyor is not assigned, the enable signal is output at the "ReleaseOut" output for the upstream components. The drive starts either if a log-on signal is received at the "AnnounceIn" input and the conveyor is in the ON state without errors, or in response to a rising edge at the sensor on the input side. The assigned state is set by a rising edge at the sensor on the input side. The drive stops either in response to the sensor on the output side and if no enable signal is received at the "ReleaseIn" input from the next element, or in response to the falling edge at the sensor on the output side, which also resets the assigned state. The drive's run time is monitored. If this time is exceeded, a fault is set at the "Faulty" output. This can be reset via the "Reset" input on the control element (HMI). The device is an ET 200X with a BM 147/CPU basic module that acts as an intelligent slave on the PROFIBUS. Table 2-4 Component interface for the Conveyor component Name Input / Output Type Initial value Description Input ON BOOL FALSE ON signal from higher-level controller Input ReleaseIn BOOL FALSE Enable signal from downstream machine Input AnnounceIn BOOL FALSE Log-on signal from upstream machine Output Assigned BOOL FALSE Assigned state Output ReleaseOut BOOL FALSE Enable signal for upstream machine Output AnnounceOut BOOL FALSE Log-on to downstream machine Table 2-5 Input / Output Non-interconnectable connectors of the Conveyor component Name Type Initial value Description Input Reset BOOL FALSE Initialization from HMI Output Faulty BOOL FALSE Fault Getting Started with Component based Automation A5E00122600-03 2-5 Step 1: Defining your PROFInet components Note The "Reset" input and "Faulty" output are non-interconnectable, i.e. they can only be accessed via OPC/HMI. ProcessStation Component Processing the "ProcessStation" component stops the conveyor. The cylinder then moves into the working position. Once the machining time has elapsed, it moves back into the home position and enables the conveyor once more. If no errors have occurred and the conveyor is not assigned, the enable signal is output at the "ReleaseOut" output for the upstream components. The drive starts either if a log-on signal is received at the "AnnounceIn" input and the conveyor is in the ON state without errors, or in response to a rising edge at the sensor on the input side. The assigned state is set by a rising edge at the sensor on the input side. The drive stops either in response to the sensor on the output side and if no enable signal is received at the "ReleaseIn" input from the next element, or in response to the falling edge at the sensor on the output side, which also resets the assigned state. The drive's run time is monitored. If the run time is exceeded, a fault is set. This can be reset using the Reset command on the control element (HMI). The device is an ET 200S with an IM 151/CPU that acts as an intelligent slave on the PROFIBUS. Table 2-6 Component interface for the ProcessStation component Input / Output Type Initial value Description Input ON BOOL FALSE ON signal from higher-level controller Input ReleaseIn BOOL FALSE Enable signal from downstream machine Input AnnounceIn BOOL FALSE Log-on signal from upstream machine Input ProcTimeIn INT 0 Setpoint machining time Input Reset BOOL FALSE Initialization from HMI Output Assigned BOOL FALSE Assigned state Output ReleaseOut BOOL FALSE Enable signal for upstream machine Output AnnounceOut BOOL FALSE Log-on to downstream machine Output ProcTimeOut INT 0 Actual machining time Output Faulty BOOL FALSE Fault Table 2-7 Input / Output 2-6 Name Non-interconnectable connectors of the ProcessStation component Name Type Initial value Description Input Reset BOOL FALSE Initialization from HMI Output Faulty BOOL FALSE Fault Getting Started with Component based Automation A5E00122600-03 Step 1: Defining your PROFInet components Note The "Reset" input and "Faulty" output are non-interconnectable, i.e. they can only be accessed via OPC/HMI. Interconnection Diagram Figure 2-3 Interconnection Diagram Next Steps * If you want to create your own PROFInet components using STEP 7, then go to Step 2. * If you prefer to design a plant with SIMATIC iMap using off-the-shelf PROFInet components, then go to Step 3. Getting Started with Component based Automation A5E00122600-03 2-7 3 Step 2: Creating PROFInet Components with STEP 7 3.1 Basic procedure Note The "Creating PROFInet Components with STEP 7" chapter is only of relevance to users who create their own PROFInet components. Requirements for creating components * Windows 2000, SP3 or later must be installed on the PG/PC. * The hardware configuration for the PROFInet components to be created is defined. * The component interfaces are defined. * STEP 7 V5.2 must be installed. * SIMATIC iMap STEP 7 AddOn V1.2 or later is installed. Which PROFInet components are created? There are three PROFInet components to be created for machine 1 in the sample project. Table 3-1 PROFInet components for the sample project Creating PROFInet components from ... PC / station Function Designation of the PROFInet component a WinLC PN PC with WinLC PN Plant controller Coordinator an intelligent DP slave (I slave) ET 200X station Workpiece feeder Conveyor an intelligent DP slave (I slave) ET 200S station Workpiece machining ProcessStation Getting Started with Component based Automation A5E00122599-03 3-1 Step 2: Creating PROFInet Components with STEP 7 Main Procedure The PROFInet components are created using STEP 7. The following steps are required to create each PROFInet component: 1. In SIMATIC Manager, create a project for a component and configure the station hardware in HW Config. 2. Create the interface DB for the component interface. 3. Create and test the S7 program. 4. Select the PROFInet component using a menu command and store it in a directory. Procedure with STEP 7 Sample Projects Sample projects for the automation task described above are installed, together with SIMATIC iMap STEP 7 AddOn, in the Step7 \ Examples directory. If you use these samples, you will not need to carry out steps 1 to 3 above. You can open and view individual blocks from the STEP 7 projects supplied, but you will not have to copy any blocks or type out sections of programs. The existing sample projects require the following procedure in the subsequent sections: 1. Open the sample project in SIMATIC Manager and Hardware configuration. 2. Open the interface DB and other program blocks. 3. Create the PROFInet component. The sample projects can be used as templates for creating further PROFInet components. Steps 2 and 3 allow you to modify these projects to suit your requirements. More Detailed Information The information in these Getting Started instructions is limited to the sample project and the bare essentials. For more detailed information on the individual topics, consult the SIMATIC iMap online documentation under "Creating PROFInet Components with STEP 7". Next Steps Starting SIMATIC Manager and opening the sample projects one after another. 3-2 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 3.2 Creating the Coordinator Component from WinLC PN 3.2.1 Creating an S7 Project and Configuring the Hardware S7 project for the "Coordinator" component Table 3-2 Coordinator: S7 sample project, hardware configuration Step Description 1 In SIMATIC Manager, select the File > Open... menu command to open the sample project for the "Coordinator" component. The project is located under "ZEn27_02_PN_Coordinator" on the "Sample projects" tab. The path is Examples\ZEn27_02 in the Step7 folder. 2 Select the File > Save As... menu command to create a copy of the project. 3 Open the copied project and its hardware configuration. The coordinator is configured as a PC station running WinLC PN V1.1 and with an Ethernet connector via the IE General communication processor. Getting Started with Component based Automation A5E00122599-03 3-3 Step 2: Creating PROFInet Components with STEP 7 Step Description Next Steps Opening the program blocks for the "Coordinator" component and learning about its PROFInet-specific features. 3-4 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 3.2.2 Blocks in the S7 Program The block folder for the project contains the S7 program blocks. The interface DB (DB100) was created specifically for the basic project from which the "Coordinator" PROFInet component is created. In all the sample projects described here, the interface DB is the global data block DB100. Interface DB The interface DB contains the interface definition of the PROFInet component. It returns the STEP 7 program name and the data types and attributes of the inputs and outputs. In SIMATIC iMap, connector information entered about the PROFInet component is converted into graphical format: Example: Interface DB Getting Started with Component based Automation A5E00122599-03 3-5 Step 2: Creating PROFInet Components with STEP 7 User-Defined Attributes The user-defined attributes are an important part of interface DB declarations. Step Description 1 In SIMATIC Manager, open the block folder for the "Coordinator" project. 2 Select block DB100 and open the Object Properties dialog. The "Attributes" tab should contain the attribute "CBA_db", with the value "true". This attribute identifies the block as an interface DB. 3 Close the "Properties" dialog. 4 Double click on DB100 to open it. Inputs and outputs that are identified by a flag symbol also have user-defined attributes that determine the type of connector. 5 Click on the flag symbol to view the assigned attributes. The "OffOn" entry is identified as the first input. The "StatOn" entry is identified as the first output. It has the attribute "CBA_direction" and the value "out". Additional information about user-defined attributes can be found under "Properties of the Interface DB" in the SIMATIC iMap basic help. 3-6 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 Organizational Blocks Required The S7 program on the WinLC PN must contain the following organizational blocks in order to be able to respond to events: * Diagnostic alarm OB (OB 82) - e.g. if a DP slave is switched to STOP or RUN * Program sequence error OB (OB 85) - e.g. for errors that occur when the process image is updated when a DP slave fails * Rack failure OB (OB 86) - e.g. when the connection to a DP slave is interrupted 3.2.3 Creating PROFInet Components Requirements * The S7 project for the "Coordinator" component has been created and the hardware is configured. * The interface DB has been created. * The S7 program has been created. Note Create separate folders as the storage locations for each of the components. This is the only way to ensure that you do not overwrite existing PROFInet components in the sample project. Getting Started with Component based Automation A5E00122599-03 3-7 Step 2: Creating PROFInet Components with STEP 7 Creating PROFInet Components The following steps describe how to create a PROFInet component from the "Coordinator" station. Step 1 3-8 Description In SIMATIC Manager, highlight the "Coordinator" station, and then select the Create PROFInet component command from the context menu. Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 Step Description The "Create PROFInet component" dialog opens. Getting Started with Component based Automation A5E00122599-03 3-9 Step 2: Creating PROFInet Components with STEP 7 Step 2 3-10 Description On the "Storage Areas" tab, click on the "Browse..." button, and select the folder that you created from the file system as the location for storing your PROFInet components, e.g. D:\PROFInet_components. Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 Step 3 Description The paths to the icons and the documentation link then appear on the "Additional Properties" tab. A brief description of the sample components can be found in the sample project folder, i.e. \Examples\ZEn27_02\Coordinator.htm The Coordinator PROFInet component is stored as an XML file in a separate directory together with the STEP 7 project. Next Steps Opening the S7 sample project for the "Conveyor" component. Getting Started with Component based Automation A5E00122599-03 3-11 Step 2: Creating PROFInet Components with STEP 7 3.3 Creating the Conveyor component from ET 200X 3.3.1 Creating an S7 Project and Configuring the Hardware S7 project for the "Conveyor" component Table 3-3 Step 3-12 Conveyor: S7 sample project, hardware configuration Description 1 In SIMATIC Manager, select the File > Open... menu command to open the sample project for the "Conveyor" component. The project is located under "ZEn27_01_PN_ Conveyor" on the "Sample projects" tab. The path is Examples\ZEn27_01 in the Step7 folder. 2 Select the File > Save As... menu command to create a copy of the project. Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 Step 3 Description Open the copied project and its hardware configuration. The conveyor element is configured as a SIMATIC 300 station with the ET 200X distributed peripheral and the BM 147 basic module as a programmable DP slave. Next Steps Opening the program blocks for the "Conveyor" component and learning about its PROFInet-specific features. Getting Started with Component based Automation A5E00122599-03 3-13 Step 2: Creating PROFInet Components with STEP 7 3.3.2 Blocks in the S7 Program The block folder of the sample project contains the S7 program blocks. The interface DB (DB100) was created specifically for the basic project from which the "Conveyor" PROFInet component will be created. You will also need the PN_IN (FC10) and PN_OUT (FC11) functions and the PN_IO_DB (DB2) data block. Interface DB The interface DB contains the interface definition of the PROFInet component. It returns the STEP 7 program name and the data types and attributes of the inputs and outputs. In SIMATIC iMap, connector information entered about the PROFInet component is converted into graphical format: 3-14 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 User-Defined Attributes The user-defined attributes are an important part of interface DB declarations. Step Description 1 In SIMATIC Manager, open the block folder for the "Conveyor" project. 2 Select block DB100 and open the Object Properties dialog. The "Attributes" tab should contain the attribute "CBA_db", with the value "true". This attribute identifies the block as an interface DB. 3 Close the "Properties" dialog. 4 Double click on DB100 to open it. Inputs and outputs that are identified by a flag symbol also have user-defined attributes that determine the type of connector. Getting Started with Component based Automation A5E00122599-03 3-15 Step 2: Creating PROFInet Components with STEP 7 Step 5 Description Click on the flag symbol to view the assigned attributes. The "IN" entry is identified as the first input. It has the attribute "CBA_direction" and the value "in". The "Reset" and "Faulty" entries are identified as nonconnectable, i.e. they can only be accessed via OPC, and do not appear as connectors in the SIMATIC iMap plant view. They have the attribute "CBA_transfer_type" and the value "s7extended". The "Pad" entry is identified as a separator element to ensure correct alignment at the ends of words. It has the attribute "CBA_pad_item" and the value "true". The "Assigned" entry is identified as the first output. It has the attribute "CBA_direction" and the value "out". Additional information about the user-defined attributes can be found under "Properties of the Interface DB" in the SIMATIC iMap basic help. Other blocks The following blocks are important while the program for the PROFInet components to be created is running: Block FC10 Description PN_IN - Copies the data from the transfer area of the CPU pre-processor to the inputs of the interface DB Attribute: CBA_islave_copy_fc and value: in FC11 PN_OUT - Copies the outputs of the interface DB to the transfer area of the CPU pre-processor Attribute: CBA_islave_copy_fc and value: out DB2 PN_IO_DB - Data block, parameters of the PN_IN and PN_OUT function calls Attribute: CBA_islave_copy_db and value: true The data block number can be modified as required. The functions PN_IN and PN_OUT are called in the user program (OB1) for an intelligent DP slave. The PN_IO_DB data block is passed as a parameter. 3-16 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 Function Calls in OB1 The block PN_IN (FC10) must be called right at the start of OB1 to ensure that it is the current data that is transferred. Table 3-4 Call: PN_IN Call CALL "PN_IN" Block no. FC10 DB_NO :="PN_IO_DB" DB2 RET_VAL:=#tempRET_VAL The block PN_OUT (FC11) must be called right at the end of OB1 to ensure that the data in the transfer area is not overwritten. Table 3-5 Call: PN_OUT Call CALL "PN_OUT" DB_NO :="PN_IO_DB" Block no. FC11 DB2 RET_VAL:=#tempRET_VAL Additional information about blocks can be found under "Special Features of DP Slaves" in the SIMATIC iMap basic help. Organizational Blocks Required The S7 program of an intelligent DP slave must contain the following organizational blocks in order to be able to respond to events: * Diagnostic alarm OB (OB 82) - e.g. if the DP master is switched to STOP or RUN * Rack failure OB (OB 86) - e.g. when the connection to the DP master is interrupted Next Steps Creating the "Conveyor" PROFInet component from the PC station for the STEP 7 project. Getting Started with Component based Automation A5E00122599-03 3-17 Step 2: Creating PROFInet Components with STEP 7 3.3.3 Creating PROFInet Components Requirements * The S7 project for the "Conveyor" component has been created and the hardware is configured. * The interface DB has been created. * The S7 program has been created. Creating PROFInet Components Create the PROFInet component from the "Conveyor" station following the description in the section entitled "Creating a Coordinator Component from WinLC PN". Result: The "Conveyor" PROFInet component is stored as an XML file in a separate directory together with the STEP 7 project. Next Steps Opening the S7 sample project for the "ProcessStation" component. 3-18 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 3.4 Creating the ProcessStation component from ET 200S 3.4.1 Creating an S7 Project and Configuring the Hardware S7 project for the "ProcessStation" component Table 3-6 ProcessStation: S7 sample project, hardware configuration Step Description 1 In SIMATIC Manager, select the File > Open... menu command to open the sample project for the "ProcessStation" component. The project is located under "ZEn27_03_PN_ProcessStation" on the "Sample projects" tab. The path is Examples\ZEn27_03 in the Step7 folder. 2 Select the File > Save As... menu command to create a copy of the project. Getting Started with Component based Automation A5E00122599-03 3-19 Step 2: Creating PROFInet Components with STEP 7 Step 3-20 Description 3 Open the copied project and its hardware configuration. The process station is configured as a SIMATIC 300 station with the ET 200S distributed peripheral and IM 151/CPU as a programmable DP slave. 4 Check the settings of the integral interface. Click on the X1 MPI/DP line and open the object properties. The interface must be set to the "PROFIBUS" type on the "General" tab. Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 Step 5 Description The operating mode "DP slave" must be set on the "Operating mode" tab with the "Commissioning/Test operation" option. Next Steps Opening the program blocks for the "ProcessStation" component and learning about its PROFInet-specific features. Getting Started with Component based Automation A5E00122599-03 3-21 Step 2: Creating PROFInet Components with STEP 7 3.4.2 Blocks in the S7 Program The block folder of the sample project contains the S7 program blocks. The interface DB (DB100) was created specifically for the basic project from which the " ProcessStation " PROFInet component will be created. You will also need the PN_IN (FC10) and PN_OUT (FC11) functions and the PN_IO_DB (DB2) data block. Interface DB The interface DB contains the interface definition of the PROFInet component. It returns the STEP 7 program name and the data types and attributes of the inputs and outputs. In SIMATIC iMap, connector information entered about the PROFInet component is converted into graphical format: 3-22 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 User-Defined Attributes The user-defined attributes are an important part of interface DB declarations. Step Description 1 In SIMATIC Manager, open the block folder for the "ProcessStation" project. 2 Select block DB100 and open the Object Properties dialog. The "Attributes" tab should contain the attribute "CBA_db", with the value "true". This attribute identifies the block as an interface DB. 3 Close the "Properties" dialog. 4 Double click on DB100 to open it. Inputs and outputs that are identified by a flag symbol also have user-defined attributes that determine the type of connector. Getting Started with Component based Automation A5E00122599-03 3-23 Step 2: Creating PROFInet Components with STEP 7 Step 5 Description Click on the flag symbol to view the assigned attributes. The "On" entry is identified as the first input. It has the attribute "CBA_direction" and the value "in". The "Reset" and "Faulty" entries are identified as non-connectable, i.e. they can only be accessed via OPC, and do not appear as connectors in the SIMATIC iMap plant view. They have the attribute "CBA_transfer_type" and the value "s7extended". The "Pad" entry is identified as a separator element to ensure correct alignment at the ends of words. It has the attribute "CBA_pad_item" and the value "true". The "Assigned" entry is identified as the first output. It has the attribute "CBA_direction" and the value "out". Additional information about the user-defined attributes can be found under "Properties of the Interface DB" in the SIMATIC iMap basic help. Other blocks The following blocks are important while the program for the PROFInet components to be created is running: Block FC10 Description PN_IN - Copies the data from the transfer area of the CPU pre-processor to the inputs of the interface DB Attribute: CBA_islave_copy_fc and value: in FC11 PN_OUT - Copies the outputs of the interface DB to the transfer area of the CPU pre-processor Attribute: CBA_islave_copy_fc and value: out DB2 PN_IO_DB - Data block, parameters of the PN_IN and PN_OUT function calls Attribute: CBA_islave_copy_db and value: true The data block number can be modified as required. The functions PN_IN and PN_OUT are called in the user program (OB1) for an intelligent DP slave. The PN_IO_DB data block is passed as a parameter. 3-24 Getting Started with Component based Automation A5E00122599-03 Step 2: Creating PROFInet Components with STEP 7 Function Calls in OB1 The block PN_IN (FC10) must be called right at the start of OB1 to ensure that it is the current data that is transferred. Table 3-7 Call: PN_IN Call CALL "PN_IN" Block no. FC10 DB_NO :="PN_IO_DB" DB2 RET_VAL:=#tempRET_VAL The block PN_OUT (FC11) must be called right at the end of OB1 to ensure that the data in the transfer area is not overwritten. Table 3-8 Call: PN_OUT Call CALL "PN_OUT" DB_NO :="PN_IO_DB" Block no. FC11 DB2 RET_VAL:=#tempRET_VAL Additional information about blocks can be found under "Special Features of DP Slaves" in the SIMATIC iMap basic help. Organizational Blocks Required The S7 program of an intelligent DP slave must contain the following organizational blocks in order to be able to respond to events: * Diagnostic alarm OB (OB 82) - e.g. if the DP master is switched to STOP or RUN * Rack failure OB (OB 86) - e.g. when the connection to the DP master is interrupted Next Steps Creating the "ProcessStation" PROFInet component from the PC station for the STEP 7 project. Getting Started with Component based Automation A5E00122599-03 3-25 Step 2: Creating PROFInet Components with STEP 7 3.4.3 Creating PROFInet Components Requirements * The S7 project for the " ProcessStation" component has been created and the hardware is configured. * The interface DB has been created. * The S7 program has been created. Creating PROFInet Components Create the PROFInet component from the "ProcessStation" station following the description in the section entitled "Creating a Coordinator Component from WinLC PN". Result: The "ProcessStation" PROFInet component is saved as an XML file in the STEP 7 project. Next Steps Once you have created all your PROFInet components, you can close STEP 7 and move on to step 3. 3-26 Getting Started with Component based Automation A5E00122599-03 Step 3 to 7: Configuring a plant with SIMATIC iMap 4.1 4 Step 3: Creating a SIMATIC iMap library Requirement * SIMATIC iMap must be installed on your PC/PG. * The PROFInet components have been created and stored in the file system. Alternative procedures There are two ways to insert PROFInet components from the sample project into a SIMATIC iMap project: * Create a new library in SIMATIC iMap, then import the PROFInet components created in STEP 7 from the file system into the library. or * Open the "Getting_Started" library with the off-the-shelf PROFInet components. Getting Started with Component based Automation A5E00122599-03 4-1 Step 3 to 7: Configuring a plant with SIMATIC iMap Creating a New Library Libraries are used to administer and structure your PROFInet components. Table 4-1 Creating a New Library Step Description 1 Start SIMATIC iMap by selecting Start / Programs / Component based Automation / SIMATIC iMap. 2 Select Library > New.... 3 Under "Search in", select the path Programs / Siemens / iMap / libs. 4 In the "libs" folder, create a library with the file name "lib_1". Click on the "Save" button to confirm your input. The library is created and opened in the library window. 4-2 Getting Started with Component based Automation A5E00122600-03 Step 3 to 7: Configuring a plant with SIMATIC iMap Opening the Off-the-Shelf Library Table 4-2 Opening the Off-the-Shelf Library Step Description 1 Start SIMATIC iMap by selecting Start / Programs / Component based Automation / SIMATIC iMap. 2 Select Library > Open.... 3 Under "Search in", select the path Programs / Siemens / iMap examples / libs. 4 Open the "Getting_Started" folder and select the "Getting_Started.cbl" library. Click on the "Open" button to confirm your input. The library is opened in the library window. Tips * You can also open SIMATIC iMap by clicking on the iMap icon on your desktop. * In libraries, you can sort PROFInet components by technology, for example. * A SIMATIC iMap library for "Getting Started" containing off-the-shelf PROFInet components can be found in the iMap install directory at iMap\Examples\libs\Getting_Started. Next Steps * Once you have created a new library, you should then import the PROFInet components that you created in STEP 7 from the file system and into the new library. To do this, go to step 4. * If you wish to work with the off-the-shelf library which already contains a number of prepared PROFInet components from the sample project, then go to step 5. Getting Started with Component based Automation A5E00122600-03 4-3 Step 3 to 7: Configuring a plant with SIMATIC iMap 4.2 Step 4: Importing PROFInet Components into a Library Requirements * The library "lib_1" must be created and open in SIMATIC iMap. * The PROFInet components were created with STEP 7 and are stored in the "PROFInet_Components" folder in the file system or * the path to the off-the-shelf PROFInet components is already known (generally Programs / Siemens / iMap / examples / components). Importing Components into the Library Before you can edit the PROFInet components in the sample project, you must first import them from the file system and into the new SIMATIC iMap library. Table 4-3 Step 4-4 Importing Components into the Library Description 1 Right click in the library window and then select the Import Components...command from the context menu. 2 Under "Search in", select the path Programs / Siemens / iMap / components. Getting Started with Component based Automation A5E00122600-03 Step 3 to 7: Configuring a plant with SIMATIC iMap Step 3 Description Select the "coordinator.xml" file from the "Coordinator" folder. Click on the "Open" button to confirm your input. The "Coordinator" PROFInet component is imported into the library and is displayed as an icon. Getting Started with Component based Automation A5E00122600-03 4-5 Step 3 to 7: Configuring a plant with SIMATIC iMap Step 4 Description Repeat steps 1 to 3 with the "Conveyor" and "ProcessStation" PROFInet components until you have imported all the PROFInet components that you need for your project into the library. Tips * The preview window contains the PROFInet component that is selected in the library window. It is represented as a technological function with inputs and outputs or as a device with its bus ports on two table (see diagrams above). * You can change the component representation and display the details using the View context menu in the library window. Next Steps Inserting PROFInet components from the library into the project. 4-6 Getting Started with Component based Automation A5E00122600-03 Step 3 to 7: Configuring a plant with SIMATIC iMap 4.3 Step 5: Inserting PROFInet components into the project Requirements * The PROFInet components have been imported into the library and the "lib_1" library is open. or * The "Getting_Started" library is open. Inserting PROFInet Components from the Library into the Project PROFInet components can be inserted into the plant view or into the network view for the project in one of the following ways: * Highlight the component in the library window and then select Paste Into Project from the context menu. * Drag the component from the library into one of the windows - network view, plant view or project window. Table 4-4 Inserting PROFInet Components into the Project Step Description 1 Switch from the plant view to the network view. 2 In the library window, highlight the "Coordinator" component, then select Paste Into Project from the context menu. The Ethernet is represented by a green line and the PROFIBUS by a violet line in the network view. The "Coordinator" is automatically coupled to the Ethernet and as a master to the PROFIBUS. Getting Started with Component based Automation A5E00122600-03 4-7 Step 3 to 7: Configuring a plant with SIMATIC iMap Step Description 3 Use Drag & Drop to insert the "Conveyor" component from the library into the network view. The possible destinations on the PROFIBUS are indicated by green segments. 4 Repeat step 3 with the "ProcessStation" and "Conveyor" components until you have inserted all the components that you need for your project. In the project window, the component is listed as a technological function on the "Plant chart" tab and as a device on the "Network chart" tab. Note If a DP slave component is inserted into the network view first, then this component appears in the network view above a separating line. It can then be connected to the PROFIBUS using Drag&Drop. 4-8 Getting Started with Component based Automation A5E00122600-03 Step 3 to 7: Configuring a plant with SIMATIC iMap Example for Unconnected Components Figure 4-1 Example for Unconnected Components Hint Close any windows that you do not need. You can open them again using the View menu. Next Steps Assigning addresses to the devices in the network view. Getting Started with Component based Automation A5E00122600-03 4-9 Step 3 to 7: Configuring a plant with SIMATIC iMap 4.4 Step 6: Assigning addresses Requirements * The PROFInet components have been inserted into the project. * The IP address and subnet mask for the PC on which the WinLC PN is installed are both known. * The PROFIBUS addresses have been set for the devices. The addresses must be assigned to the devices in the plant using the devicespecific resources normally used for commissioning. * The PROFIBUS address of the ET 200X, BM 147/CPU is set at the DIL switch on the device (see the ET 200X manual). * The PROFIBUS address of the ET 200S, IM 151/CPU is assigned via HW Config (see the section entitled "IM 151/CPU: Downloading the PROFIBUS address to the device for the first time"). Assigning Addresses in SIMATIC iMap The IP and PROFIBUS addresses of the physical devices in the plant are assigned to the devices in the iMap project. Addresses are needed in order to give a unique identification to each PROFInet device, and thus allow communication (downloading, online monitoring) between SIMATIC iMap and the devices in the plant. 4-10 Getting Started with Component based Automation A5E00122600-03 Step 3 to 7: Configuring a plant with SIMATIC iMap Table 4-5 Assigning Addresses in SIMATIC iMap Step 1 Description In the network view, highlight the "Coordinator" component, then select Edit > Properties.... Attention: Make sure that the device number (e.g. WinLC PN) is the same as the station name in the associated component wizard. (See the section entitled "Checking your Settings") Getting Started with Component based Automation A5E00122600-03 4-11 Step 3 to 7: Configuring a plant with SIMATIC iMap Step 4-12 Description 2 On the "Addresses" tab, enter the IP address and subnet mask of the WinLC PN. These must be the IP address and subnet mask of the PC on which the WinLC PN is running. Click on the "OK" button to confirm your input. The addresses are then assigned to the component. 3 In the network view, highlight the "Conveyor" component and select Edit > Properties.... On the "Addresses" tab, enter the PROFIBUS address as set on the device using the DIL switch, and click on the "OK" button to confirm your input. Getting Started with Component based Automation A5E00122600-03 Step 3 to 7: Configuring a plant with SIMATIC iMap Step 4 Description Repeat step 3 for the "ProcessStation" and "Conveyor_1" components. All the addresses are now assigned, Note You can assign any names to the devices, apart from the name of the WinLC PN, which must be identical to the station name set in the associated component wizard. Next Steps Interconnecting the technological functions in the project plant view. Getting Started with Component based Automation A5E00122600-03 4-13 Step 3 to 7: Configuring a plant with SIMATIC iMap 4.5 Step 7: Interconnecting technological functions Requirements * The PROFInet components must be correctly coupled to the networks. * The component interfaces, i.e.the connector assignments and the interconnection diagram must be known. Rules for interconnection * You must always connect an output to an input, but an output may be interconnected to several inputs. * The two connectors of an interconnection must be of the same data type, e.g. both of type I2 or type U12. Interconnecting Technological Functions You can interconnect technological functions in the plant view. Table 4-6 Step 4-14 Interconnecting Technological Functions Description 1 Switch from the network view to the plant view. When the technological functions first appear in the plant view, they are overlapped. 2 Use Drag & Drop to arrange the technological functions, and thus make the plant clearer and easier to understand. To drag a function, click on its title bar. Getting Started with Component based Automation A5E00122600-03 Step 3 to 7: Configuring a plant with SIMATIC iMap Step 3 Description a) Click on the "StatOn" output of the coordinator and on the "On" input of the conveyor. a) Click on the "StatOn" output of the coordinator and on the "On" input of the ProcessStation. The interconnection is represented by a line. Connector points of the same type, e.g. BOOL, are shown in green. The selected output and the currently selected input are also shown in green. 4 Interconnect the inputs and outputs of the technological functions. The connector assignments are shown in the following interconnection diagram. Note Interconnections are replaced by numbered continuation connectors if a line cannot be represented. You can change the representation of the lines by moving the technological functions as required. Getting Started with Component based Automation A5E00122600-03 4-15 Step 3 to 7: Configuring a plant with SIMATIC iMap Recommendation Check the interconnections before you go any further: 1. Open SIMATIC iMap again. A warning appears, telling you that the library cannot be opened a second time. Simply ignore this message for this step. 2. Open the "Getting_Started" sample project. 3. Compare the connectors in the plant view. Tips * You can use the Properties... context menu to display information about the connectors of a selected technological function. * Select View > Plant view > Dot Screen to display a dot screen to simplify positioning of your technological functions. * Select View > Zoom to change the size of the plant view on screen. Next Steps Saving and generating a project. 4-16 Getting Started with Component based Automation A5E00122600-03 Step 8: Generating and downloading Step 8: Generating and downloading 5.1 5 Saving and Generating a Project Requirements * STEP 7 must be installed on the same computer as SIMATIC iMap. * The "lib_1" library must be open, although the library window may be closed. Saving and Generating a Project When you generate the SIMATIC iMap project, the current data concerning the PROFInet components is prepared for downloading to the devices of the plant. Table 5-1 Saving and Generating a Project Step 1 Description Select Project > Generate > Changes Only. A message appears to tell you that the project must be automatically saved before generating. You are asked whether you wish to continue. Click on "Yes" to confirm. The "Save SIMATIC iMap Project As" dialog opens. 2 Under "Search in", select the path Programs / Siemens / iMap / projects. 3 Enter "Plant_1" as the project file name and click on the "Save" button to confirm your input. The project is saved and generated. The entire project is generated when you call the Project > Generate > Changes Only menu command for the first time. Thereafter only the changes are generated when you call this menu command again. Getting Started with Component based Automation A5E00122600-03 5-17 Step 8: Generating and downloading Step 4 Description You can follow the generation progress messages in the Info window. Note Generation can take a long time for large projects, You can cancel generation at any time by clicking on the "Cancel" button in the message box. Hint If generation is successful, all the PROFInet components in the project are assigned the generation status "generated" in their properties. The program can then be downloaded. Next Steps Download the assigned PROFIBUS address to the IM 151/CPU for the first time. 5-18 Getting Started with Component based Automation A5E00122600-03 Step 8: Generating and downloading 5.2 IM 151/CPU: Download PROFIBUS address to the device for the first time PROFIBUS address of the IM 151/CPU In step 6, you assigned a PROFIBUS address to the IM151_CPU device in SIMATIC iMap. You will have to download this PROFIBUS address from STEP 7 via MPI to the device yourself for the first time. Requirements * The IM 151/CPU must be set to STOP. * The PG/PC must be connected to the IM151/CPU via MPI. * The SIMATIC iMap project must have been generated. When you open the properties of the IM151_CPU device, the generation status "Generated" must appear on the "General" tab. Generate the project if this is not the case. Getting Started with Component based Automation A5E00122600-03 5-19 Step 8: Generating and downloading Download PROFIBUS address to the device for the first time Table 5-2 IM 151/CPU: Download PROFIBUS address to the device for the first time Step 1 Description Set the PG/PC interface to MPI. From the task bar, select: Start > Simatic > STEP 7 > Set PG/PC Interface. Configure the PG/PC interface as follows: Note: The communication processor may have a different name on your PG. 2 In the SIMATIC iMap network view, select the device IM151_CPU and then select Special > Configuration from the context menu. The station hardware configuration is opened in the shadow project. 5-20 Getting Started with Component based Automation A5E00122600-03 Step 8: Generating and downloading Step 3 Description In HW Config, select PLC > Download to Module. In the "Select Target Module" dialog box, select the IM 151 / CPU and click on "OK" to confirm. Getting Started with Component based Automation A5E00122600-03 5-21 Step 8: Generating and downloading Step 4 Description In the "Select Station Address" dialog, enter the MPI address of the CPU or click on "OK" to accept the displayed address, e.g: Result: The system data, including the PROFIBUS address, are downloaded to the IM 151 / CPU. The ET 200S can then communicate via the PROFIBUS. 5 Connect the ET 200S to the WinLC PN using the PROFIBUS cable. Next Steps Check the PG/PC interface and PC station settings on your computer. You can then download the project data from SIMATIC iMap to the devices of the plant. 5-22 Getting Started with Component based Automation A5E00122600-03 Step 8: Generating and downloading 5.3 Checking your Settings Possible configurations With WinLC PN, we distinguish between two situations: * STEP 7/SIMATIC iMap and WinLC PN are both on the local PC * STEP 7/SIMATIC iMap are on the local PC, while WinLC PN is on the remote PC The settings you will need for both configurations are described below. General requirements SIMATIC NET IE SOFTNET-PG V6.0 + SP5 or later must be installed on both the local and the remote PC (with the WinLC PN). STEP 7, SIMATIC iMap and WinLC PN are both on the local PC Station name and device name The station name of the PC containing the WinLC PN must be the same as the device names of the "Coordinator" components in the SIMATIC iMap network view. You can modify the station names: * via the "Station name" button in the component wizard. * via the device properties in the SIMATIC iMap network view. Getting Started with Component based Automation A5E00122600-03 5-23 Step 8: Generating and downloading Table 5-3 Settings on the local PG/PC Step 1 Description Select the following command: Start > Simatic > SIMATIC NET > Settings > Set PC Station The configuration console opens. 2 Under "Modules" in the "Tree" window, select the Ethernet module of the computer. The "Configured mode" operating mode must be set under "General". The index must be the same as the CP "IE General" slot in the component project in STEP 7/HW Config. 3 Select the PROFIBUS module of the computer. The "PG mode" operating mode must be set under "General". 5-24 Getting Started with Component based Automation A5E00122600-03 Step 8: Generating and downloading Step 4 5 Description Select "Access Points" and check the following settings: * The local PROFIBUS module must be set as the access point for the "CP_L2_1" application. * "PC internal (local)" must be set as the access point for the "S7ONLINE (STEP 7)" application. Accept any changes and close the configuration console. Hint You can also set the access points using Start > Settings > Control Panel > Set PG/PC Interface. Getting Started with Component based Automation A5E00122600-03 5-25 Step 8: Generating and downloading STEP 7 and SIMATIC iMap are on the local PC, while WinLC PN is on the remote PC Table 5-4 Settings on the local PG/PC (with SIMATIC iMap) Step 1 Description Select the following command: Start > Simatic > SIMATIC NET > Settings > Set PC Station The configuration console opens. 2 Select the Ethernet module in the computer from the "Tree" window. The "PG mode" operating mode must be set under "General". 3 Select "Access Points" and check the following setting: "TCP/IP" must be set as the access point for the "S7ONLINE (STEP 7)" application. 4 Accept any changes and close the configuration console. 5 Open the "Plant_1" project in SIMATIC iMap. 6 Select any device from the SIMATIC iMap network view, then select Special > Assign PG/PC. This and the next step only have to be carried out if the automatic PG/PC assignment when the project was generated was unsuccessful. A message appears in the Info window in the event of an error. 7 From the "Assign PG/PC" dialog, select a new interface of the industrial Ethernet type and assign this to your project. Detailed information can be found in the online help for that dialog box or in the SIMATIC iMap help topics under "Assign PG/PC". Table 5-5 Settings on the remote PG/PC Step 1 Description Select the following command: Start > Simatic > SIMATIC NET > Settings > Set PC Station The configuration console opens. 2 Select the Ethernet module in the computer from the "Tree" window. The "Configured mode" operating mode must be set under "General". The index must be the same as the CP "IE General" slot in the component project in STEP 7/HW Config. 3 Select the PROFIBUS module in the computer from the "Tree" window. The "PG mode" operating mode must be set under "General". 4 Accept any changes and close the configuration console. 5 Select Start > Settings > Control Panel > Set PG/PC interface. Check the following setting: The local PROFIBUS module must be set as the access point for the "CP_L2_1" application. 5-26 Getting Started with Component based Automation A5E00122600-03 Step 8: Generating and downloading 5.4 Downloading Programs and Interconnections Requirements * The project has been saved under "Plant_1" and has been generated without error. * STEP 7 and SIMATIC NET have been installed. * The WinLC PN has started and is in the STOP or RUN-P state. (If it is in the RUN-P state, it will be stopped during the download). * The devices of the plant are running. * If the WinLC PN is on a remote PC: The PG/PC is connected to the remote PC via Ethernet. The DP slaves ET 200X and ET 200S are connected to the WinLC via PROFIBUS. * The necessary PG/PC interface and PC station settings have been made. Note Commissioning of the individual devices is described in the associated product documentation. Download Downloading transfers data from SIMATIC iMap to the devices of the plant. All or just the selected PROFInet components may be downloaded. The following data may be downloaded using the Online menu: * The user programs you have created, including the hardware and network configuration, * the interconnections between technological functions, * all, i.e.both programs and interconnections. The program must be downloaded when a device is commissioned. Interconnections can be downloaded later if required, for example in order to test the PROFInet communication between the components. Getting Started with Component based Automation A5E00122600-03 5-27 Step 8: Generating and downloading Downloading Programs and Interconnections For the sample project, the programs and interconnections of all the PROFInet components will be downloaded to the devices of the plant. Table 5-6 Step 1 Downloading Programs and Interconnections Description In the network view, highlight the "Coordinator" device (WinLC PN) and select Online > Download Selected Device > All. The program and interconnections are downloaded to the WinLC PN. You are then prompted to stop the WinLC. 2 Click on "Yes" to confirm the message. Messages appear, asking whether you want to overwrite individual blocks. 3 Click on the "Yes" button to confirm these messages. The blocks are overwritten with the new programs from SIMATIC iMap. You are then prompted to restart the WinLC. 4 Click on the "Yes" button to confirm the message. 5 In the network view, highlight all the other devices and select Online > Download Selected Device > All. The programs and interconnections of the selected PROFInet components are downloaded to the devices of the plant. Messages similar to those for the WinLC PN appear for the other devices. 6 Click on the "Yes" button to confirm these messages. 7 Messages concerning progress of the download and asking whether you wish to cancel the action appear in the Info window. Note Downloading can take a long time for large projects, You can cancel the process at any time by clicking on the "Cancel" button in the message box. 5-28 Getting Started with Component based Automation A5E00122600-03 Step 8: Generating and downloading Tips * You can determine which devices need a program download by carrying out an online-offline comparison. * If you have only changed interconnections in the project, then only the interconnections have to be downloaded. You do not have to download the program again. * A program download is generally only needed once, while the interconnections can be downloaded as often as required. * The devices and technological functions that require interconnections to be downloaded are identified by a "download" symbol in the online view and are listed on the "Devices" or "Functions" tab in the diagnostic window. Next Steps Learning how to represent the diagnostic information in the diagnostic window with reference to an example. Getting Started with Component based Automation A5E00122600-03 5-29 Step 9: Diagnostics 6.1 6 Monitoring the plant online Requirement * The SIMATIC iMap project "Plant_1" has been generated. * The programs and interconnections of all the PROFInet components in the project have been downloaded to the devices in the plant. Diagnostics When SIMATIC iMap is connected to the plant online, information about the status of the PROFInet communication partners and the operating states of the devices (regardless of the type of device) appear in the diagnostic window, the plant view and the network view. Getting Started with Component based Automation A5E00122600-03 6-1 Step 9: Diagnostics Table 6-1 Step 6-2 Diagnostics Description 1 Select Online > Monitor. SIMATIC iMap is connected to the plant online. A fault that appears in the diagnostic window is identified by a symbol on the affected device in the plant and network views. 2 All faulty functions are displayed on the "Functions" tab in the diagnostic window. 3 All faulty devices are displayed on the "Devices" tab in the diagnostic window. Information on the currently selected object is displayed in the right-hand window. Click on the "Help" button to call up online help on troubleshooting. Getting Started with Component based Automation A5E00122600-03 Step 9: Diagnostics Step 4 Description Click on the "Online Monitoring" icon to switch to online mode. Select the "Conveyor" device from the network view, then select Online-Offline Comparison > Interconnection Only from the context menu (right mouse button). The online and offline data for the interconnections are compared, and the result appears in the Info window. Possible display when no interconnections have yet been downloaded. Possible Errors Possible errors in functions and devices are identified by symbols in the plant and network views. The type of error is described in the diagnostic window. * Functions - The interconnection is faulty - Interconnection download required. * Device - The device is not available. - The device has a fault. - Program download is required. Tips * Click on the column headers, e.g. on "Reference object", in the Info window to switch to the ideal column width. * Double- click on a faulty function in the diagnostic window to display the affected technological function in the plant view. * If you double-click on a faulty device in the diagnostic window, the affected device is displayed in the network view. * If "Download necessary" is signalled as a fault, you can click on the "Download" button to start downloading the interconnections immediately. Next Steps Visualizing the process data. Getting Started with Component based Automation A5E00122600-03 6-3 Step 10: Visualizing process data 7.1 7 Analyzing with OPC OPC: OLE for Process Control In SIMATIC iMap, you can create an OPC symbol file for the project. This file contains information about the current process data. Anyone in the office can use an OPC client program to access the data for PROFInet devices at the control and production levels. Requirements * An OPC client program must be installed, e.g. OPC Scout from SIMATIC Net. * The SIMATIC iMap project "Plant_1" is open and has been generated without error. Analyzing Process Data Table 7-1 Creating and Editing the OPC Symbol File Step Description 1 In SIMATIC iMap, select Options > CreateOPC Symbol File.... 2 In the "Save OPC symbol file as" dialog box, select a folder as the storage location. The following OPC symbol files are stored in this folder: * _TAGFILE_.SSD * _TAGFILE_.WSD You can then close SIMATIC iMap. Getting Started with Component based Automation A5E00122600-03 7-1 Step 10: Visualizing process data Step 3 Description Select Start > Simatic > SIMATIC NET > Settings > Set PC Station. The configuration console opens. This is used to make your new OPC symbol file known to a SIMATIC NET OPC server. In the "Tree" window, open the "Applications, Symbols" folder. 4 Select the "Use a symbol file" option and enter the path of the _TAGFILE_.SSD symbol file under "File name" (see Step 2). Click on the "Browse" button to search for the file. 5 Click on the "Extended symbols" button (see picture in step 2) and select the module for the TCP/IP protocol on your PG/PC from the "PROFInet" box. This settings requires you to access the non-connectable connectors (attribute "CBA_transfer_type" with the value "true", see "Blocks in the S7 Program"). 7-2 Getting Started with Component based Automation A5E00122600-03 Step 10: Visualizing process data Step 6 Description Open the OPC protocol selection dialog and highlight the PROFInet and S7 protocols. Click on the "Apply" button to confirm your settings. 7 Use the command Start > Simatic > SIMATIC NET > Industrial Ethernet > SOFTNET Industrial Ethernet > OPC Scout to start OPC Scout. OPC Scout opens. Here you can create a new group for your project data. Double-click to open this group. The OPC navigator opens. Select the project variables that you wish to display by selecting the function in the "Nodes" window. Then use the arrow button to transfer the desired item name to the right-hand window. Example: Getting Started with Component based Automation A5E00122600-03 7-3 Step 10: Visualizing process data Step 8 Description Click on the "OK" button to confirm your input. A table with the selected OPC variables and their status information appears in OPC Scout. Hint Save your selected visualization data to an .OPP file. You can then open this file directly using OPC Scout. When visualization is working with the "OPC Scout" diagnostic tool, you can use any OPC-compatible software package (e.g. ProTool/Pro, WinCC) to access the OPC server running on the PC. 7-4 Getting Started with Component based Automation A5E00122600-03 8 If you want to learn more Detailed descriptions... ... of PROFInet devices and how to work with SIMATIC iMap can be found in the appropriate product documentation: on the subject SIMATIC iMap Manual Configuring Plants with SIMATIC iMap can be found on the CD-ROM... SIMATIC iMap V1.2 WinLC PN V1.1 WinLC PN V1.1 WinLC PN V1.1 OPC SIMATIC NET V6.0 Industrial communications with a PG/PC Getting Started with Component based Automation A5E00122600-03 8-1 Getting Started with Component based Automation A5E00122600-03 8-2 Index Index Analyzing process data Getting Started 7-1 Assign IP address WinLC PN 4-12 Assign PROFIBUS address 4-12 Assign subnet mask Subnet mask 4-12 Assigning Addresses 4-10 Breaking down the plant Getting Started 2-1 component interface Defining 2-4 Component interface Conveyor component 2-5 Coordinator component 2-4 ProcessStation component 2-6 Continuation connector 4-15 Create OPC Symbol File Getting Started 7-1 Creating a new library Getting Started 4-2 Creating PROFInet Components Getting Started 3-8 Diagnostic window Getting Started 6-1 Diagnostics Getting Started 6-1 Download 6-3 Downloading programs and interconnections 5-28 Generation 5-18 Getting Started Steps of the Solution 1-3 Importing Getting Started 4-4 Importing components into a library Getting Started 4-4 Inserting PROFInet Components from the Library into the Project Getting Started 4-7 Interconnecting technological functions Getting Started 4-14 Interconnection Getting Started 4-15 Interconnection diagram Getting Started 2-7 Library window 4-6 Network view Getting Started 4-7 Online-offline comparison 5-29 OPC OLE for Process Control 7-1 Opening the sample library Getting Started 4-3 Plant view 4-14 Getting Started with Component based Automation A5E00122600-03 PN_IN Function call 3-16, 3-24 PN_OUT Function call 3-16, 3-24 Possible errors Getting Started 6-3 Preview window 4-6 PROFInet components for the sample project 3-1 Sample project Getting_Started 4-16 Saving a project 5-17 Saving and generating a project 5-17 Set PC Station Getting Started 7-2 Structure of the plant Getting Started 2-3 Technological functions 4-14 technological modules Breaking down the plant 2-1 Visualization data Getting Started 7-4 Index-1