The current situation of production loss of electrophoresis anode tube and the reasons not easy to detect and the quality defects caused were introduced.Through design and configuration hardware,collect the current value of anode tube to PLC system.Using software programming,count and calculate the periodic electric quantity of a single anode tube when passing the car.By comparing the electric quantity,the anode tube which can not be satisfied with the production due to the loss is found out in time,and the acousto-optic alarm is displayed on the touch screen to remind the maintenance personnel to check to prevent the quality defects caused by the bad electrophoretic of the car body.