Reading encoder to count steps(solved)

Oohps....
Wildbill, thanks for the pointer.
Now it works and I can fine tune further. :slight_smile:

Thanks, Paco