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

Support for G38 for CNC users?

Scheduled Pinned Locked Moved
CNC
5
12
821
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.
  • undefined
    plusphenol
    last edited by 22 May 2019, 04:46

    Are there any plans or work-in-progress to add support to G38.x command?
    It seems to be an important feature for CNC users. e.g. to zero tools and more importantly, stock.
    I saw some discussion but not sure if there were any update.

    ? 1 Reply Last reply 22 May 2019, 12:21 Reply Quote 0
    • ?
      A Former User
      last edited by 22 May 2019, 08:40

      I recently asked the same and was refered to

      Look up M585 in the GCodes page of the wiki.

      Which might get the job done, my CNC is still under linuxcnc control and I haven't put a probe on the printer just to try it yet

      1 Reply Last reply Reply Quote 0
      • undefined
        dc42 administrators
        last edited by 22 May 2019, 08:44

        I can look into providing G38 as well as M585 in RRF 3.

        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
        • ?
          A Former User
          last edited by 22 May 2019, 09:47

          that would be fantastic!

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User @plusphenol
            last edited by 22 May 2019, 12:21

            @plusphenol said in Support for G38 for CNC users?:

            Are there any plans or work-in-progress to add support to G38.x command?
            It seems to be an important feature for CNC users. e.g. to zero tools and more importantly, stock.
            I saw some discussion but not sure if there were any update.

            Hi,
            for learning: Can you elaborate on your use-case for G38? (Could you also just make a macro for an additional csys that you zero out somewhere and call that?) Just for info, if you find time, would be greatful! Cheers!

            1 Reply Last reply Reply Quote 0
            • undefined
              plusphenol
              last edited by 23 May 2019, 05:27

              Thank you all for your responses.
              Yes, I found that reply of M585 as well.
              However, the definition and usage of M585 is slightly different from that of G38.
              To my understanding, G83 is more like "zero this coordinate system to this point" and M585 being "confirm the tool is at this coordinate."
              It should be possible to write a macro to use M585 to zero a work piece.

              @dc42
              I skimmed through the implementation of G32 and guess I can [try] implement G38.*.
              I was wondering if there are any active work in progress, so I would like to open a discussion here first in case it is almost done.

              @LB
              I'm still learning as well 🙂
              if you are cutting a feature on an existing piece, you will need to set the machine origin to match the origin of the piece in your CAD, say the bottom left corner of a block aluminum. By using G38, the machine can probe the edges of the aluminum block, and locate exactly where that bottom-left corner is. One can also do this by hand by jogging tool slowly towards an edge, but having the machine do it automatically is easier.

              undefined undefined 2 Replies Last reply 23 May 2019, 08:12 Reply Quote 0
              • undefined
                wilriker @plusphenol
                last edited by wilriker 23 May 2019, 08:12

                @plusphenol said in Support for G38 for CNC users?:

                To my understanding, G83 is more like "zero this coordinate system to this point" and M585 being "confirm the tool is at this coordinate."
                It should be possible to write a macro to use M585 to zero a work piece.

                There is an open Pull Request from me that extends M585 to do workpiece probing. It will then move a probe towards the workpiece and simply stop there. Afterwards you can set the current coordinate of the direction you were probing as the desired coordinate system's zero. Still not fully automated but rather close because you only need to send G10 L20 Pxxx N0 where xxx is the desired coordinate system number and N is the axis to be zeroed.

                Manuel
                Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                with probably always latest firmware/DWC (incl. betas or self-compiled)
                My Tool Collection

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators @plusphenol
                  last edited by 23 May 2019, 12:35

                  @plusphenol said in Support for G38 for CNC users?:

                  I skimmed through the implementation of G32 and guess I can [try] implement G38.*.
                  I was wondering if there are any active work in progress, so I would like to open a discussion here first in case it is almost done.

                  The way M585 operates is already changed in RRF3 because it uses a separately-defined probe instead of an endstop input. G38 would work in the same way.

                  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

                  undefined undefined 2 Replies Last reply 23 May 2019, 18:24 Reply Quote 0
                  • undefined
                    wilriker @dc42
                    last edited by 23 May 2019, 18:24

                    @dc42 Only issue with M585 without my amendments is that it sets tool offsets at the end. It did you also include my flag that prevents this?

                    Manuel
                    Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                    with probably always latest firmware/DWC (incl. betas or self-compiled)
                    My Tool Collection

                    undefined 1 Reply Last reply 27 May 2019, 13:45 Reply Quote 0
                    • undefined
                      plusphenol @dc42
                      last edited by 27 May 2019, 05:37

                      @dc42
                      Is there anywhere to find documentation/discussion on RRF3 specs? and status of implementation on Duet firmware?

                      undefined 1 Reply Last reply 27 May 2019, 13:44 Reply Quote 0
                      • undefined
                        dc42 administrators @plusphenol
                        last edited by 27 May 2019, 13:44

                        @plusphenol said in Support for G38 for CNC users?:

                        @dc42
                        Is there anywhere to find documentation/discussion on RRF3 specs? and status of implementation on Duet firmware?

                        See the GCodes page on the wiki.

                        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
                        • undefined
                          dc42 administrators @wilriker
                          last edited by 27 May 2019, 13:45

                          @wilriker said in Support for G38 for CNC users?:

                          @dc42 Only issue with M585 without my amendments is that it sets tool offsets at the end. It did you also include my flag that prevents this?

                          I will review this for RRF 3.

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