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,226
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:
 

Just grow it: Have you ever added CO2 to your reef tank?

  • I currently use a CO2 with my reef tank.

    Votes: 8 6.1%
  • I don’t currently use CO2 with my reef tank, but I have in the past.

    Votes: 5 3.8%
  • I have never used CO2 with my reef tank, but I plan to in the future.

    Votes: 6 4.6%
  • I have never used CO2 with my reef tank and have no plans to in the future.

    Votes: 106 80.9%
  • Other.

    Votes: 6 4.6%
Back
Top