为解决自主研发的钣金刻铣与激光切割复合加工中心开放式数控系统的译码问题,针对该复合数控系统在同一机床坐标系下既要实现铣削功能还要能够完成激光切割的特点,提出采用分段提取、逐行分析的方法设计一种适用于平面复合加工的G代码编译器。该G编译器设计过程中除考虑处理传统铣削加工指令外,还要考虑激光和专用夹具控制指令的代码检测和译码,并以数据结构体形式存放编译后的加工数据。通过实际加工实验验证了所开发的G代码编译器的可行性。%In order to solve the code compilation problem of self-developed laser cutting sheet metal with en-graved milling machining center open NC system, the method of sub-extraction and line by line analysis was proposed to design a G-code compiler. When this G-code compiler is designed for flat composite process-ing, the characteristics of complex NC system in the same machine coordinate system to achieve milling and laser cutting must be considered. This designed G-code compiler not only fits to realize the traditional mill-ing instructions, but also fits to realize G code detection and decoding of laser and special fixture control in-structions. The compiled data was stored in the form of data structure. The experiments indicate that the de-veloped G-code compiler is feasibility.
展开▼