parameter.h

来自「基于TMS320F2812的永磁同步电机矢量控制软件部分」· C头文件 代码 · 共 60 行

H
60
字号
/* ==============================================================================
System Name:  PMSM31

File Name:	PARAMETER.H

Description:	Parameters file for the Real Implementation of Sensored  
          		Field Orientation Control for a Three Phase Permanent-Magnet
          		Synchronous Motor (PMSM) using QEP sensor
          		
Originator:		Digital control systems Group - Texas Instruments

Note: In this software, the default inverter is supposed to be DMC1500 board. 
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 04-15-2005	Version 3.20
=================================================================================  */

#ifndef PARAMETER_H
#define PARAMETER_H

/*-------------------------------------------------------------------------------
Next, definitions used in main file.
-------------------------------------------------------------------------------*/
#ifndef TRUE
#define FALSE 0
#define TRUE  1
#endif

#define PI 3.14159265358979

// Define the system frequency (MHz)
#define SYSTEM_FREQUENCY 150


// Define the ISR frequency (kHz)
#define ISR_FREQUENCY 20

// This machine parameters are based on 1-hp PacSci PMSM motor
// Define the PMSM motor parameters
#define RS 		0.9               		// Stator resistance (ohm)
#define RR   	0               		// Rotor resistance (ohm) 
#define LS   	0.00435     			// Stator inductance (H) 
#define LR   	0						// Rotor inductance (H) 	
#define LM   	0						// Magnetizing inductance (H)
#define P    	8						// Number of poles 

// Define the base quantites 
#define BASE_VOLTAGE    184.752       // Base peak phase voltage (volt) 
#define BASE_CURRENT    5             // Base peak phase current (amp) 
#define BASE_TORQUE     7.35105194    // Base torque (N.m) 
#define BASE_FLUX       0.79616       // Base flux linkage (volt.sec/rad)
#define BASE_FREQ      	200           // Base electrical frequency (Hz),电机内旋转磁场的频率:q*f

#endif  // end of PARAMETER.H definition

//===========================================================================
// No more.
//===========================================================================

⌨️ 快捷键说明

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