System Integration & Control Systems Design


Control loop case history 113

July 2010 System Integration & Control Systems Design

Protuner tuning methodology revealed.

Introduction by Michael Brown

Techmation has never previously published details of its patented Protuner tuning technology, which as far as I am aware is completely unique and not only uses the full frequency theory as postulated by the mathematicians, Nichols, Bode and Nyquist, who produced the feedback control mathematics in the 1930s, but it also uses expert rules to improve tuning response on particular types of process dynamics. It is a privilege to publish this world first in South African Instrumentation and Control. I personally have tested many tuning packages available on the market, and have yet to find another that can successfully perform tuning on any type of industrial process dynamics as successfully as the Protuner does.

In his early investigations into tuning Techmation president, Dave Ender, reached the conclusion that model-based tuning cannot work successfully in the real world, even with the most sophisticated model that one could construct. In the real world of process control, even the sophisticated and complex model as shown in the equation below may not be adequate to describe the real process. For example, the real process may be a ramp function as a response to a step input, as found in many process where mixing is done.

Ender decided that the only way to achieve ideal tuning was to be able to follow the basic frequency theory as closely as possible, but this requires dynamic operational testing by introducing oscillations at various frequencies into the process. Unfortunately one cannot test processes this way in real life for obvious reasons, quite apart from the tremendous time it would take. Therefore it was necessary to try and convert a step response taken in real-time into a proper full frequency response. Ender experimented with various methodologies including Fast Fourier and Z transforms, but eventually decided the only way to achieve the results he wanted was to perform a Laplace Transform digitally.

The Bode Plot obtained from the digital Laplace Transform will determine the exact Bode Plot of the process: then the tuning parameters can be found by combining the open loop Bode Plot with the Bode Plot of the controller to get the combined Bode Plot which determines the desired optimum tuning parameters for the controller.

In my next article, Case History 114 we will investigate how all this theory is put into practice by considering some real life examples with ‘as found’ tuning and then after optimisation with Protuner.

For now, let us focus on how Techmation achieved it.

Digital Laplace Transform of real test data

The Protuner Loop Analysis procedure allows users to determine the best response of the process variable to a step change in the controller output from which to find the optimum tuning parameters for the controller. Real processes are not always step-wise linear, but may have motion non-linearities such as dead band and hysteresis in the valve, and possibly non-linear installed characteristics. The Protuner allows the user to ‘window’ the test data that best identifies the process response that will provide the best and most robust tuning. When the real process variable contains excessive noise in the measurement, the software has an edit function that allows the user to draw through the noise to best describe the real response of the process variable and thus the true transfer function of the process upon which to base the tuning. If filtering is absolutely necessary, then the controller filter time constant must be found that best minimises the noise on the measurement. Protuner Loop Analysis then determines the optimum tuning for the controller based on this filter time constant. The Protuner was developed for testing and tuning real world processes and these features and functions give the user the tools to determine the process transfer function not only from perfect laboratory generated data, but also from test data recorded from processes in the real world.

At this point, let us discuss the methodology employed by Protuner Loop Analysis to determine the loop transfer function.

The Laplace Transform of a time domain equation is:

The Laplace transfer function of a process is the Laplace Transform of the output Y(s) (process variable response) divided by the Laplace Transform of the input X(s) (controller output), ie:

The time domain equations above {f(t)} and {Y(t) and X(t)} must be equations from time zero to time infinity so that the time domain equation can be converted into the Laplace domain. However, in step testing a real process we only have data from the beginning of the test to the end of the test, and not to infinity to describe both X(t) and Y(t).

Figure 1 is a step test with the following process transfer function

Figure 1. Protuner step test on multi-order process
Figure 1. Protuner step test on multi-order process

The graph shows a time domain plot of a multi-order process with a fifth order lag plus deadtime function, going from time zero to time 235,2 seconds and containing 23 523 points.

When a process is described as self-regulating the time domain equations X(t) and Y(t) can be written, in this case, as 23 522 point to point lines connecting the 23 523 points from the beginning of the test data to the end. The equation for a straight line from the end of the test data to infinity is then added to get two time domain equations from zero to infinity, made up of 23 523 individual equations.

Integrating the two continuous time domain equations from time zero to time infinity e-st we now have a Laplace transformation of the process of P(s) which exactly describes the real transfer function of the process. The Laplace transfer function is not like any standard function typically seen or written with the leads and lags described but nonetheless it is exact. However, in this form it is not really usable for tuning controllers.

The next step in the analysis is to make the data useful. The digital Laplace transform that describes the process contains the Laplace operator s. In fact it contains thousands of them. Substituting iω for the Laplace Operator s in Process Transfer Function:

At this point we now have a process transfer function where the only unknown is the angular frequency ω. If we now separate all the real and imaginary components we have transfer functions in the format that follows, and the dynamic gain and phase shift are:

Dynamic gain and phase shift can now be plotted as a function of angular frequency in the well known Bode, Nichols, and Nyquist plot formats (Figure 2).

Figure 2. Bode Plot of multi-order process from time domain data in Figure 1
Figure 2. Bode Plot of multi-order process from time domain data in Figure 1

The question of how well the Bode Plot of the process as found using the digital Laplace Transform matches the Bode Plot of the actual fifth-order equation can be found by clicking on the Model tab and entering the real model time constants and over laying the Bode Plots (Figure 3).

Figure 3. Bode Plot at thousands of frequencies from digital Laplace Transform overlaid with actual model data
Figure 3. Bode Plot at thousands of frequencies from digital Laplace Transform overlaid with actual model data

The single curser point shown at an angular frequency of 0,06711 radians per second found the model gain (M) and the process gain (P) both to be almost exactly -6,72 db. The phase shift of the process (P) was found to -163,2 degrees vs. the model (M) phase shift of -162,5 degrees. The model and process phase shift is not exact but very close. The slight difference in the phase shift between the process and the model is a function of sample rate at which the data is taken. However, for all practical purposes, the digital Laplace transformation of time domain data is an exact solution of the real test data.

Digital Laplace Transform of closed loop test data

Many eminent people have said that it is better to tune from closed loop data rather than open loop steps, but Techmation does not recommend this for reasons that will be discussed later. In actual fact though, the Protuner technology will work from either open or closed loop data as will be shown here.

The data in Figure 4 is a closed loop response of the same transfer function used in the previous example to various setpoint changes. In this example, before the process reached steady-state a new setpoint change was made. In fact, seven setpoint changes were made before letting the process settle out at a new steady-state condition. The data was processed as before from the PV and controller output recordings as shown in Figure 5.

Figure 4. Closed loop response of the same multi-order process in Figure 1 to step changes in setpoint
Figure 4. Closed loop response of the same multi-order process in Figure 1 to step changes in setpoint

Figure 5. Changes in controller output and response of Process Variable in closed loop
Figure 5. Changes in controller output and response of Process Variable in closed loop

In this example the data is made up of 5880 points and therefore 5879 point to point lines from time zero to time 587,90 seconds with straight lines to time infinity. Since the digital Laplace Transform is simply the Laplace Transform of the input change (controller output) divided into the Laplace transform of the output (Process Variable response) one could reasonably expect the Protuner Bode Plot to be the same, and this in fact is achieved.

As shown in Figure 6 the Protuner Digital Laplace Transform of the closed loop time domain data determined almost exactly the same gain and phase shifts of the process at all frequencies.

Figure 6. Bode Plot of process model overlaid on digital Laplace Transform of the time domain data
Figure 6. Bode Plot of process model overlaid on digital Laplace Transform of the time domain data

Why does Techmation not recommend closed loop testing?

In the real world valves may have hysteresis plus deadband or simply stick when told to move, installed characteristics may not be linear, measurement signals are noisy, control loops can be interactive, and control strategies may be badly designed. These are only a few of the problems you may encounter. If the loop you are testing encounters such problems whilst performing under automatic control then the transfer function will not be correct, and thus neither will the tuning.

It is not that the Protuner Digital Laplace Transform methodology is incorrect. The test data is the culprit. Testing a system or loop with the Protuner is 90% trouble-shooting and learning how the process works and only 10% tuning. Open loop testing utilising the multistep procedure recommended by Techmation will help assure you that the data you are using to determine tuning truly represents the process you are trying to tune.

Michael Brown is a specialist in control loop optimisation, with many years of experience in process control instrumentation. His main activities are consulting, and teaching practical control loop analysis and optimisation. He gives training courses which can be held in clients’ plants, where students can have the added benefit of practising on live loops. His work takes him to plants all over South Africa, and also to other countries. He can be contacted at Michael Brown Control Engineering, +27(0)11 486 0567, [email protected], www.controlloop.co.za



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Powering southern Africa’s industrial evolution for over five decades
Oilpower System Integration & Control Systems Design
Established in 1974, Oilpower is a recognised name in South Africa’s hydraulic and pneumatic sector. What started as a small, family-run business has matured into a highly structured operation with specialised teams, experienced engineers and a reputation for technical excellence and reliability. Oilpower is celebrating its 50th anniversary this year

Read more...
Case History 198: Cascade control overcomes valve problems
Michael Brown Control Engineering Fieldbus & Industrial Networking
A large petrochemical refinery asked me to perform an audit on several critical base layer control loops. This article deals with a problem found on a valve controlling the flow of fuel to a heat exchanger.

Read more...
Metal plant automation upgrade
ABB South Africa System Integration & Control Systems Design
A combined compressor house (CCH) control system replacement project, undertaken by NJC, an ABB Authorised Value Provider (AVP), has won high praise from client ArcelorMittal.

Read more...
Loop signature 28: Things to consider when tuning.
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
I was giving a course at a remote mine in the middle of the Namibian desert. We were discussing tuning responses, and as I always do on my courses, I mentioned that in my opinion ¼ amplitude damped tuning is not desirable, and is in fact not good.

Read more...
SIs - the channel’s conductors of light
Schneider Electric South Africa System Integration & Control Systems Design
Today’s original equipment manufacturers are innovators in the truest sense, driving the absolute newest in technological advancement. While they develop advanced and often groundbreaking solutions, it is the system integrators who bring these innovations to life.

Read more...
Case History 197: Bad reboiler temperature control.
Michael Brown Control Engineering Editor's Choice Flow Measurement & Control
It is very important that reboiler temperature controls operate well in petrochemical refineries, or the product quality can really suffer. I was asked to check such a control in a refinery where they were having problems with one of these controls.

Read more...
The state of the SI industry remains strong and is expanding
System Integration & Control Systems Design
The system integration (SI) industry is expanding with the adoption of AI, automation and data sharing, allowing companies to improve operational efficiency and competitiveness across diverse sectors.

Read more...
The symbiotic relationship between OEMs and SIs
Schneider Electric South Africa Editor's Choice System Integration & Control Systems Design
While businesses tend to turn directly to original equipment manufacturers OEMs or vendors when embarking on IT projects, the role of the SI as a key facilitator and partner cannot be overstated.

Read more...
Case History 196: Unstable condensate level control.
Michael Brown Control Engineering Editor's Choice Level Measurement & Control
The operators in a petrochemical refinery were having great trouble in trying to stabilise the condensate level in a vessel, and this was adversely affecting other loops downstream. Several unsuccessful attempts had been made to retune the controller.

Read more...
Flexible and precise dispensing technology
Beckhoff Automation System Integration & Control Systems Design
The Scheugenpflug ProcessModule axis system forms the basis of Atlas Copco’s dispensing and screwing cells and a flexible integration platform for general contractors and machine builders. Precise process sequences are ensured by TwinCAT CNC and servo drive technology from Beckhoff.

Read more...