CN114740827A - Second-order filter-based control loop performance index measurement method - Google Patents

Second-order filter-based control loop performance index measurement method Download PDF

Info

Publication number
CN114740827A
CN114740827A CN202210438424.0A CN202210438424A CN114740827A CN 114740827 A CN114740827 A CN 114740827A CN 202210438424 A CN202210438424 A CN 202210438424A CN 114740827 A CN114740827 A CN 114740827A
Authority
CN
China
Prior art keywords
signal
frequency
control loop
sinusoidal signal
phase angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210438424.0A
Other languages
Chinese (zh)
Other versions
CN114740827B (en
Inventor
王嘉晨
刘青
侯琪
曾祥辰
黄山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hebei University of Technology
Original Assignee
Hebei University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hebei University of Technology filed Critical Hebei University of Technology
Priority to CN202210438424.0A priority Critical patent/CN114740827B/en
Publication of CN114740827A publication Critical patent/CN114740827A/en
Application granted granted Critical
Publication of CN114740827B publication Critical patent/CN114740827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0243Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults model based detection method, e.g. first-principles knowledge model
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)
  • Measurement Of Resistance Or Impedance (AREA)

Abstract

The invention discloses a method for measuring performance indexes of a control loop based on a second-order filter, which adopts the idea of dynamic frequency searching, combines a second-order band-pass filter B(s), a second-order high-pass filter H(s) and a PI regulator, has the measuring time far shorter than that of the traditional sine frequency scanning method, has high detection speed and high accuracy, and can be suitable for an alternating current power grid with rich background harmonics. The performance index measuring method can measure the cut-off frequency and the phase angle margin of the control loop, and provides valuable reference information for stability analysis, closed-loop parameter design and online self-adaptive adjustment of the control system.

Description

一种基于二阶滤波器的控制环路性能指标测量方法A Measurement Method of Control Loop Performance Index Based on Second-Order Filter

技术领域technical field

本发明属于自动控制系统技术领域,主要实现对控制环路截止频率和相角裕度的连续快速测量,具体是一种基于二阶滤波器的控制环路性能指标测量方法。The invention belongs to the technical field of automatic control systems, and mainly realizes continuous and rapid measurement of the cut-off frequency and phase angle margin of a control loop, in particular to a method for measuring the performance index of a control loop based on a second-order filter.

背景技术Background technique

在自动控制理论中,控制环路性能指标(包括截止频率和相位裕度)可以表征控制系统动态性能和稳态性能。在控制系统的设计阶段,设计者需要通过科学合理地设计控制器的参数来调整它,从而使得控制系统获得满意的静、动态性能。因此,控制环路性能指标有非常的广泛应用,如服务器/航天器电源的在线动态性能监测,级联功率变换器的稳定性分析,新能源并网稳定性分析以及控制器参数的自适应在线调整等。In automatic control theory, control loop performance indicators (including cutoff frequency and phase margin) can characterize the dynamic and steady-state performance of the control system. In the design stage of the control system, the designer needs to adjust it by scientifically and rationally designing the parameters of the controller, so that the control system can obtain satisfactory static and dynamic performance. Therefore, the control loop performance index has a very wide range of applications, such as online dynamic performance monitoring of server/spacecraft power supplies, stability analysis of cascaded power converters, new energy grid-connected stability analysis, and adaptive online controller parameters. adjustment etc.

通常,控制环路性能指标的获取多基于控制系统的小信号线性化模型,通过理论推导被控变量与控制量之间的传递函数得到。但是由于以下两种原因,理论推导出的结果与实际值之间存在误差:1)电气系统中存在大量的非线性设备(如弧焊机、饱和变压器、电机等)以及开关器件(如运放、开关管等),这些强非线性、强耦合系统的线性化模型无法完全等效地表征实际的系统;2)受负载变化、状态变化、温漂、老化等多种因素的复合影响,系统参数会发生短时间尺度/长时间尺度上的变化。因此,快速准确地测量控制环路的实际性能指标信息,对于调节器的闭环优化设计,控制系统的动、静态性能保障,强时变系统的自适应控制具有极其重要的意义。Usually, the acquisition of control loop performance indicators is mostly based on the small-signal linearization model of the control system, which is obtained by theoretically deriving the transfer function between the controlled variable and the controlled variable. However, there are errors between the theoretically derived results and the actual values due to the following two reasons: 1) There are a large number of nonlinear devices (such as arc welders, saturated transformers, motors, etc.) and switching devices (such as op amps) in the electrical system , switch tubes, etc.), the linearized models of these strongly nonlinear and strongly coupled systems cannot fully and equivalently represent the actual system; 2) Affected by the compound effects of load changes, state changes, temperature drift, aging and other factors, the system Parameter changes on short time scale/long time scale. Therefore, fast and accurate measurement of the actual performance index information of the control loop is of great significance for the closed-loop optimization design of the regulator, the guarantee of the dynamic and static performance of the control system, and the adaptive control of the strongly time-varying system.

现有的测量方法一般都是基于小信号注入的方法实现,应用比较广泛的主要有两类:1)正弦扫频法;2)宽频带测量法。其中,正弦扫频法不仅本身需要逐次注入不同频率的信号,而且后续往往需要傅里叶分解处理得到精确结果,因此测量时间长达数秒。而宽频带测量法为了缩短测量时间,采用不同的宽频小信号(例如伪随机二进制序列,PRBS)作为扰动信号,仅用一次注入进行环路增益测量,测量时间成功缩短到了100毫秒(测量光谱:10Hz-100kHz)。然而,在弱电网中,应尽快测量环路增益,现有的方法仍然无法满足弱电网中功率变换器自适应控制的需求。The existing measurement methods are generally implemented based on the small signal injection method, and there are mainly two types of widely used methods: 1) a sine frequency sweep method; 2) a broadband measurement method. Among them, the sine frequency sweep method not only needs to inject signals of different frequencies successively, but also often requires Fourier decomposition processing to obtain accurate results, so the measurement time is as long as several seconds. In the broadband measurement method, in order to shorten the measurement time, different broadband small signals (such as pseudo-random binary sequences, PRBS) are used as disturbance signals, and only one injection is used to measure the loop gain, and the measurement time is successfully shortened to 100 milliseconds (measurement spectrum: 10Hz-100kHz). However, in weak grids, the loop gain should be measured as soon as possible, and the existing methods still cannot meet the needs of adaptive control of power converters in weak grids.

发明内容SUMMARY OF THE INVENTION

针对现有技术的不足,为了进一步缩短测量时间,更好的满足微电网这种受阻抗影响环路增益变化较快的场景,本发明旨在提出一种基于二阶滤波器的控制环路性能指标测量方法,以实现几毫秒内完成控制环路截止频率与相角裕度的测量,为控制系统调节器的闭环优化设计提供重要的信息支撑,从而保障控制系统在参数扰动情况下的动、静态性能。同时,它还提供了满足谐波衰减的额外优势,这在背景谐波丰富的交流微电网应用中很有价值。In view of the deficiencies of the prior art, in order to further shorten the measurement time and better meet the situation of the microgrid, where the loop gain changes rapidly due to the influence of impedance, the present invention aims to propose a control loop performance based on a second-order filter. The index measurement method is used to realize the measurement of the cut-off frequency and phase angle margin of the control loop within a few milliseconds, and to provide important information support for the closed-loop optimization design of the control system regulator, so as to ensure the dynamic and static performance. At the same time, it provides the additional advantage of satisfying harmonic attenuation, which is valuable in AC microgrid applications with rich background harmonics.

本发明解决所述技术问题的技术方案是:设计一种基于二阶滤波器的控制环路性能指标测量方法,该方法包括如下步骤:The technical solution of the present invention to solve the technical problem is: designing a method for measuring the performance index of a control loop based on a second-order filter, and the method includes the following steps:

(1)注入小信号(1) inject small signal

往被测控制环路中注入一个角频率可变的正弦波小信号(xp),其表达式为

Figure BDA0003607219020000031
其中,A为正弦波小信号(xp)的幅值,
Figure BDA0003607219020000032
为正弦波小信号(xp)的角频率;A small sine wave signal (x p ) with variable angular frequency is injected into the control loop under test, and its expression is
Figure BDA0003607219020000031
where A is the amplitude of the sine wave small signal (x p ),
Figure BDA0003607219020000032
is the angular frequency of the sine wave small signal (x p );

(2)提取检测信号(2) Extract the detection signal

在控制环路的信号注入点的左右两侧设置有检测信号接口,分别用于实时检测信号注入点左侧检测信号

Figure BDA0003607219020000033
与右侧检测信号
Figure BDA0003607219020000034
左侧检测信号
Figure BDA0003607219020000035
与右侧检测信号
Figure BDA0003607219020000036
均分别通过二阶带通滤波器B(s)和二阶高通滤波器H(s)进行处理,分别得到此时检测信号在当前角频率
Figure BDA0003607219020000037
下的左侧正弦信号(xin)与右侧正弦信号(xout)的实部和虚部,
Figure BDA0003607219020000038
表示左侧正弦信号(xin)的实部与虚部,
Figure BDA0003607219020000039
表示右侧正弦信号(xout)的实部与虚部;利用
Figure BDA00036072190200000310
Figure BDA00036072190200000311
得到左侧待测信号(xin)与右侧待测信号(xout)的幅值与相角;There are detection signal interfaces on the left and right sides of the signal injection point of the control loop, which are respectively used for real-time detection of the detection signal on the left side of the signal injection point.
Figure BDA0003607219020000033
with right side heartbeat
Figure BDA0003607219020000034
Left detection signal
Figure BDA0003607219020000035
with right side heartbeat
Figure BDA0003607219020000036
Both are processed by the second-order band-pass filter B(s) and the second-order high-pass filter H(s), respectively, to obtain the detection signal at the current corner frequency.
Figure BDA0003607219020000037
The real and imaginary parts of the left sinusoidal signal (x in ) and the right sinusoidal signal (x out ) below,
Figure BDA0003607219020000038
represents the real and imaginary parts of the left sinusoidal signal (x in ),
Figure BDA0003607219020000039
represents the real and imaginary parts of the right-hand sinusoidal signal (x out ); using
Figure BDA00036072190200000310
Figure BDA00036072190200000311
Obtain the amplitude and phase angle of the signal to be measured on the left (x in ) and the signal to be measured on the right (x out );

(3)动态寻频(3) Dynamic frequency seeking

待测控制环路开环传递函数(Tm)与横坐标的交点(ωc)就是期望得到的截止频率;由于

Figure BDA00036072190200000312
即在角频率
Figure BDA00036072190200000313
下,满足|Tm|=|xout|/|xin|;令e|x|=|xout|-|xin|,将步骤(2)中得到左侧待测信号(xin)与右侧待测信号(xout)的幅值代入到该公式中,即可依据e|x|与0的大小关系来判断此时注入频率
Figure BDA00036072190200000314
与截止频率的大小关系;The intersection (ω c ) of the open-loop transfer function (T m ) of the control loop under test and the abscissa is the desired cut-off frequency; since
Figure BDA00036072190200000312
i.e. at angular frequency
Figure BDA00036072190200000313
, satisfy |T m |=|x out |/|x in |; let e |x| =|x out |-|x in | Substitute the amplitude of the signal to be measured (x out ) on the right side into the formula, and then the injection frequency can be judged according to the relationship between e |x| and 0
Figure BDA00036072190200000314
The magnitude of the relationship with the cutoff frequency;

当e|x|=0时,即

Figure BDA00036072190200000315
时,当前角频率
Figure BDA00036072190200000316
即为控制环路的截止频率(ωc);截止频率(ωc)即为控制环路的带宽;When e |x| = 0, that is
Figure BDA00036072190200000315
, the current corner frequency
Figure BDA00036072190200000316
is the cut-off frequency (ω c ) of the control loop; the cut-off frequency (ω c ) is the bandwidth of the control loop;

当e|x|≠1时,则在当前角频率

Figure BDA0003607219020000041
下,将
Figure BDA0003607219020000042
减去
Figure BDA0003607219020000043
得到的值输入到一个PI调节器,将PI调节器的输出加上当前角频率
Figure BDA0003607219020000044
即可得到注入信号(xp)的新的角频率
Figure BDA0003607219020000045
然后将注入信号(xp)中的
Figure BDA0003607219020000046
调整为
Figure BDA0003607219020000047
继续执行步骤(2)的提取检测信号过程,并将在新的角频率
Figure BDA0003607219020000048
下的左侧正弦信号(xin)与右侧正弦信号(xout)的幅值代入e|x|=|xout|-|xin|,若此时仍然e|x|≠1,不断重复上述过程,不断调整角频率,直至e|x|=0,实现动态寻频;When e |x| ≠ 1, then at the current angular frequency
Figure BDA0003607219020000041
down, will
Figure BDA0003607219020000042
minus
Figure BDA0003607219020000043
The obtained value is input to a PI regulator, and the output of the PI regulator is added to the current corner frequency
Figure BDA0003607219020000044
The new angular frequency of the injected signal (x p ) can be obtained
Figure BDA0003607219020000045
Then inject the signal into the signal (x p )
Figure BDA0003607219020000046
tweak to
Figure BDA0003607219020000047
Continue to perform the extraction detection signal process of step (2), and
Figure BDA0003607219020000048
The amplitudes of the left sinusoidal signal (x in ) and the right sinusoidal signal (x out ) below are substituted into e |x| = |x out |-|x in |, if e |x| Repeat the above process, continuously adjust the angular frequency, until e |x| =0, to achieve dynamic frequency search;

(4)相角裕度计算(4) Calculation of phase angle margin

根据步骤(3)得到的截止频率(ωc),将该角频率下的左侧正弦信号(xin)与右侧正弦信号(xout)的相角将其代入公式PM=∠xout-∠xin,得到被测控制环路的相角裕度。According to the cut-off frequency (ω c ) obtained in step (3), substitute the phase angle between the left sinusoidal signal (x in ) and the right sinusoidal signal (x out ) at the angular frequency into the formula PM=∠x out − ∠x in , the phase angle margin of the control loop under test is obtained.

与现有技术相比,本发明的有益效果为:本发明提出的控制环路性能指标测量方法采用了动态寻频的思路,将二阶高通滤波器H(s)和二阶带通滤波器B(s)以及PI调节器相结合,测量时间(10ms内)远小于传统的正弦扫频法,检测速度快,准确性高,而且可以适用于背景谐波丰富的交流电网中。该性能指标测量方法可以测量控制环路的截止频率与相角裕度,为控制系统的稳定性分析、闭环参数设计、在线自适应调整提供了宝贵的参考信息。Compared with the prior art, the beneficial effects of the present invention are as follows: the method for measuring the performance index of the control loop proposed by the present invention adopts the idea of dynamic frequency seeking, and combines the second-order high-pass filter H(s) and the second-order band-pass filter. The combination of B(s) and PI regulator, the measurement time (within 10ms) is much shorter than the traditional sine frequency sweep method, the detection speed is fast, the accuracy is high, and it can be applied to the AC power grid with rich background harmonics. This performance index measurement method can measure the cut-off frequency and phase angle margin of the control loop, which provides valuable reference information for the stability analysis, closed-loop parameter design, and online adaptive adjustment of the control system.

附图说明Description of drawings

图1为本发明一种基于二阶滤波器的控制环路性能指标测量方法一种实施例的控制环路结构图。FIG. 1 is a control loop structure diagram of an embodiment of a method for measuring a control loop performance index based on a second-order filter of the present invention.

图2为本发明一种基于二阶滤波器的控制环路性能指标测量方法的带宽测量原理示意图。FIG. 2 is a schematic diagram of a bandwidth measurement principle of a method for measuring a performance index of a control loop based on a second-order filter of the present invention.

图3为本发明一种基于二阶滤波器的控制环路性能指标测量方法一种实施例的测量原理框图。FIG. 3 is a measurement principle block diagram of an embodiment of a method for measuring a performance index of a control loop based on a second-order filter according to the present invention.

图4为采用本发明一种基于二阶滤波器的控制环路性能指标测量方法对图1中的控制环路iG环在多次改变单相并网逆变器(含有5%背景谐波)的并网阻抗ZG时的测量结果图。Fig. 4 is a method for measuring the performance index of the control loop based on a second-order filter of the present invention to change the single-phase grid-connected inverter (containing 5% background harmonics) for the control loop i G loop in Fig. 1 multiple times. ) of the grid-connected impedance Z G when the measurement results.

图5为图4的局部放大图。FIG. 5 is a partial enlarged view of FIG. 4 .

具体实施例specific embodiment

下面结合附图对本发明的技术方案进行详细说明。The technical solutions of the present invention will be described in detail below with reference to the accompanying drawings.

在本实施例中,被测控制环路采用比较常见的单相全桥逆变电路,滤波器为LCL型滤波器。如图1所示,本发明提供的控制环路性能指标测量方法(即图1中的稳定裕度监视器),为体现其抗噪性能和动态性能,特在电网中引入5%的背景谐波,并且多次改变并网阻抗ZG改变系统的性能指标,现在此场景下测试最外环即iG环(可视为一个电流闭环的系统)的截止频率和相位裕度。In this embodiment, the control loop under test adopts a relatively common single-phase full-bridge inverter circuit, and the filter is an LCL type filter. As shown in Figure 1, the method for measuring the performance index of the control loop provided by the present invention (ie, the stability margin monitor in Figure 1), in order to reflect its anti-noise performance and dynamic performance, a 5% background harmonic is introduced into the power grid. In this scenario, the cutoff frequency and phase margin of the outermost loop, i.e., the iG loop (which can be regarded as a current closed-loop system), are tested.

本发明提供一种基于二阶滤波器的控制环路性能指标测量方法,该方法包括如下步骤:The present invention provides a method for measuring a control loop performance index based on a second-order filter, the method comprising the following steps:

(1)注入小信号(1) inject small signal

往被测控制环路中注入一个角频率可变的正弦波小信号xp,其表达式为

Figure BDA0003607219020000051
其中,A为正弦波小信号xp的幅值,
Figure BDA0003607219020000052
为正弦波小信号xp的角频率;t为时间,下同;本实施例中,往控制环路中注入一个幅值A为0.5、角频率初始值
Figure BDA0003607219020000053
为1000Hz的正弦波小信号。A small sine wave signal x p with variable angular frequency is injected into the control loop under test, and its expression is
Figure BDA0003607219020000051
Among them, A is the amplitude of the sine wave small signal x p ,
Figure BDA0003607219020000052
is the angular frequency of the sine wave small signal x p ; t is the time, the same below; in this embodiment, an amplitude A is 0.5 and the initial value of the angular frequency is injected into the control loop
Figure BDA0003607219020000053
It is a 1000Hz sine wave small signal.

(2)提取检测信号(2) Extract the detection signal

在控制环路的信号注入点的左右两侧设置有检测信号接口,分别用于实时检测信号注入点左侧检测信号

Figure BDA0003607219020000061
(j为虚数单位,下同)与右侧检测信号
Figure BDA0003607219020000062
左侧检测信号
Figure BDA0003607219020000063
与右侧检测信号
Figure BDA0003607219020000064
均分别通过二阶带通滤波器B(s)和二阶高通滤波器H(s)进行处理,分别得到此时检测信号在当前角频率
Figure BDA0003607219020000065
下的左侧正弦信号xin与右侧正弦信号xout的实部和虚部,
Figure BDA0003607219020000066
表示左侧正弦信号xin的实部与虚部,
Figure BDA0003607219020000067
表示右侧正弦信号xout的实部和虚部。其中,
Figure BDA0003607219020000068
kpB和kpH分别为两个滤波器的常数参数,两个滤波器中的常数参数取值相同或不同;s代表S域(复频域)中的复频率,通过拉普拉斯变换得到。There are detection signal interfaces on the left and right sides of the signal injection point of the control loop, which are respectively used for real-time detection of the detection signal on the left side of the signal injection point.
Figure BDA0003607219020000061
(j is an imaginary unit, the same below) and the right side detection signal
Figure BDA0003607219020000062
Left detection signal
Figure BDA0003607219020000063
with right side heartbeat
Figure BDA0003607219020000064
Both are processed by the second-order band-pass filter B(s) and the second-order high-pass filter H(s), respectively, to obtain the detection signal at the current corner frequency.
Figure BDA0003607219020000065
The real and imaginary parts of the left sinusoidal signal x in and the right sinusoidal signal x out below,
Figure BDA0003607219020000066
represents the real and imaginary parts of the left sinusoidal signal x in ,
Figure BDA0003607219020000067
Represents the real and imaginary parts of the right sinusoidal signal x out . in,
Figure BDA0003607219020000068
k pB and k pH are the constant parameters of the two filters respectively, and the constant parameters in the two filters are the same or different; s represents the complex frequency in the S domain (complex frequency domain), which is obtained by Laplace transform .

利用

Figure BDA0003607219020000069
Figure BDA00036072190200000610
得到左侧待测信号xin与右侧待测信号xout的幅值与相角。use
Figure BDA0003607219020000069
Figure BDA00036072190200000610
Obtain the amplitude and phase angle of the signal to be measured on the left x in and the signal to be measured on the right x out .

在本实例中,二阶带通滤波器B(s)和二阶高通滤波器H(s)中的常数参数kpB和kpH的取值均为0.2。In this example, the constant parameters k pB and k pH in the second-order band-pass filter B(s) and the second-order high-pass filter H(s) are both 0.2.

(3)动态寻频(3) Dynamic frequency seeking

待测控制环路开环传递函数Tm与横坐标的交点ωc就是期望得到的截止频率;由于

Figure BDA00036072190200000611
即在角频率
Figure BDA00036072190200000612
下,满足|Tm|=|xout|/|xin|。令e|x|=|xout|-|xin|,将步骤(2)中得到左侧待测信号xin与右侧待测信号xout的幅值代入到该公式中,即可依据e|x|与0的大小关系来判断此时注入频率
Figure BDA00036072190200000613
与截止频率的大小关系;The intersection point ω c of the open-loop transfer function T m of the control loop to be measured and the abscissa is the expected cut-off frequency;
Figure BDA00036072190200000611
i.e. at angular frequency
Figure BDA00036072190200000612
, satisfy |T m |=|x out |/|x in |. Let e |x| = |x out |-|x in |, and substitute the amplitudes of the signal to be measured on the left x in and the signal to be measured on the right x out obtained in step (2) into the formula, then the The relationship between e |x| and 0 determines the injection frequency at this time
Figure BDA00036072190200000613
The magnitude of the relationship with the cutoff frequency;

当e|x|=0时,即

Figure BDA0003607219020000071
时,当前角频率
Figure BDA0003607219020000072
即为控制环路的截止频率ωc;截止频率ωc即为控制环路的带宽。When e |x| = 0, that is
Figure BDA0003607219020000071
, the current corner frequency
Figure BDA0003607219020000072
is the cut-off frequency ω c of the control loop; the cut-off frequency ω c is the bandwidth of the control loop.

当e|x|≠1时,则在当前角频率

Figure BDA0003607219020000073
下,将
Figure BDA0003607219020000074
减去
Figure BDA0003607219020000075
得到的值输入到一个PI调节器(即比例积分调节器,附图中符号为GPI(s),本实施例采用GPI(s)=11660+2668000/s,s代表S域中的复频率),将PI调节器的输出加上当前角频率
Figure BDA0003607219020000076
即可得到注入信号xp的新的角频率
Figure BDA0003607219020000077
然后将注入信号xp中的
Figure BDA0003607219020000078
调整为
Figure BDA0003607219020000079
继续执行步骤(2)的提取检测信号过程,并将在新的角频率
Figure BDA00036072190200000710
下的左侧正弦信号xin与右侧正弦信号xout的幅值代入e|x|=|xout|-|xin|,若此时仍然e|x|≠1,不断重复上述过程,不断调整角频率,直至e|x|=0,实现动态寻频;When e |x| ≠ 1, then at the current angular frequency
Figure BDA0003607219020000073
down, will
Figure BDA0003607219020000074
minus
Figure BDA0003607219020000075
The obtained value is input to a PI regulator (that is, a proportional-integral regulator, the symbol in the figure is G PI (s), this embodiment adopts G PI (s)=11660+2668000/s, s represents the complex in the S domain. frequency), add the output of the PI regulator to the current corner frequency
Figure BDA0003607219020000076
The new angular frequency of the injected signal x p can be obtained
Figure BDA0003607219020000077
will then inject the
Figure BDA0003607219020000078
tweak to
Figure BDA0003607219020000079
Continue to perform the extraction detection signal process of step (2), and
Figure BDA00036072190200000710
The amplitudes of the left sinusoidal signal x in and the right sinusoidal signal x out are substituted into e |x| = |x out |-|x in |, if e |x| ≠ 1 at this time, repeat the above process continuously, Constantly adjust the angular frequency until e |x| = 0 to achieve dynamic frequency searching;

(4)相角裕度计算(4) Calculation of phase angle margin

根据步骤(3)得到的截止频率ωc,将该角频率下的左侧正弦信号xin与右侧正弦信号xout的相角将其代入公式PM=∠xout-∠xin,得到被测控制环路的相角裕度。According to the cut-off frequency ω c obtained in step (3), substitute the phase angle between the left sinusoidal signal x in and the right sinusoidal signal x out at the angular frequency into the formula PM=∠x out -∠x in , to obtain the Measure the phase angle margin of the control loop.

在本示例中,通过多次改变单相并网逆变器(含有5%背景谐波)的并网阻抗ZG来改变控制系统的控制带宽与相角裕度,其中并网阻抗ZG的变化为:0.5Ω+0.5mH(Case1)→0.5Ω+1mH(Case2)→0.5Ω+1.5mH(Case3)→0.5Ω+1mH(Case2)→0.5Ω+0.5mH(Case1,iG *设置为10A)。In this example, the control bandwidth and phase angle margin of the control system are changed by changing the grid-connected impedance Z G of the single-phase grid-connected inverter (containing 5% of the background harmonics) multiple times, where the grid-connected impedance Z G The change is: 0.5Ω+0.5mH(Case1)→0.5Ω+1mH(Case2)→0.5Ω+1.5mH(Case3)→0.5Ω+1mH(Case2)→0.5Ω+0.5mH(Case1, i G * is set to 10A).

从附图4中可以看到仅用0.2s左右即可依次测得相角裕度(PM)为60°→52°→47°,控制带宽(BW,即为截止频率)为1kHz→813Hz→692Hz,且在多次变化过程中,测量结果稳定,iG=10A。并且,从局部放大图图5中可以看到,在10ms内即可获得一种场景下的测量结果。It can be seen from Figure 4 that the phase angle margin (PM) can be measured in sequence as 60°→52°→47° in about 0.2s, and the control bandwidth (BW, which is the cut-off frequency) is 1kHz→813Hz→ 692Hz, and the measurement result is stable during multiple changes, i G =10A. Moreover, as can be seen from the partial enlarged view in Figure 5, the measurement results in one scenario can be obtained within 10ms.

本实施例中的控制环路,经理论计算,并网阻抗ZG为0.5Ω+0.5mH,其截止频率为1kHz,相角裕度60°;并网阻抗ZG为0.5Ω+1mH,其截止频率为813Hz,相角裕度53°,并网阻抗ZG为0.5Ω+1.5mH,其截止频率为692Hz,相角裕度47°。从测量结果看,该控制环路性能指标的理论值与经过本发明控制环路性能指标测量方法得到的结果相吻合,所以在误差允许的范围内,测量结果准确。For the control loop in this embodiment, after theoretical calculation, the grid-connected impedance Z G is 0.5Ω+0.5mH, the cut-off frequency is 1kHz, and the phase angle margin is 60°; the grid-connected impedance Z G is 0.5Ω+1mH, its The cutoff frequency is 813Hz, the phase angle margin is 53°, the grid-connected impedance Z G is 0.5Ω+1.5mH, the cutoff frequency is 692Hz, and the phase angle margin is 47°. From the measurement result, the theoretical value of the performance index of the control loop is consistent with the result obtained by the method for measuring the performance index of the control loop of the present invention, so the measurement result is accurate within the allowable error range.

本发明未述及之处适用于现有技术。What is not described in the present invention applies to the prior art.

Claims (1)

1.一种基于二阶滤波器的控制环路性能指标测量方法,其特征在于,该方法包括如下步骤:1. a method for measuring a control loop performance index based on a second-order filter, is characterized in that, the method comprises the steps: (1)注入小信号(1) inject small signal 往被测控制环路中注入一个角频率可变的正弦波小信号(xp),其表达式为
Figure FDA0003607219010000011
其中,A为正弦波小信号(xp)的幅值,
Figure FDA0003607219010000012
为正弦波小信号(xp)的角频率;
A small sine wave signal (x p ) with variable angular frequency is injected into the control loop under test, and its expression is
Figure FDA0003607219010000011
where A is the amplitude of the sine wave small signal (x p ),
Figure FDA0003607219010000012
is the angular frequency of the sine wave small signal (x p );
(2)提取检测信号(2) Extract the detection signal 在控制环路的信号注入点的左右两侧设置有检测信号接口,分别用于实时检测信号注入点左侧检测信号
Figure FDA0003607219010000013
与右侧检测信号
Figure FDA0003607219010000014
左侧检测信号
Figure FDA0003607219010000015
与右侧检测信号
Figure FDA0003607219010000016
均分别通过二阶带通滤波器B(s)和二阶高通滤波器H(s)进行处理,分别得到此时检测信号在当前角频率
Figure FDA0003607219010000017
下的左侧正弦信号(xin)与右侧正弦信号(xout)的实部和虚部,
Figure FDA0003607219010000018
表示左侧正弦信号(xin)的实部与虚部,
Figure FDA0003607219010000019
表示右侧正弦信号(xout)的实部与虚部;利用
Figure FDA00036072190100000110
Figure FDA00036072190100000111
得到左侧正弦信号(xin)与右侧正弦信号(xout)的幅值与相角;
There are detection signal interfaces on the left and right sides of the signal injection point of the control loop, which are respectively used for real-time detection of the detection signal on the left side of the signal injection point.
Figure FDA0003607219010000013
with right side heartbeat
Figure FDA0003607219010000014
Left detection signal
Figure FDA0003607219010000015
with right side heartbeat
Figure FDA0003607219010000016
Both are processed by the second-order band-pass filter B(s) and the second-order high-pass filter H(s), respectively, to obtain the detection signal at the current corner frequency.
Figure FDA0003607219010000017
The real and imaginary parts of the left sinusoidal signal (x in ) and the right sinusoidal signal (x out ) below,
Figure FDA0003607219010000018
represents the real and imaginary parts of the left sinusoidal signal (x in ),
Figure FDA0003607219010000019
represents the real and imaginary parts of the right-hand sinusoidal signal (x out ); using
Figure FDA00036072190100000110
Figure FDA00036072190100000111
Obtain the amplitude and phase angle of the left sinusoidal signal (x in ) and the right sinusoidal signal (x out );
(3)动态寻频(3) Dynamic frequency seeking 待测控制环路开环传递函数(Tm)与横坐标的交点(ωc)就是期望得到的截止频率;由于
Figure FDA00036072190100000112
即在角频率
Figure FDA00036072190100000113
下,满足|Tm|=|xout|/|xin|;令e|x|=|xout|-|xin|,将步骤(2)中得到左侧待测信号(xin)与右侧待测信号(xout)的幅值代入到该公式中,即可依据e|x|与0的大小关系来判断此时注入频率
Figure FDA00036072190100000114
与截止频率的大小关系;
The intersection (ω c ) of the open-loop transfer function (T m ) of the control loop under test and the abscissa is the desired cut-off frequency; since
Figure FDA00036072190100000112
i.e. at angular frequency
Figure FDA00036072190100000113
, satisfy |T m |=|x out |/|x in |; let e |x| =|x out |-|x in | Substitute the amplitude of the signal to be measured (x out ) on the right side into the formula, and then the injection frequency can be judged according to the relationship between e |x| and 0
Figure FDA00036072190100000114
The magnitude of the relationship with the cutoff frequency;
当e|x|=0时,即
Figure FDA0003607219010000021
时,当前角频率
Figure FDA0003607219010000022
即为控制环路的截止频率(ωc);截止频率(ωc)即为控制环路的带宽;
When e |x| = 0, that is
Figure FDA0003607219010000021
, the current corner frequency
Figure FDA0003607219010000022
is the cut-off frequency (ω c ) of the control loop; the cut-off frequency (ω c ) is the bandwidth of the control loop;
当e|x|≠1时,则在当前角频率
Figure FDA0003607219010000023
下,将
Figure FDA0003607219010000024
减去
Figure FDA0003607219010000025
得到的值输入到一个PI调节器,将PI调节器的输出加上当前角频率
Figure FDA0003607219010000026
即可得到注入信号(xp)的新的角频率
Figure FDA0003607219010000027
然后将注入信号(xp)中的
Figure FDA0003607219010000028
调整为
Figure FDA0003607219010000029
继续执行步骤(2)的提取检测信号过程,并将在新的角频率
Figure FDA00036072190100000210
下的左侧正弦信号(xin)与右侧正弦信号(xout)的幅值代入e|x|=|xout|-|xin|,若此时仍然e|x|≠1,不断重复上述过程,不断调整角频率,直至e|x|=0,实现动态寻频;
When e |x| ≠ 1, then at the current angular frequency
Figure FDA0003607219010000023
down, will
Figure FDA0003607219010000024
minus
Figure FDA0003607219010000025
The obtained value is input to a PI regulator, and the output of the PI regulator is added to the current corner frequency
Figure FDA0003607219010000026
The new angular frequency of the injected signal (x p ) can be obtained
Figure FDA0003607219010000027
Then inject the signal into the signal (x p )
Figure FDA0003607219010000028
tweak to
Figure FDA0003607219010000029
Continue to perform the extraction detection signal process of step (2), and
Figure FDA00036072190100000210
The amplitudes of the left sinusoidal signal (x in ) and the right sinusoidal signal (x out ) below are substituted into e |x| = |x out |-|x in |, if e |x| Repeat the above process, continuously adjust the angular frequency, until e |x| =0, to achieve dynamic frequency search;
(4)相角裕度计算(4) Calculation of phase angle margin 根据步骤(3)得到的截止频率(ωc),将该角频率下的左侧正弦信号(xin)与右侧正弦信号(xout)的相角代入公式PM=∠xout-∠xin,得到被测控制环路的相角裕度。According to the cutoff frequency (ω c ) obtained in step (3), substitute the phase angle of the left sinusoidal signal (x in ) and the right sinusoidal signal (x out ) at the angular frequency into the formula PM=∠x out -∠x in , the phase angle margin of the control loop under test is obtained.
CN202210438424.0A 2022-04-21 2022-04-21 A control loop performance index measurement method based on second-order filter Active CN114740827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210438424.0A CN114740827B (en) 2022-04-21 2022-04-21 A control loop performance index measurement method based on second-order filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210438424.0A CN114740827B (en) 2022-04-21 2022-04-21 A control loop performance index measurement method based on second-order filter

Publications (2)

Publication Number Publication Date
CN114740827A true CN114740827A (en) 2022-07-12
CN114740827B CN114740827B (en) 2025-01-28

Family

ID=82282834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210438424.0A Active CN114740827B (en) 2022-04-21 2022-04-21 A control loop performance index measurement method based on second-order filter

Country Status (1)

Country Link
CN (1) CN114740827B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1242484A (en) * 1985-11-20 1988-09-27 Ecole Polytechnique Method and system for measuring the amplitude and phase angle of harmonics in a periodic signal
CN106936427A (en) * 2015-12-29 2017-07-07 中国电力科学研究院 A kind of single-phase phase-locked loop Optimization Design with harmonic restraining function
CN113328440A (en) * 2021-06-22 2021-08-31 华北电力大学(保定) Active filtering control method for PLC circuit of electric vehicle charging station
CN113467418A (en) * 2021-06-25 2021-10-01 河北工业大学 Method for measuring performance index of control loop
CN113992091A (en) * 2021-10-19 2022-01-28 华中科技大学 An electrolytic capacitorless PMSM control system regulator parameter calculation method and system
CN114142781A (en) * 2021-12-14 2022-03-04 北京工业大学 A pre-filter permanent magnet synchronous motor current loop PI parameter tuning method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1242484A (en) * 1985-11-20 1988-09-27 Ecole Polytechnique Method and system for measuring the amplitude and phase angle of harmonics in a periodic signal
CN106936427A (en) * 2015-12-29 2017-07-07 中国电力科学研究院 A kind of single-phase phase-locked loop Optimization Design with harmonic restraining function
CN113328440A (en) * 2021-06-22 2021-08-31 华北电力大学(保定) Active filtering control method for PLC circuit of electric vehicle charging station
CN113467418A (en) * 2021-06-25 2021-10-01 河北工业大学 Method for measuring performance index of control loop
CN113992091A (en) * 2021-10-19 2022-01-28 华中科技大学 An electrolytic capacitorless PMSM control system regulator parameter calculation method and system
CN114142781A (en) * 2021-12-14 2022-03-04 北京工业大学 A pre-filter permanent magnet synchronous motor current loop PI parameter tuning method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
殷进军;刘邦银;段善旭;: "LCL滤波并网逆变器双环控制参数设计与优化", 电力系统自动化, no. 09, 10 May 2013 (2013-05-10) *

Also Published As

Publication number Publication date
CN114740827B (en) 2025-01-28

Similar Documents

Publication Publication Date Title
Carugati et al. Variable sampling period filter PLL for distorted three-phase systems
CN105449718B (en) The grid-connected genlock method of algorithm is offseted based on the delay of modified series signals
CN105425011B (en) A kind of non-linear width phase detection method suitable for single-phase network deformation
CN112595891B (en) A method for detecting high-order harmonics in power systems
CN106877399A (en) A double-loop control method for a single-phase LCL grid-connected inverter
Wang et al. Impedance modeling of three-phase grid-connected inverters and analysis of interaction stability in grid-connected system
CN109217371A (en) Consider voltage converter grid-connected system method for analyzing stability, apparatus and system that phaselocked loop influences
CN104811188A (en) Method of modifying dynamic performance of phase-locked loop on basis of sliding filter
CN102628894B (en) Selective harmonic wave extracting method
CN116087623A (en) Method and device for measuring overall impedance of new energy grid-connected system
CN117092409A (en) Three-phase LCL grid-connected inverter-based power grid impedance online measurement method and device
CN105305471B (en) Power distribution network flexible ground apparatus control system and Parameters design thereof
CN113014250A (en) Phase-locked loop capable of eliminating direct current offset voltage and phase-locked control method thereof
CN111190074B (en) A power grid synchronization detection method based on single-phase phase-locked loop
CN110095654B (en) Power grid inductance detection method
Zou et al. Optimized harmonic detecting and repetitive control scheme for shunt active power filter in synchronous reference frame
CN113036764B (en) Synchronous constant-frequency current control method based on virtual harmonic resistor
CN110045187B (en) Grid-connected inverter grid impedance identification method based on high-frequency signal injection
CN114740827A (en) Second-order filter-based control loop performance index measurement method
CN113467418B (en) Method for measuring performance index of control loop
CN115236404B (en) Grid-connected inverter port impedance self-measurement method
CN113671257B (en) Impedance measurement method for perturbation mode switching
CN111786390B (en) A vector repetition control method and system based on harmonic sequence extraction
CN114509970B (en) Universal multi-period multi-resonance controller design method and controller
CN113804949B (en) Amplitude determining method and device suitable for wide-frequency-conversion alternating-current power generation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant