![](/images/new-backgrounds/1290094/290094519x1.webp)
4 |
As described in Table
PID Algorithm Selection (PIDISA or PIDIND) and Gains
The PID block can be programmed selecting either the Independent (PID_IND) term or standard ISA (PID_ISA) versions of the PID algorithm. The only difference in the algorithms is how the Integral and Derivative gains are defined. To understand the difference, you need to understand the following:
Both PID types calculate the Error term as SP – PV, which can be changed to Reverse Acting mode PV – SP if the Error Term (low bit 0 in the Config Word %Ref+12) is set to 1. Reverse Acting mode may be used if you want the CV output to move in the opposite direction from PV input changes (CV down for PV up) rather than the normal CV up for PV up.
Error = (SP – PV) | or (PV – SP) if low bit of Config Word set to 1 |
The Derivative is normally based on the change of the Error term since the last PID solution, which may cause a large change in the output if the SP value is changed. If this is not desired, the third bit of the Config Word can be set to 1 to calculate the Derivative based on the change of the PV. The dt (or Delta Time) is determined by subtracting the last PID solution clock time for this block from the current PLC elapsed time clock.
dt = Current PLC Elapsed Time clock – PLC Elapsed Time Clock at Last PID solution
Derivative = (Error – previous Error)/dt | or (PV – previous PV)/dt if 3rd bit of Config |
| Word set to 1 |
The Independent term PID (PID_IND) algorithm calculates the output as:
PID Output = Kp * Error + Ki * Error * dt + Kd * Derivative + CV Bias
The standard ISA (PID_ISA) algorithm has a different form:
PID Output = Kc * (Error + Error * dt/Ti + Td * Derivative) + CV Bias
where Kc is the controller gain, and Ti is the Integral time and Td is the Derivative time. The advantage of ISA is that adjusting the Kc changes the contribution for the integral and derivative terms as well as the proportional one, which may make loop tuning easier. If you have PID gains in terms or Ti and Td, use
Kp = Kc | Ki = Kc/Ti | and | Kd = Kc/Td |
to convert them to use as PID User Parameter inputs.
The CV Bias term above is an additive term separate from the PID components. It may be required if you are using only Proportional Kp gain and you want the CV to be a
Chapter 4 Series |