7249.introduction To Computer Numerical Control CNC
7249.introduction To Computer Numerical Control CNC
James V. Valentino
Joseph Goldenberg
Boston Columbus Indianapolis New York San Francisco Upper Saddle River
Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal
Toronto Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore
Taipei Tokyo
Editorial Director: Vernon R. Anthony
Acquisitions Editor: Lindsey Prudhomme-Gill
Project Manager: Maren Miller
Editorial Assistant: Nancy Kesterson
Director of Marketing: David Gesell
Executive Marketing Manager: Derril Trakalo
Senior Marketing Manager: Harper Coles
Senior Marketing Coordinator: Alicia Wozniak
Marketing Assistant: Les Roberts
Production Project Manager: Debbie Ryan
Art Director: Jayne Conte
Cover Designer: Bruce Kenselarr
Cover: Fotolia
Full-Service Project Management: Integra
Composition: Integra
Printer/Binder: Edwards Brothers
Cover Printer: Lehigh-Phoenix Color/Hagerstown
Text Font: 10/12 Minion
Copyright © 2013, 2008, 2003, 2000, 1993 by Pearson Education, Inc. All
rights reserved. Manufactured in the United States of America. This
publication is protected by Copyright, and permission should be obtained
from the publisher prior to any prohibited reproduction, storage in a retrieval
system, or transmission in any form or by any means, electronic, mechanical,
photocopying, recording, or likewise. To obtain permission(s) to use material
from this work, please submit a written request to Pearson Education, Inc.,
Permissions Department, One Lake Street, Upper Saddle River, New Jersey
07458, or you may fax your request to 201-236-3290.
Many of the designations by manufacturers and sellers to distinguish their
products are claimed as trademarks. Where those designations appear in this
book, and the publisher was aware of a trademark claim, the designations
have been printed in initial caps or all caps.
2011009205
10 9 8 7 6 5 4 3 2 1
ISBN-10: 0-13-217603-3
ISBN-13: 978-0-13-217603-3
Contents
1. 1 Introduction to Computer Numerical Control Manufacturing 1
1. 1.2 Introduction 1
2. Review Exercises 10
1. 2.2 Introduction 11
2. Review Exercises 23
1. 3.2 Introduction 28
2. Review Exercises 48
1. 4.2 Introduction 50
2. Review Exercises 69
1. 5.2 Introduction 72
3. Bibliography 100
12. 8.13 Tool Length Offset and Cutter Radius Compensation (H, D
Codes) 141
7. 14.8 Cutting Speeds, Feeds, and Depth of Cut for Lathe Operations
293
8. 14.9 Feed Directions and Rake Angles for Lathe Operations 295
12. 15.13 Spindle Speed with Constant Surface Speed Control 315
13. 15.14 Spindle Speed with Clamp Speed and Constant Surface
Speed Controls 316
18. 15.19 Some Restrictions with Tool Nose Radius Compensation 321
16. 16 Techniques and Fixed Cycles for CNC Lathe Programming 343
2. Appendix B 457
3. Appendix C 463
4. Installation 474
1. Writing a Word Address CNC Program via the CNC Editor 485
10. Appendix J Writing and Verifying Turn Part Programs via Predator
Simulation Software 507
1. Writing a word Address CNC Program via The CNC Editor 507
Appendix A has been expanded and Appendix B now includes G,T and M
codes for wire EDM operations. New Appendix G features material on
running the mill simulator. New Appendix I contains material on running the
lathe simulator.
This edition has a Companion Website that features KWIK TRIG right-
triangle solver software and Predator™ simulation software. The software
displays real-time solid model animation of the machining that results from a
word address part program. Additionally, it has an inspection mode that
enables students to section as well as verify the dimensions of the machined
part.
A new chapter entitled Introduction to CNC Wire EDM has been added.
Each chapter has been updated, and expanded with material that is
useful to the CNC programmer.
Each chapter begins with a brief listing of objectives and ends with a
chapter summary.
Trade schools
This work is the result of several years of experience running CNC courses
for both industrial personnel and the students at Queensborough Community
College. We found that many existing texts were either too general or too
advanced for direct application. As a result, we drafted supplementary notes
containing step-by-step information. The notes were enhanced and tested
extensively in the classroom. Several colleagues, both in industry as well as
in education, were called upon for their input. A thorough market survey also
influenced the final content. It should be noted that all programs presented
have been thoroughly tested. The student is advised to take the appropriate
safety precautions when running them on a CNC machine.
James V. Valentino
Joseph Goldenberg
Chapter One Introduction to
Computer Numerical Control
Manufacturing
1.1 Chapter Objectives
At the conclusion of this chapter you will be able to
3. Identify the different media used to input and store CNC programs.
Tape reader: reads the hole pattern on the tape and converts the pattern
to a corresponding electrical signal code.
Controller: receives the electrical signal code from the tape reader and
subsequently causes the NC machine to respond.
5. Reduced scrap.
The components found in many CNC systems are shown in Figure 1.2.
Figure 1.2
Components of modern CNC systems.
Figure 1.3
A modern machine control unit.
2. The CNC program can be written, stored, and executed directly at the
CNC machine.
3. Any portion of an entered CNC program can be played back and edited
at will. Tool motions can be electronically displayed upon playback.
Figure 1.4
Direct numerical control.
10. Reduced inspection time due to the CNC machine’s ability to produce
parts with superior accuracy and repeatibility. In many cases, only spot-
checking of critical areas is necessary without loss of machine time.
Using Payback Period to Estimate
Investment Efficiency
The payback period calculation estimates the number of years required to
recover the net cost of the CNC machine tool.
Example 1.1
Given the investment figures in Table 1.1 for implementing a new CNC
machine tool, determine the payback period and the annual return on
investment. The CNC is conservatively estimated to have a useful life of 12
years.
Payback
Period= 95,250−95,250×.163,100−63,100×.46+10,900×.46Payback Period=2.19
This calculation estimates that the net cost of the CNC will be recovered in
2.19 years.
ROI= 63,100−95,250/1295,250ROI=.57
This calculation estimates that the investor can expect 57% of the net cost of
the CNC (or .57×$95,250=$54,293) to be recovered each year if the CNC
machine’s useful life is 12 years.
Table 1-1
One-
time Net Average
Initial Tax Tax Yearly
savings cost of yearly
investment credit rate depreciation
in CNC savings
($) (10%) (46%) of CNC ($)
tooling ($) ($)
($)
130,250 35,000 95,250 63,100 .1 .46 10,900
1.8 CNC Machining Centers and
Turning Centers
Machining centers are the latest development in CNC technology. These
systems come equipped with automatic tool changers capable of changing 90
or more tools. Many are also fitted with movable rectangular worktables
called pallets. The pallets are used to automatically load and unload
workpieces. At a single setup, machining centers can perform such operations
as milling, drilling, tapping, boring, counterboring, and so on. Additionally,
by utilizing indexing heads, some centers are capable of executing these tasks
on many different faces of a part and at specified angles. Machining centers
save production time and cost by
Figure 1.6
A vertical spindle machining center.
reducing the need for moving a part from one machine to another. Two types
of machining centers are shown in Figures 1.6 and 1.7.
Turning centers with increased capacity tool changers are also making a
strong appearance in modern production shops. These CNC machines are
capable of executing many different types of lathe cutting operations
simultaneously on a rotating part. A modern turning center is shown in Figure
1.8.
Figure 1.7
A horizontal spindle machining center with an automatic tool
changer and two pallet work changers.
Figure 1.8
A modern CNC turning center.
Wire EDM machines utilize a very thin wire (.0008 to .012 in.) as an
electrode. The wire is stretched between diamond guides, and carbide that
conducts current to the wire, which cuts the part like a bandsaw. Material is
removed due to the erosion caused by a spark that moves horizontally with
the wire. CNC is used to control horizontal table movements. Wire EDM
machines are very useful for producing mold inserts, extrusion and trim dies,
as well as form tools. See Figure 1.9.
Laser cutting CNC machines utilize an intense beam of focused laser light to
cut the part. Material under the laser beam undergoes a rapid rise in
temperature and is vaporized. If the beam power is high enough, it will
penetrate through the material. Because no mechanical cutting forces are
involved, lasers cut parts with minimal distortion. They have been very
effective in machining slots and drilling holes. See Figure 1.10.
1.10 CNC Input and Storage Media
It will be useful for the reader to become acquainted with the basic concept of
binary number code prior to discussing input and storage methods. Internally,
computers and the MCU operate by a system of electrical switches. A 1 (one)
is processed as an open switch and a 0 (zero) is processed as a closed switch.
All numbers, letters, and special characters are represented in terms of a
unique set of zeros and ones. The only code the computer and MCU can work
on is binary. All externally generated code must first be translated into binary
before these devices can act on it. The binary code from the computer and
MCU must also be translated back into a code operators can understand. The
translation process is automatically executed by devices inside the computer.
Modern CNC technology uses an array of new devices for storing and
loading programs written with the aid of a microcomputer or larger
mainframe computer. These are shown in Figure 1.11.
Disks
These devices store a program in the form of a magnetic pattern on a plastic
disk. During operation, the disk spins and the pattern is read by recording
heads in the disk drive unit. Disks, also known as “floppy” disks, can store up
to 1.44 megabytes (MB) of information.
CD-ROM
The compact disc (CD) is a popular device for storing information in the
form of a pattern of etched pits. An optical laser is used to read the pit pattern
on the spinning disc. CDs offer many advantages over other types of storage
devices: they are a very stable and durable medium, ensuring almost
indefinite storage life. Additionally, they are capable of storing large amounts
of information. A typical CD has a storage capacity of 680 MB. Recordable
(CD-R) discs can have data written on them only once. Re-writeable disks
(CD-RW) can be erased and rewritten with new data. The CD drive used for
this purpose must also be a CD “burner” capable of re-writing data to the CD.
Disks and CD-ROMs are used with personal computers (PCs) and
workstations. They are referred to as random access media. This means that
any information on them can be found and retrieved almost instantaneously.
6. The MCU operates in binary code only. All programs must be translated
into binary.
7. 1.7. Name four requirements that must be satisfied prior to using CNC
in a shop.
8. 1.8. Describe four devices for storing and inputting CNC programs.
9. 1.9. What advantages do flash drives offer over other types of storage
media?
13. 1.13.
1. Describe the two types of control systems used to output tool movement.
2. Explain the two types of loop systems used with CNC controllers.
4. Explain how points are located using the Cartesian coordinate system.
Figure 2.3
Continuous path tool movement.
Figure 2.4
Interpolation used for continuous path movement.
Make sure oil or water does not splash on power supply units.
There are two main systems in use today for controlling CNC machine
movements: the open loop system and the closed loop system.
movement comes to the exact movement programmed. Also, the lead screws
used in these systems tend to generate friction and backlash. Backlash can
cause positioning errors if the motions required to machine a part require a
reversal in axis direction.
A servo does not operate like a pulse-counting stepper motor. The speed of
an AC or DC servo is variable and depends upon the amount of current
passing through it. The speed of a hydraulic servo depends upon the amount
of fluid passing through it. The strength of current coming from the Motor
Drive Unit determines the speed at which a servo rotates. A device called a
tachometer is mounted on the backside of each servo to measure and feed
back its angular velocity or RPM. The feedback is sent to the Motor Drive
Unit. The unit compares the motion command from MCU and the voltage
feedback from the tachometer (actual motor speed) and outputs back to the
motor the difference between the two values or error. Velocity and
acceleration control are important in ensuring both tool load and surface
finish are acceptable.
The servos are connected to the spindle. They are also connected to the
machine table through the ball lead screw. The ball lead screw is the heart of
the drive system. It overcomes the problems of lead screws by greatly
reducing friction and backlash. This is accomplished by creating a rolling
motion design in which precision ball bearings roll between the nut and the
screw, which allows for higher precision positioning with greater
repeatability, and positioning at higher speeds with less wear.
There has been renewed interest in open loop systems for CNC applications.
Improvements in stepping motor accuracy and power have, in some cases,
eliminated the need for expensive feedback system hardware and its
associated circuitry. These newer systems represented substantial savings in
machine and maintenance costs.
A good tip is to change the location of setups on the machine table to spread
even wear on the screws. Care should also be taken to keep the screws away
from excessive chip buildups that can be forced into the mechanism and
cause premature wear.
2.5 Establishing Locations via
Cartesian Coordinates
The location of a CNC tool at any time is controlled by a system of XYZ
coordinates called Cartesian coordinates. This system is composed of three
directional lines, called axes, mutually intersecting at an angle of 90°. The
point of intersection is known as the origin. The XY coordinate plane is
broken up into four quadrants. The value and sign of an ordered pair (X, Y) of
coordinates determines the X and Y distances of a point from the origin and
the quadrant in which the point is located. These concepts are illustrated in
Figure 2.8.
Figure 2.8
The Cartesian coordinate system.
Example 2.1
Graphically indicate the locations of the points A (3, -2), B (1, 4), C (-2, -3),
and D (-3, 4) in the XY plane. See Figure 2.9.
Figure 2.9
XY plane.
Example 2.2
Graphically indicate the locations of the points A (3, 2, 1) and B (4, -1, -1) in
XYZ space. These points are shown in Figure 2.10.
Figure 2.10
XYZ space.
2.6 CNC Machine Axes of Motion
CNC equipment executes machining operations by performing some form of
sliding linear motion and rotary motion. The actual method of movement is
designed by the manufacturer and can vary from machine to machine. For
example, the table can move in the horizontal plane (XY-axis motion) and the
spindle in the vertical plane (Z-axis motion). The system will respond to a
command to move the spindle (tool) along the +X or +Y axis by moving the
table in the opposite direction, -X or -Y. Because the machine automatically
knows how to move in response to an axis command, the programmer need
not be concerned whether it is the spindle or table that moves. The main point
is that, in the end, the tool arrives at the programmed location. Thus, the
machine axis will be defined in terms of spindle movement.
Note
For programming purposes, programmers should consider the CNC machine
table as locked with only the tool in the spindle moving along ±X, ±Y, and ±Z
axes.
Present standards for machine axes are established according to the industry
standard report EIA RS-267A. These standards include the following:
4. With regard to milling machines, motion along the Y axis is the shortest
travel perpendicular to Z. Motion indicated by -Y is directly opposite to
that indicated by +Y. The Y axis is in the same plane as the X axis.
Looking at the plane, the operator will note that the Y axis is
perpendicular to the X axis.
Rotary motion directions also follow the right-hand rule. See Figure 2.15.
Figure 2.13
Machine axis for a three-axis horizontal CNC machine (machine
axis defined as spindle movement).
Figure 2.14
A rotary index table for adding a fourth axis to a CNC machine.
Four- and five-axis machines are used to machine parts with complex
surfaces. See Figures 2.16 and 2.17.
Figure 2.16
The six possible machine axes for a vertical CNC machine
(machine axis defined as spindle movement).
Figure 2.17
A five-axis machining operation.
Incremental Positioning
Machines operating in incremental positioning mode locate each new tool
position by measuring from the last tool position established. See Figure 2.18
for an illustration of incremental positioning.
Incremental positioning has some drawbacks. The most notable is that if one
incremental movement is in error, all subsequent movements will also be
incorrect.
Note
With delta dimensioning, each new dimension is specified by measuring it
relative to the dimension previously entered. Delta dimensioning is well
suited to incremental position programming.
Figure 2.18
Delta dimensioning for incremental mode positioning.
Figure 2.19
Datum dimensioning for absolute mode positioning.
Absolute Positioning
When operating in absolute positioning mode, the machine determines each
new tool position from a fixed home or specified origin (0, 0). Refer to
Figure 2.19.
Note
With datum dimensioning, a datum or zero reference line is established. All
linear dimensions are then taken relative to the datum line. Datum
dimensioning is well suited to absolute position programming.
2.8 Units Used for Positioning
Coordinates
In the United States, positioning coordinates are specified in either the
English system (e.g., inch) or the metric system (e.g., millimeter). Most
manufacturing outside the United States is done using the metric system. Up-
to-date CNC machines are built to accept programs written with either
system. To use the metric system, parts must be dimensioned in metric
measurements. Conversion is easy if metric tools are also used. If inch tools
are used, their dimensions must first be converted to metric to ensure that the
proper coordinates are input for milling. It is safe to say that programmers
will be working with both systems during their careers, so both systems
should be understood.
Figure 2.20
A part dimensioned in English and metric units.
2.9 Current Advances in Modern
Tool Controls
Open Systems
The move today is toward open system architecture for CNC machine tools.
Open system architecture has the following features:
1. All the components that make up the CNC control are sold unbundled.
This includes the software, hardware, installation, and training.
2. The motion control cards and hardware can be purchased off the shelf
from several vendor choices and not from a single proprietary source.
5. The user installs, configures, and maintains the control without the need
for a proprietary maintenance contract.
The most widely used Windows-based CNC control software for open
controls is OpenCNC from Manufacturing Data Systems Inc. (MDSI).
Three main specifications for open system architecture currently exist today.
1. Two different types of control systems are used to specify tool positions:
point-to-point and continuous path. These modes can be mixed in one
program.
2. The four types of drive motors used to position tools are stepping
motors, AC motors, DC servos, and hydraulic servos.
4. Backlash is the small space that exists between the nut and screw of a
positioning system. Backlash causes errors when the screw reverses
direction and the nut lags behind.
5. Modern CNC systems control backlash by using ball screws, split nuts,
laser calibration equipment, and backlash compensation software
installed in the MCU.
4. 2.4 Explain the difference between an open loop system and a closed
loop system.
10. 2.10 Table movements for most milling machines are along the
and axes.
11. 2.11 What two types of programming modes can be used to specify tool
position? How do they differ?
12. 2.12 What is the difference between delta dimensioning and datum
dimensioning?
13. 2.13 Write the absolute X and Y coordinates of the points shown in
Figure 2.22.
14. 2.14 Write the incremental X and Y coordinates of the points in Figure
2.22. Use the following order: origin to PT1, from PT1 to PT2, from
PT2 to PT3 ... finish with PT8.
15. 2.15 Mark the position of the points as listed in the table in each case.
See Figure 2.23.
Figure 2.22
Absolute XY coordinates on plane.
PT X Y
1 2.000 3.000
2 4.000 -4.000
3 -1.000 -2.000
4 0.000 0.000
5 -5.000 -3.000
6 0.000 -2.000
7 1.000 1.000
8 -2.000 3.000
9 4.000 5.000
10 -3.000 -2.000
11 0.000 -3.000
12 -2.000 -3.000
13 0.000 3.000
14 5.000 3.000
Figure 2.24
Incremental XY coordinates on plane.
16. 2.16 In each case write the X and Y coordinates of the center of each
hole for the hole pattern dimensioning given.
17. 2.17 Assume a CNC machine capable of both incremental and absolute
positioning is to be used to produce the hole patterns shown in Figure
2.27
1.
2.
2. Write the incremental coordinates for holes #1, #3, and #4. Start at
the lower left-hand corner of the part and move to the holes in the
order described.
4. A .625 in. diameter end mill is being used to mill the part
periphery.
19. 2.19 Describe five features present in open system architecture for tool
controls.
Chapter Three Tooling for Hole and
Milling Operations
3.1 Chapter Objectives
At the conclusion of this chapter you will be able to
1. State the types and applications of drills used with CNC equipment.
3. Explain the meaning of tool speeds and feeds for hole operations.
4. Identify the types and applications of milling tools used with CNC
equipment.
6. Explain the meaning of tool speeds and feeds for milling operations.
8. Explain the need for using cutting fluid for CNC operations.
3.2 Introduction
The CNC programmer must be thoroughly knowledgeable in the machining
operations pertaining to the CNC machine to be programmed. CNC tooling is
tied to machining operations planning. This chapter presents a review of
important tools and tool usage in CNC machining operations. Drilling
accounts for a majority of hole operations, and is discussed first. Other hole
operations covered are boring, reaming, tapping, counterboring, and
countersinking. Tooling for milling operations is also considered. The reader
is introduced to profile and face milling operations.
Twist Drills
The most important tool used in drilling is the twist drill. This end cutting
tool has two helical grooves or flutes cut around a center called a web. The
flutes act as cutting edges for feeding the tool into the material and as
channels for admitting lubricant and carrying away the cut chips. The web
gives the drill strength in resisting deflections. Metal cutting twist drills are
made from a wide range of materials ranging from carbon tool steel to solid
carbide. They are sized by diameter as follows.
From .2 mm to 50.5 mm
Straight shanks are common for drills up to 1/2 in. Larger drills can have
straight or tapered shanks. The tangs of the tapered shank prevent slipping
while the drill is cutting larger holes.
Drilling accuracy tends to decrease when either drill length or drill size is
increased. Longer drills exhibit less stiffness and more torsional deflection. A
good rule of thumb is to select the shortest drill possible for any hole
operation. Drills must be sharpened by grinding the tip and the flute edges at
precise angles.
Center Drills
As was stated previously, twist drills are not capable of locating programmed
hole centers with sufficient accuracy due to several factors, including flute
length, drill diameter, drill flexibility, cutting edge preparation, and material
hardness. To better locate a hole center, a short, stubby drill called a center
drill is used first. The resulting starter hole is used to guide the twist drill into
the material with a minimum of inaccuracy. Figure 3.2 illustrates a plain-type
center drill as well as a spotting and centering drill. The plain type is the most
commonly used and produces a straight pilot hole and a 60° countersink.
Most spot drills have either 90° or 120° point angles. For jobber and longer
length drills, better positioning and size control can be achieved by first spot
drilling.
Figure 3.1
Parts of straight shank twist drills.
Figure 3.2
Center drill types.
Figure 3.3
Drill depth for center drilling.
Good practice is to create a center drill hole such that the countersunk portion
is approximately .003 to .006 in. larger than the corresponding twist drill
diameter. This is shown in Figure 3.3.
Coolant-Fed Drills
Coolant-fed drills have one or two holes passing from the shank to the cutting
point. Compressed air, oil, or cutting fluid is passed through the drill as it
operates. This system enables the cutting point and work to be cooled as
chips are flushed out. These drills are especially useful for drilling deep
holes. See Figure 3.5.
Spade Drills
A spade drill consists of a blade holder to which one of several different size
drill point blades may be bolted. Spade drills offer several advantages over
twist drills for drilling holes with 1 in. or greater diameter. The larger web of
the spade drill ensures that during penetration less flexuring occurs and thus a
more accurate hole results. Tooling costs are lower with spade drills because
eight standard blade holders will accommodate all blade widths, normally
ranging from 5/8 to 6 in. Worn blades can be either resharpened or simply
replaced with new ones. Job setup for CNC hole operations is also reduced.
Spade drills are designed to machine a hole from the solid in one pass,
eliminating the need for center drilling or multiple-pass drilling to gradually
enlarge the hole size.
Most spade drills operate with coolant flowing through the drill for heat
dissipation and flushing out the chips. Thus, a high-pressure coolant system is
usually installed. The depth of holes is also limited with spade drills because
flutes do not exist to help carry away the cut chips. The cutting edges of the
blade incorporate chip splitting and breaking action to reduce chip size and to
facilitate chip removal.
Figure 3.4
Drill clearance for through holes.
Figure 3.5
A coolant-fed drill.
Carbide inserts used in drilling tools are manufactured in various sizes and
shapes, as illustrated in Figure 3.8.
Figure 3.7
Carbide tip drill.
Figure 3.10
Carbide insert grades and machining applications.
ANSI
ISO Machining
(USA) Material suitable for machining
class operation
class
K30 Cast iron, work-hardened stainless Rough
C1
K20 steels, and nonferrous metals machining
K20 General
C2
K25 machining
K10 Finish
C3
K15 machining
K01 Fine-finish
C4
K05 machining
K40 Stainless steels, tool steel, and Rough
C5 K50 general alloy steels machining
K25 General
C6
K35 machining
K10 Finish
C7
K25 machining
K01 Fine-finish
C8
K05 machining
The general practice is to select the hardest and longest wearing grade that
will withstand a machining operation. The operator can then back off to a
tougher but softer grade only if forced by insert chipping or fracturing.
Today many vendors manufacture carbide inserts, and each has its own
grading system. For example, Kennametal uses the K system; GTE Valenite
the VC system; Sandvick the GC, SMA, S, H, and HM systems; and
Greenleaf the G (uncoated grades), GA (coated grades) system. Vendors also
supply supplementary grades within a particular ANSI class. Vendor tool
catalogs usually give a complete listing of the relationship between their
grading system and the standard ANSI or ISO systems. The reader is advised
to consult these catalogs for more detailed information.
3.5 Tooling for Hole Operations
That Follow Drilling
Additional hole operations following drilling include boring, reaming,
tapping, counterboring, spotfacing, and countersinking.
Figure 3.11
Carbide insert boring tools.
Boring
Boring is used for two main purposes: enlargement of an existing hole and
accurate readjustment of the center location of the enlarged hole. Better hole
straightness and surface finish can also be achieved by boring. Some typical
boring tools are shown in Figure 3.11.
As a rule, the shortest boring bar should be selected for any operation. As
with drills, the greater the length-to-diameter ratio, the more flexible and
error prone the boring bar will be. The finish of the surface inside the hole
will also be affected because long bars tend to chatter.
Reaming
As stated previously, a twist drill will not consistently cut holes to the exact
size and surface finish. If a high degree of accuracy for these results is
required, an additional operation called reaming must be included.
Using shell reamers is a very economical way for machining holes larger than
3/4 in. One shank fits several different size ream cartridges. Some typical
reaming tools are shown in Figure 3.12.
It should be noted that the reamer is guided by the existing hole. Therefore, it
will not correct errors in hole location or straightness. If these problems exist
it is advisable to first bore, then ream.
Figure 3.12
Reaming tools.
Tapping
The process of cutting threads on the inside of a hole by a tap is called
tapping. This can be a delicate and sometimes troublesome process
depending upon the material type and the thread depth. The main problem
with tapping is clearing chips from the hole. Taps are made from a variety of
materials such as carbon tool steel, high-speed steel, and carbide. Titanium
nitride (TiN) is often used to create a hard, wear-resistant outer coating or
case on taps. Hand taps are not recommended for use in CNC machines
unless they are driven by a special tapping attachment. The attachment
contains a clutch that slips when the tap experiences too much torque or
suddenly jams in the hole. For blind threads, normal practice is to use a
spiral-fluted tap. Plug types are used to cut threads to a specific depth while
bottoming types cut threads at the bottom of the hole.
The flutes are designed to admit lubricant as well as force chips to flow back
out of the hole.
Some typical tapping tools used in CNC machines are shown in Figure 3.13.
Standard tables for selecting appropriate tap drills for tap sizes can be found
in such references as Machinery’s Handbook. Selecting the proper size tap
drill ensures that the tap will work properly in the hole when cutting threads.
Counterboring
It is often desirable to enlarge a hole to a depth slightly larger than the head
of a specific bolt or pin to allow for the head to be buried below the machined
surface. For CNC operations, counterboring is usually done with an end mill
or flat bottom drill.
Figure 3.13
Tapping tools. (a, b)
(Photo courtesy of Greenfield Industries, Inc.)
Figure 3.14
A three-flute countersinking tool.
Countersinking
Countersinking involves enlarging the top end of a hole in the form of cone-
shaped depression. In order to allow a flat or oval head machine screw to be
flush or slightly below the surface when inserted, the cone angle is usually
82° or 90°, respectively, and is made with a countersink tool. Threaded holes
should be countersunk slightly larger than the tap diameter to protect the
starting threads unless the production part drawing calls for no chamfer. A
typical countersinking tool is shown in Figure 3.14.
Problems can arise concerning the difference between the theoretical vertex
point on the tool and its actual existing value. An optical indicator should be
used to determine the actual vertex height of the tool. This measurement will
avoid countersinking too deeply.
3.6 Cutting Speeds and Feeds
For a certain diameter tool and tool type, the two most important parameters
that must be specified when cutting a particular material are its speed and
feed. These values influence tool life and cutting performance.
Tool Speed
Tool speed is defined as the speed of any point on the circumference of the
tool. It is usually expressed in surface feet per minute or sfpm. The cutting
speed and tool diameter selected will determine the rotation of the spindle in
revolutions per minute or spindle rpm. These concepts are illustrated in
Figure 3.15.
In English units:
In most cases the value of spindle rpm is not required to a high degree of
accuracy so the following roundoff is often used:
In metric units:
where the tool diameter is expressed in millimeters (mm) and the tool cutting
speed is expressed in millimeters per minute (mmpm).
The speed selected for a particular hole operation tool will depend on several
factors, some of which are as follows:
Selecting a speed that is too high can lead to excessive dulling and burning of
the tool’s cutting edges. On the other hand, speeds that are too low may cause
the tool to wear excessively or break under operation. Refer to Appendix C
for a comprehensive list of drilling speeds.
For reaming, the cutting speeds should be approximately 1/2 to 2/3 of that
used for drilling the material.
Newer machines with rigid tapping or tapping heads can tap at higher rpm
values. Aluminum, for example, can be tapped at 3000 rpm with this type of
equipment.
By multiplying the tool feed in ipr by the spindle rpm, one arrives at the tool
feed rate in inches per minute or ipm. The tool feed rate is the value to be
entered into the CNC program.
In English units:
where the penetration rate, ipr, is expressed in inches per revolution and rpm
is the spindle speed.
In metric units:
Approximate values of tool feed rates for various hole operations are listed in
Appendix C.
Reaming feed rates should be approximately two to three times greater than
needed for drilling the same material.
Tapping feed rates can depend on the number of threads per inch for the tap
and the spindle rpm.
Example 3.1
Determine the feed rate for a tap having 18 threads per inch and rotated at
300 rpm.
Tapping is usually done with a floating clutch tap holder. For the holder to be
effective, the programmed feed rate should be slightly less than the actual
value. Thus,
End Mills
The most frequently used tool for profiling operations is the end mill cutter. It
is particularly suited to CNC operations involving a minimum of setup when
short or medium production runs are to be made. End mills are also used for
facing, slotting, plunging, and cavity cutting. End mill cutters range in size
from .32 to 2 in. in diameter. The parts of a single end mill cutter are shown
in Figure 3.17. End mill tools are manufactured with two, three, four, or more
flutes. The flutes are helically grooved portion of the tool used to carry away
cut chips and admit lubricant or coolant. The number of flutes is an important
factor in selecting an end mill tool for a job. The more flutes, the shallower or
smaller the flutes become on an end mill. The solid center section of an end
mill increases as the number of flutes increases. Thus, end mills with more
flutes will be more rigid in cutting operations. Two-flute end mills are
recommended for machining softer gummy materials such as aluminum and
copper. For harder, tougher materials such as steel, four-flute end mills are
used.
The four-flute end mill shown in Figure 3.17 does not have end teeth that go
all the way to its center. Thus, it cannot be used for plunging directly into the
center of a solid material. The end teeth on the three-flute end mill shown in
Figure 3.18, however, do pass through its center. This tool is also called a
center cutting mill. It can be used for rough
Figure 3.16
Profile milling.
Figure 3.17
Parts of a four-flute end mill cutter.
drilling holes from solid, counterboring, and boring as well as slotting and
cavity cutting. Holes that have been drilled with a drill can be sized to a high
degree of accuracy by using an end mill. Center cutting mills are also
manufactured with three or more flutes.
Roughing end mills are referred to as hogging cutters. They have grooves or
scallops around the body and produce a broken-up chip. They generate lower
side loads than cutters with smooth helical teeth. These factors enable
roughing end mills to remove metal at a rate three times that of the usual end
mills.
The versatility of end mills allows a shop to cut down on tooling costs,
tooling inventory, and job setup time. Various types of end mill cutters and
their uses are shown in Figures 3.18 through 3.20.
Figure 3.18
Single end three-flute end mill.
Figure 3.20
Roughing end mill—removing large amounts of metal.
Figure 3.21
A shell end mill and arbor.
Figure 3.22
Face milling.
Figure 3.23
Carbide insert shapes and sizes used for milling tools.
Figure 3.24
A carbide blade end mill.
For a given size, those with the largest included angles use less carbide than
those with smaller angles. The CNC operator should select the strongest
insert shape consistent with the profile to be cut.
Because these tools are very rigid, a high degree of accuracy can be achieved
with their use. More exact diameters can be milled when a center cutting
carbide tool is used for boring. Milling time is also shorter with carbide
cutters. Depending upon the material being cut, tool speed can often be
doubled or tripled and tool feed can be increased by 25% or more.
Various carbide insert tools for milling are shown in Figures 3.24 through
3.26. Two typical cutters are shown in Figure 3.27.
In order to use these tools, the CNC milling machine must have sufficient
horsepower and rigidity. It should also be capable of producing very steady
and well-controlled feed rates so that table surge is kept to a minimum.
Figure 3.28
Tool feed.
Tool Speed
Tool speed was defined for hole operations and carries the same meaning for
milling. Refer to Appendix C for a comprehensive list of suggested milling
speeds for various materials.
Tool Feed
Tool feed is defined as the rate at which the cutter advances into the work. It
is expressed in inches per minute (ipm). See Figure 3.28.
Tool feed for profiling depends upon the inches of material cut per tooth (ipt)
or chip load, the number of teeth, and the spindle rpm. The theoretical tool
feed rate is given by the following formulas.
In English units:
In metric units:
where cl is the chip load expressed in millimeters per tooth and the feed rate
is expressed in millimeters per minute (mmpm).
Correct feed in milling may also depend upon another parameter called chip
thickness. This is not the chip load (feed per tooth) but the actual thickness of
the chips resulting from a given feed rate. The chip thickness will depend
upon such factors as the geometry of the cutter, the lead angle used, and the
position of the cutter on the workpiece. For general-purpose milling, the chip
thickness should be between .004 and .008 in. Feed rates that produce chip
sizes outside of this range will cause premature wear and breakdown of the
carbide insert cutters.
where ipt is the chip load in inches per tooth and average chip thickness
ranges from .004 to .008 in.
Example 3.2
A 3-in.-diameter end mill with five teeth is to machine a 1.125 in. width of
cut to a square shoulder. See Figure 3.29. A chip load of .006 ipt and a
spindle rpm of 400
Figure 3.29
Tool feed, width of cut, and chip thickness.
This is out of the optimum range. Using .008 in. as the desired chip thickness
gives a chip load of
Climb Milling
Climb or down milling causes the tool to make a chip of maximum thickness
at the start of the cut at and near the part surface, and minimum thickness at
the end of the cut inside the material. The work is pushed down and into the
cutter. Thus, less clamping and machining horsepower are required. The extra
force on the table, however, means that the milling machine must have a
backlash eliminator for eliminating play between the nut and the table screw.
Most modern CNC machines come equipped with backlash eliminators.
More
Figure 3.30
Climb milling.
Figure 3.31
Conventional milling.
Conventional Milling
When conventional milling is practiced, the chip has no thickness at the start
of the cut inside the material and attains maximum thickness at the end of the
cut near and at the surface of the part. The chip is pushed up from the inside
of the part and in front of the cutter.
Figure 3.32
Chip formation (a) without coolant and (b) with coolant applied.
In addition to a substantial decrease in tool performance, BUE causes
excessive tool wear, poor surface finish, and even cratering of the tool face.
Cutting fluids attack these problems by offering such benefits as
Water-soluble oils
Semi-synthetic fluids
Synthetic fluids
Fluids can also be delivered by a mist system. A small jet is used to spray
soluble oil or synthetic water-miscible cutting fluids in very fine droplets.
Water-miscible fluids are preferred over oil, which may present health
hazards and tends to clog. Mist cooling is especially applicable to end milling
operations in which the cutting speed is high and the areas cut are low.
checking the amount of “tramp oil” wastes from CNC machine and part
surface that are picked up by the cutting fluid.
2. Because twist drills tend to deflect under loads, the shortest drill should
be used for an operation.
4. Spade drills and carbide insert drills can drill holes from the solid at feed
rates higher than that normally used for twist drills.
5. To use spade drills and carbide insert drills, the CNC machine must have
sufficient rigidity, spindle horsepower, and a high-pressure coolant
system.
6. End mills can be used for profiling, rough drilling, boring, and
counterboring operations.
7. Tool speed is the speed at which the cutting edge of the tool rotates.
8. Tool feed is the rate at which the tool advances into the material in
inches per minute (ipm).
9. Feeds and speeds are important factors in determining tool life and
cutting performance.
10. Climb milling involves feeding the cutter in the direction of its rotation.
It is recommended for rough cuts on CNC equipment and hard-to-hold
pieces.
12. Cutting fluids are commonly used for CNC metal cutting operations to
decrease tool wear and improve cutting performance.
13. The manufacturer’s Material Safety Data Sheet (MSDS) states the
proper care and handling of a cutting fluid.
1. Flutes
2. Web
3. Lip
2. 3.2
3. 3.3
4. 3.4 State three advantages and three disadvantages of using a spade drill.
6. 3.6 The two most important parameters for controlling tool wear and
tool cutting performance for a particular material are cutting
and cutting .
1. Profile milling
2. Face milling
8. 3.8
11. 3.11
12. 3.12
14. 3.14 Give seven reasons for using cutting fluids in CNC operations.
15. 3.15 For the four categories of cutting fluids, complete the following
table:
18. 3.18 What role does the EPA play when working with cutting fluids?
Chapter Four Exploring Features of
CNC Machining Centers
4.1 Chapter Objectives
At the conclusion of this chapter you will be able to
3. Describe the two most important tool holder designs commonly used in
CNC machining centers.
5. Identify the three most important types of tool storage and tool changer
systems.
Long flat parts are much easier to fixture on a vertical machining center and
spindle thrusts are absorbed by the table. An important factor favoring
verticals is that they are less expensive than horizontals. Horizontal spindle
machines work at right angles to their tables
Reduce the overhang of the quill and each cutting tool to assure
maximum rigidity.
After an emergency stop has been executed, always carry out inspection.
Carefully move the palm and fingers over the part to feel if there
are any foreign particles left.
Apply a drop of oil on the taper or thread of the spindle nose and
the shoulder.
and thus input torque to the machined parts. Better work holding or heavier
fixturing is required although larger parts can benefit from their own weight.
Horizontals allow for heavy cutting and high material removal rates due to
rigid spindle and column construction. Some horizontals have rotary table
options. This provides easier access to all four sides of the part. Horizontals
benefit from the effect of gravity in helping to remove chips. See Figures 4.1
and 4.2.
Frame The horizontal portion of the frame is called the “base,” and the
vertical portion is the “column.” The frame aligns and rigidly supports
the table and spindle components as well as the ATC. The frame is
designed to transfer vibrations away from the cutting area.
Headstock The spindle motor and gear transmission system for rotating
the cutting tool are contained in the headstock. A variable speed motor is
used to drive the spindle.
Figure 4.1
A vertical machining center with carousel-type tool storage
and spindle direct tool changer.
Ways The ways are rails that are hardened and produced with a high
degree of straightness and surface flatness throughout the length. The
table and spindle move on the ways in response to rapid or feed-rate
commands. Way covers are used to protect the way surfaces from
scratching due to chips or dents from accidentally dropped objects.
A variety of new head designs are bringing horizontal and vertical machining
centers closer together.
Figure 4.2
A horizontal spindle machining center with matrix magazine tool
storage and pivot insert tool changer.
The CNC shop can choose from a broad spectrum of tool-holding systems.
The V-flange and the BT-flange are the two most popular spindle types used
on CNC machines.
Figure 4.3
An assortment of CNC tooling systems based on the V-flange tool
holder. Note the use of interchangeable extensions, adapters,
arbors, boring heads, and cutting tools.
The V-flange, also known as CAT, was developed by Caterpillar Co. It has
become a national standard and the majority of tool holders currently in use
in the United States are of CAT style. BT-style flanges are more popular in
Europe and are mostly found on European machines. The two types of
flanges are not interchangeable on the same spindle.
Figure 4.4
CAT-V, BT-V, and HSK adapters.
V-flange has a steep taper that precisely positions the tool concentric to the
spindle. The V-flange locates and seats the tool changer’s gripper as it moves
the tool into the spindle. The mass, balance, and frictional fit achieved with
the V-flange provide minimal deflections at spindle speeds below 10,000
rpm.
Figure 4.6
ER, DA, and TG collet types.
1. Clean the collet, nut, and holder with a cloth and light oil such as WD-
40®.
3. Insert the collet at an angle into the nut. The two extractor teeth should
fit into the collet’s groove.
4. Press down with your thumb on the back end of the collet until it clicks
into place.
5. Insert the cutting tool, making sure at least 2/3 of the collet’s gripping
surface is used.
6. Screw the nut to the tool holder. Only apply the recommended clamping
torque for the nut.
Figure 4.7
Collet tool holder.
Figure 4.8
Collet-and-chuck tool-holding systems.
Grooved flange tool holders are used with side-gripping interchange arms.
For these configurations the holder is gripped from one side and placed into
the spindle. The interchange arm disengages the holder by moving off to the
side. Occasionally, some foreign matter such as a chip or some rust may be
present in the taper portion of the spindle hole. This will cause the tool holder
to seat improperly and spin out of balance. The spindle hole should be
inspected and cleaned by spraying the taper portion with a thin cleaning oil
such as WD-40®. Wipe and dry with a towel.
Figure 4.9
A tool holder with retention knob secured in the spindle by split
bushing retainer.
4.7 Automatic Tool Changer
Systems
Many different types of mechanisms have been designed for storing and
changing tools. The three most important are turret head, carousel storage
with spindle direct changing, and matrix magazine storage with pivot
insertion tool changer. Tool storage magazines may be horizontal or vertical.
Turret Head
This type of system is found on older NC drilling machines. The tools are
stored in the spindles of a device called turret head. When a tool is called by
the program, the turret rotates (indexes) it into position. The tool can be used
immediately without having to be inserted into a spindle. Thus, turret head
designs provide for very fast tool changes. The main disadvantage of turret
head changers is the limit on the number of tool spindles that can be used.
See Figure 4.10.
Upon entering a programmed tool change, the system advances to the proper
tool via the chain mechanism. The pivot arm rotates and picks up both the
new tool in the magazine and the old tool in the spindle. The magazine then
advances to the space where the old tool is to be stored. The arm executes a
rotation again and inserts the new tool into the
Figure 4.10
A turret head tool changing system.
Figure 4.11
A carousel storage system with spindle direct tool changer.
spindle and the old tool into the magazine. A final rotation returns the arm
back to its parked position. These steps are illustrated in Figure 4.12.
Two methods of tool identification are currently in use. One is the bar code
designation. The code is imprinted and fastened to the tool. When the
program calls for a specific tool, the controller looks for a particular tool
code, not a specific location. Another tool identification system uses a
computer microchip that is part of the tool or tool holder. The microchip
contains the tool identification number and information related to the
parameters of the tool. A special sensor reads the data and transfers it to the
machine controller.
Figure 4.12
A storage matrix magazine and pivot insert tool changer.
Pallet loader: moves the pallet from the load/unload station to the pallet
receiver/holder.
2. Step 2 After completing the part program for the part on pallet 1, the
MCU directs the machine to pull it from the receiver onto the loader.
Pallet 1 is removed and placed at an off-line holding location.
3. Step 3 Pallet 2 is then loaded into the receiver and locked into position.
If the new job is identical to the last job run, the same part program is
retained. If, however, a different type of job is to be run, the machine
must be signaled to load the corresponding part program. This
information can be entered manually or automatically read from a
Figure 4.13
A two-pallet work loading system used on a horizontal
machining center.
Figure 4.14
Details of a job setup clamped to a pallet.
microchip or bar code encoded on pallet 2. The part program is run for
the work on pallet 2. The completed part on pallet 1 is removed. A new
job is set up on pallet 1, thereby maintaining a continuous work cycle.
The two pallets are rotated in and out of the machining center until the entire
job run for all parts is completed.
Pallet loading systems have been adapted to all types of CNC machines
including vertical and horizontal machining centers.
4.9 Features of the Machine Control
Unit (MCU)—Machining Centers
Specific details and features of MCUs vary from manufacturer to
manufacturer. What is given in this section is a generic presentation of what
is found on most MCUs for machining centers. The reader is reminded to
consult the machine tool builder’s manual for the detailed information
relating to a particular machine control unit.
In larger companies, it is the CNC setup person, not the programmer, who
sets up tooling, loads the job, and runs the first piece on the CNC machine. In
smaller operations, the programmer can be expected to get involved in some
or all of these tasks. To be more versatile, the programmer needs to acquire a
basic knowledge of the features of the MCU.
The MCU is divided into two types of operations panels: the control panel
and the machine panel (see Figure 4.16).
memory, edited, and displayed on the CRT display. Data needed to set up a
job, such as tool offsets, are also entered. Other important information such
as the axis positions of the machine and the spindle’s speeds and feeds are
also displayed on the control panel’s CRT.
Figure 4.16
The Fanuc O i CNC control panel is used on both machining
centers and turning centers.
2.
3.
Depressing this button causes the CRT to display the current position of
the axis of the CNC machine.
Program Button
4.
Depressing this button allows the operator to create new word address
part programs or see and edit existing programs at the CRT display.
5.
This button is used in combination with the cursor position keys to enter
the tool offset page and place the cursor at a particular offset value that
is to be edited.
6.
The operator presses this button to enter data, like tool offsets, into the
control’s memory.
8.
Pressing one of these buttons positions the blinking cursor (left, right,
up, or down) on the CRT display. Data will be entered at the current
cursor position.
9.
The operator presses this button to store a block (one line) of word
address code in the control’s memory.
10.
The operator presses this key to return the cursor to the start of the
program when editing. The key is also used to stop the execution of a
part program that has a problem. When this happens all the program’s
commands in the look-ahead buffer will be cleared. It should be noted
that if the program is executed immediately after reset is pressed
problems may arise as it will run with the commands in the look-ahead
buffer skipped. Pressing this key when the CNC is running in alarm state
will cancel the alarm.
The machine panel is designed and built by the machine tool builder. It
contains buttons and switches for controlling the physical behavior of the
CNC machine tool. Power buttons turn the CNC machining center on or off.
An emergency stop button is used to stop all machine motions. A jog wheel
enables the operator to move a machine axis manually by turning a
handwheel. Dial controls can override programmed spindle speeds and feeds,
etc.
Figure 4.17
A machine panel
1.
Setting the switch to EDIT mode enables the operator to insert, save,
delete, and edit word address part programs at the CRT display using the
control panel keypad. The operator can also move to a particular line in
a program and begin executing it from that point.
2.
With the switch set to MEMORY, the operator can access the program
number of a word address part program that is stored in the control’s
memory. Pressing the START CYCLE button will direct the control to
execute the program in the automatic cycle mode.
3.
The operator selects TAPE mode to input a word address part program
from external units like a PC, diskette, Zip disk, or CD-ROM using an
RS-232 cable.
4.
When the switch is set to Manual Data Entry or MDI mode, setup data
like tool length offsets, spindle speed for edge finding, and fixture
offsets can be entered. Pressing the START CYCLE button will direct
the control to enter the data into memory.
5.
JOG mode puts the CNC machine tool into a manual mode of operation.
In this mode the operator can use several devices on the machine panel
to manually control its movement. For example, motion along each of
the machine axes can be controlled by pressing the + or - JOG buttons.
Spindle speed can also be regulated, etc.
6.
The HANDLE setting enables the operator to manually jog each of the
machine axes by turning the handwheel on the machine panel.
7.
The HOME setting enables the operator to return each of the machine
axes to their extreme travel limit or home. Pressing the HOME button
will direct the control to home the CNC machine.
8.
The operator presses this button to direct the CNC machine tool to
execute a part program selected from the control’s memory. Execution
will occur in automatic cycle (AUTO) mode.
2.
4.
Control over the rapid rate of motion toward or away from the work is
useful when testing a program containing G00, G27, G28, G29 or G30
comands. The rapid rate can be adjusted to 0%, 25%, 50%, 75% or
100% of its normal value.
The operator uses this switch to select the machine axis ( X,Y,Z, or B)
that is to be jogged by using the jog buttons or the handwheel.
6.
The rate switch controls the distance the machine moves along an axis
with a single push of the jog button or a single click of the handwheel.
Conditional Switches
The way the CNC machine tool operates in manual and auto mode is also
controled by a set of on/off toggle switches. They must be set correctly for
the CNC machine to execute a part program in the manner intended.
2.
The operator sets this to ON to stop movement along any machine axis
when a part program is executed by the control. When, in effect, the
CRT will display the programmed movements along the axes, the
spindle will run, and other machine functions will operate normally.
Machine lock is used to check a new part program.
4.
Any block in a part program that has a slash (/) as the first character will
not be executed when this switch set to ON.
5.
When this switch is set to ON, the control will stop the execution of a
part program and take the control out of AUTO cycle when a M01
block is executed in the part program. The operator presses the CYCLE
START button to start the machine again in AUTO mode. If this switch
is OFF, the control will ignore any programmed M01 codes.
6.
Power to the CNC machine will be turned off. Control power will
remain.
Select HOME mode and press the HOME button to home the
machine.
Press the CYCLE START button to start the program again from
the beginning.
4.10 Chapter Summary
The following key concepts were discussed in this chapter:
3. A tool holder is used to mate several different size tools to the CNC
spindle.
4. The taper on the tool holder is designed to center on the inside taper of
the spindle such that the tool’s relation to the work is repeated every
time the tool is used.
5. CAT-V and BT-V flange adapters are used for lower spindle speeds up
to 10,000 rpm. The HSK adapter is designed to be used for high spindle
speeds above 10,000 rpm.
6. The two most important types of V-flange tool holders are the end mill
holder and the collet-and-chuck holder.
7. Collect-and-chuck tool holders are more expensive than end mill holders
but generally produce better gripping and centering than end mill
holders.
8. Automatic tool storage and tool changer systems include turret head,
carousel storage with spindle direct tool changer, and horizontal storage
matrix magazine with pivot arm insertion tool changer.
9. Pallet loading systems are used to reduce machine idle time. They
automatically rotate in a setup part and rotate out a completed part.
10. The machine control unit is composed of the control panel and the
machine panel.
Review Exercises
1. 4.1 Identify and define the components of the CNC machining centers.
Component Description/Function
A1
B1
C1
D1
E1
F1
G1
H1
I1
J1
Component Description/Function
A2
B2
C2
D2
E2
F2
G2
H2
I2
J2
4. 4.4 Describe the methods of capturing the tool for the following types of
tool holders.
2. Collet-and-chuck holder
5. 4.5
1. What advantages does the HSK adapter offer over the V-flange-
style adapter?
8. 4.8 Describe how the following tool storage and tool changer
mechanisms work:
1. Turret head
11. 4.11
13. 4.13 Match the mode setting with the operation to be performed.
14. 4.14 Indicate the operation(s) to be executed at the machine panel for
each situation.
Operation(s)
Situation Executed at the
Machine Panel
Halt a program, fix it, and re-run it.
Execute a program.
A new program is being tested and it is desired
to decrease the programmed rapid move by
50%.
The program is to stop when an M01 code is
encountered.
The handwheel is to be used to jog the X axis in
increments of .001 in.
Chapter Five Review of Basic
Blueprint Reading for CNC
Programmers
5.1 Chapter Objectives
At the conclusion of this chapter you will be able to
2. Describe the section view and types of section views used in prints.
A basic review of prints and print reading is presented in this chapter. The
reader is encouraged to consult other sources of information on blueprint
reading listed at the conclusion of this chapter.
5.3 Projection Conventions Used in
Drawings
An orthographic projection is a technique for displaying an object according
to the following conventions:
All objects possess three dimensions: length, height, and depth. Mechanical
drawings utilize the multiview orthographic system of showing an object. In
this system, the object is surrounded by a box of six mutually perpendicular
projection planes. The object is oriented such that each plane shows the true
size of two dimensions as well as true angles and any
Figure 5.1
The multiview projection system with horizontal, front, and profile
projection planes and corresponding top, front, and right-side
views.
Figure 5.5 illustrates the common practice of omitting those portions of faces
that do not appear in true shape in an auxiliary view. This technique saves
drafting time and makes the print easier to understand.
Figure 5.4
An auxiliary view shows the true shape of an inclined face.
Figure 5.5
Practice of showing an auxiliary view in a mechanical drawing.
Viewplane lines like those shown in Figure 5.6 are used in cases involving
auxiliary views of large or complex parts where drawing space is a problem.
They indicate that the auxiliary view is to be found on another sheet or in a
specific location of the same drawing sheet.
Figure 5.6
Using viewplane lines to place an auxiliary view at convenient
location.
5.6 Sectional Views
A section view is used to expose the internal features of an object. It may
also be used as an additional orthographic view of surfaces that appear as
hidden lines in the principal orthographic views. The section view is created
by passing an imaginary cutting plane through the object. Material that is cut
is indicated by section lines. Figure 5.7 illustrates the principle of a section
view.
5.7 Reading Dimensions
A print’s graphics describe the shape of an object and the dimensions
indicate the size, location, and orientation of its individual geometric
features. Tolerances specify the accuracy to which geometric features are to
be held. The document entitled “Dimensioning and Tolerancing ASME
Y14.5M-1994” published by the American Society of Mechanical Engineers
(ASME) was adopted as the dimensioning standard for the United States by
the American National Standards Institute (ANSI). It is available from the
ASME at 345 East 47th St, NY, 10007.
Figure 5.7
Exposing the internal features of an object via a section view.
Dimensioning Terminology
Units: Dimensioning units follow either the USA standards or the
International system of units (SI).
USA
For numbers less than 1, a leading zero or zero before the decimal point
is NOT used.
Example 5.1
All dimension units are written with tolerances applied. The permitted
variation must have the same number of significant digits following the
decimal point as the specified dimension.
Example 5.2
SI
Example 5.3
Example 5.4
Limits: The largest (upper limit) and smallest (lower limit) values permitted
from the basic size.
Example 5.5
Example 5.6
Bilateral/Unilateral: A way of expressing the limits in terms of + and −
variations from the basic size.
Example 5.7
Nominal Size: The basic size of an object. Standard fractions are used
when needed. Examples of nominal size are stock size or thread
diameter sizes.
Thread Terminology
The thread terminology presented here relates to the general illustration of
internal and external threads, as shown in Figure 5.8.
Chamfer: The angular relief machined on the last thread to allow easier
engagement with the internal threads of the mating part.
Crest: The top of the threaded teeth for external threads, and the bottom
of the thread teeth for internal threads.
Root: The bottom of the thread teeth for external threads, and the bottom
of the thread teeth for internal threads.
Thread Depth: The perpendicular distance between the crest and root of
the thread.
Included Angle: The angle made between threads by the thread cutting
tool.
Lead: The distance the thread travels along its axis during one complete
revolution.
Left-Handed Threads: Threads cut so that they slope down to the left.
They engage by rotating the thread shaft counterclockwise when viewed
toward the mating thread. Left-handed threads are used in such
applications as turnbuckles and are designated as LH in drawings.
Right-Handed Threads: Threads cut so that they slope down to the right.
They engage by rotating the thread shaft clockwise when viewed toward
the mating thread. If no specific designation is given in a drawing, the
thread is assumed to be right handed.
Pitch: The distance between two adjacent thread crests or roots. For
single-start threads pitch is given as:
Single Threads: Advances a distance of one pitch (1P) for every 360º
revolution of the thread shaft. This thread is the most common and is
used to transmit substantial pressure and power.
5.9 Reading Surface Finish Symbols
and Notes
The surface finish or degree of surface smoothness on a part has a direct
influence on such operating factors as friction, fatigue life, corrosion,
resistance, contact stresses, and vibration. Finish also controls the part’s
dimensional accuracy.
Cutting speed.
Cutting feed.
Depth of cut.
Tool wear.
Cutting temperature.
Harder metals such as steels require the use of high-speed steel (HSS) or
carbide cutting tools. These materials are machined at low speeds and feeds
and cutting fluids are used. Softer metals like aluminum can be machined
with HSS tools operating at high speeds and feeds. Many times the use of
cutting fluid is not needed for cutting aluminum and its alloys.
Refer to Appendices C and D for a listing of tool speeds and feeds for various
metals.
Metallic materials can be classified into two broad categories: ferrous and
non-ferrous. Ferrous metals have iron as their principal element and are
magnetic. These metals include cast irons and steels. Non-ferrous metals have
little or no iron and are non-magnetic. Aluminum, magnesium, copper, and
zinc are examples of non-ferrous metals.
Table 5.3
General template of finish symbol.
Ferrous Metals
Cast Iron
Cast iron is an alloy of iron containing 2–4% carbon and 1–3% silicon and
various other elements existing in insignificant amounts. The American
Society of Testing and Materials (ASTM) identification numbering system is
used to specify cast irons in production drawings. A typical callout would be
CASTING ASTM 30A.
Steel
Steel is an alloy of iron containing varying amounts of carbon (.08–1.5%). It
is the most important of all ferrous materials and the dominant material used
in manufacturing and construction. The properties of steel can be changed by
adding other alloying elements such as nickel, molybdenum, chromium, and
vanadium, and by heat treatment. Production prints utilize the American Iron
and Steel Institute (AISI) and the Society of Automotive Engineers (SAE)
numbering system for specifying steels, as shown in Figure 5.10.
A typical callout for chromium stainless steel would be CRES SAE 3030F.
Non-Ferrous Metals
Aluminum
Aluminum is the most heavily used non-ferrous metal. It is mined from
bauxite ore, which contains approximately 45% aluminum plus oxygen and
other impurities. Its main properties include good conductivity, light weight,
high resistance to corrosion, non-sparking, non-toxic, non-magnetic, and easy
forming and machining.
Production drawings utilize the Aluminum Association (AA) numbering
system for wrought and cast alloys.
Most wrought alloys are easily machined, but some may require special tools
and production practices.
Figure 5.10
The SAE/AISI system for identifying steels.
Figure 5.11
The AA system for identifying wrought aluminum alloys.
Figure 5.12
The AA system for identifying cast aluminum alloys.
The AA identification system for castings uses a four-digit code with the last
digit separated by a period, as shown in Figure 5.12.
Easily machining regular carbon steels, and then heat treating to achieve
the same performance as that of alloy steels.
Part material.
Material Hardness
Hardness of a metal has been defined in terms of its resistance to local
penetration, to scratching, to machining, to wear or abrasion, and to yielding.
The most common type of testing is to measure resistance to penetration by a
hardened steel ball.
Example 5.8
HRC 50–60
Specifies that a hardness range of 50–60 was obtained when a major load of
150 kg was applied to a brale penetrator.
Harder metals have lower indentation surface areas and higher Brinell
numbers. Softer metals have larger indentation areas and lower hardness
numbers.
Brinell tests cannot be used on very hard or very soft metals, or metals
hardened only at their surfaces. The test may also produce unacceptable
marks in the surface of tested parts. The Brinell number reflects the hardness
over a larger area of the material than does Rockwell. Conversion tables exist
for relating Brinell hardness numbers to Rockwell hardness values.
Heat Treatments Affecting the
Entire Part Material
Heat treatments such as hardening, tempering, annealing, normalizing,
spheroidizing, and stress relieving affect the surface as well as the interior of
the part material. They influence the mechanical properties of the metal but
do not change its chemical composition.
Heat Treatments Affecting Selected
Part Areas
Through heat treatments cause some amount of distortion. In many cases it
may be necessary to harden only selected areas of the part: the punch portion
of a center punch or the contact surfaces of a gear. This approach ensures
greater dimensional stability as well as faster and less costly production time.
Furthermore, it provides for certain areas of the part to be hard and wear
resistant as needed and other areas to be flexible to prevent cracking during
operation.
Surface heat treatments, which involve hardening the part at its surface and at
some controlled depth below the surface, fall into two broad categories. The
first involves treatments that do not change the chemical composition of the
metal. These include induction hardening and flame hardening. The second
covers treatments that change the chemical composition of the surface region.
These treatments include carburizing or case hardening, and nitriding.
5.12 Reading Surface Coating Notes
It is common practice to treat parts with surface coatings after machining
principally to
Example 5.9
NOTES:
GDT Terminology
Feature: Any surface, angle, line, hole, etc. that is to be controlled in a
part.
Example 5.10
Example 5.11
A SHAFT FEATURE WITH DIAMETER SIZE LIMITS OF Ø .500 ± .002
IS AT Ⓜ FOR Ø = .502
IS AT Ⓛ FOR Ø = .498
Example 5.12
A HOLE FEATURE WITH DIAMETER SIZE LIMITS OF Ø .250 ± .002
IS AT Ⓜ FOR Ø = .248
IS AT Ⓛ FOR Ø = .252
Tolerance Zone: The zone that represents the tolerance and its position
relative to the basic size. The diameter symbol Ø is placed before a
tolerance value to indicate a cylindrical tolerance zone.
Figure 5.14
A datum plane is created from a part datum feature.
parallelism between holes. The basic rule here is that measuring one feature
relative to another is not permitted. All measurements should be made from
common datums.
Usually, only one datum is needed for controlling orientation features, but
positioning relationships often require a datum system consisting of two or
more datum planes. The basic 3-2-1 principle is followed when establishing
points of contact for creating the datum planes. The planes are mutually
perpendicular, as shown in Figure 5.15, and are placed in order of
importance.
Primary (A): This is the datum from which most size and location
dimensions are taken. A minimum of three points of contact are needed
to establish datum plane A.
Tertiary (C): This datum plane completes the system and locates the part
in 3D space. Only one point of contact is needed to establish datum
plane C.
For cylindrical parts, the axis of a cylinder formed by the intersection of two
mutually perpendicular center planes can be used as a datum feature. A
datum axis feature is shown in Figure 5.16.
Figure 5.15
A datum reference frame for a rectangular part follows the 3-2-1
principle.
Figure 5.16
A datum axis for a cylindrical part.
5.15 Chapter Summary
The following key concepts were discussed in this chapter:
4. Auxiliary views are needed to show the true shape and size of part faces
that are inclined with respect to the principal orthographic views.
7. Inch (in.) units are used for dimensioning parts in the United States. The
international communities use units of millimeters (mm) for
dimensioning parts.
12. The CNC programmer reads the part drawing notes to determine if the
part dimensions are to be met before or after specified coatings.
17. The same datums are used for CNC manufacturing and GDT inspection.
Review Exercises
1. 5.1. Name the six principal orthographic views.
2. 5.2. What angle projection system is used in the United States? Describe
it.
7. 5.7. How many threads per inch does a 1/4–20 thread have?
10. 5.10. What additional part features are controlled by GDT that cannot be
controlled by conventional tolerancing?
13. 5.13. Describe the positional relationship between GDT datum planes.
Bibliography
1. American National Standard Drafting
Practice:
ANSI/ASME Y14.1M-
• Multi and Sectional view Drawings
1994
ANSI/ASME Y14.1M-
• Dimensioning and Tolerancing
1994
ANSI/ASME Y14.1M-
• Screw Thread Representations
1993
• Types and Applications of Engineering ANSI/ASME Y14.24M-
Drawings 1989
ANSI/ASME Y14.36-
• Surface Texture Symbols
1993
11. Schultz R. Blueprint Reading for the Machine Trades. Prentice Hall,
Upper Saddle River, NJ, 1988.
The relationship between any two sides and the included angle is given by the
following general side–angle formulas:
Figure 6.1
A right triangle.
Table 6.1 Determining the
Sides of Right Triangles
Known angle Side–angle formulas
θA AC = sin (θA)
θA BC = cos (θA)
θA AB = tan (θA)
θB BC = sin (θB)
θB AC = cos (θB)
θB BA = tan (θB)
The sides of a right triangle are also related by the Pythagorean
formula: C2=A2+B2
6.4 Useful Angle Concepts
The following facts concerning angles are useful when dealing with problems
involving triangles:
Figure 6.2
A circle contains 360°.
Figure 6.3
Vertical angles are equal.
3. Alternate interior angles are equal. See Figure 6.4.
Figure 6.4
Alternate interior angles are equal.
Degrees=minutes × 160′
Example 6.1
Determine the unknown side in the triangles shown in Figures 6.5 through
6.7.
1.
Figure 6.5
Triangle with 30° angle.
2.
Figure 6.6
Triangle with 60° angle.
3.
Figure 6.7
Triangle with 50° angle.
Example 6.2
Assume you are working on a CNC machine with no rotary table. Determine
the coordinates that must be input for drilling hole 2. Refer to Figure 6.8.
Because the machine has no rotary table, hole 2 cannot be located by directly
inputting its angle from 0° and distance from the center of rotation C. Instead,
its X2 and Y2 absolute coordinates must be determined. A circle contains 360°
and there are four equally spaced holes in the circular pattern. Thus, each
hole makes an angle of 360°/4=90° with its neighbor. Refer to Figure 6.9.
Figure 6.8
Circle within square, 30° angle.
Figure 6.9
Circle within square, with angles and measurements.
The same calculations can be made when drilling holes using a milling
machine.
Example 6.3
Determine the unknown side in the triangle shown in Figure 6.10.
Figure 6.10
Triangle with 26°40′ angle.
In Table 6.2, sin–1, cos–1, and tan–1 are the inverse or arc sine, cosine, and
tangent functions found on standard scientific calculators.
Example 6.4
Find the required angle in the triangles shown in Figures 6.11 through 6.13.
1.
Figure 6.11
Triangle with sides 3 and 4.
2.
Figure 6.12
Triangle with sides 3 and 5.
3.
Figure 6.13
Triangle with sides 4 and 6.
6.6 Oblique Triangles
An oblique triangle is a three-sided figure, none of whose sides is 90°. See
Figure 6.14. Formulas for determining the included angle when any two sides
are known are given in Table 6.3.
Figure 6.14
An oblique triangle.
6.7 KwikTrig
Trigonometry/Geometry Software
KwikTrig, created by Mr. John Fracaro, is designed to easily solve
trigonometric and geometric problems encountered by CNC programmers.
Right triangles
Oblique triangles
Bolt circles
Compound sines
Version 3.05 can be downloaded from the website www.fracaro.net and used
for a 14-day free trial period. Version 3.05 offers the additional calculations:
Geometry tangents
Area
Figure 6.15
Starting KwikTrig from the Windows desktop.
Example 6.5
Use KwikTrig to solve the right triangles given.
Start KwikTrig
Figure 6.16
Determine the unknown side.
Click
2. If an angle and a side are known, any other side of a triangle can be
found. The sin, cos, and tan functions are used to solve for sides.
3. If any two sides are known, any interior angle of a right triangle can be
found. The inverse functions sin–1, cos–1, and tan–1 are employed for
finding angles.
Review Exercises
1. 6.1. Determine the unknown side in each right triangle shown in Figure
6.18.
2. by using KwikTrig
Figure 6.18
Three right triangles, find sides.
2. 6.2. Determine the unknown angle for each triangle shown in Figure
6.19.
2. by using KwikTrig
Figure 6.19
Three right triangles, find angles.
3. 6.3. Use Table 6.1 or KwikTrig to find the distances ΔX and ΔY in the
part shown in Figure 6.20.
Figure 6.20
Figure with side length 6.5.
4. 6.4. Use Table 6.1 or KwikTrig to find the absolute coordinates X and
Y, indicated for the metric part shown in Figure 6.21.
Figure 6.21
Figure with side length 75.
Hole ΔX ΔY X Y
1
2
3
4
6. 6.6. Determine the unknown side in each right triangle in Figure 6.23.
Figure 6.23
Three right triangles with minutes and seconds.
Figure 6.24
Machining figure with measurements.
8. 6.8. Use Table 6.1 or KwikTrig to determine the absolute depth of the
countersink ZDEPTH given the data listed below.
Figure 6.25
Countersink Zdepth.
6. Understand the terms machine home, part origin, and tool change
position.
Read the setup instructions and check for axis positioning accuracy
and operation correctness.
Adjust cutting speeds and feeds for each operation within the
recommended limits.
After operations, be sure to remove all chips and thoroughly clean the
working area.
7.5 Methodizing of Operations for
CNC Machining Centers
Methodizing involves creating a plan that indicates the sequence and methods
of operations to be carried out in order to produce a part. In a small machine
shop where no methods engineer is available, the programmer takes the
responsibility for breaking down the manufacturing of the part into
operations. In a larger shop, specially trained manufacturing engineers handle
this important job. The operations sheet contains information the programmer
needs concerning the condition of the part material prior to machining. The
operations sheet would indicate, for example, if the part material is in the
form of a plate, casting, or forging. Whether the plate is to be precut to
specific dimensions or if the castings and forgings are to be annealed before
machining would also be taken into account. The sheet also specifies if there
should be material left for finishing due to shrinkage, expansion, or distortion
after heat treating or plating. Operations sheets are used in conjunction with
the drawing.
7.6 Deciding on a CNC Machine
The programmer selects a CNC machine based on its ability to optimize the
cutting operations required to manufacture the part. Availability as well as the
capacity of the CNC machine must be known. The machine’s capacity is
measured by its travel horsepower, tooling magazine size, accuracy, and
number of machine axis movements.
Figure 7.3
The Manufacturing Operations Sheet that accompanies the
production drawing for the part COVER.
7.7 Methods of Holding the Part
During Machining
It is the programmer’s job to determine how the part is to be held during
machining operations. The first decision to be made is how the part is to be
oriented with respect to the work-holding device. Next, the part must be held
without distorting its dimensions and located by the work-holding device.
Locating a part involves positioning it properly with respect to datum planes
created by the work-holding device. Datum planes are specified on part
drawings that use geometric dimensioning and tolerancing (GD&T). When
working with drawings that do not use GD&T, the programmer should
consider the side from which most dimensions are taken as a datum. Proper
locating and clamping ensure the part can be repeatedly produced with
accuracy. A part is located by using the basic 3-2-1 principle as stated in
Section 5.14.
For milling operations, there are three basic types of work-holding devices
used: a mill vise, fixture, and a chuck. A right-angle plate is used to mount
the work at 90° with respect to the machine table. A tombstone is used to
mount parts on pallet work changing systems that are used on horizontal
machining centers.
Fixtures
Fixtures are used in the following cases:
Figure 7.5
Using a fixture with clamps and pins to locate and hold a part.
If the bottom surface of the part is qualified, it can be clamped directly to the
fixture plate to create datum plane . If not, datum plane must be
created by placing the bottom surface on three pins.
Chuck
A three-jaw chuck mounted to the machine table is often used in cases where
a cylindrical surface is to be clamped.
Right-Angle Plate
A right-angle plate is used to mount the work at a 90° orientation with respect
to the machine table. It can be mounted to sub-plate or the machine table
directly. This type of work holding is suitable for machining on a horizontal
machining center.
Tombstone
A tombstone fixture allows for multiple parts to be held on any or all of its
sides. Manual or power clamping devices can be used. Tombstones are
usually mounted on the machine pallets of a horizontal machining center.
Each side is presented to the spindle for machining by rotating the pallet
about the B axis. In many cases complete parts can be produced in one setup.
The idea of increasing productivity via pallet loading systems was discussed
in Section 4.8.
Many times a fixture plate is manufactured for the job. As part of setup
operations, the fixture plate is aligned and bolted to the machine table. The
part in turn is located and held to the fixture plate by pins and clamps.
CNC setup sheets must also be created describing where and how the part is
to be held during the machining operations.
1. ① Blueprint number
2. ② Sheet number
4. ④ Fixture number
5. ⑤ Program number
7. ⑦ Part number
8. ⑧ Part name
11. ⑪ Setup instructions (how and where the fixture plate is set down)
12. ⑫ Setup sketch (illustration of how fixture plate is held to the machine
table)
Figure 7.11
The CNC setup sheet for setting up the part COVER.
The cutting sequence together with the required cutting tools is documented
on the CNC tool and operations sheet. See Figure 7.12.
Figure 7.12
The CNC Tool and Operations Sheet for machining the part
COVER.
7.9 Cutting Conditions
The spindle speed and feed rate must be determined and entered in the part
program. A discussion of how these parameters are calculated for milling and
drilling was presented in Chapter 3. Once entered, they are optimized
(adjusted up or down) after a trial machining. The selection of the proper
cutting tools for an operation and optimization of the speed and feed during
the cutting process will cut down on machining time and subsequently
increase productivity.
7.10 Writing a Programming
Manuscript
The program is ready to be coded after all the planning is complete. The
programmer makes certain programming decisions based on the drawing
requirements and fixturing configuration. These include the following:
Several methods can be used to input the part program to the control’s
memory.
Figure 7.13
Downloading a program from PC or workstation to the MCU.
Figure 7.14
Downloading a program to the MCU via diskette, flash, or
CD-ROM devices.
Method 3: For small machining jobs, the programmer can use the
alphanumeric keypad on the control panel. First, the mode switch is set
to EDIT. Then the PROG button is pressed to create a new program
page. The program number is manually keyed in, and then the INSERT
button is pressed to register the number into the control’s memory. Each
block (one line) of the program is entered. The INSERT button must be
pressed after each block is typed to register it into the control’s memory.
The cursor position keys are used to move the cursor to a location where
editing is to occur. The ALTER button is pressed to execute editing of
the program. Note: Modern MCUs are PC-based and contain dedicated
online programming software that facilitates the manual method of
program creation and entry. See Figure 7.15.
Figure 7.15
Manual entry of a program into the MCU in EDIT mode.
7.12 Setup Procedure
The setup operation can begin after the fixtures, tooling, program, setup
sheets, and part blank arrive at the CNC machine. Usually, the setup person
starts by securing the cutting tools in the tool holders. The tooling assemblies
are loaded into the tool magazine according to the order outlined in the setup
sheets. Next, the work-holding device is put into place on the machine table.
It may require clamping and some minor machining. The part blank is loaded
into the work-holding device as requested by the programmer. After loading
the program into the MCU, the setup person determines another important
parameter: the location of the part origin X0Y0 with respect to machine home.
Machine Home and Part Origin
The machine home position or machine zero is a location set once by the
machine manufacturer. The CNC machine is homed at the start of the part
program setup. When homed, the machine retracts the spindle to its
maximum height above the table (machine Z0) and moves the table to a preset
machine zero position (machine X0Y0).
The part origin is the (0, 0, 0) location of the part XYZ coordinate system.
When absolute coordinates are used, all programmed tool movements are
taken with respect to this origin. See Figure 7.16 for an illustration of these
positions.
If datums are specified in the part print, the part origin is the point of
intersection of the three datums. This is the case for parts that use GD&T. If
no datums are provided on the print, then the programmer should consider the
sides from which most dimensions are given for a part origin. The part origin
should be placed at a point that makes it easy to program the X and Y tool
movements.
The setup person must determine the XYZ locations of the part origin in
relationship to machine home. Again, this could be the center of a hole, the
edge of the part, or a predetermined distance from the edge. Proper location
of the part origin is an important factor in assuring that parts are machined
with repeatable results.
Figure 7.16
Machine home and part origin locations.
Locating the Part Origin with an
Edge Finder
An edge finder has a .200 DIA. cylindrical probe that is connected to the
body by a spring. The body of the edge finder is mounted on the spindle and
spun at about 200 rpm, causing the probe to offset. The MCU’s jog buttons or
the handwheel are used to move or “tram” the edge finder from machine
home to the part edge. The operator stops tramming when the probe realigns.
The final X, Y values displayed at the control panel of CRT are the locations
of the part origin from machine home.
Methods of Programming the Part
Origin Location into the MCU
Manual Handwheel Method
The machine is first homed, and then a machine axis X or Y is selected for
jogging. The handwheel is used to manually tram the probe to each reference
surface; the center of the probe should locate the surfaces representing the
part origin. The X and Y values of the location of the part origin from
machine home will be displayed at the control panel’s CRT when both
reference surfaces are reached. If a .200 DIA. probe is used, each X and Y
value must be compensated by .100. The operator selects the manual data
input (MDI) mode and enters the single-line command G92X0Y0. The G92
Figure 7.17
Edge finding a part origin.
code directs the control to shift the absolute zero point from the current
position to the part origin. The operator then presses the CYCLE START
button to execute the command. The CRT will display the current location as
X0, Y0. This will be the part zero.
This method is seldom used since the part origin values are not stored in the
control’s memory and will be lost when the control is turned off.
Absolute Zero Shift (G92) Entry in
the Part Program
With this method, the machine is first homed, and then a machine axis X or Y
is selected for jogging. The handwheel is used to manually tram the probe to
each reference surface. The X and Y values of the location of the part origin
from machine home will be displayed at the control panel’s CRT when both
reference surfaces are reached. If a .200 DIA. probe is used, each X and Y
value must be compensated by .100. The setup person selects the EDIT mode
and then presses the PROG button and the ALTER button to edit the part
program. The block containing the G92 code is edited. The X and Y values
found by tramming but with all signs reversed replace the existing values
coded. Note this method has drawbacks in that every time the work-holding
location changes, the program must be reentered and new values must be
entered in the G92 block. Also, some shops have a strict policy of not
allowing setup personnel to edit part programs.
The operator homes the machine, and then the probe is trammed to the
reference surfaces of each part origin. The corresponding X and Y values are
recorded at the control panel CRT, the fixture offset page is opened, and the
part origin values or “work coordinates” are entered. When the program
executes and a particular fixture offset code (G54–G59) is encountered, the
corresponding part origin values will automatically be called from memory
and used.
The fixture offset method is safe and flexible. Setup personnel do not have to
edit part programs for the purpose of keying in part origin values.
Figure 7.18
Using fixture offsets (G54–G59) to set up multiple parts.
Programming the Tool Length
Offsets into the MCU
The setup person must next measure and enter the values of the tool length
offsets of each tool. The different tools used for the machining operations in a
program may vary in length, and the control must be directed to compensate
for these variations when moving a tool in the Z direction. It can only do so if
it knows the initial distance between the bottom of the tool and the part Z0.
The setup person sets the spindle to full retract height or machine Z0. A tool
is loaded, and then the spindle is slowly jogged down until the bottom of the
tool makes contact with the top of the work. The corresponding Z value is
displayed at the control panel CRT. The spindle is fully retracted, the next
tool is loaded, and a similar measurement is made and recorded. This
procedure is carried out for each tool used in the part program. The values are
entered and stored in the control in a location called the tool length offset and
under the number assigned by the programmer. In some cases a tool can have
a few tool length offsets. See Figure 7.19.
1. The setup person locks the machine and runs the program using only the
output from the MCU to check the controller’s recognition of all the
codes in the program.
2. If step 1 is successful, the program can run with the machine Z axis
locked, which will guard against any possible collisions between the tool
and the work holding or part itself.
3. Next is the so-called “dry run” with the part removed. During this test,
the setup person slows down the rapid feeds and speeds up the actual
feeds. The dry run will indicate whether there are any extraordinary
moves that could cause a collision of the work and/or work holding with
the cutting tool.
4. A blank is loaded and cut to verify that the program produces a proper
part. If the production blanks are made of a costly material, some shops
may first cut a test part using aluminum, wax, wood, or Styrofoam in
order to save on material, cutting tools, and prove-out time.
5. The actual cutting test is run with the control set to single block mode
(versus automatic mode) to give the setup person time to see the effects
of each command and to aid in spotting any wrong move.
The setup person tries to optimize the speeds and feeds when parts are
manufactured in production to speed up the cutting cycle, increase tool life,
and improve part quality.
7.15 Chapter Summary
The following key concepts were discussed in this chapter:
5. The CNC setup sheet contains information pertaining to where and how
the work is to be held during the machining operations.
6. The CNC tool and operations sheets document the cutting sequence
together with the required cutting tools.
8. The setup person is responsible for loading the tooling into the tool
magazine as well as securing the work-holding device and part blank in
the CNC machine. Other setup activities include loading the part
program into the MCU, measuring the location of the part origin,
entering the tool length offsets, and running the part program.
9. Tool length offset is the distance from the bottom of the tool to the part
Z0 reference plane with the spindle fully retracted.
10. A part is ready for production only after the program has been tested and
proven to consistently manufacture quality parts in the time proposed.
Review Exercises
1. 7.1. Name five factors that enter into the decision to manufacture a part
by CNC operations.
2. 7.2.
1. What is methodizing?
3. 7.3.
4. 7.4. List three factors that must be considered when selecting a CNC
machine for an operation.
5. 7.5. Does the programmer or the setup person carry out each of the
following CNC shop activities?
2. Fixture design
7. Entering the location of the part origin and tool length offsets into
the MCU
6. 7.6.
7. 7.7.
8. 7.8.
9. 7.9. List all the items that must be delivered to the CNC machine in
preparation for setting up a job.
10. 7.10. Define the terms machine home, part origin, and tool change
position.
11. 7.11. Describe three methods by which the setup person can locate the
part origin.
12. 7.12
2. Dry run
14. 7.14. What three important criteria must a part program satisfy in order
to qualify for use in production runs?
Chapter Eight Word Address
Programming
8.1 Chapter Objectives
At the conclusion of this chapter you will be able to
3. State how addresses should be arranged in a block and identify their use.
Programming Character
A programming character is an alphanumeric character or punctuation mark.
Example 8.1
The following are programming characters:
N G ;
Addresses
An address is a letter that describes the meaning of the numerical value
following the address.
Example 8.2
Identify the address and the number in the codes G00 and X–.375;
It is important to note that a minus (–) sign may be inserted between the
address and the numeric value. Positive values do not need a plus sign.
Words
Characters are used to form words. Program words are composed of two
main parts: an address followed by a number. Words are used to describe
such important information as machine motions and dimensions in programs.
Blocks
A block is a complete line of information to the CNC machine. It is
composed of one word or an arrangement of words. Blocks may vary in
length; thus, the programmer need only include in a block those words
required to execute a particular machine function.
Example 8.3
Point out the components of the block N0020X–2.5Y3.75S1000;
Each block is separated from the next by an end-of-block (;) code.
Note
The end-of-block character is automatically generated when the programmer
enters a carriage return at the computer. The same holds true when the end-
of-block key is depressed at the machine control unit during manual entry.
Therefore, this character will not appear in the regular program listings in
this text.
Programs
A program is a sequence of blocks that describe in detail the motions a CNC
machine is to execute in order to manufacture a part. The MCU executes a
program block by block. The order in which the blocks appear is the order in
which they are processed.
Example 8.4
Illustrate the order in which the MCU executes the following program.
8.5 Arrangement of Addresses in a
Block
The order in which addresses appear in a block can vary. The following
sequence, however, is normally used:
General Syntax
Example 8.5
Give an example of addresses arranged in a block.
8.6 Program and Sequence
Numbers (O, N Codes)
Program Number (O)
Programs are stored in the MCU memory by program number. The machine
recognizes programs according to a numeric code, and most machines can
store several different programs at a time. Program numbers range from O1
to O9999. See Figure 8.1.
Figure 8.1
MCU memory to disc.
Sequence numbers are used so that operators can locate specific lines of a
program when entering data or performing checkout operations.
Example 8.6
Give an example of the use of a program number and sequence numbers.
8.7 Preparatory Functions (G
Codes)
A preparatory function is designated by the address G followed by one or two
digits to specify the mode in which a CNC machine moves along its
programmed axes. The term preparatory signifies that the word (G address
and digit code) prepares the control system for the information that is to
follow in the block. Preparatory functions are also referred to as G codes. A
G code is usually placed at the beginning of a block so it can set the control
for a particular mode when acting on the other words in the block.
Many G codes have been standardized and others are unique to a particular
CNC control. It should also be noted that there are differences between the G
codes used for CNC machining centers and those used for CNC lathes. The
following G codes are especially useful when executing operations involving
Fanuc controllers.
G
Mode Specification
code
Rapid positioning mode. The tool is moved to its
programmed XYZ location at maximum feed rate. The tool
G0 Modal
will travel at a 45° angle with both drive motors running at
top speed until one or the other runs out of travel.
G1 Modal Linear interpolation mode. The tool is to be moved along a
straight-line path at the programmed feed rate.
Inch mode for all units. This code is entered at the start of a
G20 Modal
word address program to specify units are in inches.
G21 Modal Specifies metric (mm) mode for all units.
G28 Nonmodal Returns tool to reference point.
G43 Modal Specifies tool length offset (positive direction).
G49 Modal Cancels tool length offset.\
G53 Modal Cancels G54–G59 fixture offsets.
G54– Modal Specifies fixture offset locations.
• G54—specifies fixture offset location 1
• G55—specifies fixture offset location 2
• •
• •
G59 G59—specifies fixture offset location 6
Cancels any fixed cycle. This word should appear prior to
G80 Modal starting a new program and at the end of a program to
cancel any fixed cycles. Refer to Chapter 8.
G90 Modal Specifies absolute position programming.
G91 Modal Specifies incremental position programming.
Directs the controller to shift the absolute zero point for
programmed moves from the current tool position to the
part origin. If the current tool position is at machine home,
G92 Modal
the shift will be from machine home to the part origin. The
X and Y values following G92 are measured from the part
origin to the current tool position.
Specifies a return to the initial point in a machining cycle
G98 Modal
that had been created by a modal G code.
Example 8.7
Explain the effect of modality of the G codes in the word address blocks
below:
In the following chapters we will explain in more detail the use and
application of G codes in commands.
8.8 Dimension Words (X, Y, Z ...
Codes)
As was stated previously, dimension words specify the movement of the
programming axes. Remember from Chapter 2 that programming axes are
laid out according to the Cartesian coordinate system. The positive or
negative direction of movement along an axis is given by the right-hand rule.
For a review, see section 2.6.
Example 8.8
Explain the meaning of the following word address blocks.
Word address
Meaning
command
N0030 G0X.5Y.5 Move tool at rapid speed (G0) to X.5 Y.5.
N0040 G90G1Z-.5F10. Absolute mode positioning (G90).
Liner interpolation mode (G1).
Move tool to absolute Z–.5 at a feed rate (F) of 10
ipm.
Move tool to absolute X2.5 at a feed rate (F) of 10
N0050 X2.5
ipm.
N0060 Y1.5 Move tool to absolute Y1.5 at a feed rate (F) of 10
ipm.
8.9 Feed Rate (F Code)
The feed rate is the rate at which the cutting tool moves along a programming
axis, and is specified by the numerical value following the address F. In the
English system, the feed rate is expressed in inches per minute, and in the
metric system in millimeters per minute. The student is encouraged to review
the presentation of how the feed rate for hole and milling operations is
computed. See Sections 3.6 and 3.9. Additionally, recommended feeds for
drilling and milling various materials are listed in Appendix C.
Example 8.9
Explain the meaning of the feed rate words F10 and F10. in the English
system.
Example 8.10
Explain the meaning of the word S1600.
S1600 directs the control to set the CNC machine spindle at 1600 revolutions
per minute or 1600 rpm.
The address S is modal and remains in effect for every subsequent command,
until replaced by a new S code or canceled by a spindle-off (M5) word.
The numbers following the address M call for such miscellaneous machine
functions as spindle on/off, coolant on/off, program stop/automatic tool
change, program end, and so on. M codes are usually classified into two main
groups:
M
Type Specification
code
M0 B Causes a program stop.
Causes a program end. An M02 code must appear in the last
M2 B
block in a program. If used, do not use M30.
M3 A Turns spindle on clockwise (CW).
M4 A Turns spindle on counterclockwise (CCW).
Turns spindle off. Usually used prior to a tool change and at the
M5 B
end of a program.
M6 B Stops the program and calls for an automatic tool change.
M7 A Turns the coolant tap oil on.
M8 A Turns the external coolant on.
M9 B Turns the coolant off.
Directs the controller to end program processing, and reset the
M30 B memory unit. This code must appear in the last block of a
program. If used, do not use M02.
The number of the new tool to be used is identified by the T word. The word
M6 directs the CNC machine to change to the new tool.
Example 8.11
Explain the meaning of the following word address blocks.
Example 8.12
Explain the meaning of the following word address blocks.
Word address
Meaning
command
Example 8.13
The following comments are used for labeling purposes only, and are ignored
by the controller.
8.15 Chapter Summary
The following key concepts were discussed in this chapter:
4. 8.4. Match the terms on the left with the definitions on the right:
1. G49
2. G1
3. G80
4. G0
5. G92
1. M6
2. M30
3. M0
4. M3
5. M5
11. 8.11. Explain the effect of each block on the CNC machine.
2. N0100 G0 X2.Y0.S500
3. N0050 T2 M6
4. N0060 G43 H2
2. Explain the purpose of the most important fixed cycles for hole
operations.
5. Write simple hole operation programs with the aid of canned cycles.
9.2 Introduction
The concept of a fixed or “canned” cycle is discussed in this chapter. The
most important fixed cycles related to such hole operations as drilling,
counterboring, deep drilling, tapping, and boring are explained in detail. The
reader is introduced to the format that can be followed when writing hole
operation programs for a vertical machining center. Complete programs are
given, together with a comprehensive explanation of the commands.
4. Rapid move back to either the Z-axis initial position or the Z-axis
clearance plane (R).
To perform the same operations in the next block, the programmer need only
enter the X and Y coordinates of the next hole center.
Figure 9.1
A boring operation executed using a fixed cycle.
For long boring cuts select the heaviest possible boring bar with the
shortest overhang.
Press the EMERGENCY STOP button before entering the work area to
remove chips or clean the CNC machine.
Notes:
1. The cycles described are modal. They operate automatically on all
subsequent data blocks that include rapid movement (G00) in the XY
plane. A cycle is canceled by a G80 code or replaced by another
autocycle.
General Syntax
Drill, Center Drill, or Ream Cycle
A G81 cycle causes the machine to ① rapidly move the tool from the Zinitial
position to the Rplane, ② drill the hole to a depth Zn at feed rate Fn, ③ rapidly
move the tool back to either the Rplane or the Zinitial position, and ④ rapidly
move the tool to the center of the next hole if the Xn Yn coordinates of that
hole are programmed in the next block.
G81 Xn Yn Zn Rn Fn
G81 Specifies simple drilling.
Xn Numeric values of n specify the absolute X and Y coordinates of the
Yn hole center. Coordinates can be absolute (G90) or incremental (G91).
Numeric value of n specifies the depth of the drill in absolute (G90) or
Zn the distance below the Rplane to the hole bottom in incremental (G91)
code.
Numeric value of n specifies the distance to the Rplane in absolute (G90)
or the distance below the initial tool position to the Rplane in incremental
Rn
(G91) code. If not programmed, the last active Rplane is used, and if
none is specified, the tool returns to the Zinitial position.
Numeric value of n specifies the feed rate of the tool [(in./min) or
Fn (mm/min)] into the hole. If not programmed, the system will use the last
programmed feed rate.
Counterbore Cycle or Spotface
Cycle
A G82 cycle causes the machine to ① rapidly move the tool from the Zinitial
position to the Rplane, ② bore the hole to a depth Zn at feed rate Fn, ③ dwell
for Pn seconds at depth Zn, ④ rapidly move the tool back to either the Rplane
or the Zinitial position, and ⑤ rapidly move the tool to the center of the next
hole if the Xn Yn coordinates of that hole are programmed in the next block.
G82 Xn Yn Zn Fn Pn
Specifies a counterbore
G82
cycle.
Numeric values of n
specify the absolute X and
Xn Y coordinates of the hole
Yn center. Coordinates can be
absolute (G90) or
incremental (G91).
Numeric value of n
specifies the depth of the
drill in absolute (G90) or
Zn the distance below the
Rplane to the hole bottom
in incremental (G91)
code.
Numeric value of n
specifies the distance to
the Rplane in absolute
(G90) or the distance
below the initial tool
position to the Rplane in
Rn
incremental (G91) code. If
not programmed, the last
active Rplane is used, and
if none is specified, the
tool returns to the Zinitial
position.
Numeric value of n
specifies the feed rate of
the tool [(in./min) or
Fn (mm/min)] into the hole.
If not programmed, the
system will use the last
programmed feed rate.
Numeric value of n
specifies the dwell time at
Pn
the bottom of the hole in
seconds (.01–99.99).
G83 Xn Yn Zn Qn Rn Fn
Specifies a peck drill
G83
cycle.
Numeric values of n
specify the absolute X
Xn and Y coordinates of the
Yn hole center. Coordinates
can be absolute (G90) or
incremental (G91).
Numeric value of n
specifies the depth of the
drill in absolute (G90) or
Zn the distance below the
Rplane to the hole bottom
in incremental (G91)
code.
Numeric value of n
specifies the first peck
distance below the Rplane.
Qn
This value is added
successively to the last
total for each pass until
the final hole depth is
reached.
Numeric value of n
specifies the distance to
the Rplane in absolute
(G90) or the distance
below the initial tool
position to the Rplane in
Rn incremental (G91) code.
If not programmed, the
last active Rplane is used,
and if none is specified,
the tool returns to the
Zinitial position.
Numeric value of n
specifies the feed rate of
the tool [(in./min) or
Fn (mm/min)] into the hole.
If not programmed, the
system will use the last
programmed feed rate.
Tap Cycle
A G84 cycle causes the machine to ① rapidly move the tool from the Zinitial
position to the Rplane, ② cut threads as the tool advances in at feed rate Fn,
③ automatically reverse the spindle at maximum depth and retract at feed
rate to either the Zinitial position or the Rplane, and ④ rapidly move the tool to
the center of the next hole if the Xn Yn coordinates of that hole are
programmed in the next block.
G84 Xn Yn Zn Rn Fn
G84 Specifies a tap cycle.
Numeric values of n
specify the absolute X and
Xn Y coordinates of the hole
Yn center. Coordinates can
be absolute (G90) or
incremental (G91).
Numeric value of n
specifies the thread depth
in absolute (G90) or the
Zn distance below the Rplane
to the bottom of the
thread in incremental
(G91) code.
Numeric value of n
specifies the distance to
the Rplane in absolute
(G90) or the distance
below the initial tool
position to the Rplane in
Rn
incremental (G91) code.
If not programmed, the
last active Rplane is used,
and if none is specified,
the tool returns to the
Zinitial position.
Numeric value of n
specifies the feed rate
[(in./min) or (mm/min)]
of the tool into or out of
Fn the hole. The feed rate
should be (rpm × lead of
tap). If omitted, the last
programmed feed rate is
used.
Bore Cycle
A G85 cycle causes the machine to ① rapidly move the tool from the Zinitial
position to the Rplane, ② advance the tool into the hole at feed rate Fn, ③
retract the tool at feed rate to either the Zinitial position or Rplane, and ④
rapidly move the tool to the center of the next hole if the Xn Yn coordinates
of that hole are programmed in the next block.
G85 Xn Yn Zn Rn Fn
G85 Specifies a bore cycle.
Numeric values of n
specify the absolute X and
Xn Y coordinates of the hole
Yn center. Coordinates can
be absolute (G90) or
incremental (G91).
Numeric value of n
specifies the depth of the
drill in absolute (G90) or
Zn the distance below the
Rplane to the hole bottom
in incremental (G91)
code.
Numeric value of n
specifies the distance to
the Rplane in absolute
(G90) or the distance
below the initial tool
position to the Rplane in
Rn incremental (G91) code.
If not programmed, the
last active Rplane is used,
and if none is specified,
the tool returns to the
Zinitial position.
Numerical value of n
specifies the feed rate of
the tool [(in./min) or
(mm/min)] into or out of
Fn
the hole. If not
programmed, the system
will use the last
programmed feed rate.
Example 9.1
For each hole operation shown in Figures 9.2 through 9.6, write the
appropriate G code blocks in both absolute and incremental modes.
1. Drill autocycle
Figure 9.2
2. Counterbore autocycle
Figure 9.3
3. Deep drill autocycle
Figure 9.4
4. Tap autocycle
Figure 9.5
5. Bore autocycle
Figure 9.6
9.5 Writing a Hole Operation
Program
A suggested pattern or format that can be followed for programming a typical
vertical machining center with a Fanuc 6M controller is shown in Figure 9.7.
Figure 9.7
Suggested pattern/format for programming typical vertical
machining center.
Example 9.2
Write a word address program for executing the drilling operation as shown
in Figure 9.8. Use the CNC tool and operations sheet given.
Figure 9.8
Drilling operation.
Setup Notes:
1. The part is held in a vise with a stop on the left side.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Figure 9.9
Hole operations.
Setup Notes:
1. The part is held against three pins by two clamps.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Figure 9.10
Planned tool paths.
Setup Notes:
1. Set X0Y0 at the center of the .201 diameter.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
2. The fixed cycles for hole operations are modal. Once programmed, they
are repeatedly executed at various locations specified in a part. They are
canceled by a G80 code or replaced by another fixed-cycle code.
Use the Predator simulation software to write and verify these exercise
programs.
Figure 9.11
Print of hole sizes and their locations.
Setup Notes:
1. Set X0Y0 at the center of the part.
Note:
The machine home reference point in each case is a suggested location.
The true location must be determined at the time of setup.
For the remaining exercises in this chapter, write a CNC program using
the following general format:
1. Program number/headings
5. Machine stop
6. Change to tool 2, machine start
7. Hole operation 2
Figure 9.12
Setup Notes:
1. The part is held by three clamps against three pins.
Setup Notes:
1. The part is held in a vise with a stop on the left.
2. Set X0Y0 at the upper left-hand corner.
Figure 9.13
CNC Tool and Operations Sheet
Speed Feed
Tool Operation Tooling (rpm) (ipm)
Center drill (6) equally spaced No. 2 center
1 1500 6
holes ×.15 deep drill
.147 DIA*
2 Deep drill (6) holes ×.5 deep 1500 6
drill
10–24 UNC
3 Tap (6) holes ×.4 deep 70 2
tap
*DIA indicates diameter.
Setup Notes:
1. The part is held in a three-jaw chuck.
The following word address commands are used extensively for cutting linear
profiles on a vertical or horizontal machining center that utilizes a Fanuc 6M
controller.
Note
↓ represents tool motion at the programmed feed rate.
10.4 Writing a Linear Profiling
Program
A typical pattern that can be followed for planning many types of basic
profiling programs is given in Figure 10.2. This pattern is used in the
examples that follow.
Figure 10.1
Machining a linear profile.
A deep first cut should be made on castings, forgings, and other rough
surfaces in order to enable the tool to penetrate the hard outer scale.
Position the side milling cutter in such a way that the cutting edges are
not brought against the vise or fixture.
Hold the tool as close as possible to the work fixture and arbor
support arm.
Move the tool toward the solid vise jaw or vertical leg of an angle
plate.
General Syntax
Linear Profile Milling
G1 Zn Fn
Xa Ya
Xb Yb
etc.
Xb Yb
•
•
Example 10.1
Write a word address program to profile mill the contour shown in Figure
10.3. Use the CNC tool and operations sheet given.
Setup Notes
1. Set X0 Y0.03 in. from the lower left corner.
The cutter can be thought of as a circle whose diameter is the tool diameter.
For profiling, the tool must be positioned such that it is always tangent to the
line it follows. Specifying the X, Y locations of the cutter center is relatively
easy when dealing with horizontal and vertical line profiles. The programmer
simply adds the cutter radius to the part geometry or subtracts the radius as
required, as shown in Figure 10.3.
Then, the computed X, Y values are used in the CNC program. A complete
listing is given below.
Figure 10.2
Eight-step diagram.
Figure 10.3
The programmer simply adds the cutter radius to the part geometry
or subtracts the radius as required.
Absolute
coordinates
Position X
−.35
2.25
2.25
5.25
5.25
−.25
−.25
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
An Approach to Determining
Cutter Offsets for Inclined Line
Profiles
Step Procedure Visual
EXTEND THE
1 PART PROFILE
LINES
DRAW A CIRCLE
REPRESENTING
THE CUTTING
2 TOOL TANGENT
TO THE TWO
EXTENSION
LINES
DRAW A LINE
FROM THE
CENTER OF THE
3 CIRCLE TO THE
INTERSECTION
OF THE PART
PROFILE LINES
DROP A
PERPENDICULAR
4
TO THE CUT
SIDE
DETERMINE θ,
THE ANGLE THE
SECOND
PROFILE LINE
5
MAKES WITH
THE EXTENSION
LINE OF THE
FIRST PROFILE
THE ACUTE
ANGLE OF THE
RIGHT
TRIANGLE AT
THE
6 INTERSECTION t=tan(180°−θ2).
OF THE TWO
PROFILE LINES
WILL ALWAYS
BE GIVEN AS 180°
−θ2
THE CUTTER
OFFSET IS
DETERMINED BY
7 DIVIDING THE ΔY=Rt
CUTTER RADIUS,
R, BY THE
TANGENT
VALUE, t
Example 10.2
Determine the absolute coordinates of the center of the cutter for milling the
profile shown in Figure 10.7.
Figure 10.7
Determine the absolute coordinates of the center of the cutter of
milling the profile.
Position Calculation
X = 5 +.25 Y = −5 −.25
X = −.25 Y = −5 −.25
X = −.25 Y = .25
Example 10.3
Write a word address program to profile mill the contour given in Example
10.2. Additionally, include statements for drilling the holes shown in Figure
10.8. Use the CNC tool and operations sheet as an aid in writing the program.
Figure 10.8
Tool center coordinates for profiling the contour.
The tool center coordinates for profiling the contour were calculated in
Example 10.2 and will be used in the program that follows.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click ; click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 10.4
Write a word address program for milling the inside and outside of the part
shown in Figure 10.9.
Figure 10.9
Milling the inside and outside of the part shown.
Setup Notes
1. Set X0Y0 at the lower left-hand corner.
3. For inside machining the part is held by two clamps against three pins.
5. Clamp the part from the inside and remove the outside clamps.
Inside machining
Outside machining
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click ; click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 10.5
The metric part illustrated in Figure 10.10 is to be machined. Write a word
address program to carry out the operations as outlined in the CNC tool and
operations sheet.
Setup Notes
1. Set X0Y0 at the lower left-hand corner.
3. The part is roughed and finished in the slot by holding the blank against
three pins by two clamps.
4. For outside machining, stop the machine, place a clamp from inside, and
remove outside clamps.
Inside machining
Outside machining
Figure 10.12
Clamp.
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click ; click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 10.6
A .250-in. deep pocket is to be machined in the part shown in Figure 10.13.
Write a word address program for executing the operation per the CNC tool
and operations sheet.
Setup Notes
1. Set X0Y0 at the lower left-hand corner.
3. The part is held in a vise against a stop on the left. The outside profile is
assumed to be finished.
Outside machining
Figure 10.13
Print of part with .250 in. deep pocket.
Figure 10.14
Tool paths for roughing and finishing the pocket.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click ; click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
1. Program number/headings
4. Profiling operation 1
5. Machine stop
7. Profiling operation 2
The machine home reference point is a suggested location. The true location
must be determined at the time of setup.
Use the Predator simulation software to write and verify these exercise
programs.
Figure 10.15
Print and tool paths for producing the part for 10.1.
Setup Notes:
1. Set X0Y0 at the lower left-hand corner.
Figure 10.16
Print and tool paths for producing the part for 10.2.
Setup Notes:
Setup Notes:
4. For outside machining, stop the machine, place a clamp from the
inside, and remove outside clamps and pins. Finish as required.
Inside machining
Outside machining
Figure 10.17
Print and tool paths for producing the part for 10.3.
Figure 10.19
Clamp.
Figure 10.20
Print and tool paths for producing the part for 10.4.
Setup Notes:
3. For inside machining, the part is held by two clamps against three
pins.
4. For outside machining, shop the machine. Clamp the part from the
inside and remove the outside clamps and pins.
Inside machining
Outside machining
Setup Notes:
3. For inside machining, the part is held by two clamps against three
pins.
4. For outside machining, shop the machine. Clamp the part from the
inside and remove the outside clamps and pins.
Outside machining
Inside machining
Setup Notes:
Setup Notes:
General Syntax
Note
The plane selection is modal and will stay in effect for all subsequent circular
interpolation commands until canceled by another plane selection word.
Below are the word address commands for circular interpolation on a vertical
milling machine under the control of a Fanuc 6M. The programmer should
take care that the following operations have been performed prior to issuing a
circular interpolation command:
2. The tool has been positioned at the starting point of the arc.
General Syntax
Circular Profile Milling (Absolute
Coordinates)—Clockwise
G2 Xn Yn In Jn (XY plane)
G2 Specifies the circular interpolation in the clockwise direction.
Specifies the absolute ± X distance to the tool center at the end of the arc
Xn
cut.
Specifies the absolute ± Y distance to the tool center at the end of the arc
Yn
cut.
Specifies the incremental ± X distance from the center of the tool at the
In
start of the arc to the center of the arc.
Specifies the incremental ± Y distance from the tool center at the start of
Jn
the arc to the center of the arc.
Specifies the absolute ± Z distance to the tool center at the end of the arc
Zn
cut (for XZ- or YZ-plane selection).
Specifies the incremental ± Z distance from the tool center at the start of
Kn
the arc to the center of the arc (for XZ- or YZ-plane selection).
General Syntax
Circular Profile Milling (Absolute
Coordinates)—Counterclockwise
G2 Xn Yn In Jn (XY plane)
G3 Specifies the circular interpolation in the counterclockwise direction.
Specifies the absolute ± X distance to the tool center at the end of the arc
Xn
cut.
Specifies the absolute ± Y distance to the tool center at the end of the arc
Yn
cut.
Specifies the incremental ± X distance from the center of the tool at the
In
start of the arc to the center of the arc.
Specifies the incremental ± Y distance from the tool center at the start of
Jn
the arc to the center of the arc.
Specifies the absolute ± Z distance to the tool center at the end of the arc
Zn
(for XZ- or YZ-plane selection).
Kn Specifies the incremental ± Z distance from the tool center at the start of
the arc to the center of the arc (for XZ- or YZ-plane selection).
Specifies the incremental ± Y distance from the tool center at the start of
Jn
the arc to the center of the arc.
Specifies the absolute ± Z distance from the tool center at the start of the
Zn
arc to the tool center at the end of the arc (for XZ- or YZ-plane selection).
Specifies the incremental ± Z distance from the tool center at the start of
Kn
the arc to the center of the arc (for XZ- or YZ-plane selection).
Example 11.1
Write the appropriate plane selection, linear cut to position, and circular
interpolation commands for profiling the arc shown in Figure 11.1 in the
absolute coordinate mode.
G90
G17
ΔX ΔY X
Figure 11.2
Profiling a 30° arc-absolute coordinates.
G90
G17
ΔX Y X Y
ΔX=.875 cos (30)=.7578 ΔY=.875 sin (30)=.4375 3+.7578=3.7578 −2+.438=−
Example 11.3
Incremental coordinates are used when cutting the circular arc shown in
Figure 11.3. Write the necessary plane selection, linear cut, and circular
interpolation commands.
Figure 11.3
Profiling a 150° arc-incremental coordinate mode.
G91
G17
G1 X1.5 F6.
ΔX ΔY X Y
1. Connect line 1 between the arc starting point and ending point.
Figure 11.4
Direct radius specification.
General Syntax
Circular Profile Milling
(Incremental Coordinates)
G2(G3) Xn Yn Rn (XY plane)
G2 Specifies the circular interpolation in the clockwise direction.
G3 Specifies the circular interpolation in the counterclockwise direction.
Specifies the incremental ± X distance to the tool center at the start of the
Xn
arc to the tool center at the end of the arc cut.
Specifies the incremental ± Y distance to the tool center at the start of the
Yn
arc to the tool center at the end of the arc cut.
Specifies the incremental ± Z distance from the tool center at the start of
Zn the arc to the tool center at the end of the arc cut (for XZ- or YZ-plane
selection).
Specifies the radius of the tool path when the arc is cut. +n is the tool
Rn path radius from center 1 (for arcs < 180°). −n is the tool path radius
from center 2 (for arcs > 180°).
Note
Full circles cannot be machined using the R command. For these cases I and J
must be programmed.
Example 11.4
Code the direct radius command to machine the circular arcs shown in
Figures 11.5 and 11.6. A feed rate of 2 ipm is to be used.
Figure 11.5
Profiling an arc greater than 180° by direct radius.
Figure 11.6
Profiling an arc less than 180° by direct radius.
11.6 Profiling at Constant Feed Rate
To achieve the required surface finish and/or machining characteristics for a
material, it is often necessary to maintain a constant feed rate while profiling
a contour. During linear interpolation operations, the distance traveled at the
center of the tool is the same as that traveled at the edge of the tool. However,
for outside circular motion the distance traveled by the tool center is greater
than that traveled by the tool’s edge, because the tool center follows the
longer arc based on the tool path radius, just as the tool edge follows the
shorter arc based on the part radius. Because the center of the tool must travel
a longer distance, the feed rate of the tool center must be adjusted upward. A
formula is used to adjust the feed rate of the tool center so that a constant feed
rate is maintained on the periphery of the tool as it moves from a linear cut to
a circular cut.
Example 11.5
A .500-DIA end mill is to be used to machine a radius of 1 in. See Figure
11.7. A constant feed rate of 5 ipm on the tool periphery is to be maintained.
Therefore, a feed rate of 6.25 ipm for the tool center will ensure that the tool
maintains a feed rate of 5 ipm on its periphery when machining a 1.25R arc.
11.7 Determining Cutter Offsets for
Line–Arc Profiles
Right-triangle trigonometry is applied when calculating the locations of the
tool center as it moves from a line to an arc, and vice versa. Some of the most
common interface cases are illustrated in Figures 11.8 through 11.10.
Figure 11.8
Line–arc interface case 1.
Figure 11.9
Line–arc interface case 2.
Figure 11.10
Line–arc interface case 3.
Example 11.6
Determine the coordinates for specifying circular interpolation of the profile
shown in Figure 11.11. Use the coordinates to write for machining the
profile.
Figure 11.11
Print and tool path for profiling the part.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the folder,
and run the file:
Example 11.7
The slot shown in Figure 11.12 is to be machined per the CNC tool and
operations sheet. Write the required word address program in absolute
coordinates.
Figure 11.12
Print and tool paths for producing the part of Example 11.7.
Setup Notes
1. Set X0Y0 at the lower left-hand corner.
3. Finish the slot by holding the part in a vise and banking it against a stop
on the left.
CNC Tool and Operations Sheet
Speed Feed
Tool Operations Tooling
(rpm) (ipm)
Finish slot to depth .10 .25 DIA* stub end
1 2000 6
in. mill
*DIA indicates diameter.
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Open Predator’s Virtual CNC
Click ; Click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 11.8
Given the part shown in Figure 11.13, write a word address program in
absolute coordinates to execute the hole and profiling operations as specified
in the CNC tool and operations sheet.
Setup Notes
1. Set X0Y0 at the center of the part.
3. Finish the part by holding the blank in a vise a minimum of 3 in. above
the jaws. Bank against a stop on the left.
4. The blank is supplied with 2 in. square dimension completed. See
Figures 11.14 and 11.15
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click ; click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 11.9
Write a word address program in absolute coordinates for roughing and
finishing the contour shown in Figure 11.16. Follow the instructions specified
in the CNC tool and operations sheet.
Figure 11.16
Print the part of Example 11.9.
Figure 11.17
Tool paths for operations 1 through 4.
Setup Notes
1. The blank for the part is 65 mm 3 38 mm 3 6 mm.
3. For inside machining, the part is held by two clamps against three pins.
4. For outside machining, stop the machine, clamp the part from the inside,
and remove the outside clamps and pins. Finish as required. See Figures
11.17.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click ; click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
1. Program number/headings
5. Machine stop
Use the Predator simulation software to write and verify these exercise
programs.
Figure 11.18
Print and tool paths for producing the part for 11.1.
Setup Notes
1. Set X0Y0 at the upper left-hand corner.
4. Stop the machine after using tool 1. Hold down the part by three
3/8 screws thru holes that have been drilled. Remove three pins and
two clamps. Finish contour.
.5 DIA end
2 Profile contour as required 1000 4
mill
*DIA indicates diameter.
Figure 11.19
Pins and clamps required for operations 1 and 2.
Use the coordinate table below as an aid for determining the cutter
locations.
Position ΔX ΔY X Y I J
A
B
C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
The CNC program for the part shown in Figure 11.20 has been coded.
Using the coordinate chart format given in Exercise 11.1, provide the
calculations needed for determining the cutter locations.
Figure 11.20
Print and tool paths for producing the part for 11.2.
O1111
N0040 T1 M6
N0070 M8
N0090 Y−.75
N0150 M9
N0170 T2 M6
N0200 M8
N0230 X4.75
N0240 Y0
N0270 Y−3.6036
N0290 X.75
N0310 G1 Y−.8964
N0340 M9
N0360 M30
Setup Notes
1. Set X0Y0 at the center of the part.
2. Z0 is the top of the part.
3. Finish all hole operations by holding the part in a vise and banking
against a stop on the left.
4. The blank is supplied with 2.5 in. square dimension completed. See
Figures 11.14 and 11.15.
Figure 11.22
Print and tool paths for producing the part for 11.4
Setup Notes
1. The blank for the part is 72 mm × 42 mm × 5 mm.
3. The part is roughed and finished from inside by holding the blank
against three pins by two clamps.
4. For outside operations, stop the machine. Place clamps from inside
and remove outside clamps and pins. Finish as required. See Figure
11.23.
Figure 11.23
Tool paths for inside and outside operations.
Setup Notes
1. The blank size is 4.25 in. × 2.125 in. × .5 in.
4. Hold the blank against three pins by two clamps. See Figure 11.25.
Figure 11.26
Tool paths for operation 1.
Figure 11.27
Tool paths for operation 2a.
Figure 11.28
Tool paths for operation 2b.
Figure 11.29
Tool paths for operation 2c.
Figure 11.30
Tool paths for operation 2d.
Setup Notes
1. The blank has size 5.125 in. × 6.875 in. × .25 in.
5. Hold the blank against three pins by four clamps. See Figure 11.32.
6. After tool 1 finishes the inside contour, stop the machine. Reclamp
from the inside and remove outside clamps and (3) pins. Finish part
complete. See Figures 11.33 and 11.34.
Figure 11.33
Tool path to finish inside profile.
Figure 11.34
Tool path to finish outside profile.
2. Because the part’s geometry, and not the tool center, is programmed, the
same program can be used for a variety of different cutter diameters.
4. The first move for an inside cut should be to a location away from an
inside corner in order to prevent the cutter from notching the part. See
Figure 12.5.
5. A step-down cut smaller than the radius of the cutter will result in
overcutting or notching the part. See Figure 12.6.
Figure 12.4
Offset vectors generated by MCU control when cutter diameter
compensation is active.
Figure 12.5
Ramp on errors.
Figure 12.6
Step-down error.
General Syntax
Cutter Diameter Compensation Left
—(Conventional Milling)
G41 Xn Yn Dn (XY plane)
Directs the controller to offset the tool (ramp on) to the left side of
G41 upward tool motion. The offset will occur on the next linear XY-axis
move.
Specifies the address in memory where the cutter radius offset value is
Dn stored. n indicates the number of the register containing the offset
value.
General Syntax
Cutter Diameter Compensation
Right—(Conventional Milling)
G42 Xn Yn Dn (XY plane)
Directs the controller to offset the tool (ramp on) to the right side of
G42 upward tool motion. The offset will occur on the next linear XY-axis
move.
Specifies the address in memory where the cutter radius offset value is
Dn stored. n indicates the number of the register containing the offset
value.
General Syntax
Cutter Diameter Compensation—
Cancel
G40 Xn Zn
Cancels cutter diameter compensation (G41 or G42). The controller will
G40 change the tool to an uncompensated position (ramp off) on the next
linear (G00 or G01) XY-axis move. A G02-G03 code cannot be
programmed to trigger a G40 move.
Note
1. More than one D code can be programmed with any tool to allow the
use of the same tool for executing rough and finish cuts. Furthermore,
this feature can be used to compensate for change in tool diameter due to
tool wear.
3. G41 and G42 are modal, which means they remain in effect for all
subsequent tool motions until canceled by a G40 word. G40 is also
modal and remains in effect until canceled by a G41/G42 word.
Example 12.1
Utilize cutter diameter compensation in writing code to profile the rectangle
shown in Figure 12.7.
Word address
Meaning
command
G90 G0 X–11.
Rapid move to position ②.
Y6. Z.1S800
G1 Z–.5 M03
Plunge to –.5 in. Spindle on (CW).
F10.
G41 X–10.5 Ramp on to left of upward tool motion on next move to ③.
D21 Offset tool by radius value in address D21.
1 Cut to ④ at feed rate 10.
Y–6. Cut to ⑤.
X–10. Cut to ⑥.
Y 6.5 Cut to ⑦.
G0 G40 Y7. Ramp off to the next move to ⑧.
Z.1 Rapid move to .1 in. above the part.
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 12.2
Use cutter diameter compensation to machine the outside of the circle in
Figure 12.8.
Word
address Meaning
command
G90 G0 X–2.
Y6. S400 Rapid move to position ②.
G1 Z–.6 M03
Plunge to –.6 in. Spindle on (CW).
F10.
Ramp on to the left of upward tool motion on next move to
G41 X–1. D20
③. Offset tool by radius value in address D20.
G1 X0 Cut to ④.
G2 X0 Y6. J-
Cut arc to ⑤.
6.
G1 X1. Cut to ⑥.
G0 G40 X2. Ramp off to the next move to ⑦.
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 12.3
The inside circle shown in Figure 12.9 is to be machined via cutter diameter
compensation. Use this technique for executing operation 1 (rough profiling)
and operation 2 (finish profiling). To complete operation 2 see Figure 12.10.
Figure 12.9
Print and tool path for operation 1.
Figure 12.10
Print and tool path for operation 2.
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 12.4
The following is correct:
Word address
Meaning
command
G00 G41 X2. Y3.
Ramp on at X2. Y3.
D05
Z.1 Rapid move to .1 in. above part.
G01 Z–.5 F2. Plunge to –.5 in. at feed rate.
First XY cut will not be made with new compensation
X4.
applied.
12.8 Cutter Diameter Compensation
Interruptions
Cutter diameter compensation will be interrupted by the following
conditions:
Condition Result
Two or more blocks in a G41 or G42 cutting An error in the last cutting
sequence do not contain motion in the proper block in the proper plane will
plane. occur.
Example 12.5
Compensation is interrupted by two or more blocks containing only the
codes:
Dwell: G4
M Code: M5
G Code: G90
S Code: S1500
Condition Result
A G28, G29, or G92 is Compensation is temporarily canceled. It can be
programmed in a G41 or reestablished with any subsequent blocks
G42 cutting sequence. containing motions in the proper plane.
Example 12.6
Write a word address program for profile milling the part shown in Figure
12.11. Apply cutter diameter compensation and use two different register
numbers in the cutter offset address D.
Figure 12.11
Print and tool path for Example 12.6.
.5 DIA DIA
Finish
2 end 800 6 22 =
profile
mill .25
Dn is the address in the control memory where the cutter radius offset value
is stored. n (XX) is the number of the register containing the offset value.
Run the simulation software to see a solid model animation of this machining
example.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 12.7
Write a word address program to finish the inside and outside boundaries of
the part shown in Figure 12.12. Use cutter diameter compensation to program
the tool paths.
Figure 12.12
Print and tool paths for Example 12.7.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
Example 12.8
Use cutter diameter compensation and a program to profile mill the outside
and inside contours of the part shown in Figure 12.13.
If you have not already done so, download the Predator data files onto
your computer by clicking on the Student Simulations for Introduction
to Computer Numerical Control (CNC) 5e link at the Companion
Website at http://www.pearsonhighered.com/valentino
Click click
Navigate to the Predator data files folder on your computer, open the
folder, and run the file:
6. The first in-plane tool motion command following a G41 or G42 code
must be equal to or greater than the cutter radius.
8. Care must be used to avoid notching the part when cutting inside
corners or step-downs.
Review Exercises
For each of the exercises in this chapter, write a CNC program using cutter
diameter compensation. Programs should contain the following general
format:
4. Profiling operation 1
5. Machine stop
6. Change to tool 2
7. Profiling operation 2
Use the Predator simulation software to write and verify these exercise
programs.
Figure 12.14
Print and tool paths for 12.1.
Figure 12.16
Print and tool path for roughing cut.
Figure 12.17
Print and tool path for finishing cut.
θ=tan−1(hd)+sin−1(R2h2+d2¯)ΔX=Rsin(θ)
ΔJ=Rcos(θ)ΔY= R(1−cos(θ))
It should be noted that both the main program and each subprogram are
separate programs that must be stored in the MCU’s memory prior to
execution.
Figure 13.1
Subprograms are used to machine repeat patterns in a part.
Figure 13.2
Setups for executing multiple machining via subprograms.
General Syntax
Calling a Subprogram from a Main
Program
G00 Xn Yn
M98 Pn Ln
G00 Rapid movement of tool to the X Y location where the subprogram is
n n
Xn
Yn to be executed.
M98 Calls for a jump to the subprogram.
n is a one-to-four-digit number of the subprogram in memory. The
Pn number, n, is usually preceded by the letter, O (EIA), format or : (ISO)
format when stored in memory.
n is the number of times to repeat the call of the subprogram. If
Ln
omitted, the subprogram is repeated only once.
Note
It is also possible to program a motion command in the same block as an
M98 to M99 code. Transfer will occur after the motion command has been
completed.
Example 13.1
The process by which a main program transfers to a subprogram and vice
versa is illustrated in Figure 13.3 below.
Figure 13.3
A main program accessing a single subprogram.
Figure 13.4
A main program accessing two levels of subprograms.
Example 13.2
The general programming shown in Figure 13.4 illustrates the action that
results when a main program accesses two levels of subprograms.
13.5 Additional Subprogram
Control Features
Programmers can utilize other important features when writing subprograms
for Fanuc controllers.
Example 13.3
Coding a M99 P (block#) in the main program. See Figure 13.5.
If Pn is omitted, control will return to the top of the main program and
execution will continue.
Figure 13.5
Coding an M99 P (block#) in the main program.
2. M99 Pn may also be coded in the subprogram with n as a one- to four-
digit number of a block in the main program. Upon encountering this
code in the subprogram, the controller will transfer to the block in the
main program whose number has been coded.
Example 13.4
Coding a M99 P (block#) in the subprogram. See Figure 13.6.
3. The operator has the option directing the controller to skip the execution
of selected blocks in a program. Any block to be skipped has a slash (/)
coded as the first character. The appropriate skip switch on the machine
panel must also be turned on. Refer to Chapter 4, Section 4.9.
Skip switches are useful when a trial or gauge run is to be made and checked
out. After prove-out the skip switch may be turned off and the program
continuously runs in order to cut multiple parts.
Figure 13.6
Coding an M99 P (block#) in the subprogram.
Figure 13.7
Coding a skip switch (/) in the main program.
Example 13.5
Coding a skip switch character (/) in the main program. See Figure 13.7.
13.6 General Rules for
Subprogramming
Some general conditions will apply when writing subprograms with Fanuc
controllers.
3. If the ISO coding system is used, a colon (:) is entered as the address for
specifying program numbers.
4. The mode of motion (G90 or G91) must be reset to the main program
mode just prior to or just after transfer to the main program, which can
occur, for example, if the main program is set to G90 (absolute) mode
and the subprogram is set to G91 (incremental) mode. In such cases a
G90 block must be inserted at the end of the subprogram, but it could
also appear in the main program as the first block to be processed after
transfer from the subprogram.
Setup Notes
1. Set X0 Y0 at the lower left-hand corner.
N0070 T1M6
N0090 M8
N0130 X2.
N0140 X.5 Y1.
N0150 X1.
N0160 X1.5
N0170 X2.
N0190 X1.
N0200 X1.5
N0210 X2.
N0230 X1.
N0240 X1.5
N0250 X2.
N0260 G80
N0280 M9
N0300 M30
Run the simulation software to see a solid model animation of this machining
example.
Place the DATA CD enclosed at the back of this text into the CD drive
Click click
Example 13.7
Use a main program and a subprogram to drill the hole patterns shown in
Figure 13.9.
Setup Notes
1. Set X0 Y0 at the lower left-hand corner.
Place the DATA CD enclosed at the back of this text into the CD drive
Open Predator’s Virtual CNC
Click click
Example 13.8
Write a program for milling the part shown in Figure 13.10. Use the
technique of subprogramming.
Figure 13.10
Print and tool paths for Example 13.8.
Setup Notes
1. Set X0 Y0 at the upper left-hand corner.
5. After the inside patterns are finished, stop the machine and reclamp
from the inside. Remove the outside clamps and finish the outside
complete.
Figure 13.11
Pins and clamps for inside machining.
Place the DATA CD enclosed at the back of this text into the CD drive
Click click
Example 13.9
The multiple-part shapes shown in Figure 13.13 are to be machined. Write a
word address program for executing the operations listed in the CNC tool and
operations sheet, using main and subprograms.
Setup Notes
1. Set X0 Y0 is given on the fixture.
3. The blank for the part is turned on the lathe to the dimensions 3 1/8D ×
.5
Remove the pins and machine the blanks as required. See Figure
13.12.
Figure 13.12
Four up fixture for Example 13.9.
Place the DATA CD enclosed at the back of this text into the CD drive
Click ; click
Click on the CD drive; open and run the file:
4. The main program and subprogram are separate programs. Each must be
assigned a unique program number and title in the MCU.
Review Exercises
For each of the parts given in this section, write a main program and the
appropriate subprograms required for executing the machining operations.
Use the data table information in each case for specifying operations, tooling,
tool speeds, and tool feeds.
Use the Predator simulation software to write and verify these exercise
programs.
Setup Notes
1. X0 Y0 at the lower left-hand corner.
Setup Notes
1. X0 Y0 at the upper-left hand corner.
3. The blank is supplied in size 5.125 in. × 3.375 in. × .25 in.
5. After the inside contours are finished, stop the machine and
reclamp from the inside. Remove the outside clamps and finish the
outside complete.
5. After the inside contours are finished, stop the machine and
reclamp from the inside. Remove the outside clamps and finish the
outside complete.
Figure 13.17
Print for 13.4.
Setup Notes
1. Set X0 Y0 at the lower left-hand corner.
4. The blank is supplied as size 5.0 in. × 2.6 in. × 1.0 in.
Setup Notes
1. Set X0 Y0 as shown on the fixture illustration.
3. After operation 1, stop the machine and add 1/4-20 screws thru
holes. Finish setup complete.
4. The blank is supplied as size 6.0 in. × 3.5 in. × .125 in.
Figure 13.19
Print, fixturing, and tool paths for operations 1, 2, and 3.
4. State the different types of tooling used for CNC lathe operations.
7. Understand the importance using right hand, left hand, neutral tooling,
and rake angles for cutting materials.
14.2 Introduction
This chapter considers the basic elements of modern CNC lathes and turning
centers. The lathe axes are discussed and illustrated. The most important lathe
operations are examined, together with the type of tooling required for each
operation. Speeds, feeds, and depth of cut for lathe work are important for
both prolonging tool life and producing a quality cut. Thus, a concise
presentation of these parameters and a brief table for various materials are
given. The concept of right, left, and neutral tooling is fundamental and a
brief discussion is given. The chapter ends with a discussion of rake angles
and selecting the proper rake angle for cutting different materials.
14.3 Backround on the CNC Lathe
The CNC lathe is a machine tool designed to remove material from stock that
is clamped and rotated around the spindle axis. Most metal cutting is done
with a sharp single-point cutting tool. Drilling, reaming, tapping, turning, and
boring are operations performed on a CNC lathe. Modern CNC lathes use a
chuck attached to the spindle. The chuck grips and rotates the work. A turret
mechanism is often used to hold and index cutting tools that are called by a
word address part program. Some machines employ two turrets: front and
rear. Tools may also be mounted on the slide. A front turret is built to move
tools from below the spindle centerline up to the work. A rear turret, on the
other hand, moves
Figure 14.1
Components of the modern CNC lathe.
tools from above the spindle centerline down to the work. Machines equipped
with both front and rear turrets can execute cutting operations simultaneously
from above and below the work. Refer to Figure 14.1.
A two-spindle-opposed-type CNC lathe is composed of two spindles facing
each other and two turrets. It is capable of machining the front and the back
of the part by moving it from one spindle to the other.
The CNC vertical turret lathe is similar to a horizontal machine, but the
spindle is vertical and perpendicular to the chuck. It is designed to machine
work that is large and/or heavy. The automatic screw machine is an
automated turret lathe especially designed to produce high-volume, low-cost
parts. A metal rod is fed into the machine and turned to meet the
manufacturer’s specifications. A “live tooling” mechanism attached to the
turret has its own motor and spindle for holding and rotating milling tools.
Lathes equipped with live tooling can tap side holes, mill hexes, flats, or
similar patterns on the part circumference while the lathe spindle remains
locked. This adds flexibility by reducing setup time for secondary operations.
Bed—The bed aligns and rigidly supports the turret, tailstock, ways, and
other key components of the lathe. The bed is designed to transfer
vibrations away from the cutting area. Most CNC lathes have slanted
beds to allow chips and coolant to fall away easily.
Be sure the machine has completely stopped before entering work area.
Wear ANSI-approved safety goggles. Secure all loose clothing. Put long
hair up.
Observe the following practices when cleaning the machine:
Check all seating areas on the tool holder to be sure each tool rests
solidly.
Revolve the spindle by hand before starting any operation. Check to see
that the chuck jaws work and clear the carriage.
A four “independent jaw” chuck can clamp on the work by moving each jaw
independent of the others. This chuck exerts a stronger hold on the work and
it has the ability to center nonround shapes (squares, rectangles) exactly.
A lathe faceplate is used for work of irregular shape that cannot be held in a
chuck or mounted between centers. It is mounted on the headstock of the
lathe instead of the chuck. A fixture or any other means of holding the part to
the faceplate is used. In the arrangement below, the work is attached to an
angle plate by bolts, and the angle plate is fastened to the faceplate by bolts
and T-nuts. Counterweights must be used to offset the throw when a heavy
piece of work, such as an angle plate, is mounted off center in order to reduce
vibration and chatter, and to guarantee a round shape.
The two main types of jaws used with the chuck are as follows:
A collet chuck is used when high precision and speed are needed for
work of a small cross section. Cross sections normally do not exceed a
diameter of 1 in. A feed system usually feeds the bar stock. Collet
shapes include round, hexagonal, square, and custom shapes.
Turret—Holds the cutting tool and replaces on old tool with a new tool
(indexes) during a tool change.
Carriage—Moves the cutting tool into the revolving work; contains the
saddle, cross slide, and apron.
Slant Bed—Supports all the components listed and provides a path for
chips and lubricant as they fall.
and then it proceeds to the proper coordinates programmed for cutting the
part with the new tool. For turning centers with programmable tailstocks, the
tailstock may have to be moved back before a tool change is executed. The
motion of the turret during a typical tool change operation is illustrated in
Figure 14.2.
14.4 CNC Lathe Axes of Motion
In this text we will only consider programming basic two-axis machine
motions when dealing with CNC lathes. The important axes are Z and X. The
Z axis is in the direction of the spindle. Positive +Z is motion away from the
spindle and work and negative –Z is motion toward the spindle and into the
work. The X axis controls the cross-slide movements. Positive +X is motion
away from the spindle centerline and negative –X is motion toward the
spindle centerline and into the work. Refer to Figure 14.3. In some machines
with programmable tailstocks, the W axis is used to designate the movement
of the tailstock which accounts for a third axis on these machines. More
complex turning centers may have a fourth axis.
14.5 Features of the Machine
Control Unit (MCU) Lathes
Specific details and features of MCUs vary from manufacturer to
manufacturer. This section provides a generic presentation of what is found
on most MCUs for lathes. Remember to consult the machine tool builder’s
manual for the detailed information relating to a particular MCU used.
In larger companies, it is the CNC setup person, not the programmer, who
sets up tooling, loads the job, and runs the first piece on the CNC machine. In
smaller operations, the programmer can be expected to get involved in some
or all of these tasks. To be more versatile, the programmer needs to acquire a
basic knowledge of the features of the MCU.
The MCU is divided into two types of operation panels: the control panel and
the machine panel.
The machine panel is designed and built by the machine tool builder. It
contains buttons and switches for controlling the physical behavior of the
CNC machine tool. Power
Figure 14.3
Typical machine axes for CNC lathes.
buttons turn the CNC lathe on and off. An emergency stop button stops all
machine motions. The operator moves a machine axis manually by turning a
handwheel. Dial controls can override programmed spindle speeds and feeds,
etc.
Control Panel On/Off power
Buttons
Program Button
Depression this button allows the operator to create new word address
part programs or see and edit existing programs at the CRT display.
This button is used in combination with the cursor position keys to enter
the tool offset page and place the cursor at a particular offset value that
is to be edited.
The operator presses this button to enter data, like tool offsets, into the
control’s memory.
Pressing one of these buttons positions the blinking cursor (left, right,
up, or down) on the CRT display. Data will be entered at the current
cursor position.
The operator presses this button to store a block (one line) of word
address code in the control’s memory.
The Reset Key
The operator presses this key to return the cursor to the start of the
program when editing. The key is also used to stop the execution of a
part program that has a problem. When this happens all the program’s
commands in the look-ahead buffer will be cleared. It should be noted
that if the program is executed immediately after reset is pressed,
problems may arise as it will run with the commands in the look-ahead
buffer skipped. Pressing this key when the CNC is running in alarm state
will cancel the alarm.
Setting the switch to EDIT mode enables the operator to insert, save,
delete, and edit word address part programs at the CRT display using the
control panel keypad. The operator can also move to a particular line in
a program and begin executing it from that point.
With the switch set to MEMORY, the operator can access the program
number of a word address part program that is stored in the control's
memory. Pressing the START CYCLE button will direct the control to
execute the program in the automatic cycle mode.
The operator selects TAPE mode to input a word address part program
from external units like a PC, diskette, Zip diskette, or CD-rom using a
RS-232 cable.
When the switch is set to Manual Data Input or MDI mode, setup data
like tool length offsets, spindle speed for edge finding, and fixture
offsets can be entered in. Pressing the START CYCLE button will direct
the control to enter the data into memory.
JOG mode puts the CNC machine tool into a manual mode of operation.
In this mode the operator can use several devices on the machine panel
to manually control its movement. For example, motion along each of
the machine axes can be controlled by pressing the + or − JOG buttons.
Spindle speed can also be regulated, etc.
The HANDLE setting enables the operator to manually jog each of the
machine axes by turning the handwheel on the machine panel.
The HOME setting enables the operator to return each of the machine
axes to their extreme travel limit or home. Pressing the HOME button
will direct the control to home the CNC machine.
The operator uses this switch to select the machine axis (X or Z) that is
to be jogged by using the jog buttons or the handwheel.
The rate switch controls the distance the machine moves along an axis
with a single push of the jog button or a single click of the handwheel.
MOVEMENT ALONG A MACHINE AXIS CAUSED BY A
SINGLE BUTTON PUSH OR WHEEL CLICK
RATE
OPERATING IN METRIC OPERATING IN INCH
MODE MODE
×1 0.001 mm 0.0001 in.
×10 0.01 mm 0.001 in.
×100 0.1 mm 0.01 in.
Conditional Switches
The way the CNC machine tool operates in manual and auto mode is also
controlled by a set of on/off toggle switches. They must be set correctly for
the CNC machine to execute a part program in the manner intended.
The operator sets this to ON to stop movement along any machine axis
when a part program is executed by the control. When in effect, the
CRT will display the programmed movements along the axes, the
spindle will run, and other machine functions will operate normally.
Machine lock is used to check a new part program.
Any block in a part program that has a slash (/) as the first character will
not be executed when this switch set to ON.
The operator uses this switch to select the chuck grip direction when the
foot petal is used.
The INT setting causes the jaws to move outward away from the
spindle to grip the work ID.
The EXT setting causes the jaws to move inward toward the
spindle to grip the work OD.
These buttons are active when the mode switch is set to JOG mode.
Power to the CNC machine will be turned off. Control power will
remain.
Select HOME mode and press the HOME button to home the
machine.
Press the CYCLE START button to start the program again from
the beginning.
14.6 Basic Lathe Operations
This text will consider programming the most basic lathe operations: facing,
turning, grooving, parting, drilling, boring, and threading. Some of these cuts
are performed on both the outside surface of the part (OD operations) and the
inside surface (ID operations). These are illustrated in Figures 14.5 through
14.11.
Facing
This operation involves cutting the end of the stock such that the resulting
end surface is perpendicular or square with respect to the stock centerline. A
smooth, flat end surface should be produced. The tool is fed into the work in
a direction perpendicular to the stock centerline.
Figure 14.5
OD facing.
Figure 14.6
Turning.
Figure 14.7
Grooving.
Figure 14.8
Parting.
Figure 14.9
Drilling.
Figure 14.10
Boring.
Figure 14.11
Threading.
Turning
Turning involves the removal of material from the outside of rotating stock.
Rough turning is usually done first in multiple passes along the Z axis. For
each X-axis depth value, the tool removes stock as it travels along the Z axis
at feed rate. Different profile shapes can be created including tapers,
contours, and shoulders.
Chamfer
A chamfer is a smooth beveled edge machined on the inside or outside of a
finished diameter. A chamfer breaks a sharp edge and makes the finished
part easier to assemble. Normally, the chamfer angle is 45° with the chamfer
distance between .01 and .25 in. The servo motors move the tools
simultaneously in the X and Z directions at feed rate to cut the chamfer. The
end of a shaft should be chamfered before threading to prevent fouling the
threads with chips.
Grooving
OD and ID grooving requires that the tool be fed into the work in a direction
perpendicular to the work’s centerline along the X axis. In face grooving, the
tool is fed into the work in a direction parallel to the work’s centerline along
the Z axis. The cutting edge of the tool is on its end. Grooving for thread
relief is usually done prior to threading to ensure the resulting threads will be
fully engaged up to the shoulder.
Parting
Parting involves cutting off the part from the main bar stock. Parting is done
with a cutoff tool that is tapered and has a cutting edge at its end. The tool is
fed into the part in a direction perpendicular to its centerline until the part is
completely separated from the main bar stock.
Drilling
The drill is usually mounted in a drill chuck or held in a bushing and fed into
the rotating work along the Z axis. A center drill should be applied before
using a high-speed steel twist drill, but it’s not necessary if a spade drill or
carbide insert drill is selected. Spade and carbide drills, however, need higher
horsepower and a high-pressure coolant system to operate.
Boring
Boring is an internal turning operation. Rough boring is usually done first in
multiple passes along the Z axis. For each X-axis depth value, the tool
removes stock as it travels along the Z axis at feed rate.
In finish turning the servo motors move the tool simultaneously in the X and
Z directions at feed rate in such a way that the finished shape is cut. The
actual path followed by the tool is a series of straight-line approximations
generated by software algorithms. Boring can be used to more accurately size
and true a hole, as well as create internal tapers and contours.
Threading
This operation involves cutting helical grooves on the outside or inside
surface of a cylinder or cone. Grooves or threads have a specific angle.
Unified threads have an angle of 60°. The distance between teeth is called the
thread pitch. The tool usually is fed into the material at a cut angle of 29° in a
direction perpendicular to the part’s centerline along the X axis and at feed
rate equal to the thread pitch.
14.7 Tooling for CNC Lathe
Operations
Modern CNC turning centers utilize tool holders with replaceable/indexable
inserts. Tool holders come in a variety of styles. Each style is suited for a
particular type of cutting operation as illustrated in Figure 14.12.
Figure 14.13
Tool nose radius.
Insert Material
With regard to lathe operation, there are four important types of materials
used for inserts.
Cemented Carbides
Cemented carbides are formed by using tungsten carbide sintered in a cobalt
matrix. Some grades contain titanium carbide, tantalum carbide, or other
materials as additives. Their chief advantage is the ability to cut at higher
speeds and feeds. Carbide tools cut 5–10 times faster than high-speed steel
tools. They offer excellent resistance to consistent high heat, thermal shock,
impact, wear, and abrasion. They also produce lower surface roughness for
finishing cuts.
Coated Carbides
The wear resistance of cemented carbides can be improved by 200–500% by
coating them with wear-resistant materials. Coating materials include
titanium carbide and aluminum oxide (a ceramic). The best resistance to
abrasion wear for speeds below 500 sfpm is achieved when titanium carbide
is used. For higher speeds, resistance to the chemical reaction between the
tool and workpiece is afforded by ceramic-coated inserts. Both coatings offer
excellent performance on steels, cast iron, and nonferrous materials.
Ceramics
A ceramic is a very hard material formed without metallic bonding. It
displays exceptional resistance to wear and heat load. The most popular
material for forming ceramics is aluminum oxide, but an additive such as
titanium oxide or titanium carbide is often used. Hard materials can be
machined at extremely high cutting speeds with relatively little loss in tool
life. In addition, the surface finish is better than with other cutting materials.
The main disadvantage with ceramics is that they have low resistance to
impact and shock. Thus, they can only be used in operations where impact
loading is low.
Diamonds
There are two main types of diamond cutting materials. Single-crystal natural
diamonds offer outstanding wear resistance but low shock resistance. Smaller
synthetic diamond crystals fused together at high temperature and pressure
into a carbide substrate form a material developed by GE under the name of
Compax. It displays good resistance to shock loading. Diamond tools offer
substantial improvements over carbides. Better surface finish and higher
cutting speeds with substantial improvements in tool life can be achieved.
Insert Shape
The seven basic shapes for turning operations in order of decreasing strength
are shown below.
Figure 14.14
Carbide insert turning tool.
Some important rules to be considered when selecting tooling for the lathe
operations are as follows (Figure 14-14):
For roughing, the most commonly used TNR values are: 364 in. to
116 in.
4. Select the largest boring bar diameter with the smallest possible
overhang to reduce deflection and vibration. A solid steel shank boring
bar can normally have an overhang of up to four times the diameter.
14.8 Cutting Speeds, Feeds, and
Depth of Cut for Lathe Operations
Cutting Speed
For lathe operations, tool speed is defined as the rate at which a point on the
circumference of the work passes the cutting tool. It is expressed in surface
feet per minute. See Figure 14.15.
Note, for drilling, reaming, and tapping, the Tool Diameter is used for
calculating the Spindle rpm. The Spindle rpm is input into the CNC program
since the spindle maintains a constant rpm level throughout these machining
operations.
Tool Feed
Tool feed is the rate at which the tool advances into the work per revolution
of the work. Table 14.2 lists approximate recommended feed rates for cutting
various materials. A more comprehensive listing of turning speeds and feeds
is given in Appendix C.
In machining a part, rough cuts are taken first. For this operation the DOC is
taken as large as possible with the feed reduced. Factors that influence DOC
in roughing are the horsepower of the CNC, the material and shape of the
insert, the rigidity of the work, and the feed.
For the one or two finishing cuts that follow roughing, a DOC is taken
relatively lightly with the feed adjusted to produce a required surface finish.
Below are listed recommended DOC values for insert tool nose radii when
executing finishing passes.
Tooling Nomenclature
Single-point turning and facing tools must have specific angles at their
cutting ends to ensure longer tool life and cutting efficiency, as shown in
Figure 14.17. The components of Figure 14.17 are as follows:
TNR: Tool nose radius for producing acceptable surface finish and
longer tool life.
BR: Back rake angle for directing the chips away from the work and
toward the tool holder. This is the angle made between the top face of
the carbide insert and the tool shank in the length direction.
Figure 14.16
The right-hand rule.
Figure 14.17
Single-point tool angles (angles shown are exaggerated for
emphasis).
SR: Side rake angle for directing chips away from the work and toward
the side. This is the angle made between the top face of the carbide
insert and the tool shank in the width direction.
SC: Side clearance angle for permitting the side of the tool to enter the
work.
EC: End clearance angle for permitting the end of the tool to enter the
work.
SCEA: Side cutting edge angle for improving the shear cut and
producing thinner chips when turning.
ECEA: End cutting edge angle for maintaining clearance between the
tool and the work during boring or facing operations.
Rake Angles and Cutting Force
As was stated previously, a tool’s rake angles help carry away chips. These
angles also help protect the cutting tool from excessive heating and abrasive
action. In general, positive rake angles tend to decrease the force with which
the tool cuts and negative rake angles increase the force. The decision to use
a positive or negative rake tool depends upon many factors; chief among
them is the material to be machined. A summary of the properties and use of
negative versus positive rake tools is given in Table 14.3.
It is also best to select the tool holder style that creates the largest possible
side cutting edge angle with respect to the work in order to produce thinner
chips at lower cutting edge temperatures and thus protect the tool nose from
excessive wear.
2. Most CNC lathes use turrets for holding, changing, and moving tools.
3. The CNC lathe machine axes of motion are: –Z along the spindle axis
and toward the spindle, +Z along the spindle axis away from the spindle,
–X transverse to the spindle axis and toward the spindle, and +X
transverse to the spindle axis and away from the spindle.
4. The seven most important lathe operations are facing, turning, grooving,
parting, drilling, boring, and threading.
5. Modern CNC lathes and turning centers utilize indexable insert cutting
tools.
6. Single-point turning and facing tools have their cutting edges set at
specific cutting angles to ensure longer tool life and greater cutting
efficiency.
7. Tool speed for lathes is the rate at which a point on the revolving
circumference of the work passes the cutting tool. It is expressed in
surface feet per minute (sfpm).
8. Tool feed is the rate at which the tool advances into the work per
revolution of the spindle. It is expressed in inches per revolution (ipr).
9. Depth of cut is the thickness of the material removed by the tool or the
radial distance in inches (in.) from the uncut surface of the stock to the
cut surface.
10. Right-handed cutting tools have their cutting edges on the right side and
are fed into the work from right to left. Left-handed tools have their
cutting edges on the left side and are fed into the work from left to right.
11. Negative rake angles are used for most turning operations involving
carbide insert cutting tools. Positive rake angles tend to decrease tool
force and are used with high-speed steel cutters on softer materials.
Review Exercises
1. 14.1. Identify and define the components of the CNC turning center.
Component Description/Function
A
B
C
D
E
F
G
H
I
J
2. 14.2.
1. What type of tool changer mechanisms are used on CNC lathes and
turning centers?
3. 14.3. What is the difference between a front turret and a rear turret?
a. Facing d. Parting
b. Turning e. Boring
c. Grooving f. Threading
1. Cemented carbides
2. Coated carbides
3. Ceramics
4. Diamonds
9. 14.9. List four important rules that should be followed when selecting
insert tooling.
1. Tool speed
2. Tool feed
3. Depth of cut
11. 14.11. Explain the difference between right- and left-hand cutting tools
and how they are used in OD turning operations.
12. 14.12. Match the terms on the left with the definitions on the right:
13. 14.13.
14. 14.14. What recommendations can be made regarding the rake angle
when selecting a tool holder for the following machining situations?
4. State the basic setup operations performed on the CNC lathe prior to
running a job.
5. Know the important preparatory (G) codes and miscellaneous (M) codes
used in programming lathe operations.
6. State the codes for specifying values of the spindle speed, tool feed, and
changing tools.
Because the tool nose radius (TNR) is so small, tool movements are not
normally programmed from the center of the tool nose. Instead, programmers
use TNR compensation, which allows tool movements to be programmed
directly from the part geometry. Important concepts of TNR, as well as
detailed TNR programming examples, are featured.
Use safety goggles, wear protective clothing, and put long hair up.
Set cutting speeds and feeds for each tool within the limits
recommended for the process. Adjust speeds and feeds during an
operation to obtain optimum machining conditions.
When loading, make sure the workpiece is free of burrs and foreign
particles.
Figure 15.2
The Cartesian coordinate system for rear turret CNC lathes.
15.4 Types of Tool Positioning
Modes (CNC Lathes)
CNC lathe programs can be written to move the tool in the following modes:
absolute, incremental, or mixed (incremental and absolute).
Absolute Positioning
When operating in this mode the new position of the tool is given by its X and
Z distances from a fixed home or origin (0, 0).
Incremental Positioning
When operating in this mode of programming, the new position of the tool is
specified by inputting its direction and distance from the last position
achieved. The address U is used to indicate incremental X-axis motion and
the address W is used to indicate incremental Z-axis movement.
Figure 15.5
Important locations for CNC lathes.
The machining origin is determined in such a way that when the turret is at
this location the longest tool is at least 1 in. from the face of the part in the Z
direction and 1 in. from the diameter of the stock. The control is zeroed out at
this location. The turret is then jogged to the reference point. The X and Z
locations of the machine origin from the reference point are recorded, and
these numbers are used in the “zero-offset” command.
The tool change position is a safe location the machine returns to when
indexing an old tool with a new tool. It is usually set at the machining origin.
The operator can manually home the turret by pressing the “return to
reference” button on the machine panel. This can be done, for example, if the
turret is not homed when the CNC lathe is turned on.
Program Zero
Program zero is a point from which all dimensions are defined in the part
program. The setup person uses tool offsets as a means of locating the
program zero with respect to the machining origin. Refer to Section 15.6 for
a discussion of tool offsets.
Machining Determination
After making a thorough study of the part print, the programmer plans the
machining sequence and the corresponding tooling required. See Figure
15.6A.
Figure 15.6A
A part production drawing for manufacturing the part SHAFT.
Figure 15.6B
The CNC tool and operations sheet for machining the part SHAFT.
The cutting sequence together with the required cutting tools is documented
on the CNC tool and operations sheet. See Figure 15.6B.
15.7 Setup Procedures for CNC
Lathes
The setup operation normally begins with the setup person securing the
required OD and ID tools in the turret as specified in CNC tool and
operations sheet. The part blank is loaded into the work-holding device (lathe
chuck or lathe collet). It is very important that the proper length of stock
extends beyond the work-holding device. If the overhand length is tools long,
excessive wobbling will occur when the part is machined, and if the length is
too short, the tool may collide with the work-holding device, or insufficient
room may be left for the cutoff tool to operate. The length of stock permitted
to extend beyond the work-holding device is specified by the programmer in
the setup sheet. Refer to Figure 15.7.
Figure 15.7
The CNC setup sheet for setting up the part SHAFT.
Tool offset
Point on tool programmed
measurements(s)
Figure 15.9
Inputting tool wear offsets.
Figure 15.10
Inputting tool offsets via the Q-setter.
It offers several advantages over the manual method and makes the job of
entering tool length offsets fast and accurate.
and touch off the surface. Set the controller to MD1 mode again, key in
G50Xd, and press ENTER. The POSITION-ABSOLUTE screen will now
display XdZ . See Figure 15.11.
Figure 15.12
Establishing the program zero with tool offsets input from the Q-
setter.
15.8 Important Preparatory
Functions (G Codes) for Lathes
The following modal and nonmodal G codes are important when
programming lathe operations.
G
Mode Specification
code
Rapid positioning mode. The tool is moved to the
G0 Modal
programmed XZ position at maximum feed rate.
Linear interpolation mode. The tool is moved in a straight-
G1 Modal
line path at programmed feed rate.
G2 Modal Circular interpolation clockwise (CW).
G3 Modal Circular interpolation counterclockwise (CCW).
G4 Nonmodal Programmed dwell.
Inch mode for all units. This code is entered at the start of
G20 Modal the CNC program in a separate block. It must appear before
a G50 block.
Metric mode for all units. This code is entered at the start of
G21 Modal the CNC program in a separate block. It must appear before
a G50 block.
G28 Nonmodal Return to tool reference point.
G50 Modal Maximum spindle speed setting for G96 mode.
or
Set machining origin at the current tool position.
G75 Nonmodal Grooving in the X axis.
G96 Modal Constant surface speed control (direct rpm).
G97 Modal Cancel G96.
G98 Modal Feed rate programmed in inches per revolution (ipr).
G99 Modal Feed rate programmed in inches per minute (ipm).
15.9 Important Miscellaneous
Functions (M Codes) for Lathes
The following miscellaneous functions are often used to initiate machine
functions not related to dimensional or axis movements.
M
Type Specification
code
M0 B Causes a program stop.
M3 A Turns spindle on clockwise (CW).
M4 A Turns spindle on counterclockwise (CCW).
M5 B Turns spindle off.
M8 A Turns external coolant on.
M9 B Turns coolant off.
Directs the system to end program processing, and reset the
M30 B
memory unit. This code must be the last statement in a program.
M41 A Shifts spindle into low-gear range.
M42 A Shifts spindle into intermediate-gear range.
M43 A Shifts spindle into high-gear range.
M68 A Clamps the chuck.
M69 B Opens the chuck.