《相电压重构TI文档》由会员分享,可在线阅读,更多相关《相电压重构TI文档(7页珍藏版)》请在金锄头文库上搜索。
1、PHASEJ/OLTAGEPhase Voltage ReconstructionDescriptionThis software module calculates three phase voltages impressing to the 3-ph electric motor (i e., induction or synchronous motor) by using the conventional voltage-source inverter. Three phase voltages can be rec on structed from the DC-bus voltage
2、 and three switching fun ctions of the upper power switching devices in the inverter. In addition, this software module also in eludes the clarke transformation changing from three phase voltages into two stationary dq-axis phase voltages.MfuncVIMfuncV2MfuncVSDcBusVoEVphaseA.VphaseB”PHASE_VOL Vphase
3、Cy TAGE CALC_ Valpha .Vbeta 新AvailabilityThis IQ module is available in one interface formatModule Properties1) The C interface versionType: Target Independent, Application DependentTarget Devices: x281x or x280xC Version File Names: volt calc.c, volt calc.hIQmath library files for C: IQmathLib h. I
4、Qmath.libItemC versionCommentsCode Size0144/144 words(x281x/x280x)Data RAM0 words*xDAIS readyNoXDAIS componentNoIALG layer not implementedMultiple instancesYesReentrancyYes Each pre-initialized jq PHASEVOLTAGE structure consumes 22 words in the data memorya Code size mentioned here is the size of th
5、e calc() functionDigital Control Systems (DCS) GroupTexas Instruments#C InterfaceC InterfaceObject Definitiontypedef struct q DcBusVolt;q MfuncVI;q MfuncV2:q MfuncV3;Uint32 OutOfPhase; iq VphaseA;q VphaseB,jq VphaseC;q Valpha;q Vbeta, void (*calc)(); PHASEVOLTAGE;The structure of PHASEVOLTAGE object
6、 is defined by following structure definitionII Input DObus voltage/Input Modulation voltage phase AII Input. Modulation voltage phase BII Input Modulation voltage phase CII Parameter: Out of Phase adjustment (0 or 1)II Output. Phase voltage phase AII Output. Phase voltage phase BII Output Phase vol
7、tage phase CII Output Stationary d-axis phase voltageII Output Stationary q-axis phase voltageII Pointer to calculation function typedef PHASEVOLTAGEa PHASEVOLTAGE.handle;ItemNameDescriptionFormatRange(Hex)InputsDcBusVoltDC-bus voltageGLOBAL.Q80000000-7FFFFFFFMfuncVISwitching function of upper switc
8、hing device 1GLOBAL_Q80000000-7FFFFFFFMfuncV2Switch!ng function of upper switching device 2GLOBAL_Q80000000-7FFFFFFFMfuncV3Switching function of upper switching device 3GLOBAL_Q80000000-7FFFFFFFOutputsVphaseAne-neutral phase voltage AGLOBAL Q80000000-7FFFFFFFVphaseALjnneutral phase voltage AGLOBAL.Q
9、80000000-7FFFFFFFVphaseAUne-neutral phase voltage AGLOBAL.Q80000000-7FFFFFFFValphaStationary d-axis phase voltageGLOBAL Q80000000-7FFFFFFFVbetaStationary q-axis phase voltageGLOBAL.Q8000000Q-7FFFFFFFGLOBAL Q valued between 1 and 30 is defined in ttie IQmathLib h header fileSpecial Constants and Data
10、 typesPHASEVOLTAGEThe module defi nition is created as a data type. This makes it con vement to in stance an in terface to phase voltage reco nstructio n. To create multiple insta nces of the module simply declare variables of type PHASEVOLTAGEPHASEVOLTAGE_handleUser defined Data type of pointer to
11、PHASEVOLTAGE modulePHASEVOLTAGE_DEFAULTSStructure symbolic constant to initialize PHASEVOLTAGE module. This provides the initial values to the terminal variables as well as method pointers.Methodsvoid phase_voltage_calc(PHASEVOLTAGE_handle);This definition implements one method viz, the phase voltag
12、e reconstruction computation function. The in put argument to thisfunctio n is the module handle.Module UsageInstantiationThe following example instances two PHASEVOLTAGE objectsPHASEVOLTAGE voltl, volt2;InitializationTo Instanee pre-initialized objectsPHASEVOLTAGE voltl = PHASEVOLTAGE.DEFAULTS;PHAS
13、EVOLTAGE volt2 = PHASEVOLTAGE DEFAULTS;Invoking the computation functionvoltl calc(&volt1);volt2.calc(&volt2);ExampleThe following pseudo code provides the information about the module usage.main()void interrupt periodicjnterrupt_isr()voltl DcBusVolt = dc_volt1;II Pass irputs to voltlvoltl MfuncVI =
14、 M1 1;II Pass irputs to voltlvoltl MfuncV2 = M2J;II Pass irputs to voltlvoltl ,MfuncV3 = M3 1;II Pass irputs to voltlvolt2.DcBusVolt = de volt2;II Pass irputs to volt2volt2.MfuncV1 二 M1 2;II Pass irputs to volt2volt2.MfuncV2 二 M2 2;II Pass irputs to volt2volt2.MfuncV3 = M3_2;II Pass irputs to volt2voltl .calc(&volt1);II Call compute function for voltlvolt2.calc(&volt2);II Call compute function for volt2Vd1 = voltl Valpha;II Access the outputs of voltlVq1 = voltl Vbeta;/ Access the outputs of voltlVd2 = volt2.Valpha;II Access the outputs of volt2Vq2 = volt2 Vbeta;