4278 Use of Ms Office For Identification of Controlled Systems in Metallurgy and Optimal Setting of Controller Parameters
4278 Use of Ms Office For Identification of Controlled Systems in Metallurgy and Optimal Setting of Controller Parameters
1
Ondřej ZIMNÝ, 2Milan HEGER, 3Ivo ŠPIČKA, 4Lenka ŘEHÁČKOVÁ, 5Vlastimil NOVÁK
https://doi.org/10.37904/metal.2021.4278
Abstract
Nowadays, automatization is widespread in all areas of human endeavor because it reduces physical and
psychological strain, improves production, and increases economic and environmental benefits in the industry.
In the field of controlled machine aggregates of technological processes, an essential element of automation
is automatic control. The quality of automatic control always depends on the controller parameter settings of
the given system. Particularly in the metallurgical industry, the controller's optimal setting is critical because
even minor deviations from the optimum can lead to substantial financial losses, deterioration in product
quality, and adverse effects on the environment. To ensure quality setting, a sufficient mathematical description
of the controlled system is needed. A variety of methods and commercial applications have been developed
for the identification of dynamic systems and the setting of controller parameters. Nevertheless, the use of
these hi-tech programs requires skilled operators, and their training represents a considerable financial and
time burden. Besides, the acquisition of these programs is costly, especially for schools. Therefore, it is
appropriate for teaching purposes and technical practice to create a suitable alternative using a common type
of computer software such as MS Excel, a standard tool in many schools and work places. This paper presents
how to identify controlled systems and optimally set the controllers using MS Excel, namely, its add-in Solver,
based on the data of measured transition functions describing typical metallurgical aggregates. Such an
approach's main benefit is that the potential user does not know the programming code that identifies the
controlled systems and adjusts the controllers' optimal settings.
Keywords: Microsoft Excel, identification of controlled system in metallurgy, controller settings
1. INTRODUCTION
In metallurgy, production lines and their aggregates process vast amounts of materials and raw materials,
which place heavy demands on energy supply and heating media. Therefore, the optimization of all production
and service processes must be ensured. Any or even a slight deviation from the optimality causes significant
financial losses and places a burden on a company's budget. In terms of control of technological processes,
virtually every production machinery is equipped with various control systems. Among others, it is mainly the
control system performance that significantly determines the quality of the final products and reduces energy
consumption and relief in human resources management. The optimal setting of the controller is conditioned
by the knowledge of the mathematical description of the control system obtained by identification. This study
aims to make the possibility of calculating the optimal settings of controllers more accessible for users by using
MS Excel instead of expensive specialized software tools. It is noteworthy that the proposed procedure does
not require any programming knowledge.
May26- 28, 2021, Brno, Czech Republic, EU
𝑒 (𝑡 ) = 𝑤 (𝑡 ) − 𝑦 (𝑡 ) (1)
The following feedback block diagram characterizing the control system is presented below, see Figure 1.
Each control system should be optimally set. In other words, the controller's parameters should always
correspond to the parameters of the control system.
3. PLANT
In engineering practice, it is commonly assumed that the control system is described by Laplace image transfer
or by a linear differential equation with constant coefficients a i, bj in the form [1], [2]:
𝑎𝑛 𝑦 (𝑛)(𝑡) + 𝑎𝑛−1 𝑦 (𝑛−1) (𝑡) + ⋯ + 𝑎2 𝑦 ´´ (𝑡) + 𝑎1 𝑦 ´ (𝑡) + 𝑎0 𝑦(𝑡) = 𝑏0 𝑢(𝑡) + 𝑏1 𝑢´ (𝑡) + ⋯ + 𝑏𝑚 𝑢(𝑚)(𝑡) (2)
A specific mathematical description is obtained by using of the so-called control system identification. In this
process, the mathematical description of the system is often simplified but without a significant downgrade of
parameters. Mainly in the metallurgical industry, there are the following four basic types of control systems:
- proportional first order control system – used for, e.g., heating of surfaces, electric drives (rotational speed),
- proportional second order control system – used for, e.g., heating with different types of heat transfer,
- integral first order control system – used for, e.g., containers and tanks,
- integral second order control system – used for, e.g., electric drives (angles of rotation).
𝑌(𝑝) 𝑠 𝑘
𝐺𝑝𝐼 (𝑝) = 𝑈(𝑝) = (𝑇 𝑝+1) (3)
1
where: ks – is the gain of the system, T1 – is the time constant of the system, U(p) – is the input variable, Y(p)
– is the output variable.
May26- 28, 2021, Brno, Czech Republic, EU
Rearranging the equation and using the inverse Laplace transform, we obtain a differential equation in the
form:
Since ∆y = ynew - yold, one can easily obtain the expression for ynew:
(𝑘𝑠 𝑢−𝑦𝑜𝑙𝑑 )
𝑦𝑛𝑒𝑤 = ∆𝑡 + 𝑦𝑜𝑙𝑑 (6)
𝑇1
where: ∆t – is the time step, yold – is the old output value at a time lower by ∆t than the current time, ynew – is
the new output value calculated at a time higher by ∆t compared to the time when value yold was taken, u –
current value of system input variable.
It will be shown below how to comply with the correct time sequence and always calculate a new value of the
output variable in the spreadsheet based on this mathematical model.
Using the principles of block algebra, such a system can be seen as two systems of the first order connected
in series, as shown in Figure 2:
When the transfer functions are connected in series, they are multiplied, so that the original form of the transfer
function is obtained. Even though by multiplying the two brackets of the denominator of the particular functions,
a suitable form for a differential equation is obtained, it is better to use the models and the method of calculating
the proportional system of the first order already outlined. Then, the first controller will have directly the values
u(t) at the input. The output of the first controller will be the input of the second controller, so that the output of
the second controller will represent the output y(t) of the proportional second order control system. It is worth
mentioning that there are also oscillating proportional systems of second order, but these would be addressed
differently. In this case, a suitable form for calculation in MS Excel could be obtained using the state description
of such a system.
where: k3 – is the general gain constant, T3 – is the system integral time constant, U(p) – is the input variable,
Y(p) – is the output variable.
May26- 28, 2021, Brno, Czech Republic, EU
By a simple modification and using the inverse Laplace transform, we obtain a differential equation in the form:
1 𝑡
𝑇3 𝑦˙(𝑡) = 𝑢(𝑡) → 𝑦(𝑡) = 𝑇 ∫𝑡 1 𝑢(𝑡) 𝑑𝑡 (9)
3 0
For the numerical solution of this differential equation we will use the modified relation:
∆𝑦
𝑇3 ∆𝑡 = 𝑢 (10)
Since ∆y = ynew - yold, then the expression for ynew can be obtained:
𝑢
𝑦𝑛𝑒𝑤 = 𝑇 ∆𝑡 + 𝑦𝑜𝑙𝑑 (11)
3
𝑌(𝑝) 𝑘𝑠
𝐺𝑖𝐼𝐼 (𝑝) = = (12)
𝑈(𝑝) 𝑝(𝑇1 𝑝+1)
Applying the principles of block algebra, such a system can be interpreted as two systems of the first order
connected in series, as shown in Figure 3:
where: E – sum of squared deviations, yo - measured value of the identified object, ym - calculated value of the
model, R1 - first row of the table, Rn - last row of the table.
MS Excel also enables a plot of time dependence, from which the agreement of the courses is also evident.
May26- 28, 2021, Brno, Czech Republic, EU
To identify the parameters of the selected control system, the MS Excel add-in Solver is used. Among other
things, it allows finding the optimal values of independent variables (in our case, the searched system
parameters located within cells) so that the sum of squared deviations is minimized.
Figure 4 Making of a table for identification of proportional second order control system
Figure 5 Setting the solver parameters (5a), optimization results - finding system parameters (5b)
Figure 6 Measured and calculated transfer functions (6a), with 5% change in time constants (6b)
May26- 28, 2021, Brno, Czech Republic, EU
Figure 7 Example of calculated values by the model, quadratic deviation 301 of the measurement, and
calculated constants
To calculate the identification of the system parameters, the solver is used, set according to Figure 5a.
Figure 5b shows the optimal calculated parameters (constants) ks, T1 and T2 of the identified control system,
and the parameters intentionally changed by 5%. Figure 6 a presents a graph of the transfer functions
measured and calculated following the model after identification (both curves are almost overlapped).
Figure 6b shows both transfer functions when the time constants T 1 and T2 are changed by 5% compared to
the performed identification. An example of several rows of calculated table values after optimization is in
Figure 7.
Table 1 Optimal setting of controller parameters by the method of the required model (dynamic inversion)
TD – derivative time
Control system kr – controller gain TI – integral time constant
constant
By applying these relations when Tw = 25 s, we obtain the optimal adjustable parameters of the PID controller
for the identified system: kr = 1,849, TI = 44,662 s, TD = 4,977 s. The plot in Figure 6a shows the time course
of the resulting optimal control process.
8. CONCLUSION
The article presents the possibilities of using an accessible spreadsheet processor MS Excel and a solver for
identifying the most frequent types of control systems and for subsequent calculation of the optimal settings of
controllers in metallurgy. Given solution shows satisfactory results suitable for widespread use in technical
practice.
May26- 28, 2021, Brno, Czech Republic, EU
ACKNOWLEDGEMENTS
The work was created within the frame of projects No. SP 2021/23 and SP 2021/71
REFERENCES
[1] BALÁTĚ, J. Automatické řízení. 2. přeprac. vyd. Praha: BEN - technická literatura, 2004.
[2] VÍTEČEK, A., VÍTEČKOVÁ, M. Closed-loop control of mechatronic systems. Ed. 1st. Ostrava: VŠB - Technical
University of Ostrava, 2013.