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

WHAT’S YOUR MOST MEMORABLE EXPERIENCE WITH A CORAL THAT LOOKED LIKE IT MIGHT NOT MAKE IT?

  • I’ve seen a dramatic comeback. I would have sworn it was a goner

    Votes: 13 46.4%
  • A slow recovery, and it got back to looking healthy

    Votes: 4 14.3%
  • It came back some, but never looked as good as it used to

    Votes: 3 10.7%
  • I tried to save one, but it didn’t make it

    Votes: 2 7.1%
  • Mine is still struggling...no comeback yet

    Votes: 3 10.7%
  • I’ve never had a coral in serious trouble

    Votes: 0 0.0%
  • See, this is why I don’t keep corals

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

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