03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Function GMCLIB_ElimDcBusRip_F32<br />

4.103.1 Declaration<br />

void GMCLIB_ElimDcBusRip_F32(SWLIBS_2Syst_F32 *const pOut, const SWLIBS_2Syst_F32 *const pIn,<br />

const GMCLIB_ELIMDCBUSRIP_T_F32 *const pParam);<br />

4.103.2 Arguments<br />

Table 4-128. GMCLIB_ElimDcBusRip_F32 arguments<br />

Type Name Direction Description<br />

SWLIBS_2Syst_F32<br />

*const<br />

const<br />

SWLIBS_2Syst_F32<br />

*const<br />

const<br />

GMCLIB_ELIMDCBUS<br />

RIP_T_F32 *const<br />

4.103.3 Return<br />

Function returns no value.<br />

4.103.4 Description<br />

pOut output Pointer to the structure with direct ( α) <strong>and</strong> quadrature ( β)<br />

components of the required stator voltage vector re-calculated<br />

so as to compensate <strong>for</strong> voltage ripples on the DC bus.<br />

pIn input Pointer to the structure with direct ( α) <strong>and</strong> quadrature ( β)<br />

components of the required stator voltage vector be<strong>for</strong>e<br />

compensation of voltage ripples on the DC bus.<br />

pParam input Pointer to the parameters structure.<br />

The GMCLIB_ElimDcBusRip function provides a computational method <strong>for</strong> the<br />

recalculation of the direct ( α) <strong>and</strong> quadrature ( β) components of the required stator<br />

voltage vector, so as to compensate <strong>for</strong> voltage ripples on the DC bus of the power stage.<br />

Considering a cascaded type structure of the control system in a st<strong>and</strong>ard motor control<br />

application, the required voltage vector to be applied on motor terminals is generated by a<br />

set of controllers (usually P, PI or PID) only with knowledge of the maximal value of the<br />

DC bus voltage. The amplitude <strong>and</strong> phase of the required voltage vector are then used by<br />

the pulse width modulator (PWM) <strong>for</strong> generation of appropriate duty-cycles <strong>for</strong> the<br />

power inverter switches. Obviously, the amplitude of the generated phase voltage<br />

(averaged across one switching period) does not only depend on the actual on/off times of<br />

the given phase switches <strong>and</strong> the maximal value of the DC bus voltage. The actual<br />

amplitude of the phase voltage is also directly affected by the actual value of the<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXR40xx</strong>, Rev. 1.0<br />

476 Freescale Semiconductor, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!