加工中心編程實例教學—第三篇
實例七 鏡像加工
參考程序:
O0001;(主程序)
G90 G40 G21 G17 G94;
G50.1 X0 Y0;
G91 G28 Z0;
G90 G54 M3 S680;
M08;
M98 P0002;
G51.1 X0;
M98 P0002;
G50.1 X0;
M09;
M30;
O0002;(子程序)
G00 X-58.0 Y-48.0;
Z50.0;
Z5.0;
G01 Z-3.0 F50;
G41 D01 G01 X-47.0 Y-45.0 F100;
X-47.0 Y-20.0;
X-37.0 Y-20.0;
G03 X-27.0 Y-10.0 R10.0;
G01 X-27.0 Y10.0;
G03 X-37.0 Y20.0 R10.0;
G01 X-47.0 Y20.0;
X-47.0 Y42.5;
X-28.0 Y42.5;
G02 X-8.0 Y22.5 R20.0;
G01 X-8.0 Y-20.0;
X-30.5 Y-42.5;
X-50.0 Y-42.5;
G40 G01 X-58.0 Y-48.0;
G00 Z50.0;
M99;
實例八 極坐標加工
參考程序:
O0001;
G54 G40;
M08;
G15;
M03 S700;
G00 X58.0 Y-10.0;
Z50.0;
Z5.0;
G01 Z-5.0 F50;
G41 D01 G16 G01 X36.0 Y-5.0 F100;
G02 X24.0 Y-5.0 R6.;
G03 X24.0 Y275.0 R-24.0;
G02 X36.0 Y275.0 R6.0;
G02 X36.0 Y-5.0 R-36.0;
G40 G15 G01 X58.0 Y-10.0;
G00 Z150.0;
M09;
M30;