基于MATLAB的数字PID控制器设计及仿真分析
摘 要
PID控制作为历史最为悠久,生命力最强的控制方式一直在生产过程自动化控制中发挥着巨大的作用。PID控制是最早发展起来的控制策略之一,由于其算法简单、鲁棒性好和可靠性高,被广泛用于过程控制和运动控制中。数字PID控制算法是将模拟PID离散化而得到的,各参数有着明显的物理意义,而且调整方便,所以PID控制器很受工程技术人员的喜爱。
本论文主要实现基于MATLAB的数字PID控制器设计及仿真。首先介绍了传统的模拟PID控制方法,包括比例控制方法、比例积分控制方法、比例积分微分控制方法等。接下来,介绍了数字PID控制。随着时代的发展,科技的进步,传统的模拟PID控制方法不能满足人们的需求,数字PID控制的改进算法也便随之而来。本文最后,应用MATLAB软件,在实验的环境下实现了其设计及仿真。
本次毕业设计用来完成数字PID控制器的设计,并通过MATLAB实现其仿真同时加以分析。通过查阅文献得知,与传统模拟PID控制器相比较,该控制器具有良好的灵活性,而且可得到精确的数学模型。另外,基于MATLAB的数字PID 控制器设计及仿真,充分的利用了MATLAB的实验环境,整个设计验证了数字PID的广泛可实现性及准确性。
关键词:PID控制;模拟PID控制器;数字PID控制器;MATLAB仿真;
Design and simulation analysis of Digital PID Controller
MATLAB-based
Abstract
As the most age-old and powerful control mode, PID control always has had a great effect on the automatic control of the production process. PID control is one of the first developed control strategy, because of the
I
simple algorithm, great robust and high reliability, it is widely used in process control and motor control. Digital PID control algorithm is gotten by discreting the analog PID control, and the parameters have obvious physical meaning and facility adjustment, so PID controller is popular with engineering and technical personnel.
In the paper, the main idea is to accomplish MATLAB-based digital PID controller design and simulation analysis. In the first place, the traditional analog PID control methods is introduced, including proportional control methods, proportional integral control and proportional integral differential control. In the second place, the digital PID control methods are offered. With the development of the times, the advancement of technology, traditional analog PID control method cannot make a satisfaction, then digital PID control is followed. At last,the application of MATLAB software to achieve their design and simulation is easy to accomplish.
The graduation project is to complete the digital PID controller design and simulation through MATLAB simulation and analysis. It is known that through the literature, compare with traditional PID controller, the controller has good flexibility and precision of the mathematical models available. In addition, in the number of MATLAB-based PID controller design and simulation, the MATLAB experiment environment is used comprehensively. The entire design is confirmed the wide range and accuracy of digital PID controller. Key words:PID control;analog PID controller;digital PID controller;MATLAB simulatio
II
目 录
摘 要 ......................................................................... I ABSTRACT ....................................................................... I 第1章 绪论 .................................................................... 1 1.1 课题目的及意义 ........................................................... 1 1.2 数字PID控制器的研究现状 ................................................. 2 第2章 PID控制器 .............................................................. 3 2.1 传统PID控制器概述 ....................................................... 3 2.2 PID控制器的基本原理 ...................................................... 4 2.2.1 比例(P)调节 .......................................................... 5 2.2.2 比例积分(PI)调节 ..................................................... 7 2.2.3 比例积分微分(PID)调节 ................................................ 8 第3章 数字PID控制器 ......................................................... 11 3.1 数字PID控制系统 ........................................................ 11 3.2 数字PID控制的基本算法 .................................................. 11 3.2.1 位置式PID控制算法 .................................................. 11 3.2.2 增量式PID控制算法 .................................................. 13 3.2.3 位置算式与增量算式的比较 ............................................ 14 第4章 数字PID的改进算法 ..................................................... 15 4.1 积分算法的改进 .......................................................... 16 4.1.1 积分分离法 .......................................................... 18 4.1.2 变速积分法 .......................................................... 20
III
4.1.3 遇限消弱积分法 ...................................................... 21 4.1.4 梯形积分法 .......................................................... 22 4.2 微分算法的改进 .......................................................... 22 4.2.1 不完全微分PID控制算法 .............................................. 23 4.2.2 微分先行PID控制算法 ................................................ 25 4.3 带死区的PID控制算法 .................................................... 27 第5章 基于MATLAB的数字PID控制器设计及仿真 .................................. 28 5.1 位置式PID控制算法仿真实例 .............................................. 29 5.2 增量式PID控制算法仿真实例 .............................................. 30 参考文献 ...................................................................... 31 谢 辞 ........................................................................ 32
IV
第1章 绪论
1.1 课题目的及意义
PID控制器又称为PID调节器,是按偏差的比例P、积分I、微分进行控制的调节器的简称,它主要针对控制对象来进行参数调节。PID控制器问世至今,控制理论的发展经历了古典控制理论、现代控制理论和智能控制理论3个阶段。在工业控制系统和工程实践中,传统的PID控制策略依然被广泛使用。因为它算法简单、稳定性好、鲁棒性好、在工程上易于实现。被控对象的结构和参数不能完全掌握,或得不到精确的数学模型时,控制理论的 其它技术难以采用时,系统控制器的结构和参数必须依靠经验和现场调试来确定,这时应用PID控制技术最为方便。即当我们不完全了解一个系统和被控对象,或不能通过有效的测量手段来获得系统参数时,最适合用PID控制技术。但PID控制器的参数整定方法复杂,通常采用PID归一参数整定法和试凑法来确定,费时、费力,且不能得到最优的参数整定。针对这一为题用MATLAB实现PID参数整定及仿真的方法及控制参数对PID控制规律的影响。利用MATLAB强大的计算仿真能力,解决了利用试凑法来整定参数十分浩繁的工作,可以方便、快速的找到使系统达到满意的性能指标参数。
1
相关推荐: