Procedural Programs Using Run If - Universal Devices ISY-994i User Manual

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

Advertisement

the event occurs, the program's conditions are re-evaluated, and since the folder is now
True, the program runs either the Then or Else path, depending on whether the program's
conditions are True or False. Note that this does not require that the program's conditions
change from False to True or vice versa, only that an event occurs which causes the
program's conditions to be re-evaluated. As of firmware version 2.6.6, the True/False state
of a folder may be tested within the If conditions of a program or another folder. This
allows a program's If conditions to be automatically re-evaluated when a folder becomes
True, by placing the test of the folder condition within the program's If conditions.

9.6 Procedural Programs using Run If

Beginning with beta 2.6.4 of firmware version 2.7 for ISY-26 and ISY-99i series, a new Run
(If) command has been added. The former Run command is now Run Then; the Run Else
command is unchanged. Instances of the new command within programs will appear as
Run 'Program Name' (If). All former instances of Run 'Program Name' within programs will
now appear as Run 'Program Name' (Then Path); instances of Run 'Program Name' (Else
Path) will remain unchanged.
The Run (If) command will evaluate the If condition of the specified program and run
either the Then clause or the Else clause depending as the condition is True or False. When
the If clause contains no condition, the Then clause will be run. In the new firmware, a
program which is set to run at startup will likewise evaluate the If condition to determine
which path to take, defaulting to the Then clause in the absence of a condition.
Why do we need Run (If), doesn't the ISY automatically run programs based on the If
conditions?
Yes, the ISY automatically runs programs when an event occurs that changes an If condition
for an enabled program. The difference is that Run (If) always runs the program based on
the conditions without needing an event to occur. In Addition, the program can be disabled
such that it runs only when Run If/Then/Else are used, and never runs due to an event.
What happens if an event occurs that changes the If condition while the program is
currently running?
• If the program is not enabled then nothing happens, the program continues running
as it currently is.
• If the program is enabled then either the Then or Else will run (business as usual).
This new command provides the ability to run programs in a procedural manner without
the awkward workarounds required previously. Simply uncheck the Enabled box so that
the program does not run independently, and it becomes a callable procedure, complete
with conditions. These procedure programs may be nested just as other programs. A main
25
(Universal Devices)
25
Page | 185

Advertisement

Table of Contents
loading

Related Products for Universal Devices ISY-994i

Table of Contents