A float type water level gauge line fault detection method, system, terminal and medium
By obtaining the difference between the current Gray code sequence and the reference sequence in the float-type water level gauge, the fault detection steps are simplified, enabling rapid and accurate line fault location and improving maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-03-24
AI Technical Summary
In the existing technology, fault detection of float-type water level gauges requires switching on/off and signal comparison at the output port of the rotor and the input port of the data transmitter, which is cumbersome, time-consuming and not conducive to efficient maintenance.
When the water level change value between two adjacent acquisition times does not meet the water level reference value, the difference between the current Gray code sequence and the reference sequence is obtained. The Gray code reference sequence set construction method is used to locate the faulty line and simplify the detection process.
There is no need for manual multimeter measurement of continuity between the rotor port and the data transmitter port, simplifying the testing process, shortening testing time, improving maintenance efficiency, and accurately locating faulty lines.
Smart Images

Figure CN121409373B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of float type water level gauge line fault detection, and particularly relates to a float type water level gauge line fault detection method, system, terminal and medium. BACKGROUND
[0002] The float type water level gauge senses water level changes through a float ball. Under the interaction of the float ball and a counterweight, a steel wire rope produces displacement and drives a runner to rotate, thereby driving an encoder to convert water level changes into a Gray code signal. The Gray code signal is finally output to a collection system through 12 lines via the opening and closing actions of a Gray code conversion button.
[0003] In actual operation, the lines may be partially broken or have abnormal contact, affecting the accuracy of water level monitoring data. Line faults mainly manifest in the following three aspects: first, the water level gauge is usually installed above a water level well, and the humid environment easily causes the line interface to rust, resulting in poor contact; second, the line itself has a small diameter and low mechanical strength, and is prone to breaking in long-term use; third, the Gray code conversion button below the runner is prone to mechanical fatigue due to frequent action, affecting signal transmission of the line.
[0004] Currently, for line fault detection of the float type water level gauge, each line needs to be respectively subjected to continuity and signal comparison at the runner output port and the data transmission instrument input port of the float type water level gauge. This method is tedious and time-consuming, and is not conducive to efficient maintenance. SUMMARY
[0005] The present application aims to provide a float type water level gauge line fault detection method, system, terminal and medium, and solves the problem that, in the prior art, when line faults of a float type water level gauge are detected, each line needs to be respectively subjected to continuity and signal comparison at the runner output port and the data transmission instrument input port of the float type water level gauge, making the steps tedious and time-consuming and not conducive to efficient maintenance.
[0006] To solve the above technical problems, the present application adopts the following technical solutions:
[0007] In a first aspect, a float type water level gauge line fault detection method is provided, comprising the following operations:
[0008] S1, when the water level change value between two adjacent collection time instants does not satisfy a water level reference value, the two collection time instants are sequentially labeled as a first collection time instant and a second collection time instant in chronological order;
[0009] S2, a water level monitoring value at the first collection time instant and a Gray code current sequence at the second collection time instant are acquired;
[0010] S3, extracting a Gray code reference sequence at the second collection time from the Gray code reference sequence set according to the water level reference value and the water level monitoring value at the first collection time; wherein the Gray code reference sequence set contains Gray code reference sequences of the float type water level meter at different water level monitoring values under normal working conditions;
[0011] S4, comparing the Gray code current sequence with the Gray code reference sequence to obtain a difference Gray code between the Gray code current sequence and the Gray code reference sequence;
[0012] S5, locating the faulty line according to the sequence number of the difference Gray code.
[0013] Further, in S3, the construction process of the Gray code reference sequence set comprises:
[0014] assigning unique labels to the lines;
[0015] obtaining Gray code reference values of the lines at an initial water level monitoring value under normal working conditions of the float type water level meter;
[0016] arranging the Gray code reference values in order according to the label sizes of the lines to obtain a Gray code reference sequence at the initial water level monitoring value;
[0017] adjusting the water level monitoring value from the initial water level monitoring value step by step with the water level reference value as an adjustment increment to obtain Gray code reference sequences of the float type water level meter at different water level monitoring values.
[0018] Further, before S3, further comprising:
[0019] obtaining a water level monitoring value at the second collection time;
[0020] extracting a corresponding Gray code reference sequence from the Gray code reference sequence set according to the water level monitoring value at the second collection time;
[0021] judging whether there is a difference Gray code between the extracted Gray code reference sequence and the Gray code current sequence; if not, the float type water level meter has no line fault; if yes, performing S3.
[0022] Further, S3 comprises:
[0023] calculating a theoretical water level monitoring value at the second collection time according to the water level reference value and the water level monitoring value at the first collection time;
[0024] extracting a corresponding Gray code reference sequence from the Gray code reference sequence set according to the theoretical water level monitoring value.
[0025] Further, the process of calculating the theoretical water level monitoring value at the second collection time comprises:
[0026] acquire the water level monitoring value at the target acquisition time point; wherein the target acquisition time point is the previous acquisition time point of the first acquisition time point;
[0027] subtract the water level reference value from the water level monitoring value at the first acquisition time point to obtain a suspected theoretical water level monitoring value;
[0028] determine whether the suspected theoretical water level monitoring value is equal to the water level monitoring value at the target acquisition time point; if yes, add the water level reference value to the water level monitoring value at the first acquisition time point to obtain a theoretical water level monitoring value; if no, record the suspected theoretical water level monitoring value as the theoretical water level monitoring value.
[0029] In a second aspect, a detection system for a float type water level meter is provided, which is applicable to the detection method in the first aspect, and comprises a marking module, an acquiring module, an extracting module, a comparing module and a positioning module.
[0030] In a third aspect, a terminal is provided, which comprises a processor and a memory, and the memory is configured to store processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to execute the detection method in the first aspect.
[0031] In a fourth aspect, a computer readable storage medium is provided, which stores computer program instructions, and the computer program instructions are executed by a processor to implement the detection method in the first aspect.
[0032] Compared with the prior art, the present application has the following beneficial effects:
[0033] When the water level change value between a certain collection time and the previous collection time does not satisfy the water level reference value, the Gray code current sequence and the Gray code reference sequence of the certain collection time are obtained, and the difference between the Gray code current sequence and the Gray code reference sequence is compared to determine whether the line of the float type water level gauge is faulty. It is expected to achieve the purpose of detecting whether the float type water level gauge is faulty without manually carrying a multimeter to repeatedly measure the on-off between the runner port and the data transmission instrument port, thereby simplifying the detection process, shortening the detection time, and improving the maintenance efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0034] Figure 1 It is a flowchart of a float type water level gauge line fault detection method in the embodiment.
[0035] Figure 2 It is a water level comparison chart in the embodiment. DETAILED DESCRIPTION
[0036] The application will be further described below with reference to the drawings.
[0037] Embodiment 1: The embodiment provides a float type water level gauge line fault detection method, as shown in the following formula (I): Figure 1 The method comprises the following operations:
[0038] S100. When the water level change value between two adjacent collection times does not satisfy the water level reference value, the two collection times are sequentially marked as a first collection time and a second collection time according to the time sequence.
[0039] Exemplarily, in the implementation process, 12 lines include 13 water level signal lines. Among them, 1 water level signal line is marked as a type A water level signal line, and the remaining 12 water level signal lines are marked as type B water level signal lines. And the type A water level signal line and the 12 type B water level signal lines are connected, so that the type A water level signal line and each type B water level signal line form 1 line, a total of 12 lines.
[0040] Water level data collected by the float type water level gauge at the preset collection time is obtained. The water level data includes the collection time and the water level monitoring value collected by the float type water level gauge at each collection time. And the time interval between any two adjacent collection times is the same. The collection time earlier in the time sequence among the two adjacent collection times is marked as a first collection time t1, and the collection time later in the time sequence is marked as a second collection time t2.
[0041] The water level monitoring value at the second collection time t2 is subtracted from the water level monitoring value at the first collection time t1 to obtain the water level change value between the second collection time t2 and the first collection time t1.
[0042] Determine whether the water level change between the second sampling time t2 and the first sampling time t1 is less than or equal to the water level reference value. The water level reference value is the theoretical value of the water level change collected between the second sampling time t2 and the first sampling time t1 when the water level in the object being monitored by the float-type water level gauge gradually rises or falls.
[0043] If the water level change between the second sampling time t2 and the first sampling time t1 is less than or equal to the water level reference value, it indicates that there is no line fault. If the water level change between the second sampling time t2 and the first sampling time t1 is greater than the water level reference value, it indicates that there may be a line fault.
[0044] S200. Obtain the water level monitoring value at the first acquisition time and the current Gray code sequence at the second acquisition time;
[0045] For example, during implementation, if the water level change between the second acquisition time t2 and the first acquisition time t1 is greater than the water level reference value, it indicates a possible line fault. In this case, the water level monitoring value at the first acquisition time t1 and the current Gray code sequence at the second acquisition time t2 are obtained.
[0046] S300. Based on the water level reference value and the water level monitoring value at the first acquisition time, extract the Gray code reference sequence at the second acquisition time from the Gray code reference sequence set; wherein, the Gray code reference sequence set contains Gray code reference sequences of the float-type water level gauge at different water level monitoring values under normal operating conditions;
[0047] For example, during implementation, a Gray code reference sequence set for the float-type water level gauge is constructed. This Gray code reference sequence set contains Gray code reference sequences corresponding to 12 lines when the float-type water level gauge detects different water level monitoring values under normal operating conditions. Under normal operating conditions, all components of the float-type water level gauge are functioning properly, and the water level in the monitored object gradually rises or falls, with the water level reference value as the increment and the time interval between data acquisition points as the duration of change.
[0048] Based on the water level reference value and the water level monitoring value at the first acquisition time t1, the Gray code reference sequence at the second acquisition time t2 is extracted from the Gray code reference sequence set.
[0049] S400. Compare the current Gray code sequence with the Gray code reference sequence to obtain the difference Gray code between the current Gray code sequence and the Gray code reference sequence;
[0050] For example, during implementation, the current Gray code sequence at the second acquisition time t2 is compared bit by bit with the Gray code reference sequence at the second acquisition time t2 to obtain the Gray codes that differ from the Gray code reference sequence, which are denoted as the difference Gray codes.
[0051] S500. Locate the faulty line based on the differential Gray code sequence number.
[0052] For example, during implementation, the faulty line can be located by finding the line number corresponding to the differential Gray code sequence number in the current Gray code sequence or Gray code reference sequence.
[0053] The float-type water level gauge circuit fault detection method in this embodiment, on the one hand, when the water level change value between a certain acquisition time and the previous acquisition time does not meet the water level reference value, acquires the current Gray code sequence and the Gray code reference sequence at that acquisition time, and compares the difference between the current Gray code sequence and the Gray code reference sequence to determine whether there is a fault in the float-type water level gauge circuit. The aim is to achieve the goal of detecting whether there is a circuit fault in the float-type water level gauge without manually carrying a multimeter to repeatedly measure the continuity between the impeller port and the data transmission instrument port, thereby simplifying the detection process, shortening the detection time, and improving maintenance efficiency. On the other hand, based on the sequence number of the difference Gray code in the current Gray code sequence or the Gray code reference sequence, the faulty circuit can be located. The aim is to achieve accurate location of the faulty circuit, thereby further simplifying the detection process, shortening the detection time, and improving maintenance efficiency.
[0054] In this embodiment, the construction process of the Gray code reference sequence set in S300 includes:
[0055] S3010. Assign a unique number to each line;
[0056] For example, during implementation, the 12 lines are sequentially numbered to obtain a unique number for each line. For instance, the 12 lines are sequentially labeled as X1, X2, X3, ..., X11, X12.
[0057] S3011. Obtain the Gray code reference values of each line of the float-type water level gauge when the initial water level monitoring value is obtained under normal operating conditions;
[0058] For example, an initial water level value is preset, which can be the historical maximum or minimum water level of the object being monitored by the float-type water level detector.
[0059] Under normal operating conditions, when the float-type water level gauge is monitoring the initial water level, the Gray code value of each line is obtained, which is the Gray code reference value of each line. For example, the Gray code reference value of line X1 is recorded as follows: The Gray code reference value for line X2 is denoted as The Gray code reference value for line X3 is denoted as The Gray code reference value for line X11 is denoted as... The Gray code reference value for line X12 is denoted as .
[0060] S3012. Arrange the Gray code reference values in order of the line number to obtain the Gray code reference sequence of the initial water level monitoring values;
[0061] For example, during implementation, the Gray code reference values of each line can be arranged according to the line number to obtain the Gray code reference sequence of the initial water level monitoring values. .in, =
[0062] S3013. Using the water level reference value as the adjustment increment, the water level monitoring value is gradually adjusted from the initial water level monitoring value to obtain the Gray code reference sequence of the float-type water level gauge at different water level monitoring values.
[0063] For example, during implementation, the water level reference value is used as the adjustment increment. The water level monitoring value is gradually increased or decreased from the initial water level monitoring value (gradually decreasing when the initial water level value is the historical maximum value of the water level in the float-type water level monitoring object; gradually increasing when the initial water level value is the historical minimum value of the water level in the float-type water level monitoring object) to obtain the Gray code reference sequence for different water level monitoring values. For example, the Gray code reference sequences under different water level monitoring values are sequentially denoted as... , , ... , By sorting each Gray code reference sequence according to the magnitude of the water level monitoring value, the Gray code reference sequence set can be obtained.
[0064] The float-type water level gauge circuit fault detection method in this embodiment, on the one hand, ensures a one-to-one correspondence between the Gray code reference sequence and the actual water level by constructing Gray code reference sequences for different water level monitoring values under normal operating conditions, aiming to improve the reliability of fault comparison results. On the other hand, the water level reference value is used as an adjustment increment, gradually increasing or decreasing the water level monitoring value from the initial water level monitoring value to obtain Gray code reference sequences for different water level monitoring values. This aims to ensure that the reference sequence set can cover all possible operating water levels, thereby facilitating the rapid acquisition of Gray code reference sequences for different water levels. Furthermore, the circuit label corresponds one-to-one with the Gray code sequence number, aiming to facilitate the locating of faulty circuits based on the sequence number of abnormal Gray codes.
[0065] In practical use, when the water level of the object being measured by the float-type water level gauge rises or falls significantly due to heavy rainfall or sluice gate opening, the water level change value between two sampling times will also fail to meet the water level reference value. However, in this case, there is no line fault. Therefore, to improve the accuracy of line fault detection, in this embodiment, before S300, the following is also included:
[0066] S3020. Obtain the water level monitoring value at the second acquisition time;
[0067] For example, during implementation, before executing S300 and extracting the Gray code reference sequence for the second acquisition time from the Gray code reference sequence set based on the water level reference value and the water level monitoring value at the first acquisition time, the water level monitoring value at the second acquisition time t2 is obtained.
[0068] S3021. Based on the water level monitoring value at the second acquisition time, extract the corresponding Gray code reference sequence from the Gray code reference sequence set;
[0069] For example, during implementation, the Gray code reference sequence corresponding to the water level monitoring value at the second acquisition time t2 is extracted from the Gray code reference sequence set based on the water level monitoring value at the second acquisition time t2.
[0070] S3022. Determine whether there is a difference between the extracted Gray code reference sequence and the current Gray code sequence; if not, the float-type water level gauge does not have a circuit fault; if so, execute S300.
[0071] For example, during implementation, the Gray code reference sequence at the second acquisition time t2 is compared bit by bit with the current Gray code sequence at the second acquisition time t2 to determine whether there is a difference in Gray code between them. If there is no difference in Gray code between the reference sequence and the current sequence, it indicates that the float-type water level gauge has no circuit fault; the fault may be due to a significant rise or fall in water level caused by heavy rainfall or sluice gate opening. If there is a difference in Gray code between the reference sequence and the current sequence, it indicates that the float-type water level gauge has a circuit fault. In this case, S300 is executed.
[0072] The float-type water level gauge line fault detection method in this embodiment, when the water level change value between a certain acquisition time and the previous acquisition time does not meet the water level reference value, acquires the current Gray code sequence and the Gray code reference sequence of the corresponding water level monitoring value at that acquisition time, and determines whether there is a difference in Gray code between the current Gray code sequence and the Gray code reference sequence, in order to determine whether the water level change is caused by a sudden hydrological process (such as rainstorm, flood discharge, tidal change, etc.). The aim is to improve the accuracy of line fault detection under complex operating conditions and reduce the risk of false alarms.
[0073] To improve the accuracy of the Gray code reference sequence when there is a circuit fault in the float-type water level gauge (excluding sudden water level changes caused by sudden hydrological processes), in this embodiment, S300 includes:
[0074] S3030. Calculate the theoretical water level monitoring value at the second sampling time based on the water level reference value and the water level monitoring value at the first sampling time;
[0075] In this embodiment, the process of calculating the theoretical water level monitoring value at the second acquisition time includes:
[0076] S30301. Obtain the water level monitoring value at the target acquisition time; wherein, the target acquisition time is the acquisition time preceding the first acquisition time;
[0077] For example, during implementation, after ruling out sudden changes in water level caused by sudden hydrological processes, and when there is a line fault in the float-type water level gauge, the previous acquisition time of the first acquisition time t1 is recorded as the target acquisition time, and the water level monitoring value at the target acquisition time is obtained.
[0078] S30302. Subtract the water level reference value from the water level monitoring value at the first acquisition time to obtain the suspected theoretical water level monitoring value;
[0079] S30303. Determine whether the suspected theoretical water level monitoring value is equal to the water level monitoring value at the target collection time; if so, use the water level monitoring value at the first collection time plus the water level reference value to obtain the theoretical water level monitoring value; if not, record the suspected theoretical water level monitoring value as the theoretical water level monitoring value.
[0080] For example, during implementation, under normal operating conditions, the water level change between the target sampling time and the first sampling time t1 is equal to the water level reference value, and the water level change between the first sampling time t1 and the second sampling time t2 is also equal to the water level reference value. Therefore, it is necessary to determine whether the suspected theoretical water level monitoring value is equal to the water level monitoring value at the target sampling time. If the suspected theoretical water level monitoring value is equal to the water level monitoring value at the target sampling time, the theoretical water level monitoring value at the second sampling time t2 can be obtained by adding the water level monitoring value at the first sampling time t1 to the water level reference value. If the suspected theoretical water level monitoring value is not equal to the water level monitoring value at the target sampling time, it indicates that the suspected theoretical water level monitoring value is the theoretical water level monitoring value at the second sampling time t2.
[0081] S3031. Based on the theoretical water level monitoring value, extract the corresponding Gray code reference sequence from the Gray code reference sequence set.
[0082] The float-type water level gauge circuit fault detection method in this embodiment calculates the theoretical water level monitoring value at the second acquisition time based on the water level reference value, the water level monitoring value at the first acquisition time, and the water level monitoring value at the target acquisition time. Then, it extracts the corresponding Gray code reference sequence based on the theoretical water level monitoring value at the second acquisition time. The aim is to make the extracted Gray code reference sequence closer to the Gray code sequence of the float-type water level gauge under normal conditions, thereby improving the accuracy of circuit fault detection.
[0083] Example: When the water level changes in the object being measured by a float-type water level gauge, all 12 lines are either closed or opened. When a line is closed, its Gray code is "0"; when a line is opened, its Gray code is "1".
[0084] Under normal operating conditions, the Gray code reference sequences for different water level values of the float-type water level gauge were obtained as the water level in the measured object gradually rose from an initial water level of 574.9m (elevation) to 575.05m in increments of 0.01m. Simultaneously, the Gray code current sequences for different water level values were obtained in real time as the water level in the measured object gradually rose from an initial water level of 574.9m to 575.05m in increments of 0.01m. The Gray code sequence comparison table is shown in Table 1, and the Gray code reference sequences for different water level values are also obtained. Figure 2 The water level comparison chart is shown.
[0085] Table 1
[0086]
[0087] As shown in Table 1, during actual use of the float-type water level gauge, the water level monitoring value collected at sequence number 13 (first acquisition time t1) was 575.02m, and the water level monitoring value collected at sequence number 14 (second acquisition time t2) was also 575.2m. At this time, the water level change between the water level monitoring value of 575.2m at sequence number 14 (second acquisition time t2) and the water level monitoring value of 575.02m at sequence number 13 (first acquisition time t1) was 0.18m, and this change was greater than the reference water level value of 0.01m. Therefore, the Gray code current sequence "110100110100" and the Gray code reference sequence "110100100100" for sequence number 14 (second acquisition time t2) were extracted. By comparing the current Gray code sequence "110100110100" with the Gray code reference sequence "110100100100" bit by bit, it can be found that the 8th bit of the current Gray code sequence "110100110100" differs from the 8th bit of the Gray code reference sequence "110100100100". That is, the 8th bit is the difference Gray code, and the sequence number 8 of the difference Gray code is the line with the sequence number X8, which has a fault.
[0088] Example 2: This example provides a fault detection system for a float-type water level gauge circuit. The detection system is applicable to the detection method described in Example 1. The detection system includes a marking module, an acquisition module, an extraction module, a comparison module, and a positioning module.
[0089] The marking module executes S100 to mark the two acquisition times sequentially as the first acquisition time and the second acquisition time when the water level change value between two adjacent acquisition times does not meet the water level reference value. The acquisition module executes S200 to acquire the water level monitoring value at the first acquisition time and the current Gray code sequence at the second acquisition time. The extraction module executes S300 to extract the Gray code reference sequence at the second acquisition time from the Gray code reference sequence set based on the water level reference value and the water level monitoring value at the first acquisition time. The Gray code reference sequence set contains Gray code reference sequences for float-type water level gauges at different water level monitoring values under normal operating conditions. The comparison module executes S400 to compare the current Gray code sequence with the Gray code reference sequence to obtain the difference Gray code between the current Gray code sequence and the Gray code reference sequence. The positioning module executes S500 to locate the faulty line based on the sequence number of the difference Gray code.
[0090] The float-type water level gauge circuit fault detection system in this embodiment, on the one hand, when the water level change value between a certain acquisition time and the previous acquisition time does not meet the water level reference value, acquires the current Gray code sequence and the Gray code reference sequence at that acquisition time, and compares the difference between the current Gray code sequence and the Gray code reference sequence to determine whether there is a fault in the float-type water level gauge circuit. The aim is to eliminate the need for manual repeated continuity measurements between the impeller port and the data transmission instrument port using a multimeter to detect circuit faults in the float-type water level gauge, thereby simplifying the detection process, shortening the detection time, and improving maintenance efficiency. On the other hand, based on the sequence number of the difference Gray code in the current Gray code sequence or the Gray code reference sequence, the faulty circuit can be located. The aim is to achieve accurate location of the faulty circuit, thereby further simplifying the detection process, shortening the detection time, and improving maintenance efficiency.
[0091] In this embodiment, a terminal is also provided, including a processor and a memory, wherein the memory is used to store processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to execute the detection method as described in Embodiment 1.
[0092] In this embodiment, a computer-readable storage medium is also provided, on which computer program instructions are stored, which, when executed by a processor, implement the detection method as described in Embodiment 1.
[0093] Although the invention has been described herein with reference to several illustrative embodiments, it should be understood that many other modifications and implementations can be devised by those skilled in the art, which will fall within the scope and spirit of the principles disclosed herein. More specifically, various variations and modifications can be made to the components and / or layout of the subject matter arrangement within the scope of the disclosure, drawings, and claims. Besides variations and modifications to the components and / or layout, other uses will be apparent to those skilled in the art.
Claims
1. A method for detecting circuit faults in a float-type water level gauge, characterized in that, Includes the following operations: S1, when the water level change value between two adjacent collection times does not meet the water level reference value, the two collection times are marked as the first collection time and the second collection time in chronological order. S2, obtain the water level monitoring value at the first acquisition time and the current Gray code sequence at the second acquisition time; S3, based on the water level reference value and the water level monitoring value at the first acquisition time, extract the Gray code reference sequence at the second acquisition time from the Gray code reference sequence set; wherein, the Gray code reference sequence set contains Gray code reference sequences of the float-type water level gauge at different water level monitoring values under normal operating conditions; S4. Compare the current Gray code sequence with the Gray code reference sequence to obtain the difference Gray code between the current Gray code sequence and the Gray code reference sequence. S5, locate the faulty line based on the differential Gray code sequence number; Before S3, the process also includes: acquiring the water level monitoring value at the second acquisition time; extracting the corresponding Gray code reference sequence from the Gray code reference sequence set based on the water level monitoring value at the second acquisition time; determining whether there is a difference Gray code between the extracted Gray code reference sequence and the current Gray code sequence; if not, the float-type water level gauge does not have a line fault; if so, execute S3. S3 includes: calculating the theoretical water level monitoring value at the second acquisition time based on the water level reference value and the water level monitoring value at the first acquisition time; and extracting the corresponding Gray code reference sequence from the Gray code reference sequence set based on the theoretical water level monitoring value. The process of calculating the theoretical water level monitoring value at the second sampling time includes: obtaining the water level monitoring value at the target sampling time; wherein the target sampling time is the sampling time preceding the first sampling time; subtracting the water level reference value from the water level monitoring value at the first sampling time to obtain a suspected theoretical water level monitoring value; determining whether the suspected theoretical water level monitoring value is equal to the water level monitoring value at the target sampling time; if so, adding the water level reference value to the water level monitoring value at the first sampling time to obtain the theoretical water level monitoring value; if not, recording the suspected theoretical water level monitoring value as the theoretical water level monitoring value.
2. The detection method according to claim 1, characterized in that, In S3, the construction process of the Gray code reference sequence set includes: Each route is assigned a unique identifier; Under normal operating conditions, the Gray code reference values of each line of the float-type water level gauge are obtained when the initial water level monitoring value is obtained; Arrange the Gray code reference values in order of the line number to obtain the Gray code reference sequence of the initial water level monitoring values; Using the water level reference value as the adjustment increment, the water level monitoring value is gradually adjusted from the initial water level monitoring value to obtain the Gray code reference sequence of the float-type water level gauge at different water level monitoring values.
3. A fault detection system for a float-type water level gauge circuit, characterized in that, The detection system is applicable to the detection method as described in any one of claims 1-2, and the detection system comprises: The marking module is used to execute S1, so that when the water level change value between two adjacent collection times does not meet the water level reference value, the two collection times are marked as the first collection time and the second collection time in chronological order. The acquisition module is used to execute S2 to acquire the water level monitoring value at the first acquisition time and the current Gray code sequence at the second acquisition time; An extraction module is used to execute S3 to extract the Gray code reference sequence at the second acquisition time from the Gray code reference sequence set based on the water level reference value and the water level monitoring value at the first acquisition time; wherein, the Gray code reference sequence set contains Gray code reference sequences of the float-type water level gauge at different water level monitoring values under normal operating conditions; The comparison module is used to execute S4 to compare the current Gray code sequence with the Gray code reference sequence to obtain the difference Gray code between the current Gray code sequence and the Gray code reference sequence; The positioning module is used to execute S5 to locate the faulty line based on the sequence number of the differential Gray code.
4. A terminal, characterized in that, include: A processor and a memory, wherein the memory is used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the detection method as described in any one of claims 1-2.
5. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the detection method as described in any one of claims 1-2.
Citation Information
Patent Citations
Float-type water level gauge line fault diagnosis instrument based on single-chip microcomputer
CN210719350U