Presentation on theme: "Tuning PID Controller Institute of Industrial Control, Zhejiang University, Hangzhou, P. R. China 2013/03/27."— Presentation transcript:
Tuning PID Controller Institute of Industrial Control, Zhejiang University, Hangzhou, P. R. China 2013/03/27
Last Lecture Selection of Valve Action Action of Feedback Controllers Performance Criterion of Process Control Systems Understand Typical Controllers (P, PI and PID)
Single-loop PID Control System Problem: For an unknown extended controlled process, how to design and tune our PID controller ?
Proportional-Integral-Derivative (PID) Controller T d is the derivative time. Ideal PID Controller Industrial PID Controller ( design and realization ? ) The derivative gain A d = 10.
Problem Discussion Explain the function of PID controller for a stable controlled process. Analyze the effect of PID parameter changes on control performances How can we realize the industrial PID controller in Simulink ? PID tuning example (See../PIDControl /PIDLoop.mdl )
For the level controlled process, h 2 is selected as its controlled variable, and Q in is the main input of the process. Suppose the sectional area of two tanks are A 1 and A 2. The rates of outlet flow are assumed to satisfy the following equations: Problem 2-1 Please obtain the process characteristics by dynamic equations, and build the corresponding SimuLink model. ( discuss the initial condition setting)
Problem 2-2 t, min U, %60 40 T, t, min U, %40 T, For a heater with electricity, the step response data of outlet temperature can be shown as follows. Please determine its characteristic parameters K, T,τ if the span of temperature transmitter is 0 to 50. ( load the file temp.mat )
Contents Selection of PID Controller Types PID Selection of PID Controller Types PID Tuning of PID Controller Parameters Flow Control Level Control Reset Windup and Its Prevention Summary
Type Selection of PID Controllers *1: For some slow processes with long time constants, the derivative action is suggested to use. However, if there exists strong measurement noises, a first-order or average filter should be added. Please analyze the rule of type selection ? Controlled Variable Controller Type Temperature / Composition PID *1 Flow / Pressure /Liquid-Level PI Liquid-Level P
PID Tuning Concept
Offline Tuning Based on Process Parameters: K, T,τ Step 1: switch the controller to manual mode, change the output of controller in step form, and record input/output data of controller. Step 2: obtain process characteristics: K, T,τ, from the step response data. Step 3: set the PID parameters K c, T i, T d, and switch the controller to automatic mode. Step 4: increase or decrease the gain K c until obtaining the satisfactory response.
Simulation of Offline Tuning step 1: Step Testing See../PIDControl/PIDLoop.mdl
Step 2: Obtain Process Para.
Step 3: Obtain Initial PID Para. ( Ziegler-Nichols Method ) Controller KcKc TiTi TdTd P PI PID Note: the above method was developed for
Initial Value Step 3: Obtain Initial PID Para. ( Lambda Tuning Method ) Controller KcKc TiTi TdTd P PI T PID Tτ/2 Note: the above method is not limited by the value of
Simulation Example #1 K = 1.75 T = 6.5,τ= 3.3 min For PI Controller, Z-N tuning: K c = 1.0, T i = 11 min Lambda tuning: K c = 0.56, T i = 6.5 min
Simulation Example #2 K = 1.75 T = 6.5,τ= 6.3 min For PI Controller, Z-N tuning: K c = 0.53, T i = 20.8 min Lambda tuning: K c = 0.30, T i = 6.5 min
Procedure of Online Tuning: Ziegler-Nichols Technique Step 1: with the controller online (in automatic mode), remove all the reset ( T i = maximum) and derivative ( T d = 0) modes. Start with a small K c value. Step 2: make a small set point or load change and observe the response of CV. Step 3: if the response is not continuously oscillatory, increase K c, or decrease PB, repeat step 2. Step 4: Repeat step 3 until a continuous oscillatory response is obtained.
Example of Online Tuning See../PIDControl/PIDLoop.mdl
Online Tuning: Ziegler-Nichols Technique Controller KcKc TiTi TdTd P 0.5K cu PI 0.45K cu T u /1.2 PID 0.65K cu T u /2T u /8 The gain that gives these continuous oscillations is the ultimate gain ( ), K cu. The period of the oscillations is called the ultimate period ( ), T u. the ultimate gain and the ultimate period are the characteristics of the process being tuned. The following formulas are then applied:
Online Tuning Result See../PIDControl/PIDLoop.mdl
Limitation of Online Tuning
Auto-tuning Based on Relay Feedback ( ) Here we suppose the process gain > 0
Relay Feedback Example The controlled process can be described as The amplitude of relay controller is d = ±2.0
Response of Relay Feedback Oscillation period T U & amplitude A Y ? See the detailed results:../ PIDLoopAutoTuning.mdl
The Ultimate Gain ( ) K cu Calculation FT
Online Z-N Tuning Parameters Controller KcKc TiTi TdTd P 0.5K cu PI 0.45K cu T u /1.2 PID 0.65K cu T u /2T u /8 If we use a PID controller, then we select the following parameters ……
Closed-loop Response of PID Feedback System Above auto- tuning method can be applied to other controlled processes ?
Characteristics of Flow Loops Fast dynamic response Zero dead time, which results in an infinite controller gain in every tuning equation Large measurement noise To decrease the change of control valve, a PI controller is common used with very small proportional action and a large integral action to approximate an integral controller. (Why?)
Tuning Example of Flow Loops See../PIDControl/FlowLoop.mdl Please compare the proportional gain with the integral gain
Examples of Level Loops
Characteristics of Level Loops Very often levels are integrating processes There are two types of possible control objectives when the input flow varies: (1) Tight Level Control; (2) Average Level Control ()
Tight Level Control The objective is to control the level tightly at set point, and the output flow can be allowed to vary without limitation If a level process happens to be self-regulated, and it is possible to obtain K, T andτ, the above tuning techniques can be used directly If a level process is integrating, a PI controller is common used with large proportional action and a very small integral action
Average Level Control The objective is to smooth the output flow from the tank, which feeds the downstream unit, the level in the tank must be allowed to float between a high and a low level A P controller is common used in Average Level Control with a small proportional gain Tuning: the gain should be set to be as small as possible, as long as the level changes between a high and a low level for the expected flow deviation from the average flow.
Example of Level Control See../PIDControl/ LevelLoop.mdl
Analysis of Average Level Control Systems Dynamic equation of the controlled process: where A is the area of the tank. Suppose
Analysis of Average Level Control Systems (cont.) For a proportional controller, G c = K c, Please analyze the above models.
Examples of Average Level Control Systems Please see../PIDControl/ AverageLevelLoop.mdl
Simulation Results of P-type Average Level Control
Reset Windup Problem Please see the following simulation example …/PIDControl/PidLoopwithLimit.mdl
Simulation Result with Reset Windup in a Single-Loop System Discussion: Which difference exists between reset windup and the open or closed status of the control valve completely ?
The Principle of Preventing Reset Windup Principle: remove the reset or integral action if the control output is beyond the normal operation range.
Anti-reset Windup Example
Industrial PID Controller PID1 PID2
Summary Selection of PID Controller Types Tuning of PID Controller Parameters Tuning of PID Controller for Flow Loops Tight / Average Level Control Reset Windup and Its Prevention
Problem Discussion For an unknown stable temperature control system, can you determine PID parameters in Offline and Online tuning methods ? Please realize the industrial PID controller in Simulink ? For the fast flow control loop, show me your tuning principle and explain why. For the AVERAGE level control loop, show me your tuning principle and explain why. Explain the existing reason of reset windup and show me your prevention schemes
Exercise 3.1 A controlled process is shown in the Problem 2-1 (p.34) in Automated Continuous Process Control. (1)calculate its characteristics parameters K, T and τ; (2)decide on the action of the valve and the controller; (3)tune your PID controller.