Study on General NC Code Compiler

Author
ZhangShengFang
Advisor
GeYanJun
School
Dalian Railway Institute
Major
Mechanical Manufacturing and Automation
Classification
TG659 Program control machine tools, CNC machine tools and machining
Degree
Master's thesis
Year
2002
Downloads
354
Citations
17

Request the full text

Abstract

In this paper, the the generic numerical control (NC) code compiler technology constitute explore the implementation strategy of the system development and application , to develop a universal significance NC code compiler system , system consisting of related issues . 1. Compiler technology was introduced in the NC code analysis process , the NC code compiler process is divided into lexical analysis , parsing and code conversion three stages . JB 3208-83 and JB3832 - 85 , the establishment of the interconnectedness between the different the NC system the same function instruction to achieve mutual conversion between the NC system code . 2. NC program structure , sorting out the common type of error in the NC program , and each error causes clearly defined . The application of formal grammars and LALR (1) of the NC program for lexical , syntax analysis using dedicated compiler tool LEX YACC NC code compiler module developed to ensure the completeness and accuracy of lexical , grammatical analysis . 3. To enhance the practical range of the system , develop a system customized modules , proposed \Introduction of database technology complex data processing system , the application DAO Database Engine , and improve the efficiency of data access , to avoid the system 's dependence on database systems , the scalability and versatility of the compiler to be fully protected . 4. Object-oriented technology is applied to the NC code compiler , object-oriented general-purpose compiler design methodology , this method can effectively achieve the same compiler system for a reasonable application of the different forms of language , to improve the maintainability of the compiler system and scalable sex . 5. System development follow the software engineering ideas , program structure is reasonable , user-friendly interface , high reliability and practicality .

Table of contents

The first chapter 14-25 1.1 CNC machine tools and CNC programming development status 14-17 1.1.1 NC machine tool development Overview 14 -15 1.1.2 NC programming and development 15-16 1.1.3 The field is an urgent need to solve the problem 16-17 the 1.2 NC code compiler Technical 17-23 the 1.2.1 compiler Technical Overview 17-19 the 1.2.2 NC code compiler technology research status quo 19-21 1.2.3 NC code compile technical problems in 21 1.2.4 NC code compiler technology solutions 21-23 < br /> 1.3 of this thesis research 23-25 ?? 1.3.1 of this thesis research 23-24 1.3.2 achieve results horizontal the overall 24-25 Chapter II General NC code compiler design 25-34 2.1 System Requirements Analysis and Description are found; 25-26 < br /> 2.1.1 System Requirements 25 the 2.1.2 system functions described the 25-26 NC code format 2.2 and Error Analysis 26-28 2.2.1 NC code format the 2.2.2 NC code error analysis 26-27 27-28 2. 3 System Architecture 28-32 2.3.1 NC code compiler module 28-30 the 2.3.2 NC system customization module 30 - 32 2.4 system overall framework 32-33 2.5 system development environment select 33 2.6 Chapter Summary 33-34 the NC code compiler theory and Implementation 34-53 3.1 NC code lexical, syntax overview 34-36 3.1.1 NC code address character analysis 34-35 the 3.1.2 NC code procedures words analysis nbsp 35-36 3.2 NC code grammar said; 36-39 3.2.1 the grammar The concept the 37-38 NC code grammar 3.2.2 described 38-39 3.3 dedicated compiler tool LEX the YACC introduced 39-42 3.3.1 the LEX function works 40 3.3.2 YACC function works 40-42 < br /> 3.4 Principles of lexical analysis and realization the 42-45 Overview 3.4.1 common lexical analysis 42 3.4.2 The system lexical analysis methods and lexical analysis program construction the 3.4.3 lexically, 42-44 analysis achieve 44-45 3.5 parsing principle 45 -49 3.5.1 Overview of common parsing methods are found; 45-47 3.5.2 The system parser constructor 47-48 .5.3 the system parsing achieve 48-49 3.6 error processing principle 49-50 3.7 code conversion principle nbsp the principle of the target code generation; 50-52 3.7.1 Overview 50-51 3.7.2 NC code conversion principle and achieve 51-52 <br / 3.8 Chapter Summary 52-53 Chapter NC system customization principle to achieve the 53-62 4.1 custom pre principle of the system and achieve 53-57 4.1.1 Data Access Object (DAO) Overview 54-55 4.1.2 system custom pre-data management mode 55-56 4.1.3 system customized early process 56-57 4.2 the system customization late principle and achieve 57-60 4.2.1-oriented Introduction to Object Technology 57-58 4.2.2 object-oriented common compiler design methods are found; 58-59 the 4.2.3 system customization late achieve 59-60 4.3 System Management Principles and Implementation 60-61 4.4 Chapter Summary 61-62 Chapter V system integration and testing 62-74 5.1 system interface design the 62-63 5.2 system demo instance 63-70 5.2.1 NC code compiler module instance the 64-67 5.2.2 system customization module instance 67-70 5.3 system test 70-73 5.3.1 Overview of Software Testing 70-72 5.3.2 The system test steps 72-73 5.4 Chapter Summary 73-74 conclusion the 74-75 the Ref. are 75-78 the studying for a master's degree during the paper catalog 78-79 <br / > Acknowledgements 79

Related dissertations

  1. Online Customized Garment Retail Price Research
  2. Real-time Operating System Customization of Linux and Development of Device Driver
  3. Study on the Rising and Design Development of Animation Costumes
    HuYang ·Dalian Polytechnic University ·2010 ·Master's thesis
  4. Develop and Research on Key Technology of NC Carpet Sampling Machine
    YuQiBao ·Donghua University ·2014 ·Master's thesis
  5. Design of Embedded Numerical Control System Hardware Platform Based on Cortex-A8
  6. The Research of a Adaptive Accelerated Life Testing Method Based on the Genetic Algorithm
    QianFan ·Hubei University of Technology ·2014 ·Master's thesis
  7. The Research of Milling NC System for Large Cylindrical Gear
  8. Study on Micro Electrical Discharge Milling Machining NC Motion Control with High Spindle Speed
    TangJiaJing ·Harbin Institute of Technology ·2013 ·Master's thesis
  9. The Electrical Development on TH6513Milling and Boring Machine Centre
    LiYanMing ·Jilin University ·2013 ·Master's thesis
  10. Research and Development of Intelligent Control Subsystem of Wood Processing NC System
    WangJunQing ·Beijing Forestry University ·2013 ·Master's thesis
  11. Research and Design of Soft PLC for CNC System
  12. The Design and Implementation of Data Reporting System Based on SNS and Social Game
  13. The Design of Control System for NC Carpet Sampling Machine
    ChenZuoHong ·Donghua University ·2013 ·Master's thesis
  14. The Research of Large Ingot Processing NC System Based on the Motion Controller
  15. NC System R&D for Conical Interpolation Based on RTAI/linux and PC104
    HanYuHua ·Shandong Institute of Light Industry ·2012 ·Master's thesis
  16. Research on the NC System of Bending Hoop Machine Based on Windows CE
    YangFeiHu ·Shandong University ·2012 ·Master's thesis
  17. Design of Embedded Numerical Control System Hardware Platform Based on ARM
  18. The Design of CNC System Based on Embedded Linux
    ZengYi ·South China University of Technology ·2012 ·Master's thesis
  19. Horizontal Machining Center NC System Design and Implementation
    GuoZuo ·Harbin Engineering University ·2012 ·Master's thesis
  20. Key Technology of C8955 Type Shovel Grinder Has Been Studied in the Process of Transformation of NC
    GeJing ·Xi'an Technological University ·2012 ·Master's thesis