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

Get Instant Quote

CNC coordinate basics

Where Is Machine Zero on CNC?

Machine zero sits at the machine builder's fixed reference, usually at the positive end of each axis travel, not on your part. This page explains the three zero points an operator deals with every day, how the control finds them, and how to tell which one is causing a setup problem.

Machine home vs work zeroReference returnFixture offsets±0.005 mm capability
where is machine zero on cnc
Definitions

What machine zero on CNC actually means

Machine zero on CNC is the fixed origin the builder sets when the machine is assembled. It never moves. On most vertical machining centers it sits at the positive end of X, Y and Z travel, so every position inside the work envelope has a negative value in machine coordinates. On a lathe it usually sits at the turret face or the chuck reference plane. The control stores this point as a hard limit and measures everything else from it.

Work zero, sometimes called part zero, is where you want the program origin to sit on the actual part. That might be a corner of the stock, the center of a bore, or the top face. It is stored as a work offset, G54 through G59 on a Fanuc-style control, and it is only valid for the setup in front of you. Change the fixture and the offset changes with it.

Reference zero is the third point, and it is the one that confuses people most. It is the position the machine returns to during a reference return, which on many controls sits a few millimeters off the hard limit switch. The machine uses it to re-establish its own position after power-up. It is not the same as work zero, and on some machines it is not the same as machine zero either.

A simple way to keep them apart: machine zero belongs to the machine, work zero belongs to the part, reference zero belongs to the control's position memory. Mixing them up is the root of most "my part is off by 50 mm" calls we get from first-time customers.

Location

Where machine zero is located on common machine types

On a standard vertical machining center, machine zero sits at the top-right-back corner of the travel envelope. X and Y are at the positive extreme, Z is fully retracted at the top. That layout means a tool moving toward the table always reads negative Z, which matches how operators think about depth of cut. You will see this on most 3-axis and 4-axis mills.

On a horizontal machining center with a rotary table, machine zero is normally tied to the pallet center or the B-axis index position rather than a corner. The rotary table center becomes the natural reference because the part rotates around it. If you program from a corner instead, the offset has to be recalculated every time the table indexes.

On a lathe, machine zero is usually at the chuck face or the turret reference point along Z, with X zero on the spindle centerline. X zero on the centerline is the one that matters most, because it sets the diameter the tool thinks it is cutting. A few tenths of error there shows up directly in the part diameter.

On a 5-axis machine, the situation is more layered. There is the linear machine zero, and then there is the rotary pivot point, which the builder measures and stores as a parameter. Where is machine zero on CNC in that case? The linear zero is still at the travel corner, but the control also needs the pivot point to calculate the tool tip position after a rotary move.

Why it matters

Why the location of machine zero controls your accuracy

Machine zero is the anchor for soft limits. The control compares every commanded position against the travel range stored from machine zero and stops the axis before it crashes. If the zero drifts or a parameter is edited, the soft limits shift with it and the machine may run into a hard stop that the control thinks is still inside the envelope.

It also anchors backlash and pitch error compensation. Those tables are written in machine coordinates, so compensation is applied relative to machine zero. Move the reference and the compensation lands in the wrong place along the travel. On a large machine with a 4,000 mm envelope, a compensation table applied at the wrong origin can add tens of microns of error at the far end of the stroke.

Tool length and work offsets are layered on top of machine zero, not the other way around. The control adds tool length compensation, work offset, and any cutter compensation to the machine coordinate to get the final position. That is why a wrong work offset moves the part, while a wrong machine zero moves everything, including the soft limits.

For a shop holding ±0.005 mm on production parts, the practical point is this: machine zero should be stable and documented, and nobody should be editing it between jobs. Work zero is where you make adjustments. Keeping those two roles separate is what makes a repeatable setup possible.

Process

How the control finds and sets machine zero

Most machines find machine zero through a reference return, often called homing. The axis moves toward the limit switch at a rapid rate, slows when the switch trips, then creeps onto the switch at a low feed to find the exact encoder marker pulse. That slow approach is what gives the repeatability. If the axis is already sitting on the switch at power-up, some controls require you to jog off it first.

The sequence matters. On many controls Z retracts first to clear the part, then X and Y move, then the rotary axes index. If the machine is inside a fixture when you press reference return, you can crash before the control has any idea where it is. Clear the envelope first, then home.

Once the machine knows its own position, you set work zero. Touch off the part with an edge finder or a probe, or dial in a bore with a coaxial indicator, then write the value into G54. A 3D probe does the same job faster and removes operator feel from the result. On a bore, a dial test indicator with 0.01 mm graduations is usually good enough; for tighter work, use a probe and verify with a test cut.

After the offset is set, verify before cutting metal. Command the tool to the work zero position in the air and check it against a known feature. Then take a light test cut and measure it. If the measured result is off by a constant amount across several features, the work offset is wrong. If the error grows across the part, the problem is more likely squareness, tool deflection, or thermal drift.

Tolerances

How machine zero shows up in tolerance and finish

A stable machine zero supports repeatability, not accuracy by itself. Accuracy still depends on the machine geometry, the spindle, and the tool. But if machine zero drifts, repeatability goes first, and that is what ruins a production run. You can usually catch a drift because every part in the batch is off in the same direction by a similar amount.

On finishes, the effect is indirect. A wrong machine zero does not change surface roughness directly, but it changes where the tool enters and exits, and it may push a finishing pass outside the intended depth. That can leave witness marks or a step where the roughing and finishing passes meet. Finishes in the Ra 0.8–1.6 μm range are achievable on a well-maintained machine; finish problems usually trace back to tool condition and stepover before they trace back to zero.

Thermal growth is the quiet one. A machine that has been running for hours grows along the spindle and ballscrew, so its true machine zero reference shifts slightly. This is why warm-up cycles exist and why some shops re-home after a long run or after a lunch break. On tight work, a 20-minute warm-up before the first cut is cheap insurance.

If you are buying parts rather than making them, this is the part that matters to you: the supplier's setup discipline shows up as batch-to-batch consistency. Ask how they verify the first part, and whether they re-home between jobs. A vague answer usually means the offsets are set by feel.

Reference

Machine zero vs work zero vs reference zero

Use this table to decide which zero is causing a setup problem.

Zero pointWho sets itTypical locationChanges when
Machine zeroMachine builderPositive end of X, Y, Z travelNever, under normal use
Work zeroOperator or programmerPart corner, bore center, or top faceEvery new setup
Reference zeroControl, during homingNear the limit switch, a few mm offEach power-up or reference return
Rotary pivotMachine builderTable center or B-axis indexOnly if parameters are edited
Tool length offsetOperator, per toolSpindle gauge line to tool tipEvery tool change

Which zero should you adjust?

Adjust work zero, never machine zero. If a part shifts, it is an offset problem. If every job shifts the same way, the machine needs a reference return or a service check. Leave machine zero to the builder's parameters.

FAQs

Machine zero questions we hear from engineers

Is machine zero the same as home position?

On most machines they are close but not identical. Home, or reference position, is where the axis stops after a reference return. Machine zero is the origin of the machine coordinate system stored in the parameters. Some builders place home a few millimeters off machine zero so the axis does not sit on the switch.

For day-to-day work the difference rarely matters. What matters is that the control knows where it is after homing, and your work offsets are measured from that known position.

Can machine zero be changed?

It can be changed by editing parameters, but that is a service-level action, not a setup action. Moving it shifts the soft limits, the pitch error compensation, and any stored reference positions. A wrong value can let the machine command a move past the physical stop.

If you suspect machine zero has moved, do not compensate with a work offset to hide it. Re-home the machine, check the reference return repeatability, and call service if the numbers do not come back to the documented value.

Why does my part come out shifted after a power cycle?

The most common cause is that the machine was not homed before the offset was applied, or the work offset was entered while the machine was in an unknown state. The control then adds the offset to a wrong machine position.

Re-home the machine, re-check the work offset against a known feature, and take a test cut. If the shift repeats after every power cycle, check whether the battery backing the absolute encoder is failing.

Do I need to reset work zero for every part?

Only when the setup changes. If you are running a batch on the same fixture with the same stock, the work offset stays valid. It is worth re-checking after a long run, after a tool change that involved heavy interrupted cutting, or if the fixture was bumped.

For repeat jobs, save the offsets with the program. Documenting which G54 value belongs to which fixture removes most of the setup guesswork.

How tight can I hold a position on a machine with a good zero reference?

Positioning accuracy and part accuracy are different numbers. A machine can position to a few microns and still produce a part that is 20 μm off because of tool deflection, thermal growth, or fixture movement. On our 5-axis centers we hold ±0.005 mm on parts where the geometry and material allow it.

The zero reference is the floor, not the ceiling. Once it is stable, the remaining error comes from the cutting process.

Does a probe replace manual touch-off?

For most production work, yes. A probe removes operator feel and records the offset directly into the control, which cuts setup time and reduces the chance of a transcription error. On a bore or an odd-shaped datum, a probe with the right stylus is usually faster and more repeatable than a dial indicator.

Manual touch-off still has a place on one-off jobs, rough stock, or features a probe cannot reach. The key is to verify either method with a test cut before running the whole batch.

Send us your drawing and get a setup plan

We review your tolerances, datums, and critical features, then quote with a DFM note within 12 hours.

12-hour quote100% inspectionNo minimum order quantity

Follow GreatLight

More machining notes

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