Defer on instance?

djkms

Fish Freak
Here is my code for my main sump pump:

Fallback ON
Set ON
If Switch1 CLOSED Then OFF
Defer 015:00 Then ON
If FeedA 000 Then OFF
If FeedD 002 Then OFF


I was hoping that it would only defer if the switch was closed and not defer during the feed cycles. How do I go about deferring for the switch only?

thanks for your help
 
As you discovered, Defer applies to the entire outlet rather than specific statements. The solution is to create a virtual outlet:

[SumpLow]
Set OFF
If Switch1 CLOSED Then ON
Defer 015:00 Then OFF

[Sump_Pump]
Fallback ON
Set ON
If Outlet SumpLow = ON Then OFF
If FeedA 000 Then OFF
If FeedD 002 Then OFF

SumpLow will come ON to indicate a low sump, it will then delay 15 minutes before turning OFF once Switch1 CLOSED is no longer true. Sump_Pump will be OFF whenever SumpLow is ON.

Todd
 
Thanks!

Now for my skimmer here is what I have:

Fallback ON
Set ON
If Outlet SumpFloat = ON Then OFF
Defer 030:00 Then ON
If FeedD 000 Then OFF
If FeedA 000 Then OFF

Now this will defer 30 minutes on all settings right? After feed mode is done it will come on 30minutes after and 45 minutes after SumpFloat outlet right since that has the 15 minute defer on it?
 
Last edited:
Yes. More specifically, 45 minutes after Switch1 OPENs. One thing to keep in mind, it's not a good idea to overly suppress critical float conditions. For instance, I would not want to delay indication of a high sump level. You are OK in your example, since you are delaying the release of the condition. One other recommendation, it is a bit easier to read if you name the floats for the condition. So instead of SumpFloat, call it SumpHigh or SumpLow, where ON = True and OFF = False.

Todd
 
Last edited:
Back
Top