JPH0769182B2 - Pulse signal processor - Google Patents

Pulse signal processor

Info

Publication number
JPH0769182B2
JPH0769182B2 JP63090088A JP9008888A JPH0769182B2 JP H0769182 B2 JPH0769182 B2 JP H0769182B2 JP 63090088 A JP63090088 A JP 63090088A JP 9008888 A JP9008888 A JP 9008888A JP H0769182 B2 JPH0769182 B2 JP H0769182B2
Authority
JP
Japan
Prior art keywords
pulse signal
value
pulse
time
given
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 - Lifetime
Application number
JP63090088A
Other languages
Japanese (ja)
Other versions
JPH01262411A (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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP63090088A priority Critical patent/JPH0769182B2/en
Publication of JPH01262411A publication Critical patent/JPH01262411A/en
Publication of JPH0769182B2 publication Critical patent/JPH0769182B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、工業プロセスに設置される流量計等から発生
するパルス信号の間隔を測定して、そのときの流量に対
応する瞬時値を算出するパルス信号処理装置の改善に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention measures the interval of pulse signals generated from a flow meter or the like installed in an industrial process, and calculates an instantaneous value corresponding to the flow rate at that time. To improve the pulse signal processing device.

<従来の技術> パルス信号が与えられる毎に、前回与えられたパルス信
号との間隔を測定して、瞬時値を算出する従来のパルス
信号処理装置の動作を第5図のタイムチャートを用いて
説明する。
<Prior Art> Each time a pulse signal is applied, the operation of the conventional pulse signal processing device that measures the interval with the previously applied pulse signal and calculates the instantaneous value will be described with reference to the time chart of FIG. explain.

流量計等の外部機器から与えられるパルス信号P1とパル
ス信号P2との間隔をt1とすると、パルス信号P2が与えら
れた際に、はじめて間隔t1が測定され、このときの瞬時
値v1(ts/t1;tsパルス周期のスパン)が算出される。次
にパルス信号P3が与えられると、パルス信号P2との間隔
t2が測定され、このとき瞬時値v2(=ts/t2)が算出さ
れる。以下同様である。
Assuming that the interval between the pulse signal P1 and the pulse signal P2 provided from an external device such as a flow meter is t1, the interval t1 is measured for the first time when the pulse signal P2 is provided, and the instantaneous value v1 (ts / t1; ts pulse period span) is calculated. Next, when the pulse signal P3 is given, the interval with the pulse signal P2
t2 is measured, and the instantaneous value v2 (= ts / t2) is calculated at this time. The same applies hereinafter.

<発明が解決しようとする課題> 従来の装置にあっては、上記したように、パルス信号P
が与えられてはじめて新しい瞬時値vが算出される。
<Problems to be Solved by the Invention> In the conventional device, as described above, the pulse signal P
Only when is given a new instantaneous value v.

ところが、流量計等から発生したパルス信号Pを対象と
する場合、実際の流量の瞬時値v′は前回パルス信号P
(i−1)が発生してから今回パルス信号Piが発生する
までの時間値tiに対応する。
However, when the pulse signal P generated from a flow meter or the like is targeted, the instantaneous value v ′ of the actual flow rate is the previous pulse signal P.
It corresponds to the time value ti from the occurrence of (i-1) to the occurrence of the pulse signal Pi this time.

即ち、第5図にあって、正しい瞬時値v1′,v2′であ
る。
That is, the correct instantaneous values v1 'and v2' in FIG.

従って、従来の装置では瞬時値算出のタイミングが1回
遅れであり、値vを1次遅れ等のフィルタを通した場合
に、この遅れが蓄積し、正しい瞬時流量値を得ることが
できない。
Therefore, in the conventional device, the timing for calculating the instantaneous value is delayed once, and when the value v is passed through a filter such as a first-order delay, this delay accumulates and the correct instantaneous flow rate value cannot be obtained.

また、第6図に示すように、パルス信号Pが途絶えた場
合、前回値vnを保持し、適当な時間tLが経過した時点で
出力(瞬時値v)が0%になるようにしているが、外部
で監視していると、ある時点で急激に出力が0%を指示
することになり、周辺装置に混乱を起こすことがある。
Further, as shown in FIG. 6, when the pulse signal P is interrupted, the previous value vn is retained so that the output (instantaneous value v) becomes 0% when an appropriate time tL elapses. When monitored externally, the output suddenly indicates 0% at some point, which may cause confusion in peripheral devices.

本発明は、以上のような問題を解決するものであり、正
しい瞬時値に近い値を算出できるパルス信号処理装置を
実現することを目的とする。
The present invention solves the above problems, and an object thereof is to realize a pulse signal processing device that can calculate a value close to a correct instantaneous value.

<課題を解決するための手段> 以上の問題を解決した本発明は、前回のパルス周期を記
憶して、今回与えられたパルス信号により測定されるパ
ルス周期が前回パルス周期を越えるか否かを判断して瞬
時値を更新するものであり、その構成は次の通りであ
る。
<Means for Solving the Problems> The present invention, which solves the above problems, stores the previous pulse cycle and determines whether the pulse cycle measured by the pulse signal given this time exceeds the previous pulse cycle. The value is determined and the instantaneous value is updated, and its configuration is as follows.

即ち、パルス信号が与えられてそのパルス周期を計数す
る時間計数手段と、前記パルス信号が与えられる毎に現
在格納している値から前回測定した前回パルス周期の値
に更新して格納する格納手段と、前記時間計数手段の計
数値と前記格納手段に格納された値とを比較する比較手
段と、前記パルス信号が与えられた場合は前記時間計数
手段の計数値より前記パルス周期の瞬時値を演算し、前
記パルス信号が与えられる前に前記計数値が前記格納手
段に格納されている値を越えたことを表す信号が前記比
較手段から与えられた場合はその時点での前記計数値よ
り前記パルス周期の瞬時値を演算する演算手段とを有す
ることを特徴とするパルス信号処理装置である。
That is, a time counting means for receiving a pulse signal and counting the pulse cycle thereof, and a storage means for updating the value stored at present every time the pulse signal is applied to the value of the previous pulse cycle measured last time and storing the value. And comparing means for comparing the count value of the time counting means with the value stored in the storing means, and when the pulse signal is given, the instantaneous value of the pulse period is calculated from the count value of the time counting means. If a signal indicating that the count value exceeds the value stored in the storage means before the pulse signal is given by the calculation means is given from the comparison means, A pulse signal processing device, comprising: a calculating unit that calculates an instantaneous value of a pulse period.

また、パルス信号が与えられる周期として、複数発のパ
ルス信号群が有する時間を平均してパルス周期としても
良い。
Further, as the period in which the pulse signal is given, the time possessed by a plurality of pulse signal groups may be averaged to obtain the pulse period.

<作用> 本発明のパルス信号処理装置は、前回のパルス周期を格
納手段に記憶しておき、今回のパルス信号がこの格納さ
れたパルス周期を越えても入力されない場合は、この時
点でパルス入力があったとして瞬時値の更新を行う。
<Operation> In the pulse signal processing device of the present invention, the previous pulse period is stored in the storage means, and if the current pulse signal is not input even if it exceeds the stored pulse period, pulse input is performed at this point. If so, the instantaneous value is updated.

<実施例> 第1図に本発明を実施したパルス信号処理装置の構成を
表わす。
<Embodiment> FIG. 1 shows the configuration of a pulse signal processing apparatus embodying the present invention.

この図において、1はパルス信号Pの有無を検出するパ
ルス検出部、2はパルス検出部1の検出信号によりリセ
ット/再スタートするタイマ、3はパルス検出部1の検
出信号によりこのときのタイマ2の値tをtzとして保持
する格納部、4は常時格納部3の値tzとタイマ2の値t
とを比較してt>tzの際に比較検出をなす比較部、5は
パルス検出部1の検出信号が与えられた場合または比較
器4から比較出力(t>tz)が与えられた場合に瞬時値
v(=ts/t;tsはパルス周期のスパン)を演算する演算
部である。
In the figure, 1 is a pulse detection unit that detects the presence or absence of a pulse signal P, 2 is a timer that is reset / restarted by the detection signal of the pulse detection unit 1, and 3 is a timer 2 at this time that is detected by the detection signal of the pulse detection unit 1. Storing the value t of tz as tz, 4 always stores the value tz of the storage 3 and the value t of the timer 2.
Comparing with, and performing comparison detection when t> tz, the comparison unit 5 receives the detection signal of the pulse detection unit 1 or the comparison output (t> tz) from the comparator 4. An arithmetic unit for calculating an instantaneous value v (= ts / t; ts is a pulse cycle span).

このような構成の本発明装置の動作を第2図のフローチ
ャートを用いて説明する。
The operation of the device of the present invention having such a configuration will be described with reference to the flowchart of FIG.

測定開始と同時にタイマ2がスタートし、パルス検出部
1にてパルス信号Pが検出されると、このときのタイマ
2の値tが演算部5に与えられてv=ts/tの演算が行わ
れ、瞬時値vが算出される。このときのタイマ2の値t
は格納部3に値tzとして格納される。
When the pulse signal P is detected by the pulse detector 1 when the timer 2 starts at the same time as the start of the measurement, the value t of the timer 2 at this time is given to the calculator 5 to calculate v = ts / t. Then, the instantaneous value v is calculated. Value t of timer 2 at this time
Is stored in the storage unit 3 as the value tz.

パルス検出部1は常時パルス信号Pの有無を監視し、パ
ルス信号Pが検出されず、また比較部4にて行われるタ
イマ2の値tと格納部3の値tzの比較結果がt>tzでな
い期間は、演算部5は出力vを維持して動作は行わな
い。
The pulse detection unit 1 constantly monitors the presence or absence of the pulse signal P, the pulse signal P is not detected, and the comparison result of the value t of the timer 2 and the value tz of the storage unit 3 performed by the comparison unit 4 is t> tz. During a period other than the above, the calculation unit 5 maintains the output v and does not operate.

入力パルスPが検出されないまま、時間tzが経過し、比
較部4にてt>tzとなると、比較出力により、演算部5
はこのときのタイマ2の値tより瞬時値vを演算し、前
回の瞬時値vの更新を開始する。
When time tz elapses without detecting the input pulse P and t> tz in the comparison unit 4, the comparison unit outputs the calculation unit 5
Calculates the instantaneous value v from the value t of the timer 2 at this time and starts updating the previous instantaneous value v.

以上の動作を繰り返す。The above operation is repeated.

第3図は本発明装置を用いた際の実際の動作例を表わす
タイムチャートである。
FIG. 3 is a time chart showing an actual operation example when the device of the present invention is used.

パルス信号P2が与えられた時点で、パルス信号P1とパル
ス信号P2との間隔t1がタイマ2にて測定され、演算部5
にて瞬時値v1が求められ、格納部3は値t1を値tzとして
格納する。
When the pulse signal P2 is given, the interval t1 between the pulse signal P1 and the pulse signal P2 is measured by the timer 2, and the calculation unit 5
The instantaneous value v1 is obtained at, and the storage unit 3 stores the value t1 as the value tz.

また、パルス信号P2が与えられた時点で、比較部4は値
tと値tz(=t1)との比較動作を開始し、時間tzが経過
するまで演算部5は瞬時値v1を維持する。時間tzが経過
しても次のパルス信号Pが与えられない場合即ち比較部
4から比較出力がなされると、演算部5はこのときのタ
イマ2の値tを用いてv=ts/tの演算を実行する。
Further, when the pulse signal P2 is given, the comparison unit 4 starts the comparison operation between the value t and the value tz (= t1), and the calculation unit 5 maintains the instantaneous value v1 until the time tz elapses. When the next pulse signal P is not given even after the time tz elapses, that is, when the comparison output from the comparison unit 4 is performed, the calculation unit 5 uses the value t of the timer 2 at this time to calculate v = ts / t. Perform an operation.

演算部5は、アナログ回路で構成してもマイクロプロセ
ッサ等で構成しても良い。
The arithmetic unit 5 may be composed of an analog circuit or a microprocessor or the like.

そして、次のパルス信号P3が与えられた時点でパルス信
号P2とパルス信号P3との間隔t2より、演算部5は正しい
瞬時値v2(=ts/t2)を出力する。一方、格納部3は値t
zを値t1から値t2へ更新格納する。
Then, when the next pulse signal P3 is given, the calculation unit 5 outputs the correct instantaneous value v2 (= ts / t2) from the interval t2 between the pulse signal P2 and the pulse signal P3. On the other hand, the storage unit 3 stores the value t
Update and store z from value t1 to value t2.

次に、時間tz(=t2)が経過しない時点でパルス信号P4
が与えられると、このときのタイマ2の値t3により、直
ちに瞬時値v3(=ts/t3)が算出され、値t3が格納部3
に値tzとして格納される。
Next, when the time tz (= t2) does not elapse, the pulse signal P4
Is given, the instantaneous value v3 (= ts / t3) is immediately calculated from the value t3 of the timer 2 at this time, and the value t3 is stored in the storage unit 3.
Stored as the value tz in.

以後、同様の動作が繰り返される。After that, the same operation is repeated.

第3図のタイムチャートから分かるように、流量が減少
するとき、即ちパルス信号Pの周期が長くなった場合、
カーブc1,c2により瞬時値vは徐々に減少するため、1
次遅れフィルタ等を介しても瞬時値v出力の遅れを最少
限に止めることができる。また、流量が0%になった場
合でも、前回瞬時値から徐々に減少するため、急激に瞬
時値が0%になることはなく、周辺装置に及ぼす影響も
少なく、実流量に近い状態を出力することができる。
As can be seen from the time chart of FIG. 3, when the flow rate decreases, that is, when the cycle of the pulse signal P becomes longer,
Since the instantaneous value v gradually decreases due to the curves c1 and c2, 1
The delay of the output of the instantaneous value v can be minimized even through a secondary delay filter or the like. Even if the flow rate becomes 0%, it will gradually decrease from the previous instantaneous value, so the instantaneous value will not suddenly become 0%, the influence on peripheral devices will be small, and a state close to the actual flow rate will be output. can do.

尚、上記の例では、1パルス毎にパルス信号の周期を測
定する例を挙げたが、パルス周波数が高い場合、第4図
に示すように、複数発n1,n2のパルス間隔t1,t2を測定し
てその平均値t1a(=t1/n1),t2a(=t2/n2)を算出し
てパルス周期を求めるようにしても良い。この場合、パ
ルス周波数が低くなると、1パルス毎のパルス間隔が算
出される。
In the above example, the period of the pulse signal is measured for each pulse, but when the pulse frequency is high, as shown in FIG. 4, the pulse intervals t1 and t2 of a plurality of shots n1 and n2 are set. The pulse period may be obtained by measuring and calculating the average values t1a (= t1 / n1) and t2a (= t2 / n2). In this case, when the pulse frequency becomes low, the pulse interval for each pulse is calculated.

<発明の効果> 以上述べたように、本発明のパルス信号処理装置は、前
回のパルス周期を格納手段に記憶しておき、今回のパル
ス信号がこの格納されたパルス周期を越えても入力され
ない場合は、この時点でパルス入力があったとして瞬時
値の更新を行うので、瞬時値vを1次遅れ等のフィルタ
を通した場合でも遅れを最少限にして正しい瞬時値に近
い値を得ることができ、またパルス信号が途絶えた場合
でも徐々に出力が減少し周辺装置に混乱を起こすことは
ない。
<Effects of the Invention> As described above, in the pulse signal processing device of the present invention, the previous pulse cycle is stored in the storage means, and the current pulse signal is not input even if it exceeds the stored pulse cycle. In this case, since the instantaneous value is updated assuming that there is a pulse input at this point, even if the instantaneous value v is passed through a filter such as a first-order delay, the delay should be minimized to obtain a value close to the correct instantaneous value. Moreover, even if the pulse signal is interrupted, the output is gradually reduced and the peripheral device is not confused.

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

第1図は本発明を実施したパルス信号処理装置の構成を
表わす図、第2図は本発明装置の動作を表わすフローチ
ャート、第3図(a),(b),(c)は本発明の実際
の動作を表わすタイムチャート、第4図は本発明装置に
おいて周波数の高いパルス信号を扱う場合を説明するた
めの図、第5図(a),(b),(c)及び第6図
(a),(b)は従来のパルス信号処理装置の動作を表
わすタイムチャートである。 1……パルス検出部、2……タイマ、3……格納部、4
……比較部、5……演算部。
FIG. 1 is a diagram showing the configuration of a pulse signal processing apparatus embodying the present invention, FIG. 2 is a flow chart showing the operation of the present invention apparatus, and FIGS. 3 (a), (b), and (c) are the present invention. FIG. 4 is a time chart showing an actual operation, FIG. 4 is a diagram for explaining a case of handling a high frequency pulse signal in the device of the present invention, FIGS. 5 (a), (b), (c) and FIG. 8A and 8B are time charts showing the operation of the conventional pulse signal processing device. 1 ... Pulse detection unit, 2 ... Timer, 3 ... Storage unit, 4
…… Comparison section, 5 …… Calculation section.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】パルス信号が与えられてそのパルス周期を
計数する時間計数手段と、前記パルス信号が与えられる
毎に現在格納している値から前回測定した前記パルス周
期の値に変更して格納する格納手段と、前記時間計数手
段の計数値と前記格納手段に格納された値とを比較する
比較手段と、前記パルス信号が与えられた場合は前記時
間計数手段の計数値より前記パルス周期の瞬時値を演算
し、前記パルス信号が与えられる前に前記計数値が前記
格納手段に格納されている値を越えたことを表す信号が
前記比較手段から与えられた場合はその時点での前記計
数値より前記パルス周期の瞬時値を演算する演算手段と
を有することを特徴とするパルス信号処理装置。
1. A time counting means for receiving a pulse signal and counting the pulse period thereof, and for each time the pulse signal is given, a value stored at present is changed to a value of the previously measured pulse period and stored. Storing means, comparing means for comparing the count value of the time counting means with the value stored in the storing means, and when the pulse signal is given, the pulse cycle is calculated from the count value of the time counting means. When an instantaneous value is calculated and a signal indicating that the count value exceeds the value stored in the storage means before the pulse signal is given from the comparison means, the total value at that time is calculated. A pulse signal processing device, comprising: a calculating unit that calculates an instantaneous value of the pulse period from a numerical value.
【請求項2】パルス信号が与えられる周期として、複数
発のパルス信号群が有する時間を平均してパルス周期と
することを特徴とする請求項(1)記載のパルス信号処
理装置。
2. The pulse signal processing device according to claim 1, wherein, as a period in which the pulse signal is given, the times possessed by a plurality of pulse signal groups are averaged to obtain a pulse period.
JP63090088A 1988-04-12 1988-04-12 Pulse signal processor Expired - Lifetime JPH0769182B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63090088A JPH0769182B2 (en) 1988-04-12 1988-04-12 Pulse signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63090088A JPH0769182B2 (en) 1988-04-12 1988-04-12 Pulse signal processor

Publications (2)

Publication Number Publication Date
JPH01262411A JPH01262411A (en) 1989-10-19
JPH0769182B2 true JPH0769182B2 (en) 1995-07-26

Family

ID=13988770

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63090088A Expired - Lifetime JPH0769182B2 (en) 1988-04-12 1988-04-12 Pulse signal processor

Country Status (1)

Country Link
JP (1) JPH0769182B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57185930U (en) * 1981-05-21 1982-11-25
JPS6321814U (en) * 1986-07-25 1988-02-13

Also Published As

Publication number Publication date
JPH01262411A (en) 1989-10-19

Similar Documents

Publication Publication Date Title
JPH0769182B2 (en) Pulse signal processor
JPH03138554A (en) Humidity measuring instrument
JP2023005999A (en) Discharge event detection system
JP2009088953A (en) Pulse input device
JP3109210B2 (en) Ignition flow rate detector
JP2895870B2 (en) Integrator with minute flow cut function
JP3044933B2 (en) Appliance identification device
JP3114388B2 (en) Electronic balance
JPH03170030A (en) Integrator for flow rate measuring apparatus
JP2000156982A (en) Ac output current abnormality detector
JP2569071Y2 (en) Frequency voltage converter
JP2568760Y2 (en) Auxiliary equipment monitoring device
JPH09114541A (en) Interruption generation time confirming circuit and processor
JPH0610263Y2 (en) Instantaneous flow monitor
JP2000184580A (en) Power fluctuation detector
JP2018028449A (en) Frequency counter and field equipment
JPS5847014B2 (en) Fluid leak alarm device
JP2555355B2 (en) Boiler tube monitor system
JP2531808Y2 (en) Ripple voltage reduction device
JPS6259815A (en) Flow rate monitoring device
JPH02276955A (en) Process analyzer
JPS63311131A (en) Electronic clinical thermometer
JPS60225065A (en) Vehicle speed detection
JP2708280B2 (en) Fluidic gas meter with micro flow sensor
JPS62108178A (en) Digital rate meter