2026-10-23 · Technical Q&A
Turning Raw Position Counts into Millimetres in the PLC
The comms are up and the number moves, but it is an integer, not a distance. Conversion needs exactly three parameters: how many counts span the range, how far the zero is offset, and which way is positive. The difficulty is that the three live in three places - sensor firmware, program coefficients and the mechanical datum. Analogue, SSI, fieldbus and Start-Stop each hand over a different kind of raw value, so this article separates their conversion entry points and covers how to avoid throwing resolution away in integer arithmetic.