TIDUE53J March 2018 – February 2025 TMS320F28P550SG , TMS320F28P550SJ , TMS320F28P559SG-Q1 , TMS320F28P559SJ-Q1
This is the first PFC lab. In this lab sensing is
checked and no switching action occurs until clearPWMTrip is set to
1.
The hardware setup for the PFC mode is explained in Figure 3-17. TI recommends starting the PFC at a low voltage like 30 VRMS and connecting a 2-kΩ resistor.
Set the project to Lab 5 by changing the Lab
Number in the <tinv_settings.h> or main.syscfg
file, (this is changed with the powerSUITE GUI when using the powerSUITE
project).
Under this condition, the converter operates as a rectifier and rectified current can be observed being drawn without any power factor correction. Software Phase-Lock Loop (SPLL) locking can also be safely verified in this build.
Hence, the following variables are put on the data logger:
TINV_dVal1 = TINV_vGrid_A_sensed_pu;
TINV_dVal2 = TINV_angleSPLL_radians / (float32_t)(2.0f * TINV_PI);
TINV_dVal3 = TINV_vGrid_A_sensed_pu;
TINV_dVal4 = TINV_iInv_A_sensed_pu;
DLOG_4CH_run(&TINV_dLog1);Make sure the grid frequency is specified
correctly, the grid frequency can be changed through the sysconfig
page for powerSUITE-based projects. If not using a powerSUITE-based project, modify
the tinv_settings.h file.
#define TINV_AC_FREQ_HZ ((float32_t)50)Build and load the code, use the
lab5.js file to populate the watch variables in the CCS window.
PLL lock can be checked by plotting the buffers.
Use the graph1.graphprop to see the buffer through Tools →
Graph → Dual Time.
Cosine transforms are used; therefore, the angle is 0 when Vgrid peaks.
Close the relay by writing a 1 to
TINV_neutralRelaySet.
Initially, only run this test with 30 VRMS for safety, hence safely ramp the AC supply to 30 VRMS and observe the graph in the CCS debug window to confirm the PLL is locking. Figure 3-19 shows the low-voltage phase-locked loop check from watch window.
Figure 3-19 PLL - Grid Voltage SynchronizationIf the PLL is not locking, issue a
tinv_reset_PLL command by setting the command to "1",
which initiates a task to zero out an integrated error in the module and
zero all the memory elements.
Similarly, the current flowing from the grid
across all phases can be checked, using the graph watch window of CCS. Figure 3-20 shows the sensed grid currents from graph windowCheck for three
phase grid currents observed from the watch window.
Figure 3-20 Sensed Grid Currents - PFC ModeTo verify boost action in Lab 5, follow the steps according to the sequence provided:
TINV_fanSet
function in the CCS watch window during the debug session.TINV_neutralRelaySet. Voltage starts to appear
across the DC terminals.TINV_clearPwmTrip to 1 to see a slight boost in DC
voltage.Before PFC action begins, a rectified current is
drawn due to the load on the Vbus. As soon as clearPWMTrip is set
to 1, a slight boost in DC voltage is evident.
There can be a situation in the labs for PFC (Lab
5, Lab 6, and Lab 7) where the converter operates as a rectifier and rectified
current is seen being drawn without any power factor correction. But as soon as
TINV_clearPwmTrip is set to 1, there is no switching
action – the Gate Signals remain off.
This is because there is an overcurrent or DSAT
flag (InvA_overcurrent,
InvB_overcurrent,DSATA,
DSATB) which is set in one of the three phases and this
happens under three circumstances:
TINV_clearPwmTrip is set to
1, the switching action causes one of the flags to be set.TINV_StartpowerStage to
1 for closing the current and voltage loop.The EPWM TZFLG is set to 0X000C and under this condition no switching occurs. So make sure the load resistance is increased so that the inrush currents do not cause a trip condition and the EPWM TZFLG changes from 0x0004 to 0x0000 and switching occurs.
Once the FLG is set to 0x000C, even if a
TINV_reset_fault_status is performed to reset the faults
and even though the faults are cleared, PWM action is not observed.
The goal is, as soon as the auxiliary power supply
is started and the code debugged, all the faults – namely
InvA_overcurrent, InvB_overcurrent,
DSATA, DSATB; and so forth – are supposed
to be set to zero so that the controller does not go into a trip state.
If possible, limit the slew rate on the AC source to 100 V/μs. This helps with the inrush current tripping the AC source OCP. This can happen if when the relay is left open for a long time causing the voltage on the EMI filter caps to decay close to 0 V, as shown in Figure 3-21. Later when the relay is closed, a large inrush current is in the reactive load which can trip the AC source OCP feature.