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 GFLIB_<strong>Control</strong>lerPIp_FLT<br />

}<br />

// output should be 0x01EB<br />

f16Output = GFLIB_<strong>Control</strong>lerPIp (f16InErr, &trMyPI, Define F16);<br />

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

// Available only if 16-bit fractional implementation selected<br />

// as default<br />

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

// output should be 0x01EB<br />

f16Output = GFLIB_<strong>Control</strong>lerPIp (f16InErr, &trMyPI);<br />

4.42 Function GFLIB_<strong>Control</strong>lerPIp_FLT<br />

This function calculates a parallel <strong>for</strong>m of the Proportional- Integral controller, without<br />

integral anti-windup.<br />

4.42.1 Declaration<br />

tFloat GFLIB_<strong>Control</strong>lerPIp_FLT(tFloat fltInErr, GFLIB_CONTROLLER_PI_P_T_FLT *const pParam);<br />

4.42.2 Arguments<br />

Table 4-52. GFLIB_<strong>Control</strong>lerPIp_FLT arguments<br />

Type Name Direction Description<br />

tFloat fltInErr input Input error signal to the controller in single precision floating<br />

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

GFLIB_CONTROLLER<br />

_PI_P_T_FLT *const<br />

4.42.3 Return<br />

pParam input,<br />

output<br />

Pointer to the controller parameters structure.<br />

The function returns a single precision floating point value, representing the signal to be<br />

applied to the controlled system so that the input error is <strong>for</strong>ced to zero.<br />

4.42.4 Description<br />

A PI controller attempts to correct the error between a measured process variable <strong>and</strong> a<br />

desired set-point by calculating <strong>and</strong> then outputting a corrective action that can adjust the<br />

process accordingly. The GFLIB_<strong>Control</strong>lerPIp_FLT function calculates 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 />

276 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!