Troubleshooting
Why a differential input rejects a single-ended 5 V encoder signal
Short answer
A counter or positioning input built for complementary pairs cannot read a 5 V single-ended encoder: its receiver switches on the difference inside each pair, and one conductor per channel never presents one. Add a differential line-driver stage that generates the complements of A, B and Z, or fit a head with symmetrical pairs or a documented 24 V single-ended output.

On this page
You are right to suspect the module: an encoder input built for complementary pairs cannot read a single-ended 5 V head, and no parameter change will alter that. The receiver switches on the voltage difference between the two conductors of each pair, A against its complement and B against its complement, and a head that outputs only A, B and Z referenced to signal ground never presents a valid difference. The count sits at zero or chatters on coupled noise. Two repairs work: insert a differential line-driver stage that generates the missing complements, or fit a reading head with an output the module accepts — 5 V symmetrical pairs, or 24 V single-ended where the module documents that input type. Below: how to confirm the mismatch, how to convert the signal, and how to prove the fix.
What the receiver actually measures #
A differential receiver built to RS-422, the balanced-voltage interface standard, does not care whether a wire sits high or low; it cares which of the two conductors in a pair is more positive. The standard defines the arrangement in one line: each channel leaves the driver as a true signal and its mirror-image complement on a twisted pair, and the receiver output flips when the difference between them crosses a threshold, in either direction. That is the noise trick — interference coupled onto the pair raises both conductors together, the difference survives, and the count survives with it. This is why symmetrical pairs are the choice for longer cables and higher pulse frequencies, and why datasheets that call the outputs asymmetrical and symmetrical mean single-ended and differential.
A single-ended TTL output has one conductor per channel, measured against the signal reference. Wire it to the true terminal and the receiver waits for a complement that never arrives: an open complement gives an undefined difference, and the same signal landed on both terminals gives a difference of zero. Either way there are no valid edges, so no count. The voltage is not the problem — both interfaces run on the same supply level — the missing second conductor is.
Confirm the mismatch, cheapest checks first #
Work through these in order; each either confirms the interface mismatch or finds a cheaper explanation.
- Read the head's connection diagram. It shows either paired outputs or single conductors for A, B and Z. A star, bar or slash in a signal name proves nothing about inversion — the same labeling trap as matching encoder signal names between motor and servo drive. Only the diagram or a measurement settles it.
- Read the module's input description. Confirm it expects RS-422 differential pairs, and look for any single-ended or TTL input type it lets you select. Some encoder interface chips combine both kinds of receiver — the MAX14890E, for example, contains four differential and two single-ended receivers — so a documented single-ended mode is the cheapest fix of all.
- Scope the head. Put the axis in a safe state and remove power from the drive amplifier first, so a test pulse cannot command motion. Probe A against the encoder's signal reference while moving the scale slowly by hand: expect a clean square wave. Repeat for B — a second square wave, phase-shifted from the first — and for Z, which changes state only at the index mark.
- Inspect the cable and connector. If no complement conductors exist anywhere between head and module, and the first three checks showed valid single-ended outputs, the mismatch is confirmed: the head is healthy, the interface is wrong. Do not infer a missing complement from wire color or pin position; that is how a supply conductor lands on a signal input.
Convert the signal with a differential line driver #
The converter's whole job is one logic function per channel: it outputs each signal together with its complement, the complement being the logical NOT of the original. Three single-ended channels in, three pairs out. Two rules decide whether it works:
- A complement must be generated, not split. Landing the same conductor on both terminals of an input pair is a difference of zero, not a differential signal; the complement terminal needs its own inverted signal.
- Pairs stay pairs. Twist true and complement together all the way to the module terminals, keep channels apart, and never trade the signal reference for the shield connection. The driver fixes the signal format; it does not fix grounding, swapped pairs or cable-routing faults.
Give the board the encoder's supply and signal reference, route A, B and Z through separate driver channels, and — before anything reaches the counter — measure both conductors of each pair against reference: at every encoder position the two must sit in opposite logic states.
Wiring a 5-wire-in, 8-wire-out board for A, B and Z #
The case: a 250 mm linear incremental head with single-ended square-wave channels A, B and Z on a 5 V supply, and a small conversion board with 5 input wires, 8 output wires and one quad differential line driver of the DS34C87TM type. The arithmetic says whether that board covers the whole job.
Inputs, with their source. From the head's connection diagram: 3 single-ended channels (A, B, Z) plus 1 supply wire and 1 signal-reference wire. From the board's silkscreen: 5 input wires and 8 output wires. From the driver package: 4 driver channels in one chip.
Rule. Each single-ended channel takes one input wire and leaves as a pair — two output wires, signal plus complement. The supply and the reference pass through, one wire each.
Arithmetic.
- Input wires: 3 channel wires + 1 supply wire + 1 reference wire = 5 wires.
- Output wires: 3 pairs × 2 wires per pair = 6 signal wires; 6 signal wires + 1 supply wire + 1 reference wire = 8 wires.
- Driver channels: 3 used, 1 of the 4 left spare.
Result. The counts match the board exactly — 5 in, 8 out — so every channel gets its complement and nothing is shared or left out.
Decision. Measure each output pair against reference before wiring the module: when one wire sits near the positive supply rail, the other must sit near zero, at every position along the scale. If all three pairs read opposite states, wire them straight to the module's input pairs. If any pair ever shows the same state on both wires, that driver channel is dead — replace the board rather than feed the counter a broken pair.
Or change the output type at the head #
If the module has no single-ended mode and you would rather not add a board, the head's output type has to change. Three candidates:
| Output type | Conductors per channel | Readable by the differential input? | What to do |
|---|---|---|---|
| 5 V single-ended (TTL) | 1 | No | Convert with a line driver, or select a documented single-ended input type |
| 5 V symmetrical (RS-422 pairs) | 2 | Yes | Wire each pair to its input pair; first choice for long cables and high frequencies |
| 24 V single-ended (HTL) | 1 | Not directly | Use only where the module lists this input type |
The symmetrical head is the one to order for high pulse frequencies and long cable runs, because the pair rejects the coupled noise that eats single-ended edges at speed. The HTL head is common and works only if the module offers that input type — and that is a voltage-level question, a different fault from the missing complements here, the one covered in connecting a 5 V servo encoder to 24 V PLC inputs.
Commissioning checks that prove the fix #
- Stationary. With the drive still disabled, the displayed count holds steady — no drift, no random increments. Drift points to a floating complement or a reference problem, not to scaling.
- Direction. Move the scale in the machine's defined positive direction: the count should rise. If it falls, use the module's direction setting, or exchange the complete A pair with the complete B pair where the hardware documentation allows — never swap one conductor inside a pair, which inverts that channel's polarity and leaves the wiring lying about which wire is which.
- Index. Configure reference-mark use only after plain counting works, then confirm the capture happens at the physical index mark. A working count proves nothing about Z.
- Known travel. Move a measured distance and check the displayed change against the pulses per millimetre printed on the encoder's data sheet. Scaling, resolution and direction settings interpret valid pulses; they cannot manufacture the complements the interface was missing.
The decision for each case #
- The module documents a single-ended or TTL input type: select it and buy nothing. That is the whole fix.
- No such mode, and the head stays: add a line-driver converter covering A, B and Z, verify opposite states on every pair, then wire pairs to input pairs.
- A new head anyway: order the symmetrical-pair output for speed and cable length; order the HTL single-ended head only if the module's documentation lists that input type.
- Neither side documented: do not force it with settings — convert the signal or change the input. Matching voltage alone never made these two interfaces compatible.
Questions asked
What happens if I leave the complement terminal open instead of tying it to the true signal?
The receiver sees an undefined difference, so its output can freeze in one state or toggle on coupled noise, and some modules raise a wire-break or encoder-signal diagnostic. An open complement is not a workaround; it is exactly the fault a differential input is built to avoid.
Can a 24 V single-ended encoder feed this differential input through a resistor divider?
No. Dropping the level does not create the missing complement, and the receiver still gets one conductor per channel. Use a 24 V single-ended input type on the module if one is documented, or a head with complementary pairs; a divider only adds a second mismatch on top of the first.
Where do I get a single-ended to differential converter?
Encoder makers sell small boards that take single-ended LVTTL channels and output RS-422 pairs so an existing head can drive an RS-422 controller, and generic signal converters do the same job. Check that the unit covers all three channels, A, B and the index, not just the two position channels.
Does the converter distort the quadrature or add counting error?
A line driver repeats each channel and its complement without adding or subtracting counts. Run A and B through the same package so both channels see the same propagation delay, twist each pair, and confirm with a slow hand move that the two square waves still overlap by a quarter of a cycle at the module terminals.