Stepping Motors Control System Design Based on CAN Bus
- Author
- LiPi
- Advisor
- TangLiJun
- School
- Changsha University of Science and Technology
- Major
- Condensed Matter Physics
- Classification
- TM301.2 Motor control
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 161
- Citations
- 2
Abstract
Big size cutting machine and other industrial production need to implementcooperative control motor group。The traditional motor control system mostly usescontroller and motor drive one-to-one impulsive control mode, the control circuit ofthis mode is complex, poor anti-interfere ability, easy to lose pulse or importinterference pulse, low reliability.This article in view of the large size cutting mechanical and electrical machinessynchronous control need,designed a motor group synchronous control system basedon CAN bus. The motors control system use STM32 as motion controller which is lowpower consumption, high processing speed, applies four step motors as control object,the motor control modules realize communication through a CAN bus. The hardwarecircuit of the motors control system consists of main controller circuit, bus networkCAN interface circuit, motor drive circuit and RS485 circuit communicated with PC.A set of CAN bus application layer communication agreements which aresuitable for the system have been designed. we choose to use CAN2.0 B protocolstandards frame format suitable for the system , have established the 11 identifierdistribution rule and standardized management of communication network ,haveresearched configuration of the packet receiver filter and error correctionerror-detection method during CAN communication.This paper has completed software design and debug of the system ,the mainfunction program, motor driver program, and receive and dispatch message programand so on.It uses time segmentation algorithm, realizes straight line and circularinterpolation through the mirror image programming method .For the convenience of experiment, choosing two motor for test objects, testingthe system by multi-motor control. The main controller sends instructions to thecontroller of the two nodes motor, all of the two motors can receive control signal, butif don’t use CAN bus application layer communication agreements compiled in thispaper, the synchronization error of two nodes motor is in about 370 us , which is arelatively large. When using CAN bus application layer communication agreements,the delta-T of executive command between the two nodes motor is in about 20 us. Itshows that the design of CAN bus application layer communication agreements in thispaper can ensure the synchronicity of the system and the stability of thecommunication.
Table of contents
Summary 5-6
ABSTRACT 6-9
first chapter 9-13
1.1 research background and significance 9
1.2 Research Status multi-motor synchronous control system 9-12
1.2.1 multi-motor synchronization control 9-11
1.2.3 fieldbus synchronization in multi-motor motor control applications 11-12
1.3 article sections arranged 12-13
chapter overall program motor control system design group 13-16 <br / > 2.1 overall control system program requirements overall 13
2.2 control system Design 13-15
2.2.1 motor control mode control system design group 13 <br / > 2.2.2 motor control system communication design group 13-14
2.2.3 motor group control system framework 14-15
2.3 Summary hardware 15-16
Chapter III motor group control system design and implementation 16-22
3.1 motion control Module 16-18
3.1.1 motion Control chip select 16-18
3.1.2 communication circuit design 18
3.2 communication module 18-20
3.2.1 CAN transceiver choose 18-19
3.2.2 CAN Interface electrical isolation protection circuit 19-20
3.3 motor drive module 20-21
3.3.1 step motor works 20
3.3.2 motor driver chip select 20-21
3.3.3 motor drive circuit 21
3.4 Summary application layer protocol 21-22
Chapter IV group motor control system design and implementation 22-35
4.1 CAN 2.0B protocol introduced 22-23 <br / > 4.2 CAN bus stratified layers of functionality and electrical characteristics 23-24
4.3 CAN bus error handling mechanism 24
4.4 CAN protocol 24-26
4.4.1 error type 24-25
4.4.2 node error handling 25
4.4.3 failure to define methods 25-26 <br / > 4.5 motor group control system CAN bus application layer protocol design 26-31
4.5.1 CAN message format 27-28
4.5.2 data 28-30
4.5.3 network transmission status monitoring 30-31
4.5.4, the definition of motor control protocol parameters 31
4.6 multi-motor control CAN bus system packet transmission 31-34
4.6.1 bus initialization nbsp 31-32
4.6.2 send packets ; 32-33 <br / > 4.6.3 packet reception 33-34
4.7 Summary 34-35
Chapter V motor group control system software design and implementation 35 -48
5.1 software development environment 36
5.2 multi-motor control algorithm and implementation 36-41
5.2.1 time segmentation linear interpolation methods to achieve 38-39
5.2.2 time segmentation circular interpolation to achieve between 39-41
5.3 motor control system node cluster communication to achieve 41-45 <br / > 5.3.1 packets 42-43
5.3.2 packet reception 43-45
5.4 motor acceleration and deceleration control method 45-47 <br / > 5.5 Chapter Summary 47-48
Chapter VI experimental testing and results discussed 48-50
conclusion 50-51
references 51-54
Thanks 54-55
Appendix a ( published during the study dissertation ) 55-56
Appendix B ( program ) 56-60
Related dissertations
- The Design and Implementation of Electric Energy Meter Calibration Device Based on CAN-bus
- Marine Instrumentation Control System Based on CAN Bus
- Vehicle Air Conditioner Controller in the Loop Simulation Research
- Speech-recognition-based Automotive Air Conditioning Control System
- Study on Automotive Intelligent Digital Instrument Base on CAN Bus
- Design of automatic biochemical analyzer control system
- The Controller Development for Electric Forklift Truck
- Design of Mine Underground Personnel Positioning System Based on CAN Bus
- Research on control system of intelligent FORC
- The Design of Control System for Large-flow Fire Cannon Based on Bus Network
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
- Design and Research on Fire Detection and Alarm System Based on Multi-sensor Information Fusion Technology
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design of Industrial Equipment State Wireless Monitoring System Based on STM32
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- The Design of Hybrid Electric Bus Data Acquisition and Test System
- The Design of Data Monitoring and Control System Based on USB and Lab VIEW
- Industrial Field Data Acquisition System Design Based on CAN Bus
- Design of the Hazard Source Monitoring System Based on CAN Bus