| China has a big demand for bottled product, people increasingly demand higher quality of bottled products as the development of economy and improvement of living standards. Now manufacturers often use a lot of people for the inspection of the quality of the bottled products, It spends a lot of human and material resources and leads to a low production efficiency, most of the machine vision inspection systems are fixed systems at present.Fixed inspection system has a lower speed and accuracy, so we need to design the the mechanical and electrical control system of the inspection robot for mass production and high accuracy.Firstly, the paper introduces the definition of machine vision system, the machine vision technology research present situation in the domestic and foreign, and the machine vision in the production, lives various aspects application, then the characteristics of industrial vision inspection system at present are analysed, at last we point out the necessity of the reseach of the the mechanical and electrical control system of the inspection robotSecondly, the tracking inspection and fixed on-line inspection system are analysed in detail. Fixed system is designed to test image processing algorithms, the building of this control system is researched, the parameters for turning are gained by a lot of experiments, at last fixed inspection control system is realized by programming in plc. The tracking inspection system is designed on basis of the fixed system, the work flow and mechanical structure diagram of the whole system are designed. According to the communication protocols of the programed logic controller communication system is designed to realize the output of inspection result and the setting of parameters, the tracking motion is realized through electronic cam fuction, parameters setting diagram and motion control hookup are given in detail.Thirdly, we propose a economy open-loop system which is based on stepper motor a for tracking motion control system. In the open-loop motion control system the acceleration curve is selected to ensure the smooth acceleration and prevent the phenomenon of step according to characteristics of the stepper motor, we can use digital controller easily to realize open-loop system by giving the discrete process, and illustrated the construction proccess of open-loop control system. We annalysed the cumulative error which has a big impact on the accuracy of open-loop system and gave a solution for cumulative errors and the reconstruction of motion curve after errors.Finally, in the closed-loop control system BLDCM is used as executing agency to construct the three closed loops position servo control system. First designed its current loop, velocity loop regulator, In its position loop used a fuzzy adaptive PID controller. Simulation results show that the fuzzy adaptive PID controller has better dynamic and static performance than ordinary PID controller. |