JPH01255006A - Method for forming offset shape - Google Patents

Method for forming offset shape

Info

Publication number
JPH01255006A
JPH01255006A JP8135588A JP8135588A JPH01255006A JP H01255006 A JPH01255006 A JP H01255006A JP 8135588 A JP8135588 A JP 8135588A JP 8135588 A JP8135588 A JP 8135588A JP H01255006 A JPH01255006 A JP H01255006A
Authority
JP
Japan
Prior art keywords
shape
block
offset
closed loop
intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8135588A
Other languages
Japanese (ja)
Inventor
Shigeki Namikado
茂樹 南角
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 JP8135588A priority Critical patent/JPH01255006A/en
Publication of JPH01255006A publication Critical patent/JPH01255006A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To reduce the number of intersections, to simplify a shape separation processing, and to shorten the generating time of offset shape by handling a closed loop by separating from original shape. CONSTITUTION:Final shape inputted from a keyboard 204 is processed at a CPU 200 by a control program stored in a ROM 201a, and is stored in a RAM 202 as a final shape block string. The intersection of each block is found, and the closed loop formed at the intersection is separated. Furthermore, the intersection in the closed loop itself is found, and when the intersection exists, the closed loop formed by the intersection is separated. And it is judged whether a separated intersection is valid or invalid, and the offset shape is generated by a valid closed loop or another block not comprising the closed loop.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、与えられた最終形状に対して一定量だけオフ
セットした補正形状を作成するオフセット形状作成方法
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an offset shape creation method for creating a corrected shape that is offset by a fixed amount from a given final shape.

[従来の技術〕 第28図は従来のオフセット形状作成装置を示す構成図
である。図において、(200)は中央処理装置(CP
 U) 、(201)はコントロールプログラムを格納
したROM、 (202)は最終形状やオフセット形状
を格納すると共に、更にオフセット形状の計算に用いる
ためのワークエリアとなるRAM。
[Prior Art] FIG. 28 is a block diagram showing a conventional offset shape creation device. In the figure, (200) is a central processing unit (CP
U), (201) is a ROM that stores the control program, and (202) is a RAM that stores the final shape and offset shape, and also serves as a work area for use in calculating the offset shape.

(203)は最終形状データをキーボード(204)か
ら入力するための情報や、オフセット形状を表示するた
めのCRTである。
(203) is a CRT for displaying information for inputting final shape data from a keyboard (204) and offset shape.

第29図及び第30図は、マシニングセンターの輪郭加
工の説明図及びその工具中心形状の説明図である。図に
おいて(205)は素材、(206)は工具、(207
)は最終形状で、(208)は工具中心、(209)は
工具中心形状、(210)はオフセット量である。
FIG. 29 and FIG. 30 are explanatory diagrams of contour machining of a machining center and an explanatory diagram of the center shape of the tool. In the figure, (205) is the material, (206) is the tool, and (207)
) is the final shape, (208) is the tool center, (209) is the tool center shape, and (210) is the offset amount.

マシニングセンターの輪郭加工において与えられるのは
最終形状(207)のみてあり、このため工具(200
)の経路を制御するための形状、つまり工具中心形状(
209)を求めねばならない。この時、最終形状(20
7)に対して工具半径分たけオフセットした形状か工具
中心形状(209)であり、この形状かオフセット形状
と称される。
Only the final shape (207) is given in the contour machining of the machining center, and therefore the tool (200
), that is, the tool center shape (
209) must be found. At this time, the final shape (20
7), the shape is offset by the tool radius or the tool center shape (209), and this shape is called an offset shape.

第31図及び第32図はそのオフセット形状を得るため
の演算処理を示したフローチャートである。
FIGS. 31 and 32 are flowcharts showing arithmetic processing for obtaining the offset shape.

′!j434図の最終形状に対するオフセット形状を作
成する場合について第31図及び第32図のフローチャ
ートを参照しなから説明する。
′! The case of creating an offset shape with respect to the final shape in FIG. j434 will be described with reference to the flowcharts in FIGS. 31 and 32.

ここで、例えば第34図に示す最終形状はPO−Pl、
  −R2−Pa  −R4−R5−Pa  −R7−
R8−R9の最終形状データブロック列からなるものと
する。このデータをCRT (203)を見ながらキー
ボード(204)から入力すると、そのデータはRA 
M (202)に格納される。この最終形状データブロ
ック列の各ブロックのデータは、フラグ部及び形状部か
ら構成され(第3図及び第4図(A)(B)参照)、特
に形状部にはそのブロックの終点の座標値、その形状を
特定する方程式等が含まれている。その最終形状データ
ブロック列に対する最終オフセット形状データブロック
列は○〇−Of −01”CR1−CR2−08’−0
9となるか、以下この最終オフセット形状データブロッ
ク列を求める方法について説明する。
Here, for example, the final shape shown in FIG. 34 is PO-Pl,
-R2-Pa -R4-R5-Pa -R7-
It is assumed that the final shape data block sequence is R8-R9. If you input this data from the keyboard (204) while looking at the CRT (203), the data will be sent to the RA.
M (202). The data of each block in this final shape data block sequence consists of a flag part and a shape part (see Figures 3 and 4 (A) and (B)), and in particular, the shape part contains the coordinates of the end point of the block. , and equations that specify its shape. The final offset shape data block row for that final shape data block row is ○〇−Of −01”CR1−CR2−08′−0
The method for obtaining this final offset shape data block sequence will be described below.

まず、ROM(201)のコントロールプログラムに従
って、第34図の最終形状データブロック(以下ブロッ
クという)POに対してその最終形状の垂直方向にオフ
セット量だけシフトした始点の補正点00を求める(9
0)。次いで、ブロックP1に対する補正形状Of −
01’を作成する(91)。
First, according to the control program in the ROM (201), the correction point 00 of the starting point shifted by the offset amount in the vertical direction of the final shape is calculated for the final shape data block (hereinafter referred to as block) PO in FIG. 34 (9
0). Next, the correction shape Of − for block P1 is
01' is created (91).

その補正形状を前のブロックに相当する補正点00とつ
ないで、オフセットブロックの列00−01.7Ql°
を得る(92)。このようにしてブロックP2、Pa・
・、R9に対する補正形状を最終ブロックに到達するま
で求めてはっないてぃ< (93)。これらの形状は全
てRA M (202)に格納される。
Connect that correction shape with the correction point 00 corresponding to the previous block, and then connect the offset block row 00-01.7Ql°
(92). In this way, blocks P2, Pa・
・The correction shape for R9 is not calculated until the final block is reached (93). All these shapes are stored in RAM (202).

以上の処理の結果てきた形状が、オフセットブロック列
00−01−01”02−02°−03−03′−04
−04”05−05’−08−08゛−07−07°−
08−08°−09で結ばれた形状であり、これは単純
オフセット形状データブロック列と称される。
The shape obtained as a result of the above processing is the offset block row 00-01-01"02-02°-03-03'-04
-04"05-05'-08-08゛-07-07°-
This is a shape connected by 08-08°-09, and this is called a simple offset shape data block sequence.

なお、これらの演算処理(90)〜(93)は後述する
実施例と同し演算処理であり、詳細は実施例にて説明す
る。
Note that these arithmetic processes (90) to (93) are the same arithmetic processes as in the embodiment described later, and details will be explained in the embodiment.

次に、この形状に対して閉ループを分離する処理を、R
OM (201)内のコントロールプログラムに従って
行う(215)。
Next, the process of separating closed loops for this shape is performed by R
This is done according to the control program in OM (201) (215).

第32図はこの閉ループ分離処理の詳しいフローチャー
トである。ます上記単純オフセット形状データブロック
列によって形成される形状の交点を全て求める(211
i)。この交点を求めるには、例えばオフセット形状ブ
ロック01を形状1とし、形状2として次のオフセット
形状ブロックo1°として、形状1と形状2との交点の
有無を求める。
FIG. 32 is a detailed flowchart of this closed loop separation process. First, find all the intersection points of the shape formed by the above simple offset shape data block sequence (211
i). To find this intersection, for example, the offset shape block 01 is defined as shape 1, the next offset shape block o1° is defined as shape 2, and the presence or absence of an intersection between shape 1 and shape 2 is determined.

ここでは交点はないので、形状2を次のオフセット形状
ブロック02に進めて、同様にして交点の有無を求める
。このようにして形状2を順次進めて最終のブロック0
9まで上記の処理を繰り返す。
Since there is no intersection here, shape 2 is advanced to the next offset shape block 02, and the presence or absence of an intersection is similarly determined. In this way, shape 2 is advanced sequentially until the final block 0
Repeat the above process up to 9.

このように形状2を最後のオフセット形状ブロックまで
進めても他のオフセット形状ブロックとの交点かないと
きは、形状1(01)は他のオフセット形状ブロックと
の交点が存在しないことになる。
In this way, if shape 2 does not intersect with any other offset shape block even if it is advanced to the last offset shape block, shape 1 (01) does not have any intersection with another offset shape block.

そこで、形状1のオフセット形状ブロックを1つ進めて
01’とし、形状2を次のオフセット形状ブロック02
として、上記と同じ処理を繰り返す。
Therefore, the offset shape block of shape 1 is advanced by one to 01', and shape 2 is moved to the next offset shape block 02.
, repeat the same process as above.

この処理は、形状1が最終ブロックの1つ手前のブロッ
ク08゛で、且つ形状2が最終ブロック09になるまで
繰り返される。
This process is repeated until shape 1 is at block 08', which is one block before the final block, and shape 2 is at block 09, which is the last block.

このような演算処理により、交点はオフセットブロック
02と06°との交点CR1、オフセット形状ブロック
06“と08の交点CR2,02と08の交点CR3,
03と06°の交点CR4,03と08の交点CR5、
というように全ての交点CR1〜CR12までが求めら
れる。
Through such arithmetic processing, the intersection points are the intersection CR1 between offset blocks 02 and 06°, the intersection CR2 between offset shape blocks 06" and 08, the intersection CR3 between 02 and 08,
Intersection CR4 between 03 and 06°, CR5 intersection between 03 and 08,
All the intersection points CR1 to CR12 are obtained in this way.

次に、ここで得られた交点について交点テーブルか作成
される。この交点テーブルは交点の座標値とその交点が
オフセット形状ブロックの何番目のブロックと何番目の
ブロックとの交点であるかを示す。
Next, an intersection table is created for the intersection points obtained here. This intersection table shows the coordinate values of the intersection points and the intersection of which block and which block of the offset shape blocks the intersection points are.

例えば CRIの座標値 CR2の座標値・・・・・・02  
  0B’ oe’     og というようにテーブルが作成される。
For example, the coordinate value of CRI, the coordinate value of CR2...02
A table is created such as 0B'oe' og.

次いで、全ての閉ループを分離する(217)。この処
理に際しては単純オフセット形状データブロック列と上
記の交点テーブルとに基づいて閉形状テーブルを作成す
る。
Then, all closed loops are separated (217). In this process, a closed shape table is created based on the simple offset shape data block sequence and the above-mentioned intersection table.

その結果、形状は00−01−01°−CRI−CR2
−08’−09と、閉ループCRI −CR2−CR3
、CRI  −CR4−CR5、CR4−CR7−02
’、CR4二CR6−CRIO−CR7。
As a result, the shape is 00-01-01°-CRI-CR2
-08'-09 and closed loop CRI -CR2-CR3
, CRI-CR4-CR5, CR4-CR7-02
', CR42CR6-CRIO-CR7.

CRIO−CRII−07°、  CR5−CR8−C
R9−CRLI−CRIO,CR9−02−CRII、
  CR6−CR8−CR9、CR3−CR6−0,C
R2−06°−07−CR8−CR8−CR3、CR8
−On  −04−CR12−05°−0ff  −C
R7−CRIO−07°−CRII−02−CR9、C
R12−04’−05の12個の閉ループとに分離され
た閉形状テーブルが作成される。そして、各閉ループに
ついて、各ブロックの進行方向を示すフラグをセットし
ておく。
CRIO-CRII-07°, CR5-CR8-C
R9-CRLI-CRIO, CR9-02-CRII,
CR6-CR8-CR9, CR3-CR6-0,C
R2-06°-07-CR8-CR8-CR3, CR8
-On -04-CR12-05°-0ff -C
R7-CRIO-07°-CRII-02-CR9,C
A closed shape table separated into 12 closed loops of R12-04'-05 is created. Then, for each closed loop, a flag indicating the direction of progress of each block is set.

その後、各閉ループで第33図のように進行方向が一定
でない閉ループを削除する(21g)。更に、残ったも
ののうち、形状の連結が凹であるにもかかわらず、補正
形状同志に交点がないものには不正タグ(tag)を付
し、この不正tag付きの閉ループを削除する(219
)。このように閉ループを削除するのは、上記のような
進行方法が一定でない閉ループや不整tagが付された
閉ループが存在すると、他の補正形状に干渉して最終形
状に対して所定のオフセット量が維持できず削り過ぎる
という状態かおこるが、そのような状態の発生を防ぐた
めである。
After that, in each closed loop, closed loops whose traveling direction is not constant as shown in FIG. 33 are deleted (21g). Furthermore, among the remaining ones, even though the shape connection is concave, an invalid tag is attached to the corrected shapes that have no intersection, and the closed loop with this invalid tag is deleted (219
). The reason for deleting closed loops in this way is that if there are closed loops whose progression method is not constant as described above or closed loops with irregular tags, they will interfere with other correction shapes and cause a predetermined offset amount to the final shape. This is to prevent the occurrence of a situation where the material cannot be maintained and is cut too much.

以上の処理の後残ったオフセット形状ブロックによって
特定された形状をオフセット形状として出力する(22
0)。
After the above processing, the shape specified by the remaining offset shape block is output as an offset shape (22
0).

第34図の例では、残ったオフセット形状ブロックは0
0−01−Of’−CRI −CR2−08“−09と
なり、このオフセット形状データブロック列がオフセッ
ト形状として出力される。
In the example in Figure 34, the remaining offset shape blocks are 0
0-01-Of'-CRI-CR2-08"-09, and this offset shape data block sequence is output as an offset shape.

[発明が解決しようとする課題] 従来のオフセット作成方法は以上のようになされていた
ため、閉ループを分離するために、全ての交点を求めて
、その交点をもって構成される全ての閉ループを作成し
なければならず、更に各ブロックの進行方向を記録しな
ければならない等、処理が複雑であり演算時間が多くか
かる等の問題点があった。
[Problem to be solved by the invention] The conventional offset creation method was performed as described above, so in order to separate closed loops, it is necessary to find all the intersections and create all the closed loops made up of the intersections. In addition, there are problems in that the processing is complicated and requires a lot of calculation time, such as the need to record the direction of movement of each block.

この発明は上記のような問題点を解消するためになされ
たもので、閉ループを分離する処理を簡単・迅速にする
ことによって、オフセット形状の作成時間を短縮するこ
とを可能にしたオフセット形状作成方法を得ることを目
的とする。
This invention was made to solve the above-mentioned problems, and provides an offset shape creation method that makes it possible to shorten the offset shape creation time by simplifying and speeding up the process of separating closed loops. The purpose is to obtain.

[課題を解決するための手段] この発明に係るオフセット形状作成方法は、直線又は円
弧のブロックを含んだ最終形状データブロック列で特定
された最終形状に対するオフセット形状を作成する方法
において、最終形状の最初のブロックから順番に、該ブ
ロックに対して所定のオフセット量だけシフトさせた単
純オフセット形状データブロック列を作成する工程を有
する。
[Means for Solving the Problems] An offset shape creation method according to the present invention is a method for creating an offset shape for a final shape specified in a final shape data block sequence including straight line or circular arc blocks. The method includes a step of creating a simple offset shape data block sequence in which the block is shifted by a predetermined offset amount in order from the first block.

更に、前記単純オフセット形状データブロック列の各ブ
ロックについて他ブロックとの交点を順次求めていき、
その交点をもって形成される閉ループを抽出して分離す
ると共に、更に当該閉ループの交点を同様に順次求めて
いき、その交点をもって形成される閉ループを抽出して
分離するという処理を繰返す閉ループ分離処理工程と、
次いで、その分離された閉ループか有効か無効がを判定
する工程と、無効な閉ループを削除し、有効な閉ループ
及び閉ループを構成しないブロックによる最終オフセッ
トデータブロック列を作成する工程とを有する。
Furthermore, for each block in the simple offset shape data block sequence, intersection points with other blocks are sequentially determined,
A closed loop separation processing step in which a closed loop formed by the intersection points is extracted and separated, and the intersection points of the closed loops are similarly sequentially determined, and a closed loop formed by the intersection points is extracted and separated. ,
Next, the method includes a step of determining whether the separated closed loop is valid or invalid, and a step of deleting the invalid closed loop and creating a final offset data block sequence of valid closed loops and blocks that do not constitute a closed loop.

[作用コ この発明においては、単純オフセット形状データブロッ
ク列の各ブロックについての交点を求めて、その交点で
形成される閉ループを分離する。
[Operations] In this invention, the intersection points of each block of the simple offset shape data block sequence are determined, and the closed loop formed by the intersection points is separated.

その際にその閉ループは元の形状から切り離して取り扱
われる。そして、その分離された閉ループ自体に更に交
点か求められ、交点かあればその交点をもって形成され
る閉ループか分離される。そして、分離された閉ループ
がを効か無効かが判定され、有効な閉ループ、及び閉ル
ープを構成しない他のブロックによりオフセット形状か
作成される。
The closed loop is then treated separately from the original shape. Then, the separated closed loop itself is further searched for an intersection point, and if there is an intersection point, the closed loop formed by the intersection point is separated. Then, it is determined whether the separated closed loop is valid or invalid, and an offset shape is created using the valid closed loop and other blocks that do not constitute the closed loop.

[実施例] 以下この発明の一実施例を図に乱づいて説明する。第2
図はこの実施例の方法を実施するためのオフセット形状
作成装置の構成図であり、これはROM (201a)
に格納されたコントロールプログラムか第30図の装置
と相違するたけてあり、ハート構成自体は同一であるか
らその説明は省略する。
[Embodiment] An embodiment of the present invention will be described below with reference to the drawings. Second
The figure is a configuration diagram of an offset shape creation device for implementing the method of this embodiment, and this is a ROM (201a)
The control program stored in the device is different from the device shown in FIG. 30, but the heart configuration itself is the same, so a description thereof will be omitted.

次に動作について説明する。第20図のブロックPO−
Pl−P2−P3−P4−P5−P6−P7−P8−P
9を最終形状とする際のオフセット形状を作成する場合
を以下説明する。
Next, the operation will be explained. Block PO- in Figure 20
Pl-P2-P3-P4-P5-P6-P7-P8-P
The case of creating an offset shape when 9 is the final shape will be described below.

第2図のキーボード(204)から入力された第20図
の点po、pi、・ ・・、P9のX、Y座標値で示さ
れる最終形状は、ROM (201a)に格納されたコ
ントロールプログラムによってCP U (200)で
処理され、第1図に示す最終形状データブロック列Aと
してRAM (202)に記憶される。
The final shape indicated by the X and Y coordinate values of the points po, pi, ..., P9 in Fig. 20 input from the keyboard (204) in Fig. 2 is determined by the control program stored in the ROM (201a). It is processed by the CPU (200) and stored in the RAM (202) as the final shape data block sequence A shown in FIG.

この時の各ブロックの構造は例えば第3図の示すような
ものとなっており、各ブロックはフラグ部(11)と形
状部(12)からなっている。フラグ部(11)の構造
は例えば第4図(A)に示すように、ビット毎に形状が
直線かCW内円弧はCCW円弧を示すビット、1つ前の
ブロックの終点がらのX軸。
The structure of each block at this time is as shown in FIG. 3, for example, and each block consists of a flag part (11) and a shape part (12). The structure of the flag part (11) is, for example, as shown in FIG. 4(A), where each bit has a straight line or a CW arc indicates a CCW arc, and the X axis is from the end point of the previous block.

Y軸方向の増減を示すビット、後述する不正tagを示
すビット、最終形状データブロック列の最終ブロックで
あることを示すビット等からなっている。
It consists of a bit indicating an increase/decrease in the Y-axis direction, a bit indicating an invalid tag (described later), a bit indicating that the block is the final block of the final shape data block sequence, etc.

また、形状部(12)は第4図(B)に示すように各ブ
ロックのx、y終点座標値のデータ、そのブロック終点
と1つ前のブロック終点との形状を表すデータからなる
。例えば形状を表すデータは、形状か円弧の場合は円の
中心のx、y座標(Cx。
Further, the shape section (12), as shown in FIG. 4(B), consists of data on the x and y end point coordinate values of each block, and data representing the shape of the end point of that block and the end point of the previous block. For example, in the case of a shape or an arc, the data representing the shape is the x, y coordinates (Cx) of the center of the circle.

Cy)と半径r1形状が直線の場合は例えばヘッセの方
程式のような直線の方程式(COSθ x+sinθ 
x=d)の係数cos θ、 sinθ、dが入力され
る。なお、ここで始点つまり最初のブロックでは形状部
の終点座標1mx、yか形状の始点座標値を表し、他の
データは無意である。
Cy) and radius r1 If the shape is a straight line, for example, a straight line equation such as Hessian equation (COSθ x + sinθ
The coefficients cos θ, sin θ, d of x=d) are input. Note that at the starting point, that is, the first block, the end point coordinates 1 mx, y of the shape portion represent the starting point coordinate values of the shape, and other data are meaningless.

なお、このブロックのフォーマットは後述する単純オフ
セット形状データブロック列B等の各ブロックにおいて
も同様である。
Note that the format of this block is the same for each block such as a simple offset shape data block sequence B, which will be described later.

第5図は上記の最終形状データブロック列に対してオフ
セット形状を得るための処理を示したフローチャートで
ある。
FIG. 5 is a flowchart showing a process for obtaining an offset shape for the final shape data block sequence described above.

まず、始点ブロックPOに対する補正形状としてのオフ
セット形状00を作成して、第1図に示すように単純オ
フセット形状データブロッ・”′列Bの最初のブロック
として格納する(90)。この始点ブロックPOに対す
るオフセット形状ブロックOOは、その始点を形状の垂
直方向にオフセット量だけシフトするだけて得られる。
First, an offset shape 00 is created as a correction shape for the starting point block PO, and is stored as the first block of the simple offset shape data block "' column B as shown in FIG. 1 (90). This starting point block PO An offset shape block OO can be obtained by simply shifting its starting point in the vertical direction of the shape by the offset amount.

次いて、その次のブロックに対するオフセット形状を作
成する(91)。そして、作成されたオフセット形状ブ
ロックは順次格納してつないでいき、単純オフセット形
状データブロック列Bを形成してい< (92)。この
ような処理を最終のブロックP9まで繰り返す(93)
Next, an offset shape for the next block is created (91). Then, the created offset shape blocks are sequentially stored and connected to form a simple offset shape data block sequence B (92). This process is repeated until the final block P9 (93)
.

ところで、この各オフセット形状ブロックの作成は、第
6図〜第10図の説明図に示される方法により行われる
。直線のブロックに対するオフセット形状は、第6図及
び第7図のように元の形状(最終形状)を進行方向に対
して右又は左にシフトした形状であり、直線の傾きは変
化させないで、原点との距離のみをオフセット量たけ増
減することにより作成される。
By the way, each offset shape block is created by the method shown in the explanatory diagrams of FIGS. 6 to 10. The offset shape for a straight line block is a shape in which the original shape (final shape) is shifted to the right or left with respect to the direction of travel, as shown in Figures 6 and 7, and the slope of the straight line is unchanged and the original shape It is created by increasing or decreasing only the distance to the offset amount.

円弧に対するオフセット形状は、第8図及び第9図のよ
うに円の中心は同一で、半径のみをオフセット量だけ増
減した形状である。なお、第8図及び第9図はCW内円
弧例であるか、CCW円弧の時は右側補正と左側補正か
逆になるだけであり、同様にして作成される。
The offset shape for the circular arc is such that the center of the circle is the same and only the radius is increased or decreased by the offset amount, as shown in FIGS. 8 and 9. Note that FIGS. 8 and 9 are examples of circular arcs within CW, or in the case of CCW circular arcs, the right side correction and left side correction are simply reversed, and are created in the same manner.

また、円弧の内側にオフセットする場合で、オフセラ1
−量か円弧の半径より大きい時は、第11図のようなオ
フセット形状として1つ前のブロックと直線でつなぎ、
そのブロックのフラグ部の不正tagを1にセラl−し
ておく。
Also, when offset to the inside of the arc, offset 1
- If the amount is larger than the radius of the arc, connect it with the previous block with a straight line as an offset shape as shown in Figure 11,
The invalid tag in the flag section of the block is set to 1.

また、あるブロックに対するオフセット形状とは、終点
に対するオフセット形状として、その次のオフセット形
状の始点までを作成するものとする。この時、あるブロ
ックとその次のプロ・ツクの形状の連結か凸の時は第1
1図のPに対するオフセット形状は01,02の2ブロ
ツクである。
Furthermore, an offset shape for a certain block is defined as an offset shape for an end point up to the start point of the next offset shape. At this time, if the shape of a certain block and the next block are connected or convex, the first
The offset shape for P in FIG. 1 is two blocks 01 and 02.

また、第12図のように連結が凹の時は、前ブロツク終
点と当該ブロック終点とのオフセット形状と、当該ブロ
ック終点と次ブロツク終点のオフセット形状とに交点か
あれば、その交点かオフセット形状ブロックとなる。
In addition, when the connection is concave as shown in Fig. 12, if there is an intersection between the offset shape of the previous block end point and the block end point, and the offset shape of the relevant block end point and the next block end point, the intersection point or the offset shape It becomes a block.

更に、第13図のようにオフセット形状ブロック同士に
交点がない時は、そのブロック終点のオフセット形状ブ
ロックと次のブロック始点のオフセット形状ブロックの
2ブロツクがオフセット形状ブロックとなる。但し、そ
の時次のブロック始点のオフセット形状ブロックに対し
てはそのブロックのフラグ部の不正tagを1にセット
しておく。
Furthermore, as shown in FIG. 13, when there is no intersection between offset-shaped blocks, two blocks, the offset-shaped block at the end point of the block and the offset-shaped block at the start point of the next block, become offset-shaped blocks. However, at this time, for the offset shape block at the start point of the next block, the invalid tag in the flag section of that block is set to 1.

このように、最終形状に対して所定のオフセット量が維
持できなくなる場合にフラグ部の不正tagを1にセッ
トしておく。従って、例えば閉ループを構成するブロッ
クの進行方向(回転方向)が異なる場合(第27図、第
33図)も該当する。
In this way, if a predetermined offset amount cannot be maintained with respect to the final shape, the illegal tag in the flag section is set to 1. Therefore, for example, this also applies to the case where the moving directions (rotation directions) of the blocks forming the closed loop are different (FIGS. 27 and 33).

また、第14図のように形状が滑らかな時は、あるブロ
ックに対するオフセット形状をそのまま生成する。なお
、第11図から第14図においてPが該当ブロック、0
又は01,02がオフセット形状ブロックである。
Furthermore, when the shape is smooth as shown in FIG. 14, the offset shape for a certain block is generated as is. In addition, in FIGS. 11 to 14, P is the corresponding block, 0
Or 01 and 02 are offset shape blocks.

また、この時ブロックの連結部の凸又は凹の判定は、第
16図のように対象ブロックと次のブロックに対して、
そのブロック形状に垂直にある長さのベクトルVl、V
2をたてて、その外積VIXV2を得て、その符号の正
・負によって判定する。
In addition, at this time, the determination of whether the connecting part of the blocks is convex or concave is made for the target block and the next block as shown in FIG.
Vectors of length perpendicular to the block shape Vl, V
2, obtain the cross product VIXV2, and determine whether the sign is positive or negative.

従って、ブロックP1に対しては次のブロックP2連結
が凸であるから、第6図及び第11図に示された方法に
よりオフセット形状ブロック01.01°が得られる。
Therefore, since the connection of the next block P2 to block P1 is convex, an offset-shaped block 01.01° is obtained by the method shown in FIGS. 6 and 11.

ブロックP2に対しては次のブロックP3との連結が凹
で、オフセット形状同志に交点がないから、第13図に
示された方法によりオフセット形状ブロック02.02
°が得られる。
For block P2, the connection with the next block P3 is concave, and since there is no intersection between the offset shapes, offset shape block 02.02 is connected to block P2 by the method shown in FIG.
° is obtained.

ブロックP3に対しては次のブロックP4との連結が凸
であるから、第6図及び第11図に示された方法により
オフセット形状ブロック03.03゜が得られる。
Since the block P3 is connected to the next block P4 in a convex manner, an offset-shaped block of 03.03° is obtained by the method shown in FIGS. 6 and 11.

ブロックP4に対しては次のブロックPとの連結が凹で
、オフセット形状同志に交点がないから、第13図に示
された方法によりオフセット形状ブロック04.04’
が得られる。ブロックP5に対してもP4と同様な方法
によりオフセット形状ブロック05.05’が得られる
。ブロックP6に対しては次のブロックP7との連結が
凸であるから、第11図に示された方法によりオフセッ
ト形状ブロックo6.06°が得られる。
For block P4, since the connection with the next block P is concave and there is no intersection between the offset shapes, offset shape block 04.04' is processed using the method shown in FIG.
is obtained. For block P5, an offset-shaped block 05.05' is obtained by the same method as for block P4. Since the block P6 is connected to the next block P7 in a convex manner, an offset-shaped block o6.06° is obtained by the method shown in FIG.

更に、ブロックP7に対しては次のブロックとP8の連
結が凹で、オフセット形状同志に交点がないから、第1
3図に示された方法によりオフセット形状ブロック07
.07’が得られる。ブロック08に対しては次のブロ
ックP9との連結が凸であるから、第11図に示された
方法によりオフセット形状ブロック08.08°が得ら
れる。ブロックP9に対して第6図に示された方法によ
りオフセット形状ブロックo9が得られる。
Furthermore, for block P7, the connection between the next block and P8 is concave, and there is no intersection between the offset shapes, so the first
Offset shape block 07 by the method shown in Figure 3
.. 07' is obtained. Since the block 08 is connected to the next block P9 in a convex manner, an offset-shaped block 08.08° is obtained by the method shown in FIG. An offset-shaped block o9 is obtained using the method shown in FIG. 6 for block P9.

以上のようにして作成された各オフセット形状ブロック
は、順次格納されて第1図の単純オフセット形状ブロッ
ク列Bが形成される(92)。
The offset shape blocks created as described above are sequentially stored to form the simple offset shape block sequence B shown in FIG. 1 (92).

この時、各オフセット形状ブロックのフラグ部のX軸、
Y軸増減フラグも作成する。また、元の形状のX、Y増
減フラグとオフセット形状の増減フラグか異なる時はフ
ラグ部の不正tagを1にセットする。
At this time, the X axis of the flag part of each offset shape block,
A Y-axis increase/decrease flag is also created. Further, if the X, Y increase/decrease flag of the original shape is different from the increase/decrease flag of the offset shape, the illegal tag in the flag section is set to 1.

例えば第16図のブロックP2のX、Y増減フラグとP
2に対するオフセット形状02のX、 Y方向増減フラ
グとは異なるため、このようなときには不正tagを1
にセットする。従って、第20図の例では、オフセット
形状ブロック02°、04′、05°、07°の不正t
agか1にセットされる。
For example, the X, Y increase/decrease flag of block P2 in FIG.
This is different from the X and Y direction increase/decrease flag of offset shape 02 for 2, so in such a case, set the invalid tag to 1
Set to . Therefore, in the example of FIG. 20, the incorrect t of offset shape blocks 02°, 04', 05°, and
ag is set to 1.

以上の演算動作を最終形状まで繰り返されるか<93)
、最終形状か古うかの判断はフラグ部のビット15か1
にセットされているかとうがて判定される。
The above calculation operations are repeated until the final shape <93)
, determine whether the final shape is old or not by bit 15 or 1 in the flag section.
It will be determined later whether it is set to .

次に、この単純オフセット形状チータブロック列Bに対
して閉ループ分離処理を行う(94)。この閉ループ分
離処理は以下の考え方に基づいて行われる。
Next, closed loop separation processing is performed on this simple offset shape cheater block row B (94). This closed loop separation process is performed based on the following idea.

ここで、ある連続したデータブロック列を最初から順番
に調べていって、あるブロックと他のブロックか交点を
持てばその間は閉ループであり、その閉ループは元の形
状とは独立して考えることができる。つまり、その閉ル
ープが独立していれば分!した閉ループのブロックの進
行方向がバラバラになることがなく、閉ループを構成す
るブロック間の進行を考慮する必要がなくなる。
Here, when we examine a series of consecutive data blocks in order from the beginning, if a block has an intersection with another block, it is a closed loop, and that closed loop can be considered independently of the original shape. can. In other words, if the closed loops are independent, it will be a minute! The progress directions of the blocks in the closed loop do not become inconsistent, and there is no need to consider the progress between the blocks forming the closed loop.

ここで、例えば第17図で、閉ループを含む可能性のあ
るデータブロック列を(AA)として、ブロックP1と
P2とか交点を持てば、(AA)は(B B)の閉ルー
プと(CC)の閉ループとに分離できる。また、−旦分
離されて2つに分かれれば、その一方の分離形状が他の
分離形状と交点があったとしてもそれは考えなくても良
い。各々分離された形状内でのみ、さらに分離が起きる
かどうかのみを考えれば良い。
For example, in FIG. 17, if (AA) is a data block sequence that may include a closed loop, and blocks P1 and P2 have an intersection, (AA) is the closed loop of (B B) and the intersection of (CC). It can be separated into closed loop. Further, once the shape is separated and divided into two, even if one of the separated shapes has an intersection with the other separated shape, there is no need to consider it. It is only necessary to consider whether further separation occurs within each separated shape.

このような考え方で閉ループを分離すると、求めねばな
らない交点は従来に比べて非常に少くなる。
If closed loops are separated using this approach, the number of intersections that must be found will be far fewer than in the past.

第18図及び第19図は上記の閉ループの分離=  1
9 − 処理のフローチャートを示すものである。
Figures 18 and 19 show the above closed loop separation = 1
9 - shows a flowchart of the process.

第18図において、まず最初に交点計算形状1としてブ
ロック01の形状を採用する(100)。これは比較基
準となるブロックを指定する処理である。次いて、交点
計算形状2として交点計算形状1の次のブロック、ここ
では01′の形状を採用する( 1. OI)。この後
側交点計算形状(01゜OlNの交点を求め(1,02
) 、その有無を判定する(103)。
In FIG. 18, first, the shape of block 01 is adopted as intersection calculation shape 1 (100). This is a process of specifying a block to be used as a comparison standard. Next, the block next to the intersection point calculation shape 1, here the shape 01', is adopted as the intersection point calculation shape 2 (1. OI). Find the intersection of this rear intersection calculation shape (01°OlN (1,02
), its presence or absence is determined (103).

ここで、交点計算形状1と2との交点の有無の判定は、
各ブロックの形状部に代数式(第4図(B)参照)から
求められ、実数の解のない場合や、実数の解か得られた
場合であってもそれか両ブロック上にない場合には交点
かないものとして判定される。
Here, the determination of the presence or absence of an intersection between the intersection point calculation shapes 1 and 2 is as follows:
The shape part of each block is determined from the algebraic formula (see Figure 4 (B)), and if there is no real number solution, or even if a real number solution is obtained, it is not on both blocks, the intersection point It is judged as ephemeral.

ここで、オフセット形状ブロック01の形状とオフセッ
ト形状ブロツ′り01°の形状とに交点はないので、第
19図の処理(110)にとぶ。この処理(110)で
は、交点計算形状2が最終形状であるか否かが判定され
るか、ここで01゛は最終形状ではないので(110)
 、交点計算形状2として次のオフセット形状ブロック
02を採用する(1.+−1,)。以下上記と同様な処
理の流れで交点計算形状2がオフセット形状ブロック0
9となる( 102,103.1.10゜111)。こ
のようにしてオフセット形状ブロック01の形状と他の
オフセット形状ブロックOf’、02.02°・・・・
・・・・・08゛、09の形状との交点を順次求めてい
くが、オフセント形状ブロック01の形状は他のオフセ
ット形状ブロック形状と交差していないことが分かる。
Here, since there is no intersection between the shape of the offset shape block 01 and the shape of the offset shape block 01°, the process jumps to step (110) in FIG. 19. In this process (110), it is determined whether the intersection point calculation shape 2 is the final shape or not, since 01゛ is not the final shape (110)
, the following offset shape block 02 is adopted as the intersection point calculation shape 2 (1.+-1,). Below, in the same process flow as above, the intersection calculation shape 2 is offset shape block 0
It becomes 9 (102,103.1.10°111). In this way, the shape of offset shape block 01 and other offset shape blocks Of', 02.02°...
...The intersections with the shapes 08' and 09 are sequentially found, and it can be seen that the shape of the offset shape block 01 does not intersect with any other offset shape block shape.

オフセット形状ブロック09は最終形状なので(110
) 、次の処理に進み、交流計算形状1は単純オフセッ
ト形状データブロック列の最終ブロックの1つ前のブロ
ックあるか否かが判定される(112)。ここでは交流
計算形状1に相当するオフセット形状ブロック01は最
終ブロックの1つ前のブロックでないので、次の処理に
進む。次の処理では交点計算形状1として01の次のブ
ロック01°を採用しく113) 、再び処理(101
)へ進む。
Since offset shape block 09 is the final shape (110
), proceeding to the next process, it is determined whether AC calculation shape 1 is one block before the final block in the simple offset shape data block sequence (112). Here, the offset shape block 01 corresponding to the AC calculation shape 1 is not the block immediately before the final block, so the process proceeds to the next step. In the next process, the block 01° next to 01 is adopted as the intersection calculation shape 1 (113), and the process is repeated (101
).

この処理(101)では、交点計算形状2として現在の
交点計算形状1のブロック01’の次のブロックである
02を採用する。
In this process (101), block 02, which is the next block of block 01' of the current intersection point calculation shape 1, is adopted as the intersection point calculation shape 2.

以下交点か求まるまで上記と同様な処理を行う。The same process as above is then performed until an intersection point is found.

結局交点か求まるのは計算形状1が02、計算形状2が
03°の時である。この時は処理(104)に進み、前
に述べた考え方に従って形状を2つに分離する。分離さ
れた閉ループ形状は第3図の閉ループ分離用ワークエリ
アCに格納されていく。
In the end, the intersection point is found when calculated shape 1 is 02 degrees and calculated shape 2 is 03 degrees. In this case, the process proceeds to step (104), where the shape is separated into two parts according to the concept described above. The separated closed loop shapes are stored in the closed loop separation work area C shown in FIG.

この時オフセット形状ブロック02と03°の交点をC
ROとすると、ブロックCR0,02゜02°が閉ルー
プ分離用ワークエリアCに格納される。
At this time, the intersection of offset shape blocks 02 and 03° is C
If RO, blocks CR0, 02°02° are stored in the closed loop separation work area C.

次いで、この形状がさらに閉ループに分離されるかどう
かを今までと同様の処理で行い(105)、これ以上分
離されないことが確認されると(106)、その後分離
された閉ループのチエツクを行う(107)。ここで、
分離された閉ループに更に交点があるかどうかの演算処
理は、閉ループ内のブロックについて交点計算形状1と
交点計算形状2とを上記と同様に設定してそれらの間で
交点の有無を求めていく。
Next, the same process as before is performed to see if this shape is further separated into closed loops (105), and when it is confirmed that it will not be separated any further (106), the separated closed loops are checked (106). 107). here,
The calculation process for determining whether there are further intersections in the separated closed loop is performed by setting intersection calculation shape 1 and intersection calculation shape 2 for the blocks in the closed loop in the same manner as above, and determining the presence or absence of an intersection between them. .

この閉ループチエツク(107)とは分離されたオフセ
ット形状ブロックに不正tagがあるブロックがあるか
否かを判定して、1つでも不正tagを持ったブロック
があればその閉ループを削除し、有効な閉ループのみを
出力する(lQ’l)する。
This closed loop check (107) determines whether or not there is a block with an invalid tag in the separated offset shape blocks, and if there is a block with even one invalid tag, that closed loop is deleted and the block is valid. Output only the closed loop (lQ'l).

この閉ループCR0,02,02°には第21図に示す
ようにオフセット形状ブロック02°に不正tag  
(図ではX印)があり、他のオフセット形状ブロックと
干渉し無効であるから、この閉ループは削除され、出力
されない。
This closed loop CR0, 02, 02° has an invalid tag in the offset shape block 02° as shown in Figure 21.
(marked with an X in the figure), and since it interferes with other offset shape blocks and is invalid, this closed loop is deleted and not output.

次に交点計算形状2は単純オフセット形状データブロッ
ク列の最終ブロックであるかどうか判断され(110)
 、交点計算形状2がオフセット形状ブロック09まて
到達していると、続いて、交点計算形状1が単純オフセ
ット形状データ列の最終ブロックの1つ手前のオフセッ
ト形状ブロック08゜であるかどうかについて判断され
る(112)。ここでは、交点計算形状1はオフセット
形状ブロック02であり、交点計算形状1としてオフセ
ット形状ブロック02゛を設定する(113)。
Next, it is determined whether the intersection point calculation shape 2 is the last block in the simple offset shape data block sequence (110).
, if the intersection point calculation shape 2 has reached the offset shape block 09, it is then determined whether the intersection point calculation shape 1 is the offset shape block 08°, which is one block before the final block of the simple offset shape data string. (112). Here, the intersection point calculation shape 1 is the offset shape block 02, and the offset shape block 02' is set as the intersection point calculation shape 1 (113).

以上のようにして残された単純オフセット形状データ列
00−0f−01’−CRO−03°・・・・・・・・
・・・・09に対して同様な処理を行っていく。
Simple offset shape data string 00-0f-01'-CRO-03° left as above...
....Similar processing is performed for 09.

そして、次の交点が見つかるのはブロックCROと06
゛との交点CRIである。第22図に示すように、この
交点CR1をもって構成される閉ループはブロックCR
−03−04−04”−05−05’−06−CRIか
らなり、そしてその閉ループ中に交点CR2を有し更に
閉ループを含んでいるので、第23図の閉ループCR2
−04’−05と、第24図の閉ループCRO−03・
・・・・・06−CRIとに分離される。しかし、各閉
ループには不正tag(X印)が付されたブロック04
°、CR2,05°が含まれているのでどちらも削除さ
れる。
Then, the next intersection is found with block CRO and 06
The intersection point with ゛ is CRI. As shown in FIG. 22, the closed loop formed by this intersection CR1 is block CR1.
-03-04-04"-05-05'-06-CRI, and has an intersection CR2 in the closed loop and further includes a closed loop, so the closed loop CR2
-04'-05 and the closed loop CRO-03 in Figure 24.
...Separated into 06-CRI. However, each closed loop has block 04 with an incorrect tag (X mark).
°, CR2,05° are included, so both are deleted.

次の交点が見つかるのはオフセット形状ブロック0θ°
と08との交点CR3である。この交点をもって構成さ
れる閉ループは、第25図に示すように、オフセット形
状ブロックo6°−07−07゜−CR3からなる。し
かし、この閉ループにも不正tag(X印)が付された
オフセット形状ブロック07°が含まれているので削除
される。
The next intersection is found in the offset shape block 0θ°
The intersection point CR3 between and 08 is CR3. As shown in FIG. 25, the closed loop formed by this intersection point consists of offset shaped blocks o6°-07-07°-CR3. However, since this closed loop also includes the offset shape block 07° to which the incorrect tag (X mark) has been attached, it is deleted.

以上のようにして第22図〜第25図の各閉ループが削
除されると、第26図に示されるオフセットブロック列
00−01−CRI −CR3−08°−09の補正形
状が作成され、これが最終オフセット形状データブロッ
ク列D(第1図)として出力され、これが例えばNCデ
ータとして使用される。
When each closed loop shown in FIGS. 22 to 25 is deleted in the above manner, a correction shape of the offset block sequence 00-01-CRI-CR3-08°-09 shown in FIG. 26 is created, and this The final offset shape data block sequence D (FIG. 1) is output, and this is used, for example, as NC data.

この最終オフセット形状データ列りに基づいて工具の中
心位置を制御すれば最終形状を削り過ぎることはなく、
適切な切削加工が行われる。勿論工具の径以下の部分は
削れない部分も出てくるが、それは改めて径の小さい工
具で削ればよい。つまり、このオフセット形状は工具の
大きさの関係で削れない部分(例えば第20図のP3−
P6等)以外は可能な限り削ることができる。
If the center position of the tool is controlled based on this final offset shape data array, the final shape will not be cut too much.
Appropriate machining is performed. Of course, there will be some parts that cannot be cut below the diameter of the tool, but you can cut those parts again using a tool with a smaller diameter. In other words, this offset shape is a part that cannot be cut due to the size of the tool (for example, P3-
P6, etc.) can be removed as much as possible.

第20図の交点CRO〜CR8と第34図の交点CRO
〜CR12とを比較すれば明らかなように、この実施例
においてはその交点の数が著しく減少しており、その演
算処理時間の短縮化が図られていることか分かる。
Intersections CRO to CR8 in Figure 20 and intersections CRO in Figure 34
As is clear from a comparison with .about.CR12, the number of intersection points is significantly reduced in this embodiment, indicating that the calculation processing time is reduced.

ところで、上記の実施例の演算処理は第20図の形状た
けてなく、例えば第27図のような入力形状自体か閉ル
ープの場合に対しても適用できる。
By the way, the arithmetic processing of the above embodiment is applicable not only to the shape shown in FIG. 20 but also to the case where the input shape itself is a closed loop as shown in FIG. 27, for example.

但し、入力形状か閉ループの場合は分離した閉ループの
回転方向が入力形状の回転方向と異なる時も、閉ループ
に不正tagを持つ場合と同様に閉ループを削除する条
件に加える必要がある。これは、分離された閉ループが
正常(有効)であれば、必ず元の最終形状の進行方向と
同一になるが、同一ない場合はそのオフセット形状ブロ
ックの形状を工具の刃先かそのままなそると、最終形状
を余分に削ってしまうという事態に対処するためである
However, if the input shape is a closed loop, even if the rotation direction of the separated closed loop is different from the rotation direction of the input shape, it is necessary to add it to the conditions for deleting the closed loop, as in the case where the closed loop has an invalid tag. If the separated closed loop is normal (valid), the direction of movement will always be the same as the original final shape, but if it is not the same, if the shape of the offset shape block is traced as it is by the cutting edge of the tool, This is to deal with the situation where the final shape is cut out excessively.

従って、第27図の例では入力形状かCCWなのに対し
て3つの閉ループの内オフセット形状ブロック03−0
3′−09たけがCWなので削除することになる。
Therefore, in the example of FIG. 27, the input shape is CCW, while the offset shape block 03-0 of the three closed loops is
3'-09 is CW, so it will be deleted.

また、第2図のオフセット作成装置の構成図ては、コン
トロールプログラムはROM (20]、a)に格納し
たが、当然これもRA M (202)に格納しても良
い。
Further, in the block diagram of the offset creation device shown in FIG. 2, the control program is stored in the ROM (20), a), but it may also be stored in the RAM (202).

また、上気実施例ではマシニングセンターでの工具径補
正について述べたか、旋盤のノーズR補正等、あるる形
状のオフセット形状を求める場合には全てに適用できる
。また、データブロックの構造もむろん単なる一例であ
り、フラグ部のビ・ノド毎の情報も全て別の領域に割り
当てても良いし、形状部も円の時のみ図形の方程式を持
つようにして直線の時は終点座標値のみを持つようにし
ても良い。
Furthermore, in the upper air embodiment, the correction of the tool diameter in a machining center is described, but the present invention can be applied to all cases where an offset shape of a certain shape is determined, such as correction of the nose radius of a lathe. In addition, the structure of the data block is of course just an example, and all the information for each bit and node in the flag section may be assigned to another area, and the shape section may have a shape equation only when it is a circle, so that it is straight. In this case, it may be possible to have only the end point coordinate value.

[発明の効果] 以上のようにこの発明によれば単純オフセット形状デー
タブロック同士が交点を持てば、その交点により閉ルー
プが形成されており、その閉ループは元の形状から切り
離して取り扱うようにしたため交点の数か少くなり、形
状分離処理が簡略になったため、閉ループ分離処理が速
くなった。そのため、オフセット形状の作成処理時間も
短縮されている。
[Effects of the Invention] As described above, according to the present invention, if simple offset shape data blocks have an intersection, a closed loop is formed by the intersection, and since the closed loop is treated separately from the original shape, the intersection The closed-loop separation process became faster because the number of ``shapes'' was reduced and the shape separation process was simplified. Therefore, the processing time for creating the offset shape is also shortened.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の実施例において第2図の装置のRA
Mの記憶されるブロック列の説明図、第2図はこの発明
の一実施例に係る方法を実施するオフセット形状作成装
置の構成図、第3図は形状データブロックの構造説明図
、第4図(A)は形状データブロックのフラグ部の構造
説明図、第4図(b)は形状データブロックの形状部の
構造説明図、第5図は前記実施例の方法を示したフロー
チャート、第6図〜第15図はオフセット形状の作成方
法を示した説明図、第16図は凸及び凹部の連結の判断
する方法の説明図である。 第17図は閉ループ分離処理の考え方を示した説明図、
第18図及び第19図は第5図の閉ループ分離処理の詳
細を示したフローチャート、第20図は最終形状及びオ
フセット形状の相対関係を示した説明図、@21図〜第
26図は閉ループ形状の分離及び有効判断の説明図、@
27図は他の実施例のオフセット形状の説明図である。 第28図は従来のオフセット形状作成装置の構成図、第
29図はマシニングセンターの輪郭加工の説明図、第3
0図はその工具中心形状の説明図、第31図及び第32
図は従来のオフセット形状を求めるための演算処理を示
したフローチャート、第34図は最終形状とオフセット
形状との相対関係を示した説明図である。 なお、図中同一符号は同−又は相当部を示すものとする
。 代理人 弁理士 佐々木 宗 冶 匹2 筑 1 日 第2図 第3図 @Kn<eJIIQFQ    @E6(F’f’li
LfrFIlPn−1 0n−1 −i−7で1ト量 円のf糀JI7iの壜台のオフぞ一/ )形状゛第13
図 第16図 P5   P4 第21図 第23図 第22図 第24図 P5  P4 第25図 PI          PO 第26図 第30図 第31図 第32図 第33図 09    08’ 第34図 手続補正書(方式) 、事件の表示 特願昭63−081355号 、発明の名称 オフセット形状作成方法 、補正をする者 事件との関係 特許出願人 住 所    東京都千代田区丸の内二丁目2番3号名
 称 (601)三菱電機株式会社 代表者 志岐守哉 、代理人 住 所    東京都港区虎ノ門五丁目8番6号アミタ
ビル 電話 東京(03)459−0211 氏 名   (6127)弁理士 佐々木 宗 治、補
正命令の日付  昭和63年6月 8日(発送臼  昭
和63年6月28日) 2補正の対象 明細書の「図面の簡単な説明」の欄 7、補正の内容 明細書第30頁第6行「ト、」の後に、「第33図は進
行方向か一定でない閉ループの説明図、」を挿入する。 ノーーーゝ\    l:l l−
FIG. 1 shows the RA of the apparatus shown in FIG. 2 in an embodiment of the present invention.
FIG. 2 is a configuration diagram of an offset shape creation device that implements a method according to an embodiment of the present invention. FIG. 3 is an explanatory diagram of the structure of a shape data block. FIG. 4 (A) is an explanatory diagram of the structure of the flag part of the shape data block, FIG. 4(b) is an explanatory diagram of the structure of the shape part of the shape data block, FIG. 5 is a flowchart showing the method of the above embodiment, and FIG. 15 is an explanatory diagram showing a method of creating an offset shape, and FIG. 16 is an explanatory diagram of a method of determining connection of convex and concave portions. FIG. 17 is an explanatory diagram showing the concept of closed-loop separation processing,
Figures 18 and 19 are flowcharts showing details of the closed loop separation process in Figure 5, Figure 20 is an explanatory diagram showing the relative relationship between the final shape and the offset shape, and Figures 21 to 26 are closed loop shapes. An explanatory diagram of separation and validity judgment, @
FIG. 27 is an explanatory diagram of the offset shape of another embodiment. Fig. 28 is a configuration diagram of a conventional offset shape creation device, Fig. 29 is an explanatory diagram of contour processing of a machining center, and Fig. 3
Figure 0 is an explanatory diagram of the center shape of the tool, Figures 31 and 32.
The figure is a flowchart showing a conventional calculation process for determining an offset shape, and FIG. 34 is an explanatory diagram showing the relative relationship between the final shape and the offset shape. Note that the same reference numerals in the figures indicate the same or equivalent parts. Agent Patent Attorney So Sasaki Yato 2 Chiku 1st Figure 2 Figure 3 @Kn<eJIIQFQ @E6 (F'f'li
LfrFIlPn-1 0n-1 -i-7 is the off of the bottle stand of 1 ton of yen f koji JI7i / ) shape ゛ No. 13
Figure 16 P5 P4 Figure 21 Figure 23 Figure 22 Figure 24 P5 P4 Figure 25 PI PO Figure 26 Figure 30 Figure 31 Figure 32 Figure 33 09 08' Figure 34 Procedural Amendment ( Method), Indication of the case Japanese Patent Application No. 1983-081355, Name of the invention, Offset shape creation method, Person making the amendment Relationship with the case Patent applicant address 2-2-3 Marunouchi, Chiyoda-ku, Tokyo Name (601) ) Mitsubishi Electric Co., Ltd. Representative: Moriya Shiki, Agent address: Amita Building, 5-8-6 Toranomon, Minato-ku, Tokyo Telephone: Tokyo (03) 459-0211 Name (6127) Patent attorney: Muneharu Sasaki, Date of amended order June 8, 1988 (Shipping date: June 28, 1988) 2. In column 7 of "Brief explanation of drawings" of the specification subject to the amendment, page 30, line 6 of the specification of the contents of the amendment, "G. ", insert "Figure 33 is an explanatory diagram of a closed loop in which the traveling direction is not constant." Nooooo\ l:l l-

Claims (1)

【特許請求の範囲】 直線又は円弧のブロックを含んだ最終形状データブロッ
ク列で特定された最終形状に対するオフセット形状を作
成する方法において、 最終形状データブロック列の各ブロックに対して所定の
オフセット量だけシフトさせた単純オフセット形状デー
タブロック列を作成する工程と、前記単純オフセット形
状データブロック列の各ブロックについて他ブロックと
の交点を順次求めていき、その交点をもって形成される
閉ループをそれぞれ抽出して分離すると共に、更にその
分離された閉ループ内の交点も同様に順次求めていき、
その交点をもって形成される閉ループを抽出して分離す
るという処理を繰返す閉ループ分離処理工程と、 次いで、その分離された閉ループが有効か無効かを判定
する工程と、 無効な閉ループを削除し、有効な閉ループ及び閉ループ
を構成しないブロックによる最終オフセットデータブロ
ック列を作成する工程と を有することを特徴とするオフセット形状作成方法。
[Claims] In a method for creating an offset shape for a final shape specified in a final shape data block sequence including straight line or circular arc blocks, a predetermined offset amount is provided for each block in the final shape data block sequence. A process of creating a shifted simple offset shape data block sequence, and sequentially finding intersections with other blocks for each block of the simple offset shape data block sequence, and extracting and separating closed loops formed by the intersections. At the same time, the intersections in the separated closed loops are also found sequentially,
A closed loop separation processing step that repeats the process of extracting and separating the closed loop formed by the intersection points, a step of determining whether the separated closed loop is valid or invalid, and a step of deleting the invalid closed loop and making it valid. An offset shape creation method comprising the steps of creating a final offset data block sequence using a closed loop and blocks that do not constitute a closed loop.
JP8135588A 1988-04-04 1988-04-04 Method for forming offset shape Pending JPH01255006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8135588A JPH01255006A (en) 1988-04-04 1988-04-04 Method for forming offset shape

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8135588A JPH01255006A (en) 1988-04-04 1988-04-04 Method for forming offset shape

Publications (1)

Publication Number Publication Date
JPH01255006A true JPH01255006A (en) 1989-10-11

Family

ID=13744046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8135588A Pending JPH01255006A (en) 1988-04-04 1988-04-04 Method for forming offset shape

Country Status (1)

Country Link
JP (1) JPH01255006A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH117311A (en) * 1997-06-18 1999-01-12 Roland D G Kk Method for removing micro-loop in tool path
US9886022B2 (en) 2014-04-23 2018-02-06 Mitsubishi Electric Corporation Numerical control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH117311A (en) * 1997-06-18 1999-01-12 Roland D G Kk Method for removing micro-loop in tool path
US9886022B2 (en) 2014-04-23 2018-02-06 Mitsubishi Electric Corporation Numerical control device

Similar Documents

Publication Publication Date Title
JPH07107646B2 (en) A device for determining the contour of a processed product
JPH03140187A (en) Data processor for embroidery sewing machine
JP5140003B2 (en) Automatic programming equipment
JPH01255006A (en) Method for forming offset shape
JPH03128085A (en) Data processing device for embroidering sewing machine
JPS59127108A (en) Numerical controller
JPS6269302A (en) Parts processing cam system
JPS6130354A (en) Metallic-mold working apparatus in automatic progframming
JP3165249B2 (en) Motion locus creation device for welding robot
JPH0713835B2 (en) Similar data detection method and apparatus
JP2836633B2 (en) Machining process decision device in numerical control information creation function
JPH0683422A (en) Numerical control method
JPS63127853A (en) Method of calculating machining path
JPS58159106A (en) Processing device
JP2629759B2 (en) Data generation method for numerical control machining
JPS62221003A (en) Method for producing locus of 2-dimensional tool
JP2005190094A (en) Drawing editing method and device
JPS60126712A (en) Preparing method of nc data
JPH1049214A (en) Machining process chart generating device
JPS62235606A (en) Nc data originating method for composite curved surface
JP2746170B2 (en) Numerical control data creation device
JP3074053B2 (en) Embroidery data creation device for edge-mounted embroidery patterns
JPH0527822A (en) Cad/cam device
JPH05204432A (en) Automatic nc data generating device
JPH07191721A (en) Device for preparing nc data for sheet metal working