FANUC Series 16/18/160/180-Model C Machining Center Operators Manual

PROGRAMMING
16. CUSTOM MACRO
B–62764EN/01
392
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.
S With G65, an argument (data passed to a macro) can be specified. M98
does not have this capability.
S 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.
S 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.
S With G65, the level of local variables changes. With M98, the level
of local variables does not change.
16.6
MACRO CALL

D Differences between
macro calls and
subprogram calls

Leave a Reply

Your email address will not be published. Required fields are marked *