Q&A · G-code & programming

What is a macro (G65) used for?

Frequently asked · G-code & programming · Dec 1, 2026

1 answer

✔ Expert answer cnccode

Custom macros use variables, maths, IF and WHILE to make parametric programs: one bolt-circle program for any hole count, probing routines, families of parts. G65 P9000 A10. B5. calls macro O9000 and passes A→#1 and B→#2.

Your answer

Be kind and specific. No advertising. See the guidelines.