Siemens SIMATIC S7-1500 Function Manual

Siemens SIMATIC S7-1500 Function Manual

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

Advertisement

Diagnostics

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S7-1500

  • Page 1 Diagnostics...
  • Page 2 Preface Function manuals Documentation Guide Overview of system SIMATIC diagnostics Quick start S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Setting and determining system diagnostics Diagnostics System diagnostics by means of the user program Function Manual Alarms Diagnostics of the S7- 1500R/H redundant system 11/2019 A5E03735838-AF...
  • Page 3 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 4: Preface

    This function manual provides an overview of the diagnostics options for the automation system SIMATIC S7-1500, for the CPUs 1513pro-2 PN and 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL.
  • Page 5 Changed Updated restrictions for the Functions with which you are familiar from Section Diagnostics of the S7- contents S7-1500R/H redundant the SIMATIC S7-1500 automation system 1500R/H redundant system system are implemented for the S7-1500R/H (Page 97) redundant system. What's new in the Diagnostics function manual, Edition 10/2018 compared to Edition 09/2016...
  • Page 6 Scope of the function man- Functions that you will be familiar with Operating instructions CPU contents ual expanded to include from the SIMATIC S7-1500 CPUs are 1516pro-2 PN CPU 1516pro-2 PN implemented in the CPU 1516pro-2 PN (https://support.industry.sieme (degree of protection IP65, IP66 and ns.com/cs/ww/en/view/109482...
  • Page 7 Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
  • Page 8 This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com). Industry Mall The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
  • Page 9: Table Of Contents

    Table of contents Preface ..............................3 Function manuals Documentation Guide ....................10 Overview of system diagnostics ......................12 Properties of system diagnostics ................... 12 Benefits of innovative system diagnostics ................14 Quick start ............................15 Using the display of the CPU ....................16 Using STEP 7 .........................
  • Page 10 Table of contents Alarms ..............................76 Creating alarms with the "Program_Alarm" instruction ............77 Editing alarms in the alarm editor ................... 78 Display of program alarms ...................... 81 Output of the alarm state with the "Get_AlarmState" instruction ..........82 Example program for program alarms ..................83 6.5.1 Task ............................
  • Page 11: Function Manuals Documentation Guide

    Function manuals Documentation Guide The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.
  • Page 12 You must register once to use the full functionality of "mySupport". You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en). Application examples The application examples support you with various tools and examples for solving your automation tasks.
  • Page 13: Overview Of System Diagnostics

    Overview of system diagnostics Properties of system diagnostics Introduction In the SIMATIC environment, the term "system diagnostics" refers to diagnostics of devices and modules. All SIMATIC products have integrated diagnostic functions that you can use to detect and remedy faults. The components automatically flag a potential fault in the operation and provide detailed information.
  • Page 14 Overview of system diagnostics 2.1 Properties of system diagnostics Consistent diagnostics from the field level all the way to the management level The various diagnostics media give you a uniform view of maintenance-related information of every automation component in the plant: System status (module and network status, alarms for system errors) are available plant-wide in a uniform display.
  • Page 15: Benefits Of Innovative System Diagnostics

    This means it is also available in the STOP CPU operating mode. Faults are detected immediately and signaled to the higher-level HMI devices, the Web server and the display of the SIMATIC S7-1500 CPU, even in STOP mode. This makes system diagnostics consistent with the actual plant state at all times.
  • Page 16: Quick Start

    Quick start Introduction The following chapters of this documentation describe the different options for establishing system diagnostics. All described options can be used independently of one another. This chapter gives you an overview of the basic procedure to get initial diagnostics information fast.
  • Page 17: Using The Display Of The Cpu

    3.1 Using the display of the CPU Using the display of the CPU The display of the SIMATIC S7-1500 CPU offers a fast and direct option to get diagnostics information. You can call up status information in different menus on the display.
  • Page 18 The diagnostics events are displayed in the diagnostics buffer in the sequence in which they occur. Figure 3-2 Display of the diagnostics buffer in the display of the SIMATIC S7-1500 CPU Note Automatic updating of diagnostics information You set automatic updating of the diagnostics information under: "Display" >...
  • Page 19: Using Step 7

    Quick start 3.2 Using STEP 7 Using STEP 7 Getting started with STEP 7 gives you fast access to detailed diagnostics information. Requirements ● A project has been created. ● The project has been downloaded to the CPU. ● An error has occurred. ●...
  • Page 20 Quick start 3.2 Using STEP 7 7. The "Go online" dialog opens. Figure 3-4 Establishing an online connection 8. Make the settings for the interface. Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 21 Quick start 3.2 Using STEP 7 9. Click on the "Go online" button. The project view of STEP 7 opens. The network view is opened in the work area. The symbols in the project tree provide initial information about the faulty modules. Figure 3-5 Display of the fault in the network view Diagnostics...
  • Page 22 Quick start 3.2 Using STEP 7 10.Double-click the device which displays an alarm message to access the faulty module directly. This is the CPU in the example. The device view of the CPU is opened in the work area. In this view you can see directly in which module the error has occurred.
  • Page 23 Quick start 3.2 Using STEP 7 Result The link in the "Details" table column takes you to the online and diagnostics view of the device and to the diagnostics buffer there, for example. This includes more information on all diagnostics events in the order in which they occurred. Figure 3-7 Diagnostics buffer with detailed error description Note...
  • Page 24: Setting And Determining System Diagnostics

    Alarms are provided on the display of the SIMATIC S7-1500 CPU, the CPU Web server and the HMI device. Alarms are enabled by default. If you do not want to receive alarms for system diagnostics on your display devices, you can disable the sending of alarms.
  • Page 25 2. Double-click the "System diagnostics settings" entry. You now have access to the alarm settings. System diagnostics is enabled by default. System diagnostics cannot be disabled for the use of a CPU from the SIMATIC S7-1500 product series. Figure 4-1 Properties of system diagnostics and alarm settings 3.
  • Page 26: Options For Displaying System Diagnostics

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Options for displaying system diagnostics Example This section includes a diagnostics example to show how system diagnostics is established with the help of different display options. The example includes a CPU from the SIMATIC S7-1500 product series that is connected to an ET 200S distributed I/O system and an HMI Comfort Panel via PROFINET.
  • Page 27: Diagnostics Information At The Devices

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.1 Diagnostics information at the devices 4.2.1.1 LEDs Overview All hardware components, such as CPUs, interface modules and modules, provide information about their operating mode as well as internal and external errors through their LEDs.
  • Page 28: Display Of The Cpu

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics CPU 1516-3 PN/DP IM 155-5 PN ST DI 32x24VDC HF PS 25W 24VDC ⑤ X1 P2 X1 P2 (two-colored LED: (single-colored LED: green/yellow) green) ⑥ X2 P1 (two-colored LED: green/yellow) Additional information The meaning of the individual LED displays, their different combinations and the remedial...
  • Page 29 SIMATIC S7-1500 CPU", see the documentation for the S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792). You can find detailed information on the individual options, a training course and a simulation of the available menu commands of the display for the CPU in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/getting- started_simatic-s7-1500/disp_tool/start_en.html).
  • Page 30: Diagnostics Information In Step 7

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.2 Diagnostics information in STEP 7 4.2.2.1 Explanation of diagnostics symbols Diagnostics symbols for modules and devices When the online connection to a device is established in STEP 7, the diagnostics status of the device and its lower-level components and, if applicable, the device operating mode are also determined.
  • Page 31 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Symbols for the comparison status The diagnostics symbols can be combined at the bottom right with additional smaller symbols that indicate the result of the online/offline comparison. The following table shows the possible comparison symbols and their meaning.
  • Page 32: Accessible Devices (Without Project)

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Event table The following information is displayed in the table for each diagnostics event: ● Sequential number of the entry The first entry contains the latest event. ● Date and time of the diagnostics event If no date and time are shown, the module has no integrated clock.
  • Page 33 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Procedure To display diagnostic information for specific devices even without an offline project, follow these steps: 1. Establish a connection to the respective CPU. 2. Select the command "Accessible devices" from the "Online" menu. The "Accessible devices"...
  • Page 34: Devices & Networks

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Result The device is displayed in the project tree. You open the diagnostic information in the work area with a double-click on "Online & Diagnostics". Information is available on the diagnostic status, cycle times, memory usage and the diagnostics buffer.
  • Page 35 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Procedure To get an overview of the current state of your automation system, follow these steps: 1. Open the "Network view" in the working area. 2. Select the CPU. 3.
  • Page 36 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Result The connected devices are now displayed with diagnostic information in the network view in the working area. Here you get an overview of the current state of your automation device. Figure 4-7 CPU with diagnostic information You get to the "Device view"...
  • Page 37: Online & Diagnostics

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.2.4 Online & diagnostics Online mode In online mode there is an online connection between your PG/PC and one or several devices. Depending on the properties of a device, you are offered specific diagnostics options and certain functions in online mode.
  • Page 38 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics To establish an online connection at least one PG/PC interface must be installed that is physically connected with a device, for example, with an Ethernet cable. The current online status of a device is indicated by a symbol to the right of the device in the project tree.
  • Page 39 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Procedure To display an overview of the faulty devices, follow these steps: 1. Select the affected device folder in the project tree. 2. Select the shortcut menu command "Online & Diagnostics". The online and diagnostics view of the module to be diagnosed is started.
  • Page 40: Diagnostics" Tab In The Inspector Window

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.2.5 "Diagnostics" tab in the Inspector window "Diagnostics" tab in the Inspector window The "Diagnostics" tab of the Inspector window includes information on diagnostics events and configured alarm events. Figure 4-10 Diagnostics in the Inspector window, "Device information"...
  • Page 41 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Subordinate "Connection information" tab The "Connection information" tab displays detailed diagnostics information for connections. There will only be information on the "Connection information" tab if there is an active online connection to at least one end point of the relevant connection.
  • Page 42 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Subordinate "Alarm display" tab System diagnostics alarms are output in the "Alarm display" tab. Figure 4-12 "Alarm display" tab To receive alarms in STEP 7, follow these steps: 1. Open the project view. 2.
  • Page 43: Cpu Diagnostics Buffer

    The CPU diagnostics buffer can be displayed on all display media (STEP 7, SIMATIC HMI devices, SIMATIC S7-1500 Web server and display of the CPU). Diagnostic events The entries available in the diagnostics buffer include: ●...
  • Page 44 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Procedure To display the diagnostics buffer of a CPU in STEP 7, follow these steps: 1. Select the respective CPU. 2. Select the shortcut menu command "Online & Diagnostics". The "Online access"...
  • Page 45 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4. Click 5. Select the area "Diagnostics buffer". Figure 4-15 Diagnostics buffer in STEP 7 Note Filtering events You can filter the entries in the diagnostics buffer in the settings of the "Diagnostics buffer"...
  • Page 46: Online Tools" Task Card

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Security events The following security events (event types) result in an entry in the diagnostics buffer. ● Going online with the correct or incorrect password ● Manipulated communications data detected ●...
  • Page 47 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics The "Online tools" task card provides an overview of the CPU state, the cycle time and the memory usage. ● The "CPU operator panel" pane displays the current state of some LEDs and the mode selector of a CPU.
  • Page 48: Configuring The Settings For I/O Modules In Step 7

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.2.8 Configuring the settings for I/O modules in STEP 7 You can also make settings for system diagnostics in STEP 7 for I/O modules. The parameters you have to configure depend on the I/O module. The settings are optional.
  • Page 49: Diagnostics Information Using The Web Server

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Additional information The documentation for the respective module includes additional information on parameter assignment of I/O modules. 4.2.3 Diagnostics information using the web server System diagnostics using the CPU Web server The CPUs of the SIMATIC series have an integrated Web server and let you display the system diagnostics information by means of PROFINET.
  • Page 50 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics The following diagnostics options are available with the integrated Web server: ● Start page with general CPU information ● Information on diagnostics ● Contents of the diagnostics buffer ● Module information ●...
  • Page 51 Entity certificate), "Public Key Infrastructure" (PKI) and certificate management can be found in the Communication function manual (https://support.industry.siemens.com/cs/ww/en/view/59192925) and in the online help for STEP 7, keyword "Secure communication". 7. Automatic updating is activated in the default setting of a configured CPU.
  • Page 52 "Download certificate". You can find instructions for installing the certificate in the help system of your Web browser and in the FAQ with the entry ID 103528224 at the Service&Support (https://support.industry.siemens.com/cs/ww/en/view/103528224) website. 5. Click the NEXT link to go to the Web server pages.
  • Page 53 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics "Diagnostics" option The "Diagnostics" web page provides more information about the tabs: ● Identification This tab contains the characteristics of the CPU (serial number, article number, hardware and firmware version, etc.). ●...
  • Page 54 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Diagnostics option "Diagnostics buffer" The browser displays the content of the diagnostics buffer on the "Diagnostics buffer" Web page. Figure 4-21 Web server, "Diagnostics buffer" Web page Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 55 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Diagnostics option "Module information" The status of a device is indicated by the Web browser with symbols and comments on the "Module information" Web page. Modules are displayed on the "Module information" Web page in the "Name" column with a link.
  • Page 56 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Diagnostics option "Communication" The "Communication" web page provides detailed information about the following tabs: ● Parameter A summary of the information on the PROFINET and Ethernet interfaces of the selected CPU is available in this tab.
  • Page 57 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics "Topology" diagnostics option The "Topology" Web page provides information on the topological configuration and status of the PROFINET devices in your PROFINET IO system. Figure 4-25 Web server, "Topology" Web page Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 58 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics "Motion Control Diagnostics" diagnostic option The Web server displays statuses, errors, technology alarms and the current values of the configured technology objects (TOs). The "Motion Control Diagnostics" web page provides detailed information on the configured technology objects in the following views: ●...
  • Page 59 Additional information on the topic is available in the Web server function manual (http://support.automation.siemens.com/WW/view/en/59193560). You can find additional information on the trace function in the Using the trace and logic analyzer function (https://support.industry.siemens.com/cs/ww/en/view/64897128) function manual. Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 60: Diagnostics Information Using The Hmi Diagnostics View

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.4 Diagnostics information using the HMI diagnostics view Objects for system diagnostics The full functionality of the HIM diagnostics view is only available with Comfort Panels and WinCC RT Advanced . Basic Panels do not support the complete range of system diagnostics functions.
  • Page 61: Configuring System Diagnostics

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.4.1 Configuring system diagnostics Introduction You add a system diagnostics view or a system diagnostics window to your project to get an overview of all devices available in your plant. The system diagnostics window behaves like the system diagnostics view but is only available in the global screen.
  • Page 62 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Procedure Proceed as follows to configure the system diagnostics: 1. Double-click the "System diagnostics view" object in the "Tools" task card. The object is added to the screen. Figure 4-28 Adding a system diagnostics view 2.
  • Page 63 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Result The system diagnostics view has been added to the screen. The diagnostics status of the entire plant is displayed in the system diagnostics view in WinCC Runtime. Figure 4-29 System diagnostics view in the screen The system diagnostics window has been added to the global screen.
  • Page 64: Different Views Of The Hmi Diagnostics View

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.4.2 Different views of the HMI diagnostics view Introduction There are three different views available in the system diagnostics view and the system diagnostics window. ● Device view ● Details view ●...
  • Page 65 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Details 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. Figure 4-31 Details view Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 66 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Distributed I/O view The distributed I/O view is only available for distributed I/O systems. The distributed I/O view shows the status of the devices of the PROFIBUS/PROFINET subnet. Each element in the view shows the device name, the device type and the IP address or the PROFIBUS address.
  • Page 67: Inserting System Diagnostics Indicator

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics 4.2.4.3 Inserting system diagnostics indicator Introduction The system diagnostics indicator is a predefined graphic symbol of the library which alerts you to errors in your plant. The library object shows two different states: ●...
  • Page 68 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Procedure 1. Select the "DiagnosticsIndicator" object in the library. 2. Drag-and-drop the library object to the position in the work area where you want to insert the object. The library object is added. Figure 4-33 Inserting library object in the work area 3.
  • Page 69: Configuring Button As System Diagnostics Indicator

    Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Result The system diagnostics indicator has been added to the project and connected with the system diagnostics window. The system diagnostics indicator changes its appearance if an error message is output in WinCC Runtime.
  • Page 70 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Procedure Follow these steps to configure a button as system diagnostics indicator: 1. Double-click the "Button" object in the "Tools" task card. A button is added to the screen. 2.
  • Page 71 Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Result You have configured an interface that reacts to error events from the CPU. The button changes when an error event occurs in Runtime. Figure 4-34 Configured button The button has two states. ●...
  • Page 72: System Diagnostics By Means Of The User Program

    System diagnostics by means of the user program Options of system diagnostics in the user program Introduction You can configure responses to diagnostics alarms in the user program. You can, for example, specify that your plant is stopped in case of specific diagnostics alarms. Instructions A vendor-independent structure of data records with diagnostics information applies.
  • Page 73 ● Diagnostic overview for SIMATIC S7-1200 and S7-1500 (https://support.industry.siemens.com/cs/ww/en/view/109752283) For more information about how to realize channel diagnostics in the user program of the SIMATIC S7-1500, refer to the FAQ with entry ID 109480387 on the Service&Support Website (https://support.industry.siemens.com/cs/ww/en/view/109480387). Diagnostics...
  • Page 74: System Diagnostics Using Process Image Inputs

    System diagnostics by means of the user program 5.2 System diagnostics using process image inputs System diagnostics using process image inputs Introduction In addition to event-driven system diagnostics, the input and output modules of the SIMATIC series provide diagnostics information using the process image input. The system diagnostics described in the preceding sections is made available asynchronously to the program processing.
  • Page 75 System diagnostics by means of the user program 5.2 System diagnostics using process image inputs Evaluation of the value status If you have enabled the value status for an I/O module, this module provides additional information on the value status in addition to the user data. This information is directly available in the process image input and can be called with simple binary operations.
  • Page 76 System diagnostics by means of the user program 5.2 System diagnostics using process image inputs Example - Evaluation of the value status for the input channel of an analog input module The example below shows the basic evaluation of the value status for the input channel of an analog input module in the user program.
  • Page 77: Alarms

    Alarms Introduction Alarms allow you to display events from processing in the automation system and to quickly detect errors, to precisely localize them and to remove them. Downtimes are significantly reduced in a plant. Before alarms can be output, they need to be configured. You can create, edit and compile event-dependent alarms along with their alarm texts and alarm attributes and display them on display devices.
  • Page 78: Creating Alarms With The "Program_Alarm" Instruction

    Alarms 6.1 Creating alarms with the "Program_Alarm" instruction Creating alarms with the "Program_Alarm" instruction "Program_Alarm" instruction You create a program alarm in STEP 7 with the "Program_Alarm" instruction. The figure below shows the "Program_Alarm" instruction with the most important input tags. ①...
  • Page 79: Editing Alarms In The Alarm Editor

    The associated values can be a maximum of 512 bytes in length. Text lists are not affected by this. The CPUs of the SIMATIC S7-1500 product series have the following memory for text lists: • CPU 1510-x to CPU 1513-x: 2.25 MB •...
  • Page 80 Alarms 6.2 Editing alarms in the alarm editor Editing alarms in the alarm editor You can edit alarm texts in the alarm editor and specify attributes such as alarm class or priority for the alarms. 1. Double-click "PLC supervisions & alarms" in the project tree. Select the "Alarms" tab. The alarm editor opens.
  • Page 81 Alarms 6.2 Editing alarms in the alarm editor Multilingual alarms You can have program alarms displayed in multiple languages by assigning different project languages to the interface languages of the display devices. Note The project languages you want to assign must be activated and the corresponding texts (translations) must be available in the project.
  • Page 82: Display Of Program Alarms

    Alarms 6.3 Display of program alarms Display of program alarms Program alarms you create with the "Program_Alarm" instruction are automatically made available to the display devices. You have the following options to display the alarms: ● STEP 7 ● HMI ●...
  • Page 83: Output Of The Alarm State With The "Get_Alarmstate" Instruction

    Alarms 6.4 Output of the alarm state with the "Get_AlarmState" instruction Output of the alarm state with the "Get_AlarmState" instruction "Get_AlarmState" instruction The "Get_AlarmState" instruction outputs the alarm state of a program alarm. The output of the alarm state always refers to a program alarm that was created using the "Program_Alarm"...
  • Page 84: Example Program For Program Alarms

    Alarms 6.5 Example program for program alarms Example program for program alarms 6.5.1 Task Introduction This section describes the basic configuration of program alarms with the "Program_Alarm" instruction based on two examples. The two examples solve the same problem but use a different approach.
  • Page 85: Example 1: Program Alarm Without Associated Values

    Alarms 6.5 Example program for program alarms 6.5.2 Example 1: Program alarm without associated values Introduction In this example, you create a program alarm for the maximum and the minimum fill level. How the example works When the maximum fill level is exceeded in the tank, a program alarm with the alarm text for the excessive fill level is output.
  • Page 86 Alarms 6.5 Example program for program alarms Create function block To create a function block, follow these steps: 1. Open the "Program blocks" folder in the project tree. 2. Double-click "Add new block". The "Add new block" dialog opens. 3. Select the button "Function block". Figure 6-7 Create FB 4.
  • Page 87 Alarms 6.5 Example program for program alarms Create program alarms To create the program alarm for the example program, follow these steps: 1. Select the created function block (FB) in the "Program blocks" folder in the project tree and double-click the function block to open it. 2.
  • Page 88 Alarms 6.5 Example program for program alarms Call function block To call the function block in the user program, follow these steps: 1. In the "Program blocks" folder, select the cycle OB (e.g., OB1) in which you want to call the function block and open the cycle OB with a double-click.
  • Page 89 Alarms 6.5 Example program for program alarms Edit alarm text To edit the alarm text, follow these steps: 1. Double-click "PLC supervisions & alarms" in the project tree. Select the "Alarms" tab. The alarm editor opens. 2. Select the type alarm for the maximum fill level. 3.
  • Page 90: Example 2: Program Alarm With Associated Value

    Alarms 6.5 Example program for program alarms 6.5.3 Example 2: Program alarm with associated value Introduction In this example, you create a shared program alarm for the maximum and the minimum fill level. The program alarm is given an associated value. The program alarm uses the associated value to access a text list entry and outputs a separate alarm text for the minimum and the maximum fill level.
  • Page 91 Alarms 6.5 Example program for program alarms Define tags for signal acquisition The following table shows the tags that are used in this example. Define these tags in the standard tag table. The standard tag table is available in the project tree under "PLC tags". Table 6- 2 Tags for fill level alarms Name...
  • Page 92 Alarms 6.5 Example program for program alarms Create function block To create a function block, follow these steps: 1. Open the "Program blocks" folder in the project tree. 2. Double-click "Add new block". The "Add new block" dialog opens. 3. Select the button "Function block". Figure 6-12 Create FB 4.
  • Page 93 Alarms 6.5 Example program for program alarms Create program alarm To create the program alarm for the example program, follow these steps: 1. Select the created function block (FB) in the "Program blocks" folder in the project tree. 2. Insert the call of the "Program_Alarm" instruction in the instruction part of the function block.
  • Page 94 Alarms 6.5 Example program for program alarms Call function block To call the function block in the user program, follow these steps: 1. In the "Program blocks" folder, select the cycle OB (e.g., OB1) in which you want to call the function block and open the cycle OB with a double-click.
  • Page 95 Alarms 6.5 Example program for program alarms Creating a text list To create the text list for the example program, follow these steps: 1. Double-click on the "Text lists" command in the program tree. The text list editor opens. 2. Double-click "<Add>" in the Text lists area. A new text list is added.
  • Page 96 Alarms 6.5 Example program for program alarms Edit alarm text To edit the alarm text for the example program, follow these steps: 1. Double-click "PLC supervisions & alarms" in the project tree. Select the "Alarms" tab. The alarm editor opens. 2.
  • Page 97: Displaying The Alarm

    Alarms 6.5 Example program for program alarms 6.5.4 Displaying the alarm Displaying the alarm in the Web server The figure below shows the display of the alarm in the Web server for both examples. Figure 6-18 Displaying the alarm in the Web server Displaying the alarm in STEP 7 Note Displaying alarms in STEP 7...
  • Page 98: Diagnostics Of The S7-1500R/H Redundant System

    Diagnostics of the S7-1500R/H redundant system S7-1500R/H diagnostics Diagnostics for a S7-1500R/H redundant system is basically the same as a standard S7- 1500. You have the following display options: ● Via STEP 7 ● Via HMI devices ● Via the display of the CPUs The CPUs provide information about their operating states as well as internal and external errors through their LEDs.
  • Page 99 Diagnostics of the S7-1500R/H redundant system Diagnostics view in STEP 7 in dependence on the online connection and system states The diagnostics view for S7-1500R/H redundant systems is partly dependent on: ● Which of the two CPUs the programming device / PC currently has a connection to ●...
  • Page 100 Diagnostics of the S7-1500R/H redundant system Accessible devices As for standard S7-1500 systems, the following can be displayed in STEP 7: ● All devices accessible from programming device/PC ● The diagnostics information of devices of a redundant system, for example, from the R/H CPUs The procedure is described in the section Accessible devices (without project) (Page 31).
  • Page 101: Online And Diagnostics View

    Diagnostics of the S7-1500R/H redundant system 7.1 Online and Diagnostics view Online and Diagnostics view Introduction You open the Online and Diagnostics view for the redundant system or for each CPU of the redundant system. Online & diagnostics for the redundant system "Online access": For the S7-1500R/H redundant system, it is displayed whether an online connection exists between the programming device/PC and a CPU.
  • Page 102 Diagnostics of the S7-1500R/H redundant system 7.1 Online and Diagnostics view "Diagnostics": "Diagnostics" provides an overview for the redundant system about the: ● System state ● Pairing state ● Operating states of the CPU ● Status of which CPU is the primary CPU and which CPU is the backup CPU Figure 7-2 Online and Diagnostics view: Diagnostics status of the S7-1500R/H system Diagnostics...
  • Page 103 You select the CPU for display of the online data in the project tree. Figure 7-3 Online and Diagnostics view: CPU (RUN-Redundant system state) Reference You can find information on the operating and system states in the Redundant System S7- 1500R/H System Manual (https://support.industry.siemens.com/cs/ww/en/view/109754833). Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 104: Online Tools" Task Card

    Diagnostics of the S7-1500R/H redundant system 7.2 "Online Tools" task card "Online Tools" task card Introduction If an online connection exists to a CPU of the redundant system, the "Online Tools" task card displays online information for the redundant system. For a S7-1500R/H redundant system, "Online Tools"...
  • Page 105 Diagnostics of the S7-1500R/H redundant system 7.2 "Online Tools" task card Example The following figure shows an example of the "Online Tools" task card for the RUN-Solo system state. The primary CPU is in RUN operating state, the backup CPU in STOP operating state.
  • Page 106 The display corresponds to the representation for standard CPUs. Figure 7-5 "Online Tools" task card: Cycle time and memory of the primary CPU Reference You can find information on the operating and system states in the Redundant System S7-1500R/H System Manual (https://support.industry.siemens.com/cs/ww/en/view/109754833). Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 107: Diagnostics View In The Project Tree And In The Device View And Network View

    Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view Diagnostics view in the project tree and in the device view and network view Additional icons for redundant systems in the project tree Table 7- 2 Icons for redundant systems in the project tree of STEP 7 Icon in the project...
  • Page 108 Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view View of the system in the project tree The system is in RUN-Solo system state . PLC_1 is in RUN operating state , PLC_2 is in STOP operating state Because the system is in RUN-Solo system state, the following is displayed:...
  • Page 109 Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view Network view of the system The network view shows no faults for the H-CPUs or the IO device. Maintenance demanded in lower-level component indicated for the system, since the system is not in the RUN-Redundant system state.
  • Page 110 Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view Device view of the system In the device view, you see the operating states of the CPUs based on the icons above PLC_1: ●...
  • Page 111 Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view Alarm display of the system As in the RUN-Solo system state, the alarms of the CPU for which there is an online connection are displayed via the "Alarm display"...
  • Page 112: Diagnostics In The Run-Redundant System State

    Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state Diagnostics in the RUN-Redundant system state Diagnostics view in redundant mode Primary CPU and backup CPU are each in the RUN-Redundant operating state. In the RUN-Redundant system state, the primary and backup CPU display the online data of the redundant system irrespective of which of the two CPUs the online connection has been made.
  • Page 113 S7-1500H. You can find information on the redundancy scenarios in the Redundant System S7-1500R/H System Manual (https://support.industry.siemens.com/cs/ww/en/view/109754833). Special examples of a redundant system S7-1500H are shown below: S7-1500H Example 1: The PROFINET ring between the CPU of the redundant S7-1500H system and an IO device was interrupted.
  • Page 114 Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state Diagnostics in STEP 7 The diagnostics buffer of the CPU displays that the PROFINET ring is open. The diagnostics in the project tree shows: ● Maintenance demanded in lower-level component in the S7-1500H system ●...
  • Page 115 Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state Diagnostics in STEP 7 The diagnostics buffer of the CPU displays: ● that there is only one redundancy connection ● which synchronization module has failed on which CPU The diagnostics in the project tree shows: ●...
  • Page 116 Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state Evaluate diagnostics on the display For example 2, display of the PLC_2 CPU shows: ● In the "Overview" menu command: A message is available in the next lower level page. ●...
  • Page 117 Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state Diagnostics in STEP 7 The diagnostics buffer of the CPU displays: ● that there is only one redundancy connection ● Fiber-optic error with specification of the CPU and the synchronization module The diagnostics in the project tree shows: ●...
  • Page 118: Restrictions In The Run-Solo System State

    Diagnostics of the S7-1500R/H redundant system 7.5 Restrictions in the RUN-Solo system state Restrictions in the RUN-Solo system state The primary CPU is in RUN operating state. The Backup CPU is in STOP operating state, is switched off, defective, or not available. Restrictions in the RUN-Solo system state The primary CPU records the diagnostics states of the distributed I/O.
  • Page 119: System Diagnostics By Means Of The User Program

    The following instruction for diagnostics cannot be used for S7-1500R/H redundant systems: ● DPNRM_DG: Read diagnostics data from a DP slave Organization blocks You can find the description of the applicable OBs for S7-1500R/H in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual. Diagnostics Function Manual, 11/2019, A5E03735838-AF...
  • Page 120: Glossary

    Glossary Alarm An message sent to the operator due to events or states of the system. Backup CPU Role of a CPU in the S7-1500R/H redundant system. If the R/H system is in RUN-Redundant system state, the primary CPU controls the process. The backup CPU processes the user program synchronously and can take over the process control if the primary CPU fails.
  • Page 121 Glossary HMI device Human Machine Interface, device for visualization and control of automation processes. HMI diagnostics view (WinCC) The HMI diagnostics view is an object in WinCC. The HMI diagnostics view can only be used with Comfort Panels and WinCC Advanced RT. I/O module Device of the distributed I/O that is used as interface between the controller and the process.
  • Page 122 Glossary PROFINET PROcess FIeld NETwork, open industrial Ethernet standard which further develops PROFIBUS and industrial Ethernet. A cross-manufacturer communication, automation, and engineering model defined by PROFIBUS International e.V., as an automation standard. Redundant systems Redundant systems are identified by the fact that important automation components are available in multiple units (redundant).
  • Page 123 Glossary Topology Structure of a network. Common structures include: ● Linear bus topology ● Ring topology ● Star topology ● Tree topology User program In SIMATIC, a distinction is made between user programs and the firmware of the CPU. The user program contains all instructions, declarations and data by which a plant or process can be controlled.
  • Page 124: Index

    Index " "Diagnostics" tab FAQs Alarm display, 39 Download certificate, 51 Connection information, 39 Implementing channel diagnostics in the user Device information, 39 program, 72 Inspector window, 39 Accessible devices System diagnostics view, 59 Diagnostics status, 31 System diagnostics window, 59 Offline project, 31 HMI diagnostics view S7-1500R/H, 99...
  • Page 125 Index Online view, 45 System diagnostics indicator S7-1500R/H, 103 Button as system diagnostics indicator, 68 Task card, 45 Inserting, 66 System diagnostics window, 66 System diagnostics view, 59 Configuring, 60 System diagnostics indicator, 66 Primary CPU, 102, 117 System diagnostics window, 59 Process image inputs, 73 Configuring, 60 Quality Information, 73...

Table of Contents