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 110-V
AC.
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 closed-loop control for motor_1, set the variable
motorVars[0].flagEnableRunAndIdentify to '1' in the
Expressions window as shown in Figure 3-20. The motor_1 should run with a closed-loop control using the angle from the
angle generator at a setting speed in the variable
motorVars[0].speedRef_Hz, check the value of motorVars[0].speed_Hz
in Expressions window, both variables value should be very close.
Connect oscilloscope probes to the DAC output and motor phase line to probe the angle, current
signals, the current and angle waveforms on the oscilloscope appear as shown in
Figure 3-21. Change the Idq_set_A[0].value[1] in the Expressions window,
the motor phase current should be increasing accordingly.
If the motor can not run with current-closed loop and appear a overcurrent fault, check if the
sign of adcData[0].current_sf and the value of
userParams[0].current_sf are set correctly according to the hardware
board.
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
Idq_set_A[1].value[1] to spin the motor.
To verify the current closed-loop for PFC by setting the pfcVars.flagEnablePFC to "1",
connect the probes to the output of the DAC to the sampling current and voltage,
use a high voltage probe and current probe to detect the AC input voltage and
current, the voltage and current waveform are shown in Figure 3-22.
Check the variables pfcVars.VdcBus_V, pfcVars.VacRms_V, and
pfcVars.FreqAc_Hz 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 pfcVars.IdcRef from 0.0 to 0.05
very slowly, the output voltage should increase accordingly. Keep increasing
pfcVars.IdcRef in increments of 0.01 until pfcVars.IdcRef is
increased to a value of 0.1. The sensing current value pfcVars.IacSen can
change rapidly and is not the same as the pfcVars.IdcRef value. This
change is because pfcVars.IacSen is the instantaneous input current value
while pfcVars.IdcRef is the amplitude reference for the current
command.
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-20 Build Level 3: Expressions
Window at Run Time
Figure 3-21 Build Level 3: Rotor Angle,
Phase Current of Motor
Figure 3-22 Build Level 3: AC Voltage,
Current of PFC