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 Subprogram 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.
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.