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.

4.101.2 Arguments<br />

Table 4-126. GMCLIB_DecouplingPMSM_F16 arguments<br />

Type Name Direction Description<br />

SWLIBS_2Syst_F16<br />

*const<br />

const<br />

SWLIBS_2Syst_F16<br />

*const<br />

const<br />

SWLIBS_2Syst_F16<br />

*const<br />

pUdqDec output Pointer to the structure containing direct (u df_dec) <strong>and</strong><br />

quadrature (u qf_dec) components of the decoupled stator<br />

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

pUdq input Pointer to the structure containing direct (u df) <strong>and</strong> quadrature<br />

(u qf) components of the stator voltage vector generated by<br />

the current controllers.<br />

pIdq input Pointer to the structure containing direct (i df) <strong>and</strong> quadrature<br />

(i qf) components of the stator current vector measured on the<br />

motor terminals.<br />

tFrac16 f16AngularVel input Rotor angular velocity in rad/sec, referred to as ( ef) in the<br />

detailed section of the documentation.<br />

const<br />

GMCLIB_DECOUPLIN<br />

GPMSM_T_F16 *const<br />

4.101.3 Return<br />

Function returns no value.<br />

4.101.4 Description<br />

pParam input Pointer to the structure containing k df <strong>and</strong> k qf coefficients<br />

(see the detailed section of the documentation) <strong>and</strong> scale<br />

parameters (k d_shift) <strong>and</strong> (k q_shift).<br />

The quadrature phase model of a PMSM motor, in a synchronous reference frame, is very<br />

popular <strong>for</strong> field oriented control structures because both controllable quantities, current<br />

<strong>and</strong> voltage, are DC values. This allows employing only simple controllers to <strong>for</strong>ce the<br />

machine currents into the defined states.<br />

The voltage equations of this model can be obtained by trans<strong>for</strong>ming the motor three<br />

phase voltage equations into a quadrature phase rotational frame, which is aligned <strong>and</strong><br />

rotates synchronously with the rotor. Such a trans<strong>for</strong>mation, after some mathematical<br />

corrections, yields the following set of equations, describing the quadrature phase model<br />

of a PMSM motor, in a synchronous reference frame:<br />

Equation GMCLIB_DecouplingPMSM_Eq1<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 />

Chapter 4 API References<br />

Freescale Semiconductor, Inc. 467

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

Saved successfully!

Ooh no, something went wrong!