I used a some gear tooth sensors and a gear for the encoder.. It is only around 38 teeth so 152 counts per rev.. (which was fine for most threading/rigid tapping) I just added twist functionality to the comp. You send it the Deg/Rev