JPH09257509A - Data processing device - Google Patents

Data processing device

Info

Publication number
JPH09257509A
JPH09257509A JP6219396A JP6219396A JPH09257509A JP H09257509 A JPH09257509 A JP H09257509A JP 6219396 A JP6219396 A JP 6219396A JP 6219396 A JP6219396 A JP 6219396A JP H09257509 A JPH09257509 A JP H09257509A
Authority
JP
Japan
Prior art keywords
data
input
input data
line
output
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.)
Pending
Application number
JP6219396A
Other languages
Japanese (ja)
Inventor
Koichi Segawa
浩一 瀬川
Koji Okada
幸治 岡田
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.)
Kubota Corp
Original Assignee
Kubota 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 Kubota Corp filed Critical Kubota Corp
Priority to JP6219396A priority Critical patent/JPH09257509A/en
Publication of JPH09257509A publication Critical patent/JPH09257509A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain the excellent reaction without hindering the stability for data processing even in the case where a sudden change is generated in the data in a data processing device for processing the analog input data and for outputting a digital value. SOLUTION: In the case where a change of the input data of an input line 1 exists within a constant range, this input data is converted from analog to digital by an A/D converter 4, and plural data, which are converted to the digital value by the A/D converter, are moved for average by a means 6 for obtaining the moving average, and the moving average value is output to an output line 7. In the case where a change of the input data of the input line 1 exceeds the described range, this input data is converted by the A/D converter 4, and the data, which is converted to a digital value by the A/D converter, is output to the output line 7.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、データをAD変換
するはかりなどの装置におけるデータ処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device in a device such as a scale for AD converting data.

【0002】[0002]

【従来の技術】一般にはかりにおいては、重量値を正確
に測定するために、重量検出部からのデータに含まれる
外来ノイズの要因を除去している。すなわち、このデー
タをロウパスフィルタに通してAC成分を除去すること
でDC成分のみとし、このDC成分をAD変換して複数
の時系列デジタルデータとし、これらデシタルデータの
連続する定数個ずつを平均して移動平均をかけることで
変動を除去したものを、測定値としている。
2. Description of the Related Art In general, in order to accurately measure a weight value, a factor of external noise included in data from a weight detection unit is removed. That is, this data is passed through a low-pass filter to remove the AC component to form only the DC component, the DC component is AD-converted into a plurality of time-series digital data, and a constant constant number of consecutive digital data is averaged. Then, the value obtained by removing the fluctuation by multiplying the moving average is used as the measurement value.

【0003】ところが、このようにデータに移動平均を
かけると、たとえばその移動平均の演算に要する周期を
Tとして、データの数に応じてN回の演算を行おうとす
ると、(N−1)×Tだけの時間遅れが生じる。このた
め、はかりに被秤量物を乗せることで重量変化が急激に
起こったときなどの、測定系が安定しない過渡期におい
ては、この測定系の反応が遅くなる欠点がある。
However, when the moving average is applied to the data in this way, for example, when the period required for the calculation of the moving average is T, and the operation is performed N times according to the number of data, (N-1) × A time delay of T occurs. Therefore, there is a drawback that the reaction of the measuring system becomes slow in the transitional period when the measuring system is not stable, such as when the weight changes abruptly by placing the object to be weighed on the balance.

【0004】このため従来のはかりでは、重量変化が一
定範囲を越えたことを検知した際には、移動平均の演算
回数を減らすことで、反応を速くする対策を施してい
る。
For this reason, in the conventional scale, when it is detected that the weight change exceeds a certain range, the number of times of calculation of the moving average is reduced to make the reaction faster.

【0005】[0005]

【発明が解決しようとする課題】しかし、このような従
来のものでは、減らしたといえども何回かは移動平均の
演算を行うため、その分だけはデータの変化への追従が
遅れるという問題点がある。
However, in such a conventional method, the moving average is calculated several times even if the number is reduced, so that the tracking of data changes is delayed by that much. There is.

【0006】また移動平均のための時間は短縮できて
も、ロウパスフィルタで発生する遅れは改善できないと
いう問題点もある。
Further, there is a problem that the delay occurring in the low pass filter cannot be improved even though the time for moving average can be shortened.

【0007】そこで本発明はこのような問題点を解決
し、データの急激な変化が起こっても、データ処理のた
めの安定性を阻害させることなしに良好な反応を行える
ようにすることを目的とする。
Therefore, the present invention has as an object to solve such a problem and to make it possible to perform a favorable reaction even when a rapid change of data occurs without impairing the stability for data processing. And

【0008】[0008]

【課題を解決するための手段】この目的を達成するため
本発明は、アナログ入力データを処理してデジタル値で
出力するためのデータ処理装置において、入力データの
変化がある一定の範囲内にある第1の場合には、その入
力データをAD変換したうえで、このAD変換によって
デジタル化された複数のデータを移動平均した値を出力
するとともに、入力データの変化が前記範囲を越えた第
2の場合には、その入力データをAD変換したうえで、
このAD変換によってデジタル化されたデータをそのま
ま出力するように構成したことを特徴とする。
In order to achieve this object, the present invention is a data processor for processing analog input data and outputting it as a digital value, wherein the change of the input data is within a certain range. In the first case, the input data is AD-converted, a moving average of a plurality of data digitized by the AD conversion is output, and a change in the input data exceeds the range. In the case of, after the input data is AD converted,
It is characterized in that the data digitized by the AD conversion is directly output.

【0009】このような構成によれば、入力データの変
化がある一定の範囲内にある安定した状態の場合には、
AD変換後のデータを移動平均したデータを出力するた
め、データの安定性が確保されることになる。入力デー
タが上記範囲を越えて急激に変化する過渡状態の場合な
どにおいては、AD変換後のデータを移動平均せずにそ
のまま出力するため、迅速な反応が可能になる。
According to this structure, when the input data changes within a certain range and is in a stable state,
Since the moving average of the data after AD conversion is output, the stability of the data is ensured. In the case of a transient state in which the input data rapidly changes beyond the above range, the AD-converted data is output as it is without being subjected to a moving average, so that a quick reaction becomes possible.

【0010】また本発明は、第1の場合に使用する第1
の入力ラインと、第2の場合に使用する第2の入力ライ
ンとを有し、これら第1および第2の入力ラインにそれ
ぞれロウパスフィルタを設け、第1の入力ラインのロウ
パスフィルタのカットオフ周波数よりも第2の入力ライ
ンのロウパスフィルタのカットオフ周波数を高く設定し
たことを特徴とする。
The present invention also provides a first case used in the first case.
Input line and a second input line used in the second case, and a low-pass filter is provided on each of the first and second input lines to cut the low-pass filter on the first input line. The cutoff frequency of the low-pass filter of the second input line is set to be higher than the off frequency.

【0011】このような構成によれば、入力データが安
定している場合にはカットオフ周波数の低いロウパスフ
ィルタが使用されるため、正確で安定したデータを出力
させることが可能になる。これに対し入力データが変動
している場合には、カットオフ周波数の高いロウパスフ
ィルタが使用されるため、この点からも迅速な反応が可
能になる。
With such a configuration, when the input data is stable, a low-pass filter having a low cutoff frequency is used, so that accurate and stable data can be output. On the other hand, when the input data fluctuates, a low-pass filter with a high cutoff frequency is used, and a quick reaction is possible also from this point.

【0012】[0012]

【発明の実施の形態】図1は、本発明にもとづくデータ
処理装置の一例を示すブロック図である。このデータ処
理装置は、たとえば、はかりなどにおける検出データを
処理して測定値を求める場合に利用される。
FIG. 1 is a block diagram showing an example of a data processing device according to the present invention. This data processing device is used, for example, when processing the detection data of a balance or the like to obtain a measurement value.

【0013】図1において、1は入力ラインであり、ア
ナログデータを伝送可能である。この入力ライン1は切
換えスイッチ2を介して第1の入力ライン1Aと第2の
入力ライン1Bとに分岐され、これら第1および第2の
入力ライン1A、1Bには、それぞれロウパスフィルタ
3A、3Bが設けられている。ロウパスフィルタ3A
は、カットオフ周波数がたとえば低めのnHzになるよ
うに設定され、またロウパスフィルタ3Bは、ロウパス
フィルタ3Aよりもカットオフ周波数の高い、たとえば
(n+m)Hzになるように設定されている。なお、こ
れらのカットオフ周波数の具体的な値は、図示の装置に
おいて処理される信号の種類に応じて適宜に決定され
る。
In FIG. 1, reference numeral 1 is an input line capable of transmitting analog data. This input line 1 is branched via a changeover switch 2 into a first input line 1A and a second input line 1B, and these first and second input lines 1A and 1B have low-pass filters 3A and 3A, respectively. 3B is provided. Low pass filter 3A
Is set so that the cutoff frequency is, for example, a low nHz, and the lowpass filter 3B is set so that the cutoff frequency is higher than that of the lowpass filter 3A, for example, (n + m) Hz. Note that the specific values of these cutoff frequencies are appropriately determined according to the type of signal processed in the illustrated apparatus.

【0014】ロウパスフィルタ3A、3Bからの出力ラ
インは、いずれもAD変換器4に接続されている。第1
の入力ライン1Aに対応したAD変換器4からの出力ラ
イン5Aには、CPUなどによって構成された、移動平
均を求めるための手段6が接続されている。これに対
し、第2の入力ライン1Bに対応したAD変換器4から
の出力ライン5Bは、移動平均を求めるための手段6か
らの出力ライン7に接続されている。
The output lines from the low-pass filters 3A and 3B are all connected to the AD converter 4. First
The output line 5A from the AD converter 4 corresponding to the input line 1A is connected to a means 6 for obtaining a moving average, which is constituted by a CPU or the like. On the other hand, the output line 5B from the AD converter 4 corresponding to the second input line 1B is connected to the output line 7 from the means 6 for obtaining the moving average.

【0015】出力ライン5Aにおける移動平均を求める
手段6の入力側から信号ライン8が分岐されており、こ
の信号ライン8は切換えスイッチ2に導かれている。す
わち、出力ライン5AにおけるAD変換器4からの出力
の状況に応じて、切換えスイッチ2を切り換えることが
できるように構成されている。
A signal line 8 is branched from the input side of the means 6 for obtaining the moving average in the output line 5A, and this signal line 8 is led to the changeover switch 2. That is, the changeover switch 2 can be switched according to the status of the output from the AD converter 4 on the output line 5A.

【0016】このような構成において、入力ライン1に
おけるアナログ入力データの変化がある一定の範囲内に
ある安定時には、切換えスイッチ2は第1の入力ライン
1Aの方へ切り換えられており、その入力データは、カ
ットオフ周波数がnHzと低いロウパスフィルタ3Aに
通されることで、ノイズの原因となるAC成分が効果的
に除去される。そして、ロウパスフィルタ3Aからの出
力信号は、入力信号AとしてAD変換器4に入力され、
ここでAD変換を受けることで、複数の離散的な時系列
デジタルデータとなって、出力ライン5Aへ出力され
る。
In such a configuration, when the change in the analog input data on the input line 1 is stable within a certain range, the changeover switch 2 is switched to the first input line 1A, and the input data is changed. Is passed through the low-pass filter 3A having a low cut-off frequency of nHz, so that the AC component that causes noise is effectively removed. Then, the output signal from the low pass filter 3A is input to the AD converter 4 as the input signal A,
By undergoing AD conversion here, it becomes a plurality of discrete time-series digital data and is output to the output line 5A.

【0017】移動平均を求めるための手段6は、これら
時系列デシタルデータにおける連続する定数個ずつを平
均して移動平均を求め、その結果を測定値として出力ラ
イン7に出力する。このように移動平均をかけることに
よって、AD変換器4からの時系列データに含まれる細
かな変動が除去され、正確で安定した測定値が得られ
る。
The means 6 for obtaining the moving average calculates the moving average by averaging consecutive constants in the time-series digital data, and outputs the result as a measured value to the output line 7. By applying the moving average in this way, fine fluctuations included in the time series data from the AD converter 4 are removed, and accurate and stable measurement values can be obtained.

【0018】AD変換器4からのデータは信号ライン8
によってピックアップされ、その変化の大小に応じて切
換えスイッチ2の切換えが行われる。すなわち、この信
号ライン8すなわち出力ライン5Aにおけるデータの変
化の大小は、入力ライン1におけるアナログ入力データ
の変化の大小に関係するので、この信号ライン8におけ
るデータの変化の大小にもとづいて、過渡状態の発生な
どにより入力データの変化がある一定の範囲を越えたと
判断される場合には、切換えスイッチ2は第2の入力ラ
イン1Bの方へ切換えられる。
Data from the AD converter 4 is sent to the signal line 8
Are picked up, and the changeover switch 2 is changed over according to the magnitude of the change. That is, since the magnitude of the change in the data on the signal line 8, that is, the output line 5A is related to the magnitude of the change in the analog input data on the input line 1, the transient state is determined based on the magnitude of the change in the data on the signal line 8. When it is determined that the change of the input data exceeds a certain range due to the occurrence of, the changeover switch 2 is changed over to the second input line 1B.

【0019】すると、その入力データは、カットオフ周
波数が(n+m)Hzと高い方のロウパスフィルタ3B
に入力される。このロウパスフィルタ3Bは第1の入力
ライン1Bのロウパスフィルタ3Aよりもカットオフ周
波数が高い分だけ応答性が良好であるため、上記過渡状
態などへ良好に反応することになる。
Then, the input data of the low-pass filter 3B having a higher cutoff frequency of (n + m) Hz is used.
Is input to Since the low-pass filter 3B has a higher responsiveness than the low-pass filter 3A of the first input line 1B because the cut-off frequency is higher, the low-pass filter 3B responds well to the transient state and the like.

【0020】しかも、ロウパスフィルタ3Bから出力さ
れた後にAD変換器4へ送られた入力信号Bは、AD変
換された後に移動平均を掛けられることなしに出力ライ
ン5Bによってただちに出力ライン7に送り出され、そ
の送り出されたデータが測定値として活用される。この
ため、上述のように出力ライン5Aにおいて移動平均を
かける場合に比べ、格段に反応性が良好になり、したが
ってアナログ入力データに急激な変化が起こっても迅速
に対応できることになる。
Moreover, the input signal B output from the low pass filter 3B and then sent to the AD converter 4 is immediately sent to the output line 7 by the output line 5B without being multiplied by the moving average after being AD converted. Then, the sent data is used as a measurement value. For this reason, as compared with the case where the moving average is applied to the output line 5A as described above, the reactivity is significantly improved, and therefore a rapid change in the analog input data can be dealt with quickly.

【0021】過渡状態が終了するなどによって入力デー
タの変化が一定範囲内に戻ったなら、切換えスイッチ2
は再び第1の入力ライン1Aの方へ切換えられ、元通り
移動平均をかけた安定したデータが得られることにな
る。
If the change in the input data returns within a certain range due to the end of the transient state, the changeover switch 2
Is again switched to the first input line 1A, and stable data obtained by multiplying the moving average as before is obtained.

【0022】[0022]

【発明の効果】以上のように本発明によると、入力デー
タの変化がある一定の範囲内にある第1の場合には、そ
の入力データをAD変換したうえで、このAD変換によ
ってデジタル化された複数のデータを移動平均した値を
出力するとともに、入力データの変化が前記範囲を越え
た第2の場合には、その入力データをAD変換したうえ
で、このAD変換によってデジタル化されたデータをそ
のまま出力するように構成したため、入力データの変化
がある一定の範囲内にある安定した状態の場合には、そ
のデータの安定性を確保することができ、また入力デー
タが上記範囲を越えて急激に変化する過渡状態の場合な
どにおいては、迅速な反応を行うことができる。したが
って、安定時のデータ処理の正確さを決定するための回
路や処理の特性を劣化させることなしに、変動時の迅速
性を確保することができる。
As described above, according to the present invention, in the first case where the change of the input data is within a certain range, the input data is AD-converted and then digitized by this AD conversion. In addition to outputting a moving average of a plurality of data, in the second case where the change of the input data exceeds the above range, the input data is AD-converted and then the data digitized by this AD conversion. Since it is configured to output as it is, if the change of the input data is within a certain range and is in a stable state, the stability of the data can be secured, and if the input data exceeds the above range, A rapid reaction can be performed in the case of a rapidly changing transient state. Therefore, it is possible to ensure swiftness at the time of fluctuation without deteriorating the characteristics of the circuit and the processing for determining the accuracy of data processing at the stable time.

【0023】また本発明によると、第1の場合に使用す
る第1の入力ラインと第2の場合に使用する第2の入力
ラインとにそれぞれロウパスフィルタを設け、第1の入
力ラインのロウパスフィルタのカットオフ周波数よりも
第2の入力ラインのロウパスフィルタのカットオフ周波
数を高く設定したため、入力データが安定している場合
にはカットオフ周波数の低いロウパスフィルタが使用さ
れることになって、正確で安定したデータを出力させる
ことができるとともに、入力データが変動している場合
には、カットオフ周波数の高いロウパスフィルタが使用
されることになって、この点からも変動時の迅速性を確
保することができる。
Further, according to the present invention, a low-pass filter is provided for each of the first input line used in the first case and the second input line used in the second case, and the low-pass filter of the first input line is provided. Since the cutoff frequency of the lowpass filter of the second input line is set higher than the cutoff frequency of the pass filter, the lowpass filter with a low cutoff frequency is used when the input data is stable. Therefore, accurate and stable data can be output, and if the input data fluctuates, a low-pass filter with a high cutoff frequency will be used. The swiftness of can be secured.

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

【図1】本発明にもとづくデータ処理装置の一例を示す
ブロック図である。
FIG. 1 is a block diagram showing an example of a data processing device according to the present invention.

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

1 入力ライン 2 切換えスイッチ 3A ロウパスフィルタ 3B ロウパスフィルタ 4 AD変換器 6 移動平均を求めるための手段 7 出力ライン 1 Input Line 2 Changeover Switch 3A Low Pass Filter 3B Low Pass Filter 4 AD Converter 6 Means for Obtaining Moving Average 7 Output Line

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 アナログ入力データを処理してデジタル
値で出力するためのデータ処理装置であって、入力デー
タの変化がある一定の範囲内にある第1の場合には、そ
の入力データをAD変換したうえで、このAD変換によ
ってデジタル化された複数のデータを移動平均した値を
出力するとともに、入力データの変化が前記範囲を越え
た第2の場合には、その入力データをAD変換したうえ
で、このAD変換によってデジタル化されたデータをそ
のまま出力するように構成されていることを特徴とする
データ処理装置。
1. A data processing device for processing analog input data and outputting it as a digital value, wherein when the change of the input data is within a certain range, the input data is AD. After the conversion, a value obtained by moving and averaging a plurality of data digitized by the AD conversion is output, and when the change of the input data exceeds the above range, the input data is AD-converted. Further, the data processing device is configured to output the data digitized by the AD conversion as it is.
【請求項2】 第1の場合に使用する第1の入力ライン
と、第2の場合に使用する第2の入力ラインとを有し、
これら第1および第2の入力ラインにそれぞれロウパス
フィルタを設け、第1の入力ラインのロウパスフィルタ
のカットオフ周波数よりも第2の入力ラインのロウパス
フィルタのカットオフ周波数を高く設定したことを特徴
とする請求項1記載のデータ処理装置。
2. Having a first input line for use in the first case and a second input line for use in the second case,
A low-pass filter is provided on each of the first and second input lines, and the cut-off frequency of the low-pass filter of the second input line is set higher than the cut-off frequency of the low-pass filter of the first input line. The data processing device according to claim 1, wherein
【請求項3】 入力データの変化が一定の範囲内にある
かどうかの判断を、AD変換された後でかつ移動平均さ
れる前のデータにもとづいて行うことを特徴とする請求
項1または2記載のデータ処理装置。
3. The method according to claim 1, wherein whether or not the change in the input data is within a certain range is determined based on the data after AD conversion and before moving average. The described data processing device.
JP6219396A 1996-03-19 1996-03-19 Data processing device Pending JPH09257509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6219396A JPH09257509A (en) 1996-03-19 1996-03-19 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6219396A JPH09257509A (en) 1996-03-19 1996-03-19 Data processing device

Publications (1)

Publication Number Publication Date
JPH09257509A true JPH09257509A (en) 1997-10-03

Family

ID=13193075

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6219396A Pending JPH09257509A (en) 1996-03-19 1996-03-19 Data processing device

Country Status (1)

Country Link
JP (1) JPH09257509A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009180679A (en) * 2008-01-31 2009-08-13 Yokogawa Electric Corp Spectrum data correcting apparatus and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009180679A (en) * 2008-01-31 2009-08-13 Yokogawa Electric Corp Spectrum data correcting apparatus and method

Similar Documents

Publication Publication Date Title
AU601626B2 (en) Digital protective relay
JPH0645941A (en) Inspection device
US20050171992A1 (en) Signal processing apparatus, and voltage or current measurer utilizing the same
JPH09257509A (en) Data processing device
US4667198A (en) Apparatus for measuring quantity of AC electricity
JP2000209767A (en) Analog input section monitoring device for digital protective controller
JP2001141767A (en) Jitter measuring circuit and ic tester using it
JPH0339270B2 (en)
JP4996992B2 (en) Impedance measuring device
JPH1010163A (en) Effective voltage value measuring apparatus
JP3284146B2 (en) Waveform data calculation device
JPH0915266A (en) Measuring device
JPH1164411A (en) Apparatus for measuring flicker of system voltage
JPS59195166A (en) Rough measuring method of frequency
JPH0798336A (en) Sampling type measuring device
JP2536824B2 (en) Measuring device and calibration method
JPH0926352A (en) Multipoint cell type metering device
JP2005189030A (en) Sampling type measuring instrument
JP2735347B2 (en) Digital type protection control device
JP3431116B2 (en) AC voltage detection input section abnormality detection circuit
JPH04299269A (en) Measuring apparatus for wide-band effective value
JP3196441B2 (en) Digital protection relay
JPH07260855A (en) Method and apparatus for measuring noise and method for reducing noise
JPH0419519A (en) High speed weighing scale and its signal processing method
WO2020110253A1 (en) Sine wave noise removal device and sine wave noise removal method