Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Version of G10 to set offset to current position?

    Firmware wishlist
    2
    5
    744
    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.
    • DocTrucker
      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.

      Alive: 1 Ormerodish machines. 1 Custom Cantilever. 3 P3Steel. 1 Ciclopish scanner. In build: 1 P3Steel. Controllers: 2 Duet 2 , 2 D0.6, 1 D0.8.5, 1 D3 v0.5, 1 RAMPS/DRV8825, 1 Uno/Scan Card.

      1 Reply Last reply Reply Quote 0
      • dc42
        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
        • DocTrucker
          DocTrucker last edited by

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

          Alive: 1 Ormerodish machines. 1 Custom Cantilever. 3 P3Steel. 1 Ciclopish scanner. In build: 1 P3Steel. Controllers: 2 Duet 2 , 2 D0.6, 1 D0.8.5, 1 D3 v0.5, 1 RAMPS/DRV8825, 1 Uno/Scan Card.

          1 Reply Last reply Reply Quote 0
          • dc42
            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
            • DocTrucker
              DocTrucker last edited by

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

              Alive: 1 Ormerodish machines. 1 Custom Cantilever. 3 P3Steel. 1 Ciclopish scanner. In build: 1 P3Steel. Controllers: 2 Duet 2 , 2 D0.6, 1 D0.8.5, 1 D3 v0.5, 1 RAMPS/DRV8825, 1 Uno/Scan Card.

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