Lec # 12.3 Problem Solving CNC Part Programing (Week#12)
Lec # 12.3 Problem Solving CNC Part Programing (Week#12)
Engg
1
MTS-419 Manufacturing
Automation
Lecture # 12.3
Problem Solving
CNC Part Programming
Nasir Rashid, PhD (Department of Mechatronics Engg)
2
MTS-419 Manufacturing Automation
• Example
Three holes to be drilled in the part shown. Part is
gripped and placed in mill machine such that its top
surface is 40 mm above the surface of machine tool
surface. x, y and z axes are defined as Cartesian
coordinate system. A 7.0 mm drill corresponding to the
hole dia has will be used. The drill will be operated at a
feed of 0.05 mm/rev and a spindle speed of 1000
rev/min. At the beginning of job, the drill point will be
positioned at a target point located at x=0, y= -50, and
z=10 (axis units are in mm). The programme begins with
tool positioned at this target point.
3
MTS-419 Manufacturing Automation
• Example
4
MTS-419 Manufacturing Automation
NC Part Program Code Comments
N001 G21 G90 G92 X0 Y-050.0 Z010.0; Define origin of axes
N002 G00 X070.0 Y030.0 Rapid move to first hole location
N003 G01 G95 Z-15.0 F0.05 S1000 M03; Drill first hole
N004 G01 Z010.0; Retract drill from hole
N005 G00 Y060.0; Rapid move to second hole location
N006 G01 G95 Z-15.0 F0.05; Drill second hole
N007 G01 Z010.0; Retract drill from hole
N008 G00 X120.0 Y030.0; Rapid move to third hole location
N009 G01 G95 Z-15.0 F0.05; Drill third hole
N010 G01 Z010.0; Retract drill from hole
N011 G00 X0 Y-050.0 M05; Rapid move to target point and spindle stop
N012 M30; End of program and machine stop
5
MTS-419 Manufacturing Automation
• Example
The part is fixed so that its top surface is 40 mm above the surface of the machine tool
table. Thus, the origin of the axis system will be 40 mm above the table surface. A 200
mm end mill with four teeth will be used. The cutter has as side tooth engagement length
of 40 mm. Throughout the machining sequence, the bottom tip of the cutter will be
positioned 25 mm below the part top surface, which corresponds to z = -25mm. Since the
part of 10 mm thick, this z-position will allow the side cutting edges of the milling cutter
to cut the full thinness of the part during profile milling. The cutter will be operated at
spindle speed = 1000 rev/min and feed rate = 50 mm/min. The tool path to be followed
by the cutter is shown in the figure.
Cutter diameter data has been manually entered into offset register 05. At the beginning
of the job, the cutter will be positioned so that its center tip is at a target point located at
x = 0, y = -50, and z = 10. The program begins with tool positioned at this location.
6
MTS-419 Manufacturing Automation
• Example
7
MTS-419 Manufacturing Automation
8
MTS-419 Manufacturing Automation
Thank You