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