JPH04324367A - Pulse train conversion circuit for rotary encoder - Google Patents
Pulse train conversion circuit for rotary encoderInfo
- Publication number
- JPH04324367A JPH04324367A JP3122239A JP12223991A JPH04324367A JP H04324367 A JPH04324367 A JP H04324367A JP 3122239 A JP3122239 A JP 3122239A JP 12223991 A JP12223991 A JP 12223991A JP H04324367 A JPH04324367 A JP H04324367A
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- flip
- flop
- pulses
- gate
- 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
Links
Landscapes
- Transmission And Conversion Of Sensor Element Output (AREA)
- Control Of Electric Motors In General (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、ロータリーエンコーダ
から出力されるモータの回転速度と回転方向の情報を与
えるパルスに混入したパルス性ノイズを除去することが
できる改良されたロータリーエンコーダのパルス列変換
回路に関するものである。[Industrial Application Field] The present invention provides an improved pulse train conversion circuit for a rotary encoder that is capable of removing pulse noise mixed in pulses output from a rotary encoder that provide information on the rotational speed and direction of a motor. It is related to.
【0002】0002
【従来の技術】図4は、従来のモータの制御システムの
概要を示すブロック図である。図において、10はモー
タであり、11はモータ10の回転に応じて磁気式や光
学式等からなる位置センサから互いに90度位相の異な
るA相とB相のパルス(AΦ,BΦ)を出力するロータ
リーエンコーダである。ロータリーエンコーダ11から
出力されるA相とB相のパルスは、パルス列変換回路1
2でパルス列に変換され、このパルス列が誤差検出回路
13に供給されると共に、誤差検出回路13には、関数
発生器14を介してモータの制御信号が供給される。誤
差検出回路13では、ロータリーエンコーダ11と関数
発生器14からの夫々の信号が処理され、誤差検出回路
13からモータ10のコード化された制御信号がDA変
換器15に供給され、DA変換器15を介して誤差電圧
が得られ、その誤差電圧をサーボ増幅器16で増幅して
モータ10の回転速度及び回転方向を制御している。こ
のようなモータの制御システムは、X−Yレコーダや工
業用ロボット等に多用されており、機械装置と共に使用
される場合が多く、パルス性ノイズが混入する可能性が
高い。2. Description of the Related Art FIG. 4 is a block diagram showing an outline of a conventional motor control system. In the figure, 10 is a motor, and 11 outputs A-phase and B-phase pulses (AΦ, BΦ) that are 90 degrees out of phase from each other from a magnetic or optical position sensor according to the rotation of the motor 10. It is a rotary encoder. The A-phase and B-phase pulses output from the rotary encoder 11 are sent to the pulse train conversion circuit 1.
2 is converted into a pulse train, and this pulse train is supplied to the error detection circuit 13, and the error detection circuit 13 is supplied with a motor control signal via the function generator 14. In the error detection circuit 13, the signals from the rotary encoder 11 and the function generator 14 are processed, and the encoded control signal for the motor 10 is supplied from the error detection circuit 13 to the DA converter 15. An error voltage is obtained through the servo amplifier 16 and is amplified by the servo amplifier 16 to control the rotational speed and direction of the motor 10. Such motor control systems are often used in X-Y recorders, industrial robots, and the like, and are often used together with mechanical devices, so there is a high possibility that pulse noise will be mixed in.
【0003】0003
【発明が解決しようとする課題】図4に示されるように
ロータリーエンコーダ11からは、互いに90度位相の
異なるA相とB相のパルスが出力されており、このA相
とB相のパルスによってモータの回転速度及び回転方向
が検出され、それらの情報と関数発生器14を介して供
給される制御信号が誤差検出回路13で処理されてモー
タが制御されている。従って、ロータリーエンコーダ1
1からのA相とB相のパルスにパルス性ノイズが混入し
た場合は、パルス列変換回路12でパルス性ノイズをも
波形整形してパルス列に混入することになり、モータの
回転速度及び回転方向の情報に誤った情報が混入したこ
とになる。このような場合、このパルス性ノイズの混入
によって誤差検出回路13では、正常な情報処理ができ
ずにモータ10が誤動作をして制御が充分にできなくな
る欠点がある。As shown in FIG. 4, the rotary encoder 11 outputs A-phase and B-phase pulses that differ in phase by 90 degrees from each other. The rotational speed and direction of the motor are detected, and the information and the control signal supplied via the function generator 14 are processed by the error detection circuit 13 to control the motor. Therefore, rotary encoder 1
If pulse noise is mixed into the A-phase and B-phase pulses from 1, the pulse train conversion circuit 12 will shape the pulse noise and mix it into the pulse train, which will change the rotation speed and direction of the motor. This means that the information contained incorrect information. In such a case, the error detection circuit 13 cannot perform normal information processing due to the incorporation of this pulsed noise, causing the motor 10 to malfunction, resulting in insufficient control.
【0004】本発明の目的は、ロータリーエンコーダ1
1から出力されるA相とB相のパルスに混入するパルス
性ノイズを除去することができるロータリーエンコーダ
のパルス列変換回路に関するものである。[0004] An object of the present invention is to provide a rotary encoder 1
The present invention relates to a pulse train conversion circuit for a rotary encoder that can remove pulse noise mixed in A-phase and B-phase pulses output from a rotary encoder.
【0005】[0005]
【課題を解決するための手段】本発明のロータリーエン
コーダのパルス列変換回路は、ロータリーエンコーダか
らモータの回転速度及び回転方向の情報を与える互いに
90度位相の異なる第1と第2のパルスがパルス列変換
回路に供給されており、該パルス列変換回路が該第1の
パルスが供給される第1のフリップ・フロップと、該第
1のフリップ・フロップからのパルスが供給される第2
のフリップ・フロップと、該第2のパルスが供給される
第3のフリップ・フロップと、該第3のフリップ・フロ
ップからのパルスが供給される第4のフリップ・フロッ
プと、該第1のフリップ・フロップと該第2のフリップ
・フロップの出力パルスの一方のエッジ間をパルス幅と
し、クロックパルスに同期したパルスを得る第1のゲー
トと、該第1のフリップ・フロップと該第2のフリップ
・フロップの出力パルスの他方のエッジ間をパルス幅と
し、クロックパルスに同期したパルスを得る第2のゲー
トと、該第3のフリップ・フロップと該第4のフリップ
・フロップの出力パルスの一方のエッジ間をパルス幅と
し、クロックパルスに同期したパルスを得る第3のゲー
トと、該第3のフリップ・フロップと該第4のフリップ
・フロップの出力パルスの他方のエッジ間をパルス幅と
し、クロックパルスに同期したパルスを得る第4のゲー
トと、第1乃至第4のゲートからの出力と該第1と該第
3のフリップ・フロップからのパルスに基づいてモータ
の回転方向に応じて一方が優先されて時系列的に加算さ
れたパルスを得る第1と第2のゲート群と、前記第1乃
至第4のゲートからのパルスのうち同期したパルスのみ
を出力するノイズ検出回路を構成する第3のゲート群と
、該第1のゲート群と該第3のゲート群及び該第2のゲ
ート群と該第3のゲート群から夫々出力されるパルスが
供給され、同期したパルスを除去する第5と第6のゲー
トとからなるものである。[Means for Solving the Problems] A pulse train conversion circuit for a rotary encoder of the present invention converts first and second pulses, which are different in phase by 90 degrees from each other, from a rotary encoder and give information on the rotational speed and direction of a motor into a pulse train. a first flip-flop to which the first pulse is supplied and a second flip-flop to which the pulse from the first flip-flop is supplied;
a third flip-flop supplied with the second pulse; a fourth flip-flop supplied with the pulse from the third flip-flop; and a third flip-flop supplied with the pulse from the third flip-flop; - A first gate that obtains a pulse synchronized with a clock pulse with a pulse width between one edge of the output pulse of the flop and the second flip-flop, and the first flip-flop and the second flip-flop. - A second gate that obtains a pulse synchronized with a clock pulse with a pulse width between the other edges of the output pulse of the flop, and one of the output pulses of the third flip-flop and the fourth flip-flop. A third gate that obtains a pulse synchronized with a clock pulse, with a pulse width between the edges and the other edge of the output pulse of the third flip-flop and the fourth flip-flop, and a clock pulse. a fourth gate that obtains a pulse synchronized with the pulse; and one of the gates is configured to generate a pulse according to the rotational direction of the motor based on the outputs from the first to fourth gates and the pulses from the first and third flip-flops. first and second gate groups that obtain pulses that are prioritized and added in time series; and a noise detection circuit that configures a noise detection circuit that outputs only synchronized pulses among the pulses from the first to fourth gates. Pulses output from the third gate group, the first gate group, the third gate group, the second gate group, and the third gate group are supplied, and a pulse is provided to remove the synchronized pulses. 5 and a sixth gate.
【0006】[0006]
【作用】本発明のロータリーエンコーダのパルス列変換
回路は、ロータリーエンコーダから出力される互いに9
0度位相の異なる第1と第2のパルスに混入するパルス
性ノイズを検出し、パルス性ノイズに基づくパルスと前
記第1と第2のパルスに基づくパルスが所定のゲートに
供給され、該ゲートに供給されるパルスの内、タイミン
グの一致するパルス性ノイズに基づく信号を除去して、
モータの回転速度及び回転方向の情報のみがパルス列と
して出力されるようにしたものである。[Operation] The rotary encoder pulse train conversion circuit of the present invention has nine
Pulse noise mixed in the first and second pulses having a phase difference of 0 degrees is detected, and a pulse based on the pulse noise and a pulse based on the first and second pulses are supplied to a predetermined gate, and the gate Among the pulses supplied to the
Only information about the rotational speed and rotational direction of the motor is output as a pulse train.
【0007】[0007]
【実施例】図3は、本発明のロータリーエンコーダのパ
ルス列変換回路が用いられたモータの制御システムの概
要の一例を示すブロックである。本発明に係るロータリ
ーエンコーダのパルス列変換回路は、ロータリーエンコ
ーダ11の後段に接続されており、ロータリーエンコー
ダ11から出力されているモータの回転速度及び回転方
向の情報を与える互いに90度位相の異なるA相及びB
相のパルス(AΦ,BΦ)がノイズ検出回路を具えるノ
イズ除去型のパルス列変換回路12’に供給され、この
パルス列変換回路12’によって、タイミングの一致す
るパルス性ノイズに基づくパルスを除去してモータの回
転速度及び回転方向の情報を与えるパルス列のみを誤差
検出回路13に供給する。又、関数発生器14から誤差
検出回路13に制御信号を供給することによって、誤差
検出回路13からコード化されたパルス信号がDA変換
器15に供給され、DA変換器15から得られる誤差電
圧をサーボ増幅器16に供給してモータ10の回転速度
及び回転方向等が制御されている。Embodiment FIG. 3 is a block diagram showing an example of a motor control system using the rotary encoder pulse train conversion circuit of the present invention. The pulse train conversion circuit of the rotary encoder according to the present invention is connected to the rear stage of the rotary encoder 11, and provides information on the rotation speed and rotation direction of the motor output from the rotary encoder 11. and B
The phase pulses (AΦ, BΦ) are supplied to a noise-removal type pulse train conversion circuit 12' that includes a noise detection circuit, and this pulse train conversion circuit 12' removes pulses based on pulse noise with matching timing. Only the pulse train giving information on the rotational speed and rotational direction of the motor is supplied to the error detection circuit 13. Furthermore, by supplying a control signal from the function generator 14 to the error detection circuit 13, the coded pulse signal is supplied from the error detection circuit 13 to the DA converter 15, and the error voltage obtained from the DA converter 15 is The rotation speed, rotation direction, etc. of the motor 10 are controlled by supplying the signal to a servo amplifier 16.
【0008】図1は、本発明のロータリーエンコーダの
パルス列変換回路の一実施例を示す回路図であり、図2
のタイミング・チャートを参照して本発明のロータリー
エンコーダのパルス列変換回路について説明する。図1
に於いて、図2(2)(7)に示されるようにロータリ
ーエンコーダからA相,B相のパルス(AΦ,BΦ)が
、入力端子2,3に夫々供給される。端子1には、図2
(1) に示されるようにクロックパルスが供給され、
端子4には、リセット信号が供給される。入力端子2に
は、A相のパルスAΦが入力される。パルスAΦは、イ
ンバータI1 を介してD−フリップ・フロップF1
に供給され、D−フリップ・フロップF1 からは、図
2(3) に示されるようにクロックパルスに同期した
パルスPF1が得られる。その出力パルスPF1がD−
フリップ・フロップF2 に供給され、図2(4) に
示したようなパルスPF2が得られる。D−フリップ・
フロップF1 の反転したパルスとD−フリップ・フロ
ップF2 からのパルスPF2がNANDゲートG1
に供給される。NANDゲートG1 からは、パルスP
F1, PF2の立ち上がりエッジ間に対応したパルス
幅とする図2(5) に示されるようなパルスPA,P
A1が得られる。又、D−フリップ・フロップF1 の
パルスとD−フリップ・フロップF2 のパルスがNA
NDゲートG2 に供給され、パルスPF1,PF2の
と立ち下がりエッジ間に対応したパルス幅とする図2(
6) に示されるようなパルスPB が得られる。FIG. 1 is a circuit diagram showing an embodiment of a pulse train conversion circuit for a rotary encoder according to the present invention, and FIG.
The pulse train conversion circuit of the rotary encoder according to the present invention will be explained with reference to the timing chart of FIG. Figure 1
At this time, A-phase and B-phase pulses (AΦ, BΦ) are supplied from the rotary encoder to input terminals 2 and 3, respectively, as shown in FIGS. 2(2) and 2(7). Terminal 1 is shown in Figure 2.
A clock pulse is supplied as shown in (1),
A reset signal is supplied to the terminal 4. An A-phase pulse AΦ is input to the input terminal 2 . The pulse AΦ is passed through the inverter I1 to the D-flip-flop F1.
A pulse PF1 synchronized with the clock pulse is obtained from the D-flip-flop F1 as shown in FIG. 2(3). The output pulse PF1 is D-
The pulse PF2 is supplied to the flip-flop F2, and a pulse PF2 as shown in FIG. 2(4) is obtained. D-Flip
The inverted pulse of flop F1 and the pulse PF2 from D-flip-flop F2 are connected to NAND gate G1.
supplied to From NAND gate G1, pulse P
Pulses PA and P as shown in Figure 2 (5) with pulse widths corresponding to the rising edges of F1 and PF2.
A1 is obtained. Also, the pulse of D-flip-flop F1 and the pulse of D-flip-flop F2 are NA
The pulse width shown in FIG. 2 (
6) A pulse PB as shown in is obtained.
【0009】一方、パルスBΦは、インバータI11を
介してD−フリップ・フロップF11に供給され、図2
(8) に示すようなクロックパルスに同期したパルス
PF11 が得られる。そのパルスがD−フリップ・フ
ロップF12に供給され、図2(9) に示したパルス
PF12 が得られる。
D−フリップ・フロップF11の反転したパルスとD−
フリップ・フロップF12のパルスPF12 がNAN
DゲートG7 に供給され、図2(10)に示されるよ
うにパルスPF11 とPF12 の立ち上がりエッジ
間に対応したパルス幅とするパルスPc,PC1が得ら
れる。又、D−フリップ・フロップF11のパルスとD
−フリップ・フロップF12の反転したパルスがNAN
DゲートG8 に供給され、図2(11)に示されるよ
うにパルスPF11 とPF12 の立ち下がりエッジ
間に対応したパルスPD が得られる。又、D−フリッ
プ・フロップF1,F2,F11F12には、端子1か
らインバータI5 を介してクロックパルスが供給され
ると共に、端子4からリセット信号が供給されるように
なされてている。このようにNANDゲートG1,G2
,G7,G8 の出力端子A,B,C,Dの夫々の出力
は、図2(5)(6)(10)(11)に示されている
。On the other hand, the pulse BΦ is supplied to the D-flip-flop F11 via the inverter I11, and as shown in FIG.
A pulse PF11 synchronized with the clock pulse as shown in (8) is obtained. The pulse is supplied to the D-flip-flop F12, and the pulse PF12 shown in FIG. 2(9) is obtained. D--inverted pulse of flip-flop F11 and D-
Pulse PF12 of flip-flop F12 is NAN
The pulses Pc and PC1 are supplied to the D gate G7 and have pulse widths corresponding to the rising edges of the pulses PF11 and PF12 as shown in FIG. 2(10). Also, the pulse of D-flip-flop F11 and D
- The inverted pulse of flip-flop F12 is NAN
The pulse PD is supplied to the D gate G8, and a pulse PD corresponding to the falling edges of the pulses PF11 and PF12 is obtained as shown in FIG. 2(11). Further, the D-flip-flops F1, F2, F11F12 are supplied with clock pulses from terminal 1 via inverter I5, and are supplied with a reset signal from terminal 4. In this way, NAND gates G1, G2
, G7, G8 are shown in FIGS. 2(5), (6), (10), and (11).
【0010】NANDゲートG3 には、NANDゲー
トG1 からの出力と、優先回路を形成する為にD−フ
リップ・フロップF11からの出力がインバータI12
を介して供給されている。NANDゲートG4 には、
NANDゲートG2 からの出力とD−フリップ・フロ
ップF11からの出力が供給されている。NANDゲー
トG5 には、NANDゲートG7 からの出力とD−
フリップ・フロップF1 からの出力が供給されている
。NANDゲートG6には、NANDゲートG8 から
の出力とD−フリップ・フロップF1 からの出力がイ
ンバータI2 を介して供給されている。同様に、NA
NDゲートG9 乃至G12も出力端子A乃至D等から
の出力が供給されている。NANDゲートG3 乃至G
6,G9 乃至G12は、D−フリップ・フロップF1
,F11からの出力と、インバータI2,I12からの
出力が供給されて優先回路が形成されている。The NAND gate G3 receives the output from the NAND gate G1 and the output from the D-flip-flop F11 to form a priority circuit.
Supplied via. NAND gate G4 has
The output from NAND gate G2 and the output from D-flip-flop F11 are provided. NAND gate G5 has the output from NAND gate G7 and D-
The output from flip-flop F1 is provided. The output from the NAND gate G8 and the output from the D-flip-flop F1 are supplied to the NAND gate G6 via an inverter I2. Similarly, N.A.
The ND gates G9 to G12 are also supplied with outputs from output terminals A to D, etc. NAND gate G3 to G
6, G9 to G12 are D-flip-flops F1
, F11 and outputs from inverters I2 and I12 are supplied to form a priority circuit.
【0011】NANDゲートG3 乃至G6 からの出
力は、NORゲートH1 に供給され、NANDゲート
G9 乃至G12からの出力は、NORゲートH2 に
供給される。このNANDゲートG3 乃至G6 とN
ORゲートH1 からなるゲート群によって図2(13
)に示されるように時系列的に加算されたパルスPL,
PL1〜PL5が得られる。又、NANDゲートG9
乃至G12とNORゲートH2 からなるゲート群によ
って図2(14)に示される出力が得られる。図2は、
モータが正回転している例であり、NORゲートH2
からの出力は、Lレベルを維持している。NORゲート
H1,H2 からの出力は、夫々NANDゲートG13
, G14に供給される。The outputs from NAND gates G3 to G6 are supplied to NOR gate H1, and the outputs from NAND gates G9 to G12 are supplied to NOR gate H2. These NAND gates G3 to G6 and N
FIG. 2 (13
) The pulses PL added in time series as shown in
PL1 to PL5 are obtained. Also, NAND gate G9
The output shown in FIG. 2 (14) is obtained by the gate group consisting of G12 to G12 and the NOR gate H2. Figure 2 shows
This is an example where the motor is rotating forward, and the NOR gate H2
The output from is maintained at L level. The outputs from NOR gates H1 and H2 are respectively connected to NAND gate G13.
, G14.
【0012】一方、出力端子A乃至Dの出力パルスは、
夫々NORゲートH3,H4 に供給され、夫々の出力
がNANDゲートG15に供給される。NANDゲート
G15の出力が図2(12)に示されている。NORゲ
ートH3,H4 とNANDゲートG15からなるゲー
ト群は、パルス性ノイズを検出するノイズ検出回路7で
ある。NANDゲートG15の出力がインバータI7
を介してNANDゲートG13, G14に供給される
。NANDゲートG13, G14は、インバータI7
を介してノイズ検出回路7からの出力と、NORゲー
トH1,H2 からの夫々出力が供給され、そのNAN
DゲートG13の出力が図2(15)に示されるように
パルスPP1〜PP5が得られる。NANDゲートG1
3, G14から得られる夫々の出力は、D−フリップ
・フロップF3 ,F4 及びF13,F14からなる
波形整形回路8,9に供給され、インバータI3 ,I
13を介してモータの回転方向に対応して何れかの端子
からパルス列が得られる。図2では、モータが正回転を
している例であるので、端子5からモータ制御用のパル
ス列が得られる。尚、D−フリップ・フロップF1乃至
F4,F11乃至F14は、クロックパルスが供給され
て出力パルスがクロックパルスに同期が取られるように
なされていると共に、リセット端子が設けられている。On the other hand, the output pulses from output terminals A to D are as follows:
They are supplied to NOR gates H3 and H4, respectively, and their respective outputs are supplied to NAND gate G15. The output of NAND gate G15 is shown in FIG. 2(12). A gate group consisting of NOR gates H3, H4 and NAND gate G15 is a noise detection circuit 7 that detects pulse noise. The output of NAND gate G15 is connected to inverter I7.
It is supplied to NAND gates G13 and G14 via. NAND gates G13 and G14 are inverter I7
The output from the noise detection circuit 7 and the respective outputs from the NOR gates H1 and H2 are supplied through the NAN
Pulses PP1 to PP5 are obtained from the output of the D gate G13 as shown in FIG. 2(15). NAND gate G1
The respective outputs obtained from 3 and G14 are supplied to waveform shaping circuits 8 and 9 consisting of D-flip-flops F3 and F4 and F13 and F14, and inverters I3 and I
13, a pulse train is obtained from any terminal corresponding to the rotational direction of the motor. In FIG. 2, since the motor is rotating in the normal direction, a pulse train for controlling the motor is obtained from the terminal 5. The D-flip-flops F1 to F4 and F11 to F14 are supplied with clock pulses so that their output pulses are synchronized with the clock pulses, and are also provided with reset terminals.
【0013】次に、ロータリーエンコーダから出力され
るA相,B相のパルス(AΦ,BΦ)にパルス性ノイズ
が混入した場合について説明する。図2(2)(7)に
示されるパルスP1,P2 は、同じタイミングでロー
タリーエンコーダのパルス(AΦ,BΦ)に混入したパ
ルス性ノイズである。D−フリップフロップF1 の出
力は、HレベルからLレベルに反転し、クロックパルス
に同期したパルスP3 が得られ、D−フリップ・フロ
ップF2 からパルスP4 が得られる。又、パルス性
ノイズP2 の混入によってD−フリップ・フロップF
11の出力は、LレベルからHレベルに反転し、パルス
P7 が得られ、D−フリップ・フロップF12からパ
ルスP8 が得られる。これらのパルスがNANDゲー
トG1,G2,G7,G8 に供給され、それらの出力
端子A乃至Dから図2の(5)(6)(10)(11)
に示されるように夫々パルスP5,P6,P9,P10
が得られる。Next, a case where pulse noise is mixed into the A-phase and B-phase pulses (AΦ, BΦ) output from the rotary encoder will be explained. The pulses P1 and P2 shown in FIGS. 2(2) and 2(7) are pulse noise mixed into the rotary encoder pulses (AΦ, BΦ) at the same timing. The output of the D-flip-flop F1 is inverted from H level to L level, a pulse P3 synchronized with the clock pulse is obtained, and a pulse P4 is obtained from the D-flip-flop F2. Also, due to the mixing of pulse noise P2, the D-flip-flop F
The output of F11 is inverted from L level to H level to obtain pulse P7, and pulse P8 is obtained from D-flip-flop F12. These pulses are supplied to NAND gates G1, G2, G7, and G8, and from their output terminals A to D, (5), (6), (10), and (11) in FIG.
The pulses P5, P6, P9, P10 as shown in
is obtained.
【0014】NORゲートH3 には、NANDゲート
G1,G2 からは、LレベルからHレベルに反転する
パルスP5 とHレベルからLレベルに反転するパルス
P6 が夫々供給され、且つ、NORゲートH4 には
、NANDゲートG7,G8 からは、HレベルからL
レベルに反転するパルスP9 とLレベルからHレベル
に反転するパルスP10が供給され、それらの出力がN
ANDゲートG15に供給される。NANDゲートG1
5の出力は、図2(12)に示されるようにHレベルの
パルスP11が出力される。NANDゲートG15の出
力端子Kからの出力パルスは、インバータI7 を介し
て反転されてパルスがNANDゲートG13,G14に
供給される。一方、NORゲートH1,H2 の出力端
子L,Mからは、図2(13)(14)に示されるよう
にモータの回転方向、回転速度の情報が入ったパルスP
A,PA1, PB,PB1及びPC,PC1, PD
,PD1と、パルス性ノイズによるパルスP5,P6
或いはP9,P10に基づくパルスP12が出力される
。The NOR gate H3 is supplied with a pulse P5 that inverts from L level to H level and a pulse P6 that inverts from H level to L level from NAND gates G1 and G2, and the NOR gate H4 is supplied with a pulse P5 that inverts from L level to H level and a pulse P6 that inverts from H level to L level, respectively. , from NAND gates G7 and G8, from H level to L level.
A pulse P9 that inverts from L level to H level and a pulse P10 that inverts from L level to H level are supplied, and their outputs are N.
It is supplied to AND gate G15. NAND gate G1
5, a pulse P11 of H level is output as shown in FIG. 2 (12). The output pulse from the output terminal K of the NAND gate G15 is inverted via the inverter I7 and the pulse is supplied to the NAND gates G13 and G14. On the other hand, from the output terminals L and M of the NOR gates H1 and H2, a pulse P containing information on the rotational direction and rotational speed of the motor is output as shown in Fig. 2 (13) and (14).
A, PA1, PB, PB1 and PC, PC1, PD
, PD1 and pulses P5 and P6 due to pulse noise.
Alternatively, pulse P12 based on P9 and P10 is output.
【0015】図2のタイミングチャートは、モータの正
方向に回転した例であるので、NORゲートH1 の出
力端子Lからパルスが得られるのに対し、NORゲート
H2 の出力端子MからはLレベルを保持したままとな
り、パルスは得られない。従って、NANDゲートG1
3には、ノイズ検出回路7からのパルスP11がインバ
ータI7 を介して供給されると共に、モータの回転に
よるパルスPL 乃至PL4と、パルス性ノイズによる
パルスP12が共に供給される。NANDゲートG13
からは、図2(15)に示されるようなタイミングの一
致するパルス性ノイズによるパルスが打ち消されて、パ
ルスPL,PL1乃至PL5に対応したパルスPP1乃
至PP5のみが出力される。NANDゲートG13から
のパルスPP1乃至PP5が、D−フリップ・フロップ
F3,F4 からなる波形整形回路7に供給されて波形
整形され、出力端子5からパルス列が得られる。一方、
NANDゲートG14には、Lレベルの出力と、パルス
性ノイズによるパルスP12が供給されるが、その出力
は、Lレベルを維持した状態が保持されている。The timing chart in FIG. 2 is an example in which the motor rotates in the forward direction, so a pulse is obtained from the output terminal L of the NOR gate H1, whereas an L level is obtained from the output terminal M of the NOR gate H2. It remains held and no pulse is obtained. Therefore, NAND gate G1
3 is supplied with a pulse P11 from the noise detection circuit 7 via an inverter I7, and also supplied with pulses PL to PL4 caused by the rotation of the motor and a pulse P12 caused by pulse noise. NAND gate G13
From then on, the pulses caused by the pulse noise having the same timing as shown in FIG. 2(15) are canceled out, and only the pulses PP1 to PP5 corresponding to the pulses PL, PL1 to PL5 are output. Pulses PP1 to PP5 from the NAND gate G13 are supplied to a waveform shaping circuit 7 consisting of D-flip-flops F3 and F4, where the waveforms are shaped, and a pulse train is obtained from the output terminal 5. on the other hand,
The NAND gate G14 is supplied with an L level output and a pulse P12 due to pulse noise, but the output is maintained at the L level.
【0016】無論、図2の示したモータの回転方向と反
対の場合は、A相のパルスに対してB相のパルスが進み
位相となり、端子LがLレベルに保持され、NANDゲ
ートG14を介して出力端子6からモータの回転方向及
び回転速度の情報が入ったパルス列が出力される。Of course, when the rotation direction of the motor is opposite to that shown in FIG. 2, the B-phase pulse leads the A-phase pulse, the terminal L is held at L level, and A pulse train containing information on the rotational direction and rotational speed of the motor is output from the output terminal 6.
【0017】尚、図1の実施例では、NANDゲート、
NORゲートや、インバータとして正論理と負論理の二
種の記号が使用されて説明されているが、何れの場合に
よっても構成し得ることは、明らかである。又、NAN
Dゲートは、NORゲートに置き換えることも可能であ
り、実施例の回路に限定されるものではなく、端子L或
いは端子Mから出力されるノイズに基づくパルスと、ノ
イズ検出回路7からのパルスにおいてタイミングの一致
するパルスを打ち消し合うように論理回路を構成すれば
よい。In the embodiment shown in FIG. 1, the NAND gate,
Although the NOR gate and the inverter are described using two types of symbols, positive logic and negative logic, it is clear that the structure can be configured in either case. Also, NAN
The D gate can also be replaced with a NOR gate, and is not limited to the circuit of the embodiment. The logic circuit may be constructed so that the matching pulses of the two cancel each other out.
【0018】[0018]
【発明の効果】本発明のロータリーエンコーダのパルス
列変換回路は、モータの回転速度及び回転方向の情報が
入ったパルスAΦ,BΦに、パルス性ノイズが混入した
としても、ノイズ検出回路でパルス性ノイズを検出し、
そのノイズによるパルスとタイミングの一致したパルス
をパルス列から除去することによって、パルスAΦ,B
Φに混入したパルス性ノイズを極めて容易に除去するこ
とが可能である。従って、本発明のロータリーエンコー
ダのパルス列変換回路をモータ制御システムに用いるこ
とによって、モータ制御システムの誤動作を容易に解消
することができるものであり、モータ制御システムの信
頼性向上に極めて効果的なものである。[Effects of the Invention] The pulse train conversion circuit for a rotary encoder of the present invention detects the pulse-like noise in the noise detection circuit even if pulse-like noise is mixed into the pulses AΦ and BΦ containing information about the rotational speed and direction of the motor. detect,
By removing the pulses whose timing coincides with the pulses caused by the noise from the pulse train, the pulses AΦ, B
Pulse noise mixed in Φ can be removed very easily. Therefore, by using the rotary encoder pulse train conversion circuit of the present invention in a motor control system, it is possible to easily eliminate malfunctions in the motor control system, and it is extremely effective in improving the reliability of the motor control system. It is.
【図1】本発明に係るロータリーエンコーダのパルス列
変換回路の一実施例を示す回路図である。FIG. 1 is a circuit diagram showing an embodiment of a pulse train conversion circuit for a rotary encoder according to the present invention.
【図2】本発明に係るロータリーエンコーダのパルス列
変換回路の動作を説明する為のタイミングチャートであ
る。FIG. 2 is a timing chart for explaining the operation of the pulse train conversion circuit of the rotary encoder according to the present invention.
【図3】本発明に係るロータリーエンコーダのパルス列
変換回路が使用されたモータ制御システムの一位を示す
ブロック図である。FIG. 3 is a block diagram showing one part of a motor control system in which the rotary encoder pulse train conversion circuit according to the present invention is used.
【図4】従来のモータ制御システムの一例を示すブロッ
ク図である。FIG. 4 is a block diagram showing an example of a conventional motor control system.
1乃至4 端子
5,6 出力端子
7 ノイズ検出回路
8,9 波形整形回路
12’ パルス列変換回路
F1 乃至F4,F11乃至F14 D−フリップ・
フロップI1 乃至I3,I11乃至I13 インバ
ータG1 乃至G15 NANDゲート
H1 乃至H4 NORゲート1 to 4 terminals 5, 6 output terminal 7 noise detection circuits 8, 9 waveform shaping circuit 12' pulse train conversion circuits F1 to F4, F11 to F14 D-flip
Flops I1 to I3, I11 to I13 Inverters G1 to G15 NAND gates H1 to H4 NOR gates
Claims (1)
転速度及び回転方向の情報を与える互いに90度位相の
異なる第1と第2のパルスが供給されるパルス列変換回
路が、該第1のパルスが供給される第1のフリップ・フ
ロップと、該第1のフリップ・フロップからのパルスが
供給される第2のフリップ・フロップと、該第2のパル
スが供給される第3のフリップ・フロップと、該第3の
フリップ・フロップからのパルスが供給される第4のフ
リップ・フロップと、該第1のフリップ・フロップと該
第2のフリップ・フロップの夫々の出力パルスの一方の
エッジ間をパルス幅とし、クロックパルスに同期したパ
ルスを得る第1のゲートと、該第1のフリップ・フロッ
プと該第2のフリップ・フロップの夫々の出力パルスの
他方のエッジ間をパルス幅とし、クロックパルスに同期
したパルスを得る第2のゲートと、該第3のフリップ・
フロップと該第4のフリップ・フロップの夫々の出力パ
ルスの一方のエッジ間をパルス幅とし、クロックパルス
に同期したパルスを得る第3のゲートと、該第3のフリ
ップ・フロップと該第4のフリップ・フロップの夫々の
出力パルスの他方のエッジ間をパルス幅とし、クロック
パルスに同期したパルスを得る第4のゲートと、前記第
1乃至第4のゲートからの出力パルスが供給され、該第
1と該第3のフリップ・フロップからのパルスに基づい
てモータの回転方向に応じて一方が優先されて時系列的
に加算されたパルスを得る第1と第2のゲート群と、該
第1乃至該第4のゲートからの出力に混入した互いに同
期したパルスのみを検出するノイズ検出回路を構成する
第3のゲート群と、該第1のゲート群と該第3のゲート
群及び該第2のゲート群と該第3のゲート群からの出力
が夫々供給される第5と第6のゲートとからなり、該第
5と該第6のゲートを介してモータの回転速度及び回転
方向の情報を与えるパルス列を出力することを特徴とす
るロータリーエンコーダのパルス列変換回路。1. A pulse train conversion circuit to which first and second pulses having a phase difference of 90 degrees from each other giving information on the rotational speed and direction of the motor are supplied from a rotary encoder, to which the first pulses are supplied. a first flip-flop, a second flip-flop supplied with a pulse from the first flip-flop, a third flip-flop supplied with the second pulse; A fourth flip-flop to which the pulse from the flip-flop is supplied, and a pulse width between one edge of each output pulse of the first flip-flop and the second flip-flop, and a clock The pulse width is between a first gate that obtains a pulse synchronized with the pulse and the other edge of each output pulse of the first flip-flop and the second flip-flop, and the pulse is synchronized with the clock pulse. the second gate to obtain and the third flip gate;
a third gate that obtains a pulse synchronized with a clock pulse with a pulse width between one edge of each of the output pulses of the flop and the fourth flip-flop; A fourth gate whose pulse width is between the other edges of each output pulse of the flip-flop and obtains a pulse synchronized with a clock pulse, and the output pulses from the first to fourth gates are supplied to the fourth gate. 1 and the third flip-flop, one of which is prioritized according to the rotational direction of the motor to obtain pulses added in time series; - a third gate group constituting a noise detection circuit that detects only mutually synchronized pulses mixed in the output from the fourth gate, the first gate group, the third gate group, and the second gate group; and fifth and sixth gates to which the output from the third gate group is supplied, respectively, and information on the rotation speed and rotation direction of the motor is provided through the fifth and sixth gates. A pulse train conversion circuit for a rotary encoder, characterized in that it outputs a pulse train that gives .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3122239A JPH04324367A (en) | 1991-04-24 | 1991-04-24 | Pulse train conversion circuit for rotary encoder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3122239A JPH04324367A (en) | 1991-04-24 | 1991-04-24 | Pulse train conversion circuit for rotary encoder |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04324367A true JPH04324367A (en) | 1992-11-13 |
Family
ID=14831033
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3122239A Pending JPH04324367A (en) | 1991-04-24 | 1991-04-24 | Pulse train conversion circuit for rotary encoder |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04324367A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005345337A (en) * | 2004-06-04 | 2005-12-15 | Auto Network Gijutsu Kenkyusho:Kk | Encoder signal processing system |
| CN104776793A (en) * | 2014-12-18 | 2015-07-15 | 宁波宏大纺织仪器有限公司 | Detection circuit for angle encoder |
-
1991
- 1991-04-24 JP JP3122239A patent/JPH04324367A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005345337A (en) * | 2004-06-04 | 2005-12-15 | Auto Network Gijutsu Kenkyusho:Kk | Encoder signal processing system |
| CN104776793A (en) * | 2014-12-18 | 2015-07-15 | 宁波宏大纺织仪器有限公司 | Detection circuit for angle encoder |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO1985000430A1 (en) | Apparatus for detecting speed of electric motor | |
| JP2938844B1 (en) | Speed and position signal generator | |
| JPS60108710A (en) | Incremental encoder abnormality detection device | |
| JPH01231674A (en) | Drive preventing circuit at motor reverse rotation time | |
| JPS61225660A (en) | Moving direction discriminating circuit | |
| JP3070928B2 (en) | Excitation controller for variable reluctance motor | |
| KR100294377B1 (en) | Reference signal generator | |
| JPH0580604B2 (en) | ||
| KR940003382Y1 (en) | Encoder pulse position detection circuit | |
| JP2554064B2 (en) | Pulse counting method | |
| KR0176745B1 (en) | A servo motor speed control circuit | |
| JPS62285009A (en) | Position detecting apparatus | |
| JPS5951006B2 (en) | positioning control device | |
| SU1164849A1 (en) | Device for controlling thyratron motor | |
| JPH01113670A (en) | Rotation detector | |
| KR940003719Y1 (en) | Arrangement for starting electric motor | |
| JPH0230521B2 (en) | ||
| JPH04287A (en) | Abnormality detecting device for rotary encoder | |
| JPS63295916A (en) | Position signal abnormality detection circuit | |
| JPH0716974Y2 (en) | Encoder noise removal circuit | |
| SU904036A1 (en) | Quick-action current relay | |
| JPS6342516A (en) | Pulse processing circuit for pulse generator | |
| JPH073432B2 (en) | Positioning controller speed detection circuit | |
| JPS63215969A (en) | speed detection device | |
| JP2000175436A (en) | Power converter control device |