How Do You Convert Tuning Settings of an Independent PID?

The post How Do You Convert Tuning Settings of an Independent PID? first appeared on the ISA Interchange blog site.

The following technical discussion is  part of an occasional series showcasing the ISA Mentor Program, authored by Greg McMillan, industry consultant, author of numerous process control books and a retired Senior Fellow from Monsanto.

The PID controller has been used in more than 99 percent of the control loops in the process industry for the last 80-plus years. The loop performs only as well as the controller is tuned. Considerable confusion exists as to how the PID Form affects tuning settings. The lackmodern-industrial-plant of understanding of Form and units of settings can lead to disastrous results.

Users may not realize that the algorithm shown in text books often implies an Independent Form that is also known as the Parallel Form and consequential engineering units that are seldom used in the process industry. Some of these algorithms even imply the PID computation is done in engineering units rather than in percent of input and output scales that is almost universally done in industry. The lack of recognition of the Form and units employed by a PID algorithm can cause settings to be off by orders of magnitude.

ISA’s Mentor Program enables young professionals to access the wisdom and expertise of seasoned ISA members, and offers veteran ISA professionals the chance to share their wisdom and make a difference in someone’s career. Click this link to learn more about the ISA Mentor Program

Here we look at the Independent (Parallel) Form and how to convert settings to the ISA Standard Form that is also known as the Ideal Form. The answer also discusses the Series Form predominantly used in analog and early DCS controllers that is also known as the Interacting Form due to interaction of the derivative mode with the other modes settings in the time domain. Note that the tuning settings of the ISA Standard Form are non-interacting in the time domain but are interacting in the frequency domain. The inconsistent names for the Forms increase confusion.

I will be posting an occasional series of technical discussions from the ISA Mentor Program, with contributions from program participants. This question is from Héctor Torres, an original member of the ISA Mentor Program, with my answer and additional input from program participants Hunter Vegas (project engineering manager at Wunderlich-Malec) and Michel Ruel (executive director, engineering practice at BBA Inc.)

Héctor Torres’s Question

I am moving some PID’s currently residing in a PLC to a DCS. I would like taking advantage of the tuning already existing in the PLC to minimize commissioning time at startup.

This is the information I got about this control loops in the PLC:

Loop 1:
PID Type: Independent
Control Action: E=PV-SP
Settings:
Proportional:     0.9
Integral:             0.75 repeats /min
Derivative:         0 min

Loop 2:
PID Type: Independent
Control Action: E=SP-PV
Settings:
Proportional:     1.5
Integral:             0.50 repeats/min
Derivative:         0 min

How can I translate these tuning parameters to a Form commonly used in a today’s DCS. I would like to use the Series Form of the PID. We are migrating from an older DCS that used the Series Form. The new DCS offers the ISA Standard Form and the Series Form.

Greg McMillan’s Answer

My understanding is that the independent PID is what is more commonly called the parallel PID because the contribution of the modes is independent in the time domain because the PID gain is not applied to the contribution from the integral and derivative modes (see Figure K-3 in Appendix K of Tuning and Control Loop Performance – 4th Edition). Fortunately, your rate time is zero so we don’t need to be concerned about whether you are using the Series or ISA Standard Form. The gain for the independent PID is the same as the ISA Standard PID and for the case of zero rate time is also the same as the Series Form. One thing to be careful about is to make sure the PLC algorithm is working with signals in percent rather than engineering units. Nearly all DCS and most PLC PID algorithms work with signals in percent. The user must thoroughly test and confirm all changes are correct by a real-time simulation before using them in an actual plant.

convert-tuning-01Assuming the proportional settings are a dimensionless gain and not Proportional Band, the PID algorithm works in percent signals and the Independent PID is what we call the Parallel Form, the equivalent Series Form settings are:

Loop 1:
Gain = 0.9
Reset = 0.9 * 60/0.75 = 0.9 * 80 = 72 sec
Rate = 0 sec

Loop 2:
Gain = 1.5
Reset = 1.5 * 60/0.5 = 1.5 * 120 = 180 sec
Rate = 0 sec

It would be good if Michel and/or Hunter would check these results in case I am missing something or am in error in some way.

Hunter Vegas’s Answer

I didn’t work through Greg’s numbers but generally when I am faced with something like this I have been able to find “conversions” from one system to another. You didn’t specifically mention the PLC you were using but I have found tuning software packages can convert and even a scan on the internet can turn up some decent conversion equations. Do note that some PLCs have issues where scan time can alter the execution time of the PID block and effectively change your tuning constants accordingly.

Michel Ruel’s Answer

Be careful with terminology… most suppliers use independent for parallel and dependent for series but some suppliers use independent for ideal form and dependent for series. You need to look at the structure and read the description.

Greg McMillan’s Follow Up

If you scroll down on the webpage Comparison of PID Algorithms to the Parallel PID noted as the PID algorithm with “independence” you see the equations to convert from the Parallel Form to the Ideal Form (ISA Standard Form) are the same as the ones I used below and in my book but with different nomenclature. Some parallel algorithms have integral gain instead of an integral time (seconds) or the inverse of integral time (repeats/second) and a derivative gain rather than a derivative time.

The general methodology is:

Use Chapter 1 Equation 1.2b to convert the integral mode reset setting from repeats per minute to seconds (seconds per repeat).

Use Appendix K Equations K.7, K.8, and K.9 to convert settings from the Parallel PID (Independent PID) to the ISA Standard Form (Ideal PID).

convert-tuning-02

If the rate time is not zero and the integral time is much greater than four times the rate time, use Equations K.4, K.5, and K.6 to convert from the ISA Standard Form to the Series Form. Note that if the rate time is zero, Equations K.4 and K.5 show the Series Form settings are the same as the ISA Standard Form settings since the division by 2 is cancelled by the multiplication by 2.

convert-tuning-03

 

To convert the tuning settings from older DCS Series Form to the newer DCS default ISA Standard Form:

convert-tuning-04

Note that if the rate time is zero, the ISA Standard Form and Series Form settings are identical because the correction factor applied becomes 1. When using the ISA Standard Form, if the rate time is greater than one-fourth the reset time the response can become oscillatory. If the rate time exceeds the reset time, the response can become unstable from a reversal of action from these modes. The Series Form inherently prevents this instability by increasing the effective reset time as the rate time is increased.

Nomenclature:
convert-tuning-05

 

 

 

 

 

 


See the ISA book 101 Tips for a Successful Automation Career that grew out of this Mentor Program to gain concise and practical advice. See the InTech January/February 2013 feature article “Enabling new automation engineers” for the candid comments of some of the original program participants.