JPH02147910A - Encoder signal abnormality detection circuit - Google Patents

Encoder signal abnormality detection circuit

Info

Publication number
JPH02147910A
JPH02147910A JP30349888A JP30349888A JPH02147910A JP H02147910 A JPH02147910 A JP H02147910A JP 30349888 A JP30349888 A JP 30349888A JP 30349888 A JP30349888 A JP 30349888A JP H02147910 A JPH02147910 A JP H02147910A
Authority
JP
Japan
Prior art keywords
encoder
signal
circuit
data
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
JP30349888A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Hatano
波田野 強
Yoshihiro Iizuka
順弘 飯塚
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 JP30349888A priority Critical patent/JPH02147910A/en
Publication of JPH02147910A publication Critical patent/JPH02147910A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable application to an open collector output type by counting an encoder pulse within an encoder generation circuit until a next Z-phase signal is inputted after the inputting of one Z-phase signal to compare the results with a set rated value of the encoder output pulse per rotation. CONSTITUTION:An encoder pulse generation circuit 2 is provided with an increment/decrement counter to count an encoder pulse between the application of a Z-phase signal and the application of a next Z-phase signal. On the other hand, the number of rated encoder pulses per rotation of an encoder applied is set on an encoder pulse setting device 1 beforehand to determine an absolute value of an output data of the circuit 2 with an absolute value output circuit 3. Then, the absolute value is compared with a data of the setting device 1 by a first comparator 4 and a data of the circuit 3 is compared with 0 by a second comparator 5. Outputs of both the comparators 4 and 5 are inputted into an OR circuit 6 to detect and error.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、モータに結合しモータの回転角に対応して出
力されるエンコーダ信号の異常検出回路に関し、更に詳
しくは、エンコーダ信号として、A相、B相、Z相信号
を出力する場合において、ノイズの混入等エンコーダ信
号の異常を検出する回路に関する。
Detailed Description of the Invention <Industrial Application Field> The present invention relates to an abnormality detection circuit for an encoder signal coupled to a motor and output in accordance with the rotation angle of the motor. The present invention relates to a circuit that detects an abnormality in an encoder signal such as noise mixing when outputting phase, B-phase, and Z-phase signals.

〈従来の技術〉 エンコーダは、例えばモータの回転軸に結合され、モー
タの回転角を正確に検出する場合などによく用いられ、
その構成としては、光学式のものや磁気式のもの等があ
り、回転角度に対応する互いに位相が異なった人相、B
相の2種の信号と、零点位置を示すようなZ信号とを出
力するように構成されている。これらの信号は、いずれ
もパルス信号であって、パルス性のノイズが混入するな
ど、エンコーダ信号に異常が発生すると、誤った回転角
度となったりする。そこで従来より、この種のエンコー
ダには、その出力信号の異常を検出するための回路が設
けられている。
<Prior Art> Encoders are often connected to the rotating shaft of a motor, for example, and used to accurately detect the rotation angle of the motor.
There are optical types, magnetic types, etc., which have different phases depending on the rotation angle.
It is configured to output two types of phase signals and a Z signal indicating the zero point position. These signals are all pulse signals, and if an abnormality occurs in the encoder signal, such as when pulse noise is mixed in, the rotation angle may be incorrect. Therefore, conventionally, this type of encoder is provided with a circuit for detecting an abnormality in its output signal.

第3図は、従来のエンコーダ信号異常検出回路の一例を
示す構成ブロック図である。
FIG. 3 is a block diagram showing an example of a conventional encoder signal abnormality detection circuit.

この回路は、エンコータ信号ヲハッファBAによって、
互いに逆位相の関係にある、第4図に示すようなA相、
A相の差動信号とし、これらの信号をエクスクル−シブ
オアEXORに印加し、ここからエラー信号ERRを出
力するような構成となっている。
This circuit uses encoder signal buffer BA to
A phase as shown in Fig. 4, which are in opposite phase relation to each other,
The A-phase differential signals are applied to the exclusive OR EXOR, and the error signal ERR is output from there.

〈発明が解決しようとする課題〉 この様な構成の従来の異常検出回路は、エンコーダ信号
が差動出力の場合に適用できるものであって、オーブン
コレクタ出力タイプのエンコーダには適用することがで
きなかった。
<Problems to be Solved by the Invention> The conventional abnormality detection circuit having such a configuration can be applied when the encoder signal is a differential output, but cannot be applied to an oven collector output type encoder. There wasn't.

本発明は、この様な点に鑑みてなされたものであって、
エンコーダの差動出力を利用しない、従って、オーブン
コレクタ出力タイプのエンコーダにも適用可能な信号異
常検出回路を提供することを目的とする。
The present invention has been made in view of these points, and
It is an object of the present invention to provide a signal abnormality detection circuit that does not utilize the differential output of an encoder and is therefore applicable to an oven collector output type encoder.

く課題を解決するための手段〉 前記した課題を解決する本発明は、1回転当たりのエン
コーダ出力パルスの定格値を設定するエンコーダパルス
設定器と、 エンコーダからの互いに位相の異なったA相。
Means for Solving the Problems> The present invention to solve the above problems includes: an encoder pulse setting device for setting the rated value of encoder output pulses per rotation; and A-phase signals from the encoder having mutually different phases.

B相信号及び1回転毎に出力されるZ相信号とを入力し
Z相信号が印加されてから次の2相信号が印加されるま
での間のエンコーダパルスのカウント数データを出力す
るエンコーダパルス生成回路と、 このエンコーダパルス生成回路からの出力データの絶対
値をとる絶対値出力回路と、 前記エンコーダパルス設定器からのデータと前記絶対値
回路を介して与えられるエンコーダパルス生成回路から
のデータとを比較し両方のデータが等しいときOK倍信
号出力する第1の比較器と、Oと前記エンコーダパルス
生成回路からのデータとを比較し当該データが0の時O
K倍信号出力する第2の比較器と、 第1.第2の各比較器からのOK倍信号入力し、いずれ
の側からもOK倍信号出力されない場合エラー信号を出
力する論理和回路と を備えて構成される。
An encoder pulse that inputs a B-phase signal and a Z-phase signal output every rotation, and outputs encoder pulse count data from the time the Z-phase signal is applied until the next two-phase signal is applied. a generation circuit; an absolute value output circuit that takes the absolute value of output data from the encoder pulse generation circuit; and data from the encoder pulse setter and data from the encoder pulse generation circuit provided via the absolute value circuit. A first comparator that compares O and outputs an OK signal when both data are equal, and a first comparator that compares O and the data from the encoder pulse generation circuit and outputs an OK signal when the data is 0.
a second comparator outputting a K times signal; a first comparator; It is configured to include an OR circuit which receives the OK multiplied signal from each of the second comparators and outputs an error signal if the OK multiplied signal is not output from either side.

〈作用〉 エンコーダパルス生成回路内にはアップダウンカウンタ
が設けられていて、Z相信号が印加されてから次のZ相
信号が印加されるまでの間のエンコーダパルスをカウン
トしており、その値は正常の場合は、0か1回転分のエ
ンコーダパルス数になる。
<Function> An up/down counter is provided in the encoder pulse generation circuit, and counts the encoder pulses from the time a Z-phase signal is applied until the next Z-phase signal is applied, and its value If it is normal, it will be 0 or the number of encoder pulses for 1 revolution.

従って、第1.第2の比較器によって、カウント値が定
格のエンコーダパルス数か0か判断することでエンコー
ダ信号の正常、異常を検出する。
Therefore, the first. The second comparator detects whether the encoder signal is normal or abnormal by determining whether the count value is the rated number of encoder pulses or 0.

〈実施例〉 以下図面を用いて、本発明の実施例を詳細に説明する。<Example> Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は、本発明の一実施例を示す構成ブロック図であ
る。図において、1は適用するエンコーダの1回転当た
りの定格エンコーダパルス数NSを設定したエンコーダ
パルス設定器、2はエンコーダからのA相、B相信号及
びZ相信号を入力するエンコーダパルス生成回路で、内
部にアップダウンカウンタを持っており、A相、B相信
号からモータの回転方向及びエンコーダパルスを得ると
共に、このエンコーダパルスをアップダウンカウンタで
カウントし、Z相信号によるパルスでラッチ、クリアす
るように構成されている。従って、ここからは、Z相信
号が印加されてから次のZ相信号が印加されるまでの間
のエンコーダパルスのカウント数データNが出力され、
その値は正常の場合は、0か1回転分のエンコーダパル
ス数になる。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is an encoder pulse setting device that sets the rated encoder pulse number NS per rotation of the applied encoder, 2 is an encoder pulse generation circuit that inputs A-phase, B-phase signals, and Z-phase signals from the encoder. It has an up/down counter inside, and obtains the motor rotation direction and encoder pulses from the A-phase and B-phase signals, counts these encoder pulses with the up/down counter, and latches and clears them with the pulses from the Z-phase signal. It is composed of Therefore, from here, the encoder pulse count data N from the time the Z-phase signal is applied until the next Z-phase signal is applied is output.
If the value is normal, it will be 0 or the number of encoder pulses for one revolution.

3は絶対値出力回路で、エンコーダパルス生成回路2か
らのデータNの絶対値をとるものである。
3 is an absolute value output circuit which takes the absolute value of data N from the encoder pulse generation circuit 2.

この絶対値回路は、データNが回転方向によって正負の
両方が考えられるために、例えば負のデー夕の場合は、
正のデータに変換するために設けられている。4はエン
コーダパルス設定器1からのデータNSと、絶対値回路
3を介して与えられるエンコーダパルス生成回路2から
のデータNとを比較する第1の比較器で、両方の信号N
SとNとが等しいとき、OK倍信号出力する。5はOと
エンコーダパルス生成回路2からのデータNとを比較す
る第2の比較器で、データNが0の時OK倍信号出力す
る。6は論理和回路で、第1.第2の各比較器4,5か
らのOK倍信号入力しており、いずれの側からもOK倍
信号出力されない場合、エラー信号ERRを出力するよ
うに構成されている。
In this absolute value circuit, since data N can be both positive and negative depending on the rotation direction, for example, in the case of negative data,
Provided for converting into positive data. 4 is a first comparator that compares the data NS from the encoder pulse setter 1 with the data N from the encoder pulse generation circuit 2 provided via the absolute value circuit 3;
When S and N are equal, an OK times signal is output. A second comparator 5 compares O with data N from the encoder pulse generation circuit 2, and outputs an OK times signal when data N is 0. 6 is an OR circuit; The OK multiplied signal from each of the second comparators 4 and 5 is input, and if the OK multiplied signal is not output from either side, it is configured to output an error signal ERR.

このように構成した回路の動作を説明すれば以下の通り
である。
The operation of the circuit configured in this way will be explained as follows.

第2図は、その動作を示すタイムチャートである。FIG. 2 is a time chart showing the operation.

(a)はエンコーダ出力の入相信号、(b)はB相信号
の波形を示し、ここではA相信号とB相信号とは互いに
位相が90度ずれており、この位相が90度進むか、遅
れるかで(d)に示すように回転方向が正転か、逆転か
判断できるようになっている。(c)はZ相信号でモー
タの回転が1回転するごとに、図示するようにパルス信
号が出力される。
(a) shows the input phase signal of the encoder output, and (b) shows the waveform of the B-phase signal. Here, the A-phase signal and the B-phase signal are 90 degrees out of phase with each other, and whether the phase advances by 90 degrees or not. As shown in (d), it is possible to judge whether the rotation direction is forward or reverse depending on whether the rotation direction is delayed or delayed. (c) is a Z-phase signal, and a pulse signal is output as shown every time the motor rotates once.

エンコーダパルス生成回路2は、(C)に示すZ相信号
が出力されてから、(a)に示すA相信号パルスをアッ
プダウンカウンタによって、正転期間はパルスの立ち上
がり時をとらえてカウントアツプし、また逆転期間はカ
ウントダウンする。
After the Z-phase signal shown in (C) is output, the encoder pulse generation circuit 2 uses an up-down counter to count up the A-phase signal pulse shown in (a) by capturing the rising edge of the pulse during the normal rotation period. , and the reversal period is counted down.

これによりアップダウンカウンタのカウント値Nは、(
a)の各パルス波形の脇の数字に示すように順次変化す
る。このカウント値Nは、Z相信号が印加された時点(
パルスの立ち下がり時)に、絶対値出力回路3を介して
第1の比較器4及び第2の比較器5に出力される。
As a result, the count value N of the up/down counter is (
The pulse waveforms change sequentially as shown in the numbers beside each pulse waveform in a). This count value N is calculated at the time when the Z-phase signal is applied (
(at the falling edge of the pulse), it is output to the first comparator 4 and the second comparator 5 via the absolute value output circuit 3.

ここで、エンコーダからのA相、B相信号に異常が無い
場合、Z相信号が与えられる毎に、アップダウンカウン
タから出力されるカウント値Nは、そのエンコーダの1
回転当たりに出力される定格パルス数NSか、0の値と
なる。
Here, if there is no abnormality in the A-phase and B-phase signals from the encoder, the count value N output from the up-down counter every time the Z-phase signal is given is 1 of the encoder.
The value is NS, which is the rated number of pulses output per rotation, or 0.

第1の比較器4は、カウント値Nが定格パルス数NSに
等しいか判断し、等しい場合OK倍信号出力する。また
、第2の比較器5はカウント値Nが0と等しいか判断し
、等しい場合OK倍信号出力する。論理和回路6はこれ
らのOK倍信号論理和をとり、OK倍信号いずれの比較
器からも出力されない場合、すなわちカウント値Nが定
格パルス数NSあるいはOてないとき、ERR信号を出
力する。
The first comparator 4 determines whether the count value N is equal to the rated pulse number NS, and outputs an OK times signal if the count value N is equal to the rated pulse number NS. Further, the second comparator 5 determines whether the count value N is equal to 0, and if it is equal, outputs an OK times signal. The OR circuit 6 logically ORs these OK times signals, and outputs an ERR signal when the OK times signal is not output from any of the comparators, that is, when the count value N is less than the rated pulse number NS or O.

この様な動作により、Z信号が出力される毎にエンコー
ダ信号の正常あるいは異常状態を検出することができる
With such an operation, it is possible to detect whether the encoder signal is normal or abnormal every time the Z signal is output.

〈発明の効果〉 以上詳細に説明したように、本発明によればエンコーダ
の差動出力を利用するものではないので、オープンコレ
クタ出力タイプのエンコーダにも適用可能なエンコーダ
信号異常検出回路が実現できる。
<Effects of the Invention> As explained in detail above, according to the present invention, since the differential output of the encoder is not used, it is possible to realize an encoder signal abnormality detection circuit that is applicable to open collector output type encoders. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示す(R成ブロック図、第
2図はその動作を説明するだめのタイムチャート、第3
図は従来のエンコーダ信号異常検出回路の一例を示す構
成ブロック図、第4図はその動作を示す波形図である。 1・・・エンコーダパルス設定器 2・・・エンコーダパルス生成回路 3・・・絶対値出力回路  4・・・第1の比較器5・
・・第2の比較器   6・・・論理和回路特許出願人
    横河電機株式会社
FIG. 1 shows an embodiment of the present invention (R block diagram, FIG. 2 is a time chart for explaining its operation, and FIG. 3 is a time chart for explaining its operation.
The figure is a block diagram showing an example of a conventional encoder signal abnormality detection circuit, and FIG. 4 is a waveform diagram showing its operation. 1... Encoder pulse setter 2... Encoder pulse generation circuit 3... Absolute value output circuit 4... First comparator 5.
...Second comparator 6...OR circuit patent applicant Yokogawa Electric Corporation

Claims (1)

【特許請求の範囲】 1回転当たりのエンコーダ出力パルスの定格値を設定す
るエンコーダパルス設定器と、 エンコーダからの互いに位相の異なったA相、B相信号
及び1回転毎に出力されるZ相信号とを入力しZ相信号
が印加されてから次のZ相信号が印加されるまでの間の
エンコーダパルスのカウント数データを出力するエンコ
ーダパルス生成回路と、 このエンコーダパルス生成回路からの出力データの絶対
値をとる絶対値出力回路と、 前記エンコーダパルス設定器からのデータと前記絶対値
回路を介して与えられるエンコーダパルス生成回路から
のデータとを比較し両方のデータが等しいときOK信号
を出力する第1の比較器と、0と前記エンコーダパルス
生成回路からのデータとを比較し当該データが0の時O
K信号を出力する第2の比較器と、 第1、第2の各比較器からのOK信号を入力し、いずれ
の側からもOK信号が出力されない場合エラー信号を出
力する論理和回路と を備えたエンコーダ信号異常検出回路。
[Claims] An encoder pulse setting device that sets the rated value of encoder output pulses per rotation, A-phase and B-phase signals having mutually different phases from the encoder, and a Z-phase signal outputted every rotation. an encoder pulse generation circuit that inputs a signal and outputs encoder pulse count data from the time a Z-phase signal is applied until the next Z-phase signal is applied, and the output data from this encoder pulse generation circuit. An absolute value output circuit that takes an absolute value compares the data from the encoder pulse setter with the data from the encoder pulse generation circuit provided via the absolute value circuit, and outputs an OK signal when both data are equal. A first comparator compares 0 with data from the encoder pulse generation circuit, and when the data is 0, O
A second comparator that outputs the K signal, and an OR circuit that inputs the OK signal from each of the first and second comparators and outputs an error signal if the OK signal is not output from either side. Equipped with an encoder signal abnormality detection circuit.
JP30349888A 1988-11-30 1988-11-30 Encoder signal abnormality detection circuit Pending JPH02147910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30349888A JPH02147910A (en) 1988-11-30 1988-11-30 Encoder signal abnormality detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30349888A JPH02147910A (en) 1988-11-30 1988-11-30 Encoder signal abnormality detection circuit

Publications (1)

Publication Number Publication Date
JPH02147910A true JPH02147910A (en) 1990-06-06

Family

ID=17921691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30349888A Pending JPH02147910A (en) 1988-11-30 1988-11-30 Encoder signal abnormality detection circuit

Country Status (1)

Country Link
JP (1) JPH02147910A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021014999A (en) * 2019-07-10 2021-02-12 ファナック株式会社 Servomotor control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021014999A (en) * 2019-07-10 2021-02-12 ファナック株式会社 Servomotor control device
US11886205B2 (en) 2019-07-10 2024-01-30 Fanuc Corporation Servo motor controller

Similar Documents

Publication Publication Date Title
US4839834A (en) Speed detecting apparatus
JPH0534105A (en) Multiple-rotation absolute-value encoder
JPH06147922A (en) Displacement measuring device
JP4782434B2 (en) Rotation detection device signal processing device
JPH02147910A (en) Encoder signal abnormality detection circuit
JPH0374325B2 (en)
JPH0835857A (en) Method for detecting angle of rotation
JPH0425716A (en) Encoder abnormality detecting device
JPH0466288B2 (en)
JP3320454B2 (en) Motor position control device and motor position control method
JPH07190807A (en) Pulse count circuit of encoder
JPH06160113A (en) Generation of high-resolution absolute signal
US4939756A (en) Two-phase encoder circuit
JPH0620142Y2 (en) Encoder disconnection detection circuit
JPH05280999A (en) Multirotational position detection apparatus
JPH11252966A (en) Motor speed control device
JP3679051B2 (en) Rotation speed detector
JPH05118871A (en) Method for detecting abnormality of encoder
JPH0539456Y2 (en)
JPH0560571A (en) Method for detecting abnormality of encoder
JP2961987B2 (en) Rotational position detecting device for internal combustion engine
JPH077985A (en) Digital type speed detector and speed controller of electric motor using the same
JPH11257995A (en) Pulse counter
JPH08122098A (en) Position detector for rotor
JPS63140914A (en) Position and angle detector