JP5143661B2 - NC lathe control method and control device - Google Patents

NC lathe control method and control device Download PDF

Info

Publication number
JP5143661B2
JP5143661B2 JP2008205558A JP2008205558A JP5143661B2 JP 5143661 B2 JP5143661 B2 JP 5143661B2 JP 2008205558 A JP2008205558 A JP 2008205558A JP 2008205558 A JP2008205558 A JP 2008205558A JP 5143661 B2 JP5143661 B2 JP 5143661B2
Authority
JP
Japan
Prior art keywords
point
path
operation command
fast
tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008205558A
Other languages
Japanese (ja)
Other versions
JP2010039995A (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.)
DMG Mori Co Ltd
Original Assignee
DMG Mori Co Ltd
Mori Seiki Co Ltd
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 DMG Mori Co Ltd, Mori Seiki Co Ltd filed Critical DMG Mori Co Ltd
Priority to JP2008205558A priority Critical patent/JP5143661B2/en
Publication of JP2010039995A publication Critical patent/JP2010039995A/en
Application granted granted Critical
Publication of JP5143661B2 publication Critical patent/JP5143661B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、工具及びワークを2次元平面内で相対移動させる送り機構部を備えたNC旋盤の前記送り機構部をNCプログラムに基づいて制御するNC旋盤の制御方法及び制御装置に関する。   The present invention relates to an NC lathe control method and control apparatus for controlling the feed mechanism portion of an NC lathe provided with a feed mechanism portion for relatively moving a tool and a workpiece in a two-dimensional plane based on an NC program.

工具及びワークを相対移動させるに当たって早送り動作指令が連続している場合に、移動経路を変更して移動させる工作機械の早送り制御装置として、従来、例えば、特開平6−180605号公報に開示されたものが知られている。   Conventionally, for example, Japanese Patent Laid-Open No. 6-180605 discloses a fast-forwarding control device for a machine tool that moves a tool and a workpiece by changing a moving path when a fast-forwarding operation command is continued when the tool and the workpiece are relatively moved. Things are known.

この早送り制御装置は、NCプログラムをブロック毎に解析して送り機構部に関する動作指令を抽出するプログラム解析部と、プログラム解析部によって抽出された動作指令を実行するための制御信号を出力するプログラム実行制御部と、プログラム実行制御部から得られる制御信号を基に、工具及びワークを相対移動させる送り機構部の作動を制御する加減速制御部と、早送り動作指令が連続している場合、工具が一定位置まで早送りで移動すると、次ブロックに係る早送り動作の実行開始信号をプログラム実行制御部に送信する経路変更制御部などを備える。   This fast-forward control device analyzes a NC program for each block and extracts an operation command related to a feed mechanism unit, and executes a program that outputs a control signal for executing the operation command extracted by the program analysis unit Based on the control signal obtained from the control unit and the program execution control unit, the acceleration / deceleration control unit that controls the operation of the feed mechanism unit that relatively moves the tool and the workpiece, and the rapid feed operation command are continuous, the tool is A path change control unit that transmits an execution start signal of a fast-forward operation related to the next block to the program execution control unit when moving to a certain position by fast-forwarding is provided.

前記経路変更制御部は、プログラム解析部によって抽出された動作指令を基に、早送り動作指令が連続しているか否かを確認し、連続していると判断した場合には、先行するブロックの動作指令に基づき早送りで移動している工具の移動位置であって加減速制御部から得られる移動位置が前記動作指令中に含まれる経路変更開始点を越えると、前記実行開始信号をプログラム実行制御部に送信し、前記プログラム実行制御部は、前記実行開始信号を経路変更制御部から受信すると、次ブロックに係る動作指令に基づいた制御信号を加減速制御部に出力し、加減速制御部により次ブロックの早送り動作を実行させる。   The path change control unit checks whether or not the fast-forward operation command is continuous based on the operation command extracted by the program analysis unit. When the movement position of the tool moving at a rapid feed based on the command and the movement position obtained from the acceleration / deceleration control unit exceeds the path change start point included in the operation command, the execution start signal is sent to the program execution control unit. When the program execution control unit receives the execution start signal from the path change control unit, the program execution control unit outputs a control signal based on the operation command related to the next block to the acceleration / deceleration control unit, and the acceleration / deceleration control unit Causes the block to fast forward.

この早送り制御装置では、先行するブロックの動作指令に基づき早送りで移動している工具の移動位置が経路変更開始点を越えると、次ブロックに係る早送り動作が開始されるので、早送り時間の短縮が図られる。   In this rapid traverse control device, when the movement position of the tool moving by rapid traverse based on the operation command of the preceding block exceeds the path change start point, the rapid traverse operation related to the next block is started, so that the rapid traverse time is shortened. Figured.

特開平6−180605号公報JP-A-6-180605

しかしながら、上記従来の早送り制御装置では、次ブロックに係る早送り動作指令を実行開始させるための経路変更開始点をオペレータがNCプログラム中に予め設定しておく必要があるため、以下のような問題を生じていた。   However, in the conventional fast-forward control device, the operator needs to set in advance in the NC program a path change start point for starting execution of a fast-forward operation command related to the next block. It was happening.

即ち、この経路変更開始点を設定するためには、オペレータは、工具の移動経路を計算して工具とワークとが干渉しないことを確認する必要があるので、NCプログラムの作成が複雑,困難になり、NCプログラムを効率的に作成することができなかった。また、工具の移動経路は単純に計算することができないため、安全をみて経路変更開始点を早送り動作指令の目標移動位置(終点)に近づけた位置に設定するといったことも行われており、このようにすると、目標移動位置に近づけた分だけ次ブロックに係る早送り動作指令の開始が遅くなって早送り時間を効果的に短縮することができない。   That is, in order to set the path change start point, the operator needs to calculate the movement path of the tool and confirm that the tool and the workpiece do not interfere with each other. Therefore, the creation of the NC program is complicated and difficult. Therefore, the NC program could not be created efficiently. In addition, since the movement path of the tool cannot be simply calculated, the path change start point is set at a position close to the target movement position (end point) of the fast-forward operation command for safety reasons. As a result, the start of the fast-forward operation command related to the next block is delayed by the amount closer to the target movement position, and the fast-forward time cannot be effectively shortened.

本発明は、以上の実情に鑑みなされたものであって、簡単且つ効率的に工具及びワークを相対的に早送り移動させることができるNC旋盤の制御方法及び制御装置の提供をその目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a control method and a control device for an NC lathe that can easily and efficiently move a tool and a workpiece relatively quickly.

上記目的を達成するための本発明は、
工具及びワークを2次元平面内で相対移動させる送り機構部を備えたNC旋盤の前記送り機構部をNCプログラムに基づいて制御する方法であって、
前記NCプログラムをブロック毎に順次解析して前記送り機構部に関する動作指令を抽出するプログラム解析処理と、
前記抽出された動作指令を基に駆動制御信号を生成し、生成した駆動制御信号を前記送り機構部に送信してその作動を制御する駆動制御処理と、
前記抽出された動作指令であって前記駆動制御処理で実行されるブロックよりも1ブロック以上進んだブロックの動作指令を基に、直線移動に係る早送りの動作指令が連続しているか否かを確認して、連続している場合には、これらの早送り動作指令に基づいた本来の工具移動経路たる直線経路よりも前記ワーク側に接近した経路に沿って前記工具が移動するように前記駆動制御信号を修正する経路変更処理とを行うように構成されたNC旋盤の制御方法において、
前記NCプログラムを、直線移動に係る早送り動作指令については、前記直線経路が含まれ且つ前記直線経路に沿う一定幅の領域であって前記工具及びワークが相対移動可能な領域を設定するのに必要な幅に関するデータを含むように構成し、
前記経路変更処理では、早送り動作指令が連続していると判断すると、まず、これらの早送り動作指令に含まれる、前記幅に関するデータを認識し、前記直線経路に沿った一定幅の領域であり且つ前記工具及びワークが相対移動可能な領域を設定してこの領域の隅部を特定し、特定した隅部を第1点として設定するとともに、前記直線経路の角部を終点とする直線経路上に第2点を、前記直線経路の角部を始点とする直線経路上に第3点をそれぞれ設定してこれら第1点,第2点及び第3点を通る曲線を設定した後、前記駆動制御部で前記連続する早送り動作指令に基づき生成され前記送り機構部に送信される駆動制御信号を、前記直線経路の角部を終点とする早送り動作指令の始点から前記第2点までの直線、前記設定した曲線、前記第3点から前記直線経路の角部を始点とする早送り動作指令の終点までの直線に沿って前記工具及びワークが移動するような駆動制御信号に修正するようにしたことを特徴とするNC旋盤の制御方法に係る。
To achieve the above object, the present invention provides:
A method for controlling the feed mechanism part of an NC lathe provided with a feed mechanism part for relatively moving a tool and a workpiece in a two-dimensional plane based on an NC program,
A program analysis process for sequentially analyzing the NC program for each block and extracting an operation command related to the feed mechanism;
A drive control process for generating a drive control signal based on the extracted operation command, and transmitting the generated drive control signal to the feed mechanism unit to control its operation;
Based on the extracted operation command that is one or more blocks ahead of the block executed in the drive control process, it is confirmed whether or not the fast-forward operation command for linear movement is continuous. And when it is continuous, the drive control signal is used so that the tool moves along a path closer to the workpiece side than a linear path that is an original tool movement path based on these fast-forward operation commands. In the NC lathe control method configured to perform a path change process for correcting
Necessary for setting the NC program as to a fast-forward operation command related to linear movement, including an area having a certain width along the linear path and capable of relative movement of the tool and the workpiece. Configured to contain data about the width
In the path change process, when it is determined that the fast-forward operation command is continuous, first, the data relating to the width included in the fast-forward operation command is recognized, the region is a constant width region along the straight path and An area where the tool and the workpiece can be moved relative to each other is set, a corner of the area is specified, the specified corner is set as a first point, and the corner of the straight path is set as an end point on the straight path The second point is set to a third point on a straight path starting from a corner of the straight line, and a curve passing through the first point, the second point, and the third point is set, and then the drive control is performed. A drive control signal that is generated based on the continuous fast-forward operation command and transmitted to the feed mechanism unit in a straight line from the start point of the fast-forward operation command that ends at the corner of the straight path to the second point, The set curve, the third A control method for an NC lathe, wherein the driving control signal is corrected so that the tool and the workpiece move along a straight line from the corner of the straight path to the end point of the fast-forward operation command. Concerning.

そして、このNC旋盤の制御方法は、以下のNC旋盤の制御装置によってこれを好適に実施することができる。即ち、この制御装置は、
工具及びワークを2次元平面内で相対移動させる送り機構部を備えたNC旋盤に設けられ、NCプログラムに基づいて前記送り機構部を制御する制御装置であって、
前記NCプログラムを記憶するプログラム記憶部と、
前記プログラム記憶部に格納されたNCプログラムをブロック毎に順次解析して前記送り機構部に関する動作指令を抽出するプログラム解析部と、
前記プログラム解析部によって抽出された動作指令を基に駆動制御信号を生成し、生成した駆動制御信号を前記送り機構部に送信してその作動を制御する駆動制御部と、
前記プログラム解析部によって抽出された動作指令であって前記駆動制御部で実行されるブロックよりも1ブロック以上進んだブロックの動作指令を基に、直線移動に係る早送りの動作指令が連続しているか否かを確認して、連続している場合には、これらの早送り動作指令に基づいた本来の工具移動経路たる直線経路よりも前記ワーク側に接近した経路に沿って前記工具が移動するように前記駆動制御信号を修正する経路変更処理部とを備えたNC旋盤の制御装置において、
前記プログラム記憶部には、直線移動に係る早送り動作指令については、前記直線経路が含まれ且つ前記直線経路に沿う一定幅の領域であって前記工具及びワークが相対移動可能な領域を設定するのに必要な幅に関するデータを含むように構成されたNCプログラムが格納され、
前記経路変更処理部は、早送り動作指令が連続していると判断すると、まず、これらの早送り動作指令に含まれる、前記幅に関するデータを認識し、前記直線経路に沿った一定幅の領域であり且つ前記工具及びワークが相対移動可能な領域を設定してこの領域の隅部を特定し、特定した隅部を第1点として設定するとともに、前記直線経路の角部を終点とする直線経路上に第2点を、前記直線経路の角部を始点とする直線経路上に第3点をそれぞれ設定してこれら第1点,第2点及び第3点を通る曲線を設定した後、前記駆動制御部で前記連続する早送り動作指令に基づき生成され前記送り機構部に送信される駆動制御信号を、前記直線経路の角部を終点とする早送り動作指令の始点から前記第2点までの直線、前記設定した曲線、前記第3点から前記直線経路の角部を始点とする早送り動作指令の終点までの直線に沿って前記工具及びワークが移動するような駆動制御信号に修正するように構成される。
And this NC lathe control method can be suitably implemented by the following NC lathe control device. That is, this control device
A control device provided on an NC lathe provided with a feed mechanism that relatively moves a tool and a workpiece in a two-dimensional plane, and controls the feed mechanism based on an NC program,
A program storage unit for storing the NC program;
A program analysis unit that sequentially analyzes the NC program stored in the program storage unit for each block and extracts an operation command related to the feed mechanism unit;
A drive control unit that generates a drive control signal based on the operation command extracted by the program analysis unit, transmits the generated drive control signal to the feed mechanism unit, and controls its operation;
Based on the operation command extracted by the program analysis unit that is one block or more advanced than the block executed by the drive control unit, is the fast-forward operation command related to linear movement continuous? If it is continuous, if the tool is continuous, the tool moves along a path closer to the workpiece side than the linear path that is the original tool movement path based on these fast-forwarding operation commands. In a control device for an NC lathe provided with a path change processing unit for correcting the drive control signal,
For the fast-forward operation command related to linear movement, the program storage unit sets an area that includes the linear path and has a constant width along the linear path and that the tool and the workpiece can move relative to each other. An NC program configured to contain data relating to the required width is stored,
When determining that the fast-forward operation command is continuous, the route change processing unit first recognizes the data relating to the width included in these fast-forward operation commands, and is an area having a constant width along the straight-line route. In addition, an area in which the tool and the workpiece can be moved relative to each other is set, a corner of the area is specified, the specified corner is set as the first point, and a corner of the straight path is set as an end point. The second point is set to the third point on the straight line path starting from the corner of the straight line path, and a curve passing through the first point, the second point, and the third point is set. A drive control signal generated based on the continuous fast-forwarding operation command and transmitted to the feeding mechanism unit in the control unit, a straight line from the start point of the fast-forwarding operation command to the second point with the corner of the linear path as an end point, The set curve, the third The tool and the workpiece along a straight line to the end point of the rapid traverse motion command for starting the corners of the straight path from the configured to modify the drive control signal to move.

この制御装置によれば、まず、予め作成されたNCプログラムがプログラム記憶部に格納される。このNCプログラムは、直線移動に係る早送り動作指令については、直線経路が含まれ且つ直線経路に沿う一定幅の領域であって工具及びワークが相対移動可能な(工具及びワークが相互に干渉しない)領域を設定するのに必要な幅に関するデータを含むように構成される。   According to this control device, first, an NC program created in advance is stored in the program storage unit. This NC program includes a straight path for a fast-forward operation command related to linear movement, and is an area having a constant width along the linear path so that the tool and the work can move relative to each other (the tool and the work do not interfere with each other). It is configured to contain data relating to the width required to set the area.

そして、プログラム記憶部に格納されたNCプログラムが実行される際には、まず、このNCプログラムがプログラム解析部によりブロック毎に順次解析されて送り機構部に関する動作指令が抽出された後、駆動制御部により、抽出された動作指令を基に駆動制御信号が生成されて送り機構部に送信され、これにより、工具及びワークが相対移動する。   When the NC program stored in the program storage unit is executed, first, the NC program is sequentially analyzed for each block by the program analysis unit, and an operation command related to the feed mechanism unit is extracted. A drive control signal is generated by the unit based on the extracted operation command and transmitted to the feed mechanism unit, whereby the tool and the workpiece move relative to each other.

また、プログラム解析部によって抽出された動作指令であって駆動制御部で実行されるブロックよりも1ブロック以上進んだブロックの動作指令を基に、経路変更処理部により、直線移動に係る早送り動作指令が連続しているか否かが確認されて、連続していると判断された場合には、これらの早送り動作指令に基づいた本来の工具移動経路たる直線経路よりもワーク側に接近した経路に沿って工具が移動するように駆動制御信号が修正される。   Further, based on the operation command extracted by the program analysis unit and advanced by one block or more than the block executed by the drive control unit, the path change processing unit performs a fast-forward operation command related to linear movement. Is confirmed to be continuous, and if it is determined to be continuous, along the path closer to the workpiece side than the linear path that is the original tool movement path based on these rapid feed operation commands The drive control signal is corrected so that the tool moves.

具体的には、早送り動作指令が連続していると判断されると、まず、これらの早送り動作指令に含まれる、幅に関するデータが認識され、直線経路に沿った一定幅の領域であり且つ工具及びワークが相対移動可能な領域が設定され、この領域の隅部が特定される。この隅部の特定は、例えば、直線経路の角部近傍に形成される、前記領域の境界線の2つの交点を抽出し、抽出した交点がそれぞれ前記領域の隅部に対応するか角部に対応するのかを判定することにより行うことができる。   Specifically, when it is determined that the rapid traverse operation commands are continuous, first, the data relating to the width included in the rapid traverse operation commands is recognized, the region is a constant width along the straight path, and the tool An area where the workpiece can be relatively moved is set, and a corner of this area is specified. This corner is specified by, for example, extracting two intersections of the boundary line of the region formed in the vicinity of the corner of the straight path, and each of the extracted intersections corresponds to the corner of the region or at the corner. This can be done by determining whether it corresponds.

ついで、特定された隅部が第1点として設定されるとともに、直線経路の角部を終点とする直線経路上に第2点が、直線経路の角部を始点とする直線経路上に第3点が設定されてこれら第1点,第2点及び第3点を通る曲線が設定された後、連続する早送り動作指令に基づき駆動制御部で生成され送り機構部に送信される駆動制御信号が、直線経路の角部を終点とする早送り動作指令の始点から第2点までの直線、設定された曲線、第3点から直線経路の角部を始点とする早送り動作指令の終点までの直線に沿って工具及びワークが移動するような駆動制御信号に修正される。   Then, the specified corner is set as the first point, the second point is on the straight path having the corner of the straight path as the end point, and the third point is on the straight path having the corner of the straight path as the start point. After the points are set and the curves passing through the first point, the second point, and the third point are set, a drive control signal generated by the drive control unit and transmitted to the feed mechanism unit based on the continuous fast-forward operation command is generated. , A straight line from the start point to the second point of the fast-forward operation command starting at the corner of the straight path, a set curve, and a straight line from the third point to the end point of the fast-forwarding operation command starting at the corner of the straight path The driving control signal is corrected so that the tool and the workpiece move along.

尚、前記第2点及び第3点を設定するに当たっては、例えば、前記直線経路に接し前記第1点を通る円弧と前記直線経路との接点に第2点及び第3点を設定するようにしても良い。また、前記曲線としては、何ら限定されるものではないが、例えば、5次多項式曲線、5次スプライン曲線、5次NURBS曲線で表されるものなどが挙げられ、直線は含まれないものとする。また、駆動制御信号の修正は、例えば、駆動制御部から送り機構部に送信される駆動制御信号に、経路変更処理部で生成した所定の修正信号(上記のように工具及びワークを移動させるための駆動制御信号)を加算することで行うことができる。   In setting the second point and the third point, for example, the second point and the third point are set at the contact point between the straight line and the arc passing through the first point and in contact with the straight path. May be. Further, the curve is not limited in any way. For example, a curve represented by a fifth-order polynomial curve, a fifth-order spline curve, a fifth-order NURBS curve, and the like are not included. . The drive control signal is corrected by, for example, a predetermined control signal generated by the path change processing unit (to move the tool and the workpiece as described above) to the drive control signal transmitted from the drive control unit to the feed mechanism unit. (The drive control signal) can be added.

そして、このようにして修正された駆動制御信号により送り機構部が制御され、これにより、工具及びワークは、第1点,第2点及び第3点を通る曲線(近回り曲線)に沿って相対移動する。   Then, the feed mechanism unit is controlled by the drive control signal corrected in this way, whereby the tool and the workpiece are along a curve (short cut curve) passing through the first point, the second point, and the third point. Move relative.

斯くして、本発明に係るNC旋盤の制御方法及び制御装置によれば、所定幅を持った領域の隅部たる第1点と、早送り動作指令に基づいた工具移動経路上の第2点及び第3点とを通るような近回り曲線に沿って工具及びワークが相対移動するので、可能な限りワーク側に接近した移動経路に沿って工具及びワークを移動させることができ、また、オペレータは、工具及びワークが相互に干渉しない幅を設定するだけで良く、この幅の設定に当たり、工具移動経路の計算が不要である。したがって、簡単且つ短時間で幅の設定やNCプログラムの作成を行って早送り時の近回り制御を容易且つ効率的に実施することができるとともに、効果的に早送り時間を短縮し、加工時間を短くすることができる。また、ワークの形状データを用いることなく、近回り曲線を設定することができるので、装置構成を簡単にすることもできる。   Thus, according to the control method and control device for an NC lathe according to the present invention, the first point as the corner of the region having a predetermined width, the second point on the tool movement path based on the fast-forward operation command, and Since the tool and the workpiece move relative to each other along a shortcut curve passing through the third point, the tool and the workpiece can be moved along a movement path as close to the workpiece as possible. It is only necessary to set a width at which the tool and the workpiece do not interfere with each other, and calculation of the tool movement path is not necessary for setting the width. Therefore, it is possible to easily and efficiently carry out shortcut control during fast feed by setting the width and creating an NC program in a short time and effectively shortening the fast feed time and shortening the machining time. can do. In addition, since the shortcut curve can be set without using the workpiece shape data, the apparatus configuration can be simplified.

尚、前記NC旋盤の制御装置は、前記プログラム記憶部に格納されたNCプログラムを変更,更新するプログラム変更部であって、前記経路変更処理部により早送り動作指令が連続していると判断されたブロックを、前記経路変更処理部で設定された第2点及び第3点並びに曲線を基に、前記直線経路の角部を終点とする早送り動作指令の始点から前記第2点までの直線、前記設定した曲線、前記第3点から前記直線経路の角部を始点とする早送り動作指令の終点までの直線に順次沿って前記工具及びワークが移動するような、早送り動作指令に係る一連のブロックに変更して更新するプログラム変更部を更に備えていても良い。   The NC lathe control device is a program change unit that changes and updates the NC program stored in the program storage unit, and the path change processing unit determines that the fast-forward operation command is continuous. Based on the second and third points and the curve set by the path change processing unit, the block is a straight line from the start point of the fast-forwarding operation command to the second point, with the corner of the straight path as the end point, In a series of blocks related to a rapid traverse operation command such that the tool and workpiece move sequentially along a set curve, a straight line from the third point to the end point of the rapid traverse operation command starting from the corner of the straight path. You may further provide the program change part which changes and updates.

このようにすれば、プログラム記憶部に格納されたNCプログラムを用いて何回も加工を行うような場合において、1回目の加工の際に、プログラム記憶部に格納されたNCプログラムがプログラム変更部により変更,更新されるので、2回目以降の加工の際には、経路変更処理を行うことなく、NCプログラム中の動作指令を順次実行するだけで工具を近回り曲線に沿って移動させることができる。したがって、2回目以降の加工時には、経路変更処理を行わない分だけ、当該制御装置にかかっていた負荷を大幅に軽減することができる。   In this way, in the case where machining is performed many times using the NC program stored in the program storage unit, the NC program stored in the program storage unit is changed to the program change unit during the first machining. Therefore, the tool can be moved along the short-cut curve by simply executing the operation commands in the NC program without performing the path changing process in the second and subsequent machining. it can. Therefore, at the time of the second and subsequent machining, the load applied to the control device can be greatly reduced by the amount that the route change process is not performed.

また、前記経路変更処理部は、前記第1点,第2点及び第3点を通る曲線を設定するに当たり、円弧以外の曲線を設定するように構成されていても良い。工具を直線から円弧に沿って移動させると、例えば、直線部分と円弧部分との接続部で加加速度が無限に大きくなり、これによって、NC旋盤が振動したり、更には振動によってNC旋盤を構成する部材が破損する恐れがあるが、上記のようにすれば、このような不都合が生じるのを防止することができる。   The route change processing unit may be configured to set a curve other than an arc when setting a curve passing through the first point, the second point, and the third point. When the tool is moved along a circular arc from a straight line, for example, the jerk increases infinitely at the connecting portion between the linear part and the circular arc part, which causes the NC lathe to vibrate, and further, the NC lathe is configured by vibration. Although the member to be damaged may be damaged, it is possible to prevent such inconvenience from occurring as described above.

以上のように、本発明に係るNC旋盤の制御方法及び制御装置によれば、簡単且つ効率的に工具及びワークを相対的に早送り移動させることができる。   As described above, according to the NC lathe control method and control apparatus according to the present invention, the tool and the workpiece can be relatively fast-forwarded and moved easily and efficiently.

以下、本発明の具体的な実施形態について、添付図面に基づき説明する。尚、図1は、本発明の一実施形態に係るNC旋盤の制御装置などの概略構成を示したブロック図である。   Hereinafter, specific embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a block diagram showing a schematic configuration of an NC lathe control device and the like according to an embodiment of the present invention.

図1に示すように、本例のNC旋盤の制御装置(以下、単に「制御装置」と言う。)1は、プログラム記憶部11,プログラム解析部12,解析結果記憶部13,駆動制御部14,工具経路変更処理部15及びプログラム変更部16などから構成されており、例えば、図2に示すように、少なくともX軸−Z軸平面内で工具TをワークWに対して移動させる送り機構部25を備えたNC旋盤に設けられてこの送り機構部25の作動を制御する。尚、図2は、本実施形態におけるNC旋盤の工具及びワークを示した説明図であり、符号26は、主軸に装着されワークWを把持するチャックである。   As shown in FIG. 1, a control device (hereinafter simply referred to as “control device”) 1 for an NC lathe of this example includes a program storage unit 11, a program analysis unit 12, an analysis result storage unit 13, and a drive control unit 14. , A tool path change processing unit 15, a program change unit 16, and the like. For example, as shown in FIG. 2, a feed mechanism unit that moves the tool T relative to the workpiece W at least in the X axis-Z axis plane An NC lathe provided with 25 controls the operation of the feed mechanism 25. FIG. 2 is an explanatory view showing a tool and a workpiece of the NC lathe according to the present embodiment. Reference numeral 26 denotes a chuck that is attached to the main shaft and grips the workpiece W.

前記プログラム記憶部11には、予め作成されたNCプログラムが格納される。このNCプログラムは、直線移動に係る早送り動作指令については、この早送り動作指令に基づいた工具移動経路たる直線経路M1,M2が含まれ且つこの直線経路M1,M2に沿う一定幅H,Eの領域であって工具TがワークWと干渉することなく移動可能な領域を設定するのに必要な幅に関するデータを含むように構成される(図6及び図7参照)。尚、図3に、具体的なプログラム例を示す。この図示例では、E5で示された部分が前記幅Hを特定するためのデータであり、直線経路M1,M2の両側に幅Eが5mm(全体の幅Hは10mm)の前記領域を形成可能なことを示している。   The program storage unit 11 stores an NC program created in advance. This NC program includes a straight path M1, M2 which is a tool movement path based on this rapid feed operation command and a region of constant widths H, E along the straight path M1, M2 with respect to the fast feed operation command related to the linear movement. And it is comprised so that the data regarding the width | variety required in order for the tool T to set the area | region which can move without interfering with the workpiece | work W may be included (refer FIG.6 and FIG.7). FIG. 3 shows a specific program example. In this illustrated example, the portion indicated by E5 is data for specifying the width H, and the region having a width E of 5 mm (the overall width H is 10 mm) can be formed on both sides of the linear paths M1 and M2. It shows that.

前記駆動制御部14は、解析結果記憶部13に格納された動作指令を基に送り機構部25の作動を制御して工具Tを移動させる。具体的には、動作指令及び送り機構部25からフィードバックされる現在位置データなどに基づいて駆動制御信号を生成し、生成した駆動制御信号を送り機構部25に送信してこれを制御する。また、駆動制御部14は、実行するブロック番号を工具経路変更処理部15に送信するようになっている。   The drive control unit 14 moves the tool T by controlling the operation of the feeding mechanism unit 25 based on the operation command stored in the analysis result storage unit 13. Specifically, a drive control signal is generated based on the operation command and current position data fed back from the feed mechanism unit 25, and the generated drive control signal is transmitted to the feed mechanism unit 25 to control it. The drive control unit 14 transmits the block number to be executed to the tool path change processing unit 15.

前記工具経路変更処理部15は、解析結果記憶部13に格納された動作指令を基に、直線移動に係る早送りの動作指令が連続しているか否かを確認して、連続していると判断した場合には、これらの早送り動作指令に基づいた本来の工具移動経路たる直線経路よりもワークW側に接近した経路に沿って工具Tが移動するように駆動制御信号を修正する処理を行う。   The tool path change processing unit 15 confirms whether or not the fast-forward operation command related to the linear movement is continuous based on the operation command stored in the analysis result storage unit 13 and determines that it is continuous. In this case, a process for correcting the drive control signal is performed so that the tool T moves along a path closer to the workpiece W than a linear path that is an original tool movement path based on these fast-forwarding operation commands.

具体的には、工具経路変更処理部15は、図4に示すように、駆動制御部14で実行されるブロックよりも1ブロック以上進んだブロックの動作指令を解析結果記憶部13から順次読み出し、直線移動に係る早送り動作指令が連続しているか否かを確認して、連続していると判断した場合に、図5に示すような一連の処理を実行する。   Specifically, as shown in FIG. 4, the tool path change processing unit 15 sequentially reads out an operation command of a block advanced by one block or more from the block executed by the drive control unit 14 from the analysis result storage unit 13, If it is determined whether or not the fast-forward operation command related to the linear movement is continuous, and if it is determined that it is continuous, a series of processes as shown in FIG. 5 is executed.

ステップS1では、連続する早送り動作指令に含まれる、前記幅に関するデータをそれぞれ認識して直線経路に沿う前記認識した幅の領域を設定する。例えば、図3に示したプログラム例では、E5で記されたデータから前記幅E及び幅Hを認識して直線経路M1,M2に沿った一定幅の領域を設定する。ついで、図6及び図7に示すように、直線経路M1,M2の角部近傍に形成される、前記領域の境界線の2つの交点A,Bを抽出する(ステップS2)。   In step S1, the data regarding the said width | variety included in the continuous fast-forward operation command is each recognized, and the area | region of the recognized width | variety along a linear path | route is set. For example, in the program example shown in FIG. 3, the width E and the width H are recognized from the data written in E5, and a region having a constant width along the straight paths M1 and M2 is set. Next, as shown in FIGS. 6 and 7, two intersections A and B of the boundary line of the region formed near the corners of the straight paths M1 and M2 are extracted (step S2).

この後、抽出した交点A,Bが前記直線経路に沿った領域の隅部に対応するか角部に対応するのかを判定して前記領域の隅部を特定する(ステップS3)。これは、例えば、早送り動作指令によって工具Tが移動する方向、交点A,Bの位置(座標値)、直線経路M1,M2の交点の位置を基に特定することができる。図6及び図7に示した例のように工具Tが移動する場合には、交点A,BのZ軸方向における位置を、直線経路M1,M2の交点のZ軸方向における位置と比較し、交点A,Bの内、直線経路M1,M2の交点のZ軸方向における位置よりも小さい値を有する点が前記領域の隅部と判定される。したがって、交点Bが前記領域の隅部として特定される。   Thereafter, it is determined whether the extracted intersections A and B correspond to the corners or corners of the region along the straight path, and the corners of the region are specified (step S3). This can be specified based on, for example, the direction in which the tool T moves according to the fast-forward operation command, the positions of the intersections A and B (coordinate values), and the positions of the intersections of the straight paths M1 and M2. When the tool T moves as in the examples shown in FIGS. 6 and 7, the positions of the intersections A and B in the Z-axis direction are compared with the positions of the intersections of the straight paths M1 and M2 in the Z-axis direction. Of the intersection points A and B, a point having a value smaller than the position in the Z-axis direction of the intersection point of the straight paths M1 and M2 is determined as the corner of the region. Therefore, the intersection point B is specified as the corner of the region.

次に、特定した隅部(交点B)を第1点Pとして設定しその位置(座標)を算出し(ステップS4)、図7に示すように、各直線経路M1,M2に接し、第1点Pを通る円弧の半径Rを算出した後(ステップS5)、ステップS5で求めた半径Rの円弧と各直線経路M1,M2との接点を第2点Q及び第3点Vとして設定しこれらの点Q,Vと、直線経路M1,M2の角部との間の距離Lを算出した後(ステップS6)、第2点Q及び第3点Vの位置(座標)を算出する(ステップS7)。   Next, the specified corner (intersection point B) is set as the first point P, and the position (coordinates) is calculated (step S4). As shown in FIG. After calculating the radius R of the arc passing through the point P (step S5), the contact point between the arc having the radius R obtained in step S5 and each of the linear paths M1 and M2 is set as the second point Q and the third point V. After calculating the distance L between the points Q and V and the corners of the straight paths M1 and M2 (step S6), the positions (coordinates) of the second point Q and the third point V are calculated (step S7). ).

そして、ステップS4で求めた第1点Pと、ステップS7で求めた第2点Q及び第3点Vとを通る、円弧以外の曲線(近回り曲線)を設定する(ステップS8)。尚、前記曲線には、直線は含まれず、具体例としては、例えば、5次多項式曲線、5次スプライン曲線、5次NURBS曲線で表されるものなどが挙げられるが、これらに限定されるものではない。   Then, a curve (short cut curve) other than an arc passing through the first point P obtained in step S4 and the second point Q and the third point V obtained in step S7 is set (step S8). The curve does not include a straight line, and specific examples include, but are not limited to, a quintic polynomial curve, a quintic spline curve, and a quintic NURBS curve. is not.

この後、駆動制御部14から受信する実行ブロック番号が、連続する早送り動作指令の内、先行する方のブロック番号になったか否かを確認して(ステップS9)、なったことを確認すると、直線経路M1に係る早送り動作指令の移動開始位置から前記第2点Qまでの直線、前記設定した曲線、前記第3点Vから、直線経路M2に係る早送り動作指令の目標移動位置までの直線に沿って工具Tが移動するような駆動制御信号に修正するための修正信号を生成して、駆動制御部14で連続する早送り動作指令に基づき生成され送り機構部25に送信される駆動制御信号に加算し、当該駆動制御信号を修正して(ステップS10)、上記一連の処理を終了する。これにより、直線経路M1,M2の角部が、第1点,第2点及び第3点を通る曲線(近回り曲線)で接続され、直線経路M1,M2の角部において、工具Tはこの曲線に沿って移動する。   Thereafter, it is confirmed whether or not the execution block number received from the drive control unit 14 is the preceding block number in the continuous fast-forward operation command (step S9). A straight line from the movement start position of the fast-forward operation command related to the straight path M1 to the second point Q, the set curve, and a straight line from the third point V to the target movement position of the fast-forward operation command related to the straight path M2. A correction signal for correcting the drive control signal so that the tool T moves along the drive control signal is generated, and the drive control signal generated by the drive control unit 14 based on the continuous fast-forward operation command is transmitted to the feed mechanism unit 25. Addition is performed, the drive control signal is corrected (step S10), and the above series of processing ends. As a result, the corners of the straight paths M1 and M2 are connected by curves (short cut curves) passing through the first point, the second point, and the third point, and in the corners of the straight paths M1 and M2, the tool T Move along the curve.

尚、工具経路変更処理部15は、前記曲線に沿って工具Tを移動させる際の早送り速度,加速度及び加加速度が予め設定された最大早送り速度,最大加速度及び最大加加速度をそれぞれ越えないように調整された修正信号を駆動制御信号に加算するようになっており、これによって、工具Tは、予め設定された最大早送り速度,最大加速度及び最大加加速度をそれぞれ越えないように送り機構部25により制御されつつ曲線に沿って移動する。   The tool path changing processing unit 15 does not allow the rapid feed speed, acceleration, and jerk when the tool T is moved along the curve to exceed preset maximum rapid feed speed, maximum acceleration, and maximum jerk, respectively. The adjusted correction signal is added to the drive control signal, whereby the tool T is fed by the feed mechanism unit 25 so as not to exceed preset maximum rapid feed speed, maximum acceleration, and maximum jerk. Move along a curve while being controlled.

前記プログラム変更部16は、工具経路変更処理部15で設定された第2点及び第3点並びに曲線を基に、プログラム記憶部11に格納されたNCプログラムを変更,更新する。具体的には、例えば、図8に示すように、直線経路M1に係る早送り動作指令のブロックを、その移動開始位置から前記第2点で移動が終了する直線経路に沿って工具Tを移動させる早送り動作指令のブロックに変更するとともに、直線経路M2に係る早送り動作指令のブロックを、前記第3点から、直線経路M2に係る早送り動作指令の目標移動位置で移動が終了する直線経路に沿って工具Tを移動させる早送り動作指令のブロックに変更し、更に、これらの早送り動作指令に係るブロック間に、前記3点を通る曲線に沿って工具Tを移動させるための早送り動作指令に係るブロックを追加し、このようにして修正したNCプログラムをプログラム記憶部11に格納,更新する。尚、図8では、符号Dで示した部分が工具Tを曲線経路に沿って移動させるための早送り動作指令である。   The program change unit 16 changes and updates the NC program stored in the program storage unit 11 based on the second point, the third point, and the curve set by the tool path change processing unit 15. Specifically, for example, as shown in FIG. 8, the tool T is moved along a linear path in which the movement of the block of the fast-forward operation command related to the linear path M1 ends at the second point from the movement start position. The block is changed to the fast-forwarding operation command block, and the fast-forwarding operation command block related to the straight-line route M2 is changed from the third point along the straight-line route where movement ends at the target movement position of the fast-forwarding operation command related to the straight-line route M2. The block is changed to a fast-forward operation command block for moving the tool T, and a block related to the fast-forward operation command for moving the tool T along a curve passing through the three points is further inserted between the blocks related to the fast-forward operation command. The NC program added and corrected in this way is stored and updated in the program storage unit 11. In FIG. 8, the portion indicated by the symbol D is a fast-forward operation command for moving the tool T along the curved path.

以上のように構成された本例の制御装置1によれば、まず、プログラム記憶部11内にNCプログラムが格納され、このNCプログラムが実行される際には、まず、このNCプログラムがプログラム解析部12によりブロック毎に順次解析されて送り機構部25に関する動作指令が抽出され、解析結果記憶部13内に格納され、この格納された動作指令を基に、駆動制御部14により駆動制御信号が生成されて送り機構部25が制御され、工具Tが移動する。   According to the control device 1 of the present example configured as described above, first, an NC program is stored in the program storage unit 11, and when this NC program is executed, the NC program is first analyzed by a program analysis. The operation command relating to the feeding mechanism unit 25 is extracted sequentially for each block by the unit 12 and stored in the analysis result storage unit 13, and the drive control signal is generated by the drive control unit 14 based on the stored operation command. The feed mechanism 25 is generated and the tool T moves.

また、工具経路変更処理部15により、解析結果記憶部13に格納された動作指令を基に直線移動に係る早送り動作指令が連続していると判断された場合には、これらの早送り動作指令に基づいた本来の工具移動経路よりもワークW側に接近した経路に沿って工具Tが移動するように駆動制御信号が修正され、この修正後の駆動制御信号により送り機構部25が制御される。また、更に、工具経路変更処理部15の経路変更処理で設定された第2点及び第3点並びに曲線を基に、プログラム変更部16により、プログラム記憶部11内のNCプログラムが変更,更新される。   Further, when the tool path change processing unit 15 determines that the fast-forward operation commands related to the linear movement are continuous based on the operation commands stored in the analysis result storage unit 13, The drive control signal is corrected so that the tool T moves along a path closer to the workpiece W than the original original tool movement path, and the feed mechanism section 25 is controlled by the corrected drive control signal. Furthermore, the NC program in the program storage unit 11 is changed and updated by the program change unit 16 based on the second point, the third point, and the curve set in the route change process of the tool path change processing unit 15. The

このように、本例の制御装置1によれば、所定幅を持った領域の隅部たる第1点と、早送り動作指令に基づいた直線経路上の第2点及び第3点とを通るような近回り曲線(経路)に沿って工具Tが移動するので、可能な限りワークW側に接近した移動経路に沿って工具Tを移動させることができ、また、オペレータは、工具TがワークWと干渉しない幅を設定するだけで良く、この幅の設定に当たり、工具移動経路の計算が不要である。したがって、簡単且つ短時間で幅の設定やNCプログラムの作成を行って早送り時の近回り制御を容易且つ効率的に実施することができるとともに、効果的に早送り時間を短縮し、加工時間を短くすることができる。また、ワークWの形状データを用いることなく、近回り曲線を設定することができるので、装置構成を簡単にすることもできる   As described above, according to the control device 1 of the present example, the first point that is the corner of the region having the predetermined width and the second point and the third point on the linear path based on the fast-forward operation command are passed. Since the tool T moves along a short circuit curve (path), the tool T can be moved along a moving path as close as possible to the workpiece W side. It is only necessary to set a width that does not interfere with the tool, and calculation of the tool movement path is not necessary for setting this width. Therefore, it is possible to easily and efficiently carry out shortcut control during fast feed by setting the width and creating an NC program in a short time and effectively shortening the fast feed time and shortening the machining time. can do. Further, since the shortcut curve can be set without using the shape data of the workpiece W, the apparatus configuration can be simplified.

また、1回目の加工の際に、プログラム記憶部11に格納されたNCプログラムをプログラム変更部16により変更,更新しているので、2回目以降の加工の際には、工具経路変更処理部15の経路変更処理を行うことなく、NCプログラム中の動作指令を順次実行するだけで工具Tを近回り曲線に沿って移動させることができる。したがって、2回目以降の加工時には、工具経路変更処理部15の経路変更処理を行わない分だけ、当該制御装置1にかかっていた負荷を大幅に軽減することができる。   Further, since the NC program stored in the program storage unit 11 is changed and updated by the program change unit 16 at the first machining, the tool path change processing unit 15 is performed at the second and subsequent machining. The tool T can be moved along the short-cut curve only by sequentially executing the operation commands in the NC program without performing the path changing process. Therefore, at the time of the second and subsequent machining, the load applied to the control device 1 can be greatly reduced by the amount that the path change process of the tool path change processing unit 15 is not performed.

また、工具経路変更処理部15が、前記第1点,第2点及び第3点を通る曲線として円弧以外の曲線を設定するようにしているので、次のような効果が得られる。即ち、工具Tを直線から円弧に沿って移動させると、例えば、直線部分と円弧部分との接続部で加加速度が無限に大きくなり、これによって、NC旋盤が振動したり、更には振動によってNC旋盤を構成する部材が破損する恐れがあるが、円弧以外の曲線を設定することで、このような不都合が生じるのを防止することができる。   Further, since the tool path changing processing unit 15 sets a curve other than the arc as a curve passing through the first point, the second point, and the third point, the following effects can be obtained. That is, when the tool T is moved along a circular arc from a straight line, for example, the jerk increases infinitely at the connecting portion between the linear portion and the circular arc portion, thereby causing the NC lathe to vibrate, and further NC due to vibration. Although there is a possibility that members constituting the lathe may be damaged, it is possible to prevent such inconvenience from occurring by setting a curve other than the arc.

以上、本発明の一実施形態について説明したが、本発明の採り得る具体的な態様は、何らこれに限定されるものではない。   As mentioned above, although one Embodiment of this invention was described, the specific aspect which this invention can take is not limited to this at all.

上例では、直線経路M1,M2の両側に設定される幅Eを同じ寸法としたが、これに限られず、異なるようにしても良く、また、直線経路M1についての幅E,Hと直線経路M2についての幅E,Hをそれぞれ異なるように設定しても良い。また、図6及び図7では、直線経路M1,M2についての幅E,Hがそれぞれ等しい場合について、各直線経路M1,M2に接し、第1点Pを通る円弧の半径Rを算出する式や、第2点Q及び第3点Vと直線経路M1,M2の角部との間の距離Lを算出する式を図示しているが、直線経路M1,M2についての幅E,Hがそれぞれ異なる場合であっても、適宜算出式により半径Rや距離Lを算出することが可能である。   In the above example, the width E set on both sides of the straight paths M1 and M2 is the same size, but is not limited to this, and may be different. The widths E and H for M2 may be set differently. In FIGS. 6 and 7, when the widths E and H for the straight paths M1 and M2 are equal, an equation for calculating the radius R of the arc that is in contact with the straight paths M1 and M2 and passes through the first point P is shown in FIG. Although the equation for calculating the distance L between the second point Q and the third point V and the corners of the straight paths M1, M2 is illustrated, the widths E, H for the straight paths M1, M2 are different from each other. Even in this case, it is possible to calculate the radius R and the distance L by an appropriate calculation formula.

本発明の一実施形態に係るNC旋盤の制御装置などの概略構成を示したブロック図である。It is the block diagram which showed schematic structure, such as the control apparatus of NC lathe which concerns on one Embodiment of this invention. 本実施形態におけるNC旋盤の工具及びワークを示した説明図である。It is explanatory drawing which showed the tool and workpiece | work of NC lathe in this embodiment. 本実施形態のプログラム記憶部に格納されるNCプログラムの一例を示した説明図である。It is explanatory drawing which showed an example of the NC program stored in the program storage part of this embodiment. 工具経路変更処理部で読み出されるブロックと、駆動制御部で実行されるブロックとの関係を示した説明図である。It is explanatory drawing which showed the relationship between the block read by a tool path | route change process part, and the block performed by a drive control part. 本実施形態の工具経路変更処理部における一連の処理を示したフローチャートである。It is the flowchart which showed a series of processes in the tool path change process part of this embodiment. 第1点,第2点及び第3点、クリアランス距離、第1点,第2点及び第3点を通る円弧の半径、直線経路の角部と第2点及び第3点との間の距離などを説明するための説明図である。First point, second point and third point, clearance distance, radius of arc passing through first point, second point and third point, distance between corner of straight path and second point and third point It is explanatory drawing for demonstrating these. 第1点,第2点及び第3点、クリアランス距離、第1点,第2点及び第3点を通る円弧の半径、直線経路の角部と第2点及び第3点との間の距離などを説明するための説明図である。First point, second point and third point, clearance distance, radius of arc passing through first point, second point and third point, distance between corner of straight path and second point and third point It is explanatory drawing for demonstrating these. 本実施形態のプログラム変更部によって変更されたプログラム例を示す説明図である。It is explanatory drawing which shows the example of a program changed by the program change part of this embodiment.

符号の説明Explanation of symbols

1 NC旋盤の制御装置
11 プログラム記憶部
12 プログラム解析部
13 解析結果記憶部
14 駆動制御部
15 工具経路変更処理部
16 プログラム変更部
DESCRIPTION OF SYMBOLS 1 NC lathe control apparatus 11 Program memory | storage part 12 Program analysis part 13 Analysis result memory | storage part 14 Drive control part 15 Tool path change process part 16 Program change part

Claims (5)

工具及びワークを2次元平面内で相対移動させる送り機構部を備えたNC旋盤の前記送り機構部をNCプログラムに基づいて制御する方法であって、
前記NCプログラムをブロック毎に順次解析して前記送り機構部に関する動作指令を抽出するプログラム解析処理と、
前記抽出された動作指令を基に駆動制御信号を生成し、生成した駆動制御信号を前記送り機構部に送信してその作動を制御する駆動制御処理と、
前記抽出された動作指令であって前記駆動制御処理で実行されるブロックよりも1ブロック以上進んだブロックの動作指令を基に、直線移動に係る早送りの動作指令が連続しているか否かを確認して、連続している場合には、これらの早送り動作指令に基づいた本来の工具移動経路たる直線経路よりも前記ワーク側に接近した経路に沿って前記工具が移動するように前記駆動制御信号を修正する経路変更処理とを行うように構成されたNC旋盤の制御方法において、
前記NCプログラムを、直線移動に係る早送り動作指令については、前記直線経路が含まれ且つ前記直線経路に沿う一定幅の領域であって前記工具及びワークが相対移動可能な領域を設定するのに必要な幅に関するデータを含むように構成し、
前記経路変更処理では、早送り動作指令が連続していると判断すると、まず、これらの早送り動作指令に含まれる、前記幅に関するデータを認識し、前記直線経路に沿った一定幅の領域であり且つ前記工具及びワークが相対移動可能な領域を設定してこの領域の隅部を特定し、特定した隅部を第1点として設定するとともに、前記直線経路の角部を終点とする直線経路上に第2点を、前記直線経路の角部を始点とする直線経路上に第3点をそれぞれ設定してこれら第1点,第2点及び第3点を通る曲線を設定した後、前記駆動制御部で前記連続する早送り動作指令に基づき生成され前記送り機構部に送信される駆動制御信号を、前記直線経路の角部を終点とする早送り動作指令の始点から前記第2点までの直線、前記設定した曲線、前記第3点から前記直線経路の角部を始点とする早送り動作指令の終点までの直線に沿って前記工具及びワークが移動するような駆動制御信号に修正するようにしたことを特徴とするNC旋盤の制御方法。
A method for controlling the feed mechanism part of an NC lathe provided with a feed mechanism part for relatively moving a tool and a workpiece in a two-dimensional plane based on an NC program,
A program analysis process for sequentially analyzing the NC program for each block and extracting an operation command related to the feed mechanism;
A drive control process for generating a drive control signal based on the extracted operation command, and transmitting the generated drive control signal to the feed mechanism unit to control its operation;
Based on the extracted operation command that is one or more blocks ahead of the block executed in the drive control process, it is confirmed whether or not the fast-forward operation command for linear movement is continuous. And when it is continuous, the drive control signal is used so that the tool moves along a path closer to the workpiece side than a linear path that is an original tool movement path based on these fast-forward operation commands. In the NC lathe control method configured to perform a path change process for correcting
Necessary for setting the NC program as to a fast-forward operation command related to linear movement, including an area having a certain width along the linear path and capable of relative movement of the tool and the workpiece. Configured to contain data about the width
In the path change process, when it is determined that the fast-forward operation command is continuous, first, the data relating to the width included in the fast-forward operation command is recognized, the region is a constant width region along the straight path and An area where the tool and the workpiece can be moved relative to each other is set, a corner of the area is specified, the specified corner is set as a first point, and the corner of the straight path is set as an end point on the straight path The second point is set to a third point on a straight path starting from a corner of the straight line, and a curve passing through the first point, the second point, and the third point is set, and then the drive control is performed. A drive control signal that is generated based on the continuous fast-forward operation command and transmitted to the feed mechanism unit in a straight line from the start point of the fast-forward operation command that ends at the corner of the straight path to the second point, The set curve, the third A control method for an NC lathe, wherein the driving control signal is corrected so that the tool and the workpiece move along a straight line from the corner of the straight path to the end point of the fast-forward operation command. .
工具及びワークを2次元平面内で相対移動させる送り機構部を備えたNC旋盤に設けられ、NCプログラムに基づいて前記送り機構部を制御する制御装置であって、
前記NCプログラムを記憶するプログラム記憶部と、
前記プログラム記憶部に格納されたNCプログラムをブロック毎に順次解析して前記送り機構部に関する動作指令を抽出するプログラム解析部と、
前記プログラム解析部によって抽出された動作指令を基に駆動制御信号を生成し、生成した駆動制御信号を前記送り機構部に送信してその作動を制御する駆動制御部と、
前記プログラム解析部によって抽出された動作指令であって前記駆動制御部で実行されるブロックよりも1ブロック以上進んだブロックの動作指令を基に、直線移動に係る早送りの動作指令が連続しているか否かを確認して、連続している場合には、これらの早送り動作指令に基づいた本来の工具移動経路たる直線経路よりも前記ワーク側に接近した経路に沿って前記工具が移動するように前記駆動制御信号を修正する経路変更処理部とを備えたNC旋盤の制御装置において、
前記プログラム記憶部には、直線移動に係る早送り動作指令については、前記直線経路が含まれ且つ前記直線経路に沿う一定幅の領域であって前記工具及びワークが相対移動可能な領域を設定するのに必要な幅に関するデータを含むように構成されたNCプログラムが格納され、
前記経路変更処理部は、早送り動作指令が連続していると判断すると、まず、これらの早送り動作指令に含まれる、前記幅に関するデータを認識し、前記直線経路に沿った一定幅の領域であり且つ前記工具及びワークが相対移動可能な領域を設定してこの領域の隅部を特定し、特定した隅部を第1点として設定するとともに、前記直線経路の角部を終点とする直線経路上に第2点を、前記直線経路の角部を始点とする直線経路上に第3点をそれぞれ設定してこれら第1点,第2点及び第3点を通る曲線を設定した後、前記駆動制御部で前記連続する早送り動作指令に基づき生成され前記送り機構部に送信される駆動制御信号を、前記直線経路の角部を終点とする早送り動作指令の始点から前記第2点までの直線、前記設定した曲線、前記第3点から前記直線経路の角部を始点とする早送り動作指令の終点までの直線に沿って前記工具及びワークが移動するような駆動制御信号に修正するように構成されてなることを特徴とするNC旋盤の制御装置。
A control device provided on an NC lathe provided with a feed mechanism that relatively moves a tool and a workpiece in a two-dimensional plane, and controls the feed mechanism based on an NC program,
A program storage unit for storing the NC program;
A program analysis unit that sequentially analyzes the NC program stored in the program storage unit for each block and extracts an operation command related to the feed mechanism unit;
A drive control unit that generates a drive control signal based on the operation command extracted by the program analysis unit, transmits the generated drive control signal to the feed mechanism unit, and controls its operation;
Based on the operation command extracted by the program analysis unit that is one block or more advanced than the block executed by the drive control unit, is the fast-forward operation command related to linear movement continuous? If it is continuous, if the tool is continuous, the tool moves along a path closer to the workpiece side than the linear path that is the original tool movement path based on these fast-forwarding operation commands. In a control device for an NC lathe provided with a path change processing unit for correcting the drive control signal,
For the fast-forward operation command related to linear movement, the program storage unit sets an area that includes the linear path and has a constant width along the linear path and that the tool and the workpiece can move relative to each other. An NC program configured to contain data relating to the required width is stored,
When determining that the fast-forward operation command is continuous, the route change processing unit first recognizes the data relating to the width included in these fast-forward operation commands, and is an area having a constant width along the straight-line route. In addition, an area in which the tool and the workpiece can be moved relative to each other is set, a corner of the area is specified, the specified corner is set as the first point, and a corner of the straight path is set as an end point. The second point is set to the third point on the straight line path starting from the corner of the straight line path, and a curve passing through the first point, the second point, and the third point is set. A drive control signal generated based on the continuous fast-forwarding operation command and transmitted to the feeding mechanism unit in the control unit, a straight line from the start point of the fast-forwarding operation command to the second point with the corner of the linear path as an end point, The set curve, the third The NC lathe is configured to correct the drive control signal so that the tool and the workpiece move along a straight line from the corner of the straight path to the end point of the fast-forward operation command. Control device.
前記経路変更処理部は、前記第2点及び第3点を、前記直線経路に接し前記第1点を通る円弧と前記直線経路との接点に設定するように構成されてなることを特徴とする請求項2記載のNC旋盤の制御装置。   The path change processing unit is configured to set the second point and the third point as a contact point between an arc passing through the first point and in contact with the linear path. The NC lathe control device according to claim 2. 前記プログラム記憶部に格納されたNCプログラムを変更,更新するプログラム変更部であって、前記経路変更処理部により早送り動作指令が連続していると判断されたブロックを、前記経路変更処理部で設定された第2点及び第3点並びに曲線を基に、前記直線経路の角部を終点とする早送り動作指令の始点から前記第2点までの直線、前記設定した曲線、前記第3点から前記直線経路の角部を始点とする早送り動作指令の終点までの直線に順次沿って前記工具及びワークが移動するような、早送り動作指令に係る一連のブロックに変更して更新するプログラム変更部を更に備えてなることを特徴とする請求項2又は3記載のNC旋盤の制御装置。   A program change unit for changing or updating the NC program stored in the program storage unit, wherein the path change processing unit sets a block for which a fast-forward operation command is determined to be continuous by the route change processing unit Based on the second point and the third point and the curved line, the straight line from the start point of the fast-forwarding operation command with the corner of the straight line as the end point to the second point, the set curve, the third point to the A program change unit that changes and updates a series of blocks related to the fast-forward operation command so that the tool and the workpiece move sequentially along a straight line starting from the corner of the straight path to the end point of the fast-forward operation command. The NC lathe control device according to claim 2, wherein the NC lathe control device is provided. 前記経路変更処理部は、前記第1点,第2点及び第3点を通る曲線を設定するに当たり、円弧以外の曲線を設定するように構成されてなることを特徴とする請求項2乃至4記載のいずれかのNC旋盤の制御装置。   5. The path change processing unit is configured to set a curve other than an arc when setting a curve passing through the first point, the second point, and the third point. Any NC lathe controller described.
JP2008205558A 2008-08-08 2008-08-08 NC lathe control method and control device Expired - Fee Related JP5143661B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008205558A JP5143661B2 (en) 2008-08-08 2008-08-08 NC lathe control method and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008205558A JP5143661B2 (en) 2008-08-08 2008-08-08 NC lathe control method and control device

Publications (2)

Publication Number Publication Date
JP2010039995A JP2010039995A (en) 2010-02-18
JP5143661B2 true JP5143661B2 (en) 2013-02-13

Family

ID=42012430

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008205558A Expired - Fee Related JP5143661B2 (en) 2008-08-08 2008-08-08 NC lathe control method and control device

Country Status (1)

Country Link
JP (1) JP5143661B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5890275B2 (en) * 2012-08-08 2016-03-22 オークマ株式会社 High-speed synchronous axis position controller
JP6396273B2 (en) * 2015-10-14 2018-09-26 ファナック株式会社 Numerical control device for positioning to avoid interference with workpiece

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2745941B2 (en) * 1992-02-28 1998-04-28 三菱電機株式会社 Numerical control unit
JP2782491B2 (en) * 1992-10-16 1998-07-30 株式会社牧野フライス製作所 Method and apparatus for controlling rapid traverse of machine tools
JPH07152417A (en) * 1993-11-29 1995-06-16 Fanuc Ltd Tool path and tool feeding speed control system for numerical controller
JP2004133750A (en) * 2002-10-11 2004-04-30 Thk Co Ltd Device, method and program for motor control
JP2006007363A (en) * 2004-06-25 2006-01-12 Mori Seiki Co Ltd Nc program correcting device and nc program generating device including it

Also Published As

Publication number Publication date
JP2010039995A (en) 2010-02-18

Similar Documents

Publication Publication Date Title
JP6496340B2 (en) Scanner control device, robot control device, and remote laser welding robot system
US8487213B2 (en) Arc welding robot control system and method thereof
TWI512417B (en) Apparatus for creating processing program, numerical control apparatus, processing system, method for creating processing program, and numerical control method
JP5689431B2 (en) Control device for wire electric discharge machine that corrects machining path by program command
JP3746019B2 (en) Laser processing machine
US20160091886A1 (en) Numerical control device
US10048675B2 (en) Numerical controller performing 3-dimensional interference check corresponding to feedrate change
US20190184577A1 (en) Robot system
JP2001125613A (en) Numerical control simulation device
US10444728B2 (en) Numerical controller performing positioning for avoiding interference with workpiece
JP2008046899A (en) Numerical control device
JP4362095B2 (en) Numerical controller
JP6321605B2 (en) Numerical control device for speed control by curvature and curvature variation
JP5143661B2 (en) NC lathe control method and control device
JP4945191B2 (en) Numerical control device for machine tools
JP5156570B2 (en) Automatic programming device and control device for NC machine tool provided with the same
US10261500B2 (en) Numerical controller controlling machining tool based on skiving instruction
JP2006055901A (en) Laser machining apparatus
JP6235623B2 (en) Laser processing system with adjustable output command switching timing
JP2010039993A (en) Control method and control device for nc lathe
JP5875740B1 (en) Numerical controller
US9740196B2 (en) Numerical controller for controlling drilling operation
JP5477247B2 (en) Numerical control apparatus, moving path correcting method, moving path correcting program, and storage medium
JPH07210225A (en) Numerical controller
JP7355952B1 (en) Control device and computer readable recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120919

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120920

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: 20121113

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121121

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

Free format text: PAYMENT UNTIL: 20151130

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5143661

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees