数控铣削编程
发布网友
发布时间:2022-04-29 22:21
我来回答
共2个回答
热心网友
时间:2022-06-24 10:39
O0051
G54 X0 Y0 Z60
G17 M03 S600 F300
G43 G00 X50 Y50 Z40 H01
#5=14
M98 P21000
G51 X50 Y50 P1.5
M98 P1000
G50
G49 Z46
M05 M30
O1000
N100 G41 G00 X10 Y30 D01
N120 Z[-#5]
N150 G01 X50 Y110
N160 X90 Y30
N170 X10
N180 Z[3*#5]
N200 G40 G00 X44 Y28
N210 M99
以上是法那克0IM的简简单手工编程,该程序涉及到刀补、子程序、简单宏程序缩放等功能。
下图是我用广州超软仿真软件加工出来的形状。子程序O1000就是一个简单的三角形状。
当然也可以用绘图软件辅助自动编程,那样可以加工复杂图形,不过程序比较长,同样,手工编宏程序也加工出一般图形,下面我附上一个铣平面的宏程序:
O0003;
#1=200
#2=200
#3=10
#4=-#2/2
#14=0.8*#3
#5=[#1+#3]/2+2
S1000 M03
G54 G90 G00 X0 Y0 Z30
X#5 Y#4
Z-2
WHILE [#4 LT [#2/2+0.3*#3]] DO 1
G01 X-#5 F1000
#4=#4+#14
Y#4
X#5
#4=#4+#14
Y#4
END 1
G00 Z30
M30
%
铣床编程不难,多看些系统编程说明书吧
热心网友
时间:2022-06-24 10:40
%1111
G54
G91 G28 Z0.0
G00 G90 X-1.074 Y.512 S1600 M03
G43 Z10. H00
Z-13.5
G01 X-1.184 Y.334 Z-13.515 F600. M08
Y-.334 Z-13.561
X-.834 Y-.904 Z-13.608
X-.366 Y-1.174 Z-13.646
X.366 Z-13.697
X.834 Y-.904 Z-13.735
X1.2 Y-.27 Z-13.786
Y.27 Z-13.824
X.881 Y.858 Z-13.871
X.302 Y1.192 Z-13.917
X-.366 Y1.174 Z-13.964
X-.834 Y.904 Z-14.002
X-1.184 Y.334 Z-14.049
Y-.334 Z-14.095
X-.834 Y-.904 Z-14.142
X-.366 Y-1.174 Z-14.18
X.366 Z-14.231
X.6 Y-1.039 Z-14.25
G03 X1.2 Y0.0 R1.2 F1400.
X0.0 Y1.2 R1.2
X-1.2 Y0.0 R1.2
X0.0 Y-1.2 R1.2
X.6 Y-1.039 R1.2
G00 Z-13.75
X-1.074 Y.512
G01 X-1.184 Y.334 Z-13.765 F600.
Y-.334 Z-13.811
X-.834 Y-.904 Z-13.858
X-.366 Y-1.174 Z-13.896
X.366 Z-13.947
X.834 Y-.904 Z-13.985
X1.2 Y-.27 Z-14.036
Y.27 Z-14.074
X.881 Y.858 Z-14.121
X.302 Y1.192 Z-14.167
X-.366 Y1.174 Z-14.214
X-.834 Y.904 Z-14.252
X-1.184 Y.334 Z-14.299
Y-.334 Z-14.345
X-.834 Y-.904 Z-14.392
X-.366 Y-1.174 Z-14.43
X.366 Z-14.481
X.6 Y-1.039 Z-14.5
G03 X1.2 Y0.0 R1.2 F1400.
X0.0 Y1.2 R1.2
X-1.2 Y0.0 R1.2
X0.0 Y-1.2 R1.2
X.6 Y-1.039 R1.2
G00 Z-14.
X-1.074 Y.512
G01 X-1.184 Y.334 Z-14.015 F600.
Y-.334 Z-14.061
X-.834 Y-.904 Z-14.108
X-.366 Y-1.174 Z-14.146
X.366 Z-14.197
X.834 Y-.904 Z-14.235
X1.2 Y-.27 Z-14.286
Y.27 Z-14.324
X.881 Y.858 Z-14.371
X.302 Y1.192 Z-14.417
X-.366 Y1.174 Z-14.464
X-.834 Y.904 Z-14.502
X-1.184 Y.334 Z-14.549
Y-.334 Z-14.595
X-.834 Y-.904 Z-14.642
X-.366 Y-1.174 Z-14.68
X.366 Z-14.731
X.6 Y-1.039 Z-14.75
G03 X1.2 Y0.0 R1.2 F1400.
X0.0 Y1.2 R1.2
X-1.2 Y0.0 R1.2
X0.0 Y-1.2 R1.2
X.6 Y-1.039 R1.2
G00 Z-14.25
X-1.074 Y.512
G01 X-1.184 Y.334 Z-14.265 F600.
Y-.334 Z-14.311
X-.834 Y-.904 Z-14.358
X-.366 Y-1.174 Z-14.396
X.366 Z-14.447
X.834 Y-.904 Z-14.485
X1.2 Y-.27 Z-14.536
Y.27 Z-14.574
X.881 Y.858 Z-14.621
X.302 Y1.192 Z-14.667
X-.366 Y1.174 Z-14.714
X-.834 Y.904 Z-14.752
X-1.184 Y.334 Z-14.799
Y-.334 Z-14.845
X-.834 Y-.904 Z-14.892
X-.366 Y-1.174 Z-14.93
X.366 Z-14.981
X.6 Y-1.039 Z-15.
G03 X1.2 Y0.0 R1.2 F1400.
X0.0 Y1.2 R1.2
X-1.2 Y0.0 R1.2
X0.0 Y-1.2 R1.2
X.6 Y-1.039 R1.2
G00 Z-14.5
X-1.074 Y.512
G01 X-1.184 Y.334 Z-14.515 F600.
Y-.334 Z-14.561
X-.834 Y-.904 Z-14.608
X-.366 Y-1.174 Z-14.646
X.366 Z-14.697
X.834 Y-.904 Z-14.735
X1.2 Y-.27 Z-14.786
Y.27 Z-14.824
X.881 Y.858 Z-14.871
X.302 Y1.192 Z-14.917
X-.366 Y1.174 Z-14.964
X-.834 Y.904 Z-15.002
X-1.184 Y.334 Z-15.049
Y-.334 Z-15.095
X-.834 Y-.904 Z-15.142
X-.366 Y-1.174 Z-15.18
X.366 Z-15.231
X.6 Y-1.039 Z-15.25
G03 X1.2 Y0.0 R1.2 F1400.
X0.0 Y1.2 R1.2
X-1.2 Y0.0 R1.2
X0.0 Y-1.2 R1.2
X.6 Y-1.039 R1.2
G00 Z-14.75
X-1.074 Y.512
G01 X-1.184 Y.334 Z-14.765 F600.
Y-.334 Z-14.811
X-.834 Y-.904 Z-14.858
X-.366 Y-1.174 Z-14.896
X.366 Z-14.947
X.834 Y-.904 Z-14.985
X1.2 Y-.27 Z-15.036
Y.27 Z-15.074
X.881 Y.858 Z-15.121
X.302 Y1.192 Z-15.167
X-.366 Y1.174 Z-15.214
X-.834 Y.904 Z-15.252
X-1.184 Y.334 Z-15.299
Y-.334 Z-15.345
X-.834 Y-.904 Z-15.392
X-.366 Y-1.174 Z-15.43
X.366 Z-15.481
X.6 Y-1.039 Z-15.5
G03 X1.2 Y0.0 R1.2 F1400.
X0.0 Y1.2 R1.2
X-1.2 Y0.0 R1.2
X0.0 Y-1.2 R1.2
X.6 Y-1.039 R1.2
G00 Z-15.
X-1.184 Y-.172
G01 Y-.334 Z-15.011 F600.
X-.834 Y-.904 Z-15.058
X-.366 Y-1.174 Z-15.096
X.366 Z-15.147
X.834 Y-.904 Z-15.185
X1.2 Y-.27 Z-15.236
Y.27 Z-15.274
X.881 Y.858 Z-15.321
X.302 Y1.192 Z-15.367
X-.366 Y1.174 Z-15.414
X-.834 Y.904 Z-15.452
X-1.184 Y.334 Z-15.499
Y-.334 Z-15.545
X-.834 Y-.904 Z-15.592
X-.366 Y-1.174 Z-15.63
X.366 Z-15.681
X.6 Y-1.039 Z-15.7
G03 X1.2 Y0.0 R1.2 F1400.
X0.0 Y1.2 R1.2
X-1.2 Y0.0 R1.2
X0.0 Y-1.2 R1.2
X.6 Y-1.039 R1.2
G00 Z10.
M05 M09
G28 G91 Z0.0
M30
我用 的华中系统做的东西