Jeas 0408 94
Jeas 0408 94
Jeas 0408 94
2, APRIL 2008
ISSN 1819-6608
www.arpnjournals.com
IMPLEMENTATION AND SIMULATION OF DIRECT TORQUE CONTROL SCHEME WITH THE USE OF FPGA CIRCUIT
Sarat Kumar Sahoo1, G. Tulasi Ram Das2 and Vedam Subrahmanyam3
2
Department of Electrical and Electronics Engineering, Dr. M.G.R. University, Chennai, India Department of Electrical and Electronics Engineering, J.N.T.U. College of Engineering, Hyderabad, India 3 Department of Electrical and Electronics Engineering, R.M.K. Engineering College, Chennai, India E-mail: sarata1@rediffmail.com
ABSTRACT This paper presents a simple approach to design and implementation of Direct Torque Control (DTC) of three phase squirrel cage induction motor using Matlab/Simulink and FPGA software. The direct torque control of induction machine is a simple control. To maintain this simple control structure while at the same time improving the performance of the DTC drives two simple new techniques i.e. constant switching frequency and stator flux estimation are proposed. To maintain a constant switching a simple torque control is introduced to replace the three level hysteresis comparators. The magnitude and phase error associated with stator flux estimation based on voltage model is compensated by using simple compensator which is based on steady state operation.
Keywords: FPGA, VHDL, induction motor, methodology, DoPC.
1. INTRODUCTION Induction motors have many advantages when compared to direct current (DC) motors. The well known advantages are simple construction, reliability, ruggedness, and low cost. Nevertheless, DC drives have dominated the field of adjustable speed drives, due to the high dynamic performances [14]. Induction machine control was only possible after the development of powerful switching component and efficient control techniques. For instance, the first control theory was presented in 1971 [15] and implemented ten years later with the advent of microprocessors. Induction motor control methods can be divided into scalar and vector control. In scalar control, which is based on relationships valid in steady state, only magnitude and frequency of voltage, current, and flux linkage space vector are controlled. In vector control, which is based on relations valid for dynamic state, not only magnitude and frequency but also instantaneous position of voltage, current, and flux space vector are controlled. Vector control is general control philosophy that can be implemented in many different ways; the most popular method is field oriented control (FOC). In the mid 1980s, the innovative studies of Depenbrock [19], [20] and of Takahashi and Noguchi [21] which depart from the idea of coordinate transformation and the analogy with dc motor control. These innovators proposed to replace the decoupling control, which meets very well with on-off operation of the inverter semiconductor power devices. This control strategy is commonly referred to as direct torque control (DTC). Allowing for a performance even superior to DC machine drives. The DTC scheme is very simple, in its basic configuration it consists of DTC controller, torque and flux calculator and voltage source inverter. The configuration is much simpler than the Field Oriented Control (FOC) system due to the following features: Absence of frame transformer.
No current control loop, hence, the current is not regulated directly. It does not need pulse width modulator and position encoder, which introduce delays and requires mechanical transducers respectively. Stator flux vector and torque estimation is required. The DTC method was introduced two decades ago, a number of technical papers appear in the literature mainly to improve the performance of DTC of induction machines. The two problems usually associated with DTC drives which are based on hysteresis comparators are: (i) variable switching frequency due to the hysteresis comparators used for the torque and flux comparators and (ii) inaccurate stator flux estimations which can degrade the drive performance. Generally, the stator flux is estimated based on the variation of the two types of estimators, namely the voltage and current models [17]. To take advantage of both type of estimators, some researchers have combined both types of estimators, namely the voltage and current models. However, the use of current model will require a speed sensor or speed estimators which in both cases are undesirable. To maintain a speed sensorless operation, only voltage model has to be used. In voltage model technique, low pass (LP) estimator is normally used in place of a pure integrator to avoid integration drift problem [18]. The LP filter however introduces magnitude and phase errors in the estimated flux. This paper proposed a simple yet effective methods to overcome these two problems. To maintain a constant switching frequency, a simple torque controller is introduced to replace the conventional 3-level hysteresis comparator. The magnitude and phase error associated with stator flux estimation based on voltage model is compensated by using simple compensator which is based on steady state operations. The rest of the paper is organised as follows. Section-II presents the
48
ISSN 1819-6608
www.arpnjournals.com proposed torque controller and Section-III presents the improved stator flux estimation methods. Section-IV presents the FPGA based design methodology for the complete control. Section-V presents the simulation and experimental results of the proposed methods. Finally, conclusions are given. 2. DTC PRINCIPLES The block diagram of the Direct Self Control (DSC) scheme, proposed by Depenbrock [22], is shown in Figure-1. Based on stator flux components sA, sB and sC, the flux comparators generate the digitized variablesdA ,dB, and dC which correspond to active voltage vectorsfor six-step operation.
The negative slope can be obtained by setting the active voltage V s , n to zero, thus
slope =
Te(n+1) Te( n) t
Te( n)
s,r
3 p Lm jr s . j r 4 Ls Lr
(2)
On the other hand, positive slope is given by the non-zero voltage vectors, thus
slope+ = Te ( n+1) Te ( n ) t = Te ( n )
s ,r
3 p Lm V s jr s . j r 4 Ls Lr (3)
2.1. Proposed torque control The proposed torque controller consists of two triangular waveform generators, two comparators and a PI controller. The two triangular waveforms are 1800 out of phase with each other. The triangular waveforms are referred as upper and lower carriers. The offset values of the DC offsets of upper and lower carriers are set to half of its peak to peak value. The upper dc offset is positive while the lower is negative. The output of the proposed torque controller is similar to that of the three level hysteresis comparator [16], which can be either of three states: -1 , 0 or 1. The value of the instantaneous output of the torque controller designated by q(t) is given by:
Figure-1. Direct Self Control (DSC) scheme. The hysteresis torque controller, on the other hand, generates the digitized signal that determines the zero states duration. In the field-weakening region, where the inverter is in six-step operation under rated output voltage, the torque is not determined by the hysteresis torque controller but by a momentary change of the stator flux amplitude. In a simple case, it can be obtained by means of the PI-flux controller of Figure-1. However, for precise control, more complex calculation is required. A DTC drive based on fixed torque hysteresis band, suffer from a varying rate of change of torque which is simply referred to as torque slope and hence torque controller switching frequency, as a function of motor speed, stator and rotor fluxes, and stator voltage. This in turn results in a varying device switching frequency. Variable switching frequency is undesirable since the switching capability of the inverter is not fully utilized. For fixed torque band, the choice of the bands width is normally based on the worst condition which is limited by the thermal condition of the switching devices, thus operation for other conditions are not optimized. The torque slope is given in equation (1)
Te( n+1) Te( n) t
g 1 1 3 p Lm V s,n jr s ( n) . j rg,n = Te( n) + + s r 2 2 Ls Lr
1 q (t ) = 0 1
for
Tpi Cupper
(4)
The average torque error status q(t) is defined as continuous duty ratio and is denoted by d(t). The average is taken over an interval Ttri, which is the period of the triangular carrier waveform. It is defined by:
d (t ) =
1 T ri
t + T ri
q (t ) d t
(5)
The values of the PI controller parameters are chosen based on the linear analysis of the controller. The linear model is obtained by averaging and linearising the torque equations (2) and (3). It can be shown that the positive and negative torque slope equations are given by (6) and (7) respectively,
dTe+ = ATe + Bv s + K1 e e s d
(6)
(7)
(1)
49
ISSN 1819-6608
www.arpnjournals.com
A = B = K1 = 1
s ,r
3 p Lm 4 Ls Lr
s
operating frequency thus improving the steady state performance of the DTC drive. In other words, the LP filter action is effective at all frequencies except at the operating frequency, that is,
r
s
3 p Lm ( s 4 Ls Lr
Averaging and linearising equations (6) and (7), and with further simplifications, it can be shown that
v iR j s' = v iR j + c
for = e
(12)
for e
(8)
Based on equation (8), the transfer function between d and Te can be obtained by setting the slip frequency to zero. It can also be shown that the transfer function between the output of the PI controller, Tpi and the averaged duty ratio d is given by a reciprocal of the peak-peak triangular carrier, Cpp. The values of the PI controllers parameters are chosen based on the following constraints: (i) the absolute slope of equation (5) and (6) cannot exceed the triangular carrier slope. (ii) The crossover frequency of the loop gain (bandwidth) cannot exceed half of the carrier triangular frequency. 2.2. Stator flux estimation Stator flux estimation based on voltage model is carried out by using following equation (9)
The LP filter action is therefore valid or effective for the DC offsets and low frequency components present in the sensed currents or voltages. This avoids the integration drift problem while maintaining good system stability. This is due to the fact that the phase and magnitude errors are compensated at the operating frequency. The stator flux is compensated at the operating frequency for the d and q components by determining the expressions for the actual stator flux in terms of estimated stator flux in the stationary reference frame. Figure-2 shows the relationship of the estimated and actual stator flux with their d and q components in the stationary reference frame, denoted by the direct and quadrature axis, ds and qs.
s = (V is Rs )dt
(9)
To avoid integration drift problem due to the dc off-set or measurement noise, a low-pass filter is normally used in place of the pure integrator in stator flux estimation. With a low-pass filter, sinusoidal steady state form, it can be shown that:
s' =
where
Vs I s Rs je + c
(10)
c is the cut-off frequency of the low-pass filter in ' rad/s and s is the estimated stator based on LP filter.
If
Figure-2. Space vectors of stator current, actual stator flux, and estimated stator flux with rotating and stationary reference frame. The compensated flux is given in (13) and (14) and can be incorporated in the flux estimator block. The compensator can be initiated by the flag manually or based on steady state speed error.
' ' sq = q d
that the relation between the estimated stator flux based on LP filter and pure integrator is given by (11):
s' e ' = s e2 + c2
= ( / 2 ) ta n
1
(11)
c e
c e
(13)
e c
' ' sd = d q
(14)
The core of the proposed improvement is to provide a magnitude and phase compensations for the estimated flux, under steady state condition, only at the
The synchronous speed is e is obtained from the measured terminal variables using (15).
50
ISSN 1819-6608
www.arpnjournals.com
e =
(V
I s Rs
2 s
) . j
(15)
3. FPGA DESIGN METHODOLOGY The steps in the design procedure for the drive system using the proposed controller are illustrated in the flow diagram in Figure-3. The complete DTC model, including the power circuit and the controller is simulated in Matlab / Simulink. When the controller performs as expected in simulation, a VHDL representation of controller can be generated using a special block of the Xilinx System Generator (SG). SG blocks are like standard Simulink blocks except that they can operate only in discrete-time and fixed point format. The two control blocks are simulated in Matlab / Simulink and then built using SG block. The design methodology uses FPGAs as the target device and parameter driven VHDL style coding to describe the digital circuit. All the modules were designed and tested in the Xilinx Foundation Express. The design flow of the overall coding is compiled and synthesized using the popular synthesis tool Synplify. Before synthesis the target device has to be selected. During synthesis a gate level net list is developed in an Electronic Data Interchange Format (EDIF). A file bearing EDIF net list information is created with various extension names depending on the target type.
The target XC2S100 FPGA of Xilinx family is used here in the design and the relevant EDIF net list file created carries .vqm (Verilog Quartus Map) extension. During synthesis and RTL (Register Transfer Level) corresponding to the design code is developed, which represents an optimized design. The Quartus-II tool compiler creates the .vho (VHDL output file) that contains post routing and post partitioning net list information for timing simulation carried out by ModelSim. The .sof (SRAM Object file) file generated during Placement and Routing is downloaded finally to the FPGA target via JTAG (Joint Test Action Group) port. The XC2S100 FPGA is used as the target. Thus the entire design is strictly based on the FPGA design flow concepts and rendered expected results. The development of each module in terms of architecture is based on standardization principles. These principles are regularity, understandability, and reusability of already designed components. The architecture of stator flux, rotor flux and torque estimator are shown in Figure-4. The resulting RTL model of the estimator architecture presenting the VHDL entity is shown in Fig-5.
51
ISSN 1819-6608
www.arpnjournals.com
Figure-5. RTL model of the estimator architecture. 4. RESULTS Experimentation was carried out with kW, 2 poles induction motor. The experimental setup consists of Xilinx FPGA device (XC2S100), IGBT based VSI, Induction motor and peripheral devices such as ADC, VSI interface board, DAC and a host PC connected with the FPGA via serial interface. The analog to digital conversion time is equal to 2.4s. The block diagram of the experimental set-up is shown in Figure-6.
(a)
(b) Figure-7. Response for a square wave speed reference for (a) proposed torque controller and (b) a hysteresis-based controller.
Figure-6. Experimental set-up. To look at the dynamic response of the proposed controller, a square wave speed command is applied and the waveforms of the rotor speed, torque and d-axis stator flux is as shown in Figure-7(a). For comparison, the same command is applied to the hysteresis-based torque controller with the results shown in Figure-7(b). From the Figure it can be seen that with the proposed controller, the dynamic torque controller is the same as with the hysteresis based controller, with an added advantage of a reduced torque ripple [23]. The compensation and estimations were donewithin the software with sampling frequency of 55s. The frequency spectrum of the phase currents at rotor speed of 10 rad/sec for the proposed torque controller is shown in Figure-8. The steady state stator flux vector locus for the proposed torque controller is shown in Figure-8(a) and (b) present torque response to a step control from 0 N.m to 4 N.m. It shows that torque response do not present large ripples with the proposed torque controller by comparison to hysteresis based controller.
Figure-8. Experimental result of phase current frequency spectrum for proposed torque controller.
52
ISSN 1819-6608
www.arpnjournals.com ACKNOWLEDGEMENTS The authors would like to thank the management of Dr. M.G.R. Educational and Research Institute (Chennai, India) for its financial support. REFERENCES [1] Bimal K .Bose. 1997. Power Electronics and Variable Frequency Drives. IEEE Press, New York. [2] M. N. Cirstea, A. Dinu, J. Khor, and M. McCormick. 2002. Neural and Fuzzy Logic Control of Drives and Power Systems. Oxford, U.K.: Elsevier. [3] D. L. Perry. 2004. VHDL. McGraw-Hill, New York. (a) [4] K.C. Chang. 1997. Digital Design and Modeling with VHDL and Synthesis. IEEE Computer Society Press, Los Alamitos, California. [5] P. J. Ashenden. 1995. The Designers Guide to VHDL. San Mateo, CA: Morgan Kaufmann. [6] IEEE Standard VHDL Language Reference Manual. IEEE Std 1076-1993. [7] Power System Blockset for use with Simulink,Users Guide. The MathWorks Inc. 2005. (b) Figure-9. Experimental results obtained with the proposed torque controller: (a) Steady state rotor flux vector locus, (b) torque response to a step control. 5. CONCLUSIONS The new torque controller for constant switching frequency and a compensation scheme to eliminate the phase and magnitude errors for the stator flux estimation under steady state condition is proposed. The obtained results have demonstrated that FPGAs are well suited for implementation of complex motor control and estimation algorithms due to their very high execution speed .The architecture contain a set of building blocks. Each block is geared towards a specific algorithm function. To increase module reutilization, standard and modular design principle is proposed. The modules can be readily to suit new requirements such as modification of communication system, addition of measured variable, and modification of control configuration. In the proposed approach, the design time could be reduced because of the accuracy of the simulation attainable with Simulink and Xilinx System Generator at every operation details of FPGA. Most of the time only one step of debugging is required because the design in Simulink represents an exact model of the actual device. This simple scheme has significantly improved the performance of the DTC drive system while at the same time maintaining the simple control structure of the DTC drive. book. 2006. [Online] available: [8] Xilinx data www.xilinx.com. [9] R.D. Turney, C. Dick, D.B. Parlour and J. Hwang. 2005. Modeling and Implementation of DSP, FPGA Solutions. Xilinx Inc. [10] E. Kiel. 2002 Control electronics in drive systems micro-controller, DSPs, FPGAs, ASICs from stateof-art to future trends. In: Proc. PCIM Conf., CDROM. [11] M. Cirstea. 2005. Electronic systems integrated modeling and optimized digital controller prototyping-A novel (HDL) approach. IEEE Ind. Electron. Soc. Newsl. 52(3): 11-13. [12] F. Ricci and H. Le-Huy. 2002. An FPGA-based rapid prototyping platform for variable-speed drives. In: Proc. IEEE IECON. pp. 1156-1161. [13] E. Monmasson, A.A. Naassani, J.P. Louis. 2001. Extension of the DTC concept. IEEE Trans. On Industrial Electronics. 48(3): 715-717. [14] Leonard W. 1991. 30 Years Space Vectors, 20 Years Field Orientation, 10 Years Digital Signal Processing with Controlled AC-Drives. A Review, EPE Journal. 1: 13-20.
53
ISSN 1819-6608
www.arpnjournals.com [15] Blaschke F. 1971. A New Method for the Structural Decoupling of A.C. Induction Machines. In: Conf. Rec. IFAC, Dusseldorf, Germany. pp 1-15. [16] I. Takahashi and T. Noguchi. 1986. A newquickresponse and high-efficiency control strategy of an induction motor. IEEE Trans. Ind. Applicat. Vol. IA22. [17] P.L. Jansen and R.D. Lorenz. 1994. A physically insightful approach to the design and accuracy assessment of flux observers for field oriented induction machine drives. IEEE Trans Ind. Appl. 30(1). [18] Jun Hu and Bin Hu. 1998. New integration algorithms for estimating motor flux over a wide speed range. IEEE Trans Power Electronics. 13(5). [19] U. Baader, M. Depenbrock and G. Gierse. 1992. Direct self control (DSC) of inverter-fed-induction machine, A basis for speed control without speed measurement. IEEE Trans. Ind. Applicat. 28: 581588. [20] Direct self-control of the flux and rotary moment of a rotary-field machine. U.S. Patent 4 678 248. July 7, 1987. [21] I. Takahashi and T. Noguchi. 1986. A new quick response and high efficiency control strategy of an induction machine. IEEE Trans. Ind. Applica. 22: 820-827. [22] M. Depenbrock. 1988. Direct self control of inverterfed induction machines. IEEE Trans. Power Electron. 3: 420-429. [23] Jun-Koo Kang and Seung-Ki Sul. 1999. New Direct Torque Control of Induction Motor for Minimum Torque Ripple and Constant Switching Frequency. IEEE Trans. Ind. Application. 35(5): 1076-1082.
54