A method and device for detecting faults of an industrial control device, a network device and a medium
By acquiring fault data and basic data of industrial control equipment, analyzing fault duration, and stopping database updates within a preset interval, the accuracy problem of analyzing water and electricity usage of industrial control equipment in sewage treatment systems is solved, redundant data is reduced, and database performance is improved.
Patent Information
- Application Number
- CN202310756073.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-25
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-06-25
AI Technical Summary
Existing wastewater treatment systems have significant problems in the accuracy of analyzing the water and electricity usage of industrial control equipment. Excessive fault data recording leads to high and frequent database access, resulting in performance degradation.
By acquiring the first fault data and basic data of industrial control equipment, analyzing the fault duration, determining the second fault data of the target industrial control equipment, and stopping database updates when no different types of fault data are acquired within a preset interval, redundant historical data is reduced.
It improved the accuracy of water and electricity usage analysis for industrial control equipment, reduced database access pressure, enhanced database performance, and enabled efficient fault data recording.
Smart Images

Figure CN116661424B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of industrial production, in particular to a method and device for detecting faults of industrial control equipment, network equipment and a medium. BACKGROUND
[0002] The existing method for detecting faults of industrial control equipment of a sewage treatment system usually realizes automatic control through configuration of hardware device input and output ports and time relationship, and communication between all industrial control equipment is collected through MQTT (Message Queuing Telemetry Transport). However, the existing sewage treatment system has a big problem in the precision of analyzing the water and electricity conditions of the industrial control equipment, and the fault data is too much, so that the database access is large and frequent, causing the database pressure to be too large and the performance to be reduced. SUMMARY
[0003] The present application aims to provide a method and device for detecting faults of industrial control equipment, network equipment and a medium, to solve the problem that the existing sewage treatment system has a big problem in the precision of analyzing the water and electricity conditions of the industrial control equipment, and the fault data is too much, so that the database access is large and frequent, causing the database pressure to be too large and the performance to be reduced.
[0004] To solve the above technical problems, the present application provides a method for detecting faults of industrial control equipment, wherein the method comprises:
[0005] obtaining first fault data of at least one industrial control equipment;
[0006] obtaining basic data of the at least one industrial control equipment;
[0007] obtaining second fault data of a target industrial control equipment according to the first fault data and the basic data.
[0008] Optionally, the method, wherein the obtaining second fault data of a target industrial control equipment according to the first fault data and the basic data comprises:
[0009] obtaining a fault duration according to the first fault data and the basic data of a first industrial control equipment, the first industrial control equipment being any one of the at least one industrial control equipment;
[0010] determining that a port corresponding to the first industrial control equipment has failed if the fault duration is greater than a maximum fault acceptance duration;
[0011] determining the first industrial control equipment as the target industrial control equipment;
[0012] determining the first fault data and the basic data of the target industrial control device as the second fault data of the target industrial control device.
[0013] Optionally, the method, wherein after the determining the first fault data and the basic data of the target industrial control device as the second fault data of the target industrial control device, the method further comprises:
[0014] writing the second fault data into a database.
[0015] Optionally, the method, wherein after the obtaining the second fault data of the target industrial control device, the method further comprises:
[0016] if the third fault data of the target industrial control device is not obtained within a preset interval duration, determining to stop updating the second fault data of the target industrial control device in the database;
[0017] the third fault data is different from the fault type indicated by the second fault data.
[0018] Optionally, the method, wherein the obtaining the second fault data of the target industrial control device according to the first fault data and the basic data further comprises:
[0019] if the fault duration is not greater than a maximum fault acceptance duration, determining that the port corresponding to the first industrial control device has not failed.
[0020] Optionally, the method, wherein the basic data comprises at least one of:
[0021] an international mobile equipment identity corresponding to the industrial control device;
[0022] an input port number;
[0023] an output port number;
[0024] a port opening time;
[0025] a port closing time;
[0026] a duration before port change.
[0027] Optionally, the method, wherein the first fault data comprises at least one of:
[0028] an international mobile equipment identity corresponding to the industrial control device;
[0029] a fault unique identification code;
[0030] a type of fault;
[0031] Fault discovery time.
[0032] To achieve the above object, the application provides a device for detecting faults of industrial control equipment, wherein the device comprises:
[0033] A first obtaining module is configured to obtain first fault data of at least one industrial control equipment.
[0034] A second obtaining module is configured to obtain basic data of the at least one industrial control equipment.
[0035] A third obtaining module is configured to obtain second fault data of a target industrial control equipment according to the first fault data and the basic data.
[0036] To achieve the above object, the application provides a network device for detecting faults of industrial control equipment, which comprises a memory, a transceiver and a processor.
[0037] The memory is configured to store a computer program.
[0038] The transceiver is configured to transceive data under the control of the processor.
[0039] The processor is configured to read the computer program in the memory and execute the method for detecting faults of industrial control equipment as described above.
[0040] To achieve the above object, the application provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the steps of the method as described above.
[0041] The above technical solution of the application has the following advantages:
[0042] In the above scheme, when the faults of the industrial control equipment of the sewage treatment system are detected, the recent fault data and the basic data of each industrial control equipment are analyzed to obtain fault data exceeding the production requirements, and the redundant historical data is reduced, so that the sewage treatment system has higher precision in analyzing the water and electricity conditions of the industrial control equipment, the fault data record is accurate, the database access pressure is reduced, and the database performance is improved. BRIEF DESCRIPTION OF DRAWINGS
[0043] Figure 1 The flowchart of the method for detecting faults of industrial control equipment according to the embodiment of the application is shown.
[0044] Figure 2 The detailed flowchart of the method for detecting faults of industrial control equipment according to the embodiment of the application is shown.
[0045] Figure 3 The schematic diagram of the device for detecting faults of industrial control equipment according to the embodiment of the application is shown. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0047] The present application aims at the problem that the precision of analyzing the water and electricity conditions of industrial control equipment in the prior art sewage treatment system is poor, and the fault data is recorded too much, so that the database access is large and frequent, and the database pressure is too large, and the performance is reduced. A method and device for detecting faults of industrial control equipment, network equipment and medium are provided.
[0048] As shown in Figure 1 The present application provides a method for detecting faults of industrial control equipment, wherein the method comprises:
[0049] Step S10, acquiring first fault data of at least one industrial control equipment;
[0050] Step S20, acquiring basic data of the at least one industrial control equipment;
[0051] Step S30, acquiring second fault data of a target industrial control equipment according to the first fault data and the basic data.
[0052] In this embodiment, when detecting faults of the industrial control equipment of the sewage treatment system, the latest fault data and basic data of each industrial control equipment are analyzed to obtain fault data exceeding the production requirements, and redundant historical data is reduced, so that the precision of analyzing the water and electricity conditions of the industrial control equipment of the sewage treatment system is higher, the fault data recording is accurate, the database access pressure is reduced, and the database performance is improved.
[0053] Optionally, in an implementation manner, the step S30 comprises:
[0054] According to the first fault data and the basic data of the first industrial control equipment, a fault duration is acquired, and the first industrial control equipment is any industrial control equipment in the at least one industrial control equipment;
[0055] In a case where the fault duration is greater than a maximum fault acceptable duration, it is determined that a port corresponding to the first industrial control equipment is faulty;
[0056] The first industrial control equipment is determined as the target industrial control equipment;
[0057] The first fault data and the basic data of the target industrial control device are determined as the second fault data of the target industrial control device.
[0058] In this embodiment, the normal or abnormal running time of the port of the industrial control device, the opening time t1 of the port, the closing time t2, and the running time t2-t1 are sent at the time t1. The embodiment of the application determines whether the data at the time is within the fault range according to all historical data. Assuming that the fault occurs at time x, if the fault occurs before the corresponding port of the industrial control device is opened, it is considered that the fault occurs within t time after the fault occurs at time x, the fault duration is t2-t1, and the fault duration is not calculated from the fault occurrence time. Compared with the water and electricity usage obtained by calculating the fault duration from the fault discovery time in the prior art, the water and electricity usage is more accurate.
[0059] Optionally, in an implementation, after the step S30, the method further includes:
[0060] The second fault data is written into a database.
[0061] In this embodiment, in the basic data, if a piece of data is port closing time-port duration-maximum fault acceptance duration<fault time<port closing time, that is, two conditions are met: first, port closing time-port duration-maximum fault acceptance duration<fault time; second, fault time<port closing time, the port is considered to be in a fault state and is recorded in the database. After determining the second fault data of the target industrial control device, the corresponding data needs to be recorded in the database. Compared with the prior art of recording fault information from the fault discovery time, the embodiment accurately records the fault data after determining that the port of the industrial control device is in a fault state and the port is opened for a period of time, thereby reducing the pressure on the database, greatly improving the data processing speed, and optimizing the use of memory through confluence calculation, improving the efficiency of data processing.
[0062] Optionally, in an implementation, after the step S30, the method further includes:
[0063] If the third fault data of the target industrial control device is not acquired within a preset interval, it is determined to stop updating the second fault data of the target industrial control device in the database.
[0064] The third fault data is different from the fault type indicated by the second fault data.
[0065] In the embodiment, the target industrial control device does not appear the third fault data different from the fault type of the second fault data within the preset interval duration, and thus the second fault data is not recorded in the database any more, and the fault is considered to be self-eliminated, and the data is normal. When the second fault data of the target industrial control device does not affect the use of the device, and the third fault data does not appear until the preset interval duration is exceeded in a case that the user does not handle for a long time, the second fault data of the target industrial control device in the database is not updated, the data amount of the database is reduced, the pressure of the database is reduced, and the data processing speed is greatly improved.
[0066] Optionally, in an implementation, the step S30 further includes:
[0067] In a case that the fault duration is not greater than the maximum fault acceptance duration, it is determined that the port corresponding to the first industrial control device does not occur fault.
[0068] In the embodiment, in a case that the fault duration is within the acceptable range, it is determined that no fault occurs, and the fault information is not recorded, and the database pressure is reduced.
[0069] Optionally, in an implementation, the basic data includes at least one of the following:
[0070] An international mobile equipment identity corresponding to the industrial control device;
[0071] An input port number;
[0072] An output port number;
[0073] A port opening time;
[0074] A port closing time;
[0075] A port change duration.
[0076] In the embodiment, the port opening or the port closing both belong to the port change, and the port change duration is the time between two port changes.
[0077] Optionally, in an implementation, the first fault data includes at least one of the following:
[0078] An international mobile equipment identity corresponding to the industrial control device;
[0079] A fault unique identification code;
[0080] A fault type;
[0081] A fault discovery time.
[0082] In the embodiment, the first fault data packet is used for the basic data calculation, wherein the fault unique identification code is a fault id, and the type of the fault is a type of error of arrangement combination of opening and closing states of the plurality of ports corresponding to the at least one industrial control device.
[0083] As shown in Figure 2 The method of the embodiment of the application is applied to an industrial control device fault detection device (also referred to as a stream computing module) in an industrial control device fault detection system. The industrial control device fault detection system further includes a fault analysis module and a summary module. The fault analysis module obtains the basic data in combination with the equipment process execution situation, analyzes states in which the plurality of ports corresponding to the at least one industrial control device should be in under normal conditions, and summarizes port states that should not appear into a rule table. In combination with historical analysis records, water levels and float ball states are obtained. The summary state information is entered into the rule table for process calculation. When the port state satisfies a rule, an alarm state is triggered, that is, a fault occurs. In combination with the last pushed alarm time record alarm interval, fault data including an international mobile equipment identification code corresponding to the industrial control device, a fault unique identification code, a type of the fault, and a fault discovery time are written into a database. Figure 2 The stream computing module obtains the latest fault situation of the equipment, that is, the first fault data, by analyzing the fault data obtained in the fault analysis module. The stream computing module obtains the first fault data and the basic data, and calculates and analyzes the first fault data and the basic data, to obtain the second fault data of the target industrial control device. The fault duration is calculated according to the first fault data and the basic data. In a case where the fault duration is greater than the maximum fault acceptance duration, it is determined that the port has a fault, and the determination is recorded in the database. In a case where no third fault data different from the type of the second fault data appears within the preset interval duration, the second fault data is not recorded in the database any more, and the fault is considered to be self-eliminated, and the data is normal. The stream computing module sends the second fault data recorded in real time to the summary module. The summary module re-summarizes the second fault data. For example, the normal execution time of a port is calculated. If there is no fault, the normal execution time is directly recorded. If there is a fault, if the port closing time- the duration before the port change- the specified fault acceptance duration < the fault time (usually, the specified fault acceptance duration < the maximum fault acceptance duration, which is a parameter to be referred to by a user. In this case, the normal and abnormal use time is summarized), the abnormal data is considered, and the abnormal use time is recorded. Otherwise, the data is accepted, and the normal use time is recorded. The data is combined with time and other information, and is drawn into a graph, and is presented to the user.
[0084] In summary, the embodiment of the present application can obtain second fault data of power and water consumption that actually affect the port of the industrial control equipment by combining the first fault data and basic data of the industrial control equipment for real-time analysis, and record the second fault data. Not only greatly improves the speed of data processing, can quickly respond and handle abnormal situations. And combined with fault analysis and port execution situation for high-precision water and electricity consumption analysis, compared with the prior art system relying on hardware fault direct report, can more accurately judge the running state and water and electricity consumption of the industrial control equipment. Not only can save resources, reduce energy consumption, but also help protect the environment and achieve sustainable development.
[0085] As shown in Figure 3 in order to achieve the above purpose, the present application provides a kind of industrial control equipment fault detection device, wherein, the device includes:
[0086] first acquisition module 01, for obtaining the first fault data of at least one industrial control equipment;
[0087] second acquisition module 02, for obtaining the basic data of the at least one industrial control equipment;
[0088] third acquisition module 03, for obtaining the second fault data of target industrial control equipment according to the first fault data and the basic data.
[0089] Optionally, the device, wherein the third acquisition module 03 includes:
[0090] first acquisition unit, for obtaining fault duration according to the first fault data and the basic data of first industrial control equipment, the first industrial control equipment is any industrial control equipment in the at least one industrial control equipment;
[0091] first determination unit, for determining that the port corresponding to the first industrial control equipment fails in the case where the fault duration is greater than the maximum fault acceptance duration;
[0092] second determination unit, for determining the first industrial control equipment as the target industrial control equipment;
[0093] third determination unit, for determining the first fault data and the basic data of the target industrial control equipment as the second fault data of the target industrial control equipment.
[0094] Optionally, the device, wherein, after the third acquisition module 03, the device further includes:
[0095] first processing module, for writing the second fault data into database.
[0096] Optionally, the device, wherein, after the third acquisition module 03, the device further includes:
[0097] The first determining module is configured to determine to stop updating the second fault data of the target industrial control device in the database if third fault data of the target industrial control device is not acquired within a preset interval duration.
[0098] The third fault data is different from the fault type indicated by the second fault data.
[0099] Optionally, the apparatus, wherein the third acquiring module 03 further comprises:
[0100] The fourth determining unit is configured to determine that the port corresponding to the first industrial control device is not faulty if the fault duration is not greater than a maximum fault acceptance duration.
[0101] Optionally, the apparatus, wherein the basic data comprises at least one of the following:
[0102] An international mobile equipment identity corresponding to the industrial control device;
[0103] An input port number;
[0104] An output port number;
[0105] A port opening time;
[0106] A port closing time;
[0107] A duration before port change.
[0108] Optionally, the apparatus, wherein the first fault data comprises at least one of the following:
[0109] An international mobile equipment identity corresponding to the industrial control device;
[0110] A fault unique identification code;
[0111] A fault type;
[0112] A fault discovery time.
[0113] To achieve the above purpose, the present application provides a network device for detecting fault of industrial control device, comprising a memory, a transceiver and a processor:
[0114] The memory is configured to store computer programs;
[0115] The transceiver is configured to transceive data under the control of the processor;
[0116] The processor is configured to read the computer programs in the memory and execute the industrial control device fault detection method as described above.
[0117] In the embodiment, after recording the second fault data of the target industrial control device, the second fault data is summarized again by the summarizing module, such as calculating the normal execution time of a port: if there is no fault, the normal working time is directly counted. If there is a fault, if the port closing time-port duration-designated fault acceptance duration<fault time (usually: designated fault acceptance duration<maximum fault acceptance duration, which is a parameter that the user wants to refer to. Here, the normal and abnormal time is summarized), it is regarded as abnormal data, and the abnormal working time is counted; otherwise, the data is accepted, and the normal working time is counted. The data is combined with time and other information to draw a graph and display it to the user.
[0118] In order to achieve the above purpose, the application provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to realize the steps of the method.
[0119] It should be noted that the above device provided by the embodiments of the present application can realize all method steps realized by the method embodiments and achieve the same technical effects, and the same parts and beneficial effects of the method embodiments in the embodiments will not be described in detail.
[0120] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.
Claims
1. A method for fault detection in industrial control equipment, characterized in that, The method includes: Acquire first fault data of at least one industrial control device; wherein, the first fault data is the data of the most recent fault of the at least one industrial control device, and the first fault data includes the International Mobile Equipment Identity (IMEI) corresponding to the at least one industrial control device, the unique fault identification code, the type of fault, and the time of fault discovery; Acquire basic data of the at least one industrial control device; wherein, the basic data includes the International Mobile Equipment Identity (IMEI) corresponding to the at least one industrial control device, the input port number, the output port number, the port opening time, the port closing time, and the duration before the port change; The first fault data and the basic data are combined and analyzed to obtain the second fault data of the target industrial control equipment. The second fault data includes the first fault data and the basic data of the target industrial control equipment, which is an industrial control equipment with a port failure. A port failure is determined when the fault duration obtained through the combined analysis of the first fault data and the basic data is greater than the maximum fault reception duration. The second fault data is fault data affecting the water and electricity consumption of the port of the target industrial control equipment. The method further includes: The determined second fault data is written to the database in real time, and if no third fault data of a different type than the second fault data appears within a preset interval, the writing of the second fault data to the database is stopped. The identified second fault data is summarized in real time, and based on the summary results, the normal usage time and abnormal usage time of the port are displayed in the form of a graph. Based on the normal usage time and the abnormal usage time, the water and electricity consumption of the port under normal and abnormal usage states is analyzed.
2. The method according to claim 1, characterized in that, The step of obtaining the second fault data of the target industrial control equipment based on the first fault data and the basic data includes: The fault duration is obtained based on the first fault data and the basic data of the first industrial control device, wherein the first industrial control device is any one of the at least one industrial control devices. If the fault duration exceeds the maximum fault acceptance duration, it is determined that the port corresponding to the first industrial control equipment has failed. The first industrial control device is identified as the target industrial control device; The first fault data and the basic data of the target industrial control equipment are determined as the second fault data of the target industrial control equipment.
3. The method according to claim 2, characterized in that, The step of obtaining the second fault data of the target industrial control equipment based on the first fault data and the basic data further includes: If the fault duration is not greater than the maximum fault acceptance duration, it is determined that the port corresponding to the first industrial control equipment has not experienced a fault.
4. A device for fault detection in industrial control equipment, characterized in that, The device includes: The first acquisition module is used to acquire first fault data of at least one industrial control device; wherein, the first fault data is the data of the most recent fault status of the at least one industrial control device, and the first fault data includes the International Mobile Equipment Identity (IMEI) corresponding to the at least one industrial control device, the unique fault identification code, the type of fault, and the time of fault discovery; The second acquisition module is used to acquire basic data of the at least one industrial control device; wherein, the basic data includes the International Mobile Equipment Identity (IMEI) corresponding to the at least one industrial control device, the input port number, the output port number, the port opening time, the port closing time, and the duration before the port change; The third acquisition module is used to perform combined calculation and analysis on the first fault data and the basic data to acquire the second fault data of the target industrial control equipment; wherein, the second fault data includes the first fault data and the basic data of the target industrial control equipment, the target industrial control equipment is an industrial control equipment with a port failure, and the port failure is determined to be caused when the fault duration obtained by combined analysis of the first fault data and the basic data is greater than the maximum fault reception duration; the second fault data is fault data affecting the water and electricity consumption of the port of the target industrial control equipment. The device is also used for: The determined second fault data is written to the database in real time, and if no third fault data of a different type than the second fault data appears within a preset interval, the writing of the second fault data to the database is stopped; the determined second fault data is summarized in real time, and the normal usage time and abnormal usage time of the port are displayed in the form of a graph based on the summary results; Based on the normal usage time and the abnormal usage time, the water and electricity consumption of the port under normal and abnormal usage states is analyzed.
5. A network device for fault detection in industrial control equipment, characterized in that, Includes memory, transceiver, and processor: Memory, used to store computer programs; Transceiver, used to send and receive data under the control of the processor; A processor is configured to read a computer program from the memory and execute the industrial control equipment fault detection method as described in any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Fault diagnosis and analysis method and system for industrial-control-device automation system
CN103914057A
Equipment patrolling management system and equipment patrolling method for sewage treatment plant
CN107527396A