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_DecouplingPMSM_F32<br />

Equation GMCLIB_ClarkInv_Eq3<br />

Note<br />

The inputs <strong>and</strong> the outputs are in full range single precision<br />

floating point <strong>for</strong>mat.<br />

4.99.5 Re-entrancy<br />

The function is re-entrant.<br />

4.99.6 Code Example<br />

0.707106781<br />

0.707106781<br />

#include "gmclib.h"<br />

SWLIBS_2Syst_FLT flttrAlBe;<br />

SWLIBS_3Syst_FLT flttrAbc;<br />

void main(void)<br />

{<br />

// input value<br />

flttrAlBe.fltArg1 = 0.707106781; // input phase alpha ~ sin(45) ~<br />

}<br />

flttrAlBe.fltArg2 = 0.707106781; // input phase beta ~ cos(45) ~<br />

// output should be flttrAbc.fltArg1 ~ phA = 0.707106781<br />

// output should be flttrAbc.fltArg2 ~ phB = 0.258819045<br />

// output should be flttrAbc.fltArg3 ~ phC = -0.965925826<br />

GMCLIB_ClarkInv_FLT (&flttrAbc,&flttrAlBe);<br />

// output should be flttrAbc.fltArg1 ~ phA = 0.707106781<br />

// output should be flttrAbc.fltArg2 ~ phB = 0.258819045<br />

// output should be flttrAbc.fltArg3 ~ phC = -0.965925826<br />

GMCLIB_ClarkInv (&flttrAbc,&flttrAlBe,Define FLT);<br />

// ##############################################################<br />

// Available only if single precision floating point<br />

// implementation selected as default<br />

// ##############################################################<br />

// output should be flttrAbc.fltArg1 ~ phA = 0.707106781<br />

// output should be flttrAbc.fltArg2 ~ phB = 0.258819045<br />

// output should be flttrAbc.fltArg3 ~ phC = -0.965925826<br />

GMCLIB_ClarkInv (&flttrAbc,&flttrAlBe);<br />

4.100 Function GMCLIB_DecouplingPMSM_F32<br />

This function calculates the cross-coupling voltages to eliminate the dq axis coupling<br />

causing on-linearity of the field oriented control.<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 />

460 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!