Page | 183
9.5.4
Statement Execution Order
Within the Then or Else clause of a program, statements are executed from top to bottom in
the order in which they occur. When a statement calls another program, the called program
begins executing, and the calling program immediately continues execution with the next
statement in sequence--it does not wait for the called program to complete before
continuing.
A series of statements within a Then clause (or within an Else clause), up to the next Wait
or Repeat statement, are atomic. In other words, all such statements are executed before
the conditions of the program are retested. The program's conditions are reevaluated each
time a Wait or Repeat statement is encountered, and at the end of each iteration of a Repeat
loop.
What this means is that if a program's Then clause changes a condition which causes the
program's overall condition to become false (or if the program's Else clause changes a
condition which causes the program's overall condition to become true), the current
atomic statement group will complete, and at that point execution will transfer from the
Then clause (or the Else clause) to the Else clause (or the Then clause).
Therefore, if a Then clause (or an Else clause) contains no Wait or Repeat statements, the
entire clause is atomic, and will complete before the program's conditions are reevaluated.
9.5.5
Boot/Startup Sequence and Program Execution Order
When the ISY boots, the True/False state of all schedule programs is determined, and any
schedules which require catching up, are set to run following initialization. If Catch up
schedules at Restart is enabled, schedules are set to run from the beginning of the day;
otherwise schedules are set to run only for the specified Missed Schedule Grace Period.
Note that prior to firmware 2.6.4, the Missed Schedule Grace Period applied only to Time is
schedules, not From/To or From/For schedules; as of firmware 2.6.4 it applies to all
schedules.
Next, ISY queries all devices and determines their status. During this process, the
True/False state is determined for programs and folders which have conditions, and any
programs which require running are set to run following initialization. Folders with no
conditions are set to True so as not to prevent programs within them from running, since
without conditions a folder's state will never be changed. Programs which have no
conditions are initialized to False, just as a variable would be, since programs, which are
often used as flags, may have their state changed by other programs or directly from the
Program Summary tab, even though they have no conditions.
Finally, programs which are set to Run at Startup are set to run following initialization.
Note that prior to firmware 2.6.6, a program which was set to Run at Startup would
Содержание ISY-994i Series
Страница 1: ...The ISY 994i Home Automation Cookbook ...
Страница 35: ...Page 12 Figure 6 UDAjax Main Screen ...
Страница 36: ...Page 13 Figure 7 UDAjax Devices Scenes Screen ...
Страница 68: ...Page 45 Figure 44 NodeServer Configuration popup 5 2 5 Tools Menu Figure 45 Tools Menu ...
Страница 98: ...Page 75 You should now see local weather information as shown below Figure 73 Local Weather Information ...
Страница 102: ...Page 79 6 6 3 2Activate My OpenADR Portlet Figure 77 OpenADR My OpenADR Menu Option ...
Страница 103: ...Page 80 6 6 3 3Configure OpenADR Settings Figure 78 OpenADR Settings Menu Option ...
Страница 104: ...Page 81 Figure 79 OpenADR Settings Display ...
Страница 108: ...Page 85 6 6 3 7Issue an Event Figure 84 OpenADR Issue and Event ...
Страница 109: ...Page 86 Figure 85 OpenADR Events You can use the Event Viewer to see the operational status of ISY and OpenADR events ...
Страница 110: ...Page 87 Figure 86 OpenADR Event Viewer ...
Страница 116: ...Page 93 Figure 92 ElkRP2 Account Details M1XEP Setup Button In the M1XEP Setup Window ...
Страница 267: ...Page 244 Figure 189 State Variables ...
Страница 268: ...Page 245 Figure 190 Programs and Folders ...
Страница 292: ...Page 269 Figure 192 Irrigation Folders Figure 193 Irrigation Devices ...
Страница 376: ...Page 353 Figure 209 Save Topology File ...
Страница 433: ...Page 410 Figure 242 X 10 recognized as Living Room East Device ...
Страница 461: ...Page 438 Figure 259 HAM Weather Data 17 2 2 Irrigation Module s Settings Figure 260 Irrigation Cycle Calculator ...
Страница 531: ...Page 508 Figure 342 Base Task Dependencies 1 Click the bottom center of screen In the Filter type http Touch HTTP Get ...
Страница 536: ...Page 513 Figure 349 In Car Detection 5 Figure 350 In Car Detection 6 In the filter type BT and then select BT Connected ...
Страница 540: ...Page 517 Figure 357 In Car Detection 12 Figure 358 In Car Detection 13 ...
Страница 602: ...Page 579 Figure 382 SecureCRT SSH Raspberry PI Session ...
Страница 620: ...Page 597 Figure 397 HyperTerminal Login The ISY Shell is displayed All input to the ISY shell must be in UPPER CASE ...
Страница 660: ...Page 637 Figure 420 ISY Select file Your ISY will now update the firmware and reboot when it is finished ...
Страница 675: ...Page 652 create surges at power on such as traditional fluorescent lights and general purpose electrical sockets ...
Страница 685: ......