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.46.2 Arguments<br />

Table 4-56. GFLIB_<strong>Control</strong>lerPIr_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 />

_PI_R_T_F32 *const<br />

4.46.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.46.4 Description<br />

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

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

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

Equation GFLIB_<strong>Control</strong>lerPIr_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>lerPIr_Eq2<br />

Trans<strong>for</strong>ming equation GFLIB_<strong>Control</strong>lerPIr_Eq2 into a discrete time domain leads to<br />

the following equation:<br />

Equation GFLIB_<strong>Control</strong>lerPIr_Eq3<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. 293

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

Saved successfully!

Ooh no, something went wrong!