• 论文 •    

基于XSLT的通用STEP-NC后置处理器开发

肖文磊,郇极   

  1. 北京航空航天大学 机械工程及自动化学院,北京100191
  • 出版日期:2012-10-15 发布日期:2012-10-25

Development of universal STEP-NC post processor based on XSLT

XIAO Wen-lei, HUAN Ji   

  1. School of Mechanical Engineering and Automation, Beihang University, Beijing 100191, China
  • Online:2012-10-15 Published:2012-10-25

摘要: 为了使STEP-NC兼容传统的数控系统,需要在传统数控系统上构建专用的STEP-NC后置处理器。为此,建立了一个通用的后置处理器,以降低构建专用STEP后置处理器的开发工作量和开发难度。采用可扩展标记语言模式下的STEP-NC代码作为输入和基于可扩展样式表语言转换的转换机制,实现面向不同数控加工设备统一化的后置处理过程。根据可扩展样式表语言转换原理和要求,分别开发了EXPRESS-X和P21-P28的文件格式转换器。构建了以P28格式作为输入和以XSLT样式表语言定义机床设备接口格式的通用后置处理器。以一台切削加工机器人和一台三轴数控铣床为应用实例,分别以机器人语言和G代码作为后置处理结果,对后置处理器的功能性和可行性进行了验证。

关键词: STEP-NC, 数控系统, 可扩展标记语言, 可扩展样式表语言转换, 后置处理

Abstract: To make STandard for the Exchange of Product model data-Numerical Control(STEP-NC)was compatible with traditional NC systems, the special STEP-NC post-processor was necessary for each traditional NC system. Thus, a general post-processor was created to reduce the development workloads and difficulties in constructing the special STEP-NC post-processor. By using STEP-NC code in eXtensible Markup Language(XML)mode as the post-processor input and the eXtensible Stylesheet Language Transformations(XSLT)based transformation mechanism, the post processing oriented to unification of different NC machining equipments was realized. According to transfer principle and requirement of XSLT, the data converters for EXPRESS-X and P21-P28 were individually developed. A general post-processor was constructed which took P28 file as data input and XSLT style sheet as machine equipment interface format. A cutting robot and a 3-Axis NC machining were taken as application examples, which accepted robot language and G-code respectively as the cutter location data. The results testified and verified the functionality and feasibility of the proposed post-processor.

Key words: STEP-NC, numerical control system, extensible markup language, extensible stylesheet language transformations, post-processing

中图分类号: