[ Team LiB ] Previous Section Next Section

M16.2 PID Controllers

Consider the continuous (analog) form of an ideal PID controller,

Equation M16.1

graphics/m16equ01.gif


We use a constant sample time, Dt, and the index k to represent the value of the continuous time signal at discrete step k. For example, the error at discrete sample time k is equal to the continuous system value at time t = tk.

Equation M16.2

graphics/m16equ02.gif


We approximate the integral term

Equation M16.3

graphics/m16equ03.gif


and the derivative term is approximated using backward finite differences:

Equation M16.4

graphics/m16equ04.gif


Substituting Equations (M16.2)–(M16.4) into Equation (M16.1), we find

Equation M16.5

graphics/m16equ05.gif


Notice that the manipulated variable action is calculated at discrete intervals. The most common way of implementing the discrete control actions on a continuous process is to assume a zero-order hold. A zero-order hold means that the control action is held constant between the sample times, and that the manipulated variable changes instantly at each sample time.

Equation (M16.5) is known as the position form of the discrete PID controller equation. The "velocity form" can be found by subtracting the position form at step k - 1 from that at step k:

Equation M16.6

graphics/m16equ06.gif


One of the major advantages to the velocity form of Equation (M16.6) is that it is naturally "antireset windup" (see Chapter 11 for a discussion of reset windup and procedures to prevent it). If the manipulated input saturates, the position form of Equation (M16.5) has an integral term that continues to accumulate, causing a potential windup problem.

Most of the PID control system design techniques covered earlier in this text (direct synthesis, IMC-based PID, etc.) should yield successful tuning parameters for the discrete PID version, if the sample time is sufficiently small. Generally, the sample time should be 0.01 to 0.1 times the dominant time constant. In practice, most digital control loops are sampled several times per second, which is far more frequently than is actually needed for most process systems.

Z-Transform Representation of PID Control

In the same way that Laplace transforms are used to characterize continuous-time systems, Z-transforms are used to represent the input-output relationships for discrete-time systems. Consider the discrete PID algorithm in Equation (M16.6). This can be written as

Equation M16.7

graphics/m16equ07.gif


where graphics/m16inequ01.gif

In an analogy to continuous-time systems, where we let u(s) represent the Laplace transform of u(t), we let u(z) represent the Z-transform of u(k). It is common to refer to z-1 as the backward shift operator:

graphics/m16equ07a.gif


handling e(k), etc., similarly, we can write Equation (M16.7) as

graphics/m16equ07b.gif


which can be written

Equation M16.8

graphics/m16equ08.gif


We can also multiply the numerator and denominator polynomials by z2/z2, to write

Equation M16.9

graphics/m16equ09.gif


Note that we can view this as an input-output block

graphics/m16fig01a.gif

A discrete closed-loop block diagram is similar to that of a continuous block diagram. The closed-loop relationship for a setpoint change is

Equation M16.10

graphics/m16equ10.gif


    [ Team LiB ] Previous Section Next Section