show the entry list
STEP 7 -- Creating S7 programs -- Configuring monitoring
How can you check the function standard blocks in SIMATIC STEP 7 V11?
How can you detect a change in the S7 user program in STEP 7 V5.5?
Which organization blocks do you need for error handling?
How do you activate process monitoring in the Symbol Editor?
What is the difference between a signal edge evaluation and an RLO edge evaluation?
Information about the topic of "Configuring monitoring"
PROFIBUS general -- Operation and maintenance -- Diagnosing errors
Which diagnostic messages of the DP slave can you read out on a CP342-5 as DP master?
What settings do you make in the Amprolyzer V3.2 to record the messages of a PROFIBUS network and trigger recording on the occurrence of a PROFIBUS event?
With the S7-1200, how do you read out the diagnostics data of a PROFIBUS DP slave with the "DPNRM_DG" instruction and how do you evaluate the data in the user program?
Additional diagnostics address when using DPV1
System requirements for the BT200 log kit
Which organization blocks do you need for error handling?
Questions and answers about Amprolyzer V3.0
PROFIBUS bus monitor AMPROLYZER doesn't run under WIN 98
Testing the availability of a slave with the BT200
Question and Answers on Amprolyzer V3.1
PROFIBUS wiring test BT 200 V2 (MLFB 6ES7181-0AA01-0AA0)
How do you read out the diagnosis data of a PROFIBUS DP slave with the SFC13 "DPNRM_DG" and how do you evaluate the data in the user program?
Report "MS Excel is required" while opening the Amprolyzer
Why is the Diagnostics Repeater recognized in "Accessible Nodes", but not in the Online Hardware?
Commissioning a non-functioning DP master system
Diagnostics tools for commissioning the PROFIBUS DP network
Which organization blocks do you have to load into the CPU to ensure that the CPU does not go into the "STOP" status when a remote I/O fails?
No online connection with STEP 7 after closing Amprolyzer
PROFINET general -- Operation and maintenance -- Diagnosing errors
Why do I get an error when calling the FB79 on a PROFINET IO system despite correct parameterization of the Vision Sensor V130-2?
PROFInet messages in the S7 diagnostics buffer (IE/PB Link)
Which organization blocks do you need for error handling?
Which organization blocks do you have to load into the CPU to ensure that the CPU does not go into the "STOP" status when a remote I/O fails?
Diagnostics of PROFINET devices
S7-300 CPU 31x -- Operation and maintenance -- Diagnosing errors
When the CPU starts up how can you identify a previous stop event and process it in the program (even after an overall reset)?
Which organization blocks do you have to load into the CPU to ensure that the CPU does not go into the "STOP" status when a remote I/O fails?
What should you do upon display of the error message 33:8580 "MMC defective"
With MMC (Micro Memory Card) slotted, why does the STOP LED blink on the SIMATIC S7-300 CPU?
Which organization blocks do you need for error handling?
How do you find out the status of the stations of a DP master system or of a PROFINET IO system?
Why are devices not correctly displayed in the topology view of the web server?
Capturing module and diagnostics data of the automation system
CPU switches to STOP when a PG/PC goes online via PROFIBUS
How do you get an overview of the SIMATIC automation system and what solutions are there for undesired operating states?
What do you have to do if the SIMATIC S7-300 CPU no longer goes into RUN mode after adding a CP or FM module?
Why does the EXTF LED light continuously on a CPU 300 (V1.0.0)/CPU 400 (V1.1.0) after occurrence of a diagnostics alarm?
Which information is entered in the diagnostic buffer of the SIMATIC S7 CPU in STEP 7 V5.x?
Memory reset request by the CPU
Why does the "SF DP" LED light on the CPU 315-2 DP (6ES7 315-2AF0x-0AB0; x = 0,1,2) although no DP configuration has been loaded into the CPU?
Why does the CPU remain in STOP after voltage recovery following complete loss of voltage for the entire system?
Why does the LED BF2 light with PROFINET CPUs S7-315/317-2PN/DP V2.3 even though no bus fault can be determined?
Why does my SIMATIC S7-300 CPU go into STOP with error 16#4548 "Stop by I/O administration"?
How can you avoid diagnostics problems when implementing dummy module DM 370?
S7-400 CPU 41x -- Operation and maintenance -- Diagnosing errors
Which organization blocks do you have to load into the CPU to ensure that the CPU does not go into the "STOP" status when a remote I/O fails?
How can you recognize whether an I/O access error occurs several times from the error code in the OB122?
Battery error with the S7-400: OB81 is not called
Which organization blocks do you need for error handling?
How do you find out the status of the stations of a DP master system or of a PROFINET IO system?
Capturing module and diagnostics data of the automation system
CPU switches to STOP when a PG/PC goes online via PROFIBUS
Why after power off/on or after return of a DP standard slave does the EXTF LED on the CPU 300/400 remain on and doesn't go out?
When the CPU starts up how can you identify a previous stop event and process it in the program (even after an overall reset)?
Why won't the IM and/or the CP with a CPU S7-400 go into RUN mode when the event ID 530D appears in the diagnostics buffer?
Why does the CPU remain in STOP after voltage recovery following complete loss of voltage for the entire system?
What should you watch out for when using the blocks SFC 17 "ALARM_SQ", SFC 18 "ALARM_S", SFC 107 "ALARM_DQ" and SFC 108 "ALARM_D"?
What should you watch out for when you use the SFC20 "BLKMOV", SFC81 "UBLKMOV" or SFC21 "FILL" blocks?
Which organization blocks do you need for error handling?
Part number:

Description
The S7-CPU modules are able to recognize the following types of error:

  1. Synchronous errors
    These errors are triggered by a specific operation during processing and can be assigned to a specific part of the user program.
  2. Asynchronous errors
    These errors cannot be assigned directly to the processing user program. These are priority class errors or errors in the automation system (module defects) or redundancy errors.

The table below gives you an overview of the organization blocks (OBs) that are called and processed when asynchronous and synchronous errors occur. If the relevant OB is not loaded, the CPU goes into the STOP state (exceptions: OBs 70, 72, 73 and 81). 

Übersicht_Organisationsbausteine.pdf ( 8 KB )

Which error OBs are enabled in your CPU and which you can thus insert in a STEP 7 project is given in the Properties of your CPU in the "Interrupts" tab.


Fig. 01

The Hardware Configuration provides a convenient alternative to manually incorporating error OBs via the menu command "Options > Report System Error...".

Note on using error OBs
You should program error handling for reliable and error-free plant operation or at least program that a message is generated in case of an error, because you must take into account that the CPU might no longer go into "STOP" and thus dangerous plant statuses might remain unnoticed.

Notes

  • OB 70 and OB 72 are supported only by H CPUs. 
  • OB 73 is available only for CPU 417-4H V2.0.X.
  • More information about individual error OBs is available in the STEP 7 Online Help under
    • "Change in the error evaluation in the OB 122 with series 400 CPUs" - Entry ID: 5708202.
    • Keyword "Generated error OBs".
    • Keyword "Settings for reporting system errors".
  • The following entry gives you information about which OBs have to be loaded in the CPU to ensure that the CPU does not go into the "STOP" status when a remote IO fails: 19350076.

Example of a power supply failure
The operating system of the CPU calls the OB81 when an event occurs that is triggered by a power supply failure (only in S7-400) or buffering fault. After clearing the error the OB81 is called again. If there is a battery fault in the S7-400 the OB81 is called only if battery checking is activated with the BATT.INDIC switch. If OB 81 is not programmed, the CPU does not go into STOP mode. If the OB81 is not available, the CPU continues running if there is a power supply failure.

In the sample program the temporary variable "OB81_FLT_ID" from OB81 is evaluated to determine a battery failure. In this example the variable has the error code "22hex". If the condition is fulfilled in a comparative query (battery failure), the marker M81.1 is addressed. Two event classes can be recognized with the "OB81_EV_CLASS" variable:

  • B#16#39: incoming event, battery has failed.
  • B#16#38: outgoing event, battery failure has been cleared.

Evaluation of these variables sets and resets the marker M81.0.


Fig. 02

The marker M81.0 is set if the markers M81.1 and M81.2 have the signal status "TRUE" (in the case of power failure and incoming event). The marker M81.0 is reset when the query of the ID is an outgoing event. The example described above is for the case when the battery failure occurs when the CPU is running. If the battery failure occurs in the STOP operating mode, the incoming event (call of OB81) is triggered only when the CPU goes into RUN mode again. If the power supply is switched off, the incoming event (battery failure) is not triggered.

Further information
Detailed information about programming the error OBs is also available in the STEP 7 Online Help or in the manual "System Software for S7-300/400 System and Standard Functions" in Entry ID: 1214574.

Keywords
OB80, OB81, OB82, OB83, OB84, OB85, OB86, OB87, OB121, OB122

 

 Entry ID:11499205   Date:2011-06-06 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour