A tank liquid level slope alarm method and device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2026-08-11
AI Technical Summary
[0002]结合目前石化行业储罐液位监控不能有效满足行业需求,储罐液位的异常波动易引起安全环保事故
Smart Images

Figure CN117831240B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of active monitoring technology for storage tanks, and more specifically, to a method and device for alarming the liquid level slope of a storage tank. Background Technology
[0002] The current tank level monitoring system in the petrochemical industry cannot effectively meet the industry's needs, and abnormal fluctuations in tank levels can easily lead to safety and environmental accidents. Conventional level alarms use high and low alarms, but the levels in large tanks are relatively stable, and even small fluctuations in level can cause significant changes in the volume of raw materials. Therefore, relying solely on level alarm values is insufficient for normal monitoring. Summary of the Invention
[0003] To address the aforementioned issues, this application provides a method and apparatus for alarming the liquid level slope of a storage tank.
[0004] Firstly, this application provides a real-time example of a tank liquid level slope alarm method, which includes the following steps:
[0005] S1: Obtain the monitoring status of the storage tank;
[0006] S2: If the monitoring status is static monitoring, obtain the static calculation slope and perform a static alarm based on the static calculation slope and the static setting slope. If the monitoring status is not static monitoring, proceed to the next step.
[0007] S3: If the monitoring status is dynamic monitoring, obtain the shape of the storage tank;
[0008] S4: If the storage tank is a regular-shaped storage tank, obtain the first dynamic calculation slope, and perform the first dynamic alarm based on the first dynamic calculation slope and the first dynamic setting slope. If the storage tank is an irregular-shaped storage tank, obtain the second dynamic calculation slope, and perform the second dynamic alarm based on the second dynamic calculation slope and the second dynamic setting slope.
[0009] Preferably, if the monitoring status is static monitoring, the static calculated slope is obtained, and static alarms are generated based on the static calculated slope and the static set slope, specifically including:
[0010] S21: Obtain the first liquid level value L1 and the second liquid level value L2 of the solution in the storage tank in two adjacent first sampling periods T1 respectively;
[0011] S22: The static slope K1 is obtained by calculating using the formula K1=|L2-L1| / T1*Q, where Q is a constant;
[0012] S23: Obtain the static set slope Ks1;
[0013] S24: Compare the statically calculated slope K1 and the statically set slope Ks1 to obtain the first comparison value, and perform a static alarm based on the first comparison value.
[0014] Preferably, the change in liquid level and the change in volume of the solution in the regularly shaped storage tank are linear, and the regularly shaped storage tank includes a cylindrical vertical storage tank.
[0015] Preferably, the liquid level change and volume change of the solution in the irregularly shaped storage tank are non-linear, and the irregularly shaped storage tank includes a spherical tank or a horizontal tank.
[0016] Preferably, if the storage tank is a regularly shaped tank, then a first dynamic calculation slope is obtained, and a first dynamic alarm is generated based on the first dynamic calculation slope and a first dynamic set slope, specifically including:
[0017] S41: Obtain the third liquid level value L3 and the fourth liquid level value L4 of the solution in the regular-shaped storage tank in two adjacent second sampling periods T2, respectively;
[0018] S42: The first dynamic slope K2 is obtained by calculating using the formula K2=|L4-L3| / T2*Q, where Q is a constant;
[0019] S43: Obtain the first dynamically set slope Ks2;
[0020] S44: Compare the first dynamic calculated slope K2 and the first dynamic set slope Ks2 to obtain a second comparison value, and perform a first dynamic alarm based on the second comparison value.
[0021] Preferably, if the storage tank is an irregularly shaped tank, a second dynamic calculation slope is obtained, and a second dynamic alarm is generated based on the second dynamic calculation slope and the second dynamic setting slope, specifically including:
[0022] S45: Obtain the first volume V1 and the second volume V2 of the solution in the irregularly shaped storage tank within two adjacent third sampling periods T3, respectively;
[0023] S46: The second dynamic slope K3 is obtained by calculating using the formula K3=|V2-V1| / T*Q, where Q is a constant;
[0024] S47: Obtain the second dynamically set slope Ks3;
[0025] S48: Compare the second dynamic calculation slope K3 and the second dynamic setting slope Ks3 to obtain a third comparison value, and perform a second dynamic alarm based on the third comparison value.
[0026] Preferably, step S45 specifically includes:
[0027] S451: Obtain a tank capacity table corresponding to the volume and height of the solution in an irregularly shaped storage tank;
[0028] S452: Obtain the first height H1 and the second height H2 of the solution in the irregularly shaped storage tank within two adjacent third sampling periods T3;
[0029] S453: Find the first volume V1 corresponding to the first height H1 and the second volume V2 corresponding to the second height H2 from the tank capacity table respectively.
[0030] Secondly, embodiments of this application provide a tank liquid level slope alarm device, including...
[0031] The monitoring acquisition module is used to acquire the monitoring status of the storage tank;
[0032] The static monitoring module is used to obtain the static calculated slope if the monitoring status is static monitoring, and to generate a static alarm based on the static calculated slope and the static set slope. If the monitoring status is not static monitoring, the process continues.
[0033] The shape acquisition module is used to acquire the shape of the storage tank if the monitoring status is dynamic monitoring.
[0034] The dynamic monitoring module obtains a first dynamic calculation slope if the storage tank is a regular-shaped tank, and performs a first dynamic alarm based on the first dynamic calculation slope and the first dynamic setting slope. If the storage tank is an irregular-shaped tank, it obtains a second dynamic calculation slope, and performs a second dynamic alarm based on the second dynamic calculation slope and the second dynamic setting slope.
[0035] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method provided as in the first aspect or any possible implementation of the first aspect.
[0036] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method provided as in the first aspect or any possible implementation thereof.
[0037] The beneficial effects of this invention are as follows: When the monitoring state of the storage tank is static, a static calculation slope is obtained, and a static alarm is triggered based on the static calculation slope and the static set slope. When the monitoring state of the storage tank is dynamic, the shape of the storage tank is obtained. If the storage tank is a regular-shaped tank, a first dynamic calculation slope is obtained, and a first dynamic alarm is triggered based on the first dynamic calculation slope and the first dynamic set slope. If the storage tank is an irregular-shaped tank, a second dynamic calculation slope is obtained, and a second dynamic alarm is triggered based on the second dynamic calculation slope and the second dynamic set slope. Static alarms and dynamic alarms are triggered for the storage tank respectively, enabling more accurate monitoring and alarming of the relevant status of the oil storage tank. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 A flowchart illustrating a tank level slope alarm method provided in this application embodiment;
[0040] Figure 2 A schematic diagram of a tank level slope alarm device provided in this application embodiment;
[0041] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0042] Figure 4 A schematic diagram of a conventional vertical tank static alarm in a tank level slope alarm method provided in this application embodiment;
[0043] Figure 5 A schematic diagram of a conventional vertical tank dynamic alarm in a tank level slope alarm method provided in this application embodiment;
[0044] Figure 6 The tank capacity table of an unconventional storage tank is provided in the tank level slope alarm method of this application embodiment;
[0045] Figure 7 A schematic diagram of the length calibration segmentation of an unconventional storage tank in a storage tank level slope alarm method provided in this application embodiment;
[0046] Figure 8 This is a schematic diagram of the slope monitoring screen in a tank liquid level slope alarm method provided in an embodiment of this application. Detailed Implementation
[0047] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0048] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.
[0049] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
[0050] Please see Figure 1 . Figure 1 This is a flowchart illustrating a tank level slope alarm method provided in an embodiment of this application. In this embodiment, the method includes the following steps:
[0051] S1: Obtain the monitoring status of the storage tank;
[0052] S2: If the monitoring status is static monitoring, obtain the static calculation slope and perform a static alarm based on the static calculation slope and the static setting slope. If the monitoring status is not static monitoring, proceed to the next step.
[0053] S3: If the monitoring status is dynamic monitoring, obtain the shape of the storage tank;
[0054] S4: If the storage tank is a regular-shaped storage tank, obtain the first dynamic calculation slope, and perform the first dynamic alarm based on the first dynamic calculation slope and the first dynamic setting slope. If the storage tank is an irregular-shaped storage tank, obtain the second dynamic calculation slope, and perform the second dynamic alarm based on the second dynamic calculation slope and the second dynamic setting slope.
[0055] In this application embodiment, a slope alarm effectively solves the problem of liquid level fluctuation alarms in storage tanks during both static and dynamic states. Given the increasing safety and environmental awareness within the industry, and based on user-proposed ideas and concepts, drawing on oil product transportation and existing patented product technologies, this application develops static liquid level alarms and dynamic slope alarms on a DCS platform to better monitor changes in storage tank liquid levels, using a specific project as a case study. This function is developed on the DCS system to meet normal monitoring needs. This application solves the problem of liquid level deviation alarms in storage tanks during both static (no feeding / discharging) and dynamic (feeding / discharging) states. Due to the large volume of storage tanks, liquid levels often fluctuate. The application monitors the liquid level deviation during static states and compares the calculated slope value with the set value during dynamic states to trigger alarms. By programmatically configuring the tank capacity table into the DCS system, the application achieves more accurate monitoring of the relevant status alarms of the oil storage tank.
[0056] In this embodiment, storage tanks are generally classified as static and dynamic. Static tanks are characterized by no material feeding or discharging, while dynamic tanks are characterized by feeding or discharging, or both simultaneously. Step S1, obtaining the monitoring status of the storage tank, specifically includes: receiving storage tank monitoring information input by the user, and then obtaining the monitoring status of the storage tank from this information. When the storage tank monitoring information is static, it indicates that the storage tank is in a static monitoring state; when the storage tank monitoring information is dynamic, it indicates that the storage tank is in a dynamic monitoring state. Alternatively, step S1 can also include: obtaining the storage tank's feeding or discharging information. If both feeding and discharging information are 0, it indicates that the storage tank is neither feeding nor discharging, and the storage tank is in a static monitoring state. If the feeding and / or discharging information is greater than 0, it indicates that the storage tank is feeding or discharging, or both simultaneously, and the storage tank is in a dynamic monitoring state.
[0057] In one possible implementation, if the monitoring status is static monitoring, the static calculated slope is obtained, and a static alarm is generated based on the static calculated slope and the static set slope, specifically including:
[0058] S21: Obtain the first liquid level value L1 and the second liquid level value L2 of the solution in the storage tank in two adjacent first sampling periods T1 respectively;
[0059] S22: The static slope K1 is obtained by calculating using the formula K1=|L2-L1| / T1*Q, where Q is a constant;
[0060] S23: Obtain the static set slope Ks1;
[0061] S24: Compare the statically calculated slope K1 and the statically set slope Ks1 to obtain the first comparison value, and perform a static alarm based on the first comparison value.
[0062] In this application, the static monitoring alarm requirement is that the liquid level values are L1 and L2 within two adjacent sampling period times T, and the liquid level change rate, i.e., the slope formula, is K1=|L2-L1| / T*Q (coefficient); the operator sets the static boundary slope as Ks1, and uses K and Ks to compare for alarm output monitoring, that is, when the first comparison value is greater than the first threshold, a static alarm is triggered.
[0063] In the embodiments of this application, see Figure 4 , Figure 4 This diagram illustrates a conventional static alarm for a vertical tank in a tank level slope alarm method provided in this application embodiment. The DED hysteresis function block is used for level time deviation alarm. The requirement here is a 5mm alarm, and the hysteresis time for the receiving / discharging / cutting button is set to 120 seconds.
[0064] In this embodiment, obtaining the tank shape specifically includes: receiving tank shape information input by the user, thereby obtaining the tank shape from the tank shape information; when the tank monitoring information indicates a regular shape, it indicates that the tank is a regular-shaped tank; when the tank monitoring information indicates an irregular shape, it indicates that the tank is an irregular-shaped tank. Dynamic monitoring alarms are divided into two types: one for regular-shaped tanks and the other for irregular-shaped tanks. Regular-shaped tanks are conventional cylindrical vertical tanks, etc., where liquid level changes and volume changes are linear, and the deviation range is within acceptable limits.
[0065] In one possible implementation, the change in liquid level and the change in volume of the solution in the regularly shaped storage tank are linear, and the regularly shaped storage tank includes a cylindrical vertical storage tank.
[0066] In one possible implementation, the liquid level change and volume change of the solution in the irregularly shaped storage tank are non-linear, and the irregularly shaped storage tank includes a spherical tank or a horizontal tank.
[0067] In one possible implementation, if the storage tank is a regularly shaped tank, a first dynamic calculation slope is obtained, and a first dynamic alarm is generated based on the first dynamic calculation slope and a first dynamic set slope, specifically including:
[0068] S41: Obtain the third liquid level value L3 and the fourth liquid level value L4 of the solution in the regular-shaped storage tank in two adjacent second sampling periods T2, respectively;
[0069] S42: The first dynamic slope K2 is obtained by calculating using the formula K2=|L4-L3| / T2*Q, where Q is a constant;
[0070] S43: Obtain the first dynamically set slope Ks2;
[0071] S44: Compare the first dynamic calculated slope K2 and the first dynamic set slope Ks2 to obtain a second comparison value, and perform a first dynamic alarm based on the second comparison value.
[0072] In the embodiments of this application, see Figure 5 , Figure 5 This diagram illustrates a dynamic alarm for a conventional vertical tank in a tank level slope alarm method provided in this application embodiment. A dynamic alarm for a conventional vertical tank occurs when there is a feeding or discharging action. Since it is a conventional vertical tank, the volume and liquid level have a linear relationship, so the slope can be calculated using the liquid level. Three liquid levels are recorded here: the current liquid level, the liquid level 120 seconds ago, and the liquid level 240 seconds ago. Simultaneously, high and low liquid level alarms are used for receiving and discharging materials to prevent exceeding the limits. The slope calculation principle is as follows: The difference between the current volume (liquid level) and the volume (liquid level) 120 seconds ago is V1; the difference between the volume (liquid level) 120 seconds ago and the volume (liquid level) 240 seconds ago is V2. The difference between V1 and V2 is divided by a coefficient K (adjustable), then divided by a time coefficient of 120 seconds, converted to a percentage, and multiplied by 100 to obtain the slope value. The absolute value of the slope value is compared with the set value. When receiving or discharging materials, if the slope switch is activated and the value exceeds the set value, an alarm is output; that is, if the second comparison value is greater than the second threshold, a second dynamic alarm is triggered. The above is a conventional static and dynamic alarm implementation scheme for vertical tanks. Since the liquid level and volume are linearly proportional, the liquid level can be used for calculation.
[0073] In one possible implementation, if the storage tank is an irregularly shaped tank, a second dynamic calculation slope is obtained, and a second dynamic alarm is generated based on the second dynamic calculation slope and the second dynamic setting slope, specifically including:
[0074] S45: Obtain the first volume V1 and the second volume V2 of the solution in the irregularly shaped storage tank within two adjacent third sampling periods T3, respectively;
[0075] S46: The second dynamic slope K3 is obtained by calculating using the formula K3=|V2-V1| / T*Q, where Q is a constant;
[0076] S47: Obtain the second dynamically set slope Ks3;
[0077] S48: Compare the second dynamic calculation slope K3 and the second dynamic setting slope Ks3 to obtain a third comparison value, and perform a second dynamic alarm based on the third comparison value.
[0078] In this embodiment, another type of irregular storage tank is mainly a spherical tank or a horizontal tank. The changes in liquid level and volume are non-linear, so the liquid level calculation formula cannot be used. For example, a 1m spherical tank corresponds to a liquid level of 10 cubic meters, while a 2m spherical tank might correspond to 30 cubic meters. Therefore, the boundary Ks varies greatly at different liquid levels. Analysis shows that the best method is to use the tank capacity instead of the liquid level for calculation. The volume changes V1 and V2 within two sampling periods T3, and the rate of change of volume, i.e., the slope, is calculated using the formula K3 = |V2 - V1| / T*Q (coefficient). The operator sets the dynamic boundary slope to Ks3, and compares K3 with Ks3 for alarm output monitoring. Specifically, a second dynamic alarm is triggered when the third comparison value exceeds the third threshold.
[0079] In one possible implementation, step S45 specifically includes:
[0080] S451: Obtain a tank capacity table corresponding to the volume and height of the solution in an irregularly shaped storage tank;
[0081] S452: Obtain the first height H1 and the second height H2 of the solution in the irregularly shaped storage tank within two adjacent third sampling periods T3;
[0082] S453: Find the first volume V1 corresponding to the first height H1 and the second volume V2 corresponding to the second height H2 from the tank capacity table respectively.
[0083] In this application embodiment, for the implementation of the unconventional spherical horizontal tank scheme, the static solution is the same as that for conventional storage tanks. However, in dynamic situations, because the liquid level and volume have a non-linear relationship, the liquid level cannot be used for slope calculation. In this case, the tank capacity table of the storage tank is required. This table is usually calibrated by relevant units at the request of the storage tank manufacturer. (See [link to relevant documentation]). Figure 6 , Figure 6 This application provides a method for alarming the liquid level slope of a storage tank using a tank capacity table for unconventional storage tanks. The calculation method is the same as for conventional storage tank dynamics, simply replacing the liquid level with the volume in the tank capacity table. The focus here is on the conversion of tank capacity volume, specifically how to convert the liquid level into the volume in the table for calculation. Since each storage tank's capacity table has nearly 1500-2000 parameters, previous implementations couldn't input all parameters due to character limitations. The solution devised was to read the data segmented using a line chart format and extend the calibration height intervals; for example, initially calibrating a segment in 1cm increments, this was changed to 10cm intervals. (See [link to relevant documentation]). Figure 7 , Figure 7 This diagram illustrates the length segmentation of an unconventional storage tank in a tank level slope alarm method provided in this application. The specific segmentation needs to be determined based on the tank capacity table; the more precise the segmentation, the better, ultimately ensuring a one-to-one correspondence with the tank capacity table. Thus, IN connects to the liquid level, and OUT represents the volume, allowing the slope to be calculated using the dynamic calculation methods for conventional storage tanks. See also... Figure 8 , Figure 8 This is a schematic diagram of the slope monitoring screen in a tank level slope alarm method provided in this application embodiment. The slope monitoring screen includes receiving, paying, interlocking, red arrows binding corresponding switching buttons, and setting the liquid level, as mentioned above. This monitoring screen allows the owner to monitor alarm information in any state of the tank.
[0084] In the implementation of this application, see Figure 7 , Figure 7 This diagram illustrates the length calibration segmentation of an unconventional storage tank in a tank level slope alarm method provided in this application embodiment. Through the above scheme, in practical application, the tank's static or dynamic state is determined by the receiving / paying switch. Static state occurs when there is neither receiving nor paying, and the static alarm logic described above is used for monitoring and alarming. Dynamic state occurs when there is receiving or paying, or both simultaneously, and the dynamic alarm logic described above is used for monitoring and alarming. Setting the liquid level and corresponding volume allows for more intuitive monitoring of the tank volume. The slope setting is the slope alarm value setting; the actual slope is compared with the slope alarm value using the switching switch to achieve alarm detection.
[0085] The following will be combined with the appendix Figure 2 This application provides a detailed description of a tank level slope alarm device according to an embodiment. It should be noted that... Figure 2 The above-described tank level slope alarm device is used to perform the functions described in this application. Figure 1 The methods shown in the embodiments are illustrated for ease of explanation, showing only the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figure 1 The example shown.
[0086] Please see Figure 2 , Figure 2 This is a schematic diagram of the structure of a tank liquid level slope alarm device provided in an embodiment of this application. Figure 2 As shown, the device includes
[0087] The monitoring acquisition module 201 is used to acquire the monitoring status of the storage tank;
[0088] The static monitoring module 202 is used to obtain the static calculated slope if the monitoring status is static monitoring status, and to perform static alarm based on the static calculated slope and the static set slope. If the monitoring status is not static monitoring status, it will proceed to the next step.
[0089] The shape acquisition module 203 is used to acquire the shape of the storage tank if the monitoring status is dynamic monitoring status.
[0090] The dynamic monitoring module 204 obtains a first dynamic calculation slope if the storage tank is a regular-shaped storage tank, and performs a first dynamic alarm based on the first dynamic calculation slope and the first dynamic setting slope. If the storage tank is an irregular-shaped storage tank, it obtains a second dynamic calculation slope, and performs a second dynamic alarm based on the second dynamic calculation slope and the second dynamic setting slope.
[0091] In this application, we present an active monitoring solution based on a DCS system. This solution addresses the issue of level deviation alarms in storage tanks during both static (no feeding / discharging) and dynamic (feeding / discharging) conditions. Due to the large volume of the storage tanks, the level often fluctuates. This solution monitors the level deviation during static conditions and compares the calculated slope value with the set value during dynamic conditions to trigger an alarm. By configuring the tank capacity table into the DCS system through a program, we can more accurately monitor the relevant status alarms of the oil storage tanks.
[0092] Those skilled in the art will clearly understand that the technical solutions of the embodiments of this application can be implemented by means of software and / or hardware. In this specification, "unit", "module" and "part" refer to software and / or hardware that can independently complete or cooperate with other components to complete a specific function, wherein the hardware may be, for example, a field-programmable gate array (FPGA), an integrated circuit (IC), etc.
[0093] Each processing unit and / or module in the embodiments of this application can be implemented by an analog circuit that implements the functions described in the embodiments of this application, or by software that executes the functions described in the embodiments of this application.
[0094] See Figure 3 It shows a schematic diagram of the structure of an electronic device according to an embodiment of this application, which can be used to implement... Figure 1 The method in the illustrated embodiment. (As shown) Figure 3 As shown, the electronic device 300 may include: at least one central processing unit 301, at least one network interface 304, user interface 303, memory 305, and at least one communication bus 302.
[0095] The communication bus 302 is used to enable communication between these components.
[0096] The user interface 303 may include a display screen and a camera. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0097] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0098] The central processing unit 301 may include one or more processing cores. The central processing unit 301 connects to various parts within the electronic device 300 using various interfaces and lines. It executes various functions of the terminal 300 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and by calling data stored in the memory 305. Optionally, the central processing unit 301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The central processing unit 301 may integrate one or a combination of several of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display on the screen; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the central processing unit 301 and may be implemented as a separate chip.
[0099] The memory 305 may include random access memory (RAM) or read-only memory. Optionally, the memory 305 may include a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 305 may also be at least one storage device located remotely from the aforementioned central processing unit 301. Figure 3 As shown, the memory 305, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.
[0100] exist Figure 3In the illustrated electronic device 300, the user interface 303 is mainly used to provide an input interface for the user and to acquire user input data; while the central processing unit 301 can be used to call a tank level slope alarm application stored in the memory 305 and specifically perform the following operations:
[0101] S1: Obtain the monitoring status of the storage tank;
[0102] S2: If the monitoring status is static monitoring, obtain the static calculation slope and perform a static alarm based on the static calculation slope and the static setting slope. If the monitoring status is not static monitoring, proceed to the next step.
[0103] S3: If the monitoring status is dynamic monitoring, obtain the shape of the storage tank;
[0104] S4: If the storage tank is a regular-shaped storage tank, obtain the first dynamic calculation slope, and perform the first dynamic alarm based on the first dynamic calculation slope and the first dynamic setting slope. If the storage tank is an irregular-shaped storage tank, obtain the second dynamic calculation slope, and perform the second dynamic alarm based on the second dynamic calculation slope and the second dynamic setting slope.
[0105] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0106] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0107] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0108] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0109] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0110] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0111] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0112] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0113] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
Claims
1. A method for alarming the liquid level slope of a storage tank, characterized in that, Includes the following steps: S1: Obtain the monitoring status of the storage tank; S2: If the monitoring status is static monitoring, obtain the static calculation slope and perform a static alarm based on the static calculation slope and the static setting slope. If the monitoring status is not static monitoring, proceed to the next step. S3: If the monitoring status is dynamic monitoring, obtain the shape of the storage tank; S4: If the storage tank is a regular-shaped storage tank, obtain the first dynamic calculation slope, and perform the first dynamic alarm based on the first dynamic calculation slope and the first dynamic setting slope. If the storage tank is an irregular-shaped storage tank, obtain the second dynamic calculation slope, and perform the second dynamic alarm based on the second dynamic calculation slope and the second dynamic setting slope. The liquid level slope refers to the rate of change of liquid level; the static state refers to the state of the storage tank when there is no feeding or discharging action; and the dynamic state refers to the state of the storage tank when there is feeding or discharging action.
2. The method for alarming the liquid level slope of a storage tank as described in claim 1, characterized in that, If the monitoring status is static monitoring, the static calculated slope is obtained, and static alarms are generated based on the static calculated slope and the static set slope, specifically including: S21: Obtain the first liquid level value L1 and the second liquid level value L2 of the solution in the storage tank in two adjacent first sampling periods T1 respectively; S22: The static slope K1 is obtained by calculating using the formula K1=|L2-L1| / T1*Q, where Q is a constant; S23: Obtain the static set slope Ks1; S24: Compare the statically calculated slope K1 and the statically set slope Ks1 to obtain the first comparison value, and perform a static alarm based on the first comparison value.
3. A tank level slope alarm method as described in claim 1 or 2, characterized in that: The liquid level change and volume change of the solution in the regularly shaped storage tank are linear, and the regularly shaped storage tank includes a cylindrical vertical storage tank.
4. The tank level slope alarm method as described in claim 1 or 2, characterized in that: The liquid level change and volume change of the solution in the irregularly shaped storage tank are non-linear, and the irregularly shaped storage tank includes spherical tanks or horizontal tanks.
5. A method for alarming the liquid level slope of a storage tank as described in claim 1 or 2, characterized in that, If the storage tank is a regular-shaped tank, the first dynamic calculation slope is obtained, and the first dynamic alarm is generated based on the first dynamic calculation slope and the first dynamic set slope, specifically including: S41: Obtain the third liquid level value L3 and the fourth liquid level value L4 of the solution in the regular-shaped storage tank in two adjacent second sampling periods T2, respectively; S42: The first dynamic slope K2 is obtained by calculating using the formula K2=|L4-L3| / T2*Q, where Q is a constant; S43: Obtain the first dynamically set slope Ks2; S44: Compare the first dynamic calculated slope K2 and the first dynamic set slope Ks2 to obtain a second comparison value, and perform a first dynamic alarm based on the second comparison value.
6. A method for alarming the liquid level slope of a storage tank as described in claim 1 or 2, characterized in that, If the storage tank is an irregularly shaped tank, a second dynamic calculation slope is obtained, and a second dynamic alarm is generated based on the second dynamic calculation slope and the second dynamic setting slope. Specifically, this includes: S45: Obtain the first volume V1 and the second volume V2 of the solution in the irregularly shaped storage tank within two adjacent third sampling periods T3, respectively; S46: The second dynamic slope K3 is obtained by calculating using the formula K3=|V2-V1| / T*Q, where Q is a constant; S47: Obtain the second dynamically set slope Ks3; S48: Compare the second dynamic calculation slope K3 and the second dynamic setting slope Ks3 to obtain a third comparison value, and perform a second dynamic alarm based on the third comparison value.
7. The method for alarming the liquid level slope of a storage tank as described in claim 6, characterized in that, Step S45 specifically includes: S451: Obtain a tank capacity table corresponding to the volume and height of the solution in an irregularly shaped storage tank; S452: Obtain the first height H1 and the second height H2 of the solution in the irregularly shaped storage tank within two adjacent third sampling periods T3; S453: Find the first volume V1 corresponding to the first height H1 and the second volume V2 corresponding to the second height H2 from the tank capacity table respectively.
8. A tank liquid level slope alarm device, characterized in that: include The monitoring acquisition module is used to acquire the monitoring status of the storage tank; The static monitoring module is used to obtain the static calculated slope if the monitoring status is static monitoring, and to generate a static alarm based on the static calculated slope and the static set slope. If the monitoring status is not static monitoring, the process continues. The shape acquisition module is used to acquire the shape of the storage tank if the monitoring status is dynamic monitoring. The dynamic monitoring module obtains a first dynamic calculation slope if the storage tank is a regular-shaped storage tank, and performs a first dynamic alarm based on the first dynamic calculation slope and the first dynamic setting slope. If the storage tank is an irregular-shaped storage tank, it obtains a second dynamic calculation slope, and performs a second dynamic alarm based on the second dynamic calculation slope and the second dynamic setting slope. The liquid level slope refers to the rate of change of liquid level; the static state refers to the state of the storage tank when there is no feeding or discharging action; and the dynamic state refers to the state of the storage tank when there is feeding or discharging action.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Method for monitoring variation of liquid, equipment and fuel oil storage system
CN102564524A
Dynamic window analysis method, system and equipment for liquid inlet and outlet states of storage tank
CN115861232A