Next Article in Journal
Stationary Hybrid Renewable Energy Systems for Railway Electrification: A Review
Next Article in Special Issue
Mathematical Modeling of Urea Reaction with Sulfuric Acid and Phosphoric Acid to Produce Ammonium Sulfate and Ammonium Dihydrogen Phosphate Respectively
Previous Article in Journal
Simulation of Perovskite Solar Cells Optimized by the Inverse Planar Method in SILVACO: 3D Electrical and Optical Models
Previous Article in Special Issue
Evaluating the Effect of Demand Response Programs (DRPs) on Robust Optimal Sizing of Islanded Microgrids
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Relay Identification Using Shifting Method for PID Controller Tuning

Department of Instrumentation and Control Engineering, Faculty of Mechanical Engineering, Czech Technical University in Prague, 166 07 Prague, Czech Republic
Energies 2021, 14(18), 5945; https://doi.org/10.3390/en14185945
Submission received: 10 August 2021 / Revised: 1 September 2021 / Accepted: 16 September 2021 / Published: 18 September 2021
(This article belongs to the Special Issue Frontier (2021): Process Engineering and Control Systems)

Abstract

:
The aim of this study was to present a relay shifting method for relay feedback identification of dynamical systems suitable for PID controller tuning. The proposed technique uses a biased relay to determine frequency response points from a single experiment without any assumptions about a model transfer function. The method is applicable for open-loop stable, unstable, and integration processes, even with a delay, and regardless of whether they are oscillating or non-oscillating. The core of this technique was formed by the so-called relay shifting filter. In this study, the method was applied to a parameter estimation of a second-order time-delayed (SOTD) model that can describe, with acceptable accuracy, the dynamics of most processes (even with a transport delay) near the operating point. Simultaneously, a parameter setting for the PID controller was derived based on the model parameters. The applicability of the proposed method was demonstrated on various simulated processes and tested on real laboratory apparatuses.

1. Introduction

In the process industry, relay feedback identification is popularly used for estimating model parameters. The relay control was originally used for process identification by Rotač [1]. This approach has been increasingly explored in recent years due to the relay feedback method suggested by Åström and Hägglund [2] for PID controller tuning. In the relay feedback test, the period of oscillation and the amplitude of the process output were measured. The critical gain and the critical frequency were determined by the describing function. For more details about the describing function, see [3]. The same parameters can also be estimated using the continuous cycling method by Ziegler and Nichols [4]. However, with the relay feedback method proposed by Åström and Hägglund, one can obtain these parameters without a priori information about the process in a controlled manner and in a shorter time. The critical frequency and the critical gain can be utilized for the estimation of one point on the process frequency response. However, the knowledge of one frequency point only allows for the estimation of two model parameters. Therefore, models with a relatively small number of parameters are predominantly used for modeling. Most often, these are first- or second-order time-delayed linear models. To obtain the model parameters of these simple models from the relay feedback test, Luyben [5] assumed that the steady-state gain was already known and estimated the dead time from the initial response. Shen et al. [6] suggested using a biased relay for the steady-state gain estimation. Li et al. [7] proposed using two relay feedback tests, wherein the second test runs with an additional transport delay. Be et al. showed that multiple frequency response points can be estimated from a single relay feedback test using a parasitic relay and the FFT algorithm [8]. In [9], Chidambaram and Sathe describe another possibility, in which the exponential attenuation factor of the expression is used in the Laplace transform. At present, more publications exist that are devoted to relay-based parametric estimation techniques for control purposes. A summary of the obtained results can be found in survey publications, for example, [9,10,11,12,13,14].
The existing relay identification methods often assume that the processes are at a steady state, use several relay feedback tests, do not consider disturbances, and pre-suppose knowledge about the transport delay or the static gain. Most methods are further associated with the type of process (underdamped/overdamped, stable/integrating/unstable). In the work by Sánchéz et al. [15], it is shown that there are only two methods for measuring several frequency response points in only one relay experiment. The first one is based on the Laplace transform of input and output, for example, [9,16], and the second method is the shifting method described in [17,18]. The extension of the basic shifting method and its use for overdamped systems is described in [15].
The aim of this paper is to present the relay shifting method for identifying various types of dynamical systems and for tuning PID controllers. First, the relay shifting method was derived, which helps to determine multiple frequency response points from a single experiment without any assumptions about the model transfer function. Then the proposed method was applied to fit the SOTD model to a wide range of processes with various properties (underdamped/overdamped, stable/integrating/unstable, and time-delayed systems). A derivation of PID controller parameters for the control of the stable process described by the SOTD model is given in Section 6. Section 5 and Section 7 describe the experimental results. Finally, the essential properties of the shifting method are summarized.

2. Relay Shifting Method

Background

Let us consider a time-invariant process that can be described by the frequency response function GP(jω) around its operating point, where j is the imaginary unit and ω is the angular frequency. The process is kept near the operating point by a two-position asymmetric relay; see Figure 1, where y denotes the controlled variable, w is the desired variable, e is the control error and u is the manipulated variable. Figure 2 shows the static characteristics of the relay with hysteresis, where the parameters uA, uB are selected so that there is a stable oscillation with the period Tp (Tp = T1 + T2, T1 ≠ T2) (see Figure 3). The parameters εA, εB help to reduce the influence of a noisy environment. The hysteresis helps reduce the effects of measurement noise by enabling noiseless control action and increases the period of oscillation. It is recommended to adjust the hysteresis to 2–3 times the noise level [19]. The experimental time corresponds to approximately 3 to 4 periods of Tp [13].
The core of the method consists of a simple calculation of the auxiliary variables un(t) and yn(t), n = 2, 3, …, N from the measured courses y1(t) ≡ y(t) and u1(t) ≡ u(t) using the following relations:
u n t = k = 0 n 1 u 1 t k T P n
y n t = k = 0 n 1 y 1 t k T P n
The calculated variables yn(t) and un(t), n = 2, 3, …, N are periodic with the period TP/n if the measured variables u1(t) and y1(t) are periodic with the period TP. In our case, we assume t > tL, where tL is the time when the stable oscillation is achieved. In Figure 4, the time courses of the measured variables u1(t) and y1(t) are depicted together with the calculated variables yn(t) and un(t), n = 2, 3 for illustration. The relationships (1) and (2) describe the shifting filter with the following frequency transfer function:
F n j ω = k = 0 n 1 e j ω k T p n
and it holds.
F n j ω = n for   ω = n 2 π / T P 0 for   ω = k 2 π / T P , k = 1 , 2 , , n 1
The shifting filter Fn filters out lower harmonics and amplifies the n-th harmonic.
The frequency response points G(k), k = 1, 2, …, N can be determined by one of the following procedures ((a) or (b)):
(a)
G j ω k = t t + T P y k τ e j ω k τ d τ t t + T P u k τ e j ω k τ d τ , t > t L , k = 1 , 2 , , N
where
ω k = k 2 π T P
The integrals in the numerators are calculated by numerical integration. The great advantage of the relay shifting method is that without assuming any model structure, it is possible to estimate the frequency response points G(k), k = 1, 2, …, N from a single relay test.
(b) The position G(k) can also be determined without the utilization of Relation (5) using the approximation of the periodic signals uk(t) and yk(t) for k = 1, 2, …, N, t > tL by harmonic functions and by determining their amplitude ratio and phase shift (see [17] for example).
The real and imaginary parts (Re[G(k)] and Im[G(k)]) or the amplitude ratio |G(k)| and the phase shift arg(G(k)) determine two conditions for each frequency response point G(k). This gives us 2N conditions for fitting a model from N frequency response points G(k), k = 1, 2, …, N.
If we know the static gain K of a proportional system, then the frequency response point G(0) is determined too. This point can also be estimated from a single relay test by the following formula (see [6,20]) if the operating point (u0,y0) is known since the shifting method uses the biased relay.
G 0 = K = t t + T p y τ y 0 d τ t t + T p u τ u 0 d τ , t > t L

3. Model Fitting

Let us assume that a process can be described by a model transfer function, as follows:
M s = b 0 + b 1 s + + b m s m a 0 + a 1 s + a n s n e s T d , n m
where s is the complex variable in the Laplace transform, a0, a1, …, an, b0, b1, …, bm R , and Td is a transport delay. Then the parameters a0, a1, , an, b0, b1, …, bm, and Td can be estimated using the frequency response points G(k), k = 1, 2, …, N by iterative calculation if the selected value of N is (n + m + 3)/2. If the process is at a steady state, we can obtain the time delay from the initial output response to the relay test and determine the other parameters by the least-squares method (LSM), for example, [21]. The LSM can also be used for parameter fitting if a rational (Padé) approximation of the transport delay term is substituted.
The previous theoretical result is not directly usable for practical applications because we must consider the initial conditions, the precision of measurement, the position of the frequency response points, the choice of the linear model structure, the influence of disturbances, numerical aspects, and so on.
Our goal was to find a mathematical model that will be used to design a PID controller. For this purpose, we used a second-order time-delayed (SOTD) model with a transfer function.
M s = K e s T d a 2 s 2 + a 1 s + 1
The SOTD model is very versatile and can be used to describe most non-oscillating or oscillating proportional systems with or without a transport delay (see [22,23]). This model has only four parameters—a2, a1, K, and Td, which can be estimated from the frequency response points G(0) and G(k), k = 1, 2, …, N. The model parameters can be estimated by
θ ^ = arg min θ Θ K r θ
where the vector of model parameters
θ = [ K a 2 a 1 τ ] T
Θ is the set of acceptable values of the model parameters. For a stable system,
Θ = K , a 2 , a 1 , τ : K > 0 , a 2 > 0 , a 1 > 0 , τ 0 , τ m
τm is the maximum possible transport delay (see Figure 3) and “T” denotes the transpose operator.
By denoting the real and imaginary part of the complex values G(i),
G j ω i = R i + I i j , for   i = 1 , 2 , , N
Then,
θ ^ = arg min τ = 0 , Δ τ , , τ m K , a 2 , a 1 > 0 K r Z T Z 1 Z T p τ
where Δτ is the selected accuracy of the estimation τ,
Z = cos ω 1 τ sin ω 1 τ cos ω 2 τ sin ω 2 τ R 1 ω 1 2 I 1 ω 1 2 R 2 ω 2 2 I 2 ω 2 2 I 1 ω 1 R 1 ω 1 I 2 ω 2 R 2 ω 2 cos ω N τ R N ω N 2 I N ω N sin ω N τ I N ω N 2 R N ω N , p = [ R 1 I 1 R 2 I 2 R N I N ] ,
the matrix Z is assumed with the maximum column rank. In this way, we can estimate the model parameters from 2N equations (generalization in comparison with [24]). A similar approach can also be used for fitting linear models with more parameters. The proposed procedure, unlike that of [15], does not require the solution of a system of nonlinear equations and is also applicable to the identification of underdamped systems.
Model (15) has four parameters and, therefore, only two frequency response points are sufficient for the parameter estimation (N = 2). In case we know the values of some parameters, for example, the steady-state gain or the dead time, the number of estimated parameters will be reduced, and a similar approach may be used.

4. Relay Shifting Method with Additional Delay or Integrator

Using the shifting method, we obtained the frequency response points for higher frequencies. We know from classical control theory that the values of the process transfer function for PID tuning are decisive in the range where the phase delay is from 0° to 180° and, consequently, for lower frequencies. To get the frequency response points for lower frequencies, we used an additional integrator or a delay (see Figure 5).
The additional integrator or the delay can be used only if a steady-state oscillation can be achieved with the relay feedback control. To a certain extent, the frequencies of the obtained frequency response points can also be reduced by increasing the relay hysteresis.

5. Examples of Using the Relay Shifting Method

In this section, several different types of processes are identified using the relay shifting method. The proportional processes are modeled by transfer function (9) and the integrating process is modelled by transfer function (16).
M s = 1 s a 2 s + a 1 e s T d
In all the simulated examples, we chose N = 2 for the parameter estimation and the biased relay had the following parameters (see Figure 2).
uA = 2, uB = −1, εA = 0.1, εB = −0.1.

5.1. Lag-Dominated Non-Oscillatory Proportional Process

The lag-dominated non-oscillatory proportional process considered in [22] is given by the following transfer function:
P 1 s = 0.3 s + 1 0.08 s + 1 2 s + 1 1 s + 1 0.4 s + 1 0.2 s + 1 0.05 s + 1 3
The process is controlled by a relay (see Figure 1). The relay output u and the process output y are depicted in Figure 6.
Using the relay shifting method, we can determine from the observed stable courses u and y that
T P = 6.23 s ,
G 0 = K = 1.003 ,
G j ω 1 = 0.2845 0.0847 j , G j ω 2 = 0.0444 + 0.0782 j ,
τ m = 2.5 s ,
and the SOTD model, estimated according to Section 2 and Section 3, is
M 1 s = 1.003 exp ( 0.81 s ) 2.511 s 2 + 3.002 s + 1
The Nyquist frequency responses of process P1(s) and model M1(s) are shown in Figure 7. In the same figure, model MS(s) and the points G(0), G(1), and G(2) are depicted as well, where
M S s = exp 0.77 s 2 s + 1 1.2 s + 1
The model MS(s) was derived by Skogestad [22] directly from (18) using the half rule.
The unit step responses of process P1(s), model M1(s), and model MS(s) are shown in Figure 8.

5.2. Lag-Dominated Oscillatory Proportional Process

The lag-dominated oscillatory proportional process considered in [23] is given by the following transfer function:
P 2 s = 125 l = 1 4 s 2 + 2 ξ l ω n l + ω n l 2
where ξ1 = 0.5, ωn1 = 1.1180, ξ2 = 0.6, ωn2 = 2.2361, ξ3 = 0.65, ωn3 = 3.1623, ξ4 = 0.5, and ωn4 = 1.4142.
The process is controlled by a relay (see Figure 1). The relay output u and the process output y are depicted in Figure 9.
Using the relay shifting method, we can determine from the observed stable courses u and y that
T P = 6.44 s ,
G 0 = K = 0.996 ,
G j ω 1 = 1.5214 0.0457 j , G j ω 2 = 0.1863 0.1504 j ,
τ m = 2.8 s ,
and the SOTD model, estimated according to Section 2 and Section 3, is
M 2 s = 0.996 exp 2.1 s 0.8855 s 2 + 0.5857 s + 1
The Nyquist frequency responses of process P2(s) and model M2(s) are shown in Figure 10. In the same figure, the model MR(s) and the points G(1) and G(2) are depicted as well, where
M R s = 1.198 exp 2.048 s s 2 + 0.7691 s + 1.198
The model MR(s) was derived by Novella-Rodriguez et al. [23] directly from (25).
If we use an additional delay or an integrator (see Figure 5), we can receive better positions of the points G(1) and G(2) for the model fitting. In case we use the additional delay D = 3 s, we obtain the time courses u and y depicted in Figure 11.
Using the relay shifting method, we can determine from the observed stable courses u and y that
T P = 11.3 s ,
G 0 = K = 0.9995 ,
G j ω 1 = 0.2304 1.2044 j , G j ω 2 = 1.4257 + 0.4441 j ,
τ m = 11.3 s ,
and the SOTD model, estimated according to Section 2 and Section 3, is
M 2 D s = 0.9995 exp 1.79 s 0.9092 s 2 + 0.6426 s + 1
The Nyquist frequency responses of process P2(s), model M2D(s), model MR(s), and points G(1) and G(2) are shown in Figure 12.
The unit step responses of process P2(s) and models M2(s), M2D(s), and MR(s) are shown in Figure 13.

5.3. Delay-Dominated Non-Oscillatory Proportional Process

The delay-dominated non-oscillatory proportional process considered in [11] (p. 165) is given by the following transfer function:
P 3 s = exp 4 s 0.5 s + 1 3
The process is controlled by a relay (see Figure 1). The relay output u and the process output y are depicted in Figure 14.
Using the relay shifting method, we can determine from the observed stable courses u and y that
T P = 10.90 s ,
G 0 = K = 1.002 ,
G j ω 1 = 0.8872 + 0.0079 j , G j ω 2 = 0.6472 0.0631 j ,
τ m = 4.5 s ,
and the SOTD model, estimated according to Section 2 and Section 3, is
M 3 s = 1.002 exp 4.23 s 0.4513 s 2 + 1.287 s + 1
The Nyquist frequency responses of process P3(s) and model M3(s) are shown in Figure 15. In the same figure, the model MLG(s) and the points G(1) and G(2) are depicted as well, where
M L G s = 1.000 exp 4.2771 s 0.6183 s + 1 2
The model MLG(s) was derived by Liu and Gao [11] (p. 165) with algorithm RS-SU1.
The unit step responses of process P3(s), model M3(s), and model MLG(s) are shown in Figure 16.

5.4. Integrating Process

The integrating process considered by Liu and Gao [11] (p. 212) is given by the following transfer function:
P 4 s = s + 1 s s + 1 5 exp 5 s
The process is controlled by a relay (see Figure 1). The relay output u and the process output y are depicted in Figure 17.
Using the relay shifting method, we can determine from the observed stable courses u and y that
T P = 50.1 s ,
G j ω 1 = 7.591 1.451 j , G j ω 2 = 1.375 + 3.250 j
τ m = 13.0 s ,
and the estimated model is
M 4 s = exp 8.97 s s 2.117 s + 0.9971
The Nyquist frequency characteristics of process P4(s) and model M4(s) are shown in Figure 18. In the same figure, the model M4LGI(s) and the points G(1) and G(2) are depicted as well, where
M 4 L G I s = 1.018 exp 8.5278 s s 2.5293 s + 1
The model M4LGI(s) was derived by Liu and Gao [11] (p. 212) with algorithm RI-S1.
The unit step responses of process P4(s), model M4(s), and model M4LGI(s) are shown in Figure 19.

5.5. Unstable Process with Delay

The same approach can be used for unstable processes if there is sustained oscillation in an asymmetric relay feedback test. The unstable process with delay considered by Liu and Gao [11] (p. 235) is given by the following transfer function:
P 5 s = 1 5 s 1 2 s + 1 0.5 s + 1 e 0.5 s
This unstable process is controlled by the biased relay where
uA = 2, uB = −1.7, εA = 0.1, εB = −0.1
(see Figure 2). The relay output u and the process output y are depicted in Figure 20.
From these time courses, we can determine by the shifting method,
T P = 24.5 s ,
G j ω 1 = 0.5335 0.0931 j , G j ω 2 = 0.2539 + 0.0278 j
τ m = 5.6 s .
The estimated model is
M 5 s = 0.9983 exp 0.95 s 9.998 s 2 + 2.831 s 1
The Nyquist frequency characteristics of process P5(s) and model M5(s) are shown in Figure 21. In the same figure, the model M5LG(s) and the points G(1) and G(2) are depicted as well, where
M 5 L G s = 1.001 exp 0.94 s 4.9996 s 1 2.07 s + 1
The model M5LG(s) was derived in [11] (p. 235) with algorithms RU-SA and RU-SB, which result in very similar models.
The unit step responses of process P5(s), model M5(s), and model M5LG(s) are shown in Figure 22.

6. PID Controller Tuning

If we know the process model, we need to determine the parameters of the controller. There are a number of recommendations for PID controller tuning that can be used for control of a process described by transfer function (9) (see, for example, Åström and Hägglund [25], Skogestad and Grimholt [26], Novella-Rodriguex et al. [23], and O’Dwyer [27]).
We can also use the following tuning rules, which are very simple, and they should work well on a wide range of stable processes (non-oscillatory/oscillatory, lag/delay dominated) described by process model (9).
Let the transfer function of the ideal PID controller be
C s = r P + r I s + r D s
where rP,rI, and rD are adjustable controller parameters.
The open-loop transfer function is
G o s = C s M s = = r I r D r I s 2 + r P r I s + 1 s K exp s T d a 2 s 2 + a 1 s + 1
If we choose
r D r I = a 2 , r P r I = a 1
then
G o s = r I K exp s T d s
and the closed-loop transfer function is
G w y s = G o s 1 + G o s = r I K exp s T d s + r I K exp s T d
The parameter rI can be determined by the Nyquist stability criterion using the open-loop transfer function (60) and by a choice of the gain margin mA or the phase margin γ. For common control systems, the recommended values are as follows (see, for example, Víteček and Vítečková [28], and Landau and Zito [29]):
m A 2 , 5 , γ π / 6 , π / 3 .
With this approach, we can easily derive that
r I = π 2 T d m A K
and
r I = π 2 γ 2 K T d
The value of the parameter rI can also be chosen according to the denominator Q(s) of the control transfer function (61). The characteristic equation of the control system has the transcendental form
Q s = s + r I K exp s T d = 0 .
The control system is stable for
r I < π 2 K T d
This equation also follows from (63) and (64) for mA = 1 and γ = 0. With the parameter rI, we can change the behavior of the closed-loop system. The value of the parameter rI can be chosen, for example, from the characteristic Equation (65) to obtain the double real dominant pole s1,2. This pole can be determined from Equation (65) and the following equation:
d Q s d s = 0 = 1 + r I K exp s T d T d
From (65) and (67), it follows
s 1 , 2 = 1 T d
and
r I = 1 K exp 1 T d
By comparing, for example, (63) and (69), it is obvious that the adjustment according to (69) corresponds to the gain margin mA = 4.27.
To summarize the presented results for PID tuning so far, at first, we determine the parameter rI (using one of the relations (63) or (64)), and then we determine using relation (59)
r P = a 1 r I ,
r D = a 2 r I .
The resulting relationships for adjusting the PID controller are computationally simple and easily understandable; they are not based on the approximation of the transport delay and are usable for stable oscillatory or non-oscillatory systems.

7. Examples of PID Tuning to Control Stable Processes Identified by the Relay Shifting Method

In all examples, the parameter rI was estimated according to relation (69), and the parameters rP, rD by relations (70), (71). The PID control was applied directly to the original processes, and the models, obtained by the relay shifting method, were used only for the PID tuning. The processes were controlled by the PID 2DOF controller which is described by
U s = r P E s + r I E s s r D s Y s 1 N s + 1
where U(s), E(s), and Y(s) are the Laplace images of u(t), e(t), and y(t), respectively. The PID 2DOF controller eliminates “derivative kick” and is less sensitive to measurement noise. In all examples, the parameter N = 10.
Let us consider the closed-loop system given in Figure 23. The simulated unit step responses of closed-loop control systems for setpoints w and change of load disturbances d are shown in the following examples.

7.1. PID Control of Process P1

The model M1 (23) of the process P1 (18) was obtained by the relay shifting method. The relations (69)–(71) determine the parameters rI, rP, and rD of the PID controller, respectively.
r I = 1 K exp 1 T d = 1 1.003 exp ( 1 ) 0.81 = 0.4528
r P = a 1 r I = 3.002 0.4528 = 1.3593 ,
r D = a 2 r I = 2.511 0.4528 = 1.1370 .
The unit step responses y of the closed-loop control system for the setpoint change w and the change of load disturbance d are shown in Figure 24. The unit step of the load disturbance d was at the time t = 20 s.

7.2. PID Control of Process P2

The model M2 (30) of the process P2 (25) was obtained by the relay shifting method. The relations (69)–(71) determine the parameters rI, rP, and rD of the PID controller, respectively.
r I = 1 K exp 1 T d = 1 0.996 exp ( 1 ) 2.1 = 0.1759 ,
r P = a 1 r I = 0.5857 0.1759 = 0.1030 ,
r D = a 2 r I = 0.8855 0.1759 = 0.1558 .
The controlled variables y for the setpoint change w and the change of load disturbance d are shown in Figure 25. The unit step of the load disturbance d was at the time t = 40 s.

7.3. PID Control of Process P3

The model M3 (42) of the process P3 (37) was obtained by the relay shifting method. The relations (69), (70), and (71) determine the parameters rI, rP, and rD of the PID controller.
r I = 1 K exp 1 T d = 1 1.002 exp ( 1 ) 4.23 = 0.0868
r P = a 1 r I = 1.287 0.0868 = 0.1117 ,
r D = a 2 r I = 0.4513 0.0868 = 0.0392 .
The unit step responses y of the closed-loop control system for the setpoint change w and the change of load disturbance d are shown in Figure 26. The unit step of the load disturbance d was at the time t = 40 s.

8. Verification and Implementation

The proposed identification method for PID tuning was tested on both simulation examples and on real laboratory apparatuses, namely “Water Levitation”, “Air Aggregate”, and “Air Levitation” (see [30,31]), and the results of the relay shifting method were compared with the results of other identification approaches to verify the practical benefits of the use of this method in the work by Hornychová and Hofreiter [32]. The experiments were realized both in the Matlab/Simulink environment and physically, using the industrial PLC Tecomat Foxtrot produced by TECO a.s. (see TECO Advanced Automation [33]). The comprehensive development tool Mosaic was used for writing and debugging the relay identification and PID tuning programs for the PLC Tecomat Foxtrot (see Vaněk and Slabý [34]).

9. Conclusions

The presented relay shifting method has the following properties:
  • The frequency points G(i), i = 1, 2, , N are determined from one relay feedback test without any prior knowledge of the model.
  • The relay shifting method is very versatile, the same procedure can be used for the model parameter estimation of stable/unstable/integrating, non-oscillatory/oscillatory, and lag/delay dominated processes and the noisy environment if there are stable oscillations for the relay feedback test.
  • The static load disturbance has no effect on the locations of the frequency points G(i), i = 1, 2, , N.
  • By using the SOTD model, it is possible to estimate the steady-state gain even in the presence of a constant load disturbance.
  • The shifting filter described by (1) and (2) filters out the lower harmonics and amplifies the n-th harmonic, and the frequency response point G(jωn) can be determined by relation (5) or by using the approximation of the periodic signals un(t) and yn(t) by harmonic functions.
  • The relay shifting filter helps to eliminate parasitic signals.
  • The relay shifting method is appropriate only for processes describable by linear time-invariant models.
  • The position of the points G(i), i = 1, 2, …, N significantly affects the estimation of the model parameters. An additional integrator or a delay helps to improve the parameter estimation.
  • Using the SOTD model, it is possible to model processes that can be described by high-order models.
  • The relay shifting method is primarily suggested for the automatic tuning of controllers.
The combination of the shifting method and the additional delay or the additional integrator in the relay feedback loop allows for the estimation of the frequency response points G(k), k = 1, 2, …, N, from a single relay test. To obtain more frequency response points, we can select different values of the additional delay or the integral gain of the additional integrator for each relay feedback test. This approach makes it possible to acquire other frequency response points.
In this paper, we have summarized the relay shifting method that can be used for estimating the parameters of simpler and more complex linear models with different structures describing systems where steady oscillations can be achieved by means of relay control. We presented a simple original algorithm for estimating the parameters of the SOTD model from N points of the frequency response. The relay shifting method for open-loop stable, unstable, and integration processes, even with a delay, and regardless of whether they are oscillating or non-oscillating, was demonstrated by simulation examples. The article also introduced the design and simulation testing of a simple PID controller adjustment for the control of a stable system described by an SOTD model without using the delay approximation.

Funding

The presented work was funded by the Institutional Resources of CTU in Prague for research, grant number RVO12000.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Acknowledgments

The presented work was supported by the Institutional Resources of CTU in Prague for research (RVO12000).

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Rotač, V.J. Rasčet Nastrojki Promyšlenych Sistem Regulirovanija; Gosenergoizdat: Moskva, Russia, 1961. [Google Scholar]
  2. Åström, K.J.; Hägglund, T. Automatic Tuning of Simple Regulators with Specifications on Phase and Amplitude Margins. Automatica 1984, 20, 645–651. [Google Scholar] [CrossRef] [Green Version]
  3. Khalil, H.K. Nonlinear Systems, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2002; ISBN 978-0-13-067389-3. [Google Scholar]
  4. Ziegler, J.G.; Nichols, N.B. Optimum Settings for Automatic Controllers. Trans. ASME 1942, 64, 759–768. [Google Scholar] [CrossRef]
  5. Luyben, W.L. Derivation of Transfer Functions for Highly Nonlinear Distillation Columns. Ind. Eng. Chem. Res. 1987, 26, 2490–2495. [Google Scholar] [CrossRef]
  6. Shen, S.-H.; Wu, J.-S.; Yu, C.-C. Use of Biased-Relay Feedback for System Identification. AIChE J. 1996, 42, 1174–1180. [Google Scholar] [CrossRef]
  7. Li, W.; Eskinat, E.; Luyben, W.L. An Improved Autotune Identification Method. Ind. Eng. Chem. Res. 1991, 30, 1530–1541. [Google Scholar] [CrossRef]
  8. Bi, Q.; Wang, Q.-G.; Hang, C.-C. Relay-Based Estimation of Multiple Points on Process Frequency Response. Automatica 1997, 33, 1753–1757. [Google Scholar] [CrossRef]
  9. Chidambaram, M.; Sathe, V. Relay Autotuning for Identification and Control; Cambridge University Press: Cambridge, UK, 2014; ISBN 978-1-107-41596-6. [Google Scholar]
  10. Liu, T.; Wang, Q.-G.; Huang, H.-P. A Tutorial Review on Process Identification from Step or Relay Feedback Test. J. Process. Control 2013, 23, 1597–1623. [Google Scholar] [CrossRef]
  11. Liu, T.; Gao, F. Industrial Process Identification and Control Design: Step-Test and Relay-Experiment-Based Methods. In Advances in Industrial Control; Springer: London, UK, 2011. [Google Scholar]
  12. Dharmalingam, K.; Thangavelu, T. Parameter Estimation Using Relay Feedback. Rev. Chem. Eng. 2019, 35, 505–529. [Google Scholar] [CrossRef]
  13. Yu, C.C. Autotuning of PID Controllers; Springer: London, UK, 2006; ISBN 978-1-84628-036-8. [Google Scholar]
  14. Ruderman, M. Relay Feedback Systems—Established Approaches and New Perspectives for Application. IEEJ J. IA 2019, 8, 271–278. [Google Scholar] [CrossRef] [Green Version]
  15. Sánchez Moreno, J.; Dormido Bencomo, S.; Díaz Martínez, J.M. Fitting of Generic Process Models by an Asymmetric Short Relay Feedback Experiment—The n-Shifting Method. Appl. Sci. 2021, 11, 1651. [Google Scholar] [CrossRef]
  16. Vivek, S.; Chidambaram, M. Identification Using Single Symmetrical Relay Feedback Test. Comput. Chem. Eng. 2005, 29, 1625–1630. [Google Scholar] [CrossRef]
  17. Hofreiter, M. Extension of Relay Feedback Identification. In Proceedings of the 2015 7th International Congress on Ultra Modern Telecommunications and Control Systems and Workshops (ICUMT), Brno, Czech Republic, 6–8 October 2015; pp. 61–66. [Google Scholar]
  18. Hofreiter, M. Shifting Method for Relay Feedback Identification. IFAC-Pap. 2016, 49, 1933–1938. [Google Scholar] [CrossRef]
  19. Berner, J.; Hägglund, T.; Åström, K.J. Asymmetric Relay Autotuning—Practical Features for Industrial Use. Control Eng. Pract. 2016, 54, 231–245. [Google Scholar] [CrossRef]
  20. Berner, J.; Hagglund, T.; Astrom, K.J. Improved Relay Autotuning Using Normalized Time Delay. In Proceedings of the 2016 American Control Conference (ACC), Boston, MA, USA, 6–8 July 2016; pp. 1869–1875. [Google Scholar]
  21. Seborg, D.E. Process Dynamics and Control, 3rd ed.; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2011; ISBN 978-0-470-12867-1. [Google Scholar]
  22. Skogestad, S. Simple Analytic Rules for Model Reduction and PID Controller Tuning. J. Process. Control 2003, 13, 291–309. [Google Scholar] [CrossRef] [Green Version]
  23. Novella-Rodríguez, D.F.; del Muro-Cuéllar, B.; Hernandez-Hernández, G.; Marquez-Rubio, J.F. Delayed Model Approximation and Control Design for Under-Damped Systems. IFAC-PapersOnLine 2017, 50, 1316–1321. [Google Scholar] [CrossRef]
  24. Hofreiter, M. Improved Relay Feedback Identification Using Shifting Method. In Proceedings of the 16th International Conference on Informatics in Control, Automation and Robotics, Prague, Czech Republic, 29–31 July 2019; SCITEPRESS—Science and Technology Publications: Prague, Czech Republic, 2019; pp. 601–608. [Google Scholar]
  25. Åström, K.J.; Hägglund, T.; Åström, K.J. PID Controllers, 2nd ed.; International Society for Measurement and Control: Research Triangle Park, NC, USA, 1995; ISBN 978-1-55617-516-9. [Google Scholar]
  26. Skogestad, S.; Grimholt, C. The SIMC Method for Smooth PID Controller Tuning. PID Control in the Third Millennium: Lessons Learned and New Approaches. In Advances in Industrial Control; Springer: Berlin/Heidelberg, Germany, 2012; pp. 147–175. ISBN 978-1-4471-2424-5. [Google Scholar]
  27. O’Dwyer, A. Handbook of PI and PID Controller Tuning Rules, 3rd ed.; Imperial College Press: London, UK, 2009; ISBN 978-1-84816-242-6. [Google Scholar]
  28. Víteček, A.; Vítečková, M. Vysoká škola báňská—Technická univerzita Ostrava; Katedra automatizační techniky a řízení. In Closed-Loop Control of Mechatronic Systems; VŠB—Technical University of Ostrava: Ostrava, Czech Republic, 2013; ISBN 978-80-248-3149-7. [Google Scholar]
  29. Landau, Y.D.; Zito, G. Digital Control Systems: Design, Identification and Implementation; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2010; ISBN 978-1-84996-551-4. [Google Scholar]
  30. Hornychová, A.; Hofreiter, M. Use of the Shifting Method Results for PID Controllers Parameters Estimation. MATEC Web Conf. 2019, 292, 01017. [Google Scholar] [CrossRef]
  31. Hofreiter, M. Relay Feedback Identification with Additional Integrator. IFAC-PapersOnLine 2019, 52, 66–71. [Google Scholar] [CrossRef]
  32. Hornychova, A.; Hofreiter, M. Relay Feedback Identification Method for PID Controller Tuning. In Proceedings of the 2020 21th International Carpathian Control Conference (ICCC), High Tatras, Slovakia, 27–29 October 2020; pp. 1–6. [Google Scholar]
  33. TECO Advanced Automation PLC Tecomat Foxtrot; TECO a.s.: Kolín, Czech Republic, 2021; Available online: https://www.Tecomat.Com/Products/Cat/Cz/Plc-Tecomat-Foxtrot-3/ (accessed on 2 March 2021).
  34. Vaněk, J.; Slabý, J. Computing of PID Parameters Using Tecomat Foxtrot and the Asymmetrical Relay Shifting. In Proceedings of the New Methods and Practices in the Instrumentation, Automatic Control and Informatics 2020; CTU in Prague: Lobeč, Czech Republic, 2020; pp. 24–32. [Google Scholar]
Figure 1. A process under relay control.
Figure 1. A process under relay control.
Energies 14 05945 g001
Figure 2. Static characteristics of an asymmetric relay with hysteresis.
Figure 2. Static characteristics of an asymmetric relay with hysteresis.
Energies 14 05945 g002
Figure 3. Time courses of the manipulated variable u1 and the controlled variable y1 under relay control.
Figure 3. Time courses of the manipulated variable u1 and the controlled variable y1 under relay control.
Energies 14 05945 g003
Figure 4. The time courses of u1 and y1 during the relay feedback control together with calculated u2, y2, u3, y3.
Figure 4. The time courses of u1 and y1 during the relay feedback control together with calculated u2, y2, u3, y3.
Energies 14 05945 g004
Figure 5. Relay feedback with additional delay (a) and with additional integrator (b).
Figure 5. Relay feedback with additional delay (a) and with additional integrator (b).
Energies 14 05945 g005
Figure 6. The relay output u and the observed output y of the process P1(s).
Figure 6. The relay output u and the observed output y of the process P1(s).
Energies 14 05945 g006
Figure 7. The Nyquist frequency plots of transfer functions P1(s), M1(s), and MS(s).
Figure 7. The Nyquist frequency plots of transfer functions P1(s), M1(s), and MS(s).
Energies 14 05945 g007
Figure 8. The unit step responses of process P1(s), model M1(s), and model MS(s).
Figure 8. The unit step responses of process P1(s), model M1(s), and model MS(s).
Energies 14 05945 g008
Figure 9. The relay output u and the observed output y of the process P2(s).
Figure 9. The relay output u and the observed output y of the process P2(s).
Energies 14 05945 g009
Figure 10. The Nyquist frequency plots of transfer functions P2(s), M2(s), and MR(s).
Figure 10. The Nyquist frequency plots of transfer functions P2(s), M2(s), and MR(s).
Energies 14 05945 g010
Figure 11. The relay output u and the observed output y of the process P2(s) controlled by the relay with the additional delay D = 3 s.
Figure 11. The relay output u and the observed output y of the process P2(s) controlled by the relay with the additional delay D = 3 s.
Energies 14 05945 g011
Figure 12. The Nyquist frequency plots of transfer functions P2(s), M2D(s), and MR(s).
Figure 12. The Nyquist frequency plots of transfer functions P2(s), M2D(s), and MR(s).
Energies 14 05945 g012
Figure 13. The unit step responses of process P2(s) and models M2(s), M2D(s), and MR(s).
Figure 13. The unit step responses of process P2(s) and models M2(s), M2D(s), and MR(s).
Energies 14 05945 g013
Figure 14. The relay output u and the observed output y of the process P3(s).
Figure 14. The relay output u and the observed output y of the process P3(s).
Energies 14 05945 g014
Figure 15. The Nyquist frequency plots of transfer functions P3(s), M3(s), and MLG(s).
Figure 15. The Nyquist frequency plots of transfer functions P3(s), M3(s), and MLG(s).
Energies 14 05945 g015
Figure 16. The unit step responses of process P3(s), model M3(s), and model MLG(s).
Figure 16. The unit step responses of process P3(s), model M3(s), and model MLG(s).
Energies 14 05945 g016
Figure 17. The relay output u and the observed output y of the process P4(s).
Figure 17. The relay output u and the observed output y of the process P4(s).
Energies 14 05945 g017
Figure 18. The Nyquist frequency plots of the transfer functions P4(s), M4(s), and M4LGI(s).
Figure 18. The Nyquist frequency plots of the transfer functions P4(s), M4(s), and M4LGI(s).
Energies 14 05945 g018
Figure 19. The unit step responses of process P4(s), model M4(s), and model MLGI(s).
Figure 19. The unit step responses of process P4(s), model M4(s), and model MLGI(s).
Energies 14 05945 g019
Figure 20. The relay output u and the observed output y of the process P5(s).
Figure 20. The relay output u and the observed output y of the process P5(s).
Energies 14 05945 g020
Figure 21. The Nyquist frequency plots of transfer functions P5(s), M5(s), and M5LG(s).
Figure 21. The Nyquist frequency plots of transfer functions P5(s), M5(s), and M5LG(s).
Energies 14 05945 g021
Figure 22. The unit step responses of process P5(s), model M5(s), and model M5LG(s).
Figure 22. The unit step responses of process P5(s), model M5(s), and model M5LG(s).
Energies 14 05945 g022
Figure 23. Closed loop system.
Figure 23. Closed loop system.
Energies 14 05945 g023
Figure 24. PID control of process (18).
Figure 24. PID control of process (18).
Energies 14 05945 g024
Figure 25. PID control of process (25).
Figure 25. PID control of process (25).
Energies 14 05945 g025
Figure 26. PID control of process (25).
Figure 26. PID control of process (25).
Energies 14 05945 g026
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hofreiter, M. Relay Identification Using Shifting Method for PID Controller Tuning. Energies 2021, 14, 5945. https://doi.org/10.3390/en14185945

AMA Style

Hofreiter M. Relay Identification Using Shifting Method for PID Controller Tuning. Energies. 2021; 14(18):5945. https://doi.org/10.3390/en14185945

Chicago/Turabian Style

Hofreiter, Milan. 2021. "Relay Identification Using Shifting Method for PID Controller Tuning" Energies 14, no. 18: 5945. https://doi.org/10.3390/en14185945

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop