
PROGRAMMING
B–61404E/08
15. CUSTOM MACRO A
282
G66 P __ ;
Called macro body program No.
The above command selects the macro modal call mode for NC. In other
words, every time each block subsequent to the above command is
executed, the macro designated by P is called. Also, an argument can be
designated by a block subsequent to the above command. For this
argument, refer to 15.1.3. The macro modal call mode is cancelled by the
command below.
G67 ;
CAUTION
In MDI mode, the G66 command specifies macro modal
calling mode. The G67 command cancels macro modal
calling mode. Other commands, however, do not call a
macro, even when executed between G66 and G67.
Instead, they are executed as ordinary commands. If MDI
operation B is specified, macros can be called in MDI mode.
NOTE
1 Blocks containing the G66 and G67 commands do not cqll
a macro.
2 Commands other than O, N, and P are ignored in the G66
and G67 blocks.
3 A repetition count cannot be specified for macro modal
calling. Only the four low–order digits of the values
specified with P in a G66 block are valid.
4 The maximum nesting level for macro modal calling is 1.
The maximum nesting level for subprogram calling is 4.
However, the maximum total nesting level for macro modal
calling and subprogram calling is 4.
15.1.4
G66 (Modal Call)
Format