Control
Loop Case History 113
Protuner
Tuning Methodology Revealed
By
David Ender, President Techmation Inc., USA
Techmation
has never previously published details of their 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 brilliant mathematicians Nichols, Bode and
Nyquist, who produced the feedback control mathematics in the
1930’s, 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 never yet been
able to find any other one that can successfully perform tuning
on any type of industrial process dynamics as the Protuner does.
In
his early investigations into tuning, Dave Ender reached the
firm conclusion that model based tuning cannot work successfully
in the real world, even with the most sophisticated model that
one could construct.
For
example:

In
the real world of process control, even the sophisticated and
complex model shown above 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. The ramp response to a
step input is found in many process where mixing is done.
Ender
then decided that the only way to achieve ideal tuning was to be
able to follow the basic frequency theory as closely as
possible. This called for 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, 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 Transformation will
determine the exact Bode Plot of the process, and 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 will determine the desired optimum tuning for
the controller.
This
is how Techmation achieved this:
The
Protuner Loop Analysis Procedure firstly allows the user 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 the user determines will provide the best
and most robust tuning. When the real process variable contains
excessive noise in the measurement, the software has a Data Edit
function 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 is found by the user to minimize
the noise on the measurement. The Protuner Loop Analysis then
determines the optimum tuning for the controller with the
controller filter time constant determined by the user. 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 real processes in the real world.
At
this point in the discussion let’s discuss the methodology
employed by the Protuner Loop Analysis to determine the loop
transfer function.
The
Laplace Transformation of a time domain equation is:

The
Laplace transfer function of a process is the Laplace
transformation of the output Y(s) (process variable response)
divided by the Laplace transformation of the input X(s)
(controller output).
i.e.
Laplace Transformation of Process:

Or

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).
The
graphic in Figure 1 is a step test with the following process
transfer function


Figure
1 – Protuner Step Test on Multi-Order Process
As
described above, Figure 1 is a time domain plot of a multi-order
process with a 5th order lag plus deadtime function.
The test data goes from time zero to time 235.2 seconds and from
the Size display the graphs contain 23523 points.

Figure
2 – Point to Point of Test Data
When
a process is described as self-regulating the time domain
equations X(t) and Y(t) can be written as in this case as 23522
point to point lines connecting the 23523 points from the
beginning of the test to the end of the test data. The equation
for a straight line from the end of the test data to infinity is
then added to the real data to get two time domain equations
from time zero to time infinity made up of in this case of 23522
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 none the less it is exact. However
in this form it is not really usable for tuning controllers.
The
next step then 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 s’s.
Substituting
i for the Laplace
Operator s in Process Transfer Function:
Where

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 as function of angular frequency 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 3 – 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 with
the digital Laplace transformation 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
4 – Bode Plot at Thousands of Frequencies from Digital Laplace
Transform Overlaid with Bode Plot of 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.2degrees 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 Transformation 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 very good reasons that will be discussed
later, though in actual fact the Protuner technology does work
from either open or closed loop data as will be shown here:

Figure
5 – Closed Loop Response of the Same Multi-Order Process in
Figure 1 to Step Changes in Setpoint
The
data in Figure 5 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 6 below:

Figure
6 – 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
transformation is simply Laplace transformation 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.

Figure
7 – Bode Plot of Process Model Overlaid over Digital Laplace
Transformation of the Time Domain Data
As
shown in Figure 7 the Protuner Digital Laplace transformation of
the closed loop time domain data determined almost exactly the
same gain and phase shift of the process at all frequencies.
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 the tuning will be not be correct.
It
is not that the Protuner Digital Laplace Transformation
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 utilizing the multi-step 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.
Index to articles
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: Tel (011) 486-0567
Fax (011) 646-2385 E-Mail: michael.brown@mweb.co.za
|