Page | 222
including the current day, day of month, day of year, month, year, and week of month. In
addition, there are counters which follow an every other, every third, every fourth, and
every fifth day schedule. Also, there is a program that sets a variable according to whether
it is an even day or an odd day. Finally, a series of programs sets a variable to 1 on several
US holidays. Some of these programs can be expanded upon including the holiday series or
every x number of days or weeks programs to suit your needs.
As an aside here, you may wonder why these programs don't all just run with their own
triggers rather than start with a single program and cascade off of that as they do. The main
reason is that the order of calculation is critical for many of these variables. When one
variable is calculated from the updated value of another variable, that first variable must
obviously be calculated first. The only way to be certain that one operation occurs, in order,
prior to another, is to have them run, in order, in a single "then" or "else" clause. A single
"then" or "else" clause always runs from top to bottom in order. If it is impossible to put
everything in a single clause, then you must have the first program send you to a second
program using a "run xxx" statement. Because of the way ISY operates, there is no
guarantee that two programs which trigger on their own will actually run in any particular
order to completion. If one program triggers at 1:00:00 and another triggers at 1:00:01, the
program that runs at 1:00:01 may catch up to or pass the 1:00:00 program. But if a line of
one program includes a "run if" of another program, you know that the second program
will not do anything until every statement in the first program preceding the "run if" has
completed.
11.1.1.2The Variables
There are a number of variables that need to be created by the user. By convention,
variables that have an “i” to start the name are integer variables and an “s” indicates a state
variable. This is only for ease of identification when writing and editing programs.
•
iDay.of.Year
starts with 1 on Jan 1 and counts to 365 (or 366 on leap year). This
variable is a less used variable that is mostly included for completeness as it is rare
that someone needs to know what day of the year it is.
•
iDay.of.Month
is how many days into the month we are (i.e. the 5th of the month).
•
iYear
is simply the current year.
•
iLeap.Year
counts 0,1,2,3,0,1,2,3, etc. where 0 means that we are in a leap year. This
is primarily a variable used to keep the other variables in check since rarely do
people have cause to include this directly in a program.
•
iDay.of.Week
starts with 1 on Monday and counts through to 7 on Sunday. This
variable is used to cross check the status of the variables against ISY’s internal day
of week function so as to alert you if it gets out of sync. You do not need this variable
since ISY has this function built-
in but you can choose to use it instead of the ISY’s
built-in day function and get the same result.
•
iMonth
is simply the current month starting with 1 for Jan.
•
iDay.Counter
gets one number higher every day without regard to the start of a
new month or year. The primary purpose of this variable is to serve as a basis for
Содержание 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: ......