Can Not Zero X And Y Axis On CNC Machine?
A machine that can not zero X or Y is usually dealing with one of four things: a switch that never trips, an encoder that lies about position, a grid shift offset that moved, or a servo drive cutting out. This guide walks through the checks in the order a maintenance tech should run them, and tells you when the fault is mechanical rather than electrical.

What this page covers
Read the sections in order. The first two checks catch most X and Y homing failures before you touch a parameter.
Before you open the electrical cabinet
A machine that can not zero X often has nothing wrong with the servo. Start at the operator panel. Confirm the machine is not sitting in a feed hold, a block skip state, or a single-block mode left on from the last job. Clear any alarm and press reset. On many controls the axis will not home until the alarm page is empty.
Overtravel limits deserve a look. When the axis stopped against a hard limit on the last cycle, the control may refuse to move it back toward the home switch until you release the limit with the parameter or the limit-release key. Soft limits set too close to the home position cause the same refusal.
Coolant and chips cause more homing faults than most people expect. A wet switch body or a chip packed behind the dog keeps the signal from changing state, so the control never sees the axis arrive. Wipe the switch, blow out the dog pocket, and dry the connector before you meter anything.
Wire the axis back to manual jog only after these basics are clear. Jog X away from the switch by hand, then command a zero return and watch the position display. If the number counts smoothly and the axis reaches the switch but the light on the switch body does not change, the problem is at the switch, not the drive.
Switches, dogs and the signal the control actually sees
Proximity switches and mechanical limit switches both fail in slow, annoying ways. A proximity sensor drifts as its gap grows, so the trigger point moves a few tenths of a millimeter at a time until the axis overshoots the zero window. Measure the gap against the manufacturer spec and reset it.
On a machine that can not zero X after a crash, look at the dog. The trip dog bends, slides on its rail, or loses its set screw. A dog that moved 1 mm changes where the switch trips and the control reports an incomplete homing cycle even though the axis is physically fine.
Meter the switch in both states. You want a clean open and a clean close, not a slow ramp. A sensor that takes 30 ms to switch will pass a bench test and still fail a fast deceleration ramp on the machine.
Some controls home to the switch edge, others home to the first encoder marker pulse after the switch. Know which type you have. On marker-pulse homing, a misaligned or dirty encoder can make the axis hunt for a marker that never arrives, and the control alarms out mid-cycle.
Encoder feedback and grid shift
When the axis reaches the switch and still can not zero X cleanly, the position feedback is the next suspect. The control compares the encoder count to the expected grid position. A dirty scale, a loose coupling, or a failing read head shifts that count and the zero point lands somewhere else, or the control rejects the position and alarms.
A linear scale needs a clean reader head and a straight mounting. Wipe the scale with the approved cleaner, check the head gap, and confirm the bracket has not moved. Thermal growth on a long axis also shifts the grid, which is why a machine zeros fine cold and drifts after two hours of cutting.
The grid shift parameter is the offset between the encoder marker and the machine zero. If someone adjusted it to chase a problem, the axis may zero to the wrong place. Record the current value before you change anything, then reset it to the value from the machine builder's data sheet and re-home.
Rotary encoders on the motor side tell a different story than a scale on the table. A slipping coupling between motor and ball screw leaves the motor encoder happy while the table sits in the wrong place. Check for backlash and coupling slip before you trust either signal.
Symptom to likely cause
Use this to narrow the fault before you pull a drive.
| Symptom | Likely cause | First check |
|---|---|---|
| Axis moves but never trips the switch | Switch gap too wide or dog moved | Switch LED and dog position |
| Switch LED changes, axis keeps moving | Encoder marker or grid shift | Scale cleanliness, grid value |
| Axis stops short and alarms | Servo overload or bind | Slide lubrication, drive alarm |
| Zero point shifts day to day | Thermal growth or slipping coupling | Coupling torque, warm-up routine |
| One axis fails, the other homes | Axis-specific wiring or drive | Connector pins, swap the drive |
| Alarm clears, fault returns | Intermittent connector or cable | Flex the cable during jog |
Servo alarms, drives and mechanical bind
A servo alarm during homing usually points at load, not at the zeroing logic. If the axis binds, the drive sees a current spike and faults out before the switch is reached. Disconnect the load where it is practical and jog the motor alone. If it homes cleanly with no load, the problem is in the slide, the ball screw, or the way lubrication.
Read the alarm number, not just the alarm text. Drive manuals map each code to a condition, and two codes that look similar on the screen can mean opposite things. An overcurrent code during acceleration is a very different fault from an overcurrent code at steady speed.
Check the lubrication and the rails. A dry linear guide raises friction enough to trip a drive on a cold morning. Way oil, grease intervals, and rail condition belong in the same conversation as the electrical checks, because a machine that can not zero X on the first shift of the day is often a lubrication symptom.
Feed rate and acceleration settings for the homing move matter too. A zero-return speed set too high on a heavy axis can overshoot the switch window. Many controls let you lower the homing feed separately from the cutting feed. Try that before you replace hardware.
Parameter, battery and control-side causes
Absolute encoders store position with a backup battery. A weak battery loses the position data on power down, and the machine can not zero X until the reference position is restored. The control usually throws a battery alarm, but the alarm can appear only at startup and be missed if the operator clears it quickly.
Check the battery voltage against the spec and replace it with the power on where the manual says so. After replacement the axis needs a reference return, and on some controls that is a parameter sequence rather than a button press. Follow the builder procedure exactly.
Parameter corruption is rarer but real. A brownout during a save, or a control board fault, can reset grid shift and soft limit values. Compare the parameter set against a known-good backup. Keep that backup current, and keep it off the machine.
If the operator panel shows a position that jumps in large steps rather than counting smoothly, the control is losing counts. That is a feedback path problem, not a homing routine problem, and it will keep returning until the scale or the encoder is addressed.
Common questions
The machine homes Y but not X. What does that tell me?
It narrows the fault to one axis. Swap the drive or the encoder cable between the two axes if the connectors allow it. If the fault follows the cable or the drive, the problem is electrical. If it stays on X, the problem is mechanical or in the switch and dog.
Can a dirty switch really stop the axis from zeroing?
Yes. The control only knows what the switch reports. A chip packed behind the dog or a wet switch body keeps the signal from changing state. The axis reaches the home position, the control never sees it, and the cycle alarms out.
How often should the homing switch gap be checked?
Put it on a quarterly schedule, and check it after any crash or tooling change near the switch. Proximity gaps drift slowly, so a gap that passes today can fail in a few months of normal vibration.
What is grid shift and why does it change?
Grid shift is the offset between the encoder marker pulse and the machine zero point. It changes when the scale moves, when a coupling slips, or when someone edits the parameter to compensate for a different fault. Always record the old value first.
Is a servo alarm during homing always a drive failure?
No. Most of the time the drive is reporting a load it cannot move. Bind, dry rails, and a stalled ball screw all show up as drive alarms. Test the motor without load before you order a replacement drive.
Does temperature affect homing accuracy?
On long axes, yes. A machine that zeros correctly cold can drift as the frame and the ball screw warm up. A short warm-up cycle before the first job keeps the zero point repeatable across the shift.
Need parts cut while the machine is down?
Send the drawing and we quote within 12 hours, with free DFM analysis and full inspection reports before shipment.
12-hour quote100% inspectionNo minimum order quantity