Program: 'Movie Time Start/Stop' - Not Enabled - Universal Devices ISY-994i User Manual

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

Advertisement

9.7.4 Program: 'Movie Time Start/Stop' - Not Enabled

If
Program 'Movie Time Start/Stop' is False
Then
Set 'Kitchen Movie Scene Fade' Off
Set 'Living Room Movie Scene Fade' Off
Else
Set 'Kitchen Movie Scene Fade' On
Set 'Living Room Movie Scene Fade' On
Set 'Main Bath' On
In this group of programs, only the Movie Time Macro program is enabled, so that Movie
Time button presses will activate it. The other programs are not enabled, in order that they
not run independently, but only when called from another program.
The Movie Time Flag program has no conditions or actions. It simply serves as a status flag.
When the Then path is run, the program's status becomes True, and when the Else path is
run, the program's status becomes False.
The Movie Time Macro program receives a button press and calls the Movie Time Prep
Program's If clause. On the first button press, Movie Time Flag will be False, and so Movie
Time Prep will run its Then path, which executes the preparation statements. It also calls
the Else path of Movie Time Start/Stop in order to initialize that program's status to False,
and immediately calls Stop to prevent the statements in the Else clause from executing.
Finally, it calls the Then path of Movie Time Flag, setting it to True. Successive button
presses will therefore cause Movie Time Prep to run its Else path, which calls Movie Time
Start/Stop.
On the first call to Movie Time Start/Stop, its status is False which means that its condition
is True. It therefore runs its Then path, executing the movie start statements, and setting its
status to True. Therefore, on the next call its condition will be False, and it will run its Else
path, executing the movie stop statements, and setting its status back to False. Successive
calls will cycle between Movie Start and Movie Stop.
Page | 189

Advertisement

Table of Contents
loading

Table of Contents