Delay compensation based controller for rotary electrohydraulic servo system

The typical power-assisted hip exoskeleton utilizes rotary electrohydraulic actuator to carry out strength augmentation required by many tasks such as running, lifting loads and climbing up. Nevertheless, it is difficult to precisely control it due to the inherent nonlinearity and the large dead time occurring in the output. The presence of large dead time fires undesired fluctuation in the system output. Furthermore, the risk of damaging the mechanical parts of the actuator increases as these high-frequency underdamped oscillations surpass the natural frequency of the system. In addition, system closed-loop performance is degraded and the stability of the system is unenviably affected. In this work, a Sliding Mode Controller enhanced by a Smith predictor (SMC-SP) scheme that counts for the output delay and the inherent parameter nonlinearities is presented. SMC is utilized for its robustness against the uncertainty and nonlinearity of the servo system parameters whereas the Smith predictor alleviates the dead time of the system’s states. Experimental results show smoother response of the proposed scheme regardless of the amount of the existing dead time. The response trajectories of the proposed SMC-SP versus other control methods were compared for a different predefined dead time.


Introduction
The lower limb of the typical power-assisted Hip exoskeleton robot has a great usage in strength augmentation for efficiently performing works such as walking, running, carrying loads, etc. It employs a hydraulic rotary actuator to accomplish those tasks [1]. In general, electrohydraulic servo systems have a great indispensable role in many applications where large torque load and inertia have to be controlled with high degree of accuracy and efficient performance. They are suitable for a wide range of applications where large torque load is required for the virtue of their distinguished practical features such as small size-to-power ratio, large force output capability and fast response [2]. Inherent nonlinearities, accumulated uncertainties because of the existing friction between moving parts, liquid leakages, volume change and temperature variation of the liquid are considered the major drawbacks of the electrohydraulic servo system [3][4][5]. Modelling and controlling of these systems become very difficult in return. Therefore, the development of a precise control schemes and algorithms has drawn significant efforts of engineers and researchers [5][6][7]. In [8], sliding mode control was presented as a solution for the huge uncertainties and unmodeled dynamics in the models of electrohydraulic systems. Similarly, in [9,10] SMC was implemented for systems with parameters nonlinearities, modelling uncertainty and external disturbances. SMC, on the other hand, is often combined with other controller scheme to further improve the system performance and to eliminate the most critical drawback of the SMC called chattering which is caused by the high-frequency switching SMC, switching imperfection, delays in switching and small-time constants of the actuators [11][12][13].
Large dead time is another critical drawback of the electrohydraulic servo system that deteriorates the effort of SMC control. This phenomenon occurs frequently in many mechanical and electrical processes. It complicates the analytical analysis and the design of a controller becomes more complicated [14]. Furthermore, the presence of time delay leads to system instability and closed loop performance degradation [15]. various control approaches encounter excessive challenge to stabilize systems with large time delay. Although some controllers can stabilize these systems, it takes long settling time and undesired oscillation may occur in transient process. Therefore, dead time compensation techniques have drawn significant research interest in the past few years. The delay compensation techniques guarantee that the controller designed for the system in the absence of time delay can be used when delay exists [16,17]. In [18], A robust control scheme for systems with large dead time delay based on disturbance observer technique was proposed. It solves the linear matrix inequalities (LMIs) for the design parameters of the disturbance observer. Similarly, in [19], A robust control scheme for discrete time delayed uncertain systems based on disturbance observer technique was proposed. A new time delay compensator called the modified Smith predictor that is simple in structure and easily tuned manually was proposed in [20]. It provided acceptable performance regardless of uncertainties of the process parameters. In addition, It uses a general technique to estimate instantaneous uncertainties in the control gain, time constant, and time delay. A new version of Smith predictor that uses dynamical compensation and new disturbance rejection is introduced in [15]. Dead time delay analysis was provided to explain how it affects systems and adaptive Smith predictor was proposed for obtaining acceptable control performance even as the time delay significantly increases. The combination of Smith predictor architecture with Sliding mode design was proposed in [21] and [22], it achieved robustness, delay compensation and elimination of modeling errors arises from the delay-free model chosen when controller was designed. It removes the delay out of the closed control loop, and stabilizes the system.
In this paper, a Sliding Mode Controller based on Smith predictor (SMC-SP) is adapted for the control of electro hydraulic servo system. Smith predictor structure offers good control for processes with a large time delay. Thus, when combining a Smith predictor and SMC approach it provides a more advantageous structure for controlling the nonlinear electrohydraulic servo system. The resulted controller counts for the time delay and the system uncertainties to ensure a good performance and stable systems. The unmodeled uncertainties and disturbances have a negligible effect on the system due to the virtue of SMC. SMC-SP compensates the time delay to guarantee robustness against delay as well as nonlinearity and uncertainty of the system. Lastly, position tracking control is performed and comparison between the response of the SMC and SMC-SP systems under the existence of a variety of delay at the output is shown.
The organization of the paper is as follows. Section II describes the mechanical and mathematical model of the electrohydraulic servo system. Then, the derivation of the SMC, and the predictive scheme is given in Section III. Results and discussion for simulation works are presented in section IV.

System dynamics and modelling
Rotary electro-hydraulic actuator used in the hip of the exoskeleton to assist human walk is discussed in this paper [1]. It is mainly composed of a double-ended hydraulic curved piston rod, a center-mounted rotating shaft, an angular displacement sensor, a guide sleeve, two rigid links attached to the rotating shaft and an electrohydraulic proportional servo valve. In addition to some indispensable sealing components to prevent oil's internal and external leakages (Figs. 1 and 2).
The dynamical model for the rotary actuator can be represented via Newton's law by the following Equations as described in [10, 21]. Fig. 1 Layout structure of the electrohydraulic system R 1 and R 2 are the normal distance from the center of rotation to the rotating piston and the centroid of the load mass respectively. Ω 1 and Ω 2 is the effective ram area of the cylinder. m is the mass of the load and actuator; b is the damping coefficient and θ is the angular displacement.
The ratio between the effective area at both ends of the asymmetric cylinder is Hence P L = P 1 -ηP 2 , and the moment of inertia of the rotating load mass is Assuming that (R 1 = R 2 ), dynamical model for the cylinder becomes The load flow Q L is defined as For an ideal electro hydraulic servo valve with symmetric and matched orifice, the load pressure P L and flow Q L can be expressed according to the flowing relationship: where, C d is the valve discharge coefficient, w is the spool valve area gradient, P s is the supply pressure and ρ is the fluid density.
Applying the continuity equation to the fluid flow at each chamber yields, C i , C e are the internal and external leakage coefficients respectively. V 1 and V 2 are the volumes of the cylinder chambers. β e is the effective bulk modulus of oil.
From Eqs. (5) and (6) the load flow is: where V t is the total volume of actuator and the connecting pipes. Rearranging Eq. (7), the load pressure of the cylinder is represented by The dynamics of the spool valve is described by where τ v is related to the current input (u = i), τ v and K v are the time constant and gain of the servo valve. The natural frequency of the servo valve is greater than that of the circular hydraulic cylinder, so that the spool valve dynamics is neglected and we have.
Substituting Eq. (12) to Eq. (6) and choosingu 0 = √ P s − sgn x v P L u,the load flow in Eq. (4) becomes Combining Eqs. (4), (7)-seeking of simplicity the valve dynamics is neglected-the 3rd order model is obtained for the robust sliding mode controller. The system states are selected as: and the state space representation of the system is shown below, here J is the inertia of piston and load.
Since, sgn(u 0 ) = sgn(u), then the actual input of the system is

Smith predictor
Smith predictor configuration shown in Fig. 3, uses the identified dynamics of the system that model the delay free part and a delay compensator. In this experiment the delay compensator was modeled as a transport delay. Nonlinear dynamics features of the lower limb actuator relays on time-varying working-points that can be locally linearized. The control signal passes into two analogous parallel paths. Smith predictor branch estimates the delay-free response of the system. Then, this prediction is compared to the desired setpoint and the resulted error signal is delivered to the controller to calculate the needed adjustments and decide the required control action. Smith predictor eliminate the effects of dead time delay effectively.
The nonlinear model of the electrohydraulic servo system is factorized into G(s) is the plant model, y m (s)* is the estimated delay-free part of the model expressed in Eq. (16), and e −ts is the time delay compensator and the output of Smith predictor can be written as: Remark 1 if y m (s) = y p (s) , then SMC-SP eliminates the delay effects and achieve a satisfying performance.

Remark 2
Uncertainty and nonlinearity of the process complicated getting precise model which may lead to deteriorating the performance.
The design of the SMC-SP in the following section is facilitated be this factorization.

Sliding mode controller design
SMC is a nonlinear controller that provides a robust control action for nonlinear systems that exhibit uncertainties in its parameters [22]. SMC design procedure follows two steps, the design of a sliding stable surface and the design of a control law to drive the system states onto the required. The objective of this section is to develop a SMC for the nonlinear EHS based on the second order system represented by the state space in the previous section. However, several types of disturbances, nonlinearity may exist that are not explicitly represented on the linearized model in Eq. (16).
In Fig. 3, the error E(t) is the difference between the desired input trajectory R(t) and the actual delay compensated response Y(t). A control rule is designed to guarantee finite time reaching of sliding surface even in the presence of disturbances and mismatches. In this work, the sliding surface S(t), defined by [23], has been adopted to achieve the stability and tracking performance.
Firstly, the sliding surface is defined as Where e = Y(t) -R(t), when differentiating S 0 the control input u will not appear in the derived function because the relative degree between u and s 0 is greater than one. Then, the sliding surface is chosen to be the following function with a relative degree equal to one between u and S. the corresponding error of the system states and its derivative are The control input u appeared when differentiating the sliding surface function. Furthermore, λ 1 , λ 2 are positive constants to drive the system states towards the sliding surface and remain there hence ensure the stability of the system. When the switching function reaches its zero level the states will approach the origin as well [24].
The sliding mode control law ensures the states are driven to zero (towards the sliding surface) is determined such that both reaching phase and sliding phase is SṠ < 0.
The equivalent control is selected by the necessary condition of sliding mode to exist ̇s = 0 with nominal value.
The control rule is designed to meet the sliding condition regardless the estimation of errors. Hence, a discontinuous term is added to Eq. (26), Where Remark 3 SMC is chosen for its robustness against parameters uncertainty and external disturbances.
Achieving trajectories tracking with zero error requires all system states to be forced to converge to S in finite time and remain on S afterwards. For the system stability the Lyapunov function candidate is chosen as: Differentiating Ѵ along the closed loop Eq. (16) and θ is assumed to be constant θ ∊ R, Substituting the control law in Eq. (27), then reaching condition of SMC is obtained where K is a positive design parameter. Hence, The switching gain K of the discontinuous part of the controller rule is determined such that if it is met, reaching condition will be achieved and the tracking will be done within certain specified error bounds, and the closed loop system is asymptotically stable.
For the SMC-SP controlled systems, the delay time is supposed to be compensated by the Smith predictor. The stability analysis of the designed SMC presented above is applied. The system uncertainty caused by modelling error is represented by ξ (χ, u, t) which is introduced to Eq. (31) but has no significant effects on the system stability.
Remark 4 Initially, the system is modeled according to its parameters' nominal values and the errors are considered as system uncertainty. SMC-SP eliminates the effects of time delay. As a result, the system stability is mainly guaranteed by the SMC.

Experimental results and discussion
The experiment was performed on a real-time control platform. The platform of the rotary electrohydraulic servo system is mainly composed of pressure supply unit, Rotary hydraulic actuator, angular displacement sensor, electro hydraulic servo valve (FF101-6, AVIC) and a real time control system installed on a computer (IPC-610L, Advantech Inc.). Tables 1 and 2 show the relevant system and controller parameters.
The proposed controller scheme was tested for two types of trajectories; continuous sinusoidal motion and a step positioning. The experiment was repeated many times for different dead time.
Experimental results shown in this section clearly prove the feasibility and the efficiency of the proposed SMC-SP scheme. High-frequency oscillations triggered by large dead time delay is eliminated by the utilization of SMC-SP scheme. The results also demonstrate the significant performance improvements of the proposed scheme in terms of steady state error stability.
The desired and the actual trajectories shown in Figs. 4 and 5, proves the effectiveness of the proposed method. It graphically compares the response of systems controlled by the proposed SMC-SP scheme with other control scheme under the presence of dead time delay. The proposed SMC-SP scheme achieves a smooth and stable tracking with less steady state error and minimum overshoot peak value. In contrast, the performance of systems solely controlled by SMC was degraded and undesired attenuation was fired when large dead time exists.
It can be noticed that as the dead time increase the stability of the system cannot be maintained. On the other hand, this issue is totally minimized and delay time effect is eliminated by the use of the proposed scheme of SMC-SP scheme. The delay time in Fig. 6 is less than that in Fig. 4. As a result, the steady state response of the SMC controlled system has better performance in compare to that in Fig. 4 but smooth response is only obtained through the use of the proposed SMC-SP scheme where the effect of delay is eliminated.
The stability of the SMC controlled systems can't be maintained when there exists a large dead time. Furthermore, the steady state error of the SMC controlled systems in the case of 0.1 s time delay is extremely large in compare to the 0.05 s delay time as shown in Fig. 5 and Fig. 6 respectively. It can be concluded that, time delay or large dead time has a great effect on the system closed-loop dynamics as well as the steady state response. The steady state error increases as the dead time of the system increases.   Furthermore, the amplitude of the undesired fluctuation gets larger as the dead time increases and this increase the risk of damaging the mechanical parts of the actuator as they may exceed the natural frequency of the system. The compensation of large delay time through the application of the proposed SMC-SP scheme ensures the mitigation of all these negative impacts. Figure 6, shows the error signal (difference between the desired and corresponding actual trajectory). Undesired fluctuation in the response of delayed SMC controlled affect both stability and steady state error of the system. In contrast, the SMC-SP controlled system's response is stable and has lower steady state error than delayed SMC's response.
Regardless of the type of desired input, the negative impacts of large delay time exist. Figures 7, 8 and 9, show the system response when the desired position is in the form of step command. The system stability is degraded from asymptotically stable to marginally stable. These fluctuation or high frequencies underdamped oscillation increase the risk of damaging the mechanical parts of the actuator as they may exceed the natural frequency of the system. On the other hand, the amplitude of underdamped oscillation can be bounded from exceeding certain range.

Conclusion
This paper illustrates the development and experimental validation of a delay compensating controller SMC-SP for the rotary electro-hydraulic actuator used in the lower limb of the power-assisted hip exoskeleton. Generally, a trivial transport delay in the output of an electro-hydraulic servo system fire undesired attenuation and drive the system to be unstable. However, the designed technique compensates the dead time delay occurring in the output and alleviate its effect. The obtained experimental results show good transient and steady state performance in terms of rise time, steady state error, maximum overshoot and stability of the system. The main contribution of this paper was improving a new control technique that counts for the large dead time phenomenon problem. The proposed scheme guarantee that the system stability is maintained and the performance of the system is not affected by the large dead time occurring in the output. The efficiency of this method is validated experimentally and compared with other controllers.
Funding No Funding information.

Compliance with ethical standards
Conflict of interest All authors have contributed significantly for the paper and confirm that this work is original and has not been published elsewhere, nor is it currently under consideration for publication elsewhere. I believe that this manuscript is appropriate for publication by International Journal of Dynamics and Control as it tackles one of the problems that is associated with this journal scope.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creat iveco mmons .org/licen ses/by/4.0/.