图1 加工任务图
参考程序:
○0001;(主程序)
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
○0002;(子程序)
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;