EXAMPLE 1 |
||
At 08:00 every Sunday we sanitize the environment by switching on an ozone generator connected to output 1 for 30 minutes. |
||
|
SCH0800 SCHEDULED AT 08:00 |
|
$D16=7 WEEKDAY = 7 |
||
|
||
|
||
|
||
|
||
out1=1,1800 |
||
|
||
|
||
|
||
|
||
TRIGGER EVENT occurs every day at 08:00 (0800). The first condition to check is that the current day is Sunday (7). The first action contains the command that turns on output 1 for 1800 seconds, which is 30 minutes. The 003000 setting is equivalent. |
EXAMPLE 2 |
||
During the weekend we disable all events with the specific command (they are automatically reactivated at the beginning of the following day). |
||
|
SCH0000 SCHEDULED AT 00:00 |
|
$D16(67 WEEKDAY ( 67 |
||
|
||
|
||
|
||
|
||
AT#EVENT=0 |
||
|
||
|
||
|
||
|
||
TRIGGER EVENT occurs every day at 00:00 (0000). The first condition to check is that parameter D16 which represents the current day is contained in text 6 or 7, i.e. Saturday or Sunday. The first action contains the command that disables all events until the end of the day (they can also be re-enabled at any time using the same command). |
EXAMPLE 3 |
||
Night switch with automatic update of sunrise and sunset. At output 4 there are lamps that will turn on 30 minutes after sunset and turn off 30 minutes before sunrise. Set variable memory 1 so that its value contains the difference in minutes between the sunrise time and the current time (advance on sunrise): V12=$D17-$D15 MEMORY VARIABLE 1 EXPRESSION = SUNRISE TIME - CURRENT TIME Set variable memory 2 so that its value contains the difference in minutes between the current time and the sunset time (postpone to sunset):: V22=$D15-$D18 MEMORY VARIABLE 2 EXPRESSION = CURRENT TIME - SUNSET TIME |
||
|
SCH**** SCHEDULED AT **:** |
|
$V11=30 MEMORY VARIABLE 1 VALUE = 30 |
||
|
||
|
||
|
||
|
||
out4=0 |
||
|
||
|
||
|
||
|
||
TRIGGER EVENT occurs every minute (****). The first condition to check is that the value of the memory variable 1 is equal to 30, it means there are 30 minutes to sunrise. The first action turns off output 4. |
|
SCH**** SCHEDULED AT **:** |
|
$V21=30 MEMORY VARIABLE 2 VALUE = 30 |
||
|
||
|
||
|
||
|
||
out4=1 |
||
|
||
|
||
|
||
|
||
TRIGGER EVENT occurs every minute (****). The first condition to check is that the value of the memory variable 2 is equal to 30, it means that 30 minutes have passed since sunset. The first action turns on output 4. |