您的位置:网站首页 > CAM

某加工件的数控加工中心NC代码实例

时间:2011-03-01 09:39:21 来源:

  本文给出了某种加工件的数控加工中心NC代码实例。

图1

图2

  手工编程

  主程序

  %

  O0001

  G91G28Z0

  T1M06

  G90G54G0X0Y0S500M03

  G43H01Z100.0M08

  X-65.Y0

  Z5.0

  G01Z-12.8F50

  D01M98P100F80(D01=15)

  D02M98P100F80(D02=8.2)

  G0Z-7.8F50

  D02M98P200F80(D02=8.2)

  G0Z100.0

  M05

  G91G28Z0

  T2M06

  G90G54G0X0Y0S500M03

  G43H02Z100.0

  X-65.0Y0

  Z5.0

  G01Z-13.0F50

  D03M98P100F120(D03=13.0)

  D04M98P100F120(D04=5.0)

  G0Z-8.0F50

  D04M98P200F120(D04=5.0)

  G0Z100.0

  M05

  M09

  M30

  %

  子程序O100

  %

  G41G01Y-30.

  G03X-32.5Y0R30.

  G02X0Y32.5R32.5

  X32.50Y0R32.5

  X0Y-32.5R32.5

  X-32.5Y0R32.5

  G03X-62.5Y30.0R30.0

  G40G01Y0

  M99

  %

  子程序O200

  %

  G41G01X-30.Y25.0

  X30.

  G02X30.Y-25.R32.5

  G01X-30.

  X-62.5Y0

  G40

  M99

  %