of a PID controller in a feedback loop; is the desired process value or "set point", and 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 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 is the control signal sent to the system, is the measured output and is the desired output, and is the tracking error, a PID controller has the general form :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}. The desired closed loop dynamics is obtained by adjusting the three parameters , and , 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 :u(s) = K_P \, e(s) + K_I \, \frac{1}{s} \, e(s) + K_D \, s \, e(s) :u(s) = \left(K_P + K_I \, \frac{1}{s} + K_D \, s\right) e(s) with the PID controller transfer function :C(s) = \left(K_P + K_I \, \frac{1}{s} + K_D \, s\right). As an example of tuning a PID controller in the closed-loop system , consider a 1st order plant given by :P(s) = \frac{A}{1 + sT_P} where and are some constants. The plant output is fed back through :F(s) = \frac{1}{1 + sT_F} where is also a constant. Now if we set K_P=K\left(1+\frac{T_D}{T_I}\right), , and K_I=\frac{K}{T_I}, we can express the PID controller transfer function in series form as :C(s) = K \left(1 + \frac{1}{sT_I}\right)(1 + sT_D) SDSD Plugging , , and into the closed-loop transfer function , we find that by setting :K = \frac{1}{A}, T_I = T_F, T_D = T_P . 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 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==