Liquid level detection method and device, and readable storage medium
By monitoring the duration and interruption time of the electrical signal output by the liquid level meter, the liquid level level is determined, which solves the problem of false detection by the liquid level meter when measuring toxic chemical liquids, and achieves accurate detection and safety assurance of liquid level.
Patent Information
- Application Number
- CN202111349487.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-11-15
AI Technical Summary
Existing liquid level meters are prone to misdetection when measuring chemical liquids that are toxic, corrosive, explosive, polluting, etc., resulting in product quality and production safety being threatened, and existing technology improvements are poor.
By receiving the electrical signal output by the liquid level meter, monitoring the duration and interruption time of the signal, generating a valid signal or an invalid signal, determining the current liquid level of the container according to the liquid level level, and outputting an alarm signal to avoid false detection.
It effectively avoids false detection of the liquid level meter due to liquid level fluctuations or liquid level physical characteristics, ensures accurate liquid level detection, and improves the accuracy and safety of measurement.
Smart Images

Figure CN114061706B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of container liquid level detection, and in particular, to a liquid level detection method and device, and a readable storage medium. Background Art
[0002] With the advancement of my country's industrialization process and the rapid development of automation technology, liquid level meters have begun to be widely used in industry and daily life. It should be noted that in industrial applications, liquid level meters are generally used to measure the liquid levels of various chemical liquids that are toxic, corrosive, harmful, explosive, polluting, etc. The method of avoiding the liquid level meter from misdetecting the liquid level is a guarantee of product quality and production safety. In the prior art, the method of avoiding the liquid level meter from misdetecting the liquid level is only focused on improving the measurement principle or hardware material of the liquid level meter itself, and the effect of avoiding misdetection of the liquid level is still poor. Summary of the invention
[0003] The embodiments of the present invention provide a liquid level detection method and device, and a readable storage medium to prevent a liquid level meter from misdetecting the liquid level and ensure accurate detection of the liquid level.
[0004] In a first aspect, an embodiment of the present invention provides a liquid level detection method for detecting a current liquid level height of a container, wherein the container includes a plurality of liquid level levels with successively increasing liquid level heights, and a higher liquid level height corresponds to a higher liquid level level, and a liquid level gauge is provided at each of the liquid level levels, and the method includes:
[0005] Receiving the electrical signal output by each of the liquid level meters;
[0006] monitoring whether the duration of the electrical signal is greater than or equal to a first preset time; if so, generating a first liquid level signal; if not, determining that the electrical signal is an invalid signal;
[0007] It is determined that among the liquid level levels corresponding to at least one of the first liquid level signals, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
[0008] Optionally, after generating the first liquid level signal, the method further includes:
[0009] monitoring whether the time during which the first liquid level signal is interrupted is greater than or equal to a second preset time; if not, outputting a second liquid level signal; if so, determining that the first liquid level signal is an invalid signal;
[0010] Determining that the liquid level height corresponding to the highest liquid level level among the liquid level levels corresponding to at least one of the first liquid level signals is the current liquid level height of the container comprises:
[0011] It is determined that the liquid level height corresponding to the highest liquid level among the liquid level levels corresponding to at least one of the second liquid level signals is the current liquid level height of the container.
[0012] Optionally, it also includes:
[0013] Determine that the highest liquid level among the liquid level levels corresponding to at least one of the second liquid level signals is a second reference level;
[0014] When it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output.
[0015] Optionally, it also includes:
[0016] Determine that the highest liquid level among the liquid level levels corresponding to at least one of the first liquid level signals is a first reference level;
[0017] When it is determined that the electrical signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the first reference level, it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output.
[0018] Optionally, the container comprises a first liquid level level, a second liquid level level, a third liquid level level, a fourth liquid level level and a fifth liquid level level, the liquid level heights of which increase in sequence;
[0019] Determining that the highest liquid level among the liquid level levels corresponding to at least one of the second liquid level signals is a second reference level comprises: determining the second liquid level as the second reference level;
[0020] When it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, the liquid level meter corresponding to the invalid signal is determined to be faulty, and a corresponding alarm signal is output, including: the liquid level level corresponding to the invalid signal is the first liquid level level, and an alarm signal indicating a fault of the liquid level meter at the first liquid level level is output.
[0021] Optionally, the container comprises a first liquid level level, a second liquid level level, a third liquid level level, a fourth liquid level level and a fifth liquid level level, the liquid level heights of which increase in sequence;
[0022] Determining that the highest liquid level among the liquid level levels corresponding to at least one of the second liquid level signals is a second reference level includes: determining the fifth liquid level as the second reference level;
[0023] When it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, the liquid level meter corresponding to the invalid signal is determined to be faulty, and a corresponding alarm signal is output, including: the liquid level level corresponding to the invalid signal is the third liquid level level, and an alarm signal indicating a fault of the liquid level meter at the third liquid level level is output.
[0024] In a second aspect, an embodiment of the present invention further provides a liquid level detection device for detecting the current liquid level height of a container, wherein the container comprises a plurality of liquid level levels with successively increasing liquid level heights, wherein a higher liquid level height corresponds to a higher liquid level level, and a liquid level gauge is provided at each of the liquid level levels, wherein the device comprises:
[0025] A receiving module, used for receiving the electrical signal output by each of the liquid level meters;
[0026] A monitoring module, used to monitor whether the duration of the electrical signal is greater than or equal to a first preset time; if so, generate a first liquid level signal; if not, determine that the electrical signal is an invalid signal;
[0027] The liquid level determination module is used to determine that the liquid level height corresponding to the highest liquid level level among the liquid level levels corresponding to at least one of the first liquid level signals is the current liquid level height of the container.
[0028] Optionally, the monitoring module is further used to monitor whether the time during which the first liquid level signal is interrupted is greater than or equal to a second preset time; if not, output a second liquid level signal; if so, determine that the first liquid level signal is an invalid signal;
[0029] The liquid level determination module is further configured to determine that, among the liquid level levels corresponding to at least one of the second liquid level signals, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
[0030] Optionally, it also includes:
[0031] An alarm module is used to determine that among the liquid level levels corresponding to at least one of the second liquid level signals, the highest liquid level level is the second reference level, and when it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, then it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output; and / or used to determine that among the liquid level levels corresponding to at least one of the first liquid level signals, the highest liquid level level is the first reference level; and when it is determined that the electrical signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the first reference level, then it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output.
[0032] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the liquid level detection method as described in the first aspect can be implemented.
[0033] The liquid level detection method provided in the embodiment of the present invention is used to detect the current liquid level height of a container, wherein the container includes a plurality of liquid level levels with successively increasing liquid level heights, and a liquid level meter is provided at each liquid level level; by receiving the electrical signal output by each liquid level meter, and monitoring whether the duration of the electrical signal is greater than or equal to a first preset time, a first liquid level signal is generated if so, and otherwise the electrical signal is determined to be an invalid signal, and then the liquid level height corresponding to the highest liquid level level among the liquid level levels corresponding to at least one first liquid level signal is determined to be the current liquid level height of the container, thereby avoiding the situation in which the liquid level meter incorrectly detects the liquid level due to liquid level fluctuations or physical characteristics of the liquid level, and ensuring accurate detection of the liquid level. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of a liquid level detection method provided by an embodiment of the present invention;
[0035] Figure 2 is a flow chart of another liquid level detection method provided by an embodiment of the present invention;
[0036] Figure 3 It is a flow chart of liquid level meter fault detection provided by an embodiment of the present invention;
[0037] Figure 4 is another liquid level meter fault detection flow chart provided by an embodiment of the present invention;
[0038] Figure 5 It is a structural schematic diagram of a liquid level detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0040] The liquid level detection method provided in the embodiment of the present invention is used to detect the current liquid level height of a container; the container is provided with a plurality of liquid level levels with increasing liquid level heights in sequence, the higher the liquid level height, the higher the liquid level level, and a liquid level meter is provided at each liquid level level, and the liquid level level corresponds to the liquid level meter one by one; the liquid level detection method can be executed by a liquid level detection device, and the liquid level detection device can be provided in a programmable logic controller (PLC). The number of liquid level levels of the container and the liquid level height corresponding to each liquid level level can be set for the container according to actual conditions, and the present invention does not limit them. Figure 1 is a flow chart of a liquid level detection method provided by an embodiment of the present invention. Figure 1 , the liquid level detection methods include:
[0041] S110, receiving the electrical signals output by each liquid level meter.
[0042] Specifically, each liquid level gauge can be monitored simultaneously in real time or within a preset time range. When the liquid level in the container reaches a certain liquid level level of the container (that is, when it reaches the liquid level height corresponding to the liquid level level), the liquid level gauge set at the liquid level level and the corresponding liquid level gauge at a liquid level lower than the liquid level level both output electrical signals.
[0043] Exemplarily, the container includes a first liquid level level, a second liquid level level, a third liquid level level, a fourth liquid level level, and a fifth liquid level level, the liquid level heights of which increase in sequence. When the liquid level in the container reaches the fourth liquid level of the container, the liquid level gauge at the fourth liquid level and the liquid level gauges at the third liquid level, the second liquid level, and the first liquid level all output electrical signals, while the liquid level gauge at the fifth liquid level does not output electrical signals. The output electrical signal may be a high level signal or a low level signal, and correspondingly, not outputting the electrical signal means not outputting the level signal; or, the output electrical signal may be a high (low) level signal, and correspondingly, not outputting the electrical signal means outputting a low (high) level signal. The present invention does not specifically limit the specific form of the electrical signal. The embodiment of the present invention may receive the electrical signals output by each liquid level gauge.
[0044] S120: Monitor whether the duration of the electrical signal is greater than or equal to a first preset time.
[0045] Specifically, although the electrical signal output by the liquid level meter is received, it is possible that the electrical signal output by the liquid level meter is caused by a fluctuation in the liquid level in the container or the physical characteristics of the liquid in the container. For example, the liquid level is originally at the second liquid level level. If, due to some factors, the liquid level fluctuates back and forth between the second liquid level level and the third liquid level level within a short period of time, then the liquid level meters at the first liquid level level, the second liquid level level and the third liquid level level are likely to all output electrical signals during the short period of time. In this case, the electrical signal output by the liquid level meter at the third liquid level level is an electrical signal output by a false detection. For another example, when some liquid that would originally be at the second liquid level is injected into a container, if due to the physical properties of the liquid itself (viscosity, volatility, instability, etc.) the liquid level is first at the third liquid level and lasts for a short period of time before stabilizing at the second liquid level, then during this short period of time the liquid level gauges at the first liquid level, the second liquid level and the third liquid level are likely to all output electrical signals. In this case, the electrical signal output by the liquid level gauge at the third liquid level is also an electrical signal output due to false detection.
[0046] In view of the situation that the liquid level meter misdetects the liquid level and outputs an electrical signal, this embodiment monitors the duration of the electrical signal. If the duration of the monitored electrical signal is greater than or equal to the first preset time, it is confirmed that the electrical signal is not an electrical signal output by the liquid level meter due to misdetection, but a valid electrical signal, which can be used to determine the current liquid level height, so step S130 is executed to generate the first liquid level signal, that is, the first liquid level signal is generated according to the valid electrical signal, and step S150 is executed after step S130. If the duration of the monitored electrical signal is less than the first preset time, it is confirmed that the electrical signal is an electrical signal output by the liquid level meter due to misdetection, which cannot be used to determine the current liquid level height and should be treated as an invalid signal, so step S140 is executed to determine that the electrical signal is an invalid signal. Among them, the first preset time can be set according to the actual situation or according to the physical properties of the liquid, and the present invention does not specifically limit it. Exemplarily, the first preset time is 0.3 seconds.
[0047] S150: Determine, among the liquid level levels corresponding to the at least one first liquid level signal, that the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
[0048] Specifically, if a first liquid level signal is generated corresponding to a valid electrical signal, the liquid level height corresponding to the liquid level level corresponding to the first liquid level signal is determined to be the current liquid level height of the container. For example, if a first liquid level signal generated corresponding to a valid electrical signal corresponds to a first liquid level level, the liquid level height corresponding to the first liquid level level is determined to be the current liquid level height of the container.
[0049] If multiple first liquid level signals are generated correspondingly to multiple valid electrical signals, the liquid level height corresponding to the highest liquid level level among the multiple liquid level levels corresponding to the multiple first liquid level signals is determined to be the current liquid level height of the container. For example, if three first liquid level signals are generated correspondingly to three valid electrical signals (one of the first liquid level signals corresponds to one valid electrical signal), the three liquid level levels corresponding to the three first liquid level signals are the first liquid level level, the second liquid level level and the third liquid level level, and the highest liquid level level is the third liquid level level, then the liquid level height corresponding to the third liquid level level is determined to be the current liquid level height of the container.
[0050] The technical solution of the embodiment of the present invention receives the electrical signals output by each liquid level meter and monitors whether the duration of the electrical signal is greater than or equal to a first preset time. If so, a first liquid level signal is generated; otherwise, the electrical signal is determined to be an invalid signal, and then the liquid level height corresponding to the highest liquid level level among the liquid level levels corresponding to at least one first liquid level signal is determined to be the current liquid level height of the container, thereby avoiding the situation where the liquid level meter misdetects the liquid level due to liquid level fluctuations or physical characteristics of the liquid level, thereby ensuring accurate detection of the liquid level.
[0051] Based on the above embodiments, optionally, Figure 2 is a flow chart of another liquid level detection method provided by an embodiment of the present invention. Figure 2 , the liquid level detection methods include:
[0052] S210, receiving the electrical signals output by each liquid level meter.
[0053] S220, monitor whether the duration of the electrical signal is greater than or equal to the first preset time. If yes, execute step S230, generate a first liquid level signal; if no, execute step S240, determine that the electrical signal is an invalid signal.
[0054] S250, monitoring whether the time during which the first liquid level signal is interrupted is greater than or equal to a second preset time.
[0055] Specifically, after determining that the electrical signal is a valid signal, that is, after generating the first liquid level signal, the first liquid level signal may be interrupted due to the process of liquid level dropping, unstable electrical signal transmission, liquid level fluctuation or physical properties of the solution. At this time, the PLC may mistakenly determine that the liquid level gauge corresponding to the first liquid level signal has been turned off, or the PLC may be unable to determine whether the liquid level gauge corresponding to the first liquid level signal has been turned off.
[0056] In view of the situation that the PLC mistakenly judges that the liquid level meter is turned off, which leads to the misdetection of the liquid level height, the embodiment of the present invention monitors the duration of the first liquid level signal. If it is monitored that the time when the first liquid level signal is interrupted exceeds the second preset time, it is confirmed that the liquid level meter corresponding to the first liquid level signal is in the off state (that is, there is no electrical signal or no effective electrical signal output), so that the first liquid level signal can be processed as an invalid signal, so step S270 is executed to determine that the first liquid level signal is an invalid signal. If it is monitored that the time when the first liquid level signal is interrupted is less than the second preset time, it is confirmed that the liquid level meter corresponding to the first liquid level signal is not really in the off state, but only the liquid level fluctuates, etc., and the first liquid level signal can still participate in the determination of the current liquid level height, so step S260 is executed to generate the second liquid level signal, that is, the second liquid level signal is generated according to the first liquid level signal to continue to determine the current liquid level height, so step S280 is executed after step S260. Among them, the second preset time is set according to the actual situation or according to the physical properties of the liquid, and the present invention does not specifically limit it. Exemplarily, the first preset time is 0.6 seconds.
[0057] S280: Determine that among the liquid level levels corresponding to the at least one second liquid level signal, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
[0058] Exemplarily, for three first liquid level signals whose interruption times do not exceed the second preset time, three second liquid level signals are generated accordingly (one of the second liquid level signals corresponds to a first liquid level signal whose interruption time does not exceed the second preset time), and the three liquid level levels corresponding to the three second liquid level signals are the first liquid level level, the second liquid level level and the third liquid level level, and the highest liquid level level is the third liquid level level. The liquid level height corresponding to the third liquid level level is determined to be the current liquid level height of the container.
[0059] The technical solution of the embodiment of the present invention monitors the time when the first liquid level signal is interrupted, so that the liquid level gauge corresponding to the first liquid level signal is confirmed to be turned off only when the time when the first liquid level signal is interrupted exceeds the second preset time, and when the time when the first liquid level signal is interrupted is less than the second preset time, it is confirmed that the first liquid level signal is still valid and can participate in the judgment of the current liquid level height, thereby avoiding the situation where the liquid level gauge is misjudged to be turned off, which leads to misdetection of the liquid level height, and further ensures the accurate detection of the liquid level.
[0060] On the basis of the above embodiments, optionally, an embodiment of the present invention further provides a liquid level meter fault detection method, Figure 3 is a flow chart of a liquid level meter fault detection provided by an embodiment of the present invention, refer to Figure 3 , the method comprising:
[0061] S310, receiving the electrical signals output by each liquid level meter.
[0062] S320, monitoring whether the duration of the electrical signal is greater than or equal to the first preset time. If yes, executing step S330, generating a first liquid level signal; if no, executing step S340, determining that the electrical signal is an invalid signal.
[0063] S350, determining that the highest level among the liquid level levels corresponding to at least one first liquid level signal is the first reference level; when determining that the electrical signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the first reference level, determining that the liquid level meter corresponding to the invalid signal is faulty, and outputting a corresponding alarm signal. Wherein, step S350 can be executed before step S150 or after step S150, and here only step S350 is executed before step S150 for example.
[0064] For example, for four electrical signals, three of them are effective electrical signals and one is an invalid signal, and the three effective electrical signals correspond to the first, second and fourth liquid level levels, that is, the three first liquid level signals correspond to the first, second and fourth liquid level levels, and the invalid signal corresponds to the third liquid level level. At this time, the fourth liquid level is determined to be the first reference level, and since the third liquid level is lower than the first reference level, it is determined that the liquid level gauge corresponding to the third liquid level is faulty, and an alarm signal corresponding to the third liquid level can be issued, indicating that the liquid level gauge at the third liquid level is faulty.
[0065] That is, the technical solution provided by the embodiment of the present invention determines that among the liquid level levels corresponding to at least one first liquid level signal, the highest liquid level level is the first reference level. At this time, if the liquid level gauge at any liquid level lower than the first reference level does not output an electrical signal or the electrical signal is an invalid signal, it is determined that the liquid level gauge at this liquid level level has failed, because there is basically no situation where there is no liquid level at the previous liquid level level or the previous liquid level level (that is, the liquid level level with a smaller corresponding liquid level height) and there is a liquid level at the next or later liquid level level (that is, the liquid level level with a larger corresponding liquid level height). Therefore, when this situation occurs, the embodiment of the present invention confirms that the liquid level gauge at the previous liquid level level or the previous liquid level level (that is, the liquid level level with a smaller corresponding liquid level height) has failed, thereby realizing the detection of the liquid level gauge failure, and can output an alarm signal corresponding to the failed liquid level gauge.
[0066] On the basis of the above embodiments, optionally, an embodiment of the present invention further provides a liquid level meter fault detection method, Figure 4 is another liquid level meter fault detection flow chart provided by an embodiment of the present invention, refer to Figure 4 , the method comprising:
[0067] S410, receiving the electrical signal output by each liquid level meter.
[0068] S420: monitor whether the duration of the electrical signal is greater than or equal to the first preset time. If yes, execute step S430: generate a first liquid level signal; if no, execute step S440: determine that the electrical signal is an invalid signal.
[0069] S450, monitoring whether the time during which the first liquid level signal is interrupted is greater than or equal to a second preset time. If not, executing step S460, generating a second liquid level signal; if yes, executing step S470, determining that the first liquid level signal is an invalid signal.
[0070] S480, determine that among the liquid level levels corresponding to at least one second liquid level signal, the highest liquid level level is the second reference level; when the first liquid level signal is determined to be an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, determine that the liquid level meter corresponding to the invalid signal is faulty, and output a corresponding alarm signal. Step S480 can be executed before or after step S280, and here only step S480 is executed before step S280 for example. In addition, Figure 4 The illustrated embodiment and Figure 3 The illustrated embodiments can be arbitrarily combined and split to form new technical solutions, all of which belong to the technical solutions provided by the present invention.
[0071] Exemplarily, if only one first liquid level signal has an interruption time that does not exceed the second preset time, that is, there is only one second liquid level signal, and the liquid level level corresponding to the second liquid level signal is the second liquid level level, then the second liquid level level is determined to be the second reference level, and at the same time, the first liquid level signal corresponding to the first liquid level is determined to be an invalid signal. At this time, since the liquid level gauge at the first liquid level corresponds to an invalid signal and the liquid level gauge at the second liquid level corresponds to the second liquid level signal, since there is basically no situation where there is no liquid level at the liquid level level with a smaller liquid level height and there is a liquid level at the liquid level level with a larger liquid level height, when this situation occurs, the embodiment of the present invention confirms that the liquid level gauge at the liquid level level with a smaller liquid level height has a fault, thereby realizing the detection of the liquid level gauge fault, and can output an alarm signal of the corresponding faulty liquid level gauge.
[0072] Exemplarily, for four second liquid level signals, and the liquid level levels corresponding to the four second liquid level signals are the first liquid level level, the second liquid level level, the third liquid level level and the fifth liquid level level, respectively, and a first liquid level signal with a liquid level of the third liquid level is determined to be an invalid signal, then at this time, the embodiment of the present invention confirms that the fifth liquid level is the second reference level and the liquid level gauge at the third liquid level fails, and at the same time, an alarm signal corresponding to the third liquid level can be issued, indicating that the liquid level gauge at the third liquid level is faulty.
[0073] That is, the technical solution provided by the embodiment of the present invention determines that among the liquid level levels corresponding to at least one second liquid level signal, the highest liquid level level is the second reference level. At this time, if the liquid level gauge at any liquid level lower than the second reference level does not output an electrical signal or the electrical signal is an invalid signal, it is determined that the liquid level gauge at this liquid level level has a fault, because there is basically no situation where there is no liquid level at the liquid level level with a smaller liquid level height and there is a liquid level at the liquid level level with a larger liquid level height. Therefore, when this situation occurs, the embodiment of the present invention confirms that the liquid level gauge at the liquid level level with a smaller liquid level height has a fault, thereby realizing the detection of the liquid level gauge fault, and can output an alarm signal of the corresponding faulty liquid level gauge.
[0074] The embodiment of the present invention further provides a liquid level detection device for detecting the current liquid level height of a container, wherein the container includes a plurality of liquid level levels with successively increasing liquid level heights, and a liquid level meter is provided at each liquid level level. Figure 5 is a schematic diagram of a liquid level detection device provided by an embodiment of the present invention, with reference to Figure 5 , the liquid level detection device comprises:
[0075] The receiving module 10 is used to receive the electrical signal output by each liquid level meter;
[0076] The monitoring module 20 is used to monitor whether the duration of the electrical signal is greater than or equal to a first preset time; if so, a first liquid level signal is generated; if not, the electrical signal is determined to be an invalid signal;
[0077] The liquid level determination module 30 is used to determine that among the liquid level levels corresponding to the at least one first liquid level signal, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
[0078] The liquid level detection device provided in the embodiment of the present invention can be used to execute the liquid level detection method described in any of the above-mentioned technical solutions. The liquid level detection device and the liquid level detection method provided in the embodiment of the present invention belong to the same inventive concept and can achieve the same technical effect. The repeated contents will not be repeated here.
[0079] On the basis of the above embodiments, optionally, the monitoring module 20 is also used to monitor whether the time during which the first liquid level signal is interrupted is greater than or equal to a second preset time; if not, a second liquid level signal is output; if so, the first liquid level signal is determined to be an invalid signal; the liquid level determination module 30 is also used to determine that among the liquid level levels corresponding to at least one second liquid level signal, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
[0080] On the basis of the above embodiments, optionally, the liquid level detection device also includes: an alarm module, which is used to determine that among the liquid level levels corresponding to at least one second liquid level signal, the highest liquid level level is the second reference level, and when it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, then the liquid level meter corresponding to the invalid signal is determined to be faulty, and a corresponding alarm signal is output; and / or is used to determine that among the liquid level levels corresponding to at least one first liquid level signal, the highest liquid level level is the first reference level; and when it is determined that the electrical signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the first reference level, then the liquid level meter corresponding to the invalid signal is determined to be faulty, and a corresponding alarm signal is output.
[0081] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the liquid level detection method in any of the above embodiments can be implemented. The method at least includes:
[0082] Receive the electrical signals output by each liquid level meter;
[0083] monitoring whether the duration of the electrical signal is greater than or equal to a first preset time;
[0084] It is determined that among the liquid level levels corresponding to the at least one first liquid level signal, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
[0085] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A liquid level detection method for detecting the current liquid level height of a container, wherein the container comprises a plurality of liquid level levels with successively increasing liquid level heights, wherein a higher liquid level height corresponds to a higher liquid level level, and a liquid level gauge is provided at each of the liquid level levels, wherein: The method comprises: Receiving the electrical signal output by each of the liquid level meters; monitoring whether the duration of the electrical signal is greater than or equal to a first preset time; if so, generating a first liquid level signal; if not, determining that the electrical signal is an invalid signal; Determine that the liquid level height corresponding to the highest liquid level among the liquid level levels corresponding to at least one of the first liquid level signals is the current liquid level height of the container; The container comprises a first liquid level level, a second liquid level level, a third liquid level level, a fourth liquid level level and a fifth liquid level level with increasing liquid level heights in sequence; Wherein, if for a valid electrical signal, a first liquid level signal is generated accordingly, the liquid level level corresponding to the first liquid level signal is determined, and the liquid level height corresponding to the liquid level level is the current liquid level height of the container; if for multiple valid electrical signals, multiple first liquid level signals are generated accordingly, multiple liquid level levels corresponding to multiple first liquid level signals are determined, and the liquid level height corresponding to the highest liquid level level among the multiple liquid level levels is the current liquid level height of the container; monitoring whether the time during which the first liquid level signal is interrupted is greater than or equal to a second preset time; if not, outputting a second liquid level signal; if so, determining that the first liquid level signal is an invalid signal; Determine that the liquid level height corresponding to the highest liquid level level among the liquid level levels corresponding to at least one of the second liquid level signals is the current liquid level height of the container; Determine that the highest liquid level among the liquid level levels corresponding to at least one of the second liquid level signals is a second reference level; Determining that the highest liquid level among the liquid level levels corresponding to at least one of the second liquid level signals is a second reference level comprises: determining the second liquid level as the second reference level; When it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output; When it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, the liquid level meter corresponding to the invalid signal is determined to be faulty, and a corresponding alarm signal is output, including: the liquid level level corresponding to the invalid signal is the first liquid level level, and an alarm signal indicating a fault of the liquid level meter at the first liquid level level is output.
2. The liquid level detection method according to claim 1, characterized in that: Also includes: Determine that the highest liquid level among the liquid level levels corresponding to at least one of the first liquid level signals is a first reference level; When it is determined that the electrical signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the first reference level, it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output.
3. A liquid level detection device, executing the liquid level detection method according to any one of claims 1 to 2, for detecting the current liquid level height of a container, wherein the container comprises a plurality of liquid level levels with increasing liquid level heights, the higher the liquid level height, the higher the corresponding liquid level level, and a liquid level gauge is provided at each of the liquid level levels, characterized in that: The device comprises: A receiving module, used for receiving the electrical signal output by each of the liquid level meters; A monitoring module, used to monitor whether the duration of the electrical signal is greater than or equal to a first preset time; if so, generate a first liquid level signal; if not, determine that the electrical signal is an invalid signal; a liquid level determination module, configured to determine that, among the liquid level levels corresponding to at least one of the first liquid level signals, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container; Among them, if for a valid electrical signal, a first liquid level signal is generated accordingly, the liquid level level corresponding to the first liquid level signal is determined, and the liquid level height corresponding to the liquid level level is the current liquid level height of the container; if for multiple valid electrical signals, multiple first liquid level signals are generated accordingly, multiple liquid level levels corresponding to multiple first liquid level signals are determined, and the liquid level height corresponding to the highest liquid level among the multiple liquid level levels is the current liquid level height of the container.
4. The liquid level detection device according to claim 3, characterized in that: The monitoring module is further used to monitor whether the time during which the first liquid level signal is interrupted is greater than or equal to a second preset time; if not, output a second liquid level signal; if so, determine that the first liquid level signal is an invalid signal; The liquid level determination module is further configured to determine that, among the liquid level levels corresponding to at least one of the second liquid level signals, the liquid level height corresponding to the highest liquid level level is the current liquid level height of the container.
5. The liquid level detection device according to claim 4, characterized in that: Also includes: An alarm module is used to determine that among the liquid level levels corresponding to at least one of the second liquid level signals, the highest liquid level level is the second reference level, and when it is determined that the first liquid level signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the second reference level, then it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output; and / or used to determine that among the liquid level levels corresponding to at least one of the first liquid level signals, the highest liquid level level is the first reference level; and when it is determined that the electrical signal is an invalid signal, if the liquid level level corresponding to the invalid signal is lower than the first reference level, then it is determined that the liquid level meter corresponding to the invalid signal is faulty, and a corresponding alarm signal is output.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the liquid level detection method according to any one of claims 1 to 2 can be implemented.
