PDA

View Full Version : Topoff help


RokleM
01/07/2008, 11:05 PM
I have a float valve installed in the sump (KA1) and a pump/solenoid on my kalk (KA2). The current program is as follows:

OSC 005/255 ON/OFF Then KA1 ON
OSC 009/010 ON/OFF Then KA2 ON
If SwitchA1 OPEN Then KA2 OFF

(Just visual so I can see it on the controller)
If SwitchA1 OPEN Then FLO OFF
If SwitchA1 CLOSED Then FLO ON

So what I'd like to do is dose the same way, but only from midnight until 9 A.M. Is it as easy as off statements? Do I put them before or after the current?

If Time > 09:00 then KA2 OFF

kenargo
01/08/2008, 12:24 PM
Yup, it's as simple as adding the "If Time" condition but be sure to add it later in the program and if you want the AC3 to show the correct state for FLO you might want to consider simular logic for FLO.

RokleM
01/08/2008, 12:42 PM
What do you mean? FLO is either on or off. The only time it would be in unknown is when I reboot the unit or apply changes, which doesn't happen frequently.

kenargo
01/08/2008, 12:49 PM
I might not have been clear what I meant...

What I mean is that is FLO is used to indicate the condition of KA2 and KA2 is off after 09:00 then you might want to include the same "If Time" for FLO as you did for KA2. If FLO is just to tell when the low switch is on then you don't need to do this. I wasn't certain what you where using FLO to indicate but I may not have been clear what I meant.

RokleM
01/08/2008, 01:04 PM
Oh, understood. No, I can see the KA2 status by looking at the KA2 status ;) I use the FLO just to know if the float switch is open or closed when I'm not physically at the tank. Since SwitchA1 isn't an assigned name within the AC3 by default that you can check the status of, I assigned it the bogus FLO name.

Doh, Neptune's site is down. I was going to verify the statement sequence to ensure that the last command issued in the list is the active one (meaning > 9:00 OFF would override the previous ON statements).

kenargo
01/08/2008, 08:17 PM
You can use the AC3 simulator that I have to test your code ;)