Open CNC System G-code compiler design and research

Author
TianYongZhong
Advisor
LiangChuHua , ZhouJianPing
School
Xinjiang University
Major
Mechanical and Electronic Engineering
Classification
TG659 Program control machine tools, CNC machine tools and machining
Degree
Master's thesis
Year
2010
Downloads
232
Citations
0

Request the full text

Abstract

Open CNC System is a modular architecture , its greatest feature is openness, portability and interoperability. Several types of PC-based open CNC system , NC -based embedded PC is currently the focus of research and development , the most common form is the \Such open CNC system information processing capabilities of PC and motion control card control capabilities combine together, with high reliability , strong function , good performance , simple operation , short development cycle , low cost , wide used in manufacturing automation and control fields. In this paper, this type of open CNC system G-code compiler design and C function as a study tool radius compensation . CNC G-code compiler is an important function module of the system , the paper according to the design requirements and the \compiler module program . Use of a G code group thinking , construct an intermediate code format for subsequent simulation module , tool compensation module provides accurate and concise data . Whether with a C function tool radius compensation function is a measure of a CNC machining an important indicator of performance , this paper G-code compiler design based on the C cutter compensation depth analysis and research , summarized \build \formulas, designs of the C function tool radius module , and its two-dimensional simulation . In summary, this paper \functions, and provide open source code level for the secondary development of relevant personnel , in line with the openness of numerical control system to achieve the design requirements.

Table of contents

Abstract 3-4 ABSTRACT 4-8 first chapter 8-17 1.1 Open CNC System Overview 8 -12 1.1.1 open CNC system definition and basic characteristics 8-9 1.1.2 Open CNC System Research 9-10 1.1 .3 open CNC system model 10-12 1.2 \\PC motion controller \; 16-17 Chapter G-code compiler design program 17-22 2.1 G code introduced 17-19 2.1.1 G-code grouping and definitions 17-18 2.1.2 M code grouping and definitions 18 2.1.3 feedrate (F), spindle speed (S) and tool function (T) command 18-19 2.2 G code compiler system requirements analysis and functional design 19 2.2.1 compiler module system requirements analysis 19 2.2.2 compiler module system function design 19 2.3 G code compiler development platform selection and development tool to select 19-21 <br / > 2.3.1 development platform of choice 19-21 2.3.2 Development Tool Selection 21 2.4 Summary 21-22 Chapter G-code compiler design and implementation 22-34 3.1 G code compiler design program 22-23 3.2 lexical analysis module design 23 - 27 3.2.1 NC program segment format and features 23-25 ?? 3.2.2 lexical analysis module need to be resolved 25-26 3.2.3 Case Study 26 3.2.4 Error handling 26-27 3.2.5 lexical analysis algorithm program 27 3.3 syntax analysis module design 27-30 3.3.1 parsing module commonly used method 27 3.3.2 syntax analysis module to be solved 27-30 3.3.3 Case Study 30 3.3.4 parsing algorithm 30 3.4 syntax-directed translation and intermediate code generation 30-33 3.4 .1 grammar guided translation 30-31 3.4.2 intermediate code 31-33 3.4.3 Examples verify 33 3.4.4 middle code generation algorithm 33 3.5 Summary 33-34 Chapter cutter compensation principle and implementation methods 34-66 4.1 C Tool radius compensation 34-35 4.2 C during the execution of the tool radius compensation 35 4.3 C programming tool radius compensation trajectory forwarding type and discriminant 35 - 37 4.3.1 Transfer type 35-36 4.3.2 Transfer type discrimination method 36-37 4.4 Transfer of various types of \complement transfer point vector \40-59 4.5 C cutter compensation algorithm 59-62 4.5.1 Algorithm for the overall flow structure 59-62 4.5.2 Tool Compensation various types of transfer of program 62 4.6 Related Content designed 62-64 4.6.1 G90/G91 62-63 4.6. 2 G20/G21 63 4.6.3 G43/G44/G49 63-64 4.7 G code compiler system test 64-65 4.7.1 software testing related concepts 64 4.7.2 The compiler module testing procedure 64-65 4.8 Chapter Summary 65-66 Chapter Summary and Outlook 66-68 References 68-70 papers published during the master's degree 70-71 Thanks 71-72 Appendix G code table 72-73 Appendix II M code table 73-74 Appendix III G-code compiler Delphi 7 Source 74-94

Related dissertations

  1. Design of Open Control System Based on GTS Motion ControlCard
    HuXueLong ·Shihezi University ·2013 ·Master's thesis
  2. Study on the Algorithms of the Tool Radius Compensation and Read-time B-spline Curves Interpolation Based on the NC System
    TanYanWen ·Beijing Jiaotong University ·2008 ·Master's thesis
  3. Design and Implement of the Internal and External Three Prism Milling CNC System Based on Trio Movement Control Platform
    ZhangJianFei ·Chongqing University ·2007 ·Master's thesis
  4. Based on DSP multi-axis motion controller
    XieWanDe ·Zhejiang University ·2002 ·Master's thesis
  5. Design and Research of Function Module for Open CNC System with 8-Axis
    FengXinWen ·Shenyang University of Technology ·2008 ·Master's thesis
  6. Motion controller based open CNC system management software research and development
  7. Open CNC System Research and Implementation of function modules
    ZhengJun ·Shenyang University of Technology ·2009 ·Master's thesis
  8. The Research of Micro Lathe CNC Based on PCI-bus
    HuLiu ·Shandong University of Technology ·2011 ·Master's thesis
  9. Study on Related Technology of Network-Based Open CNC System
    YangQiuJuan ·University of Jinan ·2010 ·Master's thesis
  10. Teaching open CNC Lathe Design and Research
    DongXiaoJin ·Central South University ·2009 ·Master's thesis
  11. Study of Three Axes Numerical Control Experimental Platform
    SunHuanGuang ·Shandong University ·2011 ·Master's thesis
  12. Research on 5-DOF Series Robot Control System of Open-Architecture
    GuoLei ·Northeastern University ·2008 ·Master's thesis
  13. Research on Remote Monitor and Control System of Open CNC Equipment
    WangYongHui ·University of Jinan ·2013 ·Master's thesis
  14. Design and Development of All Electric Injection Molding Machine Control System
  15. The Design of Embedded Software for Motion Controller Based on DSP
  16. Modeling and Implementation of Motor Function Module Based on PLCopen
  17. Design of Industrial Ethernet Motion Controller Based on ARM
  18. Open CNC System Communication Rate Research Base on SERCOS Bus
  19. Application of Robot in Profiled Tank Welding Based on DSP Multi-axis Motion Controller
    JiaJia ·University of Jinan ·2013 ·Master's thesis
  20. Design of Cutting Robot System Platform Based on ARM
    QiChong ·Harbin Engineering University ·2013 ·Master's thesis