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
JP3205469B2 - Flow data storage device - Google Patents
[go: Go Back, main page]

JP3205469B2 - Flow data storage device - Google Patents

Flow data storage device

Info

Publication number
JP3205469B2
JP3205469B2 JP19644394A JP19644394A JP3205469B2 JP 3205469 B2 JP3205469 B2 JP 3205469B2 JP 19644394 A JP19644394 A JP 19644394A JP 19644394 A JP19644394 A JP 19644394A JP 3205469 B2 JP3205469 B2 JP 3205469B2
Authority
JP
Japan
Prior art keywords
flow rate
time
change
interval time
flow
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
JP19644394A
Other languages
Japanese (ja)
Other versions
JPH0862018A (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.)
Tokyo Gas Co Ltd
Original Assignee
Tokyo Gas Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Gas Co Ltd filed Critical Tokyo Gas Co Ltd
Priority to JP19644394A priority Critical patent/JP3205469B2/en
Publication of JPH0862018A publication Critical patent/JPH0862018A/en
Application granted granted Critical
Publication of JP3205469B2 publication Critical patent/JP3205469B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は流量データ格納装置、特
に、所定流量の流体が流れるごとに流量計から発生する
パルス信号を流量データとして格納する型式の流量デー
タ格納装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a flow data storage device, and more particularly to a flow data storage device of the type storing a pulse signal generated from a flow meter every time a fluid having a predetermined flow rate flows as flow data.

【0002】[0002]

【従来の技術】家庭やオフィスあるいは工場などのガス
や水道等を使用するところにはその流量を測定するため
に流量計が設置されている。ガスや水道水などの流体の
流量の測定には流量センサが用いられ、この流量センサ
の出力である流量データは、流体の消費に対する課金の
ためだけではなく、時間あたりの流量を得ることで流体
の消費傾向の分析など様々な目的に用いることができる
ために、所定期間にわたる流量データを格納しておくこ
とができる流量データ格納装置が開発されている。
2. Description of the Related Art A flow meter is installed in a place where a gas, water, or the like is used in a home, office, factory, or the like, in order to measure the flow rate. A flow sensor is used to measure the flow rate of a fluid such as gas or tap water.The flow rate data, which is the output of the flow rate sensor, is used not only for charging for fluid consumption but also for obtaining the flow rate per hour. Flow rate data storage devices capable of storing flow rate data over a predetermined period of time have been developed because they can be used for various purposes, such as analysis of consumption trends.

【0003】従来の流量データ格納装置の一例として、
たとえば特開平4−60420号公報に記載された流量
測定方法を適用した流量データ格納装置が挙げられる。
この装置においては、所定量の流体が管路中を流れるご
とにパルス信号(以下「流量信号」という)を出力する
流量センサを用いており、流量信号が出力される時間間
隔に変化があったとき(時間あたりの流量が変化したと
き)だけ、その変化が認識された時刻と、前回の変化が
認識された時刻から今回の変化が認識された時刻までの
間に出力された流量信号の数(これは「積算量」に相当
するので、以下では「積算量」という)とを流量データ
として格納している。
As an example of a conventional flow rate data storage device,
For example, there is a flow rate data storage device to which the flow rate measurement method described in JP-A-4-60420 is applied.
This apparatus uses a flow sensor that outputs a pulse signal (hereinafter, referred to as a "flow signal") every time a predetermined amount of fluid flows in a pipeline, and there is a change in a time interval at which the flow signal is output. Only when the flow per hour changes, the number of flow rate signals output between the time when the change was recognized and the time when the previous change was recognized until the time when the current change was recognized (Because this corresponds to the “integrated amount”, hereinafter, it is referred to as “integrated amount”).

【0004】図6は、上記従来の流量データ格納装置に
おける流量データの格納フォーマットを示す。
FIG. 6 shows a storage format of flow rate data in the conventional flow rate data storage device.

【0005】流量データの格納フォーマットは、流量信
号が出力される時間間隔に変化があった時刻のデータが
4バイト、積算量のデータが2バイトの合計6バイトで
構成されており、4バイトの時刻データは時、分、秒、
1/256秒に分けてそれぞれ1バイトずつ割当てられ
ている。
[0005] The storage format of the flow rate data is composed of 4 bytes of data at the time at which the time interval at which the flow rate signal is output is changed, and 2 bytes of integrated data, which is a total of 6 bytes. Time data includes hours, minutes, seconds,
One byte is allocated for each 1/256 second.

【0006】このフォーマットの流量データは、流量デ
ータ格納装置に備えたメモリに記憶することによって記
録されるが、流量データがメモリの記憶容量を越えてし
まうと記録されない流量データが生じてしまうので、こ
うなる前にたとえば検針員が流量データ格納装置の設置
場所まで行って記録された流量データを回収する必要が
ある。
The flow rate data in this format is recorded by storing it in a memory provided in the flow rate data storage device. However, if the flow rate data exceeds the storage capacity of the memory, unrecorded flow rate data will be generated. Before this happens, for example, it is necessary for the meter reader to go to the installation location of the flow rate data storage device and collect the recorded flow rate data.

【0007】[0007]

【発明が解決しようとする課題】このため、流量データ
格納装置に備えるメモリの記憶容量が少ないと、流量デ
ータの回収を頻繁に行わなければならず、人件費等が問
題となってくる。また、定期的に流量データの回収を行
うことと決めておいても、たとえば季節によってガスや
水道の使用量が異なるために時には回収前に流量データ
がメモリの記憶容量を越えてしまって流量データを記録
しそこなうという問題がある。
For this reason, if the storage capacity of the memory provided in the flow rate data storage device is small, the flow rate data must be collected frequently, resulting in problems such as labor costs. In addition, even if it is decided to collect flow rate data regularly, the flow rate data may exceed the storage capacity of the memory before collection because the usage of gas and water varies depending on the season, for example. There is a problem of failing to record.

【0008】そうかといって、流量データ格納装置に備
えるメモリの記憶容量を増やすのでは、メモリの価格が
高くなり流量データ格納装置のコストが高くなってしま
うし、またメモリが大型化するので装置も大型化してし
まうという問題がある。
On the other hand, if the storage capacity of the memory provided in the flow rate data storage device is increased, the price of the memory increases and the cost of the flow rate data storage device increases, and the size of the memory increases. However, there is a problem that the size also becomes large.

【0009】本発明は上記の点にかんがみてなされたも
ので、流量データのバイト数を削減することにより記録
できる流量データ量を増やし、頻繁な流量データの回収
が不要で流量データの記録しそこないのない流量データ
格納装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and has an advantage in that the amount of flow data that can be recorded is increased by reducing the number of bytes of flow data. It is an object of the present invention to provide a flow data storage device having no flow data.

【0010】[0010]

【課題を解決するための手段】本発明は上記の目的を達
成するために、流量データを記憶する記憶部と、単位量
の流体が流れるごとに流量計から出力される流量信号を
受信し、この流量信号を受信してから次の流量信号を受
信するまでの間隔時間を計測し、この間隔時間が変化し
たときに、前回の間隔時間の変化から今回の間隔時間の
変化までの間に受信した流量信号の積算量と前回の間隔
時間の変化から今回の間隔時間の変化までの経過時間と
を流量データとして前記記憶部に所定の記録フォーマッ
トで格納する流量信号処理部とを有する流量データ格納
装置において、前記流量信号処理部が、前記経過時間の
長さに応じて、記録できる経過時間の範囲が異なる複数
種類の記録フォーマットを使い分けて格納するように流
量データ格納装置を構成した。
In order to achieve the above object, the present invention provides a storage unit for storing flow rate data, and a flow rate signal output from a flow meter every time a unit amount of fluid flows, The interval time from when this flow signal is received to when the next flow signal is received is measured, and when this interval time changes, it is received between the change in the previous interval time and the change in the current interval time. A flow rate signal processing unit that stores the integrated amount of the flow rate signal and the elapsed time from the change in the previous interval time to the change in the current interval time as flow rate data in the storage unit in a predetermined recording format. In the apparatus, the flow rate signal processing unit stores a plurality of types of recording formats having different ranges of elapsed time that can be recorded according to the length of the elapsed time. Configuration was.

【0011】[0011]

【作用】本発明は以上の構成によって、流量計からの流
量信号を受けた流量信号処理部が、前回の流量変化から
今回の流量変化までの経過時間を記憶部に格納する際、
この経過時間の長さに応じて、記録できる経過時間の範
囲が異なる複数種類の記録フォーマットを使い分けて格
納する。
According to the present invention, when the flow rate signal processing unit which receives the flow rate signal from the flow meter stores the elapsed time from the previous flow rate change to the current flow rate change in the storage unit,
Depending on the length of the elapsed time, a plurality of types of recording formats having different ranges of the elapsed time that can be recorded are selectively used and stored.

【0012】[0012]

【実施例】以下本発明を図面に基づいて説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0013】図1は本発明による流量データ格納装置の
一実施例のブロック図である。
FIG. 1 is a block diagram of an embodiment of a flow rate data storage device according to the present invention.

【0014】流量データ格納装置1は、CPU2と、ク
ロック部3と、カウンタ部4と、記憶部5と、インタフ
ェース部6とから成り、またCPU2は流量信号処理部
21、タイムオーバー処理部22、流量データ転送制御
部23と称するプログラムを実行することによって機能
を実現する。
The flow rate data storage device 1 comprises a CPU 2, a clock section 3, a counter section 4, a storage section 5, and an interface section 6. The CPU 2 includes a flow rate signal processing section 21, a time over processing section 22, The functions are realized by executing a program called a data transfer control unit 23.

【0015】流量計7は所定量の流体が管路中を流れる
ごとに流量信号を出力し、流量データ格納装置1は流量
信号処理部21によってこの流量信号を受信する。流量
信号処理部21は、クロック部3からのクロックをカウ
ントするカウンタ部4からのカウント値により、流量信
号を受信してから次の流量信号を受信するまでの時間
(以下「間隔時間」という)を計測する。
The flow meter 7 outputs a flow signal each time a predetermined amount of fluid flows in the pipeline, and the flow data storage device 1 receives the flow signal by the flow signal processing unit 21. The flow signal processing unit 21 uses the count value from the counter unit 4 that counts the clock from the clock unit 3 to measure the time from the reception of the flow signal to the reception of the next flow signal (hereinafter referred to as “interval time”). Is measured.

【0016】次に、図2のフローチャートを用いて流量
信号処理部21における流量信号受信時の処理を説明す
る。
Next, the processing at the time of receiving the flow signal in the flow signal processing section 21 will be described with reference to the flowchart of FIG.

【0017】図2は、図1に示した流量信号処理部21
における流量信号受信時の処理のフローチャートであ
る。
FIG. 2 shows the flow signal processing unit 21 shown in FIG.
5 is a flowchart of a process at the time of receiving a flow signal in FIG.

【0018】図示したフローチャートは流量計7から流
量信号を受けることによって起動される割込み処理であ
る。まず、カウンタ部4からのカウント値を読み込み間
隔時間とし(F−1)、カウンタ部4をクリアする(F
−2)。
The illustrated flowchart is an interrupt process started by receiving a flow signal from the flow meter 7. First, the count value from the counter unit 4 is set as the read interval time (F-1), and the counter unit 4 is cleared (F-1).
-2).

【0019】次に、タイムオーバー処理部22でセット
するオーバーフローフラグがセットされているか否かを
判断する(F−3)。セットされていたならば、そのオ
ーバーフローフラグをクリアし(F−4)、後に説明す
る記録フォーマット2で時間0を記憶部5に記憶するこ
とによって流量データを記録して(F−5)ステップ
(F−12)へと進む。
Next, it is determined whether or not the overflow flag to be set by the time-over processing section 22 is set (F-3). If it has been set, the overflow flag is cleared (F-4), and the flow rate data is recorded by storing time 0 in the storage unit 5 in the recording format 2 described later (F-5). Go to F-12).

【0020】そして、積算量のクリア(F−12)と、
経過時間のクリア(F−13)を行った後、積算量に
「1」を加算することによって積算量の更新を行い(F
−14)、続いて、流量計7から受けた前回の流量信号
と今回の流量信号との間隔時間を経過時間に加算するこ
とによって経過時間の更新を行って(F−15)から処
理を終了する。ここで、経過時間とは流量の変化があっ
た後、次に流量が変化するまでの時間をいう。また、処
理を終了した際、CPU2はホールト状態となり、処理
実行時と比較して消費電力の少ない状態になる。ステッ
プ(F−3)においてオーバーフローフラグがセットさ
れていないと判断した場合には、まず、流量信号処理部
21は、流量計7から受けた前回の流量信号と今回の流
量信号との間隔時間(以下「今回の間隔時間」という)
を、前回流量の変化があった際における間隔時間(以下
「前回の間隔時間」という)と比較することにより流量
の変化があったか否かを判断する(F−6)。この判断
は、今回の間隔時間と前回の間隔時間とが一致しないと
きに流量の変化があったとみなしてもよいが、このよう
にすると流量データ数がかなり増えてしまうので、ここ
では今回の間隔時間が前回の間隔時間から1%以上変化
したときに流量の変化があったとみなす。
Then, clear the integrated amount (F-12),
After the elapsed time is cleared (F-13), the integrated amount is updated by adding "1" to the integrated amount (F-13).
-14) Then, the elapsed time is updated by adding the interval time between the previous flow signal received from the flow meter 7 and the current flow signal to the elapsed time, and the processing is terminated from (F-15). I do. Here, the elapsed time refers to the time from when the flow rate changes to when the flow rate changes next. Further, when the processing is completed, the CPU 2 enters the halt state, and enters a state in which power consumption is lower than that at the time of executing the processing. If it is determined in step (F-3) that the overflow flag has not been set, the flow signal processing unit 21 firstly sets the interval time between the previous flow signal received from the flow meter 7 and the current flow signal ( (Hereinafter, this time interval)
Is compared with the interval time at the time of the previous change in the flow rate (hereinafter referred to as “previous interval time”) to determine whether or not the flow rate has changed (F-6). This determination may be made assuming that there has been a change in the flow rate when the current interval time and the previous interval time do not match.However, since the number of flow rate data increases considerably, It is considered that there has been a change in the flow rate when the time has changed by 1% or more from the previous interval time.

【0021】ステップ(F−6)において流量変化なし
と判断した場合には、積算量に「1」を加算することに
よって積算量の更新を行い(F−14)、続いて、経過
時間に今回の間隔時間を加算することによって経過時間
の更新を行った(F−15)後に処理を終了する。
If it is determined in step (F-6) that there is no change in the flow rate, the integrated amount is updated by adding "1" to the integrated amount (F-14). The elapsed time is updated by adding the interval time (F-15), and the process is terminated.

【0022】一方、ステップ(F−6)において流量変
化ありと判断した場合には、積算量が最小値か否かを判
断する(F−7)が、ここで、この最小値について説明
する。
On the other hand, if it is determined in step (F-6) that there is a change in the flow rate, it is determined whether or not the integrated amount is a minimum value (F-7). Here, the minimum value will be described.

【0023】ここでは、ガスの消費流量を測定する流量
計の流量データを格納する流量データ格納装置を例にと
って説明する。たとえば、ある一定流量のガスが流れて
消費されている状態から新たなガス器具の使用を開始す
ると、ガスの消費流量は過渡状態を経ながら増加して所
定の流量に落ち着く。
Here, a flow rate data storage device for storing flow rate data of a flow meter for measuring gas consumption flow rate will be described as an example. For example, when the use of a new gas appliance is started from a state where a certain flow rate of gas is flowing and consumed, the consumption flow rate of the gas increases while going through a transient state and reaches a predetermined flow rate.

【0024】このように、流量の変化は瞬間的でなく連
続的であるので、この変化の過程においては間隔時間
(流量信号を受信してから次の流量信号を受信するまで
の時間)は毎回変化することになる。本発明による流量
データ格納装置も、特開平4−60420号公報に記載
された流量測定方法を適用した従来の流量データ格納装
置と同様に流量信号の出力される時間間隔に変化があっ
たときに流量データを格納するものであるため、後述す
るような新たな処理を加えなければ、この変化のたび
(流量信号を受信するたび)に積算量が「1」である流
量データを記憶部5に格納して記憶部5の記憶容量を消
費してしまうので、流量信号を受信するたびに流量デー
タを格納しないで消費記憶容量を削減しようとしたこと
が有効に働かなくなってしまう。
As described above, since the change in the flow rate is not instantaneous but continuous, the interval time (the time from when the flow rate signal is received until the next flow rate signal is received) is always set in the process of this change. Will change. The flow rate data storage device according to the present invention can also be used when the flow signal output time interval changes similarly to the conventional flow rate data storage device to which the flow rate measurement method described in JP-A-4-60420 is applied. Since the flow rate data is stored, the flow rate data having the integrated amount of “1” is stored in the storage unit 5 every time the flow rate changes (when the flow rate signal is received) unless a new process described later is added. Since the storage capacity is stored and the storage capacity of the storage unit 5 is consumed, an attempt to reduce the consumption storage capacity without storing the flow rate data every time the flow rate signal is received does not work effectively.

【0025】そこで、本発明では積算量が最小値すなわ
ち「1」であるときには流量データのうち積算量につい
ては記憶部5に記憶させないような処理を加えて、記憶
部5の記憶容量の消費をなくすようにしている。図2の
説明に戻り、具体的に説明する。
Therefore, according to the present invention, when the integrated amount is the minimum value, that is, "1", a process of not storing the integrated amount of the flow rate data in the storage unit 5 is added to reduce the storage capacity of the storage unit 5. I'm trying to get rid of it. Returning to the description of FIG. 2, a specific description will be given.

【0026】ステップ(F−7)において積算量が最小
値ではないと判断した場合には、後に説明する記録フォ
ーマット3で積算量を記憶部5に記憶することによって
記録し(F−8)、続いて、経過時間が128秒以上か
どうかを判断する(F−9)。経過時間が128秒未満
のときには、後に説明する記録フォーマット1で経過時
間を記憶部5に記憶することによって記録し(F−1
0)、経過時間が128秒以上のときには、後に説明す
る記録フォーマット2で経過時間を記憶部5に記憶する
ことによって記録する(F−11)。
If it is determined in step (F-7) that the integrated amount is not the minimum value, the integrated amount is recorded by storing it in the storage unit 5 in a recording format 3 described later (F-8). Subsequently, it is determined whether the elapsed time is 128 seconds or more (F-9). If the elapsed time is less than 128 seconds, the elapsed time is recorded by storing the elapsed time in the storage unit 5 in a recording format 1 described later (F-1).
0), when the elapsed time is 128 seconds or more, the elapsed time is recorded by storing it in the storage unit 5 in a recording format 2 described later (F-11).

【0027】そして、積算量のクリア(F−12)と、
経過時間のクリア(F−13)を行った後、積算量に
「1」を加算することによって積算量の更新を行い(F
−14)、続いて、経過時間に今回の間隔時間を加算す
ることによって経過時間の更新を行って(F−15)か
ら処理を終了する。
Then, clear the integrated amount (F-12),
After the elapsed time is cleared (F-13), the integrated amount is updated by adding "1" to the integrated amount (F-13).
-14) Subsequently, the elapsed time is updated by adding the current interval time to the elapsed time, and the process ends from (F-15).

【0028】一方、ステップ(F−7)において積算量
が最小値であると判断した場合には、積算量の記録は行
わずにステップ(F−9)へと進み、そのときの記録フ
ォーマットで経過時間を記憶部5に記憶することによっ
て記録する(F−10、F−11)。そして、積算量の
クリア(F−12)と、経過時間のクリア(F−13)
を行った後、積算量に「1」を加算することによって積
算量の更新を行い(F−14)、続いて、経過時間に今
回の間隔時間を加算することによって経過時間の更新を
行って(F−15)から処理を終了する。
On the other hand, if it is determined in step (F-7) that the integrated amount is the minimum value, the process proceeds to step (F-9) without recording the integrated amount, and the recording format at that time is used. The elapsed time is recorded by storing it in the storage unit 5 (F-10, F-11). Then, clear the accumulated amount (F-12) and clear the elapsed time (F-13).
Is performed, the integrated amount is updated by adding "1" to the integrated amount (F-14). Subsequently, the elapsed time is updated by adding the present interval time to the elapsed time. The process ends from (F-15).

【0029】ここで、図4および図5を参照して記録フ
ォーマットについて説明する。
Here, the recording format will be described with reference to FIGS.

【0030】図4は、本発明による流量データ格納装置
における流量データの格納フォーマットを示す。
FIG. 4 shows a storage format of flow data in the flow data storage device according to the present invention.

【0031】本発明による格納フォーマットにおいて
は、積算量用および経過時間用にそれぞれ2バイトずつ
用意してある。そして、図2のフローチャートを用いて
説明したように、積算量が最小値すなわち「1」である
ときには積算量は記録せず経過時間のみ記録するので流
量データは2バイトだけとなり、積算量が最小値でない
ときでも積算量と経過時間を記録しても流量データは全
体で4バイトですみ、従来の6バイトに比べて2バイト
も少なくなる。
In the storage format according to the present invention, two bytes are prepared for each of the integrated amount and the elapsed time. As described with reference to the flowchart of FIG. 2, when the integrated amount is the minimum value, that is, “1”, the integrated amount is not recorded and only the elapsed time is recorded. Even when the value is not a value, even if the integrated amount and the elapsed time are recorded, the flow rate data is only 4 bytes in total, which is 2 bytes less than the conventional 6 bytes.

【0032】図5は、図4に示した本発明による格納フ
ォーマットの詳細を示し、(a)は記録フォーマット
1、(b)は記録フォーマット2、(c)は記録フォー
マット3を示す。
FIG. 5 shows the details of the storage format according to the present invention shown in FIG. 4, wherein (a) shows the recording format 1, (b) shows the recording format 2, and (c) shows the recording format 3.

【0033】記録フォーマット1〜3はモードと呼ぶ上
位2ビットで互いに区別され、モードが00の場合には
記録フォーマット1、モードが10の場合には記録フォ
ーマット2、モードが01の場合には記録フォーマット
3であることを示す。
The recording formats 1 to 3 are distinguished from each other by upper two bits called a mode. When the mode is 00, the recording format is 1; when the mode is 10, the recording format is 2; Indicates format 3.

【0034】図5(a)に示す記録フォーマット1およ
び図5(b)に示す記録フォーマット2は、図4に示し
た経過時間用であり、経過時間が128秒未満のときに
は記録フォーマット1、経過時間が128秒以上のとき
には記録フォーマット2が用いられる。一方、図5
(c)に示す記録フォーマット3は図4に示した積算量
用である。
The recording format 1 shown in FIG. 5A and the recording format 2 shown in FIG. 5B are for the elapsed time shown in FIG. 4, and when the elapsed time is less than 128 seconds, the recording format 1 is used. When the time is longer than 128 seconds, the recording format 2 is used. On the other hand, FIG.
The recording format 3 shown in (c) is for the integrated amount shown in FIG.

【0035】記録フォーマット1から説明すると、上位
2ビットはモード、下位14ビットは経過時間である。
このフォーマットでは、2-7〜26 秒を示すビットを用
いて、0.0078125秒単位で、0.007812
5秒〜127.9921875秒の範囲の経過時間を記
録する。
Explaining from the recording format 1, the upper 2 bits are the mode and the lower 14 bits are the elapsed time.
In this format, 0.007812 is used in units of 0.0078125 seconds using bits indicating 2 -7 to 26 seconds.
Record the elapsed time ranging from 5 seconds to 127.9921875 seconds.

【0036】次に、記録フォーマット2については、上
位2ビットがモード、下位14ビットが経過時間であ
る。このフォーマットでは、20 〜213秒を示すビット
を用いるが、128秒未満の経過時間については記録フ
ォーマット1を用いるため、1秒単位で128秒〜16
383秒の範囲の経過時間を記録する。
Next, for the recording format 2, the upper 2 bits are the mode and the lower 14 bits are the elapsed time. In this format, but using a bit indicating 2 0-2 13 seconds, for using the recording format 1 for the elapsed time of less than 128 seconds, 128 seconds to 16 in 1 second increments
Record the elapsed time in the range of 383 seconds.

【0037】最後に、記録フォーマット3については、
上位2ビットがモード、下位14ビットが積算量であ
る。このフォーマットでは、流量信号の数が20 〜213
個を示すビットを用いて、1個単位で2個〜16383
個の範囲の積算量を記録する。積算量が1個の場合に
は、上述したように積算量の記録は行わない。
Finally, for recording format 3,
The upper 2 bits are the mode, and the lower 14 bits are the integration amount. In this format, the number of flow signal 2 0-2 13
2 bits to 16383 in units of 1 using bits indicating
Record the integrated amount of this range. When the integrated amount is one, the integrated amount is not recorded as described above.

【0038】次に、図3のフローチャートを用いて、図
1に示したタイムオーバー処理部22におけるタイムオ
ーバー時の処理を説明する。
Next, the processing at the time over in the time over processing section 22 shown in FIG. 1 will be described with reference to the flowchart of FIG.

【0039】図3は、図1に示したタイムオーバー処理
部22におけるタイムオーバー時の処理のフローチャー
トである。
FIG. 3 is a flowchart of a process at the time of time over in the time over processing section 22 shown in FIG.

【0040】図5(b)を参照して説明したように、記
録フォーマット2を用いたとしても16383秒の経過
時間までしか記録できない。そこで、本発明ではタイム
オーバー処理部22を設け、16384秒以上の経過時
間にも対応できるようにしている。
As described with reference to FIG. 5B, even if the recording format 2 is used, recording can be performed only up to 16383 seconds. Therefore, in the present invention, the time-over processing unit 22 is provided so as to cope with an elapsed time of 16384 seconds or more.

【0041】図3に示したフローチャートは図1に示し
たカウンタ部4からオーバーフロー信号を受けることに
よって起動される割込み処理である。カウンタ部4はク
ロック部3からのクロックをカウントすることにより計
時し、16384秒に達した時点でオーバーフロー信号
を出力する。
The flowchart shown in FIG. 3 is an interrupt process started by receiving an overflow signal from the counter unit 4 shown in FIG. The counter section 4 counts the clock from the clock section 3 and outputs an overflow signal when the count reaches 16384 seconds.

【0042】まず、タイムオーバー処理部22でセット
するオーバーフローフラグがセットされているか否かを
判断する(S−1)。セットされていたならば、記録フ
ォーマット2で時間0を記憶部5に記憶することによっ
て記録した(S−2)後、カウンタ部4のクリアすなわ
ちカウント数のリセットを行って16384秒の計時を
し直すようにし(S−9)、処理を終了する。処理を終
了した際、CPU2はホールト状態となり、処理実行時
と比較して消費電力の少ない状態になる。
First, it is determined whether or not the overflow flag to be set by the time-over processing section 22 has been set (S-1). If it is set, the time 0 is recorded in the storage unit 5 by recording it in the recording format 2 (S-2), and then the counter unit 4 is cleared, that is, the count number is reset, and a time of 16384 seconds is measured. (S-9), and the process ends. When the processing is completed, the CPU 2 enters the halt state, and enters a state in which power consumption is smaller than that at the time of executing the processing.

【0043】ここで、ステップ(S−2)において記録
フォーマット2で時間0を記録することの意味について
説明する。図5(b)を参照して説明したように、記録
フォーマット2は128秒〜16383秒の範囲の経過
時間を記録するフォーマットであり、このフォーマット
で時間0が記録されることは通常はあり得ない。そこ
で、本発明では経過時間が16384秒であることを表
すために、記録フォーマット2で時間0を記録するよう
にしている。先に説明した図2のステップ(F−5)も
同様の意味である。
Here, the meaning of recording the time 0 in the recording format 2 in step (S-2) will be described. As described with reference to FIG. 5B, the recording format 2 is a format for recording the elapsed time in the range of 128 seconds to 16383 seconds, and it is generally possible that time 0 is recorded in this format. Absent. Therefore, in the present invention, time 0 is recorded in the recording format 2 in order to indicate that the elapsed time is 16384 seconds. Step (F-5) in FIG. 2 described above has the same meaning.

【0044】図3の説明に戻り、ステップ(S−1)に
おいてオーバーフローフラグがセットされていないと判
断した場合には、オーバーフローフラグをセットし(S
ー3)、積算量が最小値か否かを判断する(S−4)。
Returning to the description of FIG. 3, if it is determined in step (S-1) that the overflow flag has not been set, the overflow flag is set (S1).
-3), it is determined whether or not the integrated amount is a minimum value (S-4).

【0045】ステップ(S−4)において積算量が最小
値ではないと判断した場合には、記録フォーマット3で
積算量を記憶部5に記憶することによって記録し(S−
5)、続いて、経過時間が128秒以上かどうかを判断
する(S−6)。経過時間が128秒未満のときには、
記録フォーマット1で前回までの経過時間を記憶部5に
記憶することによって記録し(S−7)、経過時間が1
28秒以上のときには、記録フォーマット2で前回まで
の経過時間を記憶部5に記憶することによって記録する
(S−8)。
If it is determined in step (S-4) that the integrated amount is not the minimum value, the integrated amount is stored in the storage unit 5 in the recording format 3 and recorded (S-
5) Subsequently, it is determined whether the elapsed time is 128 seconds or more (S-6). If the elapsed time is less than 128 seconds,
The elapsed time up to the previous time is recorded by storing it in the storage unit 5 in the recording format 1 (S-7).
If the time is longer than 28 seconds, the elapsed time up to the previous time is recorded by storing it in the storage unit 5 in the recording format 2 (S-8).

【0046】そして、カウンタ部4のクリアすなわちカ
ウント数のリセットを行って16384秒の計時をし直
すようにし(S−9)、処理を終了する。
Then, the counter section 4 is cleared, that is, the count number is reset, so that the timing of 16384 seconds is restarted (S-9), and the processing is terminated.

【0047】図1に示した記憶部5には上述したような
処理によって流量データが記憶される。検針員による流
量データの回収は、検針員が、携帯する回収装置をイン
タフェース部6に接続し、流量データ転送処理部23を
介して記憶部5に格納された流量データを回収装置に転
送することによって行われる。
The storage unit 5 shown in FIG. 1 stores flow rate data by the above-described processing. The meter reader collects the flow data by connecting the collection device carried by the meter reader to the interface unit 6 and transferring the flow data stored in the storage unit 5 to the collection device via the flow data transfer processing unit 23. Done by

【0048】流量データ転送処理部23における流量デ
ータ転送処理も他の処理と同様に割込み処理であり、こ
の処理はたとえば回収装置のインタフェース部6への接
続を契機として割込むようにする。また、この流量デー
タ転送処理の終了によってもCPU2はホールト状態と
なり、処理実行時と比較して消費電力の少ない状態にな
る。
The flow rate data transfer processing in the flow rate data transfer processing section 23 is also an interrupt processing like other processing, and this processing is interrupted by, for example, connection to the interface section 6 of the collection device. In addition, the CPU 2 is in the halt state by the end of the flow rate data transfer processing, and the power consumption is lower than when the processing is executed.

【0049】[0049]

【発明の効果】以上説明したように、本発明によれば、
従来は一律に6バイトであった流量データを、積算量が
最小値であるときには2バイト、積算量が最小値でない
ときでも4バイトにすることができるので、流量データ
の記憶容量を従来の2/3以下にすることができる。
As described above, according to the present invention,
The flow rate data, which was conventionally 6 bytes uniformly, can be reduced to 2 bytes when the integrated amount is the minimum value and 4 bytes even when the integrated amount is not the minimum value. / 3 or less.

【0050】このため、流量データが流量データ記憶装
置に備えたメモリの記憶容量を越えてしまって流量デー
タを記録しそこなうことが少なくなり、検針員等による
流量データ回収の回数を減らすこともできる。
For this reason, it is less likely that the flow rate data exceeds the storage capacity of the memory provided in the flow rate data storage device and the flow rate data is not missed, and the number of times flow rate data collection by meter readers and the like can be reduced.

【0051】また、本発明によれば、流量データ格納装
置に備えるメモリの記憶容量を増やす必要もないので、
メモリの価格が高くなって流量データ格納装置のコスト
が高くなることもないし、またメモリが大型化して流量
データ格納装置が大型化することもない。
According to the present invention, there is no need to increase the storage capacity of the memory provided in the flow rate data storage device.
The cost of the flow rate data storage device does not increase due to the increase in the price of the memory, and the flow rate data storage device does not increase in size due to the increase in the memory.

【0052】さらに、本発明によれば、図5(a)、
(b)に示したように経過時間によって記録フォーマッ
トを使い分けるようにしたので、流量データのうちの経
過時間用データのデータ長を長くすることなく、広範囲
の経過時間を記録することができる。
Further, according to the present invention, FIG.
Since the recording format is selectively used depending on the elapsed time as shown in (b), a wide range of elapsed time can be recorded without increasing the data length of the elapsed time data in the flow rate data.

【0053】さらにまた、本発明によれば、図5(b)
に示した記録フォーマット2で表しきれない長さの経過
時間の場合であっても、記録フォーマット2で時間0を
記録することによって表すことができる。
Further, according to the present invention, FIG.
Even when the elapsed time is too long to be represented by the recording format 2 shown in the above, it can be represented by recording the time 0 in the recording format 2.

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

【図1】本発明による流量データ格納装置の一実施例の
ブロック図である。
FIG. 1 is a block diagram of one embodiment of a flow rate data storage device according to the present invention.

【図2】図1に示した流量信号処理部21における流量
信号受信時の処理のフローチャートである。
FIG. 2 is a flowchart of a process at the time of receiving a flow signal in a flow signal processing unit 21 shown in FIG. 1;

【図3】図1に示したタイムオーバー処理部22におけ
るタイムオーバー時の処理のフローチャートである。
FIG. 3 is a flowchart of a process at a time over in a time over processing unit 22 shown in FIG. 1;

【図4】本発明による流量データ格納装置における流量
データの格納フォーマットを示す。
FIG. 4 shows a storage format of flow data in the flow data storage device according to the present invention.

【図5】図4に示した本発明による格納フォーマットの
詳細を示し、(a)は記録フォーマット1、(b)は記
録フォーマット2、(c)は記録フォーマット3を示
す。
5A and 5B show details of a storage format according to the present invention shown in FIG. 4, wherein FIG. 5A shows a recording format 1, FIG. 5B shows a recording format 2, and FIG.

【図6】従来の流量データ格納装置における流量データ
の格納フォーマットを示す。
FIG. 6 shows a storage format of flow rate data in a conventional flow rate data storage device.

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

1 流量データ格納装置 2 CPU 21 流量信号処理部 22 タイムオーバー処理部 23 流量データ転送処理部 3 クロック部 4 カウンタ部 5 記憶部 6 インタフェース部 7 流量計 DESCRIPTION OF SYMBOLS 1 Flow rate data storage device 2 CPU 21 Flow rate signal processing part 22 Time-over processing part 23 Flow rate data transfer processing part 3 Clock part 4 Counter part 5 Storage part 6 Interface part 7 Flow meter

───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐藤 達朗 東京都板橋区志村1−2−3 株式会社 金門製作所内 (72)発明者 佐藤 祐一 東京都墨田区緑2−13−7 アーバンハ イツ両国1009号 (72)発明者 山上 伸 神奈川県川崎市川崎区日進町1 サンス クエア川崎8−504 (72)発明者 笹山 晋一 東京都葛飾区高砂3−2−7 高砂アパ ート215 (72)発明者 中村 肇 千葉県船橋市印内2−7−9 T&S西 船104 (56)参考文献 特開 平4−60420(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01F 1/00 - 15/18 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Tatsuro Sato 1-2-3 Shimura, Itabashi-ku, Tokyo Inside Kinmon Seisakusho Co., Ltd. (72) Inventor Yuichi Sato 2-13-7 Midori, Sumida-ku, Tokyo 1009 Urban Highlands Ryogoku No. (72) Inventor Shin Yamagami 1 Sans Queer Kawasaki 8-504, Nisshin-cho, Kawasaki-ku, Kawasaki-shi, Kanagawa Prefecture (72) Inventor Shinichi Sasayama 2-2-7 Takasago, Katsushika-ku, Tokyo Takasago Apartment 215 (72) Inventor Hajime Nakamura 2-7-9 Innai, Funaibashi-shi, Chiba 104 T & S Nishifune 104 (56) References JP-A-4-60420 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G01F 1/00-15/18

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 流量データを記憶する記憶部と、 単位量の流体が流れるごとに流量計から出力される流量
信号を受信し、該流量信号を受信してから次の流量信号
を受信するまでの間隔時間を計測し、該間隔時間が変化
したときに、前回の間隔時間の変化から今回の間隔時間
の変化までの間に受信した流量信号の積算量と前回の間
隔時間の変化から今回の間隔時間の変化までの経過時間
とを流量データとして前記記憶部に所定の記録フォーマ
ットで格納する流量信号処理部とを有する流量データ格
納装置において、 前記流量信号処理部が、前記経過時間の長さに応じて、
記録できる経過時間の範囲が異なる複数種類の記録フォ
ーマットを使い分けて格納することを特徴とする流量デ
ータ格納装置。
A storage unit for storing flow rate data, a flow rate signal output from a flow meter every time a unit amount of fluid flows, and from receiving the flow rate signal until receiving the next flow rate signal. Is measured, and when the interval time changes, the integrated amount of the flow signal received between the change in the previous interval time and the change in the current interval time and the change in the previous interval time indicate the current time. A flow rate data processing unit having a flow rate signal processing unit that stores an elapsed time until a change in the interval time as flow rate data in the storage unit in a predetermined recording format, wherein the flow rate signal processing unit has a length of the elapsed time. In response to the,
A flow rate data storage device characterized in that a plurality of types of recording formats having different ranges of elapsed time that can be recorded are selectively used and stored.
【請求項2】 流量データを記憶する記憶部と、 単位量の流体が流れるごとに流量計から出力される流量
信号を受信し、該流量信号を受信してから次の流量信号
を受信するまでの間隔時間を計測し、該間隔時間が変化
し且つ前回の間隔時間の変化から今回の間隔時間の変化
までの間に受信した流量信号の積算量が最小値であると
きには前回の間隔時間の変化から今回の間隔時間の変化
までの経過時間のみを流量データとして前記記憶部に格
納し、前記間隔時間が変化し且つ前回の間隔時間の変化
から今回の間隔時間の変化までの間に受信した流量信号
の積算量が最小値でないときには前回の間隔時間の変化
から今回の間隔時間の変化までの間に受信した流量信号
の積算量と前回の間隔時間の変化から今回の間隔時間の
変化までの経過時間とを流量データとして前記記憶部に
所定の記録フォーマットで格納する流量信号処理部とを
有する流量データ格納装置において、 前記流量信号処理部が、前記経過時間の長さに応じて、
記録できる経過時間の範囲が異なる複数種類の記録フォ
ーマットを使い分けて格納することを特徴とする流量デ
ータ格納装置。
2. A storage unit for storing flow rate data, a flow rate signal output from a flow meter every time a unit amount of fluid flows, and from receiving the flow rate signal until receiving the next flow rate signal. Is measured, and when the interval time changes and the integrated amount of the flow signal received between the change in the previous interval time and the change in the current interval time is the minimum value, the change in the previous interval time is performed. Only the elapsed time from the change of the interval time to the change of the current interval time is stored in the storage unit as the flow rate data, and the flow rate received during the change of the interval time and the change of the current interval time from the change of the previous interval time When the integrated amount of the signal is not the minimum value, the integrated amount of the flow rate signal received between the change of the previous interval time and the change of the current interval time and the elapsed time from the change of the previous interval time to the change of the current interval time Time and In the flow data storage device and a flow rate signal processing unit for storing a predetermined recording format as the amount data in the storage unit, the flow rate signal processing unit, according to the length of the elapsed time,
A flow rate data storage device characterized in that a plurality of types of recording formats having different ranges of elapsed time that can be recorded are selectively used and stored.
【請求項3】 前記流量信号処理部は、前記間隔時間の
変化の割合が1%以上であるとき流量データを前記記憶
部に格納する請求項1または2に記載の流量データ格納
装置。
3. The flow rate data storage device according to claim 1, wherein the flow rate signal processing section stores the flow rate data in the storage section when a change rate of the interval time is 1% or more.
【請求項4】 前記流量信号処理部は、前記間隔時間の
変化の割合が1%未満であるとき流量データを前記記憶
部に格納する請求項1または2に記載の流量データ格納
装置。
4. The flow rate data storage device according to claim 1, wherein the flow rate signal processing section stores the flow rate data in the storage section when a change rate of the interval time is less than 1%.
【請求項5】 前記最小値が1である請求項2ないし4
のいずれか1項に記載の流量データ格納装置。
5. The method according to claim 2, wherein said minimum value is one.
The flow rate data storage device according to any one of the above.
JP19644394A 1994-08-22 1994-08-22 Flow data storage device Expired - Fee Related JP3205469B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19644394A JP3205469B2 (en) 1994-08-22 1994-08-22 Flow data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19644394A JP3205469B2 (en) 1994-08-22 1994-08-22 Flow data storage device

Publications (2)

Publication Number Publication Date
JPH0862018A JPH0862018A (en) 1996-03-08
JP3205469B2 true JP3205469B2 (en) 2001-09-04

Family

ID=16357912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19644394A Expired - Fee Related JP3205469B2 (en) 1994-08-22 1994-08-22 Flow data storage device

Country Status (1)

Country Link
JP (1) JP3205469B2 (en)

Also Published As

Publication number Publication date
JPH0862018A (en) 1996-03-08

Similar Documents

Publication Publication Date Title
CN101706299B (en) A Coriolis Mass Flow Transmitter Based on DSP
JP2712701B2 (en) Pressure transmitter
AU5355299A (en) Flowmeter logging
JP3205469B2 (en) Flow data storage device
JP3209480B2 (en) Flow data storage device
JP3209479B2 (en) Flow data storage device
JP3181728B2 (en) Air conditioning management system
CN110553976B (en) Method and device for detecting environmental corrosion rate
CN114414834A (en) Flow velocity calculation and abnormity alarm method based on Hall pulse time difference method
JP3212401B2 (en) Flow data storage device
CN114485817B (en) A measurement method based on pulse time difference method in low power consumption mechanical watch
JP3212452B2 (en) Flow data storage device
CN112179440A (en) Intelligent water meter capable of accurately uploading data and water consumption record uploading method
CN120970747A (en) A method for detecting abnormal fluctuations in ultrasonic water meter filtration based on variance algorithm
US20080157753A1 (en) System and method for determining the performance of an on-chip interconnection network
JP2003281668A (en) Charging communication terminal, external server, communication system and charging method
CN120846436A (en) Ultrasonic water meter measurement method, equipment and medium
JP3148530B2 (en) Remote monitoring device
JPH10260205A (en) Meter reading meter
JP2000339219A (en) Information processor, penalty time counting method and recording medium
JPH10107775A (en) Transmission error monitoring device
JPS62123204A (en) Exhaust-gas temperature measuring device for boiler
EP4639929A1 (en) Sensor device with synchronized measurement capability
JPH05326845A (en) Semiconductor integrated circuit device
JPH035636B2 (en)

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010612

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees