JPH06265563A - Moving speed detector for encoder - Google Patents

Moving speed detector for encoder

Info

Publication number
JPH06265563A
JPH06265563A JP4980193A JP4980193A JPH06265563A JP H06265563 A JPH06265563 A JP H06265563A JP 4980193 A JP4980193 A JP 4980193A JP 4980193 A JP4980193 A JP 4980193A JP H06265563 A JPH06265563 A JP H06265563A
Authority
JP
Japan
Prior art keywords
encoder
pulse
reset
reference pulse
moving speed
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.)
Granted
Application number
JP4980193A
Other languages
Japanese (ja)
Other versions
JP3310716B2 (en
Inventor
Yuji Matsuura
裕二 松浦
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.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy Industries 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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP04980193A priority Critical patent/JP3310716B2/en
Publication of JPH06265563A publication Critical patent/JPH06265563A/en
Application granted granted Critical
Publication of JP3310716B2 publication Critical patent/JP3310716B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PURPOSE:To provide a moving speed detector for encoder in which error in the speed signal is not affected even if a mobile moves at high speed. CONSTITUTION:Count is read out immediately before a pulse counter 5 is reset by a reset signal delivered from a preset counter 3. An operating circuit 6 adds the number epsilon of error pulses to the count thus read out operates the moving speed Vn of an encoder which is delivered, as a digital signal, to a D/A converter 7 and converted into an analog signal.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は被計測体の位置又は角度
等を検出し、それに見合ったパルスを発生するエンコ―
ダの移動速度を検出するエンコ―ダの移動速度検出装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is an encoder for detecting the position or angle of an object to be measured and generating a pulse corresponding to the detected position or angle.
The present invention relates to a moving speed detection device for an encoder that detects the moving speed of the encoder.

【0002】[0002]

【従来の技術】移動体の位置を検出する装置として位置
検出用エンコ−ダが広く知られている。そして、位置検
出用エンコ−ダから出力されるパルス信号に基づいて移
動体の移動速度を求めることが要求されている。
2. Description of the Related Art A position detecting encoder is widely known as a device for detecting the position of a moving body. Then, it is required to obtain the moving speed of the moving body based on the pulse signal output from the position detecting encoder.

【0003】[0003]

【発明が解決しようとする課題】そこで、位置検出用エ
ンコ−ダから出力されるパルス信号をマイクロコンピュ
−タに取込み、マイクロコンピュ−タ内で所定距離を移
動する毎にリセット信号を発生させ、このリセット信号
が入力される毎にパルスの計数を繰り返す速度計数用カ
ウンタを設けておき、所定距離を速度計数用カウンタの
計数値で除算することにより移動体の移動速度を求める
ようにしていた。
Therefore, the pulse signal output from the position detecting encoder is taken into the microcomputer and a reset signal is generated every time the microcomputer moves a predetermined distance within the microcomputer. A speed counting counter that repeats pulse counting each time the reset signal is input is provided, and the moving speed of the moving body is obtained by dividing the predetermined distance by the count value of the speed counting counter.

【0004】しかし、移動体が高速で移動していると、
移動体が所定距離を移動するまでに速度計数用カウンタ
に計数されるカウント値は小さくなっていく。また、速
度計数用カウンタがリセットされてから実際にカウント
動作を開始するまでには、遅延時間があり、その遅延時
間のため、速度計数用カウンタがリセットされる直前の
計数値は実際より少ない値が計数されることになる。
However, if the moving body is moving at high speed,
The count value counted by the speed counting counter becomes smaller by the time the moving body moves a predetermined distance. Also, there is a delay time from the reset of the speed counting counter to the actual start of the counting operation. Due to the delay time, the count value immediately before the speed counting counter is reset is less than the actual value. Will be counted.

【0005】ここで、移動体の速度が低い場合には、速
度計数用カウンタの計数値は誤差パルス数による計数値
より十分に大きいので、問題はないが、移動体の速度が
高速になると、誤差パルスによる影響が無視できなくな
り、移動体が高速になると速度信号の誤差が大きくなる
という問題があった。このようなことは、位置検出用エ
ンコ−ダに限らず角度検出用エンコ−ダの出力から角速
度を演算する場合にも同様なことがいえる。
Here, when the speed of the moving body is low, the count value of the speed counting counter is sufficiently larger than the count value based on the number of error pulses, so there is no problem, but when the speed of the moving body becomes high, There is a problem in that the influence of the error pulse cannot be ignored and the error in the speed signal increases as the speed of the moving body increases. The same applies to the case where the angular velocity is calculated from the output of the angle detecting encoder as well as the position detecting encoder.

【0006】本発明は上記の点に鑑みてなされたもの
で、その目的は移動体の移動速度が高速になっても、速
度信号の誤差に影響を与えることがないエンコ―ダの移
動速度検出装置を提供することにある。
The present invention has been made in view of the above points, and an object thereof is to detect the moving speed of an encoder that does not affect the error of the speed signal even if the moving speed of the moving body becomes high. To provide a device.

【0007】[0007]

【課題を解決するための手段】本発明は単位距離あるい
は単位角度毎に計測パルスを出力するエンコ−ダと、こ
の計測パルスを計数し所定距離あるいは所定角度になる
とリセット信号を出力する計数手段と、基準パルスを発
生する基準パルス発生部と、上記基準パルスをカウント
し上記計数手段から出力されるリセット信号によりリセ
ットされる基準パルス計数手段と、上記計数手段から出
力されるリセット信号により上記基準パルス計数手段が
リセットされる直前のカウント値を読取り、そのカウン
ト値に誤差パルス数を加算した後、上記エンコ―ダの移
動速度を演算しディジタル信号として出力する演算手段
と、上記演算手段からのディジタル信号をアナログ信号
に変換するD/Aコンバ―タとを備えている。
SUMMARY OF THE INVENTION The present invention comprises an encoder for outputting a measuring pulse for each unit distance or unit angle, and a counting means for counting the measuring pulse and outputting a reset signal at a predetermined distance or angle. A reference pulse generator that generates a reference pulse, a reference pulse counting means that counts the reference pulse and is reset by a reset signal output from the counting means, and a reference pulse by the reset signal output from the counting means The count value immediately before the counting means is reset is read, the error pulse number is added to the count value, the moving speed of the encoder is calculated and output as a digital signal, and the digital signal from the calculating means. And a D / A converter for converting the signal into an analog signal.

【0008】[0008]

【作用】計数手段から出力されるリセット信号により基
準パルス計数手段がリセットされる直前のカウント値を
読取り、そのカウント値に誤差パルス数を加算した後、
エンコ―ダの移動速度を演算しディジタル信号として出
力するようにしている。
The count value immediately before the reference pulse counting means is reset by the reset signal output from the counting means is read, and the error pulse number is added to the count value.
The moving speed of the encoder is calculated and output as a digital signal.

【0009】[0009]

【実施例】以下図面を参照して本発明の一実施例に係わ
るエンコ―ダの移動速度検出装置について説明する。図
1はエンコ−ダの移動速度検出装置の概略構成を示すブ
ロック図、図2は動作を説明するためのタイミング図で
ある。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An encoder moving speed detecting apparatus according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic structure of a moving speed detecting device of an encoder, and FIG. 2 is a timing diagram for explaining the operation.

【0010】図1において、1は例えば射出成形後のス
クリュ位置を検出する為の位置検出用エンコ―ダであ
る。この位置検出用エンコ―ダ1はスクリュが単位距離
移動する毎に位置デ―タパルスを1パルスだけ出力す
る。この位置検出用エンコ−ダ1から出力される位置デ
−タパルスはコントロ−ラ2に入力される。
In FIG. 1, reference numeral 1 denotes a position detecting encoder for detecting the screw position after injection molding, for example. The position detecting encoder 1 outputs only one position data pulse each time the screw moves a unit distance. The position data pulse output from the position detecting encoder 1 is input to the controller 2.

【0011】つまり、位置デ−タパルスはコントロ−ラ
2内のプリセットカウンタ3に入力される。このプリセ
ットカウンタ3は図2に示すようにエンコ―ダ1があら
かじめ定められた所定距離ΔLだけ移動することにより
発生するパルス数がセットしてあり、そのパルス数だけ
エンコ−ダ1から入力されると基準パルスカウンタ5へ
リセット信号を出力する。また、4はBHzの基準パルス
信号を出力する基準パルス発生回路である。この基準パ
ルス信号の周期は図2に示すようにΔtである。
That is, the position data pulse is input to the preset counter 3 in the controller 2. The preset counter 3 is set with the number of pulses generated by the encoder 1 moving by a predetermined distance .DELTA.L as shown in FIG. 2, and the number of pulses is input from the encoder 1. And a reset signal is output to the reference pulse counter 5. Reference numeral 4 is a reference pulse generating circuit that outputs a BHz reference pulse signal. The cycle of this reference pulse signal is Δt as shown in FIG.

【0012】この基準パルス発生回路4から出力される
基準パルス信号は基準パルスは基準パルスカウンタ5に
入力される。この基準パルスカウンタ5は基準パルス発
生回路4から出力される基準パルスをカウントするもの
で、プリセットカウンタ3からのリセット信号が入力さ
れてから次のリセット信号が入力されるまでに基準パル
スカウントする。
The reference pulse signal output from the reference pulse generating circuit 4 is input to the reference pulse counter 5. The reference pulse counter 5 counts the reference pulses output from the reference pulse generating circuit 4, and counts the reference pulses from the input of the reset signal from the preset counter 3 to the input of the next reset signal.

【0013】従って、基準パルスカウンタ5がリセット
する寸前のカウント値がエンコ―ダ1が所定距離ΔL分
移動するに要した基準パルス数、言い換えると移動時間
(図2のt1 ,t2 ,t3 ,tn )となる。
Therefore, the count value just before the reference pulse counter 5 is reset is the number of reference pulses required for the encoder 1 to move by the predetermined distance ΔL, in other words, the moving time (t 1 , t 2 , t in FIG. 2). 3 , t n ).

【0014】なお、プリセットカウンタ3からのリセッ
ト信号により基準パルスカウンタ5がリセットされる
間、図2に示すように遅れ時間tdが生ずる。そして遅
れ時間tdにより基準パルスカウンタ5にはカウントし
ない誤差パルス数εが生ずる。この誤差パルス数は何れ
も場合でも一定である。
While the reference pulse counter 5 is reset by the reset signal from the preset counter 3, a delay time td is generated as shown in FIG. Then, due to the delay time td, the error pulse number ε which is not counted is generated in the reference pulse counter 5. The number of error pulses is constant in all cases.

【0015】この基準パルスカウンタ5の出力は演算回
路6に出力される。演算回路6は基準パルスカウンタ5
がリセットされる寸前のカウント値(図2のC1
2 ,C3 ,Cn )を読み取ると同時に、基準パルスカ
ウンタ5をリセットするリセット信号を出力する。
The output of the reference pulse counter 5 is output to the arithmetic circuit 6. The arithmetic circuit 6 is the reference pulse counter 5
Is about to be reset (C 1 in Fig. 2,
At the same time as reading C 2 , C 3 , C n ), a reset signal for resetting the reference pulse counter 5 is output.

【0016】そして、演算回路6は基準パルスカウンタ
5のカウント値Cn に図2に示すような誤差パルス数ε
を加算してカウント値Cn ′とし、(1)式からエンコ
−ダ1の移動速度Vn を演算する。 Vn =ΔL/(Δt・Cn ′) …(1)
Then, the arithmetic circuit 6 uses the count value C n of the reference pulse counter 5 as the error pulse number ε as shown in FIG.
Is added to obtain a count value C n ′, and the moving speed V n of the encoder 1 is calculated from the equation (1). V n = ΔL / (Δt · C n ′) (1)

【0017】そして、演算回路6はエンコ−ダ1の移動
速度のデジタル信号をD/Aコンバ―タ7へ出力する。
このD/Aコンバ―タ7は演算回路6からのパルスを変
換しエンコ―ダ1の移動速度のアナログ信号として出力
する。
Then, the arithmetic circuit 6 outputs a digital signal of the moving speed of the encoder 1 to the D / A converter 7.
The D / A converter 7 converts the pulse from the arithmetic circuit 6 and outputs it as an analog signal of the moving speed of the encoder 1.

【0018】次に、上記のように構成した本発明の一実
施例の動作について説明する。まず、移動体が移動する
と、エンコ−ダ1は位置デ−タパルスをプリセットカウ
ンタ3に出力する。このプリセットカウンタ3はエンコ
―ダ1からのパルスを計数し、あらかじめ定めた所定距
離ΔL分のパルス数を計数すると、リセット信号を基準
パルスカウンタ5へ出力し、再びパルスを計数する。
Next, the operation of the embodiment of the present invention constructed as above will be described. First, when the moving body moves, the encoder 1 outputs a position data pulse to the preset counter 3. The preset counter 3 counts the pulses from the encoder 1 and, when counting the number of pulses corresponding to a predetermined distance ΔL, outputs a reset signal to the reference pulse counter 5 and counts the pulses again.

【0019】基準パルスカウンタ5はプリセットカウン
タ3から出力されるリセット信号と次のリセット信号と
の間、基準パルス発生回路4から出力される基準パルス
信号をカウントする。演算回路6は基準パルスカウンタ
5がリセットされる寸前のカウント値Cn を読み取った
後、基準パルスカウンタ5をリセットする。
The reference pulse counter 5 counts the reference pulse signal output from the reference pulse generating circuit 4 between the reset signal output from the preset counter 3 and the next reset signal. The arithmetic circuit 6 resets the reference pulse counter 5 after reading the count value C n just before the reference pulse counter 5 is reset.

【0020】そして、演算回路6はカウント値Cn に誤
差パルス数εを加算してカウント値Cn ′とし、前述し
た(1)式からエンコ−ダ1の移動速度Vn を演算す
る。
[0020] Then, the arithmetic circuit 6 and the count value C n 'by adding the error pulse number ε to the count value C n, diene from the aforementioned (1) - calculates the movement velocity V n da 1.

【0021】ところで、基準パルスパルスカウンタ5の
カウント値Cn 読み取りと、この基準パルスカウンタ5
のリセットはプリセットカウンタ3のリセット信号が出
力される毎に行われるが、この時、図2の遅れ時間td
で示す様に基準パルスパルスカウンタ5のカウント値C
n の読み取りとリセット処理の遅れに起因して、正規の
カウント値Cn に対て常に誤差パルス数εの誤差が発生
する。この誤差は速度が低く、誤差パルス数εがカウン
ト値Cn に対して十分に小さい時は無視出来るが、速度
が高くなるとカウント値Cn が小さくなる為、誤差パル
ス数εが無視出来なくなる。
By the way, reading of the count value C n of the reference pulse counter 5 and the reference pulse counter 5
Is reset each time the reset signal of the preset counter 3 is output. At this time, the delay time td in FIG.
As shown by, the count value C of the reference pulse pulse counter 5
Due to the delay of the reading of n and the reset process, the error of the error pulse number ε always occurs with respect to the regular count value C n . This error is low speed, but when the error pulse number ε is sufficiently small with respect to the count value C n is negligible, because the speed is increased count value C n is small, the error pulse number ε can not be ignored.

【0022】そこで、実際の基準パルスカウンタ5のカ
ウント値Cn は実際にはCn −εとなるが、tdが一定
であることを考慮してCn +εとして、誤差パルス数ε
を相殺することにより、誤差パルス数εによる影響を無
くすことができる。
Therefore, although the actual count value C n of the reference pulse counter 5 is actually C n -ε, the error pulse number ε is set as C n + ε considering that td is constant.
By canceling, the influence of the error pulse number ε can be eliminated.

【0023】そして、演算回路6で求められた移動速度
n をD/Aコンバ―タ7へ出力される。このD/Aコ
ンバ―タ7はディジタル信号をアナログ信号に変換しエ
ンコ―ダ1の移動速度信号として所定の機器(図示せ
ず)へ出力する。このようにして、特別な付加回路なし
でエンコ―ダを利用した高精度の移動速度を算出するこ
とができる。尚、上記実施例のコントロ―ラ2の構成を
図3に示すようなワンチップのマイクロプロセッサ8に
置き換えても良い。
Then, the moving speed V n obtained by the arithmetic circuit 6 is output to the D / A converter 7. The D / A converter 7 converts a digital signal into an analog signal and outputs it as a moving speed signal of the encoder 1 to a predetermined device (not shown). In this way, it is possible to calculate a highly accurate moving speed using an encoder without a special additional circuit. The configuration of the controller 2 of the above embodiment may be replaced with a one-chip microprocessor 8 as shown in FIG.

【0024】[0024]

【発明の効果】以上詳述したように本発明によれば、移
動体の移動速度が高速になっても、速度信号の誤差に影
響を与えることがないエンコ―ダの移動速度検出装置を
提供することができる。
As described above in detail, according to the present invention, there is provided an encoder moving speed detecting device which does not affect the error of the speed signal even if the moving speed of the moving body becomes high. can do.

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

【図1】本発明の一実施例に係わるエンコ−ダの移動速
度検出装置の概略構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of a moving speed detecting device for an encoder according to an embodiment of the present invention.

【図2】一実施例の動作を説明するためのタイミング
図。
FIG. 2 is a timing chart for explaining the operation of the embodiment.

【図3】本発明の変形例を示すブロック図。FIG. 3 is a block diagram showing a modified example of the present invention.

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

1…位置検出用エンコ−ダ、2…コントロ−ラ、3…プ
リセットカウンタ、4…基準パルス発生回路、5…基準
パルスカウンタ、6…演算回路、7…D/Aコンバ−
タ。
1 ... Position detection encoder, 2 ... Controller, 3 ... Preset counter, 4 ... Reference pulse generation circuit, 5 ... Reference pulse counter, 6 ... Arithmetic circuit, 7 ... D / A converter
Ta.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 単位距離あるいは単位角度毎に計測パル
スを出力するエンコ−ダと、 この計測パルスを計数し所定距離あるいは所定角度にな
るとリセット信号を出力する計数手段と、 基準パルスを発生する基準パルス発生部と、 上記基準パルスをカウントし上記計数手段から出力され
るリセット信号によりリセットされる基準パルス計数手
段と、 上記計数手段から出力されるリセット信号により上記基
準パルス計数手段がリセットされる直前のカウント値を
読取り、そのカウント値に誤差パルス数を加算した後、
上記エンコ―ダの移動速度を演算しディジタル信号とし
て出力する演算手段と、 上記演算手段からのディジタル信号をアナログ信号に変
換するD/Aコンバ―タとを備えていることを特徴とす
るエンコ―ダの移動速度検出装置。
1. An encoder for outputting a measurement pulse for each unit distance or unit angle, a counting means for counting the measurement pulse and outputting a reset signal at a predetermined distance or angle, and a reference for generating a reference pulse. Immediately before the reference pulse counting means is reset by a pulse generator, a reference pulse counting means that counts the reference pulse and is reset by a reset signal output from the counting means, and a reset signal output by the counting means. After reading the count value of and adding the error pulse number to the count value,
An encoder characterized in that it comprises a computing means for computing the moving speed of the encoder and outputting it as a digital signal, and a D / A converter for converting the digital signal from the computing means into an analog signal. Mobile speed detector.
JP04980193A 1993-03-11 1993-03-11 Encoder moving speed detector Expired - Fee Related JP3310716B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04980193A JP3310716B2 (en) 1993-03-11 1993-03-11 Encoder moving speed detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04980193A JP3310716B2 (en) 1993-03-11 1993-03-11 Encoder moving speed detector

Publications (2)

Publication Number Publication Date
JPH06265563A true JPH06265563A (en) 1994-09-22
JP3310716B2 JP3310716B2 (en) 2002-08-05

Family

ID=12841255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04980193A Expired - Fee Related JP3310716B2 (en) 1993-03-11 1993-03-11 Encoder moving speed detector

Country Status (1)

Country Link
JP (1) JP3310716B2 (en)

Also Published As

Publication number Publication date
JP3310716B2 (en) 2002-08-05

Similar Documents

Publication Publication Date Title
JP4999252B2 (en) Position measuring apparatus and method for measuring position
JP6341631B2 (en) Encoder
JP2604052B2 (en) Optical wavelength measurement device
JP3310716B2 (en) Encoder moving speed detector
EP0753804B1 (en) Laser measuring apparatus
JPH04346069A (en) Speed signal generating circuit
JP3620283B2 (en) Speed calculator
JPS5840248A (en) Position detecting system by means of touch sensor
JP3031970B2 (en) Filter circuit
JP3339214B2 (en) Servo motor control device
JPH03289567A (en) Apparatus for detecting rotational speed
JPS62261021A (en) Weighing apparatus
JP4227352B2 (en) Coincidence detection apparatus and method
JPH05188067A (en) Servo motor speed detecting device
JPH07154990A (en) Motor speed controller
JPH0281274A (en) Picture input system
SU1096659A1 (en) Instrument for input of data from pneumatic transmitters in computer
JPH02119591A (en) Motor speed controller
JPS62200215A (en) Measuring apparatus
JP2005091047A (en) Apparatus for measuring position
JPH04186166A (en) Digital type speed sensing device
JPH04123405U (en) Encoder data acquisition device
JPH0123048B2 (en)
JPH0469079A (en) Apparatus for sensing motor speed
JPH06194373A (en) Speed detector

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: 20020423

LAPS Cancellation because of no payment of annual fees