JP2000317772A - Control method for machine tool - Google Patents

Control method for machine tool

Info

Publication number
JP2000317772A
JP2000317772A JP11132302A JP13230299A JP2000317772A JP 2000317772 A JP2000317772 A JP 2000317772A JP 11132302 A JP11132302 A JP 11132302A JP 13230299 A JP13230299 A JP 13230299A JP 2000317772 A JP2000317772 A JP 2000317772A
Authority
JP
Japan
Prior art keywords
speed
spindle
confirmed
tool
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11132302A
Other languages
Japanese (ja)
Inventor
Takayuki Hotta
尊之 堀田
Hiroaki Sugiura
浩昭 杉浦
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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP11132302A priority Critical patent/JP2000317772A/en
Publication of JP2000317772A publication Critical patent/JP2000317772A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten cycle time by executing subsequent processes when the completion of the movement of a feed rod is confirmed, without confirming an arrival to a command rotating speed of a man spindle in a first positioning process where the rotation speed of the main spindle is commanded. SOLUTION: A main spindle to which a tool is mounted is started to rotate, a feed rod is driven to position the tool toward dividing direction in the two directions perpendicular with the cutting direction. After the completion of the movement of the feed rod is confirmed at the time of positioning (step 18), processes after a first positioning process are executed (step 19), in a given subsequent process, the arrival time of the speed of the main spindle is confirmed (step 20, 24 and 28) by means of a speed arrival information confirmation command (step 14, 15 and 16). When the arrival of speed for the main spindle is confirmed at this time, subsequent work processes are executed (step 17).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、工具が装着された
主軸をNCプログラムに従い回転駆動させると共に直交
する3次元方向に移動させて工作物の加工を行う工作機
械の制御方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of controlling a machine tool for processing a workpiece by rotating a main spindle on which a tool is mounted according to an NC program and moving the spindle in a three-dimensional direction orthogonal to the spindle.

【0002】[0002]

【従来技術】従来、図8に示すNCプログラム50に従
い工作機械を制御して工作物に加工を施す方法がある。
なお、このNCプログラム50にて制御される工作機械
は、水平方向に工具が保持される一般的な横形マシニン
グセンタであり、左右方向をX方向、上下方向をY方
向、工具の切込み方向である前後方向をZ方向とする。
2. Description of the Related Art Conventionally, there is a method of processing a workpiece by controlling a machine tool according to an NC program 50 shown in FIG.
The machine tool controlled by the NC program 50 is a general horizontal machining center that holds a tool in a horizontal direction. The left and right direction is the X direction, the up and down direction is the Y direction, and the front and rear directions are the cutting direction of the tool. Let the direction be the Z direction.

【0003】この制御方法では、図8に示すNCプログ
ラムに従い、先端に工具が装着された主軸をブロックN
010で指令される(X,Y,Z)=(100,20
0,0)の割出し位置までX,Y方向に早送り移動させ
ると同時に10000min の回転速度で回転起動
させ、次にブロックN020で指令される工作物とは若
干の隙間を有する(X,Y,Z)=(100,200,
50)の加工開始位置までZ方向に早送り移動させ、次
にブロックN030で指令される(X,Y,Z)=(1
00,200,70)の位置まで1000mm/min
の速度で切り込んで工作物Wにドリル加工を施し、次に
ブロックN040で指令される(X,Y,Z)=(10
0,200,50)まで早送り後退するように制御す
る。
In this control method, a spindle with a tool mounted at the tip is set to a block N according to the NC program shown in FIG.
(X, Y, Z) = (100, 20)
(0,0) to the indexing position in the X and Y directions, and at the same time, start rotation at a rotation speed of 10000 min - 1 and then have a slight gap with the workpiece specified by the block N020 (X, 0). Y, Z) = (100, 200,
50), it is rapidly moved in the Z direction to the machining start position, and then (X, Y, Z) = (1) commanded in block N030.
1000 mm / min to the position of (00, 200, 70)
The workpiece W is drilled by cutting at a speed of .times., And then (X, Y, Z) = (10)
(0, 200, 50).

【0004】なお、このNCブロック50のN010に
おいてX,Y,Zを3軸同時に位置決めさせることも可
能であるが、工作物の加工面の形状がフラットとは限ら
ないので、工具と工作物の干渉を防止するために加工開
始位置への位置決めはNCプログラム50のブロック0
10とN020のように2ブロックに分けて記述するの
が一般的である。
Although it is possible to simultaneously position X, Y, and Z axes in N010 of the NC block 50, the shape of the processing surface of the workpiece is not always flat, so that the tool and the workpiece need not be flat. Positioning to the processing start position is performed in block 0 of the NC program 50 to prevent interference.
In general, the description is divided into two blocks, such as 10 and N020.

【0005】[0005]

【発明が解決しようとする課題】NCプログラムで指令
される工具の送り速度や回転速度は、工作物や工具の材
質や加工精度などを考慮して決定されているため、主軸
の回転速度がNCプログラムのデータブロックで指令さ
れた回転速度に到達する前に加工を開始すると想定した
加工条件とは異なる条件で加工が実行されてしまうので
加工精度が悪化してしまう。また、主軸の回転速度が指
令値に到達しないまま加工を開始すると最悪の場合工具
折損を招くことがある。よって、従来は主軸が指令され
た回転速度に到達したことを確認してから加工開始位置
への早送りを行い、その後加工を開始するようにしてい
た。
Since the feed speed and the rotation speed of the tool specified by the NC program are determined in consideration of the material and machining accuracy of the workpiece and the tool, the rotation speed of the main spindle is controlled by the NC. Machining is performed under conditions different from those assumed to start machining before reaching the rotation speed commanded by the data block of the program, so that machining accuracy is degraded. In the worst case, if the machining is started before the rotation speed of the spindle reaches the command value, tool breakage may be caused. Therefore, conventionally, after confirming that the spindle has reached the commanded rotation speed, rapid feed to the machining start position is performed, and then machining is started.

【0006】従来の制御方法ではサイクルタイムを短縮
するために、NCプログラム50のブロックN010に
おいて、加工位置への移動と主軸起動を1ブロックで指
令し、位置決めと主軸の起動を同時に開始するようにし
ているが、この従来の制御方法では、ブロックN010
で指令される目標位置へのX,Y軸の送り移動の完了及
びブロックN010で指令される回転速度への主軸の速
度到達の双方を確認しないと次のブロックN020が実
行されないようになっていた。よって、X,Y軸の送り
移動が主軸の回転よりも早く完了する場合でも、主軸の
回転速度が指令値に到達するまでの間待機する必要があ
る。
In the conventional control method, in order to shorten the cycle time, in block N010 of the NC program 50, movement to the machining position and start of the spindle are commanded in one block, and positioning and start of the spindle are started simultaneously. However, in the conventional control method, the block N010
The next block N020 is not executed unless both the completion of the feed movement of the X and Y axes to the target position instructed by the command and the attainment of the speed of the main spindle to the rotation speed instructed by the block N010 are confirmed. . Therefore, even when the feed movement of the X and Y axes is completed earlier than the rotation of the spindle, it is necessary to wait until the rotation speed of the spindle reaches the command value.

【0007】つまりこのような場合は、図9のX,Y,
Zの各送り軸速度及び主軸の回転速度の時間に対する関
係を示す図から分かるように、ブロックN010におい
て指令されるX,Y方向への送り移動が、同じくブロッ
クN010において指令回転速度への主軸の速度到達よ
りも早く完了しても、主軸の回転速度が指令値である1
0000min−1に到達するまでのt1の時間だけ待
たないと次のブロックN012へは進むことができず、
このt1だけ無駄な待ち時間が発生し、サイクルタイム
が伸びてしまうという問題がある。
In other words, in such a case, X, Y,
As can be seen from the diagram showing the relationship between each feed axis speed of Z and the rotation speed of the main shaft with respect to time, the feed movement in the X and Y directions commanded in block N010 also causes the main shaft to move to the commanded rotation speed in block N010. Even if the rotation is completed earlier than reaching the speed, the rotation speed of the spindle is the command value 1
Without waiting for the time t1 until reaching 0000 min −1 , it is impossible to proceed to the next block N012,
There is a problem that a useless waiting time is generated by t1 and the cycle time is extended.

【0008】[0008]

【課題を解決するための手段】本発明においては、請求
項1に記載されるように、工作機械の制御方法に、工具
が装着された前記主軸を回転起動すると共に送り軸を駆
動させ前記工具を前記工作物の加工箇所と切込み方向で
整列する割出し位置へ向けて位置決めする第1位置決め
工程と、この第1位置決め工程において送り軸の移動完
了が確認された後前記主軸の指令回転速度への到達の確
認を行わず、前記工具を加工開始位置へ向けて前記切込
み方向で位置決めする第2位置決め工程と、この第2位
置決め工程の完了が確認された後、前記主軸の指令回転
速度への到達の確認を行い、速度到達が確認された後、
前記工具を前記切込み方向へ加工送りする加工工程とを
含めるようにする。
According to a first aspect of the present invention, there is provided a method for controlling a machine tool, comprising the steps of: starting the main spindle on which a tool is mounted; A first positioning step of positioning the feed shaft toward an indexing position aligned with the machining position of the workpiece in the cutting direction; A second positioning step of positioning the tool in the cutting direction toward the machining start position without confirming the arrival of the tool, and after the completion of the second positioning step has been confirmed, the rotation of the spindle to the commanded rotation speed is confirmed. After confirming that the speed has been reached,
And a processing step of processing and feeding the tool in the cutting direction.

【0009】従って、請求項1の発明によれば、主軸の
回転速度が指令される第1位置決め工程においては主軸
の指令回転速度への到達を確認することなく、送り軸の
移動完了が確認されれば第2位置決め工程を実行し、こ
の第2位置決め工程において送り軸の移動完了と主軸の
速度到達の双方が確認されると加工工程を実行する。
Therefore, according to the first aspect of the present invention, in the first positioning step in which the rotation speed of the spindle is commanded, the completion of the movement of the feed shaft is confirmed without confirming that the spindle reaches the commanded rotation speed. Then, the second positioning step is executed, and when both the completion of the movement of the feed shaft and the reaching of the spindle speed are confirmed in the second positioning step, the machining step is executed.

【0010】また、本発明は、請求項2に記載されるよ
うに、請求項1に記載の工作機械の制御方法に、加工工
程以前の任意の工程において前記主軸の速度到達の確認
指令を行う確認指令工程と、この確認指令により数値制
御装置のメモリ内に記憶される速度到達情報を参照する
参照工程と、この参照において所定時間内に速度到達が
確認される場合には前記工具を前記切込み方向へ加工送
りする加工工程と、前記参照において所定時間経過して
も速度到達が確認されない場合には異常処理を実行する
異常処理工程とを更に含めるようにする。
According to a second aspect of the present invention, in the method for controlling a machine tool according to the first aspect, an instruction for confirming that the speed of the spindle has reached the speed is provided in an arbitrary step before the machining step. A confirmation instruction step, a reference step of referring to speed attainment information stored in a memory of the numerical controller by the confirmation instruction, and, if the speed arrival is confirmed within a predetermined time in this reference, the tool is cut into the notch. A processing step of processing and feeding in the direction, and an abnormal processing step of executing an abnormal processing when the arrival at the speed is not confirmed even after a predetermined time elapses in the reference, are further included.

【0011】従って、請求項2の発明によれば、確認指
令工程により数値制御装置のメモリ内に記憶される速度
到達情報を参照する参照工程が実行され、この参照工程
により所定時間内に速度到達が確認される場合には、加
工工程が実行され、所定時間経過しても速度到達が確認
されない場合には異常処理工程が実行される。
Therefore, according to the second aspect of the present invention, the reference step of referring to the speed attainment information stored in the memory of the numerical control device is executed by the confirmation instruction step, and the speed attainment within a predetermined time is performed by this reference step. Is confirmed, the machining step is executed, and if the arrival at the speed is not confirmed even after the elapse of the predetermined time, the abnormal processing step is executed.

【0012】[0012]

【実施の形態】以下、本発明の実施の形態を図面に基づ
いて説明する。図1は、本発明による制御方法により制
御される工作機械の側面図を示す。この図において、1
0は工作機械9のベッドであり、このベッド10の後部
にコラム11が設けられており、このコラム11はベッ
ド10上で工作機械9の左右方向(図1において紙面に
垂直方向)であるX方向に延在して固着された一対のX
軸ガイドレール12によってX方向に移動可能に案内さ
れている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a side view of a machine tool controlled by the control method according to the present invention. In this figure, 1
Reference numeral 0 denotes a bed of the machine tool 9, and a column 11 is provided at a rear portion of the bed 10. The column 11 is located on the bed 10 in a left-right direction of the machine tool 9 (a direction perpendicular to the plane of FIG. 1). A pair of Xs extending and fixed in the direction
The shaft guide rail 12 is movably guided in the X direction.

【0013】コラム11の側方でベッド10上には、エ
ンコーダ19を備えたX軸サーボモータ18により回転
される図略のX軸ボールねじがガイドレール12と並行
な軸線回りに回転可能に軸承され、このボールネジに螺
合するナットはコラム11の下面に取付けられている。
このような構成により、コラム11はX軸サーボモータ
18の回転駆動によりX軸ボールねじ、ナットを介して
一対のX軸ガイドレール12に案内されてX方向に移動
するようになっている。
An X-axis ball screw (not shown) rotated by an X-axis servo motor 18 having an encoder 19 is mounted on the bed 10 on the side of the column 11 so as to be rotatable around an axis parallel to the guide rail 12. The nut screwed to the ball screw is mounted on the lower surface of the column 11.
With such a configuration, the column 11 is guided by the pair of X-axis guide rails 12 via the X-axis ball screws and nuts by the rotation drive of the X-axis servo motor 18 and moves in the X direction.

【0014】一方、コラム11の前面には、一対のY軸
ガイドレール22が工作機械9の上下方向(図1におい
て紙面の上下方向)であるY方向に延在して固着されて
おり、このY軸ガイドレール22によりサドル21がY
方向に移動可能に案内されている。また、コラム11の
上部には、エンコーダ29を備えたY軸サーボモータ2
8により回転されるY軸ボールねじ23がY軸ガイドレ
ール22と平行な軸線回りに回転可能に軸承され、この
Y軸ボールねじ23は主軸頭31に取付けられたナット
24が螺合している。このような構成により、サドル2
1はY軸サーボモータ28の回転駆動によりY軸ボール
ねじ23、ナット24を介して一対のY軸ガイドレール
22に案内されてY方向に移動するようになっている。
On the other hand, a pair of Y-axis guide rails 22 are fixed to the front surface of the column 11 so as to extend in the Y direction which is the vertical direction of the machine tool 9 (the vertical direction in FIG. 1). Saddle 21 is moved by Y-axis guide rail 22
It is guided so as to be movable in the direction. In addition, a Y-axis servo motor 2 having an encoder 29 is provided above the column 11.
A Y-axis ball screw 23 rotated by 8 is rotatably supported about an axis parallel to the Y-axis guide rail 22, and the Y-axis ball screw 23 is screwed with a nut 24 attached to a spindle head 31. . With such a configuration, the saddle 2
Numeral 1 is guided by a pair of Y-axis guide rails 22 via a Y-axis ball screw 23 and a nut 24 by the rotational drive of a Y-axis servo motor 28 and moves in the Y direction.

【0015】前記サドル21の中央部には貫通孔が形成
され、この貫通孔には主軸頭31が挿通され、この主軸
頭31は主軸25を、工作機械9の前後方向(図1にお
いて紙面の左右方向)であるZ方向に延びる軸線回り回
転可能に保持している。この主軸25は主軸頭31の後
部に取り付けられ、エンコーダ49を備えた主軸モータ
48により回転駆動され、その先端にはドリル,エンド
ミル,砥石等の工具Tが着脱可能に装着され、主軸25
への工具Tの着脱は図略の自動工具交換装置により図略
の工具マガジンとの間で自動的に行われる。
A through hole is formed in the center of the saddle 21, and a spindle head 31 is inserted into the through hole. The spindle head 31 connects the spindle 25 to the front and rear direction of the machine tool 9 (in FIG. (Horizontal direction) so as to be rotatable around an axis extending in the Z direction. The spindle 25 is attached to the rear of the spindle head 31 and is driven to rotate by a spindle motor 48 having an encoder 49. A tool T such as a drill, an end mill, and a grindstone is removably mounted at the tip of the spindle 25.
The attachment and detachment of the tool T to and from the tool magazine are automatically performed by an automatic tool changer (not shown).

【0016】前記コラム11の内面には一対のZ軸ガイ
ドレール32がZ方向に延在して固着されており、この
Z軸ガイドレール32により主軸頭31がZ方向に移動
可能に案内されている。また、コラム11の後部には、
エンコーダ39を備えたZ軸サーボモータ38により回
転されるZ軸ボールねじ33がZ軸ガイドレール32と
平行な軸線回りに回転可能に軸承され、このZ軸ボール
ねじ33は主軸頭31に取付けられたナット34が螺合
している。このような構成により、主軸頭31はZ軸サ
ーボモータ38の回転駆動によりZ軸ボールねじ33、
ナット34を介して一対のZ軸ガイドレール32に案内
されてZ方向に移動するようになっている。
A pair of Z-axis guide rails 32 are fixed to the inner surface of the column 11 so as to extend in the Z direction, and the spindle head 31 is guided by the Z-axis guide rails 32 so as to be movable in the Z direction. I have. Also, at the back of column 11,
A Z-axis ball screw 33 rotated by a Z-axis servo motor 38 having an encoder 39 is rotatably supported around an axis parallel to the Z-axis guide rail 32. The Z-axis ball screw 33 is mounted on the spindle head 31. Nut 34 is screwed. With such a configuration, the spindle head 31 is driven by the rotation of the Z-axis servomotor 38 so that the Z-axis ball screw 33,
It is guided by a pair of Z-axis guide rails 32 via nuts 34 and moves in the Z direction.

【0017】コラム11の前方でベッド10上には固定
又は回転割出タイプのテーブル15が設置され、このテ
ーブル15に工作物Wが図略のクランプ機構により固定
されている。上記の構成により、主軸25は主軸モータ
48により回転駆動され、主軸頭31は、X軸サーボモ
ータ18の駆動によりX軸ガイドレール12に沿ってX
方向に移動され、またY軸サーボモータ28の駆動によ
りY方向に移動されて、工具Tを工作物Wの所望の加工
位置に位置決めでき、その後Z軸サーボモータ38の駆
動によりZ方向に前進させて、例えばドリル等の工具T
により加工箇所に穴明け加工を施す。
A fixed or rotary indexing type table 15 is provided on the bed 10 in front of the column 11, and a workpiece W is fixed to the table 15 by a clamp mechanism (not shown). With the above-described configuration, the spindle 25 is rotationally driven by the spindle motor 48, and the spindle head 31 is moved along the X-axis guide rail 12 by the driving of the X-axis servomotor 18.
The tool T can be positioned at a desired machining position of the workpiece W by being driven in the Y direction by driving the Y-axis servo motor 28, and then advanced in the Z direction by driving the Z-axis servo motor 38. And a tool T such as a drill
Drilling is performed at the processing location.

【0018】工具Tがエンドミルである場合、工具Tと
工作物Wとの当接位置で主軸頭31を互いに直交する
X,Y及びZ方向に同時2軸又は3軸制御して工作物W
にコンタリング加工を施すことができる。必要であれ
ば、テーブル15上に複数の工作物を取付けるようにし
てもよい。上記のように構成される工作機械9の近傍に
は図1には図示しない、コンピュータを内蔵する数値制
御装置50とシーケンスコントローラ60が配置されて
いる。この数値制御装置50とシーケンスコントローラ
60は、工作機械9の動作を制御する。
When the tool T is an end mill, the workpiece W is controlled by simultaneously controlling two or three axes of the spindle head 31 in X, Y and Z directions orthogonal to each other at a contact position between the tool T and the workpiece W.
Can be subjected to a contouring process. If necessary, a plurality of workpieces may be mounted on the table 15. In the vicinity of the machine tool 9 configured as described above, a numerical controller 50 having a built-in computer and a sequence controller 60 not shown in FIG. 1 are arranged. The numerical controller 50 and the sequence controller 60 control the operation of the machine tool 9.

【0019】図2に示すように、数値制御装置50は、
CPU51、メモリ52によって主に構成されている。
CPU51には、インターフェイス54を介してX,
Y,Z軸と主軸制御用の駆動ユニット17,27,3
7,47が接続されており、これら駆動ユニット17,
27,37,47にはそれぞれサーボモータ18,2
8,38,48が接続されている。メモリ52は、CP
U51が実行する主軸25用のNCプログラムを番号別
に記憶するNCプログラムエリア52aと、主軸25の
速度到達などの状態情報を変数として記憶する変数エリ
ア52bと、CPU51が前記状態情報を参照する時間
を記憶するタイマエリア52cとを含む。
As shown in FIG. 2, the numerical controller 50 includes:
It is mainly composed of a CPU 51 and a memory 52.
The CPU 51 sends X,
Drive units 17, 27, 3 for controlling the Y and Z axes and the spindle
7, 47 are connected, and these drive units 17,
27, 37, and 47 have servo motors 18, 2 respectively.
8, 38 and 48 are connected. The memory 52 has a CP
An NC program area 52a for storing, by number, an NC program for the spindle 25 executed by the U51, a variable area 52b for storing state information such as speed attainment of the spindle 25 as a variable, and a time when the CPU 51 refers to the state information. And a timer area 52c to be stored.

【0020】CPU51は、メモリ52のNCプログラ
ムエリア52aに記憶されているNCプログラムの読取
り及び解析を行い、NCプログラムの各データブロック
に指令される目標位置までの多数の補間点を演算し、演
算された補間点をインターフェイス54を介して、所定
の微小時間間隔で駆動ユニット17,27,37,47
へ出力し、これら駆動ユニットにより各サーボモータ1
8,28,38,48が回転駆動され、主軸25が直交
する3次元方向であるX,Y,Z方向に移動され、工作
物Wに加工が施される。
The CPU 51 reads and analyzes the NC program stored in the NC program area 52a of the memory 52, calculates a large number of interpolation points up to a target position specified in each data block of the NC program, and calculates The interpolated points are input to the drive units 17, 27, 37, 47 at predetermined minute time intervals via the interface 54.
To each servo motor 1
8, 28, 38, and 48 are driven to rotate, and the main shaft 25 is moved in X-, Y-, and Z-directions, which are orthogonal three-dimensional directions, and the workpiece W is processed.

【0021】各制御軸のサーボモータ18,28,38
に付属のエンコーダ19,29,39からの位置帰還信
号がインターフェイス54を経由して入力されており、
CPU51はこの位置帰還信号を常時監視し、NCプロ
グラムの各データブロックで指令される目標位置との偏
差がゼロになることで送り移動の完了を確認するように
なっている。
Servo motors 18, 28, 38 of each control axis
Are input via the interface 54 from the encoders 19, 29, and 39 attached to
The CPU 51 constantly monitors the position feedback signal, and confirms the completion of the feed movement when the deviation from the target position commanded in each data block of the NC program becomes zero.

【0022】また、主軸25の主軸モータ48に付属の
エンコーダ49により主軸モータ48の回転速度が検出
されており、主軸モータ48の回転速度がNCプログラ
ムの各データブロックで指令される回転速度に到達した
ことが検出されると主軸駆動ユニット49から速度到達
信号が送出されるようになっている。この速度到達信号
はインターフェイス54を介してCPU51に入力さ
れ、メモリ52内のエリア52cに記憶されている主軸
25の速度到達情報SBに1を記憶する。なお、速度到
達信号が入力されない場合は、速度到達情報SBには0
が記憶されている。よって、CPU51はこの速度到達
情報SBを参照し、SBに1が記憶されていることを確
認することで主軸25の速度到達を確認するようになっ
ている。
The rotation speed of the spindle motor 48 is detected by an encoder 49 attached to the spindle motor 48 of the spindle 25, and the rotation speed of the spindle motor 48 reaches the rotation speed commanded by each data block of the NC program. When this is detected, a speed reaching signal is transmitted from the spindle drive unit 49. This speed reaching signal is input to the CPU 51 via the interface 54, and 1 is stored in the speed reaching information SB of the spindle 25 stored in the area 52c in the memory 52. When the speed reaching signal is not input, 0 is set in the speed reaching information SB.
Is stored. Therefore, the CPU 51 refers to the speed reaching information SB, and confirms that 1 is stored in SB, thereby confirming that the spindle 25 has reached the speed.

【0023】インターフェイス55を介してCPU51
に接続された入出力装置53は、図略の押しボタン及び
スイッチを有し、この押しボタン及びスイッチ群から入
力された各種命令は、インターフェイス55を介してC
PU51に伝達され、各種処理が実行される。インター
フェイス56を介してCPU51に接続されたシーケン
スコントローラ60は、NCプログラム中に指定される
各種補助機能命令、例えば、主軸回転起動・停止指令、
クーラントのオン・オフ命令や工具交換指令を受取り、
この命令に応じたシーケンス制御を実行する。
CPU 51 via interface 55
The input / output device 53 has push buttons and switches (not shown). Various commands input from the push buttons and switches are input to the input / output device 53 via the interface 55.
The information is transmitted to the PU 51 and various processes are executed. The sequence controller 60 connected to the CPU 51 via the interface 56 performs various auxiliary function commands specified in the NC program, for example, a spindle rotation start / stop command,
Receiving coolant ON / OFF command and tool change command,
The sequence control according to this command is executed.

【0024】次に図3〜図7に基づいて、上記構成の数
値制御装置50による工作機械9の制御方法について説
明する。工作機械9の制御を開始するには、入出力装置
53の図略の押しボタン及びスイッチ群を作業者が操作
することでインターフェイス55を介してCPU51に
NCプログラムの実行を指示する。これを受けたCPU
51は、メモリ52のエリア52aに記憶されているN
Cプログラムのうち入出力装置53の図略の押しボタン
及びスイッチ群にて指令された番号のNCプログラムを
読出し、処理を行う。
Next, a method of controlling the machine tool 9 by the numerical controller 50 having the above configuration will be described with reference to FIGS. To start the control of the machine tool 9, the operator operates a push button and a switch group (not shown) of the input / output device 53 to instruct the CPU 51 to execute the NC program via the interface 55. CPU that received this
51 is the N stored in the area 52a of the memory 52
Among the C programs, the NC programs of the numbers designated by the push buttons and switches not shown in the input / output device 53 are read and processed.

【0025】今、主軸頭31が図4に示すNCプログラ
ム10に従い、テーブル15上の工作物Wの複数の加工
箇所を加工する場合を図3に示すフローチャートに基づ
いて説明する。先ず、入出力装置53の図略の押しボタ
ン及びスイッチ群によりCPU51にNCプログラム1
0の実行が指令されるとNCプログラムのブロック番号
Nをゼロにリセットし(ステップ11)、ブロック番号
Nを1つインクレメントする(ステップ12)。次に、
CPU51はNCプログラム10の1ブロック目である
第1位置決め工程のブロックN010を読出す(ステッ
プ13)。このブロックN010にはWHILE、G1
85、G186のいずれも記述されていないので、ステ
ップ14、ステップ15、ステップ16での判断が全て
NOとなり、ステップ17へ進み、通常の移動処理が行
われる。
Now, a case where the spindle head 31 processes a plurality of machining points of the workpiece W on the table 15 in accordance with the NC program 10 shown in FIG. 4 will be described with reference to a flowchart shown in FIG. First, the NC program 1 is sent to the CPU 51 by a not-shown push button and switch group of the input / output device 53.
When the execution of 0 is instructed, the block number N of the NC program is reset to zero (step 11), and the block number N is incremented by one (step 12). next,
The CPU 51 reads the block N010 in the first positioning step, which is the first block of the NC program 10 (step 13). This block N010 contains WHILE, G1
Since neither 85 nor G186 is described, the determinations in steps 14, 15 and 16 are all NO, and the process proceeds to step 17, where normal movement processing is performed.

【0026】ステップ17では第1位置決め工程のブロ
ックN010の記述の解析を行って補間点を演算し、こ
の補間点をインターフェイス54を介して各駆動ユニッ
ト17,27,37,47に出力し、主軸25に保持さ
れた工具TをブロックN010において絶対値座標で指
令される割出し位置(X100,Y200,Z0)に早
送り移動させるべくX軸サーボモータ18及びY軸サー
ボモータ28を回転駆動すると共に、主軸モータ48を
10000min−1の回転速度で回転駆動させる。な
お、このNCプログラム10における各軸の座標は、工
作物Wの基準点を原点にする工作物座標系における座標
とする。
In step 17, the description of the block N 010 in the first positioning step is analyzed to calculate interpolation points, and the interpolation points are output to the respective drive units 17, 27, 37, and 47 via the interface 54, and The X-axis servo motor 18 and the Y-axis servo motor 28 are rotationally driven to rapidly move the tool T held at 25 to the index position (X100, Y200, Z0) specified by the absolute value coordinates in the block N010. The main shaft motor 48 is driven to rotate at a rotation speed of 10,000 min -1 . Note that the coordinates of each axis in the NC program 10 are coordinates in a workpiece coordinate system having a reference point of the workpiece W as an origin.

【0027】続いてX軸サーボモータ18及びY軸サー
ボモータ28のそれぞれのエンコーダ19,29からの
帰還信号からブロックN010で指令される第1位置決
め工程での送り軸の移動完了が確認されるまで移動が継
続され、移動完了が確認されるとステップ18での判断
がYESとなり、主軸25の速度到達が確認されなくて
もステップ19へ進む。ステップ19では現在のブロッ
クがプログラムの終了かが判断され、YESの場合はエ
ンドとなるが、NOの場合はステップ12に戻る。
Subsequently, from the feedback signals from the encoders 19 and 29 of the X-axis servo motor 18 and the Y-axis servo motor 28, until the completion of the movement of the feed axis in the first positioning step instructed in block N010 is confirmed. If the movement is continued and the completion of the movement is confirmed, the determination in step 18 becomes YES, and the process proceeds to step 19 even if the arrival of the speed of the spindle 25 is not confirmed. In step 19, it is determined whether the current block is the end of the program. If YES, the process ends, but if NO, the process returns to step 12.

【0028】ステップ12でNが1つインクレメントさ
れ、CPU51は2ブロック目である第2位置決め工程
のブロックN020を読出す。ブロックN020にはブ
ロックN010と同様にWHILE、G185、G18
6のいずれの記述もないので、ステップ14、ステップ
15、ステップ16での判断が全てNOとなり、ステッ
プ17へ進み、通常の移動処理が行われる。
In step 12, N is incremented by one, and the CPU 51 reads the block N020 of the second positioning step, which is the second block. In block N020, WHILE, G185, and G18 are provided as in block N010.
Since there is no description of No. 6, the determinations in Steps 14, 15 and 16 are all NO, and the process proceeds to Step 17, where normal movement processing is performed.

【0029】ステップ17では第2位置決め工程のブロ
ックN020の記述の解析を行って補間点を演算及び出
力し、主軸25に保持された工具TをブロックN020
で絶対値座標で指令される点(X100,Y200,Z
50)に早送り移動させる。この移動はZ軸サーボモー
タ38のエンコーダ39からの帰還信号からブロックN
020で指令される移動完了が確認されるまで継続さ
れ、第2位置決め工程の移動完了が確認されるとステッ
プ18での判断がYESとなり、ステップ19に進む。
In step 17, the description of the block N020 in the second positioning process is analyzed to calculate and output the interpolation point, and the tool T held on the spindle 25 is moved to the block N020.
Point (X100, Y200, Z)
Fast forward to 50). This movement is performed based on the feedback signal from the encoder 39 of the Z-axis servo motor 38 based on the block N.
The movement is continued until the completion of the movement commanded in 020 is confirmed. When the completion of the movement in the second positioning step is confirmed, the determination in step 18 becomes YES and the process proceeds to step 19.

【0030】ステップ19では現在のブロックがプログ
ラムの終了かが判断され、YESの場合はエンドとなる
が、NOの場合はステップ12に戻る。ステップ12で
Nが1つインクレメントされ、CPU51は3ブロック
目を読出す。このブロックにはWHILE文が記述され
ているためステップ14での判断がYESとなりステッ
プ20へ進む。ステップ20ではWHILE文の条件で
あるSB=0が成立しているかが判断される。この判断
は、メモリ52内の変数エリア52bの主軸の速度到達
の情報を表す変数SBの内容を参照することで行われ、
この変数SBは速度未達の場合はSB=0となり、速度
到達の場合はSB=1となる。
In step 19, it is determined whether or not the current block is the end of the program. If the result is YES, the program ends, but if the result is NO, the process returns to step 12. In step 12, N is incremented by one, and the CPU 51 reads the third block. Since a WHILE statement is described in this block, the determination in step 14 is YES, and the process proceeds to step 20. In step 20, it is determined whether SB = 0, which is the condition of the WHILE statement, is satisfied. This determination is made by referring to the contents of the variable SB representing the information on the speed attainment of the spindle in the variable area 52b in the memory 52,
This variable SB becomes SB = 0 when the speed has not been reached, and SB = 1 when the speed has been reached.

【0031】SB=0すなわち速度未達の場合はステッ
プ20での判断がYESとなりステップ21へ進み、ス
テップ21にてメモリ52内のタイマエリア52cに記
憶されているタイマ1がカウントアップしたかが判断さ
れ、NOの場合はステップ20に戻り再びSB=0が判
断される。そしてタイマ1の間にSB=1すなわち速度
到達が確認されない場合は、ステップ21での判断がY
ESとなってステップ22へ進み、主軸回転停止や原位
置復帰などの異常処理が行われ、エンドとなる。なお、
タイマ1の値はパラメータとしてメモリ52に記憶され
ているので、主軸モータ48の性能など諸条件に合わせ
て任意に変更が可能であるが、好適には主軸モータ48
の指令回転速度までの起動時間程度に設定するのがよ
い。
If SB = 0, that is, if the speed has not been reached, the determination in step 20 is YES and the process proceeds to step 21. In step 21, it is determined whether the timer 1 stored in the timer area 52c in the memory 52 has counted up. If NO, the process returns to step 20 and SB = 0 is determined again. If SB = 1, that is, if the arrival of the speed is not confirmed during the timer 1, the determination in step 21 is Y
The process proceeds to step 22 as ES, where abnormal processing such as stop of spindle rotation and return to the original position is performed, and the process ends. In addition,
Since the value of the timer 1 is stored in the memory 52 as a parameter, the value can be arbitrarily changed in accordance with various conditions such as the performance of the spindle motor 48.
It is preferable to set the start time to about the command rotation speed.

【0032】ステップ20での判断がNO(SB=1)
となり速度到達が確認されるとステップ23に進み、N
が1つインクレメントされENDWHILEの記述され
ているブロックを通過してステップ12へ戻る。ステッ
プ12にてNが1つインクレメントされ、CPU51は
ステップ13にて5ブロック目である加工工程のブロッ
クN030を読出す。ブロックN030にはWHIL
E、G185、G186のいずれの記述もないので、ス
テップ14、ステップ15、ステップ16での判断が全
てNOとなり、ステップ17へ進み、通常の移動処理が
行われる。
The determination in step 20 is NO (SB = 1)
When it is confirmed that the speed has been reached, the process proceeds to step 23, where N
Is incremented by one and the program passes through the block in which ENDWHILE is described, and returns to step 12. In step 12, N is incremented by one, and in step 13, the CPU 51 reads out the block N030 of the processing step which is the fifth block. WHIL in block N030
Since there is no description of any of E, G185, and G186, the determinations in steps 14, 15, and 16 are all NO, and the process proceeds to step 17, where normal movement processing is performed.

【0033】ステップ17では加工工程のブロックN0
30の記述の解析を行って補間点を演算及び出力し、主
軸25に保持された工具Tを(X100,Y200,Z
70)に1000mm/minの速度で送り移動させ工
作物Wにドリル加工を施し、Z軸サーボモータ38のエ
ンコーダ39からの帰還信号から移動完了が確認される
とステップ18での判断がYESとなり、ステップ19
に進む。ステップ19では判断がNOとなり、ステップ
12に戻る。
In step 17, the block N0 of the processing step
30 is analyzed and interpolation points are calculated and output, and the tool T held on the spindle 25 is changed to (X100, Y200, Z
70), the workpiece W is fed and moved at a speed of 1000 mm / min, and drilling is performed on the workpiece W. When the completion of the movement is confirmed from the feedback signal from the encoder 39 of the Z-axis servo motor 38, the determination in step 18 becomes YES, Step 19
Proceed to. In the step 19, the judgment is NO, and the process returns to the step 12.

【0034】ステップ12でNが1つインクレメントさ
れ、CPU51はブロックN040を読出す。ブロック
N040にはWHILE、G185、G186のいずれ
の記述もないので、ステップ14、ステップ15、ステ
ップ16での判断が全てNOとなり、ステップ17へ進
み、通常の移動処理が行われる。ステップ17ではブロ
ックN040の記述の解析を行って補間点を演算及び出
力し、主軸25に保持された工具Tを加工前の位置であ
る(X100,Y200,Z50)に早送りで戻し、Z
軸サーボモータ38のエンコーダ39からの帰還信号か
ら移動完了が確認されるとステップ18での判断がYE
Sとなり、ステップ19に進む。
In step 12, N is incremented by one, and the CPU 51 reads block N040. Since there is no description of any of WHILE, G185, and G186 in the block N040, the determinations in steps 14, 15, and 16 are all NO, and the process proceeds to step 17, where normal movement processing is performed. In step 17, the description of the block N040 is analyzed to calculate and output an interpolation point, and the tool T held on the spindle 25 is returned to the position (X100, Y200, Z50) before machining by rapid traverse.
When the completion of the movement is confirmed from the feedback signal from the encoder 39 of the shaft servomotor 38, the determination in step 18 is YE.
S, and the process proceeds to step S19.

【0035】以下このようにしてNCプログラム10が
実行され、工作物Wに対して主軸25に装着された工具
Tにより加工が施される。また、本発明は前述のように
加工工程であるブロックN030の前にWHILE文を
記述して主軸25の速度到達を確認するようにしている
が、この他に以下に示す2種類のGコードを記述して速
度到達を確認することも可能である。
The NC program 10 is executed as described above, and the workpiece W is machined by the tool T mounted on the main shaft 25. Further, according to the present invention, the WHILE statement is described before the block N030, which is a processing step, to check the speed attainment of the spindle 25. In addition, the following two types of G codes are used. It is also possible to describe and confirm the arrival of the speed.

【0036】先ず、図5に示すNCプログラム20のよ
うに、加工工程であるブロックN030の先頭にG18
5を記述した場合について説明する。この場合、第2位
置決め工程であるブロックN020までは前述のNCプ
ログラム10と同様の処理が実行され、加工工程である
ブロックN030が読出されると図3のフローチャート
のステップ15での判断がYESとなりステップ24に
進む。ステップ24において前述のNCプログラム10
と同様に、メモリ52内の変数エリア52bの主軸の速
度到達の情報を表す変数SBの内容が参照され、SB=
1すなわち主軸25の指令回転速度への到達が判断され
る。
First, as in the NC program 20 shown in FIG.
5 is described. In this case, the same processing as the above-described NC program 10 is executed up to the block N020 which is the second positioning step, and when the block N030 which is the processing step is read, the determination in step 15 of the flowchart of FIG. 3 becomes YES. Proceed to step 24. In step 24, the aforementioned NC program 10
Similarly to the above, the contents of the variable SB indicating the information of the speed arrival of the spindle in the variable area 52b in the memory 52 are referred to, and SB =
1, that is, reaching the command rotation speed of the main shaft 25 is determined.

【0037】ステップ24で速度到達(SB=1)が確
認されるとステップ17へ進み、ブロックN030のG
185以降に記述されている移動処理が実行され、工作
物Wに対して加工が施される。ステップ25においてタ
イマ2がタイムアップする間に主軸25の速度到達が確
認されない場合はステップ22へ進み、異常処理が実行
される。なお、タイマ2の値はパラメータとしてメモリ
52に記憶されているので、諸条件に合わせて任意に変
更が可能であるが、好適には主軸モータ48の指令回転
速度までの起動時間程度に設定するのがよい。
When it is confirmed in step 24 that the speed has reached (SB = 1), the flow advances to step 17 where G in block N030 is set.
The movement process described after 185 is executed, and the workpiece W is processed. If it is not confirmed in step 25 that the speed of the spindle 25 has reached while the timer 2 times out, the process proceeds to step 22 and abnormal processing is executed. Since the value of the timer 2 is stored in the memory 52 as a parameter, it can be arbitrarily changed in accordance with various conditions. However, it is preferable to set the value to about the activation time up to the command rotation speed of the spindle motor 48. Is good.

【0038】次に、図6に示すNCプログラム30のよ
うに、加工工程であるブロックN030の1つ前の第2
位置決め工程であるブロックN020の先頭にG186
を記述した場合について説明する。この場合、第1位置
決め工程であるブロックN010までは前述のNCプロ
グラム10と同様の処理が実行され、第2位置決め工程
であるブロックN020が読出されると図3のフローチ
ャートのステップ16での判断がYESとなりステップ
26に進み、第2位置決め工程であるブロックN020
で指令されている移動処理が実行される。
Next, as shown in the NC program 30 shown in FIG. 6, the second step before the block N030 which is the machining step is performed.
G186 at the beginning of block N020, which is a positioning process
Is described. In this case, the same processing as that of the above-described NC program 10 is executed up to the block N010 which is the first positioning step, and when the block N020 which is the second positioning step is read, the determination in step 16 of the flowchart of FIG. If the result is YES, the process proceeds to a step S26, where a block N020 as a second positioning step
Is executed.

【0039】そして、ステップ27にて前述のNCプロ
グラム10と同様に、Z軸サーボモータ38のエンコー
ダ39からの帰還信号から移動完了が確認されるとステ
ップ27での判断がYESとなり、ステップ28に進
む。ステップ28において前述のNCプログラム10と
同様に、メモリ52内の変数エリア52bの主軸の速度
到達の情報を表す変数SBの内容が参照され、SB=1
すなわち主軸25の指令回転速度への到達が判断され
る。ステップ28で速度到達(SB=1)が確認される
とブロックN020の処理を終了し、ステップ19、ス
テップ12を経て加工工程であるブロックN030を読
み出し、ブロックN030に記述されている移動処理が
実行され、工作物Wに対して加工が施される。
When the completion of the movement is confirmed from the feedback signal from the encoder 39 of the Z-axis servomotor 38 in the same manner as in the NC program 10 in the step 27, the determination in the step 27 becomes YES, and the process proceeds to the step 28. move on. In step 28, as in the above-described NC program 10, the contents of the variable SB representing the information on the speed attainment of the spindle in the variable area 52b in the memory 52 are referred to, and SB = 1
That is, it is determined that the spindle 25 has reached the command rotational speed. When it is confirmed in step 28 that the speed has reached (SB = 1), the processing in block N020 is terminated, and block N030, which is a machining process, is read out through steps 19 and 12, and the movement processing described in block N030 is executed. Then, the workpiece W is processed.

【0040】ステップ29においてタイマ3がタイムア
ップする間に主軸25の速度到達が確認されない場合は
ステップ22へ進み、異常処理が実行される。なお、タ
イマ3の値はパラメータとしてメモリ52に記憶されて
いるので、諸条件に合わせて任意に変更が可能である
が、好適には主軸モータ48の指令回転速度までの起動
時間程度に設定するのがよい。また、前述したタイマ1
〜3の値は同じ値にする必要はなく、互いに異なる値と
することが可能である。
If it is determined in step 29 that the speed of the spindle 25 has not been reached while the timer 3 times out, the flow advances to step 22 to execute an abnormal process. Since the value of the timer 3 is stored as a parameter in the memory 52, it can be arbitrarily changed according to various conditions. However, it is preferable to set the value to about the activation time up to the command rotation speed of the spindle motor 48. Is good. Also, the timer 1 described above
The values of ~ 3 need not be the same, but can be different from each other.

【0041】本実施の形態によれば、X,Y,Zの各送
り軸速度及び主軸の回転速度の時間に対する関係は図7
に示すようになる。図7に示すようにNCプログラム1
0〜30のいずれの場合も主軸25の回転速度が指令さ
れる第1位置決め工程のブロックN010において指令
回転速度への到達が確認されなくても次の第2位置決め
工程のブロックN020における移動が実行される。そ
して、主軸25の回転速度は第2位置決め工程のブロッ
クN020の移動途中において指令回転速度へ到達し、
この速度到達は、WHILE,G185,G186のい
ずれかにより第2位置決め工程のブロックN020の移
動完了後と加工工程のブロックN030移動開始前の間
で確認され、加工工程のブロックN030での移動へと
移行する。
According to the present embodiment, the relationship between the feed shaft speed of X, Y, and Z and the rotation speed of the main shaft with respect to time is shown in FIG.
It becomes as shown in. As shown in FIG.
In any of the cases of 0 to 30, the movement in the block N020 of the next second positioning step is executed even if it is not confirmed in the block N010 of the first positioning step that the rotation speed of the spindle 25 is commanded that the commanded rotation speed has been reached. Is done. Then, the rotation speed of the spindle 25 reaches the command rotation speed during the movement of the block N020 in the second positioning process,
This speed attainment is confirmed by one of WHILE, G185, and G186 after the movement of the block N020 in the second positioning process is completed and before the movement of the block N030 in the machining process is started, and the movement to the block N030 in the machining process is started. Transition.

【0042】このように本実施の形態によれば、主軸2
5の指令回転速度への到達を確認しなくてもこの主軸2
5の回転速度指令を含む第1位置決め工程であるブロッ
クN010以降のデータブロックの処理を実行し、加工
工程であるブロックN030前に主軸の速度到達を確認
して実際の加工を実施するので、従来のように主軸の速
度到達の確認を待つ時間(t1)が必要なくなり、それ
だけサイクルタイムの短縮ができる。本実施の形態では
ドリル加工について説明したが、本発明はミーリング加
工などにおいても実施可能である。
As described above, according to the present embodiment, the spindle 2
5 without confirming that the rotation speed reaches the commanded rotation speed.
Since the processing of the data blocks subsequent to block N010, which is the first positioning step, including the rotation speed command of No. 5 is performed, and the speed of the spindle is reached before the block N030, which is the processing step, actual processing is performed. As described above, the time (t1) to wait for confirmation of the arrival of the spindle speed is not required, and the cycle time can be shortened accordingly. Although the present embodiment has described the drilling, the present invention can also be implemented in a milling or the like.

【0043】[0043]

【発明の効果】上述のように、請求項1の発明によれ
ば、主軸の回転速度が指令される第1位置決め工程にお
いては主軸の指令回転速度への到達を確認することな
く、送り軸の移動完了が確認されればこれ以降の工程を
実行するので、主軸の速度到達を待つ時間が無くなり、
サイクルタイムが短縮できる。また、請求項2の発明に
よれば、第1位置決め工程と加工工程との間の任意工程
において主軸の速度到達を確認できるのでプログラム作
成の自由度が向上し、汎用性の高い制御が可能になる。
また、所定時間経過しても指令回転速度に到達しない場
合は、異常と見なし以降の工程を実行しないので、確実
に異常を検出でき、異常状態のままで加工が開始される
ことはなく、加工精度の悪化や工具折損を招くことはな
い。
As described above, according to the first aspect of the present invention, in the first positioning step in which the rotation speed of the spindle is commanded, the arrival of the feed shaft to the command rotation speed is not confirmed without confirming that the spindle reaches the commanded rotation speed. If the completion of the movement is confirmed, the subsequent steps are executed, so there is no time to wait for the spindle speed to reach,
Cycle time can be reduced. According to the second aspect of the present invention, the arrival of the spindle speed can be confirmed in any step between the first positioning step and the machining step, so that the degree of freedom in creating a program is improved and control with high versatility is possible. Become.
If the commanded rotation speed is not reached even after the lapse of the predetermined time, the process is regarded as abnormal and the subsequent steps are not executed, so that the abnormality can be reliably detected, and the machining is not started in the abnormal state. There is no deterioration of accuracy or tool breakage.

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

【図1】本発明の実施の形態における数値制御装置が制
御対象とする主軸を備えた工作機械の側面図である。
FIG. 1 is a side view of a machine tool provided with a spindle to be controlled by a numerical controller according to an embodiment of the present invention.

【図2】図1の工作機械を制御する数値制御装置の概略
構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a schematic configuration of a numerical controller that controls the machine tool of FIG. 1;

【図3】図2の数値制御装置が実行する制御処理の概要
を示すフローチャートである。
FIG. 3 is a flowchart illustrating an outline of a control process executed by the numerical controller of FIG. 2;

【図4】WHILE文による主軸の速度到達の確認を行
うNCプログラム10を示す図である。
FIG. 4 is a diagram showing an NC program 10 for confirming the arrival of the spindle speed by a WHILE statement.

【図5】G185による主軸の速度到達の確認を行うN
Cプログラム20を示す図である。
FIG. 5 shows N for confirming the arrival of the spindle speed by G185.
FIG. 3 is a diagram showing a C program 20.

【図6】G186による主軸の速度到達の確認を行うN
Cプログラム30を示す図である。
FIG. 6 shows N for confirming the arrival of the speed of the spindle by G186.
FIG. 3 is a diagram showing a C program 30.

【図7】図4,5,6のNCプログラム10,20,3
0におけるX,Y,Zの各送り軸速度及び主軸の回転速
度の時間に対する関係を示す図である。
FIG. 7 shows the NC programs 10, 20, and 3 of FIGS.
It is a figure which shows each feed axis speed of X, Y, Z at 0 and the relationship with respect to time of the rotational speed of a main shaft.

【図8】従来のNCプログラム50を示す図である。FIG. 8 is a diagram showing a conventional NC program 50.

【図9】図8のNCプログラム50におけるX,Y,Z
の各送り軸速度及び主軸の回転速度の時間に対する関係
を示す図である。
9 shows X, Y, and Z in the NC program 50 of FIG.
FIG. 4 is a diagram showing a relationship between each feed shaft speed and the rotation speed of the main shaft with respect to time.

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

18,28,38 X,Y,Z軸サーボ
モータ 19,29,39,49 エンコーダ 25 主軸 48 主軸モータ 50 数値制御装置 51 CPU 52 メモリ 52a NCプログラムエリ
ア 52b 変数エリア SB 変数 T 工具 WHILE,G185,G186 速度到達情報確認指
18, 28, 38 X, Y, Z axis servo motors 19, 29, 39, 49 Encoder 25 Spindle 48 Spindle motor 50 Numerical control unit 51 CPU 52 Memory 52a NC program area 52b Variable area SB variable T Tool WHILE, G185, G186 Speed arrival information confirmation command

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 主軸がNCプログラムのデータブロック
で指令される指令回転速度への到達を確認後工作物の加
工を開始するように工作機械を制御する制御方法であっ
て、工具が装着された前記主軸を回転起動すると共に送
り軸を駆動させ前記工具を前記工作物の加工箇所と切込
み方向で整列する割出し位置へ向けて位置決めする第1
位置決め工程と、この第1位置決め工程において送り軸
の移動完了が確認された後前記主軸の指令回転速度への
到達の確認を行わず、前記工具を加工開始位置へ向けて
前記切込み方向で位置決めする第2位置決め工程と、こ
の第2位置決め工程の完了が確認された後、前記主軸の
指令回転速度への到達の確認を行い、速度到達が確認さ
れた後、前記工具を前記切込み方向へ加工送りする加工
工程とを含むことを特徴とする工作機械の制御方法。
1. A control method for controlling a machine tool to start machining of a workpiece after confirming that a spindle reaches a command rotation speed commanded by a data block of an NC program, wherein a tool is mounted. First, the main shaft is started to rotate and the feed shaft is driven to position the tool toward an indexing position aligned with a processing location of the workpiece in a cutting direction.
After the completion of the movement of the feed shaft is confirmed in the positioning step and the first positioning step, the tool is positioned in the cutting direction toward the machining start position without confirming that the spindle has reached the commanded rotational speed. After the completion of the second positioning step and the completion of the second positioning step, it is confirmed that the spindle has reached the commanded rotational speed. After the arrival of the speed has been confirmed, the tool is machined in the cutting direction. A method of controlling a machine tool, comprising:
【請求項2】 請求項1に記載の工作機械の制御方法に
おいて、前記加工工程以前の任意の工程において前記主
軸の速度到達の確認指令を行う確認指令工程と、この確
認指令により数値制御装置のメモリ内に記憶される速度
到達情報を参照する参照工程と、この参照において所定
時間内に速度到達が確認される場合には前記工具を前記
切込み方向へ加工送りする加工工程と、前記参照におい
て所定時間経過しても速度到達が確認されない場合には
異常処理を実行する異常処理工程とを更に含むことを特
徴とする工作機械の制御方法。
2. The method of controlling a machine tool according to claim 1, further comprising: a confirmation command step of issuing a confirmation command for reaching the speed of the spindle in an arbitrary step before the machining step; A reference step of referring to speed attainment information stored in a memory; a machining step of machining and feeding the tool in the cutting direction if the speed attainment is confirmed within a predetermined time in the reference; A method for controlling a machine tool, further comprising an abnormality processing step of executing an abnormality processing when the arrival at the speed is not confirmed even after a lapse of time.
JP11132302A 1999-05-13 1999-05-13 Control method for machine tool Pending JP2000317772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11132302A JP2000317772A (en) 1999-05-13 1999-05-13 Control method for machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11132302A JP2000317772A (en) 1999-05-13 1999-05-13 Control method for machine tool

Publications (1)

Publication Number Publication Date
JP2000317772A true JP2000317772A (en) 2000-11-21

Family

ID=15078130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11132302A Pending JP2000317772A (en) 1999-05-13 1999-05-13 Control method for machine tool

Country Status (1)

Country Link
JP (1) JP2000317772A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102010063244A1 (en) 2010-01-13 2011-07-14 Mori Seiki Co., Ltd., Nara-ken machine tool

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102010063244A1 (en) 2010-01-13 2011-07-14 Mori Seiki Co., Ltd., Nara-ken machine tool
JP2011145825A (en) * 2010-01-13 2011-07-28 Mori Seiki Co Ltd Machine tool
CN102139461A (en) * 2010-01-13 2011-08-03 株式会社森精机制作所 Machine tool
US8629641B2 (en) 2010-01-13 2014-01-14 Mori Seiki Co., Ltd. Machine tool to control driving of control objects

Similar Documents

Publication Publication Date Title
KR950000839B1 (en) Machine tool numerical controller with a trouble stop function
US7847506B2 (en) Machine tool controller
US7899574B2 (en) Machine-tool controller
JP4947534B2 (en) Machine tool and method of operating machine tool
JP5908552B1 (en) Machine tool controller
US11106194B2 (en) Numerical controller for continuous cutting control
US6163735A (en) Numerically controlled machine tool
US20190202017A1 (en) Selecting device, selecting method, and program
JP2000284817A (en) Numerical controller to simultaneously control two movable objects no common track
JP2009142915A (en) Machine tool and machining method using the same
KR102493822B1 (en) Continuous processing method for machine tool and machine tool for performing the same
US20230033414A1 (en) Numerical controller
JPH08263115A (en) Interference evading method for nc machine tool
JPH1058279A (en) Turret tool selection instruction method
JP2000317772A (en) Control method for machine tool
JPH11202926A (en) Method and device for feed speed control in numerical control
US10996655B2 (en) Numerical controller
JP2002273601A (en) Multispindle machine tool
JP2000305612A (en) Numerical controller capable of controlling plural main shafts
JP6457588B2 (en) Numerical controller
JP3587046B2 (en) Numerical control device that simultaneously controls two movable bodies on a common path
JPH08112701A (en) Machining method executed on nc-lathe and nc-lathe capable of back up machining
JP4672288B2 (en) Control device for controlling movement of movable part of machine tool, machine tool having control device, and moving method of movable part
JP2022024443A (en) Machine tool control system
JPH06262403A (en) Position control device for moving body in machine tool