作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (1): 7-9. doi: 10.3969/j.issn.1000-3428.2009.01.003

• 博士论文 • 上一篇    下一篇

基于领域建模的数控系统代码生成技术

舒兆港1,李 迪2,胡跃明1,肖苏华2   

  1. (1. 华南理工大学自动化学院,广州 510640;2. 华南理工大学机械工程学院,广州 510640)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-01-05 发布日期:2009-01-05

Code Generation Technology for CNC System Based on Domain Modeling

SHU Zhao-gang1, LI Di2, HU Yue-ming1, XIAO Su-hua2   

  1. (1. College of Automation, South China University of Technology, Guangzhou 510640; 2. College of Mechanical Engineering, South China University of Technology, Guangzhou 510640)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-01-05 Published:2009-01-05

摘要: 为提高数控软件系统开发效率,提出基于领域建模的代码自动生成开发方法。该方法在数控领域元模型的基础上建立了数控系统的建模环境,以模型数据到源代码的映射规则库为基础,开发了面向目标环境的模型解释器。根据数控产品不同的需求,能够从模型层次对系统功能进行重配置,并通过模型解释器自动生成源代码或相关配置文件。以二轴和三轴运动控制系统为开发对象进行验证,结果证明该方法能有效缩短数控系统开发周期,提高开发效率。

关键词: 领域建模, 元模型, 数控系统, 代码生成

Abstract: To improve the development efficiency of CNC system, this paper proposes a development method of code automatic generation based on domain modeling. Based on the meta-model of CNC domain, a modeling environment for CNC system is created, and based on the mapping rules from model data to source code, model interpreter for target platform are developed. According to different system requirements, system function can be reconfigured at model-level, and source code or configuration file is generated automatically by model interpreter. The method is applied on the development of tow-axis and three-axis motion control systems, and result shows that it can shorten the development cycle and improve the development efficiency for CNC system.

Key words: domain modeling, meta-model, CNC system, code generation

中图分类号: