内容发布更新时间 : 2024/11/17 21:44:24星期一 下面是文章的全部内容请认真阅读。
摘 要
本文用可编程逻辑控制器(PLC)作为下位机、个人计算机(PC)作为上位机,设计了一个两种液体混合装置控制系统。
下位机采用西门子公司的S7-200CN型CPU芯片作为硬件,采用PLC程序设计的方法,实现对两种液体混合装置的控制。能够达到以下要求:1、将两种液体按一定比例混合;2、在电动机搅拌后将混合的液体输出容器,并自动开始新的周期,形成循环状态;3、在按停止按扭后依然要完成本次混合才能结束。在此设计中,液位传感器和电阀门以及搅动电机采用相应的钮子开关和发光二极管来模拟,另外还借助外围元件来完成本装置。整个程序采用结构化的设计方法,具有调试方便,维护简单,移植性好的优点。
上位机利用北京亚控公司的kongview6.53(组态王)作为组态监控软件,通过设计界面、定义设备、构造数据库、建立动画连接等步骤,实现了对液体混合装置的组态模拟。通过这种组态模拟,可以实现动画与PLC设备的即时通信,达到上位监控目的。
关键词:液体混合装置;PLC;组态模拟
ABSTRACT
In this paper, using the programmable logic controller (PLC) as a lower machine, the personal computer as a host PC, designing two kinds of liquid mixing device control system.
The machine adopts a Siemens S7-200 CN CPU chip as a hardware, the PLC program design method, the paper realize two kind of liquid mixing device control. To achieve the following requirements: 1. Taking the two liquids mixed in a certain proportion; 2. Stirring in the motor will mix of liquid output container, and automatically start a new cycle, form the circulation state; 3. In the stop button to complete the mixed still can end. In this design, level sensor and electric valves and stirring the motor corresponding toggles switch and led to simulation, and also with external components to complete this device. The whole process of the design method of structured, and has convenient debug, simple maintenance, portability good points.
PC use a Beijing and a controller of the company kongview6.5 (configuration king) as the configuration of the monitoring software, through the design interface, definition equipment, structure, establishing animation database connection, etc steps, realizing the liquid mixing device configuration of the simulation. Through this configuration simulation, it can achieve animation and PLC equipment of instant communication, to achieve the upper monitor purpose.
Key words: liquid mixing device; PLC; Configuration simulation
目 录
引 言 ··························································· 1 第一章 液体混合系统的方案设计 ·························· 2
1.1系统的整体设计要求 ········································ 2
1.2控制方式系统的设计 ········································ 2
第二章 液体混合系统的硬件设计 ·························· 4
2.1硬件配置及其原理 ··········································· 4
2.2 I/O计算 ························································ 4 2.3 PLC选型 ······················································ 5 2.4 I/O分配表设计 ··············································· 5 2.5外部接线图设计 ·············································· 7
第三章 液体混合装置的软件设计 ·························· 8
3.1程序设计的一般方法 ········································ 8 3.2 PLC控制的相关流程图 ···································· 8
第四章 系统调试运行分析 ·································· 11
4.1系统调试······················································ 11 4.2结果分析······················································ 11
第五章 液体混合装置组态模拟 ··························· 12
5.1组态王软件··················································· 12 5.2液体混合装置组态模拟的相关操作 ····················· 12
第六章 论文总结 ············································· 14 第七章 致谢 ··················································· 15 参考文献 ························································· 17