Apex programming help

Valhalla Reefer

Community Member
View Badges
Joined
Oct 18, 2019
Messages
90
Reaction score
89
Location
White Rock BC Canada
Rating - 0%
0   0   0
Hi I’m in the process of programming my new switchbox/breakout box for my Apex Classic.
I have my skimmer set to turn off when Return pump is OFF with a DEFER statement of 3:00 to turn back on after Return pump is back on.

Question: I’d like to also use one of the toggle switches to turn skimmer off and on like I could previously with my ADJ power bar…but because of the DEFER statement when I switch skimmer off, I can’t switch it back on…it still stays off for 3:00 min. I’ve searched but can’t seem to educate myself on the correct code to allow override of the DEFER period with toggle switch.
I’m very new to this..
Here’s the last code I tried for skimmer:

Fallback OFF
Set ON
If Sw1 OPEN Then OFF
If Output ReturnPump = OFF Then OFF
Defer 003:00 Then ON
If Sw1 CLOSED Then ON

Seems the skimmer’s DEFER action is occurring eveytime skimmer is turned off..instead of ONLY when it’s turned off because of the return pump’s output state. I guess I’m a bit lost on how to avoid this..and have control of skimmer manually and tied to return/feed cycle.

Any help would be greatly appreciated.
 

shwareefer

Valuable Member
View Badges
Joined
Jun 29, 2020
Messages
1,192
Reaction score
1,306
Location
The Shwa of course!
Rating - 0%
0   0   0
Try Min Time instead of Defer:

Fallback OFF
Set ON
If Sw1 OPEN Then OFF
If Output ReturnPump = OFF Then OFF
Min Time 003:00 Then ON
If Sw1 CLOSED Then ON
 
Upvote 0

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,212
Location
Oregon
Rating - 0%
0   0   0
Defer cannot be overridden or canceled. The only workaround for your situation is to use a virtual output that monitors the return pump and has the Defer timer to prevent the skimmer from turning on too soon after the return pump, and then just reference that virtual output in the skimmer code without any Defer:

[Skimmer_Delay] — new virtual output
Set OFF
If Output ReturnPump = OFF Then ON
Defer 003:00 Then OFF

[Skimmer]
Fallback OFF
Set ON
If Sw1 OPEN Then OFF
If Output Skimmer_Delay = ON Then OFF

If you’re not familiar with virtual outputs, read my tutorial here:
 
Upvote 0
OP
OP
Valhalla Reefer

Valhalla Reefer

Community Member
View Badges
Joined
Oct 18, 2019
Messages
90
Reaction score
89
Location
White Rock BC Canada
Rating - 0%
0   0   0
Defer cannot be overridden or canceled. The only workaround for your situation is to use a virtual output that monitors the return pump and has the Defer timer to prevent the skimmer from turning on too soon after the return pump, and then just reference that virtual output in the skimmer code without any Defer:

[Skimmer_Delay] — new virtual output
Set OFF
If Output ReturnPump = OFF Then ON
Defer 003:00 Then OFF

[Skimmer]
Fallback OFF
Set ON
If Sw1 OPEN Then OFF
If Output Skimmer_Delay = ON Then OFF

If you’re not familiar with virtual outputs, read my tutorial here:
Appreciated greatly thanks!
 
Upvote 0
Back
Top