Set the AC source output to 0 V at 50/60Hz, turn on the AC power supply, slowly increase the input voltage from 0-V to 220-V AC.
The required motor parameters must be recorded in the header files (user_mtr1.h and user_mtr2.h) as shown in the following example codes. If the motor parameters are not well know by the user, the motor identification can be used to achieve the motor parameters if the FAST estimator is implemented in the reference design.
The motor identification is not supported by F28002x based reference design project, so the user must get the motor parameters from the motor manufacturer and set the parameters in user_mtr1/2.h files. The F28003x based reference design can support the motor parameters identification feature.
Changes the userParams[MTR_1].flag_bypassMotorId value to "false" to enable the motor identification as the following example code for motor 1 (compressor).
Set the right identification variables value in the user_mtr1.h according to the specification of the motor 1 (compressor).
#define USER_MOTOR1_RES_EST_CURRENT_A (1.0f) // A - 10~30% of rated current of the motor
#define USER_MOTOR1_IND_EST_CURRENT_A (-1.0f) // A - 10~30% of rated current of the motor, just enough to enable rotation
#define USER_MOTOR1_MAX_CURRENT_A (4.5f) // A - 30~150% of rated current of the motor
#define USER_MOTOR1_FLUX_EXC_FREQ_Hz (20.0f) // Hz - 10~30% of rated frequency of the motor
Rebuild the project and load the code into the
controller, run the project by clicking on button ,
or click Run → Resume in the Debug tab. The
systemVars.flagEnableSystem should be set to 1 after a fixed
time, that means the offsets calibration have been done and the power relay for
inrush is turned on. The fault flags for dual motor and PFC
(motorVars[0].faultMtrUse.all, motorVars[1].faultMtrUse.all,
and pfcVars.faultPFCUse.all) should be equal to '0' , if not, the
user should check the current and voltage sensing circuit as described in Section 3.3.1.
Set the variable
motorVars[0].flagEnableRunAndIdentify to 1 in the Expressions
window as shown in Figure 3-24, the motor identification will be executed, the whole process will take about
150s. Once motorVars[0].flagEnableRunAndIdentify is equal to 0,
the motor parameters have been identified. Record the watch window values with
the newly defined motor parameters in user_mtr1.h as follows:
USER_MOTOR1_Rs = motorVars[0].Rs_Ohm’s value
USER_MOTOR1_Ls_d =
motorVars[0].Ls_d_H’s value
USER_MOTOR1_Ls_q =
motorVars[0].Ls_q_H’s value
USER_MOTOR_RATED_FLUX =
motorVars[0].flux_VpHz’s value
Implement the same process for motor 2 (fan) if the motor parameters are not known and need to be identified.
Set both
userParams[MTR_1].flag_bypassMotorId and
userParams[MTR_2].flag_bypassMotorId values to "true" after
successfully identify the motors parameters, rebuild the project and load the
code into the controller.
Set the variables motorVars[0].flagEnableRunAndIdentify equal to
1 again for starting to run the motor_1 (compressor), and
motorVars[1].flagEnableRunAndIdentify equal to 1 again
for starting to run the motor_2 (fan).
Set the variables
motorVars[0].speedRef_Hz, motorVars[1].speedRef_Hz to
a different value and watch how the motor shaft speed will follow.
To change the
acceleration, enter a different acceleration value for the variable
motorVars[0].accelerationMax_Hzps,
motorVars[0].accelerationMax_Hzps.
To enable PFC control, set the pfcVars.flagEnablePFC equal to 1, and set the variable pfcVars.VdcSet_V to a different value and watch how the dc bus voltage will follow the setting voltage.
The controller can now be halted before setting the motorVars[0].flagEnableRunAndIdentify, motorVars[1].flagEnableRunAndIdentify and pfcVars.flagEnablePFC to 0, and the debug connection terminated. Fully halting the controller by first clicking the Halt button on the toolbar or by clicking Target → Halt. Finally, reset the controller by clicking on or clicking Run → Reset.
Close CCS debug session by clicking on Terminate Debug Session or clicking Run → Terminate.
Figure 3-24 Build Level 4: Expressions Window at Run Time
Figure 3-25 Build Level 4: Rotor Angle, Phase Current of Motor
Figure 3-26 Build Level 4: Voltage and Current of PFC