JPS59106006A - Increment-type detector of driving quantity - Google Patents

Increment-type detector of driving quantity

Info

Publication number
JPS59106006A
JPS59106006A JP21727482A JP21727482A JPS59106006A JP S59106006 A JPS59106006 A JP S59106006A JP 21727482 A JP21727482 A JP 21727482A JP 21727482 A JP21727482 A JP 21727482A JP S59106006 A JPS59106006 A JP S59106006A
Authority
JP
Japan
Prior art keywords
drive amount
relative
counter
count
relative drive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP21727482A
Other languages
Japanese (ja)
Inventor
Tadashi Tsukiyama
築山 直史
Toshitaka Kuno
久野 敏孝
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.)
Toyota Central R&D Labs Inc
Original Assignee
Toyota Central R&D Labs Inc
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 Toyota Central R&D Labs Inc filed Critical Toyota Central R&D Labs Inc
Priority to JP21727482A priority Critical patent/JPS59106006A/en
Publication of JPS59106006A publication Critical patent/JPS59106006A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • G05B19/21Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path using an incremental digital measuring device
    • G05B19/23Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path using an incremental digital measuring device for point-to-point control
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/41Servomotor, servo controller till figures
    • G05B2219/41122Mechanical vibrations in servo, antihunt also safety, stray pulses, jitter

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position Or Direction (AREA)

Abstract

PURPOSE:To detect an accurate driving quantity even if a count miss occurs in a counter which counts position detection pulses by providing a count error correcting circuit. CONSTITUTION:A microcomputer includes a subtractor 12 and is provided with a count error correcting circuit 28. This count error correcting circuit 28 forecasts a relative driving quantity in the next driving position, which is a prescribed length apart from a current driving position, on a basis of a relative driving quantity in the current driving position of an increment-type encoder 20. Simultaneously, the circuit 28 attains the difference between the forecasted relative driving quantity and the relative driving quantity in the next driving position to calculate an error value corresponding to count miss components of a counter 24, and the relative driving quantity in the next driving position is corrected with this error value. Thus, an accurate driving quantity is detected even if a count miss occurs in the counter 24 which counts position detection pulses.

Description

【発明の詳細な説明】 本発明は、モータなどの駆動量をインクリメント型エン
コーダを用いて検出するインクリメント型駆動量検出装
置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an incremental drive amount detection device that detects the drive amount of a motor or the like using an incremental encoder.

モータのサーボ制御がデジタル信号によるフィードバッ
クループにて行なわれる場合、一般にモータの駆動量は
エンコーダにて検出される。
When servo control of a motor is performed using a feedback loop using digital signals, the amount of drive of the motor is generally detected by an encoder.

このエンコーダとしては、モータなどの駆動量に直接対
応する位置検出パルスを出力することが可能なアブソリ
ュートタイプのものが装置を構成する上で好適であるが
、アブソリュー、ト型エンコーダは高価であるので、装
置を安価に製造する場合に不都合である。
As this encoder, an absolute type encoder that can output a position detection pulse that directly corresponds to the amount of drive of a motor etc. is suitable for configuring the device, but absolute and T type encoders are expensive. , which is inconvenient when manufacturing the device at low cost.

そこで従来より以下の様にインクリメント型エンコーダ
が駆動量の検出に用いられている。
Therefore, an incremental encoder has conventionally been used to detect the amount of drive as described below.

第1図において、゛位置指令発生器1oの位置指令10
0(目標値)が減算器12の一方の入力に供給されてお
り、減算器12から出力された偏差102はAD変換器
14にてアナログ化されてドライバ16に入力されてい
る。そしてドライバ16から出力された駆動電流104
はサーボモータ18に供給されており、サーボモータ1
8はこの駆動電流104にてロボットのアームなどを駆
動できる。
In FIG. 1, the position command 10 of the position command generator 1o is
0 (target value) is supplied to one input of the subtracter 12, and the deviation 102 output from the subtracter 12 is converted into an analog by the AD converter 14 and input to the driver 16. And the drive current 104 output from the driver 16
is supplied to the servo motor 18, and the servo motor 1
8 can drive the arm of the robot with this drive current 104.

ここでこの装置では前述した様に、上記サーボモータ1
8の駆動量検出のためにインクリメント型エンコーダ2
0が用いられている。ここではインクリメント型エンコ
ーダ20はロータリ式のもので、サーボモータ18によ
って回動されており、回動されることによりサーボモー
タ18の相対駆動量に相当するパルス数の検出パルス1
06を出力できる。すなわち、インクリメント型エンコ
ーダ20は回動されることによりそのときの回動位置か
ら新たな回動位置までの角度に相当する、言換えればそ
の、ときの回動位置から新たな回動位置までのサーボモ
ータ18の駆動量に相当するパルス数の検出パルス10
6を出力できる。
Here, in this device, as mentioned above, the servo motor 1
Incremental encoder 2 to detect the drive amount of 8.
0 is used. Here, the incremental encoder 20 is of a rotary type, and is rotated by the servo motor 18, and as it is rotated, the number of detection pulses corresponding to the relative drive amount of the servo motor 18 is generated.
06 can be output. That is, when the incremental encoder 20 is rotated, it corresponds to the angle from the current rotation position to the new rotation position, in other words, the angle from the current rotation position to the new rotation position. Detection pulse 10 of the number of pulses corresponding to the drive amount of the servo motor 18
6 can be output.

そして本装置のインクリメント型エンコーダ20は互い
に90度の位相差を有するa相、b相の検出パルス10
6−1.1.06−2を出力でき。
The incremental encoder 20 of this device uses detection pulses 10 of a phase and b phase that have a phase difference of 90 degrees from each other.
6-1.1.06-2 can be output.

これら検出パルス106−1.106−2は方向判別器
22に供給されている。
These detection pulses 106-1 and 106-2 are supplied to the direction discriminator 22.

上記方向判別器22はこれら検出パルス106−1.1
06−2によりサーボモータ18の回動力向を判別する
ことができ、サーボモータ18が一方向に回動されたと
きにパルス108−1をカウンタ24のUPカウント入
力に、そして他方向に回動されたときJこパルス108
−2をカウンタ24のDOWNカウント入力に各々出力
できる。
The direction discriminator 22 detects these detection pulses 106-1.1.
06-2, it is possible to determine the rotational direction of the servo motor 18, and when the servo motor 18 is rotated in one direction, the pulse 108-1 is sent to the UP count input of the counter 24, and when the servo motor 18 is rotated in the other direction. J pulse 108 when
-2 can be output to the DOWN count input of the counter 24, respectively.

このカウンタ24はインクリメント型エンコーダ20が
サーボモータ18の原点に対、応する原点位置にあると
きに子のカウント値がゼロにリセットされており、した
がってパルス108−1のUPカウントを行ない、ある
いはパルスI Q8−2のDOWNカウントを行なうと
、そ−のカウント値は原点位置から回動位置までのサー
ボモータ18の相対駆動量に相当す葛ものとなる。
This counter 24 has a child count value reset to zero when the incremental encoder 20 is at the origin position corresponding to the origin of the servo motor 18, and therefore performs an UP count of the pulse 108-1, or When the DOWN count of IQ8-2 is performed, the count value becomes a value corresponding to the relative drive amount of the servo motor 18 from the origin position to the rotation position.

上記カウンタ24から出力された相対駆動量l工0は前
記減算器12の他方の入力に供給されている。したがっ
て減算器12は位置指令lOOと相対駆動量110との
比較を行なって位置指令100に対する相対駆動量11
0の偏差102を出力できる。
The relative drive amount 10 output from the counter 24 is supplied to the other input of the subtracter 12. Therefore, the subtracter 12 compares the position command lOO with the relative drive amount 110 and calculates the relative drive amount 11 with respect to the position command 100.
A deviation 102 of 0 can be output.

第1図の従来装置は以上の構成から成り、以下その作用
を説明する。
The conventional device shown in FIG. 1 has the above configuration, and its operation will be explained below.

木・装置が始動される前にサーボモータ18の原点とイ
ンクリメント型エンコーダ20の原点位置との対応が図
られ、またこのときカウンタ24の相対駆動量110が
クリアされる。
Before the device is started, the origin of the servo motor 18 and the origin of the incremental encoder 20 are matched, and at this time, the relative drive amount 110 of the counter 24 is cleared.

その後、本装置が動作を開始すると、位置指令発生器1
0から減算器12に位置指令100が供給され、最初は
サーボモータ18、インクリメント型エンコーダ20が
原点、原点位置にそれぞれあるので相対駆動量110は
ゼロであり、したがって偏差102は位置指令100と
同値となる。
After that, when this device starts operating, the position command generator 1
A position command 100 is supplied from 0 to the subtractor 12, and initially the servo motor 18 and the incremental encoder 20 are at the origin and the origin position, respectively, so the relative drive amount 110 is zero, so the deviation 102 is the same value as the position command 100. becomes.

この様にして偏差102に応じた駆動電流104がサー
ボモータ18に供給されると、サーボモータ18が回動
してその回動量、すなわち駆動量に対応する検出パルス
106−1または106−2がインクリメント型エンコ
ーダ20から出力される。
When the drive current 104 corresponding to the deviation 102 is supplied to the servo motor 18 in this way, the servo motor 18 rotates and the detection pulse 106-1 or 106-2 corresponding to the amount of rotation, that is, the amount of drive is generated. It is output from the incremental encoder 20.

そして方向判別器22は検出パルス106−1.106
−2にてサーボモータ18の回動方向を判別し、その回
動方向に対応したパルス108−1または108−2を
出力する。
Then, the direction discriminator 22 detects the detection pulse 106-1.106
-2, the rotation direction of the servo motor 18 is determined, and a pulse 108-1 or 108-2 corresponding to the rotation direction is output.

このときカウンタ24はパルス108−1が供給される
とその相対駆動量110をカウントアツプし、パルス−
108−2が供給されるとその相対駆動量110をカウ
ントダウンする。
At this time, when the pulse 108-1 is supplied, the counter 24 counts up the relative drive amount 110, and
When 108-2 is supplied, the relative drive amount 110 is counted down.

上記相対駆動量110は位置指令1.00と直ちに一致
することはなく、したがって減算器12かうゼロでない
偏差102が出力されて相対駆動量110が位置指令1
00に一致する様にサーボモータ18がフィードバック
制御される。
The relative drive amount 110 does not immediately match the position command 1.00, so the subtractor 12 outputs this non-zero deviation 102, and the relative drive amount 110 changes to the position command 1.00.
The servo motor 18 is feedback-controlled so as to coincide with 00.

以上説明した様にこの種の装置は、モータにて駆動され
るインクリメント型エンコーダの位置検出パルスがカウ
ンタでカウントされてモータの相対駆動量が求められる
様に構成されており、該相対駆動量の目標値に対する偏
差にてモータの駆動制御が行なわれて、モータの相対駆
動量が目標値に一致する様にフィードバック制御が行な
われる。
As explained above, this type of device is configured so that the position detection pulses of the incremental encoder driven by the motor are counted by a counter to determine the relative drive amount of the motor. Drive control of the motor is performed based on the deviation from the target value, and feedback control is performed so that the relative drive amount of the motor matches the target value.

しかしながら従来においては、ノイズその他の原因によ
りカウンタ24でカウントミスが発生すると、相対駆動
量110に誤差が含まれる様になり、そのカウントミス
による誤差がカウンタ24によって蓄積されるので、装
置が長時間運転されるとサーボモータ18の相対駆動量
が位置指令100に正確に対応しなくなる、という問題
が生じていた。
However, in the past, when a counting error occurs in the counter 24 due to noise or other causes, the relative drive amount 110 includes an error, and the error due to the counting error is accumulated by the counter 24, so that the device does not operate for a long time. When the servo motor 18 is operated, a problem arises in that the relative drive amount of the servo motor 18 no longer corresponds accurately to the position command 100.

本発明は上記従来の課題に鑑みて為されたものであり、
その目的は、位置検出パルスをカウントするカウンタに
カウントミスが生じても正確な駆動量を検出できるイン
クリメント型駆動量検出装置を提供することにある。
The present invention has been made in view of the above-mentioned conventional problems,
The purpose is to provide an incremental drive amount detection device that can accurately detect the drive amount even if a counting error occurs in a counter that counts position detection pulses.

上記目的を達成するために、本発明は、インクリメント
型エンコーダの位置検出パルスがカウンタでカウントさ
れて相対駆動量が求められるインクリメント型駆動量検
出装置において、インクリメント型エンコーダの現在駆
動位置での相対駆動量に基いて現在駆動位置から所定間
隔離れた次駆動位置での相対駆動量を予測するとともに
予測相対駆動量と次駆動位置での相対駆動量との差を求
めて前記カウンタのカウントミスに相当する誤差値を算
出し、誤差値にて次駆動位置での相対駆動量を補正する
カウント誤差補正回路が設けられた、ことを特徴とする
In order to achieve the above object, the present invention provides an incremental drive amount detection device in which position detection pulses of an incremental encoder are counted by a counter to obtain a relative drive amount. Based on the amount, the relative drive amount at the next drive position separated by a predetermined interval from the current drive position is predicted, and the difference between the predicted relative drive amount and the relative drive amount at the next drive position is calculated, which corresponds to the counting error of the counter. The present invention is characterized in that it is provided with a count error correction circuit that calculates an error value and uses the error value to correct the relative drive amount at the next drive position.

以下図面に基いて本発明にかかわるインクリメント型駆
動量−検出装置の好適な実施例を説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of an incremental drive amount detection device according to the present invention will be described below with reference to the drawings.

第2図には本発明にかかわるインクリメント型駆動量検
出装置の好適な実施例のブロック構成が示−されており
、本実施例の装置は前述した従来の装置と同様に位置指
令発生器10、AD変換器14、ドライバ16、サーボ
モータ18、インクリメン)5エンコーダ20、方向判
別器22、カウンタ24を有している。
FIG. 2 shows a block configuration of a preferred embodiment of the incremental drive amount detection device according to the present invention, and the device of this embodiment has a position command generator 10, a position command generator 10, It has an AD converter 14, a driver 16, a servo motor 18, an incremental encoder 20, a direction discriminator 22, and a counter 24.

そして本装置はマイクロコンピュータ26を有しており
、第2図ではマイクロコンピュータ26が機能ブロック
にて示されている。
This apparatus has a microcomputer 26, and the microcomputer 26 is shown in functional blocks in FIG.

第2図において、マイクロコンピュータ26には減算器
12が含まれ、したがって本装置は前記従来例と同様に
動作することができる様に構成されている。
In FIG. 2, the microcomputer 26 includes the subtracter 12, so that the present device is configured to operate in the same manner as the conventional example.

またマイクロコンピュータ26は以下のカウント誤差補
正回路28を有している。
The microcomputer 26 also has a count error correction circuit 28 as described below.

カウント誤差補正回路28にはインクリメント型エンコ
ーダ2oから出力されたC相の基準検出パルス106−
3が供給されるシーケンサ3oが設けられている。この
検出パルス106−3はインクリメント型エンコーダ2
oが原点位置から整数回転する毎に出力され、シーケン
サ3oはこの検出パルス106−3に同期して制御信号
112−1.112−2.112−3.112−4を出
力できる。
The count error correction circuit 28 receives the C-phase reference detection pulse 106- output from the incremental encoder 2o.
A sequencer 3o to which 3 is supplied is provided. This detection pulse 106-3 is detected by the incremental encoder 2.
The sequencer 3o can output control signals 112-1.112-2.112-3.112-4 in synchronization with this detection pulse 106-3.

また前記相対駆動量110がレジスタ32Aに供給され
ており、レジスタ32Aは制御信号112−1により最
新の検出パルス106−3発生時における相対駆動量1
1oを保持できる。そしてレジスタ32Aから出方され
た相対駆動量110がレジスタ32Bに供給されており
、レジスタ32Bは制御信号112−2により前回の検
出パルス106−3発生時における相対駆動量110を
保持できる。
Further, the relative drive amount 110 is supplied to the register 32A, and the register 32A stores the relative drive amount 1 at the time of the latest detection pulse 106-3 according to the control signal 112-1.
Can hold 1o. The relative drive amount 110 output from the register 32A is supplied to the register 32B, and the register 32B can hold the relative drive amount 110 at the time of the previous detection pulse 106-3 generation by the control signal 112-2.

上記レジスタ32Aの最新相対駆動量110は減算器3
4に、またレジスタ32Bの前回相対駆動量110は加
算器36に各々供給されている。
The latest relative drive amount 110 of the register 32A is the subtracter 3
4 and the previous relative drive amount 110 of the register 32B are respectively supplied to the adder 36.

さらにカウント誤差補正回路28にはシーケンサ30の
制御信号112−4により+、N、O,−N(Nはイン
クリメント型エンコーダ20の1回転中に発生する検出
パルス106−1または検出パルス106−2のパルス
数に対応する値)のビット1ハターン114を出力する
ビットパターン発生器38が設けられており、このビッ
トパターン114は上記加算器36に供給されている。
Further, the count error correction circuit 28 is supplied with +, N, O, -N (N is the detection pulse 106-1 or the detection pulse 106-2 generated during one rotation of the incremental encoder 20) by the control signal 112-4 of the sequencer 30. A bit pattern generator 38 is provided which outputs a bit 1 pattern 114 (value corresponding to the number of pulses), and this bit pattern 114 is supplied to the adder 36.

上記加算器36はこのビットパターン114と前回相対
駆動M110とを加算して次に検出パルス106−3が
発生する時の次回予測相対駆動量116を予測できる。
The adder 36 can add this bit pattern 114 and the previous relative drive M110 to predict the next predicted relative drive amount 116 when the detection pulse 106-3 is generated next.

また減算器34は加算器36から出力された予測相対駆
動量116をレジスタ32Aから出力された最新相対駆
動量110より減算してそれらの差、すなわち前記カウ
ンタ24のカウントミス分に相当する1回転誤差118
を求めることができる。
Further, the subtracter 34 subtracts the predicted relative drive amount 116 output from the adder 36 from the latest relative drive amount 110 output from the register 32A, and calculates the difference thereof, that is, one revolution corresponding to the count error of the counter 24. Error 118
can be found.

上記1回転誤差118はインクリメント型エンコーダ2
0の1回転毎に生ずるもので−あるため、積算器40に
供給されて積算されている。なお、積算器40は前記制
御信号112−4に従って1回転誤差118を積算して
これを保持できる。
The above-mentioned one-rotation error 118 is generated by the incremental encoder 2.
Since it occurs every rotation of 0, it is supplied to an integrator 40 and integrated. Note that the integrator 40 can integrate and hold the one-rotation error 118 according to the control signal 112-4.

以上の様にカウント誤差補正回路28は、サーボモータ
18の現在駆動位置での相対駆動量に基いて現在駆動位
置から所定間隔離れた次駆動位置での相対駆動量を予測
するとともに予測相対駆動量と次駆動位置での相対駆動
量との差を求めて前記カウンタ24のカウントミス分に
相当する誤差値を算出する、ことができる様に構成され
ている。
As described above, the count error correction circuit 28 predicts the relative drive amount at the next drive position separated by a predetermined interval from the current drive position based on the relative drive amount at the current drive position of the servo motor 18, and also predicts the predicted relative drive amount. The configuration is such that the error value corresponding to the count error of the counter 24 can be calculated by determining the difference between the relative drive amount at the next drive position and the relative drive amount at the next drive position.

またカウント誤差補正回路28は、この様にして積算器
40で得られた総置差120を前記カウンタ24の相対
駆動量110に加算する加算器42を含み、従一つで、
次駆動位置での相対駆動量を補正することができる様に
構成されている。
Further, the count error correction circuit 28 includes an adder 42 that adds the total position difference 120 obtained by the integrator 40 to the relative drive amount 110 of the counter 24,
It is configured so that the relative drive amount at the next drive position can be corrected.

なおりラント誤差補正回路28には、1回転誤差118
が補正可能な範囲内にあるか否かを判別する判別器44
が設けられており、その判別信号122は前記シーケン
サ30に供給されている。
The naori runt error correction circuit 28 has a one-rotation error 118.
A discriminator 44 that determines whether or not is within a correctable range.
is provided, and its discrimination signal 122 is supplied to the sequencer 30.

本発明にかかわる装置の好適な実施例は以上の構成から
成り、以下その作用を説明する。
A preferred embodiment of the device according to the present invention has the above configuration, and its operation will be explained below.

位置指令発生器10から位置指令1.00が出力される
とサーボモータ18が駆動され、これにより20から検
出パルス106−1.106−2が出力されてカウンタ
24から相対駆動量110が減算器12に与えられ、減
算器12の偏差102によりサーポモ・−タ18が位置
指令100を目標にフィードバック制御される。
When the position command generator 10 outputs a position command of 1.00, the servo motor 18 is driven, and the detection pulse 106-1.106-2 is output from the position command generator 10, and the relative drive amount 110 is output from the counter 24 as a subtracter. 12, and the servo motor 18 is feedback-controlled with the position command 100 as the target by the deviation 102 of the subtractor 12.

上記の制御が行なわれているときに、雑音その他の原因
によりカウンタ24にカウントミスが生じると、カウン
ト誤差補正回路28は以下の様にこれを補正する。
If a count error occurs in the counter 24 due to noise or other causes while the above control is being performed, the count error correction circuit 28 corrects it as follows.

第3図には本装置のフローチャートが示されており、ま
ずシーケンサ30にC相基準検出パルス1’ 06−3
が供給されると割り込みが生じてステップ200でカウ
ンタ24の相対駆動量110がレジスタ32Aにストア
される。
FIG. 3 shows a flowchart of this device. First, a C-phase reference detection pulse 1' 06-3 is sent to the sequencer 30.
When is supplied, an interrupt occurs and in step 200, the relative drive amount 110 of the counter 24 is stored in the register 32A.

次のステップ202ではビットパターン発生器38から
ビットパターン114が出力される。このビットパター
ン発生器38は制御信号112−3により、インクリメ
ント型エンコーダ20d(カウントアツプ方向に回転し
た場合には十Nを、またカウントダウン方向に回転した
場合には−Nを、そして検出パルス1.06−3の発生
後に再び同一の位置に戻った場合にはOをビットパター
ン114として出力する。
In the next step 202, the bit pattern generator 38 outputs the bit pattern 114. This bit pattern generator 38 is controlled by a control signal 112-3 to output a detection pulse 1. If it returns to the same position again after the occurrence of 06-3, O is output as the bit pattern 114.

そしてステップ204では、加算器36でレジスタ32
Bの相対駆動量110とビットパターン発生器38のビ
ットパターン114とが加算されて予測相対駆動量11
6が求められる。すなわち、検出パルス10B−3の発
生する旧位置と現位置とにおけるカウンタ24の両相対
駆動量110の差が必ず十N、−N、0のいずれかであ
るので、旧位置の相対駆動量110にこれらのうちいず
れかを加算すれば、次位置における相対駆動量110を
予測できる。
Then, in step 204, the register 32 is
The relative drive amount 110 of B and the bit pattern 114 of the bit pattern generator 38 are added to obtain the predicted relative drive amount 11.
6 is required. That is, since the difference between the relative drive amount 110 of the counter 24 between the old position where the detection pulse 10B-3 is generated and the current position is always 10N, -N, or 0, the relative drive amount 110 of the old position By adding any one of these to , the relative drive amount 110 at the next position can be predicted.

さらにステップ206では、減算器34でレジスタ32
Aの相対駆動量110から加算器36の予測相対駆動、
量116が減算されて1回転誤差118が求められる。
Furthermore, in step 206, the register 32 is
Predicted relative drive of the adder 36 from the relative drive amount 110 of A,
The amount 116 is subtracted to determine the one revolution error 118.

またステップ208では、判別器44は1回転誤差11
8が補正可能な範囲内にあるか否かを以下の様に判別す
る。
Further, in step 208, the discriminator 44 uses the one-rotation error 11
It is determined whether or not 8 is within a correctable range as follows.

本実施例では、カウンタ24のカウントミスが±Nに近
い値であるときには誤りが生じてしまう。例えばインク
リメント型エンコーダ20がカウントアツプ方向に1回
転したにもかかわらすN’(#N)の欠落があったとす
れば、N’>>N−N’であるため、検出パルス106
−3を2度検出したときにN−N ’パルスのノイズを
余分にカウントした、とみなしてしまう。このことから
理解される様に、補正が可能なカウントミスは±N/2
の範囲内にある場合に限られる。
In this embodiment, an error occurs when the count error of the counter 24 is close to ±N. For example, if N'(#N) is missing even though the incremental encoder 20 has made one revolution in the count-up direction, since N'>>N-N', the detection pulse 106
When -3 is detected twice, it is assumed that the noise of the N-N' pulse has been counted extra. As can be understood from this, the count error that can be corrected is ±N/2
limited to cases within the range of

そこで判別器44で値118がこの様な範囲内にあるか
否かが判別される。
Therefore, the discriminator 44 determines whether the value 118 is within such a range.

上記ステップ208で1回転誤差118が上記範囲内に
ないとされたときにはステップ202.204.208
が繰返して行なわれ、これが3回行われるとシーケンサ
30から非常停止の指令が出力されて本装置が停止され
る(ステップ212)。
If it is determined in step 208 that the one-rotation error 118 is not within the above range, steps 202, 204, and 208
This is repeated, and when this is repeated three times, an emergency stop command is output from the sequencer 30 and the apparatus is stopped (step 212).

また、ステップ208で1回転誤差118が上記の範囲
内にあるとされたときにはステップ214に進んで積算
器40にて1回転誤差118の積算が行なわれ、そして
ステップ216でレジスタ32Aの相対駆動量110が
レジスタ32Bにストアされる。
Further, when it is determined in step 208 that the one-rotation error 118 is within the above range, the process proceeds to step 214, where the integrator 40 integrates the one-rotation error 118, and in step 216, the relative drive amount of the register 32A is 110 is stored in register 32B.

その後、マイクロコンピュータ26は位置指令発生器1
0の位置指令100が変化するとこれを割込みの指令と
して取込み、ステップ218でカウンタ24の相対駆動
filloと積算器4oの総誤差120を和してカウン
タ24のカウントミス分を補正する。
Thereafter, the microcomputer 26 controls the position command generator 1.
When the position command 100 of 0 changes, this is taken in as an interrupt command, and in step 218, the relative drive fillo of the counter 24 and the total error 120 of the integrator 4o are summed to correct the count error of the counter 24.

次のステップ220では位置指令発生器10の位置指令
lOOに対する補正された相対駆動量110の偏差10
2が求められ、ステップ212でこの偏差102がAD
変換器14に供給され、位置指令100を目標値とする
サーボモータ18のフィードバック制御が行なわれる。
In the next step 220, the deviation 10 of the corrected relative drive amount 110 with respect to the position command lOO of the position command generator 10 is
2 is calculated, and in step 212 this deviation 102 is calculated as AD
The signal is supplied to the converter 14, and feedback control of the servo motor 18 is performed using the position command 100 as a target value.

以上説明した様に、木実流側によれば、カウンタ24に
カウントミスが生じてもその分を補正することができ、
従って正確な相対駆動、量110をフィードバック値と
して得ることが可能となる。
As explained above, according to Kimi-ryu, even if a counting error occurs in the counter 24, it can be corrected by the amount,
Therefore, it is possible to obtain an accurate relative drive amount 110 as a feedback value.

また上記補正が不可能であるときには、装置が非常停止
されるので、サーボモータ18の制御が続行されること
による不都合を回避することが可能となる。
Furthermore, when the above correction is impossible, the device is brought to an emergency stop, making it possible to avoid any inconvenience caused by continued control of the servo motor 18.

なお、検出パルス106−1,106−2の位相差を利
用してインクリメント型エンコーダ20の1回転当りの
パルス数を4倍としてその分解能を高める様に構成する
ことが好適である。
Note that it is preferable to use the phase difference between the detection pulses 106-1 and 106-2 to quadruple the number of pulses per rotation of the incremental encoder 20 to increase its resolution.

以上説明した様に、本発明によれば、カウンタ24にカ
ウントミスが生じてもその分が補正されるので正確な相
対駆動量110を得ることができ、従ってサーボモータ
18の正確へな制御を行なうことが可能となる。
As explained above, according to the present invention, even if a count error occurs in the counter 24, the amount is corrected, so that an accurate relative drive amount 110 can be obtained, and therefore, the servo motor 18 can be controlled accurately. It becomes possible to do so.

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

第1図は従来装置のブロック構成図、第2図は本発明に
かかわる装置の好適な実施例のブロック構成図、第3図
は第2図実施例の動作を説明するフローチャート図であ
る。 10・・・・位置指令発生器、 12・・・・減算器、 18・・・・サーボモータ、 26I111・・マイクロコンピュータ、28・・・・
カウント誤差補正回路、 34・・・・減算器、 36・・・・加算器。 40・・・・積算器、 42・・・・加算器。 代理人 弁理士 中 島  淳
FIG. 1 is a block diagram of a conventional device, FIG. 2 is a block diagram of a preferred embodiment of the device according to the present invention, and FIG. 3 is a flowchart explaining the operation of the embodiment shown in FIG. 10...Position command generator, 12...Subtractor, 18...Servo motor, 26I111...Microcomputer, 28...
Count error correction circuit, 34...subtractor, 36...adder. 40...Integrator, 42...Adder. Agent Patent Attorney Atsushi Nakajima

Claims (1)

【特許請求の範囲】[Claims] (1)、インクリメント型エンコーダの位置検出パルス
がカウンタでカウントされて相対駆動量が求められるイ
ンクリメンl−型駆動量検出装置において、インクリメ
ント型エンコーダの現在駆動位置での相対駆動量に基い
て現在駆動位置から所定間隔離れた次駆動位置での相対
駆動量を予測するとともに予測相対駆動量と次駆動位置
での相対駆動量との差を求めて前記カウンタのカウント
ミス分に相当する誤差値を算出し、該誤差値にて次駆動
位置での相対駆動量を補正するカウント誤差補正回路が
設けられた、ことを特徴とするインクリメント型駆動量
検出装置。
(1) In an incremental l-type drive amount detection device in which the position detection pulses of the incremental encoder are counted by a counter to determine the relative drive amount, the current drive is based on the relative drive amount at the current drive position of the incremental encoder. Predict the relative drive amount at the next drive position separated by a predetermined distance from the position, and calculate the difference between the predicted relative drive amount and the relative drive amount at the next drive position to calculate an error value corresponding to the count error of the counter. An incremental drive amount detection device comprising: a count error correction circuit that corrects the relative drive amount at the next drive position using the error value.
JP21727482A 1982-12-10 1982-12-10 Increment-type detector of driving quantity Pending JPS59106006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21727482A JPS59106006A (en) 1982-12-10 1982-12-10 Increment-type detector of driving quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21727482A JPS59106006A (en) 1982-12-10 1982-12-10 Increment-type detector of driving quantity

Publications (1)

Publication Number Publication Date
JPS59106006A true JPS59106006A (en) 1984-06-19

Family

ID=16701566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21727482A Pending JPS59106006A (en) 1982-12-10 1982-12-10 Increment-type detector of driving quantity

Country Status (1)

Country Link
JP (1) JPS59106006A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5095687A (en) * 1973-12-27 1975-07-30
JPS5320819A (en) * 1976-08-11 1978-02-25 Hitachi Ltd Position error correction unit for printing head
JPS5761906A (en) * 1980-09-30 1982-04-14 Fanuc Ltd Compensating system of position error
JPS5775310A (en) * 1980-10-30 1982-05-11 Toshiba Mach Co Ltd Detector for positional error of numerical control machine tool
JPS57176890A (en) * 1981-04-24 1982-10-30 Toshiba Corp Counter device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5095687A (en) * 1973-12-27 1975-07-30
JPS5320819A (en) * 1976-08-11 1978-02-25 Hitachi Ltd Position error correction unit for printing head
JPS5761906A (en) * 1980-09-30 1982-04-14 Fanuc Ltd Compensating system of position error
JPS5775310A (en) * 1980-10-30 1982-05-11 Toshiba Mach Co Ltd Detector for positional error of numerical control machine tool
JPS57176890A (en) * 1981-04-24 1982-10-30 Toshiba Corp Counter device

Similar Documents

Publication Publication Date Title
US20060042074A1 (en) Method for determining the rotation angle position of the camshaft of a reciprocating-piston engine in relation to the crankshaft
US6111384A (en) Method for controlling motor speed
KR920002347B1 (en) Velocity control system
JPWO2008105217A1 (en) Absolute value encoder device and multi-rotation detection method
JP3236449B2 (en) Control method of AC servomotor
US4107654A (en) Numerical control system having a position processing unit operated upon a power failure
JPS59106006A (en) Increment-type detector of driving quantity
JP3365063B2 (en) Rotation angle detection method
JPH0374325B2 (en)
JPH0425716A (en) Encoder abnormality detecting device
JPH11337372A (en) Abnormality detecting equipment for ic chip
CN112117994A (en) Decoding method of incremental encoder
JP2547395B2 (en) Absolute position detection method
JP3341519B2 (en) Synchronous control device
JPH0549165B2 (en)
JPH11337371A (en) Rotation angle detecting equipment of rotary machine
JPH01292405A (en) Digital position servo device
US7154947B2 (en) Coincidence detection apparatus and method
JP3228050B2 (en) Rotation angle detection method
JPS63243703A (en) Count-check type detector for angle of rotation
JPH0583811U (en) Encoder signal processor
JPH0756717B2 (en) Phase control circuit
JP3250705B2 (en) Positioning device
SU1720062A1 (en) Current time correction method
JPS60216777A (en) Servo device