JPH0252808B2 - - Google Patents

Info

Publication number
JPH0252808B2
JPH0252808B2 JP57092192A JP9219282A JPH0252808B2 JP H0252808 B2 JPH0252808 B2 JP H0252808B2 JP 57092192 A JP57092192 A JP 57092192A JP 9219282 A JP9219282 A JP 9219282A JP H0252808 B2 JPH0252808 B2 JP H0252808B2
Authority
JP
Japan
Prior art keywords
flip
flop
output
pulse
count
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 - Lifetime
Application number
JP57092192A
Other languages
Japanese (ja)
Other versions
JPS58210516A (en
Inventor
Nobuo Sakurai
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.)
Amada Co Ltd
Original Assignee
Amada Co 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 Amada Co Ltd filed Critical Amada Co Ltd
Priority to JP9219282A priority Critical patent/JPS58210516A/en
Publication of JPS58210516A publication Critical patent/JPS58210516A/en
Publication of JPH0252808B2 publication Critical patent/JPH0252808B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P13/00Indicating or recording presence, absence, or direction, of movement
    • G01P13/02Indicating direction only, e.g. by weather vane
    • G01P13/04Indicating positive or negative direction of a linear movement or clockwise or anti-clockwise direction of a rotational movement

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Indicating Or Recording The Presence, Absence, Or Direction Of Movement (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は方向弁別回路に関し、詳しくは、パル
スエンコーダの二相出力から例えば工作機械等の
位置制御対象(テーブル或いは工具等)の正転又
は逆転方向の移動を判別し各々の移動量をカウン
トパルスとして出力する方向弁別回路に関する。 例えば工作機械における位置検出では、位置制
御対象の移動に関連するインクリメンタルタイプ
のパルスエンコーダの二相出力を方向弁別回路に
与え、位置制御対象の正転又は逆転方向の移動を
判別して各方向の移動量に対応するカウントアツ
プパルス及びカウントダウンパルスを作り出し、
これによつて可逆カウンタを駆動することにより
行なうのが一般的にである。 第1図は方向弁別回路の従来例で、パルスエン
コーダ(図示しない)のA相出力を入力端子IN
−1を介して受ける第1フリツプフロツプ10
と、B相出力を入力端子IN−2を介して受ける
第2フリツプフロツプ12と、第1フリツプフロ
ツプ10のQ1出力を受ける第3フリツプフロツ
プ14と、第1フリツプフロツプ10のQ1出力
及び第3フリツプフロツプ14の3出力を受け
る第1ANDゲート16aと、第1フリツプフロツ
プ10の1出力及び第3フリツプフロツプ14
のQ3出力を受けるる第2ANDゲート16bと、
第1ANDゲート16aの出力及び第2フリツプフ
ロツプ12の2出力を受ける第1出力ゲート1
8aと、第2ANDゲート16bの出力及び第2フ
リツプフロツプ12の2出力を受ける第2出力
ゲート18bを有する。なお、入力端子IN−3
から各フリツプフロツプにクロツクが送られ、ま
た出力端子OUT−1,OUT−2は可逆カウンタ
(図示しない)に接続される。 第2図A及び第2図Bは第1図の回路の動作タ
イムチヤートで、第2図Aはカウントアツプパル
スの出力時を示し、第2図Bはカウントダウンパ
ルスの出力時を示す。第2図A及び第2図Bにお
ける各信号波形は第1図の回路に同一符号で示す
信号に対応する。以下第2図A及び第2図Bを併
用して第1図の回路動作を説明する。 パルスエンコーダのA相とB相の出力信号b,
iは第2図A及び第2図Bに示すようにπ/2の
位相差を有する。先ず、パルスエンコーダのA相
出力bを第1フリツプフロツプ10のデータ入力
として与えそのQ1出力cで第3フリツプフロツ
プ14を駆動して、第1フリツプフロツプ10の
Q1出力および第3フリツプフロツプ14の3
力により第1ANDゲート16aを、また第1フリ
ツプフロツプ10の1出力および第3フリツプ
フロツプ14のQ3出力により第2ANDゲート1
6bを介しA相出力の立上りに対応する短時間幅
のパルス列gとその立下りに対応する同幅のパル
ス列hを作る。即ち、立上りに対応するパルス列
gは第1フリツプフロツプ10のQ1出力cと第
3フリツプフロツプ14の3出力fとのAND1
6aにより与えられ、立下りに対応するパルス列
hは第1フリツプフロツプ10の1出力dと第
3フリツプフロツプ14のQ3出力とのAND16
bによつて与えられる。次に各パルス列g,h
は、エンコーダのB相出力iにデータ入力とする
第2フリツプフロツプ12の2出力kとの間で
出力ゲート18a,18bによるANDを介して、
第2図A又は第2図Bに示すように出力端子
OUT−1,OUT−2にカウントアツプパルスl
又はカウントダウンパルスmとして供給される。 上記構成の方向弁別回路はパルスエンコーダ出
力の方向弁別として今日広く用いられているが、
正負双方の論理出力を有するフリツプフロツプを
必要とし、またカウント情報のデコードに対し多
数のゲートを必要とするので、必要ICの点数が
大となるばかりでなく回路構成が複雑化し、これ
はエンコーダの数に応じて益々増大するという欠
点がある。 従つて本発明は従来の技術の上記欠点を改善す
るもので、その目的は回路構成を簡単化し、しか
も複数のエンコーダに対しても同一回路構成をも
つて対応しうる方向弁別回路を提供することにあ
る。 上記目的を達成するための本発明は、概略的に
はパルスエンコーダの二相出力の一方をデータ入
力とする第1フリツプフロツプ及び他方をデータ
入力とする第2フリツプフロツプと、第1フリツ
プフロツプのQ出力をデータ入力とする第3フリ
ツプフロツプと、各フリツプフロツプのQ出力レ
ベルの所定の組合せに従つてカウントアツプ又は
カウントダウンパルスを出力するICメモリとを
有するごときパルスエンコーダ出力の方向弁別回
路よりなるものである。 以下図面により本発明の実施例を説明する。 第3図は本発明による方向弁別回路の一実施例
で、Q出力のみを有する3個のフリツプフロツプ
20,22,24とROM26を有する。 第1フリツプフロツプ20は入力端子IN−1
を介してパルスエンコーダ(図示しない)のA相
出力を入力データとし、第2フリツプフロツプ2
2は入力端子IN−2を介してパルスエンコーダ
のB相出力をデータ入力とし、また第3フリツプ
フロツプ24は第1フリツプフロツプ20のQa
出力を入力データとする。入力端子IN−3はク
ロツク用で、各フリツプフロツプにクロツクを供
給する。ROM26はアドレス入力A0,A1,A2
として第1フリツプフロツプ20のQa出力と第
2フリツプフロツプ22のQb出力と第3フリツ
プフロツプ24のQc出力とを受入れ、そのデー
タ出力D0,D1に対応する出力端子OUT−1,
OUT−2にカウントアツプパルス及びカウント
ダウンパルスを夫々供給する。ROM26のチツ
プイネーブルCEは本実施例においては常に動作
状態とし、また出力イネーブルOEは入力端子IN
−3を介してクロツクが与えられ、アドレスの変
化後出力データが確立する一定時間後にカウント
パルスを出力するようにコントロールされる。
ROM26の記憶パターンは各フリツプフロツプ
のQ出力レベルの所定の組合せに従つてカウント
アツプパルス又はカウントダウンパルスを出力す
るように定められる。具体的には以下の通りであ
る。 先に述べた第1図の回路において、カウントア
ツプパルスl及びカウントダウンパルスmの発生
は各フリツプフロツプのQ1及びQ2及びQ3出力c,
j,eの組合せに対応する。なお各々の反転出力
1及び2及び3は出力Q1及びQ2及びQ3で代表
される。従つて第2図A及び第2図Bから以下の
真理値表を得ることができる。
The present invention relates to a direction discrimination circuit, and more specifically, it discriminates whether a position control object (table, tool, etc.) of a machine tool, etc. moves in the forward or reverse direction from the two-phase output of a pulse encoder, and counts each movement amount by counting pulses. This invention relates to a direction discrimination circuit that outputs as follows. For example, in position detection in machine tools, the two-phase output of an incremental type pulse encoder related to the movement of the position controlled object is applied to a direction discrimination circuit, which determines whether the position controlled object moves in the forward or reverse direction. Generates count-up and count-down pulses corresponding to the amount of movement,
This is generally done by driving a reversible counter. Figure 1 shows a conventional example of a direction discrimination circuit, in which the A-phase output of a pulse encoder (not shown) is input to the input terminal IN.
-1 through the first flip-flop 10
, a second flip-flop 12 that receives the B-phase output through the input terminal IN-2, a third flip-flop 14 that receives the Q1 output of the first flip-flop 10, and a Q1 output of the first flip-flop 10 and the third flip-flop 14. a first AND gate 16a that receives three outputs from the first flip-flop 10, one output from the first flip-flop 10, and one output from the third flip-flop 14;
a second AND gate 16b receiving the Q3 output of
A first output gate 1 receives the output of the first AND gate 16a and the two outputs of the second flip-flop 12.
8a, and a second output gate 18b receiving the output of the second AND gate 16b and the two outputs of the second flip-flop 12. In addition, input terminal IN-3
A clock is sent to each flip-flop from OUT-1 to OUT-2, and output terminals OUT-1 and OUT-2 are connected to a reversible counter (not shown). 2A and 2B are operation time charts of the circuit shown in FIG. 1, in which FIG. 2A shows the time when a count-up pulse is output, and FIG. 2B shows the time when a count-down pulse is output. Each signal waveform in FIGS. 2A and 2B corresponds to the signal shown with the same reference numeral in the circuit of FIG. The operation of the circuit shown in FIG. 1 will be described below with reference to FIGS. 2A and 2B. A-phase and B-phase output signals b of the pulse encoder,
i has a phase difference of π/2 as shown in FIGS. 2A and 2B. First, the A-phase output b of the pulse encoder is applied as the data input of the first flip-flop 10, and its Q1 output c drives the third flip-flop 14.
The Q1 output and the three outputs of the third flip-flop 14 drive the first AND gate 16a, and the one output of the first flip-flop 10 and the Q3 output of the third flip-flop 14 drive the second AND gate 16a.
6b, a short-time pulse train g corresponding to the rising edge of the A-phase output and a pulse train h of the same width corresponding to the falling edge of the pulse train g are generated. That is, the pulse train g corresponding to the rising edge is an AND1 of the Q1 output c of the first flip-flop 10 and the third output f of the third flip-flop 14.
6a, and the pulse train h corresponding to the falling edge is an AND16 of the 1 output d of the first flip-flop 10 and the Q3 output of the third flip-flop 14.
given by b. Next, each pulse train g, h
is connected to the B-phase output i of the encoder and the two outputs k of the second flip-flop 12, which are input as data, via an AND by output gates 18a and 18b.
Output terminal as shown in Figure 2A or Figure 2B
Count up pulse l to OUT-1 and OUT-2
Alternatively, it is supplied as a countdown pulse m. The direction discrimination circuit with the above configuration is widely used today for direction discrimination of pulse encoder output.
A flip-flop with both positive and negative logic outputs is required, and a large number of gates are required to decode the count information, which not only increases the number of ICs required but also complicates the circuit configuration, which increases the number of encoders. The disadvantage is that it increases as the number increases. Therefore, the present invention aims to improve the above-mentioned drawbacks of the prior art, and its purpose is to provide a direction discrimination circuit that simplifies the circuit configuration and can also be used with a plurality of encoders with the same circuit configuration. It is in. To achieve the above object, the present invention generally comprises a first flip-flop that uses one of the two-phase outputs of a pulse encoder as a data input, a second flip-flop that uses the other as a data input, and a Q output of the first flip-flop. It consists of a pulse encoder output direction discrimination circuit having a third flip-flop as a data input, and an IC memory that outputs count-up or count-down pulses according to a predetermined combination of Q output levels of each flip-flop. Embodiments of the present invention will be described below with reference to the drawings. FIG. 3 shows an embodiment of the direction discrimination circuit according to the present invention, which includes three flip-flops 20, 22, 24 having only Q outputs and a ROM 26. The first flip-flop 20 has an input terminal IN-1.
The A-phase output of a pulse encoder (not shown) is input data through the second flip-flop 2.
2 uses the B-phase output of the pulse encoder as data input through the input terminal IN-2, and the third flip-flop 24 inputs the Qa of the first flip-flop 20.
Take the output as input data. Input terminal IN-3 is for a clock and supplies a clock to each flip-flop. ROM26 has address inputs A 0 , A 1 , A 2 ,
The Qa output of the first flip-flop 20, the Qb output of the second flip-flop 22, and the Qc output of the third flip-flop 24 are received as output terminals OUT-1, OUT-1, corresponding to the data outputs D0 , D1 .
A count up pulse and a count down pulse are respectively supplied to OUT-2. The chip enable CE of the ROM26 is always in the operating state in this embodiment, and the output enable OE is connected to the input terminal IN.
A clock is applied through -3, and it is controlled to output a count pulse after a certain period of time when the output data is established after the address changes.
The storage pattern of the ROM 26 is determined to output count up pulses or count down pulses according to a predetermined combination of Q output levels of each flip-flop. Specifically, the details are as follows. In the circuit shown in FIG. 1 described above, the count-up pulse l and count-down pulse m are generated by the outputs c, Q1 , Q2, and Q3 of each flip-flop.
Corresponds to the combination of j and e. Note that the respective inverted outputs Q 1 , 2 and 3 are represented by outputs Q 1 , Q 2 and Q 3 . Therefore, the following truth table can be obtained from FIGS. 2A and 2B.

【表】 上記表から明からなように、カウントアツプパ
ルスが与えられるのはQ1=“1”、Q2=“0”、Q3
=“0”の場合であり、カウントダウンパルスが
与えられるのはQ1=“0”、Q2=“0”、Q3=“1”
の場合である。第3図において第1フリツプフロ
ツプ20のQaは上記Q1に、第2フリツプフロツ
プ22のQbは上記Q2に、第3フリツプフロツプ
24のQcは上記Q3に夫々対応することは明らか
である。従つて上記真理値表に基づいてROM2
6の記憶パターンを作成しておけば、パルスエン
コーダの正転又は逆転方向の移動に応じてカウン
トアツプ又はカウントダウンパルスを得ることが
できる。 上記実施例においてはROMによりデコードす
ることとしたが、PROMを用いることももとよ
り可能であり、これによればプログラムの変更に
より容易にカウントアツプとカウントダウンの切
換を行なうことができる。また、ROMは集積度
の高いものを容易に得ることができるので、複数
のエンコーダ出力をデコードする場合にも単一の
もので足りる。例えば、32KbitのROMを用いれ
ばアドレス入力が12あるので4個のパルスエンコ
ーダの各出力をデコードすることが可能となる。 以上のごとき実施例の説明より理解されるよう
に、要するに本発明の要旨は特許請求の範囲に記
載のとおりであるから、本発明によれば、3つの
フリツプフロツプと1つのROMよりなるもので
あり、しかもフリツプフロツプとしては、Q出力
のみのもので良く、従来のごとく正負両論理極性
出力のフリツプフロツプに比較して構成が極めて
簡単なものとなる。またデコーダ部分は1つの
ROMであるから、回路構成が簡単化できるもの
である。
[Table] As is clear from the table above, the count-up pulse is given when Q 1 = “1”, Q 2 = “0”, and Q 3
= “0”, and the countdown pulse is given when Q 1 = “0”, Q 2 = “0”, Q 3 = “1”
This is the case. In FIG. 3, it is clear that Qa of the first flip-flop 20 corresponds to the above Q1 , Qb of the second flip-flop 22 corresponds to the above Q2 , and Qc of the third flip-flop 24 corresponds to the above Q3 . Therefore, based on the truth table above, ROM2
By creating 6 memory patterns, it is possible to obtain count-up or count-down pulses in response to movement of the pulse encoder in the forward or reverse direction. In the above embodiment, decoding is performed using a ROM, but it is of course possible to use a PROM, and with this, it is possible to easily switch between count-up and count-down by changing the program. Furthermore, since highly integrated ROMs can be easily obtained, a single ROM is sufficient even when decoding multiple encoder outputs. For example, if a 32 Kbit ROM is used, there are 12 address inputs, so each output of four pulse encoders can be decoded. As can be understood from the above description of the embodiments, the gist of the present invention is as stated in the claims, and therefore, according to the present invention, the device consists of three flip-flops and one ROM. Moreover, the flip-flop only needs to have a Q output, and the configuration is extremely simple compared to the conventional flip-flop that outputs both positive and negative logic polarities. Also, the decoder part is one
Since it is a ROM, the circuit configuration can be simplified.

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

第1図は方向弁別回路の従来例、第2図A及び
第2図Bは第1図の回路の動作タイムチヤート、
第3図は本発明による方向弁別回路の一実施例で
ある。 20:第1フリツプフロツプ、22:第2フリ
ツプフロツプ、24:第3フリツプフロツプ、2
6:ROM。
FIG. 1 is a conventional example of a direction discrimination circuit, FIGS. 2A and 2B are operation time charts of the circuit in FIG.
FIG. 3 is an embodiment of a direction discrimination circuit according to the present invention. 20: first flip-flop, 22: second flip-flop, 24: third flip-flop, 2
6:ROM.

Claims (1)

【特許請求の範囲】 1 パルスエンコーダの二相出力の一方をデータ
入力とする第1フリツプフロツプ20と、 他方をデータ入力とする第2フリツプフロツプ
22と、 第1フリツプフロツプ20のQ出力をデータ入
力とする第3フリツプフロツプ24と、 上記第1、第2および第3フリツプフロツプ2
0,22,24の各出力Qa,Qb,Qcを各アドレ
スA0,A2,A1に受け入れ、各アドレスA0,A1
A2の受け入れレベルが1、0、0のパターンの
ときにのみカウントアツプパルスを発生し、パタ
ーンが0、1、0のときにのみカウントダウンパ
ルスを発生するROM26と、 を備えてなることを特徴とするパルスエンコーダ
出力の方向弁別回路。
[Claims] 1. A first flip-flop 20 that uses one of the two-phase outputs of the pulse encoder as a data input, a second flip-flop 22 that uses the other as a data input, and the Q output of the first flip-flop 20 as a data input. a third flip-flop 24; and the first, second and third flip-flops 2
Each output Qa, Qb, Qc of 0, 22, 24 is received at each address A 0 , A 2 , A 1 , and each address A 0 , A 1 ,
A ROM 26 that generates a count-up pulse only when the acceptance level of A2 is in a pattern of 1, 0, 0, and generates a count-down pulse only when the pattern is 0, 1, 0. Direction discrimination circuit for pulse encoder output.
JP9219282A 1982-06-01 1982-06-01 Direction discrimination circuit for output of pluse encoder Granted JPS58210516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9219282A JPS58210516A (en) 1982-06-01 1982-06-01 Direction discrimination circuit for output of pluse encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9219282A JPS58210516A (en) 1982-06-01 1982-06-01 Direction discrimination circuit for output of pluse encoder

Publications (2)

Publication Number Publication Date
JPS58210516A JPS58210516A (en) 1983-12-07
JPH0252808B2 true JPH0252808B2 (en) 1990-11-14

Family

ID=14047570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9219282A Granted JPS58210516A (en) 1982-06-01 1982-06-01 Direction discrimination circuit for output of pluse encoder

Country Status (1)

Country Link
JP (1) JPS58210516A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5093737A (en) * 1973-12-20 1975-07-26
JPS58109812A (en) * 1981-12-23 1983-06-30 Komatsu Ltd Output circuit of pulse encoder

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5093737A (en) * 1973-12-20 1975-07-26
JPS58109812A (en) * 1981-12-23 1983-06-30 Komatsu Ltd Output circuit of pulse encoder

Also Published As

Publication number Publication date
JPS58210516A (en) 1983-12-07

Similar Documents

Publication Publication Date Title
US4308500A (en) Incremental encoder for measuring positions of objects such as rotating shafts
US4379221A (en) Circuit for detecting phase relationship between two signals
JPS6266322A (en) Data bus buffer control circuit
JPH0252808B2 (en)
JP2621633B2 (en) Stepping motor control circuit
JPS63253220A (en) Measuring instrument for angle of rotation
JP2554064B2 (en) Pulse counting method
KR890001478Y1 (en) A motor
SU1631441A1 (en) Device for determining sense of rotation
JP2735248B2 (en) Floppy disk unit
KR880003316Y1 (en) Arrangement for starting stepping motor
JPH0234613Y2 (en)
SU1287287A1 (en) Shift-to-digital converter
JPH0727804A (en) Pulse width measurement circuit
KR890004858Y1 (en) Number of rotation counting circuit
JPH045102Y2 (en)
KR940005584Y1 (en) Detecting circuit of motor position
SU1305869A1 (en) Binary code-to-binary-coded decimal code converter
SU1216830A1 (en) Device for converting codes
SU1455385A1 (en) Pulse shaper
JPH01199395A (en) Writing and erasing time control circuit
KR910005678Y1 (en) Control circuit of stepping motor for fdd
SU1221657A2 (en) Information input device
SU1156233A1 (en) Device for controlling step motor
SU919092A1 (en) Reversible circular counter