Wp40 feed mode

Expansion modules and attachments
Post Reply
jjdezek
Posts: 329
Joined: Fri May 17, 2013 1:35 pm

Wp40 feed mode

Post by jjdezek »

I have my wp40 hooked up to the PWM port on the relay box and when I select feed mode it doesn't change it. How can I set the PWM ports on the relay box to turn off during feed mode?
Image
ReeferBee
Posts: 55
Joined: Wed May 08, 2013 6:23 pm
Location: North GA

Re: Wp40 feed mode

Post by ReeferBee »

Code: Select all

if( ReefAngel.DisplayedMenu==FEEDING_MODE )
 {
   ReefAngel.PWM.SetActinic(0);
   ReefAngel.PWM.SetDaylight(0);
}
depending on which pwm port your wp40 is connected to you may need to take away daylight or actinic.
Last edited by ReeferBee on Fri Jun 07, 2013 2:21 pm, edited 5 times in total.
Barry

Current tank info: 150g mixed reef

"Some of the worst mistakes of my life were hair cuts" -Jim Morrison
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wp40 feed mode

Post by binder »

jjdezek wrote:I have my wp40 hooked up to the PWM port on the relay box and when I select feed mode it doesn't change it. How can I set the PWM ports on the relay box to turn off during feed mode?
You could do something like this:

Code: Select all

if ( ReefAngel.DisplayedMenu == FEEDING_MODE ) {
    ReefAngel.PWM.SetDaylight(0);
} else {
    ReefAngel.PWM.SetDaylight(100);
}
That would set the PWM Daylight port to 0 when you are in feeding mode then back to 100% when not in feeding mode.
What you would do, is put your standard controlling mode/functionality in the else statement where I set the PWM percent to 100%. There are lots of other examples on the forum, you just need to search for FEEDING_MODE and that should give you examples.
jjdezek
Posts: 329
Joined: Fri May 17, 2013 1:35 pm

Re: Wp40 feed mode

Post by jjdezek »

So I just put that in the place custom code space?
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Wp40 feed mode

Post by lnevo »

I would go with reeferbee's code and make sure it is the last thing before the

////place custom code above this line
jjdezek
Posts: 329
Joined: Fri May 17, 2013 1:35 pm

Re: Wp40 feed mode

Post by jjdezek »

Ok cool thanks.
Image
Post Reply