CNC Tour Coordinate System: How Machine Position Becomes a Cut
Every G-code move is a set of numbers. The CNC tour coordinate system is what turns those numbers into a real position on a real part. This page explains the frames that sit behind the numbers, where offsets live, and which errors show up on the shop floor.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
The three frames inside a CNC tour coordinate system
A CNC machine does not know where the part is. It only knows where its own axes are. The CNC tour coordinate system is the chain of frames that connects the control's internal position to a point on the workpiece. Three frames do the work: machine, work and part. Each one is defined at a different time and for a different reason.
The machine frame is fixed at build time. It comes from the home position of each axis, set by the machine builder or by the encoder zero after a reference return. Nothing on the shop floor should move it. When a machine loses its reference, the machine frame is the first thing to rebuild before any job runs.
The work frame is what the programmer thinks in. It sets the origin where the drawing sets it, often a corner, a bore center or a datum face. On a vertical mill this is usually G54 through G59. The part frame is the same idea applied to one specific workpiece, and on lathes it is often called the program origin.
These three layers stack. A move in the part frame is transformed into the work frame, then into the machine frame, then into axis commands. Get one layer wrong and the error appears at the tool tip, not in the numbers on the screen.
How X, Y and Z map to real machine motion
Nearly every machining center uses a right-handed Cartesian set. X runs along the longest travel, Y across it, and Z along the spindle axis. On a vertical mill, Z is the spindle direction. On a horizontal mill or a lathe, the same letters describe different physical axes, which is why the machine type matters as much as the G-code.
Right-handed means a simple rule: point the thumb of your right hand along +X, the index finger along +Y, and the middle finger gives +Z. This matters for rotary work. A four-axis job that indexes around X behaves differently from one that indexes around Y, and a sign flip sends the cut into the fixture instead of the part.
Direction also depends on whether the tool moves or the table moves. On many mills, a positive X command moves the table left so the tool appears to move right relative to the part. Operators who read position from the table rather than from the tool tip misjudge offsets by the full travel distance.
For most prismatic parts, three linear axes and a clear datum cover the job. Add a fourth or fifth axis only when the feature cannot be reached or when one setup replaces three. More axes mean more frames to keep aligned.
Work offsets and tool offsets: where the numbers live
A work offset stores the distance from the machine origin to the work origin. On a Fanuc-style control, G54 to G59 hold those values, and G10 or the offset screen edits them. The tool length offset is separate: it stores the distance from the spindle gauge line to the tool tip. Two different families of numbers, two different screens.
This split is where many first-run crashes start. The work offset is correct, the tool length is correct, but they are stored in the wrong register. The control then adds a 12 mm face mill length to a 3 mm drill and the rapid move lands in the vise. Check the active offset number on the position screen before the first rapid.
On turning centers, geometry and wear offsets are split the same way. Geometry sets the nominal tool position, wear trims it after measurement. A common mistake is to bury a large error in the wear column instead of correcting geometry, which then drifts across every part in the batch.
Keep one rule: geometry offsets carry setup, wear offsets carry drift. Mixing them leaves no clean record of what changed between the first part and the last.
How Fanuc and other controls set the part frame
Fanuc controls offer several routes to the part frame. You can write tool values into parameters, define the frame with G50, or touch off in MDI and store the result in G54. Each route writes to a different place, so the offset screen may look correct while the active frame is not.
Other control families use G92 to define the current tool position as a coordinate value. That is a shift, not an absolute frame. Run a G92 block twice and the origin moves twice. Use G54-style offsets for repeat work and keep G92 for short manual sequences.
The practical difference shows up after a power cycle. Absolute offsets survive. A frame built from a G92 shift may not, depending on the control and the parameter set. On a production run, an origin that moves after a restart costs a whole first part.
Whichever route you use, prove it. Bring the tool to a known datum, read the position screen, and compare against the drawing. One minute of checking beats a scrapped casting.
Frame errors and what they cost at the tool tip
A frame error does not stay small. It adds directly to every feature cut in that frame. If the work origin is off by 0.05 mm, every hole in the batch is off by 0.05 mm. The machine may hold ±0.005 mm repeatability and still produce a bad part, because repeatability only describes how well it repeats the wrong position.
Thermal drift works the same way. A spindle that grows 0.02 mm over a four-hour run shifts the part frame as the tool length changes. On tight work, warm up the machine, then touch off. On long runs, re-check the datum at intervals and let the wear offset absorb the drift.
Rotary axes add a second source. Any runout or center-height error on a fourth-axis table appears as a position error that grows with the distance from the rotary center. Index the part close to the center when the tolerance is tight.
The engineering meaning is simple: the frame is part of the tolerance budget. It is not a setup detail that sits outside the drawing.
Which frame to trust for which job
Pick the frame by part geometry and batch size, not by habit.
| Situation | Frame to use | Watch out for |
|---|---|---|
| Single prototype, one setup | Work offset G54 from a datum corner | Offset number active on screen |
| Batch of 50+ identical parts | G54 plus a hard stop or fixture pin | Fixture wear between parts |
| Rotary indexing around X | Work frame at rotary center | Runout and center-height error |
| Part flipped for second op | Second work offset, G55 | Datum shift between ops |
| Long run over 4 hours | G54 with periodic datum re-check | Spindle thermal growth |
| Manual prove-out move | G92 shift, then clear it | Shift left active for the next job |
| Five-axis simultaneous cut | Work frame at part center of rotation | Rotary zero drift after restart |
When to fix the frame and when to fix the process
If the error repeats on every part in the batch, correct the work or tool offset. If the error grows part by part, fix the process: warm-up, fixture clamping or tool wear. Do not chase a drifting frame with the wear column.
Common questions on CNC coordinate systems
What is the difference between a work offset and a tool offset?
A work offset locates the part origin relative to the machine origin. A tool offset locates the tool tip relative to the spindle gauge line. They are stored in different registers and are added together during a move.
If one is wrong, the error appears at the tool tip. Check both on the position screen before the first rapid move.
Why does my origin move after a power cycle?
Absolute work offsets stored in G54 to G59 normally survive a restart. A frame defined by a G92 shift may not, because G92 is a temporary shift rather than a stored origin.
For repeat production, store the origin in an absolute offset and re-reference the axes after startup.
Do I need a fourth axis for a part with holes on four sides?
Not always. Three-axis work with two or three flips and a repeatable fixture can hold ±0.005 mm if the datum is clean and the fixture is rigid.
A fourth axis pays off when the flips themselves introduce error, or when the batch is large enough that setup time dominates.
How often should the datum be re-checked on a long run?
For tight work, warm up the spindle first, then touch off. On runs longer than four hours, re-check a known feature at intervals and let the wear offset take up small drift.
Record the readings. A slow trend tells you the cause; a jump tells you something moved.
Does the coordinate system affect surface finish?
Indirectly. A frame error shifts the cut but does not change the tool path shape. Finish is set by feed, speed, tool geometry and rigidity.
However, a frame error combined with a tight tolerance can force a smaller stepover or a second pass, which changes the finish you get.
Can a frame error be corrected in the CAM file instead of the control?
It can, but it hides the problem. If the machine or fixture is out of position, the next job on the same machine inherits the same error.
Correct the frame at the control and keep the CAM file as the drawing says.
Send us the drawing and we will check the frames
Upload a STEP file and we return a quotation with a free DFM analysis within 12 hours. Parts ship in 3–5 days, with 100% inspection before shipment.
12-hour quote100% inspection±0.005 mm toleranceNo minimum order quantity