Screw guide rail is widely used in industrial process,but the prototype positioning accuracy of this device is not ac-curate in many situations where the precise positioning of the sliding table is needed.So a more accurate device is needed to pinpoint the exact location.The sliding table is improved and verified by the particle swarm optimization based on PID algorithm.