C Interface
Object Definition
The structure of PARK object is defined by following structure definition
typedef struct { _iq Alpha;
_iq Beta;
_iq Angle;
_iq Ds;
_iq Qs;
} PARK;
typedef PARK *PARK_handle;
//Input: stationary d-axis stator variable
//Input: stationary q-axis stator variable
//Input: rotating angle (pu)
//Output: rotating d-axis stator variable
//Output: rotating q-axis stator variable
Item
Name
Description
Format
Range(Hex)
Inputs
Alpha
Direct axis(d) component of the
transformed signal
GLOBAL_Q
80000000-7FFFFFFF
Beta
Quadrature axis(q) component of the
transformed signal
GLOBAL_Q
80000000-7FFFFFFF
Angle
Phase angle between stationary and
rotating frame
GLOBAL_Q
80000000-7FFFFFFF
(0-360 degree)
Sine
Sine of the phase angle between
stationary and rotating frame
GLOBAL_Q
80000000-7FFFFFFF
Cosine
Cosine of the phase angle between
stationary and rotating frame
GLOBAL_Q
80000000-7FFFFFFF
Outputs
Ds
Direct asix (D) component of
transformed signal in rotating
reference frame
GLOBAL_Q
80000000-7FFFFFFF
Qs
Quadrature axis(Q) component of
transformed signal in rotating
reference frame
GLOBAL_Q
80000000-7FFFFFFF
GLOBAL_Q valued between 1 and 30 is defined in the IQmathLib.h header file.
Software Tools
www.ti.com
Following the module description, all the necessary information is provided for C interface of the DMC
module, the introduction of which is shown below in
Figure 11
. This section explains the structure of the
module object; name, description, and format of the module input and outputs. It also explains special
constants and data types, module initialization and usage, and pseudo code providing the information
about the module usage.
Figure 11. Snapshot of First Part of C Interface Section
In the last section, theoretical background and mathematical derivations of the equations (if applicable) are
provided to the user as shown in
Figure 12
. This section helps the user to understand the philosophy
behind the module and allow the user to customize it properly.
14
TMS320C2000 Motor Control Primer
SPRUGI6 – September 2010
Submit Documentation Feedback
Copyright © 2010, Texas Instruments Incorporated