Design and Implementation of RS232 /PROFIBUS-DP Slave Interface

Author
WangZheng
Advisor
ZhangZengKe
School
Tsinghua University
Major
Control Engineering
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2004
Downloads
1,302
Citations
22

Request the full text

Abstract

PROFIBUS has widespread usage because it’s advantages; such is better communication real-time character, high transmitting rate, low cost, topological structure flexible, high redundant, suitable for various kinds of industrial control field, etc. But, lots of equipment have only RS232 serial interface in traditional industrial process control area, such is data collector, executive component and controller. Because RS232 standard outputs signal is not compatible of the PROFIBUS, so RS232 interface equipment can’t open interconnection and distributed control with PROFIBUS. Therefore have very important realistic meaning and project value to study this technology.The thesis regards solving RS232 interface equipment and PROFIBUS-DP interconnection as the direction of studying. Designing and developing has RS232 interface and PROFIBUS-DP interface Slave. Realize the protocol converted between RS232 equipment and PROFIBUS-DP .The main work of the thesis and achievement are summed up as follows:1、The core of studied PROFIBUS-DP technology forming, systematic structure, communication protocol, message structure and system characteristic, then put forward the technological scheme used protocol converted in RS232 and PROFIBUS-DP.2、Designed and developed has RS232/ PROFIBUS-DP Interface Slave. Analyzed and contrasted two kinds ways of realizing that the hardware protocol converted of " MCU +ASIC " and" software protocol converted of MCU ", determine adopted way of hardware protocol converted, selected SPC3 for use protocol converted chip in PROFIBUS-DP Slave Station. The core of Slave Interface hardware design regarded PHILIPS P89C668 MCU chip and SPC3 chip interface circuit as, and additional auxiliary interface circuit is formed.3、Realized the slave interface protocol converted software design. Adopt the module structure programming method, finished original procedure code developing and compiling, chaining, software emulating through KeiL C51 Windows integrated developing platform, carry on the emulation of the hardware to the original procedure code through MCU TKS668 hardware emulator based on KeiL platform.4、We set up PROFIBUS-DP Master/Slave test and debug system based on <WP=5>computer, use serial debug software simulation the data interchange from industrial process control system to RS232/PROFIBUS-DP Slave Interface, we realized two-way data communication finally through configuration Master and Slave in SOFTPLC, write GSD file and STEP7 communication program by myself design .5、The research results of the thesis use the prospect and value certainly. RS232 and PROFIBUS-DP protocol convert interface can embed in the process control equipment as Intelligent Slave Station, that realize many functions as data collect and control. Expensive bus gateway products that can replace in abroad after perfect Interface performance and industrialization producing have competitiveness of stronger market.

Table of contents

Chapter 1 Introduction 9-12 1.1 topics purpose and meaning 9-10 1.2 international and domestic research status and progress 10 1.3 each paper the main content section 10-12 Chapter 2 fieldbus technology progress and development trend 12-23 fieldbus technical features 2.1 12-13 2.2 advantages fieldbus 13 2.3 development Status fieldbus 13-14 2.4 introduces several typical fieldbus 14-20 2.4.1 Foundation Fieldbus FF 14-16 2.4.2 LonWork local Operating Network 16-17 2.4.3 CAN controller Area Network 17-19 2.4.4 WorldFIP global plant instrumentation Association 19-20 development direction 2.5 fieldbus technology 20-23 2.5.1 scene bus technology and intelligent sensor technology combined 20 2.5.2 compatible coexistence of a variety of fieldbus technology 20-21 2.5.3 fieldbus turning to industrial ethernet 21-23 Chapter 3 PROFIBUS field bus technology research 23-36 3.1 PROFIBUS fieldbus Profile 23-24 basic characteristics of nbsp 3.2 PROFIBUS ; 24 3.3 PROFIBUS protocol architecture 24-31 3.3.1 PROFIBUS transmission technology 25-29 3.3.2 PROFIBUS bus access protocol 29-31 3.5 PROFIBUS fieldbus -based control system 31-35 3.5.1 structure 31-32 3.5.2 composition system Behavior 32-33 3.5.3 PROFIBUS-DP is 33 3.5.4 DPM1 and DP data transfer between stations and DPM2 33-34 <br / > 3.5.5 PROFIBUS-DP extensions latest development in 34-35 3.6 PROFIBUS technology 35-36 Chapter 4 PROFIBUS-DP slave interface solution 36-46 4.1 principle 37-38 4.2 implementation 38-39 4.2.1 software 38 <br / > 4.2.2 hardware implementation 38-39 4.3 slave protocol chip 39-46 4.3.1 SPM 40 4.3.2 LSPM 40-41 4.2.3 SPC 41-43 4.2.4 DPC 43-44 4.3.5 protocol chip select 44-46 Chapter 5 RS232/PROFIBUS-DP slave interface hardware design 46-57 5.1 overall design of station hardware interface 46-47 5.2 intelligent slave key part of the circuit design 47-55 5.2.1 MCU interface circuit SPC3 of 47-51 5.2.2 RS232 interface circuit 51 5.2.3 RS485 driver and interface circuit 51-52 5.2.4 reset circuit 52-53 5.2.5 power circuit 53-54 5.2.6 MCU in the ISP download circuit 54-55 5.3 hardware circuit test 55-57 Chapter 6 RS232 / PROFIBUS-DP slave interface software design 57-73 6.1 PROFIBUS-DP station from the state mechanism 57-59 6.2 software intelligent slave overall design plan 59 6.3 main 59-65 6.3.1 SPC3 initialization 61-65 6.4 interrupt program 65-69 <br / > 6.5 slave interface written GSD file 69-70 6.6 KeiL C51 Windows integrated Development Environment 70-71 6.7 emulation and debugging 71-73 <br / > Chapter 7 PROFIBUS-DP master and slave test debug system 73-83 7.1 PROFIBUS-DP master to achieve from the hardware and software installation nbsp test debugging systems ; 73-75 <br / > 7.2 build PROFIBUS-DP master 75 7.3 PROFIBUS-DP master to achieve nbsp from test to debug the system control program ; 75-81 7.4 test conclusions 81-83 Chapter 8 conclusions and Prospects 83-85 8.1 Conclusion 83-84 8.2 Prospect 84-85 References 85-89 thank statement 89-90 Appendix 90-99 CVs, research and published during the school 's academic 99

Related dissertations

  1. The PROFIBUS fieldbus control system research and development of intelligent interface module from the station
    ZhengXiaoZuo ·Guizhou University ·2007 ·Master's thesis
  2. Research on Technology of PROFIBUS-DP Fieldbus and Realization of Slave Station Interface
    HuangLiQuan ·Wuhan University of Technology ·2006 ·Master's thesis
  3. Developing Intelligent Slave Station Base on PROFIBUS-DP
    GuoYanQing ·University of North ·2006 ·Master's thesis
  4. Research on Communications of PROFIBUS-DP Fieldbus and Design of Intelligent Slaver
  5. Research and Design of High-power Temperature Control System Based on PROFIBUS
  6. The Development of PROFIBUS-DP Embedded Slave Station Module Based on DPC31
    SunQing ·Tianjin University of Technology ·2013 ·Master's thesis
  7. Design of Autocontrol System of Ingredient Process
  8. Research of Integrated Slave Node Based on PROFIBUS-DP and MODBUS
    LuXingJi ·Tianjin University of Technology ·2013 ·Master's thesis
  9. Based on field bus (PROFIBUS) to design the fuzzy controller
    QiFengHua ·Heilongjiang University ·2012 ·Master's thesis
  10. Research of Profibus-DP Protocol Based on FPGA
    QiuZhenXing ·Tianjin University of Technology ·2012 ·Master's thesis
  11. The Research and Implementation of PROGIBUS-DP Slave Station Based on FPGA
    CaiYuanBin ·Jilin University ·2012 ·Master's thesis
  12. Research of Fieldbus Multi-Protocol Conversion Gateway Based on PROFIBUS-DP Slave
  13. Study of Intelligent Electrical Actuator Based on PROFIBUS
    ChenYuan ·Zhejiang University of Technology ·2013 ·Master's thesis
  14. Research on Application of sand and gravel processing of PLC control system
  15. Parts Control System in Product Line
    LiHanYuan ·South China University of Technology ·2012 ·Master's thesis
  16. Study and Appilication of Fieldbus in Valve Controller
    LinXiaoYi ·Shanghai Jiaotong University ·2007 ·Master's thesis
  17. Proifbus Based Study and Design of Building Energy Consumption Monitoring System
    WanZuo ·Hefei University of Technology ·2013 ·Master's thesis
  18. Design and Analysis of Slave Interface for NCS Based on PROFIBUS
    SongLiJie ·Hebei University of Technology ·2007 ·Master's thesis
  19. Research of Remote Administration of Power Based on CAN Bus
    WangBin ·Jiangsu University ·2002 ·Master's thesis
  20. Design of Intelligent PROFIBUS-DP Slave Based on USB Interface