# Different PID Equations

## Chapter 32 - Closed-loop Control Systems

For better or worse, there are no fewer than three different forms of PID equations implemented in modern PID controllers: the parallel, ideal, and series. Some controllers offer the choice of more than one equation, while others implement just one. It should be noted that more variations of PID equation exist than these three, but that these are the three major variations.

### Parallel PID equation

The equation used to describe PID control so far in this chapter is the simplest form, sometimes called the parallel equation, because each action (P, I, and D) occurs in separate terms of the equation, with the combined effect being a simple sum:

$m = K_p e + {1 \over \tau_i} \int e \> dt + \tau_d {de \over dt} + b \hbox{\hskip 50pt Parallel PID equation}$

In the parallel equation, each action parameter ($$K_p$$, $$\tau_i$$, $$\tau_d$$) is independent of the others. At first, this may seem to be an advantage, for it means each adjustment made to the controller should only affect one aspect of its action. However, there are times when it is better to have the gain parameter affect all three control actions (P, I, and D)915.

We may show the independence of the three actions mathematically, by breaking the equation up into three different parts, each one describing its contribution to the output ($$\Delta m$$):

$\Delta m = K_p \Delta e \hskip 30pt \hbox{Proportional action}$

$\Delta m = {1 \over \tau_i} \int e \> dt \hskip 30pt \hbox{Integral action}$

$\Delta m = \tau_d {de \over dt} \hskip 30pt \hbox{Derivative action}$

As you can see, the three portions of this PID equation are completely separate, with each tuning parameter ($$K_p$$, $$\tau_i$$, and $$\tau_d$$) acting independently within its own term of the equation.

### Ideal PID equation

An alternate version of the PID equation designed such that the gain ($$K_p$$) affects all three actions is called the Ideal or ISA equation:

$m = K_p \left( e + {1 \over \tau_i} \int e \> dt + \tau_d {de \over dt} \right) + b \hbox{\hskip 50pt Ideal or ISA PID equation}$

Here, the gain constant ($$K_p$$) is distributed to all terms within the parentheses, equally affecting all three control actions. Increasing $$K_p$$ in this style of PID controller makes the P, the I, and the D actions equally more aggressive.

We may show this mathematically, by breaking the “ideal” equation up into three different parts, each one describing its contribution to the output ($$\Delta m$$):

$\Delta m = K_p \Delta e \hskip 30pt \hbox{Proportional action}$

$\Delta m = {K_p \over \tau_i} \int e \> dt \hskip 30pt \hbox{Integral action}$

$\Delta m = K_p \tau_d {de \over dt} \hskip 30pt \hbox{Derivative action}$

As you can see, all three portions of this PID equation are influenced by the gain ($$K_p$$) owing to algebraic distribution, but the integral and derivative tuning parameters ($$\tau_i$$ and $$\tau_d$$) act independently within their own terms of the equation.

### Series PID equation

A third version, with origins in the peculiarities of pneumatic controller mechanisms and analog electronic circuits, is called the Series or Interacting equation:

$m = K_p \left[ \left({\tau_d \over \tau_i} + 1 \right) e + {1 \over \tau_i} \int e \> dt + \tau_d {de \over dt} \right] + b \hbox{\hskip 25pt Series or Interacting PID equation}$

Here, the gain constant ($$K_p$$) affects all three actions (P, I, and D) just as with the “ideal” equation. The difference, though, is the fact that both the integral and derivative constants have an effect on proportional action as well! That is to say, adjusting either $$\tau_i$$ or $$\tau_d$$ does not merely adjust those actions, but also influences the aggressiveness of proportional action916.

We may show this mathematically, by breaking the “series” equation up into three different parts, each one describing its contribution to the output ($$\Delta m$$):

$\Delta m = K_p \left({\tau_d \over \tau_i} + 1\right) \Delta e \hskip 30pt \hbox{Proportional action}$

$\Delta m = {K_p \over \tau_i} \int e \> dt \hskip 30pt \hbox{Integral action}$

$\Delta m = K_p \tau_d {de \over dt} \hskip 30pt \hbox{Derivative action}$

As you can see, all three portions of this PID equation are influenced by the gain ($$K_p$$) owing to algebraic distribution. However, the proportional term is also affected by the values of the integral and derivative tuning parameters ($$\tau_i$$ and $$\tau_d$$). Therefore, adjusting $$\tau_i$$ affects both the I and P actions, adjusting $$\tau_d$$ affects both the D and P actions, and adjusting $$K_p$$ affects all three actions.

This “interacting” equation is an artifact of certain pneumatic and electronic controller designs. Back when these were the dominant technologies, and PID controllers were modularly designed such that integral and derivative actions were separate hardware modules included in a controller at additional cost beyond proportional-only action, the easiest way to implement the integral and derivative actions was in a way that just happened to have an interactive effect on controller gain. In other words, this odd equation form was a sort of compromise made for the purpose of simplifying the physical design of the controller.

Interestingly enough, many digital PID controllers are programmed to implement the “interacting” PID equation even though it is no longer an artifact of controller hardware. The rationale for this programming is to have the digital controller behave identically to the legacy analog electronic or pneumatic controller it is replacing. This way, the proven tuning parameters of the old controller may be plugged into the new digital controller, yielding the same results. In essence, this is a form of “backward compatibility” between digital PID control and analog (electronic or pneumatic) PID control.

Published under the terms and conditions of the Creative Commons Attribution 4.0 International Public License 