Diagnostics in User Program with S7-1500
-
Entry
-
Associated product(s)
All SIMATIC products have integrated diagnostic functions that allow you to detect and clear faults. The components automatically report a fault during operation and provide additional detailed information. Plant-wide diagnostics can minimize unscheduled downtimes.
This application example describes how to monitor a PROFINET IO system and a PROFIBUS DP master system with different devices in the user program. The devices are connected to an S7-1500 controller via PROFINET IO / PROFIBUS DP. The devices detect faults on their modules and send the diagnostic data to the assigned controller. The controller evaluates this diagnostic information with the diagnostic instructions in the user program and saves it to a global data block. The operator panel graphically displays the evaluated diagnostic information in one view per IO system or in a device view.
It considers the following states:
- State OK
- State FAULTY
- State LOST CONNECTION
- State DEACTIVATED
- State PROBLEM / MAINTENANCE
- State WAS FAULTY
- State HAD LOST CONNECTION
- State WAS DEACTIVATED
- State WAS PROBLEM / MAINTENANCE
Note
If diagnostic information is only displayed on different visual display devices and not used in the user program, it is recommended to use the S7-1500 controllers’ integrated system diagnostics. For more information about integrated system diagnostics, please refer to the following application example:
Application - System Diagnostics with S7-1500 and TIA Portal
The following screen shows the most important components of the solution with an S7-1500:

Documentation and example project for diagnostics in the user program
This example shows the diagnosis of a PROFINET IO and a PROFIBUS DP system in the user program with up to 128 devices. The visualization of the diagnostic information is displayed on an operator panel.
Project for STEP 7 and WinCC Advanced V15.1 (4,4 MB)
Project for STEP 7 and WinCC Professional V15.1 (4,2 MB)
Documentation and example project for use of alarm instructions in the TIA Portal
This example shows the use of the alarm instructions "Program_Alarm, Get_AlarmState, Gen_UsrMsg" in the user program.
Further Information
Application - Diagnostics in User Program with S7-1200
Application - System Diagnostics with S7-1500 and TIA Portal
Application - Configuration of Messages and Alarms in WinCC (TIA Portal)
Application - Creating and using user-defined web pages on S7-1500
Last Changes
HMI: Reset of "ioSlot Diagnostics Loaded"
- German
- Spanish
- Italian
- Chinese
Entry belongs to product tree folder(s):
- Drive Technology Selection and engineering tools Startdrive Commissioning Software
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Basic Controller S7-1200 Accessories
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Advanced Controller S7-1500 CPUs Standard-CPUs
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Advanced Controller S7-1500 CPUs Failsafe CPUs
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Advanced Controller S7-1500 Power Supply load power supplies
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Advanced Controller S7-1500 Accessories Mounting Rail
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Advanced Controller S7-1500 Accessories Memory Cards
- Automation Technology Industry software Automation software TIA Portal PLC programming STEP 7 Professional (TIA Portal)
- Automation Technology Industry software Automation software TIA Portal Visualization SIMATIC WinCC (TIA Portal) SIMATIC WinCC (TIA Portal) Engineering
- Automation Technology Industrial Communication Industrial Ethernet Cabling Technology IE TP Cord
- Automation Technology Power supplies Power supply SITOP SIMATIC-Design power supplies
- Automation Technology Products for specific requirements Automatision technology for extreme conditions SIPLUS extreme Industrial Automation Systems Controllers SIPLUS Advanced Controller SIPLUS S7-1500 SIPLUS Central Processing Units SIPLUS Standard CPUs
- Automation Technology Products for specific requirements Automatision technology for extreme conditions Operator Control and Monitoring Systems SIPLUS Operator Control and Monitoring Devices SIPLUS Comfort Panels
- Building Technologies Building Control – GAMMA instabus Control and Automation Devices Programmable logic controllers
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Advanced Controller S7-1500 CPUs Compact CPUs
- Automation Technology Automation Systems Industrial Automation Systems SIMATIC PLC Advanced Controller S7-1500 CPUs Technology CPUs
- Automation Technology Operator control and monitoring systems Operator devices Advanced HMI Panel-based Comfort Panels Comfort Panels Standard
- You have a technical question / problem: Ask the Technical Support
- You want to discuss in our forum and exchange experiences with other users
- You want to create CAx data for one or more products
- You would like to send us feedback on this Entry
- TIA Portal - An Overview of the Most Important Documents and Links - Visualization
- SIMATIC Technology - Motion Control: Overview and Important Links
- PROFINET - An Overview of the Most Important Documents and Links
- Machine-oriented operator control and monitoring in the Online Support
- TIA Portal - An Overview of the Most Important Documents and Links - Communication