JPH07266189A - Automatic programming method preventing unmachined corner part in milling work and device therefor - Google Patents

Automatic programming method preventing unmachined corner part in milling work and device therefor

Info

Publication number
JPH07266189A
JPH07266189A JP6113994A JP6113994A JPH07266189A JP H07266189 A JPH07266189 A JP H07266189A JP 6113994 A JP6113994 A JP 6113994A JP 6113994 A JP6113994 A JP 6113994A JP H07266189 A JPH07266189 A JP H07266189A
Authority
JP
Japan
Prior art keywords
data
corner
tool
locus
vertex
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6113994A
Other languages
Japanese (ja)
Inventor
Takeomi Kikuchi
武臣 菊地
Kazuhiko Imada
和彦 今田
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.)
Hitachi Seiki Co Ltd
Original Assignee
Hitachi 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 Hitachi Seiki Co Ltd filed Critical Hitachi Seiki Co Ltd
Priority to JP6113994A priority Critical patent/JPH07266189A/en
Publication of JPH07266189A publication Critical patent/JPH07266189A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To compose a numerical control program with no unmachined portion speedily and easily by inserting numerical control data reciprocating between both corner-part apexes of this time tool centroid and the last time tool width centroid after the numerical control data of up to these corner parts where a fact that there are unmachined portions is judged. CONSTITUTION:Numerical data of up to a corner part apex B1 (Bn) of this time tool centroid from this time tool center B0 are originated. Next, a distance between both corner-part apexes A and B1 of a tool width centroid and the this time tool centroid is calculated. In succession, whether this distance is larger than tool radius or not is judged, and when it is larger than the tool radius, it is so judged that there is an unmachined portion, the numerical control data (B1 A1 B1) reciprocating between the corner part apes B1 of the this time tool centroid and the corner part apex A1 of the last time tool diameter centroid are inserted thereinto after the numerical control data of up to the corner-part apex B1.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は任意形状を連続的に接
続することにより形成された加工領域を定義し、この加
工領域の加工形状に基づきNCデータを作成する自動プ
ログラミング方法およびその装置にかかり、特に任意形
状の接続部であるコーナ部に生じる削り残し部分を効率
良く削除できるフライス加工のコーナ部の削り残しを防
止する自動プログラミング方法およびその装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic programming method and apparatus for defining a machining area formed by continuously connecting arbitrary shapes and creating NC data based on the machining shape of this machining area. In particular, the present invention relates to an automatic programming method and apparatus for preventing uncut uncut parts of a corner part in milling which can efficiently remove uncut parts which occur in a corner part which is a connection part of arbitrary shape.

【0002】[0002]

【従来の技術】NC加工の一例として、任意形状に囲ま
れた領域の内部を所定の深さに切削する領域切削加工
(ポケット加工)や任意形状に囲まれた領域を島状に残
す領域切削加工がある。かかるポケット加工を行うため
のNCデータは、(1) 加工形状を定義するステップ、
(2) 一方向切削か、往復切削か、螺旋または矩形状に移
動する切削か等の加工方法を定義するステップ、(3) 使
用工具・加工条件(切削方向、ピッチ等)を定義するス
テップ等の各ステップで入力されたデータを用いて自動
的に作成されるようになっている。かかる自動プログラ
ミングにおいて、例えば図4に示すように図形要素e
1 ,e2 ,e3 で構成される加工領域Tや所定深さから
なる加工形状が定義され、又、加工方法として螺旋切
削、切削方向として外側から内側方向が定義され、更に
ポケット加工用の工具TLや1回の切り込み量や切削幅
(加工ピッチ寸法)P等が定義されると自動プログラム
システムにより以後ポケット加工用のNCプログラム
(NCデータ)の自動作成が開始される。すなわち、ま
ず加工領域Tに切削開始位置を特定し加工深さまで切込
むNCデータを作成する。ついで切削開始位置から、図
形要素e1 より工具TL半径r分内側に補正したポイン
トS0 に移動するNCデータを作成する。しかる後、ポ
イントS0 よりポケット加工用の工具TLにて領域Tの
図形要素e1 ,e2 ,e3に沿って1回目の移動軌跡S0
→S1 →S2 →S3 →S0 のNCデータを作成する。
ついで、加工領域Tの図形要素e1 ,e2 ,e3 を所定
の加工ピッチ寸法Pだけ内側にずらして新たに設けた図
形要素e4 ,e5 ,e6 に沿って2回目の移動軌跡B0
→B1 →B2 →B3 →B0 のNCデータを作成し順次、
螺旋状の移動軌跡により領域切削を行うNCプログラム
を作成する。
2. Description of the Related Art As an example of NC processing, area cutting processing (pocket processing) for cutting the inside of an area surrounded by an arbitrary shape to a predetermined depth or area cutting for leaving an area surrounded by an arbitrary shape in an island shape There is processing. NC data for performing such pocket machining includes (1) a step of defining a machining shape,
(2) Step of defining machining method such as unidirectional cutting, reciprocal cutting, cutting that moves in a spiral or rectangular shape, etc. (3) Step of defining tools and machining conditions (cutting direction, pitch, etc.) used It is designed to be automatically created using the data entered in each step. In such automatic programming, for example, as shown in FIG.
A machining area T consisting of 1 , e 2 and e 3 and a machining shape consisting of a predetermined depth are defined, spiral machining is defined as the machining method, and the direction from the outside to the inside is defined as the machining direction. When the tool TL, the cut amount per time, the cutting width (machining pitch dimension) P, etc. are defined, the automatic programming system automatically starts the creation of an NC program (NC data) for pocket machining. That is, first, the cutting start position is specified in the processing region T, and NC data for cutting to the processing depth is created. Next, NC data for moving from the cutting start position to a point S 0 corrected inward by the tool TL radius r from the graphic element e 1 is created. Then, from the point S 0 , the first movement trajectory S 0 along the graphic elements e 1 , e 2 , e 3 of the region T with the tool TL for pocket machining.
→ Create NC data of S 1 → S 2 → S 3 → S 0 .
Then, the second movement locus along the newly provided graphic elements e 4 , e 5 , e 6 by shifting the graphic elements e 1 , e 2 , e 3 of the processing region T inward by a predetermined processing pitch dimension P. B 0
→ Create NC data of B 1 → B 2 → B 3 → B 0 and
Create an NC program that performs area cutting with a spiral movement trajectory.

【0003】[0003]

【発明が解決しようとする課題】ところで、任意形状の
要素間の角部(コーナ部)が鋭角の場合や、一回当りの
切削幅(加工ピッチ寸法)が大きい場合には、コーナ部
に削り残しが発生するという問題があった。例えば、図
形要素e4 ,e5 のコーナ部には削り残しM(図4、斜
線部)が発生する。 かかるコーナ部には削り残しを防
ぐ対策として従来下記の技術がある。その第1は加工ピ
ッチ寸法を小さく設定して切削幅を小さくし、削り残し
を防ぐことである。しかし、切削幅を小さくすると加工
終了までの切削回数が多くなるから、加工時間が長くな
るという問題があった。その第2はコーナ部にダミーの
任意形状を入力して削り残しを除去するための加工デー
タを作成することである。しかし、全てのコーナ部にダ
ミー形状を入力しては削り残しがない場合もダミー形状
が入力されて無駄な加工を行うこととなる。そこで、コ
ーナ部の削り残し状態を予想してダミー形状のNCデー
タを挿入するとなると削り残しの有無を作業者が判断す
るという工程が必要となり、NCデータ作成に熟練した
作業者にしか行うことができないとともに、作成作業に
多大の時間を要するという問題が生じてしまう。この発
明は上記問題点を解決するために提案されたものであ
り、次の目的を達成する。すなわち、この発明はNCデ
ータ作成に熟練していない作業者でも、任意形状を入力
するのみで、自動的に削り残しを防止できるフライス加
工のコーナ部の削り残しを防止する自動プログラミング
方法およびその装置を提供することを目的とする。
By the way, when the corners (corners) between elements of arbitrary shape are acute or when the cutting width (machining pitch size) per operation is large, the corners are cut. There was a problem of leaving. For example, the uncut portion M (shaded area in FIG. 4) is generated at the corners of the graphic elements e 4 and e 5 . Conventionally, there are the following techniques as measures for preventing the uncut portion of the corner. The first is to set a small machining pitch dimension to reduce a cutting width and prevent uncut portions. However, if the cutting width is reduced, the number of times of cutting until the end of processing increases, which causes a problem that the processing time increases. The second is to input a dummy arbitrary shape to the corner portion and create processing data for removing the uncut residue. However, even if the dummy shape is input to all the corners and there is no uncut portion, the dummy shape is input and unnecessary machining is performed. Therefore, when the NC data of the dummy shape is inserted in anticipation of the uncut portion of the corner portion, a step is required for the operator to judge whether or not the uncut portion is left, and only a worker skilled in NC data creation can perform this step. In addition to that, there is a problem that the creation work requires a lot of time. The present invention has been proposed to solve the above problems and achieves the following objects. That is, the present invention is an automatic programming method and apparatus for preventing uncut uncut corners of a milling machine, which allows even an operator unskilled in NC data creation to automatically prevent uncut uncut portions by inputting an arbitrary shape. The purpose is to provide.

【0004】[0004]

【課題を解決するための手段】本願の第1の発明は、前
記課題を解決するために創案されたものであって、複数
の図形要素を連続的に接続して構成された加工領域を含
む加工形状データを作成し、所定の加工方向に前記加工
形状データに沿って移動する移動軌跡データを第1回目
のNCデータとし、この第1回目の移動軌跡データより
所定の切削幅分移動させた移動軌跡データを次回のNC
データとし、順次、前記加工領域が無くなるまでこの移
動軌跡データの作成を繰り返す前記加工領域のNCデー
タを作成する方法において、前回のNCデータの工具径
軌跡のコーナ部の頂点Anの座標を算出する前回工具径
軌跡のコーナ部頂点座標演算手順と、今回のNCデータ
の工具中心軌跡のコーナ部の頂点Bnの座標を算出する
今回工具中心軌跡のコーナ部頂点座標演算手順と、今回
工具中心軌跡のコーナ部頂点BnまでのNCデータを作
成した後、前回工具径軌跡のコーナ部頂点Anと今回工
具中心軌跡のコーナ部頂点Bnとの間の距離を算出する
と共に、この距離が工具半径より大きい場合を削り残し
有りと判定する削り残しの有無を判定する手順と、削り
残し有りと判定された場合は、削り残し有りと判定され
たコーナ部の頂点BnまでのNCデータの後に、今回工
具中心軌跡のコーナ部頂点Bnと前回工具径軌跡のコー
ナ部頂点An間を往復移動動作させるNCデータを挿入
する削り残し防止NCデータ挿入手順からなることを特
徴とするフライス加工のコーナ部の削り残しを防止する
自動プログラミング方法としたものである。
A first invention of the present application was devised to solve the above-mentioned problems, and includes a processing region constituted by continuously connecting a plurality of graphic elements. Machining shape data is created, and movement locus data that moves along the machining shape data in a predetermined machining direction is used as the first NC data, and a predetermined cutting width is moved from this first movement locus data. The movement locus data is used for the next NC
In the method of creating NC data of the machining area, in which the movement path data is repeatedly generated until the machining area is exhausted, the coordinates of the apex An of the corner portion of the tool radius trajectory of the previous NC data are calculated. Corner vertex vertex coordinate calculation procedure of the previous tool radius locus, corner portion vertex coordinate calculation procedure of the current tool center locus for calculating the coordinates of the vertex Bn of the corner portion of the tool center locus of this NC data, and this time tool center locus After creating NC data up to the corner apex Bn, calculate the distance between the corner apex An of the previous tool radius locus and the corner apex Bn of the current tool center locus, and if this distance is greater than the tool radius The procedure for determining whether there is uncut material and the procedure for determining whether there is uncut material and, if it is determined that there is uncut material, After the NC data up to n, it consists of a non-cutting prevention NC data insertion procedure that inserts NC data for reciprocating between the corner vertex Bn of the current tool center trajectory and the corner vertex vertex An of the previous tool radius trajectory. This is an automatic programming method to prevent uncut parts of the corners of milling.

【0005】本願の第2の発明は、複数の図形要素を連
続的に接続して構成された加工領域を含む加工形状デー
タを作成する加工形状作成部と、所定の加工方向に前記
加工形状データに沿って移動する移動軌跡データを第1
回目のNCデータとし、この第1回目の移動軌跡データ
より所定の切削幅分移動させた移動軌跡データを次回の
NCデータとし、順次、前記加工領域が無くなるまでこ
の移動軌跡データの作成を繰り返すNCデータ作成部を
有する自動プログラミング装置において、前記加工形状
を作成する際のデータ、切削方向を定義するデータ、使
用工具の工具径寸法および前記加工形状を切削幅分ずら
す際の加工ピッチ寸法を入力する入力手段と、前回のN
Cデータを前記使用工具の工具径寸法分ずらした工具径
幅軌跡のコーナ部の頂点Anの座標を算出する前回工具
径幅軌跡のコーナ部頂点座標演算手段と、今回のNCデ
ータの工具中心軌跡のコーナ部の頂点Bnの座標を算出
する今回工具中心軌跡のコーナ部頂点座標演算手段と、
今回工具中心軌跡のコーナ部頂点BnまでのNCデータ
を作成した後、前回工具径幅軌跡のコーナ部頂点Anと
今回工具中心軌跡のコーナ部頂点Bnとの間の距離を算
出すると共に、この距離が前記工具径寸法の半径より大
きい場合を削り残し有りと判定する削り残し有無判定手
段と、削り残し有りと判定された場合は、削り残し有り
と判定されたコーナ部までのNCデータの後に、今回工
具中心軌跡のコーナ部頂点Bnと前回工具径幅軌跡のコ
ーナ部頂点An間を往復移動動作させるNCデータを挿
入する削り残し防止NCデータ挿入手段を有することを
特徴とするフライス加工のコーナ部の削り残しを防止す
る自動プログラミング装置としたものである。
A second invention of the present application is a machining shape creating section for creating machining shape data including a machining area constituted by continuously connecting a plurality of graphic elements, and the machining shape data in a predetermined machining direction. The movement trajectory data that moves along
The NC data for the first time is used, and the movement locus data obtained by moving the predetermined movement width from the movement locus data for the first time is set as the next NC data, and the movement locus data is sequentially created until the machining area is exhausted. In an automatic programming device having a data creating unit, input data for creating the machining shape, data defining a cutting direction, a tool diameter dimension of a tool used, and a machining pitch dimension for shifting the machining shape by a cutting width. Input means and last N
Corner data for calculating the corner vertex of the previous tool diameter width locus for calculating the coordinates of the vertex An of the corner portion of the tool diameter width locus obtained by shifting the C data by the tool diameter dimension of the tool used, and the tool center locus of this NC data. Corner vertex coordinate calculation means of the present tool center locus for calculating the coordinates of the vertex Bn of the corner portion of
After creating NC data up to the corner apex Bn of the tool center locus this time, the distance between the corner apex An of the previous tool radius locus and the corner apex Bn of the current tool center locus is calculated, and this distance is also calculated. Is larger than the radius of the tool diameter dimension, there is uncut portion determining means for determining that there is uncut portion, and when it is determined that there is uncut portion, after the NC data up to the corner portion determined to have uncut portion, A corner part for milling characterized by having a non-cutting prevention NC data insertion means for inserting NC data for reciprocating movement between the corner apex Bn of the current tool center locus and the corner apex An of the previous tool diameter locus. This is an automatic programming device that prevents uncut parts of the machine.

【0006】[0006]

【作用】上記の構成を有する発明においては、今回工具
中心軌跡のコーナ部頂点BnまでのNCデータを作成し
た後で、前回工具径軌跡のコーナ部頂点Anと今回工具
中心軌跡のコーナ部頂点Bnとの間の距離を算出し、こ
の距離が工具半径より大きい場合を削り残し有りと判定
し、削り残し有りと判定されたコーナ部までのNCデー
タの後に、今回工具中心軌跡のコーナ部頂点Bnと前回
工具径軌跡のコーナ部頂点An間を往復移動動作させる
NCデータを挿入することができるからコーナ部に発生
する削り残しの有無を自動的に判断し、削り残しが有る
場合は今回工具中心軌跡のコーナ部頂点Bnと前回工具
幅軌跡のコーナ部頂点An間を往復する簡単な削り残し
除去用のNCデータが挿入される。従ってNCデータ作
成に熟練していない作業者でも削り残しの無いNCプロ
グラムを容易にかつ短時間に作成できる。
In the invention having the above configuration, after the NC data up to the corner portion vertex Bn of the tool center locus this time is created, the corner portion vertex An of the previous tool radius locus and the corner portion vertex Bn of the current tool center locus are created. Is calculated, and when this distance is larger than the tool radius, it is determined that there is uncut material, and after the NC data to the corner portion that is determined to be uncut material, the corner portion vertex Bn of the tool center locus this time. Since NC data for reciprocating movement between the corner vertices An of the previous tool radius locus can be inserted, it automatically determines whether there is any uncut residue that occurs in the corner, and if there is uncut residue, the tool center will be used this time. NC data for simple uncut residue removal that reciprocates between the corner vertex Bn of the trajectory and the corner vertex An of the previous tool width trajectory is inserted. Therefore, even an operator who is not skilled in creating NC data can easily create an NC program with no uncut portion in a short time.

【0007】[0007]

【実施例】以下、図面に沿って、この発明による一実施
例について説明する。この発明の方法は、図1に示すよ
うに、複数の図形要素e1 ,e2 ,e3 を連続的に接続
して構成される加工領域Tの加工形状データを作成し、
この加工形状の図形要素に沿って加工方向(反時計回り
方向)を与えられた図形要素e1 →e 2 →e3 (太実線
にて示す)に沿って切削する工具軌跡のデータを第1回
目のNCデータとし、この第1回目のNCデータを所定
の加工ピッチ寸法Pずらした次回目のNCデータ(すな
わち、二点鎖線にて示す仮想図形要素e4 ,e5 ,e6
に沿って切削する工具中心軌跡のデータ)とし、順次前
回のNCデータを加工ピッチ寸法P分ずらして今回のN
Cデータとして加工領域Tが無くなるまで繰り返し、加
工領域TのNCデータを作成する。ところで、加工領域
Tにおいてコーナ部があれば、第1回目(あるいは前回
[N−1回目])のNCデータで加工した工具径幅で加
工した溝部(太実線と太一点鎖線に囲まれた部分)の軌
跡のコーナ部の頂点A1 (An)の座標を算出し、次に
今回のNCデータ(仮想図形e4 →e5 →e6 に沿って
切削する工具中心軌跡のデータ)のコーナ部の頂点B1
(Bn)の座標を算出する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment according to the present invention will be described below with reference to the drawings.
An example will be described. The method of this invention is shown in FIG.
A plurality of graphic elements e1 , E2 , E3 Connected continuously
Creates machining shape data of the machining area T
The machining direction (counterclockwise) along the graphic element of this machining shape
Direction e) given a graphic element e1 → e 2 → e3 (Thick solid line
The data of the tool path to be cut along
This is the first NC data set as the first NC data.
The next NC data (SUN
That is, a virtual figure element e indicated by a two-dot chain lineFour , EFive , E6
Data of the tool center locus for cutting along)
The NC data for each time is shifted by the machining pitch dimension P, and the current N
Repeat as C data until the processing area T disappears.
The NC data of the work area T is created. By the way, processing area
If there is a corner section at T, the first time (or the last time)
[N-1st time]) Add with tool diameter width machined with NC data
The track of the groove (the part surrounded by the thick solid line and the thick dashed line)
Vertex A at the corner of the trace1 Calculate the coordinates of (An), then
This NC data (virtual figure eFour → eFive → e6 along
Data of the tool center locus to be cut) Corner vertex B1 
The coordinates of (Bn) are calculated.

【0008】次に、今回工具中心B0 から今回工具中心
軌跡のコーナ部頂点B1 (Bn)までのNCデータを作
成した後、前回工具径幅軌跡のコーナ部の頂点A1 と今
回の工具中心軌跡のコーナ部頂点B1 との間の距離を算
出すると共に、この距離が工具半径rより大きいかどう
か判断し、工具半径rより大きい場合を削り残し有りと
判定し、コーナ部頂点B1 までのNCデータの後に、今
回工具中心軌跡のコーナ部頂点B1 と前回工具径軌跡の
コーナ部頂点A1 間を往復移動動作させるNCデータ
(B1 →A1 →B1 )を挿入する。
Next, after creating NC data from the current tool center B 0 to the corner portion vertex B 1 (Bn) of the current tool center locus, the vertex A 1 of the corner portion of the previous tool diameter locus and the current tool The distance between the center locus and the corner portion vertex B 1 is calculated, and it is determined whether this distance is larger than the tool radius r. If the distance is larger than the tool radius r, it is determined that there is uncut material, and the corner portion vertex B 1 after the NC data up, inserting the corner apex B 1 and NC data for reciprocally moving operation between corner apex a 1 of the previous tool径軌trace of this tool center path (B 1 → a 1 → B 1).

【0009】図2はこの発明による自動プログラミング
装置を示すブロック図である。図中、1は自動プログラ
ミング機能を処理する中央処理装置(CPU)、2はこ
の自動プログラミング機能のシステムプログラムを記憶
する読出専用メモリ(以下、ROMと称す)、3は処理
中のデータを一次記憶する読み書き可能なメモリ(以
下、RAMと称す)である。4は図形要素の上に切削開
始位置を特定し、この切削開始位置から図形要素に沿っ
て加工方向を与えられた図形要素を第1回目のNCデー
タとし、この第1回目のNCデータを所定の切削幅分ず
らして次回目のNCデータとし、順次前回のNCデータ
を所定の切削幅分ずらして今回のNCデータとして加工
領域が無くなるまで繰り返し、閉領域のNCデータを作
成するNCデータ作成部(自動プログラミング機能部)
である。5はかかる任意形状の図形要素(加工形状)が
記憶されている形状データメモリである。6は作成され
たNCデータを記憶するNC加工プログラムメモリであ
る。
FIG. 2 is a block diagram showing an automatic programming device according to the present invention. In the figure, 1 is a central processing unit (CPU) that processes the automatic programming function, 2 is a read-only memory (hereinafter referred to as ROM) that stores the system program of this automatic programming function, and 3 is the primary storage of the data being processed. A readable / writable memory (hereinafter referred to as RAM). Reference numeral 4 identifies a cutting start position on the graphic element, sets a graphic element given a machining direction along the graphic element from the cutting start position as the first NC data, and determines the first NC data as the predetermined NC data. NC data creation unit that creates the NC data of the closed area by shifting the cutting width of the next NC data to the next NC data, sequentially shifting the previous NC data by the predetermined cutting width, and repeating this time as the NC data of this time until the processing area disappears. (Automatic programming function section)
Is. Reference numeral 5 denotes a shape data memory in which the graphic element (processed shape) having such an arbitrary shape is stored. Reference numeral 6 is an NC machining program memory for storing the created NC data.

【0010】7は今回のNCデータの工具中心軌跡のコ
ーナ部の頂点Bnの座標を算出する今回工具中心軌跡の
コーナ部頂点座標演算手段(交点Bn 演算部)である。
8は加工領域Tの図形要素に沿って切削する前回の工具
中心軌跡(NCデータ)に対してを工具半径分だけ内側
にずらした工具径幅軌跡A31 ,A12 ,A23
を求め、この工具径幅軌跡A31 とA12 の交点A
1 の座標値を求める前回工具径幅軌跡のコーナ部頂点座
標演算手段(交点An 演算部)である。9は今回工具中
心軌跡のコーナ部頂点BnまでのNCデータを出力した
後で、前回工具径幅軌跡のコーナ部頂点Anと今回工具
中心軌跡のコーナ部頂点Bnとの間の距離を算出すると
共に、この距離が工具半径より大きい場合を削り残し有
りと判定する削り残し有無判定手段(削り残し有無判定
部)である。10は削り残し有無判定部9で削り残し有
りと判定された場合、コーナ部頂点BnまでのNCデー
タの後に、今回工具中心軌跡のコーナ部頂点Bnと前回
工具径幅軌跡のコーナ部頂点An間を往復移動動作させ
るNCデータを挿入する削り残し防止NCデータ挿入手
段(交点間移動プログラム作成部)である。11は加工
形状を作成する際のデータ、切削方向を定義するデー
タ、使用工具の工具寸法や前記加工形状を加工幅分ずら
す際のシフト量を入力する入力手段であるキーボードで
ある。
Reference numeral 7 denotes a corner vertex coordinate calculation means (intersection point Bn calculation unit) for calculating the coordinates of the vertex Bn of the corner of the tool center locus of the current NC data.
Reference numeral 8 indicates a tool diameter locus A 3 A 1 , A 1 A 2 , A 2 in which the previous tool center locus (NC data) for cutting along the graphic element of the machining area T is shifted inward by the tool radius. A 3
And the intersection A of this tool radius locus A 3 A 1 and A 1 A 2
This is a means for calculating the corner vertex coordinates of the previous tool radius locus for obtaining the coordinate value of 1 (intersection An calculation unit). After outputting NC data up to the corner vertex Bn of the current tool center locus, 9 calculates the distance between the corner vertex vertex An of the previous tool radius locus and the corner vertex Bn of the current tool center locus. The uncut portion presence / absence determining unit (uncut portion presence / absence determination unit) determines that there is uncut portion when this distance is larger than the tool radius. When the uncut portion presence / absence determination unit 9 determines that there is uncut portion 10, the NC data up to the corner portion vertex Bn is followed by between the corner portion vertex Bn of the current tool center locus and the corner portion vertex An of the previous tool diameter locus. Is a non-cutting prevention NC data insertion means (inter-intersection movement program creation unit) for inserting NC data for reciprocating movement. A keyboard 11 is an input means for inputting data for creating a machining shape, data defining a cutting direction, a tool size of a tool to be used, and a shift amount for shifting the machining shape by a machining width.

【0011】図3はこの発明の自動プログラミング処理
の流れを示す流れ図である。次に、図3の流れ図に基づ
いてこの発明の自動プログラミング装置の処理を説明す
る。なお、形状データメモリ5には自動プログラミング
機能部4を用いて加工形状データ(例えば、図1に示す
ように図形要素e1 ,e2 ,e3 で構成される加工領域
Tや所定深さからなる形状データ)が予め記憶されてい
るものとする。また、キーボード11を用いて入力され
たデータに基づき加工方法として時計と反対回りの螺旋
切削が定義され、切削方向として加工形状データの内側
からが定義され、更に使用工具TLや加工ピッチ寸法P
が定義され、RAM3の所定レジスタに登録されている
ものとする。
FIG. 3 is a flow chart showing the flow of the automatic programming process of the present invention. Next, the processing of the automatic programming device of the present invention will be described based on the flowchart of FIG. The shape data memory 5 uses the automatic programming function unit 4 to calculate machining shape data (for example, as shown in FIG. 1, a machining area T composed of graphic elements e 1 , e 2 , e 3 and a predetermined depth). Shape data) is stored in advance. In addition, based on the data input using the keyboard 11, spiral cutting counterclockwise is defined as a machining method, the machining direction is defined from the inside of the machining shape data, and the tool TL and machining pitch dimension P to be used are defined.
Is defined and registered in a predetermined register of the RAM 3.

【0012】CPU1は自動プログラミング機能部4の
自動プログラムシステムを用いて、例えばポケット加工
用のNCプログラム(NCデータ)の自動作成を開始す
る。すなわち、まず図形要素e1 ,e2 ,e3 の中央部
の上に切削開始位置を特定し、切削開始位置において加
工深さ(下穴)まで切込む加工するNCデータを作成す
る。しかる後、切削開始位置より図形要素e1 に工具径
が接するS0 の位置まで移動する。更に、ポケット加工
用の工具TLにて領域Tの図形要素e1 ,e 2 ,e3
沿って反時計回りに1回目(「N=1」回目)の切削す
る工具中心軌跡S1 ,S2 ,S3 ,S0 (切削通路)の
NCデータを作成する(ステップ20)。
The CPU 1 is an automatic programming function unit 4.
Using automatic programming system, for example, pocket machining
Start automatic creation of NC program (NC data) for
It That is, first, the graphic element e1 , E2 , E3 Central part of
Specify the cutting start position on the top of the
Create NC data for cutting to the working depth (prepared hole)
It After that, the graphic element e from the cutting start position1 Tool diameter
S touches0Move to the position. Furthermore, pocket processing
Graphic tool e of area T with tool TL1 , E 2 , E3 To
Along the counterclockwise, the first (“N = 1”) cutting
Tool center locus S1, S2, S3, S0(Cutting passage)
Create NC data (step 20).

【0013】次に、「N=N+1」として(ステップ2
1)、前回である(N−1)回目の加工領域Tの図形要
素e1 ,e2 ,e3 を工具径幅2rだけ内側にずらした
工具径幅軌跡A31 ,A12 ,A23 を求め、ま
ず、工具径幅軌跡A31 と工具径幅軌跡A12 の交
点(コーナ部の頂点)A1 の座標値を求める(ステップ
22)。ついで、加工領域Tの図形要素e1 ,e2 ,e
3 を所定の加工ピッチ寸法Pだけ内側にずらして新たに
図形要素e4 ,e5 ,e6 を設定するとともに、図形要
素e4 (n番目の要素)上のポイントBより工具TL半
径r分内側に補正したポイントB0 (すなわち、ポイン
トS0 より所定の加工ピッチ寸法Pだけ内側にずらした
ポイント)から新たな図形要素e4 ,e5 に沿って工具
中心軌跡B01,B12 を求め、工具中心軌跡B0
1 と工具中心軌跡B12 の交点(今回工具中心軌跡
のコーナ部の頂点)B1 の座標値を求める(ステップ2
3)。交点B1 の座標値が求まれば、反時計回りに2回
目(N回目)の図形要素e4 (n番目の要素)に沿った
工具中心軌跡(切削通路)B0 →B1 のNCデータを作
成する(ステップ24)。
Next, "N = N + 1" is set (step 2
1) is a preceding (N-1) -th machining area graphic element e 1 of T, e 2, the tool is shifted to e 3 inside just the tool diameter width 2r diameter width locus A 3 A 1, A 1 A 2 , A 2 A 3 , and first, the coordinate value of the intersection (vertex of the corner) A 1 of the tool radius locus A 3 A 1 and the tool radius locus A 1 A 2 is determined (step 22). Next, the graphic elements e 1 , e 2 , e of the processing region T are
3 is shifted inward by a predetermined machining pitch dimension P to newly set graphic elements e 4 , e 5 and e 6, and at the same time as the tool TL radius r from the point B on the graphic element e 4 (nth element). A tool center locus B 0 B 1 , B 1 along a new figure element e 4 , e 5 from an inwardly corrected point B 0 (that is, a point displaced inward by a predetermined machining pitch dimension P from the point S 0 ). B 2 is found and the tool center locus B 0
Obtain the coordinate value of the intersection point of B 1 and the tool center locus B 1 B 2 (the vertex of the corner of the tool center locus this time) B 1 (step 2
3). If the coordinate value of the intersection B 1 is obtained, NC data of the tool center locus (cutting path) B 0 → B 1 along the second (Nth) figure element e 4 (nth element) in the counterclockwise direction Is created (step 24).

【0014】次に、CPU1は交点A1 と交点B1 の距
離を求め、この交点間の距離が工具半径rより大きいか
どうかを判断する(ステップ25)。この判断は削り残
しの有無を判断するもので、交点間の距離が工具半径r
より大きい場合は削り残しが有ると判断され、削り残し
部分の削り処理を行う。一方、交点間の距離が工具半径
rより小さい場合は削り残しが無いと判断して次の処理
へ進む。すなわち、交点間の距離が工具半径rより大き
い場合は交点B1 から交点A1へ更に交点A1 から交点
1 への往復移動動作の切削通路B1 →A1 →B1 のN
Cデータを作成し、このNCデータを切削通路B0 →B
1 のNCデータの後に挿入する(ステップ26)。
Next, the CPU 1 obtains the distance between the intersection points A 1 and B 1 and judges whether the distance between the intersection points is larger than the tool radius r (step 25). This judgment is to judge whether or not there is uncut material, and the distance between the intersections is the tool radius r.
If it is larger, it is judged that there is uncut portion, and the uncut portion is cut. On the other hand, when the distance between the intersections is smaller than the tool radius r, it is determined that there is no uncut portion, and the process proceeds to the next process. That is, the distance between the intersections of the cutting path B 1 → A 1 → B 1 of the reciprocating movement of the further intersection A 1 to intersection A 1 from the intersection B 1 represents greater than the tool radius r to the intersection B 1 N
C data is created and this NC data is used as the cutting path B 0 → B
It is inserted after the NC data of 1 (step 26).

【0015】次に、N回目の切削通路において全ての要
素n番目までの要素が終了したかどうか判断し(ステッ
プ27)、全ての要素が終了していなければ、「n=n
+1」として(ステップ28)残っている別の要素につ
いてステップ22からの処理を繰り返す。一方、ステッ
プ27において、全ての要素が終了していれば、次に加
工領域TにおいてN回目で全ての螺旋状の切削通路の作
成処理が終了したかどうか判断し(ステップ29)、全
ての切削通路の作成処理が終了していなければ、ステッ
プ21の処理から残っている別の切削通路についての作
成処理を繰り返す。全て終了していれば、この発明のフ
ライス加工のコーナ部の削り残しを防止する自動プログ
ラミング処理を終了する。
Next, it is judged whether or not all the elements up to the nth element have been completed in the N-th cutting passage (step 27), and if all the elements have not been completed, "n = n"
+1 ”(step 28), and the process from step 22 is repeated for another remaining element. On the other hand, if all the elements are completed in step 27, then it is judged whether or not the creation processing of all spiral cutting passages is completed in the machining region T N times (step 29), and all cutting is performed. If the passage creating process has not been completed, the creating process for another cutting passage remaining from the process of step 21 is repeated. If all are finished, the automatic programming process of the present invention for preventing uncut uncut corners is finished.

【0016】[0016]

【発明の効果】以上説明したように、この発明において
は、今回工具中心軌跡のコーナ部頂点BnまでのNCデ
ータを出力した後で、前回工具径幅軌跡のコーナ部頂点
Anと今回工具中心軌跡のコーナ部頂点Bnとの間の距
離を算出し、この距離が工具半径より大きい場合を削り
残し有りと判定し、削り残し有りと判定されたコーナ部
までのNCデータの後に、今回工具中心軌跡のコーナ部
頂点Bnと前回工具径幅軌跡のコーナ部頂点An間を往
復するNCデータを挿入することができるからコーナ部
に発生する削り残しの有無を自動的に判断でき、削り残
しが有る場合のみ今回工具中心軌跡のコーナ部頂点Bn
と前回工具幅軌跡のコーナ部頂点An間を往復する簡単
な削り残し削除用のNCデータが自動的に挿入される。
従って削り残しの有無を作業者が判断し、ダミーの入力
形状を入力するという作業を省くことができるから、削
り残しの無いNCプログラムが早く簡単に作成できる。
すなわち、NCデータ作成に熟練していない作業者でも
削り残しのないNCデータを容易に作成することができ
るという顕著な効果を有する。
As described above, in the present invention, after the NC data up to the corner vertex Bn of the current tool center locus is output, the corner portion vertex An of the previous tool radius locus and the current tool center locus are output. The distance from the corner point apex Bn of the tool is calculated, and when this distance is larger than the tool radius, it is determined that there is uncut material, and after the NC data up to the corner where it is determined that there is uncut material, the tool center trajectory this time. Since the NC data that reciprocates between the corner apex Bn of and the corner apex An of the previous tool diameter locus can be inserted, it is possible to automatically determine whether or not there is uncut residue that occurs at the corner, and there is uncut residue. Only this time the corner apex Bn of the tool center locus
Then, NC data for simple uncut remaining deletion that reciprocates between the corner vertices An of the previous tool width locus is automatically inserted.
Therefore, it is possible to omit the work of the operator judging whether there is any uncut portion and inputting a dummy input shape, so that an NC program with no uncut portion can be created quickly and easily.
That is, there is a remarkable effect that even an operator who is not skilled in creating NC data can easily create NC data without being left uncut.

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

【図1】本発明による自動プログラミング処理によるN
Cデータ作成の一例を示す図である。
FIG. 1 is an N according to an automatic programming process according to the present invention.
It is a figure which shows an example of C data creation.

【図2】本発明による自動プログラミング装置のブロッ
ク図である。
FIG. 2 is a block diagram of an automatic programming device according to the present invention.

【図3】本発明による自動プログラミング処理の流れ図
である。
FIG. 3 is a flow chart of an automatic programming process according to the present invention.

【図4】従来の自動プログラミング処理によるNCデー
タ作成を示す図である。
FIG. 4 is a diagram showing NC data creation by a conventional automatic programming process.

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

1 CPU 2 ROM 3 RAM 4 自動プログラミング機能部 5 形状データメモリ 6 NC加工プログラムメモリ 7 交点Bn演算部 8 交点An演算部 9 削り残し有無判定部 10 交点間移動プログラム作成部 11 K.B. 1 CPU 2 ROM 3 RAM 4 Automatic programming function unit 5 Shape data memory 6 NC machining program memory 7 Intersection point Bn operation unit 8 Intersection point An operation unit 9 Uncut residue presence / absence determination unit 10 Intersection movement program creation unit 11 K. B.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数の図形要素を連続的に接続して構成
された加工領域を含む加工形状データを作成し、所定の
加工方向に前記加工形状データに沿って移動する移動軌
跡データを第1回目のNCデータとし、この第1回目の
移動軌跡データより所定の切削幅分移動させた移動軌跡
データを次回のNCデータとし、順次、前記加工領域が
無くなるまでこの移動軌跡データの作成を繰り返す前記
加工領域のNCデータを作成する方法において、 前回のNCデータの工具径軌跡のコーナ部の頂点Anの
座標を算出する前回工具径軌跡のコーナ部頂点座標演算
手順と、 今回のNCデータの工具中心軌跡のコーナ部の頂点Bn
の座標を算出する今回工具中心軌跡のコーナ部頂点座標
演算手順と、 今回工具中心軌跡のコーナ部頂点BnまでのNCデータ
を作成した後、前回工具径軌跡のコーナ部頂点Anと今
回工具中心軌跡のコーナ部頂点Bnとの間の距離を算出
すると共に、この距離が工具半径より大きい場合を削り
残し有りと判定する削り残しの有無を判定する手順と、 削り残し有りと判定された場合は、削り残し有りと判定
されたコーナ部の頂点BnまでのNCデータの後に、今
回工具中心軌跡のコーナ部頂点Bnと前回工具径軌跡の
コーナ部頂点An間を往復移動動作させるNCデータを
挿入する削り残し防止NCデータ挿入手順からなること
を特徴とするフライス加工のコーナ部の削り残しを防止
する自動プログラミング方法。
1. Forming machining shape data including a machining area constituted by continuously connecting a plurality of graphic elements, and moving trajectory data for moving along a predetermined machining direction along the machining shape data is first. The NC data for the first time is used, and the movement track data obtained by moving the predetermined movement width from the movement data for the first time is set as the next NC data, and the creation of the movement track data is sequentially repeated until the machining area is exhausted. In the method of creating the NC data of the machining area, the corner vertex coordinate calculation procedure of the previous tool diameter locus for calculating the coordinates of the vertex An of the corner portion of the tool diameter locus of the previous NC data, and the tool center of this NC data Vertex Bn of corner of trajectory
After creating the coordinates of the corner vertex of the current tool center locus to calculate the coordinates and NC data up to the corner vertex Bn of the current tool center locus, the corner vertex An of the previous tool radius locus and the current tool center locus When calculating the distance to the corner portion vertex Bn of, and determining whether or not there is uncut material when this distance is larger than the tool radius, and when it is determined that there is uncut material, After the NC data up to the vertex Bn of the corner determined to be uncut, NC data for reciprocating between the corner vertex Bn of the current tool center locus and the corner vertex An of the previous tool radius locus is inserted. Residual prevention NC data insertion procedure, which is an automatic programming method for preventing uncut uncut corners in milling.
【請求項2】 複数の図形要素を連続的に接続して構成
された加工領域を含む加工形状データを作成する加工形
状作成部と、所定の加工方向に前記加工形状データに沿
って移動する移動軌跡データを第1回目のNCデータと
し、この第1回目の移動軌跡データより所定の切削幅分
移動させた移動軌跡データを次回のNCデータとし、順
次、前記加工領域が無くなるまでこの移動軌跡データの
作成を繰り返すNCデータ作成部を有する自動プログラ
ミング装置において、 前記加工形状を作成する際のデータ、切削方向を定義す
るデータ、使用工具の工具径寸法および前記加工形状を
切削幅分ずらす際の加工ピッチ寸法を入力する入力手段
と、 前回のNCデータを前記使用工具の工具径寸法分ずらし
た工具径幅軌跡のコーナ部の頂点Anの座標を算出する
前回工具径幅軌跡のコーナ部頂点座標演算手段と、 今回のNCデータの工具中心軌跡のコーナ部の頂点Bn
の座標を算出する今回工具中心軌跡のコーナ部頂点座標
演算手段と、 今回工具中心軌跡のコーナ部頂点BnまでのNCデータ
を作成した後、前回工具径幅軌跡のコーナ部頂点Anと
今回工具中心軌跡のコーナ部頂点Bnとの間の距離を算
出すると共に、この距離が前記工具径寸法の半径より大
きい場合を削り残し有りと判定する削り残し有無判定手
段と、 削り残し有りと判定された場合は、削り残し有りと判定
されたコーナ部までのNCデータの後に、今回工具中心
軌跡のコーナ部頂点Bnと前回工具径幅軌跡のコーナ部
頂点An間を往復移動動作させるNCデータを挿入する
削り残し防止NCデータ挿入手段を有することを特徴と
するフライス加工のコーナ部の削り残しを防止する自動
プログラミング装置。
2. A machining shape creating section for creating machining shape data including a machining area constituted by continuously connecting a plurality of graphic elements, and a movement for moving along the machining shape data in a predetermined machining direction. The locus data is the first NC data, and the locus data moved by a predetermined cutting width from the first locus data is the next NC data. In an automatic programming device having an NC data creation unit that repeats creation of data, data for creating the machining shape, data for defining a cutting direction, a tool diameter dimension of a tool to be used, and machining for shifting the machining shape by a cutting width. The input means for inputting the pitch dimension and the coordinates of the apex An of the corner part of the tool diameter width locus obtained by shifting the previous NC data by the tool diameter dimension of the tool used. A corner vertex coordinate calculating means of the previous tool diameter width trajectory out, the apex of the corner portion of the tool center path of the current NC data Bn
After creating the coordinates of the corner vertex of the current tool center locus and the NC data up to the corner vertex Bn of the current tool center locus, the corner vertices An of the previous tool radius locus and the current tool center are calculated. In addition to calculating the distance from the corner vertex Bn of the trajectory, when the distance is larger than the radius of the tool diameter dimension, there is uncut residue determination means, and when it is determined that there is uncut residue. Is the NC data up to the corner that has been determined to be uncut, and then inserts the NC data for reciprocating between the corner apex Bn of the current tool center locus and the corner apex An of the previous tool diameter locus. An automatic programming device for preventing uncut uncut corners in milling, which has NC data insertion means.
JP6113994A 1994-03-30 1994-03-30 Automatic programming method preventing unmachined corner part in milling work and device therefor Pending JPH07266189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6113994A JPH07266189A (en) 1994-03-30 1994-03-30 Automatic programming method preventing unmachined corner part in milling work and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6113994A JPH07266189A (en) 1994-03-30 1994-03-30 Automatic programming method preventing unmachined corner part in milling work and device therefor

Publications (1)

Publication Number Publication Date
JPH07266189A true JPH07266189A (en) 1995-10-17

Family

ID=13162469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6113994A Pending JPH07266189A (en) 1994-03-30 1994-03-30 Automatic programming method preventing unmachined corner part in milling work and device therefor

Country Status (1)

Country Link
JP (1) JPH07266189A (en)

Similar Documents

Publication Publication Date Title
JP6122046B2 (en) Numerical control device that can partially correct the machining cycle
JPH0631590A (en) Preparation of tool transfer passage for nc working
JPH07266189A (en) Automatic programming method preventing unmachined corner part in milling work and device therefor
US5410489A (en) Method of specifying position to create fillet curved surface
JP2696206B2 (en) Automatic part program creation method
JPH06100929B2 (en) NC data creation method for machining uncut parts in NC data creation device
JPH0611456B2 (en) Calculation method of machining route
JP3269278B2 (en) CAM system for creating tooling tool path
JP2629759B2 (en) Data generation method for numerical control machining
JP3372582B2 (en) NC data creation apparatus and method
KR0178585B1 (en) Corner processing method of wire cut electric discharge machine
JPH084992B2 (en) Grooving method decision method in numerical control information creation function
JPH10307615A (en) Automatic generating method for machining path of recessed groove position for cam
JP3526292B2 (en) NC data creation apparatus and method
JP3343826B2 (en) Numerical control information creation device
JP3264054B2 (en) NC statement creation method
JPH10171514A (en) Method for preparing contour offset tool route for cam
JP2871991B2 (en) Processing path generator
JPH07256536A (en) Nc data originating device for three-dimensional contour work for metal mold
JPH05228786A (en) Automatic generating device for nc data in nc machine tool
JPH02212904A (en) Programming device
KR970005564B1 (en) Nc
JPS62292309A (en) Pocket working method
El-Midany et al. CAM SYSTEM FOR EFFICIENT GENERATION OF PART-PROGRAMS FOR WIRE-EDM
KR100440153B1 (en) Method of generating a roughing work program for computer numerical control