AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Where the position loop closes decides your servo conversion

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

Short answer

In a stepper-to-servo conversion the deciding quantity is where position error is computed. A drive that accepts step-and-direction closes its own position loop from its encoder input and needs no motion card. A ±10 V analog amplifier pushes the loop to an external controller that reads the encoder itself and refreshes its command every servo cycle, so identify each amplifier's documented mode before buying hardware.

On this page
  1. Where does the position loop close in a servo axis?
  2. What do the Hall sensors tell the amplifier that the encoder does not?
  3. Can my existing step-and-direction output run a servo drive?
  4. Why can't the parallel port send 10 V pulses to an analog amplifier?
  5. What does the external controller have to do every servo cycle?
  6. How fast must the encoder feedback run at top speed?
  7. Do you buy the motion card before or after identifying the amplifier?
  8. Questions asked

Swapping steppers for servos stalls on one question that has nothing to do with motor size: where does the position error get computed? A servo drive that accepts step-and-direction closes its own position loop from its own encoder input, so the controller output that ran your steppers keeps working. A ±10 V analog amplifier closes only its current or velocity loop and hands the position loop to an external controller, which must read the encoder itself and refresh its command every servo cycle. Identify which architecture each amplifier in the panel implements — from its manual, not its connector — and the controller choice, the wiring and the tuning sequence all follow. This article walks that decision in the order the panel forces it.

Where does the position loop close in a servo axis? #

Either inside the drive or inside an external motion controller, and that single location decides the whole conversion: a step-and-direction drive measures its own position error from its own encoder input, while an analog amplifier pushes the loop out to a controller that reads the encoder itself.

A servo axis nests three regulators: current producing torque innermost, velocity around that, position around both. The inner two almost always live in the amplifier. The position loop is the one that migrates, and its address decides who counts encoder lines, which cable carries the feedback, and what the control software must do in real time.

Question at the panel Position-mode step-and-direction drive Analog amplifier with external controller
Who computes position error The drive, from its encoder input The external controller, from its encoder input
Where the encoder wires Drive feedback terminals Controller encoder channel
What the controller streams Pulse count and pulse frequency A refreshed analog command
Loops the amplifier closes Position, velocity and current Current or velocity, per its mode
Deciding datasheet numbers Drive maximum input pulse frequency against controller maximum step output rate Controller maximum encoder count rate and per-axis servo update

Same motor, same encoder, opposite wiring, and only the amplifier manual tells you which column your hardware lives in. The companion explainer on servo control loops in the drive or the controller takes that nesting one level deeper.

What do the Hall sensors tell the amplifier that the encoder does not? #

Commutation, not position: three Hall switches report which sector the rotor sits in so the amplifier energizes the right phase pair, while the encoder reports the fine motion the position and velocity loops act on.

Brushless motors have no brushes to switch current between windings, so the amplifier commutates electronically: it energizes the phase pair that makes torque at the rotor's present angle. Three Hall-effect switches around the stator report which sector the rotor occupies — on/off, commutation-grade information. Halls dominate sensored brushless drive because they are a cheap, robust way to get that coarse angle, and many encoder assemblies build the Hall elements right into the encoder housing, which is why motor cables so often carry both.

The incremental encoder answers a different question: how far and how fast the shaft moved since the last count. That is the fine feedback the velocity and position regulators act on, and it never by itself identifies the rotor's absolute electrical angle at power-up — which is why a sensored amplifier wants the Hall wires at its commutation inputs even when the encoder runs onward to a drive or an external controller. Some brushless drives instead establish the initial angle with a documented search move; the motor and amplifier manuals decide which scheme your pair uses. A brushed motor commutates too, mechanically, through its brushes and commutator, which is why a brushed amplifier needs no Hall input at all.

Can my existing step-and-direction output run a servo drive? #

Yes, when the amplifier is documented as a position-mode step-and-direction drive: the pulse count sets commanded displacement, pulse frequency sets commanded speed, the encoder wires straight to the drive, and your existing controller output stays in service.

This is the architecture most servo drive families were built around, deliberately, for compatibility with the step-and-direction wiring steppers left behind. Inside the drive, an electronic gearing stage maps incoming pulses to an internal position reference; the encoder lands on the drive's own feedback terminals; and the drive closes position, velocity and current as nested loops. Commanded resolution is a configured gear ratio, so nothing forces one pulse per encoder count — a fine encoder does not burden the controller, because in this architecture the controller never sees encoder lines at all. The capacity check is two documented numbers: the controller's maximum step output rate against the drive's maximum input pulse frequency, both taken from the datasheets of your exact parts. The contrast with what you are replacing is laid out in a step and direction servo drive versus an open-loop stepper, and when a step and direction servo drive is closed loop explains why this architecture closes the loop by construction.

Why can't the parallel port send 10 V pulses to an analog amplifier? #

Because a pulse command and an analog command are different interfaces: a pulse is a counted increment of position, an analog reference is a continuously varying voltage, and a parallel-port logic output is a switching signal, not a precision analog output.

In a step-and-direction interface the voltage matters only as logic high or logic low; the information is in how many pulses arrive. In an analog interface the information is the instantaneous voltage itself: torque mode reads a voltage proportional to requested current, velocity mode a voltage proportional to requested speed, within a range the amplifier manual specifies — ±10 VDC is the classic span. A PC parallel port provides logic outputs that switch between two levels, so "10 V pulses" from it is a category error, not a wiring choice. Read the amplifier's command input specification for range and meaning before anything else; what signals a ±10 VDC analog servo amplifier expects collects them. A serial link does not rescue the mismatch either: serial can configure an amplifier or exchange status, and it carries motion commands only where the equipment explicitly documents that function. Select by the documented control architecture, never by which connector happens to fit.

What does the external controller have to do every servo cycle? #

Read every encoder count, subtract commanded from actual position, push the error through the position loop, and refresh the analog output at its servo rate; one documented DSP-based motion controller, as an example, updates each axis every 50 microseconds with a 250 microsecond trajectory rate.

Concretely, each cycle it latches the encoder counters, subtracts actual from commanded position, pushes the error through the position gain, and writes the result to the analog output; between writes the amplifier's inner velocity or current loop keeps regulating on the last value it received, so torque never vanishes. What the update interval limits is how quickly the position loop sees and corrects an error. That is deterministic real-time work, which is why general-purpose step-pulse software is the wrong tool here: it emits pulses opportunistically, it does not guarantee a read-compute-write every 50 microseconds. A purpose-built motion controller closes the loop in dedicated hardware or firmware, and what an external motion controller does for servo drives walks those pieces. Because the computer on this path is part of the servo chain, it belongs at the machine and is picked for deterministic operation — the usual fit is a fanless mini PC in the cabinet beside the drives.

How fast must the encoder feedback run at top speed? #

Take an example axis with a 1024-line quadrature encoder and a 3000 rpm top speed: 1024 lines times 4 counts per line gives 4096 counts per revolution, and 4096 counts per revolution at 50 revolutions per second gives 204,800 counts per second of feedback to process.

The arithmetic, as a calculated example for those inputs: 3000 rpm divided by 60 gives 50 revolutions per second; quadrature decoding turns 1024 lines into 4096 counts per revolution; and 4096 counts per revolution at 50 revolutions per second is 204,800 counts per second arriving on that one axis's encoder channel. Three such axes put roughly 614,400 counts per second on the controller in the analog architecture, all of it to be latched and subtracted inside the servo cycle. For the example controller that counts encoder inputs to 80 MHz and updates each axis every 50 microseconds, one axis at that count rate delivers about 10.2 counts per servo update — comfortable visibility — and the numbers that decide your case are your encoder's count rate at top speed against the receiving device's documented maximum encoder input rate. These are calculated figures for the stated inputs, not a measured result or a rating of any specific encoder.

The same arithmetic prices the step-and-direction path. Commanding one step per encoder count would mean 4096 steps per revolution at the same top speed, again 204,800 steps per second — a rate legacy parallel-port step generators were not built to sustain; as a rule of thumb they live in the tens of kilohertz, not hundreds. That is what the electronic gear ratio is for: at a chosen example of 2000 steps per revolution, the same axis needs 100,000 steps per second, or 100 kHz, which must sit inside both the drive's documented maximum input pulse frequency and the controller's documented maximum step output rate. Take both numbers from the datasheets of the exact drive and controller.

Do you buy the motion card before or after identifying the amplifier? #

After: write down each amplifier's documented command interface, operating mode, encoder input format and maximum count rate, commutation inputs, and the motor's continuous and peak current limits, then buy the controller that matches that list.

A connector header already prepared for a motor proves the connector, not the architecture. From each amplifier manual, pull the facts in the order they gate the design: command interface; operating mode, meaning which loops the amplifier closes; encoder input, its format and maximum count rate; commutation inputs, Hall or a documented alternative; and the motor's continuous and peak current limits, which the drive's configured limits must stay inside. In a three-amplifier panel this is exactly where a conversion splits: an amplifier documented for step-and-direction drops onto the existing controller output, while analog amplifiers demand an external position loop, so the honest options are running mixed architectures axis by axis, replacing the analog amplifiers with step-and-direction drives, or keeping them and committing to a real-time controller that reads the encoders itself.

The decision, per case: if any amplifier is documented as a position-mode step-and-direction drive, use it that way — encoder to the drive, existing pulse output in service, no motion card. If the amplifiers are analog-only and keeping them is the priority, buy the external motion controller whose documented encoder rate and per-axis servo update cover your axes at top speed, and give the position loop to it. If the shortest conversion from a working step-and-direction system matters more than keeping the analog hardware, replace the amplifiers, not the controller. Buying hardware before the list is written is how panels end up with a card that cannot talk to the amplifiers in it. And rough in the power supply with the machine locked out: a servo DC bus holds hazardous voltage after power-off until the amplifier manual's stated discharge time has elapsed, so apply the lockout procedure your risk assessment and NFPA 79 call for before touching bus terminals.

Questions asked

Do the Hall sensors make the encoder optional?

No. In a brushless axis the Hall switches give the amplifier coarse rotor sectors for commutation, typically six transitions per electrical revolution, while the encoder supplies the fine counts the position and velocity loops act on. The two answer different questions, both usually appear on the motor cable, and the amplifier manual assigns where each one lands. An axis positioned only from Hall sectors would be six steps per electrical revolution coarse, which is unusable for a machine axis.

What holds the motor between controller updates in an analog system?

The amplifier's inner loop. Its velocity or current regulator keeps acting on the last analog value the controller wrote, so torque does not disappear between updates. That is why the controller's documented per-axis servo update and its maximum encoder count rate, not its processor brand, decide whether an analog amplifier is controllable at your axis speed.

Does the step rate have to match the encoder counts one for one?

No. The drive builds its internal position reference from the pulse stream through an electronic gear ratio you configure, then compares that reference with the encoder's native count, so encoder resolution and commanded step size stay independent quantities. Practically, that means you can keep encoder resolution high for smooth error correction while choosing a step size your controller's output rate can sustain at top speed.

What gets set first when commissioning a step-and-direction servo drive?

Scaling and limits before tuning. Set the electronic gear ratio so one controller step equals a chosen distance on the machine, set the drive's current limits inside the motor's continuous and peak ratings from its nameplate or datasheet, confirm the drive's encoder input accepts the encoder's signal format at top speed, and only then tune the loops with the drive's documented procedure.

Keep reading

  • Explainer

    When a Step and Direction Servo Drive Is Closed Loop

    A step and direction servo drive is closed loop because the drive itself reads the motor encoder and corrects position with its internal PID loop, thousands of times a second; the step pulses are only a position command. Feed encoder pulses to the controller as well only when its logic must know actual position, and only after the encoder, drive and controller documentation agree on signal format, levels and loading.

    Servo and stepper motion

  • Explainer

    Servo control loops in the drive or the controller

    Keep the current and speed loops in the servo drive, and close the position loop in the drive too. A position loop implemented in the controller runs no faster than the fastest task-class cycle, typically 1 to 10 ms, versus tens of microseconds in a modern drive — at 500 mm/s and 4 ms of delay that is already 2 mm of transport error. Default to drive-closed loops; move the loop into the controller only for slow, non-registration axes after measuring.

    Servo and stepper motion

  • Troubleshooting

    Where the Position Loop Closes in an Ultra 200 Servo Drive

    The letter on the Ultra 200's front display answers the question. In Analog or Follower mode the drive closes only the velocity and current loops and the 1746-HSTP1 module owns position; in Preset mode the drive closes the position loop itself. The feedback words returned to the SLC 500 are monitoring data, never a correction path, so PLC logic does not compare encoder position and re-command the drive.

    Servo and stepper motion