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

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

Info

Publication number
CN114185324A
CN114185324A CN202111243636.5A CN202111243636A CN114185324A CN 114185324 A CN114185324 A CN 114185324A CN 202111243636 A CN202111243636 A CN 202111243636A CN 114185324 A CN114185324 A CN 114185324A
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.)
Granted
Application number
CN202111243636.5A
Other languages
Chinese (zh)
Other versions
CN114185324B (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

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/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 and device of an automatic power generation control program and computer equipment, relates to the field of automatic control of power systems, and can solve the problems that when the execution of the automatic power generation control program is abnormal, program execution steps are difficult to analyze accurately, and abnormal points cannot be located quickly. If the abnormality of the automatic power generation control program is detected, acquiring actual operation parameters of the automatic power generation control program; the method comprises the following steps: 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, and the operation mode comprises a fixed value mode and a curve mode; if so, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result; and if not, outputting second abnormal detection information which does not meet the security policy.

Description

Abnormal point detection method and device of automatic power generation control program and computer equipment
Technical Field
The present disclosure relates to the field of automatic control of power systems, and more particularly, to a method and an apparatus for detecting an abnormal point of an automatic power generation control program, and a computer device.
Background
Automatic Generation Control (AGC) is also called Automatic Control of power system Frequency and active power, or Load and Frequency Control (LFC). The method is characterized in that a generator set tracks an instruction issued by a power dispatching transaction organization within a specified output adjustment range, and adjusts the generated output in real time according to a certain adjustment rate so as to meet the requirements of power system frequency and tie line power control. With the continuous expansion of the scale of the power grid in China, the automatic power generation control can effectively relieve the influence of the problems of increased disturbance, quick load change and the like on the power grid and maintain the stability of the system frequency, and the system frequency is one of important parameters considering the operation quality of the power grid, so the automatic power generation control plays an important role in improving the power quality of the power grid.
With the increasing requirements on the accuracy, rapidity and the like of automatic power generation control adjustment, various power generation enterprises are continuously optimizing and improving the adjustment control strategy of 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 when the automatic power generation control program is abnormally executed, the execution steps in the program are difficult to accurately analyze, abnormal points or error logic cannot be quickly positioned, a large amount of time is consumed for manual analysis, and the situations of artificial misjudgment and misjudgment are easily caused by the complicated automatic power generation control program logic. If the fault point cannot be quickly positioned, the generation of a power generation enterprise cannot be normally carried out, and the normal operation of the society is influenced while great economic loss is brought to the power generation enterprise.
Disclosure of Invention
In view of this, the present application provides an abnormal point detection method, an abnormal point detection device and a computer device for an automatic power generation control program, which mainly solve the problems that when the automatic power generation control program is abnormal in execution, it is difficult to perform accurate analysis on the execution steps in the program, and it is not possible to quickly locate an abnormal point or an error logic.
According to an aspect of the present application, there is provided an abnormal point detecting 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 carrying out simulation on the automatic power generation control program;
if so, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result;
and if not, outputting second abnormal detection information which does not meet the security policy.
According to another aspect of the present application, there is provided an abnormal point detecting apparatus of an automatic power generation control program, the apparatus including:
the acquisition module can be used for acquiring the 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 carrying out simulation on the automatic power generation control program;
the first output module is used for executing a corresponding operation program according to the operation mode if the first output module is in the positive state, outputting a program single-step execution result and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result;
and the second output module can be used for outputting second abnormal detection information which does not meet the security policy if the first abnormal detection information does not meet the security policy.
According to still another aspect of the present application, there is provided a nonvolatile readable storage medium having stored thereon a computer program which, when executed by a processor, implements the abnormal point detecting method of the above-described automatic power generation control program.
According to still another aspect of the present application, there is provided a computer apparatus 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 detecting method of the above-described automatic power generation control program when executing the program.
By means of the technical scheme, the abnormal point detection method, the abnormal point detection device and the computer equipment of the automatic power generation control program solve the problems that when the automatic power generation control program is abnormal in execution, the execution steps in the program are difficult to analyze accurately, and the abnormal points or wrong logics cannot be located quickly. According to the method and the device, analog simulation is carried out on data when the automatic power generation control program is abnormal, 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 the complex operation logic of the automatic power generation control program during fault processing, and the checking difficulty during fault processing of the automatic power generation control program 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 embodiment(s) of the application and together with the description serve to explain the application and not to limit the application to the disclosed embodiment. In the drawings:
fig. 1 is a schematic flowchart illustrating 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 illustrating 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 routine according to an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating 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 illustrating an abnormal point 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 below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In order to solve the problems that it is difficult to perform accurate analysis on the execution steps in the automatic power generation control program and it is impossible to quickly locate an abnormal point or an error logic when the automatic power generation control program is executed abnormally at present, an embodiment of the present application provides an abnormal point detection method for an automatic power generation control program, which includes:
101. and if the abnormality of the automatic power generation control program is detected, acquiring actual operation parameters of the automatic power generation control program.
The actual operation parameters comprise a full active power set value, whether a single unit is put into automatic power generation control or not, unit regulation priority and the like.
The full-field active power set value is used for calculating full-field active power distributed by automatic power generation control, and the calculation formula is as follows: pAGC=PSET+pAGCIn which P isAGCFull active power, P, allocated for automatic generation controlSETFor the full field active setting, pAGCThe sum of actual power generation and active power which does not participate in the automatic power generation control unit. Participate in automatic power generation controlThe number of the units in the section and the priority of each unit adjustment are determined by negotiating the power plant and scheduling and aiming at the minimum cost and the safe operation of the units according to the actual unit operation condition. Therefore, when a power generation task is received, the priority of the set is selected and called, and each set in the hydraulic power plant can be ensured to run safely and stably. For the embodiment, when the abnormality of the automatic power generation control program is detected, the data can be extracted first, so that the cause of the abnormality of the automatic power generation control program can be accurately located through analysis of the actual operation parameters.
102. And 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, wherein the strategy simulation system is used for carrying out simulation on the automatic power generation control program.
The target operation requirement is a safety strategy related to power plant production, and the safety strategy is set for guaranteeing safe operation of the hydroelectric generating set. The 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, in the fixed value mode, the difference between two adjacent scheduling set values is not more than 100MW, and in the curve mode, the difference between two adjacent curve set values corresponding to two adjacent time points is not more than 100 MW.
For this embodiment, the determination of whether the actual operation parameter meets the target operation requirement corresponding to the operation mode is to determine whether the automatic power generation control program cannot be executed or whether the reason for the execution 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 determine the reason for the occurrence of the abnormality of the automatic power generation control program can be shortened, and the difficulty in detecting the abnormality of the automatic power generation control program can be reduced.
103. And if the actual operation parameters meet the target operation requirements corresponding to the operation modes, executing the corresponding operation programs according to the operation modes, outputting the single-step execution results of the programs, and determining first abnormal detection information of the automatic power generation control programs according to the single-step execution results of the programs.
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 strategies related to the power plant production, the program is continuously executed, the operation programs are different in different operation modes, for example, the operation modes of the strategy simulation system include a fixed value mode and a curve mode, the distribution strategy of the curve mode is related to time, the user inputs the active set value at a specific time point, the program obtains a curve based on the active set value at the specific time point, and corresponding code segments are executed according to the curve; the allocation strategy of the fixed 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 operating parameters in the system under the operation of a user. And 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 a distribution step with an unreasonable distribution result.
104. And if the actual operation parameters do not meet the target operation requirements corresponding to the operation mode, 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 described that the input actual operation parameter does not meet the safety policy related to the power plant production, and it may be determined that the reason why the automatic power generation control program cannot be executed or the execution is abnormal 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 safety strategy verification, second abnormal detection information which does not meet the safety strategy is output in a text box, the second abnormal detection information comprises the actual operation parameters which do not meet the safety strategy and reasons for non-satisfaction, the system refuses to execute an error instruction, obtains the actual operation parameters again, and the steps 102, 103 and 104 are carried out again.
For example, when the full field active power setting value input by the user exceeds the adjustable active power upper limit of the currently operating unit, the system reacquires the full field active power setting value, and performs the above steps 102, 103, and 104 again.
By the abnormal point detection method of the automatic power generation control program in the embodiment, when the automatic power generation control program is detected to be abnormal, the actual operation parameters of the automatic power generation control program can be obtained; 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 carrying out simulation on an automatic power generation control program; if so, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result; and if not, outputting second abnormal detection information which does not meet the security policy. The invention carries out rapid analog simulation on the actual operation parameters when the automatic power generation control program is abnormal, outputs the safety strategy check result and the program single-step execution result, and displays the program execution process in detail, flattens the complex principle of the automatic power generation control program, so that a user does not need to master the complex operation logic of the automatic power generation control program during fault processing, and can reduce the check difficulty during fault processing of the automatic power generation control program by checking the safety check strategy result and the single-step execution result, shorten the operation time and rapidly position the abnormal point of the program.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully explain the specific implementation process in the present embodiment, another abnormal point detection method of an automatic power generation control program is provided, as shown in fig. 2, the method includes:
201. and if the abnormality of the automatic power generation control program is detected, acquiring actual operation parameters of the automatic power generation control program.
The specific implementation process may refer to the related description in step 101 of the embodiment, and is not described herein again.
202a, if the operation mode of the strategy simulation system is determined to be the fixed value mode, judging whether the actual operation parameters meet the first target operation requirement corresponding to the fixed value mode.
And the strategy simulation system is used for carrying out simulation on the automatic power generation control program. The first target operating requirement is a safety strategy associated with the power plant production, which is set for ensuring safe operation of the hydroelectric generating set. For this embodiment, when determining whether the actual operating parameter meets the first target operating requirement corresponding to the constant value mode, the step 202a of the embodiment 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, the actual operation parameters are judged to meet first target operation requirements; and if the automatic power generation control program is determined not to work in the first preset safe operation area and/or not to be matched with any first preset working condition according to the actual operation parameters, judging that the actual operation parameters do not meet the first target operation requirement. The first safety strategy is that in a constant value mode, in order to guarantee certain set safe operation areas and working conditions for safe operation of the hydroelectric generating set, as long as the operation conditions are in the safe areas and the working conditions, the first target operation requirement can be judged to be met through checking; otherwise, if the operation condition does not meet at least one of the safety region and the working condition, the actual operation parameter is judged not to meet the first target operation requirement.
203a, if the actual operation parameter meets the first target operation requirement corresponding to the fixed value mode, acquiring a user instruction through the window control, responding to the user instruction to execute the matched code segment, generating a program single-step execution result, extracting a program execution step with execution exception from the program single-step execution result, and marking the program execution step with execution exception as an exception point and outputting the abnormal program execution step.
For this embodiment, the specific implementation manner of executing the matched code segment in response to the user instruction is as follows: the fixed value mode comprises stages of increasing and decreasing active power during normal operation, increasing and decreasing active power during startup, increasing and decreasing active power during shutdown and the like, and different conditional statement program sections in the system can judge and identify different code segments to be executed at different stages of the fixed value mode. And after responding to the user instruction to execute the matched code segment, generating a program single-step execution result, extracting a program execution step with execution exception from the program single-step execution result, marking the program execution step with execution exception as an exception point and outputting the exception point, wherein the program execution step with execution exception comprises an allocation step with unreasonable allocation result.
204a, if the actual operation parameter does not meet the first target operation requirement corresponding to the fixed value mode, outputting second abnormal 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 satisfy the first target operation requirement, it is described that the input actual operation parameter does not satisfy the safety policy related to the power plant production, and it may be determined that the automatic power generation control program cannot be executed or the reason for the execution abnormality is that the actual operation parameter does not satisfy the first target operation requirement. Meanwhile, the input actual operation parameters are sequentially subjected to security policy verification, second abnormal detection information which does not meet the security policy is output in a text box, wherein the second abnormal detection information comprises the actual operation parameters which do not meet the security policy and reasons of non-satisfaction, the system refuses to execute an error instruction and the like, the actual operation parameters are further obtained again, and the steps 202a, 203a and 204a are carried out again.
For example, when the full field active power setting value input by the user exceeds the adjustable active power upper limit of the currently operating unit, the system reacquires the full field active power setting value, and performs the above steps 202a, 203a, 204a again.
In an embodiment step 202b, which is parallel to the embodiment step 202a, if it is determined that the operation mode of the strategic simulation system is the curve mode, it is determined whether the actual operation parameter meets a second target operation requirement corresponding to the curve mode.
The second target operation requirement is a safety strategy related to the power plant production, and the safety strategy is set for guaranteeing the safe operation of the hydroelectric generating set. For this embodiment, when determining whether the actual operating parameter meets the second target operating requirement corresponding to the curve mode, the step 202b of the embodiment may specifically include: 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 a second preset safe operation area according to the actual operation parameters and is matched with any second preset working condition, the actual operation parameters are judged to meet second target operation requirements; and if the automatic power generation control program is determined not to work in the second preset safe operation area and/or not to be matched with any second preset working condition according to the actual operation parameters, judging that the actual operation parameters do not meet the second target operation requirement. Corresponding to step 202a of the embodiment, the first safety strategy is to determine that a second target operation requirement is met through checking in a curve mode as long as operation conditions are in a safe region and a working condition in order to ensure that certain set safe operation regions and working conditions are set for safe operation of the hydroelectric generating set; otherwise, if the operation condition does not meet at least one of the safety region and the working condition, the actual operation parameter is judged not to meet the second target operation requirement.
203b, if the actual operation parameter meets a second target operation 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 program single-step execution result, extracting a program execution step with execution exception from the program single-step execution result, marking the program execution step with the execution exception as an exception point and outputting the abnormal program execution step.
For this embodiment, when the target curve is generated according to the target curve data, the program can calculate the slope between the two set values only by inputting the active set value at a specific time point, and complement the active set values at the time points which are not input between the two points according to the slope, so that the target curve can be obtained by complementing the set values at all time points. Correspondingly, the embodiment steps may specifically include: and calculating the slope of the curve according to the active set values of at least two preset time points, and fitting according to the slope of the curve to generate a target curve.
In a specific application scenario, after a code segment matched with a target curve is executed, a program single-step execution result is generated, a program execution step with execution exception is extracted from the program single-step execution result, the program execution step with execution exception is marked as an exception point and output, wherein the program execution step with execution exception 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 abnormal 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 satisfy the second target operation requirement, it is described that the input actual operation parameter does not satisfy the safety policy related to the power plant production, and it may be determined that the automatic power generation control program cannot be executed or the reason for the execution abnormality is that the actual operation parameter does not satisfy the second target operation requirement. Meanwhile, the input actual operation parameters are sequentially subjected to security policy verification, second abnormal detection information which does not meet the security policy is output in a text box, wherein the second abnormal detection information comprises the actual operation parameters which do not meet the security policy and reasons for non-satisfaction, the system refuses to execute an error instruction, obtains the actual operation parameters again, and performs the steps 202b, 203b and 204b again.
For example, when the full field active power setting value input by the user exceeds the adjustable active power upper limit of the currently operating unit, the system reacquires the full field active power setting value, and performs the above steps 202b, 203b, and 204b again.
For a complete description of 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: and inputting the actual operation parameters into a strategy simulation system for simulation according to the actual operation parameters of the automatic power generation control program, and acquiring the related parameters by an input unit.
Step 22: the execution unit judges the operation mode of the current strategy simulation system, and if the operation mode is a constant value mode, the step 23 is executed; if the curve mode is selected, step 25 is executed.
Step 23: the fixed value module execution unit judges whether the numerical value obtained by the input unit meets the actual operation requirement, and if the numerical value meets the actual operation requirement, the step 27 is executed; if not, go to step 24.
Step 24: and the constant value module execution unit sequentially checks according to a preset safety strategy in the program and outputs condition information and reasons which are not satisfied by checking.
Step 25: the curve module execution unit judges whether the numerical value obtained by the input unit meets the actual operation requirement, and if the numerical value meets the actual operation requirement, the step 28 is executed; if not, go to step 26.
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 satisfied by checking.
Step 27: and acquiring the instruction of the user through window controls such as buttons and text boxes of the interface.
Step 28: according to the curve input by the user, the curve module execution unit can automatically execute the corresponding code segment according to the input curve without manual operation and intervention.
Step 29: and executing different code segments according to the operation of a user through the fixed value module execution unit.
Because the situation of the fixed value mode is complex, the execution unit of the fixed value module 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: and displaying the programs in the curve module execution unit or the fixed value module execution unit in the text box display unit, and displaying the related numerical values in the chart display unit.
By means of the technical scheme, the abnormal point detection method of the automatic power generation control program can acquire the actual operation parameters of the automatic power generation control program when the automatic power generation control program is detected to be abnormal; 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 carrying out simulation on an automatic power generation control program; if so, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result; and if not, outputting second abnormal detection information which does not meet the security policy. The invention carries out rapid analog simulation on the actual operation parameters when the automatic power generation control program is abnormal, outputs the safety strategy check result and the program single-step execution result, and displays the program execution process in detail, flattens the complex principle of the automatic power generation control program, so that a user does not need to master the complex operation logic of the automatic power generation control program during fault processing, and can reduce the check difficulty during fault processing of the automatic power generation control program by checking the safety check strategy result and the single-step execution result, shorten the operation time and rapidly position the abnormal point of the program.
Further, as a specific implementation of the method shown in fig. 1 and fig. 2, an embodiment of the present application provides an abnormal point detection apparatus for an automatic power generation control program, as shown in fig. 4, 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 it is detected that the automatic power generation control program is abnormal;
the judging module 32 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, wherein the strategy simulation system is used for performing simulation on the automatic power generation control program;
the first output module 33 is used for executing the corresponding running program according to the running mode if the first output module is the running mode, outputting a program single-step execution result and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result;
and a second output module 34, configured to output second anomaly detection information that does not satisfy the security policy if the first anomaly detection information does not satisfy the security policy.
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 determination unit 321, a first output unit 322, a second output unit 323;
a determining unit 321, configured to determine whether the actual operating parameter meets a first target operating requirement corresponding to the fixed-value mode;
the first output unit 322 is configured to, if yes, obtain a user instruction through the window control, execute the matched code segment in response to the user instruction, generate a program single-step execution result, and determine first anomaly detection information of the automatic power generation control program according to the program single-step execution result;
and the second output unit 323 is used for outputting second abnormality detection information that the actual operation parameter does not meet the first target operation requirement if 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 safety policy, where the first safety policy at least includes 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, the actual operation parameters are judged to meet first target operation requirements; and if the automatic power generation control program is determined not to work in the first preset safe operation area and/or not to be matched with any first preset working condition according to the actual operation parameters, judging that the actual operation parameters do not meet the first target operation requirement.
Accordingly, the first abnormality detection information of the automatic power generation control program is determined according to the program single-step execution result, and in order to determine the 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 the program execution step having the execution abnormality from the program single-step execution result, and mark the program execution step having the execution 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 further include:
the determining unit 321 is further configured to determine whether the actual operating parameter meets a second target operating 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 program single-step execution result, and determine first anomaly detection information of the automatic power generation control program according to the program single-step execution result;
the second output unit 323 is further configured to, if not, output second abnormality detection information that the actual operation parameter does not meet the second target operation requirement.
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 further configured to check the actual operation parameter according to a second safety policy, where the second safety policy at least includes 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, the actual operation parameters are judged to meet second target operation requirements; and if the automatic power generation control program is determined not to work in the second preset safe operation area and/or not to be matched with any second preset working condition according to the actual operation parameters, judging that the actual operation parameters do not meet the second target operation requirement.
Correspondingly, the target curve data includes active set values at least two preset time points, and in order to generate the target curve according to the target curve data, the first output unit 322 is further specifically configured to calculate a slope of the curve according to the active set values at the at least two preset time points, and generate the target curve according to a fitting of the slope of the curve.
Accordingly, the second output unit 323 may be further specifically configured to extract the program execution step having the execution abnormality from the program single step execution result, mark the program execution step having the execution abnormality as the abnormality point, and output the program execution step.
It should be noted that other corresponding descriptions of the functional units related to the abnormal point detecting device of the automatic power generation control program provided in this embodiment may refer to the corresponding descriptions in fig. 1 to fig. 2, and are not described herein again.
Based on the above-described methods shown in fig. 1 to 2, accordingly, the present embodiment also provides a non-volatile storage medium having stored thereon computer readable instructions which, when executed by a processor, implement the above-described abnormal point detection method 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 (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Based on the method shown in fig. 1 to fig. 2 and the virtual device embodiments shown in fig. 4 and fig. 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 for storing a computer program; a processor for executing a computer program to implement the abnormal point detecting method of the automatic power generation control program as shown in fig. 1 to 2 described above.
Optionally, the computer device may further include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, a sensor, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (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 understood by those skilled in the art that the present embodiment provides a computer device structure that is not limited to the physical device, and may include more or less components, or some components in combination, or a different arrangement of components.
The nonvolatile storage medium can also comprise an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the computer device described above, supporting the operation of information handling programs and other software and/or programs. The network communication module is used for realizing communication among components in the nonvolatile storage medium and communication with other hardware and software in the information processing entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware.
By applying the technical scheme of the application, the abnormal point detection method of the automatic power generation control program can acquire the actual operation parameters of the automatic power generation control program when the abnormal condition of the automatic power generation control program is detected; 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 carrying out simulation on an automatic power generation control program; if so, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result; and if not, outputting second abnormal detection information which does not meet the security policy. The invention carries out rapid analog simulation on the actual operation parameters when the automatic power generation control program is abnormal, outputs the safety strategy check result and the program single-step execution result, and displays the program execution process in detail, flattens the complex principle of the automatic power generation control program, so that a user does not need to master the complex operation logic of the automatic power generation control program during fault processing, and can reduce the check difficulty during fault processing of the automatic power generation control program by checking the safety check strategy result and the single-step execution result, shorten the operation time and rapidly position the abnormal point of the program.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. An abnormal point detection method of an automatic power generation control program, characterized by 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 carrying out simulation on the automatic power generation control program;
if so, executing a corresponding operation program according to the operation mode, outputting a program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result;
and if not, outputting second abnormal detection information which does not meet the security policy.
2. The method of claim 1, wherein the operational mode comprises a constant value mode;
the judging whether the actual operation parameter meets the target operation requirement corresponding to the operation mode includes:
judging whether the actual operation parameters meet a first target operation requirement corresponding to the fixed value mode;
if so, acquiring a user instruction through a window control, responding to the user instruction to execute a matched code segment, generating a program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result;
and if not, outputting second abnormal detection information that the actual operation parameters do not meet the first target operation requirement.
3. The method of claim 2, wherein said determining whether the actual operating parameter meets a first target operating requirement corresponding to the fixed 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 first preset working condition, the actual operation parameters are judged to meet the first target operation requirement;
and if the automatic power generation control program does not work in the first preset safe operation area and/or is not matched with any first preset working condition according to the actual operation parameters, judging that the actual operation parameters do not meet the first target operation requirement.
4. The method of claim 1, wherein the operating mode further comprises a curvilinear mode;
the judging whether the actual operation parameter meets the target operation requirement corresponding to the operation mode includes:
judging whether the actual operation parameters meet second target operation requirements corresponding to the curve mode;
if so, 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 program single-step execution result, and determining first abnormal detection information of the automatic power generation control program according to the program single-step execution result;
and if not, outputting second abnormal detection information that the actual operation parameters do not meet the second target operation requirement.
5. The method of claim 4, wherein said determining whether the actual operating parameter meets a second target operating requirement corresponding to the curve pattern 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, the actual operation parameters are judged to meet the second target operation requirement;
and if the automatic power generation control program does not work in the second preset safe operation area and/or is not matched with any second preset working condition according to the actual operation parameters, judging that the actual operation parameters do not meet the second target operation requirement.
6. The method according to claim 4, wherein the target curve data comprises active set points for at least two preset time points;
generating a target curve according to the target curve data includes:
and calculating a curve slope according to the active set values of the at least two preset time points, and fitting according to the curve slope to generate a target curve.
7. The method according to any one of claims 2 or 4, wherein the determining first abnormality detection information of the automatic power generation control program from the program single-step execution result includes:
and extracting the program execution steps with execution exception from the program single-step execution result, marking the program execution steps with execution exception as exception points and outputting the exception points.
8. An abnormal point detection device of an automatic power generation control program, comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring the actual operation parameters of an automatic power generation control program if the automatic power generation control program is detected to be abnormal;
the judging module is 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 carrying out simulation on the automatic power generation control program;
the first output module is used for executing a corresponding operation program according to the operation mode if the first output module is in the positive state, outputting a program single-step execution result and determining first abnormal 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 abnormal detection information which does not meet the security policy if the first abnormal detection information does not meet the security policy.
9. A storage medium on which a computer program is stored, characterized in that the program realizes an abnormal point detection method of the automatic power generation control program according to any one of claims 1 to 7 when executed by a processor.
10. A computer apparatus 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 detecting 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 true CN114185324A (en) 2022-03-15
CN114185324B 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)

Cited By (2)

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

Citations (10)

* 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
US20120239913A1 (en) * 2011-03-14 2012-09-20 Michael John Williams Diagnosing code using single step execution
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

Patent Citations (10)

* 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
US20120239913A1 (en) * 2011-03-14 2012-09-20 Michael John Williams Diagnosing code using single step execution
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 (1)

* Cited by examiner, † Cited by third party
Title
P. WANG: ""Data-Driven Anomaly Detection for Power System Generation Control"", 《ICDMW》, 31 December 2017 (2017-12-31) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115070660A (en) * 2022-06-23 2022-09-20 珠海格力智能装备有限公司 Control method and control device for servo electric screwdriver
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

Also Published As

Publication number Publication date
CN114185324B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN114185324A (en) Abnormal point detection method and device of automatic power generation control program and computer equipment
CN106294120B (en) Method, apparatus and computer program product for testing code
CN106462907B (en) Energy supply and demand operation guide device and energy supply and demand operation method in iron works
CN110988563B (en) UPS (uninterrupted Power supply) fault detection method, device, equipment and storage medium
CN115062906A (en) Intelligent evaluation method and device for production operation risk
CN111818066A (en) Risk detection method and device
CN114365125A (en) Information processing device, operation support system, information processing method, and information processing program
EP2693379A1 (en) Risk-management device
US10958099B2 (en) Real-time electrical grid restoration
CN114576102A (en) Method, device and equipment for predicting bearing state of wind turbine generator and storage medium
CN112116204A (en) Dynamic risk assessment method and device, electronic equipment and storage medium
EP3651296A1 (en) System operation support device and method in power system, and wide-area monitoring protection control system
KR101932286B1 (en) Method and apparatus for assessing voltage sag considering wind power generation
CN110956193A (en) Methods, systems, articles, and apparatus for improved boundary offset detection
CN114330865A (en) Power grid reserve capacity prediction method and system, computer equipment and storage medium
CN108917710A (en) The monitoring method and monitoring device of shallow-depth-excavation tunnel sedimentation
CN109270920A (en) The self diagnostic capability evaluation method and device of the non-security grade I &C equipment of nuclear power station
CN111178729B (en) Stable section self-adaptive calculation method and system based on parent-child relationship
CN113222393A (en) Risk assessment method, risk assessment device, computer equipment and computer-readable storage medium
CN105303315B (en) A kind of power equipment reliability appraisal procedure counted and maintenance randomness influences
CN110058098B (en) State monitoring method, device, equipment and medium of direct current control protection system
Bento et al. Computing the worst case scenario for electric power system dynamic security assessment
CN118050173B (en) Low oil pressure test method and system for speed regulation system of hydroelectric generating set
CN116449898B (en) Remote temperature and humidity control system for switch cabinet
US11379584B2 (en) Detection of harmful process intent in an intent-based production process

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