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

    Version of G10 to set offset to current position?

    Scheduled Pinned Locked Moved
    Firmware wishlist
    2
    5
    898
    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.
    • DocTruckerundefined
      DocTrucker
      last edited by DocTrucker

      Hi All,

      I currently set the nozzle height by driving the nozzle down until it grabs a piece of paper and then set the G10 P0 Z[-1 * current z position].

      Is there a way to use the current position to set the offset? Something where you drive the tool to a position and tell it what coordinate the machine should consider the current location as.

      So currently an example would work flow would be:

      • Home all
      • Run three screw bed level correction
      • Run bed mesh probe
      • Drive nozzle down to grab the piece of paper at x=0, y=0.
        [For this example it happened at z=-15.5]
      • Send "G10 P0 Z15.5

      I can't set up a macro for this as it uses the current z position which is variable.

      So perhaps the following could be considered?

      • Home all
      • Run three screw bed level correction
      • Run bed mesh probe
      • Drive nozzle down to grab the piece of paper at x=0, y=0.
        [For this example it happened at z=-15.5]
      • Send "Gxx P0 X0 Y0 Z0

      So it behaves like G92, but only applies to the specific tool. Come to think of it perhaps correct an offset if you add a Px section to the G92 command?

      Thanks.

      Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

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

        You should be able to accomplish that by sending M558 P0 to select manual Z probing followed by G30 S-2.

        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
        • DocTruckerundefined
          DocTrucker
          last edited by

          Ah ok, thanks. Will it upset the bed compensation or bed levelling though?

          Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

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

            G30 S-2 changes only the Z offset of the current tool. You will need to set the correct Z probe type in M558 again after running this procedure.

            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
            • DocTruckerundefined
              DocTrucker
              last edited by

              Thanks for the information. I'll try this at home later this week.

              Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

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