|
请教下途中这两处箭头位置 是哪个代码没有弄对
%
O0001
#1=300(X)
#2=300(Y)
#3=50(刀具直径)
#4=0.6(Y向步距)
#5=0(起始高度)
#6=-3(终止深度)
#7=0.5(每刀切深)
#8=[#1+#3]/2+5(X起始点)
#9=[#2+#3]/2+5(Y起始点180)
#10=#3*#4(步距30)
#11=#3*0.25
#21=2500(转速)
#22=2000(进给)
#23=1(刀长补正)
G0 G90 X#8 Y#9
M3 S#21
G43 H#23 Z30. M08
G0 Z[#5+2]
WHILE[#5GT#6] DO1
G1 Z#5 F300
WHILE[#9LT#2/2] DO2
#9=#9+#10
G1 Y#9 F#22
X-#8+#3*0.25
G02 X-#8 Y#9+#11 R#11
G1 Y#9+#10-#11
G02 X-#8+#11 Y#9+#10 R#11
G1 X#8-#11
G03 X#8 Y#9+#10+#11 R#11
G1 Y#9+#10*2-#11
G03 X#8-#11 Y#9+#10*2 R#11
#9=#9+#10
Y#9
X#8
END2
#8=[#1+#3]/2+5
#9=-[#2+#3]/2+5
G0 Z[#5+2.]
G0 G90 X#8 Y#9
#5=#5-#7
END1
IF[#5LT#6]THEN #5=#6
G1 Z#5 F300
WHILE[#9LT#2/2]DO 3
#9=#9+#10
G1 Y#9 F#22
X-#8+#3*0.25
G02 X-#8 Y#9+#11 R#11
G1 Y#9+#10-#11
G02 X-#8+#11 Y#9+#10 R#11
G1 X#8-#11
G03 X#8 Y#9+#10+#11 R#11
G1 Y#9+#10*2-#11
G03 X#8-#11 Y#9+#10*2 R#11
#9=#9+#10
Y#9
X#8
END3
G0G90Z30.
M05
M09
G91 G28 Z0.0
G28 Y0.
M30
%
|
|