0% found this document useful (0 votes)
15 views

Download CNC programming handbook a comprehensive guide to practical CNC programming 3rd ed Edition Smid ebook All Chapters PDF

handbook

Uploaded by

vujicpheng6l
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Download CNC programming handbook a comprehensive guide to practical CNC programming 3rd ed Edition Smid ebook All Chapters PDF

handbook

Uploaded by

vujicpheng6l
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 67

Visit https://ebookfinal.

com to download the full version and


explore more ebook

CNC programming handbook a comprehensive guide to


practical CNC programming 3rd ed Edition Smid

_____ Click the link below to download _____


https://ebookfinal.com/download/cnc-programming-
handbook-a-comprehensive-guide-to-practical-cnc-
programming-3rd-ed-edition-smid/

Explore and download more ebook at ebookfinal.com


Here are some recommended products that might interest you.
You can download now and explore!

Machining and Cnc Technology 3rd Revised edition Edition


Michael Fitzpatrick

https://ebookfinal.com/download/machining-and-cnc-technology-3rd-
revised-edition-edition-michael-fitzpatrick/

ebookfinal.com

Practical Programming for Strength Training 3rd Edition


Rippetoe

https://ebookfinal.com/download/practical-programming-for-strength-
training-3rd-edition-rippetoe/

ebookfinal.com

Programming in Scala A Comprehensive Step by Step Guide


Third Edition Martin Odersky

https://ebookfinal.com/download/programming-in-scala-a-comprehensive-
step-by-step-guide-third-edition-martin-odersky/

ebookfinal.com

Introduction to Java Programming Comprehensive Version 6th


Edition Liang

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

Adapted aquatics programming a professional guide 2nd ed


Edition Monica Lepore

https://ebookfinal.com/download/adapted-aquatics-programming-a-
professional-guide-2nd-ed-edition-monica-lepore/

ebookfinal.com

Beginning Programming for Dummies 3rd ed Edition Wallace


Wang

https://ebookfinal.com/download/beginning-programming-for-dummies-3rd-
ed-edition-wallace-wang/

ebookfinal.com

Head First Programming A Learner s Guide to Programming


Using the Python Language 1st Edition David Griffiths

https://ebookfinal.com/download/head-first-programming-a-learner-s-
guide-to-programming-using-the-python-language-1st-edition-david-
griffiths/
ebookfinal.com

Websphere Studio Application Developer Version 5


Programming Guide Programming Guide 1st Edition Ibm
Redbooks
https://ebookfinal.com/download/websphere-studio-application-
developer-version-5-programming-guide-programming-guide-1st-edition-
ibm-redbooks/
ebookfinal.com
CNC programming handbook a comprehensive guide to
practical CNC programming 3rd ed Edition Smid Digital
Instant Download
Author(s): Smid, Peter
ISBN(s): 9782282282305, 2112112112
Edition: 3rd ed
File Details: PDF, 32.98 MB
Year: 2008
Language: english
CNC
Programming
Handbook
Third Edition
A Comprehensive Guide to Practical CNC Programming

Peter Smid

Industrial Press, Inc.


989 Avenue of the Americas
New York, NY 10018, USA
http://www.industrialpress.com
Library of Congress Cataloging-in-Publication Data

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.

TJ1189 .S592 2000


621.9'023--dc21
00-023974

Third Edition

CNC Programming Handbook

Industrial Press, Inc.


989 Avenue of the Americas
New York, NY 10018, USA

Copyright Ó 2007. Printed in the United States of America.


All Rights Reserved.
This book or parts thereof may not be reproduced, stored in a retrieval

system, or transmitted in any form without the permission of the publishers.

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:

CNC Programming Techniques, An Insider's Guide to Effective Methods and Applications


ISBN (0-8311-)3185-3
Fanuc CNC Custom Macros, Practical Resources for Fanuc Custom Macro B Users
ISBN (0-8311-)3157-8
Both books have been published by Industrial Press. Inc. and are also available as eBooks.

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

Disadvantages . . . . . . . . . . . . . . . . . 32 APPLICATIONS FOR MILLING . . . . . 51


Advantages . . . . . . . . . . . . . . . . . . 32 APPLICATIONS FOR TURNING . . . . . 53
CAD/CAM AND CNC . . . . . . . . 33 G-CODES IN A PROGRAM BLOCK . . . . 54
Integration . . . . . . . . . . . . . . . . . . 33 Modality of G-codes . . . . . . . . . . . . . . . 54
Future of Manual Programming . . . . . . . . . . 33 Conflicting Commands in a Block . . . . . . . . . 54
TYPICAL PROGRAMMING PROCEDURE . . . 33 Word Order in a Block . . . . . . . . . . . . . . 55
PART DRAWING . . . . . . . . . 34 GROUPING OF COMMANDS . . . . . . 55
Title Block . . . . . . . . . . . . . . . . . . . 34 Group Numbers . . . . . . . . . . . . . . . . 55
Dimensioning . . . . . . . . . . . . . . . . . 34 G-CODE TYPES . . . . . . . . . 56
Tolerances. . . . . . . . . . . . . . . . . . . 36
G-Codes and Decimal Point . . . . . . . . . . . . 56
Surface Finish . . . . . . . . . . . . . . . . . 36
Drawing Revisions . . . . . . . . . . . . . . . 36
Special Instructions . . . . . . . . . . . . . . . 37 9 - MISCELLANEOUS FUNCTIONS 57
METHODS SHEET . . . . . . . . . 37
MATERIAL SPECIFICATIONS . . . . . . 37 DESCRIPTION AND PURPOSE . . . . . 57
Material Uniformity . . . . . . . . . . . . . . . 37 Machine Related Functions . . . . . . . . . . . . 57
Machinability Rating . . . . . . . . . . . . . . . 37 Program Related Functions . . . . . . . . . . . . 57

MACHINING SEQUENCE . . . . . . . 38 TYPICAL APPLICATIONS . . . . . . . 58


Applications for Milling. . . . . . . . . . . . . . 58
TOOLING SELECTION. . . . . . . . 38 Applications for Turning . . . . . . . . . . . . . 58
PART SETUP . . . . . . . . . . 39 Special MDI Functions . . . . . . . . . . . . . . 58
Setup Sheet . . . . . . . . . . . . . . . . . . 39 Application Groups . . . . . . . . . . . . . . . 58

TECHNOLOGICAL DECISIONS . . . . . 39 M-FUNCTIONS IN A BLOCK . . . . . . 59


Cutter Path . . . . . . . . . . . . . . . . . . 39 Startup of M-Functions. . . . . . . . . . . . . . 60
Machine Power Rating . . . . . . . . . . . . . . 40 Duration of M-Functions . . . . . . . . . . . . . 60
Coolants and Lubricants . . . . . . . . . . . . . 40 PROGRAM FUNCTIONS . . . . . . . 60
WORK SKETCH AND CALCULATIONS . . . 41 Program Stop . . . . . . . . . . . . . . . . . 60
Identification Methods . . . . . . . . . . . . . . 41 Optional Program Stop . . . . . . . . . . . . . . 61
Program End . . . . . . . . . . . . . . . . . . 62
QUALITY IN CNC PROGRAMMING . . . . 42 Subprogram End . . . . . . . . . . . . . . . . 62
MACHINE FUNCTIONS . . . . . . . 62
7 - PART PROGRAM STRUCTURE 43 Coolant Functions . . . . . . . . . . . . . . . 62
Spindle Functions . . . . . . . . . . . . . . . . 63
BASIC PROGRAMMING TERMS . . . . . 43 Gear Range Selection . . . . . . . . . . . . . . 64
Character . . . . . . . . . . . . . . . . . . . 43 Machine Accessories . . . . . . . . . . . . . . 64
Word . . . . . . . . . . . . . . . . . . . . . 43
Block . . . . . . . . . . . . . . . . . . . . . 44
Program . . . . . . . . . . . . . . . . . . . 44
10 - SEQUENCE BLOCK 65
PROGRAMMING FORMATS . . . . . . 44 BLOCK STRUCTURE . . . . . . . . 65
WORD ADDRESS FORMAT . . . . . . 44 Building the Block Structure. . . . . . . . . . . . 65
FORMAT NOTATION . . . . . . . . 45 Block Structure for Milling . . . . . . . . . . . . 65
Short Forms . . . . . . . . . . . . . . . . . . 45 PROGRAM IDENTIFICATION . . . . . . 66
Milling System Format . . . . . . . . . . . . . . 46 Program Number . . . . . . . . . . . . . . . . 66
Turning System Format. . . . . . . . . . . . . . 46 Program Name . . . . . . . . . . . . . . . . . 66
Multiple Word Addresses . . . . . . . . . . . . . 47
SEQUENCE NUMBERS . . . . . . . 67
SYMBOLS IN CNC PROGRAMMING . . . . 47 Sequence Number Command . . . . . . . . . . . 67
Plus and Minus Sign. . . . . . . . . . . . . . . 48 Sequence Block Format . . . . . . . . . . . . . 67
TYPICAL PROGRAM STRUCTURE . . . . 48 Numbering Increment . . . . . . . . . . . . . . 68
Long Programs and Block Numbers. . . . . . . . . 68
Program Structure Benefits . . . . . . . . . . . . 49
END OF BLOCK CHARACTER . . . . . . 68
PROGRAM HEADER . . . . . . . . 50
Tool Comments . . . . . . . . . . . . . . . . 50 STARTUP BLOCK OR SAFE BLOCK . . . . 69
PROGRAM COMMENTS . . . . . . . 70
8 - PREPARATORY COMMANDS 51 CONFLICTING WORDS IN A BLOCK . . . . 70
MODAL PROGRAMMING VALUES . . . . 71
DESCRIPTION AND PURPOSE . . . . . 51 EXECUTION PRIORITY . . . . . . . 72
Table of Contents xi

MAXIMUM FEEDRATE . . . . . . . 95
11 - INPUT OF DIMENSIONS 73 Maximum Feedrate Considerations . . . . . . . . . 95

IMPERIAL AND METRIC UNITS . . . . . 73 FEEDHOLD AND OVERRIDE . . . . . . 95


Feedhold Switch . . . . . . . . . . . . . . . . 95
Comparable Unit Values . . . . . . . . . . . . . 74
Feedrate Override Switch . . . . . . . . . . . . . 95
ABSOLUTE AND INCREMENTAL MODES . . 74 Feedrate Override Functions . . . . . . . . . . . 96
Preparatory Commands G90 and G91 . . . . . . . . 75 E ADDRESS IN THREADING . . . . . . 96
Absolute Data Input - G90 . . . . . . . . . . . . 76
Incremental Data Input - G91 . . . . . . . . . . . 76
Combinations in a Single Block . . . . . . . . . . 76 14 - TOOL FUNCTION 97
DIAMETER PROGRAMMING . . . . . . 77
T-FUNCTION FOR MACHINING CENTERS . . 97
MINIMUM MOTION INCREMENT . . . . 77
Tool Storage Magazine . . . . . . . . . . . . . . 97
FORMAT OF DIMENSIONAL INPUT . . . . 77 Fixed Tool Selection . . . . . . . . . . . . . . . 98
Full Address Format . . . . . . . . . . . . . . . 78 Random Memory Tool Selection . . . . . . . . . . 98
Zero Suppression . . . . . . . . . . . . . . . . 78 Registering Tool Numbers . . . . . . . . . . . . 98
Decimal Point Programming. . . . . . . . . . . . 79 Programming Format . . . . . . . . . . . . . . 99
Input Comparison . . . . . . . . . . . . . . . . 80 Empty Tool or Dummy Tool . . . . . . . . . . . . 99
CALCULATOR TYPE INPUT . . . . . . 80 TOOL CHANGE FUNCTION - M06 . . . . 99
Conditions for Tool Change . . . . . . . . . . . . 99
12 - SPINDLE CONTROL 81 AUTOMATIC TOOL CHANGER - ATC . . . 100
Typical ATC System. . . . . . . . . . . . . . . 100
SPINDLE FUNCTION . . . . . . . . 81 Maximum Tool Diameter . . . . . . . . . . . . 101
Spindle Speed Input . . . . . . . . . . . . . . . 81 Maximum Tool Length . . . . . . . . . . . . . 101
Maximum Tool Weight . . . . . . . . . . . . . 101
DIRECTION OF SPINDLE ROTATION . . . . 81 ATC Cycle . . . . . . . . . . . . . . . . . . 102
Direction for Milling . . . . . . . . . . . . . . . 82 MDI Operation . . . . . . . . . . . . . . . . 102
Direction for Turning . . . . . . . . . . . . . . . 82
PROGRAMMING THE ATC . . . . . . 102
Direction Specification . . . . . . . . . . . . . . 83
Spindle Startup . . . . . . . . . . . . . . . . . 83 Single Tool Work . . . . . . . . . . . . . . . . 102
Programming Several Tools . . . . . . . . . . . 103
SPINDLE STOP . . . . . . . . . 84 Keeping Track of Tools . . . . . . . . . . . . . 103
SPINDLE ORIENTATION . . . . . . . 84 Any Tool in Spindle - Not the First . . . . . . . . . 103
First Tool in the Spindle . . . . . . . . . . . . . 104
SPINDLE SPEED - R/MIN . . . . . . . 85 No Tool in the Spindle. . . . . . . . . . . . . . 105
SPINDLE SPEED - SURFACE . . . . . . 85 First Tool in the Spindle with Manual Change . . . . 105
Material Machinability . . . . . . . . . . . . . . 85 No Tool in the Spindle with Manual Change . . . . . 106
Spindle Speed - Imperial Units . . . . . . . . . . . 86 First Tool in the Spindle and an Oversize Tool . . . . 106
Spindle Speed - Metric Units . . . . . . . . . . . 86 No Tool in the Spindle and an Oversize Tool . . . . . 106

CONSTANT SURFACE SPEED . . . . . 86 T-FUNCTION FOR LATHES . . . . . . 107


Maximum Spindle Speed Setting. . . . . . . . . . 88 Lathe Tool Station . . . . . . . . . . . . . . . 107
Part Diameter Calculation in CSS . . . . . . . . . . 89 Tool Indexing . . . . . . . . . . . . . . . . . 107
Cutting Speed Calculation . . . . . . . . . . . . 90 TOOL OFFSET REGISTERS . . . . . . 108
Geometry Offset. . . . . . . . . . . . . . . . 108
13 - FEEDRATE CONTROL 91 Wear Offset . . . . . . . . . . . . . . . . . 109
Wear Offset Adjustment. . . . . . . . . . . . . 110
The R and T Settings . . . . . . . . . . . . . . 110
FEEDRATE CONTROL . . . . . . . . 91
FEEDRATE FUNCTION . . . . . . . 91
Feedrate per Minute . . . . . . . . . . . . . . . 91
15 - REFERENCE POINTS 111
Feedrate per Revolution . . . . . . . . . . . . . 92
REFERENCE POINT GROUPS . . . . . 111
FEEDRATE SELECTION . . . . . . . 92 Reference Point Groups Relationship. . . . . . . . 112
ACCELERATION AND DECELERATION . . . 92 MACHINE REFERENCE POINT . . . . . 112
Exact Stop Command . . . . . . . . . . . . . . 93
Return to Machine Zero . . . . . . . . . . . . . 113
Exact Stop Mode Command . . . . . . . . . . . 93
Automatic Corner Override . . . . . . . . . . . . 93 PART REFERENCE POINT . . . . . . 113
Tapping Mode . . . . . . . . . . . . . . . . . 93 Program Zero Selection . . . . . . . . . . . . . 113
Cutting Mode . . . . . . . . . . . . . . . . . 94 Program Zero - Machining Centers . . . . . . . . 114
CONSTANT FEEDRATE . . . . . . . 94 Program Zero - Lathes . . . . . . . . . . . . . 116
Circular Motion Feedrates . . . . . . . . . . . . 94 TOOL REFERENCE POINT . . . . . . 116
xii Table of Contents

TOOL LENGTH OFFSET COMMANDS . . . 136


16 - REGISTER COMMANDS 117 Distance-To-Go in Z-axis . . . . . . . . . . . . . 136

POSITION REGISTER COMMAND . . . . 117 TOOL LENGTH SETUP . . . . . . . 137


On-Machine Tool Length Setting . . . . . . . . . 137
Position Register Definition . . . . . . . . . . . 117
Off-Machine Tool Length Setting . . . . . . . . . 138
Programming Format . . . . . . . . . . . . . . 117
Tool Length Offset Amount Register . . . . . . . . 138
Tool Position Setting . . . . . . . . . . . . . . 118
MACHINING CENTERS APPLICATION . . . 118 Z-AXIS RELATIONSHIPS. . . . . . . 138
Preset Tool Length . . . . . . . . . . . . . . . 139
Tool Set at Machine Zero . . . . . . . . . . . . 118
Tool Length by Touch Off . . . . . . . . . . . . 139
Tool Set Away from Machine Zero . . . . . . . . . 118
Using a Master Tool Length . . . . . . . . . . . 140
Position Register in Z-axis . . . . . . . . . . . . 119
G43-G44 Difference . . . . . . . . . . . . . . 140
Programming Example . . . . . . . . . . . . . 119
LATHE APPLICATION . . . . . . . 119 PROGRAMMING FORMATS . . . . . . 141
Tool Length Offset not Available . . . . . . . . . 141
Tool Setup . . . . . . . . . . . . . . . . . . 120
Tool Length Offset and G92 . . . . . . . . . . . 142
Three-Tool Setup Groups . . . . . . . . . . . . 120
Tool Length Offset and G54-G59 . . . . . . . . . 143
Center Line Tools Setup . . . . . . . . . . . . . 120
Tool Length Offset and Multiple Tools . . . . . . . 143
External Tools Setup . . . . . . . . . . . . . . 121
Internal Tools Setup . . . . . . . . . . . . . . 121 CHANGING TOOL LENGTH OFFSET . . . 144
Corner Tip Detail . . . . . . . . . . . . . . . . 121
HORIZONTAL MACHINE APPLICATION . . 145
Programming Example . . . . . . . . . . . . . 121
TOOL LENGTH OFFSET CANCEL . . . . 145
17 - POSITION COMPENSATION 123
20 - RAPID POSITIONING 147
DESCRIPTION . . . . . . . . . 123
Programming Commands . . . . . . . . . . . . 123 RAPID TRAVERSE MOTION . . . . . . 147
Programming Format . . . . . . . . . . . . . . 123 G00 Command . . . . . . . . . . . . . . . . 147
Incremental Mode . . . . . . . . . . . . . . . 124 RAPID MOTION TOOLPATH . . . . . . 148
Motion Length Calculation . . . . . . . . . . . . 124
Single Axis Motion . . . . . . . . . . . . . . . 148
Position Compensation Along the Z-axis . . . . . . 126
Multiaxis Motion. . . . . . . . . . . . . . . . 148
Using G47 and G48 . . . . . . . . . . . . . . 126
Straight Angular Motion in Rapid Mode. . . . . . . 150
Face Milling - One Possible Application . . . . . . . 126
Reverse Rapid Motion . . . . . . . . . . . . . 150
TYPE OF MOTION & TIME COMPARISON . . 150
18 - WORK OFFSETS 127
REDUCTION OF RAPID MOTION RATE . . . 151
WORK AREAS AVAILABLE . . . . . . 127 RAPID MOTION FORMULAS . . . . . 151
Additional Work Offsets . . . . . . . . . . . . . 128 APPROACH TO THE PART . . . . . . 152
WORK OFFSET DEFAULT AND STARTUP . . 128
Work Offset Change . . . . . . . . . . . . . . 129 21 - MACHINE ZERO RETURN 153
Z-axis Application . . . . . . . . . . . . . . . 130
HORIZONTAL MACHINE APPLICATION . . 131 MACHINE REFERENCE POSITION . . . . 153
EXTERNAL WORK OFFSETS . . . . . 132 Machining Centers . . . . . . . . . . . . . . . 153
Lathes . . . . . . . . . . . . . . . . . . . . 154
LATHE APPLICATIONS . . . . . . . 132 Setting the Machine Axes . . . . . . . . . . . . 154
Types of Offsets . . . . . . . . . . . . . . . . 132 Program Commands . . . . . . . . . . . . . . 155
Geometry Offset. . . . . . . . . . . . . . . . 132 Command Group . . . . . . . . . . . . . . . 155
Wear Offset . . . . . . . . . . . . . . . . . 133
Tool and Offset Numbers . . . . . . . . . . . . 133
RETURN TO PRIMARY MACHINE ZERO . . 155
Intermediate Point . . . . . . . . . . . . . . . 155
TOOL SETUP . . . . . . . . . . 133 Absolute and Incremental Mode . . . . . . . . . 156
Center Line Tools . . . . . . . . . . . . . . . 133 Return from Z-depth Position . . . . . . . . . . . 157
Turning Tools . . . . . . . . . . . . . . . . . 134 Axes Return Required for the ATC . . . . . . . . . 159
Boring Tools . . . . . . . . . . . . . . . . . 134 Zero Return for CNC Lathes . . . . . . . . . . . 159
Command Point and Tool Work Offset . . . . . . . 134
RETURN POSITION CHECK COMMAND . . 160
RETURN FROM MACHINE ZERO POINT . . 161
19 - TOOL LENGTH OFFSET 135
RETURN TO SECONDARY MACHINE ZERO . 162
GENERAL PRINCIPLES . . . . . . . 135
Actual Tool Length . . . . . . . . . . . . . . . 135 22 - LINEAR INTERPOLATION 163
Gauge Line . . . . . . . . . . . . . . . . . . 135
Table Top Face . . . . . . . . . . . . . . . . 136 LINEAR COMMAND . . . . . . . . 163
Table of Contents xiii

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

Single Point Boring Tool . . . . . . . . . . . . . 209 Milling Mode . . . . . . . . . . . . . . . . . 237


Spindle Orientation. . . . . . . . . . . . . . . 210 Number of Cutting Inserts . . . . . . . . . . . . 238
Block Tools . . . . . . . . . . . . . . . . . . 211
PROGRAMMING TECHNIQUES . . . . . 238
BORING WITH A TOOL SHIFT . . . . . 211 Single Face Mill Cut . . . . . . . . . . . . . . 239
Precision Boring Cycle G76 . . . . . . . . . . . 211 Multiple Face Mill Cuts . . . . . . . . . . . . . 240
Backboring Cycle G87 . . . . . . . . . . . . . 211
USING POSITION COMPENSATION . . . 241
Programming Example . . . . . . . . . . . . . 212
Precautions in Programming and Setup. . . . . . . 212
ENLARGING HOLES . . . . . . . . 212 29 - CIRCULAR INTERPOLATION 243
Countersinking . . . . . . . . . . . . . . . . 213
Maximum Spot Drill Depth for CSINK . . . . . . . 214 ELEMENTS OF A CIRCLE . . . . . . 243
Counterboring. . . . . . . . . . . . . . . . . 214 Radius and Diameter . . . . . . . . . . . . . . 243
Spotfacing . . . . . . . . . . . . . . . . . . 214 Circle Area and Circumference . . . . . . . . . . 244
MULTI Z-DEPTH DRILLING . . . . . . 215 QUADRANTS . . . . . . . . . . 244
WEB DRILLING . . . . . . . . . 216 Quadrant Points . . . . . . . . . . . . . . . . 244
TAPPING . . . . . . . . . . . 216 PROGRAMMING FORMAT . . . . . . 245
Tap Geometry . . . . . . . . . . . . . . . . . 217 Arc Cutting Direction . . . . . . . . . . . . . . 245
Tapping Speed and Feedrate . . . . . . . . . . . 218 Circular Interpolation Block . . . . . . . . . . . 245
Pipe Taps . . . . . . . . . . . . . . . . . . 219 Arc Start and End Points. . . . . . . . . . . . . 246
Tapping Check List . . . . . . . . . . . . . . . 219 Arc Center and Radius . . . . . . . . . . . . . 246
Arc Center Vectors . . . . . . . . . . . . . . . 246
HOLE OPERATIONS ON A LATHE . . . . 220 Arc in Planes . . . . . . . . . . . . . . . . . 247
Tool Approach Motion . . . . . . . . . . . . . 221
Tool Return Motion . . . . . . . . . . . . . . . 221
RADIUS PROGRAMMING . . . . . . 248
Drilling and Reaming on Lathes . . . . . . . . . . 222 Blend Radius . . . . . . . . . . . . . . . . . 248
Peck Drilling Cycle - G74. . . . . . . . . . . . . 222 Partial Radius . . . . . . . . . . . . . . . . . 248
Tapping on Lathes . . . . . . . . . . . . . . . 223 FULL CIRCLE PROGRAMMING . . . . . 248
Other Operations . . . . . . . . . . . . . . . 224
Boss Milling . . . . . . . . . . . . . . . . . 250
Internal Circle Cutting - Linear Start . . . . . . . . 251
27 - PATTERN OF HOLES 225 Internal Circle Cutting - Circular Start . . . . . . . . 251
Circle Cutting Cycle . . . . . . . . . . . . . . 252
TYPICAL HOLE PATTERNS . . . . . . 225 ARC PROGRAMMING . . . . . . . 253
RANDOM HOLE PATTERN . . . . . . 225 FEEDRATE FOR CIRCULAR MOTION . . . 253
STRAIGHT ROW HOLE PATTERN . . . . 226 Feedrate for Outside Arcs . . . . . . . . . . . . 254
Feedrate for Inside Arcs . . . . . . . . . . . . . 254
ANGULAR ROW HOLE PATTERN . . . . 226
Pattern Defined by Coordinates . . . . . . . . . . 226
Pattern Defined by Angle . . . . . . . . . . . . 227 30 - CUTTER RADIUS OFFSET 255
CORNER PATTERN . . . . . . . . 228
MANUAL CALCULATIONS . . . . . . 255
GRID PATTERN . . . . . . . . . 228 Cutter Path Center Points . . . . . . . . . . . . 256
Angular Grid Pattern . . . . . . . . . . . . . . 229 Cutter Radius . . . . . . . . . . . . . . . . . 257
ARC HOLE PATTERN. . . . . . . . 230 Center Points Calculation . . . . . . . . . . . . 257

BOLT HOLE CIRCLE PATTERN . . . . . 231 COMPENSATED CUTTER PATH . . . . . 258


Bolt Circle Formula . . . . . . . . . . . . . . . 232 Types of Cutter Radius Offset . . . . . . . . . . 258
Pattern Orientation . . . . . . . . . . . . . . . 232 Definition and Applications . . . . . . . . . . . 258

POLAR COORDINATE SYSTEM . . . . . 233 PROGRAMMING TECHNIQUES . . . . . 259


Plane Selection . . . . . . . . . . . . . . . . 234 Direction of Cutting Motion . . . . . . . . . . . 259
Order of Machining . . . . . . . . . . . . . . 234 Left or Right - not CW or CCW . . . . . . . . . . 259
Offset Commands . . . . . . . . . . . . . . . 260
Radius of the Cutter . . . . . . . . . . . . . . 260
28 - FACE MILLING 235 History of Offset Types . . . . . . . . . . . . . 261
Programming Format . . . . . . . . . . . . . . 261
FACE MILL SELECTION . . . . . . . 235 Address H or D ? . . . . . . . . . . . . . . . 261
Geometry and Wear Offsets . . . . . . . . . . . 262
Basic Selection Criteria . . . . . . . . . . . . . 235
Face Mill Diameter . . . . . . . . . . . . . . . 235 APPLYING CUTTER RADIUS OFFSET . . . 262
Insert Geometry . . . . . . . . . . . . . . . . 236 Startup Methods. . . . . . . . . . . . . . . . 262
CUTTING CONSIDERATIONS . . . . . 236 Offset Cancellation . . . . . . . . . . . . . . . 264
Cutter Direction Change . . . . . . . . . . . . . 265
Angle of Entry . . . . . . . . . . . . . . . . . 237
Table of Contents xv

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

FIXED CYCLES IN PLANES . . . . . . 284 MULTIPLE OFFSETS . . . . . . . . 305


General Approach . . . . . . . . . . . . . . . 306
Diameter Tolerances . . . . . . . . . . . . . . 306
32 - CONTOUR MILLING 285 Shoulder Tolerances . . . . . . . . . . . . . . 307
Diameter and Shoulder Tolerances . . . . . . . . 307
END MILLS . . . . . . . . . . 285 OFFSET SETTING . . . . . . . . 308
High Speed Steel End Mills . . . . . . . . . . . 286
Solid Carbide End Mills . . . . . . . . . . . . . 286
FUNCTIONS FOR GEAR RANGES . . . . 308
Indexable Insert End Mills . . . . . . . . . . . . 286 AUTOMATIC CORNER BREAK . . . . . 309
Relief Angles . . . . . . . . . . . . . . . . . 286 Chamfering at 45 Degrees . . . . . . . . . . . . 309
End Mill Size . . . . . . . . . . . . . . . . . 286 Blend Radius at 90 Degrees . . . . . . . . . . . 311
Number of Flutes . . . . . . . . . . . . . . . 287 Programming Conditions . . . . . . . . . . . . 311
SPEEDS AND FEEDS . . . . . . . . 287 Programming Example . . . . . . . . . . . . . 311
Coolants and Lubricants. . . . . . . . . . . . . 288 ROUGH AND FINISHED SHAPE . . . . . 312
Tool Chatter . . . . . . . . . . . . . . . . . 288 Rough Operations . . . . . . . . . . . . . . . 312
STOCK REMOVAL . . . . . . . . 289 Finish Operations . . . . . . . . . . . . . . . 313
Stock and Stock Allowance . . . . . . . . . . . 313
Plunge Infeed . . . . . . . . . . . . . . . . . 289
xvi Table of Contents

PROGRAMMING A RECESS . . . . . . 314


SPINDLE SPEED IN CSS MODE . . . . . 315
36 - GROOVING ON LATHES 333
LATHE PROGRAM FORMAT . . . . . . 316 GROOVING OPERATIONS . . . . . . 333
Program Format - Templates . . . . . . . . . . . 316 Main Grooving Applications . . . . . . . . . . . 333
General Program Format . . . . . . . . . . . . 316 Grooving Criteria. . . . . . . . . . . . . . . . 333
Approach to the Part . . . . . . . . . . . . . . 316
GROOVE SHAPE . . . . . . . . . 333
Nominal Insert Size. . . . . . . . . . . . . . . 334
35 - LATHE CYCLES 317 Insert Modification . . . . . . . . . . . . . . . 334
GROOVE LOCATION. . . . . . . . 334
STOCK REMOVAL ON LATHES . . . . . 317
Simple Cycles . . . . . . . . . . . . . . . . . 317 GROOVE DIMENSIONS . . . . . . . 334
Complex Cycles . . . . . . . . . . . . . . . . 317 Groove Position . . . . . . . . . . . . . . . . 335
Groove Depth . . . . . . . . . . . . . . . . . 335
PRINCIPLES OF LATHE CYCLES . . . . 317
SIMPLE GROOVE PROGRAMMING . . . . 335
G90 - STRAIGHT CUTTING CYCLE . . . . 318
Cycle Format . . . . . . . . . . . . . . . . . 318 PRECISION GROOVING TECHNIQUES . . . 336
Straight Turning Example . . . . . . . . . . . . 319 Groove Width Selection . . . . . . . . . . . . . 337
Taper Cutting Example . . . . . . . . . . . . . 319 Machining Method . . . . . . . . . . . . . . . 337
Straight and Taper Cutting Example . . . . . . . . 321 Finishing Allowances . . . . . . . . . . . . . . 338
Groove Tolerances . . . . . . . . . . . . . . . 339
G94 - FACE CUTTING CYCLE . . . . . 322 Groove Surface Finish. . . . . . . . . . . . . . 340
Cycle Format . . . . . . . . . . . . . . . . . 322
MULTIPLE GROOVES . . . . . . . 340
MULTIPLE REPETITIVE CYCLES . . . . 323
FACE GROOVES . . . . . . . . . 340
General Description . . . . . . . . . . . . . . 323
Cycle Format Types . . . . . . . . . . . . . . 323 Radial Clearance . . . . . . . . . . . . . . . . 341
Cutting Cycles and Part Contour . . . . . . . . . 323 Face Grooving Program Example . . . . . . . . . 341
Chipbreaking Cycles . . . . . . . . . . . . . . 323 CORNER GROOVES / NECK GROOVES . . 342
CONTOUR CUTTING CYCLES . . . . . 324 GROOVING CYCLES . . . . . . . . 342
Boundary Definition . . . . . . . . . . . . . . 324 G75 Cycle Applications . . . . . . . . . . . . . 342
Start Point and the Points P and Q . . . . . . . . . 324 Single Groove with G75 . . . . . . . . . . . . . 343
TYPE I AND TYPE II CYCLES . . . . . 325 Multiple Grooves with G75. . . . . . . . . . . . 343
Programming Type I and Type II Cycles . . . . . . . 325 SPECIAL GROOVES . . . . . . . . 343
Cycle Formatting. . . . . . . . . . . . . . . . 325 GROOVES AND SUBPROGRAMS . . . . 344
G71 - STOCK REMOVAL IN TURNING . . . 325
G71 Cycle Format - 6T/10T/11T/15T . . . . . . . . 326 37 - PART-OFF 345
G71 Cycle Format - 0T/16T/18T/20T/21T . . . . . . 326
G71 for External Roughing . . . . . . . . . . . . 326
G71 for Internal Roughing . . . . . . . . . . . . 327
PART-OFF PROCEDURE . . . . . . . 345
Direction of Cutting in G71 . . . . . . . . . . . . 327 Parting Tool Description . . . . . . . . . . . . . 345
Tool Approach Motion . . . . . . . . . . . . . 346
G72 - STOCK REMOVAL IN FACING . . . 327 Stock Allowance . . . . . . . . . . . . . . . . 347
G72 Cycle Format - 6T/10T/11T/15T . . . . . . . . 327 Tool Return Motion . . . . . . . . . . . . . . . 347
G72 Cycle Format - 0T/16T/18T/20T/21T . . . . . . 328 Part-off with a Chamfer . . . . . . . . . . . . . 347
G73 - PATTERN REPEATING CYCLE . . . 328 Preventing Damage to the Part . . . . . . . . . . 348
G73 Cycle Format - 6T/10T/11T/15T . . . . . . . . 328
G73 Cycle Format - 0T/16T/18T/20T/21T . . . . . . 329 38 - SINGLE POINT THREADING 349
G73 Example of Pattern Repeating . . . . . . . . 329
G70 - CONTOUR FINISHING CYCLE . . . 330 THREADING ON CNC LATHES . . . . . 349
G70 Cycle Format - All Controls . . . . . . . . . . 330 Form of a Thread . . . . . . . . . . . . . . . 349
Threading Operations . . . . . . . . . . . . . . 350
BASIC RULES FOR G70-G73 CYCLES . . . 331
G74 - PECK DRILLING CYCLE . . . . . 331 TERMINOLOGY OF THREADING . . . . 350
G74 Cycle Format - 6T/10T/11T/15T . . . . . . . . 331 THREADING PROCESS . . . . . . . 351
G74 Cycle Format - 0T/16T/18T/20T/21T . . . . . . 331 Steps in Threading . . . . . . . . . . . . . . . 351
Spindle Synchronization . . . . . . . . . . . . . 351
G75 - GROOVE CUTTING CYCLE . . . . 332
Individual Threading Motions . . . . . . . . . . . 351
G75 Cycle Format - 6T/10T/11T/15T . . . . . . . . 332 Thread Start Position . . . . . . . . . . . . . . 353
G75 Cycle Format - 0T/16T/18T/20T/21T . . . . . . 332 Thread Cutting Diameter and Depth . . . . . . . . 353
BASIC RULES FOR G74 AND G75 CYCLES . . 332 Number of Threading Passes . . . . . . . . . . . 353
Thread Depth Calculation . . . . . . . . . . . . 354
Table of Contents xvii

Thread Depth Constants . . . . . . . . . . . . 354


Calculation of Threading Passes . . . . . . . . . 355 39 - SUBPROGRAMS 383
Thread Cutting Motion . . . . . . . . . . . . . 356
Retract from Thread . . . . . . . . . . . . . . 357 MAIN PROGRAM AND SUBPROGRAMS . . 383
Return to Start Position . . . . . . . . . . . . . 357 Subprogram Benefits . . . . . . . . . . . . . . 383
THREADING FEED AND SPINDLE SPEED . . 357 Identification of Subprograms . . . . . . . . . . 384
Threading Feedrate Selection. . . . . . . . . . . 358 SUBPROGRAM FUNCTIONS . . . . . 384
Spindle Speed Selection. . . . . . . . . . . . . 359 Subprogram Call Function . . . . . . . . . . . . 384
Maximum Threading Feedrate . . . . . . . . . . 359 Subprogram End Function . . . . . . . . . . . . 384
Lead Error . . . . . . . . . . . . . . . . . . 360 Block Number to Return to. . . . . . . . . . . . 385
Rounding Error . . . . . . . . . . . . . . . . 360 Number of Subprogram Repetitions . . . . . . . . 385
E-address . . . . . . . . . . . . . . . . . . 361 L0/K0 in a Subprogram Call . . . . . . . . . . . 386
TOOL REFERENCE POINT . . . . . . 361 SUBPROGRAM NUMBERING . . . . . 387
BLOCK-BY-BLOCK THREADING. . . . . 361 Organized Approach . . . . . . . . . . . . . . 388
Protected Subprograms . . . . . . . . . . . . . 389
BASIC THREADING CYCLE - G92 . . . . 362
SUBPROGRAM DEVELOPMENT . . . . 389
MULTIPLE REPETITIVE CYCLE - G76. . . . 363
Repeating Pattern Recognition . . . . . . . . . . 389
G76 Cycle Format - One Block Format . . . . . . . 364
Tool Motion and Subprograms . . . . . . . . . . 390
G76 Cycle Format - Two Block Format . . . . . . . 364
Modal Values and Subprograms . . . . . . . . . 391
One-Block vs Two-Block Format. . . . . . . . . . 365
Programming Examples . . . . . . . . . . . . . 365 MULTI LEVEL NESTING . . . . . . . 392
First Thread Diameter Calculation . . . . . . . . . 366 One Level Nesting . . . . . . . . . . . . . . . 392
THREAD INFEED METHODS . . . . . . 366 Two Level Nesting . . . . . . . . . . . . . . . 392
Three Level Nesting . . . . . . . . . . . . . . 393
Radial Infeed (Straight Infeed) . . . . . . . . . . 367
Four Level Nesting . . . . . . . . . . . . . . . 393
Compound Infeed (Flank Infeed) . . . . . . . . . 367
Nesting Applications . . . . . . . . . . . . . . 393
Thread Insert Angle . . . . . . . . . . . . . . 367
Thread Cutting Type - Address P . . . . . . . . . 368 CONTOURING WITH A SUBPROGRAM. . . 394
COMPOUND INFEED CALCULATIONS . . . 368 TOOL CHANGE SUBPROGRAM . . . . . 395
Initial Considerations . . . . . . . . . . . . . . 368 100 000 000 HOLE GRID . . . . . . . 395
Z-axis Start Position Calculation . . . . . . . . . . 369
THREAD RETRACT MOTION . . . . . 370 40 - DATUM SHIFT 397
Thread Pullout Functions . . . . . . . . . . . . 370
Single Axis Pullout . . . . . . . . . . . . . . . 371
DATUM SHIFT WITH G92 OR G50 . . . . 397
Two-Axis Pullout . . . . . . . . . . . . . . . . 371
Program Zero Shift . . . . . . . . . . . . . . . 397
HAND OF THREAD . . . . . . . . 371
LOCAL COORDINATE SYSTEM . . . . . 399
Configurations for Hand of Thread. . . . . . . . . 372
G52 Command . . . . . . . . . . . . . . . . 400
THREADING TO A SHOULDER . . . . . 373
MACHINE COORDINATE SYSTEM . . . . 400
Insert Modification . . . . . . . . . . . . . . . 373
Program Testing . . . . . . . . . . . . . . . . 375 DATA SETTING . . . . . . . . . 402
OTHER THREAD FORMS. . . . . . . 375 Data Setting Command . . . . . . . . . . . . . 402
Coordinate Mode . . . . . . . . . . . . . . . 402
Thread Depth - ACME example . . . . . . . . . . 375
WORK OFFSETS . . . . . . . . . 402
TAPERED THREAD . . . . . . . . 376
Standard Work Offset Input . . . . . . . . . . . 402
Depth and Clearances . . . . . . . . . . . . . 376
Additional Work Offset Input . . . . . . . . . . . 403
Taper Calculation . . . . . . . . . . . . . . . 376
External Work Offset Input . . . . . . . . . . . . 403
Block by Block Taper Thread . . . . . . . . . . . 377
Tapered Thread Using a Simple Cycle . . . . . . . 378 TOOL LENGTH OFFSETS . . . . . . 403
Tapered Thread and G76 Cycle . . . . . . . . . . 378 Valid Input Range . . . . . . . . . . . . . . . 404
MULTISTART THREAD . . . . . . . 379 CUTTER RADIUS OFFSETS . . . . . . 404
Threading Feedrate Calculation . . . . . . . . . . 380 LATHE OFFSETS . . . . . . . . . 404
Shift Amount . . . . . . . . . . . . . . . . . 380
Application Example . . . . . . . . . . . . . . 381 MDI DATA SETTING . . . . . . . . 405
Quality of Multistart Threads . . . . . . . . . . . 381 PROGRAMMABLE PARAMETER ENTRY . . 405
THREAD RECUTTING . . . . . . . 382 Modal G10 Command . . . . . . . . . . . . . 405
Before Part Removal . . . . . . . . . . . . . . 382 Parameters Notation . . . . . . . . . . . . . . 406
After Part Removal . . . . . . . . . . . . . . . 382 Program Portability . . . . . . . . . . . . . . . 406
Bit Type Parameter . . . . . . . . . . . . . . . 407
Effect of Block Numbers . . . . . . . . . . . . 408
xviii Table of Contents

ADDITIONAL OPTIONS . . . . . . . 430


41 - MIRROR IMAGE 409 Part Catcher or Part Unloader . . . . . . . . . . . 430
Continuous Operation . . . . . . . . . . . . . 430
BASIC RULES OF MIRROR IMAGE . . . . 409 Parts Counter . . . . . . . . . . . . . . . . . 431
Toolpath Direction . . . . . . . . . . . . . . . 409 Pull-Out Finger . . . . . . . . . . . . . . . . 431
Original Toolpath. . . . . . . . . . . . . . . . 410 PROGRAMMING EXAMPLE . . . . . . 431
Mirror Axis . . . . . . . . . . . . . . . . . . 410
Sign of Coordinates . . . . . . . . . . . . . . 410
Milling Direction . . . . . . . . . . . . . . . . 411 45 - HELICAL MILLING 433
Arc Motion Direction . . . . . . . . . . . . . . 411
Program Start and End . . . . . . . . . . . . . 411 HELICAL MILLING OPERATION . . . . . 433
MIRROR IMAGE BY SETTING . . . . . 411 Helical Interpolation . . . . . . . . . . . . . . 433
Control Setting . . . . . . . . . . . . . . . . 411 Programming Format . . . . . . . . . . . . . . 433
Programming - Manual Mirror Setting . . . . . . . 412 Arc Vectors for Helical Interpolation . . . . . . . . 434
Applications and Usage . . . . . . . . . . . . . 434
PROGRAMMABLE MIRROR IMAGE . . . . 412
Mirror Image Functions . . . . . . . . . . . . . 412 THREAD MILLING . . . . . . . . 434
Simple Mirror Image Example . . . . . . . . . . 413 Applying Thread Milling . . . . . . . . . . . . . 434
Complete Mirror Image Example . . . . . . . . . 414 Conditions for Thread Milling . . . . . . . . . . . 434
Thread Milling Tool . . . . . . . . . . . . . . . 435
MIRROR IMAGE ON CNC LATHES . . . . 414 Premachining Requirements . . . . . . . . . . . 435
Clearance Radius . . . . . . . . . . . . . . . 435
42 - COORDINATE ROTATION 415 Productivity of Thread Milling. . . . . . . . . . . 435
THE HELIX . . . . . . . . . . 435
ROTATION COMMANDS . . . . . . 415 THREAD MILLING EXAMPLE . . . . . 437
Center of Rotation . . . . . . . . . . . . . . . 415 Straight Thread . . . . . . . . . . . . . . . . 437
Radius of Rotation . . . . . . . . . . . . . . . 415 Initial Calculations . . . . . . . . . . . . . . . 437
Coordinate Rotation Cancel . . . . . . . . . . . 417 Starting Position . . . . . . . . . . . . . . . . 438
Common Applications . . . . . . . . . . . . . 417 Motion Rotation and Direction . . . . . . . . . . 438
PRACTICAL APPLICATION . . . . . . 417 Lead-In Motions . . . . . . . . . . . . . . . . 440
Thread Rise Calculation . . . . . . . . . . . . . 441
Milling the Thread . . . . . . . . . . . . . . . 441
43 - SCALING FUNCTION 421 Lead-Out Motions . . . . . . . . . . . . . . . 442
Complete Program . . . . . . . . . . . . . . . 442
DESCRIPTION . . . . . . . . . 421 External Thread Milling . . . . . . . . . . . . . 442
Scaling Function Usage . . . . . . . . . . . . . 421 Tapered Thread Milling . . . . . . . . . . . . . 442
Further Considerations . . . . . . . . . . . . . 443
PROGRAMMING FORMAT . . . . . . 421
THREAD MILLING SIMULATION METHOD . . 443
Scaling Center . . . . . . . . . . . . . . . . 422
Scaling Factor . . . . . . . . . . . . . . . . . 422 HELICAL RAMPING . . . . . . . . 444
Rounding Errors in Scaling . . . . . . . . . . . . 423
PROGRAM EXAMPLES . . . . . . . 423 46 - HORIZONTAL MACHINING 445

44 - CNC LATHE ACCESSORIES 425 INDEXING AND ROTARY AXES . . . . . 445


INDEXING TABLE (B-AXIS) . . . . . . 445
CHUCK CONTROL . . . . . . . . 425 Units of Increment . . . . . . . . . . . . . . . 445
Chuck Functions . . . . . . . . . . . . . . . . 425 Direction of Indexing . . . . . . . . . . . . . . 446
Chucking Pressure . . . . . . . . . . . . . . . 426 Table Clamp and Unclamp Functions . . . . . . . . 446
Chuck Jaws . . . . . . . . . . . . . . . . . 426 Indexing in Absolute and Incremental Mode . . . . . 446
TAILSTOCK AND QUILL . . . . . . . 426 B-AXIS AND OFFSETS . . . . . . . 447
Tailstock Body. . . . . . . . . . . . . . . . . 426 Work Offset and B-axis . . . . . . . . . . . . . 447
Quill. . . . . . . . . . . . . . . . . . . . . 427 Tool Length Offset and B-axis . . . . . . . . . . 448
Center . . . . . . . . . . . . . . . . . . . . 427 RETURN TO MACHINE ZERO . . . . . 450
Quill Functions . . . . . . . . . . . . . . . . 427
Programmable Tailstock . . . . . . . . . . . . . 427 INDEXING AND A SUBPROGRAM . . . . 450
Safety Concerns . . . . . . . . . . . . . . . . 427 COMPLETE PROGRAM EXAMPLE . . . . 452
BI-DIRECTIONAL TURRET INDEXING . . . 428 AUTOMATIC PALLET CHANGER - APC . . . 453
Programming Example . . . . . . . . . . . . . 428 Working Environment . . . . . . . . . . . . . . 454
BARFEEDER ATTACHMENT . . . . . . 429 Types of Pallets . . . . . . . . . . . . . . . . 454
Programming Commands . . . . . . . . . . . . 455
Bar Stopper. . . . . . . . . . . . . . . . . . 429
Pallet Changing Program Structure . . . . . . . . 455
Table of Contents xix

HORIZONTAL BORING MILL . . . . . 455


50 - PROGRAM VERIFICATION 479
47 - LIVE TOOLING ON LATHES 457 DETECTION OF ERRORS . . . . . . 479
Preventive Measures . . . . . . . . . . . . . . 479
TURN-MILL OR MILL-TURN . . . . . . 457 Corrective Measures . . . . . . . . . . . . . . 479
Programming Issues . . . . . . . . . . . . . . 457
General Terms. . . . . . . . . . . . . . . . . 457 GRAPHIC VERIFICATION . . . . . . 480
MACHINE DESIGN . . . . . . . . 458 AVOIDING ERRORS . . . . . . . . 480
Features . . . . . . . . . . . . . . . . . . . 458 Syntax Errors . . . . . . . . . . . . . . . . . 481
Benefits . . . . . . . . . . . . . . . . . . . 458 Logical Errors . . . . . . . . . . . . . . . . . 481

C-AXIS PROGRAMMING . . . . . . 458 COMMON PROGRAMMING ERRORS . . . 482


XZ + C Axes . . . . . . . . . . . . . . . . . 458 Program Input Errors . . . . . . . . . . . . . . 482
Calculation Errors . . . . . . . . . . . . . . . 482
FIXED CYCLES . . . . . . . . . 459 Hardware Errors . . . . . . . . . . . . . . . . 482
M-functions and C-axis . . . . . . . . . . . . . 460 Miscellaneous Errors . . . . . . . . . . . . . . 482
Drilling on Face . . . . . . . . . . . . . . . . 460
Drilling on Diameter . . . . . . . . . . . . . . 461
General Considerations . . . . . . . . . . . . . 461 51 - CNC MACHINING 483
Y-AXIS PROGRAMMING. . . . . . . 462 MACHINING A NEW PART . . . . . . 483
Plane Selection . . . . . . . . . . . . . . . . 463
Setup Integrity . . . . . . . . . . . . . . . . 484
Additional Axes . . . . . . . . . . . . . . . . 463
Program Integrity . . . . . . . . . . . . . . . 484
POLAR COORDINATE INTERPOLATION . . 463 RUNNING THE FIRST PART . . . . . . 485
Polar Coordinate Mode . . . . . . . . . . . . . 463
Approximation Method . . . . . . . . . . . . . 464 PROGRAM CHANGES . . . . . . . 486
Program Upgrading . . . . . . . . . . . . . . 486
CYLINDRICAL INTERPOLATION . . . . 465 Program Updating . . . . . . . . . . . . . . . 487
Z + C-axis . . . . . . . . . . . . . . . . . . 465 Documentation Change . . . . . . . . . . . . . 487
Practical Example . . . . . . . . . . . . . . . 465
ALTERNATE MACHINE SELECTION . . . 487
MACHINE WARM UP PROGRAM . . . . 488
48 - WRITING A CNC PROGRAM 467
CNC MACHINING AND SAFETY. . . . . 488
PROGRAM WRITING . . . . . . . . 467 SHUTTING DOWN A CNC MACHINE . . . 489
Legibility of Handwriting. . . . . . . . . . . . . 468 Emergency Stop Switch . . . . . . . . . . . . . 489
Programming Forms . . . . . . . . . . . . . . 468 Parking Machine Slides . . . . . . . . . . . . . 490
Confusing Characters . . . . . . . . . . . . . . 468 Setting the Control System . . . . . . . . . . . 490
Turning the Power Off . . . . . . . . . . . . . 490
PROGRAM OUTPUT FORMATTING . . . . 469
LONG PROGRAMS . . . . . . . . 471 EQUIPMENT MAINTENANCE . . . . . 490
Program Length Reduction. . . . . . . . . . . . 471
Memory Mode and Tape Mode . . . . . . . . . . 472 52 - INTERFACING TO DEVICES 491

49 - PROGRAM DOCUMENTS 473 RS-232C INTERFACE. . . . . . . . 491


PUNCHED TAPE . . . . . . . . . 492
DATA FILES . . . . . . . . . . 473 Tape Reader and Puncher . . . . . . . . . . . . 492
Leader and Trailer . . . . . . . . . . . . . . . 494
PROGRAM DOCUMENTATION . . . . . 474
Tape Identification . . . . . . . . . . . . . . . 494
External Documentation . . . . . . . . . . . . . 474 Non-printable Characters . . . . . . . . . . . . 494
Internal Documentation . . . . . . . . . . . . . 474 Storage and Handling . . . . . . . . . . . . . . 494
Program Description . . . . . . . . . . . . . . 475
DISTRIBUTED NUMERICAL CONTROL . . . 494
SETUP AND TOOLING SHEETS . . . . . 475
Setup Sheet . . . . . . . . . . . . . . . . . 476
TERMINOLOGY OF COMMUNICATIONS . . 495
Tooling Sheet . . . . . . . . . . . . . . . . . 476 Baud Rate . . . . . . . . . . . . . . . . . . 495
Coordinate Sheet . . . . . . . . . . . . . . . 477 Parity . . . . . . . . . . . . . . . . . . . . 495
Data Bits . . . . . . . . . . . . . . . . . . . 495
DOCUMENTATION FILE FOLDER . . . . 477 Start and Stop Bits . . . . . . . . . . . . . . . 495
Identification Methods . . . . . . . . . . . . . 477
Operator’s Suggestions . . . . . . . . . . . . . 478
DATA SETTING . . . . . . . . . 495
Filing and Storage . . . . . . . . . . . . . . . 478 CONNECTING CABLES . . . . . . . 496
Null Modem . . . . . . . . . . . . . . . . . 496
Cabling for Fanuc and PC . . . . . . . . . . . . 496
xx Table of Contents

POST PROCESSORS . . . . . . . . 514


53 - MATH IN CNC PROGRAMMING 497 Customizing Post Processor . . . . . . . . . . . 514

BASIC ELEMENTS . . . . . . . . 497 IMPORTANT FEATURES . . . . . . . 515


Input from User . . . . . . . . . . . . . . . . 515
Arithmetic and Algebra . . . . . . . . . . . . . 497
Machining Cycles . . . . . . . . . . . . . . . 515
Order of Calculations . . . . . . . . . . . . . . 497
User Interface . . . . . . . . . . . . . . . . . 515
GEOMETRY . . . . . . . . . . 498 CAD Interface . . . . . . . . . . . . . . . . . 515
Circle . . . . . . . . . . . . . . . . . . . . 498 SUPPORT AND MANAGEMENT . . . . . 515
PI Constant . . . . . . . . . . . . . . . . . . 499
Training . . . . . . . . . . . . . . . . . . . 516
Circumference of a Circle . . . . . . . . . . . . 499
System Management . . . . . . . . . . . . . . 516
Length of Arc . . . . . . . . . . . . . . . . . 499
Technical Support . . . . . . . . . . . . . . . 516
Quadrants . . . . . . . . . . . . . . . . . . 499
POLYGONS . . . . . . . . . . 500 THE END AND THE BEGINNING . . . . 516
TAPERS . . . . . . . . . . . 501
Taper Definition . . . . . . . . . . . . . . . . 501 A - REFERENCE TABLES 517
Taper Per Foot. . . . . . . . . . . . . . . . . 502
Taper Ratio . . . . . . . . . . . . . . . . . . 502 Decimal Equivalents . . . . . . . . 517
Taper Calculations - Imperial Units . . . . . . . . . 502 Imperial Threads - UNC/UNF . . . . . 520
Taper Calculations - Metric Units . . . . . . . . . 502
Straight Pipe Taps NPS . . . . . . . 520
CALCULATIONS OF TRIANGLES . . . . 503
Types of Angles and Triangles . . . . . . . . . . 503
Taper Pipe Taps NPT. . . . . . . . 521
Right Triangles . . . . . . . . . . . . . . . . 504 Metric Coarse Threads . . . . . . . 521
Similar Triangles . . . . . . . . . . . . . . . . 504 Metric Fine Threads . . . . . . . . 521
Sine - Cosine - Tangent . . . . . . . . . . . . . 505
Inverse Trigonometric Functions . . . . . . . . . 506
Degrees and Decimal Degrees . . . . . . . . . . 506 B - SPEEDS AND FEEDS 523
Pythagorean Theorem . . . . . . . . . . . . . 506
Solving Right Triangles . . . . . . . . . . . . . 507 SURFACE SPEED AND SPINDLE SPEED . . 523
ADVANCED CALCULATIONS . . . . . 508 CHIPLOAD . . . . . . . . . . 524
CONCLUSION . . . . . . . . . 508 BASIC FORMULAS . . . . . . . . 524
RELATED FORMULAS . . . . . . . 524
54 - CNC AND CAD/CAM 509 Tapping Feedrate . . . . . . . . . . . . . . . 524
Z-depth for Spot Drilling . . . . . . . . . . . . . 524
PROGRAMMING MANUALLY ? . . . . . 509 Z-depth for Drilling (Through Hole) . . . . . . . . . 525
CAM Software . . . . . . . . . . . . . . . . 509 Dwell Time Calculation . . . . . . . . . . . . . 525
Desktop Computer Programming . . . . . . . . . 509 Cutting Time . . . . . . . . . . . . . . . . . 525
TOOLPATH GEOMETRY DEVELOPMENT . . 510
TOOL PATH GENERATION . . . . . . 510 C - NCPlot FEATURES 527
COMPLETE ENVIRONMENT. . . . . . 510
Full Featured Text Editor . . . . . . 527
Multi Machine Support . . . . . . . . . . . . . 511
Associative Operations . . . . . . . . . . . . . 511 Program Formatting Tools . . . . . . 527
Job Setup . . . . . . . . . . . . . . . . . . 511 Program Translation Tools . . . . . . 527
Tooling List and Job Comments. . . . . . . . . . 511
Connection Between Computers . . . . . . . . . 511 Advanced G-code Backplotter . . . . . 527
Program Text Editor . . . . . . . . . . . . . . 512 Flexible Viewport Controls . . . . . . 528
Printing Capabilities . . . . . . . . . . . . . . 512
View Controls . . . . . . . . . 528
Pen Plotting . . . . . . . . . . . . . . . . . 512
CAD Software Access . . . . . . . . . . . . . 512 Calc Tools . . . . . . . . . . 528
Support for Solids . . . . . . . . . . . . . . . 512 DXF Importing / Exporting . . . . . . 528
Software Specifications . . . . . . . . . . . . . 513
Hardware Specifications. . . . . . . . . . . . . 513 Other Tools . . . . . . . . . . 528
Typical Hardware / Software Requirements . . . . . 514
Utilities and Special Features . . . . . . . . . . . 514
Index . . . . . . . . . . 529
1 NUMERICAL CONTROL

Numerical Control technology as known today, emerged u NC and CNC Technology


in the mid 20th century. It can be traced to the year of 1952,
the U.S. Air Force, Massachusetts Institute of Technology In strict adherence to terminology, there is a difference in
in Cambridge, MA, USA, and the name of John Parsons the meaning of abbreviations NC and CNC. The NC stands
(1913-2007), who is closely associated with the invention for the older and original Numerical Control technology,
of numerical control. It was not applied in production man- whereby the abbreviation CNC stands for the newer Com-
ufacturing until the early 1960’s. The real boom came in puterized Numerical Control technology - a modern suc-
the form of CNC, around the year of 1972, and a decade cessor to its older relative. However, in everyday practice,
later with the introduction of affordable micro computers. CNC is the preferred abbreviation. To clarify the proper us-
History and development of this fascinating technology age of each term, look at the major differences between NC
has been well documented in many publications. and CNC systems.

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

u Cutting Time and Productivity Increase n Boring mills and Profilers


Cutting time on a CNC machine is commonly known as n EDM wire machines
the cycle time - and is always consistent. Unlike a conven- n Punch presses and Shears
tional machining, where the operator’s skill, experience
and personal fatigue are subject to changes, CNC machin- n Flame cutting machines
ing is under the control of a computer. Only a small amount n Routers
of manual work is restricted to the setup and part loading
and unloading. For large batch runs, the high cost of unpro- n Water jet and Laser profilers
ductive time is spread among many parts, making it less n Cylindrical grinders
significant. The main benefit of a consistent cutting time is
for repetitive jobs, where production scheduling and work n Welding machines
allocation to individual machine tools can be done very ef- n Benders, Winding and Spinning machines, etc.
ficiently and accurately.
Without a doubt, CNC machining centers and lathes
One of the main reasons companies often purchase CNC dominate the number of installations in industry. These two
machines is strictly economic - it is a serious investment groups share the market just about equally. Some industries
with great potential. Also, having a competitive edge is al- may have a higher need for a particular type of machines,
ways on the mind of every plant manager. Numerical depending on their needs. One must remember there are
control technology offers excellent means to achieve sig- many models of lathes available and equally many differ-
nificant improvements in manufacturing productivity and ent models of machining centers. However, the program-
increasing the overall quality of manufactured parts. Like ming process for a vertical machine is similar to the one for
any means to an end, it has to be used wisely and knowl- a horizontal machine or even a simple CNC mill, for
edgeably. When more and more companies use CNC tech- example. Even between different machine groups, there is
nology, just having a CNC machine does not offer the extra a great amount of general applications, while the program-
edge anymore. Companies that grow and get forward are ming process is generally unchanged. For example, a con-
those where the use of technology is managed efficiently, tour milled with an end mill has a lot in common with a
with the goal to be competitive in the global economy. contour cut with a wire on an EDM machine.
To reach the goal of major increase in productivity, it is
u Mills and Machining Centers
essential that users understand the fundamental principles
on which CNC technology is based. These principles take Minimum number of axes on a milling machine is three -
many forms, for example, understanding the electronic cir- the X, Y and Z axes. Part set on a milling machine is always
cuitry, complex ladder diagrams, computer logic, metrol- stationary, mounted on a moving machine table. The cut-
ogy, machine design, machining principles and practices, ting tool rotates, it can move up and down (or in and out),
and many others. Each discipline has to be studied and but it does not physically follow the tool path.
mastered by all persons in charge. In this handbook, the
main emphasis is on topics relating directly to CNC pro- CNC mills - sometimes called CNC milling machines -
gramming and understanding the most common CNC ma- are usually small, simple machines, without a tool changer
chines - Machining Centers and Lathes (sometimes called or other automatic features. Their power rating is often low.
Turning Centers). Part quality consideration should be In industry, they are used for toolroom work, maintenance
very important to every programmer and machine operator purposes, or small part production. They are usually de-
and this goal is also reflected in the handbook approach as signed for simple contouring, unlike CNC drills.
well as in numerous examples.
CNC machining centers are far more popular and effi-
cient than drills and mills, mainly for their flexibility. The
TYPES OF CNC MACHINE TOOLS main benefit users get out of a CNC machining center is the
ability to group several diverse operations into a single
Different types of CNC machines cover rather large vari- setup. For example, drilling, boring, counter boring, tap-
ety. Number of installations is rapidly increasing, and the ping, spot facing and contour milling can be incorporated
technology development advances at a rapid pace. It is into a single CNC program operation. In addition, the flexi-
impossible to identify all possible applications, they would bility is enhanced by automatic tool changing, using pallets
make a long list. Here is a brief list of some of the groups to minimize idle time, indexing to a different face of the
CNC machines can be part of: part, using a rotary movement of additional axes, and num-
ber of other time saving features. CNC machining centers
n Mills and Machining centers can be equipped with special software that controls cutting
n Lathes and Turning centers speeds and feeds, life of the cutting tool, automatic in-pro-
cess gauging, broken tool detection, offset adjustment and
n Drilling machines other production enhancing and time saving devices.
NUMERICAL CONTROL 5

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

This definition eliminates all CNC drill presses, since


their design covers positioning but not contouring. The
definition also eliminates wire EDM machines and a vari-
ety of burners, since they are capable of a contouring action
but not with an end mill. Users of these machine tools will
still benefit from the many subjects covered here. General
principles are easily adaptable to the majority of CNC ma-
chine tools. For example, a wire EDM uses a very small
cutter diameter, in the form of a wire. A laser cutting ma-
chine uses laser beam as its cutter, also having a known dia-
meter but the term kerf is used instead. The focus will be
concentrated on metal cutting machine tools, using various
styles of end mills as the primary tool for contouring. Since
an end mill can be used in many ways, first look will be at Figure 2-2
the various types of available milling machines. Schematic representation of a CNC horizontal machining center

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

Vertical and Horizontal Machining Center - Typical Specifications

Description Vertical Machining Center Horizontal Machining Center


Number of axes 3 axes (XYZ) 4 axes (XYZB)

Table dimensions 780 x 400 mm 500 x 500 mm


31 x 16 inches 20 x 20 inches

Number of tools 20 36

Maximum travel - X axis 575 mm 725 mm


22.5 inches 28.5 inches

Maximum travel - Y axis 380 mm 560 mm


15 inches 22 inches

Maximum travel - Z axis 470 mm 560 mm


18.5 inches 22 inches

Spindle speed 60-8000 rpm 40 - 4000 rpm

Spindle output AC 7.5/5.5 kW AC 11/8 kW


AC 10/7 HP AC 15/11 HP

Spindle nose-to-table distance - Z axis 150 - 625 mm 150 - 710 mm


6 - 24.6 inches 6 - 28 inches

Spindle center-to-column distance - Y axis 430 mm 30 - 560 mm


17 inches 1.2 - 22 inches

Spindle taper No. 40 No. 50

Tool shank size BT40 CAT50

Number of pallets N/A 2

Pallet type N/A Rotary shuttle

Pallet change time N/A 5 seconds

Pallet indexing angle N/A 0.001 degree

Feedrate range 2 - 10000 mm/min 1 - 10000 mm/min


0.100 - 393 in/min 0.04 - 393 in/min

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)

Tool selection Random memory Random memory

Maximum tool diameter 80 mm (150 w/empty pockets) 105 mm


3.15 inches (5.9 w/empty pockets) 4.1 inches

Maximum tool length 300 mm 350 mm


11.8 inches 13.75 inches

Tool change time (chip-to-chip) 2.5 seconds 4 seconds


10 Chapter 2

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

CNC MACHINES - TURNING u Number of Axes


The most common distinction of different CNC lathes is
Conventional engine lathe or a turret lathe is a common by the number of programmable axes. Vertical CNC lathes
machine in just about every machine shop. A lathe is used have two axes in most designs available. The much more
for machining cylindrical or conical work, such as shafts, common CNC horizontal lathes, commonly designed with
rings, wheels, bores, threads, etc. The most common lathe two programmable axes, are also available with three, four,
operation is removal of material from a round stock, using six, and more axes, thus adding extra flexibility to manu-
a turning tool for external cutting. A lathe can also be used facturing of more complex parts.
for internal operations such as boring, as well as for facing,
grooving, threading, etc., if a proper cutting tool is used. A typical horizontal CNC lathe can further be described
Turret lathes are usually weaker in machining power than by the type of engineering design:
engine lathes, but they do have a special holder that stores
several mounted cutting tools. An engine lathe has often
n FRONT lathe ... an engine lathe type
only one or two cutting tools mounted at a time, but has n REAR lathe ... a unique slant bed type
more machining power.
Slant bed type is very popular for general work, because
Typical lathe work controlled by a CNC system uses ma- its design allows cutting chips to fall away from the CNC
chines known in industry as the CNC Turning Centers - or operator and, in case of an accident, forces the part to fall
more commonly - CNC lathes. down into a safe area, towards chip conveyer.
The term 'turning center' is rather unpopular, but an ac- Between the categories of flat bed and slant type lathes,
curate overall description of a computerized lathe (a CNC front and rear lathes, horizontal and vertical lathe designs,
lathe) that can be used for a great number of machining op- there is another variety of a lathe. This category describes
erations during single setup. For example, in addition to the CNC lathes by the number of axis, which is probably the
standard lathe operations such as turning and boring, CNC simplest and most common method of lathe identification.
lathe can be used for drilling, grooving, threading, knurling
and even burnishing. It can also be used in different modes, AXES DESIGNATION
such as chuck and collet work, barfeeder, or between cen-
ters. Many other combinations also exist. CNC lathes are
designed to hold several tools in special turrets, they can A typical CNC lathe is designed with two standard axes -
have a milling attachment (live tooling), indexable chuck, a one axis is the X-axis, the other axis is the Z-axis. Both
sub-spindle, tailstock, steady rest and many other features axes are perpendicular to each other and represent the typi-
not always associated with a conventional lathe design. cal two-axis lathe motions. X-axis also represents cross
Lathes with more than four axes are also common. With travel of the cutting tool, Z-axis represents its longitudinal
constant advances in machine tool technologies, more motion. All varieties of cutting tools are mounted in a turret
CNC lathes appear on the market that are designed to do a (a special tool magazine) and can be external or internal.
number of operations in a single setup, many of them tradi- Because of this design, a turret loaded with all cutting tools
tionally reserved for a mill or machining center. moves along both X and Z axes, which means all tools are
in the work area at all times.
u Types of CNC Lathes Following the established standards of milling machines
Basically, CNC lathes can be categorized by the type of and machining centers, the only machine axis capable of
design and by the number of axes. The two basic types are a making a hole by methods of drilling, boring, piercing or
vertical CNC lathe and a horizontal CNC lathe. Of the two, punching, is the Z-axis.
the horizontal type is by far the most common in manufac- In CNC lathe work, the traditional axis orientation for a
turing and machine shops. A vertical CNC lathe (incor- horizontal type of lathe is upwards and downwards motion
rectly called a vertical boring mill) is somewhat less com- for the X-axis, and left and right motion for the Z-axis,
mon but is irreplaceable for a large diameter work. For when looking from the machinist’s position. This view is
CNC programmer, there are no significant differences in shown in the following three illustrations Figure 3-1, Fig-
programming approach between the two lathe types. ure 3-2, and Figure 3-3.

11
12 Chapter 3

In addition to the X and Z primary axes, the multi-axis


Headstock Turret lathes have individual descriptions of each additional axis,
for example, the C-axis or Y-axis, used for milling opera-
Chuck tions, using the so called live tooling (see page 457). More
details on the subject of coordinate system and machine ge-
Jaws ometry are available in the next chapter.
Tool
X+ u
Tailstock Two-axis Lathe
C Z- Z+ This is the most common type of CNC lathes. The work
L holding device, usually a chuck, is mounted on the left side
Center
of the machine (as viewed by the operator). Rear type, with
X- Quill slant bed, is the most popular design for general work. For
some special work, for example in the petroleum industry
Figure 3-1 (where turning tube ends is a common work), a flat bed is
Typical configuration of a two axis slant bed CNC lathe - rear type usually more suitable. Cutting tools are held in a specially
designed indexing turret that can hold four, six, eight, ten,
X+ twelve and more tools. Many such lathes also have two tur-
rets, one on each side of the spindle center line.
Z- Z+ Advanced machine tool designs incorporate tool storage
away from the work area, similar to design of machining
X- centers. Tens and even hundreds of cutting tools may be
stored and used for a single CNC program. Many lathes
X- also incorporate a quick changing tooling system.

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

u Four-axis Lathe However, there is more in a promotional brochure than


By design, a four-axis CNC lathe is a totally different just attractive illustrations - in fact, a well designed bro-
concept than a three-axis lathe. As a matter of fact, to pro- chure offers a wealth of technical information, describing
gram a four-axis lathe is nothing more than programming the machine tool in many details. These are features and
two two-axis lathes at the same time. That may sound specifications the CNC machine tool manufacturer consid-
strange at first, until the principle of a four-axis CNC lathe ers important to the customer.
becomes clearer. In the majority of brochures, there are practical data that
There are actually two controls and two sets of XZ axes, can be used in programming a particular CNC machine, a
one for each pair (set) of axes. Only one program may be lathe in the example.
used to do the external - or outside - diameter roughing
u Typical Machine Specifications
(OD) and another program to do the inside - or internal -
roughing (ID). Since a four-axis lathe can work with each A typical horizontal CNC lathe, with two axes and a slant
pair of axes independently, the OD and ID can be machined bed design, may have the following specifications (taken
at the same time, doing two different operations simulta- from an actual brochure):
neously. The main keys to a successful 4-axis lathe pro-
gramming is coordination of the tools and their operations, Description Specification
timing of the tool motions and a generous sense of healthy
compromise. Number of axes Two (X, Z) or three (X, Z and C)

Maximum swing over bed 560 mm


For several reasons, both pairs of axes cannot work all 22.05 inches
the time. Because of this restriction, special programming Maximum turning diameter 350 mm
13.76 inches
features such as synchronized waiting codes (typically
Maximum turning length 550 mm
Miscellaneous Function), the ability to estimate how much 21.65 inches
time each tool requires to complete each operation, etc., are 85 mm
Spindle bore 3.34 inches
required. There is a level of compromise here, because only
one spindle speed can be used for both active cutting tools, Bar capacity 71 mm
2.79 inches
although feedrate is independent for both pairs of axes.
This means that some machining operations simply cannot Number of tools 12

be done simultaneously. Tool size square 25 mm


1 inch
Not every lathe job benefits from 4-axis machining. Tool size round Æ40 mm
Æ1.57 inches
There are cases when it is more costly to run a job on a
4-axis lathe inefficiently and it may be very efficient to run Indexing time 0.15 second

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

Rotating tool speed 30 - 3600 r/min


A look at a typical promotional brochure describing a
CNC machine tool is very useful in many respects. In most Milling motor AC 3.7/2.2 kW
AC 5/2.95 HP
cases, the artwork quality is impressive, the printing, pho- 1 - 16 mm
tographs, paper selection and the use of colors is equally Collet size 0.04 - 0.63 inches
well done. It is the purpose of the brochure to make a good Tap size M3 - M16 metric
#5 - 5/8 inches
marketing tool and attract the potential buyer.
14 Chapter 3

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

u Control Features n Feedrate selection (special) is in m/min or in/min


n Rapid traverse rate different for X and Z axes
The last item in understanding the overall description of a
CNC lathe is a look at some control features unique to n Multiple repetitive cycles for turning, boring, facing,
lathes and how they differ form a typical milling control. contour repeat, grooving, and threading are available
The subject of control features is described in more detail, n Feedrate override is common from 0 to 200% in 10%
starting on page 19. increments (on some lathes only from 0 to 150%)
At this time, some features and program codes may not n X-axis can be mirrored
make much sense - they are included for reference only. n Tailstock can be programmable
Common and typical features are listed:
n Automatic chamfering and corner rounding using
n X-axis represents a diameter, not a radius C and R (or I / K) addresses in G01 mode
n Constant surface speed (CSS) - also known as cutting n Thread cutting feedrate available with six-decimal
speed (CS) - is standard control feature place accuracy (for inch units)
(G96 for cutting speed and G97 for spindle speed)
n Thread cutting feedrate available with five-decimal
n Absolute programming mode is X or Z or C place accuracy (for metric units) - seldom needed
n Incremental programming mode is U or W or H n Least input increment in X-axis is 0.001 mm or 0.0001
inches on diameter - one half of that amount per side
4 COORDINATE GEOMETRY

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:

An axis is a straight line passing through X-axis


the center of a plane or a solid figure,
around which the parts are symmetrically arranged
Origin
This definition can be enhanced by a statement that an
axis can also be a line of reference. In CNC programming,
an axis is used as a reference all the time. The definition
also contains the word ‘plane’. A plane is a term used in 2D
Figure 4-4
applications, while a solid object is used in 3D applica-
tions. Mathematical definition of a plane is: Point of origin - intersection of axes

This intersection called origin has a rather special mean-


A plane is a surface in which a straight line joining
any two of its points will lie wholly on the surface
ing in CNC programming. This origin point acquires a new
name, one typically called the program reference point.
Other terms are also used: program zero, part reference
From the top viewpoint of the observer, looking straight point, workpiece zero, part zero, and probably a few others
down on the illustration Figure 4-3, a viewing direction is - all with the same meaning and same purpose.
established. This is often called viewing a plane.
u Quadrants
Y-axis Viewing the two intersecting axes and the new plane,
four distinct areas can be clearly identified. Each area is
bounded by two axes. These areas are called quadrants.
Mathematically defined,

X-axis A quadrant is any one of the four parts of the plane


formed by the system of rectangular coordinates

The word quadrant, from Latin word quadrans or quad-


rantis, means the fourth part. It suggests four uniquely de-
fined areas or quadrants. Looking down in the top view at
the two intersecting axes, the following definitions apply to
quadrants. They are mathematically correct and are used in
Figure 4-3 all CNC/CAD/CAM applications:
Axis designation - viewing a plane
Mathematical designation is fully implemented in CNC Quadrant I UPPER RIGHT
Quadrant II UPPER LEFT
A plane is a 2D entity - the letter X identifies its horizon-
tal axis, the letter Y identifies its vertical axis. Such plane is Quadrant III LOWER LEFT
called the XY plane. Defined mathematically, the horizon-
tal axis is always listed as the first letter of the pair. In draft- Quadrant IV LOWER RIGHT
ing and CNC programming, this plane is also known as the
Top View or a Plan View. Other planes are also used in Quadrants are always defined in the counterclockwise di-
CNC, but not to the same extent as in CAD/CAM work. rection, from the horizontal X-axis and the naming conven-
tion uses Roman - not Arabic - numbers normally used.
COORDINATE GEOMETRY 17

Numbering of quadrants always starts at the positive side Y+ P3


of the horizontal axis. Figure 4-5 illustrates the definitions.
P2
Y-axis
P6
Quadrant II Quadrant I X- X+
X-Y+ X+Y+ P1

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

Figure 4-8 Another lathe variety, a vertical CNC lathe, is basically a


Standard orientation of planes and CNC machine tool axes horizontal lathe rotated 90°. Typical axes for horizontal and
vertical machine axes, as applied to turning, are illustrated
For CNC horizontal machining centers, the terminology in Figure 4-10.
is changed due to design of these machines. X-axis is the
table longitudinal direction, Y-axis is the column direction u Additional Axes
and Z-axis is the spindle direction. Horizontal machine can
be viewed as a vertical machine rotated in space by ninety A CNC machine of any type can be designed with one or
degrees. Additional feature of a horizontal machining cen- more additional axes, normally designated as the second-
ter is indexing B-axis. Typical machine axes applied to ary - or parallel - axes using the U, V and W letters. These
CNC vertical machines are illustrated in Figure 4-9. axes are normally parallel to the primary X, Y and Z axes
respectively. For a rotary or an indexing applications, addi-
tional axes are defined as A, B and C axes, as being rotated
about the X, Y and Z axes, again in their respective order.
Y+ Positive direction of a rotary (or an indexing) axis is the di-
rection required to advance a right handed screw in the
positive X, Y or Z axis. Relationship between the primary
and supplementary axes is shown in Figure 4-11.

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.

CRT DISPLAY SCREEN RESET KEY EDIT KEYS

HELP KEY ADDRESS NUMERIC


KEYBOARD KEYBOARD

GE Fanuc Series 16-M


RESET O( N ) GE P C 7 8 9 ALTER

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

FUNCTION OPERATION SELECTION KEYS


MENU KEY
SOFT KEYS SHIFT KEY
MENU KEY
CURSOR KEYS

ON / OFF BUTTONS END-OF-BLOCK KEY


PAGE CHANGE KEYS CANCEL KEY
INPUT KEY

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.

ZERO RETURN CYCLE END ERRORS


ALARM LUBE POWER ON READY
X Y Z 4 M00 M01 M30

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

RAPID MDI 90 100 110


80 120
JOG TAPE 175 70 130
150 200 60 140
HANDLE MEM 125 250 50 150
100 300 40 160
HOME EDIT 80 400 30 170
60 500 20 180
10 190
SELECT MODE 40 600 0 200
30 800
20 1000 FEEDRATE %
Y Z 15 1200
X
OFF ON
4 10 1500
5 2000
0 4000 CW STOP CCW

SELECT AXIS EDIT KEY JOG mm/min SPINDLE

25 50 80 90
70 100
F1 100 60 110

50 120 CYCLE START FEEDHOLD


RAPID OVERRIDE % SPINDLE OVERRIDE % AUTO EMG STOP

Figure 5-2
A typical operation panel of a CNC machining center - actual layout and features will vary on different models
CONTROL SYSTEM 21

Feature Description Feature Description


ON / OFF Power and control switch for AUTO Mode Allows automatic operations
switch the main power and control unit
MEMORY Allows program execution from
Starts program execution mode memory of the CNC unit
Cycle Start
or MDI command
TAPE / EXT Allows program execution from an
Emergency Stops all machine activity and external device, such as a desktop
Stop turns off power to the control unit or DNC mode computer (DNC) or a punched tape

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 Handle SYSTEM FEATURES


For setup purposes, each CNC machine has a rotary han-
dle that can move one selected axis by as little as the least CNC unit is nothing more than a sophisticated special
increment of the control system. The official Fanuc name purpose computer. The 'special purpose' in this case is a
for the handle is Manual Pulse Generator. Associated with computer capable of controlling the activities of a machine
the handle is Axis Select switch (often duplicated on the op- tool, such as lathe or machining center. It means the com-
eration panel as well as on the handle) and the range of in- puter has to be designed by a company that has expertise in
crement (that is the least increment X1, X10 and X100). this type of special purpose computers. Unlike many busi-
The letter X in this case is the multiplier and stands for 'X ness types of computers, each CNC unit is made for a par-
times'. One handle division will move the selected axis by ticular customer. The customer is typically a machine man-
X times the minimum increment of active units of measure- ufacturer, not the end user. The manufacturer specifies
ment. Handles with digital display on a small screen are certain requirements that the control system has to meet, re-
also available. In Figure 5-3 and the following table are de- quirements that reflect uniqueness of the machines they
tails of a typical traditional handle. build. Basic control does not change, but some customized
features may be added (or taken away) for a specific ma-
chine. Once a control system is sold to the machine manu-
Y Z facturer, more features are added to the whole system.
X 4 AXIS They relate to the design and capabilities of the machine.
SELECT
A good example is a CNC unit for two machines that are
the same in all respects except one. One machine has a
x1 x10 manual tool changer, the other has an automatic tool
changer. In order to support the automatic tool changer, the
x100 CNC unit must have special features built-in, that are not
RANGE required for a machine without the tool changer. The more
complex a CNC system is, the more expensive it is. Users
that do not require all sophisticated features, do not pay a
premium for features they do not need.

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

Some of the information in this handbook is quite special-


ized and listed for reference only. Programmers with lim-
ited experience do not need to know system parameters in a
30

70

great depth. Original factory settings are sufficient for most


40
60 machining jobs.
When the parameter screen is displayed, it shows the pa-
rameter number with some data in a row. Each row of num-
bers represents one byte, each digit in the byte is called a
Figure 5-3 bit. The word bit is made from the words Binary digIT and
is the smallest unit of a parameter input. Numbering of bits
An example of a detached handle, called the Manual Pulse Generator
(MPG), with a typical layout and features. starts with 0, read from the right to the left:
Layout and features may vary on different machine models.
Number #7 #6 #5 #4 #3 #2 #1 #0

One handle division motion is … xxxx 0 1 1 0 1 0 0 1


Handle
multiplier for metric units for imperial units Fanuc control system parameters belong to one of three
groups, specified within an allowed range:
X1 0.001 mm 0.0001 inch n Binary codes
X10 0.010 mm 0.0010 inch n Units inputs
X100 0.100 mm 0.0100 inch n Setting values
CONTROL SYSTEM 23

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:

“O Thou from whom all goodness flows,


I lift my soul to Thee;
In all my sorrows, conflicts, woes,
O Lord, remember me!

“When on my aching, burdened heart,


My sins lie heavily,
Thy pardon grant, Thy peace impart,
In love, remember me!

“When trials sore obstruct my way,


And ills I cannot flee,
Oh I let my strength be as my day,
For good, remember me!

“When worn with pain, disease, and grief,


This feeble body see,
Give patience, rest, and kind relief,
Hear, and remember me!

“When in the solemn hour of death


I wait Thy just decree,
Be this the prayer of my last breath,
‘O Lord, remember me!’”

As Little Sunshine stood there, unconsciously moving her baby lips


to the pretty tune,—ignorant of all the words and their meaning,—her
mother, not ignorant, took the tiny soft hand in hers and said for her
in her heart, “Amen.”
When the hymn was done, the congregation passed slowly out of
church, most of them stopping to speak or shake hands, for of
course all knew one another, and several were neighbours and
friends. Then at last Sunny’s papa ventured to take up his little girl,
and kiss her, telling her what a very good little girl she had been, and
how pleased he was to see it. The minister, walking home between
Maurice and Eddie, who seized upon him at once, turned round to
say that he had never known a little girl, taken to church for the first
time, behave so remarkably well. And though she was too young to
understand anything except that she had been a good girl, and
everybody loved her and was pleased with her, still Sunny also
looked pleased, as if satisfied that church-going was a sweet and
pleasant thing.
CHAPTER X.
Little Sunshine’s delicious holiday—equally delicious to her papa
and mamma, too—was now fast drawing to a close. This Sunday
sunset, more gorgeous perhaps than ever, was the last that the
assembled party of big and little people watched together from the
terrace. By the next Sunday, they knew, all of them would be
scattered far and wide, in all human probability never again to meet,
as a collective party, in this world. For some of them had come from
the “under world,” the Antipodes, and were going back thither in a
few months, and all had their homes and fortunes widely dispersed,
so as to make their chances of future reunion small.
They were sorry to part, I think,—even those who were nearly
strangers to one another,—and those who were friends were very
sorry indeed. The children, of course, were not sorry at all, for they
understood nothing about the matter. For instance, it did not occur in
the least to Sunny or to Austin Thomas (still viewing one another
with suspicious eyes, and always on the brink of war, though Sunny
kept her promise, and did not attack again), that the next time they
met might be as big boy and girl, learning lessons, and not at all
disposed to fight; or else as grown young man and woman, obliged
to be polite to one another whether they liked it or not.
But the elders were rather grave, and watched the sun set, or rather
not the sun,—for he was always invisible early in the afternoon, the
house being placed on the eastern slope of the hill,—but the sunset
glow on the range of mountains opposite. Which, as the light
gradually receded upward, the shadow pursuing, had been, evening
after evening, the loveliest sight imaginable. This night especially,
the hills seemed to turn all colours, fading at last into a soft gray, but
keeping their outlines distinct long after the loch and valley were left
dark.
So, good-bye, sun! When he rose again, two of the party would be
on board a steamboat,—the steamboat, for there was but one,—
sailing away southward, where there were no hills, no lochs, no
salmon-fishing, no idle, sunshiny days,—nothing but work, work,
work. For “grown-ups,” as Sunny calls them, do really work; though,
as a little girl once observed pathetically to Sunny’s mamma, “Oh, I
wish I was grown up, and then I might be idle! We children have to
work so hard! while you and my mamma do nothing all day long.”
(Oh, dear!)
Well, work is good, and pleasant too; though perhaps Sunny’s papa
did not exactly think so, when he gave her her good-night kiss, which
was also good-bye. For he was to start so early in the morning that it
was almost the middle of the night, in order to catch the steamer
which should touch at the pier ten miles off, between six and seven
a. m. Consequently, there was breakfast by candle-light, and hasty
adieux, and a dreary departure of the carriage under the misty
morning starlight; everybody making an effort to be jolly, and not
quite accomplishing it. Then everybody, or as many as had had
courage to rise, went to bed again, and tried to sleep, with varied
success, Sunny’s mamma with none at all.
It recurred to her, as a curious coincidence, that this very day,
twenty-five years before, after sitting up all night, she had watched,
solemnly as one never does it twice in a lifetime, a glorious sunrise.
She thought she would go out and watch another, from the hillside,
over the mountains.
My children, did you ever watch a sunrise? No? Then go and do it as
soon as ever you can. Not lazily from your bedroom window, but out
in the open air, where you seem to hear and see the earth gradually
waking up, as she does morning after morning, each waking as
wonderful and beautiful as if she had not done the same for
thousands of years, and may do it for thousands more.
When the carriage drove off, it was still starlight,—morning starlight,
pale, dreary, and excessively cold; but now a faint coloured streak of
dawn began to put the stars out, and creep up and up behind the
curves of the eastern hills. Gradually the daylight increased,—it was
clear enough to see things, though everything looked cheerless and
gray. The grass and heather were not merely damp, but soaking wet,
and over the loch and its low-lying shores was spread a shroud of
white mist. There was something almost painful in the intense
stillness; it felt as if all the world were dead and buried, and when
suddenly a cock crew from the farm, he startled one as if he had
been a ghost.
But the mountains,—the mountains! Turning eastward, to look at
them, all the dullness, solitude, and dreariness of the lower world
vanished. They stood literally bathed in light, as the sun rose up
behind them, higher and higher, brighter and brighter, every minute.
Suddenly an arrow of light shot across the valley, and touched the
flat granite boulder on which, after a rather heavy climb, Sunny’s
mamma had succeeded in perching herself like a large bird, tucking
her feet under her, and wrapping herself up as tightly as possible in
her plaid, as some slight protection against the damp cold. But when
the sunshine came, chilliness and cheerlessness vanished. And as
the beam broadened, it seemed to light up the whole world.
How she longed for her child, not merely for company, though that
would have been welcome in the extreme solitude, but that she
might show her, what even such baby eyes could not but have seen,
—the exceeding beauty of God’s earth, and told her how it came out
of the love of God, who loved the world and all that was in it. How He
loved Sunny, and would take care of her all her life, as He had taken
care of her, and of her mamma, too. How, if she were good and
loved Him back again, He would be sure to make for her, through all
afflictions, a happy life; since, like the sunrise, “His mercies are new
every morning, and His compassions fail not.”
Warmer and warmer the cold rock grew; a few birds began to twitter,
the cocks crowed from the farmyard, and from one of the cottages a
slender line of blue peat smoke crept up, showing that somebody
else was awake besides Sunny’s mamma; which was rather a
comfort,—she was getting tired of having the world all to herself.
Presently an old woman came out of a cottage-door, and went to the
burn for water, probably to make her morning porridge. A tame
sheep followed her, walking leisurely to the burn and back again,
perhaps with an eye to the porridge-pot afterward. And a lazy pussy-
cat also crept out, and climbed on the roof of the cottage, for a little
bit of sunshine before breakfast. Sunny’s mamma also began to feel
that it was time to see about breakfast, for sunrise on the mountains
makes one very hungry.
Descending the hill was worse than ascending, there being no
regular track, only some marks of where the sheep were in the habit
of climbing. And the granite rocks presented a flat, sloping surface,
sometimes bare, sometimes covered with slippery moss, which was
not too agreeable. Elsewhere, the ground was generally boggy with
tufts of heather between, which one might step or jump. But as soon
as one came to a level bit it was sure to be bog, with little streams
running through it, which had to be crossed somehow, even without
the small convenience of stepping-stones.
Once, when her stout stick alone saved her from a sprained ankle,
she amused herself with thinking how in such a case she might have
shouted vainly for help, and how bewildered the old woman at the
cottage would have been on finding out that the large creature, a
sheep as she had probably supposed, sitting on the boulder
overhead, which she had looked up at once or twice, was actually a
wandering lady!
It was now half-past seven, and the usual breakfast party on the
door-step was due at eight. Welcome was the sound of little voices,
and the patter of small eager feet along the gravel walk. Sunny’s
mamma had soon her own child in her arms and the other children
around her, all eating bread and butter and drinking milk with the
greatest enjoyment. The sun was now quite warm, and the mist had
furled off the loch, leaving it clear and smooth as ever.
Suddenly Eddie’s sharp eyes caught something there which quite
interrupted his meal. It was a water-fowl, swimming in and out
among the island of water-lilies, and even coming as close inshore
as the pier. Not one of the nine geese, certainly; this bird was dark
coloured, and small, yet seemed larger than the water-hens, which
also were familiar to the children. Some one suggested it might
possibly be a wild duck.
Eddie’s eyes brightened. “Then might I ‘low’ in a boat, with papa’s
gun, and go and shoot it?”
This being a too irregular proceeding, Sunny’s mamma proposed a
medium course, namely, that Eddie should inform his papa that there
was a bird supposed to be a wild duck, and then he might do as he
thought best about shooting it.
Maurice and Eddie were accordingly off like lightning; three of
Maurice’s worms which had taken the opportunity of crawling out of
his pocket and on to the tray, being soon afterward found leisurely
walking over the bread and butter plate. Franky and Austin Thomas
took the excitement calmly, the one thinking it a good chance of
eating up his brothers’ rejected shares, and the other proceeding
unnoticed to his favourite occupation of filling the salt-cellar with
sand from the walk.
Soon Donald, who had also seen the bird, appeared, with his
master’s gun all ready, and the master, having got into his clothes in
preternaturally quick time, hurried down to the loch, his boys
accompanying him. Four persons, two big and two little, after one
unfortunate bird! which still kept swimming about, a tiny black dot on
the clear water, as happy and unconscious as possible.
The ladies, too, soon came out and watched the sport from the
terrace; wondering whether the duck was within range of the gun,
and whether it really was a wild duck, or not. A shot, heard from
behind the trees, deepened the interest; and when, a minute after, a
boat containing Maurice, Eddie, their papa, and Donald, was seen to
pull off from the pier, the excitement was so great that nobody
thought about breakfast.
“It must be a wild duck; they have shot it; it will be floating on the
water, and they are going after it in the boat.”
“I hope Eddie will not tumble into the water, in his eagerness to pull
the bird out.”
“There,—the gun is in the boat with them! Suppose Maurice
stumbles over it, and it goes off and shoots somebody!”
Such were the maternal forebodings, but nothing of the sort
happened, and by and by, when breakfast was getting exceedingly
cold, a little procession, all unharmed, was seen to wind up from the
loch, Eddie and Maurice on either side of their papa.
He walked between them, shouldering his gun, so that, loaded or
not, it could not possibly hurt his little boys. But he looked extremely
dejected, and so did Donald, who followed, bearing “the body”—of a
poor little dripping, forlorn-looking bird.
“Is that the wild duck?” asked everybody at once.
“Pooh! It wasn’t a wild duck at all. It was only a large water-hen. Not
worth the trouble of shooting, certainly not of cooking. And then we
had all the bother of getting out the gun, and tramping over the wet
grass to get a fair shot, and, after we shot it, of rowing after it, to fish
it up out of the loch. Wretched bird!”
Donald, imitating his master, regarded the booty with the utmost
contempt, even kicking it with his foot as it lay, poor little thing! But
no kicks could harm it now. Sunny only went up and touched it
timidly, stroking its pretty, wet feathers with her soft little hand.
“Mamma, can’t it fly? why doesn’t it get up and fly away? And it is so
cold. Might Sunny warm it?” as she had once tried to warm the only
dead thing she ever saw,—a little field mouse lying on the garden
walk at home, which she put in her pinafore and cuddled up to her
little “bosie,” and carried about with her for half an hour or more.
Quite puzzled, she watched Donald carrying off the bird, and only
half accepted mamma’s explanation that “there was no need to
warm it,—it was gone to its bye-bye, and would not wake up any
more.”
Though she was living at a shooting-lodge, this was the only dead
thing Sunny had yet chanced to see, for there was so little game
about that the gentlemen rarely shot any. But this morning one of
them declared that if he walked his legs off over the mountains, he
must go and have a try at something. So off he set, guided by
Donald, while the rest of the party fished meekly for trout, or went
along the hill-road on a still more humble hunt after blackberries.
Sometimes they wondered about the stray sportsman, and listened
for gun-shots from the hills,—the sound of a gun could be heard for
so very far in this still, bright weather.
And when, at the usual dinner-hour, he did not appear, they waited a
little while for him. They were going at length to begin the meal,
when he was seen coming leisurely along the garden walk.
Eager were the inquiries of the master.
“Well,—any grouse?”
“No.”
“Partridges?”
“No.”
“I knew it. There has not been a partridge seen here for years.
Snipes, perhaps?”
“Never saw one.”
“Then what have you been about? Have you shot nothing at all?”
“Not quite nothing. A roe-deer. The first I ever killed in my life. Here,
Donald.”
With all his brevity, the sportsman could not hide the sparkle of his
eye. Donald, looking equally delighted, unloosed the creature, which
he had been carrying around his neck in the most affectionate
manner, its fore legs clasped over one shoulder, and its hind legs
over the other, and laid it down on the gravel walk.
What a pretty creature it was, with its round, slender, shapely limbs,
its smooth satin skin, and its large eyes, that in life would have been
so soft and bright! They were dim and glazed now, though it was
scarcely cold yet.
Everybody gathered around to look at it, and the sportsman told the
whole story of his shot.
“She is a hind, you see; most likely has a fawn somewhere not far
off. For I shot her close by the farm here. I was coming home, not
over-pleased at coming so empty-handed, when I saw her standing
on the hill top, just over that rock there: a splendid shot she was, but
so far off that I never thought I should touch her. However, I took
aim, and down she dropped. Just feel her. She is an admirable
creature, so fat! Quite a picture!”
So it was, but a rather sad one. The deer lay, her graceful head
hopelessly dangling, and bloody drops beginning to ooze from her
open mouth.
Otherwise she might have been asleep,—as innocent. Sunny, who
had run with the boys to see the sight, evidently thought she was.
“Mamma, look at the little baa-lamb, the dear little baa-lamb. Won’t it
wake up?”
Mamma explained that it was not a baa-lamb, but a deer, and there
stopped, considering how to make her child understand that solemn
thing, death; which no child can be long kept in ignorance of, and yet
which is so difficult to explain. Meantime, Sunny stood looking at the
deer, but did not attempt to touch it as she had touched the water-
hen. It was so large a creature to lie there so helpless and
motionless. At last she looked up, with trouble in her eyes.
“Mamma, it won’t wake up. Make it wake up, please!”
“I can’t, my darling!” And there came a choke in mamma’s throat,—
this foolish mamma, who dislikes “sport,”—who looks upon soldiers
as man-slayers, “glory” as a great delusion, and war a heinous
crime. “My little one, the pretty deer has gone to sleep, and nobody
can wake it up again. But it does not suffer. Nothing hurts it now.
Come away, and mamma will tell you more about this another day.”
The little fingers contentedly twined themselves in her mamma’s,
and Sunshine came away, turning back now and then a slightly
regretful look on the poor hind that lay there, the admiration of
everybody, and especially of the gentleman who had shot it.
“The first I ever shot,” he repeated, with great pride. “I only wish I
could stay and eat her. But the rest of you will.” (Except Sunny’s
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

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.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookfinal.com

You might also like