JP2995812B2 - Tool path generation method by numerical controller - Google Patents

Tool path generation method by numerical controller

Info

Publication number
JP2995812B2
JP2995812B2 JP2197150A JP19715090A JP2995812B2 JP 2995812 B2 JP2995812 B2 JP 2995812B2 JP 2197150 A JP2197150 A JP 2197150A JP 19715090 A JP19715090 A JP 19715090A JP 2995812 B2 JP2995812 B2 JP 2995812B2
Authority
JP
Japan
Prior art keywords
dimensional
curve
tool
curved surface
plane
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
JP2197150A
Other languages
Japanese (ja)
Other versions
JPH0488405A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2197150A priority Critical patent/JP2995812B2/en
Publication of JPH0488405A publication Critical patent/JPH0488405A/en
Application granted granted Critical
Publication of JP2995812B2 publication Critical patent/JP2995812B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は数値制御装置による工具軌跡生成方式に関
し、特に2つの2次元曲線により定義される3次元曲面
上で、任意の平面上に定義した平面曲線を3次元曲面に
投影することにより指定した3次元曲面上の曲線をボー
ルエンドミル等の工具を用いて加工を行う際の数値制御
装置による工具軌跡生成方式に関する。
Description: TECHNICAL FIELD The present invention relates to a tool trajectory generation method using a numerical controller, and more particularly, to a tool trajectory defined on an arbitrary plane on a three-dimensional surface defined by two two-dimensional curves. The present invention relates to a tool trajectory generation method by a numerical control device when processing a curve on a three-dimensional curved surface designated by projecting a plane curve onto a three-dimensional curved surface using a tool such as a ball end mill.

〔従来の技術〕[Conventional technology]

一般に数値制御(以下NCという)加工では、荒加工、
仕上げ加工と、同一の曲面に対して複数個のNC加工を行
い、加工時間、表面精度の問題等から工具径の異なる工
具を使用する。そのために工具の大きさに応じて曲面を
定義する事が必要になる。
Generally, in numerical control (hereinafter referred to as NC) machining, rough machining,
Finishing and multiple NC machining on the same curved surface, and use tools with different tool diameters due to problems such as machining time and surface accuracy. Therefore, it is necessary to define a curved surface according to the size of the tool.

従来、この種のNC装置による工具軌跡生成方式では、
加工すべき曲面を工具径の分の補正を見込んで定義し、
この曲面上の加工すべき径路を分割した各点における位
置データ及び接線ベクトルを用いて工具軌跡を生成して
いた。
Conventionally, with this type of NC device tool path generation method,
Define the curved surface to be machined in consideration of the correction of the tool diameter,
A tool trajectory is generated using position data and a tangent vector at each point obtained by dividing a path to be machined on this curved surface.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述した従来の数値制御装置による工具軌跡生成方式
は、曲面をあらかじめ工具径補正量を見込んで指定しな
ければならないので、オフセットを見込んで曲面を定義
することは非常に困難であるという欠点があった。
The above-described conventional tool path generation method using a numerical controller has a drawback that it is extremely difficult to define a curved surface in consideration of an offset because a curved surface must be specified in advance in consideration of a tool diameter correction amount. Was.

本発明の目的は2つの2次元曲線により定義される3
次元曲面上で、任意の平面上に定義した平面曲線を3次
元曲面に投影することにより指定した3次元曲面上の曲
線をNC装置で制御しながらボールエンドミル等の工具を
用いて加工を行う際に工具径補正を含めたNC装置による
工具軌跡生成方式を提供することにある。
The object of the present invention is to define 3 by two two-dimensional curves.
When performing machining using a tool such as a ball end mill while controlling the curve on the specified three-dimensional surface by projecting a plane curve defined on an arbitrary plane onto the three-dimensional surface on the three-dimensional surface Another object of the present invention is to provide a tool trajectory generation method using an NC device including tool diameter correction.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の数値制御装置による工具軌跡生成方式は、2
つの2次元曲線により定義される3次元曲面上で、任意
の平面上に定義した平面曲線を前記3次元曲面に投影す
ることにより指定した3次元曲面上の曲線を数値制御装
置で計算した結果をもとに工具を制御して加工を行う数
値制御装置による工具軌跡生成方式において、前記3次
元曲面上に投影するための前記平面曲線を所定のピッチ
量で分割し複数個の平面曲線分割点を求める手段と、前
記平面曲線分割点を前記3次元曲面に投影させて3次元
曲線分割点を求める手段と、前記3次元曲線分割点にお
いて、3次元曲面に対する法線ベクトルを求める手段
と、前記3次元曲線分割点と前記法線ベクトルと所定の
工具の径とにより3次元曲面上のオフセット点を求める
手段と、前記法線ベクトルと平面曲線分割点での平面曲
線の接続ベクトルから3次元曲線分割点での3次元曲線
の接線ベクトルを求める手段と、前記3次元曲面上のオ
フセット点および前記3次元曲線の接線ベクトルとか
ら、順次隣接する3次元曲面のオフセット点と点との間
を補間する手段とを有する。
The tool path generation method by the numerical controller according to the present invention is based on 2
On a three-dimensional surface defined by the two two-dimensional curves, a plane curve defined on an arbitrary plane is projected on the three-dimensional surface to calculate a curve on the specified three-dimensional surface by a numerical controller. In a tool trajectory generation method based on a numerical control device that performs machining by controlling a tool based on a plurality of plane curve division points by dividing the plane curve for projecting onto the three-dimensional curved surface by a predetermined pitch amount. Means for calculating a three-dimensional curve division point by projecting the plane curve division point onto the three-dimensional surface; means for obtaining a normal vector to the three-dimensional surface at the three-dimensional curve division point; Means for determining an offset point on a three-dimensional curved surface based on the three-dimensional curve division point, the normal vector, and the diameter of a predetermined tool; and a connection vector between the normal vector and the plane curve at the plane curve division point. Means for determining a tangent vector of the three-dimensional curve at the three-dimensional curve division point, and sequentially determining the offset point and the point of the adjacent three-dimensional surface from the offset point on the three-dimensional curve and the tangent vector of the three-dimensional curve. Means for interpolating between them.

〔実施例〕〔Example〕

次に本発明について、図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例のブロック図、第2図
(a),(b),(c)は工具軌跡生成方式の原理を示
す模式図である。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIGS. 2 (a), (b) and (c) are schematic views showing the principle of a tool trajectory generation method.

第1図の実施例NC装置は入力装置100、工具軌跡計算
器200、出力装置から構成され、工具軌跡計算器200は、
データ分配器201、法線ベクトル計算器202、オフセット
計算器203、接ベクトル計算器204、補間器205から構成
される。
The embodiment of FIG. 1 comprises an input device 100, a tool path calculator 200, and an output device.
It comprises a data distributor 201, a normal vector calculator 202, an offset calculator 203, a tangent vector calculator 204, and an interpolator 205.

次に、第2図(a),(b),(c)により工具軌跡
生成方式について説明する。まず第2図(a)で2次元
曲線l1,l2及びこの2つの2次元曲線l1,l2を変化させる
ことにより決まる3次元曲面s1及び投影された平面s2
の図形の閉曲線l3上の点p′とp′における接線ベクト
ル′が与えられているときに、s1上の図形の点pと点
pにおける接線ベクトル及び第2図(b)に示す法線
ベクトル、pを工具径分にあわせオフセットした点p1
の求め方について説明する。点pにおける3次元曲面を
構成する2つの2次元曲線l1′,l2′は、第2図(a)
の2つの2次元曲線l1,l2を変化させる事により求めら
れ、l1′l2′の関係よりs1上の点pの位置は求まるもの
とする。また第2図(b)に示す点pにおける2次元曲
線l1′の接線ベクトルを、l2′の接線ベクトルとす
る。一例として、平面s2がXY平面の場合について考え
る。第2図(a),(b)において、点の位置p,p′,p1
およびベクトル,,,,′は、次の様に表現
できる。
Next, a tool path generation method will be described with reference to FIGS. 2 (a), (b) and (c). First, in FIG. 2A, the two-dimensional curves l 1 and l 2 and the three-dimensional surface s 1 determined by changing the two two-dimensional curves l 1 and l 2 and the figure on the projected plane s 2 are shown. when tangent vector 'are given in the' p and 'point p on the closed curve l 3, the normal vector shown in the tangent vector and the second view (b) in the p and the point p points shapes on s 1, Point p 1 where p is offset according to the tool diameter
The following describes how to obtain the value. The two two-dimensional curves l 1 ′ and l 2 ′ forming the three-dimensional surface at the point p are shown in FIG.
Are obtained by changing the two two-dimensional curves l 1 and l 2, and the position of the point p on s 1 is obtained from the relationship of l 1 ′ l 2 ′. The tangent vector of the two-dimensional curve l 1 ′ at the point p shown in FIG. 2B is defined as the tangent vector of l 2 ′. As an example, consider the case plane s 2 is the XY plane. 2 (a) and 2 (b), point positions p, p ', p 1
And the vectors ,,, 'can be expressed as follows.

p=(px,py,pz)、 p′=(px,py,0)、 p1=(p1x,p1y,p1t)、 =sx・ux+sy・uy+sz・uz =tx・ux+ty・uy+tz・ux =nx・ux+ny・uy+nz・uz =qx・ux+qy・uy+qz・uz ′=qx・ux+qy・uy ここでpx,py,pzおよびsx,sy,szおよびtx,ty,tzおよび
qx,qyは既知定数である。また、ux,uy,uzは、x軸,y軸,
z軸方向の単位ベクトルである。また、p1x,p1y,p1zおよ
びnx,ny,nz,qzは未知定数である。
p = (p x, p y , p z), p '= (p x, p y, 0), p 1 = (p 1x, p 1y, p 1t), = s x · u x + s y · u y + s z · u z = t x · u x + t y · u y + t z · u x = n x · u x + n y · u y + n z · u z = qx · ux + qy · uy + qz · uz '= q x · u x + q y · u y where p x, p y, p z and s x, s y, s z and t x, t y, t z and
q x and q y are known constants. U x , u y , u z are the x-axis, y-axis,
This is a unit vector in the z-axis direction. Further, p 1x, p 1y, p 1z and n x, n y, n z , q z is the unknown constants.

ここで、3次元曲面s1上の点pにおける法線ベクトル
は(1)式で表される。
Here, the normal vector at point p on the 3-dimensional curved surface s 1 is represented by equation (1).

=× …(1) こののx軸・y軸・z軸方向の座標上の距離は次の
ように表される。
= × (1) The distance on the coordinates in the x-axis, y-axis, and z-axis directions is expressed as follows.

nx=sytz−szty、ny=sztx−sxtz、nz=sxtyy−s
yty、 次に法線ベクトルを用いてpを工具径分だけオフセ
ットした点p1(x,y,z)は、工具径をrとすると(2)
式で表される。
n x = s y t z −s z t y , n y = s z t x −s x t z , nz = s x ty y −s
y ty , and then the point p 1 (x, y, z) where p is offset by the tool diameter using the normal vector, where r is the tool diameter (2)
It is expressed by an equation.

p1(x,y,z) =p(x,y,z)+r・ …(2) この点p1のx軸,y軸,z軸方向の座標上の距離は次のよ
うに表される。
p 1 (x, y, z) = p (x, y, z) + r · (2) The distance of this point p 1 on the coordinates in the x-axis, y-axis, and z-axis directions is expressed as follows. You.

p1x=Px+r・nx、p1y=py+r・ny、p1z=pz+r・n
z、 ところで3次元曲面S1上の点pにおける法線ベクトル
及び接線ベクトルについては(3)式の関係が成り
立つ。
p 1x = P x + r · n x, p 1y = p y + r · n y, p 1z = p z + r · n
z, the way the normal vector and the tangent vector at the point p on the 3-dimensional curved surface S 1 is (3) relations equation holds.

・=nxqx+nyqy+nzqz=0 …(3) したがってqzは(4)のように表される。 · = N x q x + n y q y + n z q z = 0 ... (3) Therefore qz is represented as (4).

qz=−1/nz(nxqx+nyqy) …(4) (1)〜(4)式を用いて、未知の定数である,p1
(x,y,z)及びが求められる。このp1及びを求める
演算は、3次元曲面上の曲線を指定のピッチで区分した
それぞれの点について行われ、第2図(c)に示されて
いる通りp1-i,q1-i(i=1,…,n)とし、これらを曲線
補間により結び工具軌跡を求める。
q z = -1 / n z ( n x q x + n y q y) ... (4) (1) with - (4), it is an unknown constant, p 1
(X, y, z) and are required. The p 1 and calculation for obtaining the a three-dimensional curve on a curved surface at a specified pitch done for each point obtained by dividing, as p 1-i shown in FIG. 2 (c), q 1-i (I = 1,..., N), and these are connected by curve interpolation to obtain a tool path.

次に、第1図における各部の計算機能を説明する。工
具軌跡計算器200は3次元曲線の各点での位置及びこれ
に対応する平面曲線のベクトルの分割を行いpi,si,ti,q
iの出力を行うデータ分配器201と、曲面を構成する2曲
線のベクトルsi,tiから3次元曲面の法線方向ベクトルn
iの計算を行う法線ベクトル計算器202と、工具径rと3
次元位置pi及び法線ベクトルniとから曲面上の点のオフ
セット位置p1-iの計算を行うオフセット計算器203と、
法線ベクトルniと投影された閉曲線l3の接線ベクトル
q′とから接線ベクトル方向qiを求める接ベクトル計
算器204と、オフセット位置p1-i及び法線ベクトル方向q
iから工具軌跡を補間器205によって計算される。
Next, the calculation function of each unit in FIG. 1 will be described. The tool trajectory calculator 200 divides the position of each point of the three-dimensional curve and the vector of the corresponding plane curve, and performs p i , s i , t i , q
a data distributor 201 for i output vector s i of two curves constituting a curved surface, the normal direction vector n of the three-dimensional curved surface from t i
a normal vector calculator 202 for calculating i , tool diameters r and 3
An offset calculator 203 that calculates the dimension positions p i and the normal vector n i and a point on the curved surface offset p 1-i,
A tangent vector calculator 204 for obtaining a tangent vector direction q i from the normal vector ni and the projected tangent vector q ′ i of the closed curve l 3 ; an offset position p 1-i and a normal vector direction q
The tool locus is calculated by the interpolator 205 from i .

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明では、2つの2次元曲線に
より定義される3次元曲面上で、任意の平面上に定義し
た平面曲線を3次元曲面に投影することにより、指定し
た3次元曲面上の曲線を数値制御装置で計算してボール
エンドミル等の工具を制御して加工を行うことができ
る。また、工具径の指定により工具径補正量を含んだ工
具軌跡生成を行うので、工具径を変更するたびに曲面の
定義をしなおす必要がなく、加工に関する入力が簡単に
なるという効果がある。
As described above, in the present invention, by projecting a plane curve defined on an arbitrary plane onto a three-dimensional surface on a three-dimensional surface defined by two two-dimensional curves, the specified three-dimensional surface The curve can be calculated by a numerical controller to control a tool such as a ball end mill to perform machining. In addition, since the tool trajectory including the tool diameter correction amount is generated by designating the tool diameter, it is not necessary to redefine the curved surface every time the tool diameter is changed, so that there is an effect that the input relating to machining is simplified.

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

第1図は本発明の一実施例のブロック図、第2図
(a),(b),(c)は本実施例の工具軌跡生成法を
説明する模式図である。 100……入力装置、200……工具軌跡計算器、201……デ
ータ分配器、202……法線ベクトル計算器、203……オフ
セット計算器、204……接ベクトル計算器、205……補間
器、300……出力装置。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIGS. 2 (a), 2 (b) and 2 (c) are schematic diagrams for explaining a tool trajectory generating method of the embodiment. 100 input device, 200 tool path calculator, 201 data distributor, 202 normal vector calculator, 203 offset calculator, 204 tangent vector calculator, 205 interpolator , 300 …… Output device.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】任意の平面上に定義した平面曲線を2つの
2次元曲線により定義される3次元曲面上に投影して前
記3次元曲面上に得られる曲線である3次元曲線に沿っ
て所定の工具をもって加工を行う際に、前記3次元曲線
を数値制御装置で計算して前記加工に必要な前記工具の
工具軌跡を生成し、前記工具軌跡に基づいて前記工具を
制御して加工を行う数値制御装置による工具軌跡生成方
式において、前記平面曲線を所定のピッチ量で分割して
前記平面曲線上に複数個の平面曲線分割点を求める手段
と、前記平面曲線を前記3次元曲面上に投影し、前記3
次元曲面上に得られる3次元曲線上の、前記複数個の平
面曲線分割点の位置に対応した位置に複数個の3次元曲
線分割点を求める手段と、前記3次元曲線分割点の位置
に対応する前記2つの2次元曲線の位置におけるそれぞ
れの接線ベクトルから、前記3次元曲線分割点のそれぞ
れの位置における3次元曲面に対する法線ベクトルの方
向を求める手段と、前記3次元曲線分割点の位置と前記
3次元曲線分割点の位置における前記法線ベクトルの方
向と前記工具の径とにより、前記工具の径の分の補正を
行うための前記3次元曲面上の前記複数個のオフトセッ
ト点の位置を求める手段と、前記3次元曲線分割点の前
記法線ベクトルの方向と前記3次元曲線分割点に対応す
る前記平面曲線分割点での前記平面曲線の接線ベクトル
の方向とから前記3次元曲線分割点での前記3次元曲線
の接線ベクトルの方向を求める手段と、前記3次元曲面
上の前記オフセット点の位置と前記3次元曲線の接線ベ
クトルの方向とから前記工具軌跡を求めて、順次前記3
次元曲面上の前記複数個のオフトセット点の隣接するオ
フトセット点相互の間を補間する手段とを有することを
特徴とする数値制御装置による工具軌跡生成方式。
1. A plane curve defined on an arbitrary plane is projected onto a three-dimensional curved surface defined by two two-dimensional curves and a predetermined curve is formed along a three-dimensional curve which is a curve obtained on the three-dimensional curved surface. When performing machining with a tool, the three-dimensional curve is calculated by a numerical controller to generate a tool trajectory of the tool required for the machining, and machining is performed by controlling the tool based on the tool trajectory. In a tool path generation method by a numerical controller, means for dividing the plane curve by a predetermined pitch amount to obtain a plurality of plane curve division points on the plane curve, and projecting the plane curve on the three-dimensional curved surface And said 3
Means for obtaining a plurality of three-dimensional curve division points at positions corresponding to the positions of the plurality of plane curve division points on a three-dimensional curve obtained on a three-dimensional curved surface, and corresponding to the positions of the three-dimensional curve division points Means for determining the direction of the normal vector to the three-dimensional curved surface at each of the three-dimensional curve dividing points from the respective tangent vectors at the positions of the two two-dimensional curves, The positions of the plurality of offset points on the three-dimensional curved surface for correcting the tool diameter by the direction of the normal vector at the position of the three-dimensional curve division point and the diameter of the tool. And a direction of the normal vector of the three-dimensional curve division point and a direction of a tangent vector of the plane curve at the plane curve division point corresponding to the three-dimensional curve division point. Means for determining a direction of a tangent vector of the three-dimensional curve at a three-dimensional curve division point; and determining the tool trajectory from a position of the offset point on the three-dimensional curve and a direction of the tangent vector of the three-dimensional curve. Sequentially 3
Means for interpolating between adjacent ones of the plurality of offset points on the three-dimensional curved surface.
JP2197150A 1990-07-25 1990-07-25 Tool path generation method by numerical controller Expired - Lifetime JP2995812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2197150A JP2995812B2 (en) 1990-07-25 1990-07-25 Tool path generation method by numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2197150A JP2995812B2 (en) 1990-07-25 1990-07-25 Tool path generation method by numerical controller

Publications (2)

Publication Number Publication Date
JPH0488405A JPH0488405A (en) 1992-03-23
JP2995812B2 true JP2995812B2 (en) 1999-12-27

Family

ID=16369599

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2197150A Expired - Lifetime JP2995812B2 (en) 1990-07-25 1990-07-25 Tool path generation method by numerical controller

Country Status (1)

Country Link
JP (1) JP2995812B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035507B (en) * 2021-11-12 2023-08-11 武汉威士登自动化控制技术有限公司 Spherical track fitting processing position track compensation algorithm

Also Published As

Publication number Publication date
JPH0488405A (en) 1992-03-23

Similar Documents

Publication Publication Date Title
US4031369A (en) Interpolation and control apparatus and method for a numerical control system
US4491906A (en) Method of creating curved surface
KR880002560B1 (en) Numerical controlling method
Zhang et al. Curve fitting and optimal interpolation on CNC machines based on quadratic B-splines
EP0798616B1 (en) Process of generating discrete points defining cutter path, so as to meet selected workpiece machining requirements
JPS6336524B2 (en)
EP0068031B1 (en) Curved surface forming method
JPH0373882B2 (en)
Srinivasan et al. Fine tuning of rational B-splines motions
Yang et al. A tool path generation and contour error estimation method for four-axis serial machines
US4870597A (en) Complex curved surface creation method
JPH0152141B2 (en)
JP2995812B2 (en) Tool path generation method by numerical controller
JP2790643B2 (en) Numerical control unit
US4521721A (en) Numerical control method
KR900007163B1 (en) Method of forming composite curved surface
Yang et al. On-line Cartesian trajectory control of mechanisms along complex curves
JP3690424B2 (en) Numerical control method and apparatus
JP2561908B2 (en) Numerical control device and numerical control method
JPH0683422A (en) Numerical control method
JP2845661B2 (en) Shape data creation method
KR100249354B1 (en) Method of contour error modeling for cross-coupled control of cnc machines
JP6910750B1 (en) Tool path generation method, tool path generation program and server device
JPS62169210A (en) System for generating tool locus in nc data generating device
Cho et al. Input shaping-based corner rounding algorithm for machining short line segments

Legal Events

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

Free format text: PAYMENT UNTIL: 20081029

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081029

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101029

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101029

Year of fee payment: 11