Dynamic axis minima and maxima



  • 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?



  • 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.





  • 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



  • @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! 😄



  • 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;)



  • @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!


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.