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

    Easy one. Move in machine coordinates

    Scheduled Pinned Locked Moved
    CNC
    gcode coordinate system
    3
    6
    627
    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.
    • Wurkeundefined
      Wurke
      last edited by

      Im new obvs. Have been using duet wifi for a CNC mill for about 6 months. I haven't written many macros.

      I decided i wanted to write a macro to probe the bed in a single location as a means to calculate the tool offset after a manual tool change.

      But im stuck at the starting blocks. Can you move with the machine coordinates and how?

      In my head i thought id do something like this..

      G90
      G1 X100 Y0 F500

      But that moves from the work coordinates system rather than from the origin or home location. Either would work for me.

      Any pointers would be fab.

      1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by

        see
        https://duet3d.dozuki.com/Wiki/Gcode#Section_G54_to_G59_3_Select_coordinate_system
        https://duet3d.dozuki.com/Wiki/Gcode#Section_G10_Set_workplace_coordinate_offset_or_tool_offset

        (i.e. if you change to G55 before setting the offset G54 will still be machine coordinates, or the other way around as well)

        1 Reply Last reply Reply Quote 0
        • Wurkeundefined
          Wurke
          last edited by

          I see. So if i was to call G53 X0 Y0 F500 that would move the X and Y to the origin (just for example) then call G54 to switch back to WCS1?

          dc42undefined 1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User
            last edited by A Former User

            I was looking for G53, but completely blanked out when it said absolute.

            But yes, I believe you are correct (test with caution:) ref under:

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

              @bonjipoo said in Easy one. Move in machine coordinates:

              I see. So if i was to call G53 X0 Y0 F500 that would move the X and Y to the origin (just for example) then call G54 to switch back to WCS1?

              No, the command would be:

              G53 G1 X0 Y0 F500

              or you can use G0 instead of G1.

              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

              Wurkeundefined 1 Reply Last reply Reply Quote 0
              • Wurkeundefined
                Wurke @dc42
                last edited by

                @dc42 Thank you for clarifying this. Its a silly simple thing but i couldn't find the answer anywhere.

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