B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 635 -
17.6.2 Modal Call : Move Command Call (G66)
Once G66 is issued to specify a modal call a macro is called after a
block specifying movement along axes is executed. This continues
until G67 is issued to cancel a modal call.
- After G66, specify at address P a program number subject to a
- When a number of repetitions is required, a number from 1 to
999999999 can be specified at address L.
- As with a simple call (G65), data passed to a macro program is
specified in arguments.
When a G67 code is specified, modal macro calls are no longer
performed in subsequent blocks.
Calls can be nested to a depth of four levels including simple calls
(G65) and modal calls (G66). This does not include subprogram calls
(M98). The multiplicity of subprogram calls (M98) is 10, including the
number of macro calls.
Modal call nesting
Modal calls can be nested by specifying another G66 code during a
- In a G66 block, no macros can be called. Local variables
(arguments) can, however, be set.
- 66 needs to be specified before any arguments.
- No macros can be called in a block which contains a code such as
a miscellaneous function that does not involve movement along
- Local variables (arguments) can only be set in G66 blocks. Note
that local variables are not set each time a modal call is performed.
G66 Pp L Lambda
<argument-specification > ;
P : Number of the program to call
Lambda : Repetition count (1 by default)
Argument : Data passed to the macro
G66 P9100 L2 A1.0 B2.0 ;
G00 G90 X100.0 ;
G00 Z-#1 ;
G01 Z-#2 F300 ;