CN114185324B - Abnormal point detection method and device for automatic power generation control program and computer equipment - Google Patents

Abnormal point detection method and device for automatic power generation control program and computer equipment Download PDF

Info

Publication number
CN114185324B
CN114185324B CN202111243636.5A CN202111243636A CN114185324B CN 114185324 B CN114185324 B CN 114185324B CN 202111243636 A CN202111243636 A CN 202111243636A CN 114185324 B CN114185324 B CN 114185324B
Authority
CN
China
Prior art keywords
power generation
generation control
automatic power
control program
program
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.)
Active
Application number
CN202111243636.5A
Other languages
Chinese (zh)
Other versions
CN114185324A (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.)
Huaneng Lancang River Hydropower Co Ltd
Original Assignee
Huaneng Lancang River Hydropower Co Ltd
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 Huaneng Lancang River Hydropower Co Ltd filed Critical Huaneng Lancang River Hydropower Co Ltd
Priority to CN202111243636.5A priority Critical patent/CN114185324B/en
Publication of CN114185324A publication Critical patent/CN114185324A/en
Application granted granted Critical
Publication of CN114185324B publication Critical patent/CN114185324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for ac mains or ac distribution networks
    • 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
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2203/00Indexing scheme relating to details of circuit arrangements for AC mains or AC distribution networks
    • H02J2203/20Simulating, e g planning, reliability check, modelling or computer assisted design [CAD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Power Engineering (AREA)
  • Control Of Eletrric Generators (AREA)

Abstract

The application discloses an abnormal point detection method, device and computer equipment of an automatic power generation control program, relates to the field of automatic control of power systems, and can solve the problems that when the automatic power generation control program is abnormal in execution, accurate analysis of program execution steps is difficult, and abnormal points cannot be rapidly located. If the abnormality of the automatic power generation control program is detected, acquiring actual operation parameters of the automatic power generation control program; comprising the following steps: determining an operation mode of a strategy simulation system, judging whether actual operation parameters meet target operation requirements corresponding to the operation mode, wherein the strategy simulation system is used for performing simulation on an automatic power generation control program, and the operation mode comprises a constant value mode and a curve mode; if yes, executing a corresponding operation program according to the operation mode, outputting a single step execution result of the program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program; if not, outputting second abnormality detection information which does not meet the security policy.

Description

Abnormal point detection method and device for automatic power generation control program and computer equipment
Technical Field
The present disclosure relates to the field of automatic control of power systems, and in particular, to a method and an apparatus for detecting an abnormal point of an automatic power generation control program, and a computer device.
Background
Automatic power generation control (Automatic Generation Control, AGC) is also known as automatic control of power system frequency and active power, or load and frequency control (Load and Frequency Control, LFC). The method is characterized in that the generating set tracks the instruction issued by the power dispatching transaction mechanism in a specified output adjustment range, and the generated output is adjusted in real time according to a certain adjustment rate so as to meet the frequency of a power system and the power control requirement of a tie line. Along with the continuous expansion of the power grid scale in China, the automatic power generation control can effectively relieve the influence of the problems of disturbance increase, rapid load change and the like on the power grid, the stability of the system frequency is maintained, and the system frequency is one of important parameters considering the running quality of the power grid, so that the automatic power generation control plays an important role in improving the power quality of the power grid.
Along with the continuous improvement of the requirements on the accuracy, the rapidity and the like of the automatic power generation control adjustment, each power generation enterprise is continuously optimized and improved in an adjustment control strategy of the automatic power generation control. However, the automatic power generation control program has the characteristics of complicated regulation logic, integrated program module and strict safety locking logic, so that when the automatic power generation control program is abnormal in execution, the execution steps in the program are difficult to accurately analyze, abnormal points or wrong logic cannot be quickly positioned, a great deal of time is consumed by manual analysis, and the situation of manual erroneous judgment and missed judgment is easy to occur due to the complicated automatic power generation control program logic. If the fault point cannot be positioned quickly, the generation cannot be carried out normally by the power generation enterprises, and the influence on the normal operation of the society is brought to the power generation enterprises while the large economic loss is brought to the power generation enterprises.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus and a computer device for detecting abnormal points of an automatic power generation control program, which mainly solve the problem that when the automatic power generation control program is abnormal, it is difficult to accurately analyze the execution steps in the program, and it is impossible to quickly locate abnormal points or incorrect logic.
According to an aspect of the present application, there is provided an abnormal point detection method of an automatic power generation control program, the method including:
if the abnormality of the automatic power generation control program is detected, acquiring actual operation parameters of the automatic power generation control program;
determining an operation mode of a strategy simulation system, and judging whether the actual operation parameters meet target operation requirements corresponding to the operation mode, wherein the strategy simulation system is used for performing simulation on the automatic power generation control program;
if yes, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormality detection information of the automatic power generation control program according to the program single-step execution result;
if not, outputting second abnormality detection information which does not meet the security policy.
According to another aspect of the present application, there is provided an abnormal point detection apparatus of an automatic power generation control program, the apparatus including:
the acquisition module is used for acquiring actual operation parameters of the automatic power generation control program if the abnormality of the automatic power generation control program is detected;
the judging module can be used for determining the operation mode of a strategy simulation system and judging whether the actual operation parameters meet the target operation requirements corresponding to the operation mode, and the strategy simulation system is used for performing simulation on the automatic power generation control program;
the first output module is used for executing a corresponding running program according to the running mode if yes, outputting a single step execution result of the program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program;
and the second output module is used for outputting second abnormality detection information which does not meet the safety strategy if not.
According to still another aspect of the present application, there is provided a non-volatile readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described abnormal point detection method of an automatic power generation control program.
According to still another aspect of the present application, there is provided a computer device including a nonvolatile readable storage medium, a processor, and a computer program stored on the nonvolatile readable storage medium and executable on the processor, the processor implementing the abnormal point detection method of the above-described automatic power generation control program when executing the program.
By means of the technical scheme, the application provides the abnormal point detection method, the abnormal point detection device and the computer equipment of the automatic power generation control program, and the problems that when the automatic power generation control program is abnormal in execution, accurate analysis of execution steps in the program is difficult, and abnormal points or wrong logic cannot be quickly located are solved. According to the method and the device, the data when the automatic power generation control program is abnormal is simulated, the safety strategy checking result and the program single-step execution result are output by combining the running condition of the data, the calculation time of a user is shortened, the complex principle of the automatic power generation control program is flattened, the user does not need to master complex operation logic of the automatic power generation control program when the fault is processed, and the checking difficulty of the automatic power generation control program when the fault is processed can be reduced by checking the safety strategy checking result and the program single-step execution result.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the present application. In the drawings:
fig. 1 is a schematic flow chart of an abnormal point detection method of an automatic power generation control program according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an abnormal point detection method of another automatic power generation control program according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating abnormal point detection of an automatic power generation control program according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an abnormal point detection device of an automatic power generation control program according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an abnormality detection device of another automatic power generation control program according to an embodiment of the present application.
Detailed Description
The present application will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments and features of the embodiments in the present application may be combined with each other.
Aiming at the problem that when the automatic power generation control program is abnormal, the execution steps in the program are difficult to accurately analyze, and abnormal points or wrong logic cannot be quickly positioned, the embodiment of the application provides an abnormal point detection method of the automatic power generation control program, as shown in fig. 1, which comprises the following steps:
101. and if the abnormality of the automatic power generation control program is detected, acquiring the actual operation parameters of the automatic power generation control program.
The actual operation parameters comprise full-field active set values, whether a single unit is put into automatic power generation control, unit adjustment priority and the like.
The full-field active set value is used for calculating full-field active power distributed by automatic power generation control, and the calculation formula is as follows: p (P) AGC =P SET +p AGC Wherein P is AGC Full field active power, P, allocated for automatic power generation control SET Is the full-field active set value, p AGC Is the sum of the actual power generation and the active power which does not participate in the automatic power generation control unit. The number of units participating in automatic power generation control regulation and the priority of each unit regulation are negotiated through power plants and scheduling, and the minimum cost and the safe operation of the units are targeted according to the actual operation condition of the units. Therefore, when the power generation task is received, the priority of the unit is selected and called, and safe and stable operation of each unit in the hydropower plant can be ensured. With the present embodiment, when an abnormality of the automatic power generation control program is detected, the above-described data may be first extracted so as to accurately locate the cause of the abnormality of the automatic power generation control program by analysis of actual operating parameters.
102. Determining an operation mode of a strategy simulation system, and judging whether actual operation parameters meet target operation requirements corresponding to the operation mode, wherein the strategy simulation system is used for performing simulation on an automatic power generation control program.
The target operation requirement is a safety strategy related to the production of a power plant, and the safety strategy is set for guaranteeing the safe operation of the hydroelectric generating set. Different target operation requirements exist under different equipment operation conditions, for example, an operation mode of the strategy simulation system comprises a fixed value mode and a curve mode, the fixed value mode and the curve mode belong to different equipment operation conditions, the difference between two adjacent scheduling set values is not more than 100MW in the fixed value mode, and the difference between the curve set values corresponding to two adjacent time points is not more than 100MW in the curve mode.
For the embodiment, the purpose of judging whether the actual operation parameter meets the target operation requirement corresponding to the operation mode is to judge whether the automatic power generation control program cannot be executed or whether the reason for executing the abnormality is that the actual operation parameter does not meet the target operation requirement corresponding to the operation mode, so that the time for a user to judge the reason for generating the abnormality of the automatic power generation control program can be shortened, and the detection difficulty of the abnormality processing of the automatic power generation control program can be reduced.
103. If the actual operation parameters meet the target operation requirements corresponding to the operation modes, executing the corresponding operation program according to the operation modes, outputting a single step execution result of the program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program.
For the embodiment, when the actual operation parameters meet the target operation requirements corresponding to the operation modes, it is described that the input actual operation parameters meet the safety policies related to the production of the power plant, the program continues to be executed, and in different operation modes, the operation modes of the policy simulation system comprise a fixed value mode and a curve mode, for example, the operation modes of the policy simulation system are related to the allocation policies and time of the curve mode, the user inputs the active set values at specific time points, the program obtains a curve based on the active set values at specific time points, and executes corresponding code segments according to the curve; the allocation strategy of the constant value mode is irrelevant to time, and the code segments corresponding to different conditional statement program segments are automatically judged and executed according to the operation parameters in the system under the operation of a user. After the corresponding running program is executed, outputting a program single-step execution result, and determining first abnormality detection information of the automatic power generation control program according to the program single-step execution result, wherein the first abnormality detection information comprises an allocation step with unreasonable allocation result.
104. And if the actual operation parameters do not meet the target operation requirements corresponding to the operation modes, outputting second abnormal detection information which does not meet the safety strategy.
For the embodiment, when the actual operation parameter does not meet the target operation requirement corresponding to the operation mode, it is explained that the input actual operation parameter does not meet the safety policy related to the production of the power plant, and it can be determined that the automatic power generation control program cannot be executed or that the reason for executing the abnormality is that the actual operation parameter does not meet the target operation requirement corresponding to the operation mode. Meanwhile, the input actual operation parameters are sequentially subjected to security policy verification, second abnormality detection information which does not meet the security policy is output in a text box, wherein the second abnormality detection information comprises the actual operation parameters which do not meet the security policy and reasons which do not meet the security policy, the system refuses to execute error instructions, the actual operation parameters are obtained again, and the steps 102, 103 and 104 are repeated.
For example, when the full-field active set value entered by the user exceeds the adjustable upper active limit of the current operating unit, the system re-acquires the full-field active set value and resumes steps 102, 103, 104 described above.
By the method for detecting the abnormal point of the automatic power generation control program in the embodiment, when the abnormality of the automatic power generation control program is detected, the actual running parameters of the automatic power generation control program can be obtained; determining an operation mode of a strategy simulation system, judging whether actual operation parameters meet target operation requirements corresponding to the operation mode, and performing simulation on an automatic power generation control program by the strategy simulation system; if yes, executing a corresponding operation program according to the operation mode, outputting a single step execution result of the program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program; if not, outputting second abnormality detection information which does not meet the security policy. According to the invention, the actual operation parameters of the automatic power generation control program when the abnormality occurs are rapidly simulated, the safety strategy checking result and the program single-step execution result are output, the program execution process is output and displayed in detail, the complex principle of the automatic power generation control program is flattened, a user does not need to master complex operation logic of the automatic power generation control program when the fault is processed, the checking difficulty of the automatic power generation control program when the fault is processed can be reduced by checking the safety strategy checking result and the single-step execution result, the operation time is shortened, and the abnormal point of the program is rapidly positioned.
Further, as a refinement and extension of the specific implementation manner of the foregoing embodiment, in order to fully describe the specific implementation process in this embodiment, another method for detecting an abnormal point of an automatic power generation control program is provided, as shown in fig. 2, and the method includes:
201. and if the abnormality of the automatic power generation control program is detected, acquiring the actual operation parameters of the automatic power generation control program.
The specific implementation process may refer to the related description in embodiment step 101, and will not be described herein.
202a, if the operation mode of the strategy simulation system is determined to be a constant value mode, judging whether the actual operation parameters meet the first target operation requirements corresponding to the constant value mode.
The strategy simulation system is used for performing simulation on the automatic power generation control program. The first target operating requirement is a safety strategy related to the production of the power plant, and the safety strategy is set for guaranteeing the safe operation of the hydroelectric generating set. For the present embodiment, when determining whether the actual operation parameter meets the first target operation requirement corresponding to the constant value mode, the step 202a may specifically include: checking actual operation parameters according to a first safety strategy, wherein the first safety strategy at least comprises a first preset safety operation area and a first preset working condition; if the automatic power generation control program is determined to work in a first preset safe operation area according to the actual operation parameters and is matched with any first preset working condition, judging that the actual operation parameters meet first target operation requirements; and if the automatic power generation control program is determined to work in the first preset safe operation area according to the actual operation parameters and/or is not matched with any first preset working condition, judging that the actual operation parameters do not meet the first target operation requirements. The first safety strategy is to set a certain safe operation area and working conditions for ensuring the safe operation of the hydroelectric generating set under a constant value mode, and the first target operation requirement can be judged to be met through checking as long as the operation conditions are in the safe area and the working conditions; otherwise, if the operation condition does not meet at least one of the safety area and the working condition, the actual operation parameter is judged to not meet the first target operation requirement.
203a, if the actual running parameter meets the first target running requirement corresponding to the constant value mode, acquiring a user instruction through a window control, responding to the user instruction to execute the matched code segment, generating a single step execution result of the program, extracting a program execution step with an execution abnormality from the single step execution result of the program, marking the program execution step with the execution abnormality as an abnormal point, and outputting the abnormal program execution step.
For this embodiment, the code segment that responds to the user instruction to perform matching is specifically implemented as follows: the fixed value mode comprises the steps of increasing and decreasing the active power in the normal operation, increasing and decreasing the active power in the starting-up process, increasing and decreasing the active power in the stopping process, and the like, and different code segments can be judged and identified to be executed under different stages of the fixed value mode by different conditional statement program segments in the system. After the matched code segments are executed in response to the user instruction, a single-step execution result of the program is generated, program execution steps with execution anomalies are extracted from the single-step execution result of the program, the program execution steps with the execution anomalies are marked as outliers and output, and the program execution steps with the execution anomalies comprise distribution steps with unreasonable distribution results.
204a, if the actual operation parameter does not meet the first target operation requirement corresponding to the constant value mode, outputting second abnormality detection information that the actual operation parameter does not meet the first target operation requirement.
For the embodiment, when the actual operation parameter does not meet the first target operation requirement, it is explained that the input actual operation parameter does not meet the safety policy related to the production of the power plant, and it may be determined that the automatic power generation control program cannot be executed or that the reason for executing the abnormality is that the actual operation parameter does not meet the first target operation requirement. Meanwhile, the input actual operation parameters are sequentially subjected to security policy verification, second abnormality detection information which does not meet the security policy is output in a text box, wherein the second abnormality detection information comprises the actual operation parameters which do not meet the security policy and reasons which do not meet the security policy, the system refuses to execute error instructions and the like, the actual operation parameters are further obtained again, and the steps 202a, 203a and 204a are repeated.
For example, when the full-field active set point entered by the user exceeds the adjustable upper active limit of the currently operating unit, the system re-acquires the full-field active set point and resumes steps 202a, 203a, 204a described above.
In the embodiment step 202b, which is parallel to the embodiment step 202a, if it is determined that the operation mode of the policy simulation system is the curve mode, it is determined whether the actual operation parameter meets the second target operation requirement corresponding to the curve mode.
Wherein the second target operation requirement is a safety strategy related to the production of the power plant, and the safety strategy is set for ensuring the safe operation of the hydroelectric generating set. For the present embodiment, when determining whether the actual operation parameter meets the second target operation requirement corresponding to the curve mode, the step 202b may specifically include: checking actual operation parameters according to a second safety strategy, wherein the second safety strategy at least comprises a second preset safety operation area and a second preset working condition; if the automatic power generation control program is determined to work in a second preset safe operation area according to the actual operation parameters and is matched with any second preset working condition, judging that the actual operation parameters meet second target operation requirements; and if the automatic power generation control program is determined to work in the second preset safe operation area according to the actual operation parameters and/or is not matched with any second preset working condition, judging that the actual operation parameters do not meet the second target operation requirements. Corresponding to step 202a of the embodiment, the first safety strategy is to set some safe operation areas and working conditions for ensuring safe operation of the hydroelectric generating set in a curve mode, and the second target operation requirement can be met through checking as long as the operation conditions are in the safe areas and the working conditions; otherwise, if the operation condition does not meet at least one of the safety area and the working condition, the actual operation parameter is judged to not meet the second target operation requirement.
203b, if the actual running parameter meets the second target running requirement corresponding to the curve mode, receiving target curve data input by a user, generating a target curve according to the target curve data, executing a code segment matched with the target curve, generating a single step execution result of the program, extracting a program execution step with an execution abnormality from the single step execution result of the program, marking the program execution step with the execution abnormality as an abnormal point, and outputting the abnormal point.
For this embodiment, when generating the target curve according to the target curve data, only the active set values at specific time points are input, the program can calculate the slope between the two set values, and the active set values at time points not input between the two points are complemented according to the slope, so that the target curve can be obtained after all the time point set values are complemented. Accordingly, the steps of the embodiment may specifically include: calculating the slope of the curve according to the active set values of at least two preset time points, and generating a target curve according to the curve slope in a fitting way.
In a specific application scene, after executing a code segment matched with a target curve, generating a program single-step execution result, extracting a program execution step with an execution abnormality from the program single-step execution result, marking the program execution step with the execution abnormality as an abnormal point and outputting the abnormal point, wherein the program execution step with the execution abnormality comprises an allocation step with unreasonable allocation result.
204b, if the actual operation parameter does not meet the second target operation requirement corresponding to the curve mode, outputting second abnormality detection information that the actual operation parameter does not meet the second target operation requirement.
For the embodiment, when the actual operation parameter does not meet the second target operation requirement, it is explained that the input actual operation parameter does not meet the safety policy related to the production of the power plant, and it may be determined that the automatic power generation control program cannot be executed or that the reason for executing the abnormality is that the actual operation parameter does not meet the second target operation requirement. Meanwhile, the input actual operation parameters are sequentially subjected to security policy verification, second abnormality detection information which does not meet the security policy is output in a text box, wherein the second abnormality detection information comprises the actual operation parameters which do not meet the security policy and reasons which do not meet the security policy, the system refuses to execute error instructions, the actual operation parameters are obtained again, and the steps 202b, 203b and 204b are carried out again.
For example, when the full-field active set point entered by the user exceeds the adjustable upper active limit of the currently operating unit, the system re-acquires the full-field active set point and resumes steps 202b, 203b, 204b described above.
In order to fully explain the technical solution in the present application, the implementation process of the present application is fully described herein with reference to the schematic diagram of the abnormal point detection principle of the automatic power generation control program in fig. 3 of the specification:
step 21: according to the actual operation parameters of the automatic power generation control program, the actual operation parameters are input into a strategy simulation system for simulation, and the relevant parameters are acquired by an input unit.
Step 22: the execution unit judges the running mode of the current strategy simulation system, and if the running mode is a constant value mode, the step 23 is executed; if the curve mode is adopted, step 25 is executed.
Step 23: the fixed value module executing unit judges whether the numerical value acquired by the input unit meets the actual operation requirement, and if so, the step 27 is executed; if the requirements are not met, step 24 is performed.
Step 24: and the fixed value module execution unit sequentially checks according to a preset safety strategy in the program and outputs condition information and reasons which are not met by the check.
Step 25: the curve module executing unit judges whether the numerical value acquired by the input unit meets the actual operation requirement, and if so, the step 28 is executed; if the requirements are not met, step 26 is performed.
Step 26: and the curve module execution unit sequentially checks according to a preset safety strategy in the program and outputs condition information and reasons which are not met by the check.
Step 27: and acquiring instructions of the user through window controls such as buttons, text boxes and the like of the interface.
Step 28: according to the curve input by the user, the curve module execution unit automatically executes the corresponding code segment according to the input curve without manual operation and intervention.
Step 29: different code segments are executed by the constant value module execution unit according to the operation of the user.
Because the condition of the fixed value mode is complex, the fixed value module execution unit can automatically judge according to the operation parameters in the system so as to determine different code segments which need to be executed by the system at different stages.
Step 30: the program in the curve module execution unit or the fixed value module execution unit is displayed in the text box display unit, and the relevant numerical value is displayed in the graph display unit.
By means of the technical scheme, the abnormal point detection method of the automatic power generation control program can acquire actual operation parameters of the automatic power generation control program when detecting that the automatic power generation control program is abnormal; determining an operation mode of a strategy simulation system, judging whether actual operation parameters meet target operation requirements corresponding to the operation mode, and performing simulation on an automatic power generation control program by the strategy simulation system; if yes, executing a corresponding operation program according to the operation mode, outputting a single step execution result of the program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program; if not, outputting second abnormality detection information which does not meet the security policy. According to the invention, the actual operation parameters of the automatic power generation control program when the abnormality occurs are rapidly simulated, the safety strategy checking result and the program single-step execution result are output, the program execution process is output and displayed in detail, the complex principle of the automatic power generation control program is flattened, a user does not need to master complex operation logic of the automatic power generation control program when the fault is processed, the checking difficulty of the automatic power generation control program when the fault is processed can be reduced by checking the safety strategy checking result and the single-step execution result, the operation time is shortened, and the abnormal point of the program is rapidly positioned.
Further, as a specific implementation of the method shown in fig. 1 and fig. 2, an embodiment of the present application provides an apparatus for detecting an abnormal point of an automatic power generation control program, as shown in fig. 4, where the apparatus includes: the device comprises an acquisition module 31, a judgment module 32, a first output module 33 and a second output module 34;
the obtaining module 31 is configured to obtain an actual operation parameter of the automatic power generation control program if an abnormality of the automatic power generation control program is detected;
the judging module 32 is configured to determine an operation mode of the policy simulation system, and judge whether an actual operation parameter meets a target operation requirement corresponding to the operation mode, where the policy simulation system is configured to perform simulation on an automatic power generation control program;
the first output module 33 is configured to execute a corresponding running program according to the running mode, output a single step result of the program, and determine first abnormality detection information of the automatic power generation control program according to the single step result of the program if yes;
the second output module 34 is configured to output the second abnormality detection information that does not satisfy the security policy if not.
In a specific application scenario, when the operation mode is the constant value mode, as shown in fig. 5, the determining module 32 may specifically include: a judging unit 321, a first output unit 322, a second output unit 323;
a judging unit 321, configured to judge whether the actual operation parameter meets a first target operation requirement corresponding to the constant value mode;
the first output unit 322 is configured to obtain a user instruction through the window control if the user instruction is received, execute a matched code segment in response to the user instruction, generate a single step execution result of the program, and determine first abnormality detection information of the automatic power generation control program according to the single step execution result of the program;
the second output unit 323 is configured to output, if not, second abnormality detection information that the actual operation parameter does not meet the first target operation requirement.
Correspondingly, in order to determine whether the actual operation parameter meets the first target operation requirement corresponding to the constant value mode, the determining unit 321 may be specifically configured to check the actual operation parameter according to a first security policy, where the first security policy includes at least a first preset security operation area and a first preset working condition; if the automatic power generation control program is determined to work in a first preset safe operation area according to the actual operation parameters and is matched with any first preset working condition, judging that the actual operation parameters meet first target operation requirements; and if the automatic power generation control program is determined to work in the first preset safe operation area according to the actual operation parameters and/or is not matched with any first preset working condition, judging that the actual operation parameters do not meet the first target operation requirements.
Accordingly, the first abnormality detection information of the automatic power generation control program is determined according to the single step result of the program, and in order to determine an abnormal point of the automatic power generation control program according to the first abnormality detection information, the first output unit 322 is specifically configured to extract a program execution step having an abnormality in execution from the single step result of the program, and mark the program execution step having the abnormality as the abnormal point and output the abnormal point.
In a specific application scenario, when the operation mode is the curve mode, as shown in fig. 5, the determining module 32 may specifically further include:
the judging unit 321 may be further configured to judge whether the actual operation parameter meets a second target operation requirement corresponding to the curve mode;
the first output unit 322 is further configured to, if yes, receive target curve data input by a user, generate a target curve according to the target curve data, execute a code segment matched with the target curve, generate a single step execution result of the program, and determine first abnormality detection information of the automatic power generation control program according to the single step execution result of the program;
the second output unit 323 may be further configured to output second abnormality detection information that the actual operation parameter does not meet the second target operation requirement if not.
Correspondingly, in order to determine whether the actual operation parameter meets the second target operation requirement corresponding to the curve mode, the determining unit 321 may be specifically further configured to check the actual operation parameter according to a second security policy, where the second security policy includes at least a second preset security operation area and a second preset working condition; if the automatic power generation control program is determined to work in a second preset safe operation area according to the actual operation parameters and is matched with any second preset working condition, judging that the actual operation parameters meet second target operation requirements; and if the automatic power generation control program is determined to work in the second preset safe operation area according to the actual operation parameters and/or is not matched with any second preset working condition, judging that the actual operation parameters do not meet the second target operation requirements.
Correspondingly, the target curve data includes at least two active set values at preset time points, and in order to generate a target curve according to the target curve data, the first output unit 322 may be specifically further configured to calculate a curve slope according to the at least two active set values at preset time points, and generate the target curve according to curve slope fitting.
Accordingly, the first abnormality detection information of the automatic power generation control program is determined according to the single step execution result of the program, and in order to determine an abnormal point of the automatic power generation control program according to the first abnormality detection information, the second output unit 323 may be specifically configured to extract a program execution step having an execution abnormality from the single step execution result of the program, and mark the program execution step having the execution abnormality as the abnormal point and output the abnormal point.
It should be noted that, other corresponding descriptions of each functional unit related to the abnormal point detection device of the automatic power generation control program provided in this embodiment may refer to the corresponding descriptions of fig. 1 to 2, and are not repeated here.
Based on the above-described methods shown in fig. 1 to 2, correspondingly, the present embodiment further provides a nonvolatile storage medium having stored thereon computer readable instructions that, when executed by a processor, implement the above-described method for detecting abnormal points of the automatic power generation control program shown in fig. 1 to 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and includes several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to perform the methods described in various implementation scenarios of the present application.
Based on the method shown in fig. 1 to 2 and the virtual device embodiments shown in fig. 4 and 5, in order to achieve the above object, the present embodiment further provides a computer device, where the computer device includes a storage medium and a processor; a nonvolatile storage medium storing a computer program; a processor for executing a computer program to implement the above-described abnormal point detection method of the automatic power generation control program shown in fig. 1 to 2.
Optionally, the computer device may also include a user interface, a network interface, a camera, radio Frequency (RF) circuitry, sensors, audio circuitry, WI-FI modules, and the like. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), etc.
It will be appreciated by those skilled in the art that the architecture of a computer device provided in this embodiment is not limited to this physical device, but may include more or fewer components, or may be combined with certain components, or may be arranged in a different arrangement of components.
The nonvolatile storage medium may also include an operating system, network communication modules. An operating system is a program that manages the computer device hardware and software resources described above, supporting the execution of information handling programs and other software and/or programs. The network communication module is used for realizing communication among all components in the nonvolatile storage medium and communication with other hardware and software in the information processing entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware.
By applying the technical scheme, the abnormal point detection method of the automatic power generation control program can acquire actual operation parameters of the automatic power generation control program when detecting that the automatic power generation control program is abnormal; determining an operation mode of a strategy simulation system, judging whether actual operation parameters meet target operation requirements corresponding to the operation mode, and performing simulation on an automatic power generation control program by the strategy simulation system; if yes, executing a corresponding operation program according to the operation mode, outputting a single step execution result of the program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program; if not, outputting second abnormality detection information which does not meet the security policy. According to the invention, the actual operation parameters of the automatic power generation control program when the abnormality occurs are rapidly simulated, the safety strategy checking result and the program single-step execution result are output, the program execution process is output and displayed in detail, the complex principle of the automatic power generation control program is flattened, a user does not need to master complex operation logic of the automatic power generation control program when the fault is processed, the checking difficulty of the automatic power generation control program when the fault is processed can be reduced by checking the safety strategy checking result and the single-step execution result, the operation time is shortened, and the abnormal point of the program is rapidly positioned.
Those skilled in the art will appreciate that the drawings are merely schematic illustrations of one preferred implementation scenario, and that the modules or flows in the drawings are not necessarily required to practice the present application. Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The foregoing application serial numbers are merely for description, and do not represent advantages or disadvantages of the implementation scenario. The foregoing disclosure is merely a few specific implementations of the present application, but the present application is not limited thereto and any variations that can be considered by a person skilled in the art shall fall within the protection scope of the present application.

Claims (10)

1. An abnormal point detection method of an automatic power generation control program, comprising:
if the abnormality of the automatic power generation control program is detected, acquiring actual operation parameters of the automatic power generation control program;
determining an operation mode of a strategy simulation system, and judging whether the actual operation parameters meet target operation requirements corresponding to the operation mode, wherein the strategy simulation system is used for performing simulation on the automatic power generation control program;
if yes, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormality detection information of the automatic power generation control program according to the program single-step execution result;
if not, outputting second abnormality detection information which does not meet the security policy.
2. The method of claim 1, wherein the mode of operation comprises a constant value mode;
the judging whether the actual operation parameters meet the target operation requirements corresponding to the operation mode comprises the following steps:
judging whether the actual operation parameters meet first target operation requirements corresponding to the constant value mode or not;
if yes, acquiring a user instruction through a window control, responding to the user instruction to execute a matched code segment, generating a single step execution result of a program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program;
if not, outputting second abnormality detection information of which the actual operation parameters do not meet the first target operation requirements.
3. The method of claim 2, wherein determining whether the actual operating parameter meets the first target operating requirement corresponding to the constant value mode comprises:
checking the actual operation parameters according to a first safety strategy, wherein the first safety strategy at least comprises a first preset safety operation area and a first preset working condition;
if the automatic power generation control program is determined to work in the first preset safe operation area according to the actual operation parameters and is matched with any one of the first preset working conditions, judging that the actual operation parameters meet the first target operation requirements;
and if the automatic power generation control program is determined to work in the first preset safe operation area according to the actual operation parameters and/or is not matched with any one of the first preset working conditions, judging that the actual operation parameters do not meet the first target operation requirements.
4. The method of claim 1, wherein the operating mode further comprises a curvilinear mode;
the judging whether the actual operation parameters meet the target operation requirements corresponding to the operation mode comprises the following steps:
judging whether the actual operation parameters meet second target operation requirements corresponding to the curve mode or not;
if yes, receiving target curve data input by a user, generating a target curve according to the target curve data, executing a code segment matched with the target curve, generating a single step execution result of a program, and determining first abnormality detection information of the automatic power generation control program according to the single step execution result of the program;
if not, outputting second abnormality detection information of which the actual operation parameters do not meet the second target operation requirements.
5. The method of claim 4, wherein determining whether the actual operating parameter meets the second target operating requirement corresponding to the curve mode comprises:
checking the actual operation parameters according to a second safety strategy, wherein the second safety strategy at least comprises a second preset safety operation area and a second preset working condition;
if the automatic power generation control program is determined to work in the second preset safe operation area according to the actual operation parameters and is matched with any second preset working condition, judging that the actual operation parameters meet the second target operation requirements;
and if the automatic power generation control program is determined to work in the second preset safe operation area according to the actual operation parameters and/or is not matched with any second preset working condition, judging that the actual operation parameters do not meet the second target operation requirements.
6. The method of claim 4, wherein the target profile data comprises active set points for at least two preset time points;
the generating a target curve according to the target curve data comprises the following steps:
calculating a curve slope according to the active set values of the at least two preset time points, and generating a target curve according to the curve slope in a fitting mode.
7. The method according to any one of claims 2 or 4, wherein the determining of the first abnormality detection information of the automatic power generation control program according to the program single step execution result includes:
and extracting program execution steps with execution abnormality from the single step execution result of the program, marking the program execution steps with execution abnormality as abnormal points and outputting the abnormal points.
8. An abnormal point detection device for an automatic power generation control program, comprising:
the acquisition module is used for acquiring actual operation parameters of the automatic power generation control program if the abnormality of the automatic power generation control program is detected;
the judging module is used for determining the operation mode of the strategy simulation system and judging whether the actual operation parameters meet the target operation requirements corresponding to the operation mode, and the strategy simulation system is used for performing simulation on the automatic power generation control program;
the first output module is used for executing a corresponding running program according to the running mode if yes, outputting a program single-step execution result, and determining first abnormality detection information of the automatic power generation control program according to the program single-step execution result;
and the second output module is used for outputting second abnormality detection information which does not meet the security policy if not.
9. A storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the abnormal point detection method of the automatic power generation control program according to any one of claims 1 to 7.
10. A computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the abnormal point detection method of the automatic power generation control program according to any one of claims 1 to 7 when executing the program.
CN202111243636.5A 2021-10-25 2021-10-25 Abnormal point detection method and device for automatic power generation control program and computer equipment Active CN114185324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111243636.5A CN114185324B (en) 2021-10-25 2021-10-25 Abnormal point detection method and device for automatic power generation control program and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111243636.5A CN114185324B (en) 2021-10-25 2021-10-25 Abnormal point detection method and device for automatic power generation control program and computer equipment

Publications (2)

Publication Number Publication Date
CN114185324A CN114185324A (en) 2022-03-15
CN114185324B true CN114185324B (en) 2024-04-02

Family

ID=80601428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111243636.5A Active CN114185324B (en) 2021-10-25 2021-10-25 Abnormal point detection method and device for automatic power generation control program and computer equipment

Country Status (1)

Country Link
CN (1) CN114185324B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115070660B (en) * 2022-06-23 2024-01-09 珠海格力智能装备有限公司 Control method and control device for servo electric batch
CN117332121A (en) * 2023-09-26 2024-01-02 华能澜沧江水电股份有限公司 Hydropower plant non-electric quantity protection logic map generation system and method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4535456A (en) * 1982-02-26 1985-08-13 Robert Bosch Gmbh Method of detecting execution errors in program-controlled apparatus
US6031991A (en) * 1994-05-19 2000-02-29 Kabsuhiki Kaisha Toshiba Debug system and method for reproducing an error occurring in parallel-executed programs
CN101616151A (en) * 2009-07-31 2009-12-30 中国科学院软件研究所 A kind of automated network attack characteristic generation method
CN103954925A (en) * 2014-05-04 2014-07-30 国家电网公司 Fault recorder dynamic testing method based on RTDS real-time simulation
CN105701016A (en) * 2016-03-03 2016-06-22 南京大学 Test method for exception handling codes
CN106408438A (en) * 2015-07-31 2017-02-15 中国电力科学研究院 Method for automatically checking safety and stability control strategy based on dynamic simulation of whole process
CN109150100A (en) * 2018-09-13 2019-01-04 国网电子商务有限公司 Fault detection method, device, equipment and the storage medium of photovoltaic plant
CN112416735A (en) * 2019-08-21 2021-02-26 腾讯科技(深圳)有限公司 Application program detection method and device, terminal equipment and storage medium
CN113434385A (en) * 2021-05-26 2021-09-24 华东师范大学 Method and system for automatically generating test case for software model inspection tool

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2489000B (en) * 2011-03-14 2019-09-11 Advanced Risc Mach Ltd Diagnosing code using single step execution

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4535456A (en) * 1982-02-26 1985-08-13 Robert Bosch Gmbh Method of detecting execution errors in program-controlled apparatus
US6031991A (en) * 1994-05-19 2000-02-29 Kabsuhiki Kaisha Toshiba Debug system and method for reproducing an error occurring in parallel-executed programs
CN101616151A (en) * 2009-07-31 2009-12-30 中国科学院软件研究所 A kind of automated network attack characteristic generation method
CN103954925A (en) * 2014-05-04 2014-07-30 国家电网公司 Fault recorder dynamic testing method based on RTDS real-time simulation
CN106408438A (en) * 2015-07-31 2017-02-15 中国电力科学研究院 Method for automatically checking safety and stability control strategy based on dynamic simulation of whole process
CN105701016A (en) * 2016-03-03 2016-06-22 南京大学 Test method for exception handling codes
CN109150100A (en) * 2018-09-13 2019-01-04 国网电子商务有限公司 Fault detection method, device, equipment and the storage medium of photovoltaic plant
CN112416735A (en) * 2019-08-21 2021-02-26 腾讯科技(深圳)有限公司 Application program detection method and device, terminal equipment and storage medium
CN113434385A (en) * 2021-05-26 2021-09-24 华东师范大学 Method and system for automatically generating test case for software model inspection tool

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Data-Driven Anomaly Detection for Power System Generation Control";P. Wang;《ICDMW》;20171231;全文 *
王鹏宇 ; 孔德宁 ; 朱华 ; .龙滩电站自动发电控制(AGC)安全策略.水电站机电技术.2011,34(01),全文. *

Also Published As

Publication number Publication date
CN114185324A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN114185324B (en) Abnormal point detection method and device for automatic power generation control program and computer equipment
CN106294120B (en) Method, apparatus and computer program product for testing code
EP3032367A1 (en) Plant monitoring system
CN110994704B (en) Transient stability prevention control aid decision-making method and device and electronic equipment
CN110988563B (en) UPS (uninterrupted Power supply) fault detection method, device, equipment and storage medium
CN109543941A (en) A method of nuclear power plant's accident strategy definite value is determined based on containment operating condition
CN115062906A (en) Intelligent evaluation method and device for production operation risk
CN111818066A (en) Risk detection method and device
CN111665816A (en) DCS (distributed control system) engineering configuration verification method based on nuclear power simulation technology
CN111200780B (en) Method and device for detecting abnormality of positioning data and computer-readable storage medium
US20220401825A1 (en) Alarm method and apparatus for tabletop game, electronic device and storage medium
US20170060670A1 (en) Method of preventing misoperations about a relay protection device in a smart substation
CN109142979A (en) A kind of detection method and device of Abnormal State for Power Distribution Network
CN105184685A (en) Usability evaluation method for nuclear power design phase
JP5687122B2 (en) Software evaluation device, software evaluation method, and system evaluation device
KR101932286B1 (en) Method and apparatus for assessing voltage sag considering wind power generation
EP3651296A1 (en) System operation support device and method in power system, and wide-area monitoring protection control system
CN108021774B (en) Data processing method and device
CN108011707B (en) Frequency security analysis system and method for hardware encryption equipment
KR20170123389A (en) System and method for human error probability calculation of nuclear generating station
CN109270920A (en) The self diagnostic capability evaluation method and device of the non-security grade I &C equipment of nuclear power station
CN108917710A (en) The monitoring method and monitoring device of shallow-depth-excavation tunnel sedimentation
CN114330865A (en) Power grid reserve capacity prediction method and system, computer equipment and storage medium
CN106682828A (en) Communication tower maintenance operation progress monitoring method and communication tower maintenance operation progress monitoring system
CN109960778B (en) Method and device for calculating theoretical power of wind power plant

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