
B-63943EN-2/01 3.EXECUTION MACRO FUNCTION
- 27 -
3.2.2 Modal Call (G66/G66.1)
A modal call is performed for the execution macro specified at
address P.
The functions such as move command call (G66) operation, block-by-
block call (G66.1) operation, and multi-level modal calls are exactly
the same as for custom macros. See the specifications of custom
macros as well.
Format
Limitation
• No execution macro can be called from any user program using
this command. This command can be specified only for calling
an execution macro from another execution macro.
• This command can be specified only when bit 2 (PCDC) of
compile parameter (No. 9163) is set to 1.
G66 P p L l <argument-
specification> ;
G66 : Call command.
Must be specified before any argument.
P : Program number of an execution macro to
be called
l : Repetition count (1 by default)
1 to 999999999
argument : Data to be passed to the execution
macro. Argument specifications I and II
are available. Arguments only in G66
blocks are passed to local variables.
O9010 ;
:
G66 P100 L2 A1.0 B2.0 ;
G00 G90 X100.0 ;
Y200.0
X150.0 Y300.0
G67 ;
:
M99 ;
O0100 ;
:
G00 Z-#1 ;
G01 Z-#2 F300 ;
:
:
:
:
M99 ;
Execution macro Execution macro
G66.1 P p L l <argument-
specification> ;
G66.1: Call command.
Must be specified before any argument.
P : Program number of an execution macro to be
called
l : Repetition count (1 by default)
1 to 999999999
argument : Data to be passed to the execution
macro. Argument specifications I and II
are available.
Execution macro
Execution macro
O9010 ;
:
G66.1 P100 L2 A1.0 B2.0
F100;
10.0 B20.0 F300 ;
0 B-30.0 ;
F1000 ;
G67 ;
M99 ;
O0100 ;
:
G00 Z-#1 ;
G01 Z-#2 F#9 ;
:
:
:
:
M99 ;