|
本厂粗加工钻头的宏程序,加工到尾部退刀,增厚。
O105(duo-dao-luo-xuan)
G91 G28 Z0
#1=360
#2=2(CHI-SHU)
#3=#1/#2(JI-SUAN-CHI-JIAO-DU)
#4=0(QI-SI-JIAO-DU)
#5=30(LUO-XUAN-JIAO)
#10=45(ZHI-JING)
#20=204(JIA-GONG-CHANG-DU)
#6=1/TAN[#5]*3.14*#10(JI-SUAN-DAO-CHENG)
#7=[#20/#6]*360(JI-SUAN-JIAO-DU)
#12=#7
#30=#20
#11=#20
#25=0(X-ZUO-BIAO)
#26=0(Y-ZUO-BIAO)
M3
G0 G90 G54 X#25 Y#26
Z100
N1
M22
A#4
M23
#21=-6
N3
#22=3.9(ZENG-HOU-ZHI)
#28=#22/2
#24=-30(JIA-GONG-ZONG-SHEN-DU)
#27=1.5(mei-dao-shen-du)
#29=0.7(tui-dao-zhi)
Z5
G1Z0F500
G1 Z#21 F50
M22
#23=#21+#28
X#11 A#7 Z#23 F180
G0 Z100
X#25 Y#26 A#4
#21=#21-#27
#11=#11-#29
#7=[#11/#6]*360+#4
IF[#21GE#24]GOTO3
#4=#4+#3
#7=#12+#3
#20=#30
#11=#30
IF[#1GT#4]GOTO1
G0 Z100. F5000.
M5
G91 G28 Z0.
G91 G28 Y0.
M30
|
|