Numerical Control System Based on Embedded Linux and MCX314

Author
ChenShengYong
Advisor
GuoYong
School
Chengdu University of Technology
Major
Signal and Information Processing
Classification
TG659 Program control machine tools, CNC machine tools and machining
Degree
Master's thesis
Year
2009
Downloads
208
Citations
3

Request the full text

Abstract

With the more and more important place of the manufacturing among the national economy, it becomes urgent to improve the efficiency, reduce the cost and better the quality. Numerical control system which acts as a central technology of modern manufacturing can demonstrate the level of a country’s manufacturing. It’s high time to research and implement a kind of numerical control system of high precision, high efficiency and high stability to accelerate development of the manufacturing of our country. MCX314 is designed by NOVA electronics companies from Japan to achieve a 4-axis motion control IC. The IC can be used to control the stepper motor or pulse-controlled servo motor-driven 4-axis position, velocity, interpolation.This paper proposes a new research of numerical control system based on the motion control chip of MCX314 on the embedded Linux platform. The S3C2410 of SAMSUNG is the CPU of the system which controls the MCX314 via bus. S3C2410 is an embedded microprocessor including ARM920t core with many interfaces which are helpful to the design. Some of the MCX314 circuit is included in the paper, such as pulse output circuit, limit switch. There are also some optical isolation circuits to get rid of the undesired signal.The embedded Linux OS is successfully planted into the hardware platform, including BOOTLOADER, inner core and file system. A specific file system based on which the relative drivers are designed according to the hardware circuits is designed to meet the demand of the numerical system.Having finished the hardware and software of the numerical control system, the ingredients and features of the NC codes are introduced and analyzed. This paper then states the specific implementation steps and methods. Next it analyzes the grammar of the NC codes based on non-context and lists the possible errors. Lastly the compiler of the NC codes is successfully developed using the specific tool of morphology analyzer called FLEX and grammar analyzer called BISON. FLEX and BISON which are exclusive lexical analysis tools LEX and YACC syntax analysis tools for the GNU-specific version . At the same time, this paper also introduced the FLEX with LEX and YACC and BISON points of similarities and differences.When completion all the work above, System integration can be done with the integrated debugger, First of all, we process hardware testing, The purpose of the hardware test is to determine the design of hardware circuit whether we can work properly. Including whether the normal power supply, whether from David Crystal. End of hardware in the test circuit, we can get our compiler BootLoader, core file zImage, and the file system to burn to the hardware system. Debugging whether the system is correct or not .after the System is activated, the driver will be able to carry out testing, at the final we combinat of stepper motor, the preparation of a section of NC program, testing procedures for lexical and syntax analysisTo sum, the numerical control system this paper introduces is designed on the basis of the research method of the embedded system. Compared with the traditional PC control, the system characterizes low power consumption, low cost, high stability and high performance, which indicates the trend and requirement of the development of the numerical control system.

Table of contents

Abstract 4-6 ABSTRACT 6-10 Chapter 1 Introduction 10-13 1.1 research significance 10 <br / > 1.2 domestic situation 10-11 1.3 CNC system development trend . 11-12 1.4 the main task of the system design 12-13 < br /> Chapter 2 CNC system hardware components and design 13-28 2.1 CNC System features 13-15 2.1.1 composition and working principle of CNC machine tools 13-14 2.1.2 this system CNC functions 14-15 2.2 CNC system design 15 2.3 MCX314 features 15-18 2.4 S3C2410 architecture introduces 18-19 2.5 S3C2410 control part of hardware circuit design 19-22 2.5.1 LCD display Interface 19-20 2.5.2 keyboard control interface 20-21 2.5.3 network Interface design 21-22 2.6 MCX314 part of the hardware circuit design 22-28 2.6.1 MCX314 and S3C2410 interface design 22-23 2.6.2 MCX314 drive pulse output interface design 23-24 < br /> 2.6.3 MCX314 universal signal interface with an external sensor design 24-26 2.6.4 encoder input interface design 26-28 Chapter 3 of the S3C2410 Linux system migration 28-36 3.1 system Migration process Overview 28-29 3.2 BootLoader transplant 29-31 3.3 Linux 2.6 kernel porting 31-33 3.3.1 Linux 2.6 kernel source code for the basic structure 31 3.3.2 Linux kernel configuration and shear planted 31-33 <br / > 3.4 Linux file system migration 33-34 3.4.1 Linux root file system introduction and production 33 3.4.2 Cramfs YAFFS file system 33 - 34 3.5 C58900 NIC driver transplant 34-36 Chapter 4 under LINUX MCX314 -driven design and control of 36-47 4.1 Linux driver under Overview 36-41 4.1.1 device driver data structures 37-38 4.1.2 Linux device driver design and implementation 38-41 <br / > 4.2 MCX314 driver design 41-43 4.3 MCX314 control program design . 43-44 4.3.1 MCX314 introduction of the register 43-44 < br /> 4.3.2 MCX314 command system analysis and control 44 4.4 keyboard chip HD7279 driver design 44-47 Chapter 5 NC code compiler theory and overall design 47-51 5.1 NC compiler needs analysis 47-48 5.2 NC compiler is required to complete the function 48 5.3 software design process 48-51 Chapter 6 NC code compiler implementation 51-63 6.1 NC code introduced and analyzed 51-53 6.1 .1 NC program structure analysis 51 6.1.2 NC code instruction word analysis 51-53 6.2 NC code lexical analysis 53-58 6.2.1 the role of lexical analysis and methods 53-54 6.2.2 Flex presentation 54-56 6.2.3 regular Expressions 56-57 < br /> 6.2.4 based on the NC lex lexical analyzer design 57-58 6.3 NC code parsing 58-61 6.3.1 parsing introduction 58-59 6.3.2 YACC introduction 59-60 6.3.3 the NC yacc lexical analyzer based design 60-61 6.4 NC code errors analysis and processing 61-63 Chapter 7 System hardware and software testing 63-64 7.1 hardware circuit test 63 7.2 software testing 63-64 Summary and Outlook 64-65 Thanks 65-66 References 66-67 pursue a degree academic achievements made ??during 67

Related dissertations

  1. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  2. Design of Video Monitoring System Based on the Embedded
  3. The Design of Embedded Network Video Surveillance System Based on ARM9
  4. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  5. Design of Industrial Ethernet Motion Controller Based on ARM
  6. AGV car design and development of image recognition and motion control technology based on
  7. Transplant OpenCV to Embedded System and Face Recognition
    ChenYang ·Liaoning Normal University ·2012 ·Master's thesis
  8. Linux System Transplantation and USB Driver Development Based on CK-CPU Embedded Platform
    XueJiaYin ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. Design and Implementation of Unidirectional Data Transmission Device Based on Removable Storage Media
  10. Design and Realizing of the Video Monitoring System Based on the Embedded Network
    ZhangZuo ·Northeastern University ·2010 ·Master's thesis
  11. Design and Implementation of Video Acquisition and Wireless Transmission System Based on Embedded System
    LiuYu ·Ningxia University ·2014 ·Master's thesis
  12. Software Design of Visual Conversational Embedded System
  13. Research and Implementation of IoT Gateway Based on Embedded Linux System
    ChangYingLiang ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Design and Implementation of Gateway Based on ARM9and Zigbee
    LiuHongBo ·Hubei University ·2013 ·Master's thesis
  15. Design of Image Acquisition and Wireless Transmission System for Barley Field Based on ARM and WiFi
    MaoHongYu ·Gansu Agricultural University ·2013 ·Master's thesis
  16. Research and Realization of a Smart Home Gateway Based on Linux
    ShaoChunZuo ·Chang'an University ·2013 ·Master's thesis
  17. Research and Design of BD/GPS Dual-Mode Intelligent Vehicle System
    XiaoYongJun ·Hunan University ·2013 ·Master's thesis
  18. The GPS/CNSS Navigation System Reaearch Based on Linux
  19. Design of a Data Communication System for Theodolite Based on Embedded Technology
  20. Design and Implementation of the Embedded Video Surveillance Server Based on ARM and Linux
    JiaoFangChao ·Shandong Normal University ·2012 ·Master's thesis