
13. Program Support Functions
13.5 User Macro Specifications
368
L9930 (Subprogram) L9930
#101=#24 ;
#102=#25 ;
#103=#4 ;
#104=#5 ;
#106=#2 ;
WHILE [#106GT0] DO1 ;
#105=#1 ;
WHILE [#105GT0] DO2 ;
G90 X#101 Y#102 ;
#101=#101+#103 ;
#105=#105
−
1 ;
END2 ;
#101=#101-#103;
#102=#102+#104;
#103=
−
#103 ;
#106=#106
−
1 ;
END1 ;
G23 ;
(Note 1)
The processing time can be shortened
by programming in one block.
(Note 1)
(Note 1)
(Note 1)
Start point X coordinates : x
1
→
#101
Start point Y coordinates : y
1
→
#102
X axis interval
: i
1
→
#103
Y axis interval
: j
1
→
#104
No. of holes in Y direction : b
1
→
#106
#101 = X axis start point
#102 = Y direction interval
#103 = X direction interval
#106 = No. of holes in
Y direction
#106 > 0
Y direction drilling completion check
#105 > 0
X#101 Y#102
#101 + #103
→
#101
#105
−
1
→
#105
#101
−
#103
→
#101
#102 + #104
→
#102
−
#103
→
#103
#106
−
1
→
#106
END
N
Y
No. of holes in Y direction
No. of holes in X direction
set
No. of holes in Y direction
check
Positioning, drilling
X coordinates update
No. of holes in X direction
−
1
X coordinates revision
Y coordinates update
X axis drilling direction
reversal
No. of holes in Y direction
−
1