• 论文 •    

基于RTLinux的全软件数控系统

朱达宇,李 彦,吉 华,王 强,李翔龙   

  1. 四川大学制造科学与工程学院现代设计与制造研究中心,四川成都610065
  • 出版日期:2004-12-15 发布日期:2004-12-25

RTLinux-based software CNC system

ZHU Da-yu,LI Yan,JI Hua,WANG Qiang,LI Xiang-long   

  1. Sch. of Manufacturing Science & Engineering, Sichuan Univ., Chengdu610065, China
  • Online:2004-12-15 Published:2004-12-25

摘要: 分析了目前全软件数控系统的特点,给出了一种在Linux平台上采用RTLinux实时扩展来构建全软件数控系统的方案。该方案将整个软数控系统分为界面层、管理层和控制层,分别处理数控系统的图形界面、非实时任务和实时任务。其中,控制层作为软数控系统的核心,由软计算机数字控制模块和软可编程的逻辑控制模块组成,分别完成对机床进给轴的伺服控制以及对机床辅助机构的逻辑控制;控制层采用RTLinux内核实时线程处理多个实时任 务,并采用实时管道作为数据缓冲区。利用RTLinux的高精度定时周期以及合理的实时缓冲区管理,保证了系统的实时性。

关键词: 软件数控, 实时控制, 开放式数控系统

Abstract: The characteristics of existing software Computer Numerical Control (CNC) system were analyzed. A scheme of software CNC system based on Linux + RTLinux was presented. In this scheme, the software CNC system was divided into three layers, user interface layer, system management layer and control layer. These three layers were respectively used for handling with the Graphical User Interface (GUI), non-real-time tasks and real-time tasks. As the core of software CNC system, the control layer was composed of two modules, software CNC module and software Programmable Logical Control (PLC) module. The former was dedicated to motion control and the latter was dedicated to logical control. The systems real-time tasks were processed by applying RTLinux kernel real-time threads. With the high timing resolution of RTLinux and appropriate real-time buffer management technologies, the systems hard real-time requirements were satisfied.

Key words: software computer numerical control, real time control, open computer numerical control

中图分类号: