The invention discloses an automatic feeding and blanking production line and a control method thereof. The automatic feeding and blanking production line contains two structure modes, namely, a U-shaped line layout and a line type line layout. A production line body is formed by basic units and meets the requirement of a modular assembly technology; each basic unit is divided into an upper layerand a lower layer, so that modular splicing can be realized, and multiple layout forms are realized; and in addition, a tray backflow function can be realized. The production line is further providedwith a tray and tool conveying mechanism for supporting quick changeover, a tray conveying control system, a single-station manual/automatic real-time switching control system, a production line conveyor line body transfer real-time control mechanism, a production line work-in-process temporary storage station design, and flexible and changeable production line arrangement forms. On the basis of the idea of lean production, the problems of high stock level, circulation difficulty, high manufacturing cost, low product quality, waste in space, time, manpower and tool, and the like existing actually are solved.