In this section, you will control the temperature of a soldering
bit. This demo example ran on a real life setup (in Real Time mode),
but you will run it here under File mode. Start RaPID in File mode
and load the demo project ``Temperature control of a soldering bit''
through the file menu File
Demo Projects. When you load the demo
project, not only the project is loaded, but also an open loop process
input and output signal. Figure 8.32 shows the main
``Data Acquisition'' window after the project was loaded.
You have to control the temperature of a soldering bit. The temperature is measured with a thermocouple of type K2 located in the tip of the bit and typically ranges between 20 and 200 degrees Celsius.
The temperature is influenced by two sources. First there is the resistor in the bit, which is normally used to maintain the temperature. The power to the resistor is ``Pulse Width Modulated'' by an Omron E5CK digital controller. Secondly, there is a constant flow of fresh air coming from a ventilator at constant speed (this one can not be regulated).
The control task is to bring the temperature as fast as possible from 80 to 150 degrees, with a small overshoot (1 % is allowed). Sampling time of the signals is 0.25 seconds.
The process data of Figure 8.32 is automatically loaded at startup. The excitation signal (process input) is chosen such that it averages 25 % over the whole range. The maximally attained temperature is about 141 degrees.
Normally (when not using demo projects) you would start RaPID in
File mode, define the project through File
New Project and define
the input excitation signal through Experiment
Define Input. You
would then save this excitation signal in a .mat or .txt
file and apply it to the process (off line). Afterwards you would
load the measured process input and output data into RaPID (as was
done automatically when you loaded the demo project).
In the preprocessing, use no integrator, no filtering and use the full measurement (no data truncation). Use for the process output the initial value (ambient temperature = 23.9 degrees) and for the process input the user defined value 0. Use two poles and no zeros. The delay can be easily seen from inspection of the bar plot to be 2.75 seconds. The identification error is 2.8 %.
Look at the model properties and numerics to find out more about the model. The rise time is 155 seconds and settling time 255 seconds.
Since you want to track the reference signal as close as possible, you should put the mode to ``Tracking Only'' in the ``Control Design Parameter'' window. An overshoot of 1 % is allowed. You need about 9 % initial heat to sustain the 80 degrees initial temperature. The reference you have to track is a step input from 80 to 150 degrees.
The initially computed controller is not very good. However, since there is hardly any noise on the signals, you can easily increase the ``HF Gain''. Set it to 20. The speed is clearly increased. Now turn of the load signal and set the reference signal to step up at 50 seconds and to be 140 seconds long.
With the menu Edit
Controller you can inspect the controller
parameters: proportional band = 10.1, integral time = 24, derivative
time = 4 and alpa equal to 0.51. Note that they are given such
that you can directly type them into your Omron digital controller.
Save this controller as the benchmark controller with the menu Edit
Designed
Benchmark Controller
Go to the ``Closed Loop Data Acquisition'' window to validate the
design. Load the data $RaPID\examples\data\solder1.dat, which
is the closed loop data with the above controller implemented on the
real plant. The correspondence is reasonably good (except for the
initial startup from ambient temperature, which was not included in
the linear model). Save the data as benchmark data through the menu
Edit
Measured
Benchmark Data. You will now refine your model
with this closed loop data.
Switch to identification, but now with the closed loop data.
Truncate the measurement before 49 seconds, and use two times ``Initial
Value'' to detrend. Note that the nominal input heat is 10.6 %.
After the default model is computed, select Identification
Design
Parameters and set the ``Extra Output Offset'' to ``None'' (since now
you are fairly sure about the nominal points). Do a parameter sweep
with a delay from 2 to 3.5 seconds. The best model has 3
seconds delay, two poles and no zeros. Export it and check it's
properties (the identification error is 2.2 %).
Now turn your attention back to the ``Control Design'' window. Except for the ``initial Heat'' which should be set to 10.6 %, leave all settings as they are and re-compute. The resulting controller is a bit faster as the previous one (which you saved as benchmark) and has the following parameters: proportional band = 11.4, integral time = 27, derivative time = 4 and alpha equal to 0.39.
Go to the closed loop validation and load the data
$RaPID\examples\data\solder2.dat which is the real measured
data. The measurement confirms the predicted increase of speed. This
clearly illustrates how you can use closed loop information to refine
your controller design.