Troubleshooting Defer Code

reeferericb

Active Member
View Badges
Joined
Nov 1, 2020
Messages
309
Reaction score
187
Location
Hallsville
Rating - 0%
0   0   0
I want my mixing pump to turn off two hours after I turn it on. I manually switch the pump to on, then back to manual. It will run for days until I check it and manually turn it back off.


Fallback OFF
Set OFF
If Output Mixing_Pump = ON Then ON
Defer 120:00 Then OFF
 

Tastee

Valuable Member
View Badges
Joined
Oct 19, 2018
Messages
1,124
Reaction score
872
Location
Sydney, Australia
Rating - 0%
0   0   0
I have tried a few times to have an outlet reference itself however in all cases the code failed to work as it should. In a true state machine this should be possible however in the Neptune implementation this appears to be a limitation you can’t work around.

If you use an external trigger to turn on your mixing pump (e.g. a feed cycle) then this is quite easy to do however, e.g. the way the standard Neptune AWC wizard works.
 

homer1475

Figuring out the hobby one coral at a time.
View Badges
Joined
Apr 24, 2018
Messages
11,818
Reaction score
17,606
Location
Way upstate NY
Rating - 0%
0   0   0
You cannot reference the same outlet in a line of code.

Makes perfect sense to me. The outlet would never be on, unless you turned it on manually. Then that would negate the "auto" function.

I personally would just reference a feed mode, or get a breakout box with a push button and reference that switch in the line of code.

Fallback off
set off
If feedD = on then on

Then change the feed mode time to how ever long you want the pump to be on.

If using a break out box with a push button(lets call the push button Mixing_Pump)

Fallback off
set off
if Mixing_pump closed(or "open" depending on switch state) then on
defer 120:00 then off
 

TOP 10 Trending Threads

Back
Top