encoder troubles

Hello, I need to read the position of an antenna with the MA3 .
As 've implemented encoder reading ?
Thank you