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?
 

TOP 10 Trending Threads

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: 38 54.3%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 32 45.7%
Back
Top
Home
Post thread…
Market
What's new