Design and Implementation of Profibus-DP Master (Class2)
- Author
- LiuQinNan
- Advisor
- QianFeng , LiWei
- School
- East China University of Science and Technology
- Major
- Control Engineering
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 42
- Citations
- 0
Abstract
PROF1BUS is an international open field bus standard, widely used in manufacturing automation, process industry automation,and buildings, transportation, electric power and other areas of automation. PROFIBUS-DP is important component of PROF1BUS. PROFIBUS-DP is used for high speed data transfer in device-level.Central controllers communicate with dispersion field equipment over a high-speed serial lines.PROFIBUS-DP master(class two) can achieve acyclic communication, configuration and diagnostics of intelligent field devices. Therefore, Design of PROFIBUS-DP master(class two) helps maximize the advantages of PROFIBUS-DP bus technology and reduce project cost. Have positive significance and it’s engineering significance It has important significance in reality and engineering.By the detail agreement of PROFIBUS-DP profile, this article come up with overall design of PROFIBUS-DP master(class two).In section of hardware, STM32F103ZE chip is the kernel of PROFIBUS-DP protocol stack, ASPC2chip is core for media access control. The paper designs the STM32F103ZE and its peripheral circuits, ASPC2interface circuits, master user interface circuits, as well as PROFIBUS-DP master(class two) and DP bus interface circuit. Software complete and implement the master protocol chip interface software, services of fieldbus data link, management services, DDLM sevises and acyclic data communication services. And then it is transplanted on embedded operating systems μC/OS-Ⅱ, which is multi-tasking and in real time. So that the whole system has better real-time performance.This design of PROFIBUS-DP master(class two)has passed the enterprise testing, which demonstrate the reliability and integrity of the design of hardware and software. The main function of the product in accordance with the design requirements and get preliminary applications.
Table of contents
Summary 5-6
Abstract 6-10
first chapter background and significance of research 10-15
1.1 of 10-11
1.2 several popular fieldbus 11-12
1.3 development status and trends at home and abroad 12-13
1.4 This paper studies 13-15
chapter PROFIBUS-DP fieldbus master II structure and overall design 15-21
2.1 PROFIBUS fieldbus structure 15-17
2.1.1 PROFIBUS-DP device types 16
2.1.2 PROFIBUS-DP communication model 16-17
2.1.3 MAC mode 17
2.2 Profibus-DP protocol version 17-18
2.3 PROFIBUS-DP II master development plan selection 18-19
2.4 PROFIBUS-DP II The overall design of the master 19-20
2.5 Summary 20-21
Chapter II PROFIBUS-DP master hardware design 21-31 <br / > 3.1 host CPU and ASPC2 smart chip 21-23
3.1.1 master CPU 21-23
3.1.2 ASPC2 smart chip 23
3.2 CPU and peripheral circuit design 23-27
3.2.1 power circuit design 23-24
3.2.2 reset circuit design 24 <br / > 3.2.3 clock circuit design 24-25
3.2.4 BOOT start circuit design 25
3.2.5 FLASH interface circuit design 25-26
3.2.6 USB interface circuit design 26-27
3.2.7 JTAG debug interface circuit design 27
3.3 host CPU interface circuit with ASPC2 27-30
3.4 DP bus interface circuit 30
3.5 Summary 30-31
Chapter II PROFIBUS-DP master station software design 31-57
4.1 development platform 32-33
4.2 ASPC2 registers and shared memory 33-37
4.2.1 ASPC2 register 33 - 34
4.2.2 shared SRAM area 34-37
achieve 4.3 data link layer services 37-39
achieve nbsp 4.4 fieldbus management services ; 39-40
4.4.1 FMA1 / 2 Reset 39-40
4.4.2 FMA1 / 2 Set Value 40
4.4.3 FMA1 / 2 Read Value 40
4.4.4 FMA1 / 2 Event 40
4.4.5 FMA1 / 2 SAP Activate 40
4.5 direct data link image layer service implementation 40-49
4.5.1 master - slave function from the implementation of 42-47
4.5.2 master - master function to achieve 47-49
4.6 DPV1 protocol to achieve non- cyclic data communication functions 49-54
4.6.1 DPV1 addressing mechanism 49
4.6. 2 DP II dynamic connection management master 49-50
realize 4.6.3 DPV1 functions 50-53
4.6.4 DP master II in the state machine model communications 53-54
4.7 master user PC with PROFIBUS-DP II master 54-56
USB 4.7.1 STM32F103ZE configuration 54-55
4.7.2 HyperTerminal input data for analysis and processing 55-56
4.8 Summary 56-57
Chapter II main PROFIBUS_DP station software porting on μC/OS- Ⅱ of 57-62
5.1 transplant need to modify the code code 57-59
5.1.1 os_cpu.h file modification code 57-58
5.1.2 os_cpu.c file modification code 58-59
5.1.3 os_cpu_a.asm file modification 59
5.2 μC/OS- Ⅱ management of the entire system 59-61
5.2.1 task Manager 59-60
5.2.2 memory Management 60 <br / > 5.2.3 message Manager 60
5.2.4 semaphore management 60
5.2.5 mutex management 60-61
5.3 Summary 61-62
Chapter VI group network communication test and the results 62-68
6.1 test platform 62
6.2 single master - from a single test station between 62-65
6.2.1 DDLM functional test 62-63
6.2.2 DPV1 function test 63-65 <br / > over 6.3 master - from multiple test stations between 65-66
6.4 summary 66-68
Chapter VII summary and Outlook 68 - 70
7.1 summarizes 68
7.2 Prospects 68-70
References 70-75
Thanks 75-76
Appendix 76
Related dissertations
- PROFIBUS-DP master development and applied research
- The Intelligence Monitoring System of Heat-Exchanging Station Design and Implementation
- The Design and Realization of Automatic Batching Monitoring System for Foundry Workshop
- Research and Design of High-power Temperature Control System Based on PROFIBUS
- The Development of PROFIBUS-DP Embedded Slave Station Module Based on DPC31
- Research and Application of Key Technology of DCS Control System of Wet Spinning Production Line
- Design of Autocontrol System of Ingredient Process
- Design and Study on the leaching mill control system
- The Design of Mobile Robot Network Embedded Monitoring System Server
- Research of Integrated Slave Node Based on PROFIBUS-DP and MODBUS
- The Design and Research on Hydraulic Synchronous Lift System Based on PWM
- Design of Intelligent Distributed Control System of Railway Station Signal
- Development of Tobacco Manufacturing Automation System
- Design and Implementation of Automatic Weighting Control System for Blast Furnace Charging
- The Design of Multi-channel Data Acquisition System for Marine
- The development of PROFIBUS-DP master station module
- The Application and Design of the Profibus Fieldbus in Station Signal Control System
- The Research and Implementation of PROGIBUS-DP Slave Station Based on FPGA
- Research of Fieldbus Multi-Protocol Conversion Gateway Based on PROFIBUS-DP Slave
- A Design of IGBT 3-Phase Power Control System Based on PROFIBUS-DP Bus