User manual

IEC61131 User and Reference Manual
April 22, 2008
330
2111
2
nnnn
i
nnnn
ppp
T
R
e
T
T
eeKmm
where
nnn
pse
and: e = error
s = setpoint
p = process value
K = gain
T = execution period
T
i
= integral or reset time
R = rate gain
m = output
The above parameters are fully described below.
Setpoint
The setpoint is a floating-point value representing the desired value of the process value.
The error value is the difference between the process value and the setpoint.
error = process value setpoint (+/- deadband).
Process Value
The process value is a value that represents the actual state of the process being
controlled. See the Function Variables section above for the registers to use for the process
value input to the PIDD.
Gain
The proportional (P) part of the PID algorithm is the gain. A positive value of gain configures
a forward-acting PID controller and a negative value of gain configures a reverse acting
controller.
Reset Time
The integral (I) part of the PID algorithm is the reset time. This value, in seconds, controls
the reset gain (or magnitude of integral action) in a PI or PID controller. This is typically
referred to as Seconds Per Repeat. From the equation above it is seen that the integral
action of the PI or PID controller is a function of the reset time and the execution period
(cycle time). A smaller reset time provides more integral action and a larger reset time
provides less integral action. Valid range is any value greater than 0. A value of 0 disables
the reset action.
Rate Gain
The derivative (D) part of the PID algorithm is the rate time. This value, in seconds, controls
the rate gain (or magnitude of derivative action) in a PD or PID controller. From the equation
above it is seen that the derivative action of the PD or PID controller is a function of the rate
gain and the execution period (cycle time). A larger rate gain provides more derivative action
and a smaller rate gain provides less derivative action. Valid range is any value greater than
0. A value of 0 disables the rate action.