Explainer
What Encoder CPR Means After 4x Quadrature Decoding
Short answer
A 400 CPR quadrature encoder delivers 400 counts per revolution at 1x decoding, 800 at 2x and 1600 at 4x. On a 1:1 direct-drive screw with a 0.2 in lead, that is 0.0005 in or 0.000125 in per count. Choose the decoder mode, then check that the count frequency and the increment both fit.

On this page
A 400 CPR quadrature encoder is not 400 counts on every controller: what you get depends on how many edges the counter counts. At 4x quadrature decoding the same encoder yields 1600 counts per revolution; at 1x it yields 400. On a 1:1 direct-drive screw with a 0.2 in lead, that is the difference between 0.0005 in and 0.000125 in of travel per count. Resolution is what the feedback reports, not what the machine achieves, and the higher count density costs pulse rate at the counter input. Here is what CPR actually counts, how to compute the increment, and where each choice bites.
What CPR counts on a quadrature encoder #
An incremental encoder produces two square-wave outputs, A and B, that pulse as the shaft turns and sit 90 degrees out of phase with each other — that phase offset is what makes it quadrature. When a datasheet says a resolution of 400, the usual meaning is 400 complete cycles on the A channel per mechanical revolution. Each full cycle contains four distinct edges: A rising, B rising, A falling, B falling. A quadrature decoder attached to a position counter can be clocked at 1x, 2x or 4x the frequency of those inputs, so the same encoder feeds different counters differently. This is why two builders with the same encoder can report four-times-different counts per revolution and both be right.
The term CPR is used inconsistently across datasheets: on encoders it almost always means pre-decode cycles per revolution, while some motion controllers use counts per revolution to mean post-decode counts. Confirm which one your controller's scaling parameter expects before you type any number into it.
What 1x, 2x and 4x decoding give you #
| Decoding mode | Edges counted | Counts from 400 cycles per rev | Travel per count on a 0.2 in lead, 1:1 |
|---|---|---|---|
| 1x | One edge of one channel | 400 | 0.0005 in |
| 2x | Two edges of one channel | 800 | 0.00025 in |
| 4x | Both edges of both channels | 1600 | 0.000125 in |
If the controller's specification already states decoded counts, do not multiply by four again. That lead figure comes from the thread example; your own screw's travel per revolution goes in its place, and on a multi-start screw lead can differ from pitch, so take it from the screw documentation or measure one revolution. For anything other than a 1:1 belt or coupling, the counts per screw revolution become encoder cycles times decode multiplier times motor revolutions per screw revolution — the belt-ratio case is worked through in the guide to timing belt versus direct mount for a rotary encoder.
Worked example: 400 CPR on a 1:1 screw at 0.2 in lead #
This is the classic bench-mill conversion case. Inputs:
- Encoder resolution: 400 cycles per revolution, A and B in quadrature (datasheet figure).
- Decoding: 4x, both edges of both channels counted (a controller setting you select).
- Drive: 1:1 direct coupling, motor and screw turn at the same speed.
- Screw lead: 0.2 in of travel per screw revolution.
- Maximum axis speed for the speed check: 3000 RPM, an illustrative figure for this class of machine — use your own maximum.
The rule in words: counts per screw revolution equal encoder cycles times the decode multiplier times the drive ratio, and the travel increment is the lead divided by that count.
The arithmetic:
- Counts per screw revolution: 400 cycles/rev × 4 × 1 = 1600 counts/rev
- Linear increment: lead ÷ 1600 counts/rev = 0.000125 in/count (a lead in inches per revolution gives an increment in inches per count)
- Count frequency at 3000 RPM: 1600 counts/rev × 3000 rev/min ÷ 60 s/min = 80,000 counts per second
Decision: 400 CPR at 4x on this screw gives a 0.000125 in feedback increment, which is comfortably finer than the mechanical accuracy a converted bench mill can hold, so it is usable — provided every counter in the feedback path accepts 80 kHz of edges at top speed and your controller's scaling is set to decoded counts, not cycles.
The speed cost of higher counts #
Every count you gain in resolution is an edge the counter must catch at speed, and the count frequency rises linearly with RPM:
Count frequency = encoder cycles per rev × decode multiplier × RPM ÷ 60
With the example numbers, dropping to 1x decoding cuts that rate from 80,000 to 20,000 counts per second at the same speed — but the increment coarsens fourfold to 0.0005 in. Compare your calculated rate against the documented maximum input frequency of the drive, motion controller or counter input you will actually use; that rating is in the device's own manual, not inferable from the encoder. The same counting-rate discipline applies when you derive speed from encoder counts, as in the method for calculating roller RPM from encoder HSC counts. Reject the combination if the calculated rate exceeds any device in the path; otherwise pick the finest increment that still leaves speed headroom.
Resolution is not accuracy #
The 0.000125 in increment is the smallest change the feedback can see. A servo holds position by developing torque from position error, so the axis sits near the command, never exactly on a count, and screw lead error, backlash, coupling compliance and deflection set the real accuracy. If the controller is set to 1600 counts but actually counts one edge, every position reads four times too large and a 1 in command moves the axis 0.25 in — the fixed proportional error in both directions is the signature of a scaling mismatch. Verify the finished axis: command a known travel, measure the table against an independent reference, and compare in both directions; direction-dependent error points at lost motion, not quantization. Choosing a line count for a known screw from the start avoids most of this, as worked through in the guide to encoder line count selection for a servo ball screw axis.
The decision, for each case #
- Bench-top or light mill, 1:1 screw with that lead, controller with 4x decoding: 400 CPR is a good choice — 1600 counts per rev, 0.000125 in per count, fine enough that feedback is not the limiting factor.
- Same hardware, controller limited to 1x counting: you get 400 counts per rev and 0.0005 in per count, which is usable for general work but coarse for fine positioning; fix the decoding mode or the encoder before blaming the screw.
- Any machine where top speed pushes the calculated count frequency past the counter input's rating: reduce CPR or decoding, because a counter that misses edges loses position, and lost counts are worse than coarse counts.
One safety note: an encoder retrofit on a servo axis changes the feedback the drive's limits and homing depend on — verify limit-switch positions and soft-limit scaling after any change to counts per revolution before running the axis at speed.
For the terminology in one place — lines, PPR and CPR and how manufacturers use them — the reference page on rotary encoder quadrature decoding terms lays it out alongside the counting arithmetic used here.
Questions asked
Is resolution the same thing as CPR on an encoder datasheet?
Often yes, but not always. Most incremental encoder makers use CPR to mean the number of A-channel cycles per mechanical revolution before decoding, so 400 CPR is 400 cycles. Some controller makers use CPR to mean already-decoded counts, which would be 1600 after 4x decoding of that same encoder. Read the timing diagram in the encoder datasheet and the scaling section of the controller manual before you enter any scaling number.
Does 0.000125 in per count mean the machine is accurate to 0.000125 in?
No. That figure is the smallest position change the feedback can report, not a positioning accuracy. A servo holds position by carrying a following error, and backlash, screw lead error, coupling twist and structural deflection all add on top. If you need to know what the axis actually achieves, command a known travel and measure the table with an independent reference such as a dial indicator over a short span.
What happens if I set the controller to 1600 counts per revolution but it counts only one edge?
Every commanded and reported position is off by a factor of four: commanding 1 in of travel moves the axis 0.25 in, and the DRO reading is wrong by the same ratio in the other direction. The fix is to make the controller's counts-per-revolution setting match its actual decoding mode. A fixed proportional error in both directions is the signature of a scaling mismatch.
Should I always pick the highest CPR encoder I can get?
No. Higher CPR raises the edge rate the counter must accept at top speed, and an input that cannot follow the rate loses counts or caps axis speed. Pick the finest feedback increment that is meaningfully finer than your positioning requirement, and confirm the drive or counter input frequency rating covers the count rate at maximum RPM before ordering.


