Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3762463B2 - Communication mode setting device - Google Patents
[go: Go Back, main page]

JP3762463B2 - Communication mode setting device - Google Patents

Communication mode setting device Download PDF

Info

Publication number
JP3762463B2
JP3762463B2 JP27315295A JP27315295A JP3762463B2 JP 3762463 B2 JP3762463 B2 JP 3762463B2 JP 27315295 A JP27315295 A JP 27315295A JP 27315295 A JP27315295 A JP 27315295A JP 3762463 B2 JP3762463 B2 JP 3762463B2
Authority
JP
Japan
Prior art keywords
data
substrates
input
output terminal
communication mode
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
JP27315295A
Other languages
Japanese (ja)
Other versions
JPH09114739A (en
Inventor
誠 大菊
Original Assignee
トキコテクノ株式会社
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 トキコテクノ株式会社 filed Critical トキコテクノ株式会社
Priority to JP27315295A priority Critical patent/JP3762463B2/en
Publication of JPH09114739A publication Critical patent/JPH09114739A/en
Application granted granted Critical
Publication of JP3762463B2 publication Critical patent/JP3762463B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)
  • Storage Device Security (AREA)

Description

【0001】
【発明の属する技術分野】
本発明はメモリ内のデータに基づいて演算を行い、外部からデータの読み出し・書き込み可能とする通信モード又は外部からデータの書き込み禁止とする通信モードの設定を可能とする通信モード設定装置に関する。
【0002】
【従来の技術】
例えば流量計の流量演算部のハウジング内には、流量パルスを積算して流量を算出するための流量演算回路が設けられた基板が取り付けられている。この流量演算回路では、流量に応じて検出された流量パルスを積算してメモリに記憶された補正係数や器差に基づいて流量を演算する。
【0003】
この流量演算部の必要とするデータは任意に読み出し・書き込みが可能なメモリに記憶されており、これらのデータのなかには補正係数値や器差データ等のように一般ユーザに書き換えられてはならないものがある。
そのため、従来は、演算回路のCPUに設定される外部端末のアプリケーションソフトウエアを社内用と一般ユーザ用の2種類を用意しており、出荷前のテストがメンテナンス時に実行される社内用のアプリケーションソフトウエアでは外部から全データの書き込みを許可し、一般ユーザ用のアプリケーションソフトウエアでは外部から一部データ(例えば、補正係数値、器差データ等)の書き込みを禁止していた。
【0004】
また、従来においては、前述のデータをハウジング内の基板上に設けられたディップスイッチ等を用いて通信モードを設定することが一般的であったため、ハウジングを封印することによってディップスイッチの操作を禁止してメモリに格納されたデータが変えられないように保護していた。
【0005】
【発明が解決しようとする課題】
しかしながら、従来は2種類の端末用アプリケーションソフトウエアを必要とするので、ソフトウエアの管理が煩雑になるという問題があった。
また、従来はメンテナンス時に作業者がディップスイッチを操作して通信モードを切り換える必要があり、その操作が面倒であるばかりかディップスイッチを操作しないと、誤って書き込み禁止対象データを書き込んでしまうおそれがあり出荷後のメンテナンスに対応できないという問題があった。
【0006】
そこで、本発明は上記問題を解決した通信モード設定装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
上記課題を解決するため、本発明は以下のような特徴を有するものである。
上記請求項1の発明は、回路部品が配設された複数の基板と、
導電性を有し、互いに対向する状態に配設された前記複数の各基板を連結する導通スタッドと、
前記複数の基板間が前記導通スタッドにより接続されている場合には、外部からのデータの書き込みを禁止し、前記複数の基板間が前記導通スタッドにより接続されていない場合には、外部からデータの読み出し・書き込みを許可する通信モード切換手段と、
からなることを特徴とするものである。
【0008】
従って、上記請求項1によれば、複数の基板間が導通スタッドにより接続されている場合には、外部からのデータの書き込みを禁止し、複数の基板間が導通スタッドにより接続されていない場合には、外部からデータの読み出し・書き込みを許可するため、従来のように複数のアプリケーションソフトウエアを用意する必要がなく、面倒なソフトウエアの管理を不要にできる。また、メンテナンス時に基板上に設けられたディップスイッチを操作するといった面倒な作業を行う必要がなく、メンテナンス作業を簡略化して作業時間を短縮することができる。
【0009】
また、請求項2の発明は、回路部品が配設された複数の基板と、該複数の基板が収納されるハウジングの蓋の開又は閉を検出するセンサと、前記蓋が閉じていることを該センサが検出している場合には外部からのデータの書き込みを禁止し、前記蓋が開いていることを前記センサが検出している場合には外部からのデータの読み出し・書き込みを許可する通信モード切換手段と、からなることを特徴とするものである。
【0010】
従って、上記請求項2によれば、蓋が閉じていることをセンサが検出している場合には外部からのデータの書き込みを禁止し、蓋が開いていることをセンサが検出している場合には外部からのデータの読み出し・書き込みを許可するため、従来のように複数のアプリケーションソフトウエアを用意する必要がなく、面倒なソフトウエアの管理を不要にできる。また、メンテナンス時に基板上に設けられたディップスイッチを操作するといった面倒な作業を行う必要がなく、メンテナンス作業を簡略化して作業時間を短縮することができる。
【0011】
【発明の実施の形態】
以下、図面と共に本発明になる通信モード設定装置の一実施例について説明する。尚、図1は通信モード設定装置の第1実施例が適用された流量演算部の斜視図、図2は流量演算部の分解斜視図である。
【0012】
被測流体の流量を計測する流量計1(図1中、一点鎖線で示す)は、上部に流量パルスを積算して流量を演算する流量演算部2(図1中、一点鎖線で示す)を有する。流量演算部2は箱状に形成されたハウジング3の内部に複数(本実施例では、3枚とする)の基板4〜6が配設された構成となっている。各基板4〜6は上方からみると六角形に形成されており、左右の角部近傍には取付ネジ9が挿通される小孔4a〜6a,4b〜6bが設けられている。また、左側の小孔4a〜6aの周囲には、フレームグランド4c〜6cが環状に設けられている。
【0013】
ハウジング3は上部開口が蓋3aにより閉塞された密閉構造とされている。複数の基板4〜6は、夫々対向させた状態で上下方向に積み重ねられており、各基板4〜6間には導電性を有する金属により形成された円柱状の導通スタッド7(7A〜7C)及び絶縁樹脂材により形成された円柱状の絶縁スタッド8(8A〜8C)が取り付けられている。
【0014】
導通スタッド7(7A〜7C)及び絶縁スタッド8(8A〜8C)は内部にネジ9が挿通される挿通孔7a,8aを有する。また、導通スタッド7は、上下端部が各基板4〜6のフレームグランド4a〜6aに当接されて状態に組み合わせられ、各基板4〜6のフレームグランド4a〜6aと同一レベルとなる。そして、各基板4〜6は各基板4〜6間に配設された導通スタッド7(7A〜7C)及び絶縁スタッド8(8A〜8C)に挿通されたネジ9の締め付けによりハウジング3内の所定取付位置に固定される。
【0015】
ここで、各基板4〜6に配設された回路構成について説明する。図3は流量演算部2のブロック図である。
CPU(Central Processing Unit )11は、流量演算部2を制御するためのICであり、上段の基板4に配設されている。また、CPU11は他の基板5,6に配設された他のICと入出力端子12〜16及びバスライン17を介して接続されている。
【0016】
電源18は上段の基板4に配設されており、CPU11及び後述する表示ブロック20,メモリブロック28等の他のICに電源を供給している。
リセット回路19は上段の基板4に配設されており、CPU11及び周辺機器に対してリセット信号を出力し、流量演算部2を初期状態に設定する回路である。
【0017】
表示ブロック20は、表示ドライバ21と表示器22とから構成されている。また、表示ドライバ21は中段の基板5に配設されており、入出力端子12を介してCPU11と接続されている。そして、表示データはCPU11内で表示器22の各セグメントに対応したデータに展開し、1ビット毎に入出力端子12を介してシリアル通信によって転送される。
【0018】
出力ブロック23は下段の基板6に配設されており、アナログ出力回路24,通信回路25,パルス出力回路26から構成されている。また、アナログ出力回路24は積分回路27,入出力端子13から構成されており、CPU11で所望の出力値に対応した矩形波を入出力端子13から積分回路27に出力することによってアナログ信号が出力される。
【0019】
通信回路25はモデム28と入出力端子14から構成されており、通信データを入出力端子14から通信手順に則ってシリアル転送することによってモデム27に送られる。モデム27では通信データに対してFSK(Frequency Shift Keying)変調し、アナログ出力信号に重畳することによって通信データを送信する。
【0020】
パルス出力回路26は入出力端子15を1単位パルス毎に出力レベルをハイレベル又はローレベルに切り替えることによってパルスを入出力端子15から出力する。
メモリブロック29はEEPROM(Eelectically Erasable Programmable Read Only Memory )30,SRAM(Static Random Access Memory )31,カレンダ回路32から構成されている。EEPROM30は不揮発性であるが、連続書き込みに制限があるため通常はSRAM31内のデータを利用し、適宜EEPROM30へバックアップする。
【0021】
そして、SRAM31のデータが何らかの原因で破壊された場合には、EEPROM30のデータをSRAM31にコピーし、そのデータを用いて流量演算部2を動作させる。そのため、EEPROM30とSRAM31は基本的には同一のデータが格納されている。
【0022】
カレンダ回路32は日時を自動的にカウントし、任意に設定、読み出し可能なICである。
流量演算部2の必要とするデータはEEPROM30、SRAM31に夫々記憶されており、通信を用いることにより任意に読み出し・書き込みが可能である。これらのデータのなかには係数値や器差データを始めとして一般ユーザに書き換えられてはならないものがある。
【0023】
そのため、本実施例では、ハウジング3内の所定位置に基板2〜4が正常に取り付けられた状態で使用されている場合には正常状態とし、この正常状態のとき外部からデータの書き換えが要求されてもデータ全部、もしくはデータの一部(書き込み禁止対象データ)に対して書き換えを禁止する。
【0024】
これとは逆に、ハウジング3の蓋3aが開かれて基板4がハウジング3から取り出されていたり、スタッド7,8が外されて基板2〜4が分解された状態で使用されている場合には、社内テストや出荷後のメンテナンスと判断して全データの書き換えを許可する。
【0025】
このように外部との通信モードを切り替える方法として、本実施例では入出力端子16のレベルを検知して切り替える方法を用いており、入出力端子16がローレベルのとき通常状態の通信モードが設定され、入出力端子16がハイレベルのときにはメンテナンス状態の通信モードが設定されるようになっている。
【0026】
図4は上記入出力端子16の回路図である。
上記各基板4〜6間に導通スタッド7(7A〜7C)を取り付けた基板取付構造においては、入出力端子16が導通スタッド7(7A〜7C)を介して各基板4〜6のフレームグランド4a〜6aに接続されている。
【0027】
そして、基板4にCPU11が設けられている場合、入出力端子16は導通スタッド7Aに接続されている。また、導通スタッド7Aがフレームグランド4aに接続されて場合には入出力端子16がフレームグランド4aと同一レベルとなり、導通スタッド7Aがフレームグランド4aに接続されていない場合には入出力端子16がプルアップ抵抗33によって電源18にプルアップする。
【0028】
ここで、通常使用時には、入出力端子16は導通スタッド7(7A〜7C)を介して各基板4〜6のフレームグランド4a〜6aに接続されているのでフレームグランドレベル(ローレベル)である。そして、各基板4〜6間の導通スタッド7の何れか一つを外した場合には、入出力端子16は電源レベル(ハイレベル)になる。
【0029】
そこで、CPU11は、入出力端子16がローレベルである場合にはEEPROM30、SRAM31に記憶されているデータの書き換えを禁止する通信モードを設定し、ハイレベルである場合にはEEPROM30、SRAM31に記憶されているデータの書き換えを許可する通信モードを設定する。また、本実施例では、EEPROM30、SRAM31に記憶されている全データを書き換え可能の状態で使用する社内検査時やメンテナンス時には、導通スタッド7Aを基板4から外すか、あるいは導通スタッド7Aを絶縁スタッド8Aと交換することによってメンテナンスの通信モードを設定することができる。
【0030】
図5はCPU11が実行するデータ書き換えモードの処理のフローチャートである。
CPU11は、ステップS1(以下「ステップ」を省略する)において、今回の通信が読み出し要求であるか、書き込み要求であるのかを判定する。今回の通信が書き込み要求である場合には、S2に進み、要求されたデータを外部端末へ送信する。
【0031】
しかしながら、ステップS1で読み出し要求があった場合には、S3に進み、書き込み要求のあったデータが書き込み禁止対象となっているか否かを判定する。書き込み禁止対象外のデータである場合には、S4に進み、受信されたデータを所定のメモリエリア(EEPROM30又はSRAM31)に格納する。
【0032】
また、上記S3において、書き込み要求のあったデータが書き込み禁止対象となっている場合には、S5に進み、入出力端子16の状態検査を行う。すなわち、S5では入出力端子16がハイレベルか、あるいはローレベルかを判定する。
このS5において、導通スタッド7Aが基板4と基板5との間に介在しているときは入出力端子16がローレベルであり、この場合S6に進み、書き込み禁止であると判断してその旨を外部端末に返信する。しかし、導通スタッド7Aが基板4と基板5との間に介在していないときは入出力端子16がハイレベルであり、この場合S7に進み、書き込み要求のあったデータをメモリエリア(EEPROM30又はSRAM31)に格納する。
【0033】
このように、CPU11は、導通スタッド7の有無により切り換わる入出力端子16のレベルを判定することにより、書き込み禁止対象のデータの書き込み要求があっても入出力端子16がハイレベルであるときのみメモリエリアへの書き込みを可能とするが、入出力端子16がローレベルであるときはメモリエリアへの書き込みを禁止する。すなわち、入出力端子16がハイレベルである場合には社内テストや出荷後のメンテナンスと判断して全データの書き換えを許可し、入出力端子16がローレベルである場合には正常状態であると判断して全データあるいは一部データ(書き込み禁止対象データ)の書き換えを禁止する。
【0034】
このように、導通スタッド7の有無によりデータ書き込みの通信モードを自動的に切り換えることができるので、例えば従来のように2種類の端末用アプリケーションソフトウエアを用意する必要がなく、ソフトウエアの管理が煩雑になるといった問題も解消することができる。また、メンテナンス時に基板上に設けられたディップスイッチを操作するといった面倒な作業を行う必要がなく、メンテナンス作業を簡略化して作業時間を短縮することができ、出荷後のメンテナンス作業が容易に行える。
【0035】
図6は第2実施例のブロック図である。
ハウジング3の内側には、磁石34が設けられている。そして、磁石34に近接するように取り付けられた基板4には、リードスイッチ35が配設されている。リードスイッチ35は一端がCPU11の入出力端子16に接続され、他端が導通スタッド7Aに接続されている。すなわち、本実施例の構成では、リードスイッチ35が磁石34に近接することにより基板4の取付位置を検出することができる。
【0036】
リードスイッチ35は基板4がハウジング3内の所定の取付位置に取り付けられている場合には、磁石34に近接して閉成しており、基板4が所定取付位置から外されると開成する。そのため、基板4が所定取付位置にあるときは、リードスイッチ35が閉成して入出力端子16はローレベルとなる。また、基板4が所定取付位置にないときは、リードスイッチ35が開成して入出力端子16はハイレベルとなる。
【0037】
従って、CPU11は、リードスイッチ35が閉成した場合には入出力端子16がローレベルとなりEEPROM30、SRAM31に記憶されているデータの書き換えを禁止し、リードスイッチ35が開成した場合には入出力端子16がハイレベルとなりEEPROM30、SRAM31に記憶されているデータの書き換えを許可する。
【0038】
図7は第3実施例のブロック図である。
流量演算部2のハウジング3内に光センサ36を設けてなる。この光センサ36は、ハウジング3の蓋3aの開又は閉を検出するためのセンサである。そして、基板4には光センサ36からの信号を入出力端子16にTTL信号として入力するアンプ回路37が設けられている。
【0039】
ハウジング3の蓋3aが開とされたときは、光センサ36が外部からの光を検知して信号を出力するため、入出力端子16はハイレベルとなる。また、ハウジング3の蓋3aが閉とされたときは、光センサ36が外部からの光を検知できないので、入出力端子16はローレベルとなる。
【0040】
従って、CPU11は、光センサ35が光を検知できない場合には入出力端子16がローレベルとなり、ハウジング3の蓋3aが閉ざされているものと判断してEEPROM30、SRAM31に記憶されているデータの書き換えを禁止する。しかしながら、光センサ36が光を検知したときは光センサ36からの検出信号により入出力端子16がハイレベルとなり、ハウジング3の蓋3aが開かれているものと判断してEEPROM30、SRAM31に記憶されているデータの書き換えを許可する。
【0041】
尚、上記実施例では、ハウジング3内に3枚の基板4〜6を収納する構成を一例として挙げて説明したが、これに限らず、2枚以上の基板が設けられた構成であれば良い。
また、上記実施例では、各基板4〜6間に導通スタッド7及び絶縁スタッド8を1本ずつ設けたが、夫々2本以上配設する構成としても良い。
【0042】
また、上記各実施例を複数組み合わせた構成、例えば上記第1実施例と第3実施例の組み合わせ、あるいは上記第2実施例と第3実施例の組み合わせとしても良いのは勿論である。
また、上記各実施例を複数組み合わせた構成とする場合、上記各実施例毎にメモリに書き込み可能とするデータ種類を指定させることもできる。
【0043】
また、上記実施例では、流量計の通信モード設定装置を一例として説明したが、これに限らず、流量計以外の他の機器にも適用することができるのは勿論である。
【0044】
【発明の効果】
上述の如く、上記請求項1によれば、複数の基板間が導通スタッドにより接続されている場合には、外部からのデータの書き込みを禁止し、複数の基板間が導通スタッドにより接続されていない場合には、外部からデータの読み出し・書き込みを許可するため、従来のように複数のアプリケーションソフトウエアを用意する必要がなく、面倒なソフトウエアの管理を不要にできる。また、メンテナンス時に基板上に設けられたディップスイッチを操作するといった面倒な作業を行う必要がなく、メンテナンス作業を簡略化して作業時間を短縮することができる。
【0045】
また、請求項2によれば、蓋が閉じていることをセンサが検出している場合には外部からのデータの書き込みを禁止し、蓋が開いていることをセンサが検出している場合には外部からのデータの読み出し・書き込みを許可するため、従来のように複数のアプリケーションソフトウエアを用意する必要がなく、面倒なソフトウエアの管理を不要にできる。また、メンテナンス時に基板上に設けられたディップスイッチを操作するといった面倒な作業を行う必要がなく、メンテナンス作業を簡略化して作業時間を短縮することができる。
【図面の簡単な説明】
【図1】本発明になる通信モード設定装置の第1実施例が適用された流量演算部の斜視図である。
【図2】流量演算部の分解斜視図である。
【図3】流量演算部のブロック図である。
【図4】CPUの入出力端子の回路図である。
【図5】CPUが実行するデータ書き換えモードの処理のフローチャートである。
【図6】第2実施例のブロック図である。
【図7】第3実施例のブロック図である。
【符号の説明】
1 流量計
2 流量演算部
3 ハウジング
4〜6 基板
4a〜6a フレームグランド
7 導通スタッド
8 絶縁スタッド
11 CPU
12〜16 入出力端子
17 バスライン
23 出力ブロック
24 アナログ出力回路
25 通信回路
26 パルス出力回路
29 メモリブロック
30 EEPROM
31 SRAM
34 磁石
35 リードスイッチ
36 光センサ
37 アンプ回路
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a communication mode setting device that performs a calculation based on data in a memory and enables setting of a communication mode in which data can be read / written from outside or a communication mode in which data writing is prohibited from outside.
[0002]
[Prior art]
For example, in a housing of a flow rate calculation unit of a flow meter, a substrate provided with a flow rate calculation circuit for calculating a flow rate by integrating flow rate pulses is attached. In this flow rate calculation circuit, flow rate pulses detected according to the flow rate are integrated to calculate the flow rate based on the correction coefficient and instrumental difference stored in the memory.
[0003]
The data required by this flow rate calculation unit is stored in a memory that can be read and written arbitrarily, and some of these data, such as correction coefficient values and instrumental error data, must not be rewritten by general users There is.
For this reason, two types of external terminal application software set for the CPU of the arithmetic circuit have been prepared for in-house use and general user use, and in-house application software is used for pre-shipment testing during maintenance. In the software, writing of all data is permitted from the outside, and in the application software for general users, writing of some data (for example, correction coefficient values, instrumental difference data, etc.) is prohibited from the outside.
[0004]
Also, in the past, it was common to set the communication mode using the dip switch etc. provided on the board in the housing for the above data, so the operation of the dip switch is prohibited by sealing the housing Thus, the data stored in the memory was protected from being changed.
[0005]
[Problems to be solved by the invention]
However, conventionally, since two types of application software for terminals are required, there is a problem that software management becomes complicated.
Conventionally, it is necessary for an operator to switch the communication mode by operating a dip switch during maintenance, and not only is the operation cumbersome, but if the dip switch is not operated, there is a risk that the write-protected data will be written by mistake. There was a problem that it was not possible to handle maintenance after shipment.
[0006]
Therefore, an object of the present invention is to provide a communication mode setting device that solves the above-described problems.
[0007]
[Means for Solving the Problems]
In order to solve the above problems, the present invention has the following features.
The invention of claim 1 includes a plurality of substrates on which circuit components are disposed;
A conductive stud for connecting each of the plurality of substrates having electrical conductivity and arranged to face each other;
When the plurality of substrates are connected by the conductive stud, writing of data from the outside is prohibited, and when the plurality of substrates are not connected by the conductive stud, data from the outside is prohibited . Communication mode switching means for permitting reading and writing;
It is characterized by comprising.
[0008]
Therefore, according to the first aspect, when a plurality of substrates are connected by conductive studs, data writing from the outside is prohibited, and when a plurality of substrates are not connected by conductive studs. Since data reading / writing is permitted from the outside, it is not necessary to prepare a plurality of application software as in the prior art, and troublesome software management can be eliminated. Further, it is not necessary to perform troublesome work such as operating a dip switch provided on the substrate during maintenance, and the maintenance work can be simplified and the working time can be shortened.
[0009]
According to a second aspect of the present invention, there is provided a plurality of substrates on which circuit components are disposed, a sensor for detecting opening or closing of a lid of a housing in which the plurality of substrates are accommodated, and the lid being closed. Communication that prohibits external data writing when the sensor detects, and permits external data reading and writing when the sensor detects that the lid is open Mode switching means.
[0010]
Therefore, according to the second aspect, when the sensor detects that the lid is closed, data writing from the outside is prohibited, and when the sensor detects that the lid is open. Since external data read / write is permitted , it is not necessary to prepare a plurality of application software as in the prior art, and troublesome software management can be eliminated. Further, it is not necessary to perform troublesome work such as operating a dip switch provided on the substrate during maintenance, and the maintenance work can be simplified and the working time can be shortened.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of a communication mode setting device according to the present invention will be described below with reference to the drawings. 1 is a perspective view of a flow rate calculation unit to which the first embodiment of the communication mode setting device is applied, and FIG. 2 is an exploded perspective view of the flow rate calculation unit.
[0012]
A flow meter 1 (indicated by a one-dot chain line in FIG. 1) for measuring a flow rate of a fluid to be measured has a flow rate calculation unit 2 (indicated by a one-dot chain line in FIG. 1) for calculating a flow rate by integrating a flow rate pulse on the upper part. Have. The flow rate calculation unit 2 has a configuration in which a plurality (three in this embodiment) of substrates 4 to 6 are disposed inside a box-shaped housing 3. Each of the substrates 4 to 6 is formed in a hexagonal shape when viewed from above, and small holes 4a to 6a and 4b to 6b through which mounting screws 9 are inserted are provided in the vicinity of the left and right corners. Further, frame grounds 4c to 6c are annularly provided around the left small holes 4a to 6a.
[0013]
The housing 3 has a sealed structure in which an upper opening is closed by a lid 3a. The plurality of substrates 4 to 6 are stacked in the vertical direction so as to face each other, and a cylindrical conductive stud 7 (7A to 7C) formed of a conductive metal between the substrates 4 to 6. And cylindrical insulating studs 8 (8A to 8C) formed of an insulating resin material are attached.
[0014]
The conductive stud 7 (7A to 7C) and the insulating stud 8 (8A to 8C) have insertion holes 7a and 8a through which screws 9 are inserted. In addition, the conductive stud 7 is combined in a state where the upper and lower end portions are in contact with the frame grounds 4a to 6a of the substrates 4 to 6 and are at the same level as the frame grounds 4a to 6a of the substrates 4 to 6. And each board | substrate 4-6 is predetermined | prescribed in the housing 3 by the fastening of the screw | thread 9 inserted in the conduction | electrical_connection stud 7 (7A-7C) arrange | positioned between each board | substrate 4-6, and the insulation stud 8 (8A-8C). Fixed at the mounting position.
[0015]
Here, the circuit configuration disposed on each of the substrates 4 to 6 will be described. FIG. 3 is a block diagram of the flow rate calculation unit 2.
A CPU (Central Processing Unit) 11 is an IC for controlling the flow rate calculation unit 2 and is arranged on the upper substrate 4. The CPU 11 is connected to other ICs disposed on the other substrates 5 and 6 via the input / output terminals 12 to 16 and the bus line 17.
[0016]
The power source 18 is disposed on the upper substrate 4 and supplies power to the CPU 11 and other ICs such as a display block 20 and a memory block 28 described later.
The reset circuit 19 is disposed on the upper substrate 4 and outputs a reset signal to the CPU 11 and peripheral devices to set the flow rate calculation unit 2 to an initial state.
[0017]
The display block 20 includes a display driver 21 and a display 22. The display driver 21 is disposed on the middle substrate 5 and is connected to the CPU 11 via the input / output terminal 12. The display data is expanded into data corresponding to each segment of the display 22 in the CPU 11 and transferred by serial communication via the input / output terminal 12 for each bit.
[0018]
The output block 23 is disposed on the lower substrate 6 and includes an analog output circuit 24, a communication circuit 25, and a pulse output circuit 26. The analog output circuit 24 includes an integration circuit 27 and an input / output terminal 13. The CPU 11 outputs a rectangular wave corresponding to a desired output value from the input / output terminal 13 to the integration circuit 27, so that an analog signal is output. Is done.
[0019]
The communication circuit 25 includes a modem 28 and an input / output terminal 14, and communication data is sent from the input / output terminal 14 to the modem 27 by serial transfer according to a communication procedure. The modem 27 performs FSK (Frequency Shift Keying) modulation on the communication data, and transmits the communication data by superimposing it on the analog output signal.
[0020]
The pulse output circuit 26 outputs a pulse from the input / output terminal 15 by switching the output level of the input / output terminal 15 to a high level or a low level every unit pulse.
The memory block 29 includes an EEPROM (Eelectically Erasable Programmable Read Only Memory) 30, an SRAM (Static Random Access Memory) 31, and a calendar circuit 32. Although the EEPROM 30 is non-volatile, since continuous writing is limited, data in the SRAM 31 is normally used and backed up to the EEPROM 30 as appropriate.
[0021]
When the data in the SRAM 31 is destroyed for some reason, the data in the EEPROM 30 is copied to the SRAM 31 and the flow rate calculation unit 2 is operated using the data. For this reason, the EEPROM 30 and the SRAM 31 basically store the same data.
[0022]
The calendar circuit 32 is an IC that automatically counts the date and time, and can arbitrarily set and read it.
Data required by the flow rate calculation unit 2 is stored in the EEPROM 30 and the SRAM 31, respectively, and can be arbitrarily read and written by using communication. Some of these data, including coefficient values and instrumental error data, must not be rewritten by general users.
[0023]
For this reason, in this embodiment, when the boards 2 to 4 are normally mounted at predetermined positions in the housing 3, they are in a normal state, and rewriting of data is required from the outside in this normal state. However, rewriting is prohibited for all data or a part of data (data to be write-protected).
[0024]
On the contrary, when the lid 3a of the housing 3 is opened and the substrate 4 is taken out of the housing 3, or when the studs 7 and 8 are removed and the substrates 2 to 4 are disassembled. Allows in-house testing and post-shipment maintenance and rewrites all data.
[0025]
As described above, as a method of switching the communication mode with the outside, in this embodiment, a method of detecting and switching the level of the input / output terminal 16 is used. When the input / output terminal 16 is at the low level, the communication mode in the normal state is set. When the input / output terminal 16 is at the high level, the communication mode in the maintenance state is set.
[0026]
FIG. 4 is a circuit diagram of the input / output terminal 16.
In the substrate mounting structure in which the conductive studs 7 (7A to 7C) are mounted between the substrates 4 to 6, the input / output terminals 16 are connected to the frame grounds 4a of the substrates 4 to 6 via the conductive studs 7 (7A to 7C). To 6a.
[0027]
When the CPU 11 is provided on the substrate 4, the input / output terminal 16 is connected to the conduction stud 7A. When the conductive stud 7A is connected to the frame ground 4a, the input / output terminal 16 is at the same level as the frame ground 4a. When the conductive stud 7A is not connected to the frame ground 4a, the input / output terminal 16 is pulled. The power supply 18 is pulled up by the up resistor 33.
[0028]
Here, during normal use, the input / output terminal 16 is connected to the frame grounds 4a to 6a of the substrates 4 to 6 through the conductive studs 7 (7A to 7C), and therefore is at the frame ground level (low level). And when any one of the conduction | electrical_connection studs 7 between each board | substrates 4-6 is removed, the input / output terminal 16 will be in a power supply level (high level).
[0029]
Therefore, the CPU 11 sets a communication mode for prohibiting rewriting of data stored in the EEPROM 30 and the SRAM 31 when the input / output terminal 16 is at a low level, and is stored in the EEPROM 30 and the SRAM 31 when it is at a high level. Set the communication mode that allows rewriting of the data. In this embodiment, the conductive stud 7A is removed from the substrate 4 or the conductive stud 7A is removed from the insulating stud 8A at the time of in-house inspection or maintenance in which all data stored in the EEPROM 30 and SRAM 31 are rewritable. The communication mode for maintenance can be set by exchanging with
[0030]
FIG. 5 is a flowchart of data rewrite mode processing executed by the CPU 11.
In step S1 (hereinafter, “step” is omitted), the CPU 11 determines whether the current communication is a read request or a write request. If the current communication is a write request, the process proceeds to S2, and the requested data is transmitted to the external terminal.
[0031]
However, if there is a read request in step S1, the process proceeds to S3, where it is determined whether or not the data for which the write request has been made is a write prohibition target. If the data is not to be written prohibited, the process proceeds to S4, and the received data is stored in a predetermined memory area (EEPROM 30 or SRAM 31).
[0032]
In S3, if the data requested to be written is a write-prohibited target, the process proceeds to S5 and the state of the input / output terminal 16 is inspected. That is, in S5, it is determined whether the input / output terminal 16 is at a high level or a low level.
In S5, when the conductive stud 7A is interposed between the substrate 4 and the substrate 5, the input / output terminal 16 is at the low level. In this case, the process proceeds to S6, where it is determined that writing is prohibited and this is indicated. Reply to the external terminal. However, when the conductive stud 7A is not interposed between the substrate 4 and the substrate 5, the input / output terminal 16 is at the high level. In this case, the process proceeds to S7, and the data requested to be written is stored in the memory area (EEPROM 30 or SRAM 31). ).
[0033]
As described above, the CPU 11 determines the level of the input / output terminal 16 that is switched depending on the presence or absence of the conductive stud 7, so that only when the input / output terminal 16 is at a high level even if there is a write request for write-prohibited data. Writing to the memory area is enabled, but writing to the memory area is prohibited when the input / output terminal 16 is at a low level. That is, when the input / output terminal 16 is at a high level, it is determined that the test is in-house testing or maintenance after shipment, and rewriting of all data is permitted. Judgment is made and rewriting of all data or a part of data (data to be write protected) is prohibited.
[0034]
As described above, since the communication mode for data writing can be automatically switched depending on the presence / absence of the conduction stud 7, for example, it is not necessary to prepare two types of terminal application software as in the prior art, and software management is possible. Problems such as complications can be solved. Further, it is not necessary to perform a troublesome operation such as operating a dip switch provided on the substrate during maintenance, the maintenance work can be simplified and the work time can be shortened, and the maintenance work after shipment can be performed easily.
[0035]
FIG. 6 is a block diagram of the second embodiment.
A magnet 34 is provided inside the housing 3. A reed switch 35 is disposed on the substrate 4 attached so as to be close to the magnet 34. The reed switch 35 has one end connected to the input / output terminal 16 of the CPU 11 and the other end connected to the conduction stud 7A. That is, in the configuration of the present embodiment, the attachment position of the substrate 4 can be detected when the reed switch 35 comes close to the magnet 34.
[0036]
The reed switch 35 is closed close to the magnet 34 when the substrate 4 is mounted at a predetermined mounting position in the housing 3, and opens when the substrate 4 is removed from the predetermined mounting position. Therefore, when the substrate 4 is in the predetermined mounting position, the reed switch 35 is closed and the input / output terminal 16 is at a low level. When the substrate 4 is not in the predetermined mounting position, the reed switch 35 is opened and the input / output terminal 16 is at a high level.
[0037]
Therefore, when the reed switch 35 is closed, the CPU 11 has the input / output terminal 16 at a low level and prohibits rewriting of data stored in the EEPROM 30 and the SRAM 31, and when the reed switch 35 is opened, the input / output terminal 16 16 becomes a high level, and rewriting of data stored in the EEPROM 30 and the SRAM 31 is permitted.
[0038]
FIG. 7 is a block diagram of the third embodiment.
An optical sensor 36 is provided in the housing 3 of the flow rate calculation unit 2. This optical sensor 36 is a sensor for detecting the opening or closing of the lid 3 a of the housing 3. The substrate 4 is provided with an amplifier circuit 37 for inputting a signal from the optical sensor 36 to the input / output terminal 16 as a TTL signal.
[0039]
When the lid 3a of the housing 3 is opened, the optical sensor 36 detects light from the outside and outputs a signal, so that the input / output terminal 16 is at a high level. When the lid 3a of the housing 3 is closed, the optical sensor 36 cannot detect light from the outside, so that the input / output terminal 16 is at a low level.
[0040]
Accordingly, when the optical sensor 35 cannot detect light, the CPU 11 determines that the input / output terminal 16 is at a low level and the cover 3 a of the housing 3 is closed, and the data stored in the EEPROM 30 and the SRAM 31 is not detected. Prohibit rewriting. However, when the light sensor 36 detects light, the input / output terminal 16 becomes high level by the detection signal from the light sensor 36, and it is determined that the cover 3a of the housing 3 is opened, and is stored in the EEPROM 30 and the SRAM 31. Allow rewriting of data.
[0041]
In the above-described embodiment, the configuration in which the three substrates 4 to 6 are accommodated in the housing 3 has been described as an example. However, the configuration is not limited thereto, and any configuration in which two or more substrates are provided may be used. .
Moreover, in the said Example, although the one conduction | electrical_connection stud 7 and the insulation stud 8 were provided between each board | substrates 4-6, it is good also as a structure arrange | positioned 2 or more each.
[0042]
Of course, a configuration in which a plurality of the above embodiments are combined, for example, a combination of the first embodiment and the third embodiment, or a combination of the second embodiment and the third embodiment may be used.
Further, when a plurality of the above embodiments are combined, a data type that can be written to the memory can be designated for each of the above embodiments.
[0043]
Moreover, in the said Example, although the communication mode setting apparatus of the flowmeter was demonstrated as an example, it is needless to say that it can apply not only to this but other apparatuses other than a flowmeter.
[0044]
【The invention's effect】
As described above, according to the first aspect, when a plurality of substrates are connected by conductive studs, data writing from the outside is prohibited, and a plurality of substrates are not connected by conductive studs. In this case, since reading / writing of data is permitted from the outside, it is not necessary to prepare a plurality of application software as in the prior art, and troublesome software management can be eliminated. Further, it is not necessary to perform troublesome work such as operating a dip switch provided on the substrate during maintenance, and the maintenance work can be simplified and the working time can be shortened.
[0045]
According to claim 2, when the sensor detects that the lid is closed, writing of data from the outside is prohibited, and when the sensor detects that the lid is open. Since permits reading and writing of data from the outside, it is not necessary to prepare a plurality of application software as in the prior art, and troublesome software management can be eliminated. Further, it is not necessary to perform a troublesome operation such as operating a dip switch provided on the substrate at the time of maintenance, and the maintenance work can be simplified and the working time can be shortened.
[Brief description of the drawings]
FIG. 1 is a perspective view of a flow rate calculation unit to which a first embodiment of a communication mode setting device according to the present invention is applied.
FIG. 2 is an exploded perspective view of a flow rate calculation unit.
FIG. 3 is a block diagram of a flow rate calculation unit.
FIG. 4 is a circuit diagram of input / output terminals of a CPU.
FIG. 5 is a flowchart of data rewrite mode processing executed by a CPU.
FIG. 6 is a block diagram of a second embodiment.
FIG. 7 is a block diagram of a third embodiment.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Flowmeter 2 Flow volume calculating part 3 Housing 4-6 Board | substrate 4a-6a Frame ground 7 Conduction stud 8 Insulation stud 11 CPU
12 to 16 Input / output terminal 17 Bus line 23 Output block 24 Analog output circuit 25 Communication circuit 26 Pulse output circuit 29 Memory block 30 EEPROM
31 SRAM
34 Magnet 35 Reed switch 36 Optical sensor 37 Amplifier circuit

Claims (2)

回路部品が配設された複数の基板と、
導電性を有し、互いに対向する状態に配設された前記複数の各基板を連結する導通スタッドと、
前記複数の基板間が前記導通スタッドにより接続されている場合には、外部からのデータの書き込みを禁止し、前記複数の基板間が前記導通スタッドにより接続されていない場合には、外部からデータの読み出し・書き込みを許可する通信モード切換手段と、
からなることを特徴とする通信モード設定装置。
A plurality of substrates on which circuit components are disposed; and
Conductive studs that connect the plurality of substrates that are electrically conductive and disposed in opposition to each other;
When the plurality of substrates are connected by the conductive stud, writing of data from the outside is prohibited, and when the plurality of substrates are not connected by the conductive stud, data from the outside is prohibited . Communication mode switching means for permitting reading and writing;
A communication mode setting device comprising:
回路部品が配設された複数の基板と、
該複数の基板が収納されるハウジングの蓋の開又は閉を検出するセンサと、
前記蓋が閉じていることを該センサが検出している場合には外部からのデータの書き込みを禁止し、前記蓋が開いていることを前記センサが検出している場合には外部からのデータの読み出し・書き込みを許可する通信モード切換手段と、
からなることを特徴とする通信モード設定装置。
A plurality of substrates on which circuit components are disposed; and
A sensor for detecting opening or closing of a lid of a housing in which the plurality of substrates are stored;
When the sensor detects that the lid is closed, writing of data from the outside is prohibited, and when the sensor detects that the lid is open, data from the outside is prohibited. Communication mode switching means for permitting reading and writing of
A communication mode setting device comprising:
JP27315295A 1995-10-20 1995-10-20 Communication mode setting device Expired - Fee Related JP3762463B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27315295A JP3762463B2 (en) 1995-10-20 1995-10-20 Communication mode setting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27315295A JP3762463B2 (en) 1995-10-20 1995-10-20 Communication mode setting device

Publications (2)

Publication Number Publication Date
JPH09114739A JPH09114739A (en) 1997-05-02
JP3762463B2 true JP3762463B2 (en) 2006-04-05

Family

ID=17523843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27315295A Expired - Fee Related JP3762463B2 (en) 1995-10-20 1995-10-20 Communication mode setting device

Country Status (1)

Country Link
JP (1) JP3762463B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4660831B2 (en) * 2000-12-25 2011-03-30 東京瓦斯株式会社 Flow meter and electronic sealing method thereof
JP2009162674A (en) * 2008-01-09 2009-07-23 Ricoh Elemex Corp Flowmeter
JP5097663B2 (en) * 2008-09-22 2012-12-12 株式会社オーバル Flow meter converter
DE102016104013B3 (en) * 2016-03-04 2017-04-20 Krohne Messtechnik Gmbh Flowmeter, especially for custody transfer

Also Published As

Publication number Publication date
JPH09114739A (en) 1997-05-02

Similar Documents

Publication Publication Date Title
CA1288492C (en) Method of controlling the operation of security modules
US20020165677A1 (en) Apparatus and method for seamlessly upgrading the firmware of an intelligent electronic device
US20050071106A1 (en) Expandable intelligent electronic device
TWI417528B (en) Method and apparatus for storing vacuum gauge calibration parameters and measurement data on a vacuum gauge structure
BRPI1005607B1 (en) electronic device and method to control electronic device
JP3762463B2 (en) Communication mode setting device
TW200423446A (en) Tamper-resistant packaging and approach
US20040071182A1 (en) Thermometry probe calibration method
JP4955704B2 (en) Detachable local operator interface
US5264833A (en) Automatic leak detector
JPH0654329B2 (en) Charge device
CN108267656A (en) A kind of antistatic on-site testing device and system
BR112021010658A2 (en) logic circuits
KR100225192B1 (en) Electronic device
JP4660831B2 (en) Flow meter and electronic sealing method thereof
JP4134530B2 (en) Equipment for which parameters are set
JP3704973B2 (en) Electronic control unit
JPH04256145A (en) Integrated circuit device
KR20070060373A (en) Electronics
KR0166476B1 (en) Ipirom communication error identification method
JPH11120435A (en) Gas supply controller
JPH0334115B2 (en)
JPS59139190A (en) Electronic instrument
JPH05233846A (en) Microprocessor
JP3922731B2 (en) One-chip microcomputer for game machine control

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051011

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051202

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: 20060110

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060113

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: 20090120

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100120

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees