Multiple part cooling fans on one tool



  • I was just wondering if it'd be possible to assign 2 part cooling fans (attached to Fan0 and Fan1) to one tool so that when an M106 command is sent it turns on both? (I have my hotend cooling fan connected to always on.)



  • Just connect two fans in parallel to one PWM output, David informs me the fan headers should be good for up to 2 amps each so unless your fans are massive it should be fine. Works out even better if you've gone 24v but want to use 12v fans, just wire two in series to one fan output.



  • That's easy enough. I was just trying to keep everything going 1-1 (easier in the long run to make changes to the configuration of fans, hotends, probes, etc.) Thanks!


  • administrators

    Yes you can assign 2 fans to 1 tool using the fan mapping facility in the M563 tool definition command, for example:

    M563 P0 D1 D0 F0:1

    When tool 0 is selected, sending M106 S# without a P parameter will control both fans. When no tool is selected, only fan 0 will be controlled.



  • Fantastic! I was wondering if there was a way to include both fan positions on one M563 line (glad to see there is!) Nice and elegant solution.



  • I just tried this as I have 2 fans and only one tool My line is this

    M563 P0 D0 H1 F0:1

    But only fan 0 works. If I manually select fan 2 it runs fine.



  • And just for reference here is the tools and fans

    ; Fans
    ;M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P2 S1 I0 F500 H1 T55 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off

    ; Tools
    M563 P0 D0 H1 F0:1 ; Define tool 0
    G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C


  • administrators

    Both fans should run if the tool is already selected when you send the M106 command, but if it isn't selected then only fan 0 will run.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.