Programs As Flags/Variables; Programs As Flags: Understanding And Using Program Status (True/False); Programs As Variables: Switchlink Emulates Countdown Timer - Universal Devices ISY-994i User Manual

Home automation
Hide thumbs Also See for ISY-994i:
Table of Contents

Advertisement

The third time the Movie Time button is pressed, neither Movie Time Prep nor Movie Time
Start will run because both Movie Time Flag and Movie Playing Flag are True. Instead,
Movie Time Stop will run, since its conditions are met. This program turns on the kitchen,
theatre and bathroom lights, and then runs the Move Time Stop Action program. That
program then runs the Movie Time Macro Program's Else path to set that program's status
back to False, and then sets the Movie Playing Flag back to False. These two steps are in a
separate program for the same reason as above.
It should be noted that the order of the statements in each of the ... Action programs is very
important. If Movie Time Prep Action set Movie Time Flag to True before setting Movie
Time Macro to False, then Movie Time Start would immediately run. Similarly, if Movie
Time Start Action set Movie Playing Flag to True before setting Movie Time Macro to False,
Movie Time Stop would immediately run. And if Movie Time Stop Action set Movie Playing
Flag to False before setting Movie Time Macro to False, then Movie Time Start would
immediately run.
It can be seen that the use of the Run (If) command reduces the number of required
programs, removes the requirement for special ordering of statements, simplifies the
conditions within the If clause of the programs, and provides a more clear and
understandable system.

9.8 Programs as Flags/Variables

9.8.1 Programs as Flags: Understanding and Using Program Status
(True/False)
By default, all programs and folders are False. Programs and folders will only change state
when it's conditions are evaluated or, in the case of a program, when called using Run
(Then) or Run (Else).
The State of a program or folder can be used as a Condition.

9.8.2 Programs as Variables: SwitchLink Emulates Countdown Timer

The time increases each time the on paddle is pressed from 15, 30, 60, and 90 minutes. It
maxes out at 90 minutes. You can add time after timer has been running by pressing the on
paddle again.
If the timer has not already been set, a local fast on at the switch will simply turn the fan on
without a timer. If a timer has been set and is running, a local fast on will not change the
timer. One could program the operation of the local fast on differently if desired.
27
(Universal Devices)
28
(posted by user rob9)
27
28
Page | 195

Advertisement

Table of Contents
loading

Related Products for Universal Devices ISY-994i

Table of Contents