| Automobile industry as the pillar industry in many developed countries, its development has led to rapid development of all aspects of the country’s economic growth. With the improvement of the comprehensive strength of China, automobile industry is gradually growing. During this process, there are many issues and problems need to be solved. As a core component for a vehicle engine, the processing accuracy of the camshaft is one of the key technical problems to be solved.Based on the research status at home and abroad of the camshaft grinding error analysis and compensation, this paper put forward a new error analysis and compensation strategy for X-axis and C-axis of the entire two-axis CNC camshaft grinding machine. After one or more trial cutting, measuring the processed cam contour lines offline, and analyzing the entire system’s processing error which was stable and repeatable, the virtual cam profile was constructed based on the error, which was used to control the grinding point trajectory. This method can reduce or offset the system error’s influence on the follow-up parts by changing the academic cam outline.Based on the theory of least squares polynomial and software programming, automatic selection and analysis of the error law was achieved. In this paper, the automatic error analysis and compensation research was finished by building the virtual cam profile which was indirectly constructed by building virtual lift. An interactive approach was proposed in case that the virtual lift curve was not smooth. By observing the first and second derivative curves of the lifts, it could select a segment manually and fit it. Whether the process operation was successful was judged by observing the maximum process error, the velocity and acceleration of grinding carriage.The error analysis and compensation software module was developed based on C++ Builder, and was integrated into the camshaft grinding process intelligent database and grinding process simulation and optimization system. The software has good operability because of the excellent user interfaces and a number of auxiliary functions, and it can be used to guide the actual processing better.The correctness of the error analysis and compensation theory was verified by the experiments. The results show that the theory has good feasibility, the processing precision and quality of the camshaft could be effectively improved. |