Closed-loop controller

From HandWiki
Short description: Feedback controller
Example of a single industrial control loop; showing continuously modulated control of process flow.

A closed-loop controller or feedback controller is a control loop which incorporates feedback, in contrast to an open-loop controller or non-feedback controller. A closed-loop controller uses feedback to control states or outputs of a dynamical system. Its name comes from the information path in the system: process inputs (e.g., voltage applied to an electric motor) have an effect on the process outputs (e.g., speed or torque of the motor), which is measured with sensors and processed by the controller; the result (the control signal) is "fed back" as input to the process, closing the loop.[1]

In the case of linear feedback systems, a control loop including sensors, control algorithms, and actuators is arranged in an attempt to regulate a variable at a setpoint (SP). An everyday example is the cruise control on a road vehicle; where external influences such as hills would cause speed changes, and the driver has the ability to alter the desired set speed. The PID algorithm in the controller restores the actual speed to the desired speed in an optimum way, with minimal delay or overshoot, by controlling the power output of the vehicle's engine. Control systems that include some sensing of the results they are trying to achieve are making use of feedback and can adapt to varying circumstances to some extent. Open-loop control systems do not make use of feedback, and run only in pre-arranged ways.

Closed-loop controllers have the following advantages over open-loop controllers:

  • disturbance rejection (such as hills in the cruise control example above)
  • guaranteed performance even with model uncertainties, when the model structure does not match perfectly the real process and the model parameters are not exact
  • unstable processes can be stabilized
  • reduced sensitivity to parameter variations
  • improved reference tracking performance
  • improved rectification of random fluctuations[2]

In some systems, closed-loop and open-loop control are used simultaneously. In such systems, the open-loop control is termed feedforward and serves to further improve reference tracking performance.

A common closed-loop controller architecture is the PID controller.

A basic feedback loop

Open-loop and closed-loop

Closed-loop transfer function

Main page: Closed-loop transfer function

The output of the system y(t) is fed back through a sensor measurement F to a comparison with the reference value r(t). The controller C then takes the error e (difference) between the reference and the output to change the inputs u to the system under control P. This is shown in the figure. This kind of controller is a closed-loop controller or feedback controller.

This is called a single-input-single-output (SISO) control system; MIMO (i.e., Multi-Input-Multi-Output) systems, with more than one input/output, are common. In such cases variables are represented through vectors instead of simple scalar values. For some distributed parameter systems the vectors may be infinite-dimensional (typically functions).

A simple feedback control loop

If we assume the controller C, the plant P, and the sensor F are linear and time-invariant (i.e., elements of their transfer function C(s), P(s), and F(s) do not depend on time), the systems above can be analysed using the Laplace transform on the variables. This gives the following relations:

[math]\displaystyle{ Y(s) = P(s) U(s) }[/math]
[math]\displaystyle{ U(s) = C(s) E(s) }[/math]
[math]\displaystyle{ E(s) = R(s) - F(s)Y(s). }[/math]

Solving for Y(s) in terms of R(s) gives

[math]\displaystyle{ Y(s) = \left( \frac{P(s)C(s)}{1 + P(s)C(s)F(s)} \right) R(s) = H(s)R(s). }[/math]

The expression [math]\displaystyle{ H(s) = \frac{P(s)C(s)}{1 + F(s)P(s)C(s)} }[/math] is referred to as the closed-loop transfer function of the system. The numerator is the forward (open-loop) gain from r to y, and the denominator is one plus the gain in going around the feedback loop, the so-called loop gain. If [math]\displaystyle{ |P(s)C(s)| \gg 1 }[/math], i.e., it has a large norm with each value of s, and if [math]\displaystyle{ |F(s)| \approx 1 }[/math], then Y(s) is approximately equal to R(s) and the output closely tracks the reference input.

PID feedback control

Main page: PID controller
A block diagram of a PID controller in a feedback loop, r(t) is the desired process value or "set point", and y(t) is the measured process value.

A proportional–integral–derivative controller (PID controller) is a control loop feedback mechanism control technique widely used in control systems.

A PID controller continuously calculates an error value e(t) as the difference between a desired setpoint and a measured process variable and applies a correction based on proportional, integral, and derivative terms. PID is an initialism for Proportional-Integral-Derivative, referring to the three terms operating on the error signal to produce a control signal.

The theoretical understanding and application dates from the 1920s, and they are implemented in nearly all analogue control systems; originally in mechanical controllers, and then using discrete electronics and later in industrial process computers. The PID controller is probably the most-used feedback control design.

If u(t) is the control signal sent to the system, y(t) is the measured output and r(t) is the desired output, and e(t) = r(t) − y(t) is the tracking error, a PID controller has the general form

[math]\displaystyle{ u(t) = K_P e(t) + K_I \int^t e(\tau)\text{d}\tau + K_D \frac{\text{d}e(t)}{\text{d}t}. }[/math]

The desired closed loop dynamics is obtained by adjusting the three parameters KP, KI and KD, often iteratively by "tuning" and without specific knowledge of a plant model. Stability can often be ensured using only the proportional term. The integral term permits the rejection of a step disturbance (often a striking specification in process control). The derivative term is used to provide damping or shaping of the response. PID controllers are the most well-established class of control systems: however, they cannot be used in several more complicated cases, especially if MIMO systems are considered.

Applying Laplace transformation results in the transformed PID controller equation

[math]\displaystyle{ u(s) = K_P \, e(s) + K_I \, \frac{1}{s} \, e(s) + K_D \, s \, e(s) }[/math]
[math]\displaystyle{ u(s) = \left(K_P + K_I \, \frac{1}{s} + K_D \, s\right) e(s) }[/math]

with the PID controller transfer function

[math]\displaystyle{ C(s) = \left(K_P + K_I \, \frac{1}{s} + K_D \, s\right). }[/math]

As an example of tuning a PID controller in the closed-loop system H(s), consider a 1st order plant given by

[math]\displaystyle{ P(s) = \frac{A}{1 + sT_P} }[/math]

where A and TP are some constants. The plant output is fed back through

[math]\displaystyle{ F(s) = \frac{1}{1 + sT_F} }[/math]

where TF is also a constant. Now if we set [math]\displaystyle{ K_P=K\left(1+\frac{T_D}{T_I}\right) }[/math], KD = KTD, and [math]\displaystyle{ K_I=\frac{K}{T_I} }[/math], we can express the PID controller transfer function in series form as

[math]\displaystyle{ C(s) = K \left(1 + \frac{1}{sT_I}\right)(1 + sT_D) }[/math]

Plugging P(s), F(s), and C(s) into the closed-loop transfer function H(s), we find that by setting

[math]\displaystyle{ K = \frac{1}{A}, T_I = T_F, T_D = T_P }[/math]

H(s) = 1. With this tuning in this example, the system output follows the reference input exactly.

However, in practice, a pure differentiator is neither physically realizable nor desirable[3] due to amplification of noise and resonant modes in the system. Therefore, a phase-lead compensator type approach or a differentiator with low-pass roll-off are used instead.

References

  1. Bechhoefer, John (2005-08-31). "Feedback for physicists: A tutorial essay on control". Reviews of Modern Physics 77 (3): 783–836. doi:10.1103/RevModPhys.77.783. https://link.aps.org/doi/10.1103/RevModPhys.77.783. 
  2. Cao, F. J.; Feito, M. (2009-04-10). "Thermodynamics of feedback controlled systems". Physical Review E 79 (4): 041118. doi:10.1103/PhysRevE.79.041118. https://link.aps.org/doi/10.1103/PhysRevE.79.041118. 
  3. Ang, K.H.; Chong, G.C.Y.; Li, Y. (2005). "PID control system analysis, design, and technology". IEEE Transactions on Control Systems Technology 13 (4): 559–576. doi:10.1109/TCST.2005.847331. http://eprints.gla.ac.uk/3817/1/IEEE3.pdf.