Automatic evaluation method and device for auxiliary control equipment simulation training based on PLC
By using a PLC-based automated evaluation method, combined with simulation lesson plans and evaluation matrices, a multi-dimensional automated evaluation of simulation training for auxiliary control equipment in hydropower plants was achieved. This solved the problem of low evaluation efficiency in existing technologies and improved the accuracy and efficiency of the evaluation.
Patent Information
- Application Number
- CN202510693649.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-10-17
AI Technical Summary
In existing simulation training for auxiliary control systems of hydropower plants, theoretical teaching and practical operation are separated, closed-loop evaluation is lacking, virtual simulation training lacks interaction with real equipment, and the training functions of physical equipment are limited, resulting in low efficiency of simulation training evaluation.
An automated evaluation method based on PLC is adopted. The simulation lesson plan generates signals that are input into the PLC to capture cross-sectional information. The evaluation matrix is used to evaluate the control program from multiple dimensions, including response timeliness, logical correctness and system stability, forming a full-process automated evaluation system.
It improves the accuracy and efficiency of simulation training and evaluation, and realizes closed-loop data verification between PLC equipment and simulation system without relying on manual judgment.
Smart Images

Figure CN120803881A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of generator auxiliary control system simulation, and particularly relates to an automatic evaluation method and device for auxiliary control equipment simulation training based on PLC. BACKGROUND
[0002] At present, the simulation training of the auxiliary control system of a hydropower plant mostly adopts a traditional teaching mode, virtual simulation training and entity device training. However, in the traditional teaching mode, theoretical teaching and practical operation are separated, and there is a lack of closed-loop evaluation; in the virtual simulation training, only program logic is verified, and there is a lack of real device interaction; in the entity device training, the function is single, and the area occupied is large. The existing simulation training relies on the artificial judgment of professional instructors, and it is difficult to deal with a large number of simulation training, resulting in low efficiency of simulation training evaluation. Therefore, how to improve the evaluation efficiency while ensuring the accuracy of simulation training evaluation is one of the problems to be solved in the field. SUMMARY
[0003] The present disclosure aims to at least partially solve one of the technical problems in the related art.
[0004] To this end, the first aspect of the present disclosure provides an automatic evaluation method for auxiliary control equipment simulation training based on PLC, comprising:
[0005] determining a control program to be evaluated, a simulation teaching plan and reference control instructions corresponding to the simulation teaching plan, the simulation teaching plan including a preset working condition event; the control program to be evaluated is used to control auxiliary control equipment of a hydropower plant;
[0006] the simulation system executes the simulation teaching plan in time sequence, generates a first signal according to the simulation teaching plan, and inputs the first signal into a programmable logic controller (PLC) which has downloaded the control program to be evaluated;
[0007] the programmable logic controller (PLC) generates a control instruction for controlling the auxiliary control equipment of the hydropower plant according to the first signal and the control program to be evaluated, and sends the control instruction to the simulation system;
[0008] capturing cross-section information of the simulation system; the cross-section information includes a first timestamp of the programmable logic controller (PLC) receiving the first signal, the control instruction, and a second timestamp corresponding to the control instruction;
[0009] based on the cross-section information and the reference control instructions, evaluating the control program to be evaluated through a pre-established evaluation matrix to obtain an evaluation result of the control program to be evaluated.
[0010] In some embodiments of the present disclosure, the evaluation matrix comprises a response timeliness evaluation algorithm and a logic correctness evaluation algorithm; the evaluation of the to-be-evaluated control program based on the cross-section information and the reference control instruction by using the pre-established evaluation matrix to obtain the evaluation result of the to-be-evaluated control program comprises: obtaining the response timeliness score corresponding to the cross-section information based on the first timestamp and the second timestamp by using the response timeliness evaluation algorithm; obtaining the logic correctness score corresponding to the cross-section information based on the control instruction and the reference control instruction by using the logic correctness evaluation algorithm; determining the score value corresponding to the cross-section information according to the response timeliness score and the logic correctness score; and determining the evaluation result of the to-be-evaluated control program according to the score value corresponding to the cross-section information.
[0011] In some embodiments of the present disclosure, the cross-section information further comprises the CPU load rate of the programmable logic controller (PLC) between the first timestamp and the second timestamp, and the evaluation matrix further comprises a system stability evaluation algorithm; the determination of the score value corresponding to the cross-section information according to the response timeliness score and the logic correctness score comprises: determining the system stability score corresponding to the cross-section information based on the CPU load rate by using the system stability evaluation algorithm; and performing weighted processing on the response timeliness score, the logic correctness score and the system stability score to obtain the score value corresponding to the cross-section information.
[0012] In some embodiments of the present disclosure, the sending of the control instruction to the simulation system comprises: sending, by the programmable logic controller (PLC), the control instruction to a conversion module; and performing, by the conversion module, protocol conversion on the received control instruction and transmitting the converted control instruction to the simulation system in a communication manner.
[0013] The second aspect of the present disclosure provides an automatic evaluation device for simulation training of auxiliary control equipment based on a PLC, which comprises:
[0014] A determination module is configured to determine a to-be-evaluated control program, a simulation teaching plan and reference control instructions corresponding to the simulation teaching plan, wherein the simulation teaching plan comprises a preset working condition event, and the to-be-evaluated control program is used to control auxiliary control equipment of a hydropower plant.
[0015] An input module is configured to execute the simulation teaching plan in a time sequence by a simulation system, generate a first signal according to the simulation teaching plan, and input the first signal into a programmable logic controller (PLC) in which the to-be-evaluated control program has been downloaded.
[0016] a processing module configured to generate, according to the first signal and the control program to be evaluated, a control instruction for controlling the auxiliary control equipment of the hydropower plant, and send the control instruction to the simulation system;
[0017] a collection module configured to capture cross-section information of the simulation system, wherein the cross-section information comprises a first timestamp at which the programmable logic controller (PLC) receives the first signal, the control instruction, and a second timestamp corresponding to the control instruction;
[0018] an evaluation module configured to evaluate the control program to be evaluated based on the cross-section information and reference control instructions by using a pre-established evaluation matrix, and obtain an evaluation result of the control program to be evaluated.
[0019] In some embodiments of the present disclosure, the evaluation matrix comprises a response timeliness evaluation algorithm and a logic correctness evaluation algorithm; the evaluation module is specifically configured to: obtain a response timeliness score corresponding to the cross-section information based on the first timestamp and the second timestamp by using the response timeliness evaluation algorithm; obtain a logic correctness score corresponding to the cross-section information based on the control instruction and the reference control instruction by using the logic correctness evaluation algorithm; determine a score value corresponding to the cross-section information according to the response timeliness score and the logic correctness score; and determine the evaluation result of the control program to be evaluated according to the score value corresponding to the cross-section information.
[0020] In some embodiments of the present disclosure, the cross-section information further comprises a CPU load rate of the programmable logic controller (PLC) between the first timestamp and the second timestamp; and the evaluation module is further configured to: determine a system stability score corresponding to the cross-section information based on the CPU load rate by using the system stability evaluation algorithm; and perform weighted processing on the response timeliness score, the logic correctness score, and the system stability score to obtain the score value corresponding to the cross-section information.
[0021] In some embodiments of the present disclosure, the processing module is specifically configured to: send, by the programmable logic controller (PLC), the control instruction to a conversion module; and convert, by the conversion module, the received control instruction by a protocol to communicate to the simulation system.
[0022] A third aspect of the present disclosure provides an electronic device, comprising: a processor, and a memory connected to the processor in communication;
[0023] The memory stores computer execution instructions.
[0024] The processor executes the computer execution instructions stored in the memory to implement the method of the first aspect.
[0025] A computer readable storage medium is provided in a fourth aspect of the present disclosure, and the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the method in the first aspect.
[0026] The automatic evaluation method for simulation training of auxiliary control equipment based on PLC provided by the present disclosure can evaluate the control program from multiple dimensions by capturing the cross-section information of the simulation system, combining the simulation teaching plan, the reference control instruction and the pre-set evaluation matrix, ensuring the accuracy of the simulation training evaluation and improving the evaluation efficiency of the auxiliary control simulation training system of the hydropower plant, without relying on manual judgment, forming a full-process automatic evaluation system and realizing data closed-loop verification of the real PLC equipment and the simulation system.
[0027] Additional aspects and advantages of the present disclosure will be in part apparent and in part pointed out hereinafter in the description of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0028] The above and / or additional aspects and advantages of the present disclosure will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
[0029] Figure 1 A flowchart of an automatic evaluation method for simulation training of auxiliary control equipment based on PLC provided by an embodiment of the present disclosure;
[0030] Figure 2 A schematic diagram of a simulation teaching plan provided by an embodiment of the present disclosure;
[0031] Figure 3 An evaluation result schematic diagram of a control program to be evaluated provided by an embodiment of the present disclosure;
[0032] Figure 4 A schematic diagram of an automatic evaluation device for simulation training of auxiliary control equipment based on PLC provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] The embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the drawings, in which the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below are exemplary and are intended to explain the present disclosure, and cannot be understood as a limitation of the present disclosure.
[0034] Specifically, the automatic evaluation method and device for simulation training of auxiliary control equipment based on PLC of the embodiments of the present disclosure are described below with reference to the drawings.
[0035] Figure 1 The following is a flow chart of an automated evaluation method for PLC-based auxiliary control equipment simulation training provided by an embodiment of the present disclosure. Figure 1 As shown, the automated evaluation method for PLC-based auxiliary control equipment simulation training may include the following steps:
[0036] Step 101: Determine a control program to be evaluated, a simulation lesson plan, and reference control instructions corresponding to the simulation lesson plan, wherein the simulation lesson plan includes preset operating conditions. The control program to be evaluated is used to control auxiliary control equipment of a hydropower plant.
[0037] Among them, the control program to be evaluated is the control program written by the SmartIC programming software during the student training process. The preset operating conditions in the simulation teaching plan are different operating conditions in the hydropower plant. The simulation teaching plan simulates different hydropower plant operating conditions to see whether the control program written by the student can accurately and safely respond to the preset operating conditions (such as the abnormal drop in oil pressure event. This example is only exemplary and can also be other operating conditions). The reference control instructions corresponding to the simulation teaching plan can be understood as the reference answer to the simulation test, that is, the correct control instructions corresponding to the preset operating conditions in the simulation teaching plan obtained based on the expert rule base matching. The reference control instructions are used to compare with the control instructions output by the control program to be evaluated to evaluate the correctness of the control program to be evaluated.
[0038] In step 102 , the simulation system executes the simulation teaching plan in a time sequence, generates a first signal according to the simulation teaching plan, and inputs the first signal into the programmable logic controller (PLC) that has downloaded the control program to be evaluated.
[0039] Figure 2 This is a schematic diagram of a simulation teaching plan provided by an embodiment of the present disclosure. Figure 2 As shown, the simulation teaching plan may include multiple preset working condition events and set the time sequence of the multiple preset working condition events. During simulation training, the simulation system executes the simulation teaching plan according to the time sequence and generates a corresponding first signal according to each preset working condition event.
[0040] Among them, before downloading the control program to be evaluated, the programmable logic controller PLC needs to perform a security check on the control program to be evaluated. After the check passes, the control program to be evaluated is downloaded to the programmable logic controller PLC.
[0041] Step 103 : The programmable logic controller (PLC) generates a control instruction for controlling auxiliary control equipment of the hydropower plant according to the first signal and the control program to be evaluated, and sends the control instruction to the simulation system.
[0042] In some embodiments of the present disclosure, a programmable logic controller (PLC) sends control instructions to a conversion module, and the conversion module converts the received control instructions through protocol conversion and transmits them to the simulation system in a communication manner. Alternatively, a TCP communication channel can also be established to realize data interaction between the PLC and the simulation system, and a special protocol conversion module is designed to process digital (DI / DO) and analog (AI / AO) signal conversion.
[0043] In step 104, cross-section information of the simulation system is captured; wherein the cross-section information includes a first time stamp at which the PLC receives the first signal, the control instruction, and a second time stamp corresponding to the control instruction.
[0044] It should be noted that the cross-section information of the simulation system is a state snapshot of the simulation system state at a certain specific time point, i.e., key data (or key state trigger point; such as water pump start / stop, valve opening threshold, etc.) of the PLC in the simulation process. The captured cross-section information of the simulation system is used for logical verification of the control program to be evaluated. In this embodiment, the cross-section information includes a first time stamp t0 at which the PLC receives the first signal, the control instruction, and a second time stamp t2 corresponding to the control instruction. The second time stamp t2 corresponding to the control instruction is a time point corresponding to the output of the control instruction of the PLC.
[0045] In step 105, based on the cross-section information and the reference control instruction, the control program to be evaluated is evaluated through a pre-established evaluation matrix, and an evaluation result of the control program to be evaluated is obtained.
[0046] In an implementation manner, the evaluation matrix can include two evaluation dimensions of a response timeliness evaluation algorithm and a logical correctness evaluation algorithm. The response timeliness evaluation algorithm is used to obtain a response timeliness score corresponding to the cross-section information based on the first time stamp and the second time stamp; the logical correctness evaluation algorithm is used to obtain a logical correctness score corresponding to the cross-section information based on the control instruction and the reference control instruction; a score value corresponding to the cross-section information is determined according to the response timeliness score and the logical correctness score; and the evaluation result of the control program to be evaluated is determined according to the score value corresponding to the cross-section information. Alternatively, the response timeliness score and the logical correctness score can be weighted and summed to obtain the score value corresponding to the cross-section information.
[0047] As an example, the response timeliness evaluation algorithm can evaluate the response speed of the control program to be evaluated based on the time difference between the first timestamp and the second timestamp. The smaller the time difference, the faster the response speed, and the higher the corresponding response timeliness score; conversely, the larger the time difference, the slower the response speed, and the lower the corresponding response timeliness score. Optionally, the response timeliness evaluation algorithm can refer to the following formula for millisecond-level timestamp comparison: Δt = t2 - t0 < 500ms to obtain a first preset score, and Δt ≥ 500ms to obtain a second preset score. Among them, the first preset score > the second preset score, the first preset score can be a high score or a full score, and the second preset score can be zero or a low score.
[0048] Control instructions and reference control instructions may include multiple output signals. A logical correctness assessment algorithm can compare the output signals in the control instruction and reference control instruction to determine the correct signal. If the signals match, it is a correct signal; if the signals do not match, it is an abnormal signal. The ratio of the number of correct signals in the control instruction to the total number of signals in the reference instruction represents the state matching degree of the control instruction, that is, the logical correctness score corresponding to the cross-sectional information. The more correct signals there are, the higher the logical correctness score is; conversely, the fewer correct signals there are, the lower the logical correctness score is.
[0049] In this example, the score corresponding to the cross-sectional information is automatically evaluated based on the two dimensions of response timeliness and logical correctness. It should be noted that the process of evaluating the control program to be evaluated may include recording multiple cross-sectional information. Figure 3 This is a schematic diagram of the evaluation results of a control program to be evaluated provided by an embodiment of the present disclosure. Figure 3 As shown, multiple cross-sectional information is included. Each cross-sectional information is evaluated and scored through steps 101 to 105 to obtain a score corresponding to each cross-sectional information. After the simulation is completed, the evaluation result of the control program to be evaluated is determined based on the score of each cross-sectional information, that is, the total score of the control program to be evaluated.
[0050] In another implementation, the evaluation matrix can include a system stability evaluation algorithm in addition to the response timeliness evaluation algorithm and the logic correctness evaluation algorithm, and the cross-section information further includes a CPU load rate of the programmable logic controller (PLC) between the first timestamp and the second timestamp. The response timeliness score corresponding to the cross-section information is obtained based on the first timestamp and the second timestamp by using the response timeliness evaluation algorithm; the logic correctness score corresponding to the cross-section information is obtained based on the control instruction and the reference control instruction by using the logic correctness evaluation algorithm; the system stability score corresponding to the cross-section information is determined based on the CPU load rate by using the system stability evaluation algorithm; the response timeliness score, the logic correctness score, and the system stability score are weighted to obtain the score value corresponding to the cross-section information; and the evaluation result of the control program to be evaluated is determined according to the score value corresponding to the cross-section information.
[0051] The system stability of the control program to be evaluated is evaluated by the CPU load rate, and the continuous operation anomaly detection is performed. The smaller the CPU load rate is, the more stable the system is. Alternatively, the system stability evaluation algorithm can refer to the following formula: a third preset score is obtained when the CPU load rate during operation is less than 70%, and a fourth preset score is obtained when the CPU load rate is greater than or equal to 70%. The third preset score is greater than the fourth preset score, and the third preset score can be a high score or a full score, and the fourth preset score can be a zero score or a low score. In an example, the response timeliness score, the logic correctness score, and the system stability score can be weighted to obtain the score value corresponding to the cross-section information by referring to the following weights:
[0052] Evaluation dimensions Weight Scoring algorithm Response timeliness 30% At = t2- t0< 500 ms full score Logical correctness 50% State matching degree = number of correct signals / total number of signals System stability 20% CPU load rate < 70% during operation
[0053] In some embodiments of the present disclosure, a visual evaluation report can be automatically generated, including the score value corresponding to each cross-section information and the evaluation result of the control program to be evaluated.
[0054] By implementing the embodiments of the present disclosure, the cross-section information of the simulation system is captured, the control program is evaluated from multiple dimensions in combination with the simulation teaching plan, the reference control instruction, and the pre-set evaluation matrix, the evaluation efficiency of the auxiliary control simulation training system of the hydropower plant is improved while ensuring the accuracy of the simulation training evaluation, the artificial judgment is not needed, a full-process automatic evaluation system is formed, and the data closed-loop verification of the real PLC device and the simulation system is realized.
[0055] Figure 4 A schematic diagram of an automatic evaluation device for PLC-based auxiliary control device simulation training provided by an embodiment of the present disclosure is shown in FIG. 4. Figure 4 As shown in FIG. 4, the automatic evaluation device for PLC-based auxiliary control device simulation training can include a determination module 401, an input module 402, a processing module 403, an acquisition module 404, and an evaluation module 405.
[0056] The determining module 401 is configured to determine a control program to be evaluated, a simulation teaching plan, and reference control instructions corresponding to the simulation teaching plan, the simulation teaching plan including preset working condition events. The control program to be evaluated is configured to control auxiliary control equipment of a hydropower plant.
[0057] The input module 402 is configured to execute the simulation teaching plan in a time sequence by a simulation system, generate a first signal according to the simulation teaching plan, and input the first signal into a programmable logic controller (PLC) in which the control program to be evaluated has been downloaded.
[0058] The processing module 403 is configured to generate control instructions for controlling the auxiliary control equipment of the hydropower plant according to the first signal and the control program to be evaluated by the programmable logic controller (PLC), and send the control instructions to the simulation system.
[0059] The acquisition module 404 is configured to capture cross-section information of the simulation system. The cross-section information includes a first timestamp at which the programmable logic controller (PLC) receives the first signal, the control instructions, and a second timestamp corresponding to the control instructions.
[0060] The evaluation module 405 is configured to evaluate the control program to be evaluated based on the cross-section information and the reference control instructions by using a pre-established evaluation matrix, and obtain an evaluation result of the control program to be evaluated.
[0061] In some embodiments of the present disclosure, the evaluation matrix includes a response timeliness evaluation algorithm and a logic correctness evaluation algorithm. The evaluation module 405 is specifically configured to: obtain a response timeliness score corresponding to the cross-section information based on the first timestamp and the second timestamp by using the response timeliness evaluation algorithm; obtain a logic correctness score corresponding to the cross-section information based on the control instructions and the reference control instructions by using the logic correctness evaluation algorithm; determine a score value corresponding to the cross-section information according to the response timeliness score and the logic correctness score; and determine the evaluation result of the control program to be evaluated according to the score value corresponding to the cross-section information.
[0062] In some embodiments of the present disclosure, the cross-section information further includes a CPU load rate of the programmable logic controller (PLC) between the first timestamp and the second timestamp. The evaluation module 405 is further configured to: determine a system stability score corresponding to the cross-section information based on the CPU load rate by using a system stability evaluation algorithm; and obtain the score value corresponding to the cross-section information by performing weighted processing on the response timeliness score, the logic correctness score, and the system stability score.
[0063] In some embodiments of the present disclosure, the processing module 403 is specifically configured to: send the control instructions to a conversion module by the programmable logic controller (PLC); and convert the received control instructions by the conversion module and transmit the converted control instructions to the simulation system in a communication mode.
[0064] With regard to the apparatus in the above-described embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and thus will not be described in detail here.
[0065] To implement the above-described embodiments, the present disclosure further provides an electronic device, comprising: a processor, and a memory connected with the processor in communication; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided in the foregoing embodiments.
[0066] To implement the above-described embodiments, the present disclosure further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method provided in the foregoing embodiments.
[0067] To implement the above-described embodiments, the present disclosure further provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the method provided in the foregoing embodiments.
[0068] In the foregoing embodiment description, the description of the terms “one embodiment”, “some embodiments”, “an example”, “a specific example”, or “some examples” means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In the present description, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any suitable manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present description and the features of the different embodiments or examples without contradiction.
[0069] In addition, the terms “first”, “second” are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with “first”, “second” can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of “a plurality of” is at least two, for example, two, three, etc., unless otherwise specifically limited.
[0070] Any processes or methods described in the flowcharts or otherwise described herein can be understood as representing modules, segments, or portions of code that include one or more executable instructions for implementing specific logic functions (or steps) and / or can be implemented entirely in hardware. The various embodiments of the present disclosure can include additional or fewer steps or methods as desired for a given implementation. The scope of the present disclosure is not limited to the order in which the steps are presented in the flowcharts or otherwise described herein.
[0071] Logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be embodied in computer-readable instructions, such as software and / or firmware, which can be executed by a processing unit or other controller of a computer-based system, or other system, to implement the functions / acts specified in the flowcharts and / or other flow diagram for achieving the results presented or otherwise described herein. Alternatively, computer- readable instructions can be downloaded to the system or other system from a computer- readable storage medium or to an external system or internal system from the internet or other communication network. The present disclosure encompasses all possible combinations of the various above-described embodiments.
[0072] It should be understood that aspects of the present disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods can be embodied in software or firmware that is stored in memory and executed by a suitable instruction execution system. As such, the software or firmware can be transformed from an initial form of program code into a transformed form during execution by the instruction execution system associated with this implementation. For example, if implemented in hardware, as in another embodiment, any of the above-described techniques can be implemented with or without accompanying code using any of a variety of technologies for programming a programmable gate array (PGA), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.
[0073] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiment method can be completed by programs instructing related hardware, and the programs can be stored in a computer readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0074] In addition, each functional unit in each embodiment of the present disclosure can be integrated into one processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module. When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium.
[0075] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and cannot be understood as limiting the present disclosure, and those skilled in the art can make changes, modifications, replacements and variations to the above-mentioned embodiments within the scope of the present disclosure.
Claims
1. An automated evaluation method for PLC-based auxiliary control equipment simulation training, characterized in that: The following steps are involved: Determining a control program to be evaluated, a simulation teaching plan, and a reference control instruction corresponding to the simulation teaching plan, wherein the simulation teaching plan includes a preset working condition event; The control program to be evaluated is used to control auxiliary control equipment of a hydropower plant; The simulation system executes the simulation teaching plan in a time sequence, generates a first signal according to the simulation teaching plan, and inputs the first signal into a programmable logic controller (PLC) that has downloaded the control program to be evaluated; The programmable logic controller (PLC) generates a control instruction for controlling the auxiliary control equipment of the hydropower plant according to the first signal and the control program to be evaluated, and sends the control instruction to the simulation system; Capturing cross-sectional information of the simulation system; the cross-sectional information includes a first timestamp when a programmable logic controller (PLC) receives the first signal, the control instruction, and a second timestamp corresponding to the control instruction; Based on the cross-sectional information and the reference control instructions, the control program to be evaluated is evaluated by using a pre-established evaluation matrix to obtain an evaluation result of the control program to be evaluated.
2. The method according to claim 1, characterized in that The evaluation matrix includes a response timeliness evaluation algorithm and a logic correctness evaluation algorithm; based on the section information and the reference control instructions, the control program to be evaluated is evaluated using a pre-established evaluation matrix to obtain an evaluation result of the control program to be evaluated, including: Using the response timeliness evaluation algorithm, obtaining a response timeliness score corresponding to the section information based on the first timestamp and the second timestamp; Using the logic correctness evaluation algorithm, based on the control instruction and the reference control instruction, obtain a logic correctness score corresponding to the cross-section information; Determining a score corresponding to the cross-sectional information according to the response timeliness score and the logical correctness score; An evaluation result of the control program to be evaluated is determined according to the score value corresponding to the cross-sectional information.
3. The method according to claim 2, characterized in that The section information further includes a CPU load rate of the programmable logic controller (PLC) between the first timestamp and the second timestamp, and the evaluation matrix further includes a system stability evaluation algorithm; and determining a score corresponding to the section information based on the response timeliness score and the logic correctness score includes: Determining a system stability score corresponding to the cross-section information based on the CPU load rate using the system stability evaluation algorithm; The response timeliness score, the logic correctness score and the system stability score are weighted to obtain a score value corresponding to the section information.
4. The method according to claim 1, wherein The sending of the control instruction to the simulation system comprises: The programmable logic controller PLC sends the control instruction to the conversion module; The conversion module converts the received control instruction into a protocol and transmits it to the simulation system in a communication manner.
5. An automated evaluation device for simulation training of auxiliary control equipment based on PLC, characterized in that: include: a determination module, configured to determine a control program to be evaluated, a simulation teaching plan, and reference control instructions corresponding to the simulation teaching plan, wherein the simulation teaching plan includes a preset working condition event; The control program to be evaluated is used to control auxiliary control equipment of a hydropower plant; An input module is used for the simulation system to execute the simulation teaching plan in a time sequence, generate a first signal according to the simulation teaching plan, and input the first signal into a programmable logic controller (PLC) that has downloaded the control program to be evaluated; a processing module, configured for the programmable logic controller (PLC) to generate a control instruction for controlling the auxiliary control equipment of the hydropower plant according to the first signal and the control program to be evaluated, and to send the control instruction to the simulation system; an acquisition module, configured to capture cross-sectional information of the simulation system; the cross-sectional information including a first timestamp when the programmable logic controller (PLC) receives the first signal, the control instruction, and a second timestamp corresponding to the control instruction; An evaluation module is used to evaluate the control program to be evaluated based on the cross-sectional information and the reference control instructions through a pre-established evaluation matrix to obtain an evaluation result of the control program to be evaluated.
6. The device according to claim 5, characterized in that The evaluation matrix includes a response timeliness evaluation algorithm and a logic correctness evaluation algorithm; the evaluation module is specifically used to: Using the response timeliness evaluation algorithm, obtaining a response timeliness score corresponding to the section information based on the first timestamp and the second timestamp; Using the logic correctness evaluation algorithm, based on the control instruction and the reference control instruction, obtain a logic correctness score corresponding to the cross-section information; Determining a score corresponding to the cross-sectional information according to the response timeliness score and the logical correctness score; An evaluation result of the control program to be evaluated is determined according to the score value corresponding to the cross-sectional information.
7. The device according to claim 6, characterized in that The cross-section information further includes a CPU load rate of the programmable logic controller (PLC) between the first timestamp and the second timestamp. The evaluation module is further configured to: Determining a system stability score corresponding to the cross-section information based on the CPU load rate using the system stability evaluation algorithm; The response timeliness score, the logic correctness score and the system stability score are weighted to obtain a score value corresponding to the section information.
8. The device according to claim 5, characterized in that The processing module is specifically used for: The programmable logic controller PLC sends the control instruction to the conversion module; The conversion module converts the received control instruction into a protocol and transmits it to the simulation system in a communication manner.
9. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 4 when executed by a processor.