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

    G2/G3 not honoring F parameter

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    11
    1.1k
    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.
    • gnydickundefined
      gnydick
      last edited by

      I've created the following macro and the movement speed is identical every time after the first command

      G2 X250 Y155 I100 J0 F3000
      G3 X50 Y155 I-100 J0 F6000 (sped up)
      G2 X250 Y155 I100 J0 F9000 (same)
      G3 X50 Y155 I-100 J0 F12000 (same)
      G2 X250 Y155 I100 J0 F15000 (same)
      G3 X50 Y155 I-100 J0 F18000 (same)
      G2 X250 Y155 I100 J0 F21000 (same)
      G3 X50 Y155 I-100 J0 F24000 (same)

      Here are my speed settings
      M201 X1500 Y1500 Z135 E250:250 ; accleration
      M203 X48000 Y48000 Z2400 E50000:50000 ; velocity
      M566 X700 Y700 Z20 E300:300 ; jerk

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

        Upgrade to firmware 2.02RC6 and try again.

        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

        gnydickundefined 1 Reply Last reply Reply Quote 0
        • gnydickundefined
          gnydick @dc42
          last edited by

          @dc42 ok.

          1 Reply Last reply Reply Quote 0
          • gnydickundefined
            gnydick
            last edited by

            So, it increased speed, but the last 3 still went the same speed.

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

              There is a limit to how fast the processor can do the trigonometric calculations needed to do arc moves. I could make further efficiency improvements to the code, but is it worth it? What is the use case for arc moves faster than 300mm/sec?

              Which Duet are you using?

              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

              gnydickundefined 1 Reply Last reply Reply Quote 0
              • gnydickundefined
                gnydick @dc42
                last edited by gnydick

                @dc42 I personally don't need it, but why make assumptions?

                If the optimizations aren't much effort, better is better 😉

                Also, how do you code a full circle with G2?

                I'm using the Maestro.

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

                  The Maestro doesn't have a hardware floating point unit, so the time taken to do the trigonometric calculations is much longer than on the Duet WiFi and Ethernet. But IMO, being able to do arc moves at speeds up to about 300mm/sec on the budget board in our range goes well beyond what users are likely to need, especially as G2/G3 moves are not generated by any of the common slicers, and very few extruders are capable of printing at anything like 300mm/sec. So making improvements in this area would not be a good use of my time - unless/until faster arc moves become genuinely useful in future.

                  AFAIK the NIST standard for GCode (which defines G2 and G3) does not provide for doing full circles in a single move.

                  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

                  gnydickundefined 1 Reply Last reply Reply Quote 0
                  • gnydickundefined
                    gnydick @dc42
                    last edited by

                    @dc42 oh, I didn't know the Maestro was a budget board.

                    Still, how do you code a full circle?

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

                      You can do it in 2 halves as described at http://www.cnctrainingcentre.com/cnc-programming/programming-a-full-circle-on-a-cnc-milling-machine/. The command described there to do a full circle in one move is not part of the NIST standard and not yet supported by RRF, but I will probably add support for it.

                      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

                      gnydickundefined 1 Reply Last reply Reply Quote 0
                      • gnydickundefined
                        gnydick @dc42
                        last edited by

                        @dc42 ok, that's what I've been doing

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

                          Firmware 2.02RC7 will support doing a whole circle using a single G2 or G3 command, the same way that most CNC machines do.

                          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