Recording start anti-shake judgment method and system
By establishing channel-level wave recording anti-shake judgment thresholds and queue structures in the power system, the problem of wave recording start-up anti-shake under unreliable power grids is solved, rapid filtering of power grid disturbances is achieved, effective wave recording start is ensured, and faults are improved. Reliability of analysis.
Patent Information
- Application Number
- CN202311612499.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology cannot effectively perform wave recording start-up anti-shake when dealing with unreliable power grids, resulting in ineffective wave recording start-up interference fault analysis. Especially in less developed countries and regions where the reliability of power grid construction is poor, power grid disturbances cannot be effectively filtered.
By establishing the channel-level wave recording anti-shake judgment threshold and queue structure, using the first-in-first-out method to record channel start-up information, and by periodically checking the channel queue status, setting the locking and reset conditions of analog and switching channels, we can realize the control of the power grid. Fast filtering and anti-shake processing of disturbances.
It achieves rapid filtering of channel jitter with very few resources, ensures effective wave recording startup, and can adaptively adjust thresholds according to actual on-site conditions, improving the reliability of power system fault identification and analysis.
Smart Images

Figure CN118535349A
Abstract
Description
Technical Field
[0001] The invention relates to the field of power system automation, and in particular to a wave recording start anti-shake judgment method and system. Background Art
[0002] When a fault occurs in the power system, the fault recording device needs to trigger the transient recording in time to record the power grid data before and after the fault. At present, common recording trigger conditions include analog quantity exceeding the limit, mutation, sequence component exceeding the limit, mutation, frequency exceeding the limit, switch quantity displacement, etc. Effective and reliable recording start is of great significance for quickly identifying and analyzing faults and improving the stability of the power system. During the field operation process, especially in some underdeveloped countries and regions, the reliability of the power grid construction is poor, and there are a large number of disturbances in the power grid, which triggers many invalid recording starts and interferes with the user's analysis of power grid faults. The use of a recording start anti-shake judgment method is the first step to achieve the above-mentioned effective start. In the prior art, over-limit locking and mutation point filtering technologies are often used to filter disturbances, but both have corresponding problems and cannot handle the start anti-shake in the case of unreliable power grids. For example, over-limit locking can only shield high over-limit starts in relatively stable conditions; mutation point filtering can generally only shield disturbances at several points in a short period of time under electromagnetic interference. Summary of the invention
[0003] In order to achieve effective and reliable startup of faults, the present invention provides a recording anti-shake judgment method and system. A recording startup anti-shake judgment method and system comprises the following steps: Step 1: Establish channel-level recording anti-shake judgment threshold. The analog channel threshold is to start M times of locking for K seconds within N minutes, and the switch channel threshold is to start Y times of locking for Z seconds within X minutes. The threshold setting is based on the actual disturbance on site. Step 2, establish a channel-level recording start queue, use the first-in-first-out method to record the start of analog and switch channels, the maximum length of the analog queue is set to M, and the length of the switch queue is set to Y; Step 3: Establish a channel queue traversal thread T to check the status of all disturbance channels; Step 4: When the power system is disturbed and the channel data meets the start-up setting value, the channel disturbance state is added to the queue and the channel is judged. Taking the analog channel as an example, if the queue length is the maximum length and the time difference between the first and last elements is less than the threshold time, it is considered that the channel enters the anti-shake locking state, the locking start time is recorded and the anti-shake state is set; Step 5, traverse thread T and periodically check all channel queues. When the channel lock time is greater than the threshold time, release the lock state of the channel. The present invention has the following advantages: it can quickly implement channel anti-shake processing based on the use of very few resources. In addition, the threshold setting in the judgment method of the present invention is not fixed, and can be adaptive according to the actual power grid conditions on site. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] The present invention is further described below in conjunction with the accompanying drawings and embodiments. Figure 1 The present invention is constituted by a wave recording start anti-shake judgment module; Figure 2 A channel start queue established according to the channel anti-shake threshold value of the present invention; Figure 3 It is a schematic diagram of the channel queue thread's channel recovery judgment process; Figure 4 This is the anti-shake judgment process for new channel disturbances. Implementation
[0005] The present invention provides a recording start anti-shake judgment method and system, which can quickly filter channel jitter to achieve effective recording start.
[0006] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0007] like Figure 1 As shown, the method described in the present invention includes the following modules: (1) Anti-shake threshold constant setting, which consists of three parts: window time, judgment times and lock time. The constant has two setting methods: analog and switch. It can be set to a universal mode, that is, all analog and switch channels are set according to a unified constant; it can also be customized according to the channel. (2) Channel anti-shake structure, which consists of a startup queue and some variables. Each startup channel maintains a startup queue separately to record the startup information related to the channel; channel variables include the current lock state, lock time and mutex information. (3) Channel queue management thread, which is used to periodically check the lock channel status. After the lock time reaches the timeout time, the channel status is restored to facilitate normal triggering and start recording.
[0008] like Figure 2 The following is the structure definition of the channel startup queue: (1) Each startup channel establishes a startup queue according to the anti-shake threshold setting; the queue is implemented in array mode, and the first and last pointers are used to identify the exit and entry positions of the queue; (2) The length of the queue array is equal to the number of starts set in the anti-shake threshold. When making a judgment, the maximum time difference of the array can be directly obtained by directly subtracting the time of the first and last elements; (3) The start-up reasons for analog queue elements include over-limit, sudden change, and harmonic start-up, while the start-up reasons for switch queue elements are position change start-up.
[0009] like Figure 3 The following is the processing flow of the channel queue management thread: (1) The queue management thread traverses all channel queues and sleeps for a period of time after each traversal to reduce resource usage; (2) When the management thread detects that the channel is locked, it compares the time difference between the current time and the locking time. When the time difference exceeds the set threshold, the channel is restored to the locked state.
[0010] like Figure 4 The following is the main process of anti-shake judgment when the channel is started: (1) When a new disturbance starts on a channel, check the current blocking state of the channel. If the channel is blocking for anti-shake, abandon the current blocking state. (2) If the channel state is reset, according to the first-in-first-out rule, the new channel start is added to the disturbance queue, and the lock state is determined as follows: if the current queue length is less than the maximum length, the channel state is reset; if the current queue length is equal to the maximum length, and the disturbance time difference between the first and last elements is less than the channel threshold time, the channel state is locked. (3) If the channel state changes from reset to lock, the channel lock time is recorded and the current channel start is prohibited. Otherwise, if the channel state is reset, the recording is started normally.
[0011] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A recording start anti-shake judgment method and system, characterized in that: The steps are as follows: Step 1: Establish channel-level recording anti-shake judgment threshold. The analog channel threshold is to start M times of locking for K seconds within N minutes, and the switch channel threshold is to start Y times of locking for Z seconds within X minutes. The threshold setting is based on the actual disturbance on site. Step 2, establish a channel-level recording start queue, use the first-in-first-out method to record the start of analog and switch channels, the maximum length of the analog queue is set to M, and the length of the switch queue is set to Y; Step 3, establish a channel queue traversal thread to check the status of all disturbance channels; Step 4: When the power system is disturbed and the channel data meets the start-up setting value, the channel disturbance state is added to the queue and the channel is judged. Taking the analog channel as an example, if the queue length is the maximum length and the time difference between the first and last elements is less than the threshold time, it is considered that the channel enters the anti-shake locking state, the locking start time is recorded and the anti-shake state is set; Step 5, traverse thread T and periodically check all channel queues. When the channel locking time is greater than the threshold time, release the locking state of the channel.
2. A recording start anti-shake judgment method and system according to claim 1, characterized in that: In step 1, the setting range of N and X is 1~60, the setting range of M and Y is 1~100, and the setting range of K and Z is 1~3600.
3. A recording start anti-shake judgment method and system according to claim 1, characterized in that: The queue length in step 2 is the same as the number of times the channel anti-shake threshold is activated. When establishing a queue, an array structure is used to apply for all elements of the queue.
4. A recording start anti-shake judgment method and system according to claim 1, characterized in that: It includes the following modules: (1) When the channel is disturbed and meets the set startup constant, the channel recording condition is generated and the channel anti-shake lock status is checked immediately. If the channel anti-shake is locked, the channel recording condition is abandoned and the next channel is checked in sequence; (2) The variables used to judge the channel anti-shake include the judgment time N, the queue length M, the number of disturbance elements in the current channel queue L, the time T of the first element of the queue and the last element T'. When L is equal to M, (T'-T) <= N*60, the channel enters the anti-shake lock; (3) The channel anti-shake lock status is restored by the channel queue management thread. The thread adopts polling mode, and the polling time interval is 5 seconds.
