Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Fan Allocations and Remapping

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    remapping fans
    3
    12
    646
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dc42undefined
      dc42 administrators
      last edited by

      There are two things going on here:

      1. 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.

      2. 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.

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 0
      • samlogan87undefined
        samlogan87
        last edited by

        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 2

        this 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 2

        and 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

        Custom Core-XY

        deckingmanundefined dc42undefined 2 Replies Last reply Reply Quote 0
        • deckingmanundefined
          deckingman @samlogan87
          last edited by deckingman

          @samlogan87

          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?

          Ian
          https://somei3deas.wordpress.com/
          https://www.youtube.com/@deckingman

          1 Reply Last reply Reply Quote 0
          • samlogan87undefined
            samlogan87
            last edited by

            @deckingman

            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

            Custom Core-XY

            1 Reply Last reply Reply Quote 0
            • samlogan87undefined
              samlogan87
              last edited by

              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

              Custom Core-XY

              1 Reply Last reply Reply Quote 0
              • samlogan87undefined
                samlogan87
                last edited by

                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.00738

                This has sorted my issues 😀

                Kind Regards,
                Sam

                Custom Core-XY

                deckingmanundefined 1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators @samlogan87
                  last edited by dc42

                  @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 2

                  this 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 2

                  and 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.

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • deckingmanundefined
                    deckingman @samlogan87
                    last edited by

                    @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.

                    Ian
                    https://somei3deas.wordpress.com/
                    https://www.youtube.com/@deckingman

                    1 Reply Last reply Reply Quote 0
                    • samlogan87undefined
                      samlogan87
                      last edited by

                      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 S230

                      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?

                      Kind Regards,
                      Sam

                      Custom Core-XY

                      deckingmanundefined 1 Reply Last reply Reply Quote 0
                      • deckingmanundefined
                        deckingman @samlogan87
                        last edited by

                        @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.

                        Ian
                        https://somei3deas.wordpress.com/
                        https://www.youtube.com/@deckingman

                        1 Reply Last reply Reply Quote 0
                        • samlogan87undefined
                          samlogan87
                          last edited by

                          @deckingman perfect thank you. You are very helpful as always.

                          Kind Regards,

                          Sam

                          Custom Core-XY

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA