一日一例——凸轮_子程序

数车程序参考:

O0001;

N10 G98 G40 G21; 

N20 T0101: 

N30 G00X100.0Z100.0; 

N40 M03 S800 M08; 

N50 G00X125.0 Z2.0; 

N60 G71U2.0 R0.5; 

N70G71 P80 Q150 U0.5 W0 F150; 

N80 G01X26.0F80 S1500;

N90 Z0.0; 

N100X30.0Z-2,0;

N110Z-30.0; 

N115X46.0; 

N120X50.0Z-32.0; 

N130Z-35.0;

N140X120.0Z-38.06;

N150 X125.0;

N160G00X100.0Z100.0; 

N170 T0202; 

N180 G00X122.0Z2.0; 

N190 G70P80Q200; 

N200 G00X100,0Z100.0; 

N210 M09 M05; 

N220 M30;

数铣程序参考:

O0002; 

N10 G90G94G40 G21G17 G54; 

N20 G91G28Z0; 

N30 G90 G00X70.0Y0.0; 

N40 Z20.0; 

N50 S1000M03M08; 

N60 G01Z-35.0F100; 

N70 M98 P210L3; 

N80 G91G28Z0; 

N90 M30;

子程序号

O210;

N10 G91 G01Z-10.0F150;

N20 G90G41G01X60.0Y0 D01;

N30 G02 X-55.8109 Y-22.0261R60.0;

N40 G02X-48.2455 Y-8.5070 R10.0;

N50 G01 X-44.6311Y-7.8697;

N60 G03X-36.7844 Y-0.8787 R10.0;

N70 G01 X-23.9579 Y42.1429;

N80 G02X23.9579 Y42.1429R25.0;

N90 G0l X36.7844Y-0.8787;

N100 G03 X44.6311 Y-7.8697 R10.0;

N110 G01X-48.2455Y-8.5070;

N120 G02 X55.8109 Y-22.0261 R10.0;

N130 G40 G01X60.0 Y0.0;

N140 M99;