Research and Implementation of MODBUS Protocol
- Author
- XuBo
- Advisor
- XuChao , LiZhengPing
- School
- Anhui University
- Major
- Circuits and Systems
- Classification
- TP393.04 Communication protocols, communication protocols
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 800
- Citations
- 8
Abstract
The rapid development of computer technology, making the modern industrial production and control systems become more complex, while its reliability, real time, increasing accuracy requirements. Fieldbus control system performance to provide a new way to improve the development of field bus technology, mind control is to establish an open communications network. For historical reasons, different systems very different field bus protocols. Application of different bus protocols are also different..Modbus protocol defines the controller can identify and use the information structure. Widely used in industrial communication, the advantage of real-time, high reliability, suitable for small to medium-scale data transmission, such as the typical application of programmable logic controller (PLC). Agreement with the host polling mechanism, the master issued a query request from the device to perform an action; inquiry request received from the device, identify whether the implementation of the corresponding local data movement, organization response, the status of implementation or the data back to master device.In this paper, the rules of Modbus protocol, Modbus protocol detailed analysis of the principles of protocol software implementation, and then use the C language implementation of the completion of the agreement, which the software can be divided into application-level layer, protocol layer and port layer. Although the main, different from the station communication mode (the main station take the initiative to send a query task is passive from the station) but the main message from the station frame format is insignificant, so the main, from the station code sharing agreements are not affected.Finally, Frescale’s latest MCF52259 (hereinafter referred to as "master") and MC9S08GB60 microcontroller (hereinafter referred to as "slave") for the hardware platform for the establishment of Modbus communication model, this model is applied to remote monitoring systems in hospital wards. Real-time operating system introduced ucosll MCF52259 hardware platform in the transplanting process, in real-time operating system uCOS-Ⅱto complete communication tasks. Physical layer technology RS-485 bus master, from the docking station, complete information exchange between them. This system has completed an initial test results were very good, of course, be on-site inspection.
Table of contents
Summary 3-4
ABSTRACT 4-6
directory 6-8
chart catalog 8-10
Article Chapter Introduction 10-14
1.1 Overview fieldbus 10-11
1.2 MODBUS protocol outlined 11-12
1.2.1 Modbus protocol the emergence and development 11
1.2.2 Modbus protocol model applications and features 11
1.2.3 Modbus protocol 11-12
1.3 subject background and main contents organizational structure 12-13
1.4 article 13-14
chapter MODBUS protocol Introduction 14-29
2.1 protocol Description 14-18
2.1.1 on the Modbus network transmission 14-15
2.1.2 on other types of network transmission 15 <br / > 2.1.3 query - response cycle 15-17
2.1.4 state Diagram 17-18
2.2 protocol packets 18-20 <br / > 2.3 two transmission methods 20-23
2.3.1 RTU mode 20-22
2.3.2 ASCII modes 22-23
2.4 function code defines 23-28
2.5 Summary 28-29
The third chapter introduces the main function of protocol and parameters described 29-49
3.1 software conceived and file structure 29-30
3.2 main functions and their parameters 30-44
3.2.1 system configuration instructions , mb_config.h file 30-32
3.2.2 several important structures 32-33
3.2.3 application layer and its main function is to achieve 33-35
3.2. 4 protocol layer functions to achieve achieve 35-44
3.3 port layer function 44-47
3.4 application model 47-48
3.5 chapter Summary 48-49
Chapter IV MODBUS protocol in the ward remote monitoring system model 49-73
4.1 ward remote monitoring system 49-53 < br /> 4.1.1 system Architecture 49-50
4.1.2 function code and signal definitions 50-53
4.2 system hardware configuration 53-63
4.2.1 master 53-61
4.2.2 slaves 61-63
create nbsp 4.3 UCOS-Ⅱ system migration and tasks ; 63-71
4.3.1 development Tools 64-70
create 4.3.2 Modbus task 70-71
4.4 This chapter summarizes 71 - 73
fifth chapter summarizes 73-75
References 75-78
Thanks 78-79
papers published during Masters 79-80
Related dissertations
- Research of Real-time Ethernet Protocol EtherCAT
- The Research in the Embedded Data Communication System Based Modbus Protocol
- The Modeling and Analysis Based on PROFIBUS-DP of Networked Control Systems
- Design and implementation of the experimental assembly production line control system based on PROFIBUS
- Research on K-thermocouple Temperature Measurement System of Fieldbus
- Research and Design of Bus Controller Unit in Video Format Conversion Chip
- Control System Study on Public Performances Platform
- The Economic Analysis of Scheduling and Its Applications
- Study on the economic and trade relations between China and Venezuela
- International Human Resource Management Case Study of the MNCs in China
- Research on Energy Monitoring System for Civil Air Defense Projects Based on Modbus
- Design of Steam System Data Acquisition Sub-station
- Studying of Production Control System of Flourmill
- Configuration Synthesis and Perforance Analysis of a6-dof Master Robot
- The Application of Modbus Protocol in the Huatugou Union Station
- Research and Design on PCB Vision Detector Control System
- Research of Integrated Slave Node Based on PROFIBUS-DP and MODBUS
- Design of External Heating Drying Remote Monitor System Based on PLC&GPRS
- The Design and Analysis of MRI Gradient Power Amplifier Software System
- Research of Strategies to Perfect the Reform Ation on China's Master Educational System