• CN:11-2187/TH
  • ISSN:0577-6686

›› 2007, Vol. 43 ›› Issue (1): 185-190.

• 论文 • 上一篇    下一篇

基于STEP-NC数控系统的译码模块及坐标问题

朱晓明;王永章;富宏亚   

  1. 哈尔滨工业大学机电工程学院
  • 发布日期:2007-01-15

INTERPRETING MODULE AND COORDINATE PROBLEM FOR CNC BASED ON STEP-NC INTERFACE

ZHU Xiaoming;WANG Yongzhang;FU Hongya   

  1. School of Mechanical and Electrical Engineering,Harbin Institute of Technology
  • Published:2007-01-15

摘要: 针对STEP-NC的数据模型和面向对象的编程特征,运用模块化软件设计思想,建立译码模块的四个功能子模块。① 输入子模块负责解析STEP-NC程序,设计专门的数据结构用来存储程序行实体信息。② 识别子模块识别加工程序中的各种实体,提出特定的识别顺序以保证识别准确度。③ 建模子模块根据实体类型,通过实体映射的方法建立相应的C++类库模型。④ 路径规划子模块根据模型参数规划加工路径,并给出其工作过程。路径规划涉及的一个复杂问题就是坐标转换。对STEP-NC标准中坐标的层次结构进行了归纳,对路径规划过程中的坐标参照原则进行了详细介绍。通过一个基于STEP-NC接口的三维铣削仿真系统的仿真试验,生成可视的刀具路径,证明路径规划的正确性。最后将译码模块移植到开放式数控系统中,通过实际的加工试验验证译码模块的有效性和正确性。

关键词: STEP-NC, 路径规划, 译码模块, 坐标系统

Abstract: Aiming at the data model and programming character of object oriented of STEP-NC, with design thinking of software module applied, an interpreting module including four sub-modules is built. ① Inputting sub-module is responsible for parsing STEP-NC program, and a special data structure is designed to store the entity information of program line. ② Recognizing sub-module can recognize all kinds of entities in the machining program, and a fixed recognizing order is pro-posed to guarantee the accurate result. ③ Modeling sub-module establishes corresponding C++ class model by entity mapping according to entity type. ④ Planning sub-module plans the tool path according to the class model parameters, and its run-ning process is explained. A complicated problem involved in path planning is coordinate transformation. The hierarchy frame of coordinate of STEP-NC is summarized and the coor-dinate reference principle is elaborated. By visual tool path in a simulation system for 3-D milling machining based on STEP-NC, the path planning is proved to be right. At last the interpreting module is planted into an open CNC and confirmed to be valid and correct by real machining experiment.

Key words: Coordinate system, Interpreting module, Path planning, STEP-NC

中图分类号: