What Sample Rate is Needed When Tuning PID Controllers?

Sample Rates May Vary from Loop to Loop …The Importance of Good Data Doesn’t!

Practitioners often apply simple guidelines when it comes to data collection requirements and controller tuning. These “rules of thumb” assure that sufficient data resolution exists when a given PID control loop’s dynamics are being analyzed. Without good data a process engineer’s ability to model the dynamics and tune for improved control can be undermined. If the sample rate is too slow, then most any tuning procedure will be hit-or-miss at best. So what exactly are those guidelines?

Approaches range from simplistic “rules of thumb” to scientific methods (e.g. Nyquist-Shannon sampling theorem). On the easier end of the spectrum its commonplace to stipulate sample rates of 1 second or faster for Flow loops and 1-2 seconds for Pressure. Such loops react very quickly to changes in Controller Output. Not far behind are rates of 2-5 seconds for many Temperature and Level loops which characteristically possess slower dynamics.

When considering sample rate from a scientific or mathematical perspective, the guidelines are a bit more involved and beyond the scope of this blog post. Still, it’s generally accepted best-practice for the sample rate to be based on frequency or time-based components of the process data. Basic formulas propose the use of data that is either 5-10 times faster than the Process Time Constant or 3-5 times faster than the Process Dead-Time.

Beyond these approaches it is worthwhile to keep other considerations in mind:

  • Aliasing

Aliasing is like an illusion. It occurs when the sample rate is insufficient to provide an accurate depiction of a process’ dynamics. When this type of data is collected and plotted it can depict dynamics that are altogether inaccurate and misleading. Controller tuning parameters generated using this type of data can be counterproductive and even undermine safety.

  • Compression

Compression is an approach to data storage that helps manufacturers keep their IT overhead under control. One approach is to eliminate data according to a schedule. Another focused on change involves the elimination of data that remains constant. Regardless of the technique applied, compression can result in aliasing by limiting the resolution of data needed for process modeling and PID controller tuning.

  • Software

In order to provide good results, controller tuning software requires “good data”. So it’s no surprise that software’s value decreases steadily as the sample rate slows. Faced with poor data software can model for the Process Gain, but it loses the ability to provide meaningful values for either the Process Time Constant or the Process Dead-Time. In such instances old-fashioned trial-and-error testing is generally required to establish functional values for the associated controller tuning coefficients.

Guidelines for applying an effective sample rate are equally important to PID control loop tuning as they are to monitoring plant-wide control loop performance. If the data lacks sufficient resolution, then practitioners are in essence flying blind and limited in their ability to maintain safe and profitable operations. Best-practices for data collection and analysis are covered in the curriculum of most courses on process control.

These resources offer related content:

How Do I Calculate Gain? What Is the Difference Between Process Gain and Controller Gain?

Gain Is an Important Parameter So Important That There Are Two That You Need to Know Among practitioners who tune PID control loops manually most note their focus on calculating the Gain. What is sometimes overlooked is that there are two different Gain values – one for the...

Overview of Cascade Control

While Cascade Control is generally considered an advanced control strategy, it is only marginally more complex to implement than Single Loop Control.  More often than not it is applied to improve the performance of a slow process such as temperature that demonstrates sluggish behavior.  Essentially...

Why is Zeigler-Nichols the Wrong Choice for Your PID Controllers?

PID Control Loops Have Specific Purposes and Unique Attributes.  'One Size Fits All' Approaches to Tuning May Be a Recipe for Failure.    In 1909 Henry Ford famously offered customers any color of his Model T automobile as long as their choice was black. Ford's...

Still looking for more?

Now that you’ve gotten the basics, connect with our team to learn how our people, processes and technologies can help you optimize.