i don't understand ato/switch codes.

Xgame2k

Member
i have 2 switches in my sump. switch 1 is on the water level (will be floating) and switch 2 is slightly above. they are both madison m8000 switches from autotopoff.com.

what would the code be?
 
The code is slightly different Apex or AC3 but I have both on my website programs. Looks for SumpHigh (sounds like this matched your 'slightly above') and AddWater.

Basically, you will have code to turn on the topoff pump when the water level switch turns on and have the topoff turn off when the water levelfloat turns off OR the slightly above float turns off.

Note: This might require you to change the polarity of the floats. I tend to set things up so that is works correctly in case of an accidental wire disconnecting as not to flood the tank.

Hope this all makes sense.
 
its for an apex. switch 1 (bottom) is the one in use and switch 2 (top) is just incase the bottom one gets stuck, stops working....

i would also like if i got an email and warning sound when switch 1 (bottom) stops working and switch 2 (top) gets put in use.
 
You have a few options...

The simplest:

In Email add something like this:

If Switch2 OPEN Then ON

In TopOff outlet:

Fallback Off
If Switch1 OPEN Then OFF
If Switch1 CLOSED Then ON
Defer 001:00 Then ON
 
thanks....

shouldn't i have something like this though?

Fallback Off
If Switch1 OPEN Then OFF
If Switch1 CLOSED Then ON
If Switch2 OPEN Then OFF
If Switch2 CLOSED Then ON
Defer 001:00 Then ON

would i have to put something in it to override switch 1 (in case it gets stuck)?
 
Oh, yes; forgot about the second float; you want this:

Fallback Off
If Switch1 OPEN Then OFF
If Switch1 CLOSED Then ON
If Switch2 OPEN Then OFF
Defer 001:00 Then ON

Meaning that switch 1 controls the on/off and switch 2 overrides the off. I don't think you want switch 2 turning the topoff on otherwise a fail of switch 1 just causes switch 2 to become the level control (unless that is what you want to have happen).
 
hmmmm. Wouldn't making the second switch the level controller be a better solution? It seems like it would be doing the same with that code, but the "closed" would be coming from the unreliable broken (jammed) switch. If the bottom float magically becomes unjammed, it will have less impact on the salinity.
 
Last edited:
You want the higher switch to be the backup and the lower one to be the primary control. If the lower turns on the water and works correctly it should add a little bit of topoff. If the lower switch turns on the water and fails then more water would be added (because you ned to get to the higher switch before the topoff turns off) but once the upper switch is reached it should turn off the topoff still.
 
how would i apply a code that disables them and/or the ato pump during a water change? i will call it "FeedB"
 
Did you get the feed b cycle figured out? what is the defer for? I need to do some more reading in the manual..... There needs to be 48 hours in one day!! never enough time. haha
 
A better source of info than the manual is the Unofficial Users Guide stickied at the top of the forum. Give that a read, it is organized by topic, so you don't have to read it all at once. In the mean time, Defer is a particular type of delay. It delays an Outlet from changing states for a set time. It is typically used with probe measurements to buffer out minor fluctuations. For example:

If Temp < 76.0 Then ON
Defer 5:00 Then ON

This might be used to control a heater. The Defer requires that the temp be less than 76 for an uninterrupted five minutes, before changing the Outlet to ON. The defer applies to the Outlet, not the condition. So you only need one for ON and another for OFF as necessary.

Todd
 
This is what I put in the ATO pump outlet:

Fallback OFF
If Switch1 OPEN Then OFF
If Switch1 CLOSED Then ON
If Switch2 OPEN Then OFF
Defer 001:00 Then ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF


FeedA for feeding.
FeedB for maintenance.
 
How about your email warning? Did you work that in?

This is what I did:
Fallback OFF
If Switch1 OPEN Then OFF
If Switch1 CLOSED Then ON
If Switch2 CLOSED Then OFF
Defer 005:00 Then ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF

NOTE: I have my Switch2 set to CLOSED = power off because Switch1 is technically controlling the ATO. I don't want the failure of Switch2 to cause the ATO to be turned off.

And for the email alarm I added the Switch2 line:
Set OFF
If Temp > 82.0 Then ON
If Temp < 75.0 Then ON
If Power EB8_3 Off 000 Then ON
If Switch2 CLOSED Then ON
 
Last edited:
That doesn't look right. I put in the code I posted above and under email I put "If Switch2 OPEN Then ON."
It depends on how the float is configured. The most commonly used vertical mount float switches can be configured by removing the small clip at the bottom, and flipping the float 180 degrees. So you have a choice if the switch is CLOSED or OPEN when it is floating at max height. It can make a difference since the default state of the I/O channel is OPEN. So you can get unintended behavior if the switch is disconnected.

Todd
 
Back
Top