JP3381835B2 - Electronic gas meter - Google Patents

Electronic gas meter

Info

Publication number
JP3381835B2
JP3381835B2 JP28724497A JP28724497A JP3381835B2 JP 3381835 B2 JP3381835 B2 JP 3381835B2 JP 28724497 A JP28724497 A JP 28724497A JP 28724497 A JP28724497 A JP 28724497A JP 3381835 B2 JP3381835 B2 JP 3381835B2
Authority
JP
Japan
Prior art keywords
gas
data
battery
storage means
backup
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.)
Expired - Fee Related
Application number
JP28724497A
Other languages
Japanese (ja)
Other versions
JPH11118578A (en
Inventor
真一 田中
滋男 小畑
鋭博 原田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP28724497A priority Critical patent/JP3381835B2/en
Publication of JPH11118578A publication Critical patent/JPH11118578A/en
Application granted granted Critical
Publication of JP3381835B2 publication Critical patent/JP3381835B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はガス使用量を計量す
る電子式ガス計量装置に係り、特に、ガス供給に当たっ
て使用される各種の機能を内蔵し電池を電源として動作
するように構成された電子式ガス計量装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic gas metering device for metering gas consumption, and more particularly to an electronic gas meter which is equipped with various functions used for gas supply and is configured to operate using a battery as a power source. Type gas metering device.

【0002】[0002]

【従来の技術】従来、この種の電子式ガス計量装置は一
般にマイコンガスメータと称され、ガス供給に当たって
使用される各種の機能を実現するため予め定めたプログ
ラムに従って動作するマイクロコンピュータ(μCO
M)を内蔵している。各種の機能として、保安上重要な
機能の他に、消費者の利便性のための機能やLPガス販
売業者の合理化のための機能があり、これらの機能は、
使用する燃焼機器やガスの使用形態などに基づいて設定
され、μCOMが有する読み出し書き込み自在のメモリ
であるRAMに記憶された設定データによって規定され
ている。
2. Description of the Related Art Conventionally, an electronic gas meter of this type is generally called a microcomputer gas meter, and a microcomputer (μCO) which operates according to a predetermined program to realize various functions used for gas supply.
M) is built in. As various functions, in addition to important functions for security, there are functions for convenience of consumers and functions for rationalization of LP gas distributors. These functions are
It is set based on the combustion equipment to be used, the usage pattern of gas, and the like, and is defined by the setting data stored in the RAM, which is a readable / writable memory of the μCOM.

【0003】RAMへの設定データの記憶は、出荷に当
たってマイコンガスメータに電源としての電池を装着す
ることで行われるリセット動作により、μCOMの初期
化処理において行われる。初期化処理においては、RA
M内にガス使用量の初期値とともに、標準世帯に適した
各種の機能を設定するための設定データ、すなわち、標
準的な設定データが格納され、その後電池電源によって
バックアップされ続ける。
The setting data is stored in the RAM in the initialization process of μCOM by a reset operation performed by mounting a battery as a power source on the microcomputer gas meter at the time of shipment. In the initialization process, RA
In addition to the initial value of the gas usage amount, the setting data for setting various functions suitable for the standard household, that is, the standard setting data is stored in M, and thereafter it is continuously backed up by the battery power source.

【0004】上述したように、初期化処理によってRA
M内に格納された初期値は、ガスメータの設置後のガス
計量動作によって使用したガス量に応じて順次更新さ
れ、その内容が表示部に表示されたり、自動検針動作に
よって遠隔の管理センタに伝送されるようになる。
As described above, the initialization process causes RA
The initial value stored in M is sequentially updated according to the amount of gas used by the gas metering operation after installation of the gas meter, and the content is displayed on the display or transmitted to the remote management center by the automatic meter reading operation. Will be done.

【0005】一方、標準的な設定データは、標準世帯以
外の世帯にガスメータを設置した場合には、設置時の設
定作業により、或いは、設置後一定期間の間に行われる
学習によって各世帯の燃焼器やガス使用状況に応じて設
定し直される。
On the other hand, the standard setting data is that when a gas meter is installed in a household other than the standard household, the combustion of each household is caused by the setting work at the time of installation or by the learning performed during a certain period after the installation. It is set again according to the condition of the gas and gas usage.

【0006】マイコンガスメータに内蔵された電池は、
RAM内の設定データのバックアップ用としてのほか、
マイコンガスメータ内のμCOMを含む電子装置の電源
としても使用されるが、これは商用電源を使用した場合
の電源線の引き回しなどの電気工事を必要なくするため
でもある。
The battery built into the microcomputer gas meter is
In addition to backing up the setting data in RAM,
It is also used as a power supply for an electronic device including μCOM in a microcomputer gas meter, but this is also for the purpose of eliminating the need for electrical work such as wiring of power supply lines when a commercial power supply is used.

【0007】ところで、従来のマイコンガスメータとし
ては、ガス流入口に流入しガス流出口から流出するガス
を計量する膜式計量部を有する膜式ガスメータと呼ばれ
るものが一般に使用されている。この膜式ガスメータ
は、一定流量が流れる毎に切替弁が切り替わって隔膜で
仕切られた部屋へ交互にガスを流入させて既にガスが満
たされている部屋のガスを排出することによって隔膜を
往復運動させ、この隔膜の往復動に連動してカウンタか
らなる計量表示部を駆動させる構成となっている。
By the way, as a conventional microcomputer gas meter, a so-called membrane gas meter having a membrane metering portion for measuring a gas flowing into a gas inlet and flowing out from a gas outlet is generally used. This membrane gas meter reciprocates the diaphragm by switching the switching valve each time a constant flow rate flows and allowing gas to flow alternately into the room partitioned by the diaphragm and discharging the gas in the room already filled with gas. Then, the measurement display unit including a counter is driven in association with the reciprocating movement of the diaphragm.

【0008】この膜式のガスメータはさらに、流量信号
発生手段が発生する流量信号に基づいてガス流量を積算
したり、流量信号に基づいてガス流量を監視してガス流
の異常を検出したり、この異常検出に基づいて遮断弁を
動作させてガス供給路を遮断したり、自動検針時に積算
したガス流量をガス使用量として遠隔の管理センタに送
出したり、遮断弁を動作させてガス供給路を遮断させる
信号を外部から受信するなどの各種の機能も備えられて
いる。
The membrane gas meter further integrates the gas flow rate based on the flow rate signal generated by the flow rate signal generating means, monitors the gas flow rate based on the flow rate signal, and detects an abnormality in the gas flow. Based on this abnormality detection, the shutoff valve is operated to shut off the gas supply path, the gas flow rate accumulated during automatic meter reading is sent to the remote management center as the gas usage amount, and the shutoff valve is operated to operate the gas supply path. It also has various functions such as receiving a signal to shut off the signal from the outside.

【0009】上述した従来の電池を電源として動作する
膜式のガスメータでは、電池電圧が警報レベル以下に低
下したとき警報を発するようになっているが、電池電圧
が警報レベル以下に低下したときには、一般にガスメー
タの交換時期でもあるため、ガスメータ自体を新しいも
のと交換することによって対処するようにしている。
The above-mentioned conventional membrane-type gas meter that operates using a battery as a power source issues an alarm when the battery voltage drops below the alarm level, but when the battery voltage drops below the alarm level, Generally, it is time to replace the gas meter, so the gas meter itself is replaced with a new one.

【0010】しかし、ガスメータを交換した場合新しい
ガスメータには初期化処理によって初期積算値や標準的
な設定データが格納されるようになり、またガスメータ
を交換せずに、仮に、電池電圧低下警報に従って古い電
池を取り出し新しい電池と交換した場合には、RAM内
の設定データなどがクリアされ、電池装着後のリセット
動作により初期化処理が行われて、初期積算値や標準的
な設定データが格納されるようになる。いずれの場合に
も、それ以前のガス使用量に関するデータが失われると
ともに設定データの設定のし直しが必要となる。設定デ
ータについては面倒であるが、設定操作をしたり、学習
をしたりして設定のし直しによって対応できるが、ガス
使用量に関するデータについては取り返しがつかない。
However, when the gas meter is replaced, the initial integration value and standard setting data are stored in the new gas meter by the initialization process. Further, without replacing the gas meter, if the battery voltage drop alarm is followed, When the old battery is taken out and replaced with a new battery, the setting data etc. in the RAM are cleared, the initialization process is performed by the reset operation after the battery is installed, and the initial integrated value and standard setting data are stored. Become so. In either case, the data regarding the amount of gas used before that is lost and it is necessary to reset the setting data. Although the setting data is troublesome, it can be dealt with by performing the setting operation or learning and resetting the setting, but the data regarding the gas usage amount is irreversible.

【0011】なお、計量動作に上述したような機械動作
を伴う膜式ガスメータでは、構造が大きくなる他、機械
動作部分の摩耗などによる耐久性の観点から問題があっ
た。そこで、ガス流速を例えば超音波を利用して計測
し、このガス流速とガス供給路の断面積との積によって
ガス流量を求め、このガス流量を積算してガス使用量を
計量するように構成し、完全に電子化して長寿命化を図
ったガスメータが検討されるようになってきている。
In addition, the membrane gas meter in which the metering operation involves the mechanical operation as described above has a problem in terms of durability due to wear of the mechanical operation portion in addition to the large structure. Therefore, the gas flow rate is measured by using, for example, ultrasonic waves, the gas flow rate is obtained by the product of this gas flow rate and the cross-sectional area of the gas supply path, and this gas flow rate is integrated to measure the gas usage amount. However, gas meters that are fully electronic and have a long life have been studied.

【0012】[0012]

【発明が解決しようとする課題】上述した完全に電子化
したガスメータの場合には、隔膜の往復動に連動して駆
動されるカウンタからなる計量表示部が存在しなくな
り、ガス使用量に関するデータが失われた場合に、前回
検針からデータが失われたときまでのガス使用量を全く
知ることができなくなる。また、完全に電子化したガス
メータの場合には、長寿命化によって電池電圧が低下し
たとき必ずしもガスメータ自体の交換時期にはならない
ので、電池交換によって対処することが必要になる。
In the case of the above-mentioned completely electronic gas meter, there is no measurement display section consisting of a counter driven in conjunction with the reciprocating movement of the diaphragm, and the data on the gas usage amount is not available. If it is lost, the amount of gas used from the last meter reading to the time when the data is lost cannot be known at all. Further, in the case of a completely electronic gas meter, it is not always time to replace the gas meter itself when the battery voltage drops due to a longer life, so it is necessary to replace the battery.

【0013】そこで、ガス流速の測定に基づいてガス使
用量を計量する新規の電子式ガス計量装置の開発に当た
っては、電池電圧の低下が警報された場合に、ガスメー
タ自体を交換することなく、電池交換によって対応して
も、ガス使用量に関するデータを失うことがないように
することが望まれる。また、面倒な設定データの設定し
直しを必要とすること無しに、電池交換のみによって対
処できることが求められる。更に、プログラム動作する
マイクロコンピュータを内蔵するガスメータの場合、暴
走によってマイクロコンピュータの動作が停止して計量
動作ができなくなることがある。このようなことが起こ
ったとき、リセットによってマイクロコンピュータを再
起動することになるが、この再起動によって初期化処理
が行われると、それ以前のガス使用量に関するデータが
失われるとともに設定データとして標準的な設定データ
が格納されるようになって設定データの設定のし直しが
必要となる。
Therefore, in the development of a new electronic gas meter for measuring the gas usage based on the measurement of the gas flow rate, when the battery voltage drop is warned, the gas meter is not replaced and the battery is replaced. It is desirable to prevent loss of data on gas usage, even if it is dealt with by replacement. In addition, it is required to be able to deal with the problem only by replacing the battery, without the need for complicated setting data resetting. Further, in the case of a gas meter incorporating a microcomputer that operates by a program, the operation of the microcomputer may be stopped due to a runaway and the metering operation may not be possible. When this happens, the microcomputer will be restarted by a reset, but if the initialization process is performed by this restart, the data related to the amount of gas used before that will be lost and standard data will be set as the setting data. It becomes necessary to re-set the setting data as the general setting data is stored.

【0014】よって本発明は、上述した従来の問題点に
鑑み、電池を電源として動作し、ガス流速の測定に基づ
いてガス使用量を計量するものであって、電池電圧が低
下したとき、新しい電池との交換によって対応できるよ
うにした電子式ガス計量装置を提供することを課題とし
ている。
Therefore, in view of the above-mentioned conventional problems, the present invention operates by using a battery as a power source and measures the gas usage based on the measurement of the gas flow velocity. An object of the present invention is to provide an electronic gas metering device that can be handled by replacing it with a battery.

【0015】本発明はまた、電池交換しても面倒な設定
データの設定し直しを必要とすること無しにそのまま再
使用できるように構成した電子式ガス計量装置を提供す
ることを課題としている。
Another object of the present invention is to provide an electronic gas metering device constructed so that it can be reused as it is without requiring troublesome resetting of setting data even if the battery is replaced.

【0016】本発明は更に、停止した動作を開始しても
それ以前のデータが失われることを無くして面倒なデー
タの設定し直しなどを行わなくても動作を再開できるよ
うに構成した電子式ガス計量装置を提供することを課題
としている。
Further, the present invention is an electronic device constructed so that even if a stopped operation is started, the previous data is not lost and the operation can be restarted without troublesome data resetting. An object is to provide a gas metering device.

【0017】[0017]

【課題を解決するための手段】上記課題を解決するため
成された請求項1記載の発明は、図1の基本構成図に示
すように、電池15iと、ガス供給路に流れるガス流の
流速を計測する流速計測手段15a111を有し、前記
電池を電源として動作し、前記流速計測手段によって計
測した流速に基づいてガス流量を求め、該求めたガス流
量を積算してガス使用量を計量し、該計量したガス使用
量を表示する計量表示手段15a11と、該計量表示手
段によって計量したガス使用量に関するデータを書き込
み読み出し自在に記憶し、該記憶したデータを前記電池
をバックアップ電源として保持するバックアップ付き記
憶手段15a3と、データを読み出し書き込み自在に記
憶しバックアップ電源なしに記憶データを保持する不揮
発性記憶手段15nと、前記電池を電源として動作し、
前記バックアップ付き記憶手段に記憶しているデータを
前記不揮発性記憶手段に書き込むと共に、前記書き込ん
だデータを前記不揮発性記憶手段から読み出して前記バ
ックアップ付き記憶手段に書き込む書込読出手段15a
12とを備え、前記書込読出手段が、読み出すべきデー
タが前記不揮発性記憶手段に書き込まれていないとき、
前記バックアップ付き記憶手段に予め定めたデータを書
き込むことを特徴とする電子式ガス計量装置に存する。
The invention according to claim 1 made to solve the above-mentioned problems is, as shown in the basic configuration diagram of FIG. 1, a battery 15i and a flow velocity of a gas flow flowing in a gas supply passage. Has a flow rate measuring means 15a111 for measuring the gas flow rate based on the flow rate measured by the flow rate measuring means, and operates by using the battery as a power source. A metering display unit 15a11 for displaying the measured gas usage amount, and a data storage unit which stores the data concerning the gas usage amount measured by the measurement display unit in a writable and readable manner, and stores the stored data as a backup power source for the battery. With a storage means 15a3 and a non-volatile storage means 15 for storing data in a readable and writable manner and holding the stored data without a backup power source. If, by operating the battery as a power source,
Writing / reading means 15a for writing the data stored in the storage means with backup to the non-volatile storage means, reading the written data from the non-volatile storage means, and writing to the storage means with backup.
And the data to be read by the writing / reading means.
Data is not written in the non-volatile storage means,
Write predetermined data to the backup storage means
The burn them consists in Electronic gas metering device according to claim.

【0018】請求項1記載の電子式ガス計量装置におい
ては、計量表示手段15a11が電池15iを電源とし
て動作し、計量表示手段の有する流速計測手段15a1
11がガス供給路に流れるガス流の流速を計測し、この
計測した流速に基づいてガス流量を求め、該求めたガス
流量を積算してガス使用量を計量し、該計量したガス使
用量を表示する。記憶したデータを電池をバックアップ
電源として保持するバックアップ付き記憶手段15a3
が、計量表示手段によって計量したガス使用量に関する
データを書き込み読み出し自在に記憶する。バックアッ
プ電源なしに記憶データを保持する不揮発性記憶手段1
5nがデータを読み出し書き込み自在に記憶する。書込
読出手段15a12が電池を電源として動作し、バック
アップ付き記憶手段に記憶しているデータを不揮発性記
憶手段に書き込むと共に、書き込んだデータを不揮発性
記憶手段から読み出してバックアップ付き記憶手段に書
き込む。
In the electronic gas metering device according to the first aspect, the metering display means 15a11 operates by using the battery 15i as a power source, and the flow rate measuring means 15a1 included in the metering display means.
11 measures the flow velocity of the gas flow flowing in the gas supply path, obtains the gas flow rate based on the measured flow velocity, integrates the obtained gas flow rates to measure the gas usage amount, and measures the measured gas usage amount. indicate. Storage means with backup 15a3 for holding the stored data as a backup power source using a battery
Stores the data regarding the gas usage amount measured by the measurement display means in a writable and readable manner. Nonvolatile storage means 1 for holding stored data without backup power source
5n stores data in a readable and writable manner. The writing / reading means 15a12 operates by using the battery as a power source to write the data stored in the backup storage means to the non-volatile storage means and read the written data from the non-volatile storage means and write it to the backup storage means.

【0019】上述のように、電池をバックアップ電源と
してバックアップ付き記憶手段が保持しているデータ
を、電池を電源として動作している書込読出手段15a
12がバックアップ電源なしに記憶データを保持する不
揮発性記憶手段15nに書き込むと共に、書き込んだデ
ータを不揮発性記憶手段から読み出してバックアップ付
き記憶手段に書き込むようになっているので、バックア
ップ電源としての電池がなくなってバックアップ付き記
憶手段に記憶されていたガス使用量に関するデータが消
失しても、電池を電源として動作している間に書込読出
手段によって書き込まれた不揮発性記憶手段内のガス使
用量に関するデータが保持され続け、またこの保持され
たガス使用量に関するデータが書込読出手段によって読
み出されて再びバックアップ付き記憶手段に書き込まれ
る。また、読み出すべきデータが不揮発性記憶手段に書
き込まれていないとき、書込読出手段が所定のでデータ
をバックアップ付き記憶手段に書き込んでいるので、不
揮発性記憶手段にデータがあるとき以外はバックアップ
付き記憶手段に所定データを書き込む初期化処理が行わ
れる。
As described above, the writing / reading means 15a operating with the battery as the power source is used for the data held in the backup storage means with the battery as the backup power source.
12 writes the stored data in the non-volatile storage means 15n without the backup power source and reads the written data from the non-volatile storage means and writes the data in the backup-equipped storage means. Even if the data regarding the gas usage amount stored in the backup storage means disappears and disappears, it relates to the gas usage amount in the non-volatile storage means written by the writing / reading means while operating with the battery as a power source. The data continues to be held, and the held data regarding the amount of gas used is read by the writing / reading means and written again in the storage means with backup. In addition, the data to be read is written in the nonvolatile storage means.
When not written, the writing / reading means does not write data.
Is written in the backup storage means,
Backup except when data is in volatile storage
Performs initialization processing to write specified data to the attached storage means
Be done.

【0020】上記課題を解決するため成された請求項2
記載の発明は、請求項1記載の電子式ガス計量装置にお
いて、前記書込読出手段が、前記バックアップ付き記憶
手段に記憶しているデータと一緒に、書き込んだ日時に
関するデータを前記不揮発性記憶手段に書き込むことを
特徴とする電子式ガス計量装置に存する。
Claim 2 which was made in order to solve the above-mentioned topic
According to the invention, in the electronic gas metering device according to claim 1, the writing / reading unit stores the data on the date and time of writing together with the data stored in the storage unit with backup. It exists in the electronic gas metering device characterized by writing in.

【0021】請求項2記載の電子式ガス計量装置におい
ては、書込読出手段がバックアップ付き記憶手段に記憶
しているデータと一緒に、書き込んだ日時に関するデー
タを不揮発性記憶手段に書き込むので、この日時に関す
るデータを参照することによって、不揮発性記憶手段内
に保持されているガス使用量に関するデータが何時のも
のであるかを知ることができる。
In the electronic gas metering device according to the second aspect, since the writing / reading means writes the data regarding the date and time of writing in the non-volatile storage means together with the data stored in the storage means with backup. By referring to the date and time data, it is possible to know what time the data regarding the gas usage amount stored in the non-volatile storage means is.

【0022】上記課題を解決するため成された請求項3
記載の発明は、請求項1又は2のいずれかに記載の電子
式ガス計量装置において、前記電池を電源として動作
し、各種の機能を実行する機能手段15a13を更に備
え、前記バックアップ付き記憶手段が、前記ガス供給路
を通じて供給するガスを消費する燃焼器又はガスを使用
する形態に応じて前記機能手段の機能を設定する設定デ
ータを書き込み読み出し自在に記憶することを特徴とす
る電子式ガス計量装置に存する。
Claim 3 which was made in order to solve the above-mentioned topic
The described invention is the electronic gas metering device according to any one of claims 1 and 2, further comprising a functional means 15a13 which operates using the battery as a power source and executes various functions, and wherein the backup storage means is provided. An electronic gas metering device, wherein setting data for setting a function of the functional means is stored in a writable and readable manner in accordance with a combustor consuming gas supplied through the gas supply passage or a mode of using the gas. Exist in.

【0023】請求項3記載の電子式ガス計量装置におい
ては、バックアップ付き記憶手段には、各種の機能を実
行する機能手段15a13の機能を設定する設定データ
が書き込み読み出し自在に記憶されていて、ガス使用量
に関するデータとともに書込読出手段によって不揮発性
記憶手段に書き込まれるようになるので、バックアップ
電源である電池がなくなっても、設定データが失われる
ことがなく、ガス供給路を通じて供給するガスを消費す
る燃焼器又はガスを使用する形態に応じて設定データを
設定し直すことが必要ない。
In the electronic gas metering apparatus according to the third aspect of the present invention, the backup storage means stores the setting data for setting the function of the function means 15a13 for executing various functions in a writable and readable manner. Since the writing / reading means writes the data in the nonvolatile storage means together with the data on the usage amount, the setting data is not lost even if the battery as the backup power source is used up, and the gas supplied through the gas supply path is consumed. It is not necessary to reset the setting data according to the type of combustor or gas used.

【0024】上記課題を解決するため成された請求項4
記載の発明は、請求項1〜3記載のいずれかに記載の電
子式ガス計量装置において、前記流速計測手段が、ガス
供給路に流れ方向に離間して設けられ、前記電池を電源
として動作し、一方から発信された超音波信号を他方に
て受信する一対の振動子14a,14b間の超音波信号
伝搬時間を計測し、該計測した超音波信号伝搬時間に基
づいてガス供給路に流れるガス流の流速を計測する超音
波式流速計測手段14からなり、前記バックアップ付き
記憶手段が、前記計量表示手段において前記流速計測手
段によって計測した流速に基づいてガス流量を求め、該
求めたガス流量を積算してガス使用量を計量するための
係数に関するデータを更に書き込み読み出し自在に記憶
していることを特徴する電子式ガス計量装置に存する。
A fourth aspect of the present invention has been made to solve the above problems.
The described invention is the electronic gas metering device according to any one of claims 1 to 3, wherein the flow velocity measuring means is provided in the gas supply passage so as to be separated in the flow direction, and operates with the battery as a power source. , The ultrasonic signal propagation time between the pair of transducers 14a and 14b receiving the ultrasonic signal transmitted from one side on the other side, and the gas flowing through the gas supply path based on the measured ultrasonic signal propagation time The ultrasonic storage type flow velocity measuring unit 14 for measuring the flow velocity of the flow, the backup storage unit obtains the gas flow rate based on the flow velocity measured by the flow velocity measuring unit in the measurement display unit, and calculates the obtained gas flow rate. The present invention resides in an electronic gas metering device characterized in that data relating to a coefficient for integrating and measuring a gas usage amount is further written and readably stored.

【0025】請求項4記載の電子式ガス計量装置におい
ては、バックアップ付き記憶手段には、計量表示手段に
おいて流速計測手段によって計測した流速に基づいてガ
ス流量を求め、該求めたガス流量を積算してガス使用量
を計量するための係数に関するデータが書き込み読み出
し自在に記憶されていて、ガス使用量に関するデータと
ともに書込読出手段によって不揮発性記憶手段に書き込
まれるようになるので、バックアップ電源である電池が
なくなっても、係数に関するデータが失われることがな
く、一対の振動子14a,14b間の超音波信号伝搬時
間を計測し、該計測した超音波信号伝搬時間に基づいて
ガス供給路に流れるガス流の流速を計測する超音波式流
速計測手段14からなる流速計測手段による流速計測に
よってガス流量を求め、これを積算してガス使用量を計
量する機能が損なわれることがない。
According to another aspect of the electronic gas measuring apparatus of the present invention, the backup storage means obtains the gas flow rate based on the flow rate measured by the flow rate measuring means in the measurement display means, and integrates the obtained gas flow rate. Since the data regarding the coefficient for measuring the gas usage amount is stored in a writable and readable manner, and the data regarding the gas usage amount is written into the nonvolatile storage means by the writing and reading means, the battery serving as the backup power source Even if there is no data, the coefficient data is not lost, the ultrasonic signal propagation time between the pair of transducers 14a and 14b is measured, and the gas flowing through the gas supply path is measured based on the measured ultrasonic signal propagation time. The gas flow rate is measured by the flow velocity measurement means including the ultrasonic type flow velocity measurement means 14 for measuring the flow velocity of the flow. Because, it never functions to meter the gas consumption is impaired by integrating them.

【0026】上記課題を解決するため成された請求項5
記載の発明は、請求項1〜4のいずれかに記載の電子式
ガス計量装置において、前記電池の電圧を監視し、前記
電池を電源とする前記手段の動作に支障はないが、予め
定めた一定値以下に低下したことを検出する電池電圧検
出手段15mを更に備え、前記書込読出手段が、前記電
池電圧検出手段による電圧低下検出以後、一定時間毎に
前記バックアップ付き記憶手段に記憶しているデータを
前記不揮発性記憶手段に書き込むことを特徴とする電子
式ガス計量装置に存する。
A fifth aspect of the present invention has been made to solve the above problems.
In the electronic gas metering device according to any one of claims 1 to 4, the invention described above does not hinder the operation of the means for monitoring the voltage of the battery and using the battery as a power source, but it is set in advance. A battery voltage detecting means 15m for detecting that the voltage has dropped below a certain value is further provided, and the writing / reading means stores the voltage in the backup-equipped storage means at regular intervals after the voltage drop is detected by the battery voltage detecting means. Existing data is written into the non-volatile storage means.

【0027】請求項5記載の電子式ガス計量装置におい
ては、電池電圧検出手段15mが電池の電圧を監視し、
電池の電圧がこれを電源とする手段の動作に支障はない
が、予め定めた一定値以下に低下したことを検出するよ
うになっており、また書込読出手段が電池電圧検出手段
による電圧低下検出以後、一定時間毎にバックアップ付
き記憶手段に記憶しているデータを不揮発性記憶手段に
書き込むようになっているので、不揮発性記憶手段には
電池電圧が手段を動作させることができなくなる直前ま
で、又は、電池を交換する直前までのデータが保持され
る。
In the electronic gas metering device according to the fifth aspect, the battery voltage detecting means 15m monitors the voltage of the battery,
Although the voltage of the battery does not hinder the operation of the means using this as a power source, it detects that the voltage has dropped below a predetermined value, and the writing / reading means detects the voltage drop by the battery voltage detecting means. After the detection, the data stored in the backup storage means is written into the non-volatile storage means at regular time intervals, so that until the battery voltage in the non-volatile storage means becomes unable to operate the means. Or, the data until just before the battery is replaced is retained.

【0028】上記課題を解決するため成された請求項6
記載の発明は、請求項5記載の電子式ガス計量装置にお
いて、前記電池電圧検出手段が、前記電池の電圧を監視
し、前記電池の電圧が前記電池を電源とする前記手段の
動作に必要な電圧に復帰したことを検出し、前記書込読
出手段が、前記電池電圧検出手段による電圧復帰検出時
に、前記書き込んだデータを前記不揮発性記憶手段から
読み出して前記バックアップ付き記憶手段に書き込むこ
とを特徴とする電子式ガス計量装置に存する。
Claim 6 which was made in order to solve the above-mentioned topic
According to a fifth aspect of the present invention, in the electronic gas metering device according to the fifth aspect, the battery voltage detecting means monitors the voltage of the battery, and the voltage of the battery is necessary for the operation of the means using the battery as a power source. The writing / reading means detects that the voltage has been restored, and the write / read means reads the written data from the non-volatile storage means and writes the data in the backup storage means when the battery voltage detection means detects the voltage restoration. It exists in the electronic gas metering device.

【0029】請求項6記載の電子式ガス計量装置におい
ては、電池電圧検出手段が、前記電池の電圧を監視し、
前記電池の電圧が前記電池を電源とする前記手段の動作
に必要な電圧に復帰したことを検出するようになってお
り、また書込読出手段が電池電圧検出手段による電圧復
帰検出時に、書き込んだデータを前記不揮発性記憶手段
から読み出してバックアップ付き記憶手段に書き込むよ
うになっているので、電池を交換して電源が復旧して手
段が動作を開始すると、書込読出手段により不揮発性記
憶手段から読み出しバックアップ付き記憶手段に書き込
んだ最新のデータに基づいて動作を再開することができ
る。
In the electronic gas metering device according to the sixth aspect, the battery voltage detecting means monitors the voltage of the battery,
It is designed to detect that the voltage of the battery has returned to the voltage required for the operation of the means using the battery as a power source, and the writing / reading means writes the voltage when the battery voltage detecting means detects the voltage recovery. Since the data is read from the non-volatile storage means and written into the storage means with backup, when the battery is replaced and the power source is restored and the means starts operating, the writing / reading means causes the non-volatile storage means to write to the non-volatile storage means. The operation can be restarted based on the latest data written in the read-out backup storage means.

【0030】上記課題を解決するため成された請求項7
記載の発明は、請求項1〜6記載の電子式ガス計量装置
において、前記書込読出手段が、外部から信号を受信す
ることに応じて、前記不揮発性記憶手段に記憶している
データを読み出して前記バックアップ付き記憶手段に書
き込むことを特徴とする電子式ガス計量装置に存する。
Claim 7 which was made in order to solve the above-mentioned topic
According to the described invention, in the electronic gas metering device according to any one of claims 1 to 6, the writing and reading means reads the data stored in the non-volatile storage means in response to receiving a signal from the outside. The electronic gas metering device is characterized in that the data is written in the storage means with backup.

【0031】請求項7記載の電子式ガス計量装置におい
ては、書込読出手段が、外部から信号を受信することに
応じて動作を開始し、不揮発性記憶手段に記憶している
データを読み出してバックアップ付き記憶手段に書き込
むようになっているので、暴走など何らかの理由によっ
て動作が停止したときに外部から信号を入力するだけ
で、書込読出手段により不揮発性記憶手段から読み出し
バックアップ付き記憶手段に書き込んだ最新のデータに
基づいて動作を再開することができる。
In the electronic gas metering device according to the seventh aspect, the writing and reading means starts its operation in response to receiving a signal from the outside and reads the data stored in the non-volatile storage means. Since the data is written in the storage means with backup, only by inputting a signal from the outside when the operation is stopped due to some reason such as a runaway, the write / read means reads from the non-volatile storage means and writes it in the storage means with backup. However, the operation can be restarted based on the latest data.

【0032】上記課題を解決するため成された請求項8
記載の発明は、請求項5記載の電子式ガス計量装置にお
いて、外部との間で信号の送受を行うための通信手段1
5fを更に備え、前記書込読出手段は、前記通信手段を
通じ外部から受信する信号の立ち上がり又は立ち下がり
エッジの検出に応じて、前記不揮発性記憶手段に記憶し
ているデータを読み出して前記バックアップ付き記憶手
段に書き込むことを特徴する電子式ガス計量装置に存す
る。
Claim 8 which is made in order to solve the above-mentioned topic
According to the invention described in claim 5, in the electronic gas metering device according to claim 5, a communication means 1 for transmitting and receiving a signal to and from the outside.
5f, wherein the writing / reading means reads the data stored in the non-volatile storage means in response to detection of a rising or falling edge of a signal received from the outside through the communication means, and adds the backup. The present invention resides in an electronic gas metering device characterized by writing in a storage means.

【0033】請求項8記載の電子式ガス計量装置におい
ては、書込読出手段は、外部との間で信号の送受を行う
ための通信手段15fを通じ外部から受信する信号の立
ち上がり又は立ち下がりエッジの検出に応じて、不揮発
性記憶手段に記憶しているデータを読み出してバックア
ップ付き記憶手段に書き込むようになっているので、暴
走など何らかの理由によって停止した動作を再開させる
際に、通信手段15を通じて外部から通信のための信号
を入力させることによって、不揮発性記憶手段に保持さ
れている最新のデータによって動作を再開させることが
できる。
In the electronic gas metering device according to the eighth aspect, the writing / reading means is provided with the rising or falling edge of the signal received from the outside through the communication means 15f for transmitting / receiving the signal to / from the outside. In response to the detection, the data stored in the non-volatile storage means is read out and written in the storage means with backup. Therefore, when the operation stopped for some reason such as a runaway is restarted, the external data is transmitted through the communication means 15. By inputting a signal for communication from, the operation can be restarted by the latest data held in the nonvolatile storage means.

【0034】上記課題を解決するため成された請求項9
記載の発明は、請求項1〜4のいずれかに記載の電子式
ガス計量装置において、前記書込読出手段は、一定時間
毎に前記バックアップ付き記憶手段に記憶しているデー
タを前記不揮発性記憶手段に書き込むことを特徴する電
子式ガス計量装置に存する。
Claim 9 which was made in order to solve the above-mentioned topic
The described invention is the electronic gas metering device according to any one of claims 1 to 4, wherein the writing / reading means stores the data stored in the backup-equipped storage means at regular intervals at the non-volatile storage. An electronic gas metering device characterized by writing to the means.

【0035】請求項9記載の電子式ガス計量装置におい
ては、書込読出手段が一定時間毎にバックアップ付き記
憶手段に記憶しているデータを不揮発性記憶手段に書き
込むようになっているので、不揮発性記憶手段にはバッ
クアップ付き記憶手段に記憶されている最新のデータが
常時保持される。
In the electronic gas metering apparatus according to the ninth aspect, since the writing / reading means writes the data stored in the backup-equipped storage means to the non-volatile storage means at regular intervals, the nonvolatile storage means is nonvolatile. The latest data stored in the backup storage means is always held in the sex storage means.

【0036】上記課題を解決するため成された請求項1
0記載の発明は、請求項1〜9のいずれかに記載の電子
式ガス計量装置において、前記書込読出手段が、読み出
すべきデータが前記不揮発性記憶手段に書き込まれてい
ないとき、前記バックアップ付き記憶手段に予め定めた
データを書き込むことを特徴する電子式ガス計量装置に
存する。
Claim 1 which was made in order to solve the above-mentioned topic
The invention according to claim 0 is the electronic gas metering device according to any one of claims 1 to 9, wherein when the data to be read is not written in the non-volatile storage means by the writing / reading means, the backup is provided. The present invention resides in an electronic gas metering device characterized by writing predetermined data in a storage means.

【0037】[0037]

【0038】[0038]

【0039】[0039]

【0040】[0040]

【0041】[0041]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。本形態における電子式ガス計量装
置である電子ガスメータは、図2に示すようなLPガス
供給設備に適用されるように構成されている。図中、符
号1で示す電子ガスメータは、LPガス容器2に収容さ
れている高圧のLPガスを圧力調整器3により供給圧力
に減圧調整してガス風呂釜4やコンロ5などの燃焼器に
供給するガス供給路中の配管6に設置されており、燃焼
器において消費されるガスの使用量を計量する。なお、
7はガスコンロ5などに至る配管に設けられた閉止弁で
ある。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. The electronic gas meter, which is the electronic gas metering device in this embodiment, is configured to be applied to the LP gas supply equipment as shown in FIG. In the figure, an electronic gas meter denoted by reference numeral 1 reduces the high-pressure LP gas contained in an LP gas container 2 to a supply pressure by a pressure regulator 3 and supplies it to a combustor such as a gas bath pot 4 or a stove 5. It is installed in the pipe 6 in the gas supply path for measuring the amount of gas consumed in the combustor. In addition,
Reference numeral 7 is a shutoff valve provided in a pipe leading to the gas stove 5 and the like.

【0042】電子ガスメータ1は、図3に示すように、
図示しないガス供給路の配管に連通された図示しないガ
ス路に設けられ弁閉によってガス供給を遮断する遮断弁
11、所定値以上の震度を感知する感震器12、上記ガ
ス路内の圧力を感知する圧力センサ13、上記ガス路を
通じて流れるガス流の流速に応じて変化する流速信号を
発生するた超音波式流速センサ14、及び制御部として
のコントローラ15を内蔵している。
The electronic gas meter 1, as shown in FIG.
A shutoff valve 11 provided in a gas passage (not shown) connected to a pipe of a gas supply passage (not shown) to shut off the gas supply by closing the valve, a seismoscope 12 for detecting a seismic intensity of a predetermined value or more, and a pressure in the gas passage. It has a pressure sensor 13 for sensing, an ultrasonic flow velocity sensor 14 for generating a flow velocity signal that changes according to the flow velocity of the gas flow flowing through the gas passage, and a controller 15 as a control unit.

【0043】コントローラ15は予め定められたプログ
ラムに従って動作するマイクロコンピュータ(μCO
M)15aを有する。マイクロコンピュータ15aは、
周知のように、予め定めたプログラムに従って各種の処
理や制御などを行う中央処理ユニット(CPU)15a
1、CPUのためのプログラム等を格納した読み出し専
用のメモリであるROM15a2、各種のデータを格納
するとともにCPUの処理作業に必要なエリアを有する
読み出し書き込み自在のメモリであるRAM15a3等
を内蔵している。
The controller 15 is a microcomputer (μCO) which operates according to a predetermined program.
M) 15a. The microcomputer 15a is
As is well known, a central processing unit (CPU) 15a that performs various processes and controls according to a predetermined program.
1. A ROM 15a2, which is a read-only memory that stores programs and the like for the CPU, and a RAM 15a3, which is a readable / writable memory that stores various data and has an area required for CPU processing work, are built-in. .

【0044】コントローラ15はまた、遮断弁11、感
震器12、圧力センサ13、流速センサ14が接続され
るコネクタ15bと、μCOM15aが出力する遮断信
号に応じて遮断弁11を遮断駆動するための駆動信号を
コネクタ15bを介して出力する遮断弁駆動回路15c
と、コネクタ15bを介して入力した感震器12、圧力
センサ13からの信号をμCOM15aに入力するため
のインタフェース回路15dと、インタフェース回路1
5d及びコネクタ15bをそれぞれ介してμCOM15
a及び流速センサ14に接続されμCOM15aのCP
U15a1の制御下で流速センサ14を駆動する駆動信
号を送信し、この駆動によって流速センサ14が発生す
る信号を受信するセンサ回路15eとを有する。
The controller 15 also drives the shutoff valve 11 in response to the shutoff valve 11, the seismic sensor 12, the pressure sensor 13, and the flow velocity sensor 14, and the shutoff valve 11 according to the shutoff signal output from the μCOM 15a. Shut-off valve drive circuit 15c for outputting a drive signal via the connector 15b
And an interface circuit 15d for inputting the signals from the seismoscope 12 and the pressure sensor 13 input via the connector 15b to the μCOM 15a, and the interface circuit 1
ΜCOM15 via 5d and connector 15b respectively
a and CP of μCOM 15a connected to the flow velocity sensor 14
It has a sensor circuit 15e which transmits a drive signal for driving the flow velocity sensor 14 under the control of U15a1 and receives a signal generated by the flow velocity sensor 14 by this driving.

【0045】コントローラ15はさらに電子ガスメータ
1の外部にある種々の外部機器が接続される各種の端子
を有する端子台15fと、この端子台15fを介してμ
COM15aと外部機器との間で信号の授受を行うため
のインタフェース回路15gとを有する。具体的には、
コントローラ15には、端子台15fを介して、例え
ば、宅内に設けられてガスメータに関する種々の表示を
行うための宅内表示盤21、ガスメータに対する種々の
遠隔操作を行うための宅内操作器22、家屋内において
警報レベル以上のガスを検知して警報を発するガス警報
器23、ガス警報器23と同様の機能の他に警報レベル
以上のCOガスを検知して警報を発するCO第2ガス警
報器・CO警報器24、複数のLPガス容器を自動的に
切り替える自動切替式圧力調整器の切替動作に応じた信
号を発する自動切替調整器等25、電話回線などの公衆
回線を介してガス販売業者の管理センタとの通信を制御
するための網制御ユニット(NCU)26が接続され
る。なお、NCU26が接続される通信端子15f1に
は、NCU26を外して設定器26′が接続されること
ができ、この通信端子15f1を介して外部と信号の送
受を行う。
The controller 15 further includes a terminal block 15f having various terminals to which various external devices outside the electronic gas meter 1 are connected, and μ via the terminal block 15f.
It has an interface circuit 15g for exchanging signals between the COM 15a and an external device. In particular,
The controller 15 is provided with, for example, an in-home display panel 21 for providing various displays related to the gas meter, an in-home operating device 22 for performing various remote operations with respect to the gas meter, and an inside of the house via the terminal block 15f. Gas alarm device 23 that detects a gas of an alarm level or higher and issues an alarm, and a CO second gas alarm device that detects a CO gas of an alarm level or higher and issues an alarm in addition to the function similar to that of the gas alarm device 23 Alarm device 24, automatic switching regulator that automatically switches between multiple LP gas containers 25, automatic switching regulator that outputs a signal according to the switching operation of the pressure regulator, and management of gas distributors via public lines such as telephone lines A network control unit (NCU) 26 for controlling communication with the center is connected. The setting terminal 26 'can be connected to the communication terminal 15f1 to which the NCU 26 is connected by removing the NCU 26, and the signal is transmitted / received to / from the outside via the communication terminal 15f1.

【0046】コントローラ15はさらにまた、μCOM
15aに接続されガス使用量の積算値や警報などの各種
の情報を表示する液晶表示器(LCD)15hと、コン
トローラ15内の各部に動作電源を供給するリチウム電
池15iとを有するとともに、インタフェース回路15
dを介してμCOM15aに接続された、LPガス容器
の交換時に操作される容器交換スイッチ15jと、閉弁
した遮断弁11を開放する際にオン操作される遮断弁開
スイッチ15k、電池15iの電圧を監視し、電池の電
圧がコントローラ15等の動作に支障はない一定値以下
に低下したことを検出すると共に、電池15iの電圧が
コントローラ15等の動作に必要な電圧に復帰したこと
を検出する電池電圧検出回路15m、及び、バックアッ
プ電源なしに記憶内容を保持することのできる電気的に
書き込み読み出し自在の不揮発性記憶手段であるE2
ROM15nを有する。
The controller 15 is also provided with μCOM.
A liquid crystal display (LCD) 15h connected to 15a for displaying various information such as an integrated value of gas usage and an alarm, and a lithium battery 15i for supplying operating power to each unit in the controller 15 and an interface circuit 15
A container exchange switch 15j that is connected to the μCOM 15a via d and is operated when the LP gas container is exchanged, a shutoff valve open switch 15k that is turned on when the shutoff valve 11 that is closed is opened, and the voltage of the battery 15i. Is detected to detect that the voltage of the battery has dropped below a certain value that does not hinder the operation of the controller 15 or the like, and that the voltage of the battery 15i has returned to the voltage required for the operation of the controller 15 or the like. Battery voltage detection circuit 15m and E 2 P which is an electrically writable and readable nonvolatile storage means capable of holding stored contents without a backup power supply
It has a ROM 15n.

【0047】μCOM15aのCPU15a1は、所定
のプログラムに従って処理を行い、上記超音波式流速セ
ンサ14、センサ回路15e及びLCD15hとともに
ガス計量表示手段を構成している。μCOM15aのC
PU15a1は、所定のプログラムに従って処理を行う
ことによって、上記機能以外に、合計流量遮断、増加流
量遮断、使用時間遮断、復帰安全確認中漏洩遮断、ガス
漏れ警報器連動遮断、感震器作動遮断、流量式微少漏洩
警告、圧力式微少漏洩警告、調整圧力異常警告、閉塞圧
力異常警告、圧力低下遮断、口火登録、テスト遮断、自
動検針、残量管理など多数の機能を実行する機能手段と
して働いているが、これらの機能を実行するため各種の
設定データがRAM15a3内の所定エリアに格納され
ている。
The CPU 15a1 of the μCOM 15a performs a process in accordance with a predetermined program and constitutes a gas metering display means together with the ultrasonic type flow velocity sensor 14, the sensor circuit 15e and the LCD 15h. μCOM15a C
In addition to the above functions, the PU 15a1 performs processing according to a predetermined program to cut off the total flow rate, increase the flow rate, shut down the operating time, shut off the leak while confirming the return safety, shut off the gas leak alarm, and shut down the seismic sensor. Acts as a functional means to execute a number of functions such as flow rate type minute leak warning, pressure type minute leak warning, adjustment pressure abnormality warning, blockage pressure abnormality warning, pressure drop cutoff, fire registration, test cutoff, automatic meter reading, residual quantity management, etc. However, various setting data for executing these functions are stored in a predetermined area in the RAM 15a3.

【0048】具体的には、設定データは図4(a)〜
(c)に示す構成のメータ制御コード1〜3の形でRA
M15a3内の所定のエリアに格納されている。コード
は各々が7バイト(4ビット/バイト)、合計21個の
データからなり、図においてコード1側から順にK0〜
K20のデータ名が付されている。
Specifically, the setting data is shown in FIG.
RA in the form of meter control codes 1 to 3 having the configuration shown in (c)
It is stored in a predetermined area in M15a3. Each code consists of 7 bytes (4 bits / byte), a total of 21 pieces of data, and K0 to K0 in order from the code 1 side in the figure.
The data name of K20 is attached.

【0049】例えばメータ制御コード1のK0はここに
特定の値が設定されることによって特定の機能を停止す
ることができ、k1はここに設定する値によりガスの連
続使用によって遮断弁を遮断する時間を学習によって自
動的に設定する範囲を定めるために使用され、K8はこ
こに設定される値によって学習の進行状況を示され、学
習の進行に伴って値が自動的に更新される。また、メー
タ制御コード2のK7はここに設定される値によって宅
内操作器を特定するために使用される。いずれにして
も、メータ制御コード1〜3には出荷時に標準的な設定
データが設定されるが、状況に応じて設定器などによっ
て設定のし直しが行われたり、学習の進行に応じて更新
されるため、これらの設定データが消失すると、安全機
器としても働いているガスメータが正常に機能しなくな
り、安全上問題である。
For example, K0 of the meter control code 1 can stop a specific function by setting a specific value here, and k1 shuts off the shutoff valve by continuous use of the gas according to the value set here. It is used to define a range in which the time is automatically set by learning. K8 indicates the progress of learning by the value set here, and the value is automatically updated as the learning progresses. Further, K7 of the meter control code 2 is used to specify the in-home operating device by the value set here. In any case, standard setting data is set in the meter control codes 1 to 3 at the time of shipment, but the setting is reset by a setting device or updated according to the progress of learning depending on the situation. Therefore, if these setting data are lost, the gas meter, which also works as a safety device, does not function normally, which is a safety problem.

【0050】標準世帯以外のときに、標準的な設定デー
タを変更する必要のある項目には、例えば、機能を部分
停止し内容を設定し直す項目として、合計流量遮断、増
加流量遮断の機能を部分停止して、流量遮断の設定範囲
の下限値を引き上げる設定を行う項目、使用時間遮断の
機能を部分停止して、特定の流量区分の遮断値を一定値
に固定する項目、特定の条件のもとで使用時間を無制限
に延長する項目、特定の世帯を対象に警報器未接続検知
機能を停止する項目がある。機能を停止する項目として
は、圧力微少漏洩警告、調整圧力異常警告、閉塞圧力異
常警告の機能を停止する項目がある。最後に、機能を新
たに選択するためのものとしては、口火登録を選択して
流量式微少漏洩警告機能に対応した口火流量を登録する
項目、遮断弁遠隔開閉機能を選択して宅内操作器と宅内
表示器のHライン切替を設定する項目などがある。
When the standard household is not a standard household, it is necessary to change the standard setting data, for example, as a function of partially stopping the function and resetting the contents, and a function of total flow cutoff and increase flow cutoff. Partial stop and setting to increase the lower limit of the flow cutoff setting range, Partial stop of the operating time cutoff function to fix the cutoff value of a specific flow rate segment to a fixed value, There are items that extend the usage time indefinitely and items that stop the alarm disconnection detection function for specific households. Items that stop the function include items that stop the functions of the minute pressure leak warning, the adjustment pressure abnormality warning, and the closing pressure abnormality warning. Finally, to newly select the function, the item to register the igniter registration and register the igniter flow rate corresponding to the flow rate type micro leak warning function, the shutoff valve remote opening and closing function to select the home controller There are items such as setting the H line switching of the home display.

【0051】まず、ガス計量表示手段について説明する
と、流速センサ14は、具体的には例えば図5に示すよ
うに、ガスメータ1内のガス路16の途中に流れ方向に
離間して配置された一対の振動子14a及び14bを有
する。センサ回路15eは、μCOM15aの制御の下
で振動子14a,14bの一方を駆動して超音波を発生
させる信号を送信する送信回路15e1と、一方の振動
子が発生する超音波を受信して他方の振動子が発生する
信号をハイパスフィルタ(HPF)15e4を介して受
信し、この受信した信号を例えば増幅してμCOM15
aに対して送出する受信回路15e2と、μCOM15
aの制御の下で、送信回路15e1から信号を供給する
振動子と受信回路15e2に対して信号を供給する振動
子を交互に切り替える切替回路15e3とを有する。
First, the gas metering display means will be described. Specifically, as shown in FIG. 5, for example, the flow velocity sensor 14 is a pair of gas flow sensors 16 disposed in the gas passage 16 in the gas meter 1 so as to be separated from each other in the flow direction. Oscillators 14a and 14b. The sensor circuit 15e, under the control of the μCOM 15a, transmits a signal that drives one of the transducers 14a and 14b to generate an ultrasonic wave and a transmitting circuit 15e1 that receives the ultrasonic wave generated by one transducer and the other. The signal generated by the oscillator of FIG. 2 is received via the high-pass filter (HPF) 15e4, and the received signal is amplified, for example, and the μCOM15
a receiving circuit 15e2 for sending to a, and μCOM15
Under the control of a, it has a switching circuit 15e3 that alternately switches the oscillator that supplies the signal from the transmission circuit 15e1 and the oscillator that supplies the signal to the reception circuit 15e2.

【0052】上述した構成のガス計量表示手段によるガ
ス計量の原理を以下説明する。今、切替回路15e3が
μCOM15aのCPUの制御の下で、送信回路15e
1の出力信号を振動子14aに供給し、振動子14bの
発生する信号を受信回路15e2に供給するように切り
替えているとする。このような状態で、μCOM15a
のCPUはトリガ信号を出力してこれを送信回路15e
1に対して印加する。トリガ信号が印加された送信回路
15e1はバースト信号を発生してこれを振動子14a
に供給し、振動子14aに超音波信号を発生させる。振
動子14aが発生した超音波信号はガス流中を伝搬して
振動子14bによって受信される。超音波信号を受信し
た振動子14bは受信した超音波信号に応じた信号を発
生し、これを受信回路15e2を介してμCOM15a
のCPUに供給する。μCOM15aのCPUは、トリ
ガ信号を出力してから受信回路15e2から信号を受信
するまでの時間を計測し、この計測した時間からガス流
の流速を以下のようにして求める。
The principle of gas metering by the gas metering display means having the above-described structure will be described below. Now, the switching circuit 15e3 is under the control of the CPU of the μCOM 15a, and the transmission circuit 15e
It is assumed that the output signal No. 1 is supplied to the oscillator 14a and the signal generated by the oscillator 14b is supplied to the receiving circuit 15e2. In such a state, μCOM15a
CPU outputs a trigger signal and sends it to the transmitting circuit 15e.
Apply to 1. The transmission circuit 15e1 to which the trigger signal is applied generates a burst signal and transmits the burst signal to the vibrator 14a.
To generate an ultrasonic signal in the vibrator 14a. The ultrasonic signal generated by the vibrator 14a propagates in the gas flow and is received by the vibrator 14b. The transducer 14b having received the ultrasonic signal generates a signal corresponding to the received ultrasonic signal, and transmits the signal via the receiving circuit 15e2 to the μCOM 15a.
Supply to the CPU. The CPU of the μCOM 15a measures the time from the output of the trigger signal to the reception of the signal from the reception circuit 15e2, and the flow velocity of the gas flow is obtained from the measured time as follows.

【0053】今、静止ガス中での音の伝搬速度をc、ガ
ス流の流速をvとすると、ガス流の順方向の超音波の伝
搬速度は(c+v)となる。振動子14a及び14b間
の距離をLとすると、振動子14aの発した超音波が振
動子14bに到達する時間Tは、 T=L/(c+v) (1) となり、(1)式より v=L/T−c (2) となり、Lが既知であるときには、Tを計測することに
よって流速vを求めることができる。
Now, assuming that the propagation velocity of sound in the stationary gas is c and the flow velocity of the gas flow is v, the propagation velocity of ultrasonic waves in the forward direction of the gas flow is (c + v). Assuming that the distance between the oscillators 14a and 14b is L, the time T for the ultrasonic waves emitted by the oscillator 14a to reach the oscillator 14b is T = L / (c + v) (1) = L / T-c (2), and when L is known, the flow velocity v can be obtained by measuring T.

【0054】流速vが求められたときには、流量Qはガ
ス路16の断面積をS、補正係数をKとすると、 Q=KSv (3) となり、瞬時流量が求められる。
When the flow velocity v is obtained, the flow rate Q is Q = KSv (3), where S is the cross-sectional area of the gas passage 16 and K is the correction coefficient, and the instantaneous flow rate is obtained.

【0055】従って、この流量Qを求める毎に、この流
量Qに前回求めた時間からの経過時間を乗じた値を積算
することによって、積算したガス供給量、すなわち、ガ
ス使用量を求めることができ、求めたガス使用量はRA
M15a3内の予め定められたエリアに格納される。な
お、ガス使用量をより正確に求めるには、流量Qの大き
いときに短い周期で、小さいときには長い周期で流速を
計測して流量Qを求めればよい。
Therefore, every time the flow rate Q is obtained, the integrated gas supply amount, that is, the gas use amount can be obtained by multiplying the value obtained by multiplying the flow rate Q by the elapsed time from the previously obtained time. The required gas usage is RA
It is stored in a predetermined area in M15a3. In order to obtain the gas usage amount more accurately, the flow rate Q may be obtained by measuring the flow velocity in a short cycle when the flow rate Q is large and in a long cycle when the flow rate Q is small.

【0056】なお、流速vを求めるための上記(2)式
には、音の伝搬速度vが定数として入っているが、音の
伝搬速度vは温度によって変化するため、この値を常温
時の固定値とすると、ガス温度が常温と異なるときには
流速の計測に誤差が生じるので、温度要因を別途計測し
て補正係数Kを補正することを必要とする。この点、図
5の構成においては、切替回路15e3がμCOM15
a内の図示しないCPUの制御の下で切り替えることに
よって、送信回路15e1の出力信号を振動子14bに
供給させ、振動子14aの発生する信号を受信回路15
e2に供給させる。従って、このような状態では、ガス
流と逆方向の超音波の到達時間を計測することができ
る。
In the above equation (2) for obtaining the flow velocity v, the sound propagation velocity v is included as a constant. However, since the sound propagation velocity v changes with temperature, this value at room temperature is used. If a fixed value is used, an error will occur in the measurement of the flow velocity when the gas temperature is different from room temperature, so it is necessary to separately measure the temperature factor and correct the correction coefficient K. In this regard, in the configuration of FIG. 5, the switching circuit 15e3 has the μCOM15
By switching under the control of a CPU (not shown) in a, the output signal of the transmission circuit 15e1 is supplied to the oscillator 14b, and the signal generated by the oscillator 14a is received.
e2 is supplied. Therefore, in such a state, the arrival time of the ultrasonic wave in the direction opposite to the gas flow can be measured.

【0057】今、順方向での到達時間すなわち超音波信
号伝搬時間をT1、逆方向での到達時間すなわち超音波
信号伝搬時間をT2とすると、 T1=L/(c+v) (4) T2=L/(c−v) (5) となり、(4)、(5)式より v=L/2(1/T1−1/T2) (6) となり、Lが既知であるときには、T1及びT2を計測
することによって流速vを求めることができる。なお、
(4)、(5)式からはc=L/2(1/T1+1/T
2)が求まるので、このcから温度を求めて流量の式、
Q=KSv中の温度に左右される係数Kの値を温度によ
って補正することができ、この温度によって補正した係
数KはRAM15a3内の所定のエリアに格納され、ガ
スの温度が変化すると更新されるようになっている。
Assuming that the arrival time in the forward direction, that is, the ultrasonic signal propagation time is T1, and the arrival time in the reverse direction, that is, the ultrasonic signal propagation time is T2, T1 = L / (c + v) (4) T2 = L / (Cv) (5), and from equations (4) and (5), v = L / 2 (1 / T1-1 / T2) (6). When L is known, T1 and T2 are The flow velocity v can be obtained by measuring. In addition,
From equations (4) and (5), c = L / 2 (1 / T1 + 1 / T
2) is obtained, the temperature is obtained from this c, and the flow rate equation,
The value of the coefficient K depending on the temperature in Q = KSv can be corrected by the temperature, and the coefficient K corrected by this temperature is stored in a predetermined area in the RAM 15a3 and updated when the temperature of the gas changes. It is like this.

【0058】また、上述の実施の形態では、超音波信号
の送受を行う一対の振動子を利用して情報を入力するよ
うにしているが、一対の振動子14a,14b間の超音
波信号伝搬速度によって流速を計測し、この計測した流
速によって流量を求める際の係数Kの温度補正を行うた
め、ガス供給路には連通しているがガス流のない場所に
設けた振動子を利用することもできる。この振動子は、
一定距離離れた壁面に向けてて配置され、壁面に向けて
発射した超音波が壁面で反射して戻ってくる時間を計測
して、RAM15a3に記憶した時間と温度との関係テ
ーブルを参照して温度を決定し、この決定した温度によ
り、RAM15a3内の所定のエリアに予め用意した温
度と係数Kとの関係テーブルを参照して係数Kを決定す
るために利用される。
Further, in the above-mentioned embodiment, the information is inputted by using the pair of transducers for transmitting and receiving the ultrasonic signal, but the ultrasonic signal propagation between the pair of transducers 14a, 14b is performed. To measure the flow velocity based on the velocity and to correct the temperature of the coefficient K when calculating the flow rate based on the measured flow velocity, use a vibrator that is in communication with the gas supply path but has no gas flow. You can also This oscillator is
It is arranged toward a wall surface that is a certain distance away, and the time when the ultrasonic waves emitted toward the wall are reflected and returned by the wall surface is measured, and the relationship table between the time and the temperature stored in the RAM 15a3 is referred to. The temperature is determined, and the determined temperature is used to determine the coefficient K by referring to a relationship table between the temperature and the coefficient K prepared in advance in a predetermined area in the RAM 15a3.

【0059】次に、RAM15a3に記憶しているデー
タを不揮発性記憶手段であるE2 PROM15nに書き
込むと共に、書き込んだデータをE2 PROM15nか
ら読み出してRAM15a3内の元のエリアに書き込む
書込読出手段15a12として働くCPU15a1の動
作について説明するが、その前に電池電圧検出回路15
mの具体的な例を示す図6の構成図、及び電池の装着か
ら電池電圧低下までの間に変化する電源電圧の様子を示
す図7のグラフを参照して説明する。
Next, the writing and reading means 15a12 which writes the data stored in the RAM 15a3 to the E 2 PROM 15n, which is a non-volatile storage means, reads the written data from the E 2 PROM 15n and writes it in the original area in the RAM 15a3. The operation of the CPU 15a1 that functions as a battery voltage detection circuit 15 will be described before that.
A description will be given with reference to the configuration diagram of FIG. 6 showing a specific example of m and the graph of FIG. 7 showing the state of the power supply voltage changing from the battery mounting to the battery voltage reduction.

【0060】電池電圧検出回路15mは電池15iの電
圧を監視し、電池15iの電圧が、これを電源として動
作する超音波式流速センサ14、μCOM15a、イン
タフェース回路15d及び15g、センサ回路15eな
どの手段の動作に支障のない一定値以上の値であるが、
予め定めた一定値Vth1(図7)以下に低下したことを
検出する電池電圧低下検出回路15m1と、電池の電圧
が動作に支障をきたす程度に一度低下した後、予め定め
た一定値Vth2(図7)以上に上昇して電池を電源とす
る手段の動作に必要な電圧に復帰したことを検出する電
池電圧上昇検出回路15m2とを有し、電池電圧低下検
出手段15m1及び電池電圧上昇検出回路15m2の出
力は共にμCOM15aの入力ポートに入力されるよう
になっている。特に、電池電圧上昇検出回路15m2の
出力はμCOM15a内のCPU15a1のリセット入
力ポートRに印加されるようになっている。なお、電池
電圧上昇検出回路15m2は出荷に当たって電池15i
をガスメータ1に装着したときにもその出力に信号を発
生し、これをリセット入力ポートRに印加する。
The battery voltage detection circuit 15m monitors the voltage of the battery 15i, and the voltage of the battery 15i is used as a power source to operate the ultrasonic type flow velocity sensor 14, μCOM 15a, interface circuits 15d and 15g, sensor circuit 15e, and the like. Is a certain value or more that does not hinder the operation of
A battery voltage drop detection circuit 15m1 that detects that the voltage drops below a predetermined constant value Vth1 (FIG. 7), and a predetermined constant value Vth2 (Fig. 7) after the battery voltage once decreases to the extent that it hinders operation. 7) A battery voltage rise detection circuit 15m2 for detecting that the voltage rises above and has returned to the voltage necessary for the operation of the means using the battery as a power source, and the battery voltage drop detection means 15m1 and the battery voltage rise detection circuit 15m2 are provided. Are both input to the input port of the μCOM 15a. In particular, the output of the battery voltage rise detection circuit 15m2 is applied to the reset input port R of the CPU 15a1 in the μCOM 15a. The battery voltage increase detection circuit 15m2 is shipped from the battery 15i
Even when the gas meter 1 is attached to the gas meter 1, a signal is generated at the output and is applied to the reset input port R.

【0061】μCOM15a内のCPU15a1は入力
ポートに電池電圧低下検出回路15m1からの信号が入
力されると、一定時間毎にRAM15a3内の所定エリ
アに書き込まれて格納されている設定データ、ガス使用
量に関するデータ、係数に関するデータを読み出し、こ
れらをE2 PROM15n内の予め定められたエリアに
それぞれ書き込むと共に、電池電圧が低下したことを警
報する表示をLCD15hに行わせる。また、この書き
込みの際に、μCOM15aが内蔵する図示しないカレ
ンダ及び時計の発生する日時データを一緒に格納するよ
うになっている。
When the signal from the battery voltage drop detection circuit 15m1 is input to the input port, the CPU 15a1 in the μCOM 15a relates to the set data and the amount of gas used which are written and stored in a predetermined area in the RAM 15a3 at regular intervals. The data and the data relating to the coefficient are read out, written in a predetermined area in the E 2 PROM 15n, respectively, and the LCD 15h is caused to display a warning that the battery voltage has dropped. Further, at the time of this writing, date and time data generated by a calendar and a clock (not shown) incorporated in the μCOM 15a are stored together.

【0062】μCOM15a内のCPU15a1はま
た、リセット入力ポートRに電池電圧上昇検出回路15
m2からの信号が入力されると動作を開始し、まずE2
PROM15n内のデータを読み出し、保存データの有
無をチェックするが、出荷時にはE2 PROM15n内
にデータは存在しない。E2 PROM15n内にデータ
が存在しない場合には、初期化処理を行い、標準的な設
定データ、ガス使用量初期値及び常温での係数Kなどを
RAM15a3内の所定エリアにそれぞれ書き込む。こ
れに対し、E2 PROM15n内にデータが存在する場
合には、初期化処理を行わず、E2 PROM15n内に
存在するデータを読み出し、この読み出したデータを判
別して設定データ、ガス使用量に関するデータ、係数に
関するデータをRAM15a3内の所定エリアにそれぞ
れ書き込んで格納させる。
The CPU 15a1 in the μCOM 15a also has a battery voltage rise detection circuit 15 at the reset input port R.
When the signal from m2 is input, the operation starts, and first, E 2
The data in the PROM 15n is read to check the existence of stored data, but no data is present in the E 2 PROM 15n at the time of shipment. If the data does not exist in the E 2 PROM 15n, the initialization process is performed, and the standard setting data, the initial value of the gas usage amount, the coefficient K at room temperature, and the like are written in predetermined areas in the RAM 15a3. On the other hand, when the data exists in the E 2 PROM 15n, the initialization process is not performed, the data existing in the E 2 PROM 15n is read, and the read data is discriminated to determine the setting data and the gas usage amount. The data and the data related to the coefficient are written and stored in predetermined areas in the RAM 15a3.

【0063】以上概略説明したμCOM15aのCPU
15a1の動作の詳細を、CPU15a1が行う処理を
示す図8及び図9のフローチャートを参照して以下説明
する。CPU15a1はリセット入力ポートRに信号が
入力されることによって動作を開始し、その最初のステ
ップS01においてE2 PROM15n内のデータを読
み出し、続くステップS02において読み出したデータ
のなかに保存データがあるか否かを判定する。ステップ
S02の判定がNOのときには、出荷時であると判断し
て、次のステップS03において標準的な設定データ
を、その後のステップS04においてガス使用量の初期
値に関するデータを、そして続くステップS05におい
て常温時の係数に関するデータをRAM15a3内の所
定のエリアにそれぞれ書き込んでからステップS09に
進む。
CPU of μCOM 15a outlined above
Details of the operation of 15a1 will be described below with reference to the flowcharts of FIGS. 8 and 9 showing the processing performed by the CPU 15a1. The CPU 15a1 starts its operation by inputting a signal to the reset input port R, reads the data in the E 2 PROM 15n in the first step S01, and determines whether or not there is stored data in the data read in the following step S02. To determine. When the determination in step S02 is NO, it is determined that the product is shipped, standard setting data is set in the next step S03, data relating to the initial value of the gas usage amount is set in the subsequent step S04, and in the subsequent step S05. After writing the data relating to the coefficient at room temperature into the predetermined areas in the RAM 15a3, the process proceeds to step S09.

【0064】これに対し、上記ステップS02の判定が
YESで、E2 PROM15n内に保存データがあった
場合にはステップS06に進み、ここで設定データを、
次のステップS07においてガス使用量に関するデータ
を、続くステップS08において係数に関するデータを
それぞれ読み出してRAM15a3内の所定エリアにそ
れぞれ書き込んで格納してからステップS09に進む。
On the other hand, if the determination in step S02 is YES and there is stored data in the E 2 PROM 15n, the process proceeds to step S06, where the setting data is
In the next step S07, the data regarding the amount of gas used is read out, and in the following step S08, the data regarding the coefficient is read out, respectively written and stored in a predetermined area in the RAM 15a3, and then the process proceeds to step S09.

【0065】ステップS09においては、電池電圧が所
定値Vth1以下に低下したことを示す低下フラグFが1
であるか否かを判定する。ステップS09の判定がNO
のとき、すなわち、電池電圧が所定値Vth1以下に低下
したことがないときにはステップS10に進んで、電池
電圧が所定値Vth1以下に低下したか否かを判定する。
ステップS10の判定がNOのとき、すなわち、電池電
圧が所定値Vth1以下に低下していないときには図9の
フローチャートのステップS21に進む。これに対し、
ステップS10の判定がYESのとき、すなわち電池電
圧が所定値Vth1以下に低下しているときにはステップ
S11に進んで電池電圧が所定値以下に低下したことを
警告する低下警告をLCD15hに出力し、次のステッ
プS12において低下フラグFに1を設定してから図9
のフローチャートのステップS21に進む。
In step S09, the drop flag F indicating that the battery voltage has dropped below the predetermined value Vth1 is set to 1
Or not. NO in step S09
When, that is, when the battery voltage has not dropped to the predetermined value Vth1 or less, the routine proceeds to step S10, and it is determined whether or not the battery voltage has dropped to the predetermined value Vth1 or less.
When the determination in step S10 is NO, that is, when the battery voltage has not dropped below the predetermined value Vth1, the process proceeds to step S21 in the flowchart of FIG. In contrast,
When the determination in step S10 is YES, that is, when the battery voltage has dropped to the predetermined value Vth1 or less, the process proceeds to step S11, and a drop warning is output to the LCD 15h to warn that the battery voltage has dropped to the predetermined value or less. After setting the decrease flag F to 1 in step S12 of FIG.
The process proceeds to step S21 of the flowchart.

【0066】上記ステップS09の判定がYESのと
き、すなわち低下フラグFが1であるときにはステップ
S13に進んでタイマがタイムオーバとなっているか否
かを判定する。このステップS13の判定がYESのと
き、例えばタイマカウンタの値が最大値又は最小値であ
るときには、ステップS14に進んでRAM15a3内
の所定エリアにそれぞれ格納されている設定データ、ガ
ス使用量に関するデータ及び係数に関するデータをそれ
ぞれ読み出してE2 PROM15n内の所定エリアにそ
れぞれ書き込んで格納してからステップS15に進んで
例えば1時間の一定時間を計時するタイマをスタートさ
せてから図9のフローチャートのステップS21に進
む。なお、ステップS13の判定がNOのときにはステ
ップSステップS14及びS15を飛ばして図9のフロ
ーチャートのステップS21に進む。タイマは、0から
所定値まで一定時間毎にインクリメント又はデクリメン
トされるRAM15a3内の所定エリアに形成されたタ
イマカウンタの計数値が最大値又は最小値となり、最大
値又は最小値となることでタイムオーバとなるものであ
る。
When the determination in step S09 is YES, that is, when the lowering flag F is 1, the process proceeds to step S13 and it is determined whether or not the timer has timed out. When the determination in step S13 is YES, for example, when the value of the timer counter is the maximum value or the minimum value, the process proceeds to step S14, the setting data stored in the predetermined area in the RAM 15a3, the data regarding the gas usage amount, and The data relating to the coefficient is read out, written in a predetermined area in the E 2 PROM 15n and stored, and then the process proceeds to step S15 to start a timer for measuring a fixed time of, for example, 1 hour, and then to step S21 of the flowchart of FIG. move on. When the determination in step S13 is NO, steps S14 and S15 are skipped and the process proceeds to step S21 in the flowchart of FIG. The timer has a maximum value or a minimum value when the count value of the timer counter formed in a predetermined area in the RAM 15a3, which is incremented or decremented from 0 to a predetermined value at a constant time, becomes the maximum value or the minimum value, and the time is over. It will be.

【0067】ステップS21においては、RAM15a
3の所定エリアに形成されたΔTタイマがタイムオーバ
となったか否かを判定し、この判定がYESになると、
次のステップS22に進んで流量検出処理を行う。
In step S21, the RAM 15a
It is determined whether or not the ΔT timer formed in the predetermined area 3 has timed out, and if this determination is YES,
The process proceeds to the next step S22 to perform the flow rate detection process.

【0068】この流量検出処理では、CPU15a1が
送信回路15e1に超音波を発生させる信号を送信し、
これに先立ち切替回路15e3を切り替えて、振動子1
4a,14bの一方を送信回路15e1からの信号によ
って駆動されて超音波を発生する振動子として働かせ、
他方を一方の振動子が発生する超音波を受信し信号を発
生してこれを受信回路15e2に供給する振動子として
働かせ、これを交互に行わせる。そして、CPU15a
1は、振動子に超音波を発生させる信号の出力から超音
波の受信までの時間を両方向について測り、この時間か
ら流速を計測し、この計測した流速に基づいてガス流量
Qを求める。
In this flow rate detection processing, the CPU 15a1 transmits a signal for generating an ultrasonic wave to the transmission circuit 15e1,
Prior to this, the switching circuit 15e3 is switched to switch the oscillator 1
One of 4a and 14b is driven by a signal from the transmission circuit 15e1 to act as a vibrator that generates ultrasonic waves,
The other receives the ultrasonic wave generated by one of the vibrators, generates a signal, and operates as a vibrator which supplies the signal to the reception circuit 15e2, and this is alternately performed. And the CPU 15a
In No. 1, the time from the output of a signal for generating an ultrasonic wave to a vibrator to the reception of an ultrasonic wave is measured in both directions, the flow velocity is measured from this time, and the gas flow rate Q is obtained based on this measured flow velocity.

【0069】次に、ステップS23に進んでステップS
22において求めたガス流量Qが0以上Q1 未満である
か否かを判定し、このステップS23の判定がNOのと
きにはステップS24に進んでガス流量QがQ1 以上Q
2 未満であるか否かを判定し、このステップS24の判
定がNOのときには順次同様の判定を行い、最終的には
ステップS25に進んでQn-1 以上Qn 未満であるか否
かを判定し、ステップS25の判定もNOのときにはス
テップS26に進んでΔTタイマをスタートさせる。
Next, the process proceeds to step S23 and step S
It is determined whether or not the gas flow rate Q obtained in 22 is 0 or more and less than Q 1 , and if the determination in step S23 is NO, the process proceeds to step S24 and the gas flow rate Q is Q 1 or more and Q or more.
It is determined whether or not it is less than 2 , and when the determination in step S24 is NO, the same determinations are sequentially performed, and finally, in step S25, it is determined whether or not it is Q n-1 or more and less than Q n. If NO in step S25, the process proceeds to step S26 to start the ΔT timer.

【0070】上記ステップS23の判定がYESのとき
にはステップS23aに進んでΔTタイマ時間としてΔ
1 を設定してからステップS26に進んでΔTタイマ
をスタートさせる。また、ステップS24の判定がYE
SのときにはステップS24aに進んでΔTタイマ時間
としてΔT2 を設定してからステップS26に進んでΔ
Tタイマをスタートさせる。更に、ステップS25の判
定がYESのときにはステップS25aに進んでΔTタ
イマ時間としてΔTn を設定してからステップS26に
進んでΔTタイマをスタートさせる。
When the determination in step S23 is YES, the process proceeds to step S23a, where ΔT timer time is Δ
After setting T 1 , the process proceeds to step S26 to start the ΔT timer. Further, the determination in step S24 is YE.
If S, the process proceeds to step S24a, where ΔT 2 is set as the ΔT timer time, and then the process proceeds to step S26, where ΔT
Start the T timer. Further, when the determination in step S25 is YES, the process proceeds to step S25a to set ΔT n as the ΔT timer time, and then proceeds to step S26 to start the ΔT timer.

【0071】上記ステップS23、S23a、S24、
S24a、S25、S25aは、流量の大きさに応じて
流速を計測する周期を短くするためのもので、流量と周
期の関係は図10に示すようになる。
The steps S23, S23a, S24,
S24a, S25, and S25a are for shortening the cycle for measuring the flow velocity according to the magnitude of the flow rate, and the relationship between the flow rate and the cycle is as shown in FIG.

【0072】ステップS26においてΔTタイマをスタ
ートさせた後、ステップS27に進んで上記ステップS
22において検出したガス流量に基づいてガス使用量を
計量するガス計量処理を行う。その後ステップS28に
進んでガスを連続使用したときに遮断弁11を遮断させ
るための使用時間を自動的に設定するための処理を行
う。続いてステップS29に進んで合計流量遮断、増加
流量遮断を行うための流量値を設定するための流量値を
学習によって得て設定するための処理を行う。次にステ
ップS30に進み、上記ステップS28及びステップS
29において設定した使用時間及びガス流量となったと
きに遮断弁11を遮断させる処理を行ってから上記ステ
ップS1に戻る。
After the ΔT timer is started in step S26, the process proceeds to step S27 and the above step S
Gas metering processing for metering the amount of gas used is performed based on the gas flow rate detected at 22. After that, the process proceeds to step S28, and a process for automatically setting a use time for shutting off the shutoff valve 11 when the gas is continuously used is performed. Subsequently, the process proceeds to step S29, and processing for obtaining and setting the flow rate value for setting the flow rate value for performing the total flow rate cutoff and the increase flow rate cutoff is performed. Next, the process proceeds to step S30, and the above steps S28 and S
After performing the process of shutting off the shutoff valve 11 when the usage time and the gas flow rate set in 29 are reached, the process returns to step S1.

【0073】上述したように、記憶したデータを電池1
5iをバックアップ電源として保持するRAM15a3
がガス使用量に関するデータを書き込み読み出し自在に
記憶し、バックアップ電源なしに記憶データを保持する
2 PROM15nがデータを読み出し書き込み自在に
記憶し、CPU15a1がRAM15a3に記憶してい
るデータをに書き込むと共に、書き込んだデータをE2
PROM15nから読み出してRAM15a3に書き込
むようになっているので、バックアップ電源としての電
池15iがなくなってRAM15a3に記憶されていた
ガス使用量に関するデータが消失しても、電池15iを
電源として動作している間にCPU15a1によって書
き込まれたE2 PROM15n内のガス使用量に関する
データが保持され続け、またこの保持されたガス使用量
に関するデータがCPU15a1によって読み出されて
再びRAM15a3に書き込まれ、ガス計量動作に支障
をきたすことがない。
As described above, the stored data is stored in the battery 1
RAM 15a3 holding 5i as a backup power source
Stores the data related to the amount of gas used for writing and reading, and the E 2 PROM 15n that holds the stored data without a backup power source stores the data for reading and writing, and the CPU 15a1 writes the data stored in the RAM 15a3 to The written data is E 2
Since the data is read from the PROM 15n and written in the RAM 15a3, even if the battery 15i as a backup power source is lost and the data regarding the gas usage amount stored in the RAM 15a3 is lost, the battery 15i is operated as a power source. The data on the gas usage amount in the E 2 PROM 15n written by the CPU 15a1 is continuously held, and the held data on the gas usage amount is read out by the CPU 15a1 and written to the RAM 15a3 again, which disturbs the gas metering operation. It will never come.

【0074】CPU15a1がRAM15a3に記憶し
ているデータと一緒に、カレンダ時計の発生する日時デ
ータに基づいて、書き込んだ日時に関するデータをE2
PROM15nに書き込むので、この日時に関するデー
タを参照することによって、E2 PROM15n内に保
持されているガス使用量に関するデータが何時のもので
あるかを知ることができ、ガス計量動作が停止する直前
までのガス使用料の精算に役立てることができる。
Based on the date and time data generated by the calendar clock, the CPU 15a1 stores the data regarding the written date and time E 2 together with the data stored in the RAM 15a3.
Since it is written in the PROM 15n, by referring to the data regarding this date and time, it is possible to know what time the data regarding the gas usage amount held in the E 2 PROM 15n is, until just before the gas metering operation is stopped. It can be used to settle gas usage fees.

【0075】RAM15a3には、各種の機能を実行す
るCPU15a1の機能を設定する設定データが書き込
み読み出し自在に記憶されていて、ガス使用量に関する
データとともにCPU15a1によってE2 PROM1
5nに書き込まれるようになるので、バックアップ電源
である電池15iがなくなっても、設定データが失われ
ることがなく、ガス供給路を通じて供給するガスを消費
する燃焼器又はガスを使用する形態に応じて設定データ
を設定し直すことが必要ない。
The RAM 15a3 stores, in a freely writable and writable manner, setting data for setting the functions of the CPU 15a1 for executing various functions, and the CPU 15a1 stores the E 2 PROM1 together with the data regarding the gas usage amount.
Since the data is written in 5n, the setting data is not lost even if the battery 15i which is the backup power supply is used up, and the combustor that consumes the gas supplied through the gas supply path or the mode of using the gas is used. There is no need to reset the setting data.

【0076】RAM15a3には、CPU15a1によ
って計測した流速に基づいてガス流量を求め、この求め
たガス流量を積算してガス使用量を計量するための係数
に関するデータが書き込み読み出し自在に記憶されてい
て、ガス使用量に関するデータとともにCPU15a1
によってE2 PROM15nに書き込まれるようになる
ので、バックアップ電源である電池15iがなくなって
も、係数に関するデータが失われることがなく、一対の
振動子14a,14b間の超音波信号伝搬時間を計測
し、この計測した超音波信号伝搬時間に基づいてガス供
給路に流れるガス流の流速を計測し、この流速計測によ
ってガス流量を求め、これを積算してガス使用量を計量
する機能が損なわれることがなく、比較的精度の高いガ
ス計量を行うことができる。
The RAM 15a3 stores a gas flow rate on the basis of the flow velocity measured by the CPU 15a1, and stores the data related to the coefficient for integrating the gas flow rate thus obtained to measure the gas usage amount in a freely writable manner. CPU15a1 with data on gas usage
Since the data is written in the E 2 PROM 15n, the data concerning the coefficient is not lost even if the battery 15i which is the backup power supply disappears, and the ultrasonic signal propagation time between the pair of transducers 14a and 14b is measured. , The function of measuring the flow velocity of the gas flow flowing in the gas supply path based on the measured ultrasonic signal propagation time, obtaining the gas flow rate by this flow velocity measurement, and integrating this to measure the gas usage amount is impaired. Therefore, it is possible to measure gas with relatively high accuracy.

【0077】電池電圧検出回路15mが電池15iの電
圧を監視し、電池15iの電圧がこれを電源とする各部
の動作に支障はないが、予め定めた一定値以下に低下し
たことを検出するようになっており、またCPU15a
1が電池電圧検出回路による電圧低下検出以後、一定時
間毎にRAM15a3に記憶しているデータをE2 PR
OM15nに書き込むようになっているので、E2 PR
OM15nには電池電圧が各部を動作させることができ
なくなる直前まで、又は、電池15iを交換する直前ま
でのデータが保持され、ガス使用料の精算に役立てるこ
とができる。
The battery voltage detection circuit 15m monitors the voltage of the battery 15i and detects that the voltage of the battery 15i has dropped to a predetermined value or less, although it does not hinder the operation of each unit using the battery 15i as a power source. And CPU15a
1 the voltage drop detection after by the battery voltage detecting circuit, the data stored in RAM15a3 every predetermined time E 2 PR
Since it is designed to write to OM15n, E 2 PR
The OM 15n holds data until just before the battery voltage becomes unable to operate each unit or just before the battery 15i is replaced, and can be used for settlement of the gas usage fee.

【0078】電池電圧検出回路15mが電池15iの電
圧を監視し、電池15iの電圧がこれを電源とする各部
の動作に必要な電圧に復帰したことを検出するようにな
っており、またCPU15a1が電池電圧検出回路15
mによる電圧復帰検出時に、書き込んだデータをE2
ROM15nから読み出してRAM15a3に書き込む
ようになっているので、電池15iを交換して電源が復
旧して各部が動作を開始すると、CPU15a1により
2 PROM15nから読み出しRAM15a3に書き
込んだ最新のデータに基づいて動作を再開することがで
き、面倒な作業を行うことない。
The battery voltage detection circuit 15m monitors the voltage of the battery 15i and detects that the voltage of the battery 15i has returned to a voltage necessary for the operation of each unit using the battery 15i as a power source. Battery voltage detection circuit 15
When the voltage recovery by m is detected, the written data is changed to E 2 P
Since it is designed to read from the ROM 15n and write to the RAM 15a3, when the battery 15i is replaced and the power source is restored and each unit starts operating, the CPU 15a1 operates based on the latest data read from the E 2 PROM 15n and written to the RAM 15a3. Can be restarted without having to do troublesome work.

【0079】なお、上述した実施の形態では、電池電圧
検出回路15mが有する電池電圧上昇検出回路15m2
による電圧上昇の検出によってCPU15a1のリセッ
ト動作を行わせるようになっているが、暴走によって停
止した場合には電池交換は行われないので、この電池電
圧上昇検出回路15m2による電圧上昇の検出によって
CPU15a1のリセット動作を行わせることができな
い。このような場合には、端子台15fの通信用端子に
接続されているNCU26又はこのNCU26に代えて
接続した設定器からの信号を外部から入力することによ
って、リセット動作を開始させることができる。
In the above-described embodiment, the battery voltage rise detection circuit 15m2 included in the battery voltage detection circuit 15m.
Although the reset operation of the CPU 15a1 is performed by the detection of the voltage increase by, the battery replacement is not performed when the CPU 15a1 is stopped by the runaway. Therefore, the detection of the voltage increase by the battery voltage increase detection circuit 15m2 detects the CPU 15a1. The reset operation cannot be performed. In such a case, the reset operation can be started by externally inputting a signal from the NCU 26 connected to the communication terminal of the terminal block 15f or a setting device connected instead of the NCU 26.

【0080】具体的には、図11に示すように、例えば
微分回路によって形成される通信開始検出回路15p1
が端子台15fの通信端子に接続されている。通信開始
検出回路15p1は、常時は、その出力がLレベルにな
っているが、通信の開始によってLからHレベルに立ち
上がる通信ラインの電圧の変化に応じて正のスパイク状
のパルスを発生する。通信開始検出回路15p1の出力
は、インバータ15p2によって反転された上でOR回
路15p3を介してCPU15a1のリセット入力ポー
トに入力されている。また、CPU15a1のクロック
出力ckにはウオッチドックタイマ回路15p4が接続
されている。ウオッチドックタイマ回路15p4はその
入力にクロックパルスが一定周期で入力されていると
き、その出力がHレベルに保持されるが、クロックパル
スの入力がなくなると、その出力がHからLレベルに立
ち下がるように働く。
Specifically, as shown in FIG. 11, the communication start detecting circuit 15p1 formed by, for example, a differentiating circuit.
Is connected to the communication terminal of the terminal block 15f. The output of the communication start detection circuit 15p1 is normally at the L level, but generates a positive spike-like pulse in response to a change in the voltage of the communication line rising from the L level to the H level due to the start of communication. The output of the communication start detection circuit 15p1 is inverted by the inverter 15p2 and then input to the reset input port of the CPU 15a1 via the OR circuit 15p3. Further, a watchdog timer circuit 15p4 is connected to the clock output ck of the CPU 15a1. The output of the watchdog timer circuit 15p4 is held at the H level when the clock pulse is input to the input at a constant cycle, but when the clock pulse is not input, the output falls from the H level to the L level. Work like.

【0081】従って、CPU15a1のリセット入力ポ
ートRは、CPU15a1が動作してクロックパルスを
出力している間、又は、通信開始検出回路15p1が通
信の開始を検出したとき以外はHレベルに保たれてい
る。しかし、CPU15a1が暴走してクロックパルス
が発生されなくなると、OR回路15p3の一方の入力
がLレベルになる。よって、このような状態において、
通信開始検出回路15p1が通信の開始を検出してスパ
イク状のパルスを発生し、このパルスがインバータ15
p2によって反転されてOR回路15p3の一方の入力
に加えられると、CPU15a1のリセット入力ポート
RがLからHレベルに立ち上がるようになり、これに応
じてCPU15a1はリセット動作を行う。すなわち、
ウオッチドックタイマ回路15p4は、CPU15a1
の動作が停止していることを検出する手段として働き、
CPU15a1が停止しているときのみ、外部からの通
信によってCPU15a1のリセットを行うことを可能
にしている。
Therefore, the reset input port R of the CPU 15a1 is kept at the H level while the CPU 15a1 is operating and outputting a clock pulse, or except when the communication start detecting circuit 15p1 detects the start of communication. There is. However, when the CPU 15a1 runs out of control and no clock pulse is generated, one input of the OR circuit 15p3 becomes L level. Therefore, in such a state,
The communication start detection circuit 15p1 detects the start of communication and generates a spike-shaped pulse.
When inverted by p2 and applied to one input of the OR circuit 15p3, the reset input port R of the CPU 15a1 starts to rise from L level to H level, and accordingly the CPU 15a1 performs the reset operation. That is,
The watchdog timer circuit 15p4 includes the CPU 15a1.
Acts as a means to detect that the operation of
Only when the CPU 15a1 is stopped, the CPU 15a1 can be reset by external communication.

【0082】また、インバータ15p2によって反転さ
れたパルスはウオッチドックタイマ回路15p4にも印
加され、これをリセットさせるためにも使用されてい
る。これは、CPU15a1が動作を開始してクロック
パルスを出力するようになると、通常ウオッチドックタ
イマ回路15p4の出力がLからHレベルに立ち上がる
が、ウオッチドックタイマ15p4が暴走しているとき
には、この立ち上がり動作が行われないことがあるから
である。なお、ダイオードDは通信ラインのHからLレ
ベルへの立ち下がりに応じて発生される負のパルスの発
生を抑えるためのものである。
The pulse inverted by the inverter 15p2 is also applied to the watchdog timer circuit 15p4 and is also used for resetting it. This is because when the CPU 15a1 starts to operate and outputs a clock pulse, the output of the watchdog timer circuit 15p4 normally rises from the L level to the H level, but when the watchdog timer 15p4 runs out of control, this rising operation is performed. Is not performed. The diode D is for suppressing the generation of a negative pulse generated in response to the fall of the communication line from H level to L level.

【0083】このリセット動作により、CPU15a1
がE2 PROM15nに記憶しているデータを読み出し
てRAM15a3に書き込むようになっているので、電
池15iを交換した後外部から信号を入力すると、CP
U15a1によりE2 PROM15nから読み出しRA
M15a3に書き込んだ最新のデータに基づいて動作を
再開することができる。
By this reset operation, the CPU 15a1
Reads the data stored in the E 2 PROM 15n and writes it in the RAM 15a3. Therefore, if a signal is input from the outside after replacing the battery 15i, the CP
RA read from E 2 PROM 15n by U15a1
The operation can be restarted based on the latest data written in M15a3.

【0084】すなわち、上述したような動作によって、
CPU15a1のリセット動作が行われるようになって
いるので、電池15iがCPU15a1の動作を停止さ
せる程低下していない状態において、プログラムなどの
暴走によってCPU15a1の動作が停止したときに、
外部から通常の通信が行われたり、或いは、意識的的に
通信が行われると、リセット動作が自動的に行われて停
止していたCPU15a1の動作が再開されるようにな
る。
That is, by the operation as described above,
Since the reset operation of the CPU 15a1 is performed, when the operation of the CPU 15a1 is stopped due to a runaway program or the like in a state where the battery 15i is not low enough to stop the operation of the CPU 15a1,
When normal communication is performed from the outside or conscious communication is performed, the reset operation is automatically performed and the stopped operation of the CPU 15a1 is restarted.

【0085】なお、上述した実施の形態では、電池電圧
低下以後に一定時間毎にRAM15a3に記憶している
データをE2 PROM15nに書き込むようにしている
が、電池電圧の低下以前においても、一定時間毎にRA
M15a3に記憶しているデータをE2 PROM15n
に書き込むようにしてもよい。このようにした場合、電
池電圧を判定することなく、E2 PROM15nには常
時RAM15a3に記憶されている最新のデータが保持
されるので、電池15iが人為的に取り外されて突然電
源供給がなくなっても、このE2 PROM15n内のデ
ータがCPU15a1によって読み出されて再びRAM
15a3に書き込まれて利用可能になり、ガス計量動作
そう他に支障をきたすことがない。
In the above-described embodiment, the data stored in the RAM 15a3 is written to the E 2 PROM 15n at regular intervals after the battery voltage drops, but even before the battery voltage drops, the data is stored for a fixed time. RA for each
The data stored in M15a3 is stored in the E 2 PROM 15n.
You may write in. In this case, since the latest data stored in the RAM 15a3 is always held in the E 2 PROM 15n without determining the battery voltage, the battery 15i is artificially removed and suddenly the power supply is stopped. Also, the data in the E 2 PROM 15n is read by the CPU 15a1 and is again stored in the RAM.
It is written in 15a3 and becomes available, so that it does not interfere with the gas metering operation.

【0086】また、上述した実施の形態では、CPU1
5a1が暴走によって停止したときに、外部から通常の
通信が行われたり、或いは、意識的的に通信が行われる
と、リセット動作が自動的に行われて停止していたCP
U15a1の動作が再開されるようになっているが、こ
れを電池電圧上昇検出に応じてリセット動作を行うもの
に代えて用いるようにしてもよい。このようにした場
合、リセット動作に外部からの通信を必要とするように
なるが、電池電圧上昇検出回路を省略できるようにな
る。すなわち、CPU15a1が例えば電池電圧の低下
が進行することによって動作を停止しているとき、電池
が交換された後、通信の開始が検出されると、新しい電
池を電源としてリセット動作が行われる。
Further, in the above-described embodiment, the CPU 1
When the normal communication is performed from the outside or the communication is intentionally performed when the 5a1 is stopped due to a runaway, the reset operation is automatically performed and stopped.
The operation of U15a1 is restarted, but this may be used instead of the one that performs the reset operation in response to the detection of the battery voltage rise. In this case, the reset operation requires external communication, but the battery voltage rise detection circuit can be omitted. That is, when the CPU 15a1 stops operating due to, for example, a decrease in the battery voltage, when the start of communication is detected after the battery is replaced, the reset operation is performed using the new battery as a power source.

【0087】更にまた、上述した実施の形態では、RA
M15a3からなるバックアップ付き記憶手段に、ガス
使用量に関するデータ、設定データ、係数に関するデー
タを記憶させるようにし、これらのデータを不揮発性記
憶手段に適宜書き込み、書き込んだデータを読み出し再
びバックアップ付き記憶手段に書き込むようにしいる
が、ガス使用量に関するデータ、設定データ、係数に関
するデータを記憶させるようにし、これらのデータをバ
ックアップ付き記憶手段に書き込みことを行わずに、不
揮発性記憶手段に直接書き込み、書き込んだデータを読
み出すようにしてもよい。
Furthermore, in the above-described embodiment, RA
The storage means with backup consisting of M15a3 is made to store data relating to gas usage, setting data, and data relating to coefficients, these data are appropriately written in the non-volatile storage means, and the written data is read out to the storage means with backup again. Although it is written, the data regarding the gas usage amount, the setting data, and the data regarding the coefficient are stored, and these data are directly written and written in the nonvolatile storage means without writing them in the backup storage means. The data may be read.

【0088】[0088]

【発明の効果】以上説明したように請求項1記載の発明
によれば、バックアップ電源としての電池がなくなって
バックアップ付き記憶手段に記憶されていたガス使用量
に関するデータが消失しても、不揮発性記憶手段内のガ
ス使用量に関するデータが保持され続け、またこの保持
されたガス使用量に関するデータが読み出されて再びバ
ックアップ付き記憶手段に書き込まれるので、電池を電
源としてガス流速の測定に基づいてガス使用量を計量す
るものであっても、電池電圧が低下したとき、新しい電
池との交換によって対応できる。また、バックアップ電
源なしに記憶データを保持する不揮発性記憶手段にガス
使用量に関するデータを書き込むと共に、書き込んだデ
ータを読み出しているので、電池を電源として動作し、
ガス流速の測定に基づいてガス使用量を計量するもので
あって、ガス使用量に関するデータを消失することな
く、電圧低下した電池電圧を新しい電池と交換すること
ができる。
As described above, according to the first aspect of the present invention, even if the battery as the backup power source is used up and the data regarding the gas usage amount stored in the backup storage means is lost, the nonvolatile property is maintained. Since the data regarding the gas usage amount in the storage means continues to be held, and the held data regarding the gas usage amount is read out and written in the storage means with backup again, based on the measurement of the gas flow rate using the battery as a power source. Even if the amount of gas used is measured, when the battery voltage drops, it can be dealt with by replacing with a new battery. Also, backup power
A non-volatile storage means that retains stored data without a source
While writing the data about the usage amount,
Since it is reading the data, it operates with the battery as a power source,
It measures the amount of gas used based on the measurement of gas flow velocity.
The data on gas usage is not lost.
And replace the low battery voltage with a new battery.
You can

【0089】また、請求項2記載の発明によれば、バッ
クアップ付き記憶手段に記憶しているデータと、書き込
んだ日時に関するデータとを一緒に不揮発性記憶手段に
書き込むので、この日時に関するデータを参照すること
によって、不揮発性記憶手段内に保持されているガス使
用量に関するデータが何時のものであるかを知ることが
でき、この日時までのガス使用料の請求業務を正常に行
うことができる。
According to the second aspect of the invention, since the data stored in the backup storage means and the data regarding the date and time of writing are written together in the non-volatile storage means, refer to the data regarding this date and time. By doing so, it is possible to know what time the data regarding the gas usage amount held in the non-volatile storage means is, and it is possible to normally perform the task of billing the gas usage fee up to this date and time.

【0090】更に、請求項3記載の発明によれば、バッ
クアップ電源である電池がなくなっても、設定データが
失われることがなく、ガス供給路を通じて供給するガス
を消費する燃焼器又はガスを使用する形態に応じて設定
データを設定し直すことも必要ないので、電池交換して
も面倒な設定データの設定し直しを必要とすること無し
にそのまま再使用できる。
Further, according to the invention of claim 3, even if the battery as the backup power source is used up, the setting data is not lost, and the combustor or gas that consumes the gas supplied through the gas supply path is used. Since it is not necessary to reset the setting data according to the mode, the battery can be reused without changing the setting data even if the battery is replaced.

【0091】請求項4記載の発明によれば、バックアッ
プ電源である電池がなくなっても、係数に関するデータ
が失われることがなく、一対の振動子間の超音波信号伝
搬時間を計測し、該計測した超音波信号伝搬時間に基づ
いてガス供給路に流れるガス流の流速を計測し、この流
速計測によってガス流量を求め、これを積算してガス使
用量を計量する機能が損なわれることがなく、電池交換
の前後においてかわらない精度でガス計量を行うことが
できる。
According to the fourth aspect of the present invention, even if the battery serving as the backup power source is used up, the coefficient data is not lost, and the ultrasonic signal propagation time between the pair of transducers is measured, and the measurement is performed. The flow velocity of the gas flow flowing in the gas supply path is measured based on the ultrasonic signal propagation time, the gas flow rate is obtained by this flow velocity measurement, and the function of integrating this to measure the gas usage amount is not impaired, It is possible to measure gas with the same accuracy before and after battery replacement.

【0092】請求項5記載の発明によれば、不揮発性記
憶手段には電池電圧で動作できなくなる直前まで、又
は、電池を交換する直前までのデータが保持されるの
で、電池交換後行われる動作は電池交換以前とかわるこ
とがない。
According to the fifth aspect of the present invention, since the data is stored in the non-volatile memory until just before the battery cannot operate at the battery voltage or just before the battery is replaced, the operation performed after the battery is replaced. Is the same as before battery replacement.

【0093】請求項6記載の発明によれば、電池を交換
して電源が復旧して動作を開始すると、不揮発性記憶手
段から読み出しバックアップ付き記憶手段に書き込んだ
最新のデータに基づいて動作を再開することができるの
で、面倒な作業に電池交換以前の動作に戻すことができ
る。
According to the invention described in claim 6, when the battery is replaced, the power source is restored and the operation is started, the operation is restarted based on the latest data read from the non-volatile storage means and written in the storage means with backup. Therefore, the operation before the battery replacement can be returned to the troublesome work.

【0094】請求項7記載の発明によれば、暴走など何
らかの理由によって動作が停止したときに外部から信号
を受信することに応じて動作を開始し、書込読出手段に
より不揮発性記憶手段から読み出しバックアップ付き記
憶手段に書き込んだ最新のデータに基づいて動作を再開
することができ、また動作開始時のデータを外部に送信
することもできる。
According to the seventh aspect of the invention, when the operation is stopped due to some reason such as a runaway, the operation is started in response to receiving a signal from the outside, and the writing / reading means reads out from the non-volatile storage means. The operation can be restarted based on the latest data written in the backup storage means, and the data at the time of starting the operation can be transmitted to the outside.

【0095】請求項8記載の発明によれば、暴走など何
らかの理由によって停止した動作を再開させる際に、通
常通信に使用している信号を外部から入力させることに
よって、何ら特別な手段を設けることなく、不揮発性記
憶手段に保持されている最新のデータによって動作を再
開させることができる。
According to the invention described in claim 8, when resuming the operation stopped for some reason such as runaway, a special means is provided by inputting the signal used for normal communication from the outside. Instead, the operation can be restarted by the latest data held in the nonvolatile storage means.

【0096】請求項9記載の発明によれば、不揮発性記
憶手段にはバックアップ付き記憶手段に記憶されている
最新のデータが常時保持されるので、電池取り外しによ
って突然動作が停止することがあっても必要なデータを
常に確保することができる。
According to the ninth aspect of the present invention, since the latest data stored in the backup storage means is always held in the non-volatile storage means, the operation may be suddenly stopped by removing the battery. Can always secure necessary data.

【0097】[0097]

【0098】[0098]

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

【図1】本発明による電子式ガス計量装置の基本構成を
示すブロック図である。
FIG. 1 is a block diagram showing a basic configuration of an electronic gas metering device according to the present invention.

【図2】本発明による電子式ガス計量装置が適用される
ガス供給設備を示す図である。
FIG. 2 is a diagram showing gas supply equipment to which an electronic gas metering device according to the present invention is applied.

【図3】本発明による電子式ガス計量装置の一実施の形
態を示す回路構成図である。
FIG. 3 is a circuit configuration diagram showing an embodiment of an electronic gas metering device according to the present invention.

【図4】メータ制御コードの具体的な構成例を示す図で
ある。
FIG. 4 is a diagram showing a specific configuration example of a meter control code.

【図5】図3において超音波式流速センサの具体的な構
成例を示す図である。
5 is a diagram showing a specific configuration example of an ultrasonic flow velocity sensor in FIG.

【図6】図3における電池電圧検出回路の具体的な構成
例を示す図である。
6 is a diagram showing a specific configuration example of the battery voltage detection circuit in FIG.

【図7】電池電圧の変化する様子を示すグラフである。FIG. 7 is a graph showing how the battery voltage changes.

【図8】図3のμCOM中のCPUが行う処理の一部を
示すフローチャートである。
FIG. 8 is a flowchart showing a part of processing performed by a CPU in μCOM of FIG.

【図9】図3のμCOM中のCPUが行う処理の他の部
分を示すフローチャートである。
9 is a flowchart showing another portion of the processing performed by the CPU in μCOM of FIG.

【図10】流量に応じて流速の計測周期を変える様子を
示す説明図である。
FIG. 10 is an explanatory diagram showing how the flow velocity measurement cycle is changed according to the flow rate.

【図11】CPUをリセット動作させる他の構成例を示
す図である。
FIG. 11 is a diagram illustrating another configuration example for resetting the CPU.

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

14 超音波式流速計測手段(超音波式流
速計センサ) 14a,14b 一対の振動子 15a11 ガス計量表示手段(CPU) 15a111 流速計測手段(CPU,振動子) 15a12 書込読出手段(CPU) 15a13 機能手段(CPU) 15a3 バックアップ付き記憶手段(RA
M) 15f1 通信手段(通信端子) 15i 電池 15m 電池電圧検出手段(電池電圧検出回
路) 15n 不揮発性記憶手段(E2 PROM)
14 Ultrasonic Flow Velocity Measuring Means (Ultrasonic Velocity Sensor) 14a, 14b Pair of Transducers 15a11 Gas Metering Display Means (CPU) 15a111 Flow Velocity Measuring Means (CPU, Vibrators) 15a12 Write / Read Means (CPU) 15a13 Function Means (CPU) 15a3 Storage means with backup (RA
M) 15f1 communication means (communication terminal) 15i battery 15m battery voltage detection means (battery voltage detection circuit) 15n non-volatile storage means (E 2 PROM)

フロントページの続き (56)参考文献 特開 平2−190715(JP,A) 特開 平7−159218(JP,A) 特開 平7−49249(JP,A) 特開 平9−133560(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01F 1/00 - 9/02 Continuation of front page (56) Reference JP-A-2-190715 (JP, A) JP-A-7-159218 (JP, A) JP-A-7-49249 (JP, A) JP-A-9-133560 (JP , A) (58) Fields investigated (Int.Cl. 7 , DB name) G01F 1/00-9/02

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 電池と、 ガス供給路に流れるガス流の流速を計測する流速計測手
段を有し、前記電池を電源として動作して、前記流速計
測手段によって計測した流速に基づいてガス流量を求
め、該求めたガス流量を積算してガス使用量を計量し、
該計量したガス使用量を表示する計量表示手段と、 該計量表示手段によって計量したガス使用量に関するデ
ータを書き込み読み出し自在に記憶し、該記憶したデー
タを前記電池をバックアップ電源として保持するバック
アップ付き記憶手段と、 データを読み出し書き込み自在に記憶しバックアップ電
源なしに記憶データを保持する不揮発性記憶手段と、 前記電池を電源として動作し、前記バックアップ付き記
憶手段に記憶しているデータを前記不揮発性記憶手段に
書き込むと共に、前記書き込んだデータを前記不揮発性
記憶手段から読み出して前記バックアップ付き記憶手段
に書き込む書込読出手段とを備え、 前記書込読出手段は、読み出すべきデータが前記不揮発
性記憶手段に書き込まれていないとき、前記バックアッ
プ付き記憶手段に予め定めたデータを書き込むこ とを特
徴する電子式ガス計量装置。
1. A battery and flow velocity measuring means for measuring the flow velocity of a gas flow flowing through a gas supply path, are operated by using the battery as a power source, and measure the gas flow rate based on the flow velocity measured by the flow velocity measuring means. Obtained, the gas flow rate obtained is integrated to measure the amount of gas used,
A metering display unit for displaying the measured gas usage amount, and a memory with backup for storing the data concerning the gas usage amount measured by the measurement display unit in a writable and readable manner and for holding the stored data as the backup power source. Means, non-volatile storage means for reading and writing data and storing the stored data without a backup power source; and the non-volatile storage means for operating the battery as a power source to store the data stored in the backup storage means. is written to the means, and a write and read means for writing to the backed memory means reads out the written data from said nonvolatile memory means, said writing reading means, data to be read is the non
When the data is not written in the memory, the backup
An electronic gas metering device characterized in that predetermined data is written in a storage means with a built-in battery .
【請求項2】 前記書込読出手段が、前記バックアップ
付き記憶手段に記憶しているデータと一緒に、書き込ん
だ日時に関するデータを前記不揮発性記憶手段に書き込
むことを特徴とする請求項1記載の電子式ガス計量装
置。
2. The writing / reading means writes the data regarding the date and time of writing in the non-volatile storage means together with the data stored in the storage means with backup. Electronic gas meter.
【請求項3】 前記電池を電源として動作し、各種の機
能を実行する機能手段を更に備え、 前記バックアップ付き記憶手段は、前記ガス供給路を通
じて供給するガスを消費する燃焼器又はガスを使用する
形態に応じて前記機能手段の機能を設定する設定データ
を書き込み読み出し自在に記憶することを特徴とする請
求項1又は2のいずれかに記載の電子式ガス計量装置。
3. A functional unit that operates using the battery as a power source and executes various functions, and the storage unit with backup uses a combustor or gas that consumes the gas supplied through the gas supply passage. 3. The electronic gas metering device according to claim 1, wherein setting data for setting the function of the function means is stored in a writable and readable manner according to the form.
【請求項4】 前記流速計測手段が、ガス供給路に流れ
方向に離間して設けられ、前記電池を電源として動作
し、一方から発信された超音波信号を他方にて受信する
一対の振動子間の超音波信号伝搬時間を計測し、該計測
した超音波信号伝搬時間に基づいてガス供給路に流れる
ガス流の流速を計測する超音波式流速計測手段からな
り、 前記バックアップ付き記憶手段は、前記計量表示手段に
おいて前記流速計測手段によって計測した流速に基づい
てガス流量を求め、該求めたガス流量を積算してガス使
用量を計量するための係数に関するデータを更に書き込
み読み出し自在に記憶していることを特徴する請求項1
〜3のいずれかに記載の電子式ガス計量装置。
4. A pair of vibrators, wherein the flow velocity measuring means is provided in a gas supply path so as to be separated from each other in a flow direction, operates by using the battery as a power source, and receives an ultrasonic signal transmitted from one side by the other side. Measuring ultrasonic signal propagation time between, consisting of ultrasonic flow velocity measuring means for measuring the flow velocity of the gas flow flowing in the gas supply path based on the measured ultrasonic signal propagation time, the backup storage means, A gas flow rate is calculated on the basis of the flow rate measured by the flow rate measuring means in the measurement display means, and the obtained gas flow rate is integrated and data relating to a coefficient for measuring the gas usage amount is further stored in a writable and readable manner. Claim 1 characterized in that
An electronic gas metering device according to any one of 3 to 3.
【請求項5】 前記電池の電圧を監視し、前記電池の電
圧が前記電池を電源とする前記手段の動作に支障はない
が、予め定めた一定値以下に低下したことを検出する電
池電圧検出手段を更に備え、 前記書込読出手段は、前記電池電圧検出手段による電圧
低下検出以後、一定時間毎に前記バックアップ付き記憶
手段に記憶しているデータを前記不揮発性記憶手段に書
き込むことを特徴とする請求項1〜4のいずれかに記載
の電子式ガス計量装置。
5. Battery voltage detection for monitoring the voltage of the battery and detecting that the voltage of the battery has dropped to a predetermined value or less, although it does not hinder the operation of the means using the battery as a power source. The writing / reading means further writes the data stored in the backup storage means to the non-volatile storage means at regular time intervals after the voltage drop detection by the battery voltage detection means. The electronic gas metering device according to any one of claims 1 to 4.
【請求項6】 前記電池電圧検出手段が、前記電池の電
圧を監視し、前記電池の電圧が前記電池を電源とする前
記手段の動作に必要な電圧に復帰したことを検出し、 前記書込読出手段が、前記電池電圧検出手段による電圧
復帰検出時に、前記書き込んだデータを前記不揮発性記
憶手段から読み出して前記バックアップ付き記憶手段に
書き込むことを特徴とする請求項5記載の電子式ガス計
量装置。
6. The battery voltage detecting means monitors the voltage of the battery, detects that the voltage of the battery has returned to a voltage necessary for the operation of the means using the battery as a power source, and writes the voltage. The electronic gas metering device according to claim 5, wherein the reading means reads the written data from the non-volatile storage means and writes the backup data into the backup storage means when the battery voltage detection means detects a voltage recovery. .
【請求項7】 前記書込読出手段は、外部から信号を受
信することに応じて、前記不揮発性記憶手段に記憶して
いるデータを読み出して前記バックアップ付き記憶手段
に書き込むことを特徴とする請求項1〜6記載の電子式
ガス計量装置。
7. The writing / reading means reads data stored in the nonvolatile storage means and writes the data in the backup storage means in response to receiving a signal from the outside. Item 1. An electronic gas meter according to any one of items 1 to 6.
【請求項8】 外部との間で信号の送受を行うための通
信手段を更に備え、 前記書込読出手段は、前記通信手段を通じて外部から受
信する信号の立ち上がり又は立ち下がりエッジの検出に
応じて、前記不揮発性記憶手段に記憶しているデータを
読み出して前記バックアップ付き記憶手段に書き込むこ
とを特徴する請求項1〜6記載の電子式ガス計量装置。
8. A communication unit for transmitting / receiving a signal to / from the outside is further provided, and the writing / reading unit is responsive to detection of a rising or falling edge of a signal received from the outside through the communication unit. 7. The electronic gas metering device according to claim 1, wherein the data stored in said non-volatile storage means is read and written into said storage means with backup.
【請求項9】 前記書込読出手段は、一定時間毎に前記
バックアップ付き記憶手段に記憶しているデータを前記
不揮発性記憶手段に書き込むことを特徴する請求項1〜
4のいずれかに記載の電子式ガス計量装置。
9. The read / write means writes the data stored in the backup storage means into the non-volatile storage means at regular time intervals.
The electronic gas metering device according to any one of 4 above.
JP28724497A 1997-10-20 1997-10-20 Electronic gas meter Expired - Fee Related JP3381835B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28724497A JP3381835B2 (en) 1997-10-20 1997-10-20 Electronic gas meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28724497A JP3381835B2 (en) 1997-10-20 1997-10-20 Electronic gas meter

Publications (2)

Publication Number Publication Date
JPH11118578A JPH11118578A (en) 1999-04-30
JP3381835B2 true JP3381835B2 (en) 2003-03-04

Family

ID=17714905

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28724497A Expired - Fee Related JP3381835B2 (en) 1997-10-20 1997-10-20 Electronic gas meter

Country Status (1)

Country Link
JP (1) JP3381835B2 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001065864A (en) * 1999-08-26 2001-03-16 Matsushita Electric Ind Co Ltd Gas safety unit
JP2002063679A (en) * 2000-08-21 2002-02-28 Osaka Gas Co Ltd Electronic meter
JP2002122460A (en) * 2000-10-16 2002-04-26 Tokyo Gas Co Ltd Gas meter
JP3958938B2 (en) * 2001-02-21 2007-08-15 矢崎総業株式会社 Automatic notification device
JP2004093403A (en) * 2002-08-30 2004-03-25 Tokyo Gas Co Ltd Amount measuring equipment of resources used, and its control circuit
JP4140480B2 (en) * 2003-08-06 2008-08-27 松下電器産業株式会社 Gas shut-off device
JP4465585B2 (en) * 2003-08-22 2010-05-19 横河電機株式会社 2-wire transmitter
JP4889233B2 (en) * 2005-04-05 2012-03-07 東京瓦斯株式会社 Ultrasonic flow meter
JP2007256199A (en) * 2006-03-24 2007-10-04 Ricoh Elemex Corp Centralized meter reading device
JP4924874B2 (en) * 2006-08-10 2012-04-25 横河電機株式会社 Transmitter and memory device
JP2008096436A (en) * 2007-10-09 2008-04-24 Tokyo Gas Co Ltd Resources usage measuring device and control circuit thereof
JP6779032B2 (en) * 2016-05-11 2020-11-04 アズビル株式会社 Gas meter
CN110083479B (en) * 2018-01-25 2023-08-01 宁波三星医疗电气股份有限公司 EEPROM data protection method of intelligent electric energy meter

Also Published As

Publication number Publication date
JPH11118578A (en) 1999-04-30

Similar Documents

Publication Publication Date Title
JP3381835B2 (en) Electronic gas meter
EP2407757B1 (en) Maintenance expert system for a coriolis flowmeter
JP3257541B2 (en) Gas meter and security device for gas meter
JP4110908B2 (en) Gas shut-off device
JP5065761B2 (en) Flow measuring device
JP3433447B2 (en) LP gas meter
JP2006118762A (en) Gas cutoff system
JP3374365B2 (en) Gas meter
JP4794831B2 (en) Gas meter
JP5171107B2 (en) Alarm and gas security system
JP3339395B2 (en) Electronic gas metering display
JP5143458B2 (en) Remaining usable time notification device and fluid supply system
JP3374366B2 (en) Gas metering device
JP2010145120A (en) Device for monitoring residual quantity of gas
JPH11108716A (en) Gas amount measuring device
JP2001165743A (en) Gas flow abnormality diagnostic device for electronic gas meter and electronic gas meter thereof
JPH11108729A (en) Gas amount measuring device
JP2005214895A (en) Fluid measuring apparatus and gas meter
JP4949922B2 (en) Gas meter
JP2007033106A (en) Ultrasonic liquid level gage
JP2006017508A (en) Gas meter
JP2001174299A (en) Flow rate meter
JP2008309559A (en) Fluid managing device
JP2003121237A (en) Electronic gasmeter, and recording medium stored with program for preventing erroneous connection of battery
JP2002122458A (en) Gas cut-off device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20021112

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081220

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081220

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091220

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101220

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101220

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111220

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees