G99G00X100Z100 (每转进给,到换刀点)
Z100
T0101M08 (调用1号刀和1号刀补,冷却开)
T0303 (换3号刀,60°螺纹刀)
S500M03 (主轴正转,500转/分钟)
S500M3
G0X28Z2 (到车端面起点)
G00X20Z3 (加工螺纹定位)
G94X-1Z0F0.1 (车平端面,0.1毫米/转)
G76P010060Q100R0.05 (螺纹加工程序)
G00X26Z1 (定位到G71粗加工起点)
G76X16.376Z-38P812Q300F1.5
G71U1R0.5 (粗加工吃刀深度单边1毫米)
G00X100Z100
G71P1Q2U0.3W0F0.1 (粗加工进给0.1毫米/转)
T0202
N1G00X0 (精加工轨迹开始程序段)
S800M3
G01Z0F0.1
G0X26Z-63 (切退刀槽)
X4.68
G01X10F0.05
G03X10.58Z-2.48R3
G0X26
G01X15Z-15
G72W2R0.3 (槽加工程序)
Z-20
G72P3Q4U0.3W0F0.05
X17.95W-2
N3G0Z-51 (精加工轨迹开始程序段)
Z-40
G01X24F0.05
X22
X22Z-53
X24W-1
X20
N2Z-65 (精加工轨迹结束程序段)
Z-59
S800M3 (主轴正转800转/分钟)
N4G03X12W-4R4 (精加工轨迹结束程序段)
G70P1Q2 (G70调用N1至N2段程序)
G70P3Q4 (G70调用N3至N4段程序)
G00X100Z100 (返回换刀点)
G0X100Z100M05 (主轴停,综合测量)
T0202 (换2号刀,3mm 切槽刀)
M09
S800M3
M00
G00X25Z-40 (定位切槽)
S800 M03 (定位切断)
G01X16F0.05
G00X26Z-63M08
G0X25
G01X-1F0.05 (切断)
Z-37
G00X100
G01X18F0.05
Z100
X16Z-39
T0100
G00X100
M30
G70P1Q2 (G70调用N1至N2段程序)
G70P3Q4 (G70调用N3至N4段程序)
G00X100Z100 (返回换刀点)
G0X100Z100M05 (主轴停,综合测量)
T0202 (换2号刀,3mm 切槽刀)
M09
S800M3
M00
G00X25Z-40 (定位切槽)
S800 M03 (定位切断)
G01X16F0.05
G00X26Z-63M08
G0X25
G01X-1F0.05 (切断)
Z-37
G00X100
G01X18F0.05
Z100
X16Z-39
T0100
G00X100
M30