How to code BOB for a button

Yates273

Valuable Member
View Badges
Joined
Jun 1, 2018
Messages
1,632
Reaction score
1,178
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?
 

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