Chapter 3

PID control

3.1 Time and frequency response of PID controller

Concepts analyzed in the chapter

  • Proportional (P) control properties.
  • Integral (PI) control properties.
  • Derivative (D) control properties.
  • PID control.
  • Theory

    The Proportional-Integral-Derivative (PID) controllers are the most widely used at industry. Based on the estimation of Prof. Åström and Hägglund, 95 of the control loops at industry are PID controllers and mainly PI. The tuning procedure is really important, where the controllers parameters must be set to reach a desired closed-loop specifications. Thus, it is essential to understand the effect of the PID controller componentes on the feedback loop.

    Proporcional (P) control: A proportional controller gives a control signal that is proportional to the feedback error. It acts as an amplifier of gain K . Its action is represented by:

    u t = K e t
    (3.1)

    where K is the proportional gain, that is the quantity multiplying the error signal e t to obtain the control signal u t . Considering zero initial conditions, the transfer function of a proportional controller can be obtain as follows:

    U s = K E s C s = U s E s = K
    (3.2)

    In general, when the setpoint of a system with proportional control is changed, the error cannot be removed completely and an error in steady state is obtained, usually called offset. This error consists in the permanent deviation of the controlled variable with respect to its reference at the steady state. This is one of the main drawbacks of the proportional controllers. The steady-state error can be reduced by increasing the gain K . Moreover, by increasing K faster responses are obtained, although this can also lead to high control signal values that are not implementable in practice. As noticed above, the proportional controller does not augment the system order.

    Integral (I) control: In a controller with integral action, the control signal is modified in a velocity proportional to the error signal; that is, if the error signal is large, the control signal is increased very fast; and if it is small, the control signal is increased slowly. If zero initial conditions are considered, this controller can be expressed as:

    d u t d t = K i e t i.e. u t = K i 0 t e ξ d ξ
    (3.3)

    and the transfer function of the integral controller (which is of type 1) is the following:

    U s = K i E s s C s = U s E s = K i s
    (3.4)

    where K i is called integral gain. By the original definition of the integral term, these systems have “memory”, since the output u at the time instant t will depend on the past behaviour from 0 to t . If a steady-state situation is considered with u = u e e and e = e e e , the following expression must be fulfilled:

    u e e = K i e e e t

    that it is only possible if K i = 0 or e e e = 0 . Therefore, it can be deduced that with the integral action the error will be zero at the steady state.

    The main properties of the integral controller are:

  • When the controller output is constant, the error in steady state of the closed-loop system will be zero if the system is stable.
  • When the controller output varies to a constant velocity, the steady-state error must have a constant value. When the error is constant, the integra action increases with time with a constant velocity and thus the controller output is also increased with a constant velocity.
  • Proportional-Integral (PI) control: As discussed above, the proportional action leads to steady-state errors. On the other hand, although the integral action removes the steady-state error, it can provoke oscillatory behaviors or very slow responses. Therefore, both actions are combined obtaining a Proportional-Integral (PI) controller, which includes the advantages of these two elements. This controller can be represented by:

    u t = K e t + 1 T i 0 t e ξ d ξ = K e t + K i 0 t e ξ d ξ
    (3.5)

    where T i is the integral time, which represents in this case the time required by the integral action to provide a signal equal to that given by the proportional action.

    The transfer function of the PI controller is given by:

    U s = K E s + 1 T i E s s C s = U s E s = K 1 + 1 T i s = K T i s + 1 T i s
    (3.6)

    With a PI controller is possible to remove the steady-state error, but faster than with a I controller. When K is increased in the PI controller, faster responses are obtained, but oscillations can result in the closed-loop response.

    Derivative (D) control: In the derivative control, the controller output is proportional to ratio of the error signal with respect to time:

    u t = K d d e t d t
    (3.7)

    where the parameter K d is the derivative gain. The transfer function of the derivative controller is given by C s = U s / E s = K d s .

    This type of controllers does not react against error signals in steady state because its derivative is zero. For that reason, this controller is not used alone, but it is combined with some of the other control actions. Furthermore, it is a non-causal element and in practice it is usually implemented by including a derivative filter.

    The effect of the derivative control action is to anticipate to changes in the error and to give a faster response for those changes. This faster response of the derivative controller allows the system accounting the time delay in fast processes and to be stable in a short period of time (specially when the error changes constantly).

    Proportional-Derivative (PD) control: When a proportional and derivative controllers are combined, the following transfer function is obtained:

    u t = K e t + T d d e t d t = K e t + K d d e t d t C s = U s E s = K 1 + T d s
    (3.8)

    The controller output can change when the error varies constantly. When the setpoint is changed in the control loop, the control signal changes quickly at the beginning because of the derivative term, and afterwards a gradual change is provided because of the proportional action. The derivative time T d represents the time for which the derivative action reacts in advance with respect to the proportional action. In theory, the derivative action contributes to stabilize the system by softening the oscillations in the response.

    A PD controller can be expressed as:

    u t = K e t + T d d e t d t = K e t + T d

    where e t + T d can be interpreted as the prediction error at the time instant t + T d by using a lineal extrapolation.

    Notice that this controller is type 0 and thus it is not able to remove steady-state errors.

    Proportional-Integral-Derivative (PID) control: When the three actions are combined, a PID controller is obtained. This controllers contribute by removing the steady-state errors and reducing the oscillations in the closed-loop response (when the different parameters are properly tuned). It is represented by the following equation:

    u t = K e t + 1 T i 0 t e ξ d ξ + T d d e t d t
    (3.9)

    and thus the transfer function is given by:

    C s = U s E s = K 1 + 1 T i s + T d s
    (3.10)

    It is the most general control and it is likely the most used controller in industry. It allows an optimal use of the three control actions exploiting all their properties. It can be considered as a proportional controller that includes an integral action to remove the steady-state error and a derivative action to improve the stability and increase the response velocity. In summary:

  • The proportional control gives the shape of the curve for the controlled variable response. As bigger is the error signal as larger is the resulting control signal.
  • The integral control reduces the error. As later the error signal is different to zero as larger is the resulting control signal.
  • The derivative control reduces the time when the error is changing. This is done by predicting the value of the error changes and anticipating the control signal to these changes. As faster is the error signal as larger is the control signal.
  • Figure 3.10 shows the Nyquist diagram, system output and system input (control signal) of a first-order system with delay controlled with a PID controller when the reference is a unit step.

    (interactive fig fig-7.3)

    Fig. 3.10 Parameters, Nyquist diagram, system output and system input for a reference step for a first-order system with delay controlled with a PID controller

    References

  • Åström, K. J. y R. M. Murray. Feedback systems: An introduction for scientists and engineers. Princeton University Press, ISBN:978-84-481-6640-3. Chapter 10, pages 293-306, 2008.
  • Åström, K. J. y T. Hägglund. Control PID avanzado. Pearson - Prentice Hall, ISBN:978-84-8322-511-0. 2009.
  • Barrientos, A., R. Sanz, F. Matía y E. Gambao. Control de sistemas continuos. Problemas resueltos. Mc Graw Hill, ISBN: 84-481-0605-9. Chapter 9, section 1, pages 332-334, 1996.
  • Bolzern, P., R. Scattolini y N. Schiavoni. Fundamentos de control automático. Mc Graw Hill, ISBN: 978-84-481-6640-3. Chapter 14, exercise 14.1, page 391, 2009.
  • Dorf, R. C. y R. H. Bishop. Sistemas de control moderno. Décima Edicién. Pearson Prentice Hall. ISBN: 84-205-4401-9. Problem 4.5, pages 236-237; problem 4.6., página 241, 2005.
  • Shahian, B. y M. Hassul. Control system design using Matlab. Primera edición. Prentice Hall, ISBN: 0-13-174061-X. Chapter 7, section 3, pages 171-177, 1993.