求下图的数控铣床编程的程序,急求!!!速度快可以再加分!!!

2024-12-29 21:23:35
推荐回答(1个)
回答1:

你是什么数控系统?给你提供两个系统的程序。上平面对刀,XY碰中,刀具直径16平底刀。(本程序只用一把刀加工)
法莱克系统程序如下:
%
O0001
N100 G21
N102 G0 G17 G40 G49 G80 G90
N104 T1 M6
N106 G0 G90 G54 X-30.912 Y42.226 S1500 M3
N108 G43 H1 Z25.
N110 Z5.
N112 G1 Z-1. F100.
N114 X-25.255 Y36.569 F500.
N116 G2 Y25.255 R8.
N118 G1 X-33.373 Y17.137
N120 G3 X-35.717 Y11.481 R8
N122 G1 Y-11.481
N124 G3 X-33.373 Y-17.137 R8.
N126 G1 X-17.137 Y-33.373
N128 G3 X-11.481 Y-35.717 R8
N130 G1 X11.481
N132 G3 X17.137 Y-33.373 R8.
N134 G1 X33.373 Y-17.137
N136 G3 X35.717 Y-11.481 R8
N138 G1 Y11.481
N140 G3 X33.373 Y17.137 R8.
N142 G1 X17.137 Y33.373
N144 G3 X11.481 Y35.717 R8
N146 G1 X-11.481
N148 G3 X-17.137 Y33.373 R8.
N150 G1 X-25.255 Y25.255
N152 G2 X-36.569 R8.
N154 G1 X-42.226 Y30.912
N156 G0 Z24.
N158 X-30.912 Y42.226
N160 Z4.
N162 G1 Z-2. F50.
N164 X-25.255 Y36.569 F500.
N166 G2 Y25.255 R8.
N168 G1 X-33.373 Y17.137
N170 G3 X-35.717 Y11.481 R8
N172 G1 Y-11.481
N174 G3 X-33.373 Y-17.137 R8.
N176 G1 X-17.137 Y-33.373
N178 G3 X-11.481 Y-35.717 R8
N180 G1 X11.481
N182 G3 X17.137 Y-33.373 R8.
N184 G1 X33.373 Y-17.137
N186 G3 X35.717 Y-11.481 R8
N188 G1 Y11.481
N190 G3 X33.373 Y17.137 R8.
N192 G1 X17.137 Y33.373
N194 G3 X11.481 Y35.717 R8
N196 G1 X-11.481
N198 G3 X-17.137 Y33.373 R8.
N200 G1 X-25.255 Y25.255
N202 G2 X-36.569 R8.
N204 G1 X-42.226 Y30.912
N206 G0 Z25.
N208 X-29.753 Y35.534
N210 Z5.
N212 G1 Z-1. F50.
N214 X-25.753 Y28.606 F500.
N216 G3 X-14.825 Y25.678 R8.
N218 G1 X-4. Y31.928
N220 G2 X4. R8.
N222 G1 X25.651 Y19.428
N224 G2 X29.651 Y12.5 R8.
N226 G1 Y-12.5
N228 G2 X25.651 Y-19.428 R8.
N230 G1 X4. Y-31.928
N232 G2 X-4. R8.
N234 G1 X-25.651 Y-19.428
N236 G2 X-29.651 Y-12.5 R8.
N238 G1 Y12.5
N240 G2 X-25.651 Y19.428 R8.
N242 G1 X-14.825 Y25.678
N244 G3 X-11.897 Y36.606 R8.
N246 G1 X-15.897 Y43.534
N248 G0 Z25.
N252 X2. Y0.
N254 Z5.
N256 G1 Z-1. F50.
N258 G3 X-2. R2.
N260 X2. R2.
N262 G1 Z-2.
N264 G3 X-2. R2.
N266 X2. R2.
N268 G1 Z-3.
N270 G3 X-2. R2.
N272 X2. R2.
N274 G0 Z25.
N276 M5
N278 G91 G28 Z0.
N280 G28 X0. Y0.
N282 M30
%

华中系统程序如下:
O0001
N102 G0 G17 G40 G49 G80 G90
N104 T1
N106 G0 G90 G54 X-30.912 Y42.226 S1500 M3
N110 Z5.
N112 G1 Z-1. F100.
N114 X-25.255 Y36.569 F500.
N116 G2 Y25.255 R8.
N118 G1 X-33.373 Y17.137
N120 G3 X-35.717 Y11.481 R8
N122 G1 Y-11.481
N124 G3 X-33.373 Y-17.137 R8.
N126 G1 X-17.137 Y-33.373
N128 G3 X-11.481 Y-35.717 R8
N130 G1 X11.481
N132 G3 X17.137 Y-33.373 R8.
N134 G1 X33.373 Y-17.137
N136 G3 X35.717 Y-11.481 R8
N138 G1 Y11.481
N140 G3 X33.373 Y17.137 R8.
N142 G1 X17.137 Y33.373
N144 G3 X11.481 Y35.717 R8
N146 G1 X-11.481
N148 G3 X-17.137 Y33.373 R8.
N150 G1 X-25.255 Y25.255
N152 G2 X-36.569 R8.
N154 G1 X-42.226 Y30.912
N156 G0 Z24.
N158 X-30.912 Y42.226
N160 Z4.
N162 G1 Z-2. F50.
N164 X-25.255 Y36.569 F500.
N166 G2 Y25.255 R8.
N168 G1 X-33.373 Y17.137
N170 G3 X-35.717 Y11.481 R8
N172 G1 Y-11.481
N174 G3 X-33.373 Y-17.137 R8.
N176 G1 X-17.137 Y-33.373
N178 G3 X-11.481 Y-35.717 R8
N180 G1 X11.481
N182 G3 X17.137 Y-33.373 R8.
N184 G1 X33.373 Y-17.137
N186 G3 X35.717 Y-11.481 R8
N188 G1 Y11.481
N190 G3 X33.373 Y17.137 R8.
N192 G1 X17.137 Y33.373
N194 G3 X11.481 Y35.717 R8
N196 G1 X-11.481
N198 G3 X-17.137 Y33.373 R8.
N200 G1 X-25.255 Y25.255
N202 G2 X-36.569 R8.
N204 G1 X-42.226 Y30.912
N206 G0 Z25.
N208 X-29.753 Y35.534
N210 Z5.
N212 G1 Z-1. F50.
N214 X-25.753 Y28.606 F500.
N216 G3 X-14.825 Y25.678 R8.
N218 G1 X-4. Y31.928
N220 G2 X4. R8.
N222 G1 X25.651 Y19.428
N224 G2 X29.651 Y12.5 R8.
N226 G1 Y-12.5
N228 G2 X25.651 Y-19.428 R8.
N230 G1 X4. Y-31.928
N232 G2 X-4. R8.
N234 G1 X-25.651 Y-19.428
N236 G2 X-29.651 Y-12.5 R8.
N238 G1 Y12.5
N240 G2 X-25.651 Y19.428 R8.
N242 G1 X-14.825 Y25.678
N244 G3 X-11.897 Y36.606 R8.
N246 G1 X-15.897 Y43.534
N248 G0 Z25.
N252 X2. Y0.
N254 Z5.
N256 G1 Z-1. F50.
N258 G3 X-2. R2.
N260 X2. R2.
N262 G1 Z-2.
N264 G3 X-2. R2.
N266 X2. R2.
N268 G1 Z-3.
N270 G3 X-2. R2.
N272 X2. R2.
N274 G0 Z25.
N276 M5
N278 G91 G28 Z0.
N280 G28 X0. Y0.
N282 M30