Professional Documents
Culture Documents
Objectives
Numerical Control
• Method of accurately controlling operation
of a machine tool by series of coded
instructions that the machine control unit
(MCU) can understand
– Instructions converted into electrical pulses of
current which machine motors and controls
follow
• Computer numerical control (CNC)
machines minimize human error
86-3
Theory of CNC
• Enable industry to consistently produce
parts to accuracies undreamed of a few years
ago
• Same part can be reproduced to same degree
of accuracy any number of times with
amazing speed
– Computer properly programmed
– Machine properly set up
86-4
Computer Functions
• To receive coded instructions (input data) in
numerical form
• Process information
• Produce output data that causes machine
tool to function
• Most common method to input data is
directly through computer
86-8
CNC Performance
• Great advances since NC introduced in mid
1950s
• Early machines capable only of point-to-
point positioning and very costly
• Cost has continually lowered
– Within financial reach of small manufacturing
shops and educational institutions
86-9
CNC Offers
Accuracy
Repeatability
.0001-.0002 in.
Reliability Productivity
86-10
Advantages of CNC
1. Greater operator safety
2. Greater operator efficiency
3. Reduction of scrap
4. Reduced lead time for production
5. Fewer chances for human error
6. Maximum part accuracy and interchange
86-11
Cartesian Coordinates
• Allows any specific point on job to be
described in mathematical terms in relation to
any other point along three perpendicular axes
• Machine tool construction based on three axes
of motion (X, Y, Z) plus axis of rotation
– Example: Vertical milling machine
• X axis is horizontal movement (right or left) of table
• Y axis is table cross movement (to/away from column)
• Z axis is vertical movement of knee or spindle
86-13
Three-Dimensional
Coordinate Planes
• X and Y planes are horizontal and represent
horizontal machine table motions
• Z plane represents vertical tool motion
• Plus and minus signs indicate direction of
movement from zero point along axis
• Four quadrants formed when X-Y axes cross
are numbered in counterclockwise direction
86-14
Coordinate System
+Y
Quadrant II Quadrant I
(-X, +Y) (+X, +Y)
-X X Axis +X
+X
-Y
-Z
Copyright © The McGraw-Hill Companies, Inc.
Permission required for reproduction or display.
86-16
Machine Axes
Electronics Industries
Association (EIA) Standard
• Longest horizontal axis movement is X axis,
Y axis assigned to perpendicular to both X
and Z axes
• Secondary axes parallel to X, Y, Z axes
• A, B, and C refer to rotary motion axes
around primary axes
86-19
+X
X axis controls table movement
left or right
3. Machining centers
• Developed in 1960s
• Allow more operations to be done on part in
one setup instead of moving from machine to
machine
• Two main types of machining centers
• Horizontal
• Vertical spindle (three axis)
• X axis controls table movement left or right
• Y axis controls table movement toward or sway
from column
• Z axis controls vertical movement of spindle or
knee
86-23
Programming Systems
• Two types of programming modes
– Incremental system
– Absolute system
• Most controls on machine tools capable of
handling both by altering code between G90
(absolute) and G91 (incremental) commands
86-25
Incremental System
• Program dimensions or positions given from
current point
• Disadvantage
– If error made in any location, error
automatically carried over to all following
locations
• G91 command tells computer and MCU to
be in incremental mode
86-26
Absolute System
• All dimensions or positions given from one
reference point on job or machine
• All dimensions given from zero or reference
point
• Errors not carried to any other location
• G90 command indicates to computer and
MCU that program is to be in absolute mode
86-28
Point-to-Point Positioning
• Consists of any number of programmed
points joined together by straight lines
• Used to accurately locate spindle, or
workpiece mounted on machine table to
perform operations
• Process of positioning from one coordinate
(X-Y) position or location to another,
perform the operation, clear tool from work,
and move to next location
86-31
Rapid Travel
• Point-to-point machining moves from one
point to another as fast as possible (rapids)
while cutting tool above work surface
• Used to quickly position cutting tool
between location points
– Rate between 200 and 800 in./min
• Both axes (X and Y) move simultaneously
– Movement along 45º angle line until one axis
reached, then straight line movement to other
86-32
Continuous-Path (Contouring)
• Involves work produced on lathe or milling
machine where cutting tool usually in
contact with workpiece as it travels from
one programmed point to next
• Ability to control motions on two or more
machine axes simultaneously
• Information in CNC program must
accurately position cutting tool and follow
predefined accurate path
86-33
Control Systems
• Two main types of control systems
– Open loop
– Closed loop
• Most machine tools manufactured contain
closed loop system
– Very accurate and result in better quality work
• Open loop systems can still be found on
older NC machines
86-34
Input Media
• Early media was 1-in. wide, 8-track punched tape
• Other types
– Magnetic tape, punched cards, magnetic disks, and
manual data input (MDI)
• Computer keyboard formatted to American
Standard Code for Information Interchange
(ASCII) standard to input directly to machine
control unit
– Microcomputer along with communications software
becoming preferred input method
86-37
Advantages of CNC
Programming
• More flexible because changes can be made to
program
• Can diagnose programs on graphic display screen
• Can be integrated with DNC systems in complex
manufacturing systems by using communications
loop
• Increases productivity
• Makes corrections on first part possible
• Practical to produce short-run lots (even profitable)
86-41
Advantages of DNC
• Single computer can control many machine
tools at same time
• Time saved in eliminating program errors or
revising program
• Programming faster, simpler, and more
flexible
• Operating costs lower than with NC
86-43
Programming Format
• Most common type is word address format
– Large number of different codes to transfer
program information to machine servos, relays,
and micro-switches to carry out machine
movements
• Codes then put together in logical sequence
called block of information
– One step of operation
86-45
Codes
• Most common CNC programming codes
– G-codes: preparatory commands
– M-codes: miscellaneous functions
• F, S, D, H, P, and T
– Used to represent functions: feed, speed, cutter
diameter offset, tool length compensation,
subroutine call, tool number, etc.
• A (angle) and R (radius) used to locate
points on arcs and circles
86-47
G-Codes
• Refer to some action occurring on X, Y,
and/or Z axis of machine tool
• Grouped into categories with group number
• G00 used to rapidly position cutting tool
from one point to another point
• G01, G02, and G03
– Move axes at controlled feed rate
– G01 used for linear interpolation
– G02 (clockwise) and G03 (counterclockwise)
used for circular interpolation
86-48
G-Codes
• Some classified as modal or nonmodal
– Modal codes stay in effect in program until
changed by another code from same group
– Nonmodal codes stay in effect for one operation
only and must be programmed again whenever
required
• Many of the common G-codes that conform
to EIA standards shown on next slide and in
text in Fig. 86-28
86-49
M-Codes
• Used to turn either on or off different
functions that control certain machine tool
operations (not grouped by categories)
• M03 turns machine spindle clockwise
• M04 turns spindle counterclockwise
• M05 turns off spindle
• All three of the codes above are modal
• Common M-codes in text in Fig. 86-29
86-51
Block of Information
• Should contain only enough information to
carry out one step of a machining operation
• Example:
– Tool moves from one point to another, then to
third point which is two moves (two blocks)
• Cannot give first point and third point as one move
so cannot combine blocks
86-53
Interpolation
• Generation of data points between given
coordinate position of axes
• Interpolator (device within MCU)
– Causes drives to move simultaneously from
start of command to completion
• Always performed under programmed feed
rates
86-54
Types of Interpolation
• Linear interpolation for straight-line
machining between two points
• Circular interpolation for circles and arcs
• Helical interpolation for threads and helical
forms
• Parabolic and cubic interpolation used by
industries that manufacture parts having
complex shapes
86-55
Linear Interpolation
• Consists of any programmed points joined
together by straight lines
• Include horizontal, vertical, or angular lines
where points may be close together or far
apart
86-56
Circular Interpolation
• Make process of programming arc and
circles easy
• Basic information required to program circle
– Position of circle center
– Start and end points of arc being cut
– Direction of cut
– Feed rate for tool
86-57
Methods Used to
Write Block for Arc
• One method uses I and J command to
identify coordinates of center of arc
• Simpler method uses R (radius of arc)
command, which MCU uses to calculate
arc center
86-59
Program Planning
• Information gathered, analyzed and
calculated before writing program
• Consider capabilities of machine
– Capacity
– Tooling requirements
– Programming format
– etc.
86-60
Tool List
• List of all tools required for machining
process
– Complete with correct speeds and feeds for
each tool based
• Tool material type
• Type of material being cut
• Depth of cut
• Some CNC systems require presetting tool
length for purpose of offsets
– Special gage needed
86-63
Manuscript
Manuscript Information
1. Part sketch
2. Zero (or reference) point
3. Work-holding device (include setups)
4. Sequence of operations
5. Axes dimensions
6. Tool list and identification
7. Speeds and feeds
8. Operator instructions