JP6605926B2 - Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft - Google Patents

Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft Download PDF

Info

Publication number
JP6605926B2
JP6605926B2 JP2015225543A JP2015225543A JP6605926B2 JP 6605926 B2 JP6605926 B2 JP 6605926B2 JP 2015225543 A JP2015225543 A JP 2015225543A JP 2015225543 A JP2015225543 A JP 2015225543A JP 6605926 B2 JP6605926 B2 JP 6605926B2
Authority
JP
Japan
Prior art keywords
spindle
rotation
rotation amount
speed
control
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.)
Active
Application number
JP2015225543A
Other languages
Japanese (ja)
Other versions
JP2017097409A (en
Inventor
有紀 森田
大輔 田嶋
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 JP2015225543A priority Critical patent/JP6605926B2/en
Publication of JP2017097409A publication Critical patent/JP2017097409A/en
Application granted granted Critical
Publication of JP6605926B2 publication Critical patent/JP6605926B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Description

本発明は、主軸と送り軸との同期運転を制御する工作機械の制御装置に関する。本発明はまた、主軸と送り軸との同期運転を制御する工作機械の制御方法に関する。   The present invention relates to a machine tool control device that controls synchronous operation of a main shaft and a feed shaft. The present invention also relates to a machine tool control method for controlling synchronous operation of a main shaft and a feed shaft.

主軸と送り軸との同期運転によりタップ加工を行う工作機械においては、加工精度を向上させたりサイクルタイムを短縮したりするための構成が種々提案されている。例えば特許文献1は、主軸の回転に送り軸が追従して動作しながらタップ加工を行うねじ加工装置であって、主軸の回転速度及び回転加速度とねじピッチとから送り軸に対する送り指令値を演算するとともに、主軸の実際の回転位置に従って送り指令値を補正することで、タップ加工の精度を向上させるようにしたねじ加工装置を開示する。また特許文献2は、タップ加工のために主軸と送り軸との同期制御を行う数値制御装置の主軸モータ加減速制御方法であって、数値制御装置が、主軸の出力特性に対応する加減速指令を作成して、この加減速指令により主軸を制御することで主軸の応答性を向上させ、結果としてサイクルタイムを短縮できるようにした主軸モータ加減速制御方法を開示する。   In a machine tool that performs tapping by synchronous operation of a main shaft and a feed shaft, various configurations for improving machining accuracy and shortening cycle time have been proposed. For example, Patent Document 1 is a screw machining device that performs tapping while the feed shaft follows the rotation of the main shaft, and calculates a feed command value for the feed shaft from the rotation speed and rotational acceleration of the main shaft and the screw pitch. In addition, a screw machining apparatus is disclosed in which the feed command value is corrected in accordance with the actual rotational position of the spindle, thereby improving the accuracy of tapping. Patent Document 2 discloses a spindle motor acceleration / deceleration control method for a numerical controller that performs synchronous control of a spindle and a feed axis for tapping, where the numerical controller is an acceleration / deceleration command corresponding to the output characteristics of the spindle. A spindle motor acceleration / deceleration control method is disclosed in which the response of the spindle is improved by controlling the spindle in accordance with this acceleration / deceleration command, and as a result, the cycle time can be shortened.

特許第2629729号公報Japanese Patent No. 2629729 特許第3553741号公報Japanese Patent No. 3553741

主軸と送り軸との同期運転によりタップ加工を行う工作機械では、一般に、主軸が有する加速能力に依存してサイクルタイムが決まる。数値制御装置が主軸の出力特性に対応する加減速指令を作成するために要するパラメータの設定や調整等の、高度な技術が要求される予備作業を行うことなく、より簡単な構成で、主軸の加速能力を最大限に発揮させる制御を行ってサイクルタイムを短縮できるようにすることが望まれている。   In a machine tool that performs tapping by synchronous operation of the main shaft and the feed shaft, the cycle time is generally determined depending on the acceleration capability of the main shaft. With a simpler configuration, the numerical control device can perform the spindle operation without performing preliminary work that requires advanced technology, such as parameter settings and adjustments required for creating acceleration / deceleration commands corresponding to the output characteristics of the spindle. It is desired that the cycle time can be shortened by performing control to maximize the acceleration capability.

本発明の一態様は、主軸と送り軸との同期運転を制御する工作機械の制御装置であって、タップ加工プログラムに基づき主軸指令及び送り軸指令を作成する数値制御部と、主軸指令に従って主軸の回転動作を制御する主軸制御部と、主軸の回転位置を検出する回転検出部と、送り軸指令に従って、回転位置に基づき送り軸の送り動作を制御する送り軸制御部とを具備し、数値制御部は、始動位置から目標位置に至る間の主軸の総回転量と最高回転速度とをタップ加工プログラムから取得して、総回転量と最高回転速度とを主軸指令として主軸制御部に送る主軸指令出力部を備え、主軸制御部は、最高回転速度を目標値とする速度制御により始動位置から主軸を最大能力で加速回転させる初期動作制御部と、最大能力での加速回転の間に、回転位置に基づき主軸の予め定めた単位時間毎の回転量を検出する回転量検出部と、検出した単位時間毎の回転量を記憶する回転量記憶部と、総回転量と回転位置とに基づき、現在位置から目標位置に至るまでの主軸の残回転量を検出する残回転量検出部と、最大能力での加速回転の後に、単位時間毎の回転量と残回転量とに基づき、主軸を減速回転させて目標位置で停止させるための位置制御を実行する位置決め動作制御部と、を備える制御装置である。   One aspect of the present invention is a machine tool control device that controls synchronous operation of a spindle and a feed axis, a numerical control unit that creates a spindle command and a feed axis command based on a tap machining program, and a spindle according to the spindle command A spindle control unit that controls the rotation operation of the spindle, a rotation detection unit that detects the rotation position of the spindle, and a feed axis control unit that controls the feed operation of the feed axis based on the rotation position according to the feed axis command. The control unit acquires the total rotation amount and the maximum rotation speed of the main shaft from the start position to the target position from the tapping program, and sends the total rotation amount and the maximum rotation speed to the main shaft control unit as a main shaft command. A command output unit is provided, and the spindle control unit rotates between the initial operation control unit that accelerates and rotates the spindle at the maximum capacity from the start position by speed control with the maximum rotation speed as the target value, and the acceleration rotation at the maximum capacity. Based on the rotation amount detection unit for detecting the rotation amount per unit time of the spindle based on the position, the rotation amount storage unit for storing the detected rotation amount per unit time, the total rotation amount and the rotation position, The remaining rotation amount detection unit that detects the remaining amount of rotation of the main spindle from the current position to the target position, and after accelerating rotation at the maximum capacity, the main shaft is decelerated based on the rotation amount per unit time and the remaining rotation amount And a positioning operation control unit that executes position control for rotating and stopping at a target position.

本発明の他の態様は、主軸と送り軸との同期運転を制御する工作機械の制御方法であって、制御装置が、始動位置から目標位置に至る間の主軸の総回転量と最高回転速度とをタップ加工プログラムから取得するステップと、最高回転速度を目標値とする速度制御により始動位置から主軸を最大能力で加速回転させるステップと、最大能力での加速回転の間に、主軸の回転位置フィードバック値に基づき主軸の予め定めた単位時間毎の回転量を検出して記憶するステップと、総回転量と回転位置フィードバック値とに基づき、現在位置から目標位置に至るまでの主軸の残回転量を検出するステップと、最大能力での加速回転の後に、単位時間毎の回転量と残回転量とに基づき、主軸を減速回転させて目標位置で停止させるための位置制御を実行するステップと、を備える制御方法である。   Another aspect of the present invention is a machine tool control method for controlling the synchronous operation of a main shaft and a feed shaft, wherein the control device has a total rotation amount and a maximum rotation speed of the main shaft from the start position to the target position. The rotation position of the spindle between the step of acquiring from the tapping program, the step of accelerating and rotating the spindle from the starting position at the maximum capacity by speed control with the maximum rotation speed as the target value, and the acceleration rotation at the maximum capacity The step of detecting and storing the rotation amount of the spindle per unit time based on the feedback value, and the remaining rotation amount of the spindle from the current position to the target position based on the total rotation amount and the rotation position feedback value After detecting acceleration and accelerating rotation at maximum capacity, position control is performed to decelerate the spindle and stop it at the target position based on the rotation amount per unit time and the remaining rotation amount A step that is a control method comprising a.

一態様に係る制御装置によれば、主軸に始動位置から目標位置までの回転動作を行わせる際に、数値制御部が主軸制御部に対して、主軸の総回転量と最高回転速度のみを主軸指令として通知し、主軸制御部がこの主軸指令に従い、最高回転速度を目標に許容電流を最大限に使用した最大出力で主軸を加速させて回転動作を実行するとともに、その間に記憶した主軸の単位時間毎の回転量と主軸の残回転量とに基づき、主軸を減速回転させて目標位置で停止させる構成としたから、数値制御部に対し主軸の出力特性に対応する加減速指令を作成するためのパラメータの設定や調整等を行う必要がなく、より簡単な構成で、主軸の加速能力を最大限に発揮させる加減速制御を行って、タップ加工のサイクルタイムを短縮することが可能になる。しかも、主軸制御部は、最大出力での加速回転中に記憶した主軸の単位時間毎の回転量を用いて、減速回転のための位置制御の指令値を作成できるので、位置制御を容易かつ迅速に実行して主軸を目標位置で停止させることができる。   According to the control device according to one aspect, when causing the spindle to rotate from the start position to the target position, the numerical control unit determines only the total rotation amount and the maximum rotation speed of the spindle relative to the spindle control unit. Command, and the spindle control unit executes the rotation operation by accelerating the spindle with the maximum output that uses the maximum allowable current with the maximum rotation speed as the target according to this spindle command, and the spindle unit stored during that time Based on the amount of rotation per hour and the remaining amount of rotation of the main shaft, the main shaft is decelerated and stopped at the target position. In order to create an acceleration / deceleration command corresponding to the output characteristics of the main shaft to the numerical controller It is not necessary to set or adjust the parameters, and it is possible to reduce the tapping cycle time by performing acceleration / deceleration control that maximizes the acceleration capability of the spindle with a simpler configuration. Moreover, the spindle control unit can create a position control command value for decelerating rotation using the rotation amount of the spindle per unit time stored during acceleration rotation at the maximum output, so that position control can be performed easily and quickly. Can be executed to stop the spindle at the target position.

他の態様に係る制御方法によれば、上記した制御装置の効果と同等の効果が奏される。   According to the control method according to another aspect, an effect equivalent to the effect of the control device described above is exhibited.

工作機械制御装置の第1実施形態の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of 1st Embodiment of a machine tool control apparatus. 工作機械制御方法の第1実施形態の構成を示すフローチャートである。It is a flowchart which shows the structure of 1st Embodiment of the machine tool control method. 図2の実施形態における主軸の動作の一例を示す図である。It is a figure which shows an example of operation | movement of the main axis | shaft in embodiment of FIG. 図2の実施形態における主軸の動作の他の例を示す図である。It is a figure which shows the other example of operation | movement of the main axis | shaft in embodiment of FIG. 工作機械制御装置の第2実施形態の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of 2nd Embodiment of a machine tool control apparatus. 工作機械制御方法の第2実施形態の構成を示すフローチャートである。It is a flowchart which shows the structure of 2nd Embodiment of the machine tool control method. 図6の実施形態における主軸の動作の一例を示す図である。It is a figure which shows an example of operation | movement of the main axis | shaft in embodiment of FIG.

以下、添付図面を参照して本発明の実施の形態を説明する。全図面に渡り、対応する構成要素には共通の参照符号を付す。   Embodiments of the present invention will be described below with reference to the accompanying drawings. Corresponding components are denoted by common reference symbols throughout the drawings.

図1は、第1の実施形態による工作機械の制御装置10の構成を機能ブロックで示す。制御装置10は、主軸12と送り軸14との同期運転によりタップ加工を行う工作機械(例えば旋盤、ボール盤、マシニングセンタ等)において、送り軸14が、タップ加工プログラムPで指定されるねじピッチを考慮しながら、主軸12の回転動作に追従するように動作する同期運転(いわゆるマスター・スレーブ同期方式)を制御するものである。図示しないが、主軸12は、ワークや工具を把持する把持部を加工に必要な速度で回転運動させる主軸モータ等の駆動装置に設定される制御軸である。図示しないが、送り軸14は、ワークや工具を支持する支持部を加工に必要な速度で送り運動させるサーボモータ等の駆動装置に設定される制御軸である。例えば旋盤では、主軸12で回転するワークに対して工具を送り軸14で直線送りしたり、主軸12で回転するワークを工具に対して送り軸14で直線送りしたりすることができる。またボール盤では、主軸12で回転する工具をワークに対して送り軸14で直線送りしたり、主軸12で回転する工具に対してワークを送り軸14で直線送りしたりすることができる。いずれの場合も、動作中の加減速トルクに比較的余裕の有る送り軸14が、動作中の加減速トルクに比較的余裕の無い主軸12に追従するように動作することで、同期誤差を低減して加工精度を向上させることができる。なお本発明において、工作機械の構成は特に限定されない。   FIG. 1 is a functional block diagram showing the configuration of a machine tool control apparatus 10 according to the first embodiment. In a machine tool (for example, a lathe, a drilling machine, a machining center, etc.) that performs tapping by synchronous operation of the main shaft 12 and the feeding shaft 14, the control device 10 considers the screw pitch specified by the tapping program P. On the other hand, synchronous operation (so-called master-slave synchronization method) that operates so as to follow the rotational operation of the main shaft 12 is controlled. Although not shown, the spindle 12 is a control axis set in a drive device such as a spindle motor that rotates a gripping part that grips a workpiece or a tool at a speed necessary for machining. Although not shown, the feed shaft 14 is a control shaft set in a drive device such as a servo motor that feeds and moves a support portion that supports a workpiece or a tool at a speed necessary for machining. For example, in a lathe, a tool can be linearly fed with a feed shaft 14 to a workpiece rotating on the main shaft 12, or a work rotated with the main shaft 12 can be linearly fed to the tool with a feed shaft 14. In the drilling machine, the tool rotating on the main shaft 12 can be linearly fed to the workpiece by the feed shaft 14, or the workpiece can be linearly fed by the feed shaft 14 to the tool rotating on the main shaft 12. In either case, the feed shaft 14 having a relatively large margin for operating acceleration / deceleration torque operates so as to follow the spindle 12 having a relatively small margin for operating acceleration / deceleration torque, thereby reducing synchronization errors. Thus, processing accuracy can be improved. In the present invention, the configuration of the machine tool is not particularly limited.

制御装置10は、タップ加工プログラムPに基づき主軸指令CS及び送り軸指令CFを作成する数値制御部16と、主軸指令CSに従って主軸12の回転動作を制御する主軸制御部18と、主軸12の回転位置を検出する回転検出部20と、送り軸指令CFに従って、回転検出部20が検出した回転位置に基づき送り軸14の送り動作を制御する送り軸制御部22とを備える。数値制御部16は、タップ加工プログラムPを解釈するプログラム解釈部24と、プログラム解釈部24の解釈に従い主軸指令CSを作成して、主軸制御部18に主軸指令CSを送る主軸指令出力部26と、プログラム解釈部24の解釈に従い送り軸指令CFを作成して、送り軸制御部22に送り軸指令CFを送る送り軸指令出力部28とを備える。数値制御部16は、公知のCNC装置のハードウェア構成を有することができる。   The control device 10 includes a numerical control unit 16 that generates a spindle command CS and a feed axis command CF based on the tap machining program P, a spindle control unit 18 that controls the rotation operation of the spindle 12 according to the spindle command CS, and the rotation of the spindle 12. A rotation detection unit 20 that detects the position, and a feed axis control unit 22 that controls the feed operation of the feed shaft 14 based on the rotation position detected by the rotation detection unit 20 in accordance with the feed axis command CF. The numerical control unit 16 includes a program interpretation unit 24 that interprets the tap machining program P, a spindle command CS that generates a spindle command CS according to the interpretation of the program interpretation unit 24, and a spindle command output unit 26 that sends the spindle command CS to the spindle control unit 18. And a feed axis command output unit 28 that generates a feed axis command CF according to the interpretation of the program interpretation unit 24 and sends the feed axis command CF to the feed axis control unit 22. The numerical control unit 16 can have a hardware configuration of a known CNC device.

主軸指令出力部26は、タップ加工の開始に先立ち、プログラム解釈部24が解釈したタップ加工プログラムPの指令値から、始動位置(回転位置)から目標位置(回転位置)に至る間の主軸12の総回転量S0と最高回転速度V0とを取得して、これら総回転量S0と最高回転速度V0とを主軸指令CSとして主軸制御部18に送る。例えばタップ加工プログラムPが、主軸12の最高回転速度(この例では1分間当りの最大回転数)V0を3000rev/minとして、ねじピッチ1.25mm、ねじ深さ30mmの雌ねじを加工する指令を含む場合、始動位置である加工開始位置から目標位置である目標ねじ深さに至る間の主軸12の総回転量S0は、30÷1.25=24(rev)となるから、主軸指令出力部26は、V0=3000(rev/min)とS0=24(rev)とを主軸制御部18に通知する。このように主軸指令CSは、主軸12を目標位置(目標ねじ深さ)まで回転運動させるための位置指令や加減速指令を含まないものとなっている。   Prior to the start of tapping, the main spindle command output unit 26 determines the main shaft 12 from the starting position (rotational position) to the target position (rotational position) from the command value of the tap machining program P interpreted by the program interpretation unit 24. The total rotation amount S0 and the maximum rotation speed V0 are acquired, and the total rotation amount S0 and the maximum rotation speed V0 are sent to the spindle control unit 18 as a spindle command CS. For example, the tapping program P includes a command for machining a female screw having a screw pitch of 1.25 mm and a screw depth of 30 mm, assuming that the maximum rotation speed (in this example, the maximum rotation speed per minute) V0 of the spindle 12 is 3000 rev / min. In this case, since the total rotation amount S0 of the spindle 12 from the machining start position as the start position to the target screw depth as the target position is 30 ÷ 1.25 = 24 (rev), the spindle command output unit 26 Notifies the spindle controller 18 of V0 = 3000 (rev / min) and S0 = 24 (rev). Thus, the spindle command CS does not include a position command or an acceleration / deceleration command for rotating the spindle 12 to the target position (target screw depth).

主軸制御部18は、回転検出部20が検出した主軸12の回転位置FBS(すなわちフィードバック値)を用いて、一般的なフィードバック制御により主軸12の回転動作を制御する。送り軸制御部22は、送り軸14の送り位置のフィードバック値に加えて、主軸12の回転位置FBSを用いて、フィードバック制御により主軸12の動作に追従する送り軸14の送り動作を制御する。なお回転検出部20は、主軸12の駆動装置の動作位置を検出するエンコーダ等の位置検出器(図示せず)の出力から、回転位置FBSを取得することができる。   The main shaft control unit 18 controls the rotation operation of the main shaft 12 by general feedback control using the rotation position FBS (that is, feedback value) of the main shaft 12 detected by the rotation detection unit 20. In addition to the feedback value of the feed position of the feed shaft 14, the feed shaft control unit 22 uses the rotational position FBS of the main shaft 12 to control the feed operation of the feed shaft 14 that follows the operation of the main shaft 12 by feedback control. The rotation detection unit 20 can acquire the rotation position FBS from the output of a position detector (not shown) such as an encoder that detects the operating position of the drive device of the main shaft 12.

主軸制御部18は、主軸指令出力部26から送られた最高回転速度V0を目標値とする速度制御により始動位置から主軸12を最大能力で加速回転させる初期動作制御部30と、最大能力での加速回転の間に、回転位置FBSに基づき主軸12の予め定めた単位時間t毎の回転量Sdを検出する回転量検出部32と、検出した単位時間t毎の回転量Sdを記憶する回転量記憶部34と、主軸指令出力部26から送られた総回転量S0と回転位置FBSとに基づき、現在位置(回転位置)から目標位置に至るまでの主軸12の残回転量Srを検出する残回転量検出部36と、最大能力での加速回転の後に、回転量記憶部34に記憶した単位時間t毎の回転量Sdと残回転量検出部36が検出した残回転量Srとに基づき、主軸12を減速回転させて目標位置で停止させるための位置制御を実行する位置決め動作制御部38とを備える。   The spindle control unit 18 includes an initial operation control unit 30 for accelerating and rotating the spindle 12 at the maximum capacity from the starting position by speed control with the maximum rotation speed V0 sent from the spindle command output unit 26 as a target value. A rotation amount detection unit 32 that detects a rotation amount Sd per unit time t of the spindle 12 based on the rotation position FBS during acceleration rotation, and a rotation amount that stores the rotation amount Sd detected per unit time t. Based on the total rotation amount S0 and the rotation position FBS sent from the storage unit 34 and the spindle command output unit 26, the remaining rotation amount Sr for detecting the remaining rotation amount Sr of the spindle 12 from the current position (rotation position) to the target position is detected. Based on the rotation amount detection unit 36 and the rotation amount Sd per unit time t stored in the rotation amount storage unit 34 and the remaining rotation amount Sr detected by the remaining rotation amount detection unit 36 after the acceleration rotation with the maximum capacity, Spindle 12 is decelerated and rotated And a positioning operation control unit 38 to perform position control for stopping at the target position Te.

回転量Sdの検出時間である単位時間tは、例えば、初期動作制御部30が主軸12を停止状態から最高回転速度V0に到達させるに要することが想定される時間(つまり最大能力での加速回転の全時間)T0を、任意の除数で分割した時間として設定できる。例えば単位時間tは、T0の1/50以上とすることができ、またT0の1/10以下とすることができる。また単位時間tは、例えば主軸12の動作制御周期(一般に数ms)と同一とすることができる。単位時間tが短いほど、位置決め動作制御部38が実行する位置制御の位置決め精度を向上できる。単位時間tが長いほど、位置決め動作制御部38における指令値の計算負荷を緩和できるとともに、回転量記憶部34の記憶容量を削減できる。予め設定した単位時間tは、例えば制御装置10のメモリ(図示せず)に制御用パラメータの1つとして格納できる。   The unit time t, which is the detection time of the rotation amount Sd, is, for example, the time required for the initial motion control unit 30 to reach the maximum rotational speed V0 from the stopped state (that is, accelerated rotation at the maximum capacity). Total time) T0 can be set as a time divided by an arbitrary divisor. For example, the unit time t can be 1/50 or more of T0, and can be 1/10 or less of T0. The unit time t can be set to be the same as, for example, the operation control period (generally several ms) of the spindle 12. As the unit time t is shorter, the positioning accuracy of the position control executed by the positioning operation control unit 38 can be improved. As the unit time t is longer, the calculation load of the command value in the positioning operation control unit 38 can be reduced, and the storage capacity of the rotation amount storage unit 34 can be reduced. The preset unit time t can be stored as one of the control parameters in a memory (not shown) of the control device 10, for example.

制御装置10は、工作機械を用いたタップ加工において、ワークの下穴を工具で目標ねじ深さまで切削するための主軸12の回転動作(本願で切削動作と称する)を制御することができる。また制御装置10は、工作機械を用いたタップ加工において、ワークの下穴を目標ねじ深さまで切削加工した後に工具をワークから引き抜くための主軸12の回転動作(本願で戻り動作と称する)を制御することができる。切削動作の制御では、「始動位置」はタップ加工の「加工開始位置」に相当し、「目標位置」はタップ加工の「目標ねじ深さ」に相当する。また戻り動作の制御では、「始動位置」はタップ加工の「目標ねじ深さ」に相当し、「目標位置」はタップ加工の「戻り完了位置」に相当する。   The control device 10 can control a rotation operation (referred to as a cutting operation in the present application) of the spindle 12 for cutting a prepared hole of a workpiece to a target screw depth with a tool in tapping using a machine tool. Further, the control device 10 controls the rotation operation (referred to as return operation in the present application) of the spindle 12 for pulling out the tool from the workpiece after cutting the pilot hole of the workpiece to the target screw depth in tapping using a machine tool. can do. In the control of the cutting operation, the “starting position” corresponds to the “machining start position” of tapping, and the “target position” corresponds to the “target screw depth” of tapping. In the control of the return operation, the “starting position” corresponds to the “target screw depth” for tapping, and the “target position” corresponds to the “return completion position” for tapping.

図2は、制御装置10が実行する工作機械制御方法の第1の実施形態を示す。また図3及び図4は、図2の制御方法によって実現される主軸12の動作の二つの異なる例を示す。この実施形態による制御方法は、タップ加工における主軸12の切削動作と戻り動作との双方を制御できるものである。なお以下の説明では、理解を助けるため、切削動作の制御に関する用語として「総回転量」、「最高回転速度」、「加速回転」、「単位時間毎の回転量」、「残回転量」、「現在速度」及び「減速回転」を用いる一方、戻り動作の制御に関してはそれぞれに対応する実質同義の用語として「総戻り回転量」、「最高戻り回転速度」、「加速逆回転」、「単位時間毎の戻り回転量」、「残戻り回転量」、「逆回転の現在速度」及び「減速逆回転」を用いる。   FIG. 2 shows a first embodiment of a machine tool control method executed by the control device 10. 3 and 4 show two different examples of the operation of the spindle 12 realized by the control method of FIG. The control method according to this embodiment can control both the cutting operation and the return operation of the spindle 12 in tapping. In the following explanation, to help understanding, terms related to the control of the cutting operation are “total rotation amount”, “maximum rotation speed”, “acceleration rotation”, “rotation amount per unit time”, “remaining rotation amount”, While "current speed" and "decelerated rotation" are used, the terms of the return operation are substantially synonymous terms corresponding to "total return rotation amount", "maximum return rotation speed", "acceleration reverse rotation", "unit" “Return amount per time”, “Remaining return amount”, “Current speed of reverse rotation” and “Deceleration reverse rotation” are used.

まず、図2のフローチャートを図1と共に参照して、制御装置10が実行する主軸12の切削動作制御方法を説明する。ステップU1で、数値制御部16(主軸指令出力部26)は、プログラム解釈部24が解釈したタップ加工プログラムPの指令値から、加工開始位置(始動位置)から目標ねじ深さ(目標位置)に至る間の主軸12の総回転量S0と最高回転速度V0とを取得して、主軸制御部18に総回転量S0と最高回転速度V0とを指令する。ステップU2で、主軸制御部18(初期動作制御部30)は、最高回転速度V0を目標速度とする速度制御により、加工開始位置から主軸12を、駆動源の許容電流を最大限に利用した最大能力で加速回転させて切削動作を実行する。ステップU3で、主軸制御部18(残回転量検出部36)は、加速回転中の現在位置からの残回転量Srを逐次検出する。検出した残回転量Srは、検出の都度、主軸制御部18が数値制御部16に通知する。ステップU4で、主軸制御部18(回転量検出部32、回転量記憶部34)は、最大能力での加速回転の間に、回転位置FBSに基づき主軸12の単位時間t毎の回転量Sdを逐次検出して記憶する。主軸制御部18は、ステップU2〜U4を同時並行処理できる。   First, with reference to the flowchart of FIG. 2 together with FIG. In Step U1, the numerical control unit 16 (spindle command output unit 26) changes from the machining start position (starting position) to the target screw depth (target position) from the command value of the tap machining program P interpreted by the program interpretation unit 24. The total rotation amount S0 and the maximum rotation speed V0 of the main shaft 12 are acquired, and the total rotation amount S0 and the maximum rotation speed V0 are commanded to the main spindle control unit 18. In step U2, the spindle control unit 18 (initial motion control unit 30) performs maximum control using the allowable current of the drive source from the machining start position to the maximum by speed control with the maximum rotational speed V0 as the target speed. The cutting operation is executed by accelerating rotation with the ability. In Step U3, the spindle control unit 18 (residual rotation amount detection unit 36) sequentially detects the remaining rotation amount Sr from the current position during the acceleration rotation. The spindle control unit 18 notifies the numerical control unit 16 of the detected remaining rotation amount Sr each time it is detected. In Step U4, the spindle control unit 18 (the rotation amount detection unit 32, the rotation amount storage unit 34) calculates the rotation amount Sd of the main shaft 12 per unit time t based on the rotation position FBS during the acceleration rotation with the maximum capacity. Sequentially detect and store. The spindle control unit 18 can simultaneously perform steps U2 to U4.

次にステップU5で、主軸制御部18(位置決め動作制御部38)は、残回転量Srが総回転量S0の1/2以下になっているか否かを判断する。SrがS0の1/2以下になっている場合、ステップU6で、主軸制御部18(位置決め動作制御部38)は、単位時間t毎の回転量Sdと残回転量Srとに基づき、主軸12を減速回転させて切削動作を継続実行し、目標ねじ深さで停止させる。SrがS0の1/2以下になっていない場合はステップU4に戻る。   Next, in Step U5, the spindle control unit 18 (positioning operation control unit 38) determines whether or not the remaining rotation amount Sr is equal to or less than ½ of the total rotation amount S0. When Sr is ½ or less of S0, in Step U6, the spindle control unit 18 (positioning operation control unit 38) determines the spindle 12 based on the rotation amount Sd and the remaining rotation amount Sr per unit time t. Is rotated at a reduced speed to continue the cutting operation and stop at the target screw depth. If Sr is not less than 1/2 of S0, the process returns to step U4.

ここで図3を参照すると、主軸12の現在速度が最高回転速度V0に達する前に残回転量Srが総回転量S0の1/2になった場合(ステップU5の判断がYESの場合)の、主軸12の切削動作の一例が、速度−時間曲線(時間軸の上側の曲線)で示されている。図3において、Vbは、始動から速度Vbまでは一定トルクでの加速(つまり一定加速度)が可能な回転速度(例えば主軸モータの基底速度)として、主軸12に予め設定されたものであって、例えば制御装置10のメモリ(図示せず)に制御用パラメータの1つとして格納できるものである。なお実用上、速度Vbは、主軸モータの基底速度(主軸モータと主軸12との間に減速比が存在する場合は減速比を考慮した速度)以下であればよい。   Referring now to FIG. 3, when the remaining rotational speed Sr becomes 1/2 of the total rotational speed S0 before the current speed of the spindle 12 reaches the maximum rotational speed V0 (when the determination in step U5 is YES). An example of the cutting operation of the main shaft 12 is shown by a speed-time curve (curve on the upper side of the time axis). In FIG. 3, Vb is preset in the spindle 12 as a rotational speed (for example, the base speed of the spindle motor) that can be accelerated with a constant torque (ie, constant acceleration) from the start to the speed Vb, For example, it can be stored as one of the control parameters in a memory (not shown) of the control device 10. In practice, the speed Vb may be equal to or less than the base speed of the spindle motor (a speed in consideration of the reduction ratio when a reduction ratio exists between the spindle motor and the spindle 12).

ステップU2における主軸12の最大能力の加速回転(速度制御)は、図3の時間T1及びT2で実行される。時間T1は、加工開始位置での始動から速度Vbに達するまでの一定加速度(最大加速度)の時間であり、時間T2は、速度Vbを超えて主軸モータの特性により自動的に加速度が最大加速度から漸減する時間である。これら時間T1及びT2(つまり加速回転の全時間T0)で、ステップU4における主軸12の単位時間t毎の回転量Sdの検出及び記憶が実行される。単位時間tを速度制御の時間(T1+T2)の1/n(nは2以上の整数)とすると、回転量検出部32は、始動から単位時間t経過時点までの回転量Sd、単位時間t経過時点から単位時間t経過時点までの回転量Sd、……、単位時間t(n−1)経過時点から単位時間t経過時点までの回転量Sdを逐次リアルタイムで検出する。回転量記憶部34には、回転量検出部32が検出した全ての回転量Sd〜Sdが、検出の都度格納される。回転量Sdの検出及び記憶は、残回転量Srが総回転量S0の1/2になる(つまり加工開始位置からの回転量が総回転量S0の1/2になる)まで行われる。この構成では、ΣSd=Sd+Sd+……+Sd=S0/2である。 The maximum capacity acceleration rotation (speed control) of the main spindle 12 in step U2 is executed at times T1 and T2 in FIG. Time T1 is a time of constant acceleration (maximum acceleration) from the start at the machining start position until reaching the speed Vb, and time T2 exceeds the speed Vb and the acceleration is automatically increased from the maximum acceleration due to the characteristics of the spindle motor. Time to gradually decrease. At these times T1 and T2 (that is, the acceleration rotation total time T0), the detection and storage of the rotation amount Sd of the spindle 12 per unit time t in step U4 is executed. Assuming that the unit time t is 1 / n of the speed control time (T1 + T2) (n is an integer equal to or greater than 2), the rotation amount detection unit 32 determines the rotation amount Sd 1 from the start to the time point when the unit time t 1 has elapsed, t 1 unit from the elapsed time period t 2 until the elapsed time amount of rotation Sd 2, ......, the unit time t (n-1) sequentially detects in real time the rotation amount Sd n from the elapsed time to time the unit time t n passed . The rotation amount storage unit 34, all of the rotation amount Sd 1 to SD n the rotation amount detection unit 32 has detected is stored each time of the detection. The rotation amount Sd is detected and stored until the remaining rotation amount Sr becomes 1/2 of the total rotation amount S0 (that is, the rotation amount from the machining start position becomes 1/2 of the total rotation amount S0). In this configuration, ΣSd i = Sd 1 + Sd 2 +... + Sd n = S0 / 2.

残回転量Srが総回転量S0の1/2になった時点(ステップU5の判断がYESとなった時点)A(以下、中間点A)で、初期動作制御部30による主軸12の速度制御が終了し、位置決め動作制御部38が主軸12の位置制御を開始する。速度制御から位置制御への切り替えに伴い、主軸12の動作は加速回転から減速回転に変わり、時間T3及びT4で、ステップU6における主軸12の減速回転が実行される。減速回転中も残回転量検出部36は、主軸12の現在位置からの残回転量Srを逐次検出する。   The speed control of the spindle 12 by the initial motion control unit 30 at the time point A (hereinafter, the intermediate point A) when the remaining rotation amount Sr becomes ½ of the total rotation amount S0 (when the determination at step U5 is YES). The positioning operation control unit 38 starts position control of the spindle 12. With the switching from speed control to position control, the operation of the main shaft 12 changes from accelerated rotation to decelerated rotation, and the decelerated rotation of the main shaft 12 in step U6 is executed at times T3 and T4. The remaining rotation amount detection unit 36 sequentially detects the remaining rotation amount Sr from the current position of the spindle 12 during the deceleration rotation.

ステップU6において、位置決め動作制御部38は、逐次検出されている残回転量Srを監視し、速度制御の間に記憶した主軸12の単位時間t毎の回転量Sd(つまりSd〜Sd)を残回転量Srと対応させて、現在位置から単位時間t経過後の位置を表す位置制御の指令値を作成する。具体的には、主軸12を、中間点A(つまりSr=S0/2)から単位時間t経過後にSr=(S0/2−Sd)の位置に到達させる指令値、Sr=(S0/2−Sd)の位置から単位時間t経過後にSr=(S0/2−Sd−Sd(n−1))の位置に到達させる指令値、……、及びSr=(S0/2−Sd−Sd(n−1)−……−Sd)の位置から単位時間t経過後にSr=(S0/2−Sd−Sd(n−1)−……−Sd−Sd)=0の位置(すなわち目標ねじ深さ)に到達させる指令値を作成する。主軸12は、こうして作成された位置制御の指令値に従って動作することで、中間点A到達時を境に加速回転中の速度−時間曲線を反転した速度−時間曲線で表される負の加速度を生じながら、中間点Aから目標ねじ深さに向かって減速回転する。図3から理解されるように、時間T3は、漸増する負の加速度で速度Vbまで減速する時間に相当し、時間T4は、速度Vbから一定加速度(負の最大加速度)で速度零に至るまでの時間に相当する。位置決め動作制御部38によるこのような位置制御により、主軸12は、目標ねじ深さ(Sr=0)に到達したときに回転を停止する。 In step U6, the positioning operation control unit 38 monitors the remaining rotation amount Sr that is sequentially detected, and the rotation amount Sd of the spindle 12 per unit time t stored during the speed control (that is, Sd 1 to Sd n ). Is associated with the remaining rotation amount Sr, and a position control command value representing the position after the unit time t has elapsed from the current position is created. Specifically, the main shaft 12, the midpoint A (i.e. Sr = S0 / 2) Sr = from after the unit time t elapses (S0 / 2-Sd n) command value to reach the position of, Sr = (S0 / 2 −Sd n ) command value to reach the position of Sr = (S0 / 2−Sd n −Sd (n−1) ) after elapse of the unit time t, and Sr = (S0 / 2−Sd n -Sd (n-1) - ...... -Sd 2 Sr = after unit time t elapses from the position) (S0 / 2-Sd n -Sd (n-1) - ...... -Sd 2 -Sd 1) = 0 A command value for reaching the position (namely, the target screw depth) is created. The spindle 12 operates in accordance with the position control command value created in this way, so that the negative acceleration represented by the speed-time curve obtained by inverting the speed-time curve during acceleration rotation when the intermediate point A is reached is a boundary. While it occurs, it rotates at a reduced speed from the intermediate point A toward the target screw depth. As can be seen from FIG. 3, time T3 corresponds to time to decelerate to velocity Vb with a gradually increasing negative acceleration, and time T4 reaches from velocity Vb to zero velocity with constant acceleration (negative maximum acceleration). Is equivalent to By such position control by the positioning operation control unit 38, the spindle 12 stops rotating when it reaches the target screw depth (Sr = 0).

図2に示す工作機械制御方法は、主軸12を始動位置から目標位置まで動作させる間に、速度制御においては駆動源の最大能力で主軸12を加速回転させ、位置制御においては速度制御中に取得した単位時間t毎の回転量Sdを用いて主軸12を減速回転させるように構成されているから、速度制御ループの実行中を除いて主軸12の現在速度を監視する必要が無いものである。この構成において、残回転量Srが総回転量S0の1/2になる前に主軸12の現在速度が最高回転速度V0に達した場合の主軸12の動作例を、図4を参照して説明する。   In the machine tool control method shown in FIG. 2, while the main shaft 12 is operated from the start position to the target position, the main shaft 12 is accelerated and rotated at the maximum capacity of the driving source in the speed control, and is acquired during the speed control in the position control. Since the main shaft 12 is decelerated and rotated using the rotation amount Sd per unit time t, it is not necessary to monitor the current speed of the main shaft 12 except during execution of the speed control loop. In this configuration, an example of the operation of the spindle 12 when the current speed of the spindle 12 reaches the maximum rotation speed V0 before the remaining rotation amount Sr becomes 1/2 of the total rotation amount S0 will be described with reference to FIG. To do.

図4は、主軸12が中間点Aに到達する前に主軸12の現在速度が最高回転速度V0に達した場合の、主軸12の切削動作の一例を、速度−時間曲線(時間軸の上側の曲線)で示す。図2のステップU2における主軸12の最大能力の加速回転(速度制御)は、図4の時間T1及びT2で実行される。時間T1では、主軸12は加工開始位置での始動から速度Vbに達するまで一定加速度(最大加速度)で加速し、時間T2では、速度Vbを超えて主軸モータの特性により加速度が最大加速度から漸減する。時間T2において、主軸12が中間点Aに到達する前に速度制御ループによって主軸12の現在速度が最高回転速度V0に達すると、それ以降、主軸12は、中間点Aに到達するまでの時間T5に渡り一定速度V0(つまり加速度零)で回転して切削動作を継続する。図2のステップU4における主軸12の単位時間t毎の回転量Sdの検出及び記憶は、時間T1及びT2(つまり加速回転の全時間T0)並びに時間T5で実行される。速度制御の時間T1、T2及びT5の間に、図3の動作例と同様に、回転量検出部32が検出した全ての回転量Sd〜Sdが回転量記憶部34に格納される。回転量Sdの検出及び記憶は、残回転量Srが総回転量S0の1/2になるまで行われる。この構成では、ΣSd=Sd+Sd+……+Sd=S0/2である。 FIG. 4 shows an example of a cutting operation of the main shaft 12 when the current speed of the main shaft 12 reaches the maximum rotational speed V0 before the main shaft 12 reaches the intermediate point A. Curve). Accelerated rotation (speed control) of the maximum capacity of the main shaft 12 in step U2 in FIG. 2 is executed at times T1 and T2 in FIG. At time T1, the spindle 12 is accelerated at a constant acceleration (maximum acceleration) from the start at the machining start position until reaching the speed Vb, and at time T2, the acceleration gradually decreases from the maximum acceleration beyond the speed Vb due to the characteristics of the spindle motor. . At time T2, when the current speed of the main shaft 12 reaches the maximum rotational speed V0 by the speed control loop before the main shaft 12 reaches the intermediate point A, the main shaft 12 thereafter reaches a time T5 until it reaches the intermediate point A. The cutting operation is continued by rotating at a constant speed V0 (that is, no acceleration). The detection and storage of the rotation amount Sd of the spindle 12 per unit time t in step U4 in FIG. 2 is executed at times T1 and T2 (that is, the total time T0 of acceleration rotation) and time T5. During the speed control of the times T1, T2 and T5, as with operation example of FIG. 3, all the rotational amount Sd 1 to SD n the rotation amount detection unit 32 has detected is stored in the rotation amount storage unit 34. The rotation amount Sd is detected and stored until the remaining rotation amount Sr becomes 1/2 of the total rotation amount S0. In this configuration, ΣSd i = Sd 1 + Sd 2 +... + Sd n = S0 / 2.

残回転量Srが総回転量S0の1/2になった時点A(中間点A)で、初期動作制御部30による主軸12の速度制御が終了し、位置決め動作制御部38が主軸12の位置制御を開始する。速度制御から位置制御への切り替えに伴い、主軸12の動作は加速回転から減速回転に変わり、時間T3及びT4で、図2のステップU6における主軸12の減速回転が実行される。ステップU6では、図3の動作例と同様に、位置決め動作制御部38が、逐次検出されている残回転量Srを監視し、速度制御の間に記憶した主軸12の単位時間t毎の回転量Sd(つまりSd〜Sd)を残回転量Srと対応させて、現在位置から単位時間t経過後の位置を表す位置制御の指令値を作成する。主軸12は、こうして作成された位置制御の指令値に従って動作することで、中間点A到達時を境に加速回転中の速度−時間曲線を反転した速度−時間曲線で表される負の加速度を生じながら、中間点Aから目標ねじ深さに向かって減速回転する。図4から理解されるように、時間T3は、最高回転速度V0での定速回転を経て漸増する負の加速度で速度Vbまで減速する時間に相当し、時間T4は、速度Vbから一定加速度(負の最大加速度)で速度零に至るまでの時間に相当する。位置決め動作制御部38によるこのような位置制御により、主軸12は、目標ねじ深さ(Sr=0)に到達したときに回転を停止する。 At the time point A (intermediate point A) when the remaining rotation amount Sr becomes ½ of the total rotation amount S0, the speed control of the main shaft 12 by the initial operation control unit 30 ends, and the positioning operation control unit 38 detects the position of the main shaft 12. Start control. With the switching from speed control to position control, the operation of the main shaft 12 changes from acceleration rotation to deceleration rotation, and at time T3 and T4, the main shaft 12 is decelerated and rotated at step U6 in FIG. In step U6, as in the operation example of FIG. 3, the positioning operation control unit 38 monitors the remaining rotation amount Sr that is sequentially detected, and the rotation amount per unit time t of the spindle 12 stored during the speed control. Sd (that is, Sd 1 to Sd n ) is associated with the remaining rotation amount Sr, and a position control command value representing a position after the unit time t has elapsed from the current position is created. The spindle 12 operates in accordance with the position control command value created in this way, so that the negative acceleration represented by the speed-time curve obtained by inverting the speed-time curve during acceleration rotation when the intermediate point A is reached is a boundary. While it occurs, it rotates at a reduced speed from the intermediate point A toward the target screw depth. As understood from FIG. 4, the time T3 corresponds to a time for decelerating to the speed Vb with a negative acceleration that gradually increases through a constant speed rotation at the maximum rotational speed V0, and the time T4 is a constant acceleration ( This corresponds to the time until the speed reaches zero at (negative maximum acceleration). By such position control by the positioning operation control unit 38, the spindle 12 stops rotating when it reaches the target screw depth (Sr = 0).

図3及び図4のいずれの動作例においても、主軸制御部18が主軸12の加工開始位置から目標ねじ深さまでの回転動作(切削動作)を制御する間、送り軸制御部22(図1)は、主軸12の回転位置FBSを用いて、送り軸14を主軸12の動作に追従するように制御して送り動作を行わせる。数値制御部16は、主軸制御部18がステップU2〜ステップU6の処理を実行する間、主軸制御部18から通知される残回転量Srを監視して、残回転量Srが第1の所定値(零に近い極小値)以下になったときに、タップ加工が目標ねじ深さに達したと判断する。   3 and 4, while the spindle control unit 18 controls the rotation operation (cutting operation) from the machining start position of the spindle 12 to the target screw depth, the feed shaft control unit 22 (FIG. 1). Uses the rotational position FBS of the main shaft 12 to control the feed shaft 14 so as to follow the operation of the main shaft 12 to perform the feed operation. The numerical control unit 16 monitors the remaining rotation amount Sr notified from the spindle control unit 18 while the main shaft control unit 18 executes the processes of Step U2 to Step U6, and the remaining rotation amount Sr is a first predetermined value. When the value becomes (minimum value close to zero) or less, it is determined that tapping has reached the target thread depth.

上記したように、制御装置10は、主軸12に加工開始位置から目標ねじ深さまでの切削動作を行わせる際に、数値制御部16が主軸制御部18に対して、主軸12の総回転量S0と最高回転速度V0のみを主軸指令CSとして通知し、主軸制御部18がこの主軸指令CSに従い、最高回転速度V0を目標に許容電流を最大限に使用した最大出力で主軸12を加速させて切削動作を実行するとともに、その間に記憶した主軸12の単位時間t毎の回転量Sdと逐次検出する主軸12の残回転量Srとに基づき、主軸12を減速回転させながら目標ねじ深さまでの切削動作を継続実行して目標ねじ深さで停止させるように構成されている。したがって制御装置10によれば、数値制御部16に対し主軸12の出力特性に対応する加減速指令を作成するためのパラメータの設定や調整等を行う必要がなく、より簡単な構成で、主軸12の加速能力を最大限に発揮させる加減速制御を行って、タップ加工のサイクルタイムを短縮することが可能になる。   As described above, when the controller 10 causes the spindle 12 to perform a cutting operation from the machining start position to the target screw depth, the numerical controller 16 controls the spindle controller 18 with respect to the total rotation amount S0 of the spindle 12. Only the maximum rotation speed V0 is notified as the spindle command CS, and the spindle control unit 18 accelerates the spindle 12 with the maximum output using the maximum allowable current for the maximum rotation speed V0 in accordance with the spindle command CS. Based on the rotation amount Sd of the main shaft 12 per unit time t stored during the operation and the remaining rotation amount Sr of the main shaft 12 detected sequentially, the cutting operation to the target screw depth is performed while rotating the main shaft 12 at a reduced speed. Is continuously executed and stopped at the target screw depth. Therefore, according to the control device 10, it is not necessary to set or adjust parameters for creating an acceleration / deceleration command corresponding to the output characteristics of the spindle 12 with respect to the numerical controller 16, and the spindle 12 can be configured with a simpler configuration. Acceleration / deceleration control that maximizes the acceleration capability of the tapping process can be performed to shorten the tapping cycle time.

しかも制御装置10によれば、主軸制御部18は、最大出力での加速回転中に記憶した主軸12の単位時間t毎の回転量Sdを用いて、減速回転のための位置制御の指令値を作成できるので、位置制御を容易かつ迅速に実行して主軸12を目標ねじ深さで停止させることができる。   In addition, according to the control device 10, the spindle control unit 18 uses the rotation amount Sd of the spindle 12 for each unit time t stored during the acceleration rotation at the maximum output to obtain a command value for position control for the deceleration rotation. Therefore, the main shaft 12 can be stopped at the target screw depth by executing the position control easily and quickly.

図1及び図2に示す実施形態において、制御装置10は、主軸12の前述した戻り動作に際し、加工開始位置から目標ねじ深さまでの上記した切削動作制御と同様の制御を行うことができる。図3及び図4は、上記した主軸12の切削動作に加えて、同切削動作に対応する主軸12の戻り動作を、速度−時間曲線(時間軸の下側の曲線)で示している。以下、図1〜図4を参照して、制御装置10が実行する主軸12の戻り動作制御方法を説明する。   In the embodiment shown in FIGS. 1 and 2, the control device 10 can perform the same control as the above-described cutting operation control from the machining start position to the target screw depth when the main shaft 12 is returned as described above. 3 and 4 show the return operation of the main shaft 12 corresponding to the cutting operation in addition to the above-described cutting operation of the main shaft 12 by a speed-time curve (curve on the lower side of the time axis). Hereinafter, with reference to FIG. 1 to FIG. 4, a method for controlling the return motion of the spindle 12 executed by the control device 10 will be described.

数値制御部16(主軸指令出力部26)は、タップ加工が目標ねじ深さに達したと判断した後に、ステップU1で、プログラム解釈部24が解釈したタップ加工プログラムPの指令値から、目標ねじ深さ(始動位置)から戻り完了位置(目標位置)に至る間の主軸12の総戻り回転量S0と最高戻り回転速度V0とを取得して、主軸制御部18に総戻り回転量S0と最高戻り回転速度V0とを指令する。戻り動作の主軸指令CSも、主軸12を戻り完了位置まで回転運動させるための位置指令や加減速指令を含まないものである。次にステップU2で、主軸制御部18(初期動作制御部30)は、最高戻り回転速度V0を目標速度とする速度制御により、目標ねじ深さから主軸12を、駆動源の許容電流を最大限に利用した最大能力で加速逆回転させて戻り動作を実行する。ステップU3で、主軸制御部18(残回転量検出部36)は、加速逆回転中の現在位置からの残戻り回転量Srを逐次検出する。検出した残戻り回転量Srは、検出の都度、主軸制御部18が数値制御部16に通知する。ステップU4で、主軸制御部18(回転量検出部32、回転量記憶部34)は、最大能力での加速逆回転の間に、回転位置FBSに基づき主軸12の単位時間t毎の戻り回転量Sdを逐次検出して記憶する。主軸制御部18は、ステップU2〜U4を同時並行処理できる。   After determining that the tapping has reached the target thread depth, the numerical control unit 16 (spindle command output unit 26) determines the target screw from the command value of the tapping program P interpreted by the program interpretation unit 24 in step U1. The total return rotation amount S0 and the maximum return rotation speed V0 of the spindle 12 from the depth (starting position) to the return completion position (target position) are acquired, and the total return rotation amount S0 and the maximum return rotation amount V0 are acquired by the spindle control unit 18. Command the return rotational speed V0. The spindle command CS for the return operation also does not include a position command or an acceleration / deceleration command for rotating the spindle 12 to the return completion position. Next, in Step U2, the spindle control unit 18 (initial motion control unit 30) maximizes the allowable current of the drive source for the spindle 12 from the target screw depth by speed control with the maximum return rotational speed V0 as the target speed. Execute the return motion by accelerating reverse rotation with the maximum capacity used for. In step U3, the spindle control unit 18 (remaining rotation amount detection unit 36) sequentially detects the remaining return rotation amount Sr from the current position during the reverse acceleration rotation. The spindle control unit 18 notifies the numerical control unit 16 of the detected return rotation amount Sr each time it is detected. In step U4, the spindle control unit 18 (rotation amount detection unit 32, rotation amount storage unit 34) returns the amount of return rotation per unit time t of the spindle 12 based on the rotational position FBS during acceleration reverse rotation with the maximum capacity. Sd is sequentially detected and stored. The spindle control unit 18 can simultaneously perform steps U2 to U4.

次にステップU5で、主軸制御部18は、残戻り回転量Srが総戻り回転量S0の1/2以下になっているか否かを判断する。SrがS0の1/2以下になっている場合、ステップU6で、主軸制御部18(位置決め動作制御部38)は、単位時間t毎の戻り回転量Sdと残戻り回転量Srとに基づき、主軸12を減速逆回転させて戻り動作を継続実行し、戻り完了位置で停止させる。SrがS0の1/2以下になっていない場合はステップU4に戻る。   Next, in Step U5, the spindle control unit 18 determines whether or not the remaining return rotation amount Sr is equal to or less than ½ of the total return rotation amount S0. When Sr is ½ or less of S0, in Step U6, the spindle control unit 18 (positioning operation control unit 38), based on the return rotation amount Sd and the remaining return rotation amount Sr per unit time t, The spindle 12 is decelerated and reversely rotated to continue the return operation and stop at the return completion position. If Sr is not less than 1/2 of S0, the process returns to step U4.

図3を参照すると、主軸12の逆回転の現在速度が最高戻り回転速度V0に達する前に残戻り回転量Srが総戻り回転量S0の1/2になった場合(ステップU5の判断がYESの場合)の、主軸12の戻り動作の一例が、速度−時間曲線(時間軸の下側の曲線)で示されている。ステップU2における主軸12の最大能力の加速逆回転(速度制御)は、図3の時間T6及びT7で実行される。時間T6は、目標ねじ深さでの始動から速度Vbに達するまでの一定加速度(最大加速度)の時間であり、時間T7は、速度Vbを超えて主軸モータの特性により自動的に加速度が最大加速度から漸減する時間である。これら時間T6及びT7(つまり加速回転の全時間T0)で、前述した切削動作の時間T1及びT2における処理と同様にして、ステップU4における主軸12の単位時間t毎の戻り回転量Sdの検出及び記憶が実行され、回転量検出部32が検出した全ての戻り回転量Sd〜Sdが回転量記憶部34に格納される。戻り回転量Sdの検出及び記憶は、残戻り回転量Srが総戻り回転量S0の1/2になる(つまり目標ねじ深さからの戻り回転量が総戻り回転量S0の1/2になる)まで行われる。この構成では、ΣSd=Sd+Sd+……+Sd=S0/2である。 Referring to FIG. 3, when the remaining return rotation amount Sr becomes 1/2 of the total return rotation amount S0 before the current speed of the reverse rotation of the main shaft 12 reaches the maximum return rotation speed V0 (determination in step U5 is YES). An example of the return operation of the main shaft 12 in the case of (1) is shown by a speed-time curve (curve below the time axis). The acceleration reverse rotation (speed control) of the maximum capacity of the main shaft 12 in step U2 is executed at times T6 and T7 in FIG. Time T6 is a time of constant acceleration (maximum acceleration) from the start at the target screw depth until reaching the speed Vb, and time T7 exceeds the speed Vb, and the acceleration is automatically accelerated according to the characteristics of the spindle motor. It is time to gradually decrease from. At these times T6 and T7 (that is, the entire acceleration rotation time T0), the return rotation amount Sd per unit time t of the spindle 12 in step U4 is detected in the same manner as the processing at the times T1 and T2 of the cutting operation described above. storing is executed, all of the return rotation amount Sd 1 to SD n the rotation amount detection unit 32 has detected is stored in the rotation amount storage unit 34. In the detection and storage of the return rotation amount Sd, the remaining return rotation amount Sr becomes 1/2 of the total return rotation amount S0 (that is, the return rotation amount from the target screw depth becomes 1/2 of the total return rotation amount S0). ) Is done. In this configuration, ΣSd i = Sd 1 + Sd 2 +... + Sd n = S0 / 2.

残戻り回転量Srが総戻り回転量S0の1/2になった時点(ステップU5の判断がYESとなった時点)A(中間点A)で、初期動作制御部30による主軸12の速度制御が終了し、位置決め動作制御部38が主軸12の位置制御を開始する。速度制御から位置制御への切り替えに伴い、主軸12の動作は加速逆回転から減速逆回転に変わり、時間T8及びT9で、ステップU6における主軸12の減速逆回転が実行される。減速逆回転中も残回転量検出部36は、主軸12の現在位置からの残戻り回転量Srを逐次検出する。   At the time point A (intermediate point A) when the remaining return rotation amount Sr becomes ½ of the total return rotation amount S0 (when the determination at step U5 is YES), the speed control of the spindle 12 by the initial motion control unit 30 is performed. The positioning operation control unit 38 starts position control of the spindle 12. As the speed control is switched to the position control, the operation of the main shaft 12 is changed from the reverse acceleration to the reverse rotation. At times T8 and T9, the reverse rotation of the main shaft 12 in step U6 is executed. The remaining rotation amount detection unit 36 sequentially detects the remaining return rotation amount Sr from the current position of the main shaft 12 even during the reverse deceleration rotation.

ステップU6において、位置決め動作制御部38は、前述した切削動作の時間T3及びT4における処理と同様にして、逐次検出されている残戻り回転量Srを監視し、速度制御の間に記憶した主軸12の単位時間t毎の戻り回転量Sd(つまりSd〜Sd)を残戻り回転量Srと対応させて、現在位置から単位時間t経過後の位置を表す位置制御の指令値を作成する。主軸12は、こうして作成された位置制御の指令値に従って動作することで、中間点A到達時を境に加速逆回転中の速度−時間曲線を反転した速度−時間曲線で表される負の加速度を生じながら、中間点Aから戻り完了位置に向かって減速逆回転する。図3から理解されるように、時間T8は、漸増する負の加速度で速度Vbまで減速する時間に相当し、時間T9は、速度Vbから一定加速度(負の最大加速度)で速度零に至るまでの時間に相当する。位置決め動作制御部38によるこのような位置制御により、主軸12は、戻り完了位置(Sr=0)に到達したときに回転を停止する。 In Step U6, the positioning operation control unit 38 monitors the remaining return rotation amount Sr detected sequentially and stores it during the speed control in the same manner as the processing at the times T3 and T4 of the cutting operation described above. return rotation amount per unit time t of Sd (i.e. Sd 1 ~Sd n) in correspondence with the remaining return rotation amount Sr, and creates a command value of the position control which represents the position after the unit time t elapses from the current position. The spindle 12 operates in accordance with the position control command value created in this way, so that a negative acceleration represented by a speed-time curve obtained by inverting the speed-time curve during acceleration reverse rotation when the intermediate point A is reached is a boundary. , Decelerate and reversely rotate from the intermediate point A toward the return completion position. As can be seen from FIG. 3, time T8 corresponds to time to decelerate to speed Vb with a gradually increasing negative acceleration, and time T9 extends from speed Vb to zero speed with constant acceleration (negative maximum acceleration). Is equivalent to By such position control by the positioning operation control unit 38, the spindle 12 stops rotating when it reaches the return completion position (Sr = 0).

図4を参照すると、主軸12が中間点Aに到達する前に主軸12の逆回転の現在速度が最高戻り回転速度V0に達した場合の、主軸12の戻り動作の一例が、速度−時間曲線(時間軸の下側の曲線)で示されている。図2のステップU2における主軸12の最大能力の加速逆回転(速度制御)は、図4の時間T6及びT7で実行される。時間T6では、主軸12は目標ねじ深さでの始動から速度Vbに達するまで一定加速度(最大加速度)で加速し、時間T7では、速度Vbを超えて主軸モータの特性により加速度が最大加速度から漸減する。時間T7において、主軸12が中間点Aに到達する前に速度制御ループによって主軸12の逆回転の現在速度が最高戻り回転速度V0に達すると、それ以降、主軸12は、中間点Aに到達するまでの時間T10に渡り一定速度V0(つまり加速度零)で回転して戻り動作を継続する。図2のステップU4における主軸12の単位時間t毎の戻り回転量Sdの検出及び記憶は、時間T6及びT7(つまり加速回転の全時間T0)並びに時間T10で実行される。速度制御の時間T6、T7及びT10の間に、図3の動作例と同様に、回転量検出部32が検出した全ての戻り回転量Sd〜Sdが回転量記憶部34に格納される。戻り回転量Sdの検出及び記憶は、残戻り回転量Srが総戻り回転量S0の1/2になるまで行われる。この構成では、ΣSd=Sd+Sd+……+Sd=S0/2である。 Referring to FIG. 4, an example of the return operation of the main shaft 12 when the current speed of the reverse rotation of the main shaft 12 reaches the maximum return rotation speed V0 before the main shaft 12 reaches the intermediate point A is a speed-time curve. (Curve below the time axis). The maximum reverse acceleration (speed control) of the main shaft 12 in step U2 in FIG. 2 is executed at times T6 and T7 in FIG. At time T6, the spindle 12 is accelerated at a constant acceleration (maximum acceleration) from the start at the target screw depth until reaching the speed Vb, and at time T7, the acceleration gradually decreases from the maximum acceleration beyond the speed Vb due to the characteristics of the spindle motor. To do. At time T7, when the current speed of the reverse rotation of the main shaft 12 reaches the maximum return rotational speed V0 by the speed control loop before the main shaft 12 reaches the intermediate point A, the main shaft 12 reaches the intermediate point A thereafter. The motor returns at a constant speed V0 (that is, zero acceleration) for a period of time T10 until the return operation continues. The detection and storage of the return rotation amount Sd of the main spindle 12 per unit time t in step U4 in FIG. 2 is executed at times T6 and T7 (that is, the total acceleration rotation time T0) and at time T10. During the speed control time T6, T7 and T10, similarly to the operation example of FIG. 3, all return rotation amount Sd 1 to SD n the rotation amount detection unit 32 has detected is stored in the rotation amount storage unit 34 . The detection and storage of the return rotation amount Sd is performed until the remaining return rotation amount Sr becomes 1/2 of the total return rotation amount S0. In this configuration, ΣSd i = Sd 1 + Sd 2 +... + Sd n = S0 / 2.

残戻り回転量Srが総戻り回転量S0の1/2になった時点A(中間点A)で、初期動作制御部30による主軸12の速度制御が終了し、位置決め動作制御部38が主軸12の位置制御を開始する。速度制御から位置制御への切り替えに伴い、主軸12の動作は加速逆回転から減速逆回転に変わり、時間T8及びT9で、図2のステップU6における主軸12の減速逆回転が実行される。ステップU6では、図3の動作例と同様に、位置決め動作制御部38が、逐次検出されている残戻り回転量Srを監視し、速度制御の間に記憶した主軸12の単位時間t毎の戻り回転量Sd(つまりSd〜Sd)を残戻り回転量Srと対応させて、現在位置から単位時間t経過後の位置を表す位置制御の指令値を作成する。主軸12は、こうして作成された位置制御の指令値に従って動作することで、中間点A到達時を境に加速逆回転中の速度−時間曲線を反転した速度−時間曲線で表される負の加速度を生じながら、中間点Aから戻り完了位置に向かって減速逆回転する。図4から理解されるように、時間T8は、最高戻り回転速度V0での定速回転を経て漸増する負の加速度で速度Vbまで減速する時間に相当し、時間T9は、速度Vbから一定加速度(負の最大加速度)で速度零に至るまでの時間に相当する。位置決め動作制御部38によるこのような位置制御により、主軸12は、戻り完了位置(Sr=0)に到達したときに回転を停止する。 At the time point A (intermediate point A) when the remaining return rotation amount Sr becomes ½ of the total return rotation amount S0, the speed control of the main shaft 12 by the initial operation control unit 30 ends, and the positioning operation control unit 38 performs the main shaft 12 operation. Start position control. With the switching from speed control to position control, the operation of the spindle 12 changes from acceleration reverse rotation to deceleration reverse rotation, and at times T8 and T9, deceleration reverse rotation of the spindle 12 in step U6 in FIG. 2 is executed. In step U6, as in the operation example of FIG. 3, the positioning operation control unit 38 monitors the remaining return rotation amount Sr detected sequentially, and returns the main shaft 12 for each unit time t stored during the speed control. rotation amount Sd (that Sd 1 to SD n) in correspondence with the remaining return rotation amount Sr, creates a command value of the position control which represents the position after the unit time t elapses from the current position. The spindle 12 operates in accordance with the position control command value created in this way, so that a negative acceleration represented by a speed-time curve obtained by inverting the speed-time curve during acceleration reverse rotation when the intermediate point A is reached is a boundary. , Decelerate and reversely rotate from the intermediate point A toward the return completion position. As understood from FIG. 4, the time T8 corresponds to the time for decelerating to the speed Vb with a negative acceleration that gradually increases through constant speed rotation at the maximum return rotational speed V0, and the time T9 is a constant acceleration from the speed Vb. This corresponds to the time until the speed reaches zero at (negative maximum acceleration). By such position control by the positioning operation control unit 38, the spindle 12 stops rotating when it reaches the return completion position (Sr = 0).

図3及び図4のいずれの動作例においても、主軸制御部18が主軸12の目標ねじ深さから戻り完了位置までの逆回転動作(戻り動作)を制御する間、送り軸制御部22(図1)は、主軸12の回転位置FBSを用いて、送り軸14を主軸12の動作に追従するように制御して逆送り動作を行わせる。数値制御部16は、主軸制御部18がステップU2〜ステップU6の処理を実行する間、主軸制御部18から通知される残戻り回転量Srを監視して、残戻り回転量Srが第2の所定値(零に近い極小値)以下になったときに、戻り動作が完了して工具がワークから引き抜かれたと判断する。   3 and 4, while the main shaft control unit 18 controls the reverse rotation operation (return operation) from the target screw depth of the main shaft 12 to the return completion position, the feed shaft control unit 22 (see FIG. 3). 1) uses the rotational position FBS of the main shaft 12 to control the feed shaft 14 so as to follow the operation of the main shaft 12 to perform a reverse feed operation. The numerical control unit 16 monitors the remaining rotation amount Sr notified from the main shaft control unit 18 while the main shaft control unit 18 executes the processes of Step U2 to Step U6, and the remaining rotation amount Sr is the second amount. When the value is equal to or less than a predetermined value (minimum value close to zero), it is determined that the return operation is completed and the tool is pulled out from the workpiece.

上記したように、制御装置10は、主軸12に目標ねじ深さから戻り完了位置までの戻り動作を行わせる際に、数値制御部16が主軸制御部18に対して、主軸12の総戻り回転量S0と最高戻り回転速度V0のみを主軸指令CSとして通知し、主軸制御部18がこの主軸指令CSに従い、最高戻り回転速度V0を目標に許容電流を最大限に使用した最大出力で主軸12を加速させて戻り動作を実行するとともに、その間に記憶した主軸12の単位時間t毎の戻り回転量Sdと逐次検出する主軸12の残戻り回転量Srとに基づき、主軸12を減速逆回転させながら戻り完了位置までの戻り動作を継続実行して戻り完了位置で停止させるように構成されている。したがって制御装置10によれば、数値制御部16に対し主軸12の出力特性に対応する加減速指令を作成するためのパラメータの設定や調整等を行う必要がなく、より簡単な構成で、主軸12の加速能力を最大限に発揮させる加減速制御を行って、タップ加工のサイクルタイムを短縮することが可能になる。   As described above, when the control device 10 causes the main shaft 12 to perform a return operation from the target screw depth to the return completion position, the numerical control unit 16 makes a total return rotation of the main shaft 12 with respect to the main shaft control unit 18. Only the amount S0 and the maximum return rotational speed V0 are notified as the spindle command CS, and the spindle control unit 18 follows the main spindle command CS and outputs the spindle 12 with the maximum output using the maximum allowable current with the maximum return rotational speed V0 as a target. While performing the return operation by accelerating, the main shaft 12 is decelerated and reversely rotated based on the return rotation amount Sd of the main shaft 12 stored per unit time t and the remaining return rotation amount Sr of the main shaft 12 detected sequentially. A return operation up to the return completion position is continuously executed and stopped at the return completion position. Therefore, according to the control device 10, it is not necessary to set or adjust parameters for creating an acceleration / deceleration command corresponding to the output characteristics of the spindle 12 with respect to the numerical controller 16, and the spindle 12 can be configured with a simpler configuration. Acceleration / deceleration control that maximizes the acceleration capability of the tapping process can be performed to shorten the tapping cycle time.

しかも制御装置10によれば、主軸制御部18は、最大出力での加速逆回転中に記憶した主軸12の単位時間t毎の戻り回転量Sdを用いて、減速逆回転のための位置制御の指令値を作成できるので、位置制御を容易かつ迅速に実行して主軸12を戻り完了位置で停止させることができる。   In addition, according to the control device 10, the spindle control unit 18 uses the return rotation amount Sd of the spindle 12 for each unit time t stored during acceleration reverse rotation at the maximum output to perform position control for decelerating reverse rotation. Since the command value can be created, the position control can be executed easily and quickly and the spindle 12 can be stopped at the return completion position.

図5は、第2の実施形態による工作機械の制御装置40の構成を機能ブロックで示す。制御装置40は、速度制御ループの実行中に限らず主軸12の現在速度を監視する構成を有する点を除いて、図1に示す制御装置10と同様の構成を有する。対応する構成要素には共通する参照符号を付して、その詳細な説明を適宜省略する。   FIG. 5 is a functional block diagram showing the configuration of the machine tool control apparatus 40 according to the second embodiment. The control device 40 has the same configuration as that of the control device 10 shown in FIG. 1 except that the control device 40 has a configuration for monitoring the current speed of the spindle 12 not only during execution of the speed control loop. Corresponding components are denoted by common reference numerals, and detailed description thereof is omitted as appropriate.

制御装置40は、数値制御部16と、主軸制御部18と、回転検出部20と、送り軸制御部22とを備える。主軸制御部18は、初期動作制御部30と、回転量検出部32と、回転量記憶部34と、残回転量検出部36と、位置決め動作制御部38とを備える。主軸制御部18はさらに、回転位置FBSに基づき主軸12の現在速度Vcを検出する現在速度検出部42を備える。位置決め動作制御部38は、単位時間t毎の回転量Sdと残回転量Srと現在速度Vcとに基づき、主軸12を減速回転させて目標位置で停止させるための位置制御を実行する。   The control device 40 includes a numerical control unit 16, a spindle control unit 18, a rotation detection unit 20, and a feed axis control unit 22. The spindle control unit 18 includes an initial operation control unit 30, a rotation amount detection unit 32, a rotation amount storage unit 34, a remaining rotation amount detection unit 36, and a positioning operation control unit 38. The spindle control unit 18 further includes a current speed detection unit 42 that detects the current speed Vc of the spindle 12 based on the rotational position FBS. The positioning operation control unit 38 performs position control for decelerating and rotating the spindle 12 at the target position based on the rotation amount Sd, the remaining rotation amount Sr, and the current speed Vc per unit time t.

制御装置40は、制御装置10と同様に、主軸12の切削動作と戻り動作との双方を制御することができる。図6は、制御装置40が実行する工作機械制御方法の第2の実施形態を示す。また図7は、図6の制御方法によって実現される主軸12の動作の一例を示す。以下、図5〜図7を参照して、制御装置40が実行する主軸12の切削動作及び戻り動作の制御方法を説明する。   Similar to the control device 10, the control device 40 can control both the cutting operation and the return operation of the spindle 12. FIG. 6 shows a second embodiment of the machine tool control method executed by the control device 40. FIG. 7 shows an example of the operation of the spindle 12 realized by the control method of FIG. Hereinafter, with reference to FIGS. 5 to 7, a control method for the cutting operation and the return operation of the main shaft 12 performed by the control device 40 will be described.

まず、図6のフローチャートを図5と共に参照して、制御装置40が実行する主軸12の切削動作制御方法を説明する。ステップQ1で、数値制御部16(主軸指令出力部26)は、プログラム解釈部24が解釈したタップ加工プログラムPの指令値から、加工開始位置(始動位置)から目標ねじ深さ(目標位置)に至る間の主軸12の総回転量S0と最高回転速度V0とを取得して、主軸制御部18に総回転量S0と最高回転速度V0とを指令する。ステップQ2で、主軸制御部18(初期動作制御部30)は、最高回転速度V0を目標速度とする速度制御により、加工開始位置から主軸12を、駆動源の許容電流を最大限に利用した最大能力で加速回転させて切削動作を実行する。ステップQ3で、主軸制御部18(残回転量検出部36、現在速度検出部42)は、加速回転中の現在位置からの残回転量Sr及び現在速度Vcを逐次検出する。検出した残回転量Srは、検出の都度、主軸制御部18が数値制御部16に通知する。ステップQ4で、主軸制御部18(回転量検出部32、回転量記憶部34)は、最大能力での加速回転の間に、回転位置FBSに基づき主軸12の単位時間t毎の回転量Sdを逐次検出して記憶する。主軸制御部18は、ステップQ2〜Q4を同時並行処理できる。   First, with reference to the flowchart of FIG. 6 together with FIG. In step Q1, the numerical control unit 16 (spindle command output unit 26) uses the command value of the tap machining program P interpreted by the program interpretation unit 24, from the machining start position (starting position) to the target screw depth (target position). The total rotation amount S0 and the maximum rotation speed V0 of the main shaft 12 are acquired, and the total rotation amount S0 and the maximum rotation speed V0 are commanded to the main spindle control unit 18. In step Q2, the spindle control unit 18 (initial motion control unit 30) performs maximum control using the allowable current of the drive source from the machining start position to the maximum by speed control with the maximum rotational speed V0 as the target speed. The cutting operation is executed by accelerating rotation with the ability. In step Q3, the spindle control unit 18 (residual rotation amount detection unit 36, current speed detection unit 42) sequentially detects the remaining rotation amount Sr and the current speed Vc from the current position during the acceleration rotation. The spindle control unit 18 notifies the numerical control unit 16 of the detected remaining rotation amount Sr each time it is detected. In step Q4, the spindle control unit 18 (rotation amount detection unit 32, rotation amount storage unit 34) calculates the rotation amount Sd of the spindle 12 per unit time t based on the rotation position FBS during the acceleration rotation with the maximum capacity. Sequentially detect and store. The spindle control unit 18 can simultaneously perform steps Q2 to Q4.

次にステップQ5で、主軸制御部18(位置決め動作制御部38)は、加速回転中の現在速度Vcが最高回転速度V0に達しているか否かを判断する。VcがV0に達していない場合、ステップQ6で、主軸制御部18(位置決め動作制御部38)は、残回転量Srが総回転量S0の1/2以下になっているか否かを判断する。SrがS0の1/2以下になっている場合、ステップQ7で、主軸制御部18(位置決め動作制御部38)は、単位時間t毎の回転量Sdと残回転量Srとに基づき、主軸12を減速回転させて切削動作を継続実行し、目標ねじ深さで停止させる。SrがS0の1/2以下になっていない場合はステップQ4に戻る。   Next, at Step Q5, the spindle control unit 18 (positioning operation control unit 38) determines whether or not the current speed Vc during the acceleration rotation has reached the maximum rotation speed V0. When Vc has not reached V0, in Step Q6, the spindle control unit 18 (positioning operation control unit 38) determines whether or not the remaining rotation amount Sr is equal to or less than ½ of the total rotation amount S0. When Sr is ½ or less of S0, in Step Q7, the spindle control unit 18 (positioning operation control unit 38) determines the spindle 12 based on the rotation amount Sd and the remaining rotation amount Sr per unit time t. Is rotated at a reduced speed to continue the cutting operation and stop at the target screw depth. If Sr is not less than 1/2 of S0, the process returns to step Q4.

ステップQ5で加速回転中の現在速度Vcが最高回転速度V0に達していないと判断し、ステップQ6で残回転量Srが総回転量S0の1/2以下になっていると判断した場合、上記したステップQ1〜Q7の処理は、現在速度Vcに関連する処理を除き、図2のステップU1〜U6の処理と実質的に同一となる。したがってこの場合、主軸12は、前述した図3に示す切削動作と同様の切削動作を遂行することができる。   If it is determined in step Q5 that the current speed Vc during acceleration rotation has not reached the maximum rotation speed V0, and it is determined in step Q6 that the remaining rotation amount Sr is less than or equal to ½ of the total rotation amount S0, The processes in steps Q1 to Q7 are substantially the same as the processes in steps U1 to U6 in FIG. 2 except for the processes related to the current speed Vc. Therefore, in this case, the main shaft 12 can perform the same cutting operation as the cutting operation shown in FIG.

これに対し、ステップQ5で加速回転中の現在速度Vcが最高回転速度V0に達していると判断した場合、主軸制御部18は、ステップQ6の判断を行う代わりに、ステップQ8で、主軸12の現在位置からの残回転量Srが、現在速度Vcが最高回転速度V0に達した時点までに検出かつ記憶した単位時間t毎の回転量Sdの総和ΣSd(つまりSd+Sd+……+Sd)以下になっているか否かを判断する。SrがΣSd以下になっている場合は、ステップQ7に進み、主軸制御部18(位置決め動作制御部38)が主軸12を減速回転させて目標ねじ深さで停止させる。SrがΣSd以下になっていない場合は、SrがΣSd以下になるまでステップQ8の判断を繰り返す。ステップQ8の判断を行う間に、主軸12は中間点Aを通過することになる。 On the other hand, when it is determined in step Q5 that the current speed Vc during the acceleration rotation has reached the maximum rotation speed V0, the spindle control unit 18 performs the determination of the spindle 12 in step Q8 instead of performing the determination in step Q6. The total rotation ΣSd i (that is, Sd 1 + Sd 2 +... + Sd) of the rotation amount Sd per unit time t detected and stored until the current rotation speed Vc reaches the maximum rotation speed V0. n ) It is determined whether or not the following is true. If Sr is equal to or less than ΣSd i , the process proceeds to step Q7, where the spindle control unit 18 (positioning operation control unit 38) rotates the spindle 12 at a reduced speed and stops it at the target screw depth. Sr is If it is not less ΣSd i, Sr repeats determination at step Q8 until the following ΣSd i. The spindle 12 passes through the intermediate point A during the determination of step Q8.

図7は、現在速度Vcが最高回転速度V0に達した後に主軸12が中間点Aを通過する場合(ステップQ5の判断がYESの場合)の、主軸12の切削動作の一例を、速度−時間曲線(時間軸の上側の曲線)で示す。図6のステップQ2における主軸12の最大能力の加速回転(速度制御)は、図7の時間T1及びT2で実行される。時間T1では、主軸12は加工開始位置での始動から速度Vbに達するまで一定加速度(最大加速度)で加速し、時間T2では、速度Vbを超えて主軸モータの特性により加速度が最大加速度から漸減する。図6のステップQ4における主軸12の単位時間t毎の回転量Sdの検出及び記憶は、時間T1及びT2(つまり加速回転の全時間T0)で実行される。速度制御の時間T1及びT2の間に、図3の動作例と同様に、回転量検出部32が検出した全ての回転量Sd〜Sdが回転量記憶部34に格納される。 FIG. 7 shows an example of the cutting operation of the spindle 12 when the spindle 12 passes the intermediate point A after the current speed Vc reaches the maximum rotational speed V0 (when the determination at step Q5 is YES). A curve (upper curve on the time axis) is shown. The acceleration rotation (speed control) of the maximum capacity of the main shaft 12 in step Q2 in FIG. 6 is executed at times T1 and T2 in FIG. At time T1, the spindle 12 is accelerated at a constant acceleration (maximum acceleration) from the start at the machining start position until reaching the speed Vb, and at time T2, the acceleration gradually decreases from the maximum acceleration over the speed Vb due to the characteristics of the spindle motor. . The detection and storage of the amount of rotation Sd of the main shaft 12 per unit time t in step Q4 in FIG. During the speed control of the time T1 and T2, similarly to the operation example of FIG. 3, all the rotational amount Sd 1 to SD n the rotation amount detection unit 32 has detected is stored in the rotation amount storage unit 34.

時間T2において、主軸12の現在速度Vcが最高回転速度V0に達すると、前述したように主軸制御部18の処理はステップQ5からステップQ8に進むので、主軸12が中間点Aに到達したか否かが判断されずに(したがってステップQ4の回転量Sdの検出及び記憶がそれ以降は行われずに)、主軸12は時間T11に渡り一定速度V0(つまり加速度零)で回転して切削動作を継続する。時間T11は、主軸12の現在速度Vcが最高回転速度V0に達した時点から、主軸12の残回転量Srが加速回転中に記憶した単位時間t毎の回転量Sdの総和ΣSdに等しくなるまでの時間に相当する。時間T11では、主軸12は、初期動作制御部30が実行する速度制御の下で切削動作する。この構成では、ΣSd=Sd+Sd+……+Sd≠S0/2である。 When the current speed Vc of the main shaft 12 reaches the maximum rotational speed V0 at time T2, the processing of the main shaft control unit 18 proceeds from step Q5 to step Q8 as described above, so whether the main shaft 12 has reached the intermediate point A or not. Is not determined (therefore, the rotation amount Sd is not detected and stored in step Q4 thereafter), and the spindle 12 rotates at a constant speed V0 (that is, acceleration is zero) over time T11 and continues the cutting operation. To do. From time T11 when the current speed Vc of the main shaft 12 reaches the maximum rotation speed V0, the remaining rotation amount Sr of the main shaft 12 becomes equal to the sum ΣSd i of the rotation amounts Sd per unit time t stored during acceleration rotation. It corresponds to the time until. At time T11, the spindle 12 performs a cutting operation under speed control executed by the initial operation control unit 30. In this configuration, ΣSd i = Sd 1 + Sd 2 +... + Sd n ≠ S0 / 2.

残回転量Srが回転量Sdの総和ΣSdに等しくなった時点Bで、初期動作制御部30による主軸12の速度制御が終了し、位置決め動作制御部38が主軸12の位置制御を開始する。速度制御から位置制御への切り替えに伴い、主軸12の動作は加速回転から減速回転に変わり、時間T3及びT4で、図6のステップQ7における主軸12の減速回転が実行される。ステップQ7では、図3の動作例と同様に、位置決め動作制御部38が、逐次検出されている残回転量Srを監視し、速度制御の間に記憶した主軸12の単位時間t毎の回転量Sd(つまりSd〜Sd)を残回転量Srと対応させて、現在位置から単位時間t経過後の位置を表す位置制御の指令値を作成する。主軸12は、こうして作成された位置制御の指令値に従って動作することで、中間点A到達時を境に加速回転中の速度−時間曲線を反転した速度−時間曲線で表される負の加速度を生じながら、点Bから目標ねじ深さに向かって減速回転する。図7から理解されるように、時間T3は、漸増する負の加速度で速度Vbまで減速する時間に相当し、時間T4は、速度Vbから一定加速度(負の最大加速度)で速度零に至るまでの時間に相当する。位置決め動作制御部38によるこのような位置制御により、主軸12は、目標ねじ深さ(Sr=0)に到達したときに回転を停止する。 At the time B when the remaining rotation amount Sr becomes equal to the total amount ΣSd i of the rotation amount Sd, the speed control of the main shaft 12 by the initial operation control unit 30 ends, and the positioning operation control unit 38 starts position control of the main shaft 12. With the switching from speed control to position control, the operation of the main shaft 12 changes from acceleration rotation to deceleration rotation, and at time T3 and T4, the main shaft 12 is decelerated and rotated at step Q7 in FIG. In step Q7, as in the operation example of FIG. 3, the positioning operation control unit 38 monitors the remaining rotation amount Sr that is sequentially detected, and the rotation amount per unit time t of the spindle 12 stored during the speed control. Sd (that is, Sd 1 to Sd n ) is associated with the remaining rotation amount Sr, and a position control command value representing a position after the unit time t has elapsed from the current position is created. The spindle 12 operates in accordance with the position control command value created in this way, so that the negative acceleration represented by the speed-time curve obtained by inverting the speed-time curve during acceleration rotation when the intermediate point A is reached is a boundary. As it occurs, it rotates at a reduced speed from the point B toward the target screw depth. As understood from FIG. 7, the time T3 corresponds to the time to decelerate to the speed Vb with the gradually increasing negative acceleration, and the time T4 reaches from the speed Vb to the speed zero with the constant acceleration (negative maximum acceleration). Is equivalent to By such position control by the positioning operation control unit 38, the spindle 12 stops rotating when it reaches the target screw depth (Sr = 0).

図7の動作例において、主軸制御部18が主軸12の加工開始位置から目標ねじ深さまでの回転動作(切削動作)を制御する間、送り軸制御部22(図5)は、主軸12の回転位置FBSを用いて、送り軸14を主軸12の動作に追従するように制御して送り動作を行わせる。数値制御部16は、主軸制御部18がステップQ2〜ステップQ8の処理を実行する間、主軸制御部18から通知される残回転量Srを監視して、残回転量Srが第1の所定値(零に近い極小値)以下になったときに、タップ加工が目標ねじ深さに達したと判断する。   In the operation example of FIG. 7, while the main shaft control unit 18 controls the rotation operation (cutting operation) from the machining start position of the main shaft 12 to the target screw depth, the feed shaft control unit 22 (FIG. 5) rotates the main shaft 12. Using the position FBS, the feed shaft 14 is controlled so as to follow the motion of the main shaft 12 to perform the feed operation. The numerical control unit 16 monitors the remaining rotation amount Sr notified from the spindle control unit 18 while the main shaft control unit 18 executes the processes of Step Q2 to Step Q8, and the remaining rotation amount Sr is a first predetermined value. When the value becomes (minimum value close to zero) or less, it is determined that tapping has reached the target thread depth.

図5及び図6に示す実施形態において、制御装置40は、主軸12の戻り動作に際し、加工開始位置から目標ねじ深さまでの上記した切削動作制御と同様の制御を行うことができる。図7は、上記した主軸12の切削動作に加えて、同切削動作に対応する主軸12の戻り動作を、速度−時間曲線(時間軸の下側の曲線)で示している。以下、図5〜図7を参照して、制御装置10が実行する主軸12の戻り動作制御方法を説明する。   In the embodiment shown in FIGS. 5 and 6, the control device 40 can perform the same control as the above-described cutting operation control from the machining start position to the target screw depth when the spindle 12 returns. FIG. 7 shows a return operation of the main shaft 12 corresponding to the cutting operation in addition to the above-described cutting operation of the main shaft 12 by a speed-time curve (curve on the lower side of the time axis). Hereinafter, with reference to FIG. 5 to FIG. 7, a method for controlling the return motion of the spindle 12 executed by the control device 10 will be described.

数値制御部16(主軸指令出力部26)は、タップ加工が目標ねじ深さに達したと判断した後に、ステップQ1で、プログラム解釈部24が解釈したタップ加工プログラムPの指令値から、目標ねじ深さ(始動位置)から戻り完了位置(目標位置)に至る間の主軸12の総戻り回転量S0と最高戻り回転速度V0とを取得して、主軸制御部18に総戻り回転量S0と最高戻り回転速度V0とを指令する。戻り動作の主軸指令CSも、主軸12を戻り完了位置まで回転運動させるための位置指令や加減速指令を含まないものである。次にステップQ2で、主軸制御部18(初期動作制御部30)は、最高戻り回転速度V0を目標速度とする速度制御により、目標ねじ深さから主軸12を、駆動源の許容電流を最大限に利用した最大能力で加速逆回転させて戻り動作を実行する。ステップQ3で、主軸制御部18(残回転量検出部36、現在速度検出部42)は、加速逆回転中の現在位置からの残回転量Sr及び現在速度Vcを逐次検出する。検出した残戻り回転量Srは、検出の都度、主軸制御部18が数値制御部16に通知する。ステップQ4で、主軸制御部18(回転量検出部32、回転量記憶部34)は、最大能力での加速逆回転の間に、回転位置FBSに基づき主軸12の単位時間t毎の戻り回転量Sdを逐次検出して記憶する。主軸制御部18は、ステップQ2〜Q4を同時並行処理できる。   After determining that the tapping has reached the target thread depth, the numerical control unit 16 (spindle command output unit 26) determines the target screw from the command value of the tapping program P interpreted by the program interpretation unit 24 in step Q1. The total return rotation amount S0 and the maximum return rotation speed V0 of the spindle 12 from the depth (starting position) to the return completion position (target position) are acquired, and the total return rotation amount S0 and the maximum return rotation amount V0 are acquired by the spindle control unit 18. Command the return rotational speed V0. The spindle command CS for the return operation also does not include a position command or an acceleration / deceleration command for rotating the spindle 12 to the return completion position. Next, in Step Q2, the spindle control unit 18 (initial motion control unit 30) maximizes the allowable current of the drive source for the spindle 12 from the target screw depth by speed control with the maximum return rotational speed V0 as the target speed. Execute the return motion by accelerating reverse rotation with the maximum capacity used for. In step Q3, the spindle control unit 18 (remaining rotation amount detection unit 36, current speed detection unit 42) sequentially detects the remaining rotation amount Sr and the current speed Vc from the current position during the reverse acceleration rotation. The spindle control unit 18 notifies the numerical control unit 16 of the detected return rotation amount Sr each time it is detected. In step Q4, the spindle control unit 18 (rotation amount detection unit 32, rotation amount storage unit 34) returns the amount of return rotation per unit time t of the spindle 12 based on the rotation position FBS during acceleration reverse rotation with the maximum capacity. Sd is sequentially detected and stored. The spindle control unit 18 can simultaneously perform steps Q2 to Q4.

次にステップQ5で、主軸制御部18(位置決め動作制御部38)は、加速逆回転中の現在速度Vcが最高戻り回転速度V0に達しているか否かを判断する。VcがV0に達していない場合、ステップQ6で、主軸制御部18(位置決め動作制御部38)は、残戻り回転量Srが総戻り回転量S0の1/2以下になっているか否かを判断する。SrがS0の1/2以下になっている場合、ステップQ7で、主軸制御部18(位置決め動作制御部38)は、単位時間t毎の戻り回転量Sdと残戻り回転量Srとに基づき、主軸12を減速逆回転させて戻り動作を継続実行し、戻り完了位置で停止させる。SrがS0の1/2以下になっていない場合はステップQ4に戻る。   Next, in Step Q5, the spindle control unit 18 (positioning operation control unit 38) determines whether or not the current speed Vc during the reverse acceleration rotation has reached the maximum return rotation speed V0. If Vc has not reached V0, in Step Q6, the spindle control unit 18 (positioning operation control unit 38) determines whether or not the remaining return rotation amount Sr is ½ or less of the total return rotation amount S0. To do. When Sr is less than or equal to 1/2 of S0, in Step Q7, the spindle control unit 18 (positioning operation control unit 38), based on the return rotation amount Sd and the remaining return rotation amount Sr per unit time t, The spindle 12 is decelerated and reversely rotated to continue the return operation and stop at the return completion position. If Sr is not less than 1/2 of S0, the process returns to step Q4.

ステップQ5で加速逆回転中の現在速度Vcが最高戻り回転速度V0に達していないと判断し、ステップQ6で残戻り回転量Srが総戻り回転量S0の1/2以下になっていると判断した場合、上記したステップQ1〜Q7の処理は、現在速度Vcに関連する処理を除き、図2のステップU1〜U6の処理と実質的に同一となる。したがってこの場合、主軸12は、前述した図3に示す戻り動作と同様の戻り動作を遂行することができる。   In step Q5, it is determined that the current speed Vc during acceleration reverse rotation has not reached the maximum return rotation speed V0, and in step Q6, it is determined that the remaining return rotation amount Sr is ½ or less of the total return rotation amount S0. In this case, the processes in steps Q1 to Q7 described above are substantially the same as the processes in steps U1 to U6 in FIG. 2 except for the processes related to the current speed Vc. Therefore, in this case, the main shaft 12 can perform a return operation similar to the return operation shown in FIG.

これに対し、ステップQ5で加速逆回転中の現在速度Vcが最高戻り回転速度V0に達していると判断した場合、主軸制御部18は、ステップQ6の判断を行う代わりに、ステップQ8で、主軸12の現在位置からの残戻り回転量Srが、逆回転の現在速度Vcが最高戻り回転速度V0に達した時点までに検出かつ記憶した単位時間t毎の戻り回転量Sdの総和ΣSd(つまりSd+Sd+……+Sd)以下になっているか否かを判断する。SrがΣSd以下になっている場合は、ステップQ7に進み、主軸制御部18(位置決め動作制御部38)が主軸12を減速逆回転させて戻り完了位置で停止させる。SrがΣSd以下になっていない場合は、SrがΣSd以下になるまでステップQ8の判断を繰り返す。ステップQ8の判断を行う間に、主軸12は中間点Aを通過することになる。 On the other hand, when it is determined in step Q5 that the current speed Vc during the reverse acceleration rotation has reached the maximum return rotation speed V0, the main spindle control unit 18 performs the main spindle in step Q8 instead of performing the determination in step Q6. The total return ΣSd i of the return rotation amount Sd per unit time t detected and stored until the current reverse rotation current velocity Vc reaches the maximum return rotation velocity V0. Sd 1 + Sd 2 +... + Sd n ) or less is determined. When Sr is equal to or less than ΣSd i , the process proceeds to step Q7, and the main shaft control unit 18 (positioning operation control unit 38) rotates the main shaft 12 at a reverse speed and stops at the return completion position. Sr is If it is not less ΣSd i, Sr repeats determination at step Q8 until the following ΣSd i. The spindle 12 passes through the intermediate point A during the determination of step Q8.

図7を参照すると、逆回転の現在速度Vcが最高戻り回転速度V0に達した後に主軸12が中間点Aを通過する場合(ステップQ5の判断がYESの場合)の、主軸12の戻り動作の一例が、速度−時間曲線(時間軸の下側の曲線)で示されている。図6のステップQ2における主軸12の最大能力の加速逆回転(速度制御)は、図7の時間T6及びT7で実行される。時間T6では、主軸12は目標ねじ深さでの始動から速度Vbに達するまで一定加速度(最大加速度)で加速し、時間T7では、速度Vbを超えて主軸モータの特性により加速度が最大加速度から漸減する。図6のステップQ4における主軸12の単位時間t毎の戻り回転量Sdの検出及び記憶は、時間T6及びT7(つまり加速逆回転の全時間T0)で実行される。速度制御の時間T6及びT7の間に、図3の動作例と同様に、回転量検出部32が検出した全ての回転量Sd〜Sdが回転量記憶部34に格納される。 Referring to FIG. 7, when the main shaft 12 passes the intermediate point A after the current speed Vc of the reverse rotation reaches the maximum return rotational speed V0 (when the determination in step Q5 is YES), the return operation of the main shaft 12 is performed. An example is shown in the speed-time curve (the curve below the time axis). The acceleration reverse rotation (speed control) of the maximum capacity of the main shaft 12 in step Q2 in FIG. 6 is executed at times T6 and T7 in FIG. At time T6, the spindle 12 is accelerated at a constant acceleration (maximum acceleration) from the start at the target screw depth until reaching the speed Vb, and at time T7, the acceleration gradually decreases from the maximum acceleration beyond the speed Vb due to the characteristics of the spindle motor. To do. The detection and storage of the return rotation amount Sd of the main shaft 12 per unit time t in step Q4 of FIG. 6 is executed at times T6 and T7 (that is, the total acceleration reverse rotation time T0). During the speed control time T6 and T7, as with operation example of FIG. 3, all the rotational amount Sd 1 to SD n the rotation amount detection unit 32 has detected is stored in the rotation amount storage unit 34.

時間T7において、主軸12の逆回転の現在速度Vcが最高戻り回転速度V0に達すると、前述したように主軸制御部18の処理はステップQ5からステップQ8に進むので、主軸12が中間点Aに到達したか否かが判断されずに(したがってステップQ4の戻り回転量Sdの検出及び記憶がそれ以降は行われずに)、主軸12は時間T12に渡り一定速度V0(つまり加速度零)で回転して戻り動作を継続する。時間T12は、主軸12の逆回転の現在速度Vcが最高戻り回転速度V0に達した時点から、主軸12の残戻り回転量Srが加速逆回転中に記憶した単位時間t毎の戻り回転量Sdの総和ΣSdに等しくなるまでの時間に相当する。時間T12では、主軸12は、初期動作制御部30が実行する速度制御の下で戻り動作する。この構成では、ΣSd=Sd+Sd+……+Sd≠S0/2である。 At time T7, when the current speed Vc of the reverse rotation of the spindle 12 reaches the maximum return rotation speed V0, the process of the spindle control unit 18 proceeds from step Q5 to step Q8 as described above. Without determining whether or not it has been reached (therefore, the return rotation amount Sd in step Q4 is not detected and stored thereafter), the spindle 12 rotates at a constant speed V0 (that is, zero acceleration) over time T12. And return to continue. From time T12 when the current speed Vc of the reverse rotation of the main shaft 12 reaches the maximum return rotation speed V0, the return rotation amount Sd per unit time t stored during the acceleration reverse rotation is stored as the remaining return rotation amount Sr of the main shaft 12. This corresponds to the time until it becomes equal to the sum ΣSd i of. At time T <b> 12, the spindle 12 moves back under speed control executed by the initial motion control unit 30. In this configuration, ΣSd i = Sd 1 + Sd 2 +... + Sd n ≠ S0 / 2.

残戻り回転量Srが戻り回転量Sdの総和ΣSdに等しくなった時点Bで、初期動作制御部30による主軸12の速度制御が終了し、位置決め動作制御部38が主軸12の位置制御を開始する。速度制御から位置制御への切り替えに伴い、主軸12の動作は加速逆回転から減速逆回転に変わり、時間T8及びT9で、図6のステップQ7における主軸12の減速逆回転が実行される。ステップQ7では、図3の動作例と同様に、位置決め動作制御部38が、逐次検出されている残戻り回転量Srを監視し、速度制御の間に記憶した主軸12の単位時間t毎の戻り回転量Sd(つまりSd〜Sd)を残戻り回転量Srと対応させて、現在位置から単位時間t経過後の位置を表す位置制御の指令値を作成する。主軸12は、こうして作成された位置制御の指令値に従って動作することで、中間点A到達時を境に加速逆回転中の速度−時間曲線を反転した速度−時間曲線で表される負の加速度を生じながら、点Bから戻り完了位置に向かって減速逆回転する。図7から理解されるように、時間T8は、最高戻り回転速度V0での定速回転を経て漸増する負の加速度で速度Vbまで減速する時間に相当し、時間T9は、速度Vbから一定加速度(負の最大加速度)で速度零に至るまでの時間に相当する。位置決め動作制御部38によるこのような位置制御により、主軸12は、戻り完了位置(Sr=0)に到達したときに回転を停止する。 At the time point B when the remaining return rotation amount Sr becomes equal to the sum ΣSd i of the return rotation amounts Sd, the speed control of the main shaft 12 by the initial operation control unit 30 ends, and the positioning operation control unit 38 starts position control of the main shaft 12. To do. With the switching from speed control to position control, the operation of the spindle 12 changes from acceleration reverse rotation to deceleration reverse rotation, and at times T8 and T9, deceleration reverse rotation of the spindle 12 in step Q7 of FIG. 6 is executed. In step Q7, as in the operation example of FIG. 3, the positioning operation control unit 38 monitors the remaining return rotation amount Sr detected sequentially, and returns the main shaft 12 for each unit time t stored during the speed control. rotation amount Sd (that Sd 1 to SD n) in correspondence with the remaining return rotation amount Sr, creates a command value of the position control which represents the position after the unit time t elapses from the current position. The spindle 12 operates in accordance with the position control command value created in this way, so that a negative acceleration represented by a speed-time curve obtained by inverting the speed-time curve during acceleration reverse rotation when the intermediate point A is reached is a boundary. , Decelerate and reversely rotate from point B toward the return completion position. As understood from FIG. 7, the time T8 corresponds to a time for decelerating to the speed Vb with a negative acceleration that gradually increases through a constant speed rotation at the maximum return rotational speed V0, and the time T9 is a constant acceleration from the speed Vb. This corresponds to the time until the speed reaches zero at (negative maximum acceleration). By such position control by the positioning operation control unit 38, the spindle 12 stops rotating when it reaches the return completion position (Sr = 0).

図7の動作例において、主軸制御部18が主軸12の目標ねじ深さから戻り完了位置までの逆回転動作(戻り動作)を制御する間、送り軸制御部22(図5)は、主軸12の回転位置FBSを用いて、送り軸14を主軸12の動作に追従するように制御して逆送り動作を行わせる。数値制御部16は、主軸制御部18がステップQ2〜ステップQ8の処理を実行する間、主軸制御部18から通知される残戻り回転量Srを監視して、残戻り回転量Srが第2の所定値(零に近い極小値)以下になったときに、戻り動作が完了して工具がワークから引き抜かれたと判断する。   In the operation example of FIG. 7, while the main shaft control unit 18 controls the reverse rotation operation (return operation) from the target screw depth of the main shaft 12 to the return completion position, the feed shaft control unit 22 (FIG. 5) Using the rotational position FBS, the feed shaft 14 is controlled so as to follow the operation of the main shaft 12 to perform the reverse feed operation. The numerical control unit 16 monitors the remaining rotation amount Sr notified from the main shaft control unit 18 while the main shaft control unit 18 executes the processing of Step Q2 to Step Q8, and the remaining rotation amount Sr is the second amount. When the value is equal to or less than a predetermined value (minimum value close to zero), it is determined that the return operation is completed and the tool is pulled out from the workpiece.

上記したように、制御装置40は、主軸12に加工開始位置(又は目標ねじ深さ)から目標ねじ深さ(又は戻り完了位置)までの切削動作(又は戻り動作)を行わせる際に、数値制御部16が主軸制御部18に対して、主軸12の総回転量S0(又は総戻り回転量S0)と最高回転速度V0(又は最高戻り回転速度V0)のみを主軸指令CSとして通知し、主軸制御部18がこの主軸指令CSに従い、最高回転速度V0(又は最高戻り回転速度V0)を目標に許容電流を最大限に使用した最大出力で主軸12を加速させて切削動作(又は戻り動作)を実行するとともに、その間に記憶した主軸12の単位時間t毎の回転量Sd(又は単位時間t毎の戻り回転量Sd)と逐次検出する主軸12の残回転量Sr(又は残戻り回転量Sr)とに基づき、主軸12を減速回転(又は減速逆回転)させながら目標ねじ深さ(又は戻り完了位置)までの切削動作(又は戻り動作)を継続実行して目標ねじ深さ(又は戻り完了位置)で停止させるように構成されている。したがって制御装置10によれば、数値制御部16に対し主軸12の出力特性に対応する加減速指令を作成するためのパラメータの設定や調整等を行う必要がなく、より簡単な構成で、主軸12の加速能力を最大限に発揮させる加減速制御を行って、タップ加工のサイクルタイムを短縮することが可能になる。   As described above, when the control device 40 causes the spindle 12 to perform the cutting operation (or the return operation) from the machining start position (or the target screw depth) to the target screw depth (or the return completion position), numerical values are used. The control unit 16 notifies only the total rotation amount S0 (or total return rotation amount S0) and the maximum rotation speed V0 (or the maximum return rotation speed V0) of the main shaft 12 to the main shaft control unit 18 as the main shaft command CS. In accordance with the spindle command CS, the control unit 18 accelerates the spindle 12 with the maximum output using the maximum allowable current with the maximum rotational speed V0 (or maximum return rotational speed V0) as a target, and performs a cutting operation (or return operation). The rotation amount Sd of the main shaft 12 for each unit time t (or the return rotation amount Sd for each unit time t) and the remaining rotation amount Sr of the main shaft 12 (or the remaining return rotation amount Sr) that are sequentially detected. Based on The cutting operation (or return operation) up to the target screw depth (or return completion position) is continuously executed while the spindle 12 is decelerated (or reversely rotated at a reduced speed) and stopped at the target screw depth (or return completion position). It is configured to let you. Therefore, according to the control device 10, it is not necessary to set or adjust parameters for creating an acceleration / deceleration command corresponding to the output characteristics of the spindle 12 with respect to the numerical controller 16, and the spindle 12 can be configured with a simpler configuration. Acceleration / deceleration control that maximizes the acceleration capability of the tapping process can be performed to shorten the tapping cycle time.

しかも制御装置40によれば、主軸制御部18は、最大出力での加速回転(又は加速逆回転)中に記憶した主軸12の単位時間t毎の回転量Sd(又は単位時間t毎の戻り回転量Sd)を用いて、減速回転(又は減速逆回転)のための位置制御の指令値を作成できるので、位置制御を容易かつ迅速に実行して主軸12を目標ねじ深さ(又は戻り完了位置)で停止させることができる。さらに制御装置40では、主軸制御部18(位置決め動作制御部38)が、主軸12の単位時間t毎の回転量Sd(又は単位時間t毎の戻り回転量Sd)と残回転量Sr(又は残戻り回転量Sr)と現在速度Vc(又は逆回転の現在速度Vc)とに基づき位置制御を実行するようにしたから、主軸12が最高回転速度V0(又は最高戻り回転速度V0)で動作する間は、単位時間t毎の回転量Sd(又は単位時間t毎の戻り回転量Sd)の検出及び記憶を省略することができ、以て、回転量検出部32の計算負荷を軽減できるとともに回転量記憶部34の記憶容量を削減できる。   Moreover, according to the control device 40, the spindle control unit 18 rotates the rotation amount Sd per unit time t of the spindle 12 stored during acceleration rotation (or acceleration reverse rotation) at the maximum output (or return rotation every unit time t). Since the amount Sd) can be used to create a position control command value for decelerating rotation (or decelerating reverse rotation), the position control can be easily and quickly executed to move the spindle 12 to the target screw depth (or return completion position). ) Can be stopped. Further, in the control device 40, the spindle control unit 18 (positioning operation control unit 38) causes the rotation amount Sd of the spindle 12 per unit time t (or the return rotation amount Sd per unit time t) and the remaining rotation amount Sr (or the remaining rotation amount Sr). Since the position control is executed based on the return rotation amount Sr) and the current speed Vc (or the reverse rotation current speed Vc), the spindle 12 operates at the maximum rotation speed V0 (or the maximum return rotation speed V0). Can omit the detection and storage of the rotation amount Sd per unit time t (or the return rotation amount Sd per unit time t), thereby reducing the calculation load of the rotation amount detection unit 32 and the rotation amount. The storage capacity of the storage unit 34 can be reduced.

上記した制御装置10、40の構成は、主軸12と送り軸14との同期運転を制御する工作機械の制御方法として記述できる。この制御方法は、制御装置10、40が、始動位置から目標位置に至る間の主軸12の総回転量S0と最高回転速度V0とをタップ加工プログラムPから取得するステップと、最高回転速度V0を目標値とする速度制御により始動位置から主軸12を最大能力で加速回転させるステップと、最大能力での加速回転の間に、主軸12の回転位置フィードバック値FBSに基づき主軸12の予め定めた単位時間t毎の回転量Sdを検出して記憶するステップと、総回転量S0と回転位置フィードバック値FBSとに基づき、現在位置から目標位置に至るまでの主軸12の残回転量Srを検出するステップと、最大能力での加速回転の後に、単位時間t毎の回転量Sdと残回転量Srとに基づき、主軸12を減速回転させて目標位置で停止させるための位置制御を実行するステップとを備えるものである。この制御方法は、回転位置フィードバック値FBSに基づき主軸12の現在速度Vcを検出するステップをさらに備えることができる。この場合、位置制御は、単位時間t毎の回転量Sdと残回転量Srと現在速度Vcとに基づき実行される。この制御方法によれば、前述した制御装置10、40の効果と同等の効果が奏される。   The configuration of the control devices 10 and 40 described above can be described as a machine tool control method for controlling the synchronous operation of the main shaft 12 and the feed shaft 14. In this control method, the control devices 10 and 40 obtain the total rotation amount S0 and the maximum rotation speed V0 of the main shaft 12 from the start position to the target position from the tap machining program P, and the maximum rotation speed V0. A predetermined unit time of the main shaft 12 based on the rotational position feedback value FBS of the main shaft 12 between the step of accelerating and rotating the main shaft 12 from the starting position with the maximum capacity by speed control as a target value and the acceleration rotation with the maximum capacity. detecting and storing a rotation amount Sd for each t; detecting a remaining rotation amount Sr of the spindle 12 from the current position to the target position based on the total rotation amount S0 and the rotation position feedback value FBS; After the acceleration rotation at the maximum capacity, the spindle 12 is decelerated and stopped at the target position based on the rotation amount Sd and the remaining rotation amount Sr per unit time t. In which and a step of performing a position control of. This control method can further include a step of detecting the current speed Vc of the spindle 12 based on the rotational position feedback value FBS. In this case, the position control is executed based on the rotation amount Sd, the remaining rotation amount Sr, and the current speed Vc per unit time t. According to this control method, an effect equivalent to the effect of the control devices 10 and 40 described above is exhibited.

10、40 制御装置
12 主軸
14 送り軸
16 数値制御部
18 主軸制御部
20 回転検出部
22 送り軸制御部
26 主軸指令出力部
28 送り軸指令出力部
30 初期動作制御部
32 回転量検出部
34 回転量記憶部
36 残回転量検出部
38 位置決め動作制御部
42 現在速度検出部
DESCRIPTION OF SYMBOLS 10, 40 Control apparatus 12 Spindle 14 Feed axis 16 Numerical control part 18 Spindle control part 20 Rotation detection part 22 Feed axis control part 26 Spindle command output part 28 Feed axis command output part 30 Initial operation control part 32 Rotation amount detection part 34 Rotation Amount storage unit 36 Remaining rotation amount detection unit 38 Positioning operation control unit 42 Current speed detection unit

Claims (8)

主軸と送り軸との同期運転を制御する工作機械の制御装置であって、
タップ加工プログラムに基づき主軸指令及び送り軸指令を作成する数値制御部と、
前記主軸指令に従って前記主軸の回転動作を制御する主軸制御部と、
前記主軸の回転位置を検出する回転検出部と、
前記送り軸指令に従って、前記回転位置に基づき前記送り軸の送り動作を制御する送り軸制御部とを具備し、
前記数値制御部は、始動位置から目標位置に至る間の前記主軸の総回転量と最高回転速度とを前記タップ加工プログラムから取得して、該総回転量と該最高回転速度とを前記主軸指令として前記主軸制御部に送る主軸指令出力部を備え、
前記主軸制御部は、
前記最高回転速度を目標値とする速度制御により前記始動位置から前記主軸を最大能力で加速回転させる初期動作制御部と、
前記最大能力での加速回転の間に、前記回転位置に基づき前記主軸の予め定めた単位時間毎の回転量を検出する回転量検出部と、
検出した前記単位時間毎の回転量を記憶する回転量記憶部と、
前記総回転量と前記回転位置とに基づき、現在位置から前記目標位置に至るまでの前記主軸の残回転量を検出する残回転量検出部と、
前記最大能力での加速回転の後に、前記単位時間毎の回転量と前記残回転量とに基づき、前記主軸を減速回転させて前記目標位置で停止させるための位置制御を実行する位置決め動作制御部と、を備える、
制御装置。
A machine tool control device for controlling the synchronous operation of a main shaft and a feed shaft,
A numerical control unit that creates a spindle command and a feed axis command based on a tap machining program;
A spindle control unit for controlling the rotation operation of the spindle according to the spindle command;
A rotation detector for detecting a rotation position of the spindle;
In accordance with the feed axis command, comprising a feed axis control unit for controlling the feed operation of the feed axis based on the rotational position,
The numerical control unit acquires the total rotation amount and the maximum rotation speed of the main shaft from the start position to the target position from the tapping program, and determines the total rotation amount and the maximum rotation speed from the main spindle command. As a spindle command output unit to be sent to the spindle control unit,
The spindle control unit
An initial operation control unit for accelerating and rotating the spindle at a maximum capacity from the starting position by speed control with the maximum rotational speed as a target value;
A rotation amount detection unit for detecting a rotation amount of the spindle per predetermined unit time based on the rotation position during acceleration rotation at the maximum capacity;
A rotation amount storage unit for storing the detected rotation amount per unit time;
A remaining rotation amount detection unit that detects a remaining rotation amount of the spindle from the current position to the target position based on the total rotation amount and the rotation position;
Positioning operation control unit for performing position control for decelerating and rotating the spindle to stop at the target position based on the rotation amount per unit time and the remaining rotation amount after the acceleration rotation with the maximum capacity And comprising
Control device.
前記回転位置に基づき前記主軸の現在速度を検出する現在速度検出部をさらに備え、前記位置決め動作制御部は、前記単位時間毎の回転量と前記残回転量と前記現在速度とに基づき前記位置制御を実行する、請求項1に記載の制御装置。   A current speed detector for detecting a current speed of the spindle based on the rotational position; and the positioning operation control unit controls the position based on the rotation amount per unit time, the remaining rotation amount, and the current speed. The control device according to claim 1, wherein: 前記始動位置はタップ加工の加工開始位置に相当し、前記目標位置はタップ加工の目標ねじ深さに相当する、請求項1又は2に記載の制御装置。   The control device according to claim 1, wherein the start position corresponds to a machining start position of tapping, and the target position corresponds to a target thread depth of tapping. 前記始動位置はタップ加工の目標ねじ深さに相当し、前記目標位置はタップ加工の戻り完了位置に相当する、請求項1又は2に記載の制御装置。   The control device according to claim 1, wherein the start position corresponds to a target thread depth for tapping, and the target position corresponds to a return completion position for tapping. 主軸と送り軸との同期運転を制御する工作機械の制御方法であって、
制御装置が、
始動位置から目標位置に至る間の前記主軸の総回転量と最高回転速度とをタップ加工プログラムから取得するステップと、
前記最高回転速度を目標値とする速度制御により前記始動位置から前記主軸を最大能力で加速回転させるステップと、
前記最大能力での加速回転の間に、前記主軸の回転位置フィードバック値に基づき前記主軸の予め定めた単位時間毎の回転量を検出して記憶するステップと、
前記総回転量と前記回転位置フィードバック値とに基づき、現在位置から前記目標位置に至るまでの前記主軸の残回転量を検出するステップと、
前記最大能力での加速回転の後に、前記単位時間毎の回転量と前記残回転量とに基づき、前記主軸を減速回転させて前記目標位置で停止させるための位置制御を実行するステップと、
を備える、制御方法。
A machine tool control method for controlling synchronous operation of a spindle and a feed axis,
The control unit
Obtaining a total rotation amount and a maximum rotation speed of the spindle from the start position to the target position from a tapping program;
Accelerating and rotating the spindle at a maximum capacity from the starting position by speed control with the maximum rotational speed as a target value;
Detecting and storing a predetermined amount of rotation of the spindle per unit time based on a rotational position feedback value of the spindle during acceleration rotation at the maximum capacity;
Detecting a remaining rotation amount of the main spindle from a current position to the target position based on the total rotation amount and the rotation position feedback value;
After accelerating rotation at the maximum capacity, performing position control for rotating the spindle at a reduced speed and stopping at the target position based on the rotation amount per unit time and the remaining rotation amount;
A control method comprising:
前記回転位置フィードバック値に基づき前記主軸の現在速度を検出するステップをさらに備え、前記位置制御を実行するステップは、前記単位時間毎の回転量と前記残回転量と前記現在速度とに基づき前記位置制御を実行する、請求項5に記載の制御方法。   The step of detecting the current speed of the spindle based on the rotational position feedback value is further included, and the step of executing the position control is based on the rotation amount per unit time, the remaining rotation amount, and the current speed. The control method according to claim 5, wherein control is executed. 前記始動位置はタップ加工の加工開始位置に相当し、前記目標位置はタップ加工の目標ねじ深さに相当する、請求項5又は6に記載の制御方法。   The control method according to claim 5 or 6, wherein the start position corresponds to a machining start position of tapping, and the target position corresponds to a target thread depth of tapping. 前記始動位置はタップ加工の目標ねじ深さに相当し、前記目標位置はタップ加工の戻り完了位置に相当する、請求項5又は6に記載の制御方法。   The control method according to claim 5 or 6, wherein the start position corresponds to a target thread depth for tapping, and the target position corresponds to a return completion position for tapping.
JP2015225543A 2015-11-18 2015-11-18 Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft Active JP6605926B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015225543A JP6605926B2 (en) 2015-11-18 2015-11-18 Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015225543A JP6605926B2 (en) 2015-11-18 2015-11-18 Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft

Publications (2)

Publication Number Publication Date
JP2017097409A JP2017097409A (en) 2017-06-01
JP6605926B2 true JP6605926B2 (en) 2019-11-13

Family

ID=58816922

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015225543A Active JP6605926B2 (en) 2015-11-18 2015-11-18 Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft

Country Status (1)

Country Link
JP (1) JP6605926B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628259B (en) * 2018-07-12 2021-03-12 贵阳合众精密机械制造有限公司 Acceleration and deceleration movement control method for rigid tapping of drilling and tapping center
CN109911241B (en) * 2019-03-20 2022-06-14 成都飞机工业(集团)有限责任公司 Seven-degree polynomial-based multi-section automatic posture adjusting method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3136851B2 (en) * 1993-08-05 2001-02-19 ブラザー工業株式会社 Screw processing equipment
JP3553741B2 (en) * 1996-09-02 2004-08-11 三菱電機株式会社 Numerical control device and spindle motor acceleration / deceleration control method for numerical control device
JP2003181722A (en) * 2001-12-18 2003-07-02 Toyoda Mach Works Ltd Tapping machining device and tapping machining method
JP4014485B2 (en) * 2002-10-23 2007-11-28 株式会社松浦機械製作所 Rotation control method in tapping

Also Published As

Publication number Publication date
JP2017097409A (en) 2017-06-01

Similar Documents

Publication Publication Date Title
JP6088581B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JP6034913B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JP6140223B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JP6301977B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JP6396354B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
US9753452B2 (en) Device and method of controlling machine tool, to control synchronized operation of spindle axis and feed axis
US10509387B2 (en) Control device for machine tool performing oscillation cutting
JP6001633B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JP6605926B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JP6374469B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JP6474435B2 (en) Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
JPH11245118A (en) Screw processing controller
JP2009172001A (en) Sewing machine
US10061294B2 (en) Numerical controller performing speed control that suppresses excessive positioning deviation
JP2017111824A (en) Control apparatus and control method for machine tool having c-axis function
JP6799022B2 (en) Tap processing control device
JP2012056066A (en) Thread cutting control method and device
JP7481447B2 (en) Machine tool control device and control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180412

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190409

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190917

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191017

R150 Certificate of patent or registration of utility model

Ref document number: 6605926

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150