Thanks a lot, works great this way.
I have one last question: is it possible to use an input from the VINT Hub and use it as a homing switch for the encoder?
This can of course be done from the PC, but I was wondering if it can be done at the micro-controller level.
Thanks in advance.