Design and Research of Open CNC system software under Windows

Author
HeHang
Advisor
HuangDaGui
School
University of Electronic Science and Technology
Major
Mechanical and Electronic Engineering
Classification
TG659 Program control machine tools, CNC machine tools and machining
Degree
Master's thesis
Year
2004
Downloads
397
Citations
26

Request the full text

Abstract

This paper introduces how to design and implement the open architecture software system with three-coordinate Computer Numerical Control (CNC) based on motion controller GD104 on the Windows98 platform. The software system is divided into motion controller driver software and host application program under the hardware environment, and both of them are designed and developed respectively. Meanwhile, some key problems in the CNC system are analyzed and researched, and some important achievements have been gotten as following:(1) In terms of Numerical Control (NC) code compile, many complex operatings are put into preprocess with the compile and interpretation method, while less memory is used to realize the transformation from NC code to interpolation commands during the realtime process. At the same time, the tool semidiameter compensation problem is also solved by analytic method in preprocess stage.(2) In terms of graphic emulation, tool track is provided with the preview mode of three-view, and it is dynamicly traced by using Bresenham’s algorithm during the simulated working process. The working time is accurately estimated according to its speed.(3) In terms of interpolate algorithm, the parts are interpolated for two steps by using PC computer and motion controller mode. In the first step, the PC computer assigns a thread to finish the task of rough interpolation. In the second step, the task of exact interpolation can be finished eithor by the hardware of the motion controller or by the bit-interpolation of the motion controller after the PC computer generates the data package.(4) In terms of realtime control, the interruption capture of the hardware timing and interpolate ending are solved by Virtual Device Device (VxD). A speed control algorithm is used to control the realtime position in closed-loop control system. Main thread, control thread, interpolation thread and interpretation thread are adopted to finish the realtime working process of NC machine by using synchronism and <WP=6>communication among these threads.At last, the development of motion controller driver software and host application program is finished, and the results of the applied experiments show the CNC software system is satisfactory.

Table of contents

Chapter 1 Introduction 10-17 1.1 Open CNC System Overview 10-11 1.2 PC-based open CNC system 11-13 <br / > 1.2.1 with PC and NC classification 11 1.2.2 operating system classification 11-12 classification 1.2.3 control functions nbsp open CNC system at home and abroad; 12-13 1.3 Research Survey 13 1.3.1 Research Survey abroad 13 domestic research 1.3.2 Overview nbsp open CNC system; 13 1.4 trends 13-15 1.4.1 13-14 1.4.2 speed and PC-based open- high precision 14 1.4.3 intelligent 14 1.4.4 network 14-15 1.4.5 information technology 15 1.5 of this topic of content and focus the 15-17 1.5.1 the objectives and content of the research and development 15-16 1.5.2 study focus and difficult 16-17 Chapter II open CNC system overall design 17-23 2.1 system The hardware and software environment 17-18 <br / > 2.1.1 hardware platform 17 2.1.2 operating system platforms 17-18 2.1.3 software development tools nbsp the; 18 2.2 overall design thinking 18 2.3 design and development principles 18-19 2.4 host program overall design 19-23 2.4.1 MFC application framework 19-20 2.4.2 host program interface design 20-21 the 2.4.3 host program features design 21-23 chapters based on motion control chip driver design 23-43 3.1 MCX314 motion control chip introduced 23-24 3.2 the MCX314 movement control chip to read and write registers and instruction set 24-25 3.2.1 read and write registers 24 3.2.2 Instruction Set 24-25 3.3 MCX314 motion control chip provided the 25-30 3.3.1 pulse output command 25-26 3.3.2 speed curve 26-27 3.3.3 Location Management 27 3.3.4 interpolation 27-29 3.3.5 interrupt 29 3.3.6 Other features 29-30 < br /> DLL Driver 3.4 Windows environment developed 30-37 3.4.1 DLL Overview 30 3.4.2 The system uses the DLL type 30-31 3.4.3 data structure and drive library design 31-37 3.5 Windows environment, real-time interrupt principle and achieve 37-43 nbsp the interrupts principle 3.5.1 Windows environment; 37-39 3.5.2 high-precision timer choice 39-40 3.5.3 development environment and tools nbsp real-time interrupt; 40-41 3.5.4 to achieve the 41-43 Chapter NC code compiler and tool compensation 43-55 4.1 CNC code compiled 43-49 4.1.1 compile method choice 43-45 the 4.1.2 compiled NC code standards 45-46 the 4.1.3 before the two scans preprocessing 46-49 4.2 tool radius compensation 49-55 4.2.1 Tool radius compensation calculation 50 - 52 4.2.2 scans pretreatment 52-53 4.2.3 cutter, radius compensation authentication 53-55 Chapter machine run real-time control and Cutting Simulation 55-73 5.1 CNC servo control 55-56 5.2 interpolation algorithm 56-64 5.2 .1 This system uses interpolation algorithm 57 5.2.2 quadratic interpolation coarse interpolation 57-62 5.2.3 quadratic interpolation method the fine interpolation 62-64 530 multi-threaded real-time control the 64-73 5.3.1 control / display interface composition 64-66 5.3.2 Tool Path Simulation 66-67 5.3.3 Real-time control process the 67-73 open Chapter CNC system debugging 73-77 the of 6.1 motion controller driver debugging 73-74 6.1.1 debugging the main chip MCX314 problems encountered and solutions 73 6.1.2 test program design 73-74 6.2 host application debugging 74-77 6.2.1 continuous interpolation 74-75 6.2. 2 manual deceleration point calculation nbsp 75 6.2.3 The host program developers need to consider or resolve problems; 75-77 Chapter VII Conclusion 77-78 the References 78-81 Acknowledgements 81-82 Appendix I GD104 motion controller driver library 82-85 Appendix the two under Windows98 capture real-time interrupt 85-88 Appendix III topics related software results introduce 88

Related dissertations

  1. The Research of Windows OS in Die Casting Machine Real-time Control
    LiuBaoLiang ·Liaoning Technical University ·2003 ·Master's thesis
  2. Study on an Open Architeucture Numerical Control System Based on the Platform of Windows
  3. Software Design of a Certain Experience Platform Multi-parameter Monitoring System
    BaiZuoZuo ·University of North ·2014 ·Master's thesis
  4. Multi-threshold Image Segmentation Techniques Based on Intelligent Optimization Algorithm and Its Parallel Speedup
  5. Design and Implementation of Guangxi Investment Group Coordination Office Automation System Based on the SOA
    LiangKaiRong ·Guangxi University ·2012 ·Master's thesis
  6. Research on mining algorithm of hierarchical clustering and frequent patterns in time series stream
  7. The Design and Optimization of Select Operation in Column-storage Database Based on Multi-core Processor
  8. Design and Implementation of the Online Learning System for the C Language Based on the J2EE
    QuXiao ·South China University of Technology ·2013 ·Master's thesis
  9. Design and Implement of Network Traffic Statistical Analysis System Based on Winpcap
  10. Design of supervisory control configuration software based on XML document
  11. Research on Shared L2Cache Management Mechanism Based on CMP
    ZhangJie ·Harbin Engineering University ·2013 ·Master's thesis
  12. Design and Implementation of H.265-based Software Decoding Platform
  13. Design and Realization of the Automatic Urine Sediment Analyzer Software System
    XuZhiJun ·Wuhan University of Technology ·2013 ·Master's thesis
  14. The Design and Implementation of Three-dimensional Test System Software of Asphalt Pavement's Texture Depth Based on the VC++
    DuXiaoBing ·Chang'an University ·2013 ·Master's thesis
  15. The Design of Motion Controller for Cutting Machine Based on MCX314
    MaZe ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  16. Design of Digital Multimedia Monitor Node
    WangChao ·Northeastern University ·2010 ·Master's thesis
  17. The Resarch and Design of Movement Control Board Based on PCI Bus and MCX314
    ChenKe ·Guangdong University of Technology ·2012 ·Master's thesis
  18. Control System Software Design of the Palletizing Robot Based on Windows/RTX
    ZhangMingYong ·Shanghai Jiaotong University ·2013 ·Master's thesis
  19. The Broken-point Continuingly Transferring and Multi-thread Download Component Based on HTTP/FTP Protocol
    ZhengYingYing ·University of Jinan ·2012 ·Master's thesis
  20. Design and Implement of Real-Time Network Traffic Measurement System