少校
UID9337260
U币1
G币6562
技术0
主题14
精华0
阅读权限90
注册时间2019-10-8
最后登录2024-11-20
在线时间677 小时
手机18068580560
少校
|
思路来自UG的面铣往复策略
O3001
G40 G17 G49 G80 G90
G91 G28 Z0.0
#1=160
#2=130
#3=63
#7=1
#8=1.6
#9=1
#17=2000.
#19=0.5
T#7
M06
G54G90
M3S1000
M8
(A-CHANG-#1) 工件长度
(B-KUANG-#2) 工件宽度
(C-DAOJU-ZHIJING-#3) 刀具直径
(D-DAOJUHAO-#7) 刀具号
(E-SHENDU-#8) 需铣削的深度
(F-MEIDAOSHENDU-#9) 每刀深度
(Q-JINJI-#17) 进给
(S-DAOJUZHIJINGBAIFENBI-#19) 刀具直径百分比
#11=-[#2/2]
G0G90X-[#1/2+#3/2+10.]Y-[#2/2]
G43Z100.H#7
Z[#8+5.]
IF[#9EQ0]THEN#9=#8
IF[#8LT#9]THEN#8=#9
IF[#8EQ0.4]GOTO5
#8=#8-#9
IF[#8EQ0]GOTO5
N1
G1Z#8F5000
N8
G1X[#1/2+5.]F#17
#11=#11+[#3*#19]
IF[#11GT#2/2]GOTO2
G1Y#11F#17
G1X-[#1/2+5.]F#17
#11=#11+[#3*#19]
IF[#11GT#2/2]GOTO3
G1Y#11F#17
GOTO8
N2
G1X[#1/2+#3/2+10.]F#17
G0Z[#8+5.]
G0G90X-[#1/2+#3/2+10.]Y-[#2/2]
#8=#8-#9
#11=-[#2/2]
IF[#8GT0.1]GOTO1
GOTO5
N3
G1X-[#1/2+#3/2+10.]F#17
G0Z[#8+5.]
G0G90X-[#1/2+#3/2+10.]Y-[#2/2]
#8=#8-#9
#11=-[#2/2]
IF[#8GT0.1]GOTO1
N5
G1Z0.1F5000
N10
G1X[#1/2+5.]F[#17/4]
#11=#11+[#3/2]
IF[#11GT#2/2]GOTO6
G1Y#11F#17
G1X-[#1/2+5.]F[#17/4]
#11=#11+[#3/2]
IF[#11GT#2/2]GOTO7
G1Y#11F#17
GOTO10
N6
G1X[#1/2+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