The Input fields of a PID loop are used for writing configuration data
to the PID loop, to manage the PID loop's mode, and to manage the Autotune
process. The Output fields of a PID loop are used to monitor the loop's
response to its configuration and the input values. These fields are updated
each time the PID instruction is executed as part of the ladder logic
scan. Refer to the following chart for complete lists of the input and
output fields, their data types, and acceptable ranges:
PID Structure Fields
|
Field |
Field Type |
Field Name |
Data Type |
Description |
.PV |
Input |
Process Variable |
Real |
The Process Variable (PV) is the input value that is being measured,
typically from an analog input.
|
.SP |
Input |
Setpoint |
Real |
The Set point is the target value that the PID loop wants the Process
Variable (PV) to reach.
|
.Gain |
Input |
Proportional |
Real |
The Gain (P) value sets the output of the PID loop proportional to the
change in the process variable (PV).
Larger values mean a faster output response since the larger the error,
the larger the proportional term compensation. But, an excessively large
proportional gain can lead to process instability and oscillation.
|
.Reset |
Input |
Integral |
Real |
The Reset (I) value determines how the PID loop
output will change based on the amount of time there is an error between
set point (SP) and the process variable (PV).
Larger values eliminate steady
state errors more slowly. The
trade-off is larger overshoot: any negative error integrated during transient
response must be integrated away by positive error before reaching steady
state.
A value of 0 disables the effect of this term in the PID calculation.
|
.Rate |
Input |
Derivative |
Real |
The Rate (D) value determines how the PID loop will respond based on
the rate of change in the process variable (PV).
Larger values decrease overshoot, but slow down transient response and
may lead to instability due to signal noise amplification in the differentiation
of the error.
|
.Bias |
Output |
Bias |
Real |
In some modes the Bias is used to provide bumpless transfer from automatic
to manual mode, and vice-versa. Bias is set equal to the actual output
value (with consideration of the Error term) when the loop is switched
from manual to automatic mode.
|
.Output |
Output |
Control Output |
Real |
The output value from the loop calculation.
|
.ErrorDB |
Input |
Error Deadband |
Real |
The Error Deadband designates the area around Error value where no action
will occur. The error deadband is the same above and below the setpoint.
If 'Enable Error Deadband' has been selected in the PID instruction, this
is where the deadband value is entered.
|
.DGainLmt |
Input |
Derivative Gain Limit |
Real |
If the magnitude of the loop calculation exceeds the derivative gain
limit, the derivative component will be clamped at the specified limit.
|
.SampleTime |
Input |
Loop Sample Time |
Integer |
The SampleTime value designates how often the loop calculation is performed.
The value is specified in milliseconds.
|
.Mode |
Output (read-only) |
Loop More |
Bit |
0 = Manual Mode
1 = Automatic Mode
|
.AutoTuning |
Output (read-only) |
Autotune Mode
|
Bit |
0 = No Autotune in progress
1 = Autotune in progress
|
.AutoTuneComp |
Output (read-only) |
Autotune Complete |
Bit |
0 = Autotune complete
1 = Autotune is running
|
.AutoTuningErr |
Output (read-only) |
Autotune Error |
Bit |
0 = Autotune completed successfully
1 = Autotune did not complete successfully, loop is not tuned.
|
.RanThisScan |
Output |
Loop calculation ran this scan |
|
0 = Loop Calculation was not performed on the current PLC scan
1 = Loop Calculation was performed on the current PLC scan
|
.Setup |
Input |
Setup Bits |
32-Bit Hex |
A DWord that allows the Bit fields to be accessed as a single data value
rather than through individual Bits.
|
.Tune |
Input |
Autotune |
Bit |
Initiates an Autotune:
0 = Stop Autotune
1 = Start Autotune
|
.TuningAlg |
Input |
Tuning Algorithm |
Bit |
Designates whether the Autotune should use an Open Loop or Closed loop
algorithm:
0 = Closed Loop
1 = Open Loop
|
.TunedParms |
Input |
Tuning Parameters |
Bit |
Designates whether the Autotune should use a PI or PID calculation:
0 = PI
1 = PID
|
.LastError |
Output (read-only) |
Error value |
Real |
The Computed Error value, that is, the difference between a measured
process variable (PV) and a desired setpoint (SP).
|