Explainer
Why a general PLC output cannot drive a sub-second 180 stepper move
Short answer
A general-purpose PLC output toggled from the scan delivers roughly 100 to 150 on/off cycles per second, and a direct-coupled full-step 180-degree out-and-back move in under 1 s demands about 200 pulses in that second, about twice the ceiling before ramps. Use a high-speed output module or a motion controller for the pulses and keep the standard outputs for direction and enable.

On this page
Use a high-speed output module or a motion controller for this move; a general-purpose output toggled from the ladder will not deliver it. The arithmetic is short. A scanned discrete output supports a working ceiling of roughly 100 to 150 on/off cycles per second, while a direct-coupled, full-step 180-degree out-and-back move in under 1 s needs one full motor revolution of pulses, about 200, inside that second, and the peak rate sits higher still during the ramps. That is close to double the ceiling before any jitter allowance, and no timer tuning closes a gap that size. Generate the burst in dedicated hardware and keep the standard outputs for direction and enable.
What caps a scanned output #
The scan model is the classic one that IEC 61131 programming assumes: read the inputs, execute the program, write the outputs, repeat. Toggle a coil from that program and each pulse period equals a scan, so every scan-time change, whether a communications load, a conditional branch or an online edit, lands in the train as jitter. The output circuit adds its own turn-on and turn-off times, which shorten the pulse and put a floor under how fast the point can switch.
The 100 to 150 cycles per second figure is a working rule of thumb for this combination: a screening value for design, not a rating from any data sheet. The module's data sheet states the real transition times, and a scope on the driver input under maximum PLC load shows what the point actually produces. The underlying limits are laid out in why a PLC digital output cannot make a stepper pulse train.
Size the demand from the driver's resolution #
Take pulses per revolution from the driver's configured step selection, not from the motor label, because the driver subdivides each full step when microstepping is active. A 1.8-degree motor asks for 200 pulses per revolution at full step, the setup covered in setting a stepper drive to 200 steps per revolution; every microstep setting multiplies that count, the trade detailed in stepper drive pulse frequency limit vs microstep demand.
For a direct-coupled axis: move pulses = pulses per revolution × move angle / 360. With a gearbox or belt between motor and load, first multiply by the motor revolutions needed for one load revolution.
Worked example: the half-turn out and back #
Inputs, a calculated example and not a measured result:
- Direct coupling, no transmission: one motor revolution per load revolution
- Driver at full step: 200 pulses per revolution
- Move: half-turn out, half-turn back, complete cycle in under 1 s
Pulses per leg: 200 × 180 / 360 = 100 pulses.
Cycle total: 2 × 100 = 200 pulses.
Average frequency at the time limit: 200 pulses / 1 s = 200 pulses per second.
The average alone runs close to double the screening ceiling, and the peak must sit above the average because acceleration and deceleration consume part of the cycle. Stop tuning the scanned output for this move: the gap is a factor, not a margin.
The decision for each case #
| What you calculate or measure | Pulse source to use |
|---|---|
| Average demand at or above the screening ceiling, as in the example | High-speed output module; a motion controller if more axes follow |
| Demand below the ceiling, but pulse widths wander on the scope | High-speed output module; the scan is still inside the train |
| Slow index moves, stable scope trace, cycle time not critical | The standard output is fine; set direction before the burst |
| Several axes, ramp profiles, supervised position | Motion controller |
For the move as asked, fit a high-speed output module to generate the burst from the PLC, or choose a motion controller when ramps, extra axes and position supervision belong in one unit.
Wire the driver, then prove the move #
Whichever source wins, the same rules apply at the driver:
- The pulse source feeds the driver's logic input, never the motor windings; the driver regulates the phase currents, and an output wired straight to a winding cannot produce controlled motion and will not survive it.
- Set direction before the burst and hold it for the driver's documented setup and hold times, taken from its timing table; take the minimum pulse width from its input specification, not from the scan time.
- Ramp the frequency even when the final rate is legal. A step rate applied instantly can stall the motor, the failure behind why a stepper motor stalls above a certain step rate.
- An open-loop count does not prove arrival. Isolate the drive power, mark the shaft, run repeated cycles and check the mark returns within your position tolerance; add a home sensor or an encoder when the process needs proof of position.
Scope the finished train at the driver input, checking frequency, high and low widths and the count per cycle, then run the marked shaft through the cycle under real load before calling the axis done.
Questions asked
Can the PLC's PWM output generate the step pulses instead?
A PWM channel holds a programmed frequency and duty cycle between scans, but it does not count pulses. You set a rate, not a burst of exactly so many pulses, so stopping on an angle means gating the enable in scan time and inheriting the same quantization. Many standard PWM channels also resolve their period in whole milliseconds, which caps the frequency near the same ceiling. PWM suits a device that commutates itself, not step counting.
How much does the acceleration ramp add to the peak pulse rate?
For a triangular profile, accelerating through the first half of a leg and decelerating through the second, the peak rate is exactly twice the average. A 100-pulse leg inside 1 s averages 100 pulses per second, so the peak is about 200 pulses per second, and the scanned output fails on peak even before the whole-cycle average is considered. A trapezoidal profile with a long constant-speed dwell lands between the average and double, never below the average.
What does selecting 8 microsteps do to the pulse demand?
Microstepping multiplies resolution and pulse count together. Eight microsteps per full step turn 200 pulses per revolution into 1600, so the same out-and-back cycle demands 1600 pulses in the same window, an average of 1600 pulses per second, eight times the screening ceiling and out of reach of any scanned output. Choose microstepping for smoothness knowing it multiplies the frequency problem; it never relieves it.
How slow must the move be for a standard output to work?
Divide the cycle's pulse total by the rate you accept. At the ceiling itself the out-and-back cycle takes about 2 s; at half the ceiling, for margin, about 4 s. Below that the scanned output still delivers the right count, because every toggle is one pulse, but the spacing rides on scan time. Treat it as a position source for slow moves, never as a smooth velocity source.

