JP2000003212A - Method for interpolating curve - Google Patents

Method for interpolating curve

Info

Publication number
JP2000003212A
JP2000003212A JP16747098A JP16747098A JP2000003212A JP 2000003212 A JP2000003212 A JP 2000003212A JP 16747098 A JP16747098 A JP 16747098A JP 16747098 A JP16747098 A JP 16747098A JP 2000003212 A JP2000003212 A JP 2000003212A
Authority
JP
Japan
Prior art keywords
curve
straight line
tolerance
approximate straight
end point
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
JP16747098A
Other languages
Japanese (ja)
Inventor
Shinichiro Yanagi
紳一郎 柳
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP16747098A priority Critical patent/JP2000003212A/en
Publication of JP2000003212A publication Critical patent/JP2000003212A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method for interpolating a curve for generating an approximate straight line for utilizing the allowable range of tolerance to the maximum and for making the number of the approximate straight lines smaller than that in a conventional curve interpolation system. SOLUTION: A curve 20 is calculated from inputted curve data, a tolerance circle 21 with tolerance as a radius is prepared within a plane with the tangential direction of the curve as a normal direction at each point on the curve from the curve 20 and the inputted tolerance and upper and lower tolerance lines 26A and 26B are calculated based on the circle. Then, the start point and the end point of the curve 20 are connected through a straight line and the end point of the straight line is made close to the end point unit it enters the inside of the upper and lower tolerance lines 26A and 26B. The line is extended, and a cross point 24A between the upper and lower tolerance lines 26A and 26B is calculated to make the point the end point of the straight line and to decide an initial approximate straight line 25A as well. The end point is used as the start point of the second straight line and all approximate straight lines are decided by repeating the same way. Afterwards, an interpolation arithmetic operation is executed along the approximate straight line to make it command data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、工作機械やロボッ
トなどの制御装置において、誤差が小さく能率の良い曲
線補間をすることができる曲線補間方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a curve interpolation method capable of performing efficient and efficient curve interpolation in a control device such as a machine tool or a robot.

【0002】[0002]

【従来の技術】従来、数値制御装置で曲線を描かせる場
合は、その曲線を多数の直線におき代えて描かせてお
り、見かけ上、曲線を描いているように近似されてい
る。その曲線補間方法とは、概念図を図6に示している
ように、始点63から終点64までの与えられた曲線6
1を適当に区分して通過点をとり、連続する通過点を結
ぶ直線を多数設けて折れ線で結び、直線群62をなし
て、その多数の直線で曲線を近似していた。そして計算
が単純な近似直線の補間をして曲線の近似がされてい
た。この方法で近似される場合、図7に示すように、曲
線の一部71と近似直線73の最大誤差72、すなわち
トレランスを許容範囲内に抑えるように、曲線上の通過
点74、75を選んでいた。
2. Description of the Related Art Conventionally, when a curve is drawn by a numerical controller, the curve is drawn by replacing a large number of straight lines, and the curve is apparently approximated. As shown in the conceptual diagram of FIG. 6, the curve interpolation method is based on a given curve 6 from a start point 63 to an end point 64.
1 is appropriately divided, passing points are taken, a large number of straight lines connecting continuous passing points are provided, connected by broken lines, and a straight line group 62 is formed, and the curve is approximated by the many straight lines. The curve was approximated by interpolation of a simple approximation straight line. In the case of approximation by this method, as shown in FIG. 7, the passing points 74 and 75 on the curve are selected so as to keep the maximum error 72 between the part 71 of the curve and the approximate straight line 73, that is, the tolerance within an allowable range. Was out.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記の
従来例においては、近似直線73の始点75と終点74
が与えられた曲線の一部71上に必ずあるので、トレラ
ンスが小さくなればなるほど近似直線の数が多くなり、
数値制御装置の処理能力を越えて、曲線補間による切削
面が粗くなるという問題点があった。また、直線近似に
よるトレランスの許容範囲を最大限に活用しているとは
言えなかった。そこで、本発明は、トレランスの許容範
囲を最大限に活用するような近似直線を生成し、その近
似直線の数を従来の曲線補間方式の場合よりも少なくす
ることを目的としている。
However, in the above-mentioned conventional example, the starting point 75 and the ending point 74 of the approximate straight line 73 are different.
Is always on the part 71 of the given curve, so the smaller the tolerance, the larger the number of approximate straight lines,
There is a problem that the cutting surface by the curve interpolation becomes rough beyond the processing capability of the numerical controller. In addition, it cannot be said that the allowable range of the tolerance by the linear approximation is fully utilized. Therefore, an object of the present invention is to generate an approximate straight line that makes maximum use of the tolerance of the tolerance, and to reduce the number of the approximate straight lines as compared with the conventional curve interpolation method.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明は、数値制御装置における曲線
補間において、入力された曲線データと補間許容誤差、
すなわちトレランスとから、前記曲線データの各点にお
ける曲線の接線方向を法線方向とする平面上に、前記各
点を中心とし前記補間許容誤差を半径とするトレランス
円を作成し、そのトレランス円を基に上下トレランス線
を求め、前記曲線データにより生成される曲線全体の各
点で前記上下トレランス線の内側を通過するような直線
軌跡を生成し、前記直線軌跡を補間することを特徴とし
ている。また請求項2記載の発明は、数値制御装置にお
ける曲線補間において、入力された曲線データと補間許
容誤差、すなわちトレランスとから、前記曲線データの
各点における曲線の接線方向を法線方向とする平面上
に、前記各点を中心とし前記補間許容誤差を半径とする
トレランス円を作成し、そのトレランス円を基に外トレ
ランス線を求め、前記曲線データにより生成される曲線
全体の各点で前記外トレランス線と前記曲線の間を通過
するような直線軌跡を生成し、前記直線軌跡を補間する
ことを特徴としている。請求項3の曲線補間方法は、前
記曲線データが、一連の曲線データを分割した中の一部
であることを特徴としている。上記構成によれば、トレ
ランスを最大限に活用するように近似直線が生成される
ので、トレランスを許容範囲内に抑えながら、なおかつ
近似直線の数を少なくすることができる。
According to a first aspect of the present invention, there is provided a curve interpolation in a numerical controller, wherein input curve data and an interpolation tolerance are calculated.
That is, from the tolerance, a tolerance circle having the center at the point and the radius of the interpolation tolerance is created on a plane whose normal direction is the tangent direction of the curve at each point of the curve data, and the tolerance circle is defined as A vertical trajectory is obtained based on the vertical trajectory, and a linear trajectory that passes through the inside of the vertical tolerance line at each point of the entire curve generated by the curve data is generated, and the linear trajectory is interpolated. According to a second aspect of the present invention, in the curve interpolation in the numerical controller, a plane having a tangent direction of a curve at each point of the curve data as a normal direction from the input curve data and an interpolation allowable error, that is, tolerance. On the top, a tolerance circle having the radius as the interpolation permissible error centering on each point is created, an outer tolerance line is obtained based on the tolerance circle, and the outer tolerance line is determined at each point of the entire curve generated by the curve data. A linear trajectory passing between the tolerance line and the curve is generated, and the linear trajectory is interpolated. According to a third aspect of the present invention, in the curve interpolation method, the curve data is a part obtained by dividing a series of curve data. According to the above configuration, the approximate straight line is generated so as to make maximum use of the tolerance, so that the number of approximate straight lines can be reduced while keeping the tolerance within an allowable range.

【0005】[0005]

【発明の実施形態】以下、本発明の曲線補間方法の実施
の形態について図を参照して説明する。図1は、本発明
の曲線補間方法を実施するに適した装置の構成を示すブ
ロック図であり、図2は本発明の近似直線を求める手順
を説明する図である。また図3は、図1の装置が動作す
る処理の手順を示すフローチャートである。図1におい
て、11は曲線データを入力すると入力した曲線の式を
生成する曲線生成部、12はトレランスを入力すると曲
線生成部11で生成された曲線の各点におけるトレラン
ス円を作成し、その後上下トレランス線を求めるトレラ
ンス円作成部、13はトレランス円作成部12で作成さ
れた上下トレランス線に基づいて近似直線を生成する近
似直線生成部、14は入力した近似直線に基づいて位置
指令データが作成される直線補間実行部である。このよ
うな構成において、曲線データが与えられると、曲線生
成部11がまず曲線式を生成する。その曲線式を受けた
トレランス円作成部12はトレランスの値を入力すると
曲線上の所定間隔の各点におけるトレランス円を作成す
る。そしてそのトレランス円に基づき、トレランス円の
包絡線となっている曲線の両側の上下トレランス線を求
める。その上下トレランス線を入力した近似直線生成部
13は、上下トレランス線に基づいて近似直線を生成す
る。直線補間実行部14ではこの近似直線上の点を補間
計算して求め、位置指令データが作成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a curve interpolation method according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an apparatus suitable for implementing the curve interpolation method of the present invention, and FIG. 2 is a diagram for explaining a procedure for obtaining an approximate straight line of the present invention. FIG. 3 is a flowchart showing a procedure of a process in which the apparatus of FIG. 1 operates. In FIG. 1, reference numeral 11 denotes a curve generation unit that generates an equation of the input curve when curve data is input, and 12 generates a tolerance circle at each point of the curve generated by the curve generation unit 11 when a tolerance is input. A tolerance circle creating unit for finding a tolerance line, 13 is an approximate straight line creating unit that creates an approximate straight line based on the upper and lower tolerance lines created by the tolerance circle creating unit 12, and 14 is a unit that creates position command data based on the input approximate straight line. Is a linear interpolation execution unit to be executed. In such a configuration, when curve data is given, the curve generation unit 11 first generates a curve equation. Upon inputting the value of the tolerance, the tolerance circle creating unit 12 receiving the curve formula creates a tolerance circle at each point at a predetermined interval on the curve. Then, based on the tolerance circle, upper and lower tolerance lines on both sides of the curve which is the envelope of the tolerance circle are obtained. The approximate straight line generator 13 that has input the upper and lower tolerance lines generates an approximate straight line based on the upper and lower tolerance lines. The linear interpolation execution unit 14 obtains a point on the approximate straight line by interpolation calculation, and generates position command data.

【0006】次に近似直線生成部12において近似直線
が求められていく状況を図2を用いて説明する。図にお
いて始点22Aと終点22Bを持つ曲線が与えられる
と、まず始点22Aを始点とし、22Bを終点とする直
線が求められる。その直線が上下トレランス線26A、
26Bをはみ出していると、直線の終点を22Aに向っ
て所定量ずらす。そして再度上下トレランス線26A、
26Bをはみ出しているかどうかがチェックされ、はみ
出さなくなるまで同じことが繰返される。そのときの近
似直線25Aの終点、すなわち曲線の分割点は23Aで
ある。次にその直線を延長して上下トレランス線26A
または26Bと交わる点24Aを接続点とし、次の近似
直線25Bの始点とする。近似直線25Bの終点は初め
は22Bに置かれ、近似直線25Aの場合と同じような
手順を経て分割点23Bが求められる。以降、同じよう
なやり方で近似直線が求められるのである。
Next, a situation in which an approximate straight line is obtained in the approximate straight line generator 12 will be described with reference to FIG. In the figure, when a curve having a start point 22A and an end point 22B is given, a straight line having the start point 22A as a start point and the end point 22B is obtained. The straight line is the vertical tolerance line 26A,
If the straight line is beyond 26B, the end point of the straight line is shifted by a predetermined amount toward 22A. And the vertical tolerance line 26A again,
A check is made to see if it does not exceed 26B, and the same is repeated until it does not exceed 26B. At that time, the end point of the approximate straight line 25A, that is, the division point of the curve is 23A. Next, the straight line is extended and the vertical tolerance line 26A is extended.
Alternatively, a point 24A intersecting with 26B is set as a connection point, and is set as a start point of the next approximate straight line 25B. The end point of the approximate straight line 25B is initially set at 22B, and the division point 23B is obtained through the same procedure as in the case of the approximate straight line 25A. Thereafter, an approximate straight line is obtained in a similar manner.

【0007】次に、以上の動作をさせる図1の装置の処
理手順を、図3のフローチャートを参照して説明する。
まず、S1:曲線生成部11に曲線データを入力する
と、S2:曲線が生成される。次いで、S3:その曲線
を入力したトレランス円作成部12にトレランスを入力
すると、S4:トレランス円作成部12で曲線の各点に
おけるトレランス円が生成される。また、その円に基づ
いてトレランス円の包絡線である上下トレランス線が求
められる。そして、近似直線生成部13では、S5:曲
線の始点を近似直線の始点とし、S6:曲線の終点を終
点とする近似直線を生成する。このとき、S7:作成し
た近似直線が上下トレランス線からはみ出しているかど
うかを判断し、はみ出していなければ、この近似直線が
補間直線として決定され、これですべての補間直線が決
定されたことになる。しかし、はみ出していれば、S
8:近似直線の終点を曲線の始点方向へ曲線に沿って所
定量ずらし、新たに近似直線を生成する。そして、S
9:再度、作成した近似直線が上下トレランス線からは
み出しているかどうかを判断し、はみ出していればS8
に戻り、上記処理を繰り返す。はみ出していなければ、
S10:今回の近似直線を決定し、終点を延長して上下
いずれかのトレランス線との交点を次の近似直線の始点
として、その後再び、S6に戻って上記の処理を繰り返
す。
Next, the processing procedure of the apparatus of FIG. 1 for performing the above operation will be described with reference to the flowchart of FIG.
First, S1: curve data is input to the curve generator 11, and S2: a curve is generated. Next, S3: When the tolerance is input to the tolerance circle creating unit 12 to which the curve is input, S4: The tolerance circle creating unit 12 generates the tolerance circle at each point of the curve. Further, based on the circle, an upper and lower tolerance line which is an envelope of the tolerance circle is obtained. Then, the approximate straight line generator 13 generates an approximate straight line having S5: the start point of the curve as the start point of the approximate straight line, and S6: the end point of the curve as the end point. At this time, S7: It is determined whether or not the created approximate straight line protrudes from the upper and lower tolerance lines. If not, this approximate straight line is determined as an interpolation straight line, and all the interpolation straight lines are determined. . However, if it protrudes, S
8: The end point of the approximate straight line is shifted by a predetermined amount along the curve toward the start point of the curve, and a new approximate straight line is generated. And S
9: It is determined again whether or not the created approximate straight line protrudes from the upper and lower tolerance lines.
And the above processing is repeated. If it does not protrude,
S10: The current approximate line is determined, the end point is extended, and the intersection with one of the upper and lower tolerance lines is set as the start point of the next approximate line. Thereafter, the process returns to S6 and repeats the above processing.

【0008】次に請求項2に係る本発明の実施例を図
4、図5を用いて説明する。この発明は、穴をあけてそ
の穴にぴったり差し込めるような円筒を作りたい時に使
われ、請求項1の発明を応用したものである。そのよう
な穴と円筒を作る時、理論的には穴と円筒の径を同じに
されるが、実際は穴の径を円筒より少し大きめに加工し
て作られている。この例において、近似直線が求められ
ていく状況を図4を用いて説明する。図において始点4
2Aと終点42Bを持つ曲線40が与えられると、まず
始点42Aで曲線40の接線が求められる。その接線が
外トレランス線46Aと交差する点44Aが近似直線4
5Aの終点とされ、初めの近似直線が決まる。その終点
は、次の近似直線の始点とされ、2つの近似直線の接続
点44Aとなっている。新たな近似直線の終点は最も近
い曲線上の点にとられ、新たな近似直線が曲線40の接
線となってるかどうかが判断される。接線になっていな
ければ近似直線の終点を曲線の終点に移向って所定量移
動させ、近似直線が曲線の接線になるまで同じことが繰
返される。接線になれば、延長して外トレランス線46
Aとの交点44Bが近似直線の終点とされ、次の近似直
線が決まることになり、同様の手順が繰返されて近似直
線群が求められるのである。
Next, an embodiment of the present invention according to claim 2 will be described with reference to FIGS. The present invention is used when it is desired to make a cylinder which can be formed into a hole and fit into the hole, and is an application of the invention of claim 1. When making such a hole and a cylinder, theoretically the diameter of the hole and the cylinder is made the same, but in fact, it is made by processing the diameter of the hole slightly larger than the cylinder. In this example, a situation in which an approximate straight line is obtained will be described with reference to FIG. Starting point 4 in the figure
Given a curve 40 having 2A and an end point 42B, a tangent to the curve 40 is first determined at a start point 42A. The point 44A where the tangent intersects the outer tolerance line 46A is the approximate straight line 4
The end point of 5A is determined, and the first approximate straight line is determined. The end point is the start point of the next approximate straight line, and is the connection point 44A between the two approximate straight lines. The end point of the new approximate straight line is set to the closest point on the curve, and it is determined whether the new approximate straight line is tangent to the curve 40. If not, the end point of the approximate straight line is moved to the end point of the curve by a predetermined amount, and the same is repeated until the approximate straight line becomes tangent to the curve. If it becomes tangential, extend it to the outer tolerance line 46
The intersection 44B with A is set as the end point of the approximate straight line, the next approximate straight line is determined, and the similar procedure is repeated to obtain an approximate straight line group.

【0009】次に、以上の動作をさせる図1の装置の処
理手順を、図5のフローチャートを参照して説明する。
まず、S1:曲線生成部11に曲線データを入力する
と、S2:曲線40が生成される。次いで、S3:曲線
40を入力したトレランス円作成部12にトレランスを
入力すると、S4:トレランス円作成部12で曲線40
の各点におけるトレランス円が生成される。また、その
円に基づいてトレランス円の外側の包絡線である外トレ
ランス線46Aが求められる。そして、近似直線生成部
13では、S5:曲線40の始点42Aを近似直線の始
点とし、S6:その点で曲線の接線を求める。S7:曲
線40と外トレランス線46Aの交点44Aを求めて近
似直線の終点とし、近似直線45Aを定める。S8:前
の近似直線の終点を次の近似直線の始点とし、これに最
も近い曲線上の点をその終点とする。S9:その終点が
曲線40の終点42Bに達していれば、全ての近似直線
の決定を終える。S10:曲線の終点42Bに達してい
なければ、近似直線が曲線40の接線であるかどうかが
判断され、S11:接線でなければ近似直線の終点を所
定量曲線の終点側に移動させてS9に戻る。接線であれ
ば、S12:近似直線を延長して外トレランス線46A
との交点を求め、近似直線の終点として近似直線を定
め、S8に戻り、上記の処理を繰り返す。
Next, the processing procedure of the apparatus of FIG. 1 for performing the above operation will be described with reference to the flowchart of FIG.
First, S1: curve data is input to the curve generator 11, and S2: curve 40 is generated. Next, S3: When the tolerance is input to the tolerance circle creating unit 12 to which the curve 40 is input, S4: The tolerance circle creating unit 12 inputs the curve 40.
Are generated at each point. Further, based on the circle, an outer tolerance line 46A that is an envelope outside the tolerance circle is obtained. Then, the approximate straight line generator 13 sets S5: the starting point 42A of the curve 40 as the starting point of the approximate straight line, and S6: obtains the tangent of the curve at that point. S7: An intersection 44A between the curve 40 and the outer tolerance line 46A is obtained and set as an end point of the approximate straight line, and an approximate straight line 45A is determined. S8: The end point of the previous approximate line is set as the start point of the next approximate line, and the point on the curve closest to this is set as the end point. S9: If the end point has reached the end point 42B of the curve 40, the determination of all approximate straight lines ends. S10: If the end point 42B of the curve has not been reached, it is determined whether or not the approximate straight line is a tangent to the curve 40. Return. If it is a tangent, S12: extend the approximate straight line and extend the outer tolerance line 46A.
Is determined, an approximate straight line is determined as the end point of the approximate straight line, the process returns to S8, and the above processing is repeated.

【0010】このように、本発明の第1の実施例によれ
ば、与えられた曲線を補間するにあたり、トレランス条
件を満たす近似直線のうち最も長い近似直線を生成する
ことができ、近似直線の数を少なくすることができるの
である。また第2の実施例によれば、加工した穴の直径
が円筒の直径を下回ることがない状況を得つつ、最も長
い近似直線を生成することができ、同じく近似直線の数
を少なくすることができるのである。また、2つの実施
例では、曲線の全範囲について一度で近似直線を求める
場合について説明したが、曲線が長い場合は、初めのう
ちは近似直線を求めるのに時間を要すことが懸念され
る。そのように、連続する長い曲線を近似する場合は、
初めに曲線を幾つかの曲線に分割し、その分割曲線毎に
上記の手順をとるようにすればよく、全体としてトレラ
ンスを保持しつつ高速の直線近似をすることができるの
である。
As described above, according to the first embodiment of the present invention, when interpolating a given curve, the longest approximate straight line among the approximate straight lines satisfying the tolerance condition can be generated. The number can be reduced. Further, according to the second embodiment, the longest approximate straight line can be generated while obtaining the situation where the diameter of the machined hole does not fall below the diameter of the cylinder, and the number of approximate straight lines can be similarly reduced. You can. In the two embodiments, the case where the approximate straight line is obtained at once for the entire range of the curve has been described. However, when the curve is long, it may be time-consuming to obtain the approximate straight line at first. . Thus, when approximating a continuous long curve,
First, the curve may be divided into several curves, and the above procedure may be taken for each of the divided curves, so that a high-speed linear approximation can be performed while maintaining the tolerance as a whole.

【0011】[0011]

【発明の効果】以上説明したように、本発明によれば、
与えられた曲線を補間するにあたり、トレランスを最大
限に活用するように近似直線が生成されるので、トレラ
ンスを許容範囲内に抑えながら、なおかつ近似直線の数
を少なくすることができて、制御装置の精度と処理速度
を同時に高く保つことができるという効果がある。
As described above, according to the present invention,
When the given curve is interpolated, an approximate straight line is generated so as to make maximum use of the tolerance. Therefore, the number of approximate straight lines can be reduced while keeping the tolerance within an allowable range. And the processing speed can be kept high at the same time.

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

【図1】本発明の方法を実施する装置の概念ブロック図FIG. 1 is a conceptual block diagram of an apparatus for implementing the method of the present invention.

【図2】本発明の直線近似方法を説明する図FIG. 2 is a diagram illustrating a straight line approximation method according to the present invention.

【図3】図1の装置の処理手順を示すフローチャートFIG. 3 is a flowchart showing a processing procedure of the apparatus of FIG. 1;

【図4】本発明の第2の直線近似方法を説明する図FIG. 4 is a diagram illustrating a second straight line approximation method according to the present invention.

【図5】図1の装置の第2の処理手順を示すフローチャ
ート
FIG. 5 is a flowchart showing a second processing procedure of the apparatus of FIG. 1;

【図6】従来の直線近似方法を説明する図FIG. 6 is a diagram illustrating a conventional linear approximation method.

【図7】トレランスの定義を示す図FIG. 7 is a diagram showing a definition of tolerance.

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

11 曲線生成部 12 トレランス円作成部 13 近似直線生成部 14 直線補間実行部 20、40、61 曲線 21 トレランス円 22A、42A、63、75 始点 22B、42B、64、74 終点 23A、23B 分割点 24A、24B、44A、44B 接続点 25A、25B、45A、45B、45C、、73 近
似直線 26A 上トレランス線 26B 下トレランス線 46A 外トレランス線 62 直線群 43A、43B 接点 71 曲線の一部 72 最大誤差 整理番号 12526
DESCRIPTION OF SYMBOLS 11 Curve generation part 12 Tolerance circle creation part 13 Approximate straight line generation part 14 Linear interpolation execution part 20, 40, 61 Curve 21 Tolerance circle 22A, 42A, 63, 75 Start point 22B, 42B, 64, 74 End point 23A, 23B Division point 24A , 24B, 44A, 44B Connection points 25A, 25B, 45A, 45B, 45C, 73 Approximate straight line 26A Upper tolerance line 26B Lower tolerance line 46A Outer tolerance line 62 Straight line group 43A, 43B Contact point 71 Part of curve 72 Maximum error reduction No. 12526

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】数値制御装置における曲線補間方法におい
て、次のステップにより近似直線を求めたのち、該近似
直線を補間することを特徴とする曲線補間方法。 (1)入力された曲線データから曲線を生成する。 (2)入力されたトレランスと前記曲線からトレランス
円と上下トレランス線を求める。 (3)前記曲線の始点を近似曲線の始点とする。 (4)前記曲線の終点を終点とする近似直線を生成す
る。 (5)該近似直線が上下トレランス線からはみ出してい
るかどうかを判断し、はみ出していなければ、全ての近
似直線が求められ、処理を完了する。 (6)はみ出していれば、前記近似直線の終点を前記曲
線の始点方向へ前記曲線に沿って所定量ずらし、新たに
近似直線を生成する。 (7)新たな前記近似直線が前記上下トレランス線から
はみ出しているかどうかを判断し、はみ出していれば
(6)に戻る。 (8)はみ出していなければ、今回の補間直線を決定
し、終点を延長して上下いずれかのトレランス線との交
点を次の近似直線の始点とし、(4)に戻る。
1. A curve interpolation method in a numerical controller, comprising: obtaining an approximate straight line in the following step; and interpolating the approximate straight line. (1) Generate a curve from the input curve data. (2) A tolerance circle and a vertical tolerance line are obtained from the input tolerance and the curve. (3) The starting point of the curve is set as the starting point of the approximate curve. (4) Generate an approximate straight line with the end point of the curve as the end point. (5) It is determined whether or not the approximate straight line protrudes from the upper and lower tolerance lines. If not, all approximate straight lines are obtained, and the process is completed. (6) If it does, the end point of the approximate straight line is shifted by a predetermined amount along the curve toward the start point of the curve, and a new approximate straight line is generated. (7) It is determined whether or not the new approximate straight line protrudes from the upper and lower tolerance lines, and if so, the process returns to (6). (8) If it does not protrude, the current interpolation straight line is determined, the end point is extended, the intersection with one of the upper and lower tolerance lines is set as the start point of the next approximate straight line, and the process returns to (4).
【請求項2】数値制御装置における曲線補間方法におい
て、次のステップにより近似直線を求めたのち、該近似
直線を補間することを特徴とする曲線補間方法。 (1)入力された曲線データから曲線を生成する。 (2)入力されたトレランスと前記曲線からトレランス
円と外トレランス線を求める。 (3)前記曲線の始点を近似曲線の始点とする。 (4)その始点から前記曲線の接線を求める。 (5)前記曲線と外トレランス線の交点を近似直線の終
点とし、近似直線を定める。 (6)近似直線の終点を次の近似直線の始点とし、これ
に最も近い前記曲線上の点をその終点とする。 (7)その終点が前記曲線の終点に達していれば補間直
線を全て決定して処理を終了する。(8)終点に達して
いなければ、近似直線が前記曲線の接線かどうかを判断
し、接線でなければその終点を所定量前記曲線の終点側
に移動させて(7)に戻る。 (9)(8)で接線であれば、その直線を延長して外ト
レランス線との交点を求め、近似直線の終点として近似
直線を定めて、(5)に戻る。
2. A curve interpolation method in a numerical control device, comprising: obtaining an approximate straight line in the following step; and interpolating the approximate straight line. (1) Generate a curve from the input curve data. (2) A tolerance circle and an outer tolerance line are obtained from the input tolerance and the curve. (3) The starting point of the curve is set as the starting point of the approximate curve. (4) A tangent to the curve is obtained from the starting point. (5) The intersection of the curve and the outer tolerance line is set as the end point of the approximate line, and the approximate line is determined. (6) The end point of the approximate straight line is set as the start point of the next approximate straight line, and the point on the curve closest to this is set as the end point. (7) If the end point has reached the end point of the curve, all interpolation straight lines are determined, and the process is terminated. (8) If the end point has not been reached, it is determined whether or not the approximate straight line is tangent to the curve. If not, the end point is moved to the end point of the curve by a predetermined amount and the process returns to (7). (9) If it is a tangent line in (8), the straight line is extended to find an intersection with the outer tolerance line, an approximate straight line is determined as the end point of the approximate straight line, and the process returns to (5).
【請求項3】前記曲線データは、一連の曲線データを分
割した中の一部であることを特徴とする請求項1または
2記載の曲線補間方法。
3. A curve interpolation method according to claim 1, wherein said curve data is a part of a series of curve data divided.
JP16747098A 1998-06-15 1998-06-15 Method for interpolating curve Pending JP2000003212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16747098A JP2000003212A (en) 1998-06-15 1998-06-15 Method for interpolating curve

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16747098A JP2000003212A (en) 1998-06-15 1998-06-15 Method for interpolating curve

Publications (1)

Publication Number Publication Date
JP2000003212A true JP2000003212A (en) 2000-01-07

Family

ID=15850282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16747098A Pending JP2000003212A (en) 1998-06-15 1998-06-15 Method for interpolating curve

Country Status (1)

Country Link
JP (1) JP2000003212A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003337607A (en) * 2002-05-20 2003-11-28 Fanuc Ltd Method for controlling speed of numerical control apparatus
JP2012088926A (en) * 2010-10-19 2012-05-10 Canon Inc Image processor and image processing method
CN103901815A (en) * 2012-12-25 2014-07-02 安川电机(沈阳)有限公司 Value control apparatus and value control method
JP2018073097A (en) * 2016-10-28 2018-05-10 ファナック株式会社 Tool route production system, tool route production method, and tool route production program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003337607A (en) * 2002-05-20 2003-11-28 Fanuc Ltd Method for controlling speed of numerical control apparatus
JP2012088926A (en) * 2010-10-19 2012-05-10 Canon Inc Image processor and image processing method
CN103901815A (en) * 2012-12-25 2014-07-02 安川电机(沈阳)有限公司 Value control apparatus and value control method
CN103901815B (en) * 2012-12-25 2017-02-08 安川电机(沈阳)有限公司 Value control apparatus and value control method
JP2018073097A (en) * 2016-10-28 2018-05-10 ファナック株式会社 Tool route production system, tool route production method, and tool route production program
US10409256B2 (en) 2016-10-28 2019-09-10 Fanuc Corporation Tool-path generating device, tool-path generating method, and non-transitory recording medium storing tool-path generating program

Similar Documents

Publication Publication Date Title
US5434793A (en) Method and apparatus for ascertaining tool path contours approximating curved contour intersection lines in numerically controlled machines
US4870597A (en) Complex curved surface creation method
JP2000003212A (en) Method for interpolating curve
US5029096A (en) Curved surface forming system
US4878171A (en) Numerical control method for machining an arc on the curved surface of a cylinder using interpolation of linear and angular data
JPH06274219A (en) Nc working data generating device in cad device
JP3175401B2 (en) CAD / CAM equipment
JPH0446705B2 (en)
JPH10307615A (en) Automatic generating method for machining path of recessed groove position for cam
JP2629759B2 (en) Data generation method for numerical control machining
JP2002366208A (en) Method for interpolating free curve of machine tool and numerical controller
JP2001166807A (en) Method for commanding working by numerical controller
JPH1039913A (en) Nc data preparing method and nc device
JP2603354B2 (en) Numerical control information creation device
JPH05297923A (en) Tool path data creating device
JPH0561517A (en) Numerical controller
JPH06179150A (en) Nc data perparation for corner part
JPH1199445A (en) Curved surface machining device and method
JPH07295621A (en) Tool path setting method for cam system for curved surface machining
JPH0561516A (en) Numerical controller
JP2000020115A (en) Nc data generator for machining
JP2003117773A (en) Nc data forming device
JPS60222904A (en) Control method of coordinate system conversion of numerically controlled lathe
JPH07121219A (en) Numerical control information generating method
JPS60129804A (en) Numerical controller