Perte de pas sur l'axe Z ? Pourquoi votre défonceuse commence-t-elle lentement à couper dans le vide ?
The first pocket cuts perfectly. The second is a whisper shallower. By the fifth toolpath the bit is polishing the surface; by the last it is cutting clean air above the wood. If that sounds familiar, you are looking at the classic cnc z axis losing steps problem: the controller believes the bit is somewhere it is not, and the gap grows with every cycle. This article works through the causes in check order, with a mark-and-measure method that proves which one is yours before you change a setting.
Principaux points à retenir
- A stepper-driven Z axis is open-loop: the controller counts the pulses it sent and never checks where the axis went, so every missed pulse becomes a permanent position error.
- Missed steps happen at moments of peak torque demand — binding slides, slipping couplers, weak or hot drivers, or accelerations the axis mass cannot follow.
- The drift direction is a clue: creeping up and cutting shallower means steps lost on loaded downward moves; gouging deeper means steps lost on the lift.
- Prove it before you fix it: witness-mark the coupler, run a repeated up-down cycle test, then measure the drift.
- Re-zeroing between toolpaths hides the symptom and teaches you nothing; the fix is mechanical or electrical, and it stays fixed.
What does “losing steps” actually mean on a Z axis?
Most workshop CNC routers drive their axes with stepper motors and no position feedback. The controller sends a stream of step pulses — so many up, so many down — and assumes every pulse moved the motor one step. When the torque needed at some instant exceeds what motor and driver can deliver, the motor cannot follow, and that step is lost forever. The controller’s counted position and the axis’s real position now differ — and nothing in the system knows.
Z is the usual victim, for two reasons. It works against gravity on every lift, so its hardest move is also its most frequent one. And it cycles constantly — every retract, plunge and peck repeats the same loaded moves hundreds of times per job, so a step or two per cycle compounds fast. Depth errors are also the least forgiving: the same fraction of a millimetre that hides sideways shows in every pocket floor.
Why does the error accumulate instead of cancelling out?
Because the losses are not random — they happen on the same move, for the same reason, cycle after cycle. If the axis falls two steps short on every plunge, the real bit sits two steps higher than the controller believes after the first pocket, four after the second. The retracts complete fully, so nothing pays the error back. It is a ratchet: motion is lost in one direction only, and the offset marches until the bit is skimming the surface, then cutting air.
The mirror image exists too: lose the steps on the lift — a heavy spindle the axis struggles to raise — and the real axis sits lower than the controller believes, so cuts deepen until something gouges or the bit snaps. Either way, the drift direction is your first evidence: it tells you which half of the cycle is failing, and halves the suspect list.
What does the way your Z drifts tell you?
Read the job before you touch the machine. When it starts, which direction it goes, and what changed recently sort the causes faster than any test. Use the table as a first pass, then confirm with the method that follows.
| Symptom pattern | Likely cause | First check |
|---|---|---|
| Cuts get shallower over the job until the bit cuts air | Steps lost on loaded downward moves: binding slide or screw | Turn the Z screw by hand through its full travel, power off, feeling for tight spots |
| Cuts get deeper, or the bit gouges at the end of a job | Steps lost on the lift: heavy spindle, weak driver current, no counterbalance | Driver current setting against the motor’s rating; check for a counterbalance spring or strut |
| Drift only on jobs with many rapid retracts and plunges | Acceleration or rapid speed too aggressive for the axis mass | Halve Z acceleration as a test and re-run the same file |
| Random small errors, sometimes up, sometimes down, no pattern | Electrical noise or poor connections adding or eating pulses | Inspect step/direction wiring and connectors, and cable routing near the spindle power lead |
How do you diagnose cnc z axis losing steps in the right order?
The order below runs from proof to cause: first establish that steps really are being lost and by how much, then work the suspects from cheapest to least likely. Change one thing at a time, re-running the same cycle test after each change.
- Rule out the impostors first. A bit slipping in a worn collet, work bowing off the spoilboard, or stock thinner than the last sheet all mimic step loss. Witness-mark the bit, confirm the work is held flat, measure your stock, then home and check Z against a gauge point. If a plain no-cut cycle already drifts, the impostors are cleared.
- Mark everything that should move as one. With a paint pen, draw one straight line across the motor shaft and the coupler, and a second across the coupler and the screw. If a joint slips under load, the line breaks into an offset — visible proof, not a guess.
- Run a repeated up-down cycle test. Command a few dozen full cycles — retract to a safe height, plunge to a set depth in air, retract again — at your jobs’ rapid speed and acceleration. The official LinuxCNC Stepconf documentation builds axis tuning around exactly this kind of repeated test run: an axis that cannot follow falls behind where you can see it, not mid-job where you cannot.
- Measure the drift, do not eyeball it. Before the test, bring the bit to a dial indicator or gauge block and note the reading, or cut a shallow test pocket in scrap and measure its depth. After the cycles, repeat the measurement: the difference is your drift in real units, the number every fix must drive to zero. A staircase of pockets cut before and after makes it visible at a glance.
- Check the mechanics by hand. Power off, and turn the Z screw or belt slowly through the full travel. A healthy axis feels evenly smooth end to end. A tight band or gritty patch means binding or stiction — clean the slide and screw, clear packed swarf from the nut and rails, and re-lubricate with whatever your machine’s documentation specifies.
- Interrogate the coupler and pulleys. Read the witness marks from step 2, confirm each grub screw is tight on a shaft flat, and check the coupler is not cracked. A coupler that slips under load reversal passes every static test and fails only the marked cycle test — which is why the marks come first.
- Check the driver current and temperature. Compare the driver’s current setting — DIP switches or software — against the motor’s nameplate rating, per the documentation, not a forum number. Set well under the rating, a driver starves the motor of torque when the axis works hardest. Then run the machine twenty minutes and feel the driver heatsink: one too hot to keep your hand on is throttling, and needs heatsinking or airflow, not more current.
- Back off the axis tuning as a test. Halve the Z acceleration, and if needed the rapid speed, and re-run the cycle test. If the drift vanishes, the axis was being asked to change speed faster than its mass and motor could follow — raise the values until the drift returns, then settle below that point. Our feeds and speeds for wood CNC guide applies the same discipline to cutting moves.
- Look at the electrics last. Reseat every connector in the Z step/direction chain, look for a chafed cable in the drag chain, and check step wires do not run bundled against the spindle power cable — noise there adds or eats pulses and produces the patternless errors in the table. If you can, swap the Z driver with one from a healthy axis: if the fault follows the driver, you have your answer.
When is the spindle’s own weight the problem?
Sometimes every test passes and the axis still loses steps on the lift, because the load is at the edge of what the motor can raise. A heavy water-cooled spindle, dust shoe and stiff hose are real mass on one screw or belt, and gravity bills the motor for all of it on every retract. The classic sign: an axis that holds position and cuts acceptably, but creeps deeper over a job — or strains and stalls on fast retracts.
The honest fixes are mechanical sympathy: a counterbalance spring or gas strut sized to offset much of the spindle’s weight, so the motor pays only for the difference; a lighter dust shoe; and Z acceleration set for the mass fitted, not the bare axis the machine shipped with.
Common mistakes when chasing Z drift
Re-zeroing between toolpaths and calling it fixed. Touching off again restores depth for one toolpath and destroys the evidence of the drift. As a one-off rescue it is understandable; as a routine it lets the fault keep growing until it bites somewhere re-zeroing cannot help.
Cranking the driver current to maximum. More current than the motor is rated for buys heat, not reliable torque — and a hot stepper loses torque. Set the current the documentation specifies, and fix heat with heatsinks and airflow.
“Calibrating” the drift away in steps-per-unit. Steps-per-millimetre is set by your screw pitch and microstepping, not by your drift. Fudging it to flatter one test cut makes every other distance the axis moves wrong, and hides a mechanical fault behind a software lie.
Blaming the CAM or the G-code. The file asks for the same depths every cycle; if the first pocket is right and the fifth is shallow, the instructions did not change — the machine’s position did. The same logic applies in our chatter marks diagnosis: read the pattern, then look at the iron.
Tightening everything at once. Coupler, rails, belt, current, acceleration, all before one test: the drift is gone and you have learned nothing, so when it returns you start from zero again. One change, one cycle test, one measurement.
Foire aux questions
Why does my Z axis only lose steps, and never X or Y?
Gravity and workload. Z lifts the spindle’s full weight on every retract and plunges against cutting force on every entry, repeating those loaded moves far more often than the other axes. It works closest to its torque limit, so it shows drive-chain weakness first — treat its drift as an early warning for the whole machine.
How do I tell step loss from a bit slipping in the collet?
Direction and measurement. A slipping bit only moves one way — down, out of the collet — so cuts deepen, never shallow, and its stick-out grows. Witness-mark the bit at the collet nose before a job: if the mark moved, the bit slipped. If the bit is innocent and a no-cut cycle test still drifts, the drive is losing steps.
Is re-homing or re-zeroing mid-job an acceptable workaround?
As a one-off rescue, yes; as a habit, no. It restores accuracy for the next toolpath, but the fault behind the drift is still there, getting worse. Finish the job if you must, then run the mark-and-cycle test. Depth-critical work deserves a Z you can trust — plan it in Studio d'art Sketch3D, but fix the axis first.
Will a closed-loop stepper motor solve this?
Mostly, yes — a closed-loop (servo-stepper) drive reads an encoder, corrects small following errors in real time, and alarms instead of silently drifting when it cannot keep up. But it is a monitor bolted onto the same mechanics: a binding slide or slipping coupler will still be there. Fix the mechanics first; add closed-loop afterwards if you want the alarm.
Could this be the same fault that burns my drilled holes?
Burning while drilling is a dwell and chip-load problem — the bit rubs in one place instead of cutting — and our guide to why a CNC router burns wood when drilling covers the peck fix. The connection: a Z axis that cannot plunge to its commanded depth also cannot peck to it, so if your holes are both shallow and burned, fix the Z drift first.
The bottom line: mark it, cycle it, measure it
A Z axis that cuts air is not haunted. It is keeping accounts — every missed pulse is written into the workpiece as a shallower cut, and the total grows until the bit leaves the wood. So keep accounts back: witness-mark the coupler, cycle the axis as your jobs do, and measure the drift before and after. Then work the order — mechanics, coupler, current and heat, tuning, electrics — one change at a time, until the measured drift is zero and stays zero: a machine you can leave alone with a long file.
Sources: LinuxCNC documentation — Stepconf Wizard (stepper axis configuration and test runs).