Converting encoder counts to mm and m/s requires effective counts per turn, the mechanical relationship to the roller and a measurement interval. A worked example shows how to check the scale.
Find counts per roller turn
An incremental encoder produces pulses as its shaft rotates. A high-speed counter can decode direction from A/B signals according to its configuration. Fourfold quadrature uses edges of both channels. Check whether the datasheet specifies cycles per channel or decoded counts.
If gearing connects the encoder and roller, express the count per roller revolution. Let C be effective roller circumference in mm and N effective counts per roller turn. The length scale is C/N mm per count.
Worked distance and speed example
Assume 1,000 cycles of channel A per encoder turn, fourfold A/B decoding and a 1:1 roller ratio. A roller revolution gives 4,000 counts. At a 200 mm effective circumference, each count represents 0.05 mm. An increase of 800 counts gives 40 mm under ideal contact.
A 1,600-count increase over 0.2 seconds represents 80 mm. Average speed is 80/0.2 = 400 mm/s, or 0.4 m/s. After checking physical travel, a signed count difference can represent direction.
Validate the scale on equipment
Compare PLC distance with an independently measured reference at several speeds. Record initial and final counts, elapsed time, actual distance and deviation. A load- or material-dependent deviation warrants checking effective circumference, slip and encoder location.
Match the counter, input filtering and signal levels to the hardware, pulse rate and manufacturer documentation. Handle direction changes, counter wraparound and unusual time samples before using the result for reporting or control.
Reference material
Siemens — S7-1200 High-Speed Counters
Siemens — S7-1200 System Manual, High-Speed Counters
Need direct help from an engineer? Call 0971028833 or send a request.



























































