CN109855694B - Gas meter metering method based on temperature and pressure compensation calculation - Google Patents
Gas meter metering method based on temperature and pressure compensation calculation Download PDFInfo
- Publication number
- CN109855694B CN109855694B CN201910067534.9A CN201910067534A CN109855694B CN 109855694 B CN109855694 B CN 109855694B CN 201910067534 A CN201910067534 A CN 201910067534A CN 109855694 B CN109855694 B CN 109855694B
- Authority
- CN
- China
- Prior art keywords
- temperature
- pressure
- gas meter
- value
- coefficient
- 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
Links
Images
Abstract
The invention aims to provide a gas meter metering method based on temperature and pressure compensation calculation, which can basically eliminate the influence of temperature and pressure so as to accurately and efficiently realize the metering of a gas meter. The method is characterized by comprising the following steps: (1) respectively taking a gas meter with normal metering and a temperature and pressure component, wherein the gas meter carries out data transmission with the temperature and pressure component through an integrated circuit bus; (2) the gas meter sends a reset command to the temperature and pressure component to obtain 6 regression coefficients returned to the gas meter by the temperature and pressure component. The invention adopts the common diaphragm gas meter metering and electronic compensation combined temperature and pressure based compensation calculation method to realize gas meter metering, can effectively solve the problem that the difference of two different qualities of natural gas with the same volume is caused by different geographic environments and temperature environments, accurately and efficiently realizes gas meter metering, and can also greatly reduce the loss of the difference to gas companies or users.
Description
Technical Field
The invention relates to a gas meter metering method based on temperature and pressure compensation calculation.
Background
In recent years, with the rapid development of urban gas utilities, the demand of gas consumption meters of residents is greatly increased. The diaphragm gas meter used by most cities for small-flow users does not have the function of temperature and pressure compensation, the diaphragm gas meter has the basic error of verification in a standard environment, the actual error of the diaphragm gas meter is obviously changed due to the change of the used temperature and the difference of the used regions and the change of the gas volume along with the change of the temperature and the pressure when the diaphragm gas meter is used in a non-standard temperature environment, and the number of resident user meters is large, so that the loss is brought to a gas company or a user.
In order to solve the problem of homogeneous and heterogeneous differentiation of gas along with the change of temperature and pressure, a gas metering method based on temperature and pressure compensation is urgently needed, and the metering standardization and the accuracy can be greatly improved.
Disclosure of Invention
The invention aims to provide a gas meter metering method based on temperature and pressure compensation calculation, which can basically eliminate the influence of temperature and pressure so as to accurately and efficiently realize the metering of a gas meter.
A gas meter metering method based on temperature and pressure compensation calculation is characterized by comprising the following steps:
(1) respectively taking a gas meter with normal metering and a temperature and pressure component, wherein the gas meter carries out data transmission with the temperature and pressure component through an integrated circuit bus;
(2) the method comprises the steps that a gas meter sends a reset command to a temperature and pressure assembly, 6 regression coefficients returned to the gas meter by the temperature and pressure assembly are obtained, and the regression coefficients are C1, C2, C3, C4, C5 and C6 in sequence, wherein C1 represents a pressure sensitivity coefficient PSCT1, C2 represents a pressure compensation coefficient PCCT1, C3 represents a pressure temperature coefficient PTC, C4 represents a pressure compensation temperature coefficient TCPC, C5 represents a reference temperature coefficient TCREF, C6 represents a temperature sensitivity coefficient TSC, the 6 regression coefficients are stored in a gas meter memory in a complementary code mode, and the required data length is 16 bits; the gas meter acquires the 6 regression coefficients from the memory every time temperature and pressure compensation is carried out on the gas meter;
(3) the gas meter respectively sends pressure conversion and temperature conversion commands to the temperature and pressure assembly to obtain an effective value RMS of a pressure channel and an effective value RMSTi of a temperature channel returned by the temperature and pressure assembly to the gas meter, and the obtained effective values are stored to the gas meter in a complement mode and require a data length of 32 bit;
(4) the gas meter obtains the current actual temperature through the calculation of the effective value of the temperature channel, and the calculation formula is as follows: RMST is a pressure channel effective value (RMSTi) and a temperature effective value conversion coefficient (Vi);
next, the gas meter calculates the difference dV between the actual temperature and the reference temperature, the reference temperature is factory set of the temperature and pressure assembly, and the gas meter reads the temperature and pressure assembly from the temperature and pressure assembly and stores the temperature and pressure assembly in a memory;
calculating the difference value dV between the actual temperature and the reference temperature according to the formula:
dV=RMST-TCREF;
RMST in the above formula represents the actual temperature, TCREFRepresents a reference temperature;
a measured temperature value TV calculation formula:
TV=2000+dV*TSC;
2000 in the formula represents a temperature value in a standard state, dV is a difference value between an actual temperature and a reference temperature, TSC is a temperature sensitivity coefficient, a gas meter reads out from a temperature and pressure assembly and stores the temperature and pressure assembly into a memory, and a measured temperature value TV is stored by adopting a 32bit signed integer number;
(5) the gas meter calculates an actual temperature compensation value ATPV;
ATPV=PCCT1+TCPC*dV;
PCC in the above equationT1The pressure compensation coefficient is read out from the temperature and pressure component by the gas meter and stored in the memory; TCPC is the pressure compensation temperature coefficient, read out from the temperature and pressure assembly by the gas meter and keep in the memorizer; dV represents the difference between the actual temperature and the reference temperature, and the calculation result ATPV is stored by adopting a 64-bit signed integer number;
the actual temperature sensitivity ATS calculation formula is as follows:
ATS=PSCT1+PTC*dV;
PSC in the above equationT1The pressure compensation coefficient is represented, and is read out from the temperature and pressure assembly by the gas meter and stored in the memory; PTC represents a pressure temperature coefficient, and dV represents the difference between the actual temperature and the reference temperature;
next, calculating the measured pressure value PV, wherein the calculation formula is as follows:
PV=RMSP*ATS–ATPV;
in the formula, RMSP represents an effective value of a pressure channel, ATS represents an actual temperature sensitive value, ATPV represents an actual temperature compensation value, and a measured pressure value PV is stored by adopting 64-bit signed integer number;
(6) if the measured temperature value TV obtained in the step (4) is less than 20 ℃, the gas meter recalculates a new actual temperature compensation value ATPV2, a new actual temperature sensitivity value ATS2, a new temperature measurement value TV2 and temperature difference compensation Ti at 20 ℃ according to the calculation method in the step (5);
the formula for Ti is as follows:
Ti=(11*dV*dV)>>35;
in the above formula, dV is the difference between the actual temperature in step (4) and the reference temperature;
TV2=TV–Ti;
the TV in the formula is a calculation result of the measured temperature value in the step (4);
(7) the gas meter firstly judges whether the measured temperature value is higher than or lower than 20 ℃, if the measured temperature value is higher than 20 ℃, the measured pressure value is the calculation result PV in the step (5); recalculating the measured pressure value PV2 using ATPV2 and ATS2 calculated in step (6) if the measured temperature value is below 20 degrees;
(8) and (3) the gas meter measures the gas meter according to the current condition temperature and the current condition pressure obtained in the steps (4) and (5) or the gas meter according to the current condition pressure and the current condition pressure obtained in the step (7) and according to an ideal gas state equation, wherein the current condition temperature represents the temperature condition in the actual working environment of the gas meter, and the current condition pressure represents the pressure condition in the actual working environment of the gas meter, and according to a Kerbonlon equation:
PV=nRT;
in the above formula:
p is pressure, in units: pa;
v is volume, unit: m is3;
n is the amount of gaseous species, in units: mol;
r is a gas constant of 8.314 J.mol-1. K-1;
t is the thermodynamic temperature in K;
and obtaining nR ═ PV/T, and when nR is fixed, obtaining an ideal gas equation of the same mass gas under different states:
(P1*V1)/T1=(P2*V2)/T2,
let P1 be 1013.25mbar of standard atmospheric pressure, T1 be 293.15K of temperature under standard state, P2 be pressure under current condition of gas meter, T2 be operating temperature under current condition of gas meter, V2 represent volume under current condition of gas meter, and is generally 0.1m3The current state volume is converted into the volume V1 in the standard state.
And (4) adjusting the temperature effective value conversion coefficient to 20 ℃ according to the quasi-high-temperature box, and calculating through the temperature channel effective value and the standard temperature of the high-temperature box body.
The invention adopts the common diaphragm gas meter metering and electronic compensation combined temperature and pressure based compensation calculation method to realize gas meter metering, can effectively solve the problem that the difference of two different qualities of natural gas with the same volume is caused by different geographic environments and temperature environments, accurately and efficiently realizes gas meter metering, and can also greatly reduce the loss of the difference to gas companies or users.
Drawings
FIG. 1 is a flow chart of the process of the present invention.
Detailed Description
The patent is described in further detail below with reference to the accompanying drawings.
Example 1:
as shown in fig. 1, the gas meter measurement implemented by the compensation calculation method based on temperature and pressure includes a normally measured gas meter (an IC card membrane gas meter CG-L-21ZGL manufactured by ninghamonning instruments gmbh) and a temperature and pressure component (a pressure sensor MS5805 designed by TE), and specifically includes the following steps:
(1) firstly, initializing the gas meter, setting operation parameters of the gas meter, then sending a reset command to the temperature and pressure component by the gas meter, completing initialization of the temperature and pressure component, and transmitting parameters such as a regression coefficient to the gas meter by the temperature and pressure component. And the gas meter performs data verification and storage on the regression coefficients and the internal operation parameters. The regression coefficients are respectively C1, C2, C3, C4, C5 and C6, and respectively represent a pressure sensitivity coefficient (PSCT1), a pressure compensation coefficient (PCCT1), a Pressure Temperature Coefficient (PTC), a pressure compensation temperature coefficient (TCPC), a reference Temperature Coefficient (TCREF) and a Temperature Sensitivity Coefficient (TSC).
(2) In the operation process of the gas meter, in order to obtain a measured temperature value and a measured pressure value, a pressure conversion command needs to be sent to the temperature and pressure assembly to obtain an effective value (RMSP) of a pressure channel, and a temperature conversion command needs to be sent to the temperature and pressure assembly to obtain an effective value (RMST) of a temperature channel. And calculating the difference between the actual temperature and the reference temperature, wherein the specific calculation method comprises the following steps:
dV=RMST-TCREF=RMST–(C5<<8)。
(3) obtaining the difference value between the actual temperature and the reference temperature, and calculating a measured temperature value, wherein the specific calculation method comprises the following steps:
TV=2000+dV*TSC=2000+((dV*C6)>>23)。
(4) then, an actual temperature compensation value and an actual temperature sensitivity value need to be calculated, and the measured pressure value can be calculated by using the two results, wherein the calculation method comprises the following specific steps:
ATPV=PCCT1+TCPC*dV=(C2<<17)+((C4*dV)>>6);
ATS=PSCT1+PTC*dV=(C1<<16)+((C3*dV)>>7);
PV=RMSP*ATS–ATPV=(((RMSP*ATS)>>21)–ATPV)>>15。
(5) since the reference temperature used is 20 c, if the measured temperature value is interpreted to be lower than this temperature, the measured temperature value and the measured pressure value need to be compensated for a second time. Then, a new actual temperature compensation value and a new actual temperature sensitivity value need to be calculated, and the specific calculation method comprises the following steps:
ATPV2=ATPV–((31*(TV–2000)2)>>3);
ATS2=ATS-((63*(TV–2000)2)>>5)。
(6) and next, calculating a new measured temperature and a new measured pressure value according to the new actual temperature compensation value and the new actual temperature sensitivity value, wherein the specific calculation method comprises the following steps:
TV2=TV–((11*dV2)>>35));
PV2=RMSP*ATS2–ATPV2=(((RMSP*ATS2)>>21)–ATPV2)>>15。
(7) and finally, measuring the standard condition of the gas meter by using the measured temperature value and the measured pressure value obtained by calculation.
From the ideal gas state equation:
the conditions of the standard environment, absolute pressure 101.325KPa (standard atmospheric pressure, 760mmHg) and temperature 20 ℃ (293.15K), can be found if P1 is atmospheric pressure in the standard environment, T1 is temperature in the standard environment, V1 is gas volume in the standard environment, P2, T2, V2 are atmospheric pressure, temperature and gas volume in the current situation, respectively:
V1=(P2*T1)/(P1*T2)*V2;
v1 is the gas volume we need to convert the current condition gas volume to the standard condition gas volume.
Claims (2)
1. A gas meter metering method based on temperature and pressure compensation calculation is characterized by comprising the following steps:
(1) respectively taking a gas meter with normal metering and a temperature and pressure component, wherein the gas meter carries out data transmission with the temperature and pressure component through an integrated circuit bus;
(2) the method comprises the steps that the gas meter sends a reset command to a temperature and pressure assembly, 6 regression coefficients returned to the gas meter by the temperature and pressure assembly are obtained, and the regression coefficients are C1, C2, C3, C4, C5 and C6 in sequence, wherein C1 represents a pressure sensitivity coefficient PSCT1C2 denotes the pressure compensation coefficient PCCT1C3 represents a pressure temperature coefficient PTC, C4 represents a pressure compensation temperature coefficient TCPC, C5 represents a reference temperature coefficient TCREF, C6 represents a temperature sensitivity coefficient TSC, the 6 regression coefficients are stored in a gas meter memory in a complementary code mode, and the data length is required to be 16 bits; the gas meter acquires the 6 regression coefficients from the memory every time temperature and pressure compensation is carried out on the gas meter;
(3) the gas meter respectively sends pressure conversion and temperature conversion commands to the temperature and pressure assembly to obtain an effective value RMS of a pressure channel and an effective value RMSTi of a temperature channel returned by the temperature and pressure assembly to the gas meter, and the obtained effective values are stored to the gas meter in a complement mode and require a data length of 32 bit;
(4) the gas meter obtains the current actual temperature through the calculation of the effective value of the temperature channel, and the calculation formula is as follows: RMST is a temperature channel effective value (RMSTi) temperature effective value conversion coefficient (Vi);
next, the gas meter calculates the difference dV between the actual temperature and the reference temperature, the reference temperature is factory set of the temperature and pressure assembly, and the gas meter reads the temperature and pressure assembly from the temperature and pressure assembly and stores the temperature and pressure assembly in a memory;
calculating the difference value dV between the actual temperature and the reference temperature according to the formula:
dV=RMST-TCREF;
RMST in the above formula represents the actual temperature, TCREFRepresents a reference temperature;
a measured temperature value TV calculation formula:
TV=2000+dV*TSC;
2000 in the formula represents a temperature value in a standard state, dV is a difference value between an actual temperature and a reference temperature, TSC is a temperature sensitivity coefficient, a gas meter reads out from a temperature and pressure assembly and stores the temperature and pressure assembly into a memory, and a measured temperature value TV is stored by adopting a 32bit signed integer number;
(5) the gas meter calculates an actual temperature compensation value ATPV;
ATPV=PCCT1+TCPC*dV;
PCC in the above equationT1The pressure compensation coefficient is read out from the temperature and pressure component by the gas meter and stored in the memory; TCPC is the pressure compensation temperature coefficient, read out from the temperature and pressure assembly by the gas meter and keep in the memorizer; dV represents the difference between the actual temperature and the reference temperature, and the calculation result ATPV is stored by adopting a 64-bit signed integer number;
the actual temperature sensitivity ATS calculation formula is as follows:
ATS=PSCT1+PTC*dV;
PSC in the above equationT1The pressure sensitivity coefficient is expressed, and the pressure sensitivity coefficient is read out from the temperature and pressure assembly by the gas meter and is stored in the memory; PTC represents a pressure temperature coefficient, and dV represents the difference between the actual temperature and the reference temperature;
next, calculating the measured pressure value PV, wherein the calculation formula is as follows:
PV=RMSP*ATS–ATPV;
in the formula, RMSP represents an effective value of a pressure channel, ATS represents an actual temperature sensitive value, ATPV represents an actual temperature compensation value, and a measured pressure value PV is stored by adopting 64-bit signed integer number;
(6) if the measured temperature value TV obtained in the step (4) is less than 20 ℃, the gas meter recalculates a new actual temperature compensation value ATPV2, a new actual temperature sensitivity value ATS2, a new temperature measurement value TV2 and temperature difference compensation Ti at 20 ℃ according to the calculation method in the step (5);
the formula for Ti is as follows:
Ti=(11*dV*dV)>>35;
in the above formula, dV is the difference between the actual temperature in step (4) and the reference temperature;
TV2=TV–Ti;
the TV in the formula is a calculation result of the measured temperature value in the step (4);
(7) the gas meter firstly judges whether the measured temperature value is higher than or lower than 20 ℃, if the measured temperature value is higher than 20 ℃, the measured pressure value is the calculation result PV in the step (5); recalculating the measured pressure value PV2 using ATPV2 and ATS2 calculated in step (6) if the measured temperature value is below 20 degrees;
(8) and (3) the gas meter measures the gas meter according to the current condition temperature and the current condition pressure obtained in the steps (4) and (5) or the gas meter according to the current condition pressure and the current condition pressure obtained in the step (7) and according to an ideal gas state equation, wherein the current condition temperature represents the temperature condition in the actual working environment of the gas meter, and the current condition pressure represents the pressure condition in the actual working environment of the gas meter, and according to a Kerbonlon equation:
PV=nRT;
in the above formula:
p is pressure, in units: pa;
v is volume, unit: m is3;
n is the amount of gaseous species, in units: mol;
r is a gas constant of 8.314 J.mol-1. K-1;
t is the thermodynamic temperature in K;
and obtaining nR ═ PV/T, and when nR is fixed, obtaining an ideal gas equation of the same mass gas under different states:
(P1*V1)/T1=(P2*V2)/T2,
let P1 be 1013.25mbar of standard atmospheric pressure and T1 be standardThe temperature under the state is 293.15K, P2 is the pressure under the current condition of the gas meter, T2 is the working temperature under the current condition of the gas meter, V2 represents the volume under the current condition of the gas meter, and the volume is generally 0.1m3The current state volume is converted into the volume V1 in the standard state.
2. The gas meter metering method based on temperature-pressure compensation calculation of claim 1, characterized in that: and (4) adjusting the temperature effective value conversion coefficient to 20 ℃ according to the quasi-high-temperature box, and calculating through the temperature channel effective value and the standard temperature of the high-temperature box body.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910067534.9A CN109855694B (en) | 2019-01-24 | 2019-01-24 | Gas meter metering method based on temperature and pressure compensation calculation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910067534.9A CN109855694B (en) | 2019-01-24 | 2019-01-24 | Gas meter metering method based on temperature and pressure compensation calculation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109855694A CN109855694A (en) | 2019-06-07 |
CN109855694B true CN109855694B (en) | 2020-10-27 |
Family
ID=66896017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910067534.9A Active CN109855694B (en) | 2019-01-24 | 2019-01-24 | Gas meter metering method based on temperature and pressure compensation calculation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109855694B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113611378A (en) * | 2021-08-12 | 2021-11-05 | 克拉玛依市科华技术服务有限责任公司 | On-line time development of major hazardous source substances of devices of refining enterprises |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106840323A (en) * | 2016-12-27 | 2017-06-13 | 威海拙诚燃气安全设备有限公司 | Diaphragm gas meter measuring and testing device and method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8667839B2 (en) * | 2011-02-18 | 2014-03-11 | Tohoku Gakuin | Heat conduction-type sensor for calibrating effects of temperature and type of fluid, and thermal flow sensor and thermal barometric sensor using this sensor |
CN206974494U (en) * | 2017-07-25 | 2018-02-06 | 深圳中燃哈工大燃气技术研究院有限公司 | Civilian ultrasonic wave gas meter with accurate compensation temperature and pressure functional |
CN107727310B (en) * | 2017-11-30 | 2020-12-11 | 中国科学院工程热物理研究所 | Plasma pressure sensor and plasma pressure sensing system |
CN109238524B (en) * | 2018-08-28 | 2020-12-18 | 西安航天动力研究所 | Wide-temperature-zone high-precision sputtering film pressure sensor and manufacturing method thereof |
CN109060060B (en) * | 2018-09-04 | 2020-05-08 | 宁夏隆基宁光仪表股份有限公司 | Gas metering method and device based on temperature compensation |
-
2019
- 2019-01-24 CN CN201910067534.9A patent/CN109855694B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106840323A (en) * | 2016-12-27 | 2017-06-13 | 威海拙诚燃气安全设备有限公司 | Diaphragm gas meter measuring and testing device and method |
Non-Patent Citations (1)
Title |
---|
温度压力对皮膜表计量误差及经济效益的影响;李星蓉等;《天然气技术与经济》;20180828;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109855694A (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5097132B2 (en) | Multiphase overreading correction in process variable transmitters | |
US7761248B2 (en) | Method and apparatus for legacy comparison | |
CN1128989C (en) | Method for calibrating flow measuring system | |
CN101915902B (en) | Calibration method and calibration system for field test equipment | |
CN102768060B (en) | Multifunctional high-accuracy electronic balance | |
CN101706294B (en) | Method for automatically judging calibration time of sensor | |
CN106248296A (en) | The multivariate of pressure transmitter, alternating temperature scaling method | |
CN109323796B (en) | A kind of full warm area range pressure sensor scaling method | |
CN107181300B (en) | Charge protector, the method and apparatus for calibrating charging equipment | |
CN104793172A (en) | Temperature segmentation calibrating and metering method of power metering device | |
CN109855694B (en) | Gas meter metering method based on temperature and pressure compensation calculation | |
JP2019139765A (en) | Measurement system | |
CN105572191A (en) | Pressure compensation method of electrochemical gas sensor | |
CN106546361A (en) | The reduction of nonlinearity erron in car force sensor | |
CN112946560A (en) | Electric energy meter calibration method and device, electric energy meter and electric energy meter system | |
TWI576596B (en) | Electric capacity measurement apparatus with temperature compensation and temperature compensation method thereof | |
CN203881412U (en) | Device for fast calibrating differential pressure type liquidometer on working condition site | |
CN212253981U (en) | Temperature test and compensation system of strain sensor | |
CN113503988A (en) | Temperature sensor calibration method and system and temperature sensor | |
CN102798497A (en) | Intelligent atmospheric pressure measuring device | |
CN109060060B (en) | Gas metering method and device based on temperature compensation | |
CN109405884B (en) | System and method for realizing humidity calibration function based on temperature and humidity sensor | |
CN108919063B (en) | Electric field telemetry system and method based on capacitance correction principle | |
CN105974344A (en) | Calibration system and method for relative dielectric loss and electric capacity detector | |
CN109211193A (en) | A kind of wireless sensor network inclination angle fulcrum temperature-compensation method |
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 |