I am using Shapeoko XXL, Carbide Motion, and Vectric V-Carve Pro (Grbl post processor).
The last step of my G-Code file is M2. This raises my spindle, pauses so I can turn off the spindle, raises the spindle and then moves the spindle straight to the back of the machine.
My work-piece is up toward the front of the machine. I would like to stop the Y movement so that it doesn’t go all the way to the back of the machine. I would like to stop it just behind my work-piece. I am batching out parts I have to rapid move to the X0,Y0 and then run the program. I’d like to just run program…
I know I can just wipe out M2 and write other code but…
I do still like that it pauses, allows me to turn spindle off, includes a pop-up (in carbide motion) to change bit/resume, and then raises the spindle and starts the backward movement. I just don’t like that it goes all the way back.
- can I change the M2 line so that it does everything else and then stops the Y movement at my designated location?
- much less desirable solution - what are the steps involved in M2 and can I actually create the code to mimic all steps of M2 except reduce the Y travel?