Step 7 Fehlercode OB80

DieBoese0815

Level-1
Beiträge
104
Reaktionspunkte
5
Zuviel Werbung?
-> Hier kostenlos registrieren
Hallo zusammen,

kann mir bitte jemand erklären was sich hinter folgenden OB80 Fehlercodes verbirgt:


  • OB80_ERR_EV_CLASS (Klasse des Ereignisses, das den Alarm ausgelöst hat) - ist bei mir 17
  • OB80_ERR_EV_NUM (Nummer des Ereignisses, das den Alarm ausgelöst hat) - ist bei mir 3

Mit den restlichen Informationen die man aus dem OB80 bekommt kann ich etwas anfangen, d.h. ich weiß dass der OB1 eine Zykluszeitüberschreitung (20ms) gehabt hat und die Prio 1 besitzt. Jetzt würde mich natürlich noch interessieren was den guten OB1 denn abgebremst hat, d.h. hier denke ich dass die o.g. beiden Teilinformationen hier einen Hinweis geben könnten, sofern man sie entschlüsseln kann... (Google und STEP7 online Hilfe sind da keine große Hilfe :roll:)
 
siehe Referenzhandbuch, System- und Standardfunktionen für S7-300/400

1.16 Zeitfehler-OB (OB 80)
Beschreibung

Das Betriebssystem der CPU ruft den OB 80 auf, wenn bei der Bearbeitung eines
OB einer der folgenden Fehler auftritt: Überschreiten der Zykluszeit,
Quittierungsfehler bei der Bearbeitung eines OB, Vorstellen der Uhrzeit
(Uhrzeitsprung) zum Starten eines OB, Wiedereintritt in RUN nach CiR. Tritt
beispielsweise ein Startereignis für einen Weckalarm-OB auf, bevor die vorherige
Bearbeitung desselben OB beendet ist, dann ruft das Betriebssystem den OB 80
auf.
Wurde der OB 80 nicht programmiert, dann wechselt die CPU in den
Betriebszustand STOP.
Sie können den Zeitfehler-OB mit Hilfe der SFCs 39 bis 42 sperren bzw. verzögern
und wieder freigeben.
Hinweis
Wenn der OB 80 in demselben Zyklus zweimal aufgrund der Zykluszeitüberschreitung
aufgerufen wird, geht die CPU in STOP. Sie können dies durch Aufruf
der SFC43 "RE_TRIGR" an geeigneter Stelle verhindern.

Weiteres kannst dem Handbuch entnehmen ...
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Hallo Boxy,

danke, das trifft jedoch nicht den Kern meiner Frage - soviel habe ich im Handbuch etc. auch gelesen.
Ich will explizit wissen was bedeutet die OB80 Fehlerklasse 17 und ist die OB80 Ereignisnummer 3 (es wird ja auch noch andere Klassen und Ereignisse geben beim OB80).
Der Rest außen herum findet sich in der Online-Hilfe, OB-80 Beschreibung und bei Hans Berger in der Bibel...
 
Hallo DieBoese0815,

ich habe das gleiche Problem wie du vor neun Jahren und finde ebenfalls nichts dazu in den üblichen Dokumentation und im Internet. Hast du damals eine Liste gefunden, die die Fehlerklasse und Ereignisnummer beim OB80 aufschlüsseln? Bei mir ist es übrigens OB80_ERR_EV_CLASS 16#11 (=17 dez) und OB80_ERR_EV_NUM 16#3F (= 63 dez).
 
Ich hab dazu mal die Siemens-Intelligenz befragt:

The error class 16#11 for OB80_ERR_EV_CLASS indicates a specific type of error event that is associated with the operating system of the Siemens PLC.

Here is an overview of the possible error event classes for OB80:

  • 16#10: Time error (delay)
  • 16#11: Time error (jitter)
  • 16#12: Time error (execution time too long)
For 16#11 specifically, it indicates a "Time error (jitter)." This error occurs when there is a deviation in the expected timing of a cyclic interrupt or other time-critical operations, causing the actual execution time to vary from the scheduled time.

For further details, you can refer to the SIMATIC STEP 7 Basic/Professional V18 and SIMATIC WinCC V18: Priority class error organization block (OB 85) document.

The error number 16#3F for OB80_ERR_EV_NUM indicates a specific error event associated with the OB80 (Cycle time exceeded) in Siemens PLC systems. Here is a detailed explanation:

OB80_ERR_EV_NUM 16#3F: Cycle time exceeded​

This error code means that the cycle time for the PLC has been exceeded. This typically occurs when the time taken to execute a single cycle of the user program exceeds the configured maximum cycle time. When this happens, the operating system triggers OB80 to handle the error.

OB80 is designed to manage situations where the cycle time is exceeded, allowing the system to take corrective actions or log the error for further analysis.

Additional Context from Event Class 3 - Synchronous Errors​

According to the provided sources, the cycle time exceeded error falls under the event ID W#16#3501:

<span>&lt;<span>table</span>&gt;</span><br> <span>&lt;<span>tr</span>&gt;</span><br> <span>&lt;<span>th</span>&gt;</span>Event ID<span>&lt;/<span>th</span>&gt;</span><br> <span>&lt;<span>th</span>&gt;</span>Event<span>&lt;/<span>th</span>&gt;</span><br> <span>&lt;<span>th</span>&gt;</span>OB<span>&lt;/<span>th</span>&gt;</span><br> <span>&lt;/<span>tr</span>&gt;</span><br> <span>&lt;<span>tr</span>&gt;</span><br> <span>&lt;<span>td</span>&gt;</span>W#16#3501<span>&lt;/<span>td</span>&gt;</span><br> <span>&lt;<span>td</span>&gt;</span>Cycle time exceeded<span>&lt;/<span>td</span>&gt;</span><br> <span>&lt;<span>td</span>&gt;</span>OB 80<span>&lt;/<span>td</span>&gt;</span><br> <span>&lt;/<span>tr</span>&gt;</span><br><span>&lt;/<span>table</span>&gt;</span><br>

Recommendations:​

  1. Optimize Program Execution: Review the user program to identify and optimize any long-running operations or loops that might be causing the cycle time to exceed.
  2. Increase Cycle Time: If possible, adjust the maximum cycle time configuration to accommodate the program's execution requirements.
  3. Error Logging: Ensure proper logging within OB80 to capture details about when and why the cycle time is being exceeded for further analysis.
For more details, you can refer to the SIMATIC STEP 7 Basic/Professional V18 and SIMATIC WinCC V18 documentation.
 
Zurück
Oben