JP2659127B2 - NC data creation device - Google Patents

NC data creation device

Info

Publication number
JP2659127B2
JP2659127B2 JP23994388A JP23994388A JP2659127B2 JP 2659127 B2 JP2659127 B2 JP 2659127B2 JP 23994388 A JP23994388 A JP 23994388A JP 23994388 A JP23994388 A JP 23994388A JP 2659127 B2 JP2659127 B2 JP 2659127B2
Authority
JP
Japan
Prior art keywords
closed area
point
grid point
grid
internal
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 - Lifetime
Application number
JP23994388A
Other languages
Japanese (ja)
Other versions
JPH0289106A (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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP23994388A priority Critical patent/JP2659127B2/en
Publication of JPH0289106A publication Critical patent/JPH0289106A/en
Application granted granted Critical
Publication of JP2659127B2 publication Critical patent/JP2659127B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明はミーリング加工等をするためのNCデータ作成
装置に関する。
Description: TECHNICAL FIELD The present invention relates to an NC data creation device for performing milling or the like.

「従来の技術」 たとえば、ブロック材から壁部を有する箱形状をした
部品を削り出すような場合には、壁部で囲まれた閉領域
をエンドミル等で切削加工する。このとき、エンドミル
による切削を始める切削開始点を特定しなければならな
い。
[Background Art] For example, when a box-shaped part having a wall is cut out from a block material, a closed region surrounded by the wall is cut by an end mill or the like. At this time, it is necessary to specify a cutting start point at which cutting by the end mill is started.

従来のNCデータ作成装置はこの種の切削開始点を選定
する機能はなく、任意の閉領域を切削加工する場合には
NCデータ作成装置のオペレータが切削開始点を設定して
いた。そして、NCデータ作成装置では、第8図に示す様
に、切削すべき閉領域81を単純な凸状形状82とみなして
設定された切削開始点が閉領域内に入っているか否かを
チェックするにすぎなかった。
Conventional NC data creation equipment does not have a function to select this kind of cutting start point, and when cutting an arbitrary closed area
The operator of the NC data creation device has set the cutting start point. Then, as shown in FIG. 8, the NC data creation apparatus checks whether or not the set cutting start point is within the closed area by regarding the closed area 81 to be cut as a simple convex shape 82. I just did.

「発明が解決しようとする課題」 しかしながら、この種の切削加工において切削すべき
閉領域は必ずしも単純な凸状形状になるとは限らない。
たとえば、リブやボス部を有する部品を削り出すには凹
形状を有する閉領域を切削する必要がある。従来の装置
では、チェック方法が簡単なため閉領域81の凹形状部分
83,84でチェックもれを生じ、オペレータが誤った切削
開始点を指定するとカッターが喰い込んでしまうことが
あるという問題点があった。
"Problem to be Solved by the Invention" However, the closed area to be cut in this type of cutting does not always have a simple convex shape.
For example, in order to cut out a component having a rib or a boss, it is necessary to cut a closed region having a concave shape. In the conventional device, the concave portion of the closed area 81 is used because the checking method is simple.
At 83 and 84, a check was missed, and if the operator specified an incorrect cutting start point, there was a problem that the cutter might bite.

本発明は、上記の問題点に鑑みなされたものであり、
その目的とするところは、オペレータが切削すべき閉領
域を指定するだけで、自動的に最適な切削開始点を探査
抽出し、NCデータを作成することができる装置を提供す
ることにある。
The present invention has been made in view of the above problems,
It is an object of the present invention to provide a device which can automatically search and extract an optimum cutting start point and create NC data only by specifying a closed region to be cut by an operator.

「課題を解決するための手段」 上記の目的を達成するため、本発明では、任意の閉領
域内を切削するためのNCデータの作成装置において、閉
領域の境界線を定義する構成点を記憶する閉領域記憶手
段と、少なくとも前記閉領域を覆う格子点を生成する格
子点生成手段と、一つの格子点と前記各構成点とを結ぶ
各線分が前記閉領域の境界線と交わる交点の数の偶奇に
より各格子点について前記閉領域の内部にある内部格子
点か外部にある外部格子点かを判定する内外判定手段
と、前記内部格子点から前記閉領域のすべての境界線に
下した各垂線の長さの合計を各内部格子点ごとに求める
垂線長算出手段と、その垂線長が最も短い内部格子点を
切削開始点とする切削開始点選定手段と、を備えること
を特徴とするNCデータ作成装置が提供される。
"Means for Solving the Problems" In order to achieve the above object, according to the present invention, in an NC data creating apparatus for cutting an inside of an arbitrary closed region, a constituent point defining a boundary of the closed region is stored. Closed-area storage means, a grid-point generating means for generating at least grid points covering the closed area, and the number of intersections at which each line segment connecting one grid point and each of the constituent points intersects the boundary line of the closed area. Internal and external determining means for determining whether each grid point is an internal grid point inside the closed region or an external grid point outside the closed grid region for each grid point; and NC comprising a perpendicular length calculating means for calculating the total length of the perpendicular for each internal grid point, and a cutting start point selecting means for setting the internal grid point whose perpendicular length is the shortest as a cutting start point, NC A data creation device is provided.

「作用」 上記のように構成されたNCデータ作成装置において
は、格子点生成手段により適当なグリッド間隔で生成さ
れた多数の格子点の中から最適な切削開始点が抽出され
る。そのため、まず、格子点は閉領域の内部にある内部
格子点と外部にある外部格子点とに内外判定手段により
区分けされる。次に、内部格子点の中から最短の垂線長
を有する格子点が選別され切削開始点とされる。
[Operation] In the NC data creating apparatus configured as described above, the optimal cutting start point is extracted from a large number of grid points generated at appropriate grid intervals by the grid point generating means. For this reason, the grid points are first divided into internal grid points inside the closed area and external grid points outside by the inside / outside determination means. Next, a grid point having the shortest perpendicular line length is selected from the internal grid points and set as a cutting start point.

「実施例」 本発明の実施例について図面を参照し説明する。第1
図はNCデータ作成装置及びそれに接続された工作機械を
示すブロック図である。
"Example" An example of the present invention will be described with reference to the drawings. First
The figure is a block diagram showing the NC data creation device and the machine tool connected to it.

工作機械20は数値制御装置10に接続され、数値制御装
置10にはNCデータ作成装置30が接続されている。
The machine tool 20 is connected to the numerical control device 10, and the numerical control device 10 is connected to the NC data creating device 30.

数値制御装置10には、サーボモータ駆動回路DUX,DUY,
DUZ,シーケンスコントローラ11が図略のインタフェース
を介して接続されている。マシニングセンタ形の工作機
械20では、前記サーボモータ駆動回路DUX,DUY,DUZのそ
れぞれによって駆動されるサーボモータ22,21,23の回転
によって、工作物Wを支持する工作物テーブル25と、主
軸モータSMによって駆動される主軸26を軸架する主軸ヘ
ッド24との間の相対位置が3次元的に変更される。ま
た、複数種類の工具を保持する工具マガジン27では、図
略のマガジン割出装置と工具交換装置28とによって工具
マガジン27内の工具が選択的に主軸26に装着されて工作
物Wの加工が行われる。又、シーケンスコントローラ11
には、主軸モータSMの回転速度を制御する主軸モータ駆
動回路15が接続されている。
The numerical controller 10 includes servo motor drive circuits DUX, DUY,
The DUZ and the sequence controller 11 are connected via an interface (not shown). In the machining center type machine tool 20, the rotation of the servo motors 22, 21, and 23 driven by the servo motor drive circuits DUX, DUY, and DUZ, respectively, causes a workpiece table 25 that supports the workpiece W, and a spindle motor SM. The relative position between the main shaft 26 driven by the main shaft 26 and the main spindle head 24 is three-dimensionally changed. In the tool magazine 27 that holds a plurality of types of tools, the tools in the tool magazine 27 are selectively mounted on the main spindle 26 by a not-shown magazine indexing device and a tool changing device 28, so that the machining of the workpiece W is performed. Done. Also, the sequence controller 11
Is connected to a spindle motor drive circuit 15 that controls the rotation speed of the spindle motor SM.

NCデータ作成装置30はハードウェア的にはコンピュー
タそのものであり、マイクロプロセッサ31,クロック信
号発生回路32,ROM33,RAM34,ハードディスク35,インタフ
ェース36,37を備え、インタフェース36にはキーボード3
8とCRT表示装置39が接続されている。
The NC data creation device 30 is a computer itself in terms of hardware, and includes a microprocessor 31, a clock signal generation circuit 32, a ROM 33, a RAM 34, a hard disk 35, and interfaces 36 and 37.
8 and the CRT display device 39 are connected.

NCデータ作成装置30を構成する各手段はマイクロプロ
セッサ31における処理として実現される。
Each means of the NC data creation device 30 is realized as a process in the microprocessor 31.

その処理について、第2図のフローチャート及び第3
図乃至第7図の説明図を参照し説明する。
The processing is described in the flowchart of FIG.
The description will be made with reference to the explanatory diagrams of FIGS.

処理100が開始されると、ステップ101では切削領域の
認識が行われる。切削領域の認識はハードディスク35か
ら工作物に関するデータを読み出し、そのデータを解読
することにより行われる。ステップ102では、第3図に
示す様に、切削領域50を使用工具の半径分だけオフセッ
トした閉領域51を定義し記憶する。閉領域51の記憶は、
閉領域51の境界線L1,L2…Lnを定義する構成点P1,P2
Pn、即ち、境界線の各折点位置により記憶する。ステッ
プ102は閉領域記憶手段を構成する。
When the process 100 is started, in step 101, recognition of a cutting area is performed. Recognition of the cutting area is performed by reading data on the workpiece from the hard disk 35 and decoding the data. In step 102, as shown in FIG. 3, a closed area 51 in which the cutting area 50 is offset by the radius of the used tool is defined and stored. The memory of the closed area 51 is
Constituent points P 1 , P 2 … defining boundary lines L 1 , L 2 … L n of the closed region 51
P n , that is, each break point position of the boundary line is stored. Step 102 constitutes a closed area storage means.

次に、ステップ103では、第4図に示す様に、閉領域5
1上に適当なグリッド間隔の格子52を想定し、閉領域51
を覆う多数の格子点G11,G12…Gij…を生成する。ステッ
プ103は格子点生成手段を構成する。
Next, in step 103, as shown in FIG.
Assuming a grid 52 with an appropriate grid interval on 1 and a closed area 51
Many grid points G 11 to the cover, G 12 ... to generate a G ij .... Step 103 constitutes a lattice point generating means.

ステップ104〜107では、各格子点Gijのそれぞれにつ
いて当該格子点Gijが閉領域51の内部に存在する内部格
子点Gij(in)か閉領域51の外部に存在する外部格子点G
ij(out)から順次判定する。内部格子点Gij(in)はそ
の判定フラグをオンにする。このステップ104における
内外判定は、第6図及び第7図に示す様に、チェックす
べき格子点Gijと閉領域51の各構成点P1,P2…Pnとを結ぶ
線分を想定し、この構成点の数nだけの線分が閉領域51
の境界線L1,L2…Lnと交わる交点の数を調べることによ
り行う。交点数が偶数(0を含む)であれば当該格子点
Gijは内部格子点Gij(in)であり、奇数であれば外部格
子点Gij(out)である。たとえば、第6図に示す例では
交点数は4であり、第7図に示す例では交点数は5であ
る。このようにして、第4図に示す様に、格子点Gij
内部格子点Gij(in)と外部格子点Gij(out)に区分す
る。ステップ104乃至107は内外判定手段を構成する。
In steps 104 to 107, for each grid point G ij , the grid point G ij is an internal grid point G ij (in) existing inside the closed area 51 or an external grid point G existing outside the closed area 51.
It is determined sequentially from ij (out). The internal grid point G ij (in) turns on its determination flag. The inside / outside determination in this step 104 assumes a line segment connecting the grid point G ij to be checked and each of the constituent points P 1 , P 2 ... Pn of the closed area 51 as shown in FIGS. Then, the number of line segments equal to the number n of the constituent points is
It carried out by checking the number of boundary L 1, L 2 ... intersection intersecting the L n. If the number of intersections is even (including 0), the grid point
G ij is an internal grid point G ij (in), and if it is odd, it is an external grid point G ij (out). For example, in the example shown in FIG. 6, the number of intersections is four, and in the example shown in FIG. 7, the number of intersections is five. In this way, the grid points G ij are divided into internal grid points G ij (in) and external grid points G ij (out), as shown in FIG. Steps 104 to 107 constitute an inside / outside determination means.

ステップ108,109では、内部格子点Gij(in)の中から
最適な切削開始点を選定する処理が行われる。ステップ
108では、第5図に示す様に、一つの内部格子点から閉
領域51の各境界線L1,L2…Ln、又はその延長線上に垂線
を下ろし、その各垂線の長さl1,l2…lnを合計して垂線
長を算出する(垂線長=l1+l2+…ln)。即ち、一つの
内部格子点Gij(in)から各境界線L1,L2…Lnへの距離の
合計を算出することになる。各内部格子点Gij(in)ご
とに算出された垂線長をステップ109で比較し、最も短
い垂線長を有する内部格子点Gij(in)を切削開始点と
して選定する。ステップ108は垂線長算出手段を、ステ
ップ109は切削開始点選定手段をそれぞれ構成する。
In steps 108 and 109, a process of selecting an optimum cutting start point from the internal grid points G ij (in) is performed. Steps
At 108, as shown in FIG. 5, a perpendicular line is dropped from one internal grid point to each boundary line L 1 , L 2 ... L n of the closed region 51 or an extension thereof, and the length l 1 of each perpendicular line sums the l 2 ... l n calculates the perpendicular line length (perpendicular line length = l 1 + l 2 + ... l n). That is, the sum of the distances from one internal grid point G ij (in) to each boundary line L 1 , L 2 ... L n is calculated. The perpendicular length calculated for each internal grid point G ij (in) is compared in step 109, and the internal grid point G ij (in) having the shortest perpendicular length is selected as the cutting start point. Step 108 constitutes a perpendicular length calculating means, and step 109 constitutes a cutting start point selecting means.

そして、ステップ110では、ステップ109で選定された
内部格子点Gij(in)を切削開始点として切削領域50を
切削するNCデータを作成し、処理を終了する。
Then, in step 110, NC data for cutting the cutting area 50 is created with the internal grid point G ij (in) selected in step 109 as a cutting start point, and the process ends.

このようにして作成されたNCデータは数値制御装置10
に出力され、指令された加工軌跡に沿って工作物Wが切
削加工される。
The NC data created in this way is stored in the numerical controller 10
And the workpiece W is cut along the commanded machining locus.

「発明の効果」 本発明は、上記のように構成されているので、最適な
切削開始点を自動的に探査抽出することができるという
効果がある。切削開始点が自動的に求められ、NCデータ
が作成されるので、操作ミスを排除することができる。
“Effect of the Invention” The present invention is configured as described above, and thus has an effect that the optimum cutting start point can be automatically searched and extracted. Since the cutting start point is automatically determined and NC data is created, operation errors can be eliminated.

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

第1図はNCデータ作成装置を示すブロック図、第2図は
プロセッサでの処理を示すフローチャート、第3図,第
4図及び第5図は閉領域の一例を挙げて処理を説明する
説明図、第6図及び第7図は内外判定手段を説明する説
明図であり、第8図は従来の装置の作動を示す説明図で
ある。 30……NCデータ作成装置、31……マイクロプロセッサ、
33……ROM、34……RAM、51……閉領域、52……格子、G
ij……格子点、L1,L2…Ln……境界線、P1,P2…Pn……構
成点。
FIG. 1 is a block diagram showing an NC data generating apparatus, FIG. 2 is a flowchart showing processing in a processor, and FIGS. 3, 4 and 5 are explanatory diagrams for explaining processing using an example of a closed area. 6 and 7 are explanatory diagrams for explaining the inside / outside determination means, and FIG. 8 is an explanatory diagram showing the operation of the conventional device. 30 …… NC data generator, 31 …… Microprocessor,
33… ROM, 34… RAM, 51… Closed area, 52… Grid, G
ij ...... grid points, L 1, L 2 ... L n ...... boundary, P 1, P 2 ... P n ...... configuration point.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】任意の閉領域内を切削するためのNCデータ
の作成装置において、 閉領域の境界線を定義する構成点を記憶する閉領域記憶
手段と、 少なくとも前記閉領域を覆う格子点を生成する格子点生
成手段と、 一つの格子点と前記各構成点とを結ぶ各線分が前記閉領
域の境界線と交わる交点の数の偶奇により各格子点につ
いて前記閉領域の内部にある内部格子点か外部にある外
部格子点かを判定する内外判定手段と、 前記内部格子点から前記閉領域のすべての境界線に下し
た各垂線の長さの合計を各内部格子点ごとに求める垂線
長算出手段と、 その垂線長が最も短い内部格子点を切削開始点とする切
削開始点選定手段と、 を備えることを特徴とするNCデータ作成装置。
1. An apparatus for creating NC data for cutting an arbitrary closed area, comprising: closed area storage means for storing constituent points defining a boundary of the closed area; and a grid point covering at least the closed area. A grid point generating means for generating, and an internal grid which is inside the closed area for each grid point due to the evenness of the number of intersections where each line segment connecting one grid point and each of the constituent points intersects the boundary line of the closed area. Internal / external determining means for determining whether a point or an external grid point is located outside, and a perpendicular length for each internal grid point, which is the sum of the lengths of the perpendiculars drawn from the internal grid points to all the boundaries of the closed area. An NC data creating apparatus comprising: a calculating unit; and a cutting start point selecting unit that sets an internal grid point having the shortest perpendicular line as a cutting start point.
JP23994388A 1988-09-26 1988-09-26 NC data creation device Expired - Lifetime JP2659127B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23994388A JP2659127B2 (en) 1988-09-26 1988-09-26 NC data creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23994388A JP2659127B2 (en) 1988-09-26 1988-09-26 NC data creation device

Publications (2)

Publication Number Publication Date
JPH0289106A JPH0289106A (en) 1990-03-29
JP2659127B2 true JP2659127B2 (en) 1997-09-30

Family

ID=17052128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23994388A Expired - Lifetime JP2659127B2 (en) 1988-09-26 1988-09-26 NC data creation device

Country Status (1)

Country Link
JP (1) JP2659127B2 (en)

Also Published As

Publication number Publication date
JPH0289106A (en) 1990-03-29

Similar Documents

Publication Publication Date Title
US4604705A (en) Numerical control machining method and system therefor
JPH0321299B2 (en)
US20150293519A1 (en) Machine tool control device and machine tool
JPS6399114A (en) Polygon machining control device
JP2659127B2 (en) NC data creation device
JPH0753336B2 (en) Automatic tool selection device for machine tools
JP3226517B2 (en) NC data creation apparatus and method
JP2005349520A (en) Wire-cut electric-discharge machining method, machining program producing method in wire-cut electric-discharge machining method, and wire cut electric-discharge machining program producing device
JPH10118889A (en) Method for determining cutting condition
JP2839564B2 (en) NC data creation device
JP3116711B2 (en) NC data creation device for 3D contour machining of molds
JPH06104292B2 (en) Method and device for automatically dividing machining process in automatic programming device
JPH05228786A (en) Automatic generating device for nc data in nc machine tool
JP2661942B2 (en) NC data creation device
JP4286940B2 (en) NC machining program creation method and apparatus for machine tools
JP2646034B2 (en) Numerical control unit
JPH0745762Y2 (en) NC data creation device
JPH0697413B2 (en) Automatic program generator
JPH01205954A (en) Automatic determination device for tool route of machine tool
JPH02132503A (en) Numerical control data producing device
JP2763923B2 (en) NC data creation device
JPH06210544A (en) Nc data forming device
JP2846885B2 (en) NC data creation device
JP3226236B2 (en) NC data creation apparatus and method
JP2788137B2 (en) Numerical control data creation device