Three Phase IGBT Inverter in PSPICE Problem

Discussion in 'Programmer's Corner' started by marvin90, Jun 26, 2013.

  1. marvin90

    Thread Starter New Member

    Jun 26, 2013
    1
    0
    Hi all. That's my first post on your 4um, so please be placable. I've got a problem with my project of three phase voltage inverter in PSPICE (text mode).My task is to create model (of inverter) with PI regulator (made of resistor,capacitor and Zener Diode), which will stabilize output voltage (by changing "dead time" of IGBT's) in time periods:
    0<t<1s - Vout = 200V
    1s<t<2s - Vout = 100V
    t>2s - Vout=200V

    Inverter is feeding by 500V DC source and it's loaded by star connected RL receiver - R=8 Ohm, L=15mH, f0 = 50Hz.

    Till now, I wrote model of inverter and a PI regulator separately and it works fine. My problem is, that I don't know how to connect this two pieces to get my result :). Can you have a look at my problem ?
    Code of my program:

    THREE PHASE INVERTER

    .PARAM Uz=500
    .PARAM Rz=100m
    .PARAM CDC=100u
    ID 15 13
    .PARAM Ugmin=-15
    .PARAM Ugmax=15
    .PARAM fpi=1k
    .PARAM Am=0.98
    .PARAM fo=50

    .PARAM Iom=10
    .PARAM del_i=1

    .PARAM Ro=8
    .PARAM Lo=15m


    * Parameters 2
    * -----------------------------
    .PARAM omo={2*pi*fo}
    .PARAM fio={2*pi/3}
    .PARAM pi=3.1415926535898

    *-------------------------------------------------------------------------

    .TRAN 10u 40m 0 10u UIC
    .FOUR 50 100 V(4,5) V(4) I(Ro1)
    .OPTIONS itl4=200 reltol=0.03

    * Plots
    * -------------------------
    .PROBE V(100) V(101) V(102) V(103) V(104) V(105) V(106) V(4) V(5) V(6) V(16,14) V(13,14)
    + I(Rzas) I(VDC) I(Ro1) I(Ro2) I(Ro3) V(17,4) I(Sp1) I(Dzp1)

    *---------------------------------------------------------------------------
    .MODEL IGBT VSWITCH ROFF=1k RON=100u VOFF={Ugmin} VON={Ugmax}
    .MODEL diode D BV=2k RS=2m
    *---------------------------------------------------------------------------
    * SUPPLY
    * ---------
    Vzas 16 14 {Uz}
    Rzas 16 15 {Rz}
    Dzas 15 13 dioda

    CDC 13 14 {CDC} IC={Uz}
    VDC 13 17

    * Control
    * ----------------------------------------
    VUz 300 0 pwl( 0 {Am}
    + 0.6 {Am}
    + 1.6 {Am}
    + 2.2 {Am} )

    Ifz 0 301 pwl( 0 {fo/50}
    + 0.6 {fo/50}
    + 1.6 {fo/50}
    + 2.2 {fo/50} )

    Cfz 301 0 {1/(2*pi)}
    Rfz 301 0 1e12

    Vfi 100 0 pulse( -1 1 {0} {(0.5-0.5m)/fpi} {(0.5-0.5m)/fpi} {1m/fpi} {1/fpi} )

    Eo1 101 0 VALUE {V(300)*sin(fo*V(301))}
    Eo2 102 0 VALUE {V(300)*sin(fo*V(301)-fio)}
    Eo3 103 0 VALUE {V(300)*sin(fo*V(301)+fio)}

    Em1 104 0 VALUE {Ugmax*sgn(Iom*sin(omo*TIME)-I(Vo1)+del_i*V(104)/Ugmax)}
    Em2 105 0 VALUE {Ugmax*sgn(Iom*sin(omo*TIME-fio)-I(Vo2)+del_i*V(105)/Ugmax)}
    Em3 106 0 VALUE {Ugmax*sgn(Iom*sin(omo*TIME+fio)-I(Vo3)+del_i*V(106)/Ugmax)}

    * Inverter model
    * ----------------------
    Sp1 17 7 104 0 IGBT
    Sp2 17 9 105 0 IGBT
    Sp3 17 11 106 0 IGBT
    Sp4 4 8 0 104 IGBT
    Sp5 5 10 0 105 IGBT
    Sp6 6 12 0 106 IGBT

    Dp1 7 4 diode
    Dp2 9 5 diode
    Dp3 11 6 diode
    Dp4 8 14 diode
    Dp5 10 14 diode
    Dp6 12 14 diode

    Dzp1 4 17 diode
    Dzp2 5 17 diode
    Dzp3 6 17 diode
    Dzp4 14 4 diode
    Dzp5 14 5 diode
    Dzp6 14 6 diode

    * RL Receiver
    * ------------
    Vo1 1 0
    Vo2 2 0
    Vo3 3 0

    Ro1 31 1 {Ro}
    Ro2 32 2 {Ro}
    Ro3 33 3 {Ro}

    Lo1 4 31 {Lo}
    Lo2 5 32 {Lo}
    Lo3 6 33 {Lo}
    .END


    PI regulator:

    Regulator pi

    .PARAM Kp=0.000001
    .PARAM Ti=0.5

    .TRAN 1m 1 0 1m UIC
    .PROBE

    .MODEL zener D BV=100

    Ieps 0 1 pwl( 0 0
    + 0.2 0
    + 0.201 100 )

    * ------------------------
    Rp 1 2 {Kp}
    Ci 2 0 {Ti}
    Dza 0 1 zener
    .END
     
Loading...