Page 1 of 1
Tunze min speed for short pulse
Posted: Wed Jan 01, 2014 12:07 am
by carlii
Is there a way I can set my Tunze pumps minimum speed to 30 when using the internal memory function for short pulse? The Tunze pumps cut off when their value is below 30 and clicks when it comes back on. I want it to pulse from 30 to 70 or so, but I like using the portal to tune the action.
Re: Tunze min speed for short pulse
Posted: Wed Jan 01, 2014 10:22 am
by rimai
We can do that.
Do you plan on using all modes or just short pulse?
Re: Tunze min speed for short pulse
Posted: Wed Jan 01, 2014 11:33 am
by carlii
Short pulse is all I want to experiment with right now. The only other mode I use is Reefcrest which works fine.
Re: Tunze min speed for short pulse
Posted: Wed Jan 01, 2014 12:45 pm
by rimai
Try this:
Code: Select all
ReefAngel.DCPump.UseMemory=false;
ReefAngel.PWM.SetActinic(ShortPulseMode(30,InternalMemory.DCPumpSpeed_read(),InternalMemory.DCPumpDuration_read()*10,ReefAngel.DCPump.ActinicChannel-1));
ReefAngel.PWM.SetDaylight(ShortPulseMode(30,InternalMemory.DCPumpSpeed_read(),InternalMemory.DCPumpDuration_read()*10,ReefAngel.DCPump.DaylightChannel-1));
Re: Tunze min speed for short pulse
Posted: Wed Jan 01, 2014 2:16 pm
by carlii
Could you help me code this for 3 pumps on an expansion pwm unit? I am drawing a blank.
Re: Tunze min speed for short pulse
Posted: Wed Jan 01, 2014 3:27 pm
by ReEfnWrX
I think this is what you are looking for, although someone else may need to verify the code... I am not sure if at the end the -None is correct... I think that refers to sync or anti sync
Code: Select all
ReefAngel.PWM.SetChannel (0, ShortPulseMode(30,InternalMemory.DCPumpSpeed_read(),InternalMemory.DCPumpDuration_read()*10,ReefAngel.DCPump.ExpansionChannel[0]-None));
ReefAngel.PWM.SetChannel (1, ShortPulseMode(30,InternalMemory.DCPumpSpeed_read(),InternalMemory.DCPumpDuration_read()*10,ReefAngel.DCPump.ExpansionChannel[1]-None));
ReefAngel.PWM.SetChannel (2, ShortPulseMode(30,InternalMemory.DCPumpSpeed_read(),InternalMemory.DCPumpDuration_read()*10,ReefAngel.DCPump.ExpansionChannel[2]-None));
Re: Tunze min speed for short pulse
Posted: Thu Jan 02, 2014 1:37 pm
by carlii
Ok, This is working now that I removed the DCPump definitions earlier in my code. I now need to play with the sync settings. Thanks.