The invention discloses a
control algorithm for
resonance suppression of a grid-connected
inverter, and the
algorithm comprises the following steps: S1, collecting and filtering three-phase
voltage and three-phase current signals inputted by the
inverter; s2, performing Clark conversion and Park conversion on the input
voltage and current; s3, performing
phase locking on the
power grid through a
phase locking link and estimating the phase and frequency of the
voltage of the
power grid; s4, extracting a high-frequency component of the voltage
signal and
processing the high-frequency component; s5, performing
current loop control, and outputting a
voltage compensation amount; and S6, calculating an instruction voltage, taking the calculated instruction voltage as the input of a
PWM modulator, and outputting a PWM
signal to a
driving circuit through the
PWM modulator so as to control the on-off of a switching tube in the grid-connected
inverter. According to the method, the virtual parameters of the
system are adjusted, so that the resonant frequency of the filter is separated from the working
frequency band, the output of the grid-connected inverter is optimized on the whole, the method better adapts to the working condition of a
power grid, and
resonance is more effectively inhibited.