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

JP3209480B2 - Flow data storage device - Google Patents

Flow data storage device

Info

Publication number
JP3209480B2
JP3209480B2 JP19644494A JP19644494A JP3209480B2 JP 3209480 B2 JP3209480 B2 JP 3209480B2 JP 19644494 A JP19644494 A JP 19644494A JP 19644494 A JP19644494 A JP 19644494A JP 3209480 B2 JP3209480 B2 JP 3209480B2
Authority
JP
Japan
Prior art keywords
flow rate
time
interval time
change
rate data
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
JP19644494A
Other languages
Japanese (ja)
Other versions
JPH0862019A (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 JP19644494A priority Critical patent/JP3209480B2/en
Publication of JPH0862019A publication Critical patent/JPH0862019A/en
Application granted granted Critical
Publication of JP3209480B2 publication Critical patent/JP3209480B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • 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】このように、従来の流量データ格納装置で
は時間あたりの流量が変化したときにだけ、その変化が
認識された時刻と積算量とを流量データとして格納する
ことによって、流量計からの流量信号を受けるたびにそ
の出力時刻を流量データとして格納する場合よりも格納
する流量データ量を削減するようにしている。そして、
この場合、流量信号を受けるたびに、前回受けた流量信
号と今回受けた流量信号との時間間隔と、前回流量の変
化があった際における時間間隔とを比較する処理を必ず
行うようにしている。
As described above, in the conventional flow rate data storage device, only when the flow rate per time changes, the time when the change is recognized and the integrated amount are stored as flow rate data, so that the flow rate from the flow meter can be measured. Each time a signal is received, the amount of flow data to be stored is reduced as compared with the case where the output time is stored as flow data. And
In this case, every time a flow rate signal is received, a process of comparing the time interval between the previously received flow rate signal and the currently received flow rate signal with the time interval when the previous flow rate has changed is always performed. .

【0005】[0005]

【発明が解決しようとする課題】このように、従来の流
量データ格納装置では、前回受けた流量信号と今回受け
た流量信号との時間間隔の長さにかかわらず時間間隔を
比較する処理を行っていたため、流量信号の出力される
間隔時間がきわめて長い場合のように、管路中を流れる
流体の量がきわめて少なく時間間隔を比較するメリット
がほとんどないデータについてまで比較する処理を行っ
ていた。
As described above, in the conventional flow rate data storage device, the processing for comparing the time intervals between the previously received flow rate signal and the currently received flow rate signal is performed. Therefore, as in the case where the interval time of the output of the flow rate signal is extremely long, a process for comparing data in which the amount of fluid flowing in the pipeline is extremely small and there is almost no merit in comparing the time intervals has been performed.

【0006】このため、比較演算の回数が多くなり、流
量データ格納装置の電源としての電池の消耗が大きいと
いう問題点があった。
For this reason, there has been a problem that the number of comparison operations is increased, and that a battery as a power source of the flow rate data storage device is greatly consumed.

【0007】本発明は上記の点にかんがみてなされたも
ので、消費電力の少ない流量データ格納装置を提供する
ことを目的とする。
[0007] The present invention has been made in view of the above points, and has as its object to provide a flow rate data storage device with low power consumption.

【0008】[0008]

【課題を解決するための手段】本発明は上記の目的を達
成するために、流量データを記憶する記憶部と、単位量
の流体が流れるごとに流量計から出力される流量信号を
受信し、この流量信号を受信してから次の流量信号を受
信するまでの間隔時間を計測し、この間隔時間の変化を
単位時間あたりの流量の変化とみなし、間隔時間の所定
割合以上の変化の有無を判断する比較処理によって単位
時間あたりの流量が変化したと判断したときにのみ、前
回の間隔時間の変化から今回の間隔時間の変化までの間
に受信した流量信号の積算量と前回の間隔時間の変化か
ら今回の間隔時間の変化までの経過時間とを流量データ
として前記記憶部に格納する流量信号処理部とを有する
流量データ格納装置において、所定時間の経過をカウン
トするカウンタ部と、前記間隔時間の長さが前記所定時
間以上の場合には、前記比較処理を行わずに、前記流量
データを前記記憶部に格納するタイムオーバー処理部と
をさらに備えて流量データ格納装置を構成した。
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 the reception of this flow signal to the reception of the next flow signal is measured, and this change in the interval time is regarded as a change in the flow rate per unit time. Only when it is determined that the flow rate per unit time has changed by the comparison process, 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 previous interval time A flow rate data processing device having a flow rate signal processing unit for storing the elapsed time from the change to the change of the current interval time as flow rate data in the storage unit, When the length of the interval time is equal to or longer than the predetermined time, the flow rate data storage device is configured to further include a time-over processing unit that stores the flow rate data in the storage unit without performing the comparison process. .

【0009】[0009]

【作用】本発明は以上の構成によって、タイムオーバー
処理部が、間隔時間の長さが所定時間以上の場合には、
比較処理を行わずに流量データを記憶部に格納する。
According to the present invention, when the time-over processing unit has the interval time longer than a predetermined time,
The flow rate data is stored in the storage unit without performing the comparison process.

【0010】[0010]

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

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

【0012】流量データ格納装置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.

【0013】流量計7は所定量の流体が管路中を流れる
ごとに流量信号を出力し、流量データ格納装置1は流量
信号処理部21によってこの流量信号を受信する。流量
信号処理部21は、クロック部3からのクロックをカウ
ントするカウンタ部4からのカウント値により、流量信
号を受信してから次の流量信号を受信するまでの時間
(以下「間隔時間」という)を計測する。
The flow meter 7 outputs a flow signal every 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.

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

【0015】図2は、図1に示した流量信号処理部21
における流量信号受信時の処理のフローチャートであ
る。
FIG. 2 shows a 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.

【0016】図示したフローチャートは流量計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).

【0017】次に、タイムオーバー処理部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).

【0018】そして、積算量のクリア(F−12)と、
経過時間のクリア(F−13)を行った後、積算量に
「1」を加算することによって積算量の更新を行い(F
−14)、続いて、流量計7から受けた前回の流量信号
と今回の流量信号との間隔時間を経過時間に加算するこ
とによって経過時間の更新を行って(F−15)から処
理を終了する。ここで、経過時間とは流量の変化があっ
た後、次に流量が変化するまでの時間をいう。また、処
理を終了した際、CPU2はホールト状態となり、処理
実行時と比較して消費電力の少ない状態になる。
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.

【0019】ステップ(F−3)においてオーバーフロ
ーフラグがセットされていないと判断した場合には、ま
ず、流量信号処理部21は、流量計7から受けた前回の
流量信号と今回の流量信号との間隔時間(以下「今回の
間隔時間」という)を、前回流量の変化があった際にお
ける間隔時間(以下「前回の間隔時間」という)と比較
することにより流量の変化があったか否かを判断する
(F−6)。この判断は、今回の間隔時間と前回の間隔
時間とが一致しないときに流量の変化があったとみなし
てもよいが、このようにすると流量データ数がかなり増
えてしまうので、ここでは今回の間隔時間が前回の間隔
時間から1%以上変化したときに流量の変化があったと
みなす。
If it is determined in step (F-3) that the overflow flag has not been set, first, the flow signal processing unit 21 compares the previous flow signal received from the flow meter 7 with the current flow signal. It is determined whether or not the flow rate has changed by comparing the interval time (hereinafter, referred to as “this interval time”) with the interval time when the flow rate has changed last time (hereinafter, referred to as “previous interval time”). (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.

【0020】ステップ(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.

【0021】一方、ステップ(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.

【0022】ここでは、ガスの消費流量を測定する流量
計の流量データを格納する流量データ格納装置を例にと
って説明する。たとえば、ある一定流量のガスが流れて
消費されている状態から新たなガス器具の使用を開始す
ると、ガスの消費流量は過渡状態を経ながら増加して所
定の流量に落ち着く。
Here, a flow rate data storage device for storing flow rate data of a flow meter for measuring a 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.

【0023】このように、流量の変化は瞬間的でなく連
続的であるので、この変化の過程においては間隔時間
(流量信号を受信してから次の流量信号を受信するまで
の時間)は毎回変化することになる。本発明による流量
データ格納装置も、特開平4−60420号公報に記載
された流量測定方法を適用した従来の流量データ格納装
置と同様に流量信号の出力される時間間隔に変化があっ
たときに流量データを格納するものであるため、後述す
るような新たな処理を加えなければ、この変化のたび
(流量信号を受信するたび)に積算量が「1」である流
量データを記憶部5に格納して記憶部5の記憶容量を消
費してしまうので、流量信号を受信するたびに流量デー
タを格納しないで消費記憶容量を削減しようとしたこと
が有効に働かなくなってしまう。
As described above, since the change in the flow rate is not instantaneous but continuous, the interval time (time from the reception of the flow signal to the reception of the next flow signal) is always changed 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.

【0024】そこで、本発明では積算量が最小値すなわ
ち「1」であるときには流量データのうち積算量につい
ては記憶部5に記憶させないような処理を加えて、記憶
部5の記憶容量の消費をなくすようにしている。図2の
説明に戻り、具体的に説明する。
Therefore, in 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 consumption of 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.

【0025】ステップ(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 stored in the storage unit 5 in the recording format 3 described later and recorded (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).

【0026】そして、積算量のクリア(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).

【0027】一方、ステップ(F−7)において積算量
が最小値であると判断した場合には、積算量の記録は行
わずにステップ(F−9)へと進み、そのときの記録フ
ォーマットで経過時間を記憶部5に記憶することによっ
て記録する(F−8、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-8, F-11). After clearing the integrated amount (F-12) and clearing the elapsed time (F-13), the integrated amount is updated by adding "1" to the integrated amount (F-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】ここで、図4および図5を参照して記録フ
ォーマットについて説明する。
Here, the recording format will be described with reference to FIGS.

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

【0030】本発明による格納フォーマットにおいて
は、積算量用および経過時間用にそれぞれ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.

【0031】図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.

【0032】記録フォーマット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.

【0033】図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.

【0034】記録フォーマット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.

【0035】次に、記録フォーマット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.

【0036】最後に、記録フォーマット3については、
上位2ビットがモード、下位14ビットが積算量であ
る。このフォーマットでは、流量信号の数が20 〜213
個を示すビットを用いて、1個単位で2個〜16383
個の範囲の積算量を記録する。積算量が1個の場合に
は、上述したように積算量の記録は行わない。
Finally, regarding the 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.

【0037】次に、図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.

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

【0039】図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.

【0040】図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.

【0041】まず、タイムオーバー処理部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 is 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.

【0042】ここで、ステップ(S−2)において記録
フォーマット2で時間0を記録することの意味について
説明する。図5(b)を参照して説明したように、記録
フォーマット2は128秒〜16383秒の範囲の経過
時間を記録するフォーマットであり、このフォーマット
で時間0が記録されることは通常はあり得ない。そこ
で、本発明では経過時間が16384秒であることを表
すために、記録フォーマット2で時間0を記録するよう
にしている。先に説明した図2のステップ(F−5)も
同様の意味である。
Here, the meaning of recording time 0 in 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.

【0043】図3の説明に戻り、ステップ(S−1)に
おいてオーバーフローフラグがセットされていないと判
断した場合には、オーバーフローフラグをセットし(S
ー3)、積算量が最小値か否かを判断する(S−4)。
Returning to the description of FIG. 3, when 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).

【0044】ステップ(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).

【0045】そして、カウンタ部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.

【0046】図1に示した記憶部5には上述したような
処理によって流量データが記憶される。検針員による流
量データの回収は、検針員が、携帯する回収装置をイン
タフェース部6に接続し、流量データ転送処理部23を
介して記憶部5に格納された流量データを回収装置に転
送することによって行われる。
The flow rate data is stored in the storage unit 5 shown in FIG. 1 by the processing described above. 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

【0047】流量データ転送処理部23における流量デ
ータ転送処理も他の処理と同様に割込み処理であり、こ
の処理はたとえば回収装置のインタフェース部6への接
続を契機として割込むようにする。また、この流量デー
タ転送処理の終了によってもCPU2はホールト状態と
なり、処理実行時と比較して消費電力の少ない状態にな
る。
The flow rate data transfer processing in the flow rate data transfer processing section 23 is also an interruption 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.

【0048】[0048]

【発明の効果】以上説明したように、本発明によれば、
図3にフローチャートを示したタイムオーバー時の処理
において、流量計7から流量信号が出力された後163
84秒経過したときにはオーバーフローフラグをセット
する(S−3)とともに、図2のステップ(F−6)の
ような流量変化の有無の判断を行わずに流量データの記
憶を行う(S−4、S−5、S−6、S−7、S−8)
ようにしたので、時間間隔を比較する処理を省略し、処
理時間を短縮することができる。
As described above, according to the present invention,
In the process at the time over shown in the flow chart in FIG. 3, after the flow rate signal is output from the flow meter 7, 163
After the elapse of 84 seconds, the overflow flag is set (S-3), and the flow rate data is stored without determining whether there is a flow rate change as in step (F-6) of FIG. 2 (S-4, S-5, S-6, S-7, S-8)
As a result, the processing for comparing the time intervals can be omitted, and the processing time can be reduced.

【0049】また、本発明による流量データ格納装置に
おけるすべての処理は割込み処理であり、各処理を終了
した際にはCPU2がホールト状態となり、処理実行時
と比較して消費電力の少ない状態になる。
Further, all the processes in the flow rate data storage device according to the present invention are interrupt processes, and when each process is completed, the CPU 2 is in a halt state, and the power consumption is lower than that at the time of executing the process. .

【0050】このため、処理時間の短縮が消費電力の削
減につながり、消費電力の少ない流量データ格納装置を
提供することができる。
Therefore, a reduction in the processing time leads to a reduction in power consumption, and a flow rate data storage device with low power consumption can be provided.

【図面の簡単な説明】[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. Only when it is determined that the interval time has changed by the comparison process of measuring the interval time of the interval time and determining whether or not the interval time has changed, it is received between the change of the previous interval time and the change of the current interval time. A flow rate data processing unit having a flow rate signal processing unit for storing 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 the flow rate data in the storage unit; A counter unit that counts progress, and a time-over processing unit that stores the flow rate data in the storage unit without performing the comparison process when the length of the interval time is equal to or longer than the predetermined time. A flow rate data storage device comprising:
【請求項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. Of the flow rate signal received between the previous interval time change and the current interval time change is determined by the comparison process of measuring the interval time of the interval time to determine whether or not the interval time has changed. When the integrated amount is the minimum value, only the elapsed time from the change of the previous interval time to the change of the current interval time is stored in the storage unit as the flow rate data, and it is determined that the interval time has been changed by the comparison process; When the integrated amount of the flow signal received between the change of the previous interval time and the change of the current interval time is not the minimum value, it was received between the change of the previous interval time and the change of the current interval time. A flow rate data processing unit having a flow rate signal processing unit for storing, as flow rate data, the integrated amount of the quantity signal and the elapsed time from the change in the previous interval time to the change in the current interval time in the storage unit in a predetermined recording format; A counter unit that counts the elapse of a predetermined time; and a time-over processing unit that stores the flow rate data in the storage unit without performing the comparison process when the interval time is equal to or longer than the predetermined time. And a flow data storage device.
【請求項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.
JP19644494A 1994-08-22 1994-08-22 Flow data storage device Expired - Fee Related JP3209480B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPH0862019A JPH0862019A (en) 1996-03-08
JP3209480B2 true JP3209480B2 (en) 2001-09-17

Family

ID=16357929

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP3209480B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231541B1 (en) * 2004-02-17 2007-06-12 Unisys Corporation Method for predictably feeding and consuming RAM memory to recognize over-consumption of resources
JP6052717B2 (en) * 2012-01-26 2016-12-27 パナソニックIpマネジメント株式会社 Data collection / transmission node, data collection / transmission system, and data collection / transmission method

Also Published As

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

Similar Documents

Publication Publication Date Title
CN101706299B (en) A Coriolis Mass Flow Transmitter Based on DSP
CN102506951A (en) Method and system of digital driving following for Coriolis mass flowmeter
JP3209480B2 (en) Flow data storage device
JP3205469B2 (en) Flow data storage device
JP3209479B2 (en) Flow data storage device
CN110553976B (en) Method and device for detecting environmental corrosion rate
CN201444061U (en) Network Intelligent Flow Totalizer
CN114414834A (en) Flow velocity calculation and abnormity alarm method based on Hall pulse time difference method
CN116519098A (en) Monitoring method, equipment and medium based on mass flowmeter
JP2004219260A (en) Gas meter and gas meter monitoring system
JP4296824B2 (en) Fluid flow measuring device and fluid flow measuring method
CN120846436A (en) Ultrasonic water meter measurement method, equipment and medium
JP3212401B2 (en) Flow data storage device
JPS626544Y2 (en)
CN119363295B (en) Method, system and device for high-speed distribution of ship navigation information based on optical fiber link
CN120970747A (en) A method for detecting abnormal fluctuations in ultrasonic water meter filtration based on variance algorithm
JP3205046B2 (en) Receiver for electronic meter
JP3082124B2 (en) Electromagnetic flow meter
CN114199321A (en) Gas flow volume multi-parameter metering and tracing method and correcting instrument
JPH06317603A (en) Frequency converter
JP2599747Y2 (en) Remote indicator
CN114485817A (en) Metering method based on pulse time difference method in low-power-consumption mechanical meter
WO2024132067A1 (en) Sensor device with synchronized measurement capability
JPH06160530A (en) Count rate meter
JPH034945Y2 (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

LAPS Cancellation because of no payment of annual fees