1昆明冶金高等专科学校数控专题实验报告书班级:机制1614指导教师:李腾忠姓名:董雄甫学号:1600007130成绩:机制教研室2018年6月2实训例题例:采用4的键槽铣刀,加工如图4-16所示数字“2”,切深为0.5mm。图1程序如下:(五号字)O0001;N010G54G90G00X0Y0Z50.0;→建立工件坐标系,采用绝对坐标,快速定位于工件原点X0、Y0距离工件表面50.0的正上方N020M03S2000;→主轴正转每分钟转2000转N030G00X20.0Y80.0;→快速点定位于点1上方N040Z5.0;→快速逼近工件,距离工件表面5.0mmN050G01Z-0.5F400;→向下切入工件,切深0.5mmN060G91X30.0;→铣削至2点(以G91增量方式)N070Y-30.0;→铣削至3点N080X-30.0;→铣削至4点N090Y-30.0;→铣削至5点N100X30.0;→铣削至6点N110G90G00Z100.0;→提刀至安全高度(G90方式)N120M05M30;→主轴停转,程序结束,返回到指针首行(数控实训是《数控加工与编程》课程的延伸,考核成绩按学生考勤和上交实训报告书情况评定成绩,请同学按时完成相应内容。)3任务一:采用4的键槽铣刀,加工如图所示数字“6”,切深为0.5mm。编程如下%O0001;N010G54;N020M06T0101;N030M03S800;N040G00X0Y0Z5.0F100.0;N050G00X50.0Y80.0;N060G01Z-0.5;N070G01X20.0;N080Y50.0;N090X50.0;N100Y20.0;N110X20.0;N120Y50.0;N130Z5.0;N140G00X100.0Y100.0Z100.0;N150M05;N160M30;%仿真图形如下4任务二:采用4的铣刀,加工如图所示图形,切深为5mm。编程如下%O00025N010G54G90G00X10.0Y0Z5.0N020M03S1000N030G01Z-5.0F300N040G02I-10.0J0N050G01Z5.0N060G00X20.0N070G01Z-5.0F300N080G02I-20.0J0N090G01Z5.0N100G00X10.0Y-17.32N110G01Z-5.0F300N120G01Y-40.0N130G03X30.0Y-40.0R10.0N140G02X38.0R4.0N150X10.0Y-54.97R18.0N160G03X-10.0Y54.97R10.0N170G02X-38.0Y-40.0R18.0N180X-30.0R4.0N190G03X-10.0Y-40.0R10.0N200G01Y-17.32N210G01Z5.0N220G28N230M05;N240M30:%仿真图形如下6任务三:毛坯为150X150X100,试用半径补偿和钻孔指令加工如图所示工件编程如下:%7O0003;N10M06T0101;N15G17G54G90G00X15.0Y-60.0Z3.0;N20M03S1000;N30G01Z-50.0F500;N40G41X15.0Y-40.0D01;N45G01X15.0Y15.0;N50Y135.0;N55X135.0;N60Y15.0;N70X30.0Y15.0;N80Y110.0;N90G02X40.0Y120R10.0;N100G01X110.0;N110G02X120.0Y110.0R10.0;N120G01Y40.0;N130G02X110.0Y30.0R10.0;N140G01X40.0;N150G02X30.0Y40.0R10.0;N160G40G00X-30.0;N170G01Z5.0;N180G28G00X300.0Z100.0;N190M05M06T0202;N200M03S1000;N130G90G00X75.0Y75.0Z70.0H01;N140G99G81Z-55.0R60.0F300;N150X20.0Y20.0;N160Y130.0;N170X130.0;N180G98Y20.0;N190G80G49;N195G28;N200M05M30;%仿真图形如下8任务四:钻孔循环指令应用,加工如图所示五个孔,20钻头。编程如下;%O00049N10G54G90G00X0Y0Z5.0;N20M03S800;N30G99G81X0Y0Z-5.0R2.0F100;N40X25.0Y25.0;N50X-20.0Y-20.0;N60G98X25.0;N70G80M05;N80M30;%;仿真图形如下任务五:用G71外径粗加工复合循环编制图1-1所示零件的加工程序。要求循环起始点在(46,3),切削深度为1.5mm(半径量)。退刀量为1mm,X方向精加工余量为0.2mm,Z方向精加工余量为0.2mm,刀架前置,其中点划线部分为工件毛坯。10编程如下:%O0005M06T0101;M03S800;G00X42.0Z2.0;G71U3.0R1.0;G71P10Q80U0.3W0.1F80;N10G01X0Z0F100;G01X18.0;X20.0;Z-2.0;Z-20.0;X20.0;X28.0Z-30.0;Z-40.0;X36.0;Z-55.0;N80X42.0;G00X100.0Z100.0;M05;M03S1000;G00X42.0Z2.0G70P10Q80;G00X100.0Z100.0;M05;M06T0202;M03S500;G00X42.0Z-23.0;G01X17.0F50;G04P2000;G01X42.0;Z-22.0;X17.0;11G04P2000;G01X42.0;G00X100.0Z100.0;M05;M06T0303;M03S400;G00X22.0Z2.0;G92X19.4Z-17.0F1.5;X18.9;X18.6;X18.4;X18.3X18.2;X18.1;X18.05;G00X100.0Z100.0;M30;%仿真图形如下:12编程如下:%O0006;M06T0101;M03S800;G00X90Z2;G71U2R1;G71P10Q70U0.3W0.1F80;N10G01X0Z0F100;X46;X48Z-1;Z-60;X50;X62Z-120;Z-135;X78;X80Z-136;Z-155;G01Z-225;X85;Z-290;N70X92;G00X100Z50;G00X82Z-153;G01X80Z-155;G02Z-215R70;G01X82;G00X100Z50;M05;M03S1000;G00X90Z2;G70P10Q70;G00X100Z50;M05;M03S400;M06T0202;13G00X52Z-63F50;GOIX45;G04X2.0;G01X52;G00X50Z50;M06T0303;G00X100Z5;G92X47.2Z-61F1.5;X45.7;X46.3;X46.2;X46.1X46.05;G00X100Z50;M30;%仿真图形如下: