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
 
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.
 
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
 

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 50 54.9%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 41 45.1%
Back
Top
Home
Post thread…
Market
What's new