Next Article in Journal
Memristive Circuit Design of Nonassociative Learning under Different Emotional Stimuli
Previous Article in Journal
A Semi-Supervised Object Detection Algorithm Based on Teacher-Student Models with Strong-Weak Heads
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of Hardware-in-the-Loop Simulation Technology in the Development of Electro-Hydraulic Servo System Control Algorithms

Mechanical Engineering Department, Shenyang University of Technology, Shenyang 110870, China
*
Author to whom correspondence should be addressed.
Current address: Shenyang Economic and Technological Development Zone, 111 Shenliao West Road, Shenyang 110870, China.
These authors contributed equally to this work.
Electronics 2022, 11(23), 3850; https://doi.org/10.3390/electronics11233850
Submission received: 27 October 2022 / Revised: 8 November 2022 / Accepted: 12 November 2022 / Published: 22 November 2022
(This article belongs to the Topic Designs and Drive Control of Electromechanical Machines)

Abstract

:
In this paper, we present a method to identify paramaters for controlling electro-hydraulic servo systems in a real-time environment. With the aim of addressing the problem that it is difficult to accurately obtain the state space equation parameters of the physical entity of the electro-hydraulic servo system, we introduce an online identification theory (recursive least squares method) for identifying said parameters of the state space model in a valve-controlled symmetrical cylinder system. After accurately obtaining the parameters of the system, nonlinear control of the valve-controlled symmetrical cylinder system is carried out using a backstepping algorithm. In order to verify the actual effect of the online identification algorithm and backstepping algorithm, a hardware-in-the-loop (HIL) simulation platform for the valve-controlled symmetrical cylinder system is built in a Linux real-time system, and the real-time performance of the system is evaluated, which demonstrates that the platform can be reliably applied for subsequent system identification and backstepping verification. The results of the HIL simulation test demonstrate that the online identification algorithm and backstepping control method developed in this paper are effective and reliable.

1. Introduction

Electro-hydraulic servo (EHS) systems and EHS actuators form one of the fundamental drive systems applied in industrial processes and engineering practices. Compared with electrical servo systems, EHS systems typically have higher power to weight ratios, fast and smooth start-up characteristics, and higher power storage capabilities [1,2]
The ability of EHS actuators to perform their powerful control functions is heavily dependent on the control algorithms. Typically, EHS systems, or the mechanisms they drive, exhibit strong nonlinearity [3,4,5,6]. Thus, nonlinear control algorithms are particularly suitable for EHS actuators [7,8,9,10,11,12,13,14], of which the performance of the backstepping method is the most prominent [15,16,17,18,19]. However, the backstepping method is highly dependent on the dynamic model of the controlled system and its parameters, which are usually difficult to obtain accurately and requires the use of adaptive control algorithms [20,21,22,23,24,25,26,27,28] or identification methods to obtain the exact parameters of the system [14].
In the past few decades, numerous scholars have carried out research work focused on parameter identification and nonlinear control algorithms for EHS systems. In [29], some practical issues concerning the identification of EHS actuators are discussed, with the use of discrete time linear models. Hydraulic wind power transfer systems exhibit a highly nonlinear dynamic influenced by system actuator hysteresis and disturbances from wind speed and load torque. A system identification approach to approximate such a nonlinear dynamic is presented in [30]. Wos [31] presents selected issues of position force control of EHS system using adaptive methods. This kind of measure extends the capabilities of control systems that only use position measurements. In [32], experimental work is presented on nonrecursive identification of an EHS actuator system that is represented by a discrete time model in open-loop configuration. A least squares method is used to estimate the unknown parameters of the system based on autoregression with an exogenous input (ARX) model. Jin [33] proposes a novel double-layered network scheme for accurate and efficient identification of hydraulic cylinder. Paper [34,35] presents experimental online identification of an electro-hydraulic system represented by a discrete time model. A recursive least squares (RLS) method is used to estimate the unknown parameters of the system based on autoregression using an exogenous input (ARX) model. Paper [36] presents the system identification process conducted on an industrial EHS actuator system. Ghazali [37] presents system identification of EHS actuator system using a nonrecursive or offline technique, where the mathematical model is determined first by considering fixed supply pressure and load. Lee [38] proposed a system identification algorithm of an EHS for a feedforward position control method. Cologni [39] proposed a global parametric identification procedure that has been performed to identify all unknown parameters.
The common point of the above studies is that, on the one hand, the model parameters of the electro-hydraulic servo system are obtained by means of the system identification algorithm; on the other hand, the parameters obtained by the system identification are applied to the control algorithm in order to obtain improved performance.
However, since both the system identification algorithm and the backstepping control method are complex, debugging the algorithm directly on the physical entity of the controlled object is risky and inefficient. Therefore, this paper makes use of hardware-in-the-loop (HIL) simulation technology to debug the system identification algorithm and the backstepping control algorithm in order to remedy the problem of the difficult development and debugging of control algorithms. Past studies on HIL simulation of EHS have focused on electro-hydraulic braking systems [40,41,42,43,44,45,46]. In addition, there are examples in the literature of HIL simulation for testing of electro-hydraulic fuel control unit in a jet engine application [47]. However, none of the aforementioned articles describes the method of building a HIL simulation platform in a Linux real-time environment, nor do they describe the debugging of system identification and control algorithms with the help of a HIL simulation platform. In this paper, HIL simulation technology is applied to the development and debugging of an online identification algorithm and backstepping control algorithm, which reduces the difficulty and risk associated with programs development and improves the efficiency.
The paper then introduces the basic principle of system identification and the control algorithm combined with nonlinear backstepping control and the method for its implementation; then, the nonlinear backstepping control algorithm for valve-controlled symmetric cylinder (VCSC) is derived; finally, the method of building the HIL simulation platform based on a Linux real-time system is introduced, and the identification and backstepping control method is carried out using this method. Finally, the HIL simulation platform based on Linux real-time system is presented and used to conduct identification and backstepping control experiments.

2. Electro-Hydraulic Servo System

The HIL simulation technique is reliant on the accurate mathematical description of the system dynamic characteristics model. The object of HIL simulation in this paper is an EHS system. Therefore, we first introduce the method for derivation of the mathematical model of the EHS system.
The typical actuator of the EHS system is the servo hydraulic cylinder or motor, where the former mainly executes the linear motion, and the latter mainly executes the rotary servo motion. Compared with a linear electrical motor, the former has higher power density ratio and faster response speed, so it is irreplaceable in some instances.
From a representative point of view, a valve-controlled double piston rod hydraulic cylinder is selected as a typical model for introduction, and the dynamic model of the valve-controlled hydraulic motor and cylinder is similar. In this study, it is assumed that the EHS cylinder is vertically mounted with the inertial load placed at one end of the piston rod, and a schematic diagram is shown in Figure 1. This EHS system mainly consists of a servo valve and a hydraulic cylinder and also includes pressure sensors for measuring displacement, external load, and two chambers of the hydraulic cylinder. The data obtained from these sensors will be used in the system identification and backstepping control algorithm presented in this paper.

2.1. Servo Valve

A servo valve is the most important control element in the EHS system, which amplifies the electrical signal and converts it into high power density hydraulic energy to drive the actuator to externally perform the work. The dynamic characteristics of the servo valve largely affect the overall performance of the EHS system, for which it is usually difficult to build a detailed mathematical model. For simplicity, the model of servo valve in this study is considered as first-order system, that is, the spool valve displacement x v is related to the voltage input u by a first-order system given by
x ˙ v = 1 τ v x v + k v τ v u
where τ v and k v are the time constant and gain of the servo valve respectively.

2.2. Load Model

In this paper, it is assumed that the EHS cylinder drives the inertial load to complete the motion, and the EHS cylinder and its load are vertically arranged. This way, the system will always be subjected to an external force in the vertical direction equal to the gravitational force applied to the inertial load, so it is necessary to establish the differential equation of the dynamic characteristics of the inertial load. According to Newton’s second law, the dynamics of the inertia load can be described by [48]
m x ¨ = p L A c b c x ˙ k c x F L
where x and m represent the displacement and the mass of the load, respectively. p L = p 1 p 2 is the load pressure of the cylinder, p 1 and p 2 are the left and right chamber pressure, respectively, A c is the active area of the cylinder, and b c represents the combined coefficient of the modeled damping and viscous friction forces on the load and the cylinder rod. k c is the spring stiffness of the external load, which in this case is mainly determined by the elastic deformation of the tension pressure sensor and the spring stiffness of the attached mechanical components. F L is the external load force. In this paper, since the hydraulic cylinder is assumed to be vertically arranged, the external load force is gravity, that is, F L = m g , where g is the acceleration due to gravity.

2.3. Actuator

Not ignoring the effect of leakage flows in the cylinder and servo valve, the actuator (or the cylinder) dynamics can be written as [48,49]
V t 4 β e p ˙ L = A c x ˙ C l p L + Q L
where V t is the total volume of the two-chamber cylinder and hoses between it and the servo valve, β e is the effective bulk modulus, C l is the coefficient of the total internal leakage of the cylinder due to pressure, and Q L is the load flow. Q L is related to the spool valve displacement of the servo valve by
Q L = C d w x v p s sgn x v p L ρ
where C d is the discharge coefficient, w is the spool valve area gradient for cylindrical slide valves, w = π d v , d v is the spool diameter, and p s is the supply pressure of the system.
In the load flow formula, the function sgn is used to distinguish the positive and negative directions of the hydraulic cylinder movement sign function. Its value is
sgn = 1 , 0 1 , < 0
However, the existence of this function causes the load flow formula to be discontinuous, which will cause the mathematical problem of derivative discontinuity, whether for system identification or nonlinear control. Therefore, without loss of generality, the above discontinuous function is replaced by the hyperbolic tangent [49], which is defined as
sgn = tanh k a
where k a is a proportional coefficient, which absolutely determines the slope of the hyperbolic tangent function.
Define the state variables x = x 1 , x 2 , x 3 , x 4 T x , x ˙ , p L , x v T . The system can be expressed in state space form as
x ˙ 1 = x 2 x ˙ 2 = k c m x 1 b c m x 2 + A c m x 3 1 m F L x ˙ 3 = 4 β e A c V t x 2 4 β e C l V t x 3 + 4 β e V t C d w 1 ρ p s tanh k a x 4 x 3 x 4 x ˙ 4 = 1 τ v + k v τ v u y = x 1
The above mathematical model is characterized by the use of function tanh instead of function sgn such that the discontinuous mathematical model is transformed into a continuous model. The physical characteristics of the valve-controlled cylinder system are correctly simulated, which provides the precondition for subsequent development of the HIL simulation system.

3. System Identification

To obtain increased performance of EHS systems, it is usually necessary to accurately obtain the model system parameters. Due to the common EHS actuator operating mainly through the throttle action of the servo valve to achieve servo control, the mathematical relationship between the pressure difference before and after the throttle orifice of the servo valve and the flow through the servo valve is nonlinear (square root). At the same time, the EHS system parameters, such as the elastic modulus of the oil and the flow coefficient of the throttle port, are easily affected by external factors and time-varying, which makes the dynamic model of the system and its key parameters difficult to obtain under normal circumstances.
For some control algorithms, such as PID control, it is not necessary to obtain accurate parameters of the system; for other algorithms, such as the nonlinear backstepping method, accurate parameters of the system are usually required to obtain better control results than with the PID control effect. More importantly, for the ordinary PID algorithm, when the parameters of the controlled system change due to some reason, the control algorithm has no ability to adapt to this change. If the parameters of system can be obtained online in real time, even if some parameters change, the control algorithm can adapt to this and then achieve the best control effect.
Therefore, the EHS system is dependent on the following two factors to obtain a good control effect:
  • To be able to obtain accurate mathematical model and parameters of the system;
  • if there is a change in parameters over time, it is necessary to obtain the changing parameter values in real time to modify the control algorithm.
Successfully addressing the above two factors depends on the system identification technology.
The purpose of system identification is to calculate the unknown parameters of the system by measuring the input and output data of the dynamic characteristics of the model with the help of mathematical algorithms. System identification is usually divided into offline and online. The advantage of the former is that the algorithm is simple. The disadvantage of the latter is the need to acquire a sufficient set of experiment test data of the system, which may require a long time and large storage space. More importantly, to achieve a better control effect, the parameter values obtained by offline identification can only be applied to the control algorithm after the identification work is completed. The online identification technology can obtain the key parameters of the system online and in real time such that the control algorithm relying on the dynamic characteristics of the system parameters can achieve better control results, such as in the case of the nonlinear method. Online identification saves time in data collection and improves the model accuracy and reliability. Moreover, any changes in the system structure and components will be taken into consideration in the model without the need for data collection.
Online identification can be defined as an algorithm that estimates dynamic mathematical model parameters using data measured in a real-time environment. In this paper, the dynamic model is the estimated state space function of the electro-hydraulic servo system.
The most basic method of system identification is the least squares method. The problem to be solved by least squares is to find θ i , i = 1 , , n according a series of data for known x i , i = 1 , , n and y, i.e.,
y = x 1 , , x n θ 1 θ n
written as a matrix of the form
y 1 y k = ϕ 1 T ϕ k T θ
where
ϕ i T = x 1 i x n i R 1 × n θ = θ 1 θ n R n × 1
The right-hand side of the Equation (8) represents input observations for the ith set of data, and the left-hand side represents the output observations for the ith set of data, where k represents the data with k sets of observations.
If we define
Φ k = ϕ 1 T ϕ k T R k × n , Y k = y 1 y k R k × 1
then the algorithm of least squares is
θ ^ k = Φ k T Φ k 1 Φ k T Y k
If the data are continuously transferred online, it is quite resource and memory consuming to keep using least squares for solving, so a recursive form is needed to ensure the online updating of θ ^ k . The formula for θ ^ k is provided in the literature [34]
ε k = y k ϕ k T θ ^ k 1 θ ^ k = θ ^ k 1 + K k ε k K k = P k ϕ k P k = P k 1 P k 1 ϕ k ϕ k T P k 1 1 + ϕ k T P k 1 ϕ k
In this paper, Equation (10) is used for online system identification. The state space expression for VCSC was derived in the previous section. For online system identification, the state space equation of the system is rewritten as
x ˙ 1 = x 2 x ˙ 2 = θ 21 x 1 θ 22 x 2 θ 23 F L + θ 24 x 3 x ˙ 3 = θ 31 x 2 θ 32 x 3 + θ 33 p s tanh k a x 4 x 3 x 4 x ˙ 4 = θ 41 x 4 + θ 42 u
where
θ 21 = k c m , θ 22 = b c m , θ 23 = 1 m , θ 24 = A c m θ 31 = 4 β e A c V t , θ 32 = 4 β e C l V t , θ 33 = 4 β e V t C d w 1 ρ θ 41 = 1 τ v , θ 42 = k v τ v
We assume that we do not know the parameters of the dynamic characteristics of the servo valve; therefore, parameter identification is conducted for the whole system, and the matrix form of the state space equations of the system that has to be identified is
x ˙ 2 x ˙ 3 x ˙ 4 = x 1 x 2 F L x 3 0 0 0 0 0 0 0 0 0 x 2 x 3 p s tanh k a x 4 x 3 x 4 0 0 0 0 0 0 0 0 0 x 4 u θ 21 θ 22 θ 23 θ 24 θ 31 θ 32 θ 33 θ 41 θ 42
The above dynamic characteristic equation is rewritten as
y = Ψ T Θ
where
y = x ˙ 2 x ˙ 3 x ˙ 4 T Ψ T = x 1 x 2 F L x 3 0 0 0 0 0 0 0 0 0 x 2 x 3 p s tanh k a x 4 x 3 x 4 0 0 0 0 0 0 0 0 0 x 4 u Θ = θ 21 θ 22 θ 23 θ 24 θ 31 θ 32 θ 33 θ 41 θ 42
The corresponding online identification algorithm can be developed based on Equations (10) and (13).

4. Nonlinear Backstepping Control Method

As can be seen from Equation (7), the state space expression is a nonlinear system, and the backstepping method is needed to obtain a better control effect. The basic principle of the backstepping method is to construct a virtual control quantity equal to the order according to the order of the state space equation, that is, to construct feedback linearization for each subequation of the state space equation such that the nonlinear equation becomes linear and closed-loop control is performed. If more accurate parameter values of system state space expression can be obtained, the control effect of backstepping method is better than that of a traditional control strategy, such as PID.
When the servo valve is considered as the first inertia link, the state space expression of the SCSC system is the fourth order, so the backstepping control algorithm should be carried out in four steps.
The first step of backstepping. Set i = 1 , define
e 1 = x 1 x 1 , d
Take the derivative of the above equation, then
e ˙ 1 = x ˙ 1 x ˙ 1 , d = x 2 x ˙ 1 , d
Define a Lyapunov function as
V 1 = e 1 2 / 2
and the derivative of the Lyapunov function is
V ˙ 1 = e 1 e ˙ 1 = e 1 x 2 x ˙ 1 , d
when
x 2 = x 2 , d = x ˙ 1 , d k 1 e 1
The derivative of the Lyapunov function is less than 0, i.e.,
V ˙ 1 = e 1 e ˙ 1 = e 1 x 2 x ˙ 1 , d = k 1 e 1 2 < 0
The first equation of state space is stable.
The second step of backstepping. Set i = 2 , define
e 2 = x 2 x 2 , d
Take the derivative of the above equation, then
e ˙ 2 = x ˙ 2 x ˙ 2 , d = θ 1 x 2 θ 2 F L + θ 3 x 3 x ˙ 2 , d
Define Lyapunov function as
V 2 = V 1 + e 2 2 / 2
The derivative of the above Lyapunov function is
V ˙ 2 = V ˙ 1 + e 2 e ˙ 2 = V ˙ 1 + e 2 θ 1 x 2 θ 2 F L + θ 3 x 3 x ˙ 2 , d
if
x 3 = x 3 , d = k 2 e 2 + x ˙ 2 , d + θ 1 x 2 + θ 2 F L θ 3
then
V ˙ 2 = V ˙ 1 + e 2 e ˙ 2 = V ˙ 1 + e 2 θ 1 x 2 θ 2 F L + θ 3 x 3 x ˙ 2 , d = k 1 e 1 2 k 2 e 2 2 < 0
The first and second equation of state space are stable.
The third step of backstepping. Set i = 3 , define
e 3 = x 3 x 3 , d
The derivative of the above equation is
e ˙ 3 = x ˙ 3 x ˙ 3 , d = θ 4 x 2 θ 5 x 3 + θ 6 p s tanh k a x 4 x 3 x 4 x ˙ 3 , d
Define the third Lyapunov function as
V 3 = V 2 + e 3 2 / 2
The derivative of above Lyapunov function is
V ˙ 3 = V ˙ 2 + e 3 e ˙ 3 = V ˙ 2 + e 3 θ 4 x 2 θ 5 x 3 + θ 6 p s sgn x 4 x 3 x 4 x ˙ 3 , d
if
x 4 = x 4 , d = k 3 e 3 + x ˙ 3 , d + θ 4 x 2 + θ 5 x 3 θ 6 p s sgn x 4 x 3
then
V ˙ 3 = V ˙ 2 + e 3 e ˙ 3 = V ˙ 2 + e 3 θ 4 x 2 θ 5 x 3 + θ 6 p s sgn x 4 x 3 x 4 x ˙ 3 , d = k 1 e 1 2 k 2 e 2 2 k 3 e 3 2 < 0
Then, the closed-loop control of the first three equations in the state space equation is stable.
In the fourth step, define
e 4 = x 4 x 4 d
The derivative of equation is
e ˙ 4 = x ˙ 4 x ˙ 4 d = θ 6 x 4 + θ 7 u x ˙ 4 d
Define the forth Lyapunov function as
V 4 = V 3 + 1 2 e 4 2
The derivative equation of the above function is
V ˙ 4 = V ˙ 3 + e 4 e ˙ 4 = V ˙ 3 + e 4 θ 7 x 4 + θ 8 u x ˙ 4 d
If the input signal of the servo valve is defined as
u = k 4 e 4 + x ˙ 4 d + θ 7 x 4 θ 8
then
V ˙ 4 = V ˙ 3 + e 4 e ˙ 4 = V ˙ 3 + e 4 θ 7 x 4 + θ 8 u x ˙ 4 d = k 1 e 1 2 k 2 e 2 2 k 3 e 3 2 k 4 e 4 2 < 0
The closed-loop state space equation of the whole system is stable.

5. Hardware-In-the-Loop Simulation Verification

In order to verify the correctness of the above online identification algorithm and the backstepping method, the corresponding program needs to be written and ported to the physical controller for verification. However, if the physical controller is directly connected to the entity of the controlled object, the direct control of the physical object is likely to cause unpredictable results, since the control algorithm is still in the debugging stage, which may result in damage to the controlled object or even cause personal injury in serious cases. The traditional solution is to simulate and verify the identification or control algorithm in a simulation environment and then, after this is successfully carried out, to transfer it to the controller to control the physical entity. The simulation environment is nonetheless different from the physical entity, and the algorithm, though successfully debugged in the simulation, may cause various unpredictable problems when transplanted to the physical controller. It would be very advantageous for control system engineers to be able directly debug the algorithm program of the physical controller in a relatively safe environment. HIL simulation technology is created to solve the above problems.
In this paper, the correctness of the online identification and the nonlinear control algorithm is verified using the HIL simulation technique. The HIL simulation technique replaces the physical entity of the controlled object with a mathematical model and operates together with a physical controller in a real-time environment. The physical controller is connected to the real-time solution of the controlled object through the I/O interface of the data acquisition card as if the controller were directly connected to the sensors of the physical system. Using the above method, it is not aware of the existence of the simulation model, as if it were running together with the physical entity of the controlled object in a real environment. More importantly, in this environment, the HIL simulation algorithm and the backstepping algorithm can be fully debugged because the controlled object is not a physical entity, and there is no need to worry about possible physical damage or personal injury caused by algorithm errors. At the same time, the successfully debugged physical controller can be directly connected to the physical entity of the controlled object, and the control of the physical entity of the controlled object can be basically and immediately successful based on HIL simulation in the early stage, thus improving the development efficiency and reducing the cost.
To improve the reliability of HIL simulation, two aspects need to be addressed.
  • The mathematical model of the physical entity that replaces the controlled object should be as accurate as possible.
  • The operating environment of the HIL simulation should be as real time as possible.
Point 1 guarantees the credibility of HIL simulation. If the mathematical model of the controlled object cannot accurately simulate the dynamic performance of the real physical entity, it deviates from the original intention of using HIL simulation. Point 2 ensures the reliability of HIL simulation, because only in a strongly real-time environment can the dynamic characteristics of the controlled physical entity be accurately reproduced, the real-time performance of the control algorithm guaranteed, and the reliability of controller verified.
Regarding point 1, the dynamic equation of the VCSC, as shown in (7), has been described in the previous section. Using this form, the requirements of the system dynamic characteristic equations for both online identification and backstepping simulation can be satisfied. The system parameters obtained from the identification can be directly adopted by the backstepping control algorithm, which ensures the coordination of the online identification algorithm and the backstepping control algorithm. Meanwhile, the equation of (7) takes into account the load spring stiffness, the internal leakage of the hydraulic cylinder, etc., and can reproduce all the dynamic characteristics of the controlled physical entity, and this characteristic equation is accurate.
Regarding point 2, considering the economy and feasibility, the solution adopted in this paper is to install the Preemp_RT patch to the kernel of Linux operating system to ensure the Linux is a hard real-time operating system. The most important feature of the hard real-time kernel is its preempt ability, where ready high-priority tasks are able to preempt low-priority tasks. This ensures the accuracy in timing of the real-time system. After actual testing, the timing accuracy of the Linux system with the Preempt_RT kernel installed can reach 1 ms and is very stable, thus fully meeting the requirements of this paper for system identification and backstepping control algorithm verification.
The validation of the HIL simulation consists of three main groups of experiments.
The first group of experiments verifies the performance of the HIL simulation environment, and the scheme used is the test comparison of 1 ms timer timing accuracy under a Windows environment and 1 ms timer timing accuracy after the Linux+Preempt_RT real-time kernel patch.
In the second group of experiments, the accuracy and reliability of system identification are verified under the HIL simulation environment.
In the third set of experiments, the accuracy and reliability of the backstepping algorithm are verified under the HIL simulation environment.

5.1. HIL Simulation Platform Hardware and Software

In order to verify the system identification and backstepping control method in a HIL simulation environment, this paper modifies the Ubuntu 18.04 system into a hard real-time by installing the Preempt_RT patch with the help of Ubuntu 18.04. A low-cost HIL simulation software and hardware platform is established through C language and development of the related software.
The physical hardware of the platform includes an industrial control computer with Ubuntu 18.04 system installed. There is one Advantech USB-5820 analog output data acquisition card and two USB-5817 input data cards. As the Linux operating system and its real-time kernel patch Preempt_RT are open source software, the procurement costs of Advantech data acquisition cards are relatively low under the premise of ensuring 16-bit acquisition accuracy, so the cost of entire HIL simulation platform is relatively low is comparison to commercial products.
The operation principle of the HIL simulation platform is that, with the help of the open source numerical algorithm library GSL [50], the system of differential equations described by the state space is numerically solved using the Runge–Kutta algorithm under the Linux+Preempt_RT real-time environment, and the results of solution operation are outputted by the USB-5820 data acquisition card for analog output (usually ±10 V or 4–20 mA signal). In this way, the physical object under control and its sensor output are simulated, providing a real-time input signal for the controller. At the same time, the HIL simulation platform, with the help of the USB-5817 analog input data acquisition card, reads the control signal of the physical controller (usually ±10 V or 4–20 mA signal) with a period of 1 ms, which is applied to the input of the state space equation, and the differential equation is solved and calculated based on the new control input to obtain the new state variable, which is then outputted with the help of USB-5820 data acquisition card. Outputting continues, so on and so forth, and the basic function of the HIL simulation platform is completed.
The hardware architecture of the HIL simulation platform developed in this paper is shown in Figure 2.
The HIL simulation platform on which the experiments in this paper are conducted is shown in Figure 3.
The development of software for this HIL simulation platform is realized using C language and calling library functions of Advantech data acquisition cards. Since Advantech data acquisition cards provide drivers for the Linux environment, it ensures the reading of high-precision control signals and the output of numerical calculation results in a real-time environment.
The software operation flow chart of the HIL simulation platform is shown in Figure 4.
To complete the HIL simulation experiment, cooperation of the physical controller is also required. In the latter, the cycle of data acquisition, operation, and output control signal is also executed with a timing cycle of 1 ms. The program flow chart is similar to Figure 4, except that the numerical solution part of the differential equation is replaced with either the system identification or the backstepping algorithm, depending on the content of control experiment. The former is used to estimate the key parameters of the system, and the latter is used to perform nonlinear control of the system. The execution process of the algorithm in the physical controller is divided into four main steps.
Step 1: Online identification, calculate the nonlinear coefficients of the electro-hydraulic cylinder system;
Step 2: Update the control parameters of the nonlinear backstepping algorithm;
Step 3: Calculate the next output u ( k + 1 ) of the controller;
Step 4: Return to Step 2 and continue the loop.
The schematic diagram of the VCSC model injected by this hardware in the ring HIL simulation platform is shown in Figure 1. The key parameters of the whole model simulation are listed in Table 1.

5.2. Verification of the HIL Simulation Platform Performance in Real Time

In order to verify the real-time performance of the Ubuntu system after installing the Preempt_RT patch, a test is designed for comparing the performance between the Ubuntu18.04 and Windows 10 system in real time. The basic principle of the experiment is that in Ubuntu18.04 system with the Preempt_RT patch installed, the pulse voltage signal is sent out by the data acquisition card USB-5820 of Advantech at a time interval of 1 ms; under the same conditions in the Windows 10 system, using the high-precision multimedia timer and data acquisition card USB-5820 of Advantech, the pulse voltage signal with a period of 1 ms is also sent out. The periodic pulse voltage signals sent by two groups of software timers are collected by the logic analyzer, which is LA1010 produced by Kingst Company in Qingdao, China.
The logic analyzer sampling results for a 1 ms period pulse signal in the Windows 10 environment are shown in Figure 5.
It can be observed from the Figure 5 that when the pulse signal is sent at an interval of 1 ms, the period of the pulse signal should have been 2 ms. From the figure, it can be observed that although the vast majority of timing periods are close to 2 ms, there are individual cases of timing periods as long as 4 ms. That is to say, since Windows 10 is not a real-time system, it is not completely reliable to use it for high-precision timing.
In Ubuntu 18.04 with the Preempt_RT patch installed, the voltage signal is sent at 1 ms intervals, and the sampling results obtained with the help of the logic analyzer are shown in Figure 6.
From Figure 6, it can be observed that the periodic pulse signal issued under the real-time Linux system is uniform and stable. A timing period is selected for measurement at the maximum in the figure, and the obtained timing period is 2.05 ms, i.e., the maximum timing error is 50 μ s.
Comparing Figure 5 and Figure 6, it can be seen that the timing accuracy of the HIL simulation system based on the Linux real-time kernel patch developed in this paper can meet the requirements for real-time sampling and control. The results obtained from the HIL simulation experiments conducted using this platform are therefore credible.
The following paper will use this HIL simulation system to conduct identification and backstepping control experiments.

5.3. System Identification Experiments in HIL Simulation Environment

The system identification HIL simulation experiments were conducted on the HIL platform developed in the previous section. The process of system identification is as follows. The HIL simulation platform writes the differential equation of the identified system (valve-controlled symmetric cylinder) in C language on the HIL simulation platform, and the timer time interval is 1 ms. This solution is the output of the identified system, and the output signal is offered to the controller through the USB-5820 data acquisition card.
The controller is another industrial control computer that reads the output of the HIL simulation platform through the analog input function of USB-4704 and outputs a sinusoidal signal to the HIL simulation platform through the analog output function of USB-4704. The timing interval is also 1 ms, and so on and so forth. Between each timing cycle, the system identification algorithm, Equation (10), is invoked to generate the recursive identification results. The identification result is saved to provide the relevant parameters for the next backstepping control algorithm.
In this experiment, the input current signal is u = 10 sin 2 π t mA . The input and the displacement signal of the hydraulic cylinder output for the HIL simulation are shown in Figure 7, where the solid line indicates the input current signal and the dashed line indicates the hydraulic cylinder output displacement curve.
Sampling plots of the main state variables and the derivatives of the acceleration and load pressure of the system during identification are shown in Figure 8. The three state variables, velocity, acceleration, and derivative of load pressure, correspond to y in Equation (13), and the values of each element of Ψ T in the equation can be calculated from the state variables. Then, according to Equation (10), the value Θ of each parameter to be identified can be calculated.
The iterative approximation curves of the system to identify each parameter are shown in Figure 9. Here, the dashed line is the real value of the identified parameter, which can be obtained according to the HIL simulation model equation. The solid line is the variation curve of the estimated value of the online identification parameter. It can be seen from Figure 9 that, with the accumulation of the number of online recognition iterations, the value of parameter rapidly approaches the true value.
To further test the correctness of system identification algorithm, a time-varying load is applied to the system with the help of the load simulation function of the platform, i.e., F L = F L 0 + 1000 sin π t . Under this time-varying load, the identification results of the system parameters are still close to the real values, as shown in Figure 10, and the identification results of the parameters are shown in column 5 of Table 2. Therefore, the system identification algorithm developed in this paper is demonstrated to be correct, and the effectiveness of using the semi-physical simulation platform to verify the online identification algorithm is also shown.
A comparison of the estimated and true values of the stability parameters obtained from system identification is shown in Table 2.
As can be seen from Table 2, the values of the parameters obtained from the system identification basically match the set values of the parameters in the HIL simulation environment. This demonstrates the correctness of the online identification algorithm and illustrates the effectiveness of its use in HIL simulation technology.
The parameter values obtained from the system identification are saved and prepared for the performance of backstepping control in the following.

5.4. Experiment of Backstepping Control Method in HIL Simulation Environment

Since all the parameters of the state space equation have been obtained based on system identification in the previous section, it is possible to develop the backstepping control program and perform HIL simulation verification of the backstepping control method for the valve-controlled symmetric cylinder system based on the basic principles of Section 3.
The difference from the previous section is that, instead of executing the system identification algorithm in each timing loop of the controller, the backstepping algorithm introduced in Section 3 is executed. The HIL simulation system, however, still uses 1 ms as the timing cycle to complete the fixed cycle of reading the data acquisition card signal, numerically solving the state equation of the VCSC system and outputting the solved state variables through the data acquisition card.
In order to illustrate the effectiveness of the nonlinear control algorithm, HIL simulation of the PID was also performed to verify the effectiveness of the PID control algorithm. The effect of the PID is compared with that of the nonlinear backstepping method.
The HIL simulation model of the VCSC system constructed with the data in Table 1 as key parameters is carried out for the PID and the backstepping control experiment as appropriate. The parameters of the conducted PID experiments are shown in Table 3.
The graph of simulation results for PID control is shown in Figure 11. The upper part of Figure 11 shows the graph for comparison between the command curve and the actual displacement curve, and the lower part shows the error values of the command curve and the actual output curve.
It can be observed from Figure 11 that the error of the system reaches a maximum of about 0.015 m with the current PID control parameters and then stabilizes at about 0.005 m.
The HIL simulation model of the valve-controlled symmetric cylinder system constructed with the key parameters in Table 4 and Table 5 was subjected to two sets of nonlinear backstepping method control HIL simulation experiments. The control parameters of the first group of backstepping method are shown in Table 4.
The first set of hardware-in-the-loop semi-physical simulation experiments for the backstepping method is shown in Figure 12. The command and output curves and the error between them are shown in this figure under the control of backstepping method. As can be seen in the lower part of Figure 12, the system error finally stabilizes within 0.02 m under the action of the control parameters in Table 4, which is approximately the same as the error under PID control.
The control parameters for the second set of backstepping methods are shown in Table 5 and have increased compared with the values in Table 4.
The input–output and error curves of the nonlinear backstepping semi-physical simulation of the valve-controlled symmetric cylinder are shown in Figure 13.
It can be seen from the Figure 13 that, when the values of the control parameters are appropriately increased, the maximum tracking error of the input and output signals is 0.007 m in the initial stage, and as the system operation tends to a steady state, the error rapidly decreases and stabilizes to less than 0.0005 m, which shows that the backstepping method has higher control accuracy compared with the PID control algorithm when the appropriate parameters are set.

6. Conclusions

A HIL simulation debugging method based on a Linux real-time kernel patch is proposed to address the problem of difficulty in debugging a EHS system online identification algorithm and nonlinear backstepping control method in practical applications. This developed HIL simulation experiment platform is developed based on Linux+Preempt_RT. Taking the VCSC EHS system as the control object, the online identification algorithm is developed, and the backstepping control algorithm is derived. Using the developed HIL simulation platform, the timer accuracy test is conducted, and the results show that the HIL simulation platform developed in this paper can achieve the required timing accuracy in hard real time. Furthermore, the HIL simulation platform was used to carry out the simulation of system identification and nonlinear backstepping method for VCSC. Using the HIL simulation for system identification, all the key parameters were accurately obtained and assigned to the simulation model of the VCSC in advance; at the same time, using the nonlinear backstepping control implemented by the parameters obtained from system identification, a better control effect was achieved than with the common PID control algorithm.
The above experiments demonstrate that the HIL simulation platform developed in this paper has reliable real-time performance, and the experimental results obtained from the system identification experiments and the nonlinear backstepping control algorithm conducted on this platform are credible. Since the HIL experiments used are simulations, the verification of physical controllers with system identification and control algorithms can be directly applied in engineering the physical entities of VCSCs.
Future research work will focus on building an experimental platform for the physical entity of the VCSC, transplanting the controller verified by the HIL simulation environment to the physical entity experimental platform and completing the system identification and nonlinear backstepping control experiments for the physical entity to further verify the effectiveness of the system identification and nonlinear backstepping control algorithm.

Author Contributions

Conceptualization, Q.L., F.L. and J.G.; methodology, Q.L.; software, K.W.; validation, K.W., H.Z. and Z.W.; formal analysis, D.S.; writing—original draft preparation, Q.L. and J.G.; writing—review and editing, D.S.; visualization, Q.L.; project administration, Q.L.; funding acquisition, D.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Nature Science Foundation of China, grant number 51775354.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
EHSelectro-hydraulic servo
VCSCvalve-controlled symmetrical cylinder
HILhardware-in-the-loop

References

  1. Jelali, M.; Kroll, A. Hydraulic Servo-Systems: Modelling, Identification and Control; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2002. [Google Scholar]
  2. Milecki, A.; Ortmann, J. Electrohydraulic linear actuator with two stepping motors controlled by overshoot-free algorithm. Mech. Syst. Signal Process. 2017, 96, 45–57. [Google Scholar] [CrossRef]
  3. Maier, C.C.; Schröders, S.; Ebner, W.; Köster, M.; Fidlin, A.; Hametner, C. Modeling and nonlinear parameter identification for hydraulic servo-systems with switching properties. Mechatronics 2019, 61, 83–95. [Google Scholar] [CrossRef]
  4. Jelali, M.; Schwarz, H. Nonlinear identification of hydraulic servo-drive Systems. IEEE Control Syst. Mag. 1995, 15, 17–22. [Google Scholar]
  5. Wos, P.; Dindorf, R. Nonlinear modeling and parameter identification for electro-hydraulic servo system. In Proceedings of the 2019 20th International Carpathian Control Conference (ICCC), Krakow-Wieliczka, Poland, 26–29 May 2019; pp. 1–5. [Google Scholar]
  6. Kwak, B.J.; Yagle, A.E.; Levitt, J.A. Nonlinear system identification of hydraulic actuator. Friction dynamics using a Hammerstein model. In Proceedings of the 1998 IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP’98 (Cat. No. 98CH36181), Seattle, WA, USA, 15 May 1998; Volume 4, pp. 1933–1936. [Google Scholar]
  7. Ling, T.; Rahmat, M.; Husain, A. System identification and control of an Electro-Hydraulic Actuator system. In Proceedings of the 2012 IEEE 8th International Colloquium on Signal Processing and Its Applications, Malacca, Malaysia, 23–25 March 2012; pp. 85–88. [Google Scholar]
  8. Papadopoulos, E.; Mu, B.; Frenette, R. On modeling, identification, and control of a heavy-duty electrohydraulic harvester manipulator. IEEE/ASME Trans. Mechatron. 2003, 8, 178–187. [Google Scholar] [CrossRef]
  9. Kaddissi, C.; Kenne, J.P.; Saad, M. Identification and real-time control of an electrohydraulic servo system based on nonlinear backstepping. IEEE/ASME Trans. Mechatron. 2007, 12, 12–22. [Google Scholar] [CrossRef]
  10. Sadeghieh, A.; Sazgar, H.; Goodarzi, K.; Lucas, C. Identification and real-time position control of a servo-hydraulic rotary actuator by means of a neurobiologically motivated algorithm. ISA Trans. 2012, 51, 208–219. [Google Scholar] [CrossRef]
  11. Yuan, H.B.; Na, H.C.; Kim, Y.B. System identification and robust position control for electro-hydraulic servo system using hybrid model predictive control. J. Vib. Control 2018, 24, 4145–4159. [Google Scholar] [CrossRef]
  12. Liang, X.W.; Ismail, Z.H. System identification and model predictive control using CVXGEN for electro-hydraulic actuator. Int. J. Integr. Eng. 2019, 11. [Google Scholar] [CrossRef]
  13. Feng, H.; Yin, C.; Ma, W.; Yu, H.; Cao, D. Parameters identification and trajectory control for a hydraulic system. ISA Trans. 2019, 92, 228–240. [Google Scholar] [CrossRef]
  14. Jinxing, S.; Hongxin, C.; Ke, F.; Hong, Z.; Huanliang, L. Parameter identification and control algorithm of electrohydraulic servo system for robotic excavator based on improved hammerstein model. Math. Probl. Eng. 2020, 2020, 9216019. [Google Scholar] [CrossRef]
  15. Zhao, J.; Song, D.; Zhu, B.; Chen, Z.; Sun, Y. Nonlinear backstepping control of electro-hydraulic brake system based on bond graph model. IEEE Access 2020, 8, 19100–19112. [Google Scholar] [CrossRef]
  16. Guo, Q.; Sun, P.; Yin, J.; Yu, T.; Jiang, D. Parametric adaptive estimation and backstepping control of electro-hydraulic actuator with decayed memory filter. ISA Trans. 2016, 62, 202–214. [Google Scholar] [CrossRef]
  17. Ba, D.X.; Ahn, K.K.; Truong, D.Q.; Park, H.G. Integrated model-based backstepping control for an electro-hydraulic system. Int. J. Precis. Eng. Manuf. 2016, 17, 565–577. [Google Scholar] [CrossRef]
  18. Yang, X.; Zheng, X.; Chen, Y. Position tracking control law for an electro-hydraulic servo system based on backstepping and extended differentiator. IEEE/ASME Trans. Mechatron. 2017, 23, 132–140. [Google Scholar] [CrossRef]
  19. Tian, L.; Qian, L.; Chen, L.; Zhang, W. Sliding mode control based on backstepping method for electro-hydraulic single-rod actuator. In Proceedings of the 2015 IEEE International Conference on Information and Automation, Lijiang, China, 8–10 August 2015; pp. 2326–2329. [Google Scholar]
  20. Kim, H.; Park, S.; Song, J.; Kim, J. Robust position control of electro-hydraulic actuator systems using the adaptive back-stepping control scheme. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2010, 224, 737–746. [Google Scholar] [CrossRef]
  21. Yin, X.; Lin, Y.; Li, W.; Gu, Y.; Lei, P.; Liu, H. Adaptive back-stepping pitch angle control for wind turbine based on a new electro-hydraulic pitch system. Int. J. Control 2015, 88, 2316–2326. [Google Scholar] [CrossRef]
  22. Zang, W.; Zhang, Q.; Shen, G.; Fu, Y. Extended sliding mode observer based robust adaptive backstepping controller for electro-hydraulic servo system: Theory and experiment. Mechatronics 2022, 85, 102841. [Google Scholar] [CrossRef]
  23. Ahn, K.K.; Nam, D.N.C.; Jin, M. Adaptive backstepping control of an electrohydraulic actuator. IEEE/ASME Trans. Mechatron. 2013, 19, 987–995. [Google Scholar] [CrossRef]
  24. Li, X.; Zhu, Z.C.; Rui, G.C.; Cheng, D.; Shen, G.; Tang, Y. Force loading tracking control of an electro-hydraulic actuator based on a nonlinear adaptive fuzzy backstepping control scheme. Symmetry 2018, 10, 155. [Google Scholar] [CrossRef] [Green Version]
  25. Feng, L.; Yan, H. Nonlinear adaptive robust control of the electro-hydraulic servo system. Appl. Sci. 2020, 10, 4494. [Google Scholar] [CrossRef]
  26. Zibin, X.; Jianqing, M.; Ruan, J. Adaptive backstepping neural network control of electro-hydraulic position servo system. In Proceedings of the 2008 2nd International Symposium on Systems and Control in Aerospace and Astronautics, Shenzhen, China, 10–12 December 2008; pp. 1–4. [Google Scholar]
  27. Lee, J.M.; Kim, H.M.; Park, S.H.; Kim, J.S. A position control of electro-hydraulic actuator systems using the adaptive control scheme. In Proceedings of the 2009 7th Asian Control Conference, Hong Kong, China, 27–29 August 2009; pp. 21–26. [Google Scholar]
  28. Dashti, Z.A.S.; Jafari, M.; Gholami, M.; Shoorehdeli, M.A. Neural—Adaptive control based on backstepping and feedback linearization for electro hydraulic servo system. In Proceedings of the 2014 Iranian Conference on Intelligent Systems (ICIS), Bam, Iran, 4–6 February 2014; pp. 1–6. [Google Scholar]
  29. Ziaei, K.; Sepehri, N. Modeling and identification of electrohydraulic servos. Mechatronics 2000, 10, 761–772. [Google Scholar] [CrossRef]
  30. Vaezi, M.; Izadian, A. Piecewise affine system identification of a hydraulic wind power transfer system. IEEE Trans. Control Syst. Technol. 2015, 23, 2077–2086. [Google Scholar] [CrossRef] [Green Version]
  31. Ishak, N.; Tajjudin, M.; Adnan, R.; Ismail, H. System identification and model validation of electro-hydraulic actuator for quarter car system. ARPN J. Eng. Appl. Sci. 2017, 4, 27–35. [Google Scholar]
  32. Wos, P.; Dindorf, R. Practical parallel position-force controller for electro-hydraulic servo drive using on-line identification. Int. J. Dyn. Control 2016, 4, 52–58. [Google Scholar] [CrossRef] [Green Version]
  33. Jin, L.; Wang, Q. Accurate model identification of the inertial mass dynamic of hydraulic cylinder with model uncertainty. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2019, 233, 501–510. [Google Scholar] [CrossRef]
  34. Ghazali, R.; Sam, Y.M.; Rahmat, M.F.; Zulfatman. On-line identification of an electro-hydraulic system using recursive least square. In Proceedings of the 2009 IEEE Student Conference on Research and Development (SCOReD), Serdang, Malaysia, 16–18 November 2009; pp. 471–474. [Google Scholar]
  35. Ghazali, R.; Sam, Y.M.; Rahmat, M.F.; Zulfatman. Open-loop and closed-loop recursive identification of an electro-hydraulic actuator system. In Proceedings of the 2010 IEEE Conference on Robotics, Automation and Mechatronics, Singapore, 28–30 June 2010; pp. 285–290. [Google Scholar]
  36. Ling, T.; Rahmat, M.; Husain, A.; Ghazali, R. System identification of electro-hydraulic actuator servo system. In Proceedings of the 2011 4th International Conference on Mechatronics (ICOM), Kuala Lumpur, Malaysia, 17–19 May 2011; pp. 1–7. [Google Scholar]
  37. Ghazali, R.; Soon, C.; Jaafar, H.I.; Sam, Y.M.; Rahmat, M. System identification of electro-hydraulic actuator system with pressure and load effects. In Proceedings of the 2014 IEEE International Conference on Control System, Computing and Engineering (ICCSCE 2014), Penang, Malaysia, 28–30 November 2014; pp. 256–260. [Google Scholar]
  38. Lee, K.H.; Baek, S.G.; Choi, J.Y.; Park, J.J.; Choi, H.R.; Moon, H.; Koo, J.C. System identification of hydraulic system using RLS algorithm for feedforward position control. In Proceedings of the 2015 12th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI), Goyang, Republic of Korea, 28–30 October 2015; pp. 63–65. [Google Scholar]
  39. Cologni, A.L.; Mazzoleni, M.; Previdi, F. Modeling and identification of an electro-hydraulic actuator. In Proceedings of the 2016 12th IEEE International Conference on Control and Automation (ICCA), Kathmandu, Nepal, 1–3 June 2016; pp. 335–340. [Google Scholar]
  40. D’alfio, N.; Morgando, A.; Sorniotti, A. Electro-hydraulic brake systems: Design and test through hardware-in-the-loop simulation. Veh. Syst. Dyn. 2006, 44, 378–392. [Google Scholar] [CrossRef]
  41. Yong, J.; Gao, F.; Ding, N.; He, Y. Design and validation of an electro-hydraulic brake system using hardware-in-the-loop real-time simulation. Int. J. Automot. Technol. 2017, 18, 603–612. [Google Scholar] [CrossRef]
  42. Sorniotti, A.; Repici, G.M. Hardware in the loop with electro-hydraulic brake systems. In Proceedings of the 9th WSEAS International Conference on Systems, Athens, Greece, 11–13 July 2005. [Google Scholar]
  43. Lee, Y.; Lee, W.S. Hardware-in-the-loop Simulation for Electro-mechanical Brake. In Proceedings of the 2006 SICE-ICASE International Joint Conference, Busan, Korea, 18–21 October 2006; pp. 1513–1516. [Google Scholar]
  44. Heo, S.J.; Park, K.; Ahn, H.S. Design and implementation of hardware-in-the-loop simulator for EHB systems. In Proceedings of the SICE 2003 Annual Conference (IEEE Cat. No. 03TH8734), Fukui, Japan, 4–6 August 2003; Volume 1, pp. 612–616. [Google Scholar]
  45. Velardocchia, M.; Sorniotti, A. Hardware-in-the-Loop to Evaluate Active Braking Systems Performance; Technical Report, SAE Technical Paper; SAE: Warrendale, PA, USA, 2005. [Google Scholar]
  46. Montazeri-Gh, M.; Nasiri, M. Hardware-in-the-loop simulation for testing of electro-hydraulic fuel control unit in a jet engine application. Simulation 2013, 89, 225–233. [Google Scholar] [CrossRef]
  47. Ferreira, J.A.; De Oliveira, J.E.; Costa, V.A. Modeling of hydraulic systems for hardware-in-the-loop simulation: A methodology proposal. In Proceedings of the ASME International Mechanical Engineering Congress and Exposition, Nashville, TN, USA, 14–19 November 1999; Volume 16479, pp. 33–39. [Google Scholar]
  48. Merrit, H.E. Hydraulic Control Systems; John Whiley & Sons Inc.: New York, NY, USA, 1967. [Google Scholar]
  49. Alleyne, A.; Liu, R. A simplified approach to force control for electro-hydraulic systems. Control Eng. Pract. 2000, 8, 1347–1356. [Google Scholar] [CrossRef]
  50. Gough, B. GNU Scientific Library Reference Manual; Network Theory Ltd.: Godalming, UK, 2009. [Google Scholar]
Figure 1. Schematic diagram of electro-hydraulic servo system for VCSC.
Figure 1. Schematic diagram of electro-hydraulic servo system for VCSC.
Electronics 11 03850 g001
Figure 2. Hardware architecture schematic of the hardware-in-the-loop simulation platform.
Figure 2. Hardware architecture schematic of the hardware-in-the-loop simulation platform.
Electronics 11 03850 g002
Figure 3. Photo of the HIL simulation platform as a physical entity.
Figure 3. Photo of the HIL simulation platform as a physical entity.
Electronics 11 03850 g003
Figure 4. HIL simulation platform software operation flow chart.
Figure 4. HIL simulation platform software operation flow chart.
Electronics 11 03850 g004
Figure 5. Timing accuracy test of high-precision timer under Windows 10 operating system.
Figure 5. Timing accuracy test of high-precision timer under Windows 10 operating system.
Electronics 11 03850 g005
Figure 6. Timing accuracy test of high-precision timer under real-time Linux operating system.
Figure 6. Timing accuracy test of high-precision timer under real-time Linux operating system.
Electronics 11 03850 g006
Figure 7. Input signal and output displacement curve in the system identification experiment.
Figure 7. Input signal and output displacement curve in the system identification experiment.
Electronics 11 03850 g007
Figure 8. Curve diagram of key state variables in system identification experiment.
Figure 8. Curve diagram of key state variables in system identification experiment.
Electronics 11 03850 g008
Figure 9. Iterative approximation curve of parameters in the system identification experiment.
Figure 9. Iterative approximation curve of parameters in the system identification experiment.
Electronics 11 03850 g009
Figure 10. Iterative approximation curve of parameters in system identification experiment with time-varying load.
Figure 10. Iterative approximation curve of parameters in system identification experiment with time-varying load.
Electronics 11 03850 g010
Figure 11. HIL simulation curve of PID control.
Figure 11. HIL simulation curve of PID control.
Electronics 11 03850 g011
Figure 12. HIL simulation curve under the first set of control parameters of backstepping method.
Figure 12. HIL simulation curve under the first set of control parameters of backstepping method.
Electronics 11 03850 g012
Figure 13. Hardware-in-the-loop simulation curve under the second set of control parameters of the backstepping method.
Figure 13. Hardware-in-the-loop simulation curve under the second set of control parameters of the backstepping method.
Electronics 11 03850 g013
Table 1. Key parameters of the electro-hydraulic servo system of the valve-controlled symmetrical cylinder.
Table 1. Key parameters of the electro-hydraulic servo system of the valve-controlled symmetrical cylinder.
ParameterValueUnitSpecification
k c 1 × 10 5 N/mLoad spring stiffness
b c 10N/(m/s)Viscous damping coefficient
D0.032mPiston diameter
d0.020mRod diameter
g9.81 m/s2Gravity of acceleration
m100kgLoad mass
F L 1000NExternal load force
β e 1.7 × 10 9 PaElastic modulus of oil
C d 0.62 Orifice flow coefficient
d v 0.01mServo valve spool diameter
w d v π = 0.0314 mValve area gradient
p s 2.1 × 10 7 PaSupply pressure
k a 1000 Gain of hyperbolic tangent function
ρ 890 kg/m3Oil density
τ v 0.05sServo valve time constant
k v 0.015 × 10 3 m/mAFlow gain of valve
b d π = 0.0628 mWidth of internal leakage gap
δ 1 × 10 4 mHeight of internal leakage gap
μ 0.051 Pa s Dynamic viscosity of oil
l0.06mLength of internal leakage
C l b δ 3 / 12 μ L Internal leakage coefficient
Table 2. Comparison between actual and estimated values in system identification of experimental parameters.
Table 2. Comparison between actual and estimated values in system identification of experimental parameters.
ParametersExpressionSet Value of Hardware-in-the-Loop SimulationEstimated ValueEstimated Value of Vary Load
θ 21 k c / m 1000 1.0040 × 10 3 1.002 × 10 3
θ 22 b c / m 0.10.08460.0801
θ 23 1 / m 0.010.010.0100
θ 24 A c / m 0.4901 × 10 5 0.4921 × 10 5 0.4902 × 10 4
θ 31 4 β e A c / V t 6.6652 × 10 10 6.2156 × 10 10 6.8303 × 10 10
θ 32 4 β e C l / V t 372.3369347.2963381.5358
θ 33 4 β e C d w / V t ρ 8.8794 × 10 10 8.2822 × 10 10 9.0988 × 10 10
θ 41 1 / τ v 2020.082119.6383
θ 42 k v / τ v 0.3 × 10 3 0.3014 × 10 3 0.2953 × 10 3
Table 3. PID control parameters.
Table 3. PID control parameters.
Control ParameterValue
k p 1000
k i 0.01
k d 10
Table 4. The first set of control parameters of the backstepping control method.
Table 4. The first set of control parameters of the backstepping control method.
Control ParameterValue
k 1 80
k 2 80
k 3 160
k 4 160
Table 5. The second set of control parameters of the backstepping control method.
Table 5. The second set of control parameters of the backstepping control method.
Control ParameterValue
k 1 160
k 2 160
k 3 320
k 4 320
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Liang, Q.; Gao, J.; Liu, F.; Wang, K.; Zhang, H.; Wang, Z.; Su, D. Application of Hardware-in-the-Loop Simulation Technology in the Development of Electro-Hydraulic Servo System Control Algorithms. Electronics 2022, 11, 3850. https://doi.org/10.3390/electronics11233850

AMA Style

Liang Q, Gao J, Liu F, Wang K, Zhang H, Wang Z, Su D. Application of Hardware-in-the-Loop Simulation Technology in the Development of Electro-Hydraulic Servo System Control Algorithms. Electronics. 2022; 11(23):3850. https://doi.org/10.3390/electronics11233850

Chicago/Turabian Style

Liang, Quan, Jun Gao, Feihong Liu, Kelei Wang, Haiyang Zhang, Zhike Wang, and Donghai Su. 2022. "Application of Hardware-in-the-Loop Simulation Technology in the Development of Electro-Hydraulic Servo System Control Algorithms" Electronics 11, no. 23: 3850. https://doi.org/10.3390/electronics11233850

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