Fan Allocations and Remapping
-
There are two things going on here:
-
Remapping fan numbers to different hardware ports using the A parameter in the M106 command. You can have up to 9 fans on the Duet WiFi/Ethernet, numbered 0 to 8.
-
Specifying in your M563 too definition command which fan(s) are the print cooling fans for that tool. These are the fans that M106 commands with no P parameter will be directed to. When no tool is selected, M106 commands with no P parameter will be directed to fan 0 (which you may have remapped to a different output connector, see #1).
The simplest approach if you don't have a DueX in your system is probably to map fan 3 to the heater output, then fans 0-2 will all behave as before.
-
-
Hi @dc42
If I map a heater to a Fan like I have with my air pump mapping it to FAN0 with:
M307 H2 A-1 C-1 D-1 ; Disable the 2th Heater to free up for air pump
M106 P0 A2 X0.5 B0 F25000 H-1 C"Part Cooling" ; Part Cooling Fan Remap to Heater 2this obviously means that the physical FAN0 port can no longer be used? If I was to change it to:
M307 H2 A-1 C-1 D-1 ; Disable the 2th Heater to free up for air pump
M106 P4 A2 X0.5 B0 F25000 H-1 C"Part Cooling" ; Part Cooling Fan Remap to Heater 2and change my tool parameters to:
M563 P0 D0 H0 F4 S"Extruder" ; Define tool 0 Heatert 0 Fan 4
when cura is creating the gcode file it is obviously writing M106 Snn with no fan specified and then does duet interpret this and map it to FAN0 or what is allocated to the tool specified? If I was to use the FAN0 port for my radiator having mapped the air pump to FAN4 as above as well as specifying that FAN4 is the part cooling fan of tool zero, would this work?
Kind Regards,
Sam
-
I know David is busy so I'll try and help if I can. I think David has answered your question with this
"When no tool is selected, M106 commands with no P parameter will be directed to fan 0 (which you may have remapped to a different output connector, see #1)".
So as long as your slicer (Cura) sends a "T0" command at the start of the gCode file, then any subsequent M106 in that file will be directed to whichever fan has been mapped to tool 0.
Does that help?
-
Yeah I saw his post late last week about that. He is a busy man.
Yes that clears things up greatly for me thank you. I just wasn't sure how the Duet interpreted the GCODE file. I will have to specify a tool in my start gcode in Cura.
Thank you once again. Hopefully this sorts it out.
Kind Regards,
Sam
-
I have just seen that Cura now allows you to select the part cooling fan number. I have no idea when this happened but it is in the extruder settings in the machine settings part.
Sam
-
And it seems to work. I selected fan 3 in the settings and this is what I am getting in the gcode file
G0 X183.222 Y187.475
G0 X183.235 Y187.486
G0 X182.101 Y187.716
;MESH:NONMESH
G0 X182.982 Y187.55
;TIME_ELAPSED:19.312879
;LAYER:2
M106 S59.5 P3
;MESH:PULLEY Spacer.stl
G0 F7200 X182.982 Y187.55 Z0.6
;TYPE:WALL-INNER
G1 F1200 X182.927 Y187.594 E0.00211
G1 X182.733 Y187.746 E0.00738This has sorted my issues
Kind Regards,
Sam -
@samlogan87 said in Fan Allocations and Remapping:
Hi @dc42
If I map a heater to a Fan like I have with my air pump mapping it to FAN0 with:
M307 H2 A-1 C-1 D-1 ; Disable the 2th Heater to free up for air pump
M106 P0 A2 X0.5 B0 F25000 H-1 C"Part Cooling" ; Part Cooling Fan Remap to Heater 2this obviously means that the physical FAN0 port can no longer be used?
The FAN0 port would then be free and you should be able to use it as a GPIO or servo output.
If I was to change it to:
M307 H2 A-1 C-1 D-1 ; Disable the 2th Heater to free up for air pump
M106 P4 A2 X0.5 B0 F25000 H-1 C"Part Cooling" ; Part Cooling Fan Remap to Heater 2and change my tool parameters to:
M563 P0 D0 H0 F4 S"Extruder" ; Define tool 0 Heatert 0 Fan 4
when cura is creating the gcode file it is obviously writing M106 Snn with no fan specified and then does duet interpret this and map it to FAN0 or what is allocated to the tool specified? If I was to use the FAN0 port for my radiator having mapped the air pump to FAN4 as above as well as specifying that FAN4 is the part cooling fan of tool zero, would this work?
Yes that should work.
-
@samlogan87 I'm glad you are sorted but to be honest, if I were you I'd try and get the configuration right on the printer, so that you don't have to rely on putting the correct fan settings in the slicer. You might change to a different slicer in say a years time, and forget what you did. Or the other slicer that you'd really like to use only supports M106 without any additional parameters. IMO it's generally best if the printer configuration is as "slicer agnostic" as possible.
-
Hi @deckingman
Yeah you are probably right. In my GCODE test file I did yesterday this is what was at the top of the file
T0
M190 S80
M104 S230
M109 S230As it is specifying T0, I am guessing all I need to do is specify the Fan in the tool configuration and I will be sorted?
Kind Regards,
Sam -
@samlogan87 said in Fan Allocations and Remapping:
As it is specifying T0, I am guessing all I need to do is specify the Fan in the tool configuration and I will be sorted?
Yes, exactly so.
-