## Abstract

The objective of this chapter is to develop a compound Model Reference Adaptive Control (MRAC) of the dc motor by using the Matlab/Simulink software. The purpose of the chapter is to serve as a tutorial for the students or researchers in the field correlating step by step the presented theory with the Matlab/Simulink programming environment. The supraunitary relative degree model reference adaptive control is proposed as a solution to the parameters variation of the electric drives. The numerical simulation results confirm the robustness of the proposed solution at unmodelled dynamics or parameter variation of the process. The conventional control of the dc drive based on the cascaded loops is also treated in this chapter.

### Keywords

- dc motor
- PI control
- adaptive control
- Matlab-Simulink
- supraunitary relative degree

## 1. Introduction

The conventional control of the dc motor supposes the use of the modulus and symmetric criteria, adapted to the fast processes (Kessler variant), by the optimum choosing of the tuning parameters of the corresponding controllers. Therefore, the cascaded control loops are the most appropriate choice for the conventional dc drive system. The advantages of using the conventional drive are: the complex process is divided into simple subprocesses having only one significant time constant compensated by an independent controller; it assures the minimum time response; thanks to the feedback path of the control loop, the stability of the dc drive system is maintained; the null steady state error; the fast compensation of the dc drive perturbations.

The main disadvantage of the conventional control is its inadaptability to the parameters variations of the processes. Taking into account that the normal operation of the processes is assured through the electric motors, the values of the electric parameters are not constant. It is well-known that the parameters of the controllers depend on the parameters of the process. Therefore, a change of the process parameters conducts to the deterioration of the drive system performances. Moreover, the uncertainness of the parameters and the structural mismatch of the processes are the main barriers of avoiding the use of the conventional control. In these particular cases the conventional control, even the robust control is inefficient due to the invariance of the controller parameters. An adaptive control is desired in order to maintain the imposed performances on the electric drive. Consequently, an additional adaptive loop is inserted to the conventional feedback system. The purpose of inserting the adaptive loop is to update the controller parameters related to the parameter variations of the process or to the modified structure of the physical process. According to the exogenous variation (reference and perturbation), the adaptive mechanism of the regulation part is performed by the minimization of the specific performance criterion. The result of the designed regulation algorithm consists of a new set of the controller parameters. The closed loop adaptive systems (widely spread) assure the appropriate control correlation with the process uncertainness (modified parameters or structure). The adaptive loop delivers the real time control based on the designed on-line controller.

The signals in Figure 1 are defined as follows: r- the reference signal; *y* _{m}- the output signal of the reference model; u- the adaptive control; *y*-the output of the process (the measurable signals); e_{0} – the tracking error vector; *θ* _{p} – the parameters of the process.

In this manner, the structural mismatch and the parametric uncertainness are compensated. In the mechatronic domain or the rolling mill the adaptive control is mandatory.

The name of the adaptive control structure comes from the use of the on-line parameters estimator. Based on it, the process parameters are provided by measuring the control, the process output and the tracking error. Taking into account the reference signal and the process parameters, the adaptive algorithm delivers the appropriate estimation of the control.

There are two types of the adaptive control structures [2]. The adaptive control can be in explicit (indirect) form or in implicit (direct) form. The indirect adaptive control delivers the estimation of the process parameters. The direct adaptive control delivers the estimation of the controller parameters.

In this chapter the adaptive control with supraunitary relative degree is introduced through the dc drive system.

The design procedure of the adaptive control is based on the strictly positive real (SPR) concept.

In order to attain the SPR condition, the equivalent transfer function should satisfy the following tasks:

strictly stable (the poles are situated in the left half plane of the complex space);

the relative degree must be 0 or 1;

Re[H

_{m}(jω)] ≥ 0, for any ω > 0, i.e., the transfer function of the reference model, H_{m}(*s*), should be minimum of phase (without dead time and zero situated in the right half plane).

The model reference adaptive control (MRAC) contains three aspects:

MRAC in simple form;

variable structure form; and

compound MRAC.

In order to obtain a perfect tracking,

## 2. Conventional dc drive system

In this Section the control methodology of the conventional dc drive system is presented.

The drive system consists of the full controlled dc motor connected to the load. At the high power, the controlled six pulses full bridge ac-dc power converter is involved; at the low – medium power the full bridge dc-dc power converter connected in series with the uncontrolled ac-dc power rectifier is used. From the point of view of commutation, there is a substantial difference between the above presented solutions: while at low and medium power, the force commutation is used (based on the high frequency switching power transistors), at high power, the natural commutation is used (based on thyristors).

In order to design the conventional control for fast processes, the entire system should be modeled under certain assumptions:

### 2.1. Assumptions for mathematical modeling of the dc motor

The magnetizing flux is maintained at the rated value; the permeability of the ferromagnetic core is infinite; the unsaturated magnetic circuit is considered, a compensated dc motor is taken into consideration; there are auxiliaries poles; the brushes are situated on the neutral axis; and the brush droop voltage is neglected.

### 2.2. Assumptions for the ac-dc/dc-dc power converters

The uninterrupted conduction is taken into account (a high value for the additional armature inductance is designed), the conduction droop voltage on the power semiconductors and the switching time are negligible.

### 2.3. Assumptions for the load

The load torque is considered as mathematical model of the process, the load is reduced appropriately to the dc motor shaft (by using both equivalent inertia moment and reduced equivalent speed by taking into account the specific transmission ratio).

### 2.4. Assumption for the conventional control

Taking into account that the mathematical model of the dc motor is of the second order, the two state variables are deducted (armature current, *i* _{A}, and the speed, ω_{m}). The mathematical model is characterized by two different time constants: *T* _{m}>>*T* _{A} (the electromechanical time constant, *T* _{m}, is greater with one order than the electromagnetic ones, *T* _{A}). This conclusion leads to the cascaded control with two loops: the armature current loop (the inner loop), and the angular velocity (the outer loop). By considering that the angular velocity should be controlled and the armature current should be limited at the maximum value, the angular velocity is the dc motor output. Taking into account that the dc motor is supplied by the six pulses ac-dc full bridge power converter, the modulus criterion is applied for tuning inner loop, and the symmetrical optimum for the outer loop (Kessler variant). The adequate operational block diagram is deducted according to Figure 2 .

The dc drive is constituted by two parts: the power and the control. A unified [0, 10]V voltage system is taken into account with respect to the control part. Therefore, for the maximum value of 10 V the maximum allowable speed at the rated flux is obtained (i.e., *n** = 1,2 *n* _{r}, by taken into consideration the 20% speed overshoot introduced by the Kessler criterion).

It is well-known that the symmetrical criterion supposes the ramp reference for the speed loop. In order to transform the step reference analogue signal from the potentiometer into ramp signal, an adequate filter has been designed with the following transfer function:

where *T* _{Fn} is the time constant of the speed transducer.

The corresponding Simulink block diagram is shown below in Figure 3 .

The control design procedure starts with the armature current loop design (inner loop). The imposed performances for the inner closed loop are:

*the steady state regime:*null steady state error ε

_{st}= 0;the rejection of the perturbation influence (load torque is the main perturbation).

*the dynamic regime:*current overshoot, σ = 4.3%;

response time depends on the cutting frequency of the loop: t

_{r}= 2.35/ω_{cI};phase margin of the current loop: γ = 63°26′.

In order to satisfy the above mentioned performances the modulus criterion is used. The Kessler criterion guarantees of the above mentioned performances on condition that the open loop transfer function of the inner loop has the form:

where, *T* _{ΣI} – the parasitic time constant of the current loop is considerably lower than the armature time constant:

in which *T* _{FI} is the current filter time constant, and *T* _{TI} is the current transducer time constant.

According to modulus criterion, the Proportional Integral (PI) controller is suitable to control the armature current:

with the appropriately controller parameters:

Eq. (8) contains the mathematical model of the dc-dc power converter:

and the attenuation factor of the current transducer (obtained by imposing the time response of the current loop) has the form:

The closed loop armature current transfer function is as follows:

The equivalent block diagram of the dc drive system is shown in Figure 4 .

Taking into account the reduced block diagram of the dc drive system ( Figure 4 ), the symmetrical optimum criterion could be applied.

According to symmetrical optimum criterion, by using the following open loop transfer function (Kessler) the required performances of the closed loop system are attained:

By comparing the equivalent open loop transfer function ( Figure 4 ) with the imposed open loop transfer function (11), the PI speed controller is obtained:

Moreover, the following speed controller parameters are obtained:

In order to well understand the tuning procedure of the speed controller, the additional parameters are provided:

in which *TΣn *is the parasitic time constant of the speed loop, *Tlr *is the rated load torque, *C* _{m}- the mechanical constant of the dc motor, and *TTn *is the time constant of the speed transducer (it is obtained by imposing the time response of the speed loop).

The numerical implementation of the dc drive system is based on the Simulink block diagram shown in Figure 5 .

By considering a dc motor with the following nameplate data: rated power *P* _{r} = 5.1 kW, the maximum armature voltage *U* _{r} = 440 V, the nominal armature current *I* _{Ar} = 17.8 A, the reduced moment of inertia *J* = 0.02 kgm^{2}, the viscous force *F* _{v} = 0.0006 Nms/rad, rated speed *n* _{r} = 2700 rpm, the simulation results are obtained ( Figure 6a–d ). The motor data can be obtained based on the nameplate values by using the detailed Matlab software provided in [3].

Figure 6a–d shows the 0.7*T* _{r} load starting simulation results of the dc conventional control based on the dc-dc full bridge power converter. Figure 6a contains the obtained armature voltage of the dc motor. The armature current varies according to Figure 6b , the speed varies as in Figure 6c under rated value of the load torque *T* _{l} = 22.8 Nm ( Figure 6d ). The load torque is applied at *t* = 0.5 s.

## 3. Adaptive control

There are three assumptions available [4, 5]: the mathematical model of the process is linear, strictly proper and of minimum phase, having the supraunitary relative degree *n* ^{*} _{p} = 2 *n* ^{*} _{m} = 2), is stable and of minimum phase; the reference signal should be bounded limit, being a continuous function. The second order mathematical model of the dc motor is used in this chapter. This supposes the transfer function of the process has the form:

At the same time, the pole excess is known:

Taking into account that the relative degree of the process is supraunitary, the second order of the reference model is chosen, *n**_{m} = *n**_{p}.

Due to the supraunitary relative degree, the strictly real positive condition for the reference model cannot be accomplished. This condition that the tracking error differs from the identification error [2–6] implies, in this case, the use of the augmented error.

The augmented error depends on the gain factor knowing.

### 3.1. The case of knowing only the sign of *kp *factor

In order to obtain a stable system the following signals vector is inserted:

The dynamic filters (**Λ**, **h**) are placed on the command **v** *u *and on the output of the process **v** *yp *:

The solution of the dynamical filter is implemented in Matlab as in Figure 7 (applied only for the first equation).

The (**Λ**, **h**) pair is chosen in controllable canonical form, **Λ** ∈ ℜ^{(np − 1) × } ^{(np − 1)}, **h** ∈ ℜ* np *, such that:

in which: λ_{1}(s) is an arbitrary Hurwitz polynomial having the degree [7]:

Therefore, the λ_{1}(s) polynomial is a design component.

The Hurwitz polynomial L(s) is chosen such that the transfer function H_{m}(s)L(s) becomes SPR. The degree of the L(s) is ∂[L(s)] = n*_{m}−1. If the L(s) is Hurwitz polynomial, then L^{−1} is stable.

The parameters vectors **v**, **ξ** ∈ ℜ^{2np }consist of

The **v** _{1}, **ξ** _{1} ∈ ℜ^{2np − 1} are defined as follows:

The auxiliary error is computed on-line:

where:

The augmented error is defined as:

and the on-line gradient adjustable parameter K_{1} depends only by the augmented error:

### 3.2. The parametric adjustment laws for the compound adaptive control

#### 3.2.1. Gradient

The gradient law [2–4] is expressed as:

#### 3.2.2. Deduction of the variable structure parameter θ_{v}

The parameter *θv *can be deducted by using the following [2]:

The block diagram of obtaining the augmented error is depicted in Figure 8 , in which *Φ* is the vector of the parameter estimation errors

The vector of the parameter *θ* is obtained by using the compound structure: *θ* = *θ* _{g} + *θ* _{v.}

In the adaptive control, there is a commutation function; usually the *signum* function conducts toward a sliding mode regime such that the evolution to the equilibrium point is very fast. Therefore, the compound adaptive law is used:

The adaptive control provides robust characteristics to external disturbances and to unmodelled dynamics.

### 3.3. The stability of the solution

The perturbation of the dc drive system can leads to the instability of the system. The signals in the variable structure law are bounded. Therefore, the adaptive control assures a global stability [4].

## 4. Numerical simulation results

Taken into account the dc machine from the conventional control, operating at the constant flux, a speed cycle is applied in order to test the compound adaptive control. The speed cycle contains the dynamic regimes (starting, braking, reversing) and the steady state regime ( Figures 9 – 22 ).

## 5. Conclusions

The conventional control and the compound adaptive control have been investigated by using a dc drive system. The complete methodology of tuning the controller parameters for the conventional control is provided. Under the assumptions mentioned in this chapter, the dc drive system has been implemented in Matlab-Simulink software. The adequate numerical simulation results have been obtained ( Figure 6 ) for. Therefore, the regulation capability of the PI controller is tested under a variation of the load torque for a starting. Both, the dynamic and steady state regimes are investigated. In Figure 6b , the maximum load torque of the dc motor is used for a starting under the 70% load conditions. The maximum limit is maintained during the dynamic regime, the torque decreases in steady state due to the armature current decreasing. The constant parameter values have been considered. In case of the gradient and variable structure laws, the adaptive system is more robust to parameter uncertain or to unmodelled dynamics of the dc drive, and the increased regulation performances are obtained. The supraunitary relative degree model reference adaptive control has been considered.

## Acknowledgments

This work was supported by a grant of the Romanian National Authority for Scientific Research, CNDI–UEFISCDI, project number PN-II-PT-PCCA-2011-3.2-1680.