Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6347370B2 - - Google Patents
[go: Go Back, main page]

JPS6347370B2 - - Google Patents

Info

Publication number
JPS6347370B2
JPS6347370B2 JP12372082A JP12372082A JPS6347370B2 JP S6347370 B2 JPS6347370 B2 JP S6347370B2 JP 12372082 A JP12372082 A JP 12372082A JP 12372082 A JP12372082 A JP 12372082A JP S6347370 B2 JPS6347370 B2 JP S6347370B2
Authority
JP
Japan
Prior art keywords
pulse
output
input
differential
circuit
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
Application number
JP12372082A
Other languages
Japanese (ja)
Other versions
JPS5915333A (en
Inventor
Nobumasa Dai
Mitsujiro Sawamura
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Manufacturing 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 Yaskawa Electric Manufacturing Co Ltd filed Critical Yaskawa Electric Manufacturing Co Ltd
Priority to JP12372082A priority Critical patent/JPS5915333A/en
Publication of JPS5915333A publication Critical patent/JPS5915333A/en
Publication of JPS6347370B2 publication Critical patent/JPS6347370B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers

Landscapes

  • Control Of Position Or Direction (AREA)
  • Control Of Velocity Or Acceleration (AREA)

Description

【発明の詳細な説明】 本発明は、例えば正転と逆転の方向判別と計数
用の90゜の位相差を持つた2つのパルスを1/2に分
周する2相パルス1/2分周器に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a two-phase pulse 1/2 frequency division system that divides two pulses with a phase difference of 90 degrees to 1/2, for example, for determining the direction of forward rotation and reverse rotation and for counting. Concerning vessels.

従来、第1図のように外部指令回路(例えば
CPU)1からの指令パルスがデジタル制御装置
2の偏差カウンタに設定され、D/A変換された
後、サーボモータ制御装置3、サーボモータ4を
介して駆動される数値制御工作機械の被駆動体、
例えばテーブル5の移動方向と移動距離の検出は
サーボモータ4に連結されたパルスジエネレータ
6から出力される90゜の位相差を持つた2つのパ
ルスをデジタル制御装置2の偏差カウンタにフイ
ードバツクすることによつて行なつている。とこ
ろで、このパルスジエネレータ6の出力パルスを
サーボモータ制御装置3にもフイードバツクさせ
なければならない場合がある。この場合、パルス
ジエネレータ6の出力パルスの周波数がサーボモ
ータ制御装置3の最高入力周波数より大きいと、
サーボモータ制御装置3にパルスジエネレータ6
のパルスをフイードバツクさせることができな
い。この対策としてパルスジエネレータ6の定格
回転数の時のパルスの周波数である定格周波数が
サーボモータ制御装置3の最高入力周波数以下に
なるように回転数を下げることが考えられるが、
回転数を下げるとパルスジエネレータ6の位置検
出精度が落ちる。また、パルスジエネレータ6を
2台、デジタル制御装置2用とサーボモータ制御
装置3用に取付ければよいが、コスト的に不利と
なる。さらに、パルスジエネレータ6の定格周波
数を下げるとサーボモータ制御装置3の速度制御
の精度が悪くなる。
Conventionally, as shown in Figure 1, an external command circuit (e.g.
The command pulse from the CPU) 1 is set in the deviation counter of the digital control device 2, and after D/A conversion, the driven object of the numerically controlled machine tool is driven via the servo motor control device 3 and the servo motor 4. ,
For example, the moving direction and moving distance of the table 5 can be detected by feeding back two pulses with a phase difference of 90 degrees output from a pulse generator 6 connected to a servo motor 4 to a deviation counter of the digital controller 2. It is carried out by Incidentally, it may be necessary to feed back the output pulses of the pulse generator 6 to the servo motor control device 3 as well. In this case, if the frequency of the output pulse of the pulse generator 6 is higher than the maximum input frequency of the servo motor control device 3,
Pulse generator 6 in servo motor control device 3
It is not possible to feed back the pulse of As a countermeasure to this problem, it is possible to lower the rotation speed so that the rated frequency, which is the frequency of pulses when the pulse generator 6 is at the rated rotation speed, is below the maximum input frequency of the servo motor control device 3.
When the rotation speed is lowered, the position detection accuracy of the pulse generator 6 is reduced. Furthermore, it is sufficient to install two pulse generators 6, one for the digital control device 2 and one for the servo motor control device 3, but this is disadvantageous in terms of cost. Furthermore, if the rated frequency of the pulse generator 6 is lowered, the accuracy of speed control of the servo motor control device 3 will deteriorate.

本発明はこのような問題点に鑑み提案されたも
ので、パルスジエネレータの90゜の位相差をもつ
2つの入力パルスを位相をずらすことなく1/2分
周する2相パルス1/2分周器を提供することを目
的とする。
The present invention was proposed in view of these problems, and is a two-phase pulse 1/2 method that divides the frequency of two input pulses of a pulse generator with a phase difference of 90° into 1/2 without shifting the phase. The purpose is to provide peripheral equipment.

この種の分周回路が特公昭52−4710に開示され
ている。この特公昭52−4710に開示された分周回
路は1/4、1/8、………に分周するものであり、1/
2に分周するには他に微分回路、切換回路等が必
要で、回路が複雑になる。また、この分周回路で
は、回転方向が切替わる際の一方の入力パルスが
立上がるときにサーボモータが微小運動(運転・
停止)をすると、その一方の入力パルスに不要な
パルスが連続して現われる。このパルスが1/4分
周、1/8分周の出力パルスに現われて、出力パル
スのカウントエラーを起し、このカウントエラー
が積算されて制御位置が徐々にずれていくように
なる。
This type of frequency dividing circuit is disclosed in Japanese Patent Publication No. 52-4710. The frequency dividing circuit disclosed in this Japanese Patent Publication No. 52-4710 divides the frequency into 1/4, 1/8, etc.
In order to divide the frequency into 2, a differentiating circuit, a switching circuit, etc. are required, which makes the circuit complicated. In addition, in this frequency dividing circuit, when one input pulse rises when the rotation direction is switched, the servo motor makes a minute movement (operation/
(stop), unnecessary pulses appear continuously in one of the input pulses. This pulse appears in the 1/4 frequency-divided and 1/8 frequency-divided output pulses, causing a count error in the output pulses, and as this count error is accumulated, the control position gradually shifts.

本発明の2相パルス1/2分周器は以上述べた従
来の分周回路の欠点を克服して、1/2分周が可能
で、モータの微小運動時に片方の入力パルスに不
要なパルスが現われても、このパルスの影響が出
力パルスに現われず出力パルスにより制御位置が
ずれることを無くしたものである。
The two-phase pulse 1/2 frequency divider of the present invention overcomes the drawbacks of the conventional frequency dividing circuit described above, and is capable of dividing the frequency by 1/2, so that unnecessary pulses are added to one of the input pulses during minute movements of the motor. Even if this pulse appears, the influence of this pulse does not appear on the output pulse, and the control position is prevented from shifting due to the output pulse.

以下、本発明を実施例の図面に従つて説明す
る。第2図は本発明の1実施例に係る、2相パル
ス1/2分周器のブロツク図である。T1,T2はそれ
ぞれ回転体、例えばモータに取り付けられたパル
スジエネレータから出力される90゜の位相差で、
共にデユーテイサイクルが0.5の第1の入力パル
スS1、第2の入力パルスS2の入力端子である。1
は第2の入力パルスS2の立上がりに応じた微分パ
ルスS9,S12と立下がりに応じた微分パルスS10
S11を出力する微分パルス発生回路である。2は
禁止条件が成立すると、その微分パルス禁止信号
S7,S8で微分パルスS10,S12の発生を禁止する微
分パルス禁止回路である。3は判定回路を2個有
し、その各々の正逆判定信号S3,S4を微分パルス
禁止回路2および正逆切替信号発生回路5に出力
する正逆判定回路である。正逆切替信号発生回路
5は正逆判定信号S3,S4により正側切替信号S5
逆側切替信号S6を出力する。4は正側切替信号S5
により微分パルスS9,S10をそれぞれパルス出力
S14,S13として出力し、逆側切替信号S6により微
分パルスS11,S12をそれぞれ微分パルス出力S14
出力S13として出力する微分パルス出力切替回路
である。6は微分パルスS13が出力される毎に論
理レベルが反転して第1の入力パルスS1を1/2分
周した第1の出力パルスS15、微分パルスS14が出
力される毎に論理レベルが反転して第2の入力パ
ルスS2を1/2分周し、第1の出力パルスS15に対し
て90゜の同相の位相差を有する第2の出力パルス
S16をそれぞれ発生する出力パルス発生回路であ
る。この出力パルス発生回路6で発生した第1の
出力パルスS15と第2の出力パルスS16はそれぞれ
出力端子T3,T4より、例えば第1図のデジタル
制御装置2に出力される。
The present invention will be described below with reference to drawings of embodiments. FIG. 2 is a block diagram of a two-phase pulse 1/2 frequency divider according to one embodiment of the present invention. T 1 and T 2 are each a 90° phase difference output from a pulse generator attached to a rotating body, such as a motor,
Both are input terminals for the first input pulse S 1 and the second input pulse S 2 with a duty cycle of 0.5. 1
are differential pulses S 9 , S 12 corresponding to the rising edge of the second input pulse S 2 and differential pulses S 10 , corresponding to the falling edge of the second input pulse S 2 .
This is a differential pulse generation circuit that outputs S11 . 2 is the differential pulse prohibition signal when the prohibition condition is met.
This is a differential pulse inhibition circuit that prohibits generation of differential pulses S 10 and S 12 at S 7 and S 8 . Reference numeral 3 denotes a forward/reverse determining circuit which has two determining circuits and outputs respective forward/reverse determining signals S 3 and S 4 to the differential pulse inhibition circuit 2 and the forward/reverse switching signal generating circuit 5 . The forward/reverse switching signal generation circuit 5 outputs a forward switching signal S 5 and a reverse switching signal S 6 based on the forward/reverse determination signals S 3 and S 4 . 4 is the positive side switching signal S 5
The differential pulses S 9 and S 10 are output as pulses respectively.
The differential pulses S 11 and S 12 are outputted as S 14 and S 13 , respectively, and the differential pulses S 11 and S 12 are output as S 14 and
This is a differential pulse output switching circuit that outputs as output S13 . 6 is a first output pulse S 15 whose logic level is inverted every time the differential pulse S 13 is output, and the frequency of the first input pulse S 1 is divided by 1/2 , and every time the differential pulse S 14 is output. A second output pulse whose logic level is inverted and which divides the second input pulse S 2 by 2 and has an in-phase phase difference of 90° with respect to the first output pulse S 15
This is an output pulse generation circuit that generates S16 respectively. The first output pulse S 15 and the second output pulse S 16 generated by the output pulse generation circuit 6 are output from output terminals T 3 and T 4 , respectively, to the digital control device 2 shown in FIG. 1, for example.

第3図は本発明の1実施例に係る2相パルス1/
2分周器の第2図のブロツク図に対応する回路図
である。IN1は第2の入力パルスS2を反転させる
インバータ回路である。FF1は第1の出力パルス
S1をD入力、第2の入力パルスS2をCP入力とし
て、正逆判定信号S3をQ出力より出力するD−フ
リツプフロツプである。FF2は第1の入力パルス
S1をD入力、第2の入力パルスS2の反転信号2
CP入力として、正逆判定信号S4をQ出力より出
力するD−フリツプフロツプである。EOR1は第
1の入力パルスS1と正逆判定信号S3の排他的論理
和をとり、微分パルス禁止信号S7を出力するエク
スクルーシブ・オア回路である。EOR2は第1の
入力パルスS1と正逆判定信号S4の排他的論理和を
とり、微分パルス禁止信号S8を出力するエクスク
ルーシブ・オア回路である。IN2は正逆判定信号
S3を反転させるインバータ回路である。IN3は正
逆判定信号S4を反転させるインバータ回路であ
る。AND1は正逆判定信号S3と正逆判定信号S4
反転信号4の論理積をとるアンド回路である。
AND2は正逆判定信号S3の反転信号3と正逆判定
信号S4の論理積をとるアンド回路である。FF3
アンド回路AND1の出力信号をPR(プリセツト)
入力、アンド回路AND2の出力信号をCL(クリ
ヤ)入力として、正側切替信号S5、逆側切替信号
S6をそれぞれQ出力、出力より出力するD−フ
リツプフロツプである。IN4は第2の入力パルス
S2を反転させるインバータ回路である。AND3
正側切替信号S5と微分パルス禁止信号S8の論理積
をとるアンド回路である。AND4は正側切替信号
S5と微分パルス禁止信号S7の論理積をとるアンド
回路である。AND5は逆側切替信号S6と微分パル
ス禁止信号S7の論理積をとるアンド回路である。
AND6は逆側切替信号S6と微分パルス禁止信号S8
の論理積をとるアンド回路である。FF4はアンド
回路AND3の出力信号をD入力、第2の入力パル
スS2をCP入力とし、Q出力とCL入力が接続され
たD−フリツプフロツプで、正転時に第2の入力
パルスS2の立上りに応じた微分パルスS9を出力す
る。FF5はアンド回路AND4の出力信号をD入
力、インバータ回路IN4の出力信号である第2の
入力パルスS2の反転信号2をCP入力とし、Q出
力とCL入力が接続されたD−フリツプフロツプ
で、正転時に第2の入力パルスS2の立下がりに応
じた微分パルスS10を出力するる。FF6はアンド
回路AND5の出力信号をD入力、インバータ回路
IN4の出力信号である第2の入力パルスS2の反転
信号2をCP入力とし、Q出力とCL入力が接続さ
れたD−フリツプフロツプで、逆転時に第2の入
力パルスS2の立下がりに応じた微分パルスS11
出力する。FF7はアンド回路AND6の出力信号を
D入力、第2の入力パルスS2をCP入力とし、Q
出力とCL入力が接続されたD−フリツプフロツ
プで、逆転時に第2の入力パルスS2の立上がりに
応じた微分パルスS12を出力する。OR1はD−フ
リツプフロツプFF5の出力信号S10とD−フリツ
プフロツプFF7の出力信号S12の論理和をとり、
微分パルスS13を出力するオア回路である。OR2
はD−フリツプフロツプFF4の出力信号S9とD−
フリツプフロツプFF6の出力信号S11の論理積を
とり、微分パルスS14を出力するオア回路である。
FF8はオア回路OR1の出力信号S13をCP入力とし、
Q出力がD入力に接続されたD−フリツプフロツ
プで、微分パルスS13が現われるたびに論理レベ
ルが反転する第1の出力パルスS15がQ出力より
出力される。FF9はオア回路OR2の微分パルス
S14をCP入力とし、出力がD入力に接続された
D−フリツプフロツプで、微分パルスS14が現わ
れるたびに論理レベルが反転する第2の出力パル
スS16がQ出力より出力される。
FIG. 3 shows a two-phase pulse 1/1 according to an embodiment of the present invention.
FIG. 2 is a circuit diagram corresponding to the block diagram of FIG. 2 of a frequency divider by two; IN1 is an inverter circuit that inverts the second input pulse S2 . FF 1 is the first output pulse
This is a D-flip-flop which takes S1 as the D input, the second input pulse S2 as the CP input, and outputs the forward/reverse determination signal S3 from the Q output. FF 2 is the first input pulse
S 1 as D input, second input pulse S 2 inverted signal 2
This is a D-flip-flop which outputs the forward/reverse determination signal S4 from the Q output as the CP input. EOR 1 is an exclusive OR circuit that takes the exclusive OR of the first input pulse S 1 and the forward/reverse determination signal S 3 and outputs the differential pulse inhibition signal S 7 . EOR 2 is an exclusive OR circuit that takes the exclusive OR of the first input pulse S 1 and the forward/reverse determination signal S 4 and outputs the differential pulse inhibition signal S 8 . IN 2 is the forward/reverse judgment signal
This is an inverter circuit that inverts S3 . IN3 is an inverter circuit that inverts the forward/reverse determination signal S4 . AND 1 is an AND circuit that performs the logical product of the forward/reverse determination signal S 3 and the inverted signal 4 of the forward/reverse determination signal S 4 .
AND 2 is an AND circuit that performs the logical product of the inverted signal 3 of the forward/reverse determination signal S 3 and the forward/reverse determination signal S 4 . FF 3 PR (presets) the output signal of the AND circuit AND 1
Input, output signal of AND circuit AND 2 as CL (clear) input, positive side switching signal S 5 , reverse side switching signal
This is a D-flip-flop that outputs S6 from the Q output and the output, respectively. IN 4 is the second input pulse
This is an inverter circuit that inverts S2 . AND3 is an AND circuit that performs a logical product of the positive side switching signal S5 and the differential pulse inhibition signal S8 . AND 4 is the positive side switching signal
This is an AND circuit that takes the AND of S5 and the differential pulse inhibition signal S7 . AND 5 is an AND circuit that performs the logical product of the reverse side switching signal S 6 and the differential pulse inhibition signal S 7 .
AND 6 is the reverse side switching signal S 6 and the differential pulse inhibition signal S 8
This is an AND circuit that performs the logical product of . FF 4 is a D-flip-flop in which the output signal of the AND circuit AND 3 is used as the D input, the second input pulse S 2 is used as the CP input, and the Q output and CL input are connected . A differential pulse S9 corresponding to the rising edge of is output. FF 5 has the output signal of the AND circuit AND 4 as the D input, the inverted signal 2 of the second input pulse S 2 which is the output signal of the inverter circuit IN 4 as the CP input, and the D- to which the Q output and CL input are connected. The flip-flop outputs a differential pulse S10 corresponding to the falling edge of the second input pulse S2 during normal rotation. FF 6 is the output signal of AND circuit AND 5 as D input, and inverter circuit.
The inverted signal 2 of the second input pulse S2, which is the output signal of IN 4 , is used as the CP input, and the Q output and CL input are connected to the D-flip- flop . A corresponding differential pulse S11 is output. FF 7 uses the output signal of the AND circuit AND 6 as the D input, the second input pulse S 2 as the CP input, and the Q
A D-flip-flop whose output and CL input are connected outputs a differential pulse S12 in response to the rising edge of the second input pulse S2 during reverse rotation. OR1 takes the logical sum of the output signal S10 of the D-flip-flop FF5 and the output signal S12 of the D-flip-flop FF7 ,
This is an OR circuit that outputs a differential pulse S13 . OR 2
is the output signal S9 of D-flip-flop FF4 and D-
This is an OR circuit that takes the AND of the output signal S11 of the flip-flop FF6 and outputs a differential pulse S14 .
FF 8 uses the output signal S 13 of OR circuit OR 1 as CP input,
A D-flip-flop has a Q output connected to a D input, and a first output pulse S15 whose logic level is inverted each time a differential pulse S13 appears is outputted from the Q output. FF 9 is the differential pulse of OR circuit OR 2
A D-flip-flop has S14 as a CP input and an output connected to a D input, and a second output pulse S16 whose logic level is inverted every time the differential pulse S14 appears is outputted from the Q output.

次に第3図の回路動作を第4図のタイミングチ
ヤートを参照しつつ説明する。第3図において時
刻t0にパルスジエネレータで回転を検出するモー
タの回転が正転から逆転に切替つたものとする。
第1の入力パルスS1の位相は、第2の入力パルス
S2の位相より、正転中には90゜進んだ正側で、逆
転中には90゜遅れた逆側である。したがつて、D
−フリツプフロツプFF1の出力信号である正逆判
定信号S3は、逆転中の最初の第2の入力パルスS2
の立上りである時刻t3まで“ハイ”で、以後“ロ
ー”となる。逆に、D−フリツプフロツプFF2
出力信号である正逆判定信号S4は正転から逆転に
切替つたとき第2の入力パルスS2の立下がりであ
る時刻t1までは“ロー”で、以後“ハイ”とな
る。この正逆判定信号S3,S4はそれぞれインバー
タ回路IN3,IN3で反転されてアンド回路AND1
AND2に入力するので、アンド回路AND1の出力
信号は時刻t3まで“ハイ”で、以後“ロー”とな
り、アンド回路AND2の出力信号は時刻t3まで
“ロー”で、以後“ハイ”となる。D−フリツプ
フロツプFF3の出力信号である正側切替信号S5
逆側切替信号S6はそれぞれアンド回路AND1
AND2の出力信号と同じである。一方、イクスク
ルーシブ・オア回路EOR1の出力信号である微分
パルス禁止信号S7は第1の入力パルスS1と時刻t3
まで極性が異なり、時刻t3を過ぎると極性が同じ
となる。イクスクルーシブ・オア回路EOR2の出
力信号である微分パルス禁止信号S8は第1の入力
パルスS1と時刻t1まで極性が同じで、以後極性が
反転する。アンド回路AND3の出力信号はイクス
クルーシブ・オア回路EOR2の出力信号である微
分パルス禁止信号S8の時刻t1以後を“ロー”にし
たものとなる。D−フリツプフロツプFF4は、Q
出力がCL入力に接続されているので、第2の入
力パルスS2がCP入力として入力する毎にその立
上りに応じた微分パルスS9を出力する。同様にD
−フリツプフロツプFF5は正転時の第2の入力パ
ルスS2の立下りに応じた微分パルスS10を、D−
フリツプフロツプFF6は逆転時の第2の入力パル
スS2の立下がりに応じた微分パルスS11を、D−
フリツプフロツプFF7は逆転時の第2の入力パル
スS2の立上がりに応じた微分パルスS12を出力す
る。ただし、正転から逆転に切替わる時刻t1,t3
における第2の入力パルスS2の立下がり、立上が
りに応じた微分パルス(破線で示す)は現われな
い。オア回路OR1から出力される微分パルスS13
は正転時の第2の入力パルスS2の立下がりに応じ
た微分パルスS10と逆転時の第2の入力パルスS2
の立上がりに応じた微分パルスS12を含んだもの
となる。オア回路OR2から出力される微分パルス
S14は正転時の第2の入力パルスS2の立上がりに
応じた微分パルスS9と逆転時の第2の入力パルス
S2の立下がりに応じた微分パルスS11を含んだ信
号となる。D−フリツプフロツプFF8はオア回路
OR1から微分パルスS13がCP入力に入力する毎に
出力が反転する第1の出力パルスS15を出力する。
D−フリツプフロツプFF9はオア回路OR2から微
分パルスS14がCP入力に入力する毎に出力が反転
する第2の出力パルスS16を出力する。第1、第
2の出力パルスS15,S16はそれぞれ第1の入力パ
ルスS1、第2の入力パルスS1を1/2に分周したパ
ルスで、位相が同じく90゜異なつている。
Next, the operation of the circuit shown in FIG. 3 will be explained with reference to the timing chart shown in FIG. 4. In FIG. 3, it is assumed that the rotation of the motor whose rotation is detected by the pulse generator is switched from normal rotation to reverse rotation at time t0 .
The phase of the first input pulse S 1 is equal to that of the second input pulse
From the phase of S 2 , it is the forward side that is 90 degrees ahead during forward rotation, and the opposite side that is 90 degrees behind during reverse rotation. Therefore, D
- The forward/reverse determination signal S3 , which is the output signal of the flip-flop FF1 , is the first second input pulse S2 during reversal.
It remains "high" until time t3 , which is the rising edge of , and then becomes "low". Conversely, the forward/reverse determination signal S4 , which is the output signal of the D-flip-flop FF2 , is "low" until time t1 , which is the falling edge of the second input pulse S2 , when switching from forward rotation to reverse rotation. After that, it becomes “high”. These forward/reverse determination signals S 3 and S 4 are inverted by inverter circuits IN 3 and IN 3 , respectively, and then sent to AND circuits AND 1 and
Since it is input to AND 2 , the output signal of AND circuit AND 1 is "high" until time t 3 and becomes "low" thereafter, and the output signal of AND circuit AND 2 is "low" until time t 3 and becomes "high" thereafter. ” becomes. The positive side switching signal S 5 is the output signal of the D-flip-flop FF 3 ,
The reverse side switching signal S6 is an AND circuit AND1 ,
Same as AND 2 output signal. On the other hand, the differential pulse inhibition signal S7 , which is the output signal of the exclusive OR circuit EOR 1 , is the first input pulse S1 and the time t3.
The polarities are different up to, and after time t3 , the polarities become the same. The differential pulse inhibition signal S8 , which is the output signal of the exclusive OR circuit EOR2 , has the same polarity as the first input pulse S1 until time t1 , and then the polarity is reversed. The output signal of the AND circuit AND3 is the differential pulse inhibition signal S8 , which is the output signal of the exclusive OR circuit EOR2 , which is set to "low" after time t1 . D-flipflop FF 4 is Q
Since the output is connected to the CL input, every time the second input pulse S2 is input as the CP input, a differential pulse S9 is output in accordance with the rising edge of the second input pulse S2. Similarly D
- Flip-flop FF 5 outputs a differential pulse S 10 corresponding to the falling edge of the second input pulse S 2 during normal rotation;
The flip-flop FF6 outputs a differential pulse S11 corresponding to the falling edge of the second input pulse S2 at the time of reverse rotation, and converts it into a D-
Flip-flop FF 7 outputs a differential pulse S 12 in response to the rise of the second input pulse S 2 during reverse rotation. However, the times t 1 and t 3 when switching from forward rotation to reverse rotation
Differential pulses (indicated by broken lines) corresponding to the falling and rising edges of the second input pulse S2 do not appear. Differential pulse S 13 output from OR circuit OR 1
are the differential pulse S10 corresponding to the falling edge of the second input pulse S2 during forward rotation and the second input pulse S2 during reverse rotation.
It includes a differential pulse S12 corresponding to the rising edge of . Differential pulse output from OR circuit OR 2
S14 is the differential pulse S9 corresponding to the rising edge of the second input pulse S2 during forward rotation and the second input pulse during reverse rotation.
The signal includes a differential pulse S11 corresponding to the falling edge of S2 . D-Flip-flop FF 8 is OR circuit
Every time the differential pulse S 13 from OR 1 is input to the CP input, a first output pulse S 15 whose output is inverted is output.
The D-flip-flop FF9 outputs a second output pulse S16 whose output is inverted every time the differential pulse S14 is input to the CP input from the OR circuit OR2 . The first and second output pulses S 15 and S 16 are pulses obtained by dividing the first input pulse S 1 and the second input pulse S 1 by 1/2, respectively, and have the same phase difference of 90°.

以上、述べた本発明の2相パルス1/2分周器の
第1、第2の入力パルスS1,S2と第1、第2の出
力パルスS15,S16の検出装置としては2相パルス
の第1パルスの論理レベル変化時に第2パルスの
論理レベルにより、正側または逆側の微分パルス
を、例えば第1パルスの立上りで第2パルスがハ
イレベルのとき正側パルスを発生し、第1パルス
の立下りで第2パルスがハイレベルのとき逆側パ
ルスを発生する2相パルス検出装置が有効であ
る。この2相パルス検出装置により検出された2
相入力パルスの入力正側パルス数をN1F、入力逆
側パルス数をN1R、2相出力パルスの出力正側パ
ルス数をN2F、出力逆側パルス数をN2Rとすると、
これらのパルス数N1F、N1R、N2F、N2Rの間には
次の関係式が成立する。
As described above, there are two detection devices for the first and second input pulses S 1 and S 2 and the first and second output pulses S 15 and S 16 of the two-phase pulse 1/2 frequency divider of the present invention. When the logic level of the first pulse of the phase pulse changes, a differential pulse on the positive side or the opposite side is generated depending on the logic level of the second pulse. For example, when the second pulse is at a high level at the rising edge of the first pulse, a positive side pulse is generated. A two-phase pulse detection device that generates an opposite pulse when the second pulse is at a high level at the falling edge of the first pulse is effective. 2 detected by this two-phase pulse detection device
Assuming that the number of input positive side pulses of phase input pulses is N 1F , the number of input reverse side pulses is N 1R , the number of output positive side pulses of two-phase output pulses is N 2F , and the number of output reverse side pulses is N 2R ,
The following relational expression holds true between these pulse numbers N 1F , N 1R , N 2F , and N 2R .

(1) 正側または逆側の定常的な一方向運転の場合 N1F−K=2N2F、N1R−K=2N2R ……… (K=1………N1F、N1Rが奇数のとき K=0………N1F、N1Rが偶数のとき) (2) 正側から逆側への正逆運転の場合N1F −N1R〜〜〜=2(N2F −N2R〜〜〜) ……… (3) 逆側から正側への正逆運転の場合N1R −N1F〜〜〜=2(N2R −N2F〜〜〜) ……… 、式において、被減数(−のアンダライ
ン)は正逆切替前のパルス数、減数(〜〜〜のア
ンダライン)は正逆切替後のパルス数である。
N1FとN2F、N1RとN2Rの関係は式と同じであ
る。以上により、正逆繰り返し運転においても、
|N1F−N1R|=2|N2F−N2R|となるので、正
確な位置検出ができる。
(1) For steady one-way operation on the forward or reverse side N 1F −K=2N 2F , N 1R −K=2N 2R ……… (K=1……N 1F , N 1R is an odd number) When K=0......When N 1F and N 1R are even numbers) (2) In the case of forward/reverse operation from the forward side to the reverse side, N 1F −N 1R 〜〜〜=2( N 2F −N 2R 〜〜 ~) ……… (3) In the case of forward/reverse operation from the reverse side to the positive side N 1R −N 1F 〜〜〜=2( N 2R −N 2F 〜〜〜) ……… In the formula, the minuend (− The underlined number) is the number of pulses before forward/reverse switching, and the subtracted number (underlined . . . ) is the number of pulses after forward/reverse switching.
The relationships between N 1F and N 2F and N 1R and N 2R are the same as in the formula. As a result of the above, even in forward and reverse repetitive operation,
|N 1F −N 1R |=2|N 2F −N 2R | Therefore, accurate position detection is possible.

第5図は本発明の2相パルス1/2分周器の状態
遷移図である。〇内の数字は左より2相入力パル
スS1,S2の論理レベルを示す。又、破線で囲んだ
部分は2相の第1、第2の入力パルスS1,S2の論
理レベルが変化しても、第1、第2の出力パルス
S15,S16の論理レベルが変化せず、その右横の括
弧内の数字は左より第1、第2の出力パルスS15
S16の論理レベルを示している。矢印の実線は、
時計廻りが第1の入力パルスS1(第1の出力パル
スS15)が第2の入力パルスS2(第2の入力パルス
S16)より位相が進んだ“正側”を、反時計廻り
が第1の入力パルスS1(第1の出力パルスS15)が
第2の入力パルスS2(第2の出力パルスS16)より
位相が遅れた“逆側”を示している。
FIG. 5 is a state transition diagram of the two-phase pulse 1/2 frequency divider of the present invention. The numbers in circles indicate the logic levels of the two-phase input pulses S 1 and S 2 from the left. Also, the part surrounded by the broken line shows that even if the logic levels of the two-phase first and second input pulses S 1 and S 2 change, the first and second output pulses do not change.
The logic levels of S 15 and S 16 do not change, and the numbers in parentheses to the right indicate the first and second output pulses S 15 ,
S shows 16 logical levels. The solid arrow line is
Clockwise is the first input pulse S 1 (first output pulse S 15 ) is the second input pulse S 2 (second input pulse
In the counterclockwise direction, the first input pulse S 1 (first output pulse S 15 ) is the second input pulse S 2 (second output pulse S 16 ) shows the “opposite side” where the phase is delayed.

本発明の2相パルス1/2分周器の2相入力パル
スS1,S2と2相出力パルスS15,S16を2相パルス
検出装置(例えば第1パルスの立上りで第2パル
スが“1”の時正側パルスを発生し、第1パルス
の立下りで第2パルスが“1”の時逆側パルスを
発生してこれを計数する)で検出し、これを計数
する場合を以下に記す。ただし、2相入力パルス
S1,S2が(1、0)から(1、1)に変化したと
き、正側パルスを+1計数し(第5図で+1と表
わす)、(1、1)から(1、0)に変化した時、
逆側パルスを+1計数する(第5図で−1と表わ
す)。2相出力パルス(S15,S16)が(1、0)
から(1、1)に変化したとき、正側パルスを+
1計数し(第5図で(+1)と表わす)、(1、
1)から(1、0)に変化した時、逆側パルスを
+1計数する(第5図で(−1)と表わす)。
The two-phase input pulses S 1 , S 2 and the two-phase output pulses S 15 , S 16 of the two-phase pulse 1/2 frequency divider of the present invention are detected by a two-phase pulse detection device (for example, when the second pulse is detected at the rising edge of the first pulse). When the first pulse is "1", a positive pulse is generated, and when the second pulse is "1", a reverse pulse is generated and counted. It is described below. However, two-phase input pulse
When S 1 and S 2 change from (1, 0) to (1, 1), count the positive pulse by +1 (represented as +1 in Figure 5), and change from (1, 1) to (1, 0). When it changed to
Count the opposite pulse by +1 (denoted as -1 in FIG. 5). Two-phase output pulse (S 15 , S 16 ) is (1, 0)
When it changes from (1, 1), the positive side pulse is +
1 count (represented as (+1) in Figure 5), (1,
When the pulse changes from 1) to (1, 0), the opposite pulse is counted by +1 (denoted as (-1) in FIG. 5).

(1) 正側で定常動作の場合 第5図で(S1、S2)=(0、1)、(S15、S16
=(1、1)より開始すると、(S1、S2)は
(0、0)、(1、0)、(1、1)(0、1)、
(0、0)、(1、0)、(1、1)と順次変化し
て(0、1)に戻る。この間、正側パルス+1
を2回計数する。また、(S15、S16)は(0、
1)、(0、0)、(1、0)と順次変化して
(1、1)に戻る。この間、正側パルス(+1)
を1回計数する。
(1) In the case of steady operation on the positive side In Figure 5, (S 1 , S 2 ) = (0, 1), (S 15 , S 16 )
Starting from = (1, 1), (S 1 , S 2 ) becomes (0, 0), (1, 0), (1, 1) (0, 1),
It changes sequentially from (0, 0), (1, 0), (1, 1) and returns to (0, 1). During this time, the positive pulse +1
Count twice. Also, (S 15 , S 16 ) is (0,
1), (0, 0), (1, 0) and then returns to (1, 1). During this time, the positive pulse (+1)
Count once.

(2) 正側から逆側に切替わる場合 開始点(S1、S2)=(0、1)、(S15、S16)=
(1、1) (i) n周後、(S1、S2)=(0、0)、(S15、S16

=(0、1)で切替わるとき。(S1、S2)は正
側に(0、1)よりn周して(0、1)、
(0、0)、(0、1)のルートに入る。そし
て(1、1)、(1、0)を通り逆側のルート
に入つて(0、0)、(0、1)、(1、1)、
(1、0)となる。この間、正側パルス+1
を2n回(N1F=2n)、逆側パルス−1を2回
(N1R=2)計数する。同様に、(S15、S16
は(1、1)よりN周して(1、1)、(0、
1)、(1、1)、(1、0)となる。この間、
正側パルス(+1)をn回(N2F=n)、逆
側パルス(−1)を1回(N2R=1)計数す
る。
(2) When switching from the normal side to the reverse side Starting point (S 1 , S 2 ) = (0, 1), (S 15 , S 16 ) =
(1, 1) (i) After n laps, (S 1 , S 2 ) = (0, 0), (S 15 , S 16
)
= When switching at (0, 1). (S 1 , S 2 ) moves n times from (0, 1) to (0, 1) on the positive side,
Enter the route (0, 0), (0, 1). Then, go through (1, 1), (1, 0) and enter the opposite route, (0, 0), (0, 1), (1, 1),
(1, 0). During this time, the positive pulse +1
is counted 2n times (N 1F = 2n) and the opposite pulse -1 is counted 2 times (N 1R = 2). Similarly, (S 15 , S 16 )
is (1, 1) after N rotations from (1, 1), (0,
1), (1, 1), (1, 0). During this time,
The positive pulse (+1) is counted n times (N 2F =n) and the reverse pulse (-1) is counted once (N 2R = 1).

(ii) n周後、(S1、S2)=(1、1)、(S15、S16

=(0、0)で切替わるとき。(S1、S2)は正
側に(0、1)よりn周して、(0、0)、
(1、0)、(1、1)となり、ここで(1、
0)のルートに入る。そして(0、0)、
(0、1)を通り、逆側のルートに入つて
(1、1)、(1、0)、(0、0)、(0、1)、
(1、1)、(1、0)となる。この間、正側
パルス+1を(2n+1)回(N1F=2n+1)、
逆側パルス−1を3回(N1R=3)計数す
る。同様に、(S15、S16)は(1、1)より
n周して、(1、1)、(0、1)、(0、0)、
(0、1)、(1、1)、(1、0)となる。こ
の間、正側パルス(+1)をn回(N2F
N)、逆側パルス(−1)を1回(N2R=1)
計数する。
(ii) After n laps, (S 1 , S 2 ) = (1, 1), (S 15 , S 16
)
= When switching at (0, 0). (S 1 , S 2 ) goes n times from (0, 1) on the positive side, and becomes (0, 0).
(1, 0), (1, 1), where (1,
0) route. and (0, 0),
Pass through (0, 1) and enter the opposite route (1, 1), (1, 0), (0, 0), (0, 1),
(1, 1), (1, 0). During this period, the positive side pulse +1 is applied (2n+1) times (N 1F = 2n+1),
Count the reverse pulse -1 three times (N 1R = 3). Similarly, (S 15 , S 16 ) rotates n times from (1, 1), (1, 1), (0, 1), (0, 0),
(0, 1), (1, 1), (1, 0). During this time, the positive side pulse (+1) is applied n times (N 2F =
N), reverse side pulse (-1) once (N 2R = 1)
Count.

以上説明したように、本発明は90゜の位相差を
もつ2つのパルスを同位相のまま1/2に分周する
もので、数値制御工作機械におけるサーボモータ
制御装置等の入力パルスの最大周波数が小さい場
合に、サーボモータ等の回転数を下げて位置検出
精度を落したり、パルスジエネレータを追加する
ことなくパルスジエネレータの入力パルスをフイ
ードバツクさせることができる。又、本発明は入
力パルスを1/2に分周するものであるから、これ
に直列に接続することにより1/4、1/8、1/16、…
……の分周が可能となる。又、本発明では、モー
ターの回転方向が切替わる微小変動のときに一方
の入力パルスに連続したパルスが出力されても、
これらのパルスによる影響は現われず、位置制御
が狂うことはない。なお入力パルスを1/2分周し
た出力パルスは正逆の切替点に対し半周期遅れた
所(第4図A)で対称となるが、これは固定であ
るため正逆を繰り返しても積算されることはな
い。
As explained above, the present invention divides the frequency of two pulses with a phase difference of 90° into 1/2 while keeping the same phase. is small, the input pulses of the pulse generator can be fed back without lowering the rotation speed of the servo motor or the like to reduce position detection accuracy or adding a pulse generator. Also, since the present invention divides the input pulse frequency by 1/2, by connecting it in series, it divides the frequency of the input pulse into 1/2, 1/4, 1/8, 1/16, etc.
It becomes possible to divide the frequency of... Furthermore, in the present invention, even if a continuous pulse is output to one input pulse when there is a slight fluctuation in which the rotational direction of the motor is switched,
These pulses have no effect, and position control will not be disturbed. Note that the output pulse obtained by dividing the input pulse by 1/2 becomes symmetrical at a point delayed by half a cycle with respect to the forward/reverse switching point (Fig. 4 A), but since this is fixed, the integration will not occur even if the forward/reverse switching point is repeated. It will not be done.

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

第1図は従来のサーボ装置のブロツク図、第2
図は本発明の1実施例に係る2相パルス1/2分周
器のブロツク図、第3図は第2図のブロツク図に
対応する回路の1実施例を示す回路図、第4図は
第3図の回路図の各部の波形を示すタイミングチ
ヤート、第5図は本発明の2相パルス1/2分周器
の状態遷移図である。 11:微分パルス発生回路、12:微分パルス
禁止回路、13:正逆判定回路、14:微分パル
ス出力切替回路、15:正逆切替信号発生回路、
16:出力パルス発生回路。
Figure 1 is a block diagram of a conventional servo device, Figure 2 is a block diagram of a conventional servo device.
The figure is a block diagram of a two-phase pulse 1/2 frequency divider according to an embodiment of the present invention, FIG. 3 is a circuit diagram showing an embodiment of a circuit corresponding to the block diagram of FIG. 2, and FIG. FIG. 3 is a timing chart showing the waveforms of each part of the circuit diagram, and FIG. 5 is a state transition diagram of the two-phase pulse 1/2 frequency divider of the present invention. 11: Differential pulse generation circuit, 12: Differential pulse inhibition circuit, 13: Forward/reverse determination circuit, 14: Differential pulse output switching circuit, 15: Forward/reverse switching signal generation circuit,
16: Output pulse generation circuit.

Claims (1)

【特許請求の範囲】 1 第2の入力パルスの前縁および後縁でそれぞ
れ第1の微分パルスおよび第2の微分パルスを発
生する微分パルス発生回路と、 前記第2の入力パルスの前回の論理レベル変化
時における、前記第2の入力パルスと90゜の位相
差を持つ第1の入力パルスの論理レベルと、前記
第2の入力パルスの今回の論理レベル変化直前に
おける前記第1の入力パルスの論理レベルが同じ
場合に、前記第2の入力パルスの今回の論理レベ
ルの変化による前記第1の微分パルスあるいは前
記第2の微分パルスの出力を禁止する微分パルス
禁止回路と、 前記第2の入力パルスの今回のパルスの前縁に
おける前記第1の入力パルスの論理レベルを前記
第2の入力パルスの次回のパルスの前縁まで保持
する第1の判定回路と、前記第2の入力パルスの
反転信号の今回のパルスの前縁における前記第1
の入力パルスの論理レベルを前記第2の入力パル
スの反転信号の次のパルスの前縁まで保持する第
2の判定回路を有する正逆判定回路と、 それぞれ前記第1、第2の判定回路の信号の論
理レベルを反転した第1、第2の正逆切替信号を
発生する正逆切替信号発生回路と、 前記第1の正逆切替信号が前記第1、第2の微
分パルスと同極性のとき、前記第1の微分パルス
および前記第2の微分パルスをそれぞれ第2の微
分パルス出力、第1の微分パルス出力とし、前記
第2の正逆切替信号が前記第1、第2の微分パル
スと同極性のとき、前記第1の微分パルスおよび
前記第2の微分パルスをそれぞれ前記第1の微分
パルス出力、前記第2の微分パルス出力に切替え
る微分パルス出力切替回路と、 前記第1の微分パルス出力からパルスが出力さ
れる毎に論理レベルが反転し、前記第1又は第2
の入力パルスを1/2分周した第1の出力パルスを
出力する第1のラツチ回路と、前記第2の微分パ
ルス出力からパルスが出力される毎に論理レベル
が反転し、前記第1の出力パルスに対して90゜の
同相の位相差を持ち、前記第1又は第2の入力パ
ルスを1/2分周した第2の出力パルスを出力する
第2のラツチ回路を備えた出力パルス発生回路と
からなることを特徴とする2相パルス1/2分周器。
[Claims] 1. A differential pulse generation circuit that generates a first differential pulse and a second differential pulse at the leading edge and trailing edge of a second input pulse, respectively; and the previous logic of the second input pulse. The logic level of the first input pulse having a phase difference of 90° from the second input pulse when the level changes, and the logic level of the first input pulse immediately before the current logic level change of the second input pulse. a differential pulse prohibition circuit that prohibits output of the first differential pulse or the second differential pulse due to a change in the current logic level of the second input pulse when the logic levels are the same; and the second input pulse. a first determination circuit that maintains the logic level of the first input pulse at the leading edge of the current pulse until the leading edge of the next pulse of the second input pulse; and an inversion of the second input pulse. said first at the leading edge of the current pulse of the signal.
a forward/reverse determination circuit having a second determination circuit that holds the logic level of the input pulse until the leading edge of the next pulse of the inverted signal of the second input pulse; a forward/reverse switching signal generation circuit that generates first and second forward/reverse switching signals with the logic levels of the signals inverted; When, the first differential pulse and the second differential pulse are respectively a second differential pulse output and a first differential pulse output, and the second forward/reverse switching signal is the first differential pulse and the second differential pulse, a differential pulse output switching circuit that switches the first differential pulse and the second differential pulse to the first differential pulse output and the second differential pulse output, respectively, when the polarity is the same as that of the first differential pulse; Each time a pulse is output from the pulse output, the logic level is inverted, and the logic level of the first or second
A first latch circuit outputs a first output pulse obtained by dividing the input pulse by half, and the logic level is inverted every time a pulse is output from the second differential pulse output. An output pulse generator comprising a second latch circuit that outputs a second output pulse that has an in-phase phase difference of 90° with respect to the output pulse and is obtained by dividing the frequency of the first or second input pulse by 1/2. A two-phase pulse 1/2 frequency divider characterized by consisting of a circuit.
JP12372082A 1982-07-15 1982-07-15 2-phase pulse 1/2 frequency divider Granted JPS5915333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12372082A JPS5915333A (en) 1982-07-15 1982-07-15 2-phase pulse 1/2 frequency divider

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12372082A JPS5915333A (en) 1982-07-15 1982-07-15 2-phase pulse 1/2 frequency divider

Publications (2)

Publication Number Publication Date
JPS5915333A JPS5915333A (en) 1984-01-26
JPS6347370B2 true JPS6347370B2 (en) 1988-09-21

Family

ID=14867687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12372082A Granted JPS5915333A (en) 1982-07-15 1982-07-15 2-phase pulse 1/2 frequency divider

Country Status (1)

Country Link
JP (1) JPS5915333A (en)

Also Published As

Publication number Publication date
JPS5915333A (en) 1984-01-26

Similar Documents

Publication Publication Date Title
JPS6347370B2 (en)
US4599600A (en) Conversion of quadrature signals into counter control pulses
US4664523A (en) Apparatus for increasing the resolution of a laser gyroscope
JP2781327B2 (en) Speed detector for encoder type motor
JP2986881B2 (en) Frequency divider for phase difference pulse signal
JPH0434417Y2 (en)
JPH06213679A (en) Counter circuit of position pusle generator
JPH01113670A (en) Rotation detector
RU2010293C1 (en) Linear-circular interpolator
SU980287A1 (en) 12-cycle reversible pulse distributor
JPH0775474B2 (en) Sine wave PWM waveform generator
JPH01174977A (en) Operation detector
JPS6367439B2 (en)
JPS59120962A (en) Speed signal detection device
SU376758A1 (en) DEVICE FOR PROGRAM MANAGEMENT OF PHASE AND PHASE-PULSE SYSTEMS
SU911483A1 (en) Motor rotational speed stabilizer
JPH0114936Y2 (en)
SU1494102A1 (en) Device for comparison of phases
JPS60261380A (en) Rotating speed detector
JPH0789759B2 (en) Vector control current command generator
JPH0157850B2 (en)
JPS60263860A (en) Detecting device of number of revolutions
JPS6043747B2 (en) Three-phase power supply phase control method
JPS60118078A (en) Control circuit of dc motor
JPH02122311A (en) Pulse divider