| This thesis is the kernel of numerical control system base on microcomputer. Many resource have been collected about NC system design, IDE design and so on. A simple introduction has been make about the status at home and abroad. The key teconologies is introduced. And the design detail of software is introduced.First,the history of NC technology and programing are presented.Then talk about the method of windows programing ,the key technologies used in this system ,the thoery of computer graphic and OpenGL.In chapter 4,according to knowledge of compile theory and theory of FSM, analysising the grammer of G code, and basing on the needing of this system, have designed a IDE to develop G code including a editor and a compiler. After that, Using OpenGL as three dimension developing API, Using computer graphic method and theory to this project, a new method base on height-solid model to realize dynamic change and display of model puts forward. Finally emluate is realized. At the same time, according to hand-book of DMC NC card and G code or manual command to control numerical control and to realize the NC system design base on microcomputer.Considering the complexity of software design, OOP&OOD is adapted. It's make the development more easy. Especially, using of MFC and OpenGL realize the need of system finally.Some common problem of CNC is studied in this paper, such as the parse of G code and constructing emluator of cutting process. It's a reference for people who design software of CNC system. |