华南理工大学学报(自然科学版) ›› 2009, Vol. 37 ›› Issue (4): 80-85.

• 机械工程 • 上一篇    下一篇

用于计算机数控系统模型层验证的模型转换

郑建华 李迪 肖苏华 李方   

  1. 华南理工大学 机械与汽车工程学院, 广东 广州 510640
  • 收稿日期:2008-04-08 修回日期:2008-07-11 出版日期:2009-04-25 发布日期:2009-04-25
  • 通信作者: 郑建华(1977-),男,博士生,主要从事嵌入式控制系统、复杂系统建模及性能验证研究. E-mail:zheng.jianhua@mail.scut.edu.cn
  • 作者简介:郑建华(1977-),男,博士生,主要从事嵌入式控制系统、复杂系统建模及性能验证研究.
  • 基金资助:

    国家自然科学基金资助项目(50575075);广东省自然科学基金资助项目(05103543)

Model Transformation Used for Model Verification of CNC System

Zheng Jian-hua  Li Di  Xiao Su-hua  Li Fang   

  1. School of Mechanical and Automotive Engineering, South China University of Technology, Guangzhou 510640, Guangdong, China
  • Received:2008-04-08 Revised:2008-07-11 Online:2009-04-25 Published:2009-04-25
  • Contact: 郑建华(1977-),男,博士生,主要从事嵌入式控制系统、复杂系统建模及性能验证研究. E-mail:zheng.jianhua@mail.scut.edu.cn
  • About author:郑建华(1977-),男,博士生,主要从事嵌入式控制系统、复杂系统建模及性能验证研究.
  • Supported by:

    国家自然科学基金资助项目(50575075);广东省自然科学基金资助项目(05103543)

摘要: 传统的以代码为中心的数控系统开发方式使系统测试滞后,性能难以保证,开发成本增加.针对这种情形,文中提出利用模型转换将领域模型转换为第三方验证工具(Matlab或UPPAAL)可识别的模型来进行系统性能早期测试,从模型层保证系统的可靠性.采用基于元模型层的规则定义、语义动态添加和基于设计模式的操作等策略,以满足模型转换的语义保持性、转换一致性、转换可终止性、转换易扩展性等具体要求,并给出了模型转换实现的理论框架以及点对点转换和两步法转换两种实现方式.最后,通过一个从数控系统工作模式模型到StateFlow模型的转换实例,从建模语言构建、映射规则定义、算法设计等方面验证了上述模型转换理论框架和实现方式的可行性及正确性.

关键词: 计算机数控, 模型验证, 模型转换, 元模型, 特定领域建模

Abstract:

The traditional code-centered development methods of CNC systems have made the system testing lag behind. They cannot guarantee system performances and often result in an increase in the development cost. To solve this problem, a new approach, which transforms the domain model to another model discerned by a third-party verification tool (Matlab or UPPAAL), is proposed to guarantee the system reliability in the model layer. In this ap- proach, several strategies including the rule definition based on the meta-model layer, the dynamic semantic attaching and the operation based on the design pattern are presented to meet the specific requirements for the semantic retentivity as well as the transformation consistency, terminability and extensibility of the model transformation. Then, a theoretical framework for the model transformation and two realization methods respectively with the point- to-point and the two-step transformations are described. An example of the model transformation from a CNC working mode model to a StateFlow model is finally presented to verify the feasibility and accuracy of the framework and its realization in terms of the modeling language construction, the mapping rule definition and the algorithm design.

Key words: computerized numerical control, model verification, model transformation, meta-model, specific domain modeling