A 5-axis machine adds two rotary axes to X, Y and Z so the tool can meet the part from almost any direction. It is used in two ways: 3+2 (positional), where the rotaries tilt the part and lock while a normal 3-axis toolpath runs, and simultaneous 5-axis, where all five axes move together. The control features that make it practical are TCPC (tool centre point control, such as Fanuc G43.4, Heidenhain M128 or Haas G234) and DWO or tilted work planes (Haas G254, Fanuc G68.2). This guide explains how they work, the machine layouts, singularities, workholding, simulation and the mistakes that cause crashes.
1. The Axes and How They Are Named
Rotary axes are named after the linear axis they turn around: A rotates about X, B about Y and C about Z. Positive direction follows the right-hand rule: point your right thumb along the positive linear axis and your fingers curl in the positive rotary direction. A 5-axis machine uses two of these, so you will see A/C, B/C and A/B machines. Which pair you have, and whether they are in the table or the head, decides how the machine reaches the part.
2. 3+2 vs Simultaneous 5-Axis
| 3+2 (Positional) | Simultaneous 5-Axis | |
|---|---|---|
| How it moves | Rotaries index, then lock; X, Y, Z cut | All five axes move together during the cut |
| Typical work | Prismatic parts with features on many faces, angled holes, one-setup machining | Impellers, blades, ports, mould cores, undercuts, swarf cutting of tapered walls |
| Rigidity | High: rotaries are clamped during the cut | Lower: rotaries are unclamped and moving |
| Programming | Ordinary 3-axis toolpaths on tilted planes | Needs multi-axis CAM, a matched post and machine simulation |
Most shops get the biggest gains from 3+2. Doing five faces in one setup removes the error of re-clamping the part, so features on different faces stay in true position to each other. Tilting the part also lets you use a shorter tool, and a tool sticking out half as far bends about one eighth as much (see chatter and rigidity). If you only need a few angled faces, a 4th axis or the manual methods in Indexing Without a 4th Axis may be enough.
3. The Brain of the Machine: TCPC and DWO
On a 3-axis machine, part zero stays in one place. On a 5-axis machine, when the table tilts or turns, the part moves with it, and every point on it ends up somewhere new. Without help from the control, the program would have to be recalculated for every rotary position.
// Key Control Technologies
- TCPC (Tool Center Point Control): Fanuc G43.4 / G43.5, Heidenhain M128 or FUNCTION TCPM, Siemens TRAORI, Haas G234. The control adjusts X, Y and Z in real time as the rotary axes move, keeping the tool tip on the programmed point of the part. Used for simultaneous 5-axis.
- DWO (Dynamic Work Offsets) and tilted work planes: Haas G254, Fanuc G68.2, Heidenhain PLANE functions, Siemens CYCLE800. Used mainly for 3+2 work. You pick up part zero once; after any rotation the control works out where that zero has moved to, and the program can be written as if you were looking straight at the tilted face.
Worked example: how far a point moves
On a trunnion machine, part zero is set 4.000" above the A-axis centre of rotation, in line with it. Tilt A by 30°. The point swings on a 4" radius: it moves 4 × sin 30° = 2.000" sideways in Y and drops from 4.000" to 4 × cos 30° = 3.464" above the axis, so it is 0.536" lower. Without DWO or TCPC, you would have to work that out and set a new offset for every angle. With them, the control does it, as long as it knows exactly where the rotary centres are.
That is the catch: both features depend on the machine's kinematic data, the measured positions of the rotary centres. If those are out by 0.001", features cut at an angle will be out too. Most 5-axis machines have a probing routine to check them (Haas calls it MRZP, and Heidenhain and others offer kinematic calibration cycles). Check them after a crash and on a regular schedule, with the machine warm.
TCPC also uses the tool length to work out where the tip is. A wrong tool length offset on a 3-axis machine gives a wrong depth; with TCPC and a tilted tool it also moves the tool sideways. Measure tool lengths carefully, as described in the tool length offsets guide.
4. Kinematic Configurations Compared
| Type | Mechanism | Strengths | Limitations |
|---|---|---|---|
| Table-Table (Trunnion) | Tilt and rotary both in the table (A/C or B/C). | Stiff spindle, full use of short tools, good for small and medium parts. | Part size and weight limited by the trunnion; heavy parts slow the rotaries. |
| Head-Head | Both rotary axes in the spindle head; table stays still. | Handles very large and heavy parts, as on gantry machines for moulds and aerospace. | The head is less stiff than a fixed spindle; head size limits access in tight areas. |
| Head-Table (Hybrid) | One tilt in the head (usually B), one rotary in the table (usually C). | Good balance of part size and access; a heavy part only has to turn, not tilt. | Kinematics split between head and table, so both need calibrating. |
5. The Singularity Problem
Every 5-axis programmer eventually hits a singularity. It happens when the tool axis lines up with the rotary axis that sits "on top" of the tilt axis, usually the C axis on an A/C or B/C machine. At that point, any angle of C gives the same tool direction, so the maths has no single answer. A tiny change in tool direction near this point can ask for a large, fast C rotation, and the machine swings the part round while the tool is in the cut.
Avoiding the "Infinite Spin"
Singularities happen most often when machining across the top centre of a dome or hemisphere with the tool nearly vertical. To avoid them, tilt the tool a few degrees away from vertical (a lead or tilt angle in CAM), so the rotaries stay in a predictable range; change the direction of the toolpath so it does not pass over the pole; or choose the other rotary solution (most machines can reach a tool direction with the tilt axis positive or negative) where it gives smoother motion.
6. Why Tilting the Tool Helps the Cut
A ball-nose end mill pointing straight down cuts with its tip, where the surface speed is zero. At a shallow depth, the effective cutting diameter is only 2 × √(depth × (D − depth)). For a 1/2" ball at 0.020" deep: 2 × √(0.02 × 0.48) = 0.196". At 10,000 RPM that is only about 513 SFM at the edge, against 1,309 SFM for the full 1/2" diameter. Tilting the tool 10° to 15° moves the contact point away from the tip, so the edge cuts at a proper speed, finish improves and tool life goes up. Use the cusp height calculator to choose the stepover for the finish you need.
7. 5-Axis Workholding: The Clearance Challenge
On a 3-axis machine you just need to clear the top of the part. In 5-axis, the spindle head must be able to tilt around the part without hitting the vise, the fixture or the table. This has led to specialised workholding:
- Dovetail vises: grip only about 1/8" of material in a pre-machined dovetail, giving access to the other five sides.
- Zero-point systems: quick-change plates that locate repeatably and replace a traditional vise, reducing stack height and setup time.
- Risers: lift the part off the table so the head can tilt below the part's top face and reach the lower sides.
Height is not free. On a trunnion, the taller the stack, the bigger the circle the part swings through, which can hit the column or exceed the machine's swing diameter. Check the fixture, part and tools against the machine model in simulation, and stay inside the trunnion's load limit. More holding ideas are in Workholding 101.
8. The Vital Role of Simulation
On a 3-axis machine, a crash usually means a broken tool. On a 5-axis machine, it can mean the spindle head hitting a trunnion, a fixture or the table at rapid speed, with damage to the spindle and the rotary axes and a long, expensive repair.
Machine-Specific Simulation
Toolpath simulation in CAM is not enough. You need G-code based machine simulation (such as Vericut, NCSIMUL or the machine simulation in your CAM system) with an accurate model of your machine. It reads the actual posted code and checks for collisions and near misses between all the machine components, the fixture, the tool holder and the part, not just the tool and the part.
Why You Need a Specialised Post-Processor
The post-processor translates CAM toolpaths into code for one particular machine. In 5-axis, it decides which rotary solution to use, where to retract between moves, how to output TCPC or tilted plane codes, and how to handle "unwind" (when a rotary axis with limited travel reaches its end and has to turn back, the post must retract the tool, rotate, and re-enter). A generic post can run a 3-axis job; a 5-axis job needs one matched and tested for your machine.
9. Running Your First 5-Axis Job
- Warm up the machine and check the rotary centre calibration.
- Set part zero as the post expects: at the rotary centre, or anywhere when DWO or TCPC is active. The work coordinates guide explains the offsets involved.
- Measure every tool length and check holder lengths match the simulation model.
- Run the program in machine simulation, then in the control's graphics.
- Run the first part with single block, rapid override at 25% or less and a hand near feed hold, watching each rotary move. Check the "distance to go" before each index.
- Inspect angled features on the first part before running the rest.
10. Common Mistakes
- Trusting old calibration. A small crash or a cold machine moves the rotary centres, and every tilted feature follows.
- A wrong tool length with TCPC on. It moves the tool sideways as well as in depth.
- Forgetting to cancel TCPC or the tilted plane before a tool change or the next operation. Follow the post's safe start and end blocks exactly.
- Using a generic post or editing posted 5-axis code by hand without re-simulating it.
- Ignoring the rotary clamps. 3+2 cuts should run with the rotaries clamped; heavy cuts with them unclamped cause chatter and poor accuracy.
- Feeds that ignore engagement. Tilted tools and side cuts change the chip thickness. See radial chip thinning and the chip thinning calculator.
Calculators for Multi-Axis Cutting
Tilted tools and light side cuts change your effective chip load and finish. Work out the stepover for a ball nose and the feed correction for light radial cuts before you post the program.
Cusp Height Calculator Chip Thinning CalculatorFrequently Asked Questions
Conclusion
5-axis machining is a balance of geometry, software and hardware. Start with 3+2 work, keep the machine's kinematic calibration and your tool lengths right, use TCPC and DWO so the control handles the moving part zero, steer clear of singularities, and simulate every program on an accurate machine model. Do that, and five axes give you fewer setups, shorter tools and better parts.