JPS6311662Y2 - - Google Patents
Info
- Publication number
- JPS6311662Y2 JPS6311662Y2 JP16185783U JP16185783U JPS6311662Y2 JP S6311662 Y2 JPS6311662 Y2 JP S6311662Y2 JP 16185783 U JP16185783 U JP 16185783U JP 16185783 U JP16185783 U JP 16185783U JP S6311662 Y2 JPS6311662 Y2 JP S6311662Y2
- Authority
- JP
- Japan
- Prior art keywords
- input
- pulse
- period
- counter
- filter
- 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
Links
- 238000005259 measurement Methods 0.000 claims description 16
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000014759 maintenance of location Effects 0.000 description 4
- 230000000737 periodic effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000010349 pulsation Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Landscapes
- Measuring Volume Flow (AREA)
- Details Of Flowmeters (AREA)
- Measuring Frequencies, Analyzing Spectra (AREA)
Description
【考案の詳細な説明】
本考案は、流量計からのパルス信号を受けて流
量を測定する場合等に用いられ、パルス信号をデ
イジタルの測定値に変換する信号交換装置に関す
る。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a signal exchange device that is used when measuring a flow rate by receiving a pulse signal from a flowmeter, and converts the pulse signal into a digital measurement value.
従来のこの種信号変換装置は第1図に示すよう
に、流量計(図示せず)からの入力パルス信号Pi
をパルスカウンタ1で計数し、同時にクロツクパ
ルスPcをクロツクカウンタ2で計数し、タイミン
グ回路6の出力で決る測定周期毎にパルスカウン
タ1の計数値Moとクロツクカウンタ2の計数値
Toとを入力回路3で読取り、読取つた計数値
Mo・Toと予め与えられたスパンパルス周期Ts
(フルスパン時に入力されるパルス信号のクロツ
クパルス換算周期)とによつて測定値演算回路4
でTs・Mo/Toなる演算を行いデイジタルの測定
値入力Xoを求め、その後一次遅れフイルタ5に
よつて定周期ΔTで次式の処理を行い、測定値出
力Yoを求めている。 As shown in FIG. 1, a conventional signal conversion device of this type receives an input pulse signal P i from a flowmeter (not shown).
is counted by the pulse counter 1, and at the same time the clock pulse P c is counted by the clock counter 2, and the count value M o of the pulse counter 1 and the count value of the clock counter 2 are calculated at each measurement period determined by the output of the timing circuit 6.
T o is read by input circuit 3, and the read count value
M o・T o and pre-given span pulse period T s
(Clock pulse conversion period of pulse signal input during full span) Measured value calculation circuit 4
Then, the calculation T s・M o /T o is performed to obtain the digital measured value input X o , and then the following equation is processed by the first-order lag filter 5 at a fixed period ΔT to obtain the measured value output Y o . There is.
Yo=Yo-1+1/1+T/ΔT(Xo−Yo-1) (1)
ただし、T:フイルタの時定数
ところで入力パルス信号Piは、流量計から流量
信号として与えられることが多い。この場合一般
的によく使用されているオーバル流量計は、正確
に定流量流れている状態でも、ロータが楕円形を
しており、等速回転しないため、原理的にパルス
周期は等間隔にはならず、周期性のある不等間隔
パルスとなる。また、流量測定においては、一般
にいわゆる脈動が存在し、タービン流量計のよう
に原理的には等間隔で出力するものであつても、
周期的に不等間隔なパルスとなることがある。こ
のような不等間隔パルスを従来の信号変換装置で
デイジタル値に変換すると、フイルタ5の時定数
を大きくしたときの安定値は正しい測定値になら
ず、それより高い値を示す。そのずれは、不等間
隔性の度合が顕著な程大きい。この関係を第2図
のタイムチヤートを用いて以下に説明する。Y o = Y o-1 + 1/1 + T/ΔT (X o − Y o-1 ) (1) Where, T: Time constant of the filter By the way, the input pulse signal P i can be given as a flow signal from a flow meter. many. In this case, the oval flowmeter that is commonly used has an elliptical rotor that does not rotate at a constant speed even when a constant flow rate is flowing, so in principle, the pulse period is not evenly spaced. Instead, it becomes a periodic, irregularly spaced pulse. In addition, in flow measurement, there is generally so-called pulsation, and even if the output is output at equal intervals in principle like a turbine flow meter,
This may result in pulses that are periodically spaced at irregular intervals. When such irregularly spaced pulses are converted into digital values by a conventional signal converter, the stable value when the time constant of the filter 5 is increased does not become a correct measured value, but shows a higher value. The deviation is so large that the degree of non-uniform spacing is remarkable. This relationship will be explained below using the time chart of FIG.
第2図において、イは入力パルス信号Piの波
形、ロは測定値入力Xoの波形である。なお第2
図においては、説明を簡単にするために、入力パ
ルス信号Piが1パルス来る毎にXoを求める場合
が示してある。1パルス分の流量が流れた結果、
流量計から1パルスが発信されて、前回のパルス
から今回のパルス迄の時間に計数されたクロツク
カウンタ2の計数値Toが入力回路3に読取られ、
測定値入力Xoが求められる。その値は次のパル
スが来る迄保持される。しかもその測定値入力
Xoが保持されている時間は、実際にその測定値
を求めた測定周期に対応しないで、ちようど1パ
ルス遅れとなる。このため正しい保持時間が、測
定周期Toが小さく測定値入力Xoが大きいとき短
かくなり、Toが大きくXoが小さいと長くなるの
に対し、実際の保持時間は、Toが小さくXoが大
きいとき長くなり、Toが大きくXoが小さいとき
短かくなる。したがつて、定周期ΔTの一次遅れ
フイルタ5で処理しても、フイルタ時定数Tを大
きくしたときの安定値は、第2図ロの点線に示す
ように正しい安定値(第2図ロの一定鎖線)には
ならず、それより高い値を示す。そのずれは、不
等間隔性の度合が顕著な程大きくなり、測定上無
視できない場合がある。 In FIG. 2, A is the waveform of the input pulse signal P i and B is the waveform of the measured value input X o . Furthermore, the second
In the figure, in order to simplify the explanation, a case is shown in which X o is calculated every time one pulse of the input pulse signal P i arrives. As a result of one pulse of flow,
One pulse is transmitted from the flowmeter, and the count value T o of the clock counter 2 counted during the time from the previous pulse to the current pulse is read by the input circuit 3.
Measured value input X o is required. That value is held until the next pulse. Moreover, input the measured value
The time that X o is held does not correspond to the measurement cycle in which the measured value was actually obtained, but is delayed by one pulse. For this reason, the correct retention time will be shorter when the measurement period T o is small and the measured value input X o is large, and will be longer when T o is large and X o is small, whereas the actual retention time is It becomes longer when X o is large, and becomes shorter when T o is large and X o is small. Therefore, even if the processing is performed by the first-order lag filter 5 with a constant period ΔT, the stable value when the filter time constant T is increased is the correct stable value as shown by the dotted line in Figure 2 (b). (constant chain line), but shows a higher value. The deviation becomes so large that the degree of non-uniform spacing becomes remarkable, and may not be negligible in terms of measurement.
本考案は、フイルタの処理周期をパルス信号の
測定周期に基づいて設定することによつて、パル
ス信号が周期性のある不等間隔パルスであつても
正しい測定値に安定させることのできる信号変換
装置を実現したものである。 The present invention is a signal conversion system that can stabilize the measured value even if the pulse signal is periodic and irregularly spaced pulses by setting the processing cycle of the filter based on the measurement cycle of the pulse signal. This is the realization of the device.
第3図は本考案信号変換装置の一実施例を示す
接続図である。第3図において、第1図の従来例
と異るところは、フイルタ5のフイルタ処理時間
を一定値ΔTの代りに入力回路3からの測定周期
Toを用い、次式の演算を行うことによつてフイ
ルタ5を可変ゲインとした点である。 FIG. 3 is a connection diagram showing one embodiment of the signal conversion device of the present invention. In FIG. 3, the difference from the conventional example in FIG.
The point is that the gain of the filter 5 is made variable by using T o and calculating the following equation.
Yo=Yo-1+1/1+T/To(Xo−Yo-1) (2)
このように構成した本考案においては、測定値
入力Xoおよびその保持時間は従来と同じである
が、測定周期Toが小さくなり測定値入力Xoが大
きくなると、フイルタ5のゲイン1/1+(T/
To)が小さくなつて、保持時間が長くなること
による影響を補償し、Toが大きくなりXoが小さ
くなると、フイルタ5のゲインが大きくなつて、
保持時間が短かくなることによる影響を補償す
る。その結果フイルタ5の時定数を大きくしたと
きの安定値は正しい安定値に近づく。Y o = Y o-1 + 1/1 + T/T o (X o − Y o-1 ) (2) In the present invention configured in this way, the measured value input X o and its retention time are the same as the conventional one. However, when the measurement period T o becomes smaller and the measured value input X o becomes larger, the gain of the filter 5 becomes 1/1 + (T/
To compensate for the effect of the holding time becoming longer as T o ) becomes smaller, and as T o becomes larger and X o becomes smaller, the gain of the filter 5 increases,
Compensate for the effects of shorter retention times. As a result, the stable value when the time constant of the filter 5 is increased approaches the correct stable value.
なお上述では、入力パルス信号Piが1パルス来
る毎にその周期を測定する場合を例示したが、Pi
が複数パルス来る毎にその周期(平均周期)を測
定する場合も同様にできる。また各処理を第4図
の実施例に示すように定周期の処理信号Psに同期
して行うようにしてもよい。この場合には入力パ
ルス信号Piが低周波となり、測定周期内に1パル
スも入力されないとき測定値演算およびフイルタ
処理を行わないようにしてある。この関係を示し
たのが第5図のタイムチヤートである。第5図に
おいて、イは入力パルス信号Piの波形、ロは定周
期の処理信号Psの波形、ハは入力読取りのタイミ
ング、ニは測定値演算回路4およびフイルタ5の
処理タイミング、ホは測定値入力Xoの波形であ
る。すなわち入力回路3は前回の処理信号Psの後
に最初に入力される入力パルスと今回の処理信号
Psの後に最初に入力される入力パルスとの間にパ
ルスカウンタ1およびクロツクカウンタ2に計数
された値Mo・Toを読取り、測定値演算回路4お
よびフイルタ5は入力回路3が新しいデータを読
取つたときのみ処理を行うようになつている。な
お第4図において一点鎖線で囲まれた入力回路
3,測定値演算回路4,フイルタ5として、マイ
クロコンピユータμpを用い、これらの機能をプ
ログラムで実現してもよい。この場合動作のタイ
ミングは処理信号Psの後に最初に入力される入力
パルスPiの立上りでマイクロコンピユータに割込
をかけることによつて管理される。 Note that in the above example, the period of the input pulse signal P i is measured every time one pulse arrives, but P i
The same method can be used to measure the period (average period) every time a plurality of pulses occur. Further, each process may be performed in synchronization with a fixed period processing signal Ps as shown in the embodiment of FIG. In this case, the input pulse signal P i has a low frequency, and when no pulse is input within the measurement period, measurement value calculation and filter processing are not performed. The time chart in FIG. 5 shows this relationship. In FIG. 5, A is the waveform of the input pulse signal P i , B is the waveform of the fixed-cycle processed signal P s , C is the timing of input reading, D is the processing timing of the measured value calculation circuit 4 and filter 5, and E is the waveform of the fixed-cycle processed signal P s. This is the waveform of the measured value input Xo . In other words, the input circuit 3 receives the first input pulse input after the previous processed signal Ps and the current processed signal.
The values M o and T o counted by pulse counter 1 and clock counter 2 are read between the first input pulse input after P s , and the measured value calculation circuit 4 and filter 5 Processing is performed only when data is read. Note that a microcomputer μp may be used as the input circuit 3, the measured value calculation circuit 4, and the filter 5 surrounded by the dashed line in FIG. 4, and these functions may be realized by a program. In this case, the timing of the operation is controlled by interrupting the microcomputer at the rising edge of the first input pulse P i after the processed signal P s .
以上説明したように本考案においては、一次遅
れフイルタの処理周期を入力パルス信号の周期に
関連して設定するようにしているので、パルス信
号が周期性のある不等間隔であつても正しい測定
値に安定させることができる信号変換装置が得ら
れる。 As explained above, in the present invention, the processing period of the first-order lag filter is set in relation to the period of the input pulse signal, so even if the pulse signal is periodic and irregularly spaced, accurate measurements can be made. A signal conversion device is obtained which can be stabilized at a value.
第1図は従来装置の一例を示す接続図、第2図
はその動作説明のためのタイムチヤート、第3図
は本考案装置の一実施例を示す接続図、第4図は
本考案装置の他の実施例を示す接続図、第5図は
その動作説明のためのタイムチヤートである。
1……パルスカウンタ、2……クロツクカウン
タ、3……入力回路、4……測定値演算回路、5
……フイルタ、6……タイミング回路。
Fig. 1 is a connection diagram showing an example of the conventional device, Fig. 2 is a time chart for explaining its operation, Fig. 3 is a connection diagram showing an embodiment of the device of the present invention, and Fig. 4 is a connection diagram of the device of the present invention. A connection diagram showing another embodiment, and FIG. 5 is a time chart for explaining its operation. 1... Pulse counter, 2... Clock counter, 3... Input circuit, 4... Measured value calculation circuit, 5
...Filter, 6...Timing circuit.
Claims (1)
ツクパルスを計数するクロツクカウンタと、測定
周期毎に前記パルスカウンタおよびクロツクカウ
ンタの計数値を読取り入力パルス周期を演算し、
その入力パルス周期でスパンパルス周期を除算し
てデイジタルの測定値を求める測定値演算回路
と、この測定値演算回路の出力が加えられる一次
遅れフイルタと、この一次遅れフイルタのゲイン
を前記クロツクカウンタの計数値に基づいて設定
する手段を備えたことを特徴とする信号交換装
置。 a pulse counter for counting input pulses, a clock counter for counting clock pulses, and calculating the input pulse period by reading the counts of the pulse counter and the clock counter for each measurement period;
A measurement value calculation circuit that divides the span pulse period by the input pulse period to obtain a digital measurement value, a first-order lag filter to which the output of this measurement value calculation circuit is added, and a gain of the first-order lag filter that calculates the digital measurement value by dividing the span pulse period by the input pulse period. A signal exchange device characterized by comprising means for setting based on a count value of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16185783U JPS6070024U (en) | 1983-10-19 | 1983-10-19 | signal converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16185783U JPS6070024U (en) | 1983-10-19 | 1983-10-19 | signal converter |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6070024U JPS6070024U (en) | 1985-05-17 |
JPS6311662Y2 true JPS6311662Y2 (en) | 1988-04-05 |
Family
ID=30355591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP16185783U Granted JPS6070024U (en) | 1983-10-19 | 1983-10-19 | signal converter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6070024U (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6452943B2 (en) * | 2014-02-27 | 2019-01-16 | 株式会社メガチップス | Frequency comparator |
-
1983
- 1983-10-19 JP JP16185783U patent/JPS6070024U/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS6070024U (en) | 1985-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4485452A (en) | Speed measurement system | |
US4050747A (en) | Digital wheel speed circuit arranged to compensate for dimensional irregularities of sensor rotor member | |
EP0177557B1 (en) | Counting apparatus and method for frequency sampling | |
US4355279A (en) | Means and method for velocity decoding | |
JPS6311662Y2 (en) | ||
JP2001013179A (en) | Measurement method for ring oscillator clock frequency, measurement circuit for ring oscillator clock frequency, and microcomputer | |
SU1051499A1 (en) | Digital meter of time interval with weight averaging | |
SU918873A1 (en) | Digital frequency meter | |
JP2607113B2 (en) | A / D conversion method | |
SU924667A2 (en) | Digital dynamic servo system | |
JP3256356B2 (en) | Time difference measurement method | |
JP2827446B2 (en) | Motor speed detection method | |
SU1229600A1 (en) | Device for measuring temperature | |
JPH04124727A (en) | Arithmetic unit for pulse input instantaneous quantity | |
JP3124990B2 (en) | Measured value-frequency converter | |
JPH0712861A (en) | Method and apparatus for measuring pulse frequency | |
SU945820A1 (en) | Device for measuring number of periods | |
SU1370604A1 (en) | Digital phase meter | |
SU534859A1 (en) | Pulse selector for engine speed recorder | |
SU1718135A1 (en) | Method and device for measuring low-frequency change rate | |
SU1597559A1 (en) | Apparatus for measuring total consumption of liquids and gases | |
SU1302208A1 (en) | Digital frequency meter | |
SU525851A1 (en) | Device for measuring total mass flow | |
SU1663555A1 (en) | Device for measuring angular velocity | |
SU1659972A1 (en) | Pulse generator |