This circuit is permanently plugged into a mains socket and NI-CD batteries are trickle-charged. When a power outage occurs, the lamp automatically illuminates. Instead of illuminating a lamp, an alarm sounder can be chosen.
When power supply is restored, the lamp or the alarm is switched-off. A switch provides a `latch-up` function, in order to extend lamp or alarm operation even when power is restored.