Professional Documents
Culture Documents
Abstract: To design a high reliability multilevel grid-connected inverter, a high performance simulation methodology based on
Saber is proposed. The simulation methodology with optimized simulation speed can simulate the factors that have significant
impacts on the stability and performance of the control system, such as digital delay, dead band, and the quantization error. The
control algorithm in the simulation methodology is implemented using the C language, which facilitates the future porting to an
actual system since most actual digital controllers are programmed in the C language. The modeling of the control system is
focused mainly on diode-clamped three-level grid-connected inverters, and simulations for other topologies can be easily built
based on this simulation. An example of designing a proportional-resonant (PR) controller with the aid of the simulation is in-
troduced. The integer scaling effect in fixed-point digital signal processors (DSPs) on the control system is demonstrated and the
performance of the controller is validated through experiments.
Key words: Multilevel grid-connected inverter, Simulation methodology, Proportional-resonant (PR) controller
doi:10.1631/jzus.C1100315 Document code: A CLC number: TM464
proposed theory, they still have the following short- Numerical simulation technology and the reli-
comings. First, the simulation results are not accurate ability of software simulation have been analyzed by
enough. The simulation is based on the assumption of Nichols et al. (1993). Saber is professional power
an ideal environment, and does not consider such electronic circuit simulation software produced by the
factors that have great impacts on control perform- Synopsys Company. It not only has the basic func-
ance, including dead-band effect, quantization error, tions for circuit simulation but also has a user-friendly
and digital delay. Simulation parameters are difficult modeling language (Chwirka, 2000).
to use directly in the experiment. Second, the control
algorithms take much effort to be ported to an actual
system. Most experimental control chips are pro- 2 Simulation design
grammed in the C language, while most simulations
are built with library modules. When we port simula- The system structure of a three-phase three-level
tion algorithms to experimental control chips, exten- grid-connected inverter is shown in Fig. 1. The input
sive modification is needed and some of the algo-
of the system is connected to DC voltage and the
rithms may not be implemented. Third, the simulation
output of the system is connected to the grid. The
speed is not optimized, and thus the simulation proc-
nonlinear devices in the main circuit are 12 insulated
ess may take much time as the topology and control
gate bipolar transistors (IGBTs) and 6 clamping di-
systems of multilevel grid-connected inverters are
odes. The linear devices in the main circuit are an
very complex.
To overcome these shortcomings, a high per- inductor-capacitor-inductor (LCL) filter and DC link
formance simulation methodology based on Saber is capacitors. The control system first samples inverter-
proposed in this paper. The operational state of an side inductor currents, grid voltage, and DC capacitor
actual system is simulated and the simulation results voltages, and then generates 12 pulse-width modu-
are more convincing. The variable types, logical lated (PWM) output signals through a complex
processes, and algorithms are exactly the same as arithmetic operation. In this paper, the method for
those in a digital signal processor (DSP). Note that the controlling the three-level grid-connected inverter is
information and numerical accuracy provided by the space vector pulse width modulation (SVPWM),
simulation are closely related to research purposes. which can increase DC voltage utilization and easily
This paper focuses on the control algorithm of multi- fulfill neutral-point potential balancing.
level grid-connected inverters and the target is to In stationary coordinate systems, the current
make minimal modifications when porting the algo- control block diagram is shown in Fig. 2. Supposing
rithm to an actual system. that the system controller Gc(s) is a PR controller, if
Vαs
iref + + 1 + 1 − 1 iαg
Gc(s) K +Rf
iαs sLf1 sCf + sLf2 Fig. 2 Block diagram of current
− − −
control in a stationary frame
546 Wang et al. / J Zhejiang Univ-Sci C (Comput & Electron) 2012 13(7):544-551
we apply the control parameters calculated according 3. Simulation speed should be optimized to im-
to Fig. 2 to an actual system, the proposed controller prove efficiency, and various parameters and control
is likely to fail since the system model is so inaccurate algorithms can be tested.
that it can be used only for theoretical analysis. For
2.2 Modeling main circuit devices
example, delay from sampling to PWM output is not
considered, dead-band effect is not included, and In the main circuit, there are IGBTs, clamping
effect of the quantization error on control perform- diodes, DC link capacitors, and an LCL filter. The DC
ance is not taken into account. In fact, the delay from link capacitors and the LCL filter are linear devices
data sampling to DSP output may have a maximum of while the IGBTs and the clamping diodes are nonli-
one switching cycle, and a stable system may become near devices. It is easy to design simulation parame-
unstable due to this delay (Nussbaumer et al., 2005). ters of a linear device, which can just be the same as in
In addition, feedback control cannot suppress the an actual system. However, when designing simula-
noise in the feedback circuit, so the feedback circuit tion parameters of a nonlinear device, the actual pa-
usually contains a low-pass filter, which will limit the rameters, simulation speed, and simulation conver-
bandwidth of the control system. Most importantly, gence should be taken into account. Simulation
although the digital control method commonly used software finds the values of the analog circuit network
in three-level inverters improves control flexibility, it through an iterative method, so if it always takes a
brings quantization errors, which makes it difficult to long time for the results to converge or if the analog
establish an accurate mathematical model. In simula- circuit network is very complex, the simulation speed
tion, if the data type and its memory size are the same will be very slow. IGBT is a sophisticated semicon-
as in an actual system, the effect of the quantization ductor device whose accurate modeling is not only
error can be simulated accurately. In short, for such a complex but also unnecessary. In terms of dead-band
complex system as a three-level inverter, it is difficult effects, the rising time and falling time play an im-
to design control programs exactly the same as in portant role, and in terms of turning on and turning off
actual systems by only theoretical analysis; however, of each IGBT, the forward voltage and on resistance
the high performance simulation methodology pro- have a significant impact. Therefore, we choose an
posed in this paper could solve all the above ideal power switch and two power diodes supplied by
problems. the Saber library to simulate an IGBT. The ideal
power switch can be seen as a variable resistor which
2.1 Design principles
can be used to set rising time and falling time. Using
The following principles are used in designing the devices supplied by the Saber library has the ad-
the simulation: vantage of reducing the possibility of non-convergence
1. Considering as many factors affecting control because the library components have been tested and
performance as possible, the first priority in system optimized by Saber. Parameters and interconnections
simulation is providing accurate and necessary in- of the ideal power switch and power diodes are shown
formation to designers. For hardware designers, it is in Fig. 3.
necessary to implement circuit level simulation ac-
curately. For software designers, various control al-
gorithms should be easily implemented and all factors
having significant impacts on control performance
should be considered.
2. Control algorithms can be easily ported to an
actual system. Currently, the DSP in three-level
grid-connected inverters is programmed mainly in the
C or C++ language. Thus, it would be very simple to
port if the control algorithm in simulations is imple- Fig. 3 Model diagram of an insulated gate bipolar
mented using the same language as in DSP. transistor (IGBT)
Wang et al. / J Zhejiang Univ-Sci C (Comput & Electron) 2012 13(7):544-551 547
2.3 Modeling the control system foreign C subroutine. The foreign C subroutine first
records the current simulation time and the signals
In an actual DSP control system for a three-level
passed by the MAST module, then runs the core al-
grid-connected inverter, the core algorithm is im-
gorithm, and finally returns calculation results to the
plemented in interrupt routine to meet the require-
MAST module. After receiving the results, the MAST
ments of real-time control. As shown in Fig. 4, the
module updates output pins after a delay of one
first step of data processing is signal sampling (the
switching period. To facilitate the study on advanced
sampling data may require filtering due to the noise in
control methods, the simulation methodology also
the sampling circuit), then running the core algorithm,
provides an offline debugging function. During off-
and finally setting output registers according to the
line debugging, the debugging routine running in the
results.
VC++ environment first reads the log file, and then
Interrupt passes the parameters to a foreign C subroutine in the
same way as in the Saber simulator. Then we can use
many debugging methods in the VC++ environment,
7 such as run free, step debugging, and run to
Sampling Filtering Algorithm Set registers
breakpoints.
3 Example: PR controller First, a0, a1, a2, b0, b1, b2 are expressed by
floating type numbers. A group of control parameters
The widely used method for controlling the in- that has a better control performance than others is
verter is transforming inductor currents to a syn- obtained by varying-parameter sweep simulation in
chronous frame in which the control variables are DC Saber, that is ωc=5, KR=150, KP=1.2. Then, the G(z)
signals. As a consequence, zero steady-state error coefficients, which are floating type numbers, are
control can be achieved with a simple proportional- transformed to integers in fixed-point DSP. An integer
integral (PI) controller. However, the DC currents in type number is yielded by left shifting n bits of a
the synchronous frame are cross-coupling and exact floating type number. However, when expressing
decoupling is difficult to realize. In the stationary floating type numbers with integers, we will en-
frame, there is no coupling between αβ axes, but the counter a lot of quantization errors during scaling and
αβ currents are sine waves and the steady-state error calculating. As the effects of quantization errors on
cannot be eliminated by a PI controller. Another type control performance are difficult to model, it is dif-
of controller, the PR controller, has gained large ficult to choose a proper left shift number n with
popularity in recent years due to its capability of theoretical analysis. In our simulation methodology,
eliminating the steady-state error in a stationary frame. we use a short integer to define a 16-bit integer vari-
Since a PR controller performs an extremely narrow able, and a long integer to define a 32-bit integer
band around its resonant frequency, the widely used variable. Since data type and its memory size are the
form is the quasi-PR controller (Teodorescu et al., same as in the actual system, the quantization error is
2006). The transfer function of the quasi-PR con- exactly simulated. Grid currents of phase A are shown
troller is in Fig. 7 when the left shift number equals 8, 9, 10 or
11. When n<10, the phase and amplitude of output
2 K R c s currents are out of control; when n=10, the output sine
GPR ( s ) K P , (1) wave current is satisfactory; and when n>10, the
s 2c s 02
2
output waveform has no significant changes in com-
parison with n=10.
where KP, KR, and ωc are control parameters, and ω0 is The simulation runs on a Samsung computer of
the nominal angular frequency of the grid. The dis- type R458, which has a 2 GHz dual core CPU and
cretization form of Eq. (1) is given by 2 GB RAM. The operating system is Windows XP
Wang et al. / J Zhejiang Univ-Sci C (Comput & Electron) 2012 13(7):544-551 549
n=8
n=9
−20
−40
0 20 40 60
t (ms)
I (10 A/div)
ology proposed in this paper can be seen as a simple
and effective tool for controlling multi-level grid-
connected inverters. With this simulation methodol-
ogy, researchers will find it more convenient to study
multi-level grid-connected inverters.
References
t (5 ms/div) Alepuz, S., Busquets-Monge, S., Bordonau, J., Gago, J.,
Gonzalez, D., Balcells, J., 2006. Interfacing renewable
Fig. 9 Steady state of phase A current and voltage energy sources to the utility grid using a three-level in-
verter. IEEE Trans. Ind. Electron., 53(5):1504-1511.
[doi:10.1109/TIE.2006.882021]
Grid Bao, W.B., Bao, J.Y., 2010. Modeling and Simulation of
voltage Grid
current Multilevel Current Source Inverter Based on SIMetrix/
SIMPLIS. Int. Conf. on Computer Application and Sys-
tem Modeling, p.466-470. [doi:10.1109/ICCASM.2010.
5620416]
U (100 V/div)
I (10 A/div)
Rabinovici, R., Baimel, D., Tomasik, J., Zuckerberger, A., level Inverters. 26th IEEE Applied Power Electronics
2010. Series space vector modulation for multi-level Conf. and Exposition, p.1629-1633. [doi:10.1109/APEC.
cascaded H-bridge inverters. IET Power Electron., 3(6): 2011.5744813]
843-857. [doi:10.1049/iet-pel.2009.0220] Tehrani, K.A., Rasoanarivo, I., Barrandon, L., Hamzaoui, M.,
Rodriguez, J., Bernet, S., Steimer, P.K., Lizama, I.E., 2010. A Sargos, F.M., Rafiei, M., 2010. A New Current Control
survey on neutral-point-clamped inverters. IEEE Tran. Using Two Hysteresis Modulation for a New 3-Level
Ind. Electron., 57(7):2219-2230. [doi:10.1109/TIE.2009. Inverter. 12th Int. Conf. on Optimization of Electrical and
2032430]
Electronic Equipment, p.652-658. [doi:10.1109/OPTIM.
Selvaraj, J., Rahim, N.A., 2009. Multilevel inverter for grid-
2010.5510355]
connected PV system employing digital PI controller.
Teodorescu, R., Blaabjerg, F., Liserre, M., Loh, P.C., 2006.
IEEE Trans. Ind. Electron., 56(1):149-158. [doi:10.1109/
TIE.2008.928116] Proportional-resonant controllers and filters for grid-
Sepahvand, H., Ferdowsi, M., Corzine, K.A., 2011. Fault connected voltage-source converters. IEE Proc. Electr.
Recovery Strategy for Hybrid Cascaded H-Bridge Multi- Power Appl., 153(5):750-762.