Troubleshooting
Why a Stepper Stalls When Retargeted During Deceleration
Short answer
A stepper that seizes and squeals only when a new, farther target arrives during deceleration is being hit with a step change in STEP pulse frequency at the command handover. The driver follows pulses, not your trajectory. Confirm the frequency jump at the driver's STEP input with a scope, then fix how the motion instruction replaces the move; do not start by changing current or motor size.

On this page
- What the driver actually follows
- The number that decides it: the frequency step at handover
- Example: the speed step when a ramp restarts at its start frequency
- Why the reverse target stalls nothing
- Rank the causes, cheapest check first
- Confirming the jump on a scope
- Fix the handover, not the hardware
- Re-reference after every stall
- Questions asked
When a stepper seizes and squeals only after a new, farther target arrives while the axis is already decelerating, the fault is almost never the motor, the current setting or the driver. It is a step change in the STEP pulse frequency at the moment the motion command changes. The driver tracks the pulses it receives; it knows nothing about your destination and cannot repair a bad ramp. If the pulse generator restarts its ramp from a fixed start frequency instead of continuing from the speed the axis is actually at, the demanded speed jumps in one update, the required acceleration torque exceeds what the motor can produce at that speed, and the rotor loses synchronism. Capture the STEP waveform at the driver input before changing current, motor size or driver: the squeal sounds identical to a resonance problem, but its fix is in the motion logic.
What the driver actually follows #
A stepper driver receives STEP and direction signals and regulates winding current so the magnetic field advances one pulse at a time. It does not know the destination, the ramp time or the remaining distance; it only sees a pulse train. If the pulse frequency rises faster than the rotor can accelerate, the rotor falls behind the commanded field, and the driver keeps energizing coils for positions the rotor never occupied. That mismatch is the stall: the shaft stops, and the motor sings at a pitch set by the fight between the electrical step rate and the stuck rotor.
The number that decides it: the frequency step at handover #
For a pulse scale of N pulses per motor revolution and a STEP frequency f in pulses per second, shaft speed is:
rpm = 60 × f / N
The quantity that matters at a retarget is Δf, the change in pulse frequency between the last pulse before the new command takes effect and the first pulse after it. If Δf is applied in one instruction update, the motor is asked to jump instantly from one speed to another. A stepper's torque falls with speed because winding inductance and back EMF limit how fast current can follow the commanded waveform, so there is a maximum frequency change it can absorb from any given speed. A step larger than that exceeds the available torque, and the rotor loses synchronism. Back EMF grows with speed, so it shapes the torque ceiling, but it does not by itself explain why one command transition fails while others succeed — the discontinuity does.
Example: the speed step when a ramp restarts at its start frequency #
Take a typical case with a 1.8° motor at a microstep setting that gives N = 1,000 pulses per motor revolution. The axis is decelerating through f1 = 1,000 pulses/s, which is 60 × 1,000 / 1,000 = 60 rpm. A new, farther target arrives, and the pulse generator starts its replacement ramp at its configured start frequency f2 = 5,000 pulses/s, which is 60 × 5,000 / 1,000 = 300 rpm.
The step is Δf = 5,000 − 1,000 = 4,000 pulses/s, an instantaneous demand of 240 rpm. If the generator updates once per 10 ms scan, the angular acceleration implied by that step alone is:
alpha = (2 × pi × Δf) / (N × Δt) = (2 × pi × 4,000) / (1,000 × 0.01 s) = 2,513 rad/s²
With an inertia reflected to the motor shaft of J = 0.0002 kg·m², the acceleration torque for the step is T = J × alpha = 0.0002 × 2,513 = 0.50 N·m, on top of the torque the steady ramp already needs — all demanded in one update. These are calculated figures for these example inputs, not a measured result. Whatever the exact numbers in your machine, the decision rule is the same: if the frequency step at handover is larger than the frequency change the motor can accelerate through from its current speed, the axis stalls, and no current setting rescues it.
Why the reverse target stalls nothing #
The reverse case working is the strongest clue that the fault is in the handover, not the hardware. A same-direction retarget can be issued as a fresh trajectory whose pulse frequency starts above the speed the axis is currently decelerating through, producing the positive frequency step. A reverse command, in most pulse generators, first decelerates the axis to zero and then ramps up in the opposite direction. The frequency therefore passes continuously through low values the rotor can follow from any speed — no step, no stall. Compare the pulse trace of the working reverse move with the failing forward move: the difference you see is the defect.
Rank the causes, cheapest check first #
Work the list in this order; do not skip to the last item because the squeal sounds severe:
- Frequency step at handover — likely when the failure lands exactly on the command change. Confirming check: scope the STEP input and look for a step discontinuity or a gap at the new-command instant.
- Competing motion instructions — two instructions triggered to the same pulse output, or a repeated start, produce a double frequency jump. Confirming check: trace the rung logic and the instruction's done/busy flags for overlapping activations.
- Resonance band in deceleration — likely when the failure happens in a repeatable speed band regardless of command timing, with a continuous STEP waveform. Confirming check: log commanded speed at failure; a speed-band signature points here instead.
- Torque margin and current setup — the selected driver current must not exceed the motor's rating, and both must be quoted on the same basis. Confirming check: read the motor datasheet's current definition against the driver's setting table before changing any switch.
- Mechanical binding — a seized gearbox or bearing also stops the shaft, but it stalls on ordinary moves too. Confirming check: rotate the drivetrain by hand with power off.
A failure tied to the command transition points to the first two items. A failure that develops with running time or temperature belongs to the last three.
Confirming the jump on a scope #
Connect an oscilloscope or logic analyzer to the STEP input at the driver, and wire a spare PLC output as a marker that pulses the instant the new command is issued. Run the failing sequence and compare pulse periods immediately before and after the marker edge. A step discontinuity — periods shrinking suddenly with no ramp — confirms the diagnosis. While you are there, check the direction signal's setup and hold timing around the step edge against the driver's input specifications in its datasheet, and make sure the pulse width meets the stated minimum. Before comparing commanded frequencies with physical speed, verify which shaft your pulses-per-revolution scale refers to; a motor-shaft scale applied to a geared output quietly corrupts every speed figure, as the mismatch behind an axis that travels 1.25 times the commanded distance shows.
Fix the handover, not the hardware #
Once the scope shows the step, correct the motion logic:
- Read your PLC's motion instruction documentation for how it treats a new position while a move is active: whether it replaces the trajectory immediately, buffers it, aborts, or restarts the ramp, and from what speed the replacement ramp begins.
- If the instruction supports blending or retargeting from the current commanded velocity, use that documented method so the frequency stays continuous.
- If it does not, gate the new command with the axis's in-position or decel-complete status, so targets are only accepted from rest or from a documented blend state.
- Where a target must not be dropped, queue it and execute it as the next move after the current one completes its ramp.
- Retest with the scope connected and confirm the frequency trace is now continuous through the handover before touching any hardware setting.
A longer ramp setting does not fix a discontinuity: whether it helps depends entirely on whether the generator applies the ramp from the actual commanded velocity or restarts it from its start frequency. If the original waveform was already continuous, stop here and pursue the resonance, torque and mechanical items in the list above instead.
Re-reference after every stall #
An open-loop pulse axis counts commanded pulses, not actual rotor position, so after a stall the controller can happily report the requested destination while the output shaft is somewhere else. Re-establish position with the machine's normal reference method before any subsequent move is trusted. Treat this as a safety step, not a bookkeeping one: the next cycle starts from a position the controller believes but cannot prove, and uncommanded motion is possible until the axis is re-referenced. Whether the motor itself survived the event is a separate question, and lost synchronism alone does not answer it — see whether a stepper is damaged after losing steps for what to check. If a scale or gearbox change is ever part of the repair, take the pulses-per-revolution figures from the datasheets of the exact parts in your drivetrain.
Questions asked
Does raising the driver current stop a stall during retargeting?
No. The stall comes from a frequency step the rotor cannot follow, and the driver current setting does not change that. Raising the setting above the motor's rated current mostly adds winding heat. Also check the basis before touching the switches: one manufacturer's number is peak, another's is RMS, so compare like against like on the exact part's datasheet.
Why does a longer ramp time make the stall easier to reproduce?
A longer ramp widens the interval the axis spends decelerating, so a new target is more likely to arrive inside it. It also exposes the real defect: if a longer ramp makes things worse instead of better, the pulse generator is restarting the ramp from its configured start frequency rather than continuing from the speed the axis is actually at.
Is the axis position still valid after a stepper stalls?
No. A pulse-counting axis tracks commanded pulses, not actual rotor position. When the rotor loses synchronism, the controller can report the requested destination while the output shaft sits somewhere else. Re-reference the axis with the machine's normal homing method before running any part of the cycle again.
Is the high-pitched squeal a sign the motor is overheating?
Usually not. A squeal during a retarget is the rotor vibrating against a commanded magnetic position it can no longer reach, which is lost synchronism, not thermal overload. Check motor and driver temperature against their documentation as a separate item, and record the pulse waveform alongside any temperature reading before assigning a cause.