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:

Loop signature Part 2-4: Feedforward Control: Part 3
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
In the previous articles in this series, the basic theory behind feedforward control was discussed, and it was also shown how to apply feedforward in practice. In this article, it will be shown how well feedforward can work in practice by giving a couple of examples.

Read more...
Loop signature Part 2-3: Feedforward Control: Part 2
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
Feedforward control tuning is not nearly as critical as feedback tuning, and fairly simple models are usually fine for the purpose in hand.

Read more...
PCS Global
PCS Global System Integration & Control Systems Design
Project and industry: PCS Global led a digital infrastructure initiative in a southern African data centre setting, aiming to merge several essential operational systems into one cohesive platform. ...

Read more...
Seamless migration from ET 200M to ET 200SP HA for future-ready automation
Moore Process Controls System Integration & Control Systems Design
Project and industry: Moore Process Controls undertook a modernisation initiative spanning the mining, petrochemical, and oil & gas sectors. This project involved upgrading legacy Siemens ET200M I/O ...

Read more...
Loop signature Part 2-2: Feedforward Control: Part 1
Michael Brown Control Engineering Fieldbus & Industrial Networking
Feedforward control is a powerful technique that can dramatically improve control variance in cases where load changes cause big deviations from setpoint and the actual process dynamics are too slow to allow the feedback controller to operate fast enough to catch these disturbances.

Read more...
Proconics Modernises Refinery Tank Automation with Compliance-Focused, Brownfield Upgrades
Proconics System Integration & Control Systems Design
Project & Industry Proconics was engaged to modernise automation and SCADA systems across a refinery tank farm. The project involved complex brownfield integration, aligning new automation with existing ...

Read more...
Project & Industry
System Integration & Control Systems Design
Project: Upgrading essential automation and SCADA systems at a coal mine.    Outcome: A modern, stable automation and SCADA environment with reduced technical debt and easier support, ready for expansion. ...

Read more...
Major digital transformation project for Isuzu Motors
System Integration & Control Systems Design
Isuzu Motors South Africa, in partnership with NoMuda and S4 Integration, has kicked off a major two-year digital transformation project to modernise its production environment.

Read more...
Loop Signature Part 2-1: Loop signatures and process transfer functions
Michael Brown Control Engineering Fieldbus & Industrial Networking
The previous series of loop signature articles dealt with the basics of control loop optimisation, and concentrated on troubleshooting and ‘SWAG’ tuning of simple processes. In this new series, consideration will be given to dealing practically with more difficult issues like interactive processes, and with processes with much more complex dynamics.

Read more...
Modernising Vertical Filter Press Machines with Future-Focused Control Systems
Scibotron System Integration & Control Systems Design
Project and Industry Pressure Filter Specialists approached us to modernise vertical filter press machines for the Minerals and Metals industry. The goal was to improve reliability, reduce downtime, ...

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved