1、 本科生毕业设计(论文) 学院(系) : 电子与电气工程系 专 业: 自动化 学 生: 指导教师: 完成日期 2011 年 5 月 基于 S7-300 PLC的 Simulink 在线带进水纯滞后 单容水箱液位控制控制程序设计 Tank Level Control Design Based on Simulink on-line Water of S7-300 PLC with Pure DelayControl Program Design 总 计:毕业设计(论文)28 页 表 格: 0 个 插 图: 17 幅 基于 S7-300 PLC 的 Simulink 在线带进水纯滞后单容水箱液位控
2、制控制程序设计 I 基于 S7-300 PLC 的 Simulink 在线带进水纯滞后单容水箱液位控 制控制程序设计 自动化专业 摘 要根据 S7-300PLC 模块化编程的特点,设计了 OB1、OB35、OB100 三个 组织块来实现控制功效。将 FB41 PID 调节模块放在 OB1 模块中,并进行参数设定及调 节。设置 500ms 定时中断,在定时中断服务程序 OB35 中进行滞后补偿算法的计算,而 后利用得出的结果进行系统滞后补偿。由于滞后补偿是在不断进行中的,采集的数据就 要不断的存储再采集,设计了一个队列数据结构。队列的操作也放在 OB35 中进行,具 体的队列操作封装在 FB1
3、模块中。利用 OB100 模块清除上一次运行时存储的数据。利 用力控软件完成系统实时监控。本设计完成了设计要求但还有待改进。 关键词纯滞后;程序设计;补偿;控制 Tank Level Control Design Based on Simulink on-line Water of S7-300 PLC with Pure DelayControl Program Design Abstract: According to S7-300PLC modular programming features, three organization blocks OB1, OB35, OB100 are
4、 designed to achieve control efficacy. The parameters of FB41 PID regulator module placed in OB1 module are set and adjusted. Then, 500ms timer interrupt is set and the compensation for delay algorithm calculated in the timer interrupt service routine OB35, then the results of calculation are used to compensate the delay system. Because of delay compensation is constantly on going, collection of data have to storage and re-collect. A qu