Learning PID loop tuning from an expert

Hands-on experience helps accelerate the PID learning curve.

12/03/2014


Figure 1: Small-capacity pumps are common in chemical plants, where they are used to control the liquid level inside storage tanks as well as a variety of other applications that require constant pressure throughout the chemical process. Courtesy: YaskawaSoon after graduating from college, I got a job at a chemical plant as an electrical and instrumentation technician. Being a young guy with little experience, my supervisor paired me up with a grizzled veteran named Tim. Of the many things I learned from Tim, one of the most valuable was a simple process for tuning a proportional, integral, and derivative (PID) control loop. I learned about basic control systems and how they worked as part of my education. Unfortunately, all of my experience with PID loops had been in textbooks. I never had the firsthand experience of tuning a PID control loop in the field.

My first chance at tuning a PID loop came during a trip with Tim to the ethylene production area on the west side of the chemical plant. An operator in the ethylene control room had placed a trouble call for a 500 gal chemical tank that was not maintaining an accurate level (see Figure 1). Tim reminded me that PID control loops can be found in a variety of applications that require constant control of liquid level, pressure, flow, temperature, or tension, to name a few. In this case, the operator was trying to keep a constant level in a 500 gal chemical additive tank that was a part of a chemical line process, but it was not working properly (see Figure 2). 

First things first

The first thing Tim taught me about PID control systems was the basic components. "The first thing you need is a setpoint signal," he said. In our situation, the setpoint signal was a 0-10 Vdc signal from a potentiometer in the control room that the operator used to set the level he wanted to maintain in the tank. "The second thing you need in your system is a feedback signal," said Tim. The feedback device in this case was a liquid level transducer that provided a 4-20 mA signal based on the level of the liquid in the tank. Tim explained that the last item required in the system is the actual PID controller.

Figure 2: This control system diagram is typical of a chemical plant chemical line process containing an additive tank. Courtesy: Yaskawa America Inc.

Although it has been quite a few years since I graduated from college, at that time, the controller was a self-standing module that received the setpoint and feedback signals and performed the PID number crunching. It provided a 4-20 mA output signal that controlled a valve that fed the tank. It also had a built-in small strip chart recorder that showed the liquid level over long periods of time. You can still purchase stand-alone PID control modules today, but the software can also be found in VFDs, and most commonly in PLCs and building control systems (see Figure 3). PID control loop software can be found inside of the PLC that runs an entire control room and provides a sophisticated graphical look of the entire control system on a variety of monitors and control desks. Even though today's PID graphics look much better than that old strip chart recorder, the PID control method used today is basically the same. 

The proof is in the testing

Figure 3: The output signal of a PID controller can be used to control a valve or can be fed to a VFD that controls the speed of a pump motor to control process flow or tank level. Courtesy: Yaskawa America Inc.When we got to the job site, the first thing we did was test the liquid level sensor, which provided feedback to the controller. After a few minutes, we determined the sensor was in good working order because it provided 4 mA at low level and 20 mA at high level. The next thing we checked was the setpoint signal. Tim stood in the control room and adjusted the potentiometer from minimum to maximum while I measured the signal where it connected to the PID module. The potentiometer was functioning properly and measured 0 Vdc at minimum and 10 Vdc at maximum. The last thing we checked was the valve itself. We connected a small variable milliamp supply that provided 4-20 mA to the valve and watched it open and close without a problem. So the culprit in our nonfunctioning PID control system appeared to be the PID module itself. A quick trip to the parts depot provided us with an identical replacement module and we headed back to the ethylene control room. I figured we would swap the module; adjust the proportional, integral, and derivative selector switches to the same settings as the old one; do a quick test of the system; and be back at the shop in time for lunch.

The PID module we used had three selector switches on the side: one for the proportional gain setting, one for the integral time setting, and one for the derivative time setting. In most cases, we would have set the selector switches on the new module to the identical settings of the old module and called it a day. But Tim thought we could improve on the performance of the control loop and saw a chance to teach me some of the finer points of PID loop tuning. 


<< First < Previous 1 2 Next > Last >>

CHRIS , NJ, United States, 12/04/14 12:44 PM:

Great article! Thanks John, and thanks Tim.
BILL , VA, United States, 12/09/14 04:26 PM:

Thanks for the insight. This will definately help with my PID loops.
JERRY , CO, United States, 12/09/14 09:32 PM:

Nice article with excellent practical info.
SYED , BANGLADESH, 12/10/14 08:24 PM:

This articles will help me to learn PID
HANAMANT , NC, United States, 12/15/14 09:26 AM:

Thanks for the article, and detailed explanation. It is very helpful.
JOHN , FL, United States, 12/15/14 10:37 AM:

I have seen so many articles related to PID control and as a control engineer I liked this the most, we all know the math behind and there is no need to focus on that, but the practical side is always missing in most articles and believe it or not, the practical application teach you a lot.
At this point in my career I am able to tune most loops in minutes following a similar approach..I always say..you have to use your 5 senses in a plant to really understand it...
Anonymous , 12/15/14 10:38 AM:

A good read but we only do trial and error tuning when we can't step the process. Typically we step the OP a few times, get the gain and time constant to the PV and calculate tuning parameters for a specific closed loop performance.
Onenojieide , Northwest Territories, Nigeria, 12/15/14 11:44 PM:

The article is useful and helpful
BAYODE , Non-US/Not Applicable, Nigeria, 12/17/14 05:41 AM:

This is educating
Nuri , Newfoundland and Labrador, Libya, 12/29/14 03:23 AM:

Thanks for the article, and detailed explanation and I hope read more about DCS automation control system
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
The Engineering Leaders Under 40 program identifies and gives recognition to young engineers who...
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Sensor-to-cloud interoperability; PID and digital control efficiency; Alarm management system design; Automotive industry advances
Make Big Data and Industrial Internet of Things work for you, 2017 Engineers' Choice Finalists, Avoid control design pitfalls, Managing IIoT processes
Engineering Leaders Under 40; System integration improving packaging operation; Process sensing; PID velocity; Cybersecurity and functional safety
This article collection contains several articles on the Industrial Internet of Things (IIoT) and how it is transforming manufacturing.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

SCADA at the junction, Managing risk through maintenance, Moving at the speed of data
Flexible offshore fire protection; Big Data's impact on operations; Bridging the skills gap; Identifying security risks
The digital oilfield: Utilizing Big Data can yield big savings; Virtualization a real solution; Tracking SIS performance
click me