craigf Posted June 2, 2009 Posted June 2, 2009 I am trying to get a double tap to work and my program executes the else statement when I don't want it to. I realize I can use the fast on but I want the double tap to be over a 2 second period instead of the quick double tap. Here are the programs I am using. If Control 'Office' is switched on And Program '2 Second Timer' is False Then Run Program '2 Second Timer' (Then Path) Else Set 'Spa Heater-Relay' On Here is the 2 second timer program: If No Conditions Then Wait 2 seconds Run Program '2 Second Timer" (Else Path) Else -No Actions Whe I run this program, the relay turns on even on the first tap. The Then for the 2 second timer executes and then the Else then executes. Why is this happening?
Michel Kohanim Posted June 2, 2009 Posted June 2, 2009 Hi craigf, The one thing that sticks out immediately is that your timer program without any conditions will always evaluate to TRUE. With kind regards, Michel I am trying to get a double tap to work and my program executes the else statement when I don't want it to. I realize I can use the fast on but I want the double tap to be over a 2 second period instead of the quick double tap. Here are the programs I am using. If Control 'Office' is switched on And Program '2 Second Timer' is False Then Run Program '2 Second Timer' (Then Path) Else Set 'Spa Heater-Relay' On Here is the 2 second timer program: If No Conditions Then Wait 2 seconds Run Program '2 Second Timer" (Else Path) Else -No Actions Whe I run this program, the relay turns on even on the first tap. The Then for the 2 second timer executes and then the Else then executes. Why is this happening?
Sub-Routine Posted June 2, 2009 Posted June 2, 2009 Hello craigf, These programs should work for you. If Control 'Office' is switched On Then Enable Program 'Spa 2' Wait 2 seconds Disable Program 'Spa 2' Else - No Actions - (To add one, press 'Action') Spa 2 If Status 'Office' is On And Control 'Office' is switched On Then Set 'Spa Heater-Relay' On Else - No Actions - (To add one, press 'Action') Rand
craigf Posted June 3, 2009 Author Posted June 3, 2009 Michel, Thanks for pointing that out. That was what I was missing. My tunnel vision got to me and I didn't see the obvious. Rand, Thanks for your programs, they are much more elegant than my method. I will give them a shot. Thanks both of you! Craig
craigf Posted June 3, 2009 Author Posted June 3, 2009 Rand, I have rewrtiten the programs to be like you suggested. I am having an odd problem though. When I hit the on for the first time, the io link turns on. I have written an identical program that turns the io link off with a slow double tap and it works fine. I am convinced the program works properly. I have disabled all of the programs and when I hit the SL on, the io link turns on. If I unplug the ISY, then hitting the SL does not cause the IO link to turn on. So, something in the ISY is turning on the io link in response to the SL switched on, even with all of the programs disabled. I have reset teh io link just to make sure it is not linked to the SL (whcih is obvious since it doesn't turn on when the ISY is disconnected). How can I troubleshoot this and determine what is in the ISY that is causing the SL to trigger the io link? I don't have any scenes that show them linked and when I check the managed by there is no connection. Thanks, Craig
Sub-Routine Posted June 3, 2009 Posted June 3, 2009 Hi Craig, If it is something in the ISY turning on the relay it must be a program. When you view the Program Summary page you can sort by Last Run Time. This should allow you to see which program runs when you press the switch. Rand
craigf Posted June 6, 2009 Author Posted June 6, 2009 Rand, Thanks. I don't know why, but when I unplugged the PLM and then plugged it back in, I found a program that I had deleted had not really been deleted (and was still enabled). I redeleted it and now everything works ok. Thanks. The programs are working well now. Craig
Recommended Posts