Hello Guest it is January 25, 2022, 07:13:26 PM

Author Topic: Macro to rehome Z?  (Read 2475 times)

0 Members and 1 Guest are viewing this topic.

Macro to rehome Z?
« 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.


Thanks for the help.


Offline ger21

  • *
  •  6,292 6,292
    • View Profile
    • The CNC Woodworker
Re: Macro to rehome Z?
« Reply #1 on: June 06, 2013, 04:57:46 PM »
I believe it's just DoButton(24)

2010 Screenset

JointCAM Dovetail and Box Joint software
Re: Macro to rehome Z?
« Reply #2 on: June 06, 2013, 05:05:25 PM »
Aha!  Thanks ger21.

I found more info on syntax here: