Design and Research of the Bottom Hardware and the Driver of CNC System Based on USB Bus

Author
TangZhiQiang
Advisor
HuangDaoPing
School
South China University of Technology
Major
Control Theory and Control Engineering
Classification
TG659 Program control machine tools, CNC machine tools and machining
Degree
Master's thesis
Year
2011
Downloads
66
Citations
0

Request the full text

Abstract

CNC technology is a set of micro-electronics technology, computer technology, information processing technology, automatic control technology, optical and electrical technology, network communication technology and other high-tech integrated in one of the advanced manufacturing technology. With today's rapid development of PC, PC-based CNC system platform become the main direction of development of CNC system. USB as a new kind of computer peripherals serial communication interface standards, with common computer interface, compared with a hot-swappable, plug and play, reliable data transmission, expansion is convenient, low cost. From its inception, it has been widely applied to become one of the current computer interfaces necessary, but also is widely used in embedded system design. Topics according to the development trend of CNC system, combining the advantages of PC technology, strive to design an advanced USB and PC-based CNC system. This paper uses a PC motion control card actuator hardware system, through the PC upper software provides digital, converted into pulses transmitted to the drive unit drive motor, or by a motion control card machine axis pulses into digital, feedback to the PC. PC operating platform using Linux Rtai patch reaches a certain real-time, and through the loading and unloading device driver modules for system modularity; motion control interface board controller chips used in digital communications fields are widely used in FPGA, to achieve online programmable, commissioning; PC machine and motion control unit communication using USB bus way, simple wiring and stable. Strive to make the entire system should be designed to meet industrial requirements of stability and reliability, to meet the requirements of industrial environments. Meanwhile, the text of the basic principles of USB, motion control card hardware design and production, USB firmware programming, Linux under the USB device driver development has a corresponding description, and produced a test board, after completion of the design of the NC system made a field operation. Finally summarized the work of the subject, made a number of shortcomings and areas for improvement. The topics in the current domestic USB technology used in industrial control systems is not yet mature in the case, make certain exploration and research, there are certain challenges; also better for the future of USB technology used in CNC systems, industrial control do some groundwork, there is a certain practicality.

Table of contents

Abstract 5-6 Abstract 6-11 The first chapter 11-15 1.1 this topic research background 11-12 1.2 CNC system research status at home and abroad 12-13 1.3 Purpose and research topics 13 1.4 thesis is 13-15 Chapter CNC system design and USB principles 15-24 2.1 CNC systems solutions 15-16 2.2 PC control platform introduces 16-19 2.2.1 Linux-based operating system 16-17 2.2.2 Hardware Abstraction Layer HAL 17-19 2.3 USB structure and principle 19-23 2.3.1 USB system architecture 19-21 2.3.2 USB communication hierarchical 21-23 2.4 Summary 23-24 Chapter III system hardware design 24-44 3.1 overall hardware design and planning 24 3.2 power supply circuit and system clock design 24-26 3.3 FPGA circuit design 26-33 3.3.1 FPGA choice 26-27 3.3.2 FPGA interface configuration 27-29 3.3.3 configuration chip circuit 29-30 3.3.4 PLL power supply circuit 30-31 3.3.5 FPGA internal control module structure 31-33 3.4 USB interface circuit design 33-39 3.4.1 USB controller chip select 33-34 3.4.2 CY7C68013A structure 34-36 3.4.3 USB chip interface configuration 36-38 3.4.4 EEPROM circuit 38-39 3.5 Input and output circuit design 39-41 3.5.1 digital signal circuits 39-40 3.5.2 analog signal circuit 40-41 3.6 PCB design 41-43 3.7 Chapter Summary 43-44 Chapter USB firmware development 44-56 4.1 USB device enumeration 44-45 4.1.1 General USB bus enumeration process 44 4.1.2 EZ-USB FX2 device enumeration and re-equipment list 44-45 4.2 EZ-USB FX2 firmware design 45-53 4.2.1 EZ-USB FX2 firmware architecture design 45-47 4.2.2 USB device descriptors and device requests 47-51 4.2.3 USB firmware code 51-53 4.3 USB firmware compile, download and run 53-55 4.4 Summary 55-56 Chapter Linux USB driver research 56-71 5.1 Linux under the USB subsystem architecture 56-58 5.1.1 USB file system 56-57 5.1.2 USB driver layering 57-58 5.2 USB Device Driver Development 58-66 5.2.1 USB device driver skeleton 58-60 5.2.2 Device registration and cancellation of 60-61 5.2.3 driver probe (probe) processes and disconnected (disconnect) 61-63 5.2.4 USB data transfer 63-66 5.3 USB device drivers compiled and loaded 66-69 5.3.1 driver compile, link 66-67 5.3.2 driver module loading, unloading 67-69 5.4 USB device driver testing 69-70 5.5 Chapter Summary 70-71 Chapter CNC System Connection and commissioning 71-76 6.1 CNC system integrated connection 71-73 6.1.1 Input and output switch 71 6.1.2 CNC and spindle device is connected 71-72 6.1.3 CNC and servo devices connected 72-73 6.2 motor simulation run laboratory tests 73-74 6.3 CNC system on-site commissioning and operation 74-75 6.4 Chapter Summary 75-76 Conclusion 76-78 References 78-81 master's degree research results achieved during the 81-82 Thanks 82-83 thesis defense committee for the assessment of opinions 83

Related dissertations

  1. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  2. Usb Without Invasive Data Collection Technology Research
  3. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  4. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  5. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  6. Multi functional comprehensive test instrument based on Virtual Instrument Technology
  7. Embedded Linux-based USB Encryption Driver Design
  8. Design and Implementation of Unidirectional Data Transmission Device Based on Removable Storage Media
  9. The Designand Realization of Embedded USB Mass Storage System
    WangMeng ·Hebei University of Technology ·2013 ·Master's thesis
  10. Lights Control and Test System Based on Qt
  11. Design and Implementation of the Embedded Video Surveillance Server Based on ARM and Linux
    JiaoFangChao ·Shandong Normal University ·2012 ·Master's thesis
  12. ARM embedded video monitoring system based on compressed sensing
  13. Design and Implementation of Command&Control Computer with Master-Slave
  14. The Designand Implement of Fingerprint Access Controlsystem Based on ARM and Linux
    ShiWeiMing ·Zhejiang University of Technology ·2012 ·Master's thesis
  15. Development of Human-Computer Interaction for Control System of Grating Homochromatic Instrument
    XingYan ·Jilin University ·2012 ·Master's thesis
  16. Design and Implementation of Driver Module Based on Android System
    WeiDeQiong ·Harbin Institute of Technology ·2013 ·Master's thesis
  17. Linux operating system on the ARM hardware platform transplantation
  18. Software Design of Digital TV Receiver Based on USB2.0Technology
    WangJingHui ·Zhejiang University of Technology ·2012 ·Master's thesis
  19. Study and Design of Data Communication and the Host of Telemetry and Command System Basing on GSM Network
    LiMingLi ·Hebei University of Technology ·2007 ·Master's thesis
  20. The Design of USB Host/Slave Interface in Embedded Systems Based on ARM