AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

PLC to servo motor: why the drive sits in between

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

Short answer

No PLC drives a servo motor directly: the servo drive between them carries the motor current and closes the encoder loop. Connect the PLC to the drive with a command path both manuals document — pulse train, ±10 VDC analog, or network cyclic motion — then sequence enable, drive-ready and fault signals around it.

On this page
  1. What the drive does that PLC outputs cannot
  2. The three command paths both manuals must document
  3. Why motion function blocks decide the controller choice
  4. Working the numbers for an 8,192 pulse-per-revolution encoder at a 1:1 gear
  5. Sequencing enable, drive-ready and fault around the command path
  6. Commissioning the first axis in eight checks
  7. The decision, case by case
  8. Questions asked

The servo drive always sits between the PLC and the servo motor, and that is the whole architecture: the PLC connects to the drive, never to the motor. The drive carries the phase current the motor's windings need, switches it at frequencies no PLC output stage can reach, and closes the position loop on the encoder thousands of times a second. The PLC's side of the connection is logic-level only: one command path — pulse train, ±10 VDC analog reference or network cyclic motion — plus the enable, drive-ready and fault signals sequenced around it. Pick that path from the two manuals before any wire is stripped, work the pulse count before the first move, and the decision at the end of this page becomes short.

What the drive does that PLC outputs cannot #

A servo motor takes amps of phase current, and its position loop closes on the encoder inside the drive. The PLC output stage was never built to do either: it switches logic-level signals. The division of labour is the same one that keeps a stepper drive between a PLC output and its motor, and the page on why an SR40 PLC needs a stepper drive between output and motor works that architecture out step by step.

The wiring reflects the split. Motor power leads and the encoder cable both land on the drive, and a servo drive manual structures its contents around exactly that, with sections for drive and motor combinations, servo drive control modes, and the drive encoder terminal. The PLC lands on the command interface. If the encoder's signal names do not line up with the drive's feedback port, that mismatch is its own documented task — matching encoder signal names between motor and servo drive comes before anything moves.

The three command paths both manuals must document #

Servo drives expose three command interfaces, and each one needs matching hardware on the controller side. Read the drive's control mode section against the controller's output documentation and pick the row where both sides agree:

Command path What the PLC sends What comes back What both manuals must state
Pulse train Transistor pulse output plus a direction signal Drive-ready and fault contacts, sometimes an in-position output The controller's maximum pulse output rate, the drive's pulse input form and its frequency limit
Analog reference, ±10 VDC An analog output module's speed or torque reference Ready, fault and zero-speed or in-position bits The module's output range, the drive's input range and the scaling that maps volts to r/min
Network cyclic motion Motion function blocks over the fieldbus Full axis status once per bus cycle The controller's motion function block library and the drive's slave profile for that bus

Two mismatches end projects. A pulse output wired to a drive that only accepts an analog reference does nothing at all — that dead end is documented in the page on why a pulse output cannot command an analog servo input. And a pulse train has a ceiling set on the controller side: the same real limit on pulse train speed that governs a stepper axis driven from PLC timers applies here, because the output stage, not the drive, sets the rate. When the pulse path is the choice, the drive and the pulse outputs get configured before the first commanded move, and the walkthrough of configuring a PLC pulse-output servo axis before PLS2 moves is the pattern to follow.

Where the controller speaks a network the drive does not, the route is a documented gateway between them, and a worked case of bridging a legacy PLC network to a modern servo drive shows that pattern end to end.

Why motion function blocks decide the controller choice #

A controller without a motion instruction set can emit a pulse train from plain ladder: timers or high-speed output instructions generate the pulses, and hand-built logic sequences enable, ready and fault. On one slow learning axis that is survivable. On anything that must coordinate two axes, stop predictably or recover from a fault mid-move, hand-built pulse logic is a permanent maintenance liability, and that is the practical reason motion-capable controllers exist.

A controller with a motion library replaces the hand-built parts with tested function blocks: the axis reference ties each logical axis in the program to its drive actuator's parameters, and the mechanical translation converts revolutions into the millimetres the machine actually moves. The network path carries its own startup rule too. One servo family's motion manual documents that cyclic communication with the servo amplifier starts when the CPU module switches from STOP to RUN, so the program has to expect a drive that is not yet on the bus during startup.

Working the numbers for an 8,192 pulse-per-revolution encoder at a 1:1 gear #

Inputs, each with its source:

  • Encoder resolution: the motor's encoder generates 8,192 pulses for one rotation, the worked case in a servo manufacturer's positioning control training manual.
  • Electronic gear: 1:1, one command pulse per encoder pulse, the same manual's starting configuration.
  • Command interface: a pulse train, so the PLC side is a transistor pulse output.

The rule in words: at a 1:1 gear, the command pulse number for one shaft revolution equals the encoder's pulse count for that revolution, and every command pulse is worth 360° divided by that count.

The arithmetic:

  • Angle per command pulse: 360° ÷ 8,192 = 0.0439453125°, which rounds to 0.0439° of shaft rotation.
  • Pulses for one revolution: the full encoder count — at 1:1 there is nothing to convert.
  • Pulse rate: a train of 8,192 pulses per second turns the shaft once per second, which is 60 r/min.
  • Gear change check: at a 2:1 electronic gear the count halves to 4,096 command pulses per revolution, and each pulse is then worth 360° ÷ 4,096 = 0.0879°.

The result is one revolution per encoder count of command pulses, 0.0439° of resolution and 60 r/min from that train. What moves these numbers is the drive's electronic gear: change it by a factor of two and the pulses-per-revolution count changes by that same factor, in the drive's configuration, not in the ladder. Decision: if the machine needs a finer step than 0.0439° per pulse, or a shaft speed whose pulse rate exceeds the maximum output frequency the controller's manual states, set a different gear and re-run these lines before writing any motion code.

Sequencing enable, drive-ready and fault around the command path #

Whatever path carries the commands, the handshake has the same shape. The drive reports ready once its control power is up and no fault is latched. The PLC gates enable — servo-on — on that ready signal and issues motion commands only while both ready and enabled read back true. A fault input freezes the command output and returns the sequence to its start; the reset input, its polarity and its timing come from the drive manual, never from a similar drive's pinout.

Keep the machine's stop outside this sequence. IEC 60204-1, the standard for the electrical equipment of machines, requires a category 0 stop that removes power immediately or a category 1 stop that brings the axis to a controlled standstill before removing power, selected by the machine's risk assessment and working independently of the motion program.

Commissioning the first axis in eight checks #

  1. Read the three documents first — the drive manual's drive-and-motor combination list, its control mode section and the controller's output documentation — and confirm the same command path appears in two of the three before buying or wiring anything.
  2. Wire in this order: motor power, then the encoder into the drive's feedback connector, then the command and status signals. Take every pin assignment from the drive manual; the drive encoder terminal section exists so nobody guesses.
  3. Configure the axis in the software: the axis reference links the logical axis to the drive's actuator parameters, then the mechanical translation makes one commanded revolution equal the distance your mechanics actually deliver.
  4. Power up with motion inhibited and confirm the drive reports ready with no active fault.
  5. Enable without commanding motion. Ready true, enable accepted, zero movement — if the shaft creeps, the drive's offset or the command wiring is wrong, not the program.
  6. Command a small move, one or two revolutions at low speed, and confirm direction, the completion signal and a clean fault-free settle.
  7. Stop and repeat: issue a stop, re-enable, run the same move again, and compare the drive's position report with what the program believes the axis did.
  8. Record the validated configuration — drive model, control mode, electronic gear, scaling, signal map — before the axis cuts or moves product. Retrofit work on any machine goes well only when this documentation came first, as the guide to legacy retrofits built on documentation argues.

The decision, case by case #

  • Small controller, discrete outputs, one slow axis: connect through a pulse train. Choose a drive whose manual documents a pulse input your output stage can meet, generate the profile in the PLC, and accept that the enable, ready and fault state machine is code you write and prove yourself.
  • Controller that documents motion function blocks: use the library and the network path. Tested blocks generate the profiles and report axis state every bus cycle; do not rebuild that in ladder.
  • Analog module already in the panel and a drive with a ±10 VDC input: the analog path works for a single speed or torque command with the profile living in the PLC, and you accept that coordinated multi-axis motion is not this path's job.
  • Never, in any case: motor leads on PLC outputs. The drive is the connection, the command path is the contract, and the two manuals are the only things that decide it.

Questions asked

Where does the servo encoder cable land — on the PLC or the drive?

On the drive. The encoder closes the position loop inside the servo drive, so its cable lands on the drive's feedback connector, the one the manual indexes as its drive encoder terminal. The PLC normally never sees those pulses; when a controller needs actual position data, it reads it through the drive's status signals or the motion bus, not from the motor's encoder cable.

My PLC has relay outputs only. Which command path is still open?

None of the three motion paths directly. A relay output cannot carry a pulse train at servo speeds, and it cannot hold the steady level an analog input expects, so it is fit for on-off duties only, such as switching a power contactor or an enable input on some drives. For the command itself you need transistor pulse outputs, an analog output module, or a network port that both manuals document.

How many command pulses turn the shaft one full revolution?

It equals the encoder's pulses per revolution divided by the drive's electronic gear ratio. At 1:1 with an 8,192 pulse encoder, the command pulse number is 8,192; set the gear to halve that and the count follows exactly. That is why resolution changes belong in the drive's gear setting, not in extra ladder logic that pads or splits pulses.

Do drive-ready and enable mean the same thing?

No. Drive-ready says the control power is up and no fault is active; enable — often called servo-on — authorises the drive to apply current to the motor. Gate enable on a confirmed ready, and treat a ready signal that drops while the axis is enabled as a fault: the drive is telling you it can no longer hold the motor.

Keep reading

  • Explainer

    Can a servo spindle retrofit replace a DC lathe spindle?

    Yes, an 11 kW servo motor and drive can replace a DC lathe spindle, but the kilowatt rating decides nothing by itself. The retrofit works when the servo drive accepts step-and-direction speed commands, the controller's spindle output matches that interface electrically, and the motor's continuous torque covers the lathe's worst cut through the belt reduction. Bench-test enable, direction and speed response with the motor uncoupled before it turns a chuck.

    Servo and stepper motion

  • How-to

    Configuring a PLC pulse-output servo axis before PLS2 moves

    The drives are not plug and play: keep command scaling in one place, the drive's gearing or the PLC program, and stay under the 100 kHz pulse ceiling, which at 10,000 pulses per revolution caps the motor at 600 rpm. Prove direction, limits and homing first, then tune for the load.

    Servo and stepper motion

  • Selection guide

    Servo drive selection for rigid tapping spindle and feed axes

    Select the tapping drive pair by whether the interface keeps feed position locked to the spindle's actual angle, not by which protocol is easier to wire. At the spindle's rated 2000 rpm the feed must run 2000 times the thread lead in millimetres per minute, and the 5 Nm spindle rating works out to about 1.05 kW of shaft power. Two independent pulse-train axes need a tension-compensating tap holder or a controller that gears feed to measured spindle angle.

    Servo and stepper motion