Professional Documents
Culture Documents
Engg
1
MTS-419 Manufacturing
Automation
Lecture # 3
Numerical Control (NC), CNC
and its Programming
Nasir Rashid, PhD (Department of Mechtronics Engg)
6
MTS-419 Manufacturing
Automation
• Numerical Control
• Form of programmable automation in which the mechanical
actions of a machine tool or other equipment are controlled
by a program containing coded alphanumeric data
• The alphanumeric data represent relative positions
between a workhead (e.g., cutting tool) and a workpart
• When the current job is completed, a new program can be
entered for the next job
9
MTS-419 Manufacturing Automation
• Numerical Control
• It can be applied to wide variety of Processes
• Machine tool applications such as drilling, milling, turning
and other metal work
• Non-machine tool applications such as assembly, drafting
and inspection
10
MTS-419 Manufacturing Automation
11
MTS-419 Manufacturing Automation
12
MTS-419 Manufacturing Automation
• NC Coordinate System
• For flat and prismatic (block-like) parts
• Milling and drilling operations
• Conventional Cartesian coordinate system
• Rotational axes about each linear axis
• Right hand rule
13
MTS-419 Manufacturing Automation
• NC Coordinate System
14
MTS-419 Manufacturing Automation
• NC Coordinate System
• For rotational parts
• Turning operations
• Conventional Cartesian coordinate system, but only x- and z-axes
• y-axis not needed in turning
15
MTS-419 Manufacturing Automation
• NC Coordinate System
16
MTS-419 Manufacturing Automation
• 3 Axis Mill
17
MTS-419 Manufacturing Automation
• 5 Axis Mill
18
MTS-419 Manufacturing Automation
19
MTS-419 Manufacturing Automation
• Reading Assignment
• How many axes the conventional lathe machine has?
20
MTS-419 Manufacturing Automation
21
MTS-419 Manufacturing Automation
22
MTS-419 Manufacturing Automation
23
MTS-419 Manufacturing Automation
• Interpolation Methods
• Linear interpolation
• Straight line between two points in space
• Circular interpolation
• Circular arc defined by starting point, end point, center or radius,
and direction
24
MTS-419 Manufacturing Automation
25
MTS-419 Manufacturing Automation
26
MTS-419 Manufacturing Automation
27
MTS-419 Manufacturing Automation
• Additional Features of Computer Numerical Control
Machines
• Storage of more than one part program
• Various forms of program input
• Program editing at the machine tool
• Fixed cycles and programming subroutines
• Interpolation
• Acceleration and deceleration computations
• Communications interface
28
MTS-419 Manufacturing Automation
29
MTS-419 Manufacturing Automation
30
MTS-419 Manufacturing Automation
31
MTS-419 Manufacturing Automation
• Reading Assignment
• 7.3.1 Machine Tool Applications
32
MTS-419 Manufacturing Automation
34
MTS-419 Manufacturing Automation
• Disadvantages of CNC
• Higher investment cost
• CNC machines are more expensive
• Higher maintenance effort
• CNC machines are more technologically sophisticated
• Part programming issues
• Need for skilled programmers
• Time investment for each new part
• Higher utilization is required
35
MTS-419 Manufacturing
Automation
• NC Part Programming
• Manual part programming
• Computer-assisted part programming
• Part programming using CAD/CAM
• Manual data input
37
MTS-419 Manufacturing Automation
• NC Part Programming
• Block Format
• Also known as tape format because the original formats were
designed for punched tape
• Word address format - used on all modern CNC controllers
• Uses a letter prefix to identify each type of word
• Spaces to separate words within the block
• Allows any order of words in a block
• Words can be omitted if their values do not change from the
previous block
38
MTS-419 Manufacturing Automation
• NC Part Programming
• Types of Words
• N - sequence number prefix
• G - preparatory words
• Example: G00 = Rapid traverse move
• X, Y, Z - prefixes for x, y, and z-axes
• F - feed rate prefix
• S - spindle speed
• T - tool selection
• M - miscellaneous command
• Example: M07 = Turn cutting fluid on
39
40
41
MTS-419 Manufacturing Automation
• NC Part Programming
• Word Address Format
N001 G90 G00 X070.0 Y030.0 M03 T01
N002 Y060.0
42
MTS-419 Manufacturing Automation
• NC Part Programming
• Manual Part Programming
•Linear interpolation
G01 G94 X050.0 Y086.5 Z100.0 F40 S800
•Circular interpolation
G02 G17 X088.0 Y040.0 R028.0 F30
•Cutter offset
G42 G01 X100.0 Y040.0 D05
43
MTS-419 Manufacturing Automation
• NC Part Programming
• Manual Part Programming
•Circular interpolation
G02 G17 X088.0 Y040.0 R028.0 F30
44
MTS-419 Manufacturing Automation
• NC Part Programming
• Manual Part Programming
•Cutter offset
G42 G01 X100.0 Y040.0 D05
45
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.
46
MTS-419 Manufacturing Automation
• Example
47
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
48
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.
49
MTS-419 Manufacturing Automation
• Example
50
MTS-419 Manufacturing Automation
51
MTS-419 Manufacturing Automation
Thank You
52