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

Request the full text

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

  1. Research of Real-time Ethernet Protocol EtherCAT
    WuYiFan ·Zhejiang University of Technology ·2009 ·Master's thesis
  2. The Research in the Embedded Data Communication System Based Modbus Protocol
    PanChangQing ·Beijing Jiaotong University ·2008 ·Master's thesis
  3. The Modeling and Analysis Based on PROFIBUS-DP of Networked Control Systems
    ZhuLiang ·Hohai University ·2007 ·Master's thesis
  4. Design and implementation of the experimental assembly production line control system based on PROFIBUS
    LiHuShan ·Central South University ·2005 ·Master's thesis
  5. Research on K-thermocouple Temperature Measurement System of Fieldbus
    XueFei ·Wuhan University ·2004 ·Master's thesis
  6. Research and Design of Bus Controller Unit in Video Format Conversion Chip
    LiZuo ·Tianjin University ·2009 ·Master's thesis
  7. Control System Study on Public Performances Platform
    YinHaiBing ·Shanghai Jiaotong University ·2011 ·Master's thesis
  8. The Economic Analysis of Scheduling and Its Applications
    XiuJun ·Beijing Jiaotong University ·2012 ·Master's thesis
  9. Study on the economic and trade relations between China and Venezuela
    JieLiDuo ·Capital University of Economics ·2014 ·Master's thesis
  10. International Human Resource Management Case Study of the MNCs in China
  11. Research on Energy Monitoring System for Civil Air Defense Projects Based on Modbus
    ShiZuo ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Design of Steam System Data Acquisition Sub-station
    FanZuo ·Dalian University of Technology ·2013 ·Master's thesis
  13. Studying of Production Control System of Flourmill
  14. Configuration Synthesis and Perforance Analysis of a6-dof Master Robot
    JiShuFang ·Hebei University of Technology ·2013 ·Master's thesis
  15. The Application of Modbus Protocol in the Huatugou Union Station
    ChenShiLin ·Xi'an University of Petroleum ·2012 ·Master's thesis
  16. Research and Design on PCB Vision Detector Control System
    LiuZhenChang ·Tianjin University ·2012 ·Master's thesis
  17. Research of Integrated Slave Node Based on PROFIBUS-DP and MODBUS
    LuXingJi ·Tianjin University of Technology ·2013 ·Master's thesis
  18. Design of External Heating Drying Remote Monitor System Based on PLC&GPRS
  19. The Design and Analysis of MRI Gradient Power Amplifier Software System
  20. Research of Strategies to Perfect the Reform Ation on China's Master Educational System
    QiuJu ·Northeastern University ·2010 ·Master's thesis