What CNC means
CNC stands for computer numerical control. A CNC machine is a machine tool whose movements are directed by a stored program instead of by an operator turning handwheels. The program is a list of instructions: move to this position, spin the tool at this speed, feed at this rate, switch coolant on. The machine reads the instructions and carries them out exactly the same way each time the program runs.
The word “numerical” comes from the fact that positions are given as numbers, usually coordinates along axes. A typical machining center has three linear axes, usually called X, Y and Z, and many have additional rotary axes so that the tool or part can tilt and turn to reach more surfaces.
From drawing to part
The path from design to a finished part usually runs in four steps.
- Design. A part is drawn in computer-aided design software, or CAD.
- Toolpath planning. Computer-aided manufacturing software, or CAM, takes the model and the choice of tools, speeds and cutting strategy, and works out the toolpaths.
- Program output. The CAM software produces a program, often in the long-standing G-code language, adapted to the specific machine’s controller. A step called post-processing handles the differences between machines.
- Setup and run. An operator mounts the raw material in a vise or fixture, loads the tools, sets the position of the work relative to the machine, checks the program, and runs it, usually starting carefully with a first part.
In the case of short programs, some controllers allow programming at the machine itself.
What is inside the machine
- Controller. The computer that reads the program and drives the axes.
- Motors and drives. Axis movement is produced by servo motors, which report their position back so the controller can correct errors continuously. Simpler or smaller machines may use stepper motors, as compared in the article on those two motor types.
- Feedback devices. Linear scales and rotary position encoders report where each axis actually is. This closed-loop feedback is the heart of CNC accuracy.
- Ball screws and guides. Rotary motion becomes smooth, accurate linear motion through ball screws and precision linear guideways, with very little backlash.
- Spindle. The motor-driven shaft that spins the cutting tool in a mill, or the workpiece in a lathe.
- Tool changer. A magazine holds many tools, and the machine swaps them automatically as the program requires.
- Coolant and chip handling. Pumps and filters deliver coolant, and conveyors carry chips out of the work area.
The topic of making all these axes move smoothly and accurately is the subject of motion control, and getting it right involves ideas such as motion tuning so that the machine follows the commanded path without overshoot or vibration.
Why CNC is repeatable
Manual machining depends on the operator’s skill and attention for each part. CNC moves that skill into the program and the setup. Once a program is proven, the machine follows it the same way every time, and the movements are measured by feedback instead of by a person’s judgment. This leads to repeatability, meaning consistent results from part to part.
CNC does not make errors vanish. The machine can still produce parts that are off size because of:
- Tool wear. Cutting edges dull gradually, a subject explored under cutting tool wear. Many machines let the operator enter offsets or use probing to compensate.
- Heat. The machine and the part both change size as they warm up. Warm-up routines and stable shop conditions help.
- Deflection. Long or thin tools and parts can bend slightly under cutting forces.
- Setup errors. A part held poorly or located wrongly will be wrong no matter how good the machine is.
Probes can touch the part or tool inside the machine and report measurements, supporting the broader idea of manufacturing quality control. Machines also need a solid base, and the guidance in machine foundations applies to large precision installations. And all of this relies on regular calibration of both the machine and the measuring instruments.
The kinds of CNC machine
- CNC mills and machining centers hold the part still and move a rotating cutter around it. They are used for housings, brackets, molds and many complex shapes. Machining centers are a step up in capability, often discussed alongside precision machining centers.
- CNC lathes spin the part and use fixed tools. Turning centers can also include driven tools to mill features without moving the part to another machine.
- CNC routers are lighter-duty machines for wood, plastics and composites.
- Other CNC processes include grinders, electrical discharge machines, laser cutting machines, plasma cutters, press brakes and waterjet cutters. Even many 3D printers are numerically controlled, though they add material, as explained in articles on additive manufacturing processes.
What CNC is used for
CNC machines make parts across industries: machine components, tooling, engine and gearbox parts, medical parts such as instruments and implants (see medical device production), electronic enclosures, prototypes and one-off replacement parts. They suit both single prototypes, where programming time is the main cost, and large production runs, where the program is reused many times.
Their strength is flexibility. Changing the program changes the part, with no new custom tooling needed in many cases. That is one reason small shops can compete in precision work.
Limits and sensible caution
CNC machines are powerful and can cause serious injury. Moving axes, flying chips, hot coolant and spinning tools are hazards, and guarding and interlocks are built in for good reason. Setup and programming mistakes can crash the machine into the part or fixture. Anyone running one should be trained, follow the manufacturer’s manual and the plant’s safety rules, and use isolation procedures before servicing. This article is a general explanation and not operating instructions.