Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: vandal968 on June 06, 2013, 02:59:21 PM
-
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
-
I believe it's just DoButton(24)
-
Aha! Thanks ger21.
I found more info on syntax here:
http://www.machsupport.com/forum/index.php?topic=19565.0
cheers,
c