Gas station equipment detection system and detection method

By employing a dual-channel design for the sensor module and a moving average filtering process in the PLC control module, the problem of data interruption caused by sensor failure in the gas station equipment detection system was solved, achieving dynamic fault tolerance and data continuity, and ensuring the stable operation of the gas station equipment.

CN121522987APending Publication Date: 2026-02-13HUNAN ZHONGYI BANGDA ENERGY TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202610046539.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-14
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

In existing gas station equipment detection systems, sensor failures cause data interruptions, there is a lack of backup data sources, and the PLC system cannot achieve dynamic fault tolerance, relying on manual intervention.

Method used

The sensor module adopts a dual-channel design, including a primary channel and a backup channel. The PLC control module performs moving average filtering and relative deviation rate calculation to achieve dynamic fault tolerance, automatically switch to the backup channel, and generate audible and visual alarm signals.

Benefits of technology

This reduces the risk of data interruption, ensures the continuity and accuracy of data, enables dynamic fault tolerance of gas station equipment data, allows for timely detection and handling of channel faults, and ensures safe equipment operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121522987A_ABST
    Figure CN121522987A_ABST
Patent Text Reader

Abstract

The invention relates to the field of industrial equipment detection, and provides a gas station equipment detection system and detection method. The gas station equipment detection system comprises a sensor module, a transmission module and a PLC control module. Wherein the sensor module is provided with a main channel and a standby channel which are respectively responsible for detecting liquid level, pressure and temperature data of gas station equipment and generating a main analog signal and a standby analog signal according to the data. And the PLC control module performs moving average filtering processing on the main detection data and the standby detection data to obtain a main filtering value and a standby filtering value, then calculates a relative deviation ratio, compares the relative deviation ratio with a safety threshold value, and finally outputs an effective detection value to realize a dynamic fault-tolerant function of the system. According to the invention, through dual-channel detection and data comparison processing, the accuracy and continuity of the detection data of the gas station equipment are guaranteed, and the detection abnormity can be timely found and alarmed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of industrial equipment detection, in particular to a gas station equipment detection system and a detection method. BACKGROUND

[0002] In industrial production, the stable operation of gas station equipment is crucial, which involves energy supply and production safety of many industries. With the continuous improvement of industrial automation, the demand for real-time detection of gas station equipment operation status is increasing. Monitoring various data of gas station equipment, including liquid level, pressure, temperature, etc., can timely find potential hazards of the equipment, prevent faults, ensure stable operation of the gas station, and thus improve production efficiency and reduce safety risks, which has a positive significance for maintaining the stability and efficiency of the entire industrial production chain.

[0003] Currently, the gas station equipment detection system mostly adopts single sensor configuration, that is, only one sensor is installed at each detection point to collect corresponding operation parameter data. This configuration can meet the basic detection needs to some extent, and can obtain key parameters such as liquid level, pressure, temperature, etc. of the gas station equipment in real time, and transmit the data to the PLC system for processing and monitoring. As the core control unit of the detection system, the PLC system can analyze and judge the collected data according to the preset logic, realize real-time monitoring of the operation status of the gas station equipment, and simple fault alarm function.

[0004] For the above related technology, the sensor adopts single configuration, once the sensor fails, the detection data will be interrupted due to the lack of backup data source. This leads to the PLC system unable to realize dynamic fault tolerance, and the fault switching and data recovery of the PCL system completely depend on manual intervention. SUMMARY

[0005] In order to reduce the risk of interruption of gas station equipment detection data and realize dynamic fault tolerance of gas station equipment data, the present application provides a gas station equipment detection system and a detection method.

[0006] On the one hand, the present application provides a gas station equipment detection system, which adopts the following technical solution: A gas station equipment detection system, comprising: A sensor module comprising a main channel and a backup channel, the main channel is used for detecting gas station equipment data to generate a main analog signal, the backup channel is used for detecting the gas station equipment data to generate a backup analog signal, and the gas station equipment data includes liquid level data, pressure data and temperature data; The PLC control module is connected with the sensor module and is configured to determine an effective detection value according to the main analog signal and the backup analog signal, wherein the main analog signal is converted into main detection data; the backup analog signal is converted into backup detection data; the main detection data is subjected to sliding average filtering to generate a main filter value; the backup detection data is subjected to sliding average filtering to generate a backup filter value; an absolute difference value of the main filter value and the backup filter value is calculated; an average reference value of the main filter value and the backup filter value is calculated; a ratio of the absolute difference value and the average reference value is converted into a relative deviation rate; when the relative deviation rate is less than or equal to a safety threshold value, the main filter value is output as the effective detection value; and when the relative deviation rate is greater than the safety threshold value, the backup filter value is output as the effective detection value, and an audible and visual alarm signal is generated.

[0007] By adopting the technical scheme, the liquid level data, pressure data and temperature data of the gas station equipment are accurately detected through the double-channel design of the sensor module, when the main channel data is abnormal, the PLC control module can automatically switch to the backup channel, thereby reducing the risk of interruption of the detection data of the gas station equipment, and dynamic fault tolerance of the data of the gas station equipment is realized.

[0008] Preferably, the PLC control module is configured to perform sliding average filtering on the main detection data to generate a main filter value, and perform sliding average filtering on the backup detection data to generate a backup filter value, which is expressed as follows: wherein V A represents the main filter value, V B represents the backup filter value, N represents the size of the filter window, k represents the current sampling serial number, and i represents the index variable of summation. represents the original main detection data of the main channel at the i-th sampling, represents the original backup detection data of the backup channel at the i-th sampling.

[0009] By adopting the technical scheme, the detection data of the main channel and the backup channel is subjected to sliding average filtering, so that the data can be effectively smoothed, and random noise caused by environmental interference, equipment jitter or sensor self-error and the like can be filtered out.

[0010] Preferably, the PLC control module is configured to calculate an absolute difference value of the main filter value and the backup filter value, and calculate an average reference value of the main filter value and the backup filter value, and further convert a ratio of the absolute difference value and the average reference value into a relative deviation rate, which is expressed as follows: wherein represents the relative deviation rate.

[0011] By employing the above technical solution, the absolute difference between the primary filter value and the backup filter value, as well as the average reference value, are calculated. The ratio of the absolute difference to the average reference value is then converted into a relative deviation rate, which can more accurately quantify the degree of difference between the detection data of the primary channel and the backup channel.

[0012] Preferably, the PLC control module has a cyclic scanning cycle, and in each cyclic scanning cycle, the PLC control module determines a valid detection value based on the primary analog signal and the backup analog signal.

[0013] By adopting the above technical solution and setting a cyclic scanning cycle, the PLC control module can continuously detect and process the analog signals of the main channel and the backup channel at fixed time intervals, thereby ensuring the real-time and continuous nature of the detection data.

[0014] Preferably, the primary channel includes a first level gauge, a first pressure sensor, and a first temperature probe, and the backup channel includes a second level gauge, a second pressure sensor, and a second temperature probe. The first level gauge and the second level gauge are used to detect the level data, the first pressure sensor and the second pressure sensor are used to detect the pressure data, and the first temperature probe and the second temperature probe are used to detect the temperature data.

[0015] By adopting the above technical solution, independent level gauges, pressure sensors and temperature probes are configured in the main channel and the backup channel respectively, realizing dual detection of liquid level, pressure and temperature data of gas station equipment.

[0016] Preferably, the PLC control module is located inside the control box, and the IP protection level of the PLC control module interface is greater than or equal to 65.

[0017] By adopting the above technical solution, and by placing the PLC control module inside the control box and ensuring that its interface IP protection level is greater than or equal to 65, dust, moisture and other external impurities can be effectively prevented from entering the interface of the PLC control module, ensuring the normal operation of the entire gas station equipment detection system and reducing the risk of system failure caused by environmental factors.

[0018] Preferably, the gas station equipment detection system further includes a transmission module located between the sensor module and the PLC control module for transmitting the main detection signal and the backup detection signal; the transmission module includes a shielded cable and a filter circuit, with the filter circuit located at the end of the shielded cable.

[0019] By adopting the above technical solution, and by setting up a transmission module between the sensor module and the PLC control module, and using shielded cables and filtering circuits, interference and noise during signal transmission can be effectively reduced. Shielded cables can prevent external electromagnetic interference from affecting signal transmission, while the filtering circuit can further filter out high-frequency interference components in the signal, improving signal accuracy.

[0020] On the other hand, this application provides a method for testing gas station equipment, comprising the following steps: S1. Detect gas station equipment data through the main channel to generate a main analog signal, and detect gas station equipment data through the backup channel to generate a backup analog signal. The gas station equipment data includes liquid level data, pressure data, and temperature data. S2. Convert the primary analog signal into primary detection data, and convert the backup analog signal into backup detection data; S3. Perform a moving average filter on the primary detection data to generate a primary filter value, and perform a moving average filter on the backup detection data to generate a backup filter value. S4. Calculate the absolute difference between the primary filter value and the backup filter value, and calculate the average reference value between the primary filter value and the backup filter value; S5. Convert the ratio of the absolute difference to the average benchmark value into a relative deviation rate; S6. When the relative deviation rate is less than or equal to the safety threshold, output the primary filter value; S7. When the relative deviation rate is greater than the safety threshold, output the backup filter value and generate an audible and visual alarm signal.

[0021] The above technical solution achieves reliable detection of gas station equipment data through standardized procedures. First, data from the gas station equipment is collected through primary and backup channels, generating primary and backup analog signals. The PLC control module converts the primary and backup analog signals into primary and backup detection data after analog-to-digital conversion. Then, a moving average filter is applied to generate primary and backup filtered values. Next, the absolute difference and average reference value between the primary and backup filtered values ​​are calculated, and the ratio of the absolute difference to the average reference value is converted into a relative deviation rate. Finally, the relative deviation rate is compared with a safety threshold to determine the valid detection value. This method, through primary and backup channel redundancy design and data processing logic, ensures the reliability and accuracy of the detection data, and can promptly detect and handle channel faults, guaranteeing the safe operation of the gas station equipment.

[0022] Preferably, step S1 includes: S11. Detect the liquid level, pressure, and temperature data of the gas station equipment; S12. Transmit liquid level data, pressure data, and temperature data to the main channel and the backup channel; S13. Generate a primary analog signal from the liquid level data, pressure data, and temperature data through the primary channel, and generate a backup analog signal through the backup channel. In step S11, the first liquid level data of the gas station equipment is detected by the first magnetostrictive level gauge, the first pressure data of the gas station equipment is detected by the first pressure sensor, and the first temperature data of the gas station equipment is detected by the first platinum resistance temperature probe; the second liquid level data of the gas station equipment is detected by the second magnetostrictive level gauge, the second pressure data of the gas station equipment is detected by the second pressure sensor, and the second temperature data of the gas station equipment is detected by the second platinum resistance temperature probe. In step S12, the first liquid level data, the first pressure data, and the first temperature data are all transmitted to the main channel, and the second liquid level data, the second pressure data, and the second temperature data are all transmitted to the backup channel. In step S13, the primary channel generates a primary analog signal from the first liquid level data, the first pressure data, and the first temperature data through a signal converter, and the backup channel generates a backup analog signal from the second liquid level data, the second pressure data, and the second temperature data through a signal converter.

[0023] By adopting the above technical solution, the data acquisition steps of the gas station equipment have been further refined, the sensors corresponding to the main channel and the backup channel have been clarified, and two independent data acquisition channels have been realized, ensuring the accuracy and comparability of the main detection data and the backup detection data.

[0024] Preferably, in the main step S2, the analog signals received by the primary channel and the backup channel are converted into digital detection data by the analog-to-digital converter in the PLC control module. Specifically, the analog-to-digital converter samples and quantizes the primary analog signal, converting the continuous analog signal into discrete primary detection data; the analog-to-digital converter also samples and quantizes the backup analog signal, converting the continuous analog signal into discrete backup detection data.

[0025] The above technical solution further refines the data conversion process from analog to digital and clarifies that this task is performed by the PLC control module. This design ensures that the primary and backup analog signals are processed in the same high-precision analog-to-digital conversion unit, guaranteeing the consistency and synchronization of sampling and quantization.

[0026] Preferably, in main step S3, the digital processing unit performs a moving average filter on the primary and backup detection data from the analog-to-digital conversion unit, generating primary and backup filter values. The moving average filter is achieved by storing a preset number of historical sampled values ​​and calculating their arithmetic mean. The PLC control module internally provides a data buffer for the primary and backup channels to store the most recent N historical sampled values. The parameter N is an integer that can be adjusted according to the on-site working conditions, for example, N=5. After a new sampled value is obtained in the current scan cycle, the new sampled value is pushed into the data buffer, while the oldest sampled value is removed. Subsequently, the PLC control module calculates the arithmetic mean of the N sampled values ​​in the buffer, as shown in the following formula: For primary channel A: For backup channel B: Among them, V A V represents the primary filter value. B Here, represents the backup filter value, N represents the size of the filter window, k represents the current sampling number, and i represents the index variable for summation. This represents the original primary detection data of the primary channel during the i-th sampling. This represents the original backup detection data of the backup channel during the i-th sampling.

[0027] The above technical solution further refines the specific implementation of data smoothing, effectively improving data stability and anti-interference capability through moving average filtering. This method utilizes a configurable data buffer and filtering window to perform real-time smoothing of primary and backup detection data, ensuring that subsequent deviation calculations are based on stable and reliable filtered values.

[0028] Preferably, in main steps S4 and S5, main step S4 obtains the difference between the primary filter value and the backup filter value, takes the absolute difference, and calculates the arithmetic mean of the primary filter value and the backup filter value as the average reference value; main step S5 converts the ratio of the absolute difference to the average reference value into a relative deviation rate. It can be represented by the following formula: in, This represents the relative deviation rate.

[0029] By adopting the above technical solution, the quantitative standards for fault diagnosis are further refined. By calculating the relative deviation rate between the primary and backup filter values, the consistency of channel data is measured by the relative deviation rate, thereby improving the accuracy of fault early warning.

[0030] Preferably, in main step S6, when the relative deviation rate is less than or equal to the safety threshold, the logic control unit determines that both the primary channel and the backup channel are working normally, and the primary filter value and the backup filter value are basically the same. The logic control unit defaults to accepting the primary filter value as the effective detection value. In main step S7, when the relative deviation rate is greater than the safety threshold, the logic control unit automatically discards the primary channel that is determined to be potentially faulty, switches to the backup channel as the effective detection value, and generates an audible and visual alarm signal for sensor module failure.

[0031] By adopting the above technical solution, the system's response and handling process for faults is further refined, achieving seamless switching of detection data and timely alarms. By comparing the relative deviation rate with a safety threshold, when the relative deviation rate exceeds the safety threshold, the logic control unit can quickly and automatically discard abnormal data, switch to the backup channel, and generate an audible and visual alarm signal for sensor module failure, ensuring the continuity and effectiveness of the detection data.

[0032] In summary, this application includes at least one of the following beneficial technical effects: 1. Through the dual-channel design of the sensor module, the liquid level, pressure and temperature data of the gas station equipment are accurately detected. When the data of the main channel is abnormal, the PLC control module can automatically switch to the backup channel, reducing the risk of interruption of the detection data of the gas station equipment, and thus realizing dynamic fault tolerance of the gas station equipment data. 2. By performing moving average filtering on the detection data of the primary and backup channels, the data can be effectively smoothed and random noise caused by environmental interference, equipment vibration or sensor error can be filtered out. 3. By calculating the absolute difference between the primary filter value and the backup filter value, as well as the average reference value, and converting the ratio of the absolute difference to the average reference value into a relative deviation rate, the degree of difference between the detection data of the primary channel and the backup channel can be quantified. 4. By setting up a transmission module between the sensor module and the PLC control module, and using shielded cables and filtering circuits, interference and noise during signal transmission can be effectively reduced. Shielded cables can prevent external electromagnetic interference from affecting signal transmission, while filtering circuits can further filter out high-frequency interference components in the signal, improving signal accuracy. Attached Figure Description

[0033] Figure 1 This is a schematic diagram of a gas station equipment testing system according to an embodiment of this application; Figure 2 yes Figure 1 The circuit schematic of the sensor module in the image; Figure 3 yes Figure 1A schematic diagram of the visualization module in the document; Figure 4 This is a schematic flowchart of the main steps of a gas station equipment testing method according to an embodiment of this application.

[0034] Explanation of reference numerals in the attached figures: 10, sensor module; 11, first liquid level and pressure gauge; 12, second liquid level and pressure gauge; 13, platinum resistance temperature probe; 20, transmission module; 30, PLC control module; 40, visualization module. Detailed Implementation

[0035] The following is in conjunction with the appendix Figures 1 to 4 This application will be described in further detail.

[0036] This application describes a gas station equipment testing system. (Refer to...) Figure 1 The system mainly consists of a sensor module 10, a transmission module 20, a PLC (Programmable Logic Controller) control module 30, and a visualization module 40. The sensor module 10 collects data from the gas station equipment and converts it into analog signals. The transmission module 20 then transmits these analog signals from the sensor module 10 to the PLC control module 30. Upon receiving the signals, the PLC control module 30 performs data preprocessing, dynamic deviation diagnosis, and channel switching control. The visualization module 40 receives the processing results from the PLC control module 30, providing operators with an intuitive and clear monitoring interface.

[0037] The sensor module 10 includes a main channel and a backup channel. The main channel is used to detect data from the gas station equipment to generate a main analog signal, and the backup channel is used to detect data from the gas station equipment to generate a backup analog signal. The data from the gas station equipment includes liquid level data, pressure data, and temperature data.

[0038] The level detection structure of sensor module 10 includes two independent magnetostrictive level gauges, which are vertically mounted side-by-side on a dedicated measuring cylinder outside the storage tank. The dedicated measuring cylinder is connected to the storage tank via a pipe, ensuring that the liquid level inside the cylinder matches that of the tank. In industrial applications, the primary channel uses a magnetostrictive level gauge for precise level data detection, while the backup channel also utilizes a magnetostrictive level gauge for data redundancy detection, ensuring high accuracy and reliability of level measurement. The magnetostrictive level gauge measures the liquid level based on the pulse reflection principle. Alternatively, other types of level gauges, such as ultrasonic level gauges, can be used instead. Ultrasonic level gauges calculate the liquid level height based on the time difference between ultrasonic wave transmission and reception. A sealed connection is used between the magnetostrictive level gauge and the measuring cylinder to ensure no liquid leakage.

[0039] The pressure detection structure of sensor module 10 has two independent pressure measurement points on the same cross-section of the vaporizer outlet pipeline, each equipped with a pressure sensor. The primary channel uses a first pressure sensor to detect pressure data, while the backup channel uses a second pressure sensor. The pressure sensors can be common strain gauge pressure sensors, which measure the change in resistance of the strain gauge to reflect the pressure magnitude; or they can be piezoresistive pressure sensors, which operate based on the piezoresistive effect.

[0040] Reference Figure 2 Alternatively, the sensor can be an integrated level and pressure gauge, such as a first level and pressure gauge 11 and a second level and pressure gauge 12. Installing the first level and pressure gauge 11 and the second level and pressure gauge 12 within the sensor module 10 allows for the simultaneous acquisition of level and pressure data. This simplifies the installation process and reduces the required interfaces and connections, thereby lowering the potential risk of leakage. An integrated level and pressure gauge typically uses a single probe or probe rod to simultaneously sense changes in level and pressure, and processes these two signals separately through internal circuitry to generate independent level and pressure data outputs.

[0041] The temperature detection structure of sensor module 10 includes two platinum resistance temperature probes 13 installed at predetermined temperature measurement points. These probes typically possess high accuracy and stability, with common accuracy classes of ±0.1℃, ±0.2℃, and ±0.5℃, providing accurate temperature measurements over a wide temperature range from -200℃ to 850℃. The primary channel detects temperature data via the first platinum resistance temperature probe, while the backup channel detects temperature data via the second probe. Platinum resistance temperature sensors utilize the characteristic of platinum wire resistance changing with temperature to measure temperature. Thermocouple temperature sensors, on the other hand, measure temperature based on the thermoelectric effect of two different metals, suitable for different measurement needs. Appropriate installation methods, such as threaded connections or compression fittings, are used between the platinum resistance temperature probes 13 and the temperature measurement points to ensure full contact between the probes and the object being measured, ensuring accurate temperature measurement.

[0042] The transmission module 20 uses a four-core twisted-pair shielded cable, with the shielding layer of the cable grounded at a single phase on the PLC control module 30 side. The shielded cable typically uses the RVVP model, with its four cores twisted together to effectively reduce electromagnetic interference. The shielding layer uses a metal braided mesh or aluminum foil to shield against external electromagnetic fields. The shielding layer is grounded at a single point on the PLC control module 30 side, avoiding potential differences caused by multiple grounding points and further suppressing interference. The transmission module 20 also includes an RC low-pass filter circuit located at the terminal, consisting of a resistor and a capacitor connected in parallel. The parameters of the resistor and capacitor can be flexibly selected according to actual needs; for example, a 100-ohm resistor connected in parallel with a 0.1 microfarad capacitor can form a low-pass filter. The RC low-pass filter circuit can also be replaced by an LC low-pass filter circuit composed of an inductor and a capacitor, which can provide better filtering performance in some cases. The RC low-pass filter circuit is located between the end of the shielded cable and the terminals of each analog input channel of the PLC control module 30. It can efficiently filter out high-frequency noise in the industrial environment and ensure high-quality transmission of analog signals.

[0043] The PLC control module 30 and all associated terminals, power supplies, etc. are installed in a 316L stainless steel control box with a protection level of not less than IP65. The interface uses a waterproof aviation plug, which can effectively resist the corrosion and humid environment of the industrial site.

[0044] The data preprocessing of the PLC control module 30 includes performing moving average filtering on both the primary and backup analog signals. Moving average filtering is achieved by storing a preset number of historical sampled values ​​and calculating their arithmetic mean. The PLC control module 30 has a built-in data buffer specifically designed for the primary and backup channels to store the most recent N historical sampled values. N is an integer parameter that can be flexibly adjusted according to the actual working conditions on site; for example, it can be set to 5. After a new sampled value is obtained in the current scan cycle, the new sampled value is pushed into the data buffer, while the oldest sampled value is removed. Subsequently, the PLC control module 30 calculates the arithmetic mean of the N sampled values ​​in the buffer, as shown in the following formula: For primary channel A: For backup channel B: Among them, V A V represents the primary filter value. B Here, represents the backup filter value, N represents the size of the filter window, k represents the current sampling number, and i represents the index variable for summation. This represents the original primary detection data of the primary channel during the i-th sampling. This represents the original backup detection data of the backup channel during the i-th sampling.

[0045] The PLC control module 30 uses a dynamic relative deviation rate calculation method to measure the degree of dispersion between the primary channel and the backup channel, thereby realizing dynamic deviation diagnosis.

[0046] Dynamic deviation diagnosis is achieved through the following steps: First, obtain the difference between the primary filter value and the backup filter value, and take the absolute difference; then, calculate the arithmetic mean of the primary filter value and the backup filter value as the average benchmark value; finally, convert the ratio of the absolute difference to the benchmark value into a relative deviation rate. , expressed as follows: in, This represents the relative deviation rate.

[0047] The PLC control module 30 presets a safety threshold that can be adjusted online. This represents a safety threshold. For example, a safety threshold. Can be set to .

[0048] If the relative deviation rate is less than or equal to the preset safety threshold, the PLC control module 30 determines that both the primary and backup channels are in normal working condition. At this time, the primary filter value and the backup filter value are nearly identical, and the PLC control module 30 defaults to using the primary filter value as the valid detection data. The primary filter value is the valid detection value. When the relative deviation rate is greater than the safety threshold (…), the PLC control module 30 determines that both the primary and backup channels are in normal working condition. When a fault is detected, the PLC control module 30 automatically discards the primary channel deemed potentially faulty and switches to the backup channel as the valid detection value, generating an audible and visual alarm signal for a fault in the sensor module 10. This switching mechanism is implemented by adjusting the condition judgment process within the PLC control module 30. The entire switching action is completed rapidly within one scan cycle of the PLC, ensuring the continuity of detection data and effectively reducing the risk of data interruption caused by single-point failures.

[0049] The PLC control module 30 executes the detection process cyclically in a scanning cycle, and the channel switching process is completed within a single scanning cycle to ensure the continuity of detection data. For example, the scanning cycle can be set to 500 milliseconds.

[0050] Reference Figure 3The visualization module 40 displays the core operating status of the gas station equipment through the main monitoring interface. The center of the main monitoring interface lists the valid detection values ​​determined by the PLC control module 30 through multiple independent display windows. Function buttons are provided in the bottom navigation bar for easy switching between different function pages. In addition, the alarm record page can be accessed by clicking the "Historical Alarm" or "Real-time Alarm" buttons. When the PLC control module 30 generates an audible and visual alarm signal, the visualization module 40 will not only pop up a prominent alarm window on the interface but also trigger an external audible and visual alarm to ensure that operators notice the abnormality immediately. Operators need to perform an "Alarm Confirmation" operation on the interface to stop the audible and visual alarm. The system settings interface can also be accessed by clicking the "Parameter Settings" button, allowing online modification and distribution of key parameters to the PLC control module 30.

[0051] The gas station equipment detection system of this application embodiment, through the dual-channel design of the sensor module 10, can detect the liquid level, pressure, and temperature data of the gas station equipment. The transmission module 20 utilizes shielded cables and low-pass filter circuits to ensure error-free signal transmission. The PLC control module 30 is responsible for data preprocessing, dynamic deviation diagnosis, and channel switching. The visualization module 40 receives the processing results from the PLC control module 30, providing operators with an intuitive and clear monitoring interface, which can quickly detect and address potential faults in the sensor module 10, thereby ensuring the continuous and reliable detection data. Compared with the prior art, this system significantly improves the accuracy and stability of gas station equipment detection, providing strong support for the normal operation of gas station equipment.

[0052] This application also discloses a method for testing gas station equipment. Figure 4 This is a schematic flowchart of the main steps of a gas station equipment testing method according to an embodiment of this application. (Refer to...) Figure 4 The method includes the following main steps: S1. Detect gas station equipment data through the main channel to generate a main analog signal, and detect gas station equipment data through the backup channel to generate a backup analog signal. The gas station equipment data includes liquid level data, pressure data, and temperature data. S2. Convert the primary analog signal into primary detection data, and convert the backup analog signal into backup detection data; S3. Perform a moving average filter on the primary detection data to generate the primary filter value, and perform a moving average filter on the backup detection data to generate the backup filter value. S4. Calculate the absolute difference between the primary filter value and the backup filter value, and calculate the average baseline value of the primary filter value and the backup filter value. S5. Convert the ratio of the absolute difference to the average benchmark value into a relative deviation rate; S6. When the relative deviation rate is less than or equal to the safety threshold, output the main filter value; S7. When the relative deviation rate is greater than the safety threshold, output the backup filter value and generate an audible and visual alarm signal.

[0053] The main step S1 is primarily implemented by the sensor module 10, and specifically includes the following subordinate steps: S11, detecting the liquid level data, pressure data, and temperature data of the gas station equipment; S12, transmitting the liquid level data, pressure data, and temperature data to the main channel and the backup channel; S13, generating a main analog signal from the liquid level data, pressure data, and temperature data through the main channel, and generating a backup analog signal through the backup channel. Specifically, in step S11, the first magnetostrictive level gauge detects the first liquid level data of the gas station equipment, the first pressure sensor detects the first pressure data, and the first platinum resistance temperature probe detects the first temperature data; simultaneously, the second magnetostrictive level gauge detects the second liquid level data, the second pressure sensor detects the second pressure data, and the second platinum resistance temperature probe detects the second temperature data. In step S12, the first liquid level data, the first pressure data, and the first temperature data are all transmitted to the main channel, and the second liquid level data, the second pressure data, and the second temperature data are all transmitted to the backup channel. In step S13, the main channel generates a main analog signal from the first liquid level data, the first pressure data, and the first temperature data through a signal converter, and the backup channel generates a backup analog signal from the second liquid level data, the second pressure data, and the second temperature data through a signal converter.

[0054] The main step S2 is primarily implemented by the analog-to-digital converter (ADC) unit in the PLC control module 30. In main step S2, the analog signals received by the primary and backup channels are converted into digital detection data by the ADC unit in the PLC control module 30. Specifically, the ADC unit samples and quantizes the primary analog signal, converting the continuous analog signal into discrete primary detection data; the ADC unit also samples and quantizes the backup analog signal, converting the continuous analog signal into discrete backup detection data.

[0055] Main step S3 is primarily implemented by the digital processing unit in the PLC control module 30. In main step S3, the digital processing unit performs a moving average filtering process on the primary and backup detection data acquired by the analog-to-digital converter, thereby generating primary and backup filtered values. The moving average filtering is achieved by storing a preset number of historical sampled values ​​and calculating their arithmetic mean. The PLC control module 30 internally has a data buffer specifically for the primary and backup channels to store the most recent N historical sampled values, where N is an integer parameter that can be flexibly adjusted according to the actual working conditions on site; for example, it can be set to N=5. After a new sampled value is obtained in the current scan cycle, the new sampled value is pushed into the data buffer, while the oldest sampled value is removed. Then, the PLC control module 30 calculates the arithmetic mean of the N sampled values ​​contained in the data buffer, using the following formula: For primary channel A: For backup channel B: Among them, V A V represents the primary filter value. B Here, represents the backup filter value, N represents the size of the filter window, k represents the current sampling number, and i represents the index variable for summation. This represents the original primary detection data of the primary channel during the i-th sampling. This represents the original backup detection data of the backup channel during the i-th sampling.

[0056] Main steps S4 and S5 are primarily implemented by the digital processing unit in the PLC control module 30. In main step S4, the difference between the primary filter value and the backup filter value is first calculated, and its absolute value is taken. Then, the arithmetic mean of the two is calculated as the average reference value. Next, in main step S5, the ratio of this absolute difference to the average reference value is converted into a relative deviation rate, as shown in the following formula: in, This represents the relative deviation rate.

[0057] Main steps S6 and S7 are primarily implemented by the logic control unit in the PLC control module 30. In this logic control, the relative deviation rate is compared with a safety threshold to determine if the primary channel has malfunctioned. In main step S6, when the relative deviation rate is less than or equal to the safety threshold, the logic control unit determines that both the primary and backup channels are operating normally, and the primary and backup filter values ​​are essentially the same. The logic control unit defaults to accepting the primary filter value as the valid detection value. In main step S7, when the relative deviation rate exceeds the safety threshold, the logic control unit automatically discards the primary channel that is deemed potentially faulty, switches to the backup channel as the valid detection value, and generates an audible and visual alarm signal indicating a fault in the sensor module 10.

[0058] The PLC control module 30 executes steps S3-S7 cyclically in a cyclic scanning cycle to ensure the continuity of the detection data. For example, the cyclic scanning cycle can be set to 500 milliseconds.

[0059] The implementation principle of a gas station equipment detection method in this embodiment is as follows: First, data from the gas station equipment is collected through a primary channel and a backup channel, generating primary analog signals and backup analog signals. The PLC control module 30 converts the primary and backup analog signals from analog to digital to generate primary detection data and backup detection data. Then, a primary filter value and a backup filter value are generated through moving average filtering. Next, the absolute difference and average reference value between the primary and backup filter values ​​are calculated, and the ratio of the absolute difference to the average reference value is converted into a relative deviation rate. Finally, the relative deviation rate is compared with a safety threshold to determine the valid detection value. This method, through dual-channel design and data processing logic, ensures the reliability and accuracy of the detection data and can promptly detect and handle channel faults, ensuring the safe operation of the gas station equipment.

[0060] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A gas station equipment detection system, characterized by, The application relates to a gas station detection system, which comprises the following parts: a sensor module (10) comprising a main channel and a backup channel, the main channel is used for detecting gas station equipment data to generate a main analog signal, the backup channel is used for detecting the gas station equipment data to generate a backup analog signal, the gas station equipment data comprises liquid level data, pressure data and temperature data; a PLC control module (30) connected with the sensor module (10) and configured to determine an effective detection value according to the main analog signal and the backup analog signal, wherein the main analog signal is converted into main detection data; the backup analog signal is converted into backup detection data; the main detection data is subjected to sliding average filtering to generate a main filtering value; the backup detection data is subjected to sliding average filtering to generate a backup filtering value; the absolute difference value between the main filtering value and the backup filtering value is calculated; the average reference value of the main filtering value and the backup filtering value is calculated; the ratio of the absolute difference value to the average reference value is converted into a relative deviation rate; when the relative deviation rate is less than or equal to a safety threshold value, the main filtering value is output as the effective detection value; when the relative deviation rate is greater than the safety threshold value, the backup filtering value is output as the effective detection value, and an audible and visual alarm signal is generated.

2. The gas station equipment detection system of claim 1, wherein The PLC control module (30) is configured to perform a sliding average filtering on the primary detection data to generate a primary filtered value, and perform a sliding average filtering on the backup detection data to generate a backup filtered value, denoted as follows: wherein V A represents the primary filtered value, V B represents the backup filtered value, N represents the size of the filtering window, k represents the current sampling sequence number, and i represents an index variable for summation, represents the original primary detection data of the primary channel at the i-th sampling, represents the original backup detection data of the backup channel at the i-th sampling.

3. The gas station equipment detection system of claim 2, wherein, The PLC control module (30) is configured to calculate an absolute difference value of the active filter value and the standby filter value, and calculate an average reference value of the active filter value and the standby filter value, and convert a ratio of the absolute difference value and the average reference value into a relative deviation rate, expressed as the following formula: wherein, represents the relative deviation rate.

4. The gas station equipment detection system according to any one of claims 1 to 3, characterized by, The PLC control module (30) has a cyclic scanning period, and in each cyclic scanning period, the PLC control module (30) determines an effective detection value according to the main analog signal and the backup analog signal.

5. The gas station equipment detection system of claim 1, wherein, The main channel comprises a first liquid level meter, a first pressure sensor and a first temperature probe, the backup channel comprises a second liquid level meter, a second pressure sensor and a second temperature probe, the first liquid level meter and the second liquid level meter are used for detecting the liquid level data, the first pressure sensor and the second pressure sensor are used for detecting the pressure data, and the first temperature probe and the second temperature probe are used for detecting the temperature data.

6. The gas station equipment detection system of claim 1, wherein, The PLC control module (30) is arranged in a control box, and the interface IP protection level of the PLC control module (30) is greater than or equal to 65.

7. The gas station equipment detection system of claim 1, wherein, A transmission module (20) is further arranged between the sensor module (10) and the PLC control module (30) and used for transmitting main detection signals and backup detection signals; the transmission module (20) comprises a shielded cable and a filtering circuit, and the filtering circuit is arranged at the terminal of the shielded cable.

8. A gas station device detection method characterized by comprising: The application relates to a gas station detection system, which comprises the following parts: S1, main channel detection is carried out on gas station equipment data to generate a main analog signal, and backup channel detection is carried out on the gas station equipment data to generate a backup analog signal, the gas station equipment data comprises liquid level data, pressure data and temperature data; S2, the main analog signal is converted into main detection data, and the backup analog signal is converted into backup detection data; S3, the main detection data is subjected to sliding average filtering to generate a main filtering value, and the backup detection data is subjected to sliding average filtering to generate a backup filtering value; S4, calculating an absolute difference value of the main filter value and the backup filter value, and calculating an average reference value of the main filter value and the backup filter value; S5, converting a ratio of the absolute difference value and the average reference value into a relative deviation rate; S6, outputting the main filter value when the relative deviation rate is less than or equal to a safety threshold value; S7, outputting the backup filter value and generating an audible and visual alarm signal when the relative deviation rate is greater than the safety threshold value.

9. The gas station equipment detection method according to claim 8, wherein In step S3, the main detection data is subjected to sliding average filtering to generate a main filter value, and the backup detection data is subjected to sliding average filtering to generate a backup filter value, which is expressed as follows: Among them, V A V represents the primary filter value. B Here, represents the backup filter value, N represents the size of the filter window, k represents the current sampling number, and i represents the index variable for summation. This represents the original primary detection data of the primary channel during the i-th sampling. This represents the original backup detection data of the backup channel during the i-th sampling. In step S4 and step S5, an absolute difference value of the main filter value and the backup filter value is calculated, and an average reference value of the main filter value and the backup filter value is calculated, and a ratio of the absolute difference value and the average reference value is converted into a relative deviation rate, which is expressed as follows: wherein, represents the relative deviation rate.

10. The method of claim 8 or 9, wherein the gas station equipment detection method is characterized by, Steps S3-S7 are cyclically executed in a cycle scanning period.

Citation Information

Patent Citations

  • Dual redundant security monitoring control system for LNG filling ship and method thereof

    CN110375197A

  • Liquefied gas station time division multiplexing channel data monitoring alarm system and method

    CN115933475A

  • Bulk material weighing method, system and equipment based on double sensors

    CN121068008A