AutomateDirectUSAMotion LibraryShop the parts catalog

How-to

Wiring a TTL quadrature encoder to drive encoder terminals

Sensors, encoders and machine vision on the machine Published 8 min read

Short answer

Land the encoder's A, B, ENC+ and ENC- conductors on the drive's four encoder terminals and insulate the index wire: it has no terminal. Power the encoder from the drive's encoder supply only when its datasheet current sits under the drive's stated limit; otherwise feed it from an external five-volt supply and fit the manual's 470 ohm resistor between ENC- and ENC+, then verify counts before the drive takes power.

On this page
  1. What kind of encoder does this drive need?
  2. Which encoder wire lands on which drive terminal?
  3. When does the encoder need its own 5 V supply?
  4. Where does the 470 ohm resistor go, and when is it required?
  5. What order do I follow to land the wires?
  6. What happens to the encoder's index wire?
  7. How do I verify the wiring before the drive takes power?
  8. Questions asked

A five-wire TTL quadrature encoder lands on a four-terminal encoder block with one deliberate leftover: A, B, ENC+, ENC- each get a terminal, and the index wire gets heat-shrink. Power the encoder from the drive's own encoder supply only when its datasheet current sits under the drive's stated limit; past that, feed it from an external five-volt supply and fit the 470 ohm resistor the drive manual requires between ENC- and ENC+. This page walks the landing order, the supply decision with real numbers, and the checks that prove the wiring before the drive takes power.

What kind of encoder does this drive need? #

The drive wants a digital quadrature encoder with TTL-level, single-ended outputs running from a single five-volt supply, a resolution of at least 200 lines, and — if you feed it from the drive's own encoder supply — a supply current below the drive's stated limit.

Those are the requirements the encoder hook-up section of this drive family's manual states, and they are the acceptance test before any wire is stripped. Channels A and B arrive as two square waves a quarter cycle apart, and a decoder that counts both edges of both channels gets four counts per line, so 200 lines is 800 counts per revolution at that decode. TTL and open-collector outputs are both single-ended — one conductor per channel — but their levels and pull-up behavior differ, so match the encoder's output type to the drive's encoder-input specification before landing anything. Every number on this page is that manual's number; wire a different drive family and its manual's encoder section takes over, while the landing order and the index decision below hold unchanged.

Which encoder wire lands on which drive terminal? #

Four of the five conductors land on the encoder block: encoder 0 V to ENC-, encoder supply to ENC+, channel A to the phase A terminal and channel B to the phase B terminal; the index conductor is insulated, because the drive has no terminal for it.

Drive terminal Name in the manual Lands on
Terminal 5 ERR/RES No encoder conductor — jumper to terminal 7 for first power-up
Terminal 6 ENC- Encoder 0 V (the wire marked Ground); external supply 0 V joins here when used
Terminal 7 ENC+ Encoder supply; external supply positive joins here when used
Terminal 8 PHASE A Channel A
Terminal 9 PHASE B Channel B

Five-wire TTL cables label the same functions with different words — Ground, 5VDC, A Channel, B Channel, Index on a common cable — so land by function, never by matching strings. When the printed names on the two ends refuse to line up, map them function by function, the way Matching Encoder Signal Names Between Motor and Servo Drive maps motor-side signal names onto drive-side names.

When does the encoder need its own 5 V supply? #

Read the supply current figure off the encoder datasheet: the drive's encoder supply is only for encoders drawing less than 50 mA, so a typical industrial incremental encoder listed at 120 mA needs its own external five-volt supply.

The manual's rule, stated once: encoder supply current below 50 mA and terminal 7 is fed from the drive's own supply; at or above it, the encoder moves to an external five-volt supply, which is also what brings the next section's resistor into play. The decision needs exactly one datasheet number.

Worked example, over the limit: a Sensata HS35 incremental encoder datasheet lists a 5 to 28 VDC input, a driver that is TTL-compatible at the low end, and supply current of 120 mA typical plus load current. 120 mA minus the drive's 50 mA budget leaves 70 mA over, and 120 / 50 = 2.4 times the limit: this encoder class is external-supply territory. Size the external supply for encoder current plus the resistor load from the next section — 120 mA plus 10.6 mA is about 131 mA — and a 250 mA supply leaves 250 - 131 = 119 mA of margin. Those are calculated figures for that datasheet's inputs, not a measured result. Note the phrase "plus load current": the stated figure is a floor and output loading adds on top, which is why drive-fed operation wants real margin.

Worked example, under the limit: a datasheet listing 30 mA typical sits under the line with 50 - 30 = 20 mA of margin, so terminal 7 takes the drive's supply and no resistor is fitted.

Where does the 470 ohm resistor go, and when is it required? #

The 470 ohm resistor goes between ENC- and ENC+ and is required only when an external supply powers the encoder; it adds about 10.6 mA of load, and it is left out when the drive powers the encoder.

The manual states it as a requirement of the external-supply case: the resistor goes from terminal 6 to terminal 7 when an external supply powers the encoder. The load figure is Ohm's law at the supply voltage: 5 V / 470 ohms = 0.0106 A. Dissipation check for the part: P = V x V / R = (5 V x 5 V) / 470 ohms = 25 / 470 = 0.053 W, which is 0.053 / 0.25 = about 21 percent of a quarter-watt resistor's rating — a calculated example, and any ordinary 0.25 W part runs cool. The manual calls the resistor out specifically because the external-supply case is where it gets skipped: treat it as part of the supply wiring, fitted before first power, not an optional extra. In the drive-fed case the resistor stays out — the manual's drive-fed wiring includes none, and adding one only loads the drive's own supply.

What order do I follow to land the wires? #

Land everything with the drive powered down: four conductors first, the index wire insulated on its own, the 470 ohm resistor fitted only if an external supply is in use, then the ERR/RES-to-ENC+ jumper for the first power-up.

  1. Switch the drive off and verify its bus capacitors are discharged before any terminal block is opened — drive capacitors hold charge after shutdown.
  2. Land the encoder 0 V conductor on terminal 6, ENC-.
  3. Land the encoder supply conductor on terminal 7, ENC+ — from the drive's internal supply when the datasheet current is under the drive's limit, from the external supply otherwise, with the external supply's 0 V tied to ENC- at this same single point so the signal return and the supply return share one node.
  4. Land channel A on terminal 8 and channel B on terminal 9.
  5. Cut the index conductor back, heat-shrink its end on its own, and keep it out of every bundle.
  6. Fit the 470 ohm resistor between terminals 6 and 7 whenever step 3 drew from the external supply — before power, not after.
  7. Jumper terminal 5, ERR/RES, to terminal 7, ENC+, as the manual's terminal wiring section instructs for first testing; leave the jumper in place unless that manual's commissioning pages give ERR/RES another job.
  8. Restore power, command a slow jog, and confirm the drive counts smoothly in both directions before closing the position loop.

What happens to the encoder's index wire? #

Insulate the index conductor individually and land nothing on it: it emits one pulse per shaft revolution, this drive block has no index terminal, and a bare floating end that touches a phase conductor can corrupt the count.

The wire still earns its keep as a diagnostic: power the encoder, put a scope probe on the insulated conductor, and turn the shaft by hand — a clean single pulse per turn confirms the encoder's code disk and index stage are alive, independent of the drive. Insulation is the termination. Do not park the stripped end on a spare terminal "for later" and do not twist it in with another conductor; a grounded or coupled index edge buys nothing on this block and can couple glitches into the phase lines.

How do I verify the wiring before the drive takes power? #

Before the drive takes power, ohm out every landed conductor from encoder pin to terminal, confirm the ENC- to ENC+ reading is about 470 ohms in the external-supply case, then measure the supply at the encoder and scope A and B about 90 degrees apart.

  • Continuity, drive off and supply disconnected: low ohms from the encoder ground pin to terminal 6 and from the encoder supply pin to terminal 7, and no near-zero reading between any two of ENC-, ENC+, phase A and phase B — except the deliberate path in the next check.
  • External-supply case: resistance from ENC- to ENC+ should read about 470 ohms, the resistor's path; near 0 ohms means a cable short or a mis-landed conductor, and an open circuit usually means the resistor never got fitted.
  • Encoder power alone: feed the encoder from whichever supply serves it and measure at the encoder end of the cable — about five volts between the supply conductor and 0 V. A sagging reading means the supply is current-limiting; on drive power that is the encoder-supply budget announcing itself, and the fix is the external supply.
  • Signals: rotate the shaft by hand and scope A and B for clean TTL square waves about 90 degrees apart, with a single index pulse per shaft revolution if you want the encoder's own health confirmed too.
  • Drive on: a clean meter and scope followed by an encoder alarm points at the hardware under test — the isolation order in Servo Drive Encoder Phase Alarm: Isolate Wiring, Encoder or Drive separates cable, encoder and drive — while missing or jumpy counts without an alarm send you to Servo Encoder Connection Error Alarm: Check Wiring First, which starts at the physical layer this page just wired.

The decision set is short: four conductors land, the fifth insulates, the datasheet current picks the supply — drive-fed and resistor-free under the limit, external with the 470 ohm fitted at or above it — and meter plus scope prove the work before the drive closes a loop.

Questions asked

My encoder has complementary outputs, A and /A, B and /B. Does the same wiring apply?

No. This procedure covers single-ended TTL outputs, one conductor per channel. An encoder with complementary differential pairs needs the input type your drive manual documents for its encoder port; landing a complement on an unused terminal puts two active outputs against each other. Check the encoder's output type and the drive's input type before any conductor is landed.

Is there ever a real use for the index wire I am insulating?

Yes, just never on this drive block. Index gives one pulse per shaft revolution, the reference a lathe needs for single-point threading or a rotary axis needs for a once-per-revolution mark. If the application needs it, land the index conductor on an input built for it, usually on the motion controller, and heat-shrink it only when this drive is the conductor's only destination.

Does a 500-line encoder automatically pass the supply checks?

No. Line count and supply current are separate checks: this drive family wants at least 200 lines and, on drive power, an encoder current below its own supply budget. Verify both against the specific part number, because two encoders with the same line count can carry different output drivers with very different supply current. Take both figures from the encoder's own datasheet.

What cable should carry the encoder signals?

Use shielded cable, terminate the shield the way the drive manual's installation section specifies, and keep the encoder run separated from motor leads and other power wiring. Encoder signals are low-level TTL edges; coupling from power conductors shows up as missing or extra counts that look exactly like a wiring fault. A short unshielded lead survives on a bench; permanent machine wiring does not.

Keep reading

  • Troubleshooting

    Servo Drive Encoder Phase Alarm: Isolate Wiring, Encoder or Drive

    An encoder phase error alarm means the drive is not receiving A and B as clean square waves 90° apart, and the cable is the most common cause. Check in order of cost — connections, waveforms on a scope, encoder mounting, drive parameters — then decide encoder versus drive by substitution: the fault that follows the encoder condemns the encoder; the fault that stays with the drive condemns the drive's feedback input circuit.

    Sensors, encoders and machine vision on the machine

  • How-to

    Matching Encoder Signal Names Between Motor and Servo Drive

    Matching capability labels do not prove a motor and drive will talk. Map the sine and cosine pairs by function, then resolve index, data and clock and the commutation definition from both datasheets into a function-based cable schedule, because the connectors will not match pin for pin.

    Sensors, encoders and machine vision on the machine

  • Troubleshooting

    Servo Encoder Connection Error Alarm: Check Wiring First

    A servo drive raises an encoder connection alarm when it stops seeing a valid feedback signal, and in most cases the fault is a broken conductor, an unseated connector or a damaged pin in the cable path, not the encoder. Check the circuit from connector to connector first, and separate an open feedback circuit from encoder rotation above the drive's specified rate at control-power-on before substituting parts.

    Sensors, encoders and machine vision on the machine