您的位置:网站首页 > 机械制图 > 机械技巧

FANUC 车床编程--综合例题

时间:2011-04-19 22:25:05 来源:未知

T1:外圆粗车刀 T2:外圆精车刀 T3:螺纹刀 T4:钻头 T5:镗孔刀

图6.5-12

%
程序:
N010 G30 U0. W0.                       ;回第二参考点
N015 G50 X0. Z0. T0100                 ;建工件坐标系,换T01 号刀
N020 G96 S1500 M03                     ;主轴转动,恒线速
N025 G00 X60 Z0. T0101                 ;调T01 刀补
N030 G01 X-1. F0.5
N035 G00 X61. Z3.
N040 G71 U2. R0.5                      ;粗切循环
N045 G71 P50 Q115 U0.4 W0.2 F0.4       ;粗切循环
N050 G00 X20.                          ;子程序
N055 G01 Z0.                           ;子程序
N060 X22.                              ;子程序
N065 Z-2. X30.                         ;子程序
N070 Z-30. X30.                        ;子程序
N075 Z-30. X36.                        ;子程序
N080 Z-32. X40.                        ;子程序
N085 Z-62. X40.                        ;子程序
N090 Z-62. X46.                        ;子程序
N095 G03 Z-64. X50. K-2. I0.           ;子程序
N100 G01 Z-77. X50.                    ;子程序
N105 G03 Z-80. X56. K-3. I0.           ;子程序
N110 G01 Z-85. X56.                    ;子程序#p#分页标题#e#
N115 Z-85. X57.                        ;子程序
N120 G00 X100. Z30.
N125 X150. Z150. T0100                 ;退刀去刀补
N130 G00 X61. Z30. T0202               ;换刀T2
N135 G00 Z10.
N140 G70 P50 Q115                      ;精切循环
N145 G40 G00 Z30.
N150 X150. Z150. T0200                 ;退刀去刀补
N151 G0 X0 Z170. T0404                 ;换刀T4
N152 G0 Z1.
N153 G01 Z-60. F100
N154 G0 Z170. T0400                    ;退刀去刀补
N155 T0505                             ;换刀T5
N156 G0 Z1.
N157 G01 Z-50. F100
N158 G0 Z170 T0500
N159 G97 S500 M03                      ;恒转速
N160 G00 X61.Z3. T0303                 ;换刀T3
N165 X42. Z-32.
N170 G76 P010060                       ;切螺纹循环
N175 G76 X37.835 Z-57. P1083 Q300 F2.0 ;切螺纹循环
N180 G00 X61. Z3
N185 X150. Z150. T0300                 ;退刀去刀补
N190 M05                               ;主轴停止
N195 M30                               ;程序停止

图6.4-2