Most "bad encoder" calls I get end the same way. The incremental encoder is fine, the counter module is fine, and the problem sits in between. A single-ended encoder landed on a differential input with the minus terminals left empty. A 24 V encoder on a 5 V card. A filter that starts eating pulses once the line gets up to speed. None of these throws a fault. The count just sits at zero, or drifts, or runs backwards.
So here's what the encoder puts on the wire, how to match it to the counter, and the order I check things in when the number is wrong.
What an incremental encoder puts on the wire
An incremental encoder doesn't know where it is. It reports that the shaft moved, how far and which way, as two square waves, A and B, shifted 90 electrical degrees from each other. Whichever one leads tells the counter the direction. Many add a third channel, Z (index, marker, same thing), one short pulse per revolution for homing or for checking that the count didn't slip.
PPR, pulses per revolution, is the number of A cycles per turn. The counter can turn that into counts three ways:
· X1 counts one edge per A cycle, so counts per turn equal PPR.
· X2 counts both edges of A, twice the PPR.
· X4 counts every edge on A and B. A 250 PPR encoder gives 1,000 counts per turn.
For wiring and module choice, though, counts aren't the number that matters. Frequency on each channel is:
f (Hz) = PPR × rpm / 60
1024 PPR at 1,800 rpm puts 30,720 Hz on A and on B. X4 doesn't raise that frequency. It raises how fast the module has to count, 122,880 counts a second here, which is why counter cards quote a lower input frequency for X4 than for plain counting.

A and B a quarter cycle apart, Z once per turn. X1, X2 and X4 read the same incremental encoder signal, they just count more of its edges.
Match the output to the input, not the other way around
The receiving end decides what output the encoder should have. Buy the incremental encoder for the card or the card for the encoder, either way they have to agree on how the signal is driven and what voltage it arrives at.
|
Output type |
On the wire |
What the input needs |
Where it bites |
|
NPN open collector |
Pulls the line to 0 V, never drives it high |
A pull-up to the input voltage, inside the encoder (often 1.5 or 2.2 kΩ) or added at the input |
No pull-up, no high level, no counts |
|
Push-pull (totem pole), HTL |
Drives high, close to the supply (10-30 V typical), and low |
A 24 V single-ended input, return tied to encoder 0 V |
Supply ripple rides on the high level |
|
Differential line driver, TTL (RS-422) |
5 V signals with inverted partners: A', B', Z' |
A differential 5 V input, pairs twisted |
Won't switch a 24 V input |
|
Differential HTL |
10-30 V signals with inverted partners |
A differential 24 V input. Some HTL versions drop the inverted channels |
The extra wires are where most mix-ups start |
Encoder output types and what the counter input has to provide.
If NPN versus PNP naming on the card side still trips you up, I went through the Allen-Bradley sinking and sourcing convention separately. Now the receivers, the counter modules I most often find behind an incremental encoder:
|
Module |
Encoder level it takes |
Max input frequency |
Filter settings |
|
1734-IJ |
5 V DC |
1 MHz counter and X1, 500 kHz X2, 250 kHz X4 (filter off) |
Off, 10 µs, 100 µs, 1 ms, 10 ms |
|
1734-IK |
15-24 V DC |
Same as the 1734-IJ |
Same as the 1734-IJ |
|
1756-HSC |
Separate 5 V terminals (4.5-5.5 V) and 12/24 V terminals (10-26.4 V) on every input, one shared RET |
1 MHz counter mode, 250 kHz encoder X1 and X4 |
None, 50 Hz, 500 Hz, 5 kHz, 50 kHz (Series C, firmware 4.x and later) |
|
1769-HSC |
Differential inputs, 2.6-30 V DC: line drivers, or single-ended devices (open collector needs a pull-up) |
1 MHz, 500 kHz X2, 250 kHz X4 |
None, 10 µs, 500 µs, 5 ms |
|
Siemens TM Count 2x24V |
24 V only: sourcing, sinking or push-pull |
200 kHz input, 800 kHz counting with quadruple evaluation |
100 Hz up to 200 kHz, in steps |
Common counter modules: signal level, frequency limit and filter choices.
Two mismatches cost the most. A 24 V push-pull encoder on a 1734-IJ is the expensive one: that input is built for 5 V with a ±6 V ceiling, and going over it can permanently damage it. The opposite breaks nothing. A 5 V line driver won't reliably turn a 15-24 V input on, so on a 1734-IK the count sits at zero or jumps around while the module looks perfectly healthy.
Programmable encoders add a twist. Programmable versions of SICK's DFS60, for one, can be set to TTL or HTL and leave the factory on TTL, though they run on anything from 4.5 to 32 V. Power it from 24 V, land it on a 24 V card, and it still talks TTL until somebody reprograms it.
The minus terminals are part of the input
This one I find more than all the others put together. A differential counter input is two terminals per signal: A+ and A- on a 1769-HSC, A and Aret on the 1734-IJ and 1734-IK, the 5 V or 12-24 V terminal plus RET on a 1756-HSC. Current goes in one and comes out the other. The minus side is not an optional inverted channel you can leave empty.
With a differential incremental encoder it's straightforward. A to A+, A' to A-, same for B and Z, each pair twisted together.
A single-ended encoder (push-pull or PNP style) still needs those minus terminals landed. They go back to the encoder's 0 V, the same 0 V that feeds the encoder supply. Left floating you get anything from a dead counter to counts while the shaft stands still.
Open collector NPN needs one more part. The pull-up goes from the supply to the input's plus terminal, the encoder output pulls that point down, the minus terminal goes to supply common. A 1769-HSC input wants at least 2.6 V and 6.8 mA, so the pull-up can't be bigger than 352 Ω at 5 V, 1,382 Ω at 12 V or 3,147 Ω at 24 V. How small it can go depends on what the encoder output can sink.
Unused inputs need the same attention. On a 1756-HSC in counter mode with only A wired, a floating B reads as count up, so it works on the bench. I still jumper the unused B or Z 12-24 V terminal to its own RET, the way that module is meant to be wired. An open B is an antenna, and B going high flips the count direction.

Three ways an incremental encoder lands on a differential counter input. In every case the minus terminal goes somewhere: to the inverted wire, or back to encoder 0 V.
When it counts, just not correctly
A counter stuck at zero is honestly the easy case. The miserable one counts almost right and loses a few counts every cycle.
Check the filter first. Say a 1024 PPR incremental encoder runs at 1,800 rpm into a 1769-HSC with the 10 µs filter on. That's 30.7 kHz on A and B, so each high pulse lasts about 16 µs. The filter always blocks anything up to 7.4 µs and always passes anything from 25 µs up. Sixteen falls in the gap. Some pulses get through, some don't, and nothing faults. Switch the filter off and the same encoder counts clean.
Every module words its filter differently, so convert the setting to a minimum pulse time and compare it with half the period at top speed. On a TM Count 2x24V the 20 kHz setting suppresses anything shorter than 20 µs, so it would eat this same encoder. 50 kHz (8 µs) would not.

A 16 µs pulse lands between "always blocked" and "always passed" on a 1769-HSC's 10 µs filter. Nothing wrong with the incremental encoder, and the count still wanders.
Counting on ordinary inputs in ladder is the other slow killer. Each pulse has to stay on for at least one scan and off for at least one, so a 10 ms scan tops out at 50 Hz, before the DC input filter takes its own cut (one of those I covered on the 5069-IB16 and its 1 ms filter). Fine for a slow index wheel. Not for a motor shaft.
Then noise. What has worked for me:
· Individually shielded twisted pairs. A 1769-HSC is good for 300 m on that cable.
· Shield grounded at one end only, the receiver end, short drain. Ground both ends and you invite a ground loop.
· A foot or more between the encoder cable and motor or power wiring. If they share a tray, share it with low-power DC only.
· Differential output on long runs, since push-pull carries supply ripple on every high pulse. And check length against frequency: the TM Count 2x24V allows 600 m of shielded cable, but only 50 m at 200 kHz.
|
Symptom |
Usual cause |
What I check |
|
Stays at 0, encoder powered |
Level mismatch, minus terminals floating, no pull-up |
Volts at the input terminals while turning the shaft by hand |
|
Counts with the shaft still |
Floating inputs, shield grounded at both ends, motor leads alongside |
Unused and minus terminals, shield ends, routing |
|
Right at low speed, short at high speed |
Filter too slow, counting in logic, over the module limit |
PPR × rpm / 60 against filter and module limits |
|
Counts the wrong way |
A and B swapped, or the replacement reads the opposite direction |
A/B wiring, or the receiver's direction invert |
|
Wrong after a power cycle |
Normal for an incremental encoder |
Homing routine, or another encoder type |
Symptom, usual cause and the first check.
A meter covers the supply and slow pulses with the shaft turned by hand. At speed you need a scope. On a healthy 24 V push-pull channel the high sits within a few volts of the supply, the low close to zero, and B stays a quarter of a cycle off A.
Replacing an incremental encoder: what has to match
When the encoder really is dead, the swap goes wrong in its own ways. Read the old label before ordering and pin down:
1. PPR. A different PPR changes the scaling, so the counter setup or the drive (pulse number, p408 on a SINAMICS) changes with it.
2. Output type and level: open collector, push-pull HTL or TTL line driver.
3. Supply voltage range.
4. Channels: A and B only or with Z, and whether the inverted channels exist.
5. Shaft and mount: solid or hollow, diameter, flange, coupling.
6. Connector and pinout. Wire colors don't carry over between brands.
7. For a programmable unit, what it's set to out of the box.
Power the machine down for the swap. A shorted or grounded supply wire can kill the new encoder on the way in.
If the replacement counts backwards, swap A and B on a single-ended encoder. On a differential one swap A with A' and leave the B pair alone. Or flip it in software: the TM Count 2x24V has an invert direction setting, a SINAMICS drive has p410. Look at the coupling before touching code, though. A cracked or slipping flexible coupling looks exactly like a counting problem.
One thing no new incremental encoder will fix: after a power loss the count starts over. That's the design. If the machine can't afford a homing run after every outage, it needs an absolute encoder.
FAQ
What is an incremental encoder?
A rotary or linear sensor that sends pulses as it moves: usually two square waves, A and B, offset by 90 degrees, plus an optional Z pulse each revolution. It reports movement and direction, not position, so the controller counts from a known reference.
Is PPR the same as counts per revolution?
Only in X1. A 1024 PPR encoder gives 2,048 counts per turn in X2 and 4,096 in X4.
Can I wire a 5 V TTL incremental encoder to a 24 V PLC input?
Not directly, 5 V won't switch a 15-24 V input. Use an input that takes 5 V (the 1734-IJ, the 5 V terminals on a 1756-HSC, or a 1769-HSC) or an HTL encoder. The reverse is worse: 24 V can damage a 5 V input.
Does an incremental encoder keep its position after a power loss?
No. The position lives in the counter, and the counter starts over. Home on Z or a home switch, or use an absolute encoder.
When it really is the counter module
Most of the time the fix is a wire or a setting. When the module did die, IQElectro stocks surplus counter modules for the platforms above: the 1734-IJ for 5 V encoders, the 1734-IK for 15-24 V, the 1756-HSC for ControlLogix and the 1769-HSC for CompactLogix. Stock moves, so the product page shows what's on the shelf right now, and every part carries a 2-year warranty. Send over the label data from your incremental encoder and the controller model, and we'll tell you which module fits.