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

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

DWill

Active Member
View Badges
Joined
Jan 11, 2020
Messages
444
Reaction score
375
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/
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top