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/
 

TOP 10 Trending Threads

HOW MUCH DOES A FISH’S FEEDING REQUIREMENTS AFFECT YOUR STOCKING DECISIONS?

  • A lot! - I avoid fish that require frequent or specialized feeding

    Votes: 21 32.8%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 9 14.1%
  • It depends on whether my nutrient export can handle it

    Votes: 9 14.1%
  • It depends on how badly I want the fish

    Votes: 13 20.3%
  • Not much. I’m willing to adjust my routine

    Votes: 10 15.6%
  • Not at all. Feeding demands don’t limit my stocking choices

    Votes: 12 18.8%
  • I usually learn about the demanding feeding schedule after buying the fish!

    Votes: 2 3.1%
  • I haven’t really considered this before

    Votes: 4 6.3%
  • Something else (see my comments in the thread)

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