Servo loop with position and reference counter, see figure SE-seven