Im a pretty good programmer for apex code, but this one is stumping me.
I have a water barrel for new salt water and a pail for housing fresh water for and ATO, and a momentary switch. I have the barrel and pail connected directly to RO/DI with a 'tee'. When the barrel is empty, it automatically fills and when the barrel is full is stops. It does not fill again until empty. So if i use some for a water change, it will still not refill if its half full, unless I decide to flip a momentary switch to refill the barrel if it is under the full amount. The pail fills with RO/DI when required.
What I want to do is if the barrel is filling, and the pail needs to fill, I want the barrel to pause its filling, essentially closing its solenoid until the pail is fill and its solenoid is turned back off, with having the barrel resume its filling if its in filling mode.
Any ideas?
Here is my code with my new programming to facilitate this action, yet it won't work like i want it to because the StMxRFswt will keep ON as soon as the top of the barrels optical in open again, so if a water change is done, it will want to fill right away.
StMxRefill (barrel solenoid)
Fallback OFF
If SltMxE OPEN Then ON
If Output StMxRFswt = ON Then ON
If Output StMxRFswt = OFF Then OFF
If Output FWsolenoid = ON Then OFF
If Refill CLOSED Then ON
If SltMxF CLOSED Then OFF
Min Time 000:02 Then ON
StMxRFswt (VO)
Set On
If SltMxF OPEN Then ON
If SltMxF CLOSED Then OFF
If Output StMxRefill = OFF Then OFF
If SltMxE OPEN Then ON
FWsolenoid (pail solenoid)
Fallback OFF
If FWmin OPEN Then ON
If FWmax CLOSED Then OFF
When On > 120:00 Then OFF
Defer 000:10 Then OFF
If FWleak CLOSED Then OFF
SltMxE (bottom barrel optical)
SltMxF (top barrel optical)
Refill (momentary switch)
Let me know if you require any more info. thanks in advance.
Bookmarks