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!
"Zero XY" macro? <answered>
Moderator: cnckeith
-
- Posts: 54
- Joined: Mon Apr 20, 2020 7:18 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 0479B7ABE506-0318203048
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
"Zero XY" macro? <answered>
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 2306
- Joined: Sat Nov 18, 2017 2:32 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: Yes
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: Acorn 238
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Bergland, MI, USA
- Contact:
Re: "Zero XY" macro?
G92 X0 Y0
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 54
- Joined: Mon Apr 20, 2020 7:18 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 0479B7ABE506-0318203048
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: "Zero XY" macro?
The complexity of the existing macros made me think this was more complicated. Thanks, Gary
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 2547
- Joined: Fri May 24, 2019 8:34 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 7804734C6498-0401191832
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Clearwater, FL
Re: "Zero XY" macro?
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.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 54
- Joined: Mon Apr 20, 2020 7:18 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 0479B7ABE506-0318203048
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: "Zero XY" macro?
Big help, ShawnM! Thank you!
(Note: Liking will "up vote" a post in the search results helping others find good information faster)