An extensible NC program interpreter for open CNC systems

被引:0
作者
Weixin Wang
Kai Zhou
机构
[1] Tsinghua University,Department of Mechanical Engineering
来源
The International Journal of Advanced Manufacturing Technology | 2018年 / 94卷
关键词
NC program interpreter; Extensible; EBNF; Lex; Yacc;
D O I
暂无
中图分类号
学科分类号
摘要
The NC program interpreter plays an important role in CNC systems. It checks for errors and translates NC programs into commands that can be executed by the CNC control module. NC program specifications differ a lot among different CNC manufacturers. However, the existing NC program interpreters only support one specific program format, which increases the programming difficulty and enterprise cost. Meanwhile, due to the closed interpreter structure, it is difficult to develop and implement new CNC function instructions, which limits the openness of CNC systems. In order to solve these problems, this paper presented a novel analysis of NC language’s grammar, and designed a set of hierarchical and modular Extend Backus-Naur Form (EBNF) expressions to describe NC language. An extensible interpreter based on EBNF was proposed. Through interaction with users to add new instructions, the system can utilize lexical analyzer (Lex) and yet another compiler compiler (Yacc) to generate a new matching interpreter. This method can also help users to produce a matching interpreter for a specific NC program specification. A prototype interpreter was developed successfully, the validity of which was verified by tests.
引用
收藏
页码:911 / 923
页数:12
相关论文
共 48 条
  • [1] Xu XW(2006)Making CNC machine tools more open, interoperable and intelligent—a review of the technologies Comput Ind 57 141-152
  • [2] Newman ST(2007)A study of a universal NC program processor for a CNC system Int J Adv Manuf Technol 36 738-745
  • [3] Guo X(2001)A study on development of an open servo system for intelligent control of a CNC machine tool CIRP Ann Manuf Technol 50 561-575
  • [4] Liu Y(2006)STEP-NC And function blocks for interoperable manufacturing IEEE Trans Autom Sci Eng 3 297-308
  • [5] Yamazaki K(2010)Third-generation STEP systems that aggregate data for machining and other applications Int J Comput Integr Manuf 23 893-904
  • [6] Kashihara K(2006)Development of a PC-based milling machine operated by STEP-NC in XML format Int J Comput Integr Manuf 19 593-602
  • [7] Fujishima M(2012)An advanced STEP-NC controller for intelligent machining processes Robot Comput Integr Manuf 28 375-384
  • [8] Mori M(2011)A universal NC program processor design and prototype implementation for CNC systems Int J Adv Manuf Technol 60 561-575
  • [9] Yamazaki K(2006)Realization of STEP-NC enabled machining Robot Comput Integr Manuf 22 144-153
  • [10] Fujishima M(1998)General NC code translation techniques Syst Simul Trans 10 1-7