Explainer
What a controller output switching rate does to stepper speed
Short answer
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.

On this page
A stepper motor advances one driver increment for every step pulse it accepts, so the fastest the motor can turn is set by how fast the controller can switch its output. That ceiling sits in the controller's technical data, and on compact relay and logic controllers it is startlingly low — a few pulses each second, against step inputs built for hundreds of kilohertz. The consequence is arithmetic, not tuning: the pulse rate fixes the speed, and no gearing or microstep setting buys it back. This article shows where the ceiling sits, the three formulas that turn a switching rate into a feed rate, one worked example with the arithmetic written out, and the decision rule for when the output — not the motor, the driver or the load — is the binding limit.
Where the ceiling sits #
A step and direction driver does the heavy work: it commutates the motor phases and supplies the winding current. The controller's job is two small signals — a pulse train on the step input, a steady level on the direction input — and each accepted pulse advances the motor one configured increment. The command rate is the pulse frequency, and the pulse frequency cannot exceed how often the output can reliably change state, which manufacturers document as a maximum output switching rate. For one widely used compact controller family, the Siemens LOGO!, the technical data lists a maximum output switching rate of 10 Hz. Treat the documented rate as the ceiling for complete pulses, and take the figure from the technical data of the exact variant in hand, because families and output types differ.
Output hardware decides how harsh that ceiling feels. A relay output is a mechanical contact: it operates slowly, bounces as it closes and wears with every cycle, which is why it is specified for valves, lamps and contactors rather than pulse trains. Transistor outputs switch cleanly and are the variant to choose for signaling, but they do not lift the documented rate — the constraint is the controller's ability to generate the pulse train alongside every other line of logic in the scan, not just the contact in the way.
That constraint is also why dedicated pulse outputs exist. On a motion-capable controller the train comes from a hardware generator with its own clock, rated in the hundreds of kilohertz, while the logic program only sets target position and speed. Most step and direction drivers accept step rates of 100 kHz or more — a rule of thumb; the exact figure is in the driver manual — so with a general-purpose output the controller side is the lower figure by roughly four orders of magnitude.
The formulas that turn a switching rate into a speed #
Three relations carry the whole calculation:
- Increment rate (the pulse frequency) is the lesser of the controller's maximum output switching rate and the driver's maximum step input rate.
- Motor speed in revolutions per second is the increment rate divided by the driver's increments per revolution; multiply by 60 for rev/min.
- Feed rate is the increment rate multiplied by the machine's travel per pulse.
Increments per revolution come from the motor and the driver setting: 360 degrees divided by the step angle, times the microstep multiplier. Travel per pulse comes from the mechanics: screw lead, reduction ratio, rack pitch or belt span. Read both from the nameplate, the driver's resolution setting and the machine drawing rather than assuming them. Only the increment rate raises speed at fixed mechanics; more microstepping or a larger reduction both slow the machine at the same pulse rate — exactly the changes people reach for first.
Worked example: a 10 Hz output driving a head at 0.1 mm per pulse #
The case is a machine-tool head that must lower a known distance between cutting passes, controlled from a compact controller whose output sits at its documented ceiling. The inputs:
- Maximum output switching rate: 10 Hz — the documented technical-data figure for the compact controller family above.
- Travel per pulse: 0.1 mm — the head screw is geared to turn several times per motor turn, so one pulse lowers the head 0.1 mm.
- Increments per revolution: 200 — an example input, a 1.8-degree motor at full step (360 ÷ 1.8 = 200); take the real value from the driver's resolution setting.
The formulas in words: motor speed equals the increment rate divided by increments per revolution, and head feed equals the increment rate times travel per pulse. The arithmetic:
- Motor speed: 10 pulses/s ÷ 200 pulses/rev = 0.05 rev/s, and 0.05 × 60 = 3 rev/min.
- Head feed: 10 pulses/s × 0.1 mm/pulse = 1 mm/s.
- Wait time: a 100 mm lowering move takes 100 mm ÷ 1 mm/s = 100 s, about a minute and three quarters.
Decision: this is a calculated example for these inputs, not a measured result, and it decides the application. As an indexing move it is workable — under two minutes of waiting per pass. Gearing to the finer 0.05 mm-per-pulse setting halves the feed to 0.5 mm/s and doubles the wait to 200 s, a straight trade of speed for resolution. Beyond roughly ten increments each second of commanded motion — a real feed axis, a fast return, any move that must finish in seconds — the output ceiling cannot follow, and the fix is a dedicated pulse output, not more reduction.
More microstepping or a larger reduction slows it further #
Microstepping multiplies the increments per revolution, so at a fixed pulse rate the speed falls in the same proportion: ten-times microstepping on the example mechanics cuts the feed to a tenth. That is the same collision between what the driver asks for and what the pulse source can supply that Stepper Drive Pulse Frequency Limit vs Microstep Demand works through, and it is why the microstep switch is the wrong dial when the command rate is the binding limit.
A larger reduction behaves identically: it lowers travel per pulse, improving commanded resolution and lowering feed in the same stroke. When a geared axis runs slower than expected, check the pulse rate before touching the mechanics — the priority in Stepper Motor Running Slow With a Gearbox: Pulse Rate First.
Pulse shape, direction setup and wiring #
At these rates the waveform never binds: every driver's minimum step pulse width is orders of magnitude shorter than a pulse from a slow output, so a rejected pulse is not the failure mode — the rate is. The timing item that matters is direction setup: set the direction level, let it settle for the interval the driver's manual specifies, and hold it unchanged for the whole train, because changing direction against live pulses can produce an uncommanded move. The pulse-width and setup figures live in the driver manual; what an ordinary output module can be asked to signal, and the timing budget around it, is worked through in Stepper pulse timing from a PLC discrete output module.
Wiring is a compatibility check, not a tuning step: identify relay or transistor outputs from the controller's markings, match voltage and polarity to the driver's input circuit, connect an optically isolated input's signal common exactly as the driver diagram shows, and add a level-shifting or isolating interface when the two sides do not match. Motor windings never connect to controller outputs — commutation and winding current belong to the driver's power stage.
The decision, case by case #
- Slow indexing and positioning between passes, where a minute or two of travel is acceptable: the compact controller output can run it, open loop, with the pulse count as bookkeeping.
- Any axis with a real feed rate — tens of mm per second, hundreds of thousands of increments — needs the pulses moved to a dedicated high-speed output or a motion-capable controller; the driver was never the limit. Where several axes share that requirement, the allocation question in Why three stepper axes need dedicated high-speed outputs applies.
- Turning a travel distance into a command: divide travel by travel per pulse and command that count. Where the controller divides in integers the remainder is lost and every move comes up short — the truncation behind why 3 divided by 2 equals 1 on some PLCs — so compute in floating point or round deliberately.
The general test compresses to one line: required increment rate equals required feed divided by travel per pulse, compared against the output's documented maximum switching rate. If the output loses that comparison, no gear ratio, microstep setting or driver choice changes the outcome — change where the pulses come from. Keep the first powered test at the lowest rate with the mechanism clear of hands and tools, because a counted pulse is a commanded pulse, not a confirmed position.
Questions asked
Does a bigger stepper motor fix slow motion?
No. Torque and speed limits are separate here: a larger motor still advances exactly one increment per pulse, so the command rate caps its speed exactly as before. A bigger motor helps when the load stalls the small one — a torque problem — but slow, steady motion at the command ceiling is a rate problem, and motor size does not touch it.
Why do relay outputs make it even worse?
A relay contact adds bounce: each closing produces extra edges in the first moments, and a driver can read some of them as extra steps, corrupting the position count. The contact's operate time also limits switching below the documented electronic rate. Transistor outputs remove both problems, though the controller's own switching ceiling stands.
Can this controller close the position loop with an encoder?
Generally no. Compact logic controllers of this class lack a high-speed counter input built for encoder quadrature signals, so there is nowhere to bring the feedback in, and the axis stays open loop. Reading an encoder through ordinary inputs misses counts even at modest speeds. Position verification needs a motion-rated controller or a drive with its own encoder input.
What changes when the pulses move to a dedicated output?
The logic program stops toggling an output and instead writes a target position and speed to a hardware pulse generator, which runs at kilohertz rates independent of the scan. The checks then shift to the driver interface: minimum step pulse width in both states, the direction setup interval before the first pulse, and level compatibility. Take all three from the driver manual.
