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

    Macro's - Repository?

    Scheduled Pinned Locked Moved
    General Discussion
    8
    23
    4.3k
    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.
    • tsitalon1undefined
      tsitalon1
      last edited by

      Awesome guys, thanks for adding this!

      It'll help out the Duet newbies like me, hopefully I'll be able to contribute shortly.

      1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @Phaedrux
        last edited by

        @phaedrux Thanks - I have added them.

        Looking forward to seeing some more.

        www.duet3d.com

        1 Reply Last reply Reply Quote 0
        • Jason Kundefined
          Jason K
          last edited by

          I LOVE THIS!

          I cant believe no one thought of this earlier.
          I know for myself, I sometimes get confused because there are so many ways to use a duet and I can't find an example for say a Cartesian vs a delta. The duet team does such a good job with documentation but it is an impossible task for a small team to give so many examples. (now that i own 3 duets im a little better).

          I imagine this will be another invaluable resource. Especially for people just starting out.

          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators @Jason K
            last edited by

            So I have added some macros provided by @deckingman

            It would be good to get some more off people, then i will have another look at the documentation page and slot in examples and links.

            www.duet3d.com

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

              @t3p3tony

              I did actually start a thread way back in May 2017 https://forum.duet3d.com/topic/162/macros-ideas-suggestions-tips-and-tricks to try and get people to submit ideas.

              There wasn't all that much feedback but you might find a couple more there.

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

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 1
              • T3P3Tonyundefined
                T3P3Tony administrators @deckingman
                last edited by

                @deckingman thanks, I will take a look

                www.duet3d.com

                1 Reply Last reply Reply Quote 0
                • Alex.crundefined
                  Alex.cr
                  last edited by Alex.cr

                  If I knew how to use github i would add these directly...

                  I did not write the first one, someone on the old forum did. Sorry stranger for not writing down your name.
                  [EDIT: @dc42 and @burtoogle are responsible for this macro]

                  The second one is a simple probe repeatability test with moves between.

                  These aren't rocket science but have helped me.

                  0_1530932915653_non linear test.txt
                  0_1530932923605_probe test.txt

                  Voron2.4/Duet3 SBC+6HC+3HC+1LC+1HCL(x2) - Delta/Duet2 Wifi - CubePro/Duet2 Wifi+Duex5 - Laser/Duet3 Mini5+ - Cel Robox - U̶p̶3̶0̶0̶+/D̶u̶e̶t̶3̶ ̶6̶H̶C̶+̶LC1̶ - F̶T̶-̶5̶/̶D̶u̶e̶t̶2̶ ̶W̶i̶f̶i̶ - S̶o̶l̶i̶d̶o̶o̶d̶l̶e̶

                  Phaedruxundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator @Alex.cr
                    last edited by

                    @alex-cr The non-linear extrusion test is interesting, but how do you use the results? Non-linear extrusion is on my list to explore next.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    Alex.crundefined 1 Reply Last reply Reply Quote 0
                    • T3P3Tonyundefined
                      T3P3Tony administrators @Alex.cr
                      last edited by

                      @alex-cr Thanks. I have added them to the repository.

                      www.duet3d.com

                      1 Reply Last reply Reply Quote 0
                      • Alex.crundefined
                        Alex.cr @Phaedrux
                        last edited by

                        @phaedrux said in Macro's - Repository?:

                        @alex-cr The non-linear extrusion test is interesting, but how do you use the results? Non-linear extrusion is on my list to explore next.

                        The intent is to measure the length of the extruded sections to ensure they all come out the same length, regardless of extrusion speed.

                        I need to add to the macro to supply rectraction because of my 1.2m bowden tubes on my main printer now so in reality I have not used the macro very much.
                        I really wish I could find the forum post to reference...

                        Voron2.4/Duet3 SBC+6HC+3HC+1LC+1HCL(x2) - Delta/Duet2 Wifi - CubePro/Duet2 Wifi+Duex5 - Laser/Duet3 Mini5+ - Cel Robox - U̶p̶3̶0̶0̶+/D̶u̶e̶t̶3̶ ̶6̶H̶C̶+̶LC1̶ - F̶T̶-̶5̶/̶D̶u̶e̶t̶2̶ ̶W̶i̶f̶i̶ - S̶o̶l̶i̶d̶o̶o̶d̶l̶e̶

                        1 Reply Last reply Reply Quote 0
                        • fmaundefined
                          fma
                          last edited by

                          But how do you fit the measured values, to get A and B params?

                          Frédéric

                          Alex.crundefined 1 Reply Last reply Reply Quote 0
                          • Alex.crundefined
                            Alex.cr @fma
                            last edited by Alex.cr

                            I found the link! Turns out it was @dc42 and @burtoogle that wrote the macro. Thanks guys!
                            https://forum.duet3d.com/topic/3625/new-beta-firmware-1-20-1rc2-and-duetwifiserver-1-20-1/14

                            @fma Set A=0.015 and B=0.0012 and start there. At least that's what I did. Extrusion was more consistent at higher speeds. These numbers worked on my direct drive system at the time.

                            I was not very scientific with it, it just helped so I left it there. That's what @dc42 had come up with on his setup.

                            I need to look into this again but since upgrading to a bondtech extruder the problem hasn't resurfaced.

                            Voron2.4/Duet3 SBC+6HC+3HC+1LC+1HCL(x2) - Delta/Duet2 Wifi - CubePro/Duet2 Wifi+Duex5 - Laser/Duet3 Mini5+ - Cel Robox - U̶p̶3̶0̶0̶+/D̶u̶e̶t̶3̶ ̶6̶H̶C̶+̶LC1̶ - F̶T̶-̶5̶/̶D̶u̶e̶t̶2̶ ̶W̶i̶f̶i̶ - S̶o̶l̶i̶d̶o̶o̶d̶l̶e̶

                            1 Reply Last reply Reply Quote 1
                            • fmaundefined
                              fma
                              last edited by

                              I'll try these values, but I would like to know how to compute them from a set of measures...

                              Frédéric

                              Alex.crundefined 1 Reply Last reply Reply Quote 0
                              • Alex.crundefined
                                Alex.cr @fma
                                last edited by Alex.cr

                                @fma This involves solving for a nonlinear equation. A recent posting shows sort of how to do it.

                                https://forum.duet3d.com/topic/5588/non-linear-extrusion

                                I have build an excel form to create a best fit equation, this may help you.
                                The values in the form are bogus, do not use those... enter your own.

                                0_1531274085101_cap-1.JPG
                                0_1531274344816_nonlinear extrusion sheet.xlsx

                                Voron2.4/Duet3 SBC+6HC+3HC+1LC+1HCL(x2) - Delta/Duet2 Wifi - CubePro/Duet2 Wifi+Duex5 - Laser/Duet3 Mini5+ - Cel Robox - U̶p̶3̶0̶0̶+/D̶u̶e̶t̶3̶ ̶6̶H̶C̶+̶LC1̶ - F̶T̶-̶5̶/̶D̶u̶e̶t̶2̶ ̶W̶i̶f̶i̶ - S̶o̶l̶i̶d̶o̶o̶d̶l̶e̶

                                Phaedruxundefined 1 Reply Last reply Reply Quote 1
                                • Phaedruxundefined
                                  Phaedrux Moderator @Alex.cr
                                  last edited by

                                  @alex-cr that's great. I will definitely be checking that out.

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  1 Reply Last reply Reply Quote 1
                                  • Alex.crundefined
                                    Alex.cr
                                    last edited by Alex.cr

                                    @Phaedrux I hope it's not too rough. My old engineering professors and current coworkers would kill me for not labeling all the axis...

                                    Voron2.4/Duet3 SBC+6HC+3HC+1LC+1HCL(x2) - Delta/Duet2 Wifi - CubePro/Duet2 Wifi+Duex5 - Laser/Duet3 Mini5+ - Cel Robox - U̶p̶3̶0̶0̶+/D̶u̶e̶t̶3̶ ̶6̶H̶C̶+̶LC1̶ - F̶T̶-̶5̶/̶D̶u̶e̶t̶2̶ ̶W̶i̶f̶i̶ - S̶o̶l̶i̶d̶o̶o̶d̶l̶e̶

                                    1 Reply Last reply Reply Quote 0
                                    • fmaundefined
                                      fma
                                      last edited by fma

                                      Thanks! I used gnuplot, which is able to fit any curve, and successfully computes A and B. Here is how I did:

                                      • extrude 50mm (for example) at different speeds and read the real extrusion length;

                                      • build a table with 2 cols: first col = speed, second col = error from theorical extrusion / theorical extrusion. You need to revert the sign so the table contains the correction to retreive the correct extrusion;

                                      • save this table in a file called 'extrusion.dat';

                                      • in gnuplot, do:

                                      A = 1
                                      B = 1
                                      f(x) = A * X + B * x * x
                                      fit f(x) 'extrusion.dat' via A, B <<<<< will print A and B and errors
                                      plot 'extrusion.data'
                                      replot f(x)

                                      Hope this helps.

                                      Frédéric

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