Based on the the RTLinux CNC system key technologies research and software development

Author
GuoJinFeng
Advisor
LiuXiongWei
School
Huaqiao University
Major
Mechanical Manufacturing and Automation
Classification
TG659 Program control machine tools, CNC machine tools and machining
Degree
Master's thesis
Year
2001
Downloads
344
Citations
10

Request the full text

Abstract

■ subject background generic PC hardware platform, the PC operating system as the software platform developed PC-based CNC system is an important direction of development of the CNC system. DOS and Windows PC on mainstream operating system, and is also a major PC CNC system software platform. DOS and Windows are just general purpose PC operating system, so when they are used for numerical control system must first solve the realization of real-time multi-tasking environment. Relatively easy access to the DOS, for real-time multi-tasking environment to meet the needs of real-time control of the CNC system, in terms of performance, most existing PC CNC system software are developed based on DOS. DOS function has many limitations, especially with the development of the times, the increasingly high demand for modern CNC system function, DOS can no longer meet the need for further development of numerical control system. Windows has a very strong function. However, because Windows only allows the application functionality through the system interface structure, timing tasks using these methods to achieve up to less than the numerical control system real-time motion control on the timing accuracy requirements, so the real-time the CNC system timing task The sex in Windows can not be guaranteed. Windows multitasking environment is not taken into account in the design of real-time applications, task scheduling efficiency is lower, so the Windows task scheduler in real-time can not be guaranteed. Therefore, based entirely on Windows to develop high-performance CNC system software does not work. Currently, Windows is often used as the operating system of the host computer numerical control system of the upper and lower machine structure, the next bit machine by the real-time operating system control. This structure CNC system can obtain high performance and strong functionality, but its high cost, the development also more difficult. Unlike DOS and Windows, RTLinux is a hard real-time capability of multi-tasking operating system. Due entirely to the goal of real-time applications design, RTLinux real-time performance is mainly limited by the hardware conditions. When the hardware performance of RTLinux real-time performance will improve in almost the same proportions. Therefore, based on RTLinux developed CNC system software performance guaranteed. Function numerical control system software based on RTLinux RTLinux real-time tasks can take advantage of all Linux features, there are a good foundation for the development. The ■ main research content RTLinux get by standard Linux real-time transformation. Based real-time control programs to achieve great view of the operating mechanism of the real-time operating system, in-depth study in Chapter RTLinux is closely related with the development of real-time applications, include: real-time performance parameters of RTLinux RTLinux real-time multitasking implementation mechanism RTLinux programming mode. Linux is run as a lowest priority task in RTLinux, so all the features in the Linux space (for example, graphics capabilities, network functions, etc.) are not real-time. RTLinux real-time tasks can use these Linux features, but this use can only be achieved through indirect methods. It is this that led to the particularity of the RTLinux real-time programming mode. In this paper, based on the the RTLinux NC system software research and development process, special attention and emphasized the impact of the implementation mechanism of RTLinux CNC system software. RTLinux real-time application tasks must be divided into two groups: the real-time domain tasks and non-real-time domain task. RTLinux real-time kernel to ensure that the real-time nature of the task of real-time domain, but they can not use any Linux functions may lead to competition for resources; non-real-time domain task is to take advantage of all Linux features, but they can not have any real-time requirements. CNC system software function module division plan based on RTLinux RTLinux real-time programming mechanisms and characteristics of the NC task. RTLinux support for SMP (Symmetric the Multi-Processing, symmetric multi-processing), the operating system can be used as a multi-CPU machine. The so-called SMP operating system is the operating system can equally share the load of multiple CPU. SMP feature of RTLinux, can make multi-CPU computer numerical control system tasks were run on different CPU, enabling parallel multi-machine CNC system Guo Jinfeng based CNC system in RTLnux key technology research and software development (the difference between in the structure of the upper and lower computer). In this paper, the numerical control system based on RTLinux SMP function software development methods. More rational and efficient use of multi-threading technology CNC system can make the task run. RTLinux threads can be divided into two levels; a thread scheduling by the real-time kernel, including: interrupt handler, three kinds of real-time threads, Linux kernel; another thread scheduling by the Linux kernel, and that non-real-time domain thread. This article studies the multi-threading technology in CNC system software level module. CNC system of man-machine interface, status display functions to be used in the graphics capabilities of Linux, the graphical interface of the CNC system based on Gtk + / Gnome libraries. This article discusses the numerical control system based on RTLinux software decoding module and study the mechanism of Linux multi-threaded decoding module implementation. CNC system of real-time tasks, some cyclical trigger (such as position control tasks and trajectory interpolation task), and some conditions trigger the task of preparing and decoding tasks (for example, interpolation), these two tasks in RTLinux in The method proposed solutions. CNC system task (such as keyboard tasks) is to interrupt the task, this paper proposes an effective solution of numerical control system interrupt task realization. This article is given in the sixth chapter of the implemented system instance, including the graphical interface of the system, the total control module, interpolation ready algorithm. . Conclusions of the paper by the research work of this paper, the authors draw the following conclusions: NC system software based on RTLinux is completely reliable and real-time performance, the function also has a lot of room for improvement, and

Table of contents

Abstract 4-6 English Summary 6-8 first chapter 8-15 1.1 CNC system development history and Development Trend 8-11 1.1.1 CNC technology development history nbsp 8 1.1.2 China's CNC system development; 8-9 1.1.3 CNC technology trends 9-11 1.2 based on DOS and Windows platforms CNC system software performance analysis 11-13 <br / > 1.2.1 DOS 11-12 1.2.2 Windows 12-13 1.3 advantages and disadvantages of analysis based on the the RTLinux developed CNC system software 13 1.4 In this paper, the significance of the topic 13-14 1.5 The content of this arrangement 14-15 the RTLinux introduced 15-22 2.1 RTLinux Introduction 15 2.2 RTLinux composition of 15-16 2.3 RTLinux implementation principle the 16-17 2.4 RTLinux The, real-time multi-task scheduling mechanism 17-19 2.4.1 RTLinux, task scheduling strategy 17 .4.2 RTLinux task status 17-18 2.4.3 RTLinux scheduler core 18 2.4.4 scheduling process 18 - 19 2.5 RTLinux real-time application development model the 19-22 PC-based CNC system hardware architecture 22-28 3.1 the composition and structure of the PC-based CNC system hardware 22-23 the 3.1.1 control computer 22 3.1.2 CNC dedicated template 22 - 23 3.2 CNC dedicated hardware boards 23-24 3.3 Several typical implementation program and its data processing 24-28 3. 3.1 using the the analogue AC / DC servo unit system method and data processing 24-25 3.3.2 digital AC servo unit method and its data processing nbsp 26-28 Chapter; 25-26 3.3.3 stepper motor system method and its data processing based the RTLinux CNC system software architecture design 28-33 4.1 Analysis principles and characteristics of the DOS-based CNC system software - 28-29 4.2 based on the principles and characteristics of Windows95/NT CNC system software Analysis 29-30 4.3 based the RTLinux NC system software structure 30-31 4.4-RTLinux SMP functions in CNC system software 31-33 4.4.1 RTLinux SMP, function 31 4.4.2 PC CNC system structure shortcomings 31 4.4 .3 RTLinux SMP feature CNC system 31-33 Chapter CNC system software development based on RTLinux 33-48 5.1 based on RTLinux NC division of the functional modules of the system software 33-34 5.2 connection between the various functional modules of the system buffer 34-35 5.3 system running state 35-36 the 5.3.1 part program processing start and stop 35 5.3.2 system running time state 35-36 5.4 Real-Time Module 36-38 5.5 Linux graphical programming CNC system status display task 38-40 5.5. 1 Linux Gtk / Gnome library programming 38-39 5.5.2 CNC system status display task 39-40 5.6 decoding tasks to achieve 40-45 5.6.1 decoding task location problems 40-41 5.6.2 Linux multithreading mechanism 41 5.6.3 Linuxthreads multithreaded programming key technologies 41-42 5.6.4 Linux multithreaded programming CNC system software development 42-43 5.6.5 decoder implementation framework the 43-44 5.6.6 decoding result data structures 44-45 5.6.7 modal instruction processing 45 5.7 RTLinux interrupt handling technology to interrupt handling nbsp 45-46 5.7.1 RTLinux the keyboard input processing tasks 45 5.7.2 CNC system keyboard input processing task to achieve; 45-46 5.8 RT-the FIFO transmission of information between the CNC system software modules application 46-48 Chapter VI system application examples the 48-54 6.1 system software features introduced 48 6.2 system program module 48-49 6.3 graphical interface 49-50 6.4 master module (cnc_main.c) 50 the the 6.5 parts program management module (partprogram.c) 50-51 6.6 the interpolation preparation module (prepare.c) 51-52 6.7 processing Examples 52-54 Chapter VII Summary and Outlook 54-56 7.1 This work summarizes 54 7.2 further work 54-56 Acknowledgements to References 56-57 57-59

Related dissertations

  1. The Design for Laser Cutting Machine System Based on PCI-Bus
    LiuJiHai ·South China University of Technology ·2012 ·Master's thesis
  2. Control System Design and Implementation of Biped Robots
    WangBin ·Shanghai Jiaotong University ·2008 ·Master's thesis
  3. CNC multi- task process controller design and implementation
  4. The Research and Development of RTLinux-based Open Architecture CNC System of PCB NC-drilling Machine
    WeiZuo ·Beijing Jiaotong University ·2007 ·Master's thesis
  5. The Research on Control System of a Mobile Robot of Compound Wheels and Six-bar Mechanism
    WangHongZuo ·Beijing Jiaotong University ·2008 ·Master's thesis
  6. Analysis and Realization of Real-time Linux Operating System
    HanJinYan ·Taiyuan University of Technology ·2007 ·Master's thesis
  7. Research and Implementation of Device-independent Mechanism Based on CORBA Service for Open Architecture Controller
  8. Design and Implementation of Soft PLC for Open CNC
  9. The Design and Implementation of the 429 and 1553B Data Bus Device Driver in the RTLinux Environment
  10. Research of Fault Injection and Analysis System for Unmanned Aerial Vehicle Based on Linux
  11. Applied Research -based of RTLinux embedded electromechanical systems
    ZuoMiYing ·Central South Forestry University ·2003 ·Master's thesis
  12. The Research on the Real-Time of Embedded Linux
    LiZhiPeng ·Hunan University ·2004 ·Master's thesis
  13. CNC programming system development workshop
    GaoJinGang ·Huaqiao University ·2004 ·Master's thesis
  14. Based on RTLinux real-time kernel software research
  15. LINUX-based PCNC DNC system implementation and system integration research
  16. Based on the study of real-time Linux software
    WangGeng ·Northwestern Polytechnical University ·2002 ·Master's thesis
  17. Embedded Linux in Control Communication System Research
  18. Embedded digital multimedia network teaching Termination System Design and Implementation
  19. Linux Device Driver Development and centralized control of the clock display system Embedded Application Platform
  20. RTLinux - based CNC system software development
    ChenJianChun ·Huaqiao University ·2003 ·Master's thesis