JP3615921B2 - Flowmeter - Google Patents

Flowmeter Download PDF

Info

Publication number
JP3615921B2
JP3615921B2 JP34574297A JP34574297A JP3615921B2 JP 3615921 B2 JP3615921 B2 JP 3615921B2 JP 34574297 A JP34574297 A JP 34574297A JP 34574297 A JP34574297 A JP 34574297A JP 3615921 B2 JP3615921 B2 JP 3615921B2
Authority
JP
Japan
Prior art keywords
flow rate
unit
display
mode
flow meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP34574297A
Other languages
Japanese (ja)
Other versions
JPH11160117A (en
Inventor
修也 伊藤
明子 渡延
誠一 中原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Saginomiya Seisakusho Inc
Original Assignee
Saginomiya Seisakusho Inc
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 Saginomiya Seisakusho Inc filed Critical Saginomiya Seisakusho Inc
Priority to JP34574297A priority Critical patent/JP3615921B2/en
Publication of JPH11160117A publication Critical patent/JPH11160117A/en
Application granted granted Critical
Publication of JP3615921B2 publication Critical patent/JP3615921B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は計に関し、特に電源として電池を使用する場合に適用して好適なものである。
【0002】
【従来の技術】
従来より、被測定物理量の大きさに対応する周波数を有する測定信号を用いて当該物理量を測定することは知られている。このような測定装置の一例として、カルマン渦の発生周期を測定することにより流量を計測する流量計が知られている。
例えば、本出願人は、一台の流量計において、瞬時流量値と積算流量値とを演算処理して、選択的に表示部に表示できるようにした流量計を提案している(特開平8−136315号公報)。この流量計は、電池式流量計の場合と2線式4〜20mA流量伝送器の場合との構成とされている。そして、流量の計測は3秒間に1秒間だけ行い、測定信号から所定の演算式により瞬時流量を演算し、該瞬時流量を累算することにより積算流量値を得るようにしている。そして、流量計測の0.5秒前から計測終了までの1.5秒間だけアナログ回路に給電し、残りの1.5秒間は給電を中止することによって、電池寿命を長期間確保するようにしている。
【0003】
一方、流量計の機能を備える流量検出スイッチとして、特開平9−89613号公報が開示されている。この流量スイッチは、カルマン渦の発生周期を測定し、周期の逆数の周波数と流量との関係を表すデータテーブルを参照して流量を決定し、さらに、該流量を積算して積算流量値を表示するようになされている。
【0004】
【発明が解決しようとする課題】
上記3秒間の内の1秒間だけ流量の計測を行う流量計によれば、消費電力を低減することは可能となるが、3秒のうち2秒間は計測した1秒間と同じ流量が流れているとみなして積算流量値を算出しているために、高精度の積算流量値を得ることができないという問題点があった。
また、上記従来の流量検出スイッチは、カルマン渦の発生周期を測定しているため、周波数が高い場合は周期が短くなってしまい、測定分解能が得られず、測定精度が悪いという問題点があった。さらに、周期の逆数より得られた周波数から、データテーブルを参照して流量を決定しているが、1つの周波数に対して1つの流量データを定義しているため膨大な容量のメモリを必要とし、多種類の口径のデータテーブルや制御プログラムを1つのCPU(マイコン)に収容することができず、何種類ものCPU(マイコン)を用意しなければならないという問題点があった。さらにまた、積算流量値は3桁の7セグメントLEDにて表示しているため、計測を開始しても短時間の内にオーバフローしてしまうという問題点があった。
【0005】
そこで、本発明は、測定精度の高い流計を提供することを目的としている。
また、本発明は、多種類の口径の流量を測定可能な制御プログラムを1つのCPU(マイコン)に収容することのできる流量計を提供することを目的としている。
さらに、本発明は、積算流量あるいは積算バッチ流量を表示するとき、運転を停止することなしに表示単位を変更することが可能な流量計を提供することを目的としている。
【0010】
【課題を解決するための手段】
上記目的を達成するために、本発明の流量計は、流量に対応する周波数のパルス信号を検出するセンサ部と、該センサ部からのパルス信号を計数する第1および第2のカウンタと、前記第1および第2のカウンタの計数値に基づいて流量値を算出する制御部と、該算出した流量値を表示する表示部とを有する流量計であって、前記第1のカウンタは流体が流れる配管の口径に応じて設定される第1の所定周期の間、前記パルス信号を計数するようになされており、前記第2のカウンタは一定の第2の所定周期の間、前記パルス信号を計数するようになされており、前記第1のカウンタの計数値は積算流量の算出に用いられ、前記第2のカウンタの計数値は前記表示に表示する瞬時流量の算出に用いられるようになされているものである。
【0011】
た、前記算出された流量の表示単位を設定する単位設定部と、所定時間毎に該単位設定部に給電する給電制御手段とを有し、該所定時間毎に前記単位設定部により設定された表示単位を読み込み、該読み込んだ表示単位を用いて前記算出された流量を表示するようになされているものである。
さらに、前記配管の口径を選択する口径選択手段と、各口径に対応する前記第1所定周期情報及び前記瞬時流量の算出のための係数データを格納した記憶手段とを有するものである。
【0012】
さらにまた、前記記憶手段は複数のページを有するテーブル構成とされており、いずれのページにおいても、その先頭位置に格納されているデータは同一の口径および材質に対応するデータとされており、その最終位置に格納されているデータは入力信号の周波数をそのまま表示するためのデータとされているものである。
さらにまた、電源電池と、該電池の電圧が第1の電圧よりも低いことを検出する第1電圧検出器と、前記電池の電圧が第2の電圧よりも低いことを検出する第2電圧検出器と、MOSトランジスタによる信号出力手段とを有し、前記第1電圧検出器の出力に応じて前記表示部に電池の交換を要求する旨の表示を行うとともに前記信号出力手段を介して外部装置に所定の信号を出力し、前記第2電圧検出器の出力により、計測動作および演算動作を停止するとともに前記表示部に停電モードである旨の表示を行い、さらに、前記信号出力手段を介して外部装置に所定の信号を出力するようになされているものである。
さらにまた、前記電源電池に並列にバックアップ用の電気二重層コンデンサが接続されているものである。
【0013】
さらにまた、瞬時流量計モード、積算流量計モードおよび積算バッチ流量計モードを有し、モード切替時に当該モードに対応する表示単位を点滅し、また、積算バッチ流量計モードのときに前記表示部にその旨を表示するようになされているものである。
さらにまた、前記制御部の動作を監視するためのウォッチドッグタイマを有し、該ウォッチドッグタイマ出力によるリセット時には、積算流量値及び積算バッチ流量値を保持したまま、制御部の復帰を試みるようになされているものである。
さらにまた、前記センサ部により発生される流量に対応したパルス信号は、流路内の流量検出部に配置された渦発生体が発生するカルマン渦により、下流に配置された圧電バイモルフ素子に交番的に誘起される電荷を電荷増幅器により増幅し、波形整形回路により波形整形したパルス信号とされているものである。
さらにまた、内面に導電性シールド部材が塗布されている樹脂製ケースと、ネジを用いて前記樹脂製ケースに取り付けられるプリント基板とを有し、前記プリント基板の前記ネジに当接する部分には金属部が設けられており、前記プリント基板の電源負極と前記樹脂製ケース内面とが同電位とされているものである。
【0018】
【発明の実施の形態】
本発明の流量計の一実施の形態である、電源として電池を使用する流量計について説明する。
図1は、この電池式流量計の一構成例の構造を示す図であり、(a)は表示及び操作パネル面を示す上面図、(b)は流量計の内部構造を示す断面図、(c)は一部分を破断して示す側面図である。同図において、流量計は、流量を計測すべき流体が流れる流路の途中に接続される計量部本体1と、この計量部本体1の上方に90°毎に位置出し可能に取付けられた計測表示部2とからなっている。ここで、前記計量部本体1はそれが接続される配管に合わせたサイズとされており、前記計測表示部2は多種類(例えば、64種類)の配管の材質や口径に共通に適用することができるものとされている。すなわち、前記計測表示部2は多数の機種に共通に使用することができるようになされている。
【0019】
前記計量部本体1は、その入口1aが上流側に、出口1bが下流側にそれぞれ接続され、流れの中に置かれた柱状物体11の下流側に形成されるカルマン渦の発生周波数が広いレイノルズ数において流速に比例していることを利用し、この渦流の発生周波数を計測することにより、流速或いは流量を知ることができるカルマン渦流式のものとして構成されている。このカルマン渦流式のものは、摺動部がなくシンプルな構造で、信頼性、耐久性が優れているほか、流体流路には渦発生体と渦検出器があるだけで、流路の絞りが小さいので、圧力損失が小さくなっているという特徴を有している。
【0020】
前記計量部本体1には、渦流の発生によって変化する流路中の圧力を検知するためホルダ12の内部にセンサとしての圧電素子13が取付けられている。圧電素子13は渦流の発生周波数に等しい周波数で変化する電気信号からなる流量信号を出力し、これをリード線14を介して計測表示部2の電気回路に供給する。
【0021】
計測表示部2は、防水パッキンを介して突き合わされた下ケース21と上ケース22とからなるケース23、このケース23内に収容されたプリント基板24及び電源用の電池25、上ケース22の上面に配置された液晶表示器26及びモード選択キー(ボタン)27などにより構成され、下ケース21の底部にあけた孔に計量部本体1の上に固定した中空の回転軸3が防水パッキンを介して回転自在に嵌合され、計量部本体1に対して90°毎に位置出し可能に調整できるようになっている。リード線14は回転軸3の中空部を通ってプリント基板24上に形成された電気回路まで導かれている。なお、33は外部機器に所定の信号を出力するための信号線である。
【0022】
前記下ケース21と上ケース22は樹脂製のものとされており、その内面には図1(b)および図1(c)に示すように導電性シールド材30が塗布されている。
また、前記プリント基板24はスペーサ31を介して前記上ケース22に取り付けられている。ここで、前述のように上ケース22と下ケース21は樹脂製とされており、その内部に導電性シールド材30が塗布されている。そして、前記プリント基板24における前記ネジ29および金属スペーサ31が当接する箇所には金属部32が設けられており、前記金属スペーサ31およびネジ29により前記上ケース22および下ケース21とプリント基板24との電気的接続がとられるようになされている。
また、ケース23の上ケース22は下ケース21に対してネジ28によって開閉自在に取付けられ、各種の設定操作や電池25の交換時に開けられるようになっている。
【0023】
計測表示部2の上ケース22の上面に配置された表示器26は、下段左側から小さなサイズの4桁数字表示部26aと、大きなサイズの4桁数字表示部26bとが配置され、この大きな4桁数字表示部26bの更に右側に単位表示部が配置されている。単位表示部は上下に「m/h」セグメント表示26cと「L/min」セグメント表示26dとが配されている。そして、小さなサイズの4桁数字表示部26aの上段には「BAT」セグメント表示26eが、大きなサイズの4桁数字表示部26bの上段には各桁に対応して一列に配列された4つのバーセグメント表示26fがそれぞれ配されている。
【0024】
小さなサイズの4桁数字表示部26aの最上位桁(第1桁目)は、現在の表示状態、現在の計測表示モードを示す状態表示部として働き、4つのバー表示26fは、点滅のローテーションによって流れの有無を表示する流れ表示部として動作する。 なお、図1では全ての表示26a〜26fが点灯した状態を示しており、実際には、状況に応じてこれらが選択的に点灯表示されるようになっている。
後述するように、この流量計は、(1)瞬時流量計、(2)積算流量計、(3)積算バッチ流量計の3つの計測表示モードを有している。瞬時流量計のときには、計測した瞬時流量を前記4桁表示部26bを使用して表示する。また、積算流量計のときは、図15に示すように、前記2つの4桁表示部26aおよび26bを使用して8桁で表示する。さらに、積算バッチ流量計のときは、図16に示すように、小さいサイズの4桁表示部26aの第1桁目に「b」を表示して積算バッチ流量の表示であることを示し、26aの第2〜4桁および26bを使用して積算バッチ流量を7桁で表示する。
また、後述する電池電圧の低下を検出したときは、図17に示すように、前記「BAT」セグメント表示26eを点滅あるいは連続点灯して、その旨を表示する。さらに、後述する検査モードにおいては、図18に示すように、前記26aの第1桁目に「9」を表示して検査モードであることを表示する。
【0025】
図2は、前記流量計における前記プリント基板24の構造をより詳細に示す図であり、(a)はその上面図、(b)は下面図である。図示するように前記プリント基板24の上面には前記表示部26およびモード選択キー27が取り付けられている。なお、この図には表されていないが、前記表示部26の下には、この流量計の制御を行う制御部(シングルチップマイクロコンピュータ)が取り付けられている。また、このプリント基板24の前記金属スペーサ31と当接する部分には金属部32が設けられており、この金属部32は、このプリント基板24上の電気回路の電源負極に接続されている。
【0026】
図2の(b)に示すように、前記プリント基板26の下面には、前記ネジ29の頭部と当接する箇所に金属部32が設けられており、さらに、後述する調整検査装置に測定データ等を出力するためのコネクタ34、外部機器に所定の信号を出力するための端子35a、口径選択用ジャンパ線36(sj1、sj2)、短絡されているときにこの流量計の動作モードを検査モードに設定するための検査モードピン37(p1、p2)、口径および材質選択スイッチ38、表示単位を設定するための単位選択スイッチ39、前記圧電素子13とこのプリント基板24との接続用の端子35bおよびバックアップ用のコンデンサ40が取り付けられている。なお、これ以外に、前記電池25と接続するための電源端子、各種電子回路等がこのプリント基板24上に設けられている。
【0027】
ここで、前記口径および材質選択スイッチ38は、例えば、0h〜Fh(hは16進数を表す)の16通りの位置を選択することのできるスイッチとされている。この口径及び材質選択スイッチ38からの4ビットのデータは、前記口径選択用ジャンパ線36(sj1、sj2)からの2ビットのデータと合わされ、合計6ビットの口径および材質選択データが前記制御部(マイクロコンピュータ)に入力されるようになされている。
【0028】
また、前記単位選択スイッチ39は、例えば、0〜9の10通りの位置を選択することができるスイッチとされており、この単位選択スイッチ39による選択データに応じて瞬時流量値および積算流量値の表示単位が切替えられるようになされている。例えば、位置0〜位置3に設定されているときは、瞬時流量値をL/min単位で表示し、積算流量値をそれぞれ1L単位、0.1L単位、0.01m単位、0.1m単位で表示し、位置4〜位置7のときは瞬時流量値をm/hで表示し、積算流量値をそれぞれ1L単位、0.1L単位、0.01m単位、0.1m単位で表示するようになされている。
【0029】
なお、各設定スイッチ類の構成は、上述した例に限られることはなく、任意の構成のものとすることができる。例えば、前記口径選択用ジャンパ線36および口径および材質選択スイッチ38あるいは前記単位選択スイッチ39の代わりに、それぞれ所定ビット数のディップスイッチ等を設けるようにしてもよい。
【0030】
図3は、上述した流量計の回路構成を示すブロック図である。この図において、50はこの流量計の全体の制御を行うシングルチップマイクロコンピュータ(以下、単にCPUという)であり、その内部には、制御プログラムおよび後述する演算係数テーブル等を格納するROM51、各種のデータを格納するデータエリアおよびワークエリアとして使用されるRAM52、第1のイベントカウンタ(主カウンタ)53、第2のイベントカウンタ(副カウンタ)54、タイマレジスタ群55、液晶表示部を駆動するための表示ドライバ等が格納されている。
【0031】
ここで、前記制御プログラムの制御により、前記第1のイベントカウンタ(主カウンタ)53は前記CPU50の第1のカウント信号入力ポートiCNT1からの入力信号を計数し、前記第2のイベントカウンタ(副カウンタ)54は第2のカウント信号入力ポートiCNT2からの前記入力信号を計数する。そして、主カウンタ53は、この流量計が設置される流路(配管)の口径に応じて設定されたサンプリングタイムの期間、入力パルスを計数し、副カウンタ54は口径に関わらず一定の期間、入力パルスを計数するようになされている。口径が大きい配管の場合には、後述するセンサ部から入力されるパルス信号の周波数が小さくなり、口径が小さい配管の場合には、入力パルス信号の周波数が高くなる。したがって、低い周波数のパルス信号を精度良く計数するためには、計数する期間(サンプリングタイム)を長くすることが必要となる。したがって、本発明においては、口径に応じて、主カウンタのサンプリングタイムの値を設定するようにしている。
【0032】
60は、前記圧電素子13、この圧電素子13からの電気信号を増幅する増幅器61およびこの増幅器61の出力信号を波形整形してパルス信号を出力する波形整形回路62からなるセンサ部であり、このセンサ部60の出力は、前記第1および第2のカウント信号入力ポートiCNT1およびiCNT2に並列に入力されている。なお、このセンサ部60の出力は、前記コネクタ34にも印加されており、調整検査装置等の外部装置にも出力できるようになされている。また、このセンサ部60には出力ポートO2の出力により制御される第2のアナログスイッチ回路72を介して電源Vccが供給されるようになされている。
【0033】
前記CPU50の入力ポートI1には前記上ケース22の上面に配置されたモード選択キー27が接続されている。また、入力ポートI2には前記単位選択スイッチ39からの出力(3ビット)、入力ポートI3には前記口径選択用ジャンパ線36および前記口径および材質選択スイッチ38(機種選択スイッチ)の出力(6ビット)、入力ポートI4には前記検査モードピン37がそれぞれ接続されている。ここで、前記単位選択スイッチ39および前記口径および材質選択スイッチ(36、38)には第1のアナログスイッチ71を介して電源Vccが印加されるようになされており、該第1のアナログスイッチ71は、出力ポートO1の出力により導通制御されるようになされている。
【0034】
また、73はウオッチドッグタイマ回路であり、CPU50の出力ポートO3からの信号が所定時間入力されなかったときに、CPU50に割り込み信号を入力する。この割り込み入力により、CPU50は後述する第2順位のスタート処理を開始することとなる。なお、このウォッチドッグタイマへの定時出力は、例えば25msec毎のタイマ割り込み処理ルーチンにより実行されるようになされている。
さらに、74はパワーオンリセット回路であり、電源電圧Vccが印加されたときに、これを検出して前記CPU50のリセット端子にパルス信号を印加する。これにより、CPU50は後述する第1順位のスタート処理を実行することとなる。
【0035】
前記CPU50に内蔵されている表示駆動回路の出力は出力ポートO4を介して前記液晶表示器26が接続されている。
また、75は第1のMOSトランジスタTr1からなる第1のデジタル信号出力回路であり、そのゲートには前記CPU50の出力ポートO5が接続され、ソースは電源負極に接続されるとともに外部機器との接続端子35aに接続され、ドレインは外部機器90との接続端子35aに接続されている。さらに、76は第2のMOSトランジスタTr2からなる第2のデジタル信号出力回路であり、そのゲートには出力ポートO6が接続され、ソースは電源負極に、ドレインは外部機器との接続端子35aに接続されている。これら第1および第2のデジタル信号出力回路75および76を用いて、外部装置90に各種のデータを出力することができる。ここで、前記外部機器90として、検査モード時には調整検査装置が接続され、計測モード時には集中監視装置が接続される。なお、以下において、MOSトランジスタをただ単にトランジスタと表記する。
このようにMOSトランジスタを使用した信号出力回路を使用しているので、消費電流が非常に少なくなり、電池寿命を飛躍的に長くすることが可能となっている。
【0036】
さて、CPU50の計測した流量データを出力する出力ポートO7(例えば、10ビット)にはバッファ回路78を介して、前記コネクタ34が接続されている。前述したように、このコネクタ34には、前記センサ部60からの出力も接続されており、前記出力ポートO7の出力とともに、外部装置90(検査モード時における調整検査装置)に接続されることとなる。なお、前記センサ部60からの入力を高精度で計測しても、計測結果を外部装置90に送出するに際し、従来のように8ビットD/A変換を用いた場合には分解能が大きく精度の確保ができないため、本発明の実施の形態においては10ビットD/A変換を用いている。
【0037】
80は電源電池であり、例えば乾電池が用いられる。この電池80は前記CPU50の電源入力端子Vccに接続されるとともに、前記バックアップ用コンデンサ40、第1電圧検出器81、第2電圧検出器82、前記第1および第2のアナログスイッチ71および72、前記パワーオンリセット回路74等に印加されている。前記第1電圧検出器81の出力は前記CPU50の入力ポートI5に接続されており、前記電源電圧Vccが第1の所定電圧V1よりも低くなったときにローレベルの信号を前記入力ポートI5に出力する。また、前記第2電圧検出器82は前記電源電圧Vccが第2の所定電圧V2(V2<V1)よりも低くなったことを検出したときに入力ポートI6にローレベルの信号を出力する。すなわち、V1≦Vccのとき前記入力ポートI5およびI6の入力はいずれもハイレベルであり、V2≦Vcc<V1のときI5はローレベル、I6はハイレベルとなり、Vcc<V2となったとき、I5およびI6はいずれもローレベルとなる。
【0038】
前記ROM51およびRAM52のメモリマップの一例を図4の(a)に示す。この図に示すように、前記RAM52の領域には、後述する補正係数を格納する領域、ワークエリア、積算総流量値データを格納する領域、積算バッチ流量値を格納する領域などが設けられている。ここで、積算総流量値データおよび積算バッチデータの格納領域はそれぞれ表示桁数よりも多い桁数のデータを格納することができるように設定されている。
【0039】
また、ROM51の領域には、制御プログラム、口径設定データテーブル、割込みベクトル等が格納されている。ここで、口径設定データテーブルは、64種類の各機種毎に流量を算出するための係数データや前記第1のカウンタのサンプリングタイムを格納したテーブルであり、前記口径選択用ジャンパ線36および前記口径および材質選択スイッチ38(機種選択スイッチ)からの6ビットの機種選択データにより選択され、当該制御に用いられる。
【0040】
図4の(b)は、前記口径設定テーブルの構成を説明するための図である。この図に示すように、口径設定テーブルは、それぞれ16種類の設定データを1ページとする4ページの構成とされている。そして、各設定データとしては、図示するように、当該設定データの番号、口径コード、本体材質コード、サンプリングタイム、流れはじめの周波数f0〜定格流量の110%の瞬時流量値に対応する周波数f5までを、5つの区間に区切る周波数データf0〜f5、周波数と流量との関数を折れ線で近似したときの、一次式傾きデータa1〜a5および切片データb1〜b5が格納されている。
なお、このデータa1〜a5およびb1〜b5は器差のばらつきの平均値であり、このデータをそのまま用いて、流量を算出しても高精度の計測結果は期待できない。そこで、本発明においては、後述する検査工程において、1台ごとに補正係数A1〜A5、B1〜B5を求め、この値を用いて流量を算出している。これにより、非常に精度の良い計測を行うことが可能となっている。
【0041】
また、前記口径設定テーブルの各ページの先頭には、いずれも口径10A、材質L−PPSの機種のデータが格納されており、また、各ページの最後には入力周波数をそのまま表示することのできる設定データが格納されている。これにより、前記口径選択ジャンパ線36の設定に関係なく、前記口径および材質選択スイッチ38を0h(hは16進数をあらわす)あるいはFhとすることにより、調整検査装置に同一の信号を送出することができ、検査工程を標準化することができる。
【0042】
前記サンプリングタイムは定格瞬時流量に対応する周波数に応じて決定されており、例えば、前記周波数が300Hz以上のとき(小口径のとき)は1秒、前記周波数が150〜300Hzのとき(中口径のとき)は2秒、前記周波数が150Hz未満のとき(大口径のとき)は3秒とされている。
【0043】
次に、このように流量計を動作させるための制御プログラムについて詳細に説明する。この制御プログラムは、図5および図6に示すメインルーチンと、前述したタイマからの割込みにより起動されるタイマ割込ルーチンとにより動作するようになされている。
図5に示すように、このメインルーチンには、第1順位のスタート(スタート1)と第2順位のスタート(スタート2)の2つのスタート位置がある。ここで、前記パワーオンリセット回路74からのリセット信号が入力されたときには前記第1順位のスタートから動作が開始され、前記ウォッチドッグタイマ73からの割込入力があったときには前記第2順位のスタートから動作が開始される。
【0044】
さて、前記電池80をこの流量計に装着すると、前記パワーオンリセット回路74がこのことを検知し、CPU50のリセット端子にパワーオンリセットパルスが印加される。これにより、スタート1から処理が開始され、まず、ステップS1の第1の初期化処理が実行される。このパワーオンリセットに基づく第1の初期化処理では、この流量計の所定の初期化処理を実行するとともに前記RAM52の内容がすべてリセットされる。次に、前記出力ポートO5を介して前記第1のトランジスタ75をオン状態にするとともに、前記出力ポートO6を介して、前記第2のトランジスタ76をオフ状態とする(ステップS2)。これにより、前記第1および第2のトランジスタに接続されている外部装置90に対して、この流量計の起動あるいは第1順位のスタートを報知することができる。
【0045】
一方、何らかの原因により所定期間内に前記出力ポートO3から前記ウォッチドッグタイマ73へのリセット信号が出力されなかった場合には、前記ウォッチドッグタイマ73から割込信号が入力される。この時には、ステップS3の第2の初期化処理が実行される。この第2の初期化処理においては、この流量計の所定の初期化処理を実行するが、前記第1の初期化処理とは異なり、前記RAM52中に格納されている補正された係数データ、積算総流量値データおよび積算バッチデータ等のクリアは行なわれない。
【0046】
前記ステップS2あるいはステップS3が実行された後、ステップS4に進み、前記出力ポートO1およびO2を介して、前記第1および第2のアナログスイッチ71および72をオン(導通)状態として、前記単位選択スイッチ回路39、口径設定スイッチ回路(36、38)、前記センサ部60への電源Vccの供給が開始される。これにより、前記センサ部60からの計測データの入力ならびに前記単位選択スイッチ39および前記口径設定スイッチ(36、38)からの設定データの読込が可能となる。
次に、ステップS5において、前記各種のタイマ55の計時動作を開始させる。
続いて、ステップS6に進み、前記口径設定スイッチ(36、38)により設定されている材質および口径に関する情報(機種データ)が読み込まれる。
【0047】
そして、ステップS7に進み、検査終了フラグがセットされているか否かが判定される。この検査終了フラグは後述する検査工程においてこの流量計の検査および係数データの補正処理が行なわれたときにセットされるフラグである。最初に電池を装着したときには、この検査終了フラグはセットされておらず、このステップS7の判定結果はNOとなる。このときには、ステップS8に進み、前記ステップS6において読み込まれた前記口径設定スイッチ(36、38)により設定されている材質および口径に関するデータを前記RAM52中の所定の領域に格納し、ステップS9に進む。また、すでに検査工程が実行されており検査終了フラグがセットされているときには、前記ステップS7の判定結果がYESとなり、そのままステップS9に進む。
【0048】
ステップS9においては、前記単位設定スイッチ39により設定されている表示単位情報を読み込み、前記RAM52の所定の領域に格納する。後述する計測表示処理において、この表示単位情報に基づいて、計測データの表示が行なわれることとなる。
次に、ステップS10に進み、前記ステップS6において読み込んだ材質および口径情報ならびにこの制御プログラムのバーション情報を所定期間前記表示部26に表示する。このように本発明の流量計においては動作開始時に当該制御プログラムのバージョンを計測データの表示を行なう表示部26に表示させるようにしているため、メンテナンス等を行なうときに非常に便利になっている。
【0049】
図19は、このステップS10における表示形態の一例を示す図である。図19の左側の図において、26aで示す小さいサイズの4桁の表示部において前記口径と材質とが表示されており、26bで示す大きいサイズの4桁の表示部において、当該制御プログラムのバージョンが表示されている。この例では、この制御プログラムのバージョンvは3.8であることが示されている。また、前記口径および材質の表示は、例えば、図19の右側に示す例のように表示される。ここで、口径としては、ミリメートル(mm)単位の表示(数字の後にAが付されている)とインチ単位の表示(数字の後にBが付されている)とがある。そこで、これらの口径を図19の右側に示すように4桁の表示部26aにおける第1桁〜第3桁を用いて表示する。なお、図19中各口径の左に記載されている小、中、大は、それぞれの口径を大、中、小の3通りに分類したときに、各口径が属する分類を示している。
また、材質としては、例えばL−PPS、PPS(ポリフェニレンスルフィド)、PVC(ポリ塩化ビニル)、PFA、SUS(ステンレス)等があり、これらを、図19に示す形態で、前記4桁表示部26aの第4桁目を用いて表示している。この例は、口径が15A、材質がL−PPSであることを示している。
【0050】
さて、このように、口径、材質、プログラムのバージョンの表示(S10)を行なった後、ステップS11に進み、前記出力ポートO1の出力信号をローレベルとして、第1のアナログスイッチ71をオフ(非導通)状態とする。これにより、消費電力の大きい前記単位選択スイッチ39の回路および前記口径設定スイッチ(36、38)の回路における電力消費をなくすことができる。このように、本発明においては、必要なタイミングにおいてのみ電源電圧を供給するようにして消費電力を低減するようにしている。
【0051】
次にステップS12に進み、検査モードであるか否かが判定される。この判定は、前記入力ポートI4から、前記検査モードピン37からの信号を入力し、前記検査モードピン37が短絡されているか否かを判定することにより行なわれる。前記検査モードピン37が短絡されて検査モードに設定されているときには、ステップS13に進み、検査終了フラグがセットされているか否かを判定する。そして、この判定の結果検査終了フラグがセットされていないときには、後述するステップS14の検査工程が実行され、その後、ステップS15の電圧チェック処理に進む。一方、検査モードに設定されていないとき、あるいは検査終了フラグがセットされているときには、そのまま、ステップS15の電圧チェック処理に進む。
【0052】
このステップS15の電圧チェック処理の詳細については後述するが、この処理は、前記電池80の電圧が所定の電圧以上であるか否かを判定し、警報を報知したり、あるいは、電池が交換されるまでウエイト状態とする処理である。電池80の電圧が正常の範囲内であり、この電圧チェック処理S15が終了した後は、ステップS16の計測表示処理が実行される。この計測表示処理S16の詳細についても後述するが、ここで、前記センサ部60からの入力信号に基づいて、瞬時流量の計測および積算流量の積算が行なわれる。この計測表示処理S16が行なわれたのち、前記モードキー27の操作がある否かが判定され(ステップS17)、キー操作があれば、ステップS18のキー入力処理が実行される。このキー入力処理については後述する。
【0053】
次に、ステップS19に進み、所定時間T(例えば、30分)経過したか否かを判定し、所定時間経過していなかったときには、前記ステップS12に戻り、再び、前記ステップS12からの処理が繰り返し実行される。また、所定時間経過していたときには、ステップS20に進み当該所定時間Tを計時するタイマをリセットして時間Tの計時を開始し、続いて前記アナログスイッチ1をオン状態として、前記単位選択スイッチ39の設定を読み込む(ステップS21、S22)。これにより、次回の表示からは、前記ステップS22において読み込み設定された新たな単位で当該計測データの表示が行なわれることとなる。次に、ステップS23に進み、前記第1のアナログスイッチ71をオフとして、消費電力の低減を図る。そして、前記ステップS12に戻り、前記ステップS12〜S23を繰り返し実行することとなる。
【0054】
前記検査工程S14について、図7に示す検査工程時の接続図および図8のフローチャートを参照して説明する。前述のように、この流量計の動作モードは、検査モードと計測モードの2つのモードに大別される。ここで、検査モードは、前記検査モードピン37が短絡されているときに設定されるモードであり、図7に示すように前記外部装置90として調整検査装置が接続された状態で前記演算係数の補正処理が行なわれる。
【0055】
図7において、配管100には基準となる高精度流量計101、本発明の流量計の取り付け部1、ポンプ102、流量制御弁103が取り付けられている。そして、前述のように前記第1および第2のトランジスタ75および76からのデジタル出力が前記調整検査装置90に出力されており、また、前記10ビットの演算出力および前記センサ部60の出力も前記コネクタ34を介して前記調整検査装置90に入力されている。さらに、前記調整検査装置90には前記高精度の基準流量計101の出力も入力されている。そして、前記調整検査装置90からは前記流量制御弁103に対する制御信号が出力され、予め定められた検査ステップにしたがって、所定の流量を前記配管100に流すように制御する。
【0056】
このように接続された状態で前記検査工程S14は実行される。図8のフローチャートにおいて、まず、ステップS31において予め定められている手順で流量計各部の検査を実行する。そして、ステップS32に進み、前記第2のトランジスタTr2を所定の時間だけオン状態とした後オフ状態として、前記調整検査装置90に対し検査工程の最初のステップが開始されたことを報知する。これを受けて、前記調整検査装置90は、選択決定された機種(型式)に対応する前記ROM51に格納されている6つの周波数f0〜f5に対応する基準流量Q0〜Q5を前記高精度基準流量計101で計測しながら、前記流量制御弁103を制御して前記配管に流す。ここでは、まず、前記配管100に第1の基準流量Q0が流れるように前記流量制御弁103を制御する。当該流量計は、このときの前記センサ部60からの入力信号を計数し記憶する(ステップS33)。このときの計数値をF0とする。そして、該計数値F0とそのときの流量Q0を前記表示部26に表示するとともに、前記コネクタ34を介して前記調整検査装置90に出力する(ステップS34)。
図18は、このときの表示の様子を示す図であり、図示するように26aの第1桁目に「9」を、第2桁目〜第4桁目に計数値「F0」を表示させ、検査モードにおける表示であることを報知している。
【0057】
次に、ステップS35に進み、再び前記第2のトランジスタTr2を所定時間の間だけオン状態として、前記調整検査装置90に対してステップの進行を報知する。これにより、前記調整検査装置90は、第2番目の基準流量Q1を前記配管100に流すように制御する。そして、前記制御部50は、そのときのセンサ部60からの入力を計数記憶し(S36)、その計数値F1と基準流量Q1を表示するとともに、前記調整検査装置90に出力する(S37)。そして、ステップS38に進み、前記ステップS33において記憶した基準流量Q0における計数値F0と前記ステップS36において記憶した基準流量Q1における計数値F1とに基づいて、補正係数A1およびB1を算出する。この補正係数の算出は、次の式(1)および式(2)に基づいて行われる。
A1=(Q1−Q0)/(F1−F0) …(1)。
B1=(Q0×F1−Q1×F0)/(F1−F0) …(2)。
そして、その算出した補正係数A1およびB1を前記RAM52の所定の領域に格納する。そして、ステップS39に進み、前記第2のトランジスタTr2を所定期間だけオン状態とすることにより、前記調整検査装置90に対してこのステップの処理が終了したことを報知する。
【0058】
以下、上述の場合と同様に、基準流量Q2〜Q5を順次流し、そのときの計数値F2〜F5を用いて、同様に、補正係数A2〜A5およびB2〜B5を算出し、RAM52に格納する。そして、ステップS41において表示部26に検査工程の終了を表示し、さらにステップS42において前記検査終了フラグをセットして、この検査工程を終了する。
なお、前記ステップS34、S37等において、調整検査装置90に出力された計数データF0〜F5は、前記調整検査装置90において検査記録として保存される。
【0059】
次に、図9を参照して前記電圧チェック処理について説明する。前述のように、第1の電圧検出器81は電池80から供給される電源電圧Vccが第1の所定電圧V1よりも低くなったときにローレベルとなり、第2の電圧検出器82はVccが第2の所定電圧V2よりも低くなったときにローレベルとなる。そこで、この電圧チェック処理においては、まず、ステップS51において、前記第1の電圧検出器81の出力がローレベルであるか否かを判定する。V1≦Vccであり、この判定結果がNOとなったときは、ステップS52において前記表示部26における「BAT」表示26eを消灯し、前記第2のトランジスタTr2をオフ状態とし、この電圧チェック処理を終了する。
【0060】
さて、Vcc<V1となっており、前記S51の判定結果がYESとなったときは、ステップS54に進み、前記「BAT」表示26eを点滅して使用者に電池を交換すべき旨を報知するとともに、前記第2のトランジスタTr2のオンオフを繰り返し(S55)、前記集中制御装置90に対してもその旨を報知する。そして、ステップS56に進み、第2の所定電圧V2(V2<V1)と電源電圧Vccとを比較する第2電圧検出器82の出力がローレベルであるか否かを判定する。この判定の結果がNOのとき、すなわち、V2≦Vcc<V1のときは、そのまま、この電圧チェック処理を終了する。
【0061】
一方、Vcc<V2であり、前記ステップS56の判定結果がYESのときは、ステップS57に進み、前記「BAT」表示26eを点滅状態から連続点灯状態にして、使用者に対し電池を交換すべき旨を報知する。そして、前記第1および第2のトランジスタTr1およびTr2をともにオン状態とし(S58)、前記集中制御装置90に対しても電池の電圧が低下しており停電状態となることを報知する。そして、前記「BAT」表示以外の表示をすべて消灯する(S59)とともに、前記第2のアナログスイッチSW2をオフ状態として(S60)、電力消費を防止する。そして、前記CPU50はウエイト状態となる(S61)。
【0062】
このウエイト状態にあるときに、使用者等により電池80が交換されて、電源電圧Vccが前記第1電圧検出器81のハイレベル以上になると、ウエイト状態が解除される(S62)。ウエイト状態が解除されると、ステップS63に進み、前記第2のアナログスイッチSW2をオン状態として前記センサ部60への電源電圧の供給を再開し、前記第1のトランジスタTr1をオフ状態とする(S64)。そして、前記ステップS52に進み、前記「BAT」表示を消灯し、さらに、ステップS53において前記第2のトランジスタTr2をオフ状態として、この電圧チェック処理を終了する。
【0063】
次に、前記計測表示処理について説明する。この計測表示処理は、1秒タイマ割込処理と共同して実行されるため、まず、該1秒タイマ割込処理について図10のフローチャートを参照して説明する。
前述のように前記CPU50には複数のタイマ55が内蔵されている。この1秒タイマもそのなかのひとつであり、1秒を計測すると1秒タイマ割込を発生し、これにより、図10に示す1秒タイマ割込処理が起動される。
この処理が起動されると、まず、ステップS71において前記1秒タイマの再スタートを実行する。これにより1秒タイマ割込を正確なタイミングで発生させることが可能となる。次に、ステップS72に進み、当該機種データにより設定されているサンプリングタイムを判定する。そして、この判定の結果に基づいて、ステップS73〜S75において、前記RAM52中のサンプリングタイムを格納するレジスタτに判定されたサンプリングタイムに対応する数値1〜3を設定する。そして、ステップS76に進み、前記センサ部60からのパルス信号を計数している主カウンタ53の内容を前記RAM52中のfレジスタに加算し、再び0から計測を開始させる。次に、ステップS77において、前記副カウンタ54の計数内容を前記RAM52中のf’レジスタに格納して、副カウンタの計数を0から開始させる。
【0064】
次に、ステップS78に進み、前記主カウンタの計数時間が当該サンプリングタイムに達している場合には主カウンタフラグをセットする。ここで、図示していないが、ステップS76およびステップS78の処理は、レジスタτに格納されているサンプリングタイムにより、処理が異なることは言うまでもない。次に、ステップS79に進み、副カウンタフラグをセットして、この1秒タイマ割込処理を終了する。すなわち、前記主カウンタ計時終了フラグは、当該サンプリングタイムに達しているときにセットされ、前記副カウンタ計時終了フラグは各1秒タイマ割込処理毎にセットされる。
【0065】
次に、前記計測表示処理(S16)について、図11のフローチャートを参照して説明する。この計測処理が開始されると、まず、ステップS81において、前記主カウンタフラグがセットされているか否かを判定する。当該機種のサンプリングタイムに達しておらず、主カウンタフラグがセットされていないときは、次に、ステップS83に進み、副カウンタフラグがセットされているか否かを判定する。また、主カウンタフラグがセットされているときは、ステップS82において、主カウンタ計測処理を実行してから、ステップS83に進む。詳細については後述するが、この主カウンタ計測処理S83において、主カウンタの計測データ(前記fレジスタのデータ)に基づいて瞬時流量値Q、積算総流量値Qtおよび積算バッチ流量値Qbが算出される。なお、このとき、前述した補正係数A1〜A5、B1〜B5が用いられる。
【0066】
ステップS83において、前記副カウンタフラグがセットされているか否かが判定される。ここで、前記副カウンタフラグがセットされていないときは、ステップS85に進む。また、S83の判定結果がYESのときは、ステップS84に進み、副カウンタ計測処理が実行される。この詳細については後述するが、このステップS84においては、前記f’レジスタに格納されている前記副カウンタ54の計数内容に基づいて表示瞬時値Q’が算出される。そして、ステップS85に進む。
【0067】
ステップS85においては、現在設定されている計測のモード、すなわち、(1)瞬時流量計モードであるか、(2)積算流量計モードであるか、あるいは、(3)積算バッチ流量計モードであるかかが判定される。そして、(1)瞬時流量計モードであるときには前記副カウンタ計測処理S84において算出された瞬時流量値Q’が前記表示部26において表示される(S86)。また、(2)積算流量計モードであるときは前記主カウンタ計測処理S82において算出された積算総流量値Qtが表示され(S87)、(3)積算バッチ流量計モードであるときは積算バッチ流量値Qbが表示される(S88)。
【0068】
前記主カウンタ計測処理について、図12を参照して説明する。この処理においては、まず、前記RAM52中に格納されている前記主カウンタによる計数データfと当該機種のサンプリングタイムデータτとの比f/τの値が、流れがあると判定される周波数(流れ有り周波数)以上であるか否かが判定される。この判定の結果がNOのときは、瞬時値Qを0として(S92)、ステップS96に進み、前記主カウンタフラグをリセットしてこの主カウンタ計測処理を終了する。一方、前記S91の判定結果がYESのときは、ステップS93に進み、前記RAM中に格納されている補正された係数Ai、Biを用いて、次の式(3)に基づいて、瞬時流量値Qを算出し、レジスタに格納する。
Q=Ai×f/τ+Bi …(3)。
【0069】
次に、ステップS94に進み、積算総流量値Qtを更新する。すなわち、次の式(4)を実行する。
Qt←Qt+Q×(τ/60) …(4)。
そして、ステップS95に進み、積算バッチ流量値Qbを更新する。
Qb←Qb+Q×(τ/60) …(5)。
そして、ステップS96において前記主カウンタフラグをリセットし、この主カウンタ計測処理を終了する。なお、この演算は同一の単位、例えば[L/min]で実行し、表示部に表示をするときに、設定されている単位系に変換して表示するようになされている。
【0070】
次に、前記副カウンタ計測処理S84について、図13のフローチャートを参照して説明する。まず、ステップS101において、f’レジスタに格納されている副カウンタの計数値は流れ有り周波数以上であるか否かが判定される。この結果がNOのときは、ステップS102に進み、表示瞬時値Q’を0とし、ステップS103において前記表示部26のバーセグメント26fを消灯する。そして、ステップS104に進み、第1のトランジスタTr1をオンとして、前記集中監視装置90に対して、流れがローリミット値以下であることを報知し、ステップS111に進み、副カウンタフラグをリセットする。なお、ここでは、ローリミット警報出力点を流れ有り(始め)点としたが、記憶手段に任意の値を設定できることは言うまでもない。
【0071】
一方、前記ステップS101の判定結果がYESのときは、ステップS105に進み、表示瞬時値Q’を算出する。この演算は次の式(6)により行なわれる。
Q’=Ai×f’+Bi …(6)。
次に、ステップS106に進み、前記ステップS105において算出した表示瞬時値Q’が当該定格流量値の110%以上であるか否かが判定される。この判定結果がNOのときは、ステップS107に進み、前記バーセグメント26fを左から右に順次点滅させる。そして、第1のトランジスタTr1をオフにして、ステップS111に進み、副カウンタフラグをリセットする。
【0072】
また、算出した表示瞬時値Q’が定格の110%以上であり、前記ステップS106の判定結果がYESのときは、ステップS109に進み、バーセグメント26fを全部同時に点滅させる。これにより、定格以上の流量であることを報知することができる。また、ステップS110において、第1のトランジスタTr1をオンとして、前記集中監視装置90に対して、流れがハイリミット値以上、すなわち上限以上の流量があることを報知する。そして、ステップS111に進み、副カウンタフラグをリセットする。ここでは、ハイリミット警報出力点を流れの上限点としたが、記憶手段に任意の値を設定できることは言うまでもない。
【0073】
次に、前記キー入力処理S18について、図14のフローチャートを参照して説明する。この処理は、前記ステップS17(図6)においてモード選択キー27が押圧されたことを検出したときに実行される処理であり、前記3つの計測モード、すなわち、(1)瞬時流量計モード、(2)積算流量計モードおよび(3)積算バッチ流量計モードを前記モード選択キー27が操作される毎に順次切り替える処理である。また、このモード選択キーを押圧している時間の長さに応じて、積算バッチデータあるいは積算総流量値データをクリアすることもできるようになされている。
【0074】
まず、ステップS121において、現在のモードに使用されている単位を点滅表示して操作者に現在のモードを報知する。すなわち、現在選択されているモードが(1)瞬時流量計モードであるときは、前記表示部26における単位表示部26cあるいは26dを点滅表示する。また、(2)積算流量計モードであるときは、前記26cのうちの「m」の部分のみ、あるいは、前記26dのうちの「L」の部分のみを点滅表示する。さらに、(3)積算バッチ流量計モードであるときも、前記(2)の場合と同様の部分を点滅表示する。ただし、この場合は、前記サイズの小さい4桁表示部の第1桁目に「b」が表示されているため、前記(2)の場合と区別することができる。
【0075】
次に、ステップS122に進み、前記モード選択キー27が第1の所定時間T1に達する前にオフとされたか否かを判定する。この判定の結果がYESのとき、すなわち、T1よりも短い時間の押圧であったときは、ステップS123に進み、前記S121と同様に、現在のモードに使用されている単位を点滅表示して操作者に現在のモードを報知する。そして、ステップS124に進み、前記モード選択キー27がオフとされた後、第2の所定時間T2が経過したか否かが判定される。ここで、T2<T1とされている。この判定の結果がYESのときは、このキー入力処理を終了する。
【0076】
また、モード選択キー27がオフとされてからT2時間経過してないときは、ステップS125に進み、モード選択キー27が再度オンとされたか否かを判定する。そして、この判定の結果がNOのときはこのキー入力処理を終了する。また、モード選択キー27が再度オンとされたときは、ステップS126に進み、現在のモードを一つ進める。すなわち、現在が(1)瞬時流量計モードであるときには、モードを(2)積算流量計モードに変更し、現在が(2)積算流量計モードであるときは(3)積算バッチ流量計モードに変更し、現在が(3)積算バッチ流量計モードであるときは(1)瞬時流量計モードに変更する。そして、ステップS127に進み、変更された新しいモードに対応する単位を前述の場合と同様に点滅表示するとともに、新しいモードのデータを表示する。そして、前記ステップS122に戻る。
このように、前記モード選択キー27を第1の所定時間T1以下の長さで、繰り返し押圧操作することにより、計測モードをサイクリックに変更することができる。
【0077】
一方、前記モード選択キー27を前記第1の所定時間T1以上の長い時間押圧したときには、前記ステップS122の判定結果がNOとなり、ステップS128において、現在のモードが(3)の積算バッチ流量計モードであるか否かが判定される。現在のモードが積算バッチ流量計モードであるときは、ステップS129に進み、前述した積算バッチデータQbをクリアしたのち、ステップS130に進む。また、前記S128の判定結果がNOのときは、そのままステップS130に進む。
このように、積算バッチ流量計モードにおいて、前記モード選択キー27をT1時間以上押圧したときは、前記RAM52に中に格納されている積算バッチ流量データをクリアして、再び、流量の積算を行うことができる。
【0078】
前記ステップS130においては、前記モード選択キー27が第3の所定時間T3未満でオフとされたか否かが判定される。ここで、第3の所定時間T3は、T2<T1<T3という関係を満たす時間である。この判定の結果がNOであるとき、すなわち、前記モード選択キー27が押圧されている時間がT3以上であるときは、ステップS131に進み、現在のモードが(2)積算流量計モードであるか否かが判定される。この判定の結果がYESのときは、ステップS132に進み、前記RAM52中に格納されている積算総流量データQtをクリアして、前記ステップS123に戻る。また、前記ステップS130の判定結果がYESのとき、および、前記ステップS131の判定結果がNOのときは、前記ステップS123に戻る。
このように、積算流量計モードにおいて、前記モード選択キー27を第3の所定時間T3以上押圧しつづけた場合には、前記RAM52中に格納されている積算総流量データQtをクリアして、再び、流量データの積算を実行させることができる。
【0079】
このように、本発明においては、前記単一のモード選択キー27の押圧回数および押圧時間長に基づいて、計測モードの切り替え、積算バッチ流量データQbおよび積算総流量データQtのクリアを実行することができる。したがって、多数の操作キーを設ける必要をなくし、機器の小型化を図ることができる。
【0080】
なお、上述した実施の形態においては、前記流れ有り周波数f0および定格の110%の流量に対応する周波数f5として、前記ROM中の口径設定データテーブル中に格納されているデータを用いて、前記ローリミット警報およびハイリミット警報を論理和にて、第1のトランジスタTr1をオンとして出力していたが、このデータをRAMあるいはEEPROMなどの非固定記憶手段に記憶することにより、前記ローリミット警報およびハイリミット警報を発生する流量値を任意に設定することができるようになる。図20は、この場合の実施の形態を示す図であり、前記リミットデータを表示させておき、その値を低下させるDOWNキー42、上昇させるUPキー43、および、入力キー41を用いることにより、前記ローリミット警報出力設定点およびハイリミット警報出力設定点を変更することができるようになる。なお、46aおよび46bは前記第1および第2のデジタル信号出力回路75および76に対応する出力表示用LEDである。また、この図20に示すように、表示部45の表示桁数は3桁であるため、積算流量値の表示のときは単位表示用LEDとして、m表示LED44aおよびL表示LED44bとを備えている。
【0081】
【発明の効果】
以上説明したように本発明によれば、第1のカウンタの計測周期を周波数に応じて設定しているため、周波数が低い場合であっても十分な分解能が得られ、高精度の計測を行うことができる。
また、検査工程において1台ごとに補正係数を算出し、この補正係数を用いて計測を行っているので、高精度の計測を行うことができる。
さらに、計測時において、計測値の下限と上限とを報知するようにしているので、使用者は測定系統の維持管理を容易に行うことができる。
さらにまた、電池の電圧が低下したことを報知するように構成されているので、停電前に電池を交換することができる。
さらにまた、MOSトランジスタによる信号出力回路を用いているため、消費電力を低減することができ、電源として電池を使用していながら、非常に長時間の稼動が可能となる。
さらにまた、停電後の電池の消耗を非常に少なくしているので、RAMのデータの保存を確実に行うことができる。そして、電気二重層コンデンサを使用してバックアップしているので、電池交換作業時に記憶されているデータの消失を防止することができる。
【0082】
さらにまた、ケース内面に導電体層を設けているので、確実な静電遮蔽ができ、ノイズの影響をなくすことができる。
さらにまた、積算値をクリアすることなしに積算値の単位の変更、積算値の表示桁の変更、瞬時値の単位の変更ができるので、貴重な積算データを失うことがなく、計測システムの管理が容易となる。
さらにまた、記憶手段のいずれのページにおいても、その先頭位置に格納されているデータと最終位置に格納されているデータは統一されたものとされているために、調整検査工程の標準化、簡素化が可能となり、ひいてはコストダウンが可能となる。
さらにまた、センサ部に圧電バイモルフ素子を使用した場合には、可動部が無いので、維持管理が容易となる。
【図面の簡単な説明】
【図1】本発明の一実施の形態である流量計の一実施例を示す構造図であり、(a)は上面図、(b)は断面図、(c)は一部破断側面囲である。
【図2】図1に示した流量計のプリント基板の構成を示す図である。
【図3】図1に示した流量計の回路構成を示すブロック図である。
【図4】メモリマップおよび口径設定データテーブルを説明するための図である。
【図5】メインルーチンを示すフローチャートである。
【図6】メインルーチンを示すフローチャートである。
【図7】検査モード時における接続を説明するための図である。
【図8】検査工程を説明するためのフローチャートである。
【図9】電圧チェック処理を説明するためのフローチャートである。
【図10】1秒タイマ割込みルーチンのフローチャートである。
【図11】計測表示処理のフローチャートである。
【図12】主カウンタ計測処理のフローチャートである。
【図13】副カウンタ計測処理のフローチャートである。
【図14】キー入力処理のフローチャートである。
【図15】積算流量計モード時の表示形態を示す図である。
【図16】積算バッチ流量計時の表示形態を示す図である。
【図17】電圧低下検出時の表示形態を示す図である。
【図18】検査モード時の表示形態を示す図である。
【図19】材質、口径およびバージョンの表示形態を示す図である。
【図20】本発明の他の実施の形態を示す図である。
【符号の説明】
1 計量部本体
2 計測表示部
3 回転軸
13 圧電素子
24 プリント基板
26 表示部
27 モード選択キー
30 導電性シールド材
39 単位選択スイッチ
36、38 口径設定スイッチ
37 検査モードピン
40 電気2重層コンデンサ
50 制御部(1チップマイクロンピュータ)
51 ROM
52 RAM
53 主カウンタ
54 副カウンタ
55 タイマ
60 センサ部
71、72 アナログスイッチ
73 ウォッチドッグタイマ
74 パワーオンリセット回路
75、76 デジタル信号出力回路
80 電池
81、82 電圧検出器
90 外部機器
[0001]
BACKGROUND OF THE INVENTION
The present inventionFlowamountIn totalIn particular, the present invention is suitable when applied to a battery as a power source.
[0002]
[Prior art]
Conventionally, it is known to measure a physical quantity using a measurement signal having a frequency corresponding to the size of the physical quantity to be measured. As an example of such a measuring apparatus, a flow meter that measures a flow rate by measuring a generation period of Karman vortex is known.
For example, the present applicant has proposed a flow meter in which the instantaneous flow rate value and the integrated flow rate value are processed in a single flow meter so that the flow rate can be selectively displayed on a display unit (Japanese Patent Laid-Open No. Hei 8). -136315). This flow meter has a configuration of a battery type flow meter and a case of a two-wire type 4 to 20 mA flow rate transmitter. The flow rate is measured only for 1 second every 3 seconds, the instantaneous flow rate is calculated from the measurement signal by a predetermined calculation formula, and the instantaneous flow rate is accumulated to obtain the integrated flow rate value. Then, power is supplied to the analog circuit for 1.5 seconds from 0.5 seconds before flow measurement to the end of measurement, and power supply is stopped for the remaining 1.5 seconds so as to ensure a long battery life. Yes.
[0003]
On the other hand, Japanese Patent Laid-Open No. 9-89613 is disclosed as a flow rate detection switch having the function of a flow meter. This flow switch measures the Karman vortex generation cycle, determines the flow rate by referring to the data table showing the relationship between the frequency of the reciprocal of the cycle and the flow rate, and further displays the integrated flow rate value by integrating the flow rate It is made to do.
[0004]
[Problems to be solved by the invention]
According to the flowmeter that measures the flow rate for only 1 second out of the above 3 seconds, it is possible to reduce the power consumption, but the same flow rate as the measured 1 second is flowing in 2 seconds out of 3 seconds. Therefore, the integrated flow rate value is calculated, so that there is a problem that a highly accurate integrated flow rate value cannot be obtained.
In addition, since the conventional flow rate detection switch measures the Karman vortex generation cycle, the frequency becomes high when the frequency is high, so that measurement resolution cannot be obtained and measurement accuracy is poor. It was. Furthermore, the flow rate is determined by referring to the data table from the frequency obtained from the reciprocal of the cycle. However, since one flow rate data is defined for one frequency, a huge amount of memory is required. However, there is a problem that many types of CPUs (microcomputers) must be prepared because it is not possible to store data tables and control programs of various types of diameters in one CPU (microcomputer). Furthermore, since the integrated flow rate value is displayed by a 3-digit 7-segment LED, there is a problem that even if measurement is started, it overflows within a short time.
[0005]
Therefore, the present invention, MeasureHigh precisionCurrentamountTotalIt is intended to provide.
Further, the present invention provides a flow rate capable of accommodating a control program capable of measuring flow rates of various types of calibers in one CPU (microcomputer).TotalIt is intended to provide.
Furthermore, the present invention provides a flow rate capable of changing the display unit without stopping operation when displaying the integrated flow rate or the integrated batch flow rate.TotalIt is intended to provide.
[0010]
[Means for Solving the Problems]
To achieve the above objectiveThe flowmeter of the present invention is compatible with the flow rateDoA sensor unit for detecting a pulse signal of a frequency, first and second counters for counting pulse signals from the sensor unit, and control for calculating a flow rate value based on count values of the first and second counters. AndThe calculationDisplay unit that displays the flow rate valueA flow meterThe first counter isPiping through which fluid flowsAccording to the caliber ofSetDuring the first predetermined period, the pulse signal is counted.AndThe second counter is configured to count the pulse signal for a fixed second predetermined period, and the count value of the first counter is integrated.Flow rate calculationThe count value of the second counter isSaiddisplayPartIt is used for calculation of the instantaneous flow rate displayed on the screen.
[0011]
MaTheThe calculated flow rateA unit setting unit for setting a display unit and a power supply control means for supplying power to the unit setting unit every predetermined time, and the unit setting for each predetermined timeDisplay unit set byReadReadUsing display unitsThe calculated flow rateIs to be displayed.
MoreThe pipingCaliber selection means for selecting the caliber of each, and eachCaliberCompatible withDoThe firstofPredetermined cycleofinformationas well asStorage means storing coefficient data for calculating the instantaneous flow rate.
[0012]
Furthermore, the storage means has a table configuration having a plurality of pages, and in any page, the data stored at the head position is data corresponding to the same aperture and material. The data stored at the final position is data for displaying the frequency of the input signal as it is.
Furthermore, a power supply battery, a first voltage detector for detecting that the voltage of the battery is lower than the first voltage, and a second voltage detection for detecting that the voltage of the battery is lower than the second voltage. And a signal output means using a MOS transistor, and in response to the output of the first voltage detector, displays an indication that the battery needs to be replaced on the display unit, and an external device via the signal output means A predetermined signal is output to the display, the measurement operation and the calculation operation are stopped by the output of the second voltage detector, and a display indicating that the power failure mode is present is displayed on the display unit, and further, via the signal output means A predetermined signal is output to an external device.
Furthermore, a backup electric double layer capacitor is connected in parallel with the power supply battery.
[0013]
Furthermore, it has an instantaneous flow meter mode, an integrated flow meter mode, and an integrated batch flow meter mode, and the display unit corresponding to the mode flashes when the mode is switched. That is what is displayed.
Furthermore, it has a watchdog timer for monitoring the operation of the control unit, and at the time of reset by the watchdog timer output, the integrated flow rate valueas well asThe controller attempts to return to the controller while maintaining the integrated batch flow rate value.
Furthermore, the pulse signal corresponding to the flow rate generated by the sensor unit is alternately transmitted to the piezoelectric bimorph element disposed downstream by Karman vortex generated by the vortex generator disposed in the flow rate detection unit in the flow path. The charge induced in the signal is amplified by a charge amplifier, and is a pulse signal whose waveform is shaped by a waveform shaping circuit.
Furthermore, it has a resin case in which a conductive shield member is coated on the inner surface and a printed circuit board that is attached to the resin case by using a screw, and the portion of the printed circuit board that contacts the screw is made of metal. The power supply negative electrode of the printed circuit board and the resin case inner surface are at the same potential.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
Of the present inventionIt is one embodiment of a flow meterA flow meter using a battery as a power source will be described.
FIG. 1 is a diagram showing the structure of one configuration example of this battery-type flow meter, (a) is a top view showing a display and operation panel surface, (b) is a cross-sectional view showing the internal structure of the flow meter, c) is a side view with a part broken away. In the figure, a flow meter is a measuring unit main body 1 connected in the middle of a flow path through which a fluid whose flow rate is to be measured, and a measurement unit mounted above the measuring unit main body 1 so as to be positioned every 90 °. It consists of a display unit 2. Here, the measuring unit main body 1 is sized according to the pipe to which it is connected, and the measurement display unit 2 is commonly applied to many types (for example, 64 types) of pipe materials and calibers. It is supposed to be possible. That is, the measurement display unit 2 can be used in common for many models.
[0019]
The measuring unit body 1 has an inlet 1a connected to the upstream side and an outlet 1b connected to the downstream side, and a Reynolds having a wide generation frequency of Karman vortices formed on the downstream side of the columnar object 11 placed in the flow. By utilizing the fact that the number is proportional to the flow velocity, the flow velocity or flow rate can be known by measuring the generation frequency of this vortex flow. This Karman vortex flow type has a simple structure with no sliding parts and is excellent in reliability and durability. In addition, there are vortex generators and vortex detectors in the fluid flow path. Is small, the pressure loss is small.
[0020]
A piezoelectric element 13 as a sensor is attached to the inside of the holder 12 in the measuring unit main body 1 in order to detect the pressure in the flow path that changes due to the generation of vortex. The piezoelectric element 13 outputs a flow signal composed of an electric signal that changes at a frequency equal to the frequency of the eddy current, and supplies the flow signal to the electric circuit of the measurement display unit 2 via the lead wire 14.
[0021]
The measurement display unit 2 includes a case 23 composed of a lower case 21 and an upper case 22 that are abutted via a waterproof packing, a printed circuit board 24 and a battery 25 for power supply accommodated in the case 23, and an upper surface of the upper case 22. The hollow rotary shaft 3 is fixed to the measuring unit main body 1 in a hole formed in the bottom of the lower case 21 via a waterproof packing. The metering unit main body 1 can be adjusted so that it can be positioned every 90 °. The lead wire 14 is led to the electric circuit formed on the printed circuit board 24 through the hollow portion of the rotating shaft 3. Reference numeral 33 denotes a signal line for outputting a predetermined signal to an external device.
[0022]
The lower case 21 and the upper case 22 are made of resin, and a conductive shield material 30 is applied to the inner surfaces thereof as shown in FIGS. 1 (b) and 1 (c).
The printed circuit board 24 is attached to the upper case 22 via a spacer 31. Here, as described above, the upper case 22 and the lower case 21 are made of resin, and the conductive shield material 30 is applied to the inside thereof. A metal portion 32 is provided at a location where the screw 29 and the metal spacer 31 abut on the printed circuit board 24, and the upper case 22, the lower case 21, the printed circuit board 24, and the metal spacer 31 and the screw 29 are provided. The electrical connection is made.
Further, the upper case 22 of the case 23 is attached to the lower case 21 so as to be freely opened and closed by screws 28, and can be opened when performing various setting operations or replacing the battery 25.
[0023]
The indicator 26 arranged on the upper surface of the upper case 22 of the measurement display unit 2 is arranged with a small size four-digit number display unit 26a and a large size four-digit number display unit 26b from the lower left side. A unit display section is arranged on the right side of the digit display section 26b. The unit display is3/ H ”segment display 26c and“ L / min ”segment display 26d. The “BAT” segment display 26e is displayed on the upper side of the small-size 4-digit number display portion 26a, and the four bars arranged in a line corresponding to each digit are displayed on the upper stage of the large-size 4-digit number display portion 26b. Each segment display 26f is arranged.
[0024]
The most significant digit (first digit) of the small-sized four-digit number display unit 26a serves as a status display unit indicating the current display state and the current measurement display mode, and the four bar displays 26f are displayed by blinking rotation. It operates as a flow display unit that displays the presence or absence of a flow. Note that FIG. 1 shows a state in which all the displays 26a to 26f are lit, and actually, these are selectively lit and displayed according to the situation.
As will be described later, this flow meter has three measurement display modes: (1) an instantaneous flow meter, (2) an integrated flow meter, and (3) an integrated batch flow meter. In the case of an instantaneous flow meter, the measured instantaneous flow rate is displayed using the 4-digit display unit 26b. Further, in the case of an integrated flow meter, as shown in FIG. 15, the two 4-digit display portions 26a and 26b are used to display 8 digits. Further, in the case of the integrated batch flow meter, as shown in FIG. 16, "b" is displayed in the first digit of the small-sized four-digit display unit 26a to indicate the display of the integrated batch flow rate. 2 to 4 and 26b are used to display the integrated batch flow in 7 digits.
When a battery voltage drop, which will be described later, is detected, as shown in FIG. 17, the “BAT” segment display 26e is blinked or continuously lit to indicate that fact. Further, in the inspection mode to be described later, as shown in FIG. 18, “9” is displayed in the first digit of the 26a to indicate the inspection mode.
[0025]
2A and 2B are diagrams showing in more detail the structure of the printed circuit board 24 in the flow meter, where FIG. 2A is a top view and FIG. 2B is a bottom view. As shown in the drawing, the display unit 26 and a mode selection key 27 are attached to the upper surface of the printed circuit board 24. Although not shown in this figure, a control unit (single chip microcomputer) for controlling the flowmeter is attached below the display unit 26. Further, a metal part 32 is provided at a portion of the printed circuit board 24 that contacts the metal spacer 31, and the metal part 32 is connected to the power source negative electrode of the electric circuit on the printed circuit board 24.
[0026]
As shown in FIG. 2B, a metal part 32 is provided on the lower surface of the printed circuit board 26 at a position where it abuts against the head of the screw 29. Further, measurement data is sent to an adjustment inspection apparatus described later. Connector 34 for outputting a signal, a terminal 35a for outputting a predetermined signal to an external device, a jumper wire 36 (sj1, sj2) for selecting a diameter, and an operation mode of the flowmeter when it is short-circuited. Inspection mode pins 37 (p1, p2) for setting to caliber, a diameter and material selection switch 38, a unit selection switch 39 for setting a display unit, and a terminal 35b for connecting the piezoelectric element 13 to the printed circuit board 24. A backup capacitor 40 is attached. In addition to this, a power supply terminal for connecting to the battery 25, various electronic circuits, and the like are provided on the printed circuit board 24.
[0027]
Here, the aperture and material selection switch 38 is, for example, a switch that can select 16 positions from 0h to Fh (h represents a hexadecimal number). The 4-bit data from the aperture / material selection switch 38 is combined with the 2-bit data from the aperture selection jumper wires 36 (sj1, sj2), and the 6-bit aperture / material selection data in total is sent to the control unit ( It is designed to be input to a microcomputer.
[0028]
The unit selection switch 39 is, for example, a switch that can select 10 positions from 0 to 9, and the instantaneous flow rate value and the integrated flow rate value are selected according to the selection data by the unit selection switch 39. The display unit can be switched. For example, when the position 0 to the position 3 are set, the instantaneous flow rate value is displayed in L / min units, and the integrated flow rate value is 1 L unit, 0.1 L unit, 0.01 m, respectively.3Unit, 0.1m3Displayed in units. When position 4 to position 7, instantaneous flow rate value is m3/ H, and the integrated flow value is 1L unit, 0.1L unit, 0.01m respectively3Unit, 0.1m3It is designed to display in units.
[0029]
Note that the configuration of each setting switch is not limited to the example described above, and can be of any configuration. For example, instead of the aperture selection jumper wire 36 and the aperture and material selection switch 38 or the unit selection switch 39, a dip switch having a predetermined number of bits may be provided.
[0030]
FIG. 3 is a block diagram showing a circuit configuration of the above-described flow meter. In this figure, reference numeral 50 denotes a single-chip microcomputer (hereinafter simply referred to as CPU) that controls the entire flow meter, and includes therein a ROM 51 for storing a control program and an arithmetic coefficient table to be described later, A RAM 52 used as a data area for storing data and a work area, a first event counter (main counter) 53, a second event counter (sub counter) 54, a timer register group 55, and a liquid crystal display unit are driven. A display driver and the like are stored.
[0031]
Here, under the control of the control program, the first event counter (main counter) 53 counts the input signal from the first count signal input port iCNT1 of the CPU 50, and the second event counter (sub-counter). ) 54 counts the input signal from the second count signal input port iCNT2. The main counter 53 counts input pulses during a sampling time period set according to the diameter of the flow path (pipe) in which the flow meter is installed, and the sub-counter 54 counts for a certain period regardless of the diameter. The input pulses are counted. In the case of a pipe having a large diameter, the frequency of a pulse signal input from a sensor unit to be described later is reduced, and in the case of a pipe having a small diameter, the frequency of the input pulse signal is increased. Therefore, in order to accurately count low-frequency pulse signals, it is necessary to lengthen the counting period (sampling time). Therefore, in the present invention, the sampling time value of the main counter is set according to the aperture.
[0032]
Reference numeral 60 denotes a sensor unit including the piezoelectric element 13, an amplifier 61 that amplifies an electric signal from the piezoelectric element 13, and a waveform shaping circuit 62 that shapes the output signal of the amplifier 61 and outputs a pulse signal. The output of the sensor unit 60 is input in parallel to the first and second count signal input ports iCNT1 and iCNT2. The output of the sensor unit 60 is also applied to the connector 34 so that it can be output to an external device such as an adjustment inspection device. The sensor unit 60 is supplied with power Vcc via a second analog switch circuit 72 controlled by the output of the output port O2.
[0033]
A mode selection key 27 disposed on the upper surface of the upper case 22 is connected to the input port I1 of the CPU 50. Further, the output from the unit selection switch 39 (3 bits) is input to the input port I2, and the output (6 bits) of the aperture selection jumper wire 36 and the aperture and material selection switch 38 (model selection switch) is input to the input port I3. ), The inspection mode pin 37 is connected to the input port I4. Here, a power source Vcc is applied to the unit selection switch 39 and the aperture / material selection switches (36, 38) via a first analog switch 71. The first analog switch 71 Is controlled to be conducted by the output of the output port O1.
[0034]
Reference numeral 73 denotes a watchdog timer circuit which inputs an interrupt signal to the CPU 50 when a signal from the output port O3 of the CPU 50 is not input for a predetermined time. With this interrupt input, the CPU 50 starts a second-order start process described later. The scheduled output to the watchdog timer is executed by a timer interrupt processing routine every 25 msec, for example.
Reference numeral 74 denotes a power-on reset circuit, which detects when a power supply voltage Vcc is applied and applies a pulse signal to the reset terminal of the CPU 50. As a result, the CPU 50 executes a first-order start process described later.
[0035]
The output of the display driving circuit built in the CPU 50 is connected to the liquid crystal display 26 via an output port O4.
Reference numeral 75 denotes a first digital signal output circuit comprising a first MOS transistor Tr1. The gate of the first digital signal output circuit is connected to the output port O5 of the CPU 50. The source is connected to the negative electrode of the power supply and connected to an external device. The drain is connected to the terminal 35a, and the drain is connected to the connection terminal 35a to the external device 90. Further, 76 is a second digital signal output circuit comprising a second MOS transistor Tr2, the output port O6 is connected to the gate, the source is connected to the negative electrode of the power source, and the drain is connected to the connection terminal 35a for the external device. Has been. By using these first and second digital signal output circuits 75 and 76, various data can be output to the external device 90. Here, as the external device 90, an adjustment inspection device is connected in the inspection mode, and a centralized monitoring device is connected in the measurement mode. In the following, a MOS transistor is simply referred to as a transistor.
Since the signal output circuit using the MOS transistor is used in this way, the current consumption is extremely reduced, and the battery life can be greatly increased.
[0036]
The connector 34 is connected via a buffer circuit 78 to an output port O7 (for example, 10 bits) that outputs flow rate data measured by the CPU 50. As described above, the output from the sensor unit 60 is also connected to the connector 34, and together with the output of the output port O7, it is connected to the external device 90 (adjustment inspection device in the inspection mode). Become. Even if the input from the sensor unit 60 is measured with high accuracy, when the measurement result is sent to the external device 90, when the 8-bit D / A conversion is used as in the prior art, the resolution is large and the accuracy is high. Since it cannot be secured, 10-bit D / A conversion is used in the embodiment of the present invention.
[0037]
Reference numeral 80 denotes a power supply battery, for example, a dry battery. The battery 80 is connected to the power input terminal Vcc of the CPU 50, and the backup capacitor 40, the first voltage detector 81, the second voltage detector 82, the first and second analog switches 71 and 72, Applied to the power-on reset circuit 74 and the like. The output of the first voltage detector 81 is connected to the input port I5 of the CPU 50. When the power supply voltage Vcc becomes lower than the first predetermined voltage V1, a low level signal is supplied to the input port I5. Output. The second voltage detector 82 outputs a low level signal to the input port I6 when it detects that the power supply voltage Vcc is lower than a second predetermined voltage V2 (V2 <V1). That is, when V1 ≦ Vcc, the inputs of the input ports I5 and I6 are both at a high level. When V2 ≦ Vcc <V1, I5 is at a low level, I6 is at a high level, and when Vcc <V2, And I6 are both low.
[0038]
An example of the memory map of the ROM 51 and RAM 52 is shown in FIG. As shown in this figure, the area of the RAM 52 is provided with an area for storing a correction coefficient described later, a work area, an area for storing integrated total flow value data, an area for storing integrated batch flow value, and the like. . Here, the storage area of the integrated total flow value data and the integrated batch data is set so as to be able to store data having more digits than the display digits.
[0039]
In the area of the ROM 51, a control program, an aperture setting data table, an interrupt vector, and the like are stored. Here, the aperture setting data table is a table storing coefficient data for calculating the flow rate for each of 64 types of models and the sampling time of the first counter, and the aperture selection jumper wire 36 and the aperture And 6-bit model selection data from the material selection switch 38 (model selection switch) and used for the control.
[0040]
FIG. 4B is a diagram for explaining the configuration of the aperture setting table. As shown in this figure, the aperture setting table has a 4-page configuration in which 16 types of setting data are used as one page. As shown in the figure, each setting data includes a number of the setting data, a diameter code, a main body material code, a sampling time, a frequency f0 at which flow starts, and a frequency f5 corresponding to an instantaneous flow rate value of 110% of the rated flow rate. Are stored as frequency data f0 to f5, and linear gradient data a1 to a5 and intercept data b1 to b5 when the function of frequency and flow rate is approximated by a broken line.
Note that the data a1 to a5 and b1 to b5 are average values of instrumental error variations, and even if the flow rate is calculated using this data as it is, a highly accurate measurement result cannot be expected. Therefore, in the present invention, correction coefficients A1 to A5 and B1 to B5 are obtained for each unit in the inspection process described later, and the flow rate is calculated using these values. Thereby, it is possible to perform very accurate measurement.
[0041]
In addition, at the beginning of each page of the aperture setting table, data of the model of the aperture 10A and material L-PPS is stored, and the input frequency can be displayed as it is at the end of each page. Stores setting data. Thus, regardless of the setting of the aperture selection jumper wire 36, the same signal is sent to the adjustment inspection device by setting the aperture and material selection switch 38 to 0h (h represents a hexadecimal number) or Fh. The inspection process can be standardized.
[0042]
The sampling time is determined according to the frequency corresponding to the rated instantaneous flow rate. For example, when the frequency is 300 Hz or more (when the aperture is small), the sampling time is 1 second, and when the frequency is 150 to 300 Hz (medium aperture). Time) is 2 seconds, and when the frequency is less than 150 Hz (when the aperture is large), it is 3 seconds.
[0043]
Next, a control program for operating the flow meter in this way will be described in detail. This control program is operated by the main routine shown in FIGS. 5 and 6 and the timer interrupt routine activated by the interruption from the timer described above.
As shown in FIG. 5, this main routine has two start positions, a first rank start (start 1) and a second rank start (start 2). Here, when a reset signal is input from the power-on reset circuit 74, the operation starts from the start of the first order, and when an interrupt is input from the watchdog timer 73, the start of the second order is performed. The operation starts from.
[0044]
When the battery 80 is attached to the flow meter, the power-on reset circuit 74 detects this and a power-on reset pulse is applied to the reset terminal of the CPU 50. As a result, the process is started from start 1, and first, the first initialization process of step S1 is executed. In the first initialization process based on the power-on reset, a predetermined initialization process of the flowmeter is executed and all the contents of the RAM 52 are reset. Next, the first transistor 75 is turned on via the output port O5, and the second transistor 76 is turned off via the output port O6 (step S2). Thereby, the activation of the flow meter or the start of the first order can be notified to the external device 90 connected to the first and second transistors.
[0045]
On the other hand, when a reset signal is not output from the output port O3 to the watchdog timer 73 within a predetermined period for some reason, an interrupt signal is input from the watchdog timer 73. At this time, the second initialization process of step S3 is executed. In the second initialization process, a predetermined initialization process of the flowmeter is executed. Unlike the first initialization process, corrected coefficient data stored in the RAM 52, integration Clearing of total flow value data and integrated batch data is not performed.
[0046]
After step S2 or step S3 is executed, the process proceeds to step S4, where the first and second analog switches 71 and 72 are turned on (conductive) via the output ports O1 and O2, and the unit selection is performed. Supply of the power supply Vcc to the switch circuit 39, the aperture setting switch circuit (36, 38), and the sensor unit 60 is started. Thus, measurement data from the sensor unit 60 and setting data from the unit selection switch 39 and the aperture setting switch (36, 38) can be read.
Next, in step S5, the timing operation of the various timers 55 is started.
Subsequently, the process proceeds to step S6, and information (model data) related to the material and the diameter set by the diameter setting switch (36, 38) is read.
[0047]
Then, the process proceeds to step S7, and it is determined whether or not the inspection end flag is set. The inspection end flag is a flag that is set when the flow meter is inspected and coefficient data is corrected in an inspection process described later. When the battery is first mounted, this inspection end flag is not set, and the determination result of this step S7 is NO. At this time, the process proceeds to step S8, where the data relating to the material and the diameter set by the diameter setting switch (36, 38) read in step S6 is stored in a predetermined area in the RAM 52, and the process proceeds to step S9. . If the inspection process has already been performed and the inspection end flag is set, the determination result in step S7 is YES, and the process directly proceeds to step S9.
[0048]
In step S 9, display unit information set by the unit setting switch 39 is read and stored in a predetermined area of the RAM 52. In the measurement display process described later, measurement data is displayed based on the display unit information.
In step S10, the material and aperture information read in step S6 and the version information of the control program are displayed on the display unit 26 for a predetermined period. Thus, in the flowmeter of the present invention, when the operation is started, the version of the control program is displayed on the display unit 26 for displaying the measurement data, which is very convenient when performing maintenance or the like. .
[0049]
FIG. 19 is a diagram showing an example of the display form in step S10. In the figure on the left side of FIG. 19, the caliber and the material are displayed on a small four-digit display portion indicated by 26a, and the version of the control program is displayed on the large four-digit display portion indicated by 26b. It is displayed. In this example, it is shown that the version v of this control program is 3.8. Moreover, the display of the said diameter and material is displayed like the example shown on the right side of FIG. 19, for example. Here, as the diameter, there are a display in millimeters (mm) (A is added after the number) and an indication in inches (B is added after the number). Therefore, these apertures are displayed using the first to third digits in the 4-digit display section 26a as shown on the right side of FIG. Note that small, medium, and large shown on the left of each aperture in FIG. 19 indicate the classification to which each aperture belongs when each aperture is classified into three types: large, medium, and small.
Further, examples of the material include L-PPS, PPS (polyphenylene sulfide), PVC (polyvinyl chloride), PFA, SUS (stainless steel), and the like, which are shown in FIG. The fourth digit is displayed. This example shows that the aperture is 15A and the material is L-PPS.
[0050]
Now, after displaying the aperture, material, and program version (S10) in this way, the process proceeds to step S11, the output signal of the output port O1 is set to low level, and the first analog switch 71 is turned off (non-displayed). Conduction) state. Thereby, it is possible to eliminate power consumption in the circuit of the unit selection switch 39 and the circuit of the aperture setting switches (36, 38) that consume large power. Thus, in the present invention, power consumption is reduced by supplying a power supply voltage only at a necessary timing.
[0051]
Next, it progresses to step S12 and it is determined whether it is an inspection mode. This determination is performed by inputting a signal from the inspection mode pin 37 from the input port I4 and determining whether or not the inspection mode pin 37 is short-circuited. When the inspection mode pin 37 is short-circuited and set to the inspection mode, the process proceeds to step S13, and it is determined whether or not the inspection end flag is set. As a result of the determination, when the inspection end flag is not set, an inspection process in step S14 described later is executed, and thereafter, the process proceeds to a voltage check process in step S15. On the other hand, when the inspection mode is not set or when the inspection end flag is set, the process proceeds to the voltage check process in step S15 as it is.
[0052]
Although details of the voltage check process in step S15 will be described later, this process determines whether or not the voltage of the battery 80 is equal to or higher than a predetermined voltage, notifies an alarm, or replaces the battery. This is a process of setting the wait state until the time. After the voltage of the battery 80 is within the normal range and the voltage check process S15 is completed, the measurement display process of step S16 is executed. Details of the measurement display processing S16 will be described later. Here, based on the input signal from the sensor unit 60, measurement of the instantaneous flow rate and integration of the integrated flow rate are performed. After the measurement display process S16 is performed, it is determined whether or not the mode key 27 is operated (step S17). If there is a key operation, the key input process of step S18 is executed. This key input process will be described later.
[0053]
Next, the process proceeds to step S19, where it is determined whether or not a predetermined time T (for example, 30 minutes) has elapsed. If the predetermined time has not elapsed, the process returns to step S12 and the processing from step S12 is performed again. Repeatedly executed. If the predetermined time has elapsed, the process proceeds to step S20, the timer for measuring the predetermined time T is reset to start measuring the time T, and then the analog switch 1 is turned on to turn on the unit selection switch 39. Are read (steps S21 and S22). Thus, from the next display, the measurement data is displayed in the new unit read and set in step S22. In step S23, the first analog switch 71 is turned off to reduce power consumption. Then, returning to the step S12, the steps S12 to S23 are repeatedly executed.
[0054]
The inspection step S14 will be described with reference to a connection diagram at the time of the inspection step shown in FIG. 7 and a flowchart of FIG. As described above, the operation mode of the flowmeter is roughly divided into two modes, an inspection mode and a measurement mode. Here, the inspection mode is a mode that is set when the inspection mode pin 37 is short-circuited. As shown in FIG. Correction processing is performed.
[0055]
In FIG. 7, a pipe 100 is provided with a reference high-precision flow meter 101, a flow meter mounting portion 1 of the present invention, a pump 102, and a flow control valve 103. As described above, the digital outputs from the first and second transistors 75 and 76 are output to the adjustment inspection device 90, and the 10-bit calculation output and the output of the sensor unit 60 are also The data is input to the adjustment inspection device 90 via the connector 34. Further, the output of the high-precision reference flow meter 101 is also input to the adjustment inspection device 90. Then, a control signal for the flow rate control valve 103 is output from the adjustment inspection device 90, and a predetermined flow rate is controlled to flow through the pipe 100 according to a predetermined inspection step.
[0056]
The inspection step S14 is executed in such a connected state. In the flowchart of FIG. 8, first, inspection of each part of the flow meter is executed in accordance with a predetermined procedure in step S31. In step S32, the second transistor Tr2 is turned on for a predetermined time and then turned off to notify the adjustment inspection device 90 that the first step of the inspection process has started. In response to this, the adjustment inspection apparatus 90 uses the reference flow rates Q0 to Q5 corresponding to the six frequencies f0 to f5 stored in the ROM 51 corresponding to the selected model (model) as the high-precision reference flow rate. While measuring with a total of 101, the flow control valve 103 is controlled to flow through the pipe. Here, first, the flow rate control valve 103 is controlled such that the first reference flow rate Q0 flows through the pipe 100. The flow meter counts and stores the input signal from the sensor unit 60 at this time (step S33). The count value at this time is F0. Then, the count value F0 and the flow rate Q0 at that time are displayed on the display unit 26, and are output to the adjustment inspection device 90 via the connector 34 (step S34).
FIG. 18 is a diagram showing the display at this time. As shown in the figure, “9” is displayed in the first digit of 26a, and the count value “F0” is displayed in the second to fourth digits. Informing that the display is in the inspection mode.
[0057]
Next, the process proceeds to step S35, where the second transistor Tr2 is turned on again for a predetermined time, and the adjustment inspection apparatus 90 is notified of the progress of the step. Accordingly, the adjustment inspection device 90 controls the second reference flow rate Q1 to flow through the pipe 100. The control unit 50 counts and stores the input from the sensor unit 60 at that time (S36), displays the count value F1 and the reference flow rate Q1, and outputs it to the adjustment inspection device 90 (S37). In step S38, correction coefficients A1 and B1 are calculated based on the count value F0 at the reference flow rate Q0 stored in step S33 and the count value F1 in the reference flow rate Q1 stored in step S36. The calculation of the correction coefficient is performed based on the following equations (1) and (2).
A1 = (Q1-Q0) / (F1-F0) (1).
B1 = (Q0 * F1-Q1 * F0) / (F1-F0) (2).
The calculated correction coefficients A1 and B1 are stored in a predetermined area of the RAM 52. In step S39, the second transistor Tr2 is turned on for a predetermined period to notify the adjustment inspection apparatus 90 that the process in this step has been completed.
[0058]
Thereafter, as in the case described above, the reference flow rates Q2 to Q5 are sequentially flowed, and the correction coefficients A2 to A5 and B2 to B5 are similarly calculated using the count values F2 to F5 at that time, and stored in the RAM 52. . In step S41, the end of the inspection process is displayed on the display unit 26. Further, in step S42, the inspection end flag is set, and the inspection process ends.
Note that the count data F0 to F5 output to the adjustment inspection apparatus 90 in steps S34, S37, etc. are stored as inspection records in the adjustment inspection apparatus 90.
[0059]
Next, the voltage check process will be described with reference to FIG. As described above, the first voltage detector 81 goes low when the power supply voltage Vcc supplied from the battery 80 becomes lower than the first predetermined voltage V1, and the second voltage detector 82 It becomes a low level when it becomes lower than the second predetermined voltage V2. Therefore, in this voltage check process, first, in step S51, it is determined whether or not the output of the first voltage detector 81 is at a low level. When V1 ≦ Vcc and this determination result is NO, in step S52, the “BAT” display 26e on the display unit 26 is turned off, the second transistor Tr2 is turned off, and this voltage check process is performed. finish.
[0060]
If Vcc <V1 and the determination result in S51 is YES, the process proceeds to step S54, and the "BAT" display 26e blinks to notify the user that the battery should be replaced. At the same time, the second transistor Tr2 is repeatedly turned on and off (S55), and this is also notified to the central control device 90. In step S56, it is determined whether or not the output of the second voltage detector 82 that compares the second predetermined voltage V2 (V2 <V1) with the power supply voltage Vcc is at a low level. When the result of this determination is NO, that is, when V2 ≦ Vcc <V1, this voltage check process is terminated as it is.
[0061]
On the other hand, if Vcc <V2 and the decision result in the step S56 is YES, the process proceeds to a step S57 to change the “BAT” display 26e from a blinking state to a continuously lit state and replace the battery for the user. Inform the effect. Then, both the first and second transistors Tr1 and Tr2 are turned on (S58), and the central control device 90 is also informed that the battery voltage is low and a power failure state occurs. Then, all displays other than the “BAT” display are turned off (S59), and the second analog switch SW2 is turned off (S60) to prevent power consumption. Then, the CPU 50 enters a wait state (S61).
[0062]
When the battery 80 is replaced by the user or the like in this wait state and the power supply voltage Vcc becomes higher than the high level of the first voltage detector 81, the wait state is released (S62). When the wait state is released, the process proceeds to step S63, where the second analog switch SW2 is turned on, the supply of the power supply voltage to the sensor unit 60 is restarted, and the first transistor Tr1 is turned off ( S64). In step S52, the “BAT” display is turned off. In step S53, the second transistor Tr2 is turned off, and the voltage check process is terminated.
[0063]
Next, the measurement display process will be described. Since this measurement display process is executed in cooperation with the 1-second timer interrupt process, first, the 1-second timer interrupt process will be described with reference to the flowchart of FIG.
As described above, the CPU 50 has a plurality of timers 55 built therein. This 1-second timer is one of them, and when 1 second is measured, a 1-second timer interrupt is generated, thereby starting the 1-second timer interrupt process shown in FIG.
When this process is started, first, the 1-second timer is restarted in step S71. This makes it possible to generate a 1-second timer interrupt at an accurate timing. In step S72, the sampling time set by the model data is determined. Based on the determination result, in steps S73 to S75, numerical values 1 to 3 corresponding to the determined sampling time are set in the register τ for storing the sampling time in the RAM 52. In step S76, the contents of the main counter 53 counting the pulse signals from the sensor unit 60 are added to the f register in the RAM 52, and measurement is started again from zero. Next, in step S77, the count contents of the sub counter 54 are stored in the f 'register in the RAM 52, and the sub counter starts counting from zero.
[0064]
In step S78, if the counting time of the main counter has reached the sampling time, the main counter flag is set. Although not shown in the figure, it goes without saying that the processing in steps S76 and S78 differs depending on the sampling time stored in the register τ. In step S79, the sub-counter flag is set, and the one-second timer interrupt process is terminated. That is, the main counter timing end flag is set when the sampling time is reached, and the sub-counter timing end flag is set for each 1-second timer interrupt process.
[0065]
Next, the measurement display process (S16) will be described with reference to the flowchart of FIG. When this measurement process is started, first, in step S81, it is determined whether or not the main counter flag is set. If the sampling time of the model has not been reached and the main counter flag is not set, the process proceeds to step S83 to determine whether or not the sub counter flag is set. If the main counter flag is set, the main counter measurement process is executed in step S82, and then the process proceeds to step S83. Although details will be described later, in the main counter measurement process S83, an instantaneous flow rate value Q, an integrated total flow rate value Qt, and an integrated batch flow rate value Qb are calculated based on measurement data (data in the f register) of the main counter. . At this time, the correction coefficients A1 to A5 and B1 to B5 described above are used.
[0066]
In step S83, it is determined whether or not the sub-counter flag is set. If the sub counter flag is not set, the process proceeds to step S85. When the determination result in S83 is YES, the process proceeds to step S84, and the sub counter measurement process is executed. Although details will be described later, in step S84, the display instantaneous value Q 'is calculated based on the count contents of the sub-counter 54 stored in the f' register. Then, the process proceeds to step S85.
[0067]
In step S85, the currently set measurement mode, that is, (1) the instantaneous flow meter mode, (2) the integrated flow meter mode, or (3) the integrated batch flow meter mode. It is determined whether or not. (1) When in the instantaneous flow meter mode, the instantaneous flow rate value Q 'calculated in the sub-counter measurement process S84 is displayed on the display unit 26 (S86). Further, (2) when in the integrated flow meter mode, the integrated total flow value Qt calculated in the main counter measurement process S82 is displayed (S87), and (3) when in the integrated batch flow meter mode, the integrated batch flow meter mode is displayed. The value Qb is displayed (S88).
[0068]
The main counter measurement process will be described with reference to FIG. In this process, first, the value of the ratio f / τ between the count data f by the main counter stored in the RAM 52 and the sampling time data τ of the model is determined to be a frequency (flow). It is determined whether or not the frequency is equal to or higher than the frequency. When the result of this determination is NO, the instantaneous value Q is set to 0 (S92), the process proceeds to step S96, the main counter flag is reset, and this main counter measurement process is terminated. On the other hand, when the determination result in S91 is YES, the process proceeds to step S93, and the instantaneous flow rate value is calculated based on the following equation (3) using the corrected coefficients Ai and Bi stored in the RAM. Q is calculated and stored in a register.
Q = Ai × f / τ + Bi (3).
[0069]
Next, it progresses to step S94 and the integrated total flow value Qt is updated. That is, the following expression (4) is executed.
Qt ← Qt + Q × (τ / 60) (4).
Then, the process proceeds to step S95, and the integrated batch flow rate value Qb is updated.
Qb ← Qb + Q × (τ / 60) (5).
In step S96, the main counter flag is reset, and the main counter measurement process is terminated. This calculation is executed in the same unit, for example, [L / min], and when displayed on the display unit, it is converted into a set unit system and displayed.
[0070]
Next, the sub-counter measurement process S84 will be described with reference to the flowchart of FIG. First, in step S101, it is determined whether or not the count value of the sub-counter stored in the f 'register is equal to or higher than the frequency with flow. When the result is NO, the process proceeds to step S102, the display instantaneous value Q 'is set to 0, and the bar segment 26f of the display unit 26 is turned off in step S103. In step S104, the first transistor Tr1 is turned on to notify the centralized monitoring device 90 that the flow is below the low limit value. In step S111, the sub-counter flag is reset. In this example, the low limit alarm output point is the flow present (start) point, but it goes without saying that an arbitrary value can be set in the storage means.
[0071]
On the other hand, if the decision result in the step S101 is YES, the process advances to a step S105 to calculate a display instantaneous value Q ′. This calculation is performed by the following equation (6).
Q '= Ai * f' + Bi (6).
Next, the process proceeds to step S106, and it is determined whether or not the display instantaneous value Q 'calculated in step S105 is 110% or more of the rated flow rate value. If the determination result is NO, the process proceeds to step S107, and the bar segment 26f is sequentially blinked from left to right. Then, the first transistor Tr1 is turned off, the process proceeds to step S111, and the sub-counter flag is reset.
[0072]
If the calculated display instantaneous value Q 'is 110% or more of the rating and the determination result in step S106 is YES, the process proceeds to step S109, and all the bar segments 26f are blinked simultaneously. Thereby, it can alert | report that it is the flow volume beyond a rating. In step S110, the first transistor Tr1 is turned on to notify the centralized monitoring device 90 that the flow is higher than the high limit value, that is, higher than the upper limit. In step S111, the sub-counter flag is reset. Here, the high limit alarm output point is the upper limit point of the flow, but it goes without saying that any value can be set in the storage means.
[0073]
Next, the key input process S18 will be described with reference to the flowchart of FIG. This process is executed when it is detected in step S17 (FIG. 6) that the mode selection key 27 has been pressed. The three measurement modes, that is, (1) the instantaneous flow meter mode, ( This is a process of sequentially switching between 2) the integrated flow meter mode and (3) the integrated batch flow meter mode each time the mode selection key 27 is operated. Further, the integrated batch data or the integrated total flow value data can be cleared according to the length of time that the mode selection key is pressed.
[0074]
First, in step S121, the unit used in the current mode is displayed blinking to notify the operator of the current mode. That is, when the currently selected mode is (1) the instantaneous flow meter mode, the unit display section 26c or 26d in the display section 26 is blinked. Further, (2) when in the integrated flow meter mode, the “m”3"" Or only the "L" portion of the 26d. Further, (3) even in the integrated batch flow meter mode, the same part as in the case of (2) is blinked. However, in this case, since “b” is displayed in the first digit of the small four-digit display portion, it can be distinguished from the case of (2).
[0075]
In step S122, it is determined whether or not the mode selection key 27 has been turned off before reaching the first predetermined time T1. When the result of this determination is YES, that is, when the pressing is for a time shorter than T1, the process proceeds to step S123, and the unit used in the current mode is displayed blinking in the same manner as in S121. Inform the user of the current mode. In step S124, after the mode selection key 27 is turned off, it is determined whether or not a second predetermined time T2 has elapsed. Here, T2 <T1. When the result of this determination is YES, this key input process is terminated.
[0076]
If the time T2 has not elapsed since the mode selection key 27 was turned off, the process proceeds to step S125 to determine whether or not the mode selection key 27 was turned on again. If the result of this determination is NO, this key input process is terminated. When the mode selection key 27 is turned on again, the process proceeds to step S126, and the current mode is advanced by one. That is, when the current mode is (1) instantaneous flow meter mode, the mode is changed to (2) cumulative flow meter mode, and when the current mode is (2) cumulative flow meter mode, the mode is changed to (3) cumulative batch flow meter mode. Change to (1) Instantaneous flow meter mode when the current is in (3) Integrated batch flow meter mode. In step S127, the unit corresponding to the changed new mode is displayed blinking in the same manner as described above, and the new mode data is displayed. Then, the process returns to step S122.
Thus, the measurement mode can be cyclically changed by repeatedly pressing the mode selection key 27 for a length of the first predetermined time T1 or less.
[0077]
On the other hand, when the mode selection key 27 is pressed for a long time equal to or longer than the first predetermined time T1, the determination result in step S122 is NO, and in step S128, the current mode is the integrated batch flow meter mode (3). It is determined whether or not. When the current mode is the integration batch flow meter mode, the process proceeds to step S129, and after the above-described integration batch data Qb is cleared, the process proceeds to step S130. If the determination result in S128 is NO, the process proceeds directly to step S130.
Thus, in the integrated batch flow meter mode, when the mode selection key 27 is pressed for T1 time or more, the integrated batch flow data stored in the RAM 52 is cleared and the flow is integrated again. be able to.
[0078]
In step S130, it is determined whether or not the mode selection key 27 has been turned off within a third predetermined time T3. Here, the third predetermined time T3 is a time satisfying the relationship of T2 <T1 <T3. When the result of this determination is NO, that is, when the time during which the mode selection key 27 is pressed is T3 or more, the process proceeds to step S131, and whether the current mode is (2) the integrated flow meter mode. It is determined whether or not. If the result of this determination is YES, the process proceeds to step S132, the accumulated total flow data Qt stored in the RAM 52 is cleared, and the process returns to step S123. When the determination result of step S130 is YES and when the determination result of step S131 is NO, the process returns to step S123.
As described above, in the integrated flow meter mode, when the mode selection key 27 is kept pressed for the third predetermined time T3 or more, the integrated total flow data Qt stored in the RAM 52 is cleared and again. Then, the integration of the flow rate data can be executed.
[0079]
Thus, in the present invention, based on the number of times the single mode selection key 27 is pressed and the length of the pressing time, the measurement mode is switched and the accumulated batch flow rate data Qb and the accumulated total flow rate data Qt are cleared. Can do. Therefore, it is not necessary to provide a large number of operation keys, and the device can be downsized.
[0080]
In the embodiment described above, the data stored in the aperture setting data table in the ROM is used as the frequency f0 corresponding to the flow frequency f0 and the flow rate of 110% of the rated value. The limit alarm and the high limit alarm are output as a logical sum and the first transistor Tr1 is turned on. By storing this data in a non-fixed storage means such as RAM or EEPROM, the low limit alarm and the high limit alarm are output. It becomes possible to arbitrarily set the flow rate value for generating the limit alarm. FIG. 20 is a diagram showing an embodiment in this case. By displaying the limit data, and using the DOWN key 42 for lowering the value, the UP key 43 for raising, and the input key 41, FIG. The low limit alarm output set point and the high limit alarm output set point can be changed. Reference numerals 46a and 46b denote output display LEDs corresponding to the first and second digital signal output circuits 75 and 76, respectively. In addition, as shown in FIG. 20, since the number of digits displayed on the display unit 45 is three digits, m is displayed as a unit display LED when displaying the integrated flow rate value.3A display LED 44a and an L display LED 44b are provided.
[0081]
【The invention's effect】
As described above, according to the present invention, since the measurement cycle of the first counter is set according to the frequency, sufficient resolution can be obtained even when the frequency is low, and high-precision measurement is performed. be able to.
In addition, since a correction coefficient is calculated for each unit in the inspection process and measurement is performed using the correction coefficient, highly accurate measurement can be performed.
Furthermore, since the lower limit and the upper limit of the measurement value are notified during measurement, the user can easily maintain and manage the measurement system.
Furthermore, since it is configured to notify that the battery voltage has dropped, the battery can be replaced before a power failure.
Furthermore, since a signal output circuit using a MOS transistor is used, power consumption can be reduced, and operation for a very long time is possible while using a battery as a power source.
Furthermore, since the battery consumption after a power failure is extremely reduced, the RAM data can be reliably stored. And since it backs up using an electric double layer capacitor, loss of data memorized at the time of battery exchange work can be prevented.
[0082]
Furthermore, since the conductor layer is provided on the inner surface of the case, reliable electrostatic shielding can be performed and the influence of noise can be eliminated.
Furthermore, you can change the unit of the integrated value, change the display digit of the integrated value, and change the unit of the instantaneous value without clearing the integrated value, so you can manage the measurement system without losing valuable integrated data. Becomes easy.
Furthermore, since the data stored at the head position and the data stored at the final position of any page of the storage means are unified, standardization and simplification of the adjustment inspection process Can be reduced, and as a result, the cost can be reduced.
Furthermore, when a piezoelectric bimorph element is used for the sensor unit, since there is no movable part, maintenance management becomes easy.
[Brief description of the drawings]
FIG. 1 is a structural diagram showing an example of a flowmeter according to an embodiment of the present invention, where (a) is a top view, (b) is a cross-sectional view, and (c) is a partially broken side view. is there.
2 is a diagram showing a configuration of a printed circuit board of the flow meter shown in FIG. 1. FIG.
3 is a block diagram showing a circuit configuration of the flow meter shown in FIG. 1. FIG.
FIG. 4 is a diagram for explaining a memory map and an aperture setting data table;
FIG. 5 is a flowchart showing a main routine.
FIG. 6 is a flowchart showing a main routine.
FIG. 7 is a diagram for explaining connection in an inspection mode;
FIG. 8 is a flowchart for explaining an inspection process;
FIG. 9 is a flowchart for explaining voltage check processing;
FIG. 10 is a flowchart of a 1-second timer interrupt routine.
FIG. 11 is a flowchart of a measurement display process.
FIG. 12 is a flowchart of main counter measurement processing;
FIG. 13 is a flowchart of sub-counter measurement processing.
FIG. 14 is a flowchart of key input processing.
FIG. 15 is a diagram showing a display form in the integrated flow meter mode.
FIG. 16 is a diagram showing a display form at the time of integration batch flow meter.
FIG. 17 is a diagram showing a display form when a voltage drop is detected.
FIG. 18 is a diagram illustrating a display form in an inspection mode.
FIG. 19 is a diagram showing a display form of material, aperture, and version.
FIG. 20 is a diagram showing another embodiment of the present invention.
[Explanation of symbols]
1 Weighing unit body
2 Measurement display section
3 Rotating shaft
13 Piezoelectric elements
24 Printed circuit board
26 Display section
27 Mode selection key
30 Conductive shield material
39 Unit selection switch
36, 38 Caliber setting switch
37 Inspection mode pin
40 Electric double layer capacitor
50 Control unit (1-chip micro computer)
51 ROM
52 RAM
53 Main counter
54 Sub-counter
55 timer
60 Sensor unit
71, 72 Analog switch
73 Watchdog timer
74 Power-on reset circuit
75, 76 Digital signal output circuit
80 batteries
81, 82 Voltage detector
90 External equipment

Claims (10)

流量に対応する周波数のパルス信号を検出するセンサ部と、該センサ部からのパルス信号を計数する第1および第2のカウンタと、前記第1および第2のカウンタの計数値に基づいて流量値を算出する制御部と、該算出した流量値を表示する表示部とを有する流量計であって、
前記第1のカウンタは流体が流れる配管の口径に応じて設定される第1の所定周期の間、前記パルス信号を計数するようになされており
前記第2のカウンタは一定の第2の所定周期の間、前記パルス信号を計数するようになされており、
前記第1のカウンタの計数値は積算流量の算出に用いられ、前記第2のカウンタの計数値は前記表示に表示する瞬時流量の算出に用いられることを特徴とする流量計。
A sensor unit that detects a pulse signal having a frequency corresponding to the flow rate, first and second counters that count pulse signals from the sensor unit, and a flow rate value based on count values of the first and second counters a control unit for calculating a, a flow meter for chromatic and a display unit for displaying a flow rate value the calculated,
The first counter during the first predetermined period set in accordance with the diameter of the pipe through which fluid flows, being adapted to count the pulse signals,
The second counter is configured to count the pulse signal during a constant second predetermined period;
The count value of the first counter is used to calculate the integrated flow rate, the count value of the second counter is a flowmeter, characterized in that used for calculating the instantaneous flow rate to be displayed on the display unit.
前記算出された流量の表示単位を設定する単位設定部と、所定時間毎に該単位設定部に給電する給電制御手段とを有し、該所定時間毎に前記単位設定部により設定された表示単位を読み込み、該読み込んだ表示単位を用いて前記算出された流量を表示することを特徴とする前記請求項記載の流量計。A unit setting unit for setting a display unit of the calculated flow rate, and a power supply control unit for supplying power to the unit setting unit every predetermined time, the display units set by the unit setting unit for each the predetermined time reading, flowmeter claim 1, wherein the displaying the calculated flow rate by using the read display units. 前記配管の口径を選択する口径選択手段と、各口径に対応する前記第1所定周期情報及び前記瞬時流量の算出のための係数データを格納した記憶手段とを有することを特徴とする前記請求項記載の流量計。Wherein characterized in that it comprises a bore selection means for selecting the diameter of the pipe, and a storage means for storing coefficient data for the calculation of the information and the instantaneous flow rate of the first predetermined period corresponding to each aperture The flow meter according to claim 1 . 前記記憶手段は複数のページを有するテーブル構成とされており、いずれのページにおいても、その先頭位置に格納されているデータは同一の口径および材質に対応するデータとされており、その最終位置に格納されているデータは入力信号の周波数をそのまま表示するためのデータとされていることを特徴とする前記請求項記載の流量計。The storage means is configured as a table having a plurality of pages, and in any page, the data stored at the head position is data corresponding to the same aperture and material, and at the final position. 4. The flowmeter according to claim 3, wherein the stored data is data for displaying the frequency of the input signal as it is. 電源電池と、該電池の電圧が第1の電圧よりも低いことを検出する第1電圧検出器と、前記電池の電圧が第2の電圧よりも低いことを検出する第2電圧検出器と、MOSトランジスタによる信号出力手段とを有し、
前記第1電圧検出器の出力に応じて前記表示部に電池の交換を要求する旨の表示を行うとともに前記信号出力手段を介して外部装置に所定の信号を出力し、
前記第2電圧検出器の出力により、計測動作および演算動作を停止するとともに前記表示部に停電モードである旨の表示を行い、さらに、前記信号出力手段を介して外部装置に所定の信号を出力するようになされていることを特徴とする前記請求項記載の流量計。
A power battery, a first voltage detector for detecting that the voltage of the battery is lower than the first voltage, a second voltage detector for detecting that the voltage of the battery is lower than the second voltage, Signal output means using MOS transistors,
In response to the output of the first voltage detector, the display unit displays a request for battery replacement and outputs a predetermined signal to the external device via the signal output means,
The output of the second voltage detector, measuring operation and the calculation operation is stopped to display indicating that the power failure mode on the display unit, further, outputs a predetermined signal to the external device via the signal output means claim 1 flow meter according to, characterized in that it is adapted to.
前記電源電池に並列にバックアップ用の電気二重層コンデンサが接続されていることを特徴とする前記請求項5記載の流量計6. The flow meter according to claim 5, wherein a backup electric double layer capacitor is connected in parallel to the power battery. 瞬時流量計モード、積算流量計モードおよび積算バッチ流量計モードを有し、モード切替時に当該モードに対応する表示単位を点滅し、また、積算バッチ流量計モードのときに前記表示部にその旨を表示することを特徴とする前記請求項記載の流量計。It has an instantaneous flow meter mode, an integrated flow meter mode, and an integrated batch flow meter mode. When the mode is switched, the display unit corresponding to the mode flashes. claim 1 flowmeter, wherein the display. 前記制御部の動作を監視するためのウォッチドッグタイマを有し、該ウォッチドッグタイマ出力によるリセット時には、積算流量値及び積算バッチ流量値を保持したまま、制御部の復帰を試みることを特徴とする前記請求項記載の流量計。It has a watchdog timer for monitoring the operation of the control unit, and at the time of resetting by the output of the watchdog timer, it tries to return the control unit while holding the integrated flow rate value and the integrated batch flow rate value The flow meter according to claim 1 . 前記センサ部により発生される流量に対応したパルス信号は、流路内の流量検出部に配置された渦発生体が発生するカルマン渦により、下流に配置された圧電バイモルフ素子に交番的に誘起される電荷を電荷増幅器により増幅し、波形整形回路により波形整形したパルス信号であることを特徴とする前記請求項記載の流量計。The pulse signal corresponding to the flow rate generated by the sensor unit is alternately induced in the piezoelectric bimorph element disposed downstream by Karman vortex generated by the vortex generator disposed in the flow rate detection unit in the flow path. that the charge was amplified by the charge amplifier, claim 1 flowmeter, wherein a is a pulse signal waveform shaping by the waveform shaping circuit. 内面に導電性シールド部材が塗布されている樹脂製ケースと、ネジを用いて前記樹脂製ケースに取り付けられるプリント基板とを有し、前記プリント基板の前記ネジに当接する部分には金属部が設けられており、前記プリント基板の電源負極と前記樹脂製ケース内面とが同電位とされていることを特徴とする前記請求項1記載の流量計A resin case having a conductive shield member applied on the inner surface and a printed circuit board attached to the resin case using screws, and a metal part is provided on a portion of the printed circuit board that contacts the screws The flowmeter according to claim 1 , wherein a power source negative electrode of the printed circuit board and an inner surface of the resin case have the same potential.
JP34574297A 1997-12-02 1997-12-02 Flowmeter Expired - Fee Related JP3615921B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34574297A JP3615921B2 (en) 1997-12-02 1997-12-02 Flowmeter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34574297A JP3615921B2 (en) 1997-12-02 1997-12-02 Flowmeter

Publications (2)

Publication Number Publication Date
JPH11160117A JPH11160117A (en) 1999-06-18
JP3615921B2 true JP3615921B2 (en) 2005-02-02

Family

ID=18378670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34574297A Expired - Fee Related JP3615921B2 (en) 1997-12-02 1997-12-02 Flowmeter

Country Status (1)

Country Link
JP (1) JP3615921B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004074856A1 (en) 1998-09-14 2004-09-02 Hidemi Yamanaka Frequency measuring method, frequency measuring device, physical quantity measuring device, flowmeter, flow rate sensing switch, method for control flowmeter, method for controlling flow rate sensing switch, and recorded medium on which control program is recorded
JP4651784B2 (en) * 2000-07-14 2011-03-16 パナソニック株式会社 Gas shut-off device
JP3958938B2 (en) * 2001-02-21 2007-08-15 矢崎総業株式会社 Automatic notification device
JP2004110485A (en) * 2002-09-19 2004-04-08 Hitachi Kokusai Electric Inc Display device for stock quotation
JP4672415B2 (en) * 2005-03-31 2011-04-20 株式会社鷺宮製作所 High temperature fluid flow meter
KR101196755B1 (en) * 2012-02-16 2012-11-05 주식회사 서진인스텍 Flow meter for measuring flow rate at several flow rate zones
JP6095096B2 (en) * 2012-10-01 2017-03-15 愛知時計電機株式会社 Ultrasonic flow meter
WO2018044415A1 (en) * 2016-08-31 2018-03-08 Ecowell, Llc Container-less custom beverage vending invention
JP6321231B2 (en) * 2017-01-30 2018-05-09 愛知時計電機株式会社 Ultrasonic flow meter
CN113566921A (en) * 2021-07-15 2021-10-29 宁波水表(集团)股份有限公司 Counting and sampling method for intelligent water meter, intelligent water meter and storage medium

Also Published As

Publication number Publication date
JPH11160117A (en) 1999-06-18

Similar Documents

Publication Publication Date Title
US4848164A (en) Liquid flow meter
US5574229A (en) Electronic water meter with corrections for flow rate
JP3615921B2 (en) Flowmeter
US4399510A (en) System for monitoring utility usage
US9476740B2 (en) Reverse flow detection and annunciation
WO2016043863A1 (en) Real-time flow compensation in usage accumulation
US6269701B1 (en) Electromagnetic flowmeter deriving power from signalling loop current
CN107389160A (en) A kind of detection means and detection method for detecting gas meter, flow meter card table
JP3792878B2 (en) 2-wire measurement quantity transmitter and 2-wire flow rate transmitter
EP1037065B1 (en) Battery charge monitor for an electronic appliance
US6611785B1 (en) Flowmeter, flow detecting switch, control method of flowmeter, control method of flow detecting switch, and recording medium having recorded a control program
CN211553008U (en) Non-magnetic sensor detection tool
JP4126117B2 (en) Flowmeter
EP0626566B1 (en) Signal correction circuit for a flow meter
JP3964554B2 (en) Flow meter, control method thereof, and recording medium recording control program
JPH08189852A (en) Gas meter
JP3494743B2 (en) Flowmeter
JPS63191212A (en) Flow rate controller
JP3387673B2 (en) Flow meter with temperature display
JP2001188983A (en) Method and device for transmitting physical quantity data, and system and instrument for flow rate measurement
JP3866975B2 (en) Gas meter and gas meter inspection method
CN216361634U (en) Gas flow standard part calibrating device
JP3481715B2 (en) Karman vortex flow meter
JP3167552B2 (en) Flowmeter
CN213481444U (en) Strong acid and alkali resistant electromagnetic flowmeter

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040706

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040713

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040909

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041026

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041102

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20081112

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081112

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091112

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101112

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111112

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111112

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121112

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131112

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees