|
发表于 2016-9-23 21:35:20
|
显示全部楼层
%
O8888
(Face MILL原点右上角)
#1=200.0
(Y width)
#2=300.0
(X length)
#3=37.0
(Z depth)
#4=25.0
(tool name)
#5=0.5
(Z step)
#6=0.7*#4
(Y step)
#7=0.0
(Z start)
G91 G28 Z0.0
T00 M06
G54 G90 G00 X0.0 Y0.0
S2000 M03
Z50.0 G43 H00
IF[#1LE#4]GOTO100
IF[#1LE[#6*2]]GOTO120
WHILE[#7LE#3]DO1
G00 Z[-#7+5]
X[#4/2+2] Y0.0
G01 Z-#7 F500
#8=#6
WHILE[#8LE#1]DO2
G01Y-#8 F1500
X[-#4/2-#2-2]
#8=#8+#6
Y-#8
X[#4/2+2]
#8=#8+#6
END2
#7=#7+#5
END1
GOTO 200
N100 G00 X[#4/2+2] Y[-#1/2]
N110 G01 Z-#7 F500
X[-#4/2-#2-2] F1500
#7=#7+#5
Z-#7 F500
X[#4/2+2]
#7=#7+#5
IF[#7LE#3]GOTO110
GOTO200
N120 G00 Z[-#7+5]
N130 G00 X[#4/2+2] Y-#6
G01 Z-#7 F500
X[-#4/2-#2-2]
Y[-#6*2]
X[#4/2+2]
#7=#7+#5
IF[#7LE#3]GOTO130
N200 G90 G00 Z50.0
M05
G91 G28 Z0.0
M30
% |
|