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

    Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance)

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    acceleration jerk macros paneldue retraction tuning
    11
    21
    18.6k
    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.
    • Phaedruxundefined
      Phaedrux Moderator @campeancalin
      last edited by

      @campeancalin said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

      Hello @Phaedrux

      Do these macros work for RRF 3.1.1?
      Do these macros override the acceleration, jerk, and speed values set initially in gonfig.g?

      Thank you

      Yes they work on RRF 3. and Yes they will override whatever was set in config.g or by the slicer. They aren't permanent though, they get reset to whatever is in config.g on reboot.

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • toddelundefined
        toddel
        last edited by

        I'm pretty new to this...

        Is there a howto or manual how to set up these values? Including testfiles and informations what to tune?

        Phaedruxundefined 1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator @toddel
          last edited by

          @toddel Not really. Every machine is different. If it's a machine that was originally a marlin based printer you may be able to get the default values from the old firmware. Or if it's a common design you might find suggestions from other users of the same machine. Alternatively you could ask for suggestions in the forum by describing your machine and someone can suggest a good starting point and then you'll have to do some testing and tuning on your own. General rule of thumb is to start low and work your way up.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • rockydubbundefined
            rockydubb
            last edited by

            Hi, i tried using the macro's and any i choose give me the following error:

            M98 P"0:/macros/Phaedrux Tuning Macro's/Diagnostics/Allow unhomed moves"
            Warning: Macro file 0:/macros/Phaedrux Tuning Macros/Diagnostics/Allow unhomed moves not found
            

            I cant remember now, but if i was to modify the M98 P command it gave warning with ... than it would work. I read it on another post on this forum long time ago ... something with removing the 0:? or something ..

            But even if i was to lets say make a macro in the main folder lets say ... and than move it into a folder. i get this same error ....

            If i first make a folder and than create the new macro file in there, it works fine afterwards ... this error only happens with macro's that are imported and/or moved.

            Ender 5 Plus - Duet 3 6HC / TMC5160's
            Creality CR-10 V2 - Duet 2 Wi-Fi / TMC5160's
            FlashForge Inventor Dual Extruder / Bondtech BMG Dual Extruders

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

              @rockydubb You need to either create all the folders that are in that M98 path, or change the M98 to point to the correct folder where you have put the macro. As it is, the M98 points to a macro called "Allow unhomed moves" which is in a folder called "Diagnostics", which in turn is in a folder called "Phaedrux Tuning Macro's" which in turn is in a folder called "macros" which resides in the root.

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

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined Phaedrux referenced this topic
              • Phaedruxundefined Phaedrux referenced this topic
              • Acidundefined Acid referenced this topic
              • 900turboundefined
                900turbo
                last edited by

                @Phaedrux This sounds really helpful as I am now at the stage of fine tuning my 3D printer. When you say "install them is to put the SD card into your computer and extract the zip file into the /macros folder" do you mean the SD card you can run in a Panel Due as I am not running one in mine. I tried uploading the the Zip file into the DWC however it just did not seem to work.
                Any Advice on how to go forwards would be great Thank You.

                Phaedruxundefined 1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator @900turbo
                  last edited by

                  @900turbo said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                  When you say "install them is to put the SD card into your computer and extract the zip file into the /macros folder" do you mean the SD card you can run in a Panel Due

                  No I mean the SD card that goes in the Duet itself. That's where the macros folder is.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • br7408undefined
                    br7408
                    last edited by

                    There is an error in the retraction section that I was able to isolate. The retract command for .2 under direct drive needs to be S 0.2, not R 0.2. I was having a rough time trying to figure out why it was changing the unretract and not the entire retract setting whenever I selected that.

                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @br7408
                      last edited by

                      @br7408 Sorry about that. Which file specifically?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      br7408undefined 1 Reply Last reply Reply Quote 0
                      • br7408undefined
                        br7408 @Phaedrux
                        last edited by

                        @Phaedrux said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                        @br7408 Sorry about that. Which file specifically?

                        No worries... I certainly appreciate the macros, they have been of great help. The file in the: Set Retraction Distance/Direct Drive/Less Than 1mm/Retract 0.20.mm.g file. It is listed as R 0.2 instead of S 0.2.

                        I fixed it in my own folder but figured I'd let you know.

                        1 Reply Last reply Reply Quote 0
                        • Arminasundefined
                          Arminas @Phaedrux
                          last edited by

                          @Phaedrux Could you please specify what is the bad or good Extruder acceleration or jerk settings? I mean how does it look during the printing process if extruder accel is too low for example?

                          Phaedruxundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
                          • Phaedruxundefined
                            Phaedrux Moderator @Arminas
                            last edited by

                            @Arminas said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                            @Phaedrux Could you please specify what is the bad or good Extruder acceleration or jerk settings? I mean how does it look during the printing process if extruder accel is too low for example?

                            that is hard to quantify. You want to have quick retractions that aren't causing pauses on layer change or travels. I would suggest starting low and increasing it until it seems smooth and responsive. If you go too high you may notice the extruder become jerky or loud.

                            It also depends a lot on if it's direct drive or bowden, etc.

                            You'll just have to experiment.

                            Z-Bot CoreXY Build | Thingiverse Profile

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

                              @Arminas Just to add to what @Phaedrux has said - with regard to extruder jerk, setting it too low can slow down any XYE moves because each axis and extruder have to be synchronised. So a low extruder jerk value could effectively cap the X and Y jerk values for a print move. You can set extruder jerk as high as you like with no adverse consequences.

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

                              Arminasundefined 1 Reply Last reply Reply Quote 1
                              • Arminasundefined
                                Arminas @deckingman
                                last edited by

                                @deckingman @Phaedrux Do I understand it right - first of all I have to tune acceleration and then jerk?

                                deckingmanundefined 1 Reply Last reply Reply Quote 0
                                • oliofundefined
                                  oliof
                                  last edited by

                                  as @deckingman alluded, just set extruder jerk to infinity (not a real value, just more than X and Y), and then tune acceleration by increasing it until your extruder starts making unwarranted noises; then back off 10%

                                  <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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

                                    @Arminas said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                                    @deckingman @Phaedrux Do I understand it right - first of all I have to tune acceleration and then jerk?

                                    If we are talking about acceleration and jerk in general terms, then I don't think it matters much but it's probably best to tune acceleration before jerk. If we are talking about extruder acceleration and jerk exclusively, then I can't think of any extruder only move where jerk applies. Extruder only moves are retraction and un-retraction moves which start at zero speed so jerk is not normally applied. But for a print move using one or more axes as well as the extruder, then the jerk setting for that move would be the lowest of the axes or extruder - hence my recommendation to simply set extruder jerk high value where it will do no harm (I use 3600mm/minute for my extruders). For extruder acceleration, this will apply to retractions and un-retractions as well as any XYE move if it's low. So it needs to be brisk to give a rapid release of pressure. There is a school of thought that says if extruder acceleration is too high, then it will cause the molten filament to "break" rather than retract but I'm not sure that I believe that. One thing to note is that retraction moves are generally very short (unless you have an extremely long Bowden tube) so the time available to accelerate up to speed then decelerate down to standstill is very limited, meaning that you would need a high acceleration rate in order to attain the desired speed.

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

                                    1 Reply Last reply Reply Quote 0
                                    • gamer_013undefined
                                      gamer_013 @Phaedrux
                                      last edited by

                                      @Phaedrux Hey thanks for these! Just FYI I see in your screenshot for Pressure Advance Tuning you have a folder for Bowden, but in the zip file it appears to be missing. I was able to find it in an older commit for this file at least.

                                      b6ac6697-6360-4017-b39f-7d310ef7eadc-image.png

                                      1 Reply Last reply Reply Quote 1
                                      • droftartsundefined droftarts referenced this topic
                                      • moth4017undefined moth4017 referenced this topic
                                      • br7408undefined
                                        br7408
                                        last edited by

                                        These macros have been a great aid. I wrote additional macros for all of the IS algorithms in single steps 30-50 Hz. I found it useful for real-time tweaking freqs during actual printing. I can upload them somewhere if anyone wants them.

                                        1 Reply Last reply Reply Quote 3
                                        • Inlinebrotherundefined Inlinebrother referenced this topic
                                        • Inlinebrotherundefined Inlinebrother referenced this topic
                                        • First post
                                          Last post
                                        Unless otherwise noted, all forum content is licensed under CC-BY-SA