AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a PWM-controlled stepper restarts with no pulses for seconds

Servo and stepper motion Published 8 min read By AutomateDirectUSA engineering team

Short answer

The frequency operand can rise all it likes; while the pulse output is off for an out-of-range operand or waiting for its next period, no pulses reach the driver. It resumes at the already-elevated ramp value, above what the motor can start from, so the motor rumbles. Restart from a valid low starting frequency held for a fixed delay after the run bit, with one write per scan, then ramp.

On this page
  1. What the symptom rules out
  2. Why a rising register moves nothing
  3. Causes in order of cost to check
  4. The frequency of the first pulses
  5. The restart sequence that fixes it
  6. The decision for each case
  7. Questions asked

You are not hitting a limit on how fast the frequency operand can be written. A PWM pulse output of this kind turns itself off while its frequency or duty-cycle operand is out of range — zero hertz is out of range — and it applies a new frequency only at the start of its next period, so after a stop the output sits through seconds of dead time while your ramp keeps climbing. The first pulses that reach the driver arrive at the already-elevated value, above the rate the motor can start from, and the motor rumbles instead of turning. The fix is a restart sequence: one write to the frequency operand per scan, a valid low starting frequency held for a fixed delay after the run bit, and only then the ramp.

What the symptom rules out #

Three facts from the failing restart: the frequency register climbs smoothly on the online display; a frequency meter at the output reads nothing for seconds; and when pulses finally appear they are already at the running rate while the motor growls without rotating. A larger increment shortens the pause but makes the failed start more likely, and the pause survives when every other network is removed from the program.

That rules out the cheap explanations. The register changes correctly, so the ramp arithmetic is not the fault. The isolated ramp reproduces the pause, so no other network is interfering. The same output drives the motor well when it starts together with the process, so the driver and wiring are good. What remains is command-to-output dead time, a gap between the operand changing and pulses flowing — and the start that works is the one where the dosing ramp follows the screw's own slow acceleration from rest, keeping the frequency low exactly while that gap would matter.

Why a rising register moves nothing #

A stepper advances only when pulses arrive at its driver. An operand that ramps while no pulses flow accelerates nothing; it only raises the frequency the motor will be hit with when pulses resume, and above the motor's starting frequency that hit produces a stall, not motion — the same torque-versus-rate limit behind why a stepper motor stalls above a certain step rate.

Two documented behaviors create the gap. First, the help for this controller family's PWM outputs states that out-of-range values in the frequency or duty-cycle operands turn the output off and keep it off until the values return to range. One documented frequency span for this class of hardware runs from 0.1 Hz to 100 kHz; read the span and the operand scaling for your exact controller, module and output mode from its own help, because a frequency in hertz and its integer operand are not interchangeable unless the documented scaling makes them so. Zero hertz is below every such minimum, so a stop done by writing zero leaves the output off — a different state from running at zero speed.

Second, a timer-based PWM function generates each period from the value it last accepted: a new frequency takes effect at the start of the next period, not at the instant the operand changes, and it leaves the duty cycle untouched. At low frequency that pending period is long — the period is the inverse of frequency, and at 0.2 Hz it lasts 5 s — so a ramp that begins near the minimum spends its opening seconds inside one period the output cannot shorten.

The hardware underneath falls under IEC 61131-2, which sets the equipment requirements and tests for programmable-controller digital outputs. It does not standardize how a pulse function schedules frequency changes, so the update rule and the valid range come from the manufacturer's help for the exact output mode. Read them the way you would when configuring a PLC pulse-output servo axis before PLS2 moves: range, operand scaling, and the point at which a new frequency takes effect, all confirmed before a ramp is trusted.

Causes in order of cost to check #

Work down this list; each item pairs a cause with the check that confirms it.

  • More than one write to the frequency operand per scan. A later network overwrites the ramp with zero or the raw process setpoint, so the display shows values the output never receives. Check: find every write — copies, resets, initialisation, stop logic, ramp math — and monitor the operand as the scan ends.
  • Operand below the documented minimum. A stop at zero, or a ramp crossing the sub-minimum region, holds the output off under the out-of-range rule. Check: the output status LED, or a scope on the driver input, while the operand sits under the minimum; a dark output confirms the rule is active.
  • Period-boundary updates. After the output returns, its pending period was set by a very low frequency, so the first update lands seconds later, at whatever the ramp reached meanwhile. Check: a scope trace time-aligned with the run bit — one long quiet interval, then pulses already at the elevated rate.
  • A ramp steeper than the motor can follow even with pulses present. Check: a slow manual ramp from a held starting frequency; if the motor follows that but not yours, the rate is the fault, not the timing.

The isolated reproduction and the silent meter point squarely at the second and third items. Fix the first regardless: it costs one network and makes every later measurement readable.

The frequency of the first pulses #

Calculated example for illustrative inputs, not a measurement. Take a dosing target of 5,000 Hz, a PLC scan of 2 ms, and the dead time that follows a stop.

  • Increment 1 Hz per scan: ramp rate = 1 Hz per scan × 500 scans per second = 500 Hz/s. When a 5 s pending period ends, the register has risen to 500 Hz/s × 5 s = 2,500 Hz, and that is the frequency of the first pulses.
  • Increment 50 Hz per scan: ramp rate = 50 Hz per scan × 500 scans per second = 25,000 Hz/s. The register reaches the target in 5,000 Hz ÷ 25,000 Hz/s = 0.2 s, long before the period ends, so the first pulses arrive at the full target. The pause only looks shorter because the register saturates; the start becomes harder, which matches the field report that a very large increment sometimes leaves the motor not starting at all.
  • If a start test shows the loaded motor reliably self-starts only up to 800 Hz (an example figure — measure yours), both onset values sit far above it, and the motor rumbles: started above its starting frequency, a stepper loses synchronism and vibrates without rotating.

The arithmetic settles the increment question. A faster ramp raises the onset frequency and a slower ramp lengthens the pause, so no increment value can fix this; the onset has to be pinned by holding a valid starting frequency before the ramp runs.

The restart sequence that fixes it #

  1. Stop under control: ramp the frequency down below the motor's starting frequency, then drop the run bit. If the program stops by writing zero, treat the result as output-off, never as a pause the ramp can resume from.
  2. Do the setpoint, limit and ramp math in working operands and transfer the result to the frequency operand once per scan, in one place, at the end of the scan. Monitor the working value, the final operand, the run bit and the duty-cycle operand together.
  3. On restart, set the run bit and in the same scan write a valid starting frequency: inside the documented range and below the motor's tested starting frequency.
  4. Hold it for a fixed delay — for example 300 ms on a timer — so pulses flow at the low rate and the motor is already turning before acceleration begins. At a held 500 Hz the period is 1 ÷ 500 Hz = 2 ms, so the output is pulsing within a few scans of the run bit.
  5. Ramp from the starting frequency at a rate the manual test has shown the motor follows. In the example, 500 Hz to 5,000 Hz at 5,000 Hz/s takes (5,000 − 500) Hz ÷ 5,000 Hz/s = 0.9 s, a total restart near 1.2 s.
  6. Verify with a scope time-aligned with the run bit: pulses at the starting frequency inside the delay, then a rising frequency, the motor turning throughout. A frequency meter alone can hide isolated pulses inside its acquisition window.

Do the manual start tests with the dosing drive safely separated from a running screw; the machine's risk assessment and lockout procedure decide whether the process may run while you probe the output.

The decision for each case #

  • Starting together with the process from rest: keep the existing ramp. Its onset frequency stays low because the process itself accelerates slowly, and that is why it has always worked.
  • Restarting the dosing motor while the process runs at speed: use the held-start sequence — run bit plus a valid starting frequency in the same scan, a fixed delay, then the ramp, with one write per scan.
  • Shortening the pause with a bigger increment: reject it. It raises the frequency of the first pulses and turns a slow start into a failed one.
  • Stopping for cleaning: ramp down below the starting frequency first, then stop with the run control, so every stop ends in a known state and every restart begins from your chosen frequency instead of from wherever the ramp has climbed.

Questions asked

How many times per second can the PWM frequency operand be updated?

Write it once per PLC scan and let that be the rate. On a 2 ms scan that is 500 writes per second, and the output still cannot act on a change until its next period begins, so a faster write rate buys nothing. Several writes in one scan are worse than useless, because the output receives only the last value and the online display shows numbers the hardware never saw. Do the setpoint, limit and ramp math in working operands and make one transfer at the end of the scan.

Can I stop the stepper by writing 0 Hz to the frequency operand?

It stops the motor, but it leaves the output in its off state, because zero sits below the documented minimum, and the output stays off until a valid value returns. That off state is precisely the dead time the next restart inherits. Ramp down below the motor's starting frequency first, then stop with the output's documented run control. Then every stop ends in a known state and every restart begins from your held starting frequency instead of from whatever the ramp has climbed to.

Why does the motor rumble instead of turning when the first pulses arrive?

A stepper can start from rest only below its starting frequency with the load attached. Above that rate the stator field rotates faster than the rotor can follow, the rotor never completes a step, and it oscillates in place — the growl you hear — while the driver keeps pushing full current into windings that are doing no work. The motor can overheat if the condition persists, so a restart that lands above the starting frequency must be treated as a stall, not as a slow acceleration.

Does the duty-cycle operand matter during a restart?

Yes, twice over. An out-of-range duty cycle turns the output off exactly like an out-of-range frequency, and changing the frequency never corrects a wrong pulse width, because a new frequency leaves the duty cycle untouched. Set the duty-cycle operand once, to a value that gives the driver input a pulse width it accepts at your top frequency, and leave it fixed. Then only one operand moves during a restart, and every off-state has a single possible cause: the frequency value.

Keep reading

  • Troubleshooting

    Stepper Motor Running Slow With a Gearbox: Pulse Rate First

    Measure the step-pulse frequency at the drive input before changing the supply or any hardware: motor rev/min = pulse frequency in Hz × 60 ÷ pulses per motor revolution, and a 10:1 gearbox then divides that by ten. A slow output usually means the command rate or the pulses-per-revolution scaling is wrong, not the motor.

    Servo and stepper motion

  • Explainer

    What a controller output switching rate does to stepper speed

    Motor speed equals the step pulse frequency divided by the driver's increments per revolution, so the controller's maximum output switching rate sets the ceiling. A compact controller whose technical data lists 10 Hz commands ten increments each second — 1 mm/s of feed with 0.1 mm of travel per pulse. That suits slow indexing; anything faster needs a dedicated pulse output, not more reduction or microstepping.

    Servo and stepper motion

  • Troubleshooting

    Why a stepper stalls in one band under load: resonance or torque

    Yes, a loaded stepper can stall in a narrow, repeatable frequency band when the motor, coupling and load resonate together, but at kilohertz command rates a mid-ramp stall is more often a torque or driver-current shortfall. Run the identical loaded ramp twice and log both stall frequencies: stalls close together mean resonance, fixed by crossing the band fast; stalls scattered or parked at one ceiling mean torque, fixed with current, drive pattern or load torque.

    Servo and stepper motion