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

4.49 Function GFLIB_<strong>Control</strong>lerPIrAW_F32<br />

This function calculates a st<strong>and</strong>ard recurrent <strong>for</strong>m of the Proportional-Integral controller,<br />

with integral anti-windup.<br />

4.49.1 Declaration<br />

tFrac32 GFLIB_<strong>Control</strong>lerPIrAW_F32(tFrac32 f32InErr, GFLIB_CONTROLLER_PIAW_R_T_F32 *const<br />

pParam);<br />

4.49.2 Arguments<br />

Table 4-62. GFLIB_<strong>Control</strong>lerPIrAW_F32 arguments<br />

Type Name Direction Description<br />

tFrac32 f32InErr input Input error signal to the controller is a 32-bit number<br />

normalized between [-1, 1).<br />

GFLIB_CONTROLLER<br />

_PIAW_R_T_F32<br />

*const<br />

4.49.3 Return<br />

pParam input,<br />

output<br />

Pointer to the controller parameters structure.<br />

The function returns a 32-bit value in fractional <strong>for</strong>mat 1.31, 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.49.4 Description<br />

The function GFLIB_<strong>Control</strong>lerPIrAW calculates a st<strong>and</strong>ard recurrent <strong>for</strong>m of the<br />

Proportional-Integral controller, with integral anti-windup.<br />

The continuous time domain representation of the PI controller is defined as:<br />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq1<br />

The transfer function <strong>for</strong> this kind of PI controller, in a continuous time domain is<br />

described using the Laplace trans<strong>for</strong>mation as follows:<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 />

304 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!