The Design and Research of Independent Motion Controller Based on CAN Bus
- Author
- XiongQuanHong
- Advisor
- ZhouWei
- School
- Wuhan University of Technology
- Major
- Communication and Information System
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 373
- Citations
- 6
Abstract
In recent years, with the rapid development of the microelectronic technology, the communication, and the computer technology ,the CAN field bus technology take one kind supports the distributional control and the real-time control serial communication LAN network (Local area network)effectively, because it has many merits, such as high speed correspondence, openness good, strong error correction ability as well as the simple control, high transmission reliability, strong expansion ability, and the low system cost ,which has been widely applied in the control system between every examination and the implementing agency data communication. In the meanwhile, with DSP, ARM as typical symbol of high speed and the high performance special-purpose microprocessor appears and the PC is widely spread out, the motion controller is in the progress toward the development of "the PC+ motion controller" the open style pattern. This project combine the CAN Bus technology with the open style motion control technology, based on the inlays CAN controller ARM7 control chip LPC2119, and design a kind of the exchange serve electrical machinery of independence motion controller, namely the motion controller places the outside of the PC engine case and PC machine unites the CAN bus through the CAN connection adapter, and then the motion controller and PC machine carries on the exchange of information through the CAN Bus.This paper main research content is as follows:First, in analyzed the motion controller domestic and foreign development present situation with to have to realize in the function foundation, proposed this topic motion controller software and hardware design proposal.Next, revolved the LPC2119 core processing unit to design the motion controller D/A output circuit, the encoder feedback processing circuit, the digital quantity input output circuit, the CAN correspondence connection circuit and the switching power supply circuit.Then, in the software design aspect, separately introduced the motion controller position control programming from the function modulation angle, the interpolation algorithm programming and the CAN signal procedure design etc. Position control procedure uses the increase PID algorithm to adjust the output feed rate, has merit which the principle simple, easy to realize. The interpolation algorithm design mainly includes the data sampling straight line circular arc interpolation and one kind of advanced version three B transect curve interpolation algorithm design.CAN correspondences procedure design introduced in detail CAN bottom layer protocol CAN initialization routine design, the transmission receive programming and the interrupt processing process programming, at the same time introduced the Guangzhou ZLG MCU limited companyformulates the application layer protocol ------ iCAN protocol, and applies it in this design.Finally, applies the motion controller in the numerical control flame cutter system, and with the intelligent and control module simulation servo actuator, on position PC machine test contact surface which compiles with LABVIEW comes the dynamic demonstration path, thus has simulated the flame cutter practical work process.
Table of contents
Abstract 4-5
Abstract 5-10
Chapter 1 Introduction 10-13
the 1.1 research background and significance 10-11
1.2 motion controller development status at home and abroad 11-12
1.3 research 12-13
Chapter 2 overall system design 13-18
2.1 motion controller to achieve functional partitioning 13-14
2.2 closed-loop motion control of key technologies 14-15
the 2.2.1 data sampling interpolation principle 14
2.2.2 closed loop position control technology 14-15
2.3 to develop the overall design of the system 15-18
2.3.1 system hardware design 15-16
2.3.2 system software design 16-18
Chapter 3 system hardware design 18-36
3.1 ARM chips Overview 18-19
3.2 LPC2119 chip Overview 19-20
3.3 LPC2119 the minimum system design 20-23
3.3.1 clock and reset circuit 21-22
3.3.2 JTAG interface circuit 22-23
3.4 D / A conversion and voltage amplification circuit 23-24
3.4.1 D / A conversion circuit 23-24
3.4.2 voltage amplification circuit 24
The
3.5 encoder feedback processing circuit 24-26
3.6 digital input and output interfaces designed 26-28
3.6.1 digital input circuit 26-27
the 3.6.2 digital output circuit 27-28
3.7 CAN bus 28-33
3.7.1 CAN bus introduced 28
3.7.2 CAN bus technology features 28-29
3.7.3 connection and pass 29-30
3.7.4 packet 30-32
3.7.5 error detection 32
3.7.6 CAN communications interface circuits 32-33
3.8 motion controller power supply design 33-36
3.8.1 NCP1200 structural features 33-34
3.8.2 circuit schematic 34-36
Chapter 4 system software design 36-66
4.1 ADS integrated development environment introduced 36-37
4.2 The main program design thinking 37-38
4.3 Position control procedures designed 38-40
4.3.1 Following error calculation 39
4.3.2 digital PID algorithm 39-40
4.4 deceleration control program design 40-42
4.5 interpolation procedures designed 42-49
4.5.1 Linear interpolation algorithm 42-44
4.5.2 circular interpolation algorithm 44-46
4.5.3 cubic B-spline curve interpolation algorithm 46-49
4.6 D / A conversion routine design 49-51
4.7 speed position detection program design 51-54
4.8 CAN communication program designed 54-66
4.8.1 the CAN initialization process and the initialization function 54-56
4.8.2 receiver function and receive buffer 56-59
4.8.3 sending program 59-61
4.8.4 interrupt processing 61
4.8.5 high-level agreement to develop and illustrate 61-66
Chapter 5 motion controller in flame cutting machine CNC system application 66-72
5.1 CNC flame cutting machines 66-68
5.1.1 flame cutting machine's hardware structure composed 66
5.1.2 flame cutting machine CNC system software module division 66-68
5.2 flame cutting machine simulation system debugging 68-72
5.2.1 the flame cutting machine simulation system introduced 68-69
5.2.2 host PC, test interface design 69-70
5.2.3 flame cutting machine simulation system test results 70-72
Chapter 6 Summary and Outlook 72-74
6.1 Full Summary 72-73
6.2 Research Prospects 73-74
the
References 74-77
Acknowledgements 77-78
studying for a master's degree during the thesis 78-79
Appendix 79
Related dissertations
- Industrial Field Data Acquisition System Design Based on CAN Bus
- Research on Indoor Localization System for Intelligent Wheelchair
- Design of Cutting Robot System Platform Based on ARM
- Design and Implementation of Industrial Gateway Device Based on ARM
- The Reserach of Obstacle Avoidance System in Intelligent Wheelchair Based on ARM
- Design and Implementation of Intelligence Residential Intrusion System Based on CAN Bus
- Design of Independent-axis Motion Controller for Industrial Computed Tomography
- A Research and Design on Key Technologies of Automatic Chinese Traditional Medicine Distribution System
- The Design of Multi-baghouse Dust-collector Control System
- Research and Development of Stage Axis Motion Controller Based on ARM
- Development of Control System Based on Field Bus for Stage Machinery
- Research and Implementation of CAN Bus and Ethernet Communication Based on ARM7Embedded System
- The Research of Motion Controller System Based on DSP
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Remote Monitor System for Oil Wells Working Condition Based on GPRS
- Engine Room Monitoring System Based on the Embedded Web Server
- The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
- Research and Design of Intelligent Video Surveillance System Based on ARM
- The Research and Design of Embedded Graphic Remote Monitor Terminal