Troubleshooting Defer Code

reeferericb

Active Member
View Badges
Joined
Nov 1, 2020
Messages
309
Reaction score
187
Location
Hallsville
What state or country do you live in
Missouri
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
 

TOP 10 Trending Threads

As a buyer, how important are auctions to you on the NEW market?

  • As a buyer I like them

    Votes: 23 37.1%
  • As a buyer I don’t care for them

    Votes: 25 40.3%
  • I don’t care either way.

    Votes: 14 22.6%
Back
Top
Home
Post thread…
Market
What's new