JP3223478B2 - NC code automatic programming method and apparatus for turret punch press with numerical control - Google Patents

NC code automatic programming method and apparatus for turret punch press with numerical control

Info

Publication number
JP3223478B2
JP3223478B2 JP15207893A JP15207893A JP3223478B2 JP 3223478 B2 JP3223478 B2 JP 3223478B2 JP 15207893 A JP15207893 A JP 15207893A JP 15207893 A JP15207893 A JP 15207893A JP 3223478 B2 JP3223478 B2 JP 3223478B2
Authority
JP
Japan
Prior art keywords
tool
hole
shape
line segment
numerical control
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
JP15207893A
Other languages
Japanese (ja)
Other versions
JPH079043A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP15207893A priority Critical patent/JP3223478B2/en
Publication of JPH079043A publication Critical patent/JPH079043A/en
Application granted granted Critical
Publication of JP3223478B2 publication Critical patent/JP3223478B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Punching Or Piercing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は数値制御付タレットパン
チプレス用の工具割付自動化技術に係り、特に、複数部
品のNCコ−ドを連続的かつ自動的に作成するのに好適
なNCコ−ドの自動プログラミング方法およびその装置
に関する
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technology for automatically allocating tools for a turret punch press with numerical control, and more particularly to an NC code suitable for continuously and automatically creating NC codes for a plurality of parts. Automatic programming method and device thereof

【0002】[0002]

【従来の技術】現在市販されている数値制御付タレット
パンチプレスでは、工具ステ−ションに保有する工具と
一致しない抜き穴やミクロジョイント部があった場合、
そのたび毎に、自動プログラミング装置とユーザとの間
で対話形式でどの工具を使用して穴開け等を行うかを決
め、プログラムを作成する様にしている。
2. Description of the Related Art In a turret punch press with a numerical control currently available on the market, when there is a hole or a micro joint part which does not match a tool held in a tool station,
Each time, the automatic programming device and the user interactively determine which tool to use for drilling and the like, and create a program.

【0003】なお、従来技術に関連するものとして、例
えば特開昭61−260965号等がある。
[0003] As related to the prior art, there is, for example, JP-A-61-260965.

【0004】[0004]

【発明が解決しようとする課題】上記従来技術は、対話
形式で使用工具を決定しプログラムを作成している。こ
の様な方法は、数値制御付タレットパンチプレスでの生
産対象が量産品であれば、対話処理時間が量産効果で収
斂するため、対話処理時間を無視することができる。し
かし、多品種少量生産品が生産対象の場合、工具と一致
しない抜き穴等がある毎に対話処理していたのでは、対
話処理時間が長くなり、生産効率を低下させてしまうと
いう問題がある。
In the above prior art, a tool to be used is determined interactively and a program is created. In such a method, if the production target of the turret punch press with numerical control is a mass-produced product, the interactive processing time converges with the effect of mass production, so that the interactive processing time can be ignored. However, in the case where a high-mix low-volume product is to be produced, if the interactive processing is performed every time there is a hole or the like that does not match the tool, there is a problem that the interactive processing time becomes longer and the production efficiency is reduced. .

【0005】本発明の目的は、工具と一致しない抜き穴
等がある部品の加工プログラムを対話形式によらずに短
時間に自動的に作成する数値制御付タレットパンチプレ
ス用のNCコ−ド自動プログラミング方法およびその装
置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an automatic NC code for a turret punch press with numerical control for automatically creating a machining program for a part having a hole or the like that does not match a tool in a short time without using an interactive system. It is to provide a programming method and a device thereof.

【0006】[0006]

【課題を解決するための手段】上記目的は、板金加工用
の数値制御付タレットパンチプレスで抜き穴加工を施す
ためのNCコ−ドをプログラミングする場合に、板金展
開した部品図を外周角形状と抜き穴図形に画層分けし、
抜き穴図形を角、丸、長丸、R付角、アーク、コーナカ
ットの基本図形に分解し、タレツトに保有する工具の形
状と抜き穴の形状とが一致しない場合には、一致しない
基本図形のうち、長丸、R付角、アーク、コーナカット
を角、丸の単純図形に分解し、抜き穴の工具を自動割付
し、部品取り出しのミクロジョイント位置を特定し、ミ
クロジョイント工具を自動割付し、部品外周工具を自動
割付することで達成される。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a method for programming an NC code for performing a punching process by a turret punch press with numerical control for processing a sheet metal. And the hole shape
Drilled hole shapes are square, round, oval, rounded, arc, konaka
The shape of the tool held in the turret by disassembling it into basic figures
If the shape does not match the shape of the hole, it will not match
Of the basic figures, oval, rounded corner, arc, corner cut
Is disassembled into simple shapes of corners and circles, and the tool for punching holes is automatically assigned
To determine the position of the micro-joint
Automatically assigns black joint tools and automatically uses peripheral tools
It made reach by allocation.

【0007】[0007]

【作用】板金展開した部品図を外周角形状と抜き穴図形
に画層分けし、抜き穴図形を角や丸等の単純図形に分解
するので、各単純図形の穴を加工する工具は自動的に装
置がタレットに保有された工具の中から選択することが
できる。このため、一々ユーザが対話形式に工具を決定
しなくても、複数の部品を連続して加工するプログラム
を自動生成することが可能となる。
[Function] Since the part drawing developed on the sheet metal is divided into the outer peripheral corner shape and the hole figure, and the hole figure is decomposed into simple figures such as corners and circles. The device can select from among the tools held in the turret. For this reason, it is possible to automatically generate a program for continuously processing a plurality of components without the need for the user to interactively determine a tool.

【0008】[0008]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。図1は、本発明の一実施例に係るNCデータ作
成システムの全体構成図である。本実施例に係るNCデ
ータ作成システム100は、CADシステム101と、
CADシステム101からの出力信号DXFを取り込み
NCコードを作成する自動プログラミング装置102
と、このNCコードを取り込み部品加工を行う数値制御
付タレットパンチプレス(NCTPP:Numerically C
ontrolled TurretPunch Press)103とからなる。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is an overall configuration diagram of an NC data creation system according to one embodiment of the present invention. The NC data creation system 100 according to the present embodiment includes a CAD system 101,
Automatic programming device 102 which takes in output signal DXF from CAD system 101 and creates NC code
And a turret punch press with numerical control (NCPTP: Numerically C)
ontrolled TurretPunch Press) 103.

【0009】CADシステム101では部品の形状作成
を行い、自動プログラミング装置102ではCAD図及
び詳細は後述する抜き穴等の形状から工具の割付を行っ
てNCコードを生成する。生成するNCコードの適用範
囲は、「GRID」と「NIBBLING」と「SHE
AR PROOF」のマクロパタ−ンと「LINEat
ANGLE」であり、NCTPP103は、これらの
NCコ−ドに基づいて部品の加工を行う。
In the CAD system 101, the shape of a part is created, and in the automatic programming device 102, an NC code is generated by allocating a tool from a CAD drawing and a shape such as a hole to be described in detail later. The applicable range of the NC code to be generated is “GRID”, “NIBBLING”, and “SHE”.
AR PROOF ”macro pattern and“ LINEat ”
ANGLE ", and the NCTPP 103 processes a part based on these NC codes.

【0010】複数の加工部品を加工する工具を連続的に
且つ自動的に割り付けるNCコードを作成する場合、次
の3点を解決する必要がある。 1.NCTPP103のタレットに保有する工具の形
状,寸法と一致しない抜き穴を加工するときの工具の自
動割付。抜き穴を追い抜きで加工するときのタレット保
有工具の選択とその追い抜きの自動割付。 2.ミクロジョイント位置の特定と、部品外周への工具
割付自動化手順。 2a.図2に示す部品外周形状に対し()印したミクロ
ジョイント位置を特定る場合、線分(1)-(2)と線分3−4
の区分けと、線分(1)-(2)の抽出。同様に線分(8)-(9)と
線分(2)-3の区分け、線分(8)-(9)の抽出等、ミクロジョ
イント位置の特定と、外周ヘの、工具割付。 2b.部品の外周にある開形状のカット、ノッチの工具
割付。 3.複数部品を連続的に処理するデータの入出力制御方
法。
When creating an NC code for continuously and automatically allocating tools for processing a plurality of processing components, the following three points need to be solved. 1. Automatic allocation of tools when machining holes that do not match the shape and dimensions of tools held in the turret of NCTPP103. Selection of turret holding tools and automatic allocation of overtaking when drilling holes. 2. Automated procedure for locating micro joints and allocating tools to the periphery of parts. 2a. When specifying the position of the microjoint marked () with respect to the part outer peripheral shape shown in FIG. 2, the line segment (1)-(2) and the line segment 3-4
And extraction of line segments (1)-(2). Similarly, identification of micro joint position such as separation of line segments (8)-(9) and line segment (2) -3, extraction of line segments (8)-(9), and tool assignment to the outer periphery. 2b. Open-shaped cutting and notch tool assignment on the outer periphery of the part. 3. A data input / output control method for continuously processing multiple parts.

【0011】加工する部品等の形状は、図1のCADシ
ステム101で作成するが、本実施例では更に、作成し
たCAD図形の画層分けを行う。本実施例では、抜き穴
を 丸:CIRCLE領域 コーナカット:コーナCUT領域 丸以外の抜き穴:INSIDE領域 の3つに画層分けする。
The shapes of the parts to be processed are created by the CAD system 101 shown in FIG. 1. In this embodiment, the created CAD figures are further divided into layers. In this embodiment, the holes are classified into three layers: circle: CIRCLE area, corner cut: corner CUT area, and holes other than circle: INSIDE area.

【0012】そこで先ず、部品図を板金展開し、この板
金の外周角形状図形と抜き穴図形に分解する。次に、抜
き穴図形を、例えば図3に示す様な閉じた基本図形の集
合に分解する。図3の例では、抜き穴図形を、「角」,
「丸」,「長丸」,「R付角」,「アーク」,「コーナ
カット」の基本図形に分解している。更に、タレットに
保有する工具の形状と抜き穴の形状とが一致しない場合
には、一致しない基本図形を単純図形に分解する。例え
ば、図4に示す様に、基本図形のうち、「角」,「丸」
以外の図形を、「角」と「丸」の抜き穴図形に分解す
る。
Therefore, first, the part drawing is developed into a sheet metal, and is decomposed into an outer peripheral shape figure and a perforated figure of the sheet metal. Next, the hole figure is decomposed into a set of closed basic figures, for example, as shown in FIG. In the example of FIG.
It is broken down into basic figures of "circle", "long circle", "R angle", "arc", and "corner cut". Further, when the shape of the tool held in the turret does not match the shape of the hole, the basic figure that does not match is decomposed into a simple figure. For example, as shown in FIG.
The other figures are decomposed into corners and circles.

【0013】斯かる分解を行うには、先ず、抜き穴形状
が「角」,「丸」以外の図形であるか否かを判定する必
要がある。図5に、抜き穴形状が「角」,「丸」以外の
図形つまり「長丸」,「R付角」,「アーク」,「コー
ナカット」の夫々の図形であることの判定基準を示す。
抜き穴が図5に示す判定基準に合致したとき、その抜き
穴を当該判定基準に対応する形状の抜き穴であると判定
する。
In order to perform such decomposition, first, it is necessary to determine whether or not the shape of the hole is a figure other than "corners" and "circles". FIG. 5 shows criteria for judging that the shape of the hole is a figure other than “corner” and “circle”, that is, each figure of “long circle”, “R angle”, “arc”, and “corner cut”. .
When the pierced hole matches the criterion shown in FIG. 5, it is determined that the pierced hole has a shape corresponding to the criterion.

【0014】例えば、頂点数が“4”で(図4の「長
丸」参照)、頂点偶数番2,4に膨らみが有り、頂点奇
数番1,3に膨らみが無く、頂点1番,3番を結ぶ対角
線長と頂点2番,4番を結ぶ対角線長が等しい場合、そ
の抜き穴形状は「長丸」であると判定する。
For example, when the number of vertices is “4” (see “Oval” in FIG. 4), even vertices 2 and 4 have swelling, odd vertices 1 and 3 have no swelling, and vertices 1 and 3 have no swelling. When the diagonal length connecting the numbers is equal to the diagonal length connecting the vertices 2 and 4, the shape of the hole is determined to be "oval".

【0015】この判定後に、これらの基本図形を
「角」,「丸」の単純図形に分解する。図6に、この分
解を行う手順を示す。例えば抜き穴形状が「長丸」の場
合には、頂点1,2,3,4を結ぶ「角」を作成し、こ
の画層をINSIDEにする。次に、頂点1,4を結ぶ
線分を直径とし該線分の中点を中心とする「丸(円)」
を作成し、この画層をCIRCLEとする。同様に、頂
点2,3から「丸」を作成する。そして、図7に示す様
に、分解した「角」,「丸」をNCコードマクロパター
ンに展開する。
After this determination, these basic figures are decomposed into simple figures of "corners" and "circles". FIG. 6 shows a procedure for performing this disassembly. For example, when the shape of the hole is “oval”, “corners” connecting the vertices 1, 2, 3, and 4 are created, and this layer is set to INSIDE. Next, a circle connecting the vertices 1 and 4 is defined as a diameter and a circle (circle) centered on the midpoint of the line segment.
Is created, and this layer is referred to as CIRCLE. Similarly, a “circle” is created from vertices 2 and 3. Then, as shown in FIG. 7, the decomposed “corners” and “circles” are developed into NC code macro patterns.

【0016】抜き穴に対する工具割付とは別に、部品取
り出しのミクロジョイント位置の特定と、ミクロジョイ
ント工具の割付,部品外周工具割付の自動化を行う。こ
の工具割付においては、先ず、図8に示す様に、部品の
外周形状から部品外周「角」形状を作成し、この「角」
形状の画層をOUTSIDE領域として抜き穴図形と区
別する。部品の外周形状は部品外周「角」形状の外周部
分に抜き穴を設けた図であるとみることができる。例え
ば、図8において、部品外周形状の右下隅のカット部分
Kは、部品外周「角」形状の右下隅に形状Kの抜き穴が
あるとみることができる。そこで次に、部品外周「角」
形状の外周部分にあるカット,ノッチ等を、「丸」,
「角」,「長丸」,「R付角」,「アーク」,「コーナ
カット」の何れかの抜き穴図形に変更し閉じた図形とす
る。各抜き穴の画層分けは上述した抜き穴の画層に準じ
て行う。
Independently of the tool assignment to the punched holes, the specification of the micro joint position for picking up the parts, the assignment of the micro joint tools, and the automatic assignment of the peripheral tool of the parts are performed. In this tool allocation, first, as shown in FIG. 8, a component outer peripheral "corner" shape is created from the component outer peripheral shape, and the "corner"
The shape layer is defined as an OUTSIDE area to distinguish it from the holed figure. The outer peripheral shape of the component can be regarded as a drawing in which a punched hole is provided in the outer peripheral portion of the “peripheral” shape of the component. For example, in FIG. 8, the cut portion K at the lower right corner of the component outer peripheral shape can be regarded as having a hole of the shape K at the lower right corner of the component outer peripheral “corner” shape. Then, next, the corners of the parts
Cut, notch, etc. on the outer periphery of the shape
The closed figure is changed to a hole figure of any one of “corner”, “long circle”, “R angled”, “arc”, and “corner cut”. The layering of each hole is performed in accordance with the above-described layer of the hole.

【0017】次に、外周形状「角」形状から外周部分の
抜き穴図形に接し且つ当該抜き穴図形に含まれる線分を
削除し、ミクロジョイントと外周工具を割り付ける線分
を抽出する。そして、ミクロジョイント位置については
線分の端点で線長に応じて追加指定し、残りの線分につ
いては外周追い抜き工具を割り付ける。
Next, a line segment which is in contact with the hole figure at the outer peripheral portion and which is included in the hole figure is deleted from the outer peripheral shape "corner" shape, and a line segment for allocating the microjoint and the outer peripheral tool is extracted. Then, the position of the micro joint is additionally designated at the end point of the line segment according to the line length, and the outer peripheral overtaking tool is assigned to the remaining line segments.

【0018】以上述べた抜き穴に対する工具割付処理と
ミクロジョイント位置特定等の処理を、シーケンシャル
に、複数部品が登録されている部品表ファイルをもとに
順次連続的に処理する。
The above-described processes such as the tool allocation process for the punched hole and the micro joint position specification are sequentially and sequentially processed based on a parts table file in which a plurality of parts are registered.

【0019】次に抜き穴の形状毎の工具割付について説
明する。 (1)[GRID]パターン 図9に示す様なX軸に対し傾きのない角の抜き穴処理
は、GRIDパタ−ンで工具割付けする。先ず、抜き穴
AのXY寸法で、工具テ−ブル内のSQ(正方形)工具
を検索し、工具tool_Xの寸法の1.3倍が、抜き穴Aの
XY寸法以内となるように、SQ工具を特定する。見つ
かったSQ工具tool_Xの寸法と、抜き穴のXY寸法か
ら、NCコ−ドのGRIDパタ−ンを決めるのに必要な
後述するの値(d1,n1,d2,n2)を求める。
Next, a description will be given of the tool assignment for each shape of the punched hole. (1) [GRID] pattern In the processing of punching a corner having no inclination with respect to the X-axis as shown in FIG. 9, tool assignment is performed using a GRID pattern. First, an SQ (square) tool in the tool table is searched using the XY dimensions of the hole A, and the SQ tool is set so that 1.3 times the size of the tool tool_X is within the XY dimensions of the hole A. To identify. From the dimensions of the found SQ tool tool_X and the XY dimensions of the punched holes, values (d1, n1, d2, n2) described later necessary for determining the GRID pattern of the NC code are obtained.

【0020】GRIDパタ−ンのNCコ−ド書式は、 GRID−X:G36 I±d1 Pn1 J±d2 Kn2 Tnnn(工具no) GRID−Y:G37 I±d1 Pn1 J±d2 Kn2 Tnnn(工具no) I:パンチ間隔±d1(+/X方向、-/Y方向) P:X軸方向にパンチする個数±n1 J:パンチ間隔±d2(+/Y方向、-/X方向) K:Y軸方向にパンチする個数±n2 である。The NC code format of the GRID pattern is GRID-X: G36 I ± d1 Pn1 J ± d2 Kn2 Tnnn (tool no) GRID-Y: G37 I ± d1 Pn1 J ± d2 Kn2 Tnnn (tool no) ) I: Punch interval ± d1 (+ / X direction,-/ Y direction) P: Number of punches in X axis direction ± n1 J: Punch interval ± d2 (+ / Y direction,-/ X direction) K: Y axis The number of punches in the direction ± n2.

【0021】そして、図10に示すパンチ間隔とパンチ
する穴の個数を n1=(X−(X÷tool_Xの余り))÷tool_
X d1=絶対値(100×(X−tool_X)÷n1) n2=(Y−(Y÷tool_Xの余り))÷tool_
X d2=絶対値(100×(Y−tool_X)÷n2) として求める。
Then, the punch interval and the number of holes to be punched shown in FIG. 10 are represented by n1 = (X− (X ÷ remainder of tool_X)) ÷ tool_
X d1 = absolute value (100 × (X-tool_X) ÷ n1) n2 = (Y- (Y ÷ remainder of tool_X)) ÷ tool_
X d2 = Absolute value (100 × (Y-tool_X) ÷ n2)

【0022】次に、抜き穴のX寸法、Y寸法によりG3
6,G37を替える。 X寸法 ≧ Y寸法:G36採用 X寸法 < Y寸法:G37採用 尚、抜き穴の頂点1を検出し、頂点1のXY座標を求
め、(tool_X寸法÷2)を加算して得た座標を、
基準点のXY座標とする。
Next, according to the X and Y dimensions of the hole, G3
6, Change G37. X dimension ≧ Y dimension: G36 adopted X dimension <Y dimension: G37 adopted Note that the vertex 1 of the punched hole is detected, the XY coordinates of the vertex 1 are obtained, and the coordinates obtained by adding (tool_X dimension ÷ 2) are obtained.
XY coordinates of the reference point.

【0023】(2)[SHEAR PROOF]パター
ン 図11に示す傾きのある抜き穴Bの処理は、SHEAR
PROOFパタ−ンで工具割付けする。先ず、抜き穴
Bの傾きに一致し、工具tool_X,tool_Yの寸法の1.5
倍が、抜き穴BのXY寸法以内になるよう、傾きのある
工具を特定する。該当する工具がなく、C軸(回転)R
E(長方形)/SQ工具がある場合は、これを適用す
る。見つかった工具tool_X,tool_Yの寸法と抜き穴Bの
XY寸法から、NCコ−ドのSHEAR PROOFパ
タ−ンを決めるための後述の値(l,θ,ω1,ω2)を求め
る(図12参照)。
(2) [SHEAR PROOF] Pattern The processing of the inclined hole B shown in FIG.
Allocate tools using the PROOF pattern. First, it corresponds to the inclination of the hole B and is 1.5 times the dimension of the tool tool_X and tool_Y.
An inclined tool is specified so that the double is within the XY dimensions of the hole B. There is no corresponding tool, C axis (rotation) R
If there is an E (rectangular) / SQ tool, this applies. From the found dimensions of the tool_X and tool_Y and the XY dimensions of the hole B, the following values (l, θ, ω1, ω2) for determining the SHEAR PROOF pattern of the NC code are obtained (see FIG. 12). .

【0024】SHEAR PROOFパタ−ンのNCコ
−ドの書式は、 G66 Il J±θ P±ω1 Q±ω2 Tnnn(工具no) I:追い抜きする長さl J:角度±θ(+/反時計方向、-/時計方向) P:J方向の工具寸法±ω1 Q:Jと90゜方向の工具寸法±ω2 である。
The NC code of the SHEAR PROOF pattern has the following format: G66 Il J ± θ P ± ω1 Q ± ω2 Tnnn (tool no) I: Length to be overtaken l J: Angle ± θ (+ / counterclockwise (Direction,-/ clockwise) P: Tool dimension in the J direction ± ω1 Q: J and tool dimension in the 90 ° direction ± ω2.

【0025】次に、l,θ,ω1,ω2の値を l=図2A部抜き穴のY寸法 θ=図2A部抜き穴の傾き ω1=見つかった工具のtool_X寸法 ω2=見つかった工具のtool_Y寸法 として求める。Next, the values of l, θ, ω1, and ω2 are as follows: l = Y dimension of the drilled hole in FIG. 2A θ = inclination of the drilled hole in FIG. 2A ω1 = tool_X dimension of the found tool ω2 = tool_Y of the found tool Obtain as dimensions.

【0026】そして、Y方向のパンチ間隔 rep=(絶対値(Y÷(tool_Y÷2))−1) で求め、rep>0の場合は、(tool_Y÷2)の間
隔で基準点をY方向にずらし、rep回だけSHEAR
PROOFパタ−ンを繰り返す。rep>0で(Y寸
法−(rep+1)×tool_Y÷2)>0の場合は、
基準点をY方向の端点C部に置き、Jの角度を±(θ+
π)にして180回転し、残分の抜き落しをする。尚、
抜き穴のX又はY寸法のどちらかが、工具寸法のXY寸
法に等しい場合はSHEAR PROOFパタ−ンを使
う。
Then, a punch interval rep in the Y direction is obtained by rep = (absolute value (Y ÷ (tool_Y ÷ 2)) − 1). If rep> 0, the reference point is set at an interval of (tool_Y ÷ 2) in the Y direction. Shift to EAR times
Repeat the PROOF pattern. When rep> 0 and (Y dimension− (rep + 1) × tool_Y ÷ 2)> 0,
The reference point is placed at the end point C in the Y direction, and the angle of J is set to ± (θ +
π) and make 180 rotations to remove the residue. still,
If either the X or Y dimension of the hole is equal to the XY dimension of the tool dimension, use the SHEAR PROOF pattern.

【0027】(3)[NIBBLING LINE]パ
ターン 図13に示す様に、抜き穴のXY寸法 < SQ(正方
形)工具tool_Xの寸法の1.3倍の場合は、RO(丸)工
具でNIBBLING LINEの追い抜きをする。こ
のとき、抜き穴のXY寸法で工具テ−ブル内のRO(丸)
工具を検索し、工具直径tool_Rの寸法の1.3倍が、抜
き穴のXY寸法以内になるよう、RO工具を特定する。
そして、見つかったRO工具のtool_R寸法と、抜き穴の
XY寸法から、NCコ−ドのNIBBLING LINEパタ−ンを
決めるのに必要な後述の値(l,θ,φ,d)を求める。
(3) [NIBBLING LINE] pattern As shown in FIG. 13, when the XY dimension of the punched hole is less than 1.3 times the dimension of the SQ (square) tool tool_X, the RO (round) tool is used for the NIBBLING LINE. Overtake. At this time, RO (circle) in the tool table is
The tool is searched, and the RO tool is specified so that 1.3 times the dimension of the tool diameter tool_R is within the XY dimensions of the punched hole.
Then, from the tool_R dimensions of the found RO tool and the XY dimensions of the punched holes, the following values (l, θ, φ, d) required to determine the NIBBLING LINE pattern of the NC code are obtained.

【0028】NIBBLING LINEパタ−ンのN
Cコ−ド書式は、 G69 Il J±θ P±φ Qd Tnnn(工具no) J:角度±θ(+/反時計方向、-/時計方向) P:パンチの直径φ (+/進行方向の直線の左側、-/右側) Q:ニブリング間隔d である。
N of the NIBBLING LINE pattern
C code format is G69 Il J ± θ P ± φ Qd Tnnn (tool no) J: Angle ± θ (+ / counterclockwise,-/ clockwise) P: Punch diameter φ (+ / Q: Nibbling interval d.

【0029】次に、l,θ,φの値 l=(抜き穴のY寸法 − tool_R寸法) θ=抜き穴の傾き / φ=tool_R寸法 d=tool_R寸法で変更 (tool_R寸法<10):2 / (tool_R寸法<
50):3 (tool_R寸法>50):3.5 を代入する。
Next, the values of l, θ, φ are changed as follows: l = (Y dimension of punched hole−tool_R dimension) θ = inclination of punched hole / φ = tool_R dimension d = tool_R dimension (tool_R dimension <10): 2 / (Tool_R dimensions <
50): 3 (tool_R dimension> 50): 3.5 is substituted.

【0030】次に、Y方向のパンチ間隔 rep=(絶対値(Y/d)−1) を求め、rep>0の場合は、dの間隔で基準点をY方
向にずらし、rep回 NIBBLING LINEパ
タ−ンを繰り返す。
Next, a punch interval rep = (absolute value (Y / d) -1) in the Y direction is obtained. If rep> 0, the reference point is shifted in the Y direction at an interval of d, and NIBBLING LINE is repeated rep times. Repeat the pattern.

【0031】rep>0で(Y寸法−(rep+1)×
d)>0の場合は、基準点をY方向の端点4に置き、J
の角度を±(θ+π)にして180回転し残分の抜き落
しをする。尚、工具選択時、抜き穴のXY寸法の何れか
が工具直径に等しい場合は、工具直径の1.3倍はしな
い。
When rep> 0, (Y dimension− (rep + 1) ×
d) If> 0, place the reference point at end point 4 in the Y direction,
Is rotated by 180 with the angle of ± (θ + π), and the remainder is removed. In addition, when any of the XY dimensions of the punched hole is equal to the tool diameter at the time of tool selection, the tool diameter is not 1.3 times.

【0032】次に、丸の工具の割付について説明する。Next, the assignment of circular tools will be described.

【0033】(4)[NIBBLING ARC]パタ
ーン 図14に示す様な丸形状の抜き穴Cの処理は、NIBB
LING ARCパタ−ンで工具割付けする。この場合
は先ず、抜き穴直径のR寸法で、工具テ−ブルのRO
(丸)工具を検索し、工具tool_R寸法が抜き穴の半径以内
になるよう、RO工具を特定する。見つかったRO工具
のtool_R寸法と、抜き穴直径のR寸法から、NCコ−ド
のNIBBLING ARCパターンを決めるのに必要
な以下の値(r,θ1,θ2,φ,d)を求める(図15参照)。
(4) [NIBBLING ARC] Pattern The processing of the round hole C as shown in FIG.
Allocate tools using the LING ARC pattern. In this case, first, the RO size of the tool table should be set to the R dimension of the diameter of the punched hole.
(Round) Search for a tool and specify an RO tool so that the tool tool_R dimension is within the radius of the punched hole. The following values (r, θ1, θ2, φ, d) required to determine the NIBBLING ARC pattern of the NC code are obtained from the tool_R dimension of the found RO tool and the R dimension of the hole diameter (FIG. 15). reference).

【0034】ここで、NIBBLING ARCパタ−
ンのNCコ−ド書式は、 G68 Ir J±θ1 K±θ2 P±φ Qd Tnnn(工具no) I:抜き穴半径r J:パンチ開始点のX軸からの角度±θ1(+/反時計方
向、-/時計方向) K:ニブリングする角度±θ2(+/反時計方向、-/時計
方向) P:RO(丸)工具直径±φ(+/外、-/内) Q:ニブリング間隔d である。
Here, the NIBBLING ARC pattern is used.
NC code format is G68 Ir J ± θ1 K ± θ2 P ± φ Qd Tnnn (tool no) I: Hole radius r J: Angle of punch start point from X axis ± θ1 (+ / counterclockwise Direction,-/ clockwise) K: Nibbling angle ± θ2 (+ / counterclockwise,-/ clockwise) P: RO (round) tool diameter ± φ (+ / outer,-/ inner) Q: Nibbling interval d It is.

【0035】r,θ1,θ2,φ,dは、 r=R÷2 θ1=0 θ1=360 φ=−(tool_R) d=tool_R寸法で変更 (tool_R寸法 < 10):2 (tool_R寸法 < 50):3 (tool_R寸法 > 50):3.5 として求められる。R, θ1, θ2, φ, and d are changed as follows: r = R ÷ 2 θ1 = 0 θ1 = 360 φ = − (tool_R) d = tool_R dimension (tool_R dimension <10): 2 (tool_R dimension <50) ): 3 (tool_R dimension> 50): 3.5

【0036】NIBBLING ARCパタ−ンの実行
に先立ち、抜き穴の中心を同一工具でパンチする。基準
点は、抜き穴の中心座標とし、工具tool_R寸法が抜き穴
の半径以内になるようにRO工具を特定できない場合
は、抜き穴の直径以内で検索する。この場合は抜き穴中
心のパンチは不要である。
Prior to execution of the NIBBLING ARC pattern, the center of the punched hole is punched with the same tool. If the RO point cannot be specified so that the tool_R dimension is within the radius of the hole, the search is performed within the diameter of the hole. In this case, the punch at the center of the punched hole is unnecessary.

【0037】工具tool_R寸法 < (抜き穴の半径 −
工具tool_R÷2)の場合は、NIBBLING A
RCパタ−ンを重ねる間隔を求め、 rep=絶対値(((R÷2)÷tool_Y)÷2)−1 抜き穴半径rを(tool_Y+tool_Y÷2)と
し、(rep−1)回だけ(tool_Y÷2)加算した
NIBBLING ARCパタ−ンを繰り返し、rep
回目は、(抜き穴半径r=A部抜き穴R寸法÷2)として
NIBBLING ARCパタ−ンを実行する。
Tool tool_R dimension <(radius of hole-
In the case of tool tool_R ÷ 2), NIBBLING A
The interval at which the RC patterns are overlapped is obtained, and rep = absolute value (((R ÷ 2) ÷ tool_Y) ÷ 2) −1 The hole radius r is set to (tool_Y + tool_Y ÷ 2), and only (rep−1) times (tool_Y) ÷ 2) Repeat the added NIBBLING ARC pattern and repeat
In the third round, the NIBBLING ARC pattern is executed as (radius r = hole radius R = dimension of part A / 2).

【0038】次に、ミクロジョイント工具及び外周工具
割付について説明する。先ず、画層コ−ナCUT領域に
ある図形を検索し、頂点を検出して角形状に分解し、画
層INSIDE領域に格納する。そして、画層OUTS
IDE領域にある外周角形状の頂点を検出し、4本の線
分(Line)に分解し、抽出した線分について、以下の処理
A,Bを繰り返す。
Next, the assignment of the micro joint tool and the outer peripheral tool will be described. First, a figure in the image layer corner CUT area is searched, a vertex is detected and decomposed into a square shape, and stored in the image INSIDE area. And the layer OUTS
The vertex of the outer peripheral corner shape in the IDE area is detected, decomposed into four lines (Lines), and the following processes A and B are repeated for the extracted line segments.

【0039】A.線分上(線分に接する)にある画層IN
SIDE領域の図形を検索する A1.線分上にある図形の数だけ以下の処理を繰り返す A11.図形の頂点を検出し、各頂点を結ぶ線分が交点を
持つか確認し交点の数を返す(画層INSIDE領域に
ある、図形は全て「角」と「丸」に分解し確認する為、
確認する対象図形は「角」となっている) A12.交点が1個の場合 A121.交点が線分の端点の左右どちらかを検出しTRI
M点を求める A122.求めた線分上の座標で線分をTRIMする A13.交点が2個の場合 A131.2つの交点の中心を求め、線分上のXY座標を求
める A132.求めた線分上の座標で線分をTRIMし線分を2
つに分割する。
A. Layer IN on line segment (tangent to line segment)
Search for a figure in the SIDE area A1. Repeat the following process as many times as there are figures on the line segment A11. Detects the vertices of the figure, checks whether the line connecting each vertex has an intersection, and returns the number of intersections. (All figures in the INSIDE area of the figure are separated into "corners" and "circles" to confirm.
The target figure to be checked is “corner”. A12. When there is one intersection A121. The intersection is detected either left or right of the end point of the line segment and TRI
Find M point A122. TRIM the line segment with the coordinates on the obtained line segment A13. When there are two intersections A131. Find the center of the two intersections and find the XY coordinates on the line segment A132. TRIM the line segment with the coordinates on the obtained line segment to 2
Divide into two.

【0040】B.線分上にある画層CIRCLE領域の
図形を検索する。(円と直線の方程式(判別式)によ
り、円と線分の交点を検出する) B11.線分上にあるCIRCLE図形の数だけ、以下の
処理を繰り返す B12.交点が1個の場合 B121.交点が線分の端点の左右どちらかを検出しTRI
M点を求める B122.求めた線分上の座標で線分をTRIMする B13.交点が2個の場合 B131.2つの交点の中心を求め、線分上のXY座標を求
める B132.求めた線分上の座標で線分をTRIMし、線分を
2つに分割する。
B. The graphic in the image CIRCLE area on the line segment is searched. (The intersection of the circle and the line segment is detected by the equation of the circle and the straight line (the discriminant)) B11. The following process is repeated as many times as the number of CIRCLE figures on the line segment. B12. When there is one intersection B121. The intersection is detected either left or right of the end point of the line segment and TRI
Find M point B122. TRIM the line segment with the coordinates on the obtained line segment B13. When there are two intersections B131. Find the center of the two intersections and find the XY coordinates on the line segment B132. TRIM is performed on the line segment at the coordinates on the obtained line segment, and the line segment is divided into two.

【0041】上記の処理A,Bを行うことで分解し,T
RIMして分割または切断された線分に対し、以下の手
順で、ミクロジョイント工具及び外周追い抜き工具を割
付ける。 1.線分が600mm以下の場合は、端点にミクロジョイン
ト工具を割り付け、残り線分を、外周追い抜き工具の、S
HEAR PROOFパタ−ンで割り付けする 2.線分が600mm以上の場合は、端点と線分中央にミク
ロジョイント工具を割り付け、残り線分を外周追い抜き
工具のSHEAR PROOFパタ-ンで割り付けする 3.工具の割り付け方向は線分の外側であり、外形線の
対角からMAX,MINのXY座標を求め、割付け方向
を外形線の外側になるように決める 4.分割又は、切断されなかった線分については、端点
の外周追い抜き工具のずらしでジョイント部を作る 5.追い抜き工具の順位選択(RE>SQ>ROの
順)。
Decomposition is performed by performing the above-described processes A and B, and T
The microjoint tool and the outer peripheral overtaking tool are allocated to the line segment divided or cut by the RIM in the following procedure. 1. If the line segment is 600mm or less, assign a micro joint tool to the end point and transfer the remaining line segment to S
1. Assign using the HEAR PROOF pattern. 2. If the line segment is 600mm or more, assign a micro joint tool to the end point and the center of the line segment, and assign the remaining line segments with the SHEAR PROOF pattern of the outer peripheral overtaking tool. 3. The tool allocation direction is outside the line segment, the XY coordinates of MAX and MIN are obtained from the diagonal of the outline, and the layout direction is determined to be outside the outline. For a line segment that has not been divided or cut, create a joint by shifting the outer periphery overtaking tool at the end point. Select the order of overtaking tools (in the order of RE>SQ> RO).

【0042】次に、直線と直線の交点、直線と円弧の交
点の検出手順を説明する。 (1)直線と直線の交点 2つの線分の各始点,終点の座標が 線分1:始点P1の座標値(X1,Y1),終点P2の座標
値(X2,Y2) 線分2:始点P3の座標値(X3,Y3),終点P4の座標
値(X4,Y4)であると、先ず、線分1,線分2の各々
の直線の方程式A(次式1),B(次式2)
Next, the procedure for detecting the intersection between a straight line and a straight line and the intersection between a straight line and an arc will be described. (1) Intersection of a straight line and a straight line The coordinates of the start point and end point of the two line segments are line segment 1: coordinate values (X1, Y1) of start point P1, coordinate values (X2, Y2) of end point P2 line segment 2: start point If the coordinate value of P3 is (X3, Y3) and the coordinate value of the end point P4 is (X4, Y4), first, equations A (the following equation 1) and B (the following equation) 2)

【0043】[0043]

【数1】 (X2−X1)y=(Y2−Y1)x+(Y1X2−Y2X1)(X2-X1) y = (Y2-Y1) x + (Y1X2-Y2X1)

【0044】[0044]

【数2】 (X4−X3)y=(Y4−Y3)x+(Y3X4−Y4X3)
を連立させたときの解として得られる。交点が求められ
る条件は、
## EQU2 ## (X4-X3) y = (Y4-Y3) x + (Y3X4-Y4X3)
Is obtained as a solution when. The conditions for finding the intersection are

【0045】[0045]

【数3】(X4−X3)(Y4−Y1)−(X2−X1)(Y
4−Y3)≠0 であり、このとき、交点の座標(Xi,Yi)は
## EQU3 ## (X4-X3) (Y4-Y1)-(X2-X1) (Y
4-Y3) ≠ 0, where the coordinates (Xi, Yi) of the intersection are

【0046】[0046]

【数4】 Xi={-(X4-X3)(Y1X2-Y2X1)+(X2-X1)(Y3X4-Y4X3)} /{(X4-X3)(Y4-Y1)-(X2-X1)(Y4-(Y3)}Xi = {-(X4-X3) (Y1X2-Y2X1) + (X2-X1) (Y3X4-Y4X3)} / {(X4-X3) (Y4-Y1)-(X2-X1) (Y4 -(Y3)}

【0047】[0047]

【数5】Yi={(Y2-Y1)Xi+(Y1X2-Y2X1)}/(X2-X1)
:(X2-X1)≠0のとき ={(Y2-Y1)Xi+(Y3X4-Y4X3)}/(X4-X3) :(X4-X
3)≠0のとき となる。
[Equation 5] Yi = {(Y2-Y1) Xi + (Y1X2-Y2X1)} / (X2-X1)
: When (X2-X1) ≠ 0 == ((Y2-Y1) Xi + (Y3X4-Y4X3)) / (X4-X3): (X4-X
3) When ≠ 0.

【0048】(2)直線と円弧の交点 2つの直線及び円弧を拡張した円は、単純化して次の形
で与えられるものと仮定する。
(2) Intersection of a straight line and an arc It is assumed that a circle obtained by expanding two straight lines and an arc is given in a simplified form as follows.

【0049】[0049]

【数6】直線の方程式: y=b## EQU6 ## Equation of a straight line: y = b

【0050】[0050]

【数7】 (Equation 7)

【0051】交点の条件は、 b>r 交点なし b=r 交点1個 b<r 交点2個 連立させた解は、The condition of the intersection is: b> r no intersection b = r one intersection b <r two intersections The simultaneous solution is:

【0052】[0052]

【数8】 (Equation 8)

【0053】となり、交点の座標(図16参照)はThe coordinates of the intersection (see FIG. 16)

【0054】[0054]

【数9】 (Equation 9)

【0055】となる。Is as follows.

【0056】次に、本実施例をより具体的に説明する。
図17は、入力CADデータの外周「角」形状図形であ
り、図18は、入力CADデータの抜き穴図形である。
図17の外周角形状は、画層OUTSIDEにあり、4
個の頂点座標と、各頂点の膨らみの情報(図示の例では
「膨らみ無し」)で作られている。
Next, this embodiment will be described more specifically.
FIG. 17 is a diagram of a peripheral “corner” shape of the input CAD data, and FIG. 18 is a diagram of a punched hole of the input CAD data.
The outer peripheral shape shown in FIG.
It is made up of the coordinates of the vertices and information on the swelling of each vertex (“no swelling” in the example shown).

【0057】図18の抜き穴は、4個のコーナカット図
形1〜4と、9個の角5〜13と、15個の丸14〜2
8と、1個の長丸29で構成されている。各抜き穴の画
層及び形状定義情報を図19に示す。
The punched holes in FIG. 18 have four corner cut figures 1-4, nine corners 5-13, and 15 circles 14-2.
8 and one long circle 29. FIG. 19 shows the layer and shape definition information of each hole.

【0058】この抜き穴を開けるのに使用する工具とし
ては、タレットに保有している工具しか使用することは
できない。今、仮にタレットには図20に示す工具が用
意されているとする。
As a tool used for making the hole, only a tool held in the turret can be used. Now, suppose that the tool shown in FIG. 20 is prepared in the turret.

【0059】(1)先ず、抜き穴のうち「丸」,「角」
以外の図形を「丸」,「角」に分解する。この図形分解
を行う場合、画層コーナカットにある図形すべてを検索
して頂点が4個以上のコーナカット図形を「角」に分解
し、画層INSIDEに展開し格納する。
(1) First, among the punched holes, “round” and “corner”
Decompose the figures other than into circles and corners. When this figure decomposition is performed, all the figures in the layer corner cut are searched, the corner cut figure having four or more vertices is decomposed into “corners”, developed and stored in the layer INSIDE.

【0060】図18の図形1,2は、そのまま画層IN
SIDEに複写する。図形3は、分解する必要がある。
この図形3は、例えば図21に示す様に分解する。この
とき、
The figures 1 and 2 in FIG.
Copy to SIDE. Figure 3 needs to be decomposed.
This figure 3 is decomposed, for example, as shown in FIG. At this time,

【0061】[0061]

【数10】(X2−X1)+(X4−X3)=(X5−X6) (Y6−Y1)+(Y2−Y3)=(Y5−Y4) の条件から、図21上段の図形を認識し、頂点1,6,
2で作る「角」と頂点3,4,5で作る「角」に分解
し、画層INSIDEに展開する。図18の図形4も同
様に分解する。
From the condition of (X2-X1) + (X4-X3) = (X5-X6) (Y6-Y1) + (Y2-Y3) = (Y5-Y4), the figure in the upper part of FIG. 21 is recognized. , Vertices 1,6
2 is decomposed into “corners” formed by vertices 3, 4, and 5, and is developed on the image layer INSIDE. FIG. 18 of FIG. 18 is similarly decomposed.

【0062】(2)次に、画層INSIDEにある図形
を全て検索し、頂点数,座標値,膨らみの情報から図形
判断し、長丸,R付角,アークの図形で、工具テーブル
に無い図形を、「角」及び「丸」図形に分解し、画層I
NSIDEに展開し、格納する。図22に、「長丸」図
形(図18の図形29)の分解例を示す。この例では、
頂点が4個であり、頂点1→2→3→4→1と回って見
たとき頂点2→3と頂点4→1で膨らみがあり、頂点
2,4間の対角線長と頂点1,3間の対角線長が等しい
ことから、この図形を長丸と判断する。そして、頂点
1,2,3,4が作る「角」と、頂点1,4を結ぶ線分
を直径とする「丸」と、頂点2,3を結ぶ線分を直径と
する「丸」に分解し、「角」は画層INSIDEに展開
し、「丸」は画層CIRCLEに展開する。
(2) Next, all the graphics in the image layer INSIDE are searched, and the graphics are determined from the information on the number of vertices, coordinate values, and bulges. Decompose the figure into “corner” and “circle” figures,
Expand to NSIDE and store. FIG. 22 shows an example of disassembly of the “long circle” figure (the figure 29 in FIG. 18). In this example,
There are four vertices, and when viewed in turn from vertex 1 → 2 → 3 → 4 → 1, there is a bulge at vertex 2 → 3 and vertex 4 → 1, and the diagonal length between vertices 2 and 4 and vertices 1 and 3 Since the diagonal lengths between them are equal, this figure is determined to be a long circle. Then, a "corner" formed by the vertices 1, 2, 3 and 4; a "circle" having a line segment connecting the vertices 1 and 4 with a diameter; and a "circle" having a line segment connecting the vertices 2 and 3 with a diameter. Disassembly, “corners” are developed on the layer INSIDE, and “circles” are developed on the layer CIRCLE.

【0063】(3)次に、ミクロジョイント及び外周工
具を割り付ける線分を抽出する。 (3-1)先ず、画層OUTSIDEの外周「角」形状を、
頂点座標により4本の線分の図形に分解し(図23参
照)、同じ画層OUTSIDEに展開する。形状定義
は、始点終点の座標で行う。
(3) Next, a line segment for allocating the micro joint and the outer peripheral tool is extracted. (3-1) First, the outer peripheral “corner” shape of the image layer OUTSIDE is
It is decomposed into four line segments according to the vertex coordinates (see FIG. 23), and is developed on the same image layer OUTSIDE. The shape is defined by the coordinates of the start point and the end point.

【0064】(3-2)次に、分解してできた4本の線分の
各々については以下の処理A,Bを繰り返す。 A.画層INSIDE,CIRCLEにある図形と接す
る図形を検出する A1.画層INSIDEは、「角」であり頂点が作る直線
との交点を検出することで、接する図形を検出する A2.画層CIRCLEは、円と直線の交点を検出するこ
とで、接する図形を検出する 図17の外周角形状の線分1(図23参照)と接する図
形は、図18の図形1,5,6,2であり、これらの画
層はINSIDEであり、画層CIRCLEの図形はな
い。
(3-2) Next, the following processes A and B are repeated for each of the four line segments formed by the decomposition. A. A1. Detect a graphic that is in contact with a graphic in the layers INSIDE and CIRCLE A1. The image layer INSIDE detects an intersecting figure by detecting an intersection with a straight line formed by a vertex and a "corner". A2. The image layer CIRCLE detects an intersecting graphic by detecting an intersection of a circle and a straight line. The graphic in contact with the outer peripheral angular line segment 1 (see FIG. 23) in FIG. 17 is the graphic 1, 5, 6 in FIG. , 2 and these layers are INSIDE, and there is no graphic of the layer CIRCLE.

【0065】B.接する図形による線分1のTRIM B1.線分1が図形1と接する交点を求め、線分1の図形
1に含まれる部分をTRIMし、線分1とする(図24
参照) B2.線分1が図形5と接する交点を求め、線分1の図形
5に含まれる部分をTRIMし、図25に示す様に、線
分11と線分12とする B3.同様に図形6,2に接する部分をTRIMすると、
線分1は3つの線分に分解される。
B. TRIM B1. The intersection point where line segment 1 comes into contact with figure 1 is determined, and the portion of line 1 included in figure 1 is trimmed to be line segment 1 (FIG. 24).
See) B2. The intersection of line segment 1 contacting figure 5 is determined, and the portion of line segment 1 included in figure 5 is trimmed into line segment 11 and line segment 12, as shown in FIG. Similarly, when TRIM is applied to the portion in contact with figures 6 and 2,
Line segment 1 is decomposed into three line segments.

【0066】(3-3)以上のTRIMが終わると、画層I
NSIDE,CIRCLEの図形に対する工具の割付
を、次の手順で行う。 A.画層CIRCLEにある図形14〜28(図18参
照)の「丸」や、長丸を分解した「丸」に対応する工具
は、工具テーブルに該当工具がある場合には、その図形
「丸」の中心座標と工具番号でNCコードを作成する B.画層INSIDEにある「角」や、画層CIRCL
Eにある図形「丸」のうち一致する工具が工具テーブル
に無い場合には、GRIDまたはNIBBLINGで工
具の割付を行う B1.例えば図形9(図18参照)の場合、図形9を、図
26に示す様に、GRID展開する B2.例えば図形28の大丸の場合、図27に示す様に、
NIBBLINGARC展開する。
(3-3) When the above TRIM is completed, the layer I
The assignment of tools to the figures of NSIDE and CIRCLE is performed in the following procedure. A. If the tool corresponding to the “circle” in the figures 14 to 28 (see FIG. 18) in the image layer CIRCLE or the “circle” obtained by disassembling the long circle is present in the tool table, the figure “circle” Create NC code using center coordinates and tool number of B. "Angle" in layer INSIDE, layer CIRCL
If there is no matching tool among the figures “circles” in E in the tool table, the tool is assigned by GRID or NIBBLING. B1. For example, in the case of FIG. 9 (see FIG. 18), GRID development of FIG. 9 is performed as shown in FIG. For example, in the case of the Daimaru of FIG. 28, as shown in FIG.
Expand NIBBLINGARC.

【0067】(3-4)画層OUTSIDEの線分に対し、
両端点にミクロジョイント工具を割り当て、残りの線分
に対しては、X方向は100mm×10mm角を、Y方向は
10mm×100mm角をSHEAR PROOFパターン
で割り付ける。
(3-4) With respect to the line segment of the image layer OUTSIDE,
A micro joint tool is assigned to both end points, and a 100 mm × 10 mm square in the X direction and a 10 mm × 100 mm square in the Y direction are assigned to the remaining line segments in a SHEAR PROOF pattern.

【0068】(3-5)以上の様にして得られる割付完成図
を図28に示す。
(3-5) FIG. 28 shows a completed layout obtained as described above.

【0069】以上述べた様に、任意形状の抜き穴等でも
この抜き穴等を単純図形に分解し、、工具テーブルに用
意された単純図形加工用工具を割り付けて加工するよう
にしたので、連続的に工具の自動割付とNCコードの自
動作成を行うことが可能となる。図29は、上述した一
連の作業手順を1図に示し見易くしたものであり、加工
対象部品を板金展開したときの抜き穴図形と外周角形状
に分解し、次に、抜き穴形状を単純図形「角」,「丸」
に分解し、次に、外周角形状の線分をTRIMしてミク
ロジョイントと外周工具を設ける線分を抽出し、1工具
で加工できない大きな角をGRIDで分解し、同様に大
きな丸はNIBBLINGで分解し、ミクロジョイント
位置は線分の端点とし線長に応じて追加指定するように
している。
As described above, even in the case of a hole having an arbitrary shape, the hole is disassembled into a simple figure, and the simple figure machining tool prepared in the tool table is allocated and machined. This makes it possible to automatically allocate tools and automatically create NC codes. FIG. 29 is a view showing the above-described series of work procedures shown in FIG. 1 in an easy-to-read manner. "Rounded corners"
Then, TRIM is performed on the line segment of the outer peripheral angular shape to extract the line segment where the micro joint and the outer peripheral tool are provided, and a large angle that cannot be machined by one tool is decomposed by GRID. Similarly, a large circle is NIBBLING. After disassembly, the micro joint position is set as the end point of the line segment and is additionally specified according to the line length.

【0070】[0070]

【発明の効果】本発明によれば、工具と一致しない抜き
穴等がある部品の加工プログラムを対話形式によらずに
短時間に自動的に作成することが可能となる。
According to the present invention, a machining program for a part having a hole or the like that does not match a tool can be automatically created in a short time without using an interactive system.

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

【図1】本発明の一実施例に係るNCデータ作成システ
ムの全体構成図である。
FIG. 1 is an overall configuration diagram of an NC data creation system according to an embodiment of the present invention.

【図2】部品外周形状とミクロジョイント位置等との関
係を示す図である。
FIG. 2 is a diagram showing a relationship between a part outer peripheral shape and a micro joint position and the like.

【図3】各種の基本図形説明図である。FIG. 3 is an explanatory diagram of various basic figures.

【図4】基本図形の単純図形への分解説明図である。FIG. 4 is an explanatory diagram of a disassembly of a basic figure into simple figures.

【図5】基本図形の図形判断基準説明図である。FIG. 5 is an explanatory diagram of a graphic judgment criterion of a basic graphic.

【図6】単純図形への分解手順説明図である。FIG. 6 is an explanatory diagram of a disassembling procedure into simple figures.

【図7】分解した角,丸をNCコードマクロパターンに
展開する説明図である。
FIG. 7 is an explanatory diagram for developing a decomposed corner and a circle into an NC code macro pattern.

【図8】部品外周形状と部品外周「角」形状との関係を
示す図である。
FIG. 8 is a diagram showing a relationship between a component outer peripheral shape and a component outer peripheral “corner” shape.

【図9】抜き穴処理の説明図である。FIG. 9 is an explanatory diagram of a punching process.

【図10】パンチする穴とパンチ間隔の説明図である。FIG. 10 is an explanatory diagram of a hole to be punched and a punch interval.

【図11】傾いた抜き穴処理の説明図である。FIG. 11 is an explanatory diagram of a tilted hole processing.

【図12】工具と抜き穴の関係図である。FIG. 12 is a diagram showing a relationship between a tool and a hole.

【図13】工具と抜き穴の関係図である。FIG. 13 is a diagram showing a relationship between a tool and a hole.

【図14】工具の抜き穴の関係図である。FIG. 14 is a diagram showing the relationship between the holes of the tool.

【図15】工具と抜き穴の関係図である。FIG. 15 is a diagram showing a relationship between a tool and a hole.

【図16】直線と円との交点を求めるときの説明図であ
る。
FIG. 16 is an explanatory diagram when an intersection between a straight line and a circle is obtained.

【図17】部品外周角形状図である。FIG. 17 is a diagram showing a peripheral shape of a component.

【図18】部品抜き穴形状図である。FIG. 18 is a view showing a shape of a component hole.

【図19】各種抜き穴の画層及び形状定義情報説明図で
ある。
FIG. 19 is an explanatory diagram of image layers and shape definition information of various punched holes.

【図20】工具テーブルの例を示す図である。FIG. 20 is a diagram illustrating an example of a tool table.

【図21】抜き穴形状の分解例を示す図である。FIG. 21 is a diagram showing an example of disassembly of a hole shape.

【図22】長丸の分解例を示す図である。FIG. 22 is a diagram illustrating an example of disassembly of a long circle.

【図23】部品外周角形状の線分への分解図である。FIG. 23 is an exploded view of a component outer peripheral angular shape into line segments.

【図24】図23に示す線分1の図形1によるトリム
(TRIM)説明図である。
24 is an explanatory diagram of trim (TRIM) using FIG. 1 of line segment 1 shown in FIG.

【図25】図24に示す線分1の図形5によるトリム説
明図である。
FIG. 25 is an explanatory diagram of a trim by the graphic 5 of the line segment 1 shown in FIG. 24;

【図26】GRID展開説明図である。FIG. 26 is an explanatory diagram of GRID development.

【図27】NIBBLING ARC展開説明図であ
る。
FIG. 27 is an explanatory diagram of NIBBLING ARC development.

【図28】図18に対応する工具割付完成図である。FIG. 28 is a completed view of tool assignment corresponding to FIG. 18;

【図29】工具割付手順を説明する図である。FIG. 29 is a diagram illustrating a tool allocation procedure.

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

100…NCデータ作成システム、101…CADシス
テム、102…自動プログラミング装置、103…数値
制御付タレットパンチプレス。
100: NC data creation system; 101: CAD system; 102: Automatic programming device; 103: Turret punch press with numerical control.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 板金加工用の数値制御付タレットパンチ
プレスで抜き穴加工を施すためのNCコ−ドをプログラ
ミングする方法において、 板金展開した部品図を外周角形状と抜き穴図形に画層分
けし、 抜き穴図形を角、丸、長丸、R付角、アーク、コーナカ
ットの基本図形に分解し、タレツトに保有する工具の形状と抜き穴の形状とが一致
しない場合には、一致しない基本図形のうち、長丸、R
付角、アーク、コーナカットを角、丸の単純図形に分解
し、 抜き穴の工具を自動割付し、 部品取り出しのミクロジョイント位置を特定し、ミクロ
ジョイント工具を自動割付し、 部品外周工具を自動割付する ことを特徴とする、数値制
御付タレットパンチプレス用のNCコード自動プログラ
ミング方法。
1. A turret punch with numerical control for sheet metal processing.
NC code for punching with a press is programmed.
In the method of patterning, the part drawing developed on the sheet metal is divided into
Pop-upSquare, round, oval, rounded, arc, konaka
Basic shape of the unitBroken down intoThe shape of the tool held in the turret matches the shape of the hole
Otherwise, the long circle, R
Decompose angled corners, arcs, and corner cuts into simple corners and circles
And Automatically assigns the tool for the punched hole, Identify the position of the micro joint for component
Automatically assign joint tools, Automatically assign a part peripheral tool Characterized by, Numerical system
For turret punch pressNC code automatic program
Ming method.
【請求項2】 板金加工用の数値制御付タレットパンチ
プレスで抜き穴加工を施すためのNCコ−ドをプログラ
ミングする装置において、 板金展開した部品図を外周角形状と抜き穴図形に画層分
けする手段と、 抜き穴図形を角、丸、長丸、R付角、アーク、コーナカ
ットの基本図形に分解する手段とタレツトに保有する工具の形状と抜き穴の形状とが一致
しない場合には、一致しない基本図形のうち、長丸、R
付角、アーク、コーナカットを角、丸の単純図形に分解
する手段と、 抜き穴の工具を自動割付する手段と、 部品取り出しのミクロジョイント位置を特定し、ミクロ
ジョイント工具を自動割付する手段と、 部品外周工具を自動割付する手段とを具備したこと を特
徴とする、数値制御付タレットパンチプレス用のNCコ
ード自動プログラミング装置
2. A turret punch with numerical control for sheet metal working.
NC code for punching with a press is programmed.
In the machine that performs the patterning, the part drawing developed from the sheet metal is divided into
And the hole shapeSquare, round, oval, rounded, arc, konaka
Means to decompose it into basic figures,The shape of the tool held in the turret matches the shape of the hole
Otherwise, the long circle, R
Decompose angled corners, arcs, and corner cuts into simple corners and circles
Means to Means for automatically allocating the tool for the punched hole, Identify the position of the micro joint for component
Means for automatically allocating joint tools, Means for automatically allocating a part peripheral tool Especially
SignFor turret punch press with numerical controlNC Co
Mode automatic programmingapparatus.
JP15207893A 1993-06-23 1993-06-23 NC code automatic programming method and apparatus for turret punch press with numerical control Expired - Fee Related JP3223478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15207893A JP3223478B2 (en) 1993-06-23 1993-06-23 NC code automatic programming method and apparatus for turret punch press with numerical control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15207893A JP3223478B2 (en) 1993-06-23 1993-06-23 NC code automatic programming method and apparatus for turret punch press with numerical control

Publications (2)

Publication Number Publication Date
JPH079043A JPH079043A (en) 1995-01-13
JP3223478B2 true JP3223478B2 (en) 2001-10-29

Family

ID=15532576

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15207893A Expired - Fee Related JP3223478B2 (en) 1993-06-23 1993-06-23 NC code automatic programming method and apparatus for turret punch press with numerical control

Country Status (1)

Country Link
JP (1) JP3223478B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7110848B2 (en) * 2002-06-24 2006-09-19 Ryozo Shibano Computer program product
US7885722B2 (en) 2006-03-23 2011-02-08 Autoform Engineering Gmbh Method planning for manufacturing sheet-metal forming parts
JP5013807B2 (en) * 2006-10-11 2012-08-29 東日本旅客鉄道株式会社 Punch, die, press method, press machine processing program creation device and press machine processing program
JP4971947B2 (en) * 2007-11-12 2012-07-11 株式会社アマダエンジニアリングセンター Punch press equipped with a tool identification medium reader
DE102013211960A1 (en) 2013-06-24 2014-12-24 Trumpf Werkzeugmaschinen Gmbh + Co. Kg System and method for detecting deformations

Also Published As

Publication number Publication date
JPH079043A (en) 1995-01-13

Similar Documents

Publication Publication Date Title
JPH0480401B2 (en)
JP2716549B2 (en) How to simulate and display the processed product
JP3223478B2 (en) NC code automatic programming method and apparatus for turret punch press with numerical control
US6247006B1 (en) Automatic programming method for punch press and apparatus for the same
JP3679110B2 (en) CAD / CAM system for sheet metal working, program and recording medium recording program
EP0342591A2 (en) Machining data forming system for numerical control device
JPH09160625A (en) Nc data generating device
JP2636666B2 (en) Tool assignment method to sheet metal processing figure
JPH0720920A (en) Method for generating tool track data
JP3593353B2 (en) Sheet cutting data generator in automatic programming system for sheet metal working
JP2746162B2 (en) Tool placement method to board material figure data
JPH0561515A (en) Automatic programming method for punch press machine
EP0148947A1 (en) Data input method
JP2004234693A (en) Cad/cam device
JP3175401B2 (en) CAD / CAM equipment
JP2610978B2 (en) Apparatus and method for designing printed circuit board mold
JP2843416B2 (en) Automatic programming system for laser and punch combined machining
JP3175718B2 (en) Numerical control data generation device and numerical control data generation method
JP5338134B2 (en) Tool placement apparatus and placement method for plate material processing figure
JP2793827B2 (en) Data creation method for NC machine of sheet metal box
JP2001075625A (en) Nc data automatic generation system for punch machining
WO1989006173A1 (en) Corner shape setting method in wire cut machining
JPS59223805A (en) Processing method of graphic construction
JPH08106318A (en) Method for arranging tool on plate material machining graphic data
JP2005297000A (en) Working shape display device for sheet metal working

Legal Events

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

Free format text: PAYMENT UNTIL: 20080824

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees