Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
45 views76 pages

Introduction To CNC Machine

Uploaded by

Vanadi Hasuri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views76 pages

Introduction To CNC Machine

Uploaded by

Vanadi Hasuri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 76

Fundamentals of CNC Machining

A Practical Guide for Beginners


 

Fundamentals  of  CNC  Machining  


Desk  Copy  
 

 
 
  Compliments  of  Autodesk,  Inc.  
 
 
 
 
Copyright  2014  Autodesk,  Inc.  

 
All  Rights  Reserved.  

Reproduction  or  translation  of  any  part  of  this  work  beyond  that  permitted  by  Sections  107  and  108  of  the  1976  United  States  
Copyright  Act  without  the  expressed  written  permission  of  the  copyright  owner  is  unlawful.    Request  for  permission  or  further  
information  should  be  addressed  to  Autodesk,  Inc.  

Disclaimer  of  Liability  

The  entire  risk  as  to  its  accuracy  and  quality  is  with  the  reader.    In  no  event  shall  Autodesk,  Inc.  be  liable  for  direct,  indirect,  or  
consequential  damages  resulting  from  any  defect  in  this  material.  

Trademarks  

All  brands  are  the  trademark  of  their  respective  owners.  

Printed  in  the  United  States  of  America  


Registered  with  the  Library  of  Congress  
 
 
 
Fundamentals  of  CNC  Machining  
Desk  Copy  
Document  Number:  060711  
 
 
ISBN-­‐13:  978-­‐0-­‐615-­‐50059-­‐1  
ISBN-­‐10:  0615500595  

 
 
Fundamentals  of  CNC  Machining      

 
Table  of  Contents  
 

Chapter  1:  
Introduction  &  CNC  Process    
Overview  
Description  ................................................................  1-­‐3  
Prerequisites  ..........................................................  1-­‐3  
Audience  ................................................................  1-­‐3  
Course  Design  ........................................................  1-­‐3  
SRP  vs.  RP  ..................................................................  1-­‐4  
Prototype  vs.  Production  Machining  .........................  1-­‐4  
Required  Tools  and  Equipment  .................................  1-­‐4  
Lessons  and  Appendices  ............................................  1-­‐5  
Instructional  Resources  .............................................  1-­‐5  
Recommended  Use  ...................................................  1-­‐6  
Overview  of  CAD/CAM  Process  .................................  1-­‐6  
 
Chapter  2:  
Shop  Safety  
Overview  ...................................................................  2-­‐3  
Safety  Awareness  ......................................................  2-­‐3  
Personal  Conduct  &  Shop  Etiquette  ..........................  2-­‐4  
Shop  Clothing  ............................................................  2-­‐4  
Proper  Shop  Attire  Illustration  ...............................  2-­‐5  
General  Safety  Practices  ............................................  2-­‐6  
CNC  Safety  Practices  ..................................................  2-­‐6  
Safety  Contract  ..........................................................  2-­‐7  
Safety  Contract  Form  .............................................  2-­‐8  
 
Chapter  3:  
CNC  Tools  
Overview  ...................................................................  3-­‐3  
End  Mills  ....................................................................  3-­‐3  
Face  Mill  ....................................................................  3-­‐4  
Corner  Radius  Mill  .....................................................  3-­‐5  
Slot  Mill/Slotting  Saw  ................................................  3-­‐5  
Center-­‐Spot  Drill  ........................................................  3-­‐5  
Twist  Drill  ...................................................................  3-­‐6  
Tap  .............................................................................  3-­‐6  
Reamer  ......................................................................  3-­‐7  
Counterbore  ..............................................................  3-­‐8  
Cutting  Tool  Fundamentals  .......................................  3-­‐8  
Rotational  Direction  ...............................................  3-­‐8  
Chip  Formation  ......................................................  3-­‐8  
Chip  Load  ...............................................................  3-­‐9  
Climb  vs.  Conventional  Milling  ...............................  3-­‐9  
Cutting  Speeds  and  Feeds  Formulas  ........................  3-­‐10  
Speed  Formula  .....................................................  3-­‐11  
Feed  Formula  .......................................................  3-­‐12  
Tap  Feed  Formula  ................................................  3-­‐12  
Speed/Feed  Examples  .............................................  3-­‐13  
Milling  Speed/Feed  Example  ................................  3-­‐13  
Drill  Speed/Feed  Example  ....................................  3-­‐14  

i  
Fundamentals  of  CNC  Machining     Contents  

Tap  Speed/Feed  Example  .....................................  3-­‐15  


Maximum  Spindle  Speed  Example  .......................  3-­‐16  
Cutting  Data  .............................................................  3-­‐17  
Best  Practices  Machining  Parameters  ..................  3-­‐18  
Troubleshooting  Speed/Feed  Problems  ...............  3-­‐19  
 
Chapter  4:  
Coordinate  Systems  
Overview  ...................................................................  4-­‐3  
Cartesian  Coordinate  System  ....................................  4-­‐3  
Number  Line  ..........................................................  4-­‐3  
3D  Cartesian  Coordinate  System  ...........................  4-­‐3  
Quadrants  ..............................................................  4-­‐4  
Units  ..........................................................................  4-­‐5  
Vertical  Machining  Center  (VMC)  Motion  .................  4-­‐5  
CNC  Motion  Control  ...............................................  4-­‐6  
CNC  Machine  Coordinates  .....................................  4-­‐6  
About  Machine  Home  Position  ..............................  4-­‐7  
Work  Coordinate  System  (WCS)  ................................  4-­‐8  
WCS  Example-­‐1  ......................................................  4-­‐9  
WCS  Example-­‐2  ....................................................  4-­‐10  
WCS  Example-­‐3  ....................................................  4-­‐11  
Machine  and  Tool  Offsets  .......................................  4-­‐12  
Machine  Offset  XY  ................................................  4-­‐12  
Machine  Offset  Z  ..................................................  4-­‐13  
Tool  Lenght  Offset  (TLO)  ......................................  4-­‐13  
 
Chapter  5:  
CNC  Programming  Language  
Overview  ...................................................................  5-­‐3  
CNC  Language  and  Structure  .....................................  5-­‐3  
Program  Format  .....................................................  5-­‐4  
CNC  Editor  .................................................................  5-­‐4  
Alphabetic  &  Special  Character  Address  Codes  .........  5-­‐5  
Alphabetic  Address  Code  Definitions  .....................  5-­‐5  
G&M  Codes  ...............................................................  5-­‐8  
G-­‐Codes  ..................................................................  5-­‐8  
M-­‐Codes  .................................................................  5-­‐8  
Select  G-­‐Code  Definitions  (Expanded)  ...................  5-­‐9  
Canned  Cycles  ..........................................................  5-­‐10  
       
Chapter  6:  
CNC  Operation  
Overview  of  CNC  Setup  and  Operation  .....................  6-­‐3  
 
Machine  and  Tool  Offsets  .........................................  6-­‐5  
Fixture  Offset  XY  ....................................................  6-­‐5  
Fixture  Offset  Z  ......................................................  6-­‐6  
Tool  Length  Offset  (TLO)  ........................................  6-­‐7  
Haas  Control  Face  ......................................................  6-­‐8  
Haas  Keyboard  .......................................................  6-­‐9  
Start/Home  Machine  ...............................................  6-­‐10  
Load  Tools  ...............................................................  6-­‐11  
Set  Tool  Length  Offset  (TLO)  ...................................  6-­‐13  
Set  Fixture  Offset  XY  ................................................  6-­‐17  

ii  
Contents       Fundamentals  of  CNC  Machining  

Set  Fixture  Offset  Z  ..................................................  6-­‐21  


Load  CNC  Program  ...................................................  6-­‐24  
Run  CNC  Program  ....................................................  6-­‐26  
Adjusting  Diameter  (CDC)  Offsets  ...........................  6-­‐27  
Shut  Down  CNC  .......................................................  6-­‐29  
 
Chapter  7:  
2D  Milling  Toolpaths  
Overview  ...................................................................  7-­‐3  
2D/3D/4X/5X  Defined  ................................................  7-­‐3  
2D  (Prismatic)  Parts  ................................................  7-­‐3  
3D  Parts  ..................................................................  7-­‐4  
4-­‐Axis  Parts  ............................................................  7-­‐4  
Standard  CAD  Views  vs.  CAM  Views  ..........................  7-­‐6  
CAD  Features  vs.  Machining  Features  .......................  7-­‐6  
Toolpaths  by  Type  and  Use  .......................................  7-­‐7  
2D  Machining  Features  Example  ............................  7-­‐8  
2D  Toolpath  Terminology  ..........................................  7-­‐9  
Facing  ......................................................................  7-­‐10  
2D  Contouring  .........................................................  7-­‐11  
Cutter  Diameter  Compensation  ...........................  7-­‐12  
Pocketing  .................................................................  7-­‐13  
Slot  Milling  ...............................................................  7-­‐14  
Chamfer  Milling  .......................................................  7-­‐15  
Radius  (Corner-­‐Round)  Milling  ................................  7-­‐16  
Center  Drill  ..............................................................  7-­‐17  
Drilling  .....................................................................  7-­‐18  
Tapping  ....................................................................  7-­‐19  
 
Chapter  8:  
CNC  Turning  
Overview  ...................................................................  8-­‐3  
Lathe  Components  .................................................  8-­‐4  
Spindle  ...................................................................  8-­‐5  
Turret  .....................................................................  8-­‐6  
Lathe  Coordinate  System  ..........................................  8-­‐8  
Driven  (Live)  Tools  .....................................................  8-­‐9  
Imaginary  Tool  Tip  ...................................................  8-­‐10  
Part  Datum  ..............................................................  8-­‐11  
Tools  and  Tool  Holders  ............................................  8-­‐12  
Chip  Breaker  .........................................................  8-­‐12  
Relief  Angle  ..........................................................  8-­‐13  
Tool  Cutting  Angles  ..............................................  8-­‐13  
Rake  Angle  ...........................................................  8-­‐14  
Insert  Designations  ..................................................  8-­‐15  
Lathe  Tool  Types  ......................................................  8-­‐17  
Face/Turn  Tools  ...................................................  8-­‐17  
Groove  Tool  ..........................................................  8-­‐18  
Bore  Tool  ..............................................................  8-­‐19  
Thread  Tool  ..........................................................  8-­‐20  
Cutoff  Tool  ...........................................................  8-­‐21  
Cutting  Speeds  and  Feeds  .......................................  8-­‐22  
Speed/Feed  Example  ...........................................  8-­‐23  
Cutting  Feed  Example  ..........................................  8-­‐24  
Lathe  Setup  and  Programming  Example  .................  8-­‐25  
Setup  ....................................................................  8-­‐26  
iii  
Fundamentals  of  CNC  Machining     Contents  

Face  ......................................................................  8-­‐27  


Rough  ...................................................................  8-­‐28  
Finish  ....................................................................  8-­‐29  
Groove  .................................................................  8-­‐30  
Thread  ..................................................................  8-­‐31  
Drill  .......................................................................  8-­‐32  
Bore  ......................................................................  8-­‐33  
Cutoff  ...................................................................  8-­‐34  
 
Chapter  9:  
3D  Toolpaths  
Overview  ...................................................................  9-­‐3  
3D  Cutter  Compensation  ...........................................  9-­‐3  
Tolerances  .................................................................  9-­‐4  
3D  Toolpath  Setups  ...................................................  9-­‐6  
3D  Roughing  ..............................................................  9-­‐6  
Parallel  Finish  ............................................................  9-­‐7  
Scallop  Height  ........................................................  9-­‐8  
3D  Scallop  ..................................................................  9-­‐9  
REST  Milling  .............................................................  9-­‐10  
Pencil  Toolpaths  ......................................................  9-­‐11  
Conceptualizing  3D  Toolpaths  .................................  9-­‐12  
 
Chapter  10:  
Milling  Setups  
Overview  .................................................................  10-­‐3  
Fixture  Components  ................................................  10-­‐3  
     Subplates  and  Angle  Plates  ...................................  10-­‐3  
     Clamps  ..................................................................  10-­‐4  
Shoulder  Bolts  and  Dowel  Pins  ................................  10-­‐5  
Vise  Accessories  ......................................................  10-­‐5  
Hard  Jaws  .............................................................  10-­‐6  
       Soft  Jaws  ..............................................................  10-­‐6  
 
Appendix  A:  
CNC  Milling  Work-­‐Holding  Examples  
 
Project  1  :  Install  Vise  ................................................  A-­‐2  
Project  2  :  Install  Vise  Jaws  ........................................  A-­‐4  
Project  3  :  Square  Block  .............................................  A-­‐5  
Project  4  :  Contour  Square  Step  ..............................  A-­‐13  
Project  5  :  Base  ........................................................  A-­‐16  
Project  6  :  Housing  ..................................................  A-­‐21  
Project  7  :  Fan  Blades  ..............................................  A-­‐23  
Project  8  :  Clamp  .....................................................  A-­‐29  
Project  9  :  Fixture  Plate  ...........................................  A-­‐31  
Project  10  :  French  Curve  ........................................  A-­‐33  
Project  11  :  Honeycomb  ..........................................  A-­‐38  
Project  12  :  Bracket  .................................................  A-­‐40  
Project  13  :  Microwave  Housing  ..............................  A-­‐49  
Project  14  :  Geneva  Gear  .........................................  A-­‐57  
 
 
 
 

iv  
Contents       Fundamentals  of  CNC  Machining  

Appendix  B:  
Alternate  Tool  Setting  Methods  
List  of  Common  Methods  ..........................................  B-­‐1  
Using  Paper  ...............................................................  B-­‐2  
1-­‐2-­‐3  Block  on  Finished  Part  Face  ..............................  B-­‐3  
1-­‐2-­‐3  Block  and  Dial  Indicator  ...................................  B-­‐4  
Tool  Probe  .................................................................  B-­‐4  
 
Appendix  C:  
CNC  Process  Planning  Form  
 
CNC  Process  Planning  Form  ................................  C-­‐1,  C-­‐2  
 
 
Appendix  D:  
G-­‐M  Code  Reference  
Milling  G-­‐  Codes  ........................................................  D-­‐1  
Milling  M-­‐Codes  ........................................................  D-­‐2  
Lathe  G-­‐Codes  ...................................................  D-­‐3,  D-­‐4  
Lathe  M-­‐Codes  ..........................................................  D-­‐4  
 
Appendix  E:  
Glossary  
Glossary  ..............................................................  E-­‐1,  E-­‐2  
               
Appendix  F:  
Drill  Chart  
Drill  Chart  ...........................................................  F-­‐1,  F-­‐2  
Inch  Pipe  Threads  ......................................................  F-­‐4  
Metric  Taps  ................................................................  F-­‐5  
 
 
 
 
   

v  
Fundamentals  of  CNC  Machining     Contents  

 
 
 
 
 
 
 
 
 

vi  
Fundamentals  of  CNC  Machining  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lesson  1  
Introduction  &  CNC  Process  Overview  
 
 
 
 
 
Upon  successful  completion  of  this  lesson,  you  will  be  able  to:  
• Describe  overall  course  goal,  prerequisites,  audience  and  course  design.  
• Describe  the  difference  between  Subtractive  Rapid  Prototyping  (SRP)  and  Rapid  
Prototyping  (RP)  and  the  advantages  and  disadvantages  of  each.  
• List  the  tools  and  equipment  required  for  this  course.  
• List  the  major  lesson  topics  covered  by  this  course.  
• List  the  major  student  resources  available  and  the  information  found  in  course  
appendices.  
• Describe  the  recommended  use  of  course  materials  to  maximize  the  learning  
experience.  
• Describe  in  general  the  overall  CAD/CAM/CNC  process.  
 
   

1-­‐1  
Fundamentals  of  CNC  Machining     Lesson  1  
Introduction  &  CNC  Process  Overview  

   

1-­‐2        Copyright  2014  Autodesk,  Inc.  


Lesson  1     Fundamentals  of  CNC  Machining  
Introduction  &  CNC  Process  Overview  

1.1  Course  Description  


 
The   goal   of   this   course   is   to   teach   persons   with   a   technical   background   how   to   program   and   operate  
Computer  Numerical  Control  (CNC)  mills  and  lathes.        
 
This   course   bridges   the   gap   between   what   persons   with   a   technical   education   know   and   what   they   must  
learn   to   begin   using   CNC   machine   tools.   The   types   of   parts,   materials   and   machining   operations   that  
engineers,  innovators,  and  niche  manufacturers  often  use  are  featured.  Work  holding  techniques  well  suited  
to  prototype  and  short-­‐run  production  are  detailed  and  used  as  examples.    
 
Prerequisites  
 
The  learner  is  expected  to  have  the  following:  
• Engineering  or  other  technical  degree  or  equivalent  experience.  
• Knowledge  of  the  proper  use  of  basic  hand  tools  and  precision  measuring  instruments,  including  calipers  
and  micrometers.  
• Some  manual  machining  experience  is  helpful  but  not  required.  
• Knowledge  of  Solidworks®  is  a  pre-­‐requisite  or  co-­‐requisite  for  this  course.  
 
Audience  
 
This  course  is  designed  for  the  following  audiences:  
• Working  engineers  and  designers.  
• Engineering  undergraduates  or  graduate  students.  
• Manufacturing  and  design  students.  
• Scientists.  
• Innovators.  
• Niche  manufacturers.  
 
Course  Design  
 
CNC   Machining   is   a   very   broad   subject   and   there   are   many   ways   to   do   most   things.   Covering   all   options  
would   fill   volumes   and   is   beyond   the   scope   of   any   one   book   or   course.   The   goal   of   this   course   is   not   to   turn  
and  engineer  into  a  journeyman  machinist.  Rather,  it  is  to  show  how  to  use  CNC  to  make  common  types  of  
parts,  teach  DFM  principles,  and  help  engineers  become  better  designers  and  managers.  
 
This  curriculum  was  created  using  an  Instruction  Design  process.  Engineering  educators  and  students  from  
leading   Universities,   as   well   as   practicing   engineers   in   a   variety   of   industries,   were   surveyed.   This   process  
determined   the   types   of   parts   and   materials   covered   in   this   course.   Parts   that   are   easier   made   using  
Additive  Rapid  Prototyping  (RP)  technologies  were  excluded.  
 
By   leveraging   what   anyone   with   a   technical   education   knows,   by   focusing   on   the   most   common   types   of  
parts   and   materials,   and   by   presenting   best   practices   for   prototype   machining,   learning   objectives   are  
narrowed  considerably.  Thus  a  remarkable  amount  can  be  achieved  in  a  short  time.  For  example,  working  
engineers   using   this   course   have   been   taught   to   set   up,   program,   and   operate   a   CNC   mill   in   less   than   24  
hours  of  combined  classroom/lab  time;  including  instruction  in  HSMWorks.    
 
This   economy   of   instruction   makes   CNC   accessible   to   almost   anyone:   from   working   engineers   to   students  
involved   in   design/build   competitions,   to   undergraduate   engineering   students   as   part   of   a   Design   for  
Manufacturing  (DFM)  course  or  hand-­‐on  lab.  
   
Copyright  2014  Autodesk,  Inc.     1-­‐3  
Fundamentals  of  CNC  Machining     Lesson  1  
Introduction  &  CNC  Process  Overview  

SRP  vs.  RP  


 
This  course  emphasizes  an  approach  to  CNC  machining  referred  to  as  Subtractive  Rapid  Prototyping  (SRP).  
SRP  deals  with  small  quantities  of  functional  prototypes.  Functional  prototypes  are  made  from  materials  like  
aluminum,   steel   and   polycarbonate   that   cannot   be   produced   with   widely   available   additive   Rapid  
Prototyping  (RP)  processes  such  as  SLA  (Stereolithography)  or  FDM  (Fused  Deposition  Modeling).    
 
SPR   is   not   as   simple   to   learn   and   use   as   RP.     It   takes   more   skill   and   often   more   time   to   apply.   The   main  
advantage  of  SRP  is  in  materials.  Almost  anything  can  be  machined.  SRP  parts  are  not  just  visual  aids,  they  
are  structural  components  that  can  be  tested  and  assembled  as  part  of  working  machines.    
 
Another   advantage   of   SRP   is   that   it   teaches   real   manufacturing   constraints   typical   of   the   aerospace,  
biomedical,  consumer  goods,  and  electronics  industries  –all  which  use  CNC  for  mass  production,  molds  and  
other  tooling.  RP  does  not  reflect  these  constraints.    A  part  that  is  easy  to  rapid  prototype  may  be  extremely  
difficult,  expensive,  or  even  impossible  to  manufacture.  SPR  provides  the  designer  with  feedback  about  the  
manufacturability   of   design   that   can   save   considerable   time   and   money   as   a   part   moves   from   concept   to  
product.  
 
Prototype  vs.  Production  Machining  
 
One  of  the  biggest  differences  between  making  a  few  or  many  parts  is  in  the  design  of  work-­‐holding  fixtures.    
Prototype   machining   emphasizes   quick,   simple   and   cheap   work   holding   solutions   such   as   vises,   clamps,  
screws  or  even  glue  or  double-­‐sided  tape.  High  production  parts  allow  the  cost  of  fixtures  to  be  amortized  
over   larger   quantities   to   justify   the   cost   of   more   elaborate   and   efficient   fixtures.   This   course   emphasized  
prototype  fixturing.      
 
1.2  Required  Tools  and  Equipment  
 
CNC  Machine  
 
To  maximize  learning,  this  course  focuses  on  CNC  machines  made  by  Haas  Automation,  Inc.  of  Oxnard,  CA.  
Chapters  5  (CNC  Programming  Language)  and  6  (CNC  Operation)  are  written  specifically  for  the  Haas  control.  
Haas  machines  are  highlighted  for  the  following  reasons:  
• Haas  Automation  is  the  largest  machine  tool  builder  in  the  western  world.  
• Haas  has  donated  or  endowed  many  machines  to  colleges,  universities,  and  technical  schools,  so  they  
are  likely  to  be  found  in  educational  institutes.  
• All  Haas  machines  use  the  same  control,  work  similarly,  and  use  industry  standard  programming.  What  
is  learned  is  easily  transferred  to  other  make  or  model  machines.    
• Haas   makes   several   small   footprint   CNC   machines   designed   specifically   for   engineering,   prototyping,  
medical,  jewelry,  and  niche  manufacturing  industries.  
 
  Warning:  While  this  course  covers  the  safety,  setup  and  operation  of  the  Haas  CNC’s,  it  is  not  a  substitute  
  for  the  machine  operator  manuals  or  training  by  a  qualified  technician.    
   
 
SolidWorks  +  HSMWorks  
 
This   course   uses   SolidWorks®   CAD   software   and   SolidWorks-­‐Integrated   CAM   (Computer-­‐Aided  
Manufacturing)   software   by   Autodesk,   Inc.   for   CNC   programming.   SolidWorks   is   widely   used   by   both  
industry   and   education   for   mechanical   design.   HSMWorks   is   completely   and   seamlessly   integrated   into  
SolidWorks,  is  very  easy  to  learn  and  use  and  is  particularly  well-­‐suited  to  persons  who  know  SolidWorks  and  
1-­‐4        Copyright  2014  Autodesk,  Inc.  
Lesson  1     Fundamentals  of  CNC  Machining  
Introduction  &  CNC  Process  Overview  

are  new  to  CNC  programming.  HSMWorks  also  stores  all  data  in  the  SolidWorks  Part  or  Assembly  file  which  
makes   file   management   simpler.   If   the   learner   already   knows   how   to   use   SolidWorks   they   already   know  
most  of  what  they  need  to  use  HSMWorks.  
 
All   of   these   attributes   are   essential   for   a   streamlined   course   in   CNC   machining   possible.   They   save   the  
substantial  time  takes  to  learn  the  completely  separate  interface  and  way  of  working  required  to  use  older  
technology  “stand-­‐alone”  CAD/CAM  software.    Our  experience  has  shown  the  distraction  and  time  needed  
to   learn   stand-­‐alone   CAM   is   a   major   obstacle   to   learning   CNC   and   adds   no   value   to   the   learning   experience.  
In  short,  stand-­‐alone  CAM  in  this  setting  is  all  pain  and  no  gain.  
 
HSMWorks  cuts  CAM  learning  time  easily  by  75%  or  more.  This  frees  class  time,  reduces  learner  frustration  
and  focuses  attention  where  it  belongs:  on  how  to  set  up,  program  and  run  CNC  machine  tools  –rather  than  
how  to  learn  a  completely  separate  (and  often  quirky)  stand-­‐alone  CAD/CAM  software  application.  
 
1.3  Lessons  &  Appendices  
 
Lessons  
1  –  Overview/Resources  
2  –  Shop  Safety  
3  –  Coordinate  Systems  
4  –  CNC  Programming  Language  
5  –  CNC  Tools  
6  –  CNC  Operation  
7  –  2D  Milling  Toolpaths  
8  –  CNC  Turning  
 
Appendices  
A  –  CNC  Milling  Work-­‐Holding  Examples    
B  –  Alternate  Tool  Setting  Methods    
C  –  CNC  Process  Planning  Forms  
D  –  G/M  Code  Reference  
E  –  Glossary  
F  –  Drill  Chart  
 
 
1.4  Instructional  Resources  
 
Instructor  Resources:  
• PowerPoint  presentations  for  each  lesson.  
• Lesson  Guides.  
• Exercises:  SolidWorks  files  with  HSMWorks  toolpaths  completed.  
• Videos  with  step-­‐by-­‐step  instructions  how  to  complete  each  exercise.  
• Assessment  with  solution  for  each  lesson.  
 
Student  Resources  
• Reading  assignments  for  each  lesson.  
• Videos  (SWF)  for  each  lecture  (PowerPoint).  
• Videos  with  step-­‐by-­‐step  instructions  how  to  complete  each  exercise.  
• Exercises:  SolidWorks  files.  
 

Copyright  2014  Autodesk,  Inc.     1-­‐5  


Fundamentals  of  CNC  Machining     Lesson  1  
Introduction  &  CNC  Process  Overview  

1.5  Recommended  Use  


 
To  get  the  most  from  this  course,  proceed  as  follows:  
• Read  the  Reading  Assignment  for  each  lesson  (PDF).  
• Watch  the  video  of  each  lecture,  or  attend  a  live  lecture  conducted  by  the  instructor.  
• Watch  the  video  for  the  practical  assignment.  
• Complete   the   assignment   using   HSMWorks.   Work   through   the   assignment   more   than   once   if  
possible.  Make  sure  you  understand  each  step  and  why  you  are  doing  what  the  assignment  requires.  
• Make  the  project  parts  on  the  CNC  machine.  
• Take  the  assessment  for  the  lesson.  
 
1.6  Overview  of  CAD/CAM  Process  
 
The  general  workflow  to  go  from  CAD  model  to  machined  CNC  part  is:  
1. Begin  with  CAD  model.  
2. Establish  Job  parameters  including  CNC  coordinate  system  and  stock  shape/size.  
3. Select  CNC  process.  
4. Select  cutting  tool  and  machining  parameters.   %  
5. Select  driving  CAD  geometry.   O01001  (CNCFUN1.6-­‐1  NAMEPLATE  EXERCISE)  
6. Verify  toolpath.   (T1    D=0.125  CR=0.  -­‐  ZMIN=0.075  -­‐  flat  end  mill)  
7. Post  Process.   G90  G94  G17  
8. Transfer  G-­‐code  program  to  CNC  machine.   G20  
9. Set  up  and  operate  CNC  machine  to  make  part.     N1  T1  M6  
S5000  M3  
 
G54  
  G0  X0.1504  Y-­‐0.0701  
  G43  Z1.434  H1  
  M8  
  Z0.1906  
  G1  Z0.1737  F13.333  
  G17  G3  X0.1501  Y-­‐0.0705  Z0.1702  I0.0473  J-­‐0.0359  
X0.1493  Y-­‐0.0717  Z0.167  I0.0476  J-­‐0.0355  
X0.1469  Y-­‐0.0753  Z0.1629  I0.0485  J-­‐0.0343  
X0.1442  Y-­‐0.0804  Z0.1612  I0.0509  J-­‐0.0306  
X0.2514  Y-­‐0.1315  Z0.1547  I0.0536  J-­‐0.0256  
X0.1442  Y-­‐0.0804  Z0.1482  I-­‐0.0536  J0.0256  
X0.2514  Y-­‐0.1315  Z0.1417  I0.0536  J-­‐0.0256  
X0.1442  Y-­‐0.0804  Z0.1352  I-­‐0.0536  J0.0256  
X0.2514  Y-­‐0.1315  Z0.1287  I0.0536  J-­‐0.0256  
X0.1442  Y-­‐0.0804  Z0.1222  I-­‐0.0536  J0.0256  
X0.2514  Y-­‐0.1315  Z0.1157  I0.0536  J-­‐0.0256  
X0.1442  Y-­‐0.0804  Z0.1091  I-­‐0.0536  J0.0256  
X0.2514  Y-­‐0.1315  Z0.1026  I0.0536  J-­‐0.0256  
X0.1442  Y-­‐0.0804  Z0.0961  I-­‐0.0536  J0.0256  
X0.2514  Y-­‐0.1315  Z0.0896  I0.0536  J-­‐0.0256  
X0.1442  Y-­‐0.0804  Z0.0831  I-­‐0.0536  J0.0256  
X0.2514  Y-­‐0.1315  Z0.0766  I0.0536  J-­‐0.0256  
 
X0.2543  Y-­‐0.0877  Z0.075  I-­‐0.0536   J0.0256  
X0.1751  Y-­‐0.1133  I-­‐0.0396  J-­‐0.0128  
G2  X0.1827  Y-­‐0.144  I-­‐0.2199  J-­‐0.0709  F40.  
X0.1871  Y-­‐0.1796  I-­‐0.3322  J-­‐0.0587  
G3  X0.1951  Y-­‐0.1798  I0.004  J0.0003  
X0.1957  Y-­‐0.134  I-­‐0.2397  J0.026  

1-­‐6        Copyright  2014  Autodesk,  Inc.  


Fundamentals  of  CNC  Machining  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lesson  2  
Shop  Safety  
 
 
 
 
 
Upon  successful  completion  of  this  lesson,  you  will  be  able  to:  
• Display  an  awareness  of  shop  safety.  
• Apply  general  shop  safety  rules.    
• Select  appropriate  shop  clothing.    
• Demonstrate  safe  personal  conduct  in  the  shop.  
• Apply  additional  safety  precautions  when  running  a  new  CNC  program.  
 
 
 

2-­‐1  
Fundamentals  of  CNC  Machining     Lesson  2  
Shop  Safety  

   

2-­‐2       Copyright  2014  Autodesk,  Inc.  


Lesson  2     Fundamentals  of  CNC  Machining  
Shop  Safety  

Overview  

This  is  the  most  important  lesson  of  this  course.  Machine  shops  are  inherently  dangerous  environments.  
What  you  do  not  know  can  seriously  injure  you.  The  purpose  of  this  lesson  is  to  provide  specific  safety  rules  
and  develop  an  overall  attitude  of  safety  awareness.  This  awareness  will  lead  to  wariness  which  is  your  best  
defense  against  injury.  Nurture  this  wariness  until  you  develop  a  habit  of  always  working  in  a  thoughtful,  
methodical  and  deliberate  way.    

Never  forget:  No  project  or  deadline  is  worth  risking  serious  injury.  Don’t  let  a  moment  of  inattention  or  
neglect  adversely  impact  the  rest  of  your  life.  

Safety First

2.1  –  Safety  Awareness  


Most   machinists   go   their   entire   career   with   no   serious   injury   even   though   they   work   with   many   different  
machines   that   expose   them   to   risks.   Machinists   are,   by   nature   and   training,   careful   and   methodical.   They  
learn  from  experience  an  attitude  of  safety  awareness  and  respect  for  equipment.  Knowing  that  ignorance  
can  hurt  you  is  essential  to  cultivating  an  attitude  of  safety.    

It   is   true   that   CNC   machines   are   generally   safer   than   manual   machine   tools.   They   are   usually   completely  
enclosed,  which  reduces  the  risk  of  flying  chips,  debris  from  broken  tools,  or  contact  with  a  spinning  tool.  
Yet  machine  shops  are  inherently  dangerous  places  that  are  unforgiving  of  any  carelessness,  ignorance,  or  
neglect.    

Cutting  tools,  and  the  chips  they  produce,  are  sharp.    Chips  ejected  from  the  machine  can  cause  eye  injuries.  
CNC  machines  can  move  over  one  foot  in  less  than  a  second.  Any  physical  contact  with  a  spinning  tool  will  
result  in  serious  cuts  or  worse.    Remember,  if  it  can  cut  metal  it  can  cut  skin  and  bone  just  as  easily.  

Here  are  some  examples  where  a  failure  to  know  or  apply  shop  safety  rules  caused  injury:  
• A  person  forgets  to  wear  safety  glasses  and  sustains  an  eye  injury  from  a  metal  chip  thrown  over  the  
top  cover  of  a  CNC  mill  as  they  walk  through  the  shop.  
• A  person  leans  against  a  bench  where  a  cutting  chip  has  fallen,  resulting  in  a  cut  to  their  hand.  
• A  person  wearing  open  sandal  shoes  has  a  chip  fall  between  their  foot  and  shoe,  causing  a  cut.  
• A  person  leaning  over  a  machine  suddenly  raises  their  head  and  bumps  into  a  tool  stored  in  the  tool  
changer,  causing  a  severe  cut.  
• A  person  reaches  into  the  machine  to  remove  a  part,  gets  distracted  and  rakes  their  arm  against  an  end  
mill.  
• A   person   grinds   a   piece   of   aluminum   on   a   bench   grinder   with   a   stone   type   wheel.   The   aluminum  
embeds   in   the   porous   wheel   and   expands   due   to   heating,   causing   the   wheel   to   fail   and   throw   off  
fragments  at  high  speed.  

Copyright  2014  Autodesk,  Inc.     2-­‐3  


Fundamentals  of  CNC  Machining     Lesson  2  
Shop  Safety  

2.2  –  Personal  Conduct  &  Shop  Etiquette  


It   is   important   to   follow   strict   of   rules   of   personal   conduct   and   etiquette   in   the   shop.   This   will   keep   you   and  
your  peers  safe  and  promote  a  hospitable  and  professional  environment:  
• Know  where  your  hands  are  at  all  times.    
• Move  deliberately  and  always  look  where  your  hands  are  going.    
• Always  be  aware  of  what  could  happen  if  your  hand  slips.    For  example,  when  tightening  a  bolt,  think  
about   what   would   happen   if   the   wrench   slipped.   Would   your   hand   or   arm   contact   a   tool?   A   pile   of  
sharp  chips?  
• Always   be   aware   of   what   could   happen   if   you   slipped   and   lost   your   footing.   Would   your   center   of  
gravity  cause  you  to  fall  into  a  sharp  tool  or  other  hazard?    
• No  horseplay  or  practical  jokes  are  allowed  in  the  shop.  
• Be  considerate.  Do  not  engage  in  loud  or  unnecessarily  talk.    
• Do  not  interrupt  someone  working  at  the  machine.  This  could  cause  them  to  make  a  mistake.  
• Never   borrow   tools   from   a   private   tool   box   without   first   asking   the   owner.   If   they   refuse,   accept   it  
graciously.  
• Respect  professional  Machinists.  There  is  much  you  can  learn  from  them.    
• Do  not  make  unreasonable  demands  (“I  need  it  yesterday”  etc.).  
• Clean  up  after  yourself.  Leave  the  machine  and  surrounding  area  at  least  as  clean  as  you  found  it.  
• Always  put  tools  and  equipment  where  you  found  them.  

2.3  –  Shop  Clothing  


Follow  these  rules  of  personal  dress  for  the  shop:  
• Wear  ANSI  approved  safety  glasses  or  ANSI  safety  approved  glasses  with  side  shields.  You  must  wear  
safety  glasses  at  all  times  in  the  shop,  not  just  when  at  the  machine.  
• If  machining  operations  are  loud,  use  hearing  protection.  
• Do  not  wear  flip  flops  or  sandals.  Leather  shoes  are  best.  Steel  toe  shoes  are  not  necessary  unless  
handling  heavy  objects  that  would  crush  regular  shoes.  
• Do  not  wear  long  sleeve  shirts  because  these  could  get  caught  in  equipment.  Wear  short  sleeves  or  
T-­‐shirts.    
• Remove  rings  and  watches  when  at  the  machine.  
• Do  not  wear  short  pants.  Wear  sturdy  long  pants  like  blue  jeans  or  work  pants.  
• Long  hair  should  be  tied  back  or  under  a  hat  to  prevent  it  being  caught  in  the  machine  spindle.  
• Never  wear  gloves  as  they  can  be  caught  in  the  machine.  Latex  gloves  are  acceptable.  

2-­‐4       Copyright  2014  Autodesk,  Inc.  


Lesson  2     Fundamentals  of  CNC  Machining  
Shop  Safety  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Figure  1:  Proper  Machine  Shop  Attire  

Copyright  2014  Autodesk,  Inc.     2-­‐5  


Fundamentals  of  CNC  Machining     Lesson  2  
Shop  Safety  

2.4  –  General  Safety  Practices  

Rules  for  a  safe  workplace:  


• Never  use  any  equipment  which  you  have  not  been  trained  to  operate  by  a  qualified  person.  
• Never  tamper  with  a  machine  safety  guard  or  switch.  
• Get  into  the  habit  of  constantly  tidying  the  workspace.  A  clean  workplace  is  safer.  Random  metal  can  
not  only  scratch  and  ruin  finished  parts,  they  can  cause  severe  cuts.    
• Use  caution  when  handling  cutting  tools.  They  are  very  sharp.  Never  handle  a  tool  by  its  cutting  flutes.  
• Never  start  or  jog  the  machine  until  you  have  checked  that  the  work  area  is  clear.  
• Never   push   the   start   button   on   the   machine   unless   you   are   certain   your   setup   is   capable   of   safely  
holding  the  part  against  all  cutting  forces  during  machining.    
• Use  caution  when  running  a  new  program:  especially  at  the  start  of  program  and  after  a  tool  change.    
• Know  where  the  emergency  stop  is  on  the  machine  and  practice  using  it  before  you  need  it.  
• Never  run  a  machine  alone  or  without  other  people  within  hearing  distance.  
• When  working  with  someone  else  at  the  machine,  clearly  communicate  who  is  running  the  machine.  
• Never  have  one  person  touching  the  control  while  the  other  is  working  in  the  machine  envelope.  
• Use  a  paint  brush  to  sweep  away  sharp  chips.  Never  use  your  hands  or  a  rag.    
• Never  use  an  air  hose  to  clear  chips  from  a  machine.  Flying  chips  are  dangerous  to  you  and  others.  
• Liquids  spills  are  slipping  hazards.  Clean  spills  immediately.    
• Dirty  or  oily  rags  must  be  stored  in  a  fireproof  canister.  These  can  spontaneous  combust  and  cause  a  
fire.  
• Lift  with  your  legs,  not  your  back.  
• Never  lift  anything  more  than  you  can  comfortably  handle.    
• Get  help  handling  heavy  or  bulky  objects.  
• At  the  end  of  the  program,  command  the  machine  to  position  the  part  close  to  the  operator  so  it  can  
be  easily  reached  without  leaning  far  into  the  CNC  machine.  
• Never  leave  a  running  machine  untended.  
• Before  shutting  the  machine  down,  remove  any  tools  from  the  spindle.    
• Avoid  contact  with  coolant.  Water-­‐based  coolant  contains  microbes  that  can  cause  infection.  
• Immediately  treat  and  cover  even  minor  cuts.  
• Report  any  injuries  immediately.  
• Remain  alert.  Think  safety  in  everything  you  do.  

 
 
2.5  CNC  Safety  Practices  
 
Use  these  extra  precautions  when  running  a  CNC  program  for  the  first  time:  
• Use  machine  Rapid  and  Feed  override  controls  to  slow  the  machine  down.  
• A   major   cause   of   crashes   is   setting   the   tool   or   fixture   offset   incorrectly.     Pay   particular   attention   to  
moves  at  the  start  of  program  and  immediately  after  a  tool  change  as  the  tool  moves  towards  the  part.  
Use   single-­‐block   mode   to   advance   through   the   program   one   line   at   a   time   until   the   tool   is   at   cutting  
depth.  
• Remain  at  the  machine  with  a  hand  on  or  near  the  emergency  stop  button.  
• Stop  machine  motion  at  the  first  sign  of  trouble.  
 
 
 
 
2-­‐6       Copyright  2014  Autodesk,  Inc.  
Lesson  2     Fundamentals  of  CNC  Machining  
Shop  Safety  

 
2.5  Safety  Contract  
 
Training   facilities   should   require   everyone   to   pass   a   safety   quiz   and   sign   a   safety   contract   before   allowing  
work  in  the  shop.  The  safety  contract  makes  clear  the  obligations  and  operating  regulations  of  the  facility.  
Failure   to   abide   by   the   terms   of   the   contract   is   cause   for   dismissal   from   the   shop.   An   example   safety  
contract  is  shown  on  the  facing  page.  
 
 
 
 
 
 
  Warning  
   
  What  you  don’t  know  CAN  hurt  you.  
   
 
Never  operate  a  machine  that  you  have  not    
been  properly  trained  to  use  by  a  qualified  person.  
 
Read  the  machine  operator  manuals    
and  follow  all  safety  instructions.  
 
THINK  SAFETY  FIRST  in  all  you  do.  

Copyright  2014  Autodesk,  Inc.     2-­‐7  


Fundamentals  of  CNC  Machining     Lesson  2  
Shop  Safety  

Shop  Safety  Compliance  Contract  


Course  Name/Number:   Instructor:  

Start  Date:  

You  are  not  authorized  to  work  in  the  shop  area  until  you  attend  the  Safety  Orientation,  pass  the  Safety  Quiz,  
and   sign   this   contract.   You   may   not   use   equipment   without   supervision   available   and   without   receiving  
instruction  in  its  use.  By  signing  this  contract,  you  agree  to  abide  by  the  following  guidelines.  Failure  to  follow  
safety  guidelines  is  cause  for  dismissal  from  class.  
 

Shop  Regulations  
 

Ø Wear   Safety   Glasses   –   You   must   wear   safety   glasses   AT   ALL   TIMES   while   in   the   shop   area.   You   must   wear  
safety  goggles  over  prescription  glasses  unless  your  glasses  have  side  shields  and  are  ANSI  safety  approved.  
Ø Use  Hearing  Protection  –  You  will  wear  hearing  protection  when  and  if  asked  to  do  so  by  the  instructor.  
Ø No  Jewelry  –  You  will  remove  all  rings,  watches,  necklaces,  bracelets,  and  dangling  earrings  before  operating  
any  machinery  or  tools.  
Ø Proper  Attire  -­‐  You  will  wear  ankle-­‐length  pants.  Loose  hair  and  clothing  are  extremely  dangerous.  You  must  
tuck  in  your  shirt,  roll  up  long  sleeves,  secure  draw  strings,  tie  back  hair,  etc…  
Ø No  Open-­‐Toe  Shoes  –  You  must  wear  appropriate  foot  wear  while  in  the  shop.  Shoes  must  be  fully  enclosed.  
Inappropriate  footwear  includes:  open-­‐toe  shoes,  sandals,  crocks,  high  heels,  etc…  
Ø Clean-­‐Up–Before  leaving  the  shop  area,  you  must  assist  in  cleaning  any  mess  (metal  chips,  splashed  coolant)  
that  you  produce.  You  must  clean  any  spilled  liquids  immediately.  
Ø Return  of  Tools  and  Parts-­‐You  will  return  any  tools,  instruments,  bits,  etc.  to  their  proper  location  after  using  
them.  
Ø You  will  only  operate  equipment  accompanied  by  an  instructor.  You  must  not  use  any  equipment  alone,  or  that  
you  have  not  been  trained  to  use.  
Ø You  must  follow  proper  operating  procedures  when  using  any  machinery.  
Ø You  must  be  courteous  to  others  in  the  shop.  
o Do  not  engage  in  disruptive  conversation.  
o Your  actions  must  not  interfere  with  others  or  their  work  area.  
o Do  not  use  hand  tools  from  any  personal  toolbox  without  permission  of  the  owner.  
Ø You  must  not  enter  the  shop  area  under  the  influence  of  drugs  or  alcohol.  This  includes  prescription  or  over-­‐
the-­‐counter  drugs  that  include  warnings  against  operating  machinery.  You  must  not  consume  alcohol  within  8  
hours  of  entering  the  shop  area.    
Ø You  must  never  remove  the  guards  or  disable  the  safety  equipment  from  machinery.  
Ø If   the   machine   makes   an   unusual   noise   or   acts   in   any   suspicious   manner,   you   must   stop   the   machine   and  
inform  the  instructor  immediately.  
Ø You  must  immediately  report  ANY  injury  to  the  instructor.  
Ø If  an  injury  requires  medical  attention,  call  911  immediately.  
Ø Do  not  lift  objects  heavier  than  can  be  easily  manage  without  the  aid  of  a  lifting  device  or  help.  
Ø Watch  for  slippery  conditions  and  clean  up  any  spills  immediately.  
By  my  signature  below,  I  certify  that  I  have  read  and  agree  to  comply  with  all  of  the  above  shop  regulations.  I  
realize  that  I  may  be  asked  to  leave  the  shop  area  for  non-­‐compliance  with  any  of  the  above  rules.  If  I  am  asked  
to  leave,  I  will  do  so  immediately  and  willingly.  
Name  (Printed):   Date:  
 
 
Signature:   Affiliation:  
 
 
 

2-­‐8       Copyright  2014  Autodesk,  Inc.  


Lesson  2     Fundamentals  of  CNC  Machining  
Shop  Safety  

THINK  SAFETY  
 

Copyright  2014  Autodesk,  Inc.     2-­‐9  


Fundamentals  of  CNC  Machining                                                                                                                                                                                    

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Lesson  3  
CNC  Tools  
 
 
 
 
 
Upon  successful  completion  of  this  lesson,  you  will  be  able  to:  
• List  the  most  commonly  used  CNC  tools.  
• Determine  spindle  rotational  direction.    
• Interpret  a  chip  formation  diagram.    
• Define  chip  load.    
• Distinguish  between  climb  and  conventional  milling.  
• Compute  cutting  speeds  and  feeds  for  a  specified  tool,  material  and  operation  
using  reference  tables.    

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3-­‐1  
Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   
3-­‐2        Copyright  2014  Autodesk,  Inc.  
Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

Overview  
 
A  wide  range  of  tool  types  and  configurations  are  available  for  CNC  milling  machines.    Discussing  every  type,  
variation  and  use  is  beyond  the  scope  of  this  course.  This  chapter  introduces  the  most  commonly  used  tools  
for  prototype  and  short  run  production  machining.  Any  tool  supply  catalog  will  list  many  others.  
 
• End  mills  (Flat,  Ball,  Bull  and  Chamfer)Face  mill  
• Corner  Rounding  tools  
• Slot  Tools  
• Spot-­‐Center  Drill  
• Twist  Drill  
• Tap  
• Reamer  
• Counterbore  
 

3.1  -­‐  End  Mills  


Milling  tools  include  flat,  ball,  bull  nose  and  chamfer.        

Flat  Nose Ball  Nose Bull  Nose Chamfer


 
Figure  1:  Mill  Tool  Nose  Types  
 

Flat  nose  mills  are  used  for  milling  2D  contours  and  pockets.    Ball  nose  mills  are  used  for  3D  milling.    Bull  
nose  end  mills  have  a  radius  corner.  They  are  used  to  create  a  fillet  on  the  bottom  of  a  wall.  Because  they  
are  sturdier  than  an  end  mill  they  are  also  sometimes  used  for  roughing  operations.  Chamfer  mills  have  an  
angled  nose  used  to  create  a  chamfer  or  to  de-­‐burr  parts.  

Number  of  Flutes  

Milling  tools  usually  have  either  two  or  four  cutting  flutes.    Two  flute  cutters  provide  more  chip  clearance  
when   milling   in   close   areas.     Four   flute   mills   are   more   rigid,   can   be   fed   faster,   and   are   preferred   when  
greater  chip  clearance  is  not  required,  such  as  when  milling  an  outside  contour.  

Center-­‐Cutting  End  Mills  


Milling  tools  are  either  center  cutting  or  non-­‐center  cutting.    Center  cutting  mills  can  plunge  straight  down  
into  material,  while  non-­‐center  cutting  tools  cannot.      

Copyright  2014  Autodesk,  Inc.     3-­‐3  


Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

Figure  2  below  shows  the  cutting  end  view  of  a  center  cutting  and  non-­‐center  cutting  end  mill.    Notice  that  
the  cutting  edges  of  the  center  cutting  end  mill  continues  to  the  center  of  the  tool.  The  center  of  the  other  
has  a  small  hole  at  the  center.    Non-­‐center  cutting  end  mills  require  a  pilot  hole,  ramping  or  helical  motion  
to  plunge  into  material.  

Cutting  Edges

Center  Cutting Non-­‐Center  Cutting

 
Figure  2:  End  View  of  Center  and  Non-­‐Center  Cutting  End  Mill  

 
3.2  -­‐  Face  Mill  
A  face  mill  has  cutting  inserts  that  are  replaced  when  worn.    They  are  rigid,  may  have  up  to  eight  or  more  
cutting  edges,  and  can  remove  material  quickly.    They  are  often  used  for  the  first  machining  operation  to  
quickly  create  a  flat  finished  face  on  the  part.  
 
 

Carbide  Insert

 
Figure  3:  Face  Mill  
 
 
 
   

3-­‐4        Copyright  2014  Autodesk,  Inc.  


Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

3.3  -­‐  Corner  Radius  Tool  


 
Corner  radius  (also  called  Corner  Round)  tools  are  used  to  place  a  fillet  on  the  outside  corner  of  a  part.      
 

   
Figure  4:  Corner  Round  Tool  
 

3.4  -­‐  Slot  Mill/Slotting  Saw  


 
Slot   mills   include   side   milling   cutters,   slitting   saws,   and   Woodruff   keyset   cutters.     Slitting   saws   and   side  
milling  cutters  are  installed  on  a  special  arbor.    Woodruff  cutters  are  single  piece  tools  used  for  creating  slots  
and  undercuts  that  can  be  held  in  a  standard  tool  holder.    

Slitting  Saw Side  Milling  Cutter Woodruff  Cutter


 
Figure  5:  Slot  Tools  

 
3.5  Hole-­‐Making  Tools  
 
Center-­‐Spot  Drills  

Center  (spotting)  drills  are  short  and  very  rigid  drills  used  to  create  a  conic  on  the  face  of  the  part.  Because  
they  come  to  a  sharp  point  and  resist  bending,  they  locate  the  hole  precisely.  The  conic  helps  prevent  the  
subsequent  drill  from  wobbling  and  ensure  the  drill  is  located  precisely  and  drills  straight  down.      

Countersink  drills  are  used  to  create  the  conical  face  for  a  machine  screw.     Combined   spotting-­‐countersinks  
are  used  to  create  a  screw  clearance  hole  and  countersink  in  one  operation.  
Copyright  2014  Autodesk,  Inc.     3-­‐5  
Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

There   are   many   different   sizes   and   tip   angles   of   center,   countersink,   and   combined   drills.     Be   sure   the   tip  
angle   of   the   countersink   matches   the   included   angle   of   the   machine   screw,   and   that   the   drill   diameter   is  
greater  than  the  screw  head  diameter.  

Spotting  Drill Countersink Combined


 
Figure  6:  Countersink  and  Center  Drill  

 
Twist  Drill  
 
Twist  drills  are  available  in  many  diameters  and  lengths.  Usually  made  of  high  speed  steel,  carbide,  or  cobalt,  
they  may  also  be  coated  with  titanium  nitride  (TiN)  for  longer  life.  The  tip  angle  of  most  twist  drills  is  118  
degrees.    

Tip  Angle

Twist  Drill
 
Figure  7:  Twist  Drill  

Taps  

Cutting  taps  form  threads  by  shearing  material  away.  Form  taps  (roll  taps)  form  the  thread  by  forming  the  
metal   to   shape.   Form   taps   produce   no   chips   and   are   used   for   soft   materials   including   aluminum,   copper,  
brass  and  plastics.  

3-­‐6        Copyright  2014  Autodesk,  Inc.  


Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

Bottoming  Tap Spiral  Point    Tap


 
Figure  8:  Taps  

Bottoming  taps  are  used  to  tap  blind  holes.  Spiral  point  taps  push  the  chip  ahead  and  out  the  bottom  of  a  
through  hole.  

Taps  require  a  hole  drilled  to  the  correct  size  to  ensure  the  thread  is  formed  properly.    For  example,  a  ¼-­‐20  
cutting  tap  requires  drilling  a  .201  (#7)  hole.  Refer  to  the  drill  chart  in  Appendix  A  to  find  the  correct  drill  size  
for  a  specified  thread  size  and  fit.  

Most   CNC   Machines   support   rigid   tapping,   which   means   the   tap   can   be   held   in   a   rigid   holder.   The   tap   is  
advanced  at  a  feed  rate  that  matches  the  thread  lead  into  the  hole.  The  spindle  then  stops,  reverses,  and  
backs  out  of  the  hole.  

Machines   without   rigid   tapping   require   special   tapping   attachments.   Always   refer   to   the   manufacturers’  
instructions  as  the  speed,  feed,  and  other  machining  parameters  for  tapping  attachments  may  be  different  
that  those  for  rigid  tapping.  

Reamer  

Use  reamers  to  create  holes  of  precise  shape  and  excellent  surface  finish.  Reamed  holes  are  usually  accurate  
within  .0002  inches  diameter.  For  example,  a  reamer  is  used  for  holes  used  for  ground  pins  and  bushings.    

Reamers   require   a   specific   size   hole   be   drilled   before   use.   Cutting   speeds   and   feeds   are   also   important.  
Remove  too  little  or  too  much  material  and  the  hole  will  not  be  the  correct  size.    

Reamer
 
Figure  9:  Reamer  

Copyright  2014  Autodesk,  Inc.     3-­‐7  


Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

Counterbore  

A  counterbore  looks  similar  to  a  end  mill  with  a  pilot  in  the  center.  It  is  used  to  spot  face  holes,  and  the  pilot  
ensures  the  spot  face  is  centered  on  the  hole.  

Counterboring   is   not   necessary   when   using   a   CNC   machine.   Rather,   create   a   spot   face   using   a   pocket   or  
circle  mill  tool  path.  This  saves  having  to  buy  and  stock  counterbore  tools  and  pilots,  and  the  time  required  
to  load  and  set  up  the  counterbore.      

3.6  Cutting  Tool  Fundamentals  


Rotation  Direction  

All   tools   (except   left-­‐handed   taps)   rotate   clockwise   (M3)   when   viewed   from   the   machine   spindle   looking  
down  at  the  part.  

Z+

X+
Y+

 
Figure  10:  Clockwise  Tool  Rotation  

Chip  Formation  

Cutting  tools  remove  metal  by  shearing  action  as  illustrated  in  Figure  11  below.    As  the  tool  advances  into  
the  material  it  causes  a  small  amount  of  the  material  to  shear  away,  forming  a  chip.      

Tool  Direction

Shear
Zone
Chip Tool

Workpiece

 
Figure  11:  Chip  Formation  Diagram  

3-­‐8        Copyright  2014  Autodesk,  Inc.  


Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

Chip  Load  

The  thickness  of  material  sheared  away  by  each  cutting  tooth  is  called  the  feed  per  tooth,  or  chip  load.  As  
the  chip  is  ejected  from  the  work  area  it  carries  with  it  some  of  the  heat  generated  by  the  shearing  process.  

Chip Chip  Load

Tool  Rotation

Y+

X+
 
Figure  12:  Chip  Load  

A  methodology  for  calculating  cutting  speeds  and  feeds  is  presented  later  in  this  chapter.  One  of  the  best  
ways  to  validate  cutting  speeds  and  feeds  is  to  observe  the  chips  created  by  the  machining  process.    Chips  
should  be  curled  and  may  change  color  due  to  heating.      

After  gaining  some  experience  machinists  are  able  to  adjust  cutting  speeds  and  feeds  based  in  part  on  the  
size,  shape,  and  color  of  chips  and  on  the  sound  produced  by  the  cutting  process.  

Climb  vs.  Conventional  Milling  

Milling  tools  can  advance  through  the  material  so  that  the  cutting  flutes  engage  the  material  at  maximum  
thickness  and  then  decreases  to  zero.  This  is  called  Climb  Milling.  

Cutting   in   the   opposite   direction   causes   the   tool   to   scoop   up   the   material,   starting   at   zero   thickness   and  
increasing  to  maximum.    This  is  called  Conventional  Milling.  

Conventional  milling  is  used  often  on  manual  machines  because  backlash  in  the  machine  lead  screws  causes  
the  tool  to  lurch  when  climb  cutting.  This  is  not  a  problem  on  CNC  machines  because  they  use  ball  screws.    

Conventional   milling   causes   the   tool   to   rub   against   the   cutting   surface,   work   hardening   the   material,  
generating  heat,  and  increasing  tool  wear.  Raking  chips  across  the  finished  surface  also  produces  a  poorer  
surface  finish.  

Unless  specifically  recommended  by  the  tool  manufacturer  for  the  material  being  milled,  always  use  climb  
milling   on   a   CNC.   Climb   milling   produces   far   less   cutting   pressure   and   heat,   leaves   a   better   surface   finish,  
and  results  in  longer  tool  life.  

Copyright  2014  Autodesk,  Inc.     3-­‐9  


Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

Cut  Direction

Spindle  Rotation

Climb  Milling

Cut  Direction

Spindle  Rotation
Y+
Conventional    Milling

X+
 
Figure  13:  Climb  vs.  Conventional  Milling  

3.7  Cutting  Speeds  and  Feeds  Formulas  


The   tool   moves   through   the   material   at   a   specified   rotational   speed,   defined   in   revolutions   per   minute  
(RPM),   and   feed   rate,   defined   in   inches   per   minute   (IPM).     Probably   the   most   vexing   problem   for   the  
beginning   CNC   machinist   is   selecting   proper   cutting   speeds   and   feeds.     This   selection   is   actually   more  
difficult  on  a  CNC  than  a  manual  mill  because,  with  a  manual  mill,  the  operator  can  feel  the  cutting  pressure  
and  alter  the  feed  based  in  part  on  the  cutting  force.    

CNC   mills   require   calculating   speeds   and   feeds   in   advance.     These   speeds   and   feeds   can,   and   often   are,  
adjusted   at   the   machine   based   on   chip   shape   and   color,   cutting   sound,   and   machine   horsepower   meter  
readings.  

The  best  source  of  data  about  cutting  speeds  and  feeds  for  a  specific  tool,  application,  and  material  is  the  
tool  supplier.  Much  of  this  data  is  found  on  manufacturer’s  web  sites  or  printed  tooling  catalogs.  Tool  sales  
representatives  can  be  a  valuable  resource,  so  if  you  do  a  lot  of  machining,  develop  a  good  relationship  with  
a  knowledgeable  representative.  

Another   source   of   speeds   and   feeds   data   is   CAD/CAM   software.   These   have   become   increasingly  
sophisticated  and  often  provide  good  cutting  data.  

Yet  even  the  best  speed  and  feed  data  is  just  a  starting  point.  Speeds  and  feeds  require  adjustment  due  to  
many  factors  including  the  maximum  spindle  speed  or  horsepower  of  the  machine,  rigidity  of  work  holding,  
and  the  quality  and  condition  of  the  machine  tool  itself.  

The  following  pages  provide  cutting  data  for  the  most  commonly  machined  materials  and  a  methodology  for  
calculating  speeds  and  feeds.  As  always,  use  common  sense.  If  the  part  is  held  by  double  sided  tape,  feeds  
based  on  vise  work  holding  are  probably  too  high.    If  the  tool  is  very  long  and  thin,  speeds  and  feeds  will  
likely  require  reduction.  
3-­‐10        Copyright  2014  Autodesk,  Inc.  
Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

Speed  Formula  

Milling  machine  cutting  speeds  are  derived  from  the  following  formula:  
 
𝑓𝑡
𝑟𝑒𝑣 𝑺𝑭𝑴
𝑚𝑖𝑛
𝑺𝒑𝒆𝒆𝒅 =  
𝑚𝑖𝑛 𝑪𝒊𝒓𝒄𝒖𝒎𝒇𝒆𝒓𝒆𝒏𝒄𝒆 𝑓𝑡  
 
Figure  14:  Speed  Formula  

Speed  is  the  rotational  frequency  of  the  tool  (Spindle  Speed)  in  revolutions  per  minute  (RPM).  

SFM   (Surface   Feet   per   Minute)   is   the   speed   at   which   the   material   moves   past   the   cutting   edge   (outside  
diameter)  of  the  tool  in  feet  per  minute.  SFM  values  depend  on  the  tool  type,  tool  material,  and  material  
being  machined.        

Circumference  is  the  circumference  of  the  cutting  tool  in  feet.  

How  Speed  Formula  is  Derived  

Because   cutting   tools   are   defined   by   their   diameter   in   inches,   this   formula   is   rewritten   and   simplified   as  
follows:    

 
 
 
𝑓𝑡
𝑟𝑒𝑣 𝑺𝑭𝑴
  𝑚𝑖𝑛
𝑺𝒑𝒆𝒆𝒅 =  
𝑚𝑖𝑛 𝟏𝑓𝑡
𝝅  𝑥    𝑥  𝑫𝒊𝒂(𝑖𝑛)  
  𝟏𝟐𝑖𝑛

   
𝑓𝑡
𝑟𝑒𝑣 𝑺𝑭𝑴
  𝑚𝑖𝑛
𝑺𝒑𝒆𝒆𝒅 = 𝝅  
𝑚𝑖𝑛 𝑥  𝑫𝒊𝒂(𝑖𝑛)
  𝟏𝟐
 
 
𝑓𝑡
𝑟𝑒𝑣 𝑺𝑭𝑴  𝑥  𝟑. 𝟖𝟐
  𝑚𝑖𝑛
𝑺𝒑𝒆𝒆𝒅 =  
𝑚𝑖𝑛 𝑫𝒊𝒂(𝑖𝑛)
 
   
Figure  15:  Speed  Formula  (Simplified)  
   
DIA  is  the  tool  diameter  in  inches.  
   
3.82  is  a  constant  derived  from  12/𝜋  which  converts  the  tool  circumference  in  feet  to  diameter  in  inches.    
 
 
 
   

Copyright  2014  Autodesk,  Inc.     3-­‐11  


Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

Feed  Formula  

Cutting  feeds  are  in  (IPM)  and  use  the  following  formula:  
 
  𝑖𝑛
𝑖𝑛 𝑟𝑒𝑣 𝑟𝑒𝑣
  𝑭𝒆𝒆𝒅 = 𝑺𝒑𝒆𝒆𝒅 𝑥𝑪𝑳 𝑥  𝑵𝒖𝒎𝑭𝒍𝒖𝒕𝒆𝒔  
𝑚𝑖𝑛 𝑚𝑖𝑛 𝑓𝑙𝑢𝑡𝑒
 
  16:  Feed  Formula  
Figure  
 
Feed  is  the  linear  feed  of  the  tool  through  the  material  in  inches  per  minute.  
 
Speed  is  the  result  of  the  speed  formula  (Figure  15)  in  revolutions  per  minute.  
 
CL   is   the   chip   load,   or   how   much   material   each   cutting   edge   of   the   tool   removes   per   revolution.   Chip   load   is  
sometimes  referred  to  as  feed  per  tooth  (FPT)  or  inches  per  rev  (IPR).    
 
NumFlutes  is  the  number  of  cutting  flutes.  (For  a  twist  drill,  this  value  is  one.)  
 
 
Tap  Feed  Formula  
 
For  tapping  operations,  feed  rate  is  based  on  the  number  of  threads  per  inch  and  feed  rate:  
 
   𝑺𝒑𝒆𝒆𝒅
𝑟𝑒𝑣
 
𝑖𝑛 𝑚𝑖𝑛
  𝑭𝒆𝒆𝒅 =  
𝑚𝑖𝑛 𝑻𝑷𝑰
 
 
Figure  17:  Tap  Feed  Formula  
 
Feed  is  the  linear  feed  of  the  tool  through  the  material  in  inches  per  minute.  
 
Speed  is  the  result  of  the  previous  formula  in  revolutions  per  minute.  
 
TPI  is  the  threads  per  inch  of  the  tap.  For  example,  the  TPI  of  a  ¼-­‐20  tap  is  20.  
   

3-­‐12        Copyright  2014  Autodesk,  Inc.  


Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

3.8  -­‐  Speed/Feed  Examples  


 
Milling  Speed/Feed  Example  
 
Problem:  Calculate  the  cutting  speed  and  feed  for  a  milling  operation  given  the  following  values:  
 
Parameter   Value  
Tool  Diameter   .500in  
NumFlutes   4  
SFM   600ft/min  
IPR   .005in  
Table  1:  Mill  Speed/Feed  Example  
 
Solution:    
 
Step  1:  Calculate  RPM  
𝑓𝑡
𝑟𝑒𝑣 𝑆𝐹𝑀( )  𝑥  3.82
min
𝑆𝑝𝑒𝑒𝑑( )=  
𝑚𝑖𝑛 𝐷𝑖𝑎(𝑖𝑛)
 
𝑓𝑡
𝑟𝑒𝑣 600( )  𝑥  3.82
𝑆𝑝𝑒𝑒𝑑( )= 𝑚𝑖𝑛  
𝑚𝑖𝑛 . 500𝑖𝑛
 
𝑟𝑒𝑣 𝑟𝑒𝑣
𝑺𝒑𝒆𝒆𝒅( ) = 𝟒𝟓𝟖𝟒  ( )  
𝑚𝑖𝑛 𝑚𝑖𝑛
 

 
Step  2:  Calculate  IPM  
𝑖𝑛
𝑖𝑛 𝑟𝑒𝑣 𝑟𝑒𝑣
𝑭𝒆𝒆𝒅 = 𝑺𝒑𝒆𝒆𝒅 𝑥𝑪𝑳 𝑥  𝑵𝒖𝒎𝑭𝒍𝒖𝒕𝒆𝒔  
𝑚𝑖𝑛 𝑚𝑖𝑛 𝑓𝑙𝑢𝑡𝑒
 
𝑖𝑛
𝑖𝑛 𝑟𝑒𝑣 𝑟𝑒𝑣
𝑭𝒆𝒆𝒅 𝟒𝟓𝟖𝟒 𝑥. 𝟎𝟎𝟓 𝑥  𝟒𝐹𝑙𝑢𝑡𝑒𝑠  
𝑚𝑖𝑛 𝑚𝑖𝑛 𝑓𝑙𝑢𝑡𝑒
 
𝑖𝑛 𝑖𝑛
𝑭𝒆𝒆𝒅 = 𝟗𝟏    ( )  
𝑚𝑖𝑛 𝑚𝑖𝑛
 
 
Note:  Round  off  milling  speeds  and  feeds  to  the  nearest  integer.    
 
   

Copyright  2014  Autodesk,  Inc.     3-­‐13  


Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

Drill  Speed/Feed  Example  

Problem:  Calculate  the  cutting  speed  and  feed  for  a  drill  operation  given  the  following  values:  

Parameter   Value  
Tool  Diameter   .201in  
SFM   250ft/min  
IPR   .002in  
 Table  2:  Drill  Speed/Feed  Example  
 
Solution:    
 
Step  1:  Calculate  RPM  
 
𝑓𝑡
𝑟𝑒𝑣 𝑆𝐹𝑀( )  𝑥  3.82
min
𝑆𝑝𝑒𝑒𝑑( )=  
𝑚𝑖𝑛 𝐷𝑖𝑎(𝑖𝑛)
 
𝑓𝑡
𝑟𝑒𝑣 250( )  𝑥  3.82
𝑆𝑝𝑒𝑒𝑑( )= 𝑚𝑖𝑛  
𝑚𝑖𝑛 . 201𝑖𝑛
 
𝑟𝑒𝑣 𝑟𝑒𝑣
𝑺𝒑𝒆𝒆𝒅( )   = 𝟒𝟕𝟓𝟏  ( )  
𝑚𝑖𝑛 𝑚𝑖𝑛
 
 

Step  2:  Calculate  IPM  


𝑖𝑛
𝑖𝑛 𝑟𝑒𝑣
𝑭𝒆𝒆𝒅 = 𝑺𝒑𝒆𝒆𝒅 𝑥𝑪𝑳 𝑟𝑒𝑣 𝑥  𝑵𝒖𝒎𝑭𝒍𝒖𝒕𝒆𝒔  
𝑚𝑖𝑛 𝑚𝑖𝑛 𝑓𝑙𝑢𝑡𝑒
 
𝑖𝑛
𝑖𝑛 𝑟𝑒𝑣 𝑟𝑒𝑣
𝑭𝒆𝒆𝒅 = 𝟒𝟕𝟓𝟏 𝑥. 𝟎𝟎𝟐 𝑥  𝟏𝑭𝒍𝒖𝒕𝒆𝒔  
𝑚𝑖𝑛 𝑚𝑖𝑛 𝑓𝑙𝑢𝑡𝑒
 
𝑖𝑛 𝑖𝑛
𝑭𝒆𝒆𝒅 = 𝟗. 𝟓  
𝑚𝑖𝑛 𝑚𝑖𝑛
 
 
Note:  Round  off  drilling  feeds  to  the  first  decimal  point.    
 
   

3-­‐14        Copyright  2014  Autodesk,  Inc.  


Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

Tap  Speed/Feed  Example  

Problem:  Calculate  the  cutting  speed  and  feed  for  a  ¼-­‐24  tap  operation  given  the  following  values:  

 
Parameter   Value  
Tool  Diameter   .25in  
SFM   100ft/min  
TPI   24  
Table  3:  Tap  Speed/Feed  Example  
 
Solution:    
 
Step  1:  Calculate  RPM  
 
𝑓𝑡
𝑟𝑒𝑣 𝑆𝐹𝑀( )  𝑥  3.82
min
𝑆𝑝𝑒𝑒𝑑( )=  
𝑚𝑖𝑛 𝐷𝑖𝑎(𝑖𝑛)
 
𝑓𝑡
𝑟𝑒𝑣 100( )  𝑥  3.82
𝑆𝑝𝑒𝑒𝑑( )= 𝑚𝑖𝑛  
𝑚𝑖𝑛 . 25𝑖𝑛
 
𝑟𝑒𝑣 𝑟𝑒𝑣
𝑺𝒑𝒆𝒆𝒅  ( ) = 𝟏𝟓𝟐𝟖  ( )  
𝑚𝑖𝑛 𝑚𝑖𝑛
 
 
Step  2:  Calculate  IPM  
 
𝑟𝑒𝑣
𝑖𝑛 𝑆𝑝𝑒𝑒𝑑( )
𝐹𝑒𝑒𝑑( )= min  
𝑚𝑖𝑛 𝑇𝑃𝐼
 
𝑟𝑒𝑣
𝑖𝑛 1528( )
𝐹𝑒𝑒𝑑( )= min  
𝑚𝑖𝑛 24
 
𝑖𝑛 𝑖𝑛
𝑭𝒆𝒆𝒅 = 𝟔𝟑. 𝟔𝟔𝟕( )  
𝑚𝑖𝑛 min
 
 
Note:  Round  off  tapping  feeds  to  three  decimal  points  or  the  maximum  number  the  machine  allows.    
 
 
   

Copyright  2014  Autodesk,  Inc.     3-­‐15  


Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

Maximum  Spindle  Speed  Example  


 
In   cases   where   the   calculated   spindle   speed   exceeds   the   machine   capabilities,   program   the   maximum  
spindle  speed  of  the  machine  and  use  this  value  in  the  feed  calculation.  
 
Problem:  Calculate  the  cutting  speed  and  feed  for  a  milling  operation  given  the  following  values:  
 
Parameter   Value  
Tool  Diameter   .125in  
NumFlutes   2  
SFM   300ft/min  
IPR   .003in/rev  
Maximum  RPM   7,500rev/min    
Table  4:  Maximum  Spindle  Speed  Example  
 
Solution:    
 
Step  1:  Calculate  RPM  
𝑓𝑡
𝑟𝑒𝑣 𝑆𝐹𝑀( )  𝑥  3.82
min
𝑆𝑝𝑒𝑒𝑑( )=  
𝑚𝑖𝑛 𝐷𝑖𝑎(𝑖𝑛)
 
𝑓𝑡
𝑟𝑒𝑣 300( )  𝑥  3.82
𝑆𝑝𝑒𝑒𝑑( )= 𝑚𝑖𝑛  
𝑚𝑖𝑛 . 125𝑖𝑛
 
 
!"# !"# !"#
𝑺𝒑𝒆𝒆𝒅  ( ) = 𝟗𝟏𝟔𝟖    =  7500  ( )  
!"# !"# !"#
 
 
Step  2:  Calculate  IPM  
𝑖𝑛
𝑖𝑛 𝑟𝑒𝑣 𝑟𝑒𝑣
𝑭𝒆𝒆𝒅 = 𝑺𝒑𝒆𝒆𝒅 𝑥  𝑪𝑳 𝑥  𝑵𝒖𝒎𝑭𝒍𝒖𝒕𝒆𝒔  
𝑚𝑖𝑛 𝑚𝑖𝑛 𝑓𝑙𝑢𝑡𝑒
 
𝑖𝑛
𝑖𝑛 𝑟𝑒𝑣 𝑟𝑒𝑣
𝑭𝒆𝒆𝒅 = 𝟕𝟓𝟎𝟎 𝑥. 𝟎𝟎𝟑 𝑥  𝟐𝑭𝒍𝒖𝒕𝒆𝒔  
𝑚𝑖𝑛 𝑚𝑖𝑛 𝑓𝑙𝑢𝑡𝑒
 
𝑖𝑛 𝑖𝑛
𝑭𝒆𝒆𝒅 = 𝟒𝟓  
𝑚𝑖𝑛 𝑚𝑖𝑛
 
 
   

3-­‐16        Copyright  2014  Autodesk,  Inc.  


Lesson  3     Fundamentals  of  CNC  Machining  
CNC  Tools  

3.9  –  Cutting  Data    


 
Tables   on   the   following   pages   provide   basic   speed,   feed   and   cutting   data   for   some   of   the   materials  
commonly  used  for  prototypes.  Use  the  tool  manufacturer’s  data  instead  whenever  it  is  available.  
 
Mill  Cutting  Speeds  (SFM)  surface  ft/min  
Material   HSS     Carbide  
Aluminum   600   800  
Brass   175   175  
Delrin   400   800  
Polycarbonate   300   500  
Stainless  Steel  (303)   80   300  
Steel  (4140)   70   350  
Table  5:  Milling  Speed  Data  (SFM)  
 
 
Drill  Cutting  Speeds  (SFM)  surface  ft/min  
Material   Drilling   C-­‐Sink   Reamer   Tap  
Aluminum   300   200   150   100  
Brass   120   90   66   100  
Delrin   150   100   75   100  
Polycarbonate   240   160   120   100  
Stainless  Steel  (303)   50   35   25   35  
Steel  (4140)   90   60   45   35  
Table  6:  Drill  Cycles  Speed  Data  (SFM)  
 
 
  Tip:  Never  use  tools  that  have  been  used  to  machine  metal  to  cut  plastic.  The  sharp  edge  of  the  tool  will  be  compromised  
  and  cutting  performance  and  finish  will  suffer.  A  good  practice  is  to  keep  two  sets  of  tools:  one  for  plastic  and  one  for  
  metal.    
 
 
Tip:  High  speed  steel  cutters  work  best  for  plastics.  Carbide  cutters  work  better  for  aluminum  and  other  metals.    
 
 
 
Cutting  Feeds  (IPR)  in/rev  
Operation   Tool  Diameter  Range  (in)  
  <.125   .125-­‐.25   .25-­‐.5   .5-­‐1.   >1.  
Milling            
Aluminum   .002   .002   .005   .006   .007  
Brass   .001   .002   .002   .004   .005  
Delrin   .002   .002   .005   .006   .007  
Polycarbonate   .001   .003   .006   .008   .009  
Stainless  Steel  (303)   .0005   .001   .002   .003   .004  
Steel  (4140)   .0005   .0005   .001   .002   .003  
           
Drilling   .002   .004   .005   .010   .015  
           
Reaming   .005   .007   .009   .012   .015  
Table  7:  Feed  Data  (IPR)  
 

Copyright  2014  Autodesk,  Inc.     3-­‐17  


Fundamentals  of  CNC  Machining     Lesson  3  
CNC  Tools  

Best  Practice  Machining  Parameters  


 
Best  practice  machining  parameters  for  prototype  and  short-­‐production  milling  are  different  than  for  mass  
production.   Production   machining   is   obsessed   with   minimizing   run   time   and   maximizing   tool   life   because  
even  small  improvements  per  part  can  result  in  significant  cost  savings.    
 
Prototype  and  short  run  production  seeks  to  maximize  reliability.  Obviously,  it  does  not  make  sense  to  risk  
breaking  a  tool  or  scrapping  a  part  trying  to  save  a  few  seconds  if  only  making  a  few  parts.  
 
Tables  8  and  9  on  the  following  pages  list  recommended  machining  parameters  for  prototypes.  The  values  
are  relatively  conservative  and  work  well  for  materials  and  tool  types  listed  on  the  previous  pages.  
 
For  materials  or  tools  not  listed,  consult  cutting  data  from  the  tool  manufacturer.  
 
Recommended  Machining  Parameters  
Operation   Parameter   Value  
All   Clearance  Height   1.0  inches  
All   Feed  Height   .1  inches  
All   Rapid  Height   As   needed   to   clear  
clamps  and  fixtures  
Mill  (Roughing)   Stepover  (XY)   50-­‐80%  of  tool  dia.  
Mill  (Roughing)   Stepdown  (Z)   25-­‐50%  of  tool  dia.  
Drill   Peck  Increment   .05  inches  
Spot  Drill   Dwell   .5  seconds  
Table  8:  Machining  Parameters  
 
Stock  Finish  Allowances  (Inches)  
Operation   Tool  Diameter  Range  (in)  
  <.125   .125-­‐.25   .25-­‐.5   .5-­‐1.   >1.  
Milling  (XY)   .001   .005   .015   .020   .020  
Milling  (Z)   .001   .002   .005   .005   .005  
Reaming   .005   .010   .012   .020   .030  
Table  9:  Stock  Allowances  
 
 

Troubleshooting  Speed/Feed  Problems  

Do   not   make   the   mistake   of   thinking   that   the   only   option   when   encountering   a   machining   problem   is   to  
reduce   feed   rate.   Sometimes   that   is   the   worst   thing   to   do   and   decreasing   speed   and   increasing   feed   may   be  
a  better  option.    

Be  methodical.  When  a  problem  occurs,  stop.  Analyze  what  is  happening,  draw  on  all  available  resources,  
and  then  devise  a  solution  to  correct  the  problem.  The  Machinery’s  Handbook  (Industrial  Press  Inc,  2008,  
New   York,   NY,   ISBN:   978-­‐8311-­‐2800-­‐5)   contains   extensive   information   about   diagnosing   and   correcting  
cutting  tool  problems.  This  book  is  an  essential  reference  for  anyone  using  machine  tools.  
 
 
 
 

3-­‐18        Copyright  2014  Autodesk,  Inc.  


Fundamentals  of  CNC  Machining  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lesson  4  
Coordinate  System  
 
 
 
 
 
Upon  successful  completion  of  this  lesson,  you  will  be  able  to:  
• Identify  the  elements  of  the  Cartesian  coordinate  system.    
• Explain   the   purpose   of   the   Work   Coordinate   System   (WCS)   and   considerations  
for  its  selection.  
• List  the  major  elements  of  a  closed-­‐loop  servo  control  mechanism.      
• Identify  the  location  and  orientation  of  the  machine  coordinate  system.    
• Explain  the  purpose  of  the  Fixture  Offset  XY.      
• Explain  the  purpose  of  the  Tool  Length  Offset  and  how  to  set  it  using  a  scrap  a  1-­‐
2-­‐3  block.    
• Explain  the  purpose  of  the  Fixture  Offset  Z  and  how  it  is  set  it  using  a  1-­‐2-­‐3  block  
and  dial  indicator.    
• Name  the  two  systems  of  units  used  in  programming  CNC  machines    

 
 
   

4-­‐1  
Fundamentals  of  CNC  Machining     Lesson  4  
Coordinate  Systems  

   

4-­‐2        Copyright  2014  Autodesk,  Inc.  


Lesson  4     Fundamentals  of  CNC  Machining  
Coordinate  Systems  

Overview  

CNC   motion   is   based   on   the   Cartesian   coordinate   system.   A   CNC   machine   cannot   be   successfully   operated  
without   an   understanding   of   the   how   coordinate   systems   are   defined   in   CAM   and   CNC   machine   and   how   the  
systems  work  together.      
 
This   lesson   begins   with   a   review   of   the   Cartesian   coordinate   system   and   then   explains   in   detail   how   the  
coordinate   systems   between   CAM   and   the   CNC   machine   are   related   to   each   other.   It   also   describes   how   the  
machine   work   coordinate   system   (WCS)   is   set   on   the   CNC   machine   so   the   machine   knows   where   the   part   is  
located  within  the  work  space.  
 
It   concludes   with   a   discussion   of   tool   length   and   diameter   offsets.   Length   offsets   are   required   to   account   for  
different  tool  lengths  (how  far  a  particular  tool  extends  out  of  the  holder).  Diameter  offsets  are  the  key  to  highly  
precise  machining  where  part  tolerances  can  be  maintained  to  an  accuracy  of  .005  inches  or  less.  
 
 
4.1  –  Cartesian  Coordinate  System  
 
CNC  motion  is  based  on  a  3D  Cartesian  coordinate  system.  
 
Number  Line    
 
The  basis  of  this  system  is  the  number  line  marked  at  equal  intervals.    The  axis  is  labeled  (X,  Y  or  Z).  One  point  on  
the   line   is   designated   as   the   Origin.   Numbers   on   one   side   of   the   line   are   marked   as   positive   and   those   to   the  
other  side  marked  negative.      
 

-­‐X +X
-­‐5 -­‐4 -­‐3 -­‐2 -­‐1 0 1 2 3 4 5

 
Figure  1:  X-­‐Axis  Number  Line.  
 
 
3D  Cartesian  Coordinate  System  
 
The  Cartesian  coordinate  system  consists  of  three  number  lines,  labeled  X,  Y  and  Z,  set  at  90  degree  angles  to  
each   other   as   shown   in   Figure   2   below.   The   origin,   or   Datum,   is   where   the   three   axes   cross   each   other.   The  
labels,   orientations,   and   directions   of   the   Cartesian   coordinate   system   in   Figure   2   are   typical   of   most   Vertical  
Machining  Center  (VMC).  
 

Copyright  2014  Autodesk,  Inc.     4-­‐3  


Fundamentals  of  CNC  Machining     Lesson  4  
Coordinate  Systems  

+Z

+Y

-­‐X

+X
-­‐Y

-­‐Z
 
Figure  2:  3D  Cartesian  Coordinate  System  
 

Quadrants  

Any  two  axes  form  a  plane.  Planes  are  named  by  the  axes  that  define  them.  For  example,  Figure  3  shows  the  XY  
plane,  which  is  the  primary  work  plane  for  machining  on  a  VMC.  A  plane  can  be  divided  into  four  quadrants,  
labeled  I,  II,  III  and  IV  with  axes  designations  as  shown  in  the  illustration  below.  

 
+Y

II I
-­‐X,  +Y +X,  +Y

-­‐X +X
III IV
-­‐X,  -­‐Y +X,  -­‐Y

-­‐Y
 
Figure  3:  Quadrants  
 
   

4-­‐4        Copyright  2014  Autodesk,  Inc.  


Lesson  4     Fundamentals  of  CNC  Machining  
Coordinate  Systems  

Units  

CNC  Programs  can  be  written  in  either  Inch  or  Metric  units.  The  machine  can  be  switched  with  a  single  code  to  
accept  either.      

In  the  United  States,  most  programming  is  using  inch  units  because  most  tooling  is  in  inches  and  machinists  are  
more  familiar  with  the  inch  measurement  system.    Even  if  the  part  is  designed  in  metric,  it  is  usually  converted  
to  inch  units  for  machining  and  metric  tools  are  used  only  when  no  inch  equivalent  is  available  (for  example  
when  creating  metric  tapped  holes).  
 
Table  1  lists  the  units  and  maximum  precision  for  inch  and  metric  data  used  by  CNC  machines.  
 
Units  and  Precision  
Data  Type   Inch  Units   Metric  Units  
Coordinate   inches   .0001   mm   .001  
Speed   rev/min   1.   rev/min   1.  
Feed   in/min   1.   mm/min   1.  
Tap  Feed   in/min   .001   mm/min   .01  
Table  1:  Units  and  Precision  
 
 
4.2  Vertical  Milling  Center  (VMC)  Machine  Motion  
 
CNC  machines  use  a  3D  Cartesian  coordinate  system.   Figure  4  shows  a  typical  VMC  with  the  sheet  metal  covers  
removed  to  expose  the  movable  parts.    

Material   to   be   machined   is   fastened   to   the   machine   table.   This   table   moves   in   the   XY-­‐Plane.   As   the   operator  
faces  the  machine,  the  X-­‐Axis  moves  the  table  left-­‐right.  The  Y-­‐Axis  moves  the  table  forward-­‐backward.    

The  machine  column  grips  and  spins  the  tool.  The  column  controls  the  Z-­‐axis  and  moves  up-­‐down.  

 
Column
 

  (Z)

  (Y) (X)

  Table

 
 
Figure  4:  VMC  Machine  Motion  
   
Copyright  2014  Autodesk,  Inc.     4-­‐5  
Fundamentals  of  CNC  Machining     Lesson  4  
Coordinate  Systems  

CNC  Motion  Control  

Most   CNC   machines   can   position   each   axis   within   .0002   inches   or   less   over   the   entire   machining   envelope.     This  
accuracy  is  achieved  in  part  by  the  use  of  a  closed-­‐loop  servo  mechanism,  illustrated  in  Figure  5.          

The  machine  control  sends  a  motion  signal,  via  a  controller  board,  to  a  servomotor  attached  to  each  machine  
axis.  This  causes  the  servomotor  to  rotate  a  ball  screw  attached  to  the  table  or  column,  causing  it  to  move.  The  
actual  position  of  the  axis  is  continuously  monitored  and  compared  to  the  commanded  position  with  feedback  
from  a  servo  transmitter  attached  to  the  ball  screw.        
 
Ball   screws   have   almost   no   backlash,   so   when   the   servo   reverses   direction   there   is   almost   no   lag   between   a  
commanded   reversing   motion   and   corresponding   change   in   table   direction.   CNC   controls   employ   electronic  
compensation  to  adjust  for  any  minor  backlash  that  may  exist.  
 

1.  Command  to  
Servomotor
3.  Table  Motion

2.  Rotate  Ball  Screw

4.  Position  Feedback
 
Figure  5:  Closed  Loop  Servo  Mechanism  
 
 
 
CNC  Machine  Coordinates  
 
The  CNC  Machine  Coordinate  System  is  illustrated  in  Figure  6.    The  control  point  for  the  Machine  Coordinate  
System  is  defined  as  the  center-­‐face  of  the  machine  spindle.    
 
The  Origin  point  for  the  machine  coordinate  system  is  called  Machine  Home.  This  is  the  postion  of  the  center-­‐
face  of  the  machine  spindle  when  the  Z-­‐axis  is  fully  retracted  and  the  table  is  moved  to  its  limits  near  the  back-­‐
left  corner.    
 
 

4-­‐6        Copyright  2014  Autodesk,  Inc.  


Lesson  4     Fundamentals  of  CNC  Machining  
Coordinate  Systems  

Column
(Z-­‐Axis) Z+

Y+

X+
X-­‐
Z-­‐
Y-­‐

Table
(XY  Axes)

 
Figure  6:  VMC  Machine  Coordinate  System  (At  Home  Position)  
 
 

  IMPORTANT  
 
  As  shown  in  Figure  6,  when  working  with  a  CNC,  always  think,  work,  and  write  CNC  programs  in  terms  of  tool  motion,  
not  table  motion.      
   
For   example,   increasing   +X   coordinate   values   move   the   tool   right   in   relation   to   the   table   (though   the   table   actually  
  moves  left).      
 
  Likewise,  increasing  +Y  coordinate  values  move  the  tool  towards  the  back  of  the  machine  (the  table  moves  towards  the  
operator).    
   
Increasing  +Z  commands  move  the  tool  up  (away  from  the  table).    
   
 

About  Machine  Home  Position  

When  a  CNC  machine  is  first  turned  on,  it  does  not  know  where  the  axes  are  positioned  in  the  work  space.  Home  
position   is   found   by   the   Power   On   Restart   sequence   initiated   by   the   operator   by   pushing   a   button   on   the  
machine  control  after  turning  on  the  control  power.  
 
The  Power  On  Restart  sequence  simply  drives  all  three  axes  slowly  towards  their  extreme  limits  (-­‐X,  +Y,  +Z).  As  
each   axis   reaches   its   mechanical   limit,   a   microswitch   is   activated.   This   signals   to   the   control   that   the   home  
position  for  that  axis  is  reached.  Once  all  three  axes  have  stopped  moving,  the  machine  is  said  to  be  “homed”.  
Machine  coordinates  are  thereafter  in  relation  to  this  home  position.  
 
   

Copyright  2014  Autodesk,  Inc.     4-­‐7  


Fundamentals  of  CNC  Machining     Lesson  4  
Coordinate  Systems  

4.3  Work  Coordinate  System  


 
Obviously   it   would   be   difficult   to   write   a   CNC   program   in   relation   to   Machine   Coordinates.   The  home   position   is  
far   away   from   the   table,   so   values   in   the   CNC   program   would   be   large   and   have   no   easily   recognized   relation   to  
the   part   model.   To   make   programming   and   setting   up   the   CNC   easier,   a   Work   Coordinate   System   (WCS)   is  
established  for  each  CNC  program.  
 
The   WCS   is   a   point   selected   by   the   CNC   programmer   on   the   part,   stock   or   fixture.   While   the   WCS   can   be   the  
same   as   the   part   origin   in   CAD,   it   does   not   have   to   be.   While   it   can   be   located   anywhere   in   the   machine  
envelope,  its  selection  requires  careful  consideration.  
• The  WCS  location  must  be  able  to  be  found  by  mechanical  means  such  as  an  edge  finder,  coaxial  indicator  
or  part  probe.  
• It  must  be  located  with  high  precision:  typically  plus  or  minus  .001  inches  or  less.      
• It  must  be  repeatable:  parts  must  be  placed  in  exactly  the  same  position  every  time.  
• It   should   take   into   account   how   the   part   will   be   rotated   and   moved   as   different   sides   of   the   part   are  
machined.  
 
Top  View Left  View For   example,   Figure   7   shows   a   part  
gripped   in   a   vise.   The   outside  
dimensions   of   the   part   have   already  
been   milled   to   size   on   a   manual  
machine  before  being  set  on  the  CNC  
machine.    
Fixed    
Vise The   CNC   is   used   to   make   the   holes,  
Jaw pockets,   and   slot   in   this   part.   The  
Z+ WCS   is   located   in   the   upper-­‐left  
corner   of   the   block.   This   corner   is  
X+ easily  found  using  an  Edge  Finder  or  
Y+
Probe  (Lesson  5).    
 

 
Figure  7:  Work  Coordinate  System  (WCS)  
 
WCS  Example  
 
The  following  example  shows  why  and  how  the  WCS  is  set  up  a  typical  part  that  is  machined  on  multiple  sides  by  
gripping  in  a  vise.  This  is  one  of  the  most  common  ways  to  hold  a  part.  Pay  particular  attention  how  the  part  is  
rotated  between  jobs.  
 
Job    
 
The  term,  Job,  means  a  unique  machining  setup  on  the  machine.  For  example,  a  part  that  requires  the  part  to  be  
moved  or  rotated  three  times  on  the  CNC  is  said  to  be  composed  of  three  jobs;  one  for  each  setup.  
 
4-­‐8        Copyright  2014  Autodesk,  Inc.  
Lesson  4     Fundamentals  of  CNC  Machining  
Coordinate  Systems  

WCS  Example  –  Job  1  


 
Figure   12   shows   a   part   gripped   in   a   six   inch   wide   precision   CNC   vise.     The   outside   shape   of   this   part   was  
machined  to  size  on  a  manual  mill  before  being  set  on  the  CNC  machine.  The  CNC  is  used  to  create  the  holes,  
pockets,  and  slot  on  this  block.  
 

Fixed  
Vise Movable
Jaw Vise
Z+
Jaw
X+
Y+

Vise
Stop

 
Figure  12:  Tool  Length  Offset  Example  (Job  1)  
 
Before  clamping  the  part,  the  vise  is  aligned  and  bolted  to  the  machine  table.  This  assures  the  part  WCS  X-­‐axis  is  
aligned  with  the  machine  X-­‐axis.    
 
Parallels  (precision  ground  rails)  are  used  to  support  the  part.  These  ensure  the  XY-­‐Plane  of  the  part  is  parallel  to  
the  machine  table  XY-­‐Plane.  
 
The  left  face  of  the  part  rests  against  a  Vise  Stop.  The  Vise  Stop  establishes  the  X-­‐axis  origin.  As  new  parts  are  
loaded   into   the   vise,   the   operator   slides   them   against   the   vise   stop.   This   ensures   all   parts   are   loaded   into   the  
exact  same  position  each  time.  
Because   the   edges   of   the   block   are   already   milled,   the   WCS   XY   location   is   easily   found   using   an   Edge   Finder  
(Lesson  6,  Set  Fixture  Offset  XY)  or  part  probe.    
 
The  vise  has  two  jaws;  a  fixed  back  jaw  a  front  jaw  that  can  close  and  open  to  grip  or  release  the  part.  Because  
the   location   of   the   moving   jaw   varies   depending   how   much   force   the   operator   uses,   it   is   best   to   locate   the   WCS  
in  reference  to  the  fixed  jaw.  The  fixed  jaw  position  is  not  significantly  affected  by  clamping  force.  
 
Notice  that,  because  the  fixed  vise  jaw  does  not  move  regardless  of  how  tightly  the  vise  is  closed,  the  WCS  Y-­‐
origin   does   not   change.   In   other   words,   the   Y-­‐origin   is   repeatable.   The   concept   of   repeatability   is   essential   to  
precision  machining.  If  the  datum  shifts  for  any  reason,  it  is  impossible  to  make  any  two  parts  exactly  alike.      
 
  When  using  a  vise,  locate  the  WCS  so  the  part  lies  in  the  forth  quadrant:  resting  the  Y-­‐datum  (XZ  Plane)  against  the  fixed  
  vise  jaw.    

 
 
   

Copyright  2014  Autodesk,  Inc.     4-­‐9  


Fundamentals  of  CNC  Machining     Lesson  4  
Coordinate  Systems  

WCS  Example  –  Job  2  


 
After  the  pocket,  holes,  and  through  round  hole  are  machined  on  the  first  side  of  the  part,  the  part  is  flipped  
over  in  the  vise  to  create  the  slot.  Whether  a  new  WCS  must  be  defined,  and  how  the  part  is  flipped,  depends  on  
the  part  geometry  and  type  of  setup.  
 
As   shown   in   Figure   13,   because   the   outside   dimensions   of   the   part   were   established   prior   to   machining,   and  
because  the  part  is  flipped  180  degrees,  the  location  of  the  WCS  does  not  change.  Therefore,  there  is  no  need  to  
define  a  new  WCS  to  machine  the  slot.  Fixture  Offset  G54  can  be  used  to  machine  both  sides.  
 
However,  how  the  part  is  turned  over  does  matter  because  of  how  a  vise  works.    As  mentioned  earlier,  a  vise  
exerts   a   tremendous   amount   of   clamping   force   (up   to   6,000   lbs   or   more)   and   so   the   actual   position   of   the  
moving  vise  jaw  depends  on  how  tightly  the  vise  is  closed.    
 
This   variability   is   so   large   that   it   is   common   practice   to   mark   the   closed   position   of   the   handle   with   a   black  
marker  or  use  a  torque  wrench  to  ensure  the  clamping  pressure  is  consistent  between  parts.  Vise  force  can  even  
significantly  deform  thin  parts  if  excessive  force  is  applied.  
 

Flip  Part
About  Y-­‐Axis
Z+

X+
Y+

 
Figure  13:  WCS  (Job  2)  
 
By  flipping  the  part  about  the  Y-­‐axis,  the  same  edge  of  the  part  (XZ  Plane)  rests  against  the  fixed  jaw.  Since  this  
position  does  change  based  on  clamping  force,  and  because  the  vise  stop  is  also  unaffected  by  clamping  force,  
the  WCS  for  Job  2  is  also  repeatable.  
 
 
 
 
 
 
 
   

4-­‐10        Copyright  2014  Autodesk,  Inc.  


Lesson  4     Fundamentals  of  CNC  Machining  
Coordinate  Systems  

WCS  Example  –  Job  3  


 
Drilling   the   hole   in   the   side   of   the   part   means   turning   it   again   to   stand   on   end,   as   shown   in   Figure   14.   Again,  
rotate  the  part  about  the  Y-­‐axis  so  that  the  Y-­‐origin  of  the  WCS  (XZ  reference)  plane  does  not  shift  or  change  
based  on  clamping  force.    
 
Notice   that   the   WCS   used   in   Job   1   and   2   cannot   be   used   because   the   part   standing   on   end   is   much   taller.   A   new  
Fixture  Offset  is  defined  (G55)  to  shift  the  datum  to  the  point  shown.  
 
It   is   also   worth   noticing   that,   in   order   to   increase   gripping   surface,   the   parallels   have   been   removed.   The   vise  
stop  has  also  been  lowered  so  the  stylus  contacts  the  face  of  the  part,  not  the  bottom  of  the  pocket.    
 
The   best   practice   is   to   maintain   as   many   reference   surfaces   as   possible   whenever   the   part   is   rotated.   By   turning  
the  part  as  shown  in  Figure  14,  two  of  the  reference  planes  are  used.  This  helps  ensure  the  hole  will  be  located  
precisely  on  the  part  side.    
 
As  a  practical  matter,  the  machinist  could  set  up  a  second  vise  on  the  machine  for  this  operation.  If  making  many  
parts  without  a  second  vise,  they  might  choose  to  machine  the  top  and  bottom  of  all  parts,  then  reconfigure  the  
vise  as  shown  and  make  the  hole  in  all  parts.  
 

Z+
Flip  Part
X+ About  Y-­‐Axis
Y+

 
Figure  14:  WCS  (Job  3)  
 

 
CNC   machining   typically   involves   tolerances   of   less   than   .005   inches,   or   about   twice   the   thickness   of   a   human   hair.   Small  
  chips  or  even  excess  coolant  under  a  part  or  vise  can  cause  problems.  Maintaining  close  machining  tolerances  requires  
being  fastidious  and  consistency  of  work.  
   
 
   
 
   

Copyright  2014  Autodesk,  Inc.     4-­‐11  


Fundamentals  of  CNC  Machining     Lesson  4  
Coordinate  Systems  

4.4  Machine  and  Tool  Offsets  


 
Machine  Offsets  
 
Because   it   is   difficult   to   place   a   vise   in   the   exact   same   position   on   the   machine   each   time,   the   distance   from  
Home  to  the  WCS  is  usually  not  known  until  the  vise  is  set  and  aligned  with  the  machine.  Machine  set  up  is  best  
done  after  the  program  is  completely  written,  because  it  is  expensive  to  keep  a  CNC  machine  idle  waiting  for  the  
CNC   programming   to   be   done.   Besides,   the   programmer   may   change   their   mind   during   the   CAM   process,  
rendering  any  pre-­‐planned  setup  obsolete.  
 
To   complicate   matters   further,   different   tools   extend   out   from   the   machine   spindle   different   lengths,   also   a  
value  difficult  to  determine  in  advance.  For  example,  a  long  end  mill  extends  further  from  the  spindle  face  than  a  
stub   length   drill.   If   the   tool   wears   or   breaks   and   must   be   replaced,   it   is   almost   impossible   to   set   it   the   exact  
length  out  of  the  tool  holder  each  time.  
 
Therefore,   there   must   be   some   way   to   relate   the   Machine   Coordinate   system   to   the   part   WCS   and   take   into  
account   varying   tool   lengths.   This   is   done   using   machine   Tool   and   Fixture   Offsets.   There   are   many   offsets  
available   on   CNC   machines.   Understanding   how   they   work   and   to   correctly   use   them   together   is   essential   for  
successful  CNC  machining.  
 
Fixture  Offset  XY  
 
Fixture  offsets  provide  a  way  for  the  CNC  control  to  know  the  distance  from  the  machine  home  position  and  the  
part  WCS.  In  conjunction  with  Tool  Offsets,  Fixture  Offsets  allow  programs  to  be  written  in  relation  to  the  WCS  
instead   of   the   Machine   Coordinates.     They   make   setups   easier   because   the   exact   location   of   the   part   in   the  
machine  envelop  does  not  need  to  be  known  before  the  CNC  program  is  written.      
 
As   long   as   the   part   is   positioned   where  
the   tool   can   reach   all   machining  
operations  it  can  be  located  anywhere  in  
the  machine  envelope.  Once  the  Fixture  
X+ Offset   values   are   found,   entered   into  
Machine the   control,   and   activated   by   the   CNC  
Home program,   the   CNC   control   works   behind  
Y-­‐
the   scene   to   translate   program  
coordinates  to  WCS  coordinates.  
Part  
Datum Notice   in   Figure   8   how   Fixture   Offsets  
(+X,   -­‐Y)   are   used   to   shift   the   centerline  
of  the  machine  spindle  directly  over  the  
WCS.    

 
Figure  8:  Fixture  Offset  Shifts  Machine  to  WCS  
 
 

4-­‐12        Copyright  2014  Autodesk,  Inc.  


Lesson  4     Fundamentals  of  CNC  Machining  
Coordinate  Systems  

Fixture  Offset  Z    
 
The  Fixture  Offset  Z  value  is  combined  with  the  Tool  Length  offset  to  indicate  to  the  machine  how  to  shift  the  Z-­‐
datum  from  part  home  to  the  part  Z-­‐zero,  taking  into  account  the  length  of  the  tool.  Fixture  Offset  Z  may  or  may  
not  be  used,  depending  on  how  the  machine  is  set  up  and  operated.    
 
Lesson  6  (CNC  Operation)  and  Appendix  B  (Alternate  Tool  Setting  Methods)  describe  the  various  ways  that  these  
two  values  can  be  used.  Follow  the  procedure  in  use  at  your  facility  or  refer  to  your  machine  tool  documentation  
to  determine  which  method  to  use.  
 
 
Tool  Length  Offset  (TLO)  
 
Every  tool  loaded  into  the  machine  is  a  different  length.  In  fact,  if  a  tool  is  replaced  due  to  wear  or  breaking,  the  
length   of   its   replacement   will   likely   change   because   it   is   almost   impossible   to   set   a   new   tool   in   the   holder   in  
exactly   the   same   place   as   the   old   one.   The   CNC   machine   needs   some   way   of   knowing   how   far   each   tool   extends  
from  the  spindle  to  the  tip.    This  is  accomplished  using  a  Tool  Length  Offset  (TLO).    
 
In  its  simplest  use,  the  TLO  is  found  by  jogging  the  spindle  with  tool  from  the  machine  home  Z-­‐position  to  the  
part  Z-­‐zero  position,  as  shown  on  the  far  left  in  Figure  9  below.  The  tool  is  jogged  to  the  part  datum  Z  and  the  
distance  travelled  is  measured.  This  value  is  entered  in  the  TLO  register  for  that  tool.  Problems  with  this  method  
include  the  need  to  face  mill  the  part  to  the  correct  depth  before  setting  tools.  Also,  if  the  Z-­‐datum  is  cut  away  
(typical   of   3D   surfaced   parts)   it   is   impossible   to   set   the   datum   should   a   tool   break   or   wear   and   need   to   be  
replaced.  All  tools  must  be  reset  whenever  a  new  job  is  set  up.  When  this  method  is  used,  the  Fixture  Offset  Z  is  
not  used,  but  set  to  zero.  
 
The  method  shown  in  the  center  is  much  better  and  used  in  this  book.  All  tools  are  set  to  a  known  Z-­‐position,  
such   the   top   of   a   precision   1-­‐2-­‐3   block   resting   on   the   machine   table.   This   makes   it   very   easy   to   reset   tools   if  
worn  or  broken.    
 
A  tool  probe  is  very  similar  to  the  1-­‐2-­‐3  block  method,  except  the  machine  uses  a  special  cycle  to  automatically  
find   the   TLO.   It   does   this   slowly   lowering   the   tool   until   the   tip   touches   the   probe   and   then   updates   the   TLO  
register.  This  method  is  fast,  safe  and  accurate  but  requires  the  machine  be  equipped  with  a  tool  probe.  Also,  
tool  probes  are  expensive  so  care  must  be  taken  to  never  crash  the  tool  into  the  probe.    
 
Both   the   2nd   and   3rd   methods   also   require   the   distance   from   the   tool   setting   position   (the   top   of   the   1-­‐2-­‐3   block  
or   tool   probe)   to   the   part   datum   to   be   found   and   entered   in   the   Fixture   Offset   Z.   The   machine   adds   the   two  
values  together  to  determine  the  total  tool  length  offset.  A  method  for  doing  this  is  included  in  Lesson  6.  
 
 

Copyright  2014  Autodesk,  Inc.     4-­‐13  


Fundamentals  of  CNC  Machining     Lesson  4  
Coordinate  Systems  

 
Figure  9:  Ways  to  Set  TLO  
 
 

4-­‐14        Copyright  2014  Autodesk,  Inc.  


Fundamentals  of  CNC  Machining  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lesson  5  
CNC  Programming  Language  
 
 
 
 
 
 
Upon  successful  completion  of  this  lesson,  you  will  be  able  to:  
• Define  CNC  Program.    
• List  the  sequence  of  operations  in  a  typical  CNC  program.  
• List  the  most  commonly  used  G-­‐codes,  their  meaning,  and  syntax.    
• List  the  most  commonly  used  M-­‐codes,  their  meaning,  and  syntax.  
• List   the   most   commonly   used   special   characters   in   a   CNC   Program   and   their  
purpose.  
• Describe  the  organization,  motion,  and  actions  in  a  simple  CNC  program.  

 
 
   

5-­‐1  
 
Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

   

5-­‐2        Copyright  2014  Autodesk,  Inc.  


Lesson  5     Fundamentals  of  CNC  Machining  
CNC  Programming  Language  

Overview  

CNC  machines  are  very  accurate  and  powerful  industrial  robots  developed  jointly  by  Mr.  John  Parsons,  IBM  
and  Massachusetts  Institute  of  Technology  Servomechanism  Laboratory  in  the  1950’s.      

Most  CNC  machine  tools  use  a  language  set  by  the  Electronics  Industry  Association  (EIA)  in  the  1960’s.    The  
official  name  of  this  language  is  RS-­‐274D,  but  everyone  refers  it  “G-­‐code”  or  “G&M  Code”  because  many  of  
the  words  of  this  language  begin  with  the  letters  G  or  M.      

While   many   of   the   words   used   by   different   CNC   machines   are   the   same,   there   are   differences   between  
makes  and  models.  This  is  due  in  part  to  machines  having  different  configurations  and  options.    For  example,  
a   machine   with   a   chip   conveyor   will   have   words   to   turn   the   conveyor   on   and   off,   while   a   machine   without   a  
conveyor  does  not.    So,  while  RS-­‐274D  is  a  standard,  it  is  not  rigid  or  enforced.  Always  refer  to  the  machine  
documentation  for  the  exact  words  and  syntax  for  your  CNC  machine.  

Most   machines   have   a   vocabulary   of   at   least   a   hundred   words,   but   only   about   thirty   that   are   used   often.    
These   thirty   or   so   words   are   best   memorized   because   they   appear   in   almost   every   CNC   program   and  
knowing  them  helps  you  work  more  efficiently.  

The   G-­‐code   language   was   developed   when   machine   controls   had   very   little   memory.     It   was   therefore  
designed  to  be  as  compact  as  possible.    While  at  first  this  language  may  seem  arcane,  the  modern  machine  
tool   language   is   the   safest   and   most   efficient   way   yet   devised   to   control   machine   tool   motion.     G&M   codes,  
along  with  coordinates  and  other  parameters,  comprise  what  is  called  a  CNC  program.    

5.1  CNC  Language  and  Structure  

CNC  programs  list  instructions  to  be  performed  in  the  order  they  are  written.    They  read  like  a  book,  left  to  
right  and  top-­‐down.    Each  sentence  in  a  CNC  program  is  written  on  a  separate  line,  called  a  Block.    Blocks  are  
arranged   in   a   specific   sequence   that   promotes   safety,   predictability   and   readability,   so   it   is   important   to  
adhere  to  a  standard  program  structure.  

Typically,  blocks  are  arranged  in  the  following  order:  


1) Program  Start  
2) Load  Tool  
3) Spindle  On  
4) Coolant  On  
5) Rapid  to  position  above  part  
6) Machining  operation    
7) Coolant  Off  
8) Spindle  Off  
9) Move  to  safe  position  
10) End  program  

The   steps   listed   above   represent   the   simplest   type   of   CNC   program,   where   only   one   tool   is   used   and   one  
operation  performed.    Programs  that  use  multiple  tools  repeat  steps  two  through  nine  for  each.  

Table   1   and   Table   2   on   the   next   pages   show   the   most   common   G   and   M   codes   that   should   be   memorized   if  
possible.    

Copyright  2014  Autodesk,  Inc.     5-­‐3  


Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

Like  any  language,  the  G-­‐code  language  has  rules.  For  example,  some  codes  are  modal,  meaning  they  do  not  
have   to   be   repeated   if   they   do   not   change   between   blocks.   Some   codes   have   different   meanings   depending  
on  how  and  where  there  are  used.    

While   these   rules   are   covered   in   this   chapter,   do   not   concern   yourself   with   learning   every   nuance   of   the  
language.  It  is  the  job  of  the  job  of  the  CAD/CAM  software  Post  Processor  to  properly  format  and  write  the  
CNC  program.  

Program  Format  

The  program  in  Figure  1  below  machines  a  square  contour  and  drills  a  hole.    

Block   Description   Purpose  


%   Start  of  program.   Start  
O0001  (PROJECT1)   Program  number  (Program  Name).   Program  
(T1    0.25  END  MILL)   Tool  description  for  operator.    
N1  G17  G20  G40  G49  G80  G90   Safety  block  to  ensure  machine  is  in  safe  mode.    
N2  T1  M6   Load  Tool  #1.   Change  
N3  S9200  M3   Spindle  Speed  9200  RPM,  On  CW.   Tool  
N4  G54   Use  Fixture  Offset  #1.   Move  
N5  M8   Coolant  On.   To  
N6  G00  X-­‐0.025  Y-­‐0.275   Rapid  above  part.   Position  
N7  G43  Z1.  H1   Rapid  to  safe  plane,  use  Tool  Length  Offset  #1.    
N8  Z0.1   Rapid  to  feed  plane.    
N9  G01  Z-­‐0.1  F18.   Line  move  to  cutting  depth  at  18  IPM.    
N10  G41  Y0.1  D1  F36.   CDC  Left,  Lead  in  line,  Dia.  Offset  #1,  36  IPM.   Machine  
N11  Y2.025   Line  move.   Contour  
N12  X2.025   Line  move.    
N13  Y-­‐0.025   Line  move.    
N14  X-­‐0.025   Line  move.    
N15  G40  X-­‐0.4   Turn  CDC  off  with  lead-­‐out  move.    
N16  G00  Z1.   Rapid  to  safe  plane.    
N17  M5   Spindle  Off.   Change  
N18  M9   Coolant  Off.   Tool  
(T2    0.25  DRILL)   Tool  description  for  operator.    
N19  T2  M6   Load  Tool  #2.    
N20  S3820  M3   Spindle  Speed  3820  RPM,  On  CW.    
N21  M8   Coolant  On.   Move  
N22  X1.  Y1.   Rapid  above  hole.   To  
N23  G43  Z1.  H2   Rapid  to  safe  plane,  use  Tool  Length  Offset  2.   Position  
N24  Z0.25   Rapid  to  feed  plane.    
N25  G98  G81  Z-­‐0.325  R0.1  F12.   Drill  hole  (canned)  cycle,  Depth  Z-­‐.325,  F12.   Drill  
N26  G80   Cancel  drill  cycle.   Hole  
N27  Z1.   Rapid  to  safe  plane.    
N28  M5   Spindle  Off.   End  
N29  M9   Coolant  Off.   Program  
N30  G91  G28  Z0   Return  to  machine  Home  position  in  Z.    
N31  G91  G28  X0  Y0   Return  to  machine  Home  position  in  XY.  
N32  G90   Reset  to  absolute  positioning  mode  (for  safety).  
N33  M30   Reset  program  to  beginning.    
%   End  Program.    
Figure  1:  Simple  CNC  Program    
 

5.2  -­‐  CNC  Editor  

CNC   programs   are   simple   ASCII   character   text   files   that   can   be   viewed   or   edited   in   any   text   editor.   Refer   to   the  
HSMWorks  Editor  Help  files  for  specific  instructions  on  how  to  use  the  Editor.  

 
5-­‐4        Copyright  2014  Autodesk,  Inc.  
Lesson  5     Fundamentals  of  CNC  Machining  
CNC  Programming  Language  

5.3  –  Alphabetic  &  Special  Character  Address  Codes  

Every   letter   of   the   alphabet   is   used   as   a   machine   address   code.     In   fact,   some   are   used   more   than   once,   and  
their  meaning  changes  based  on  which  G-­‐code  appears  in  the  same  block.  

Codes  are  either  modal,  which  means  they  remain  in  effect  until  cancelled  or  changed,    or  non-­‐modal,  which  
means  they  are  effective  only  in  the  current  block.  

The   table   below   lists   the   most   common   address   codes.     A   complete   list   is   included   in   Appendix   B,   G-­‐M   Code  
Reference.  

Code   Meaning  
A   Rotation  about  X-­‐axis.  
B   Rotation  about  Y-­‐axis.  
C   Rotation  about  Z-­‐axis.  
D   Cutter  diameter  compensation  (CDC)  offset  address.  
F   Feed  rate.  
G   G-­‐Code  (preparatory  code).  
H   Tool  length  offset  (TLO).  
I   Arc  center  X-­‐vector,  also  used  in  drill  cycles.  
J   Arc  center  Y-­‐vector,  also  used  in  drill  cycles.  
K   Arc  center  Z-­‐vector,  also  used  in  drill  cycles.  
M   M-­‐Code  (miscellaneous  code).  
N   Block  Number.  
O   Program  Number.  
P   Dwell  time.  
Q   Used  in  drill  cycles.  
R   Arc  radius,  also  used  in  drill  cycles.  
S   Spindle  speed  in  RPM.  
T   Tool  number.  
X   X-­‐coordinate.  
Y   Y-­‐coordinate.  
Z   Z-­‐coordinate.  
Table  3:  Common  Alphanumeric  Address  Codes  
 

Alphabetic  Address  Code  Definitions  

Here   are   the   most   common   alphabetic   address   code   definitions,   examples   and   restrictions   of   use.   Most  
modern  machines  use  these  codes.                                                                                                                                                                                                                                                                                                                  

A,B,C     4th/5th  Axis  Rotary  Motion  


Rotation  about  the  X,  Y  or  Z-­‐axis  respectively.    The  angle  is  in  degrees  and  up  to  three  decimal  places  precision.      
G1  A30.513  B90.  
 
D     Tool  Diameter  Register  
Used  to  compensate  for  tool  diameter  wear  and  deflection.    D  is  accompanied  by  an  integer  that  is  the  same  as  the  tool  
number  (T1  uses  D1,  etc).    No  decimal  point  is  used.  It  is  always  used  in  conjunction  with  G41  or  G42  and  a  XY  move  
(never  an  arc).    When  called,  the  control  reads  the  register  and  offsets  the  tool  path  left  (G41)  or  right  (G42)  by  the  
value  in  the  register.      
G1  G41  X1.  D1  
 
   

Copyright  2014  Autodesk,  Inc.     5-­‐5  


Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

F     Feed  Rate  
Sets   the   feed   rate   when   machining   lines,   arcs   or   drill   cycles.     Feed   rate   can   be   in   Inches   per   Minute   (G94   mode)   or  
Inverse   Time   (G93   mode).   Feed   rates   can   be   up   to   three   decimal   places   accuracy   (for   tap   cycles)   and   require   a   decimal  
point.  
G1  X1.  Y0.  F18.    
 
G     Preparatory  Code  
Always  accompanied  by  an  integer  that  determines  its  meaning.    Most  G-­‐codes  are  modal.  Expanded  definitions  of  G-­‐
codes  appear  in  the  next  section  of  this  chapter.  
G2  X1.  Y1.  I.25  J0.    
 
H     Tool  Length  Compensation  Register  
This   code   calls   a   tool   length   offset   (TLO)   register   on   the   control.   The   control   combines   the   TLO   and   Fixture   Offset   Z  
values  to  know  where  the  tool  is  in  relation  to  the  part  datum.  It  is  always  accompanied  by  an  integer  (H1,  H2,  etc),  
G43,  and  Z  coordinate.    
G43  H1  Z1.  
 
I     Arc  Center  or  Drill  Cycle  Data  
For  arc  moves  (G2/G3),  this  is  the  incremental  X-­‐distance  from  the  arc  start  point  to  the  arc  center.  Certain  drill  cycles  
also  use  I  as  an  optional  parameter.  
G2  X.1  Y2.025  I0.  J0.125      
 
J     Arc  Center  or  Drill  Cycle  Data  
For  arc  moves  (G2/G3),  this  is  the  incremental  Y-­‐distance  from  the  arc  start  point  to  the  arc  center.  Certain  drill  cycles  
also  use  J  as  an  optional  parameter.  
G2  X.1  Y2.025  I0.  J0.125      
 
K     Arc  Center  or  Drill  Cycle  Data  
For   an   arc   move   (G2/G3)   this   is   the   incremental   Z-­‐distance   from   the   arc   start   point   to   the   arc   center.   In   the   G17   plane,  
this  is  the  incremental  Z-­‐distance  for  helical  moves.  Certain  drill  cycles  also  use  J  as  an  optional  parameter.  
G18  G3  X.1  Z2.025  I0.  K0.125  
 
M     Preparatory  Code  
Always   accompanied   by   an   integer   that   determines   its   meaning.     Only   one   M-­‐code   is   allowed   in   each   block   of   code.  
Expanded  definitions  of  M-­‐codes  appear  later  in  this  chapter.  
M8    
 
N     Block  Number  
Block  numbers  can  make  the  CNC  program  easier  to  read.  They  are  seldom  required  for  CAD/CAM  generated  programs  
with   no   subprograms.   Because   they   take   up   control   memory   most   3D   programs   do   not   use   block   numbers.   Block  
numbers  are  integers  up  to  five  characters  long  with  no  decimal  point.  They  cannot  appear  before  the  tape  start/end  
character  (%)  and  usually  do  not  appear  before  a  comment  only  block.    
N100  T2  M6  
 
 O     Program  Number      
Programs  are  stored  on  the  control  by  their  program  number.  This  is  an  integer  that  is  preceded  by  the  letter  O  and  has  
no  decimal  places.      
O0002  (PROJECT  1)  
 
P     Delay  
Dwell  (delay)  in  seconds.    Accompanied  by  G4  unless  used  within  certain  drill  cycles.  
G4  P.1    
 

5-­‐6        Copyright  2014  Autodesk,  Inc.  


Lesson  5     Fundamentals  of  CNC  Machining  
CNC  Programming  Language  

Q     Drill  Cycle  Optional  Data  


The  incremental  feed  distance  per  pass  in  a  peck  drill  cycle.  
G83  X1.  Y1.  Z-­‐.5  F12.  R.1  Q.1  P5.      
 
R     Arc  Radius  or  Drill  Cycle  Optional  Data  
Arcs  can  be  defined  using  the  arc  radius  R  or  I,J,K  vectors.  IJK’s  are  more  reliable  than  R’s  so  it  is  recommended  to  use  
them  instead.    R  is  also  used  by  drill  cycles  as  the  return  plane  Z  value.  
G83  Z-­‐.5  F12.  R.1  Q.1  P5.  
 
S     Spindle  Speed  
Spindle  speed  in  revolutions  per  minute  (RPM).  It  is  an  integer  value  with  no  decimal,  and  always  used  in  conjunction  
with  M3  (Spindle  on  CW)  or  M4  (Spindle  on  CCW).    
S3820  M3  
 
T     Tool  number  
Selects  tool.    It  is  an  integer  value  always  accompanied  by  M6  (tool  change  code).  
T1  M6  
 
X     X-­‐Coordinate  
Coordinate   data   for   the   X-­‐axis.     Up   to   four   places   after   the   decimal   are   allowed   and   trailing   zeros   are   not   used.  
Coordinates  are  modal,  so  there  is  no  need  to  repeat  them  in  subsequent  blocks  if  they  do  not  change.  
G1  X1.1252  
 
Y     Y-­‐Coordinate  
Coordinate  data  for  the  Y-­‐axis.    
G1  Y1.  
 
Z     Z-­‐Coordinate  
Coordinate  data  for  the  Z-­‐axis.      
G1  Z-­‐.125  
 
Special  Character  Code  Definitions  
 
The  following  is  a  list  of  commonly  used  special  characters,  their  meaning,  use,  and  restrictions.  
 
%     Program  Start  or  End  
All   programs   begin   and   end   with   %   on   a   block   by   itself.     This   code   is   called   tape   rewind   character   (a   holdover   from   the  
days  when  programs  were  loaded  using  paper  tapes).    
 
 
 
(  )     Comments  
Comments  to  the  operator  must  be  all  caps  and  enclosed  within  brackets.    The  maximum  length  of  a  comment  is  40  
characters  and  all  characters  are  capitalized.      
(T2:  .375  END  MILL)  
 
/     Block  Delete  
Codes  after  this  character  are  ignored  if  the  Block  Delete  switch  on  the  control  is  on.      
/  M0  
   

Copyright  2014  Autodesk,  Inc.     5-­‐7  


Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

;     End  of  Block  


This  character  is  not  visible  when  the  CNC  program  is  read  in  a  text  editor  (carriage  return),  but  does  appear  at  the  end  
of  every  block  of  code  when  the  program  is  displayed  on  the  machine  control.  
N8  Z0.1  ;  
 
 

5.4  G&M  Codes  


G&M  Codes  make  up  the  most  of  the  contents  of  the  CNC  program.  The  definition  of  each  class  of  code  and  
specific  meanings  of  the  most  important  codes  are  covered  next.  

G-­‐Codes  

Codes  that  begin  with  G  are  called  preparatory  words  because  they  prepare  the  machine  for  a  certain  type  
of   motion.     The   most   common   G-­‐codes   are   shown   in   Table   1   and   a   complete   list   and   their   meaning   is  
included  in  Appendix  B,  G-­‐M  Code  Reference.  

 
Note:  Older  controls  required  G-­‐codes  to  be  written  with  a  leading  zero,  like  G01.    Most  machines  now  allow  the  leading  
  zero  to  be  omitted,  as  shown  in  the  table  below.  
 
 
Code   Meaning  
G0   Rapid  motion.  Used  to  position  the  machine  for  non-­‐milling  moves.    
G1   Line  motion  at  a  specified  feed  rate.  
G2   Clockwise  arc.    
G3   Counterclockwise  arc.  
G4   Dwell.    
G28   Return  to  machine  home  position.  
G40   Cutter  Diameter  Compensation  (CDC)  off.    
G41   Cutter  Diameter  Compensation  (CDC)  left.  
G42   Cutter  Diameter  Compensation  (CDC)  right.    
G43   Tool  length  offset  (TLO).  
G54   Fixture  Offset  #1.    
G55   Fixture  Offset  #2.  
G56   Fixture  Offset  #3.    
G57   Fixture  Offset  #4.  
G58   Fixture  Offset  #5.    
G59   Fixture  Offset  #6.  
G80   Cancel  drill  cycle.    
G81   Simple  drill  cycle.  
G82   Simple  drill  cycle  with  dwell.    
G83   Peck  drill  cycle.  
G84   Tap  cycle.    
G90   Absolute  coordinate  programming  mode.  
G91   Incremental  coordinate  programming  mode.    
G98   Drill  cycle  return  to  Initial  point  (R).  
G99   Drill  cycle  return  to  Reference  plane  (last  Z  Height)    
Table  1:  Common  G-­‐Codes  
 

5-­‐8        Copyright  2014  Autodesk,  Inc.  


Lesson  5     Fundamentals  of  CNC  Machining  
CNC  Programming  Language  

M-­‐Codes  

Codes  that  begin  with  M  are  called  miscellaneous  words.  They  control  machine  auxiliary  options  like  coolant  
and  spindle  direction.    Only  one  M-­‐code  can  appear  in  each  block  of  code.    

The  table  below  lists  the  most  common  M  codes  and  their  meaning.  A  complete  list  of  M-­‐codes  is  included  
in  Appendix  B,  G-­‐M  Code  Reference.  

Code   Meaning  
M0   Program  stop.    Press  Cycle  Start  button  to  continue.  
M1   Optional  stop.    Only  executed  if  Op  Stop  switch  on  the  CNC  control  is  turned  ON.  
M2   End  of  program.  
M3   Spindle  on  Clockwise.  
M4   Spindle  on  Counterclockwise.  
M5   Spindle  stop.  
M6   Change  tool.  
M8   Coolant  on.  
M9   Coolant  off.  
M30   End  program  and  press  Cycle  Start  to  run  it  again.  
Table  2:  Common  M-­‐Codes  
 

 
5.5  Select  G-­‐Code  Definitions  (Expanded)  
 
G0       Rapid  Move  
This   code   commands   the   machine   to   move   as   fast   as   it   can   to   a   specified   point.   It   is   always   used   with   a   coordinate  
position  and  is  modal.  Unlike  G1,  G0  does  not  coordinate  the  axes  to  move  in  a  straight  line.  Rather,  each  axis  moves  at  
its  maximum  speed  until  it  is  satisfied.  This  results  in  “dogleg”  motion  as  shown  in  Figure  2,  below.      
G0  X0.  Y0.  
 
Machine
Home

G54
Actual  Path
G0  G54  X0  Y0
 
 Figure  2:  G0  Dogleg  Motion  
 
  Caution:  The  rapid  speed  of  some  machines  can  exceed  1,000  IPM.  A  incorrect  offset  or  coordinate  move  can  crash  the  
  machine   faster   than   the   operator   can   hit   the   emergency   stop.     Use   the   rapid   feed   override   on   the   machine   when  
  running  a  program  for  the  first  time.        
   
   

Copyright  2014  Autodesk,  Inc.     5-­‐9  


Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

G1     Linear  Move  
This  command  moves  the  tool  in  a  straight  line  at  a  programmed  feed  rate.  
G1  X1.  Y1.1255  F32.  
 
G2/G3     CW/CCW  Arc  
G2  commands  clockwise  arcs.    G3  commands  counterclockwise  arcs.    Arcs  must  exist  on  a  plane  (G17/G18/G19)  and  
include  the  coordinates  of  the  arc  end  point  and  IJK  vectors  indicating  the  arc  center  location.      
 

G2  X0.  Y-­‐.25  I0.  J-­‐.25 G3  X-­‐.25  Y0.  I-­‐.25  J0.  


 
 Figure  3:  G2/G3  Arcs  
 
G17/G18/G19     Plane  Designation  
Arcs  must  exist  on  a  plane  designated  by  the  command  G17  (XY),  G18  (XZ)  or  G19  (YZ).    G17  is  the  machine  default.      
 
Y+

G17
X+
Z+
Z+
Y+ G18
X+
Z+

X+ G19
Y+
 
 Figure  4:  Plane  Designations  
 
G40/G41/G42     Cutter  Diameter  Compensation  (CDC)  
CDC   is   a   key   to   precision   CNC   machining,   allowing   the   operator   to   compensate   for   tool   wear   and   deflection   by  
commanding   the   machine   to   veer   left   (G41)   or   right   (G42)   from   the   programmed   path.   G40   cancels   cutter  
compensation.     The   amount   of   offset   is   entered   in   a   CNC  control   D-­‐register.     The   wear   register   can   be   thought   of   like   a  
table  that  the  control  refers  to  with  every  move.  
 

Tool    Diameter  Offset   Value  


D1   0.0020  
D2   0.0000  
D3   0.0000  
D4   0.0000  
D5   0.0000  
D6   0.0000  
Figure  5:  Diameter  Offset  Register  
 

5-­‐10        Copyright  2014  Autodesk,  Inc.  


Lesson  5     Fundamentals  of  CNC  Machining  
CNC  Programming  Language  

The   value   in   the   D-­‐register   is   calculated   by   the   machine   tool   operator,   who   monitors   the   finished   size   of   part   features,  
compares   them   with   the   print,   and   enters   the   difference   in   the   register   as   needed   to   keep   the   part   within  
specifications.    If  there  is  no  deviation,  the  register  is  set  to  zero.  
G1  G41  D1  X1.0  Y.25  F36.  
 
 
G43     Tool  Length  Compensation  
G43  activates  tool  length  compensation.  It  is  always  accompanied  by  an  H-­‐code  and  Z-­‐move,  where  H  is  the  tool  length  
offset  (TLO)  register  to  read,  and  Z  is  the  height  to  go  to  in  reference  to  the  part  datum.  
 
The  (TLO)  can  be  thought  of  like  a  table  on  the  control:  
 
Tool  Length  Resister   Z  
H1   12.6280  
H2   6.3582  
H3   9.7852  
H4   6.8943  
H5   10.5673  
H6   7.1258  
Figure  6:  Work  Offsets  
 
The  TLO  is  combined  with  the  active  fixture  offset  on  the  control  so  the  machine  knows  where  the  tip  of  the  tool  is  in  
relation  to  the  part  datum.  The  process  for  finding  the  TLO  detailed  in  Lesson  6,  CNC  Operation.  
G43  H1  Z1.  
 

G54     Work  Offset  

Work  offsets  are  data  registers  in  the  CNC  control  that  hold  the  distance  from  the  machine  home  X,  Y,  Z  position  to  the  
part  datum.    These  offsets  can  be  thought  of  like  a  table  on  the  control:  
 
Work  Offset   X   Y   Z  
G54   14.2567   6.6597   2.0183  
G55   0.0000   0.0000   0.0000  
G56   0.0000   0.0000   0.0000  
G57   0.0000   0.0000   0.0000  
G58   0.0000   0.0000   0.0000  
G59   0.0000   0.0000   0.0000  
Figure  7:  Work  Offsets  
 
 
Tip:   G54   is   usually   used   for   the   first   machining   setup.   Additional   offsets   are   used   to  
  machine  other  sides  of  the  part.  
   
 
The   X   and   Y   values   represent   the   distance   from   the   machine   home   to   part   datum   XY.     The   Z   value   is   the   distance   from  
the  tool  reference  point  (for  example,  the  top  of  a  1-­‐2-­‐3  block)  and  the  part  Z-­‐datum.  The  process  for  finding  TLO  and  
fixture  offset  Z  is  detailed  in  Lesson  6,  CNC  Operation.  
G54  X0.  Y0.  
 
 

   

Copyright  2014  Autodesk,  Inc.     5-­‐11  


Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

5.6  Canned  Cycles  


 
Canned  cycles  are  special  codes  that  act  like  a  macro.  They  are  used  for  hole  making  and  allow  one  compact  
block  of  code  to  command  many  moves.  For  example,  a  hole  can  be  created  using  a  peck  drill  cycle  with  two  
lines   of   code   (left   column)   whereas   the   same   move   would   require   maybe   twenty   or   more   lines   of   code   if  
each  motion  was  commanded  separately  (right  column).  
 
Canned  Cycle   Equivalent  Motion:  Expanded  Code  
N70  G98  G83  X1.  Y1.  Z-­‐1.04  R0.06  Q0.15  P0  F9.   N70  Z0.06  
N75  G80     N75  Z0.04  
  N80  G01  Z-­‐0.19  F9.  
N85  G00  Z0.06  
N90  Z-­‐0.11  
N95  G01  Z-­‐0.34  
N100  G00  Z0.06  
N105  Z-­‐0.26  
N110  G01  Z-­‐0.49.  
N115  G00  Z0.06  
N120  Z-­‐0.41  
N125  G01  Z-­‐0.64.  
N130  G00  Z0.06  
N135  Z-­‐0.56  
N140  G01  Z-­‐0.79  
N145  G00  Z0.06  
N150  Z-­‐0.71  
N155  G01  Z-­‐0.94.  
N160  G00  Z0.06  
N165  Z-­‐0.86  
N170  G01  Z-­‐1.04.  
N175  G00  Z0.25    
 
Figure  8:  Canned  Cycle  vs.  Expanded  Code  
 
G81     Simple  Drill  Cycle  
This   cycle   makes   holes   by   feeding   to   depth   at   a   programmed   feed   rate   and   then   retracting   at   rapid   rate.     It   is  
accompanied  by  G98  or  G99,  XYZ  coordinates,  feed  rate,  and  R.  R  is  the  feed  plane  and  Z  is  final  depth  of  the  tool  tip.  
 
All  drill  cycles  are  accompanied  by  G98  or  G99  that  determine  how  high  the  tool  retracts  between  holes.  
G0  Z1.  G43  H1  
G98  G81  X.5  Y.5  Z-­‐1.  R.1  F9.5  
 

5-­‐12        Copyright  2014  Autodesk,  Inc.  


Lesson  5     Fundamentals  of  CNC  Machining  
CNC  Programming  Language  

Initial  Rapid  Height  (Z1.0)


Feed  Plane  (R.1)

Z+
Depth  (Z-­‐1.)

X+
 
Figure  9:  G81  Simple  Drill  Cycle  
 
G82     Spot  Drill  Cycle  
This  cycle  is  identical  to  G81  except  it  includes  a  dwell  value,  P  (in  seconds).    P  is  used  to  pause  the  tool  feed  rate  at  the  
final  depth  to  create  a  clean  countersink  or  counterbore  finish.    
G0  Z1.  G43  H1  
G98  G82  X.5  Y.5  Z-­‐.0925  P.1  R0.1  F9.5  
 
G83     Peck  Drill  
A  peck  drill  cycle  is  used  on  deep  holes.  The  tool  drills  an  incremental  distance  (Q)  and  then  fully  retracts  from  the  hole.  
This  breaks  the  chip,  clears  material  out  of  the  hole,  and  allows  coolant  to  cool  the  drill  and  flush  out  the  hole,  reducing  
the  chance  of  the  tool  breaking  and  producing  a  better  quality  hole.  The  simplest  form  of  this  cycle  is  shown  in  Figure  8.    
Another  version  of  this  cycle,  called  a  "deep  drill  cycle",  uses  I,J,K  parameters  to  reduce  the  amount  of  peck  as  the  hole  
gets  deeper.    
G0  Z1.  G43  H1  
G83  X.5  Y.5  Z-­‐1.  R0.1  Q.25  F9.  
 

Copyright  2014  Autodesk,  Inc.     5-­‐13  


Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

Initial  Rapid  Height  (Z1.0)


Feed  Plane  (R.1)

Peck  Increment  (Q.25)

Z+
Depth  (Z-­‐1.)

X+
 
Figure  10:  G83  Peck  Drill  Cycle  
 
 
G84     Tap  Cycle  
Most   modern   machines   support   rigid   tapping,   which   eliminates   the   need   to   use   special   tapping   attachments.   Rigid  
tapping  precisely  coordinates  the  spindle  speed  and  feed  to  match  the  lead  of  the  thread.  It  then  stops  and  reverses  
the   spindle   at   the   bottom   of   the   cycle   to   retract   the   tap.     The   parameters   for   the   tap   cycle   are   identical   to   simple  
drilling  (G81).  
G0  Z1.  G43  H1  
G84  X.5  Y.5  Z-­‐1.5  R0.1  F20.  
 
G90     Absolute  Positioning  
This  code  commands  the  machine  to  interpret  coordinates  as  absolute  position  moves  in  the  active  Work  Coordinate  
System.    All  programs  are  written  in  absolute  coordinates.  
G90  G0  X1.  Y1.  
 
G91     Incremental  Positioning  
This  code  commands  the  machine  to  interpret  coordinates  as  incremental  position  moves.    G91  is  used  by  subprograms  
but  most  programming  done  with  CAD/CAM  software  and  does  not  use  subprograms.      
 
The  only  common  use  of  G91  is  in  combination  with  G28  to  send  the  machine  back  to  its  home  position  at  the  end  of  
the  program.  The  machine  must  be  set  back  to  G90  mode  in  the  next  block  as  a  safety  measure.  
G91  G28  Z0.  
G90    
 
G98     Return  to  Initial  Rapid  Height  
This   code   is   used   in   drill   cycles   to   retract   the   tool   to   the   clearance   plane   (set   in   the   next   previous   block)   between   holes  
to  avoid  clamps.      
G0  Z1.  G43  H1  
G98  G81  Z-­‐0.325  R0.1  F12.  
 

5-­‐14        Copyright  2014  Autodesk,  Inc.  


Lesson  5     Fundamentals  of  CNC  Machining  
CNC  Programming  Language  

Initial  Rapid  Height  (Z1.0)


Feed  Plane  (R.1)

Z+

X+
 
Figure  11:  G98  (Return  to  Clearance  Plane)  
 

G99     Return  to  R-­‐Plane  

This   code   is   used   in   drill   cycles   to   retract   the   tool   to   the   rapid   plane   (R)   between   holes.   G99   mode   is   the   machine  
default  and  is  used  when  clamp  clearance  between  holes  is  not  an  issue.  
G0  Z1.  G43  H1  
G99  G81  Z-­‐0.325  R0.1  F12.  
 

Initial  Rapid  Height  (Z1.0)


Feed  Plane  (R.1)

Z+

X+
 
Figure  12:  G99  Motion  (Return  to  R-­‐Plane)  
 
 

   

Copyright  2014  Autodesk,  Inc.     5-­‐15  


Fundamentals  of  CNC  Machining     Lesson  5  
CNC  Programming  Language  

5-­‐16        Copyright  2014  Autodesk,  Inc.  


Fundamentals  of  CNC  Machining  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lesson  6  
CNC  Operation  
 
 
 
 
 
Upon  successful  completion  of  this  lesson,  you  will  be  able  to:  
• List  the  steps  to  set  up  and  operate  a  CNC  mill.  
• Identify  the  location  and  purpose  of  the  operating  controls  on  the  Haas  CNC  Mill  
control.    
• Start  and  home  a  CNC  machine.    
• Load  tools  into  tool  carousel.    
• Set  Tool  Length  Offsets.  
• Set  Fixture  Offsets.    
• Load  a  CNC  program  into  the  machine  control.  
• Safely  run  a  new  CNC  program.    
• Adjust  offsets  to  account  for  tool  wear  and  deflection.    
• Shut  down  a  CNC  machine  correctly.    

 
 
   

 
6-­‐1  
Fundamentals  of  CNC  Machining     Lesson  6  
CNC  Operation  

   

6-­‐2        Copyright  2014  Autodesk,  Inc.  


Lesson  6     CNC  Operation  
Introduction  &  CNC  Process  Overview  

6.1  Overview  of  CNC  Setup  and  Operation  

CNC  machine  setup  and  operation  follows  the  process  shown  in  Figure  1:  
 

Pre-­‐Start

Start/Home

Load  Tools

Set  Tool  Length  Offsets

Set  Fixture  Offset  XY

Set  Fixture  Offset  Z

Load  CNC  Program

Run  Program

Adjust  Offsets  as  Required

Shut  Down

 
Figure  1:  CNC  Process  
   

Copyright  2014  Autodesk,  Inc.     6-­‐3  


Fundamentals  of  CNC  Machining     Lesson  6  
CNC  Operation  

1 Pre-­‐Start  
Before   starting   the   machine,   check   to   ensure   oil   and   coolant   levels   are   full.   Check   the   machine  
maintenance  manual  if  you  are  unsure  about  how  to  service  it.  Ensure  the  work  area  is  clear  of  any  
loose   tools   or   equipment.   If   the   machine   requires   an   air   supply,   ensure   the   compressor   is   on   and  
pressure  meets  the  machine  requirements.  
 
2 Start/Home  
Turn   power   on   the   machine   and   control.   The   main   breaker   is   located   at   the   back   of   the   machine.  
The  machine  power  button  is  located  in  the  upper-­‐left  corner  on  the  control  face.  
 
3 Load  Tools  
Load  tools  into  the  tool  carousel  in  the  order  listed  in  the  CNC  program  tool  list.  
 
4 Set  Tool  Length  Offsets  
For  each  tool  used,  jog  the  machine  to  find  and  then  set  the  TLO.  
 
5 Set  Fixture  Offset  XY  
Once   the   vise   or   other   fixture   is   properly   installed   and   aligned   on   the   machine,   set   the   fixture   offset  
to  locate  the  part  XY  datum.    
 
6 Set  Fixture  Offset  Z  
Use  a  dial  indicator  and  1-­‐2-­‐3  block  to  find  and  set  the  fixture  offset  Z.    
 
7 Load  CNC  Program  
Download   the   CNC   program   from   your   computer   to   the   machine   control   using   RS-­‐232  
communications,  USB  flash  memory,  or  floppy  disk.  

8 Run  Program  
Run  the  program,  using  extra  caution  until  the  program  is  proven  to  be  error-­‐free.    
 
9 Adjust  Offsets  as  Required  
Check  the  part  features  and  adjust  the  CDC  or  TLO  registers  as  needed  to  ensure  the  part  is  within  
design  specifications.  
 
10 Shut  Down  
Remove  tools  from  the  spindle,  clean  the  work  area,  and  properly  shut  down  the  machine.  Be  sure  
to   clean   the   work   area   and   leave   the   machine   and   tools   in   the   location   and   condition   you   found  
them.    
 

  Warning  
Never  operate  a  CNC  machine  or  any  shop  equipment  
  unless  you  have  been  properly  trained  on  its  use.  
 

  Observe  extreme  caution  at  all  times.  


 
Follow  all  safety  rules.  
   

6-­‐4        Copyright  2014  Autodesk,  Inc.  

You might also like