CN108072414B - Electronic metering temperature and pressure compensation method for gas meter - Google Patents

Electronic metering temperature and pressure compensation method for gas meter Download PDF

Info

Publication number
CN108072414B
CN108072414B CN201810014992.1A CN201810014992A CN108072414B CN 108072414 B CN108072414 B CN 108072414B CN 201810014992 A CN201810014992 A CN 201810014992A CN 108072414 B CN108072414 B CN 108072414B
Authority
CN
China
Prior art keywords
temperature
pulse number
calculated
gas
temperature value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810014992.1A
Other languages
Chinese (zh)
Other versions
CN108072414A (en
Inventor
王郑凯
张礼
丁渊明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goldcard Smart Group Co Ltd
Original Assignee
Goldcard Smart Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goldcard Smart Group Co Ltd filed Critical Goldcard Smart Group Co Ltd
Priority to CN201810014992.1A priority Critical patent/CN108072414B/en
Publication of CN108072414A publication Critical patent/CN108072414A/en
Application granted granted Critical
Publication of CN108072414B publication Critical patent/CN108072414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
    • G01F15/02Compensating or correcting for variations in pressure, density or temperature
    • G01F15/04Compensating or correcting for variations in pressure, density or temperature of gases to be measured

Abstract

The invention provides an electronic metering temperature and pressure compensation method for a gas meter, and relates to the technical field of pricing accounting. The counting register is stored with a temperature and pulse number comparison table, the temperature and pulse number comparison table is segmented by taking 10 ℃ as a unit, and the pulse number corresponding to the head and tail end temperature value of each segment is a threshold pulse number; comparing the collected pulse number returned by the temperature sensor with the threshold pulse number of each calculation section to obtain a calculated temperature value, and adding the calculated temperature value and the temperature value corresponding to the small threshold pulse number to obtain a temperature value; and comparing the temperature, the pressure and the gas volume with standard conditions to obtain the gas use volume under the working condition. The invention solves the technical problems that the gas meter is used in the environment with different temperature and pressure and the gas volume is not accurate enough in the prior art. The invention has the beneficial effects that: the standard condition gas consumption is calculated according to the relation between the temperature and the pressure of the working condition gas consumption, so that the volume of the actually used gas is more accurately reflected, and the loss of gas sold by a gas company is reduced.

Description

Electronic metering temperature and pressure compensation method for gas meter
Technical Field
The invention relates to the technical field of price computing, in particular to a computing method for temperature and pressure compensation of electronic metering of a gas meter.
Background
The breadth of our country is broad, the latitude is larger, and the temperature and pressure difference between different regions is large. The same quality of fuel gas has different temperature, pressure and volume. Resulting in large differences in gas metering. The ordinary gas meter is a positive displacement type flow metering, and the volume of gas is basically independent of temperature and pressure changes. Therefore, the measured gas volume is not the actual gas use volume under the non-standard condition, and the measurement accuracy is not high under different temperatures. The invention discloses a calculation method for gas temperature and pressure compensation, which is an invention patent application named as a gas flow simple compensation method, wherein the invention patent application is published under the Chinese patent application No. CN106225862A, and is filed on 2016, 12 and 14. The method comprises the following steps: determining a variable compensation coefficient by using a variable compensation coefficient calculation formula based on the design working condition parameters and the actual working condition parameters of the gas measuring instrument, wherein in the variable compensation coefficient calculation formula, the variable compensation coefficient is a function of the design working condition parameters and the actual working condition parameters; and performing compensation calculation based on the designed working condition flow value of the gas measuring instrument and the variable compensation coefficient to obtain an actual working condition flow value. The method is still relatively complicated and is not suitable for metering by a gas meter.
Disclosure of Invention
The invention provides an electronic metering temperature and pressure compensation method of a gas meter, which aims to solve the technical problems that the gas meter is used in different environments with different temperatures and pressures and the metering gas volume is not accurate enough in the prior art, and ensures accurate gas metering.
The technical scheme of the invention is as follows: an electronic metering temperature and pressure compensation method for a gas meter comprises the following steps: the controller of the gas meter, count register, temperature pick-up and pressure sensor connected with controller, count the register and store the temperature and pulse number corresponding to temperature pick-up and compare the table, regard 10 duC as the unit, divide the temperature range into several calculation sections, every calculates the pulse number that the end and end temperature value of section corresponds to as the threshold pulse number; the controller compares the collected pulse number returned by the temperature sensor with the threshold pulse number of each calculation section, determines which calculation section falls into to obtain a calculated temperature value, and adds the calculated temperature value with the temperature value corresponding to the small threshold pulse number of the calculation section to obtain a calculated temperature value measured by the temperature sensor; the weighted average value of the calculated temperature value and the calculated temperature value at the last time is an effective temperature value acquired at the temperature at this time; according to the gas equation, the effective temperature value measured by the temperature sensor and the gas use volume under the pressure value returned by the pressure sensor are obtained by comparing the temperature, the pressure and the gas volume with standard conditions. Through temperature and pressure compensation, the volume of the actually used gas is accurately reflected, and the loss of gas sold by a gas company is reduced.
Preferably, in the calculation of the effective temperature value of the temperature collection, the weight of the calculated temperature value of the temperature collection at this time is 70%, and the weight of the calculated temperature value of the temperature collection at the last time is 30%; the influence of abnormal temperature in an accidental case is reduced.
Preferably, in the temperature acquisition of the temperature sensor at this time, if the pulse number acquired is not in the temperature and pulse number comparison table, the temperature sensor needs to acquire again; the acquired temperature value is guaranteed to be real.
Preferably, when the difference between the temperature value calculated by the temperature acquisition and the effective temperature value acquired by the last temperature acquisition is more than or equal to 20 ℃, carrying out three times of temperature acquisition, and averaging the temperature values calculated by the two times to be used as the effective temperature value acquired by the temperature acquisition if the temperature value calculated by the two times in the three times of temperature acquisition is still more than or equal to 20 ℃; the influence of external interference is reduced, and the correct acquired temperature value is ensured.
Preferably, the temperature sensor sends back the collection pulse number, the controller compares the collection pulse number of this time with the collection pulse number of the last time, if the collection pulse number is the same, counting and storing are started, and the pulse number of the collection pulse number which is the same in three times is taken as the collection pulse number of the temperature sensor; and under the condition that the obtained tertiary pulse number is not changed, judging that all the obtained pulse numbers are obtained, and accurately sampling.
Compared with the prior art, the invention has the beneficial effects that: the judgment of temperature is acquired for multiple times, so that the influence of current temperature data abnormity caused by abnormal accidental temperature sensors is reduced. And a temperature value weighting algorithm is adopted, so that the influence of abnormal temperature in accidental situations is reduced. The standard condition gas consumption is calculated according to the relation between the temperature and the pressure of the working condition gas consumption, so that the volume of the actually used gas is more accurately reflected, and the loss of gas sold by a gas company is reduced.
Detailed Description
The technical scheme of the invention is further specifically described by the following embodiments.
Example 1:
an electronic metering temperature and pressure compensation method for a gas meter comprises the following steps: the gas meter comprises a controller of the gas meter, a counting register connected with the controller, a temperature sensor and a pressure sensor. The counting register is stored with a temperature and pulse number comparison table which is suitable for the temperature sensor. The temperature and pulse number comparison table of the temperature sensor of the embodiment is temperature: -40 ℃ to 150 ℃ corresponding to a number of pulses of 181 to 3220. The temperature range was divided into nineteen calculation segments in units of 10 ℃. The pulse number corresponding to the temperature value of the head end and the tail end of each calculation section is the threshold pulse number. When the temperature acquisition time is up, the controller controls the temperature sensor to start temperature acquisition. The controller reads the storage data of the counting register at regular time. And after the temperature sensor is electrified for fifty milliseconds, reading the data of the counting register by using a one-millisecond period controller, and judging whether the number of acquisition pulses sent back by the temperature sensor is the same as the number of acquisition pulses last time: if not, delaying for one millisecond, and reading and judging; and if the current temperature sensor is the same, starting counting and storing, and taking the pulse number of three continuous same acquisition pulse numbers as the acquisition pulse number of the current temperature sensor. Each acquisition is one hundred twenty milliseconds long maximum. If the number of the collected pulses is not in the temperature and pulse number comparison table in the temperature collection of the temperature sensor, the temperature sensor needs to collect again. If the temperature acquisition pulse number of the temperature sensor is not in the temperature and pulse number comparison table for the last three consecutive times, judging that the temperature sensor is in fault or abnormal. The controller compares the collected pulse number returned by the temperature sensor with the threshold pulse number of each calculation segment to determine which calculation segment falls into. And carrying out linear calculation on the acquisition pulse number which is greater than the small threshold pulse number and less than the large threshold pulse number of the calculation section, the temperature of the calculation section and the corresponding pulse number to obtain a calculated temperature score. And calculating the temperature value, and adding the calculated temperature value and the temperature value corresponding to the small threshold pulse number of the calculation section to obtain the calculated temperature value measured by the temperature sensor. For example: during a certain temperature acquisition, the controller obtains the number of pulses of the sampling pulse to be 1200. It is first determined within which calculation segment the number of pulses 1200 falls. And inquiring a temperature and pulse number comparison table of the temperature sensor, wherein the threshold pulse number corresponding to 20 ℃ is 1125, and the threshold pulse number corresponding to 30 ℃ is 1284. Then, the temperature range corresponding to the number of pulses of 1200 is 20 to 30 ℃. In the range of 20-30 ℃ in a comparison table: the number of pulses corresponding to the difference in temperature of 10 ℃ was 159 (1284-1125 = 159). The temperature and the pulse number are subjected to linear calculation: one pulse corresponds to about 0.06289 deg.C (10/159 ≈ 0.06289). The number of pulses of the current sampling pulse is 1200, and the number of threshold pulses corresponding to 20 ℃ is subtracted to 1125 to obtain the number of pulses 75. The 75 pulse number was multiplied by a pulse corresponding temperature 0.06289 to obtain a temperature score of 4.717. The sum of the temperature score 4.717 and the temperature value 20 corresponding to the small threshold pulse number is the calculated temperature value 24.717 ℃ measured by the temperature sensor. When the difference between the calculated temperature value calculated by the temperature acquisition and the calculated temperature value acquired last time is more than or equal to 20 ℃, three times of temperature acquisition are required. And if the difference between the temperature values calculated twice in the three temperature acquisitions and the temperature value calculated in the last temperature acquisition is still more than or equal to 20 ℃, taking the arithmetic mean value of the temperature values calculated twice as the temperature value calculated in the temperature acquisition. For example: at a certain temperature acquisition, the memory stores the calculated temperature value of the last temperature sensor measurement 24.017. The collected pulse number returned by the temperature sensor and the calculated temperature value calculated by the controller exceed 44.017. Three more temperature acquisitions are required. If the two subsequent calculated temperature values are 44.117 and 44.317, the arithmetic mean of the two calculated temperature values is calculated as follows: (44.117 + 44.317)/2 =44.217, and the calculated temperature value for this temperature collection was 44.217 ℃. If the difference between the calculated temperature value of only one time in the three temperature acquisition and the calculated temperature value of the last temperature acquisition is still more than or equal to 20 ℃, the temperature acquisition is abandoned. In order to reduce the influence of abnormal temperature in an accidental situation, an effective temperature value of temperature acquisition needs to be calculated. And weighted average of 70% of the calculated temperature value and 30% of the calculated temperature value at the last time is the effective temperature value acquired at the temperature at the time. For example: in a certain temperature acquisition, the controller obtains a calculated temperature value 24.717 ℃ measured by the temperature sensor at this time, the calculated temperature value stored in the counting register and measured by the temperature sensor at the last time is 24.017 ℃, and then the effective temperature value acquired by the temperature sensor at this time is calculated as follows: (24.717 × 70% + 24.017 × 30%)/(70% + 30%) =24.507, and the effective temperature value collected by the temperature sensor at this time is 24.507 ℃. The gas equation P0 xv 0/T0 ═ P1 xv 1/T1, where: p0, V0 and T0 are the pressure, volume and temperature of the fuel gas under the standard working condition and are known. P1, V1 and T1 are the pressure, volume and temperature of the fuel gas under the current environment. The pressure P1 is transmitted back by the pressure sensor, the temperature T1 is an effective temperature value, and the volume V1 is calculated by the controller according to the gas equation, namely the current gas use volume.

Claims (4)

1. An electronic metering temperature and pressure compensation method for a gas meter comprises the following steps: the controller of the gas meter, count register, temperature sensor and pressure sensor connected with controller, characterized by that, count register store with said temperature sensor adaptive temperature and pulse number comparison table, regard 10 duC as the unit, divide the temperature range into several calculation segments, every calculates the pulse number that the end and end temperature value of segment corresponds to as the threshold pulse number; the controller compares the collected pulse number returned by the temperature sensor with the threshold pulse number of each calculation section to determine which calculation section falls into, performs linear calculation on the collected pulse number which is greater than the small threshold pulse number of the calculation section and less than the large threshold pulse number, the temperature of the calculation section and the corresponding pulse number to obtain a calculated temperature value, and adds the calculated temperature value and the temperature value corresponding to the small threshold pulse number of the calculation section to obtain a calculated temperature value measured by the temperature sensor; the weighted average value of the calculated temperature value and the calculated temperature value at the last time is an effective temperature value acquired at the temperature at this time; according to the gas equation, comparing the temperature, the pressure and the gas volume with standard conditions to obtain an effective temperature value measured by the temperature sensor and the gas use volume under the pressure value returned by the pressure sensor; in the calculation of the effective temperature value of the temperature collection, the weight of the calculated temperature value of the temperature collection at this time is 70%, and the weight of the calculated temperature value of the temperature collection at the last time is 30%.
2. The electronic metering temperature and pressure compensation method of the gas meter according to claim 1, characterized in that: in the temperature acquisition of the temperature sensor, if the pulse number acquired is not in the temperature and pulse number comparison table, the temperature sensor needs to acquire again.
3. The electronic metering temperature and pressure compensation method of the gas meter according to claim 1, characterized in that: and when the difference between the calculated temperature value of the temperature acquisition and the calculated temperature value of the last temperature acquisition is more than or equal to 20 ℃, performing temperature acquisition for three times, and taking the arithmetic mean value of the two calculated temperature values as the calculated temperature value of the temperature acquisition if the difference between the two calculated temperature values in the three temperature acquisitions and the calculated temperature value of the last temperature acquisition is still more than or equal to 20 ℃.
4. The electronic metering temperature and pressure compensation method of the gas meter according to claim 1, characterized in that: and after the temperature sensor is electrified for fifty milliseconds, reading the data of the counting register by using a one-millisecond period controller, and judging whether the number of acquisition pulses sent back by the temperature sensor is the same as the number of acquisition pulses last time: if not, delaying for one millisecond, and reading and judging; and if the current temperature sensor is the same, starting counting and storing, and taking the pulse number of three continuous same acquisition pulse numbers as the acquisition pulse number of the current temperature sensor.
CN201810014992.1A 2018-01-08 2018-01-08 Electronic metering temperature and pressure compensation method for gas meter Active CN108072414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810014992.1A CN108072414B (en) 2018-01-08 2018-01-08 Electronic metering temperature and pressure compensation method for gas meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810014992.1A CN108072414B (en) 2018-01-08 2018-01-08 Electronic metering temperature and pressure compensation method for gas meter

Publications (2)

Publication Number Publication Date
CN108072414A CN108072414A (en) 2018-05-25
CN108072414B true CN108072414B (en) 2021-02-19

Family

ID=62156443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810014992.1A Active CN108072414B (en) 2018-01-08 2018-01-08 Electronic metering temperature and pressure compensation method for gas meter

Country Status (1)

Country Link
CN (1) CN108072414B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109060060B (en) * 2018-09-04 2020-05-08 宁夏隆基宁光仪表股份有限公司 Gas metering method and device based on temperature compensation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201215671Y (en) * 2008-03-19 2009-04-01 康逸 Pre-payment temperature compensation gas meter
CN202158882U (en) * 2011-02-10 2012-03-07 银川天佳仪器仪表有限公司 Diaphragm gas meter with temperature and pressure compensation
CN102944268B (en) * 2012-12-05 2016-02-03 四川海力智能科技有限公司 A kind of intelligent gas meter with temperature compensation
WO2016200330A1 (en) * 2015-06-12 2016-12-15 Provtagaren Ab Pulse cancelling for flow measurements
CN205483117U (en) * 2016-01-18 2016-08-17 广州市壹普电子科技有限公司 Take temperature pressure compensation's diaphragm type gas table
CN205537807U (en) * 2016-01-21 2016-08-31 四川海力智能科技股份有限公司 Take temperature pressure compensation's gas table
CN106225862A (en) * 2016-07-14 2016-12-14 神华集团有限责任公司 The simple and direct compensation method of gas flow

Also Published As

Publication number Publication date
CN108072414A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN102486390B (en) Method for steam pipe network of iron and steel enterprise to correct metering data
US20110264392A1 (en) Method for correcting the drift of a pressure sensor signal
CN114047472B (en) Metering error monitoring system of intelligent ammeter and monitoring method and device thereof
CN108692711B (en) Method for realizing ocean data processing based on low-altitude sounding rocket
CN108072414B (en) Electronic metering temperature and pressure compensation method for gas meter
CN109813857B (en) Monitoring method based on Internet of things water quality monitoring system
CN109332393B (en) Plate and strip continuous rolling thickness control method
CN108876175B (en) Nuclear power plant containment vessel leakage rate calculation and evaluation method and system
CN110569283A (en) Oil level curve data processing method and device
CN105572191A (en) Pressure compensation method of electrochemical gas sensor
CN108254105A (en) Pressure detection method and its application
CN103206312A (en) Method And Device For Ascertaining A State Of A Sensor
CN110133381A (en) A kind of determination method of pulse rise time uncertainty
CN112444671A (en) Electric energy metering method and device of electric energy meter based on instantaneous power and storage medium
EP2821803A1 (en) Battery deterioration determining system
CN106898031A (en) A kind of method of reeling off raw silk from cocoons for high-precision optical fiber measurement
CN112016045B (en) Nanosecond pulse power meter data processing method
CN103375418A (en) Post-remanufacturing-technique-application fan energy saving rate measuring method
CN114027792B (en) Metabolic rate detection method for sleep process based on linear correlation coefficient interference elimination
CN111174842B (en) Random number sampling method for electronic meter
CN109060060A (en) A kind of gas metering method and device based on temperature-compensating
CN114509190A (en) Temperature compensation method of silicon pressure sensor
CN114018468A (en) Digital output atmospheric pressure sensor
JP6733415B2 (en) Frequency counters and field devices
CN110207789B (en) Water level measuring method and device based on water quality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant