Troubleshooting
Why a parallel absolute encoder shows no count on a PLC card
Short answer
A parallel absolute encoder has no pulse output: it presents the shaft position as a 25-bit binary word across individual PNP lines, so any counter or high-speed input waiting for edges shows zero. The cure is to match the card's input common to PNP sensing, prove each bit at the connector and at the card, and read all the bits together as one unsigned value.

On this page
- Why does a counter card read zero from an absolute encoder?
- How many bits is the word, and is it binary or Gray code?
- Why do all the PLC inputs stay off when the encoder is powered?
- How do you test a single position output with a meter?
- How do you watch the raw input word before touching the program?
- How do you turn the 25 bits into one position value?
- Which fix applies to the symptom you are seeing?
- Questions asked
A parallel absolute encoder will never give a pulse counter anything to count, because it outputs no pulses: it holds the shaft's whole position as a binary word, one bit per output line, and changes that word only as the shaft moves. The example unit here is a multiturn encoder with a 25-bit word of PNP outputs on a 37-pin connector; take the figures for your own unit from its connection leaflet. Reading zero on a high-speed counter is therefore not a fault. The fix is to treat the encoder as a static input word: match the input commons to PNP sensing, prove every bit at the connector and again at the card, then assemble the bits into one number, in the order the sections below follow.
Why does a counter card read zero from an absolute encoder? #
Because there are no edges to count: this encoder holds the complete position as a parallel word, one bit per output line, and those lines change only when the shaft moves, so a counter waiting for pulses sits at zero indefinitely.
An incremental encoder is the pulse device: it reports motion, and the controller accumulates edges to know where it is, which is the job described in counting encoder pulses on a PLC without losing position. An absolute encoder reports position directly: at power-up, before any movement, the word already states where the shaft is. Nothing in that word is a frequency for a counter to measure.
So "no count" on this unit is not a defect, it is the wrong interface. The receiving side needs one discrete input per position bit and logic that reads them as a single word, or a dedicated parallel-encoder input card.
How many bits is the word, and is it binary or Gray code? #
It is 25 bits of straight binary: 12 bits give 4096 positions within one revolution, 13 bits give 8192 revolutions, and 4096 x 8192 = 2^25 = 33,554,432 distinct states, running from 0 to 33,554,431.
Binary matters twice here. Do not run a Gray-code conversion on this word: that decoding belongs to absolute encoders built with Gray code, and reading a Gray code absolute encoder into a PLC covers that different job. And because binary carries flip several bits at once, a position change can toggle many outputs on the same edge, so expect that when you probe the lines.
The 37-pin Sub-D carries the position bits plus supply and auxiliary connections. Connector size identifies nothing: take the pin assignment from the encoder's connection leaflet, and check whether its drawing shows the encoder face or the mating face before you number any wire.
Why do all the PLC inputs stay off when the encoder is powered? #
Because a PNP output only drives an input whose common returns to 0 V: a card wired for NPN sensing, a missing 0 V reference between the encoder supply and the card, or a threshold mismatch leaves every indication dark while the encoder itself runs normally.
A PNP output sources current: when a bit is ON, the line is pulled toward the supply positive and the input's return path to 0 V completes the circuit. Take the three checks in this order, cheapest first:
- Input common: confirm the card's common-terminal arrangement selects sinking inputs for PNP signals; that common-terminal choice is the same one that selects PNP or NPN sensing on CNC digital inputs, explained in how digital input commons select PNP or NPN.
- Reference: wire the encoder's 0 V and the card's common exactly as the two connection diagrams show; without that reference the ON current has no return path and nothing lights.
- Thresholds: the outputs are rated 10-30 VDC, so a 24 VDC input card is the intended partner; confirm the card's documented ON and OFF threshold voltages sit inside the encoder's documented output levels. A 5 VDC encoder trying to switch 24 VDC inputs is the opposite mismatch, covered in connecting a 5V servo encoder to 24V PLC inputs.
How do you test a single position output with a meter? #
Measure the supply at the encoder's own power terminals first, then one position output against its documented signal reference while rotating the shaft by hand until that bit shows both an ON and an OFF level.
Work through the checks in this order:
- Isolate power and check for shorts and misplaced conductors at the Sub-D connector before energizing.
- Energize and read the supply at the encoder terminals; it must sit inside the supply range on the label or leaflet. The 10-30 VDC figure describes the outputs, not the supply.
- Pick the lowest-order position bit, meter that output against the documented signal reference, and turn the shaft slowly until you catch both levels.
- Interpret the result: a transition at the connector with no matching change at the card points to wiring, polarity, the common or the threshold; no transition at the connector points to supply, the wrong pin, or an auxiliary input held in an undocumented state. Every one of those is cheaper to check than replacing the encoder.
How do you watch the raw input word before touching the program? #
Open the controller's raw input display and identify every channel wired to a position bit, because the pattern changing with shaft movement is the only proof that each output reaches its own input.
- Watch the low-order bits first: a small hand movement should change them immediately.
- Do not condemn a high-order bit that sits still during a small movement; a turn-count bit changes only after a full revolution, so one stationary reading proves nothing about it.
- Match each transition you metered at the connector to the channel you assigned to it; a bit landing on the wrong channel is a mapping fault, not a dead output.
- Keep scaling, offsets and position arithmetic switched off until the raw pattern is repeatable at two or three shaft positions.
How do you turn the 25 bits into one position value? #
Map the encoder's least-significant bit to bit 0 of a 32-bit unsigned integer and add up the weights, because 25 bits will not fit a 16-bit word and the value is used exactly as transmitted, with no code conversion.
The position is the sum of 2^k for every bit k from 0 through 24 that reads 1. When the channels land in more than one input word, map them explicitly instead of concatenating terminal groups and hoping the order matches. The within-revolution value is the position modulo the counts per revolution, and the turn number is the integer quotient.
Worked example, calculated from example inputs and not a measurement: the raw inputs show bits 13, 12, 10 and 9 ON and the rest OFF at standstill. Position = 2^13 + 2^12 + 2^10 + 2^9 = 8192 + 4096 + 1024 + 512 = 13,824 counts. Turn = floor(13,824 / 4096) = 3; within-revolution value = 13,824 - 3 x 4096 = 1536; shaft angle = 1536 x 360 / 4096 = 135 degrees.
One count equals 0.0879 degrees of shaft angle, and that figure is resolution, not mechanical accuracy. Accept the mapping when a stationary shaft returns the same value on repeated reads, and take direction from observed movement before adding machine scaling or an offset.
Which fix applies to the symptom you are seeing? #
A word that is right at standstill and wrong on the move points at capture, not wiring: binary carries flip several outputs together, so channels that update in different groups or carry different filter times can be latched mid-transition.
Establish correct stationary readings first, then test at the machine's working speed, and decide from what you see:
| What you see | Most likely cause | The fix |
|---|---|---|
| Every input off, encoder powered | Inputs cannot sink PNP signals, or the 0 V reference is missing | Rewire the card's common for PNP sensing and bond the encoder 0 V as the diagrams show |
| Output switches at the connector, input never changes | Wrong terminal, polarity or threshold | Land the conductor on the mapped channel and confirm thresholds against the output levels |
| Raw bits change, displayed position does not | Channel mapping or word assembly | Map each channel explicitly and sum the weights into one 32-bit value |
| Position jumps at repeatable boundaries | Bit order reversed or a channel missing | Re-map the least-significant bit to bit 0 and re-prove every channel |
| Stationary reads right, moving reads spike | Bits captured incoherently | Capture all channels in one input update, shorten the filter, verify at controlled speed |
In every row the encoder is the last part replaced: a word that changes at the connector and arrives at the card is doing its job, and the fault is in the commons, the mapping or the capture, all fixable at the panel.
Questions asked
How fast do the parallel outputs change at running speed?
At 60 rpm the shaft turns once per second, so the word steps through 4096 counts each second: the least-significant bit is then a 2048 Hz square wave, and the input filter and update time must stay well under a quarter of a millisecond or moving reads smear. That is a calculated example for that speed; scale it to your actual rpm.
Can the connector pins outside the position word be left unconnected?
No. The remaining pins carry the supply, the 0 V reference and auxiliary functions, and the connection leaflet assigns every one of them. Treat none as spare: an auxiliary input left in an undocumented state can hold the outputs inactive, which looks exactly like a dead encoder. Wire or leave open only what the leaflet directs for your model.
Does an all-zero input word mean the encoder has failed?
Not necessarily. Zero is a valid position at the start of the measuring range, so a healthy encoder can legitimately show every output low at standstill. The decisive test is movement: turn the shaft slowly and watch the raw inputs. If the low-order bits change and the pattern tracks the shaft, the encoder and wiring are good and the fault sits in scaling or word assembly.
Can the encoder connect to an SSI or fieldbus encoder port instead?
No. SSI and fieldbus encoder ports expect a clocked serial string or a bus telegram, and neither can read static parallel lines; this word needs one discrete input per bit. If the PLC has no inputs to spare, the legitimate route is a converter that reads the parallel bits and retransmits them as SSI or on the fieldbus, mapped as a single position value.