Explainer
What it takes to read an absolute encoder into discrete PLC inputs
Short answer
Yes — a bit-parallel absolute encoder connects directly to discrete PLC inputs, with no special card, once four checks pass: output voltage matches the input card, one input is free for every bit, the logic converts Gray code to binary where needed, and the shaft stays under the scan-time speed limit. Networked Ethernet or Modbus encoders need documented protocol support in the PLC first.

On this page
- Can a bit-parallel absolute encoder connect straight to PLC inputs?
- Does the encoder output voltage match the PLC input card?
- How many PLC inputs does an absolute encoder need?
- Is the encoder output binary or Gray code?
- How fast can the encoder turn before the PLC misses positions?
- Can an Ethernet or Modbus TCP absolute encoder work on the same PLC?
- What do you verify before ordering the encoder?
- Questions asked
Yes — an absolute encoder with a bit-parallel output wires directly into a small PLC's discrete input card, with no special module between them, provided four checks pass before you order hardware: the output voltage matches the input card's rating, the card has a free input for every bit, the logic converts the code format into a usable number, and the axis moves slowly enough between scans for the inputs to be sampled honestly. An Ethernet, TCP/IP or Modbus encoder is a different purchase: it only works where the controller's protocol support is documented first. This article walks the checks in the order you meet them, with the arithmetic that sets the speed limit and a decision for each case.
Can a bit-parallel absolute encoder connect straight to PLC inputs? #
Yes, a bit-parallel absolute encoder wires directly into ordinary discrete inputs, because the encoder holds one dedicated output for each bit of its position word and the PLC reads that group as plain on/off signals assembled into one number.
Parallel is the output family that speaks a discrete input card's native language: no protocol stack, no counter card and no special firmware sit between encoder and inputs. The word absolute on a datasheet covers several unrelated output families — bit-parallel, serial point-to-point protocols, and network types that speak Ethernet, TCP/IP or Modbus — and only bit-parallel lands on plain discrete inputs. If the axis moves continuously and every intermediate count matters, the realistic interface is a latching counter input, and choosing an absolute encoder interface for a high-speed counter PLC is its own walk-through.
Decision: bit-parallel is the only absolute-encoder output family that connects to plain discrete inputs; the others need protocol or counter support the input card does not have.
Does the encoder output voltage match the PLC input card? #
Only if the encoder's output level and the input card's rating agree: most discrete PLC inputs are rated for 24 VDC, while many absolute encoders switch 5 VDC outputs, and a 5 V signal does not reach a 24 VDC input's guaranteed turn-on voltage.
Wire with the machine locked out under the site's lockout procedure and control power verified dead at the terminals; the encoder lines are low energy, the cabinet around them is not.
Then compare two datasheet lines rather than two product families: the encoder's output stage rating — voltage, and whether the outputs source or sink current — against the input card's rated voltage and its guaranteed ON and OFF thresholds. The mismatch above fails quietly: the low-voltage signal never crosses the card's guaranteed turn-on threshold, so bits read at random or never read at all, a fault that looks like a logic problem and is pure wiring. When the levels differ, the supported paths are a level-shifting stage or an input card rated for the encoder's voltage, and the walk-through for connecting a servo encoder to PLC inputs at a different voltage covers that wiring and the sourcing-versus-sinking check on the commons.
Decision: matching level and output type means wire directly; mismatched level means shift the level or change the input card — never connect on the assumption the card will tolerate it.
How many PLC inputs does an absolute encoder need? #
One input per bit, plus a common return: an 8-bit encoder needs 8 inputs and resolves 256 positions per revolution, a 10-bit encoder needs 10 inputs for 1024 positions, and a 12-bit encoder needs 12 inputs for 4096.
Resolution doubles with every bit, because 2 to the power of the bit count sets the number of distinct positions per revolution, so the bit-count line on the encoder datasheet is also the input-count requirement on the card. Check the free input points on the CPU or an expansion card against that number, count the commons, and keep a few points spare for a valid or fault bit. Wire every output to the input whose weight matches, least significant bit to least significant bit, because a swapped pair still reads as a plausible number that simply lies about the position. Inputs are never shared between bits, so a card that runs out of points pushes the decision to an expansion card or a different encoder. When the bits are wired and the value never moves at all, the no-count causes for a parallel absolute encoder on a PLC card run from mapping errors to missing commons.
Decision: bits plus commons plus spares must fit the card's free points before the encoder is ordered; otherwise change the card or the encoder, not the wiring discipline.
Is the encoder output binary or Gray code? #
It matters: Gray code changes exactly one bit between adjacent positions, so a sample taken during a step is wrong by at most one count, while natural binary can flip several bits at once and read as a completely wrong number.
The output-code line on the datasheet answers it, and both formats ship on parallel absolute encoders. Binary assembles straight into a number once each bit sits on the input matching its weight. Gray needs one extra pass in the logic: copy the most significant bit, then form each next binary bit as the previous binary bit exclusive-OR'd with the next Gray bit.
Worked example on a four-bit word: Gray 1011 becomes binary 1101. Copy the leading 1, then 1 XOR 0 = 1, 1 XOR 1 = 0, and 0 XOR 1 = 1, so the binary word is 1101, decimal 13. The same exclusive-OR chain runs across the full word width every time the value is read. Some motion platforms carry a word-level Gray-to-binary function; where none exists, a short exclusive-OR chain in the ladder or function-block language does the identical job. The bit-level walk-through for reading a Gray code absolute encoder into a PLC covers the input-mapping side of that conversion.
Decision: buy knowing the code and budget the conversion either way — binary saves the logic, Gray buys the one-bit error bound that protects any sample taken while the word is changing.
How fast can the encoder turn before the PLC misses positions? #
Slower than you might expect, because the PLC observes its inputs once per scan: with a 10 ms scan and a 12-bit encoder, the shaft must stay under about 1.5 rpm for every intermediate position to be captured — the worked example below shows the arithmetic.
A discrete input group is only observed once per scan, so a position that appears and vanishes between two scans is never seen. The honest design requirement is that each position hold steady for at least one full scan, and that turns the scan time into a hard speed limit on the shaft.
Calculated example, for a 10 ms scan and a 4096-step single-turn encoder:
- One scan lasts 0.01 s, so the inputs can honestly catch at most 1 ÷ 0.01 s = 100 position steps per second.
- Shaft limit: 100 steps per second ÷ 4096 steps per revolution = 0.0244 revolutions per second.
- 0.0244 × 60 s/min ≈ 1.5 rpm.
With an 8-bit encoder the same arithmetic gives 100 ÷ 256 = 0.39 revolutions per second, about 23 rpm. Both results are calculated examples for those inputs; a faster scan raises the limit in proportion, and a wider bit count lowers it.
That arithmetic is why discrete inputs suit axes that move, stop and hold — tool changers, turret stations, clamp and valve position feedback — rather than a shaft that spins continuously. Once the axis stops, the code is static and reads exactly, and even a sample caught during the final step is off by at most one count, so the scan limit governs catching every intermediate step, not reading the rest position. For input cards that latch or count on the fly, the measured trade between input response time and count rate is a separate tabulation.
Decision: compute the limit from your real scan time and bit count; an axis that exceeds it and must have every step counted needs a latching interface, however tidy the discrete wiring looks.
Can an Ethernet or Modbus TCP absolute encoder work on the same PLC? #
Only when the PLC's protocol support is documented on both sides: a networked encoder is only readable if the controller explicitly supports that protocol and can map the encoder's registers, so verify the controller's protocol documentation before buying an Ethernet, TCP/IP or Modbus encoder.
A networked encoder speaks a protocol, and protocol support is a controller capability, not something the encoder brings with it. Confirm three things before ordering: the controller's documentation lists the protocol in the role the encoder requires — client on a Modbus TCP link, for example — the encoder's manual publishes the data layout, meaning which registers or discrete points carry the position, at what width and in what word order, and your logic can assemble that layout into the position value. If any of the three is missing, that encoder is unreadable on that controller whatever its own datasheet promises, and the realistic choices are the bit-parallel interface or a different controller.
The network route also carries failure modes the parallel route never sees: a Modbus TCP encoder that exposes position bits as discrete inputs can return empty data on a link that otherwise looks healthy, and the fixes for Modbus TCP FC02 discrete inputs returning no data are their own walk-through.
Decision: networked encoder only with all three documented items in hand; otherwise the bit-parallel route into discrete inputs is the supported, bench-checkable interface.
What do you verify before ordering the encoder? #
Four datasheet lines decide it for a parallel encoder, and a fifth for a networked one: output level, output code, bit count and maximum mechanical speed, each compared against the input card's rating, the free input points, the conversion logic and the scan-time limit from the example above.
Work the list in order, because any single line can end the purchase:
- Output level and output type against the input card's rated voltage and guaranteed ON/OFF thresholds — a mismatch means a shifter or a different card, never a hopeful direct connection.
- Bit count plus commons plus spares against the card's free input points.
- Output code, binary or Gray, against the logic you intend to write.
- Maximum shaft speed and scan time against the worked example's limit, or a documented read-at-rest scheme.
- For a networked type: protocol, role and register map documented on both devices.
Finish on the bench: jog the axis through every station and compare the PLC value against mechanical reference marks, which verifies level, mapping, conversion and scan behavior in one pass. That bench pass is the acceptance test for the whole chain.
Decision: when every line checks out, order the bit-parallel encoder and wire it straight in; when one fails, change the encoder, the card or the interface first, because each of these faults is cheaper to fix on a datasheet than inside a cabinet.
Questions asked
What goes wrong if the parallel bits are wired to the wrong inputs?
The value reads as a valid number that does not match the shaft: each misplaced bit carries the wrong power of two, so one mechanical step makes the displayed position jump by tens or hundreds of counts. Confirm by turning the shaft exactly one step from a known reference mark and recording which input changes; that identifies each bit's true weight, and rewiring to match those weights ends the error.
Can I read the encoder only once per machine cycle instead of every scan?
Yes, and for axes that stop and hold it removes the scan-speed limit entirely. Gate the read on the axis's in-position or motion-complete condition so the bits are static while sampled, then use the value before the axis is released. A read gated this way samples a settled code, so the speed the axis traveled at no longer decides anything.
Does a multi-turn absolute encoder need more inputs than a single-turn one?
Yes. A single-turn encoder repeats its code every revolution; a multi-turn encoder adds extra bits that count complete revolutions, and every one of those bits needs its own discrete input. A 12-bit single-turn word plus a 12-bit turn-count word therefore demands 24 inputs plus commons, and the logic must assemble and convert the combined word, not just the within-revolution bits.
What supply voltage does the encoder need from the panel?
Whatever the encoder datasheet specifies: the supply feeding its output stage must match the rated supply voltage, commonly 5 VDC on low-voltage versions and 24 VDC on industrial versions, and the encoder's return must be common with the PLC input group's return. Also check the encoder's current draw against the panel supply's budget before wiring.