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:

Case History 195: Unstable reboiler steam flow
Michael Brown Control Engineering Editor's Choice
A high-pressure steam flow control in a reboiler on a column in a petrochemical refinery continually cycled when placed in automatic. Several attempts had been made to tune the controller, but these had been unsuccessful.

Read more...
Loop signature 25: Tuning part 3 - Results of tuning a particular simple self-regulating process by several different methods.
Michael Brown Control Engineering Editor's Choice
A couple of SWAG methods of tuning were given in the previous Loop Signature article. I have tuned a simple self-regulating process using those methods, and two other tuning methods, one of them being the sophisticated Protuner tuning package, which is the system I employ. The tests were performed on a very accurate and powerful simulation package, and the results are compared below.

Read more...
The time is now for systems integrators
Editor's Choice System Integration & Control Systems Design
Integrators combine sophistication regarding technology innovation with practical, hands-on experience. Collaborating with systems integrators is the means to significant productivity improvement, powered by the convergence of automation and information and operations technology.

Read more...
System integrators are a diverse market
Editor's Choice System Integration & Control Systems Design
System integrators (SIs) combine expertise on emergent technologies with real world experience. Working with SIs, it’s inevitable that at some point someone will say, “We’re not a typical SI.” And in many ways, it’s true. SIs come in all shapes and sizes.

Read more...
Case history 194: Boiler level control problem.
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
A boiler level control in a petrochemical refinery was causing problems, as the level was cycling badly and taking a long time to recover from sudden load changes. In addition, there were frequent high-level alarms.

Read more...
Avoiding the pitfalls of PLC and scada control system integration
Iritron System Integration & Control Systems Design
Upgrading your control system by integrating PLCs with scada systems should be a simple seamless process. Regrettably, the industry is plagued with control system integration and upgrade myths and misconceptions that can lead to liability issues, project delays, cost overruns and decreased plant performance.

Read more...
EtherCAT measurement terminals for vehicle development at Mercedes-Benz
Beckhoff Automation System Integration & Control Systems Design
At the Mercedes Technology Centre plant in Sindelfingen, Germany, car axles are examined with the highest precision on four test benches, in parallel with road tests and simulations. All data is acquired using PC-based control from Beckhoff.

Read more...
Loop signature 23: Tuning Part 2.
Editor's Choice System Integration & Control Systems Design
It is my opinion that most tuning methods are very crude. They do of course also offer a starting point for tuning if one is not fortunate enough to have a sophisticated tuning package like a Protuner around.

Read more...
PIC microcontrollers with integrated FPGA features in TME
System Integration & Control Systems Design
The new PIC16F131xx microcontrollers in TME’s offering from Microchip are ideal for the evolving and miniaturising electronic equipment market, offering efficient power management and predictable response times for controllers.

Read more...
Five smart machine trends you need to know
Adroit Technologies System Integration & Control Systems Design
The last ten years have brought about dramatic advances in technologies that OEMs had never realised would affect their designs or the saleability of their machines, much less impact business models and profits so dramatically. The following discussion will cover key advancements and recommendations all OEMs should be adopting in their design processes to stay current and competitive.

Read more...