Flow rate is one of the important parameters in industrial and agricultural engineering, especially in the chemical, metallurgy, petroleum and other industries. However, the actual industrial production process often has the characteristics of nonlinear, time-varying uncertainty, it is difficult to establish a precise mathematical model, the application of the conventional controller can not achieve the desired control effect. Aiming at this problem, this paper presents a traffic control system based on expert PID. This system takes PLC S7-1500 as the main controller, uses expert PID control algorithm to form a closed loop control system, so as to realize the control of the flow rate. The debugging results show that the control system is stable and can achieve the control of the flow quickly and accurately.