4
9. PID Controller EN2142 Electronic Control Systems Dr. Rohan Munasinghe BSc, MSc, PhD, MIEEE Department of Electronic and Telecommunication Engineering Faculty of Engineering University of Moratuwa 10400 Three Term Controller Most popular industrial controller Can handle any industrial plant easily and satisfactorily Three gain controller Proportional, Derivative, and Integral control actions ] [ or ] [ I D P I D P T T K K K K Proportional, Derivative, and Integral control actions Weighted sum of three terms using gains Proportional Term Determines the responsiveness of the controller – Aggressive/Weak Increase/Decrease system bandwidth Positive command when Negative command when K P is very BIG Controller is sensitive Controller is sensitive Responds to even small errors) K P is very small Controller is not sensitive Respond only to BIG errors Both extremes are not acceptable Error due to Persistent Disturbances At equilibrium state P ss ss P K d e d e K - = = + 0 P controller alone cannot eliminate the steady state error Introduce an I-controller. Then, at equilibrium state P K steady state error

9 PID Controller - Lanka Education and Research Networkrohan/teaching/EN2142/Lectures/9 PID controller.… · • Positive command when ... margin Gm co Cross over ... Microsoft PowerPoint

Embed Size (px)

Citation preview

9. PID Controller EN2142 Electronic Control Systems

Dr. Rohan MunasingheBSc, MSc, PhD, MIEEEDepartment of Electronic and Telecommunication Engineering

Faculty of EngineeringUniversity of Moratuwa 10400

Three Term Controller

• Most popular industrial controller

• Can handle any industrial plant easily and satisfactorily

• Three gain controller

• Proportional, Derivative, and Integral control actions

] [or ] [ IDPIDP TTKKKK

• Proportional, Derivative, and Integral control actions

• Weighted sum of three terms using gains

Proportional Term

• Determines the responsiveness of the controller

– Aggressive/Weak

– Increase/Decrease system bandwidth

• Positive command when

• Negative command when

• KP is very BIG

– Controller is sensitive– Controller is sensitive

– Responds to even small errors)

• KP is very small

– Controller is not sensitive

– Respond only to BIG errors

Both extremes are

not acceptable

Error due to Persistent Disturbances

• At equilibrium state

P

ss

ssP

K

de

deK

−=

=+ 0P controller alone

cannot eliminate the

steady state error

• Introduce an I-controller. Then, at equilibrium state PK steady state error

Example

• Robot link position P-control system

P controller needs an error

to generate torque to

counter gravity, then reach

steady state

I Controller

• Can eliminate steady state error

• 0)( then )()( If >< tetrty )()( drives 0)()( trtydttetuI →>= ∫

• Caution: Error accumulation together, with a BIG value of IK• Caution: Error accumulation together, with a BIG value of

could generate large control commands causing response

to overshoot/undershoot (stability problem)

• Reduce to reduce overshoot but it will take time to correct steady state errors

IK

)(ty

)/( IPI TKK =

D - Controller

• Corrective action is proportional to the rate of change of

error

• For constant reference and

• If a negative error is dropping faster (unstable?),

strong positive action is taken to stop and correct it

• If a positive error is rising faster (unstable?),

strong negative action is taken

Imp

rove

s S

tab

ility

• When the error doesn’t change, no control action is taken

(doesn’t try to correct steady errors)

Tuning PD Gains in Motion Control

Fast rising to step, with very little overshoot

Great performance

8No I-Control ⇒ Steady State error persists

When KD is too Low

System is under damped (loss of phase margin)

Low damping produces overshoot/undershoot

KD provides damping and stability

9

When KD is too High

Extremely responsive to noise and resonances

Introduces vibrations (dither) while following the step response

10

Tuning PID Controller

• Best match between

• KP makes the system responsive to errors, however, a

bigger value of KP will make the system too sensitive, and

responsive to even noise in the control loop. K reduces

] [or ] [ IDPIDP TTKKKK

P

responsive to even noise in the control loop. KI reduces

the steady state error, however, it increases overshoot

and reduces stability. KD stabilizes the system by slowing

down the response.

• In order to realize desirable response the three individual

controllers have to be properly adjustedcontrollers have to be properly adjusted

• There are three main techniques for PID controller tuning

• Zeigler-Nichols

• Cohen-Coon

• ITAE based methods

Ziegler-Nochols Method

• Frequency response

of the plant is required

• Plant needs to have a • Plant needs to have a

crossover frequency

fco and stable gain

margin Gmco

Cross over Cross over

frequency

Ziegler-Nochols Method