SlideShare a Scribd company logo
1 of 20
@farhan. M Lecture: 14 PID Controller 1
Hello Class
Lecture 14
Topic: PID Controller
Prepared by
Engr. Dr. Muhammad Farhan
Email: mfarhan@gcuf.edu.pk
Control Systems
Course Lecture Series
for
Undergraduate BSc Electrical, Electronics
& Computer Systems Engineering
EngiTech
Learn
Plex
Lecture: 14 PID Controller
• 80% of industrial control applications are installed by
feedback control loop and devices.
• Unlike simpler control algorithms, PID controller can adjust
process inputs based on the history and rate of change of the
error signal, which gives more accurate and stable control.
• It can be shown mathematically that a PID loop will produce
accurate stable control in cases where other control
algorithms would either have a steady-state error or would
cause the process to oscillate.
2
Hello Class
@farhan. M Lecture: 14 PID Controller 2
PID Controller Theme---Background
Lecture: 14 PID Controller
• A (PID controller) is a generic controller widely used in industrial control
systems.
• It can be used to regulate flow, temperature, pressure, level, and many other
industrial process variables.
• It describes the mathematic calculations that are applied to calculate the
error between the current result and the desired set-point.
• Proportional term responds instantaneously to the current error (providing
(providing instaneous response).
• Integral term (past errors) responds to the accumulation of errors in the
in the form of average (providing a slow response that drives the steady-
state error towards Zero).
• Derivative term (future errors) responds to the rate at which the error is
error is changing (providing some anticipatory response).
3
Hello Class
@farhan. M Lecture: 14 PID Controller 3
PID controller
Lecture: 14 PID Controller
• With manual, all regulation tasks
will have to be done manually.
• For example: To keep constant
temperature of water discharged,
an operator will have to watch a
temperature gauge and adjust a
fuel gas valve accordingly
• If the water temperature
becomes too high or too cold for
some reason, the operator has to
close the gas valve.
4
Hello Class
@farhan. M Lecture: 14 PID Controller 4
Life before PID controller –Manual Control
Lecture: 14 PID Controller
• Through PID controller Set
Point feature, operator can set
the desired temperature ranges.
• The Controller’s Output (CO)
sets the position of the control
valve.
• When everything is functional,
PID controller compares the PV
to its SP and calculates the
difference b/w the two signals
as an Error (E). 5
Hello Class
@farhan. M Lecture: 14 PID Controller 5
Life with PID Controller
Lecture: 14 PID Controller
• In a PID loop, the correction that's added is calculated from the error
in three ways
• To cancel out the present error (proportional mode)
• Average out past errors (Integral mode)
• Anticipate the future a bit from the slope of the error(s) over time
(Derivative mode).
6
Hello Class
@farhan. M Lecture: 14 PID Controller 6
PID CONTROLLER BASICS
Lecture: 14 PID Controller
• In PID each of the three parts of the equation are given a K constant. However,
PID controllers having the Integral and Derivative constants are represented as
• Ti is defined as the time required by the integral term to generate an output
equivalent to the proportional term.
• Td is defined as the time required by the proportional term to repeat the output
provided by the derivative term. With these substitutions, our equation now
becomes:
• The proportional term (Kp), has an amplifying effect on the entire algorithm.
7
Hello Class
@farhan. M Lecture: 14 PID Controller 7
PID Equation
Lecture: 14 PID Controller
• Proportional: To handle the present, the error is multiplied by a negative
constant P and added to the controlled quantity.
• Note: When error is zero, proportional controller's output is zero.
• Integral: To handle the past, error is integrated (added up) over a time period,
multiplied by a negative constant I and added to the controlled quantity. I finds
output's average error from the setpoint.
• A simple proportional system oscillates around the setpoint, because there's
the error.
• By adding a negative proportion of the average error from the process input,
difference between the process output and the setpoint is reduced and the process
settle at the setpoint.
• Derivative: To handle the future, the first derivative (slope) of the error is
calculated, multiplied by negative constant D, and added to the controlled
• The larger this derivative term, more rapidly the controller responds to changes
output.
• The D term dampens a controller's response to short term changes. 8
Hello Class
@farhan. M Lecture: 14 PID Controller 8
PID Control----Terms
Lecture: 14 PID Controller
9
Hello Class
@farhan. M Lecture: 14 PID Controller 9
PID PROCESS CONTROLLER
Lecture: 14 PID Controller
10
Hello Class
@farhan. M Lecture: 14 PID Controller 10
PID CONTROLLER: CLOSED-LOOP MODEL
Lecture: 14 PID Controller
11
Hello Class
@farhan. M Lecture: 14 PID Controller 11
PID Control Modes
Lecture: 14 PID Controller
Mode Combination Function Application
Proportional (P) To provide GAIN For small set points or small load
changes
Proportional–plus-
Integral (PI)
To eliminate OFFSETs For large and slow set points or
changes
Proportional –plus-
Derivative (PD)
To speed up the response
minimize the
For sudden set points or quick load
changes in a slow response system
Proportional –
Integral-Derivative
(PID)
To speed up the response,
minimize the
and eliminate OFFSETs
For large and sudden set points or
changes in a slow response system
• Use P, if system has small time constant, small disturbance
and allow steady state error (off sets).
• Use PI, if system has small time constant, small disturbance
and requires no steady state error.
• Use PD function, if system has large time constant and time
delay (speed up process response).
• Using PD if the system allows steady state error, then use PID
• Use more advanced control scheme, if system has large time
constant, large time delay and disturbance.
12
Hello Class
@farhan. M Lecture: 14 PID Controller 12
General rules of Design PID Controller
Lecture: 14 PID Controller
13
Hello Class
@farhan. M Lecture: 14 PID Controller 13
Proportional Control Mode
Lecture: 14 PID Controller
“correction proportional to error”
• In Proportional mode, controller simply multiplies the Error by the
Proportional Gain (Kp) to get the controller output.
• Small proportional gain (Kp) is the safest way to get to setpoint, but your
controller performance will be slow.
• If the Kp is increased, Overshoot in the signal will be present.
• Proportional action is useful for improving the response of a stable system
but cannot control an unstable system by itself.
• Additionally, the gain is the same for all frequencies leaving the system
with a non-zero steady-state error.
14
Hello Class
@farhan. M Lecture: 14 PID Controller 14
Proportional Action
Lecture: 14 PID Controller
• The main purpose of the proportional control is
minimize the fluctuations that occur within the
system.
• A proportional constant or value as entered into
the controller will determine how large the
"proportional band" is.
• When process parameter is inside the
proportional band, controller output will vary the
amount of change required to reduce overshoot
of the SP.
• Proportional controller will also experience
"droop".
• when the process and set point values are equal,
the process will generally stabilize somewhere
below the set point.
• The amount of droop increases with larger
15
Hello Class
@farhan. M Lecture: 14 PID Controller 15
Role of proportional Controller
Lecture: 14 PID Controller
• Consider an example of a Proportional
controller with different Proportional
Gains.
• As the gain is increased the system time
response is faster , but system starts to
oscillates.
• Comments: Clearly, it is not possible to
achieve low steady state error and good
transient response using only proportional
control.
• As the gain is increased, the response
becomes faster, but it has a lower phase
margin.
• To remove the steady-state error and have 16
Hello Class
@farhan. M Lecture: 14 PID Controller 16
Proportional Gains
Lecture: 14 PID Controller
• The P-controller usually has steady-state errors unless the control gain is large.
• As the control gain becomes larger, issues arise with the stability of the feedback
loop.
• For instance, reducing the rise time implies a high proportional gain, and reducing
overshoot and oscillations implies a small proportional gain. This is not possible to
achieve in all systems.
17
Hello Class
@farhan. M Lecture: 14 PID Controller 17
Proportional Control- Limitations
Lecture: 14 PID Controller
process output of
proportional control
• The way to eliminate these steady-
state errors is by adding an integral
action.
• The integral term in the equation
drives the error to zero.
• Higher Integral constant (1 / Tt)
drives the error to zero sooner but
also invites oscillations and
instability.
• Watch out a sample process output
diagram when integral control is 18
Hello Class
@farhan. M Lecture: 14 PID Controller 18
Proportional control------Solution
Lecture: 14 PID Controller
Response shows the reduction of
overshoots and oscillations compared to
the picture before adding the integral
action.
• The use of proportional control alone has a large
drawback of offset.
• Offset is a sustained error that cannot be
eliminated by proportional control alone.
For example: let’s consider controlling the water
level in the tank with a proportional-only
controller.
• As long as the flow out of the tank remains
constant, the level will remain at its set point.
• But, if the operator should increase the flow out of
the tank, the tank level will begin to decrease due
to the imbalance between inflow and outflow.
• While the tank level decreases, the error increases
and our proportional controller increases the
controller output proportional to this error.
19
Hello Class
@farhan. M Lecture: 14 PID Controller 19
Proportional-only Controller Dilemma
Lecture: 14 PID Controller
Level control, with operator causing a disturbance
• Consequently, the valve controlling the flow into the tank
opens wider and more water flows into the tank.
• As the level continues to decrease, the valve continues to
open until it gets to a point where the inflow again matches
the outflow.
• At this point the tank level (and error) will remain constant.
Because the error remains constant our P-controller will keep
its output constant and the control valve will hold its position.
• The system now remains at balance, but the tank level
remains below its set point. This residual sustained error is
called Offset. 20
Hello Class
@farhan. M Lecture: 14 PID Controller 20
Proportional-only Controller Dilemma
Lecture: 14 PID Controller

More Related Content

Similar to control technology of bachlor of engineering technology

Use of different types of Controllers in Chemical Industry.pptx
Use of different types of Controllers in Chemical Industry.pptxUse of different types of Controllers in Chemical Industry.pptx
Use of different types of Controllers in Chemical Industry.pptxKetanKulkarni49
 
In Apc Training Presentation
In  Apc Training PresentationIn  Apc Training Presentation
In Apc Training Presentationahmad bassiouny
 
Pid logix wp008--en-p
Pid logix wp008--en-pPid logix wp008--en-p
Pid logix wp008--en-pbenditasea
 
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...Waqas Afzal
 
How to tune pid loops
How to tune pid loopsHow to tune pid loops
How to tune pid loopssaeed shafiei
 
How to tune PID loops
How to tune PID loopsHow to tune PID loops
How to tune PID loopssaeed shafiei
 
Mechatroincs universitty for students .ppt
Mechatroincs universitty for students .pptMechatroincs universitty for students .ppt
Mechatroincs universitty for students .pptmohamed abd elrazek
 
Mechatroincs universitty for students .ppt
Mechatroincs universitty for students .pptMechatroincs universitty for students .ppt
Mechatroincs universitty for students .pptmohamed abd elrazek
 
Week 14 pid may 24 2016 pe 3032
Week  14 pid  may 24 2016 pe 3032Week  14 pid  may 24 2016 pe 3032
Week 14 pid may 24 2016 pe 3032Charlton Inao
 
Tuning of pid controller
Tuning of pid controllerTuning of pid controller
Tuning of pid controllerSubhankar Sau
 
ppipdcontroller-190829154906.pdf
ppipdcontroller-190829154906.pdfppipdcontroller-190829154906.pdf
ppipdcontroller-190829154906.pdfJeevaJeeva410662
 
P, PI AND PID CONTROLLER
P, PI AND PID CONTROLLERP, PI AND PID CONTROLLER
P, PI AND PID CONTROLLERkaran sati
 
Meeting w12 chapter 4 part 2
Meeting w12   chapter 4 part 2Meeting w12   chapter 4 part 2
Meeting w12 chapter 4 part 2Hattori Sidek
 
ON-OFF CONTROL (2).ppt
ON-OFF CONTROL (2).pptON-OFF CONTROL (2).ppt
ON-OFF CONTROL (2).pptMUST
 

Similar to control technology of bachlor of engineering technology (20)

Use of different types of Controllers in Chemical Industry.pptx
Use of different types of Controllers in Chemical Industry.pptxUse of different types of Controllers in Chemical Industry.pptx
Use of different types of Controllers in Chemical Industry.pptx
 
In Apc Training Presentation
In  Apc Training PresentationIn  Apc Training Presentation
In Apc Training Presentation
 
Pid logix wp008--en-p
Pid logix wp008--en-pPid logix wp008--en-p
Pid logix wp008--en-p
 
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
 
How to tune pid loops
How to tune pid loopsHow to tune pid loops
How to tune pid loops
 
How to tune PID loops
How to tune PID loopsHow to tune PID loops
How to tune PID loops
 
Controllers ppt
Controllers pptControllers ppt
Controllers ppt
 
Basicontrol
BasicontrolBasicontrol
Basicontrol
 
Mechatroincs universitty for students .ppt
Mechatroincs universitty for students .pptMechatroincs universitty for students .ppt
Mechatroincs universitty for students .ppt
 
Mechatroincs universitty for students .ppt
Mechatroincs universitty for students .pptMechatroincs universitty for students .ppt
Mechatroincs universitty for students .ppt
 
UNIT-V.ppt
UNIT-V.pptUNIT-V.ppt
UNIT-V.ppt
 
Week 14 pid may 24 2016 pe 3032
Week  14 pid  may 24 2016 pe 3032Week  14 pid  may 24 2016 pe 3032
Week 14 pid may 24 2016 pe 3032
 
Tuning of pid controller
Tuning of pid controllerTuning of pid controller
Tuning of pid controller
 
ppipdcontroller-190829154906.pdf
ppipdcontroller-190829154906.pdfppipdcontroller-190829154906.pdf
ppipdcontroller-190829154906.pdf
 
P, PI AND PID CONTROLLER
P, PI AND PID CONTROLLERP, PI AND PID CONTROLLER
P, PI AND PID CONTROLLER
 
Meeting w12 chapter 4 part 2
Meeting w12   chapter 4 part 2Meeting w12   chapter 4 part 2
Meeting w12 chapter 4 part 2
 
14446351.ppt
14446351.ppt14446351.ppt
14446351.ppt
 
Pid controller
Pid controllerPid controller
Pid controller
 
ON-OFF CONTROL (2).ppt
ON-OFF CONTROL (2).pptON-OFF CONTROL (2).ppt
ON-OFF CONTROL (2).ppt
 
Pid controllers
Pid controllersPid controllers
Pid controllers
 

Recently uploaded

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 

Recently uploaded (20)

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 

control technology of bachlor of engineering technology

  • 1. @farhan. M Lecture: 14 PID Controller 1 Hello Class Lecture 14 Topic: PID Controller Prepared by Engr. Dr. Muhammad Farhan Email: mfarhan@gcuf.edu.pk Control Systems Course Lecture Series for Undergraduate BSc Electrical, Electronics & Computer Systems Engineering EngiTech Learn Plex Lecture: 14 PID Controller
  • 2. • 80% of industrial control applications are installed by feedback control loop and devices. • Unlike simpler control algorithms, PID controller can adjust process inputs based on the history and rate of change of the error signal, which gives more accurate and stable control. • It can be shown mathematically that a PID loop will produce accurate stable control in cases where other control algorithms would either have a steady-state error or would cause the process to oscillate. 2 Hello Class @farhan. M Lecture: 14 PID Controller 2 PID Controller Theme---Background Lecture: 14 PID Controller
  • 3. • A (PID controller) is a generic controller widely used in industrial control systems. • It can be used to regulate flow, temperature, pressure, level, and many other industrial process variables. • It describes the mathematic calculations that are applied to calculate the error between the current result and the desired set-point. • Proportional term responds instantaneously to the current error (providing (providing instaneous response). • Integral term (past errors) responds to the accumulation of errors in the in the form of average (providing a slow response that drives the steady- state error towards Zero). • Derivative term (future errors) responds to the rate at which the error is error is changing (providing some anticipatory response). 3 Hello Class @farhan. M Lecture: 14 PID Controller 3 PID controller Lecture: 14 PID Controller
  • 4. • With manual, all regulation tasks will have to be done manually. • For example: To keep constant temperature of water discharged, an operator will have to watch a temperature gauge and adjust a fuel gas valve accordingly • If the water temperature becomes too high or too cold for some reason, the operator has to close the gas valve. 4 Hello Class @farhan. M Lecture: 14 PID Controller 4 Life before PID controller –Manual Control Lecture: 14 PID Controller
  • 5. • Through PID controller Set Point feature, operator can set the desired temperature ranges. • The Controller’s Output (CO) sets the position of the control valve. • When everything is functional, PID controller compares the PV to its SP and calculates the difference b/w the two signals as an Error (E). 5 Hello Class @farhan. M Lecture: 14 PID Controller 5 Life with PID Controller Lecture: 14 PID Controller
  • 6. • In a PID loop, the correction that's added is calculated from the error in three ways • To cancel out the present error (proportional mode) • Average out past errors (Integral mode) • Anticipate the future a bit from the slope of the error(s) over time (Derivative mode). 6 Hello Class @farhan. M Lecture: 14 PID Controller 6 PID CONTROLLER BASICS Lecture: 14 PID Controller
  • 7. • In PID each of the three parts of the equation are given a K constant. However, PID controllers having the Integral and Derivative constants are represented as • Ti is defined as the time required by the integral term to generate an output equivalent to the proportional term. • Td is defined as the time required by the proportional term to repeat the output provided by the derivative term. With these substitutions, our equation now becomes: • The proportional term (Kp), has an amplifying effect on the entire algorithm. 7 Hello Class @farhan. M Lecture: 14 PID Controller 7 PID Equation Lecture: 14 PID Controller
  • 8. • Proportional: To handle the present, the error is multiplied by a negative constant P and added to the controlled quantity. • Note: When error is zero, proportional controller's output is zero. • Integral: To handle the past, error is integrated (added up) over a time period, multiplied by a negative constant I and added to the controlled quantity. I finds output's average error from the setpoint. • A simple proportional system oscillates around the setpoint, because there's the error. • By adding a negative proportion of the average error from the process input, difference between the process output and the setpoint is reduced and the process settle at the setpoint. • Derivative: To handle the future, the first derivative (slope) of the error is calculated, multiplied by negative constant D, and added to the controlled • The larger this derivative term, more rapidly the controller responds to changes output. • The D term dampens a controller's response to short term changes. 8 Hello Class @farhan. M Lecture: 14 PID Controller 8 PID Control----Terms Lecture: 14 PID Controller
  • 9. 9 Hello Class @farhan. M Lecture: 14 PID Controller 9 PID PROCESS CONTROLLER Lecture: 14 PID Controller
  • 10. 10 Hello Class @farhan. M Lecture: 14 PID Controller 10 PID CONTROLLER: CLOSED-LOOP MODEL Lecture: 14 PID Controller
  • 11. 11 Hello Class @farhan. M Lecture: 14 PID Controller 11 PID Control Modes Lecture: 14 PID Controller Mode Combination Function Application Proportional (P) To provide GAIN For small set points or small load changes Proportional–plus- Integral (PI) To eliminate OFFSETs For large and slow set points or changes Proportional –plus- Derivative (PD) To speed up the response minimize the For sudden set points or quick load changes in a slow response system Proportional – Integral-Derivative (PID) To speed up the response, minimize the and eliminate OFFSETs For large and sudden set points or changes in a slow response system
  • 12. • Use P, if system has small time constant, small disturbance and allow steady state error (off sets). • Use PI, if system has small time constant, small disturbance and requires no steady state error. • Use PD function, if system has large time constant and time delay (speed up process response). • Using PD if the system allows steady state error, then use PID • Use more advanced control scheme, if system has large time constant, large time delay and disturbance. 12 Hello Class @farhan. M Lecture: 14 PID Controller 12 General rules of Design PID Controller Lecture: 14 PID Controller
  • 13. 13 Hello Class @farhan. M Lecture: 14 PID Controller 13 Proportional Control Mode Lecture: 14 PID Controller “correction proportional to error”
  • 14. • In Proportional mode, controller simply multiplies the Error by the Proportional Gain (Kp) to get the controller output. • Small proportional gain (Kp) is the safest way to get to setpoint, but your controller performance will be slow. • If the Kp is increased, Overshoot in the signal will be present. • Proportional action is useful for improving the response of a stable system but cannot control an unstable system by itself. • Additionally, the gain is the same for all frequencies leaving the system with a non-zero steady-state error. 14 Hello Class @farhan. M Lecture: 14 PID Controller 14 Proportional Action Lecture: 14 PID Controller
  • 15. • The main purpose of the proportional control is minimize the fluctuations that occur within the system. • A proportional constant or value as entered into the controller will determine how large the "proportional band" is. • When process parameter is inside the proportional band, controller output will vary the amount of change required to reduce overshoot of the SP. • Proportional controller will also experience "droop". • when the process and set point values are equal, the process will generally stabilize somewhere below the set point. • The amount of droop increases with larger 15 Hello Class @farhan. M Lecture: 14 PID Controller 15 Role of proportional Controller Lecture: 14 PID Controller
  • 16. • Consider an example of a Proportional controller with different Proportional Gains. • As the gain is increased the system time response is faster , but system starts to oscillates. • Comments: Clearly, it is not possible to achieve low steady state error and good transient response using only proportional control. • As the gain is increased, the response becomes faster, but it has a lower phase margin. • To remove the steady-state error and have 16 Hello Class @farhan. M Lecture: 14 PID Controller 16 Proportional Gains Lecture: 14 PID Controller
  • 17. • The P-controller usually has steady-state errors unless the control gain is large. • As the control gain becomes larger, issues arise with the stability of the feedback loop. • For instance, reducing the rise time implies a high proportional gain, and reducing overshoot and oscillations implies a small proportional gain. This is not possible to achieve in all systems. 17 Hello Class @farhan. M Lecture: 14 PID Controller 17 Proportional Control- Limitations Lecture: 14 PID Controller process output of proportional control
  • 18. • The way to eliminate these steady- state errors is by adding an integral action. • The integral term in the equation drives the error to zero. • Higher Integral constant (1 / Tt) drives the error to zero sooner but also invites oscillations and instability. • Watch out a sample process output diagram when integral control is 18 Hello Class @farhan. M Lecture: 14 PID Controller 18 Proportional control------Solution Lecture: 14 PID Controller Response shows the reduction of overshoots and oscillations compared to the picture before adding the integral action.
  • 19. • The use of proportional control alone has a large drawback of offset. • Offset is a sustained error that cannot be eliminated by proportional control alone. For example: let’s consider controlling the water level in the tank with a proportional-only controller. • As long as the flow out of the tank remains constant, the level will remain at its set point. • But, if the operator should increase the flow out of the tank, the tank level will begin to decrease due to the imbalance between inflow and outflow. • While the tank level decreases, the error increases and our proportional controller increases the controller output proportional to this error. 19 Hello Class @farhan. M Lecture: 14 PID Controller 19 Proportional-only Controller Dilemma Lecture: 14 PID Controller Level control, with operator causing a disturbance
  • 20. • Consequently, the valve controlling the flow into the tank opens wider and more water flows into the tank. • As the level continues to decrease, the valve continues to open until it gets to a point where the inflow again matches the outflow. • At this point the tank level (and error) will remain constant. Because the error remains constant our P-controller will keep its output constant and the control valve will hold its position. • The system now remains at balance, but the tank level remains below its set point. This residual sustained error is called Offset. 20 Hello Class @farhan. M Lecture: 14 PID Controller 20 Proportional-only Controller Dilemma Lecture: 14 PID Controller