Explainer
Matching an incremental encoder to a PLC high speed counter
Short answer
Choose the counter mode before you touch a wire: single-channel counting turns a 1000 P/R encoder into 1000 counts per revolution, while quadrature x4 turns the same encoder into 4000. Then verify the encoder's output circuit — driver type, polarity and common — against the counter input's voltage class and wiring terminals from the PLC manual.

On this page
- Does a supply range rating mean the encoder can drive your counter input?
- Which counting mode do you pick first?
- How many counts per revolution does each mode give?
- Which PLC inputs does the mode reserve?
- What do you verify on the output circuit before wiring?
- What does the index input add?
- How do you prove direction and scaling on the machine?
- Questions asked
An encoder that reads 5-24 VDC on the label is not automatically a match for a PLC high speed counter input: the range filters candidates, but the counting mode decides the hookup. Choose the mode first, because it fixes which inputs the counter reserves and what the accumulated value means — a 1000 P/R encoder yields 1000 counts per revolution in single-channel x1 counting and 4000 counts per revolution in quadrature x4. Only after the mode is set do you verify the encoder's output circuit — driver type, polarity and common — against the counter input's voltage class and terminal wiring.
Does a supply range rating mean the encoder can drive your counter input? #
No. A 5-24 VDC rating only tells you the encoder's output circuit tolerates that supply range; it says nothing about the counter input's transistor circuit, polarity or common, so treat the range as a filter and verify the electrical interface against the PLC's input specification before wiring.
Two documents decide this, and you need both. From the encoder datasheet take the output circuit type — NPN open collector, PNP, push-pull or line driver — the required supply, and how much current each output can sink or source. From the PLC's high-speed counter specification take the input voltage class, the ON and OFF thresholds, the maximum input frequency, and the common arrangement of the input group. Counter hardware often treats voltage class as a wiring decision, not a setting: manuals for dedicated counter modules specify different terminal connections depending on the signal voltage class, and the input groups on a CPU's integrated high-speed inputs are fixed to one class at the terminal. The nameplate range alone answers none of these questions.
Which counting mode do you pick first? #
Pick it before wiring, because the mode decides which physical inputs the counter reserves and what the accumulated value means: a single-channel mode counts only channel A edges, while quadrature x4 counts every edge of both channels and multiplies resolution by four.
Most counter hardware offers a family of modes: counting one channel, counting one channel with a separate direction input, counting up and down from two channels, and quadrature decoding at times-one, times-two or times-four. The decision rule is simple. If the shaft only ever moves one way and you just need a total, single-channel counting is enough. If the axis can reverse, or you need the finest resolution the encoder can give, quadrature decoding is the mode, because the two channels' 90-degree phase relationship is what lets the counter detect direction and count every edge. Choosing the mode is the same step on every counter platform, and a worked configuration example for a compact PLC high-speed counter shows the order it follows: mode first, then the inputs that mode reserves, then preset and scaling values.
How many counts per revolution does each mode give? #
For a 1000 P/R encoder, single-channel x1 counting delivers 1000 counts per revolution and quadrature x4 delivers 4 × 1000 = 4000 counts per revolution, because each of the two channels swings through 1000 cycles and each cycle carries four transitions.
That arithmetic comes straight from how quadrature works: every sensor transition counts as one count, and a two-channel signal with 1000 cycles per revolution presents four edges per cycle — A rising, B rising, A falling, B falling. The nameplate figure of 1000 P/R therefore counts cycles, not counter transitions.
| Mode | Inputs used | Counts per revolution (1000 P/R encoder) | Angular resolution |
|---|---|---|---|
| Single channel x1 | 1 (A) | 1000 | 0.36° |
| Quadrature x4 | 2 (A and B) | 4000 | 0.09° |
Worked example, calculated for these inputs and not a measured result: a positioning axis must land within ±0.1°. The required resolution is 360° ÷ 0.1° = 3600 counts per revolution. Single-channel x1 gives 1000, below the 3600 the tolerance demands, so this axis cannot hold ±0.1° at x1 no matter how the scaling is written. Quadrature x4 gives 4000, above 3600, so x4 is the mode for this axis. If the tolerance were ±0.5°, the requirement would fall to 720 counts per revolution and single-channel counting would pass — which is why the mode decision comes from your tolerance, not from habit.
Which PLC inputs does the mode reserve? #
The mode reserves the inputs, not you: quadrature needs two inputs for channels A and B, plus a third for the index when you use it, and the PLC manual assigns those terminal addresses fixed for each mode.
This is the step that surprises people who wire first and configure second. On most PLCs the high-speed inputs are not interchangeable: the manual's counter chapter maps each mode to specific terminals, and a mode change can move the counter to a different input group. Wire channel A to the terminal the manual names for A in your chosen mode, channel B to its named terminal, and the index to the index terminal if the mode uses one. If the wiring lands on inputs the selected mode does not read, the counter stays at zero or counts only one channel, and no software setting will repair a terminal assignment the mode does not use.
What do you verify on the output circuit before wiring? #
Verify four things from the two datasheets — output driver type, required pull-up or sink path, signal polarity, and the counter input bank's voltage class — because counter manuals specify different wiring terminals for different signal voltage classes.
A nameplate range of 5-24 VDC usually means the encoder can be wired at either supply, but the output circuit decides which one works. An open-collector output wired at the top of that range sinks the higher-voltage input class directly. A line-driver output is a differential 5 V class signal: it will not drive a 24 VDC input threshold reliably, and it belongs on a differential line-receiver input or behind an interface stage. When the encoder can only deliver a 5 V class signal and the input bank is rated for the higher class, the write-up on connecting a 5 V encoder to 24 V PLC inputs walks through the workable options. The differential-input article covers why a differential input rejects a single-ended 5 V signal wired the wrong way. Check the common last: the encoder supply common and the input bank common must tie together at the point the counter's wiring diagram names, or the input never sees a complete circuit.
What does the index input add? #
The index pulse fires once per mechanical revolution, so use it to preset or correct the count at a known reference, not as a continuous position signal.
In quadrature counter modes the index usually has its own input and a defined action: it latches, resets or presets the accumulated count when the A and B channels are in their gating state, which pins the count to a physical shaft angle once every turn. That makes the index the natural reference for homing an incremental axis; the article on homing an incremental encoder axis without a proximity switch covers what to do when your encoder or machine has no usable index leg at all. Do not plan on the index for motion between references — at one pulse per revolution it is far too coarse — and remember it only corrects the count at the moment it fires, so any pulses lost between references stay lost.
How do you prove direction and scaling on the machine? #
Rotate the shaft exactly one mechanical revolution by hand and read the counter: the value must match the mode's counts per revolution — 1000 in single-channel x1 or 4000 in quadrature x4 for this example — and it must decrease when you turn the shaft backward.
Do this test with the machine at rest and the shaft turned by hand, not under power. Turn slowly through one full revolution and compare the accumulated value against the table figure for your mode; turn the shaft back and confirm the count returns to its starting value, which proves the counter is decoding direction and not just accumulating edges. The article on how an incremental encoder shows direction of rotation explains the phase relationship that makes the backward turn decrement. If the reading comes out four times too high or too low, the mode and the wiring assumption disagree — recount which edges your mode actually counts before touching the position calculation. The article on counting encoder pulses on a PLC without losing position covers the counting-side faults that show up as drifted or one-direction counts. When the one-revolution test lands on the expected value in both directions, the mode, the input assignment and the scaling all agree, and you can enter the counts-per-revolution figure into the position math with confidence.
Questions asked
Can a one-channel encoder run in quadrature x4 mode?
No. Quadrature counting needs edges from both channels to form the four transitions per cycle and to detect direction. With only channel A wired, select a single-channel mode instead: the counter totals pulses but cannot tell which way the shaft turned, so direction has to come from the machine's motion sequence or a separate sensor.
How fast can the shaft turn before the counter input misses pulses?
Compute the channel frequency: pulses per revolution times revolutions per second. A 1000 P/R encoder on a shaft turning at 3000 rpm (50 revolutions per second) produces 50 kHz on channel A, and quadrature x4 asks the counting electronics to handle four times that rate. The counter input's maximum frequency specification in the PLC manual must exceed both figures.
Does the counter input power the encoder?
Usually not. Most counter input banks sense the signal but do not supply sensor power, so the encoder gets its own supply matched to its output circuit specification. That supply must sit within the encoder's nameplate range, and its common ties to the input bank common exactly as the counter's wiring diagram shows.
What scaling number belongs in the position calculation?
Four times the nameplate count when the mode is quadrature x4, because every edge of both channels is a count; the nameplate figure applies only in x1. Confirm whichever number you enter by turning the shaft one full mechanical revolution by hand and checking that the accumulated counter value matches it exactly.