Selection guide
Which absolute encoder interface works with a high-speed counter PLC
Short answer
A high-speed counter input counts transitions, so a standard parallel or serial absolute encoder cannot connect to it directly. Three interfaces do work: a requested-pulse encoder that reports its stored position through counter inputs, a parallel Gray or BCD word on ordinary inputs, and a 4-20 mA signal on an analog input. Pick by spare inputs, update speed and resolution, not by the word absolute on the label.

On this page
- Which absolute encoder interfaces work with a high-speed counter PLC?
- Why can't a counter input read a parallel position word directly?
- How does a requested-pulse absolute encoder deliver position through counter inputs?
- How many inputs does a parallel Gray code or BCD interface need?
- When does a 4-20 mA absolute encoder make more sense?
- What electrical checks must pass before you order the encoder?
- What limits the speed and resolution of each interface?
- Which interface should you choose for your machine?
- Questions asked
A plain parallel-word, serial or fieldbus absolute encoder will not work on a PLC whose encoder port is only a high-speed counter: the counter accumulates input transitions and has no function that receives a position word. Three interfaces do the job, and each costs countable hardware. A requested-pulse encoder needs the counter input plus one digital output, and a report of 3600 steps in 100 ms runs at 36 kHz at that input. A parallel Gray code word needs one ordinary digital input per bit — 12 inputs for a 12-bit single-turn encoder resolving 4096 positions. A 4-20 mA encoder needs one analog input channel and resolves about 0.09 degrees per count on a 4000-count input over one turn. This article gives the input count, the speed arithmetic and the electrical checks for each interface, then the decision per case, so you order the right encoder the first time instead of discovering the mismatch at the terminal rail.
Which absolute encoder interfaces work with a high-speed counter PLC? #
Only three interfaces deliver absolute position to a high-speed counter PLC: a requested-pulse encoder counted on the counter input, a parallel Gray code or BCD word read on ordinary digital inputs, and a 4-20 mA signal read on an analog input. Everything else on an absolute encoder datasheet — a natural binary word, a serial protocol, a fieldbus telegram — needs input or protocol hardware this PLC does not have, and no counter setting changes that. The interface line of the datasheet decides the purchase, not the word absolute on the label.
| Interface | What the PLC receives | Hardware it needs | Choose it when |
|---|---|---|---|
| Requested-pulse report | One pulse per position step after a request | The counter input plus one digital output | The counter must carry the job and one output is free |
| Parallel Gray code word | One input per bit, one bit changes per step | One ordinary digital input per bit | Enough spare inputs and slow updates are acceptable |
| Parallel BCD word | Four inputs per decimal digit | Four inputs per digit | Only a few hundred steps are needed |
| Current-loop analog | One current proportional to position | One analog input channel | A channel is free and coarse resolution is enough |
| Serial or fieldbus message | A protocol telegram | A matching communication port | Never on counter inputs; change the PLC side instead |
Why can't a counter input read a parallel position word directly? #
A high-speed counter increments or decrements on signal transitions, so a position word wired to it produces a meaningless number instead of the shaft position. Absolute describes how the encoder keeps its value: the output indicates the current shaft position at any instant, with no reference move needed after power-up. It says nothing about how that value crosses the cable, and the two sides do not meet by themselves.
A parallel word is a set of wires held at steady levels; a serial or fieldbus encoder sends a framed message. The counter does one thing — count edges on its input. Six bits of a position word wired into six counter inputs give six unrelated edge counts; a serial encoder on a counter input gives edge noise, not a message. The receiving hardware is missing, not a setting, so no configuration screen or instruction repairs it.
How does a requested-pulse absolute encoder deliver position through counter inputs? #
The encoder holds its position internally and, when a digital output on the PLC energizes its request input, transmits the whole position as a pulse train that the counter input counts to the exact step number. This is the only working interface that actually uses the high-speed counter. The encoder behaves as an ordinary incremental encoder that can also report its stored position on demand, and the transfer is a small handshake:
- Reserve the counter input and one spare digital output for the request line, wired to the encoder's terminal diagram.
- Configure the counter for the single-phase pulse rate the encoder's interface document specifies: the counting mode, the input filter and the pulse rate limit, taken from the hardware manual of your exact PLC model.
- Note or clear the count before the request — clearing after pulses have started eats the front of the report.
- Energize the request output, let the counter run, and accept the value only when the encoder's documented completion signal arrives or counting has stopped for the documented settle time.
- Scale the final count with the encoder's documented steps and origin, and mark the result valid only while completion stands.
The pulse-counting hygiene that keeps a transfer from losing steps mid-run is stepped through in Counting Encoder Pulses on a PLC Without Losing Position.
Worked example: report rate at the counter input, calculated for these inputs and not measured. Take a single-turn encoder that reports 3600 steps and empties a full report in 100 ms. Rate = 3600 pulses / 0.1 s = 36,000 pulses per second = 36 kHz at the counter input. Compare that figure against the counter input's documented maximum counting frequency in the hardware manual of your exact PLC model — the rating is per model and per input type, so a figure from a different family proves nothing. If the counter tops out below 36 kHz, every report truncates and every reading lands short: order an encoder with a slower report mode or move to another interface. If the rate clears with margin, this is the interface to buy.
How many inputs does a parallel Gray code or BCD interface need? #
A Gray code word needs one digital input per bit, so the resolution you buy is fixed by 2 to the power of the input count: a 12-bit single-turn encoder needs 12 inputs and resolves 4096 positions. Count spare inputs before choosing this route, because a small PLC rarely has that many left on top of the machine's own I/O. Order Gray, not natural binary: Gray changes exactly one bit between adjacent positions, so a sample taken while the shaft creeps is at worst one step off, never a wild code from the far side of the scale.
Many small PLC families ship no Gray-to-binary conversion instruction — GRY on the families that provide one — so plan on the XOR routine as the baseline:
// Example names, not an instruction: GRAY and BIN are arrays of 12 booleans.
// GRAY holds the input word sampled once per scan; BIN holds the result.
BIN[11] := GRAY[11] // copy the most significant bit
BIN[i] := BIN[i+1] XOR GRAY[i] // i = 10 down to 0
The test that proves it: Gray word 0010 converts to binary 0011, step 3, and Gray word 0011 converts to binary 0010, step 2 — adjacent steps whose codes differ in one bit, exactly as Gray code promises. Capture the whole input word into GRAY in one scan before converting, or a mix of old and new bits corrupts the arithmetic.
A BCD word costs four inputs per decimal digit, and a three-decade word spends the same 12 inputs as the Gray example while reaching only 10 x 10 x 10 = 1000 distinct readings, roughly a quarter of the 4096 — the limited resolution the format is known for. If you do read BCD, fault any decade presenting an invalid code instead of trusting it. The input wiring, sampling and conversion are worked in detail in Reading a Gray Code Absolute Encoder Into a PLC.
When does a 4-20 mA absolute encoder make more sense? #
A current-loop absolute encoder maps the whole travel onto one current, so a single analog input channel replaces the parallel wiring, at the cost of the coarsest resolution of the three working interfaces.
Worked example: analog resolution per degree, calculated for these inputs and not measured. Span the loop over one turn: 4 mA at 0 degrees and 20 mA at 360 degrees, so the span is 16 mA and one degree is 16 / 360 = 0.044 mA. Take an example analog input scaled to 4000 counts over that span: resolution = 360 / 4000 = 0.09 degrees per count. Best-case indicated resolution is about a tenth of a degree, and the encoder's own accuracy line on its datasheet adds error on top — resolution and accuracy are separate figures, read both.
Two behaviors need engineering around. The wrap: a single-turn current encoder jumps from top of scale to zero in one update, so position logic must treat the wrap as legal rather than a fault. The speed: an analog channel samples at its own conversion rate, so this interface reports set points well and tracks fast motion poorly — an analog input measures level and does not count pulses, the trap explained in Why an analog input module cannot count encoder pulses. Choose it when a spare analog channel exists and tenth-of-a-degree class positioning is enough: a tooling carousel, a valve index, a slew-angle indicator. Skip it for a servo axis.
What electrical checks must pass before you order the encoder? #
Match four electrical facts before ordering: encoder supply voltage, output circuit type against PLC input common practice (sinking or sourcing), input current per point, and the number of commons. Pull two documents first: the encoder's terminal diagram and the I/O wiring section of the hardware manual for your exact PLC model. A 5 V encoder output does not reliably drive a 24 V input, and a mismatched sinking-sourcing pair surfaces later as a dead input or a chattering count — the failure modes and fixes are worked through in Connecting a 5V Servo Encoder to 24V PLC Inputs.
Reserve the handshake lines as well: the request output, the completion or busy signal the encoder specifies, and the machine inputs that must stay free for their own duties. De-energize and lock out the panel before wiring any of it, per your site's energy-control procedure (OSHA 1910.147 is the US general-industry baseline), and keep this selection work clear of the machine's safety functions, which answer to its risk assessment, not to this article.
What limits the speed and resolution of each interface? #
Gray and BCD word reading is limited by the scan: the PLC only sees a coherent sample once per scan, so a 10 ms scan cannot follow a shaft that steps through codes faster than one per scan, and both speed and resolution end up modest. That is the honest trade of the parallel route — fine resolution costs inputs, and fast rotation outruns the sampler, which is why parallel absolute encoders report set points and positions rather than feed servo loops. The requested-pulse interface is limited by the counter instead: the 36 kHz report rate from the worked example must clear the counter input's documented maximum, and each request pauses movement counting while the transfer runs. The analog interface is limited by the converter's update rate and the encoder's accuracy figure.
A serial or fieldbus absolute encoder stands outside all of this: the position crosses as a message on a communication port, at the resolution the protocol carries, with no counter involvement at all. It needs a PLC side that speaks the encoder's documented protocol, and the integration failures that follow when a serial-only encoder meets hardware without protocol support are covered in Why a Serial-Only Absolute Encoder May Not Work on Your Drive. If your PLC has the matching port, this path beats every workaround above.
Which interface should you choose for your machine? #
Pick the requested-pulse interface when the counter inputs must carry the job, one spare output exists and the worked 36 kHz report rate sits below the counter's documented maximum with margin; it is the only choice that actually uses the high-speed counter. Then by what you have spare:
- Enough ordinary digital inputs for the word width you need and slow updates acceptable — parallel Gray code, with the XOR conversion in logic.
- Inputs scarce and only coarse steps needed — parallel BCD, but run its decade math first: the same wire count as the Gray example buys a quarter of the steps.
- A free analog channel and tenth-of-a-degree positioning enough — the current-loop analog encoder.
- A matching communication port on the PLC side — a serial or fieldbus encoder, no counter involved at all.
- A plain binary or serial-only encoder already on the shelf and only counter inputs available — no setting rescues it; use it on a project that has the matching hardware and order an encoder with one of the working interfaces for this one.
Order against three numbers: the interface line of the encoder datasheet, your spare input count, and the counter input's documented maximum frequency. Those three decide; everything else is wiring.
Questions asked
Can a serial or fieldbus absolute encoder be adapted to counter inputs with a converter?
Protocol-to-pulse converters exist for specific documented product pairs and are purchased as deliberate interface hardware, not wired up as a trick. The dependable path is a PLC side with a port that speaks the encoder's protocol, so the position arrives as a data word and the counter is never involved. Verify the encoder's documented protocol and the master's protocol support before purchase.
How do I prove the position reading is trustworthy before it drives the machine?
Rotate the shaft by hand to several known mechanical marks and compare the reported value at each stop. Check the wrap across zero on a single-turn encoder, then remove encoder power during a test and confirm the logic flags the reading invalid rather than freezing the last value on screen.
Does a requested-pulse encoder still work as a normal incremental encoder afterwards?
Yes. Once the transfer completes, the same counter keeps counting movement pulses like any incremental encoder, so motion counting continues between requests. Each new request report re-anchors the count to the true absolute position, which is exactly how this encoder type is designed to be used.
What happens if the analog input cannot accept a current loop?
A voltage-only analog input reads a current-loop encoder incorrectly or not at all, and the position then scales wrong by an unknown factor. Match the channel type to the encoder's output, or add the signal-conversion hardware the analog module's documentation calls for, and verify the scaling against a known position before trusting any reading.