Code reference
G65 Macro Call vs M98 Subprogram: Which and When
M98 replays a fixed subprogram; G65 passes arguments into local variables. How each call works, the portability catches, and a worked example both ways.
Lawrence Arya··10 min
Posts tagged M98 from the G-Code Sprint team.
M98 replays a fixed subprogram; G65 passes arguments into local variables. How each call works, the portability catches, and a worked example both ways.
Fanuc controls allow a handful of subprogram nesting levels (commonly four to ten, generation-specific). Why the limit exists, how to find yours, and how to design.
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.