AutomateDirectUSAMotion LibraryShop the parts catalog

Troubleshooting

Using a servo motor encoder as external machine feedback

Servo and stepper motion Published 8 min read

Short answer

A servo motor's native encoder is the drive's feedback interface, not a spare input for the controller. Changing i7010 from 8 to 3 can reassign the hardware that also carries the pulse command, which is why the drive reports Invalid Pulse command as soon as you jog. Keep i7010 = 8, take machine feedback from the drive's documented encoder output, and scale that signal into counts per unit on a separate controller input.

On this page
  1. What the fault and the working mode tell you
  2. Likely causes, cheapest first
  3. Why the motor encoder is not a controller input
  4. Where usable feedback comes from on the drive
  5. Worked example: scaling a 1250-pulse encoder output into controller counts
  6. The decision for this setup
  7. Questions asked

The drive is not rejecting your feedback plan — it is rejecting the pulse command that reaches it. On a TURBO CLIPPER running PFM, the i7010 setup value selects what the command-output channel does. At i7010 = 8 that channel emits the pulse train your drive accepts, so jogging works. At i7010 = 3 the same channel hardware is reassigned so the controller can read an encoder signal, and the terminals that carried the pulse command stop carrying it, so the drive reports Invalid Pulse command on the first jog. The pulse-command path and the feedback path are two separate, separately documented interfaces, and one channel generally cannot serve both at once. Restore i7010 = 8 and leave the command path alone, then take machine feedback from the drive's documented encoder-output interface on its own wiring, scaled into counts per unit on a separate controller input.

What the fault and the working mode tell you #

Invalid Pulse command is the drive's own diagnostic for a pulse command it cannot accept: absent, wrong format, wrong electrical level, or timing outside the drive's pulse-input specification. Which condition it is flagging is written in the drive manual's description of that diagnostic, and that page is worth reading first, because it names the condition rather than the symptom.

Your two results already isolate the fault to the controller side. At i7010 = 8 the axis jogs, so the drive, the motor, the power wiring and the pulse format were all accepted before the change. The fault appeared exactly when a controller channel setting changed, so the drive's pulse input and its parameters are the working baseline, not the suspect.

One thing the symptom does not tell you: a position number that changes on the controller is not proof of shaft feedback. PFM generates a pulse-frequency command, and a controller can track the pulses it commands without measuring the shaft at all. Identify which value you were watching — commanded-pulse position or measured encoder position — before you trust either as machine feedback.

Likely causes, cheapest first #

Work down this order; each item carries the check that confirms or clears it.

  1. The i7010 change reassigned the hardware that carries the pulse command. In the TURBO CLIPPER documentation for the installed board, read what i7010 = 3 and i7010 = 8 each select, and list every input and output function that changes between the two values. If value 3 turns the pulse-output pins into encoder-input functions, the fault is explained on paper, and the remedy is a separate feedback channel — not a hunt through the drive.
  2. The motor encoder has no readable quadrature signals at all. Open the motor encoder's interface documentation and look for channel A, channel B and an index signal with defined electrical levels. Many servo encoders speak a serial or proprietary protocol to one drive family only; if the manual shows no A, B and Index pulses, nothing on that cable can feed a controller counter, and no wiring change will create them.
  3. The drive's pulse-input format does not match what the controller emits in the faulting mode. Read back the drive's command-format settings from its parameter chapter — pulse-and-direction versus a two-channel format, active level, edge or level logic — and compare them against the controller's output arrangement as changed by the mode switch.
  4. The command signal is distorted or absent at the drive terminals. This is the check that needs an instrument and the machine in a controlled commissioning state. Jog at low speed and measure pulse and direction at the drive's command terminals in both modes; compare pulse width, edge quality, frequency and direction-transition timing with the drive's pulse-input specification. A valid-looking signal at the controller connector does not prove the drive receives one.

Move or land any wire only with the drive disabled, and keep the E-stop in reach for any live jog made while probing.

Why the motor encoder is not a controller input #

The motor encoder exists to close the drive's own current and position loops, and its interface is specified between that motor and that drive — nothing more. The signal-name split between the two ends is worked through in Matching Encoder Signal Names Between Motor and Servo Drive; the electrical side follows the same split, because levels and protocols are chosen for the drive's receiver, not for a general-purpose counter card.

Two consequences follow. Paralleling the motor encoder cable to a second receiver is not a documented connection unless the encoder documentation says the line drives a second load; the added receiver can corrupt the very feedback the drive depends on. And an encoder-output connection on the drive, when one is provided, is a different interface from the motor's native feedback, with its own power, signal type and cable rules — one encoder-output module manual of this class, for example, requires 24 V DC input power and lists differential RS-422 as the signal type available on its Output A and Output B connectors.

Some drives also accept a second position-feedback device on dedicated terminals, for exactly this purpose of giving an outer loop its own measured position; the drive manual names the terminals and the signal types it takes. If the drive offers neither an encoder output nor a second-encoder input, the controller needs its own machine-mounted encoder, because the motor cable has nothing to give it.

Where usable feedback comes from on the drive #

Three interfaces are in play, each documented on its own:

  • Command path, controller to drive: pulse and direction into the drive's command input. The i7010 = 8 setting protects exactly this path.
  • Drive feedback path, motor to drive: the encoder or resolver interface the drive is built around. The controller does not belong on this cable.
  • Machine feedback path, into the controller: the drive's encoder-output interface, a documented second-encoder input, or a separate machine-mounted encoder on its own controller channel.

Take the encoder output's electrical definition from the drive's manual before cutting a cable. Differential RS-422 drivers do not talk to a 24 V single-ended input directly, and the level-matching problem is the same one walked through in Connecting a 5V Servo Encoder to 24V PLC Inputs. Landing differential A, B and Index pairs on a counter input follows the wiring discipline set out in Wiring a TTL Quadrature Encoder to Drive Encoder Terminals, with the direction of flow reversed: the drive is now the source and the controller the receiver. Cable length and pair count come from that same manual rather than from habit, because the limits differ by encoder family.

Verifying that the counts actually arrive, and what to check when a counter drops pulses at speed, is covered step by step in Counting Encoder Pulses on a PLC Without Losing Position.

Worked example: scaling a 1250-pulse encoder output into controller counts #

Inputs, each with its source:

  • Encoder output scaling: 1250 pulses per motor revolution — the example value used in a servo drive parameter chapter, where the scaling factor is documented to represent directly the number of encoder output pulses for one motor revolution. Read the real value back from the drive's parameter set before relying on it.
  • Decoding multiplier: x4, assuming the controller counter registers every state change of channels A and B (quadrature x4). At x1 counting, the result is 1250 counts per revolution instead.
  • One revolution: 360° at the motor shaft.

The rule in words: counts per revolution equals pulses per revolution times the decoding multiplier; counts per degree equals counts per revolution divided by 360; resolution per count equals 360 divided by counts per revolution.

The arithmetic:

  • 1250 pulses/rev x 4 = 5000 counts/rev
  • 5000 counts/rev ÷ 360° = 13.9 counts per degree
  • 360° ÷ 5000 counts = 0.072° per count

The result is a calculated example for these inputs: at x4 decoding this scaling delivers 5000 counts per motor revolution and resolves 0.072° of shaft rotation per count.

The decision it leads to: this scaling is adequate for an axis that must place no finer than 0.072° at the shaft. If the requirement is finer, raise the drive's scaling factor until counts per revolution ÷ 360 clears it, and re-check the counter input, because count frequency in Hz equals counts per revolution times shaft speed in rev/s, and that product must stay below the counter input's documented maximum frequency. Bench-verify before trusting the numbers: with any outer loop disabled, turn the shaft through exactly one marked revolution and expect 5000 counts, then the same counts back in reverse. For linear travel, counts per mm equals 5000 ÷ travel per revolution in mm, with travel per revolution taken from the machine's drawing.

The decision for this setup #

  1. Restore i7010 = 8 and record it as the commissioning baseline. Save the controller and drive configurations, the command wiring and the feedback wiring before anything else changes; that value keeps the pulse command the drive demonstrably accepts.
  2. Do not make i7010 = 3 carry the command and the feedback at once. If the board documentation confirms the two functions share the channel, the feedback belongs on a separate documented channel or on the drive's encoder-output interface — the mode change is not the route to machine feedback.
  3. Scale the chosen feedback per the worked example and verify it before use: stable counts with the shaft stationary, counts rising in one direction and falling in the other, no jumps or dropouts. Close any outer position loop only after that check, starting from low gains.
  4. If the drive has neither an encoder output nor a documented second-encoder input, do not persist with the motor cable. Fit a separate machine-mounted encoder for the controller and leave the motor encoder to the drive; an Invalid Pulse command is a command-path fault, and no amount of tuning on the PMAC fixes a rejected command.

Questions asked

Can I split the motor encoder cable so the drive and controller both read it?

Only if the encoder documentation states the line drives a second receiver. Motor encoder lines are usually point-to-point with limited driver current, and an extra load slows the signal edges enough to corrupt the drive's own position feedback. If the manual is silent, treat the motor cable as reserved for the drive and take machine feedback from the drive's encoder-output interface or a buffer it documents.

Why does the controller's feedback position drift away from the commanded position even with the encoder connected?

Commanded-pulse position and counted-encoder position are two different numbers. The command value counts pulses the controller believes it sent; the feedback value counts what the shaft actually did. When the drive's pulse scaling and the controller's count scaling differ, the mismatch shows up as a steady gain error that grows with travel distance. Correct it by setting the feedback scale from the drive's documented pulses per revolution and verifying over a known displacement, not by tuning gains.

Do I need to retune the PMAC after switching the feedback source?

The drive's current loop and its own motor-feedback loop are untouched, so drive-side tuning stays exactly as commissioned. What changes is the controller's outer position loop, and only if you close one around the counted feedback. Bring it up disabled, verify raw counts, set the scale, then close the loop with low gains and step up from there. Tuning is never the fix for an Invalid Pulse command.

How far can I run the cable from the encoder output to the controller?

Use the length and cable type the encoder-output documentation allows rather than a generic rule. One encoder manual of this class, for example, specifies a four-wire 2-pair AWG 22 cable up to 20 m, a 3-pair cable to 30 m and a 5-pair cable beyond that. Longer runs add capacitance and erode the differential margin, which shows up as missed counts at speed.

Keep reading

  • Troubleshooting

    Fix Servo Travel Error After Swapping Resolver and Encoder

    Travel that does not match the position display after a resolver-to-encoder swap is a scaling fault: the drive or the technology axis is still converting counts with the other feedback's increments per revolution. Measure one commanded move and divide actual by displayed travel; a constant ratio equal to the resolution ratio names the encoder data. Fix both layers, re-home, then re-tune.

    Servo and stepper motion

  • Explainer

    Mounting a Motor Encoder Behind a Belt Reduction

    No, not for commutation: field-oriented control switches phase current against the rotor's electrical angle, which only a sensor on the motor shaft reports directly. Behind a 10:1 belt, a 4096-count encoder gives about 410 counts per motor revolution — enough counts per pole to turn a 6-pole motor, but belt lash and multiplied noise put a load-dependent error inside the current loop. Use the belt-side sensor for velocity only; commutate from the motor shaft and add an output encoder if you need load position.

    Servo and stepper motion

  • 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