| In order to improve the precision of the NC machine tool, reliability of the NC code, and prevent shatter that takes place in the course of machining. It is essential to examine the exactness and rationality of NC codes before processing formally The purpose of this dissertation is that design a lathe simulation system. Through simulating the machining process, operator can check NC code and find potential problems at computer.This dissertation presents "cascading checking" to examine morphology, grammar mistake and translate NC code. The examination is based on the Windows system, and it can examine the standard NC code. In this way the efficiency is improved. Through read the NC code get the data file that tool path intersect with rough. Feature modeling is used to accomplish the scene. This method can construct the part with the least information, save the memory and time.This dissertation applies OpenGL as the developing tool. The double buffers of OpenGL make the realization to the graph more quickly. The blocking character made the system can be planted easily. The help document is based on VC++. With it worker can use the simulation system conveniently. After this system is finished it can meet the actual need of the operators to examine the code, can be used to train worker, and reduce the cost of operator training. The system is convenient, practical, reliable, and accord with the national condition of China. At the same time real-time character, interaction are very good and can be transplant easily. So the system has the widely foreground. |