Abstract
This article presents an implementation of an adaptive control architecture, which provides the combined advantages of better dynamic performance compared to other conventional industrial controllers, and the use of widely available hardware in process industry. Adaptive control architecture uses proportional–integral action and dynamic computation of the controller’s gains (self-tuning regulator), to maintain performance specifications, even in the presence of parametric disturbances. This architecture offers advantages over other advanced embedded control systems implemented on industrial programmable logic controllers and other hardware platforms. Implementation of controllers on industrial hardware platforms is possible through the Object Linking and Embedding (OLE) for process control communication standard. The implementation for an adaptive controller here proposed was evaluated through experiments using first-order and overdamped second-order systems emulated by hardware-in-the-loop, with a programmable automation controller. Performance of the adaptive controllers was compared to that of conventional proportional–integral controllers, and effectiveness of the former over the latter was demonstrated through the experiments carried out.
Keywords
Introduction
In industry applications, more than 95% of the used control loops are of the proportional–integral–derivative (PID) type.
1
PID controllers were introduced in industrial processes by the end of the 1930s.
2
The use of these controllers is extensive due to the following main advantages: Their good performance in a wide variety of applications within industrial processes and manufacturing automation. The fact that commercial PID controllers are relatively inexpensive. PID controllers can be tuned using heuristic methods, although their performance is better when they are tuned with an analytic tool. The work of existing technological platforms is to aid in the implementation of PID controllers, thus the adoption of different control strategies can represent technical and economic difficulties.
The use of PID controllers in industrial processes and manufacturing is comparatively less effective than using other controllers systems in the presence of nonlinear dynamics, disturbances, and parametric uncertainties (in sensors, in actuators, and in the process itself). That is to say, when it comes to industrial processes, performance of PID controllers can be unsatisfactory, poor, or even unstable. Another problem related to this fact is that operators in charge of supervising and adjusting the controllers are often insufficiently and inadequately trained. Operators with years of experience are skilled at tuning PID controllers intuitively, but it comes to working with more advanced control techniques they usually prove unable. Ender estimates that at least one-third of the PID control loops used around the world operate in manual mode, also other portion of the loops, and the gains are tuned by “trial and error.” 3
The use of an adaptive control has been seen as an alternative to the use of control systems in the presence of parametric variations and disturbances since the end of the 1950s. 4 The self-tuning regulator (STR) structure was specifically designed concurrently by different authors, and it is usually conceptualized, depending on its structure, as being direct or indirect or as being explicit or implicit. 5,6
The problems of performance due to changes in the process mentioned above and the need for manual adjustment of the gains by operators can be solved with the implementation of an advanced control technique in conjunction with the use of a conventional structure such as a PI controller. In this article, an STR-based approach is employed to adjust the parameters in the control system, and this system performs based on dynamic changes in the process to be controlled, as proposed by Paz Ramos et al. 7
In the literature can be found mainly adaptive control applications in process control where the time constants are large; however, there are also applications of adaptive control to control actuators used in robotic applications 8 ; nevertheless, they are implemented in specific purpose hardware platforms with which a closed architecture is usually used. Also, other adaptive control structures have been used in manipulator robots. 9 –11
Academic interest in PID controllers has gradually decreased, giving space to other control strategies, for example, fuzzy controllers, neuro-fuzzy controllers, sliding mode controllers, nonlinear controller and adaptive controllers, among others; however, these other control strategies have not been able to gain significant presence in industrial processes. The gap between research conducted by the industrial and the academic sectors on PID controllers and other control methods has received lot of attention in literature. 12 –14
Limitations of conventional control systems (PID controllers) have brought about the development and implementation of advanced control strategies in industrial processes. Some authors propose innovative algorithms in order to tune a PID controller; however, only simulation results are showed. 15
Currently, the control of industrial processes has carried out through the use of computer-based platforms, such as distributed control systems (DCS), supervisory control and data acquisition, and/or direct digital control. 14,16 In recent years, process control systems based on programmable logic controllers (PLCs) and programmable automation controllers (PACs) have become more popular in Mexico. One of the reasons for this is that PLCs and PACs have better reliability and lower cost compared to DCS. Implementation of control techniques in computer-based platforms commonly requires digital signal processors, data acquisition cards, or closed architecture PLCs. PID controllers with STR structures have been previously implemented in PLCs 17,18 or another advanced control techniques such as adaptive fuzzy control in order to implement in industrial systems. 19
We propose an implementation of an advanced control technique: a PI with an STR structure. This type of adaptive controller architecture allows the adjustment of parameters (the PI gains) based on dynamic changes in the process to be controlled.
6
The controller runs on a remote computer terminal, in communication with an industrial control platform (PLC/PAC). This communication is performed using Object Linking and Embedding (OLE) for process control (OPC) standard, which is the most common architecture used in industrial automation and control of processes.
20,21
The implementation consists of two stages: Developing an adaptive control algorithm that allows the dynamic computation of PI controller gains, based on the algorithm presented by Paz Ramos et al.,
7
to maintain the required performance criteria in the presence of parametric disturbances. The abstraction of systems of the control algorithm needs to be designed carefully to take the system into first- or second-order transfer functions. Implementing the adaptive controller in a server connected remotely to a PLC (model Allen Bradley ControlLogix 5561 model; Rockwell Automation, Wisconsin, USA). This stage includes implementation of an interactive information transfer system using the OPC industrial communication standard, based on the approach presented in literature.
22,23
for conventional PID controllers.
Systems of different orders and their designed controllers were used to evaluate the proposal. The dynamics of first-and second-order systems are emulated using hardware-in-the-loop (HIL) through a PAC; this emulation reduces the complexity, size, and cost of the test structures and increases the possibility of testing under controlled operation
24
in order to have repeatability
25
; further, it allows to simulate different conditions, such as a load in robot manipulators.
26
Control systems are evaluated using the value of the integral absolute error (IAE) and the settling time. In the following sections, the design and implementation of the adaptive PI controller architecture are presented. “PI controllers” section explains the computation of the PI gains for the first- and second-order systems. “Adaptive architecture” section presents the adaptive architecture with dynamic gains based on the study by Paz Ramos et al.
7
“Implementation” section presents the implementation using a PLC, as explained above. Validation of the adaptive PI controller, when it is applied to a first- and second-order system emulated by HIL, is presented in “Experimental results” section. Finally, conclusions are presented in the last section.
PI controllers
A wide range of loops can be successfully controlled without derivative action. The use of derivative action is not recommended when noise is present in the processing of signals of the inputs of a controller. 27,28 Designed PI controllers work mainly with two types of systems: first order and second order and their transfer functions. Complex systems can be decomposed into first- and second-order transfer function combinations. The procedure to compute gains for PI controllers from the transfer functions via pole placement 1 is reviewed in the following subsections.
PI controller gains for first-order processes
Assuming a mathematical approximation of a system to first-order dynamics, where the reaction delay is small enough to be neglected, and the corresponding transfer function is
where K is the gain in open-loop system and τ is the time constant.
A dependent PI controller (or ISA) 1 has the form
where Kc is the proportional gain and Ti is the integral time constant.
The closed-loop control system (i.e. using a negative feedback) of a system (plant) described by equation (1) and the controller in equation (2) produce the transfer function
It is evident, from equation (3), that the closed-loop control system from equations (1) and (2) yields a second-order system with two poles and one zero.
The canonical form of a second-order transfer function is
where ζ is the damping coefficient and ωn is the undamped natural frequency.
Two dynamic characteristics of the response of a process, associated with second-order systems, are the maximum overshoot and the settling time. According to the transfer function in equation (4), the maximum overshoot, Mp, can be approximated to
for 0 < ζ < 1. The settling time, ts, with a 1% error band, can be defined as
The desired settling time and maximum overshoot, tsd and Mpd, respectively, can be specified for controllers. For closed-loop controllers, the use of a tsd of greater than 50% the settling time in open-loop is recommended. If no other specific recommendation for tsd is available, an alternative is the relation
The closed-loop system maintains the stability if the denominator of equation (3) complies with Stodola’s stability criterion: All characteristic roots have real negative parts. 29
The choice of the maximum overshoot must be subjected to the inherent constraints of the specific process to be controlled. If no particular constraints exist, a maximum overshoot can be opted in order to the relation
Once Mpd and tsd have been selected, the location of the poles in the transfer function representing the desired system in closed-loop is proposed. The desired transfer function becomes
where ωnd is the desired undamped natural frequency, and ζd is the desired damping coefficient, according to equation (4). As Mpd and tsd are known, we can solve for ωnd and ζd from equations (5) and (6), thus
Finally, the coefficients in the denominator, the closed-loop transfer function (3), can be computed through the equivalence of the terms in the denominator of equation (9), the second-order desired transfer function. The resulting gains are now defined as
The steps of the algorithm for first-order systems without delay can be summarized as follows
7
: Suggest Mpd and tsd, the desired maximum overshoot and settling time. Replace Mpd and tsd in equations (10) and (11) to obtain ωnd and ζd. Calculate the controller gains, Kc and Ti, applying equations (12) and (13), ωnd, ζd, and the system parameters K and τ.
PI controller gains for overdamped second-order processes
A representative set of industrial processes can be approximated satisfactorily by an overdamped (i.e. ζd > 1) second-order transfer function
which in turn can be seen as a combination of two first-order transfer functions in serial order.
Assuming that the PI controller defined in equation (2) is used to control a process represented by equation (14), the following closed-loop (negative feedback) transfer function results in
The pole placement method is used to choose the gains Kc and Ti 1 in the controller, described by equation (2). The denominator in equation (15), containing the gains and the parameters that describe the system, is manipulated through changing the geometrical position of the poles in the root locus. Controller gains should be chosen keeping in mind a desired pole placement; therefore proposing a closed-loop polynomial denominator.
A third pole must be added to the polynomial proposed, as the denominator in equation (15) is of third order
The second-order component in equation (16) can be proposed by choosing the maximum overshoot Mpd and settling time tsd, as described before for first-order processes, meaning that it is overdamped. Certain restrictions need to be considered to propose the location of the third pole.
When it is constructing the second-order polynomial of equation (16), it is important to note that an arbitrary choice of parameters Mpd and tsd could cause a configuration of pole locations that may turn the system unstable. There are necessary and sufficient conditions to avoid incurring in this situation, therefore that the system is stable. 29 These include proposing the desired settling time as
Following the same procedure and design to calculate the gains Kc and Ti, when the process has been modeled as a second-order transfer function, mentioned previously, the terms of the denominator in equation (15) and the expanded polynomial in equation (16) are related
The algorithm for the computation of the design of a second-order system, when ζ > 1, is summarized as follows
7
: Approximate, where it is possible, the process control structure to the form in equation (14). Propose the maximum overshoot such that 0 < Mp < 1. Propose tsd according to equation (17). Use equations (10) and (11) to calculate ζd and ωnd with Mpd and tsd previously defined. Calculate Kc from equation (18) and Ti from equation (19).
Adaptive architecture
A PI controller that incorporates an STR explicit design structure 5 to compute its gains was proposed by Paz Ramos et al. 7 This STR contains an estimator of the dynamic model of the system. The controller gains are calculated by incorporating the estimated system’s parameters, during the same iteration.
The model selected for the estimation of parameters is an approximation of the structure of a continuous-time auto-regressive moving average (CARMA) controller of the form
where Y is the system’s output, U is the system’s input, and ξ is a disturbance modeled as a random sequence of uncorrelated zero mean. The coefficients A, B, and C are defined as
The parameters A, B, and C are estimated in each iteration. It is also assumed that

Architecture of the PI controller with STR structure. PI: proportional–integral; STR: self-tuning regulator.
The recursive least squares (RLS) algorithm with exponential forgetting factor is used for the estimation, due to its extensive presence in literature and well-known advantages and disadvantages. 7 The computation of the estimated parameters is described through the equations
where Ka is the adaptation gain, P is the covariance matrix, I is the identity matrix,
In order to carry out parametric estimation processes, different methods can be used; still, the use of an RLS can offer a theoretical backup from linear algebra, which allows for a supervision of the estimation process, through its covariance matrix and its inverse. 6,30
Computation of the control gains
As it was previously observed in “PI controllers” section, the PI gains can be calculated using the parameters that belong to the models and the design specifications in continuous time. Nevertheless, the implementation of the adaptive version has carried out in discrete time. As part of the transformation from continuous to discrete time, the correct choice of the sampling period is very important. In this article, we used the design methodology for emulation from the study by Franklin et al. 31 The following relation is suggested for choosing the sampling period T, when the process has been modeled with the structure presented in equation (1)
If a second-order internal model in the form of equation (14) is available, a suitable recommendation is
The controller gains can be computed from the RLS estimated parameters in a direct manner, by means of the following analysis based on the method presented in “PI controllers” section. The discrete time equivalent of a first-order transfer function obtained through a zero-order hold (ZOH) is
and expanding produces
where b0 and a1 can be estimated by the RLS method. Applying a ZOH to equation (1), to establish a direct relation between the coefficients in equation (1) (continuous time) and the coefficients in equation (26) (discrete time), produces
from which it follows that
and
Equations (28) and (29) are solved for the time constant τ and the open-loop gain K
K and τ can be calculated directly from
In the case of second-order systems, it is valid to assume that the discrete ZOH computed equivalent is
Applying a ZOH into the overdamped second-order system represented in equation (14), and following the same, the coefficients of the discrete form described in equation (32) can be expressed as
In a complementary manner, the computations for the parameters in the continuous overdamped second-order system are expressed by
K, τ1, and τ2 can be computed directly from
Finally, the algorithm for the PI controller with STR structure can be summarized as Select the order of the internal model. Choose the sampling period T. Propose initial parameters. Apply a finite duration step, in order to assist the convergence of the estimation process. Estimate From Compute Kc and Ti. Generate the control signal u(kT).
Implementation
As it was discussed in the first section, PID control has a preponderant presence in industrial process control. One of the main reasons for this is the fact that other control techniques require a lot more knowledge and analysis ability of the system that is being put in operation.
In order to close this gap and come up with a better-performing and more adaptive strategy, the system here proposed goes more for an automation in the design of the controller that won’t depend in its accuracy on the ability of the operator.
Implementation of this structure was thought in such a way that it could be useful in an industrial setting, since no additions of hardware have to be made to the PLC-based control loops. The controlling software just needs to be installed in the logical programmable control server, and linked to these, through the OPC communication protocol.
In order to test the performance of the controller, a testing protocol was designed, that was based on an automatized implementation of HIL, which allows the availability of information from a real plant, to perform an evaluation and an analysis of the functionality of the system working in closed loop, in the presence of induced parametric disturbances.
The methodology to compute adaptive PI controllers, 7 explained in “Adaptive architecture” section, was tested with systems that could be satisfactorily approximated to linear first- and second-order system models. These systems were emulated with HIL. Figure 2 shows the experimental implementation for the STR and PLC, PI controller implemented using HIL, and the OPC communication scheme.

Implementation of the STR in a PLC using HIL and OPC-based communication. STR: self-tuning regulator; PLC: programmable logic controller; HIL: hardware-in-the-loop; OPC: OLE for process control.
A PLC from Allen-Bradley (Rockwell Automation), ControlLogix 5561 model, was used for PI controllers implementation. The estimation process and gain computation were implemented as MATLAB scripts within LabVIEW virtual instrumentation platform, communicating with the PLC to control the (emulated) systems. LabVIEW handles the process of signal acquisition and the industrial communication (based on the OPC standard) the NI OPC Servers tool. 22,23 The HIL emulation was performed by a real-time hardware platform, the National Instruments CompactRIO 9074 with analog modules.
The objective of a test protocol is that of offering ideal test conditions to evaluate the performance of the adaptive PI and its fixed gains.
A set point was established in the test protocol as a square signal, with a variable amplitude, which period is longer than twice the settling time in an open loop.
The following step is to perform a connection between industrial platforms. The first connection is to be performed between the PLC and the Personal Computer (PC) through an OPC, with its ethernet communication port. The second connection goes between the PLC and the PAC, through an analog output and analog input.
Once all devices have been connected, the PI adaptive program of the fixed PI gains is carried out; after three complete cycles, the parametric disturbance can be performed.
The OPC standard was developed by industrial manufacturers in order to have interoperability between different automation vendors. The main objective of OPC-based communication is the real-time interaction between different devices.
32
The procedure to get connectivity between the control algorithm platform and the PLC, using the OPC standard, can be summarized in two steps: handling inputs/outputs and the manipulation of variables. To carry out the implementation of the control system described on an industrial platform with the OPC communication standard, the following algorithms must be used. Operation of the inputs and outputs of the PLC: Set up the protocol of communication in the PC to the PLC with RSLinx. Register the racks of the PLC with RSLogix 5000. Release the ladder to the PLC with RSLogix. Shut down RSLinx. Handling variables in LabVIEW via the OPC communication standard
33
: Establish the communication port between the device and the PC in the OPC server in NI OPC (developed by National Instruments) Servers software. Include in NI OPC Servers the PLC tags. Make the project in LabVIEW. Select the OPC client in LabVIEW in the new server Input/Output (I/O). Configure the OPC client by selecting NI OPC Servers in the LabVIEW project. Create the bound variables. Incorporate the variables of the OPC Server. Allow the reading and writing for the bound variables. Aggregate a VI file. Program the VI in the block diagram handling the variables. Put the PLC in run mode. Execute the VI file.
The performance of both adaptive and conventional PI controllers was measured through the IAE, defined as
where SP is the set point and PV is the process variable.
Eighteen systems were tested in total, half first-order and half second-order systems, which all of them emulated by HIL. The systems were programmed as difference equations resulting from a ZOH discretization process over their transfer functions.
First-order systems were formulated differently from equation (1) as
using the following values: K = {0.1, 0.5, 0.8}, τ = {2, 10, 20}, and the disturbance α = {4, 10, 15}. The combination of the three different values of K and τ + α forms the first nine systems for the experiments.
Second-order systems were formulated as
with values K = {0.1, 0.5, 0.8}, τ1 = {4, 10, 20}, τ2 = {10, 20, 30}, and the disturbances α1 = {3, 5, 0} and α2 = {0, 0, 10}. The combination of the three different values of K,
An advantage in the use of HIL is the repeatability of tests and the ability of testing the controller in similar conditions to those that can be found an industrial setting.
HIL allows the possibility of dynamics that go beyond simple computational simulations, since the information that is shared between the controller and the plant is not simply transferred from one register to another in a given iteration; it is rather transmitted as analogical information between the analog–digital converter of the PLC and the analog–digital port of the PAC.
It is also important to mention that the sampling periods of the different stages are not equivalent, not even in the analogical input module (1769-IF4 de Allen-Bradley) of the PLC which has a band-pass filter with the following frequencies: 50 Hz, 60 Hz, 250 Hz y 500 Hz, with a magnitude fall of −3 dB, which can be interpreted as an addition of colored noise to the closed loop.
This way, the implementation here proposed is more efficient in several aspects to computational simulation, and in itself is a test structure that can be utilized with other control strategies.
Experimental results
The implemented performance evaluation of PI controllers with an STR structure consisted of comparing their dynamic parameters (overshoot and settling time) chosen at design (“desired” dynamic behavior by specifying Mpd and tsd), against the ones of conventional PI controllers, when following a reference signal. A disturbance is introduced in one of their parameters, at a specific time. Conventional PI controllers follow the design presented in “PI controllers” section. PI controller with an STR structure was implemented as explained in “Adaptive architecture” section.
The expected consequence of the disturbance in the systems controlled by a conventional PI is an increment in the IAE and a change in the response time. In the case of the PI with STR architecture controllers, the IAE is also expected to increase but in smaller magnitudes than in the conventional controllers. The IAE was computed in three settings: before the disturbance (at the time interval (0, d−1)), after the disturbance (at the time interval (d, n)), and throughout the experiment (time (0, n)). Tables 1 and 2 show the IAE at the intervals of time before and after the disturbance, for the first- and second-order systems, respectively. Tables 3 and 4 show the IAE throughout the experiment, for the first- and second-order systems, respectively. The results show that the magnitude of the IAE is smaller for the adaptive controller, compared to the conventional one, in most cases.
Integral absolute error evaluation before and after the disturbance for closed-loop first-order systems.
PI: proportional–integral; STR: self-tuning regulator.
Integral absolute error evaluation before and after the disturbance for closed-loop second-order systems.
PI: proportional–integral; STR: self-tuning regulator.
Integral absolute error evaluation for closed-loop first order systems.
PI: proportional–integral; STR: self-tuning regulator.
Integral absolute error evaluation for closed-loop second-order systems.
PI: proportional–integral; STR: self-tuning regulator.
The rest of this section shows an illustrative example using one of the second-order systems with parameters of
Figures 3 and 4 show the behavior of the estimations over time. A small estimation error is observed. When the disturbance is triggered, the gains in the controller are also modified. This allows for a better approximation to the reference signal, in closed loop, by modifying the control signal.

Estimation of parameters a1 and a2 for a second-order system.

Estimation of parameters b0 and b1 for a second-order system.
The performance of a PI controller with an STR structure is shown in Figure 5(a). The internal structure of the estimator computes a second-order CARMA difference equation. The output signal PI-STR is close to one chosen in design (desired response), according to the settling time.

(a) Performance of PI controller with an STR structure and (b) performance of PI controller. PI: proportional–integral; STR: self-tuning regulator.
Figure 5(b) shows the performance of a conventional PI controller in closed loop, which conforms to the parameters specified in the design stage (desired behavior) before the disturbance occurs. The disturbance causes deterioration in the output PI when tracking the reference. The observed change in the systems response when the disturbance appears is due to a migration of the poles of the closed-loop system (i.e. the systems parameters have changed), while the gains of the controller remained constant. After the disturbance, the controller generates a signal with more overshoot and even more settling time (longer time than desired), thus the desired performance criteria is not reached anymore.
Conclusion
In this article, an implementation of an adaptive (STR) PI controller architecture was presented and evaluated. The STR structure allows to adapt the controller parameters to accomplish a good performance according to the settling time desired and adjust in order to face changes in system parameters. The implementation involves the use of available hardware platforms (PLCs), connected to a PC to perform the adaptive computations, and communicating through the OPC standard. This allows a more feasible implementation of modern control techniques in different applications in process control, manufacturing, and robotics, employing general use hardware platforms instead of application-dependent equipment.
The performance of the implemented adaptive PI controller architecture was compared against conventional PI controllers, also implemented in the same hardware. The gains of the conventional PI controllers were tuned by pole assignment, from a proposed desired dynamic response. The adaptive PI controllers employ estimation of system’s parameters to compute the gains. This experimental setup served two main purposes: demonstrating the feasibility of controlling systems in OPC-based architectures, teamed with industrial hardware platforms (e.g. PLCs); and demonstrating the performance of adaptive PI controllers against conventional PI ones, in the presence of disturbances. Nineteen controllers were designed and implemented, for the first- and second-order systems emulated by HIL. Their dynamic performance was evaluated, by measuring the IAE with respect to the desired behavior from design, in the presence of a disturbance. Adaptive PI controllers performed better than the conventional ones.
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) disclosed receipt of the following financial support for the research, authorship and/or publication of this article: The author(s) received financial support of Polytechnic University of Aguascalientes for the publication of this article.
