Jump to content

Status vs Activity


jkraus

Recommended Posts

Posted

I do not think I understand the difference in the Program summary tab between these two condition. I have some programs that have completed so they are "Idle" under the Activity column, but still "True" under the Status column. I am confused because I want to write other programs that are contingent on the condition of another program running, but even though it is "Idle" the other program (because it says "True") apparently still thinks its running

 

Please help

 

Thx

 

Joe

Posted
I do not think I understand the difference in the Program summary tab between these two condition. I have some programs that have completed so they are "Idle" under the Activity column, but still "True" under the Status column. I am confused because I want to write other programs that are contingent on the condition of another program running, but even though it is "Idle" the other program (because it says "True") apparently still thinks its running

 

Please help

 

Thx

 

Joe

 

By default Programs are all False until they have been evaluated at least once, then they may become True. They will remain True until the conditions change. It doesn't matter if they are currently Running. Programs can be False and Running depending on the Actions in the Else section.

 

Rand

Posted

OK, so how do your write a program that executes (or does not execute) based on whether another program is running? I was using the "Status" but that seems useless

 

Thx

 

Joe

Posted

Joe,

 

By using the "run else path" at the end of your program you can force the program to false when it completes. As a result, the status will only be true when it is actually executing.

 

 

Program Test
IF A,
or B
or C

Then
set A
Set B
Set C
Run Program Test (Else Path)
Else
--No actions
end

Posted

This should not be this tough. I am trying to have two KPL button, B & D, that are listed as mutually exclusive turn on the pool pump for 1 hr or 2 hr respectively, but when I run the programs below by hitting Button B first then Button D, program B is still running

 

If

 

Control 'KPL Pool Eq B' is switched On

And Control 'KPL Pool Eq B' is not switched Off

Or Control 'KPL Pool Eq D' is not switched On

 

Then

Wait 2 seconds

Send X10 'K16/On (3)'

Wait 1 hour

Send X10 'K16/Off (11)'

Run Program 'Pool on 1 HR KPL' (Else Path)

 

Else

Send X10 'K16/Off (11)'

 

 

If

 

Control 'KPL Pool Eq D' is switched On

And Control 'KPL Pool Eq D' is not switched Off

Or Control 'KPL Pool Eq B' is not switched On

 

Then

Wait 2 seconds

Send X10 'K16/On (3)'

Wait 2 hours

Send X10 'K16/Off (11)'

Run Program 'Pool on 2 HR KPL' (Else Path)

 

Else

Send X10 'K16/Off (11)'

Guest
This topic is now closed to further replies.

×
×
  • Create New...