Elektrotehniški vestnik 76(3):85-91, 2009 Electrotechnical Review: Ljubljana, Slovenija Application of Direct Current Control in a Three-phase Parallel Active Power Filter David Nedeljkovic, Mitja Nemec, Vanja Ambrožič University of Ljubljana, Faculty of Electrical Engineering, Tržaška cesta 25, SI-1000 Ljubljana, Slovenia E-pošta: davidn@fe.uni-lj.si Abstract. The paper presents application of a direct current control (DCC) method in a three-phase parallel active power filter. The shunt active power filter is employed to compensate the fundamental reactive power and harmonic distortion of non-linear loads. Due to its inverter-like topology with known parameters in the filter branch, the predictive DCC method was implemented to reduce the filter commutation frequency. Consequently, the filter branch losses are decreased. Experimental setup based on a TMS320F2407A DSP showed that the DCC variant without modulation within the sampling interval yields even better results than the DCC variant, which modulates the active and zero voltage vectors within the sampling interval. A comparison between the DCC and the synchronized on-off control method indicates that the DCC improves the filter performance. Keywords: shunt active power filter, current control, harmonics, modulation, reactive power Uporaba neposredne regulacije toka pri trifaznem paralelnem aktivnem močnostnem filtru Povzetek. V članku je predstavljena uporaba metode neposredne regulacije toka (angl. Direct Current Control -DCC) pri trifaznem paralelnem aktivnem močnostnem filtru. Paralelni aktivni močnostni filter je namenjen kompenzaciji osnovne jalove moči in harmonskega popačenja, ki nastaja kot posledica nelinearnih bremen. Po topologiji je filter podoben razsmerniku in ker so parametri vezja v filtrski veji znani, lahko filter vodimo s prediktivno metodo neposredne regulacije toka (DCC), s čimer se zniža preklopna frekvenca, posledično pa se zmanjšajo tudi izgube v filtrski veji. Poskuse smo opravili na laboratorijskem modelu filtra, ki je voden z DSP krmilnikom TMS320F2407A. Glede dosežene stikalne frekvence in harmonskega popačenja so rezultati meritev, pridobljeni z uporabo različice DCC brez dodatne modulacije, celo boljši kot pri različici DCC, pri kateri se izbrani aktivni in ničelni napetostni vektor modulirata znotraj vzorčnega časa. V primerjavi s klasičnim časovno-diskretnim načinom regulacije toka pa pri delovanju aktivnega močnostnega filtra obe različici DCC izkazujeta boljše rezultate. Ključne besede: paralelni aktivni močnostni filter, regulacija toka, harmonsko popačenje, modulacija, jalova moč 1 Introduction The wide use of power electronics, e.g. rectifiers in home and office appliances as well as in industrial devices, gives rise to the reduced power factor and Received 1 December 2008 Accepted 9 January 2009 harmonic distortion in the supply grid. The applicable standards lay down rigorous limits for harmonic distortion, thus trying to provide quality of electrical power to consumers. A solution to meet the quality requirements, besides proper design of power electronics devices, is active power filter. When connected in parallel with a load, an active power filter can compensate - not only the fundamental reactive power due to the lag between the phase voltage and phase current - but the load current harmonic distortion as well [1-3]. It can also provide a balanced load in three-phase systems [4, 5]. A topology similar to the one in the voltage-source inverter can be used for an active power filter, thus providing proper compensating currents in the filter branch. The filter current reference can be established according to the compensation requirements in many different ways [6-10]. Their advantages are in features like data acquisition and processing simplicity, dynamic response to load current variation, sensitivity to line voltage disturbances, etc. Consequently, various current control approaches are possible, like synchronized on-off principle [2] and space vector modulation - SVM) [11]. Current control should provide good tracing of the filter current to its reference value, with minimal ripple and the lowest possible commutation frequency to minimize the switching losses. The requirements are contradictory. Since the filter current waveform consists of high-order harmonics, an attempt was made to implement a direct current control (DCC) method. Previously, the DCC method was successfully tested in a classical VSI-based AC current source [12] and later, with some upgrade, in induction motor control [13], where the method faces the back-EMF phenomenon. Preliminary results of the DCC method application in active power filters were reported [14], therefore in this paper, after a brief explanation of the active power filter 3-phase 3-wire topology and the applied method of filter current reference determination, a summary of the DCC principle will be presented. After a description of the experimental setup, the obtained compensation results will be shown and discussed. 2 Parallel Active Power Filter 2.1 Topology and Principle A configuration of a parallel active power filter for three-phase three-wire loads is shown in Figure 1. L2 L3 Figure 1. Three-phase three-wire parallel active power filter. According to the selected compensation strategy, the filter can compensate the fundamental reactive power and/or load current harmonic distortion by enforcing an appropriate current into the filter branch: iF(1,2,3) _ iS(1,2,3) — il(1,2,3) . (1) The inverter-like topology in the filter power stage can provide the required filter current only when the filter capacitor voltage VC exceeds the instantaneous value of supply line voltage vS. Consequently, the capacitor voltage has to be controlled, as well. Also, if there is no capacitor voltage control, the capacitor voltage might decrease or increase due to an inevitable unbalance in the active power flow from the supply grid to the load. On the other hand, the capacitor voltage affects the filter current ripple; for a constant capacitor voltage the highest ripple is expected when the line voltage crosses zero. Therefore, the capacitor voltage is an important issue in filter design and some approaches try to avoid this effect by varying the capacitor voltage in accordance with the line voltage [15]. 2.2 Filter Current Reference There have been several methods of current reference determination developed for the parallel active power filters. Some of these methods can be applied in singlephase filters. Others are suitable only for three-phase systems, and some can be used both for single-phase and three-phase topologies. An advantage of the method can be its ability to perform various compensation strategies, i.e. separate compensation of the fundamental reactive power and/or the harmonic distortion. The methods can be further estimated through a number of quantities required to be sensed and processed (load currents, line voltages, line currents, phase shifts, etc.). Another important issue is the dynamics of the method. It is the response of the filter current reference to variations in the load parameters. The methods can be also valued by their sensitivity to various disturbances, especially those of the line voltage. They are decesive for the filter synchronization to the line voltage. In this paper, a three-phase three-wire topology of an active power filter is considered. The aim is to compensate both the fundamental reactive power and the harmonic distortion. Furthermore, line currents are required to be sinusoidal, so the filter-load system should behave like a resistive load with resistance R> (t) _ vS1 (1,2,3) (t) , (2) R(1,2,3) (t) _ --7T ' W iS(1,2,3) (t) with vS1(1,2,3) being the line voltage fundamental for each phase, which provides the sinusoidal waveform of the line current. This line voltage fundamental can be calculated as vS1*(t) _ A*(t)sin(Wt) + B*(t)cos(Wt), (3) where the fundamental Fourier coefficients are = -Tpr J vs (r) sin(Wr)dr, T and B'(t) = y- J vs (r) cos(«*r)dr. (4) (5) The assumed line cycle given above is denoted with T*. It has been proved, that sine and cosine in (3)-(5) do not need any special synchronization to the line voltage when the assumed supply grid frequency w* differs from the actual supply grid frequency wfor less than 0.5 % [2]. In this case, synchronization is provided by calculated line voltage fundamental vS1*. If the power losses are neglected, there should be no active power in the filter branch: (6) P F(1,2,3) ' 1 t (t) = 1 J vS(1,2,3) (t) • iF(1,2,3) (t) • dt= 0. T L t-T With an additional requirement for balanced line currents, symmetrical substitutive resistance can be calculated: R'(t) =R1)(i) = R*a(i) = 4,(4, (7) R* = - J vLs(i)dT+ Jdr+ Jv^dr t -T•_t-T*_t-T*_ (8) t t t ' J VSffi(l)dr+ J VS(2)4(2) dr+ J VS(3)if(3) dr t-T* t -T* t-T' The sinusoidal line current reference can now be easily obtained from (2), (3) and (8): (9) 1 cn 9 (t) = _ ,, v, S(1,2,3) (t) " R«(t) VS1(1,2,3) (t). power filters, since the relevant parameters in the filter branch (LF, RF) are known. In the first DCC variant, for each sampling interval either an active voltage vector or a zero voltage vector can be impressed. The decision is based on the lower predicted filter current error. The predicted filter current vector iF at the end of the sampling interval At can be written as - (n +1) = i fo (n +1) + v f (n) where Re i F o (n +1) = i F (n)|1 - At I + v s (n) • — At (11) (12) This finally leads to the filter current reference by using (1): 4(1,2,3) (t) = 4(1,2,3) (t) - il(1,2,3) W- (10) Therefore, the presented method of filter current reference determination requires on-line measurements of the line voltages, load currents and filter currents. As mentioned above, the filter current reference has to be also controlled to provide the constant filter capacitor voltage- Consequently, the filter capacitor voltage has to be measured, too. 3 Direct Current Control (DCC) In voltage-source inverters with the topologies similar to the presented active power filter, various current control principles can be applied- The aim of current control is to generate appropriate triggering pulses for the power stage transistors (T1-T6). Consequently, the actual filter currents iF(1,2,3) should follow their reference values iF(1,2,3) with the smallest possible error. Besides the small current ripple, a low commutation frequency of the power stage transistors is required to minimize the switching losses. In the previous work, the synchronized on-off current control principle was used in the active power filters, since its implementation on slower microcontrollers was easier than the space vector modulation and its commutation frequency is a bit lower. On the other hand, a drawback of the synchronized on-off approach in the three-phase topology hides in its incapability to impress a zero voltage vector, yielding to higher current ripple. A solution to this issue is the proposed predictive approach to current control [12]. It enables impressing a zero voltage vector for the entire sampling interval At or, in its more sophisticated variant, for a precalculated subinterval ton < At. This method, called the Direct Current Control (DCC) method, gives some encouraging results in AC sources and in induction motor control. It might also be advantageous in active F J F represents the predicted filter current at the end of the sampling interval, without applying any filter active voltage vector vF, but taking into account the line voltage vector vS at the beginning of the sampling interval. After impressing the filter active voltage vector vF (vF is one of the six possible active vectors v1 - v6) v v(n (n)= ^c KVa (n ) KVb (n) = Vr 2 _1 _1 3 3 3 o -f 4 V3 V3_ s1( n ) s3( n) s5( n ) (13) where s1, s3 and s5 are the corresponding transistor states (0 or 1), the predicted filter current error at the end of the sampling interval is s,(n +1) = iF(n +1) -ifo (n +1) - vf(n). (14) lf On the other hand, the predicted filter current error for a zero voltage vector is s o (n +1) = i F (n +1) - i fo (n +1) (15) Both predicted errors (14) and (15) have to be calculated and their magnitudes compared. A practical criterion for applying an active voltage vector is: f ^ < ^o^ (n +1) - Ka (n) + ^ (n +1) - KVb (n), (16) where e0a(n+1) and e0b(n+1) are the components of predicted current error e0(n+1) in the stationary reference frame. The example shown in Figure 2 indicates both current errors with superscript I. In this particular case, the magnitude of the predicted filter current error for a zero voltage vector (e0) is smaller than the magnitude of the predicted error for an active voltage vector (e, for v3), therefore a zero voltage vector should be selected. The second DCC approach requires impressing an active voltage vector for a subinterval ton within the sampling interval At; a zero voltage vector is impressed for the remaining time of the sampling interval. Thus, the predicted filter current error at the end of the sampling interval can be written as (11): s, (n +1) = i*F (n +1) - ifo (n +1) - vf (n) - (17) The expression for the duration of the "active" subinterval ton is obtained by minimizing this error (17): ion = (e (n +1)-Ka (n)+e0b (n +1). Kn (n)) (18) If the calculated ton exceeds the sampling interval At, then ton is set to At thus providing a simple overmodulation. For this DCC approach, the minimized filter current error in Figure 2 is shown with superscript II with the active voltage vector v3 impressed for ton only. Compared with the first DCC variant, a lower current ripple and increased average commutation frequency are expected. On the other hand, the dead-time compensation can be implemented easily. 4 Experimental Setup and Results The active power filter with DCC was tested on a laboratory model. It was built with Semikron SKM75GB123D IGBT modules and CF = 1000 pF, LF = 2.6 mH, Rf = 90 mW. During the experiments, the supply grid line-to-neutral voltage VS was 230 V (RMS) and the filter capacitor voltage VC was controlled to 720 V. The Process Control Unit (Figure 1) is based on a TMS320F2407A DSP controller with six additional fast two-channel AD converters (MAX 1314, conversion time 1.2 ps/2 ch). Figure 2. Comparison between predicted filter current errors for both DCC approaches (denoted with superscripts I and II) The DSP performs all the calculations for filter current reference determination (10) and filter capacitor voltage control for 256 samples per grid cycle (20 ms); therefore the sampling interval for these tasks is 78.125 ms. In a halved sampling interval (At = 39.06 ms), it samples all the signals, executes the routines for the DCC algorithm ((16), (18)) and consequently generates the triggering pulses for the power stage transistors (T1-T6). During the tests, a single-phase thyristor rectifier was used as a nonlinear load. It was connected between two phase terminals so as to simulate unbalanced circumstances. In Figure 3, the relevant line voltage and load current signals for load transient (after 20 ms) are shown. Compensation results for the filter, controlled by synchronized on-off method, are presented in Figure 4. A fast response of the line current to the load transient is obvious as well as its sinusoidal form, but the comparison with similar results for the other control methods (DCC I: Figure 5, DCC II: Figure 6) can be better seen from the frequency spectra in Figure 7. The first diagram (Figure 7 a) shows the load current spectrum. In the second diagram (Figure 7 b), the spectrum for the line current, obtained with the DCC I method (grey), is superimposed to the spectrum for the synchronized on-off method (black). In general, the DCC I method yields lower harmonic contents. From Figure 7 c it can be seen that the DCC II method contains even less harmonics. The line current THD was calculated, also for all the tested methods in steady state (Table I), by taking into account 25 harmonics. Surprisingly, the first DCC method shows better performance than the second one. Namely, the latter causes a sort of an asymmetric filter current ripple [12] that decreases compensation capabilities for the fifth and the seventh line current harmonic. Considering the switching losses, an additional objective was minimization of the actual switching frequency. Classical SVM control in the same three-leg VSI topology would have two commutations (state changes) per sampling interval for each transistor, regardless of the load conditions. With the applied sampling frequency of 25.6 kHz (At = 39.06 ms), this would result in the transistor commutation frequency of 51.2 kHz. In the synchronized on-off method and in both DCC methods, the actual switching frequency depends on the load conditions. Therefore, the number of all transistor commutations during the 100 ms load transient, presented in Figures 3-6, was evaluated. Results obtained with the various investigated current control methods are shown in Table II. As expected, the transistor commutation frequency takes the highest value with SVM. That is why SVM usually operates at a lower sampling frequency. For both DCC methods, further efforts were made in the algorithm to reduce the number of commutations by optimal zero voltage vector selection (either v0 or v7). Consequently, the advantage in the reduced commutation frequency of the first DCC variant over the synchronized on-off method is evident. A higher commutation frequency for the second DCC variant was foreseen, but it does not help reducing the line current THD. V V V Figure 3. Line voltages (vS(j), vS(2), vS(j)) and load currents (j/(j), il(2), i;(3)) during the load transient (kv = 400 V/div, ki = 50 A/div). Figure 5. First DCC method: filter currents (iF(i), iF(2), iF(3)), compensated line currents (iS(i), iS(2), iS(3)) and filter capacitor voltage (VC) during the load transient (kv = 400 V/div, ^ = 50 A/div). ol-1-1-1-1-1-1-1-1-1- 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 t(s) Figure 4. Synchronized ON-OFF method: filter currents (iF(1), iF(2), iF(3)), compensated line currents (iS(1), iS(2), iS(3)) and filter capacitor voltage (VC) during the load transient (kv = 400 V/div, ^ = 50 A/div). TABLE I. Total Harmonic Distortion of Steady State Line Current t(s) Figure 6. Second DCC method: filter currents (i>(i), i>(2), iF(3)), compensated line currents (i'S(1), i'S(2), i'S(3)) and filter capacitor voltage ( VC during the load transient (kv = 400 V/div, ^ = 50 A/div). TABLE II. Transistor Commutation Frequency Current control method THD No compensation (i.e. load current) 21.3 % Synchronized on-off 5.0 % DCC I 3.9 % DCC II 5.3 % Current control method Number of all commutations during 100 ms transient Commutation frequency for each transistor Synchronized on-off 7386 12310 Hz DCC I 6224 10373 Hz DCC II 9592 15987 Hz SVM 30720 51200 Hz 4(1) iS(1) 101 b Sl) fHz) fHz) 10 10 10 /(Hz) Figure 7. Compared frequency spectra for normalized load current (i^)) and for normalized line current (is(i)) obtained with the synchronized on-off method and with both DCC methods (I and II). 5 Conclusion The proposed direct current control (DCC) method was successfully implemented in an active power filter. Due to its predictive approach, the consequent line current ripple was reduced. Its commutation frequency for the first DCC approach is lower than in the synchronized on-off current control principle. The commutation frequency in the second DCC approach with modulation is higher but still lower than in SVM. Despite assuring outstanding performance in AC drive applications, the main drawback of the second DCC method in active power filters remains its immanent asymmetric current ripple. The main focus of our further research will be on this issue. Also to be considered is the DCC application in the methods of filter current reference determination with a reduced number of current sensors. Also, solutions with a variable filter capacitor voltage will be investigated, to reduce the current ripple when the line voltage crosses zero. 6 References [1] H. Akagi, "Trends in Active Power-Line Conditioners," IEEE Trans. on Power Electronics, vol. 9 (3), pp. 263268, May 1994. [2] D. Nedeljkovic, J. Nastran, D. Vončina and V. Ambrožič, "Synchronization of Active Power Filter Current Reference to the Network," IEEE Trans. on Industrial Electronics, vol. 46 (2), pp. 333-339, April 1999. [3] B. Singh, K. Al-Haddad and A. Chandra, "A review of active filters for power quality improvement," IEEE Trans. on Industrial Electronics, vol. 46 (5), pp. 960-971, Oct. 1999. [4] B.-R. Lin and C.-H. Huang, "Implementation of a Three-Phase Capacitor-Clamped Active Power Filter Under Unbalanced Condition", IEEE Trans. on Industrial Electronics, vol. 53 (5), pp. 1621-1630, Oct. 2006. [5] P. Verdelho and G.D. Marques, "An active power filter and unbalanced current compensator," IEEE Trans. on Industrial Electronics, vol. 44 (3), pp. 321-328, June 1997. [6] D. Nedeljkovic and J. Nastran, "Ugotavljanje tokovne reference pri paralelnih aktivnih močnostnih filtrih" / "Current Reference Determination in Parallel Active Power Filters," Elektrotehniški vestnik / Electrotechnical Review, vol. 66 (2), pp 144-152, 1999. [7] M. Salo and H. Tuusa, "A Novel Open-Loop Control Method for a Current-Source Active Power Filter," IEEE Trans. on Industrial Electronics, vol. 50 (2), pp. 313-321, April 2003. [8] Byung-Moon Han, Byong-Yeul Bae and S.J. Ovaska, "Reference Signal Generator for Active Power Filters Using Improved Adaptive Predictive Filter," IEEE Trans. on Industrial Electronics, vol. 52 (2), pp. 576-584, April 2005.. [9] R. Grino, R. Cardoner, R. Costa-Castello and E. Fossas, "Digital Repetitive Control of a Three-Phase Four-Wire Shunt Active Filter," IEEE Trans. on Industrial Electronics, vol. 54 (3), pp. 1495-1503, June 2007. [10] G.-Y. Jeong, T.-J. Park and B.-H. Kwon, "Line-voltage-sensorless active power filter for reactive power compensation," Electric Power Applications, IEE Proceedings, vol. 147 (5), pp. 385-390, Sept. 2000. [11] V. Soares, P. Verdelho and G.D. Marques, "An Instantaneous Active and Reactive Current Component Method for Active Filters," IEEE Trans. on Power Electronics, vol. 15 (4), pp. 660- 669, July 2000. [12] V. Ambrožič, R. Fišer and D. Nedeljkovic, "Direct Current Control - A New Current Regulation Principle," IEEE Trans. on Power Electronics, vol. 18 (1), pp. 495503, Jan. 2003. a 'i .1 mm -2 -3 10 10 c -3 -' [13] M. Nemec, D. Nedeljkovic and V. Ambrožič, "Predictive Torque Control of Induction Machines Using Immediate Flux Control", IEEE Trans. on Industrial Electronics, vol. 54 (4), pp. 2009-2017, Jan. 2007. [14] D. Nedeljkovic, M. Nemec and V. Ambrožič, "Three-phase parallel active power filter with direct current control," Proceedings of the EPE-PEMC 2006 (12th International Power Electronics and Motion Control Conference), Portorož, Slovenia,. pp. 1660-1664, Aug. 2006. [15] Chongming Qiao, Taotao Jin and K.M. Smedley, "One-Cycle Control of Three-Phase Active Power Filter with Vector Operation," IEEE Trans. on Industrial Electronics, vol. 51 (2), pp. 455-463, April 2004. David Nedeljkovic received his B.S., M.S., and Ph.D. degrees from the Faculty of Electrical Engineering, University of Ljubljana, Slovenia, in 1991, 1996, and 1998, respectively. He joined the same faculty in 1993, where he is now an Assistant Professor and Vice-Dean for financial affairs. In 2001 he was a Guest-scientist with the Institut für Regelungstechnik, Technische Universität Braunschweig, Germany. His main research interest concerns active power filters, pulse magnetizing devices, solid-state power converters, and control of electrical drives. Mitja Nemec received his M.S. and Ph.D. degrees in electrical engineering from the Faculty of Electrical Engineering, University of Ljubljana, Slovenia, in 2003 and 2008, respectively. He is currently working as an assistant at the same institution. His scientific and pedagogical work is oriented towards power electronics and motion control. Vanja Ambrozic received his B.S., M.S. and Ph.D. degrees from the Faculty of Electrical Engineering, University of Ljubljana, Slovenia, in 1986, 1990, and 1993, respectively. In 1986 he joined the Laboratory of Control Engineering at the same faculty, first as a junior researcher, then as an assistant and assistant professor. He is currently an associate professor and the head of the Department of Mechatronics. His main research interests include control of electrical drives and power electronics.