The Proportional-Integral-Derivative Controller

Slides:



Advertisements
Similar presentations
ERT 210 Process Control & dynamics
Advertisements

PID Controllers and PID tuning
Discrete Controller Design
Artificial Intelligence 13. Multi-Layer ANNs Course V231 Department of Computing Imperial College © Simon Colton.
Objectives Control Terminology Types of controllers –Differences Controls in the real world –Problems –Response time vs. stability.
Chapter 4: Basic Properties of Feedback
LECTURE#10 PID CONTROLLER
CHE 185 – PROCESS CONTROL AND DYNAMICS
CHE 185 – PROCESS CONTROL AND DYNAMICS
EE 2B1 – Analogue Electronics Dr. T. Collins
Feedback Controllers Chapter 8
Roberto - Balancing Robot RIT Computer Engineering Senior Design Project.
Process Control Instrumentation II
Chemical Process Controls: PID control, part II Tuning
Feedback Controllers Chapter 8.
Design of Control Systems Cascade Root Locus Design This is the first lecture devoted to the control system design. In the previous lectures we laid the.
LECTURE#11 PID CONTROL AUTOMATION & ROBOTICS
Chapter 8. The PID Controller Copyright © Thomas Marlin 2013
So are how the computer determines the size of the intercept and the slope respectively in an OLS regression The OLS equations give a nice, clear intuitive.
Chapter 7 PID Control.
Controlling Systems Using IT (Level 3) Lecture – 1030 Thursday 23/04/2015 Boston College (Rochford Campus)
Proportional/Integral/Derivative Control
Lecture 5: PID Control.
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
CHAPTER 11 Op-Amp Applications. Objectives Describe and Analyze: Audio mixers Integrators Differentiators Peak detectors Comparators Other applications.
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
Cascade and Ratio Control
Loop Application: Numerical Methods, Part 1 The power of Matlab Mathematics + Coding.
Proportional control Consider forward path gain A Feedback and Control If the size of the loop gain is large, that is if |A  >> 1, then or.
AS Wireless Automation Implementing PIDPLUS for Halvari system.
Feedback Controllers Chapter 7.
Differentials Intro The device on the first slide is called a micrometer….it is used for making precision measurements of the size of various objects…..a.
Block Diagram Manipulation
Objectives Discuss final project deliverables Control Terminology
Feedback Control system
Control Theory in Industry, Robotics and Infrastructure
Control Theory Control System Objectives  Establish a final condition  Provide safe operation  Eliminate the human element  Assure economical operation.
University of Virginia PID Controllers Jack Stankovic University of Virginia Spring 2015.
PID. The proportional term produces an output value that is proportional to the current error value. Kp, called the proportional gain constant.
Automatic Control System V. Compensation. If the satisfactory design of the process dynamics can’t be obtained by a gain adjustment alone, then some methods.
PID CONTROLLERS By Harshal Inamdar.
CSCI1600: Embedded and Real Time Software Lecture 12: Modeling V: Control Systems and Feedback Steven Reiss, Fall 2015.
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.
Lecture 25: Implementation Complicating factors Control design without a model Implementation of control algorithms ME 431, Lecture 25.
Miss Hairul Nazirah bt Abdul Halim
Objectives Finish DOAS Control Terminology Types of controllers
Features of PID Controllers
Feedback Controllers Chapter 8
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.
BIRLA VISHWAKARMA MAHAVIDHYALAYA ELECTRONICS & TELECOMUNICATION DEPARTMENT o – ANKUR BUSA o – KHUSHBOO DESAI UNDER THE GUIDENCE.
Lecture Notes / PPT UNIT III
1 PID Feedback Controllers PID 反馈控制器 Dai Lian-kui Shen Guo-jiang Institute of Industrial Control, Zhejiang University.
ET 438a Automatic Control Systems Technology Lesson 17: Combined Mode Control 1 lesson17et438a.pptx.
Announcements Next class is the course evaluation
Lesson 16: Basic Control Modes
EEN-E1040 Measurement and Control of Energy Systems Control I: Control, processes, PID controllers and PID tuning Nov 3rd 2016 If not marked otherwise,
Optical PLL for homodyne detection
Process Control & Instrumentation MAPUA INSTITUTE OF TECHNOLOGY
Controllers and Positioners
Presentation at NI Day April 2010 Lillestrøm, Norway
PID Controllers Jordan smallwood.
CSCI1600: Embedded and Real Time Software
University of Virginia
Electronic Control Systems Week 7 – PID Control
Features of PID Controllers
Feedback Controllers Chapter 8
PID Line Follower.
Presentation transcript:

The Proportional-Integral-Derivative Controller

Objectives Learners will be able to Describe the different components of the PID controller (Mathematical activities) Explain the function of each component (research activity) Explain the function of the PID (Group discussion) Give examples of application systems of PID (targeted questioning)

PID diagram Goal is to have VSET = VOUT Note that VERROR = VSET – VSENSOR Output Process uses VERROR from the PID controller to adjust Vout such that it is ~VSET The PID controller looks at the SetPoint (SP) and compares it with the actual value of the Process Variable (PV) i.e. what we want (desired output) and what we have got (actual output).

Application

How the PID Black Box Operates The PV is subtracted from the SP to create the Error. The error is simply multiplied by either the P, the I, the D or the combination of two or all three as outlined below depending on which ones are turned on. Then the resulting 𝑒𝑟𝑟𝑜𝑟 ×𝑐𝑜𝑛𝑡𝑟𝑜𝑙 𝑎𝑐𝑡𝑖𝑜𝑛𝑠 are added together and sent to the controller output. P – Sometimes used PI - Most often used PID – Sometimes used PD – rare as hen’s teeth but can be useful for controlling servomotors.

Derivatives It means the rate of change It’s mathematical formula is: Change in y/change in x = slope

Derivatives… Consider the function f(x) = x2 We know f(x) = x2, and can therefore calculate f(x+Δx): Start with: f(x+Δx) = (x+Δx)2 Expanding the RHS: (x + Δx)2 = x2 + 2x Δx + (Δx)2 Therefore f(x+Δx) = x2 + 2x Δx + (Δx)2

Derivatives… Δ𝑦/Δ𝑥 = (f(x+Δx) − f(x)) / Δx = (x2 + 2x Δx + (Δx)2 − x2) / Δx Simplify (x2 and −x2 cancel): 2x Δx + (Δx)2 / Δx Simplify more (divide through by Δx):  = 2x + Δx And then as Δx tends towards 0, we get := 2x Result: the derivative of x2 is 2x, written mathematically as: 𝑑 𝑥 2 𝑑𝑥 =2𝑥

Math activity: 20 mins Work out the derivative of: 𝑓 𝑥 =4𝑥(𝑥−1)

Integral The integral of a signal is the sum of all the instantaneous values that the signal has been, from whenever you started counting until you stop counting.

Integrals… The green line is your temperature. The red circles are where your control system has sampled the temperature The blue area is the integral of the temperature signal. It is the sum of the 5 temperature values over the time period that you are interested in. In numerical terms it is the sum of the areas of each of the blue rectangles: (13 x 1)+(14x1)+(13x1)+(12x1)+(11x1) = 63 °C s The curious units (degrees Celsius x seconds) are because we have to multiply a temperature by time – but the units aren’t important. So the integral turns out to be the area under the curve. Note that in real world systems, we actually get an approximation to the area under the curve, which from the diagram’s perspective gets better, the higher the sample rate.

Integrals… The derivative of x2+4 is 2x, and the derivative of x2+99 is also 2x, and so on, because the derivative of a constant is zero. So when we reverse the operation (to find the integral) we only know 2x, but there could have been a constant of any value. So we wrap up the idea by just writing + C at the end.

Proportional In P-mode, the controller simply multiplies the Error by the Proportional Gain (Kp) to get the controller output. Kp is the setting that the user tunes to get the desired performance from a “P only” controller.

PID controller Three-term control: Proportional term (P) depends proportionally on the present error Integral term (I) depending on the accumulation of past errors Derivative term (D) is a prediction of future errors, based on current rate of change

PID Controller Given the error e(t), the control command, Q(t), used to adjust the process is a weighted sum of P, I, and D: where KP, KI, KD are positive constants referred to as proportional gain, integral gain and derivative gain respectively

Variations: Proportional control In proportional control, the command Q(t) used to adjust the process is: where Qd(t) is a desired control command, or bias/reset and KP is a positive constant

Variations: Integral control (PI) In integral (PI) control, the command Q(t) used to adjust the process is: where KP and KI are positive constants

Variations: Differential control (PD) In differential (PD) control, the command Q(t) used to adjust the process is: where KP and KD are positive constants

P + I It will not work as expected except when the user knows exactly how much Integral action to apply

Now your turn: 20 mins Explain the following concept The two step mode Proportional control mode Integral control mode The derivative control mode

Answers The two-step mode: The controller is just a switch which is activated by the error signal and supplies just an on-off correcting signal. Example of such mode is the bimetallic thermostat. The proportional mode (P): This produces a control action that is proportional to the error. The correcting signal thus becomes bigger the bigger the error. Therefore, the error is reduced the amount of correction is reduced and the correcting process slows down. A summing operational amplifier with an inverter can be used as a proportional controller. The derivative mode: This produces a control action that is proportional to the rate at which the error is changing. When there is a sudden change in the error signal the controller gives a large correcting signal. When there is a gradual change only a small correcting signal is produced. An operational amplifier connected as a differentiator circuit followed by another operational amplifier connected as an inverter make an electronic derivative controller circuit.

Answers The integral mode (I): This produces a control action that is proportional to the integral of the error with time. Therefore, a constant error signal will produce an increasing correcting signal. The correction continues to increase as long as the error persists. Combination of modes: Proportional plus derivative modes (PD), proportional plus integral modes (PI), proportional plus integral plus derivative modes (PID). The term three-term controller is used for PID control. The controller may achieve these modes by means of pneumatic circuits, analog electronics involving operational amplifiers or by the programming of a microprocessor or computer.

Adjusting the Integral Action The way to adjust how much Integral Action you have is by adjusting a term called “minutes per repeat”. It is a measure of how long it will take for the Integral Action to match the Proportional Action. In other words, if the output of the proportional box on the diagram above is 20%, the repeat time is the time it will take for the output of the Integral box to get to 20% too. And the important point to note is that the “bigger” integral action, the quicker it will get this 20% value. That is, it will take fewer minutes to get there, so the “minutes per repeat” value will be smaller. In other words the smaller the “minutes per repeat” is the bigger the integral action. To make things a bit more intuitive, a lot of controllers use an alternative unit of “repeats per minute” which is obviously the inverse of “minutes per repeat”. The nice thing about “repeats per minute” is that the bigger it is - the bigger the resulting Integral action is.

Predicting the future with the derivatives Engineers are always looking to tweak performance by adding the Derivative Action. The Derivative action can allow the engineer to have bigger P and I gains and still keep the loop stable, producing a faster response and better loop performance. Derivative action improves the controller action because it predicts what is yet to happen by projecting the current rate of change into the future. This means that it is not using the current measured value, but a future measured value. The units used for derivative action describe how far into the future you want to look. i.e. If derivative action is 20 seconds, the derivative term will project the current rate of change 20 seconds into the future. The big problem with D control is that if you have noise on your signal (which looks like a bunch of spikes with steep sides) this confuses the hell out of the algorithm. It looks at the slope of the noise-spike and thinks: As it thinks that the process is changing quickly, it will accelerate the D Action And the control output jumps all over the place, messing up the control. The solution is to try and filter the noise out, but the rule of thumb is unless PI control is really slow, D should not be activated.

Conclusion/summary Group discussion