On too long code?

ToLearn

New member
Well it appears I had a snail or something on one of my floats and my ATO added a lot more water then it should have in a short period of time.(haven't tested or looked at the logs, but it may have all been through my kalk doser!)

I want to add some programming that will disable my top off devices if water is requested for three straight minutes. Typically in less then a minute enough water will enter the sump and the conditions reverse, but if the floats have failed or if there is a leak this won't be the case.

So far I have created a virtual outlet named, "ATO_TooLong" with the following code:

Set ON
If Outlet SumpLow = OFF Then OFF
If Outlet SumpNotFull = OFF Then OFF
If Outlet ATOResEmpty = OFF Then OFF
Defer 003:00 Then ON


I will add the statement
If Outlet ATO_TooLong = ON Then OFF
to my top off devices and the same thing with Then On to my alarms.

If I wanted it to remain on until I got back or changed something online is there a way to do so? My thought was to add: "Defer Time 999:00 Then OFF" at then end so when the outlet wants to change to the OFF state after being on it won't be able to for 999 minutes?

Would this work for what I want:
Set ON
If Outlet SumpLow = OFF Then OFF
If Outlet SumpNotFull = OFF Then OFF
If Outlet ATOResEmpty = OFF Then OFF
Defer 003:00 Then ON
Defer 999:00 Then OFF
 
Looks like it's just about the same thing, so you think this code will work for what I want it to do?

Set ON
If Outlet SumpLow = OFF Then OFF
If Outlet SumpNotFull = OFF Then OFF
If Outlet ATOResEmpty = OFF Then OFF
Defer 003:00 Then ON
Defer 999:00 Then OFF


In a quick test it appears to be working.

Thanks once again.
 
Back
Top