PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
295
A macro program can be called using the following methods:
Macro call Simple call ((G65)
modal call (G66, G67)
Macro call with G code
Macro call with M code
Subprogram call with M code
Subprogram call with T code
Macro call (G65) differs from subprogram call (M98) as described below.
D With G65, an argument (data passed to a macro) can be specified. M98
does not have this capability.
D When an M98 block contains another NC command (for example,
G01 X100.0 M98Pp), the subprogram is called after the command is
executed. On the other hand, G65 unconditionally calls a macro.
D When an M98 block contains another NC command (for example,
G01 X100.0 M98Pp), the machine stops in the single block mode. On
the other hand, G65 does not stops the machine.
D With G65, the level of local variables changes. With M98, the level
of local variables does not change.
16.6
MACRO CALL
Restrictions
D Differences between
macro calls and
subprogram calls