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

4.51.1 Declaration<br />

tFloat GFLIB_<strong>Control</strong>lerPIrAW_FLT(tFloat fltInErr, GFLIB_CONTROLLER_PIAW_R_T_FLT *const<br />

pParam);<br />

4.51.2 Arguments<br />

Table 4-66. GFLIB_<strong>Control</strong>lerPIrAW_FLT<br />

arguments<br />

Type Name Direction Description<br />

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

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

GFLIB_CONTROLLER<br />

_PIAW_R_T_FLT<br />

*const<br />

4.51.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.51.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 />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq2<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 />

314 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!