Troubleshooting Defer Code

reeferericb

Active Member
View Badges
Joined
Nov 1, 2020
Messages
308
Reaction score
197
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
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top