ATO high/low as failsafe
8 posts
• Page 1 of 1
I want to use my float switches as a fail safe for my Water Level Expansion that will run my ATO. It looks like a simple If/Then Statement should do it, but "Is on" and "Is off" are grayed out, and I don't know what other option to use.
|
|
I think you are past the point of using the wizard a long time ago
![]() You should just edit your code to accommodate what you need now. I think the best way is to use the waterlevelato function for the ATO and force it to off if there is a float trigger. Something like this:
Roberto.
|
|
Ok, just getting back to this. Regarding the Wizard, I just use it to generate specific lines of code now, and then copy/paste into my saved sketch. I'm doing all of this on the bench, hoping to get it right before installation (planned for today or tomorrow). I can't test the high ATO as I'm using the Multi-channel Water Expansion module for my main ATO, and it hasn't been attached or calibrated. On the low ATO side, I'm trying to shut-off my main pump as I want this failsafe to protect the pump and warn me that the water level has gotten too low. I've tried to code turning-off the main pump, but the main pump is just always off. Here is what I added:
This is my entire code:
Basically, I can't make the low ATO work. It acts as if the switch is always active so the main pump's port is always off. Also a question, since both my high and low ATO are only turning off ports, do I need to do anything with delays? |
|
The ! sign means not.
When the float is not floating, it is active and when it is floating, it is not active. So, you should remove the ! sign when using it as low ciut off switch. Roberto.
|
|
Update: with the code below, clearing ATO doesn't reinstate Port 4 (main pump). Rebooting does reinstate Port 4, but moving the float to an inactive position doesn't reinstate (probably a good thing as when the main pump turns off, the sump level will rise, making inactive pretty quickly. It seems rebooting to reinstate is a little cryptic, but I'm not sure there is better logic. I don't really want the main pump to go back and forth on/off as water leaves and then returns to sump. Thoughts?
|
|
I accidentally posted the first code that didn't work. The new code didn't work either, until I reset the controller. See response above. |
|
I guess "Clear ATO" is resetting ports identified as "ATO" as opposed to doing something with the ATO code. Since my main pump is an always on relay (not a water level/ATO), the only way to reset is to reset the controller... makes sense.
|
|
I had the same problem with a similar setup
I just had to add an else statement and it's working now. Mine is
You can put in the ! To flip the logic..... or just Flip the floats switches lol. Weird thing is my old code from years ago didn't need that else. Believe it or not.... I can ask even stupider questions than this one.
|
|
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests