Absract
This paper introduces how to realize the automatic indexing for workpiece using PLC control stepping motor. The indexing algorithm that can realize the corner error being zero in 3600 to ensure the precision indexing is mainly explained. The indexing algorithm ladder chart is also given.