单片机毕业论文基于PLC的水塔水位控制系统的设计.doc
38页毕 业 论 文题目 基于PLC的水塔水位控制系统的设计 姓 名: 所在学院: 自动化工程学院 所学专业: 电气工程及其自动化 班 级 08级3班 学 号 200806709082 V毕业论文(设计)任务书论文题目基于PLC的水塔水位控制系统的设计院部自动化学院专业电气工程及其自动化班级08级3班毕业论文(设计)的要求一:学生将所学的知识和技能应用于毕业设计中,对实际问题进行分析和概括.二:学生能独立检索和多渠道获取文献资料,学习、了解、提炼和掌握本课题所需材料.三:针对已掌握的知识,设计控制方案.毕业论文(设计)的内容与技术参数一:学习可编程控制器软件s7-300的使用,熟悉硬件配置及指令的运用学习Wincc6.0软件的使用二:学习利用MPI来实现s7-300和Wincc6.0的通信三:掌握用Wincc绘制组态画面的基本方法.四:熟练掌握下位机和上位机的MPI通信,并以此来完成水塔水位控制系统的设计.毕业论文(设计)工作计划2011年12月份:完成论文题目的选取2012年2月份:完成论文的总体框架2012年3月份:完成论文的细节部分2011年4月份:完成论文格式整理及准备论文答辩接受任务日期 年 月 日 要求完成日期 年 月 日学 生 (签名) 年 月 日指 导 教 师 (签名) 年 月 日院长(主任) (签名) 年 月 日摘 要随着科学技术的迅速发展,监控软件在工业生产中发挥着越来越重要的作用。
同时,自动化系统对大范围信息共享的需求越来越迫切,因而对工业控制系统的开放性的要求也越来越高传统的工业上位机监控软件开发都是基于设备的,程序的稳定性和复杂度受制于底层硬件的通讯协议同一种设备为适应不同的应用程序可能需要有多种不同的驱动程序,不同驱动程序之间存在着不一致性,像工业界所广泛使用的DCS、FCS等系统没有统一的接口标准,难以与现场多种设备连接因此驱动程序对硬件存在着极大的依赖性为了满足这种需要,本文提出了一种基于OPC技术的监控软件的设计方案OPC(OLE for Process Control)是在Microsoft的COM/DCOM技术的基础上定义的一个工业标准接口OPC技术把对象链接和嵌入技术应用于工业过程控制领域,提供了一种标准的数据访问机制使得现场设备不管以何种形式存在,客户都以统一的方式去访问,从而保证软件对客户的透明性本文深入研究COM技术和OPC数据访问规范,并对基于OPC的监控软件进行了设计和开发对OPC客户端模块进行了设计;所设计的基于OPC的监控软件可以与多种OPC服务器进行连接,并能对OPC服务器的数据进行读写操作,从而实现了监控软件与多种现场控制设备的数据传输;论文主要介绍煤矿胶带运输机在 WinCC 友好的界面下进行组态、编程和数据管理,可以形成所需的操作画面、监控画面、控制画面、报警画面、实时趋势曲线、历史趋势曲线和打印报表等。
实现对PLC及其他工业现场设备的数据的监控成功地实现了以统一方式与现场多种设备进行数据访问,避免了驱动程序开发的重复性,具有广阔的应用前景关键词:OPC;COM;数据访问(Data Acess);客户端AbstractWith the rapid development of science and technology, in industrial production monitoring software is playing an increasingly important role. At the same time, automated information sharing system to the needs of a wide range of increasingly urgent, and therefore open industrial control systems requirements are increasing. Traditional industrial PC control software development are based on equipment, procedures, subject to the stability and complexity of the underlying hardware, communication protocol. The same equipment for different applications may require different drivers, different drivers there are inconsistencies between, as a widely used industrial DCS, FCS and other systems there is no uniform interface standard, it is difficult and on-site a variety of devices. Therefore, there is the hardware driver greatly dependent. To meet this need, this paper presents a monitoring software based on OPC technology, design. OPC (OLE for Process Control) is in Microsoft's COM / DCOM technology, based on the definition of an industry standard interface. OPC technology to Object Linking and Embedding technology in the field of industrial process control, providing a standard data access mechanism. Makes the field device in whatever form, customers in a uniform way to access, thus ensuring the transparency of the software to customers. This article studies the COM technology and the OPC data access specification, and monitoring of OPC-based software design and development. OPC client module of the design; the design of the OPC-based monitoring software can be connected with a variety of OPC servers and OPC server can read and write data to achieve the monitoring software and a variety of field control devices data transmission; paper introduces coal belt conveyor friendly interface in WinCC configuration, programming and data management, can form the required operation screen, monitor screen, the control screen, the alarm screen, real-time trend curve, historical trend curve and print reporting. To achieve the PLC and other industrial field device monitoring data. Successfully achieved in a uniform way and field a variety of devices for data access, avoiding repetitive driver development, and has broad application prospects. Keywords:OPC;COM;Data Acess;Clients目 录摘要 ⅡAbstract Ⅲ1、绪论 12、OPC技术研究 32.1 OPC的历史和发展现状 32.1.1 OPC简介 32.1.2 OPC访问接口 32.1.3 OPC技术国内外研究现状及发展趋势 32.1.4 OPC技术的应用 32.2 COM技术概述 42.3 COM接口 42.3.1接口的定义和标识 42.3.2接口描述语言IDL 52.3.3 COM接口特性 52.4 COM结构 62.4.1客户/服务器模型 62.4.2 COM库 72.5 COM的实现 72.5.1进程内组件和进程外组件 72.5.2 COM对象的管理 73、OPC数据访问规范的研究 93.1 OPC规范简介 93.2 OPC 数据访问对象与接口 93.3.1 OPC 服务器对象及其接口 103.3.2 OPC 组对象及其接口 113.3.3 OPC 客户端接口 133.4 OPC 数据访问方式 143.4.1同步访问方式 143.4.2 异步访问方式 143.4.3 订阅访问方式 144、基于OPC的监控软件的设计 154.1监控软件的总体框架 154.2 OPC客户端模块的设计 164.2.1 OPC客户端实现机制 164.2.2 OPC客户端开发的必备条件 164.2.3客户端软件总体设计思路 174.2.4数据访问服务器对象设计 184.2.5客户端详细设计 205、监控软件的应用实例 235.1 WinCC 组态软件 235.1.1特点 245.1.2功能 245.2控制系统分析 235.2.1控制系统要求及实现 245.2.2监控点位 245.2.3皮带部分 245.3 Wincc与PLC通讯实现 235.3.1设置PG/PC 245.3.2设置通道参数 245.3.3系统运行测试 245.4组态监控画面 265.4.1创建项目 245.4.2建立驱动连接 245.4.3画面 245.4.4变量的创建和归档 29结论 。





