A first failure determination method and device, a storage medium and a terminal device
By using a fault data storage sub-region and a flag register structure in the PLC processor, rapid identification and handling of the first fault in a hydrogen fuel cell power generation system is achieved, solving the problem of low fault handling efficiency in existing technologies and improving maintenance efficiency.
Patent Information
- Application Number
- CN202310276748.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-16
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-03-16
AI Technical Summary
Existing technologies cannot effectively distinguish the first fault in a hydrogen fuel cell power generation system, forcing after-sales maintenance personnel to rely on experience to analyze each fault individually, resulting in low fault handling efficiency.
By adopting the fault data storage sub-area and fault flag register structure in the PLC processor, a unique control signal is generated by acquiring fault signals, storing and refreshing relevant information, and comparing it with the preset first fault control signal to determine whether the fault is the first fault.
It improves the fault handling efficiency of after-sales maintenance personnel, enabling them to quickly identify and handle initial faults, reduce indiscriminate fault analysis, and improve system maintenance efficiency.
Smart Images

Figure CN116449765B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electric power, in particular to a first fault determination method and device, a storage medium and a terminal equipment. BACKGROUND
[0002] In recent years, with the wide application of hydrogen fuel cells, the corresponding power generation system is also becoming more and more complex, so the requirement for the fault handling capability of the power generation system is also increasing. Generally, the fault handling process of the hydrogen fuel cell power generation system is: fault triggering-system shutdown or load reduction-fault alarm. During the period from fault triggering to system shutdown or load reduction, a series of related faults are often triggered, and the system will report all the occurring faults to the display interface without distinction. According to actual experience, more than 90% of the faults are caused by first faults, but in the prior art, since the first fault cannot be distinguished, the after-sales maintenance personnel need to rely on experience to analyze the faults one by one, resulting in low fault handling efficiency. SUMMARY
[0003] In order to overcome the shortcomings of the prior art, the present application provides a first fault determination method, device, storage medium and terminal equipment, which can identify the first fault and improve the fault handling efficiency of the after-sales maintenance personnel.
[0004] The embodiment of the present application provides a first fault determination method, which is suitable for a PLC processor. The PLC processor comprises n fault data storage sub-areas, n fault flag registers and an output state register. Each fault data storage sub-area corresponds to storage of a type of fault information. Each fault flag register comprises (n-1) fault flag bits. Each fault data storage sub-area is associated with (n-1) fault flag registers, and corresponds to a fault flag bit in each associated fault flag register.
[0005] The first fault determination method comprises the following steps:
[0006] acquiring a fault signal and determining a fault type corresponding to the fault signal;
[0007] determining a target fault data storage sub-area corresponding to the fault signal according to the fault type, and then storing fault information corresponding to the fault signal into the target fault data storage sub-area;
[0008] when it is monitored that the target fault data storage sub-area changes, refreshing (n-1) fault flag registers associated with the target fault data storage sub-area, so that the state value of the fault flag bit corresponding to the target fault data storage sub-area in the register associated with the target fault data storage sub-area changes;
[0009] Output the state values of the fault flag bits of all the fault flag registers to an output state register, so that the output state register generates a control signal according to the received state values of the fault flag bits;
[0010] Compare the control signal with a preset first-failure control signal, and determine that the fault corresponding to the fault signal is a first-failure when the control signal is consistent with the preset first-failure control signal.
[0011] Further, the fault signal includes:
[0012] According to the monitoring of the fault by the plurality of sensors, the fault signal is obtained.
[0013] Further, after determining that the fault corresponding to the fault signal is a first-failure, the method further includes: controlling an alarm to alarm the first-failure.
[0014] Further, when it is determined that the control signal is inconsistent with the preset first-failure control signal, it is determined that the fault corresponding to the fault signal is a non-first-failure.
[0015] Further, after determining that the fault corresponding to the fault signal is a first-failure, the first-failure corresponding fault information is sent to an upper computer, so that the upper computer displays the fault information in a first display area.
[0016] After determining that the fault corresponding to the fault signal is a non-first-failure, the non-first-failure corresponding fault information is sent to an upper computer, so that the upper computer displays the fault information in a second display area.
[0017] The first display area and the second display area are different.
[0018] The embodiment of the application further provides a first-failure determining device, including:
[0019] A fault obtaining module is configured to obtain a fault signal and determine a fault type corresponding to the fault signal.
[0020] A fault storage module is configured to determine a target fault data storage sub-area corresponding to the fault signal according to the fault type, and then store fault information corresponding to the fault signal in the target fault data storage sub-area.
[0021] a fault flag module, configured to refresh (n-1) fault flag registers associated with the target fault data storage sub-area when a change in the target fault data storage sub-area is monitored, and change a state value of a fault flag bit corresponding to the target fault data storage sub-area in the register associated with the target fault data storage sub-area;
[0022] a fault output module, configured to output the state values of the fault flag bits of all the fault flag registers to an output state register, so that the output state register generates a control signal according to the received state values of the fault flag bits;
[0023] a fault determination module, configured to compare the control signal with a preset first-fault control signal, and determine that the fault corresponding to the fault signal is a first fault when the control signal is determined to be consistent with the preset first-fault control signal.
[0024] The embodiment of the present application also provides a storage medium, which comprises a stored computer program; wherein the computer program controls a device where the storage medium is located to execute the first-fault determination method according to any one of the embodiments of the present application when running.
[0025] The embodiment of the present application also provides a terminal device, which comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the first-fault determination method according to any one of the embodiments of the present application when executing the computer program.
[0026] Compared with the prior art, the embodiment of the present application has the following beneficial effects:
[0027] The present application is suitable for a PLC processor, which comprises n fault data storage sub-areas, n fault flag registers and an output state register, a fault signal is obtained and stored in a corresponding target fault data storage sub-area when a fault occurs, (n-1) fault flag registers associated with the fault data storage sub-area are updated when the fault flag registers monitor a change in the corresponding fault data storage sub-area, wherein a flag bit of the fault exists in each associated fault flag register, so that each fault causes the fault flag registers to output different information, the output information is processed in the output state register, thereby generating a unique control signal corresponding to each fault, the control signal is compared with a preset first-fault control signal to determine whether the fault corresponding to the fault signal is a first fault, and further, when the fault is determined to be a first fault, the first fault is analyzed, which is beneficial to improving the fault processing efficiency of after-sales maintenance personnel. BRIEF DESCRIPTION OF DRAWINGS
[0028] Figure 1A step flow chart of a first failure determination method provided by an embodiment of the present application is shown in the figure;
[0029] Figure 2 A structural schematic diagram of a first failure determination device provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0030] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application.
[0031] Please refer to Figure 1 For an embodiment of the present application, a first failure determination method is provided, which is suitable for a PLC processor. The PLC processor includes n failure data storage sub-areas, n failure flag registers and an output state register. Each failure data storage sub-area stores a type of failure information. Each failure flag register includes (n-1) failure flag bits. Each failure data storage sub-area is associated with (n-1) failure flag registers, and corresponds to a failure flag bit in each associated failure flag register.
[0032] The first failure determination method includes:
[0033] Step S1: obtaining a failure signal and determining a failure type corresponding to the failure signal.
[0034] Preferably, the obtaining of the failure signal includes monitoring the failure according to a plurality of sensors to obtain the failure signal.
[0035] In a preferred embodiment, the first failure determination method disclosed by the present application is suitable for a hydrogen fuel cell power generation system. The PLC processor inside the hydrogen fuel cell power generation system monitors failure signals according to sensors. One failure signal may include a plurality of failure sub-signals, i.e., the failure information corresponding to the failure signal includes the failure information corresponding to a plurality of failure sub-signals. Since each module in the hydrogen fuel cell power generation system may generate several sub-failures in a very short time, and these sub-failures correspond to a type of failure, such as a type of representing an alarm but not stopping; a type of representing load reduction or power limitation but not stopping; a type of representing a delay stop; a type of representing an instantaneous stop, an operation and maintenance personnel can determine the failure point through one sub-failure. Therefore, these sub-failures can be packaged as one failure signal, which is convenient for identification in subsequent failure information storage and reduces the partition memory, so that the failure processing is more efficient.
[0036] Step S2: determining a target fault data storage sub-area corresponding to the fault signal according to the fault type, and then storing the fault information corresponding to the fault signal into the target fault data storage sub-area;
[0037] In a preferred embodiment, after a fault signal is generated in the hydrogen fuel cell power generation system, a series of other faults can be triggered, and these faults are stored in corresponding fault data storage sub-areas in sequence. By reading the fault data storage sub-areas, all the fault information can be obtained.
[0038] Step S3: when a change in the target fault data storage sub-area is monitored, refreshing the (n-1) fault flag registers associated with the target fault data storage sub-area, so that the state value of the fault flag bit corresponding to the target fault data storage sub-area in the register associated with the target fault data storage sub-area is changed;
[0039] In a preferred embodiment, when a change in a fault data storage sub-area is monitored, it is regarded as a target fault data storage sub-area, and the (n-1) fault flag registers associated with it are immediately updated, so that the state value of the fault flag bit corresponding to the target fault data storage sub-area is changed. Therefore, the internal storage of the above (n-1) fault flag registers has new storage content compared with the initial time. For example, if there are currently 4 types of faults, and the fault type corresponding to the target fault data storage sub-area is type 1, then the state value of the fault flag bit corresponding to type 1 in the 3 fault flag registers associated with it is updated. If the initial sequence values of the 3 fault flag registers are (0, 0, 0), (0, 0, 0), and (0, 0, 0), respectively, the updated values are (1, 0, 0), (1, 0, 0), and (1, 0, 0), respectively. 1类 3类 4类 1类 2类 4类 1类 2类 3类 1类 3类 4类 1类 2类 4类 1类 2类 3类
[0040] Step S4: outputting the state values of the fault flag bits of all the fault flag registers to an output state register, so that the output state register generates a control signal according to the received state values of the fault flag bits;
[0041] In a preferred embodiment, a unique control signal is generated in the output state register according to the outputs of the n fault flag registers, such as the sequence values of the updated 3 fault flag registers (1 1类 , 0 3类 , 0 4类 ), (1 1类 , 0 2类 , 0 4类 ), (1 1类 , 0 2类 , 0 3类 ) above, whose binary groups are represented as 100, 100, 100, and the continuous 3 rectangular signals are generated according to the binary groups, and then a control signal is composed, and the amplitudes of the continuous 3 rectangular signals in this embodiment are 4-4-4 respectively, that is, the corresponding binary groups are converted into decimal.
[0042] Step S5: comparing the control signal with a preset first-failure control signal, and determining that the fault corresponding to the fault signal is a first-failure fault when the control signal is consistent with the preset first-failure control signal.
[0043] In a preferred embodiment, when a preset first-failure control signal corresponding to the fault signal is input as the first input, the generated control signal, such as a Class 1 fault, will have a preset first-failure control signal, and the amplitudes of the 3 continuous rectangular signals contained in the preset first-failure control signal are 4-4-4. After the control signal is generated in the PLC processor, it is compared with the preset first-failure control signal corresponding to the Class 1 fault. When the comparison is consistent, it means that the Class 1 fault is a first-failure fault. When the comparison is inconsistent, it means that the Class 1 fault is not a first-failure fault.
[0044] Preferably, after determining that the fault corresponding to the fault signal is a first-failure fault, the method further comprises: controlling an alarm to alarm the first-failure fault.
[0045] Preferably, when the control signal is determined to be inconsistent with the preset first-failure control signal, it is determined that the fault corresponding to the fault signal is a non-first-failure fault.
[0046] After determining that the fault corresponding to the fault signal is a first-failure fault, the fault information corresponding to the first-failure fault is sent to an upper computer, so that the upper computer displays the fault information in a first display area.
[0047] After determining that the fault corresponding to the fault signal is a non-first-failure fault, the fault information corresponding to the non-first-failure fault is sent to an upper computer, so that the upper computer displays the fault information in a second display area.
[0048] The first display area and the second display area are different.
[0049] In a preferred embodiment, the acquired control signal is compared with a preset first-failure control signal, and when the comparison is consistent, it indicates that the fault corresponding to the fault signal is a first-failure, and when the comparison is inconsistent, it indicates that the fault corresponding to the fault signal is a non-first-failure, and further, the host computer displays the first-failure information and the non-first-failure information after judgment, so that the first-failure information and other non-first-failure information can be understood in time, and then the operation and maintenance personnel are informed to process.
[0050] On the basis of the method embodiment of the application, a device embodiment is further provided:
[0051] Please refer to Figure 2 Another embodiment of the application provides a first-failure determination device, which comprises:
[0052] a fault acquisition module, configured to acquire a fault signal and determine a fault type corresponding to the fault signal;
[0053] a fault storage module, configured to determine a target fault data storage sub-area corresponding to the fault signal according to the fault type, and then store fault information corresponding to the fault signal in the target fault data storage sub-area;
[0054] a fault flag module, configured to refresh (n-1) fault flag registers associated with the target fault data storage sub-area when a change in the target fault data storage sub-area is monitored, so that a state value of a fault flag bit corresponding to the target fault data storage sub-area in the register associated with the target fault data storage sub-area is changed;
[0055] a fault output module, configured to output the state value of the fault flag bit of all fault flag registers to an output state register, so that the output state register generates a control signal according to the received state value of each fault flag bit;
[0056] a fault determination module, configured to compare the control signal with a preset first-failure control signal, and determine that the fault corresponding to the fault signal is a first-failure when it is determined that the control signal is consistent with the preset first-failure control signal.
[0057] It should be noted that the apparatus embodiments described above are merely illustrative, and the units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment according to actual needs. In addition, the connection relationship between the modules in the apparatus embodiments provided by the present application indicates that there is a communication connection between them, which can be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement it without creative labor.
[0058] Those skilled in the art can clearly understand that, for the convenience and brevity, the specific working process of the apparatus described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0059] On the basis of the above various embodiments, the present application correspondingly provides storage medium item embodiments.
[0060] Another embodiment of the present application provides a storage medium, which comprises a stored computer program, wherein the computer program controls a device where the computer readable storage medium is located to perform a first failure determination method according to any one of the method embodiments of the present application when the computer program is running.
[0061] The storage medium is a computer readable storage medium, and the computer program is stored in the computer readable storage medium. When the computer program is executed by a processor, the steps of the above various method embodiments can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms, etc. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
[0062] On the basis of the above various embodiments, the present application correspondingly provides terminal device item embodiments.
[0063] An embodiment of the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the computer program is executed by the processor, a first failure determination method is realized.
[0064] The terminal device can be a desktop computer, a notebook computer, a palm computer, a cloud server, and the like. The terminal device can include, but is not limited to, a processor and a memory.
[0065] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor and the like. The processor is a control center of the terminal device, and is connected to various parts of the terminal device through various interfaces and lines.
[0066] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store an operating system, at least one application required by a function, and the like; and the data storage area can store data created according to use of the terminal device, and the like. In addition, the memory can include a high-speed random access memory, and can also include a nonvolatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory devices.
[0067] By implementing the embodiment of the present application, the following beneficial effects are achieved:
[0068] The application is suitable for PLC processor, comprising n fault data storage sub-areas, n fault flag registers and an output state register, when a fault occurs, a fault signal is obtained and stored in the corresponding target fault data storage sub-area, when the fault flag register detects that the corresponding fault data storage sub-area changes, then (n-1) fault flag registers associated with the fault data storage sub-area are updated, wherein, each associated fault flag register has a flag bit of the fault, thus each fault makes the fault flag register output different information, the output information is processed in the output state register, thereby generating a unique control signal corresponding to the fault, and the unique control signal is compared with a preset first fault control signal to determine whether the fault signal corresponds to a first fault, and further, when the first fault is determined, analyzing the first fault is beneficial to improve the fault processing efficiency of after-sales maintenance personnel.
[0069] The above is the preferred embodiment of the application, it should be pointed out that, for those skilled in the art, without departing from the principles of the application, can make a number of improvements and refinements, these improvements and refinements also regarded as the protection scope of the application.
Claims
1. A method of first failure determination, the method comprising: The application is suitable for a PLC processor, which comprises n fault data storage sub-areas, n fault flag registers and an output state register, wherein each fault data storage sub-area corresponds to storage of a type of fault information, each fault flag register comprises n-1 fault flag bits, each fault data storage sub-area is associated with n-1 fault flag registers, and each associated fault flag register corresponds to a fault flag bit; The first fault determination method comprises: acquiring a fault signal and determining a fault type corresponding to the fault signal; determining a target fault data storage sub-area corresponding to the fault signal according to the fault type, and then storing fault information corresponding to the fault signal into the target fault data storage sub-area; when a change in the target fault data storage sub-area is monitored, refreshing n-1 fault flag registers associated with the target fault data storage sub-area, so that a state value of a fault flag bit corresponding to the target fault data storage sub-area in the register associated with the target fault data storage sub-area is changed; outputting state values of fault flag bits of all fault flag registers to an output state register, so that the output state register generates a control signal according to the received state values of the fault flag bits; comparing the control signal with a preset first fault control signal, and determining that the fault corresponding to the fault signal is a first fault when it is determined that the control signal is consistent with the preset first fault control signal.
2. A method of determining a first failure as claimed in claim 1, wherein, The acquisition of the fault signal comprises: monitoring the fault according to a plurality of sensors to obtain the fault signal.
3. A method of determining a first failure as claimed in claim 1, wherein, After determining that the fault corresponding to the fault signal is a first fault, the method further comprises controlling an alarm to alarm the first fault.
4. The method of claim 1, wherein, The method further comprises: determining that the fault corresponding to the fault signal is a non-first fault when it is determined that the control signal is inconsistent with the preset first fault control signal.
5. A method of determining a first failure as claimed in claim 4, wherein, The method further comprises: after determining that the fault corresponding to the fault signal is a first fault, sending fault information corresponding to the first fault to an upper computer, so that the upper computer displays the fault information in a first display area; after determining that the fault corresponding to the fault signal is a non-first fault, sending fault information corresponding to the non-first fault to the upper computer, so that the upper computer displays the fault information in a second display area; wherein the first display area and the second display area are different.
6. An apparatus for determining a first failure, characterized by The method comprises: a fault acquisition module, configured to acquire a fault signal and determine a fault type corresponding to the fault signal; a fault storage module, configured to determine a target fault data storage sub-area corresponding to the fault signal according to the fault type, and then store fault information corresponding to the fault signal into the target fault data storage sub-area. The fault flag module is configured to refresh the n-1 fault flag registers associated with the target fault data storage sub-area when a change in the target fault data storage sub-area is monitored, and change the state value of the fault flag bit corresponding to the target fault data storage sub-area in the register associated with the target fault data storage sub-area; The fault output module is configured to output the state value of the fault flag bit of all fault flag registers to an output state register, so that the output state register generates a control signal according to the received state value of each fault flag bit; The fault determination module is configured to compare the control signal with a preset first-fault control signal, and determine that the fault corresponding to the fault signal is a first fault when it is determined that the control signal is consistent with the preset first-fault control signal.
7. A storage medium, characterized by The storage medium includes a stored computer program; wherein the computer program controls the device where the storage medium is located to execute the first-fault determination method according to any one of claims 1-5 when running.
8. A terminal device, comprising: The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the first-fault determination method according to any one of claims 1-5 when executing the computer program.
Citation Information
Patent Citations
Vehicle-mounted real-time fault diagnosis method and device
CN113320565A
Vehicle fault real-time diagnosis method and device, electronic equipment and storage medium
CN115577151A