Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD AND APPARATUS FOR AUTO-TUNING A CONTROLLER FOR A DC-AC CONVERTER
Document Type and Number:
WIPO Patent Application WO/2022/003601
Kind Code:
A1
Abstract:
A system (200) including a proportional -integral-derivative (PID) controller (201), a modified relay feedback test (MRFT) block (202), a memory block (211), a biasing block (213), a dq0-to-abc transformation block (210), a switch (207) configured to selectively couple output signal of the biasing block or the PID controller output signal to the input of the dq0-to-abc transformation block (210), a three phase digital pulse width modulator (208), electronic switches (203), a voltage sensor (206) configured to measure the output of each voltage of the three phases on the load and produce voltage data signals (Voa, Vob, Voc), and an abc-to-dq0 transformation block (209) having an input being a representative of the phase voltages on the load, and producing an output being a representative of these voltages in the dq0 format.

Inventors:
BOIKO IGOR (AE)
SHEHADA AHMED (AE)
BEIG BALANTHI MOGRU ABDUL RAHIMAN (AE)
YAN YAN (AE)
Application Number:
PCT/IB2021/055878
Publication Date:
January 06, 2022
Filing Date:
June 30, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
UNIV KHALIFA SCIENCE & TECHNOLOGY (AE)
International Classes:
G05B11/42; H02M7/48
Foreign References:
CN104426448A2015-03-18
Other References:
SHEHADA AHMED; YAN YAN; BEIG ABDUL R; BOIKO IGOR: "Comparison of Relay Feedback Tuning and Other Tuning Methods for a Digitally Controlled Buck Converter", IECON 2019 - 45TH ANNUAL CONFERENCE OF THE IEEE INDUSTRIAL ELECTRONICS SOCIETY, IEEE, vol. 1, 14 October 2019 (2019-10-14), pages 1647 - 1652, XP033669744, DOI: 10.1109/IECON.2019.8926893
BOIKO IGOR: "Non-parametric Tuning of PID Controllers", 1 January 2013 (2013-01-01), XP055897466, DOI: 10.1007/978-1-4471-4465-6
Attorney, Agent or Firm:
MYERS, Robert (US)
Download PDF:
Claims:
CLAIMS:

1. A system (200), comprising: a summation block having a first input being a reference voltage representative (Vd-rej) and a second input being a representative of a measured voltage ( Vd) on a load, and an output having a value of a difference between a first input signal and a second input signal; a proportional -integral -derivative (PID) controller (201) having an error signal as an input and an output representing a modulation index; a modified relay feedback test (MRFT) block (202) with magnitude (/?) and a threshold parameter (b) having an input being the error signal and an output representing a modulation index increment/decrement value; a memory block (210) having the PID controller output signal as an input and configured to store a last value of the PID controller output signal; a biasing block (213) having an output signal of the MRFT block as a first input and an output signal of the memory block as a second input, and an output signal being a sum of the first input signal and the second input signal; a dqO-to-abc transformation block (210) having an input representative of the modulation index in a dqO format, and producing three outputs being representative of modulation indexes for three AC phases; a switch (207) configured to selectively couple output signal of the biasing block or the PID controller output signal to the input of the dqO-to-abc transformation block (210), wherein the switch (207) decouples an unselected input when coupling a selected input; a digital pulse width modulator (208) having three inputs being the output signals of the dqO-to-abc transformation block (210) and producing control signals; electronic switches (203) receiving the control signals of the digital pulse-width modulator and providing a three-phase AC power by high-frequency modulation of a DC power source; a voltage sensor (206) configured to measure the voltage of the three phases on the load and produce voltage data signals (Voa, Vob, Vac ); and an abc-to-dqO transformation block (209) having an input being a representative of the phase voltages on the load, and producing an output being a representative of these voltages in the dqO format. 2. The system according to claim 1, further comprising: filters (204) comprising at least one inductor and at least one capacitor in each phase and connected between the switches (203) and a load (205) to suppress high- frequency fluctuations of a current through the load.

3. The system according to claim 1, wherein the abc-to-dqO transformation block (209) is further configured to perform a Park transformation on the voltage data signals (Voa, Vob, Voc), thereby providing voltage data in dqO format (Vd, Vq).

4. The system according to claim 1, wherein the dqO-to-abc transformation block (210) is further configured to perform an inverse Park transformation on the modulation index data signal (c/d), thereby providing modulation indexes for each phase in abc format.

5. The system according to claim 1, wherein the MRFT block (202) is governed by a nonlinear characteristic of a relay with magnitude (h) and a hysteresis depending on an amplitude ( ao ) of self-sustained oscillations of the DC transformed voltage ( Vd) that are generated due to the MRFT block, with a hysteresis duration computed as 2b c ao, which is updated while running the MRFT block in accordance with a change of the amplitude (ao).

6. A method of tuning a proportional -integral -derivative (PID) controller (201) of a pulse width modulated DC-AC power inverter, including a dqO-to-abc transformation block (210), a pulse-width modulator (208) and electronic switches (203), providing a three- phase voltage output (Voa, Vob, Voc) using a MRFT block (202) with desired magnitude (h) and threshold parameter (b), the method comprising: a) measuring the voltages in each of the three phases of AC voltage outputs {Voa, Vob, Voc) of the DC-AC power inverter (203); b) perform a Park transformation (abc-to-dqO) to obtain DC transformed voltage values (Vd, Vq) of the AC voltage outputs {Voa, Vob, Voc); c) comparing one of the DC transformed voltage values (Vd, Vq) to a desired voltage output set point and producing an error signal; d) applying the error signal to an input of the MRFT block (202); e) running the MRFT block with threshold parameter (b) and magnitude (h) and producing an output from the MRFT block (202) that is an increment/decrement value for a modulation index of a last memorized value of the PID controller (201) before switching to the control by the MRFT; f) using a sum of the modulation index and increment or decrement output value from a modified relay module (202) as a new modulation index input for the dqO-to-abc transformation block (210); g) applying the output of the dqO-to-abc transformation block (210) to the input of the pulse-width modulator (208); and h) applying the modulating signal to the electronic switches (203) for phases a, b and c, thereby producing three AC voltages modulated by a biased output signal of the MRFT block (202).

7. The method according to claim 6, wherein only one of the DC transformed voltage values (Vd) is compared to the desired voltage output set point.

8 The method according to claim 6, further comprising the steps of: i) initializing values for the threshold parameter b and desired phase margin yih: j) running the MRFT block based on the values of b and h to produce self- sustained oscillations in the DC transformed voltage (Vd); k) upon stabilization of a frequency and amplitude of the self-sustained oscillations of the DC transformed voltage ( d). measuring the frequency (Wo) and the amplitude ( ao ) of the self-sustained oscillations of the DC transformed voltage (Vd); l) selecting the values of c1, c2 and c3 that satisfy equations: cly/l + x2 = 1 and b = sin(^m — tan-1 ^), where x = 27 rc3 - — , and (fab is a desired phase margin; and m) computing PID parameters Kc, 7), and Td based on the equations:

9. The method according to claim 8, wherein b = 0.8, c = 0.95 + 5%, c2 = 0.36 + 5%, and c3 = 0.12 + 5%.

10. A non-transitory computer readable storage medium having data stored therein representing software executable by a computer, the software including instructions to: measure voltages of each of three phases of AC voltage outputs (Voa, V0b, Voc) of a DC-AC power inverter (210), (208), (203) controlled by a proportional -integral - derivative (PID) controller (201) having a reference voltage input and a modulation index output to a dqO-to-abc transformation block (210) of the DC-AC power inverter; perform a Park transformation (abc-to-dqO) of the AC voltage outputs (Voa, V„h, Vac ) to obtain DC transformed voltage values (Vd, Vq); compare one of the DC transformed voltage values ( Vd, Vq) to a desired voltage output set point and produce an error signal; activate a software switch (207) to couple a MRFT block (202) output signal biased by an output of a biasing block (213) to the dqO-to-abc transformation block (210) while decoupling the PID controller (201) from dqO-to-abc transformation block (210); apply the error signal to an input of the MRFT block (202); produce an output from the MRFT block (202) that is an increment/decrement value for a memorized last output value of the PID controller (201); calculate a sum of the output from the MRFT block (202) and increment/decrement output value from the MRFT block (202) as a new modulation index input for the dqO-to-abc transformation block (210), produce the dqO-to-abc transformation block (210) output to represent modulation indexes for each of the three phases; apply the three-phase modulating signal to three pulse-width modulators (208) for phases a, b and c, and apply the output signals of the three-phase pulse-width modulator (208) to electronic switches (203), thereby producing three AC voltages (Voa, V0b, Voc) modulated by the output signal of the MRFT block (202).

11. The non-transitory computer readable storage medium of claim 10, the software further including instructions to: initialize values for a threshold parameter b and desired phase margin yΊh run the MRFT block having the parameters of b and h to produce self-sustained oscillations in the DC transformed voltage (Vd); upon stabilization of a frequency and amplitude of the self-sustained oscillations of the DC transformed voltage (Vd), measuring the frequency (Wo) and the amplitude (ao) of the self-sustained oscillations of the DC transformed voltage (Vd); select the values of c1; c2and c3 based on the equations: tan 1 x), a desired phase margin; and compute PID parameters Kc, and Td based on equations:

The non-transitory computer readable storage medium of claim 11, wherein b= 0.8, cq = 0.95 + 5%, c2 = 0.36 + 5%, and c3 = 0.12 + 5%.

Description:
METHOD AND APPARATUS FOR AUTO-TUNING A CONTROLLER FOR

A DC-AC CONVERTER

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority under Article 8 of the Patent Cooperation Treaty to U. S. Provisional Patent Application 63/046,471 filed in the Unites States Patent and Trademark Office on June 30, 2020, the entire disclosure of which is hereby incorporated by reference.

FIELD OF INVENTION

[0002] The present invention relates to a method and an apparatus for auto-tuning a controller for a DC-AC converter.

BACKGROUND

[0003] Switched-mode DC-AC power voltage -source converters (VSCs) find use in a wide variety of applications, such as energy transformation in solar/wind farms, power system control and compensation, electric motor drives, and others. The output power of VSCs ranges from providing watts of power in system-on-chip power management applications to megawatts of power in power supply systems. Although many control theories and methods have emerged for 3-phase DC-AC VSCs, field-oriented control and proportional -integral- derivative (PID) control are still the most mature and the most widely used. Studies estimate that at least 90% of all industrial controllers are PID controllers. PID controller tuning techniques comprise two categories:

1) Parametric tuning methods, such as direct pole placement and dominant pole design, where the features of systems in the time or frequency-domain are used to identify the mathematical model of the system and the controller is designed based on the mathematical model developed therefrom. But the identification of a mathematical model of a process is sometimes complicated, and it is only an approximation of the process. Thus, the PID controller tuning based on a mathematical model may not produce the desired performance, and engineers often have to revert to trial-and-error methods to further fine tune the PID controller, which tends to be a difficult and time- consuming task. 2) Non-parametric tuning methods on the other hand do not involve developing a mathematical model; examples of non-parametric tuning methods include the Ziegler- Nichols, Cohen-Coon, and Astrom-Hagglund methods. In such methods certain features of a system in the time or frequency-domains are measured and used to directly tune a PID controller, typically using what are called tuning rules. Tuning rules take the measurements from an initial test stage as input and use them to calculate the tuned PID parameters. In such case where a test is performed on the actual system, the actual dynamics of the system are captured, which avoids inaccuracies that are characteristic of mathematical models. For example, in power converters, tuning using a test stage that is performed on the actual system helps account for component tolerance, component ageing, and parasitic effects in the circuit. It would also account for the actual value of the connected load, as well as include the influence of the input capacitance of a next-stage converter.

[0004] The “continuous cycling” procedure and its associated Ziegler-Nichols tuning rules, and the relay feedback test and its associated phase margin tuning rules have been hugely influential in PID auto-tuning practice. However, there is still a need to iteratively test the gain margin of the process, and control of the system may be lost when adjusting the system gain. While the Ziegler-Nichols test procedures are not widely used, the Ziegler-Nichols tuning rules are indeed applied in many applications, especially where high dynamic performance is not critical.

[0005] Since Astrom and Hagglund proposed a PID autotuning method based on the relay feedback test (RFT), the method has been developed by many researchers and industrial applications. In the conventional RFT, the PID controller is replaced by a relay unit to generate sustained oscillation. By measuring the amplitude and period of the oscillation, the PID parameters can be calculated by substitute measured data into Ziegler-Nichols formulas. The conventional relay feedback quickly generates sustained oscillations without requiring iterations, thus the tuning efficiency is improved. The measured data is substituted into the Ziegler-Nichols tuning rules. However, neither stability is guaranteed, nor gain or phase margin can be specified. Several variations based on the relay feedback test have been proposed for the auto-tuning of PID controller.

[0006] U.S. Pat. No. 10,481,562, B2 discloses a method of tuning a controller based on the relay-feedback. It focuses on how to select the approximate relay magnitude and fixed hysteresis to avoid losing control of the process, thus ensuring the safety of the process. However, the method is based on the mathematical analysis, which may not correctly match the real system. The method uses the Ziegler-Nichols tuning rules, which may not produce a good tuning result for switched-mode DC-AC power VSCs, as the application and experiment are not specified.

[0007] U.S. Pat. No. 10,128,752, B1 discloses a system a method for controller auto-tuning using a perturbation sequence. The perturbation may include but is not limited to a pseudo random binary sequence or a sinusoidal chirp sequence. The method is specified to multi -phase DC-DC buck converters. A perturbation sequence is injected onto a duty cycle for each phase of the converter, and an identification of the system is performed by determining a coefficient vector based on the output voltage and the set of perturbed duty cycle values; the controller is then tuned based on the derived coefficient vector. The dimension of the coefficient vector depends on the number of phases of the multi-phase buck converter; thus, the computing requirements increase exponentially with the number of phases. Moreover, the patent does not present the details of tuning procedures after acquiring the natural frequency of the process. [0008] U.S. Pat. No. US7,925,362 B2 discloses a method of using integral of relay feedback response for improving the tuning quality. It demonstrates that the effects of harmonics may be mitigated by feeding back the integral of the process output instead of feeding back the process output.

[0009] U.S. Pat. No. US6,438,431 B 1 discloses a method that replaces the relay unit by two relays, one standard relay unit and another a so-called parasitic relay, which together are arranged in a manner that allows for more points on the process frequency response to be accurately identified using only a single relay test.

[00010] The present invention proposes a method for the autotuning of a PID controller for the class of 3-phase DC-AC VSCs with an UC filter and a resistive load. Autotuning may be defined as the automatic online tuning of a controller either upon a user command or the occurrence of a pre-defmed event, or at pre-set intervals set by the user. The proposed method is based on the modified relay feedback test (MRFT) auto-tuning method, which uses a single test stage and single tuning stage. The present invention proposes an appropriate application of the MRFT auto-tuning method to the mentioned class of VSCs by devising a method and apparatus of doing so. The resulting controller is expected to produce good dynamic performance when applied to a wide range of converters of the family of 3 -phase DC-AC VSCs with an UC filter and a resistive load. SUMMARY

[00011] According to one or more aspects of the present disclosure, a system includes a PID controller having a voltage error input and a modulation index output, a digital pulse-width modulation (DPWM) module, power-electronic switches (such as IGBTs) configured as a 3- phase DC-AC VSC receiving an output of the DPWM, a voltage sensor configured to measure the output voltage in each of the three phases of the 3-phase DC-AC VSC then pass it on to an analog -to-digital converter to produce a digital equivalent of the measured voltage signals, and a modified relay feedback test (MRFT) block.

[00012] In one or more embodiments of the system according to the previous paragraph, the system further includes a software switching function (or software switch) to control the switching between a MRFT block and a PID controller.

[00013] In one or more embodiments of the system according to any one of the previous paragraphs, the system further includes instructions to perform a Park transformation (abc-dqO) and an inverse Park transformation (dqO-abc).

[00014] In one or more embodiments of the system according to any one of the previous paragraphs, an input to a MRFT block is an error signal obtained by comparing a reference output voltage (Vd-rej) and a transformed output voltage ( Vd). where the latter is obtained by transforming the three measured VSC AC phase voltages ( Voa , V 0 b, Voc) into the dqO format ( Vd, V q , Vo), then taking only the d-channel value of the transformed quantities.

[00015] In one or more embodiments of the system according to any one of the previous paragraphs, the 3-phase DC-AC VSC further includes a filter comprising at least one inductor and at least one capacitor and a resistive load.

[00016] According to one or more aspects of the present disclosure, a method of tuning a PID controller of a 3-phase DC-AC VSC providing a 3-phase voltage output is provided. The method includes: a) measuring the AC voltages (Voa, Vob, Voc) in each ofthe three phases ofthe VSC; b) performing a Park transformation (abc-to-dqO) of the measured AC voltages to obtain dc-valued quantities (Vd, V q , Vo); c) comparing only Vd to a desired voltage output, Vd-n·/. and producing an error signal; d) applying the error signal simultaneously to the input of a PID controller and to the input of a MRFT block, where the PID controller is of the format W c (s) = the Laplace variable; e) using a memory block to store the current value of the modulation index produced by the PID controller, but holding this value constant once control is switched from PID to MRFT; f) producing an output from the MRFT block (with a MRFT threshold parameter b set to 0.8 and a MRFT magnitude h set as appropriate by the user); g) using the MRFT block output as input to the bias block and simultaneously activating a software switch that couples the output of the bias block to an inverse Park transformation (dqO-abc) block; h) performing an inverse Park transformation (dqO-abc) on the value fed by the bias block to obtain abc modulation signals; i) using the abc modulation signals as input to the DPWM, which controls the switches that supply voltages to each of the three phases of the DC-AC VSC, thereby resulting in three AC voltages that are additionally modulated by the output of the MRFT block (plus a bias); j) measuring the frequency (Wo) and the amplitude ( ao ) of the self-sustained oscillations that appear in the DC transformed voltage (Vd) as a result of the MRFT; k) computing PID parameters K c , 7), and T d based on the following equations, wherein c = 0.95 ± 5%, = 0.36 ± 5%, and a = 0.12 ± 5%:

1) switching back from the MRFT block to the PID block using the software switch, where the PID block now uses the newly calculated parameters K c ,Ti, and T d ;

[00017] In one or more embodiments of the method according to the previous paragraph, only one of the transformed output voltage values, that being the d-channel value or Vd, is compared to the desired voltage output set point, Vd-ref

[00018] According to one or more aspects of the present disclosure, non-transitory computer readable storage medium having data stored therein representing software executable by a computer. The software includes instructions to:

• measure voltages of each of the three phases of a 3-phase DC-AC VSC;

perform a Park transformation (abc-to-dqO) of the measured AC voltages ( V oa , V 0 b, Voc) values to obtain dc-valued quantities ( Vd. V q . Vo); compare one of the output voltage values, that being the d-channel value or Vd, to a desired voltage output set-point, Vd-ref, and produce an error signal;

• apply the error signal simultaneously to the input of a PID controller and to the input of a MRFT block, , where the PID controller is of the format W c (s) = the Lalace variable;

• use a memory block to store the current value of the modulation index produced by the PID controller, but holding this value constant once control is switched from PID to MRFT; produce an output from the MRFT block (with a MRFT threshold parameter b set to 0.8 and a MRFT magnitude h set as appropriate by the user); use the MRFT block output as input to the bias block and simultaneously activate a software switch that couples the output of the bias block to an inverse Park transformation (dqO-abc) block; perform an inverse Park transformation (dqO-abc) on the value fed by the bias block to obtain abc modulation signals; use the abc modulation signals as input to the DPWM, which controls the switches that supply voltages to each of the three phases of the DC-AC VSC, thereby resulting in three AC voltages that are now modulated by the output of the MRFT block (plus a bias); measure the frequency (Wo) and the amplitude ( ao ) of the self-sustained oscillations that appear in the Vd as a result of the MRFT; compute PID parameters K c , 7), and T d based on the following equations, wherein ci = 0.95 ± 5%, C2 = 0.36 ± 5%, and c = 0.12 ± 5%:

• switch back from MRFT block to the PID block using the software switch, where the PID block now uses the newly calculated parameters K c , T i and T d parameters;

BRIEF DESCRIPTION OF THE DRAWINGS

[00019] The present invention will now be described, by way of example with reference to the accompanying drawings, in which:

[00020] Fig. 1 shows a graph of the switching conditions according to some embodiments; [00021] Fig. 2 shows a schematic diagram of a 3-phase DC-AC VSC having an MRFT block to tune a PID controller for according to some embodiments;

[00022] Fig. 3 shows a diagram that illustrates the dynamically changing hysteresis of the MRFT block according to some embodiments;

DETAILED DESCRIPTION

[00023] The present invention includes a method of using the modified relay feedback test autotuning method in order to tune a PID controller (201) of a 3-phase DC-AC VSC (200), where the resulting controller is expected to produce near-optimal dynamic performance when applied to a wide range of converters of the family of 3-phase DC-AC VSCs. Unlike the methods described in the BACKGROUND section, the modified relay feedback test autotuning method includes tuning rules that guarantee a desired gain or phase margin.

[00024] The MRFT auto-tuning is a non-parametric PID controller tuning method, meaning that it does not require identification of the system or any of its parameters. The MRFT auto tuning guarantees a specified gain or phase margin and can be designed to achieve high dynamic performance. The method consists of a simple test stage and a tuning stage. The PID controller to be tuned is of the following form, where K c is the proportional gain, Ti the integral time and Td the derivative time.

W c (s) = K c (l + + T d s ) (1)

The tuning rules of the PID controller are as follows, where coefficients ci. C2, and c are positive constants.

K c = c t K u , Ti = c 2 T u , T d = c 3 T u (2)

[00025] Ku and T u are outputs of the test stage that will be explained shortly. The coefficients of the tuning rules (ci, C2, c ). as well as a threshold parameter (//). must be selected before the online MRFT auto-tuning is conducted. The present invention proposes the values of fi = 0.8, ci = 0.95 ± 5%, C2 = 0.36 ± 5%, and c = 0.12 ± 5%, which were obtained using a simulation- based optimization procedure that has an objective of resulting in near-optimal dynamic performance of the PID controller;

[00026] With reference to Fig. 2, the test stage is performed by replacing the PID controller (201) with an MRFT block (202) and running the system in closed-loop for a certain desired duration, which typically is only from 25% to 50% the duration of a 50 Hz line cycle;

[00027] In its original form according to prior art, the MRFT block has the following logic: wherein the threshold parameter b is in the range () < // < 1, and where e m ax and e,,,,,, represent the last (positive) maximum and last (negative) minimum of the error signal e(t), respectively. ii(t-) is the control output immediately prior to time t. The auto-tuning is started with a test stage, where the MRFT block replaces the PID controller, and the system is runi in closed loop. Fig. 1 provides a diagrammatic illustration of the waveforms in the test stage of the MRFT auto-tuning method. The test is started with e m ax and e,,,,,, set to zero. Since u(t) is always non zero, oscillations start to develop in y(t) and e(t). Every time a minimum (&») or maximum (emax) of the error waveform is recorded, the corresponding switching condition (-fie m or -fie a ) for the upcoming half-cycle is updated. Oscillations typically stabilize after a few transient cycles, such that e ma x = Let the amplitude of the oscillations once they have stabilized be ao = e m ax = -e m m and let Wo = 2pIΊ\, be the measured frequency of oscillations (in rad/s). The MRFT thus acts as a hysteretic relay with a dynamically-changed hysteresis value that depends on the amplitude of oscillations ao. The ultimate gain, K u . is calculated as follows.

[00028] The original MRFT auto-tuning as described in prior art is not suitable for application to a 3-phase DC-AC VSC. The present invention proposes an appropriate application of the MRFT auto-tuning method to 3-phase DC-AC VSCs by devising the method and apparatus of doing so.

[00029] For the duration of the test stage of the MRFT autotuning method, a double modulation scheme is followed. The usual modulation of the 3-phase voltages of a 3-phase DC-AC VSC via the DPWM is maintained, and an extra modulation due to the MRFT block is superposed on top of it.

[00030] With reference to Fig. 2, the proposed procedure for doing so is as follows: a. An MRFT block (202) is used, which is governed by the nonlinear characteristic of a relay with magnitude (h). and a hysteresis depending on the amplitude (ao) of the self- sustained oscillations in the DC-valued transformed voltage (VJ) that are generated due to the MRFT block, with the hysteresis width computed as (2b c ao); the logic of the MRFT block is also illustrated in FIG. 3; b. A memory block (211) records the current value of the modulation index ( D ) produced by the d-channel PID controller (201), and is continuously updated whenever the PID controller (201) produces a new value; c. When the user desires to perform the MRFT autotuning, a switch is activated, upon which the current modulation ( D ) index stored in the memory block (211) is held constant; d. Simultaneously, the output of the MRFT block, which is equal to +h or -h (where h is the MRFT magnitude, typically 3% - 8% of D), is added using a bias block (213) to the value that is now held constant in the memory block (211); e. Also simultaneously, the output of the bias block is coupled to an inverse Park transformation (dqO-abc) block (210); this way double -modulated signal containing the “frozen” PID controller (201) output ( D ) that is stored in the memory block (211), plus the MRFT modulation (+h or -h), is sent to the DPWM block (208); thus, the new modulated d-channel duty-cycle is either to D + h when the relay ON, and to D - h when the relay is OFF.

[00031] The MRFT block logic may also be described in the form of an equation, as given in eq (5) below. Compared to eq (3), the logic in eq (5) includes D, which allows for the double modulation, and additionally it has been enhanced to allow for both positive and negative values for b, whereas the logic in (3) only allowed a positive b.

[00032] For improved accuracy, T„ and ao are best computed as the average over a few oscillation cycles.

[00033] The tuning stage is then simply to calculate K u using (4), then calculate the updated PID parameters using (2). [00034] An advantage of the present invention is that it can guarantee a desired gain or phase margin with only one test stage and one tuning stage, both without iterations, thus resulting in time savings and guaranteed stability.

[00035] A further advantage of the present invention is that the proposed tuning rules can achieve near optimal tuning for a large set of 3 -phase DC-AC with the appropriate choice of the tuning rule coefficients, ci. C2, C3 and the threshold parameter b. As given above, the suggested values of these parameters, obtained using obtained using a simulation-based optimization procedure that has an objective of resulting in near-optimal dynamic performance of the PID controller, are: b = 0.8, ci = 0.95 ± 5%, C2 = 0.36 ± 5%, and c = 0.12 ± 5%.

[00036] The present invention may be applied to standalone 3-phase DC-AC VSCs such as those found in uninterruptible power supplies and off-grid power systems..

[00037] The distinctive feature of the present invention is the adaptation of the MRFT autotuning method to 3-phase DC-AC VSCs, which guarantees the specified gain or phase margin defined by the user. Also the provided values of the threshold parameter b = 0.8 and the tuning rules coefficients ci = 0.95 ± 5%, C2 = 0.36 ± 5%, and c = 0.12 ± 5%, near-optimal dynamic performance of the autotuned PID controller is obtained for a wide range of designs of 3-phase DC-AC VSCs with an LC filter and a resistive load.

[00038] While the invention has been described with reference to an exemplary embodiment(s), it will be understood by those skilled in the art that various changes may be made, and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention is not limited to the disclosed embodiment s), but that the invention will include all embodiments falling within the scope of the appended claims.