PDA

View Full Version : Programming Question


Rizup
08/02/2010, 05:53 PM
I am trying to setup the programming to automatically refill my topoff and water change containers. It isn't working quite right, but I think I may have fixed it. Any input is appreciated. Here's the setup:

I have two containers, one for top off water and one for water change water. Each container has a high and low level float switch and a float valve used as a backup fail safe. What I am trying to accomplish is that when the low switch drops, it triggers my automatic flush and bypass solenoid valves to open and then after the membrane flush is done and another two minutes of sending the DI to drain, it will open the solenoid on the container that needs filling. While the container is filling, I also have setup an hourly membrane flush (not sure if it is setup correctly though). Once the water reaches the high float, it shuts the solenoid valve and opens the flush valve for a final flush before shutting off the RO/DI system.

So with the background out of the way, here is how I have things programmed. I welcome any suggestions or advice if there is a better way to do this than what I have come up with. Thanks in advance.

OUTLET CODE:

Low_SaltMix:
If Switchx4_5 CLOSED Then OFF
If Switchx4_5 OPEN Then ON
Defer 001:00 Then ON <---- Not currently used, but could it be used to deal with sloshing?
Min Time 010:00 Then ON

Low_Top_Off:
If Switchx4_3 CLOSED Then OFF
If Switchx4_3 OPEN Then ON
Min Time 010:00 Then ON

Flush_Start:
Set OFF
If Outlet Low_Top_Off = ON Then ON
If Outlet Low_SaltMix = ON Then ON
If Outlet Flush_Done_L = ON Then OFF

Flush_Done_L:
Set OFF
If Outlet Low_Top_Off = ON Then ON
If Outlet Low_SaltMix = ON Then ON
Defer 005:00 Then ON

Bypass_Start:
Set OFF
If Outlet Low_Top_Off = ON Then ON
If Outlet Low_SaltMix = ON Then ON
If Outlet Bypass_Done = ON Then OFF

Bypass_Done:
Set OFF
If Outlet Low_Top_Off = ON Then ON
If Outlet Low_SaltMix = ON Then ON
Defer 007:00 Then ON

Flush_Hourly:
Fallback OFF
Set OFF
OSC 055:00/005:00/000:00 Then ON
If Outlet Making_Water = OFF Then OFF

Flush_End:
Set OFF
If Outlet Full_Top_Off = ON Then ON
If Outlet Full_SaltMix = ON Then ON
If Outlet Flush_Done_F = ON Then OFF

Flush_Done_F:
Set OFF
If Outlet Full_Top_Off = ON Then ON
If Outlet Full_SaltMix = ON Then ON
Defer 005:00 Then ON

Making_Water:
Set OFF
If Outlet Fill_Top_Off = ON Then ON
If Outlet Fill_SaltMix = ON Then ON

Full_Top_Off:
If Switchx4_4 CLOSED Then OFF
If Switchx4_4 OPEN Then ON
Min Time 001:00 Then OFF

Full_SaltMix:
If Switchx4_6 CLOSED Then OFF
If Switchx4_6 OPEN Then ON
Min Time 001:00 Then OFF

Bypass_Valve:
Fallback OFF
Set OFF
If Outlet Bypass_Start = ON Then ON

Flush_Valve:
Fallback OFF
Set OFF
If Outlet Flush_Start = ON Then ON
If Outlet Flush_Hourly = ON Then ON
If Outlet Flush_End = ON Then ON

Fill_SaltMix:
Fallback OFF
If Outlet Low_SaltMix = ON Then ON
Defer 007:00 Then ON
If Outlet Full_SaltMix = ON Then OFF

Fill_Top_Off:
Fallback OFF
If Outlet Low_Top_Off = ON Then ON
Defer 007:00 Then ON
If Outlet Full_Top_Off = ON Then OFF

pencil3
08/02/2010, 07:47 PM
I have something similar that uses solenoids and TDS controllers to route the water between the salt water vat and top off water vat. It's been working really good for the past few months, your more then welcome to take a look at it if you want to compare, let me know.