Technical data

Diagnostics
23.9 Program Measures for Handling Errors
Programming with STEP 7
506 Manual, 05/2010, A5E02789666-01
Local Data of Error OB81
The following table shows the temporary variables that must be declared, in this case, in the
variable declaration table of OB81.
The symbol Battery error (BOOL) must be identified as an output (for example, Q 4.0) so that other
parts of the program can access these data.
Decl. Name Type Description
TEMP OB81EVCLASS BYTE Error class/error identifier 39xx
TEMP OB81FLTID BYTE Error code:
b#16#21 =
At least one backup battery of the CPU is exhausted
1)
b#16#22 =
No backup voltage in the CPU
b#16#23 =
Failure of the 24-V power supply in
the CPU
1
b#16#31 =
At least one backup battery of an expansion rack is
exhausted
1)
b#16#32 =
Backup voltage not present in an expansion rack
1
b#16#33 =
Failure of the 24-V power supply of an expansion rack
1)
TEMP OB81PRIORITY BYTE Priority class = 26/28
TEMP OB81OBNUMBR BYTE 81 = OB81
TEMP OB81RESERVED1 BYTE Reserved
TEMP OB81RESERVED2 BYTE Reserved
TEMP OB81_RACK_CPU WORD Bits 0 to 7: B#16#00
Bits 8 to 15: on a standard CPU: B#16#00, on an H CPU:
bits 8 to 10 rack number, bit 11: 0=reserve CPU,
1=master-CPU, bits 12 to 15: 1111
TEMP OB81RESERVED3 BYTE Only relevant for error codes B#16#31, B#16#32,
B#16#33
TEMP OB81RESERVED4 BYTE
TEMP OB81RESERVED5 BYTE
TEMP OB81RESERVED6 BYTE
TEMP OB81DATETIME DATE_AND_TIME Date and time at which the OB was started
1)
= Not with the S7-300.