Research and Implementation of CNC System Software Based onμTenux

Author
TanFeiFei
Advisor
FengYi
School
Dalian University of Technology
Major
Control Engineering
Classification
TG659 Program control machine tools, CNC machine tools and machining
Degree
Master's thesis
Year
2013
Downloads
12
Citations
0

Request the full text

Abstract

As the basis in the field of manufacturing automation, and the core of modern manufacturing equipment, numerical control technology marks a comprehensive national industrial strength level. With the rapid development of computer industry and electronic information science, embedded technology is widely applied. As a result, the traditional PC based CNC system are substituting by the embedded CNC system architecture mode.In this paper, on the basis of description of traditional open CNC system, an embedded microcontroller-based CNC system solutions is elected according to the functional requirements of a small CNC system. Embedded real-time operating sysyem μTenux is used as because it has the advantages of free and open source usability, portability and high real-time.The main control chip selects the Cortex-M3-based LPC1788produced by NXP Company.Research work in this paper includes:transpalnt of operating system μTenux in the LPC1788microcontroller; design and implementation of the USB host function as the CNC system data transfer interface; realization of display and man-machine interface in CNC system management. Since the multi-task scheduling of CNC system is managed by real-time operating system, it first need to transplant the middleware to the μTenux and managed by the μTenux to achieve its function.USB host function of CNC system is designed by cutting the NXP’s open source protocol stack nxpUSBlibv0.98. Specific content includes:porting the protocol stack on the μTenux based on LPC1788; configure USB host enumeration function and bulk transfer function, test bulk transfer test with read and write function on the U disk.The human-computer interaction in master controller of CNC system is mainly accomplished by means of GUI middleware em Win produced by SEGGER Company. System application interface includes:porting of em Win on μTenux based on LPC1788; user interface display of CNC system.Software in each part of this paper has been tested. The results verified the feasibility of the Cortex-M3based design scheme for CNC system. Also all the expected function are achieve in the master controller.

Table of contents

Summary 4-5 Abstract 5-8 1 Introduction 8-11 Research Status and Development Trend 1.1 CNC system 8 development and application of -9 1.2 embedded technology 9 1.3 the main work 9-11 2 overall system design 11-18 2.1 host controller functional requirements analysis 11-12 2.2 embedded platform choice 12-13 2.2.1 LPC1788 chip introduced 13 2.3 embedded operating system selection 13-15 2.3.1 embedded operating system performance comparison 14 2.3.2 real-time operating system μTenux introduced 14-15 2.4 host controller overall system design 15-18 2.4.1 design Guidelines 15-16 2.4.2 overall software architecture 16-18 3 system software platform for building 18-30 3.1 real-time operating system μTenux on NXP1788 transplant 18-24 3.1.1 activation code analysis 18-19 3.1.2 memory allocation transplant 19-20 3.1.3 clock transplant 20-23 3.1.4 GPIO port and serial asynchronous receiver transmitter (μART) transplantation 23-24 3.2 operating system migration test 24-30 3.2.1 multi-task management test routines 24-25 3.2.2 event flag test routines 25-27 3.2.3 mailbox test routines 27-30 4 CNC master controller application software design 30-62 4.1 system software architecture Overview 30 4.2 USB interface design and implementation 30-41 4.2.1 USB porting the operating system μTenux of 31-35 4.2.2 USB Host transplant results of tests and analyzes 35-41 4.3 CNC user interface design and implementation 41-62 4.3.1 embedded GUI software program to select 41-43 4.3.2 emWin on the operating system μTenux transplant 43-48 <br / > 4.3.3 CNC user interface design 48-52 4.3.4 CNC user interface implementation 52-59 4.3.5 CNC user interface on LPC1788 realize 59-62 5 summary and Outlook 62-63 References 63-65 Appendix A UART configuration flow chart 65 - 66 Appendix B multitasking test serial output Figure 66-67 seeking C emWin interface attached flow chart 67-68 Thanks 68 -69

Related dissertations

  1. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  2. Usb Without Invasive Data Collection Technology Research
  3. Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
  4. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  5. Grating Data Acquisition and Error Correction Technology
    DongShanShan ·Hefei University of Technology ·2014 ·Master's thesis
  6. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  7. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  8. Design of an Automatic Compensating System for Linearity and Temprature Drift of CNC YTF Components
    GaoWenBo ·South China University of Technology ·2014 ·Master's thesis
  9. Research and design of intelligent 3D pulse peak field strength tester
  10. Multi functional comprehensive test instrument based on Virtual Instrument Technology
  11. Embedded Fingerprint Identification System and Storage Technology
  12. Research on the Digital Broadband Electromagnetic Tomography System
    ChenGuang ·Tianjin University ·2010 ·Doctoral dissertation
  13. VxWorks Migration on VME Bus Embedded Controler
    GuanFei ·Harbin Institute of Technology ·2012 ·Master's thesis
  14. Design and Implementation of Video Intercom System Based on the Android Platform
    GuoLiQuan ·Huaqiao University ·2013 ·Master's thesis
  15. Embedded Linux-based USB Encryption Driver Design
  16. Research and Implementation of Usbtmc Specification about Universal Test Instrument
  17. Research Communication Device and Communication Protocols Based on USB Interface
    YuXiaoLei ·Harbin Institute of Technology ·2012 ·Master's thesis
  18. Research and Implementation of Infrared Touch Screen Based on HID Class
    WangYun ·Anhui University ·2014 ·Master's thesis
  19. The Designand Realization of Embedded USB Mass Storage System
    WangMeng ·Hebei University of Technology ·2013 ·Master's thesis
  20. Design and development of laser gyro and USB interface frequency test system