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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Function GMCLIB_DecouplingPMSM_FLT<br />

Equation GMCLIB_DecouplingPMSM_Eq3<br />

The feed-<strong>for</strong>ward voltages u_dq_comp are added to the voltages generated by the current<br />

controllers u_dq, which cover the R-L model. The resulting voltages represent the direct<br />

u q_dec <strong>and</strong> quadrature u q_decq components of the decoupled voltage vector that is to be<br />

applied on the motor terminals (using a pulse width modulator). The back EMF voltage<br />

component is already considered to be compensated <strong>for</strong> by an external function.<br />

The function GMCLIB_DecouplingPMSM_FLT calculates the cross-coupling voltages<br />

u_dq_comp <strong>and</strong> adds these to the input u_dq voltage vector. Because the back EMF<br />

voltage component is considered compensated, this component is equal to zero.<br />

There<strong>for</strong>e, calculations per<strong>for</strong>med by GMCLIB_DecouplingPMSM_FLT are derived<br />

from these two equations:<br />

Equation GMCLIB_DecouplingPMSM_Eq4<br />

where u_dq is the voltage vector calculated by the controllers (with the already<br />

compensated <strong>for</strong> back EMF component), u_dq_comp is the feed-<strong>for</strong>ward compensating<br />

voltage vector described in GMCLIB_DecouplingPMSM_Eq3, <strong>and</strong> u_dq_dec is the<br />

resulting decoupled voltage vector to be applied on the motor terminals. Substituting<br />

GMCLIB_DecouplingPMSM_Eq3 into GMCLIB_DecouplingPMSM_Eq4, <strong>and</strong><br />

normalizing GMCLIB_DecouplingPMSM_Eq4, results in the following set of equations:<br />

Equation GMCLIB_DecouplingPMSM_Eq5<br />

Note<br />

All parameters can be reset during declaration using the<br />

GMCLIB_DECOUPLINGPMSM_DEFAULT_FLT macro. All<br />

inputs <strong>and</strong> parameters contain single precision floating point<br />

data type values.<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 />

474 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!