Page 1 of 1
RODI Solenoid Valve
Posted: Thu Jun 20, 2013 3:07 pm
by Drs1210
I bought a 12v RODI solenoid valve that I would like to use for my RODI reservoir, the only problem is I'm not sure how to put this in my code. I want to use two float switches, one to show that the reservoir is full, and the other to show that it is low. The valve is normally closed, so I want the RA to turn on a port once the low float switch is turned on, and to turn it back off once the high float switch is set.
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 3:15 pm
by rimai
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 3:23 pm
by Drs1210
Is the 60 for how many seconds it will run? If so, I will need it to run for much longer then that. My reservoir is ten gallons, and I'm not to sure how long it will take to fill it completely.
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 3:28 pm
by rimai
60s is the timeout. It kills the port if it exceeds. Safety for overflow. You can change it to whatever you want.
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 3:31 pm
by Drs1210
How would you code it if you didn't want it on a timer?
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 3:35 pm
by rimai
Code: Select all
if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.On(Port1);
if (!ReefAngel.HighATO.IsActive()) ReefAngel.Relay.Off(Port1);
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 3:39 pm
by Drs1210
Thank you very much!
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 4:04 pm
by lnevo
Isnt that StandardATO() behavior?
Re: RODI Solenoid Valve
Posted: Thu Jun 20, 2013 4:12 pm
by lnevo
Nevermind...just read the whole post..