⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vhz_ti.h

📁 本程序来自TI公司网站原程序,其功能是通过传统的V/F控制算法来实现对感应电机的控制,控制程序可以采用.asm也可以采用.C。 程序的具体算法和介绍在软件压缩包有详细介绍!
💻 H
字号:
/* ==============================================================================
System Name:  ACI3_1

File Name:	VHZ_TI.H

Description:  Header file for peripheral independent object for implementation of 
              Sensored Volt/Hertz control of a Three Phase AC Induction Motor.

Originator:		Digital control systems Group - Texas Instruments

Target dependency:	x240/1/2/3/07
To Select the target device see target.h file.
		
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 9-15-2000	Release	Rev 1.0
=================================================================================  */


#ifndef __VHZ_TI_H__
#define __VHZ_TI_H__

#include <Vhzprof.h>
#include <svgen.h>
#include <pid.h>   


#ifndef TRUE
#define FALSE 0
#define TRUE  1
#endif

/*------------------------------------------------------------------------------
 Define the structure of the VHZ Object. This object has all the data necessary 
 for one instance of a VHZ_TI algorithm.
------------------------------------------------------------------------------*/

typedef struct {

/*------------------------------------------------------------------------------
 Declarations for the 'terminal variables' for the PMSM Algorithm. The framework
 should communicate such quantities as setspeed etc to the algorithm by 
 modifying these terminal variables. It is not recommended that the framework
 directly modify the internal varibles of the algorithm.
 ------------------------------------------------------------------------------*/
        int speed_setpt;     
        int speed_value;     
        int direction;
        int closed_loop_flag;
/*------------------------------------------------------------------------------
    Declare one vhz profile.
------------------------------------------------------------------------------*/
        VHZPROFILE vhzprof;

/*------------------------------------------------------------------------------
    Declaration for the space vector generation module. The defaults are set in
    SVGEN.H
------------------------------------------------------------------------------*/
        SVGENMF svgen;
/*------------------------------------------------------------------------------
    Declaration for the PID controller object. The defaults are set in
    PID.H
------------------------------------------------------------------------------*/
    PID pid;      

} VHZ_TI ;                   

typedef VHZ_TI *VHZ_TI_handle;

#define DEFAULT_SPEED_SETPT  1800
#define DEFAULT_SPEED_VALUE  0
#define DEFAULT_DIRECTION    0

#define VHZ_TI_INITVALS                 \
                {                       \
                DEFAULT_SPEED_SETPT,    \
                DEFAULT_SPEED_VALUE,    \
                DEFAULT_DIRECTION,      \
                FALSE,                  \
                DEFAULT_PROFILE,        \
                SVGENMF_DEFAULTS,       \
                PID_DEFAULTS            \
                }
/*------------------------------------------------------------------------------
 Prototypes for functions implemented in VHZ_TI.C  
------------------------------------------------------------------------------*/

void VHZ_TI_Init(VHZ_TI_handle);
void VHZ_TI_Run(VHZ_TI_handle);


#endif /* __VHZ_TI_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -