Professional Documents
Culture Documents
Electrical Engineering Department, Faculty of Engineering at Benha, Benha University, Benha, Egypt
1
salah.ghazy@gmail.com
Electrical Engineering Department, Faculty of Engineering at Benha, Benha University, Benha, Egypt
2
Gamal_bhit@yahoo.com
Electrical Engineering Department, Faculty of Engineering at Shoubra, Benha University, Cairo, Egypt
3
Ayman.youssef@feng.bu.edu.eg
12
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
model applicable in the entire speed range. In the present The output of the flux controller is the desired value of the
work, the current type of machine model is used to identify the direct current component needed to the direct component
rotor flux vector. This study started by describes the used current controller. While, the output of the speed controller is
machine model and then, consider the analysis of the internal the torque signal which gives the desired value of the
current controllers and the external flux and speed controllers quadrature current component using Eq. (2).
respectively. J (d / dt) Te TL Kt imr I sq TL (2)
2. THE IMPLEMENTED DRIVE SYSTEM: The two internal current controllers (direct and quadrature) are
The implemented field oriented control system shown in Fig. 1 very important to setup the required current values and to
is constructed generally from three-phase fractional HP compensate against the interactions between the two current
induction motor fed from three-phase VSI based on the space components depicted in equations (3) and (4).
vector PWM technique, in addition to the following main U sd Rsd I sd Ls [dI sd / dt] Ls1 I sq
(3)
parts; (1 ) Ls [dimr (t )) / dt]
1- The outer feedback control loops (flux and speed).
U sq Rsq I sq Ls [dI sq / dt] Ls1 I sd
2- The inner feedback control loops (direct & quadrature (4)
(1 ) Ls dimr (t )
current controllers).
3- The machine model (flux model). The outputs of the direct and quadrature component current
controllers are the reference values Usd* and Usq* respectively.
The external feedback control loops are required to maintain These desired values of voltage are gives to the space vector
the two controlled signals (speed and flux) at their respective modulator (SVM) as the input signals to impress the suitable
set values by comparing them with its desired values. voltage vector on stator terminals. The control system is
sampled at two different sampling rates depending upon the
time constants of separate loops. The sampling rates of the
external speed and flux controllers are quite slower than that of
the internal current controllers ( Tis = Tint. = 250 µsec and Tns =
Tfs = 20 Tis = 5 msec at switching frequency fs = 2kHz and
interrupt frequency fint.= 2fs = 4 kHz). The time interval
between two sample instants of flux or speed is sufficient for
internal current loop to reach steady state.
13
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
Where:
Tr [dimr / dt ] i mr I sd (7)
Ac: is the proportional gain of the controller (R2/R1).
d / dt 1 s1 [ I sq / Tr imr ] (8) Tc: is the time constant of the controller (R2C2).
The main advantage of this model is that, the stator parameters The current controllers developed in this work is digitally
don't affect the model because the stator currents are implemented in the microcontroller. The z-transform of the
measured. The only major machine parameter that is subject to PI-controller transfer function of Eq. 9 can be written as [6]:
change is the time constant Tr which increases in the field Gc ( z) [ Ac [1 (1 / Ti )] Ac z 1 ] /(1 z 1 ) (11)
weakening range due to desaturation and is reduced when the
rotor resistance rises at higher temperature. The temperature Then, Eq. 11 can be written as numeric implementation form
effect is quite slow and corrected in the flux model by on-line of the PI- controller as:
adaptation by adding superimposed closed loop control signals C (n 1) C (n) Ac [1 (1 / Ti )]E (n 1) (12)
[5]. Also, this model functions satisfactory in the speed range Ac E (n)
from zero to its base value. Or,
C(n 1) C(n) K P E (n 1) K I E (n) (13)
4. THE D-Q COMPONENT CURRENT This is the most suitable PI- controller form which can be
COINTROLLERS: implemented numerically in the microprocessor systems,
The current controller can now be designed as two parallel where;
and independent controllers, one for Isd and the other for Isq. Kp: proportional constant = Ac[l + (1/Ti)]
To satisfy the control objectives of good dynamic performance KI: integration constant = -Ac
and zero steady-state error to constant current commands, a C(n) and E(n) : are the output and input signals respectively
proportion integral (PI) controller is employed in the current during new sampling period .
controllers [11]. The Pl-controller contains properties of both C(n+1) and E(n+1) : are the same variables during the next
P- and I- controller as shown in Fig. 4 and as such they find period.
large applications. The presence of integral element makes the
The direct component current controller loop is shown in Fig.
permanent control deviation zero, and the proportional element
5. The open loop consists of PI- controller, the stator winding
helps in faster response. The proportional gain and the time
leakage time constant of the motor, the space vector
constant can both be chosen to meet the system requirements
14
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
modulator, dead time introduced by the discrete nature of the Gi ( s ) Gci ( s ) / Gmotor ( s ) (19)
control system (due to the controller) and the inverter circuit.
Gi ( s) Ai Aci (1 sTci ) / sTci (1 sTsi ) (20)
(1 sTs )
According to the amplitude optimization criteria [12] which is
the most commonly used in practice to determine quickly the
Fig-5: Direct component current control loop. parameters of the PI- controller. The parameter of PI-
The magnitude of this dead time (Tdi) depends on the sampling compensation in the current controller are:
rate in the current loop. A value of (T di = 1.5 Tsi) is taken into Tci Ts (21)
account to include the inverter time delay. In the present work,
Aci Ts / 2Tsi Ai [Ts / Tsi ]
the switching frequency is 2 kHz, and the corresponding dead (22)
[1 /(2 Amod . Amotor )]
time is 375 µsec. Figure 5 can be simplified to Fig. 6 where
the dead time is approximated by the equivalent time delay Aci (Ts / Tsi )[1 / 2( / 2 3 )( Rbase / Rs )] (23)
which is equal to Tsi and Tsσ is the stator leakage time
Aci (Ts / Tsi )( 3Rs / Rbases ) (24)
constant.
Then:
K Ii Aci (26)
I sdE I sd I sd
*
or (30)
Gmotor Ai /[(1 sTsi )(1 sTc )] (17)
Where: 5. THE FLUX CONTROLLER:
Ai: is the total gain in the forward path = Amod . Amotor The flux control loop shown in Fig. 7 is consists of PI-
compensation, equivalent time delay due to dead time and the
The transfer function of the PI-controller of the current first order delay, and the function due to rotor circuit.
15
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
Fig-7: Diagram of Field Control Loop. torque Tel* . The speed control loop shown in Fig. 8 is drawn
depending on the mechanical system of the induction motor.
The transfer function of the rotor circuit based on the
magnetizing current depending on the analysis given in [13]
can be written as:
I mr ( s ) / I sd ( s ) 1 /(1 sTr ) (31)
Where, the dead time in the flux control loop equals the Fig-8: Diagram of Speed Control Loop.
sampling period in this loop. Then, the field oriented forward The mechanical system of induction motor can be considered
path transfer function is given by: as a pure inertial load of mechanical time constant T m. The
Grotor [1 (1 sTrf )][1 (1 sTr )] (33) viscous friction can be safely neglected while the mechanical
load TL is represented by an input disturbance. The mechanical
The transfer function of the PI- controller of the flux control
time constant Tm can be determined by the experiment
loop is given by:
described in reference [7]. Then, the transfer function
Gcf Acf (1 sTcf ) / sTcf (34)
representing the mechanical system of the motor is given by:
Then, the total forward path transfer function of all forward
Gm 1 / sTm (41)
blocks in the field control loop is given by:
The dead time in speed control loop equals the speed sampling
G f ( s) Gcf ( s).G f ( s) (35)
period and is approximated to the time delay T sn, where the
G f Acf (1 sTcf ) / sTcf (1 sTsf )(1 sTr ) (36) transfer function of the equivalent delay time in the speed loop
works, this gain can be selected in the range of 5 to 10 [6]. By neglecting the sampling time Tsn with respect to the
mechanical time constant Tm( Tsn<< Tm) and Eq. 46 can be
6. THE SPEED CONTROLLER: simplified to:
The difference between the input setting reference value of the Gnt ( s) Acn (1 sTcn ) / s 2Tcn Tm (47)
rotor speed ω* and the feedback actual speed ω gives the Then, the closed loop transfer function with PI-
speed error signal which applied as input to the speed compensation becomes;
controller (PI- controller). The output is a voltage signal
Fn ( s ) Gnt ( s ) /(1 Gnt ) (48)
proportional to the reference value of the electromagnetic
16
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
comparing the system characteristic Equation as Eq. 51 with field oriented control system is the INTEL 80C196KC
the following general characteristic equation form : microcontroller with Architecture as shown in Fig. 9.
s 2 2n s n 0
2
(52)
By using a small value of damping ratio ζ = 1 / √2 which Fig-9: Intel 80C196KC Microcontroller Architecture
Tel (n 1) Tel (n) K Pn En (n 1) K In En (n) Speed Input Unit (HSI) can record times of external events
* *
(60)
with a 9 state time resolution. It can monitor four
and
independently configurable HSI lines (HSI. 1 to HSI.3) and
En * (61)
capture the value of TIMER 1 when event takes place.
The desired value of quadrature component of stator current is The High Speed Output unit (HSO) can be programmed to
obtained by using Tel* as: cause transitions on any of its six output lines (HSO.0 to
17
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
HSO.5) at specified times (based on TIMER 1 or TIMER 2). analog input of the A/D converter. Port 1 is a quasi-
Up to 8 pending events can be stored in the 24-bit CAM bidirectional port (having I/O pins). This port is used as a
register (Content Addressable Memory) of the HSO unit at one dummy output port for debugging any inter digital quantity
time. The Analog to Digital Converter (ADC) converts the calculated in the microcontroller.
analog input to 10-bit digital equivalent, and it consists of 8-
Channel multiplexer, Sample and hold, and 10 bit successive 8 ANALOG FEEDBACK SIGNALS
MEASUREMENT:
approximation A/D converter. The analog signals can be
There are three main feedback signals which must be
sampled by any of the 8-analog input pins (Ach.0 through
measured for the field oriented control systems. The first two
Ach.7) which are shared with Port.0. The Watchdog Timer is
signals are the actual currents of the motor (i s1 and is2) and the
a 16-bit counter that is incremented every state time. When it
other is the actual speed of the motor ω. These signals are used
overflows it pulls down the RESET pin for two state times,
as input signals to the A/D converter of the microcontroller.
which reinitializes the system. The interrupts are 28 interrupt
sources and 16 interrupt vectors on the 80C196KC. 8.1 Actual Current Measurement
The actual currents of the motor are measured in two stator
7.2 The Intel 80c196kc Microcontroller Adaptation lines. For field orientation only two line currents i s1 and is2 are
According to the architecture of the Intel 80c196kc required, which are transformed to i sα and isβ. The gain of the
Microcontroller [8, 9] shown in Fig. 9, the microcontroller is current transducer of type (VDM, 172001) is 100/0.1 A. The
configured to perform the field oriented controller. total gain of the current measurement is selected as 1V/1A
which results in a voltage range between 1 to 5 V at the A/D
7.2.1 The HSO Unit Configuration
converter inputs. In the internal calculations of the
The HSO unit is programmed to realize the space vector microcontroller, the current range corresponds to the
modulator which is the important part of the field oriented hexadecimal range 3FFFH, 4000H.
controller [4]. Timer 1 is used as the reference timer for the
8.2 Actual Speed Measurement
HSO command and incremented every 8 state times. The
The actual speed of the motor is measured using dc tachometer
comparator has a chance to look all 8 CAM registers before
which is coupled with the motor shaft. The gain of the
Timer 1 changes its value.
tachometer is given by 1 volt/500 rpm which gives a 6 volt for
7.2.2 The A/D Converter Configuration maximum mechanical speed of 3000 rpm for 50Hz. The
The analog inputs to the 80C196KC microcontroller system required range for the ADC input signals of the
are handled by the A/D converter. The Conversions can be microcontroller is 0 to 5V. A total speed gain of 1volt/1000
performed on one of 8-channels (conversion time 23µsec), the rpm is used to ensure that the speed signals is inside the range
inputs of which share pins with Port.0. The A/D converter is of 0 to 5V. Therefore, for maximum speed of 3000 rpm for
configured in auto scan mode to convert signals on channels 50Hz a 3 volt analog signal of speed can be measured. For the
Ach.0, Ach.l, and Ach.2. The A/D converter channel Ach.0, internal calculation of the microcontroller, the speed range
Ach.l, and Ach.2 are assigned to the signals of the motor corresponding to the hexadecimal range 7FFFH, 8000H.
current Is1, Is2, and rotor speed ω respectively. The result and
status of the conversion is read in the ADRESULT (High) and 9. TESTING THE INTERNAL
AD RESULT (Low) registers. CALCULATIONS OF 80196KC
MICROCONTROLLER:
7.2.3 Input/Output Ports Configuration In the field oriented control systems, it is important to examine
There are five 8-bit I/O ports on the 80C196KC the internal signals inside the microcontroller. The testing of
microcontroller. Some of these ports are input only, some are this internal signals such as Isd, Isq, Usd, and Usq can be done
output only, some are bi-directional and some have alternate using a 4-channeI digital to analog converter circuit consists of
functions. Port.0 is an input port which is also used as the four 8-bit high speed D/A converters. These D/A converters
18
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
receive their input digital signals from a 3-state bus-driving sampling period). The analog signals output routine is also
outputs of four 8-latches. The 2 to 4 lines from the 3-To-8 serviced at the same sampling rate.
lines decoders/demultiplexers are used to determine which
The slow routine (machine model, flux controller, and speed
channel of the digital to analog converter (DAC) channels will
controller) is serviced every 20 interrupts (T slow = 20 Tfast and
be used. The HS0.4 and HS0.5 pins are used as input to the
Tfast = Tint). In this work, the microcontroller requires 70 µsec.
decoders/demultiplexers chip. A 8-bit Port 1 is used to transfer
to execute the activities of the slow routine. The number
the required examined signal to the specified DAC channel.
representing the sampling rate of the slow routine (20 T int) is
given before starting of the program. The parameters and the
10. SOFTWARE AND CONTROL
ALGORITHMS: rated values are calculated and normalized respectively in the
starting initialization of the program. Fig. 10 indicate the
The software and control algorithms of the implemented field
construction of the software implementation.
oriented control system are developed in assembly language
using MCS-96 Micro- Assembler. A relocatable program is
used to combing the used programs together in only one object
program. The monitor program (iECM-96) is used to load the
object file in the microcontroller RAM in order to execute the
system. In this section, the flowcharts and control algorithms
of the main and subprograms are given.
This period is selected to give the required switching started by configuring the microcontroller system by makes
frequency suitable for the inverter power transistors. The the necessary system and initialization. The program calculate
minimum value of this period is determined by the time the parameters and normalize the rated values (such as
required to execute the routines of high sampling rate. constants A, B, Ki, Kf, and Kn).
19
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
Fig-11: Flowchart of the Main Routine. following subsections explain in details the separate
The following step is to enable interrupts from Timer 1, start flowcharts of the different activities executed in the fast
Timer I and start analog to digital conversion, then wait for routine.
interrupt. The program calling suitable subroutine to compute 11. 2. 1 Analog Output Signals
the necessary values such as switching times for HSO's. The selected output signals to DAC routine is not integral part
of the normal field oriented controller. This routine is
This routine has one counter (COUNT). This counter necessary in testing phase to examine the internal signals and
decremented every one interrupt and compared with zero, to study the control system responses. The usefulness of this
when equality is satisfied the slow routine is called. Then, the routine is to select set of internal signals to the four DAC
counter loaded by the sampling rate of the slow routine N s = channels.
20. After executing all these activities another wait of interrupt
is entered where the complete activities are to be repeated. 11. 2. 2 Phase Splitting and Vector Transformation
Routine
The flowchart of this routine shown in Fig. 13 started by
11.2 Fast Routine
reading the ADC channels (Ach.0 & Ach.1) of the actual line
The fast routine of Fig. 12 shows the different activities to be
currents.
executed at the fastest sampling rate (every one interrupt).
20
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
The equations (27) and (29) are used to give the outputs of
these current controllers Usd* and Usq* which are the desired
values for the direct and quadrature components of the stator
voltage. These outputs (Usd* and Usq*) are limited to maximum
and minimum values.
21
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
The inputs to this routine are the actual values of direct and This output value of the reference direct current I sd* is limited
quadrature components of the stator current (I sd and Isq) and to maximum and minimum values and stored as 14-bit signed
the actual speed ω. The reading of the actual speed ω from integer to be used as input to the direct current controller
ADC channel 2 (Ach.2) is corrected and normalized as 16-bit routine.
integers. One output of this model is the actual magnetizing
11. 3. 3 Speed Controller Routine
current Imr which is used as the input of the flux controller.
The speed controller routine shown in Fig. 18 is also
The other output is the flux position angle φ which is used as
implemented using the PI-controller and the inputs to this
the input to both vector transformation and space vector
routine are the reference and actual values of the rotor speed
modulator routines. The part of calculating the electrical angle
(ω* and ω). The reading of the actual speed co from ADC
φ is executed at the fastest sampling rate with the fast routine
channel 2 (Ach.2) is corrected and normalized as a 16-bit
in order to optimize the performance of the drive system.
integers. The actual speed ω is compared with its reference
11. 3. 2 Flux Controller Routine value ω* to give the dynamic error of speed ω n. The PI-
The flux controller routine shown in Fig. 17 is implemented by correction of speed error is implemented on the speed error to
the PI-controller. The inputs to this routine are the reference give the required reference value of the quadrature component
and actual values of the magnetizing current (I mr* and Imr). The of the reference current Isq*.
reference value Imr* is given as a constant value in the
initialization of the main program (0DBIH corresponds to I mr
=1.07A).
22
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
There are two interrupt routines serviced in this work as The ADC interrupt routine shown in Fig. 20, started by
shown in Fig. 10. These interrupt service routines are the HSO scanning the allowable ADC channels (Ach.0 to Ach.4) and
interrupt routine and the ADC interrupt routine. The following adjusting their readings (such as actual current and speed).
are written in the respective registers of the HSO unit after main program. The ADC channel number (AD NUM) is
every interrupt with Timer 1 to give the suitable output space incremented and compare with the max allowable channel
vector voltages. number (5 channel, Ach.0 to Ach.4). The start of the A/D
conversions are done, if the AD_NUM is cleared when
reached to the max allowable value and initials a new ADC
read cycle. Since, the results are written in the respective
23
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
24
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
Horizontal: 5 msec/div.
Vertical: 20 volt/div. Horizontal: 20 msec/div.
Fig-24: Output line voltage (uab). Vertical: 1 amp./div.
Fig-27: Stator currents Isα and Isβ at 5 Hz.
13. CONCLUSIONS:
This paper investigates the high performance field oriented
induction motor drive system. The control system is
implemented using single chip 16-bit microcontroller INTEL
80C196KC. Since, the hardware elements are minimized and
the execution time of the operation is reduced which gives low
cost and high performance drive system. The implemented
machine model depends on measuring the current and speed is
a better one for wide speed range. The current measurement by
using the current transducers based on the hall effect
Horizontal: 5 msec/div.
Vertical: 20 volt/div. phenomenon gives complete isolation between the power and
control sides. Also, speed measurement by using analog
Fig-25: Output phase voltage (ua). tachometer which is the common method for standard field
oriented control systems, gives better results for different
operating speeds.
25
VOLUME-1, ISSUE-1, DEC-2015, E-ISSN: 2455-5878
INTERNATIONAL JOURNAL OF RESEARCH FOR SCIENCE AND COMPUTATIONAL ENGINEERING
The software implementation of the suggested field oriented Vector Control of Induction Motor Using Rotor Flux
control system in two different sampling rate routines ( fast Estimation by Two Different Methods ", International
and slow routines) is fulfill the required fast dynamic response Journal of Electronic and Electrical Engineering, Volume
for precision speed. The software programs of the 7, Number 3 (2014).
implemented drive system have the facilities to generate pulses [11] R. B. Sepe & J. H. Lang "Inverter Nonlinearities and
to drive not only the used small fractional HP induction motor, Discrete Time Vector Current Control", IEEE Trans., Ind,
but it also suitable for all high power induction motor drives. Appl., Vol. 30, No. 1, pp. 62- 70, January/February 1994.
Such type of drive system is economical and efficient if it [12] R. K. Sugandhi & K. K. Sugandhi "Thyristors, Theory
compared with other types of the variable speed drives. and Applications", Wiley Eastern Limited, New Delhi,
1983.
14. REFERENCES: [13] Ayman Y. Yousef “ Dynamic Modeling of Induction
[1] P.Ramana, B.Santhosh Kumar, Dr.K.Alice Mary, and Motor with Rotor Field Orientation” International Journal
Dr.M.Surya Kalavathi “Comparison of Various PWM of Research, Volume 2, Issue 07, July 2015.
Techniques for Field Oriented Control VSI Fed PMSM [14] A. J. M. Cardaso & E. S. Saraiva "Computer-Aided
Drive” International Journal of Advanced Research in Detection of Air Gap Eccentricity in Operating Three
Electrical, Electronics and Instrumentation Engineering Phase Induction Motors by Park's Vector Approach",
Vol. 2, Issue 7, July 2013 IEEE Trans., Ind. Appl., Vol. 29, No. 5, pp. 897-901,
26