Positioning stepper motor spindle via potentiometer

its an SL motor
SL45STH40-1204A