GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC fundamentals

What Is Machine Zero in CNC?

Machine zero in CNC is the fixed reference point the builder sets for every axis. It never moves with the job. This page explains how the control finds it, how work offsets relate to it, and when it decides whether your parts hit print.

±0.005 mm tolerance16 five-axis centersISO 9001:201512-hour quote
what is machine zero in cnc
Quick answers

Key takeaways

Machine zero is fixedThe builder sets it once per machine. It does not shift between jobs.
Work zero is per jobG54-G59 store the offset from machine zero to your part origin.
Homing rebuilds the linkAfter power-up, axes return to the home switch and set machine zero again.
Errors show up as shiftsA wrong work offset moves the whole toolpath, not one feature.
Definition

Machine zero in CNC is the builder's fixed home point

Every CNC machine has one point the builder defines and the operator cannot change. That point is machine zero in CNC, also called machine home or machine origin. It sits at the end of each axis travel, where the home switch or absolute encoder reference lives. Coordinates on the machine display are measured from this point, not from your workpiece.

On a typical vertical mill, machine zero sits at the top-right-back corner of the travel envelope. X and Y are at their positive limits. Z is fully retracted. The control calls this position X0 Y0 Z0 in machine coordinates, and every G-code line you run is translated back to it.

This point is not a suggestion. It is a physical datum. Limit switches, hard stops, or encoder marks define it. If the machine loses position, nothing downstream is trustworthy until the axes are homed again.

  • 1
    Machine zeroFixed by the builder. Same point every day.
  • 2
    Work zeroSet by the operator for one part or one operation.
  • 3
    Reference returnThe homing move that re-establishes machine zero after power-up.
Hierarchy

Machine zero, work zero, and the offset that links them

Machine zero is the root of the coordinate tree. Work zero is a leaf. The offset between them is a stored vector: how far the part origin sits from machine home along X, Y, and Z. On a Fanuc-style control these are the G54 through G59 work coordinate systems. On Siemens they are frame offsets. The idea is the same.

When you touch off a part, you are measuring that vector. Touch the left face of the vise jaw with an edge finder and the control stores the X distance from machine zero. Touch the top of the stock and it stores the Z distance. The program then runs in work coordinates, and the control adds the offset on every move.

This layering matters for debugging. If every feature on the part is shifted by the same amount, the work offset is wrong. If one feature is off while the rest are good, the problem is in the program, the tool, or the fixture, not the zero point.

Homing

What happens when the machine homes

Homing is the routine that re-establishes machine zero after the control loses position. The axis moves toward the home switch at a controlled feed, hits it, backs off, then approaches again at a slower rate to find the exact trigger point. That second, slower pass is what gives repeatability.

On machines with absolute encoders, homing is often not needed on every power-up. The encoder keeps its position through a battery or a mechanical multiturn memory. Incremental machines lose position the moment power drops, so the operator runs a reference return before any job. Skip it and the first rapid move can drive a tool into the vise.

Once homing finishes, machine zero is set and the control trusts every coordinate again. Work offsets stored in G54-G59 remain in memory, so the part origin is still where you left it, provided the fixture did not move.

When it matters

When machine zero decides whether parts pass inspection

For most three-axis milling, machine zero sits in the background. The operator touches off, runs the program, and the part comes out on size. The fixed datum only matters when travel limits are tight or when a fixture is reused across shifts.

On five-axis work the story changes. Rotary axes have their own zero points, and the kinematic model of the machine is built on them. If the C-axis zero drifts by 0.05°, every angled face on the part tilts with it. That is why we re-check rotary zero after any crash or spindle change on the 16 simultaneous five-axis centers.

Large parts expose the same issue. On a 4,000 mm travel machine, thermal growth over a long cycle can move the spindle relative to the table. The control still thinks machine zero is where it was at homing. In-process probing catches the drift before the finish pass.

  • 1
    Tight travelBoring a deep pocket near the end of X travel leaves no room for a wrong offset.
  • 2
    Multi-setup partsSecond-op fixtures must repeat relative to machine zero, not just to the first vise.
  • 3
    Five-axis featuresAngled holes and contoured surfaces depend on rotary zero being accurate.
Errors

How machine zero errors show up on the shop floor

The most common symptom is a uniform shift. Every dimension on the part is off by the same 0.3 mm in X. That points straight at the work offset. Re-touch the part origin and rerun the finish pass.

A second symptom is a taper or a stepped surface. If the Z zero is set from the top of rough stock instead of the finished face, the first pass may cut air and the last pass may leave a step. This is a setup error, not a machine error.

A third symptom is a crash on the first rapid move. If the operator forgot to home an incremental machine, the control has no idea where the table is. The rapid to the clearance plane runs from a wrong origin. This is the failure mode that most often bends a tool holder.

Practice

How we handle zero points in production

We keep machine zero and work zero separate in the setup sheet. Every job lists the fixture, the work offset number, and the touch-off method. On first-article runs we probe the stock and record the offset so the next shift can repeat it.

For multi-axis parts we verify rotary zero against a known artifact before the first cut. If the artifact reads within ±0.005 mm, the kinematic model is good. If not, we recalibrate before touching the workpiece.

Inspection reports on request include the datum scheme used for the part. That lets your quality team compare our measurements against your drawing without guessing which face was A, B, or C.

  • 1
    Setup sheetsEvery job carries its fixture, offset, and touch-off method.
  • 2
    Rotary verificationArtifact check before five-axis cuts, not after.
  • 3
    Datum on reportsInspection data states which faces define the part origin.
Compare

How the reference points differ

Use this table to separate the fixed machine datum from the per-job part datum.

Reference pointSet byChanges with job?Typical use
Machine zeroBuilder / homing routineNoAbsolute position, travel limits, tool change
Work zero (G54)Operator touch-offYes, every setupPart origin for one operation
Fixture offsetOperator or probeYes, per fixtureLocate a tombstone or pallet position
Tool length offsetTool presetter or probeYes, per toolCompensate for tool gauge length
Rotary zero (A/B/C)Builder or calibrationRarelyAngular datum for 4- and 5-axis work

The takeaway

If your parts are shifted uniformly, fix the work offset. If one feature is off while the rest are good, look at the program or the tool. Machine zero itself rarely moves, but it is the only datum that makes every other number mean something.

FAQs

Frequently asked questions

Is machine zero the same as work zero?

No. Machine zero is fixed by the builder and never changes with the job. Work zero is the origin you set for one part or one operation, usually stored in G54 through G59.

The control links them with an offset vector. Every program move is translated from work coordinates back to machine coordinates using that vector.

Do I have to home the machine every day?

On an incremental machine, yes. Power loss clears the position, so a reference return is required before any job.

Absolute encoders keep position through a battery or multiturn memory, so daily homing is often unnecessary. Follow the builder's schedule instead.

Can machine zero drift over time?

The stored point does not drift, but the physical relationship between the spindle and the table can change with thermal growth. On long cycles this shows up as a slow shift in Z.

Probing the part before the finish pass is the practical way to catch it.

What causes a uniform shift on every dimension?

A wrong work offset is the usual cause. The toolpath is correct, but the origin it runs from is off by the same amount in one or more axes.

Re-touch the part origin and rerun. If the shift persists, check the fixture for movement.

How does a 5-axis machine handle rotary zero?

Each rotary axis has its own zero, and the machine's kinematic model is built on those points. A small error in C-axis zero tilts every angled feature on the part.

We verify rotary zero against a known artifact before the first cut on multi-axis work.

Does machine zero affect part tolerances?

It sets the frame that tolerances are measured in. If the frame is wrong, every dimension inherits the error, even if the machine repeats perfectly.

Keeping the offset accurate is what lets a machine hold ±0.005 mm on the features that need it.

Send your drawing, get a quote in 12 hours

Upload your CAD file and we will return a quote with a free DFM analysis. No minimum order quantity, from one prototype to 10,000+ parts.

12-hour quote100% inspection before shipmentNDA available on request±0.005 mm tolerance

Follow

More from GreatLight

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC