CNC turret position encoder