摘要
为实现SLM 3D打印机控制系统对3D打印切片软件生成的控制代码进行准确、高效的译码工作,利用GRETA正则表达式开发了SLM 3D打印机控制系统译码模块。此译码模块充分利用了GRETA正则表达式中rpattern对象与放置替换结果的容器subst_results,在控制代码的预处理、词法检查、语法检查以及加工信息提取过程中,均采用正则表达,按照匹配替换、提取替换结果的操作模式设计了译码模块。程序仿真测试结果表明,该译码模块能够满足SLM 3D打印机控制系统对译码工作的要求。采用GRETA正则表达式与层次化的编程方法,提高了所设计译码模块的可移植性、可扩展性。
In order to realize the accurate and efficient decoding of the control code generated by the 3D print slicing software for SLM 3D printer control system,the decoding module of SLM 3D printer control system was developed by using the GRETA regular expression.This decoding module makes full use of the rpattern object and the container subst_results that place the replacement results.In the process of control code preprocessing,lexical check,grammar check and processing information extraction,regular expression is adopted.The decoding module is designed according to the operation mode of matching and replacing,extracting replacement results.The results of program simulation test show that the decoding module can meet the requirements of SLM 3D printer control system for decoding.Using GRETA regular expression and hierarchical programming method,the expansibility and portability of the designed decoding module are improved.
作者
陈伟
王士军
张临松
周永鑫
CHEN Wei;WANG Shijun;ZHANG Linsong;ZHOU Yongxin(School of Mechanical Engineering,Shandong University of Technology,Zibo 255000,CHN)
出处
《制造技术与机床》
北大核心
2019年第2期165-169,共5页
Manufacturing Technology & Machine Tool
基金
国家自然科学基金青年基金项目"基于进给系统动态特性的多轴协调运动自适应前瞻控制"(51505265)