JPH07104699B2 - Area processing method - Google Patents

Area processing method

Info

Publication number
JPH07104699B2
JPH07104699B2 JP63308060A JP30806088A JPH07104699B2 JP H07104699 B2 JPH07104699 B2 JP H07104699B2 JP 63308060 A JP63308060 A JP 63308060A JP 30806088 A JP30806088 A JP 30806088A JP H07104699 B2 JPH07104699 B2 JP H07104699B2
Authority
JP
Japan
Prior art keywords
shape
offset curve
intersection
area
point
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
JP63308060A
Other languages
Japanese (ja)
Other versions
JPH02153404A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63308060A priority Critical patent/JPH07104699B2/en
Publication of JPH02153404A publication Critical patent/JPH02153404A/en
Publication of JPH07104699B2 publication Critical patent/JPH07104699B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、数値制御工作機械における領域加工方法に
関するもので、特に、外形曲線とその外形曲線の内部に
存在する少なくとも2つの閉曲線とで挟まれた領域を加
工する領域加工方法に関するものである。
Description: TECHNICAL FIELD The present invention relates to a region machining method for a numerically controlled machine tool, and in particular, it is sandwiched between a contour curve and at least two closed curves existing inside the contour curve. The present invention relates to an area processing method for processing an opened area.

[従来の技術] 一般に、数値制御加工としては、直線と円弧よりなる外
形曲線(OLC)で囲まれた領域内部の所定の深さに刳貫
く加工や、領域内部を形彫りする加工がある。かかる加
工においては、第13図の従来の領域加工方法を示す説明
図の(a)に示すように、一方向(実線矢印方向)に第
(i-1)番目の切削通路(PTi-1)に沿って加工を行な
い、切削完了後、工具を所定量上昇させ、次いで、前記
工具を点線矢印方向に次の第(i)番目の切削通路(PT
i)の加工開始点(Ps)の真上に位置決めし、しかる
後、工具を加工開始点(Ps)まで降ろし、第(i)番目
の切削通路(PTi)に沿って、実線矢印方向に工具を移
動させて加工を行ない、以後、同一方向切削を繰り返す
領域加工方法が実施されている。
[Prior Art] Generally, as numerical control processing, there are processing of hollowing out a predetermined depth inside a region surrounded by an outline curve (OLC) consisting of straight lines and circular arcs, and carving the inside of the region. In such machining, as shown in (a) of the explanatory view showing the conventional area machining method of FIG. 13, the (i-1) th cutting passage (PTi-1) is formed in one direction (solid arrow direction). After cutting is completed, the tool is raised by a predetermined amount, and then the tool is moved in the direction of the dotted arrow to the next (i) -th cutting path (PT).
Position the tool just above the machining start point (Ps) in i), then lower the tool to the machining start point (Ps), and along the (i) th cutting path (PTi) in the direction of the solid arrow. Is carried out to move, and thereafter, a region processing method for repeating cutting in the same direction is carried out.

また、別の領域加工方法としては、第13図(b)に示す
ように、第(i-1)番目の切削通路(PTi-1)に沿った切
削終了後、加工終点(Pe)から次の第(i)番目の切削
通路(PTi)の加工開始点(Ps)まで工具を移動させ、
しかる後、第(i)番目の切削通路(PTi)に沿って、
矢印方向に往復切削する領域加工方法も実施されてい
る。
Further, as another area processing method, as shown in FIG. 13 (b), after cutting along the (i-1) th cutting passage (PTi-1) is completed, the processing is started from the processing end point (Pe) to the next. Move the tool to the machining start point (Ps) of the (i) th cutting passage (PTi) of
Then, along the (i) th cutting passage (PTi),
A region processing method of performing reciprocal cutting in the direction of the arrow is also implemented.

ところで、第14図の従来の加工領域を示す説明図及び第
15図の前記第14図に示す領域の加工方法を示す動作の説
明図に示すように、外形曲線(OLC)と前記外形曲線(O
LC)の内部の閉曲線(INC)とで挾まれた領域(AR;斜線
部)の加工が要求される場合がある。
By the way, an explanatory view showing the conventional processing area in FIG. 14 and
As shown in the explanatory diagram of the operation showing the processing method of the region shown in FIG. 14 of FIG. 15, the outline curve (OLC) and the outline curve (O
In some cases, it is required to process the area (AR; shaded area) sandwiched by the closed curve (INC) inside LC).

例えば、閉曲線(INC)で囲まれた領域(以後、島部(I
RD)という)に他の部品との結合用ボルト穴を形成した
り、或いは、島部(IRD)を別の工具を用いて領域(A
R)より深く刳貫く必要がある場合等がそれである。
For example, a region surrounded by a closed curve (INC) (hereinafter, island (I
RD)) to form bolt holes for connection with other parts, or to use islands (IRD) with another tool for area (A
R) This is the case when it is necessary to penetrate deeper.

ここで、第16図の従来の領域加工方法のオフセット曲線
形状を示す説明図に示すように、外形曲線(OLC)の内
部に2つの島部(IRD1),(IRD2)が互いに接近して存
在し、各島部(IRD1),(IRD2)を特定する閉曲線(IN
C1),(INC2)を所定量(例えば、工具径「ra」と仕上
げ代「t」を加算した値)オフセットしたオフセット曲
線形状(INF1),(INF2)が交差するような場合は、次
のような方法をとる。
Here, as shown in the explanatory view showing the offset curve shape of the conventional area processing method of FIG. 16, two island portions (IRD1) and (IRD2) exist close to each other inside the outline curve (OLC). The closed curve (IN that specifies each island (IRD1), (IRD2)
If the offset curve shapes (INF1) and (INF2) obtained by offsetting C1) and (INC2) by a predetermined amount (for example, the value obtained by adding the tool radius "ra" and the finishing allowance "t") intersect, Take such a method.

第17図は上記第16図に示すオフセット曲線形状の従来の
領域方法を示す説明図である。
FIG. 17 is an explanatory diagram showing a conventional area method of the offset curve shape shown in FIG.

外形曲線(OLC)と、前記外形曲線(OLC)の内部に存在
する少なくとも2つの閉曲線(INC1),(INC2)とで挾
まれた斜線部の領域(AR)を加工する加工方法は、各閉
曲線(INC1),(INC2)からその外側に工具径「ra」に
応じてオフセットしたオフセット曲線形状(INF1),
(INF2)を求めるステップ、オフセット曲線形状(INF
1),(INF2)同士が交差するかを判別するステップ、
オフセット曲線形状(INF1),(INF2)が交差すると
き、交差する第1のオフセット曲線形状(INF1)により
囲まれる領域と第2のオフセット曲線形状(IRD2)によ
り囲まれる領域の共通領域(CSA)を形成する第1、第
2のオフセット曲線形状(INF1′),(INF2′)を除去
してなる合成オフセット曲線形成(COFC)を求めるステ
ップ、工具中心が合成オフセット曲線形成(COFC)の内
側に進入しないように領域加工するステップによってそ
れらが処理される。
The processing method for processing the shaded area (AR) between the outline curve (OLC) and at least two closed curves (INC1) and (INC2) existing inside the outline curve (OLC) is as follows. Offset curve shape (INF1) offset from (INC1), (INC2) to the outside according to the tool diameter "ra",
(INF2) step, offset curve shape (INF
1), a step of determining whether (INF2) intersects each other,
When the offset curve shapes (INF1) and (INF2) intersect, the common area (CSA) of the area surrounded by the intersecting first offset curve shape (INF1) and the area surrounded by the second offset curve shape (IRD2) Step of obtaining a combined offset curve formation (COFC) formed by removing the first and second offset curve shapes (INF1 ′) and (INF2 ′) forming the tool, the tool center is inside the combined offset curve formation (COFC) They are processed by the step of processing the area so that it does not enter.

第18図は、例えば、特開昭60−127952号公報に示された
従来の領域加工方法を実現する数値制御装置を示す全体
構成図でる。また、第19図及び第20図は従来の領域加工
方法を示すフローチャートである。
FIG. 18 is an overall configuration diagram showing a numerical controller for implementing the conventional area processing method disclosed in, for example, Japanese Patent Laid-Open No. 60-127952. Also, FIGS. 19 and 20 are flowcharts showing a conventional area processing method.

図において、(101)は操作盤、(102)は中央演算回路
(CPU)、(103)は数値制御(NC)データ読取り装置、
(104)は数値制御テープ、(105)は中央演算回路(10
2)をコントロールして各種処理を行なうためのシステ
ムプログラムが入ったROM、(106)はデータ入出力装
置、(107)は工作機械、(108)はパルス分配器、(10
9X),(109Y),(109Z)は各々X軸、Y軸、Z軸のサ
ーボ回路(110X),(110Y),(110Z)は各軸のサーボ
モータ、(111),(112),(113)はプログラムを格
納したり、ワーク用に使用するRAMメモリである。
In the figure, (101) is a control panel, (102) is a central processing circuit (CPU), (103) is a numerical control (NC) data reader,
(104) is a numerical control tape, (105) is a central processing circuit (10
ROM containing system programs for controlling 2) to perform various processes, (106) data input / output device, (107) machine tool, (108) pulse distributor, (10)
9X), (109Y), and (109Z) are X-axis, Y-axis, and Z-axis servo circuits (110X), (110Y), and (110Z) are servo motors for each axis, (111), (112), ( 113) is a RAM memory that stores programs and is used for work.

以下、第19図及び第20図に従って従来の領域加工方法を
説明する。
Hereinafter, a conventional area processing method will be described with reference to FIGS. 19 and 20.

ステップ201で操作盤(101)上のサイクルスタート釦を
押圧すれば、中央演算回路(102)はステップ202で数値
制御データ読取り装置(103)により数値制御テープ(1
04)から1ブロック分の数値制御データを読み取らす。
なお、数値制御テープ(104)には、通常の通路デー
タ、G機能命令データ、M−,S−,T−機能命令データ等
に加えて領域加工用のデータが記録されており、数値制
御プログラムの末尾にはプログラムエンドを示すMコー
ド「M02」が記録されている。また、領域加工用データ
の始めには、以降のデータが領域加工用データであるこ
とを示す領域加工指令が記録され、領域加工用データの
終りには、領域加工用データの終りを示すコードが記録
されている。
When the cycle start button on the operation panel (101) is pressed in step 201, the central processing circuit (102) causes the numerical control data reading device (103) to operate the numerical control tape (1) in step 202.
Read one block of numerical control data from 04).
The numerical control tape (104) has data for area processing recorded in addition to normal passage data, G function command data, M-, S-, T-function command data, etc. At the end of the, M code "M02" indicating the program end is recorded. At the beginning of the area processing data, an area processing command indicating that the following data is area processing data is recorded, and at the end of the area processing data, a code indicating the end of the area processing data is recorded. It is recorded.

ステップ203で中央演算回路(102)は、ROM(105)に記
憶されている制御プログラムの制御により読取った数値
制御データが、プログラムエンドを示す「M02」である
かどうかを判別し、「M02」であれば数値制御処理を終
了する。
In step 203, the central processing unit (102) determines whether or not the numerical control data read by the control of the control program stored in the ROM (105) is "M02" indicating the program end, and "M02" If so, the numerical control process ends.

一方、ステップ204で読取った数値制御データがプログ
ラムエンドを示す「M02」でなければ、前記数値制御デ
ータが領域加工指令であるかどうかを判別する。数値制
御データが領域加工指令でなければ、ステップ205で中
央演算回路(102)は通常の数値制御処理を実行する。
例えば、数値制御データがM−,S−,T−機能命令であれ
ば、これらを数値制御装置と機械間のインタフェース回
路として機能するデータ入出力装置(106)を介して工
作機械(107)に出力し、前記工作機械(107)からM
−,S−,T−機能命令に対する処理完了を示す完了信号が
発生したとき、数値制御データ読取り装置(103)によ
り次の数値制御データを読み取らせる。
On the other hand, if the numerical control data read in step 204 is not “M02” indicating the program end, it is determined whether the numerical control data is a region machining command. If the numerical control data is not the area processing command, the central processing circuit (102) executes normal numerical control processing in step 205.
For example, if the numerical control data are M-, S-, T-function commands, these are sent to the machine tool (107) via a data input / output device (106) that functions as an interface circuit between the numerical control device and the machine. Output from the machine tool (107) to M
When a completion signal indicating the completion of processing for the-, S-, T-function instructions is generated, the numerical control data reading device (103) reads the next numerical control data.

また、数値制御データが通路データであれば、以下の通
路制御処理を実行する。すなわち、各軸のインクリメン
タル値「Xi,Yi,Zi」を求め、前記インクリメンタル値と
指令送り速度「F」とから、各軸方向の速度成分「Fx,F
y,Fz」を次式 より求め、しかる後予め定められている時間ΔT秒(=
8m sec)の間に各軸方向に移動すべき移動量「ΔX,ΔY,
ΔZ」を次式 ΔX=Fx・ΔT ・・・(2a) ΔY=Fy・ΔT ・・・(2b) ΔZ=Fz・ΔT ・・・(2c) より求め、これら「ΔX,ΔY,ΔZ」を時間 ΔT秒毎にパルス分配器(108)に出力する。パルス分
配器(108)は、入力データ「ΔX,ΔY,ΔZ」に基づい
て同時3軸のパルス分配演算を行なって、パルス「Xp,Y
p,Zp」を発生させ、前記分配パルスを各軸のサーボ回路
(109X),(109Y),(109Z)に入力し、サーボモータ
(110X),(110Y),(110Z)を回転する。これによ
り、工具はワークに対し相対的に目標位置に向けて移動
される。
If the numerical control data is passage data, the passage control processing described below is executed. That is, the incremental value “Xi, Yi, Zi” of each axis is obtained, and the speed component “Fx, F” in each axis direction is calculated from the incremental value and the command feed speed “F”.
y, Fz '' Then, a predetermined time ΔT seconds (=
The amount of movement "ΔX, ΔY,
ΔZ ”is obtained from the following formula ΔX = Fx · ΔT (2a) ΔY = Fy · ΔT (2b) ΔZ = Fz · ΔT (2c), and these“ ΔX, ΔY, ΔZ ”are obtained. Output to the pulse distributor (108) every time period ΔT seconds. The pulse distributor (108) performs simultaneous pulse distribution calculation of three axes based on the input data “ΔX, ΔY, ΔZ” to obtain the pulse “Xp, Y”.
p, Zp ”is generated, the distributed pulse is input to the servo circuits (109X), (109Y), (109Z) of each axis, and the servo motors (110X), (110Y), (110Z) are rotated. As a result, the tool is moved toward the target position relative to the work.

また、中央演算回路(102)は、ΔT秒毎にワーキング
メモリ(112)に記憶されている各軸方向現在位置「Xa,
Ya,Za」を、次式により更新する(符号は移動方向に依
存する)。
In addition, the central processing circuit (102) is arranged so that each axial direction current position “Xa, stored in the working memory (112) every ΔT seconds.
Ya, Za ”is updated by the following formula (the sign depends on the moving direction).

Xa±ΔX→Xa ・・・(3a) Ya±ΔY→Ya ・・・(3b) Za±ΔZ→Za ・・・(3c) さらに、中央演算回路(102)は同様にΔT秒毎にワー
キングメモリ(112)に記憶されている残移動量「Xr、Y
r、Zr(Xr、Yr、Zrの初期値はインクレメンタル値Xi、Y
i、Ziである)」を次式により更新する。
Xa ± ΔX → Xa ・ ・ ・ (3a) Ya ± ΔY → Ya ・ ・ ・ (3b) Za ± ΔZ → Za ・ ・ ・ (3c) Further, the central processing circuit (102) similarly has working memory every ΔT seconds. The remaining movement amount stored in (112) "Xr, Y
r, Zr (Initial values of Xr, Yr, Zr are incremental values Xi, Y
i, Zi) ”is updated by the following equation.

Xr−ΔX→Xr ・・・(4a) Yr−ΔY→Yr ・・・(4b) Zr−ΔZ→Zr ・・・(4c) そして、中央演算回路(102)は Xr=Yr=Zr=0 ・・・(5) となれば、数値制御データ読取り装置(103)をして、
次の数値制御データを読み取らせる。
Xr−ΔX → Xr ・ ・ ・ (4a) Yr−ΔY → Yr ・ ・ ・ (4b) Zr−ΔZ → Zr ・ ・ ・ (4c) Then, the central processing circuit (102) has Xr = Yr = Zr = 0. .. (5) If the numerical control data reader (103),
Read the next numerical control data.

ステップ204の判別処理において、数値制御データが領
域加工命令であれば、ステップ206で領域加工データの
終りを示すコードが読み出されるまで、数値制御データ
読取り装置(103)をして領域加工データを読み取ら
せ、RAM(111)に格納する。
In the discrimination processing of step 204, if the numerical control data is the area processing command, the numerical control data reading device (103) reads the area processing data until the code indicating the end of the area processing data is read in step 206. And store in RAM (111).

なお、領域加工データは、 領域の外形曲線(OLC)を特定するデータ、 外形曲線内部の2つの閉曲線(INC1),(INC2)を
特定するデータ、 切削方向データ(第17図のA矢印方向またはD矢印
方向のいずれかの方向に工具を移動させて切削するかを
示すデータ)、 切込み方向データ(第17図のB矢印方向または、C
矢印方向のいずれかの方向に切削通路(PTi)をシフト
させるかを示すデータ)、 切込み方向のピッチ量(切削通路(PTi)のシフト
値)「L」、 切削速度、 切込み方向始点「Ps」、 切込み方向終点「Pe」、 アプローチ平面の位置、 等である。
The area processing data is the data that specifies the outline curve (OLC) of the area, the data that specifies the two closed curves (INC1) and (INC2) inside the outline curve, and the cutting direction data (the direction of the arrow A in Fig. 17 or Data indicating whether to cut by moving the tool in one of the D arrow directions), cutting direction data (B arrow direction or C in FIG. 17)
Data indicating whether the cutting passage (PTi) is to be shifted in the direction of the arrow), pitch amount in the cutting direction (shift value of cutting passage (PTi)) "L", cutting speed, cutting direction start point "Ps" , End of cutting direction “Pe”, position of approach plane, etc.

以下においては、切削方向を「−X」方向、切込み方向
を「+Y」方向、アプローチ平面を「XY」平面に平行で
高さ「Za」、切込み方向始点「Ps」を「Xs、Ys」、切込
み方向終点「Pe」を「Xe、Ye」とする。
In the following, the cutting direction is the “−X” direction, the cutting direction is the “+ Y” direction, the approach plane is parallel to the “XY” plane, the height is “Za”, the cutting direction starting point “Ps” is “Xs, Ys”, The end point "Pe" in the cutting direction is "Xe, Ye".

領域加工データの読取りが終了すれば、中央演算回路
(102)は、ステップ208で外形曲線(OLC)から工具半
径「ra」と仕上げ代「t」を加算した距離「D(=ra+
t)」だけ内側にオフセットしたオフセット曲線形状
(OFC)と、閉曲線(INC1),(INC2)から距離「D」
だけ外側にオフセットしたオフセット曲線形状(INF
1),(INF2)を演算してRAM(111)に記憶する。な
お、前記距離「D」は工具半径「ra」と等しくしてもよ
い。また、工具半径「ra」は、工具番号と工具半径との
対応する記憶するオフセットメモリ(113)から、指令
工具番号に対応する半径値を読み取ることにより得られ
る。
When the reading of the area machining data is completed, the central processing circuit (102) adds the tool radius "ra" and the finishing allowance "t" from the contour curve (OLC) in step 208 to obtain a distance "D (= ra +
Offset curve shape (OFC) offset inward by "t)" and distance "D" from closed curves (INC1), (INC2)
Offset curve shape (INF
1) and (INF2) are calculated and stored in RAM (111). The distance "D" may be equal to the tool radius "ra". Further, the tool radius “ra” is obtained by reading the radius value corresponding to the command tool number from the offset memory (113) which stores the tool number and the tool radius corresponding to each other.

前記オフセット曲線形状(OFC)とオフセット曲線形状
(INF1),(INF2)は、以下の処理により求められる。
The offset curve shape (OFC) and the offset curve shapes (INF1) and (INF2) are obtained by the following processing.

すなわち、第21図の従来の領域加工方法におけるオフセ
ット曲線形状を求める処理を示す説明図に示すように、
外形曲線(OLC)を特定する2つの直線を(S1),(S
2)とすれば、直線(S1),(S2)からそれぞれ距離
「D」だけ離れた直線(S1′),(S2′)を求め、前記
直線(S1′),(S2′)の交点(P2)がオフセット曲線
形状(OFC)を特定する1つのポイントとなる。したが
って、以下同様に交点を求め、RAM(111)に記憶すれば
オフセット曲線形状(OFC)が求まり、同様にオフセッ
ト曲線形状(INF1),(INF2)が求まることになる。
That is, as shown in the explanatory view showing the process of obtaining the offset curve shape in the conventional area processing method of FIG.
Two straight lines that specify the outline curve (OLC) are (S1), (S
2), the straight lines (S1 ′) and (S2 ′) separated from the straight lines (S1) and (S2) by the distance “D” are obtained, and the intersection points (S1 ′) and (S2 ′) P2) is one of the points to specify the offset curve shape (OFC). Therefore, if the intersection points are similarly obtained and stored in the RAM (111), the offset curve shape (OFC) is obtained, and similarly the offset curve shapes (INF1) and (INF2) are obtained.

前記オフセット曲線形状(OFC)とオフセット曲線形状
(INF1),(INF2)が求まれば、ステップ209で中央演
算回路(102)は、これらオフセット曲線形状データを
外形曲線、各閉曲線を特定するデータと共に、デイスプ
レイ装置(114)に出力する。
When the offset curve shape (OFC) and the offset curve shapes (INF1) and (INF2) are obtained, the central processing circuit (102) determines the offset curve shape data together with the data for specifying the contour curve and each closed curve in step 209. , To the display device (114).

次いで、中央演算回路(102)は、内部的にオフセット
曲線形状(INF1)とオフセット曲線形状(INF2)が交差
するか否かの判別に入る。
Next, the central processing circuit (102) internally determines whether or not the offset curve shape (INF1) and the offset curve shape (INF2) intersect.

すなわち、オフセット曲線形状(INF1),(INF2)は、
共に多数の直線と円弧(以後、直線、円弧を要素とい
う)により構成されているから、第22図の従来の領域加
工方法における交差するオフセット曲線形状を示す説明
図に示すように、オフセット曲線形状(INF1)は要素
(E11),(E12)……(E1n)により構成され、オフセ
ット曲線形状(INF2)は要素(E21),(E22)……(E2
m)により構成されている。
That is, the offset curve shapes (INF1) and (INF2) are
Since both are composed of a large number of straight lines and arcs (hereinafter, straight lines and arcs are called elements), as shown in the explanatory diagram showing the intersecting offset curve shapes in the conventional area processing method of FIG. (INF1) is composed of elements (E11), (E12) ... (E1n), and the offset curve shape (INF2) is elements (E21), (E22) ....... (E2
m).

したがって、まず、ステップ210で「1→i」、「1→
j」とし、次いで、ステップ211でオフセット曲線形状
(INF1)の第「i」要素「E1i」がオフセット曲線形状
(INF2)の第「j」要素「E2j」に交差するかいなかを
判別する。交差しなければステップ212で「j+1→
j」とし、ステップ213で「j」とオフセット曲線形状
(INF2)の要素数「m」との大小を比較する。そして、
「j≦m」であれば、ステップ211以降の処理を繰返
す。ステップ213の大小比較において、「j>m」とな
れば、ステップ214で「1→j、i+1→i」として、
ステップ215で「i」とオフセット曲線形状(INF1)の
要素数「n」との大小を比較する。そして、「i≦n」
であれば、ステップ211以降の処理を繰返す。
Therefore, first, in step 210, “1 → i”, “1 → i”
Then, in step 211, it is determined whether the “i” th element “E1i” of the offset curve shape (INF1) intersects the “j” th element “E2j” of the offset curve shape (INF2). If they do not intersect, in step 212, “j + 1 →
In step 213, the size of “j” is compared with the number of elements “m” of the offset curve shape (INF2). And
If “j ≦ m”, the processing from step 211 onward is repeated. If “j> m” in the magnitude comparison in step 213, “1 → j, i + 1 → i” in step 214,
In step 215, the size of “i” and the number of elements “n” of the offset curve shape (INF1) are compared. And "i≤n"
If so, the processing from step 211 onward is repeated.

以上の処理により、交差することなく「i>n」となれ
ば、中央演算回路(102)はオフセット曲線形状(INF
1)とオフセット曲線形状(INF2)が交差しないと判断
する。
If “i> n” without crossing by the above processing, the central processing circuit (102) determines that the offset curve shape (INF
Judge that 1) and the offset curve shape (INF2) do not intersect.

一方、ステップ211において、要素「E1i」が要素「E2
j」と交差すれば、中央演算回路(102)は、オフセット
曲線形状(INF1)とオフセット曲線形状(INF2)とが交
差すると判断すると共に、以下の合成オフセット曲線形
状を生成する処理を行なう。
On the other hand, in step 211, the element “E1i” is replaced by the element “E2
If it intersects with "j", the central processing circuit (102) determines that the offset curve shape (INF1) and the offset curve shape (INF2) intersect, and performs the following processing for generating a combined offset curve shape.

ステップ216で、要素「E11」,「E12」……「E1(i−
1)」を合成オフセット曲線形状の要素であるとして、
RAM(111)に記憶すると共に、要素「E1i」の始点「P
i」から上記交差点「Ci;第21図参照」までの部分「E1
i′」を合成オフセット曲線形状の要素であるとして、R
AM(111)に記憶し、ステップ217で「i→1」とする。
次いで、ステップ218で要素「E11」,「E12」……「Ei
n」をたどる方向並びに要素「E21」,「E22」……「E2
m」をたどる方向が、時計方向か反時計方向かを判別す
る。なお、この方向データは領域加工データとして与え
られている。この方向が、共に時計方向あるいは反時計
方向であれば、前記交差点「Ci」から要素「E2j」の終
点「Qj」までの部分「E2j′」を合成オフセット曲線形
状の要素であるとしてRAM(111)に記憶する。なお、こ
の方向が異なる場合には、以降の処理と略同様に合成オ
フセット曲線形状が生成できるから、その説明を省略す
る。
In step 216, elements "E11", "E12" ... "E1 (i-
1) ”is an element of the composite offset curve shape,
It is stored in the RAM (111) and the starting point "P" of the element "E1i"
"E1" from the intersection "Ci; see Fig. 21" above
i ′ ”is an element of the composite offset curve shape, and R
It is stored in AM (111) and is set to “i → 1” in step 217.
Then, in step 218, the elements "E11", "E12" ... "Ei"
Direction of tracing n ”and elements“ E21 ”,“ E22 ”……“ E2
Determine whether the direction following "m" is clockwise or counterclockwise. The direction data is given as area processing data. If both directions are clockwise or counterclockwise, the portion "E2j '" from the intersection "Ci" to the end point "Qj" of the element "E2j" is regarded as the element of the composite offset curve shape and the RAM (111 ) To remember. Note that if this direction is different, a combined offset curve shape can be generated in substantially the same manner as in the subsequent processing, and a description thereof will be omitted.

次いで、中央演算回路(102)は、ステップ219で「i+
1→i,j+1→j」とする。しかる後、ステップ220でオ
フセット曲線形状(INF2)の要素「E2j」がオフセット
曲線形状(INF1)の要素「E1i」と交差するか判別す
る。そして、交差しなければ、ステップ221で「i+1
→i」とし、ステップ222で「i」と「n」の大小を比
較する。ステップ222で「i≦n」であれば、ステップ2
20以降の処理を繰返す。ステップ222で「i>n」であ
れば、中央演算回路(102)はステップ223で要素「E2
j」を合成オフセット曲線形状の要素であるとしてRAM
(111)に記憶すると共に、ステップ219で「i+1→i,
j+1→j」としてステップ220以降の処理を繰返す。な
お、「j>m」となれば、「1→j」とする。
Next, the central processing unit (102), in step 219, reads “i +
1 → i, j + 1 → j ”. Then, in step 220, it is determined whether the element "E2j" of the offset curve shape (INF2) intersects with the element "E1i" of the offset curve shape (INF1). If they do not intersect, in step 221 “i + 1
→ i ”, and in step 222, the sizes of“ i ”and“ n ”are compared. If “i ≦ n” in step 222, step 2
Repeat the processing after 20. If “i> n” in step 222, the central processing unit (102) determines the element “E2
RAM as "j" is an element of the composite offset curve shape
(111), and at step 219, “i + 1 → i,
The process after step 220 is repeated as "j + 1 → j". If "j>m","1 → j" is set.

ステップ220の判別処理において、要素「E2j」が要素
「E1i」と交差すれば、ステップ224で要素「E2j」の始
点「Pi′」から交差点「Ci′」までの部分「E2j″」及
び交差点「Ci′」から要素「E1i」の終点「Qi′」まで
の部分「E1i″」、並びに要素「E1(i+1)」から要
素「E1n」までの全要素を、合成オフセット曲線形状の
要素としてRAM(111)に格納して、合成オフセット曲線
形状(COFC)の生成処理を終了する。
If the element "E2j" intersects the element "E1i" in the determination processing of step 220, the portion "E2j""from the starting point" Pi '"of the element" E2j "to the intersection"Ci'"and the intersection" The part “E1i ″” from the end point “Qi ′” of the element “E1i” to the element “E1i” and all the elements from the element “E1 (i + 1)” to the element “E1n” are RAM ( 111), and the process of generating the combined offset curve shape (COFC) is completed.

なお、オフセット曲線形状(INF1),(INF2)の各構成
要素をたどる方向が異なる場合には、予め一方の構成要
素を逆順に並べ換えて他方と同一方向にしておけば、ス
テップ218の方向判別処理は、不要になる。
When the directions of tracing the respective components of the offset curve shapes (INF1) and (INF2) are different, if one of the components is rearranged in advance in the reverse order so as to be in the same direction as the other, the direction determination processing of step 218 Becomes unnecessary.

以上の処理により、第1のオフセット曲線形状(INF1)
により囲まれる領域と、第2のオフセット曲線(INF2)
により囲まれる領域の共通領域(CSA)を形成し、第
1、第2のオフセット曲線形状部分(INF1′)、(INF
2′)を除去してなる合成オフセット曲線形状(COFC)
が生成される。
By the above processing, the first offset curve shape (INF1)
Area surrounded by and the second offset curve (INF2)
Forming a common area (CSA) surrounded by the first and second offset curve shape portions (INF1 ′) and (INF
2 ′) removed composite offset curve shape (COFC)
Is generated.

前記オフセット曲線形状(INF1)とオフセット曲線形状
(INF2)が交差しなければ、領域加工不可能部分がない
から、中央演算回路(102)は1方向あるいは往復切削
に基づいて領域加工する。なお、以後、ここでは、1方
向切削により加工するものとする。
If the offset curve shape (INF1) and the offset curve shape (INF2) do not intersect, there is no area unworkable portion, so the central processing circuit (102) carries out area processing based on one direction or reciprocal cutting. In addition, hereinafter, it is assumed that the processing is performed by unidirectional cutting.

ステップ225で「1→k」とし、中央演算回路(102)は
第23図の従来の領域加工方法におけるオフセット曲線形
状に交差する部分がない場合の処理を示す説明図に示す
ように、第k番目の切削通路「PTk」を特定する処理を
行なう。
In step 225, "1 → k" is set, and the central processing circuit (102) is the k-th processing as shown in the explanatory view showing the processing when there is no portion intersecting the offset curve shape in the conventional area processing method of FIG. The process for specifying the second cutting path "PTk" is performed.

すなわち、ステップ226で直線「SLk」を生成する。That is, in step 226, the straight line “SLk” is generated.

なお、直線「SLk」は次式 y=Ys+p・k により表現される。The straight line “SLk” is represented by the following equation y = Ys + p · k.

しかる後、中央演算回路(102)は、ステップ227で直線
「SLk」とオフセット曲線形状(OFC)との交点「Pk」、
「Qk」を算出すると共に、直線(SLk)とオフセット曲
線形状(INF1),(INF2)との交点「Pk」、「Sk」;
「Tk」、「Uk」を求める。なお、交点「Pk」、「Qk」の
うち、X座標値が大きいほうの交点が加工開始点とな
り、小さいほうが加工終了点となる。
Thereafter, the central processing circuit (102), in step 227, intersects the straight line “SLk” with the offset curve shape (OFC) “Pk”,
"Qk" is calculated and the intersection points "Pk" and "Sk" of the straight line (SLk) and the offset curve shapes (INF1) and (INF2);
Find "Tk" and "Uk". Of the intersections “Pk” and “Qk”, the intersection having the larger X coordinate value is the machining start point, and the smaller one is the machining end point.

なお、交点「Pk」、「Tk」が存在しなければ、当然、交
点「Sk」、「Uk」も存在しない。つぎに、ステップ228
でステップ205と同様の通路処理を行なって、切削送り
で、工具を加工開始点「Pk」から加工終了点「Qk」まで
移動させ、第k番目の切削通路「PTk」に沿った切削を
行なう。交点「Pk」または交点「Tk」の一方のみが存在
する場合には(「Rk」点のみが存在するものとする)、
中央演算回路(102)は、切削送りで、工具を加工開始
点「Pk」から「Pk」点まで移動させ、「Rk」点への工具
が到着後、早送り工具を+Z軸方向にアプローチ平面ま
で引上げ、アプローチ平面到達後、前記アプローチ平面
上を「Sk」点の真上まで工具を早送りで移動させ、次い
で、工具を「Sk」点まで切削送りで移動させ、しかる
後、「Sk」点から加工終了点「Qk」まで切削送りで移動
させ、第k番目の切削通路「PTk」に沿った切削を行な
う。
If the intersections “Pk” and “Tk” do not exist, the intersections “Sk” and “Uk” also do not exist. Then, step 228
In the same way as step 205, the tool is moved from the machining start point "Pk" to the machining end point "Qk" by cutting feed, and cutting is performed along the kth cutting path "PTk". . If only one of the intersection "Pk" or the intersection "Tk" exists (assuming that only "Rk" exists),
The central processing circuit (102) moves the tool from the machining start point “Pk” to the “Pk” point by cutting feed, and after the tool reaches the “Rk” point, the fast-forward tool reaches the approach plane in the + Z axis direction. After pulling up and reaching the approach plane, move the tool on the approach plane just above the "Sk" point by fast-forwarding, then move the tool by cutting feed to the "Sk" point, and then from the "Sk" point. It is moved by cutting feed to the machining end point "Qk", and cutting is performed along the kth cutting path "PTk".

交点「Pk」、「Tk」の両方が存在する場合には、工具を
「Sk」点から加工終了点「Qk」まで移動させず、交点
「Tk」点まで切削送りで移動させ、「Tk」点へ工具が到
達後、早送りで工具を+Z軸方向にアプローチ平面まで
引上げ、アプローチ平面到達後、前記アプローチ平面上
を「Uk」点の真上まで工具を早送りで移動させ、次い
で、工具を「Uk」点まで降下させ、しかる後、「Uk」点
から加工終了点「Qk」まで切削送りで移動させ、第k番
目の切削通路「PTk」に沿った切削を行なう。
If both the intersection points "Pk" and "Tk" exist, the tool is not moved from the "Sk" point to the machining end point "Qk" but is moved to the intersection "Tk" point by cutting feed, then "Tk" After the tool reaches the point, it is fast-forwarded to pull the tool in the + Z-axis direction to the approach plane, and after reaching the approach plane, the tool is moved fast-forward to just above the "Uk" point on the approach plane, and then the tool Then, it is moved down to the "Uk" point and then moved from the "Uk" point to the machining end point "Qk" by cutting feed to perform cutting along the k-th cutting path "PTk".

切削通路「PTk」に沿った切削が終了すれば、ステップ2
29でY軸方向の現在位置座標値(Ya;ワーキングメモリ
(112)に記憶されている)と切込み方向終点Yeとの差
分ΔY(=Ye−Ya)を求め、前記差分がピッチ量Lより
大きいかいなかを判別する。ΔY≧Lであれば、中央演
算回路(102)は「k+1→k」の演算を行なって、ス
テップ226以降の処理を繰返す。
If the cutting along the cutting path "PTk" is completed, step 2
At 29, a difference ΔY (= Ye−Ya) between the current position coordinate value in the Y-axis direction (Ya; stored in the working memory (112)) and the cutting direction end point Ye is obtained, and the difference is larger than the pitch amount L. Determine the inside. If ΔY ≧ L, the central processing circuit (102) performs the operation “k + 1 → k” and repeats the processing from step 226.

一方、ΔY<Lであれば、中央演算回路(102)は、ス
テップ231でオフセット曲線形状(OFC)、オフセット曲
線形状(INF1),(INF2)に沿って、切削送りで工具を
移動させて、削り残し部を加工し、領域加工を終了す
る。
On the other hand, if ΔY <L, the central processing circuit (102) moves the tool by cutting feed along the offset curve shape (OFC), offset curve shapes (INF1), (INF2) in step 231. The uncut portion is processed, and the area processing is completed.

しかる後、次の数値制御データを読取って、上記処理を
繰返す。
Then, the next numerical control data is read and the above process is repeated.

一方、オフセット曲線形状(INF1)と(INF2)が交差す
る場合には、前述したように、直線(SLK)とオフセッ
ト曲線形状(OFC)との交点、直線(SLK)と合成オフセ
ット曲線形状(COFC)との交点を求め、これら各交点の
座標値を用いて、上記ステップ255からのルーチンと同
様に切削通路(PTk)の切削を行なって領域加工を行な
う。
On the other hand, when the offset curve shapes (INF1) and (INF2) intersect, as described above, the intersection of the straight line (SLK) and the offset curve shape (OFC), the straight line (SLK) and the combined offset curve shape (COFC) ), And using the coordinate values of each of these intersections, the cutting passage (PTk) is cut in the same manner as the routine from step 255 above to perform area processing.

[発明が解決しようとする課題] 従来の領域加工方法は以上のように構成されているの
で、オフセット曲線形状(INF1),(INF2)の交差する
部分が1か所ではなく、第24図のオフセット曲線形状の
交差が複数箇所ある場合の説明図に示すように、オフセ
ット曲線形状(INF1)と(INF2)の内部に切削すべき領
域があっても、その領域を削り残してしまうという可能
性があった。
[Problems to be Solved by the Invention] Since the conventional area processing method is configured as described above, the intersecting portions of the offset curve shapes (INF1) and (INF2) are not located at one location, but are shown in FIG. Even if there are areas to be cut inside the offset curve shapes (INF1) and (INF2), there is a possibility that they will be left uncut as shown in the explanatory diagram when there are multiple intersections of the offset curve shapes. was there.

そこで、この発明は、外形曲線の内部に2つ以上の島部
が互いに接近して存在し、島部を特定する閉曲線のオフ
セット曲線形状が互いに交差する場合で、かつ、オフセ
ット曲線形状が互いに複数回交差する場合であっても、
削り残す領域がなく、加工可能領域は全て加工できる領
域加工方法の提供を課題とするものである。
Therefore, the present invention is a case where two or more island portions exist close to each other inside an outline curve and the offset curve shapes of the closed curves that specify the island portions intersect each other, and the offset curve shapes are plural. Even if they cross
An object of the present invention is to provide an area processing method in which there is no area to be left unmachined and all machinable areas can be processed.

[課題を解決するための手段] この発明にかかる領域加工方法は、外形形状と、前記外
形形状の内部に存在する少なくとも2つ以上の閉曲線形
状とで挟まれた領域を加工する領域加工方法において、
上記各閉曲線形状からその外側に工具径に応じた量オフ
セットしたオフセット曲線形状を求める段階と、上記オ
フセット曲線形状の回転定義方向を揃える段階と、上記
オフセット曲線形状相互が交差するか否かを判別する交
点演算段階と、上記オフセット曲線形状相互が交差する
場合には、交差する複数の交点を並び変える段階と、交
点を持つブロックの始点から交点までが第1のオフセッ
ト曲線形状の内側か外側か及び交点から交点を持つブロ
ックの終点が第2のオフセット曲線形状の内側か外側か
とを判定し、並び変えられた交点に従い交差する第1の
オフセット曲線形状により囲まれる領域と第2のオフセ
ット曲線形状により囲まれる領域の共通領域を形成する
合成オフセット曲線形状を求めるオア処理段階とを有
し、上記求められた合成オフセット曲線形状に沿って領
域加工を行なうものである。
[Means for Solving the Problem] A region processing method according to the present invention is a region processing method for processing a region sandwiched between an outer shape and at least two closed curve shapes existing inside the outer shape. ,
It is determined whether or not the offset curve shapes offset from the closed curve shapes by an amount corresponding to the tool diameter to the outside are obtained, the rotation defining directions of the offset curve shapes are aligned, and the offset curve shapes intersect each other. If the intersection calculation step and the above offset curve shapes intersect each other, the step of rearranging a plurality of intersecting intersections and whether the start point of the block having the intersection point to the intersection point is inside or outside the first offset curve shape And an area surrounded by the first offset curve shape that intersects according to the rearranged intersection point and the second offset curve shape by determining whether the end point of the block having the intersection point from the intersection point is inside or outside the second offset curve shape. And an OR processing step for obtaining a combined offset curve shape forming a common area of the area surrounded by And performs area processed along a forming offset curved shape.

[作用] この発明における領域加工方法では、交点を持つブロッ
クの始点から交点までが第1のオフセット曲線形状の内
側か外側か及び交点から交点を持つブロックの終点が第
2のオフセット曲線形状の内側か外側かとを判定し、並
び変えられた交点に従い交差する第1のオフセット曲線
形状により囲まれる領域と第2のオフセット曲線形状に
より囲まれる領域の共通領域を形成する合成オフセット
曲線形状を求めるオア処理を有し、そのオア処理により
求められた合成オフセット曲線形状が複数存在する場合
に、全ての合成オフセット曲線形状に沿って領域加工を
行なうことにより、切削加工領域を、全て切削すること
ができる。
[Operation] In the region processing method according to the present invention, whether the area from the start point of the block having the intersection to the intersection is inside or outside the first offset curve shape, and the end point of the block having the intersection point is the inside of the second offset curve shape. Or processing to determine a composite offset curve shape that forms a common area of the area surrounded by the first offset curve shape and the area surrounded by the second offset curve shape that intersect with each other according to the rearranged intersection. When there are a plurality of combined offset curve shapes obtained by the OR processing, the cutting processing area can be entirely cut by performing the area processing along all the combined offset curve shapes.

[実施例] 以下、この発明の実施例を説明する。[Examples] Examples of the present invention will be described below.

第1図はこの発明の一実施例による領域加工方法のため
の加工領域を工具半径分だけオフセットした形状を示す
説明図であり、また、第2図はこの発明の一実施例にか
かる上記第1図の形状のオア処理をした形状を示す説明
図である。なお、この発明の一実施例を実現するための
数値制御装置は、第18図に示す従来のものと同様である
ので、ここではその説明を省略する。
FIG. 1 is an explanatory view showing a shape in which a machining region for a region machining method according to an embodiment of the present invention is offset by a radius of a tool, and FIG. 2 is the above-mentioned first embodiment according to an embodiment of the present invention. It is explanatory drawing which shows the shape which carried out the OR process of the shape of FIG. Since the numerical control device for realizing the embodiment of the present invention is the same as the conventional one shown in FIG. 18, its explanation is omitted here.

次に、この発明の実施例の作用、動作について説明す
る。
Next, the operation and operation of the embodiment of the present invention will be described.

まず、この実施例の前提となる動作のうち、内部的にオ
フセット曲線形状(INF1)とオフセット曲線形状(INF
2)を作成するまでの動作(従来例の第19図のステップ2
08までの動作に相当)は、上記従来例と同様であるの
で、ここでは、その説明を省略する。
First, among the operations that are the premise of this embodiment, the offset curve shape (INF1) and the offset curve shape (INF
Operation up to 2) (Step 2 in FIG. 19 of the conventional example)
(Corresponding to the operation up to 08) is the same as the above-mentioned conventional example, and therefore its explanation is omitted here.

次に、この発明の一実施例の主要部の動作を説明する。Next, the operation of the main part of the embodiment of the present invention will be described.

第1図において、(OLC1)は外形曲線形状を内側に工具
半径分だけオフセットした曲線形状であり、(INF1),
(INF2)は、各々内側曲線形状を外側に工具半径分だけ
オフセットしたオフセット曲線形状である。ここで、図
の斜線部内に切削工具の中心を制御すれば、最終形状を
削り過ぎることなく、加工を行なうことができる。
In FIG. 1, (OLC1) is a curved shape in which the outer curved shape is offset inward by the tool radius, and (INF1),
(INF2) is an offset curve shape obtained by offsetting the inside curve shape to the outside by the tool radius. Here, if the center of the cutting tool is controlled within the shaded area in the figure, machining can be performed without overcutting the final shape.

さて、オフセット曲線形状(OLC1)、オフセット曲線形
状(INF1),(INF2)等は全てその閉領域の内側を表す
ものと定義して、それらに対する処理として、オア処
理、すなわち、2つの領域の少なくともどちらか一方の
領域を作成するという処理を定義すると、切削可能領域
は第2図のようにオフセット曲線形状(OLC1)の内側の
領域であり、かつ、オフセット曲線形状(INF1),(IN
F2)の外側の領域であるので、その部分を従来方法によ
って切削すれば、削り残しがなく切削できることになる
(第2図参照)。つまり、オフセット曲線形状(INF
1),(INF2)のオア形状(合成オフセット曲線形状(C
OFC)が作成できれば、加工可能領域は全て加工できる
ことになる。
Now, it is defined that the offset curve shape (OLC1), the offset curve shapes (INF1), (INF2), etc. all represent the inside of the closed area, and the processing for them is the OR processing, that is, at least the two areas. When the process of creating one of the areas is defined, the machinable area is the area inside the offset curve shape (OLC1) as shown in Fig. 2, and the offset curve shapes (INF1), (IN
Since it is the area outside of F2), if it is cut by the conventional method, it will be possible to cut without leaving uncut residue (see Fig. 2). That is, the offset curve shape (INF
1), (INF2) OR shape (composite offset curve shape (C
If the OFC) can be created, all processable areas can be processed.

次に、このようなオア形状の作成手順について述べる。Next, a procedure for creating such an OR shape will be described.

第3図はこの発明の一実施例の領域加工方法におけるオ
ア処理の概略を示す説明図である。
FIG. 3 is an explanatory view showing the outline of the OR processing in the area processing method according to the embodiment of the present invention.

図形(A)をボディ(BODY)、図形(B)をプリミティ
ブと呼ぶことにする。2図形(A),(B)の交点を
「P1」、「P2」とすると、2図形のオア形状は、第3図
の太線で囲まれる図形となる。2図形(A),(B)の
定義方向を(CW)とすると、2図形(A),(B)は、
交点「P1」、「P2」により、以下の2つの部分要素に分
けられる。
The graphic (A) is called a body (BODY), and the graphic (B) is called a primitive. If the intersections of the two figures (A) and (B) are "P1" and "P2", the OR shape of the two figures becomes the figure surrounded by the thick line in FIG. Assuming that the definition direction of the two figures (A) and (B) is (CW), the two figures (A) and (B) are
It is divided into the following two subelements by the intersection points "P1" and "P2".

円弧(図形A)上の点で図形Bの外側にある任意の点と
「Sa」、四角形(図形B)上の点で図形Aの外側にある
任意の点を「Sb」とすると、 第3図に示したオア図形は、図形(B)の外部に存在す
る図形(A)の部分要素である円弧 と図形(A)の外部に存在する図形(B)の部分要素の
直線 から決定できる。2図形の交点は、各々の図形を部分要
素に分断する。そして、分断された部分要素から、オア
形状の境界曲線が形成される。前記各交点は、全て求め
るべきオア形状図形状の点になることがわかる。
If a point on the arc (figure A) is outside the figure B and "Sa" and a point on the quadrangle (figure B) is outside the figure A is "Sb", The OR figure shown in FIG. 3 is an arc which is a subelement of the figure (A) existing outside the figure (B). And the straight line of the subelement of the figure (B) existing outside the figure (A) Can be determined from The intersection of two figures divides each figure into subelements. Then, an OR-shaped boundary curve is formed from the divided partial elements. It can be seen that all the intersections are points of the OR shape diagram that should be obtained.

交点に着目して、別の見方をしてみる。ボディの始点
「Sa」から(CW)方向に移動する点を考える。「Sa」→
「P1」に至るまでを考えると、円弧 図形(B)の外部要素であり、オア図形の境界線とな
る。点「P1」から先の図形(A)の上の点は、図形
(A)の外部に出てしまう。すなわち、交点を境にし
て、オア図形の境界線は、図形(A)→図形(B)に変
わる。したがって、この交点は、オア図形の境界線を考
えるとき、図形(A)から図形(B)または図形(B)
から図形(A)の要素に移り変わる状態変化点となる。
Focus on the intersection and try another way of looking. Consider the point that moves in the (CW) direction from the starting point "Sa" of the body. "Sa" →
Considering up to "P1", arc It is an external element of the figure (B) and serves as a boundary line of the OR figure. The point above the figure (A) from the point "P1" goes out of the figure (A). That is, the boundary line of the OR graphic changes from the graphic (A) to the graphic (B) at the intersection. Therefore, this intersection is a figure (A) to a figure (B) or a figure (B) when considering the boundary line of the OR figure.
Is a state change point that changes from the element to the element of the figure (A).

したがって、動く点「P」のたどる軌跡が、オア図形の
境界曲線となるためには、交点「P1」で図形(B)の部
分要素へ移らなければならない。点「P1」から図形
(B)へ移り、図形(B)を(CW)方向に進むと、「S
b」を経由して次に点「P2」に至る。点「P2」から先の
図形(B)上の点は、図形(B)の外部に出てしまう。
すなわち、状態変化点であるから、動く点「P」は、
「P2」を境にして図形(A)へ移動し、図形(A)上を
(CW)方向へ進み、始点「Sa」に戻る。この動く点
「P」が、始点「Sa」から再び「Sa」に戻るまでにたど
る軌跡が、オア図形の境界線となる。
Therefore, in order for the trajectory of the moving point "P" to become the boundary curve of the OR graphic, it must move to the subelement of the graphic (B) at the intersection "P1". If you move from the point "P1" to the figure (B) and then move the figure (B) in the (CW) direction, "S"
Then go to point "P2" via "b". The point on the figure (B) beyond the point “P2” goes out of the figure (B).
That is, since it is a state change point, the moving point "P" is
It moves to the figure (A) at the boundary of "P2", advances on the figure (A) in the (CW) direction, and returns to the starting point "Sa". The locus of the moving point "P" from the start point "Sa" to returning to "Sa" again becomes the boundary line of the OR graphic.

第4図はこの発明の一実施例の領域加工方法におけるオ
ア処理の概略を示すフローチャートである。
FIG. 4 is a flow chart showing the outline of the OR processing in the area processing method according to the embodiment of the present invention.

まず、ステップ1で処理を簡単にするため、図形
(A)、(B)の回転定義方向を揃える。そして、ステ
ップ2で2図形の交点を全て求め、ボディ(A)の始点
から終点に至るまで、交点の配列の順番を並べ変える。
これにより、求まる交点群と図形(A)の始点「Sa」と
から、交点列 {Sa,P1,P2,……,Pn,Sa}(i=1,2,……,n)を作
る。
First, in step 1, in order to simplify the processing, the rotation definition directions of the figures (A) and (B) are aligned. Then, in step 2, all the intersections of the two figures are obtained, and the order of the intersections is rearranged from the start point to the end point of the body (A).
As a result, an intersection point sequence {Sa, P1, P2, ..., Pn, Sa} (i = 1,2, ..., n) is created from the intersection point group obtained and the starting point “Sa” of the figure (A).

ステップ3でボディ(A)の始点から出発し、 Sa→P1→P2→……→Pn→Sa の順序で、2図形のオアを決める。この場合、任意の
「Pi」,「Pi+1」の要素が、もし図形(B)に含まれ
る図形(A)の部分要素であれば、図形(A)の要素
を、そうでなければ、図形(B)の要素をオアの境界曲
線の部分要素とする。
In step 3, starting from the starting point of body (A), the OR of two figures is determined in the order of Sa → P1 → P2 → …… → Pn → Sa. In this case, if the arbitrary "Pi" and "Pi + 1" elements are the subelements of the figure (A) included in the figure (B), the elements of the figure (A) are included, and otherwise, the figure (A) is included. The element of B) is a subelement of the OR boundary curve.

ステップ4で「i→i+1」とし、「Sa」点まで調べた
ら終了、そうでなければ、ステップ3へ戻る。
When “i → i + 1” is set in step 4 and “Sa” points are checked, the process ends. If not, the process returns to step 3.

次に、この動作を第5図から第12図を用いて詳述する。Next, this operation will be described in detail with reference to FIGS.

第5図から第7図はこの発明の一実施例の領域加工方法
のメモリー上の構造を示す説明図である。
5 to 7 are explanatory views showing the structure on the memory of the area processing method according to the embodiment of the present invention.

定義した形状の直線または円弧で定義される1つ1つの
要素をブロックと呼ぶ。逆に、1つの形状はいくつかの
ブロックで構成される。
Each element defined by a straight line or a circular arc having a defined shape is called a block. On the contrary, one shape is composed of several blocks.

第5図はメモリー上でのブロックの配置の様子を示すも
のである。
FIG. 5 shows how blocks are arranged in the memory.

図形(A)を示すブロック列はメモリー上のある領域に
おかれ、図形(B)を示すブロック列はメモリー上の別
の領域におかれる。
The block string showing the figure (A) is placed in a certain area on the memory, and the block string showing the figure (B) is placed in another area on the memory.

これら2つのブロック列から後に述べる処理に従って複
数個のオア形状をまたメモリー上の別の領域に作成して
ゆく。
From these two block sequences, a plurality of OR shapes are created in another area on the memory according to the processing described later.

ただし、オア形状1のブロック列からオア形状nのブロ
ック列のうちの1つのブロック列だけがすべての閉形状
を含むオフ形状(本来のオア形状)、つまり、第2図で
いう(COFC)であり、それ以外のブロック列はすべて上
記オア形状ブロック列に含まれる閉形状、つまり、第2
図で言う(COFC1)となる。
However, only one block row from the block row of the OR shape 1 to the block row of the OR shape n is an OFF shape including all closed shapes (original OR shape), that is, (COFC) in FIG. Yes, all the other block sequences are the closed shapes included in the OR-shaped block sequence, that is, the second block sequence.
In the figure, it becomes (COFC1).

この判定はすべてを含むオア形状列がオア形状mのブロ
ック列とすると、 I)オア形状mのブロック列のX方向最小値 ≧それ以外のブロック列のX方向最小値 II)オア形状mのブロック列のX方向最大値 ≧それ以外のブロック列のX方向最大値 III)オア形状mのブロック列Y方向最小値 ≧それ以外のブロック列のY方向最小値 IV)オア形状mのブロック列のY方向最大値 ≧それ以外のブロック列のY方向最大値 以上の4つの条件を満たすブロック列がすべてを含むオ
ア形状であるので複数のブロック列からこのブロック列
を特定することは容易である。
In this judgment, if the OR shape sequence including all is a block sequence of the OR shape m, I) minimum value in the X direction of the block sequence of the OR shape m ≧ minimum value in the X direction of the other block sequences II) block of the OR shape m Maximum value in X direction of row ≥ Maximum value in X direction of other block rows III) Minimum value in Y direction of block row of OR shape m ≥ Minimum value in Y direction of other block row IV) Y of block row in OR shape m Maximum value in direction ≧ maximum value in Y direction of other block rows The block row satisfying the four conditions equal to or more than the above is an OR shape including all, so it is easy to specify this block row from a plurality of block rows.

第6図は要素1つを表すブロックの構造を示すものであ
る。
FIG. 6 shows the structure of a block representing one element.

mode部は下に示す様にその要素の形状及びブロック列の
最終ブロックかどうかを示すものである。また、x,yは
その要素の終点の座標値を示し、e1,e2,e3は第7図に示
すように、mode部のビット0,1による形状が直線か、円
弧かによって形状の方程式を表現する係数を示してい
る。
The mode part indicates the shape of the element and whether or not it is the last block in the block row as shown below. In addition, x, y indicates the coordinate value of the end point of the element, and e1, e2, e3 indicate the equation of the shape depending on whether the shape by bits 0,1 of the mode part is a straight line or an arc, as shown in FIG. The coefficient to represent is shown.

また、第8図はこの発明の一実施例の領域加工方法のた
めの元図形を示す説明図、第9図はこの発明の一実施例
における領域加工方法の図形を記憶するメモリーの説明
ず、第10図はこの発明の一実施例の領域加工方法の2図
形の形状の交点情報のステータスへのセットを示す説明
ず、第11図はこの発明の一実施例の領域加工方法の2図
形の形状の交点近くの情報のステータスへのセットを示
す説明図である。そして、第12図はこの発明の一実施例
の領域加工方法のオア処理前後の形状を示す説明図であ
る。
Further, FIG. 8 is an explanatory view showing an original figure for the area processing method of the embodiment of the present invention, and FIG. 9 is a description of a memory for storing the figure of the area processing method of the embodiment of the present invention. FIG. 10 does not show the setting of the intersection information of the shapes of the two figures of the area processing method of the embodiment of the present invention to the status, and FIG. 11 shows the two figures of the area processing method of the embodiment of the present invention. It is explanatory drawing which shows the setting to the status of the information near the intersection of a shape. FIG. 12 is an explanatory view showing the shape before and after the OR processing of the area processing method according to the embodiment of the present invention.

第4図のフローチャートに示すように、オア形状作成処
理は、 元図形のチェック 交点情報を求める オア図形の作成 作成した図形のチェック、 の4項目の処理を主体とした構成となっている。
As shown in the flow chart of FIG. 4, the OR shape creation processing mainly consists of the four items of processing: creation of an OR graphic to obtain check intersection information of the original graphic and creation of the created graphic.

以下、この4項目について、詳細に説明する。Hereinafter, these four items will be described in detail.

元図形チェック 与えられた2図形(例えば、第8図の図形)に対し、次
の項目でチェックを行なう。
Original figure check For the given two figures (for example, figure 8), check the following items.

(a)要素数(ブロック数)のチェック(有/無/MAX) (b)図形の回転方向のチェック (CW)方向でなければ(CW)方向へ変換する。(A) Check the number of elements (number of blocks) (Yes / No / MAX) (b) Check the rotation direction of the figure If it is not the (CW) direction, convert it to the (CW) direction.

交点情報を求める 与えられた2図形の全ての交差するブロックに対して、
交点演算を行ない、次の項目の情報を求める。ここで、
交点を表現する方法として、第5図以外のメモリー上
に、第9図に示す構造のブロック列の領域を確保する。
Find intersection information For all intersecting blocks of a given figure,
Perform the intersection calculation to obtain the information of the next item. here,
As a method of expressing the intersection, the area of the block row having the structure shown in FIG. 9 is secured in the memory other than that shown in FIG.

(a)交点座標x,yを求める。(A) Obtain the intersection coordinates x and y.

(b)交点となった図形相互の要素(形状ブロック)の
索引(インデックス)を求める。
(B) The index (index) of the elements (shape blocks) of the figures at the intersections is obtained.

(c)交点におけるステータスを求める。(C) Obtain the status at the intersection.

前記ステータスとは、交点情報(sts)のビット0,1を第
10図に示すように、交差する2つのブロックの状態に従
って分類しセットしたものと、ビット15〜ビット8を第
11図に示す状態に従って分類し、セットしたものであ
る。
The above status means that bits 0 and 1 of intersection information (sts)
As shown in Fig. 10, bits 15 to 8 are classified and set according to the state of two intersecting blocks, and
It is classified and set according to the state shown in Fig. 11.

第10図に示すステータスのビット0,1の情報とは、2つ
の線分が交わる状態が互いに1つ前のブロック終点と当
該ブロック終点の中点で交わる時、NORMAL交点を「0」
に、一方、図形(A)のブロックの終点が図形(B)の
ブロック列の1つ前の終点と当該ブロック終点の間の直
線にのっている時、図形(A)の端点を「1」または、
逆の場合を「2」、お互いの終点同士が一致している状
態を「3」として各々対応するビット0,1をセットす
る。
The information of bits 0 and 1 of the status shown in FIG. 10 means that the NORMAL intersection point is set to "0" when the intersection of two line segments intersects the block end point immediately before and the midpoint of the block end point.
On the other hand, when the end point of the block of the figure (A) is on the straight line between the end point immediately before the block row of the figure (B) and the end point of the block, the end point of the figure (A) is set to "1. Or
In the opposite case, "2" is set, and when the end points of the two coincide with each other, "3" is set, and the corresponding bits 0 and 1 are set.

そして、第10図の交点の状態に示すように、ステータス
のビット0、ビット1に、交点の状態をセットする。ま
た、ステータスの上位8ビットには、第11図(a)のよ
うな交点近くでの直線の状態を、第11図(b)のように
セットする。
Then, as shown in the state of the intersection in FIG. 10, the state of the intersection is set in bit 0 and bit 1 of the status. Further, in the upper 8 bits of the status, the state of a straight line near the intersection as shown in FIG. 11 (a) is set as shown in FIG. 11 (b).

ここでビット15,14は図形(B)の交点を持つブロック
の1つ前のブロック終点から交点までが図形(A)の外
側にあるか内側にあるかを示し、ビット13,12は交点か
ら交点を持つ図形(B)のブロックの終点までが図形
(A)の外側(ビット13)にあるか内側(ビット12)に
あるかを示す。
Here, bits 15 and 14 indicate whether the block end point immediately before the block having the intersection of the figure (B) to the intersection is outside or inside the figure (A), and bits 13 and 12 are from the intersection. It shows whether the end of the block of the figure (B) having the intersection is outside (bit 13) or inside (bit 12) of the figure (A).

ビット11〜ビット8は上と同様に図形(A)のブロック
について交点を持つブロックの前のブロックの終点から
交点までと、交点から交点を持つブロックの終点までが
図形(B)の外側にあるか内側にあるかを示している。
Bits 11 to 8 are outside the figure (B) from the end point of the block before the block having the intersection point to the intersection point, and from the intersection point to the end point of the block having the intersection point, similarly to the above. Or inside.

したがって、上記第11図(a)の交点P1では、ステータ
スの上位8ビットは、第11図(c)に示すようになり、
また、上記第11図(a)の交点P2では、ステータスの上
位8ビットは、第11図(d)に示すようになる。
Therefore, at the intersection P1 in FIG. 11 (a), the upper 8 bits of the status are as shown in FIG. 11 (c),
At the intersection P2 of FIG. 11 (a), the upper 8 bits of the status are as shown in FIG. 11 (d).

オア図形の作成 上記に求めた交点情報を基に、上記したオア処理を行
なうことで、第12図のように、オア図形の作成ができ
る。ここで、ある交点情報(CRSPO)をオア形状として
使用すれば、その交点情報の交点フラグ(flg)のビッ
ト0を“1"にしておく。
Creation of an OR graphic By performing the above OR processing based on the intersection point information obtained above, an OR graphic can be created as shown in FIG. Here, if certain intersection information (CRSPO) is used as an OR shape, bit 0 of the intersection flag (flg) of that intersection information is set to "1".

一方の形状上の点で他の形状外の点から、上記手順をた
どって、再びその点に戻って来れば、オア形状の1つは
求まったことになる。
If a point on one shape is traced from a point outside the other shape and the procedure is returned to that point, one of the OR shapes is obtained.

作成した図形のチェック ここで、交点情報ブロックをチェックして、全ての交点
情報の交点フラグ(flg)のビット0が“1"になってい
れば、全てのオア形状の作成は完了しているが、もし、
まだ未使用のものがあれば、再び上記手順を繰返す。そ
して、全ての交点情報ブロックの交点フラグ(flg)の
ビット0が“1"になれば、オア形状は全て求まったこと
になる。
Checking the created figure Here, check the intersection information block, and if bit 0 of the intersection flag (flg) of all intersection information is "1", the creation of all OR shapes is completed. But if
If there are still unused ones, repeat the above procedure again. When the bit 0 of the intersection flag (flg) of all the intersection information blocks becomes "1", all the OR shapes have been obtained.

それでは、オア形状を求める手順を第11図(a)の形状
を例に以下に説明する。
Now, the procedure for obtaining the OR shape will be described below by taking the shape of FIG. 11 (a) as an example.

図形(A)、図形(B)はメモリー上に第11図(e)の
様に表現される。
The figure (A) and the figure (B) are represented in the memory as shown in FIG. 11 (e).

ここで、図形(A)、図形(B)の最初のブロックA
[0],B[0]のe1,e2,e3は、各々最終ブロックA
[3],B[3]との形状の方程式(この場合は直線の方
程式)が入る。
Here, the first block A of figure (A) and figure (B)
E1, e2, and e3 of [0] and B [0] are the final blocks A, respectively.
The equation of the shape with [3], B [3] (in this case, the equation of the straight line) is entered.

これから交点情報を作成すると、交点が2つ求まるので
交点情報ブロックは2つできて、第11図(f)のように
なる。
When the intersection information is created from this, two intersections are obtained, so two intersection information blocks can be created, as shown in FIG. 11 (f).

以上の前処理を行なった後、オア形状を作成する。After performing the above pre-processing, an OR shape is created.

まず、交点情報ブロックを上から交点フラグ(flg)の
ビットが“0"のものを探していく。このケースでは1つ
目のブロックの交点フラグ(flg)が“0"である。つい
で、そのステータスを調べると図形(A)のブロックは
交点によって図形(B)の外側から図形(B)の内側に
入ることがわかり、また、図形(B)は交点によって図
形(A)の内側から外側へ出ることがわかる。そこで、
1つ目の交点が図形(A)から図形(B)の形状へ移る
点だということがわかる。そして、まず、オア形状作成
エリアに第11図(g)に示すように、A[0],A[1]
をコピーする。
First, the intersection information block is searched from the top for an intersection flag (flg) bit of which is "0". In this case, the intersection flag (flg) of the first block is "0". Then, when the status is examined, it is found that the block of the figure (A) enters from the outside of the figure (B) to the inside of the figure (B) at the intersection, and the figure (B) is inside the figure (A) at the intersection. You can see that it goes out from. Therefore,
It can be seen that the first intersection is the point where the figure (A) changes to the shape of the figure (B). Then, first, in the OR shape creation area, as shown in FIG. 11 (g), A [0], A [1]
To copy.

ついで、A[2]のブロックをその後にコピーするが、
その後、そのブロックのx,yの値を交点情報テーブルの
x,yで書き換える。つまり、これはPA1からP1までのelem
entとPA1からPA2までのelementが等しいのでelementの
再計算をさけるためである。
Then copy the block of A [2] after that,
After that, set the x, y values of that block in the intersection information table.
Rewrite with x, y. So this is the elem from PA1 to P1
This is because ent and the elements from PA1 to PA2 are equal, so avoiding the recalculation of elements.

その後、1つ目の交点情報の交点フラグ(flg)を“1"
とする。当該交点情報ブロックのg2-indは[3]であ
る。そこで、今度は図形(B)の形状のブロックをB
[3]から出力していく。
After that, set the intersection flag (flg) of the first intersection information to "1".
And G2-ind of the intersection information block is [3]. Therefore, this time, the block of the shape of the figure (B) is
Output from [3].

そこで、交点情報ブロック交点フラグ(flg)が“0"の
ものを探していくと、2つ目の交点情報ブロックがみつ
かる。そこでステータスを調べるとこの交点でBのブロ
ック列は図形(A)の形状の外側→内側へ、Aのブロッ
ク列は図形(B)の形状の内側→外側へ変化することが
わかる。つまり、この交点は2つ目のオア形状の移り変
る点であることがわかる。そこで、この交点情報ブロッ
クのg2-indを調べると「2」である。そこで、オア形状
作成エリアにB[3],B[0],B[1]を順次コピーし
ていく。その後、B[2]をコピーしてそのx,yを当該
交点情報ブロックのx,yで書き換える。
Therefore, when searching for an intersection information block having an intersection flag (flg) of "0", a second intersection information block is found. Then, when the status is examined, it can be seen that at this intersection, the block sequence of B changes from the outside of the shape of the figure (A) to the inside, and the block sequence of A changes from the inside of the shape of the figure (B) to the outside. That is, it can be seen that this intersection is the transition point of the second OR shape. Then, when the g2-ind of this intersection information block is examined, it is "2". Therefore, B [3], B [0], and B [1] are sequentially copied to the OR shape creation area. After that, B [2] is copied and its x, y is rewritten with x, y of the intersection information block.

その後、当該交点情報ブロックの交点フラグ(flg)を
“1"にする。それからg1-ingが「3」であるので、図形
(A)の形状のA[3]からたどってゆくが、その前に
交点フラグ(flg)が“0"の交点情報ブロックを探す。
しかし、交点フラグ(flg)が“0"の交点詳報ブロック
はもう存在しないので、A形状をコピーして行なってオ
ア形状を作成し始めた始点のブロックと同じファイルに
戻る1つ前までコピーする。これによって、オア形状の
1つは作成できたことになる。
Then, the intersection flag (flg) of the intersection information block is set to "1". Then, since g1-ing is "3", tracing is started from the shape A [3] of the figure (A), but before that, an intersection information block having an intersection flag (flg) of "0" is searched for.
However, since the intersection detail report block with the intersection flag (flg) of "0" does not exist anymore, the A shape is copied and the OR shape is created. . This means that one of the OR shapes has been created.

このケースではオア形状は1つなので交点情報ブロック
はすべて使用済みである。
In this case, since there is one OR shape, all the intersection information blocks have been used.

しかし、オア形状が複数個できるケースではすべての交
点情報ブロックを使用する前にオア形状を作成し始めた
点に戻ってくる。この時はそこで1つのオア形状は作成
し終える。
However, in the case where a plurality of OR shapes can be created, it returns to the point where the OR shape was started to be created before using all the intersection information blocks. At this time, one OR shape is completed there.

ついで、まだ使用していない交点情報ブロックの交点情
報(sts)が相手の内から外つまりビットパターンが“0
110"の方の形状のインデックス(g1-ind,g2-ind)のブ
ロックから始めて上記と同じ手順を繰り返す。
Then, the intersection information (sts) of the intersection information block that has not been used is outside the other party, that is, the bit pattern is "0".
Repeat the same procedure starting from the block with the shape index (g1-ind, g2-ind) towards 110 ".

上記オア形状を求める手順であるが、始点の位置を、一
方の形状上の点で他方の形状の内部にある点を始点とし
て、オア形状を求める処理と同じことを行なえば、2つ
の形状の共通領域を求めるアンド処理となるし、両方の
形状の定義回転方向を逆にしておいて、始点をオア形状
と同じ、つまり、他方の形状外にある点から始めれば、
2形状の差を取る処理(DIFF処理)となる。
The procedure for obtaining the OR shape is the same as the processing for obtaining the OR shape, with the position of the starting point being the point on one shape inside the other shape as the starting point. It becomes AND processing to find the common area, and if the definition rotation directions of both shapes are reversed and the starting point is the same as the OR shape, that is, if it starts from a point outside the other shape,
This is a process (DIFF process) that takes the difference between the two shapes.

なお、これらの処理は、例えば、CAM等で用いることも
できる。
Note that these processes can also be used in, for example, CAM.

[発明の効果] 以上のように、この発明の領域加工方法によれば、各閉
曲線形状からその外側に工具径に応じた量オフセットし
たオフセット曲線形状を求め、上記オフセット曲線形状
相互が交差するか否かを判別し、上記オフセット曲線形
状相互が交差するときには、交差する第1のオフセット
曲線形状により囲まれる領域と第2のオフセット曲線形
状により囲まれる領域の共通領域を形成する合成オフセ
ット曲線形状を求めるオア処理を、複数の交差する部分
のそれぞれに行ない、全ての合成オフセット曲線形状に
沿って領域加工を行なうものであり、合成オフセット曲
線形状を求めるオア処理を、複数個求めるようにしたの
で、切削可能領域は全てもれなく切削できる領域加工が
できる。
[Effects of the Invention] As described above, according to the area machining method of the present invention, an offset curve shape that is offset from each closed curve shape by an amount corresponding to the tool diameter to the outside is obtained, and whether the offset curve shapes intersect each other. When it is determined whether or not the offset curve shapes intersect each other, a combined offset curve shape that forms a common area of the area surrounded by the intersecting first offset curve shape and the area surrounded by the second offset curve shape is intersected. The OR processing to be performed is performed on each of a plurality of intersecting portions, and the area processing is performed along all the combined offset curve shapes. All machinable areas can be machined so that all areas can be cut.

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

第1図はこの発明の一実施例による領域加工方法のため
の加工領域を工具半径分だけオフセットした形状を示す
説明図、第2図はこの発明の一実施例にかかる上記第1
図の形状のオア処理をした形状を示す説明図、第3図は
この発明の一実施例の領域加工方法におけるオア処理の
概略を示す説明図、第4図はこの発明の一実施例の領域
加工方法におけるオア処理の概略を示すフローチャー
ト、第5図から第7図はこの発明の一実施例の領域加工
方法のメモリー上の構造を示す説明図、第8図はこの発
明の一実施例の領域加工方法のための元図形を示す説明
図、第9図はこの発明の一実施例における領域加工方法
の図形を記憶するメモリーの説明図、第10図はこの発明
の一実施例の領域加工方法の2図形の形状の交点情報の
ステータスへのセットを示す説明図、第11図はこの発明
の一実施例の領域加工方法の2図形の形状情報のステー
タスへのセットを示す説明図、第12図はこの発明の一実
施例の領域加工方法のオア処理前後の形状を示す説明
図、第13図は従来の領域加工方法を示す説明図、第14図
は従来の加工領域を示す説明図、第15図は上記第14図に
示す領域の加工方法を示す動作の説明図、第16図は従来
の領域加工方法のオフセット曲線形状を示す説明図、第
17図は上記第16図に示すオフセット曲線形状の従来の領
域加工方法を示す説明図、第18図はこの発明の一実施例
及び従来例の領域加工方法を実現する数値制御装置を示
す全体構成図、第19図及び第20図は従来の領域加工方法
を示すフローチャート、第21図は従来の領域加工方法に
おけるオフセット曲線形状を求める処理を示す説明図、
第22図は従来の領域加工方法における交差するオフセッ
ト曲線形状を示す説明図、第23図は従来の領域加工方法
におけるオフセット曲線形状に交差する部分がない場合
の処理を示す説明図、第24図は従来の領域加工方法にお
けるオフセット曲線形状の交差が複数箇所ある場合を示
す説明図である。 図において、 OLC…外形形状、INC…閉曲線形状、INF,OFC…オフセッ
ト曲線形状、COFC…合成オフセット曲線形状、P…交差
点 である。 なお、図中、同一符号及び同一記号は同一または相当部
分を示すものである。
FIG. 1 is an explanatory view showing a shape in which a machining region for a region machining method according to an embodiment of the present invention is offset by a radius of a tool, and FIG. 2 is the first embodiment according to an embodiment of the present invention.
FIG. 3 is an explanatory view showing an OR-processed shape of the figure, FIG. 3 is an explanatory view showing an outline of the OR processing in the area processing method of one embodiment of the present invention, and FIG. 4 is an area of one embodiment of the present invention. FIG. 5 to FIG. 7 are flowcharts showing the outline of the OR processing in the processing method, FIG. 5 to FIG. 7 are explanatory views showing the structure on the memory of the area processing method of one embodiment of the present invention, and FIG. FIG. 9 is an explanatory view showing an original figure for the area processing method, FIG. 9 is an explanatory view of a memory for storing the figure of the area processing method in one embodiment of the present invention, and FIG. 10 is an area processing of one embodiment of the present invention. FIG. 11 is an explanatory diagram showing the setting of the intersection information of the shapes of the two figures of the method to the status; FIG. 11 is an explanatory diagram showing the setting of the shape information of the two figures of the area processing method of the embodiment of the present invention; FIG. 12 shows an area processing method according to an embodiment of the present invention. (A) Explanatory drawing showing the shape before and after processing, FIG. 13 is an explanatory drawing showing a conventional area processing method, FIG. 14 is an explanatory drawing showing a conventional processing area, and FIG. 15 is processing of the area shown in FIG. 14 above. FIG. 16 is an explanatory view of the operation showing the method, FIG. 16 is an explanatory view showing the offset curve shape of the conventional area processing method
FIG. 17 is an explanatory view showing a conventional area processing method of the offset curve shape shown in FIG. 16, and FIG. 18 is an overall configuration showing a numerical controller for realizing the area processing method of one embodiment of the present invention and the conventional example. FIG. 19, FIG. 19 and FIG. 20 are flowcharts showing a conventional area processing method, and FIG. 21 is an explanatory view showing processing for obtaining an offset curve shape in the conventional area processing method,
22 is an explanatory view showing an intersecting offset curve shape in the conventional area processing method, FIG. 23 is an explanatory view showing a process when there is no portion intersecting the offset curve shape in the conventional area processing method, FIG. 24 FIG. 6 is an explanatory diagram showing a case where there are a plurality of intersections of offset curve shapes in the conventional area processing method. In the figure, OLC ... Outer shape, INC ... Closed curve shape, INF, OFC ... Offset curve shape, COFC ... Combined offset curve shape, P ... Intersection. In the drawings, the same reference numerals and symbols indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】外形形状と、前記外形形状の内部に存在す
る少なくとも2つ以上の閉曲線形状とで挟まれた領域を
加工する領域加工方法において、 上記各閉曲線形状からその外側に工具径に応じた量オフ
セットしたオフセット曲線形状を求める段階と、 上記オフセット曲線形状の回転定義方向を揃える段階
と、 上記オフセット曲線形状相互が交差するか否かを判別す
る交点演算段階と、 上記オフセット曲線形状相互が交差する場合には、交差
する複数の交点を並び変える段階と、 交点を持つブロックの始点から交点までが第1のオフセ
ット曲線形状の内側か外側か及び交点から交点を持つブ
ロックの終点が第2のオフセット曲線形状の内側か外側
かとを判定し、並び変えられた交点に従い交差する第1
のオフセット曲線形状により囲まれる領域と第2のオフ
セット曲線形状により囲まれる領域の共通領域を形成す
る合成オフセット曲線形状を求めるオア処理段階と を有し、上記求められた合成オフセット曲線形状に沿っ
て領域加工を行なうことを特徴とする領域加工方法。
1. A region machining method for machining a region sandwiched between an outer shape and at least two closed curve shapes existing inside the outer shape, the method being based on a tool diameter from each of the closed curve shapes to the outside thereof. The offset curve shape that is offset by a certain amount, the step of aligning the rotation definition directions of the offset curve shape, the step of calculating an intersection point for determining whether the offset curve shapes intersect each other, and the offset curve shapes When intersecting, the step of rearranging a plurality of intersecting intersections, whether the start point of the block having the intersection point to the intersection point is the inside or outside of the first offset curve shape, and the end point of the block having the intersection point is the second point The inside or outside of the offset curve shape of the
An OR processing step of obtaining a combined offset curve shape that forms a common area of the area surrounded by the offset curve shape and the area surrounded by the second offset curve shape. A region processing method characterized by performing a region processing.
JP63308060A 1988-12-06 1988-12-06 Area processing method Expired - Fee Related JPH07104699B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63308060A JPH07104699B2 (en) 1988-12-06 1988-12-06 Area processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63308060A JPH07104699B2 (en) 1988-12-06 1988-12-06 Area processing method

Publications (2)

Publication Number Publication Date
JPH02153404A JPH02153404A (en) 1990-06-13
JPH07104699B2 true JPH07104699B2 (en) 1995-11-13

Family

ID=17976400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63308060A Expired - Fee Related JPH07104699B2 (en) 1988-12-06 1988-12-06 Area processing method

Country Status (1)

Country Link
JP (1) JPH07104699B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2080774T3 (en) * 1990-09-25 1996-02-16 Heidenhain Gmbh Dr Johannes PROCEDURE TO DETERMINE THE PATH CONTOUR OF THE UTIL FOR NUMERICAL CONTROL MACHINES.

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60127953A (en) * 1983-12-14 1985-07-08 Fanuc Ltd Regional work

Also Published As

Publication number Publication date
JPH02153404A (en) 1990-06-13

Similar Documents

Publication Publication Date Title
US5115400A (en) Cad/cam apparatus
US5150305A (en) Numerical control system providing graphic machining simulation
EP0175792B1 (en) Area machining method
JPS60127955A (en) Regional work
EP0166000B1 (en) Area machining method
JPH0152141B2 (en)
JP4276656B2 (en) CAD system, program for executing the CAD system, and recording medium recording the program
JPH07104699B2 (en) Area processing method
KR910007256B1 (en) Surface cutting method
KR910007274B1 (en) Surface cutting method
JPS63127853A (en) Method of calculating machining path
JP2629759B2 (en) Data generation method for numerical control machining
JPH11134014A (en) Nc data preparing device for cutting section left from cutting
JP3412850B2 (en) Tool path data creation device and method
JPH0457459B2 (en)
JPH069007B2 (en) NC data creation method for compound curved surface
JPS61105615A (en) Working area designating system of nc data generating device
JP2879383B2 (en) Electric discharge machining method and apparatus
JP2599206B2 (en) Numerical control information creation device
JPH0317709A (en) Cad/cam device
JPH10307615A (en) Automatic generating method for machining path of recessed groove position for cam
JPH1049214A (en) Machining process chart generating device
JPH0358858B2 (en)
WO2004038522A1 (en) Cad sysetm, program for running the system, and recording medium having the program recorded therein
JPH09160626A (en) Nc data generation system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees