首页> 外文期刊>The International Journal of Advanced Manufacturing Technology >An extensible NC program interpreter for open CNC systems
【24h】

An extensible NC program interpreter for open CNC systems

机译:用于开放CNC系统的可扩展NC程序解释器

获取原文
获取原文并翻译 | 示例
           

摘要

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.
机译:NC程序解释器在CNC系统中起着重要作用。它检查错误并将NC程序转换为可以由CNC控制模块执行的命令。 NC计划规范在不同的CNC制造商中不同。但是,现有的NC程序解释器只支持一种特定的程序格式,这增加了编程难度和企业成本。同时,由于封闭式翻译结构,难以开发和实现新的数控功能指令,这限制了CNC系统的开放性。为了解决这些问题,本文提出了对NC语言语法的新颖分析,并设计了一组分层和模块化扩展背核形式(EBNF)表达式来描述NC语言。提出了一个基于EBNF的可扩展翻译。通过与用户的互动添加新指令,系统可以利用词汇分析器(LEX)和又一个编译器编译器(yacc)来生成新的匹配解释器。此方法还可以帮助用户生成特定NC程序规范的匹配解释器。成功开发了一个原型解释器,其有效性是通过测试验证的。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号