Apex Defer Cancelation

NoFoolin

Community Member
View Badges
Joined
Jul 23, 2019
Messages
39
Reaction score
40
Location
Grand Rapids
Rating - 0%
0   0   0
I put in some new momentary buttons for the Apex break out box and added some virtual outputs. I need some help with the virtual outlet programming below.

Set OFF
If SW60mn CLOSED Then ON
Defer 060:00 Then OFF
If SwCanc CLOSED Then OFF

SW60mn is a momentary switch that activates the outlet which would shut off some equipment while I do maintenance for an hour. When activated the outlet stays on for 60 minutes. I was hoping to have a second momentary switch, SwCanc, to turn off the outlet should I finish maintenance early. The program above does not cancel the countdown when I press SwCanc.
 

Tastee

Valuable Member
View Badges
Joined
Oct 19, 2018
Messages
1,124
Reaction score
891
Location
Sydney, Australia
Rating - 0%
0   0   0
I think you will need a couple of VOs to achieve this. Here is an example.

[MaintTimer]
Set OFF
If SW60mn CLOSED Then ON
Defer 060:00 Then OFF

[MaintMode]
Set OFF
If Output MaintTimer = ON Then ON
If SWCanc CLOSED Then OFF

You can then use the state of MaintMode to control your outputs.
 

vetteguy53081

Well known Member and monster tank lover
View Badges
Joined
Aug 11, 2013
Messages
91,671
Reaction score
202,247
Location
Wisconsin -
Rating - 100%
13   0   0
These commands are usually found in fusion
 
OP
OP
NoFoolin

NoFoolin

Community Member
View Badges
Joined
Jul 23, 2019
Messages
39
Reaction score
40
Location
Grand Rapids
Rating - 0%
0   0   0
I think you will need a couple of VOs to achieve this. Here is an example.

[MaintTimer]
Set OFF
If SW60mn CLOSED Then ON
Defer 060:00 Then OFF

[MaintMode]
Set OFF
If Output MaintTimer = ON Then ON
If SWCanc CLOSED Then OFF

You can then use the state of MaintMode to control your outputs.
I see where you are going and I am already using such a scheme. However, the cancellation virtual outlet would need a long defer command as well. The timer on the cancellation defer would prevent the use of other defer commands. In other words, I can't restart the maintenance mode until the cancellation timer runs out. For example, I perform some maintenance and think I'm done so I push the cancellation button. Then I discover that I have a leak or something. I could no longer active the maintenance mode until the cancellation timer has completed.

I realize that I could use the app at any time but I was just hoping for an app free option because this is a work tank and not all employees have access to the app. Those that do rarely use it and probably don't understand or forget how to use it. I am trying to make a dummy proof system for when I am on vacation.
 

Clear reef vision: How do you clean the inside of the glass on your aquarium?

  • Razor blade

    Votes: 132 59.7%
  • Plastic scraper

    Votes: 64 29.0%
  • Clean-up crew

    Votes: 78 35.3%
  • Magic eraser

    Votes: 39 17.6%
  • Other

    Votes: 63 28.5%
Back
Top