1/4 periodic repetitive controller based on attraction law
Technical Field
The invention relates to a repetitive control technology, in particular to a quarter-cycle repetitive controller suitable for an inverter and also suitable for a periodic operation process in industrial occasions.
Background
A repetitive controller is designed according to an internal model principle, and a polynomial generated by a periodic signal needs to be placed in a system closed loop to form a periodic delay feedback link. No matter what the waveform of the input signal is, the controller outputs the input signal to accumulate cycle by cycle as long as the waveform appears repeatedly in the fundamental wave cycle, thereby playing the role of completely inhibiting the periodic interference. Current repetitive control techniques focus on frequency domain design based on an internal model principle. To achieve complete tracking/suppression of external periodic signals along the entire cycle, the internal model principle requires an implementation mechanism that includes the same periodic signal inside the system. The implementation mode is two types: one is that the pure time-lag link is positioned in the front channel; the other is in the feedback path. The feedback system with pure time-delay link can produce any periodic signal, the period of the signal is determined by the lag time constant, the formed closed loop system is infinite dimensional, and it has infinite poles on the imaginary axis. For a system with zero relative order (object transfer function is true), the closed-loop system can be exponentially stabilized by repetitive control, but for a strictly true system, the closed-loop system cannot be exponentially stabilized. Thus, to realize a controlled system to track any periodic signal (track any high frequency component), very strict requirements are required on the system structure. Tracking of the high frequency component of the reference input is usually abandoned and only the steady state error requirement on the low frequency band is guaranteed. One way is to set a low-pass filter before the pure time lag link to cut off the high frequency components above the shearing frequency.
When a discrete time-lag internal model is used, the closed-loop system is of finite dimension. In general, a stable minimum phase system may employ a feed-forward compensation design with zero-pole cancellation, and a stable non-minimum phase system may employ zero-phase compensation. The repetitive controller is designed by a Zero Phase Error Tracking Control (ZPETC) method, the stability of the repetitive controller is easy to judge and only depends on the selection of the gain of the repetitive controller. The zero phase compensation can cancel the phase shift introduced by the unstable zero, but cannot make the gain 1 after cancellation. The incomplete cancellation of the gain affects the tracking performance of the high frequency component, and further measures are needed to eliminate the effect.
Discrete repetitive control requires constructing an arbitrary periodic signal internal model with a period of N. The generation mechanism of the symmetric signal with the period of N is
Here, q is-1For one-step post-shift operators, i.e. for the signal f (t), there is q-1f (t) = f (t-1); x (t) is a periodic signal generated by the mechanism, x0(t) is the initial value of the signal, i.e. the value of the first period of the periodic signal x (t). We call 1-q-NTo generate a polynomial. The periodic signal generation mechanism represented by formula (1) is shown in fig. 1. According to the generation mode of the periodic signal, a periodic feedback link can be constructed
Here, v (t), u (t) are input and output signals of the controller, respectively, and u (t) is also called a control signal. The repetitive controller comprises a periodic feedback link and an e/v signal transformation link, wherein the e/v signal transformation link can be written as v (t) = f (e (t)). The periodic feedback loop represented by equation (2) is shown in fig. 2. Thus, the formula (2) can be written again
u(t)=u(t-N)+v(e(t-N)) (3)
As can be seen from equation (3), when the controller is implemented repeatedly, the data of the whole period of u (t-N) and e (t-N) needs to be stored.
Of interest is a finite order approximation of the time-lag internal model or a finite order internal model. For example, finite dimensional approximation of continuous internal models, quasi-feed forward methods (PFFs) model band-limited interference with finite order polynomials, comb filters are used as discrete time-lag internal models. In a simpler case, only the inner sine model is constructed for the tracking/suppression problem of the sine signal. Reducing the memory requirements of the controller is an important issue to be solved for real-time control. The odd harmonic repetitive controller designed by Ramon et al effectively utilizes the half-cycle symmetry of signals to derive a generator of half-cycle symmetric signals in the frequency domain. The use of such a generator results in a reduction of memory footprint by half. Because only frequency domain factors are considered, and signal symmetry is often depicted in a time domain, more complex symmetric signals cannot be effectively processed, and the technical defect that the memory occupation is still large exists.
Disclosure of Invention
In order to overcome the defects that the existing full-period repetitive controller and half-period repetitive controller can not effectively process more complicated symmetric signals and the memory occupation amount is large, the invention provides an 1/4 period repetitive controller based on an attraction law method, so that more complicated symmetric signals can be effectively processed, and the memory occupation space is obviously reduced.
The technical scheme adopted by the invention is as follows:
an 1/4 periodic repetitive controller based on an inverter sets a reference signal r (t) with 1/4 periodic symmetry, and has the following two symmetric conditions
And t is more than or equal to N/4; or
And t > N/4, wherein,
r0(t) is the initial value of the signal, i.e. the value of the first 1/4 cycles of the periodic signal, during the interval t>A constant value of zero is taken at N/4. Here, ,
the current time is judged to be at a specific position in a period according to specific conditions, and then whether +/-is +/-or +/-is judged according to 1/4 period symmetry characteristics.
Setting 1/4 a periodic feedback loop, the general structure of the repetitive controller can be expressed as: in the case of the situation p1,
and t is more than or equal to N/4; in the case of the situation p2,
and t is more than N/4, wherein u (t) is an output signal of the repetitive controller, and v (t) is an input signal of the periodic feedback link, and is obtained by an e/v signal conversion link. Aiming at a specific model of the system, a conversion mode of the e/v signal can be obtained according to an attraction law method.
Furthermore, the reference signal is a sine signal, and when t is more than or equal to N/4, the 1/4 periodic symmetry characteristic is
According to the symmetrical characteristic of the sine signal, when t is more than or equal to N/4, the periodic feedback link of the repetitive controller is
The following continuous suction law was constructed
Wherein ρ >0, >0,0< < 1; e (t) is a tracking error signal. Equation (10) is the finite time law of attraction, with a time of arrival of
The discretization form of the continuous suction law (10) is
Wherein 0< ρ <1, >0,0< < 1. To improve the system's immunity to periodic disturbances, the discrete attraction law (12) may be modified to
Wherein, for the case p1,in the case of the situation p2,d (t +1) is equivalent disturbance, d*(t +1) is a compensation signal for equivalent disturbance; w (t +1) is a system disturbance term.
The inverter dynamics model may be expressed in the form (and other periodic operation processes expressed by this model apply as well):
y(t+1)+a1y(t)+a2y(t-1)=b1u(t)+b2u(t-1)+w(t+1) (14)
wherein y (t) represents output at time t, u (t) represents a control quantity at time t, and w (t +1) is a disturbance signal at time t + 1. Accordingly, a specific expression of the e/v transformation link can be given as follows:
in the case of the situation p1,
in the case of the situation p2,
the reference signal for the inverter is a sinusoidal signal
Wherein z (t) = r (t +1) + a1y(t)+a2y(t-1)-b2u(t-1),e(t)=r(t)-y(t)。
After the repetitive controller design is complete, the performance of the 1/4 cycle repetitive controller can be measured by the following indicators characterizing the convergence process, which are monotonically decreasing zone boundaries ΔMDRAbsolute attraction layer boundary ΔAALSteady state error band boundary ΔSSEThe concrete expression is
1) Monotonous decreasing area (delta)MDR)
ΔMDR=max{ΔMDR1,ΔMDR2} (18)
In the formula,. DELTA.MDR1,ΔMDR2Is positive and real, satisfies
2) Absolute attraction layer (. DELTA.)AAL)
ΔAAL=max{ΔAAL1,ΔAAL2} (20)
In the formula,. DELTA.AAL1,ΔAAL2Is positive and real, and can be determined by
3) Steady state error band (Δ)SSE)
ΔSSECan be based onAALDetermining:
a. when 0 is present<ΔAAL<x1Time of flight
ΔSSE=ΔAAL(22)
b. When x is1≤ΔAAL<x2Time of flight
c. When deltaAAL≥x2Time of flight
ΔSSE=ΔAAL(24)
Wherein x is1Is an equation
Root of Zhengguo, x2Is an equation
The root of Zhengguo.
1/4 the adjustable parameters of the periodic repetitive controller include rho, and the parameter setting can be performed according to the above-mentioned indexes characterizing the convergence performance of the system.
The attraction law method provided by the invention is also suitable for the whole-period repetitive control. When t is more than or equal to N, the reference signal has the symmetrical characteristic of
r(t)=r(t-N)+r0(t) (27)
Wherein r is0(t) is the initial value of the signal, i.e. the value of the first period of the periodic signal, during the interval t>A value of zero is constantly taken above N; the controller has the expression of
Wherein z (t) = r (t +1) + a1y(t)+a2y(t-1)-b2u (t-1); the boundary condition is the same as the 1/4 cycle repetitive control boundary condition, and is not described herein.
The attraction law method provided by the invention is also suitable for feedback control. When t is more than or equal to 1, the reference signal satisfies
r(t)=r(t-1)+r0(t) (29)
Wherein r is0(t) is the initial value of the signal, i.e. the value of the first period of the periodic signal, during the interval t>1, taking a zero value constantly; the controller is
Wherein z (t) = r (t +1) + a1y(t)+a2y(t-1)-b2u(t-1)。
The technical idea of the invention is that the current design of the repetitive controller method mostly focuses on frequency domain design, while the signal symmetry characteristic is shown in the time domain. Therefore, the time domain design method is more direct and unique in designing the repetitive controller, and the designed controller is simpler and more visual.
The invention provides a time domain design of 1/4 periodic repetitive controller for a reference signal with 1/4 periodic symmetry. 1/4 the cycle repeat controller can further reduce the occupied space of the memory, and the memory requirement is only one fourth of the whole cycle repeat controller; the design method provided designs the repetitive controller according to different symmetrical characteristics of signals in different time intervals, and corrects the control signal every 1/4 cycles to realize complete suppression of interference signals with the same cycle characteristics. And compared with a full-period repetitive controller, the response time is faster, and the method is beneficial to accelerating disturbance elimination.
The invention can effectively process more complex symmetrical reference signals, greatly reduce the occupied space of the memory, and has the advantages of quick convergence performance, accelerated interference suppression and high control precision.
Drawings
Fig. 1 is a block diagram of a periodic signal generator.
Fig. 2 is a block diagram of a periodic feedback link.
FIG. 3 is a block diagram of 1/4 periodic signal generators, wherein FIG. 3a is for the case of p1 and FIG. 3b is for the case of p 2.
FIG. 4 is a diagram illustrating various types of reference signals according to the present invention, wherein FIG. 4a is a diagram illustrating various types of reference signals with 1/4 periodic symmetry, for a total of 60 cases; fig. 4b is a diagram equivalent to one-half symmetrical characteristic reference signal types, totaling 4 types.
Fig. 5 is a block diagram of 1/4 periodic feedback links provided by the present invention, wherein fig. 5a is for the case of p1 and fig. 5b is for the case of p 2.
Fig. 6 is a block diagram of an 1/4 cycle repetitive control system provided by the present invention, wherein fig. 6a is for the case of p1, and fig. 6b is for the case of p 2.
Fig. 7 is a block diagram of an inverter control system according to an embodiment of the present invention.
Fig. 8 is a schematic block diagram of an inverter according to an embodiment of the present invention.
Fig. 9 shows an error signal when feedback control is used in the embodiment of the present invention.
FIG. 10 is a diagram illustrating an error signal when the full-period repetitive control is adopted in the embodiment of the present invention.
FIG. 11 is a diagram illustrating control signals generated when the full-period repetitive control is adopted in the embodiment of the present invention.
Fig. 12 shows an error signal when 1/4 cycle repetitive control is adopted in the embodiment of the invention.
Fig. 13 is a control signal generated when 1/4 cycle repetitive control is employed in an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings.
Referring to fig. 3 to 8, the controller is repeated at 1/4 cycles based on the attraction law method.
First step, determining 1/4 a periodic reference signal
The generation of the periodic reference signal with 1/4 periodic symmetry may employ the following mechanisms, which may be represented as: for case p1
And t is more than or equal to N/4;
for case p2
And t > N/4.
1/4 periodic reference signal generation mechanism3, respectively. The 1/4 periodic reference signal generated under this mechanism is shown in FIG. 4, where r0(t) is the initial value of the signal, i.e. the value of the first 1/4 cycles of the periodic signal, during the interval t>The value of N/4 is constantly zero; the quarter-period symmetry of the reference signal has 64 cases, of which there are 60 cases with quarter-symmetry properties, as shown in fig. 4 a; there are 4 that can be equated to satisfying half the symmetry property, as shown in fig. 4 b.
For a sinusoidal reference signal, when t ≧ N/4, the specific generation mechanism of 1/4 periodic symmetry can be expressed as
Design 1/4 periodic repetitive controller
With this generation mechanism, the 1/4 cycle repetitive controller is designed to correspond to the general form: for case p1
And t is more than or equal to N/4; for case p2
And t > N/4. The periodic feedback loop is shown in fig. 5.
Aiming at the sinusoidal reference signal, when t is more than or equal to N/4, the feedback link of the 1/4 periodic repetitive controller is
Thirdly, determining a controlled object model
To give v (t) in the controller, take the following inverter control system model as an example:
y(t+1)+a1y(t)+a2y(t-1)=b1u(t)+b2u(t-1)+w(t+1) (7)
wherein the parameter a1, a2, b1, b2Can be obtained through mechanism modeling or experimental modeling; perturbation signal w (t) has 1/4 periodic symmetry; given a reference signal r (t), an output signal y (t), a tracking error e (t) = r (t) -y (t).
Fourthly, constructing a tracking error attraction law equation of the discrete system
Wherein for the case of p1For the case of p2The current time is needed to be judged to be at a specific position in a period, and then whether +/-is +/-or +/-is judged according to 1/4 periodic symmetry characteristics.
And fifthly, giving a specific v (t) expression of the e/v conversion link: for case p1
For case p2
The reference signal for the inverter is a sinusoidal signal
Wherein z (t) = r (t +1) + a1y(t)+a2y(t-1)-b2u (t-1), tracking error e (t) = r (t) -y (t).
A block diagram of a control system employing the repetitive controller is shown in fig. 6. Comprising a function f (e (t)) converted from an error signal e (t) to a control signal v (t), 1/4 periodically repeating the controller module 101 and the controlled system module 102.
The sixth step, the controller parameter setting
After the repetitive controller design is completed, the controller parameters thereof need to be set. The adjustable parameters comprise rho, and the specific parameter setting work can be carried out according to the following indexes representing the system convergence. In order to characterize the tracking error convergence process, the invention introduces concepts of a monotone decreasing area, an absolute attraction layer and a steady-state error band, which are specifically defined as follows:
monotonous decreasing region deltaMDR
Absolute attraction layer ΔAAL
Steady state error band ΔSSE
1) Monotonous decreasing area (delta)MDR)
ΔMDR=max{ΔMDR1,ΔMDR2} (15)
In the formula,. DELTA.MDR1,ΔMDR2Is positive and real, and satisfies
2) Absolute attraction layer (. DELTA.)AAL)
ΔAAL=max{ΔAAL1,ΔAAL2} (17)
In the formula,. DELTA.AAL1,ΔAAL2Is a positive real number, can be determined by the following formula,
3) steady state error band (Δ)SSE)
ΔSSECan be based onAALTo be determined.
a. When 0 is present<ΔAAL<x1Time of flight
ΔSSE=ΔAAL(19)
b. When x is1≤ΔAAL<x2Time of flight
c. When deltaAAL≥x2Time of flight
ΔSSE=ΔAAL(21)
Wherein x is1Is an equation
Root of Zhengguo, x2Is an equation
The root of Zhengguo.
The 1/4 cycle repetitive controller design described above is described as follows:
1) introduction of d into the law of attraction*(t +1) reflects the suppression measure for the disturbance signal of a given periodic pattern, d*And (t +1) is a compensation value of d (t +1) for compensating the aperiodic disturbance.
A direct method for determining the compensation value is d*(t+1)=d(t)。
Here, a method of determining the compensation value when the d (t) bound is known is provided. Let the upper and lower bounds of the equivalent disturbance d (t) be du、dlThen d (t +1) satisfies the inequality
dl≤d(t)≤du
Note the book Then the process of the first step is carried out,
is convenient to use
2) In the formulas (8), (9), (10) and (11), e (t), y (t-1), y (t-t ' +1), y (t-t '), y (t-t ' -1) can be obtained through measurement, and u (t-1), u (t-t '), u (t-t ' -1) are stored values of the control signals and can be read from the memory.
3) For feedback control, its reference signal symmetry characteristic is r (t) = r (t-1). Therefore, the 1/4 periodic repetitive controller proposed in the present invention is also suitable for the constant regulation problem, where the equivalent disturbance is d (t) = w (t-1).
4) The control is repeated in a whole period, and the reference signal symmetry characteristic is r (t) = r (t-N). The equivalent disturbance is d (t) = w (t) — w (t-N), and the invention is also applicable to the whole period repetition control.
5) The method proposed by the invention is also applicable to five-parameter models (inverter models usually employ five-parameter models). The five-parameter model is as follows
y(t+1)+a1y(t)+a2y(t-1)=b1u(t)+b2u(t-1)+c1+w(t+1) (24)
In the formula, c1Is a constant value. GetIt is substituted into the formula (29),
get
Namely, it is
That is, formula (25) can be changed to
y(t+1)=-a1y(t)-a2y(t-1)+b1uc(t)+b2uc(t-1)+d(t+1) (28)
The five-parameter model can be converted into a four-parameter model by equation (28). In this way, iterative controller design with respect to a five-parameter model may be performed with reference to a four-parameter model.
6) The 1/4 cycle repeat controller is given for a second order system (7), and the design results of a higher order system can be given in the same way.
Examples
The reference signal is a sinusoidal signal, and according to the embodiment shown in fig. 3a, 1/4 period symmetry characteristic of the sinusoidal signal is formula (3), and according to the symmetry characteristic of the signal, the repetitive controller can be designed as formula (6).
The present embodiment controls the inverter output waveform. The adopted inverter system comprises a given signal part, an 1/4 period repetition controller, a PWM modulation part, an inverter main circuit (comprising a later-stage LC filter circuit and the like) and a detection circuit. Wherein, the given signal, the repetitive controller and the PWM module are all realized by the DSP, and the rest parts are realized by the hardware circuit. The whole system is given the desired signal to be output by the DSP, which is equivalent to the input signal of the whole closed loop system. The high-low pulse signals which are subjected to PWM modulation and can drive a switching tube of a bridge circuit of the inverter are changed into high-low pulse signals, the output of the inverter is reduced into sine signals through an LC filter circuit, the sine signals are sampled by a detection circuit and returned to a DSP, and the input signals are corrected after 1/4-period repetitive control action, so that the waveform tracking control of the inverter is realized.
The following provides the design process and implementation results of the inverter 1/4 periodic repetitive controller, and compares the results with the effects of conventional feedback control and full-period repetitive control.
First, a system mathematical model is established. The inverter control system used in the present embodiment is as shown in fig. 7. The system comprises an e/v conversion link f (e (t)), a period feedback link, a period signal PWM modulation module 201, an inverter main circuit 202 and a detection circuit 203. The first two constitute 1/4 cycle repetitive controller 301, and the last three constitute inverter system 302.
Modeling is carried out by taking the main circuit of the inverter, the later-stage LC filter circuit and the sampling circuit as objects to obtain the following second-order difference equation model
y(t+1)+a1y(t)+a2y(t-1)=b1u(t)+b2u(t-1)+w(t+1) (29)
Wherein y (t) represents the output voltage of the inverter at the time t, u (t) represents the control quantity of the inverter at the time t, and w (t +1) represents the uncertain characteristic of the system and consists of external interference, measurement noise and unmodeled characteristic. Parameter a in the model1,a2,b1,b2Is obtained by mechanism modeling, and the specific value is
a1=-1.3414,a2=0.7254,b1=0.1867,b2=0.1769
Feedback control: formula (6), taking d (t +1) = w (t +1) -w (t),
1/4 periodic repetitive control: given a reference signal r (t), the system tracking error dynamic equation is
1/4 the e/v signal conversion link in the periodic repetitive controller is designed as follows
In an embodiment, the reference signal r (k) =19.8sin (2 pi fkT) of the inverters) In volts (V), signal frequency f =50Hz, sampling time TsIn equation (15) =0.0001s, ρ =0.3, =0.01, = 0.5. Set the disturbance signal as
The antecedent is a random disturbance signal, and the consequent is used for simulating an odd harmonic disturbance signal of the inverter. In this case, the upper and lower bounds of d (t +1) are equal in value and opposite in sign. Therefore, can be taken d*(t +1) =0, error e (t) will converge to radius ΔSSEIn the neighborhood of the origin of (c).
In practice, the upper and lower bounds of d (t +1) will be closer to zero and the error will converge to a smaller neighborhood of the origin.
And (3) simulating the system parameters and the control parameters, checking 1/4 the implementation result of the periodic repetitive control strategy on the inverter system, and comparing the implementation result with the implementation results of feedback control and full-period repetitive control:
1) the error signal under the action of the feedback controller is shown in fig. 9. It can be seen that although the error signal converges, the error signal has a large amplitude and exhibits a distinct periodic characteristic, since the periodic harmonic disturbance signal of the control is not eliminated, it is known that the feedback controller does not have the periodic error suppression capability.
2) The error signal under the action of the full-period repetitive controller is shown in fig. 10, and the control signal is shown in fig. 11. Estimates of the controller parameters ρ =0.3, =0.01, =0.5 and Δ (Δ =0.05 after removing the odd harmonic disturbance) can give a threshold value characterizing the convergence performance of the system: monotonous decreasing region deltaMDR=0.7756V, absolute attraction layer ΔAAL=0.2797V, steady state error band ΔSSE= 0.2994V. The boundary values in FIG. 10 are monotonically decreasing regions (Δ) from large to smallMDR) Steady state error band (delta)SSE) And absolute attraction layer (. DELTA.)AAL). As shown in fig. 10, the error convergence is faster in the case of disturbance by using the full-period repetitive control, the effect of the error signal is the same as that by using the feedback control in the first full period, and the error signal quickly converges into the characterization system convergence boundary after 0.02 second.
3) The error signal under the action of the controller repeated at 1/4 cycles is shown in fig. 12, and the control signal is shown in fig. 13. Reference deviceEstimates of p =0.3, =0.01, =0.5 and Δ for the cycle-repeated controller parameters (Δ =0.05 after removing odd harmonic disturbances) can give a threshold value characterizing the convergence performance of the system: monotonous decreasing region deltaMDR=0.7756V, absolute attraction layer ΔAAL=0.2797V, steady state error band ΔSSE= 0.2994V. The boundary values in FIG. 12 are monotonically decreasing regions (Δ) from large to smallMDR) Steady state error band (delta)SSE) And absolute attraction layer (. DELTA.)AAL). As shown in fig. 12, the error converges more rapidly under the influence of disturbance with 1/4 cycle repeat control than with full cycle repeat control, the control effect is the same in the first quarter cycle error and with feedback control, and the error signal converges rapidly within the characterized system convergence bounds after 0.005 seconds. The odd harmonic disturbing signals are eliminated, leaving only small error fluctuations caused by the random disturbing signals. Therefore, the 1/4 periodic repetitive controller can effectively and quickly eliminate periodic harmonic disturbance signals and greatly reduce the occupied memory space.