首页 | 本学科首页   官方微博 | 高级检索  
     

通用数控程序解析方法研究
引用本文:徐建国,张友良,汪惠芬,刘佳.通用数控程序解析方法研究[J].计算机集成制造系统,2008,14(10).
作者姓名:徐建国  张友良  汪惠芬  刘佳
作者单位:南京航空航天大学,能源与动力学院,江苏,南京,210016;南京理工大学,机械工程学院,江苏,南京,210094;杭州华三通技术有限公司,浙江,杭州,310053
摘    要:针对虚拟加工系统的数控程序解析问题,提出一种通用数控程序解析方法.通过分析不同数控系统的数控程序格式,设计了规则数据库.利用正则表达式进行语法分析,提出了建立语法规则方法和语法分析算法,以及基于调用堆栈的子程序处理算法.设计了数控系统定制界面,以便将现有的解析器扩展到新的数控系统.开发出一个通用数控程序解析器,并验证了所提方法的有效性,为虚拟加工系统的实现提供了技术支持.

关 键 词:数控  规则数据库  正则表达式  词法分析  语法分析  代码解析  规则定制

General numerical control program interpreting method
XU Jian-guo,ZHANG You-liang,WANG Hui-fen,LIU Jia.General numerical control program interpreting method[J].Computer Integrated Manufacturing Systems,2008,14(10).
Authors:XU Jian-guo  ZHANG You-liang  WANG Hui-fen  LIU Jia
Affiliation:XU Jian-guo1,ZHANG You-liang2,WANG Hui-fen2,LIU Jia3(1.School of Energy & Power Engineering,Nanjing University of Aeronautics & Astronautics,Nanjing 210016,China,2.School of Mechanical Engineering,Nanjing University of Science & Technology,Nanjing 210094,3.H3C Technologies Co.,Ltd.,Hangzhou 310053,China)
Abstract:Aiming at the problem of Numerical Control(NC)program interpreting in virtual machining sytem,the key techniques of general NC program interpreting was proposed.Based on the analysis of program patterns of different NC systems,a rule database was designed.The syntax analysis was performed based on regular expressions.The establishment methods for syntax rules,the syntax analysis algorithm and stack-calling-based subprograms processing were proposed as well.Then customization interfaces were put forward to e...
Keywords:numerical control  rule database  regular expression  accidence analysis  syntax analysis  program interpreting  rule customization  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号