How Does a 7 Axis CNC Machine Work?
A 7-axis machine adds two rotary axes to a 5-axis platform, usually a spindle head plus a trunnion table. This page walks through the axis layout, the CAM work behind it, and the parts where the extra motion actually pays off.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
What you should know before reading
How a 7 Axis CNC Machine Work Setup Is Built
Start with the base of any machining center: three linear axes. X and Y move the table or the column sideways, Z moves the spindle up and down. On a 7-axis machine those three still behave the same way, with the same ballscrews and linear guides. Nothing exotic happens until you add rotation.
The first pair of rotary axes is usually mounted on the spindle head. B tilts the head forward and back around the Y axis; C spins it around Z. Together they point the tool in almost any direction. On a gantry-style machine the same motion may be built into a swiveling ram instead of a head.
The second pair sits under the workpiece. A tilts the table around X, C rotates it around Z. This is the trunnion layout you already know from 5-axis machining, except the controller now has two more motors to coordinate with the head.
So a 7-axis layout is really two 5-axis machines sharing one bed. Each side covers angles the other side cannot reach, and the controller decides which side moves. That split is the whole point of the design.
The Kinematic Model Behind the Motion
The controller does not know where the tool tip is. It only knows motor positions. A kinematic model converts one into the other, and every 7-axis machine carries two of those models, one for the head chain and one for the table chain.
For a head-table machine the chain looks like this: base to Y to X to Z to B to C to tool, then base to A to C to workpiece. The solver walks both chains, then works out the transform between them at every block of G-code.
This is where most programming errors come from. If the post-processor writes the wrong pivot distance for the B axis, the tool will still cut, but the surface will be off by the error times the tilt angle. A 0.05 mm pivot error at 45° tilt becomes roughly 0.035 mm of gouge.
Modern controllers re-solve the model on the fly, typically every 1–4 ms. That is fast enough for simultaneous motion at 20–30 m/min feed, but it is also why a 7-axis control needs more CPU than a 3-axis one.
Choosing Between Head Motion and Table Motion
Both rotary pairs can reach the same tool vector, so the CAM system has to pick one. The rule we use in the shop is simple: let the table carry the part when the part is small, and let the head do the work when the part is large.
Small parts, up to about 300 mm, sit well on a Ø400 mm rotary table. The table tilts and rotates while the head stays near vertical, which keeps the spindle stiff. Tool overhang stays short, so chatter risk drops.
Large parts do the opposite. Swinging a 500 kg fixture on a trunnion at 30 rpm puts a lot of torque into the table bearings and can deflect the part. Instead, lock the table and drive the head. The mass stays still and only the spindle moves.
There is a third case: long parts. When the part is over 1,000 mm, the trunnion cannot tilt it without hitting the bed. The head has to cover the undercuts, and the table only indexes between features. You lose some simultaneous motion, but you keep the setup.
What CAM Has to Solve Before the First Cut
Programming a 7-axis job starts with a clean solid model and a machine model that matches the real pivot distances. If the machine model is off, every toolpath built on it inherits the error. Measure the pivots once and store them in the post.
The next step is tool axis control. For a deep cavity, the programmer sets the tool axis to follow the surface normal, with a lead angle of 5–15° and a tilt angle of 10–30°. That keeps the flank of the cutter in contact and spreads wear across the insert.
Collision checking comes next, and it matters more here than on 5-axis. Both rotary pairs move, so the holder can hit the table while the head is still clear. Run the full simulation with the real holder geometry, not a cylinder.
Finally the post-processor splits the motion. It assigns each toolpath segment to either the head chain or the table chain, then writes G-code for both. A good post keeps the two chains from fighting each other and holds rotary speeds under the machine limit.
Step by Step: Programming and Running a 7-Axis Job
- 11. Verify the kinematic modelMeasure the B, C, A and C pivot offsets with a dial indicator and a test bar. Enter them into the post. Accept no more than 0.01 mm deviation between the model and the machine.
- 22. Set the work offset on the table centerProbe the trunnion so the rotary center is your G54 origin. If the offset is off by 0.1 mm, a 90° table tilt turns that into a 0.1 mm positional error on the part.
- 33. Choose the tool axis strategyUse surface normal plus a 10° lead and 15° tilt for contoured surfaces. Switch to fixed 3+2 orientation for flat faces and bores, where simultaneous motion adds nothing.
- 44. Check collisions with real geometrySimulate with the actual holder and extension. Pay attention to the gap between the holder and the trunnion at tilt angles above 60°.
- 55. Cut a test pass in air or waxRun the full program with the spindle off. Watch the rotary speeds and listen for servo reversal. Fix any axis that oscillates before cutting metal.
- 66. Machine the first part with reduced feedStart at 50% of the programmed feed and 70% of the depth of cut. Raise both only after the first article measures inside ±0.005 mm.
- 77. Inspect and lock the programMeasure the critical features, record the offsets, and lock the program. Any change to the pivots means re-running the whole validation.
7-Axis vs 5-Axis: When the Extra Axes Pay Off
Same tolerance, different reach
| Factor | 7-axis head + table | 5-axis trunnion |
|---|---|---|
| Undercut reach | Full, from both sides | Limited to one side |
| Part size sweet spot | 50–800 mm, mixed sizes | Up to 400 mm on the table |
| Setup count | One | One |
| CAM programming time | 2–3× a 5-axis job | Baseline |
| Rigidity at the cut | Lower: more stacked axes | Higher: shorter chain |
| Best fit | Impellers, blisks, manifolds | Brackets, housings, plates |
| Typical tolerance | ±0.005 mm achievable | ±0.005 mm achievable |
When to Specify 7-Axis Work
Choose a 7-axis machine when a part has deep undercuts, needs one setup, and cannot tolerate a re-fixture. For flat plates, simple housings and short-cycle parts, a 5-axis or 3-axis machine will hold the same tolerance for less money.
Frequently Asked Questions
Does a 7-axis machine hold tighter tolerance than a 5-axis machine?
Not by itself. Tolerance comes from the machine geometry, thermal stability and the quality of the kinematic model. A well-set 5-axis machine and a well-set 7-axis machine both reach ±0.005 mm on aluminum and steel.
What 7-axis buys you is the ability to reach features that would otherwise need a second setup. Two setups usually cost more accuracy than two extra axes.
Can I run 7-axis G-code on a 5-axis machine?
No. The post-processor writes coordinates for a specific kinematic chain. A program built for a head-table machine will not run correctly on a trunnion machine, even if the controller accepts the syntax.
If a job has to move between machines, rebuild the toolpaths from the CAM model and post them again.
What surface finish can a 7-axis machine reach?
On aluminum and stainless we hold Ra 0.8–1.6 μm as a normal machined finish, and Ra 0.2–0.8 μm when a finishing pass is added with a small stepover.
Finish depends more on tool runout and stepover than on the axis count. Keep runout under 0.01 mm and the surface will follow.
How long does programming take compared to 5-axis?
Budget two to three times the CAM hours. Most of the extra time goes into collision checking and into splitting motion between the head and the table.
On simple indexed work, where the extra axes only position the part, programming time is close to a 5-axis job.
Which materials are worth running on a 7-axis machine?
Titanium, Inconel and 17-4PH stainless are the usual candidates, because the part usually has deep pockets and a single setup matters. Aluminum impellers and blisks also fit well.
Soft plastics rarely justify it. The part is usually simple enough for 3-axis or 4-axis work.
Do I need a 7-axis machine for a part with undercuts?
Not always. If the undercut is small and the tool can reach it with a long neck, a 5-axis machine with a lollipop cutter may do the job at lower cost.
Go 7-axis when the undercut runs deep, when the tool needs a rigid short holder, or when a second setup would break the datum.
Send Us the Part and We Will Tell You the Right Machine
Upload a STEP file and we will return a quotation plus a free DFM analysis within 12 hours, with a note on whether the part needs 7-axis work at all.
12-hour quote100% inspectionNDA on request