Automatically setting zero position back to Home

There are times when either my dust collector doesn’t get everything during a cut or sometimes it just isn’t possible to use the dust boot. For those circumstances, I created a toolpath that will sweep my dust boot over the entire machine surface. To do that, I needed to move the machine to the home position and then reset the zero position. To eliminate the need to do this manually I added a couple lines of code to my toolpath to do it automatically.

Here are lines of code needed to home the machine and reset the zero values. In my case, I moved the Z to minus 2 so the Z axis won’t limit out when it tries to raise up to clear the surface.

%(Reset Zero to Home position)
G53 G0 X0 Y0 Z-2
G10 L20 P0 X0 Y0 Z0
%

2 Likes