JPH06229802A - Gas meter with automatic shut-off function - Google Patents

Gas meter with automatic shut-off function

Info

Publication number
JPH06229802A
JPH06229802A JP1505593A JP1505593A JPH06229802A JP H06229802 A JPH06229802 A JP H06229802A JP 1505593 A JP1505593 A JP 1505593A JP 1505593 A JP1505593 A JP 1505593A JP H06229802 A JPH06229802 A JP H06229802A
Authority
JP
Japan
Prior art keywords
signal
microcomputer
data
input
reset signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1505593A
Other languages
Japanese (ja)
Other versions
JP3061971B2 (en
Inventor
Ikuo Maeda
郁雄 前田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP5015055A priority Critical patent/JP3061971B2/en
Publication of JPH06229802A publication Critical patent/JPH06229802A/en
Application granted granted Critical
Publication of JP3061971B2 publication Critical patent/JP3061971B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measuring Volume Flow (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

PURPOSE:To provide a gas meter with an automatic shut-off function in which, when a malfunction occurs, its cause and a state at the time of occurrence are stored in a memory, and a stored content can be read by an external opera tion. CONSTITUTION:The gas meter with an automatic shut-off function comprises a battery voltage detector 15 for outputting a battery voltage drop signal, an oscillation stop detector 16 for detecting that an oscillation of a clock signal is stopped, an auxiliary clock oscillator 18 for supplying an auxiliary clock signal, and a malfunction storage memory 19 for storing data at the time of occurring a malfunction. The meter further comprises a data reader 20 for reading data of the malfunction memory, a reset signal checking unit 21 for outputting a reset signal, and an initialization deciding unit 22 for deciding execution of an initialization in response to presence/absence of a data read signal.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は異常時にガスを遮断する
ことができる自動遮断機能付ガスメータの改良に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement of a gas meter with an automatic shutoff function capable of shutting off gas when an abnormality occurs.

【0002】[0002]

【従来の技術】従来の自動遮断機能付ガスメータについ
て図8を参照して説明する。メータケーシング801に
は感震器802、圧力センサ803、遮断弁804、遮
断弁復帰装置805、流量センサ806、マイクロコン
ピュータ807、電池808、警報表示装置809、お
よび制御ユニット810が組み込まれている。この様な
構成の自動遮断機能付ガスメータにおいて、制御ユニッ
ト810のマイクロコンピュータ807は感震器80
2、圧力センサ803などからの入力データに異常があ
ると判断すると、遮断弁804を働かせてガスを遮断す
る機能をもっている。マイクロコンピュータ807には
通常、以下のような異常処理プログラムが組み込まれて
いる。 (1)ガス流量の異常を判断してガスを遮断する。 (2)ガス機器の異常な長時間使用を判断してガスを遮
断する。 (3)感震器からの信号によって大きな地震の時にガス
を遮断する。 (4)ガスの供給圧力の異常な低下を検出した時にガス
を遮断する。 (5)ガス漏れ警報器、不完全燃焼警報器などからの外
部信号によってガスを遮断する。 (6)ガス流量を測定する機能を利用して屋内配管から
の漏洩の疑いがある場合に警報を出力する。 これらの異常処理プログラムによって事前に警報を出力
したり、ガスを緊急遮断することにより安全性を確保す
るようになっている。
2. Description of the Related Art A conventional gas meter with an automatic shutoff function will be described with reference to FIG. A seismic sensor 802, a pressure sensor 803, a shutoff valve 804, a shutoff valve return device 805, a flow rate sensor 806, a microcomputer 807, a battery 808, an alarm display device 809, and a control unit 810 are incorporated in the meter casing 801. In the gas meter with an automatic shut-off function having such a configuration, the microcomputer 807 of the control unit 810 is the seismic sensor 80.
2. When it is determined that the input data from the pressure sensor 803 is abnormal, the shutoff valve 804 is activated to shut off the gas. The microcomputer 807 usually incorporates the following abnormality processing program. (1) The gas is shut off by judging an abnormality in the gas flow rate. (2) Cut off the gas by judging the abnormal long-term use of the gas equipment. (3) Gas is shut off in the event of a large earthquake by the signal from the seismic sensor. (4) The gas is shut off when an abnormal drop in the gas supply pressure is detected. (5) The gas is shut off by an external signal from a gas leak alarm, an incomplete combustion alarm, or the like. (6) An alarm is output when there is a suspicion of leakage from indoor piping using the function of measuring gas flow rate. Safety is ensured by outputting an alarm in advance or emergency cutoff of gas by these abnormality processing programs.

【0003】[0003]

【発明が解決しようとする課題】しかし、以上のような
従来の自動遮断機能付ガスメータでは、ハードウェア上
のトラブルが発生した場合に、その原因が部品の不良に
基づくものであれば故障の原因を特定することができる
が、電気的雑音によってCPUがリセットされて記憶デ
ータが失われたり、結露などに起因する発振停止、発振
異常のためにマイコン機能が一時停止するような一過性
の外乱によるトラブルについては、再現性がないために
原因を調べることが困難であるとともに、データが失わ
れてしまうという問題があった。また、電池電圧の低下
によりマイコン機能が停止した場合は、調査のために外
部より電圧を加えるとパワーオンリセットによって記憶
データが失われてしまうという問題もあった。
However, in the conventional gas meter with the automatic shut-off function as described above, when a hardware trouble occurs, if the cause is due to defective parts, the cause of the failure is Can be specified, but the CPU is reset by electrical noise, the stored data is lost, oscillation is stopped due to condensation, and the microcomputer function is temporarily stopped due to oscillation abnormality. Regarding the troubles caused by, there is a problem that it is difficult to investigate the cause due to lack of reproducibility and data is lost. In addition, when the microcomputer function is stopped due to a decrease in battery voltage, if a voltage is externally applied for investigation, there is a problem that stored data is lost due to power-on reset.

【0004】本発明はこのような従来の問題を解決する
ためになされたものであり、異常が発生した場合にその
原因と発生時の状況をメモリに記憶し、外部からの操作
によって記憶内容を読み出すことができる自動遮断機能
付ガスメータを提供することを目的とする。
The present invention has been made to solve such a conventional problem. When an abnormality occurs, the cause and the situation at the time of occurrence are stored in a memory, and the stored contents are stored by an external operation. It is an object to provide a gas meter with an automatic shut-off function that can be read.

【0005】[0005]

【課題を解決するための手段】本発明は上記課題を解決
するために、メータ計量手段と、ガスの流れを遮断する
遮断弁を有する自動遮断機能付ガスメータにおいて、内
蔵電池の電圧低下を検出してマイクロコンピュータへ電
池電圧低下信号を出力する電池電圧検出手段と、前記マ
イクロコンピュータへクロック信号を供給するためのク
ロック発振部の発振が停止したことを検出する発振停止
検出手段と、この発振停止検出手段から出力される発振
停止検出信号により補助クロック信号を前記マイクロコ
ンピュータへ供給する補助クロック発振手段と、異常発
生時の異常種別と異常発生状況を記憶する異常記憶手段
と、この異常記憶手段に記憶されているデータを読み出
すデータ読出手段と、入力されたリセット信号がある一
定時間継続した場合にのみ前記マイクロコンピュータへ
リセット信号を出力するリセット信号チェック手段と、
リセット信号が入力されたとき、前記データ読出手段か
ら出力されるデータ読出信号がオンになっている場合は
前記異常記憶手段のデータを出力し、データ読出信号が
オフの場合には通常のイニシャライズ処理を実行するイ
ニシャライズ判定手段とを備えた構成である。
In order to solve the above-mentioned problems, the present invention detects a voltage drop of a built-in battery in a gas meter with an automatic shut-off function having a meter metering means and a shut-off valve for shutting off gas flow. Voltage detecting means for outputting a low battery voltage signal to a microcomputer, oscillation stop detecting means for detecting that the oscillation of a clock oscillator for supplying a clock signal to the microcomputer is stopped, and this oscillation stop detecting means Auxiliary clock oscillating means for supplying an auxiliary clock signal to the microcomputer according to an oscillation stop detection signal output from the means, an abnormal memory means for storing an abnormal type and an abnormal situation at the time of abnormal occurrence, and the abnormal memory means Data reading means for reading the stored data and when the input reset signal continues for a certain period of time. A reset signal checking means for outputting a reset signal only to the microcomputer,
When the reset signal is input, if the data read signal output from the data read means is on, the data in the abnormality storage means is output, and if the data read signal is off, normal initialization processing is performed. And an initialization determination means for executing.

【0006】[0006]

【作用】本発明はこのような手段を講じたことにより、
入力されたリセット信号がある一定時間継続した場合に
のみマイクロコンピュータへリセット信号を出力するこ
とにより異常リセット信号を排除し、クロック発振部の
発振が停止したことを検出すると補助クロック信号を出
力し、内蔵電池の電圧低下を検出するとマイクロコンピ
ュータへ電池電圧低下信号を出力することができるとと
もに、上記の異常リセット信号発生時、発振停止時、電
池電圧低下時などの異常状態が発生した場合の異常種
別、発生日時、動作状態などのデータを内蔵メモリに記
録することができる。また、リセット信号が入力された
とき、データ読出信号がオンになっている場合は異常記
憶メモリをリセットすることなく、記憶されているデー
タを出力することができる。
The present invention, by taking such means,
The abnormal reset signal is eliminated by outputting the reset signal to the microcomputer only when the input reset signal continues for a certain period of time, and the auxiliary clock signal is output when detecting that the oscillation of the clock oscillator has stopped, When the voltage drop of the built-in battery is detected, the battery voltage drop signal can be output to the microcomputer, and the type of error when an abnormal condition such as the above abnormal reset signal, oscillation stop, or battery voltage drop occurs. Data such as date and time of occurrence and operating state can be recorded in the built-in memory. Further, when the reset signal is input and the data read signal is on, the stored data can be output without resetting the abnormal memory.

【0007】[0007]

【実施例】以下、本発明の実施例を図面を参照して説明
する。図1は本発明の一実施例における構成を示すブロ
ック図である。同図において、1はマイクロコンピュー
タ、2はガス遮断事由を表示するLED、3は遮断機能
を試験するためのテストスイッチ、4は外部のガス漏れ
警報器などからの信号をマイクロコンピュータ1へ出力
するためのガス漏れ警報器入力回路、5は圧力センサ6
からの信号をマイクロコンピュータ1へ出力するための
圧力センサ入力回路、7は感震器8からの信号をマイク
ロコンピュータ1へ出力するための感震器入力回路、9
はメータ計量手段10によって得られた回転運動を磁気
的に非接触で検出するリードスイッチ11の接点信号を
電気的パルス信号に変換してマイクロコンピュータ1へ
出力する流量パルス入力回路、12はマイクロコンピュ
ータ1からの指令で遮断弁13を駆動する遮断弁駆動回
路、14はマイクロコンピュータ1をはじめそれぞれの
電気回路へ電源を供給するリチウム電池である。15は
リチウム電池14の電圧低下を検出してマイクロコンピ
ュータ1へ電池電圧低下信号を出力する電池電圧検出
部、16はマイクロコンピュータ1へクロック信号を供
給するためのクロック発振部17の発振が停止したこと
を検出する発振停止検出部、18は発振停止検出部16
から発振停止検出信号が入力されると、補助クロック信
号をマイクロコンピュータ1へ供給する補助クロック発
振部、19はマイクロコンピュータ1からの指示により
異常発生時の異常種別と異常発生状況などを記憶する異
常記憶メモリ、20は異常記憶メモリ19に記憶されて
いるデータを読み出すデータ読出部、21はリセット信
号入力部22から入力されたリセット信号がある一定時
間継続した場合にのみ、マイクロコンピュータ1へリセ
ット信号を出力するリセット信号チェック部、22はリ
セット信号が入力されたとき、データ読出部20から出
力されるデータ読出信号がオンになっている場合は異常
記憶メモリ19のデータを出力し、データ読出信号がオ
フの場合には通常のイニシャライズ処理を実行するイニ
シャライズ判定部である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, 1 is a microcomputer, 2 is an LED that indicates a gas cutoff reason, 3 is a test switch for testing the cutoff function, and 4 is a signal from an external gas leak alarm or the like to the microcomputer 1. Gas leak alarm input circuit for 5 is a pressure sensor 6
A pressure sensor input circuit for outputting a signal from the microcomputer 1 to the microcomputer 1, a reference numeral 7 for a vibration sensor input circuit for outputting a signal from the vibration detector 8 to the microcomputer 1, and a reference numeral 9
Is a flow rate pulse input circuit for converting the contact signal of the reed switch 11 which magnetically detects the rotational movement obtained by the meter measuring means 10 into an electric pulse signal and outputs it to the microcomputer 1, and 12 is a microcomputer. A shut-off valve drive circuit that drives the shut-off valve 13 in response to a command from 1, and a lithium battery 14 that supplies power to each electric circuit including the microcomputer 1. Reference numeral 15 is a battery voltage detection unit that detects a voltage drop of the lithium battery 14 and outputs a battery voltage drop signal to the microcomputer 1, and 16 is the oscillation of a clock oscillator 17 for supplying a clock signal to the microcomputer 1. The oscillation stop detector 18 for detecting that
When an oscillation stop detection signal is input from the auxiliary clock oscillating unit that supplies the auxiliary clock signal to the microcomputer 1, the abnormality 19 stores an abnormality type and an abnormal occurrence state at the time of the abnormality according to an instruction from the microcomputer 1. A storage memory, 20 is a data reading section for reading data stored in the abnormality storage memory 19, and 21 is a reset signal to the microcomputer 1 only when the reset signal input from the reset signal input section 22 continues for a certain period of time. When the reset signal is input, the reset signal check unit 22 outputs the data of the abnormal memory 19 when the data read signal output from the data read unit 20 is turned on, and outputs the data read signal. When the is off, the initialization determination unit that executes normal initialization processing A.

【0008】次に、以上のように構成された上記装置の
動作について図2を参照して説明する。リセット信号チ
ェック部21はリセット信号入力端子211から入力さ
れたリセット信号のパルス幅が一定時間以上継続した場
合にのみ、一定パルス幅のリセットパルスをマイクロコ
ンピュータ1のリセット入力RSTへ出力する。また、
同時に、リセット信号入力端子211から入力された上
記のリセット信号はマイクロコンピュータ1のI/Oポ
ートP1にも入力される。マイクロコンピュータ1はリ
セットパルスがリセット入力RSTから入力されると、
I/OポートP1のリセット信号の有無を一定周期で監
視し、リセット信号が一定時間以上継続して入力されて
いることが確認できた場合は正常なリセット信号である
と判定し、一定時間以上継続していることが確認できな
かった場合はエラー処理を開始する。
Next, the operation of the above-structured apparatus will be described with reference to FIG. The reset signal check unit 21 outputs a reset pulse having a constant pulse width to the reset input RST of the microcomputer 1 only when the pulse width of the reset signal input from the reset signal input terminal 211 continues for a predetermined time or longer. Also,
At the same time, the reset signal input from the reset signal input terminal 211 is also input to the I / O port P1 of the microcomputer 1. When the reset pulse is input from the reset input RST, the microcomputer 1
The presence / absence of a reset signal at the I / O port P1 is monitored at regular intervals, and if it can be confirmed that the reset signal is continuously input for a certain period of time or more, it is determined that the reset signal is normal, and at least a certain period of time If it cannot be confirmed that it is continuing, error processing is started.

【0009】発振停止検出部16はクロック発振部17
から出力されるクロック信号が停止したことを検出する
と、補助クロック発振部18およびマイクロコンピュー
タ1のI/OポートP2へクロック信号が停止したこと
を知らせる発振停止信号を出力する。補助クロック発振
部18はこの発振停止信号を入力すると直ちに補助クロ
ック信号を発振し、マイクロコンピュータ1へ出力す
る。一方、マイクロコンピュータ1は発振停止信号を検
出すると、補助クロック信号を用いてエラー処理を開始
する。
The oscillation stop detector 16 is a clock oscillator 17
When it is detected that the clock signal output from is stopped, an oscillation stop signal is output to the auxiliary clock oscillator 18 and the I / O port P2 of the microcomputer 1 to notify that the clock signal is stopped. The auxiliary clock oscillator 18 oscillates the auxiliary clock signal immediately after receiving the oscillation stop signal and outputs it to the microcomputer 1. On the other hand, when the microcomputer 1 detects the oscillation stop signal, it starts error processing using the auxiliary clock signal.

【0010】電池電圧検出部15は一定周期でリチウム
電池14の電圧を調べ、所定の電圧以下であることを検
出すると、マイクロコンピュータ1のI/OポートP3
へ電池電圧低下信号を出力する。マイクロコンピュータ
1はこの電池電圧低下信号を入力してエラー処理を開始
する。
The battery voltage detector 15 checks the voltage of the lithium battery 14 at a constant cycle, and when it detects that the voltage is below a predetermined voltage, the I / O port P3 of the microcomputer 1 is detected.
Output a battery voltage drop signal to. The microcomputer 1 inputs this battery voltage drop signal and starts error processing.

【0011】マイクロコンピュータ1では、リセット入
力RSTにリセットパルスが入力されてからI/Oポー
トP1のリセット信号が一定時間以上継続していること
を確認できなかった場合には異常リセット、I/Oポー
トP2へ発振停止信号が入力された場合には発振停止、
I/OポートP3へ電池電圧低下信号が入力された場合
には電池電圧低下の異常状態が発生したことを認識し、
異常状態の種別、発生日時、マイクロコンピュータ1の
動作状態などを異常記憶メモリ19へファイルする。デ
ータ読出信号がデータ読出信号入力端子201からデー
タ読出部20へ入力されると、データ読出部20は異常
記憶メモリ19に記憶されているファイルを読み出して
データ出力端子202へ出力する。電池電圧が極端に低
下した場合またはクロック信号の発振が停止した場合
に、マイクロコンピュータ1が停止状態または無限ルー
プに入ってしまい、データ読出信号を検出することがで
きないことがある。そこで、リセットパルスがマイクロ
コンピュータ1のリセット入力RSTに入力されると、
イニシャライズ判定部22は最初にI/OポートP4の
データ読出信号の有無を調べ、データ読出信号がオンに
なっているときは「データ出力モード」になり、異常記
憶メモリ19のデータを出力する。I/OポートP4の
データ読出信号がオフであれば、データ読出しの要求が
無いものとして通常のイニシャライズ処理を実行する。
In the microcomputer 1, if it cannot be confirmed that the reset signal of the I / O port P1 continues for a certain time or more after the reset pulse is input to the reset input RST, an abnormal reset, I / O When the oscillation stop signal is input to port P2, oscillation is stopped,
When a battery voltage drop signal is input to the I / O port P3, it is recognized that an abnormal state of battery voltage drop has occurred,
The type of abnormal state, the date and time of occurrence, the operating state of the microcomputer 1 and the like are filed in the abnormal storage memory 19. When a data read signal is input to data read unit 20 from data read signal input terminal 201, data read unit 20 reads the file stored in abnormality storage memory 19 and outputs it to data output terminal 202. When the battery voltage is extremely reduced or the oscillation of the clock signal is stopped, the microcomputer 1 may be in a stopped state or enter an infinite loop, and the data read signal may not be detected. Therefore, when a reset pulse is input to the reset input RST of the microcomputer 1,
The initialization determination section 22 first checks the presence / absence of a data read signal from the I / O port P4, and when the data read signal is on, the "data output mode" is entered and the data in the abnormality storage memory 19 is output. If the data read signal of the I / O port P4 is off, it is determined that there is no data read request, and normal initialization processing is executed.

【0012】図3は異常記憶メモリ19へファイルする
ときの記憶フォーマットの一例を示すものである。第一
のレコード部では異常種別をコードで表わし、それぞれ
コード1は異常リセットを、コード2は発振停止を、コ
ード3は電池電圧低下を表わす。第二のレコード部では
異常発生日時を記憶し、第三のレコード部では異常発生
時のマイクロコンピュータ1の動作状態をコードで表わ
し、それぞれコード1はメイン処理中であったことを、
コード2はタイマ割込処理中であったことを、コード3
は通信割込処理中であったことを表わす。
FIG. 3 shows an example of a storage format when a file is stored in the abnormal storage memory 19. In the first record section, the type of abnormality is represented by a code. Code 1 indicates abnormal reset, code 2 indicates oscillation stop, and code 3 indicates battery voltage drop. The second record section stores the date and time of the abnormality occurrence, and the third record section indicates the operating state of the microcomputer 1 at the time of the abnormality occurrence by a code. Each code 1 indicates that the main processing is in progress.
Code 2 indicates that timer interrupt processing was in progress, code 3
Indicates that the communication interrupt process was in progress.

【0013】次に、図4、図5に示す実施例の回路図と
タイミングチャートを参照しながらリセット信号チェッ
ク部21の動作について詳細に説明する。リセット信号
端子211を短絡することにより発生したリセット信号
S1はマイクロコンピュータ1のI/OポートP1、お
よび初段のD−FF回路のD端子へ入力される。初段の
D−FF回路はクロック信号CKに同期してセットさ
れ、その出力Q1が2段目のD−FF回路のD端子に入
力されているので、2段目のD−FF回路も次のクロッ
ク信号CKに同期してセットされる。以下同様に1クロ
ック時間づつ遅れて3段目、4段目のD−FF回路もセ
ット状態になるので、AND回路212の出力S2、A
ND回路213の出力S3は図5のタイミングチャート
に示すようになる。マイクロコンピュータ1はリセット
入力RSTに入力されたリセット信号S3の立ち下がり
時点からI/OポートP1のリセット信号の有無を一定
周期で監視し、リセット信号が一定時間以上継続して入
力されていることが確認できた場合は正常なリセット信
号であると判定してイニシャライズ処理を実行する。も
し、一定時間以上継続していることが確認できなかった
場合は異常リセット信号が発生したものとしてエラー処
理を開始する。
Next, the operation of the reset signal check section 21 will be described in detail with reference to the circuit diagrams and timing charts of the embodiment shown in FIGS. The reset signal S1 generated by short-circuiting the reset signal terminal 211 is input to the I / O port P1 of the microcomputer 1 and the D terminal of the first stage D-FF circuit. The first-stage D-FF circuit is set in synchronization with the clock signal CK, and its output Q1 is input to the D terminal of the second-stage D-FF circuit. It is set in synchronization with the clock signal CK. Similarly, since the third-stage and fourth-stage D-FF circuits are also set to be delayed by one clock time, the outputs S2 and A of the AND circuit 212 are output.
The output S3 of the ND circuit 213 is as shown in the timing chart of FIG. The microcomputer 1 monitors the presence / absence of the reset signal of the I / O port P1 at a constant period from the falling edge of the reset signal S3 input to the reset input RST, and the reset signal is continuously input for a fixed time or longer. If is confirmed, it is determined that the reset signal is normal, and the initialization process is executed. If it is not confirmed that the operation continues for a certain period of time or more, it is determined that an abnormal reset signal has occurred and error processing is started.

【0014】次に、図6、図7に示す実施例の回路図と
タイミングチャートを参照して発振停止検出部16と補
助クロック発振部18の動作について詳細に説明する。
クロック発振部17から出力されるクロック信号S4は
シュミット入力インバータ161,162によって波形
が整形され、単安定マルチバイブレータ、抵抗器R1、
コンデンサC1から成る発振停止検出部16の立上りエ
ッジトリガ入力+TRGへ入力される。発振停止検出部
16はリトリガ動作の単安定マルチバイブレータ回路を
構成し、その出力パルス幅はクロック信号S4の周期よ
りも長く設定されているのでクロック信号S4が入力さ
れている間は、リトリガ動作によって単安定マルチバイ
ブレータの出力QがHiレベルになる。いま、クロック
信号S4が停止すると単安定マルチバイブレータはトリ
ガされなくなるので、出力QはLowレベルになる。し
たがって、出力Qのインバータ出力Qはクロック発振部
17がクロック信号を出力している間はLowレベル
に、クロック信号が停止するとHiレベルになり、発振
停止信号S6として出力される。この発振停止信号S6
はマイクロコンピュータ1のI/OポートP2および補
助クロック発振部18のAST端子へ入力される。補助
クロック発振部18は非安定マルチバイブレータ、抵抗
器R2、コンデンサC2から成り、AST端子の入力信
号がHiレベルにある期間のみ発振する構成である。し
たがって、発振停止信号S6がHiレベルにある期間、
すなわちクロック発振部17からのクロック信号が停止
している期間のみ補助クロック信号S7をマイクロコン
ピュータ1へ出力する。マイクロコンピュータ1は発振
停止信号S6を検出すると、補助クロック信号S7を用
いてエラー処理を開始する。
Next, the operations of the oscillation stop detector 16 and the auxiliary clock oscillator 18 will be described in detail with reference to the circuit diagrams and timing charts of the embodiments shown in FIGS.
The waveform of the clock signal S4 output from the clock oscillator 17 is shaped by the Schmitt input inverters 161, 162, and the monostable multivibrator, the resistor R1,
It is input to the rising edge trigger input + TRG of the oscillation stop detector 16 including the capacitor C1. The oscillation stop detector 16 constitutes a monostable multivibrator circuit for retrigger operation, and its output pulse width is set to be longer than the cycle of the clock signal S4. Therefore, while the clock signal S4 is being input, The output Q of the monostable multivibrator becomes Hi level. Now, when the clock signal S4 is stopped, the monostable multivibrator is no longer triggered, so the output Q becomes Low level. Therefore, the inverter output Q of the output Q becomes Low level while the clock oscillator 17 is outputting the clock signal, becomes Hi level when the clock signal is stopped, and is output as the oscillation stop signal S6. This oscillation stop signal S6
Is input to the I / O port P2 of the microcomputer 1 and the AST terminal of the auxiliary clock oscillator 18. The auxiliary clock oscillator 18 includes an astable multivibrator, a resistor R2, and a capacitor C2, and is configured to oscillate only while the input signal at the AST terminal is at the Hi level. Therefore, while the oscillation stop signal S6 is at the Hi level,
That is, the auxiliary clock signal S7 is output to the microcomputer 1 only while the clock signal from the clock oscillator 17 is stopped. When the microcomputer 1 detects the oscillation stop signal S6, it uses the auxiliary clock signal S7 to start error processing.

【0015】したがって、以上のような実施例の構成に
よれば、異常リセット信号の事前排除、クロック信号発
振停止時の動作確保、ならびに異常リセット信号発生
時、発振停止時、電池電圧低下時における異常種別、発
生日時およびマイクロコンピュータ1の動作状態の異常
記憶メモリ19への記憶が可能である。また、データ読
出し要求を与えて異常記憶メモリ19のデータを読み出
すことができる。
Therefore, according to the configuration of the above embodiment, the abnormal reset signal is eliminated in advance, the operation is ensured when the clock signal oscillation is stopped, and the abnormal reset signal is generated, the oscillation is stopped, and the battery voltage drops. The type, date and time of occurrence, and the operating state of the microcomputer 1 can be stored in the abnormality storage memory 19. Further, it is possible to read the data in the abnormal memory 19 by giving a data read request.

【0016】[0016]

【発明の効果】以上説明したように本発明によれば、異
常リセット信号の事前排除、クロック信号の発振停止時
の動作確保のみならず、異常リセット信号発生時、発振
停止時、電池電圧低下時などの異常状態が発生した場合
の異常種別、発生日時、動作状態などのデータを内蔵メ
モリに記録し、再生することができるので、故障解析お
よび故障対策を的確に実施することができ、顧客へのサ
ービス向上、機器の信頼性向上に極めて有効である。
As described above, according to the present invention, not only is the abnormal reset signal removed in advance and the operation of the clock signal is stopped when the oscillation is stopped, but the abnormal reset signal is generated, the oscillation is stopped, and the battery voltage drops. When an abnormal situation such as occurs, data such as the abnormality type, date and time of occurrence, and operating status can be recorded in the built-in memory and replayed, so failure analysis and failure countermeasures can be accurately implemented, and it can be provided to customers. It is extremely effective in improving service and reliability of equipment.

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

【図1】本発明の一実施例における構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration in an embodiment of the present invention.

【図2】主要部分の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of a main part.

【図3】異常記憶メモリの記憶フォーマットの一例を示
す説明図である。
FIG. 3 is an explanatory diagram showing an example of a storage format of an abnormal storage memory.

【図4】リセット信号チェック部の実施例の回路図であ
る。
FIG. 4 is a circuit diagram of an embodiment of a reset signal check unit.

【図5】同上の回路図の動作を示すタイミングチャート
である。
FIG. 5 is a timing chart showing the operation of the above circuit diagram.

【図6】発振停止検出部と補助クロック発振部の実施例
の回路図である。
FIG. 6 is a circuit diagram of an embodiment of an oscillation stop detector and an auxiliary clock oscillator.

【図7】同上の回路図の動作を示すタイミングチャート
である。
FIG. 7 is a timing chart showing the operation of the above circuit diagram.

【図8】従来装置のブロック図である。FIG. 8 is a block diagram of a conventional device.

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

15 電池電圧検出部 16 発振停止検出部 17 クロック発振部 18 補助クロック発振部 19 異常記憶メモリ 20 データ読出部 21 リセット信号チェック部 22 イニシャライズ判定部 15 Battery Voltage Detector 16 Oscillation Stop Detector 17 Clock Oscillator 18 Auxiliary Clock Oscillator 19 Abnormal Memory Memory 20 Data Readout 21 Reset Signal Check 22 Initialization Judgment

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 メータ計量手段と、ガスの流れを遮断す
る遮断弁を有する自動遮断機能付ガスメータにおいて、
内蔵電池の電圧低下を検出してマイクロコンピュータへ
電池電圧低下信号を出力する電池電圧検出手段と、前記
マイクロコンピュータへクロック信号を供給するための
クロック発振部の発振が停止したことを検出する発振停
止検出手段と、この発振停止検出手段から出力される発
振停止検出信号により補助クロック信号を前記マイクロ
コンピュータへ供給する補助クロック発振手段と、異常
発生時の異常種別と異常発生状況を記憶する異常記憶手
段と、この異常記憶手段に記憶されているデータを読み
出すデータ読出手段と、入力されたリセット信号がある
一定時間継続した場合にのみ前記マイクロコンピュータ
へリセット信号を出力するリセット信号チェック手段
と、リセット信号が入力されたとき、前記データ読出手
段から出力されるデータ読出信号がオンになっている場
合は前記異常記憶手段のデータを出力し、データ読出信
号がオフの場合には通常のイニシャライズ処理を実行す
るイニシャライズ判定手段とを備えたことを特徴とする
自動遮断機能付ガスメータ。
1. A gas meter with an automatic shutoff function, which comprises a metering means and a shutoff valve for shutting off a gas flow,
Battery voltage detection means for detecting a voltage drop of the built-in battery and outputting a battery voltage drop signal to the microcomputer, and oscillation stop for detecting that the oscillation of the clock oscillator for supplying the clock signal to the microcomputer is stopped Detecting means, auxiliary clock oscillating means for supplying an auxiliary clock signal to the microcomputer according to the oscillation stop detecting signal output from the oscillation stop detecting means, and abnormality storing means for storing an abnormality type and an abnormality occurrence state when an abnormality occurs. Data reading means for reading the data stored in the abnormality storage means, reset signal checking means for outputting a reset signal to the microcomputer only when the input reset signal continues for a certain period of time, and reset signal Is input, the data output from the data reading means is input. If the data read signal is turned on, the data in the abnormality storage means is output, and if the data read signal is turned off, an initialization determination means for executing a normal initialization process is provided. Gas meter with shutoff function.
JP5015055A 1993-02-02 1993-02-02 Gas meter with automatic shut-off function Expired - Fee Related JP3061971B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5015055A JP3061971B2 (en) 1993-02-02 1993-02-02 Gas meter with automatic shut-off function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5015055A JP3061971B2 (en) 1993-02-02 1993-02-02 Gas meter with automatic shut-off function

Publications (2)

Publication Number Publication Date
JPH06229802A true JPH06229802A (en) 1994-08-19
JP3061971B2 JP3061971B2 (en) 2000-07-10

Family

ID=11878156

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5015055A Expired - Fee Related JP3061971B2 (en) 1993-02-02 1993-02-02 Gas meter with automatic shut-off function

Country Status (1)

Country Link
JP (1) JP3061971B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005214637A (en) * 2004-01-27 2005-08-11 Yazaki Corp Gas meter
JP2008250891A (en) * 2007-03-30 2008-10-16 Yazaki Corp Alarm and fire alarm
WO2016143042A1 (en) * 2015-03-09 2016-09-15 オムロン株式会社 Power meter

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005214637A (en) * 2004-01-27 2005-08-11 Yazaki Corp Gas meter
JP2008250891A (en) * 2007-03-30 2008-10-16 Yazaki Corp Alarm and fire alarm
WO2016143042A1 (en) * 2015-03-09 2016-09-15 オムロン株式会社 Power meter

Also Published As

Publication number Publication date
JP3061971B2 (en) 2000-07-10

Similar Documents

Publication Publication Date Title
JP3520662B2 (en) Monitoring device for electronic control unit
US8862434B2 (en) Maintenance expert system for measuring instrument
JPH11146572A (en) Uninterrupted power supply system, backup object device used for the system and record medium in which program for making computer operate as the backup object device are recorded
CN101283243A (en) System and method for detecting sensor fault in refrigeration system
JP3642663B2 (en) Gas meter controller
JP3061971B2 (en) Gas meter with automatic shut-off function
US8751875B2 (en) Method for checking suitability of a data processing device for performing failsafe automation processes
CN113917385A (en) Self-detection method and system for electric energy meter
JP6784847B2 (en) Vehicle control device
JP2001033289A (en) Gas cutoff device and gas cutoff method
JP2555724Y2 (en) Digital relay
JP2002277303A (en) Gas meter and device for reading out and device for data communication
JP2718055B2 (en) Terminal device with built-in instantaneous interruption detection circuit
JP2003067220A (en) Computer system
JP2001028085A (en) Gas leak alarm
JPH0150421B2 (en)
JPH0644476A (en) Gas leak alarming device
JP2003028421A (en) Gas cutoff system
JP2933288B2 (en) Fluidic gas meter with micro flow sensor
JPH0546426A (en) Self-diagnostic circuit
JPH10318538A (en) Gas breaking device
JPS61233819A (en) Power disconnection device at abnormality in computer system
JP2003042321A (en) Gas shut-off device
JPS59218594A (en) Alarm with inspecting function
JPH0644477A (en) Gas leak alarming device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080428

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees