11
General Mach Discussion / How do I make the Mach 3 Ref All button work?
« on: May 29, 2017, 04:37:25 PM »I am new to cnc and Mach3. I have a Wabeco F1210C set up with an ESS motion control board. Everything seems to work very well and I have managed to set it up to profile cut 2 mm thick Aluminium very cleanly with 3 mm end mills. Exactly what I was after.
How can I write a button script to use the Mach 3 Ref All button to home each axis automatically? It has me stumped. My set up has a home switch for each axis, all normally closed wired in series. The only way I have found to home each axis is one at a time from the Diagnostics screen. Starting with clicking Ref X, the table runs to its home switch then zeros the DRO. I then jog the table off the home switch and repeat for Y axis then Z axis.
I would like a button script for the Ref All button to do the same thing. I thought it should be straight forward.
DoButton(24) will run the table to the home switch and zero the DRO but I have found nothing to allow me to jog off the home switch so that I can repeat for the next axis . I thought using JogOn(axis,direction) should do the trick but no matter how I try JogOn() just seems to get ignored. What am I missing?
Thanks Keith