Comparsion between the Twisting and the Quasi Continuous Controller for a Coupled Tanks System

DOI : 10.17577/IJERTV4IS020147

Download Full-Text PDF Cite this Publication

Text Only Version

Comparsion between the Twisting and the Quasi Continuous Controller for a Coupled Tanks System

Fayiz Abukhadra Mechanical Engineering Dept. King Abdulaziz University Rabigh, KSA

Abstract In this paper, two Second order sliding mode controllers have been successfully used to regulate the liquid level in the second tank of a coupled tanks system. The effectiveness of the controllers is verified through computer simulations. Comparison between the controllers is based on the time domain performance measures such the rise time, settling time and the integral absolute error. Results showed that controllers are able to regulate the liquid level with small differences in their performance.

Keywords Coupled tank system, sliding mode, twisting controller, quasi-continues controller

  1. INTRODUCTION

    In process control, the control of liquid level in multiple connected tanks by controlling the liquid flow is a typical nonlinear control problem that is present in many industrial processes. Many Researchers have attempted the design and implementation of controllers for the liquid level of a coupled tanks system such as PID type controllers [1], a parallel structure of fuzzy PID control systems [2], a nonlinear constrained predictive algorithms based on feedback linearization control [3] and, fractional PID controller [4] have also been used to control coupled tanks systems.

    Sliding mode control is an efficient method for robust control of uncertain systems [5,6,7]. The basic idea of the first order sliding mode control (1-SMC) is to let the system converge towards a selected surface and then to stay there in spite of uncertainties and disturbances. The first order sliding mode control (1-SMC) method can be designed by performing two steps. The first step is to select a appropriate sliding surface to constrain the state trajectory on it. The second step is the design of a discontinuous control law to force the system state to reach the designed surface preferably in finite time. 1-SMC requires sliding variable relative degree (the relative degree is defined as the order of the derivative of the controlled variable, in which the control input appears explicitly) to be equal to one with respect to the control input which limits the choice of the sliding variable. The 1-SMC also used to regulate the liquid level. A input-dependent sliding surface has been used in [8] to regulate the liquid level in a coupled tanks system. A sliding mode controller which has a state varying sliding surface parameter has been designed in [9]. A neuro-fuzzy-sliding mode controller using nonlinear sliding surface has been proposed in [10].

    In the addition to the restriction regarding the relative degree of 1-SMC has the drawback of the chattering due to the high switching frequency of the control. The drawbacks of 1-SMC can be successfully eliminated by the use of higher order sliding mode controllers (HOSMC). HOSMC force the sliding variable and its (r-1) successive derivatives to zero. There is no restriction on relative degrees. As the high frequency control switching is pushed in the higher derivative of the sliding variable, chattering is significantly reduced. Another feature of HOSMC is the detailed mathematical model of the plant is not required. The most widely used HOSMC are second order sliding mode controllers (2-SMC). Examples for 2-SMC controllers are the widely used twisting and its modified variant the super twisting controllers, the quasi-continuous controllers, the suboptimal control algorithm, and the control algorithm with prescribed convergence law. Khan and Spurgeon [10] applied a second order sliding mode control idea to control a coupled tank system.

    This paper presents the use of two 2-SMC to regulate the water level of the second tank in the coupled tanks system. These controllers are, twisting (TA), and the quasi-continues controller (QCC). The 2-SMC requires only the error (the difference between the reference set point and the output of the system. To obtain the needed first derivative of the error a sliding mode differentiator is used. The comparison of the performance of the controllers is based on time domain control performance measures.

    The remaining structure of this paper is as follows. In the next section the dynamical model of the coupled tank system will be revisited. Section three briefly provides the basics 2- SMC. In section four 2-SMC controllers will be briefly described. In section 5 the simulation results from the application of the controller will be presented and discussed. Finally section 6 concludes this paper.

  2. MATHEMATICAL MODELING OF THE COUPLED TANKS SYSTEM

    Figure 1 shows a schematic diagram of the two coupled tanks system. The tanks system consists of two connected tanks. A pump supplies the water into the first tank. The second tank is filled from the first tank via a connecting pipe. An outlet is located at the bottom of the second tank to change

    the output flow q2. The Mathematical model of the coupled

    q = Ak sign h

    h h

    h (12)

    tanks system is nonlinear and can be derived as follows: Applying the flow balance equation for tank 1 and 2:

    dp = 1 q q (1)

    1 1 2 1 2

    To satisfy the constraint on the input flow rate the term

    k1sign p p 0, which implies p p .Then the

    dt A 1

    dynamics model can be written as:

    dp = 1 q

    q (2)

    dp

    (13)

    dt A 1 2

    dt = k1 p p + k2 p

    In (1) and (2) q1 and q2 are defined as:

    q = a 2g h h for h > h

    (3)

    dp = k h h

    1

    + u

    2k h (14)

    1 1 1 2 1 2

    dt 1 1 2

    2 2 A

    q2 = a2 2gp for p > 0 (4)

    Using the transformation in (16) ,(13) and (14) can be

    Where, p and p are the water level in Tank 1 and Tank 2, respectively. q is the inlet flow rate, q1 is the flow rate from Tank 1 to Tank 2. A is the cross-section area for both Tank, a1 is the area of pipe connecting the two tanks, a2 is the area of the outlet, and g is the constant of gravity. If the inlet flow q is selected as input and the liquid level p in the second tank as output, the system can be considered as a single input single output system (SISO). The two tanks system can be modeled

    written as in (15).

    x1 = p

    x2 = k1 p + k2 p p

    x 1 = x2

    x 2 = f(x, t) + g x, t u y = x1

    (15)

    (16)

    by the following two differential equations:

    dp q

    It can be easily checked that f(x,t), and g(x,t) in (15) have the following form:

    2

    dt = k1sign p p p p + A (5)

    f(x, t) =

    k1k2

    p

    p

    p +

    k12

    k2 (17)

    2 p

    dh

    p

    p 2

    dt

    2 = k1sign p p p p k2 p (6) The parameters k1and k2 are defined by

    g(x, t) = k2

    2A p

    1

    • p

      (18)

      1

      k = a1 2g

      A

      2

      k = a2 2g

      A

      (7)

      (8)

      Note q is always positive which means that the pump can pumps water into the tank ( q 0) . At equilibrium, for constant water level set point, the derivatives w.r.t of the water levels in the two tanks must be zero so that the following condition can be written:

      dp = dp = 0 (9)

      dt dt

      therefore, using (9) in (5) and (6), the following algebraic relationships holds:

      Fig. 1. A schematic diagram of the two coupled tanks system.

  3. SECOND ORDER SLIDING MODE CONTROL

    2-SMC control is a subset of HOSMC differs from the 1- SMC by including the first order derivative of te sliding variable while maintaining the same robustness and

    k sign h h h

    • h + q

    (10)

    performance as that of the 1-SMC. in an output of

    1 1 2

    1 2 A

    (19) to be exactly stabilized in finite time at = 0, u is the control input and x n is the state. If the output have

    k1sign p p p p k2 p (11)

    The equilibrium flow rate q can be calculated as:

    a fixed and known relative degree r n . For the positive constants Km, KM, and C the following inequalities

    0 < (19)

    hold globally. 2-SM controllers may be considered as controllers for the following differential inclusion (levant, 2003)

    C, C + Km , KM u (20) 2-SM controllers allows to solve the problem of finite-

    = (1 + 2( )) (23)

    This controller guarantees the appearance of a 2-sliding mode = = 0 attracting the trajectories of the sliding variable dynamics in finite time if the controller; parameters r1 and r2 statisfy the following conditions:

    1 > 2 > 0

    time stabilization of a black box system as shown in

    Figure 2. The only information needed from the system

    1 + 2

    > 1 2

    (24)

    is the output. The required derivative can be obtained by using HOSM arbitrary order differentiator [12].The real time differentiator has the general form as in the following set of equations. In (28) f(t) represents signal to be differentiated, k-1 times.

    1 2 > 0

    B. Quasi-Continues Controller (QCC)

    The homogeneous Quasi continuous (QCC) controller [14 requires the first order derivative of the sliding surface .With

    0

    1

    = 0

    the use of differentiator in (22) the second order quasi continues- sliding mode controller can be written as:

    1 = 10 = +1 0 +1 0

    + 1 1

    =

    1/

    (1)/ (

    ) +

    (21)

    u t = z1 + 2sign()

    (25)

    1 1

    1 0

    1/2

    1 0 2

    z + 1/2

    1 = 1 = 1 1 2 /(+1)(1 1

    2) +

    = 0( 1)

    The parameters and in (25) are positive constant to be selected via computer simulation.

    A first order differentiator can be obtained by setting k=1 and has the form:

    1

    0 = 1 0 () 2 0 f(t) + 1

    (22)

    z1 = 0sign(z0 f(t))

    Where z0 and z1 are the estimation of f t and f t respectively. The parameters 1 = 1.5L1/2 , 0 = 1.1L, and L a positive constant to be selected via simulation as recommended in [12].

    Fig. 2. Block diagram of a black box controller.

  4. CONTROLLERS DESIGN

    1. Twisting Controller

      The twisting controller is historically the first 2-sliding mode controller which was proposed. It is defined by the formula

  5. SIMULATION RESULTS AND DISCUSSION

    The characteristic dynamics model of the coupled tank system are presented in Table 1 [8].The control input is restricted to be between umin= 0 and umax= 50 [cm3/s].The computer simulations were performed using a time interval of [0:150] s. The parameters of the controller were optimized using a step input with a final value of 6 cm for the water level. For the others tested water levels no more adjustment of the controllers parameters were performed. Through extensive simulations the optimum controllers parameters for the two controllers tested in this study are reported in Table 2.

    TABLE I. CHARACTERISTIC OF THE COUPLED TANKS SYSTEM

    Gravitational rate g

    981 cm/s2

    Cross-sectional area of both tanks

    208.2 cm2

    Area of the connecting pipe a1

    0.58 cm2

    Area of the outlet a2

    0.24 cm2

    Controller

    STC

    QCC

    parameters

    value

    220

    14

    65

    2

    TABLE II. CONTROLLERS PARAMETERS

    Figure 3 shows the regulation performance for the tested controllers for a desired level of 6 cm. From the figure it can be concluded that the controllers regulate the water level successfully with approximately the same performance. Note that the controllers are able to regulate any desired water levels without new adjusting of any parameter.

    Fig. 3. level tracking test for the different controllers

    The behaviour of sliding surfaces/error are represented in Fig. 4 for the desired level of 6 cm. As can be seen from the figure the two controllers show typical sliding mode behaviour that is the error reaches 0 in finite time, and stay 0 afterwards. The derivative of error w.r.t. is also shown for the two controllers. The error derivative converge also to zero.

    Fig. 5 shows the control signal of the two controllers. The controllers have the same control signal until reaching the sliding surface.

    Fig. 4. Error and the its derivative for the two controllers

    Fig. 5. The control signals of the designed controllers Fig. 6.

    To compare the performance of the controllers. The time domain performance measures such as the rise time, the settling time, the percentage overshoot, and the IAE are used. The settling time is defined as the time required for the response to settle within 1% of the steady state value. The rise time is defined as the time required for the output to change from 10% to 90% of its final value. The IAE is given by the following eq.

    = (26)

    0

    The performance measures have been computed for three different desired level of 3 ,6, 8 cm as listed in table 3. As can be seen from the table the two controllers have approximately the same rise time in all cases. The QCC controller has a slightly less settling, overshoot, and IAE.

    The results of the tracking test of the five controllers using a square signal reference input are shown in Fig. 6. As excepted the tracking performance for the all the controller is good. In term of the IAE the values obtained are listed in table 4.

    Fig. 7. Level tracking test for the two controllers

    TABLE III. TIME DOMAIN PERFORMANCE MEASURES FOR DIFFERENT

    H VALUES.

    H [cm]

    Controller

    Tr [s]

    Ts [s]

    Os[%]

    IAE

    3

    TA

    30.010

    51.783

    7.506

    54.823

    QCC

    30.010

    51.250

    7.085

    54.580

    6

    TA

    69.335

    95.179

    2.522

    236.066

    QCC

    69.335

    94.630

    2.393

    235.909

    8

    TA

    101.384

    123.330

    1.392

    447.400

    QCC

    101.384

    123.330

    1.327

    447.329

  6. CONCLUSIONS

In this paper, two second order sliding mode controllers namely the twisting, and the quasi-continues controllers have been successfully designed to regulate the water level in the second tank of a coupled tanks system. The efficacy and usability of the proposed controllers are verified through computer simulation tests. Comparison between the controllers is based on the time domain performance measures. Results showed that both controllers are able to regulate the water level without major differences in their peformance.

REFERENCES

    1. S. K. Singh, N. Katal, and S. G. Modani, "Multi-Objective Optimization of PID Controller for Coupled-Tank Liquid-Level Control System Using Genetic Algorithm", In Proceedings of, the Second International Conference on Soft Computing for Problem Solving , (2012), pp. 59-66.

    2. J. X. Xu ,C. C Hang and C. Liu, "Parallel structure and tuning of a fuzzy PID controller", Automatica, vol. 36(5), (2000), pp. 673-684.

    3. N. K., Poulsen, B. Kouvaritakis and M. Cannon, "Nonlinear constrained predictive control applied to a coupled-tanks apparatus", IEE Proceedings-Control Theory and Applications, 148(1), (2001), pp.17-24.

    4. A. Kumar, M. Vashishth, and L. Rai, " Liquid level control of coupled tank system using Fractional PID controller", International Journal of Emerging Trends in Electrical and Electronics, vol. 3(1), (2013), pp.

    5. V. Utkin, J. Guldner, and M. Shijun, "Sliding mode control in electro- mechanical systems" ,Vol. 34, (1999),CRC press.

    6. C. Edwards, and S. Spurgeon, "Sliding mode control: theory and applications", (1998), CRC Press.

    7. [7] K. D. Young, V. I. Utkin and U. Ozguner, "A control engineer's guide to sliding mode control", IEEE Transactions on Control Systems Technology, vol. 7(3), (1999) ,pp. 328-342.

    8. N. B. Almutairi, and M. Zribi, "Sliding mode control of coupled tanks", Mechatronics, vol. 16(7), (2006), pp. 427-441.

    9. S. Aydin, and S. Tokat, "Sliding mode control of a coupled Tank System with a state varying sliding surface parameter", IEEE International Workshop on Variable Structure Systems, (2008), (pp. 355-360)..

    10. Boubakir A., Boudjema F., and S. Labiod, "A neuro-fuzzy-sliding mode controller using nonlinear sliding surface applied to the coupled tanks system", International Journal of Automation and Computing, vol. 6(1), (2009), pp 72-80.

    11. H. Delavari, and A. R. Noiey, "Genetic-based fuzzy sliding mode control of an interconnected twin-tanks", The In Proceedings of , International Conference on Computer as a Tool 34, (2007), pp. 714- 719).

    12. M. K. Khan, and S. K. Spurgeon, "Robust MIMO water level control in interconnected twin-tanks using second order sliding mode control", Control engineering practice, vol.14(4), (2006), pp. 375-386.

    13. A. Levant, "Higher-order sliding modes, differentiation and output- feedback control", International journal of Control, vol.76 (9-10), (2003), pp. 924-941.

    14. Y. Shtessel, C. Edwards, L. Fridman, and A. Levant, "Sliding mode control and observation", first Edition Birkhäuser, (2014).

    15. M. K. Khan, S. K. Spurgeon, and A. Levant, "Simple output feedback 2-sliding controller for systems of relative degree two", In Proc. European Control Conference ECC (Vol. 3) (2003).

    16. A. Levant, "Quasi-continuous high-order sliding-mode controllers", IEEE Transactions on Automatic Control, vol. 50.11, (2005), pp. 1812- 1816

Leave a Reply