AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Why an analog output cannot drive a stepper motor directly

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

Short answer

No — a PLC analog output supplies a low-power command signal measured in milliamps, while a stepper winding needs amps switched in the correct sequence. Put a stepper drive between the PLC and each motor, command it with pulse-and-direction or an analog speed signal, and scale the pulse count to travel.

On this page
  1. Can a PLC analog output run a stepper motor directly?
  2. What does a stepper drive do that an analog output cannot?
  3. Should the stepper drive take pulses or an analog command?
  4. How do you convert commanded travel into pulses?
  5. Can ordinary PLC outputs generate the pulse train?
  6. What does each stepper axis need besides the command signal?
  7. What can home and limit sensors prove on an open-loop stepper axis?
  8. Questions asked

No — a PLC analog output cannot drive a stepper motor. An analog channel supplies a low-power command signal, tens of milliamps at most, while a stepper winding needs amps switched in the right sequence, and the element that does that is a stepper drive. A three-axis rig with three motors therefore needs three drives, one per axis, whatever the analog channel count says. This article explains what the drive contributes, compares pulse-and-direction with an analog speed command, works the pulse-scaling arithmetic for a 250 mm pick-and-place move, and states what home and limit sensors can and cannot prove on an open-loop stepper axis.

Can a PLC analog output run a stepper motor directly? #

No. An analog output supplies a low-power command signal, typically a 0–10 V or 4–20 mA signal that sources only a few tens of milliamps, while a stepper winding needs around one amp per winding or more switched in sequence; the power stage that does that is the stepper drive.

The two devices solve different problems. An analog output is built to present a voltage to a high-impedance load — a typical 0–10 V input expects a load on the order of a kilohm — while a motor winding measures a few ohms. Wire one to the other and the output simply saturates into its current limit: nothing turns, and the channel can be stressed depending on its protection. Adding analog channels cannot change this, because twelve channels of command signal still contain zero winding power.

The architecture is always controller, then drive, then motor. The drive sits between them and takes whatever command signal the PLC can actually produce, so the decision that shapes the rest of the system is which command interface the drive accepts.

What does a stepper drive do that an analog output cannot? #

A stepper drive switches regulated current through the motor's two windings in the firing sequence that creates rotation: it sets torque, divides each full step into microsteps for smoother motion, and holds the shaft with rated current when enabled and stationary — work no signal-level module performs.

Drive vendor literature describes the job the same way: converting pulsed control signals from a PLC or indexer into accurate position and speed control. In practice the drive contains the power electronics the analog output lacks — a current-regulating switch stage that draws from a separate motor supply and limits winding current to the setting you choose. That setting must match the motor's rated winding current, taken from the motor and drive datasheets rather than guessed. Microstepping is a drive-side setting, which is why it reappears in the scaling arithmetic below.

Should the stepper drive take pulses or an analog command? #

For a positioning axis, take pulse-and-direction: the pulse count sets distance, the pulse frequency sets speed, and a direction line sets the sign, so the command itself defines the destination; an analog input commands speed or torque in most drives, which never by itself defines one.

Command interface What the signal means What you must verify Suits
Pulse and direction Pulse count = distance, pulse frequency = speed, direction line = sign Availability of CPU pulse outputs, drive input voltage levels, drive maximum input frequency Point-to-point moves
A/B phase-shifted pulses Two pulse trains; which one leads sets direction Same checks as pulse-and-direction, plus the drive's mode for the pair Positioning where the controller offers that style
Analog speed or torque Scaled signal whose meaning is set by the drive's operating mode Matching signal ranges, scaling, reference wiring, and how the axis stops Feed rate or speed control, not a destination

An analog input earns its place where the process wants a velocity or a force and no destination exists: a feed rate, a conveyor speed trim, a torque limit. The moment the axis must arrive at a coordinate and stop there repeatably, the command has to be countable, and an analog signal is not. If a drive offers both inputs, choose per axis: pulses for the positioning axes, analog for any purely speed-controlled one.

How do you convert commanded travel into pulses? #

Divide pulses per motor revolution by travel per motor revolution: with a 200-step motor, an 8-microstep drive setting and a 5 mm pitch screw, that is 200 × 8 = 1600 pulses per revolution, and 1600 ÷ 5 = 320 pulses for every millimetre of travel.

Read every input from the actual hardware: the motor's step angle from its datasheet, the microstep setting from the drive's configuration, the transmission ratio from the machine. For one axis of a pick-and-place rig, the scaling chain is a calculated example for these inputs, not a measured result:

  • Motor step angle 1.8° per full step: 360 ÷ 1.8 = 200 full steps per motor revolution
  • Drive microstep setting 8: 200 × 8 = 1600 pulses per motor revolution
  • Transmission, 5 mm pitch lead screw with direct drive: 1600 ÷ 5 = 320 pulses per mm of travel
  • Move from pickup to drop-off, 250 mm: 250 × 320 = 80,000 pulses
  • Travel speed 40 mm/s: 40 × 320 = 12,800 pulses per second, a 12.8 kHz pulse train with the direction line held

Check 12.8 kHz against two documented limits before committing: the drive's maximum pulse input frequency and the controller's maximum pulse output frequency, both read from the datasheets of the exact parts. Then respect the scaling trap: if the drive's microstep setting changes to 16 without rescaling, the axis needs 3200 pulses per revolution and 640 pulses per mm, so the same 80,000-pulse command now travels 80,000 ÷ 640 = 125 mm — twice the distance, with no error message. A fixed ratio between commanded and actual travel is the signature of a scaling mismatch, and the article on a stepper axis that travels a fixed multiple of the commanded distance walks one down: article:stepper-axis-travels-1-25-times-the-commanded-distance.

Can ordinary PLC outputs generate the pulse train? #

No. Toggling a regular output in the program produces pulses timed by the scan cycle, so both the frequency and the count drift with program length and scan load; motion needs the CPU's dedicated hardware pulse outputs, which keep running independently of the scan.

Pulse trains for motion come from hardware pulse outputs — often labelled PTO on compact PLCs — which clock pulses in silicon while the program does something else. They appear in two styles: pulse-and-direction, and A/B phase-shifted pairs where the lead or lag of one train against the other sets direction. Check which style the drive expects, which the CPU provides, and how many axes the CPU can clock at once. Relay and general-purpose discrete channels switch orders of magnitude too slowly for a 12.8 kHz train. What bit-banging actually breaks — pulse width wandering with scan time — is worked through in the article on stepper pulse timing from a PLC discrete output module: article:stepper-pulse-timing-from-a-plc-discrete-output-module.

What does each stepper axis need besides the command signal? #

Every axis needs its own drive, a motor supply sized per the drive manual, the drive's current setting matched to the motor's rated winding current, and the discrete lines that turn the drive on and clear faults — enable and alarm reset — wired from ordinary PLC outputs.

Wire the chain in this order and check each link against the two datasheets it connects:

  1. Controller pulse outputs to the drive's pulse and direction inputs, at the voltage level and sink/source arrangement both datasheets call for.
  2. Ordinary discrete outputs to the drive's enable and alarm-reset inputs.
  3. Motor supply to the drive's power terminals, sized by the rule in the drive manual.
  4. Drive output to the motor windings, connected per the drive manual's wiring option, with the current setting matched to the motor's rating.

Commission one axis alone — home it, jog it both ways, verify direction and travel — before the three axes share any sequence logic. On the mechanical side, a flexible shaft coupling between the motor shaft and the lead screw absorbs the small angular and parallel misalignment that a rigid connection would turn into bearing load and lost steps: https://automatedirectusa.com/categories/flexible-shaft-couplings.

What can home and limit sensors prove on an open-loop stepper axis? #

A home sensor gives the axis a repeatable reference and limit sensors catch the travel ends, but on an open-loop stepper nothing checks the steps in between: if the motor stalls, the PLC's counted position stays clean while the physical axis sits short of it.

Open-loop means the controller counts commands, not motion. Keep acceleration and speed within the torque the motor can actually deliver, because a stall comes from acceleration set past the torque margin or from a mechanical bind, and no sensor will report it. Let sequence logic trust physical events over counted position: the gripper only closes after a part-presence sensor confirms the part arrived, which proves the event, not the coordinate. Where lost steps keep recurring, a closed-loop stepper drive closes the position loop around a motor-mounted encoder, and the tuning walkthrough for a closed-loop pulse-and-direction stepper covers that setup.

One safety note: on a vertical axis, energized windings are the only thing holding the load, so the axis drops when the drive disables or faults. Gravity axes need a mechanical brake or counterbalance, chosen as part of the machine's risk assessment — limit switches and drive protection are function checks, not safety validation.

Questions asked

What happens if I wire a stepper winding straight to an analog output?

Nothing useful. A winding measures only a few ohms, so the analog output sees something close to a short circuit: it current-limits at its few-tens-of-milliamp rating, the motor develops no torque, and the channel's output stage can be stressed or damaged depending on its protection. Keep the drive in the circuit; it is the only element in the chain designed to switch winding current.

Can I position an axis with an analog speed command and a timer instead of pulses?

Roughly, but expect drift. Distance becomes speed multiplied by time, so every scan and timer error turns into travel error: at 40 mm/s, 5 ms of jitter is 0.2 mm per move, and load changes pull the real speed away from the commanded one. It suits feed rates and conveyors, not repeatable pick-and-place positions.

Does each drive need its own motor power supply?

Yes. The command signals come from the controller side, but winding current comes from a separate motor supply connected to the drive's power terminals, sized by the rule in that drive's manual: voltage within the drive's documented input range, and supply current typically well below the motor's phase current, because a chopping drive converts power rather than passing it straight through.

Why does a stepper hold the shaft stiff but never rotate?

The drive has the windings energized at the set current, so the axis has holding torque, but no valid motion command is arriving. Check in this order: drive enabled with no fault showing, command mode selector matching the wiring, pulses or the analog command reaching the input the drive is configured to listen to, and the direction line state. The drive's status LEDs and the controller's online diagnostics show whether the command exists at the far end.

Keep reading

  • Explainer

    Servo Positioning Resolution Versus Stepper Step Angle Explained

    A 0.018° move needs 360 ÷ 0.018 = 20,000 usable feedback counts per revolution, which come from the encoder and the drive's decoding and scaling, not from the servo label. Matching 3,000 command pulses per revolution on a stepper and a servo only matches command scaling; short-time overload capacity and high-speed performance still differ.

    Servo and stepper motion

  • Troubleshooting

    Stepper Axis Travels 1.25 Times the Commanded Distance

    A constant ratio of 1.25 between commanded and actual travel is a pulse-to-unit scaling error, not a velocity-profile effect: a completed move's distance depends only on the pulse count sent and the pulses-to-distance conversion. Measure R = actual travel / commanded travel at each boundary — command entry, pulse output, driver microstep or electronic gear, gearbox and screw lead — and correct the one setting where R first leaves 1.00. Never hide the error with a compensating multiplier.

    Servo and stepper motion

  • 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