Technical data
Diagnostics
23.9 Program Measures for Handling Errors
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 505
Example of Using Error OB81
Using the local data (start information) of the error OB, you can evaluate the type of error that has
occurred.
If, for example, the CPU detects a battery error, the operating system calls OB81 (see figure).
You can write a program that evaluates the event code triggered by the OB81 call. You can also
write a program that brings about a reaction, such as activating an output connected to a lamp on
the operator station.