I've been building an automatic toolchanger for my mill. Mechanically, it's now finished, I just need to add some sensors (waiting for UPS) and program it under Mach. One issue is that my Z-axis shifts slightly as the power drawbar fires. Since the toolchange happens right next to the home switch for the Z-axis, my plan is to rehome Z as the final step in the toolchange macro. Can anyone tell me the actual lines of code needed to do this?
Here's info about conversion, there is a video of the ATC operating under manual-control part way down the page.
http://coreyrenner.tumblr.com/Thanks for the help.
cheers,
c