Lesson 21


1 Learning Objectives

By the end of this lesson students will be able to:

2 Effect of PID Gains on System Response

Recall that a closed-loop system with a PID controller is drawn like this:

and has a controller of the form:

C(s)=KP+KDs+KIsC(s) = K_P + K_D s + \frac{K_I}{s}

(see Lesson 17). Each gain has a different effect on the system response.

2.1 Proportional Gain, KPK_P

2.2 Integral Gain, KIK_I

2.3 Derivative Gain, KDK_D

2.4 Summary of Gain Effects

The table below summarizes the effect of increasing each gain on the system response:

Gain Rise Time Overshoot Settling Time SSE
KPK_P Decrease Increase Decrease
KIK_I Increase Increase Increase Eliminate
KDK_D Decrease Decrease

You may not always use KPK_P, KIK_I, and KDK_D depending on the system you are trying to control. For example:

General guidance:

  1. Use KPK_P to ______________
  2. Use KDK_D to ______________
  3. Use KIK_I to ______________

You have three variables that you need to optimize to meet specified response time, overshoot, settling time, and SSE. How do you choose the best values? There are many strategies. We look at one of them today.

2.4.1 Student Exercise 1

A system produces the step response shown below. You know the system has a PID controller. What gain(s) would you increase or decrease to adjust the system performance to: reduce SSE, decrease rise time, and decrease overshoot?

Figure 1: Step response of a system with a PID controller. The orange line indicates the desired steady-state value.

3 Re-visiting Root Locus Plots

Recall from Lesson 18 that a root-locus plot lets you see the effect of proportional gain on system stability. As KPK_P increases, the closed-loop poles move along the branches of the plot, and the system response can change from overdamped to underdamped, to marginally stable, to unstable.

When we use a PID controller, things get more complicated. Not only KPK_P, but also KDK_D and KIK_I will move the poles of the system, T(s)T(s).

But we can use root-locus plots for another purpose: designing a specific system response. In a nutshell, C(s)C(s) is the way an engineer reliably moves the poles so that the system, T(s)T(s), has the desired performance.

3.1 Pole Location Affects System Performance

Pole location is determined by the roots of the transfer function denominator. Pole location, in turn, determines system performance. For a second-order system with complex-conjugate poles at r=ζωn±jωn1ζ2r = -\zeta \omega_n \pm j \omega_n \sqrt{1 - \zeta^2}:

Geometric interpretation of pole location for a second-order system. The real part of the pole sets \zeta \omega_n, the imaginary part sets the damped natural frequency \omega_d, and the angle from the negative real axis sets the damping ratio \zeta.

Important relationships in the geometric representation:

This means that families of pole locations correspond to fixed values of ζ\zeta, ωn\omega_n, and ωd\omega_d:

Root locations for constant \zeta (radial lines), constant \omega_n (semi-circles), and constant \omega_d (horizontal lines).

Changing the gain KPK_P moves the poles along the root-locus plot, which means we can change system performance by changing KPK_P.

Assume we have a unity feedback system with the plant:

G(s)=10.5s2+4s+23G(s) = \frac{1}{0.5s^2 + 4s + 23}

And the controller:

C(s)=KP+KDs+KIsC(s) = K_P + K_D s + \frac{K_I}{s}

Then T(s)T(s) is:

T(s)=C(s)G(s)1+C(s)G(s)=KDs2+KPs+KI0.5s3+(4+KD)s2+(23+KP)s+KIT(s)=\frac{C(s)G(s)}{1+C(s)G(s)}=\frac{K_D s^2 + K_P s + K_I}{0.5 s^3 + (4 + K_D) s^2 + (23 + K_P) s + K_I}

So, the three controller constants will impact both pole and zero location. Use the widget below to explore how each affects pole-zero location and the transient response to a unit step input.

But let’s say you want to create a system with specific characteristics. In other words, with a “fast” rise time or a specific natural frequency. Furthermore, what if you wanted to see how your controller settings might affect the system response to a disturbance. For that, you need special tools.