741
CHAPTER
15
Process Controllers
and Loop Tuning
SECTION
4
PLC Process
Applications
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
type of control for manufacturing processes. In fact, of all the PID configu-
rations shown in Figure 15-64, perhaps the most commonly used in PLCs is
the serial, modified derivative, PID configuration.
DIGITAL IMPLEMENTATION OF PID IN A PLC
A programmable controller system implements the PID control action
using a discrete, or digital, algorithm to update the control variable (CV).
For example, a modified serial PID controller may use the following
digital algorithm, where the current control variable output (CV
n
) is repre-
sented as:
CV CV K E E K K TE
KK
T
PV PV PV
nn Pnn PIsn
PD
s
nn n
=+−+ − − +
−− −−
()
()
() () () ()11 12
2
where:
CV n
CV n
K
K
K
En
En
T
PV n
n
n
P
I
D
n
n
s
n
=
=
=
=
=
=
=
=
=
−
−
the controller output at the th update
the controller output at the th minus one update
the proportional gain (in seconds, where appropriate)
the integral gain (in seconds, where appropriate)
the derivative gain (in seconds, where appropriate)
the error at the th update
the error at the th minus one update
the loop sample time in seconds
the process variable at the th
()
()
1
1
updateupdate
the process variable at the th minus one update
the process variable at the th minus two update
PV n
PV n
n
n
()
()
−
−
=
=
1
2
The loop sample time (T
s
) is the frequency of how often the PLC reads and
executes the integration and derivative terms in the algorithm equation. In
PLCs, this time can be selected from a range of 0.1 seconds to several hundred
seconds (e.g., 600 seconds, or 10 minutes) Figure 15-67 illustrates several
sampling rates. A small value of T
s
(fast update time) is desirable in a process
application where the process variable responds rapidly to control variable
changes. However, because large values of T
s
are necessary to evoke a stable
derivative action, the trade-off between a low and high T
s
value must be
balanced carefully to ensure a correct system response. Otherwise, the
derivative action can produce a bumpy action.