×
Siemens Industry Online Support
Siemens AG
Type de contribution : Exemple d’application ID de la contribution : 98210758, Date de la contribution : 18/03/2019
(36)
Évaluer

Diagnostics in User Program with S7-1500

  • Contribution
  • Concerne le/les produits(s)
The diagnostics of devices, modules and networks play an ever-increasing role in automation technology. By diagnosing with a user program, faulty modules can be detected. This enables you to also program responses to diagnostic messages.

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.
  Documentation (2,4 MB)
 Registrierung notwendig  Project for STEP 7 V14 SP1 (4,6 MB)
 Registrierung notwendig  Project for STEP 7 and WinCC Advanced V15.1 (4,4 MB)
 Registrierung notwendig  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.
  Documentation (3,9 MB)
 Registrierung notwendig  STEP 7 Project (V13) (7,8 MB)
 Registrierung notwendig  Device configuration as file for TIA Selection Tool (10,7 KB)

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
  
Upgrade to TIA Portal V15.1


Notes relatives à la sécurité
La protection des installations, systèmes, machines et réseaux contre les cyber-menaces nécessite la réalisation (et le maintien continu) d'un concept global de sécurité IT à la pointe de la technique. Les produits et solutions Siemens ne constituent qu'un élément d'un tel concept. Pour plus d’informations sur la cyber-sécurité, rendez-vous sur
https://www.siemens.com/cybersecurity#Ouraspiration.
Aide pour la statistique
Cette fonction permet de délivrer les identifiants des résultats de la recherche selon la quantité souhaitée (format .txt).

Générer une liste
Copier l'URL
Afficher cette page dans le nouveau design
Poste de commande mySupport