CNC Machining The Complete Engineering Guide
CNC Machining The Complete Engineering Guide
The Complete
Engineering Guide
Learn all you need to know about CNC machining in 25 minutes or less. Whether you are an experienced
design engineer or just getting started with CNC, this guide is for you.
1
Table of Contents
Part 1
The Basics
5. What is CNC machining?
Summary
Scaling up production
Part 2
2
Part 3
Metals
Plastics
Surface finishes
Part 4
Cost reduction
tips 32. Tips to keep your CNC project on budget
Part 5
Start CNC
machining 37. Step 1:
Export your design to a CNC-compatible CAD
file format
38. Step 2:
Prepare a technical drawing
39. Step 3:
Get an instant quote & start manufacturing
Part 6
Useful Resources
41. Knowledge Base
Learn to machine
Other guides
3
Part 1
The Basics
What is CNC machining? What are the different types of CNC
machines? How do they work? In this section, we answer all
these questions and we compare CNC machining to other
manufacturing technologies to help you find the best solution
for your application.
4
What is CNC machining?
CNC (Computer Numerical Control) machining is a sub-
tractive manufacturing technology: parts are created by
removing material from a solid block (called the blank
or the workpiece) using a variety of cutting tools.
5
A brief history of CNC machining
> The earliest machined object ever discovered was a bowl found in
Italy and made in 700 B.C. using a lathe.
> The first programmable machine was developed in the late 40’s in MIT.
It used punched cards to encode each movement.
> The proliferation of computers in the 50’s and 60’s added the “C” in
CNC and radically changed the manufacturing industry.
> Today, CNC machines are advanced robotic systems with multi-axis
and multi-tooling capabilities.
6
Types of CNC machines
In this guide, we will focus on CNC machines that remove material using
cutting tools. These are the most common and have the widest range of
applications. Other CNC machines include laser cutters, plasma cutters
and EDM machines.
CNC Machining
7
3-axis CNC milling
3-axis CNC milling machines are very common, as they can be used to
produce most common geometries. They relatively easy to program
and operate, so start-up machining costs are relatively low. Tool access
can be a design restriction in CNC milling.
As there are only three axes to work with, certain areas might be
impossible to reach. This is not a big issue if the workpiece needs to
be rotated just once, but if multiple rotations are needed the labor and
machining costs increase fast.
> Material is removed from the workpiece using cutting tools or drills
that rotate at high speed.
> The tools are attached to a spindle, which can move along three lin-
ear axis.
Spindle
Tool
Workpiece
Pros Cons
+ Can produce most parts with simple geometries. - Tool access & workholding design restrictions apply.
+ High accuracy & tight tolerances. - Manual repositioning of the workpiece lowers the achiev-
able accuracy.
8
3-axis CNC turning (lathes)
CNC lathes are extensively used, because they can produce parts at
a much higher rate and at a lower cost per unit than CNC mills. This is
especially relevant for larger volumes.
The main design restriction of CNC lathes is that they can only
produce parts with a cylindrical profile (think screws or washers). To
overcome this limitation, features of the part are often CNC milled in a
separate machining step. Alternatively, 5-axis mill-turning CNC centers
can be used to produce the same geometry in one step.
> The workpiece is held on the spindle while rotating at high speed.
> A cutting tool or center drill traces the outer or inner perimeter of the
part, forming the geometry.
> The tool does not rotate and moves along polar directions (radially
and lengthwise).
Spindle
Tool
Workpiece
Pros Cons
+ Lowest cost per part than all other CNC machining - Can only produce parts with rotational symmetry
operations. & simple geometries.
+ Very high production capabilities.
9
Continuous 5-axis CNC milling
> The cutting tool can move along three linear and two rotational axes
relative to the workpiece.
> All five axes can move at the same during all machining operations.
Pros
Cons
10
Indexed 5-axis CNC milling
Indexed 5-axis CNC milling systems are also known as 3+2 CNC milling
machines, since they are using the two additional degrees of freedom
only between machining operations to rotate the workpiece. The key
benefit of these systems is that they eliminate the need of manually
repositioning the workpiece.
This way parts with more complex geometries can be manufactured
faster and at higher accuracy than in a 3-axis CNC mill. They lack though
the true freeform capabilities of continuous 5-axis CNC machines.
> During machining the cutting tool can only move along three linear
axis.
> Between operations the bed and the toolhead can rotate, giving ac-
cess to the workpiece from a different angle.
Pros
Cons
11
5-axis mill-turning CNC centers
> The workpiece is attached to a spindle that can either rotate at high
speed (like a lathe) or position it at a precise angle (like 5-axis CNC mill).
> Lathe and milling cutting tools are used to remove material from the
workpiece, forming the part.
Pros
Cons
12
To summarize
> 3-axis CNC milling machines manufacture parts with relatively simple
geometries with excellent accuracy and at a low cost.
> CNC lathes have the lowest cost per unit, but are only suitable for
part geometries with rotational symmetry.
> Indexed 5-axis CNC milling machines manufacture parts with features
that do not align with one of the main axes quickly and with very high
accuracy.
> Mill-turning CNC centers combine the benefits of CNC turning and
CNC milling into a single system to manufacture complex parts at a
lower cost than other 5-axis CNC systems.
Use the table below for a rough estimate of the cost per hour of the dif-
ferent CNC machines. The cost is presented relative to that of a 3-axis
CNC milling machine, which is typically $75 per hour.
13
Benefits & Limitations
of CNC machining
Here’s a list of the key strengths and limitations of CNC machining.
Use them to help you decide whether it is the right technology for your
application.
Small-to-medium production
The advances of modern CNC systems, CAM software, and digital sup-
ply chains have greatly accelerated the production times. Now CNC
machined parts are typically ready for delivery within 5 days. This is
comparable to the turnaround of industrial 3D printing processes, such
as SLS.
14
Highly accurate parts with tight tolerances
15
Applications of CNC machining
Here we collected some examples to show how people used 3D
printing and why they chose it for their specific use cases.
Space
Aerospace
Aerospace was one of the first industries to use CNC machining. This is
due to its ability to manufacture lightweight parts with excellent phys-
ical properties and very tight tolerances. CNC machining is used both
for aircraft parts and also during the development stages.
For example, Tomas Sinnige is a PhD researcher at the Delft Universi-
ty of Technology. With his team of researchers, they used CNC machin-
ing to manufacture scaled-down versions of their prototype engine,
aiming to increase the efficiency of modern propeller engines.
Automotive
The ability of manufacture quickly custom metal parts with great di-
mensional accuracy, makes CNC machining an attractive option for
producing functional prototypes. This is essential during later stages of
design and development.
The design team of DAQRI, for instance, used CNC machining to
prototype their professional Augmented Reality (AR) hardware. They
selected this process, as it was the most cost-competitive solution that
was capable of producing custom metal parts with the required level of
detail and at the small-scale needed for their designs.
16
Electrical & electronic manufacturing
17
CNC machining vs. 3D printing
Both CNC machining and 3D printing are exceptional tools in the arse-
nal of an engineer. Their unique benefits make each more suitable for
different situations though. When choosing between CNC machining
and 3D printing, there are a few simple guidelines that you can apply to
the decision making process.
As a general rule of thumb parts with relatively simple geometries,
that can be manufactured with limited effort through a subtractive pro-
cess, should generally be CNC machined, especially when producing
metal parts.
To summarize:
18
Scalling up production
If high volumes are needed (1,000’s or more), neither CNC machining
nor 3D printing are likely to be suitable options. In these cases, form-
ing technologies, such as investment casting or injection molding, are
more economically viable due to the mechanisms of economies of
scale. For quick reference, use the table below. In this simplification, it
is assumed that all technologies are able to produce the geometry of
the part in question. When this is not the case, 3D printing is generally
the preferred method of manufacturing.
100 - 1000 CNC machining (consider Injection CNC machining (consider Investment
Molding) Casting)
19
Part 2
20
CNC machining design restrictions
The design restrictions in CNC machining are a natural result of the me-
chanics of the cutting process and in particular:
Tool access
Tool geometry
Most CNC machining cutting tools have a cylindrical shape with a flat
or spherical end, restricting the part geometries that can be produced.
For instance, the internal vertical corners of a CNC part will always have
a radius, no matter how small a cutting tool is used.
Workholding
The geometry of a part determines the way it will be held on the CNC
machine and the number of setups required.
This has an impact on the cost, but also the accuracy of a part. For ex-
ample, manual repositioning introduces a small, but not negligible, po-
sitional error. This a key benefit of 5-axis versus 3-axis CNC machining.
Workpiece stiffness
Due to the cutting forces and the temperatures developed during ma-
chining, it is possible for the workpiece to deform or vibrate. This limits,
for example, the minimum wall thickness that a CNC machined part
can have and the maximum aspect ratio of tall features.
Tool stiffness
Most CNC machining cutting tools have a cylindrical shape with a flat
or spherical end, restricting the part geometries that can be produced.
For instance, the internal vertical corners of a CNC part will always have
a radius, no matter how small a cutting tool is used.
21
Design rules for CNC machining
In the table below, we summarise how these restrictions translate into
actionable design rules.
Tall features
Tall features are difficult to machine accurately, as they are prone to vi-
brations. Consider the overall geometry of the part: rotating the part by
90° degrees during machining changes the aspect ratio.
Deeper cavities need to be machined with cutting tools with larger di-
ameter affecting the fillets of the internal edges.
Internal Edges
For internal vertical edges, the larger the fillet the better. Edges on the
floor of a cavity should be either sharp or have a 0.1 mm or 1 mm radius.
22
Holes
Threads
Small features
Cavities and holes down to 2.5 mm (0.1’’) can be CNC machined with
standard cutting tools. Anything below this limit is considered mi-
cro-machining and must be avoided unless necessary.
Tolerances
23
Designing undercuts
Undercuts are features that cannot be machined with standard tools,
no matter how the part is rotated, because the cutting tools cannot
access all surfaces. If square aluminum extrusions were manufactured
with CNC machining, then their grooves would be considered under-
cuts. Undercuts can be machined using special T-shaped, V-shaped or
lollipop-shaped cutting tools if designed correctly. Here are some prac-
tical guidelines to help you get started with designing undercuts.
Undercut dimensions
Undercut clearance
24
Part 3
25
Materials for CNC machining
Selecting the right material is a crucial step in the design process. The
optimal material option is highly dependent on your specific use case
and requirements. Since almost every material with sufficient hardness
can be machined, CNC offers a very large range of material options
to choose from. For engineering applications, metals and plastics are
most relevant and will be the focus of this section. Surface finishes can
also alter the properties of CNC machined parts and we will examine
them below. To get started, take a look at this decision tree. It contains
high-level material recommendations that cover the most common de-
sign requirements.
26
Metals
CNC machining is primarily used with metals and metal alloys. Metal
can be used for both the manufacturing of custom one-off parts and
prototypes and for low-to-medium batch production. Aluminum 6061 is
by far the most used material in CNC machining.
Aluminum
Stainless steel
Alloy steel
Mild steel
Tool steel
Brass
27
Plastics
Plastics are lightweight materials with a wide range of physical
properties. They are often used for their chemical resistance and
electrical insulation properties. Plastics are commonly CNC machined
for prototyping purposes prior to Injection Molding.
ABS
Polycarbonate (PC)
> PC
Nylon
> Nylon 6
POM (Delrin)
> Delrin
PEEK
> PEEK
28
Surface finishes
Surface finishes are applied after machining and can change the
appearance, surface roughness, hardness and chemical resistance of
the produced parts. Below is a quick summary of the most common
finishes for CNC.
Powder coating
Powder coating adds a thin layer of strong, wear and corrosion resis-
tant protective polymer paint on the surface of a part. It can be applied
to parts of any material and is available in many colors.
Extra cost: $$
Pros Cons
+ Strong, wear and corrosion coating for functional applications - Cannot be applied to internal surfaces
+ Higher impact resistance than anodizing - Less dimensional control compared to anodizing
+ Compatible with all metal materials - Not suitable for small components
As-machined
Pros Cons
Bead blasting
Extra cost: $
Pros Cons
29
Anodizing (clear or colored)
Extra cost: $$
Pros Cons
Hardcoat anodizing
Cons
+ High wear resistance coating for top-end engineering - More brittle than powder coating
applications - Only compatible with aluminum and titanium
+ Can be applied to internal cavities
+ Good dimensional control
Silk screening
Extra cost: $
Pros Cons
+ Low-cost printing of custom text or logos - Can be only applied to external flat surfaces of a part
+ Available in many colors
30
Part 4
31
Tips to keep your CNC project
on budget
The cost of CNC machined parts depends on the following:
> Machining time & model complexity: The more complex the geometry
of a part is, the longer it takes to machine and the more expensive it will
be.
> Start-up costs: These are related to CAD file preparation and process
planning. They are significant for smaller volumes but are fixed. There is
an opportunity to reduce the unit price by taking advantage of econo-
mies of scale.
> Material cost & finishes: The cost of the bulk material and the ease
with which that material can be machined greatly affect the overall cost.
As a rule of thumb:
Learn 11 more tips to further reduce the cost of your CNC parts →
32
Tip #1: Increase the size of all fillets
or add undercuts to sharp edges
To minimize cost:
> Add a radius that is slightly larger than 1/3 of the depth of the cavity.
Pro Tip: Use the same radius for all edges to save time on tool changes
33
Tip #2: Minimize the number of
machine orientations
The part above requires at least two machine setups in a 3-axis CNC
mill. After the features on one side are machined, the workpiece is
rotated manually. This requires manual labor increasing costs. Alterna-
tively, a multi-axis CNC machines can be used. This also increases the
machining costs though by about 60 to 100%.
To minimize cost:
> Design parts that can be machined in one or two setups in a 3-axis
CNC mill.
> AIf this is not possible, consider splitting the part into multiple geom-
etries that can be machined in one setup and assembled later.
34
Tip #3: Consider the cost of
the material
To minimize cost:
> Select the material with the lowest cost that has properties that fulfill
your design requirements.
> Use online instant quoting to get quick feedback on the price of each
material.
35
Part 5
36
Step 1: Export your design to a
CNC-compatible CAD file format
The file formats predominantly used in CNC machining are STEP and
IGES. These formats are open-source, standardized and can be used
across platforms.
On 3D Hubs, you can also upload files and get an instant quote for file
formats used in your the native CAD software, including SLDPRT, 3DM,
IPT, SAT and X_T.
37
Step 2: Prepare a technical drawing
38
Step 3: Get an instant quote &
start manufacturing
With 3D Hubs, outsourcing parts for CNC machining is easy, fast and
highly price-competitive.
By combining a network of manufacturing services with our smart
sourcing engine, you can instantly access readily available production
capacity for the best possible quotes and lead times.
When you upload your parts to 3D Hubs, our automated Design for
Machinability analysis will detect any potential design issues before
production begins and will give you an instant quote, based on our
machine learning algorithm.
This way you can be sure that you always receive the best price in the
market at the fastest turnaround times for your CNC machining parts!
39
Part 6
Useful Resources
In this guide we touched upon all you need to get you started with
CNC machining. But there is plenty more to learn. Below we list the
best and most useful resources on CNC machining and other digital
manufacturing technologies for those who want to delve deeper.
40
Knowledge Base
In this guide, we touched upon all you need to get you started with cre-
ating custom parts with CNC machining. There is plenty more to learn
about CNC machining in our Knowledge Base - a collection of technical
articles on all manufacturing technologies, written by manufacturing
experts and curated by 3D Hubs.
Learn to machine
Are you looking to get your hands dirty with CNC machining? Then
there are several ways to learn how to operate a CNC mill or CNC lathe.
> Visit your local Fab Lab: Many Fablabs and Makerspaces have CNC
milling capabilities and they will run courses on how to opperate them.
Visit the official list of Fab Labs to find one near your area.
> Find resources online: There are a lot of useful resources online to
help you hone your CNC machining skills. The Titans of CNC Academy
and NYCCNC are probably two of the best site to get you started.
Other guides
Want to learn more about Digital Manufacturing? There are more tech-
nologies to explore:
What is 3D printing?
41