Download CNC programming handbook a comprehensive guide to practical CNC programming 3rd ed Edition Smid ebook All Chapters PDF
Download CNC programming handbook a comprehensive guide to practical CNC programming 3rd ed Edition Smid ebook All Chapters PDF
https://ebookfinal.com/download/machining-and-cnc-technology-3rd-
revised-edition-edition-michael-fitzpatrick/
ebookfinal.com
https://ebookfinal.com/download/practical-programming-for-strength-
training-3rd-edition-rippetoe/
ebookfinal.com
https://ebookfinal.com/download/programming-in-scala-a-comprehensive-
step-by-step-guide-third-edition-martin-odersky/
ebookfinal.com
https://ebookfinal.com/download/introduction-to-java-programming-
comprehensive-version-6th-edition-liang/
ebookfinal.com
A Gentle Guide to Constraint Logic Programming via ECLiPSe
3rd Edition Antoni Niederlinski
https://ebookfinal.com/download/a-gentle-guide-to-constraint-logic-
programming-via-eclipse-3rd-edition-antoni-niederlinski/
ebookfinal.com
https://ebookfinal.com/download/adapted-aquatics-programming-a-
professional-guide-2nd-ed-edition-monica-lepore/
ebookfinal.com
https://ebookfinal.com/download/beginning-programming-for-dummies-3rd-
ed-edition-wallace-wang/
ebookfinal.com
https://ebookfinal.com/download/head-first-programming-a-learner-s-
guide-to-programming-using-the-python-language-1st-edition-david-
griffiths/
ebookfinal.com
Peter Smid
Smid, Peter
CNC Programming Handbook: Comprehensive Guide to Practical CNC Programming/
Peter Smid.
p. cm.
ISBN 0-8311-3347-3
1. Machine-tools--Numerical Control--Programming--Handbooks, manuals, etc.,..I.
Title.
Third Edition
1 2 3 4 5 6 7 8 9 10
Dedication
To my father František and my mother Ludmila,
who taught me never to give up
About the Author
Peter Smid is a professional consultant, educator and speaker, with many years of practi-
cal, hands-on experience, in the industrial and educational fields. During his career, he has
gathered an extensive experience with CNC and CAD/CAM applications on all levels. He
consults to manufacturing industry and educational institutions on practical use of Com-
puterized Numerical Control technology, part programming, CAD/CAM, advanced ma-
chining, tooling, setup, and many other related fields. His comprehensive industrial back-
ground in CNC programming, machining and company oriented training has assisted
several hundred companies to benefit from his wide-ranging knowledge.
Mr. Smid’s long time association with advanced manufacturing companies and CNC ma-
chinery vendors, as well as his affiliation with a number of Community and Technical Col-
lege industrial technology programs and machine shop skills training, have enabled him to
broaden his professional and consulting skills in the areas of CNC and CAD/CAM training,
computer applications and needs analysis, software evaluation, system benchmarking,
programming, hardware selection, software customization, and operations management.
Over the years, Mr. Smid has developed and delivered hundreds of customized educa-
tional programs to thousands of instructors and students at colleges and universities
across United States, Canada and Europe, as well as to a large number of manufacturing
companies and private sector organizations and individuals.
He has actively participated in many industrial trade shows, conferences, workshops and
various seminars, including submission of papers, delivering presentations and a number
of speaking engagements to professional organizations. He is also the author of articles,
has a monthly CNC related column in ShopTalk Magazine, and many in-house publications
on the subject of CNC and CAD/CAM. During his many years as a professional in the CNC
industrial and educational field, he has developed tens of thousands of pages of high qual-
ity training materials.
Peter Smid is also the author of two other popular CNC books:
The author welcomes comments, suggestions and other input from educators, students and industrial users.
You can e-mail him through the Main Menu of the enclosed CD.
You can also e-mail him from the CNC Programming Handbook page at www.industrialpress.com
TABLE OF CONTENTS
1 - NUMERICAL CONTROL 1 Quadrants . . . . . . . . . . . . . . . . . . . 16
Right Hand Coordinate System . . . . . . . . . . 17
DEFINITION OF NUMERICAL CONTROL . . . 1 MACHINE GEOMETRY . . . . . . . 17
NC and CNC Technology . . . . . . . . . . . . . 1 Axis Orientation - Milling . . . . . . . . . . . . . 17
CONVENTIONAL AND CNC MACHINING . . . 2 Axis Orientation - Turning . . . . . . . . . . . . . 18
Additional Axes. . . . . . . . . . . . . . . . . 18
NUMERICAL CONTROL ADVANTAGES . . . 2
Setup Time Reduction . . . . . . . . . . . . . . 3
Lead Time Reduction . . . . . . . . . . . . . . . 3 5 - CONTROL SYSTEM 19
Accuracy and Repeatability . . . . . . . . . . . . 3
Contouring of Complex Shapes . . . . . . . . . . . 3 GENERAL DESCRIPTION . . . . . . . 20
Simplified Tooling and Work Holding . . . . . . . . . 3 Operation Panel . . . . . . . . . . . . . . . . 20
Cutting Time and Productivity Increase . . . . . . . . 4 Screen Display and Keyboard . . . . . . . . . . . 21
TYPES OF CNC MACHINE TOOLS . . . . . 4 Handle . . . . . . . . . . . . . . . . . . . . 22
Mills and Machining Centers . . . . . . . . . . . . 4 SYSTEM FEATURES . . . . . . . . 22
Lathes and Turning Centers . . . . . . . . . . . . 5 Parameter Settings . . . . . . . . . . . . . . . 22
PERSONNEL FOR CNC . . . . . . . . 5 System Defaults . . . . . . . . . . . . . . . . 23
CNC Programmer . . . . . . . . . . . . . . . . 5 Memory Capacity . . . . . . . . . . . . . . . . 24
CNC Machine Operator . . . . . . . . . . . . . . 6 MANUAL PROGRAM INTERRUPTION . . . 25
SAFETY RELATED TO CNC WORK. . . . . 6 Single Block Operation . . . . . . . . . . . . . . 25
Feedhold . . . . . . . . . . . . . . . . . . . 25
Emergency Stop . . . . . . . . . . . . . . . . 25
2 - CNC MILLING 7 MANUAL DATA INPUT - MDI . . . . . . 26
CNC MACHINES - MILLING . . . . . . 7 PROGRAM DATA OVERRIDE . . . . . . 26
Types of Milling Machines . . . . . . . . . . . . . 7 Rapid Motion Override . . . . . . . . . . . . . . 26
Machine Axes . . . . . . . . . . . . . . . . . . 8 Spindle Speed Override . . . . . . . . . . . . . 27
Vertical Machining Centers. . . . . . . . . . . . . 8 Feedrate Override . . . . . . . . . . . . . . . . 27
Horizontal Machining Centers . . . . . . . . . . . 10 Dry Run Operation . . . . . . . . . . . . . . . 27
Horizontal Boring Mill . . . . . . . . . . . . . . 10 Z-Axis Neglect . . . . . . . . . . . . . . . . . 28
Typical Specifications . . . . . . . . . . . . . . 10 Manual Absolute Setting . . . . . . . . . . . . . 28
Sequence Return . . . . . . . . . . . . . . . . 28
Auxiliary Functions Lock . . . . . . . . . . . . . 28
3 - CNC TURNING 11 Machine Lock . . . . . . . . . . . . . . . . . 28
Practical Applications . . . . . . . . . . . . . . 29
CNC MACHINES - TURNING . . . . . . 11 SYSTEM OPTIONS . . . . . . . . 29
Types of CNC Lathes . . . . . . . . . . . . . . 11 Graphic Display. . . . . . . . . . . . . . . . . 29
Number of Axes . . . . . . . . . . . . . . . . 11 In-Process Gauging . . . . . . . . . . . . . . . 30
AXES DESIGNATION . . . . . . . . 11 Stored Stroke Limits . . . . . . . . . . . . . . . 30
Drawing Dimensions Input . . . . . . . . . . . . 30
Two-axis Lathe . . . . . . . . . . . . . . . . . 12
Machining Cycles . . . . . . . . . . . . . . . . 30
Three-axis Lathe . . . . . . . . . . . . . . . . 12
Cutting Tool Animation . . . . . . . . . . . . . . 30
Four-axis Lathe . . . . . . . . . . . . . . . . . 13
Connection to External Devices . . . . . . . . . . 30
Six-axis Lathe . . . . . . . . . . . . . . . . . 13
FEATURES AND SPECIFICATIONS . . . . 13
Typical Machine Specifications . . . . . . . . . . 13 6 - PROGRAM PLANNING 31
Control Features . . . . . . . . . . . . . . . . 14
STEPS IN PROGRAM PLANNING. . . . . 31
4 - COORDINATE GEOMETRY 15 INITIAL INFORMATION . . . . . . . 31
CNC MACHINE FEATURES . . . . . . 31
REAL NUMBER SYSTEM . . . . . . . 15 Machine Type and Size . . . . . . . . . . . . . . 31
Control System . . . . . . . . . . . . . . . . . 32
RECTANGULAR COORDINATE SYSTEM. . . 15
Axes and Planes . . . . . . . . . . . . . . . . 16 PART COMPLEXITY . . . . . . . . 32
Point of Origin . . . . . . . . . . . . . . . . . 16 MANUAL PROGRAMMING . . . . . . 32
ix
x Table of Contents
MAXIMUM FEEDRATE . . . . . . . 95
11 - INPUT OF DIMENSIONS 73 Maximum Feedrate Considerations . . . . . . . . . 95
Start and End of the Linear Motion . . . . . . . . 163 GENERAL RULES . . . . . . . . 184
Single Axis Linear Interpolation . . . . . . . . . . 163 ABSOLUTE AND INCREMENTAL INPUT . . 185
Two Axes Linear Interpolation . . . . . . . . . . 164
Three Axis Linear Interpolation . . . . . . . . . . 164 INITIAL LEVEL SELECTION . . . . . . 185
PROGRAMMING FORMAT . . . . . . 164 R-LEVEL SELECTION . . . . . . . 186
LINEAR FEEDRATE . . . . . . . . 165 Z-DEPTH CALCULATIONS . . . . . . 186
Feedrate Range . . . . . . . . . . . . . . . . 165 DESCRIPTION OF FIXED CYCLES . . . . 187
Individual Axis Feedrate . . . . . . . . . . . . . 165 G81 - Drilling Cycle . . . . . . . . . . . . . . . 187
PROGRAMMING EXAMPLE . . . . . . 166 G82 - Spot Drilling Cycle (Drilling with Dwell) . . . . 188
G83 - Deep Hole Drilling Cycle - Standard . . . . . . 188
G73 - Deep Hole Drilling Cycle - High Speed . . . . . 188
23 - BLOCK SKIP FUNCTION 167 G84 - Tapping Cycle - Standard . . . . . . . . . . 190
G74 - Tapping Cycle - Reverse . . . . . . . . . . 190
TYPICAL APPLICATIONS . . . . . . 167 G85 - Boring Cycle . . . . . . . . . . . . . . . 191
G86 - Boring Cycle . . . . . . . . . . . . . . . 191
BLOCK SKIP SYMBOL . . . . . . . 167 G87 - Backboring Cycle . . . . . . . . . . . . . 192
CONTROL UNIT SETTING . . . . . . 167 G88 - Boring Cycle . . . . . . . . . . . . . . . 192
G89 - Boring Cycle . . . . . . . . . . . . . . . 193
BLOCK SKIP AND MODAL COMMANDS . . 168 G76 - Precision Boring Cycle . . . . . . . . . . . 193
PROGRAMMING EXAMPLES . . . . . 169 FIXED CYCLE CANCELLATION . . . . . 194
Variable Stock Removal . . . . . . . . . . . . . 169
Machining Pattern Change . . . . . . . . . . . . 170 FIXED CYCLE REPETITION . . . . . . 194
Trial Cut for Measuring . . . . . . . . . . . . . 172 The L or K Address . . . . . . . . . . . . . . . 194
Program Proving . . . . . . . . . . . . . . . . 173 L0 or K0 in a Cycle . . . . . . . . . . . . . . . 195
Barfeeder Application . . . . . . . . . . . . . . 174 RIGID TAPPING . . . . . . . . . 195
Numbered Block Skip. . . . . . . . . . . . . . 174
Comparison - Standard vs. Rigid Tapping . . . . . . 195
Rigid Tapping - Fixed Cycles . . . . . . . . . . . 195
24 - DWELL COMMAND 175 Rigid Pecking Cycle . . . . . . . . . . . . . . 196
Cancellation . . . . . . . . . . . . . . . . . 196
PROGRAMMING APPLICATIONS . . . . 175
Applications for Cutting . . . . . . . . . . . . . 175 26 - MACHINING HOLES 197
Applications for Accessories . . . . . . . . . . . 175
DWELL COMMAND . . . . . . . . 175 SINGLE HOLE EVALUATION . . . . . 197
Dwell Command Structure . . . . . . . . . . . . 176 Tooling Selection and Applications. . . . . . . . . 197
Program Data . . . . . . . . . . . . . . . . . 200
DWELL TIME SELECTION . . . . . . 176
DRILLING OPERATIONS . . . . . . . 200
SETTING MODE AND DWELL . . . . . 177
Types of Drilling Operations . . . . . . . . . . . 200
Time Setting . . . . . . . . . . . . . . . . . 177 Types of Drills . . . . . . . . . . . . . . . . . 200
Number of Revolutions Setting . . . . . . . . . . 177 Programming Considerations. . . . . . . . . . . 201
MINIMUM DWELL . . . . . . . . 177 Nominal Drill Diameter . . . . . . . . . . . . . 201
Practical Considerations . . . . . . . . . . . . . 177 Effective Drill Diameter . . . . . . . . . . . . . 201
Drill Point Length . . . . . . . . . . . . . . . 201
NUMBER OF REVOLUTIONS . . . . . 178 Center Drilling. . . . . . . . . . . . . . . . . 202
System Setting . . . . . . . . . . . . . . . . 178 Spot Drilling . . . . . . . . . . . . . . . . . 203
Time Equivalent . . . . . . . . . . . . . . . . 178 Blind Hole Drilling . . . . . . . . . . . . . . . 203
LONG DWELL TIME . . . . . . . . 179 Through Hole Drilling . . . . . . . . . . . . . . 204
Flat Bottom Holes . . . . . . . . . . . . . . . 204
Machine Warm-Up . . . . . . . . . . . . . . . 180 Indexable Insert Drilling . . . . . . . . . . . . . 205
X Axis is the Dwelling Axis . . . . . . . . . . . . 180
Safety and Dwell. . . . . . . . . . . . . . . . 180 PECK DRILLING . . . . . . . . . 206
FIXED CYCLES AND DWELL . . . . . 180 Typical Peck Drilling Application . . . . . . . . . . 206
Calculating the Number of Pecks . . . . . . . . . 207
Selecting the Number of Pecks . . . . . . . . . . 207
25 - FIXED CYCLES 181 Controlling Breakthrough Depth. . . . . . . . . . 207
REAMING. . . . . . . . . . . 208
POINT-TO-POINT MACHINING . . . . . 181 Reamer Design . . . . . . . . . . . . . . . . 208
Single Tool Motions vs. Fixed Cycles . . . . . . . . 182 Spindle Speeds for Reaming . . . . . . . . . . . 209
Basic Concept. . . . . . . . . . . . . . . . . 182 Feedrates for Reaming . . . . . . . . . . . . . 209
FIXED CYCLE SELECTION . . . . . . 182 Stock Allowance . . . . . . . . . . . . . . . . 209
Other Reaming Considerations . . . . . . . . . . 209
PROGRAMMING FORMAT . . . . . . 183
SINGLE POINT BORING . . . . . . . 209
xiv Table of Contents
HOW CUTTER RADIUS OFFSET WORKS . . 265 In and Out Ramping . . . . . . . . . . . . . . 289
Look-Ahead Offset Type . . . . . . . . . . . . . 265 Direction of Cut . . . . . . . . . . . . . . . . 289
Rules for Look-Ahead Cutter Radius Offset . . . . . 266 Width and Depth of Cut . . . . . . . . . . . . . 290
Radius of the Cutter . . . . . . . . . . . . . . 267 CORNER RADIUS CALCULATION . . . . 290
Radius Offset Interference . . . . . . . . . . . . 268
Single vs. Multiaxis Startup . . . . . . . . . . . 269
OVERVIEW OF GENERAL RULES . . . . 270 33 - SLOTS AND POCKETS 291
PRACTICAL EXAMPLE - MILLING . . . . 271
OPEN AND CLOSED BOUNDARY . . . . 291
Part Tolerances . . . . . . . . . . . . . . . . 271
Open Boundary . . . . . . . . . . . . . . . . 291
Measured Part Size. . . . . . . . . . . . . . . 271
Closed Boundary . . . . . . . . . . . . . . . 291
Programmed Offsets . . . . . . . . . . . . . . 272
D-offset Amount - General Setting. . . . . . . . . 272 PROGRAMMING SLOTS . . . . . . . 291
Offset Adjustment . . . . . . . . . . . . . . . 273 Open Slot Example. . . . . . . . . . . . . . . 291
Offsets for External Cutting . . . . . . . . . . . 273 Closed Slot Example . . . . . . . . . . . . . . 293
Offsets for Internal Cutting. . . . . . . . . . . . 273
One Offset or Multiple Offsets?. . . . . . . . . . 274 POCKET MILLING . . . . . . . . 294
Preventing a Scrap . . . . . . . . . . . . . . . 274 General Principles . . . . . . . . . . . . . . . 294
Program Data - Nominal or Middle? . . . . . . . . 274 Pocket Types . . . . . . . . . . . . . . . . . 295
TOOL NOSE RADIUS OFFSET . . . . . 275 RECTANGULAR POCKETS . . . . . . 295
Tool Nose Tip . . . . . . . . . . . . . . . . . 275 Stock Amount . . . . . . . . . . . . . . . . . 296
Radius Offset Commands . . . . . . . . . . . . 275 Stepover Amount . . . . . . . . . . . . . . . 296
Tool Tip Orientation . . . . . . . . . . . . . . 275 Length of Cut . . . . . . . . . . . . . . . . . 297
Effect of Tool Nose Radius Offset . . . . . . . . . 276 Semifinishing Motions . . . . . . . . . . . . . 297
Sample Program . . . . . . . . . . . . . . . . 276 Finishing Toolpath . . . . . . . . . . . . . . . 297
Minimum Clearance Required . . . . . . . . . . 277 Rectangular Pocket Program Example . . . . . . . 298
Retraction from a Bored Hole. . . . . . . . . . . 277 CIRCULAR POCKETS . . . . . . . 299
Change of Motion Direction . . . . . . . . . . . 278
Minimum Cutter Diameter . . . . . . . . . . . . 299
Method of Entry . . . . . . . . . . . . . . . . 299
31 - PLANE SELECTION 279 Linear Approach . . . . . . . . . . . . . . . . 299
Linear and Circular Approach . . . . . . . . . . . 300
Roughing a Circular Pocket . . . . . . . . . . . 301
WHAT IS A PLANE? . . . . . . . . 279
MACHINING IN PLANES. . . . . . . 279 CIRCULAR POCKET CYCLES . . . . . 302
Mathematical Planes . . . . . . . . . . . . . . 279
Machine Tool Planes . . . . . . . . . . . . . . 280 34 - TURNING AND BORING 303
Program Commands for Planes Definition. . . . . . 280
Default Control Status . . . . . . . . . . . . . 281 TOOL FUNCTION - TURNING . . . . . 303
STRAIGHT MOTION IN PLANES . . . . 281 T-Address . . . . . . . . . . . . . . . . . . 303
CIRCULAR INTERPOLATION IN PLANES . . 281 LATHE OFFSETS . . . . . . . . . 304
G17-G18-G19 as Modal Commands . . . . . . . . 282 Offset Entry . . . . . . . . . . . . . . . . . 304
Absence of Axis Data in a Block. . . . . . . . . . 282 Independent Tool Offset. . . . . . . . . . . . . 304
Cutter Radius Offset in Planes . . . . . . . . . . 283 Tool Offset with Motion . . . . . . . . . . . . . 305
PRACTICAL EXAMPLE . . . . . . . 283 Offset Change . . . . . . . . . . . . . . . . 305
In manufacturing field, and particularly in the area of Both systems perform the same tasks, namely manipula-
metal working, Numerical Control technology has caused tion of data for the sole purpose of machining a part. In
something of a revolution. Even in the days before comput- both cases, the control system internal design contains all
ers became standard fixtures in every company and many logical instructions that process the input data. At this point
homes, machine tools equipped with Numerical Control the similarity ends.
system found their special place in many machine shops. The NC system (as opposed to the CNC system) uses a
The relatively recent evolution of micro electronics and the fixed logical functions, those that are built-in and perma-
never ceasing computer development, including its impact nently wired within the control unit. These functions can-
on Numerical Control, has brought enormously significant not be changed by the part programmer or the machine op-
changes to manufacturing sector in general and metal- erator. Because of the fixed wiring of control logic, NC
working industry in particular. control system is synonymous with the term ‘hardwired’.
The system can interpret a part program, but it does not al-
DEFINITION OF NUMERICAL CONTROL low any changes to the program at the control (using the
control features). All required program changes must be
In various publications and articles, many descriptions made away from the control, typically in an office environ-
have been used during the years, to define what Numerical ment. Also, NC system typically requires the compulsory
Control actually is. It would be pointless to try to find yet use of punched tapes for input of the program information.
another definition, just for the purpose of this handbook. The modern CNC system (but not the old NC system),
Many of these definitions share the same idea, same basic uses an internal micro processor (i.e., a computer). This
concept, just use different wording. computer contains memory registers storing a variety of
The majority of all the known definitions can be summed routines that are capable of manipulating logical functions.
up into a relatively simple statement: That means the part programmer or machine operator can
change any program at the control unit (at the machine),
Numerical Control can be defined as an operation of with instantaneous results. This flexibility is the greatest
machine tools by means of specifically coded advantage of CNC systems and probably the key element
instructions to the machine control system that contributed to such a wide use of the technology in
modern manufacturing. Typically, CNC programs and the
The 'specifically coded instructions' are combinations of logical functions are stored on special computer chips, as
the letters of alphabet, digits and selected symbols, for ex- software instructions, rather than used by the hardware
ample, a decimal point, the percent sign, or the parenthesis connections, such as wires, that control the logical func-
symbols. All instructions are written in a logical order and tions. In contrast to the NC system, the CNC system is syn-
in predetermined form. The collection of all instructions onymous with the term ‘softwired’.
necessary to machine a single part or operation is called an When describing a particular subject that relates to nu-
NC Program, CNC Program, or a Part Program. Such a merical control technology, it is customary to use either the
program can be stored for future use and used repeatedly to term NC or CNC. Keep in mind that NC can also mean
achieve identical machining results at any time. CNC in everyday talk, but CNC can never refer to the older
1
2 Chapter 1
technology, described in this handbook under the abbrevia- typical problems encountered in conventional machining.
tion of NC. The letter ‘C’stands for Computerized, and it is Individual machinists may have their own 'time proven’
not applicable to the hardwired system. All control systems methods, different from those of their fellow colleagues.
manufactured today are of the CNC design. Abbreviations Combination of these and other factors create a large field
such as C&C or C’n’C are not correct and reflect poorly on of inconsistency.
anybody that uses them.
Machining under numerical control does away with the
majority of inconsistencies. It does not require the same
CONVENTIONAL AND CNC MACHINING physical involvement as manual machining. Numerically
controlled machining does not need any levers or dials or
What makes CNC machining methods superior to con- handles, at least not in the same sense as conventional ma-
ventional methods? Are they superior at all? Where are the chining. Once the part program has been proven, it can be
main benefits? While comparing CNC and conventional used any number of times over, always returning consistent
machining processes, common general approach to ma- results. That does not mean there are no limiting factors.
chining a typical part will emerge: Cutting tools do wear out, material blank in one batch is not
identical to the material blank in another batch, setups may
1. Obtain and study the engineering drawing vary, etc. These factors should be considered and compen-
2. Select the most suitable machining method sated for, whenever necessary.
3. Decide on the setup method (work holding)
4. Select cutting tools and holders Emergence of numerical control technology does not
5. Establish spindle speeds and cutting feedrates mean an instant - or even a long term - demise of all manual
6. Machine the part machines. There are times when a traditional machining
method is preferable to a computerized method. For exam-
This general approach is the same for both types of ma- ple, a simple one time job may be done more efficiently on
chining. One major difference is how various data are in- a manual machine than on a CNC machine. Certain types
put. A feedrate of 10 inches per minute (10 in/min) is the of machining jobs will benefit from manual, semiautomatic
same in manual or CNC applications, but the method of ap- or automatic machining, rather than machining under nu-
plying it is not. The same can be said about a coolant - it can merical control. CNC machine tools are not meant to re-
be activated by physically turning a knob, pushing a switch place every manual machine, only to supplement them.
or programming a special code. All these actions will result
in coolant rushing out of a nozzle. In both kinds of machin- In many instances, the decision whether certain machin-
ing, a certain amount of knowledge by the user is required. ing will be done on a CNC machine or not is based on the
After all, metal working, and metal cutting specifically, is number of required parts and nothing else. Although the
mainly a skill, but it is also, to a great degree, an art and a volume of parts machined as a batch is always an important
profession of large number of people. So is the application criteria, it should never be the only factor. Consideration
of Computerized Numerical Control. Like any skill, or art, should also be given to the part complexity, its tolerances,
or profession, mastering it to the last detail is necessary to the required quality of surface finish, etc. Often, a single
be successful. It takes a lot more than just technical knowl- complex part will benefit from CNC machining, while fifty
edge to be a CNC machinist, operator or CNC programmer. relatively simple parts will not.
Work experience, intuition, and what is sometimes called a
‘gut-feel’, are much needed supplements to any skill. Keep in mind that numerical control has never machined
a single part by itself. Numerical control is only a process
In conventional machining, the operator sets up the ma- or a method that enables a machine tool to be used in a pro-
chine and moves each cutting tool, using one or both ductive, accurate and consistent way.
hands, to produce the required part. Design of a manual
machine tool offers many features that help the process of
machining a part - levers, handles, gears and dials, to name
NUMERICAL CONTROL ADVANTAGES
just a few. The same body motions are repeated by the op-
erator for every part machined. However, the word ‘same’ What are the main advantages of numerical control?
in this context really means ‘similar’rather than ‘identical’.
Humans are not capable to repeat every process exactly the It is important to establish which areas of machining will
same at all times - that is the job of machines. People can- benefit from it and which are better done the conventional
not work at the same performance level all the time, with- way. It is absurd to think that a two horse power CNC mill
out a rest. All of us have some good and some bad mo- will win over jobs that are currently done on a twenty times
ments. Such moments, when applied to machining a part, more powerful manual mill. Equally unreasonable are ex-
are difficult to predict. There will always be some differ- pectations of super improvements in cutting speeds and
ences and inconsistencies within each batch of parts. Parts feedrates over a conventional machine. If the machining
will not always be exactly the same. Maintaining dimen- and tooling conditions are the same, the total cutting time
sional tolerances and surface finish quality are the most will always be very close in both cases.
NUMERICAL CONTROL 3
A list of some major areas where CNC users can and Long lead time, required to design and manufacture sev-
should expect improvement includes: eral special fixtures for conventional machines, can often
be reduced by using simplified fixturing.
n Setup time reduction
n Lead time reduction u Accuracy and Repeatability
n Accuracy and repeatability The high degree of accuracy and repeatability of modern
n Contouring of complex shapes CNC machines has been the single major benefit to many
users. Whether part program is stored on a disk or in the
n Simplified tooling and work holding computer memory, or even on a tape (the original method,
n Consistent cutting time now obsolete), it always remains the same. Any program
can be changed at will, but once proven, no changes are
n General productivity increase usually required any more. A given program can be reused
Each area offers only a potential improvement. Individ- as many times as needed, without losing a single bit of data
ual CNC users will experience different levels of actual it contains. True, program has to allow for such changeable
improvement, depending on the product manufactured, factors as tool wear and operating temperatures, it has to be
CNC machine used, setup methods applied, complexity of stored safely, but generally very little interference from the
fixturing, quality of cutting tools, management philosophy CNC programmer or operator will be required. The accu-
and engineering design, experience level of the workforce, racy of modern CNC machines and their repeatability al-
individual attitudes, and many others. lows high quality parts to be produced consistently, time
after time.
u Setup Time Reduction u Contouring of Complex Shapes
In many cases, actual setup times for CNC machines can
be reduced, sometimes quite dramatically. It is important to CNC lathes and machining centers are capable of con-
realize that setup is a manual operation, greatly dependent touring a large variety of different shapes. Many CNC us-
on the performance of CNC operators, the type of fixturing ers acquired their machines only to be able to handle com-
and general machine shop practices. Setup time is unpro- plex parts. A good examples are CNC applications in the
ductive, but necessary - it is part of the overall costs of do- aircraft and automotive industries. Any use of some kind of
ing business. To keep setup time to minimum should be the computerized programming is virtually mandatory for any
primary consideration of any machine shop supervisor, three dimensional tool path generation.
programmer and operator. Complex shapes, such as molds, manifolds, dies, etc., can
Because of the design of CNC machines, real setup time be manufactured without the additional expense of making
should not be a major problem. Modular fixturing, stan- a model for tracing. Mirrored parts can be achieved literally
dardized tooling, fixed locators, automatic tool changing, at the switch of a button. Storage of part programs is a lot
pallets, and other advanced features, make the setup time simpler than storage of paper patterns, templates, wooden
more efficient than a comparable setup of conventional models, and other pattern making tools.
machines. With good knowledge of modern manufactur-
u Simplified Tooling and Work Holding
ing, productivity can be increased quite significantly.
The number of parts machined in a single setup is also Non-standard and ‘homemade’ tooling that clutters the
important, in order to assess the actual cost of setup time. If benches and drawers around a conventional machine can
a great number of parts is machined in one setup, the setup be eliminated by using standard tooling, specially designed
cost per part can be rather insignificant. A very similar re- for numerical control applications. Multi-step tools such as
duction can be achieved by grouping several different op- pilot drills, step drills, combination tools, counter borers
erations into a single setup. Even if the setup time is longer, and others, are replaced with several individual standard
it may be justified when compared to the time required to tools. These tools are often cheaper and easier to replace
setup several conventional machines and operations. than special and non-standard tools. Cost-cutting measures
have forced many tool suppliers to keep a low or even a
u Lead Time Reduction nonexistent inventory, while increasing delivery time to the
customer. Standard, off-the-shelf tooling can usually be
Once a part program is written and proven correct, it is obtained faster then non-standard tooling.
ready to be used again in the future, even at a short notice.
Although the first run lead time is usually longer, it is virtu- Fixturing and work holding for CNC machines have only
ally nil for all subsequent runs. Even if an engineering one major purpose - to hold the part rigidly and in the same
change of the part design requires program modification, it position for all parts within a batch. Fixtures designed for
can be done usually quickly, reducing the lead time. CNC work do not normally require special jigs, pilot holes
and other hole locating aids.
4 Chapter 1
There are two basic designs of a typical CNC machining PERSONNEL FOR CNC
center. They are vertical and horizontal machining centers.
The major difference between the two types is the nature of
work that can be done on them efficiently. For a vertical Computers and machine tools have no intelligence. They
CNC machining center, the most suitable type of work are cannot think, they cannot evaluate a situation in a rational
flat parts, either mounted to the table fixture, or held in a way. Only people with certain skills and knowledge can do
vise or a chuck. The work that requires machining on two that. In the field of numerical control, the skills are usually
or more faces (sides) in a single setup is more desirable to in the hands of two key people - one doing the program-
be done on a CNC horizontal machining center. A good ex- ming, the other doing the actual setup and machining. Their
ample is a pump housing and other cubic-like shapes, often respective numbers and duties typically depend on com-
irregular. Some multi-face machining of small parts can pany preferences, its size, as well as the product manufac-
also be done on a CNC vertical machining center equipped tured there. However, each position is quite distinct, al-
with a rotary table. though many companies combine the two functions into a
one, often called a CNC Programmer/Operator.
Programming process is the same, but an additional axis
(usually B axis) is added to the horizontal version. This u CNC Programmer
axis is either a simple table positioning axis (indexing
axis), or a fully rotary axis for simultaneous contouring. CNC programmer is usually a person who has the most
responsibility in the CNC machine shop. This person is of-
This handbook concentrates on CNC vertical machining ten responsible for the success of numerical control tech-
centers applications, with a special section dealing with the nology in whole the plant. Equally, this person is also held
uniqueness of horizontal setup and machining. Suggested responsible for problems related to CNC and related opera-
programming methods are also applicable to small CNC tions. Although duties may vary, the programmer is also re-
mills or drilling and/or tapping machines, but the part pro- sponsible for a variety of tasks relating to the effective us-
grammer has to consider their often severe restrictions. age of one or more CNC machines. In fact, this person is
often accountable for the production and quality parts from
u Lathes and Turning Centers all CNC operations.
A CNC lathe in its basic form is a machine tool with two Many CNC programmers are experienced machinists
axes, vertical X axis and horizontal Z axis. The main fea- who have had a practical, hands-on experience as machine
ture of a lathe that distinguishes it from a mill is that the part tool operators. They know how to read technical drawings
is rotating about the machine center line. In addition, the and they can comprehend engineering intent behind the de-
cutting tool is normally stationary, mounted in a sliding tur- sign. This practical experience is the main foundation for
ret. Cutting tool follows the contour of the programmed the ability to ‘machine’ a part in an off-machine environ-
tool path. Many modern CNC lathes are much more than ment. A good CNC programmer must be able to visualize
just turning centers - with a simple milling attachment, the all tool motions and recognize all restricting factors that
so called live tooling, the milling cutter has its own motor may be involved. The programmer must be able to collect,
and rotates while the spindle is stationary. More complex analyze, process and logically integrate all collected data
designs incorporate off-center milling, double spindles, into a single, cohesive and safe part program. In simple
double turrets, part transfer, and many other efficiency im- terms, the CNC programmer must be able to decide upon
proving features. These machines are generally called the the best manufacturing methodology in all respects.
mill-turn centers or sometimes the turn-mill centers.
In addition to machining skills, the CNC programmer has
Modern lathe design can be horizontal or vertical. Hori- to have a good understanding of mathematical principles,
zontal type is far more common than vertical type, but both mainly application of equations, solution of arcs and an-
designs have their purpose in manufacturing. Several dif- gles. Equally important is the knowledge of trigonometry.
ferent designs exist for either group. For example, a typical Even with computerized programming, the knowledge of
CNC lathe of the horizontal group can be designed with a manual programming methods is absolutely essential to
flat bed or a slant bed, as a bar type, chucker type or a uni- deep and thorough understanding of computer output and
versal type. Added to these combinations are many acces- to assure control over such output.
sories that make a CNC lathe an extremely flexible ma-
chine tool. Typically, accessories such as tailstock, steady The last important quality of a truly professional CNC
rests or follow-up rests, part catchers, pullout-fingers and a programmer is his or her ability to listen to other people -
third axis milling attachment are popular components of the engineers, CNC operators, managers. Good listening
CNC lathes. A CNC lathe can be very versatile - so versa- skills are the first prerequisites to become flexible. Any
tile in fact, that it is often called a CNC Turning Center. All professional CNC programmer must be flexible in order to
text and program examples in this handbook use the more offer high quality in programming.
traditional term CNC lathe, yet still recognizing all its mod-
ern functions.
6 Chapter 1
u CNC Machine Operator are based on past tragic occurrences - many laws, rules and
The CNC machine tool operator is a complementary po- regulations have been written as a result of inquests and in-
sition to that of CNC programmer. The programmer and quiries into serious accidents.
the operator may exist in a single person, as is common in At first sight, it may seem that in CNC work, safety is a
many smaller shops. Although the majority of duties per- secondary issue, not as important as in manual machining.
formed by a conventional machine operator has been trans- There is a lot of automation in CNC, a part program that is
ferred to CNC programmer, CNC operator also has many used over and over again, tooling that has been used in the
unique responsibilities. In typical cases, the operator is re- past, a simple setup, etc. All this can lead to complacency
sponsible for tool and machine setup, for changing of com- and false assumption that safety is taken care of. This is a
pleted parts, often even for some in-process inspection. wrong view that can have serious consequences.
Many companies expect quality control at the machine -
and the operator of any machine tool, manual or computer- Safety is quite a large subject but a few points that relate
ized, is also responsible for the quality of work done on that to CNC environment are very important. Every machinist
machine. One of the most important responsibilities of should know the hazards of mechanical and electrical de-
CNC machine operator is to report findings about each pro- vices. The first step towards a safe work place is with a
gram to the programmer. Even with the best knowledge, clean work area, where no chips, oil spills and other debris
skills, attitudes and good intentions, the ‘final’program can are allowed to accumulate on the floor. Taking care of per-
always be improved. CNC operator, being the one who is sonal safety is equally important. Loose clothing, jewelry,
the closest to actual machining, knows precisely what ex- ties, scarfs, unprotected long hair, improper use of gloves
tent such improvements can be. and similar infractions, is dangerous in any machining en-
vironment. Protection of one's eyes, ears, hands and feet is
SAFETY RELATED TO CNC WORK strongly recommended.
While a machine is operating, protective devices should
On the walls of many machine shops may hang a safety be in place and no moving parts should be exposed. Special
poster with a simple, yet very powerful message: care should be taken around rotating spindles and auto-
matic tool changers. Other devices that could pose a hazard
The first rule of safety is to follow all safety rules are pallet changers, chip conveyors, high voltage areas,
hoists, etc. Disconnecting any interlocks or other safety
The heading of this section does not indicate whether features is dangerous - and also illegal, without appropriate
safety is oriented at the programming or the machining skills and authorization.
level. There is no reason for it - safety is totally independ- Modern technology has brought machines that may have
ent. It stands on its own and it governs behavior and activi- nine or more axes, tight work areas, special tool indexing,
ties of everybody in machine shop and outside of it. At first part transfers, etc. While these features dramatically in-
sight, it may appear that safety is something related to ma- crease company productivity, they also require additional
chining and machine operations, perhaps to the machine safety training - and practicing all safety rules.
setup as well. That is definitely true but hardly presents a
complete picture. In CNC programming (manual or computer based), ob-
servation of safety rules is equally important. A tool motion
Safety is the most important element in programming, can be programmed in many ways. Speeds and feeds have
setup, machining, tooling, fixturing, inspection, shipping, to be realistic, not just mathematically ‘correct’. Depth of
and you-name-it operation within a typical machine shop cut, width of cut, various tool characteristics, they all have
daily work. Safety should never be compromised and can- a profound effect on overall safety in the shop.
not be overemphasized. Companies talk about safety, con-
duct safety meetings, display posters, make speeches, call All these ideas are just a very short summary and a re-
experts. This mass of information and instructions is pre- minder that safety should be taken seriously at all times.
sented to all of us for some very good reasons. Quite a few
2 CNC MILLING
Many different types of CNC machines are used in in- u Types of Milling Machines
dustry - the majority of them are CNC machining centers
and CNC lathes. They are followed by wire EDM, fabricat- Milling machines can divided into three categories:
ing machines and machines of special designs. Although n By the number of axes - two, three or more
the focus of this handbook is on the two types that domi-
nate the market, many general ideas can be applied to other n By the orientation of axes - vertical or horizontal
CNC equipment. n By the presence or absence of a tool changer
CNC MACHINES - MILLING Milling machines where the motion of a spindle is up and
down, are categorized as vertical machines. Milling ma-
chines where the spindle motion is in and out, are catego-
Description of CNC milling machines is so large, it can rized as horizontal machines - see Figure 2-1 and 2-2.
fill a thick book all by itself. All machine tools from a sim-
ple knee type milling machine up to a five axis profiler can
be included in this category. They vary in size, features,
suitability for certain work, etc., but they do all have one
common denominator - their primary axes are X and Y
axes - and for this reason, they are called the XY machines.
In the category of XY machines are also wire EDM ma-
chine tools, laser and water jet cutting machines, flame cut-
ters, burners, routers, etc. Although they do not qualify as
milling type machine tools, they are mentioned because the
majority of programming techniques applicable to milling
can be applied to these machine types as well. The best ex-
ample is a contouring operation, a process common to
many CNC machines.
For the purpose of this handbook, a milling machine can
be defined: Figure 2-1
Schematic representation of a CNC vertical machining center
Milling machine is a machine capable of a simultaneous
cutting motion, using an end mill as the primary cutting tool,
along at least two axes at the same time
7
8 Chapter 2
These simplified definitions do not reflect reality of the Each machining center is described by its specifications
current state of art in machine tool design. Machine tool in- as provided by the machine tool manufacturer. Manufac-
dustry is constantly changing. New and more powerful ma- turers list many specifications as a quick method of com-
chines are designed and produced by many manufacturers parison between one machine and another. It is not unusual
in several countries, with more features and flexibility. to find a slightly biased information in the descriptive bro-
chure - after all, it is a sales tool.
The majority of modern machines designed for milling
are capable of doing a multitude of machining tasks, not In the area of milling systems, three most common ma-
only the traditional milling. These machines are also capa- chine tools are available:
ble of many other metal removing operations, mainly drill-
ing, reaming, boring, tapping, profiling, thread cutting and
n CNC Vertical Machining Center ... VMC
many others. They may be equipped with a multi-tool mag- n CNC Horizontal Machining Center ... HMC
azine (also known as a carousel), a fully automatic tool n CNC Horizontal Boring Mill
changer (abbreviated as ATC) and a pallet changer (abbre-
viated as APC), a powerful computerized control unit (ab- Programming methods do not vary too much for either
breviated as CNC), and so on. Some machine models may type, except for special accessories and options. Some of
have additional features, such as adaptive control, robot in- the major differences will be orientation of machine axes,
terface, automatic loading and unloading, probing system, additional axis for indexing or full rotary motion, and the
high speed machining features, and other marvels of mod- type of work suitable for individual models. Description of
ern technology. The question is - can machine tools of these the most common type of a machining center - Vertical Ma-
capabilities be classified as simple CNC milling machines? chining Center (VMC) - presents a fairly accurate sample
In two words - certainly not. Milling machines that have at of describing other machines of the above group.
least some of the advanced features built-in (usually many
features), are known as a separate category of machines - u Vertical Machining Centers
they are called CNC Machining Centers. This term is
strictly CNC related - a manual machining center is a de- Vertical machining centers are mainly used for flat type
scription that does not exist. of work, such as plates, where the majority of machining is
done on only one face of the part in a single setup.
u Machine Axes
A vertical CNC machining center can also be used with
Milling machines and machining centers have at least an optional fourth axis, usually a rotary head mounted on
three axes - X, Y and Z. These machines become even the main table. Rotary head can be mounted either verti-
more flexible if they have a fourth axis, usually an indexing cally or horizontally, depending on the desired results and
or a rotary axis (A-axis for vertical models or B-axis for the model type. This fourth axis can be used either for in-
horizontal models). Even higher level of flexibility can be dexing or a full rotary motion, depending on the design
found on machines with five or more axes. A simple ma- purchased. In combination with a tailstock (usually sup-
chine with five axes may be a boring mill that has three ma- plied), the fourth axis in vertical configuration can be used
jor axes, plus a rotary axis (usually B-axis) and an axis par- for machining long parts that need support at both ends.
allel to the Z-axis (usually W-axis). However, true complex
and flexible five-axis profiling milling machine is the type The majority of vertical machining centers most opera-
used in aircraft industry, where a multi-axis, simultaneous tors work with are those with an empty table and three-axes
cutting motion is necessary to machine complex shapes configuration.
and reach cavities and various angles. From the programming perspective, there are at least two
At times, the expression two and a half axis machine or a items worth mentioning:
three and a half axis machine is used. These terms refer to n ONE - Programming always takes place from the viewpoint
those types of machines, where simultaneous cutting mo- of the spindle, not the operator’s. That means the view is
tion of all axes has certain limitations. For example, a as if looking straight down, at ninety degrees towards
four-axis vertical machine has X, Y and Z-axis as primary the machine table for development of the toolpath motion.
axes, plus an indexing table, designated as an A-axis. The Programmers always view the top of part !
indexing table is used for positioning, but it cannot rotate n TWO - Various markers located somewhere on the
simultaneously with the motion of primary axes. That type machine show positive and negative motion of the
of a machine is often called a 'three and a half axis' ma- machine axes. For programming, these markers should be
chine. By contrast, a more complex but similar machine ignored! These indicate operating directions, not
that is equipped with a fully rotating table, is designed as a programming directions. As a matter of fact, typically
true four-axis machine. Rotary table can move simulta- the programming directions are exactly opposite
neously with the cutting motion of the primary axes. This is of the markers on the machine tool
a good example of a true 'four axis' machine tool.
CNC MILLING 9
Number of tools 20 36
Rapid traverse rate 40000 mm/min (XY) - 35000 mm/min (Z) 30000 mm/min (XY) - 24000 mm/min (Z)
1575 in/min (XY) - 1378 in/min (Z) 1181 in/min (XY) - 945 in/min (Z)
u Horizontal Machining Centers tal boring mills - if the quill were to be very long, it would
Horizontal CNC Machining Centers are also categorized lose its strength and rigidity. The better way was to split the
as multi-tool and versatile machines, and are used for cu- traditional single Z-axis movement into two - the quill ex-
bical parts, where the majority of machining has to be done tension along Z-axis will move only part of the way to-
on more than one face in a single setup. wards the table and the table itself - the new W-axis - will
move another part of the way towards the spindle. They
There are many applications in this area. Common exam- both meet in the area of the part that could be machined us-
ples are large parts, such as pump housings, gear cases, ing all other machine tool resources.
manifolds, engine blocks and so on. Horizontal machining
centers always include a special indexing table and are Horizontal boring mill may be called a 3-1/2 axis CNC
often equipped with a pallet changer and other features. machine, but certainly not a 5-axis CNC machine, even if
the number of programmed axes is five. Programming pro-
Because of their flexibility and complexity, CNC hori- cedures for CNC boring mills are very similar to the hori-
zontal machining centers are priced significantly higher zontal and vertical CNC machining centers.
than vertical CNC machining centers.
u Typical Specifications
From programming point of view, there are several
unique differences, mainly relating to the Automatic Tool On the preceding page is a comprehensive chart showing
Changer, the indexing table, and - in some cases - to the ad- typical specifications of a CNC Vertical Machining Center
ditional accessories, for example, pallet changer. All differ- and a CNC Horizontal Machining Center. These specifica-
ences are relatively minor. Writing a program for horizon- tions are side by side in two columns, strictly for conven-
tal machining centers is no different than writing a program ience, not for any comparison purposes. These are two dif-
for vertical machining centers. ferent machine types and comparison is not possible for all
features. In order to compare individual machine tools
u Horizontal Boring Mill within a certain category, machine tool specifications prov-
ided by machine manufacturer often serve as the basis for
Horizontal boring mill is just another CNC machine. It comparison. These specifications are contained in a list of
closely resembles a CNC horizontal machining center, but verifiable data, mainly technical in nature, that describes
it does have its own differences. Generally, a horizontal the individual machine by its main features. Machine tool
boring mill is defined by the lack of some common fea- buyers frequently compare many brochures of several dif-
tures, such as the Automatic Tool Changer. As the name of ferent machines as part of the pre-purchase process. Man-
the machine suggests, its primary purpose is boring opera- agers and process planners compare individual machines in
tions, mainly lengthy bores. For that reason, the spindle the machine shop and assign any available workload to the
reach is extended by a specially designed quill. Another most suitable machine.
common feature is an axis parallel to the Z-axis, called the
W-axis. Although this is, in effect, the fifth axis designation A fair and accurate comparison can be made between two
(X, Y, Z, B, W), a horizontal boring mill cannot be called a vertical machining centers or between two horizontal ma-
true five axis machine. Both the Z-axis (quill) and the chining centers, but cannot be done fairly to compare be-
W-axis (table) work in opposite directions - towards each tween any two different machine types.
other - so they can be used for large parts and most of
hard-to-reach areas. It also means, that during drilling, the In a typical machine specification chart, additional data
machine table moves against an extended quill. Quill is a may be listed, not included in the earlier chart, depending
physical part of the spindle. It is in the spindle where the on the exact features. In this handbook, the focus is on only
cutting tool rotates - but the in-and-out motions are done by those specifications that are of interest to a CNC program-
the table. Think of the alternate method offered on horizon- mer and, to a large extent, a CNC operator.
3 CNC TURNING
11
12 Chapter 3
u Three-axis Lathe
Z- Z+
Three-axis lathe is essentially a two-axis lathe with an ad-
ditional axis. This axis has its own designation, usually as a
X+ C-axis in absolute mode (H-axis in incremental mode), and
Figure 3-2
is fully programmable. Normally, the third axis is used for
cross-milling operations, slot cutting, bolt circle holes drill-
Typical configuration of a CNC lathe with two turrets ing, hex faces, side faces, helical slots, etc. This axis can re-
place some simple operations on a milling machine, reduc-
Z+ ing the setup time for the job. Some limitations do apply to
many models, for example, the milling or drilling opera-
tions can take place only at positions projecting from the
X- X+ tool center line to the spindle center line (within a machin-
ing plane), although others offer off-center adjustments.
Z- The third axis has its own power source but the power
rating is relatively lower when compared with the majority
of machining centers. Another limitation may be the small-
est increment of the third axis, particularly on the early
three axis lathes. Smallest increment of one degree is cer-
tainly more useful than an increment of two or five degrees.
Even better is an increment of 0.1°, 0.01°, and commonly
0.001° on the latest models. Usually, lathes with three axes
offer a very fine radial increment that allows a simulta-
Figure 3-3 neous rotary motion. Those with low increment values are
Schematic representation of a vertical CNC lathe usually designed with an oriented spindle stop only.
This is true for both front and rear lathes, and for lathes From the perspective of CNC part programming, the ad-
with three or more axes. Chuck face is oriented vertically to ditional knowledge required is a subject not difficult to
the horizontal spindle center line for all horizontal lathes. learn. General principles of milling apply and many pro-
Vertical lathes, due to their design, are rotated by 90°, gramming features are also available, for example, fixed
where the chuck face is oriented horizontally to the vertical cycles and other shortcuts.
spindle center line.
CNC TURNING 13
the same job on a 2-axis CNC lathe. Axis travel in X-axis 222 mm
8.75 inches
Axis travel in Z-axis 635 mm
u Six-axis Lathe 25 inches
Rapid traverse rate X-axis 16000 mm/min
Six-axis CNC lathes are specially designed lathes with a 629 in/min
twin turret and a set of three axes per turret. This design in- Rapid traverse rate Z-axis 24000 mm/min
944 in/min
corporates many tool stations, many of them power driven,
Cutting feedrate 0.01 - 500 mm/rev
as well as back-machining capabilities. Programming these 0.0001 - 19.68 in/rev
lathes is similar to programming a three-axis lathe twice. 254 mm
Chuck size 10 inches
Control system automatically provides synchronization,
when necessary. Main spindle motor AC 15/11kW
AC 20/14.7HP
A small to medium size six-axis CNC lathe is popular Spindle speed 35 - 3500 rpm
choice of screw machine shops and industries with similar Minimum input increment 0.001 mm
small parts and large volume applications. 0.0001 inch
Motorized head:
FEATURES AND SPECIFICATIONS Number of rotating tools 12
It is very important to understand all specifications and n Thread cutting of various forms (including taper and
features of the CNC machine tools in the shop. Many fea- circular) can be performed, depending on the control
tures relate to the control system, many others to the ma- model
chine tool itself. In CNC programming, many important n Dwell can use the P, U or X address (G04)
decisions are based on one or several of these features, for
example number of tool stations available, maximum spin- n Tool selection uses 4-digit identification
dle speed and others. n Feedrate selection (normal) is in mm/rev or in/rev
One of the first major steps towards basic understanding Length of each division on the scale represents the unit of
of CNC principles and geometrical concepts is thorough measurement in a convenient and generally accepted scale.
understanding of a subject known in mathematics as the It may come as a surprise that this concept is used every
system of coordinates. System of coordinates is founded on day. For example, a simple ruler used in schools is based on
a number of mathematical principles dating back over four the number scale concept, regardless of measuring units.
hundred years. The most important of these principles are Weight scales using tons, pounds, kilograms, grams and
those that can be applied to CNC technology of today. In similar units of mass are other examples. A simple house-
various publications on mathematics and geometry, these hold thermometer uses the same principle. Other similar
principles are often listed under the headings such as the examples are available as well.
real number system and the rectangular coordinates.
RECTANGULAR COORDINATE SYSTEM
REAL NUMBER SYSTEM
Rectangular coordinate system is a concept used to de-
One main key to understanding rectangular coordinates fine a planar 2D point (two dimensions), using the XY co-
is understanding of basic math - arithmetic, algebra and ge- ordinates, or a spacial 3D point (three dimensions), using
ometry. The key knowledge in this area is knowledge of the the XYZ coordinates. This system was first defined in the
real number system. Within the real number system, there 17th century by a French philosopher and mathematician
are ten available numerals (digits), 0 to 9 (zero to nine), that Rene Descartes (1596-1650). His name is used as an alter-
can be used in any of the following groups: native name of the rectangular coordinate system, it is
called the Cartesian Coordinate System - see Figure 4-2.
n Zero integer … 0
n Positive integers … 1, 2, +3, 10, 12943, +45
(with or without sign)
n Negative integers … -4, -381, -25, -77
(minus sign required)
n Fractions … 1/8, 3/16, 9/32, 35/64
n Decimal fractions … 0.185, 0.2, 0.546875, 3.5, 15.0
All groups are used on a daily basis. These groups repre-
sent the mainstream of just about all applications of num-
bers in modern life. In CNC programming, the primary
goal is to use numbers to ‘translate’ engineering drawing -
based on its dimensions - into a specific cutter path.
Computerized Numerical Control means control by the Figure 4-2
numbers using a computer. All drawing information has to Rectangular coordinate system = Cartesian coordinate system
be translated into CNC program, using primarily numbers.
Numbers are also used to describe commands, functions, The concepts used in design, drafting and in numerical
comments, and so on. The mathematical concept of a real control are over 400 years old. A given point can be mathe-
number system can be expressed graphically on a horizon- matically defined on a plane (two coordinate values) or in
tal or a vertical line, called the number scale, where all divi- space (three coordinate values). The definition of one point
sions have the same length - Figure 4-1. is relative to another point as a distance parallel with one of
three axes that are perpendicular to each other. In a plane,
only two axes are required, in space, all three axes must be
specified. In programming, point represents an exact loca-
tion. If such a location is on a plane, the point is defined as a
Figure 4-1
2D point, along two axes. If the location is in space, the
point is defined as a 3D point, along three axes.
Graphical representation of the Number Scale
15
16 Chapter 4
When two number scales that intersect at right angles are u Point of Origin
used, mathematical basis for a rectangular coordinate sys- Another term that emerges from the rectangular coordi-
tem is created. Several terms emerge from this representa- nate system is called the point of origin, or just origin. It is
tion, and all have an important role in CNC programming. the exact point where the two perpendicular axes intersect.
Their understanding is very important for further progress. This point has a zero coordinate value in each axis, speci-
fied as planar X0Y0 and spacial X0Y0Z0 - Figure 4-4.
u Axes and Planes
Each major line of the number scale is called an axis. It Y-axis
could have either vertical or horizontal orientation. This
very old principle, when applied to CNC programming,
means that at least two axes - two number scales - will be
used. This is the mathematical definition of an axis:
X-axis
P4
Quadrant III Quadrant IV P5
X-Y- X+Y- Y-
P1 = X0.0 Y0.0 P4 = X4.0 Y-3.0
Figure 4-5 P2 = X0.0 Y4.0 P5 = X-5.0 Y-4.5
Quadrants in the XY plane and their identification P3 = X5.5 Y5.0 P6 = X-5.0 Y0.0
Figure 4-7
Any point coordinate value can be positive, negative or
zero. All point coordinates are determined solely by their Coordinate definition of points within rectangular coordinate system
Point P1 = Origin = X0Y0
location in a particular quadrant and individual distances
along an axis, again, relative to origin - Figure 4-6.
If these directions were superimposed over a human right
Coordinate hand, they would correspond to the direction from the root
Point location of thumb or finger towards its tip. Thumb would point in
X-axis Y-axis
the X+ direction, index finger in the Y+ direction and mid-
Quadrant I + + dle finger in the Z+ direction.
Quadrant II - + CNC machines are normally programmed using the so
called absolute coordinate method, that is based on the
Quadrant III - - point of origin being X0Y0Z0. This absolute programming
method follows very strictly the rules of rectangular coor-
Quadrant IV + - dinate geometry and all concepts covered in this chapter.
Figure 4-6
Algebraic signs for a point location in plane quadrants MACHINE GEOMETRY
n IMPORTANT: Machine geometry defines the relationship of distances
… If the defined point lies exactly on the X-axis, and dimensions between fixed point of the machine and
it has the Y value equal to zero (Y0) selectable point of the part. Typical geometry of CNC ma-
… If the point lies exactly on the Y-axis,
it has the X value equal to zero (X0) chines uses the right hand coordinate system. Positive and
… If the point lies exactly on both X and Y axes, negative axis direction is determined by an established
both X and Y values are zero (X0 Y0). viewing convention. The general rule for Z-axis is that it is
always the axis along which a simple hole can be machined
X0Y0Z0 is the point of origin. In part programming, pos- with a single point tool, such as a drill, reamer, wire, laser
itive values are written without the plus sign - Figure 4-7. beam, etc. Figure 4-8 on the next page illustrates standard
orientation of planes for XYZ type machine tools.
u Right Hand Coordinate System
u Axis Orientation - Milling
In all illustrations of number scale, quadrants and axes,
the origin divides each axis into two portions. The zero A typical vertical machining center has three controlled
point - the point of origin - separates the positive section of axes, defined as X-axis, Y-axis, and Z-axis. X-axis is paral-
an axis from the negative section. In the right-hand coordi- lel to the longest dimension of machine table, Y-axis is par-
nate system, the positive axis starts at origin and is directed allel to the shortest dimension of the table and Z-axis is the
towards the right for X-axis, upwards for Y-axis and to- spindle movement. On a vertical CNC machining center,
wards the perpendicular viewpoint for Z-axis. Opposite di- X-axis is the table longitudinal direction, Y-axis is the sad-
rections are always negative. dle cross direction, and Z-axis is the spindle direction.
18 Chapter 4
X+ Rear lathe Z+
c
b
Z+ X+ Front lathe
Z+
a
X+ Vertical lathe
Figure 4-10
Typical machine axis orientation for various CNC lathes
X+ Primary
axes
Secondary
Top view Isometric view axes
Arc center
Figure 4-9 vectors
Basic axes of a typical vertical CNC machining center Rotary
axes
u Axis Orientation - Turning
Standard CNC lathes have two axes, X and Z. More axes X-axis Y-axis Z-axis
related related related
are available, but they are not important at this point.
Special additional axes, such as C-axis and Y-axis, are de- Figure 4-11
signed for milling operations (live tooling) and require Relationship of primary and supplementary machine axes
unique version of a standard CNC lathe.
What is much more common for CNC lathes in industry, Arc center modifiers (sometimes called arc center vec-
is the double orientation of XZ axes. CNC lathes are sepa- tors) are not true axes, yet they are also related to primary
rated as front and rear lathes. An example of a front lathe is axes XYZ. This subject will be described in the section on
similar to the conventional engine lathe. All slant bed lathe Circular Interpolation, starting on page 243.
types are of the rear kind. Identification of axes in industry
have not always followed mathematical principles.
5 CONTROL SYSTEM
A machine unit equipped with a computerized numerical In order to fully understand CNC programming process,
control system is commonly known as a CNC machine. In it is important to understand not only the intricacies of how
an analogy of the machine tool being the body of a CNC to machine a part, what tools to select, what speeds and
machine system, the control unit is its brain, its nerve cen- feeds to use, how to setup the job and many other features.
ter. There are no levers, no knobs and no handles on a CNC It is equally important to know how the computer, the CNC
machine the way they function on conventional milling unit, actually works without the need to be an expert in
machines and lathes. All machine speeds, feeds, axes mo- electronics or a computer scientist. Figure 5-1 shows an ac-
tions and hundreds of other tasks are programmed by a tual Fanuc control panel.
CNC programmer and controlled by a computer that is ma-
jor part of the CNC unit. To make a program for a CNC ma- Machine manufacturers add their own operation panel,
chine tool means to make a program for the control system. with all switches and button needed to operate their CNC
True, the machine tool is a major consideration as well, but machine and all its features. A typical operation panel is il-
it is the control unit that determines the program format, its lustrated in Figure 5-2. Another item required for the sys-
structure and its syntax. tem, the handle, will be described as well.
X U Y V ZW Q ? 4 5 6 INSERT
ON
HELP I , J A K@ R 1 2 3 DELETE
OFF
M# S = T L + - 0 .
*
SHIFT F [ D ] H & BSP / EOB CAN INPUT
OFFSET
POS PROG CUSTOM
PAGE SETTING
PAGE
Figure 5-1
A typical example of a Fanuc control panel - actual layout and features will vary on different models (Fanuc 16M)
19
20 Chapter 5
GENERAL DESCRIPTION The control unit - the CNC system - contains features that
only work in conjunction with the program, it does not do
anything useful on its own. Some features can be used only
Even a brief look at any control unit reveals that there are
if the program itself supports them. All switches and buttons
two basic components - one is the operation panel, full of
and keys are used by the machine operator, to exercise con-
rotary switches, toggle switches and push buttons. The
trol over program execution and machining process.
other component is the display screen with a keyboard or a
keypad. A programmer who does not normally work on the u Operation Panel
CNC machine will seldom, if ever, have a reason to use ei-
ther the operation panel or the display screen. They are Depending on CNC machine type, the following table
available at the machine to the CNC machine operator, and covers the most typical and common features found on
used for machine setup as well as to control the activities of modern operation panel. There are some small differences
the machine. for operation of a machining center and a lathe, but both
operation panels are similar. As with any general reference
Should the CNC programmer be at least interested in the book, it is always a good idea to double check with the
machine operation? Is it necessary for the programmer to manufacturer specifications and recommendations. It is
know and understand all functions of the control system? common that many machines used in the shop have some
There is only one answer to both questions - definitely yes. special features.
OPTIONAL SINGLE BLOCK M-S-T Z-AXIS MACHINE DRY MANUAL AUTO COOLANT
STOP BLOCK SKIP LOCK NEGLECT LOCK RUN ABSOLUTE POWER FUNCTION
ON ON ON ON ON ON ON ON ON ON
OFF
OFF OFF OFF OFF OFF OFF OFF OFF OFF AUTO
25 50 80 90
70 100
F1 100 60 110
Figure 5-2
A typical operation panel of a CNC machining center - actual layout and features will vary on different models
CONTROL SYSTEM 21
Feedhold Temporarily stops motion of all axes EDIT Allows changes to be made to a
mode program stored in CNC memory
Single Block Allows program run one block at a time
MANUAL
Temporarily stops program Allows manual operations during setup
Optional Stop Mode
execution (M01 required in program)
JOG Mode Selects jog mode for setup
Ignores blocks preceded with
Block Skip
a forward slash ( / ) in the program RAPID Mode Selects rapid mode for setup
Enables program testing at fast Memory
Dry Run Key (switch) to allow program editing
feedrates (without a mounted part) Access
Spindle Overrides programmed spindle speed, Error Lights Red light indicating an error
Override usually within 50-120% range
Feedrate Overrides programmed feedrate, Even if some features may not be listed, virtually all of
Override usually within 0-200% range those in the table are somewhat related to CNC program.
Many control systems have unique features of their own.
Chuck Shows current status of the chuck These features must be known to the CNC operator. The
Clamp clamping (Outside / Inside clamping) program supplied to the machine should be flexible, not
rigid - it should be 'user friendly'.
Table Clamp Shows current status of table clamping
u Screen Display and Keyboard
Coolant
Coolant control ON / OFF / AUTO
Switch Screen display is the 'window' to control operation. Any
Gear Shows current status of working
active program can be viewed, including the control status,
Selection gear range selection current tool position, various offsets, parameters, even a
graphic representation of the toolpath. On all CNC units,
Spindle Indicates spindle rotation direction individual monochrome or color screens can be selected to
Rotation (clockwise or counterclockwise) have the desired display at any time, using the input keys
(keyboard pads and soft keys). Setting for international
Spindle languages is also possible.
Manual orientation of the spindle
Orientation
Keyboard pads and soft keys are used to input instruc-
Tool Change Switch allowing a manual tool change tions to the control. Existing programs can be modified or
deleted, new programs can be added. Using keyboard in-
Reference Switches and lights relating to setup put, not only the machine axes motion can be controlled,
Position of machine, from reference position but the spindle speed and feedrate as well. Changing inter-
Manual Pulse Generator (MPG), nal parameters and evaluating various diagnostics are more
Handle (MPG) used for Axis Select and Handle specific means of control, often restricted to service people.
Increment switches Keyboard and screen are used to set program origin and to
hook up to external devices, such as a connection with an-
Tailstock Tailstock and/or quill switch to manually other computer. There are many other options, particularly
Switch position the tailstock for multi axis machines. Every keyboard allows the use of
letters, digits and symbols for data entry. Not every key-
Indexing Manually indexes machine table board allows the use of all alphabet letters or all available
Table Switch during setup symbols. Some control panel keys have a description of an
MDI Mode Manual Data Input mode operation, rather than a letter, digit or symbol, for example,
Read and Punch keys or the Offset key.
22 Chapter 5
u Parameter Settings
0
90
10 Information that establishes the built-in connection be-
tween the CNC control and the machine tool is stored as
special data in internal registers, called system parameters.
20
80
70
These groups use different input values. The binary input Parameters related to High-Speed Skip Signal Input
can only have an input of a 0 or 1 for the bit data format, 0 Parameters related to Automatic Tool Compensation
to +127 for the byte type. Units input has a broader scope - Parameters related to Tool Life Management
units can be in mm, inches, mm/min, in/min, degrees, milli- Parameters related to Turret Axis Control
seconds, etc. A value can also be specified within a given Parameters related to High Precision Contour Control
range, for example, a number within the range of 0-99, or Parameters related to Service … and other
0-99999, or +127 to -127, etc. parameters
A typical example of a binary input is a selection between Quite a few parameters have nothing to do with daily
two options. For instance, a feature called dry run can be programming and are listed only as an actual example. All
set only as effective or ineffective. To select a preference, an system parameters should be set or changed only by a qual-
arbitrary bit number of a parameter has be set to 0 to make ified person, such as an experienced service technician. A
the dry run effective and to 1 to make it ineffective. programmer or operator should not modify any parameter
settings. These changes require not only qualifications but
Units input, for example, is used to set the increment sys- authorization as well. Keep the list of original parameter
tem - the dimensional units. Computers in general do not settings away from the control, in a safe place, just in case.
distinguish between imperial and metric units, just num-
bers. It is up to the user and the parameter setting, whether Take care when changing control system parameters !
the control will recognize 0.001 mm or 0.0001 inches as
the least increment. Another example is a parameter setting Many parameters are periodically updated during pro-
that stores the maximum feedrate for each axis, the maxi- gram processing. CNC operator is usually not aware that
mum spindle speed, etc. Such values must never be set this activity is going on at all. There is no real need to moni-
higher than the machine itself can support. An indexing tor this activity. The safest rule to observe is that once the
axis with a minimum increment of 1°, will not become a ro- parameters have been set by a qualified technician, any
tary axis with 0.001° increment, just because the parameter temporary changes required for a given work should be
is set to a lower value, even if it is possible. Such a setting done through the CNC program. If permanent changes are
is wrong and can cause serious damage! required, an authorized person should be assigned to do
them - nobody else. Some parameters may be changed -
To better understand what CNC system parameters can very carefully - through the program - see page 405.
do, here is an abbreviated listing of parameter classification
for a typical Fanuc control system (many of them are u
meaningful to the service technicians only):
System Defaults
Many parameter settings stored in control at the time of
Parameters related to Setting
Parameters related to Axis Control Data purchase have been entered by the manufacturer as either
Parameters related to Chopping the only choices, the most suitable choices, or the most
Parameters related to the Coordinate System common selections. That does not mean they will be the
Parameters related to Feedrate preferred settings - it means they were selected on the basis
Parameters related to Acceleration/Deceleration Control of their common usage. Many settings are rather conserva-
Parameters related to Servo tive in their values, for safety reasons.
Parameters related to DI/DO The set of parameter values established at the time of in-
Parameters related to MDI, EDIT, and CRT stallation are called the default settings. The English word
Parameters related to Programs 'default' is a derivative of a French word 'defaut', that can
Parameters related to Serial Spindle Output be translated as 'assumed'. When main power to the control
Parameters related to Graphic Display
is turned on, there are no set values passed to parameters
Parameters related to I/O interface
Parameters related to Stroke Limit from a program, since no program has yet been used. How-
Parameters related to Pitch Error Compensation ever, certain settings become active automatically, without
Parameters related to Inclination Compensation an external program. For instance, a cutter radius offset is
Parameters related to Straightness Compensation automatically canceled at the control system startup. Also
Parameters related to Spindle Control canceled are the fixed cycle mode and tool length offset.
Parameters related to Tool Offset The control 'assumes' that certain conditions are preferable
Parameters related to Canned Cycle to others. Many operators will agree with most of these ini-
Parameters related to Scaling and Coordinate Rotation tial settings, although not necessarily with all of them.
Parameters related to Automatic Corner Override Some settings are customizable by a change of a parameter
Parameters related to Involute Interpolation settings. Such settings will become permanent and create a
Parameters related to Uni-directional Positioning new 'default'.
Parameters related to Custom Macro (User Macro)
Parameters related to Program Restart Always document any changes made to parameters !
24 Chapter 5
A computer is fast and accurate but has no intelligence. Modern methods of measuring memory capacity prefer
People are often slow and make errors, but have one unique to use bytes as the unit, rather that a length of an obsolete
ability - they think. A computer is just a machine that does tape. A byte is the smallest unit of storage capacity and is
not assume anything, does not consider, does not feel - very roughly equivalent to one character in the program.
computer does not think. A computer does not do anything
that a human effort and ingenuity has not done during the Memory capacity of the control system should be large
design process, in form of hardware and software. enough to store the longest CNC program expected on a
regular basis. That requires some planning before the CNC
When a CNC machine is powered, its internal software machine is purchased. For example, in three dimensional
sets certain existing parameters to their default condition, mold work or high speed machining, the cost of additional
designed by engineers. Not all system parameters, only memory capacity may be very high. Although any cost is a
certain parameters can have an assumed condition - a con- relative term, there are reliable and inexpensive alterna-
dition that is known as the default value (condition). tives, well worth looking into.
For example, a tool motion has three basic modes - a One alternative is running the CNC program from a per-
rapid motion, a linear motion and a circular motion. The sonal computer. An inexpensive communication software
default motion setting is controlled by a parameter. Only and cabling is required to connect the computer with the
one setting can be active at the startup. Which one? The an- CNC system. The simplest version is to transfer a CNC
swer depends on the parameter setting. Many parameters program from one computer to the other. More sophisti-
can be preset to a desired state. Only the rapid or linear cated possibility includes software and cables that can ac-
mode can be set as default in the example. Since rapid mo- tually run the machine from a personal computer, without
tion is the first motion in most programs, it seems to make loading it into the CNC memory first. This method is often
sense to make it a default - but wait! called 'drip-feeding' or 'bitwise input'. When operated from
a personal computer, the CNC program can be as long as
Most controls are set to linear motion as the default (G01 the storage device capacity, typically the hard drive.
command) to be in effect at the start - strictly for safety rea-
sons. When machine axes are moved manually, the param- Most CNC programs will fit into the CNC internal mem-
eter setting has no effect. If a manual input of an axis com- ory. Many controls use the number of available characters
mand value takes place, either through the program or from or the equivalent length of tape. Here are some formulas
the control panel, a tool motion results. If a motion com- that can be used to get at least approximate memory capac-
mand is not specified, CNC system will use the command ity calculations:
mode that had been preset as the default in the parameters.
Since the default mode is linear motion G01, the result is an ò Formula 1 :
error condition, faulting the system for the lack of feed-
rate! There is no cutting feedrate in effect, which the G01 To find the program length in meters, when the capacity
requires. Had the default setting been rapid motion G00, a is known in characters, use the following formula:
rapid motion would be performed, as it does not need pro-
grammed feedrate. S m = N c ´ 0.00254
It is beneficial to know the default settings of all controls
in the shop. Unless there is a good reason to do otherwise, + where . . .
defaults for similar controls should be the same.
Sm = Storage capacity in meters
Nc = Memory capacity (number of characters)
u Memory Capacity
CNC programs can be stored in the control memory. Pro- ò Formula 2 :
gram size is only limited by the control internal capacity. To find the length of program in feet, when the capacity is
This capacity is measured in variety of ways, originally as known in characters, use the following formula:
the equivalent length of tape in meters or feet, lately as the
number of bytes or the number of screen pages. A common
Nc
minimum memory capacity of a small CNC lathe control Sf =
may be 20m of tape (66 ft). This is an old fashioned method 120
that somehow persisted in staying with us. On CNC milling
systems, the memory requirements based on the same crite-
ria are generally larger and the typical minimum memory + where . . .
capacity is 80 m or about 263 ft. Optionally, larger memory
Sf = Storage capacity in feet
capacity can be added to any control system. The minimum Nc = Memory capacity (number of characters)
memory capacity of a control varies from one machine to
another - always check control specifications carefully.
Exploring the Variety of Random
Documents with Different Content
said for the children, probably.”
It certainly was. Never had a photographer a more hard-working
morning. No blame to the weather, which (alas, for the salmon-
fishers!) was perfect as ever; but the difficulty of catching the sitters
and arranging them, and keeping them steady, was enormous.
First the servants all wished to be taken; some separately, and then
in a general group, which was arranged beside the kitchen door, the
scullery being converted into a “dark room” for the occasion. One
after the other, the maids disappeared, and re-appeared full-dressed,
in the most wonderful crinolines and chignons, but looking not half so
picturesque as a Highland farm-girl, who, in her woollen striped
petticoat and short gown, with her dark red hair knotted up behind,
sat on the wall of the yard contemplating the proceedings.
The children ran hither and thither, highly delighted, except Franky
and Austin Thomas, who were made to suffer a good deal, the latter
being put into a stiff white piqué frock, braided with black braid,
which looked exactly as if some one had mistaken him for a sheet of
letter-paper and begun to write upon him; while Franky, dressed in
his Sunday’s best, with his hair combed and face clean, was in an
aggravating position for his ordinary week-day amusements. He
consoled himself by running in and out among the servants, finally
sticking himself in the centre of the group, and being depicted there,
as natural as life.
A very grand picture it was, the men-servants being in front,—
Highland men always seem to consider themselves superior beings,
and are seen lounging about and talking, while the women are
shearing, or digging, or hoeing potatoes. The maids stood in a row
behind, bolt upright, smiling as hard as they could, and little Franky
occupied the foreground, placed between the gardener’s knees. A
very successful photograph, and worthy of going down to posterity,
as doubtless it will.
Now for the children. The baby, passive in an embroidered muslin
frock, came out, of course, as a white mass with something
resembling a face at the top; but Austin Thomas was a difficult
subject. He wouldn’t sit still, no, not for a minute, but kept wriggling
about on the kitchen chair that was brought for him, and looked so
miserable in his stiff frock, that his expression was just as if he were
going to be whipped, and didn’t like it at all.
In vain Franky, who always patronised and protected his next
youngest brother in the tenderest way, began consoling him: “Never
mind, sonnie,”—that was Franky’s pet name for Austin,—“they
sha’n’t hurt you. I’ll take care they don’t hurt you.”
Still the great black thing, with the round glass eye fixed upon him,
was too much for Austin’s feelings. He wriggled, and wriggled, and
never would this likeness have been taken at all,—at least that
morning,—if somebody had not suggested “a piece.” Off flew Mary,
the cook, and brought back the largest “piece”—bread with lots of
jam upon it—that ever little Scotchman revelled in. Austin took it, and
being with great difficulty made to understand that he must pause in
eating now and then, the photographer seized the happy moment,
and took him between his mouthfuls, with Franky keeping guard over
him the while, lest anybody did him any harm. And a very good
picture it is, though neither boy is quite handsome enough, of
course. No photographs ever are.
Little Sunshine, meanwhile, had been deeply interested in the whole
matter. She was quite an old hand at it, having herself sat for her
photograph several times.
“Would you like to see my likenesses?” she kept asking anybody or
everybody; and brought down the whole string of them, describing
them one by one: “Sunny in her mamma’s arms, when she was a
little baby, very cross;” “Sunny just going to cry;” “Sunny in a boat;”
“Sunny sitting on a chair;” “Sunny with her shoes and stockings off,
kicking over a basket;” and lastly (the little show-woman always
came to this with a scream of delight), “That’s my papa and mamma,
Sunny’s own papa and mamma, both together!”
Though then she had not been in the least afraid of the camera, but,
when the great glass eye looked at her, looked steadily at it back,
still she did not seem to like it now. She crept beside her mamma
and her Lizzie, looking on with curiosity, but keeping a long way off,
till the groups were done.
There were a few more taken, in one of which Sunny stood in the
doorway in her Lizzie’s arms.
And her papa and mamma, who meanwhile had taken a good long
walk up the hill-road, came back in time to figure in two rows of black
dots on either side of a shady road, which were supposed to be
portraits of the whole party. The mountains opposite also sat for their
likenesses,—which must have been a comfort to the photographer,
as they at least could not “move.” But, on the whole, the honest man
made a good morning’s work, and benefited considerably thereby.
Which was more than the household did. For, as was natural, the
cook being dressed so beautifully, the dinner was left pretty much to
dress itself. Franky and Austin Thomas suffered so much from
having on their best clothes that they did not get over it for ever so
long. And Sunny, too, upset by these irregular proceedings, when
taking a long-promised afternoon walk with her papa, was as cross
as such a generally good little girl could be, insisting on being carried
the whole way, and carried only by her mamma. And though, as
mamma often says, “she wouldn’t sell her for her weight in gold,” she
is a pretty considerable weight to carry on a warm afternoon.
Still the day had passed pleasantly away, the photographs were all
done, to remain as memorials of the holiday, long after it was ended.
In years to come, when the children are all men and women, they
may discover them in some nook or other, and try to summon up
faint recollections of the time. Oh, if Little Sunshine might never cry
except to be carried in mamma’s arms! and Austin Thomas find no
sorer affliction in life than sitting to be photographed in stiff white
clothes!
But that cannot be. They must all bear their burdens, as their parents
did. May God take care of them when we can do it no more!
The week had rolled by,—weeks roll by so fast!—and it was again
Sunday, the last Sunday at the glen, and just such another as
before: calm, still, sunshiny; nothing but peace on earth and sky.
Peace! when far away beyond the circle of mountains within which
parents and children were enjoying such innocent pleasures, such
deep repose, there was going on, for other parents and children, the
terrible siege of Paris. Week by week, and day by day, the Germans
were closing in round the doomed city, making ready to destroy by
fire, or sword, or famine,—all sent by man’s hand, not God’s,—
hundreds, thousands of innocent enemies. Truly, heaven will have
been well filled, and earth well emptied during the year 1870.
What a glorious summer it was, as to weather, will long be
remembered in Scotland. Even up to this Sunday, the 2d of October,
the air was balmy and warm as June. Everybody gathered outside
on the terrace, including the forlorn salmon-fishers, whose last hope
was now extinguished; for the patient gentleman, and Sunny’s papa,
too, were to leave next morning. And the fish jumped up in the
glassy loch, livelier than ever, as if they were having a special jubilee
in honour of their foe’s departure.
He sat resigned and cheerful, smoking his cigar, and protesting that,
with all his piscatory disappointments, this was the loveliest place he
had ever been in, and that he had spent the pleasantest of holidays!
There he was left to enjoy his last bit of the mountains and loch in
quiet content, while everybody else went to church.
Even Little Sunshine. For her mamma and papa had taken counsel
together whether it was not possible for her to be good there, so as
at least to be no hindrance to other people’s going, which was as
much as could be expected for so small a child. Papa doubted this,
but mamma pleaded for her little girl, and promised to keep her good
if possible. She herself had a great desire that the first time ever
Sunny went to church should be in this place.
So they had a talk together, mamma and Sunny, in which mamma
explained that Sunny might go to church, as Maurice and Eddie did,
if she would sit quite quiet, as she did at prayers, and promise not to
speak one word, as nobody ever spoke in church excepting the
minister. She promised, this little girl who has such a curious feeling
about keeping a promise, and allowed herself to be dressed without
murmuring—nay, with a sort of dignified pride—to “go to church.”
She even condescended to have her gloves put on, always a severe
trial; and never was there a neater little figure, all in white from top to
toe, with a white straw hat, as simple as possible, and the yellow
curls tumbling down from under it. As she put her little hand in her
mamma’s and they two started together, somewhat in advance of the
rest, for it was a long half-mile for such baby feet, her mamma
involuntarily thought of a verse in a poem she learnt when she
herself was a little girl:
“Thy dress was like the lilies,
And thy heart was pure as they;
One of God’s holy angels
Did walk with me that day.”
Only Sunny was not an angel, but an ordinary little girl. A good little
girl generally, but capable of being naughty sometimes. She will
have to try hard to be good every day of her life, as we all have. Still,
with her sweet, grave face, and her soft, pretty ways, there was
something of the angel about her this day.
Her mamma tried to make her understand, in a dim way, what
“church” meant,—that it was saying “thank you” to God, as mamma
did continually; especially for His giving her her little daughter. How
He lived up in the sky, and nobody saw Him, but He saw everybody;
how He loved Little Sunshine, just as her papa and mamma loved
her, and was glad when she was good, and grieved when she was
naughty. This was all the child could possibly take in, and even thus
much was doubtful; but she listened, seeming as if she
comprehended a small fragment of the great mystery which even we
parents understand so little. Except that when we look at our
children, and feel how dearly we love them, how much we would
both do and sacrifice for them, how if we have to punish them it is
never in anger but in anguish and pain, suffering twice as much
ourselves the while,—then we can faintly understand how He who
put such love into us, must Himself love infinitely more, and meant
us to believe this, when He called Himself our Father. Therefore it
was that through her papa’s and mamma’s love Sunny could best be
taught her first dim idea of God.
She walked along very sedately, conversing by the way, and not
attempting to dart from side to side, after one object or another, as
this butterfly child always does on a week-day. But Sunday, and
Sunday clothes, conduced exceedingly to proper behaviour.
Besides, she felt that she was her mamma’s companion, and was
proud accordingly. Until, just before reaching the church, came a
catastrophe which certainly could not have happened in any other
church-going walk than this.
A huge, tawny-coloured bull stood in the centre of the road, with half
a dozen cows and calves behind him. They moved away, feeding
leisurely on either side the road, but the bull held his ground, looking
at mamma and Sunny from under his shaggy brows, as if he would
like to eat them up.
“Mamma, take her!” whispered the poor little girl, rather frightened,
but neither crying nor screaming.
Mamma popped her prayer-book in her pocket, dropped her parasol
on the ground, and took up her child on her left arm, leaving the right
arm free. A fortnight ago she would have been alarmed, but now she
understood the ways of these Highland cattle, and that they were not
half so dangerous as they looked. Besides, the fiercest animal will
often turn before a steady, fearless human eye. So they stood still,
and faced the bull, even Sunny meeting the creature with a gaze as
firm and courageous as her mamma’s. He stood it for a minute or so,
then he deliberately turned tail, and walked up the hillside.
“The big bull didn’t hurt Sunny! He wouldn’t hurt little Sunny, would
he, mamma?” said she, as they walked on together. She has the
happiest conviction that no creature in the world would ever be so
unkind as to hurt Sunny. How should it, when she is never unkind to
any living thing? When the only living thing that ever she saw hurt—a
wasp that crept into the carriage, and stung Sunny on her poor little
leg, and her nurse was so angry that she killed it on the spot—
caused the child a troubled remembrance. She talked, months
afterward, with a grave countenance, of “the wasp that was obliged
to be killed, because it stung Sunny.”
She soon looked benignly at the big bull, now standing watching her
from the hillside, and wanted to play with the little calves, who still
stayed feeding near. She was also very anxious to know if they were
going to church too? But before the question—a rather puzzling one
—could be answered, she was overtaken by the rest of the
congregation, including Maurice and Eddie with their parents. The
two boys only smiled at her, and walked into church, so good and
grave that Sunny was impressed into preternatural gravity too. When
the rest were seated, she, holding her mamma’s hand, walked
quietly in as if accustomed to it all and joined the congregation.
The seat they chose was, for precaution, the one nearest the door,
and next to “the pauper,” an old man who alone of all the inhabitants
of the glen did not work, but received parish relief. He was just able
to come to church, but looked as if he had “one foot in the grave,” as
people say (whither, indeed, the other foot soon followed, for the
poor old man died not many weeks after this Sunday). He had a
wan, weary, but uncomplaining face; and as the rosy child, with her
bright curls, her fair, fresh cheeks, and plump, round limbs, sat down
upon the bench beside him, the two were a strange and touching
contrast.
Two little churchgoers.
Never did any child behave better than Little Sunshine, on this her
first going to church. Yes, even though she soon caught sight of her
own papa, sitting a few benches off, but afraid to look at her lest she
should misbehave. Also of Maurice’s papa and mamma, and of
Maurice and Eddie themselves, not noticing her at all, and behaving
beautifully. She saw them, but, faithful to her promise, she did not
speak one word, not even in a whisper to mamma. She allowed
herself to be lifted up and down, to sit or stand as the rest did, and
when the music began she listened with an ecstasy of pleasure on
her little face; but otherwise she conducted herself as well as if she
had been thirteen instead of not quite three years old. Once only,
when the prayers were half through, and the church was getting
warm, she gravely took off her hat and laid it on the bench before
her,—sitting the rest of the service with her pretty curls bare,—but
that was all.
During the sermon she was severely tried. Not by its length, for it
was fortunately short, and she sat on her mamma’s lap, looking
fixedly into the face of the minister, as pleased with him in his new
position as when he was rowing her in the boat, or gathering nuts for
her along the canal bank. All were listening, as attentive as possible,
for everybody loved him, Sundays and week-days; and even Sunny
herself gazed as earnestly as if she were taking in every word he
said,—when her quick little eyes were caught by a new interest,—a
small, shaggy Scotch terrier, who put his wise-looking head
inquiringly in at the open door.
Oh, why was the church door left open? No doubt, so thought the
luckless master of that doggie! He turned his face away; he kept as
quiet as possible, hoping not to be discovered; but the faithful animal
was too much for him. In an ecstasy of joy, the creature rushed in
and out and under several people’s legs, till he got to the young man
who owned him, and then jumped upon him in unmistakable
recognition. Happily, he did not bark; indeed, his master, turning red
as a peony, held his hand over the creature’s mouth.
What was to be done? If he scolded the dog, or beat him, there
would be a disturbance immediately; if he encouraged or caressed
him, the loving beast would have begun—in fact, he did slightly
begin—a delighted whine. All the perplexed master could do was to
keep him as quiet as circumstances allowed, which he managed
somehow by setting his foot on the wildly wagging tail, and twisting
his fingers in one of the long ears, the dog resisting not at all. Quite
content, if close to his master, the faithful beast snuggled down,
amusing himself from time to time by gnawing first a hat and then an
umbrella, and giving one small growl as an accidental footstep
passed down the road; but otherwise behaving as well as anybody in
church. The master, too, tried to face out his difficulty, and listen as if
nothing was the matter; but I doubt he rather lost the thread of the
sermon.
So did Sunny’s mamma for a few minutes. Sunny is so fond of little
doggies, that she fully expected the child to jump from her lap, and
run after this one; or, at least, to make a loud remark concerning it,
for the benefit of the congregation generally. But Sunny evidently
remembered that “nobody spoke in church;” and possibly she
regarded the dog’s entrance as a portion of the service, for she
maintained the most decorous gravity. She watched him, of course,
with all her eyes; and once she turned with a silent appeal to her
mamma to look too, but said not a word. The little terrier himself did
not behave better than she, to the very end of the service.
It ended with a beautiful hymn,—“O Thou from whom all goodness
flows.” Everybody knows it, and the tune too; which I think was
originally one of those sweet litanies to the Virgin which one hears in
French churches, especially during the month of May. The little
congregation knew it well, and sang it well, too. When Sunny saw
them all stand up, she of her own accord stood up likewise,
mounting the bench beside the old pauper, who turned half round,
and looked on the pleasant child with a faint, pathetic sort of smile.
Strange it was to stand and watch the different people who stood
singing, or listening to, that hymn; Maurice and Eddie, with their
papa and mamma; other papas and mammas with their little ones;
farmers and farm-servants who lived in the glen, with a chance
tourist or two who happened to be passing through; several old
Highland women, grim and gaunt with long, hard-working lives; the
poor old pauper, who did not know that his life was so nearly over;
and lastly, the little three-year-old child, with her blue eyes wide open
and her rosy lips parted, not stirring a foot or a finger, perfectly
motionless with delight. Verse after verse rose the beautiful hymn,
not the less beautiful because so familiar:
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com