Check my APEX AWC Code

Biglurr54

Well-Known Member
View Badges
Joined
May 28, 2017
Messages
986
Reaction score
444
Rating - 0%
0   0   0
I need someone to look over my Automatic water change code. I think this is right. My goal is to have the water change 2x a day and when feedc is pressed.

The AWC happens like this: pump in sump plumbed to house drain and plugged into outlet AWCdrain. At a predetermined time or if feedc is pressed, the outlet turns the pump on until float switch sw3 is open then it turns the outlet off. Then a pump in the new salt water plugged into AWCfill comes on until float switch 1 is open.
Float switch sw1 is open at normal operating sump level and it is used for top off.
Float switch sw2 is closed at normal operating sump level and is a fail safe for over filling sump.
Float switch sw3 is closed at normal operating sump level. This switch is below sw1 and it set to a predetermined height which is 1.5 gallons below sw1.

How does this code look:
AWCDrain
Fallback off
Set off
If AWC Virt on then on
If on > 002:00 then off
If sw3 open then off

AWCFill
Fallback off
Set off
If AWCvirt on then on
Defer 003:00 then on
If Sw1 open then off
If sw2 closed then off

AWC Virt.
Fall back off
Set off
If Feedc 004:00 then on
If time 07:00 to 07:05 then on
If time 19:00 to 19:05 then on
If Condx5 < 34.0 Then OFF
If Condx5 > 37.0 Then OFF
If Output Return16 = OFF Then OFF
If Output KillSwitch = ON Then OFF
If Output AWCproblem = ON Then OFF
If Output MixResFill28 = ON Then OFF
 

radiata

Valuable Member
View Badges
Joined
Nov 2, 2015
Messages
1,089
Reaction score
764
Rating - 0%
0   0   0
Following - looking to do this for 5Gal changes. What do the Return16, KillSwitch, AWCproblem and MixResFill28 virtual outlets look like?
 
OP
OP
B

Biglurr54

Well-Known Member
View Badges
Joined
May 28, 2017
Messages
986
Reaction score
444
Rating - 0%
0   0   0
return16 is the return pump.

Killswitch is a virt outlet that when on kills everything in the sump. I have a button at my sump so i can quickly hit it if needed.

AWCproblem checks the system before the AWC begins. It makes sure the sump is topped off, the salinity is within an appropriate range, and the new saltwater tank has water in it to replace what is taken out.

Mixresfill controls the RODI solenoid for the new saltwater mixing tank. If its on, then the tank is in the making water stage and cant go into the tank yet.
 
OP
OP
B

Biglurr54

Well-Known Member
View Badges
Joined
May 28, 2017
Messages
986
Reaction score
444
Rating - 0%
0   0   0
This should work my only issue it that
"If on > 002:00 then off" is not an appropriate code.

Is there a way to have an outlet turn off after 2 minutes
 
Back
Top