Chapter 7. PID Built-In Function Block
356
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
7.4.1
Derivative Term
The Derivative Term is Kd (word 7 of the reference array) multiplied by the time rate of change of the
Error term in the interval since the last PID solution.
Derivative = Kd *
Δ
error / dt = Kd * (Error
–
previous Error) / dt
where
dt = Current controller time
–
controller time at previous PID solution.
Two bits in the Config Word (word 13 of the reference array) affect the calculation of
Δ
error: Error
Term Mode and Derivative Action. For additional information about the operation of these bits, refer
to
7.4.2
Error Term Mode
The sign of the Error term is determined by the value of a mode bit in the reference array for the PID
function.
In
reverse acting
mode, the change in the error term is:
Δ
error = (Error
–
previous Error) =
Δ
SP
–
Δ
PV
where
Δ
PV = (PV
–
previous PV), and
Δ
SP = (SP
–
previous SP).
However, in
direct acting
mode, the error term is (PV
–
SP), the sign of the change in the error term is
reversed:
Δ
error = (Error
–
previous Error) = =
Δ
PV
–
Δ
SP.
7.4.3
Derivative Action on PV Bit
By default, the change in the error term depends on changes in both SP and PV. If SP is constant,
Δ
SP = 0, and SP has no effect on the derivative term. When SP changes, however, it can cause large
transient swings in the derivative term and hence the output. Loop stability can be improved by
eliminating the effect of SP changes on the derivative term.
To calculate the Derivative based only on the change in PV, set bit 2 of the Config Word to 1. This
modifies the equations above by assuming SP is constant (
Δ
SP = 0).
7.4.4
Combined Operation of Error Term and Derivative Action Modes
Bit 0 of Config Word
Bit 2 of Config Word
Error Term Value
Value Error Term Mode
Value Derivative Action
0
Reverse Acting (default) 0
Δ
SP included
Δ
SP
–
Δ
PV
1
Direct Acting
0
Δ
SP included
Δ
PV
–
Δ
SP
0
Reverse Acting (default) 1
Δ
SP ignored
–
Δ
PV
1
Direct Acting
1
Δ
SP ignored
Δ
PV
Summary of Contents for PACSystems RSTi-EP
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...