PDA

View Full Version : AC3 ALM for Power 000 does not get set


johnlewis
05/28/2011, 06:48 PM
I have the lines;

If Power 000 Then ALM ON
If Power 000 Then PWR OFF
If Power 020 Then SKM OFF

When I remove the power from the main power it shows the timer PWR is off and the status shows power failure, but the ALM timer is not set.


Power Failed: May 28 2011 19:18:47
Power Restored: None



Anyone have any idea?

I had to replace my battery backup and wanted to make sure everything was workign before heading on vacation in a week.

kenargo
05/30/2011, 11:02 AM
Program order is important, if is possible that you have a statement later in the program that is turning the ALM back OFF?

johnlewis
05/30/2011, 01:06 PM
Program

If Time > 00:00 Then ROW OFF
If Time > 00:00 Then MAK OFF
If Time > 00:00 Then RTN ON
If Time > 00:00 Then PWR ON
If Power 000 Then ALM ON
If Power 000 Then PWR OFF
If Power 020 Then SKM OFF
If Time > 01:00 Then LT1 ON
If Time > 19:10 Then LT1 OFF
If Time > 19:20 Then LT2 ON
If Time > 01:20 Then LT2 OFF
OSC 001/059 ON/OFF Then FED ON
If Timer LT2 = OFF Then FED OFF
If Time > 19:30 Then LT3 ON
If Time > 01:30 Then LT3 OFF
If Temp < 79.0 Then HET ON
If Temp > 79.3 Then HET OFF
If Temp > 81.9 Then LT1 OFF
If Temp > 83.0 Then LT2 OFF
If Temp > 83.5 Then LT3 OFF
If Temp < 77.5 Then ALM ON
If Temp > 81.9 Then ALM ON
If pH < 07.90 Then ALM ON
If pH > 07.93 Then ALM OFF
If pH > 08.45 Then ALM ON
If pH < 08.41 Then ALM OFF
If Switch1 OPEN Then MAK OFF
If Switch1 OPEN Then SW1 OFF
If Switch2 OPEN Then ROW OFF
If Switch2 OPEN Then SW2 OFF
If Switch1 CLOSED Then MAK ON
If Switch1 CLOSED Then SW1 ON
If Switch2 CLOSED Then SW2 ON
If Switch2 CLOSED Then ROW ON
If Temp < 50.0 Then HET OFF
If Time > 21:00 Then LT7 ON
If Time > 22:30 Then LT8 ON
If Time > 23:30 Then LT7 OFF
If Time > 22:59 Then LT8 OFF

RussM
05/30/2011, 01:38 PM
Kenargo hit the nail on the head. Move the If Power statements to the bottom.

kenargo
05/30/2011, 04:13 PM
The following will cancel each other out as well:

If Temp > 81.9 Then ALM ON
If pH < 07.90 Then ALM ON
If pH > 07.93 Then ALM OFF
If pH > 08.45 Then ALM ON
If pH < 08.41 Then ALM OFF

The better design is to have an initial off at the top:

If Time > 00:00 Then ALM OFF

then in the program have all the statements turn ALM on as appopriate.

johnlewis
05/30/2011, 04:34 PM
Thanks for all the help, I look up in the manual again under program execution order, now I understand how to see what is going on.