Keys to successful PID block performance

PID controllers may look similar across automation platforms, but differences in algorithms, gain structures, scaling and tuning parameters can produce very different results

Key Highlights

  • Ability to successfully tune a complex PID block independently of the controller vendor.
  • Best practices to address tuning parameters and configuration issues.

In this column, we will take a vendor agnostic look at the PID function blocks commonly used in the industry. We will examine key configuration parameters, highlight important differences and similarities, and discuss the critical settings and practical considerations that users should be aware of when configuring and tuning these controllers, utilizing knowledge in the ISA Technical Report ISA-TR5.9-2023 Proportional-Integral-Derivative (PID) Algorithms and Performance.

Greg: There are many practical considerations to ensure efficient and PID configuration. We’re fortunate to talk with Erik Cornelsen, who is the leading contributor to the ISA’s “Ask the Automation Pros” Q&A articles. Erik is an automation and process control engineer at DPS Group, a Scotland-based system integrator. With more than a decade of experience, he’s worked and lived in six countries, contributing to diverse industrial sectors, including food and beverage, logistics and construction materials. He holds a master’s degree in mechanical engineering from INSA de Lyon in France, and is a chartered engineer, member of the Institution of Mechanical Engineers in the U.K., and an active ISA member.

To begin, what are some points of comparison?

Erik: Here are some potential differences to be aware of:

  • Gain structure: Vendors use different gain conventions, with both dependent and independent approaches available. This needs to be understood before comparing tuning parameters.
  • Error and scaling: The platforms handle error and signal scaling differently, which could lead to different controller responses even with apparently identical PID values.
  • PID behavior: The implementation and weighting of P, I and D actions differ between platforms, so direct parameter-to-parameter comparison may not be valid.
  • Derivative action: Derivative implementation and filtering should be compared, particularly regarding sensitivity to process value (PV) noise and setpoint changes. Some vendors have additional parameters such as filter to the derivative term.
  • Tuning: Vendors provide some form of auto tuning, but the methods, licensing, availability and configuration requirements differ. The resulting tuning performance should therefore be compared and validated during commissioning.
  • Controller response: Reverse/direct action and default settings differ, creating a potential source of configuration mismatch when migrating between PLC platforms.
  • Transition behavior: Anti-windup and bumpless transfer are generally supported, but their implementation and behavior should be tested under the same operating conditions.
  • Parameter mapping: A common conversion methodology is required rather than assuming that PID parameters from one platform can be directly transferred to another.
  • Overall comparison: The main differences are not simply in the available PID features, but in how the algorithms implement and interpret the parameters. Equivalent process performance should therefore be used as the basis for comparison and validation.

Greg: What should we consider from the start?

Erik: Here are the top 10 things to be addressed.  

  1. Monitor the controller output (CO) and be vigilant when it is saturated as this may be limiting the capability to control the process and can create an integral error windup issue.
  2. Identify whether the PID algorithm uses dependent or independent form, as the default mode for each vendor as well as the tuning parameters depending on the mode will differ.
  3. Verify whether the control error is calculated using percent of span or engineering units, since the selected method affects the effective loop gain and tuning.
  4. Treat autotuning as a starting point only and always validate and refine the tuning manually during commissioning.
  5. Select reverse acting mode when the process gain is negative (P) decreases as the CO increases), and direct acting mode when the process gain is positive (PV increases as CO increases).
  6. Enable integral anti windup to prevent integral accumulation when CO reaches its limits.
  7. If PV is noisy, apply a low pass filter to reduce measurement noise and unnecessary control action.
  8. Apply derivative action to the PV rather than the control error to eliminate derivative kick during setpoint changes.
  9. Eliminate valve stiction, backlash, and lags (sensor or process) to improve resolution and response time before tuning, as these problems cannot be corrected by PID adjustments.
  10. Measure the process gain, deadtime and time constant before tuning, as effective controller settings depend on the process dynamics. If it is an existing plant with a similar running process, it is relatively easy to build a simplified simulator for a simple first-order plus deadtime process.

Get your subscription to Control's tri-weekly newsletter.

Greg: I prefer to use the term open loop gain than the more commonly used term process gain for PID tuning. I do this so that users realize that the open loop gain seen by a PID is the product of a manipulated variable gain (e.g., change in manipulated flow divided by change in CO such as control valve installed characteristic slope), process gain (e.g., change in PV divided a change in manipulated flow), and the measurement gain (e.g., change measurement scale for a change in PV).

We also need to be aware that some PID algorithms use a parallel form with an integral gain setting instead of reset setting and a derivate gain setting instead of rate time setting. Also, for the series form, interaction effects prevent the effective rate time from exceeding the reset time. We must be aware of the need to enforce this limitation on derivative action relative to integral action in other PID Forms. It is wise to use the ISA TR5.9-2023 to learn units of tuning settings, implications of PID Structures and Forms, and how to convert tuning settings between Forms. Also, the report provides guidance on the effect of PID tuning and process dynamics on loop performance and the use signal characterization, valve positioners, and deadtime compensation. 

Processes with a primary process time constant that is more than four times the total loop dead time, should be treated as a near-integrating process and integrating process tuning rules used. Highly exothermic reactors can have a runaway response requiring much more aggressive proportional and derivative mode action.

The integral mode is favored by operators and users because it is constantly trying to eliminate error. Unfortunately, integral action has no sense of direction and is never satisfied leading to overshoot and limit cycles from valve backlash and extremely slow oscillation in near integrating and integrating processes. In many temperature loops, I have seen reset times that needed to be increased by two orders of magnitude.

The PID has been proven to be nearly optimal for rejection of process input disturbances termed load disturbances. Nearly all disturbances occur as process inputs, but some academics show the disturbances on process outputs with severe consequences in terms of tuning. A large primary process lag is viewed by these academics as detrimental because the disturbance is fully seen since it visualized as on process output with primary lag slowing down correction of disturbance whereas since the disturbance upstream of primary process lag, the lag slows down the effect of the disturbance and enables a much larger PID gain. Both Greg Shinskey and I did our best to raise this awareness and advocate first tuning for load disturbances. The test for PID tuning capability to reject load disturbances is simply done by momentarily putting the PID in manual and making a PID output change. After PID tuning for load disturbances is confirmed, then a setpoint lead-lag or setpoint weights are used to achieve the desired setpoint response.

An extremely disruptive effect is when the PID algorithm works in engineering units (EU) instead of percent of controlled and manipulated variable. Some PLCs and a lot of academic PIDs work in EU. Just think how this would affect the process gain and tuning of a flow PID with a scale of 0 to 10,000 pph. The typical 0.2 PID gain would need to be 0.002 for the flow loop. When I ran into this on checkout of a system upgrade, I developed a Rough-n-Ready auto tuner that identifies the ultimate period and ultimate gain by cycling the PID output and looking at the period and amplitude of the oscillations. The first cycle takes one dead time. Subsequent cycles each take about two deadtimes. Thus, for a minimum of three cycles, the tuner will take about five deadtimes to give results which is much faster than for most auto tuners. For the extreme case of a PID algorithm working in EU, the auto tuner scale must be the PV scale in EU instead of 0 to 100%.

About the Author

Greg McMillan

Greg McMillan

Columnist

Greg McMillan retired as a senior fellow at Solutia Inc., now a subsidiary of Eastman Chemical, in 2002. He was an adjunct professor in Washington University Saint Louis’ Chemical Engineering Department 2002-04, and retired as a principal senior software developer at Emerson Automation Solutions in 2024.

Sign up for our eNewsletters
Get the latest news and updates