JP3110971B2 - Automatic programming device - Google Patents

Automatic programming device

Info

Publication number
JP3110971B2
JP3110971B2 JP07054626A JP5462695A JP3110971B2 JP 3110971 B2 JP3110971 B2 JP 3110971B2 JP 07054626 A JP07054626 A JP 07054626A JP 5462695 A JP5462695 A JP 5462695A JP 3110971 B2 JP3110971 B2 JP 3110971B2
Authority
JP
Japan
Prior art keywords
processing
reference line
machining
start point
processing reference
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
JP07054626A
Other languages
Japanese (ja)
Other versions
JPH08249037A (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.)
Okuma Corp
Original Assignee
Okuma Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Okuma Corp filed Critical Okuma Corp
Priority to JP07054626A priority Critical patent/JP3110971B2/en
Publication of JPH08249037A publication Critical patent/JPH08249037A/en
Application granted granted Critical
Publication of JP3110971B2 publication Critical patent/JP3110971B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

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 device for creating a machining reference line sequentially offset from an input reference line and creating NC data for area machining along the created machining reference line.

【0002】[0002]

【従来の技術】従来、入力された基準線内を加工する方
法として、基準線を指示オフセット量にて内側へオフセ
ットした1番加工基準線、2番加工基準線、・・・、n
番加工基準線を順次作成し、加工開始点及び加工方向及
び作成した前記加工基準線に基づいて加工基準線上の加
工開始点から加工方向に従い1番加工基準線、2番加工
基準線、・・・、n番加工基準線(あるいはn番加工基
準線、・・・、2番加工基準線、1番加工基準線)の順
に加工基準線に沿う軌跡を作成し、この作成した軌跡を
加工軌跡とする渦巻加工がある(以下、この加工軌跡を
渦巻加工軌跡という)。渦巻加工は、図9に示すように
ある高さの平面上の加工基準線内の加工を行なうポケッ
ト加工に使用されたり、図10に示すように順次高さを
下げて各平面上の加工基準線内の加工を行なう等高線領
域加工に使用されている。
2. Description of the Related Art Conventionally, as a method for processing an input reference line, a first processing reference line, a second processing reference line,...
No. 1 machining reference line is sequentially created, and based on the machining start point and machining direction and the created machining reference line, the first machining reference line, the second machining reference line,. A locus is formed along the machining reference line in the order of the n-th machining reference line (or the n-th machining reference line,..., The second machining reference line, the first machining reference line), and the created locus is defined as the machining locus. (Hereinafter, this processing locus is referred to as a spiral processing locus). The spiral machining is used for pocket machining for performing machining within a machining reference line on a plane having a certain height as shown in FIG. 9 or by sequentially reducing the height as shown in FIG. It is used in contour line processing for processing within a line.

【0003】ところで基準線DBを指示オフセット量に
て内側へオフセットすることにより作成される加工基準
線の形状は、図11(a)の1番加工基準線DL1及び
2番加工基準線DL2あるいは図12の1番加工基準線
DL1及び2番加工基準線DL2のように一般的にはオ
フセット量だけオフセットされた類似した形状となる
が、図11(a)の3番加工基準線DL3のようにオフ
セット量以上離れた類似しない形状となったり図12の
3番加工基準線DL31及び3番加工基準線DL32の
ように加工基準線が分割されてしまい類似しない形状と
なる場合がある。このような類似しない形状の加工基準
線より加工軌跡を作成する場合、各加工基準線での加工
開始点の位置により加工基準線から次の加工基準線への
移動軌跡は大きく異なるものとなる。なお、1番加工基
準線上の最初の加工開始点についてはオペレータの入力
にて与えられるが、2番加工基準線以降の加工開始点は
前回の加工開始点に最も近い点を求めることにより一意
的に決定されるものである。例えば図11(a)、
(b)は外側の加工基準線から内側の加工基準線へ順次
採用し加工軌跡を作成し、また加工方向は右回りの場合
を示す。図11(a)では、最初の加工開始点PS1か
ら加工開始点PS2への距離は非常に近くかつ加工開始
点PS1から加工開始点PS2への移動軌跡は加工領域
を示す基準線DB内であり、従って加工開始点PS1か
ら加工開始点PS2への加工軌跡は切削送りにて直線移
動可能である、同様にして加工開始点PS2から加工開
始点PS3への加工軌跡も切削送りにて直線移動可能で
ある。しかし図11(a)に対し最初の加工開始点PS
1の位置を変えただけの図11(b)では、加工開始点
PS1から加工開始点PS2への加工軌跡は切削送りに
て直線移動可能であるが、加工開始点PS2から加工開
始点PS3への加工軌跡は距離が長くまた直線移動する
と1番加工基準線DL1の外を通過し加工形状に干渉す
ることとなる。干渉を回避するためには、一点鎖線で示
す退避軌跡を加工開始点PS2と加工開始点PS3の間
に入れる必要がある。なお点線は切削送りによる加工軌
跡を示す。
By the way, the shape of the processing reference line created by offsetting the reference line DB inward by the designated offset amount is the first processing reference line DL1 and the second processing reference line DL2 in FIG. In general, the shape is similar to that of the 12th machining reference line DL1 and the 2nd machining reference line DL2, which is offset by the offset amount, but like the 3rd machining reference line DL3 of FIG. In some cases, the shapes may be dissimilar shapes separated by more than the offset amount, or the shape may be dissimilar because the processing reference line is divided like the third processing reference line DL31 and the third processing reference line DL32 in FIG. When a processing locus is created from a processing reference line having such a dissimilar shape, the movement locus from the processing reference line to the next processing reference line greatly differs depending on the position of the processing start point on each processing reference line. The first processing start point on the first processing reference line is given by the operator's input, but the processing start points after the second processing reference line are uniquely determined by finding the point closest to the previous processing start point. It is determined by For example, FIG.
(B) shows a case where the processing locus is created by sequentially adopting the outer processing reference line from the inner processing reference line and the processing direction is clockwise. In FIG. 11A, the distance from the first processing start point PS1 to the processing start point PS2 is very short, and the movement trajectory from the processing start point PS1 to the processing start point PS2 is within the reference line DB indicating the processing area. Therefore, the processing path from the processing start point PS1 to the processing start point PS2 can be linearly moved by the cutting feed. Similarly, the processing path from the processing start point PS2 to the processing start point PS3 can be linearly moved by the cutting feed. It is. However, as shown in FIG.
In FIG. 11B in which only the position of No. 1 is changed, the processing trajectory from the processing start point PS1 to the processing start point PS2 can be linearly moved by the cutting feed, but from the processing start point PS2 to the processing start point PS3. When the processing locus has a long distance and moves linearly, it passes outside the first processing reference line DL1 and interferes with the processing shape. In order to avoid the interference, it is necessary to insert a retreat trajectory indicated by a dashed line between the processing start point PS2 and the processing start point PS3. Note that the dotted line indicates a processing locus by cutting feed.

【0004】図12も同様に外側の加工基準線から内側
の加工基準線へ順次採用し加工軌跡を作成し、加工方向
も右回りの場合を示す。図12では2番加工基準線DL
2を指示オフセット量にて内側へオフセットすることに
より作成された3番加工基準線が、干渉により分割され
た3番加工基準線DL31及びDL32となる(以下、
分割された加工基準線を分割加工基準線という)。この
場合、図12に示すように分割加工基準線DL31から
もう一方の分割加工基準線DL32に移動する加工軌跡
は、直線移動すると1番加工基準線DL1の外を通過し
加工形状に干渉することとなり、干渉を回避するために
は一点鎖線で示す退避軌跡が間に必要である。さらに次
の内側の4番加工基準線DL4に移動する加工軌跡も同
様にして加工形状への干渉を回避するために一点鎖線で
示す退避軌跡が間に必要であり、作成される加工軌跡は
あちらこちらへ飛ぶこととなる。
FIG. 12 also shows a case where a processing locus is created by sequentially adopting an outer processing reference line from an inner processing reference line and a processing direction is clockwise. In FIG. 12, the second processing reference line DL
The third machining reference lines created by offsetting 2 inward by the designated offset amount become the third machining reference lines DL31 and DL32 divided by interference (hereinafter, referred to as the third machining reference lines DL31 and DL32).
The divided processing reference line is referred to as a divided processing reference line.) In this case, as shown in FIG. 12, the processing locus which moves from the division processing reference line DL31 to the other division processing reference line DL32 passes outside the No. 1 processing reference line DL1 and interferes with the processing shape when it moves linearly. In order to avoid the interference, an evacuation locus indicated by a dashed line is necessary. In addition, in the same manner, a retreat locus indicated by a dashed line is necessary between the machining locus moving to the next inner fourth machining reference line DL4 to avoid interference with the machining shape. You will fly here.

【0005】図13は、上述した渦巻加工軌跡を作成す
る従来の自動プログラミング装置を示すブロック図であ
る。基準線入力部1から基準線データDBが入力され、
オフセット量入力部2からオフセット量OAが入力さ
れ、入力された基準線データDB及びオフセット量OA
に基づいて基準線オフセット処理部5にてオフセットさ
れた加工基準線DOが作成され、さらに加工開始点入力
部3から加工開始点PSが入力され、加工方向入力部4
から加工方向DDが入力され、入力された加工開始点P
S及び加工方向DD及び作成された加工基準線DOに基
づいて加工軌跡作成部14にて加工軌跡DTが作成さ
れ、作成された加工軌跡DTはNCデータ変換部に出力
されNCプログラムが作成されるようになっている。
FIG. 13 is a block diagram showing a conventional automatic programming device for creating the above-mentioned spiral machining trajectory. Reference line data DB is input from the reference line input unit 1,
The offset amount OA is input from the offset amount input unit 2, and the input reference line data DB and offset amount OA
, A machining reference line DO offset by the reference line offset processing unit 5 is created, a machining start point PS is input from the machining start point input unit 3, and a machining direction input unit 4 is input.
, The machining direction DD is input from the
A processing locus DT is generated by the processing locus generating unit 14 based on S, the processing direction DD, and the generated processing reference line DO, and the generated processing locus DT is output to the NC data conversion unit to generate an NC program. It has become.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
自動プログラミング装置にて作成された渦巻加工軌跡に
て加工を行なうと、図11(b)及び図12に示したよ
うに加工基準線から加工基準線への移動が加工形状へ干
渉する場合にはこの干渉を回避するために点線で示す退
避軌跡が間に必要となってしまう。この退避軌跡におい
て寄り付く際の加工は、工具の刃底による加工となり加
工上好ましくない。また、この退避軌跡の距離が長い場
合や図12に示したように退避軌跡の回数が増すと加工
効率の低下となる。
However, when machining is performed on the spiral machining trajectory created by the conventional automatic programming device, as shown in FIGS. When the movement to the line interferes with the machining shape, an evacuation locus indicated by a dotted line is required in order to avoid the interference. The processing when approaching on the retreat trajectory is processing based on the blade bottom of the tool, which is not preferable in processing. Further, when the distance of the retreat trajectory is long or when the number of retreat trajectories increases as shown in FIG. 12, the processing efficiency is reduced.

【0007】本発明は、上述のような課題を解決するた
めになされたものであり、本発明の目的は、入力された
基準線より順次オフセットした加工基準線を作成しこの
加工基準線から加工軌跡を作成する場合で、加工開始点
が第2の加工基準線から離れ判定値以上離れている場合
に今回の加工軌跡の基準となる第1の加工基準線の途中
から第2の加工基準線へ乗り移る一筆加工軌跡を作成し
たり、あるいは第2の加工基準線が分割された複数の分
割加工基準線の場合に今回の加工軌跡の基準となる第1
の加工基準線の途中から分割された第2の加工基準線へ
順次乗り移る一筆加工軌跡を作成することにより、退避
動作が間に入ることなく一筆書きで連結された加工軌跡
を容易に作成する自動プログラミング装置を提供するこ
とにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and an object of the present invention is to prepare a machining reference line sequentially offset from an input reference line and to process the machining reference line from this reference line. In the case of creating a trajectory, if the processing start point is separated from the second processing reference line by a distance equal to or greater than the determination value, a second processing reference line is set from the middle of the first processing reference line serving as the reference of the current processing trajectory. Create a single-stroke machining locus that moves on to the first machining locus, or use the first machining locus as a reference for the current machining locus when the second machining reference line is a plurality of divided machining reference lines.
By automatically creating a single-stroke machining locus that sequentially transitions to a second machining reference line that is divided from the middle of the machining reference line, it is possible to easily create a machining locus connected by a single stroke without intervening evacuation operations. It is to provide a programming device.

【0008】[0008]

【課題を解決するための手段】以上の目的を達成するた
めに、本発明の自動プログラミング装置は、入力された
基準線より順次オフセットして作成された複数の加工基
準線に沿って加工するための領域加工用NCデータを作
成する自動プログラミング装置において、第1の加工基
準線及び第1の加工基準線を指定量オフセットして作成
された第1の加工基準線と隣接する第2の加工基準線を
抽出する加工基準線抽出手段と、第1の加工基準線上の
加工開始点と第2の加工基準線との離れ具合を判定する
ための離れ判定値以上離れているかどうかを判定する離
れ判定手段と、第1の加工基準線上の加工開始点と第2
の加工基準線とが前記離れ判定値以上離れていた場合
に、第1の加工基準線と第2の加工基準線とがオフセッ
ト量以上離れ始める第1の加工基準線上の変化点を求め
る変化点計算手段と、前記変化点の中からいずれか一つ
を第2の加工基準線へ乗り移る加工軌跡の乗り移り開始
点として求める乗り移り開始点検出手段と、前記乗り移
り開始点から乗り移り先となる第2の加工基準線上の乗
り移り終了点を求める乗り移り終了点検出手段と、第1
の加工基準線上の加工開始点から第1の加工基準線、前
記乗り移り開始点、前記乗り移り終了点、第2の加工基
準線及び再び前記乗り移り開始点を通って前記加工開始
点に戻る加工軌跡を作成する一筆加工軌跡作成手段と、
を有することを特徴とする。
SUMMARY OF THE INVENTION In order to achieve the above object, an automatic programming apparatus according to the present invention is provided for processing along a plurality of processing reference lines which are sequentially offset from an input reference line. In the automatic programming device for creating the area machining NC data, a first machining reference line and a second machining standard adjacent to the first machining reference line created by offsetting the first machining reference line by a specified amount Processing reference line extracting means for extracting a line, and separation determination for determining whether or not the processing start point on the first processing reference line is separated from a second processing reference line by a separation determination value or more. Means, a processing start point on a first processing reference line, and a second
Change point for determining a change point on the first processing reference line at which the first processing reference line and the second processing reference line start to separate by the offset amount or more when the processing reference line is separated by the separation determination value or more. Calculating means, transfer start point detecting means for obtaining any one of the change points as a transfer start point of a processing locus for transferring to a second processing reference line, and a second transfer destination from the transfer start point to a transfer destination A transfer end point detecting means for obtaining a transfer end point on the processing reference line;
A first processing reference line, the transfer start point, the transfer end point, a second processing reference line from the processing start point on the processing reference line, and a processing path returning to the processing start point through the transfer start point again. A one-stroke processing locus creating means to be created,
It is characterized by having.

【0009】また、前記乗り移り開始点検出手段は、前
記加工開始点から第1の加工基準線上を加工方向に沿い
前記変化点までの距離を求め、最も長い距離となる変化
点を前記乗り移り開始点として検出し、前記乗り移り終
了点検出手段は、前記乗り移り開始点に最も近い第2の
加工基準線上の点を前記乗り移り終了点として検出する
ことを特徴とする。
Further, the transfer start point detecting means obtains a distance from the processing start point to the change point along a processing direction on a first processing reference line, and determines a change point having the longest distance to the transfer start point. And the transfer end point detecting means detects a point on a second processing reference line closest to the transfer start point as the transfer end point.

【0010】また、第2の加工基準線が分割された複数
の分割加工基準線として存在する場合、第2の加工基準
線の分割された複数の分割加工基準線の処理順を求める
分割加工基準線処理順決定手段と、求めた処理順に従い
第1の加工基準線の一部分及び第2の分割加工基準線の
内の1つを抽出する分割加工基準線抽出手段と、を有す
ることを特徴とする。
In the case where the second machining reference line exists as a plurality of divided machining reference lines, a division machining reference for obtaining the processing order of the plurality of divided machining reference lines of the second machining reference line. Line processing order determining means, and division processing reference line extracting means for extracting a part of the first processing reference line and one of the second division processing reference lines in accordance with the obtained processing order. I do.

【0011】また、前記分割線乗り移り開始点検出手段
は、第2の加工基準線の全ての分割された分割加工基準
線について分割線乗り移り開始点を求め、前記分割加工
基準線処理順決定手段は、前記加工開始点から第1の加
工基準線上を加工方向に沿い全ての前記分割線乗り移り
開始点までの距離を求め、求めた距離の短い分割線乗り
移り開始点の順を求め、求めた分割線乗り移り開始点の
順より分割加工基準線の順を処理順として求めることを
特徴とする。
The dividing line transfer start point detecting means determines a dividing line transfer start point for all divided processing reference lines obtained by dividing the second processing reference line, and the division processing reference line processing order determining means determines Calculating the distances from the machining start point to all the dividing line transition start points along the machining direction on the first machining reference line, finding the order of the dividing line transition start points having the shorter distances, It is characterized in that the order of the division processing reference line is obtained as the processing order from the order of the transfer start point.

【0012】[0012]

【作用】本発明によれば第1の加工基準線上の加工開始
点と第2の加工基準線とが離れ判定値以上離れていた場
合に、第1の加工基準線と第2の加工基準線とがオフセ
ット量以上離れ始める第1の加工基準線上の変化点を求
め、加工開始点から第1の加工基準線上を加工方向に沿
い前記変化点までの距離を求め最も長い距離となる変化
点を乗り移り開始点として検出し、第2の加工基準線上
で前記乗り移り開始点に最も近い点を乗り移り終了点と
して求め、加工開始点から第1の加工基準線及び前記乗
り移り開始点及び前記乗り移り終了点及び第2の加工基
準線及び再び前記乗り移り開始点を通って加工開始点に
戻る一筆加工軌跡を作成することができる。
According to the present invention, when the machining start point on the first machining reference line is separated from the second machining reference line by a distance equal to or greater than the judgment value, the first machining reference line and the second machining reference line are separated. And a change point on the first processing reference line at which the change point starts to exceed the offset amount, and a distance from the processing start point to the change point along the processing direction on the first processing reference line is determined. Detected as a transfer start point, a point closest to the transfer start point on the second processing reference line is determined as a transfer end point, and a first processing reference line and the transfer start point and the transfer end point from the processing start point; A one-stroke machining locus that returns to the machining start point through the second machining reference line and the transfer start point again can be created.

【0013】さらに本発明によれば、第2の加工基準線
が分割された複数の分割加工基準線の場合に、第2の加
工基準線の全ての分割された分割加工基準線について分
割線乗り移り開始点を求め、加工開始点から第1の加工
基準線上を加工方向に沿い全ての前記分割線乗り移り開
始点までの距離を求め、求めた距離の短い分割線乗り移
り開始点の順を求め、求めた分割線乗り移り開始点の順
に従い分割加工基準線の順を処理順として求め、求めた
処理順に従い処理対象範囲となる第1の加工基準線の一
部分及び第2の分割加工基準線及び加工開始点及び乗り
移り開始点を抽出し、前記抽出した処理対象データであ
る加工基準線の一部分及び分割加工基準線及び加工開始
点及び乗り移り開始点より、加工開始点から第1の加工
基準線及び前記乗り移り開始点及び前記乗り移り終了点
及び最初の分割加工基準線及び再び前記乗り移り開始点
を通って第1の加工基準線を通り次の分割加工基準線へ
順次乗り移る一筆加工軌跡を作成することができる。
Further, according to the present invention, when the second processing reference line is a plurality of divided processing reference lines, all the divided processing reference lines of the second processing reference line are transferred to the dividing line. A start point is obtained, a distance from the processing start point to all the dividing line transfer start points along the processing direction on the first processing reference line is obtained, and the order of the split line transfer start point having the shorter calculated distance is obtained. The order of the division processing reference line is determined as the processing order in accordance with the order of the divided line transfer start points, and a part of the first processing reference line and the second division processing reference line that are the processing target range are determined in accordance with the determined processing order. A point and a transfer start point are extracted, and a part of the processing reference line, the divided processing reference line, the processing start point, and the transfer start point, which are the extracted processing target data, are extracted from the processing start point to the first processing reference line and the transfer start point. It is possible to create a one-stroke machining locus that sequentially passes through the first machining reference line through the transition start point, the transition end point, the first division machining reference line, and again the transition start point to the next division machining reference line. .

【0014】[0014]

【実施例】以下、本発明に係る自動プログラミング装置
の好適な実施例について説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the automatic programming device according to the present invention will be described below.

【0015】図1及び図2は、本発明の自動プログラミ
ング装置の一例を図13に対応させて示したブロック図
であり、同様の要素には同じ符号を付け、説明を省略す
る。図1に示した本実施例においては、第1の加工基準
線及び第1の加工基準線を指定量オフセットして作成さ
れた第1の加工基準線と隣接する第2の加工基準線を抽
出する加工基準線抽出手段としての加工基準線抽出部7
と、第1の加工基準線上の加工開始点と第2の加工基準
線との離れ具合を判定するための離れ判定値以上離れて
いるかどうかを判定する離れ判定手段としての離れ判定
部8と、第1の加工基準線上の加工開始点と第2の加工
基準線とが前記離れ判定値以上離れていた場合に、第1
の加工基準線と第2の加工基準線とがオフセット量以上
離れ始める第1の加工基準線上の変化点を求める変化点
計算手段としての変化点計算部9と、前記変化点の中か
らいずれか一つを第2の加工基準線へ乗り移る加工軌跡
の乗り移り開始点として求める乗り移り開始点検出手段
としての乗り移り開始点検出部10と、前記乗り移り開
始点から乗り移り先となる第2の加工基準線上の乗り移
り終了点を求める乗り移り終了点検出手段としての乗り
移り終了点検出部11と、第1の加工基準線上の加工開
始点から第1の加工基準線、前記乗り移り開始点、前記
乗り移り終了点、第2の加工基準線及び再び前記乗り移
り開始点を通って前記加工開始点に戻る加工軌跡を作成
する一筆加工軌跡作成手段としての一筆加工軌跡作成部
6と、を有する。
FIGS. 1 and 2 are block diagrams showing an example of the automatic programming apparatus according to the present invention in correspondence with FIG. 13, in which the same elements are denoted by the same reference numerals and description thereof will be omitted. In the present embodiment shown in FIG. 1, a first processing reference line and a second processing reference line adjacent to the first processing reference line created by offsetting the first processing reference line by a specified amount are extracted. Processing line extracting unit 7 as processing line extracting means
A separation determination unit 8 as a separation determination unit that determines whether or not the processing start point on the first processing reference line is separated from the second processing reference line by a separation determination value or more; If the processing start point on the first processing reference line and the second processing reference line are separated by the separation determination value or more, the first
A change point calculating section 9 as a change point calculating means for obtaining a change point on the first processing reference line at which the first processing reference line and the second processing reference line start to separate from each other by an offset amount or more; A transfer start point detecting unit 10 as a transfer start point detecting means for obtaining one as a transfer start point of a processing locus for transferring to the second processing reference line, and a second processing reference line which is a transfer destination from the transfer start point A transfer end point detection unit 11 as a transfer end point detecting means for obtaining a transfer end point; a processing start point on the first processing reference line to a first processing reference line; the transfer start point; the transfer end point; And a single-stroke machining locus creating unit 6 as a single-stroke machining locus creating means for creating a machining locus returning to the machining start point through the machining reference line and the transfer start point again.

【0016】基準線入力部1から入力された基準線デー
タDB及びオフセット量入力部2から入力されたオフセ
ット量OAに基づいて基準線オフセット処理部5にてオ
フセットされた加工基準線DOが作成される。作成され
た加工基準線DO及び一筆加工軌跡作成部6にて作成さ
れた直前の加工基準線(例えば処理対象が第2の加工基
準線であれば第1の加工基準線)までの一筆加工軌跡D
Tに基づいて加工基準線抽出部7において第1の加工基
準線と隣接する第2の加工基準線が処理対象データDL
として抽出される。抽出された処理対象データDL及び
加工開始点入力部3から入力された加工開始点PSより
離れ判定部8において加工開始点PSが第2の加工基準
線DOと離れているかどうかの判定結果DRが作成さ
れ、判定結果DRに基づいて変化点計算部9において第
1の加工基準線が第2の加工基準線とオフセット量以上
離れ始める変化点DCを求める。求めた変化点DCに基
づいて乗り移り開始点検出部10において乗り移り開始
点STを求め、求めた乗り移り開始点STに基づいて乗
り移り終了点検出部11において乗り移り終了点EDを
求める。この求めた乗り移り終了点EDに基づいて一筆
加工軌跡作成部6において一筆加工軌跡DTが作成さ
れ、作成された一筆加工軌跡DTがNCデータ変換部に
出力されるようになっている。
Based on the reference line data DB input from the reference line input unit 1 and the offset amount OA input from the offset amount input unit 2, a processing reference line DO offset by the reference line offset processing unit 5 is created. You. The created processing reference line DO and the one-stroke processing locus up to the immediately preceding processing reference line (for example, the first processing reference line if the processing target is the second processing reference line) created by the one-stroke processing locus creating unit 6 D
The second processing reference line adjacent to the first processing reference line in the processing reference line extracting unit 7 based on T
Is extracted as The determination unit 8 determines whether or not the extracted processing target data DL and the processing start point PS input from the processing start point input unit 3 are separated from the second processing reference line DO by the determination unit 8. Based on the determination result DR, the change point calculation unit 9 obtains a change point DC at which the first processing reference line starts to be separated from the second processing reference line by an offset amount or more. The transfer start point ST is obtained by the transfer start point detection unit 10 based on the obtained change point DC, and the transfer end point ED is obtained by the transfer end point detection unit 11 based on the obtained transfer start point ST. The single-stroke machining locus DT is created in the single-stroke machining locus creating unit 6 based on the obtained transfer end point ED, and the created single-stroke machining locus DT is output to the NC data conversion unit.

【0017】更に、図2は、図1に示した装置に対し、
分割された複数の加工基準線をも処理可能とする構成を
示したブロック図である。図2においては、第2の加工
基準線の分割された複数の分割加工基準線の処理順を求
める分割加工基準線処理順決定手段としての分割加工基
準線処理順決定部12と、求めた処理順に従い第1の加
工基準線の一部分及び第2の分割加工基準線の内の1つ
を抽出する分割加工基準線抽出手段としての分割加工基
準線抽出部13と、を具備することが図1と異なるもの
である。分割加工基準線処理順決定部12は、一筆加工
軌跡作成部6にて作成された一筆加工軌跡DT及び基準
線オフセット処理部5にて作成された加工基準線DOに
基づき、分割加工基準線の処理順DJを求め、分割加工
基準線抽出部13では求めた分割加工基準線の処理順D
Jより第1の加工基準線の一部分及び第2の分割加工基
準線の内の1つ及び加工開始点及び乗り移り開始点を処
理対象データDSとして抽出するようになっている。
FIG. 2 is a schematic diagram of the device shown in FIG.
FIG. 4 is a block diagram showing a configuration that can process even a plurality of divided processing reference lines. In FIG. 2, a division processing reference line processing order determination unit 12 as a division processing reference line processing order determination unit that determines the processing order of a plurality of divided processing reference lines obtained by dividing the second processing reference line, FIG. 1 includes a division processing reference line extracting unit 13 as division processing reference line extracting means for extracting a part of the first processing reference line and one of the second division processing reference lines in order. Is different. Based on the single-stroke processing locus DT created by the single-stroke processing locus creating unit 6 and the processing reference line DO created by the reference line offset processing unit 5, the division processing reference line processing order determination unit 12 determines The processing order DJ is determined, and the divided processing reference line extracting unit 13 determines the processing order D of the determined divided processing reference line.
From J, a part of the first processing reference line and one of the second divided processing reference lines, the processing start point and the transfer start point are extracted as the processing target data DS.

【0018】このような構成において、本実施例におけ
る動作を図3乃至図6のフローチャート及び図7及び図
8の説明図で説明する。始めに第2の加工基準線を持た
ない場合の本実施例における動作を図7を用いて説明す
る。なお、以下に示す処理は、加工基準線抽出部7、離
れ判定部8、変化点計算部9、乗り移り開始点検出部1
0、乗り移り終了点検出部11及び一筆加工軌跡作成部
6において行なわれるが、基準線オフセット処理部5で
行なわれる、基準線に基づき内側にオフセットした加工
基準線を作成する方法は既にあり、本実施例では説明は
省略する。
In such a configuration, the operation of this embodiment will be described with reference to the flowcharts of FIGS. 3 to 6 and the explanatory diagrams of FIGS. 7 and 8. First, the operation in the present embodiment when there is no second processing reference line will be described with reference to FIG. The processing described below includes a processing reference line extraction unit 7, a separation determination unit 8, a change point calculation unit 9, a transfer start point detection unit 1
0, which is performed in the transfer end point detecting unit 11 and the one-stroke processing trajectory creating unit 6, but there is already a method of creating a processing reference line offset inward based on the reference line, performed by the reference line offset processing unit 5. The description is omitted in the embodiment.

【0019】まず、処理すべき加工基準線があるかどう
か判定するが(ステップ1)、最初は第1の加工基準線
は加工基準線DL1、第2の加工基準線は加工基準線D
L2である。図7では少なくとも加工基準線DL1があ
るので第2の加工基準線DL2が複数の分割加工基準線
か判定する(ステップ2)。図7では第2の加工基準線
DL2は分割加工基準線ではないので第1の加工基準線
DL1及び第2の加工基準線DL2を抽出し(ステップ
3)、加工開始点PS1と第2の加工基準線DL2の離
れ距離を求め求めた離れ距離が離れ判定値より大きいか
判定する(ステップ4)。図7では加工開始点PS1と
第2の加工基準線DL2の離れ距離は離れ判定値(本実
施例においてはオフセット量×約2倍)より小さいの
で、次回の、すなわち加工基準線DL2上の加工開始点
として加工開始点PS1に最も近い点PS2を求める
(ステップ5)。加工開始点PS1から第1の加工基準
線DL1に沿い加工方向(図7では右回り)に1周した
後に次の加工開始点PS2までの加工軌跡を求める(ス
テップ6)。ここで、第2の加工基準線DL2の内側に
更に他の加工基準線があるか判定するが(ステップ
7)、図7では加工基準線DL2の内側に加工基準線と
して少なくともDL3があるので、処理する第1の加工
基準線及び第2の加工基準線の番号を更新する(ステッ
プ8)。つまり、第1の加工基準線を加工基準線DL
2、また第2の加工基準線を加工基準線DL3として、
再びステップ1に戻る。
First, it is determined whether there is a processing reference line to be processed (step 1). First, the first processing reference line is the processing reference line DL1, and the second processing reference line is the processing reference line D.
L2. In FIG. 7, since there is at least the processing reference line DL1, it is determined whether the second processing reference line DL2 is a plurality of divided processing reference lines (step 2). In FIG. 7, since the second processing reference line DL2 is not a division processing reference line, the first processing reference line DL1 and the second processing reference line DL2 are extracted (step 3), and the processing start point PS1 and the second processing reference line DL2 are extracted. It is determined whether the distance obtained by calculating the distance of the reference line DL2 is larger than the distance determination value (step 4). In FIG. 7, the separation distance between the processing start point PS1 and the second processing reference line DL2 is smaller than the separation determination value (offset amount × about twice in this embodiment), so the next processing, that is, processing on the processing reference line DL2 is performed. A point PS2 closest to the processing start point PS1 is obtained as a start point (step 5). After making one round in the machining direction (clockwise in FIG. 7) from the machining start point PS1 along the first machining reference line DL1, a machining locus to the next machining start point PS2 is obtained (step 6). Here, it is determined whether there is another processing reference line inside the second processing reference line DL2 (step 7). In FIG. 7, since at least DL3 is inside the processing reference line DL2 as a processing reference line, The numbers of the first processing reference line and the second processing reference line to be processed are updated (step 8). That is, the first processing reference line is changed to the processing reference line DL.
2, and the second processing reference line as the processing reference line DL3
Return to step 1 again.

【0020】前述したのと同様に処理すべき加工基準線
があるかどうか判定し(ステップ1)、図7では少なく
とも加工基準線としてDL2があるので加工基準線DL
3が複数の分割加工基準線か判定する(ステップ2)。
図7では加工基準線DL3は分割加工基準線ではないの
で第1の加工基準線DL2及び第2の加工基準線DL3
を抽出し(ステップ3)、加工開始点PS2と加工基準
線DL3の離れ距離を求め、求めた離れ距離が離れ判定
値より大きいか判定する(ステップ4)。図7では加工
開始点PS2と第2の加工基準線DL3の離れ距離は離
れ判定値より大きくなるので、加工基準線DL3上にお
いて加工基準線DL3が第1の加工基準線DL2とオフ
セット量以上離れ始める変化点DC1、DC2、DC
3、DC4、DC5、DC6、DC7、DC8を求める
(ステップ9)。加工開始点PS2から第1の加工基準
線DL2上を加工方向に沿い、前記求めた各変化点DC
1〜DC8までの各距離を求め、求めた各距離の中で最
大長となる変化点を乗り移り開始点DST2として求め
る(ステップ10)。図7では第2の加工基準線DL3
上で乗り移り開始点DST2に最も近い点を乗り移り終
了点DED3として求め(ステップ11)、加工開始点
PS2から第1の加工基準線DL2上を加工方向に沿い
乗り移り開始点DST2までの軌跡及び乗り移り開始点
DST2から乗り移り終了点DED3までの軌跡を求め
る(ステップ12)。ここで、第2の加工基準線DL3
の内側にまだ加工基準線があるか判定するが(ステップ
13)、図7では加工基準線DL3の内側に加工基準線
として少なくともDL4があるので乗り移り終了点DE
D3を次回の加工開始点PS3に置き換え(ステップ1
4)、ステップ8と同様に処理する第1の加工基準線及
び第2の加工基準線の番号を更新する(ステップ1
5)。つまり、第1の加工基準線を加工基準線DL3、
また第2の加工基準線を加工基準線DL4として、再び
ステップ1に戻る。
It is determined whether there is a processing reference line to be processed in the same manner as described above (step 1). In FIG. 7, since there is at least DL2 as the processing reference line, the processing reference line DL
It is determined whether 3 is a plurality of divided processing reference lines (step 2).
In FIG. 7, since the processing reference line DL3 is not a divided processing reference line, the first processing reference line DL2 and the second processing reference line DL3
Is extracted (step 3), the separation distance between the processing start point PS2 and the processing reference line DL3 is obtained, and it is determined whether the obtained separation distance is larger than the separation determination value (step 4). In FIG. 7, since the separation distance between the processing start point PS2 and the second processing reference line DL3 is larger than the separation determination value, the processing reference line DL3 is separated from the first processing reference line DL2 by an offset amount or more on the processing reference line DL3. Start change points DC1, DC2, DC
3, DC4, DC5, DC6, DC7 and DC8 are obtained (step 9). From the processing start point PS2 on the first processing reference line DL2 along the processing direction, the above-mentioned calculated change points DC
Each distance from 1 to DC8 is obtained, and a change point having the maximum length among the obtained distances is obtained as a transfer start point DST2 (step 10). In FIG. 7, the second processing reference line DL3
The point closest to the transfer start point DST2 above is determined as the transfer end point DED3 (step 11), and the trajectory from the processing start point PS2 to the transfer start point DST2 along the first processing reference line DL2 along the processing direction and the start of the transfer are determined. A locus from the point DST2 to the transfer end point DED3 is obtained (step 12). Here, the second processing reference line DL3
It is determined whether or not there is still a machining reference line inside (step 13). In FIG. 7, since at least DL4 exists as a machining reference line inside machining reference line DL3, the transfer end point DE
Replace D3 with the next machining start point PS3 (Step 1)
4), the numbers of the first processing reference line and the second processing reference line to be processed in the same manner as in step 8 are updated (step 1).
5). That is, the first processing reference line is set to the processing reference line DL3,
Further, the process returns to step 1 again with the second processing reference line as the processing reference line DL4.

【0021】前述したのと同様に処理すべき加工基準線
があるかどうか判定し(ステップ1)、図7では少なく
とも加工基準線としてDL3があるので第2の加工基準
線DL4が複数の分割加工基準線か判定する(ステップ
2)。図7では加工基準線DL4は分割加工基準線では
ないので第1の加工基準線DL3及び第2の加工基準線
DL4を抽出し(ステップ3)、加工開始点PS3と加
工基準線DL4の離れ距離を求め、求めた離れ距離が離
れ判定値より大きいか判定する(ステップ4)。図7で
は加工開始点PS3と第2の加工基準線DL4の離れ距
離は離れ判定値より小さくなるので、次回の加工開始点
として加工開始点PS3に最も近い加工基準線DL4上
の点PS4を求める(ステップ5)。加工開始点PS3
から第1の加工基準線DL3に沿い加工方向(図7では
右回り)に1周した後に次の加工開始点PS4までの加
工軌跡を求める(ステップ6)。第2の加工基準線DL
4の内側にまだ加工基準線があるか判定するが(ステッ
プ7)、図7では加工基準線DL4の内側に加工基準線
がないので第2の加工基準線DL4を1周する加工軌跡
を求める(ステップ17)。
In the same manner as described above, it is determined whether there is a machining reference line to be processed (step 1). In FIG. 7, since at least the machining reference line is DL3, the second machining reference line DL4 is divided into a plurality of divided machining lines. It is determined whether the line is a reference line (step 2). In FIG. 7, since the processing reference line DL4 is not a divided processing reference line, the first processing reference line DL3 and the second processing reference line DL4 are extracted (step 3), and the separation distance between the processing start point PS3 and the processing reference line DL4. Is determined, and it is determined whether the determined separation distance is larger than the separation determination value (step 4). In FIG. 7, since the distance between the processing start point PS3 and the second processing reference line DL4 is smaller than the separation determination value, a point PS4 on the processing reference line DL4 closest to the processing start point PS3 is determined as the next processing start point. (Step 5). Processing start point PS3
Then, after making one round in the processing direction (clockwise in FIG. 7) along the first processing reference line DL3, a processing locus to the next processing start point PS4 is obtained (step 6). Second processing reference line DL
It is determined whether there is still a machining reference line inside the machining reference line 4 (step 7). However, in FIG. 7, since there is no machining reference line inside the machining reference line DL4, a machining trajectory that goes around the second machining reference line DL4 is determined. (Step 17).

【0022】ここで、乗り移り開始点を経由してきたか
判定する(ステップ18)。図7では乗り移り開始点D
ST2を経由してきているので現在点であるPS4から
加工開始点PS3を経由し乗り移り開始点DST2まで
の加工軌跡を求め(ステップ19)、乗り移り開始点D
ST2から加工基準線DL2の残りに沿い加工開始点P
S2までの加工軌跡を求め(ステップ20)、再びステ
ップ1に戻る。処理する加工基準線があるかどうか判定
し(ステップ1)、図7では次の加工基準線がないので
処理を終了する。
Here, it is determined whether the vehicle has passed the transfer start point (step 18). In FIG. 7, the transfer start point D
Since the vehicle has passed through ST2, a processing locus from PS4, which is the current point, to the transfer start point DST2 via the processing start point PS3 is determined (step 19), and the transfer start point D is obtained.
Processing start point P from ST2 along the rest of processing reference line DL2
A processing locus up to S2 is obtained (step 20), and the process returns to step 1. It is determined whether there is a processing reference line to be processed (step 1). In FIG. 7, the processing ends because there is no next processing reference line.

【0023】次に、加工基準線DLが複数の分割加工基
準線である場合における動作を図3乃至図6のフローチ
ャート及び図8の説明図で説明する。加工基準線抽出部
7、離れ判定部8、変化点計算部9、乗り移り開始点検
出部10、乗り移り終了点検出部11、分割加工基準線
処理順決定部12、分割加工基準線抽出部13及び一筆
加工軌跡作成部6では、以下の処理が行なわれる。な
お、本実施例では、分割加工線DL3(DL31、DL
32)が処理において最初に現れる分割加工基準線であ
り、そこに至るまでの処理は上記と同様なので省略す
る。この時点での第1の加工基準線は加工基準線DL
2、第2の加工基準線は加工基準線DL3である。ま
た、加工開始点PS1と点PS2及び点PS2までの加
工軌跡は求められている。
Next, the operation when the processing reference line DL is a plurality of divided processing reference lines will be described with reference to the flowcharts of FIGS. 3 to 6 and the explanatory diagram of FIG. A processing reference line extraction unit 7, a separation determination unit 8, a change point calculation unit 9, a transfer start point detection unit 10, a transfer end point detection unit 11, a division processing reference line processing order determination unit 12, a division processing reference line extraction unit 13, The following processing is performed in the single-stroke processing locus creating unit 6. In the present embodiment, the divided processing lines DL3 (DL31, DL31
Reference numeral 32) denotes a division processing reference line that appears first in the processing, and the processing up to that is the same as that described above, and a description thereof will be omitted. The first processing reference line at this time is the processing reference line DL
2. The second processing reference line is the processing reference line DL3. Further, the processing trajectories up to the processing start point PS1, the point PS2, and the point PS2 are obtained.

【0024】まず、処理すべき加工基準線があるかどう
か判定し(ステップ1)、図8では少なくとも加工基準
線としてDL2があるので加工基準線DL3が複数の分
割加工基準線か判定する(ステップ2)。図8では第2
の加工基準線DL3は、DL31とDL32とで構成さ
れる分割加工基準線である。次に、分割加工基準線の最
初の処理かどうか判定するが(ステップ21)、まだ分
割加工基準線における処理は行っていないので最初の処
理となる。加工開始点PS21と分割加工基準線DL3
1の離れ距離及び加工開始点PS21と分割加工基準線
DL32の離れ距離とを求め、求めた離れ距離が離れ判
定値より大きい分割加工基準線を求める(ステップ2
2)。図8では加工開始点PS21と分割加工基準線D
L31の離れ距離は離れ判定値より小さく、加工開始点
PS21と分割加工基準線DL32の離れ距離は離れ判
定値より大きいので、判定離れ判定値より大きいつまり
分割加工基準線DL32をまず加工対象とする。求めた
第2の分割加工基準線DL32において第2の分割加工
基準線DL32が第1の加工基準線DL2とオフセット
量以上離れ始める変化点DC1、DC2、DC3、DC
4、DC5、DC6、DC7、DC8を求める(ステッ
プ23)。加工開始点PS21から第1の加工基準線D
L2上を加工方向に沿い、前記求めた各変化点DC1〜
DC8までの各距離を求め、求めた各距離の中で最大長
となる変化点を分割線乗り移り開始点DST22として
求める(ステップ24)。また、判定離れ判定値より大
きい分割加工基準線が複数あれば、加工基準線DL2上
の加工開始点PS21から加工方向の前記求めた各分割
線乗り移り開始点までの各距離を求め、求めた各距離の
中で小さい順に分割線乗り移り開始点を求め、求めた分
割線乗り移り開始点の順より分割加工基準線の処理順を
求める(ステップ25)。図8では処理対象となる分割
加工基準線はDL32のみなので、分割加工基準線DL
32を処理し、最後に分割加工基準線DL31を処理す
る。次に、求めた分割加工基準線の処理順に従い、第1
の加工基準線の一部分及び第2の分割加工基準線の内の
1つ及び加工開始点及び乗り移り開始点を処理対象デー
タとして抽出する。つまり、分割加工基準線としては処
理順の最初のDL32を抽出し加工開始点としてはPS
21を抽出し乗り移り開始点としてはDST22を抽出
し第1加工基準線の一部分としては加工開始点PS21
から第1の加工基準線DL2に沿い乗り移り開始点DS
T22までを抽出する(ステップ26)。分割加工基準
線DL32上で乗り移り開始点DST22に最も近い点
を乗り移り終了点DED32として求め(ステップ1
1)、加工開始点PS21から第1の加工基準線DL2
上を加工方向に沿い乗り移り開始点DST22までの軌
跡及び乗り移り開始点DST22から乗り移り終了点D
ED32までの軌跡を求める(ステップ12)。次に、
分割加工基準線DL32の内側にまだ加工基準線がある
か判定し(ステップ13)、図8では分割加工基準線D
L32の内側に加工基準線がないので乗り移り終了点D
ED32から分割加工基準線DL32に沿い加工方向に
1周する加工軌跡を求め(ステップ16)、乗り移り終
了点DED32から乗り移り開始点DST22までの加
工軌跡を求め(ステップ19)、乗り移り開始点DST
22からステップ26にて抽出した第1の加工基準線D
L2の一部分の内の加工軌跡に使用されていない残りの
部分について加工軌跡を求める(ステップ20)。図8
では使用されていない部分の残りはなく加工軌跡は求め
ないで、再びステップ1に戻る。
First, it is determined whether there is a processing reference line to be processed (step 1). Since at least DL2 is a processing reference line in FIG. 8, it is determined whether the processing reference line DL3 is a plurality of divided processing reference lines (step 1). 2). In FIG. 8, the second
The processing reference line DL3 is a divided processing reference line composed of DL31 and DL32. Next, it is determined whether or not the processing is the first processing of the divided processing reference line (step 21). However, since the processing on the divided processing reference line has not been performed yet, the processing is the first processing. Processing start point PS21 and divided processing reference line DL3
1 and the separation distance between the processing start point PS21 and the division processing reference line DL32, and the division processing reference line whose calculated separation distance is larger than the separation determination value is obtained (step 2).
2). In FIG. 8, the processing start point PS21 and the division processing reference line D
The separation distance of L31 is smaller than the separation determination value, and the separation distance between the processing start point PS21 and the division processing reference line DL32 is larger than the separation determination value. Therefore, the separation processing reference line DL32 is larger than the determination separation determination value. . Change points DC1, DC2, DC3, DC at which the second divided machining reference line DL32 starts to be separated from the first machining reference line DL2 by an offset amount or more in the obtained second divided machining reference line DL32.
4. DC5, DC6, DC7 and DC8 are obtained (step 23). First machining reference line D from machining start point PS21
L2 along the processing direction, and each of the obtained change points DC1 to DC1
Each distance to DC8 is obtained, and a change point having the maximum length among the obtained distances is obtained as a dividing line transfer start point DST22 (step 24). If there are a plurality of division processing reference lines larger than the determination separation determination value, each distance from the processing start point PS21 on the processing reference line DL2 to each of the obtained division line transition start points in the processing direction is obtained. The dividing line transfer start point is obtained in ascending order of the distance, and the processing order of the division processing reference line is obtained from the obtained order of the dividing line transfer start point (step 25). In FIG. 8, since the division processing reference line to be processed is only DL32, the division processing reference line DL
32, and finally the division processing reference line DL31. Next, according to the processing order of the obtained division processing reference line, the first
A part of the processing reference line and one of the second divided processing reference lines and the processing start point and the transfer start point are extracted as processing target data. That is, the first DL32 in the processing order is extracted as the division processing reference line, and the processing start point is set to PS
21 is extracted and DST22 is extracted as the transfer start point, and the processing start point PS21 is used as a part of the first processing reference line.
Start point DS along the first processing reference line DL2
Extract up to T22 (step 26). The point closest to the transfer start point DST22 on the division processing reference line DL32 is determined as the transfer end point DED32 (step 1).
1) First machining reference line DL2 from machining start point PS21
The path along the processing direction up to the transfer start point DST22 and the transfer start point DST22 to the transfer end point D
A locus up to the ED 32 is obtained (step 12). next,
It is determined whether there is still a machining reference line inside the division machining reference line DL32 (step 13), and in FIG.
Since there is no machining reference line inside L32, the transfer end point D
From the ED 32, a processing locus that makes one round in the processing direction along the division processing reference line DL32 is obtained (step 16), a processing locus from the transfer end point DED32 to the transfer start point DST22 is obtained (step 19), and the transfer start point DST
First machining reference line D extracted from step 22 to step 26
A processing locus is obtained for the remaining portion of the part of L2 that is not used as the processing locus (step 20). FIG.
Then, there is no remaining unused portion, and no processing locus is obtained, and the process returns to step 1 again.

【0025】次に、処理する加工基準線があるかどうか
判定し(ステップ1)、図8では少なくとも分割加工基
準線DL31があるので第2の加工基準線DL31が複
数の分割加工基準線であるか判定する(ステップ2)。
図8では加工基準線DL31は分割加工基準線なので分
割加工基準線の最初の処理かどうか判定する(ステップ
21)。既に分割加工基準線DL32については処理を
行ない、分割加工基準線DL31は、分割加工基準線の
処理の最初ではないので分割加工基準線の処理が全て終
了したか判定する(ステップ27)。次に、求めた分割
加工基準線の処理順に従い第1の加工基準線の一部分及
び第2の分割加工基準線の内の1つ及び加工開始点及び
乗り移り開始点を処理対象データとして抽出する。つま
り、分割加工基準線としては処理順の最後のDL31を
抽出し加工開始点としてはPS22を抽出し乗り移り開
始点としてはDST21を抽出し第1加工基準線の一部
分としては加工開始点PS22から第1の加工基準線D
L2に沿い乗り移り開始点DST21までを抽出する
(ステップ26)。分割加工基準線DL31上で乗り移
り開始点DST21に最も近い点を乗り移り終了点DE
D31として求め(ステップ11)、加工開始点PS2
2から第1の加工基準線DL2上を加工方向に沿い乗り
移り開始点DST21までの軌跡及び乗り移り開始点D
ST21から乗り移り終了点DED31までの軌跡を求
める(ステップ12)。ここで、分割加工基準線DL3
1の内側に加工基準線があるか判定する(ステップ1
3)。図8では少なくともDL4があるので乗り移り終
了点DED31を次回の加工開始点PS31に置き換え
(ステップ14)、処理する第1の加工基準線及び第2
の加工基準線の番号を更新する(ステップ15)。つま
り、第1の加工基準線を加工基準線DL3、また第2の
加工基準線を加工基準線DL4として、再びステップ1
に戻る。
Next, it is determined whether or not there is a processing reference line to be processed (step 1). In FIG. 8, since there is at least a division processing reference line DL31, the second processing reference line DL31 is a plurality of division processing reference lines. (Step 2).
In FIG. 8, since the processing reference line DL31 is a division processing reference line, it is determined whether or not the processing is the first processing of the division processing reference line (step 21). The processing has already been performed on the division processing reference line DL32. Since the division processing reference line DL31 is not the first processing of the division processing reference line, it is determined whether or not the processing of all the division processing reference lines has been completed (step 27). Next, a part of the first processing reference line, one of the second processing reference lines, a processing start point, and a transfer start point are extracted as processing target data in accordance with the processing order of the obtained divided processing reference lines. In other words, the last DL31 in the processing order is extracted as the division processing reference line, PS22 is extracted as the processing start point, DST21 is extracted as the transfer start point, and a part of the first processing reference line is extracted from the processing start point PS22. 1 processing reference line D
Along the line L2, up to the transfer start point DST21 is extracted (step 26). The point closest to the transfer start point DST21 on the division processing reference line DL31 is the transfer end point DE.
D31 (step 11), the processing start point PS2
2 to the transfer start point DST21 along the processing direction along the first processing reference line DL2 and the transfer start point D
A trajectory from ST21 to the transfer end point DED31 is obtained (step 12). Here, the division processing reference line DL3
It is determined whether there is a machining reference line inside of Step 1 (Step 1).
3). In FIG. 8, since there is at least DL4, the transfer end point DED31 is replaced with the next machining start point PS31 (step 14), and the first machining reference line to be processed and the second machining reference line are processed.
Is updated (step 15). That is, the first processing reference line is set as the processing reference line DL3, and the second processing reference line is set as the processing reference line DL4.
Return to

【0026】処理する加工基準線があるかどうか判定し
(ステップ1)、図8では少なくとも加工基準線として
DL31があるので、次に第2の加工基準線DL4が複
数の分割加工基準線か判定する(ステップ2)。図8で
は第2の加工基準線DL4は分割加工基準線ではないの
で第1の加工基準線として分割加工基準線DL31を第
2の加工基準線としてDL4を抽出し(ステップ3)、
加工開始点PS31と第2の加工基準線DL4の離れ距
離を求め、求めた離れ距離が離れ判定値より大きいか判
定する(ステップ4)。図8では加工開始点PS31と
第2の加工基準線DL4の離れ距離は離れ判定値より小
さいので、次回の加工開始点として加工開始点PS31
に最も近い加工基準線DL4上の点PS4を求め(ステ
ップ5)、加工開始点PS31から第1の加工基準線D
L31に沿い加工方向(図8では右回り)に1周した後
に次の加工開始点PS4までの加工軌跡を求める(ステ
ップ6)。第2の加工基準線DL4の内側にまだ加工基
準線があるか判定するが(ステップ7)、図8では加工
基準線DL4の内側に加工基準線は存在しないので第2
の加工基準線DL4を1周する加工軌跡を求める(ステ
ップ17)。
It is determined whether there is a processing reference line to be processed (step 1). In FIG. 8, since there is at least the processing reference line DL31, it is next determined whether the second processing reference line DL4 is a plurality of divided processing reference lines. (Step 2). In FIG. 8, since the second processing reference line DL4 is not a division processing reference line, the division processing reference line DL31 is extracted as the first processing reference line, and the DL4 is extracted as the second processing reference line (step 3).
The distance between the processing start point PS31 and the second processing reference line DL4 is determined, and it is determined whether the determined distance is greater than the distance determination value (step 4). In FIG. 8, since the distance between the processing start point PS31 and the second processing reference line DL4 is smaller than the separation determination value, the processing start point PS31 is set as the next processing start point.
A point PS4 on the processing reference line DL4 closest to the first reference line D4 is obtained (step 5).
After making one round in the machining direction (clockwise in FIG. 8) along L31, a machining locus to the next machining start point PS4 is obtained (step 6). It is determined whether there is still a machining reference line inside the second machining reference line DL4 (step 7). However, in FIG. 8, since there is no machining reference line inside the machining reference line DL4, the second
A processing locus that makes one round of the processing reference line DL4 is obtained (step 17).

【0027】ここで、乗り移り開始点を経由してきたか
判定すると(ステップ18)、図8では乗り移り開始点
を経由してきていないので再びステップ1に戻る。処理
する加工基準線があるかどうか判定し(ステップ1)、
図8では次の加工基準線がないので処理を終了する。
Here, if it is determined whether the vehicle has passed the transfer start point (step 18), the process returns to step 1 again since the vehicle has not passed the transfer start point in FIG. It is determined whether there is a processing reference line to be processed (step 1),
In FIG. 8, the process is terminated because there is no next processing reference line.

【0028】[0028]

【発明の効果】本発明の自動プログラミング装置によれ
ば、入力された基準線より順次オフセットした加工基準
線を作成し、求めた加工基準線から渦巻加工軌跡を作成
する場合で、加工開始点が第2の加工基準線から離れ判
定値以上離れている場合に、第1の加工基準線の途中か
ら第2の加工基準線へ乗り移る一筆加工軌跡を作成する
ことが可能となる。
According to the automatic programming device of the present invention, when a machining reference line is sequentially offset from an input reference line and a spiral machining locus is created from the obtained machining reference line, the machining start point is When it is separated from the second processing reference line by a distance equal to or more than the determination value, it is possible to create a single-stroke processing locus that transitions from the middle of the first processing reference line to the second processing reference line.

【0029】また、加工基準線が分割された複数の分割
加工基準線の場合に、第1の加工基準線の途中から分割
された第2の分割加工基準線へ順次乗り移る一筆加工軌
跡を作成することが可能となる。
In the case where the machining reference line is a plurality of divided machining reference lines, a single-stroke machining locus is formed which sequentially transitions from the middle of the first machining reference line to the second divided machining reference line. It becomes possible.

【0030】これらの一筆加工軌跡にて加工することに
より工具の上からの寄り付き動作がなく工具の刃底にて
加工することがなくなる。また加工基準線から加工基準
線への移動動作に無駄がなく加工効率が向上できる。
By machining with these single-stroke machining trajectories, there is no leaning operation from above the tool, and machining is not performed at the tool bottom. Further, there is no waste in the movement operation from the processing reference line to the processing reference line, and the processing efficiency can be improved.

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

【図1】本発明に係る自動プログラミング装置の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an automatic programming device according to the present invention.

【図2】本発明に係る自動プログラミング装置の分割さ
れた加工基準線を処理しうる一実施例を示すブロック図
である。
FIG. 2 is a block diagram illustrating an embodiment of the automatic programming apparatus according to the present invention, which can process divided machining reference lines.

【図3】本実施例における一筆加工軌跡作成方法を説明
するフローチャートである。
FIG. 3 is a flowchart illustrating a single-stroke processing locus creation method according to the present embodiment.

【図4】本実施例における一筆加工軌跡作成方法を説明
するフローチャートである。
FIG. 4 is a flowchart illustrating a one-stroke processing locus creation method according to the present embodiment.

【図5】本実施例における一筆加工軌跡作成方法を説明
するフローチャートである。
FIG. 5 is a flowchart illustrating a one-stroke machining locus creation method according to the present embodiment.

【図6】本実施例における一筆加工軌跡作成方法を説明
するフローチャートである。
FIG. 6 is a flowchart illustrating a one-stroke processing locus creation method according to the present embodiment.

【図7】本実施例における一筆加工軌跡作成方法の動作
を説明するための図である。
FIG. 7 is a diagram for explaining the operation of the one-stroke machining locus creating method in the embodiment.

【図8】本実施例における一筆加工軌跡作成方法の動作
を説明するための図である。
FIG. 8 is a diagram for explaining the operation of the single-stroke machining locus creating method in the embodiment.

【図9】渦巻加工を使用したポケット加工の例を示した
図である。
FIG. 9 is a diagram showing an example of pocket machining using spiral machining.

【図10】渦巻加工を使用した等高線加工の例を示した
図である。
FIG. 10 is a diagram showing an example of contour processing using spiral processing.

【図11】(a)、(b)は、従来の渦巻加工の加工軌
跡の例を示した図である。
FIGS. 11A and 11B are diagrams illustrating an example of a machining path of conventional spiral machining.

【図12】従来の渦巻加工の加工軌跡の例を示した図で
ある。
FIG. 12 is a diagram showing an example of a processing locus of conventional spiral processing.

【図13】従来の渦巻加工の加工軌跡を作成する自動プ
ログラミング装置を示すブロック図である。
FIG. 13 is a block diagram showing a conventional automatic programming device for creating a machining path of spiral machining.

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

1 基準線入力部、2 オフセット量入力部、3 加工
開始点入力部、4 加工方向入力部、5 基準線オフセ
ット処理部、6 一筆加工軌跡作成部、7 加工基準線
抽出部、8 離れ判定部、9 変化点計算部、10 乗
り移り開始点検出部、11 乗り移り終了点検出部、1
2 分割加工基準線処理順決定部、13分割加工基準線
抽出部。
1 reference line input section, 2 offset amount input section, 3 processing start point input section, 4 processing direction input section, 5 reference line offset processing section, 6 single stroke processing locus creation section, 7 processing reference line extraction section, 8 separation determination section , 9 Change point calculation unit, 10 Transfer start point detection unit, 11 Transfer end point detection unit, 1
2 division processing reference line processing order determination unit, 13 division processing reference line extraction unit.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−93707(JP,A) 特開 平1−166104(JP,A) 特開 平3−25508(JP,A) 特開 平5−289723(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/4093 B23Q 15/00 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-2-93707 (JP, A) JP-A-1-166104 (JP, A) JP-A-3-25508 (JP, A) JP-A-5-205 289723 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G05B 19/4093 B23Q 15/00

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力された基準線より順次オフセットし
て作成された複数の加工基準線に沿って加工するための
領域加工用NCデータを作成する自動プログラミング装
置において、 第1の加工基準線及び第1の加工基準線を指定量オフセ
ットして作成された第1の加工基準線と隣接する第2の
加工基準線を抽出する加工基準線抽出手段と、 第1の加工基準線上の加工開始点と第2の加工基準線と
の離れ具合を判定するための離れ判定値以上離れている
かどうかを判定する離れ判定手段と、 第1の加工基準線上の加工開始点と第2の加工基準線と
が前記離れ判定値以上離れていた場合に、第1の加工基
準線と第2の加工基準線とがオフセット量以上離れ始め
る第1の加工基準線上の変化点を求める変化点計算手段
と、 前記変化点の中からいずれか一つを第2の加工基準線へ
乗り移る加工軌跡の乗り移り開始点として求める乗り移
り開始点検出手段と、 前記乗り移り開始点から乗り移り先となる第2の加工基
準線上の乗り移り終了点を求める乗り移り終了点検出手
段と、 第1の加工基準線上の加工開始点から第1の加工基準
線、前記乗り移り開始点、前記乗り移り終了点、第2の
加工基準線及び再び前記乗り移り開始点を通って前記加
工開始点に戻る加工軌跡を作成する一筆加工軌跡作成手
段と、 を有することを特徴とする自動プログラミング装置。
1. An automatic programming device for creating NC data for area machining for machining along a plurality of machining reference lines created sequentially offset from an input reference line, comprising: a first machining reference line; Processing reference line extracting means for extracting a second processing reference line adjacent to the first processing reference line created by offsetting the first processing reference line by a specified amount; a processing start point on the first processing reference line Determination means for determining whether or not the distance is greater than or equal to a separation determination value for determining the degree of separation between the second processing reference line and a processing start point on the first processing reference line; A change point calculating means for calculating a change point on the first processing reference line at which the first processing reference line and the second processing reference line start to separate by an offset amount or more when the distance is equal to or more than the separation determination value; From the changing point A transfer start point detecting means for obtaining one of them as a transfer start point of a processing locus for transferring to a second processing reference line; and a transfer end for obtaining a transfer end point on a second processing reference line to be a transfer destination from the transfer start point. A point detection means, a machining start point on the first machining reference line, a first machining reference line, the transfer start point, the transfer end point, a second machining reference line, and the machining start point again. An automatic programming device, comprising: a single-stroke machining locus creating means for creating a machining locus returning to a starting point.
【請求項2】 請求項1記載の自動プログラミング装置
において、 前記乗り移り開始点検出手段は、前記加工開始点から第
1の加工基準線上を加工方向に沿い前記変化点までの距
離を求め、最も長い距離となる変化点を前記乗り移り開
始点として検出し、 前記乗り移り終了点検出手段は、前記乗り移り開始点に
最も近い第2の加工基準線上の点を前記乗り移り終了点
として検出することを特徴とする自動プログラミング装
置。
2. The automatic programming device according to claim 1, wherein the transfer start point detecting means obtains a distance from the processing start point to the change point along a processing direction on a first processing reference line. A change point which is a distance is detected as the transfer start point, and the transfer end point detection means detects a point on a second processing reference line closest to the transfer start point as the transfer end point. Automatic programming device.
【請求項3】 請求項1及び2記載の自動プログラミン
グ装置において、 第2の加工基準線が分割された複数の分割加工基準線と
して存在する場合、第2の加工基準線の分割された複数
の分割加工基準線の処理順を求める分割加工基準線処理
順決定手段と、 求めた処理順に従い第1の加工基準線の一部分及び第2
の分割加工基準線の内の1つを抽出する分割加工基準線
抽出手段と、 を有することを特徴とする自動プログラミング装置。
3. The automatic programming device according to claim 1, wherein, when the second machining reference line is present as a plurality of divided machining reference lines, the plurality of divided machining reference lines are divided. Division processing reference line processing order determining means for obtaining a processing order of the division processing reference line; a part of the first processing reference line and a second processing reference line in accordance with the obtained processing order
And a division processing reference line extracting means for extracting one of the division processing reference lines.
【請求項4】 請求項3記載の自動プログラミング装置
において、 前記分割線乗り移り開始点検出手段は、第2の加工基準
線の全ての分割された分割加工基準線について分割線乗
り移り開始点を求め、 前記分割加工基準線処理順決定手段は、前記加工開始点
から第1の加工基準線上を加工方向に沿い全ての前記分
割線乗り移り開始点までの距離を求め、求めた距離の短
い分割線乗り移り開始点の順を求め、求めた分割線乗り
移り開始点の順より分割加工基準線の順を処理順として
求めることを特徴とする自動プログラミング装置。
4. The automatic programming device according to claim 3, wherein the dividing line transition start point detecting means obtains a dividing line transition start point for all divided division processing reference lines of the second processing reference line. The division processing reference line processing order determination means obtains a distance from the processing start point to all the division line transition start points along the first processing reference line in the processing direction, and starts the division line transition of a short distance obtained. An automatic programming device, wherein the order of points is determined, and the order of the division processing reference line is determined as the processing order from the order of the determined division line transfer start point.
JP07054626A 1995-03-14 1995-03-14 Automatic programming device Expired - Fee Related JP3110971B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07054626A JP3110971B2 (en) 1995-03-14 1995-03-14 Automatic programming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07054626A JP3110971B2 (en) 1995-03-14 1995-03-14 Automatic programming device

Publications (2)

Publication Number Publication Date
JPH08249037A JPH08249037A (en) 1996-09-27
JP3110971B2 true JP3110971B2 (en) 2000-11-20

Family

ID=12975968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07054626A Expired - Fee Related JP3110971B2 (en) 1995-03-14 1995-03-14 Automatic programming device

Country Status (1)

Country Link
JP (1) JP3110971B2 (en)

Also Published As

Publication number Publication date
JPH08249037A (en) 1996-09-27

Similar Documents

Publication Publication Date Title
JP2019197367A (en) Plan creation device
US5595463A (en) Area machining method
JP3110971B2 (en) Automatic programming device
JP2001034319A (en) Locus controller
JPH1166238A (en) Handwritten character recognition method
JPH0650527B2 (en) Real-time handwriting trajectory recognition method
JP2000148788A (en) Device and method for extracting title area from document image and document retrieving method
JP2629759B2 (en) Data generation method for numerical control machining
EP0148947A1 (en) Data input method
JPH05104396A (en) Method of forming numerical control information
JP2003011037A (en) Work machining method using nc machining tool and tool path data creating method used in the machining method
JP2000039909A (en) Numerical control information creating device
JP3123340B2 (en) NC data automatic creation device
JPH0410671B2 (en)
JP3093366B2 (en) Image processing method and apparatus
JPH10134144A (en) Recognition method for drawing
JPH03266102A (en) Numerical controller
JP2727975B2 (en) Handwritten symbol recognition system
JP2001125618A (en) Device and method for nc data generation and storage medium
JPS6357829B2 (en)
JPH10307615A (en) Automatic generating method for machining path of recessed groove position for cam
JP3264054B2 (en) NC statement creation method
JP2871991B2 (en) Processing path generator
JP2614356B2 (en) Closed figure extraction method
JPH09245121A (en) Character recognition device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees