To enhance the control technology of coal gangue dry separation method which is replaced by the machine in coal washing plant and to explore the control effects of traditional PID and dynamic domain fuzzy self-tuning PID, which will aid in determining the ideal position and orientation for grasping an object as well as understanding physical and logistic data patterns, an optimal design of PID controller for sorting robot based on deep learning is initiated. The mathematical model of ball screw system driven by a single joint motor of the robot is introduced, the control effects of classical PID and variable domain fuzzy self-tuning PID are studied and imitated, respectively. The simulation outcome appears that the selection time is 0.001 s and simulation time is 8 s. The tracking error of variable domain fuzzy PID is minor than that of PID tracking at the starting point, and the convergence rate of error is quick than that of PID manage, the steady-state error is minor than PID, the control accuracy is higher, and the tracking performance is better. The advantages of variable domain fuzzy PID control method in position tracking control are verified, the variable domain fuzzy PID can modify the control framework online as per the different position mistake and mistake change rate, the design of the variable domain of input and output makes the fuzzy inference rules locally finer, the speed of adjustment is faster and the tracking accuracy is further improved, so it has finer tracking presentation than the traditional PID tracking management.