Help with Code for Failsafe ATO Reservior Refill

Biglurr54

Well-Known Member
View Badges
Joined
May 28, 2017
Messages
986
Reaction score
432
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!
 

jml1149

Active Member
View Badges
Joined
May 14, 2016
Messages
186
Reaction score
78
Rating - 0%
0   0   0
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.
 
OP
OP
B

Biglurr54

Well-Known Member
View Badges
Joined
May 28, 2017
Messages
986
Reaction score
432
Rating - 0%
0   0   0
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.
 
OP
OP
B

Biglurr54

Well-Known Member
View Badges
Joined
May 28, 2017
Messages
986
Reaction score
432
Rating - 0%
0   0   0
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
 

TOP 10 Trending Threads

DO YOU THINK TECHNOLOGICAL ADVANCEMENTS ARE MORE HELPFUL OR HURTFUL TO REEFING?

  • More helpful.

    Votes: 35 37.6%
  • More hurtful.

    Votes: 4 4.3%
  • I think it depends mostly on the technology.

    Votes: 37 39.8%
  • I think it dependsmostly on the reefer behind the technology.

    Votes: 31 33.3%
Back
Top
Home
Post thread…
Market
What's new