Fieldbus Profibus-DP and CAN interconnect Interface Design
- Author
- YuanXiaoChun
- Advisor
- LiYingHong
- School
- North China University of Technology
- Major
- Detection Technology and Automation
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 308
- Citations
- 1
Abstract
The coexistence of a variety of fieldbus standard and common development, to promote the fieldbus gateway products research and development , and become an important direction of the fieldbus application of technology . Fieldbus gateway communication gateway between the different types of fieldbus , Fieldbus and Industrial Ethernet communication gateway , as well as other commonly used serial bus , such as RS - 232 , RS -485 and fieldbus communication interface. Papers for industrial areas wider application of fieldbus Profibus-DP and CAN interrelated issues were studied, analyzed the characteristics of the bus to explore a variety of programs that implements the interface conversion , designed based bus protocol chip Profibus -DP and CAN communication interface circuit , a dual CPU . The interface board is composed of two parts : DP from station the - DP_test_board board and CAN node - DVN_test_board board , the dual-port RAM for data exchange . The paper gives a detailed description of the hardware design and software processes . The same time, ease of system debugging , the design of the part of the auxiliary module , such as a liquid crystal display module, serial communication module . Build a test platform to verify the feasibility of the design , to the Profibus-DP fieldbus CAN node interconnection and data exchange purposes . The research work is based on fieldbus Key Laboratory of relying on the surface of the Beijing Municipal Education Commission project funded . Made part of the research for the design of fieldbus conversion gateway reference solutions for fieldbus technology popularization and application at the same time have a positive effect .
Table of contents
Abstract 4-5
Abstract 5-8
1. INTRODUCTION 8-11
1.1 Fieldbus Technology Overview 8-9
1.2 Fieldbus gateway class product status 9
1.3 The main research topics 9-10
1.4 Chapter Summary 10-11
2.Profibus-DP slave design 11-40
2.1 Profibus Fieldbus Overview 11-16
2.1.1 Profibus protocol structure 11-12 < br /> 2.1.2 Profibus communication model 12-13
2.1.3 Profibus-DP bus device type and data communication 13-15
2.1.4 Profibus transmission Technical 15-16
2.2 Profibus-DP slave product development solutions 16-17
2.3 Device Selection 17-18
2.4 Profibus-DP slave hardware design 18-24
2.4.1 Communications and DP interface circuit 19-21
2.4.2 Address setting and display circuit 21 -22
2.4.3 data storage circuit 22
2.4.4 serial communication circuit 22-23
2.4.5 system power supply circuit 23 < br /> 2.4.6 Watchdog reset circuit 23-24
2.5 Profibus-DP slave debugging, program design 24-35
2.5.1 Slave Communication Debugging -SPC3 initialization, data processing 25-30
2.5.2 serial communication program design 30-31
2.5.3 LCD programming 31-32 < br /> 2.5.4 Other 32-35
2.6 DP slave network communications debugging 35-39
2.7 Summary 39-40 <br / > 3.CAN node design 40-58
3.1 CAN field bus 40-43
3.1.1 CAN some basic concepts 40
3.1.2 CAN node hierarchy 40-41
3.1.3 messaging and frame structure 41-42
3.1.4 error type and define 42-43
3.2 CAN BUS devices 43-46
3.2.1 independent CAN controller SJA1000 43-45
3.2.2 CAN bus driver 45-46
3.3 CAN node hardware circuit design 46-49
3.3.1 Device Selection 46
3.3.2 CAN communication interface circuit 46-48
3.3.3 DI / DO circuit 48
3.3.4 LCD module FM12864J circuit 48-49
3.4 CAN node procedure Design 49-56
3.4.1 SJA1000 control register 50-51
3.4.2 SJA1000 programming 51-54
3.4. 3 LCD program design 54-56
3.5 CAN node network communications debugging 56-57
3.6 Summary 57-58
4. communications interface board debugging 58-64
4.1 System structure principle 58
4.2 communications data processing 58-61
4.2.1 Network Data flow 59-60
4.2.2 Data format definition 60-61
4.2.3 Data processing subroutine introduced 61
4.3 network debugging 61-63
4.4 Summary 63-64
5. Conclusions 64-65
References 65-67 <br / > In the study results 67-68
Thanks 68-69
Appendix A: PROFIBUS-DP slave circuit diagram 69-70
Appendix B: CAN node circuit diagram 70-71
Appendix C: DP slave hardware physical map 71
Appendix D: CAN node hardware physical map 71 - 72
Appendix E: System Debug composition diagram 72