程序参考:
O0003;
N10G54M03S600T0303;(03为车刀)
N20G00X52.0Z2.0;(循环起点)
N30G71U2.0R0.25;(粗车循环)
N40G71P50Q90U0.5W0.25F0.25;
N50G00X32.0;
N60G01X36.0Z-2.0F0.15;
N70Z-26.0;
N80X48.0;
N90Z-41.0
N100G70P50Q90;(精车)
N110G00X100.0Z100.0T0300;
N120T0606;(切槽刀)
N130G00X50.0Z-26.0;
N140G01X32.0F0.15;
N150G04X1.0;
N160G00X50.0;
N170G00X100.0Z100.0T0600;
N180T0707S450;(T07为外螺纹车刀)
N190G00X40.0Z5.0;(螺纹循环起点)
N200G76P010060Q200R0.02;
N210G76X36.0Z-21.0P810Q500F1.5;
N220G00X100.0Z100.0T0700;
N230M05;
N240M30;
O0004;
N10G54M03S800T0303;(T03车刀)
N20G00X52.0Z22.0;(循环起点)
N30G73U1.5W5.0R5;(粗车循环)
N40G73P50Q110U0.5W0.25F0.25;
N50G00X0Z22.0;
N70G03X28.0Z-14.2829R20.0;
N80G02X22.0Z-21.4243R10.0;
N90G01Z-26.0;
N100X32.0Z-31.0;
N110X50.0;
N120G70P50Q110;
N130G00X100.0Z100.0T0300;
N140M05
N150M30