Set the AC power source output to 0 V, turn on the AC power source, slowly increase the output voltage from 0-V to 110-VAC.
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 have to check the current and voltage sensing circuit as described in Section 3.3.1.
To verify current and voltage sensing circuit of the inverter for motor_1, set the variable motorVars[0].flagEnableRunAndIdentify to 1 in the Expressions window as shown in Figure 3-16. The motor_1 should run with v/f open loop, tune the v/f profile parameters in user_mtr1.h as below according to the specification of the motor if the motor doesn't spin smoothly.
#define USER_MOTOR1_FREQ_LOW_Hz (10.0f) // Hz
#define USER_MOTOR1_FREQ_HIGH_Hz (200.0f) // Hz
#define USER_MOTOR1_VOLT_MIN_V (10.0f) // Volt
#define USER_MOTOR1_VOLT_MAX_V (200.0f) // Volt
This should now spin the motor_1 with a setting speed in the variable motorVars[0].speedRef_Hz, check the value of motorVars[0].speed_Hz in Expressions window, the values of motorVars[0].speedRef_Hz and motorVars[0].speed_Hz should be very close as shown in Figure 3-16.
Connect oscilloscope voltage and current probes to the output of the PWMDAC or DAC128S board, the motor phase current to probe the angle, current signals, the current and angle waveforms on the oscilloscope as shown in Figure 3-17. Notice that the angle of the force angle generator is very similar as the estimated rotor angle of the FAST or eSMO estimator, a little bit shift error could be between these two angles. The sampling current waveform by using a DAC to output on oscilloscope should be the same as the phase current waveform capture by a current probe, that means the current sensing circuit is good for motor control.
Verify the over current fault protection by decreasing the value of the variable motorVars[0].overCurrent_A, the overcurrent protection is implemented by the CMPSS modules. The overcurrent fault will be trigger if the motorVars[0].overCurrent_A is set to a value less than the actual current, the PWM output will be disabled, the motorVars[0].flagEnableRunAndIdentify is cleared to 0, and the motorVars[0].faultMtrUse.all will be set to 0x10.
Follow the steps 3, 4 and 5 using the same approach to test the hardware for motor_2 by setting the variable motorVars[1].flagEnableRunAndIdentify to 1 and tune the v/f parameters in user_mtr1.h to spin the motor smoothly.
To verify the current and dc_link voltage sensing circuit for PFC, connect the probes to the output of the PWMDAC or DAC128S to the sampling current and voltage, use a high voltage probe and current probe to detect the dc_link voltage and current, the voltage and current waveform are shown in Figure 3-18.
Check the variables pfcVars.VdcBus_V in Expressions window, the values of these variables should be the same as the setting value of the AC source or measured by a multimeter. Increase the pfcVars.dutyOut from 0.0 to 0.2 very slowly, the dc_link voltage should increase simultaneously.
Verify the overcurrent protection by decreasing the pfcVars.overCurrent_A, the PWM output of PFC will be disabled if the overcurrent fault is triggered.
The controller can now be halted, 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-16 Build Level 2: Expressions Window at Run Time
Figure 3-17 Build Level 2: Rotor Angle, Phase Current of Motor
Figure 3-18 Build Level 2: DC Voltage, Current, PWM Output of PFC