JPH04283048A - Main spindle positioning system - Google Patents

Main spindle positioning system

Info

Publication number
JPH04283048A
JPH04283048A JP6521491A JP6521491A JPH04283048A JP H04283048 A JPH04283048 A JP H04283048A JP 6521491 A JP6521491 A JP 6521491A JP 6521491 A JP6521491 A JP 6521491A JP H04283048 A JPH04283048 A JP H04283048A
Authority
JP
Japan
Prior art keywords
speed
spindle
value
main spindle
counter
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.)
Granted
Application number
JP6521491A
Other languages
Japanese (ja)
Other versions
JP2748191B2 (en
Inventor
Shinichi Kono
新一 河野
Masao Fukukura
福倉 正朗
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP3065214A priority Critical patent/JP2748191B2/en
Publication of JPH04283048A publication Critical patent/JPH04283048A/en
Application granted granted Critical
Publication of JP2748191B2 publication Critical patent/JP2748191B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Automatic Control Of Machine Tools (AREA)
  • Machine Tool Positioning Apparatuses (AREA)

Abstract

PURPOSE:To position a main spindle in an arbitrary se position located within one full turn of the main spindle by mounting only a one rotation signal detecting mechanism for outputting a signal once each time the main spindle is rotated by one full turn on the main spindle and locating a position and speed detector to a main spindle motor. CONSTITUTION:A main spindle motor is run at a set speed Vo by means of a constant position stop command. The value of a counter to count a pulse generated from a detector to detect the rotation position of the main spindle motor each time a rotation signal is generated once is latched to a latch circuit. When, after the speed of the main spindle motor attains a set speed Vo, a one rotation signal is outputted, values Pc and Pr of the counter and the latch circuit are read, a value (Pc-Pr) is subtracted from a moving amount Po of the one full turn of the main spindle, and a value added by a command stop device Pg is set to an error counter. A main spindle which does not perform control of a position before a position deviation set to the error counter attains T0 is stopped at a set rotation position (a set rotation angle position).

Description

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

【0001】0001

【産業上の利用分野】本発明は、工作機械の主軸を1回
転内の設定位置に停止させる主軸位置決め方式に関する
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a spindle positioning method for stopping the spindle of a machine tool at a set position within one revolution.

【0002】0002

【従来の技術】工作機械の主軸を設定した所定位置に停
止させる主軸位置決め方式は種々のものが開発されてい
る。これら従来の主軸位置決め方式おいて、主軸をギア
若しくはタイミングルトを介して主軸モータで駆動し、
主軸の回転速度と主軸モータの回転速度が異なる場合、
主軸側に位置検出器(ポジョンコーダ)と主軸1回転で
1つの1回転信号を出力する検出器を取り付けて、主軸
を設定位置(1回転内の設定回転位置)に停止させる制
御を行なっていた。
2. Description of the Related Art Various types of spindle positioning systems have been developed for stopping the spindle of a machine tool at a predetermined position. In these conventional spindle positioning systems, the spindle is driven by a spindle motor via a gear or a timing belt.
If the spindle rotation speed and spindle motor rotation speed are different,
A position detector (position coder) and a detector that outputs one rotation signal for each rotation of the spindle are attached to the spindle to control the spindle to stop at a set position (set rotational position within one rotation). .

【0003】0003

【発明が解決しようとする課題】しかし、主軸側に1回
転信号用の検出器さらには回転位置を検出する位置検出
器を取り付けることは主軸側の構造を複雑にするという
欠点がある。
However, installing a detector for one rotation signal and a position detector for detecting the rotational position on the main shaft side has the disadvantage that the structure of the main shaft becomes complicated.

【0004】そこで本発明の目的は、主軸には簡単な1
回転信号のみを検出する検出器のみを取り付けて主軸の
位置決めができる主軸位置決め方式を提供することにあ
る。
[0004] Therefore, the object of the present invention is to provide a simple
It is an object of the present invention to provide a spindle positioning method that can position the spindle by installing only a detector that detects only rotation signals.

【0005】[0005]

【課題を解決するための手段】本発明は、工作機械の主
軸をギア若しくはタイミングベルトを介して主軸モータ
で駆動する主軸駆動方式において、上記主軸には該主軸
1回転で1回の1回転信号を出力する検出器を取り付け
、上記主軸モータには速度・位置検出器を取り付け、上
記速度・位置検出器から出力される位置フィードバック
パルスをカウントするカウンタと、上記1回転信号が出
力される毎に上記カウンタの値をラッチするラッチ回路
とを設け、主軸定位置停止指令により設定された所定速
度に上記主軸モータを速度制御し、設定速度に達しその
後上記1回転信号が検出されると、上記カウンタ及びラ
ッチ回路の値を読み込み、読み取ったカウンタの値から
ラッチ回路の値を減じた値を上記主軸1回転に対する移
動量から減じ、さらに1回転信号検出位置からの設定移
動量を加算した値を位置偏差としてエラーカウンタに入
力し速度制御から位置制御に切り換える。そして、上記
エラーカウンタの値が「0」になることにより主軸を設
定位置に停止させるようにすることによって上記課題を
解決した。
[Means for Solving the Problems] The present invention provides a spindle drive method in which the spindle of a machine tool is driven by a spindle motor via a gear or a timing belt, and the spindle is provided with a one-rotation signal once per one rotation of the spindle. A speed/position detector is attached to the spindle motor, a counter is installed to count the position feedback pulses output from the speed/position detector, and a counter is installed to count the position feedback pulses output from the speed/position detector, and a A latch circuit that latches the value of the counter is provided, and the spindle motor is speed controlled to a predetermined speed set by the spindle fixed position stop command, and when the set speed is reached and the one rotation signal is detected thereafter, the counter Read the value of the latch circuit and the value of the latch circuit from the read counter value, subtract the value obtained by subtracting the value of the latch circuit from the above movement amount for one rotation of the spindle, and then add the set movement amount from the one rotation signal detection position to calculate the position. Input it to the error counter as a deviation and switch from speed control to position control. The above problem was solved by stopping the spindle at the set position when the value of the error counter became "0".

【0006】[0006]

【作用】主軸モータは通常速度制御のみが実行されてい
る。そして、主軸定位置停止指令が出されると、主軸モ
ータは加速若しくは減速し設定された速度(オリエンテ
ーション速度)に速度制御される。一方上記カウンタは
主軸モータに取り付けられた速度・位置検出器からの位
置フィードバックパルスをカウントしており、また、上
記ラッチ回路は主軸に取り付けられた1回転信号検出器
からの1回転信号出力がある毎に上記カウンタの値をラ
ッチしている。そこで、上記設定された速度すなわちオ
リエンテーション速度に達し、1回転信号が出力された
ことを検出すると上記カウンタ及びラッチ回路の値を読
み、カウンタの値からラッチ回路の値を減じる。この時
得られる差は1回転信号発生位置からの主軸の回転量に
等しい。そして、主軸1回転に対する移動量(主軸が1
回転する間に発生する位置フィードバックパルス量)か
ら上記差を減ずれば、現時点の位置から1回転信号発生
位置までの主軸の移動量が求められ、かつこの値に、設
定された停止位置である1回転信号位置からの移動量(
主軸1回転内の設定回転位置)を加算して得られる値を
位置偏差としてエラーカウンタに入力し、速度制御から
位置制御に切り換えれば、主軸モータは上記エラーカウ
ンタの値が「0」になるまで、駆動制御されることにな
り、上記エラーカウンタの値が「0」になれば、主軸モ
ータの回転は停止し、設定された回転位置に主軸は停止
し、位置決めされたことになる。
[Operation] Only normal speed control is executed on the main shaft motor. Then, when the main shaft fixed position stop command is issued, the main shaft motor is accelerated or decelerated and controlled to a set speed (orientation speed). On the other hand, the above counter counts the position feedback pulses from the speed/position detector attached to the spindle motor, and the above latch circuit has a one-rotation signal output from the one-rotation signal detector attached to the spindle. The value of the above counter is latched every time. Therefore, when it is detected that the set speed, that is, the orientation speed is reached and a one-rotation signal is output, the values of the counter and latch circuit are read, and the value of the latch circuit is subtracted from the value of the counter. The difference obtained at this time is equal to the amount of rotation of the main shaft from the one rotation signal generation position. Then, the amount of movement per one rotation of the main spindle (the amount of movement per one rotation of the main spindle)
By subtracting the above difference from the amount of position feedback pulses generated during rotation, the amount of movement of the main shaft from the current position to the one-rotation signal generation position can be found, and this value is the set stop position. Amount of movement from one rotation signal position (
If the value obtained by adding the set rotational position within one rotation of the spindle is input into the error counter as a position deviation, and the speed control is switched to position control, the value of the error counter for the spindle motor will become "0". When the value of the error counter reaches "0", the spindle motor stops rotating, and the spindle stops at the set rotational position, indicating that the spindle has been positioned.

【0007】[0007]

【実施例】図2は本発明の一実施例を実施する主軸駆動
方式を示すブロック図で、1は主軸であり、該主軸1は
主軸モータ4によってギア若しくはタイミングベルと等
のすべりが生じないような伝動機構2を介して駆動され
るようになっている。また、主軸1には該主軸1の1回
転で1回の1回転信号を出力する1回転信号検出機構3
が取り付けられている。この1回転信号検出機構3は主
軸所定位置を検出して1回転信号を出力する簡単なスイ
ッチでよい。
[Embodiment] FIG. 2 is a block diagram showing a main shaft drive system for carrying out an embodiment of the present invention. Reference numeral 1 indicates a main shaft, and the main shaft 1 is prevented from slipping due to a main shaft motor 4 such as a gear or a timing bell. It is designed to be driven via a transmission mechanism 2 like this. The main spindle 1 also has a one-rotation signal detection mechanism 3 that outputs one rotation signal for each rotation of the main spindle 1.
is installed. This one-rotation signal detection mechanism 3 may be a simple switch that detects a predetermined position of the main shaft and outputs a one-rotation signal.

【0008】上記主軸モータ4には該モータの回転速度
及び回転位置を検出する速度・位置検出器5が取り付け
られている。8は工作機械を制御する数値制御装置(以
下NC装置という)であり、7は該主軸モータを制御す
るモータ制御回路でNC装置8と接続されていると共に
、上記1回転信号検出機構2,速度・位置検出器5と接
続されており、後述するように、主軸モータ4を速度制
御する速度制御部、位置決め時の位置制御部、さらに各
種演算を行なうためのプロセッサ,ROM,RAM等で
構成され、トランジスタインバータ等のパワー回路6を
介して上記主軸モータ4を駆動制御するようになってい
る。
A speed/position detector 5 is attached to the main shaft motor 4 to detect the rotational speed and rotational position of the motor. 8 is a numerical control device (hereinafter referred to as an NC device) that controls the machine tool, and 7 is a motor control circuit that controls the spindle motor, which is connected to the NC device 8, and the one-rotation signal detection mechanism 2 and the speed - It is connected to the position detector 5, and as described later, it is composed of a speed control section that controls the speed of the spindle motor 4, a position control section during positioning, and a processor, ROM, RAM, etc. for performing various calculations. , the main shaft motor 4 is driven and controlled via a power circuit 6 such as a transistor inverter.

【0009】図3は、上記モータ制御回路の詳細ブロッ
ク図で、10は位置決め制御時の位置偏差を記憶するエ
ラーカウンタ、11はポジションゲインKpの伝達関数
の項、12,13は速度制御ループの比例ゲインK1の
伝達関数の項と積分の伝達関数の項でありK2は積分ゲ
インである。また、14,15は主軸モータの伝達関数
の項で、Ktはトルク定数,Jmはイナーシャである。 さらに、16は速度を積分し位置を求める積分の伝達関
数の項、17は伝動機構2のプーリ比(ギア比)の項で
、モータ4の回転位置を主軸1の回転位置に変換する項
であり、モータ4がn回転し主軸1がM回転することを
示している。
FIG. 3 is a detailed block diagram of the motor control circuit, in which 10 is an error counter for storing position deviation during positioning control, 11 is a transfer function term of position gain Kp, and 12 and 13 are speed control loop terms. These are the transfer function term of the proportional gain K1 and the integral transfer function term, and K2 is the integral gain. Further, 14 and 15 are transfer function terms of the main shaft motor, Kt is a torque constant, and Jm is an inertia. Furthermore, 16 is an integral transfer function term for integrating speed and determining position, and 17 is a term for the pulley ratio (gear ratio) of the transmission mechanism 2, which is a term for converting the rotational position of the motor 4 into the rotational position of the main shaft 1. , indicating that the motor 4 rotates n times and the main shaft 1 rotates M times.

【0010】また、19は速度・位置検出器から出力さ
れる位置フィードバックパルスPfをカウントする可逆
カウンタであり、20は1回転信号検出機構3から1回
転信号Sgが出力される毎に上記カウンタ19の値をラ
ッチするラッチ回路である。18は上記モータ制御回路
7のプロセッサが実施するソフトウエア処理のブロック
を示している。S1,S2は便宜的に示したスイッチで
、速度制御時にはスイッチS1は「OFF」、スイッチ
S2は「ON」とされ、主軸位置決め時の位置制御時に
は、スイッチS1「ON」、スイッチS2「OFF」と
される。
Further, 19 is a reversible counter that counts the position feedback pulse Pf output from the speed/position detector, and 20 is a reversible counter that counts the position feedback pulse Pf output from the speed/position detector 3. This is a latch circuit that latches the value of . Reference numeral 18 indicates a software processing block executed by the processor of the motor control circuit 7. Switches S1 and S2 are shown for convenience; during speed control, switch S1 is set to "OFF" and switch S2 is set to "ON"; during position control during spindle positioning, switch S1 is set to "ON" and switch S2 is set to "OFF". It is said that

【0011】そこでまず、本実施例の動作の概要を説明
すると、通常はスイッチS1を「OFF」、スイッチS
2を「ON」にし、NC装置から送られた来た速度指令
VCMDに基づき、該速度指令VCMDから速度・位置
検出器5から出力される速度フィードバック信号Vfを
減じて速度偏差を求め、この速度偏差にに比例ゲインK
1を乗じた値(12)と該速度偏差を積算した値に積分
乗数K2を乗じた値(13)を加算してトルク指令(電
流指令)を求めパワー回路6を介して主軸モータ4を駆
動する。
First, an overview of the operation of this embodiment will be explained. Normally, the switch S1 is "OFF" and the switch S1 is "OFF".
2 is turned ON, and based on the speed command VCMD sent from the NC device, the speed feedback signal Vf output from the speed/position detector 5 is subtracted from the speed command VCMD to find the speed deviation. Gain K proportional to deviation
The torque command (current command) is obtained by adding the value (12) multiplied by 1 and the value (13) obtained by multiplying the integral multiplier K2 to the value obtained by integrating the speed deviation and drives the main shaft motor 4 via the power circuit 6. do.

【0012】一方定位置停止指令がNC装置8より出力
されると、該モータ制御回路7はパラメータで設定され
たオリエンテーション速度を速度指令VCMDとして出
力し、モータの速度が該オリエンテーション速度になり
、1回転信号検出機構3から1回転信号が出力されると
、後述するように、エラーカウンタ10に設定停止位置
までの移動指令値を入力すると共に、スイッチS1,S
2を切り換え、スイッチS1を「ON」、スイッチS2
を「OFF」にし位置制御を開始し、エラーカウンタ1
0の値が「0」になると、定位置停止完了信号をNC装
置8に出力し、主軸位置決め制御を終了する。
On the other hand, when a fixed position stop command is output from the NC device 8, the motor control circuit 7 outputs the orientation speed set by the parameter as the speed command VCMD, and the motor speed becomes the orientation speed, When a one-rotation signal is output from the rotation signal detection mechanism 3, as will be described later, a movement command value to the set stop position is input to the error counter 10, and switches S1 and S are input.
2, switch S1 to "ON", switch S2
Turn OFF, start position control, and set error counter 1.
When the value of 0 becomes "0", a fixed position stop completion signal is output to the NC device 8, and the spindle positioning control is ended.

【0013】図1は、モータ制御回路7のプロセッサが
実施する処理(ソフトウエア処理18の内容)のフロー
チャートであり、プロセッサは所定周期毎該処理を実施
している。まず、電源投入時には後述するフラグFo,
Fe,Fp,Fvは「0」に初期設定されている。そし
て、NC装置8から定位置停止指令が出力された時「1
」にセットされる定位置停止指令フラグFoが「1」か
否か判断し(ステップ100)、「1」でなければ、N
C装置8から出力される速度指令VCMDに基づき、速
度制御を実施する(ステップ113)。すなわち、図3
でスイッチS1をOFF,スイッチS2をONの状態に
し、指令速度VCMDと速度フィードバック信号Vfに
基づき速度ループ処理を実行しパワー回路6を介して主
軸モータ4を駆動制御する。以下、定位置停止指令がN
C装置8より出力され上記フラグFoが「1」になるま
で、各周期毎プロセッサは指令された速度VCMDに基
づき速度制御を行なう。
FIG. 1 is a flowchart of the processing (contents of the software processing 18) executed by the processor of the motor control circuit 7, and the processor executes the processing at predetermined intervals. First, when the power is turned on, flags Fo, which will be described later,
Fe, Fp, and Fv are initially set to "0". Then, when a fixed position stop command is output from the NC device 8, “1
” is determined whether the fixed position stop command flag Fo is “1” (step 100), and if it is not “1”, N
Speed control is performed based on the speed command VCMD output from the C device 8 (step 113). That is, Figure 3
Then, the switch S1 is turned OFF and the switch S2 is turned ON, speed loop processing is executed based on the command speed VCMD and the speed feedback signal Vf, and the spindle motor 4 is driven and controlled via the power circuit 6. Below, the fixed position stop command is N
The processor performs speed control every cycle based on the commanded speed VCMD until the flag Fo output from the C device 8 becomes "1".

【0014】一方、NC装置8より定位置停止指令が出
力されフラグFoが「1」に設定されると、ステップ1
00からステップ101に移行し、定位置停止が完了し
たときセットされる完了フラグFeが「1」か否か判断
し、始めは該完了フラグFeは「0」であるので、次に
、位置決め処理を開始した時にセットされる位置決めフ
ラグFpが「1」か否か判断し(ステップ102)、「
1」でなければ(始めは「0」である)、パラメータで
設定されているオリエンテーション速度Voを出力し速
度制御を行なう(ステップ103)。次に、主軸モータ
4が上記オリエンテーション速度Voに達した時「1」
にセットされるオリエンテーション速度達成フラグFv
が「1」か否か判断し(ステップ104)、「1」でな
ければ(始めは「0」)、位置・速度検出器5で検出さ
れる速度フィードバック信号Vfが上記オリエンテーシ
ョン速度Voに達しているか否か判断し(ステップ11
4)、達してなければ、当該周期の処理を終了する。
On the other hand, when a fixed position stop command is output from the NC device 8 and the flag Fo is set to "1", step 1 is executed.
00 to step 101, it is determined whether the completion flag Fe set when the fixed position stop is completed is "1", and since the completion flag Fe is "0" at the beginning, next, the positioning process is performed. It is determined whether the positioning flag Fp that is set when the process is started is "1" (step 102), and "
If it is not "1" (initially it is "0"), the orientation speed Vo set by the parameter is output and speed control is performed (step 103). Next, when the main shaft motor 4 reaches the above-mentioned orientation speed Vo, "1"
Orientation speed achievement flag Fv set to
is "1" (step 104), and if it is not "1" (initially "0"), the velocity feedback signal Vf detected by the position/velocity detector 5 has reached the orientation velocity Vo. (Step 11)
4) If it has not been reached, the processing for the relevant cycle is ended.

【0015】以下ステップ100〜ステップ104,ス
テップ114の処理を各周期毎行ない、主軸モータ4の
速度Vfがオリエンテーション速度Voに達すると、ス
テップ114からステップ115に移行し、オリエンテ
ーション速度達成フラグFvを「1」にセットし、1回
転信号検出機構3から出力される1回転信号Sgが入力
された時「1」にセットされるレジスタRを「0」にセ
ットし(ステップ115)、当該周期の処理を終了する
The following steps 100 to 104 and step 114 are performed every cycle, and when the speed Vf of the spindle motor 4 reaches the orientation speed Vo, the process moves from step 114 to step 115, and the orientation speed achievement flag Fv is set to "1", and the register R, which is set to "1" when the one-rotation signal Sg output from the one-rotation signal detection mechanism 3 is input, is set to "0" (step 115), and the processing of the corresponding cycle is performed. end.

【0016】次の周期からはステップ100〜ステップ
104の処理を行ない、フラグFvが「1」であるので
、ステップ104からステップ105に移行し、上記レ
ジスたRが「1」か否か判断し、「1」でなければ、す
なわち、オリエンテーション速度Voにモータ速度が達
した後に1回転信号Sgが出力されてなければ、当該周
期の処理を終了する。また、上記レジスタRの値が「1
」であれば、ラッチ回路20の値Prとカウンタ19の
値Pcを読み込む(ステップ106)。カウンタ19は
位置・速度検出器5から出力されるフィードバックパル
スをカウントしており、カウンタ19の値Pcは主軸モ
ータの回転位置を表している。また、ラッチ回路20は
1回転信号が発生する毎に上記カウンタの値をラッチし
ており、そのため、オリエンテーション速度Voに達し
、レジスタRが「0」にセットされ、その後発生した1
回転信号により、上記レジスタRが「1」になったとき
には上記ラッチ回路20には、オリエンテーション速度
Voにたっ達した後の1回転信号発生位置のカウンタの
値が記憶されていることになる。なお、この図1で実施
する処理周期は、オリエンテーション速度Voと比較し
充分短い周期で実施されているので、ステップ106で
読み取るラッチ回路20の値は、オリエンテーション速
度Voに達した後の1回目の1回転信号発生時の上記カ
ウンタ19の値を記憶することになる。
From the next cycle, steps 100 to 104 are performed, and since the flag Fv is "1", the process moves from step 104 to step 105, and it is determined whether the register R is "1" or not. , is not "1", that is, if the one-rotation signal Sg is not output after the motor speed reaches the orientation speed Vo, the processing for the period is ended. Also, the value of the above register R is “1”.
”, the value Pr of the latch circuit 20 and the value Pc of the counter 19 are read (step 106). The counter 19 counts the feedback pulses output from the position/speed detector 5, and the value Pc of the counter 19 represents the rotational position of the main shaft motor. Furthermore, the latch circuit 20 latches the value of the counter each time a one-rotation signal is generated, so that when the orientation speed Vo is reached, the register R is set to "0", and the
When the register R becomes "1" due to the rotation signal, the latch circuit 20 stores the value of the counter at the position where the one rotation signal is generated after reaching the orientation speed Vo. The processing cycle shown in FIG. 1 is performed at a sufficiently short cycle compared to the orientation speed Vo, so the value of the latch circuit 20 read in step 106 is the first value after reaching the orientation speed Vo. The value of the counter 19 when the one rotation signal is generated is stored.

【0017】そして、次の1式の演算を行なって指令停
止位置Pg(主軸1の1回転内の1回転信号発生位置か
らの移動量)までの移動量Psを求める。
Then, the following equation is calculated to determine the amount of movement Ps to the command stop position Pg (the amount of movement from the one-rotation signal generation position within one rotation of the main shaft 1).

【0018】         Ps=Pa−(Pc−Pr)+Pg 
           =Pa−Pc+Pr+Pg  
                    …(1)上
記1式において、Paは主軸1が1回転する間に発生す
る位置フィードバックパルス量であり、伝動装置2のプ
ーリ比若しくはギア比が決まれば、一律に決まる値であ
る。また、カウンタ19の値Pcからラッチ回路20の
値Prを減じた値(Pc−Pr)は現時点における1回
転信号発生位置からの主軸1の回転移動量を表しており
、上記1回転移動量Paからこの値(Pc−Pr)を減
ずれば、現時点位置から1回転信号発生位置までの移動
量が求められる。さらにこの値に指令停止位置(グリッ
トシフト量)Pgを加算すれば、現時点位置からの指令
停止位置までの移動量Psが求まることになる。そして
、この求められた移動量Psを位置偏差としてエラーカ
ウンタ10にセットし(ステップ107)、さらに位置
決めフラグFpを「1」にセットし(ステップ108)
、位置制御を開始する。すなわち、図3において、スイ
ッチS1をON,スイッチS2をOFFにし、エラーカ
ウンタ10の値にポジションゲインKpを乗じて速度指
令を求め、この速度指令に対して速度ループ処理を行な
い主軸モータ4を駆動制御することになる(ステップ1
09)。そして、エラーカウンタ10の値である位置偏
差が「0」か否か判断し(ステップ110)、「0」で
なければ当該処理周期の処理を終了する。
Ps=Pa−(Pc−Pr)+Pg
=Pa-Pc+Pr+Pg
(1) In the above equation 1, Pa is the amount of position feedback pulses generated during one rotation of the main shaft 1, and is a value that is uniformly determined once the pulley ratio or gear ratio of the transmission device 2 is determined. Further, the value (Pc-Pr) obtained by subtracting the value Pr of the latch circuit 20 from the value Pc of the counter 19 represents the amount of rotational movement of the main shaft 1 from the current one-rotation signal generation position, and the one-rotation movement amount Pa By subtracting this value (Pc-Pr) from , the amount of movement from the current position to the one-rotation signal generation position can be determined. Furthermore, by adding the command stop position (grit shift amount) Pg to this value, the movement amount Ps from the current position to the command stop position can be determined. Then, the obtained movement amount Ps is set in the error counter 10 as a positional deviation (step 107), and the positioning flag Fp is further set to "1" (step 108).
, start position control. That is, in FIG. 3, the switch S1 is turned on and the switch S2 is turned off, a speed command is obtained by multiplying the value of the error counter 10 by the position gain Kp, and speed loop processing is performed on this speed command to drive the spindle motor 4. (Step 1)
09). Then, it is determined whether or not the positional deviation, which is the value of the error counter 10, is "0" (step 110), and if it is not "0", the processing of the corresponding processing cycle is ended.

【0019】以降の処理周期ではフラグFpが「1」で
あることから、ステップ100〜ステップ102、ステ
ップ109,ステップ110を実施することになり、位
置偏差が「0」になるまで各周期毎上記処理を実施する
Since the flag Fp is "1" in the subsequent processing cycles, steps 100 to 102, steps 109 and 110 will be executed, and the above steps will be carried out in each cycle until the positional deviation becomes "0". Perform processing.

【0020】そして、エラーカウンタ10の値の位置偏
差が「0」になると、ステップ110からステップ11
1に進み、定位置停止完了信号をNC装置8に出力し、
完了フラグFeを「1」にセットし当該処理周期の処理
を終了する。その結果ステップ107で設定した移動量
Psだけ主軸モータ4は回転し、エラーカウンタ10の
位置偏差が「0」になった時には主軸モータ4の回転は
停止、かつ、設定した停止位置Pgに主軸は停止するこ
とになる。そして、次の処理周期からは完了フラグFe
が「1」にセットされていることから、ステップ100
,ステップ101の処理を行なって各周期の処理を終了
することになる。そして、次の主軸駆動指令が入力され
ると、上記各フラグは「0」にセットされる。また、次
の主軸駆動し例が定位置停止指令であれば、フラグFo
のみが「1」にセットされる。
Then, when the positional deviation of the value of the error counter 10 becomes "0", steps 110 to 11 are performed.
1, output a fixed position stop completion signal to the NC device 8,
The completion flag Fe is set to "1" and the processing of the corresponding processing cycle is ended. As a result, the spindle motor 4 rotates by the amount of movement Ps set in step 107, and when the position deviation of the error counter 10 becomes "0", the rotation of the spindle motor 4 stops, and the spindle moves to the set stop position Pg. It will stop. From the next processing cycle, the completion flag Fe
is set to "1", so step 100
, step 101 are performed, and the processing of each cycle is completed. Then, when the next spindle drive command is input, each of the above flags is set to "0". Also, if the next spindle drive is a fixed position stop command, the flag Fo
only is set to "1".

【0021】[0021]

【発明の効果】以上のように、本発明においては、主軸
をギヤ若しくはタイミングベルトを介して主軸モータで
駆動するものにおいて、主軸には該主軸の1回転で1回
信号を出力する1回転信号検出機構のみを取り付け、主
軸モータに位置・速度検出器を取り付けることによって
、主軸を該主軸の1回転内の任意の設定位置に位置決め
することができ、主軸には1回転信号検出機構のみを取
り付けるだけでよいから、主軸側の構成を簡単にするこ
とができる。
As described above, in the present invention, in a device in which the main shaft is driven by a main shaft motor via a gear or a timing belt, a one-rotation signal is provided to the main shaft, which outputs a signal once for one rotation of the main shaft. By attaching only the detection mechanism and a position/speed detector to the spindle motor, the spindle can be positioned at any set position within one rotation of the spindle, and only the one-rotation signal detection mechanism is attached to the spindle. Since it is only necessary to use only the main shaft, the configuration on the spindle side can be simplified.

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

【図1】本発明の一実施例におけるモータ制御回路のプ
ロセッサが実施する処理のフローチャートである。
FIG. 1 is a flowchart of processing executed by a processor of a motor control circuit in an embodiment of the present invention.

【図2】同実施例を実施する主軸駆動方式を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a spindle drive system for implementing the same embodiment.

【図3】同実施例を実施するモータ制御回路の詳細ブロ
ック図である。
FIG. 3 is a detailed block diagram of a motor control circuit implementing the same embodiment.

【符号の説明】[Explanation of symbols]

1  主軸 2  伝動機構 3  1回転信号検出機構 4  主軸モータ 5  位置・速度検出器 6  パワー回路 7  モータ制御回路 8  数値制御装置(NC装置) 10  エラーカウンタ 19  カウンタ 20  ラッチ回路 1 Main shaft 2 Transmission mechanism 3. One revolution signal detection mechanism 4 Main shaft motor 5 Position/speed detector 6 Power circuit 7 Motor control circuit 8 Numerical control device (NC device) 10 Error counter 19 Counter 20 Latch circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  工作機械の主軸をギア若しくはタイミ
ングベルトを介して主軸モータで駆動する主軸駆動方式
における主軸位置決め方式において、上記主軸には該主
軸1回転で1回の1回転信号を出力する検出器を取り付
け、上記主軸モータには速度・位置検出器を取り付け、
上記速度・位置検出器から出力される位置フィードバッ
クパルスをカウントするカウンタと、上記1回転信号が
出力される毎に上記カウンタの値をラッチするラッチ回
路とを設け、主軸定位置停止指令により設定された所定
速度に上記主軸モータを速度制御し、設定速度に達しそ
の後上記1回転信号が検出されると、上記カウンタ及び
ラッチ回路の値を読み込み、読み取ったカウンタの値か
らラッチ回路の値を減じた値を上記主軸1回転に対する
移動量から減じ、さらに1回転信号検出位置からの設定
移動量を加算した値を位置偏差としてエラーカウンタに
入力し速度制御から位置制御に切り換え、上記エラーカ
ウンタの値が「0」になることにより主軸を設定位置に
停止させる主軸位置決め方式。
1. In a spindle positioning method in a spindle drive method in which the spindle of a machine tool is driven by a spindle motor via a gear or a timing belt, a detection method is provided in which a one-rotation signal is output to the spindle once for one rotation of the spindle. Attach the speed/position detector to the above spindle motor,
A counter that counts the position feedback pulses output from the speed/position detector and a latch circuit that latches the value of the counter every time the one rotation signal is output are provided. The speed of the spindle motor was controlled to a predetermined speed, and when the set speed was reached and the one rotation signal was detected, the values of the counter and latch circuit were read, and the value of the latch circuit was subtracted from the read counter value. The value is subtracted from the amount of movement per one revolution of the spindle, and the set amount of movement from the one-rotation signal detection position is added to the error counter as the position deviation.Switching from speed control to position control, the value of the error counter is A spindle positioning method that stops the spindle at a set position by setting the value to “0”.
JP3065214A 1991-03-07 1991-03-07 Spindle positioning device Expired - Fee Related JP2748191B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3065214A JP2748191B2 (en) 1991-03-07 1991-03-07 Spindle positioning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3065214A JP2748191B2 (en) 1991-03-07 1991-03-07 Spindle positioning device

Publications (2)

Publication Number Publication Date
JPH04283048A true JPH04283048A (en) 1992-10-08
JP2748191B2 JP2748191B2 (en) 1998-05-06

Family

ID=13280440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3065214A Expired - Fee Related JP2748191B2 (en) 1991-03-07 1991-03-07 Spindle positioning device

Country Status (1)

Country Link
JP (1) JP2748191B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5698546U (en) * 1979-12-24 1981-08-04
JPS5831623U (en) * 1981-08-26 1983-03-01 松下電工株式会社 Lighting equipment connector

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5698546U (en) * 1979-12-24 1981-08-04
JPS5831623U (en) * 1981-08-26 1983-03-01 松下電工株式会社 Lighting equipment connector

Also Published As

Publication number Publication date
JP2748191B2 (en) 1998-05-06

Similar Documents

Publication Publication Date Title
KR960012701B1 (en) Spindle positioning method
EP0051417B1 (en) Method and apparatus for use in adjusting an installation position of a switch member in a numerical control system
US4732099A (en) Motor controller for a sewing machine
JPH0616242B2 (en) Numerical control method
JPS59106009A (en) Backlash correcting method
JPH04283048A (en) Main spindle positioning system
JP2819411B2 (en) Fixed position stop control device
JP2560042Y2 (en) Elevator speed detector
JPH08221131A (en) Positioning device
JPH0425101B2 (en)
JP3480860B2 (en) Disturbance tracking type positioning control method
JPH0716553B2 (en) Sewing machine controller
JPH05328778A (en) Inertia estimating device for brushless motor
JP2518297B2 (en) Spindle rotation position control method
JPH0716555B2 (en) Sewing machine controller
JPH10210788A (en) Torque control method and torque control device for motor
JP3163832B2 (en) Motor control device
JP2903717B2 (en) Motor speed control device
JPS59175390A (en) Positioning control circuit of dc motor
JP2740953B2 (en) Spindle fixed position stop control device
JP2562885B2 (en) Unbalanced point positioning method and apparatus used for the method
JP2003084837A (en) Method of positioning stop control for rotation drive system
JP2529185B2 (en) Motor control circuit
JPH10161748A (en) Motor positioning controller
JPS61257688A (en) Controller for sewing machine

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080220

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090220

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees