Jump to content

Programming ? on 99i


paulw

Recommended Posts

Posted

Hi Paul,

 

In a limited way, yes. Each program can be used as a flag. So, if the program is true, then testing for that program is also true and vice versa.

 

With kind regards,

Michel

Is it possible with the 99i to set "flags" or counters in one program that can be tested for in another program?

 

Paul

Posted

If I understand you correctly, program flags can control many ISY functions. Here is a simple example that sets a ‘Flag Prime’ to true when it is between specified evening hours.

Program  ‘Prime Time’
If
    From   Sunset - 45 minutes
    To      11:05:00 PM (same day)
Then
    Run Program ‘Flag Prime’ (Then path)
Else
    Run Program ‘Flag Prime’ (Else path)

Except for the limited time above, the ‘Flag Prime’ in the ISY is false. Flag Prime is like any other program . But it has no conditions or actions. The following program runs when I return home. It uses the program flags to turn on my outdoor lights for 15 minutes, but only when it is prime time.

Program  ‘Arrive Out’
If
    Run Program ‘Flag Prime’ is True
    And Run Program ‘Leave’ is True
Then
    Run Program ‘Limited Out’ (Then path)
Else
    -  No Actions - (To add one, press 'Action')

Hope this helps.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...