数控铣床程序练习侧铣钻槽铣
提交人:BEATA
总结
Q. 为所示图形编写 CNC 零件程序
对于侧铣,采用速度 1200 rpm &进给 100 mm/min
对于钻孔,采用速度 1200rpm &进给 80mm/min
对于槽铣,采用速度 1200rpm &进给 120mm/min
取孔径为15mm
使用绝对坐标系。
解决方法:
操作顺序:
1 设置参考点、坐标系、刀具,给定进给和速度值
2 设置刀具半径补偿左偏
3 刀具在A,启动主轴并下刀进给(-Z方向)
4 继续进行侧铣切削,主轴停在A点
5 刀具移至参考点,对刀槽切削
6 刀具移至P,开始主轴下刀
7 继续铣槽切削,主轴停在S
8 移刀到参考点,对刀钻孔
9 移刀到P,启动主轴并进行全深度切削
10 向上移动刀具并停止主轴。
11 将刀具返回参考点。
12 程序结束
绘图/图片
数控程序
05007 N001 G71 G90 (Set dimension type mm, set absolute co-ordinate system) N002 G92 X-15.0 Y-15.0 Z0.0 T01 F100 S1200 (Set reference point -15, -15, 0. Tool T01 side milling tool. Feed 100mm/rev, spindle speed 1200 rpm) N003 G41 G00 X0.0 Y0.0 Z2.0 (Cutter radius compensation left ON, move the tool at A & give clearance of 2mm before starting spindle rotation) N004 G01 Z-15.0 M03 (Start the spindle. Move tool down i.e. at Z direction for cut with feed here M03 will execute first) N005 G01 X0.0 Y110.0 (Go to B linearly) N006 G02 X10.0 Y120.0 R10.0 (Go to C with clockwise circular interpolation with radius = 10) N007 G01 X75.0 (Go to D linearly) N008 G01 X100.0 Y92.0 (Go to E linearly) N009 G01 Y10.0 (Go to F linearly) N010 G02 X90.0 Y0.0 R10.0 (Go to G with clockwise circular interpolation with radius = 10) N011 G01 X0.0 (Go to A linearly) N012 Z2.0 M05 (Go up 2mm in Z direction for clearance. Stop spindle rotation here M05 will execute last.) N013 G40 G00 X-15.0 Y-15.0 (Cutter radius compensation OFF. Move tool to reference set point.) N014 M06 T02 F120 (Change the tool & use tool T02 - here for slot mill tool with dia 6mm. Set feed as 120mm/rev.) N015 G00 X15.0 Y55.0 (Move tool to 'P' rapidly.) N016 G01 Z-5.0 M03 (Start the spindle. Move tool 5mm down i.e. at Z direction for cut with feed - here M03 will execute first) N017 Y80.0 (Go to Q linearly.) N018 X85.0 (Go to R linearly.) N019 Y80.0 (Go to S linearly.) N020 Z2.0 M05 (Go up 2mm in Z direction for clearance. Stop spindle rotation - here M05 will execute last.) N021 G00 X-15.0 Y-15.0 (Move tool to reference set point.) N022 M06 T03 F80 (Change the tool & use tool T03 - here for drill bit with dia 15mm. Set feed as 80mm/rev.) N023 G00 X50.0 Y25.0 (Move tool to 'T') N024 G01 Z-20.0 M03 (Go down 20mm for assuring full depth of hole.) N024 Z2.0 M05 (Go up 2mm in Z direction for clearance. Stop spindle rotation - here M05 will execute last.) N025 G00 X-15.0 Y-15.0 (Move tool to reference set point.) N026 M30 (Stop the program)
数控机床