How to Adjust Home in CNC Machine
A practical setup procedure for machinists and maintenance techs. We cover when a home position actually needs adjusting, the order of operations on Fanuc, Siemens and Haas controls, and how to prove the new reference is correct before you cut metal.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
Key takeaways
What the home position actually is
The home position, often called machine zero or the reference point, is a fixed location the control returns each axis to when you run a zero return. It is not the same as your work offset G54. Home is tied to a physical marker on the machine: a decel dog, a proximity switch, or an encoder Z pulse. The control finds that marker, then loads a stored offset and declares the axis at a known coordinate.
That distinction matters when you adjust home in cnc machine setups. If the marker moved, no parameter edit will fix the drift. The control still finds the marker correctly, but the marker itself sits somewhere new. The machine will look consistent on the screen and still cut 0.2 mm off, because the relationship between the marker and the table has changed.
On most Fanuc and Haas mills, the sequence is a rapid approach, a slow feed onto the dog, then a short move to the first encoder marker. Siemens 840D controls work the same way but expose the offset as a reference point value in the axis-specific machine data. The names change, the logic does not.
A machine can hold home within a few microns for years if the dogs stay tight and the batteries in the absolute encoder keep up. It drifts when something mechanical slips, or when someone edits an offset to chase a part dimension instead of fixing the real cause.
- 1Machine zeroThe fixed factory reference your control returns to on power-up.
- 2Work offsetG54 to G59, set by the operator and unrelated to home.
- 3Grid shiftA stored pulse count that redefines where home sits after the marker is found.
Symptoms that mean the reference has moved
The clearest sign is consistency. If every part on the machine is off by the same amount in the same direction, the work offset or the home reference moved. If parts are off by different amounts, the problem is thermal or mechanical, not home.
Check the tool change position next. If the spindle no longer lines up with the changer arm, or the Z axis overshoots the top of its travel by a small but repeatable amount, the Z reference has shifted. This is common after a crash where the dog bracket bent instead of breaking.
Soft overtravel alarms on one axis after a power cycle point the same way. The control thinks the axis is further along than the hard limit allows. A few hundred pulses of grid shift error will trigger that alarm before anything else fails.
One more test: zero return each axis, then measure a known feature on a setup block with an indicator. Compare the reading to the last recorded value. A repeatable difference above 0.02 mm is worth investigating. Anything under that is usually thermal growth.
- 1All parts shift the same wayReference or work offset moved, not the tooling.
- 2Soft overtravel on power-upGrid shift or decel dog is out of position.
- 3Tool changer misalignmentOften a bent dog bracket after a crash.
Preparation and safety before you touch anything
Lock out the machine. On a mill, drop the Z axis to a safe height, remove the tool from the spindle, and clear the table. On a lathe, move the turret to a clear position and confirm no chuck jaws are protruding. Reference returns drive axes at rapid feed, and anything left in the envelope will be hit.
Back up the parameters before editing. On Fanuc, save the CNC parameter file to a CF card or USB. On Haas, use the backup function to write settings to a USB stick. On Siemens, archive the machine data. If a value is typed wrong, the archive is the only fast way back.
Write down the current grid shift, reference point offset and decel dog position before changing anything. Print the servo parameter screen if it helps. You want a known good baseline to compare against when the machine behaves unexpectedly after the adjustment.
Have an indicator with a magnetic base, a feeler gauge set, and the machine manual for your exact control version. Parameter numbers differ between Fanuc 0i, 16i and 31i, and between Haas mill and lathe controls. The manual is not optional.
- 1Lock out and clear the envelopeNo tools, no fixtures, no hands inside the travel.
- 2Back up parametersSave to USB or CF card before any edit.
- 3Record the baselineGrid shift, reference offset, dog position.
How to tell whether the dog or the parameter moved
Look at the decel dog first. It is a small metal bracket with a set screw. Paint a witness mark across the bracket and the rail before you loosen anything. If the paint line is cracked or the set screw shows a bright ring, the dog slipped and that is your cause.
If the dog is tight, check the coupling between the motor and the ballscrew. A coupler that slipped under load will shift home by a fixed amount and stay there. Rotate the screw by hand with the brake released and watch for any lost motion between the motor shaft and the screw.
Only when the mechanical side checks out do you move to the parameter. On Fanuc, the grid shift is stored in parameter 1851 for each axis. On Haas, the reference offset lives in the parameters page under the axis tab. On Siemens, look for the reference point offset in axis machine data.
A useful rule: a mechanical slip is usually larger than 0.05 mm and comes with a visible mark. A parameter problem is smaller, often under 0.05 mm, and usually follows a battery change or a control reset.
- 1Mechanical firstDog, bracket, coupling, belt tension.
- 2Parameters secondGrid shift and reference offset values.
- 3Battery eventsAbsolute encoder loss resets the reference entirely.
Common errors during adjustment and how to clear them
Overtravel alarms right after a parameter edit usually mean the sign is wrong. A grid shift entered as a positive number when it should be negative pushes the axis past its soft limit on the first return. Reverse the sign, power cycle, and try again.
If the axis hunts or stalls during the slow approach to the dog, the decel limit switch is faulty or the dog gap is too wide. Check the switch with a multimeter while manually tripping it. Replace it if the contact is intermittent. A gap wider than 5 mm often causes a missed decel.
A reference return that completes but reports the wrong absolute value points to an encoder marker problem. On incremental systems, the Z pulse may be dirty or the encoder coupling loose. Clean the encoder or check the coupling before touching parameters.
On absolute encoder machines, a battery alarm means the reference is gone. The control will ask for a manual reference setup, which is a different procedure from a grid shift edit. Follow the manufacturer routine and re-verify with an indicator before production.
- 1Sign errorOvertravel on the first return after an edit.
- 2Decel switch faultHunting or stalling on the slow approach.
- 3Encoder marker issueReturn completes, absolute value is wrong.
Keeping home accurate over months of production
Check the reference position at the start of every shift on high-use machines. A quick indicator sweep on a fixed setup block takes two minutes and catches drift before it reaches a part. Log the reading so trends are visible.
Clean and inspect the decel dogs and limit switches during planned maintenance. Swarf packed around a dog bracket will shift the trigger point. A brush and an air blow-down is usually enough.
Watch for thermal drift on long runs. A machine that references cold and runs for six hours will grow. If the home check is done in the morning and parts are measured in the afternoon, some of the difference is heat, not reference error.
Replace absolute encoder batteries on schedule, not when the alarm appears. A battery failure costs a reference setup and a full re-verification. Scheduled replacement costs a battery.
Keep the machine log current. Grid shift values, dog positions, and verification readings are the fastest way to tell a real fault from normal wear.
- 1Shift-start checkTwo-minute indicator sweep on a fixed block.
- 2Clean the dogsSwarf on the bracket shifts the trigger point.
- 3Battery scheduleReplace absolute encoder batteries before failure.
Step by step: how to adjust home in cnc machine
Follow the order. Skipping the verification step is the most common cause of a repeat crash.
- 1Zero return every axis and record the screen valuesRun a full reference return on X, Y, Z and any rotary axis. Write down the absolute position the control reports at home. This is your before value.
- 2Inspect and reset the decel dogLoosen the dog set screw, slide the bracket to its witness mark, and tighten to the torque in the manual. Typical range is 8–12 N·m for an M6 screw. Re-run zero return and check the before value again.
- 3Measure the actual offset with an indicatorMount an indicator on the table and sweep a known reference surface, such as a vise jaw or a setup block. Note the difference from the last recorded reading. This is the amount you need to correct.
- 4Enter the grid shift or reference offsetOn Fanuc, edit parameter 1851 for the axis. On Haas, edit the reference offset in the parameters page. On Siemens, edit the reference point offset in axis machine data. Change one axis at a time.
- 5Power cycle and re-referenceTurn the control off, wait 30 seconds, power up, and run zero return again. Confirm the screen shows the intended home value and the axis stops cleanly without overtravel alarms.
- 6Verify with an indicator sweepRepeat the indicator check from step 3. The reading should now match the original baseline within 0.01 mm on a good machine. If it does not, recheck the dog before editing the parameter again.
- 7Cut a test blankRun a simple facing or pocket pass on a scrap blank and measure the result. This catches any error that the indicator check missed, including thermal effects from a cold machine.
- 8Log the new valuesRecord the grid shift, reference offset, dog position and date in the machine log. The next shift needs this to tell normal drift from a real fault.
Where the adjustment lives on common controls
Parameter names vary by control version. Confirm against your machine manual before editing.
| Control | Adjustment location | Typical value range | Watch out for |
|---|---|---|---|
| Fanuc 0i / 16i / 31i | Parameter 1851 (grid shift) | –2000 to +2000 pulses | Changing 1815 instead and losing the reference |
| Haas mill / lathe | Parameters page, axis tab | Small offset in mm or inches | Editing with the wrong axis selected |
| Siemens 840D | Axis machine data, reference point offset | Depends on encoder resolution | Forgetting to save the archive |
| Mitsubishi M70 / M80 | Grid shift parameter per axis | Pulse count, control-specific | Skipping the power cycle test |
| Absolute encoder machines | Reference setup routine | Set once, then battery-backed | Battery failure resets everything |
When to fix it in-house and when to send the work out
Adjust the decel dog and grid shift yourself if you have the manual and the indicator. If the machine will not complete a reference return, or the absolute encoder battery has failed, bring in a technician. Either way, verify with an indicator and a test cut before releasing the machine.
Frequently asked questions
Can I adjust home without a service technician?
Yes, if the fault is a slipped decel dog or a small grid shift correction. Both are documented in the machine manual and can be done by a trained operator.
Call a technician if the encoder marker is faulty, the absolute encoder battery has failed, or the axis does not complete a reference return. Those need diagnostic tools and often a parts replacement.
How often should home position be checked?
On high-use machines, check at the start of every shift. On machines that run occasionally, check before each job.
Any time the machine has been crashed, moved, or had a control battery replaced, run a full verification before cutting a production part.
What is the difference between home and a work offset?
Home is the fixed machine reference tied to a physical marker. Work offsets such as G54 are set by the operator and describe where the part sits relative to home.
Adjusting home changes the reference for every job. Adjusting a work offset changes only the current setup.
Why did home shift after a power outage?
On absolute encoder machines, a long power loss can drain the backup battery and clear the reference. The control will demand a reference setup on the next power-up.
On incremental systems, the reference is re-established at every power-up, so an outage should not change home unless the dog or switch was disturbed during the shutdown.
How much grid shift error is acceptable?
A repeatable error under 0.01 mm is usually thermal or measurement noise and can be left alone. Anything above 0.02 mm should be investigated and corrected.
If the error keeps returning after correction, the cause is mechanical. Fix the dog, bracket or coupling before editing the parameter again.
Does adjusting home affect part accuracy?
It can, if the work offsets are not updated afterward. Home defines the machine coordinate system, and work offsets are measured from it.
After a home adjustment, re-probe or re-indicate the fixture and update the work offsets before running production.
Need parts machined while your machine is down?
Send your files and get a quotation with free DFM analysis within 12 hours. We run 127 CNC machines across three plants and hold ±0.005 mm on production work.
12-hour quote±0.005 mm tolerance100% inspection before shipmentNo minimum order quantity