Unit 5
Unit 5
An Introduction to -
Computer Numerical Control
4
Introduction
• CNC: Computer Numerical Control
• Production of machined parts whose production
is controlled by a computer.
• Computer uses a controller to drive each axis
of the machine tool. (X,Y,Z)
• Controls direction, speed, and length of
time motor rotates.
5
Introduction
• A programmed path is loaded into the
computer and then executed.
• Program consists of numeric point data (X,Y,Z),
along with machine control and function
commands.
• Numerical Control (NC) & Computer Numerical
Control (CNC) mean the same.
6
Introduction
• A major manufacturing development in past
60 years.
• Resulted in:
▫ new manufacturing techniques
▫ higher production levels
▫ higher quality
▫ stabilization of manufacturing costs
7
Evolution of CNC
• Single items produced by crafts people
• Interchangeable Parts
▫ Eli Whitney (Cotton Gin)
▫ Manual labor was still the most cost effective
method.
• WW II manufacturers could not maintain
quantity & quality parts.
8
Evolution of CNC
• Machinists could produce superior quality but not
at high volume that was required.
• As quantity increased, quality decreased due
to human factors
9
Evolution of CNC
• ENIAC – developed by the United States Army
Ballistic Research Lab & University of
Pennsylvania
• First digital computer.
• Vacuum tube technology. (30,000)
• Used to calculate artillery tables.
• Programming involved setting hundreds
of switches and cables.
10
ENIAC
Electronic Numerical Integrator And Computer
11
ENIAC
12
CNC & WW II
• Need to manufacture large amount of products
for the war.
• Need for quantity and quality.
• U.S. Air Force set up companies to develop and
produce NC systems to handle volume and
repeatability.
• Repeatability: the ability to perform the
same operation over & over within specified
parameters.
13
Specific Goals
• Increase production
• Improve quality & accuracy of machined parts.
• Stabilize manufacturing costs.
• Speed up production & assembly operations.
14
NC Timeline
• 1949 - First contract awarded for NC machine.
• 1951 - servo system for machines developed.
• 1952 - tape-fed machine was created.
15
History
• Development of G codes - Punch tape
input (Cartesian Coordinate System)
• 1970’s Development of computer chips
▫ Cheaper processing power
▫ Smaller computers
▫ More reliable
16
CNC
• Further developments in the computer allowed
it to be used to control the machine instead of
the paper tape.
21
Definitions
• NC - A method of accurately controlling the
operation of a machine tool by a series of
coded instructions, consisting of numbers,
letters of the alphabet, and symbols that the
machine control unit can understand
• MCU - Machine Control Unit - decodes NC
codes to drive and monitor servo motor
movements.
22
Definition
• CNC - Computer Numeric Control -
computer provides machine codes to the
MCU.
• Control Systems
▫ Open loop system - servo motor driven by pulses
without feed back encoders.
▫ Closed loop system - servo motor is driven by
electrical pulses. An encoder provides feedback
to verify machine movements.
23
History of CNC
1949
US Air Force asks MIT to develop a "numerically
controlled" machine.
1952
Prototype NC machine demonstrated (punched tape input)
1980-
CNC machines (computer used to link directly to controller)
1990-
DNC: external computer “drip feeds” control
programmer to machine tool controller
24
Advantages of CNC
• Increased productivity after programming is
completed
• Reliability - reduces human error
• Often eliminates need for special jigs
and fixtures
• Reduces location of part features
• Makes possible the machining of complex
shapes requiring simultaneous 3 axis
motion
26
Advantages
• Single part and production runs can be
programmed and machined with minimum
effort and cost.
• Programs can readily be altered and re-run
• Reduced inspection costs (more reliable)
• Once programming, setup and verified the
equipment can be operated by a less
skilled operator.
27
Disadvantages
• Initial cost of CNC machine tools
• Servicing of equipment
• Larger machines require more space
• Personnel must be trained in the
programming and operation of this
equipment.
28
Conventional milling machines
Table
Leadscrew
Encoder A/C Motor
~
Servo Controller
Counter Comparator
NC SYSTEM ELEMENTS
32
33
33
34
34
35
CNC terminology
Controller components:
1. Data Processing Unit (DPU)
2. Control-Loops Unit (CLU)
36
Controller components
SAMPLE
CNC MACHINES
37
38
CNC TURNING
39
CNC MILLING
40
40
41
41
42
CNC PRESS
42
43
43
44
SAMPLE PRODUCTS
OF
CNC MANUFACTURING
46
AUTOMOTIVE INDUSTRY
Engine Block Different Products
47
AEROSPACE INDUSTRY
Aircraft Turbine Machined by 5-Axis CNC Milling Machine
48
ELECTRONIC INDUSTRY
50
One thread in a screw single start screw: Dist moved in 1 rev = pitch
Two threads in screw double start screw: Dist moved in 1 rev = 2* pitch
56
Slide Ways
60
Slide Ways
61
Slide Ways
62
Slide Ways
63
Slide Ways
64
ATC
70
ATC
72
Manual NC programming
Part program
5”
2.5”
p4
p2 p3 p5
1”
(4, 4)
p1 Motion of tool:
p0 p1 p2 p3 p4 p5 p1 p0
p0 (2, 2)
75
1. Set up the programming parameters
5”
2.5”
p4
p2 p3 p5
1”
Programming in inches
5”
Use absolute coordinates
Feed in ipm
45°
N010 G70 G90 G94 G97 M04
(4, 4)
p1
Spindle speed in rpm
p0 (2, 2)
Spindle CCW
76
2. Set up the machining condition s
5”
2.5”
p4
p2 p3 p5
1”
Feed rate
Spindle speed
45°
Linear interpolation
1”
target coordinates
45°
(4, 4)
p1
p0 (2, 2)
78
4. Cut profile from p1 to p2
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
5” target coordinates
p0 (2, 2)
target coordinates
1”
5”
y = 9 + 0.125 = 9.125
(6.5 - x)2 + 0.1252 = (1 - 0.125)2
x = 5.634
45° p3
(x, y)
(4, 4)
p1 (6.5, 9)
.125
p0 (2, 2)
1”
80
6. Cut along circle from p3 to p4
5”
2.5”
p4
p2 p3 p5
1”
5”
target coordinates
p0 (2, 2)
81
7. Cut from p4 to p5
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
82
8. Cut from p5 to p1
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
83
9. Return to home position, stop program
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
45°
end of data
(4, 4)
N100 M00
p1
PART PROGRAMMING
• Part program is a sequence of instructions, which
describe the work, which has to be done on a part, in the
form required by a computer under the control of a
numerical control computer program
• Programming is where all the machining data are
compiled and where the data are translated into a
language which can be understood by the control system
of the machine tool.
The machining data is as follows :
(a) Machining sequence classification of process, tool start up
point, cutting depth, tool path, etc.
(b) Cutting conditions, spindle speed, feed rate, coolant, etc.
(c) Selection of cutting tools.
85
PART PROGRAMMING
While preparing a part program, need to perform the
following steps :
(a) Determine the startup procedure, which includes the
extraction of dimensional data from part drawings and
data regarding surface quality requirements on the
machined component.
(b) Select the tool and determine the tool offset.
(c) Set up the zero position for the work piece.
(d) Select the speed and rotation of the spindle.
(e) Set up the tool motions according to the profile required.
(f) Return the cutting tool to the reference point
after completion of work.
(g) End the program by stopping the spindle and coolant
86
PART PROGRAMMING
Methods of part programming can be of two types
depending upon the two techniques as below :
(a) Manual part programming,
(b) Computer aided part programming
PART PROGRAMMING
Computer Aided Part Programming
• Complex-shaped component requires calculations to
produce the component are done by the
programming software contained in the computer.
• The programmer communicates with this system
through the system language, which is based on
words.
• There are various programming languages
developed in the recent past, such as APT
(Automatically Programmed Tools), ADAPT,
AUTOSPOT, COMPAT-II, 2CL, ROMANCE, SPLIT
88
PART PROGRAMMING
Computer Aided Part Programming
A translator known as compiler program is used to
translate it in a form acceptable to MCU.
Terminology
• NC – Numerical Control
• CNC – Computer Numerical Control
• DNC – Direct Numerical Control
• APT – Automatic Programmed Tool
• CAD – Computer Aided Design
• CAM – Computer Aided Manufacturing
• CIM – Computer Integrated Manufacturing
91
G - Code Programming
• G – Code Programming
• Originally called the “Word Address” programming
format.
Individual Words
94
Word Address 1
• N – Sequence or line number
• A tag that identifies the beginning of a block of code.
It is used by operators to locate specific lines of a
program when entering data or verifying the
program operation.
• G – Preparatory function
• G words specify the mode in which the milling
machine is to move along its programmed axes.
95
Word Address 2
• Dimension Words
X – Distance or position in X direction
Y – Distance or position in Y direction
Z – Distance or position in Z direction
• M – Miscellaneous functions
• M words specify CNC machine functions not related
to dimensions or axial movements.
96
Word Address 3
• F – Feed rate (inches per minute or millimeters
per minute)
• Rate at which cutting tool moves along an axis.
• T – Tool number
• Specifies tool to be selected.
97
Word Address 4
• I – Circular cutting reference for x axis
G Word
• G words or codes tell the machine to perform
certain functions. Most G words are modal
which means they remain in effect until
replaced by another modal G code.
99
Common G Codes
• G00 – Rapid positioning mode
• Tool is moved along the shortest route to
programmed X,Y,Z position.
• Usually NOT used for cutting.
• G01 – Linear Interpolation mode
• Tool is moved along a straight-line path
at programmed rate of speed.
• G02 – Circular motion clockwise (cw)
• G03 – Circular motion counter
clockwise (ccw)
100
M Word
• M words tell the machine to perform certain
machine related functions, such as: turn
spindle on/off, coolant on/off, or stop/end
program.
110
Common M words
• M00 – Programmed pause
• Automatically stops machine until operator pushes a
button to resume program.
Common M words
• M03 – Turn spindle on
• In clockwise direction
• M04 – Turn spindle on
• In counter clockwise direction
• M05 – Stop spindle
• Usually used prior to tool change or at end of program.
• M06 – Tool change
• Stops program and calls for a tool change,
either automatically or manually.
112
Common M words
• M08 – Turns Accessory 1 on.
• M09 – Turns Accessory 1 off.
Zero Points
• Part Zero
▫ Used for absolute programming mode.
▫ Usually a position on the part that all
absolute coordinates are referenced to.
▫ Changes with different parts and programs.
Interpolation
• Method of determining intermediate points along
a cutting path.
• Two methods:
• Linear interpolation – cut a path along a specified
angle at a specified feed rate.
• Circular interpolation – cut a path along an arc
or circle at a specified feed rate.
116
Interpolation
117
Absolute System
118
Incremental System
119
CNC
• CNC – Turning Center • CNC – Machining Center
121
Classification
• Machining centres are classified as
vertical, horizontal, or universal.
123
• Vertical MC • Horizontal MC
124
Define Tool
CNC data
Make 3D model
Simulate
cutting
128
Automatic part programming and DNC