JPH0528841B2 - - Google Patents

Info

Publication number
JPH0528841B2
JPH0528841B2 JP62219137A JP21913787A JPH0528841B2 JP H0528841 B2 JPH0528841 B2 JP H0528841B2 JP 62219137 A JP62219137 A JP 62219137A JP 21913787 A JP21913787 A JP 21913787A JP H0528841 B2 JPH0528841 B2 JP H0528841B2
Authority
JP
Japan
Prior art keywords
origin
state
detection switch
encoder
changes
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
JP62219137A
Other languages
Japanese (ja)
Other versions
JPS6463808A (en
Inventor
Yoshitomo Shiote
Hiroshi Hatano
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.)
Azbil Corp
Original Assignee
Azbil 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 Azbil Corp filed Critical Azbil Corp
Priority to JP21913787A priority Critical patent/JPS6463808A/en
Publication of JPS6463808A publication Critical patent/JPS6463808A/en
Publication of JPH0528841B2 publication Critical patent/JPH0528841B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Control Of Position Or Direction (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Description

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

[産業上の利用分野] 本発明は、位置測定器としてZ相付インクリメ
ンタル形エンコーダを備えた位置決め制御装置に
関する。 [従来の技術] 一般に、インクリメンタル形エンコーダを用い
て位置を計測する位置決めサーボ系では、電源投
入時の位置がわからないため、原点サーチを行う
必要がある。その際、高精度の位置決めが必要な
場合には、原点検出スイツチとZ相付エンコーダ
を使用し、原点検出スイツチからの信号とエンコ
ーダのZ相パルスにより、サーボ系の原点をサー
チする。 第5図は、このような原点サーチのために用い
られるエンコーダ1及び原点検出スイツチ2とコ
ントローラ(図示省略)との間に介在する従来の
接続回路の一例を示す。この回路は、エンコーダ
及び原点検出スイツチ側とコントローラ側を電気
的に絶縁するために用いられるフオトカプラPC
1〜PC4と、各フオトカプラの発光素子LED1
〜LED4に接続された抵抗器R1〜R4と、各
フオトカプラの受光素子LRD1〜LRD4に接続
された抵抗器R5〜R8とで構成され、各フオト
カプラの発光素子LED1〜LED4及び受光素子
LRD1〜LRD4には、各素子に接続した抵抗器
R1〜R8を介して所定電圧(例えば+5V)が
印加される。エンコーダ1及び原点検出スイツチ
2は、この接続回路の各フオトカプラの発光素子
に接続される一方、コントローラは、各フオトカ
プラの受光素子に接続される。 上記のエンコーダは、A相、B相及びZ相と称
する複数の符号化パルス信号を出力し、各出力は
第5図の接続回路のフオトカプラPC1〜PC3を
介してコントローラ側に伝達される。ここで、エ
ンコーダのA相とB相は位置計測のためのパルス
として使用され、Z相はエンコーダの1回転毎に
1パルスずつ発生する。また、原点検出スイツチ
はサーボ系の原点近傍でON/OFF状態が変化す
るように設置され、その出力はフオトカプラPC
4を介してコントローラ側に伝達される。 原点サーチの際には、通常、第7図に折線aで
示すように、原点検出スイツチがON(又はOFF)
となつた直後に検出されたZ相パルスの位置P0
を原点とする。原点検出スイツチが初めからON
の場合は、折線bで示すように、一旦OFFにな
るまで移動した後ONの状態に戻ることにより、
Z相パルスを検出する。 第6図は、従来の原点サーチ手順を示すフロー
チヤートである。まず、一定時間毎(通常サーボ
周期と同じ)に原点検出スイツチの状態をチエツ
クし、その状態に応じて目標位置Xdを増減する。
すなわち、スイツチがONであれば目標位置Xd
をΔX1増加し、スイツチがOFFであれば目標位
置XdをΔX1減らす。その後、Z相パルスを検出
したかどうかをチエツクし、検出しなければ目標
位置XdをΔX2減らし、Z相パルスを検出した時
は、位置カウンタをリセツトして原点サーチ終了
となる。最後のZ相パルスを検出するときは、原
点誤差を少なくするために、増分量ΔX2は初めの
増分量ΔX1よりずつと小さくする。誤差を±1パ
ルスの範囲に抑えたい場合は、1サイクル当りの
増分量ΔX2を1パルスとする。 [発明が解決しようとする問題点] しかしながら、このような従来方法では、原点
検出スイツチの状態変化とZ相パルスとの関係は
不明であるから、最後のZ相パルス検出は非常に
低速で行わざるを得ない。そのため、第7図に示
すように、原点検出スイツチがONとなつてから
Z相パルスを検出する(原点サーチを完了する)
までに長時間を要していた。例えば、エンコーダ
の1回転毎に発生するZ相パルスの数が4000で、
5msec毎に原点検出スイツチの状態をチエツクし
て目標位置を増減する場合、1回当りの増分量を
1パルスとすると、原点検出スイツチがONとな
つてからZ相パルスを検出するまで最長20秒近く
の時間がかかるという問題点があつた。 本発明は、かかる問題点に鑑みてなされたもの
であり、上記のような位置決め制御装置において
原点サーチに要する時間を短縮することを目的と
する。 [問題点を解決するための手段] 第1図に示すように、本発明は、1回転毎にZ
相パルス信号を発生するZ相付インクリメンタル
形エンコーダ1と、原点近傍で状態が変化するよ
うに設置された原点検出スイツチ2とを備えた、
サーボ系の位置決め制御装置において、 原点検出スイツチ2の状態が変化したとき、そ
の変化以前の状態をエンコーダ1から出力された
Z相パルス信号のエツジを検出するまで保持する
保持手段3、及び 前記サーボ系に対して、保持手段3が予め定め
た第1状態から第2状態に変化したときの位置か
ら、前記Z相パルス信号の隣接する2つのエツジ
間の間隔により決定される原点近傍位置まで高速
で変位させ、この原点近傍位置から、保持手段3
が第2状態から第1状態に変化することで検出さ
れる原点位置まで低速で変位させる信号を出力す
る制御手段4 を備えたことを特徴とする。 [作用] 本発明では、保持手段は、原点検出スイツチの
状態が変化したとき、その変化以前の状態を保持
する。この保持手段の状態は、原点検出スイツチ
の状態変化後、Z相パルス信号のエツジが検出さ
れた時に変化する。 ここで、原点は、保持手段が予め定めた第2状
態から第1状態(例えばOFFからON)に変化し
たときのZ相パルス信号のエツジの位置により検
出される。一方、Z相パルス信号のエツジ間の間
隔はエンコーダの1回転に対応しているので、原
点検出スイツチの状態変化後、Z相パルス信号の
エツジが検出されることにより、保持手段が予め
定めた第1状態から第2状態(例えばONから
OFF)に変化したとき、そのエツジの位置から
原点までの距離は、Z相パルス信号のエツジ間の
間隔に相当し、既知である。従つて、保持手段が
第1状態から第2状態に変化したときのエツジの
位置から既知の間隔だけ離れた位置が原点となる
が、実際には誤差が含まれており、それは原点近
傍位置である。 故に、制御手段は、サーボ系に対して、保持手
段が第1状態から第2状態に変化したときの位置
からZ相パルス信号のエツジ間の間隔によつて決
定される位置まで高速で変位させることにより、
原点近傍位置を迅速に検出し、この原点近傍位置
から、保持手段が第2状態から第1状態に変化す
ることで検出される原点位置まで低速で変化させ
ることにより、原点を精密に検出することができ
る。 [実施例] 第2図は、第1図に示された本発明の実施例と
して、エンコーダ1及び原点検出スイツチ2と制
御手段4との間に介在する接続回路の一例を示
す。この接続回路は、フオトカプラPC1〜PC4
と、各フオトカプラの発光素子LED1〜LED4
に接続された抵抗器R1〜R4と、各フオトカプ
ラの受光素子LRD1〜LRD4に接続された抵抗
器R5〜R8とを含む。そして、各フオトカプラ
の受光素子LED1〜LED4及び受光素子LRD1
〜LRD4に、各々の素子に接続した抵抗器R1
〜R8を介して所定電圧(例えば+5V)が印加
され、各フオトカプラの発光素子側にはエンコー
ダ及び原点検出スイツチが接続され、各フオトカ
プラの受光素子側にはコントローラが接続される
ことは、第5図の従来例と同様である。 しかしながら、この回路では、エンコーダ1の
Z相出力を伝達するフオトカプラPC3の出力側、
すなわち受光素子LRD3の出力端子は、NAND
ゲートQ1の2つの入力端子の一方に接続され、
このゲート出力部は、DQフリツプフロツプQ2
のCK端子に接続されている。また、原点検出ス
イツチ2の出力を伝達するフオトカプラPC4の
出力側、すなわち受光素子LRD4の出力端子は、
DQフリツプフロツプQ2のD端子に接続されて
いる。DQフリツプフロツプQ2のPR端子及び
CLR端子には、一定電圧Vccが印加される。更
に、電源投入時はDQフリツプフロツプQ2の状
態が不定であるため、NANDゲートQ1の2つ
の入力端子の他方に、制御手段4からパ
ルスを印加することにより、DQフリツプフロツ
プQ2の初期状態を決めるようにしている。上記
のNANDゲートQ1及びDQフリツプフロツプQ
2は、第1図の保持手段3を構成している。 従つて、エンコーダ1からのZ相パルスがフオ
トカプラPC3を介してNANDゲートQ1の入力
端子の一方に印加された時、NANDゲートQ1
から出力されるパルスが、DQフリツプフロツプ
Q2のCK端子に加えられる。一方、DQフリツ
プフロツプQ2のD端子には、原点検出スイツチ
2の状態を示す信号が印加されている。このた
め、DQフリツプフロツプQ2のQ端子には、
CK入力つまりZ相パルスのエツジで保持された
原点検出スイツチの状態(ORG1)が出力され
る。すなわち、第4図に示すように、あるZ相パ
ルスZ1と次のZ相パルスZ2との間で原点検出スイ
ツチ2の状態が変化した場合、その状態変化は、
次のZ相パルスZ2が入力された時、DQフリツプ
フロツプQ2のQ出力として現われる。 更に第4図に示すように、ORG1の状態が変化
する位置は、+方向に移動する場合(破線で示す)
と、−方向に移動する場合(実線で示す)とで、
エンコーダ1回転分(Z相パルス間の間隔)ずれ
る。本発明は、このことを利用して原点サーチの
高速化を図つたものである。 第3図は、制御手段4による原点サーチ手順を
示すフローチヤートである。制御手段4は、例え
ばマイクロコンピユータで構成される。 まず、手順の概略を説明すると、一定周期毎
(通常サーボ周期と同じ)に原点検出スイツチの
状態を示す信号(ORG1)をチエツクし、その状
態に応じて目標位置を更新する。そして、ORG1
がOFFからONに変化したときの位置(第4図の
P0)を原点とする。その際、一定周期毎の増分
量を大きくすると、原点サーチ時間は短縮される
が、誤差が大きくなる。一方、誤差を小さくする
ために増分量を少なくすると、原点サーチ時間が
長くなる。そこで、初めは高速でORG1がONか
らOFFになる点(第4図のP)をサーチし、そ
の後ORG1がOFFからONになる点(原点P0)の
近傍まで高速で移動してから、原点を精密にサー
チする。 第3図に従つて説明すると、初めに、ORG1が
0FFであれば目標位置Xdを高速(増分量ΔX1
で減算する。ORG1がONになつた時又は最初か
らONの場合は、ORG1がOFFになるまで目標位
置Xdを高速(増分量ΔX1)で加算する。その結
果、現位置はほぼ第4図の点Pとなり、この点か
ら原点P0までの距離は、前述のようにエンコー
ダ1回転分であり、既知である。しかしながら、
現位置まで高速で移動したため、誤差を含んでい
る。誤差の量は、最大1回の増分量ΔX1である。
それ故、現位置から原点P0の近傍まで高速で移
動することでサーチ時間を短縮し、ほぼ誤差の量
を残して最後の原点サーチを行う。 そのため、第3図の手順では、上記のように原
点近傍まで高速で移動する回数Nを次のように決
める。 N=(A−ΔX1)÷ΔX1 Aはエンコーダ1回転分の移動量(パルス数) この高速移動回数NをカウンタCに設定し(C
←N)、上記の高速移動すなわち目標位置Xdを高
速(増分量ΔX1)で減算する動作(Xd←Xd−
ΔX1)を1回行う毎にカウンタの値Cを1ずつ減
算し、(C←C−1)、C=0となつた時ORG1を
チエツクする。その結果、ORG1がOFFであれ
ば、目標位置Xdを低速で(増分量ΔX2)減算し、
ORG1がONになつたところで位置カウンタをリ
セツトして、原点サーチ終了となる。 このサーチ手順によれば、例えばエンコーダの
1回転毎に発生するZ相パルスの数Aが4000で、
5msec毎に原点検出スイツチの状態をチエツクす
る場合、初めの増分量ΔX1を30パルス、最後の増
分量ΔX2を1パルスとすると、 N=(4000−30)÷30≒132(回) 低速移動回数=4000−30×132=40(回) 従つて、ORG1がONからOFFに変化した時か
ら原点サーチを終了するまでの時間Tは、 T=0.005×(132+40)=0.86(秒) となり、従来の時間(約20秒)よりはるかに短
縮される。これは、第4図と第7図との対比から
も明らかである。 以上、本発明の実施例について説明したが、本
発明の構成要素、特にエンコーダ及び原点検出ス
イツチと制御手段との間に介在する保持手段は、
第2図の回路に限らず、同様の機能を有するもの
であれば、任意の回路を使用できる。 [発明の効果] 以上のように、本発明の位置決め制御装置は、
原点検出スイツチの状態が変化したとき、その変
化以前の状態をエンコーダから出力されたZ相パ
ルス信号のエツジを検出するまで保持する保持手
段と、サーボ系に対して、保持手段が予め定めた
第1状態から第2状態に変化したときの位置か
ら、Z相パルス信号の隣接する2つのエツジ間の
間隔により決定される原点近傍位置まで高速で変
位させ、この原点近傍位置から、保持手段が第2
状態から第1状態に変化する原点位置まで低速で
変位させる変位信号を出力する制御手段を具備す
るものであるから、原点サーチの際、保持手段の
状態変化に応じて原点近傍位置まで高速で変位
し、原点サーチの時間を大幅に短縮すると共に最
終的に原点を精密に検出できるという効果を奏す
る。
[Industrial Application Field] The present invention relates to a positioning control device equipped with a Z-phase incremental encoder as a position measuring device. [Prior Art] Generally, in a positioning servo system that measures position using an incremental encoder, the position when the power is turned on is not known, so it is necessary to perform an origin search. At this time, if highly accurate positioning is required, an origin detection switch and a Z-phase encoder are used, and the origin of the servo system is searched by the signal from the origin detection switch and the Z-phase pulse of the encoder. FIG. 5 shows an example of a conventional connection circuit interposed between the encoder 1 and origin detection switch 2 and a controller (not shown) used for such an origin search. This circuit is a photocoupler PC used to electrically isolate the encoder and origin detection switch side from the controller side.
1 to PC4 and each photocoupler's light emitting element LED1
~ Consists of resistors R1 to R4 connected to LED4 and resistors R5 to R8 connected to light receiving elements LRD1 to LRD4 of each photocoupler, and light emitting elements LED1 to LED4 and light receiving element of each photocoupler.
A predetermined voltage (for example, +5V) is applied to LRD1 to LRD4 via resistors R1 to R8 connected to each element. The encoder 1 and origin detection switch 2 are connected to the light emitting element of each photocoupler in this connection circuit, while the controller is connected to the light receiving element of each photocoupler. The encoder described above outputs a plurality of encoded pulse signals called A-phase, B-phase and Z-phase, and each output is transmitted to the controller side via photocouplers PC1 to PC3 of the connection circuit shown in FIG. Here, the A phase and B phase of the encoder are used as pulses for position measurement, and the Z phase generates one pulse for each rotation of the encoder. In addition, the origin detection switch is installed so that the ON/OFF state changes near the origin of the servo system, and its output is output from the photocoupler PC.
4 to the controller side. When searching for the origin, the origin detection switch is usually turned ON (or OFF) as shown by the broken line a in Figure 7.
The position of the Z-phase pulse detected immediately after P 0
is the origin. Origin detection switch is ON from the beginning
In this case, as shown by broken line b, by moving until it turns OFF and then returning to the ON state,
Detect Z-phase pulse. FIG. 6 is a flowchart showing a conventional origin search procedure. First, the state of the origin detection switch is checked at fixed time intervals (same as the normal servo cycle), and the target position Xd is increased or decreased depending on the state.
In other words, if the switch is ON, the target position
is increased by ΔX 1 , and if the switch is OFF, the target position Xd is decreased by ΔX 1 . Thereafter, it is checked whether or not a Z-phase pulse has been detected. If not, the target position Xd is decreased by ΔX2 , and when a Z-phase pulse is detected, the position counter is reset and the origin search is completed. When detecting the last Z-phase pulse, the increment amount ΔX 2 is made smaller than the first increment amount ΔX 1 in order to reduce the origin error. If it is desired to suppress the error within the range of ±1 pulse, the increment amount ΔX 2 per cycle is set to 1 pulse. [Problems to be Solved by the Invention] However, in such a conventional method, since the relationship between the state change of the origin detection switch and the Z-phase pulse is unknown, the final Z-phase pulse detection is performed at a very low speed. I have no choice but to. Therefore, as shown in Figure 7, the Z-phase pulse is detected after the origin detection switch is turned ON (the origin search is completed).
It took a long time. For example, if the number of Z-phase pulses generated per encoder rotation is 4000,
When increasing or decreasing the target position by checking the state of the home detection switch every 5 msec, assuming that the increment amount per time is 1 pulse, it will take up to 20 seconds from the time the home detection switch is turned on until the Z-phase pulse is detected. There was a problem that it took a long time to get there. The present invention has been made in view of such problems, and an object of the present invention is to shorten the time required for origin search in a positioning control device as described above. [Means for solving the problem] As shown in FIG.
Equipped with a Z-phase incremental encoder 1 that generates a phase pulse signal, and an origin detection switch 2 installed so that the state changes near the origin,
In a servo system positioning control device, when the state of the origin detection switch 2 changes, holding means 3 holds the state before the change until an edge of the Z-phase pulse signal output from the encoder 1 is detected, and the servo The system is moved at high speed from the position when the holding means 3 changes from the predetermined first state to the second state to a position near the origin determined by the interval between two adjacent edges of the Z-phase pulse signal. from this position near the origin, the holding means 3
It is characterized by comprising a control means 4 which outputs a signal for displacing at a low speed to the origin position detected by changing from the second state to the first state. [Operation] In the present invention, when the state of the origin detection switch changes, the holding means holds the state before the change. The state of this holding means changes when the edge of the Z-phase pulse signal is detected after the state of the origin detection switch changes. Here, the origin is detected by the position of the edge of the Z-phase pulse signal when the holding means changes from a predetermined second state to a first state (for example, from OFF to ON). On the other hand, since the interval between the edges of the Z-phase pulse signal corresponds to one rotation of the encoder, the edge of the Z-phase pulse signal is detected after the state of the origin detection switch changes, and the holding means From the first state to the second state (for example, from ON to
OFF), the distance from the edge position to the origin corresponds to the interval between the edges of the Z-phase pulse signal and is known. Therefore, the origin is a position that is a known distance away from the edge position when the holding means changes from the first state to the second state, but in reality there is an error, and it is a position near the origin. be. Therefore, the control means causes the servo system to displace at high speed from the position when the holding means changes from the first state to the second state to the position determined by the interval between the edges of the Z-phase pulse signal. By this,
Precisely detecting the origin by quickly detecting a position near the origin and changing the position at a low speed from the position near the origin to the origin position detected when the holding means changes from the second state to the first state. I can do it. [Embodiment] FIG. 2 shows an example of a connection circuit interposed between the encoder 1, origin detection switch 2, and control means 4 as an embodiment of the present invention shown in FIG. This connection circuit consists of photocouplers PC1 to PC4.
and the light emitting elements LED1 to LED4 of each photocoupler
and resistors R5 to R8 connected to the light receiving elements LRD1 to LRD4 of each photocoupler. Then, the light receiving elements LED1 to LED4 and the light receiving element LRD1 of each photocoupler
~LRD4, resistor R1 connected to each element
~A predetermined voltage (for example, +5V) is applied via R8, an encoder and an origin detection switch are connected to the light emitting element side of each photo coupler, and a controller is connected to the light receiving element side of each photo coupler. This is the same as the conventional example shown in the figure. However, in this circuit, the output side of the photocoupler PC3, which transmits the Z-phase output of the encoder 1,
In other words, the output terminal of the light receiving element LRD3 is NAND
connected to one of the two input terminals of gate Q1,
This gate output section is connected to the DQ flip-flop Q2.
is connected to the CK terminal of In addition, the output side of the photocoupler PC4 that transmits the output of the origin detection switch 2, that is, the output terminal of the light receiving element LRD4,
Connected to the D terminal of the DQ flip-flop Q2. PR terminal of DQ flip-flop Q2 and
A constant voltage Vcc is applied to the CLR terminal. Furthermore, since the state of the DQ flip-flop Q2 is undefined when the power is turned on, the initial state of the DQ flip-flop Q2 is determined by applying a pulse from the control means 4 to the other of the two input terminals of the NAND gate Q1. ing. The above NAND gate Q1 and DQ flip-flop Q
2 constitutes the holding means 3 shown in FIG. Therefore, when the Z-phase pulse from encoder 1 is applied to one of the input terminals of NAND gate Q1 via photocoupler PC3, NAND gate Q1
A pulse output from the DQ flip-flop Q2 is applied to the CK terminal of the DQ flip-flop Q2. On the other hand, a signal indicating the state of the origin detection switch 2 is applied to the D terminal of the DQ flip-flop Q2. Therefore, the Q terminal of DQ flip-flop Q2 has
The state of the origin detection switch (ORG1) held at the edge of the CK input, that is, the Z-phase pulse, is output. That is, as shown in FIG. 4, when the state of the origin detection switch 2 changes between one Z-phase pulse Z 1 and the next Z-phase pulse Z 2 , the state change is as follows.
When the next Z-phase pulse Z2 is input, it appears as the Q output of the DQ flip-flop Q2. Furthermore, as shown in Figure 4, the position where the state of ORG1 changes is when moving in the + direction (indicated by a broken line)
and when moving in the - direction (shown by the solid line),
The encoder shifts by one rotation (interval between Z-phase pulses). The present invention utilizes this fact to speed up the origin search. FIG. 3 is a flowchart showing the origin search procedure by the control means 4. The control means 4 is composed of, for example, a microcomputer. First, to explain the outline of the procedure, the signal (ORG1) indicating the state of the origin detection switch is checked every fixed period (same as the normal servo period), and the target position is updated according to the state. And ORG1
The position when changes from OFF to ON (Fig. 4)
P 0 ) is the origin. At this time, if the increment amount for each fixed period is increased, the origin search time will be shortened, but the error will become larger. On the other hand, if the increment amount is reduced in order to reduce the error, the origin search time becomes longer. Therefore, first search at high speed for the point where ORG1 changes from ON to OFF (P in Figure 4), then move at high speed to the vicinity of the point where ORG1 changes from OFF to ON (origin P 0 ), and then Search precisely. To explain according to Figure 3, first, ORG1 is
If it is 0FF, move the target position Xd at high speed (increment amount ΔX 1 )
Subtract with . When ORG1 turns ON or if it is ON from the beginning, the target position Xd is added at high speed (increment amount ΔX 1 ) until ORG1 turns OFF. As a result, the current position is approximately the point P in FIG. 4, and the distance from this point to the origin P 0 is one revolution of the encoder, as described above, and is known. however,
It contains errors because it moved at high speed to the current position. The amount of error is a maximum of one increment amount ΔX 1 .
Therefore, the search time is shortened by moving from the current position to the vicinity of the origin P 0 at high speed, and the final origin search is performed with approximately the amount of error remaining. Therefore, in the procedure shown in FIG. 3, the number of times N to move at high speed to the vicinity of the origin as described above is determined as follows. N=(A-ΔX 1 )÷ΔX 1 A is the amount of movement for one rotation of the encoder (number of pulses) Set this number of high-speed movements N to counter C (C
←N), the above high-speed movement, that is, the operation of subtracting the target position Xd at high speed (increment amount ΔX 1 ) (Xd←Xd−
Each time ΔX 1 ) is performed, the counter value C is decremented by 1, and when (C←C−1) and C=0, ORG1 is checked. As a result, if ORG1 is OFF, the target position Xd is subtracted at low speed (increment amount ΔX 2 ),
When ORG1 turns ON, the position counter is reset and the origin search is completed. According to this search procedure, for example, if the number A of Z-phase pulses generated per encoder rotation is 4000,
When checking the state of the origin detection switch every 5 msec, if the first increment ΔX 1 is 30 pulses and the last increment ΔX 2 is 1 pulse, then N = (4000-30) ÷ 30 ≒ 132 (times) Low speed Number of movements = 4000 - 30 x 132 = 40 (times) Therefore, the time T from when ORG1 changes from ON to OFF until the origin search is completed is T = 0.005 x (132 + 40) = 0.86 (seconds). , much shorter than the conventional time (about 20 seconds). This is also clear from the comparison between FIG. 4 and FIG. 7. The embodiments of the present invention have been described above, but the constituent elements of the present invention, particularly the holding means interposed between the encoder and origin detection switch and the control means, are as follows:
Not limited to the circuit shown in FIG. 2, any circuit can be used as long as it has a similar function. [Effects of the Invention] As described above, the positioning control device of the present invention has the following effects:
When the state of the origin detection switch changes, the holding means holds the state before the change until the edge of the Z-phase pulse signal output from the encoder is detected, and the holding means holds a predetermined state for the servo system. The holding means moves at high speed from the position when the first state changes to the second state to a position near the origin determined by the interval between two adjacent edges of the Z-phase pulse signal, and from this position near the origin, the holding means 2
Since the device is equipped with a control means that outputs a displacement signal for displacing at a low speed to the origin position where the state changes from the state to the first state, when searching for the origin, the displacement is performed at high speed to a position near the origin in accordance with the change in the state of the holding means. This has the effect of greatly shortening the time required to search for the origin, and ultimately enabling accurate detection of the origin.

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

第1図は本発明の構成図、第2図は実施例の接
続回路を示す図、第3図は実施例の原点サーチ手
順を示すフローチヤート、第4図は実施例による
原点サーチの位置と時間の関係を示す図、第5図
は従来例の接続回路を示す図、第6図は従来例の
原点サーチ手順を示すフローチヤート、第7図は
従来例による原点サーチの位置と時間の関係を示
す図である。 1……原点検出スイツチ、2……エンコーダ、
3……保持手段、4……制御手段、PC1〜PC4
……フオトカプラ、R1〜R8……抵抗器、Q1
……NANDゲート、Q2……DQフリツプフロツ
プ。
Fig. 1 is a configuration diagram of the present invention, Fig. 2 is a diagram showing a connection circuit of an embodiment, Fig. 3 is a flow chart showing the origin search procedure of the embodiment, and Fig. 4 is a diagram showing the position of the origin search according to the embodiment. Fig. 5 is a diagram showing the connection circuit of the conventional example, Fig. 6 is a flowchart showing the origin search procedure of the conventional example, and Fig. 7 is the relationship between the position and time of the origin search according to the conventional example. FIG. 1...Origin detection switch, 2...Encoder,
3... Holding means, 4... Control means, PC1 to PC4
...Photocoupler, R1 to R8...Resistor, Q1
...NAND gate, Q2...DQ flip-flop.

Claims (1)

【特許請求の範囲】 1 1回転毎にZ相パルス信号を発生するZ相付
インクリメンタル形エンコーダと、原点近傍で状
態が変化するように設置された原点検出スイツチ
とを備えた、サーボ系の位置決め制御装置におい
て、 前記原点検出スイツチの状態が変化したとき、
その変化以前の状態を、前記エンコーダから出力
されたZ相パルス信号のエツジを検出するまで、
保持する保持手段、及び 前記サーボ系に対して、前記保持手段が予め定
めた第1状態から第2状態に変化したときの位置
から、前記Z相パルス信号の隣接する2つのエツ
ジ間の間隔により決定される原点近傍位置まで高
速で変位させ、該原点近傍位置から、前記保持手
段が前記第2状態から第1状態に変化することで
検出される原点位置まで低速で変位させる信号を
出力する制御手段 を具備することを特徴とする位置決め制御装置。
[Claims] 1. Positioning of a servo system equipped with a Z-phase incremental encoder that generates a Z-phase pulse signal every rotation, and an origin detection switch installed so that the state changes near the origin. In the control device, when the state of the origin detection switch changes,
The state before the change is maintained until the edge of the Z-phase pulse signal output from the encoder is detected.
and a holding means for holding the servo system, from the position when the holding means changes from the predetermined first state to the second state, depending on the interval between two adjacent edges of the Z-phase pulse signal. Control for outputting a signal for displacing at high speed to a determined position near the origin and displacing at low speed from the position near the origin to an origin position detected when the holding means changes from the second state to the first state. A positioning control device comprising: means.
JP21913787A 1987-09-03 1987-09-03 Controlling apparatus for positioning Granted JPS6463808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21913787A JPS6463808A (en) 1987-09-03 1987-09-03 Controlling apparatus for positioning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21913787A JPS6463808A (en) 1987-09-03 1987-09-03 Controlling apparatus for positioning

Publications (2)

Publication Number Publication Date
JPS6463808A JPS6463808A (en) 1989-03-09
JPH0528841B2 true JPH0528841B2 (en) 1993-04-27

Family

ID=16730809

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21913787A Granted JPS6463808A (en) 1987-09-03 1987-09-03 Controlling apparatus for positioning

Country Status (1)

Country Link
JP (1) JPS6463808A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5642807A (en) * 1979-09-17 1981-04-21 Komatsu Ltd Original point resetting method of nc machine tool
JPS5698725A (en) * 1979-08-09 1981-08-08 Mitsubishi Electric Corp Strip end detector

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5698725A (en) * 1979-08-09 1981-08-08 Mitsubishi Electric Corp Strip end detector
JPS5642807A (en) * 1979-09-17 1981-04-21 Komatsu Ltd Original point resetting method of nc machine tool

Also Published As

Publication number Publication date
JPS6463808A (en) 1989-03-09

Similar Documents

Publication Publication Date Title
US4551676A (en) Pulse coder using magnetoresistance elements having an improved z-phase signal pattern
US5347277A (en) Dual phase resolver to digital converter
US4712106A (en) Phase analog encoding system with compensation
JPS6138409A (en) Measuring device for position of numerical control machine tool, etc.
US4678910A (en) Reference position-detecting device for photoelectric encoder
US3585376A (en) Positioning system
JPH0528841B2 (en)
JPH0663723B2 (en) Valve displacement detector
US4897647A (en) Method for absolute position detection and an apparatus therefore
US5493290A (en) Signal processing system for absolute-value sensors having periodic structures, particularly for position and angle sensors
US3764902A (en) Phasemeter employing means for preventing errors in the phase reading produced by noise
JPS64612Y2 (en)
JPH0233127Y2 (en)
JP2742829B2 (en) Origin circuit
KR920009695B1 (en) Rotary sensor apparatus
RU2042932C1 (en) Device for measuring temperature
JPH0259924B2 (en)
KR880000673B1 (en) Controlling circuit of stepping motor
JPH0233122Y2 (en)
JPH0336884Y2 (en)
SU830319A2 (en) Device for testing stepping motors
JPS6221935Y2 (en)
KR940005587Y1 (en) Zero point setting device of nc
JPH0469079A (en) Apparatus for sensing motor speed
SU1377829A1 (en) Device for checking parameters