AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Why following error cannot verify lead screw pitch

Linear motion, bearings and guides Published 8 min read By AutomateDirectUSA engineering team

Short answer

Following error subtracts the controller's own measured position from the command, so both terms share the scaling under test and the signal cannot expose a wrong lead; with a linear encoder in the loop the lead is not in the measurement at all. Verify the lead by measuring load travel over counted screw revolutions, then confirm the ratio and encoder counts before tuning.

On this page
  1. What following error actually measures
  2. Why large pitch changes left the error unchanged
  3. Lead is not thread pitch
  4. The conversion chain, end to end
  5. Worked example: verifying a 10 mm lead screw behind a 2:1 belt
  6. Measuring the chain by hand
  7. Restore the configuration, then tune
  8. The decision for each case
  9. Questions asked

Following error cannot verify lead screw pitch. It is the difference between the position you command and the position the controller itself measures, and both terms pass through conversions you are trying to test — or, with a linear encoder supplying the actual position, through conversions that do not contain the screw lead at all. That is why large pitch changes left your following error about the same: the signal was never looking at the screw. The verification is mechanical. Measure how far the load moves over complete screw revolutions, confirm the motor-to-screw ratio and the encoder counts, and only then put the conversions back one at a time.

What following error actually measures #

Following error is commanded position minus actual position, computed inside the controller in the controller's own position units. It answers one question: is the axis tracking the path the controller believes it is on? It never asks whether those units correspond to real travel.

The actual-position term comes from whichever feedback source the technology object uses. With a motor-mounted encoder, the controller converts counts through the screw travel and transmission ratio you configured, so a wrong lead corrupts the measured position in the same proportion as the command, and the subtraction cancels the error. With a linear encoder riding on the load, the reported displacement comes from that encoder's own scaling; the lead is not in the measurement at all. Zeroing the correction gain or disabling the monitor changes how the axis behaves, but it cannot turn this subtraction into a ruler.

Why large pitch changes left the error unchanged #

In your case a linear encoder feeds the position loop, so the lead you edit affects only motor-side quantities such as speed-command and feedforward scaling, not the measured position. Big edits therefore barely move the following error, and no hidden dynamic setting was missed. Two cheap checks come before any tuning:

  1. Confirm the edited values reached the controller. An edit that was never transferred and activated leaves every test unchanged. Compare the active online configuration against the edited object using the engineering software's documented transfer procedure.
  2. Confirm which source actually supplies the actual position, because the conversions you must verify depend on it — the scaling and feedback choices for a servo-driven linear axis decide what sits inside the loop.

Then read the symptom against the table below.

What you observe Most likely cause Deciding check
Error grows during the move, returns near zero at standstill Dynamics: speed loop, position gain, feedforward Record position error and speed during the same move; scaling is not implicated
Load travel differs from command by a near-constant factor, error stays small Wrong lead, ratio or encoder counts in the conversions Measure load travel over complete screw revolutions
Travel error close to 2:1 Thread pitch entered as the lead on a multi-start screw, or a wrong ratio Compare the measured lead with the configured value
Travel error close to 4:1 Pulse cycles entered where decoded counts are required Compare the encoder nameplate with the receiver's decoding
Magnitude right, sign wrong after reversal Count direction, backlash or compliance Measure equal travel in both directions

Lead is not thread pitch #

Lead is the axial travel of the nut per complete screw revolution — the quantity the motion conversion needs. Thread pitch is the spacing between adjacent threads. On a single-start screw the two are equal; on a two-start screw one revolution gives double the stroke, lead = 2 × pitch. Many configuration screens label the setting 'pitch' while the parameter description defines travel per screw revolution. Enter what the description defines, measured on the machine, never the drawing's thread pitch on a multi-start screw.

The conversion chain, end to end #

Three conversions sit between motor rotation and load travel:

  • The screw: load travel per screw revolution, L. Measure it; do not trust a catalog lead.
  • The transmission: motor revolutions per screw revolution, R, whether belt, gearbox or coupling. Load travel per motor revolution = L / R.
  • The encoder: pulses per revolution, PPR, counts pulse cycles, but a quadrature receiver with four-edge decoding reports four counts per cycle, so one revolution yields 4 × PPR decoded counts. Enter the quantity the receiving device asks for; a PPR typed where decoded counts are expected is the classic 4:1 travel error, and encoder line count selection for a servo ball screw axis follows the same convention.

A linear encoder replaces that chain with one conversion of its own: distance per count and sign, applied to counts read directly at the load.

Worked example: verifying a 10 mm lead screw behind a 2:1 belt #

Inputs, all a worked example for these values rather than a measurement from a real machine:

  • Screw turned by hand through 10 complete revolutions, counted on a witness mark — your own count; ten divides cleanly and averages hand-reading error.
  • Load travel on a dial indicator: 100.0 mm — an illustrative measured value.
  • A two-start thread with 5.0 mm pitch; the relation lead = 2 × pitch is documented geometry for a two-start thread.
  • A toothed belt giving 2 motor revolutions per screw revolution, so R = 2 — an example transmission.
  • A motor encoder nameplate of 1000 PPR with four-edge decoding in the receiver — the factor of four is the documented decoding behavior.

The rules, in words: lead equals measured load travel divided by complete screw revolutions; load travel per motor revolution equals lead divided by motor revolutions per screw revolution; decoded counts equal pulse cycles multiplied by the decoding factor.

Arithmetic:

  • L = 100.0 mm / 10 rev = 10.0 mm per screw revolution
  • Geometry check: lead = 2 × 5.0 mm = 10.0 mm, agreeing with the hand measurement
  • Travel per motor revolution = 10.0 mm / 2 = 5.0 mm
  • Counts = 1000 PPR × 4 = 4000 decoded counts per motor revolution

Result: the measured lead matches the two-start geometry, so the configuration is the measured lead, the belt as 2:1, and 4000 decoded counts per motor revolution.

Decision: a repeatable disagreement of 1 % or more between measured and configured lead — a rule of thumb, comfortably above dial-indicator reading error at this distance — means the configuration is wrong; correct it before touching a gain. Here the values agree, so restore the monitor and hand the remaining following error to the tuning steps below.

Measuring the chain by hand #

  1. Record everything first: axis units, feedback selection, encoder scalings, transmission ratio, screw conversion, monitor and gain settings.
  2. Inhibit drive power, support any suspended load and discharge stored energy before touching the screw; a vertical axis can drop the moment holding torque or the brake is gone.
  3. Turn the screw through complete revolutions against an independent reference — dial indicator, calibrated scale or laser — and divide total travel by the count to get L. Longer measurement means less reading error.
  4. Establish R: witness-mark motor and screw, turn the motor and count both, or take the ratio from the transmission's documentation.
  5. Where the design allows, uncouple the motor, rotate its shaft exactly one revolution by hand and read the count change; compare with the nameplate value times the decoding factor. Uncoupling is acceptable only with the load supported and no free axis.
  6. Move the load over a measured distance and check the linear encoder: the count change must match its scaling and the sign must match positive travel.

If the travel error appeared immediately after an encoder replacement, the count convention is the first suspect — fixing servo travel error after swapping a resolver and encoder works that case.

Restore the configuration, then tune #

Enter the measured values using each parameter's defined quantity, apply them with the documented transfer and activation procedure, and confirm the active values match the edited object. Re-enable the following-error monitor and restore the intended correction gain: a disabled monitor is not a repair.

Run one bounded verification move — short, slow, inside the machine's validated travel and speed limits — and measure it with the independent reference, not the controller's own display. When command, drive report and external measurement agree within reading error, the scaling is finished.

Only then treat the following error as dynamics. Tune the speed loop first, then position gain and feedforward; raising position gain on top of a badly tuned speed loop moves the problem around rather than removing it, and troubleshooting a servo axis that faults mid-move covers that order of checks.

The decision for each case #

  • Measured lead matches the configured lead within reading error: scaling is verified. Stop editing the pitch; the following error is dynamic, so tune the speed loop, then position gain and feedforward, with the monitor back on.
  • Disagreement near a factor of two: on a multi-start screw the thread pitch was entered as the lead, or the ratio is wrong. Enter the measured lead and the counted ratio.
  • Disagreement near a factor of four: pulse cycles and decoded counts were confused. Enter the count quantity the receiver expects.
  • Magnitude right, sign wrong: correct the count direction first, then measure equal travel both ways to size any backlash.
  • Edits that change nothing at all: they were never activated, or a linear encoder rather than the screw supplies the actual position. Confirm both before another edit.

In every case the instrument is the same: an independent measurement at the load over counted screw revolutions. Following error is a tuning signal, not a ruler.

Questions asked

Can I measure the travel with a laser interferometer instead of a dial indicator?

Yes. A laser interferometer, or a calibrated linear scale with a digital readout, removes most hand-reading error and lets you measure over longer travel, which sharpens the lead value. Keep the reference independent of the machine's own encoders and measure over complete screw revolutions only, so the displacement you read never passes through the scaling you are testing.

How do I count screw revolutions accurately on a short-travel axis?

Mark the shaft end and the coupling with a witness line so fractional turns are obvious, turn at least five complete revolutions where the stroke allows it, and never include a partial turn in the count. On a short axis, use the longest stroke the clearance permits, divide the total travel by the exact count, and repeat the run: two matching results beat one careful one.

Can a wrong lead setting damage the machine?

Yes. A configured lead smaller than the real one makes the controller command extra motor revolutions for the same distance, so the load can run past its target into a hard stop while every position reading still looks correct. Keep verification moves short, slow and inside the machine's validated travel and speed limits, and restore the following-error monitor before any production running.

Keep reading

  • Explainer

    Encoder Line Count for a Servo Ball Screw Axis

    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.

    Servo and stepper motion

  • Troubleshooting

    Absolute Encoder Error Persists After Battery and Encoder Replacement

    When an absolute-encoder alarm survives a new battery and a new encoder, stop buying parts and split the chain: verify 3.6 V at the encoder-side battery connector, continuity-check the cable and shield, confirm the controller interface, then run the documented mastering or initialization the axis needs after any encoder swap.

    Sensors, encoders and machine vision on the machine

  • Selection guide

    Choosing Encoder Resolution to Match a Stepper Step Response

    A 50 ppr encoder read in x4 gives 200 counts/rev — one count per 1.8° full step, so the loop sees only before and after each step and ±1 count is ±1.8°. Size the encoder by counts per full step: 10 counts per step, which is 500 ppr in x4 at 2000 counts/rev and 0.18° per count, is the working minimum to reproduce a stepper's damped step response.

    Sensors, encoders and machine vision on the machine