Developing and Research of Error Compensation Controller of CNC
- Author
- YangWanRan
- Advisor
- FanJinWei
- School
- Beijing University of Technology
- Major
- Mechanical and Electronic Engineering
- Classification
- TG659 Program control machine tools, CNC machine tools and machining
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 271
- Citations
- 1
Abstract
From the mid of 1990s, with further research on software error compensation and implementation of the method by many researchers, many references and technology aiming at improving the machining precision came out continually. The result of research showed a good future for software error compensation method. Software error compensation depends on various algorithms designed by different scientists. Before software error compensation method, scientists used traditional mechanical methods to compensate the error.At present, many CNC machine tools are compensated by an additional PC and some auxiliary sensors. Although this method can fulfill compensation, it demands stricter working condition and more assistant equipments and is complicated to debug and costs more. These defects lead to the failure of software error compensation method to be manufactured and marketable. According to issues mentioned above, this paper develops an error compensation device controlled by MCU (Micro Control Unit) which combines the advantages of software error compensation method and IC (Integrated Circuit). The device can compensate the error with programs solidified in MCU and communicate with CNC Machine tools through RS-232C interface. With a small size, the device will be valuable for its function, flexibility and marketability.Based on multi-body system theory, this paper firstly establishes the model of ZK7640 which includes geometric error parameters, and the equations for precision machining are given. Besides, the nine-line method with which CNC machine tools error parameters is distinguished and the method of error parameters preprocessing are introduced.Secondly, the general design concept of error compensation device including hardware and software is depicted briefly. Hardware design contains divide of different modules, function and type selection of MCU and other important chips, schematic design of major and peripheral circuit and PCB design. PCB design deals more with the package of chips, routing and anti-jamming design.Then the paper places emphasis on software design. Software is crucial for the device and determines its performance. Dividing the modules in accord with hardware design, flow chart design and definition of system parameters are three major aspects of work. The program is designed with C language with assistance of assemble language, and some parts of source code are given.At the end of paper, debugging methods are presented. Hardware and software of the device must be debugged separately, and after both have no bugs, the device can be debugged online. The result finally shows the validity and accuracy of geometric error compensation controller developed in this paper.
Table of contents
Abstract 4-5
Abstract 5-8
Chapter 1 Introduction 8-16
1.1 topics and Significance 8-9
1.2 error compensation technology at home and abroad the status quo 9-13
1.2.1 Software Error Compensation Technology Research 10-11
1.2.2 Error Parameter Identification Research 11-12
1.2.3 geometric error modeling technique of the status quo 12-13
1.3 single-chip technology in the field of NC 13-14
1.4 This work 14-16
Chapter 2, the use of multi-body system theory, machine tool geometric error model 16-32
2.1 multi-body system overview of the theory 16-20
2.1.1 multi-body system topology description 16
2.1.2 multi-body system of the body array of low-order 16-17
2.1.3 multi-body system in the adjacent and their transformation matrix 17
2.1.4 Ideally, the location of expression in the multi-body system 17-18
2.1.5 error case the location of the multi-body system to express 18-20
2.2 CNC machine tool error compensation algorithm based on the many-body theory 20-24
2.2.1 CNC machine tools schema 20-21
2.2.2 CNC machine tool precision machining equation for 21-24
2.3 CNC machine tools error parameter identification 24-27
2.3.1 CMM geometric errors of CNC machine tools description 24-25
2.3.2 D NC machine tool geometric error parameter identification 25-27
2.4 ZK7640 CNC vertical milling machine motion modeling 27-30
2.4.1 ZK7640 vertical CNC milling machine topology description 27-28
2.4.2 ZK7640 CNC milling machine precision machining equations establish 28-30
2.5 Summary 30-32
Chapter 3
error compensation hardware design and debugging 32-54
3.1 error compensation overall design 32-33
3.2 chip selection 33-40
3.2.1 MCU AT89S52 33-35
3.2.2 level conversion chip MAX3232 35-37
3.2.3 Power conversion chip B2405S-1W 37
3.2.4 latch and decoder 37-39
3.2.5 Data memory chips WS6264 39-40
3.3 hardware circuit design 40-48
3.3.1 clock oscillation circuit design 40-41
3.3.2 reset circuit design 41-42
3.3.3 System status indication circuit design 42
3.3.4 external expansion data memory circuit design 42-45
3.3.5 communication interface circuit design 45-47
3.3.6 power circuit design 47-48
3.4 PCB design and production 48-53
3.4.1 pre-production preparations 49-50
3.4.2 hardware anti-jamming measures 50-51
3.4.3 circuit board production 51-53
static debugging of 3.5 single-chip hardware circuit 53
3.6 Summary 53-54
Chapter 4
error compensation software design and debugging 54-68
4.1 system definition is 54-55
4.2 software architecture design 55-58
4.3 Programming 58-66
4.3.1 initialization procedure 58-59
4.3.2 main 59-60
4.3.3 Communication Program 60-63
4.3.4 error compensation and handler 63-66
4.4 software, anti-jamming measures 66-67
4.5 microcontroller application software simulation debugging 67
4.6 Summary 67-68
Chapter 5, the experimental verification of the error compensator 68-76
5.1 ZK7640 milling error parameter measurement 68-73
5.1.1 experimental program 68
5.1.2 experimental content 68-69
5.1.3 experimental procedures 69-70
5.1.4 ZK7640 movement axis displacement error and straightness error measurement curve 70-72
5.1.5 error detection results 72-73
5.2 Error Compensation and IPC online debugging 73-74
5.3 Experimental verification 74-75
5.4 Summary 75-76
conclusions 76-78
References 78-81
master's degree during the academic 81-82
Acknowledgements 82
Related dissertations
- The Research on Geometric Error Software Compensation Method of the SK-21 CNC Grinding Tool
- The Foam Insulation Greenhouse Monitoring System Design
- Research of a System Integrated Rotational Speed and Temperature Measurement Based on MCU
- The Wireless Temperature and Humidity Monitoring System Design
- The Design for Wireless Multiple Measuring System of Small Area Crop Growth Environment
- Development of Intelligent Control System for Precise Wheat Seeder with Suction and Stepless Speed Regulation
- The Design of PCR Temperature Control System in STC
- Design of Temperature and Humidity Control System Based on Micro-controller
- The Design and Implementation of Automatic Nail System for Greenhouses Heat Preservation Quilt
- Research and Design of Transfer Robot Using Competition
- The Design of Kerosene Vapor Concentration Detector
- Study of CPS Communication Based on MCU and Intelligent Optimization Algorithms
- Research on System of Digital Image Proccessing and Recognition of Instruments
- Application Research of Wireless Anti-theft System Based on GSM/GPRS
- The design and Realization of DDS technology of high precision signal source based on
- On the Design of Digital Synthesizer Based on Phase-Locked Loop
- Design and Implementation of a MCS-51-instruction-set-compatible High Speed MCU
- Design and Realize the JTAG Debugging Module on MCU
- Development of Control System for Medical Multi-leaf Collimator
- Measurment System Design and Experimental Study on the Thermo-physical Parameters of Blood Vessel