Troubleshooting
Encoder wheel drift on a cut-to-length line: slip or timing
Short answer
When a second counter on the same shaft agrees and the logged position lands within 0.25 mm of every command, the count chain is proven good and the length error is mechanical: wheel slip or diameter change, a scale error that grows with part length, or shear latency during the creep. A 20-part short-versus-long test separates scale drift from scatter.

On this page
- Why is the encoder right when the part is 2 mm off?
- Is 10000 counts per revolution enough resolution?
- Is the measuring wheel slipping or changing diameter?
- Does shear timing add length while the sheet creeps?
- Does the reverse motion at each punch matter?
- Which test separates scale drift from random scatter?
- How do I stop retuning steps/mm every shift?
- Should the shear fire on position or on standstill?
- Questions asked
Your encoder is not the fault. The logged position lands within 0.25 mm of the command at every stop, and a second counter on the same shaft records identical counts, reverse steps included — together those clear the encoder, the cable, the input module and the counting logic. Parts up to 2 mm off against a ±0.5 mm tolerance are failing at one of two places: between the sheet and the rubberized measuring wheel, as a scale error that grows with part length, or between the stop and the blade, as timing scatter. The checks below are ranked on your evidence, with the arithmetic for each and the test that names which one you have.
Why is the encoder right when the part is 2 mm off? #
Because the two independent counters agree with each other and with the command to within 0.25 mm at every stop, the electronics are cleared; the error is mechanical or timing, and it enters between sheet and wheel or between stop and cut. Your own evidence rules out the electrical suspects, in this order:
- Noise and dropped counts: the cable is under 800 mm, shielded, differential, routed away from power wiring, and the second counter reads identically.
- A defective encoder or module: both were replaced with no change in behavior.
- Resets or power dips: none occurred, and both counters stayed in step through every stop.
- A miscounted reversal at the punch: both counters see the same reverse steps, so the counting is faithful.
That is the whole count chain cleared in one evening of logging. On a machine where counts do vanish at a cut cycle, the checks are in Incremental Encoder Missing Counts After a Cut Cycle; yours have already passed them.
Is 10000 counts per revolution enough resolution? #
Yes: with 10000 counts per revolution, even a 200 mm diameter wheel puts one count at 0.063 mm of strip travel, an eighth of your tolerance limit, so quantisation cannot produce millimetre-scale errors. Linear resolution is the wheel circumference divided by the count:
mm per count = π × D ÷ N, with N the counts per revolution and D the wheel diameter.
Calculated example for 10000 counts per revolution, not a measurement of your wheel:
| Wheel diameter D | Circumference | Counts per mm | mm per count |
|---|---|---|---|
| 50.00 mm | 157.08 mm | 63.66 | 0.0157 |
| 63.66 mm | 200.00 mm | 50.00 | 0.0200 |
| 100.00 mm | 314.16 mm | 31.83 | 0.0314 |
| 200.00 mm | 628.32 mm | 15.92 | 0.0628 |
One check before moving on: confirm whether the rating is pulses or decoded counts. A quadrature input decoding both channels at ×4 counts every rising and falling edge, so 10000 pulses would arrive as 40000 counts and the table improves fourfold. Put a mark on the shaft, rotate the wheel exactly one revolution by hand, and read the count delta — that number, not the nameplate, is what your scaling uses. The same resolution-versus-mechanics reasoning on a closed-loop axis is worked through in Encoder Line Count for a Servo Ball Screw Axis.
Is the measuring wheel slipping or changing diameter? #
It is the leading suspect: a diameter error of 0.05 percent is only 0.05 mm on a 100 mm wheel, yet it becomes 0.5 mm on a 1000 mm part and 1.5 mm on a 3000 mm part — the proportional drift you keep trimming away with steps/mm. The arithmetic is a pure ratio:
- scale error = diameter change ÷ diameter = 0.05% = 0.0005
- length error = 0.0005 × part length: on a metre-long part that is half a millimetre; on a three-metre part, 1.5 mm.
A tyre loses that fraction of diameter faster than you would think, so check the causes in this order, cheapest first:
- Tyre surface, free: polish, flats, embedded fines and cuts under fingertip and eye.
- Ten-revolution roll check: draw a line on the strip, roll exactly ten wheel revolutions, measure the travel with a steel tape. A wheel programmed for 200.00 mm per revolution that carries the strip 2001 mm in ten turns is under-reading by 0.05 percent.
- Preload: a rigid bracket loses contact as the tyre wears; a spring or dead weight keeps it. Lift the wheel by hand — the loading should come from the spring, not from bracket stiffness.
- Oil swell and temperature: measure the wheel diameter with a caliper cold and again after a shift; rubber moves with oil pickup and with temperature.
- Start-up slip: your acceleration time is near zero, so every step start is an inertia test the free-rolling wheel can lose. Compare counts over a hand-fed slow roll versus a powered index across the same drawn line.
Does shear timing add length while the sheet creeps? #
Yes, if the shear valve fires on position while the strip still creeps: 0.5 m/min is 8.3 mm/s, so 60 ms of valve and blade latency feeds 0.5 mm of extra length. The error is creep speed times latency:
v = 0.5 m/min ÷ 60 = 8.33 mm/s; length error = v × t.
| Latency, valve command to blade contact | Extra length at creep |
|---|---|
| 10 ms | 0.083 mm |
| 30 ms | 0.250 mm |
| 60 ms | 0.500 mm |
| 120 ms | 1.000 mm |
Hydraulic latency moves with oil viscosity and supply pressure, so it produces part-to-part scatter across a shift, not a fixed scale error — which is why this cause shows as spread around a good mean. Your sequence stops the feed before shearing; if the logged count is genuinely frozen at blade contact, demote this cause. Verify it from data — the command output and the cut event, both timestamped — rather than from the sequence chart.
Does the reverse motion at each punch matter? #
Only as a mechanical disturbance: the reverse steps are real strip motion, counted faithfully by both counters, so the danger is the wheel skidding while the punch shoves the strip back. Confirm with a matched mark: put a pencil line across the strip edge and the wheel tyre just before a punch station, run the punch cycle, and compare. Marks still aligned mean the wheel rolled through the disturbance; a sheared mark means traction broke exactly there, and every punch adds a small unmeasured shift to the length.
Which test separates scale drift from random scatter? #
Cut 20 parts at a short target such as 300 mm and 20 at a long target such as 2000 mm, then compare the mean error and standard deviation of each set — the pattern names the fault.
- Mean error grows with length: a scale fault, wheel diameter or slip. Worked example with hypothetical numbers: a mean of +0.15 mm at 300 mm and +1.00 mm at 2000 mm gives 0.15 ÷ 300 = 0.0005 and 1.00 ÷ 2000 = 0.0005 — the same fraction at both lengths, a wheel under-reading travel by 0.05 percent. Rebuild the wheel interface, then recalibrate.
- Mean error roughly equal at both lengths: a fixed offset, either the distance from the cut line to the recipe datum or a fixed latency at a fixed creep speed. Trim the offset and gate the shear on standstill.
- Small means with a large standard deviation: variable slip or variable latency. Fix traction and timing, not the scaling.
- Tight scatter with occasional wild parts: a discrete event — a burr under the wheel, a stalled punch, a missed standstill.
How do I stop retuning steps/mm every shift? #
Move the measurement to a dedicated, spring-loaded idler wheel on a clean track, and set the scale from a 2 m feed measured against a fixed datum — not from one short part. The build checklist:
- Constant spring or dead-weight preload; never a rigid bracket that loses contact as the tyre wears.
- A knurled steel or hard-coated wheel wherever oil reaches the track; rubber tyres change diameter with oil, temperature and load.
- A running track on the strip free of punched holes, embossments, burrs and lube pooling.
- The wheel axis square to travel; a skewed wheel scrubs and under-reads.
- Calibration over 2 m or longer, averaged over at least five runs, with each steps/mm value, its date and the wheel identity written into a logbook — successive entries turn "it drifts" into a wear rate you can schedule against.
The correction itself is steps_per_mm_new = steps_per_mm_old × (length measured ÷ length target). With 50.00 counts/mm programmed, a 2000.0 mm command and a part measuring 2001.0 mm: 50.00 × (2001.0 ÷ 2000.0) = 50.025 counts/mm. Parts running short give a ratio below one and the value drops instead. For the same correction after a feedback-device swap, see Fix Servo Travel Error After Swapping Resolver and Encoder.
Should the shear fire on position or on standstill? #
On standstill: energize the shear valve only after the count has held for 100 ms inside the position tolerance, which cuts creep latency out of the length completely. An illustrative gate in IEC 61131-3 Structured Text follows; the variable names are this article's own, while TON is the standard on-delay timer with its standard IN, PT and Q pins:
(* EncoderPos : DINT, live count, 0 at index start;
PrevPos : DINT, count at the last scan, 0 at index start;
TargetPos : DINT, commanded count for this part;
TolCounts : INT, tolerance in counts, 4 for the 200 mm wheel example
(4 counts * 0.0628 mm = 0.25 mm);
StillTimer : TON;
ShearPermit : BOOL, FALSE at index start. *)
IF ABS(EncoderPos - PrevPos) <= 1 THEN
StillTimer(IN := TRUE, PT := T#100MS);
ELSE
StillTimer(IN := FALSE);
END_IF;
PrevPos := EncoderPos;
ShearPermit := StillTimer.Q AND ABS(EncoderPos - TargetPos) <= TolCounts;
Prove it on the machine: with the strip creeping past target, ShearPermit must stay FALSE on every scan; with the strip at rest inside tolerance, it must turn TRUE 100 ms after the last count change. Command each next index from the re-read position after the punch, since the punch can shove the strip back a fraction of a millimetre. Keep this as process logic only: shear guarding and presence sensing stay in the dedicated, validated safety circuits your risk assessment requires under ISO 13849-1 — safety functions with a defined performance level, not rungs that share a processor with the feed logic.
Questions asked
Why does adjusting steps/mm only fix the length for a while?
Because the scale is chasing a moving wheel. Each trim matches the tyre's diameter that day, then wear, oil swell and changing preload move it again. Log every steps/mm value with its date: a figure that climbs steadily points to wear shrinking the tyre, one that swings with oil temperature points to swell, and either way the wheel interface needs rebuilding rather than another trim.
How do I measure the shear latency on my own machine?
Timestamp the valve-command output in the controller and fit a proximity switch to the knife holder; the gap between the two timestamps is your latency, and its spread across a shift is what matters. Tens of milliseconds of movement between cold morning oil and the afternoon run explains a constant mean with wide scatter, and the standstill gate removes it.
What if the count is truly frozen when the blade cuts?
Then creep latency is out and a constant mean error points to a fixed offset between the actual cut line and the datum the recipe references. Measure that distance with the blade at the bottom of its stroke, enter it as a fixed trim in the recipe, and rerun the short-and-long test: both means should collapse to near zero while the standard deviations stay small.
Can a rubberized wheel hold a tight tolerance at all?
Yes, while the track stays clean, dry and flat and the preload is constant, which is why the machine held length when new. Once oil, punched holes and burrs reach the track, a knurled steel or hard-coated wheel keeps its diameter far better. Lines that hold a tight tolerance for years usually run metal measuring wheels or take length from the feed axis with the shear gated on standstill.

