Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
31 views2 pages

4.1 Battery Fault Detection

Uploaded by

Linda Canaliaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views2 pages

4.1 Battery Fault Detection

Uploaded by

Linda Canaliaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Organization Blocks

1.17 Power Supply Error Organization Block (OB81)

1.17 Power Supply Error Organization Block (OB81)

Description
The operating system of the CPU calls OB81 whenever an event occurs that is triggered by an
error or fault related to the power supply (only on an S7-400) or the back-up battery (when entering
and when outgoing event).
In S7-400, OB81 is only called in the event of a battery fault if the battery test function has been
activated with the BATT.INDIC switch.
The CPU does not change to the STOP mode if OB81 is not programmed.
You can disable or delay and re-enable the power supply error OB using SFCs 39 to 42.

Local Data for the Power Supply Error OB


The following table describes the temporary (TEMP) variables for the power supply error OB. The
variable names are the default names of OB81.

Variable Type Description


OB81_EV_CLASS BYTE Event class and identifiers:
B#16#38: outgoing event
B#16#39: incoming event
OB81_FLT_ID BYTE Error code: (possible values)
B#16#21, B#16#22, B#16#23, B#16#25, B#16#26, B#16#27,
B#16#31, B#16#32, B#16#33)
OB81_PRIORITY BYTE Priority class; can be assigned via STEP 7 (hardware
configuration)
For example, possible values for the RUN mode: 2-26
OB81_OB_NUMBR BYTE OB number (81)
OB81_RESERVED_1 BYTE Reserved
OB81_RESERVED_2 BYTE Reserved
OB81_RACK_CPU WORD • Bits 0 to 7: B#16#00
• Bits 8 to 15:
- For a standard CPU: B#16#00
- For a H-CPU: Bits 8 to 10: Rack no., Bit 11:
0=Reserve CPU, 1=Master CPU, Bits 12 to 15: 1111
OB81_RESERVED_3 BYTE Relevant only for error codes B#16#31, B#16#32 and
B#16#33
OB81_RESERVED_4 BYTE Relevant only for error codes B#16#31, B#16#32 and
B#16#33
OB81_RESERVED_5 BYTE Relevant only for error codes B#16#31, B#16#32 and
B#16#33
OB81_RESERVED_6 BYTE Relevant only for error codes B#16#31, B#16#32 and
B#16#33
OB81_DATE_TIME DATE_AND_TIME DATE_AND_TIME of day when the OB was called

System Software for S7-300/400 System and Standard Functions - Volume 1/2
Reference Manual, 04/2017, A5E41675609-AA 49
Organization Blocks
1.17 Power Supply Error Organization Block (OB81)

The variables OB81_RESERVED_i, 3 ≤ i ≤ 6 indicate the expansion racks on which the battery
backup (error code B#16#31), the back-up voltage (error code B#16#32) or the 24-V power supply
(error code B#16#33) has failed or returned. The following table shows what bit is assigned to
which expansion rack in the variables OB81_RESERVED_i, 3 ≤ i ≤ 6.

OB81_RESERVED_6 OB81_RESERVED_5 OB81_RESERVED_4 OB81_RESERVED_3


Bit 0 Reserved 8th expansion rack 16th expansion rack Reserved
Bit 1 1st expansion rack 9th expansion rack 17th expansion rack Reserved
Bit 2 2nd expansion rack 10th expansion rack 18th expansion rack Reserved
Bit 3 3rd expansion rack 11th expansion rack 19th expansion rack Reserved
Bit 4 4th expansion rack 12th expansion rack 20th expansion rack Reserved
Bit 5 5th expansion rack 13th expansion rack 21st expansion rack Reserved
Bit 6 6th expansion rack 14th expansion rack Reserved Reserved
Bit 7 7th expansion rack 15th expansion rack Reserved Reserved

The bits in the variables OB81_RESERVED_i have the following meaning (for the expansion rack
concerned):
When the event occurs, the expansion racks are marked (the corresponding bits are set) on which
at least one battery or back-up voltage or the 24 V power supply has failed. Expansion racks on
which at least one battery or back-up voltage or the 24 V power supply failed earlier are no longer
indicated.
When the event is eliminated and the backup is restored on at least one expansion rack, this is
signaled (the corresponding bits are set).
The following table shows the event that started OB81:

OB81_EV_CLASS OB81_FLT_ID Meaning


B#16#39/B#16#38 B#16#21: At least one back-up battery of the central rack is
exhausted/problem eliminated (BATTF)
Note: This event occurs only if one of the two batteries fails (if there
are redundant back-up batteries). If the second battery should also
happen to fail, the event will not occur again.
B#16#39/B#16#38 B#16#22: Back-up voltage in the central rack failed/problem eliminated (BAF)
B#16#39/B#16#38 B#16#23: Failure of the 24 V power supply in the central rack/problem
eliminated.
B#16#39/B#16#38 B#16#25: At least one back-up battery in at least one redundant central rack
is exhausted/problem eliminated (BATTF)
B#16#39/B#16#38 B#16#26: Back-up voltage in at least one redundant central rack
failed/problem eliminated (BAF)
B#16#39/B#16#38 B#16#27: Failure of the 24 V supply in at least one redundant central rack
B#16#39/B#16#38 B#16#31: At least one back-up battery of at least one expansion rack is
exhausted/problem eliminated (BATTF).
B#16#39/B#16#38 B#16#32: Back-up voltage in at least one expansion rack failed/problem
eliminated (BAF)
B#16#39/B#16#38 B#16#33: Failure of the 24 V power supply in at least one expansion
rack/problem eliminated.

System Software for S7-300/400 System and Standard Functions - Volume 1/2
50 Reference Manual, 04/2017, A5E41675609-AA

You might also like