1. Introduction
In the complicated industrial systems, the control object model of the system is often unpredictable because of the frequent interference of the external environment, the input condition variable, and the high coupling degree and time variation. Conventional control, such as PID control method, is difficult to achieve the desired control performance or even cannot meet the control requirements of complex industrial systems [
1]. The use of advanced control can overcome the shortcomings of conventional control, and bring significant economic benefits to industrial applications when applied properly. Advanced control refers to those uses the intelligent control and optimal control theory to evolve into a type of control method that project implementation is more difficult and the control structure is more complicated than the traditional control method [
2], ensuring the efficiency of industrial control systems, improving productivity, and reducing energy consumption.
Due to the changing production conditions and the change of product technical standards, it is often necessary to continuously optimize and update the relevant control strategies in the control system. However, the existing advanced control strategy is very difficult to coordination with the control system, the implementation and update efficiency of the control strategy is low, and has brought many challenges to industrial production [
3,
4]. The main reason for this phenomenon is that the current advanced control technology mostly uses an independent software system through the OPC way and DCS system for data communication, and communicates with the DCS system through OPC mode. In [
5], with OPC technology, the advanced control strategy implemented in MATLAB/LabVIEW is integrated with the network control system. Paper [
6] studies a kind of boiler system based on OPC application and uses OPC technology to communicate the control algorithm developed by Simulink with WICC of Siemens industrial control configuration software. Paper [
7] developed an OPC client user connection based on .Net advanced control software and DCS system. Moreover, the traditional advanced control algorithm software package is usually written in a variety of high-level language integrated into the controller, its execution process often uses the ‘black box’ feature, which makes it difficult for users to perform monitoring and online debugging of advanced control algorithms, and the application effect is not ideal.
At present, it is precisely because the algorithm execution mostly adopts the method of integration and plug-in. The independent algorithm model operating environment does not have the ability to transplant and share with each other in many different types of computing platforms, resulting in the high cost of development, operation, and maintenance of advanced control strategy in industrial applications. So, how to effectively implement and apply the advanced control strategy in the industrial control system and improve the stability and real-time performance of the whole system are the problems that need to be solved by the whole control engineering community.
Neural network control technology, as a kind of advanced intelligent control algorithm, can fully approximate the unknown nonlinear dynamic behavior of an object, you can make up for the limitation of the conventional PID method, and is used to solve some nonlinear system control problem that is difficult to modeling [
8,
9,
10,
11,
12]. However, the commonly used multi-layer forward neural network is a static network, which must be used in the control system to determine the object model. For systems with little or no prior knowledge, this method is inaccurate and affects the identification and control. Diagonal recurrent neural network has the internal feedback mechanism that can be used for the dynamic response of the memory system, and it does not need to have detailed knowledge of objects when being applied to the identification and control of a system. It can effectively improve the robustness and adaptability of the control system, improving the control performance of the system [
13,
14,
15].
This study proposes a novel Diagonal Recurrent Neural Network (DRNN) hybrid controller based on real-time database structure of memory, using the DE technology to build the algorithm execution mechanism, innovatively put forward the concept of advanced control execution carrier transformation, and realize the implementation of new techniques of neural network control algorithm in low computing performance controllers. Here, we provide a brief tutorial on DN technology. The idea of DE technology is to construct a computing environment that can explain and operate the configuration files in the different control station. The prerequisite for establishing this technique is that all technical characteristics of the control configuration can be represented in a fixed data structure. DE technology includes a real-time database structure based on memory, and software organization technical specification based on a Multi-Agent System (MAS). The data model of the control configuration is installed in the real-time database, and the DE completes all the tasks of the control station through periodic data updates. The MAS software organization is used as the transaction processing mechanism of the real-time database, which can automatically motivate specific agents from the changes of specific data, and accept the related real-time data update request. From the working principle of the Data Engine, it can be seen that the configuration of the different control station in the DE has been transformed into a real-time database with unified memory data update calculation and management issues [
16,
17,
18], thus solving the problem of programming difficulties of collaborative control of heterogeneous control devices. IAPlogic (IAP: Industry Automation Platform) [
19], a control logic configuration software corresponding to the DE, uses a unified graphical configuration programming language to describe the controlled object, provides intuitive configuration and transparent data processing, and can significantly reduce development debugging costs.
Built on such fundamental theoretical of DE, we have seen various innovations. With the help of this research, we can realize the complicated calculation and application of neural network control algorithms on various computing platforms such as PLC and PC, and support the neural network control algorithm to learn, train, and test on the lower computer, and break through the barriers of the PLC controller which can only carry on simple logic operation and control, greatly improving the system operation and control of real-time performance and stability, while supporting online configuration and debugging optimization, which helps to reduce the control system development and operation and maintenance costs [
20,
21]. The main reason for using PLC as the execution equipment is that it has very high reliability, stability, and affordability [
22]. However, for a long time, PLC has been identified as a class of equipment that is not suitable for process control and complex network control. Therefore, the significance of this study is very important.
To demonstrate the feasibility and superiority of the combination of PLC, IPC, and DE technology, a novel diagonal recurrent neural network hybrid controller was made in this paper and a DC motor speed measurement and control system is built. The neural network control strategy can run directly in the PLC, IPC-based control station of the speed control system, the use of methods is no different in nature from the conventional control. There is no longer a need to configure a high-end computer running independent advanced control software to operate an advanced control algorithm. The real-time database structure based on memory makes the diagonal recursive neural network controller not need offline training to obtain its optimal parameter value so that it can track the actual speed signal in time. Through a lot of high speed measurement and controlled experimentation, it is proven that the neural network control configuration components integrated into the configuration software can better improve the advanced control strategies and control station of the communication efficiency, improve the real-time performance of the control strategy of online operation, and provide scientific validation experiments for practical engineering application.
The rest of the paper has the following structure: in
Section 2 the main problem is stated, and the theoretical background of the DE is presented. A design method of the DRNN Hybrid Controller based on DE theory is presented in
Section 3. In
Section 4, the proposed control method to monitor and control the motor speed is explained, and the results are presented and discussed. Finally,
Section 5 is devoted to conclusions.
2. Theoretical Background
2.1. Outline of DE
The DE is the software organization made up of the real-time database based on memory and a multi-agent system of real-time data processing, mainly composed of task scheduling, a device driver, and control configuration actuator. The real-time database is a dynamic image that controls the configuration data unit, and the data content is completely independent of the control station calculation instructions and computing resources. The control configuration data unit is the control unit that performs the calculations of analog and digital quantities, for example, a control unit that acquires an input signal, a control unit that performs addition, subtraction, multiplication, and division, a control unit that performs a Boolean logic calculation, a control unit that generates a function signal, and the control unit responsible for implementation of high and low alarm, these units adopt the expression form of graphical control components, and its modeling principle is shown in
Figure 1.
Assuming that the control component is a multi-input single-output computing unit (the multiple outputs can be achieved with the configuration of multiple control components), then the data modeling is equivalent to the ‘projection’ of the data coding in a standard data space. In other words, the spatial structure of the corresponding data model is fixed regardless of the difference in the content of the control component. The differences between different control components are only reflected in the data content in the data model. The MAS software process is used to perform real-time database transaction tasks, specific interpretation, analysis, calculation, and update real-time database related matters.
The DE real-time database is embedded directly into the data memory area of the actual control station (PLC or IPC). According to the characteristics of the structure of the control component data model, the data memory in the control station is divided into several regions, and each region corresponds to a data model of the control component. To ensure that the control station in the implementation of the control configuration tasks in real-time, all the instruction operand address section should be pre-compiled into the contents of the data model in the process of generating control component data model. The operands of the control instructions employ decoding techniques to accommodate as much operation information as possible in a smaller memory space. With these techniques, the minimum operating cycle of the PLC-based advanced control algorithm controller has now reached a level of less than 20 ms.
2.2. Explanation of Data Engine Theory Operating Mechanism
The work of the DE is to control the configuration of data units as objects, and the real-time database will be continuously updated without interruption under the guidance of the computation sequence.
Figure 2 shows the structure diagram of the DE control component in MAS software. When the control mode of a data unit body is pushed to the process of the communication module, the data carried by the data unit body is first transferred to each function processing sub-module according to the data structure and contents. These data include information about control component algorithm, control component calculation property parameters, calculation results of the previous calculation cycle, and control state of control components. The process retrieves the relevant operator from the algorithm execution library for the service request information represented by the relevant data to complete the update task of the specific data.
To ensure the time-effectiveness of the control process, the traversal process of all control components must be completed within a specific operating cycle. Each of the MAS processes include an environmental perception module for monitoring the very state of the control station computing platform (dynamic reconfiguration is one of them), which can suspend the normal proxy service or temporarily change the contents of the proxy service to meet the control system security, stability, and economic operation of all the requirements.
2.3. Objective of the Control Method
Most of the current advanced control technology uses independent software system, through OPC implementing data communication with the DCS system, and the advanced control algorithm and its execution process often present the ‘black box’ feature, which makes it difficult for users to perform monitoring and online debugging of advanced control algorithms, and the application is not effective. The purpose of this study is to use DE technology to overcome the shortcomings of existing technology, providing an advanced method to implement integrated control technology in industrial control system: advanced control is integrated into the configuration software IAPlogic of the industrial control system based on the unified real-time shared memory by advanced control configuration components, the management, and configuration of advanced control components are in accordance with the conventional control components. The configuration interface is shown in
Figure 3 below; the method has the following advantages:
(1) The data structure of the advanced control algorithm is the same as that of the conventional control algorithm. The computing resources of the advanced control algorithm are close to each other. The calculation process of the advanced control can be handled directly in the control station such as PLC and IPC. Therefore, it is no longer necessary to configure the high-end computer to run the advanced control algorithm.
(2) The advanced control algorithm is integrated into the configuration software in the form of advanced control components, which can greatly improve the real-time performance of the advanced control strategy.
(3) The functions of parameter modification, input/output, and calculation of intermediate variables in advanced control strategy can be realized through the simple combination of configuration components, and the calculation process of each group of components is monitored by the monitoring software so that the graphical configuration relationship very intuitive, real-time data processing transparent, which brings great convenience to the user’s online debugging.
(4) The advanced control and traditional control adopt uniform configuration and management modes. There is no essential difference between the resources used and the methods used, and user operation is very convenient, effectively reducing the costs of the development, commissioning, operation, and maintenance of industrial control systems. The integrated graphical configuration programming environment and reusable configuration components make it more flexible for engineers to handle heterogeneous controlled devices and more with online optimization of scalability.
3. Research on DRNN Hybrid Controller Based on DE
For the formulated DE technical in the previous section, a design method of the DRNN hybrid controller is proposed in this section based on DE technology. The neural network algorithm used in this method can be transplanted and shared in different kinds of computing platforms, and can support online configuration and debugging. At the same time, the online training and testing application of the neural network controller can be realized in the lower computer, and the real-time and stability elements of the control system can meet the needs of the industrial field long-term stable work. The detail of the control method will be presented in the following subsections.
3.1. Algorithm and Configuration Component Integration
3.1.1. Basic Principle of DRNN Algorithm
For complex process industry system, the controlled object is usually the more multiple input multiple output dynamic time-varying parameter system, it is difficult to establish an accurate mathematical model, at the same time, the precision of the conventional PID control method in nonlinear system control and decoupling control also make it difficult to achieve an ideal control effect. Neural network control technology, as a kind of intelligent control method, can fully approximate the unknown nonlinear dynamic behavior of an object, making up for the limitation of the conventional PID method. It is used to solve some difficult to the modeling of nonlinear system control problem. However, the multilayer forward neural network is a kind of static network, its application in the control system must first determine the model of object [
23], for the system of unknown or little prior knowledge is inaccurate and affects the identification and control effect. The diagonal recurrent neural network has the internal feedback mechanism can be used to remember the dynamic response of the system, it can effectively improve the robustness and adaptability of the control system and improve the control performance of the system without knowing the detailed object knowledge in the system identification and control [
24,
25,
26].
There are three layers of the structure of the diagonal recursive neural network, namely the input layer, the hidden layer, and the output layer, and its structure is shown in
Figure 4. The implicit layer consists of a recursive neuron that receives only its own internal feedback, unrelated to other neurons. This simplifies the network structure, reduces the need to adjust the parameters, and accelerates the convergence speed.
For any discrete moment k, is the ith input of the network. is the sum of the input of the implicit layer j, is the output of the recursive neuron, and the . is the output of the diagonal recursive neural network, , , and represent the weights of the input layer, the hidden layer, and the output layer.
The dynamic equation of the diagonal recursive neural network is then given as
The sigmoid function
f(
x), is used as the squashing function for all neurons and defined as
Information flows forward through the net from input to output. Note that as
x tends to +∞, the value of
f(
x) tends to +1, while as
i tends to −∞,
f(
x) tends to −1. When
x is equal to 0 the value of
f(
x) is 0. As
x tends to +∞ or −∞ the value of
tends to 0, and when
x is equal to 0 the value of
is 0.5. The sigmoid function
f(
x) and its derivative function
, are shown in
Figure 5 (painted by MATLAB R2015b, the MathWorks, Inc., Shanghai, China).
The weights of
,
, and
are iteratively updated by the output of the diagonal recursive neural network
O(
k)
The structure of the control system of the diagonal recursive neural network is shown in
Figure 6, and there are two diagonal recursive neural network structures in the system. One as an identifier called the diagonal recursive neural network identifier (DRNI), the other one is called the diagonal recursive neural network controller (DRNC). This neural identifier is not used to estimate unknown parameters like in [
27], neither to estimate the reference model directly, but to approximate the unknown sensitivity of the device
. DRNC drives an unknown dynamic system that minimizes the error between the output of the device and the expected output. In this paper, a generalized dynamic Backpropagation (DBP) algorithm is used to train the DRNI network and the controller DRNC network. The current errors are also used to train the DRNN weights in the dynamic back propagation method [
28].
3.1.2. Learning Algorithm of the DRNI
The current control signal u(k) produced by the DRNC network and the output of the device at the previous moment y(k−1) as the input to the DRNI network. The error between the output of the DRNI network ym(k) and the output of the device y(k) was introduced to the weight value updating formula, and modify the weight of the DRNI network. By training, the DRNI and DRNC network can get the more effective weight of the DRNC network.
The performance index function of the DRNI network was defined as
In this paper, both DRNI and DRNC network is trained by dynamic reverse propagation (DBP) algorithm, and the update formula of weight value in DRNI network can be rewritten as
where
is the learning rate of the DRNI network,
is the new weight, and
is the current weight. The weights are iteratively updated for all the training patterns.
is calculated according to Formula (3).
3.1.3. Learning Algorithm of the DRNC
The input of the DRNC controller network is the reference input r(k), the output of the device at the previous moment y(k−1), and the control signal of the previous moment u(k−1). The output of the DRNC network is the control signal of the device u(k). After several training cycles by using the DBP algorithm to adjust the weight of the DRNC network, the error between the output y(k) and the desired output yr(k) can be reached to a small value. However, it needs the device’s Jacobian information when training DRNC network, which is usually unknown, so DRNI is required to estimate the sensitivity information of unknown devices (Jacobian information) for controller DRNC.
The performance index function of the DRNC network was defined as
The update formula of weight value in DRNC network can be rewritten as
where
is the learning rate of the DRNI network,
represents the sensitivity of the device, for unknown controlled devices, it is difficult to obtain by direct calculation, but if DRNI network has better training, it can approximate it as
Therefore, by training the DRNI and DRNC network continuously, can get the more effective weight of the DRNC network, which is the algorithm of the control system based on the diagonal recursive neural network.
3.2. Summary of DRNN Hybrid Controller Based on DE Theory
In view of the current investigation of neural network controller in industrial application, neural network algorithms run in the upper computer are often processed in non-real-time databases, and the real-time data collected by the control station also needs to be transferred to the upper computer, which affects the real-time performance of system control to a certain extent. So, a common neural network hybrid controller implementation method is proposed in this paper.
Step 1—Constructing the topology of controller algorithm by using data unit. According to the structure of the designed DRNN neural network and the learning methods of the network, the topology of the DRNN network algorithm is constructed by the data unit of the configuration software IAPlogic, and the time series judgment and analysis of the calculation order of each unit module are carried out, and then the variable data calculation and signal transfer process of the control algorithm are determined.
Step 2—Establish a mapping relationship between the data unit and the generic middleware. The function of the general middleware is to establish a connection between the computing unit module and the target platform, which is composed of a set of memory-based database, transaction scheduler, an algorithm executing program, and a middleware program. The algorithm information of the DRNN neural network topology is sent to the general middleware, the program which reflects the data unit of the network node is structured and digitally encoded according to a certain mapping relationship, and the mapping relationship between them will be established. The factors that should be considered in digital coding include real-time data, data type, identification of data in the system, control logic of the calculation unit module and calculation timing between modules, communication address, and so on.
Step 3—Establish a mapping relationship between general middleware and target platform. Analyze the programming specification of the target platform instruction system and establish a set of mapping relationship is between the structured digital coding system of the common middleware and the target platform instruction system.
Step 4—Parsing the mapping relationship between general middleware and target platform and generating the code supported by the target platform. Using the middleware program to analyze the mapping relationship between the digital code of the general middleware control algorithm and the program code of the target platform, the encoding algorithm is transformed into executable code supported by different platform computing hardware and its instruction system by using the program code automatic generation method.
Figure 7 depicts the architecture of our abstract platform based on DE Theory.
3.3. Implementation of the DRNN Control Algorithm
Unlike offline learning, online learning attempts to update the knowledge base of the neural network incrementally after the presentation of each training sample, rather than learning data samples based on a particular offline learning scenario [
29]. The topology of the DRNN controller in this study contains two parts: the instruction data that does not change during the execution of the control algorithm, and the dynamic data that participates in real-time computation and update which only needs to provide timely feedback and dynamic updates to the real-time data parts when the entire control system is running. When the DE receives a learning request, the calculation threads of the control algorithm for all data units are frozen. The data unit responsible for online learning and training is continuously receiving the feedback control signal from the actual device and is then sent to a temporary data buffer of the control station, where it retrieves the DRNN related execution algorithm from the algorithm execution library to self-iterate the data unit in time, completing the task of updating the weight data, and realizing the goal of online learning.
Numerical simulations of DRNC and DRNI were performed on an IPC platform (model IPC-S2221), a set of sinusoidal analog signals were used for confirmatory experiments. The actual output
and the reference output
of the controlled device in the diagonal recurrent neural network control system are observed to verify the feasibility of this study. Assuming a single input single output nonlinear device, its difference equation can be described as
The difference equation of the reference model is
where the reference input is
.
The goal is to determine the device input u(k) make the where the is an appropriate minimum. In this experiment, the neurons nodes in the DRNC and DRNI network were 7 and 5 respectively, , the calculation cycle of the control station ; as mentioned above, not presetting (off-line training) of the weight vector was necessary. Special requirements are not necessary for the initial conditions of the first two controllers. A real-time dynamic nonlinear learning law (as opposed to off-line training procedure) of the weight vector is proposed for the neural network by using DE technology, initial conditions of the weight vector were random number is the random number between 0 and 1, and the seven nodes were used to approximate u(k).
The simulation results are obtained when implementing the DRNN during 100 s.
Figure 8 shows the evolutions of the errors of the
during the learning online process. The convergence of the weights of the identifier and controller are shown in
Figure 9, respectively, where all of the INN weights converge after 20 s. Calculated by the IPC control station calculation cycle Ts = 100 ms, equivalent to the online iterative training nearly 200 times. The number of iterations is similar to that of some online learning research [
30,
31,
32,
33,
34].
Under the simulation conditions, the errors are significantly large and chattering in the early stages, but reduce fast when the weights converge and the performance approaches approximately optimal values. It is shown that the control system of DRNN based on DE technology has a good self-regulation and adaptive ability that can quickly recover to a stable state and the anti-interference ability is stronger.
5. Conclusions
This paper presents a DE technology based on the real-time database and multi-agent system and discusses the concept and operation mechanism in detail. Developed advanced control strategy components based on this technology have the same data structure and the configuration mode with conventional control algorithm components; it can be directly used in PLC, IPC, and another machine for visual operation and debugging, with no need to configure a separate advanced control software to perform advanced control algorithm, improving the real-time performance of the online operation of the advanced control strategy to some extent. More importantly, DE technology: (1) enables the algorithm model to have a configuration programming environment that can be migrated and shared among different types of computing platforms; (2) realizes the interconnection and interworking of data between heterogeneous equipment control devices in engineering applications; (3) significantly reduces the development, operation, and maintenance costs of industrial applications for advanced control strategies; and (4) derived an advanced control technology in actual industrial control system.
A novel DRNN hybrid controller was made in this paper to demonstrate the feasibility and superiority of the combination of PLC, IPC, and DE technology. In
Section 3, the topology structure of the diagonal recurrent neural network algorithm, the architecture of the controller, and the realization method were described in detail. Also, a numerical simulation of nonlinear equipment with known reference model was made for the DRNN controller proposed in this work. The results showed that the off-line training with extensive input data was not necessary, the system has a good self-regulation, adaptive ability, can quickly return to a stable state, and has strong anti-interference ability with the real-time dynamic nonlinear learning law of the weight vector.
The practical application research with motor speed measurement and control platform were made in this work, presented in
Section 4. The results showed the good performance of the DRNN hybrid controller and the validity of the procedure to calculate the motor speed signal with motor parameter uncertainties. Also, the transient response from the steady state provided by the DRNN control has been best compared to conventional PID control.
The control system based on DE technology realizes the graphical configuration of the neural network control algorithm by way of dynamic reconfiguration, providing an innovative application method for neural network intelligent control theory in engineering implementation, which is a major contribution of this paper. The experimental results in
Section 4.3 show that dynamically changing the topological structure of the control strategy will not cause much disturbance to the steady-state system. Therefore, the dynamic reconfiguration technology is no longer limited to the exception of the control system and the change of process conditions; it extends to the field of the dynamic evolution technology of intelligent control domain control algorithm, including the long-term continuous online optimization of the control system.
Despite all the achievements that have been made for DRNN control systems in the past decades, more efforts are still needed in the future, especially in the field of industrial control. In future studies, the DE architecture is planned to be deployed in the cloud of the Internet of Things. It will also be used to build the industrial cloud platform application of a neural network control algorithm, and research its close relationship with other systems such as the Internet of Things and multi-agent systems. This applied research will then reveal the values of control systems based on DE with an advanced control algorithm in broader perspectives.