| Based on computer graphics principle, this dissertation come up with a machining simulation system to verify NC code. The system can display NC milling in real time and so it can take place of trial cut. The dissertation mainly includes as follow:1. NC code interpretation.The way of using YACC tool to develop syntax parser of interpretor makes system development easier. The interpretor is capable of edit, debugging and also converting NC code data into Simulation ones.2. Dexel model based machining simulation.Firstly, give geometry descriptionof tool and workpiece by the most common B-rep method-trigon-surfacerepresentation. Secondly, create Dexel structure of tool and workpiece based on their geometry description. Thirdly, convert cut track into independent cut locations(CL), in which boolean minus operation carries out between Dexel structure of tool and workpiece. Finally, display the simulating objection and milling surfaces using RGB color model.3. Instance.After a comparison of simultion results between current system and simulation module of SolidCAM through same instance, it is concluded that machining efficiency, dispersion digree and effect keep in a best balance. |