CN117784698B - Automatic test method and device for diesel engine control logic - Google Patents
Automatic test method and device for diesel engine control logic Download PDFInfo
- Publication number
- CN117784698B CN117784698B CN202410213624.5A CN202410213624A CN117784698B CN 117784698 B CN117784698 B CN 117784698B CN 202410213624 A CN202410213624 A CN 202410213624A CN 117784698 B CN117784698 B CN 117784698B
- Authority
- CN
- China
- Prior art keywords
- control logic
- logic
- tested
- control
- diesel engine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000010998 test method Methods 0.000 title claims abstract description 25
- 238000012360 testing method Methods 0.000 claims abstract description 91
- 238000004088 simulation Methods 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 22
- 238000004891 communication Methods 0.000 claims abstract description 11
- 230000008569 process Effects 0.000 claims abstract description 10
- 239000000498 cooling water Substances 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 13
- 230000003993 interaction Effects 0.000 claims description 7
- 239000010687 lubricating oil Substances 0.000 claims description 7
- 230000005284 excitation Effects 0.000 claims description 6
- 238000005259 measurement Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 3
- 239000000446 fuel Substances 0.000 claims description 3
- 238000005461 lubrication Methods 0.000 claims 1
- 239000003921 oil Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 23
- 230000006870 function Effects 0.000 description 7
- 239000000295 fuel oil Substances 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention relates to a diesel engine control logic automatic test method and a device, wherein the method comprises the steps of constructing a simulation system; the simulation system can simulate the simulation input signals obtained from related external equipment in the process of executing the control logic to be tested by the diesel engine, and generates simulation output signals which can be output after the control logic to be tested is executed in a simulation mode according to the simulation input signals; determining an analog input signal; inputting an analog input signal into an analog system to obtain an analog output signal; establishing a communication channel with a control cabinet of the diesel engine, and inputting an analog input signal to the control cabinet to obtain an output control signal output by the control cabinet; and judging whether the analog output signal is consistent with the output control signal, if so, judging that the test of the control logic to be tested is qualified, otherwise, judging that the test of the control logic to be tested is unqualified. The invention can automatically verify whether the control logic of the diesel engine is correct under the off-line condition of the diesel engine, can effectively reduce the manpower input and improve the test efficiency and the test accuracy of the control logic.
Description
Technical Field
The invention relates to the technical field of diesel generator debugging technology and test, in particular to a diesel engine control logic automatic test method and device.
Background
Before a diesel generator (diesel engine for short) of a nuclear power plant is put into operation, the functional correctness of the control logic of the diesel engine is tested, and field technicians need to test and test the control logic page by page and system by system according to files such as a schematic diagram, a logic diagram, a termination diagram and the like. In the test process, a certain number of technicians (generally 4 to 6) are required to perform wiring short circuit or disconnection, introduce external power supply and the like on site to force signals so as to achieve the conditions required by the logic test, and the subsequent logic test and result judgment work can be started after the conditions are met.
This test mode has the following defects: 1. the labor input is large in the logic test, short connection and disconnection are required to be frequently carried out on the wiring in the logic test or an external power supply is introduced due to the arrangement factor of a control cabinet (simply called a control cabinet) of the on-site diesel generator and the reason of the existing test method, and the test method itself requires large labor input and construction period input; 2. the accuracy and precision of the logic test result cannot be guaranteed, the method adopted during the logic test is greatly influenced by experience factors of core technicians, and when technicians with different calendars or experience levels perform the same logic test, different test results can be obtained, so that the accuracy and reliability of the logic test can be influenced.
Disclosure of Invention
The invention aims to solve the technical problem of providing a diesel engine control logic automatic test method and device.
The technical scheme adopted for solving the technical problems is as follows: a diesel engine control logic automatic test method is constructed, which comprises the following steps:
s10, constructing a simulation system; the simulation system can simulate the simulation input signals obtained from related external equipment in the process of executing the control logic to be tested by the diesel engine, and generates the simulation output signals which can be output after the control logic to be tested is executed in a simulation mode according to the simulation input signals;
s20, determining a setting value of the analog input signal;
s30, inputting the analog input signal into the analog system to acquire the analog output signal;
s40, establishing a communication channel with a control cabinet of the diesel engine, inputting the analog input signal into the control cabinet to obtain an output control signal output by the control cabinet, and executing S50;
s50, judging whether the analog output signal is consistent with the output control signal, if so, judging that the test of the control logic to be tested is qualified, otherwise, judging that the test of the control logic to be tested is unqualified.
Preferably, in the step S10, the constructing a simulation system includes:
Constructing a simulation system based on common logic gates and a plurality of preset control logics; wherein the common logic gates include, but are not limited to, NOT gates, AND gates, OR gates, RS flip-flops, and delay logic modules; each control logic can respectively determine the control cabinet and the output signals correspondingly output by the control cabinet when the external equipment inputs related analog input signals to the control cabinet in the process of executing the control logic in a matched manner.
Preferably, the S20 includes:
determining an analog input signal based on the control logic to be tested; and/or
And determining an analog input signal according to the acquired first operation instruction.
Preferably, in the step S40, the method further includes:
recording the output time of the analog output signal and acquiring the input time of the output control signal;
the S50 includes:
S501, calculating the total time required by the control cabinet to complete the control logic to be tested according to the output time and the input time;
s502, determining the execution limit time corresponding to the control logic to be tested according to the control logic to be tested;
s503, if the analog output signal is consistent with the output control signal and the error of the total time and the execution limiting time is within a preset error range, judging that the test of the control logic to be tested is qualified, and if the analog output signal is inconsistent with the output control signal or the error of the total time and the execution limiting time is not within the preset error range, judging that the test of the control logic to be tested is not qualified.
Preferably, the preset error is in the range of-10% to 10%.
Preferably, after S50, the method further includes:
S51, judging whether the test times of the control logic to be tested reach the preset test times, if so, executing S52, and if not, executing S53;
s52, judging whether each test result of the control logic to be tested is qualified, if so, judging that the control logic to be tested is correct, otherwise, judging that the control logic to be tested is wrong;
s53, resetting the analog input signal, and returning to S30.
Preferably, the input signal comprises a number of switching value signals;
In the step S52, further comprising:
Determining all combination types of all switching value signals in the analog input signals, and resetting the analog input signals in sequence based on an enumeration principle and all combination types; or alternatively
The analog input signal is reset based on the principle that each of the switching value signals is flipped at least once.
Preferably, before S10, the method further includes:
s01, setting a logic list to be tested according to the acquired second operation instruction; wherein the list of logic to be tested includes at least one control logic;
S02, determining one of the control logics in the logic list to be tested as the control logic to be tested;
After S52, the method further includes:
s60, judging whether all the control logics in the logic list to be tested are tested, if yes, outputting test results of all the control logics, otherwise, determining one control logic which is not tested in the logic list to be tested as the control logic to be tested, and returning to S20.
Preferably, in the step S01, the logic list to be tested includes a high-temperature cooling water system logic, a low-temperature cooling water system control logic, a compressed air system control logic, a fuel oil system control logic, a lubricating oil system control logic, an air intake and exhaust system control logic, a sensor measurement control logic, a generator electric protection logic, a generator synchronization grid-connection control logic, an air compressor start-stop control logic, a generator excitation system control logic, an auxiliary control logic, a speed regulation and control logic, a unit alarm control logic, a DCS interface control logic and a protection stop logic.
Preferably, the high-temperature cooling water system logic, the low-temperature cooling water system control logic, the compressed air system control logic, the fuel oil system control logic, the lubricating oil system control logic, the air intake and exhaust system control logic, the sensor measurement control logic, the generator electrical protection logic, the generator synchronization grid-connected control logic, the air compressor start-stop control logic and the generator excitation system control logic belong to a first stage control logic; the auxiliary control logic, the speed regulation and control logic, the unit alarm control logic, the DCS interface control logic and the protection shutdown logic belong to a second stage control logic;
the S02 includes: determining one of the control logic belonging to the first-stage control logic as a control logic to be tested;
In the step S60, the determining the control logic not tested in the logic under test list as the control logic under test includes:
Judging whether all the control logics belonging to the first-stage control logic are tested, if yes, determining one control logic which is not tested as the control logic to be tested, and if not, determining one control logic which is not tested and belongs to the first-stage control logic as the control logic to be tested.
The invention also constructs an automatic test device for the control logic of the diesel engine, which comprises:
a logic processing unit comprising a processor which when executing a computer program implements the steps of the diesel engine control logic automatic test method described above; and
And the communication unit is connected between the logic processing unit and the diesel engine so as to enable the logic processing unit to establish a communication channel with the diesel engine.
Preferably, the diesel engine control logic automatic test equipment further comprises:
And the man-machine interaction unit is connected with the logic processing unit and used for acquiring the operation instruction and displaying the test result.
The implementation of the invention has the following beneficial effects: the control logic of the diesel engine can be automatically verified to be correct under the off-line condition of the diesel engine, so that the manpower input can be effectively reduced, and the test efficiency and the test accuracy of the control logic can be improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a program flow diagram of a first embodiment of a diesel engine control logic automatic test method of the present invention;
FIG. 2 is a logic diagram of diesel generator fan start logic in some embodiments of the present invention;
FIG. 3 is a logic diagram of air start-stop control logic in some embodiments of the invention;
FIG. 4 is a program flow diagram of a second embodiment of the diesel engine control logic automatic test method of the present invention;
FIG. 5 is a program flow diagram of a third embodiment of a diesel engine control logic automatic test method of the present invention;
FIG. 6 is a program flow diagram of a fourth embodiment of the diesel engine control logic automatic test method of the present invention;
FIG. 7 is a block diagram of the circuit configuration of a diesel engine control logic automatic test equipment in some embodiments of the present invention.
Detailed Description
For a clearer understanding of technical features, objects and effects of the present invention, a detailed description of embodiments of the present invention will be made with reference to the accompanying drawings.
It should be noted that the flow diagrams depicted in the figures are merely exemplary and do not necessarily include all of the elements and operations/steps, nor are they necessarily performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The invention provides an automatic test method for control logic of a diesel engine, which is applied to a processor (such as a PLC), and can automatically verify whether the control logic of the diesel engine is correct or not under the off-line condition of the diesel engine, thereby effectively reducing the manpower input and improving the test efficiency and the test accuracy of the control logic. As shown in fig. 1, the diesel engine control logic automatic test method includes steps S10, S20, S30, S40 and S50.
The step S10 includes: the simulation system is constructed, and the simulation system can simulate a simulation input signal obtained from related external equipment in the process of executing the control logic to be tested by the diesel engine, and generates a simulation output signal which can simulate the control cabinet of the diesel engine to output after executing the control logic to be tested according to the simulation input signal.
Wherein the analog input signal may comprise a number of switching value signals. Taking the diesel generator fan start logic as an example, the external devices related to the control logic include a breaker state monitoring system, a diesel DCS system, a diesel rotation speed measuring system, an auxiliary system control mode knob and a diesel fan manual start knob, and referring to fig. 2, the analog input signals of the control logic include a number of switching value signals respectively being a signal 1 (provided by the breaker state monitoring system) capable of indicating whether the medium voltage breaker at the outlet of the diesel generator is closed, a signal 2 (provided by the diesel DCS system) capable of indicating whether the diesel engine is in an emergency start mode, a signal 3 (provided by the diesel rotation speed measuring system) capable of indicating whether the diesel engine rotation speed is greater than 80% of the rated rotation speed, a signal 8 (determined by the state of the auxiliary system control mode knob) capable of indicating whether the diesel engine is in the auxiliary system control mode knob is rotated to the manual mode position, and a signal 9 (determined by the state of the diesel fan manual start knob) capable of indicating whether the diesel fan manual start knob is in place. Further, the simulation system may simulate a control signal output by the diesel generator control cabinet when executing a certain control logic, and further, while the simulation system outputs a simulation input signal (including a signal 1, a signal 2, a signal 3, a signal 8 and a signal 9), logic operations are performed based on the simulation input signals and a logic diagram shown in fig. 2 to output a simulation output signal, where the simulation output signal of the control logic corresponds to a signal 4, a signal 5, a signal 6 and a signal 7 that sequentially control the on or off of the 1 st, 2 nd, 3 rd and 4 th fans.
For example, the control logic for starting and stopping the air compressor is taken as an example, the external device related to the control logic includes an air compressor pressure monitoring system (capable of measuring the air tank pressure of the air compressor a row and the air tank pressure of the air compressor B row), and referring to fig. 3, the analog input signals of the control logic include a plurality of switching value signals, which are respectively a signal 10 capable of indicating that the air tank pressure of the air compressor a row is low, a signal 11 capable of indicating that the air tank pressure of the air tank B row is low, a signal 12 capable of indicating that the air tank pressure of the air tank a row is high, and a signal 13 capable of indicating that the air tank pressure of the air compressor B row is high.
In some embodiments, the simulation system may be constructed by: constructing a simulation system based on common logic gates and a plurality of preset control logics; among them, common logic gates include, but are not limited to, NOT gates, AND gates, OR gates, RS flip-flops, and delay logic blocks; each control logic can respectively determine the control cabinet and the output signal corresponding to the control cabinet when the external equipment inputs the relevant analog input signal to the control cabinet in the process of executing the control logic in a matched manner.
In this embodiment, the logic relationship between the analog input signal and the output signal may be determined according to a predetermined control logic, and then a logic diagram consistent with the actual control logic function in the control cabinet may be reconstructed by an not gate, an and gate, an or gate, an RS flip-flop, or the like based on the logic relationship.
Taking the starting logic of a diesel generator fan as an example, the fan for starting the diesel engine is generally realized in 3 modes; first, when the signal 8 received by the control cabinet is at high level (indicating that the diesel engine is in the manual mode in the auxiliary system control mode) and the signal 9 is at high level (indicating that the manual start knob of the diesel engine fan is in place), 4 fans in the diesel engine are turned on, so that the logic function can be reconfigured by the and gate; secondly, when the signal 1 received by the control cabinet is at a high level (representing that a medium-voltage circuit breaker at the outlet of the diesel generator is closed) and the signal 2 is at a high level (representing that the diesel engine is in an emergency starting mode), 4 fans are started, so that the logic function can be reconstructed through an AND gate; thirdly, when the signal 2 received by the control cabinet is at a low level (which indicates that the diesel engine is not in an emergency starting mode) and the signal 3 is at a high level (which indicates that the rotating speed of the diesel engine is greater than 80% of the rated rotating speed), 4 fans are started, so that the logic function is also reconstructed through the combination of the NOT gate and the AND gate; because the three modes all belong to parallel relation, the output signals after the three logic functions are reconstructed can be collected together through an OR gate to be used as analog output signals; in addition, since the second and third fan opening modes do not instantly open all fans in reality, a delay logic module is added to logic control, so that the analog output signals output by executing the second and third modes have delay properties, and the final logic diagram can refer to fig. 2. It will be appreciated that the present embodiment may construct the simulation system based on each predetermined control logic by reconstructing the corresponding logic diagram for each logic diagram in advance and then importing the logic diagrams into the processor. In addition, the delay logic module is used for delaying signals according to requirements.
It should be noted that, the logic diagram after reconstruction is simpler than the logic diagram for implementing the corresponding control logic in the control cabinet, because the logic diagram after reconstruction only reproduces a certain function (such as starting a fan) of the control logic, and does not need to consider other irrelevant functional reproduction, so that the simulation system is constructed simply and quickly through the common logic gate in the embodiment, and the relatively simple logic diagram is convenient for a worker to check whether the logic is correct or not, has high plasticity, and is convenient for transformation and upgrading according to requirements.
Step S20 includes: a setting of the analog input signal is determined. The purpose of this step is to set the setting of the individual switching value signals contained in the analog input signal by interacting with and controlling the analog system.
In some embodiments, the analog input signal may be determined by: an analog input signal is determined based on the control logic under test. Specifically, the setting value of each switching value signal in the analog input signal corresponding to the control logic to be tested can be automatically set to a corresponding default value through software, so that the test efficiency is improved, in addition, the default value can be recorded in advance according to the type and actual condition of the control logic to be tested, the initial condition of the logic test can be automatically set, and the workload of staff is reduced.
Further, the analog input signal may also be determined by: and determining an analog input signal according to the acquired first operation instruction. Specifically, the first operation command can be input by a worker through the man-machine interaction unit, so that the processor can set the setting value of each switching value signal in the analog input signals in a self-defined manner based on the first operation command, and of course, the setting value of one or more signals in the analog input signals can be set in a targeted manner through inputting the first operation command, for example, the state of the manual starting knob of the diesel engine fan can be set through inputting the first operation command.
Step S30 includes: the analog input signal is input to an analog system to obtain an analog output signal. The step is to input the analog input signals related to the control logic to be tested into the established analog system, so that the analog system executes the logic diagram corresponding to the control logic to be tested, and the analog output signals corresponding to the control logic to be tested are obtained.
Step S40 includes: and establishing a communication channel with a control cabinet of the diesel engine, and inputting an analog input signal into the control cabinet to acquire an output control signal output by the control cabinet. The step is to input analog input signals corresponding to the control logic to be tested into the control cabinet to obtain control signals which can be output by the control cabinet after the control cabinet receives the analog input signals and truly executes the internal control logic.
Step S50 includes: judging whether the analog output signal is consistent with the output control signal, if so, judging that the test of the control logic to be tested is qualified, otherwise, judging that the test of the control logic to be tested is unqualified. In this step, the coincidence of the analog output signal and the output control signal means that: taking the test diesel generator fan starting logic as an example, when the signals 4, 5,6 and 7 included in the analog output signals are identical to the signals 4, 5,6 and 7 included in the output control signals in sequence, the analog output signals and the output control signals are judged to be identical.
In some embodiments, in step S40, further comprising: the output time of the analog output signal is recorded and the input time to the output control signal is obtained. Accordingly, step S50 includes step S501, step S502, and step S503.
Step S501 includes: and calculating the total time required by the control cabinet to complete the control logic to be tested according to the output time and the input time.
Step S502 includes: and determining the execution limit time corresponding to the control logic to be tested according to the control logic to be tested.
Step S503 includes: if the analog output signal is consistent with the output control signal and the error of the total time and the execution limit time is within a preset error range, the control logic to be tested is judged to be qualified in the test (namely, the test result is qualified), and if the analog output signal is inconsistent with the output control signal or the error of the total time and the execution limit time is not within the preset error range, the control logic to be tested is judged to be unqualified in the test (namely, the test result is unqualified). In the present embodiment, the error can be calculated by the following expression: (total time-execution limit time)/execution limit time.
Optionally, the preset error ranges from-10% to 10%.
Since when some components inside the control cabinet are abnormal, the setting value of some signals may be out of control, and the control logic to be tested may pass a certain test, but in reality, the control cabinet is abnormal, for example, a signal acquisition circuit corresponding to a manual starting knob of a transmission diesel engine fan has a fault, so that the signal 9 is locked to be at a high level, when whether the starting logic of the diesel engine generator fan can be normally started or not is tested, the control logic may pass a single test, and in order to reduce the probability of occurrence of the situation, in some embodiments, as shown in fig. 4, step S51, step S52 and step S53 are further included after step S50.
Step S51 includes: and judging whether the test times of the control logic to be tested reach the preset test times, if so, executing S52, and if not, executing S53. In the step, the test times can be set by a worker through a human-computer interaction unit in a self-defined manner, and also can be default times preset in advance based on the current control logic to be tested. It is easy to understand that the default number of times corresponding to each control logic can be determined according to the number of switching value signals contained in the analog input signal, and if the number of switching value signals is larger, the more types can be combined, the larger default number of times is required.
Step S52 includes: judging whether each test result of the control logic to be tested is qualified, if so, judging that the control logic to be tested is correct, otherwise, judging that the control logic to be tested is wrong.
Step S53 includes: the analog input signal is reset and returns to S30. The effect of this step is to reset the setting of at least 1 of the analog input signals and to ensure that each time the same control logic is tested, the determined analog input signal is not identical to the previously determined analog input signal.
In this embodiment, after resetting the analog input signal each time, the processor is returned to step S30 to execute steps S30 to S53 multiple times, so that the control cabinet performs the test on different input signals, and the probability of occurrence of the above situation is reduced.
In an alternative embodiment, step S53 further includes: all combination types of all switching value signals in the analog input signal are determined, and setting values of the analog input signal are sequentially reset based on an enumeration principle and all combination types. Specifically, determining all combination types of the switching value signals in the analog input signal means: determining all types that each switching value signal can make up at different setting values, if it is assumed that the analog input signal includes switching value signal a, switching value signal B, and switching value signal C, then all combined types of the analog input signal include "000", "001", "010", "011", "100", "101", "110", and "111"; then sequentially resetting the analog input signal based on the enumeration principle and the respective combination type means: the analog input signals are reset in sequence and not repeatedly based on the set values in each combination type, so that the control cabinet and the analog system execute the control logic to be tested aiming at the analog input signals with all set values, more comprehensive function verification is realized, and whether the control logic to be tested is correct or not is checked more accurately. If the default number is set to X (X is equal to the power Y of 2, and Y is equal to the number of switching value signals included in the analog input signal, in this example, X is equal to 8), then all the 8 combination types of position values can be tested once in the process of circularly executing steps S30 to S53, and although the time consumed in this embodiment is longer, the omnibearing test of the logic to be controlled is realized, and the correctness of the logic to be controlled can be effectively ensured.
In another alternative embodiment, step S53 may further include: the setting of the analog input signal is reset based on the principle that each switching value signal is flipped at least once. Specifically, the principle of flipping at least once on a per-switching-value signal basis means: in the process of circularly executing the steps S30 to S53 and resetting the analog input signal a plurality of times, each switching value signal is flipped at least once, i.e. the setting value of each switching value signal is changed at least once.
Further, for example, taking the control logic of starting and stopping the air compressor (principle that each switching value signal is turned at least once), referring to fig. 3, firstly, setting "0" for (analog input signal) signal 10, signal 11, signal 12 and signal 13, and if the signals 14 and 15 corresponding to the analog output signal and the output control signal are respectively set to "0", judging that the test result is qualified; then, the signal 10 is changed to be set to be "1", and if the signals 14 corresponding to the analog output signal and the output control signal are both "1" and the signals 15 are both "0", the test result is judged to be qualified; then, signal 10 is set to "0"; changing the signal 11 to be '1', and judging that the test result is qualified if the signals 14 corresponding to the analog output signal and the output control signal are '1' and '0' respectively; then, the signal 10 is changed to be set to be "1", and if the signals 14 corresponding to the analog output signal and the output control signal are both "1" and the signals 15 are both "0", the test result is judged to be qualified; then, the signal 12 is changed to be set to be "1", the signal 13 is changed to be set to be "1", and if the signals 14 corresponding to the analog output signal and the output control signal are both "0" and the signals 15 are both "1", the test result is judged to be qualified; then, the signal 12 is changed to be "0", and if the signals 14 corresponding to the analog output signal and the output control signal are both "1" and the signals 15 are both "0", the test result is judged to be qualified; then, the signal 12 is changed to be set to be "1", the signal 13 is changed to be set to be "0", and if the signals 14 corresponding to the analog output signal and the output control signal are both "1" and the signals 15 are both "0", the test result is judged to be qualified; then, the signal 10 is changed to be set to be "0", the signal 11 is changed to be set to be "0", the signal 12 is changed to be set to be "1", and the signal 13 is changed to be set to be "1", if the signals 14 corresponding to the analog output signal and the output control signal are respectively "0", and the signals 15 are respectively "1"; and if all the test results are qualified, judging that the start-stop control logic of the air compressor is correct. It can be understood that the diversity of the setting values of the test analog input signals can be increased, the probability of finding out the abnormality of the signal acquisition circuit corresponding to the single switching value signal can be improved, and the embodiment is low in comprehensiveness, but is beneficial to shortening the test time.
In some embodiments, as shown in fig. 5, step S01 and step S02 are also included before S10.
The step S01 includes: setting a logic list to be tested according to the acquired second operation instruction; wherein the logic list under test includes at least one control logic. Further, the logic list to be tested can comprise high-temperature cooling water system logic, low-temperature cooling water system control logic, compressed air system control logic, fuel oil system control logic, lubricating oil system control logic, air intake and exhaust system control logic, sensor measurement control logic, generator electric protection logic, generator synchronization grid connection control logic, air compressor start-stop control logic, generator excitation system control logic, auxiliary control logic, speed regulation and control logic, unit alarm control logic, DCS interface control logic and protection stop logic.
Step S02 includes: and determining one of the control logics in the logic list to be tested as the control logic to be tested.
In some embodiments, as shown in fig. 6, step S60 is further included after step S52.
Step S60 includes: and judging whether all the control logics in the logic list to be tested are tested, if yes, outputting test results of all the control logics, otherwise, determining one control logic which is not tested in the logic list to be tested as the control logic to be tested, and returning to S20.
In this embodiment, the test result may be displayed through the man-machine interaction unit, and further, the test result may be displayed based on the classification of the control logic type, for example, if the logic of the high-temperature cooling water system is correct and the logic of the lubricating oil system is incorrect, the logic of the high-temperature cooling water system is displayed correctly in a certain area, and the logic of the lubricating oil system is displayed incorrectly in another area. It is easy to understand that by implementing the embodiment, the processor can automatically and sequentially test various control logics, so that the degree of automation is improved, and the manpower resources can be effectively saved.
In some embodiments, the high temperature cooling water system logic, the low temperature cooling water system control logic, the compressed air system control logic, the fuel system control logic, the lubricating oil system control logic, the air intake and exhaust system control logic, the sensor measurement control logic, the generator electrical protection logic, the generator synchronization grid-connected control logic, the air compressor start-stop control logic and the generator excitation system control logic belong to a first stage control logic; the auxiliary control logic, the speed regulation and control logic, the unit alarm control logic, the DCS interface control logic and the protection shutdown logic belong to the second stage control logic.
Correspondingly, step S02 includes: one of the control logics belonging to the first-stage control logic is determined as the control logic to be tested. In step S60, determining a control logic not tested in the logic to be tested list as the control logic to be tested includes: judging whether all the control logics belonging to the first-stage control logic are tested, if yes, determining an untested control logic as the control logic to be tested, otherwise, determining an untested control logic belonging to the first-stage control logic as the control logic to be tested.
In this embodiment, the first stage control logic belongs to a single auxiliary system logic, the control logic is relatively simple, the correlation with related external devices is weak, the test, maintenance and the like are easy to implement, and the second stage control logic has a wide range of design (some of which can relate to the first stage control logic) and has higher technical difficulty. According to the embodiment, the control logic schematic is executed one by one according to the thought of the stepwise test, so that accidental omission of the logic test during execution can be prevented from being simple to complex, logic problems in field formal equipment can be found more, meanwhile, the reliability and the correctness of a logic test result can be greatly improved, the result deviation of technicians with different experience levels during execution of the logic test can be avoided, and positive effects are played for improving the test efficiency and the reliability.
As shown in FIG. 7, the invention also provides a diesel engine control logic automatic test device, which comprises a logic processing unit and a communication unit.
The logic processing unit comprises a processor, and the processor realizes the steps of the diesel engine control logic automatic test method provided by the embodiment of the invention when executing the computer program.
The communication unit is connected between the logic processing unit and the control cabinet of the diesel engine so that the logic processing unit and the diesel engine establish a communication channel.
As shown in fig. 7, the diesel engine control logic automatic test device further comprises a man-machine interaction unit. The man-machine interaction unit is connected with the logic processing unit to acquire operation instructions (including a first operation instruction, a second operation instruction and the like) and display test results.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is to be understood that the above examples only represent preferred embodiments of the present invention, which are described in more detail and are not to be construed as limiting the scope of the invention; it should be noted that, for a person skilled in the art, the above technical features can be freely combined, and several variations and modifications can be made without departing from the scope of the invention; therefore, all changes and modifications that come within the meaning and range of equivalency of the claims are to be embraced within their scope.
Claims (12)
1. The automatic test method for the control logic of the diesel engine is characterized by comprising the following steps of:
s10, constructing a simulation system; the simulation system can simulate the simulation input signals obtained from related external equipment in the process of executing the control logic to be tested by the diesel engine, and generates the simulation output signals which can be output after the control logic to be tested is executed in a simulation mode according to the simulation input signals;
s20, determining a setting value of the analog input signal;
s30, inputting the analog input signal into the analog system to acquire the analog output signal;
s40, establishing a communication channel with a control cabinet of the diesel engine, inputting the analog input signal into the control cabinet to obtain an output control signal output by the control cabinet, and executing S50;
s50, judging whether the analog output signal is consistent with the output control signal, if so, judging that the test of the control logic to be tested is qualified, otherwise, judging that the test of the control logic to be tested is unqualified.
2. The diesel engine control logic automatic test method according to claim 1, wherein in S10, the constructing a simulation system includes:
Constructing a simulation system based on common logic gates and a plurality of preset control logics; wherein the common logic gates include, but are not limited to, NOT gates, AND gates, OR gates, RS flip-flops, and delay logic modules; each control logic can respectively determine the control cabinet and the output signals correspondingly output by the control cabinet when the external equipment inputs related analog input signals to the control cabinet in the process of executing the control logic in a matched manner.
3. The diesel engine control logic automatic test method according to claim 1, wherein S20 includes:
determining an analog input signal based on the control logic to be tested; and/or
And determining an analog input signal according to the acquired first operation instruction.
4. The automatic test method of diesel engine control logic according to claim 1, further comprising, in S40:
recording the output time of the analog output signal and acquiring the input time of the output control signal;
the S50 includes:
S501, calculating the total time required by the control cabinet to complete the control logic to be tested according to the output time and the input time;
s502, determining the execution limit time corresponding to the control logic to be tested according to the control logic to be tested;
s503, if the analog output signal is consistent with the output control signal and the error of the total time and the execution limiting time is within a preset error range, judging that the test of the control logic to be tested is qualified, and if the analog output signal is inconsistent with the output control signal or the error of the total time and the execution limiting time is not within the preset error range, judging that the test of the control logic to be tested is not qualified.
5. The method of claim 4, wherein the predetermined error range is-10% to 10%.
6. The diesel engine control logic automatic test method according to any one of claims 1 to 5, further comprising, after S50:
S51, judging whether the test times of the control logic to be tested reach the preset test times, if so, executing S52, and if not, executing S53;
s52, judging whether each test result of the control logic to be tested is qualified, if so, judging that the control logic to be tested is correct, otherwise, judging that the control logic to be tested is wrong;
s53, resetting the analog input signal, and returning to S30.
7. The method of claim 6, wherein the analog input signal comprises a plurality of switching value signals;
In the step S53, further comprising:
Determining all combination types of all switching value signals in the analog input signals, and resetting the analog input signals in sequence based on an enumeration principle and all combination types; or alternatively
The analog input signal is reset based on the principle that each of the switching value signals is flipped at least once.
8. The diesel engine control logic automatic test method according to claim 6, further comprising, prior to S10:
s01, setting a logic list to be tested according to the acquired second operation instruction; wherein the list of logic to be tested includes at least one control logic;
S02, determining one of the control logics in the logic list to be tested as the control logic to be tested;
After S52, the method further includes:
s60, judging whether all the control logics in the logic list to be tested are tested, if yes, outputting test results of all the control logics, otherwise, determining one control logic which is not tested in the logic list to be tested as the control logic to be tested, and returning to S20.
9. The automatic test method of diesel engine control logic according to claim 8, wherein in S01, the logic list to be tested includes high temperature cooling water system logic, low temperature cooling water system control logic, compressed air system control logic, fuel system control logic, lubricating oil system control logic, intake and exhaust system control logic, sensor measurement control logic, generator electrical protection logic, generator synchronization grid connection control logic, air compressor start-stop control logic, generator excitation system control logic, auxiliary control logic, speed regulation and control logic, unit alarm control logic, DCS interface control logic, and protection shutdown logic.
10. The automatic test method of diesel engine control logic of claim 9, wherein the high temperature cooling water system logic, the low temperature cooling water system control logic, the compressed air system control logic, the fuel system control logic, the lubrication oil system control logic, the intake and exhaust system control logic, the sensor measurement control logic, the generator electrical protection logic, the generator synchronization grid connection control logic, the air compressor start-stop control logic, and the generator excitation system control logic belong to a first stage control logic; the auxiliary control logic, the speed regulation and control logic, the unit alarm control logic, the DCS interface control logic and the protection shutdown logic belong to a second stage control logic;
the S02 includes: determining one of the control logic belonging to the first-stage control logic as a control logic to be tested;
In the step S60, the determining the control logic not tested in the logic under test list as the control logic under test includes:
Judging whether all the control logics belonging to the first-stage control logic are tested, if yes, determining one control logic which is not tested as the control logic to be tested, and if not, determining one control logic which is not tested and belongs to the first-stage control logic as the control logic to be tested.
11. An automatic test equipment for control logic of diesel engine, comprising:
A logic processing unit comprising a processor which when executing a computer program implements the steps of the diesel engine control logic automatic test method according to any one of claims 1 to 10; and
And the communication unit is connected between the logic processing unit and the diesel engine so as to enable the logic processing unit to establish a communication channel with the diesel engine.
12. The diesel engine control logic automatic test equipment of claim 11, further comprising:
And the man-machine interaction unit is connected with the logic processing unit and used for acquiring the operation instruction and displaying the test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410213624.5A CN117784698B (en) | 2024-02-27 | 2024-02-27 | Automatic test method and device for diesel engine control logic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410213624.5A CN117784698B (en) | 2024-02-27 | 2024-02-27 | Automatic test method and device for diesel engine control logic |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117784698A CN117784698A (en) | 2024-03-29 |
CN117784698B true CN117784698B (en) | 2024-04-26 |
Family
ID=90389600
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410213624.5A Active CN117784698B (en) | 2024-02-27 | 2024-02-27 | Automatic test method and device for diesel engine control logic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117784698B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101323727B1 (en) * | 2013-08-12 | 2013-10-31 | 맥스파워(주) | Static measuring and dynamic diagnostic apparatus for control module at engine control system in nuclear emergency diesel generator |
KR20200085055A (en) * | 2019-01-04 | 2020-07-14 | 한국조선해양 주식회사 | Device for verifying control logic for engine controller |
CN114019372A (en) * | 2021-10-29 | 2022-02-08 | 华能海南发电股份有限公司东方电厂 | First loading capacity check test method for emergency security diesel generator of thermal power plant |
CN115562211A (en) * | 2022-10-24 | 2023-01-03 | 中广核工程有限公司 | Emergency diesel generator control logic analog circuit and computer equipment |
CN116300788A (en) * | 2022-12-22 | 2023-06-23 | 北京广利核系统工程有限公司 | System for testing control protection system of emergency diesel generator of nuclear power plant |
CN117471933A (en) * | 2023-10-07 | 2024-01-30 | 阳江核电有限公司 | Diesel engine interface simulation device and system thereof |
-
2024
- 2024-02-27 CN CN202410213624.5A patent/CN117784698B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101323727B1 (en) * | 2013-08-12 | 2013-10-31 | 맥스파워(주) | Static measuring and dynamic diagnostic apparatus for control module at engine control system in nuclear emergency diesel generator |
KR20200085055A (en) * | 2019-01-04 | 2020-07-14 | 한국조선해양 주식회사 | Device for verifying control logic for engine controller |
CN114019372A (en) * | 2021-10-29 | 2022-02-08 | 华能海南发电股份有限公司东方电厂 | First loading capacity check test method for emergency security diesel generator of thermal power plant |
CN115562211A (en) * | 2022-10-24 | 2023-01-03 | 中广核工程有限公司 | Emergency diesel generator control logic analog circuit and computer equipment |
CN116300788A (en) * | 2022-12-22 | 2023-06-23 | 北京广利核系统工程有限公司 | System for testing control protection system of emergency diesel generator of nuclear power plant |
CN117471933A (en) * | 2023-10-07 | 2024-01-30 | 阳江核电有限公司 | Diesel engine interface simulation device and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN117784698A (en) | 2024-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108229049B (en) | Method for performing task reliability modeling of multi-state system based on performance model | |
CN105425201A (en) | Metering chip simulation test method used for intelligent electric energy meter software reliability detection | |
CN108508360B (en) | RT-Lab-based doubly-fed wind power virtual synchronous generator performance test method and system | |
CN104635669A (en) | Instrument control system verification method | |
CN113675878B (en) | Offshore wind farm grid-connected performance testing method and system, computer equipment and medium | |
CN113203909A (en) | Wind power plant continuous fault ride-through test method, system, computer equipment and medium | |
CN111983990A (en) | Automatic testing platform for basic software | |
CN115562211A (en) | Emergency diesel generator control logic analog circuit and computer equipment | |
CN117784698B (en) | Automatic test method and device for diesel engine control logic | |
CN214375075U (en) | Full-automatic BMS hardware is at ring testing arrangement | |
CN113536506B (en) | Method, system, equipment and medium for testing self-healing capacity of power distribution network | |
CN108051767B (en) | A kind of automatic diagnosis method for integrated circuit tester | |
CN113739926B (en) | Method and device for detecting temperature rise fault of train electric appliance cabinet and terminal equipment | |
CN109581174B (en) | Nuclear power station dynamic simulation test system and test method | |
CN111781444A (en) | Automatic testing system and method for grid-connected single machine | |
CN117742218B (en) | Singlechip function detection method and system | |
CN109684661B (en) | Simulation method of metering instrument based on IEC62056 protocol | |
CN110688298A (en) | Nuclear power plant man-machine interaction system automatic testing device based on event driving | |
CN111965587A (en) | Automatic test method and automatic test platform for stability of electric energy meter | |
CN111273188B (en) | Method and system for realizing compatibility with different test requirements based on automatic test platform of switching power supply | |
CN110688299A (en) | Automatic test platform for application software of nuclear power plant | |
CN118068805A (en) | Automatic testing method and system for control program of wind turbine generator | |
CN118409578A (en) | System, method and equipment for testing in-loop fault injection of hybrid motor hardware | |
CN112214403B (en) | Automatic test method, device and system based on protection device model file | |
CN109444709B (en) | Wind turbine generator testing system design method based on virtual instrument technology |
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 |