Documente Academic
Documente Profesional
Documente Cultură
Digital Control of Three -Phase DC/AC Converters : Current Control Techniques Linear Current Control
October 1999
Current Sensing
Current sensing is normally not a troublesome part of the control design. design. Several solutions can be adopted: adopted: resistive shunts; shunts; current transformers; transformers; LEM (Hall (Hall effect based) based ) sensors sensors. . In DC/DC converter applications applications, , resistive shunts or current transformers, transformers, if isolated sensing is required, required, are the preferred preferred, , cost costdriven choices. choices.
October 1999 Simone Buso - University of Padova - Lesson 3 2
Current Sensing
In VSIs applications (such as drives drives, , rectifiers rectifiers, , UPSs), UPSs ), the cost of three (or two if the system has only three wires) wires) Hall effect sensors is normally reasonable. reasonable . This solution greatly simplifies the design of the current control system, system , providing isolated and relatively large bandwidth ( 100 kHz) current sensing. sensing . Only simple filtering ( (high high frequency noise) noise) and level adjusting circuitry (to get A/D converter compatible voltage ranges) are normally required. required.
October 1999 Simone Buso - University of Padova - Lesson 3 3
LF
ZL
VL
Load
SVM
V* V*
PI PI
abc
Digital Control
i*
i*
Control Design
The choice of the controller ( (and and its design) design) in general depends on the particular converter load. load . It is very common that the dynamic behaviour of the load, load , in the typical frequency range of interest for current control design, design, is almost purely inductive. inductive. Possible capacitive filters (e. g. in UPS applications) applications ) normally exhibit a negligible impedance in the vicinity of the switching frequency. frequency .
October 1999 Simone Buso - University of Padova - Lesson 3 6
R E
L C
October 1999
ILoad
ILoad
L = 2 mH
50
0 3 10
10
10
10
Frequency (rad/sec)
In the area around the possible current loop cross-over frequency the inverter load is seen as almost purely inductive. The controller design can be very simple.
Control Design
The typically adopted controller structure is the proportional-integral proportional -integral (PI). The design of the controller parameters (proportional and integral gains gains) ) is straightforward in the continous time domain domain. . The discretization of the controller can be easily performed as the final step step, , according to one of the various integration methods (e.g. Euler or trapezoidal integration integration). ). There is normally no reason to consider more sofisticated approaches. approaches.
October 1999 Simone Buso - University of Padova - Lesson 3 10
Control Design
A simple procedure to design a PI regulator can be the following (continuous time domain): Set the proportional gain kp to: kp = 2 crL / Vdc to get the desired cross-over frequency cr; Set the integral gain ki to: ki = kp cr / tan(m tan(m) so as to get the desired phase margin m.
The gain of the power converter is assumed to be Vdc/2 (no PWM delay effect) and the load to be purely inductive. Transducer gains are not taken into account.
October 1999 Simone Buso - University of Padova - Lesson 3 11
Control Design
It is important to take into account, account, even at this early stage of the design, design, that the final controller is going to be digitally implemented. implemented. In particular, the delay of the sample and hold ( T/2, where T is the sampling period) period) must be considered designing the continuous time controller. controller . The required phase margin has to be oversized to cope with such delay. delay . A rule of thumb is to increase m by at least 20 (for a control cross crossover frequency about a decade lower than the sampling one). one).
October 1999 Simone Buso - University of Padova - Lesson 3 12
Control Design
Bode Diagrams 50
-50
-100 -50
-100
-150
-200 1 03
1 04 Frequency (rad/sec)
1 05
1 06
Open loop gain for the considered example with the suggested design. Almost the same crossover frequency and phase margin is achieved.
Control Design
Step Response 1.4 1.2
1 Amplitude
0.8
0.6
0.4
0.2
0.5
1 Time (sec.)
1.5
2.5 x 10
-3
Closed loop step response for the considered example with the suggested design. Almost the same performance is achieved in the three cases.
14
Control Design
The continuous time controller must be turned into an equivalent dicrete time controller controller; ; This can be easily done by substituting continuous integrators with discrete ones, ones, according to any discrete time integration method; method ; Using Eulers integration method, method , this is equivalent to set set: : s = (1-z-1)/T T = sampling period, period,
Control Design
In the case of a PI controller controller, , this is equivalent to the following block diagram: diagram :
kp ki
+ +
i z-1
+ +
Control Design
The block diagram directly leads to the following implementation of the digital PI regulator: regulator : y(k) = kpu(k) i(k) = i(k-1) + kiu(k) y(k) = y(k) + i(k) which normally requires only a few clock cycles to be calculated (2 products and 2 sums). sums ).
October 1999 Simone Buso - University of Padova - Lesson 3 17
Control Design
It is important to notice that this procedure is approximated. approximated . The discretization process warps the frequency response of the controller, controller , especially for frequencies which are close to the sampling frequency. frequency. As a rule of thumb, thumb, at least a decade must be taken between the sampling frequency and the highest frequency of interest ( (normally normally the loop crosscross -over frequency). frequency). If the specs require a less conservative design, design , different synthesis strategies ought to be considered. considered .
October 1999 Simone Buso - University of Padova - Lesson 3 18
Switching Frequency / Sampling Frequency Sampled Current Current Vdc/2 -Vdc/2 Voltage t
No synchronization
October 1999
Synchronized sampling
21
Control Design
Continuos time synthesis and successive discretization is a simple simple, , but approximate, approximate, procedure, procedure , requiring particular caution in the design of the closed loop bandwidth. bandwidth. In general, the design is more conservative than direct digital design design. . Sampling frequency does not need to be much higher than the switching frequency: frequency: practically the former is set equal to or twice the latter. latter. It is fundamental that sampling and switching are synchronized to avoid aliasing errors. errors.
October 1999 Simone Buso - University of Padova - Lesson 3 22
Control Design
Time domain simulation with PWM modulation
30
20
10
-10
-20
-30
3.5
4.5
5.5
6.5
7.5 x 10
8
-3
The controllers response is good but some overshoot is visible at the end of saturated mode of operation. This can be improved by anti wind-up implementation.
23
October 1999
Control Design
The overshoot is due to the integral part of the controller, controller , which gets overcharged overcharged during the saturated mode of operation. operation . This has no relation with the open loop phase margin. margin. As a consequence consequence, , a negative error will be needed to remove the accumulated positive error. This generates the overshoot. overshoot. A good solution to this problem is the soso- called anti windwind-up action. action. This basically consists in the dynamic saturation of the integral part of the controller. controller.
October 1999 Simone Buso - University of Padova - Lesson 3 24
z-1
Modified PI y controller with anti + wind-up action. + i The control now is non-linear. Note the position of the saturation function.
Control Design
Time domain simulation with PWM modulation
30
20
10
-10
-20
-30
The controllers response is now free of overshoot. The control action is purely proportional until saturation is over.
3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 x 10 8
-3
October 1999
26
Implementation Example
In the following, an implementation example will be given with a fixed point DSP. The employed system is the so-called VeCon system manufactured, but not sold on the market, by a consortium of european companies, such as Siemens and ABB. In the early 90s, when this system first became available, it represented the first DSP system specifically designed for power converters control tasks.
October 1999 Simone Buso - University of Padova - Lesson 3 29
Implementation Example
C165 C Dual Port RAM VeCon Peripherals Interface Digital Chip Interface Analog Chip VeCon DSP
XBUS
VeCon System
Implementation Example
C165 microcontroller microcontroller: : 16-bit CPU with extended instruction set (compared to 80C166) 16 Mbyte address space 2 kbyte RAM 32 interrupt sources (8 @ 50ns sampling rate) 8 peripheral event controllers asynchronous\synchronous interfaces
October 1999 Simone Buso - University of Padova - Lesson 3 31
Implementation Example
VeCon DSP: 20 MHz clock ALU with three 32-bit registers for arithmetic operations 16*16 bit multiplier for signed fractional multiplication (MACL: 100ns) 1024 24-bit locations internal program memory two data memories each with 128 16-bit locations
October 1999 Simone Buso - University of Padova - Lesson 3 32
Implementation Example
Peripheral Units: Position sensor evaluation Inverter triggering (PWM) Interface to Analog Chip Synchronous serial interface
October 1999
33
Implementation Example
The analog ASIC includes: 3 12-bit 10 s A/D converters each with 4 multiplexed inputs 7 comparators to check input signals sign 4 hysteresis comparators to check overcurrent condition 6-bit D/A converters to set overcurrent limit 4 additional sample & hold circuits
October 1999 Simone Buso - University of Padova - Lesson 3 34
Implementation Example
6 bit DAC Limit Level Sign In1 In2 In3 In4 Limit Limit Sign S/H 12 bit ADC
Out
Implementation Example
The program calculates the current references in the , reference frame. This reduces the number of accesses to the sin(x) look-up table. The current control is performed on the a, b, c reference frame and, consequently, , - a, b, c transformation is used. Two PI controllers are used to implement the current regulation (3 wires). Post processing of the duty-cycles with third harmonic injection is used to implement SVM.
October 1999 Simone Buso - University of Padova - Lesson 3 36
Implementation Example
; ; Alfa-Beta Current Reference Generation X1,INCREM ; Load increment A1,THETA ; Load current result in the ; accumulator ADD A1,X1 ; Sum THETA + INCREM and MOVE THETA,A1 ; move the result in THETA ; SIN MOVE X0,THETA TAB SINTAB,7 MOVE IA_REF,A1 MOVE A1,THETA MOVE X1,HALF ADD A1,X1 MOVE X0,A1 TAB SINTAB,7 MOVE IB_REF,A1
October 1999
MOVE MOVE
Implementation Example
; Alfa-Beta -> U,V,Z ; TRSF23 MOVE MOVE MUL X1,Y1 MOVE MOVE MUL X0,Y0 MOVE MUL X0,X1 MOVE MOVE MUL Y0,Y1 ADD -A1,X0 MOVE
October 1999
Transform
IV_REF,A1
Implementation Example
PI_U MOVE MOVE SUBL MOVE MOVE MOVE MUL ADDL LIMS LIMI MOVE MOVE MACL LIM ADDL MOVE
October 1999
; PI phase U ; ; ; ; Control input variable ; Proportional gain ; ; Proportional part OK ; Feed-forward compensation ; ; Anti wind-up for the ; integral part ; ; X1,PROPU ; INTEGU,A ; N.B. The move is executed ; before the add UREF,A1 ; end PI phase U X1,IU_ANA A1,IU_RF A1,X1 ERROR,A1 Y1,KPU X1,A1 X0,UCOMP X0,LIMPOS Y0,LIMNEG PROPU,A1 A,INTEGU Y1,KIU
Simone Buso - University of Padova - Lesson 3 39
Implementation Example
MODULA MOVE Y0,UREF MOVE Y1,VREF HAR3 MOVE Y1,A1 MOVE THIRD,Y1 ; ; Switching instants ; MOVE X0,MODE_U MOVE Y1,THIRD MOVE Y0,TMOD_1 MOVE A1,UREF MOVE X1,TMOD_2 ADD A1,Y1 PWM A1,X1 LIMU A1,Y0 MOVE TU1,A1
October 1999
; Load PWM mode ; Calculate third harmonic ; Limit to TMOD - 1 (PWM) ; Load voltage reference ; ; Load third harmonic ; Calculate instant TU1 ; Limit TU1 to TMOD_1 ; Store the result
40
References
[1] L. Rossetto Rossetto, , L. Malesani Malesani, , P. Tenti Tenti, , S. Buso Buso, , A. Pollmann: Pollmann : "Fully Digital Control of a Three Phase UPS by VeCon Integrated Controller" IEEE Industry Applications Society (IAS) Annual Meeting, Orlando Orlando, , October 8-12, 1995, pp. 2663-2669. [2] E. Kiel and W. Schumacher Schumacher, , "VeCon VeCon: : A HighPerformance Single-Chip-Servocontroller Single-Chip-Servocontroller for AC Drives", IPEC Conf Conf. . Proc Proc., ., 1995, pp. 1284-1289.
October 1999
41