PID Tuning and Controllability Sigurd Skogestad NTNU, Trondheim, Norway.

Slides:



Advertisements
Similar presentations
Model-based PID tuning methods Two degree of freedom controllers
Advertisements

Chapter 9 PID Tuning Methods.
Tuning of PID controllers
Chapter 4: Basic Properties of Feedback
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 13. Feedback Performance Copyright © Thomas Marlin 2013 The copyright.
CHE 185 – PROCESS CONTROL AND DYNAMICS
1 Outline Control structure design (plantwide control) A procedure for control structure design I Top Down Step 1: Degrees of freedom Step 2: Operational.
Controller Tuning: A Motivational Example
Process Control Instrumentation II
Chemical Process Controls: PID control, part II Tuning
Practical plantwide process control: PID tuning
Plantwide process control with focus on selecting economic controlled variables («self- optimizing control») Sigurd Skogestad, NTNU 2014.
Practical plantwide process control Sigurd Skogestad, NTNU Thailand, April 2014.
Chapter 7 PID Control.
Proportional/Integral/Derivative Control
Lecture 5: PID Control.
RELATIVE GAIN MEASURE OF INTERACTION We have seen that interaction is important. It affects whether feedback control is possible, and if possible, its.
1 Dynamic Behavior Chapter 5 In analyzing process dynamic and process control systems, it is important to know how the process responds to changes in the.
Cascade and Ratio Control
PSE and PROCESS CONTROL
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
Alternative form with detuning factor F
Dynamic Response Characteristics of More Complicated Systems
Simple rules for PID tuning Sigurd Skogestad NTNU, Trondheim, Norway.
1 H Preisig 2006: Prosessregulering / S. Skogestad 2012 First-order Transfer Function Transfer function g(s): -Effect of forcing system with u(t) -IMPORTANT!!:
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Feedback Control.
Controller Design (to determine controller settings for P, PI or PID controllers) Based on Transient Response Criteria Chapter 12.
DYNAMIC BEHAVIOR OF PROCESSES :
PID Controller Design and
1 E. S. Hori, Maximum Gain Rule Maximum Gain Rule for Selecting Controlled Variables Eduardo Shigueo Hori, Sigurd Skogestad Norwegian University of Science.
Input-output Controllability Analysis Idea: Find out how well the process can be controlled - without having to design a specific controller Reference:
PID controller Time domain Laplace domain
University of Virginia PID Controllers Jack Stankovic University of Virginia Spring 2015.
Controllability of Processes with Large Gains Sigurd Skogestad Antonio C. B. de Araújo NTNU, Trondheim, Norway August, th Nordic Process Control.
ERT 210/4 Process Control Hairul Nazirah bt Abdul Halim Office: CHAPTER 8 Feedback.
1 Outline Control structure design (plantwide control) A procedure for control structure design I Top Down Step 1: Degrees of freedom Step 2: Operational.
1 Decentralized control Sigurd Skogestad Department of Chemical Engineering Norwegian University of Science and Tecnology (NTNU) Trondheim, Norway.
1 Decentralized control Sigurd Skogestad Department of Chemical Engineering Norwegian University of Science and Tecnology (NTNU) Trondheim, Norway.
1 The improved SIMC method for PI controller tuning Chriss Grimholt Sigurd Skogestad NTNU, Trondheim, Norway Reference: C. Grimholt and S. Skogestad, “The.
Lecture 16: Introduction to Control (Part II)
Chapter 4 A First Analysis of Feedback Feedback Control A Feedback Control seeks to bring the measured quantity to its desired value or set-point (also.
Controllability Analysis for Process and Control System Design
Optimal PI-Control & Verification of the SIMC Tuning Rule
1 II. Bottom-up Determine secondary controlled variables and structure (configuration) of control system (pairing) A good control configuration is insensitive.
Control Loops Tune a Fish. Control Loops Tuning of a control loop involves selecting loop parameters to ensure stable control under all operating conditions.
Lecture 9: PID Controller.
1 Effect of Input Rate Limitation on Controllability Presented at AIChE Annual Meeting in Austin, Texas November 7 th, 2002 Espen Storkaas & Sigurd Skogestad.
Cascade Control Systems (串级控制系统)
1 PID Feedback Controllers PID 反馈控制器 Dai Lian-kui Shen Guo-jiang Institute of Industrial Control, Zhejiang University.
1 The setpoint overshoot method: A simple and fast closed-loop approach for PI tuning Mohammad Shamsuzzoha Sigurd Skogestad Department of Chemical Engineering.
Process Control. Feedback control y sp = set point (target value) y = measured value The process information (y) is fed back to the controller The objective.
EEN-E1040 Measurement and Control of Energy Systems Control I: Control, processes, PID controllers and PID tuning Nov 3rd 2016 If not marked otherwise,
Practical plantwide process control: PID tuning
Probably© the smoothest PID tuning rules in the world: Lower limit on controller gain for acceptable disturbance rejection Sigurd Skogestad Department.
Model SIMC-tunings Tight control Smooth control Level control
PID-tuning using the SIMC rules
Practical plantwide process control: PID tuning
Introduction to PID control
Practical plantwide process control: PID tuning
Controller Tuning: A Motivational Example
Outline Control structure design (plantwide control)
Model SIMC-tunings Tight control Smooth control Level control
Decentralized control
Should we forget the Smith Predictor?
Example regulatory control: Distillation
Example regulatory control: Distillation
Example regulatory control: Distillation
PID Controller Design and
Outline Control structure design (plantwide control)
Dynamic Behavior Chapter 5
Presentation transcript:

PID Tuning and Controllability Sigurd Skogestad NTNU, Trondheim, Norway

Tuning of PID controllers SIMC tuning rules (“Skogestad IMC”) (*) Main message: Can usually do much better by taking a systematic approach Key: Look at initial part of step response Initial slope: k’ = k/  1 One tuning rule! Easily memorized Reference: S. Skogestad, “Simple analytic rules for model reduction and PID controller design”, J.Proc.Control, Vol. 13, , 2003 (*) “Probably the best simple PID tuning rules in the world”  c ¸ 0: desired closed-loop response time (tuning parameter) For robustness select:  c ¸ 

Need a model for tuning Model: Dynamic effect of change in input u (MV) on output y (CV) First-order + delay model for PI-control Second-order model for PID-control

Step response experiment Make step change in one u (MV) at a time Record the output (s) y (CV)

First-order plus delay process Step response experiment k’=k/  1 STEP IN INPUT u (MV) RESULTING OUTPUT y (CV)  Delay - Time where output does not change  1 : Time constant - Additional time to reach 63% of final change k : steady-state gain =  y(1)/  u k’ : slope after response “takes off” = k/  1

Model simplifications For control: Dynamics at “control time scale” (  c ) are important Integrating process (  1 = 1 ) Time constant  1 is not important if it is much larger than the desired response time  c. More precisely, may use  1 = 1 for  1 > 5  c Delay-free process (  =0) Delay  is not important if it is much smaller than the desired response time  c. More precisely, may use  ¼ 0 for  <  c /5  ¼ 1 (may be neglected for  c > 5)  1 ¼ 200 (may be neglected for  c < 40) time  c = desired response time

“Integrating process” (  c < 5  1 ):  Need only two parameters: k’ and   From step response: Response on stage 70 to step in L 7.5 min  Example. Step change in u:  u = 0.1 Initial value for y: y(0) = 2.19 Observed delay:  = 2.5 min At T=10 min: y(T)=2.62 Initial slope: y(t) t [min]

First-order with delay process (  c > 5  1 ) Need 3 parameters:  Delay   2 of the following: k, k’,  1 (Note relationship k’ = k/  1) Example: First-order model:  = 0 k= ( )/(-0.5) = (steady-state gain)  1 = 16 min (63% of change)  Gives k’ = 0.068/16 =  (could alternatively find k’ by observing the initial response)  BOTTOM V: -0.5 xBxB 16 min 63%

Step response experiment: How long do we need to wait? FAST TUNING DESIRED (“tight control”,  c =  ):  NORMALLY NO NEED TO RUN THE STEP EXPERIMENT FOR LONGER THAN ABOUT 10 TIMES THE EFFECTIVE DELAY (  )  EXCEPTION: LET IT RUN A LITTLE LONGER IF YOU SEE THAT IT IS ALMOST SETTLING (TO GET  1 RIGHT)  SIMC RULE:   = min (  , 4(  c +  )) with  c =  for tight control SLOW TUNING DESIRED (“smooth control”,  c >  ):  HERE YOU MAY WANT TO WAIT LONGER TO GET  1 RIGHT BECAUSE IT MAY AFFECT THE INTEGRAL TIME  BUT THEN ON THE OTHER HAND, GETTING THE RIGHT INTEGRAL TIME IS NOT ESSENTIAL FOR SLOW TUNING  SO ALSO HERE YOU MAY STOP AT 10 TIMES THE EFFECTIVE DELAY (  )

Model reduction of more complicated model Start with complicated stable model on the form Want to get a simplified model on the form Most important parameter is usually the “effective” delay 

half rule

Approximation of zeros

Derivation of SIMC-PID tuning rules PI-controller (based on first-order model) For second-order model add D-action. For our purposes it becomes simplest with the “series” (cascade) PID-form:

Basis: Direct synthesis (IMC) Closed-loop response to setpoint change Idea: Specify desired response (y/y s )=T and from this get the controller. Algebra:

IMC Tuning = Direct Synthesis

Integral time Found: Integral time = dominant time constant (  I =  1 ) Works well for setpoint changes Needs to be modified (reduced) for integrating disturbances Example. “Almost-integrating process” with disturbance at input: G(s) = e -s /(30s+1) Original integral time  I = 30 gives poor disturbance response Try reducing it! gc d y u

Integral Time  I =  1 Reduce  I to this value:  I = 4 (  c +  ) = 8 

SIMC-PID Tuning Rules One tuning parameter:  c

Some special cases One tuning parameter:  c

Note: Derivative action is commonly used for temperature control loops. Select  D equal to time constant of temperature sensor

Selection of tuning parameter  c Two cases 1. Tight control: Want “fastest possible control” subject to having good robustness 2. Smooth control: Want “slowest possible control” subject to having acceptable disturbance rejection

TIGHT CONTROL

Example. Integrating process with delay=1. G(s) = e -s /s. Model: k’=1,  =1,  1 =1 SIMC-tunings with  c with =  =1: IMC has  I =1 Ziegler-Nichols is usually a bit aggressive Setpoint change at t=0Input disturbance at t=20 TIGHT CONTROL

1.Approximate as first-order model with k=1,  1 = 1+0.1=1.1,  = = Get SIMC PI-tunings (  c =  ): K c = 1 ¢ 1.1/(2¢ 0.148) = 3.71,  I =min(1.1,8¢ 0.148) = Approximate as second-order model with k=1,  1 = 1,  2 = =0.22,  = = Get SIMC PID-tunings (  c =  ): K c = 1 ¢ 1/(2¢ 0.028) = 17.9,  I =min(1,8¢ 0.028) = 0.224,  D =0.22 TIGHT CONTROL

Tuning for smooth control Will derive K c,min. From this we can get  c,max using SIMC tuning rule SMOOTH CONTROL Tuning parameter:  c = desired closed-loop response time Selecting  c =  (“tight control”) is reasonable for cases with a relatively large effective delay  Other cases: Select  c >  for  slower control  smoother input usage less disturbing effect on rest of the plant  less sensitivity to measurement noise  better robustness Question: Given that we require some disturbance rejection.  What is the largest possible value for  c ?  Or equivalently: The smallest possible value for K c ?

Closed-loop disturbance rejection d0d0 y max -d 0 -y max SMOOTH CONTROL =|u 0 |

KcKc u Minimum controller gain for PI-and PID-control: K c ¸ K c,min = |u 0 |/|y max | |u 0 |: Input magnitude required for disturbance rejection |y max |: Allowed output deviation SMOOTH CONTROL

Minimum controller gain: Industrial practice: Variables (instrument ranges) often scaled such that Minimum controller gain is then Minimum gain for smooth control ) Common default factory setting K c =1 is reasonable ! SMOOTH CONTROL (span)

Exampl e Does not quite reach 1 because d is step disturbance (not not sinusoid) Response to disturbance = 1 at input  c is much larger than  =0.25 SMOOTH CONTROL

Application of smooth control Averaging level control V q LC Reason for having tank is to smoothen disturbances in concentration and flow. Tight level control is not desired: gives no “smoothening” of flow disturbances. Let |u 0 | = |  q 0 | – expected flow change [m3/s] (input disturbance) |y max | = |  V max | - largest allowed variation in level [m3] Minimum controller gain for acceptable disturbance rejection: K c ¸ K c,min = |u 0 |/|y max | From the material balance (dV/dt = q – q out ), the model is g(s)=k’/s with k’=1. Select K c =K c,min. SIMC-Integral time for integrating process:  I = 4 / (k’ K c ) = 4 |  V max | / |  q 0 | = 4 ¢ residence time provided tank is nominally half full and  q 0 is equal to the nominal flow. SMOOTH CONTROLLEVEL CONTROL If you insist on integral action then this value avoids cycling

Rule: K c ¸ |u 0 |/|y max | =1 (in scaled variables) Exception to rule: Can have K c < 1 if disturbances are handled by the integral action.  Disturbances must occur at a frequency lower than 1/  I Applies to: Process with short time constant (  1 is small) and no delay (  ¼ 0).  Then  I =  1 is small so integral action is “large”  For example, flow control SMOOTH CONTROL K c : Assume variables are scaled with respect to their span

Summary: Tuning of easy loops Easy loops: Small effective delay (  ¼ 0), so closed- loop response time  c (>>  ) is selected for “smooth control” Flow control: K c =0.5,  I =  1 = time constant valve (typically, 10s to 30s) Level control: K c =2 (and no integral action) Other easy loops (e.g. pressure control): K c = 2,  I = min(4  c,  1 )  Note: Often want a tight pressure control loop (so may have K c =10 or larger) SMOOTH CONTROL K c : Assume variables are scaled with respect to their span

More on level control Level control often causes problems Typical story:  Level loop starts oscillating  Operator detunes by decreasing controller gain  Level loop oscillates even more  ??? Explanation: Level is by itself unstable and requires control. LEVEL CONTROL

Integrating process: Level control LEVEL CONTROL

How avoid oscillating levels? LEVEL CONTROL

Case study oscillating level We were called upon to solve a problem with oscillations in a distillation column Closer analysis: Problem was oscillating reboiler level in upstream column Use of Sigurd’s rule solved the problem LEVEL CONTROL

Conclusion PID tuning

Cascade control

Tuning of cascade controllers

Cascade control serial process d=6 G1G1 u2u2 y1y1 K1K1 ysys G2G2 K2K2 y2y2 y 2s

Cascade control serial process d=6 Without cascade With cascade G1G1 u y1y1 K1K1 ysys G2G2 K2K2 y2y2 y 2s

Tuning cascade control: serial process Inner fast (secondary) loop:  P or PI-control  Local disturbance rejection  Much smaller effective delay (0.2 s) Outer slower primary loop:  Reduced effective delay (2 s instead of 6 s) Time scale separation  Inner loop can be modelled as gain=1 + 2*effective delay (0.4s) Very effective for control of large-scale systems

Controllability (Input-Output) “Controllability” is the ability to achieve acceptable control performance (with any controller) “Controllability” is a property of the process itself Analyze controllability by looking at model G(s) What limits controllability? CONTROLLABILITY

Recall SIMC tuning rules 1. Tight control: Select  c =  corresponding to 2. Smooth control. Select K c ¸ Must require K c,max > K c.min for controllability ) Controllability initial effect of “input” disturbance max. output deviation y reaches k’ ¢ |d 0 |¢ t after time t y reaches y max after t= |y max |/ k’ ¢ |d 0 | CONTROLLABILITY

Controllability CONTROLLABILITY

Example: Distillation column CONTROLLABILITY

Example: Distillation column CONTROLLABILITY

Distillation example: Frequency domain analysis CONTROLLABILITY

Other factors limiting controllability CONTROLLABILITY Input limitations (saturation or “slow valve”): Can sometimes limit achievable speed of response Unstable process (including levels): Need feedback control for stabilization ) Makes sure inputs do not saturate in stabilizing loops