Research of Embeded CNC for Lathes Based on ARM

Author
YangJun
Advisor
YouYouPeng
School
Nanjing University of Aeronautics and Astronautics
Major
Mechanical and Electronic Engineering
Classification
TG519.1 Program control lathes and CNC lathes
Degree
Master's thesis
Year
2009
Downloads
118
Citations
1

Request the full text

Abstract

To gain high cost perfermence, traditional CNC for lathes usually adopts 8-bit or 16-bit mcu and fine interpolator. With the development of the embedded system, high perfermence 32-bit CPU has been popularization. ARM as a typical product of 32 bits processors, being of high speed in computation and function and low costs, can be completely used to develop embedded CNC with higher cost perfermence. In this papar an Embended CNC for lathes based on ARM is designed and developed.Based on general analysis of embedded systems and NC technology, the hardware and software platform of embedded CNC for lathes are chosed. A 32-bit CPU LPC2220 is used as the kernel of hardware, together with a fine interpolatorimplemented with a CPLD, and some other necessary peripheral modules. The software of the embedded CNC is based onμC/OS–II, a real-time embedded operating system with open source code. Some equipment driver and application program are included in the software.For the development of the embedded CNC for lathes based onμC/OS–II, control tasks in the system are firstly planed and the communication coordination mechanism among each task is then designed. Seven tasks is involved in the CNC: main control, LCD display, file service, NC program interpretation, ACC/DEC control, interpolation and PLC. Upon the service of mailbox and semaphore provided byμC/OS–II, the communication and synchronization can be efficiently realized among tasks or between task and ISR.In addition, the implementation method of the interpretation of NC program for lathes is investigated. First, a lexical analyzer of NC program is constructed by finite state automaton (DFA) which can transform character streams to inner token streams. Then, syntax and semantic analysis are used for the NC program. Finally, the error-free machining information is stored in a specifical datas tructure which can be received and used by both the task of ACC/DEC control and PLC. The mechanism and implementation of call and return for subroutines are analyzed and given.Finally, the instruments of debugging and development for hardware and software are introduced. By testing, the embedded CNC for lathes can meet the expected design demands.

Table of contents

Abstract 4-5 Abstract 5-13 first chapter 13-19 1.1 CNC Technology Overview 13-16 1.1.1 CNC technology background 13-14 1.1.2 development of CNC abroad 14-15 1.1.3 development of domestic CNC 15 1.1.4 CNC technology trends 15-16 1.2 embedded system Overview 16-17 1.3 significance of this study and the main work 17-19 1.3.1 significance 17-18 1.3.2 The main contents 18-19 Chapter embedded CNC lathe system architecture Design 19-24 2.1 embedded CNC system design 19 2.2 embedded CNC system hardware 19-21 2.1.1 ARM subsystem 20 2.1.2 CPLD subsystem 20 2.1.3 LCD module 20 2.1.4 keyboard module 20-21 2.3 embedded CNC system software architecture 21-23 2.3.1 HMI management 21 2.3.2 logic processing 21-22 2.3.3 motion Control 22 2.3.4 data processing control 22 2.3.5 auxiliary Control 22 2.3.6 servo processing 22-23 2.4 Summary 23-24 Chapter lathe CNC system hardware platform design 24-34 3.1 LPC2220 Overview 24-26 3.1.1 ARM Profile 24 3.1.2 LPC2220 microcontroller overview and features 24-26 < br /> 3.2 power, clock and reset circuit design 26-28 3.2.1 power circuit design 26-27 3.2.2 clock circuit design 27 -28 3.2.3 reset circuit design 28 3.3 LPC2220 external memory design 28-29 3.4 EPM1270 circuit design 29-30 3.5 man-machine interface circuit design 30-32 3.5.1 keyboard input circuit design 30 3.5.2 LCD module interface circuit design 30-32 3.6 RS-232 serial communication circuit 32-33 3.7 Chapter Summary 33-34 Chapter CNC system software platform designed 34-58 4.1 embedded real-time operating system profile 34-35 4.2 ΜC/OS- Ⅱ Introduction 35-41 2.2.1 μC / OS-Ⅱ features 35-36 4.2.2 μC/OS- Ⅱ works 36-37 4.2.3 μC/OS- Ⅱ communication between tasks and synchronization 37-39 4.2.3.1 semaphore 37-38 4.2.3.2 messaging Mailbox 38-39 4.2.4 μC / OS-Ⅱ interrupt mechanism 39-41 4.3 ΜC/OS- Ⅱ on the LPC2220 transplant 41-46 4.3.1 write OS_CPU.H 41-43 4.3.1.1 definition does not rely on the compiler's data type 42 4.3.1.2 OS_ENTER_CRITICAL () and OS_EXIT_CREITICAL () to write 42-43 4.3.1.3 OS_STK_GROWTH preparation 43 4.3.1.4 OS_TASK_SW () function to write 43 4.3.2 write OS_CPU_C.C 43-45 <br / > 4.3.3 write OS_CUP_A.ASM 45-46 4.3.3.1 OSStartHighRdy function of the preparation 45-46 4.3.3.2 OSCtxSw function of the preparation 46 < br /> 4.3.3.3 OSIntCtxSw () function to write 46 4.3.3.4 OSTickISR () function to write 46 4.4 system software tasks and interrupt divided 46-51 4.4.1 lathe control systems division of tasks 47-48 4.4.2 Turning task priority control system to determine 48-49 4.4.3 lathe CNC system interrupt to determine 49 4.4.4 lathe control systems each task and workflow between ISR 49-51 4.5 system driver Design 51-57 4.5.1 LCD driver design 51-54 4.5.1.1 speed matching 51 4.5.1.2 address Space access 51-52 4.5.1.3 S1D13305 initialization 52 4.5.1.4 characters, Chinese characters and graphics display 52-54 4.5.1.5 improved interface switching and screen refresh rate measures 54 4.5.2 keyboard driver design 54-57 4.6 chapter Summary 57-58 <br / > Chapter lathe CNC program interpreter module implementation 58-71 5.1 program interprets the overall analysis module 58-60 5.1.1 program interprets module approach 58-59 5.1.2 program interpreter module structure is divided 59-60 5.2 NC program checks 60-64 5.2.1 lexical analysis 60-61 5.2.1.1 lexical analyzer 60 5.2.1.2 analysis Method 60-61 5.2.2 parsing 61-63 5.2.3 semantic Analysis 63-64 5.3 NC program translator 64-68 5.3.1 general G-code translation 64-65 5.3.2 research and Implementation of a subroutine 65-67 5.3.3 MST code processing 67 5.3.4 re- decoding processing 67-68 5.4 module part of the test program interprets 68-70 5.4.1 bug testing 68 5.4.2 general G-code test 68-69 5.4.3 test subroutine call 69-70 5.5 Chapter Summary 70-71 first chapters system software debugging 71-78 6.1 system development and debugging tools 71-75 6.1.1 ADS integrated development environment introduces 71-74 6.1.1.1 AD51.2 integrated development environment consisting 72 6.1.1.2 CodeWarrior IDE Introduction 72-73 6.1.1.3 AXD debugger Introduction 73-74 6.1.2 EasyJTAG-H emulator using 74-75 6.2 system software debugging 75-77 6.2.1 system the module debugging 75-76 6.2.2 system FBI 76-77 6.3 Chapter Summary 77-78 Chapter VII summarizes Outlook 78-79 7.1 paper summarizes 78 7.2 topics outlook 78-79 References 79-82 Acknowledgements 82-83 papers published during the master 83

Related dissertations

  1. Research of Superalloy Turbine Disk by Phased Array Testing System
  2. System Design on Portable Four-channel Data Acquisition
    ZhangZhongKui ·Harbin Engineering University ·2013 ·Master's thesis
  3. Research of the Embedded Control System of High-grade Towel Loom
    HaoTongDi ·Donghua University ·2014 ·Master's thesis
  4. ARM and CPLD-based Design and Implementation of CNC Control System
  5. Design and Research of Integrated Data Processing and Servo Control System of Telescope
  6. Design of Linear CCD Signal Acquisition System Based on the Architecture of Processor and CPLD
    HanDanAo ·Jilin University ·2013 ·Master's thesis
  7. The Research of Household Remote Monitoring Based on Embedded Web Server
  8. Remote Monitor System for Oil Wells Working Condition Based on GPRS
  9. Engine Room Monitoring System Based on the Embedded Web Server
  10. Research and Design of Intelligent Video Surveillance System Based on ARM
  11. The Research and Design of Embedded Graphic Remote Monitor Terminal
    DengBoWen ·Harbin Engineering University ·2013 ·Master's thesis
  12. The Design of Embedded Network Video Surveillance System Based on ARM9
  13. Data Acquisition System of Cavern Based on Embedded Web Server
  14. Research and Design of Remote Monitoring System Based on ARM
    LinFeiLong ·Hunan University ·2014 ·Master's thesis
  15. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  16. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  17. The Study of Physiological Parameters Monitoring and Remote Wireless Alarming System Based on ARM
  18. Study on ARM-based Embedded Monitoring and Measuring System of Refrigerated Vehicle for Fresh-keeping of Fruit and Vegetable
  19. Research and Realization of Dynamic Simulation Circulating Water Device Control and Data Processing System Based on ARM
    ZhangYanYan ·Dalian Polytechnic University ·2011 ·Master's thesis
  20. Design of Human Physiological Parameters Acquisition System Based on Embedded Linux