The invention provides a control method and device for improving
electric energy quality of a photovoltaic grid-connected
inverter and a medium, and belongs to the technical field of grid-connected
converters, and the method comprises the steps: detecting a common connection point
inverter side current, a common connection point
voltage and a common connection point
power grid side current; calculating to obtain a
voltage amplitude and a
phase angle of a common connection point and a
current amplitude and a
phase angle of an
inverter side; generating a power positive sequence
reference current; real-time
harmonic current, negative-sequence current and zero-sequence current are extracted, and the amplitude and
phase angle of the negative-sequence current and the peak values of the zero-sequence current and the
harmonic current are calculated; distributing coefficients of the negative-sequence current, the zero-sequence current and the
harmonic current, multiplying the coefficients with respective corresponding current values, and adding to obtain a compensation
reference current; and calculating whether the sum of the power positive sequence
reference current and the compensation reference current is greater than the current limit of the inverter, if so, compensating the current limit, otherwise, not needing compensation, and realizing the efficient utilization of the capacity of the inverter.