基于现场总线的分布式控制系统的集成和开发
中文摘要 随着信息技术和自动化技术的发展,控制网络得到了迅猛的发展,现场总线技术和工业以太网得到了广泛的应用。本文的主题是基于现场总线的分布式控制系统的集成和开发。即通过研究现场总线控制系统的整体结构,参照一些国际标准协议,自行设计和开发一套适用于中小型工业控制场合的通用控制系统。 本文首先介绍了现场总线技术的概念,分析了以太网在工控领域的发展趋势,同时还简要介绍了人机界面组态软件,为系统的总体设计提供思路和方向。然后分析了项目的现状,以及本次毕设的任务——在项目原有的基础上作出改进。 本文以主要的篇幅来介绍人机界面组态软件和控制器之间通讯的设计和开发过程。首先,本文介绍了在以太网上传输数据的一套国际标准——ModbusTCP,并根据项目的要求设计了包的结构。然后介绍了如何在人机界面组态软件和控制器两侧分别实现数据传输,这是项目的开发重点。这些工作主要包括:分析人机界面组态软件(HMI)的结构;对现有的人机界面软件进行集成,主要是开发HMI软件的I/O驱动程序,以实现控制器和人机界面软件之间的双向数据传输;对控制器主程序进行修改,使得实时操作系统能成功的调用新任务和原来的任务。 本文的最后对人机界面组态软件设计开发过程进行了总结。结合项目的实现方法和目前人机界面组态软件的发展趋势,进一步分析了本次项目开发模式的优缺点,提出了开发人机界面组态软件的其他思路。
关键词:现场总线,控制器,人机界面,人机界面组态软件,实时多任务调度
Abstract With the development of Information Technology and Automation Technology, the control network is under change. The technology of fieldbus and Industrial Ethernet developed very fast and are being used to many fields. The main subject of this paper is the integration and development of control system based on Fieldbus, namely, a common control system will be designed and developed for general industrial control uses according to some international standards. After putting forward the concept of Fieldbus, this paper then analyses the development trend of Ethernet in control area, and introduces the application of HMI configuration software. All of these provide ideas and directions for the whole system design. And then the current situation of the program is discussed and my job, making improvement to the program, is int无忧论文 【http://www.uklunwen.com】roduced. What is mostly discussed in this paper is how the control system communicated with HMI configuration software. At first, a standard of messaging on Ethernet, ModubusTCP, is discussed and the structure of packet is brought forward. And then the main job is introduced---how to design the system both in HMI side and control system side. The work includes: The systemic analysis of HMI configuration software. The integration of Human Machine Interface software, mainly the development of its I/O driver. It provides data exchange channel between the controller and the HMI software. The modification of the control system program. It makes the real-time operation system successfully drive both the new and old task. At the end of this paper, the advice on how to design HMI configuration software forward after sum-up of the R&D experience, companioning with the idea of future development of HMI configuration software method of my program. And then the advantages and disadvantages of my method are analyzed and other methods of HMI configuration software are brought forward.
Key words: Fieldbus, Controller, HMI Configure Software, Real-Time Multitask Scheduling
目录
第1章 项目综述 3 1.1 项目背景 3 1.1.1 现场总线 3 1.1.2 工业以太网 3 1.1.3 人机界面组态软件 4 1.2 控制系统结构 5 1.2.1 通信网络 5 1.2.2 控制器 6 1.2.3 采集站 6 1.2.4 操作站 6 1.2.5 工程师站 7 1.3 项目目前完成情况 7 1.4 项目的改进 7 第2章 Modbus协议在以太网上的传输 8 2.1 Client-Server模式 8 2.2 ModbusTCP的数据包结构 9 2.3各种读写状态下的数据包结构 10 2.3.1读操 |
|