Hello Guest it is April 19, 2024, 03:30:20 PM

Author Topic: Macro to rehome Z?  (Read 2868 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.

http://coreyrenner.tumblr.com/

Thanks for the help.

cheers,
c

Offline ger21

*
  • *
  •  6,295 6,295
    • 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)
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
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:
http://www.machsupport.com/forum/index.php?topic=19565.0

cheers,
c