PI=3.14159265
MotorFreq=10K // Motor frequency, in Hz
SpdFreq=1K
(Global)SpeedRef1 = 0.25 // Speed reference. 25% of maximum speed
(Global)MinDelta = 0.0000305*10
POLES=8	 // the number of permanent magnet pair pole in motor 					// Number of poles 
BASE_VOLTAGE=35.355       	// Base peak phase voltage (volt) 
BASE_CURRENT=10            	// Base peak phase current (amp) 
BASE_FREQ=200           	// Base electrical frequency (Hz)
T=1.0/MotorFreq
(Global)pwmEnable=1   // 1: Pwm enable, 0: Pwm disable.
