A control method for photovoltaic pumping systems comprising: - measuring an output voltage of a photovoltaic generator , - establishing a reference voltage corresponding to a maximum power point of the photovoltaic generator for pumping systems with variable flow and pressure and corresponding to a power point demanded from the photovoltaic generator by the pumping system for pumping systems with constant flow and pressure, - a proportional-integral-derivative (PID) algorithm, which acts on at least one variable-frequency drive connected to the output of the photovoltaic generator and which establishes an operating frequency, the PID control algorithm being configured for: - reducing the operating frequency of at least one variable-frequency drive when the measured output voltage of the photovoltaic generator is lower than the established reference voltage, - increasing the operating frequency of the at least one variable-frequency drive when the measured output voltage of the photovoltaic generator is greater than the established reference voltage; the control method further comprising the following steps: - establishing a first threshold voltage value that is greater than a minimum operating voltage of the at least one variable-frequency drive ; - when the voltage measured at the output of the photovoltaic generator drops below the first threshold voltage value, deactivating the PID control algorithm and establishing a reference frequency for the at least one variable-frequency drive that is lower than the operating frequency, and establishing a minimum gradient of sudden deceleration to make the at least one variable-frequency drive enter into a regenerative braking mode which produces an increase of the operating voltage of the at least one variable-frequency drive . - measuring an output voltage of a photovoltaic generator , - establishing a reference voltage corresponding to a maximum power point of the photovoltaic generator for pumping systems with variable flow and pressure and corresponding to a power point demanded from the photovoltaic generator by the pumping system for pumping systems with constant flow and pressure, - a proportional-integral-derivative (PID) algorithm, which acts on at least one variable-frequency drive connected to the output of the photovoltaic generator and which establishes an operating frequency, the PID control algorithm being configured for: - reducing the operating frequency of at least one variable-frequency drive when the measured output voltage of the photovoltaic generator is lower than the established reference voltage, - increasing the operating frequency of the at least one variable-frequency drive when the measured output voltage of the photovoltaic generator is greater than the established reference voltage; - reducing the operating frequency of at least one variable-frequency drive when the measured output voltage of the photovoltaic generator is lower than the established reference voltage, - increasing the operating frequency of the at least one variable-frequency drive when the measured output voltage of the photovoltaic generator is greater than the established reference voltage; - establishing a first threshold voltage value that is greater than a minimum operating voltage of the at least one variable-frequency drive ; - when the voltage measured at the output of the photovoltaic generator drops below the first threshold voltage value, deactivating the PID control algorithm and establishing a reference frequency for the at least one variable-frequency drive that is lower than the operating frequency, and establishing a minimum gradient of sudden deceleration to make the at least one variable-frequency drive enter into a regenerative braking mode which produces an increase of the operating voltage of the at least one variable-frequency drive . <EOS>