Abstract
Accurate modeling of liquid flow systems is necessary for the effective operation of the plant under different conditions. The plant dynamics may change with time, and due to this, the operation may not be satisfactory. In this article, relay autotuning of a liquid flow-line is proposed. Well-known describing function approximation is utilized for the estimation of gain of relay used in a feedback loop to excite the plant to be identified. The expressions are derived for the identification of a class of overdamped second-order plus dead-time and first-order plus dead-time plant dynamics. The identification method tested on different standard systems shows that the proposed method has good identification accuracy. Therefore, the proposed identification method is applied to a liquid flow line pressure control system. The experimental results show that an accurate dynamic model is extracted using the proposed method with a minimal set of data from an obtained limit cycle oscillation. The measured quantities of the limit cycle are utilized in the derived explicit expressions for the identification of unknown variables of the dynamic plant model. A distributed process control system is utilized here as a standard industrial platform to design virtual relay and conduct the proposed autotuning. The efficiency of the modeling method is demonstrated through the comparison of Nyquist and relay response plots with the transfer functions obtained from the MATLAB system identification toolbox.
Keywords
Introduction
In various industrial sectors such as oil-gas, thermal power, food-drinks, and different bulk product plants, monitoring of ultimate process variables is an important and essential job to the controlled engineers. With the enhancement of intelligent control methods on model-free plants, conventional controllers also play a vital role more directly on plants with known dynamic models, which are generally identified from classical relay autotuning, step test, and pulse testing. Modeling can be done using different methods, but getting the correct model of the plant is very important as it helps in designing a controller based on the plant dynamics with which it is possible to achieve productive and fruitful control action. The plant dynamics may not remain the same all the time, and it may change with time due to environmental factors, load changes, and noise. As a result, the performance of the plant degrades irrespective of the controller design. Therefore, it is necessary to know the fundamental dynamic of a plant. In tutorial reviews in the last three to four decades, Hang et al. (2002) and Liu et al. (2013) have given various process identification schemes using step tests and relay autotuning experiments. In the literature based on input-output characteristics and relay configurations, the autotuning methods are categorized as symmetrical (Bajarangbali et al., 2014; Thyagarajan and Yu, 2003; Vivek and Chidambaram, 2005) and asymmetrical (Atherton and Majhi, 1998; Kaya and Atherton, 2001; Korbel and Prokop, 2015; Liu et al., 2008; Ramakrishnan and Chidambaram, 2003; Shen et al., 1996; Theorin and Berner, 2015) feedback tests. The process output is controlled under such relay configurations by varying relay amplitudes. Ziegler and Nichols (1942) proposed the universal tuning rules for the conventional proportional-integral-derivative (PID) controller in a simplified fashion. Later, the various difficulties of the Z-N method of controller tuning were overcome by Åström and Hägglund (1984) with the help of relay autotuning. An online PI controller tuning guideline based on half-limit cycle data from the closed-loop relay test was also presented by Mehta and Majhi (2012). Their proposed identification and controller tuning method works well on the process of electronic circuits as the electronic system always has lower values of time constants as well as dead-time or time delay. Recently, another online identification method was proposed by Ghorai et al. (2019) based on PD-controller in parallel with relay for industrial processes. In this research, the identification accuracy is high enough in comparison with off-line based modeling, but the presence of an additional controller and its tuning makes the method more complex and sophisticated for simple industrial applications. Further, Pandey and Majhi (2020) proposed online first-order plus dead-time (FOPDT) model identification based on state-space analysis on relay autotuning in parallel with a PI-controller, but the authors have not shown the guaranteed stability of limit cycles as the presence of I-controller may not allow the system to generate stable oscillation. Panda and Yu (2003) proposed an interesting and systematic set of analytical expressions for relay responses from the detailed study of the order of plant transfer function as well as the value of damping factor for second-order dynamics. Further, Berner et al. (2016) proposed an asymmetrical autotuning scheme with the adaptivity of relay heights. They have also discussed several issues on the choice of parameters, handling of disturbances, and other sources of error in a subtle way. However, from the complexity point of view, the proposed method is simpler than their proposed method. In fact, the proposed method is so simple that any control engineer can easily be adapted because of its straight forward application procedure and less computational effort and time.
The relay feedback based identification is a classical method and used extensively in most of the process industries. However, earlier methods reported in the literature suffer difficulty in the generation of sustained oscillation in real-time systems because of relay configuration. In most of the chemical industrial plants, it may not be possible for users to consider such parameters within the absolute full scale, such as a pressure control system. Though pressure becomes negative in the absolute scale, however, in maximum industrial processes, the selected working range of pressure is in the only positive zone. Again, the chemical processes comprise several parameters of unknown subsystems in their corresponding control loops, and in general they are approximated in terms of the lower-order transfer function (TF) model. In practice, it is not always possible to generate limit cycle output from all industrial processes while utilizing the classical relay autotuning with zero setpoints. Hence, the investigation is required for an alternative method, which helps in the generation of sustained oscillation through conducting an identification test using classical relay autotuning on the real-time plant. The relay needs to be configured around a reference value known as the setpoint to avoid the typical issues involved in the conventional relay autotuning. Moreover, several frequency and time domain methods (Panda, 2006; Pekař, 2013) have been reported to estimate the unknown plant models in terms of TF form. The state-space approaches proposed by Atherton and Majhi (1998); Ghorai et al. (2016); and Majhi (2007) yield more accurate process models as compared with the frequency domain method. This is because in frequency domain methods, relay gains are generally approximated by describing function (DF) approximation. However, the frequency domain approach provides a more straightforward set of expressions that are highly preferable to derive unknown model parameters.
The non-unity steady-state gain of plant dynamic is quite observable in most of the real-time cases, and due to this, the generation of limit cycles is asymmetrical. Again, sensor, measurement, and environmental noises are also the key factors to bring asymmetricity in limit cycles even though the relay configuration is symmetrical. Therefore, the symmetrical relay autotuning methods fails to identify plant dynamics if the obtained limit cycles are asymmetrical. This is because the expression for equivalent relay gain from DF approximation, proposed by Åström and Hägglund (1984), may not be applied directly to deduce analytical expressions for model parameters if the steady-state plant gain is other than unity. Therefore, the expression for equivalent gain of symmetrical relay configuration is extended for an asymmetrical setpoint weighted relay, which can be directly applied for autotuning and effectively used to derive the simple set of mathematical expressions.
The remaining portions of the paper are arranged as follows. In section ‘Dead-time plant dynamics’, models of dead-time plants are described followed by the development of analytical expressions from relay autotuning procedures and modeling plant dynamics in section ‘Autotuning and identification’. Then, simulation studies are included, followed by autotuning on a real-time pressure control system and unknown model parameters identification in section ‘Autotuning on real-time system’. Finally, the conclusion is drawn.
Dead-time plant dynamics
An unknown plant to be identified in the form of dead-time TF is kept under a setpoint weighted asymmetrical relay autotuning scheme, as shown in Figure 1. Here, attempts have been made for the estimation of plant dynamical model parameters. A dead-time overdamped second-order plus dead-time (SOPDT) plant TF can be written as

Setpoint weighted asymmetrical relay autotuning scheme.
where
where
Autotuning and identification
In this relay autotuning experiment, a relay whose heights are asymmetrical with respect to the setpoint is placed in the closed-loop along with the plant to produce limit cycle output, as shown in Figure 2. The process input

Plant input-output information around the setpoint,
where,
where
where
At the sustained oscillatory situation, the gain and phase margin conditions observed by Luyben (1987) are written as
and
respectively. In the next two subsections, the above two expressions are extended for the identification of two unknown model parameters of overdamped SOPDT and FOPDT plant dynamics.
Identification of overdamped SOPDT dynamics
In this subsection, a set of mathematical expressions for the estimation of a class of overdamped SOPDT processes using an ideal relay is deduced. These general expressions can be extended further for the identification of FOPDT process model parameters while substituting one of the eigenvalues equal to zero. Substituting (2) and (5) in the condition given by (6), the following expression is obtained
Assuming the unknown process yields sustained oscillations, then (9) can be written in more simplified form using magnitude condition given in (7) as
and phase condition from (8) as
Now, from (10)
and from (11)
Hence, the above two equations can be written in terms of sum and product of time constants as
and
where,
Again, substituting
Now, the difference
or
Considering the positive root of the above equation and substituting
Using (16) and (20) the explicit expressions for two unknown parameters
An overdamped second-order plant dynamic given in (1) has four parameters
Therefore, the expression for steady-state gain,
and dead-time can be measured from the derivative method, as suggested by Majhi (2007). This dead-time is responsible for the internal delay of the plant, signal or material(s) traveling path length, computational time, and many more. It has been proved by Majhi (2007), from extensive simulation studies as well as mathematically, that the dead-time or time delay parameter can be deduced for an
Identification of FOPDT dynamics
The mathematical expressions are derived using an asymmetrical relay autotuing for stable FOPDT plant given in (1) considering
The effectiveness of the dynamic modeling of FOPDT and SOPDT is given in the next subsequent sections through simulation studies as well as the identification of a simple real-time single-input single-out (SISO) plant model.
Simulations
The proposed identification method is tested on two different processes. The identification error (
where
Example 1
Consider an overdamped SOPDT process
Parameters considered in simulation study and measured quantities.
Relay configuration or plant input; ★ or load disturbance;* variance.
Identified dynamics from simulation study for the considered two different processes.
Example 2
Let us consider a higher-order process
Autotuning on real-time system
The implementation of the proposed identification technique on a real-time system is presented here. The proposed relay feedback test has been conducted on a simple real-time flow-line liquid pressure control system to show the practical implementation of autotuner and successive identification of plant dynamics.
Experimental set-up
A distributed control system (DCS), along with industry-standard field instruments, are utilized to conduct the relay feedback experiment. Yokogawa (2002) Field Control Station and CENTUM CS3000 are employed to build the setpoint weighted relay logic for the conduction of autotuning. A VLnet (control bus) and its controller are utilized to establish the real-time data communication between FCS and engineering station. The process and instrumentation diagram of the simple pressure control scheme along with a photograph of the experimental set-up is shown in Figure 3. The back-pressure of the pipe-line is considered here as a final controlled variable. A pump (P300) is used to supply liquid to the pipe-line from reservoir and the back-pressure of the line is controlled by an automatic pressure control valve (PCV). MV12 and MV13 are two manual control valves, used to connect a pressure transmitter (PT) for remote pressure signal transmission to FCS and a pressure gauge (PG) for local display, respectively. A third manual control valve (MV11) is used as an auxiliary pressure control element to bypass the line, which was in a fully closed position while conducting relay autotuning. The detail experimental results are well described in the next subsection.

Experimental set-up of a water flow-line pressure control system.
Experimental results
During the experiment, a reference input is given as a pipe-line liquid desired pressure percentage scale through setpoint weighted relay feedback. An asymmetrical relay of height h1 = 90.0 and h2 = 20.0 produces an asymmetrical sustained limit cycle output around a setpoint of R = 55.0% as shown in Figure 4. From the starting point of the autotuning relay was in ON condition and water back pressure started to rise up to setpoint value, once the pressure crossed the setpoint relay started switching and turned OFF. Just after the moment when pipe-line pressure reaches below the setpoint, the relay turned ON. The process is continued, and as a result, the sustained oscillatory output is generated. The first and second derivatives of the limit cycle with respect to time are also plotted in Figure 4 and utilized to measure the plant dead-time (δ) during the estimation of parameters of overdamped SOPDT dynamics. From the yielded limit cycle output important parameters are measured as

Response of pressure control system and derivatives of limit cycle output: (a) relay switching, (b) limit cycle oscillations, (c) setpoint, (d) 1st derivative, (e) 2nd derivative.
Relay configuration considered in experimental study and measured quantities.
Identified dynamics of the considered pressure control system.
Using raw data; ‡Using fitted data.
Validation
The dynamic models of the real-time flow-line pressure control system are obtained as stable FOPDT and overdamped SOPDT TFs from single relay autotuning. Therefore, to validate the experimental outcomes obtained from the above pressure control system, the Nyquist frequency response plots for all the four dead-time TF models derived from raw data are drawn and shown in Figures 5 and 6 separately, based on their order in comparison with the model proposed by Ghorai et al. (2019). Interestingly, it is clearly seen from the Table 4, and frequency response plots that the proposed first and second models are close to the dynamics obtained from MATLAB SIT as well as the model proposed by Ghorai et al. (2019), which is an online method and well accepted. Finally, all the proposed four obtained dynamics from the raw data of the real-time pressure control system in dead-time TF form are simulated in MATLAB along with two models obtained from MATLAB SIT and one model proposed by Ghorai et al. (2019), considering the identical setpoint weighted relay settings which have been chosen during the real-time experiment. Thereafter, simulated outputs of the proposed models and models obtained from MATLAB SIT as limit cycles are plotted in Figures 7 and 8 separately based on their order to compare with the actual limit cycles obtained from the experimental relay test on the pressure control system as well as to the model proposed by Ghorai et al. (2019). From the nature of the limit cycle oscillations, it is concluded that the dynamics of the above plant can be considered a SOPDT model since from the validation curves, it is observed that the actual experimental limit cycles matched more with the proposed second-order models than that of first-order models.

Nyquist plots for: (a) Proposed FOPDT dynamic, (b) FOPDT dynamic from MATLAB SIT, (c) SOPDT dynamic from Ghorai et al. (2019).

Nyquist plots for: (a) Proposed SOPDT dynamic, (b) SOPDT dynamic from MATLAB SIT, (c) SOPDT dynamic from Ghorai et al. (2019).

Responses of proposed models along with actual plant output: (a) setpoint, (b) proposed FOPDT dynamic, (c) FOPDT dynamic from MATLAB SIT, (d) SOPDT dynamic from Ghorai et al. (2019), (e) actual experimental data.

Responses of proposed models along with actual plant output: (a) setpoint, (b) proposed SOPDT dynamic, (c) SOPDT dynamic from MATLAB SIT, (d) SOPDT dynamic from Ghorai et al. (2019), (e) actual experimental data.
Conclusion
An autotuning relay test is proposed to derive the unknown industrial plant model parameters in terms of simple dead-time TF form in a real-time fashion. The unknown model parameters of plant dynamics such as steady-state gain, time constants, and dead-time are estimated explicitly from the measurement of a few important limit cycle information. Two well-known plant models have been simulated and identified to show the accuracy and simplified procedure of the proposed method. Though the accuracy of the proposed method is not so high with respect to MATLAB SIT because of relay gain approximation from DF analysis, however, the attention is on real-time implementation of simple relay autotuning towards plant dynamics identification and its application in real-time industries. The autotuning, based on relay feedback, is one of the simplest identification methods that can be easily applied to estimate plant dynamics in terms of proactive dead-time TF further helping in controller design. The method also showed that the application of a simple relay test identifies a diverse class of processes realistically. The main advantage of the proposed asymmetrical relay autotuner is that the identification is regardless of uncertainties of the symmetricity of the limit cycle output obtained from general relay autotuning. The uncertainty could be caused by either unknown noise, nonlinearities, or non-unity plant steady-state gain. Finally, the paper provides a way to implement a simple setpoint weighted asymmetrical relay autotuner for the identification of dynamics of unknown industrial plants.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
