1、 摘要 在工业生产过程中, 液位变量是最常见、 最广泛的过程参数之一。 在油工业、 化工生产、电力工程、机械制造和食品加工等诸多领域中,人们都需要对各类流 体的液位高度进行检测和控制。由于其具有工况复杂、参数多变等特点,它对控 制调节器要求极高。针对人工控制液位的准度较低、速度较慢、灵敏度偏低等一 系列问题。本文提出了基于 PLC 的液位控制系统,系统主要通过将液位传感器检 测到的电信号通过接口送入 PLC 中,经过 A/D 转换成数字信号,随后送入数字 PID 调节器中,经 PID 算法后将控制量经过 D/A 转换成水泵电机转速相对应的电 信号送入水泵电机来控制水泵转速,最终达到控制液位的目
2、的。通过仿真和分析 结果表明本文所设计系统能够正常运行并且达到了设计的目的,能够准确、快速 地控制液位,克服了传统液位控制系统的很多弊端。 在工程实际中,应用最为广泛的调节器控制规律为比例、积分、微分控制, 简称 PID 控制。PID 控制器以其结构简单、稳定性好、工作可靠、调整方便而成 为液位控制的主要技术之一。 可编程控制器是一种应用广泛非常的自动控制装 置,它将传统的继电器控制技术、计算机技术和通讯技术融为一体,具有控制能 力强、操作灵活方便、可靠性高、适宜长期连续工作的特点,非常适合液位控制 的要求。 目前常用的可编程控制器中, 西门子公司的 S7-200 以其编程软件 STEP7 的
3、简洁易用和通信网络的功能强大得到业内人十的普遍认可。 关键词:西门子 S7-200;PID;液位变送器 Abstract In industrial processes, the level variables are the most common, the most widely used process parameters. In the oil industry, chemical industry, power engineering, machinery manufacturing and food processing and many other areas, people
4、need all kinds of fluid liquid level detection and control. Because of its complex conditions, parameter changing characteristics, its control regulator demanding. For manual control of the lower level of accuracy, speed, slow, low sensitivity and other issues. In this paper, based on the level of P
5、LC control system, the system mainly through the level sensor detects the electrical signals through the interface into the PLC, after A / D converted into digital signals, then sent to a digital PID regulator by PID After controlling the amount of algorithms through D / A converter to the pump moto
6、r speed into an electrical signal corresponding pump motor to control the pump speed, and ultimately achieve the purpose of the control level. Through simulation and analysis results show that this system is designed to function properly and achieve the purpose of the design that can accurately and quickly control the liquid level, to overcome the many drawbacks of traditional level control system. In engineering practice, the most widely regulator control law is proportional, integral, differe