13. Program Support Functions
13.5 User Macro Specifications
304
(Example)
Drill cycle
N1 G90 G54 G0 X0Y0Z0;
N2 G91 G00 X-50.Y-50.Z-200.;
N3 G66 L9010 R-10.Z-30.F100;
N4 X-50.Y-50.;
N5 X-50.;
N6 G67;
To subprogram after axis command execution
To main program
Sub
pr
ogr
am
X
L9010
N10 G00 Z #18 M0;
N20 G09 G01 Z #26 F#9;
N30 G00 Z- [#18+#26];
G68;
~
Sub
pr
ogr
am
W
Y
-150. -100. -50.
N1
-100.
-50.
N2
N3
N4
N5
N10
N20
N30
Argument F
To subprogram after axis command execution
Argument R
Argument Z
(Note 1)
After the axis command is executed in the main program, the subprogram is
executed.
(Note 2)
The subprogram is not executed in the blocks following G67.