Explainer
Encoder Line Count for a Servo Ball Screw Axis
Short answer
For a ball screw axis with 1.847 in/rev pitch behind a 5:1 reduction, a 1000-cycle/rev encoder decoded x4 gives 4000 counts per revolution, 0.0000924 in of travel per count, and about 108 kHz of feedback at the 1624 rpm that 600 ipm requires. That meets a 0.0005 in target under the 5x rule of thumb and fits typical drive input limits, so 1000 lines is the choice; 2000 lines adds nothing measurable.

On this page
- What does the line count on an encoder label mean?
- Does the 4x quadrature multiplier add physical lines?
- What travel per count does each line count give on this ball screw?
- How much feedback frequency does top speed put on the drive input?
- What caps top speed first, the encoder input or the command output?
- How fine must the feedback be for a 0.0005 in accuracy target?
- Does a finer encoder guarantee a more accurate machine?
- Which line count should you order for this axis?
- Questions asked
Pick the encoder line count from two checks: the feedback rate your drive input can accept at top speed, and a feedback increment several times finer than the accuracy you intend to hold. On the axis worked through below — a ball screw at 1.847 in/rev behind a 5:1 reduction, so 0.3694 in of travel per motor revolution — a 1000-cycle/rev encoder decoded x4 gives 4000 counts per revolution, 0.0000924 in of travel per count, and about 108 kHz of feedback at the 1624 rpm that 600 ipm requires. That clears a 0.0005 in accuracy target under the 5x rule of thumb, so 1000 lines is the order; 2000 lines costs more and doubles the feedback frequency without adding measurable accuracy. The arithmetic is shown so you can rerun it with your own pitch, reduction, and drive ratings.
What does the line count on an encoder label mean? #
The line count is the number of electrical cycles the encoder produces on each output channel per revolution: a 1000-cycle/rev encoder passes 1000 line windows under its sensor and emits 1000 cycles on channel A and 1000 on channel B, the two channels offset by 90 electrical degrees.
That number is physical. The disc under the sensor carries exactly that many windows, and an incremental encoder's two outputs issue pulses whenever the shaft moves, with the quarter-cycle offset between A and B carrying the direction information.
Datasheets print it as lines, cycles per revolution or CPR; drive manuals print what the input counts after decoding. Keep the two apart when you order and when you configure: the encoder label states lines, and the counts your drive reports are that number times whatever multiplier the receiver applies. Until you know the decoder setting, the label alone does not tell you the counts per revolution, or the travel per count on the screw.
Does the 4x quadrature multiplier add physical lines? #
No — a 1000-cycle/rev encoder decoded x4 yields 4000 counts per revolution, and every extra count is an edge that the receiving drive or controller counts on the two channels, not a line added to the code wheel.
The receiving device decides how to count: x1 takes one edge of channel A per cycle, x2 takes both edges of A, and x4 takes all four edges of the two-channel cycle, so the same part reads 1000, 2000 or 4000 counts per revolution depending on the setting. In formula form, counts per revolution equals encoder lines times the decode multiplier. Many drive and motion inputs let you select the multiplier in configuration, so one hardware setup can report four different resolutions — and a scaling table written for one multiplier moves the axis the wrong distance if the setting changes.
The multiplier is a counting trick, and that matters twice. It sets what your scaling must assume, and it leaves the frequency the encoder electronics must deliver untouched, because that still follows the physical line count. The trick is even sold as a standalone stage, a signal multiplier that turns 512 lines into 2048 counts per revolution between encoder and drive, proof that the extra counts never lived in the wheel. None of it works if the channels arrive damaged; the wiring, shielding and signal-level rules for getting A and B to the terminals cleanly are laid out in Wiring a TTL quadrature encoder to drive encoder terminals.
What travel per count does each line count give on this ball screw? #
Travel per count is travel per motor revolution divided by counts per revolution: with a 1.847 in/rev screw pitch and a 5:1 reduction, one motor revolution moves the axis 0.3694 in, so 1000 lines at x4 gives 0.3694 / 4000 = 0.0000924 in per count.
The worked example, step by step:
- Screw pitch 1.847 in/rev, taken from the datasheet of the screw actually in the machine, not from a nominal size.
- Reduction 5:1 by belt, with the ratio computed from pulley tooth counts (driven divided by driver), not from pitch diameters.
- Travel per motor revolution: 1.847 in/rev / 5 = 0.3694 in/rev.
- Counts per revolution at x4: encoder lines x 4.
- Travel per count: 0.3694 in/rev divided by counts per revolution.
| Encoder lines | Counts per revolution at x4 | Travel per count | Counts per second at 1624 rpm | Channel frequency on the wire |
|---|---|---|---|---|
| 500 | 2,000 | 0.000185 in | 54.1 kHz | 13.5 kHz |
| 1000 | 4,000 | 0.0000924 in | 108.3 kHz | 27.1 kHz |
| 2000 | 8,000 | 0.0000462 in | 216.5 kHz | 54.1 kHz |
| 2500 | 10,000 | 0.0000369 in | 270.7 kHz | 67.7 kHz |
Every number in the table is a calculated example for these inputs, not a measured result; rerun the last three columns with your own pitch, reduction and multiplier.
How much feedback frequency does top speed put on the drive input? #
At the 1624 rpm that 600 ipm asks of the motor — 600 in/min / 0.3694 in/rev = 1624 rpm — the example encoder sends about 108 kHz of counts into the drive: 4000 counts/rev x 1624 rpm / 60 = 108,267 Hz.
Two frequencies live in this path, and conflating them is where encoder selections go wrong.
The wire frequency is what the encoder's own electronics must switch, and it follows the lines, not the counts: 1000 lines x (1624 rpm / 60) = 27,067 Hz, about 27.1 kHz on each channel at top speed. Encoder families publish a maximum frequency response, how fast their output stage can switch, and for push-pull incremental encoders it is typically around 100 kHz; the figure for your part comes from that encoder's datasheet, and the wire frequency must stay under it across the whole speed range.
The count frequency is what the receiver must absorb: counts per revolution x revolutions per second, checked against the drive input's rated maximum. The value for this axis at top speed is the one in the table above. Because the 4x multiplication happens at the receiver, the encoder never sees the multiplied rate, which is exactly why quadrature decoding does not cut the motor's maximum speed by four.
Budgeting an input rate against a rated maximum is the same exercise as Sizing a Spindle Encoder Input for Servo Feed Control, where the input has to keep up with a spindle-mounted pulse source at full speed.
What caps top speed first, the encoder input or the command output? #
Whichever signal path first exceeds its own rated frequency caps the axis speed, so in the worked example the 108 kHz of feedback sits roughly five times below the example drive's 625 kHz input rating, while the command path is checked with its own steps-per-unit figure.
Treat 625 kHz on the encoder input and 300 kHz on the step input as illustrative ratings of the kind a servo drive of this class prints; your machine's numbers come from its manual, and each path is verified separately.
The command path is the same arithmetic pointed the other way: command rate equals command pulses per motor revolution x rpm / 60. If the drive is set to an example 4000 command steps per motor revolution, top speed demands 4000 x 1624 / 60 = about 108 kHz of steps, checked against the smallest rated limit anywhere in the chain: controller command output, any board in between, drive input. Whatever number is smallest binds first. If the smallest command-path limit were 100 kHz, top speed would cap at 100,000 / 4000 x 60 = 1500 rpm, which at 0.3694 in/rev is 554 in/min, and the encoder would not be the constraint at all.
That is the usual outcome: the feedback path runs with margin, while the command chain, carrying its own smaller-rated numbers, is where a 600 ipm target gets won or lost.
How fine must the feedback be for a 0.0005 in accuracy target? #
A widely used rule of thumb — a rule of thumb, not a standard — says keep feedback resolution about five times finer than the accuracy target: 0.0005 in / 5 = 0.0001 in per count, and the chosen encoder at x4 delivers 0.0000924 in, just inside.
The logic is that the loop can only correct what it can see: when each count is finer than the tolerance, the drive notices and corrects position drift far smaller than the error you care about. No standard mandates the factor of five; it is a design habit that holds up because it leaves room for the margin to be consumed by scaling assumptions and noise.
Read against the table: the 1000-line pick at x4 lands about 5.4 times finer than the target, inside the rule. 500 lines gives 0.000185 in, about 2.7 times finer, below the rule though builders accept that margin when the work is honestly router-class. 2000 lines gives 0.0000462 in, about 11 times finer, past the point where feedback adds anything you can measure.
Does a finer encoder guarantee a more accurate machine? #
No — the feedback increment is the smallest position change the drive can see, not the error the machine holds; backlash, screw lead error, coupling windup, belt stretch in the reduction, and frame deflection are each commonly larger than that increment.
Resolution, accuracy and repeatability are three different datasheet lines. The increment says what the drive can distinguish; the encoder's own accuracy, how true each graduation sits on the disc, is a separate rating, and a rotary encoder can resolve finer than it can measure accurately. Everything mechanical stacks on top: lead error along the screw, backlash at the nut, windup in the coupling, compliance in the reduction stage, deflection under the cut. On a router taking aluminum cuts, several of those are routinely larger than the accuracy target on their own.
Hold the encoder to its documented role, reporting position, and earn machine accuracy by measurement: an indicator over a known travel for a shop check, a ballbar or laser run where a real accuracy claim matters. How much error the loop corrects along the way also depends on tuning, and loop gain differs from axis to axis — practical values spread from 0.6 to 3.7 because each loop is tuned differently, as covered in why the KV loop-gain factor varies between axes.
Which line count should you order for this axis? #
Order a 1000-cycle/rev encoder and configure the drive for x4 decoding: 0.0000924 in per count meets the 0.0001 in the 5x rule of thumb asks for, and the feedback rate it generates at top speed leaves comfortable margin to the input limit you read from the drive manual.
Decisions by case:
- 0.0005 in target with the 5:1 reduction: 1000-cycle/rev at x4, inside the rule at about 5.4x with margin on every frequency check.
- Tight budget, router-class accuracy: 500-cycle/rev at x4 is the practical floor at 0.000185 in per count, knowingly below the rule and workable when the target is honestly looser.
- Target tightens toward 0.0002 in, or the reduction comes out: 2000-cycle/rev at x4, or linear feedback measuring the travel itself.
Commission it like this:
- From the drive manual, read the decoder settings offered (x1, x2 or x4) and the input's maximum count rate; from the encoder datasheet, read line count and maximum frequency response.
- Set the multiplier and the counts-per-unit scaling from the same number. A mismatch makes every move read and travel at the wrong multiple, the classic travel error after an encoder change described in Fix Servo Travel Error After Swapping Resolver and Encoder.
- Make the swap with the machine locked out and the drive disabled.
- Bump the axis at low speed and confirm count direction and a stable position reading.
- Run to top speed and watch for feedback-count or following errors.
- Measure positioning over a known travel with an indicator; the accuracy target is met by measurement, never assumed from the count.
Questions asked
Does the x4 quadrature multiplier cut the motor's maximum speed by a factor of four?
No. The code wheel still carries its physical line count, and the encoder electronics only switch at lines times rpm divided by 60. A 1000-line encoder on a motor that tops out at 3000 rpm delivers about 50 kHz per channel on the wire, while the receiver's edge counting turns that into 200 kHz of counts at the drive input. Check each number against its own rating instead of dividing top speed by four.
What changes if the motor mounts directly on the screw with no reduction?
Travel per motor revolution becomes the full screw lead, 1.847 in here, so a 1000-line encoder at x4 gives 1.847 / 4000 = 0.00046 in per count, barely finer than a 0.0005 in accuracy target and far outside the 5x rule. Holding that target direct-driven takes about 18,500 counts per revolution, which a 5000-line encoder at x4 provides; beyond that, linear feedback measuring the travel itself is the honest upgrade.
Why does an axis move the wrong distance after an encoder change?
Most often the decode multiplier and the motion scaling disagree. If the drive or controller is set to x2 while the counts-per-unit scaling assumes x4, every move reads or travels at half or double the expected resolution. Set the decoding option and the electronic scaling from the same multiplier, then confirm with a known travel length before running any program.
Can a controller keep up with quadrature counts at full speed?
A dedicated hardware quadrature counter handles line-count feedback at full speed routinely; the failures happen when edges are counted in software, one interrupt at a time, where a busy processor misses edges and position drifts. Find out how your input counts, decoder peripheral or gate array versus interrupt routine, and prefer the hardware path for feedback running at high count rates.

