Fault diagnosis method and device based on signal deviation
By filtering the intermediate value as the deviation comparison value in the triple safety instrument system, calculating and storing the deviation value, and determining the channel fault results in combination with the number of fault filtering times, the problem of insufficient deviation diagnosis accuracy in the prior art is solved, and higher diagnostic accuracy is achieved.
Patent Information
- Application Number
- CN202411877280.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-28
AI Technical Summary
The existing deviation diagnosis methods are difficult to ensure the accuracy of the diagnosis when the burst signal interference, periodic signal interference, or the signal range is small and the interference signal is large.
By obtaining all channel sampling data of the triple safety instrument system, filtering the intermediate value as the deviation comparison value, and calculating the difference between the sample data of each channel and the deviation comparison value to obtain the deviation value. When the absolute value of the deviation value is not greater than the anti-interference requirement threshold, it is stored in the cache area, and the number of fault filtering times is calculated based on the deviation value and diagnostic threshold in the cache area to determine the fault result of the channel.
This method accurately identifies periodic interference by eliminating abnormal data affected by strong interference, which improves the accuracy of deviation diagnosis, especially when the signal itself has a small range and a large interference signal.
Smart Images

Figure CN119719857A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a fault diagnosis method and device based on signal deviation. Background Art
[0002] In the field of industrial automation, triple safety instrument systems are widely used to ensure the safety and reliability of the system. In order to ensure the accuracy and validity of analog data, it is usually necessary to diagnose the deviation of the three-channel data and confirm its validity before voting on the three-channel data.
[0003] The existing deviation diagnosis method usually obtains the data of three channels first, takes the median value as the reference value, and then calculates the deviation between the three-channel data and the reference value to obtain the deviation value. When the deviation value is greater than the set fault threshold and exceeds the specified fault filtering times, it is judged as a fault and the data is invalid; otherwise, the data is judged to be normal and valid. However, in the actual application of safety instrument systems, sudden signal interference, periodic signal interference, or the signal itself has a small range and the interference signal is large, these factors will affect the accuracy of deviation diagnosis.
[0004] Therefore, how to improve the accuracy of deviation diagnosis has become an urgent problem to be solved in this field. Summary of the invention
[0005] The present application provides a fault diagnosis method and device based on signal deviation, aiming to improve the accuracy of deviation diagnosis.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] A fault diagnosis method based on signal deviation, comprising:
[0008] Acquire sampling data of all channels in the triple safety instrument system; wherein each of the sampling data contains sampling signals of all channels;
[0009] Filter out the middle value from the sampling data of all channels and mark it as the deviation comparison value;
[0010] For each of the sampling data of the channel, calculating the difference between the sampling data of the channel and the deviation comparison value to obtain a deviation value;
[0011] When the absolute value of the deviation value is not greater than the anti-interference requirement threshold, storing the deviation value in a buffer area;
[0012] Calculating the number of fault filtering times according to all deviation values and deviation diagnosis thresholds in the buffer area;
[0013] According to the fault filtering times, a fault result of the channel corresponding to the deviation value is determined.
[0014] Optionally, after calculating the difference between the sampled data and the deviation comparison value for each sampled data and obtaining the deviation value, the method further includes:
[0015] When the absolute value of the deviation value is greater than the anti-interference requirement threshold, storing the deviation value in a temporary buffer area;
[0016] Detecting whether the absolute values of the deviation values within the anti-interference requirement time are all greater than the anti-interference requirement threshold;
[0017] If the absolute value of the deviation value is not greater than the anti-interference requirement threshold within the anti-interference requirement time, deleting all deviation values in the temporary buffer area and storing the deviation values in the buffer area;
[0018] If the absolute values of the deviation values within the anti-interference requirement time are all greater than the anti-interference requirement threshold, all the deviation values in the temporary buffer area are stored in the buffer area.
[0019] Optionally, the calculating the number of fault filtering times according to all deviation values and deviation diagnosis thresholds in the cache area includes:
[0020] When the storage time of the deviation value is a preset time, determining whether the number of deviation values in the buffer area is a preset number;
[0021] If the number of the deviation values in the buffer area is the preset number, calculating the average value of all the deviation values in the buffer area;
[0022] Determining whether the average value of the deviation values is greater than a deviation diagnosis threshold;
[0023] If the average value of the deviation value is greater than the deviation diagnosis threshold, the current fault filtering times is added to 1 to obtain the fault filtering times;
[0024] If the average value of the deviation values is not greater than the deviation diagnosis threshold, the current fault filtering times is subtracted from 1 to obtain the fault filtering times.
[0025] Optionally, determining the fault result of the channel corresponding to the deviation value according to the fault filtering times includes:
[0026] When the average value of the deviation value is greater than the deviation diagnosis threshold, detecting whether the fault filtering times is greater than a preset fault filtering times;
[0027] If the fault filtering times are greater than the preset fault filtering times, the fault result of the channel corresponding to the deviation value is determined to be a channel fault.
[0028] Optionally, determining the fault result of the channel corresponding to the deviation value according to the fault filtering times includes:
[0029] When the average value of the deviation value is not greater than the deviation diagnosis threshold, detecting whether the fault filtering times is 0;
[0030] If the fault filtering times is 0, the fault result of the channel corresponding to the deviation value is determined to be that the channel has no fault.
[0031] A fault diagnosis device based on signal deviation, comprising:
[0032] An acquisition unit, used to acquire sampling data of all channels in the triple safety instrument system; wherein each of the sampling data contains sampling signals of all channels;
[0033] A screening unit, used for screening out middle values from the sampling data of all channels and marking them as deviation comparison values;
[0034] A first calculation unit, configured to calculate, for each of the sampling data of the channel, a difference between the sampling data of the channel and the deviation comparison value to obtain a deviation value;
[0035] A first storage unit, configured to store the deviation value in a buffer area when the absolute value of the deviation value is not greater than an anti-interference requirement threshold;
[0036] A second calculation unit, configured to calculate the number of fault filtering times according to all deviation values and deviation diagnosis thresholds in the buffer area;
[0037] A determination unit is used to determine the fault result of the channel corresponding to the deviation value according to the fault filtering times.
[0038] Optionally, also include:
[0039] A second storage unit, configured to store the deviation value in a temporary buffer area when the absolute value of the deviation value is greater than the anti-interference requirement threshold;
[0040] A detection unit, used to detect whether the absolute values of the deviation values are all greater than the anti-interference requirement threshold within the anti-interference requirement time;
[0041] a deleting unit, configured to delete all deviation values in the temporary buffer and store the deviation values in the buffer if the absolute value of the deviation value is not greater than the anti-interference requirement threshold within the anti-interference requirement time;
[0042] The third storage unit is configured to store all the deviation values in the temporary buffer into the buffer if the absolute values of the deviation values are all greater than the anti-interference requirement threshold within the anti-interference requirement time.
[0043] Optionally, the second computing unit is specifically configured to:
[0044] When the storage time of the deviation value is a preset time, determining whether the number of deviation values in the buffer area is a preset number;
[0045] If the number of the deviation values in the buffer area is the preset number, calculating the average value of all the deviation values in the buffer area;
[0046] Determining whether the average value of the deviation values is greater than a deviation diagnosis threshold;
[0047] If the average value of the deviation value is greater than the deviation diagnosis threshold, the current fault filtering times is added to 1 to obtain the fault filtering times;
[0048] If the average value of the deviation values is not greater than the deviation diagnosis threshold, the current fault filtering times is subtracted from 1 to obtain the fault filtering times.
[0049] Optionally, the determining unit is specifically configured to:
[0050] When the average value of the deviation value is greater than the deviation diagnosis threshold, detecting whether the fault filtering times is greater than a preset fault filtering times;
[0051] If the fault filtering times are greater than the preset fault filtering times, the fault result of the channel corresponding to the deviation value is determined to be a channel fault.
[0052] Optionally, the determining unit is specifically configured to:
[0053] When the average value of the deviation value is not greater than the deviation diagnosis threshold, detecting whether the fault filtering times is 0;
[0054] If the fault filtering times is 0, the fault result of the channel corresponding to the deviation value is determined to be that the channel has no fault.
[0055] The technical solution provided by the present application obtains the sampling data of all channels in the triple safety instrument system; selects the intermediate value from the sampling data of all channels and marks it as the deviation comparison value; for the sampling data of each channel, calculates the difference between the sampling data of the channel and the deviation comparison value to obtain the deviation value; when the absolute value of the deviation value is not greater than the anti-interference requirement threshold, stores the deviation value in the cache; calculates the number of fault filtering times according to all the deviation values and the deviation diagnosis threshold in the cache; determines the fault result of the channel corresponding to the deviation value according to the number of fault filtering times. By selecting the intermediate value as the deviation comparison value and calculating the deviation value of each channel, it will be stored in the cache only when the absolute value of the deviation value is less than the anti-interference requirement threshold. By counting the number of fault filtering times, periodic interference can be effectively identified, thereby improving the accuracy of deviation diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A flowchart of a fault diagnosis method based on signal deviation provided in an embodiment of the present application;
[0058] Figure 2 A flowchart of a method for storing a deviation value provided in an embodiment of the present application;
[0059] Figure 3 A flowchart of a method for obtaining the number of fault filtering times provided in an embodiment of the present application;
[0060] Figure 4 A schematic diagram of the architecture of a fault diagnosis device based on signal deviation provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0063] like Figure 1 As shown, it is a flowchart of a fault diagnosis method based on signal deviation provided in an embodiment of the present application, comprising the following steps:
[0064] S101: Acquire sampling data of all channels in the triple safety instrument system.
[0065] Each sampling data contains the sampling signals of all channels.
[0066] It is understandable that the three channels in the triple system (usually referring to three independent processing or data acquisition channels) can access each other and obtain the sampled data of other channels. In other words, each channel not only obtains the sampled data it is responsible for, but also obtains the sampled data of the other two channels, that is, the sampled data of each channel contains the sampled signals of multiple channels.
[0067] S102: Filter out the middle value from the sampled data of all channels and mark it as the deviation comparison value.
[0068] It is understandable that the middle value is selected as the final result from the data collected from all channels. Specifically, assuming that there are multiple channels in the system (for example, three channels), each channel will collect a data value. Then, these data values are sorted by size, and the middle value refers to the data in the middle position after sorting. If there are three data values, the second data after sorting is the middle value. If there are more channels, the value in the middle is taken after sorting.
[0069] For example, there are three channels, the sampling data of the first channel is 5mA, the sampling data of the second channel is 6mA, and the sampling data of the third channel is 6.5mA. The middle value of 6mA is screened out from the sampling data of all channels and marked as the deviation comparison value.
[0070] S103: For the sampling data of each channel, calculate the difference between the sampling data of the channel and the deviation comparison value to obtain the deviation value.
[0071] The specific expression of the difference between the sampling data of the calculation channel and the deviation comparison value is shown in formula (1).
[0072] Channel sampling data - deviation comparison value = deviation value (1)
[0073] Optionally, after step S103, when the absolute value of the deviation value is greater than the anti-interference requirement threshold, the deviation value is stored in a temporary buffer area, and the deviation data that may have interference or abnormality is temporarily stored in the temporary buffer area for further analysis or processing. Therefore, in another embodiment of the present application, a method for storing deviation values is provided, such as Figure 2 As shown, the following steps are included:
[0074] S201: When the absolute value of the deviation value is greater than the anti-interference requirement threshold, the deviation value is stored in a temporary buffer area.
[0075] Optionally, the anti-interference requirement threshold includes but is not limited to: 4% of the full scale of the sampling signal.
[0076] For example, if the full scale of the sampling signal is 20mA and the anti-interference threshold is 4% of the full scale, then the anti-interference threshold is 0.8mA.
[0077] S202: Detect whether the absolute values of the deviation values within the anti-interference requirement time are all greater than the anti-interference requirement threshold.
[0078] If the absolute value of the deviation value within the anti-interference requirement time is not greater than the anti-interference requirement threshold, step S203 is executed; if the absolute value of the deviation value within the anti-interference requirement time is greater than the anti-interference requirement threshold, step S204 is executed.
[0079] Optionally, the anti-interference required time = sampling filter time / sampling period (ie, the number of anti-interference filters). In the present application, the sampling period may be 5 times, or may be the sampling period calculated in step S203 or S204.
[0080] Specifically, assuming that the absolute value of the deviation value is 1 and the anti-interference requirement threshold is 0.8, detect whether the absolute value of the deviation value within the anti-interference requirement time is greater than the anti-interference requirement threshold. Obviously, the absolute value of the deviation value within the anti-interference requirement time is greater than the anti-interference requirement threshold. Therefore, continue to execute step S204.
[0081] It should be noted that since safety systems are usually used in industrial environments, and there may be common-mode interference (i.e., signal interference) at these sites, the sampling signal may be superimposed by the interference signal, causing the sampling data to change, so the deviation value will also fluctuate. In this case, it is necessary to detect whether the absolute value of the deviation value is always greater than the set anti-interference threshold within the anti-interference required time. Through such detection, the influence of interference signals on deviation diagnosis can be effectively filtered out. Because in the deviation diagnosis process, the average value is usually calculated, and if there is a large interference signal, the subsequent average value will be pulled up, thereby causing misdiagnosis.
[0082] S203: Delete all deviation values in the temporary buffer area, and store the deviation values in the buffer area.
[0083] It can be understood that if the absolute value of the deviation value within the anti-interference requirement time is not greater than the anti-interference requirement threshold, the current anti-interference filtering times is set to 0, and the cause of the deviation is determined to be due to interference. At this time, all deviation values in the temporary cache area are cleared and the deviation values are stored in the cache area.
[0084] S204: All deviation values in the temporary buffer are stored in the buffer.
[0085] It can be understood that if the absolute value of the deviation value within the anti-interference requirement time is greater than the anti-interference requirement threshold, the current anti-interference filtering number is added to 1 to obtain the anti-interference filtering number, and the cause of the deviation is determined to be a real deviation. At this time, all deviation values in the temporary buffer area are stored in the buffer area.
[0086] S104: When the absolute value of the deviation value is not greater than the anti-interference requirement threshold, the deviation value is stored in a buffer area.
[0087] It is understandable that the deviation value may be caused by an interference signal. If used directly, it may cause a false alarm due to the interference signal. In order to avoid false alarms, the deviation value is first stored in a buffer area.
[0088] S105: Calculate the number of fault filtering times according to all deviation values and deviation diagnosis thresholds in the buffer area.
[0089] It can be understood that the fault filtering times are calculated based on all the deviation values and the deviation diagnosis threshold in the cache area. Specifically, it is determined whether all the deviation values in the cache area meet the preset requirements. If all the deviation values in the cache area meet the preset requirements, the average value of all the deviation values in the cache area is calculated. The deviation diagnosis threshold is calculated based on the average value of all the deviation values and the deviation diagnosis threshold.
[0090] Optionally, in another embodiment of the present application, the specific implementation of step S105 is as follows: Figure 3 As shown, the following steps are included:
[0091] S301: When the storage time of the deviation value is a preset time, determining whether the number of deviation values in the buffer area is a preset number.
[0092] If the number of deviation values in the buffer area is the preset number, step S302 is executed.
[0093] Optionally, the preset time includes but is not limited to 200 sampling cycles, and the preset number is the maximum cache number of the cache area.
[0094] It can be understood that, judging whether the number of deviation values in the cache area is a preset number, that is, judging whether the cache quantity in the cache area reaches the storage upper limit, if the cache quantity reaches the cache upper limit, then continue to execute step S302, if the cache quantity does not reach the cache upper limit, then return to execute step S101 until the cache quantity in the cache area reaches the upper limit.
[0095] S302: Calculate the average value of all deviation values in the buffer area.
[0096] It can be understood that calculating the average value of all deviation values in the buffer area is to calculate the sum of all deviation values and divide the sum by the number of deviation values to obtain the average value of the deviation values.
[0097] S303: Determine whether the average value of the deviation values is greater than a deviation diagnosis threshold.
[0098] If the average value of the deviation values is greater than the deviation diagnosis threshold, step S304 is executed; if the average value of the deviation values is not greater than the deviation diagnosis threshold, step S305 is executed.
[0099] Optionally, the deviation requirement threshold includes but is not limited to: 2% of the full scale of the sampling signal.
[0100] S304: Add the current fault filtering times to 1 to obtain the fault filtering times.
[0101] S305: Subtract the current fault filtering times from 1 to obtain the fault filtering times.
[0102] S106: Determine the fault result of the channel corresponding to the deviation value according to the fault filtering times.
[0103] The fault results of the channel corresponding to the deviation value include: the channel fails and the channel does not fail.
[0104] Optionally, in another embodiment of the present application, a specific implementation of step S106 includes:
[0105] When the average value of the deviation value is greater than the deviation diagnosis threshold, it is detected whether the fault filtering times is greater than the preset fault filtering times.
[0106] Specifically, assuming that the number of fault filtering times is 4 times and the preset number of fault filtering times is 3 times, it is detected whether the number of fault filtering times is greater than the preset number of fault filtering times. Obviously, the number of fault filtering times is greater than the preset number of fault filtering times. Therefore, the fault result of the channel corresponding to the deviation value is determined to be a channel fault.
[0107] Optionally, the preset fault filtering times can be set according to actual conditions and is not specifically limited here.
[0108] It should be noted that, when the fault filtering number is not greater than the preset fault filtering number, the process returns to step S101 until the fault filtering number is greater than the preset fault filtering number.
[0109] If the fault filtering times are greater than the preset fault filtering times, the fault result of the channel corresponding to the deviation value is determined to be a channel fault.
[0110] It can be understood that when the channel corresponding to the deviation value fails, it means that the sampling data of the channel is abnormal and invalid. At this time, the sampling data of the invalid channel will be isolated, and the remaining two channels will be downgraded to duplex. The data of the duplex system generally takes the lower value.
[0111] Optionally, in another embodiment of the present application, a specific implementation of step S106 includes:
[0112] When the average value of the deviation value is not greater than the deviation diagnosis threshold, it is detected whether the fault filtering times is 0.
[0113] It should be noted that it is detected whether the fault filtering times is 0. If the fault filtering times is not 0, the process returns to step S101 until the fault filtering times is 0.
[0114] If the fault filtering times is 0, the fault result of the channel corresponding to the deviation value is determined to be that the channel has no fault.
[0115] It should be noted that when the channel corresponding to the deviation value has no fault, it means that the sampling data of the channel is normal at this time, so the sampling data is valid.
[0116] In summary, the middle value is selected as the deviation comparison value, and the deviation value of each channel is calculated and compared with the deviation comparison value. When the absolute value of the deviation value is not greater than the anti-interference requirement threshold, it will be stored in the cache area, which helps to eliminate abnormal data affected by strong interference. By counting the number of fault filtering times of the deviation value in the cache area, periodic interference can be accurately identified and normal fluctuations can be distinguished from faults, thereby improving the accuracy of deviation diagnosis when the signal itself has a small range and a large interference signal.
[0117] like Figure 4 As shown, it is a schematic diagram of the architecture of a fault diagnosis device based on signal deviation provided in an embodiment of the present application, and the fault diagnosis device includes: an acquisition unit 100, a screening unit 200, a first calculation unit 300, a first storage unit 400, a second calculation unit 500 and a determination unit 600.
[0118] The acquisition unit 100 is used to acquire the sampling data of all channels in the triple safety instrument system; wherein each sampling data contains the sampling signals of all channels.
[0119] The screening unit 200 is used to screen out the middle value from the sampled data of all channels and mark it as the deviation comparison value.
[0120] The first calculation unit 300 is used to calculate the difference between the sampling data of each channel and the deviation comparison value to obtain the deviation value.
[0121] The first storage unit 400 is used to store the deviation value in a buffer area when the absolute value of the deviation value is not greater than the anti-interference requirement threshold.
[0122] The second calculation unit 500 is used to calculate the fault filtering times according to all deviation values and deviation diagnosis thresholds in the buffer area.
[0123] The second calculation unit 500 is specifically used for: when the storage time of the deviation value is a preset time, determining whether the number of deviation values in the cache is a preset number; if the number of deviation values in the cache is a preset number, calculating the average value of all deviation values in the cache; determining whether the average value of the deviation value is greater than the deviation diagnosis threshold; if the average value of the deviation value is greater than the deviation diagnosis threshold, adding 1 to the current fault filtering number to obtain the fault filtering number; if the average value of the deviation value is not greater than the deviation diagnosis threshold, subtracting 1 from the current fault filtering number to obtain the fault filtering number.
[0124] The determination unit 600 is used to determine the fault result of the channel corresponding to the deviation value according to the fault filtering times.
[0125] The determination unit 600 is specifically used to: when the average value of the deviation value is greater than the deviation diagnosis threshold, detect whether the fault filtering times are greater than the preset fault filtering times; if the fault filtering times are greater than the preset fault filtering times, determine that the fault result of the channel corresponding to the deviation value is that the channel has a fault.
[0126] The determination unit 600 is specifically used to: when the average value of the deviation value is not greater than the deviation diagnosis threshold, detect whether the fault filtering times is 0; if the fault filtering times is 0, determine that the fault result of the channel corresponding to the deviation value is that the channel has no fault.
[0127] In summary, the middle value is selected as the deviation comparison value, and the deviation value of each channel is calculated and compared with the deviation comparison value. When the absolute value of the deviation value is not greater than the anti-interference requirement threshold, it will be stored in the cache area, which helps to eliminate abnormal data affected by strong interference. By counting the number of fault filtering times of the deviation value in the cache area, periodic interference can be accurately identified and normal fluctuations can be distinguished from faults, thereby improving the accuracy of deviation diagnosis when the signal itself has a small range and a large interference signal.
[0128] Preferably, combined Figure 4 According to the content shown, the fault diagnosis device also includes: a second storage unit, a detection unit, a deletion unit and a third storage unit.
[0129] The second storage unit is used to store the deviation value in a temporary buffer area when the absolute value of the deviation value is greater than the anti-interference requirement threshold.
[0130] The detection unit is used to detect whether the absolute values of the deviation values within the anti-interference requirement time are all greater than the anti-interference requirement threshold.
[0131] The deleting unit is used to delete all deviation values in the temporary buffer area and store the deviation values in the buffer area if the absolute value of the deviation value is not greater than the anti-interference requirement threshold within the anti-interference requirement time.
[0132] The third storage unit is used to store all the deviation values in the temporary buffer area in the buffer area if the absolute values of the deviation values in the anti-interference requirement time are all greater than the anti-interference requirement threshold.
[0133] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0134] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0135] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A fault diagnosis method based on signal deviation, characterized in that: include: Acquire sampling data of all channels in the triple safety instrument system; wherein each of the sampling data contains sampling signals of all channels; Filter out the middle value from the sampling data of all channels and mark it as the deviation comparison value; For each of the sampling data of the channel, calculating the difference between the sampling data of the channel and the deviation comparison value to obtain a deviation value; When the absolute value of the deviation value is not greater than the anti-interference requirement threshold, storing the deviation value in a buffer area; Calculating the number of fault filtering times according to all deviation values and deviation diagnosis thresholds in the buffer area; According to the fault filtering times, a fault result of the channel corresponding to the deviation value is determined.
2. The method according to claim 1, characterized in that For each of the sampled data, after calculating the difference between the sampled data and the deviation comparison value to obtain the deviation value, the method further comprises: When the absolute value of the deviation value is greater than the anti-interference requirement threshold, storing the deviation value in a temporary buffer area; Detecting whether the absolute values of the deviation values within the anti-interference requirement time are all greater than the anti-interference requirement threshold; If the absolute value of the deviation value is not greater than the anti-interference requirement threshold within the anti-interference requirement time, deleting all deviation values in the temporary buffer area and storing the deviation values in the buffer area; If the absolute values of the deviation values within the anti-interference requirement time are all greater than the anti-interference requirement threshold, all the deviation values in the temporary buffer area are stored in the buffer area.
3. The method according to claim 1, characterized in that The calculating the number of fault filtering times according to all the deviation values and the deviation diagnosis threshold in the buffer area includes: When the storage time of the deviation value is a preset time, determining whether the number of deviation values in the buffer area is a preset number; If the number of the deviation values in the buffer area is the preset number, calculating the average value of all the deviation values in the buffer area; Determining whether the average value of the deviation values is greater than a deviation diagnosis threshold; If the average value of the deviation value is greater than the deviation diagnosis threshold, the current fault filtering times is added to 1 to obtain the fault filtering times; If the average value of the deviation values is not greater than the deviation diagnosis threshold, the current fault filtering times is subtracted from 1 to obtain the fault filtering times.
4. The method according to claim 3, characterized in that The determining, according to the fault filtering times, the fault result of the channel corresponding to the deviation value comprises: When the average value of the deviation value is greater than the deviation diagnosis threshold, detecting whether the fault filtering times is greater than a preset fault filtering times; If the fault filtering times are greater than the preset fault filtering times, the fault result of the channel corresponding to the deviation value is determined to be a channel fault.
5. The method according to claim 3, characterized in that: The determining, according to the fault filtering times, the fault result of the channel corresponding to the deviation value comprises: When the average value of the deviation value is not greater than the deviation diagnosis threshold, detecting whether the fault filtering times is 0; If the fault filtering times is 0, the fault result of the channel corresponding to the deviation value is determined to be that the channel has no fault.
6. A fault diagnosis device based on signal deviation, characterized in that: include: An acquisition unit, used to acquire sampling data of all channels in the triple safety instrument system; wherein each of the sampling data contains sampling signals of all channels; A screening unit, used for screening out middle values from the sampling data of all channels and marking them as deviation comparison values; A first calculation unit, configured to calculate, for each of the sampling data of the channel, a difference between the sampling data of the channel and the deviation comparison value to obtain a deviation value; A first storage unit, configured to store the deviation value in a buffer area when the absolute value of the deviation value is not greater than an anti-interference requirement threshold; A second calculation unit, configured to calculate the number of fault filtering times according to all deviation values and deviation diagnosis thresholds in the buffer area; A determination unit is used to determine the fault result of the channel corresponding to the deviation value according to the fault filtering times.
7. The device according to claim 6, characterized in that Also includes: A second storage unit, configured to store the deviation value in a temporary buffer area when the absolute value of the deviation value is greater than the anti-interference requirement threshold; A detection unit, used to detect whether the absolute values of the deviation values are all greater than the anti-interference requirement threshold within the anti-interference requirement time; a deleting unit, configured to delete all deviation values in the temporary buffer and store the deviation values in the buffer if the absolute value of the deviation value is not greater than the anti-interference requirement threshold within the anti-interference requirement time; The third storage unit is configured to store all the deviation values in the temporary buffer into the buffer if the absolute values of the deviation values are all greater than the anti-interference requirement threshold within the anti-interference requirement time.
8. The device according to claim 6, characterized in that The second computing unit is specifically used for: When the storage time of the deviation value is a preset time, determining whether the number of deviation values in the buffer area is a preset number; If the number of the deviation values in the buffer area is the preset number, calculating the average value of all the deviation values in the buffer area; Determining whether the average value of the deviation values is greater than a deviation diagnosis threshold; If the average value of the deviation value is greater than the deviation diagnosis threshold, the current fault filtering times is added to 1 to obtain the fault filtering times; If the average value of the deviation values is not greater than the deviation diagnosis threshold, the current fault filtering times is subtracted from 1 to obtain the fault filtering times.
9. The device according to claim 8, characterized in that The determining unit is specifically used for: When the average value of the deviation value is greater than the deviation diagnosis threshold, detecting whether the fault filtering times is greater than a preset fault filtering times; If the fault filtering times are greater than the preset fault filtering times, the fault result of the channel corresponding to the deviation value is determined to be a channel fault.
10. The device according to claim 8, characterized in that The determining unit is specifically used for: When the average value of the deviation value is not greater than the deviation diagnosis threshold, detecting whether the fault filtering times is 0; If the fault filtering times is 0, the fault result of the channel corresponding to the deviation value is determined to be that the channel has no fault.