JPH06348324A - Method for generating basic data for nc data - Google Patents

Method for generating basic data for nc data

Info

Publication number
JPH06348324A
JPH06348324A JP16506693A JP16506693A JPH06348324A JP H06348324 A JPH06348324 A JP H06348324A JP 16506693 A JP16506693 A JP 16506693A JP 16506693 A JP16506693 A JP 16506693A JP H06348324 A JPH06348324 A JP H06348324A
Authority
JP
Japan
Prior art keywords
normal vector
basic data
tool path
path point
data
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
JP16506693A
Other languages
Japanese (ja)
Inventor
Maki Seki
真樹 関
Takashi Takegahara
隆史 竹ヶ原
Koichi Ito
浩一 伊藤
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP16506693A priority Critical patent/JPH06348324A/en
Publication of JPH06348324A publication Critical patent/JPH06348324A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To generate the NC data for efficient machining by imposing restrictions on a normal vector at a tool path point, determining the attitude of a tool, within certain limits and generating the basic data for the NC data. CONSTITUTION:Two mutually different reference planes are selected and inclination permissible ranges of the normal vector by the planes are numerically or graphically inputted and stored in a RAM 2. Then when first intermediate basic data read out of the RAM 2 have its normal vector within the inclination permissible range, the coordinate values of the tool path point of the intermediate basic data and the value of its normal vector are stored as basic data in a basic data storage area. If the normal vector of the intermediate basic data deviates from the inclination permissible range on the Z-X plane or Y-Z plane, the value in the inclination permissible range which is the closest to the inclination of the normal vector is stored as its normal vector in the basic data storage area together with the tool path point of the intermediate basic data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、NCデータ用基礎デー
タの作成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of creating basic data for NC data.

【0002】[0002]

【従来の技術】CADシステムによって作成された形状
データから工具経路点および該工具経路点における加工
形状の法線ベクトルを順次抽出し、これを直接NCデー
タ作成のための基礎データとして利用するようにした基
礎データの作成方法が公知である。NCデータの作成
は、この基礎データに基いて行われ、工具の姿勢を各工
具経路点における法線ベクトルに一致させた状態で工具
の先端が該工具経路点上に位置するように、各工具経路
点毎の各軸の直線移動位置および回転位置が決められ、
自動的にNCデータが作成されるようになっている。
2. Description of the Related Art A tool path point and a normal vector of a machining shape at the tool path point are sequentially extracted from shape data created by a CAD system and directly used as basic data for creating NC data. A method of creating the basic data is known. Creation of NC data is performed based on this basic data, and each tool is positioned such that the tip of the tool is located on the tool path point in a state where the tool posture matches the normal vector at each tool path point. The linear movement position and rotation position of each axis for each path point are determined,
NC data is automatically created.

【0003】しかし、工具経路点における加工形状の法
線ベクトルを工具の姿勢としてそのまま利用すると、加
工形状によっては、工具を装着したチャックやヘッド等
がワークに干渉する恐れがある。例えば、図5に示され
るような加工面L1,L2に沿って工具の先端が移動す
るとすると、工具の先端が加工面L1からL2に移って
工具軸が略水平状態となったときにチャックやヘッド等
がワークに干渉し、正常な加工動作が妨げられて加工効
率が悪くなる場合がある。
However, if the normal vector of the machining shape at the tool path point is used as it is as the orientation of the tool, the chuck or head mounted with the tool may interfere with the work depending on the machining shape. For example, when the tip of the tool moves along the machining surfaces L1 and L2 as shown in FIG. 5, when the tip of the tool moves from the machining surface L1 to L2 and the tool axis becomes substantially horizontal, the chuck or There is a case where the head or the like interferes with the work, and the normal machining operation is hindered, resulting in poor machining efficiency.

【0004】また、工具の傾きが問題とならないような
起伏の少ない曲面形状を加工するような場合であって
も、形状の法線ベクトルが工具経路点毎に工具姿勢とし
て再定義されるので、各軸の回転位置を決めるためのN
Cデータの量が無闇に多くなり、NCデータの保存や加
工に支障をきたす恐れがある。
Further, even in the case of processing a curved surface shape with few undulations in which the inclination of the tool does not matter, the normal vector of the shape is redefined as the tool attitude for each tool path point, N for determining the rotational position of each axis
The amount of C data increases unnecessarily, which may hinder the storage and processing of NC data.

【0005】[0005]

【発明が解決しようとする課題】本発明の目的は、前記
従来技術の欠点を解消し、効率の良い加工を行うNCデ
ータを作成することのできるNCデータ用基礎データの
作成方法を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a method of creating basic data for NC data which solves the drawbacks of the prior art and is capable of creating NC data for efficient processing. It is in.

【0006】[0006]

【課題を解決するための手段】本発明は、工具の姿勢を
決める工具経路点の法線ベクトルに一定限度の規制を設
けてNCデータ用基礎データを作成することにより前記
目的を達成した。
The present invention has achieved the above object by creating a basic data for NC data by setting a certain limit on the normal vector of the tool path point that determines the attitude of the tool.

【0007】即ち、CADシステムにより作成された形
状データから工具経路点および該工具経路点における加
工形状の法線ベクトルを順次抽出し、工具経路点におけ
る法線ベクトルの傾きが決められた傾斜許容範囲内にあ
れば、前記法線ベクトルを前記工具経路点における法線
ベクトルとし、傾斜許容範囲を外れていれば、前記法線
ベクトルの傾きに最も近い傾斜許容範囲内の値を前記工
具経路点における法線ベクトルとして基礎データを作成
することにより、工具のチャックやヘッド等とワークと
の干渉を防止して効率の良い加工を実施するNCデータ
を作成できるようにした。
That is, the tool path point and the normal vector of the machining shape at the tool path point are sequentially extracted from the shape data created by the CAD system, and the tilt allowable range in which the tilt of the normal vector at the tool path point is determined. If it is within the range, the normal vector is set as the normal vector at the tool path point, and if it is out of the tilt allowable range, a value within the tilt allowable range closest to the tilt of the normal vector is set at the tool path point. By creating the basic data as the normal vector, it is possible to create NC data that prevents interference between the chuck of the tool, the head, and the like and the work and performs efficient machining.

【0008】また、CADシステムにより作成された形
状データから工具経路点および該工具経路点における加
工形状の法線ベクトルを順次抽出し、今回抽出された工
具経路点における法線ベクトルと前回の工具経路点の法
線ベクトルとの成す角が決められた最小移動角内にあれ
ば、前回の法線ベクトルを今回抽出された工具経路点に
おける法線ベクトルとし、今回抽出された工具経路点に
おける法線ベクトルと前回の法線ベクトルとの成す角が
最小移動角を越えていれば、今回抽出された工具経路点
における法線ベクトルを当該工具経路点における法線ベ
クトルとして基礎データを作成することにより、各軸の
回転位置を決めるための制御データの数を減らして基礎
データを短縮し、効率の良い加工を実施するNCデータ
を作成できるようにした。
Further, the tool path point and the normal vector of the machining shape at the tool path point are sequentially extracted from the shape data created by the CAD system, and the normal vector at the tool path point extracted this time and the previous tool path are extracted. If the angle formed by the point's normal vector is within the determined minimum movement angle, the previous normal vector is set as the normal vector at the tool path point extracted this time, and the normal at the tool path point extracted this time. If the angle formed by the vector and the previous normal vector exceeds the minimum movement angle, by creating the basic data by using the normal vector at the tool path point extracted this time as the normal vector at the tool path point, To reduce the number of control data for determining the rotational position of each axis and shorten the basic data so that NC data for efficient machining can be created. It was.

【0009】[0009]

【作用】基礎データを構成する法線ベクトルの傾きを、
決められた傾斜許容範囲内に拘束することにより、工具
を装着したチャックやヘッドとワークとの干渉を未然に
防止し、効率の良い加工を行わせる。
[Operation] The slope of the normal vector forming the basic data is
By constraining the work within the predetermined allowable tilt range, it is possible to prevent interference between the chuck equipped with the tool or the head and the work, and perform efficient machining.

【0010】新たに抽出された工具経路点における法線
ベクトルと前回の工具経路点の法線ベクトルとの成す角
が決められた最小移動角内にある場合、即ち、工具の傾
きが問題とならないような起伏の少ない曲面形状から工
具経路点が抽出されているような場合には、当該工具経
路点の法線ベクトルとして前回の法線ベクトルがそのま
ま適用されるので、工具移動時に工具姿勢を変化させる
回転軸に無駄な動作がなく、加工効率が向上する。ま
た、工具経路点の法線ベクトルとして同一の法線ベクト
ルを適用する間、法線ベクトルを定義するデータの設定
が不要となるので、全体としてのNCデータが短縮され
る。
When the angle formed by the normal vector at the newly extracted tool path point and the normal vector at the previous tool path point is within the determined minimum movement angle, that is, the inclination of the tool does not matter. When a tool path point is extracted from a curved surface shape with few undulations, the previous normal vector is applied as is as the normal vector of the tool path point, so the tool posture changes when the tool moves. There is no useless movement of the rotating shaft, and the processing efficiency is improved. Further, while applying the same normal vector as the normal vector of the tool path point, it is not necessary to set the data defining the normal vector, so that the NC data as a whole is shortened.

【0011】[0011]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図1は本発明の基礎データ作成方法を実施する一
実施例のCAD/CAMシステムの要部を示すブロック
図で、1はマイクロプロセッサ(以下、CPUとい
う)、7は該CAD/CAMシステムの制御プログラム
を格納したROM、2はフロッピーディスク11からロ
ードされたシステムプログラムや各種のデータ等を格納
するRAM、3はキーボード、4はグラフィックディス
プレイとしてのCRT表示装置(以下、CRTとい
う)、9はタブレット装置、8はディスクコントロー
ラ、11はシステムプログラム等を格納したフロッピー
ディスク、10は作成図面を出力するためのX−Yプロ
ッタ、5はプリンタであり、これらの各要素はバス6を
介して接続されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a main part of a CAD / CAM system according to an embodiment for carrying out the basic data creating method of the present invention. 1 is a microprocessor (hereinafter referred to as CPU), and 7 is the control of the CAD / CAM system. ROM storing programs, 2 RAM for storing system programs loaded from floppy disk 11 and various data, 3 keyboard, 4 CRT display device (hereinafter referred to as CRT) as a graphic display, 9 tablet An apparatus, 8 is a disk controller, 11 is a floppy disk storing system programs and the like, 10 is an XY plotter for outputting a drawing, 5 is a printer, and these elements are connected via a bus 6. ing.

【0012】タブレット装置9は、画面対応領域9aと
メニュー表9bとを有し、タブレットカーソル9cを画
面対応領域9a内で移動させてCRT4上のグラフィッ
クカーソルを移動して指示操作を行うことによりCRT
4の表示画面上で任意位置を指定したり、また、メニュ
ー表9b上でタブレットカーソル9cを移動させて指示
操作を行うことによりフロッピーディスク11に準備さ
れたシステムプログラムから各種のメニュー項目を選択
するようになっている。
The tablet device 9 has a screen corresponding area 9a and a menu table 9b. The tablet cursor 9c is moved within the screen corresponding area 9a and the graphic cursor on the CRT 4 is moved to perform an instruction operation.
Various menu items are selected from the system program prepared in the floppy disk 11 by designating an arbitrary position on the display screen 4 and moving the tablet cursor 9c on the menu table 9b to perform an instruction operation. It is like this.

【0013】この種のCAD/CAMシステムを用いた
通常の設計操作や、形状データの作成に関するCAD機
能、および、NCデータの自動作成に関するCAM機能
等に関しては既に公知であるから説明を省略する。
Since a normal design operation using this type of CAD / CAM system, a CAD function for creating shape data, a CAM function for automatically creating NC data, etc. are already known, the description thereof will be omitted.

【0014】従来の自動プログラミング装置において
は、工具経路点の座標位置と各工具経路点に対応する形
状面の法線ベクトルとを形状データから抽出してNCデ
ータ作成のための基礎データとして直接利用していた
が、本実施例のCAD/CAMシステムでは、従来と同
様にして作成された基礎データを中間基礎データとし、
更に、中間基礎データとして記憶された個々の工具経路
点の法線ベクトルに対し、図2に示されるような処理手
続に従って規制を加えることによりNCデータの作成に
用いる最終的な基礎データを作成するようにしており、
この点、従来のCAD/CAMシステムとでは構成が相
違する。
In the conventional automatic programming device, the coordinate position of the tool path point and the normal vector of the shape surface corresponding to each tool path point are extracted from the shape data and directly used as basic data for creating NC data. However, in the CAD / CAM system of the present embodiment, the basic data created in the same manner as the conventional one is used as the intermediate basic data,
Further, the normal vector of each tool path point stored as the intermediate basic data is regulated according to the processing procedure as shown in FIG. 2 to create the final basic data used for creating the NC data. And
In this respect, the configuration is different from the conventional CAD / CAM system.

【0015】以下、形状データから抽出された中間基礎
データが既にRAM2に読み込まれているものとし、図
2のフローチャートを参照して本実施例における基礎デ
ータ作成方法を説明する。なお、NCプログラムは、
X,Y,Zの各直線移動軸によるテーブル送りと、垂直
面内で工具を揺動させる第1の回転軸A、および、前記
垂直面と直交する垂直面内で工具を揺動させる第2の回
転軸Bからなる5軸加工のNC工作機械に対応して作成
するものとする。
Hereinafter, assuming that the intermediate basic data extracted from the shape data has already been read into the RAM 2, the basic data creating method in this embodiment will be described with reference to the flowchart of FIG. The NC program is
Table feed by each linear movement axis of X, Y, Z, a first rotation axis A for swinging the tool in a vertical plane, and a second rotation axis for swinging the tool in a vertical plane orthogonal to the vertical plane. It is created corresponding to the NC machine tool of 5-axis machining consisting of the rotation axis B of.

【0016】そこで、まず、オペレータは、工具軸の傾
きを意味する法線ベクトルの傾きを規制するために、基
準となる相異なる2つの平面を選択し、キーボード3ま
たはタブレット装置9を介してCAD/CAMシステム
にフォーマットし、加工形状の凹凸状態や工具の取り付
け状態による干渉の可能性等を考慮して、各平面毎に、
法線ベクトルの傾斜許容範囲を数値または図形入力して
RAM2に記憶させる。この例では、相互に直交する垂
直面内の各々において工具の揺動が許容されるので、例
えば、相異なる2つの垂直面、Z−X平面とY−Z平面
とによって法線ベクトルの傾きを規制する必要がある。
図3および図4はZ−X平面とY−Z平面を傾斜許容範
囲の設定基準として選択した場合の設定例であり、工具
軸、即ち、法線ベクトルの傾斜は、Z−X平面への投影
がX軸から反時計回りにBmin.からBmax.の範囲(図3
参照)に、また、Y−Z平面への投影がY軸から反時計
回りにAmin.からAmax.の範囲(図4参照)に規制され
る。
Therefore, first, in order to regulate the inclination of the normal vector which means the inclination of the tool axis, the operator selects two different planes serving as a reference, and CAD is performed via the keyboard 3 or the tablet device 9. / CAM system, considering the possibility of interference due to the unevenness of the machining shape and the mounting state of the tool, for each plane,
The RAM 2 is stored by inputting a numerical value or a figure as to the tilt allowable range of the normal vector. In this example, since the tool is allowed to swing in each of the vertical planes orthogonal to each other, for example, the inclination of the normal vector is set by two different vertical planes, that is, the Z-X plane and the Y-Z plane. Need to be regulated.
FIG. 3 and FIG. 4 are setting examples in the case where the ZX plane and the YZ plane are selected as the setting criteria of the tilt allowable range, and the tool axis, that is, the tilt of the normal vector, is set to the ZX plane. The projection is counterclockwise from the X axis in the range from Bmin. To Bmax.
Also, the projection onto the YZ plane is regulated counterclockwise from the Y axis within the range from Amin. To Amax. (See FIG. 4).

【0017】次いで、CAM機能を作動させると、CP
U1は、まず、RAM2の中間基礎データ記憶領域から
最初のデータを読み込み(ステップS1)、該記憶領域
に中間基礎データが記憶されていれば(ステップS
2)、今回読み込んだ最初の工具経路点に対応する法線
ベクトルのZ−X平面への投影が傾斜許容範囲内にある
か否か、即ち、Z−X平面内でX軸から反時計回りにB
min.からBmax.の範囲内にあるか否かを判別する(ステ
ップS3)。そして、法線ベクトルのZ−X平面への投
影が傾斜許容範囲内にあれば、中間基礎データの法線ベ
クトルの値をそのまま法線ベクトル候補として保持する
一方、中間基礎データの法線ベクトルのZ−X平面への
投影が傾斜許容範囲を外れていれば、中間基礎データの
法線ベクトルに規制を加えて新たに法線ベクトル候補を
作成し、法線ベクトル候補として更新記憶する(ステッ
プS4)。即ち、中間基礎データの法線ベクトルのZ−
X平面への投影がX軸と成す角が傾斜許容範囲Bmax.を
越えていれば、法線ベクトルがZ−X平面内でX軸と成
す角をBmax.に置き換えて法線ベクトル候補を作成し、
また、中間基礎データの法線ベクトルのZ−X平面への
投影がX軸と成す角が傾斜許容範囲Bmin.に満たなけれ
ば、法線ベクトルがZ−X平面内でX軸と成す角をBmi
n.に置き換えて法線ベクトル候補を作成し、更新記憶す
る。
Then, when the CAM function is activated, the CP
The U1 first reads the first data from the intermediate basic data storage area of the RAM 2 (step S1), and if the intermediate basic data is stored in the storage area (step S1).
2) Whether or not the projection of the normal vector corresponding to the first tool path point read this time to the ZX plane is within the tilt allowable range, that is, counterclockwise rotation from the X axis in the ZX plane. To B
It is determined whether or not it is within the range of min. to Bmax. (step S3). Then, if the projection of the normal vector onto the Z-X plane is within the tilt allowable range, the value of the normal vector of the intermediate basic data is held as it is as a normal vector candidate, while the value of the normal vector of the intermediate basic data is changed. If the projection onto the Z-X plane is out of the tilt allowable range, the normal vector of the intermediate basic data is restricted to newly create a normal vector candidate, and the new normal vector candidate is updated and stored (step S4). ). That is, Z− of the normal vector of the intermediate basic data
If the angle formed by the projection on the X plane with the X axis exceeds the tilt allowable range Bmax., The angle formed by the normal vector with the X axis in the ZX plane is replaced with Bmax. To create a normal vector candidate. Then
If the angle formed by the projection of the normal vector of the intermediate basic data onto the Z-X plane with the X-axis does not satisfy the tilt allowable range Bmin., The angle formed by the normal vector with the X-axis in the Z-X plane is determined. Bmi
Replace with n. to create a normal vector candidate and update and store it.

【0018】そして、CPU1は、法線ベクトル候補の
Y−Z平面への投影が傾斜許容範囲内にあるか否か、即
ち、Y−Z平面内でY軸から反時計回りにAmin.からA
max.の範囲内にあるか否かを判別し(ステップS5)、
前記と同様、法線ベクトル候補のY−Z平面への投影が
傾斜許容範囲内にあれば、現時点における法線ベクトル
候補の値をそのまま法線ベクトル候補として保持する一
方、現時点における法線ベクトル候補のY−Z平面への
投影が傾斜許容範囲を外れていれば、法線ベクトル候補
に規制を加えて新たに法線ベクトル候補を作成し、法線
ベクトル候補として更新記憶する(ステップS6)。即
ち、現時点における法線ベクトル候補のY−Z平面への
投影がY軸と成す角が傾斜許容範囲Amax.を越えていれ
ば、法線ベクトル候補がY−Z平面内でY軸と成す角を
Amax.に置き換えて法線ベクトル候補を作成し、また、
法線ベクトル候補のY−Z平面への投影がY軸と成す角
が傾斜許容範囲Amin.に満たなければ、法線ベクトル候
補がY−Z平面内でY軸と成す角をAmin.に置き換えて
法線ベクトル候補を作成し、更新記憶する。
Then, the CPU 1 determines whether or not the projection of the normal vector candidate onto the YZ plane is within the tilt allowable range, that is, in the YZ plane from Amin. To A counterclockwise from the Y axis.
It is determined whether or not it is within the range of max. (step S5),
Similarly to the above, if the projection of the normal vector candidate on the YZ plane is within the tilt allowable range, the value of the normal vector candidate at the present time is held as it is as the normal vector candidate, while the normal vector candidate at the current time is held. If the projection on the YZ plane is out of the allowable tilt range, the normal vector candidate is restricted to create a new normal vector candidate, and the normal vector candidate is updated and stored (step S6). That is, if the angle formed by the projection of the normal vector candidate on the YZ plane at the present time with the Y axis exceeds the tilt allowable range Amax., The angle formed by the normal vector candidate with the Y axis on the YZ plane. To create a normal vector candidate by replacing Amax.
If the angle formed by the projection of the normal vector candidate on the YZ plane with the Y axis is less than the tilt allowable range Amin., The angle formed by the normal vector candidate with the Y axis on the YZ plane is replaced by Amin. A normal vector candidate is created and updated and stored.

【0019】次いで、CPU1は、現時点で読み込まれ
ている中間基礎データの前に中間基礎データが存在する
か否かを判別するが(ステップS7)、中間基礎データ
の記憶領域から読み込まれた最初の中間基礎データに基
く処理を行っている現段階では、当然ステップS7の判
別結果は偽となる。そこで、CPU1は、現時点で読み
込まれている中間基礎データの工具経路点の座標値とこ
れに対応するステップS7実行時点の法線ベクトル候補
の値を最初の基礎データとしてRAM2の基礎データ記
憶領域に工具経路点および法線ベクトルとして記憶し
(ステップS8)、再び、ステップS1の処理へと移行
してRAM2の中間基礎データ記憶領域から次の中間基
礎データを読み込み、以下、前記と同様の処理を繰り返
し実行してステップS7の判別処理へと移行する。
Next, the CPU 1 determines whether or not the intermediate basic data is present before the intermediate basic data currently read (step S7), but the first basic data read from the storage area of the intermediate basic data is determined. At the current stage of processing based on the intermediate basic data, the determination result of step S7 is naturally false. Therefore, the CPU 1 sets the coordinate value of the tool path point of the intermediate basic data currently read and the value of the normal vector candidate at the time of executing step S7 corresponding thereto as the initial basic data in the basic data storage area of the RAM 2. It is stored as a tool path point and a normal vector (step S8), the process proceeds to step S1 again, the next intermediate basic data is read from the intermediate basic data storage area of the RAM 2, and the same process as described above is performed. The process is repeatedly executed and the process proceeds to the determination process of step S7.

【0020】第2個目以降の中間基礎データに対して処
理を行う際には必然的にステップS7の判別結果が真と
なる。
When the second and subsequent intermediate basic data are processed, the determination result of step S7 is inevitably true.

【0021】そこで、CPU1は、現時点における法線
ベクトル候補、即ち、新たに読み込まれた中間基礎デー
タに対応するステップS7実行時点の法線ベクトル候補
と直前にRAM2の基礎データ記憶領域に記憶された基
礎データの法線ベクトルとの成す角を求め(ステップS
9)、この角度が予めRAM2に設定記憶された最小移
動角の範囲内にあるか否かを判別する(ステップS1
0)。そして、新たに読み込まれた中間基礎データに対
応する法線ベクトル候補と直前に記憶された基礎データ
の法線ベクトルとの成す角が最小移動角の範囲内にあれ
ば、工具軸の姿勢を変更する必要はないものと判定し、
直前に記憶された基礎データの法線ベクトルを新たに読
み込まれた中間基礎データに対応する法線ベクトル候補
とする一方(ステップS11)、この角が最小移動角の
範囲を越えていれば、工具軸の姿勢を変更する必要があ
るものと認め、新たに読み込まれた中間基礎データに対
応するステップS10実行時点の法線ベクトル候補をそ
のまま法線ベクトル候補として保持する。
Therefore, the CPU 1 stores the normal vector candidate at the present time, that is, the normal vector candidate at the time of executing step S7 corresponding to the newly read intermediate basic data and the basic vector storage area of the RAM 2 immediately before. Find the angle formed by the normal vector of the basic data (step S
9) It is determined whether or not this angle is within the range of the minimum movement angle set and stored in the RAM 2 in advance (step S1).
0). Then, if the angle formed by the normal vector candidate corresponding to the newly read intermediate basic data and the normal vector of the basic data stored immediately before is within the range of the minimum movement angle, the posture of the tool axis is changed. Determined that it is not necessary to
The normal vector of the basic data stored immediately before is set as a normal vector candidate corresponding to the newly read intermediate basic data (step S11), and if this angle exceeds the range of the minimum movement angle, the tool Recognizing that it is necessary to change the posture of the axis, the normal vector candidate at the time of execution of step S10 corresponding to the newly read intermediate basic data is held as it is as a normal vector candidate.

【0022】そして、CPU1は、現時点で読み込まれ
ている中間基礎データの工具経路点の座標値とこれに対
応する現時点の法線ベクトル候補の値を次の基礎データ
としてRAM2の基礎データ記憶領域に記憶し(ステッ
プS12)、以下、ステップS2の判別結果が偽となっ
て全ての中間基礎データに対して基礎データが作成され
るまでの間、前記と同様の処理を繰り返し実行して次々
と基礎データを作成してゆく。
Then, the CPU 1 stores the coordinate value of the tool path point of the intermediate basic data read at the present time and the value of the normal vector candidate at the current time corresponding thereto in the basic data storage area of the RAM 2 as the next basic data. It is stored (step S12), and thereafter, until the determination result of step S2 becomes false and the basic data is created for all the intermediate basic data, the same processing as described above is repeatedly executed to sequentially perform the basic processing. Create data.

【0023】従って、本実施例によれば、RAM2から
読み込まれる最初の中間基礎データに関しては、その法
線ベクトルが傾斜許容範囲内にある限り、中間基礎デー
タの工具経路点の座標値とその法線ベクトルの値がその
まま基礎データとして基礎データ記憶領域に記憶され、
また、中間基礎データの法線ベクトルがZ−X平面また
はY−Z平面において傾斜許容範囲を外れている場合に
は、該法線ベクトルの傾きに最も近い傾斜許容範囲内の
値が中間基礎データの工具経路点と共にその法線ベクト
ルとして基礎データ記憶領域に記憶される。
Therefore, according to the present embodiment, for the first intermediate basic data read from the RAM 2, as long as the normal vector is within the tilt allowable range, the coordinate values of the tool path point of the intermediate basic data and the method thereof are used. The value of the line vector is stored as it is in the basic data storage area as basic data,
Further, when the normal vector of the intermediate basic data is out of the tilt allowable range on the ZX plane or the YZ plane, the value within the tilt allowable range closest to the tilt of the normal vector is the intermediate basic data. Is stored in the basic data storage area as the normal vector together with the tool path point of.

【0024】また、RAM2から読み込まれる第2番目
以降の中間基礎データに関しては、該中間基礎データに
おける法線ベクトルに対して前記と同様の規制が加えら
れ、更に、該規制された法線ベクトルと基礎データ記憶
領域に記憶された直前の法線ベクトルとの成す角が予め
設定された最小移動角内にあれば、基礎データ記憶領域
に記憶された直前の法線ベクトルの値が該中間基礎デー
タの工具経路点と共にその法線ベクトルとして基礎デー
タ記憶領域に記憶され、また、前記規制された法線ベク
トルと基礎データ記憶領域に記憶された直前の法線ベク
トルとの成す角が予め設定された最小移動角の範囲を越
えていれば、前記規制された法線ベクトルの値が該中間
基礎データの工具経路点と共にその法線ベクトルとして
基礎データ記憶領域に記憶されることとなる。
Further, regarding the second and subsequent intermediate basic data read from the RAM 2, the same regulation as above is applied to the normal vector in the intermediate basic data, and further, the regulated normal vector and If the angle formed with the immediately preceding normal vector stored in the basic data storage area is within the preset minimum movement angle, the value of the immediately previous normal vector stored in the basic data storage area is the intermediate basic data. Is stored in the basic data storage area as its normal vector together with the tool path point, and the angle formed by the regulated normal vector and the immediately preceding normal vector stored in the basic data storage area is set in advance. If it exceeds the range of the minimum movement angle, the value of the regulated normal vector is stored in the basic data storage area as the normal vector together with the tool path point of the intermediate basic data. And thus to be stored in.

【0025】つまり、ステップS10で比較対象となる
のは、新たに読み込まれた中間基礎データの規制済み法
線ベクトルと、ステップS8もしくはステップS12で
記憶された直前の経路点における法線ベクトルである。
That is, what is compared in step S10 is the regulated normal vector of the newly read intermediate basic data and the normal vector at the immediately preceding route point stored in step S8 or step S12. .

【0026】なお、中間基礎データ記憶領域に独立させ
て基礎データ記憶領域を設定する必要は必ずしもなく、
例えば、中間基礎データの保存が不要であるような場合
には、前述の処理で求められた基礎データを中間基礎デ
ータ記憶領域の対応位置に順次上書きして更新記憶する
ことも許容される。
It is not always necessary to set the basic data storage area independently of the intermediate basic data storage area.
For example, when it is not necessary to save the intermediate basic data, it is possible to sequentially overwrite and update the basic data obtained by the above-described processing in the corresponding position of the intermediate basic data storage area.

【0027】CPU1は、このようにして作成された基
礎データに基き、従来と同様の方法により、工具の姿勢
を各基礎データにおける工具経路点の法線ベクトルに一
致させた状態で工具の先端が該工具経路点上に位置する
ように、各工具経路点毎の各軸X,Y,Zの直線移動位
置および回転軸A,Bの回転位置を決め、一連のNCデ
ータを自動的に作成し、加工プログラムとしてフロッピ
ーディスク11に保存するが、工具経路点の法線ベクト
ルとして同一の法線ベクトルが適用される工具経路点の
区間に対しては回転軸A,Bの姿勢制御に関するNC指
令を作成する必要がなく、NCデータの量が全体として
大幅に削減される。
Based on the basic data created in this way, the CPU 1 determines the tip of the tool in a state similar to the conventional method in a state in which the posture of the tool is matched with the normal vector of the tool path point in each basic data. A linear movement position of each axis X, Y, Z and a rotational position of the rotation axes A, B are determined for each tool path point so that the tool is located on the tool path point, and a series of NC data is automatically created. , Which is stored in the floppy disk 11 as a machining program, the NC command relating to the attitude control of the rotation axes A and B is applied to the section of the tool path point to which the same normal vector is applied as the normal vector of the tool path point. There is no need to create it, and the amount of NC data is greatly reduced as a whole.

【0028】[0028]

【発明の効果】本発明の基礎データ作成方法によれば、
基礎データを構成する法線ベクトルの傾きが予め決めら
れた傾斜許容範囲内に拘束されるので、工具を装着した
チャックやヘッドとワークとの干渉が未然に防止され、
効率の良い加工を行うことができる。また、新たに抽出
された工具経路点における法線ベクトルと前回の工具経
路点の法線ベクトルとの成す角が決められた最小移動角
内にある場合、つまり、工具の傾きが問題とならないよ
うな起伏の少ない曲面形状から工具経路点を抽出するよ
うな場合には、当該工具経路点の法線ベクトルとして前
回の法線ベクトルをそのまま適用するようにしているの
で、工具移動時に工具姿勢を変化させる回転軸に無駄な
動作がなくなって加工効率が向上し、しかも、工具経路
点の法線ベクトルとして同一の法線ベクトルを適用する
間、法線ベクトルを定義するデータの設定も不要となる
ので、NCデータの量が全体として大幅に削減される。
According to the basic data creating method of the present invention,
Since the inclination of the normal vector that constitutes the basic data is constrained within a predetermined inclination allowable range, interference between the chuck equipped with the tool or the head and the work is prevented in advance.
It is possible to perform efficient processing. Also, if the angle formed by the normal vector at the newly extracted tool path point and the normal vector at the previous tool path point is within the determined minimum movement angle, that is, the inclination of the tool does not matter. When extracting a tool path point from a curved surface shape with less undulations, the previous normal vector is applied as is as the normal vector of the tool path point, so the tool posture changes when the tool moves. There is no unnecessary movement on the rotating axis to improve the machining efficiency, and it is not necessary to set the data that defines the normal vector while applying the same normal vector as the normal vector of the tool path point. , The amount of NC data is greatly reduced as a whole.

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

【図1】本発明の基礎データ作成方法を実施する一実施
例のCAD/CAMシステムの要部を示すブロック図で
ある。
FIG. 1 is a block diagram showing a main part of a CAD / CAM system of an embodiment for carrying out a basic data creating method of the present invention.

【図2】同実施例のCAD/CAMシステムによる基礎
データ作成方法の概略を示すフローチャートである。
FIG. 2 is a flowchart showing an outline of a basic data creating method by the CAD / CAM system of the same embodiment.

【図3】傾斜許容範囲の設定例を示す概念図である。FIG. 3 is a conceptual diagram showing an example of setting an allowable tilt range.

【図4】傾斜許容範囲の設定例を示す概念図である。FIG. 4 is a conceptual diagram showing an example of setting an allowable tilt range.

【図5】従来技術の不都合を例示する模式図である。FIG. 5 is a schematic view illustrating an inconvenience of the conventional technique.

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

1 マイクロプロセッサ(CPU) 2 RAM 3 キーボード 4 CRT表示装置 5 プリンタ 6 バス 7 ROM 8 ディスクコントローラ 9 タブレット装置 10 プロッタ 11 フロッピーディスク 1 Microprocessor (CPU) 2 RAM 3 Keyboard 4 CRT Display Device 5 Printer 6 Bus 7 ROM 8 Disk Controller 9 Tablet Device 10 Plotter 11 Floppy Disk

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 NCデータを作成するための基礎データ
の作成方法において、CADシステムにより作成された
形状データから工具経路点および該工具経路点における
加工形状の法線ベクトルを順次抽出し、工具経路点にお
ける法線ベクトルの傾きが決められた傾斜許容範囲内に
あれば、前記法線ベクトルを前記工具経路点における法
線ベクトルとし、傾斜許容範囲を外れていれば、前記法
線ベクトルの傾きに最も近い傾斜許容範囲内の値を前記
工具経路点における法線ベクトルとして基礎データを作
成するようにしたNCデータ用基礎データの作成方法。
1. A method of creating basic data for creating NC data, wherein a tool path point and a normal vector of a machining shape at the tool path point are sequentially extracted from shape data created by a CAD system, and a tool path is created. If the inclination of the normal vector at the point is within the predetermined inclination allowable range, the normal vector is set as the normal vector at the tool path point, and if it is outside the inclination allowable range, the inclination of the normal vector is set. A method of creating basic data for NC data, wherein basic data is created using a value within the closest allowable tilt range as a normal vector at the tool path point.
【請求項2】 NCデータを作成するための基礎データ
の作成方法において、CADシステムにより作成された
形状データから工具経路点および該工具経路点における
加工形状の法線ベクトルを順次抽出し、今回抽出された
工具経路点における法線ベクトルと前回の工具経路点の
法線ベクトルとの成す角が決められた最小移動角内にあ
れば、前回の法線ベクトルを今回抽出された工具経路点
における法線ベクトルとし、今回抽出された工具経路点
における法線ベクトルと前回の法線ベクトルとの成す角
が最小移動角を越えていれば、今回抽出された工具経路
点における法線ベクトルを当該工具経路点における法線
ベクトルとして基礎データを作成するようにしたNCデ
ータ用基礎データの作成方法。
2. A method for creating basic data for creating NC data, wherein a tool path point and a normal vector of a machining shape at the tool path point are sequentially extracted from the shape data created by a CAD system, and are extracted this time. If the angle formed by the normal vector of the tool path point and the normal vector of the previous tool path point is within the determined minimum movement angle, the previous normal vector is the normal at the tool path point extracted this time. If the angle formed by the normal vector at the tool path point extracted this time and the previous normal vector exceeds the minimum movement angle, the normal vector at the tool path point extracted this time is set as the line vector. A method of creating basic data for NC data that creates basic data as a normal vector at a point.
【請求項3】 NCデータを作成するための基礎データ
の作成方法において、CADシステムにより作成された
形状データから工具経路点および該工具経路点における
加工形状の法線ベクトルを順次抽出し、工具経路点にお
ける法線ベクトルの傾きが決められた傾斜許容範囲内に
あれば、前記法線ベクトルを法線ベクトル候補とする一
方、傾斜許容範囲を外れていれば、前記法線ベクトルの
傾きに最も近い傾斜許容範囲内の値を法線ベクトル候補
とし、法線ベクトル候補と前回の工具経路点の法線ベク
トルとの成す角が決められた最小移動角内にあれば、前
回の法線ベクトルを今回抽出された工具経路点における
法線ベクトルとし、また、法線ベクトル候補と前回の法
線ベクトルとの成す角が最小移動角を越えていれば、前
記法線ベクトル候補を当該工具経路点における法線ベク
トルとして基礎データを作成するようにしたNCデータ
用基礎データの作成方法。
3. A method for creating basic data for creating NC data, wherein a tool path point and a normal vector of a machining shape at the tool path point are sequentially extracted from shape data created by a CAD system, and a tool path is created. If the inclination of the normal vector at the point is within the predetermined inclination allowable range, the normal vector is set as the normal vector candidate, while if it is outside the inclination allowable range, it is closest to the inclination of the normal vector. If the value within the allowable tilt range is taken as a normal vector candidate and the angle formed by the normal vector candidate and the previous vector of the tool path point is within the determined minimum movement angle, the previous normal vector is set this time. A normal vector at the extracted tool path point, and if the angle formed by the normal vector candidate and the previous normal vector exceeds the minimum movement angle, the normal vector candidate A method of creating basic data for NC data in which basic data is created as a normal vector at the tool path point.
JP16506693A 1993-06-11 1993-06-11 Method for generating basic data for nc data Pending JPH06348324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16506693A JPH06348324A (en) 1993-06-11 1993-06-11 Method for generating basic data for nc data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16506693A JPH06348324A (en) 1993-06-11 1993-06-11 Method for generating basic data for nc data

Publications (1)

Publication Number Publication Date
JPH06348324A true JPH06348324A (en) 1994-12-22

Family

ID=15805224

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16506693A Pending JPH06348324A (en) 1993-06-11 1993-06-11 Method for generating basic data for nc data

Country Status (1)

Country Link
JP (1) JPH06348324A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016034660A (en) * 2014-08-04 2016-03-17 株式会社アマダホールディングス Automated programming device for laser processing system
WO2024084706A1 (en) * 2022-10-21 2024-04-25 ファナック株式会社 Machining instruction correction device and machining instruction correction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016034660A (en) * 2014-08-04 2016-03-17 株式会社アマダホールディングス Automated programming device for laser processing system
WO2024084706A1 (en) * 2022-10-21 2024-04-25 ファナック株式会社 Machining instruction correction device and machining instruction correction method

Similar Documents

Publication Publication Date Title
US6597142B2 (en) Apparatus and method for setting control parameters of machining apparatus
US9459616B2 (en) Universal conversational programming for machine tool systems
US7853351B2 (en) CNC machine tool and integrated machine tool controller incorporating 3D and up to 8-axes real time interactive tool compensation
US20100305745A1 (en) Nc program generating device and nc program generating method
WO2014155723A1 (en) Numerical control device
JPS624551A (en) Automatic drawing system of tool configuration
JPH06348324A (en) Method for generating basic data for nc data
JP3116129B2 (en) Processing method
JP2005305579A (en) Control method and controller for nc machine tool
JP2836633B2 (en) Machining process decision device in numerical control information creation function
JP3856917B2 (en) Numerical controller
JP3217329B2 (en) NC data confirmation device
JPH06119031A (en) Nc data generating method for working of cut remaining part
JP3248081B2 (en) Automatic program creation device with automatic cutting axis change function
JP2707992B2 (en) Outline processing data generation device and outline processing data generation method
JPH11165239A (en) Numerical control data editing device and editing method of numerical control data
JP2691984B2 (en) Work coordinate system setting method
JPH07121222A (en) Automatic generating method for deburring program using fixed tool
JP2670148B2 (en) Numerical control unit
JPH0561528A (en) Feed speed control method for numerical control
JPH0410003A (en) Drawing method for polyhedral machining
JPH0659720A (en) Deburring robot program generating method
JPH0736526A (en) Numerical controller
JPH0262607A (en) Program checking plotting system
JPH10240320A (en) Nc data preparing device