Apex UV pump and lamp coding check please.

Oberst Hajj

Well-Known Member
View Badges
Joined
Dec 23, 2012
Messages
978
Reaction score
852
Location
Colorado
Rating - 0%
0   0   0
I would like to setup my UV Lamp to only run when the temp is below 80°, the MANIFOLD pump is running and the flow reading for Fx5_4 is greater than 225. I have this code programed into the UV_Lamp:


Fallback OFF
Set OFF
If Tmp > 81.0 Then OFF
If Output Manifold = OFF Then OFF
If FLx5_4 < 225 Then OFF
If Output ReturnPumpA = OFF Then OFF
Defer 001:00 Then ON
If Output ReturnPumpB = OFF Then OFF
Defer 003:00 Then ON

For the manifold pump, I have this code:

Fallback ON
Set ON
If Output ReturnPumpA = OFF Then OFF
If Output ReturnPumpB = OFF Then OFF
Defer 001:00 Then ON

I'd be thankful to anyone that could double check that code for me. I'm thinking I have something in the wrong order for the UV Lamp.
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,217
Location
Oregon
Rating - 0%
0   0   0
Your code doesn’t have any command to turn the UV on. This should work:


Fallback OFF
Set ON
If Tmp > 79.9 Then OFF
If Output Manifold = OFF Then OFF
If FLx5_4 < 225 Then OFF
Defer 001:00 Then ON

Also, you can’t use multiple Defer ON timers. Defer is only applied after all the conditions are evaluated. It’s basically a global option on the output. I put this illustration together to better explain it:
C039F161-87FE-40FE-AACA-E885F9AE77B0.jpeg

See my tutorial on Apex Timers for more details:
 
Back
Top