Software Design of a Motion Controller Based on DSP
- Author
- YanLeLe
- Advisor
- YouYouPeng
- School
- Nanjing University of Aeronautics and Astronautics
- Major
- Mechanical and Electronic Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 678
- Citations
- 13
Abstract
Motion control is a key technology in CNC systems. In recent years, open-architecture motion controllers have been developed to a new phase with the progress of open-architecture CNC systems. As independent automation products, motion controllers have been wildly used in many industries, and also form a remarkable market. Nowadays, motion controllers based on DSP are becoming the main trend of open-architecture motion controllers because DSP has the advantage of powerful real-time processing capability and abundant peripherals.By analyzing the functions of several typical motion controllers and the hardware of existing motion controller based on DSP, the software of the motion controller is designed. The comparative integral interpolator assisted with linear accelerating and decelerating algorithm is used for the control of track and speed. The motion controller has two kinds of application: as a stand-alone controller or a plug-in controller.As a stand-alone controller, NC codes can be downloaded by USB and DNC can run by means of RS-232. For that, the programs for firmware, driver and application of USB device, and for DNC are designed in the thesis. For the plug-in application, the controller can communicate with PC by PCI bus, which is implemented by PCI9052 and IDT7024. The driver program of the motion controller is developed by WinDriver.Finally, software debug methods and some important points for improving the reliability of software program are discussed in the thesis. In addition, the designed motion controller has been used for an engraving machine, and can work well with the anticipated functions and performance.
Table of contents
Abstract 4-5
ABSTRACT 5-11
The first chapter 11-18
1.1 Open CNC and motion controllers 11-12
1.2 motion controller development and application 12-15
1.2.1 foreign motion controller development and application 12-14
1.2.2 Motion Controller domestic development and application 14-15
1.3 applications in the field of motion control DSP advantage 15-16
1.4 this topic research purpose and content 16-18
1.4.1 research purposes 16
1.4.2 research content 16-18
Chapter motion controller overall design 18-24
2.1 motion controller hardware structure 18-21
2.1.1 DSP CPLD control module 19
2.1.2 Communication Interface Module 19-20
2.1.3 I / O input and output interface module 20
2.1.4 Peripheral memory module 20-21
2.2 Motion Controller software architecture 21-23
2.2.1 system software functional design 21-23
2.2.2 system software level design 23
2.3 Chapter Summary 23-24
Chapter single plate motion controller software design 24-46
3.1 System Requirements Analysis 24
3.2 CNC interpolation algorithm 24-31
3.2.1 Interpolation Principle 24-26
3.2.2 Comparison and Integration linear interpolation 26-28
3.2.3 Comparison and Integration arc interpolation 28-30
3.2.4 Comparison and Integration interpolation step 30-31
3.3 feed speed control 31-34
3.3.1 Speed ??control principle 31-33
3.3.2 Speed ??control to achieve 33-34
3.4 USB bus-based machining program download 34-41
3.4.1 USB communication features 34-35
3.4.2 USB hardware interface 35-37
3.4.3 USB software implementation 37-41
3.4.3.1 USB firmware programming 37-38
3.4.3.2 USB Driver Design 38
3.4.3.3 USB application design 38-41
3.5 DNC machining function 41-44
3.5.1 DNC principle 41-42
3.5.2 DNC way to achieve 42-44
3.5.2.1 Basic functions 42-43
3.5.2.2 HTTP functionality 43-44
3.6 PC layer software 44
3.7 Chapter Summary 44-46
Chapter plug-in motion controller software design 46-63
4.1 System Requirements Analysis 46-47
4.2 PCI interface module 47-52
4.2.1 PC19052 interface chip 47-49
4.2.2 dual-port RAM 49-50
4.2.3 DSP and PC communication to achieve 50-52
4.3 Driver Development 52-58
4.3.1 driver development tools 52-54
4.3.2 WinDriver internal mechanism 54-55
4.3.3 WinDriver driver development process 55-57
4.3.4 application development 57-58
4.4 software 58-61
4.4.1 interface function design 58-61
4.4.1.1 initialization function 58-59
4.4.1.2 motion control function 59-60
4.4.1.3 interpolation function 60
4.4.1.4 state control function 60-61
4.4.2 PC software 61
4.5 Chapter Summary 61-63
CHAPTER software development and debugging 63-71
5.1 software development 63-65
5.1.1 DSP simulation environment 63-64
5.1.2 DSP programming language 64-65
5.2 software debugging 65-70
5.2.1 each module of the software debugging 66-67
5.2.2 System FBI 67-68
5.2.3 site commissioning 68-70
5.2.3.1 software anti-jamming design 68-69
5.2.3.2 software reliability design 69-70
5.2.3.3 safe operation 70
5.3 Chapter Summary 70-71
Chapter Summary and Outlook 71-73
6.1 Full Summary 71-72
6.2 Research Prospects 72-73
References 73-76
Thanks 76-77
master's papers published during 77
Related dissertations
- 5D film motion experience platform motion control card design
- Design on Motion Controller of the Underwater Vehicle
- The Research and Design of Dispensing Robot Motion Control System
- Design and Implementation of Automatic Flight Control Syetem on Model Helicopter
- The Development of the Digital Hologram Laser Interference Printing Position Recorder
- Research on Fly-By-Light Flight Control System Based on USB
- Research and Development of a Motion Controller Based on DSP and FPGA
- Design and Research of automatic monitoring and control system based on virtual instrument
- Wireless broadband data card based on PCI interface sends
- Research and Development of a Motion Control Board Based on DSP
- PCI bus based on the logic analyzer
- Research and Development of Froth Flotation Video Surveillance Hardware Platform Based on DSP
- Intelligent Video Surveillance System Based on DSP
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Design and Implementation of Multi-channel Data Acquisition System
- Research on Measuring System of Mid-Infrared Photoelectric Autocollimator
- Usb Without Invasive Data Collection Technology Research
- Wire Rope On-line Detection System Design Based on DSP