CNC, or Computer Numerical Control, encompasses the manufacturing process where machines cut, carve and form parts based on computer codes that control the cutting tool’s speed and movement.
These machines cut metals, wood, foam, composites, plastics and more into precise parts with uses in almost every industry.
They do this autonomously and without any human intervention once the manufacturing code is generated, greatly improving manufacturing speed, efficiency, repeatability, reliability, and precision – and they can potentially go 24/7.
Top CNC brands offer a variety of different CNC machining types, from CNC milling machines to lower-cost CNC routers, as well as lathes, grinders, laser cutters, EDM machines, and water jet cutters. The CNC industry market size is worth billions, and continues to grow.
3D printers are technically also types of CNC machine, though they use additive manufacturing rather than subtractive manufacturing techniques.
In this guide, I’ll walk you through all the key points I’ve learned about CNC over the past 10 years, so you have a solid foundational knowledge to start producing successful projects.
Table Of ContentsCNC movements are based on the X, Y and Z axes. The tool is positioned using stepper or servo motors, which act on the movements based on the code obtained from the original 3D model of the part you want to create – called the G-code. Numerical controls describe how fast to move the spindle (the rotating part which spins the tool holder), which direction to move, which tool to use (if the machine uses multiple tools and can switch between them), as well as other factors such as using coolant. CNC operators run and monitor machines, and CNC programmers create and run the codes for them.
Within CNC there are two main file formats that affect the CNC machining process. Most people have heard of G-code, which are used in both CNC and 3D printing, but M-codes are also important.
G-code files: stands for geometry code, and includes the machine’s movement coordinates so that the machine knows where to cut chips off the part, which type of CNC machining tool to use, how quickly to move the spindle, the radius of arcs given by the machine, and also the speed settings.
M-code files: all the major factors not covered by the G-code are covered in the M-code. M-code describes miscellaneous code and comes with the overall G-code, but accounts for different parts of the CNC process. The M-code accounts for when to stop axes or the spindle, when to change direction of spinning e.g. from clockwise to anticlockwise, and when to use coolant.
The best combined CAD-CAM software packages can both design and prepare your 3D CAD model for production to produce G-code files.
Get a grasp on CNC technical terms and acronyms, read our CNC Terminology Guide.
Perhaps the most common form of CNC machine, CNC mills use a rotating cutting tool to remove chips from a block of material. CNC milling tools include end and chamfer mills, and face milling cutters.
CNC mills have a cutting tool in a spindle, which rotates the tool to make the cuts. The spindle spins the tool to high speeds, then the workpiece is moved to cut unnecessary parts off. Both 3-axis mills and 5-axis mills exist, with 5-axis mills capable of more intricate cutting.
CNC milling is a very accurate and versatile process suitable for a variety of applications, is able to shape metals, plastics and wood, and is also very quick.
However, as a subtractive manufacturing process lots of waste is generated, and many different tools are required for more complex projects. These factors make CNC milling an expensive and industrial process.
CNC lathes rotate spin the workpiece in the spindle (rather than the mill tool head in mills), with a fixed cutting tool slicing chips from the spinning part.
The process, called turning, is ideal for symmetrical parts, and though it is more limited in terms of the number of axes, lathes are precise and accurate, and commonly used to produce shafts and gears.
CNC routers are similar in form to CNC milling machines – they both feature a rotating cutting head. Routers however are better for softer materials, especially wood, as they are typically less powerful and accurate, and a more for hobbyists and less industrial uses.
DIY CNC router kits can be purchased for homemade CNC router projects, which are great for accurate woodworking projects.
We also published a full guide explaining how deep a CNC router can cut .
Water jet cutters can cut granite, metals, and other tough materials. They use high-pressured water, sometimes mixed with abrasive substances like sand, to machine factory parts and other applications.
As less heat is used during the water jet cutting process than most other CNC types, it is commonly used to cut materials that would otherwise have their properties changed by heat. The process is also very precise, and is useful for very intricate carving and cutting.
Sometimes called die sinking or spark machining as well as spark eroding, EDM machining involves electrical discharges from sparks to cut and shape parts.
EDM machines use current discharges and an electric field to remove chips from the workpiece. Two electrodes are used, with electrical fields intensified by moving the electrodes nearer to each other in order to cut pieces. A dielectric liquid separates the two electrodes and facilitates the voltage.
There are three main types of EDM machines:
Similar in form to CNC mills, CNC drills use a spindle and drill but rather than forming a part, instead only cut holes. These holes can be precisely designed for size, diameter, and depth.
3-axis CNC machines were the original standard for machining, able to move and cut across three axes: X, Y, and Z. However, there are some limitations with machining deep parts, especially those with deep and difficult cavities.
5-axis CNC machines build on this, adding A and B axes to the original X, Y and Z axes. A and B are axes around which the tool, such as the CNC milling tool, can rotate. The tool can rotate around the X and Y axes – moving the table, increasing geometric versatility. This improves machining speed, precision and only requires shorter tools, though does increase preparation time (but reduces material handling time).
For complex, tall, deep, or intricate parts, 5-axis CNC machines work best.
Open loop stepper systems run in one direction – from the controller to the stepper motor. On the other hand, closed loop systems run two ways, and can therefore receive feedback. If, for example, a CNC router misses a step, a closed loop system can attempt to correct the error, or stop and prevent crashing.
Without feedback, if errors occur there is no way for an open loop system to know. It will therefore carry on until either you stop the machine, or a limit switch is hit.
Open loop systems are cheaper, and therefore more common on DIY CNC routers, but closed loop systems are more advanced and can correct errors, such as in position of the machine.
Though efficient, precise and generally reliable, CNC can go wrong. Errors can occur, and sometimes they can badly damage not just the material, but the CNC tool and machine. The piece or the machine can be incorrectly placed, causing a crash where the tools break. Incorrect code or other factors can contribute.
Linear, rotary and angle encoders can be used with servo motors and other systems to minimize errors by checking the machine is moving as expected. Moreover, industrial closed loop machines significantly reduce errors as the control always knows the axis position.
Unlike 3D printing, CNC is subtractive rather than additive. The CNC process starts with a larger block of material as the workpiece, and removes areas, like chipping away at marble – to get to the final model.
3D printers instead use additive manufacturing technologies. They take 3D model data and import it into a 3D slicer, which slices the part into layers for the 3D printer to deposit material or selectively solidify resin or powder to create the finished part.
3D printers waste less material as they only deposit the material necessary to create the part, but CNC machining is faster and can handle tougher materials more easily. 3D printing is considered best for very short run, intricate parts with complex geometries, with CNC better for faster, cheaper parts in metal, wood or other tough materials.
Numerical Control machines are controlled by numerical instructions called programs. These are fed into the machine via punch cards, requiring skilled operators to monitor and use. NC machine programs are difficult to modify, for example if errors occur.
Computer Numerical Control machines instead use computer programs, written in alphanumeric data, with detailed coded instructions for movement and manufacturing method. CNC code can be far more easily edited and improved if errors occur, and CNC is considered significantly more efficient and effective.
Related articles: