C
hapter
Ⅵ
A
pplications
6. 2 The multi-function switch for lights in stairs and halls
Control requirements:
1. When you press the switch, the light is turned on, and will be automatically
turned off after 3 minutes. The light will twinkle for 5 seconds before the turn-
off.
2. The light will keep on if the switch is pressed twice in 5 seconds.
3. The light will be off if the switch is pressed for 2 seconds or more.
4. The light will be automatically turned on at PM 18:30 and turned off at AM
6:30 every day.
The program diagram is as below:
Description:
I1: connected to the switch button
Q1: connected to the light
87