Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of high-frequency PWM commutation inversion integrated apparatus and control method thereof that can realize the electric energy two-way flow.
Apparatus of the present invention comprise main circuit unit, driving and power amplification unit, PWM control unit, central control unit, human and machine interface unit (HMI), voltage current transformer, electric parameter measurement unit, power subsystem composition.Wherein, main circuit unit comprises device for power switching IGBT, inverse parallel diode, absorber and DC filter capacitors; The PWM control unit comprises digital signal processor (DSP), programmable logic device (CPLD) and RS485 interface circuit, wherein includes the burst pulse limiting module among the CPLD, is used for fault is handled; Central control unit comprises programmable logic controller (PLC) (PLC) unit.
Main circuit unit links to each other with voltage current transformer, driving and power amplification unit; Drive and link to each other with the PWM control unit with power subsystem respectively with power amplification unit; The PWM control unit links to each other with central control unit with power subsystem respectively; Central control unit links to each other with human and machine interface unit (HMI) with the electric parameter measurement unit respectively.
Principle: in the electrokinetic process of permanent magnet synchronous machine, this device is operated in inverter mode, and dc inverter is become alternating current, drives micro fuel engine and starts operation; In the power generation process of permanent magnet synchronous machine, this device is operated in rectification state, and alternating current is reverse into direct current, uses for the user.
A kind of control method of high-frequency PWM commutation inversion integrated apparatus realizes in dsp processor, as shown in Figure 6, may further comprise the steps:
Step 1. starter motor also quickens;
The transmitting supervisory tach signal is given central control unit during step 2.10Hz, and wherein 10Hz is the inverter output frequency;
Whether step 3. detects motor and starts, if start then execution in step 4, otherwise execution in step 1;
The work of step 4. inverter pattern;
Whether step 5. judges rotating speed greater than 36000RPM, if be not more than then execution in step 4, otherwise execution in step 6;
The work of step 6. rectifier pattern;
Step 7. finishes.
The control method of described a kind of high-frequency PWM commutation inversion integrated apparatus, the inverter pattern work described in the step 4, as shown in Figure 7, step is as follows:
Step 1. beginning;
Step 2. judges whether starting command arrives, if arrive then execution in step 3, otherwise execution in step 2;
Step 3. inverter mode of operation: call the SVPWM algorithm;
Step 4. motor raising speed;
Step 5. judges whether to reach 600Hz, if reach then execution in step 6, otherwise execution in step 4, wherein 600Hz is the inverter output frequency;
The control of step 6. inverter constant speed;
Step 7. judges to cease and desist order whether arrive, if arrive then execution in step 8, otherwise execution in step 6;
Step 8. motor reduction of speed;
Step 9. judges whether to arrive to shut down changes, if reach then execution in step 10, otherwise execution in step 8;
Step 10. is shut down envelope pulse subroutine, execution in step 2.
Spatial vector pulse width modulation algorithm SVPWM algorithm described in the step 3 in the control method of inverter mode of operation work, as shown in Figure 8, step is as follows:
Step 1. beginning;
Step 2. pair AD sampling is handled;
Step 3. false judgment and processing;
Step 4. receives the set point of central control unit by SCI;
Step 5. is regularly uploaded sampled value;
Step 6. has judged whether interruption, if having then execution in step 7, otherwise execution in step 2;
Step 7. is removed and is interrupted indicating;
Step 8. is according to the parameters such as form of current frequency configuration SVPWM;
Step 9. is calculated S
a, S
b, S
c
Step 10. is called pwm pulse control method and burst pulse method for limiting;
Step 11. finishes.
The control method of described a kind of high-frequency PWM commutation inversion integrated apparatus, rectifier pattern work in the step 6, as shown in Figure 9, step is as follows:
Step 1.PWM Interrupt Process;
Step 2. is interrupted protection;
Step 3. is removed interrupt identification;
Step 4. direct voltage trace routine;
The sampling of step 5. alternating current side, synchronization signal detection is sampled, and calls the acquisition method of analogue data amount;
Step 6. filtering and data processing are called the filtering method of analogue data amount;
Whether step 7. judges motor speed greater than 36000RPM, if greater than execution in step 8, otherwise execution in step 11;
Step 8. rectifier mode of operation: transfer sliding moding structure direct Power Control algorithm;
Step 9. is called pwm pulse control method and burst pulse method for limiting;
Step 10. program pointer adds 1;
Step 11. is returned.
The described accent sliding moding structure of step 8 direct Power Control algorithm in the work of rectifier mode of operation, as shown in Figure 10, step is as follows:
Step 1. beginning;
Step 2. is called the filtering method (electric current and voltage) of analogue data amount;
Step 3. is carried out abc to a β transformation calculations θ angle, and wherein θ represents the phase angle of voltage;
Step 4, calculating instantaneous power P and Q, the rated output factor;
Step 5. receives the set point reactive power set-point Q of central control unit by SCI
*=0, calculate active power set-point P
*: P
*=Ck
2(V
Dc * 2-V
Dc 2)+V
Dc* I
0, V wherein
Dc *Be meant rectification side dc voltage set-point, V
DcRectification side dc voltage actual value;
Step 6, timing are uploaded voltage, electric current, power, power factor to central control unit;
Step 7, judged whether interruption, then execution in step 7 has been arranged; Otherwise execution in step 2;
Step 8, removing are interrupted indicating;
Step 9. is according to P, Q, P
*, Q
*, the θ angle, the compute switch function S
pWith switch function S
qValue;
Step 10, compute switch function S
a, S
b, S
c
Step 11, call PWM and generate control method;
Step 12, end.
Switch function Sa, Sb, Sc in the described accent sliding moding structure direct Power Control method step 10 are defined as follows:
S
a=1 o'clock, power tube T in the accompanying drawing 1
1Connect T
4Turn-off.S
a=0 o'clock, power tube T in the accompanying drawing 1
1Turn-off T
4Connect.
S
b=1 o'clock, power tube T in the accompanying drawing 1
3Connect T
6Turn-off.S
b=0 o'clock, power tube T in the accompanying drawing 1
3Turn-off T
6Connect.
S
c=1 o'clock, power tube T in the accompanying drawing 1
5Connect T
2Turn-off.S
c=0 o'clock, power tube T in the accompanying drawing 1
5Turn-off T
2Connect.
(S
aS
bS
c) have 8 kinds of vectors: 000,111,100,110,010,011,001,101.
The universal control method of inversion and switching process comprises that acquisition method, the filtering method of analogue data amount, the pwm pulse of analogue data amount generate control method, DSP initial method, system initialization and self check control method, burst pulse method for limiting.
The acquisition method of analogue data amount as shown in Figure 11, step is as follows:
Step 1.AD handling procedure;
Step 2. judges whether to take place AD and interrupts, if take place then execution in step 3, if do not have then execution in step 7;
The clear AD interrupt identification of step 3.;
Step 4. pair sampled result is carried out Filtering Processing;
Step 5. sampling buffer data are carried out the one-period time-delay;
Step 6. is converted to actual value with filter value;
Step 7. is returned;
The filtering method of analogue data amount as shown in Figure 12, step is as follows:
The step 1.AD interruption of sampling;
Step 2. is put AD and is interrupted indicating;
Step 3. copies to the value of sampled result register in the buffering area;
Step 4. is carried out+1 operation and is refreshed in the internal clocking unit during pair with the 20K speedometer;
Step 5. sorting unit that resets, AD starts to prepare next time;
Step 6. is recovered environmental variance;
Step 7. is returned.
Pwm pulse generates control method as shown in Figure 13, and step is as follows:
Step 1. calculates 0;
Step 2. is determined sector number;
Step 3. is calculated pwm pulse time T 1 and T2;
Step 4. is provided with CMPR1, CMPR2, CMPR3;
Step 5. finishes.
DSP initialization flow process as shown in Figure 14, step is as follows:
Step 1. system initialization and self check subprogram;
The initialization of step 2. system clock;
Step 3. time-delay started the main circuit relay after one minute;
Step 4.AD sampling and filtering subprogram;
The initialization of step 5. digital I;
Step 6. is caught the CAPTURE initialization, promptly is to its next step initialization;
Step 7. electrical network phase acquisition, computation of Period and protection;
Step 8. timer and the initialization of PWM generating unit;
Step 9. is interrupted initialization;
Step 10. overall situation is opened interruption;
Step 11. is called rectification, inversion operating mode control method.
System initialization and self check flow process as shown in Figure 15, step is as follows:
Step 1. defconstant, variable;
Step 2. is provided with interruption, sub-interrupt vector table;
Step 3. initialization of register;
Step 4, Installed System Memory self check;
Step 5.I/O port initialization;
The initialization of step 6. task manager;
Step 7.ADC initialization;
Step 8.SCI initialization;
Step 9. finishes.
In system, the major function of CPLD is that fault is handled, and burst pulse restriction and last PWM waveform generation be not because special-purpose drive plate possesses the function of burst pulse restriction, so in hardware designs, the burst pulse limiting element should be arranged.
The determination methods of burst pulse: in the half switch periods instruction in the right side of calculating gained waveform, the action time of two vectors about judgement.As long as less than Tnarrow (burst pulse clock cycle), just there is burst pulse in one of them.
The removing method of burst pulse: when burst pulse produces, adopted 3 kinds of ways that it is eliminated successively, mainly as follows:
(a) if zero vector action time greater than 4Tnarrow, zero vector and rearranging then.
(b) if waveform opposite side vector action time greater than 2Tnarrow, then to opposite side travelling backwards Tnarrow.
(c) if reference vector drops on the overlapping region, then select another zone as with reference to the zone under the vector, then adopt above-mentioned a again, the method for b is carried out the elimination of burst pulse.
Burst pulse limits flow process as shown in Figure 16, and step is as follows:
Step 1, timer zero clearing;
Step 2, judge whether input is high, if be height then execution in step 3, otherwise execution in step 7;
Step 3, timer add 1;
Step 4, judge whether to reach binding hours, if reach then execution in step 5, if do not reach then execution in step 6;
Step 5, output high level;
Step 6, output low level are returned step 2;
Step 7, timer subtract 1;
Step 8, judge whether counter is 0, if be 0 then execution in step 9, otherwise execution in step 10;
Step 9, output low level;
Step 10, output high level return step 2.
Technique effect: this high-frequency impulse modulation (PWM) commutation inversion integrated apparatus can be reverse into the direct current in the energy storage original paper alternating current and provide starting current for the high-speed permanent magnetic synchronous generator in the start-up course of the magneto alternator that is driven by micro fuel engine, and the high-frequency alternating current conversion direct current that when the high-speed permanent magnetic synchronous generator enters steady operation, the high-speed permanent magnetic synchronous generator can be produced, really make energy realize two-way flow, promptly realize the electric energy green conversion.Adopt sliding moding structure direct Power Control method, can respond the conversion of input fast, and insensitive to parameter transformation and disturbance, have good robustness, and physics is made simpler.
Embodiment
Apparatus of the present invention system architecture diagram as shown in Figure 1.Form by main circuit unit, driving and power amplification unit, pulse modulation unit (PWM), central control unit, human and machine interface unit (HMI), voltage current transformer, electric parameter measurement unit, power subsystem.Wherein, main circuit unit comprises device for power switching IGBT, inverse parallel diode, absorber and DC filter capacitors; The PWM control unit comprises digital signal processor (DSP), programmable logic device (CPLD), RS485 interface circuit; Central control unit comprises programmable logic controller (PLC) (PLC).
Main circuit unit links to each other with voltage current transformer, driving and power amplification unit; Drive and link to each other with the PWM control unit with power subsystem respectively with power amplification unit; The PWM control unit links to each other with central control unit with power subsystem respectively; Central control unit links to each other with human and machine interface unit HMI with the electric parameter measurement unit respectively.
One embodiment of the present of invention adopt the LT308-S7 current sensor of Beijing lime (LEM) company, (LEM) AV100-2000 voltage sensor of selecting for use Beijing lime company to produce; The multi-functional 53U-1211-AD4 voltameter of disk-installed type that the electric parameter measurement unit adopts Japanese Ai Mo company (MSYSTEM) to produce; Central control unit adopts the FX of the production of MIT
2N-32MR chip; Digital signal processor in the PWM control unit (DSP) is selected the TMS320F2812A chip of Texas Instrument, and programmable logic device (CPLD) is selected the EPM570T100 chip of ALTERA company; Driving and power amplification unit adopt the standard drive plate SKHI23/17 that selects the IGBT that is produced by German Xi Menkang (SEMIKRON) company for use; Power subsystem adopts Switching Power Supply; Man-machine interface (HMI) unit adopts the touch-screen PWS6AOOT-P of Hai Tai company.
Wherein, accompanying drawing 2 is an alternating current sample circuit schematic diagram.Ac-side current links to each other with the output of LT308-S7 current sensor, the AC side phase current test side of the alternating current sampling circuit in the output of LT308-S7 current sensor and the PWM control unit links to each other, and alternating current is exported from the Ia-ADC pin through alternating current sampling circuit.
Accompanying drawing 3 is an alternating voltage sample circuit schematic diagram.AC side voltage links to each other with the output of AV100-2000 voltage sensor, the AC side phase voltage test side of the alternating current sampling circuit in the output of AV100-2000 voltage sensor and the PWM control unit links to each other, and alternating voltage is exported from the Ua-ADC pin through the alternating voltage sample circuit.
Accompanying drawing 4 is a voltage and current sample circuit schematic diagram.Wherein, the direct voltage test side of the circuit of direct voltage sampling links to each other with main circuit unit.
Accompanying drawing 5 is the circuit connection diagram of DSP, CPLD and EPM570T100.The AC side that present embodiment adopts adopts three-phase alternating current, comprises 3 road alternating current sample circuits, 3 road alternating voltage sample circuits and 1 road direct voltage sample circuit in the pulse modulation control unit (PWM).Being respectively of three road alternating current sample circuits wherein: alternating current sampling circuit 1, alternating current sampling circuit 2 and alternating current sampling circuit 3; 3 road alternating voltage sample circuits are respectively: alternating voltage sample circuit 1, alternating voltage sample circuit 2 and alternating voltage sample circuit 3.
The Ia-ADC pin of the Ia-ADC pin alternating current sampling circuit 1 of TMS320F2812A chip links to each other; The Ia-ADC pin of the Ib-ADC pin alternating current sampling circuit 2 of TMS320F2812A chip links to each other; The Ia-ADC pin of the Ic-ADC pin alternating current sampling circuit 3 of TMS320F2812A chip links to each other; The Idc-ADC pin of the Idc-ADC pin direct current sample circuit of TMS320F2812A chip links to each other; The Udc-ADC pin of the Udc-ADC pin direct current sample circuit of TMS320F2812A chip links to each other;
The output of LT308-S7 current sensor links to each other with the input of 53U-1211-AD4 voltameter; The output of AV100-2000 voltage sensor links to each other with the input of 53U-1211-AD4 voltameter.
The RS485 interface and the FX of 53U-1211-AD4 voltameter
2NThe RS485 interface of-32MRPLC chip links to each other.
RS485 interface circuit and FX in the pulse modulation control unit (PWM)
2NThe RS485 interface of-32MRPLC chip links to each other.
The TMS320F2812A chip links to each other by DCB with the EPM570T100 chip.The data pin D0 of TMS320F2812A chip~D15 links to each other with the data pin D0~D15 of EPM570T100 chip respectively; The FULT1 of TMS320F2812A chip~FULT8 pin links to each other with the FULT1~FULT8 pin of EPM570T100 chip respectively; The PWM-A1 pin of TMS320F2812A chip links to each other with the PWM-A2 pin with the PWM-A1 pin of EPM570T100 chip respectively with the PWM-A2 pin; The PWM-B1 pin of TMS320F2812A chip links to each other with the PWM-B2 pin with the PWM-B1 pin of EPM570T100 chip respectively with the PWM-B2 pin; The PWM-C1 pin of TMS320F2812A chip links to each other with the PWM-C2 pin with the PWM-C1 pin of EPM570T100 chip respectively with the PWM-C2 pin.
The PWM-A1-Q port of EPM570T100 chip links to each other with the input port A of standard drive plate SKHI23/17; The PWM-A1-Q port of EPM570T100 chip links to each other with the input port B of standard drive plate SKHI23/17; IGBT-fault 00 port of EPM570T100 chip links to each other with the output of standard drive plate SKHI23/17.
Sliding moding structure direct Power Control block diagram when Figure 18 is the rectification of invention main circuit unit.The concrete formula of sliding moding structure Direct Power is as follows:
Symmetrical and when being sinusoidal wave, pref, qref are active power reference value and reactive power reference qref when main circuit unit AC side three, E is the AC side voltage effective value, then
By following formula as can be known, under certain alternating voltage,, definite three-phase current state is just arranged by setting active power and reactive power.Promptly control the rectification control that active power and reactive power can realize main circuit unit.
With instantaneous meritorious p, instantaneous reactive q is the power controlling models of variable.
From formula (2), power controlling models in the time of can getting the main circuit unit rectification:
Wherein, variable S
p, S
qWith state variable v
DcCoupling, u
Rd=S
pv
Dc, u
Rq=S
qv
DcWherein, E is the effective value of AC side voltage, and ω is the angular frequency of permanent magnet synchronous machine output voltage, S
XFor the two-valued function switch function under the d-q coordinate (X=d, q), v
DcBe dc voltage, L is an inductor rectifier, and C is the DC side filter capacitor, U
RdBe d axle DC voltage component, U
RqBe q axle DC voltage component.
Choosing of sliding-mode surface
Because two external control amount: v are arranged during the main circuit unit rectification
DcAnd q.According to the selection principle and the formula (3) of sliding-mode surface, we can choose sliding-mode surface and are
Q wherein
*Be the set-point of reactive power, v
Dc *Be rectification dc voltage set-point, v
DcBe the dc voltage actual value.Formula (3) is reached
Be updated in the formula (4), can get
Formula (5) is carried out further abbreviation, can get
If order
Can get
Determining of control rate
In native system, switching line has two, according to satisfying condition of broad sense sliding formwork condition, discusses respectively and how to select control rate to make two switching lines satisfy broad sense sliding formwork condition.
At first analyze the control rate of S1:
When S1>0, promptly during q*>q, satisfy broad sense sliding formwork condition and then need make
Need to increase q so that
The controlled quentity controlled variable that promptly requires to select can increase q.
When S1<0, promptly during q*<q, satisfy broad sense sliding formwork condition and then need make
Need reduce q so that
The controlled quentity controlled variable that promptly requires to select can reduce q.
In like manner can obtain the control rate of S2.
As seen from the above analysis, the fundamental nature of its control rate is that actual value will be followed set-point constantly, so that deviation reduces, this attribute can be realized with the ring control strategy that stagnates.
It is as follows that the SVPWM algorithm is derived, principle as shown in figure 19:
Wherein:
Be permanent magnet synchronous machine back-emf space vector;
Be permanent magnet synchronous machine output end voltage space vector;
Be permanent magnet synchronous machine output current space vector; i
DcBe the DC side electric current; i
LBe load current; v
DcBe dc voltage; C is the DC side filter capacitor; L is an inductor rectifier, u
NOBe the voltage between DC side N point and the motor O point; R is a stator resistance.
Space voltage vector has been described three-phase main circuit unit AC side phase voltage (u
a, u
b, u
c) spatial distribution on complex plane, S in the formula (9)
a, S
b, S
cBe three-phase unipolarity two-valued function switch function.With 2
3=8 kinds of switch function combinations promptly obtain corresponding three-phase main circuit unit AC side magnitude of voltage for people's formula (1).Three-phase main circuit unit space voltage vector
Distribution may be defined as
Formula (10) can be expressed as the switch function form, promptly
For any given three-phase fundamental voltage u
a, u
b, u
c, if consider three-phase balanced system, i.e. u
a+ u
b+ u
c=0, then can in complex plane, define space vector of voltage
6 moulds are 2v
Dc/ 3 space voltage vector is divided into six sector region I~VI with complex plane, for the voltage vector in arbitrary sector region
All can synthesize by the space voltage vector on these both sides, fan section.If
On complex plane at the uniform velocity rotation, the just corresponding three symmetrical sinusoidal quantities that obtained.In fact, because the restriction of switching frequency and vectorial combination,
Resultant vector can only be a polygon director circle track thereby make vector end points movement locus with the rotation of a certain stepping rate.Obviously, the PWM switching frequency is high more, and polygon director circle track is approaching more circle just.If
When the I district, then
Can by
With
Synthetic, according to the weber balance rule, have
Wherein, T
1And T
2Be respectively space vector
With
Action time, T
sIt is a sampling period.
Make zero vector
Duration be T
0,7, then
T
1+T
2+T
0,7=T
s (14)
Make V
*With V
1Between angle be θ, calculate by the law of sines
Again because | V
1|=| V
2|=2v
Dc/ 3, then simultaneous formula (13), (14), formula (15) are easy to get
In the formula, the m-SVPWM index of modulation, and
For the selection of zero vector, main consideration is selected
Or
It is the least possible that on off state is changed, to reduce switching loss.In a switch periods, make that the zero vector insertion time is T
0,7, if wherein insert
Time be T
0=kT
0,7, then insert
Time then be T
7=(1-k) T
0,7, 0≤k≤1 wherein.