Microcontroller-based technology research MODBUS bus protocol
- Author
- DengYuanSheng
- Advisor
- LiLiZheng
- School
- Central South University
- Major
- Theory and New
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 936
- Citations
- 23
Abstract
Fieldbus is one of the hotspot in automation development, and is regarded as a computer LAN in automation area. As a foundation of industrial communication network, fieldbus links up the field equipments of production process. There are nowadays many fieldbus standards, but MODBUS is the most important and popular one in industrial process areas. Many industrial equipments, such as PLC, DCS and intelligent instruments use MODBUS as their communication standards.Aiming at creating a platform for MCU being united into networks, implementing the communication between PC and MCU, achieving the goal of controlling MCU by PC, this paper constructs a master-slave appliance in which PC acts as master, MCU as slave and MODBUS Protocol as connecting carrier. The paper also designs a interface for RS232 serial conversing RS485, which achieves the voltage tolerance between PC serial and MCU serial. The applicance adopts cylic redundancy check to ensure the accuracy of communication data. The appliance consists of the bellowed units: common PC as master, AT89S52 MCU as the core unit, ADC0809 and DAC0832 as auxiliary units and Intel8155 MCU as the extensional interface.Based on the analysis on MODBUS Protocol and according to the characteristic of MODBUS information frame, to implement the communication between master serial and MCU, the master PC uses VC++6.0 as programming language, and the slave system achieves the function of capturing, analyzing and sending information data by the program compiled in C51 programming language. This paper realized MODBUS Protocol by MCU. It will have been a prospect of wide utility.
Table of contents
Abstract 3-4
ABSTRACT 4-7
first chapter 7-14
1.1 Fieldbus Overview 7 <br / > 1.2 Overview of the fieldbus abroad 7-8
1.3 fieldbus technology and engineering applications trends 8-11
1.4 MODBUS application profiles 11-12
1.5 MODBUS bus product technical features 12-13
1.6 MODBUS protocol based on SCM product status 13
1.7 nbsp main contents of this paper ; 13-14
Chapter MODBUS protocol research 14-23
2.1 network Architecture 14
2.2 MODBUS protocol Overview 14 - 17
2.2.1 general Description 14-15
2.2.2 MODBUS data unit 15-16
2.2.3 MODBUS communication theory 16 < br /> 2.2.4 MODBUS communication network 16-17
2.3 MODBUS two means of transmission 17-18
2.3.1 ASCII mode 18 <br / > 2.3.2 RTU mode 18
2.4 MODBUS message frame 18-21
2.4.1 ASCII frame 19
2.4.2 RTU frame 19-20
2.4.3 character continuous transmission 20-21
2.5 error Detection method 21-22
2.5.1 LRC detection 21
2.5.2 CRC detection 21-22
2.6 Chapter Summary 22-23
Chapter MODBUS protocol hardware design 23-34
3.1 to achieve device hardware structure 23
3.2 RS-485 and RS-485 protocol chip Introduction 23-24
3.3 host RS-232/485 Interface Design 24-25
3.4 slave system design 25-32
3.4.1 design requirements 25
3.4.2 system Hardware overall design 25-26
3.4.3 core hardware design 26-28
3.4.4 communication Module 28
3.4.5 modulus conversion module design 28-30
3.4.6 digital to analog conversion module design 30
3.4.7 display function module design and extended functionality description 30-32 < br /> 3.5 Chapter Summary 32-34
Chapter MODBUS protocol software implementation 34-51
4.1 host system software design 34-37
4.2 CRC checksum program design 37-38
4.3 slave system software design 38-50
4.3.1 serial port initialization program design 41-42
4.3.2 serial interrupt programming 42-44
4.3.3 MODBUS protocol functions programming 44-49
4.3.4 MCU executes program design 49-50
4.4 Summary 50-51
Chapter Summary and Outlook 51-53
5.1 Full Summary 51 < br /> 5.2 Prospects 51-53
References 53-57
Thanks 57-58
pursue a degree during the main research results 58
master's participation in research projects during 58-59
appendix a slave hardware schematics 59-60
Appendix II MODBUS functions of the relevant program code 60-68
Related dissertations
- Modbus Protocol Realize PC and Dspic30F6014Processor Communications
- Design and Implementation of Remote Wireless Meter Reading System Based on Modbus Protocol
- The Implementation of Modbus Protocol Using ARM7and μC/OS-Ⅱ
- Based on MODBUS Protocol intelligent instrument design
- Performance Improvement of Intelligent Vortex Flowmeter and Research on Network Monitoring System
- The Development of Measurement & Controlling System of Torque Rheometer
- The Study of Automatic Monitoring System for Electrical Equipment Based on Internet
- Design and Implementation of Hydrological Information Telemetry System Based on GSM
- Design and Implementation of Monitoring System for Industrial Rice Breeding
- Research on PLC remote monitoring technology based on Internet
- Design of an Automatic Test System for Radar
- Study of Vision-based Tracking and Positioning System for Moving Target in a Large-scale Space
- Development and design of intelligent residential area centralized control system
- Development of Simple Controller Device
- Research on Solid Materials Storage and Transportation Control System
- Development of Automatic Towel Hemming Machine Control System
- Research and Realization of the Control System to Improve the Conversion Efficiency of Solar Photovoltaic
- Research and Application Based on Fieldbus Temperature Control System of Reaction Kettle
- Research and Design of High-power Temperature Control System Based on PROFIBUS
- The Development of PROFIBUS-DP Embedded Slave Station Module Based on DPC31