Guides
How to Loop a G-Code Program With M99: Three Honest Patterns
M99 loops programs three ways: at a main program's end for continuous runs, with M98 L-counts for repeats, and with macro counters for controlled cycles.
Lawrence Arya··5 min
Posts tagged M99 from the G-Code Sprint team.
M99 loops programs three ways: at a main program's end for continuous runs, with M98 L-counts for repeats, and with macro counters for controlled cycles.
M98 calls a subprogram and M99 returns from it, letting you reuse a block of code. Here is how the pair works on Fanuc-style controls, with an example.