Duet3D Logo

    Duet3D

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

    Dynamic axis minima and maxima

    CNC
    3
    7
    274
    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.
    • kalera
      kalera last edited by

      Hi,

      I'm using the Duet wifi for my cnc router and its working great.

      When I start a milling operation, I set the machine's zero point to a suitable location on my stock. Currently I'm just using G92 X0 Y0 Z0 to set my zero point. What I would like to do also is set the axis minima and maxima according to the current position.

      I'll give an example of the steps I want to take:

      • Let's say I have a machine that can move X500 and Y500
      • I home the machine
      • I manually move the machine to the spot where I want to start machiening (lets say x100 Y100)
      • Then I want to call the macro which sets the minima to X-100 Y-100 and X400 Y400 for the maxima
      • After that I want to use G92 to set everything to 0

      Is it possible to do this?

      1 Reply Last reply Reply Quote 0
      • DocTrucker
        DocTrucker last edited by DocTrucker

        It maybe easier to leave the machine coordinaye system constant but use tool offset to set a specific point within the macine to (0,0,0)?

        G10 P0 Xa Yb Zc

        ...will offset tool 0 relative to the machine coordinates.

        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
        • A Former User
          A Former User last edited by

          Isn't this what the work coordinate system is for?

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

          DocTrucker 1 Reply Last reply Reply Quote 0
          • kalera
            kalera last edited by

            Thanks guys, I can't believe I didn't see this in the GCode page, I went over it a few times already. I'm going to give this a try tomorrow

            A Former User 1 Reply Last reply Reply Quote 0
            • DocTrucker
              DocTrucker @Guest last edited by

              @bearer good shout. I'm coming from the v0.6/0.8.5 side of the fence so need to bodge a few things like that! 😄

              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
              • A Former User
                A Former User @kalera last edited by

                Thanks guys, I can't believe I didn't see this in the GCode page, I went over it a few times already. I'm going to give this a try tomorrow

                No worries; been there done that, have a closet full of the t-shirts..

                @bearer good shout. I'm coming from the v0.6/0.8.5 side of the fence so need to bodge a few things like that! 😄

                I got lucky;)

                1 Reply Last reply Reply Quote 0
                • kalera
                  kalera last edited by

                  @bearer I got a chance of testing it today and the work coordinate system works perfectly, this is exactly what I was looking for. Thanks!

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