CNC Machine Tools
CNC Machine Tools
and
CNC PROGRAMMING
1
The main function of a machine
tool is to control the workpiece-
cutting tool positional relationship in
such a way as to achieve a desired
geometric shape of the workpiece
with sufficient dimensional
accuracy.
3
work holding
tool holding
relative motion between tool
and workpiece
primary motion
secondary motion
2
Primary motion
Relative motion
between tool and
Secondary motion
workpiece
3
CLASSIFICATION OF THE CHIP REMOVING METHODS
ACCORDING TO THE RELATIVE MOTION
4
ISO MACHINE TOOL AXIS DEFINITION
HORIZONTAL VERTICAL
AXIS AXIS
X radial and parallel horizontal and horizontal and parallel to and positive in the
to cross slide, parallel to parallel to the principal direction of cutting
(+X) when tool work holding work holding (primary motion)
goes away from surface, (+X) surface, (+X)
the axis of spindle to the right to the right
when viewed when viewed
from spindle from spindle
towards work towards
piece column
Y apply right hand rules
10
5
RIGHT HAND RULE
Vertical Machine Horizontal Machine
11
STANDARD LATHE
COORDINATE SYSTEM
12
6
STANDARD MILLING MACHINE
COORDINATE SYSTEM
13
7
The functions and motions such as;
15
INTRODUCTION TO
CNC
16
8
DEFINITION
In CNC (Computer Numerical Control), the
instructions are stored as a program in a
micro-computer attached to the machine.
The computer will also handle much of the
control logic of the machine, making it
more adaptable than earlier hard-wired
controllers.
17
CNC APPLICATIONS
Machining
2.5D / 3D
Turning ~ Lathes, Turning Centre
Milling ~ Machining Centres
Forming
2D
Plasma and Laser Cutting
Blanking, nibbling and punching
3D
Rapid Prototyping
18
9
SAMPLE
CNC MACHINES
19
CNC TURNING
20
10
CNC MILLING
21
22
11
CNC PLASMA CUTTING
23
CNC PRESS
24
12
CNC RAPID PROTOTYPING
25
SAMPLE PRODUCTS
OF
CNC MANUFACTURING
26
13
AUTOMOTIVE INDUSTRY
Engine Block
27
AUTOMOTIVE INDUSTRY(Cont’d)
Different Products
28
14
AEROSPACE INDUSTRY
Aircraft Turbine Machined by
5-Axis CNC Milling Machine
29
30
15
ELECTRONIC INDUSTRY
31
RAPID PROTOTYPING
PRODUCTS
32
16
ADVANTAGES of CNC
Productivity
Machine utilisation is increased
because more time is spent cutting
and less time is taken by positioning.
Reduced setup time increases
utilisation too.
33
ADVANTAGES of CNC
Quality
Parts are more accurate.
Parts are more repeatable.
Less waste due to scrap.
34
17
ADVANTAGES of CNC
Reduced inventory
Reduced setup time permits smaller
economic batch quantities.
Lower lead time allows lower stock
levels.
Lower stock levels reduce interest
charges and working capital
requirements.
35
ADVANTAGES of CNC
Machining Complex shapes
Slide movements under computer
control.
Computer controller can calculate
steps.
First NC machine built 1951 at MIT
for aircraft skin milling.
36
18
ADVANTAGES of CNC
Management Control
CNC leads to CAD
Process planning
Production planning
37
DRAWBACKS of CNC
High capital cost
Machine tools cost $30,000 - $1,500,000
Retraining and recruitment of staff
New support facilities
High maintenance requirements
Not cost-effective for low-level production
on simple parts
As geometric complexity or volume
increases CNC becomes more economical
Maintenance personnel must have both
mechanical and electronics expertise
38
19
CNC SYSTEM
ELEMENTS
39
20
NC SYSTEM ELEMENTS
41
OPERATIONAL FEATURES of
CNC MACHINES
42
21
PART PROGRAM
A part program is a series of coded instructions
required to produce a part. It controls the
movement of the machine tool and the on/off
control of auxiliary functions such as spindle
rotation and coolant. The coded instructions are
composed of letters, numbers and symbols and
are arranged in a format of functional blocks as
in the following example
N10 G01 X5.0 Y2.5 F15.0
| | | | |
| | | | Feed rate (15 in/min)
| | | Y-coordinate (2.5")
| | X-coordinate (5.0")
| Linear interpolation mode
Sequence number
43
44
22
MACHINE CONTROL UNIT
The machine control unit (MCU) is the heart of a
CNC system. It is used to perform the following
functions:
Open-loop control
Closed-loop control
46
23
OPEN-LOOP CONTROL
SYSTEM
In open-loop control system step motors
are used
Step motors are driven by electric pulses
Every pulse rotates the motor spindle
through a certain amount
By counting the pulses, the amount of
motion can be controlled
No feedback signal for error correction
Lower positioning accuracy
47
CLOSED-LOOP CONTROL
SYSTEMS
In closed-loop control systems DC or
AC motors are used
Position transducers are used to
generate position feedback signals
for error correction
Better accuracy can be achieved
More expensive
Suitable for large size machine tools
48
24
DRIVE SYSTEM
A drive system consists of amplifier
circuits, stepping motors or
servomotors and ball lead-screws.
The MCU feeds control signals
(position and speed) of each axis to
the amplifier circuits. The control
signals are augmented to actuate
stepping motors which in turn rotate
the ball lead-screws to position the
machine table.
49
STEPPING MOTORS
A stepping motor provides open-loop,
digital control of the position of a
workpiece in a numerical control machine.
The drive unit receives a direction input
(cw or ccw) and pulse inputs. For each
pulse it receives, the drive unit
manipulates the motor voltage and
current, causing the motor shaft to rotate
bya fixed angle (one step). The lead screw
converts the rotary motion of the motor
shaft into linear motion of the workpiece .
50
25
STEPPING MOTORS
51
RECIRCULATING BALL
SCREWS
Transform rotational motion of the motor
into translational motion of the nut attached to the
machine table.
52
26
RECIRCULATING BALL
SCREWS
Accuracy of CNC
machines depends on
their rigid
construction, care in
manufacturing, and
the use of ball screws
to almost eliminate
slop in the screws
used to move portions
of the machine.
53
54
27
POSITIONING
The positioning resolution of a ball screw
drive mechanism is directly proportional to
the smallest angle that the motor can
turn.
The smallest angle is controlled by the
motor step size.
Microsteps can be used to decrease the
motor step size.
CNC machines typically have resolutions
of 0.0025 mm or better.
55
MACHINE TOOL
CNC controls are used to control
various types of machine tools.
Regardless of which type of machine
tool is controlled, it always has a
slide table and a spindle to control of
position and speed. The machine
table is controlled in the X and Y
axes, while the spindle runs along
the Z axis.
56
28
FEEDBACK SYSTEM
The feedback system is also referred
to as the measuring system. It uses
position and speed transducers to
continuously monitor the position at
which the cutting tool is located at
any particular time. The MCU uses
the difference between reference
signals and feedback signals to
generate the control signals for
correcting position and speed errors.
57
58
29
POTENTIOMETERS
59
POTENTIOMETERS
60
30
ENCODERS
61
ENCODERS
62
31
RESOLVERS
A resolver is a rotary
transformer that
produces an output
signal that is a
function of the rotor
position.
63
SERVOMOTOR with
RESOLVER
64
32
VELOCITY FEEDBACK
Tachometers:
Electrical output is proportional to
rate of angular rotation.
Encoders, Resolvers,
Potentiometers:
Number of pulses per time is
proportional to rate change of
position.
65
CNC CUTTERS
66
33
TURNING CENTER CUTTERS
Types of cutters used on CNC turning
centers
Carbides (and other hard materials)
insert turning and boring tools
Ceramics
67
34
TYPICAL TURNING,
THREADING and PARTING
TOOLS
69
35
MACHINING CENTER CUTTING
TOOLS (cont’d)
Facemills flatten
large surfaces
quickly and with an
excellent finish.
Notice the engine
block being
finished in one
pass with a large
cutter.
71
36
MACHINING CENTER CUTTING
TOOLS (cont’d)
Drills, Taps, and
Reamers
Common HSS tools such as
drills, taps, and reamers
are commonly used on
CNC machining centers.
Note that a spot drill is
used instead of a
centerdrill. Also, spiral
point or gun taps are used
for through holes and
spiral flute for blind holes.
Rarely are hand taps used
on a machining center.
73
TOOL HOLDERS
All cutting tools must be held in a
holder that fits in the spindle. These
include end mill holders (shown),
collet holders, face mill adapters,
etc. Most machines in the USA use a
CAT taper which is a modified NST
30, 40, or 50 taper that uses a pull
stud and a groove in the flange. The
machine pulls on the pull stud to
hold the holder in the spindle, and
the groove in the flange gives the
automatic tool changer something to
hold onto. HSK tool holders were
designed a number of years ago as
an improvement to CAT tapers, but
they are gaining acceptance slowly.
74
37
CNC PROGRAMMING
75
CNC PROGRAMMING
Offline programming linked to CAD
programs.
Conversational programming by the
operator.
MDI ~ Manual Data Input.
Manual Control using jog buttons or
`electronic handwheel'.
Word-Address Coding using standard G-
codes and M-codes.
76
38
Basics of NC Part Programming:
77
78
39
In defining the motion of the tool
from one point to another,
either
absolute positioning mode or
incremental positioning mode
can be used.
79
80
40
Structure of an NC Part Program:
Commands are input into the controller in
units called blocks or statements.
Block Format:
1. Fixed sequential format
2. Tab sequential format
3. Word address format
81
EXAMPLE:
Assume that a drilling operation is to be
programmed as:
82
41
1. Fixed sequential format
0050 00 +0025400 +0012500 +0000000 0000 00
0060 01 +0025400 +0012500 -0010000 0500 08
0070 00 +0025400 +0012500 +0000000 0000 09
42
CNC PROGRAMMING
85
INFORMATION NEEDED by a
CNC
1. Preparatory Information: units, incremental or
absolute positioning
2. Coordinates: X,Y,Z, RX,RY,RZ
3. Machining Parameters: Feed rate and spindle
speed
4. Coolant Control: On/Off, Flood, Mist
5. Tool Control: Tool and tool parameters
6. Cycle Functions: Type of action required
7. Miscellaneous Control: Spindle on/off, direction
of rotation, stops for part movement
This information is conveyed to the machine
through a set
of instructions arranged in a desired sequence –
Program. 86
43
BLOCK FORMAT
Sample Block
N135 G01 X1.0 Y1.0 Z0.125 F5
WORD-ADDRESS CODING
Example CNC
Program Each instruction to the machine
N5 G90 G20
N10 M06 T3 consists of a letter followed by a
N15 M03 S1250 number.
N20 G00 X1 Y1
N25 Z0.1
Each letter is associated with a
N30 G01 Z-0.125 F5
N35 X3 Y2 F10 specific type of action or piece of
N40 G00 Z1 information needed by the machine.
N45 X0 Y0 Letters used in Codes
N50 M05
N55 M30 N,G,X,Y,Z,A,B,C,I,J,K,F,S,T,R,M
88
44
G & M Codes
Example CNC
Program • G-codes: Preparatory Functions
N5 G90 G20
N10 M06 T3 involve actual tool moves.
N15 M03 S1250
N20 G00 X1 Y1 • M-codes: Miscellaneous
N25 Z0.1
Functions – involve actions
N30 G01 Z-0.125 F5
N35 X3 Y2 F10 necessary for machining (i.e.
N40 G00 Z1 spindle on/off, coolant on/off).
N45 X0 Y0
N50 M05
N55 M30
89
G Codes
G00 Rapid traverse
G01 Linear interpolation G40 Cutter compensation
G02 Circular interpolation, – cancel
CW G41 Cutter compensation
G03 Circular interpolation, – left
CCW G42 Cutter compensation-
G04 Dwell right
G08 Acceleration G70 Inch format
G09 Deceleration G71 Metric format
G17 X-Y Plane G74 Full-circle
G18 Z-X Plane programming off
G19 Y-Z Plane G75 Full-circle
G20 Inch Units (G70) programming on
G21 Metric Units (G71) G80 Fixed-cycle cancel
G81-G89 Fixed cycles
G90 Absolute dimensions
G91 Incremental
dimensions 90
45
Modal G-Codes
91
92
46
M Codes
M00 Program stop
M01 Optional program stop
M02 Program end
M03 Spindle on clockwise
M04 Spindle on counterclockwise
M05 Spindle stop
M06 Tool change
M08 Coolant on
M09 Coolant off
M10 Clamps on
M11 Clamps off
M30 Program stop, reset to start
93
N Codes
Gives an identifying number for each
block of information.
47
X,Y, and Z Codes
X, Y, and Z codes are used to
specify the coordinate axis.
Number following the code defines
the coordinate at the end of the
move relative to an incremental or
absolute reference point.
95
96
48
F,S, and T Codes
F-code: used to specify the feed
rate
operations.
98
49
Application of Some Codes
G01 Linear Interpolation
. As an example, for the motion that
occurs in x-y plane with the same
maximum speed for the x- and y-axis,
initial motion is at an angle of 45o to the
axes until motion in one of
99
100
50
Application of Some Codes
G01 Linear Interpolation
102
51
G01 Linear Interpolation
N10 G00 X1 Z1
X
N15 Z0.1
N20 G01 Z-0.125 F5
N25 X2 Z2 F10
Z
103
52
G02 Circular Interpolation (CW)
N_ G02 X2 Y1 I0 J-1
F10
or
N_ G02 X2 Y1 R1
105
106
53
Canned Cycles
The sequence of some machining operations is may
be the same for any part and for any machine. For
example, drilling a hole involves the following steps:
Position the tool above the point where the hole will be
drilled
107
54
G81 ILLUSTRATION
109
55
Three Main parts of a CNC
program
112
56
EXAMPLE OPERATION on CNC
MILLING MACHINE
113
G-CODE PROGRAM
First pass : conventional
mill to a depth of 0.125
around edge profile. Tool 1
is a ½ inch dia. end mill.
%
:1002
N5 G90 G20
N10 M06 T1
N15 M03 S1200
N20 G00 X0.125 Y0.125
N30 Z0.125
N35 G01 Z-0.125 F5
N40 X3.875
N45 Y4.125
N50 X0.125
N55 Y0.125
114
57
Second pass:
conventional mill to
a depth of 0.25
around edge
profile.
N35 Z-0.250
N40 X3.875
N45 Y4.125
N50 X0.125
N55 Y0.125
N60 Z0.125 115
Third pass:
conventional mill to
a depth of 0.125
around pocket
profile.
N95 Z0.125
58
Fourth pass: climb
mill to a depth of
0.125 across
remaining
material.
N100 Y2.125
N105 X2.625
N110 Z0.125
N115 G00 X-5 Y-5
Z5
N120 M05
N125 M30
117
Advanced features:
118
59
Program Loading:
Through keyboard
Through punched tape reader
Through diskette drive
Through RS 232 serial port
Through network interface card
119
120
60
Direct Numerical Control (DNC):
121
61
Distributed Numerical Control (DNC):
123
124
62
Advantages of applying computer-aided
part programming include the following:
63
CAD/CAM Based Part Programming:
Desk).
64