I was referring to rigid tapping and that is why you would use the encoder module, but to use this, you would need the S version that is considerably more expensive.
I have not done this myself, but know someone who has and he used a servo motor for the spindle.