How-to
Sizing encoder CPR for ballscrew resolution: 500 CPR at 1:1
Short answer
For a 0.200 in/rev ballscrew with the encoder turning once per screw revolution, a 500 CPR quadrature encoder gives 0.0001 in per count, because decoding yields four counts per cycle and 2,000 counts per screw revolution. At two encoder revolutions per screw revolution the requirement drops to 250 CPR. Mounting the encoder on the screw freezes the increment before any gearing is decided.

On this page
- What encoder CPR gives 0.0001 in per count on a 0.200 in/rev ballscrew?
- How do you calculate the CPR from the target increment?
- Which CPR do you need when the encoder turns faster than the screw?
- Should the encoder sit on the motor shaft or on the screw?
- Does the mill axis need gear or belt reduction?
- How do you confirm the increment after the machine is wired?
- Questions asked
For a 0.200 in/rev ballscrew with the encoder turning once per screw revolution, buy 500 CPR quadrature encoders: decoding at four counts per cycle gives 2,000 counts per screw revolution, so every count is 0.0001 in of table travel. Mounting the encoders directly on the screw ends locks that increment in before any gearing is chosen. The steps below give the sizing arithmetic, the rating for a faster-spinning encoder, the mounting decision, the reduction question and the check that proves the result.
What encoder CPR gives 0.0001 in per count on a 0.200 in/rev ballscrew? #
A 500 CPR encoder gives 0.0001 in of travel per count when it turns once per screw revolution, because quadrature decoding produces four counts per encoder cycle, so the drive registers 2,000 counts for every turn of the screw. The encoder datasheet states cycles per revolution, not decoded counts: the drive's quadrature decoder counts every edge of both channels, which multiplies the printed rating by four. The details of that multiplication are covered in how encoder CPR changes after 4x quadrature decoding; for sizing, remember only that the number you buy is a quarter of the number the drive counts.
How do you calculate the CPR from the target increment? #
Divide the screw lead by the product of the target increment, the quadrature factor of four and the encoder revolutions per screw revolution; run through for the example lead and target with a one-to-one mount, that arithmetic returns 500 CPR. Work it in this order:
- Write the screw lead from the screw's datasheet. The example uses a 0.200 in lead, so one screw revolution moves the table 0.200 in.
- Set the target travel increment. The example target is 0.0001 in per count, a common resolution for a small CNC mill.
- Count encoder revolutions per screw revolution at the chosen mounting point. An encoder coupled directly to the screw end gives 1.
- Apply the formula:
required_CPR = screw_lead / (target_increment × 4 × encoder_revs_per_screw_rev). For the example inputs, 0.200 / (0.0001 × 4 × 1) = 500 CPR.
That result is a calculated example for these inputs, not a measured value; changing the lead or the mounting ratio changes the answer, and the next section shows by how much.
Which CPR do you need when the encoder turns faster than the screw? #
Use a 250 CPR encoder when it makes two revolutions for every screw revolution, since 250 × 4 × 2 gives the same 2,000 counts per screw revolution and therefore the same travel increment. Running the formula again: 0.200 / (0.0001 × 4 × 2) = 250 CPR. Write the transmission ratio in revolutions rather than as a bare "1:2", because that notation does not say which side turns faster, and the difference between the two readings is a factor of four in the result.
Should the encoder sit on the motor shaft or on the screw? #
Couple the encoder to the screw end with a flexible coupling and a bracket whenever the gear or belt ratio is still undecided, because screw-side mounting freezes the increment while motor-side mounting ties it to whatever ratio you choose later. On the example machine the motor shafts are 1/2 in, and an encoder mounted there measures motor rotation: any reduction added afterward multiplies the counts per screw revolution and halves or quarters the increment, forcing the drive's scaling to be recalculated. Screw-side mounting needs a suitable coupling, bracket and access to the screw end, and it keeps the resolution fixed through every later drive-train change; the trade-offs of the motor-side approach are laid out in mounting a motor encoder behind a belt reduction. Resolution well beyond what the mechanics hold also makes a servo easier to tune, as explained in an overview of selecting encoder feedback for servo drives.
Does the mill axis need gear or belt reduction? #
Direct drive is the right starting point for this axis: the example motor's 2,100 rpm no-load rating is far more screw speed than a mill table needs, so reduction buys torque you have not yet proven you need, at the cost of rapid speed. Run the speed arithmetic first: 1,000 rpm at the screw moves the table 1,000 × 0.200 = 200 in/min, and the motor's full no-load speed at a one-to-one ratio would theoretically give 2,100 × 0.200 = 420 in/min. Reduction lowers screw speed for a given motor speed and increases motor revolutions per screw revolution, which also refines the increment if the encoder sits on the motor.
The open question is torque, not speed. The example motor carries a 300 oz-in continuous stall rating at maximum temperature and a 1,500 oz-in peak rating; whether that drives the screw directly depends on the thrust the table needs, the screw's friction, preload drag and acceleration. The calculation is force times lead, worked in ball screw servo motor sizing: force times lead decides torque. Decision: build the axis at one-to-one with screw-mounted encoders, and add reduction only if that torque calculation comes up short.
How do you confirm the increment after the machine is wired? #
Command a known move and measure it: at the target increment a commanded 1.000 in move equals 10,000 counts, and a dial indicator or gauge blocks under the tool confirm whether the table actually traveled that distance. Set the drive's counts-per-inch scaling from the calculated increment, command the move at slow feed, and compare the indicator reading against the commanded distance. A result that is exactly half or double means the quadrature factor or the revolution ratio was entered wrong, not that the encoder is faulty. Lock out the drive power before touching the coupling or bracket, following the machine's lockout procedure and its risk assessment.
Questions asked
What increment does a 1000 CPR encoder give at one revolution per screw revolution?
Four thousand counts per screw revolution, so 0.00005 in of travel per count on the same lead. That is finer than the target but doubles the count rate the drive must decode, so confirm the drive's maximum count frequency before choosing it over the calculated rating.
What count rate reaches the drive at full motor speed?
At 2,100 rpm and 2,000 counts per revolution the rate is 2,100 × 2,000 ÷ 60 = 70,000 counts per second. Verify the drive's decoder is rated above that figure; an overrun shows up as lost position during rapid moves, not during slow cuts.
Can three motors with 60 V and 8.9 A continuous ratings share one 60 V, 30 A supply?
The continuous sum is 3 × 8.9 = 26.7 A and the peak sum is 3 × 44.5 = 133.5 A, but those sums do not size the supply. You also need each drive's input voltage limit, how many axes accelerate simultaneously, the acceleration duration and how regenerated energy is absorbed.
If the encoder sits on the motor and I add reduction later, what happens to the increment?
With two motor revolutions per screw revolution the screw sees 4,000 counts per turn, so the increment halves to 0.00005 in per count and every commanded move comes out half length until the drive's counts-per-inch setting is recalculated. Screw-side mounting avoids this recalibration entirely.


