Apex UV pump and lamp coding check please.

Oberst Hajj

Well-Known Member
View Badges
Joined
Dec 23, 2012
Messages
978
Reaction score
808
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.
 
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:
https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
 

HOW LONG HAVE YOU HAD YOUR LONGEST-SERVING CURRENT TANK RESIDENT?

  • Less than 1 year

    Votes: 5 9.8%
  • 1 - 3 years

    Votes: 12 23.5%
  • 3 - 5 years

    Votes: 3 5.9%
  • 5 - 10 years

    Votes: 18 35.3%
  • 10 - 20 years

    Votes: 5 9.8%
  • 20 years or more

    Votes: 5 9.8%
  • I don’t have livestock yet

    Votes: 1 2.0%
  • Other (Post in the comments)

    Votes: 2 3.9%
Back
Top
Home
Post thread…
Market
What's new