Siemens SIMATIC S7-1500 Getting Started

Siemens SIMATIC S7-1500 Getting Started

Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

S7-1500
SIMATIC
S7-1500
Getting Started
Under the following link you find the Getting Started in multimedia form. Clear videos show you with
the help of an automation task the project engineering, programming and visualisation of the S7-1500
with the TIA Portal.
http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/getting-started_simatic-s7-
1500/_content/EN/content_en.html
05/2014
A5E03981761-AC
___________________
Welcome
___________________
Automation task
___________________
Hardware section
___________________
Software section
___________________
Security
1
2
3
4

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S7-1500

  • Page 1 Under the following link you find the Getting Started in multimedia form. Clear videos show you with the help of an automation task the project engineering, programming and visualisation of the S7-1500 with the TIA Portal. http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/getting-started_simatic-s7- 1500/_content/EN/content_en.html 05/2014 A5E03981761-AC...
  • Page 2 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 3: Welcome

    Welcome to the Getting Started "TIA Portal V13". In this Getting Started, we show you an example of how to use the CPU SIMATIC S7-1500 with the TIA Portal to create an automation solution for a "color mixing plant". Video clips will illustrate the approach for creating a solution for the automation task.
  • Page 4: Table Of Contents

    Table of contents Welcome ..............................3 Automation task ............................7 Introduction............................ 7 Sample project ..........................8 Hardware section ..........................15 Introduction..........................15 2.1.1 Requirements ..........................15 2.1.2 Additional information ........................16 Installing the assembly ........................ 17 2.2.1 Overview ............................. 17 2.2.2 Installing the assembly ........................
  • Page 5 Table of contents Creating the program ........................48 3.2.1 Loading the block library ......................48 3.2.2 Deleting program block Main [OB1] ..................... 50 3.2.3 Copying program blocks ......................51 3.2.4 Cyclic interrupt OB ........................52 3.2.4.1 Cyclic interrupt OB – Cycle time and phase ................52 3.2.4.2 Changing the cycle time .......................
  • Page 6 Table of contents Loading the project into the programming device ..............110 3.4.1 Load CPU to project ........................110 Team engineering via Inter Project Engineering ............... 112 3.5.1 Basics of "Inter Project Engineering" ..................112 3.5.2 Creating an IPE file ........................113 3.5.3 Importing an IPE file ........................
  • Page 7: Automation Task

    Automation task Introduction Introduction In the following section, you will become familiar with the automation task. You can find out more about the application example, the hardware configuration and the components of the sample project. Application example The application example for this Getting Started is a color mixing plant for mixing and filling a previously selected color recipe.
  • Page 8: Sample Project

    Automation task 1.2 Sample project Design of the hardware configuration The hardware configuration consists of the following devices: ● The CPU 1511-1 PN with an S7-1500 load current supply, a digital input module and a digital output module. ● HMI Panel TP1200 Comfort that can also be simulated with the TIA Portal. ●...
  • Page 9 Automation task 1.2 Sample project Selecting the recipe ① The HMI screen "Recipes" includes the "Color selection recipe". This is a prefabricated object from the library of the TIA Portal. You can use this object to select data records and to create new data records. ②...
  • Page 10 Automation task 1.2 Sample project Displaying the CMYK and RGB values ① When the required color mixture is selected in the HMI screen "Recipes", the values are displayed in the CMYK color space by means of a bar diagram. ② The color mixture can be shown with an additional display.
  • Page 11 Automation task 1.2 Sample project Filling the recipe ① The "Fill recipe" button starts the filling of the color components in the HMI screen "Start screen". The button activates the "LAD_Control_Color_Valves" program block. ② The program block calculates how long each of the four valves needs to stay open for the color mixture based on the specified recipe and the number of tins that have to be filled.
  • Page 12 Automation task 1.2 Sample project Starting the mixing process ① The "Start mixing process" button starts the mixer of the color mixing plant in the HMI screen "Start screen". ② The "LAD_Mixer" program block is called for this purpose at the CPU end. It activates the mixer for three seconds.
  • Page 13 Automation task 1.2 Sample project Filling the color mixture ① The "Fill Color Mixture" button starts the filling of the tins in the HMI screen "Start screen". ② The "SCL_Valve_Conveyor" program block is activated for this purpose at the CPU end;...
  • Page 14 Automation task 1.2 Sample project Resetting the fill level ① There is a button to reset the fill level of each of the four color tanks in the HMI screen "Start screen". ② The reset of the respective fill level has been implemented in the "Main" program block in networks 6 to 9.
  • Page 15: Hardware Section

    In the first basic steps, you will get to know the new hardware better. We will also show you how to configure and program the SIMATIC S7-1500 with SIMATIC STEP 7 V13 (TIA Portal). The connection of a SIMATIC HMI Comfort Panel with SIMATIC WinCC Advanced V13 (TIA Portal) or SIMATIC WinCC Professional V13 (TIA Portal) completes the basic steps.
  • Page 16: Additional Information

    2.1.2 Additional information Detailed information on the hardware used is available here: ● CPU 1511-1 PN (6ES7511-1AK00-0AB0) (http://support.automation.siemens.com/WW/view/en/68020492) ● S7-1500 load current supply PM 70W 120/230VAC (6EP1332-4BA00) (http://support.automation.siemens.com/WW/view/en/68036174) ● DI 16x24 V DC SRC BA digital input module (6ES7521-1BH50-0AA0) (http://support.automation.siemens.com/WW/view/en/59191844/) ●...
  • Page 17: Installing The Assembly

    Hardware section 2.2 Installing the assembly Installing the assembly 2.2.1 Overview Mounting the assembly You mount the structure in this section. 2.2.2 Installing the assembly Procedure 1. Mount the load current supply (PM) on the mounting rail. 2. Open the front cover and pull out the mains connection plug. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 18 Hardware section 2.2 Installing the assembly 3. Remove the 4-pole connection plug and screw the load current supply (PM) tight. 4. Insert the U-connector into the back of the CPU. 5. Mount the CPU on the mounting rail and screw tight. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 19 Hardware section 2.2 Installing the assembly 6. Insert the U-connector into the back of the digital input module. 7. Attach the digital input module to the mounting rail and screw tight. 8. Attach the digital output module to the mounting rail and screw tight. Result The assembly has been mounted.
  • Page 20: Wiring

    Hardware section 2.3 Wiring Wiring 2.3.1 Overview Wiring the assembly You mount the assembly in this section. DANGER The mains cable for the load current supply must not be connected to the power supply during wiring. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 21: Wiring Rules

    Operation of an S7-1500 CPU in plants or systems is defined by special set of rules and regulations, based on the relevant field of application. You can find the general rules and regulations for operating the S7-1500 in the S7-1500 system description (http://support.automation.siemens.com/WW/view/en/59191792). Wiring rules for the CPU Wiring rules...
  • Page 22: Wiring The Mains Connection Plug

    Hardware section 2.3 Wiring 2.3.3 Wiring the mains connection plug Procedure 1. Pry off the connector cover using a suitable tool. 2. Connect the mains cable in the plug according to the connection diagram. You will find information on which voltage the plug is approved for on the side of the plug. You select the voltage by inserting the coding element accordingly on the back of the plug.
  • Page 23 Hardware section 2.3 Wiring 3. Close the cover. 4. Tighten the screw on the front of the mains connection plug. Result The mains connection plug is now wired. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 24: Wiring The Load Current Supply (Pm) To The Cpu

    Hardware section 2.3 Wiring 2.3.4 Wiring the load current supply (PM) to the CPU Procedure 1. Wire the 4-pin connector plug of the load current supply (PM). 2. Wire the 4-pin connector plug with the 4-pin mains connection plug of the CPU. 3.
  • Page 25: Potential Bridge Circuits

    Hardware section 2.3 Wiring 2.3.5 Potential bridge circuits Application of the potential bridge circuits If you want to supply the load groups with the same potential (non-isolated), use the potential circuit bridges supplied for the front connector. This means that you avoid having to wire a clamping unit with two wires.
  • Page 26 Hardware section 2.3 Wiring 2. Thread in the cable tie. 3. Connect the supply voltage 24 V DC to the terminals 20 (M) and 19 (L+). 4. Insert the potential circuit bridges between the two bottom terminals. Result The digital input module is now wired. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 27: Wiring The Digital Output Module

    Hardware section 2.3 Wiring 2.3.7 Wiring the digital output module Procedure 1. Insert the front connector into the pre-wiring position. 2. Use terminals 40 (M) and 39 (L+) from the digital input module to feed the supply voltage DC 24 V from the digital input module to terminals 20 (M) and 19 (L+). S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 28 Hardware section 2.3 Wiring 3. Connect the four potential circuit bridges. 4. Connect the terminals 30 and 40, as well as 29 and 39 to each other. Result The digital output module is now wired. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 29: Wiring Front Connectors

    Hardware section 2.3 Wiring 2.3.8 Wiring front connectors Procedure 1. Connect the individual wires according to the connection diagram on the inner side of the front cover in the terminal and screw tight. 2. For strain relief, run the cable tie around the cable harness and pull tight. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 30 Hardware section 2.3 Wiring 3. Move the front connector from the pre-wiring position to its final position. By doing this, you create an electrical connection between the front connector and the module. 4. Tip: Pre-wired front connectors, e.g. for replacing modules, can be inserted directly. Result The front connectors are now wired.
  • Page 31: Power On

    Hardware section 2.4 Power on Power on 2.4.1 Overview Turning on the CPU for the first time You turn on the CPU for the first time in this section. 2.4.2 Power on Procedure 1. Insert mains connection plug of the load current supply (PM). 2.
  • Page 32 Hardware section 2.4 Power on 3. Insert a blank SIMATIC memory card into the CPU. 4. Move the switch for the load current supply (PM) to the position RUN. The CPU starts up. Result The CPU starts up and is in STOP mode. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 33: Assign Ip Address Via The Display

    Hardware section 2.4 Power on 2.4.3 Assign IP address via the display In this step you set the IP address and the subnet mask for the CPU. Procedure 1. Navigate to "Settings". 2. Select "Addresses". 3. Select the interface "X1 (IE/PN)". 4.
  • Page 34: Software Section

    Software section Creating the project and hardware 3.1.1 Introduction to the TIA Portal Introduction The Totally Integrated Automation Portal, referred to as TIA Portal in the following, offers all the functions you need for implementing your automation task assembled in a single, cross- software platform.
  • Page 35 Software section 3.1 Creating the project and hardware Advantages of working with the TIA Portal The following features provide efficient support during the realization of your automation solution when working with the TIA Portal: ● Integrated engineering with a uniform operating concept Process automation and process visualization go "hand-in-hand".
  • Page 36: Creating A Project

    Software section 3.1 Creating the project and hardware 3.1.2 Creating a project Introduction In the following step, you will create a new project. All data which is generated during the creation of an automation solution is saved in the project file. The data is stored in the form of objects. Within the project, the objects are arranged in a tree structure (project hierarchy).
  • Page 37 Software section 3.1 Creating the project and hardware Result The project has been created. All data, such as the hardware configuration, the CPU programming and the visualization in HMI, is saved in the project. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 38: Creating An S7-1500 Cpu

    CPUs from the hardware catalog which will be defined later. Procedure 1. Open the "Devices & Networks" portal. 2. Insert a new device. 3. Enter "Color_Mixing_CPU" as the name for the CPU. 4. Open the "SIMATIC S7-1500" folder. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 39 Software section 3.1 Creating the project and hardware 5. Select the CPU which has not yet been specified. 6. Create the CPU with a double-click. Result The unspecified CPU is created in the project file. Contents of the user program can already be created at this point for this CPU.
  • Page 40: Running The Hardware Detection

    Software section 3.1 Creating the project and hardware 3.1.4 Running the hardware detection Introduction In the following section, you will use the hardware detection function to read the CPU type. Run an LED flashing test during hardware detection. The LED flashing test activates the LEDs on a detected device.
  • Page 41: Creating Et 200 Interface Modules

    Software section 3.1 Creating the project and hardware 3.1.5 Creating ET 200 interface modules Introduction In the following section, you will create two distributed I/O systems in the hardware configuration: ● An ET 200SP distributed I/O system, which basically consists of the following components: –...
  • Page 42: Networking Et 200 Interface Modules

    The SIMATIC ET 200 product family offers different scalable I/O systems to suit your specific application. You will find more information about the SIMATIC ET 200 distributed I/O on the Internet at (http://www.automation.siemens.com/mcms/distributed-io/en/). 3.1.6 Networking ET 200 interface modules Introduction In the following section, you will create a PROFINET I/O system.
  • Page 43 Software section 3.1 Creating the project and hardware Procedure 1. Drag-and-drop a connection from the interface of the IM 155-5 PN ST interface module to the CPU interface. 2. Create a second connection between the IM 155-6 PN ST interface module and the CPU. Result The interface modules are assigned to the CPU as IO devices.
  • Page 44: Creating Input And Output Modules And A Server Module For Et 200Sp

    BaseUnit You can find additional information on potential groups in the module manuals such as SIMATIC ET 200SP DI 8x24VDC HF digital input module (http://support.automation.siemens.com/DE/view/en/66912542). Procedure 1. Open the device view of ET 200SP. 2. Open the "DI" and "DI16 x DC24V ST" folders in the hardware catalog.
  • Page 45 Software section 3.1 Creating the project and hardware Result You have created the input and output modules and the server module. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 46: Creating Input And Output Modules For Et 200Mp

    Software section 3.1 Creating the project and hardware 3.1.8 Creating input and output modules for ET 200MP Introduction In the following section, you will create the input and output modules for ET 200MP. Procedure 1. Open the device view of ET 200MP. 2.
  • Page 47: Assigning Names For Et 200

    Software section 3.1 Creating the project and hardware 3.1.9 Assigning names for ET 200 Introduction In the following section, you will assign project-specific names to the distributed I/O. Procedure 1. Select ET 200SP. 2. Under Properties > General in the inspector window, enter the name "Valve_Control_Unit"...
  • Page 48: Creating The Program

    This library is available as a ZIP file under "Getting Started S7-1500 / TIA V13 (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/getting- started_simatic-s7-1500/project/color_filling_station.zip)". You need to unzip this library before you import it to your project.
  • Page 49 Software section 3.2 Creating the program Procedure 1. Click on the "Libraries" tab. 2. Click "Open global library". 3. Select the "ProgLib_ColorFillingStation" file from the directory that contains the unzipped library folder and click "Open". Result The "ProgLib_ColorFillingStation" global library is open. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 50: Deleting Program Block Main [Ob1]

    Software section 3.2 Creating the program 3.2.2 Deleting program block Main [OB1] Introduction In the following section, you will delete the automatically generated "Main [OB1]" program block from the project folder. A "Main [OB1]" program block is included in the program blocks of the example project.
  • Page 51: Copying Program Blocks

    Software section 3.2 Creating the program 3.2.3 Copying program blocks Introduction In the following section, you will insert the program blocks from the "ProgLib_ColorFillingStation" global library into your project. Procedure 1. Click on global library "ProgLib_ColorFillingStation". 2. Click the "Master copies" folder and then on "Programm_blocks". 3.
  • Page 52: Cyclic Interrupt Ob

    Software section 3.2 Creating the program 3.2.4 Cyclic interrupt OB 3.2.4.1 Cyclic interrupt OB – Cycle time and phase Cycle time and phase offset can be changed Main [OB35] is located below the program blocks inserted into the project. Main [OB35] is a cyclic interrupt organization block (cyclic interrupt OB).
  • Page 53: Changing The Cycle Time

    Software section 3.2 Creating the program 3.2.4.2 Changing the cycle time Introduction In the following section, you will change the cycle time for the "Main" program block. Requirement ● The program block "Main" [OB35] is contained in the library ● The FB/FC calls exist Procedure 1.
  • Page 54: Copying Tag Tables

    Software section 3.2 Creating the program 3.2.5 Copying tag tables Introduction In the following section, you will insert the tag tables from the "ProgLib_ColorFillingStation" global library into your project. Procedure 1. Open the "PLC tags" folder in the project navigation. 2.
  • Page 55: Compiling A Project

    Software section 3.2 Creating the program 3.2.6 Compiling a project Introduction In the next section, you will compile the "Color_Filling_Station" project. Procedure 1. Select the "Color_Mixing_CPU" CPU in the project tree. 2. Right-click to open the shortcut menu and then select "Compile" > "Hardware and software (only changes)".
  • Page 56 Software section 3.2 Creating the program Result The project is compiled and ready for downloading. Note "Main" program block is updated Open the "Main" program block after compilation. All instance data blocks have been created and the data blocks are updated. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 57: Load Project Into The Cpu

    Software section 3.2 Creating the program 3.2.7 Load project into the CPU Introduction In the next section, you will download the "Color_Filling_Station" project to the CPU. Note Displaying all compatible devices If the desired CPU is not displayed after you have made the settings in the "Extended download to device"...
  • Page 58 Software section 3.2 Creating the program Result The project is downloaded to the CPU. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 59: Optimized Block Access

    Software section 3.2 Creating the program 3.2.8 Optimized block access 3.2.8.1 Introduction Operating principle The "optimized data blocks" of the CPUs of the S7-1500 series are optimized for performance and are only programmed symbolically. By using the optimized data blocks, you make your program more efficient, because the declared tags are given symbolic names and no longer a fixed address.
  • Page 60: Expanding And Reloading The Optimized "Filling" Data Block

    Software section 3.2 Creating the program 3.2.8.2 Expanding and reloading the optimized "Filling" data block Introduction In the following section, you will supplement the "Filling" data block with the date and time of the last filling and reload the data block. To do this, create a block for recording the date and time and enable the function "Download without reinitialization".
  • Page 61 Software section 3.2 Creating the program Procedure 1. Open the "Filling" data block and the "Main" program block. 2. Enable the "Monitoring on/off" function for the "Main" program block. 3. In the "Main" program block, open the shortcut menu of the "'FILLING' FillingLevel_CMYK_C"...
  • Page 62 Software section 3.2 Creating the program 7. Insert a normally closed contact into the "Main" program block in the 5 network, and interconnect it with the "FILLING_DONE" parameter. 8. Open the "Date & time" folder from the "Instructions" tab and insert the "RD_Loc_T" block in the "Main"...
  • Page 63 Software section 3.2 Creating the program 9. Interconnect the "OUT" output with the "DT_Loc-T_Last_Filling" parameter and the "RED_VAL" output with the newly created "RED_VAL_Loc-T" parameter. Use the "LAD_Tanks_Filling_Process" data block as the storage location for the "RED_VAL_Loc- T" parameter. 10.Compile and download the project. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 64 Software section 3.2 Creating the program Result The date and time of the last filling are reloaded. The actual parameters of the "Filling" data block are not overwritten. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 65: Versioning A Block

    Software section 3.2 Creating the program 3.2.9 Versioning a block Introduction The use of block types ensures a high degree of standardization in your projects. You can easily integrate function extensions to the block type into existing projects. Change tracking is ensured by versioning.
  • Page 66 Software section 3.2 Creating the program 5. Insert two inputs into the CALCULATE instruction and interconnect the inputs. 6. Define the calculation formula and then interconnect the output. 7. Release the block version. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 67 Software section 3.2 Creating the program Result The revised version of the block type is saved in the library with a new version number. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 68: Setting Retentivity

    Software section 3.2 Creating the program 3.2.10 Setting retentivity Introduction All tags are initialized with their configured start values during CPU startup, for example, after a power failure. The most recent values the tags had immediately before the interruption are overwritten with the initial values. To prevent this, define the tag as retentive. Retentive tags retain their values even after a restart.
  • Page 69 Software section 3.2 Creating the program 5. Transfer the control values to the CPU with "Modify now". 6. Close the online connection to the CPU. To simulate a power failure, disconnect the power supply to the CPU. 7. Reconnect the power supply and go online to the CPU. Enable "Monitor all" for the "Filling"...
  • Page 70 Software section 3.2 Creating the program Result The fill level for "Cyan" is read from the retentive memory area. All other fill levels are re- initialized with their start value. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 71: Activating The En/Eno Mechanism

    Software section 3.2 Creating the program 3.2.11 Activating the EN/ENO mechanism Introduction The EN/ENO mechanism in various instructions enables you to detect runtime errors and avoid a program crash. Newly inserted ENO instructions are disabled by default. You can then activate the ENO enable output. You can use this in a new network that has the fill level of all paint storage tanks reset to the start value (1000) at the same time.
  • Page 72 Software section 3.2 Creating the program Result The EN/ENO mechanism is interconnected for this block. If there are no errors during execution, the ENO enable output has the signal state "1". If there are errors during execution, the ENO enable output has the signal state "0". S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 73: Using The Comment Function

    Software section 3.2 Creating the program 3.2.12 Using the comment function Introduction The MOVE and Reset instructions should be expanded with detailed commentary. Procedure 1. Insert a comment using the shortcut menu. 2. Enter the comment text. Result The comments for the instruction and the coil are entered. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 74: Local Error Handling

    Software section 3.2 Creating the program 3.2.13 Local error handling 3.2.13.1 Handle errors within block Procedure Unlike the CPUs of the S7-300/400, CPUs of the S7-1500 go to STOP with errors much less often. If an error occurs, it is entered in the diagnostics buffer of the CPU. You avoid the CPU STOP by using local error handling at each block.
  • Page 75 Software section 3.2 Creating the program You can precisely evaluate the information and, for example, program the error handling in the block with STL/FBD/LAD and SCL programs. The block generates an error ID that is evaluated by the "GET_ERROR_ID" instruction. You can call the "GET_ERROR_ID" instruction in both the MAIN block and in the function blocks.
  • Page 76: Loading Blocks For Local Error Handling

    Software section 3.2 Creating the program 3.2.13.2 Loading blocks for local error handling Introduction To illustrate the local error handling, load the blocks of the "ProgLib_LEH" library in the project. The blocks are used only to demonstrate the local error handling and are otherwise not used in the project.
  • Page 77 Software section 3.2 Creating the program 4. Interconnect the parameters of the "LAD_Local_Error_Handling" function block with tags of the "LEH_InOutValues" data block. 5. Connect to the CPU online. 6. Compile and load the changes to the CPU. Result Use the "LEH_INDEX" tag at the "INDEX[0..100]" input parameter to trigger a programming error in the following.
  • Page 78: Generating Errors Without Local Error Handling

    Software section 3.2 Creating the program 3.2.13.3 Generating errors without local error handling Introduction Perform the following steps to trigger a programming error without using the local error handling or creating a corresponding OB. Procedure 1. Activate the "Monitor" function. 2.
  • Page 79: Generating Errors With Local Error Handling

    Software section 3.2 Creating the program 3.2.13.4 Generating errors with local error handling Introduction Perform the following steps to use "GET_ERR_ID" instruction and its ENO bit for the local error handling to respond to the error with an error message. This means the CPU remains in RUN mode.
  • Page 80 Software section 3.2 Creating the program Result The error message is output as long as the error is not corrected. To correct the error, assign the "LEH_INDEX" tag a valid value or restart the CPU. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 81: Configure Visualization

    Software section 3.3 Configure visualization Configure visualization 3.3.1 Present sample project Sample project for the application To configure the color mixing system with the TIA Portal, create the sample project "Color_Filling_Station". The following project components already exist for the sample project: The program blocks and tag tables of the CPU user program and a configured Comfort Panel with the necessary HMI screens, HMI tags and scripts.
  • Page 82: Simatic Hmi Comfort Panels

    Software section 3.3 Configure visualization 3.3.2.2 SIMATIC HMI Comfort Panels SIMATIC HMI Comfort Panels The TP1200 Comfort HMI device from the Comfort Panel series is used to operate the color mixing system. Comfort Panels are particularly suitable for challenging HMI tasks in PROFINET and PROFIBUS environments and are characterized by the following features: ●...
  • Page 83: Hmi Screens

    Software section 3.3 Configure visualization 3.3.2.3 HMI screens HMI screens You use the screens loaded onto the respective HMI device to operate and monitor machines and plants in runtime. You manage the screens in WinCC under "Screens" in the project navigation. The start screen of the HMI device is used to visualize the color mixing system as well as the most important status information and key figures.
  • Page 84: Additional Control Elements

    Software section 3.3 Configure visualization 3.3.2.4 Additional control elements Additional control elements The process steps "Mixing color" and "Filling color" are to be displayed as animations with dynamic visualization objects. The start screen of the example project includes additional control objects: ●...
  • Page 85: Recipes

    Software section 3.3 Configure visualization 3.3.2.5 Recipes Recipes A recipe contains related production parameters, such as mixing ratios. The required mixing ratio can be transferred from the HMI device to the color mixing system in a single step, for example, to switch production from dark orange to signal yellow. The color mixing system can produce the mixed colors "Orange", "Amber", "Green"...
  • Page 86: Archives

    Software section 3.3 Configure visualization 3.3.2.6 Archives Archives To record operational events of a system, the alarms and process values generated during production are saved to logs. You can then evaluate the alarms and process data logs. The fill levels of the color reservoirs are to be documented for the color mixing system. You have configured the alarm log "Tank_Level"...
  • Page 87: User-Defined Functions

    Software section 3.3 Configure visualization 3.3.2.7 User-defined functions Scripts You use the user-defined functions to program additional functionality for the HMI device. WinCC offers a VBS programming interface to create user-defined functions. The example project uses two user-defined functions to display the mixed print color on the monitor in different screens.
  • Page 88: User Management

    Software section 3.3 Configure visualization 3.3.2.8 User Management User Management WinCC gives you the option to restrict safety-related operations to special user groups and thus protect data and functions from unauthorized access in Runtime. The "User view" object offers management of users and passwords on the HMI device. Users with user management authorization have access to the full range of functions in the user view.
  • Page 89: Multilingualism

    Software section 3.3 Configure visualization 3.3.2.9 Multilingualism Multilingualism WinCC supports multilingual user interfaces. The color mixing system is operated in a new subsidiary in Russia. A Russian user interface is required for maintenance and service technicians. The example project has been expanded by another language for this purpose. The texts are imported again after they have been exported and translated into Russian.
  • Page 90 Software section 3.3 Configure visualization The Russian texts are displayed in Runtime in case of a language selection. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 91: Reports

    Software section 3.3 Configure visualization 3.3.2.10 Reports Reports Reports are used to record events in a production process as a basis for product testing and quality control. Alarms and recipe data are output at regular intervals in the form of shift reports for this purpose.
  • Page 92 Software section 3.3 Configure visualization A report for recipes has also been created in this project. The reports should be output on a daily basis to a printer which is connected to the HMI device. The cyclical output was created with the help of the Scheduler. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 93: Insert Hmi Device From Libraries

    Software section 3.3 Configure visualization 3.3.3 Insert HMI device from libraries 3.3.3.1 Storing an object in a library Introduction The global library includes a preconfigured HMI device. Procedure 1. Open the global library. 2. Drag-and-drop the HMI device "Color_Mixing_HMI" into the "Devices & Networks" editor. 3.
  • Page 94: Configuring Hmi Connection

    Software section 3.3 Configure visualization 3.3.4 Configuring HMI connection 3.3.4.1 Communication between devices Communication The data exchange between devices is referred to as communication. The devices can be interconnected directly or via a network. The interconnected devices in communication are referred to as communication partners. Data transferred between the communication partners may serve different purposes: ●...
  • Page 95: Configuring Hmi Connection

    Targeted attacks can overload the device and interfere with proper functioning. Requirements The following communication partners are created in the "Devices & Networks" editor: ● HMI device: SIMATIC Comfort Panel ● CPU: SIMATIC S7-1500 S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 96 Software section 3.3 Configure visualization Procedure 1. Click the "Connections" button and select "HMI connection" for the connection type. The devices available for connection are highlighted in color. 2. Click the PROFINET interface of the CPU and drag-and-drop a connection to the PROFINET interface of the HMI device.
  • Page 97: Connecting Hmi Tags

    Software section 3.3 Configure visualization 3.3.4.3 Connecting HMI tags Introduction Once you have created the connection of CPU and HMI device, connect the tags of the two devices. Procedure 1. Open the HMI tag editor. 2. Select the HMI connection you have just configured in the "Connections" column. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 98 Software section 3.3 Configure visualization 3. Repeat this procedure for all entries highlighted in red. Result An HMI connection had already been created for tags already configured in the CPU and HMI device. You have restored this HMI connection. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 99: Configuring System Diagnostics

    Software section 3.3 Configure visualization 3.3.5 Configuring system diagnostics 3.3.5.1 System diagnostics basics Introduction You use system diagnostics to detect problems and errors in any part of your plant. WinCC has two display and operating elements for quick error localization. System diagnostics view The alarm view shows the status of a CPU while the system diagnostics view gives you an overview of all devices available in your system: You navigate directly to the cause of the...
  • Page 100: System Diagnostics Views

    Software section 3.3 Configure visualization 3.3.5.2 System diagnostics views Introduction There are four different views available in the system diagnostics display and the system diagnostics window. ● Device view ● Diagnostic buffer view ● Detail view ● Matrix view (for master systems, PROFIBUS, PROFINET only) Device view The device view shows all the available devices of a layer in a table.
  • Page 101 Software section 3.3 Configure visualization Diagnostic buffer view The current data from the diagnostic buffer are shown in the diagnostic buffer view. Detail view The detail view gives detailed information about the selected device and any pending errors. Check whether the data is correct in the detail view. You can cannot sort error texts in the detail view.
  • Page 102 Software section 3.3 Configure visualization Matrix view The matrix view is only available for master systems. The matrix view shows the status of the subdevices of the master system. ● In PROFIBUS, the numbers assigned by Profibus are used as identification (DP station number).
  • Page 103: Configuring The System Diagnostic View

    Software section 3.3 Configure visualization 3.3.5.3 Configuring the system diagnostic view Introduction You add a system diagnostics view to your project to get an overview of all devices available in your plant. Requirements ● CPU has been created. ● The Inspector window is open. Procedure 1.
  • Page 104 Software section 3.3 Configure visualization 2. Double-click the "System diagnostics view" object in the "Tools" task card. The object is added to the screen. 3. Select "Properties > Properties > Columns > Devices/Detail view" in the Inspector window. 4. Enable the columns that you require in the device view for Runtime, for example, State, Name, Slot.
  • Page 105: Simulating An Hmi Device

    Software section 3.3 Configure visualization 3.3.6 Simulating an HMI device 3.3.6.1 Simulation basics Introduction You can use the simulator to test the performance of your configuration on the configuration PC. This allows you to quickly locate any logical configuration errors before productive operation.
  • Page 106: Operating The Panel In Simulation

    Software section 3.3 Configure visualization 3.3.6.2 Operating the panel in simulation Introduction You simulate the HMI project on your computer. Procedure 1. Start the simulation of the HMI device. A connection to the CPU is established and the color mixing system is displayed in the simulation.
  • Page 107 Software section 3.3 Configure visualization 3. Specify the number of cans and view the selected color. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 108 Software section 3.3 Configure visualization 4. Go back to the start screen and start production. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 109 Software section 3.3 Configure visualization 5. You can query the current CPU status in the "Diagnostics" screen. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 110: Loading The Project Into The Programming Device

    Software section 3.4 Loading the project into the programming device Loading the project into the programming device 3.4.1 Load CPU to project Introduction You can create a new station including the actual values from the hardware configuration and the user program. Procedure 1.
  • Page 111 Software section 3.4 Loading the project into the programming device Result The hardware and software configuration of the CPU are loaded into the project. The project now contains, for example, program blocks and tags. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 112: Team Engineering Via Inter Project Engineering

    Software section 3.5 Team engineering via Inter Project Engineering Team engineering via Inter Project Engineering 3.5.1 Basics of "Inter Project Engineering" Introduction In this section, you will learn about the benefits of team engineering and how to create the required CPU data for an HMI project engineer. As an HMI project engineer, you will learn how to use this CPU data in your project.
  • Page 113: Creating An Ipe File

    Software section 3.5 Team engineering via Inter Project Engineering 3.5.2 Creating an IPE file Introduction You want to use a compact HMI device to display of fill levels directly at the paint mixing plant. You hire an engineering firm for the visualization and the provide the required CPU data as an IPE file.
  • Page 114: Importing An Ipe File

    Software section 3.5 Team engineering via Inter Project Engineering 3.5.3 Importing an IPE file Introduction In the engineering office, the project engineer creates a device proxy in a new project and initializes it with the CPU data from the IPE file. The project engineer repeats the initialization for each update of the IPE file.
  • Page 115 Software section 3.5 Team engineering via Inter Project Engineering 4. Create the other HMI tags in the same way. 5. Configure a bar graph to display the fill level of the "Cyan" color. S7-1500 Getting Started, 05/2014, A5E03981761-AC...
  • Page 116 Software section 3.5 Team engineering via Inter Project Engineering 6. Create a bar graph for the other fill levels in the same way. 7. Compile the project. Result The project can now be loaded to the HMI device from the commissioning engineer. The communication with the CPU is up-to-date thanks to the CPU data from the IPE file.
  • Page 117: Security

    Security Overview of the protective functions of the CPU Introduction This chapter describes the following functions for protecting the S7-1500 automation system against unauthorized access: ● Access protection ● Know-how protection ● Copy protection ● Protection by locking the CPU Further measures for protecting the CPU The following measures additionally increase the protection against unauthorized accesses to functions and data of the S7-1500 CPU from external sources and via the network:...
  • Page 118: Using The Display To Configure Additional Access Protection

    Security 4.2 Using the display to configure additional access protection Using the display to configure additional access protection Introduction On the display of an S7-1500, you can block access to a password-protected CPU (local lock). The access lock is only in effect, when the operating mode switch is in the RUN position.
  • Page 119: Know-How Protection

    Security 4.3 Know-how protection Know-how protection You can use know-how protection to protect one or more blocks of the OB, FB, FC type and global data blocks in your program from unauthorized access. You can enter a password in order to restrict access to a block. The password protection prevents the block from being read or changed without authorization.
  • Page 120 Security 4.3 Know-how protection Setting up block know-how protection 1. Open the properties of the respective block. 2. Select the "Protection" option under "General". 3. Click the "Protection" button to display the "Know-how protection" dialog. 4. Click the "Define" button to open the "Define password" dialog. 5.
  • Page 121 Security 4.3 Know-how protection Opening know-how protected blocks 1. Double-click the block to open the "Access protection" dialog. 2. Enter the password for the know-how protected block. 3. Click "OK" to confirm your entry. Result: The know-how-protected block will open. Once you have opened the block, you can edit the program code and the block interface of the block for as long as the block or TIA Portal is open.
  • Page 122: Copy Protection

    Security 4.4 Copy protection Copy protection Copy protection allows you to bind the program or the blocks to a specific SIMATIC memory card or CPU. Through the linking of the serial number of a SIMATIC memory card or of a CPU the use of this program or of this block is only possible in combination with a specific SIMATIC memory card or CPU.
  • Page 123: Protection By Locking The Cpu

    Security 4.5 Protection by locking the CPU Removing copy protection 1. Remove any existing know-how protection. 2. Open the properties of the respective block. 3. Select the "Protection" option under "General". 4. In the "Copy protection" area, select the "No binding" entry from the drop-down list. Protection by locking the CPU Protect your CPU from unauthorized access using a sufficiently secured front cover.
  • Page 124 Security 4.6 Configuring access protection for the CPU Access levels of the CPU Access levels Access restrictions Complete The hardware configuration and the blocks can be read and changed by all users. access (no protection) Read access With this access level, read-only access to the hardware configuration and the blocks is possible without entering a password, which means you can download hardware configuration and blocks to the programming device.
  • Page 125 Security 4.6 Configuring access protection for the CPU Parameterizing the procedure at access levels To configure the access levels of an S7-1500 CPU, follow these steps: 1. Open the properties of the S7-1500 CPU in the Inspector window. 2. Open the "Protection" entry in the area navigation. A table with the possible access levels appears in the Inspector window.
  • Page 126: Configuring Protection Of The Hmi Connection

    If the protection level "Complete protection" was set for the CPU, the HMI device can only access the CPU with the password stored there. This function is only available with HMI devices from SIEMENS. Procedure 1. Open the "Connections" editor in the project tree.

Table of Contents