I have the output of my RODI split and going to two solenoid valves. The valves are controlled by the two 24 volt ports on the Energy Bar. One solenoid valve (SV_ATO) controls water to my 5 gallon ATO reservoir and the other valve (SV_RO) sends water to my 30 gallon salt mixing tank.
I would like to program SV_RO not to turn ON if SV_ATO is ON. And I think I got that code figured out.
(SV_RO)
1 Fallback OFF
2 If OUTPUT SV_ATO = ON Then OFF
3 If RO_PB5 CLOSED Then ON (this is a momentary push button switch)
4 If RO_FL6 OPEN Then OFF (this is a float switch)
The push button turns on the solenoid and starts filling the mixing tank with RODI water. When the tanks is full the float switch turns off the solenoid.
What I would like is to push the button (RO_PB5) and have RODI water go to my 30 gallon mixing tank unless SV_ATO is already ON, then I want it to wait for the 5 gallon ATO reservoir to finish filling and then start filling the mixing tank. This all kicks off with just one push of the button switch RO_PB5.
How do I make the program keep looping and checking the status of SV_ATO?
Do I need some kind of DEFER statement?
Do I need the code If OUTPUT SV_ATO = OFF Then ON?
Can this be done with a momentary contact switch or would a regular toggle switch be better?
The solenoid SV_RO must turn off and the program end when the float switch is tripped and I didn't know how else to make that work without using a momentary contact push button switch. Thanks.
Bookmarks