How to code BOB for a button

  • Thread starter Thread starter Yates273
  • Start date Start date
  • Tagged users Tagged users None

Yates273

Valuable Member
View Badges
Joined
Jun 1, 2018
Messages
1,688
Reaction score
1,158
Location
NJ
Rating - 0%
0   0   0
I posted this on Neptune forum also. Any input would be greatly appreciated.
I need a little help I have done some research and just want to make sure I’m doing this right. If I hook a button up to my BOB which is normally open. How do I have it act like the feed A on Fusion. Let’s say I name it button. Do I write on each item i want off
“ if button closed then off” also if I press the button and let it go will it go right back to open?
And then add
“Defer 5:00 then on” for pump?
“Defer 10:00 then on” for skimmer?
Sorry if these confusing but I’m still learning these codes. TYIA
 
The best approach is to create a virtual output to monitor the button, and include a Min Time command to specify how long the "feed mode" should remain active after you release the button:

[vFeed]
Set OFF
If Button CLOSED Then ON
Min Time 005:00 Then ON

Then add this line to any device you want to turn off during the timer:

If Output vFeed = ON Then OFF

See my tutorial on Apex Feed Cycles for more details and examples: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-7-feed-cycles.715/
 
Thank you so real quick the tile I drag down for sw2 that I will rename button is the virtual outlet? or do I need to go in and make another virtual outlet?
 

HOW MUCH DOES A FISH’S FEEDING REQUIREMENTS AFFECT YOUR STOCKING DECISIONS?

  • A lot! - I avoid fish that require frequent or specialized feeding

    Votes: 11 27.5%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 6 15.0%
  • It depends on whether my nutrient export can handle it

    Votes: 6 15.0%
  • It depends on how badly I want the fish

    Votes: 10 25.0%
  • Not much. I’m willing to adjust my routine

    Votes: 9 22.5%
  • Not at all. Feeding demands don’t limit my stocking choices

    Votes: 7 17.5%
  • I usually learn about the demanding feeding schedule after buying the fish!

    Votes: 2 5.0%
  • I haven’t really considered this before

    Votes: 3 7.5%
  • Something else (see my comments in the thread)

    Votes: 1 2.5%
Back
Top
Home
Post thread…
Market
What's new