Welcome! Log In Create A New Profile

Advanced

Fan ON/OFF control for Dual extrusion - Marlin

Posted by Mohan Muthusamy 
Fan ON/OFF control for Dual extrusion - Marlin
October 10, 2016 07:05PM
Hello,
Good day!!

I have a cutsomized dual extruder, for my application I have to turn ON/OFF fan for the second extruder using gcode.
M106 & M107 works only for first extruder. I couldn't exact solution to control fan for second extruder.

Could someone please help me on this.

Thanks,
Mohan
Re: Fan ON/OFF control for Dual extrusion - Marlin
October 10, 2016 08:08PM
how have you wired the second fan to your controller?

but in general M42 is the command to turn on/off additional IO pins, but you need to know what pin it is connected to

I just looked threw the code and it looks like marlin now supports multiple fans with the P parameter
eg M106 P1 S871

but you have to have the port defined in your pins_RAMPS.h
ie
#define FAN_PIN
#define FAN1_PIN
the code also shows that you need to set FAN_COUNT somewhere, but im failing to see where quickly.

Edited 1 time(s). Last edit at 10/10/2016 08:20PM by Dust.
Re: Fan ON/OFF control for Dual extrusion - Marlin
October 10, 2016 09:52PM
Yes, I have connected my second harness to my controller.

But, I didn't quite understand about defining PINS, I'm using Lulzbot TAZ5 printer and just simply I connected the second harness to the RamboV1.3 controller.
Re: Fan ON/OFF control for Dual extrusion - Marlin
October 10, 2016 10:23PM
rambo... right

from the .h file I see

Fan Pins
Fan_0 8
Fan_1 6
Fan_2 2

so M42 P6 S255 or M42 P2 S255 should switch it on (depending what port you have it on)
and M42 P6 S0 or M42 P2 S0 should switch it off.


if your really lucky M106 P1 S255 will also turn it on (depends on version of firmware) or maybe M106 P2 S255 depending which port you used.
Re: Fan ON/OFF control for Dual extrusion - Marlin
October 11, 2016 01:10PM
Thanks a lot DUST!!!

It works !!.. So , in my case its PIN 8

M42 P8 S255 turns ON and M42 P8 S0 turns OFF..

Thanks again!!
Sorry, only registered users may post in this forum.

Click here to login