The development of industrial automation is very helpful to the production of enterprises. Take the batching system as an example. The traditional manual batching has problems such as slow speed and poor accuracy. The birth of the automatic batching system has fully solved these problems, and the production efficiency has also been greatly improved. To judge the quality of a batching system is to look at its stability. The stability of the batching system mainly includes two aspects: one is the stability of the batching control system; the other is the stability of the metering system. The stability of the batching control system is mainly based on whether the program design is reasonable, and whether each component can play its role stably, the most important of which is the switching power supply that provides power to the control system and the brain-PLC of the control system, because If the output voltage does not meet the requirements or the voltage is unstable, the control system will not receive the input signal or the output action cannot be output normally. The main function of PLC is to collect various signals of the control system and control various devices according to the sequence set by the program, so whether the PLC can respond quickly is the key. The rationality of the program is mainly whether the program fully considers various fault tolerance, whether it can comprehensively consider the various problems that appear in the use process, and can make reasonable arrangements according to the response time of various control equipment.