JPH0150420B2 - - Google Patents

Info

Publication number
JPH0150420B2
JPH0150420B2 JP56188670A JP18867081A JPH0150420B2 JP H0150420 B2 JPH0150420 B2 JP H0150420B2 JP 56188670 A JP56188670 A JP 56188670A JP 18867081 A JP18867081 A JP 18867081A JP H0150420 B2 JPH0150420 B2 JP H0150420B2
Authority
JP
Japan
Prior art keywords
microcomputer
signal
gas
input
time
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
Application number
JP56188670A
Other languages
Japanese (ja)
Other versions
JPS5888533A (en
Inventor
Hiroshi Fujeda
Tatsuo Saka
Takashi Uno
Tatsuo Fujimoto
Isao Pponma
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.)
Tokyo Gas Co Ltd
Panasonic Holdings Corp
Original Assignee
Tokyo Gas Co Ltd
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 Tokyo Gas Co Ltd, Matsushita Electric Industrial Co Ltd filed Critical Tokyo Gas Co Ltd
Priority to JP18867081A priority Critical patent/JPS5888533A/en
Publication of JPS5888533A publication Critical patent/JPS5888533A/en
Publication of JPH0150420B2 publication Critical patent/JPH0150420B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Regulation And Control Of Combustion (AREA)

Description

【発明の詳細な説明】 本発明は、種々の原因によつて発生し得るガス
爆発を未然に防止するためのガス遮断装置に関す
る。上述した原因は、例えばガス管とガス器具と
を接続するゴムホースの外れ、ゴムホースのひび
割れ等によるガスの異常な流出であり、例えばガ
スの長時間使用より発生する酸欠状態が原因する
生ガスの異常流出であり、さらには地震によつて
生ずるガス管のひび割れ、ガス器具の転倒により
失火後等の生ガスの異常流出である。これらの要
因をガス爆発に至る前にとらえ、ガス流路中に設
けた遮断手段によりガスの流れを遮断することに
より、爆発を未然に防止することができる。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a gas cutoff device for preventing gas explosions that may occur due to various causes. The above-mentioned causes are, for example, abnormal outflow of gas due to disconnection of the rubber hose that connects the gas pipe and gas appliance, cracks in the rubber hose, etc. This is an abnormal outflow of raw gas, and also an abnormal outflow of raw gas after a misfire occurs due to a crack in a gas pipe caused by an earthquake or a gas appliance falling over. Explosions can be prevented by detecting these factors before they lead to a gas explosion and blocking the gas flow using a blocking means provided in the gas flow path.

この種ガス遮断装置としては、第4図に示す構
成のものが考えられる。図で1はガスメータ5に
取付けられガスの流量を検出する流量センサであ
る。このセンサは、例えばガスメータ内のダイア
フラム又はダイアフラムの往復動をメータ指示部
に伝達するリンク機構の一部に設けた磁石と、こ
の磁石の位置を検出するリードスイツチとを組合
せたものがある。ダイアフラムの1往復でリード
スイツチは一回オンオフする。ダイアフラムの1
往復での流量はqと固定されているから、リー
ドスイツチの一度目のオンから次のオンまでの時
間を測定することにより、現在流れているガス流
量の単位時間当りの量を知ることができる。又
は、ガスの流れそのものには直接関係しない外部
の異常を検出するセンサで、例えば地震を感知す
ると付属のスイツチがオンオフする感震器や、特
定の濃度以上の生ガスを感知すると所定の信号を
出力するガスセンサ等がある。3″は、流量セン
サ1及び異常センサ2からの信号を入力とし、予
め定めた所定の処理手続きに従つてこれら信号を
処理する制御部である。例えば、流量センサ1で
検出する流量が、一定値のまま所定時間以上継続
して流れれば、その流量相当の器具が通常の使用
時間よりもはるかに長く使われていることにな
り、このような状態は何がしかの異常を示すもの
として、遮断信号を出力する。また異常センサ2
として感震器を用いる場合、その付属のスイツチ
の所定時間内のオンオフ回数をカウントし、その
計数値が所定値以上なら、やはり遮断信号を出力
する。この処理は感震器に発生する誤動作と地震
波とを区別し、地震波のみに応答するよう施す処
理である。以上述べた処理は、処理手続きの一部
であつて、この他、放置しておけばガス爆発に至
るような異常状態を検出する処理手続きが含まれ
ている。4は、制御部3″から遮断信号が出力さ
れたとき、ガスの流れを遮断する遮断手段であ
る。遮断手段4としては、例えば磁石と電磁コイ
ルとを組合せた手動復帰型ワンシヨツト電磁弁が
ある。5はガスメータで、ガスはGiとしてガス
メータ5に供給され、ガスメータ5通過後Gと
して需要家に供給される。
As this type of gas cutoff device, one having the configuration shown in FIG. 4 can be considered. In the figure, 1 is a flow rate sensor attached to a gas meter 5 to detect the flow rate of gas. This sensor includes, for example, a combination of a magnet provided in a diaphragm in a gas meter or a part of a link mechanism that transmits the reciprocating motion of the diaphragm to a meter indicator, and a reed switch that detects the position of this magnet. One reciprocation of the diaphragm turns the reed switch on and off once. Diaphragm 1
Since the round trip flow rate is fixed as q, by measuring the time from the first turn on of the reed switch to the next turn on, it is possible to know the current flow rate of gas per unit time. . Alternatively, it is a sensor that detects an external abnormality that is not directly related to the gas flow itself, such as a seismic sensor that turns an attached switch on and off when it detects an earthquake, or a seismic sensor that outputs a predetermined signal when it detects raw gas above a certain concentration. There are gas sensors etc. that output. 3'' is a control unit that receives signals from the flow rate sensor 1 and the abnormality sensor 2 and processes these signals according to a predetermined processing procedure.For example, if the flow rate detected by the flow rate sensor 1 is constant If the flow continues at this value for more than a predetermined time, it means that the equipment corresponding to that flow rate has been used for much longer than the normal usage time, and such a condition should be considered as an indication of some kind of abnormality. , outputs a cutoff signal.Also, abnormality sensor 2
When a seismic sensor is used as a seismic sensor, the number of times the attached switch is turned on and off within a predetermined period of time is counted, and if the counted value is greater than or equal to a predetermined value, a cutoff signal is also output. This process distinguishes between seismic waves and malfunctions occurring in the seismic sensor, and is applied to respond only to seismic waves. The processing described above is a part of the processing procedure, which also includes a processing procedure for detecting an abnormal condition that, if left untreated, could lead to a gas explosion. Reference numeral 4 denotes a cutoff means that cuts off the gas flow when a cutoff signal is output from the control unit 3''.The cutoff means 4 includes, for example, a manual return type one-shot solenoid valve that combines a magnet and an electromagnetic coil. 5 is a gas meter, and gas is supplied to the gas meter 5 as Gi, and after passing through the gas meter 5, it is supplied as G to the consumer.

上述したガス遮断装置の制御部を今少し詳しく
第5図を用いて説明する。3Bは流量センサ1か
らの信号と後述するカウンタ3Cとのインタフエ
ース回路で、その典型的なものはチヤタリング除
去回路である。すなわち流量センサ1を上述した
ように、磁石とリードスイツチとの組合せで構成
すると、リードスイツチにはチヤタリングがある
ので、これをそのままカウンタ3Cに入力すると
正確なオンオフを促まえることができないから、
チヤタリングを除去する必要がある。3Cはカウ
ンタで、一定時間t毎のインタフエース回路3B
からの流量パルスをカウントし、その計数値Nを
後述するマイクロコンピユータ3iに出力する。
カウンタ3Cは従つて、一定時間t毎に、マイク
ロコンピユータ3iに計数値Nを出力したのち、
マイクロコンピユータ3iによりセツトされ、再
び計数を始める。3Dは異常センサ2と、マイク
ロコンピユータ3iとのインタフエース回路で、
例えば異常センサ2がマイクロスイツチとボール
を組合せた感震器である場合は、マイクロスイツ
チのチヤタリング除去回路である。3Eは、マイ
クロコンピユータ3iのクロツクパルス発生器
で、マイクロコンピユータ3i内にクロツクゼネ
レータを内蔵する場合は、例えば水晶振動子とそ
の他の受動回路部品で構成される。3iはマイク
ロコンピユータで、カウンタ3C、インタフエー
ス回路3Dからの信号を受けて、予めそのROM
部分に蓄えられた処理手続きに従つて、これらの
信号を処理する。また時間tは、クロツクパルス
発生器3Eからのクロツクパルスを計数し、時間
tをつくりだす。例えば、現在のガス流量QPは、
カウンタ3C計数値Nを時間tで割ることにより
認識し、その流量QPが所定の時間TPを越えたか
否かは、クロツクパルス発生器3Eからのクロツ
クパルスの、流量QPが流れ始めてからの積算値
との比較によつて判定する。もしも所定の時間
TP以上経過したなら、マイクロコンピユータ3
iは、遮断手段4に対して遮断信号を出力する。
また、異常センサ2からの信号が、所定時間T2
以内に所定の回数R回以上オンオフしたか否か
は、オンオフ回路R′を計数するとともに、最初
のオンからの経過時間tRをクロツクパルスの計数
によつて知り、tR<T2でのR′とRとの比較をする
ことによつて判定する。3Gは、制御部3″の電
源たる電池である。商用電源から直流電源を得る
ことは可能ではあるが、安全性、設置性の点から
電池が用いられる。
The control section of the gas cutoff device described above will now be explained in more detail with reference to FIG. 3B is an interface circuit between the signal from the flow rate sensor 1 and a counter 3C, which will be described later, and a typical example thereof is a chattering removal circuit. In other words, when the flow rate sensor 1 is constructed from a combination of a magnet and a reed switch as described above, the reed switch has chattering, and if this is input directly to the counter 3C, accurate on/off cannot be prompted.
Chattering needs to be removed. 3C is a counter, which is an interface circuit 3B for every fixed time t.
The flow rate pulses from the microcomputer 3i are counted and the counted value N is outputted to a microcomputer 3i, which will be described later.
Therefore, the counter 3C outputs the count value N to the microcomputer 3i at fixed time intervals t, and then
It is set by the microcomputer 3i and starts counting again. 3D is an interface circuit between the abnormality sensor 2 and the microcomputer 3i.
For example, if the abnormality sensor 2 is a vibration sensor that combines a microswitch and a ball, it is a microswitch chattering removal circuit. 3E is a clock pulse generator for the microcomputer 3i, and when the clock generator is built in the microcomputer 3i, it is composed of, for example, a crystal oscillator and other passive circuit components. 3i is a microcomputer that receives signals from counter 3C and interface circuit 3D, and stores its ROM in advance.
These signals are processed according to processing procedures stored in the section. Further, the time t is generated by counting the clock pulses from the clock pulse generator 3E. For example, the current gas flow rate Q P is
It is recognized by dividing the count value N of the counter 3C by the time t, and whether or not the flow rate Q P exceeds a predetermined time T P is determined by the integration of the clock pulses from the clock pulse generator 3E since the flow rate Q P starts flowing. Determination is made by comparison with the value. If a certain time
If more than T P has passed, microcomputer 3
i outputs a cutoff signal to the cutoff means 4.
Further, the signal from the abnormality sensor 2 is transmitted for a predetermined time T 2
To determine whether or not the clock has been turned on and off a predetermined number of times R or more within the specified period, count the on-off circuit R' and determine the elapsed time t R from the first turn on by counting the clock pulses . The determination is made by comparing ' and R. 3G is a battery that serves as a power source for the control unit 3''.Although it is possible to obtain DC power from a commercial power source, a battery is used from the standpoint of safety and ease of installation.

このような装置の欠点は、流量パルスや異常セ
ンサ入力が不定期に入力されるため、制御部3″
は常に動作状態になければならず、このため、電
池3Gの消もうが大きいことである。所定の期間
動作を維持するためには電池を大容量化せざるを
得ないか、又は短期間で電池を交換せざるを得な
いかのいずれかである。
The disadvantage of such a device is that flow rate pulses and abnormal sensor inputs are input irregularly, so the control unit 3''
must be in an operating state at all times, and therefore the battery 3G is likely to run out. In order to maintain operation for a predetermined period of time, the capacity of the battery must be increased, or the battery must be replaced after a short period of time.

本発明は、上述した装置の問題を解決するもの
であり、上述の装置と同様の機能を発揮しつつ、
その電池の消もうを著しく軽減したために同一の
電池を使つた場合、その動作継続時間を長くで
き、また電池交換期間を長くできるガス遮断装置
を提供することを目的とする。
The present invention solves the problems of the above-mentioned device, and while exhibiting the same functions as the above-mentioned device,
To provide a gas cutoff device which can lengthen the continuous operation time when the same battery is used and can lengthen the battery replacement period since the discharge of the battery is significantly reduced.

第1図は、本発明の一実施例のブロツク図であ
る。3は本発明に関する制御部である。3Aは、
一定の周波数を発振する発振器で、その出力を、
後述するマイクロコンピユータ3Fのスタンバイ
復帰ポートiRQφに入力する。カウンタ3C出力
はマイクロコンピユータ3Fの入力ポートiφに入
力され、インタフエース回路3Dの出力は、マイ
クロコンピユータ3Fの第2のスタンバイ復帰ポ
ートiRQ1に入力する。3Fは判定部としてのマ
イクロコンピユータで、処理手順、遮断条件等を
格納する記憶部たるROMを内蔵し、スタンバイ
モードを具備する一般に入手可能なこの種マイク
ロコンピユータは、いわゆる正常動作時からソフ
ト的に(すなわちそのRM部分に収納されたプ
ログラムの命令により)スタンバイモードにはい
ることができる。ここでスタンバイモードとは、
マイクロコンピユータ3Fのコンピユータの主要
部分(CPU,RMその他)の動作を停止させ
るモードである。このスタンバイ時には、正常動
作時に比しその電源電流は3分の1から数十分の
1程度に減少させることができる。一度スタンバ
イモードになつた状態を、元の動作状態に戻すに
は、一般にマイクロコンピユータ3Fの特定のポ
ートに外部信号を入力することによつて行なわれ
る。このポートをスタンバイ復帰ポートと呼ぶ。
この例では2個のスタンバイ復帰ポートiRQφ,
1を持つ。
FIG. 1 is a block diagram of one embodiment of the present invention. 3 is a control unit related to the present invention. 3A is
An oscillator that oscillates at a constant frequency, whose output is
It is input to the standby return port iRQφ of the microcomputer 3F, which will be described later. The output of the counter 3C is input to the input port iφ of the microcomputer 3F, and the output of the interface circuit 3D is input to the second standby return port iRQ1 of the microcomputer 3F. 3F is a microcomputer as a judgment unit, which has a built-in ROM which is a storage unit for storing processing procedures, cut-off conditions, etc., and has a standby mode. It is possible to enter standby mode (ie, by instructions of a program stored in its RM portion). What is standby mode here?
This is a mode in which the main parts of the computer (CPU, RM, etc.) of the microcomputer 3F are stopped. During standby, the power supply current can be reduced to about one-third to several tenths of that during normal operation. Once the standby mode has been entered, returning to the original operating state is generally done by inputting an external signal to a specific port of the microcomputer 3F. This port is called the standby return port.
In this example, two standby return ports iRQφ,
Has 1.

以上の構成で、次にその動作を、第2図の動作
説明用タイミングチヤートを使いながら説明す
る。
Next, the operation of the above configuration will be explained using the timing chart for explaining the operation shown in FIG.

発振器3Aの発振周波数は、流量センサ1か
らの信号周波数の最大値fsmaxよりも高く選ば
れ、発振器3Aと流量センサ1の信号とが非同期
であることによつて生ずる流量測定誤差を許容値
以下になるよう設定されている。第2図で、イ
は、発振器3Aの出力、ロはインタフエース回路
3B出力で、流量センサ1の信号がパルス化され
ている。時刻t1で、発振器3Aからの発振パル
スがマイクロコンピユータ3Fに入力される。マ
イクロコンピユータ3Fは第2図ニに示すよう
に、この信号により正常動作モードRUNにはい
り、カウンタ3Cの内容を読む。もしカウンタの
内容が“φ”であれば、ソフト的に時刻t2で、
スタンバイモードSTBにはいる。時刻t3で流
量パルスがカウンタ3Cに入力され、カウンタ3
Cの内容は“1”となる。時刻t4で、発振器3
Aからの発振パルスにより、マイクロコンピユー
タ3Fは再び正常動作モードRUNになり、その
CPUが動作し、カウンタ3Cの内容を調べる。
内容が“1”なので、その内容のソフトタイマ
は、動作をスタートし、発振器3Aからの発振パ
ルスをカウントし始める。もしも発振器3Aの発
振周波数が10Hzで、測定時間tが60secなら、発
振パルスを“600”カウントすればよい。すなわ
ちマイクロコンピユータ3F内部ではソフトタイ
マを初期化し、カウント動作をスタートさせると
いう処理をする。この後t5で再び所要の処理を
終了したのでスタンバイモードSTBに戻る。以
降同様の動作を繰返し、時刻t6で、時刻t4以
降600個目の発振パルスがマイクロコンピユータ
3Fに入力されると、マイクロコンピユータ3F
は、正常動作モードRUNの状態となり、内部の
ソフトタイマが60secとなつたので、カウンタ3
Cの内容“N”を読み、この“N”を流量として
流量“N”に許容される継続時間Tmaxを、その
ROM部分のテーブル領域から導き出し、第2の
ソフトタイマにセツトする。また計測が終了した
ので、マイクロコンピユータ3Fは、カウンタ3
Cをリセツトし、次の計測に備える。以上の処理
を終えると、マイクロコンピユータ3Fは再びス
タンバイモードSTBとなり、次のスタンバイ復
帰信号(発振パルス、またはインタフエース回路
3Dからの信号)を待つ。時刻t7で発振パルス
が入力されると、マイクロコンピユータ3Fは正
常動作モードとなり、第2のソフトタイマをダウ
ンカウントし、その内容が“φ”か否かをチエツ
クし、もしも“φ”であれば、継続時間Tmaxオ
ーバとして遮断信号を出力する。もしも“φ”で
なければカウンタ3Cの内容を読む。もしもその
内容が“φ”なら、何もせずに処理を終了し、
“1”であれば、流量計測用の第1のソフトタイ
マをスタートさせ処理を終了し、スタンバイモー
ドSTBに戻る。もしもスタンバイ中に、第2図
ハに示すように、時刻t8で異常センサ2からの
入力が、インタフエース回路3Dを介して入力さ
れると、マイクロコンピユータ3Fは正常動作モ
ードRUNとなり、信号状態を継続し監視する。
今遮断条件が1sec以内に2回以上のオンオフとい
う条件だとすると、第2図の場合、0.3sec以内に
2回のオンオフがあつたので、マイクロコンピユ
ータ3Fは、遮断信号を出力する。遮断手段4駆
動条件を今連続0.2sec駆動とすると、マイクロコ
ンピユータ3Fは、遮断条件成立を判定後の初め
ての発振パルス入力時点t9から、発振パルスが
2個はいつてくるまで遮断出力を第2図ニのよう
に出力し、この出力後再びスタンバイモード
STBに戻る。今クロツクパルス発生器3Eによ
つて定まるマイクロコンピユータ3Fの一命令実
行時間をtcyとし、発振パルス入力の都度行なう
処理の平均命令数をとすると、平均処理時間tP
はtcy×となる。発振パルスの周期(上述した
例では0.1sec)をTとすると、マイクロコンピユ
ータ3Fの平均消費電流DDは、 DD=IDS(I−D)+IDR・D IDS:マイクロコンピユータ3Fのスタンバ
イ時の電流 IDR:マイクロコンピユータ3Fの正常動作
時の電流 D:tcy×M/―/T 今tcy×<Tなら、D<1となり、一般に IDS<IDR であるから、DD<IDRとなる。一般に得られるマ
イクロコンピユータでは、tcyは数十μsecで、
は、上述した処理内容では、高々数百ステツプ
で、tP=tcy×がTを越えることはない。上述
の説明では、異常センサ2からの入力状態を、例
えば1sec以内に2回以上のオンオフとしたが、さ
らに、オン時間オフ時間が或る所定時間tON、tOFF
以上という制限をつければ、雑音と真の異常信号
の弁別能力を高くできる。もしもtON、tOFF<(発
振パルス周期)であるような場合には、発振器3
Aからの発振パルス周波数よりもはるかに高いク
ロツクパルス発生器3Eからのクロツクパルスの
数をカウントするソフトタイマにより、発振パル
スの周期よりも短かいタイマをつくれるので、こ
れによりオンオフ時間を監視することができる。
The oscillation frequency of the oscillator 3A is selected to be higher than the maximum value fsmax of the signal frequency from the flow rate sensor 1, and the flow rate measurement error caused by the asynchronous signals of the oscillator 3A and the flow rate sensor 1 is kept below the allowable value. It is set to be. In FIG. 2, A is the output of the oscillator 3A, B is the output of the interface circuit 3B, and the signal from the flow rate sensor 1 is pulsed. At time t1, an oscillation pulse from the oscillator 3A is input to the microcomputer 3F. As shown in FIG. 2D, the microcomputer 3F enters the normal operation mode RUN in response to this signal and reads the contents of the counter 3C. If the content of the counter is “φ”, at time t2 in software,
Enters standby mode STB. At time t3, the flow rate pulse is input to counter 3C, and counter 3
The content of C becomes "1". At time t4, oscillator 3
The oscillation pulse from A causes the microcomputer 3F to return to normal operation mode RUN, and then
The CPU operates and checks the contents of counter 3C.
Since the content is "1", the soft timer with that content starts operating and starts counting oscillation pulses from the oscillator 3A. If the oscillation frequency of the oscillator 3A is 10 Hz and the measurement time t is 60 seconds, it is sufficient to count 600 oscillation pulses. That is, inside the microcomputer 3F, processing is performed to initialize a soft timer and start a counting operation. After this, at t5, the required processing is completed again, and the process returns to standby mode STB. Thereafter, the same operation is repeated, and at time t6, when the 600th oscillation pulse after time t4 is input to the microcomputer 3F, the microcomputer 3F
is in the normal operation mode RUN, and the internal soft timer has reached 60 seconds, so the counter 3
Read the content “N” of C, and calculate the allowable duration Tmax for the flow rate “N” with this “N” as the flow rate.
It is derived from the table area of the ROM part and set in the second soft timer. Also, since the measurement has been completed, the microcomputer 3F
Reset C and prepare for the next measurement. After completing the above processing, the microcomputer 3F enters the standby mode STB again and waits for the next standby return signal (oscillation pulse or signal from the interface circuit 3D). When the oscillation pulse is input at time t7, the microcomputer 3F enters the normal operation mode, counts down the second soft timer, checks whether the content is "φ", and if it is "φ". , a cutoff signal is output as the duration time Tmax has exceeded. If it is not "φ", read the contents of the counter 3C. If the content is "φ", end the process without doing anything,
If it is "1", the first soft timer for flow rate measurement is started, the process is ended, and the process returns to standby mode STB. If, during standby, the input from the abnormality sensor 2 is input via the interface circuit 3D at time t8 as shown in FIG. Continue and monitor.
Assuming that the cutoff condition is two or more on/off cycles within 1 sec, in the case of FIG. 2, there are two on/off cycles within 0.3 sec, so the microcomputer 3F outputs a cutoff signal. Assuming that the current driving condition for the cutoff means 4 is continuous driving for 0.2 seconds, the microcomputer 3F changes the cutoff output to the second cutoff output from time t9 when the first oscillation pulse is input after determining that the cutoff condition is satisfied until two oscillation pulses arrive. Outputs as shown in figure 2 and returns to standby mode after this output.
Return to STB. Now, let tcy be the execution time of one instruction of the microcomputer 3F determined by the clock pulse generator 3E, and let tcy be the average number of instructions executed each time an oscillation pulse is input, then the average processing time t P
becomes tcy×. If the period of the oscillation pulse (0.1 sec in the above example) is T, the average current consumption DD of the microcomputer 3F is: DD = I DS (ID) + I DR・DI DS : When the microcomputer 3F is on standby Current I DR : Current during normal operation of the microcomputer 3F D: tcy×M/-/T Now, if tcy×<T, then D<1, and generally I DS < I DR , so DD < I DR . . In commonly available microcomputers, tcy is several tens of microseconds,
With the processing described above, t P =tcy× will never exceed T in several hundred steps at most. In the above explanation, the input state from the abnormality sensor 2 is, for example, turned on and off twice or more within 1 sec, but it is also assumed that the on time and off time are predetermined times t ON and t OFF.
By applying the above restrictions, the ability to discriminate between noise and true abnormal signals can be improved. If t ON , t OFF < (oscillation pulse period), oscillator 3
By using a soft timer that counts the number of clock pulses from the clock pulse generator 3E, which has a much higher frequency than the oscillation pulse frequency from A, it is possible to create a timer that is shorter than the period of the oscillation pulses, so it is possible to monitor the on-off time. .

この実施例では、スタンバイ機能つきのマイク
ロコンピユータのスタンバイ復帰ポートに異常信
号を入力するから、マイクロコンピユータは異常
信号のない状態では、流量センサ出力の発振パル
ス毎の処理だけでよく、常時正常動作のもとに異
常信号の有無を監視する装置に比し、マイクロコ
ンピユータの消費電流を大巾に低減できる。ま
た、異常信号発生とともにマイクロコンピユータ
を正常動作モードに復帰させるので、これ以降そ
の信号の監視を継続でき、常時正常動作の装置と
同一の機能を得ることができる。
In this embodiment, an abnormality signal is input to the standby return port of a microcomputer with a standby function, so when there is no abnormality signal, the microcomputer only needs to process each oscillation pulse of the flow rate sensor output, and can operate normally at all times. Compared to devices that monitor the presence or absence of abnormal signals, the current consumption of the microcomputer can be significantly reduced. Further, since the microcomputer is returned to the normal operation mode upon generation of the abnormal signal, the signal can be continuously monitored from then on, and the same functions as a device normally operating can be obtained.

第3図は、スタンバイ復帰ポートを1個だけ有
するマイクロコンピユータを用いる場合の、本発
明の他の実施例である。マイクロコンピユータ3
F′は、唯一のスタンバイ復帰ポートiRQを有する
他、イブエントカウンタを内蔵する。このカウン
タはスタンバイモードSTBでも動作し、インタ
フエース回路3B出力はこのカウンタの入力ポー
トTciに入力される。発振器3A出力の発振パル
スは、マイクロコンピユータ3F′の入力ポートiφ
に入力されるとともに、3HなるRゲートの一
方に入力される。インタフエース回路3Dの出力
は、マイクロコンピユータ3Fの入力ポートi1
に入力されるとともに、Rゲート3Hの他方に
入力される。Rゲート3Hの出力は、マイクロ
コンピユータ3F′のスタンバイ復帰ポートiRQに
入力される。
FIG. 3 is another embodiment of the present invention in which a microcomputer having only one standby return port is used. Microcomputer 3
F′ has the only standby return port iRQ and also has a built-in event counter. This counter operates even in standby mode STB, and the output of the interface circuit 3B is input to the input port Tci of this counter. The oscillation pulse of the oscillator 3A output is input to the input port iφ of the microcomputer 3F'.
It is also input to one of the R gates 3H. The output of the interface circuit 3D is the input port i1 of the microcomputer 3F.
It is also input to the other R gate 3H. The output of the R gate 3H is input to the standby return port iRQ of the microcomputer 3F'.

以上の構成で、発振器3Aより発振パルスが出
力される度に、Rゲート3Hを介して、マイク
ロコンピユータ3F′のスタンバイ復帰ポートiRQ
に入力されるから、マイクロコンピユータ3F′は
その都度スタンバイモードSTBから正常動作モ
ードRUNに復帰する。また異常センサ2からの
出力はインタフエース回路3Dを介して、Rゲ
ート3Hより、同様にマイクロコンピユータ3
F′に入力されるから、その都度マイクロコンピユ
ータ3F′はスタンバイモードから正常動作モード
に復帰できる。上述したように、発振器3Aから
の信号により復帰した場合と、異常センサ2から
のそれにより復帰した場合とではマイクロコンピ
ユータ3F′内の処理内容が異なる。それゆえ、マ
イクロコンピユータ3F′は、スタンバイ復帰原因
を、入力ポートiφ,i1の信号入力状態を調べる
ことにより、認識する。よつていずれの処理を行
なうべきかをマイクロコンピユータ3F′は判定
し、適切な処理を行なう。その後再びスタンバイ
モードに移り、次の復帰信号を待つことになる。
With the above configuration, each time an oscillation pulse is output from the oscillator 3A, the standby return port iRQ of the microcomputer 3F' is output via the R gate 3H.
, the microcomputer 3F' returns from the standby mode STB to the normal operation mode RUN each time. In addition, the output from the abnormality sensor 2 is sent to the microcomputer 3 via the interface circuit 3D and from the R gate 3H.
Since the signal is input to F', the microcomputer 3F' can return from standby mode to normal operation mode each time. As described above, the processing contents within the microcomputer 3F' are different depending on whether the recovery is caused by a signal from the oscillator 3A or the case where the recovery is caused by a signal from the abnormality sensor 2. Therefore, the microcomputer 3F' recognizes the cause of return to standby by checking the signal input states of the input ports iφ, i1. The microcomputer 3F' therefore determines which process should be performed and performs the appropriate process. After that, it will go back to standby mode and wait for the next return signal.

この実施例では、スタンバイ復帰ポートを1個
しか持たないマイクロコンピユータを用いても、
第1図の例と同様の消費電流の低減ということ
が、簡単な回路(この場合はRゲート3H)を
付加するのみで実現できる。
In this embodiment, even if a microcomputer with only one standby return port is used,
The same reduction in current consumption as in the example of FIG. 1 can be achieved by simply adding a simple circuit (R gate 3H in this case).

以上詳述したように、本発明は、異常センサか
らの異常信号により判定部をスタンバイモードか
ら正常動作モードに復帰させ、その都度判定部は
所定の処理を行ない、その処理終了後ソフト的に
スタンバイモードに移り、次のスタンバイ復帰信
号を待つというものであり、このような構成にす
ることにより、以下の効果が得られる。第1に判
定部の平均消費電流を、常時正常動作モードで動
作させる場合に比し低減できる。それゆえ電源と
しての電池寿命を長くすることができる。第2に
このような構成にも拘らず、常時正常動作モード
と同じ機能を発揮できる。第3に判定部としてス
タンバイモードに於いて、クロツクパルス発生器
3Eの動作を停止しても、スタンバイモードから
正常動作モードへ前記の復帰信号を入力すること
により復帰させることのできるマイクロコンピユ
ータでは、スタンバイモードに於いてクロツクパ
ルス発生器の動作を停止させることにより、スタ
ンバイモードの消費電流をさらに低減できる。第
4に、電池を比較的小型小容量化できるので、装
置全体を軽量小型化できる。
As described in detail above, the present invention allows the determination unit to return from standby mode to normal operation mode in response to an abnormality signal from an abnormality sensor, and each time the determination unit performs a predetermined process, and after the process is completed, the determination unit enters standby mode by software. mode and waits for the next standby return signal. With this configuration, the following effects can be obtained. First, the average current consumption of the determination section can be reduced compared to when it is always operated in the normal operation mode. Therefore, the life of the battery as a power source can be extended. Second, despite this configuration, it is possible to always perform the same functions as in the normal operation mode. Thirdly, as a determination section, even if the operation of the clock pulse generator 3E is stopped in the standby mode, the microcomputer can be returned from the standby mode to the normal operation mode by inputting the above-mentioned return signal. By stopping the operation of the clock pulse generator in this mode, the current consumption in standby mode can be further reduced. Fourth, since the battery can be made relatively smaller and smaller in capacity, the entire device can be made lighter and smaller.

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

第1図は本発明の一実施例のガス遮断装置のブ
ロツク図、第2図は第1図のブロツク図の動作説
明用タイミングチヤート、第3図は本発明の他の
実施例のガス遮断装置のブロツク図、第4図はガ
ス遮断装置のブロツク図、第5図はガス遮断装置
の制御部の一例のブロツク図である。 1……流量センサ、2……異常センサ、3……
制御部、3A……発振器、3F,3F′……スタン
バイモードつき判定部および記憶部の実施例、4
……遮断手段。
Fig. 1 is a block diagram of a gas cutoff device according to one embodiment of the present invention, Fig. 2 is a timing chart for explaining the operation of the block diagram of Fig. 1, and Fig. 3 is a gas cutoff device according to another embodiment of the present invention. 4 is a block diagram of the gas cutoff device, and FIG. 5 is a block diagram of an example of the control section of the gas cutoff device. 1...Flow rate sensor, 2...Abnormality sensor, 3...
Control unit, 3A...Oscillator, 3F, 3F'...Example of determination unit with standby mode and storage unit, 4
...blocking means.

Claims (1)

【特許請求の範囲】[Claims] 1 地震、生ガス等の外部異常を検出する異常セ
ンサと、前記異常センサからの信号を入力とし、
あらかじめ定められた処理手続きに従つてこの入
力信号を処理しガスの遮断の可否を判定し、遮断
判定時に遮断信号を出力する制御部と、制御部か
らの遮断信号に応じてガスを遮断する遮断手段
と、装置電源の電池とを備え、前記制御部は、ス
タンバイモードを備え、外部入力信号によりスタ
ンバイモードから正常動作モードへ復帰できるポ
ートを有する判定部と、前記処理手続きを記憶す
る記憶部を備え、前記異常センサの出力を前記判
定部の前記スタンバイ復帰ポートに入力する構成
とし、前記判定部は、前記異常センサからの信号
を前記記憶部からの処理手続きに従つて処理し遮
断の可否を判定するとともに、前記処理後正常動
作モードよりスタンバイモードに切換るガス遮断
装置。
1 An abnormality sensor that detects external abnormalities such as earthquakes and raw gas, and a signal from the abnormality sensor as input,
A control unit that processes this input signal according to a predetermined processing procedure, determines whether the gas can be shut off, and outputs a shut-off signal when the shut-off is determined, and a shut-off unit that shuts off the gas in response to the shut-off signal from the control unit. and a battery as a power source of the device, the control unit includes a determination unit having a standby mode and a port capable of returning from the standby mode to a normal operation mode in response to an external input signal, and a storage unit that stores the processing procedure. The output of the abnormality sensor is input to the standby return port of the determination unit, and the determination unit processes the signal from the abnormality sensor according to a processing procedure from the storage unit to determine whether or not to shut off. A gas cutoff device that makes a determination and switches from a normal operation mode to a standby mode after the processing.
JP18867081A 1981-11-24 1981-11-24 Gas intercepting device Granted JPS5888533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18867081A JPS5888533A (en) 1981-11-24 1981-11-24 Gas intercepting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18867081A JPS5888533A (en) 1981-11-24 1981-11-24 Gas intercepting device

Publications (2)

Publication Number Publication Date
JPS5888533A JPS5888533A (en) 1983-05-26
JPH0150420B2 true JPH0150420B2 (en) 1989-10-30

Family

ID=16227793

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18867081A Granted JPS5888533A (en) 1981-11-24 1981-11-24 Gas intercepting device

Country Status (1)

Country Link
JP (1) JPS5888533A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03152423A (en) * 1989-11-10 1991-06-28 Fuji Electric Co Ltd Gas meter
JP6540194B2 (en) * 2015-04-28 2019-07-10 株式会社ノーリツ Stove

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5474643A (en) * 1977-11-28 1979-06-14 Nec Corp Information processing system
JPS5645672A (en) * 1979-09-25 1981-04-25 Nippon Gas Giken Kk Preventive device for gas accident

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5474643A (en) * 1977-11-28 1979-06-14 Nec Corp Information processing system
JPS5645672A (en) * 1979-09-25 1981-04-25 Nippon Gas Giken Kk Preventive device for gas accident

Also Published As

Publication number Publication date
JPS5888533A (en) 1983-05-26

Similar Documents

Publication Publication Date Title
JP3758519B2 (en) Water heater
JPH0150420B2 (en)
JPH0150421B2 (en)
JPH0876873A (en) Driving device of microcomputer
JPS5888534A (en) Gas intercepting device
JPH09304139A (en) Measuring apparatus for flow rate
JP5513302B2 (en) Gas flow rate change determination device and gas meter having the same
JP2000074719A (en) Estimation type flowmeter
JPH11108720A (en) Gas meter
JP3762695B2 (en) Microcomputer abnormality detection circuit
JP3433447B2 (en) LP gas meter
JP2003139596A (en) Gas meter control device
JP7370447B2 (en) gas meter
JP2002278657A (en) Power source interrupting device
JP2522195Y2 (en) Gas meter device
JP4248963B2 (en) Timing device
JPS60153548A (en) Abnormality detector for cpu
JPH11132821A (en) Gas meter
JPH0218633A (en) Runaway monitor/restart circuit for microprocessor
JPH0118328B2 (en)
JPH11325995A (en) Flow-rate measuring apparatus
JPS59146353A (en) Detector of trouble of microprocessor
JP2794711B2 (en) Fluid control device
JP4272548B2 (en) Blocking abnormality detection method and gas meter
KR950007067B1 (en) Driving control method for washing machine