数控车床加工两种方案分别编程

O0007
方案一:二把刀加工结束
N10  T0101
N20  M03  S400
N30  G00  X45  Z2
N40  G73  U18  W0  R10
N50  G73  P60  Q160  U0.5  W0.2  F0.3
N60  G00  X0
N70  G01  Z0
N80  G03  X7.74  Z-5  R4
N90  G02  X7.74  Z-9  R2.5
N100  G03  X12  Z-13  R3
N110  G03  X35  Z-22  R12
N120  G03  X33  Z-25  R3
N130  G03  X18  Z-47  R28
N140  G03  X16  Z-58  R4
N150  G02  X20  Z-63  R4
N160  G03  X36  Z-70  R8
N170  G70  P60  Q160  S1000  F0.03
N180  G00  X50  Z50
N190  T0202
N200  G00  X40  Z-84
N210  G01  X0
N220  G28  U0  W0  T0200
N230  M30


方案二: 三把刀加工结束
N10  T0101
N20  S400  M03
N30  G00  X40  Z2
N40  G71  U2  R1
N50  G71  P60  Q140  U0.3  W0.2  F0.3
N60  G00  X0
N70  Z0
N80  G03  X7.74  Z-5  R4
N90  G02  X7.74  Z-9  R2.5
N100  G03  X12  Z-13  R3
N110  G03  X35  Z-22  R12
N120  G01  Z-66
N130  X37.5
N140  Z-83
N150  G70  P60  Q140  S1000  F0.05
N160  G00  X50  Z50
N170  T0202
N180  S500
N190  G00  X50  Z-22
N200  G73  U10  W0  R10
N210  G73  P220  Q300  U0.3  W0  F0.3
N220  G01  X35  Z-22
N230  G03  X33  Z-25  R3
N240  G03   X18  Z-47  R28
N250  G02  X16  Z-52  R3
N260  G03  X16  Z-58  R4
N270  G02  X20  Z-63  R4
N280  G03  X36  Z-70  R8
N290  G01  X37  Z-78
N300  Z-83
N310  G70  P220  Q300  S1000  F0.05
N320  G00  X50
N330  Z50
N340  T0303
N350  S200
N360  G00  X40  Z-86
N370  G01  X0  F0.03
N380  G28  U0  W0  T0300
N390  M30