RODI Solenoid Valve

Do you have a question on how to do something.
Ask in here.
Post Reply
Drs1210

RODI Solenoid Valve

Post 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.
You do not have the required permissions to view the files attached to this post.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: RODI Solenoid Valve

Post by rimai »

Try this:

Code: Select all

ReefAngel.StandardATO(Port1,60);
Roberto.
Drs1210

Re: RODI Solenoid Valve

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: RODI Solenoid Valve

Post by rimai »

60s is the timeout. It kills the port if it exceeds. Safety for overflow. You can change it to whatever you want.
Roberto.
Drs1210

Re: RODI Solenoid Valve

Post by Drs1210 »

How would you code it if you didn't want it on a timer?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: RODI Solenoid Valve

Post by rimai »

Code: Select all

if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.On(Port1);
if (!ReefAngel.HighATO.IsActive()) ReefAngel.Relay.Off(Port1);
Roberto.
Drs1210

Re: RODI Solenoid Valve

Post by Drs1210 »

Thank you very much!
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: RODI Solenoid Valve

Post by lnevo »

Isnt that StandardATO() behavior?
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: RODI Solenoid Valve

Post by lnevo »

Nevermind...just read the whole post..
Post Reply