JP2003035585A - Gas cutoff device - Google Patents

Gas cutoff device

Info

Publication number
JP2003035585A
JP2003035585A JP2001222903A JP2001222903A JP2003035585A JP 2003035585 A JP2003035585 A JP 2003035585A JP 2001222903 A JP2001222903 A JP 2001222903A JP 2001222903 A JP2001222903 A JP 2001222903A JP 2003035585 A JP2003035585 A JP 2003035585A
Authority
JP
Japan
Prior art keywords
flow rate
internal data
data
data storage
storage unit
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.)
Pending
Application number
JP2001222903A
Other languages
Japanese (ja)
Inventor
Tadanori Shirasawa
忠徳 白澤
Takahisa Otani
卓久 大谷
Yasuo Koba
康雄 木場
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001222903A priority Critical patent/JP2003035585A/en
Publication of JP2003035585A publication Critical patent/JP2003035585A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To increase the reliability of a gas cutoff device by making it function according to its intrinsic functions to send a notice to the outside promptly. SOLUTION: The same data as the data to be stored in an internal data memory part 106 are stored in an internal data nonvolatile memory part 110 in advance. When the data to be stored in the memory part 106 are written, the data are coded using error-correcting codes. When the data stored in the memory part 106 are read, and when there are errors after conducting error detection, using error-correcting codes, from the data which are regularly coded, the data stored in the internal data nonvolatile memory part 110 are reset.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ガスの事故を未然
に防ぐとともに、ガスの消費量を積算する機能を持った
ガス遮断装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a gas shutoff device having a function of preventing a gas accident and integrating a gas consumption amount.

【0002】[0002]

【従来の技術】従来、この種のガス遮断装置にいつい
て、図4で説明する。401はガスメーター、402は
ガスメーター401の通過ガス流量に対応した流量信号
(Sとする)を出力する流量測定手段、403はガス通
路の開閉を行なう遮断弁、404は遮断弁403の開閉
を駆動する弁駆動部、405は外部とのデータの送受信
を行なう外部通信手段、406は外部通信手段405を
介して設定される積算補正用の定数(Kとする)や異常
流量判定用の判定値(Tとする)や外部通信手段405
から送信する通信情報(Iとする)に装置のIDを識別
するために付加される識別情報(IDとする)を記憶す
るとともに後述の異常流量判定部で必要なデータ(T’
とする)や後述の積算部で必要なデータ(K’とする)
を保存する内部データ記憶部(マイクロコンピュータの
RAM)、407は流量測定手段402から出力される
流量信号Sをもとに内部データ記憶部406の異常流流
量判定処理の必要なデータT’を使用し流量値(S’と
する)を算出し内部データ記憶部406に記憶している
異常流量判定用の判定値Tとを比較してガス使用量に異
常があれば遮断信号(Vとする)を出力し弁駆動部40
4を駆動し遮断弁403を動作させガス通路を遮断する
異常流量判定部、408は流量測定手段402から出力
される流量信号Sと内部データ記憶部406に記憶して
いる積算補正用の定数KとからK×Sとして今回の積算
値を算出して内部データ記憶部406の積算処理を行う
ために必要なデータK’に記憶しているこれまでの積算
値(Mとする)に今回の積算値(M’とする)を加算す
る積算部である。外部通信手段405から情報を送出す
るときに、内部データ記憶部406に記憶している装置
IDを付加し、この情報をセンター装置等で受け取った
ときにどのガス遮断装置からの情報であるかを判断して
いる。内部データ記憶部406に記憶している積算補正
用の定数Kや異常流量判定用の判定値Tや装置IDは、
通常初期の1回のみ設定である。ガス遮断装置として
は、電池通電状態で10年間動作している。
2. Description of the Related Art A conventional gas shutoff device of this type will be described with reference to FIG. 401 is a gas meter, 402 is a flow rate measuring means for outputting a flow rate signal (denoted by S) corresponding to the flow rate of gas passing through the gas meter 401, 403 is a shutoff valve for opening and closing the gas passage, and 404 is for driving the shutoff valve 403 to open and close. A valve drive unit, 405 is an external communication unit that transmits and receives data to and from the outside, and 406 is a constant for integration correction (denoted as K) and a determination value (T for abnormal flow rate determination that are set via the external communication unit 405. External communication means 405
The communication information (referred to as I) transmitted from the device stores identification information (referred to as ID) that is added to identify the ID of the device, and data (T ′) necessary for an abnormal flow rate determination unit described later.
Data) and the data (K ') required by the integrating unit described later.
The internal data storage unit (RAM of the microcomputer) for storing the data 407 uses the data T ′ necessary for the abnormal flow rate determination processing of the internal data storage unit 406 based on the flow rate signal S output from the flow rate measuring unit 402. Then, a flow rate value (denoted by S ′) is calculated and compared with a determination value T for determining an abnormal flow rate stored in the internal data storage unit 406, and if there is an abnormality in the gas usage, a shutoff signal (denoted by V) To output the valve drive unit 40
An abnormal flow rate determination unit that drives 4 to operate the shutoff valve 403 to shut off the gas passage, and 408 is a flow rate signal S output from the flow rate measurement unit 402 and a constant K for integration correction stored in the internal data storage unit 406. From this, the integrated value of this time is calculated as K × S, and the integrated value of this time is added to the integrated value (M) that has been stored in the data K ′ necessary for performing the integration processing of the internal data storage unit 406. It is an integrating unit that adds a value (denoted as M ′). When the information is sent from the external communication means 405, the device ID stored in the internal data storage unit 406 is added, and when the information is received by the center device or the like, it is determined from which gas shutoff device the information is. Deciding. The constant K for integration correction, the determination value T for abnormal flow rate determination, and the device ID stored in the internal data storage unit 406 are
Usually, it is set only once in the initial stage. The gas shutoff device has been operating for 10 years with the battery energized.

【0003】[0003]

【発明が解決しようとする課題】しかし、このようなガ
ス遮断装置では、10年間動作している間に内部データ
記憶部406のデータが外来のノイズ等によってビット
が反転した場合や、内部データ記憶部の故障(RAMの
故障)によりビットが反転した場合には、ガス遮断装置
の異常流量判定機能や積算機能および通信機能が本来の
動作をしない可能性がある。
However, in such a gas shutoff device, when the data in the internal data storage unit 406 has a bit inverted due to external noise or the like while operating for 10 years, or when the internal data storage is performed. If the bit is reversed due to a failure of a part (failure of RAM), there is a possibility that the abnormal flow rate determination function, the integration function, and the communication function of the gas shutoff device will not operate as they should.

【0004】たとえば、積算機能については、積算部4
08で流量測定手段402から出力される流量信号Sと
内部データ記憶部406に記憶している積算補正用の定
数KとからK×Sとして今回の積算値を算出して内部デ
ータ記憶部406の積算処理を行うために必要なデータ
K’に記憶しているこれまでの積算値Mに今回の積算値
M’を加算しているが内部データ記憶部406に記憶し
ている積算補正用の定数Kやこれまでの積算値Mのビッ
トが反転した場合には、積算値が使用実態と大きくかけ
離れる可能性がある。これが流量測定手段402から出
力された流量信号Sで積算値がかわったのか、内部デー
タ記憶部406のデータのビットが反転して変わったの
か区別がつかない可能性がある。
For example, regarding the integrating function, the integrating unit 4
At 08, the integrated value of this time is calculated as K × S from the flow rate signal S output from the flow rate measuring unit 402 and the constant K for the integration correction stored in the internal data storage section 406, and the integrated value of the internal data storage section 406 is calculated. A constant for integration correction stored in the internal data storage unit 406, which is obtained by adding the current integration value M ′ to the integration value M stored so far in the data K ′ necessary for performing the integration process. If K or the bit of the accumulated value M so far is inverted, the accumulated value may be far from the actual usage. It may be indistinguishable whether the integrated value is changed by the flow rate signal S output from the flow rate measuring unit 402 or the bit of the data in the internal data storage unit 406 is inverted and changed.

【0005】また、異常流量判定機能については、異常
流量判定部407で流量測定手段402から出力される
流量信号Sをもとに内部データ記憶部406の異常流量
処理用の必要なデータT’(演算エリア)を使用し流量
値S’を算出し内部データ記憶部406に記憶している
異常流量判定用の判定値Tとを比較してガス使用量に異
常があれば遮断信号Vを出力し弁駆動部404を駆動し
遮断弁403を動作させガス通路を遮断するようにして
いるが流量値S’を算出するときに使用する内部データ
記憶部406の異常流量処理用の必要なデータT’のビ
ットが反転した場合や異常流量判定用の判定値Tのビッ
トが反転した場合には、異常流量を正常に判定できなく
なる可能性があり、ガス通路を遮断できない可能があ
る。
Regarding the abnormal flow rate judgment function, the necessary data T '(for the abnormal flow rate processing of the internal data storage section 406 is stored in the abnormal flow rate judgment section 407 based on the flow rate signal S output from the flow rate measuring means 402. (Calculation area) is used to calculate the flow rate value S ′, and it is compared with the judgment value T for judging the abnormal flow rate stored in the internal data storage unit 406. Although the valve drive unit 404 is driven to operate the shutoff valve 403 to shut off the gas passage, necessary data T ′ for abnormal flow rate processing of the internal data storage unit 406 used when calculating the flow rate value S ′. If the bit of (1) is inverted or the bit of the determination value T for determining the abnormal flow rate is inverted, it may not be possible to normally determine the abnormal flow rate, and the gas passage may not be blocked.

【0006】また、外部通信手段405から情報を送出
するときに、内部データ記憶部406に記憶している装
置IDを付加し、この情報をセンター装置等で受け取っ
たときにどのガス遮断装置からの情報であるかを判断し
ているが、この装置IDのビットが反転した場合にはセ
ンター装置等と通信ができない可能性がある。
Further, when the information is sent from the external communication means 405, the device ID stored in the internal data storage unit 406 is added, and when this information is received by the center device or the like, which gas cutoff device is used Although it is determined whether the information is information, if the bit of the device ID is inverted, communication with the center device or the like may not be possible.

【0007】内部データ記憶部406に記憶している積
算補正用の定数Kや異常流量判定用の判定値Tや装置I
Dは、通常初期の1回のみ設定であるために従来から内
部データ記憶部406に複数持ち冗長性を持たせていた
が、それ以外の内部データ(積算処理を行うために必要
なデータK’や異常流量判定処理用に必要なデータT’
等)に対しては冗長性を持たせてはていなかった。
A constant K for integrating correction, a judgment value T for judging an abnormal flow rate, and a device I stored in the internal data storage unit 406.
Since D is normally set only once at the initial stage, it has conventionally been provided with a plurality of internal data storage units 406 to provide redundancy, but other internal data (data K'required for performing integration processing And data required for abnormal flow rate determination processing T '
Etc.) was not provided with redundancy.

【0008】さらに内部データすべてに対してこのよう
に単純に複数の冗長性を持たせると、例えば多数決を取
って誤り訂正を行う場合全てのデータに対して同じデー
タを3つ以上持たせる必要があるが、この場合、内部デ
ータの記憶容量としては本来の機能に必要なデータの3
倍となり、限られたガス遮断装置の内部データの記憶容
量では持たせることができなかった。
If all the internal data are simply provided with a plurality of redundancy in this way, it is necessary to have three or more of the same data for all data when error correction is performed by taking a majority decision, for example. However, in this case, the internal data storage capacity is 3 times the data required for the original function.
It was doubled and could not be provided with the limited internal data storage capacity of the gas shutoff device.

【0009】また、不揮発メモリ等に内部データ記憶部
406に記憶しているデータをすべて保存して内部デー
タ記憶部406と不揮発メモリのデータを比較する方法
もあるが、この場合頻繁に不揮発メモリにアクセスする
必要がある。不揮発メモリへのアクセスは消費電流が通
常の内部データ記憶部(数μA)に対して数+mAとな
り、アクセス回数が増えると装置として電池電源では1
0年間動作できない場合があった。
There is also a method of storing all the data stored in the internal data storage unit 406 in a non-volatile memory and comparing the data in the internal data storage unit 406 with the data in the non-volatile memory. Need access. When accessing the non-volatile memory, the current consumption is several + mA with respect to the normal internal data storage unit (several μA).
There have been cases where I couldn't work for zero years.

【0010】[0010]

【課題を解決するための手段】本ガス遮断装置において
は、内部データ記憶部と不揮発メモリ部に同じデータを
保存しておき、内部データ記憶部に記憶するデータを書
き込む時に誤り訂正符号を使ってデータを符号化し、前
記内部データ記憶部に記憶されたデータの少なくとも一
部について所定のタイミングで符号化されたデータの誤
り訂正符号を使って誤り検出を行い誤りがあれば前記内
部データ不揮発メモリ部から内部データをロードし前記
内部データ記憶部に再設定することにより訂正を行っ
て、誤り検出および訂正を行った場合には、その誤り検
出箇所と訂正内容を外部通信手段から外部に通知する内
部データ誤り訂正検出部を設ける。
In the gas shutoff device of the present invention, the same data is stored in an internal data storage unit and a non-volatile memory unit, and an error correction code is used when writing data to be stored in the internal data storage unit. The internal data non-volatile memory unit encodes data, detects an error in at least a part of the data stored in the internal data storage unit using an error correction code of the encoded data at a predetermined timing, and if there is an error. When the internal data is loaded from the device and the data is corrected by resetting it in the internal data storage unit, and when the error is detected and corrected, the error detection location and the correction content are notified to the outside from the external communication means. A data error correction detector is provided.

【0011】これによりガス遮断装置の電池電源に対し
てほとんど負荷をかけずに、10年間動作している間に
内部データ記憶部406のデータが外来のノイズ等によ
ってビットが反転した場合や、内部データ記憶部の故障
(RAMの故障)によりビットが反転した場合には、不
揮発メモリのデータを内部データ記憶部に再設定するこ
とによりガス遮断装置の異常流量判定機能や積算機能お
よび通信機能が本来の動作をさせることができる。
As a result, when the data in the internal data storage unit 406 has a bit inverted due to external noise or the like while operating for 10 years with almost no load on the battery power source of the gas shutoff device, If the bit is reversed due to a failure of the data storage unit (RAM failure), the data in the non-volatile memory is reset to the internal data storage unit so that the abnormal flow rate determination function, integration function, and communication function of the gas shutoff device are originally intended. Can be operated.

【0012】さらに、外部に通知された内部データの誤
り検出箇所と訂正内容および通知頻度に応じてガス遮断
装置の交換などの迅速な対応をとることができる。
Furthermore, it is possible to take prompt action such as replacement of the gas shutoff device according to the error detection location and correction content of the internal data notified to the outside and the notification frequency.

【0013】[0013]

【発明の実施の形態】本発明の請求項1に記載の発明
は、内部データ記憶部に記憶するデータ(積算処理を行
うために必要なデータK’や積算補正用の定数K、異常
流量判定処理用の必要なデータT’や異常流量判定用の
判定値T、装置IDを含む)と同じデータを内部データ
不揮発メモリ部に記憶しておき、内部データ記憶部に記
憶するデータ(積算処理を行うために必要なデータK’
や積算補正用の定数K、異常流量判定処理用の必要なデ
ータT’や異常流量判定用の判定値T、装置IDを含
む)を書き込む時に誤り訂正符号を使ってデータを符号
化し、前記内部データ記憶部に記憶されたデータの少な
くとも一部について所定のタイミングで符号化されたデ
ータの誤り訂正符号を使って誤り検出を行い誤りがあれ
ば前記内部データ不揮発メモリ部から内部データをロー
ドし前記内部データ記憶部に再設定することにより訂正
を行い誤り検出および訂正を行った場合には、誤り検出
訂正信号を出力し、その誤り検出箇所と訂正内容を前記
外部通信手段から外部に通知する内部データ誤り訂正検
出部を設けて、内部データ記憶部に記憶するデータ(積
算処理を行うために必要なデータK’や積算補正用の定
数K、異常流量判定処理用の必要なデータT’や異常流
量判定用の判定値T、装置IDを含む)のビットが反転
した場合には、内部データ誤り訂正検出部によりどの箇
所で誤りがあったのか、また訂正内容はなにかを外部通
信手段からセンター等に報知できる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The invention according to claim 1 of the present invention relates to data stored in an internal data storage section (data K'necessary for performing integration processing, constant K for integration correction, abnormal flow rate determination). The same data as the necessary data T'for processing, the judgment value T for abnormal flow rate judgment, and the device ID are stored in the internal data nonvolatile memory unit, and the data stored in the internal data storage unit (accumulation processing Data needed to do K '
And a constant K for integrating correction, necessary data T'for abnormal flow rate determination processing, a determination value T for abnormal flow rate determination, and a device ID) are written when data is encoded using an error correction code, At least a part of the data stored in the data storage unit is subjected to error detection using an error correction code of the data encoded at a predetermined timing, and if there is an error, the internal data is loaded from the internal data nonvolatile memory unit and When an error is detected and corrected by performing correction by resetting in the internal data storage unit, an error detection / correction signal is output, and the error detection location and the correction content are notified to the outside from the external communication means. A data error correction detection unit is provided to store data stored in the internal data storage unit (data K ′ necessary for performing integration processing, integration correction constant K, abnormal flow rate determination processing). Required data T ', the judgment value T for abnormal flow rate judgment, and the device ID) are reversed, the internal data error correction detection unit detects the location of the error and the correction content. It is possible to inform the center etc. from external communication means.

【0014】また、内部データ記憶部に記憶するデータ
(積算処理を行うために必要なデータK’や積算補正用
の定数K、異常流量判定処理用の必要なデータT’や異
常流量判定用の判定値T、装置IDを含む)のビットが
判定した場合には、内部データ不揮発メモリにあらかじ
め保存していたビットが反転する前のデータを再度内部
データ記憶部にロードすることにより誤り訂正を行い積
算機能、異常流量判定機能、通信機能を正常に動作させ
ることが可能である。センター側では、誤り訂正が頻繁
に発生する場合には、それぞれの誤り箇所に応じた対応
をとることができる。たとえば誤り箇所が積算機能に関
するデータ(積算処理を行うために必要なデータK’や
積算補正用の定数Kを含む)の誤り訂正が頻繁に発生す
ればお客様への間違った費用請求をストップできる。ま
た、異常流量判定機能に関するデータ(異常流量判定処
理用の必要なデータT’や異常流量判定用の判定値Tを
含む)の誤り訂正が頻繁に発生すればガス遮断装置を即
交換できる。
Further, the data stored in the internal data storage unit (the data K'necessary for performing the integrating process, the constant K for the integrating correction, the data T'necessary for the abnormal flow rate determining process, and the abnormal flow rate determining process). (Including the determination value T and the device ID), the error correction is performed by reloading the data before the bit stored in the internal data nonvolatile memory is inverted into the internal data storage unit again. It is possible to operate the integration function, abnormal flow rate determination function, and communication function normally. On the side of the center, when error correction frequently occurs, it is possible to take measures corresponding to each error location. For example, if the error location frequently causes error correction of the data relating to the integrating function (including the data K ′ necessary for performing the integrating process and the constant K for integrating correction), it is possible to stop erroneous billing to the customer. Further, if the error correction of the data regarding the abnormal flow rate determination function (including the necessary data T ′ for the abnormal flow rate determination process and the determination value T for the abnormal flow rate determination) frequently occurs, the gas shutoff device can be immediately replaced.

【0015】さらに装置IDが頻繁に発生すればセンタ
ー側で本来の装置IDとの違いを検出して、その装置I
Dに変更して再度通信を行うことができる。すなわち、
それぞれの頻度に応じた処置ができることになる。
Further, if the device ID frequently occurs, the center side detects the difference from the original device ID and the device I
It is possible to change to D and perform communication again. That is,
It will be possible to perform treatment according to each frequency.

【0016】本発明の請求項2に記載の発明は、マイコ
ンに請求項1記載のガス遮断装置を実現させるプログラ
ムである。そして、プログラムであるので記録媒体に記
録して配布したり通信回線を用いてプログラムを配信し
たりすることでプログラムの配布やインストール作業、
変更作業が簡単にできる。
The invention according to claim 2 of the present invention is a program for causing a microcomputer to realize the gas shutoff device according to claim 1. Since it is a program, it can be distributed and installed by recording it on a recording medium and distributing it or distributing it using a communication line.
Change work can be done easily.

【0017】[0017]

【実施例】以下、本発明の実施形態について図1から図
3を用いて説明する。
Embodiments of the present invention will be described below with reference to FIGS. 1 to 3.

【0018】(実施例1)図1は本請求項1に記載の発
明の機能ブロック図を示す。第1図において、101は
ガスメーター、102はガスメーター101の通過ガス
流量に対応した流量信号(Sとする)を出力する流量測
定手段、103はガス通路の開閉を行なう遮断弁、10
4は遮断弁103の開閉を駆動する弁駆動部、105は
外部とのデータの送受信を行なう外部通信手段、106
は外部通信手段105を介して設定される積算補正用の
定数(Kとする)や異常流量判定用の判定値(Tとす
る)や外部通信手段105から送信する通信情報に装置
のIDを識別するために付加される識別情報(IDとす
る)を記憶するとともに、後述の異常流量判定部で必要
なデータ(T’とする)や後述の積算部で必要なデータ
(K’とする)を保存する内部データ記憶部(マイクロ
コンピュータのRAM)、110は内部データ記憶部と
同じデータ(積算補正用の定数K、異常流量判定用の判
定値T、識別情報ID、異常流量判定部で必要なデータ
T’、積算部で必要なデータK’)を保存する内部デー
タ不揮発メモリ部(EEPROM)、107は流量測定
手段102から出力される流量信号Sをもとに内部デー
タ記憶部106の異常流流量判定処理の必要なデータT
‘を使用し流量値(S’とする)を算出し内部データ記
憶部106に記憶している異常流量判定用の判定値Tと
を比較してガス使用量に異常があれば遮断信号(Vとす
る)を出力し弁駆動部104を駆動し遮断弁103を動
作させガス通路を遮断する異常流量判定部、108は流
量測定手段102から出力される流量信号Sと内部デー
タ記憶部106に記憶している積算補正用の定数Kとか
らK×Sとして今回の積算値を算出して内部データ記憶
部106の積算処理を行うために必要なデータK’に記
憶しているこれまでの積算値(Mとする)に今回の積算
値(M’とする)を加算する積算部、109は内部デー
タ記憶部106に記憶するデータ(積算処理を行うため
に必要なデータK’や積算補正用の定数K、異常流量判
定処理用の必要なデータT’や異常流量判定用の判定値
T、装置IDを含む)を書き込む時に誤り訂正符号(P
とする)を使ってデータを符号化し、内部データ記憶部
106に記憶されたデータを読み出す時に符号化された
データから誤り訂正符号Pを使って誤り検出を行い誤り
があれば内部データ不揮発メモリ部の保存データを再度
内部データ記憶部106に記憶するとともに、同様に定
期的に前記内部データ記憶部に記憶されたデータを読み
出し、誤り訂正符号Pを使って誤り検出と行い誤りがあ
れば内部データ不揮発メモリ部の保存データを再度内部
データ記憶部106に記憶することにより訂正を行っ
て、誤り検出および訂正を行った場合には、誤り検出訂
正信号(Eとする)を出力し、その誤り検出箇所と訂正
内容を前記外部通信手段から外部に通知する内部データ
誤り訂正検出部である。111は上記装置の電源として
電池である。
(Embodiment 1) FIG. 1 is a functional block diagram of the invention described in claim 1. In FIG. 1, 101 is a gas meter, 102 is a flow rate measuring means for outputting a flow rate signal (denoted by S) corresponding to the flow rate of gas passing through the gas meter 101, 103 is a shutoff valve for opening and closing the gas passage, 10
Reference numeral 4 is a valve drive unit that drives the opening and closing of the shutoff valve 103, 105 is an external communication unit that transmits and receives data to and from the outside, and 106
Identifies the device ID in a constant for integration correction (K) set through the external communication unit 105, a judgment value for abnormal flow rate judgment (T), and communication information transmitted from the external communication unit 105. In addition to storing identification information (identified as ID) to be added, data (identified as T ') required by an abnormal flow rate determination unit described below and data (identified as K') required by an integration unit described below are stored. The internal data storage unit (RAM of the microcomputer) to be stored 110 is the same data as the internal data storage unit (constant K for integration correction, determination value T for abnormal flow rate determination, identification information ID, abnormal flow rate determination unit required). An internal data non-volatile memory unit (EEPROM) for storing data T ′ and data K ′ necessary for the integrating unit, 107 is an abnormal flow in the internal data storage unit 106 based on the flow rate signal S output from the flow rate measuring means 102. Flow Data T that requires quantity determination processing
The flow rate value (denoted as S ') is calculated using', and compared with the determination value T for determining the abnormal flow rate stored in the internal data storage unit 106. If there is an abnormality in the gas usage amount, the cutoff signal (V Is output to drive the valve driving unit 104 to operate the shutoff valve 103 to shut off the gas passage, and 108 is stored in the internal data storage unit 106 and the flow rate signal S output from the flow rate measuring unit 102. The cumulative value K calculated as K × S from the constant K for cumulative correction and the cumulative value stored so far in the data K ′ necessary for performing the cumulative processing in the internal data storage unit 106. An integration unit that adds the current integrated value (M ′) to (assumed to be M), and 109 is data stored in the internal data storage unit 106 (data K ′ necessary for performing the integration process and integration correction). Constant K, necessary data T for abnormal flow rate determination processing ', Or the judgment value T for judging the abnormal flow rate, including the device ID), the error correction code (P
When the data stored in the internal data storage unit 106 is read, error detection is performed using the error correction code P from the encoded data, and if there is an error, the internal data nonvolatile memory unit Stored data in the internal data storage unit 106 is again stored, the data stored in the internal data storage unit is also periodically read out, error detection is performed using the error correction code P, and internal data is detected if there is an error. The data stored in the non-volatile memory unit is again stored in the internal data storage unit 106 to make a correction, and when an error is detected and corrected, an error detection / correction signal (denoted by E) is output and the error detection is performed. It is an internal data error correction detection unit for notifying the location and the correction content from the external communication means to the outside. Reference numeral 111 is a battery as a power source of the above device.

【0019】図2に内部データ記憶部106(RAM)
のアドレス配置図を示す。RAMはあらかじめ積算機能
に関するデータ用(図中205)、異常流量判定機能に
関するデータ用(図中206)、通信機能に関する装置
ID(図中207)としてブロック毎に分けている。誤
り訂正符号として水平垂直パリティ符号の例を示す。内
部データ誤り訂正検出部109はデータを書き込むとき
にそのデータが仮にアドレス0000(図中の201)
であれば内部データ記憶部106のアドレス0000か
らアドレス000Eまでの排他的論理和(XOR)をと
りアドレス000F(図中の202)に水平垂直パリテ
ィ符号として保存する。同時に内部データ記憶部のアド
レス0000からアドレス00E0までのXORをとり
アドレス00F0(図中の203)に水平垂直パリティ
符号(図中の204)として保存する。
FIG. 2 shows an internal data storage unit 106 (RAM).
FIG. The RAM is divided into blocks in advance for data relating to the integrating function (205 in the figure), data relating to the abnormal flow rate determining function (206 in the figure), and device ID relating to the communication function (207 in the figure). An example of a horizontal / vertical parity code is shown as an error correction code. When the internal data error correction detection unit 109 writes data, the data is temporarily stored at address 0000 (201 in the figure).
If so, the exclusive OR (XOR) from the address 0000 to the address 000E of the internal data storage unit 106 is taken and stored in the address 000F (202 in the figure) as a horizontal / vertical parity code. At the same time, the XOR from the address 0000 to the address 00E0 of the internal data storage unit is taken and stored in the address 00F0 (203 in the figure) as a horizontal / vertical parity code (204 in the figure).

【0020】内部データ誤り訂正検出部109はデータ
を読み込むときにそのデータが仮にアドレス0000で
あれば内部データ記憶部106のアドレス0000から
アドレス000EまでのXORをとりその結果(P1と
する)とアドレス000Fの値を照合して合致している
かどうかでビット反転の有無を判断する。同時に内部デ
ータ記憶部のアドレス0000からアドレス00E0ま
でのXORをとりその結果(P2とする)とアドレス0
0F0の値を照合して合致しているかどうかでビット反
転の有無を判断する。P1が内部データ記憶部106の
アドレス000Fの値と合致せず、P2が内部データ記
憶部のアドレス00F0の値と合致せず、誤り箇所と検
出が可能となる。
When the data is read, if the data is read at address 0000, the internal data error correction detection unit 109 takes the XOR from the address 0000 to the address 000E of the internal data storage unit 106 and outputs the result (denoted as P1) and the address. The value of 000F is collated, and it is determined whether or not there is bit inversion depending on whether they match. At the same time, an XOR from the address 0000 to the address 00E0 of the internal data storage is taken and the result (denoted as P2) and the address 0
The value of 0F0 is collated, and the presence or absence of bit inversion is determined depending on whether they match. Since P1 does not match the value of the address 000F of the internal data storage unit 106 and P2 does not match the value of the address 00F0 of the internal data storage unit, an error location can be detected.

【0021】また内部データ誤り訂正検出部109は、
定期的に内部データ記憶部106のすべてのアドレスに
対して、上記データ読み込みと同じ処理を行い誤り検出
と訂正を行う。内部データ誤り訂正検出部109が誤り
検出を行い誤りがあれば内部データ不揮発メモリ部11
0のデータを内部データ記憶部106に記憶することに
より誤り訂正を行った場合には、誤り検出または誤り訂
正を行ったアドレス(誤り検出箇所)とそのアドレスの
データ(訂正内容)を外部通信手段105からセンター
等に報知する。センター側ではあらかじめ積算機能機能
に関するデータのアドレス領域、異常流量判定機能に関
するデータのアドレス領域、装置IDのアドレス領域が
それぞれ決まっているので、それぞれの誤り箇所に応じ
た対応をとることができる。なお、上記例では誤り訂正
符号に水平垂直パリティ符号を用いたが、これ以外にハ
ミング符号やBCH符号をもちいることもできる。
Further, the internal data error correction detection unit 109 is
Periodically, the same processing as the above-mentioned data reading is performed for all addresses in the internal data storage unit 106 to perform error detection and correction. The internal data error correction detection unit 109 detects an error, and if there is an error, the internal data nonvolatile memory unit 11
When error correction is performed by storing 0 data in the internal data storage unit 106, the address (error detection location) at which error detection or error correction and the data (correction content) at that address are transmitted to the external communication means. The center is notified from 105. Since the address area of the data relating to the integrating function, the address area of the data relating to the abnormal flow rate determining function, and the address area of the device ID are respectively determined in advance on the center side, it is possible to take measures corresponding to each error location. Although the horizontal and vertical parity codes are used as the error correction codes in the above example, a Hamming code or BCH code may be used instead.

【0022】上述した制御についてマイクロコンピュー
タのプログラム動作による演算や判定、記憶機能を用い
れば容易に実現できるものである。図3にプログラムフ
ローを示す。
The above-mentioned control can be easily realized by using the calculation, judgment and storage functions by the program operation of the microcomputer. The program flow is shown in FIG.

【0023】まず、処理301で内部データ記憶部10
6への内部データの書込みかどうかを判断し書込みの場
合処理302に移る。書込みでない場合には処理304
に移る。処理302では書込みデータに対する水平垂直
パリティ符号を計算し処理303に移る。処理303で
は書込みデータと計算した水平垂直パリティ符号を内部
データ記憶部106に保存する。 処理304では内部
データの読み出しかまたは定期的なチェックかどうかを
判断し、内部読み出しまたは定期的なチェックであれば
処理305に移る。内部データの読み出しでなくかつ定
期的なチェックでなければ処理を終了する。処理305
で読み出しデータまたはチェックデータの水平垂直パリ
ティ符号を計算し処理306に移る。処理306では内
部データ記憶部106の水平垂直パリティ符号と今回計
算した水平垂直パリティ符号を照合し、合致していれば
処理を終了する。不一致であれば処理307に移る。処
理307では内部データ不揮発メモリ部のデータを再度
ロードし設定データ記憶部106に再度記憶してエラー
訂正を行い、処理308で誤りのあったアドレスとデー
タを外部通信手段105を介して外部に報知して処理を
終了する。
First, in step 301, the internal data storage unit 10
It is judged whether or not the internal data is written in the data No. 6, and if the data is written, the process proceeds to step 302. If it is not written, processing 304
Move on to. In process 302, the horizontal and vertical parity codes for the write data are calculated and the process moves to process 303. In step 303, the write data and the calculated horizontal and vertical parity codes are stored in the internal data storage unit 106. In process 304, it is determined whether the internal data is read or periodically checked. If the internal data is read or regularly checked, the process proceeds to process 305. If it is not the reading of internal data and it is not a periodical check, the process ends. Process 305
Then, the horizontal / vertical parity code of the read data or check data is calculated, and the process proceeds to step 306. In process 306, the horizontal and vertical parity codes in the internal data storage unit 106 are collated with the horizontal and vertical parity codes calculated this time, and if they match, the process ends. If they do not match, the process proceeds to step 307. In process 307, the data in the internal data nonvolatile memory unit is reloaded and stored again in the setting data storage unit 106 to perform error correction, and in process 308, the errored address and data are notified to the outside via the external communication unit 105. Then, the process ends.

【0024】また、上記実施例では異常流量判定と流量
積算の両方を行うよう記載したが、どちらか一方のみを
行うものでこのようなエラー検出を行うものでもよい。
Further, in the above embodiment, it is described that both the abnormal flow rate determination and the flow rate integration are performed, but only one of them may be performed and such error detection may be performed.

【0025】また、上記実施例では誤り訂正のタイミン
グは、内部データ記憶部に記憶されたデータを読み出す
時に誤り検出を行うとともに、定期的に前記内部データ
記憶部に記憶されたデータを読み出し誤り検出を行うと
記載したが、どちらか一方のみを行うものでこのような
エラー検出を行うものでもよい。
Further, in the above embodiment, the error correction timing is such that the error detection is performed when the data stored in the internal data storage unit is read, and the data stored in the internal data storage unit is regularly read and the error detection is performed. However, it is also possible to perform only one of them and to perform such error detection.

【0026】なお、本発明はガスメ―タに関するガス遮
断装置で説明したが、水道メ―タ・電力メ―タに関する
ような積算装置でも同じ課題を有しており本発明を水道
メ―タ・電力メ―タに用いてもよい。加えて、外部通信
手段が存在しないようなメータであってもよい。
Although the present invention has been described with respect to the gas shutoff device for the gas meter, the same problem is also encountered in the integrating device such as for the water meter and the electric power meter. It may be used as a power meter. In addition, the meter may have no external communication means.

【0027】[0027]

【発明の効果】以上の発明から明らかなように、本発明
のガス遮断装置は、ガス遮断装置のデータ記憶部に記憶
しているデータが、外乱ノイズやデータ記憶部の故障に
より書き換わり、ガス遮断装置本来の機能通り動作しな
い場合が発生した場合、ガス遮断装置の電池電源に負荷
をかけずに検出し、不揮発メモリ部のデータをデータ記
憶部に再設定することにより、ガス遮断装置本来の機能
通りに動作させて、さらに、迅速に外部へ報知し、ガス
遮断装置の信頼性を向上することができる。
As is apparent from the above invention, in the gas shutoff device of the present invention, the data stored in the data storage unit of the gas shutoff device is rewritten due to disturbance noise or failure of the data storage unit, When a case where it does not operate according to the original function of the circuit breaker occurs, it is detected without applying a load to the battery power supply of the gas circuit breaker, and the data in the non-volatile memory section is reset to the data storage section. It is possible to improve the reliability of the gas shutoff device by operating according to the function and further promptly notifying the outside.

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

【図1】本発明1の一実施例におけるガス遮断装置の機
能ブロック図
FIG. 1 is a functional block diagram of a gas shutoff device according to an embodiment of the present invention 1.

【図2】本発明1の一実施例におけるガス遮断装置の内
部データ記憶部のアドレス配置図
FIG. 2 is an address layout diagram of an internal data storage unit of the gas shutoff device in one embodiment of the present invention 1.

【図3】本発明1の一実施例におけるガス遮断装置のプ
ログラムフローチャート
FIG. 3 is a program flowchart of a gas shutoff device according to an embodiment of the present invention 1.

【図4】従来のガス遮断装置の機能ブロック図FIG. 4 is a functional block diagram of a conventional gas shutoff device.

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

102 流量測定手段 103 遮断弁 104 弁駆動部 105 外部通信手段 106 内部データ記憶部 107 異常流量判定部 108 流量積算部 109 内部データ誤り訂正検出部 110 内部データ不揮発メモリ部 111 電池電源 102 Flow rate measuring means 103 Shut-off valve 104 valve drive 105 External communication means 106 internal data storage unit 107 Abnormal flow rate determination unit 108 Flow rate integrating section 109 Internal data error correction detector 110 Internal data Non-volatile memory unit 111 battery power

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04Q 9/00 301 H04Q 9/00 301B 311 311H (72)発明者 木場 康雄 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 2F030 CB05 CC13 CD08 CE05 CF05 CF10 2F031 AA03 AB01 AC20 AD03 5J065 AA01 AB00 AC03 AC04 AD02 AE01 AE06 AF02 AH01 AH06 AH15 5K014 AA01 BA02 BA07 BA09 EA01 5K048 AA06 BA36 BA53 DC07 EB08 EB10 FA08 FC01 GB08 GC05─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 7 Identification code FI theme code (reference) H04Q 9/00 301 H04Q 9/00 301B 311 311H (72) Inventor Yasuo Kiba 1006 Kadoma, Kadoma, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. F-term (reference) 2F030 CB05 CC13 CD08 CE05 CF05 CF10 2F031 AA03 AB01 AC20 AD03 5J065 AA01 AB00 AC03 AC04 AD02 AE01 AE06 AF02 AH01 AH06 AH15 5K014 AA01 BA02 BA07 BA09 EA01 BA080853A06 5K0848 A06 5K0848 A06 536. GB08 GC05

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 通過ガス流量に対応した流量を測定して
流量信号を出力する流量測定手段と、ガス通路の開閉を
行う遮断弁と、前記遮断弁の開閉駆動をする弁駆動部
と、外部との通信を行なう外部通信手段と、前記外部通
信手段を介して外部から設定される積算補正用の定数や
異常流量判定用の判定値や前記外部通信手段が外部と通
信をする通信情報に付加する識別情報等を記憶するとと
もに積算処理を行うために必要なデータや異常流量判定
処理用の必要なデータを記憶する内部データ記憶部と、
前記内部データ記憶部の内部データと同じデータを記憶
する内部データ不揮発メモリ部と、前記流量測定手段か
ら出力される流量信号から前記内部データ記憶部の異常
流量判定処理用に必要なデータ領域を使用して算出した
流量値と前記内部データ記憶部の異常流量判定用の判定
値とを比較してガス使用量に異常があれば遮断信号を出
力し前記弁駆動部を駆動し前記遮断弁を動作させガス通
路を遮断する異常流量判定部と、前記流量測定手段から
出力される流量信号に前記内部データ記憶部の積算処理
を行うために必要なデータと積算補正用の定数を加味し
て積算を行なう流量積算部と、前記内部データ記憶部に
記憶するデータを書き込む時に誤り訂正符号を使ってデ
ータを符号化し、前記内部データ記憶部に記憶されたデ
ータの少なくとも一部について所定のタイミングで符号
化されたデータの誤り訂正符号を使って誤り検出を行い
誤りがあれば前記内部データ不揮発メモリ部から内部デ
ータをロードし前記内部データ記憶部に再設定すること
により訂正を行って、誤り検出および訂正を行った場合
には、誤り検出訂正信号を出力してその誤り検出箇所と
訂正内容を前記外部通信手段から外部に通知する内部デ
ータ誤り訂正検出部と、このガス遮断装置を駆動するた
めの電池を備えたガス遮断装置。
1. A flow rate measuring means for measuring a flow rate corresponding to a flow rate of a passing gas and outputting a flow rate signal, a shutoff valve for opening and closing a gas passage, a valve drive section for driving the shutoff valve to open and close, and an external device. An external communication means for communicating with the external communication means, a constant for integration correction set externally via the external communication means, a judgment value for abnormal flow rate judgment, and communication information for the external communication means to communicate with the outside. An internal data storage unit that stores identification information and the like, and also stores necessary data for performing the integration process and the abnormal flow rate determination process,
An internal data non-volatile memory unit that stores the same data as the internal data of the internal data storage unit, and a data area required for abnormal flow rate determination processing of the internal data storage unit from the flow rate signal output from the flow rate measurement unit are used. The calculated flow rate value is compared with the judgment value for abnormal flow rate judgment in the internal data storage section, and if there is an abnormality in the gas usage, a shutoff signal is output to drive the valve drive section to operate the shutoff valve. And an abnormal flow rate determination unit that shuts off the gas passage, and the flow rate signal output from the flow rate measurement unit is added with the data necessary for performing the integration process of the internal data storage unit and the constant for the integration correction to perform the integration. At least one of the data stored in the internal data storage unit and the flow rate integration unit for performing data encoding using an error correction code when writing data to be stored in the internal data storage unit Error is detected by using the error correction code of the data encoded at a predetermined timing, and if there is an error, it is corrected by loading the internal data from the internal data nonvolatile memory unit and resetting it in the internal data storage unit. In the case of performing error detection and correction by performing the error detection and correction, an internal data error correction detection unit that outputs an error detection correction signal and notifies the error detection location and correction contents to the outside from the external communication means, and this gas. A gas shutoff device having a battery for driving the shutoff device.
【請求項2】 マイコンに請求項1記載のガス遮断装置
を実現させるプログラム。
2. A program for causing a microcomputer to realize the gas shutoff device according to claim 1.
JP2001222903A 2001-07-24 2001-07-24 Gas cutoff device Pending JP2003035585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001222903A JP2003035585A (en) 2001-07-24 2001-07-24 Gas cutoff device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001222903A JP2003035585A (en) 2001-07-24 2001-07-24 Gas cutoff device

Publications (1)

Publication Number Publication Date
JP2003035585A true JP2003035585A (en) 2003-02-07

Family

ID=19056316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001222903A Pending JP2003035585A (en) 2001-07-24 2001-07-24 Gas cutoff device

Country Status (1)

Country Link
JP (1) JP2003035585A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006242655A (en) * 2005-03-01 2006-09-14 Yazaki Corp Electronic gas meter

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61125650A (en) * 1984-11-24 1986-06-13 Matsushita Electric Works Ltd Control system
JPS62201322A (en) * 1986-09-26 1987-09-05 Ricoh Co Ltd Electronic integrating measuring instrument
JPH0474241A (en) * 1990-07-17 1992-03-09 Nec Corp Fault processing system
JPH06332805A (en) * 1993-05-18 1994-12-02 Sanyo Electric Co Ltd Electronic equipment
JPH0894464A (en) * 1994-09-27 1996-04-12 Matsushita Electric Ind Co Ltd Pressure monitor
JPH08189853A (en) * 1995-01-10 1996-07-23 Tokyo Gas Co Ltd Gas meter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61125650A (en) * 1984-11-24 1986-06-13 Matsushita Electric Works Ltd Control system
JPS62201322A (en) * 1986-09-26 1987-09-05 Ricoh Co Ltd Electronic integrating measuring instrument
JPH0474241A (en) * 1990-07-17 1992-03-09 Nec Corp Fault processing system
JPH06332805A (en) * 1993-05-18 1994-12-02 Sanyo Electric Co Ltd Electronic equipment
JPH0894464A (en) * 1994-09-27 1996-04-12 Matsushita Electric Ind Co Ltd Pressure monitor
JPH08189853A (en) * 1995-01-10 1996-07-23 Tokyo Gas Co Ltd Gas meter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006242655A (en) * 2005-03-01 2006-09-14 Yazaki Corp Electronic gas meter

Similar Documents

Publication Publication Date Title
US8010873B2 (en) Systems and methods for efficient uncorrectable error detection in flash memory
US6851015B2 (en) Method of overwriting data in nonvolatile memory and a control apparatus used for the method
TWI505277B (en) System and method of tracking error data within a storage device
US8407559B2 (en) Monitoring memory
CA2350242C (en) Improved memory integrity for meters
KR101557572B1 (en) Memory circuits, method for accessing a memory and method for repairing a memory
US20110107160A1 (en) Time-based techniques for detecting an imminent read failure in a memory array
US9329932B2 (en) Imminent read failure detection based upon unacceptable wear for NVM cells
JP2005056394A (en) Storage device and memory card
US20040153903A1 (en) Method and circuit arrangement for memory error processing
JP2003035585A (en) Gas cutoff device
JP2002365117A (en) Gas-blast circuit breaker
US7232983B2 (en) Circuit arrangement with non-volatile memory module and method for registering light-attacks on the non-volatile memory module
JP2003196165A (en) Nonvolatile memory and data updating method therefor
JP4950214B2 (en) Method for detecting a power outage in a data storage device and method for restoring a data storage device
US6810347B2 (en) Robust power-on meter and method
US7353348B2 (en) Nonvolatile memory and card reader provided with the same
JP3114520B2 (en) Pressure monitoring device
JPH07122087A (en) Eeprom error check system
US20230315318A1 (en) Monotonic counters and counting methods by monotonic counter
JPH0281149A (en) Data storage device
JPH11203892A (en) Semiconductor nonvolatile memory device
SU1157575A1 (en) Storage with self-check
JP2008176826A (en) Storage device
JPH11306800A (en) Flash eeprom and its test method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080115

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080213

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20091119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110830

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111227