11. Custom Macro
141
Example
Example
Example
Example 5
5
5
5
Program the part shown in Figure 11.5.
U
V
W
A
B
C
Figure 11.5 Custom Macro Example 5
%3405
N1 T0101
N2 G00 X90 Z30
N3 U10 V50 W80 A20 B40 C3 M98 P01(#20=10, #21=50, #22=80, #0=20, #1=40, #2=3)
N4 M30
%01
N1 G00 Z[-#22+#21+#20]
N2 X[#1+5]
N3 #10=#2
N4 WHILE
#10 LE #21
N5 G00 Z[-#22+#21+#20-#10]
N6 G01 X[#0]
N7 G00 X[#1+5]
N8 #10=#10+#2-1
N9 ENDW
N10 G00 Z[-#22+#20]
N11 G01 X[#0]
N12 G00 X[#1+5]
N13 G00 X90 Z30
N14 M99
Summary of Contents for HNC-18iT
Page 27: ...2 Preparatory Function 23 G59...