JP2020204980A - Nc program creation method and deceleration controller of machine tool - Google Patents

Nc program creation method and deceleration controller of machine tool Download PDF

Info

Publication number
JP2020204980A
JP2020204980A JP2019113241A JP2019113241A JP2020204980A JP 2020204980 A JP2020204980 A JP 2020204980A JP 2019113241 A JP2019113241 A JP 2019113241A JP 2019113241 A JP2019113241 A JP 2019113241A JP 2020204980 A JP2020204980 A JP 2020204980A
Authority
JP
Japan
Prior art keywords
tool
program
drill
deceleration
hole
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019113241A
Other languages
Japanese (ja)
Other versions
JP6765478B1 (en
Inventor
小川 隆司
Takashi Ogawa
隆司 小川
吉明 脇谷
Yoshiaki Wakitani
吉明 脇谷
菊枝 大沼
Kikue Onuma
菊枝 大沼
直仁 戸井田
Naohito Toida
直仁 戸井田
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.)
Makino Milling Machine Co Ltd
Original Assignee
Makino Milling Machine 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 Makino Milling Machine Co Ltd filed Critical Makino Milling Machine Co Ltd
Priority to JP2019113241A priority Critical patent/JP6765478B1/en
Application granted granted Critical
Publication of JP6765478B1 publication Critical patent/JP6765478B1/en
Publication of JP2020204980A publication Critical patent/JP2020204980A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

To easily and quickly generate an NC program for processing a plurality of intersecting holes with a drill without putting calculation loads on a calculation unit of a machine controller attached to an NC machine tool.SOLUTION: The shape of a drill is modeled with an aggregate of a plurality of straight lines, an intersection between a hole formed before a work and the straight line is calculated, based on a result of the calculation, a deceleration start point for decelerating the feed speed of the drill and a deceleration end point for ending the deceleration of the feed speed of the drill after the drill crosses the hole and enters the work again are calculated before the tip of the drill enters an inside of the hole formed before the work, and based on the deceleration start point and the deceleration end point, a second NC program obtained by correcting a first NC program is generated.SELECTED DRAWING: Figure 1

Description

本発明は、油圧機器のマニフォールドや射出成形金型等の、交差する複数の穴をドリルで加工するNCプログラムの作成方法および工作機械の減速制御装置に関する。 The present invention relates to a method for creating an NC program for drilling a plurality of intersecting holes such as a manifold of a hydraulic device and an injection molding die, and a deceleration control device for a machine tool.

例えば、射出成形で用いる金型には溶融した高温の樹脂が毎ショット流入して、金型が加熱される。金型は用いる樹脂の種類にもよるが、適切な温度範囲が決められている。そのため、金型には冷却水やスチーム等の冷却、温熱媒体を流通させる多数の通路が形成されている。これらの通路の中には、図15、16に示すように、互いに交差する通路がある。 For example, the molten high-temperature resin flows into the mold used in injection molding every shot to heat the mold. The appropriate temperature range is determined for the mold, although it depends on the type of resin used. Therefore, the mold is formed with a large number of passages for cooling cooling water, steam, etc., and for circulating a heating medium. Among these passages, there are passages that intersect each other, as shown in FIGS. 15 and 16.

図15、16において、ワーク200には、先の工程で形成された第1の穴202と、後の工程で形成された第2の穴204が形成されている。第2の穴204を形成する際、加工に用いるドリルTの先端が第1の穴202の空間に到達すると、該ドリルTを送る送り軸装置に作用する反力または負荷は急激に減少する。また、ドリルTの先端が第1の穴202の空間を横断し、反対側の内面に到達すると送り軸装置に作用する反力または負荷は急激に増加する。これにより、ドリルが破損したり、穴の交差部にバリが発生することがある。 In FIGS. 15 and 16, the work 200 is formed with a first hole 202 formed in the previous step and a second hole 204 formed in the subsequent step. When the tip of the drill T used for machining reaches the space of the first hole 202 when forming the second hole 204, the reaction force or load acting on the feed shaft device that feeds the drill T is sharply reduced. Further, when the tip of the drill T crosses the space of the first hole 202 and reaches the inner surface on the opposite side, the reaction force or the load acting on the feed shaft device increases sharply. This can damage the drill and cause burrs at the intersections of the holes.

特許文献1には、加工穴が貫通穴であったり、穴どうしが干渉するときのように、加工工程や加工条件を修正する必要がある場合に、CAD/CAMシステム上でNC加工に最適な加工工程と切削条件を自動決定するようにしたNCデータ自動作成装置が記載されている。 Patent Document 1 describes that when it is necessary to modify the machining process or machining conditions, such as when the machined hole is a through hole or the holes interfere with each other, it is most suitable for NC machining on a CAD / CAM system. An NC data automatic creation device that automatically determines a machining process and cutting conditions is described.

特開平7−276185号公報Japanese Unexamined Patent Publication No. 7-276185

特許文献1のNCデータ自動作成装置では、CAD/CAMにより、3次元ソリッドモデルであるワークの穴データを用いているので、計算負荷が大きく、簡単に工作機械に実装したり、工作機械の近傍に専用の装置を配置することができない。 In the NC data automatic creation device of Patent Document 1, since the hole data of the workpiece which is a three-dimensional solid model is used by CAD / CAM, the calculation load is large and it can be easily mounted on the machine tool or in the vicinity of the machine tool. It is not possible to place a dedicated device in.

本発明は、こうした従来技術の問題を解決することを技術課題としており、交差する複数の穴をドリルで加工する第1のNCプログラムから、交差する穴を加工するときに、ドリルの送り速度を減速させる第2のNCプログラムを、NC工作機械に付属する機械制御装置の演算ユニットに計算負荷を殆どかけずに、簡単かつ迅速に自動作成するようにした、NCプログラムの作成方法および工作機械の減速制御装置を提供することを目的としている。 The present invention has a technical problem of solving such a problem of the prior art, and from the first NC program for drilling a plurality of intersecting holes, the feed speed of the drill is adjusted when machining the intersecting holes. An NC program creation method and a machine tool that automatically creates a second NC program to decelerate easily and quickly with almost no computational load on the arithmetic unit of the machine control device attached to the NC machine tool. It is an object of the present invention to provide a deceleration control device.

上述の目的を達成するために、本発明によれば、ドリルを工具として用い、複数の穴を加工する第1のNCプログラムと、加工に使用する工具のデータとに基づいて、ワーク内で交差する穴を加工する際に、工具の送り速度を減速させた第2のNCプログラムを自動作成するNCプログラムの作成方法において、ドリルの形状を複数の直線の集合体でモデル化し、ワークに従前に形成されている穴と前記直線との交点を演算し、前記演算結果に基づいて、ドリルの先端が前記従前に形成されている穴内に侵入する前に、該ドリルの送り速度を減速する減速開始点と、該ドリルが前記穴を横断して、ワークに再び進入した後に該ドリルの送り速度の減速を終了する減速終了点とを演算し、前記減速開始点および減速終了点に基づいて、前記第1のNCプログラムを修正した第2のNCプログラムを生成するようにしたNCプログラムの作成方法が提供される。 In order to achieve the above object, according to the present invention, the first NC program for drilling a plurality of holes using a drill as a tool and the data of the tool used for machining intersect in the work. In the method of creating an NC program that automatically creates a second NC program that slows down the feed speed of the tool when machining a hole to be drilled, the shape of the drill is modeled with an aggregate of a plurality of straight lines, and the work is prioritized. The intersection of the formed hole and the straight line is calculated, and based on the calculation result, deceleration is started to reduce the feed speed of the drill before the tip of the drill enters the previously formed hole. The point and the deceleration end point at which the deceleration of the feed speed of the drill ends after the drill crosses the hole and re-enters the work are calculated, and based on the deceleration start point and the deceleration end point, the deceleration end point is calculated. Provided is a method of creating an NC program in which a second NC program modified from the first NC program is generated.

更に、本発明によれば、ドリルを工具として用い、複数の穴を加工する第1のNCプログラムと、加工に使用する工具のデータとに基づいて、ワーク内で交差する穴を加工する際に、工具の送り速度を減速させた第2のNCプログラムを作成する工作機械の減速制御装置において、ドリルの形状を複数の直線の集合体でモデル化するときの直線の数を少なくともパラメータとして格納するパラメータ格納部と、工具径を含んだ工具情報を取得する工具情報取得部と、NC装置の読取解釈部から前記第1のNCプログラムのドリルの工具軌跡を取得する工具軌跡取得部と、前記工具情報と前記工具軌跡から直線の集合体で表した工具モデルと穴の円柱モデルとを生成するモデル生成部と、前記工具モデルの各直線と前記円柱モデルから工具と穴との交差位置を演算する交差位置演算部と、前記演算した交差位置から、減速開始位置および減速終了位置を演算する減速開始、終了位置演算部と、前記演算した減速開始位置および減速終了位置に基づいて、前記第1のNCプログラムを修正して第2のNCプログラムを生成するNCプログラム生成部とを具備する工作機械の減速制御装置が提供される。 Further, according to the present invention, when a drill is used as a tool and a hole intersecting in a work tool is machined based on a first NC program for drilling a plurality of holes and data of a tool used for machining. , Create a second NC program that slows down the feed rate of the tool. In the deceleration control device of a machine tool, store at least the number of straight lines when modeling the shape of a drill with an aggregate of a plurality of straight lines as a parameter. A parameter storage unit, a tool information acquisition unit that acquires tool information including a tool diameter, a tool trajectory acquisition unit that acquires a tool trajectory of the drill of the first NC program from a reading / interpretation unit of an NC device, and the tool. A model generator that generates a tool model represented by an aggregate of straight lines from information and the tool locus and a cylindrical model of a hole, and an intersection position between a tool and a hole are calculated from each straight line of the tool model and the cylindrical model. The first deceleration start position and deceleration end position are calculated from the intersection position calculation unit and the calculated intersection position based on the deceleration start and end position calculation units and the calculated deceleration start position and deceleration end position. A machine tool deceleration control device is provided that includes an NC program generator that modifies the NC program to generate a second NC program.

第1のNCプログラムを作成するときは、穴が交差することを気にせず、決められた位置に一定の送り速度で穴をあける指令をするだけであり、容易にプログラミングできる。そして、本発明によれば、加工済みの穴である円柱と、ドリル形状をモデル化した直線との交点を演算するだけでよいので、小さな演算負荷で、ワーク内で交差する穴を加工する際に、工具の送り速度を減速させた第2のNCプログラムを自動作成することが可能となる。従って、工作機械が標準で備えている機械制御装置に本発明の演算処理を行うソフトウェアを追加しても、ほとんど演算負荷をかけることなく、第2のNCプログラムを作成することができる。また、汎用のパソコンに本発明を実施するためのソフトウェアを搭載して機械制御装置に付加する方法で、既存の工作機械を容易に機能アップすることもできる。 When creating the first NC program, it is easy to program by simply giving a command to make a hole at a predetermined position at a constant feed rate without worrying about the intersection of the holes. Then, according to the present invention, it is only necessary to calculate the intersection of the cylinder, which is a machined hole, and the straight line that models the drill shape. Therefore, when machining a hole that intersects in the work with a small calculation load. In addition, it is possible to automatically create a second NC program in which the feed rate of the tool is reduced. Therefore, even if the software for performing the arithmetic processing of the present invention is added to the machine control device provided as standard in the machine tool, the second NC program can be created with almost no computational load. Further, the existing machine tool can be easily upgraded by installing the software for carrying out the present invention on a general-purpose personal computer and adding it to the machine control device.

本発明の好ましい実施形態による減速制御装置のブロック図である。It is a block diagram of the deceleration control device by a preferable embodiment of this invention. 本発明の好ましい実施形態によるNCプログラムの作成方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of making NC program by the preferable embodiment of this invention. 本発明の好ましい実施形態によるNCプログラムの作成方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of making NC program by the preferable embodiment of this invention. 本発明の好ましい実施形態によるNCプログラムの作成方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of making NC program by the preferable embodiment of this invention. モデル工具の一例を示す斜視図である。It is a perspective view which shows an example of a model tool. モデル穴の一例を示す斜視図である。It is a perspective view which shows an example of a model hole. モデル工具の側面に沿った工具の軸方向の直線を示す斜視図である。It is a perspective view which shows the straight line in the axial direction of a tool along the side surface of a model tool. モデル工具の形状を説明するための側面図である。It is a side view for demonstrating the shape of a model tool. モデル工具の他の形状を説明するための側面図である。It is a side view for demonstrating another shape of a model tool. モデル工具の直線とモデル穴との交点を演算する方法を説明するための略図である。It is a schematic diagram for demonstrating the method of calculating the intersection of a straight line of a model tool and a model hole. モデル工具の直線とモデル穴との交点を演算する方法を説明するための略図である。It is a schematic diagram for demonstrating the method of calculating the intersection of a straight line of a model tool and a model hole. モデル工具の直線とモデル穴との交点を演算する方法を説明するための略図である。It is a schematic diagram for demonstrating the method of calculating the intersection of a straight line of a model tool and a model hole. モデル工具の直線とモデル穴との交点を演算する方法を説明するための略図である。It is a schematic diagram for demonstrating the method of calculating the intersection of a straight line of a model tool and a model hole. モデル工具の直線とモデル穴との交点を演算する方法を説明するための略図である。It is a schematic diagram for demonstrating the method of calculating the intersection of a straight line of a model tool and a model hole. 交差穴を説明するためのワークの斜視図である。It is a perspective view of the work for demonstrating the intersection hole. (a)は図15の平面図、(b)は図15の断面図である。(A) is a plan view of FIG. 15, and (b) is a cross-sectional view of FIG.

以下、添付図面を参照して、本願発明の好ましい実施形態を説明する。
図1を参照すると、減速制御装置10は、工作機械のNC装置100に供給されるNCプログラム(本明細書では第1のNCプログラムと称する)に基づいて、新たなNCプログラム(本明細書では第2のNCプログラムと称する)を生成する。NC装置100は、一般的なNC装置と同様に、読取解釈部102、補間部104およびサーボ演算部106を含む。読取解釈部102は、第1のNCプログラムを読取り解釈して、移動指令を補間部104に出力する。補間部104は、入力された移動指令に基づき補間周期毎の位置指令値を演算し、該位置指令値をサーボ演算部106に送出する。サーボ演算部106は、位置指令値に基づいてX軸およびY軸などの各送り軸のサーボモータ108へ供給する電流値を演算し、各送り軸のサーボモータ108を駆動する。
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
Referring to FIG. 1, the deceleration control device 10 is a new NC program (referred to in the present specification) based on an NC program (referred to as a first NC program in the present specification) supplied to the NC device 100 of the machine tool. A second NC program) is generated. The NC device 100 includes a reading / interpreting unit 102, an interpolation unit 104, and a servo calculation unit 106, similarly to a general NC device. The reading / interpreting unit 102 reads and interprets the first NC program, and outputs a movement command to the interpolation unit 104. The interpolation unit 104 calculates a position command value for each interpolation cycle based on the input movement command, and sends the position command value to the servo calculation unit 106. The servo calculation unit 106 calculates the current value supplied to the servomotor 108 of each feed axis such as the X-axis and the Y-axis based on the position command value, and drives the servomotor 108 of each feed axis.

減速制御装置10は入力部12、パラメータ格納部14、工具情報取得部16、工具軌跡取得部18、モデル生成部20、交差位置演算部22、減速開始終了位置演算部24、NCプログラム生成部26、記憶部28および表示部30を主要な構成要素として具備している。パラメータ格納部14、工具情報取得部16、工具軌跡取得部18、モデル生成部20、交差位置演算部22、減速開始終了位置演算部24、NCプログラム生成部26および記憶部28は、CPU(中央演算素子)、RAM(ランダムアクセスメモリ)やROM(リードオンリーメモリ)のようなメモリ装置、HDD(ハードディスクドライブ)やSSD(ソリッドステートドライブ)のような記憶デバイス、出入力ポート、および、これらを相互接続する双方向バスを含むコンピュータおよび関連するソフトウェアから構成することができる。 The deceleration control device 10 includes an input unit 12, a parameter storage unit 14, a tool information acquisition unit 16, a tool locus acquisition unit 18, a model generation unit 20, an intersection position calculation unit 22, a deceleration start / end position calculation unit 24, and an NC program generation unit 26. , A storage unit 28 and a display unit 30 are provided as main components. The parameter storage unit 14, the tool information acquisition unit 16, the tool trajectory acquisition unit 18, the model generation unit 20, the intersection position calculation unit 22, the deceleration start / end position calculation unit 24, the NC program generation unit 26, and the storage unit 28 are the CPUs (center). Computational elements), memory devices such as RAM (random access memory) and ROM (read-only memory), storage devices such as HDD (hard disk drive) and SSD (solid state drive), input / output ports, and mutual It can consist of a computer including a bidirectional bus to connect and related software.

入力部12は、後述するように、第2のNCプログラムを生成するために必要なパラメータをオペレータが減速制御装置10に入力するための要素であって、キーボードやタッチパネル等から形成することができる。表示部30は、減速制御装置10による演算結果を表示するための構成要素であって、液晶ディスプレイやタッチパネルから形成することができる。入力部12および表示部30を共通のタッチパネルにより形成してもよい。 As will be described later, the input unit 12 is an element for the operator to input the parameters necessary for generating the second NC program to the deceleration control device 10, and can be formed from a keyboard, a touch panel, or the like. .. The display unit 30 is a component for displaying the calculation result by the deceleration control device 10, and can be formed from a liquid crystal display or a touch panel. The input unit 12 and the display unit 30 may be formed by a common touch panel.

パラメータ格納部14は、入力部12を通じてオペレーターが入力したパラメータを格納する。オペレーターが入力するパラメータは、工具を定義する直線の数n、工具先端の形状を表す形状パラメータ、減速送り速度、減速を開始する位置を決定するための開始点パラメータ、および減速を解除または終了する位置を決定するための終了点パラメータを含むことができる。これらのパラメータは、使用する工具の工具番号に関連させて格納するようにできる。また、これらのパラメータは、入力部12に表示されるパラメータ設定画面から容易に入力することができる。 The parameter storage unit 14 stores the parameters input by the operator through the input unit 12. The parameters input by the operator are the number n of straight lines that define the tool, the shape parameter that represents the shape of the tool tip, the deceleration feed rate, the start point parameter for determining the position to start deceleration, and the release or end of deceleration. An end point parameter for determining the position can be included. These parameters can be stored in relation to the tool number of the tool used. Further, these parameters can be easily input from the parameter setting screen displayed on the input unit 12.

以下、図2〜図4のフローチャートを参照しつつ、減速制御装置10の各部の作用を一層詳細に説明する。
先ず、減速制御装置10が起動すると、フラグi、j、mにそれぞれ1、0、0が入力され(ステップS10)、オペレーターによって入力されているパラメータがパラメータ格納部14からモデル生成部20に読み込まれる(ステップS12)。
Hereinafter, the operation of each part of the deceleration control device 10 will be described in more detail with reference to the flowcharts of FIGS. 2 to 4.
First, when the deceleration control device 10 is activated, 1, 0, 0 are input to the flags i, j, and m, respectively (step S10), and the parameters input by the operator are read from the parameter storage unit 14 into the model generation unit 20. (Step S12).

NC装置100へNCプログラムが供給されると、減速制御装置10は、読取解釈部102から第1のNCプログラムをブロック毎に読み取る(ステップS14)。工具情報取得部16は、NC装置100の読取解釈部102が、読取り解釈した第1のNCプログラムに基づき工具の情報、特に工具径を取得する(ステップS16)。NCプログラムには、通常、加工に用いる工具が工具番号または多数の工具を格納した工具マガジンの工具ポット番号にて指示されているので、工具情報取得部16は、工具径その他の工具情報を別途工具番号と関連させて予め格納しておいたり、或いは、他のサーバー(図示せず)にアクセスして、加工に用いる工具の工具情報を取得するようにできる。工具情報取得部16が取得した工具情報はモデル生成部20へ出力される。 When the NC program is supplied to the NC device 100, the deceleration control device 10 reads the first NC program block by block from the reading / interpreting unit 102 (step S14). The tool information acquisition unit 16 acquires tool information, particularly the tool diameter, based on the first NC program read and interpreted by the reading and interpreting unit 102 of the NC device 100 (step S16). Since the tool used for machining is usually indicated by the tool number or the tool pot number of the tool magazine storing a large number of tools in the NC program, the tool information acquisition unit 16 separately obtains the tool diameter and other tool information. It can be stored in advance in association with the tool number, or can be accessed by another server (not shown) to acquire tool information of the tool used for machining. The tool information acquired by the tool information acquisition unit 16 is output to the model generation unit 20.

工具軌跡取得部18は、NC装置100の読取解釈部102が、読取り解釈した第1のNCプログラムに基づき、使用する工具の加工開始点、加工終了点および方向に関する工具軌跡情報を取得する。取得した工具軌跡は穴情報として記憶部28に出力され、(m+1)に関連付けて格納される(ステップS18)。 The tool locus acquisition unit 18 acquires tool locus information regarding the machining start point, machining end point, and direction of the tool to be used based on the first NC program read and interpreted by the reading and interpreting unit 102 of the NC device 100. The acquired tool locus is output to the storage unit 28 as hole information, and is stored in association with (m + 1) (step S18).

次に、ステップS20において、フラグmが0であるか否かが判定される。m=0の場合(ステップS20でYesの場合)は、今回の加工以前にワークに穴が加工されていないことを意味している。この場合、今回の加工によって他の穴と交差する穴は形成されないので、第1のNCプログラムを修正せずに(ステップS22)、フラグmに1を加えてステップS14へ戻り、第1のNCプログラムの次のブロックが読み込まれる。 Next, in step S20, it is determined whether or not the flag m is 0. When m = 0 (Yes in step S20), it means that no hole has been machined in the work before this machining. In this case, since the hole intersecting with other holes is not formed by this processing, the first NC program is not modified (step S22), the flag m is added with 1 and the process returns to step S14, and the first NC is performed. The next block of the program is loaded.

ステップS20でNoの場合、つまり今回の加工以前にワークに穴が加工されている場合、モデル生成部20は、パラメータ格納部14からのパラメータと、工具情報取得部16からの工具情報に基づいて、今回これから加工に使用する工具(図5)をモデル化する(ステップS26)。図5において、モデル化した工具であるモデル工具MTは、円柱の本体部MT1と、本体部MT1の一端に設けられた円錐状の先端部MT2とを有している。 If No in step S20, that is, if a hole has been machined in the workpiece before the current machining, the model generation section 20 is based on the parameters from the parameter storage section 14 and the tool information from the tool information acquisition section 16. This time, the tool (FIG. 5) to be used for machining is modeled (step S26). In FIG. 5, the model tool M T, which is a modeled tool, has a cylindrical main body M T 1 and a conical tip M T 2 provided at one end of the main body M T 1 .

モデル生成部20、また、パラメータ格納部14から読み取った工具を定義する直線の数nに応じて、図7に示すように、モデル工具MTの本体部MT1の側面に沿った工具の軸方向の直線Li(i=2…n)を設定し、直線Liによって工具を近似する。図7では、直線の数はn=4であるが、直線の数nはこれに限定されず2以上の整数とすることができる。直線の数nが2以上の場合には、直線Liは、工具の中心軸線周りに等間隔に設定される。 Model generator 20 also, depending on the number n of straight lines that define the tool read from the parameter storage unit 14, as shown in FIG. 7, the axis of the tool along the side surface of the main body portion M T1 models tool M T A straight line Li (i = 2 ... n) in the direction is set, and the tool is approximated by the straight line Li i . In FIG. 7, the number of straight lines is n = 4, but the number of straight lines n is not limited to this and can be an integer of 2 or more. When the number n of straight lines is 2 or more, linear L i are set at equal intervals around the central axis line of the tool.

モデル生成部20は、更に、パラメータ格納部14から読み取った形状パラメータに基づいて先端部MT2を生成し、直線Ti(i=2…n)を設定する。形状パラメータは、例えば、通常のドリルの場合、図8に示すように、円錐形状の先端部MT2の軸方向の長さLTと、工具の中心軸線Oに対する円錐の母線の角度θとを含むことができる。先端部MT2が図9に示すように接頭円錐形状(ガンドリル)であっても、長さLTと、角度θで先端部MT2の形状を規定することができる。LT=0またはθ=0の場合は、先端部がフラットな円筒形状の本体部MT1のみを有したモデル工具MTとなる。 The model generation unit 20 further generates a tip portion MT2 based on the shape parameter read from the parameter storage unit 14, and sets a straight line Ti (i = 2 ... n). For example, in the case of a normal drill, the shape parameters are the axial length L T of the tip portion M T 2 of the conical shape and the angle θ of the generatrix of the cone with respect to the central axis O of the tool, as shown in FIG. Can include. Even if the tip portion M T2 has a prefix conical shape (gun drill) as shown in FIG. 9, the shape of the tip portion M T 2 can be defined by the length L T and the angle θ. When L T = 0 or θ = 0, the model tool M T has only the cylindrical main body M T 1 having a flat tip.

次に、モデル生成部20は、記憶部28に格納されている従前の加工により形成された穴(穴跡と記載する)に関連した情報のうちフラグmに関連付けられている穴情報を読み込み(ステップS28)、穴跡(図6)をモデル化する(ステップS30)。図6において、モデル化した穴跡であるモデル穴MHは、円柱状の穴本体から成る。モデル穴MHは中心軸線OHと開始面SSと終点面SEとを有している。 Next, the model generation unit 20 reads the hole information associated with the flag m among the information related to the holes (described as hole traces) formed by the conventional processing stored in the storage unit 28 (described as hole traces). Step S28), modeling the hole marks (FIG. 6) (step S30). In FIG. 6, the model hole MH, which is the modeled hole trace, is composed of a columnar hole body. The model hole M H has a central axis O H , a start surface S S, and an end surface S E.

次に、後述するように、各直線LiおよびTiとモデル穴MHとの交点が演算される(ステップS32)。次いで、ステップS34において、全ての直線LiおよびTiについて、モデル穴MHとの交点の演算が終了したか否かが判定される。ステップS34でNoの場合、つまり、全ての直線LiおよびTiについて、モデル穴MHとの交点の演算が終了していない場合、iに1を加えて(ステップS36)、ステップS32へ戻り、次の直線Li+1およびTi+1について、交点が演算される。 Next, as will be described later, the intersection of each straight line L i and T i and the model hole M H is calculated (step S32). Next, in step S34, it is determined whether or not the calculation of the intersection with the model hole MH has been completed for all the straight lines L i and T i . If No at step S34, that is, for all linear L i and T i, if the calculation of the intersection of the model holes M H has not been completed, 1 is added to i (step S36), returns to step S32 , The intersection is calculated for the next straight lines L i + 1 and T i + 1 .

ステップS34において、Yesの場合、つまり、全ての直線LiおよびTiについてモデル穴MHとの交点の演算が終了している場合、パラメータ格納部14から読み込まれた減速開始位置および減速終了位置に基づいて、減速開始点および減速終了点が演算される(ステップS38)。減速開始点は、演算した交点から手前へ開始点パラメータの距離だけシフトした位置であり、減速終了点は、演算した交点から奥へ終了点パラメータの距離シフトした位置である。開始点パラメータおよび終了点パラメータは、演算した交点からの余裕距離或いは安全距離を表している。通常、開始点パラメータは、終了点パラメータより短く設定される。何故なら、ドリルの先端が演算した交点の手前に差し掛かったら減速を開始し、演算した交点をドリルの先端部(円錐部)から本体部(円柱部)が通過したら減速を終了する、つまりドリルの先端部の長さLTだけ減速終了点を奥へ移動させる必要があるからである。 In step S34, if Yes, the words, if the calculation of the intersection of the model holes M H for all linear L i and T i are finished, deceleration start position and the deceleration end position is read from the parameter storage unit 14 The deceleration start point and deceleration end point are calculated based on (step S38). The deceleration start point is a position shifted from the calculated intersection to the front by the distance of the start point parameter, and the deceleration end point is a position shifted from the calculated intersection to the back by the distance of the end point parameter. The start point parameter and the end point parameter represent the marginal distance or the safe distance from the calculated intersection. Normally, the start point parameter is set shorter than the end point parameter. The reason is that deceleration starts when the tip of the drill approaches the calculated intersection, and deceleration ends when the calculated intersection passes from the tip (cone) of the drill to the main body (cylindrical), that is, the drill This is because it is necessary to move the deceleration end point to the back by the length L T of the tip portion.

次いで、ステップS40において、全ての穴跡について、減速開始点および減速終了点を求めたか否かが判定される。ステップS40においてYesの場合、減速開始終了位置演算部24において演算された減速開始点および減速終了点は、NCプログラム生成部26に出力される。NCプログラム生成部26では、減速開始点および減速終了点に基づいて、第1のNCプログラムの当該ブロックの工具の減速開始位置、減速送り速度および減速終了位置の部分が修正され(ステップS44)、第2のNCプログラムとしてNC装置100へ出力される。 Next, in step S40, it is determined whether or not the deceleration start point and the deceleration end point have been obtained for all the hole traces. In the case of Yes in step S40, the deceleration start point and the deceleration end point calculated by the deceleration start / end position calculation unit 24 are output to the NC program generation unit 26. In the NC program generation unit 26, the deceleration start position, deceleration feed speed, and deceleration end position of the tool of the block of the first NC program are corrected based on the deceleration start point and the deceleration end point (step S44). It is output to the NC device 100 as a second NC program.

次いで、ステップS46において、フラグi、jがリセットされるとともに、フラグmに1が加えられ、フローチャートはステップS14へ戻り、第1のNCプログラムの次のブロックが読み込まれる。 Then, in step S46, the flags i and j are reset, 1 is added to the flag m, the flowchart returns to step S14, and the next block of the first NC program is read.

全ての穴跡について上述の減速開始点および減速終了点の演算が完了していない場合(ステップS40でNoの場合)、フラグjに1を加えて(ステップS42)、フローチャートはステップS28へ戻り、次の穴跡に関連した情報がモデル生成部20へ読み込まれる。 When the above-mentioned calculation of the deceleration start point and the deceleration end point is not completed for all the hole traces (when No in step S40), 1 is added to the flag j (step S42), and the flowchart returns to step S28. Information related to the next hole trace is read into the model generation unit 20.

次に図4を参照して、直線Liとモデル穴MHとの交点の求め方を説明する。上述のように、モデル生成部20において、直線の数nに応じてモデル工具MTの本体部MT1の側面に沿った工具の軸方向の直線Li(i=2…n)が設定される(ステップS50)。次に、図10に示すように、交差位置演算部22において、X、Y、Z座標軸上に1本の直線Liと、モデル穴MHが設定される(ステップS52)。交差位置演算部22は、図11に示すように、円柱の中心軸線OHがZ軸に一致するように、モデル穴MHを回転および並進移動させ、直線Liも同じ条件で回転および並進移動する(ステップS54)と共に、図11において破線で示すように、モデル穴MHの高さ範囲(Z軸方向の範囲)以外の直線Liの部分を消去する。 Next, with reference to FIG. 4, how to find the intersection of the straight line L i and the model hole M H will be described. As described above, in the model generation unit 20, a straight line Li (i = 2 ... n) in the axial direction of the tool along the side surface of the main body portion M T1 of the model tool M T is set according to the number n of straight lines. (Step S50). Next, as shown in FIG. 10, in the intersection position calculation unit 22, one straight line Li and a model hole M H are set on the X, Y, and Z coordinate axes (step S52). Intersection calculating unit 22, as shown in FIG. 11, as the center axis O H of the cylinder is coincident with the Z-axis, is rotated and translated to model holes M H, linear L i be rotational and translational under the same conditions moving (step S54), as shown by a broken line in FIG. 11, to erase the portion of the straight line L i other than the high range of the model holes M H (range in the Z axis direction).

交点位置演算部22は、次いで、図12に示すように、モデル穴MHおよび直線LiをXY平面に投影し、XY平面内で、円Cと直線Li′との交点IP1(X1,Y1)、IP2(X2,Y2)を算出する(ステップS56)。このとき、交点IP1、IP2が存在しない場合(ステップS58でNoの場合)、フローチャートはステップS34へ移動し、全ての直線Liについて、モデル穴MHとの交点の演算が終了したか否かが判定される。 The intersection position calculation unit 22 then projects the model hole MH and the straight line L i on the XY plane, as shown in FIG. 12, and in the XY plane, the intersection point I P1 (X) between the circle C and the straight line L i ′. 1 , Y 1 ) and I P2 (X 2 , Y 2 ) are calculated (step S56). At this time, if the intersections I P1 and I P2 do not exist (No in step S58), the flowchart moves to step S34, and has the calculation of the intersection with the model hole M H completed for all the straight lines L i ? Whether or not it is determined.

交点IP1、IP2が存在する場合(ステップS58でYesの場合)、交点IP1(X1,Y1)、IP2(X2,Y2)に基づいて、交点IP1、IP2のZ座標が算出される(ステップS60)。次いで、IP1(X1,Y1,Z1)、IP2(X2,Y2,Z2)に関して、ステップS54で行った回転、並進移動に対して逆方向の回転、並進移動を行い、モデル穴MHと直線Liとの交点を算出する(ステップS62)。演算結果や交差の回数、修正した第2のNCプログラム等は、表示部30に表示することができる。 If the intersection point I P1, I P2 is present (Yes in step S58), the intersection point I P1 (X 1, Y 1 ), based on the I P2 (X 2, Y 2 ), the intersection I P1, I P2 The Z coordinate is calculated (step S60). Next, with respect to I P1 (X 1 , Y 1 , Z 1 ) and I P2 (X 2 , Y 2 , Z 2 ), the rotation and translation movement in the opposite direction to the rotation and translation movement performed in step S54 are performed. , The intersection of the model hole M H and the straight line L i is calculated (step S62). The calculation result, the number of intersections, the modified second NC program, and the like can be displayed on the display unit 30.

直線Tiとモデル穴MHとの交点も同様に求めることができる。ステップS56の2次元座標における直線と円との交点演算や、ステップS54およびステップS62の座標の回転、並進変換の演算は、従来技術のドリルの3次元ソリッドモデルと、穴形状の3次元ソリッドモデルとの交差位置の演算と比べ、コンピュータにとっては遥かに軽負荷の作業である。 The intersection of the straight line T i and the model hole M H can be obtained in the same manner. The calculation of the intersection of a straight line and a circle in the two-dimensional coordinates of step S56, the rotation of the coordinates of steps S54 and S62, and the calculation of translational conversion are the three-dimensional solid model of the conventional drill and the three-dimensional solid model of the hole shape. It is a much lighter task for the computer than the calculation of the intersection position with.

図15、16を用いて、本発明の実施形態の第1の穴202の加工後に第2の穴204をあける場合についての第1のNCプログラム(変換前)と第2のNCプログラム(変換後)を説明する。第2の穴204をあけるときのNCプログラムの原点Aは、図示の通りワーク200の一角に設定し、X軸、Y軸、Z軸を定義する。第2の穴204を加工する部分の第1のNCプログラムは、次のように作成されている。 Using FIGS. 15 and 16, the first NC program (before conversion) and the second NC program (after conversion) in the case of drilling the second hole 204 after processing the first hole 202 according to the embodiment of the present invention. ) Will be explained. The origin A of the NC program when drilling the second hole 204 is set at one corner of the work 200 as shown in the figure, and the X-axis, Y-axis, and Z-axis are defined. The first NC program of the part where the second hole 204 is machined is created as follows.

G17Z100.0
X-12.5Y10.0
Z50.0
G01Z0.0F40
G00Z100.0
この第1のNCプログラムは、工具先端部の基準位置(通常は先端部と本体部との境界面の中心)を座標(−12.5,10,100)に位置決めし、回転している工具をまずZ=50(ワークの加工表面)まで移動する。続けて工具送り速度40mm/minでZ=0の位置まで50mm切削送りし(穴204が貫通)、その後元の座標のZ=100へ早送りで戻ることを表している。
G17Z100.0
X-12.5Y10.0
Z50.0
G01Z0.0F40
G00Z100.0
This first NC program positions the reference position of the tool tip (usually the center of the boundary surface between the tip and the main body) at the coordinates (-12.5, 10, 100) and rotates the tool. First, move to Z = 50 (processed surface of the work). It means that the tool feed speed is 40 mm / min, the cutting feed is 50 mm to the position of Z = 0 (the hole 204 penetrates), and then the speed returns to the original coordinate Z = 100.

この第1のNCプログラムを変換して第2のNCプログラムを生成すると次のようになる。
G17Z100.0
X-12.5Y10.0
Z50.0
G01Z35.0F40
G01Z15.0F15
G01Z0.0F40
G00Z100.0
これは、座標(−12.5,10,100)からZ=50まで工具を移動する部分は、第1のNCプログラムと同じである。その後、Z=35(第1の穴202の手前の減速開始位置)まで送り速度40mm/minで移動し、続けて送り速度を15mm/minに減速した状態でZ=15(減速終了位置)まで移動し(第1の穴202と完全に交差し終わって)、続けて送り速度を40mm/minに復活させてZ=0の位置まで移動して穴204を貫通させる。その後、元の座標Z=100へ早送りで戻ることを表している。
この例では、「G01Z0.0F40」が「G01Z35.0F40」「G01Z15.0F15」「G01Z0.0F40」の3つの工程に分解され、Z座標が35−15の間で減速されていることが理解されよう。
When the first NC program is converted to generate the second NC program, the result is as follows.
G17Z100.0
X-12.5Y10.0
Z50.0
G01Z35.0F40
G01Z15.0F15
G01Z0.0F40
G00Z100.0
This is the same as the first NC program in that the part that moves the tool from the coordinates (-12.5, 10, 100) to Z = 50. After that, it moves to Z = 35 (deceleration start position in front of the first hole 202) at a feed rate of 40 mm / min, and then moves to Z = 15 (deceleration end position) with the feed rate reduced to 15 mm / min. It moves (completely intersects the first hole 202), then restores the feed rate to 40 mm / min and moves to the position of Z = 0 to penetrate the hole 204. After that, it means that the original coordinates Z = 100 are returned in fast forward.
In this example, it is understood that "G01Z0.0F40" is decomposed into three steps of "G01Z35.0F40", "G01Z15.0F15" and "G01Z0.0F40", and the Z coordinate is decelerated between 35-15. Yeah.

上述の実施形態では、工作機械において実際に加工中に、減速制御装置10は、第1のNCプログラムを先読みすることによって、逐次、第2のNCプログラムを出力するようになっていたが、本発明はこれに限定されずに、NC装置100へ第1のNCプログラムを供給する前に、一括して、第1のNCプログラムの全体に亘って修正し、第2のNCプログラムを生成するようにしてもよい。 In the above-described embodiment, the deceleration control device 10 sequentially outputs the second NC program by pre-reading the first NC program during the actual machining in the machine tool. The invention is not limited to this, and before supplying the first NC program to the NC device 100, the first NC program is collectively modified over the entire first NC program to generate a second NC program. You may do it.

10 減速制御装置
12 入力部
14 パラメータ格納部
16 工具情報取得部
18 工具軌跡取得部
20 モデル生成部
22 交差位置演算部
24 減速開始、終了位置演算部
26 NCプログラム生成部
28 記憶部
30 表示部
100 NC装置
10 Deceleration control device 12 Input unit 14 Parameter storage unit 16 Tool information acquisition unit 18 Tool locus acquisition unit 20 Model generation unit 22 Crossing position calculation unit 24 Deceleration start / end position calculation unit 26 NC program generation unit 28 Storage unit 30 Display unit 100 NC device

Claims (3)

ドリルを工具として用い、複数の穴を加工する第1のNCプログラムと、加工に使用する工具のデータとに基づいて、ワーク内で交差する穴を加工する際に、工具の送り速度を減速させた第2のNCプログラムを作成するNCプログラムの作成方法において、
ドリルの形状を複数の直線の集合体でモデル化し、
ワークに従前に形成されている穴と前記直線との交差位置を演算し、
前記演算結果に基づいて、ドリルの先端が前記従前に形成されている穴内に進入する前に、該ドリルの送り速度を減速する減速開始点と、該ドリルが前記穴を横断して、ワークに再び進入した後に該ドリルの送り速度の減速を終了する減速終了点とを演算し、
前記減速開始点および減速終了点に基づいて、前記第1のNCプログラムを修正した第2のNCプログラムを生成する
ことを特徴としたNCプログラムの作成方法。
Based on the first NC program that uses a drill as a tool to machine multiple holes and the data of the tool used for machining, the tool feed speed is reduced when drilling intersecting holes in the workpiece. In the method of creating an NC program for creating a second NC program,
Model the shape of the drill with a collection of multiple straight lines
Calculate the intersection position of the hole formed before the work and the straight line,
Based on the calculation result, before the tip of the drill enters the previously formed hole, the deceleration start point for decelerating the feed rate of the drill and the drill cross the hole to form a work. After re-entering, the deceleration end point at which the deceleration of the feed speed of the drill ends is calculated.
A method for creating an NC program, which comprises generating a second NC program modified from the first NC program based on the deceleration start point and the deceleration end point.
前記ワークに従前に形成されている穴と前記直線との交差位置の演算は、前記モデル化したドリルを表す直線が、前記従前に形成されている穴の円柱モデルとの交点を、座標変換して該円柱モデルの軸線方向から見て投影した直線と円との交点として演算し、演算結果を逆変換して前記穴と直線との交点位置を求める請求項1に記載のNCプログラムの作成方法。 The calculation of the intersection position between the hole previously formed in the work and the straight line is performed by converting the intersection of the straight line representing the modeled drill with the cylindrical model of the previously formed hole. The method for creating an NC program according to claim 1, wherein the calculation is performed as the intersection of a straight line and a circle projected from the axial direction of the cylinder model, and the calculation result is inversely converted to obtain the intersection position of the hole and the straight line. .. ドリルを工具として用い、複数の穴を加工する第1のNCプログラムと、加工に使用する工具のデータとに基づいて、ワーク内で交差する穴を加工する際に、工具の送り速度を減速させた第2のNCプログラムを作成する工作機械の減速制御装置において、
ドリルの形状を複数の直線の集合体でモデル化するときの直線の数を少なくともパラメータとして格納するパラメータ格納部と、
工具径を含んだ工具情報を取得する工具情報取得部と、
NC装置の読取解釈部から前記第1のNCプログラムのドリルの工具軌跡を取得する工具軌跡取得部と、
前記工具情報と前記工具軌跡から直線の集合体で表した工具モデルと穴の円柱モデルとを生成するモデル生成部と、
前記工具モデルの各直線と前記円柱モデルから工具と穴との交差位置を演算する交差位置演算部と、
前記演算した交差位置から、減速開始位置および減速終了位置を演算する減速開始、終了位置演算部と、
前記演算した減速開始位置および減速終了位置に基づいて、前記第1のNCプログラムを修正して第2のNCプログラムを生成するNCプログラム生成部と、
を具備することを特徴とした工作機械の減速制御装置。
Based on the first NC program that uses a drill as a tool to drill multiple holes and the data of the tool used for machining, the feed speed of the tool is reduced when drilling intersecting holes in the workpiece. In the deceleration control device of the machine tool that creates the second NC program
A parameter storage unit that stores at least the number of straight lines as parameters when modeling the shape of a drill with a collection of multiple straight lines,
Tool information acquisition unit that acquires tool information including tool diameter,
A tool locus acquisition unit that acquires the tool locus of the drill of the first NC program from the reading / interpretation unit of the NC device, and a tool locus acquisition unit.
A model generator that generates a tool model represented by an aggregate of straight lines from the tool information and the tool locus, and a cylindrical model of a hole.
An intersection position calculation unit that calculates the intersection position between the tool and the hole from each straight line of the tool model and the cylinder model.
From the calculated intersection position, the deceleration start and deceleration start and deceleration end position calculation units that calculate the deceleration start position and deceleration end position, and
An NC program generator that modifies the first NC program and generates a second NC program based on the calculated deceleration start position and deceleration end position.
A machine tool deceleration control device characterized by being equipped with.
JP2019113241A 2019-06-18 2019-06-18 NC program creation method and machine tool deceleration control device Active JP6765478B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019113241A JP6765478B1 (en) 2019-06-18 2019-06-18 NC program creation method and machine tool deceleration control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019113241A JP6765478B1 (en) 2019-06-18 2019-06-18 NC program creation method and machine tool deceleration control device

Publications (2)

Publication Number Publication Date
JP6765478B1 JP6765478B1 (en) 2020-10-07
JP2020204980A true JP2020204980A (en) 2020-12-24

Family

ID=72706619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019113241A Active JP6765478B1 (en) 2019-06-18 2019-06-18 NC program creation method and machine tool deceleration control device

Country Status (1)

Country Link
JP (1) JP6765478B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005321890A (en) * 2004-05-06 2005-11-17 Kawasaki Heavy Ind Ltd Erroneous working preventing device and method
JP2012016793A (en) * 2010-07-09 2012-01-26 Sugino Machine Ltd Piercing control method and piercing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005321890A (en) * 2004-05-06 2005-11-17 Kawasaki Heavy Ind Ltd Erroneous working preventing device and method
JP2012016793A (en) * 2010-07-09 2012-01-26 Sugino Machine Ltd Piercing control method and piercing device

Also Published As

Publication number Publication date
JP6765478B1 (en) 2020-10-07

Similar Documents

Publication Publication Date Title
US10007254B2 (en) CAM integrated CNC control of machines
JP6012712B2 (en) Tool path generation method, tool path generation device, and tool path generation program
CN103116316B (en) Numerical control machining control method adapted to type or dimensional change of cutting tool
EP3137955B1 (en) Beam tool pathing for 3d compound contours using machining path surfaces to maintain a single solid representation of objects
JP5406105B2 (en) Method and apparatus for generating control data for tool control in machine tools
US20220379380A1 (en) Hybrid additive and subtractive manufacturing
JP2019082852A (en) Postprocessor device, processing program generation method, cnc machining system, and program for processing program generation
CN109725602A (en) Numerical control device and method, CNC machine, computer-readable information recording medium
US10007251B2 (en) Machine tool control device and machine tool
KR100898034B1 (en) Method for regulating a path of an instrument
JP6765478B1 (en) NC program creation method and machine tool deceleration control device
JP2008046913A (en) Numerical control device of machine tools
JP7041660B2 (en) Tool path generation method, tool path generation device and machine tool control device
JP6980151B1 (en) Machining program generator, machining program generation method and machine learning method
JP2010027018A (en) Device for creating machining information, method, and program
JP2009538744A (en) Method for controlling turning and NC machine suitable for turning
US20200319618A1 (en) Evaluation work piece, non-transitory computer readable medium recording a machining program and non-transitory computer readable medium recording a data structure
JP6219866B2 (en) Numerical control device with display function and display program
US6681144B1 (en) Process and system for working a workpiece through numerically controlled machine tools
JP2018051692A (en) Jog support device for off-line programming, jog support method and jog support program
JPS60259362A (en) Copying machine for closed area software potential line
CN116662694A (en) Visual method for realizing cutter cutting process display in webpage environment
Liu Towards smart and competitive sustainable machining
Gao et al. Research on high-precision geometric simulation for turning machining based on tool driven
Suh et al. Man–Machine Interface

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190618

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200915

R150 Certificate of patent or registration of utility model

Ref document number: 6765478

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150