Instructions

Program examples
akYtec GmbH · Vahrenwalder Str. 269 A · 30179 Hannover · Germany · Tel.: +49 (0) 511 16 59 672-0 · www.akytec.de
89
10 Program examples
Two examples with simple tasks explain the creation of a circuit program in the ALP pro-
gramming software.
10.1 Task 1: Light switch with automatic switch-off
The task is to switch the light on for a certain time, e.g. for a house entry.
Task definition:
1. The light sensor F1 and the light button SB1 “TIME” are installed in front of the en-
trance door.
2. If the button SB1 is shortly pressed and the ambient light is insufficient, the light
should be switched on for 1 minute this time should be enough to find a key hole
and to open the door.
3. If the button SB1 is pressed for 2 seconds, the light should be switched on for 3
minutes regardless of the ambient light this mode can be useful for entrance clean-
ing.
4. Provide the possibility to control the light by commands from external devices or with
the switch SA1 “CONST” regardless of the ambient light. This mode can be useful
during the reception of guests or for further automation of the apartment as part of the
"smart house" program.
5. Provide the possibility to switch on the light only at a certain time.
Device selection:
The control device must have minimum two digital inputs, one digital output and an inte-
grated real-time clock to implement this task. These features can be provided by devices
of PR110 series with the letters "RTC" in the designation.
The task implementation with the device PR110-24.8D.4R-RTC:
Fig. 10.1
Circuit program
The circuit program can be implemented in the way shown in Fig. 10.2.