ATO program is this correct?

110galreef

New member
Set OFF
If Switch2 CLOSED Then ON
If Switch3 OPEN Then OFF


So how do I use min time of defer to make sure that the ATO pump/outlet doesn't come on again for 3.5 hrs or 210 mins?

Switch one is the main on off, switch 2 is a failsafe.

The first 3 line work fine for normal top off, just want pump not to cycle so often.
 
Last edited:
????

Set OFF
If Switch2 CLOSED Then ON
If Switch2 OPEN Then OFF
Min Time 210:00 Then ON
If Switch3 OPEN Then OFF
 
Last edited:
Here works with Swith1 and Switch2.

My ATO runs only between 00:00 and 8:00AM:

Fallback OFF
Set OFF
If Switch1 CLOSED Then ON
If Outlet ATO_ALLOW = OFF Then OFF
If Time 08:00 to 23:59 Then OFF
If Switch2 OPEN Then OFF

I also created a virtual outlet for the pump work just 1min each half hour:

ATO_ALLOW
OSC 029:00/001:00/000:00 Then ON




Hug
 
Ok so how about this: Would this work so that only if the time was between 02:00 and 02:20, 06:00-06:20, 10:00-10:20, 14:00-14:20, and 22:00-22:20 AND the SWITCH was closed (meaning needing water it would run?

Fallback OFF
Set OFF
If Switch2 CLOSED Then ON
If Time 02:20 to 06:00 then OFF
If Time 06:20 to 10:00 then OFF
If Time 10:20 to 14:00 then OFF
If Time 14:20 to 22:00 then OFF
If Time 22:20 to 02:00 then OFF
If Switch3 OPEN Then OFF

If I can figure this out I may try to add a virtual outlet.
Oh, by the way I am running an aqualifter for the ATO pump and does about 3 gph and I have about 1.5hrs of available run time and my evaporation is usually in the 3 GPD range. Plus this should keep most of the ATO in the night time.
Thanks
 
You were not too far off with your second post, but you should have used Min Time...OFF. It helps if you ignore the 'Then'. Min Time ... ON would mean that the outlet, when turned ON, would stay ON for at least the specified duration before being allowed to turn OFF. That is the opposite of what you wanted. Min Time can be a bit tricky because it is open ended.

What you have now will work. The code that Jorge posted is a modified version of what I use. This is what I would suggest:

[ATO_Allow]
OSC 000/30:00/90:00 Then ON
If Time 08:00 to 20:00 Then OFF

[ATO]
Fallback OFF
Set OFF
If Switch2 CLOSED Then ON
If Outlet ATO_Allow = OFF Then OFF
If Switch3 OPEN Then OFF
Defer 00:10 Then ON

[ATO_Allow] creates a 30 minute slot out of every two hours in which [ATO] can run as necessary based on the float. This would be a maximum of a half gallon of top off each time. The Time command keeps it OFF during daylight hours. So over the 12 hr nighttime, maximum addition would be three gallons.
The Defer prevents false starts due to any waves bouncing the float.

Todd
 
Last edited:
Ok,

One more just to get a feel for a better understanding of CODE! hahah

Fallback OFF
Set OFF
If Switch2 CLOSED Then ON
Defer 180:00 Then ON
If Time 10:00 to 22:00 then OFF
If Switch3 OPEN Then OFF

Would this basically only allow the ATO to kick on after 180 mins that the FLoat is CLOSED(needing water) AND only allow it to add water from 10pm - 10:00am

This is all starting to make more sense!

Thanks for the help.

As of now the float tolerance is so tight, that it seems to kick on like every 5-10 mins and run for just like 30-60 secs. It is in my sump and there is basically now waves too
 
Correct, just be aware that Defer applies to the whole outlet, not just the preceeding statement. It is also executed last regardless of placement so I usually place it at the end, just so it reads more clearly.

Todd
 
Ok well will I run into any issues then with the switch 3 as a HIGH water level in sump as a backup to switch2 incase it doens't turn off the outlet?

Oh and so like this:
Fallback OFF
Set OFF
If Switch2 CLOSED Then ON
If Time 10:00 to 22:00 then OFF
If Switch3 OPEN Then OFF
Defer 180:00 Then ON
 
Todd,

The more I look at the code you provided the more I like and understand it!

here is what I have devised, againlet me know if I am sound in my thought. I tweaked yours a tad. Again I am using the aqualifter pump and it is about 3gals per hr or 1 gal per 20 mins. I have an avg of 3 gals eveaporation a day.

[ATO_Allow]
OSC 000/20:00/160:00 Then ON
If Time 10:00 to 22:00 Then OFF

[ATO]
Fallback OFF
Set OFF
If Switch2 CLOSED Then ON
If Outlet ATO_Allow = OFF Then OFF
If Switch3 OPEN Then OFF
Defer 00:10 Then ON

[ATO_Allow] creates a 20 minute slot out of every 3 hours in which [ATO] can run as necessary based on the float. This would be a maximum of a 1 gallon of top off each time(20mins). The Time command keeps it OFF during daylight hours(10am-10pm). So over the 12 hr nighttime, maximum addition would be 5 times of 20 min each and like 7 glas.

Just now need to figure out how to create the virtual outlet?
 
configuration/module setup/add module (choose DirectConnect 4).

After you've added the module, you will see the placeholder outlets below. You can then delete all of the outlets you dont need. In your case, that would be 3 of 4 outlets to delete. The last outlet standing is your virtual outlet. You should now see it in your status section.

If you go to configuration/outlet setup. You can now modify/rename it just like any other.
 
configuration/module setup/add module (choose DirectConnect 4).

After you've added the module, you will see the placeholder outlets below. You can then delete all of the outlets you dont need. In your case, that would be 3 of 4 outlets to delete. The last outlet standing is your virtual outlet. You should now see it in your status section.

If you go to configuration/outlet setup. You can now modify/rename it just like any other.

Awesome thanks. I will play with it tonight or tomorrow and let you know if I have any more questions.
 
[ATO_Allow] creates a 20 minute slot out of every 3 hours in which [ATO] can run as necessary based on the float. This would be a maximum of a 1 gallon of top off each time(20mins). The Time command keeps it OFF during daylight hours(10am-10pm). So over the 12 hr nighttime, maximum addition would be 5 times of 20 min each and like 7 glas.
The 12 hr period divided by 3 hrs, would give 4 segments. So 4 segments, in which the ATO can run for 20 minutes each, yields 4 gallons total.

Use can select the LunarSim module to create a single outlet.



Todd
 
The 12 hr period divided by 3 hrs, would give 4 segments. So 4 segments, in which the ATO can run for 20 minutes each, yields 4 gallons total.

Use can select the LunarSim module to create a single outlet.



Todd

True, my bad math! :mixed: haha But the program i modified is sound overall????

Anything special to do if I use the lunar sim module as an outlet other than maybe rename it?
 
Yes, looks good.

Nope, just rename the outlet after it is created.

Another thing you can do is create virtual outlets for the float switches. This allows you to give them meaningful names and also monitor them via the Status Page. It will also log them in the XML Outlet Report so you can then graph the switches and ATO to fine tune the behavior. For instance, I am still getting some 'noise' on my Sump switch even with a 30 second Defer. Most of the time, when ATO_Allow is OFF this is not an issue. But during the ON periods, in can still cause the ATO to cycle unnecessarily. It is a new switch, so I am thinking it is due to critters riding on the float.


Todd
 
That is a sweet idea. So then I would need a total of 4 virtual outlets? Would i then add a direct Connect 4 module to do this?

Switch1 [SumpLowSwitch]
Switch2 [ATOSwitch]
Switch3 [SumpHighSwitch]
[ATO_Allow]

Does the code then go like this:

[ATO_Allow]
OSC 000/20:00/160:00 Then ON
If Time 10:00 to 22:00 Then OFF

[ATO]
Fallback OFF
Set OFF
If ATOSwitch CLOSED Then ON
If Outlet ATO_Allow = OFF Then OFF
If SumpHighSwitch OPEN Then OFF
Defer 00:10 Then ON
 
I'd add a DC8, name the created outlets V1 - V8. You won't need them all but it's great to have them around when you do. Saves the hassle of having to stop and create them. Just make sure the names are unique! Don't name them all 'unused' or all sorts of weird things will happen.
 
Does the code then go like this:
[ATO]
Fallback OFF
Set OFF
If ATOSwitch CLOSED Then ON
If Outlet ATO_Allow = OFF Then OFF
If SumpHighSwitch OPEN Then OFF
Defer 00:10 Then ON
Close, just incorrect syntax. Also, outlet names are limited to a max of 12 characters.

[SumpLow]
Set OFF
If Switch1 CLOSED Then ON{This float should be CLOSED when DOWN}

[ATOSwitch]
Set OFF
If Switch2 CLOSED Then ON{This float should be CLOSED when DOWN}
Defer 00:10 Then ON

[SumpHigh]
Set OFF
If Switch3 CLOSED Then ON{This float should be CLOSED when UP}


[ATO_Allow]
OSC 000/20:00/160:00 Then ON
If Time 10:00 to 22:00 Then OFF

[ATO]
Fallback OFF
Set OFF
If Outlet ATOSwitch = ON Then ON
If Outlet ATO_Allow = OFF Then OFF
If Outlet SumpHigh = ON Then OFF


.
.
.
If Outlet SumpLow = ON Then ON

Todd
 
Awesome Thanks again! It looks some much cleaner when wrote correctly!

One more question on switch3[SumpHigh] The switch is currently setup as a NC. so it is OPEN when UP meaning sump level is too high.

So that being said would I just change the code to:

[SumpHigh]
Set OFF
If Switch3 OPEN {up} Then ON

or invert the float so it's Normally Open and leave the code as this:

[SumpHigh]
Set OFF
If Switch3 CLOSED {up} Then ON

I have the float now as NC and the code as:
Set OFF
If Switch2 CLOSED Then ON
If Switch3 OPEN {up} Then OFF


and tested everything and works fine. Works fine too if for some reason cable come unplugged, everything stays OFF
 
Ok, I added the virtual outlets and can see them on the status page. But I don't see how they can be charted or graphed or logged to know there status. Also I deledted 4 of the extra's & left one. Is there a way to readd them later if needed. Or do I need to delete the module and creat a new one?

All i can see is in XML section. Is that it?
 
Yes, SumpHigh OPEN/UP would be safer, change the code. In the event it becomes disconnected, it will keep [ATO] OFF. If you add the command to , you will also get a notice.

On the Graph page you should see the outlets listed at the bottom of the screen, select the check boxes for the ones you want to display. However, it will take a while to build up enough data. For Outlets, if there is just one data point, it won't graph anything.

You'll notice that for legacy units, you select a module and it adds the associated number of outlets. But when you delete them, you select individual outlets. In otherwords, they are not grouped together the way EBx modules are. So if later you need more, just pick the appropriate size unit.

Todd
 
Back
Top