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

    Retraction on the fly

    Scheduled Pinned Locked Moved
    General Discussion
    6
    19
    3.7k
    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.
    • Mike_Fundefined
      Mike_F
      last edited by

      Hi,

      Is it possible to alter the retraction distance on the fly? It would make it so much easier to fine tune the printer if I could. I have played about with pressure advance and concluded that, with my setup and bowden tube, I cannot find the sweet spot so I am reverting to retraction alone which has been working pretty well in the past. Not got it right yet hence my question.

      Mike

      OpenBeam Kossel Pro, Duet WiFi, 5" PanelDue, BondTech extruder, E3Dv6 1.75mm Hotend.

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

        Yes. Configure your slicer to generate firmware retraction commands instead of explicit retraction, then you can adjust retraction on-the-fly using M207. There will be a delay of a few seconds before the new retraction value is used.

        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
        • Dougal1957undefined
          Dougal1957
          last edited by

          If you use Firmware retraction then yes you can which Slicer are you using

          This is the command I used to use with S3D

          M207 S1.5 R-0.1 F3600 T1200 Z0.1

          This can be sent whenever you wish so can indeed be done on the fly but your slicer needs to be able to output FW Retraction commands

          in the above command S is retraction distance R is un-retraction distance (undo distance = S + R) F is speed to retract T is un-retract speed and Z is Z hop

          HTH Doug

          1 Reply Last reply Reply Quote 0
          • adavidmundefined
            adavidm
            last edited by

            @Mike_F:

            Hi,

            Is it possible to alter the retraction distance on the fly? It would make it so much easier to fine tune the printer if I could. I have played about with pressure advance and concluded that, with my setup and bowden tube, I cannot find the sweet spot so I am reverting to retraction alone which has been working pretty well in the past. Not got it right yet hence my question.

            Mike

            Yes, take a look at M207:

            https://duet3d.com/wiki/G-code#M207:_Set_retract_length

            You'll need to configure your slicer to use firmware retraction, the Gcode emitted should contain G10 and G11 commands for retract and unretract, respectively.

            As far as I can know, you can issue M207 on-the-fly to tune the parameters.

            using M207, you can also use different feed rates for retract and unretract. There is some research that shows a slower unretract could be beneficial.

            adavidm

            1 Reply Last reply Reply Quote 0
            • Dougal1957undefined
              Dougal1957
              last edited by

              Looks like 3 of us all answered at the same time

              1 Reply Last reply Reply Quote 0
              • Mike_Fundefined
                Mike_F
                last edited by

                And all three have been very useful, thank you.

                I use S3D so now need to find out how to configure it.

                OpenBeam Kossel Pro, Duet WiFi, 5" PanelDue, BondTech extruder, E3Dv6 1.75mm Hotend.

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

                  @Mike_F:

                  And all three have been very useful, thank you.

                  I use S3D so now need to find out how to configure it.

                  S3D is odd, to configure firmware retraction you need to un-check "Retraction" in the Extruder tab and check "Include M101/M102/M103 commands" in the GCode tab of the process settings.

                  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
                  • Mike_Fundefined
                    Mike_F
                    last edited by

                    Do I simply uncheck the Retraction box under Ooze control and then add the M207 command to the script for retraction? If so, do I have to do this for all my processes in S3D?

                    OpenBeam Kossel Pro, Duet WiFi, 5" PanelDue, BondTech extruder, E3Dv6 1.75mm Hotend.

                    1 Reply Last reply Reply Quote 0
                    • Mike_Fundefined
                      Mike_F
                      last edited by

                      I am still confused.

                      In the tabs of the 'Process' I have unchecked 'Retraction', turned on 'Use M101/102/103' and added 'M207 S5 R-0.1 F60 T30 Z0; Set retraction parameters S - Length of retract, R - Extra length on re-start, F - Retract Speed in mm/min, T - Re-start speed, Z - Nozzle lift on retract.' to the Retraction Script.

                      The resultant g code has M103 and M101 but no values set. What am I doing wrong?

                      Here is a snippet of code:
                      G1 X-28.049 Y0.016 E0.0008
                      G1 X-28.005 Y0.000 E0.0023
                      M103
                      G1 X-26.577 Y0.000 F4800
                      M101
                      G1 X-27.885 Y-0.467 E0.0665 F1800
                      G1 X-27.894 Y-0.470 E0.0005

                      OpenBeam Kossel Pro, Duet WiFi, 5" PanelDue, BondTech extruder, E3Dv6 1.75mm Hotend.

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

                        That's correct, when you use firmware retraction you need to define the retraction amount and speed using M207. You can do this in config,g and/or in the start gcode of your slicer.

                        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
                        • Mike_Fundefined
                          Mike_F
                          last edited by

                          Okay, thanks David. I will move the definition to the 'Start' code and have a play.

                          OpenBeam Kossel Pro, Duet WiFi, 5" PanelDue, BondTech extruder, E3Dv6 1.75mm Hotend.

                          1 Reply Last reply Reply Quote 0
                          • Dougal1957undefined
                            Dougal1957
                            last edited by

                            also you will have to up the F parameter 1mm/sec retraction is very slow it will cost you around 15 secs on every retract cycle

                            The setting is specified in MM/Min so you need to multiply the figures by 60

                            1 Reply Last reply Reply Quote 0
                            • Mike_Fundefined
                              Mike_F
                              last edited by

                              Thanks, Dougal, I had already worked that one out before I started a print! It would have been painstakingly slow.

                              However, I have noticed that I am now getting far more retractions than I ever have done before. On a circular part with three perimeters, my printer is retracting at the end of each perimeter - never done that before. Also, with far more retractions, some of them on ridiculously small moves, the accumulation of all the retractions, in a small space, is causing some problems immediately after and some areas of infill/surface are sparse.

                              OpenBeam Kossel Pro, Duet WiFi, 5" PanelDue, BondTech extruder, E3Dv6 1.75mm Hotend.

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

                                I think that's a limitation of S3D. It doesn't really understand firmware retraction. If it did then the options to set a minimum travel distance to retract for and whether or not to retract on layer change would still be available.

                                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

                                deckingmanundefined 1 Reply Last reply Reply Quote 0
                                • Martin1454undefined
                                  Martin1454
                                  last edited by

                                  @dc42 Do you know why I can't tune this "on the fly"?

                                  I tried, (using simplify3d), but i doenst respond to the change.

                                  I dissabled retraction on extruder tab and enabled m101/102/103 on the gcode tab, and added an m207 line on my starting code.

                                  I checked that i does not change by enabling and disabling Z hop in the M207 that i send through the web interface?

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

                                    Test your M207 retraction settings by sending G10 and G11 commands from the GCode Console in DWC.

                                    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

                                    Martin1454undefined 1 Reply Last reply Reply Quote 0
                                    • Martin1454undefined
                                      Martin1454 @dc42
                                      last edited by

                                      @dc42 nevermind - found the problem - for a brief moment, i frogot S3D have independent "retraction" settings for the 2 extruders, so I only dissabled one of them -.- Got it working now. - but thanks for the quick response.

                                      Quick question - Does linear advance/pressure advance improve retraction?

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

                                        @dc42 said in Retraction on the fly:

                                        I think that's a limitation of S3D. It doesn't really understand firmware retraction...............

                                        If it did, it would use G10 / G11 too ☺

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

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

                                          @martin1454 said in Retraction on the fly:

                                          Quick question - Does linear advance/pressure advance improve retraction?

                                          When you use large amounts of pressure advance you may need to reduce retraction, because pressure advance will already retract filament towards the end of some moves.

                                          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
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA