JP2001027554A - Method and device for generating flowrate pulse and/or electronic-type gas meter - Google Patents

Method and device for generating flowrate pulse and/or electronic-type gas meter

Info

Publication number
JP2001027554A
JP2001027554A JP11198891A JP19889199A JP2001027554A JP 2001027554 A JP2001027554 A JP 2001027554A JP 11198891 A JP11198891 A JP 11198891A JP 19889199 A JP19889199 A JP 19889199A JP 2001027554 A JP2001027554 A JP 2001027554A
Authority
JP
Japan
Prior art keywords
volume
value
passing
passing volume
flow
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.)
Granted
Application number
JP11198891A
Other languages
Japanese (ja)
Other versions
JP3589397B2 (en
Inventor
Shinichi Tanaka
真一 田中
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.)
Yazaki Corp
Original Assignee
Yazaki Corp
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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP19889199A priority Critical patent/JP3589397B2/en
Publication of JP2001027554A publication Critical patent/JP2001027554A/en
Application granted granted Critical
Publication of JP3589397B2 publication Critical patent/JP3589397B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measuring Volume Flow (AREA)
  • Details Of Flowmeters (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain flowrate pulse generation method and device and/or an electronic-type gas meter that can generate a flowrate pulse with a period according to the passing volume of gas without shortening a sampling period. SOLUTION: Every time when a calculation means 14a-1 intermittently calculates passing volume at a fixed period, a calculation means 14a-2 calculates the 1/N value of the passing volume. Until an integrating means 14a-3 integrates the 1/N value for N times, a counter means 14a-4 repeatedly counts the number of times of integration where an integration value reaches unit passing volume/2 or more. Until the integration is made for N times, every time when the unit passing volume/2 is reached, a subtraction means 14a-5 repeatedly subtracts the value of the unit passing volume/2 from the integration value. A decision means 14a-6 multiplies the number of integration times by a fixed period, 1/N, for determining an output reversal timing to the next. A pulse generation means 14a-7 reverses output at the decision timing for generating the flowrate pulse of a period corresponding to the passing volume.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ガスの流速に応じ
て変化する物理量を間欠的に、すなわち、サンプリング
周期にて計測し、この計測した物理量によってガス流速
を求め、この流速と流路の断面積とによって瞬時流量を
求め、この瞬時流量に間欠時間を乗じて求めた通過体積
に応じてガスの単位通過体積に対応した流量パルスを発
生する流量パルス発生方法及び装置に関するものであ
る。本発明は更に、流量パルス発生装置において計測し
た通過体積を積算して表示する計量表示部と流量パルス
発生装置の発生する流量パルスによってガス流の異常を
検出する保安論理部とを内蔵した電子式ガスメータに関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for measuring a physical quantity which varies according to a gas flow rate intermittently, that is, at a sampling period, and obtaining a gas flow rate from the measured physical quantity. The present invention relates to a method and an apparatus for generating a flow pulse which generates a flow pulse corresponding to a unit passing volume of a gas in accordance with a passing volume calculated by multiplying an instantaneous flow by an intermittent time. The present invention further provides an electronic type having a built-in weighing display unit for integrating and displaying the passing volume measured by the flow pulse generator and a security logic unit for detecting a gas flow abnormality by the flow pulse generated by the flow pulse generator. It relates to a gas meter.

【0002】[0002]

【従来の技術】従来の膜式のガスメータでは、ダイヤフ
ラムからなる隔膜によって仕切られた2つの部屋と、こ
の2つの部屋の各々をガス入口部及びガス出口部に交互
に接続する滑弁からなる切換弁と、隔膜と切換弁を連結
して隔膜の移動を切換弁に伝達して切換弁を駆動する連
結機構とを備えた構造を有している。このガスメータで
は、ガスメータの下流側においてガス消費などがあって
ガス出口部のガス圧が低下すると、ガス入口部とガス出
口部との間に差圧が生じ、ガス入口部につながっている
一方の部屋にガスが流入し、このガスの流入により隔膜
が移動してガス出口部につながっている他方の部屋のガ
スが排出される。一方の部屋に十分なガスが流入し、他
方の部屋のガスが十分に排出される程に隔膜が移動する
と、この隔膜の移動が連結機構を介して切換弁に伝達さ
れて切換弁を駆動し、それまでガス入口部に接続されて
いた一方の部屋をガス出口部に接続し、ガス出口部に接
続されていた他方の部屋をガス入口部に接続するように
なる。
2. Description of the Related Art In a conventional membrane gas meter, there is provided a switching device comprising two chambers separated by a diaphragm comprising a diaphragm, and a slide valve for alternately connecting each of the two chambers to a gas inlet and a gas outlet. It has a structure including a valve, and a connecting mechanism that connects the diaphragm and the switching valve, transmits the movement of the diaphragm to the switching valve, and drives the switching valve. In this gas meter, when the gas pressure at the gas outlet decreases due to gas consumption or the like on the downstream side of the gas meter, a pressure difference is generated between the gas inlet and the gas outlet, and one of the gas meters is connected to the gas inlet. The gas flows into the chamber, and the gas flows in the chamber, whereby the diaphragm moves and the gas in the other chamber connected to the gas outlet is discharged. When the diaphragm moves so that sufficient gas flows into one room and gas in the other room is sufficiently exhausted, the movement of the diaphragm is transmitted to the switching valve via the connection mechanism to drive the switching valve. One room connected to the gas inlet is connected to the gas outlet, and the other room connected to the gas outlet is connected to the gas inlet.

【0003】よって、以後他方の部屋にガスが流入し、
一方の部屋のガスが排出されるようになる。また、連結
機構の途中から得た動力によって駆動され、隔膜が一往
復して所定ガス量を排出したことに応じて1回転するN
S極の着磁されたマグネットが取付られており、このマ
グネットの1回転によってリードスイッチがオン、オフ
して流量パルスを発生するようになっている。すなわ
ち、隔膜の往復動に連動して回転するマグネットとリー
ドスイッチによって流量センサが構成されている。ま
た、ガスメータには、上述した流量センサからの流量パ
ルスに基づいてガス流を監視してその異常を検出し、ガ
ス事故を防止する各種の保安機能を実行する保安論理部
が内蔵されている。
[0003] Therefore, after that, gas flows into the other room,
The gas in one room will be exhausted. Further, driven by power obtained from the middle of the coupling mechanism, the diaphragm makes one revolution in response to one reciprocation of the diaphragm to discharge a predetermined amount of gas.
An S-pole magnetized magnet is attached, and the reed switch is turned on and off by one rotation of this magnet to generate a flow pulse. That is, the flow sensor is constituted by the magnet and the reed switch which rotate in conjunction with the reciprocation of the diaphragm. Further, the gas meter has a built-in security logic unit that monitors a gas flow based on a flow pulse from the flow sensor described above, detects an abnormality thereof, and executes various security functions to prevent a gas accident.

【0004】ところで、上述の流量センサがガス流量を
検出して発生する流量パルスは、隔膜が一往復して例え
ば0.7Lの単位計量体積を計量する毎に発生される2
つのパルスからなっており、この流量パルスの周期はガ
ス流量が大きくなると短くなり、小さくなると長くな
る。この流量パルスを利用する保安論理部は、流量パル
スの各パルスが入力される毎に前回パルスからの周期を
計測処理してガス流量を求め、このガス流量に基づいて
論理処理を行って保安のための機能を果たすようになっ
ている。
The flow rate pulse generated by the above-mentioned flow rate sensor detecting the gas flow rate is generated every time the diaphragm makes one reciprocation and weighs a unit weighing volume of 0.7 L, for example.
The cycle of the flow rate pulse becomes shorter as the gas flow rate becomes larger, and becomes longer as the gas flow rate becomes smaller. The security logic unit using the flow rate pulse measures the cycle from the previous pulse every time each pulse of the flow rate pulse is input, obtains the gas flow rate, performs logic processing based on the gas flow rate, and performs security processing. To fulfill the function.

【0005】最近、上述した膜式のガスメータは機械的
な動作を伴うため、構造が複雑でかつ小型化に制限があ
るほか、寿命の点でも問題があるので、膜式のガスメー
タに代えて完全に電子化した各種の電子ガスメータが提
案されている。これらに共通していることは、ガス流の
速度によって変化する物理量を計測することによってガ
ス流速を求め、この求めた流速と流路の断面積とによっ
て瞬時流量を求め、この瞬時流量を積分して通過体積を
計算し、この通過体積を積算して積算流量を求めるよう
にしている。例えば、超音波式流量センサでは、ガス流
の速度によって超音波の伝達時間が変化することを利用
し、ガス流中に超音波を間欠的に発射してその到達時間
を計測することによって、ガス流速を計測し、この計測
した流速に流路の面積を乗じて瞬時流量を求め、この瞬
時流量に間欠時間を乗じて通過流量を算出するようにな
っている。
[0005] Recently, the above-mentioned membrane gas meter involves a mechanical operation, so that its structure is complicated and its size is limited, and there is a problem in terms of life. Various electronic gas meters have been proposed. What is common to these is that the gas flow velocity is obtained by measuring a physical quantity that changes according to the velocity of the gas flow, the instantaneous flow rate is obtained from the obtained flow velocity and the cross-sectional area of the flow path, and this instantaneous flow rate is integrated. Then, the passing volume is calculated, and the passing volume is integrated to obtain an integrated flow rate. For example, an ultrasonic flow sensor utilizes the fact that the transmission time of an ultrasonic wave varies depending on the speed of a gas flow, and intermittently emits an ultrasonic wave in a gas flow to measure the arrival time. The flow velocity is measured, the instantaneous flow rate is obtained by multiplying the measured flow velocity by the area of the flow path, and the passing flow rate is calculated by multiplying the instantaneous flow rate by the intermittent time.

【0006】したがって、ガスメータの積算流量を求め
る機能だけを得ようとするのであれば、上述したよう
に、流速と流路の断面積とによって瞬時流量を求め、こ
の瞬時流量を積分して積算流量を求めるようにすればよ
いが、開発の手間や安全規格の再取得などの観点から、
保安論理部に従来からのものを利用しようとした場合に
は、流量センサの出力によって計測した物理量に基づい
て通過体積を求める流量計測部に、通過体積に応じた周
期の流量パルスを出力させる機能を付加する必要があ
る。
Therefore, to obtain only the function of obtaining the integrated flow rate of the gas meter, as described above, the instantaneous flow rate is obtained from the flow velocity and the sectional area of the flow path, and this instantaneous flow rate is integrated to obtain the integrated flow rate. However, from the viewpoint of the labor of development and reacquisition of safety standards,
When using a conventional security logic unit, a function to output a flow pulse with a period corresponding to the passage volume to the flow measurement unit that calculates the passage volume based on the physical quantity measured by the output of the flow sensor Need to be added.

【0007】因みに、通過流量が100(m3 /h)で
40(L/パルス)の流量パルスを出力する場合には、
流量パルスの信号周波数は0.694Hz(周期は1.
44秒)となるが、流量パルスを精度良く出力するため
には、超音波式センサでは超音波を発射して流速を計測
する周期、すなわち、サンプリング周期を1.44秒以
下にしなければならない。これは、ガス流速或いはガス
流量を反映した周期の流量パルスを出力しようとしたと
き、その出力周期がくる前に計測を終わっていなければ
ならないからである。このため、100(m3 /h)以
上の通過流量のものを考えたときには、流量計測部にお
けるサンプリング周期が限りなく短くなっていく。
By the way, when a flow rate of 40 (L / pulse) is output at a flow rate of 100 (m 3 / h),
The signal frequency of the flow pulse is 0.694 Hz (the period is 1.
However, in order to accurately output the flow rate pulse, the ultrasonic sensor must emit ultrasonic waves and measure the flow velocity, that is, the sampling cycle must be 1.44 seconds or less. This is because, when an attempt is made to output a flow pulse having a cycle reflecting the gas flow velocity or the gas flow rate, the measurement must be completed before the output cycle comes. For this reason, when a flow rate of 100 (m 3 / h) or more is considered, the sampling cycle in the flow rate measuring unit becomes infinitely short.

【0008】[0008]

【発明が解決しようとする課題】上述したように、流量
パルスを発生する毎にサンプリングを行うようにしたも
のにおいては、短い周期の流量パルスを発生する場合、
サンプリング周期をそれに伴って短くしておくことが必
要となる。例えば、超音波式の流量センサでは、サンプ
リング毎に超音波を発射して信号処理を行わなければな
らず、電力消費が大きくなり、電源として電池を使用し
ているが、電池交換をできるだけ避けたいガスメータに
上述のような流量パルス発生方法及び装置を適用するこ
とが難しくなる。
As described above, in the case where sampling is performed every time a flow pulse is generated, when a flow pulse having a short cycle is generated,
It is necessary to shorten the sampling cycle accordingly. For example, in an ultrasonic flow sensor, signal processing must be performed by emitting ultrasonic waves every sampling, which increases power consumption and uses a battery as a power source. It becomes difficult to apply the above-described flow pulse generating method and apparatus to a gas meter.

【0009】よって、本発明は、上述した点に鑑み、サ
ンプリング周期を短くすることなく、ガスの通過体積に
応じた周期のガスの単位通過体積に対応した流量パルス
を発生できるようにした流量パルス発生方法及び装置を
提供することを課題としている。
In view of the above, the present invention provides a flow pulse capable of generating a flow pulse corresponding to a unit passage volume of a gas having a cycle corresponding to the gas passage volume without shortening a sampling period. It is an object to provide a generation method and an apparatus.

【0010】本発明はまた、サンプリング周期を短くす
ることなく、ガスの通過体積に応じた周期のガスの単位
通過体積に対応した流量パルスを発生できるようにした
流量パルス発生装置と、該流量パルス発生装置の発生す
る流量パルスを利用する保安論理部とを有する電子式ガ
スメータを提供することを課題としている。
The present invention also provides a flow pulse generating apparatus capable of generating a flow pulse corresponding to a unit passage volume of a gas having a cycle corresponding to a gas passage volume without shortening a sampling period, An object of the present invention is to provide an electronic gas meter having a security logic unit using a flow pulse generated by a generator.

【0011】[0011]

【課題を解決するための手段】上記課題を解決するため
成された請求項1記載の発明は、通過体積を一定周期で
間欠的に算出し、通過体積を算出する毎に、該算出した
通過体積の1/N値を算出し、該算出した1/N値をそ
れ以前の積算値に順次積算し、該積算値が単位通過体積
の1/2以上となる毎にその積算回数を求めるとともに
積算値から単位通過体積の1/2の値を減算することを
前記1/N値をN回積算するまで繰り返し、前記積算回
数に前記一定周期の1/Nを乗じて出力を反転するタイ
ミングを決定し、該決定したタイミングで出力を反転し
て前記通過体積に応じた周期のガスの単位通過体積に対
応した流量パルスを発生することを特徴とする流量パル
ス発生方法に存する。
According to a first aspect of the present invention, there is provided an apparatus for calculating a passing volume intermittently at a constant period, and each time the passing volume is calculated, the calculated passing volume is calculated. The 1 / N value of the volume is calculated, the calculated 1 / N value is sequentially integrated with the previous integrated value, and each time the integrated value becomes equal to or more than の of the unit passing volume, the number of times of integration is obtained. The subtraction of 1/2 of the unit passage volume from the integrated value is repeated until the 1 / N value is integrated N times, and the timing of inverting the output by multiplying the integrated number by 1 / N of the predetermined period is determined. A flow pulse generating method is characterized in that the flow pulse is determined and the output is inverted at the determined timing to generate a flow pulse corresponding to a unit passing volume of the gas having a cycle corresponding to the passing volume.

【0012】請求項1記載の流量パルス発生方法の手順
によれば、一定周期で間欠的に算出した通過体積の1/
N値を、その算出毎に、算出した通過体積の1/N値を
算出し、該算出した1/N値をそれ以前の積算値に順次
積算し、該積算値が単位通過体積の1/2以上となる毎
にその積算回数を求めるとともに積算値から単位通過体
積の1/2の値を減算することを1/N値をN回積算す
るまで繰り返す。積算回数に一定周期の1/Nを乗じて
決定したタイミングで出力を反転して通過体積に応じた
周期のガスの単位通過体積に対応した流量パルスを発生
する。
According to the procedure of the flow pulse generating method according to the first aspect, 1/1 of the passing volume calculated intermittently at a constant cycle.
For each calculation, the N value is calculated as 1 / N value of the calculated passing volume, and the calculated 1 / N value is sequentially integrated with the integrated value before it, and the integrated value is calculated as 1 / N of the unit passing volume. Every time it becomes 2 or more, the number of times of integration is obtained, and the subtraction of 1 / of the unit passage volume from the integrated value is repeated until the 1 / N value is integrated N times. The output is inverted at a timing determined by multiplying the number of integration times by 1 / N of a certain cycle, and a flow pulse corresponding to a unit passing volume of the gas having a cycle corresponding to the passing volume is generated.

【0013】以上により、算出した通過体積が小さいと
きには1/N値が小さくなって、その積算値が単位通過
体積の1/2以上となることがなく、次の通過体積が算
出されるまでに出力を反転するタイミングが決定される
ことがない。また、通過体積が大きいときには1/N値
が大きくなって、その積算値が単位通過体積の1/2以
上となることが複数回となって、次の通過体積が算出さ
れるまで出力を反転するタイミングが複数決定されるこ
とになる。よって、積算した通過体積が小さいときすな
わち流量が小さいときには、1回間欠的に算出した通過
体積によっても流量パルスを出力しなくなり、また積算
した通過体積が大きいときすなわち流量が大きいときに
は、1回間欠的に算出した通過体積でも単位通過体積の
1/2毎に反転する複数の流量パルスを出力するように
なるので、通過体積が大きい場合にも、間欠的な通過体
積の算出周期を短くすることなく、すなわち、サンプリ
ング周期を短くすることなく、通過体積に応じた周期の
ガスの単位通過体積に対応した流量パルスを発生でき
る。また、流量パルスは単位通過体積の1/2すなわち
半分の積算値毎に反転するので、流量パルスの立ち上が
り又は立ち下がりから立ち下がり又は立ち上がりによっ
て、単位通過体積を検出することができる。
As described above, when the calculated passing volume is small, the 1 / N value becomes small, and the integrated value does not become 1 / or more of the unit passing volume, and until the next passing volume is calculated. The timing for inverting the output is not determined. Also, when the passing volume is large, the 1 / N value increases, and the integrated value becomes 1/2 or more of the unit passing volume multiple times, and the output is inverted until the next passing volume is calculated. A plurality of timings are determined. Therefore, when the integrated passing volume is small, that is, when the flow rate is small, the flow pulse is not output even with the passing volume calculated once intermittently, and when the integrated passing volume is large, that is, when the flow rate is large, one time intermittent pulse is output. A plurality of flow pulses that are inverted every 1/2 of the unit passing volume will be output even with the calculated passing volume, so even if the passing volume is large, the intermittent passing volume calculation cycle should be shortened. That is, a flow pulse corresponding to a unit passing volume of gas having a cycle corresponding to the passing volume can be generated without shortening the sampling cycle. In addition, since the flow pulse is inverted every half of the unit passage volume, that is, every half of the integrated value, the unit passage volume can be detected from the rise or fall to the fall or rise of the flow pulse.

【0014】上記課題を解決するため成された請求項2
記載の発明は、図1の基本構成図に示すように、通過体
積を一定周期で間欠的に算出する通過体積算出手段14
a−1と、該通過体積算手段によって通過体積が算出さ
れる毎に、前記通過体積の1/N値を算出する1/N算
出手段14a−2と、前記1/N値を順次積算する積算
手段14a−3と、前記1/N値をN回積算するまで、
前記積算手段による積算値が単位通過体積の1/2以上
となるまでの積算回数を計数することを繰り返す積算回
数計数手段14a−4と、前記1/N値をN回積算する
まで、前記積算値が単位通過体積の2分の1となる毎に
前記積算値から単位通過体積の1/2の値を減算するこ
とを繰り返す減算手段14a−5と、前記積算回数に前
記一定周期の1/Nを乗じ、前記通過体積算出手段が通
過体積を次に算出するまでの出力を反転するタイミング
を決定するタイミング決定手段14a−6と、該タイミ
ング決定手段によって決定したタイミングで出力を反転
して前記通過体積に応じた周期の単位通過体積に対応す
る流量パルスを発生するパルス発生手段14a−7とを
備えることを特徴とする流量パルス発生装置に存する。
A second aspect of the present invention has been made to solve the above problems.
The disclosed invention is, as shown in the basic configuration diagram of FIG. 1, a passing volume calculating means 14 for calculating a passing volume intermittently at a constant period.
a-1; 1 / N calculating means 14a-2 for calculating a 1 / N value of the passing volume each time the passing volume is calculated by the passing body integrating means; and 1 / N value is sequentially integrated. With the integrating means 14a-3, until the 1 / N value is integrated N times,
An integration number counting means 14a-4 for repeating counting the number of integrations until the integrated value by the integrating means becomes equal to or more than 1 / of the unit passage volume; and the integration until the 1 / N value is integrated N times. A subtracting means 14a-5 for repeating a subtraction of a half of the unit passage volume from the integrated value each time the value becomes a half of the unit passage volume; N, multiplying by N, the timing determining means 14a-6 for determining the timing of inverting the output until the passing volume is next calculated by the passing volume calculating means, and inverting the output at the timing determined by the timing determining means. And a pulse generating means 14a-7 for generating a flow pulse corresponding to a unit passing volume having a cycle corresponding to the passing volume.

【0015】請求項2記載の流量パルス発生装置によれ
ば、通過体積算出手段14a−1が一定周期で間欠的に
通過体積を算出し、その算出毎に、1/N算出手段14
a−2が通過体積の1/N値を算出する。積算手段14
a−3が1/N値を順次積算し、1/N値をN回積算す
るまで、積算手段による積算値が単位通過体積の1/2
以上となるまでの積算回数を積算回数計数手段14a−
4が計数することを繰り返す。また、1/N値をN回積
算するまで、積算値が単位通過体積の2分の1となる毎
に減算手段14a−5が積算値から単位通過体積の1/
2の値を減算することを繰り返す。タイミング決定手段
14a−6が積算回数に一定周期の1/Nを乗じ、通過
体積算出手段が通過体積を次に算出するまでの出力を反
転するタイミングを決定する。パルス発生手段14a−
7がタイミング決定手段によって決定したタイミングで
出力を反転して前記通過体積に応じた周期の単位通過体
積に対応する流量パルスを発生する。
According to the second aspect of the present invention, the passing volume calculating means 14a-1 intermittently calculates the passing volume at a fixed period, and every time the calculation is performed, the 1 / N calculating means 14a-1 is used.
a-2 calculates the 1 / N value of the passage volume. Integrator 14
Until a-3 integrates the 1 / N value sequentially and integrates the 1 / N value N times, the integrated value by the integrating means is 1 / of the unit passage volume.
The cumulative number of times until the above is reached is calculated by the cumulative number counting means 14a-
4 repeats counting. Until the 1 / N value is integrated N times, each time the integrated value becomes one half of the unit passage volume, the subtraction means 14a-5 calculates 1 / N of the unit passage volume from the integrated value.
The subtraction of 2 is repeated. The timing determining means 14a-6 multiplies the number of integration times 1 / N of a certain period, and determines the timing of inverting the output until the passing volume calculating means next calculates the passing volume. Pulse generating means 14a-
7 inverts the output at the timing determined by the timing determining means and generates a flow pulse corresponding to a unit passing volume of a cycle corresponding to the passing volume.

【0016】以上により、算出した通過体積が小さいと
きには1/N値が小さくなって、その積算値が単位通過
体積の1/2以上となることがなく、次の通過体積が算
出されるまでに出力を反転するタイミングが決定される
ことがない。また、通過体積が大きいときには1/N値
が大きくなって、その積算値が単位通過体積の1/2以
上となることが複数回となって、次の通過体積が算出さ
れるまで出力を反転するタイミングが複数決定されるこ
とになる。よって、積算した通過体積が小さいときすな
わち流量が小さいときには、1回間欠的に算出した通過
体積によっても流量パルスを出力しなくなり、また積算
した通過体積が大きいときすなわち流量が大きいときに
は、1回間欠的に算出した通過体積でも単位通過体積の
1/2毎に反転する複数の流量パルスを出力するように
なるので、通過体積が大きい場合にも、間欠的な通過体
積の算出周期を短くすることなく、すなわち、サンプリ
ング周期を短くすることなく、通過体積に応じた周期の
ガスの単位通過体積に対応した流量パルスを発生でき
る。また、流量パルスは単位通過体積の1/2すなわち
半分の積算値毎に反転するので、流量パルスの立ち上が
り又は立ち下がりから立ち下がり又は立ち上がりによっ
て、単位通過体積を検出することができる。
As described above, when the calculated passing volume is small, the 1 / N value becomes small, and the integrated value does not become 1 / or more of the unit passing volume, and until the next passing volume is calculated. The timing for inverting the output is not determined. Also, when the passing volume is large, the 1 / N value increases, and the integrated value becomes 1/2 or more of the unit passing volume multiple times, and the output is inverted until the next passing volume is calculated. A plurality of timings are determined. Therefore, when the integrated passing volume is small, that is, when the flow rate is small, the flow pulse is not output even with the passing volume calculated once intermittently, and when the integrated passing volume is large, that is, when the flow rate is large, one time intermittent pulse is output. A plurality of flow pulses that are inverted every 1/2 of the unit passing volume will be output even with the calculated passing volume, so even if the passing volume is large, the intermittent passing volume calculation cycle should be shortened. That is, a flow pulse corresponding to a unit passing volume of gas having a cycle corresponding to the passing volume can be generated without shortening the sampling cycle. In addition, since the flow pulse is inverted every half of the unit passage volume, that is, every half of the integrated value, the unit passage volume can be detected from the rise or fall to the fall or rise of the flow pulse.

【0017】請求項3記載の発明は、請求項2記載の流
量パルス発生装置において、前記タイミング決定手段
は、前記積算回数に前記一定周期の1/Nを乗じて求め
た時間を格納する時間格納手段14c−1と、該時間格
納手段に格納された時間を順次読み出し計時するタイマ
手段14c−2とを有し、該タイマ手段が前記読み出し
た時間を計時した時点を、前記通過体積算出手段が通過
体積を次に算出するまでの出力を反転するタイミングと
して決定することを特徴とする流量パルス発生装置に存
する。
According to a third aspect of the present invention, in the flow rate pulse generator according to the second aspect, the timing determination means stores a time obtained by multiplying the integration number by 1 / N of the predetermined period. Means 14c-1; and timer means 14c-2 for sequentially reading and storing the time stored in the time storage means. The passing volume calculation means determines the time when the timer means measures the read time. The flow rate pulse generator is characterized in that the flow volume is determined as the timing of inverting the output until the next calculation of the passing volume.

【0018】請求項3記載の流量パルス発生装置によれ
ば、時間格納手段14c−1が積算回数に一定周期の1
/Nを乗じて求めた時間を格納し、タイマ手段14c−
2が格納されている時間を順次読み出し計時し、タイマ
手段が読み出した時間を計時した時点を、通過体積算出
手段が通過体積を次に算出するまでの出力を反転するタ
イミングとして決定するので、通過体積を算出した直前
に積算値があるときの積算回数は前の積算値を反映し1
/N値を積算する回数が小さく、その後の積算回数は大
きくなる。よって、時間格納手段14c−1には、積算
回数に一定周期の1/Nを乗じて求めた複数の時間が格
納されることがあるが、タイマ手段14c−2が格納さ
れた時間を順次読出して計時し、ガスの通過体積に応じ
た周期のガスの単位通過体積に対応した流量パルスに変
換して出力することができる。
According to the flow rate pulse generator of the third aspect, the time storage means 14c-1 stores the number of times of integration in the fixed period of one.
/ N is stored, and the timer means 14c-
2 is sequentially read and timed, and the time when the timer means reads the time is determined as the timing for inverting the output until the passed volume calculation means next calculates the passed volume. When there is an integrated value immediately before calculating the volume, the number of integrations is 1 reflecting the previous integrated value.
The number of times of integration of the / N value is small, and the number of integrations thereafter is large. Therefore, the time storage unit 14c-1 may store a plurality of times obtained by multiplying the number of times of integration by 1 / N of a certain period, but the timer unit 14c-2 sequentially reads the stored times. It can be converted into a flow pulse corresponding to a unit passing volume of gas having a cycle corresponding to the passing volume of gas and output.

【0019】請求項4記載の発明は、請求項2又は3記
載の流量パルス発生装置と、該流量パルス発生装置の前
記通過体積算出手段によって求めた通過体積を積算する
通過体積積算手段14a−8と、該通過体積積算手段に
より積算した通過体積を表示する表示手段15と、前記
流量パルス発生装置の発生する流量パルスによってガス
流の異常を検出する保安論理手段20とを備えることを
特徴とする電子式ガスメータに存する。
According to a fourth aspect of the present invention, there is provided a flow pulse generating apparatus according to the second or third aspect, and a passing volume integrating means for integrating the passing volume obtained by the passing volume calculating means of the flow pulse generating apparatus. And a display means 15 for displaying the passing volume integrated by the passing volume integrating means, and a security logic means 20 for detecting a gas flow abnormality by a flow pulse generated by the flow pulse generator. It exists in electronic gas meters.

【0020】請求項4記載の電子式ガスメータによれ
ば、流量パルス発生装置が通過体積に応じた周期の流量
パルスを発生するので、保安論理手段20として流量パ
ルスの各パルスの周期によってガス流の異常を検出する
ものを使用することができる。
According to the electronic gas meter of the present invention, the flow rate pulse generator generates the flow rate pulse having a cycle corresponding to the passing volume. Anything that detects abnormalities can be used.

【0021】[0021]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。図2は本発明による流量パルス発
生方法を実施する装置及び流量計測装置を組み込んだ電
子式ガスメータ1を示している。図示の電子式ガスメー
タ1は流量計測部100と保安論理部20とを有する。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 shows an electronic gas meter 1 incorporating a device for implementing the flow pulse generating method according to the present invention and a flow measuring device. The illustrated electronic gas meter 1 has a flow rate measurement unit 100 and a security logic unit 20.

【0022】流量計測部100は、ガスの流速に応じて
変化する物理量を間欠的に、すなわち、サンプリング周
期にて計測し、この計測した物理量によってガス流速を
求め、この流速と流路の断面積とによって瞬時流量を求
め、この瞬時流量に間欠時間を乗じて通過体積を求める
と共に、この求めた通過体積によりガスの単位通過体積
に対応した流量パルスを発生し、この流量パルスを保安
論理部20に供給するようになっている。保安論理部2
0は、流量計測部100からの流量パルスによってガス
流の異常を検出する。
The flow rate measuring section 100 intermittently measures a physical quantity that changes according to the gas flow velocity, that is, at a sampling cycle, obtains a gas flow velocity based on the measured physical quantity, and determines the flow velocity and the cross-sectional area of the flow path. And the instantaneous flow rate is multiplied by the intermittent time to obtain a passing volume. The obtained passing volume generates a flow pulse corresponding to the unit passing volume of the gas. To be supplied. Security Logic 2
0 detects an abnormality in the gas flow by the flow pulse from the flow measurement unit 100.

【0023】流量計測部100として、図3に示す超音
波式のものを例にして以下説明する。超音波式の流量計
測部100は、ガスを流すガスメータ中の流路としての
ガス流路10内にガス流方向において距離Lだけ離され
互いに対向して配置された超音波周波数で作動する例え
ば圧電式振動子からなる2つの音響トランスジューサT
D1及びTD2と、ガス流路10に連通した空所10a
内に距離lだけ離れた管壁10bに対向して配置された
音響トランスジューサTD3とを有する。ガス流路10
には、両音響トランスジューサTD1、TD2の上流側
に弁閉によってガス流路10を遮断する遮断弁10cが
設けられている。
The ultrasonic flow meter shown in FIG. 3 will be described below as an example of the flow measuring unit 100. The ultrasonic flow rate measuring unit 100 is operated at an ultrasonic frequency which is disposed opposite to each other at a distance L in a gas flow direction in a gas flow path 10 as a flow path in a gas meter for flowing gas. Acoustic transducers T composed of a piezoelectric vibrator
Void 10a communicating with D1 and TD2 and gas flow path 10
And a sound transducer TD3 disposed opposite to the tube wall 10b separated by a distance l. Gas flow path 10
Is provided with a shutoff valve 10c upstream of the two acoustic transducers TD1, TD2 to shut off the gas flow path 10 by closing the valve.

【0024】各トランスジューサTD1及びTD2、T
D3はトランスジューサインタフェース(I/F)回路
11a及び11bをそれぞれ介して送信回路12及び受
信回路13に接続されている。送信回路12は、マイク
ロコンピュータ(μCOM)14の制御の下で、トラン
スジューサTD1、TD2の一方を駆動して超音波信号
を発生させる信号をパルスバーストの形で送信し、この
ための発振回路(図示せず)を内蔵している。受信回路
13は、ガス流路10を通過した超音波信号を受信した
他方のトランスジューサTD1、TD2からの信号を入
力して超音波信号を処理する前置増幅器(図示せず)を
内蔵している。トランスジューサTD3については、ト
ランスジューサTD1及びTD2に対するとは別のタイ
ミングでμCOM14が送信回路12と受信回路13を
制御し、トランスジューサTD3を駆動して超音波信号
を発生させるように送信回路12を制御するとともに、
同じトランスジューサTD3が管壁10bから反射され
てくる超音波信号を受信して発生する信号を入力させる
ように受信回路13を制御する。
Each transducer TD1, TD2, T
D3 is connected to a transmission circuit 12 and a reception circuit 13 via transducer interface (I / F) circuits 11a and 11b, respectively. The transmission circuit 12 transmits a signal for generating an ultrasonic signal by driving one of the transducers TD1 and TD2 under the control of a microcomputer (μCOM) 14 in the form of a pulse burst. (Not shown). The receiving circuit 13 has a built-in preamplifier (not shown) that receives signals from the other transducers TD1 and TD2 that have received the ultrasonic signals that have passed through the gas flow path 10 and that processes the ultrasonic signals. . Regarding the transducer TD3, the μCOM 14 controls the transmission circuit 12 and the reception circuit 13 at a timing different from that for the transducers TD1 and TD2, and controls the transmission circuit 12 so as to drive the transducer TD3 to generate an ultrasonic signal. ,
The same transducer TD3 receives the ultrasonic signal reflected from the tube wall 10b and controls the receiving circuit 13 so as to input a signal generated.

【0025】μCOM14はまた、MODEM(変復調
回路)18、NCU(網制御ユニット)19を介して公
衆通信網である電話回線に接続され、遠隔の管理センタ
との間で通信を行う通信処理も行うようになっている。
The μCOM 14 is connected to a telephone line which is a public communication network via a MODEM (modulation / demodulation circuit) 18 and an NCU (network control unit) 19, and performs communication processing for performing communication with a remote management center. It has become.

【0026】なお、μCOM14は、図4に示すよう
に、プログラムに従って各種の処理を行う中央処理ユニ
ット(CPU)14a、CPU14aが行う処理のプロ
グラムなどを格納した読み出し専用のメモリであるRO
M14b、CPU14aでの各種の処理過程で利用する
ワークエリア、各種データを格納するデータ格納エリア
などを有する読み出し書き込み自在のメモリであるRA
M14cなどを内蔵し、これらがバスライン14dによ
って相互接続されている。
As shown in FIG. 4, the μCOM 14 is a read-only memory (RO) storing a central processing unit (CPU) 14a for performing various processes in accordance with programs, a program for processing performed by the CPU 14a, and the like.
M14b, RA which is a readable and writable memory having a work area used in various processing steps in the CPU 14a, a data storage area for storing various data, and the like.
M14c, etc., which are interconnected by a bus line 14d.

【0027】μCOM14内のCPU14aは、送信回
路12から信号を供給するトランスジューサと受信回路
13で超音波信号を受信するトランスジューサとを交互
に切り替える制御を行うと共に、2つのトランスジュー
サ間で交互に送受信した超音波信号の伝搬時間を測って
ガス流路10内を流れているガスの流速を間欠的に求め
るための流速算出処理の他に、この算出した流速とガス
流路10の断面積とに基づいて瞬時流量を求める流量算
出処理、算出した瞬間流量に間欠時間を乗じて通過体積
を算出する通過体積算出処理、算出した通過体積を積算
して積算通過体積を求める通過体積積算処理、この通過
体積積算処理によって求めた通過体積積算値を表示器1
5に表示させる表示処理を行う。これらはガスメータと
しての本来の機能にかかわるものである。この他、μC
OM14内のCPU14aは、算出した通過体積を利用
してガスの単位通過体積に対応した流量パルスを出力ポ
ートOに発生する流量パルス発生処理を行うようになっ
ている。
The CPU 14a in the μCOM 14 performs control to alternately switch between a transducer for supplying a signal from the transmission circuit 12 and a transducer for receiving an ultrasonic signal in the reception circuit 13, and also controls transmission and reception between the two transducers alternately. In addition to the flow velocity calculation processing for intermittently calculating the flow velocity of the gas flowing in the gas flow path 10 by measuring the propagation time of the sound wave signal, based on the calculated flow velocity and the cross-sectional area of the gas flow path 10 Flow rate calculation processing for calculating the instantaneous flow rate, passing volume calculation processing for calculating the passing volume by multiplying the calculated instantaneous flow rate by the intermittent time, passing volume integration processing for integrating the calculated passing volumes to obtain an integrated passing volume, and passing volume integration Display 1 shows the integrated value of the passing volume obtained by the processing.
Then, a display process to be displayed on the display 5 is performed. These are related to the original function as a gas meter. In addition, μC
The CPU 14a in the OM 14 performs a flow rate pulse generation process of generating a flow rate pulse corresponding to a unit gas flow rate at the output port O using the calculated flow volume.

【0028】上述したガスメータとして働くための流量
計測の原理を以下に説明する。μCOM14の内蔵する
CPU14aは、送信回路12にトリガ信号を出力して
パルスバースト信号を発生させ、これを一方のトランス
ジューサTD1、TD2に供給させて、この一方のトラ
ンスジューサに超音波信号を発生させる。また、一方の
トランスジューサから送信された超音波信号を受信する
他方のトランスジューサからの信号を受信回路13に受
信させ、これに応じて受信回路13が発生する信号を取
り込む。その後、μCOM14の内蔵するCPU14a
は、超音波信号を発生するトランスジューサと超音波信
号を受信するトランスジューサを逆にして同じ動作をも
う一度繰り返す制御を行う。そして、μCOM14のC
PU14aは、送信回路12にトリガ信号を出力して一
方のトランスジューサに超音波信号を発生させて、この
超音波信号を受信する他方のトランスジューサが発生す
る信号を受信回路13を介して取り込むまでの時間T
1、T2をそれぞれ測り、この測った時間T1、T2か
らガス流の流速を後述のようにして求める。
The principle of the flow rate measurement for working as the gas meter described above will be described below. The CPU 14a included in the μCOM 14 outputs a trigger signal to the transmission circuit 12 to generate a pulse burst signal, and supplies the pulse burst signal to one of the transducers TD1 and TD2 to generate an ultrasonic signal at the one transducer. The receiving circuit 13 receives the signal from the other transducer that receives the ultrasonic signal transmitted from one of the transducers, and takes in the signal generated by the receiving circuit 13 in response to the signal. Then, the CPU 14a built in the μCOM 14
Performs control to repeat the same operation once again by reversing the transducer that generates the ultrasonic signal and the transducer that receives the ultrasonic signal. And C of μCOM14
The PU 14a outputs a trigger signal to the transmission circuit 12, generates an ultrasonic signal in one of the transducers, and captures a signal generated by the other transducer that receives the ultrasonic signal through the reception circuit 13 through the reception circuit 13. T
1 and T2 are measured, and the flow rate of the gas flow is obtained from the measured times T1 and T2 as described later.

【0029】また、μCOM14のCPU14aは、ト
ランスジューサTD1、TD2についての制御とは別の
タイミングで、トランスジューサTD3についての制御
を行い、送信回路12にトリガ信号を出力してパルスバ
ースト信号を発生させ、これをトランスジューサTD3
に印加させて、このトランスジューサTD3に超音波信
号を発生させる。また、トランスジューサTD3から送
信され管壁10bで反射された超音波信号を受信する同
じトランスジューサTD3からの信号を受信回路13に
受信させ、これに応じて受信回路13が発生する信号を
取り込む。そして、CPU14aは、送信回路12にト
リガ信号を出力してトランスジューサTD3に超音波信
号を発生させて、この超音波信号の反射の第1波と第2
波を受信する同じトランスジューサTD3が発生する信
号を受信回路13を介して取り込むまでの時間Tr1、
Tr2をそれぞれ測り、この測った時間Tr1、Tr2
からガス流路10内と同じ温度、圧力、ガス種である
が、ガス流のない雰囲気における音速を後述のようにし
て求める。
The CPU 14a of the μCOM 14 controls the transducer TD3 at a different timing from the control of the transducers TD1 and TD2, outputs a trigger signal to the transmitting circuit 12, and generates a pulse burst signal. The transducer TD3
To generate an ultrasonic signal in the transducer TD3. Further, the receiving circuit 13 receives a signal from the same transducer TD3 that receives the ultrasonic signal transmitted from the transducer TD3 and reflected by the tube wall 10b, and takes in the signal generated by the receiving circuit 13 in response to the signal. Then, the CPU 14a outputs a trigger signal to the transmission circuit 12 to cause the transducer TD3 to generate an ultrasonic signal, and to reflect the first wave and the second wave of the reflected ultrasonic signal.
The time Tr1 until the signal generated by the same transducer TD3 for receiving the wave is taken in through the receiving circuit 13,
Tr2 was measured, and the measured times Tr1, Tr2
Thus, the sound velocity in an atmosphere having the same temperature, pressure, and gas type as in the gas flow path 10 but no gas flow is obtained as described later.

【0030】今、静止ガス中での音の伝搬速度(音速)
をc、ガス流の流速をvとすると、ガス流の順方向の超
音波信号の伝搬速度は(c+v)となる。トランスジュ
ーサTD1及びTD2間の距離をLとすると、トランス
ジューサTD1からの超音波信号がガス流と同じ方向に
進んでトランスジューサTD2に到達する時間T1と、
トランスジューサTD2からの超音波信号がガス流と逆
方向に進んでトランスジューサTD1に到達する時間T
2とは、 T1=L/(c+v) (1) T2=L/(c−v) (2) となる。(1)、(2)式より v=(L/2)・(1/T1−1/T2) =(L/2)・((T2−T1)/(T2・T1)) (3) となり、Lが既知であるときには、T1及びT2を計測
することによって流速vを求めることができる。
Now, the propagation speed of sound in a stationary gas (sound speed)
Is c, and the flow velocity of the gas flow is v, the propagation velocity of the ultrasonic signal in the forward direction of the gas flow is (c + v). Assuming that the distance between the transducers TD1 and TD2 is L, the time T1 at which the ultrasonic signal from the transducer TD1 travels in the same direction as the gas flow and reaches the transducer TD2;
The time T at which the ultrasonic signal from the transducer TD2 travels in the opposite direction to the gas flow and reaches the transducer TD1.
T1 = L / (c + v) (1) T2 = L / (cv) (2) From equations (1) and (2), v = (L / 2) · (1 / T1-1 / T2) = (L / 2) · ((T2−T1) / (T2 · T1)) (3) , L are known, the flow velocity v can be obtained by measuring T1 and T2.

【0031】なお、T2・T1=L/(c+v)・(c
−v)=L/(c2 −v2 )であり、流速vは音速cに
比べて極めて小さな数値であるので、式中のv2 はc2
に比べて極めて小さく無視でき、T2・T1=L/c2
することができる。そして、上式(3)は最終的には、 v=((T2−T1)・c2 )/2 =(T2−T1)・(c2 )・(1/2) と書き直すことができる。ここで、Td=(T2−T
1)とすると、 v=Td・(c2/2) =Td・k (4) ただし、k=c2/2 となる。
Note that T2 · T1 = L / (c + v) · (c
−v) = L / (c 2 −v 2 ), and the flow velocity v is an extremely small value compared to the sound velocity c, so v 2 in the equation is c 2
Is extremely small and can be neglected, and T2 · T1 = L / c 2 . Then, the above equation (3) can be finally rewritten as v = ((T2−T1) · c 2 ) / 2 = (T2−T1) · (c 2 ) · (1 /). Here, Td = (T2-T
When 1), v = Td · ( c 2/2) = Td · k (4) where a k = c 2/2.

【0032】流速vが求められたときには、瞬時流量Q
iはガス流路10の既知の断面積をS、物の構造その他
によって変化する補正係数をαとすると、 Qi=Td・α・S・k =K・Td (5) となり、瞬時流量Qiが求められる。ただし、 K=α・S・k (6) とする。なお、Kは上述の説明から明らかなように、音
速、ガス温度、ガス圧力など多くの要素を含んだ補正の
ための係数である。
When the flow velocity v is obtained, the instantaneous flow rate Q
Assuming that i is a known cross-sectional area of the gas flow path 10 and α is a correction coefficient that changes depending on the structure of an object or the like, Qi = Td · α · S · k = K · Td (5), and the instantaneous flow rate Qi becomes Desired. Here, K = α · S · k (6). Note that K is a coefficient for correction including many factors such as sound speed, gas temperature, and gas pressure, as is apparent from the above description.

【0033】なお、式(6)中の静止ガス中の音速cに
ついては、図3に示したように、ガス流路10に連通し
ているが、ガス流路10中のガス流に影響されない静止
ガスの空所10a中において、第3の音響トランスジュ
ーサTD3から発した超音波信号が管壁10bの内表面
で反射してトランスジューサに戻ってくるまでの時間を
計測し、この時間によってトランスジューサTD3から
管壁10bまでの往復距離2lを割ることによって求め
ることができるので、この計測を適宜行って求めた音速
cを用いるようにすればよい。
The sound velocity c in the stationary gas in the equation (6) communicates with the gas flow path 10 as shown in FIG. 3, but is not affected by the gas flow in the gas flow path 10. In the space 10a of the stationary gas, the time until the ultrasonic signal emitted from the third acoustic transducer TD3 is reflected on the inner surface of the tube wall 10b and returns to the transducer is measured. The sound velocity c can be obtained by dividing the reciprocating distance 2l to the pipe wall 10b, and the sound velocity c obtained by appropriately performing this measurement may be used.

【0034】従って、瞬時流量Qiを求める毎に、すな
わち、サンプリングする毎に、この流量Qiに前回求め
た(サンプリングした)時点からの経過時間(サンプリ
ング間隔の時間)を乗じることによって通過体積Qtが
求まり、これを積算することによって、積算した積算体
積Qs、すなわち、ガス供給量(ガス使用量)を求める
ことができるようになる。そして、この積算通過体積Q
sを表示器15に表示させることによって電子式ガスメ
ータを構成することができる。
Therefore, every time the instantaneous flow rate Qi is obtained, that is, every time sampling is performed, the flow volume Qt is multiplied by the elapsed time (time of the sampling interval) from the last time obtained (sampled) to obtain the flow volume Qt. By calculating and integrating this, the integrated volume Qs integrated, that is, the gas supply amount (gas usage amount) can be obtained. Then, this integrated passage volume Q
By displaying s on the display 15, an electronic gas meter can be configured.

【0035】次に、算出した通過体積を利用してガスの
単位通過体積に対応した流量パルスをCPU14aが出
力ポートOに出力する処理を以下説明する。
Next, a process in which the CPU 14a outputs a flow rate pulse corresponding to the unit passing volume of gas to the output port O using the calculated passing volume will be described below.

【0036】流量計測処理において、CPU14aが一
定周期のサンプリング時間の経過毎にサンプリングして
計測した物理量であるガスの流速に流路の断面積を乗じ
て求めた瞬時流量にサンプリング間隔の時間を乗じる計
算を行うことによって、サンプリング間隔の間に通過し
たガス体積を通過体積として算出する。この算出した通
過体積を、RAM14cの所定エリアに形成した通過体
積格納手段に一時格納する。次に、通過体積格納手段に
一時格納した通過体積をN分の1して1/N値を算出
し、これをRAM14cの他の所定エリアに形成した1
/N値格納手段に一時格納する。
In the flow rate measuring process, the CPU 14a multiplies the instantaneous flow rate obtained by multiplying the flow rate of the gas, which is a physical quantity, which is sampled and measured at every elapse of a fixed period of sampling time, by the sectional area of the flow path, and multiplies the time of the sampling interval. By performing the calculation, the gas volume that has passed during the sampling interval is calculated as the passing volume. The calculated passing volume is temporarily stored in a passing volume storage means formed in a predetermined area of the RAM 14c. Next, the 1 / N value is calculated by dividing the passing volume temporarily stored in the passing volume storing means by 1 / N, and this is formed in another predetermined area of the RAM 14c.
/ N value storage means.

【0037】続いて、算出した1/N値を順次積算する
が、それ以前にパルス出力すべき積算値がなければ、順
次積算した1/N値が予め定められた単位通過流量の2
分の1の値すなわち1/2以上になるときまでの積算回
数を計数して求めるとともに積算値から単位通過流量の
1/2の値を減算して積算値を0にし、この処理を1/
N値をN回積算するまで繰り返す。また、それ以前にパ
ルス出力すべき積算値があれば、その積算値に1/N値
を順次積算し、順次積算した1/N値が予め定められた
単位通過流量の2分の1の値すなわち1/2以上になる
ときまでの積算回数を求めるとともに積算値から単位通
過流量の1/2の値を減算して積算値を0にし、この処
理を1/N値をN回積算するまで繰り返す。なお、順次
積算した1/N値が予め定められた単位通過流量の1/
2以上になるときまでの積算回数が求まる毎に、これを
RAM14cの他の所定エリアに形成した積算回数格納
手段に一時格納し、その後の出力を反転するタイミング
を決定するために利用する。
Subsequently, the calculated 1 / N values are successively integrated. If there is no integrated value to be pulse-output before that, the sequentially integrated 1 / N value is equal to the predetermined unit passing flow rate of 2
The integrated value is calculated by counting the number of times of integration until it becomes a value equal to or smaller than 1/2, that is, 1/2 or more, and subtracting 1/2 of the unit passage flow rate from the integrated value to set the integrated value to 0.
It repeats until N value is integrated N times. If there is an integrated value to be pulse output before that, the 1 / N value is sequentially integrated into the integrated value, and the 1 / N value sequentially integrated is a value that is a half of a predetermined unit passing flow rate. In other words, the number of times of integration until it becomes 1/2 or more is obtained, and the value of 1/2 of the unit flow rate is subtracted from the integrated value to make the integrated value 0, and this process is repeated until the 1 / N value is integrated N times. repeat. It should be noted that the sequentially integrated 1 / N value is 1 / N of a predetermined unit passing flow rate.
Each time the number of times of integration up to 2 or more is obtained, this is temporarily stored in an integrated number of times storage means formed in another predetermined area of the RAM 14c, and is used to determine the timing of inverting the output thereafter.

【0038】その後、積算回数格納手段に格納した積算
回数に、一定周期のサンプリング時間、すなわちサンプ
リング周期をN分の1して求めたサンプリング周期の1
/Nをそれぞれ乗じて出力を反転するタイミングを決定
する。このために、サンプリング周期の1/Nをそれぞ
れ乗じて求めた時間をRAM14cの他の所定エリアに
形成した時間格納手段に一時格納し、時間格納手段に格
納した時間を順次読み出し、この読み出した時間を、R
AM14cの他の所定エリアに形成したタイマ手段によ
り計時する。そして、タイマ手段が読み出した時間を計
時した時点を、通過体積を次に算出するまでの出力を反
転するタイミングとして決定する。
After that, the integration time stored in the integration number storage means is added to the sampling period of a fixed period, that is, 1 of the sampling period obtained by dividing the sampling period by N.
/ N to determine the timing of inverting the output. For this purpose, the times obtained by multiplying by 1 / N of the sampling period are temporarily stored in time storage means formed in another predetermined area of the RAM 14c, and the times stored in the time storage means are sequentially read out. And R
The time is measured by timer means formed in another predetermined area of the AM 14c. Then, the point in time when the time read by the timer means is measured is determined as the timing of inverting the output until the next calculation of the passing volume.

【0039】以上により、一定周期のサンプリング後に
算出した1/N値を順次積算して求めた積算値が単位通
過流量の1/2以上になるときまでの積算回数を求める
とともに積算値から単位通過流量の1/2の値を減算し
て、この処理を1/N値をN回積算するまで繰り返し、
積算回数に、サンプリング周期の1/Nをそれぞれ乗じ
て出力を反転するタイミングを決定し、通過体積の値が
流量パルスを形成している単位通過体積1個以上に相当
する値になっているときには、その大きさに応じた周期
のパルスからなる流量パルスを出力することができるよ
うになる。
As described above, the number of times of integration until the integrated value obtained by sequentially integrating the 1 / N values calculated after sampling at a fixed period becomes equal to or more than 1 / of the unit passing flow rate is determined, and the unit passing flow rate is determined from the integrated value. This process is repeated until the value of 1/2 of the flow rate is subtracted and the 1 / N value is integrated N times.
When the number of times of integration is multiplied by 1 / N of the sampling period to determine the timing of inverting the output, and when the value of the passing volume is a value corresponding to one or more unit passing volumes forming the flow rate pulse, Thus, it is possible to output a flow pulse composed of pulses having a cycle corresponding to the magnitude thereof.

【0040】上述の流量パルス出力処理によって発生さ
れる流量パルスは、保安論理部20に入力される。保安
論理部20は、図4の流量計測部10のμCOM14と
同様に、図5に示すように、プログラムに従って各種の
処理を行う中央処理ユニット(CPU)21a、CPU
21aが行う処理のプログラムなどを格納した読み出し
専用のメモリであるROM21b、CPU21aでの各
種の処理過程で利用するワークエリア、各種データを格
納するデータ格納エリアなどを有する読み出し書き込み
自在のメモリであるRAM21cなどがバスライン21
dによって相互接続されているμCOM21によって形
成されている。
The flow rate pulse generated by the above-described flow rate pulse output processing is input to the security logic unit 20. As shown in FIG. 5, the security logic unit 20 includes a central processing unit (CPU) 21a that performs various types of processing according to a program, similarly to the μCOM 14 of the flow rate measurement unit 10 in FIG.
ROM 21b, which is a read-only memory storing a program for processing performed by the memory 21a, a work area used in various processing steps in the CPU 21a, and a RAM 21c which is a readable and writable memory having a data storage area for storing various data. Bus line 21
formed by μCOM21 interconnected by d.

【0041】保安論理部20を形成しているμCOM2
1内のCPU14aは、流量計測部10から入力する流
量パルスを形成している各パルス毎に処理を行って、保
安論理によって実行される機能の1つ、例えば合計流量
遮断機能において、ガスメータの設置先の燃焼器具の合
計ガス消費量が学習により自動設定された遮断値を越え
た場合、元栓の誤開放やゴムホースの抜けなどによる大
量のガス漏れと判断して遮断弁10cを弁閉しガスを遮
断する。また、増加流量遮断機能において、ガスの流量
が増大したとき、設置先の燃焼器具のうち、最大消費の
ガス器具に比べて異常に大きな流量の増加があった場
合、元栓の誤開放やゴムホースの抜けなどによるガス漏
れと判断して遮断弁10cを弁閉しガスを遮断するなど
の保安動作を行わせる。また、保安動作によって何らか
の警報を行う場合には警報部22の発音装置やインジケ
ータに警報を発生させる。またさらに、遠隔の管理セン
タに警報を通報するときには、MODEM(変復調回
路)18、NCU(網制御ユニット)19を介して公衆
通信網である電話回線に接続され、遠隔の管理センタと
の間で通信を行う通信処理も行うようになっている。
ΜCOM 2 forming the security logic unit 20
The CPU 14a in 1 performs processing for each pulse forming the flow rate pulse input from the flow rate measuring unit 10, and installs the gas meter in one of the functions executed by the security logic, for example, the total flow rate cutoff function. If the total gas consumption of the preceding combustion appliance exceeds the shutoff value automatically set by learning, it is determined that a large amount of gas leaks due to erroneous opening of the main valve or disconnection of the rubber hose, so that the shutoff valve 10c is closed and the gas is released. Cut off. In the increased flow rate cutoff function, if the flow rate of the gas increases, and if the flow rate of the combustion equipment at the installation location is abnormally large compared to the gas equipment that consumes the largest amount, if the main plug is accidentally opened or the rubber hose is When it is determined that the gas leaks due to slippage or the like, a safety operation such as closing the shutoff valve 10c to shut off gas is performed. When any alarm is issued by the security operation, an alarm is generated by the sounding device or indicator of the alarm unit 22. Further, when an alarm is notified to a remote management center, the remote management center is connected to a telephone line as a public communication network via a MODEM (modulation / demodulation circuit) 18 and an NCU (network control unit) 19. Communication processing for performing communication is also performed.

【0042】以上、電子式ガスメータの概略動作を説明
したが、CPU14aが行う流量パルス出力処理を示す
図6のフローチャートを参照して、以下、流量パルス発
生装置としての動作の詳細を説明する。
The general operation of the electronic gas meter has been described above. The operation of the flow rate pulse generator will now be described in detail with reference to the flow chart of FIG. 6 showing the flow rate pulse output processing performed by the CPU 14a.

【0043】CPU14aは流量計測処理の一環として
流量パルス出力処理を行い、その最初のステップS1に
おいてサンプリング時間が経過したか否かを判定し、サ
ンプリング時間が経過するのを待つ。この待っている時
間の間、小電力モードに入る。そして、サンプリング時
間が経過すると、ステップS2に進んでサンプリングを
実行する。このサンプリングには、上述した超音波式の
流量計測処理では超音波の発射処理、受信処理及び超音
波の伝搬時間を算出する処理等が含まれる。次に、ステ
ップS3に進み、ここでサンプリングの実行によって計
測されるガス流速より得られる瞬時流量にサンプリング
時間を乗じる計算を行うことによって通過体積を算出す
る。
The CPU 14a performs a flow rate pulse output process as a part of the flow rate measurement process, determines in a first step S1 whether or not the sampling time has elapsed, and waits for the sampling time to elapse. During this waiting time, the low power mode is entered. Then, when the sampling time has elapsed, the process proceeds to step S2 to execute sampling. The sampling includes the ultrasonic wave emission processing, the ultrasonic wave emission processing, the reception processing, and the processing for calculating the ultrasonic wave propagation time in the above-described ultrasonic flow measurement processing. Next, the process proceeds to step S3, where the passage volume is calculated by multiplying the instantaneous flow rate obtained from the gas flow rate measured by performing the sampling by the sampling time.

【0044】ステップS3において算出されたサンプリ
ング間隔の間に通過するガスの通過体積は、RAM14
cの所定エリアに形成した通過体積格納手段に一時格納
される。次にステップS4に進んで、RAM14cの所
定エリアに形成した積算回数カウンタ手段のカウント値
である積算回数iをクリアして0にすると共に反転回数
カウンタ手段のカウント値である反転回数jもクリアし
て0にする。続いてステップS5に進んで、RAM14
cの所定エリアに形成した積算値格納手段の積算値に通
過体積のN分の1の値すなわち1/N値を積算してから
ステップS6に進む。
The passing volume of gas passing during the sampling interval calculated in step S3 is stored in the RAM 14
c is temporarily stored in the passing volume storage means formed in the predetermined area. Next, proceeding to step S4, the accumulated number i, which is the count value of the accumulated number counter means formed in the predetermined area of the RAM 14c, is cleared to 0, and the inverted number j, which is the count value of the inverted number counter means, is also cleared. To 0. Then, the process proceeds to step S5, where the RAM 14
After integrating the value of 1 / N of the passing volume, that is, 1 / N value, into the integrated value of the integrated value storage means formed in the predetermined area c, the process proceeds to step S6.

【0045】ステップS6においては、上記ステップS
5において1/N値を積算した後の積算値格納手段の積
算値が単位通過体積の2分の1すなわち1/2以上であ
るか否かを判定し、このステップS6の判定がNOのと
きにはステップS7及びS8を飛ばしてステップS9に
進む。ステップS9においては、積算回数カウンタ手段
のカウント値である積算回数iをインクリメントしてか
らステップS10に進んで、積算値iがNに等しいか否
かを判定する。ステップS10の判定がNOのときに
は、上記ステップS5に戻ってRAM14cの所定エリ
アに形成した積算値格納手段の積算値に通過体積のN分
の1の値すなわち1/N値を積算してステップS6に進
むが、ステップS6の判定がYESのときにはステップ
S7に進む。
In step S6, the above step S
In step 5, it is determined whether the integrated value of the integrated value storage means after integrating the 1 / N value is equal to or more than half of the unit passage volume, that is, not less than 2. If the determination in step S6 is NO, The process skips steps S7 and S8 and proceeds to step S9. In step S9, the count i of the count of the count counter is incremented, and the process proceeds to step S10 to determine whether the count i is equal to N. When the determination in step S10 is NO, the process returns to step S5, and the value of 1 / N of the passing volume, that is, the 1 / N value is integrated with the integrated value of the integrated value storage means formed in the predetermined area of the RAM 14c, and step S6 is performed. Proceeds to step S7 when the determination in step S6 is YES.

【0046】ステップS7においては、そのときの積算
回数カウンタ手段のカウント値である積算回数iに、サ
ンプリング時間をN分の1した(サンプリング時間/
N)を乗じて求めた時間をそのときの反転回数j番目の
反転タイミング時間t(j)としてRAM14cの所定
エリアに形成した反転タイミング格納手段に格納する。
例えばj=0のときには、t(0)、j=1のときはt
(1)として格納する。また、ステップS7において
は、RAM14cの所定エリアに形成した反転回数カウ
ンタ手段のカウント値である反転回数jをインクリメン
トする。続いてステップS8に進んで、RAM14cの
所定エリアに形成した積算値格納手段をの積算値から単
位通過体積の1/2の値を減算してからステップS10
に進む。
In step S7, the integration time i, which is the count value of the integration number counter means at that time, is reduced by 1 / N the sampling time (sampling time /
N) is stored in a reversal timing storage means formed in a predetermined area of the RAM 14c as a j-th reversal timing time t (j) at that time.
For example, when j = 0, t (0), and when j = 1, t (0)
Stored as (1). In step S7, the number of inversions j, which is the count value of the inversion number counter formed in a predetermined area of the RAM 14c, is incremented. Then, the process proceeds to step S8, in which the value of の of the unit passage volume is subtracted from the integrated value of the integrated value storage means formed in the predetermined area of the RAM 14c, and then the step S10 is performed.
Proceed to.

【0047】ステップS10の判定がYESのとき、す
なわち、積算回数カウンタ手段のカウント値である積算
回数iがNに等しいときには、ステップS11に進んで
RAM14cの所定エリアに形成した反転回数カウンタ
手段のカウント値である反転回数jが0であるか否かを
判定する。ステップS11の判定がYESで通過体積の
1/N値をN回積算しても単位通過体積の1/2に満た
ないときには、流量パルスを発生すべき通過体積のガス
量がないとして上記ステップS1に戻り、次のサンプリ
ングを行うべくサンプリング時間の経過を待つ。この待
機中は小電力モードとなる。
When the determination in step S10 is YES, that is, when the integration number i, which is the count value of the integration number counter means, is equal to N, the process proceeds to step S11, where the count of the inversion number counter means formed in a predetermined area of the RAM 14c is counted. It is determined whether or not the value of the number of inversions j is 0. If the determination in step S11 is YES and the 1 / N value of the passing volume is less than の of the unit passing volume even when the 1 / N value of the passing volume is integrated N times, it is determined that there is no gas volume in the passing volume for which a flow pulse should be generated. And waits for the elapse of the sampling time to perform the next sampling. During this standby mode, the low power mode is set.

【0048】ステップS11の判定がNOのときには、
通過体積の1/N値をN回積算した時点で反転回数カウ
ンタ手段のカウント値である反転回数jが1以上とな
り、単位通過体積の1/2以上となった回数が少なくと
も1回あったときには、ステップS12に進んでRAM
14cの所定エリアに形成した実際に出力を反転した回
数を計数する反転実行カウンタ手段のカウント値Jをク
リアして0にしてからステップS13に進む。ステップ
S13においては、反転実行カウンタ手段のカウント値
Jの値に対応する反転タイミングt時間(j)を読み出
し、この読み出した反転タイミング時間の計時をRAM
14cの所定エリアに形成したタイマ手段に開始させて
からステップS14に進む。
When the determination in step S11 is NO,
When 1 / N value of the passing volume is integrated N times, the reversal number j, which is the count value of the reversal number counter means, becomes 1 or more, and at least one time becomes 1/2 or more of the unit passing volume. And proceeds to step S12, RAM
After clearing the count value J of the inversion execution counter means for counting the number of times the output is actually inverted formed in the predetermined area 14c to 0, the process proceeds to step S13. In step S13, the inversion timing t time (j) corresponding to the value of the count value J of the inversion execution counter means is read, and the timing of the read inversion timing time is stored in the RAM.
After the timer means formed in the predetermined area 14c is started, the process proceeds to step S14.

【0049】ステップS14においては、反転タイミン
グt時間(j)が経過したか否かを判定し、時間が経過
するのを待つ。この待っている時間の間、小電力モード
に入る。そして、時間が経過すると、ステップS15に
進んで出力を反転すると共にカウント値Jをインクリメ
ントしてからステップS16に進んで実際に出力を反転
した回数を計数するカウント値Jが反転回数iに等しい
か否かを判定する。ステップS16の判定がNOのとき
には上記ステップS13に戻ってインクリメントしたカ
ウント値Jの値に対応する次の反転タイミングt時間
(j)を読み出し、ステップS16の判定がYESとな
るまでステップS14〜S16を繰り返し実行する。ス
テップS16の判定がYESとなったときには、上記ス
テップS1に戻って次のサンプリングを待つ。
In step S14, it is determined whether or not the inversion timing t time (j) has elapsed, and the process waits until the time has elapsed. During this waiting time, the low power mode is entered. When the time has elapsed, the process proceeds to step S15 to invert the output and increment the count value J, and then proceeds to step S16 to determine whether the count value J for counting the number of times the output is actually inverted is equal to the number of inversions i. Determine whether or not. If the determination in step S16 is NO, the process returns to step S13 to read the next inversion timing t time (j) corresponding to the incremented count value J, and repeats steps S14 to S16 until the determination in step S16 becomes YES. Execute repeatedly. If the determination in step S16 is YES, the process returns to step S1 and waits for the next sampling.

【0050】なお、ステップS6の判定がYESとなら
ないステップS5における積算値があるときには、この
残余の積算値に次のサンプリングによって算出された通
過体積の1/N値が積算されるようになるので、相前後
するサンプリングによって算出された通過体積を反映し
た流量パルスが単位通過体積毎に出力されるようにな
る。また、出力される流量パルスは、通過体積が小さい
ときには長い周期にて、大きいときには短い周期となる
ことは勿論のことである。
If there is an integrated value in step S5 in which the determination in step S6 is not YES, 1 / N of the passing volume calculated by the next sampling is added to the remaining integrated value. Thus, a flow pulse reflecting the passing volume calculated by the successive sampling is output for each unit passing volume. Also, the output flow pulse has a long cycle when the passing volume is small, and has a short cycle when the passing volume is large.

【0051】図6のフローチャートに従って行った説明
から明らかなように、CPU14aは、通過体積を一定
周期で間欠的に算出する通過体積算出手段14a−1と
して、通過体積が算出される毎に、通過体積の1/N値
を算出する1/N算出手段14a−2として、1/N値
を順次積算する積算手段14a−3として、1/N値を
N回積算するまで、積算値が単位通過体積の1/2以上
となるまでの積算回数を計数することを繰り返す積算回
数計数手段14a−4として、1/N値をN回積算する
まで、積算値が単位通過体積の2分の1となる毎に積算
値から単位通過体積の1/2の値を減算することを繰り
返す減算手段14a−5として、積算回数に一定周期
(サンプリング時間)の1/Nを乗じ、通過体積を次に
算出するまでの出力を反転するタイミングを決定するタ
イミング決定手段14a−6として、決定したタイミン
グで出力を反転して通過体積に応じた周期の単位通過体
積に対応する流量パルスを発生するパルス発生手段14
a−7として、求めた通過体積を積算する通過体積積算
手段14a−8としてそれぞれ働いている。
As is clear from the description given in accordance with the flowchart of FIG. 6, the CPU 14a serves as a passing volume calculating means 14a-1 for calculating the passing volume intermittently at regular intervals, each time the passing volume is calculated. As 1 / N calculating means 14a-2 for calculating 1 / N value of volume, as integrating means 14a-3 for sequentially integrating 1 / N values, the integrated value passes through a unit until the 1 / N value is integrated N times. As an integration frequency counting means 14a-4 that repeats counting the number of integrations until it becomes 1/2 or more of the volume, the integration value is reduced to one half of the unit passage volume until the 1 / N value is integrated N times. As the subtraction means 14a-5 repeats subtraction of a half of the unit passing volume from the integrated value every time the number of integrations is multiplied by 1 / N of a fixed period (sampling time), the passing volume is calculated next. Output until As the timing determination unit 14a-6 to determine the inverted timing pulse generating means 14 for generating a flow pulse corresponding to a unit passing volume of the period according to the passing volume inverts the output at the determined timing
As a-7, they function as passing volume integrating means 14a-8 for integrating the obtained passing volumes.

【0052】また、RAM14cは、積算回数に一定周
期の1/Nを乗じて求めた(反転タイミング)時間を格
納する時間格納手段14c−1と、格納された時間を順
次読み出し計時するタイマ手段14c−2とを形成して
いる。
The RAM 14c has a time storage means 14c-1 for storing a time obtained by multiplying the number of integration times by 1 / N of a predetermined period (inversion timing), and a timer means 14c for sequentially reading out and storing the stored time. -2.

【0053】以上説明した流量パルス発生装置によれ
ば、流量、サンプリングタイミング、積算値、出力反転
タイミングの関係を示す図7からも明らかなように、サ
ンプリング毎に前回のサンプリングからの通過体積を算
出し、この算出した通過体積をN分割して、次回のサン
プリングまでをN分割したタイミングで積算したとき、
単位通過体積の1/2を越えるタイミングを算出して出
力を反転する。積算値は出力反転毎に単位通過体積の1
/2を減算する。また、CPU14aは、サンプリング
時間毎に、流速センサの出力を読み込み、上述した処理
を行った後、出力を反転する時間まで、省電力の待機モ
ードとなる。
According to the flow rate pulse generator described above, as is apparent from FIG. 7 showing the relationship among the flow rate, the sampling timing, the integrated value, and the output inversion timing, the passing volume from the previous sampling is calculated for each sampling. Then, when the calculated passage volume is divided by N and integrated until the next sampling at the divided timing of N,
The output is inverted by calculating the timing exceeding 1/2 of the unit passing volume. The integrated value is 1 of the unit passing volume for each output reversal.
/ 2 is subtracted. Further, the CPU 14a reads the output of the flow velocity sensor every sampling time, performs the above-described processing, and then enters the power saving standby mode until the time when the output is inverted.

【0054】なお、上述の実施の形態では流量センサと
して超音波式のものを例示したが、本発明はガス流量に
応じて変化する物理量をサンプリングによって計測する
超音波式以外のものにも等しく適用することができる。
In the above-described embodiment, an ultrasonic sensor is used as an example of the flow sensor. However, the present invention is equally applicable to non-ultrasonic sensors that measure a physical quantity that changes according to the gas flow rate by sampling. can do.

【0055】[0055]

【発明の効果】以上説明したように請求項1記載の発明
によれば、通過体積が大きい場合にも、間欠的な通過体
積の算出周期を短くすることなく、すなわち、サンプリ
ング周期を短くすることなく、通過体積に応じた周期の
ガスの単位通過体積に対応した流量パルスを発生できる
ので、電力消費の小さな流量パルス発生方法が得られ、
また流量パルスの立ち上がり又は立ち下がりから立ち下
がり又は立ち上がりによって、単位通過体積を検出する
こともできる。
As described above, according to the first aspect of the present invention, even when the passing volume is large, the calculation cycle of the intermittent passing volume is not shortened, that is, the sampling cycle is shortened. Flow pulse corresponding to the unit passage volume of the gas having a cycle corresponding to the passage volume, so that a flow pulse generation method with low power consumption can be obtained.
The unit passing volume can also be detected from the rise or fall of the flow pulse to the fall or rise.

【0056】更に、請求項2記載の発明によれば、通過
体積が大きい場合にも、間欠的な通過体積の算出周期を
短くすることなく、すなわち、サンプリング周期を短く
することなく、通過体積に応じた周期のガスの単位通過
体積に対応した流量パルスを発生できる。また、流量パ
ルスは単位通過体積の1/2すなわち半分の積算値毎に
反転するので、流量パルスの立ち上がり又は立ち下がり
から立ち下がり又は立ち上がりによって、単位通過体積
を検出することができる流量パルス発生装置が得られ
る。
Further, according to the second aspect of the present invention, even when the passing volume is large, the intermittent passing volume calculation cycle is not shortened, that is, without reducing the sampling cycle, the passing volume is reduced. It is possible to generate a flow pulse corresponding to a unit passing volume of gas in a corresponding cycle. Also, since the flow pulse is inverted every half of the unit passage volume, that is, every half value of the integrated value, a flow pulse generator capable of detecting the unit passage volume from the rise or fall to the rise or fall of the flow pulse. Is obtained.

【0057】請求項3記載の発明によれば、積算回数に
一定周期の1/Nを乗じて求めた複数の時間が格納され
ることがあるが、格納された時間を順次読出して計時
し、ガスの通過体積に応じた周期のガスの単位通過体積
に対応した流量パルスに変換して出力することができる
ので、流量パルスを通過体積に応じた正確な周期で発生
することのできる流量パルス発生装置が得られる。
According to the third aspect of the present invention, a plurality of times obtained by multiplying the number of times of integration by 1 / N of a certain cycle may be stored, but the stored times are sequentially read out and timed. Flow pulse generation that can generate a flow pulse with an accurate period according to the passing volume because it can be converted into a flow pulse corresponding to the unit passing volume of the gas and output with a cycle corresponding to the passing volume of the gas. A device is obtained.

【0058】請求項4記載の発明によれば、保安論理手
段として流量パルスの各パルスの周期によってガス流の
異常を検出するものを使用でき、開発の手間や安全規格
の再取得などの観点から有利な電子式ガスメータが得ら
れる。
According to the fourth aspect of the present invention, it is possible to use a means for detecting an abnormality in the gas flow by the period of each pulse of the flow rate pulse as the security logic means, from the viewpoint of labor for development and reacquisition of safety standards. An advantageous electronic gas meter is obtained.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明による流量パルス発生装置及び電子式ガ
スメータの基本構成を示す図である。
FIG. 1 is a diagram showing a basic configuration of a flow pulse generator and an electronic gas meter according to the present invention.

【図2】本発明による電子式ガスメータの一実施の形態
を示すブロック図である。
FIG. 2 is a block diagram showing one embodiment of an electronic gas meter according to the present invention.

【図3】図2中の各部の具体的な構成を示す図である。FIG. 3 is a diagram showing a specific configuration of each unit in FIG. 2;

【図4】図3中の一部分の具体的な構成を示す図であ
る。
FIG. 4 is a diagram showing a specific configuration of a part of FIG.

【図5】図3中の他の一部分の具体的な構成を示す図で
ある。
FIG. 5 is a diagram showing a specific configuration of another part in FIG. 3;

【図6】図3中の流量計測部のμCOMのCPUが行う
流量パルス出力処理を示すフローチャートである。
6 is a flowchart showing a flow pulse output process performed by a μCOM CPU of the flow measurement unit in FIG. 3;

【図7】図6の処理によって出力される流量パルスとサ
ンプリング間隔との関係を示すタイミングチャート図で
ある。
FIG. 7 is a timing chart illustrating a relationship between a flow rate pulse output by the process of FIG. 6 and a sampling interval.

【符号の説明】[Explanation of symbols]

15 表示手段(表示器) 20 保安論理手段(保安論理部) 14a−1 通過体積算出手段(CPU) 14a−2 1/N算出手段(CPU) 14a−3 積算手段(CPU) 14a−4 積算回数計数手段(CPU) 14a−5 減算手段(CPU) 14a−6 タイミング決定手段(CP
U) 14a−7 パルス発生手段(CPU) 14a−8 通過体積積算手段(CPU) 14c−1 時間格納手段(RAM) 14c−2 タイマ手段(RAM)
15 Display Means (Display) 20 Security Logic Means (Security Logic Unit) 14a-1 Passing Volume Calculation Means (CPU) 14a-2 1 / N Calculation Means (CPU) 14a-3 Accumulation Means (CPU) 14a-4 Accumulation Count Counting means (CPU) 14a-5 Subtraction means (CPU) 14a-6 Timing determining means (CP
U) 14a-7 Pulse generating means (CPU) 14a-8 Passing volume integrating means (CPU) 14c-1 Time storing means (RAM) 14c-2 Timer means (RAM)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 通過体積を一定周期で間欠的に算出し、 通過体積を算出する毎に、該算出した通過体積の1/N
値を算出し、 該算出した1/N値をそれ以前の積算値に順次積算し、 該積算値が単位通過体積の1/2以上となる毎にその積
算回数を求めるとともに積算値から単位通過体積の1/
2の値を減算することを前記1/N値をN回積算するま
で繰り返し、 前記積算回数に前記一定周期の1/Nを乗じて出力を反
転するタイミングを決定し、 該決定したタイミングで出力を反転して前記通過体積に
応じた周期のガスの単位通過体積に対応した流量パルス
を発生することを特徴とする流量パルス発生方法。
1. A passing volume is calculated intermittently at a fixed period, and every time a passing volume is calculated, 1 / N of the calculated passing volume is calculated.
A value is calculated, the calculated 1 / N value is sequentially integrated with the previous integrated value, and each time the integrated value becomes equal to or more than の of the unit passing volume, the number of times of integration is calculated, and the unit passing is calculated from the integrated value. 1 / of the volume
The subtraction of the value of 2 is repeated until the 1 / N value is integrated N times. The timing of inverting the output is determined by multiplying the number of integrations by 1 / N of the predetermined period. And generating a flow pulse corresponding to a unit passage volume of the gas having a cycle corresponding to the passage volume.
【請求項2】 通過体積を一定周期で間欠的に算出する
通過体積算出手段と、 該通過体積積算手段によって通過体積が算出される毎
に、前記通過体積の1/N値を算出する1/N算出手段
と、 前記1/N値を順次積算する積算手段と、 前記1/N値をN回積算するまで、前記積算手段による
積算値が単位通過体積の1/2以上となるまでの積算回
数を計数することを繰り返す積算回数計数手段と、 前記1/N値をN回積算するまで、前記積算値が単位通
過体積の2分の1となる毎に前記積算値から単位通過体
積の1/2の値を減算することを繰り返す減算手段と、 前記積算回数に前記一定周期の1/Nを乗じ、前記通過
体積算出手段が通過体積を次に算出するまでの出力を反
転するタイミングを決定するタイミング決定手段と、 該タイミング決定手段によって決定したタイミングで出
力を反転して前記通過体積に応じた周期のガスの単位通
過体積に対応した流量パルスを発生するパルス発生手段
とを備えることを特徴とする流量パルス発生装置。
2. A passing volume calculating means for intermittently calculating a passing volume at a constant period, and a 1 / N value of said passing volume is calculated every time a passing volume is calculated by said passing volume integrating means. N calculating means; integrating means for sequentially integrating the 1 / N value; integrating until the integrated value by the integrating means becomes equal to or more than の of the unit passage volume until the 1 / N value is integrated N times. Means for counting the number of times of repeating the counting of the number of times, and until the 1 / N value is integrated N times, every time the value of the integrated value becomes one half of the unit volume of passage, the unit value of the unit volume of passage is calculated from the integrated value. Subtracting means for repeating the subtraction of the value of / 2, and multiplying the integration number by 1 / N of the predetermined period, and determining a timing for inverting an output until the passing volume calculating means next calculates a passing volume. Timing determining means for performing And a pulse generating means for inverting the output at a timing determined by the power determining means and generating a flow pulse corresponding to a unit passing volume of the gas having a cycle corresponding to the passing volume.
【請求項3】 前記タイミング決定手段は、 前記積算回数に前記一定周期の1/Nを乗じて求めた時
間を格納する時間格納手段と、 該時間格納手段に格納された時間を順次読み出し計時す
るタイマ手段とを有し、 該タイマ手段が前記読み出した時間を計時した時点を、
前記通過体積算出手段が通過体積を次に算出するまでの
出力を反転するタイミングとして決定することを特徴と
する請求項2記載の流量パルス発生装置。
3. The time determining means: a time storing means for storing a time obtained by multiplying the integration number by 1 / N of the predetermined period; and sequentially reading and counting the time stored in the time storing means. Timer means, and the timer means measures the read time,
3. The flow rate pulse generator according to claim 2, wherein the passing volume calculating means determines the timing of inverting the output until the passing volume is calculated next.
【請求項4】 請求項2又は3記載の流量パルス発生装
置と、 該流量パルス発生装置の前記通過体積算出手段によって
求めた通過体積を積算する通過体積積算手段と、 該通過体積積算手段により積算した通過体積を表示する
表示手段と、 前記流量パルス発生装置の発生する流量パルスによって
ガス流の異常を検出する保安論理手段とを備えることを
特徴とする電子式ガスメータ。
4. The flow rate pulse generator according to claim 2, wherein a flow volume is calculated by the flow volume calculation means of the flow rate pulse generation apparatus; An electronic gas meter, comprising: a display unit for displaying a passing volume obtained; and a security logic unit for detecting a gas flow abnormality by a flow pulse generated by the flow pulse generator.
JP19889199A 1999-07-13 1999-07-13 Flow pulse generating method and apparatus, and electronic gas meter Expired - Fee Related JP3589397B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19889199A JP3589397B2 (en) 1999-07-13 1999-07-13 Flow pulse generating method and apparatus, and electronic gas meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19889199A JP3589397B2 (en) 1999-07-13 1999-07-13 Flow pulse generating method and apparatus, and electronic gas meter

Publications (2)

Publication Number Publication Date
JP2001027554A true JP2001027554A (en) 2001-01-30
JP3589397B2 JP3589397B2 (en) 2004-11-17

Family

ID=16398664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19889199A Expired - Fee Related JP3589397B2 (en) 1999-07-13 1999-07-13 Flow pulse generating method and apparatus, and electronic gas meter

Country Status (1)

Country Link
JP (1) JP3589397B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010160004A (en) * 2009-01-07 2010-07-22 Panasonic Corp Ultrasonic gas meter
CN106471343A (en) * 2014-07-08 2017-03-01 高准公司 For generating vibrating flowmeter and the method for numerical frequency output

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102445258A (en) * 2011-12-09 2012-05-09 上海安恒燃气科技有限公司 Simulative counting system and method of impulse counting meter

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010160004A (en) * 2009-01-07 2010-07-22 Panasonic Corp Ultrasonic gas meter
CN106471343A (en) * 2014-07-08 2017-03-01 高准公司 For generating vibrating flowmeter and the method for numerical frequency output
KR20170027839A (en) * 2014-07-08 2017-03-10 마이크로 모우션, 인코포레이티드 Vibratory flow meter and method to generate digital frequency outputs
JP2017520064A (en) * 2014-07-08 2017-07-20 マイクロ モーション インコーポレイテッド Vibrating flow meter and method for generating digital frequency output
US10151613B2 (en) 2014-07-08 2018-12-11 Micro Motion, Inc. Vibratory flow meter and method to generate digital frequency outputs
KR101983196B1 (en) * 2014-07-08 2019-05-28 마이크로 모우션, 인코포레이티드 Vibratory flow meter and method to generate digital frequency outputs
CN106471343B (en) * 2014-07-08 2019-11-05 高准公司 For generating the vibrating flowmeter and method of numerical frequency output

Also Published As

Publication number Publication date
JP3589397B2 (en) 2004-11-17

Similar Documents

Publication Publication Date Title
JP5402620B2 (en) Flow measuring device
WO2006121004A1 (en) Flow rate measurement device
JP4673950B2 (en) Abnormality diagnosis device for ultrasonic gas flow rate measuring unit and ultrasonic gas meter equipped with the abnormality diagnosis device
JP2002174542A (en) Gas burning appliance determining device and method thereof
JP2006292377A (en) Ultrasonic type gas meter
JP3589397B2 (en) Flow pulse generating method and apparatus, and electronic gas meter
JP3666725B2 (en) Flow rate measuring method and apparatus, and electronic gas meter
JP3637628B2 (en) Flow measuring device
JP4082246B2 (en) Flowmeter
JP2000314644A (en) Flow-rate measuring apparatus and electronic gas meter
JP3339402B2 (en) Flow rate measuring method and apparatus, pulsating flow detecting method, and electronic gas meter
JP3689973B2 (en) Flow measuring device
JP2000213968A (en) Electronic gas metering device and electronic gas meter
JP2000314643A (en) Flow-rate pulse-generating device, flow-rate-measuring device, and electronic gas meter
JP4568441B2 (en) Measuring device and leak detection method
JPH11351929A (en) Flowmeter and flow rate measuring method
JP3508993B2 (en) Flow rate measuring method and apparatus and electronic gas meter
JPH11281429A (en) Method and device for flow rate measuring and electronic gas meter
JP2001165743A (en) Gas flow abnormality diagnostic device for electronic gas meter and electronic gas meter thereof
JPH11108720A (en) Gas meter
JPH11281451A (en) Electronic gas meter
JP2004020394A (en) Flow meter
JP4116822B2 (en) Flowmeter
JP2001165745A (en) Recovery safety confirmation method, flow measurement device for electronic gas meter and electronic gas meter
JP3651459B2 (en) Flow measurement control device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040415

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040420

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040617

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040810

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7426

Effective date: 20040812

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040812

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040812

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees