Page 1 of 1

"Zero XY" macro? <answered>

Posted: Thu May 06, 2021 7:44 pm
by RichMaple
Hi all, is there a macro library anywhere? Running Centroid w/Acorn in "mill" configuration and regularly use the "zero all axis" macro as well as a tool touch one for Z.
Would love to add one for just X and Y together, tried to reverse engineer the "zero all axis" one but to be honest it was more confusing than expected.

Im sure it's super simple, just seeing if somebody has some code to share!

Re: "Zero XY" macro?

Posted: Thu May 06, 2021 7:53 pm
by Gary Campbell
G92 X0 Y0

Re: "Zero XY" macro?

Posted: Thu May 06, 2021 7:54 pm
by RichMaple
The complexity of the existing macros made me think this was more complicated. :lol: Thanks, Gary

Re: "Zero XY" macro?

Posted: Thu May 06, 2021 11:42 pm
by ShawnM
The first part of the OEM macro checks to see whether or not you have homed the machine first. I have this check in all macros that can could possibly cause a crash if the machine is not homed first. Which to say is nearly all my macros, they check to see if the machine is homed before executing. I too have a X0Y0 macro button as well as a Z0 macro button along with an AUTO Z0 macro to touch off. All very handy to have. The homing check is a good check to have in place but as Gary pointed out it's as simple as G92 X0 Y0.

Re: "Zero XY" macro?

Posted: Fri May 07, 2021 12:33 pm
by RichMaple
Big help, ShawnM! Thank you!