1、 数控机床编程与操作复习 一、计算题1.如图所示零件,试计算大孔的深度,并计算各长度的中值尺寸。解:画尺寸链(图示)封闭环A0=, 增环A1=, 减环A2计算封闭环基本尺寸: 10 = 50 - A2 A2=40封闭环上偏差: 0 = 0 - EI2 EI2=0 图2-6 例2尺寸链封闭环下偏差: 0.36 = -0.17 - ES2 ES2=0.19 验算封闭环公差 T0=0.36 , T1+ T2 =0.17+0.19=0.36 计算正确2.如图所示零件,试计算H的尺寸,并计算各长度的中值尺寸。H=mm 中值尺寸:49.992mm;20.0165mm; 29.827mm二、画图题在下面描出
2、刀具轨迹,明确本程序呈何种形状:其中:虚线表示快进,实线表示切削进给。从原点开始。O0001:G90G54G00X60Y20M03;G01Y70F100;X40;Y80;G02 X60Y100R20;X70;G03 X110Y100R20;G01 X120;G02 X140Y80R20;Y70;X120;Y20;X60;G00X0Y0M05;M30;三、编程题1、零件如图所示,单件小批量生产,所用数控系统为FANUC。零件材料为45钢,毛坯尺寸55100mm,要求分粗、精加工。(15分)(1)根据图纸要求按先主后次的加工原则,确定工艺路线。(2)选择刀具 (3)确定切削用量 (4)编写上图所示
3、工件的加工程序。O0001;N10 M03 S600;N30 T0101;N40 G00X55. Z0.5;N50 G71 U2. R1.;N60 G71 P70 Q160 U0.2 W0.1 F0.2;N70 G00 X0;N80 G01 Z0 F0.2 F0.1;N90 G03 X15. Z-3.4 R10.;N100 G01 Z-15.;N110 X30. Z-35.;N120 Z-52.;N130 G02 X36. Z-55. R3.;N140 G01 X40.;N150 G03 X50.Z-60.R5.;N160 G01 Z-65.N170 G70 P70 Q160;N180 G00
4、 X100. Z100.;N190 M05;N200 M30;2、编写程序,使用中心钻在工件上表面划线,划线深度0.4mm。O0001 G00 Z10G90 G54 X100 Y35MO3 S600 G01Z-0.4G00 X5 Y35 Z50 X75 Y15Z10 G00 Z10G01 Z-0.4 F100 X85 Y20X5 Y5 G01 Z-0.4X25 X100 Y5G00 Z10 G00 Z100X30 Y35 M05G01 Z-0.4 M30Y15GO3 X50 Y15 R10G01 Y15G00 Z10X75 Y25G01 Z-0.4G03 X55 Y25 R10G01 Y15G
5、05 X75 Y15 R10G00 Z10X80 Y35G01 Z-0.4X80 Y53、题目:加工如下图所示零件,工件加工深度5mm。使用刀具半径补偿编写零件程序。O0002G54 G90M03 S600G00 X-50 Y-50 Z10Z2G01 Z-5 F100G42 G01 X-10 Y0 D01G01 X20 Y0G02 X56 Y0 R18G01 X76X91 Y10Y30G03 X81 Y40 R10G01 X73 Y40G02 X49 Y40 R12G01 X38G03 X0 Y12.49 R40G01 X0 Y-10G40 G01 X-50 Y-50G00 Z100M05M3
6、04、工件图样(坯料直径为56mm,长130mm,材料为铝棒,不用割断)(1)根据图纸要求按先主后次的加工原则,确定工艺路线。(2)选择刀具 (3)确定切削用量 (4)编写上图所示工件的加工程序。O0507;N10G97G99S800M03; 主轴正转,转速为800r/minN20T0404; 调用4号端面刀,建立工件坐标系 N30G00X580Z0; 移动至车端面起点N40G01X-1F0.25;车端面N50G00X150Z100; 退至换刀点N60T0400; 取消4号刀补N70G96S100; 选择恒线速度为100m/minN80T0101; 调用1号90外圆粗车刀N90G00X55Z5
7、;快速移动至粗车循环起点N100G71U2R1; 设置粗车循环,进2mm退1mmN110G71P120Q280U0.5W0.1F0.3;粗车循环开始从N120N280,粗车进给为0.3mm/rN120G00X7; 移动切削起点N130G01Z0S150F0.15; 开始切削N140X10Z-1.5; 车第一倒角N150Z-10; 车10外圆N160X12.8; 车螺纹右端面N170X15.8Z-11.5; 第二个倒角,精加工恒线速度100m/min,进给量0.15mm/rN180Z-34; 车螺纹外径N190X21; 车24mm外圆右端面N200X24Z-35.5; 车第三个倒角N210Z-5
8、4; 车24mm的外圆N220G02X36Z-60G6; 车过度R6mm的圆弧N230G01Z-75; 车36mm的外圆N240X46Z-90; 车锥面N250X51; 车54mm外圆右端面N260X54Z-91.5; 车第四个倒角N270Z-105; 车54mm的外圆 N280X58; 径向退刀N290G00X150Z100; 返回换刀点N300T0100; 取消1号刀补 N310T0202; 调用2号精车刀N320G00X55Z5; 快速移动至精车起点N330G70P120Q280; 开始精车,执行N120N280N340G00X150Z100; 返回换刀点N350T0200; 取消2号刀
9、补 N360G97S500M03; 主轴正转,转速为500r/minN370T0505; 调用5号车槽刀N380G00Z-34; 切槽Z向定位N390X26; 切槽X向定位N400G01X13F0.1; 切槽N410G04P2000; 暂停2000msN420G01X26; X向退刀 N430G00X150Z100; 返回换刀点N440T0500; 取消5号刀补 N450T0303; 调用3号刀车螺纹N460G00X18Z-5; 快速移动至螺纹循环起点N470G76P011060Q100R100; 螺纹循环加工参数设置,精加工1次 N480G76X13.4Z-32R0P1300Q400F3;
10、牙高1.3mm,第一次切深0.4mmN490G00X150; 径向退刀N500Z100; 轴向退刀 N510T0300; 取消3号刀补 N520M05; 主轴停N530M30; 程序结束5、题目:编写如下图所示零件的凸台加工程序。 O0003G54 G90M03 S600G00 X-50 Y-50 Z50Z10G01 Z0 F100M98 P0101 L4G01 Z0M98 P0102 L3G01 Z0M98 P0103 L2G01 Z0M98 P0104G91 G28 Z0 M09M30O0101 G40 G01 X-50 Y-50G91 G01 Z-5 M99G90 G41 G01 X-3
11、0 D01Y20G02 X-20 Y30 R10G01 X20G02 X30 Y20 R10G01 Y-20G02 X20 Y-30 R10G01 X-20G02 X-30 Y-20 R10G40 G01 X-50 Y-50M99O0102G91 G01 Z-5G90 G41 G01 X-5 Y43.3 D01X-30 Y0X-15 Y25.98X15X30 Y0X15 Y-25.98X-25G40 G01 X-50 Y-50M99O0103G91 G01 Z-5G90 G41 G01 X15 Y-25.98X0G02 X0 Y-25.98 I0 J25.98X-15G40 G01 X-50
12、Y50M99O0104G91 G01 Z-5G90 G41 G01 X10 Y-43.3 D01X-22,5 Y12.99X22.5X-10 Y-43.36、加工如图所示零件,试编写加工程序。(坯料直径为42mm,长65mm和25mm,材料为铝棒)O3431(件2内螺纹,预钻24孔,深16)M3S600;T0404;镗孔刀G0X20Z2;G71U1R1;G71P1Q2U-0.3W0F0.2;N1G0X32;G1Z0F0.08;X30.2Z-1.5;Z-14;N2X20;G70P1Q2S1000;G0X100Z100;T0303S400;内螺纹刀G0X20Z4;G92X30.8Z-12F1.5;
13、X31.4;X31.6;X31.8;X31.9;X32;G0X100Z100;M30;O3432(件1外圆)M03 S600T0101G00 X42 Z2G90 X40 Z-62 F0.2X38.5G00 X34G01 Z0S1000G03 X38 Z-2 R2 F0.1G01 Z-62G00 X42X100 Z100M05M30O3433(件1内孔,预钻20孔,深50)M3S600;T0404;镗孔刀G0X19Z2;G71U1R1;G71P1Q2U-0.3W0F0.2;N1G0X24;G1Z-46F0.08;G3X20Z-48R2;N2G1X19;G70P1Q2S1000;G0X100Z10
14、0;M30;O3434 (件1外螺纹)M3S800;T0101;外圆刀G0X40Z2;G71U1R1;G71P1Q2U0.5W0F0.2;N1G0X29;G1Z0F0.08;X32Z-1.5;Z-10;X34;X38Z-20;N2X40;G70P1Q2S1000;G0X100Z100;T0202;S400;G0X34Z-10;G1X28F0.1;G0X40;G0X100Z100;T0303;G0X40Z4;G92X31.4Z-8F1.5;X31;X30.8;X30.6;X30.4;X30.2;X30.1;G00X100Z100;M30;件2外形O3435M03 S600T0101G00 X43 Z20G01 X-1 F0.2G00 X43 Z24G90 X40 Z-12X38.5G00 X34 Z21 S1000G01 Z20G03 X38 Z18 R2 F0.1G01 Z-12G00 X42G00 X100 Z100M05M307 / 7