Neptune Virtual Outlet... coding to turn a "Alarm"

  • Thread starter Thread starter DWill
  • Start date Start date
  • Tagged users Tagged users None

DWill

Active Member
View Badges
Joined
Jan 11, 2020
Messages
444
Reaction score
363
Rating - 0%
0   0   0
Okay... I'm still trying to code a VO as a reminder that I've turned my ATO pump off and forgot to turn it back on.
I've been trying to get this to work on and off for a couple of weeks now. Still no luck, I can't believe this can't be done or that it should be this difficult.

What I'm trying to accomplish is this...
A VO (ATO-OFF) that is set to turn on if the ATO-Pump output is off for XXX:XX time.
The idea of course is that I go to my ALARM and code it so that when this VO comes on I get a notification and then I know I've left the ATO switched off...

The VO name I'm coding is ATO-OFF
This is the code I've tried (and fails to work)

Fallback Off
Set Off
If Output ATO-Pump = OFF > 240:00 Then ON

What happens is I save the code and it looks like it saved and is good to go... but... when I look at the code APEX has changed it to read:
Fallback OFF
SET OFF
If OUTPUT ATO-PUMP = OFF THEN OFF

So.. what am I doing wrong and how do I make it work.
 
I do this based on how long my ATK_LO sensor has been dry rather than how long since the pump ran:

[AlertATO_Off]
Set OFF
If ATK_LO OPEN Then ON
Defer 090:00 Then ON

[EmailAlm]
Set OFF
If Output AlertATO_Off = ON Then ON

If you'd rather base it on your pump output status, use this:

[ATO-OFF]
Set OFF
If Output ATO-Pump = OFF Then ON
Defer 240:00 Then ON

[EmailAlm]
Set OFF
If Output ATO-OFF = ON Then ON

The key to this is the Defer command. See my tutorial on Apex Timers for an overview of how Defer works: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/

See my tutorial on Apex Alarm Programming for additional tips: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-6-alarms.707/
 

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: 13 28.9%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 6 13.3%
  • It depends on whether my nutrient export can handle it

    Votes: 6 13.3%
  • It depends on how badly I want the fish

    Votes: 11 24.4%
  • Not much. I’m willing to adjust my routine

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

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

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

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

    Votes: 1 2.2%
Back
Top
Home
Post thread…
Market
What's new