AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a regular PLC output limits a stepper pulse train to low speed

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

Short answer

A regular transistor PLC output runs a pulse-train stepper drive only to roughly 2-3 kHz: at 5 kHz, pulses arrive 200 microseconds apart and slow switching rounds them off, so the drive loses steps. Scope the pulse at the drive terminals, compare it with the drive's minimum pulse width, and move the axis to a controller with dedicated high-speed pulse outputs rather than changing the motor.

On this page
  1. What the drive actually receives
  2. Check the causes in this order
  3. Measure at the drive terminals
  4. The timing math behind the ceiling
  5. What replaces the general output
  6. The decision, case by case
  7. Questions asked

A regular transistor PLC output tops out near 2-3 kHz when it feeds a pulse-train stepper input, and the ceiling is signal quality, not torque. At 5 kHz, consecutive pulses arrive 200 microseconds apart; an ordinary output transitions too slowly for that interval, the edges round off, and the drive merges or misses pulses, so the axis loses position or stalls. The fix is to move that axis to a controller with dedicated high-speed pulse outputs matched to the drive input, keep the existing motor and drive, and prove the result with a scope at the drive terminals. A larger motor cannot recover pulses the drive never received.

What the drive actually receives #

A pulse-train input turns every clean edge into one fixed position increment, so pulse quality is position accuracy. When the output cannot switch fast enough, three things happen at once: the high and low times shrink toward the transition time, the level sags toward the drive's input threshold, and the edges arrive late by a varying amount. The drive then counts fewer increments than the controller sent, and the axis falls short of target or stops entirely at speed.

That is also why the same output can look healthy at 1 kHz and distort at rates the machine still needs: nothing about the motor changed, only the time between edges. The switching rate itself, and the way it bounds axis speed, is set out in what a controller output switching rate does to stepper speed.

Check the causes in this order #

Work from the cheapest check to the most expensive. The symptom, an axis that runs reliably at low kilohertz and distorts above it, has five plausible causes, and only one of them is the output limit.

  • Wiring, shielding and grounding. Long or unshielded pulse wiring rounds edges and picks up transitions from neighboring conductors. Confirming check: scope the pulse at the drive input terminals and at the controller output under the same load. Clean at the controller and degraded at the drive puts the fault in the wiring or its load, not in the output.
  • Input interface and current. A pulse-train input is an optocoupler that needs a defined current path; a sourcing drive input fed from the wrong common arrangement, or a missing series resistor, leaves it under-driven and slow to switch. Confirming check: measure the voltage swing at the input against the drive's stated threshold, and compare the input current with the output's rated sink or source current.
  • The controller output's switching limit. As a rule of thumb, a regular transistor output is dependable for pulse trains only into the low kilohertz, commonly 2-3 kHz. The binding number is the maximum switching frequency in the controller's own output specification for that output type. Confirming check: scope the output at the failing rate, then read that specification for the exact module.
  • The drive input's minimum pulse width. The drive manual, not the controller, sets the fastest pulse the input can recognize. A LinStep drive manual (document MN1852) requires a step pulse at least 0.4 ms wide, which caps that input at 1/0.0004 s = 2500 pulses per second whatever the source. Confirming check: read the minimum high and low time from the manual for your exact drive model.
  • Microstep demand. Higher resolution multiplies the pulses per revolution the drive needs for the same shaft speed, so the pulse rate climbs faster than the axis does. Confirming check: multiply your pulses-per-revolution setting by shaft speed in revolutions per second. The frequency side of that trade is set out in stepper drive pulse frequency limit versus microstep demand.

Measure at the drive terminals #

Measure where the receiver lives: across the drive's pulse and common input terminals, with the drive connected exactly as it runs. Working on live pulse wiring means exposed conductors beside powered drive electronics, so isolate the machine's dangerous motion and apply your site's lockout procedure before clipping a probe. Compare four things between the controller end and the drive end: amplitude against the input threshold, rise and fall time against the pulse width, high and low durations at the failing rate, and any extra or missing transitions.

A trace that degrades only along the cable indicts wiring, loading or grounding. A trace already distorted at the controller's output screw indicts the output itself, and no wiring repair fixes that.

The timing math behind the ceiling #

Take one reported installation as the worked example. The axis is commanded to 5 kHz for its cutting pass, homes at 2 kHz, and accelerates from the homing rate to the cutting rate in 30 ms; on a general transistor output it ran reliably only at 3.2 kHz.

  • Period at the commanded rate: T = 1/5000 Hz = 0.0002 s, which is 200 microseconds. With a 50% duty pulse the high time is half of that, 100 microseconds; an output that spends tens of microseconds on each edge spends a third or more of the high time just transitioning.
  • Period at the achieved rate: T = 1/3200 Hz = 312.5 microseconds. The ratio 3200/5000 = 0.64, so the axis ran at 64% of commanded speed. That is a signal ceiling, not a torque ceiling.
  • Acceleration ramp: (5000 - 2000) Hz / 0.030 s = 100,000 Hz/s. The pulse-output instruction has to slew at that rate while every pulse stays wide enough for the drive input.
Commanded rate Period (microseconds) High time at 50% duty (microseconds)
Homing rate 500 250
Achieved rate 312.5 about 156
Commanded rate 200 100

These are calculated values for these example inputs, not measured ratings. The governing numbers for your machine are the maximum switching frequency in your controller's output specification and the minimum pulse width in your drive's manual.

What replaces the general output #

The part that fixes this is not a bigger motor but a controller whose pulse outputs are built for pulse trains: dedicated high-speed outputs, NPN transistor stages that sink current directly into the drive's optocoupler inputs. Controllers in this class are commonly specified up to 200 kHz on those outputs; take the exact figure from the pulse-output specification of the exact model, along with the output's sink current rating set against the drive input's current draw.

Then match three things:

  1. The electrical interface. An NPN output needs the drive side to source current through a defined path and common reference. Where the drive input is the sourcing type, fit the series resistor described in why a sourcing PLC output needs a resistor at a stepper drive input.
  2. The position scaling. Keep the drive's pulses-per-revolution setting and any gearbox ratio unchanged, so each pulse still means the same travel. On this instruction class the programmed speed value sets the pulse frequency and the sign of the target position sets the direction output, the behavior documented in the stepper controller module manual of one common PLC family (document 1746-UM121).
  3. The whole profile. Reproduce the homing rate, the 100,000 Hz/s ramp, the deceleration point and the home and limit input behavior, because a rate the drive accepts is not yet a profile the machine accepts. Where the drive can also execute stored moves, weigh that interface in PLC to stepper drive interface options: pulse train or stored moves; stored moves take the pulse-rate work off the controller entirely.

The decision, case by case #

  • Distorted at the controller output at the target rate. The output has hit its switching limit. Move that axis to a controller with dedicated high-speed pulse outputs and keep the motor, drive and scaling; this is the reported case, reliable only at 64% of the commanded rate.
  • Clean at the controller, distorted at the drive. Repair wiring, shielding, grounding or interface current first, then re-scope before buying anything.
  • Clean everywhere, steps still lost. Compare your rate with the drive manual's minimum pulse width. Where the width alone forbids the rate, as the 0.4 ms example caps its input at 2500 pulses per second, lower the pulses-per-revolution setting or change the drive; no controller output solves that.
  • A few kilohertz required and nothing distorted. The output is not the constraint; investigate torque margin at speed, the drive's current setting and the mechanical load before touching hardware.

For a pulse-train stepper axis that must run above roughly 3 kHz, plan on dedicated high-speed pulse outputs and treat a larger motor as money spent on the wrong problem.

Questions asked

Would a larger stepper motor recover the missing speed?

No. The shortfall is in the pulse signal: the drive received fewer valid pulses than the controller sent, so it produced fewer position increments. A larger motor only converts the pulses it actually receives into more torque; it cannot recreate increments from pulses the input never recognized, and its extra inertia raises the torque needed during the acceleration ramp. Fix the signal path first, then review torque margin if the axis still stalls.

Can an external line driver or buffer stage sharpen a slow PLC output's edges?

Only when the controller can already generate clean pulses quickly but delivers them weakly through the wiring. A buffer cannot speed up pulse generation that the output hardware itself cannot sustain: it receives the same degraded train it is meant to pass on. Read the controller's documented maximum switching frequency for that output first. If the train is already distorted at the output screw terminal, a buffer has nothing clean to work with, and the dedicated high-speed output is the fix.

Where do I find the minimum pulse width my drive accepts?

In the drive manual for your exact model, in the pulse or step input section, usually listed as minimum high time and minimum low time. The value is specific to that input circuit. One LinStep drive manual, document MN1852, lists a step pulse of at least 0.4 ms, which caps that input at 1/0.0004 s, or 2500 pulses per second. Your drive's figure may differ, so take it from its own manual before setting any maximum speed.

Does a 200 kHz pulse output rating mean the motor spins at 200,000 rpm?

No. Pulses per motor revolution come from the drive's microstep or electronic gearing setting, and a gearbox divides the speed again. For example, with a drive set to 10,000 pulses per revolution, 200,000 pulses per second divided by 10,000 pulses per revolution gives 20 revolutions per second, and 20 times 60 seconds gives 1200 rpm at the motor shaft; a 10:1 gearbox reduces that to 120 rpm at the output shaft. Take the pulses-per-revolution figure from your drive's setting, not from this example.

Keep reading

  • 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

  • Explainer

    Stepper Drive Pulse Frequency Limit vs Microstep Demand

    A drive's pulse input is a hard ceiling: at 64 microsteps per full step, 25,000 Hz delivers 390.625 full steps per second, only 39.0625% of the 1,000 full steps per second (64,000 Hz) a 300 rpm axis demands at that setting. Cut the microstep setting to 16 — 16,000 Hz, 0.1125° per microstep — if that resolution still serves the machine; otherwise move the axis to a servo that indexes internally.

    Servo and stepper motion

  • Troubleshooting

    Why a stepper pulse output stops at its frequency limit

    A stepper pulse output stops for one of three reasons: a duty-cycle operand left at zero, a loaded waveform whose high and low times fall below the drive's minimum pulse width, or an output run past its documented range. Set the duty value first, scope the loaded waveform at the drive input, and if you need 10–50 kHz, move to a controller whose datasheet documents that range.

    Servo and stepper motion