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

    Setting Zero Using G54, G55, …

    Scheduled Pinned Locked Moved
    CNC
    gcode
    3
    6
    2.2k
    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.
    • raylee14undefined
      raylee14
      last edited by

      I’m using a cnc GRBL machine and Universal Gcode Sender.
      I’m trying to save a default position to G54

      I first place the spindle to a corner.
      Then I run this to set the zero position:
      G10 L20 P1 X0 Y0 Z0

      Next, I move the spindle to a certain position and run this to return to the zero I set:
      G54 X0 Y0 Z0
      It works as my expectation.

      However, when I press the Reset Zero button on the Universal Gcode Sender, the machine zero I set is reset.

      Not sure if I have any misunderstanding to this.

      Thanks in advance

      EducatingSavvasundefined 1 Reply Last reply Reply Quote 0
      • EducatingSavvasundefined
        EducatingSavvas @raylee14
        last edited by

        @raylee14 said in Setting Zero Using G54, G55, …:

        10 L20 P1 X0 Y0 Z0
        Next, I move the spindle to a certain position and run this to return to the zero I set:
        G54 X0 Y0 Z0

        GRBL has different gcode command enabled compared to Reprap. This library has a table of the code and supported platforms which it's enabled on: https://reprap.org/wiki/G-code#G92:_Set_Position

        It's been a long while since I've used grbl but I think you might want to use G92?

        raylee14undefined 1 Reply Last reply Reply Quote 0
        • raylee14undefined
          raylee14 @EducatingSavvas
          last edited by

          @educatingsavvas
          Does it mean I should use G92 X0 Y0 Z0 to set zero instead of using 'Reset Zero' button on Universal Gcode Sender? How can I specific where to save the position in G54-G59?
          I find that the button is running G10 P0 L20 X0 Y0 Z0
          and the Return to Zero button is G90 G0 X0 Y0; G90 G0 Z0

          Sorry for the newbie question

          dc42undefined 2 Replies Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @raylee14
            last edited by dc42

            [deleted]

            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
            • dc42undefined
              dc42 administrators @raylee14
              last edited by dc42

              @raylee14 said in Setting Zero Using G54, G55, …:

              I find that the button is running G10 P0 L20 X0 Y0 Z0

              That is an invalid command. The P value for that G10 command must be a coordinate system number in the range 1 to 9. See section 3.5.5 of the NIST GCode standard.

              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

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

                PS - I've just discovered that LinuxCNC supports an extended version of G10 in which P0 is allowed and means use the current coordinate system. That's not currently supported by RRF, but I can add it in the next 3.4 beta release.

                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