Help with Code for Failsafe ATO Reservior Refill

Biglurr54

Well-Known Member
View Badges
Joined
May 28, 2017
Messages
986
Reaction score
444
Rating - 0%
0   0   0
I need help writing code for my ATO reservoir refill.


I have a 15 gallon ato reservoir that I have plumbed up to my RODI. I have a 12v solenoid and 12v power supply, and two float switches wired up. I would like to set up the reservoir so it will send me an alert when the reservoir gets low, then I can manually engage the outlet for the solenoid. Then when it if full the ATO Reservoir resets until it is low again.


The reason I want this is to prevent the ATO from sticking on for whatever reason, and the RODI just ends up dumping endless RODI into the reservoir and then the stuck ATO dumps that into the tank. My goal is, in case of complete ATo failure, SW2 failure, the most ATO water that can be put into the tank will be 15 gallons. If I am the one to give permission to refill the ATO reservoir, I can monitor the frequency to ensure it is not cycling due to a stuck on ATO.

This will be my first advanced code!
 
I assume this is for an APEX? Are both of your float switches in the RODI bucket here?

So you're talking about a system completely for the RODI, and isolated from the tank, correct? I do something similar with Apex code, and some things I think are neat with the WHEN command.
 
Yes this is an apex.

Float switches are:

Sw1=low limit in sump
Sw2=high limit in sump
Sw3=low limit in rodi res
Sw4=high limit in rodi res

I have to do something similar with my water changing barrel too.

I'm interested in the when programming.
 
Oh so how does this code look. The idea is I will have notification sent when Sw3 is Closed. Then I will go to fusion and turn my ATO Res Fill outlet (solenoid) to auto. The outlet will turn on when Sw3 is closed indicating a low ATO Res. The outlet will stay on until SW4 is closed indicating that it is full. Then it will turn the outlet to Manual off. Then the cycle will repeat it self.

Does this code look right?

AtoResFill Outlet:

Fallback OFF
Set OFF
If Sw3 CLOSED Then ON
If Sw4 CLOSED Then OFF
When Off > 002:00 Then Off
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top