1、 1 摘 要 在众多生产领域中,经常需要对贮槽,贮罐,水池等容器中的液位进 行监控,以往采用传统的继电器接触器控制,使用的硬件连接多,可靠性 差,自动化程度不高,目前已有许多的企业采用先进控制器对传统的控制 器进行改造,大大提高了控制系统的可靠性和自动化程度,为企业提供了 更可靠的生产保障。 本文介绍了基于 FX2N 型号的可编程控制器(PLC) ,组态软件的液面控 制系统的设计方案,采用 PID 算法实现液面的自动控制。利用组态软件设 计人机画面,通过串行口和可编程控制器通信实现控制系统的实时监控, 现场数据的采集和处理,其结构简单,监控系统不仅自动化程度高,还具 有在线修改功能,灵活性强。
2、 关键词:PLC 液面控制 触摸屏 变频 2 Abstract In many areas of production, often need to tank of the storage tanks, tank containers, liquid level of monitoring, the traditional relay-contactor, using the hardware connection, poor reliability, automation degree is not high, many enterprises to adopt advanced contr
3、oller to improve the traditional, greatly improving the reliability and degree of automation control system, provides a more reliable guarantee for the production of enterprises. This paper introduces a programmable controller based on FX2N model (PLC), design of liquid level control system configur
4、ation software, using PID algorithm to realize automatic control of liquid level. Using configuration software to design man-machine interface, through the serial port and can realize real-time monitoring control system for communication programming controller, field data collection and processing,
5、the structure is simple, the monitoring system is not only a high degree of automation, but also changes with the online function, flexibility. Key words: PLC level control touch screen frequency converter 3 目目 录录 摘 要 1 Abstract.2 目 录 3 第一章 绪论 .5 1.1 本课题设计背景 5 1.2 本课题设计内容 6 1.3 本课题设计的目的和意义 6 第二章 系统控
6、制方案的确定 .8 2.1 采用 PLC 控制液体自动混合的优点 8 2.2 系统设计的基本步骤 8 2.3 系统控制方案 9 第三章 系统硬件设计 . 11 3.1 可编程控制器(PLC)的选型 . 11 3.1.1 PLC 机型的选择与特点 11 3.1.2 模拟量输入输出模块(FX0N-3A) . 13 3.2 水泵选型 14 3.3 变频器选型 15 3.4 触摸屏 . 16 3.4.1 触摸屏的工作原理 16 3.4.2 触摸屏的主要类型 16 3.5 液位传感器 17 3.5.1 液位传感器简介 17 3.5.2 液位传感器的工作原理 . 17 3.6 流量计 . 18 3.6.1 电磁流量计简介 18 3.6.2 电磁流量计的工作原理 . 18 3.7 硬件接线图 18 第四章 PID 控制器的设计 . 21 4.1 PID 控制算法及特点. 21 第五章 系统软件设计 . 23 5.1 程序设计编程基本原则与注意问题 . 23 5.1.1 程序设计(梯形图)编程基本原则 23 5.1.2 程序设计注意问题 23 5.2 程序设计 . 23 5.3 变频