Chapter 8. The PID Controller Copyright © Thomas Marlin 2013

Slides:



Advertisements
Similar presentations
PID Controllers and PID tuning
Advertisements

Copyright © Thomas Marlin 2013
Chapter 21. Multiloop Control: Performance Analysis
Chapter 22. Variable Structure and Constraint Control
Dynamic Behavior of Closed-Loop Control Systems
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 6. Empirical Model Identification Copyright © Thomas Marlin 2013.
Ratio Control Chapter 15.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 19. Single-Loop IMC Copyright © Thomas Marlin 2013 The copyright.
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
CHE 185 – PROCESS CONTROL AND DYNAMICS
Dynamic Behavior and Stability of Closed-Loop Control Systems
Controller Tuning: A Motivational Example
Chapter 11. Digital Control Copyright © Thomas Marlin 2013
Introduction to Process Control
Chemical Engineering 3P04 Process Control Tutorial # 2 Learning goals 1.The feedback cause-effect principle 2. Key element in the loop: The control valve.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 12. Practical Issues Copyright © Thomas Marlin 2013 The copyright.
Chapter 7 PID Control.
CSE 425: Industrial Process Control 1. About the course Lect.TuLabTotal Semester work 80Final 125Total Grading Scheme Course webpage:
Cascade, Ratio, and Feedforward Control
Proportional/Integral/Derivative Control
Lecture 5: PID Control.
Hairul Nazirah bt Abdul Halim
Chapter 23. Centralized Model Predictive Control
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 1. Introduction to Process Control Copyright © Thomas Marlin 2013.
Process Operability Class Materials Copyright © Thomas Marlin 2013
Chapter 2. Control Objectives and Benefits
RELATIVE GAIN MEASURE OF INTERACTION We have seen that interaction is important. It affects whether feedback control is possible, and if possible, its.
Chapter 20. Multiloop Control: Effects of Interaction
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 18. Level Control Copyright © Thomas Marlin 2013 The copyright holder.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 20. Multiloop Control – Relative Gain Analysis Copyright © Thomas.
Cascade and Ratio Control
PSE and PROCESS CONTROL
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 7. The Feedback Loop Copyright © Thomas Marlin 2013 The copyright.
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
Chapter 4. Modelling and Analysis for Process Control
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 5. Typical Process Systems Copyright © Thomas Marlin 2013 The copyright.
EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 10. Stability and Tuning Copyright © Thomas Marlin 2013 The copyright.
ERT 210/4 Process Control Hairul Nazirah bt Abdul Halim Office: CHAPTER 8 Feedback.
Chapter 8 Feedback Controllers 1. On-off Controllers Simple Cheap Used In residential heating and domestic refrigerators Limited use in process control.
Frequency Response Analysis and Stability
Features of PID Controllers
Chapter - Continuous Control
Feedback Controllers Chapter 8
Lecture 2: Mathematical Modeling Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit.
CSE 425: Industrial Process Control 1. About the course Lect.TuTotal Semester work 80Final 125Total Grading Scheme Course webpage:
Chemical Engineering 3P04 Process Control Tutorial # 7 Learning goals 1.Experience with a single-loop controller 2.Answering some questions from PC-Education.
MISS. RAHIMAH BINTI OTHMAN
1 PID Feedback Controllers PID 反馈控制器 Dai Lian-kui Shen Guo-jiang Institute of Industrial Control, Zhejiang University.
Multi-Variable Control
ERT 321 – Process Control & Dynamics Feedforward & Ratio Control Ms Anis Atikah Ahmad
Workshop for Flipped Class Performance of Feedback Control Systems
Workshop for Flipped Class
ERT 321 – Process Control & Dynamics Feedforward & Ratio Control
Workshop for Flipped Class
Chapter 2. Control Objectives and Benefits
Process Control & Instrumentation MAPUA INSTITUTE OF TECHNOLOGY
Workshop for Flipped Class
Chapter 12. Controlling the Process
Workshop for Flipped Class
CHAPTER VI BLOCK DIAGRAMS AND LINEARIZATION
Dynamic Behavior and Stability of Closed-Loop Control Systems
Chemical Engineering 3P04
Process Control Engineering
Features of PID Controllers
Introduction to Process Control
Process Operability Class Materials Copyright © Thomas Marlin 2013
Feedback Controllers Chapter 8
PID Controller Design and
Presentation transcript:

Chapter 8. The PID Controller Copyright © Thomas Marlin 2013 Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 8. The PID Controller Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit educational institutions

CHAPTER 8: THE PID CONTROLLER When I complete this chapter, I want to be able to do the following. Understand the strengths and weaknesses of the three modes of the PID Determine the model of a feedback system using block diagram algebra Establish general properties of PID feedback from the closed-loop model

CHAPTER 8: THE PID CONTROLLER Outline of the lesson. General Features and history of PID Model of the Process and controller - the Block Diagram The Three Modes with features - Proportional - Integral - Derivative Typical dynamic behavior

CHAPTER 8: THE PID CONTROLLER PROPERTIES THAT WE SEEK IN A CONTROLLER Good Performance - feedback measures from Chapter 7 Wide applicability - adjustable parameters Timely calculations - avoid convergence loops Switch to/from manual - bumplessly Extensible - enhanced easily TC v1 v2

CHAPTER 8: THE PID CONTROLLER SOME BACKGROUND IN THE CONTROLLER Developed in the 1930-40’s, remains workhorse of practice Not “optimal”, based on good properties of each mode Programmed in digital control equipment ONE controlled variable (CV) and ONE manipulated variable (MV). Many PID’s used in a plant. v1 TC v2

CHAPTER 8: THE PID CONTROLLER Proportional MV = controller output E SP = Set point Integral + + - CV = Controlled variable Derivative Note: Error = E  SP - CV sensor Final element Process variable PROCESS Three “modes”: Three ways of using the time-varying behavior of the measured variable

CHAPTER 8: THE PID CONTROLLER Closed-Loop Model: Before we learn about each calculation, we need to develop a general dynamic model for a closed-loop system - that is the process and the controller working as an integrated system. This is an example; how can we generalize? What if we measured pressure, or flow, or …? What if the process were different? What if the valve were different? TC v1 v2

CHAPTER 8: THE PID CONTROLLER GENERAL CLOSED-LOOP MODEL BASED ON BLOCK DIAGRAM Gd(s) D(s) SP(s) E(s) CV(s) MV(s) + + GC(s) Gv(s) GP(s) - + CVm(s) GS(s) Transfer functions GC(s) = controller Gv(s) = valve GP(s) = feedback process GS(s) = sensor Gd(s) = disturbance process Variables CV(s) = controlled variable CVm(s) = measured value of CV(s) D(s) = disturbance E(s) = error MV(s) = manipulated variable SP(s) = set point

CHAPTER 8: THE PID CONTROLLER Gd(s) GP(s) Gv(s) GC(s) GS(s) D(s) CV(s) CVm(s) SP(s) E(s) MV(s) + - Let’s audit our understanding Where are the models for the transmission, and signal conversion? What is the difference between CV(s) and CVm(s)? What is the difference between GP(s) and Gd(s)? How do we measure the variable whose line is indicated by the red circle? Which variables are determined by a person, which by computer?

CHAPTER 8: THE PID CONTROLLER Gd(s) GP(s) Gv(s) GC(s) GS(s) D(s) CV(s) CVm(s) SP(s) E(s) MV(s) + - Set point response Disturbance Response Which elements in the control system affect system stability? Which elements affect dynamic response?

“correction proportional to error.” How does this differ from PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Proportional Mode “correction proportional to error.” How does this differ from the process gain, Kp? KC = controller gain

“correction proportional to error.” How does this differ from PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Proportional Mode “correction proportional to error.” Kp depends upon the process (e.g., reactor volume, flows, temperatures, etc.) KC = controller gain KC is a number we select; it is used in the computer each time the controller equation is calculated How does this differ from the process gain, Kp?

CHAPTER 8: THE PID CONTROLLER, The Proportional Mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Proportional Mode

CHAPTER 8: THE PID CONTROLLER, The Proportional Mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Proportional Mode Physical Device: Location of the fulcrum determines the gate/level Float measures the liquid level Raising and lowering the gate affects the flow in

CHAPTER 8: THE PID CONTROLLER, The Proportional Mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Proportional Mode Key feature of closed-loop performance with P-only Final value after disturbance: We do not achieve zero offset; don’t return to set point! How can we get very close by changing a controller parameter? Any possible problems with suggestion?

CHAPTER 8: THE PID CONTROLLER, The Proportional Mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Proportional Mode Disturbance in concentration of A in the solvent CV = concentration of A in effluent MV = valve % open of pure A stream solvent pure A AC FS FA CV From person SP MV

THE PID CONTROLLER,The Proportional Mode No control THE PID CONTROLLER,The Proportional Mode 20 40 60 80 100 120 140 160 180 200 0.2 0.4 0.6 0.8 Time Controlled Variable -1 -0.5 0.5 1 Manipulated Variable 20 40 60 80 100 120 140 160 180 200 0.2 0.4 0.6 0.8 Time Controlled Variable -6 -4 -2 Manipulated Variable No control Unstable, very bad! Offset (bad) Less Offset, better (but not good) Note change of scale! Kc = 0 Kc =10 valve 20 40 60 80 100 120 140 160 180 200 -0.1 0.1 0.2 0.3 Time Controlled Variable -60 -40 -20 Manipulated Variable 20 40 60 80 100 120 140 160 180 200 0.05 0.1 0.15 0.2 0.25 Time Controlled Variable -25 -20 -15 -10 -5 Manipulated Variable Kc = 100 valve Kc = 220

CHAPTER 8: THE PID CONTROLLER, The Integral Mode “The persistent mode” PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Integral Mode “The persistent mode” TI = controller integral time (in denominator)

Behavior when E(t) = constant PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Integral Mode Slope = KC E/TI MV(t) time Behavior when E(t) = constant

Key feature of closed-loop performance with I mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Integral Mode Key feature of closed-loop performance with I mode Final value after disturbance: We achieve zero offset for a step disturbance; return to set point! Are there other scenarios where we do not?

TD = controller derivative time PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Derivative Mode “The predictive mode” TD = controller derivative time

CHAPTER 8: THE PID CONTROLLER, The Derivative Mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Derivative Mode Key features using closed-loop dynamic model Final value after disturbance: We do not achieve zero offset; do not return to set point!

CHAPTER 8: THE PID CONTROLLER, The Derivative Mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Derivative Mode What would be the behavior of the manipulated variable when we enter a step change to the set point? How can we modify the algorithm to improve the performance?

X CHAPTER 8: THE PID CONTROLLER, The Derivative Mode PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER, The Derivative Mode X We do not want to take the derivative of the set point; therefore, we use only the CV when calculating the derivative mode.

Let’s combine the modes to formulate the PID Controller! PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER Let’s combine the modes to formulate the PID Controller! Please explain every term and symbol.

Let’s combine the modes to formulate the PID Controller! PROCESS Proportional Integral Derivative + - CV SP E MV Note: Error = E  SP - CV CHAPTER 8: THE PID CONTROLLER Let’s combine the modes to formulate the PID Controller! Error from set point proportional integral derivative Constant (bias) for bumpless transfer

CHAPTER 8: THE PID CONTROLLER Let’s apply the controller to the three-tank mixer (no rxn). Notes: 1) tanks are well mixed 2) liquid volumes are constant 3) sensor and valve dynamics are negligible 4) FA = Kv (v), with v = % opening 5) FS >> FA CV = concentration of A in effluent MV = valve % open of pure A stream solvent pure A AC FS FA CV From person SP MV

CHAPTER 8: THE PID CONTROLLER 20 40 60 80 100 120 0.5 1 1.5 S-LOOP plots deviation variables (IAE = 12.2869) Time Controlled Variable 10 30 Manipulated Variable Kc = 30, TI = 11, Td = 0.8 Is this good performance? How do we determine: Kc, TI and Td?

CHAPTER 8: THE PID CONTROLLER 20 40 60 80 100 120 0.5 1 1.5 2 S-LOOP plots deviation variables (IAE = 20.5246) Time Controlled Variable -50 50 150 Manipulated Variable Is this good performance? How do we determine: Kc, TI and Td? Kc = 120, TI = 11, Td = 0.8

CHAPTER 8: THE PID CONTROLLER Lookahead: We can apply many PID controllers when we have many variables to be controlled! Feed Vapor product Liquid Process fluid Steam F1 F2 F3 T1 T2 T3 T5 T4 T6 P1 L1 A1 L. Key C C C

CHAPTER 8: THE PID CONTROLLER HOW DO WE EVALUATE THE DYNAMIC RESPONSE OF THE CLOSED-LOOP SYSTEM? In a few cases, we can do this analytically (See Example 8.5) In most cases, we must solve the equations numerically. At each time step, we integrate - The differential equations for the process - The differential equation for the controller - Any associated algebraic equations Many numerical methods are available “S_LOOP” does this from menu-driven input

CHAPTER 8: THE PID, WORKSHOP 1 Model formulation: Develop the equations that describe the dynamic behavior of the three-tank mixer and PID controller. Numerical solution: Develop the equations that are solved at each time step for the simulated control system (process and controller). solvent pure A AC FS FA

CHAPTER 8: THE PID, WORKSHOP 2 The PID controller is applied to the three-tank mixer. Prove that the PID controller with provide zero steady-state offset when the set point is changed in a step, SP. The three-tank process is stable. If we add a controller, could the closed-loop system become unstable? solvent pure A AC FS FA

CHAPTER 8: THE PID, WORKSHOP 3 Determine the engineering units for the controller tuning parameters in the system below. Explain how the initialization constant (I) is calculated. This is sometimes called the “bias”. solvent pure A AC FS FA CV From person SP MV

CHAPTER 8: THE PID, WORKSHOP 4 The PID controller must be displayed on a computer console for the plant operator. Design a console display and define values that The operator needs to see to monitor the plant The operator can change to “run” the plant The engineer can change solvent pure A AC FS FA

CHAPTER 8: THE PID CONTROLLER When I complete this chapter, I want to be able to do the following. Understand the strengths and weaknesses of the three modes of the PID Determine the model of a feedback system using block diagram algebra Establish general properties of PID feedback from the closed-loop model Lot’s of improvement, but we need some more study! Read the textbook Review the notes, especially learning goals and workshop Try out the self-study suggestions Naturally, we’ll have an assignment!

CHAPTER 8: LEARNING RESOURCES SITE PC-EDUCATION WEB - Instrumentation Notes - Interactive Learning Module (Chapter 8) - Tutorials (Chapter 8)

CHAPTER 8: SUGGESTIONS FOR SELF-STUDY 1. In your own words, explain each of the PID modes. Give at least one advantage and disadvantage for each. 2. Repeat the simulations for the three-tank mixer with PID control that are reported in these notes. You may use the MATLAB program “S_LOOP”. 3. Select one of the processes modelled in Chapters 3 or 4. Add a PID controller to the numerical solution of the dynamic response in the MATLAB m-file. 4. Derive the transfer function for the PID controller.