If this is a normal incremental encoder on a DC motor, then there is no aligning usually, if the zero reference has to be in a certain position, as in tool changing etc, then it is normally done with a grid shift parameter to move zero where you want it, within one revolution of the encoder.
What control is on it? 6T?
Al.