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

Get Instant Quote

Machine setup guide

How to Adjust Home Position in CNC Machine

A reference return that lands a few tenths off will shift every tool path you run afterward. This guide covers the safe order of operations, the parameters that actually move the zero point, and the checks that prove the adjustment held. Written for operators, maintenance techs, and engineers who sign off on first-article parts.

3-axis to 5-axisGrid shift and reference offset±0.005 mm shop tolerance
how to adjust home position in cnc machine
Quick answer

Key takeaways

Clean before you measureChips and coolant film on the dogleg or sensor face cause most false reference alarms.
Separate the two zerosMachine zero is set by the reference dogleg or encoder mark. Work zero is set by your offset page.
Grid shift moves everythingChanging the grid shift value shifts all work offsets on that axis, so re-verify every fixture.
Rotary axes need a master gaugeA and B zero should be set against a known surface, not against a chuck jaw you guessed at.
Log the numberWrite the grid shift and reference offset values into the machine log. Undocumented changes come back as scrap.
Why it drifts

Why the home position drifts and what it controls

The home position is the machine's fixed reference point. Every linear axis (X, Y, Z) and every rotary axis (A, B, C) is measured from it. When the control powers up, it does not know where the table sits. It has to find that point physically, usually by driving to a dogleg, a proximity switch, or an encoder mark, and then it declares the axis referenced.

If that return lands 0.05 mm away from last week, the control does not complain. It just writes a new zero and carries on. Your tool paths still run, your offsets still read the same numbers, and the part comes out shifted. This is why a drifting home position is so easy to miss on a short run and so expensive on a batch.

Three things move the point. First, mechanical wear: a dogleg that gets bumped, a switch bracket that creeps, a coupling that slips. Second, thermal growth: a spindle and ballscrew that warm up over four hours will shift the frame by a few hundredths. Third, parameter edits: someone changes the grid shift or reference offset to chase a dimension and never records it.

Adjust with a method, not by feel. The order below is the one we use on our own 127 machines, and it is the reason we can hold ±0.005 mm across a 10,000-part run.

  • 1
    MechanicalDogleg, switch bracket, coupling, or belt slip
  • 2
    ThermalBallscrew and spindle growth after hours of running
  • 3
    ParameterGrid shift or reference offset edited without a log entry
Before you touch anything

Preparation and safety before you adjust

Do not start with the parameter screen. Start with the machine in a safe state. Press emergency stop or lock out the control, then remove every part, fixture, vise, and tool from the table. A face mill parked in the spindle will collide with a clamp the moment the axis rapids toward the dogleg. This is the single most common way people damage a machine during a reference adjustment.

Next, clean the reference hardware. Wipe the dogleg, the switch face, and the encoder area with a lint-free cloth. Compressed air pushes chips deeper, so use a vacuum or a brush first. Coolant residue on a proximity switch face will make it trigger early and give you a return position that looks fine on the screen and fails on the part.

Then check the mechanical basics before you change any number. Grab the ballscrew end and feel for axial play. Look at the coupling for a slipped key or a loose clamp screw. Push the switch bracket by hand; it should not flex. If the hardware is loose, no parameter value will hold, and you will be back at the same screen next month.

Finally, record the current state. Photograph the parameter pages, write down the grid shift and reference offset for every axis, and note the ambient temperature. Without a baseline you cannot tell whether your change helped or just moved the error somewhere else.

The two zeros

Machine zero versus work zero

Machine zero is the physical reference the control finds on power-up. It belongs to the machine and it is the same for every job. Work zero is where you decide the part sits, and it lives in the work offset table (G54 to G59, or G54.1 P1 and up). Operators who confuse the two spend hours editing the wrong screen.

If every job on the machine is shifted the same direction by the same amount, the problem is machine zero. If one job is shifted and the next one is fine, the problem is work zero or the fixture. Run that test before you open any parameter page. It saves a lot of unnecessary edits.

A useful check: measure a known feature on a scrap part, then re-measure the same feature after a reference return without touching the offsets. If the number moved, the machine zero moved too. If it repeats within 0.01 mm, the reference system is stable and you should be looking at the fixture instead.

Only adjust machine zero when the evidence points there. Chasing a one-off dimension by editing the grid shift is how a shop ends up with a machine that no longer matches its own drawings.

Rotary and thermal

Rotary axes and thermal behavior

A and B axes do not have a dogleg you can bump. They reference from an encoder mark, a proximity switch on the table, or a mechanical stop inside the housing. That means their zero is usually stable, and when it moves, the cause is normally a slipped coupling or a worn brake, not a parameter.

To verify a rotary zero, mount a dial indicator on the table and sweep a known flat or a certified master block. On a Ø400 mm rotary table, a 0.01 mm runout across the face tells you the table is tilted, not that the zero is wrong. Check the tilt first, then check the index position.

Thermal drift is the part most people underestimate. A machine that has been running aluminum for three hours is not the same machine it was at 7 a.m. Ballscrews grow, the bed warms, and the reference return can move by 0.02 to 0.05 mm over a shift. On tight work, do the reference return after a warm-up cycle rather than on a cold machine.

If a machine needs a reference adjustment every week, stop adjusting and start investigating. Weekly drift points to a mechanical fault. A one-time adjustment after a crash or a move is normal. Anything in between deserves a vibration and backlash check.

Procedure

Step-by-step: how to adjust home position in cnc machine

Applies to 3-axis mills first, with notes for 4-axis and 5-axis

  • 1
    1. Lock out and clear the envelopeE-stop or lock out the control. Remove parts, vises, fixtures, and tools. Confirm no clamp sits inside the rapid path to the reference switch. Post a tag on the control so nobody powers up mid-procedure.
  • 2
    2. Clean and inspect the reference hardwareVacuum chips, then wipe the dogleg or switch face. Check the switch bracket for flex and the coupling for axial play. A reference return cannot repeat if the trigger point moves.
  • 3
    3. Record baseline parametersWrite down grid shift and reference offset for X, Y, Z and any rotary axis. Note ambient temperature and the machine hour meter. Photograph the screens. This is your rollback path.
  • 4
    4. Run a reference return and measure the errorHome the machine, then indicate a known surface, such as a precision vise jaw or a gauge block on the table. Compare the measured value against the value from the last known-good setup. The difference is your real error, not the screen value.
  • 5
    5. Adjust the reference offset or grid shiftEnter the correction on the parameter page. Typical corrections are small: 0.01 to 0.05 mm per axis. Change one axis at a time. Do not stack a grid shift change on top of a work offset change in the same pass.
  • 6
    6. Re-reference and verify with a test cutPower cycle, home the machine, and confirm the indicated value repeats within 0.01 mm. Then cut a test feature and measure it. A screen that repeats is not proof. A part that measures correctly is.
  • 7
    7. Handle 4-axis and 5-axis separatelyOn a 4-axis mill, verify the A zero with a dial indicator on a master block before touching the linear axes. On a simultaneous 5-axis center, re-check the rotary pivot distance and the tool center point after any reference change, or the first part will be scrap.
  • 8
    8. Log the new values and re-verify offsetsRecord the final grid shift and reference offset, the date, and who made the change. Re-check G54 and every other work offset, because a grid shift change moves all of them together.
Scope

Which axes need adjustment and how to verify

Axis typeTypical reference sourceVerification method
3-axis linear (X, Y, Z)Dogleg or proximity switchIndicator on a gauge block, repeat within 0.01 mm
4-axis rotary (A)Encoder mark or stop inside housingDial indicator sweep on a master block
5-axis trunnion (A, B)Encoder mark plus pivot offsetMaster block sweep, then TCP check
Mill-turn (C)Encoder mark on spindleTest cut and roundness measurement
Any axis after a crashRe-inspect hardware firstBacklash and vibration check before editing
FAQs

Frequently asked questions

How often should a CNC home position be checked?

Check the reference repeatability at every power-up by returning home and comparing the indicated value against the log. A full verification with an indicator makes sense after a crash, after the machine is moved, after a spindle or ballscrew repair, and at each scheduled preventive maintenance interval.

If the log shows the value moving more than 0.02 mm between checks, treat it as a mechanical fault and inspect the switch bracket and coupling before editing any parameter.

Can I fix a size error by changing the grid shift?

Only if the error is identical on every job and every fixture. A grid shift change moves all work offsets on that axis, so a single-job error is almost always a work offset or fixture problem.

Measure two different jobs on the same machine. Same direction and same amount on both points to machine zero. Different amounts point to the setup.

What causes a reference return alarm?

The axis traveled past the deceleration dogleg without seeing the switch, or the switch triggered early. Common causes are a bent dogleg, a switch face covered in chips or coolant, a loose bracket, and a feed rate that is too high during the return.

Reduce the reference return feed rate, clean the switch face, and check the bracket. If the alarm repeats after that, test the switch with a meter before replacing anything.

Does thermal growth justify a home position adjustment?

No. Thermal growth is a temporary condition, and editing the reference to compensate for it means the machine is wrong again once it cools. Let the machine warm up with a spindle run-in cycle, then reference and set your offsets.

On tight-tolerance work, keep the shop temperature stable and do the reference return after warm-up, not first thing in the morning.

Do I need to re-check tool offsets after adjusting home position?

Yes, if the grid shift changed. Tool length offsets are measured relative to the machine reference, so moving the reference moves every tool. Re-measure at least the tools in the current setup and confirm the first part with a test cut.

Work offsets also need re-verification, because a grid shift change shifts G54 through G59 by the same amount.

When should the machine builder be called instead of adjusting it myself?

Call the builder when the reference error exceeds roughly 0.1 mm, when the axis shows measurable backlash, when the rotary zero drifts repeatedly, or after a collision that moved the column or saddle. Those are mechanical faults, and a parameter edit will hide them rather than fix them.

Document everything you measured before the call. A record of the drift pattern shortens the diagnosis considerably.

Need parts held to ±0.005 mm?

Send your drawings and we will return a quotation with a free DFM analysis within 12 hours. Our 127 CNC machines run 3-axis to simultaneous 5-axis work, with 100% inspection before shipment and reports on request.

12-hour quote100% inspectionNo minimum order quantity

Follow our shop

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