13. Program Support Functions
13.5 User Macro Specifications
303
Modal call A (movement command call)
G65L
l
1 Pp1 <argument>;
G67
To subprogram
To main program
Main program
Subprogram
Ll
1
G23
To subprogram
When the block with a movement command is commanded between G66 and G67, the movement
command is first executed and then the designated user macro subprogram is executed. The
number of times the subprogram is executed is
l
1 times with each call.
The argument is the same as for a simple call.
Format
G66 L__ P__ argument ;
or G66 <File name> P_ argument ;
G66 Call
instruction
L_ Program
No.
<File name>
File name
A file name can be specified instead of a program No.
In this case, enclose the file name with brackets <>.
(The file name can have up to 32 characters including the extension.)
P_
Number of repetitions
Argument
Specify variable data
Detailed description
(1) When the G66 command is entered, the specified user macro subprogram will be called after
the movement command in the block with the movement commands has been executed until
the G67 (cancel) command is entered.
(2) The G66 and G67 commands must be paired in the same program.
A program error will result when G67 is issued without the G66 command.