JPH10240328A5 - - Google Patents
Info
- Publication number
- JPH10240328A5 JPH10240328A5 JP9-38233A JP3823397A JPH10240328A5 JP H10240328 A5 JPH10240328 A5 JP H10240328A5 JP 3823397 A JP3823397 A JP 3823397A JP H10240328 A5 JPH10240328 A5 JP H10240328A5
- Authority
- JP
- Japan
- Prior art keywords
- point sequence
- correction
- correction amount
- command
- numerical control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Description
【手続補正書】[Procedural Amendment Document]
【提出日】平成12年11月30日(2000.11.
30)[Submission Date] November 30, 2000 (2000.11.)
30)
【手続補正1】[Procedural Amendment 1]
【補正対象書類名】明細書[Document to be amended] Statement
【補正対象項目名】全文[Item to be corrected] Full text
【補正方法】変更[Correction Method] Change
【補正内容】[Correction Details]
【書類名】 明細書[Document Name] Statement
【発明の名称】 数値制御装置および数値制御方法 [Title of Invention] Numerical Control Device and Numerical Control Method
【特許請求の範囲】[Claims]
【請求項1】 工作機械の制御位置座標を表す点列指令
を入力する点列指令入力部と、連続する前記点列指令を
数点選択して評価範囲を設定する評価範囲設定部と、前
記評価範囲設定部で選択された前記評価範囲内の点列指
令を用いて、前記評価範囲内の点列指令の修正量を計算
する修正量計算部と、計算された前記修正量に従って前
記点列指令入力部において入力された点列指令を移動し
てその結果を出力する点列移動部とを備え、前記修正量
計算部は、前記点列指令を通過する曲線の曲率に相当す
る曲率評価値を前記評価範囲内の複数箇所で計算すると
ともに、前記複数の曲率評価値の中で値の大きなものを
小さくするように前記点列指令の修正量を計算すること
を特徴とする数値制御装置。[Claim 1] A numerical control device comprising: a point sequence command input unit for inputting point sequence commands representing the control position coordinates of a machine tool; an evaluation range setting unit for selecting several consecutive point sequence commands and setting an evaluation range; a correction amount calculation unit for calculating a correction amount for the point sequence commands within the evaluation range using the point sequence commands within the evaluation range selected by the evaluation range setting unit; and a point sequence movement unit for moving the point sequence commands input to the point sequence command input unit according to the calculated correction amount and outputting the result, wherein the correction amount calculation unit calculates curvature evaluation values corresponding to the curvature of the curve passing through the point sequence commands at multiple locations within the evaluation range, and calculates the correction amount for the point sequence commands so as to reduce the larger of the multiple curvature evaluation values.
【請求項2】 修正量計算部は、曲率評価値として、連
続する点列指令を結ぶ線分ベクトルの1次または高次の
変化量を示す差分ベクトルを用いることを特徴とする請
求項1記載の数値制御装置。[Claim 2] The numerical control device according to Claim 1, characterized in that the correction amount calculation unit uses a difference vector that indicates the amount of change of a first-order or higher-order line segment vector connecting consecutive point sequence commands as the curvature evaluation value.
【請求項3】 修正量計算部は、複数箇所における差分
ベクトルの各軸成分の2乗和が最小となるように、修正
量の前記各軸成分を計算することを特徴とする請求項2
記載の数値制御装置。[Claim 3] The correction amount calculation unit calculates the respective axis components of the correction amount such that the sum of the squares of the axis components of the difference vector at multiple locations is minimized.
The numerical control device described.
【請求項4】 修正量計算部における修正量を許容誤差
値以下に制限する修正量制限部を備えたことを特徴とす
る請求項1から請求項3のうちのいずれか1項記載の数
値制御装置。[Claim 4] The numerical control device according to any one of claims 1 to 3, further comprising a correction amount limiting unit that limits the correction amount in the correction amount calculation unit to less than or equal to an allowable error value.
【請求項5】 修正量計算部は、差分ベクトルとして、
線分ベクトルの長さに関する量により重み付けされた線
分ベクトルを用いて計算された差分ベクトルを用いるこ
とを特徴とする請求項2記載の数値制御装置。[Claim 5] The correction amount calculation unit uses the following as the difference vector:
The numerical control device according to claim 2, characterized in that it uses a difference vector calculated using a line segment vector weighted by a quantity relating to the length of the line segment vector.
【請求項6】 工作機械の制御位置座標を表す点列指令
を入力する点列指令入力部と、連続する前記点列指令を
数点選択して評価範囲を設定する評価範囲設定部と、前
記評価範囲設定部で選択された前記評価範囲内の点列指
令を用いて、前記評価範囲内の点列指令の修正量を計算
する修正量計算部と、計算された前記修正量に従って前
記点列指令入力部において入力された点列指令を移動し
てその結果を出力する点列移動部とを備え、前記修正量
計算部は、前記評価範囲内の点列指令に2次以上の曲線
をあてはめ、その曲線に近づくように前記点列指令の修
正量を計算することを特徴とする数値制御装置。[Claim 6] A numerical control device comprising: a point sequence command input unit for inputting point sequence commands representing the control position coordinates of a machine tool; an evaluation range setting unit for selecting several consecutive point sequence commands and setting an evaluation range; a correction amount calculation unit for calculating a correction amount for the point sequence commands within the evaluation range using the point sequence commands within the evaluation range selected by the evaluation range setting unit; and a point sequence movement unit for moving the point sequence commands input to the point sequence command input unit according to the calculated correction amount and outputting the result, wherein the correction amount calculation unit applies a curve of order two or higher to the point sequence commands within the evaluation range and calculates a correction amount for the point sequence commands so that they approach the curve.
【請求項7】 修正量計算部は、前記評価範囲内の点列
指令に2次曲線をあてはめることを特徴とする請求項6
記載の数値制御装置。[Claim 7] The correction amount calculation unit is characterized by fitting a quadratic curve to the point sequence command within the evaluation range.
The numerical control device described.
【請求項8】 修正量計算部における修正量を許容誤差
値以下に制限する修正量制限部を備えたことを特徴とす
る請求項6または請求項7記載の数値制御装置。[Claim 8] The numerical control device according to claim 6 or 7, further comprising a correction amount limiting unit that limits the correction amount in the correction amount calculation unit to less than or equal to an allowable error value.
【請求項9】 修正量計算部は、修正された点列指令を
以降の修正点に対する修正量の計算に用いることを特徴
とする請求項1から請求項8のうちのいずれか1項記載
の数値制御装置。[Claim 9] The numerical control device according to any one of claims 1 to 8, characterized in that the correction amount calculation unit uses the corrected point sequence command to calculate the correction amount for subsequent correction points.
【請求項10】 入力された点列指令からなる軌跡の性
状を判断する軌跡判断部を備え、判断された前記軌跡の
性状に応じて、評価範囲設定部において設定する前記評
価範囲、および/または、修正量計算部における前記修
正量計算方法を適宜変更することを特徴とする請求項1
から請求項9のうちのいずれか1項記載の数値制御装
置。[Claim 10] A trajectory determination unit that determines the characteristics of a trajectory consisting of an input sequence of points command, wherein the evaluation range set in the evaluation range setting unit and/or the correction amount calculation method in the correction amount calculation unit are appropriately changed according to the determined characteristics of the trajectory.
A numerical control device according to any one of claims 9.
【請求項11】 工作機械の制御位置座標を表す点列指
令を入力する第1のステップと、連続する前記点列指令
を数点選択して評価範囲を設定する第2のステップと、
前記第2のステップで選択された前記評価範囲内の点列
指令を用いて、前記評価範囲内の点列指令の修正量を計
算する第3のステップと、計算された前記修正量に従っ
て前記第1のステップにおいて入力された点列指令を移
動してその結果を出力する第4のステップとを有し、前
記第3のステップは、前記点列指令を通過する曲線の曲
率に相当する曲率評価値を前記評価範囲内の複数箇所で
計算するとともに、前記複数の曲率評価値の中で値の大
きなものを小さくするように前記点列指令の修正量を計
算することを特徴とする数値制御方法。 [ Claim 11 ] A sequence of points representing the control position coordinates of a machine tool.
The first step is to input a command, and the sequence of points command
The second step is to select several points and set the evaluation range,
The sequence of points within the evaluation range selected in the second step above.
Using the command, the amount of correction for the point sequence command within the evaluation range is measured.
A third step of calculation, and according to the calculated correction amount
Then, move the point sequence command input in the first step.
It has a fourth step of moving and outputting the result,
The third step is the curve that passes through the sequence of points command.
The curvature evaluation value corresponding to the ratio is set at multiple locations within the evaluation range.
In addition to calculating, among the multiple curvature evaluation values, the largest value
The amount of correction to the dot sequence command is calculated to make the large ones smaller.
A numerical control method characterized by calculation.
【請求項12】 第3のステップは、曲率評価値とし
て、連続する点列指令を結ぶ線分ベクトルの1次または
高次の変化量を示す差分ベクトルを用いることを特徴と
する請求項11記載の数値制御方法。 [ Claim 12 ] The third step is to use a curvature evaluation value
Then, the linear or
A key feature is the use of difference vectors that represent higher-order changes.
The numerical control method according to claim 11.
【請求項13】 第3のステップは、複数箇所における
差分ベクトルの各軸成分の2乗和が最小となるように、
修正量の前記各軸成分を計算することを特徴とする請求
項12記載の数値制御方法。 [ Claim 13 ] The third step is to perform at multiple locations
The sum of the squares of the components of each axis of the difference vector is minimized.
Claim characterized by calculating the respective axis components of the correction amount.
The numerical control method described in item 12.
【請求項14】 第3のステップにおける修正量を許容
誤差値以下に制限する第5のステップを有することを特
徴とする請求項11から請求項13のうちのいずれか1
項記載の数値制御方法。 [ Claim 14 ] Allows the amount of modification in the third step.
The invention has a fifth step of limiting the error value to less than or equal to the error value.
Any one of claims 11 to 13 is a characteristic feature
The numerical control method described in the section.
【請求項15】 第3のステップは、差分ベクトルとし
て、線分ベクトルの長さに関する量により重み付けされ
た線分ベクトルを用いて計算された差分ベクトルを用い
ることを特徴とする請求項12記載の数値制御方法。 [ Claim 15 ] The third step is to use a difference vector
And it is weighted by a quantity related to the length of the line segment vector.
Using the difference vector calculated using the line segment vector
The numerical control method according to claim 12, characterized in that
【請求項16】 工作機械の制御位置座標を表す点列指
令を入力する第1のステップと、連続する前記点列指令
を数点選択して評価範囲を設定する第2のステップと、
前記第2のステップで選択された前記評価範囲内の点列
指令を用いて、前記評価範囲内の点列指令の修正量を計
算する第3のステップと、計算された前記修正量に従っ
て前記第1のステップにおいて入力された点列指令を移
動してその結果を出力する第4のステップとを有し、前
記第3のステップは、前記評価範囲内の点列指令に2次
以上の曲線をあてはめ、その曲線に近づくように前記点
列指令の修正量を計算することを特徴とする数値制御方
法。 [ Claim 16 ] A sequence of points representing the control position coordinates of a machine tool.
The first step is to input a command, and the sequence of points command
The second step is to select several points and set the evaluation range,
The sequence of points within the evaluation range selected in the second step above.
Using the command, the amount of correction for the point sequence command within the evaluation range is measured.
A third step of calculation, and according to the calculated correction amount
Then, move the point sequence command input in the first step.
It has a fourth step of moving and outputting the result,
The third step is to apply a secondary command to the sequence of points within the evaluation range.
By fitting the above curve, the aforementioned points are moved to approach that curve.
A numerical control method characterized by calculating the amount of correction for column commands.
Law.
【請求項17】 第3のステップは、前記評価範囲内の
点列指令に2次曲線をあてはめることを特徴とする請求
項16記載の数値制御方法。 [ Claim 17 ] The third step is to perform the evaluation within the evaluation range
Claim characterized by applying a quadratic curve to a sequence of points command.
The numerical control method described in item 16.
【請求項18】 第3のステップにおける修正量を許容
誤差値以下に制限する第5のステップを有することを特
徴とする請求項16または請求項17記載の数値制御方
法。 [ Claim 18 ] Allows the amount of modification in the third step.
The invention has a fifth step of limiting the error value to less than or equal to the error value.
The numerical control method according to claim 16 or claim 17, characterized by
Law.
【請求項19】 第3のステップは、修正された点列指
令を以降の修正点に対する修正量の計算に用いることを
特徴とする請求項11から請求項18のうちのいずれか
1項記載の数値制御方法。 [ Claim 19 ] The third step is to modify the sequence of dots
The order will be used in calculating the amount of correction for subsequent corrections.
Any of claims 11 to 18 is a characteristic feature
The numerical control method described in item 1.
【請求項20】 入力された点列指令からなる軌跡の性
状を判断する第6のステップを有し、判断された前記軌
跡の性状に応じて、第2のステップにおいて設定する前
記評価範囲、および/または、第3のステップにおける
前記修正量計算方法を適宜変更することを特徴とする請
求項11から請求項19のうちのいずれか1項記載の数
値制御方法。 [ Claim 20 ] The properties of the trajectory consisting of the input sequence command
The process has a sixth step of determining the state, and the determined trajectory
Depending on the nature of the trace, before setting in the second step
The evaluation scope and/or in the third step
The aforementioned method for calculating the correction amount is appropriately modified.
The number of any one of claims 11 to 19
Value control method.
【発明の詳細な説明】[Detailed Description of the Invention]
【0001】[0001]
【発明の属する技術分野】この発明は、工作機械の数値
制御に用いられる数値制御装置に関するものであり、特
に、工作機械位置制御用の点列指令を滑らかに修正する
機能を備えた数値制御装置および数値制御方法に関する
ものである。[Technical Field to Which the Invention Pertains] This invention relates to a numerical control device used for numerical control of machine tools, and more particularly to a numerical control device and a numerical control method equipped with a function for smoothly correcting a sequence of point commands for machine tool position control.
【0002】[0002]
【従来の技術】工作機械を制御するNC装置のNCプロ
グラムは、通常、滑らかなスプライン曲線のような軌跡
の場合、曲線を直線近似して微小な線分列として表現す
る。この場合、NC装置の前記NCプログラムは、連続
する点列(位置座標点)として表現されるか、あるい
は、連続する線分として表現される。このような前記直
線近似による軌跡を点列指令と総称する。[Conventional Technology] In the case of NC programs for NC devices that control machine tools, the NC program usually approximates the curve as a straight line and represents it as a series of minute line segments, especially when dealing with trajectories such as smooth spline curves. In this case, the NC program of the NC device is represented as a series of points (position coordinate points) or as a series of line segments. Such trajectories approximated by straight lines are collectively referred to as point sequence commands.
【0003】前記点列指令は、CAD/CAM装置で作
成される場合は、計算誤差等で不連続な点が発生する場
合がある。また、モデルの形状を計測して前記点列指令
を作成する場合には、モデルを倣い計測する時に発生す
る計測誤差によってガタガタした不連続な軌跡になる場
合がある。点列指令に不連続な軌跡があると、加工面が
滑らかにならず、また、工作機械にも不必要な加速度が
加わって機械を損傷する場合があるなどの問題がある。[0003] When the point sequence command is created using a CAD/CAM device, discontinuous points may occur due to calculation errors, etc. Also, when the point sequence command is created by measuring the shape of the model, the trajectory may become jagged and discontinuous due to measurement errors that occur when tracing the model. If the point sequence command has a discontinuous trajectory, the machined surface will not be smooth, and unnecessary acceleration may be applied to the machine tool, potentially damaging the machine.
【0004】このような前記点列指令の不連続点を修正
する方法として、例えば特開平3−63708に示され
たような方法がある。この方法では、不連続な点列指令
を修正するために、連続する点列指令3点ごとに三角形
の重心の近似点を算出し、点列指令を前記重心の近似点
に移動させることにより修正を行っている。[0004] As a method for correcting discontinuities in such point sequence commands, there is a method as shown in Japanese Patent Application Publication No. 3-63708. In this method, in order to correct discontinuous point sequence commands, the approximate centroid of a triangle is calculated for every three consecutive points in the point sequence command, and the point sequence command is corrected by moving it to the approximate centroid.
【0005】[0005]
【発明が解決しようとする課題】従来の数値制御装置は
以上のように構成されているので、連続する点列指令中
の修正点およびその前後の計3点から三角形の重心を求
めて修正を行うため、点列指令の修正に用いる点列情報
が少なく、このため、前記修正において必ずしも点列指
令全体を滑らかにするような有効な修正が行われない課
題があった。[Problems to be Solved by the Invention] Conventional numerical control devices are configured as described above, and since they calculate the centroid of a triangle from the correction point and the three points before and after it in a sequence of points command, the amount of point sequence information used to correct the sequence of points command is small, and for this reason, there is a problem that the correction does not necessarily make an effective correction that smooths the entire sequence of points command.
【0006】また、点列指令が円弧などの曲率の変化の
少ない軌跡を表現している場合に、上記従来の方法で点
列指令を修正すると、逆に曲率が大きな点列指令に修正
され、滑らかさが失われるとともに、修正が行われるこ
とにより誤差が大きな点列軌跡となってしまう場合があ
る課題があった。[0006] Furthermore, when a point sequence command represents a trajectory with little change in curvature, such as an arc, modifying the point sequence command using the conventional method described above can result in a point sequence command with greater curvature, leading to a loss of smoothness. Additionally, the modification can result in a point sequence trajectory with a large error.
【0007】さらに、点列指令の修正量に制限を設けて
いないため、加工誤差が許容範囲以上に大きくなる場合
があり、加工不良が発生したりするなどの課題があっ
た。[0007] Furthermore, because there is no limit on the amount of correction of the point sequence command, the machining error may become larger than the allowable range, which can lead to problems such as machining defects.
【0008】この発明は上記のような課題を解決するた
めになされたもので、単純な計算方法により、多数の点
列情報を用いて点列指令全体を滑らかにする有効な修正
を行うことができ、これにより、工作機械による加工面
を滑らかにし、工作機械への不必要な加速度による工作
機械の損傷等を有効に防止することができる数値制御装
置および数値制御方法を得ることを目的とする。[0008] This invention was made to solve the above-mentioned problems, and aims to provide a numerical control device and numerical control method that can perform effective modifications to smooth the entire sequence of points using a large amount of sequence of points information by a simple calculation method , thereby smoothing the machined surface by a machine tool and effectively preventing damage to the machine tool due to unnecessary acceleration.
【0009】また、この発明は、円弧のような滑らかな
軌跡を表現している点列指令の場合にも、従来の方法に
おけるように軌跡を劣化させることなく滑らかな点列指
令を得ることができる数値制御装置および数値制御方法
を得ることを目的とする。[0009] Furthermore, this invention aims to provide a numerical control device and a numerical control method that can obtain a smooth point sequence command without degrading the trajectory, as in conventional methods, even in the case of a point sequence command that represents a smooth trajectory such as an arc.
【0010】さらに、この発明は、点列指令の修正量が
許容誤差以上の大きな値となって工作機械による加工不
良や工作機械の損傷が発生する事態を防止することがで
きる数値制御装置および数値制御方法を得ることを目的
とする。[0010] Furthermore, the present invention aims to provide a numerical control device and a numerical control method that can prevent situations in which the correction amount of the point sequence command becomes a value larger than the permissible error, resulting in machining defects by the machine tool or damage to the machine tool.
【0011】さらに、この発明は、曲率の変化や点列指
令間の間隔の変化が大きいような点列指令に対しても軌
跡を劣化させることなく滑らかな点列指令が得られ、点
列指令の修正を有効に行うことができる数値制御装置お
よび数値制御方法を得ることを目的とする。[0011] Furthermore, this invention provides a numerical control device that can obtain smooth point sequence commands without degrading the trajectory even for point sequence commands with large changes in curvature or spacing between point sequence commands, and can effectively modify point sequence commands .
The objective is to obtain a numerical control method .
【0012】さらに、この発明は、曲線の種類や、誤差
の有無などが複雑に組み合わされたような軌跡に対して
も、精度よく本来の軌跡を復元することのできる数値制
御装置および数値制御方法を得ることを目的とする。[0012] Furthermore, the present invention aims to provide a numerical control device and a numerical control method that can accurately restore the original trajectory even for trajectories in which the types of curves and the presence or absence of errors are intricately combined.
【0013】[0013]
【課題を解決するための手段】この発明に係る数値制御
装置は、修正量計算部が、点列指令を通過する曲線の曲
率に相当する曲率評価値を評価範囲内の複数箇所で計算
するとともに、前記複数の曲率評価値の中で値の大きな
ものを小さくするように前記点列指令の修正量を計算す
るようにしたものである。[Means for Solving the Problem] The numerical control device according to this invention has a correction amount calculation unit that calculates curvature evaluation values corresponding to the curvature of the curve passing through the point sequence command at multiple locations within the evaluation range, and calculates the correction amount of the point sequence command so as to reduce the value of the larger of the multiple curvature evaluation values.
【0014】この発明に係る数値制御装置は、修正量計
算部が、曲率評価値として、連続する点列指令を結ぶ線
分ベクトルの1次または高次の変化量を示す差分ベクト
ルを用いるようにしたものである。[0014] The numerical control device according to this invention is configured such that the correction amount calculation unit uses a difference vector that indicates the amount of change of the first or higher order of line segment vectors connecting consecutive point sequence commands as the curvature evaluation value.
【0015】この発明に係る数値制御装置は、修正量計
算部が、複数箇所における差分ベクトルの各軸成分の2
乗和が最小となるように、修正量の前記各軸成分を計算
するようにしたものである。[0015] The numerical control device according to this invention has a correction amount calculation unit that calculates the two axis components of the difference vector at multiple locations.
The system calculates the components of each axis of the correction amount in such a way that the sum of the multiplications is minimized.
【0016】この発明に係る数値制御装置は、修正量計
算部における修正量を許容誤差値以下に制限する修正量
制限部を備えたものである。[0016] The numerical control device according to this invention is equipped with a correction amount limiting unit that limits the correction amount in the correction amount calculation unit to less than or equal to an allowable error value.
【0017】この発明に係る数値制御装置は、修正量計
算部が、差分ベクトルとして、線分ベクトルの長さに関
する量により重み付けされた線分ベクトルを用いて計算
された差分ベクトルを用いるようにしたものである。[0017] The numerical control device according to this invention is configured such that the correction amount calculation unit uses a difference vector calculated using a line segment vector weighted by a quantity relating to the length of the line segment vector as the difference vector.
【0018】この発明に係る数値制御装置は、修正量計
算部が、評価範囲内の点列指令に2次以上の曲線をあて
はめ、その曲線に近づくように前記点列指令の修正量を
計算するようにしたものである。[0018] The numerical control device according to this invention has a correction amount calculation unit that applies a curve of order of order or higher to a point sequence command within an evaluation range and calculates a correction amount for the point sequence command so that it approaches that curve.
【0019】この発明に係る数値制御装置は、修正量計
算部が、評価範囲内の点列指令に2次曲線をあてはめる
ようにしたものである。[0019] The numerical control device according to this invention is configured such that the correction amount calculation unit applies a quadratic curve to a sequence of points command within the evaluation range.
【0020】この発明に係る数値制御装置は、評価範囲
内の点列指令に2次曲線をあてはめた修正量計算部にお
ける修正量を許容誤差値以下に制限する修正量制限部を
備えるようにしたものである。[0020] The numerical control device according to this invention has an evaluation range
The system includes a correction amount limiting unit that limits the correction amount in the correction amount calculation unit , which applies a quadratic curve to the internal point sequence command, to less than or equal to the allowable error value.
【0021】この発明に係る数値制御装置は、修正量計
算部が、修正された点列指令を以降の修正点に対する修
正量の計算に用いるようにしたものである。[0021] The numerical control device according to this invention is configured such that the correction amount calculation unit uses the corrected point sequence command to calculate the correction amount for subsequent correction points.
【0022】この発明に係る数値制御装置は、入力され
た点列指令からなる軌跡の性状を判断する軌跡判断部を
備え、判断された前記軌跡の性状に応じて、評価範囲設
定部において設定する前記評価範囲、および/または、
修正量計算部における前記修正量計算方法を適宜変更す
るようにしたものである。[0022] The numerical control device according to this invention includes a trajectory determination unit that determines the characteristics of a trajectory consisting of an input sequence of points command, and according to the determined characteristics of the trajectory, the evaluation range set in the evaluation range setting unit and/or,
The method for calculating the correction amount in the correction amount calculation unit is modified as appropriate.
【0023】この発明に係る数値制御方法は、第3のス
テップが、点列指令を通過する曲線の曲率に相当する曲
率評価値を評価範囲内の複数箇所で計算するとともに、
前記複数の曲率評価値の中で値の大きなものを小さくす
るように前記点列指令の修正量を計算するようにしたも
のである。 [0023] The numerical control method according to this invention is a third S
The step corresponds to the curvature of the curve passing through the point sequence command.
The rate evaluation value is calculated at multiple points within the evaluation range,
Among the aforementioned multiple curvature evaluation values, the one with the largest value is reduced.
The correction amount for the aforementioned sequence command is calculated accordingly.
That is the case.
【0024】この発明に係る数値制御方法は、第3のス
テップが、曲率評価値として、連続する点列指令を結ぶ
線分ベクトルの1次または高次の変化量を示す差分ベク
トルを用いるようにしたものである。 [0024] The numerical control method according to this invention is a third S
The step connects a series of point commands as a curvature evaluation value.
Difference vectors show the first-order or higher-order change of a line segment vector.
This was designed to use the "tor" command.
【0025】この発明に係る数値制御方法は、第3のス
テップが、複数箇所における差分ベクトルの各軸成分の
2乗和が最小となるように、修正量の前記各軸成分を計
算するようにしたものである。 [0025] The numerical control method according to this invention is a third S
The step is the component of each axis of the difference vector at multiple locations.
The sum of squares is minimized when calculating the respective axis components of the correction amount.
It is designed to perform calculations.
【0026】この発明に係る数値制御方法は、第3のス
テップにおける修正量を許容誤差値以下に制限する第5
のステップを有するものである。 [0026] The numerical control method according to this invention is a third S
The fifth step limits the amount of correction in the step to below the tolerance value.
It has the following steps.
【0027】この発明に係る数値制御方法は、第3のス
テップが、差分ベクトルとして、線分ベクトルの長さに
関する量により重み付けされた線分ベクトルを用いて計
算された差分ベクトルを用いるようにしたものである。 [0027] The numerical control method according to this invention is a third S
The step is expressed as a difference vector, corresponding to the length of the line segment vector.
Using line segment vectors weighted by the relevant quantity,
This method uses the calculated difference vector.
【0028】この発明に係る数値制御方法は、第3のス
テップが、評価範囲内の点列指令に2次以上の曲線をあ
てはめ、その曲線に近づくように前記点列指令の修正量
を計算するようにしたものである。 [0028] The numerical control method according to this invention is a third S
The step involves a sequence of points within the evaluation range that has a curve of order of degree or higher.
Then, adjust the amount of the point sequence command so that it approaches that curve.
This is designed to calculate [the result].
【0029】この発明に係る数値制御方法は、第3のス
テップが、評価範囲内の点列指令に2次曲線をあてはめ
るようにしたものである。 [0029] The numerical control method according to this invention is a third S
The TEPP applies a quadratic curve to the sequence of points within the evaluation range.
It was designed to do so.
【0030】この発明に係る数値制御方法は、評価範囲
内の点列指令に2次曲線をあてはめた第3のステップに
おける修正量を許容誤差値以下に制限する第5のステッ
プを備えるようにしたものである。 [0030] The numerical control method according to this invention has an evaluation range
In the third step, a quadratic curve is applied to the internal sequence of points command.
A fifth step that limits the amount of correction to below the permissible error value.
It is designed to be equipped with a p
【0031】この発明に係る数値制御方法は、第3のス
テップが、修正された点列指令を以降の修正点に対する
修正量の計算に用いるようにしたものである。 [0031] The numerical control method according to this invention is a third S
The step then applies the modified point sequence command to subsequent modifications.
This is designed to be used in calculating the amount of correction.
【0032】この発明に係る数値制御方法は、入力され
た点列指令からなる軌跡の性状を判断する第6のステッ
プを有し、判断された前記軌跡の性状に応じて、第2の
ステップにおいて設定する前記評価範囲、および/また
は、第3のステップにおける前記修正量計算方法を適宜
変更するようにしたものである。 [0032] The numerical control method according to this invention is input
The sixth step determines the characteristics of the trajectory consisting of a sequence of points.
Having a pu, and depending on the characteristics of the trajectory determined, a second
The evaluation range set in the step, and/or
The method for calculating the correction amount in the third step may be adjusted as appropriate.
This has been changed.
【0033】[ 0033 ]
【発明の実施の形態】以下、この発明の実施の一形態を
説明する。
実施の形態1.
図1はこの発明の実施の形態1による数値制御装置の構
成を示すブロック図であり、図において、1はこの発明
の実施の形態1による数値制御装置、2はx,y,z軸
の3軸構成によりなる工作機械、3はCAD/CAM装
置等から点列指令を含むNCプログラムを入力して記憶
する点列指令入力部であり、この点列指令は、位置座標
を表す点列あるいはこの点列を結ぶ線分列により指令さ
れる。4は前記点列指令入力部3から入力した点列指令
を数点選択して評価範囲を設定する評価範囲設定部、5
は前記評価範囲設定部4で設定された点列指令による軌
跡の曲率評価値が小さくなるように点列指令の修正量を
計算する修正量計算部、6は前記点列指令の修正量が最
大許容誤差を越えないように前記点列指令の修正量を制
限する修正量制限部である。この最大許容誤差は加工精
度に応じてあらかじめ設定される。7は点列指令入力部
3の点列指令の位置を前記修正量制限部6からの出力に
応じて移動させる点列移動部、8は点列移動部7から出
力される点列指令とNCプログラムで指令される速度指
令に基づいて補間計算を行い、工作機械2の各軸(x,
y,z軸)の位置指令を計算しサンプリング周期ごとに
出力する点列補間部、9は点列補間部8の出力する位置
指令等に基づいて工作機械2を制御するサーボ制御部で
ある。[Embodiments of the Invention] Hereinafter, one embodiment of the present invention will be described. Embodiment 1. Figure 1 is a block diagram showing the configuration of a numerical control device according to Embodiment 1 of the present invention, in which 1 is a numerical control device according to Embodiment 1 of the present invention, 2 is a machine tool with a three-axis configuration of x, y, and z axes, 3 is a point sequence command input unit that inputs and stores an NC program including point sequence commands from a CAD/CAM device or the like, and this point sequence command is commanded by a sequence of points representing position coordinates or a sequence of line segments connecting these points. 4 is an evaluation range setting unit that selects several points from the point sequence command input unit 3 and sets an evaluation range, 5
7 is a correction amount calculation unit that calculates the amount of correction to the point sequence command so that the curvature evaluation value of the trajectory due to the point sequence command set in the evaluation range setting unit 4 becomes small, and 6 is a correction amount limiting unit that limits the amount of correction to the point sequence command so that the amount of correction to the point sequence command does not exceed the maximum permissible error. This maximum permissible error is set in advance according to the machining accuracy. 7 is a point sequence movement unit that moves the position of the point sequence command in the point sequence command input unit 3 according to the output from the correction amount limiting unit 6, and 8 performs interpolation calculations based on the point sequence command output from the point sequence movement unit 7 and the speed command commanded by the NC program, and calculates each axis (x,
9 is a point interpolation unit that calculates position commands for the y and z axes and outputs them at each sampling period, and 9 is a servo control unit that controls the machine tool 2 based on the position commands output by the point interpolation unit 8.
【0034】また、工作機械2において、10は工作機
械2を駆動するモータ、11は工作機械2の位置および
速度を計測するエンコーダである。サーボ制御部9は、
点列補間部8の出力と工作機械2のエンコーダ11の計
測値から位置制御、速度制御などの制御演算を行い、工
作機械2のモータ10に電力を供給する。[ 0034 ] In the machine tool 2, 10 is a motor that drives the machine tool 2, and 11 is an encoder that measures the position and speed of the machine tool 2. The servo control unit 9 is
The system performs control calculations such as position control and speed control based on the output of the point interpolation unit 8 and the measured values of the encoder 11 of the machine tool 2, and supplies power to the motor 10 of the machine tool 2.
【0035】12は実施の形態1の数値制御装置1の点
列指令修正部であり、前記点列指令入力部3,評価範囲
設定部4,修正量計算部5,修正量制限部6および点列
移動部7を備えている。数値制御装置1は、1つあるい
は複数のCPU(中央処理装置),メモリ,入出力イン
ターフェイス等で構成されるコンピュータシステムによ
り実現されている。[ 0035 ] 12 is a point sequence command correction unit of the numerical control device 1 of Embodiment 1, and comprises the point sequence command input unit 3, evaluation range setting unit 4, correction amount calculation unit 5, correction amount limiting unit 6, and point sequence movement unit 7. The numerical control device 1 is implemented by a computer system consisting of one or more CPUs (central processing units), memory, input/output interfaces, etc.
【0036】図2は点列指令の1例を示す模式図であ
る。点列指令Pi は3次元位置座標(Pxi ,Pyi ,
Pzi )によりなる(ここで、iは点列指令のインデッ
クス、i=1,2,・・,nであり、P1 は始点、Pn
は終点である。)。[ 0036 ] Figure 2 is a schematic diagram showing an example of a point sequence command. The point sequence command Pi is a 3D position coordinate (Px i , Py i ,
Pz i ) is formed by (where i is the index of the point sequence command, i = 1, 2, ..., n, P 1 is the starting point, P n
This is the final stop.
【0037】次に動作について説明する。まず、数値制
御装置1の点列指令修正部12の動作を図3を用いて説
明する。図3はこの発明の実施の形態1による数値制御
装置1の点列指令修正部12の動作を示すフローチャー
トである。図3に示す評価範囲設定部4は、連続する5
点を評価範囲として設定する。[ 0037 ] Next, the operation will be described. First, the operation of the point sequence command correction unit 12 of the numerical control device 1 will be described using Figure 3. Figure 3 is a flowchart showing the operation of the point sequence command correction unit 12 of the numerical control device 1 according to Embodiment 1 of this invention. The evaluation range setting unit 4 shown in Figure 3 is a continuous 5
Set the points as the evaluation range.
【0038】ステップST1は点列指令入力部3の処理
であり、点列指令入力部3はCAD/CAM装置等から
NCプログラムを読み込み、点列指令P1 ,P2 ,・
・,Pn をメモリに格納する。[ 0038 ] Step ST1 is the processing of the point sequence command input unit 3, which reads an NC program from a CAD/CAM device or the like and inputs point sequence commands P1 , P2 , ...
Store Pn in memory.
【0039】ステップST2〜ステップST8は評価範
囲設定部4の処理である。評価範囲設定部4は、連続す
る5点を評価範囲として設定する。すなわち、図2にお
いて修正を行う点をPi としたとき、前記修正点Pi と
その前後の各2点、Pi-2 ,Pi-1 ,Pi+1 ,Pi+2 が
選択される。[ 0039 ] Steps ST2 to ST8 are processes performed by the evaluation range setting unit 4. The evaluation range setting unit 4 sets five consecutive points as the evaluation range. That is, when the point to be corrected in Figure 2 is P i , the correction point P i and the two points before and after it, P i-2 , P i-1 , P i+1 , and P i+2, are selected.
【0040】ステップST2においては、点列指令Pi
の最初の修正点として、インデックスiが2に、すなわ
ちP2 が設定される。ステップST3では、i=2なら
ステップST4に処理を進め、i=2でないならステッ
プST5に処理を進める。ステップST5では、i=n
−1ならステップST6に処理を進め、i=n−1でな
いならステップST7に処理を進める。ステップST7
では、i=n(Pn すなわち終点)ならステップST2
4に、そうでないならステップST8に処理を進める。[ 0040 ] In step ST2, the point sequence command P i
The first modification is that index i is set to 2, i.e., P 2. In step ST3, if i=2, proceed to step ST4; otherwise, proceed to step ST5. In step ST5, i=n
If i = n-1, proceed to step ST6; otherwise, proceed to step ST7. Step ST7
So, if i = n (P n i.e., the endpoint), then step ST2
4. Otherwise, proceed to step ST8.
【0041】ステップST4,6,8においては、前記
修正点Pi とその前後の2点(Pi- 2 ,Pi-1 ,
Pi+1 ,Pi+2 )の選択を行うが、前記ステップST4
は点列指令の始点部での処理、前記ステップST6は点
列指令の終点部での処理、前記ステップST8は始点部
および終点部以外の処理である。[ 0041 ] In steps ST4, 6, and 8, the modification point Pi and the two points before and after it (Pi - 2 , Pi -1 ,
The selection of P i+1 and P i+2 is made, but in step ST4
Step ST6 is the processing at the starting point of the point sequence command, step ST8 is the processing at the ending point of the point sequence command, and step ST8 is the processing other than the starting point and the ending point.
【0042】ステップST4においては点Pi-2 が、ス
テップST6においては点Pi+2 が存在しないため、ス
テップST4においては式(101)を用いて、ステッ
プST6においては式(102)を用いて、点列指令を
外挿する。
Pi-2 =2P0 −P1 (101)
Pi+2 =2Pn −Pn-1 (102)[ 0042 ] In step ST4, point P i-2 does not exist, and in step ST6, point P i+2 does not exist. Therefore, in step ST4, equation (101) is used to extrapolate the point sequence command, and in step ST6, equation (102) is used. P i-2 = 2P 0 - P 1 (101) P i+2 = 2P n - P n-1 (102)
【0043】ステップST9は修正量計算部5の処理
で、ステップST4、ステップST6、ステップST8
で選択した前記5点から点Pi の修正量Ei を計算す
る。修正量Ei はi番目の点Pi の修正量で、X、Y、
Z軸の修正量(exi ,eyi ,ezi )からなるベク
トルである。[ 0043 ] Step ST9 is the processing of the correction amount calculation unit 5, and steps ST4, ST6, ST8
The correction amount Ei of point P i is calculated from the five points selected above. The correction amount Ei is the correction amount of the i-th point P i , and X, Y,
This is a vector consisting of the Z-axis correction amounts (ex i , eye i , ez i ).
【0044】図2の点列指令でPi の修正量Ei を計算
する方法を以下に示す。図4は点列指令の修正動作の説
明図である。まず、図4に示すように、図2の点列指令
から、式(103)〜(106)により線分ベクトルS
i-2 ,Si-1 ,Si ,Si+1を計算する。
Si-2 =Pi-1 −Pi-2
=(Pxi-1 −Pxi-2 ,Pyi-1 −Pyi-2
,Pzi-1 −Pzi-2 )
=(Sxi-2 ,Syi-2 ,Szi-2 )
(103)
Si-1 =Pi −Pi-1
=(Pxi −Pxi-1 ,Pyi −Pyi-1
,Pzi −Pzi-1 )
=(Sxi-1 ,Syi-1 ,Szi-1 )
(104)
Si =Pi+1 −Pi
=(Pxi+1 −Pxi ,Pyi+1 −Pyi
,Pzi+1 −Pzi )
=(Sxi ,Syi ,Szi )
(105)
Si+1 =Pi+2 −Pi+1
=(Pxi+2 −Pxi+1 ,Pyi+2 −Pyi+1
,Pzi+2 −Pzi+1 )
=(Sxi+1 ,Syi+1 ,Szi+1 )
(106)[0044In the point sequence command shown in Figure 2, PiCorrection amount EiCalculate
The method is shown below. Figure 4 illustrates the modification operation of the sequence command.
This is a diagram. First, as shown in Figure 4, the dot sequence command in Figure 2
Therefore, according to equations (103) to (106), the line segment vector S
i-2, Si-1, Si, Si+1Calculate S.
Si-2= Pi-1-Pi-2 = (Pxi-1-Pxi-2, Pyi-1-Pyi-2
,Pzi-1-Pzi-2)
= (Sxi-2Syi-2, Szi-2)
(103)
Si-1= Pi-Pi-1 = (Pxi-Pxi-1, Pyi-Pyi-1
,Pzi-Pzi-1)
= (Sxi-1Syi-1, Szi-1)
(104)
Si= Pi+1-Pi = (Pxi+1-Pxi, Pyi+1-Pyi
,Pzi+1-Pzi)
= (SxiSyi, Szi)
(105)
Si+1= Pi+2-Pi+1 = (Pxi+2-Pxi+1, Pyi+2-Pyi+1
,Pzi+2-Pzi+1)
= (Sxi+1Syi+1, Szi+1)
(106)
【0045】次に、図4に示すように、第1階差分ベク
トル(差分ベクトル)ΔSi-1 ,ΔSi ,ΔSi+1 を計
算する。
ΔSi-1 =Si-1 −Si-2
=(Sxi-1 −Sxi-2 ,Syi-1 −Syi-2
,Szi-1 −Szi-2 )
(107)
ΔSi =Si −Si-1
=(Sxi −Sxi-1 ,Syi −Syi-1
,Szi −Szi-1 )
(108)
ΔSi+1 =Si+1 −Si
=(Sxi+1 −Sxi ,Syi+1 −Syi
,Szi+1 −Szi )
(109)[0045Next, as shown in Figure 4, the first difference vector
Tor (difference vector) ΔSi-1ΔSiΔSi+1Calculate
Calculate.
ΔSi-1= Si-1-Si-2 = (Sxi-1−Sxi-2Syi-1-Syi-2
,Szi-1-Szi-2)
(107)
ΔSi= Si-Si-1 = (Sxi−Sxi-1Syi-Syi-1
,Szi-Szi-1)
(108)
ΔSi+1= Si+1-Si = (Sxi+1−SxiSyi+1-Syi
,Szi+1-Szi)
(109)
【0046】図4の点列指令Pi-2 〜Pi+2 はほぼ等間
隔に配置されているので、前記第1階差分ベクトルΔS
i-1 ,ΔSi ,ΔSi+1 はそれぞれ、点列指令軌跡P
i-2 〜Pi 間,Pi-1 〜Pi+1 間,Pi 〜Pi+2 間の曲
率が大きい時は大きく、前記曲率が小さい時は小さい値
となる。そこで前記差分ベクトルを曲率評価値として用
いる。[ 0046 ] Since the point sequence commands P i-2 to P i+2 in Figure 4 are arranged at approximately equal intervals, the first-order difference vector ΔS
i-1 , ΔSi , and ΔSi+1 are the point sequence command trajectory P, respectively.
The difference vector is large when the curvature between i-2 and P i , between P i-1 and P i+1 , and between P i and P i+2 is large, and small when the curvature is small. Therefore, the difference vector is used as the curvature evaluation value.
【0047】修正点Pi を修正量Ei だけ移動させると
式(107),(108),(109)の前記差分ベク
トルは以下の式(110)〜(112)のようになる。
ここで、修正後の前記差分ベクトルをΔSi-1 ’、ΔS
i ’、ΔSi+1 ’とする。
ΔSi-1 ’=(Si-1 +Ei )−Si-2
=Pi −2Pi-1 +Pi-2 +Ei (110)
ΔSi ’=(Si −Ei )−(Si-1 +Ei )
=Pi+1 −2Pi +Pi-1 −2Ei (111)
ΔSi+1 ’=Si+1 −(Si −Ei )
=Pi+2 −2Pi+1 +Pi +Ei (112)[0047] Correction point PiCorrection amount EiIf you move only that
The difference vector of equations (107), (108), and (109)
The formula for Tor is as follows (110) to (112).
Here, the corrected difference vector is ΔSi-1', ΔS
i', ΔSi+1Let's assume it's '.
ΔSi-1' = ( Si-1+Ei)-Si-2 = Pi-2Pi-1+Pi-2+Ei(110)
ΔSi' = ( Si-Ei) - (Si-1+Ei)
=Pi+1-2Pi+Pi-1-2Ei(111)
ΔSi+1' = Si+1-(Si-Ei)
=Pi+2-2Pi+1+Pi+Ei(112)
【0048】ここで式(110),(111),(11
2)の差分ベクトルにおいて大きな値を持つ差分ベクト
ルを小さくするため、前記差分ベクトルの各軸成分の2
乗の和が最小となる修正量Ei (exi ,eyi ,ez
i )を計算する。まず、修正量Ei のx軸成分exi を
求める方法を説明する。[ 0048 ] Here, equations (110), (111), (11
2) In order to reduce the difference vectors that have large values in the difference vector, the two axis components of the difference vector
The correction quantity E i (ex i , eye i , ez) that minimizes the sum of the exponents
We will calculate i ). First, we will explain how to find the x-axis component ex i of the correction amount E i .
【0049】前記差分ベクトルのx軸成分の2乗の和J
xは下式(113)となる。
Jx=(Pxi −2Pxi-1 +Pxi-2 +exi )2
+(Pxi+1 −2Pxi +Pxi-1 −2exi )2
+(Pxi+2 −2Pxi+1 +Pxi +exi )2
(113)[0049The sum of the squares of the x-axis components of the difference vectors J
x is given by the following equation (113):
Jx = (Pxi-2Pxi-1+Pxi-2+exi)2 +(Px)i+1-2Pxi+Pxi-1-2exi)2 +(Px)i+2-2Pxi+1+Pxi+exi)2 (113)
【0050】式(113)はexi の2次式であり、こ
れが最小となるexi を求めるためにJx/exi =0
とおき、exi について整理すると、
exi =−(Pxi-2 −4Pxi-1 +6Pxi
−4Pxi+1 +Pxi+2 )/6
(114)
となる。y軸,z軸も同様にして計算すると、下式とな
る。
eyi =−(Pyi-2 −4Pyi-1 +6Pyi
−4Pyi+1 +Pyi+2 )/6
(115)
ezi =−(Pzi-2 −4Pzi-1 +6Pzi
−4Pzi+1 +Pzi+2 )/6
(116)[0050Equation (113) is exiThis is a quadratic expression,
This is the minimum exiTo find Jx/exi= 0
Tooki, exiTo summarize,
exi= -(Px)i-2-4Pxi-1+6Pxi
-4Pxi+1+Pxi+2)/6
(114)
The result is as follows. Calculating the y-axis and z-axis in the same way yields the following equation.
ru.
eyi= -(Pyi-2-4Pyi-1+6Pyi
-4Pyi+1+Pyi+2)/6
(115)
ezi= -(Pzi-2-4Pzi-1+6Pzi
-4Pzi+1+Pzi+2)/6
(116)
【0051】上記結果(114),(115),(11
6)をベクトルで表現すると次式となる。
Ei =−(Pi-2 −4Pi-1 +6Pi
−4Pi+1 +Pi+2 )/6
(117)[0051】The above results (114), (115), (11
6) can be expressed as a vector as follows:
Ei= -(Pi-2-4Pi-1+6Pi -4Pi+1+Pi+2)/6
(117)
【0052】ステップST9では式(114),(11
5),(116)の計算が行われ、上記のようにして修
正量Ei が求められる。[ 0052 ] In step ST9, formula (114), (11
5) The calculations in (116) are performed, and the correction amount E i is obtained as described above.
【0053】ステップST10〜ステップST21は修
正量制限部6で行われる処理である。ステップST10
では式(114)で計算されたx軸の修正量exi の絶
対値が、あらかじめ設定されている最大許容量emax
より大きい場合にはステップST11に処理を進め、小
さい場合にはステップST14に処理を進める。[ 0053 ] Steps ST10 to ST21 are processes performed by the correction amount limiting unit 6. Step ST10
Then, the absolute value of the x-axis correction amount ex i calculated by equation (114) is the pre-set maximum allowable amount emax
If the value is greater, the process proceeds to step ST11; otherwise, the process proceeds to step ST14.
【0054】ステップST11ではexi が負の場合は
ステップST12に、それ以外はステップST13に処
理を進め、ステップST12ではexi =−emaxと
し、ステップST13ではexi =emaxとして、ス
テップST14に処理を進める。これにより、修正量e
xi の絶対値が最大許容量emax以下に制限される。[ 0054 ] In step ST11, if ex i is negative, proceed to step ST12; otherwise, proceed to step ST13. In step ST12, set ex i = -emax, and in step ST13, set ex i = emax, and proceed to step ST14. This corrects the amount e
The absolute value of x i is limited to being less than or equal to the maximum allowable value emax.
【0055】ステップST14〜ステップST17にお
いては前記x軸成分の処理と同様に、y軸成分の修正量
eyi を最大許容量emax以下に制限する処理を行
う。[ 0055 ] In steps ST14 to ST17, a process is performed to limit the correction amount ey i of the y-axis component to less than or equal to the maximum allowable amount emax, similar to the processing of the x-axis component.
【0056】ステップST18〜ステップST21にお
いては前記x軸成分の処理と同様に、z軸成分の修正量
ezi を最大許容量emax以下に制限する処理を行
う。[ 0056 ] In steps ST18 to ST21, a process is performed to limit the correction amount ez i of the z-axis component to less than or equal to the maximum allowable amount emax, similar to the processing of the x-axis component.
【0057】ステップST22では、上記ステップST
9〜ステップST21で計算した点Pi に対する修正量
Ei をメモリに記憶する。ステップST23では、iを
インクリメントし、ステップST3に処理を戻す。[ 0057 ] In step ST22, the above step ST
9. The correction amount Ei for point Pi calculated in step ST21 is stored in memory. In step ST23, i is incremented and the process returns to step ST3.
【0058】ステップST24〜ステップST27は点
列移動部7の処理であり、まず、ステップST24にお
いて点列移動部7は修正する点列指令の最初の点のイン
デックスiを2に設定する。ステップST25では終了
判定を行い、i=nであれば処理を終了し、そうでない
ならステップST26に処理を進める。ステップST2
6においては前記Ei にゲインK0を乗じた量を点列指
令Pi に加算して、点列指令Pi を移動する。前記ゲイ
ンK0は修正ゲインであり、0.3〜1.0程度の適切
な値に設定する。通常は0.5を設定する。ステップS
T27ではiをインクリメントし、ステップST25に
処理を戻す。ステップST25〜ステップST27の処
理はi=nとなるまで繰り返され、以上で図3のフロー
チャートに示した処理が終了する。[ 0058 ] Steps ST24 to ST27 are processes of the point sequence movement unit 7. First, in step ST24, the point sequence movement unit 7 sets the index i of the first point in the point sequence command to be modified to 2. In step ST25, a termination check is performed. If i = n, the process is terminated; otherwise, the process proceeds to step ST26. Step ST2
In step 6, the amount obtained by multiplying E i by the gain K0 is added to the point sequence command P i , and the point sequence command P i is moved. The gain K0 is a correction gain and is set to an appropriate value of about 0.3 to 1.0. Usually, it is set to 0.5. Step S
In step T27, i is incremented, and the process returns to step ST25. The process from step ST25 to step ST27 is repeated until i = n, and with this, the process shown in the flowchart of Figure 3 is completed.
【0059】図5は、図4の点列指令Pi が点列移動部
7によりEi だけ修正された後の様子を示す模式図であ
る。差分ベクトルはΔSi-1 ’,ΔSi ’,ΔSi+1 ’
のように小さくなり、点列指令Pi による軌跡が滑らか
になっている様子がわかる。[ 0059 ] Figure 5 is a schematic diagram showing the state after the point sequence command P i in Figure 4 has been modified by the point sequence movement unit 7 by E i . The difference vectors are ΔS i-1 ', ΔS i ', ΔS i+1 '.
As you can see, the object becomes smaller, and the trajectory created by the point sequence command P i becomes smoother.
【0060】点列補間部8は点列移動部7で修正された
点列指令Pi を速度指令に基づいて補間制御し、サーボ
制御部9の各軸の位置指令を出力する。サーボ制御部9
は前記位置指令により工作機械2を制御するが、この際
に点列指令Pi が滑らかになるように修正されているた
め、滑らかな加工を実現することができる。[ 0060 ] The point sequence interpolation unit 8 interpolates the point sequence command P i , which has been corrected by the point sequence movement unit 7, based on the speed command, and outputs the position command for each axis of the servo control unit 9. Servo control unit 9
The machine tool 2 is controlled by the position command, and since the point sequence command P i is modified to be smooth, smooth machining can be achieved.
【0061】以上のように、この実施の形態1によれ
ば、点列指令修正部12に入力される点列指令Pi の修
正点の前後の数点から曲率評価値である差分ベクトルを
計算し、差分ベクトルの大きな値が小さくなるように点
列指令を移動するため、点列指令Pi 全体を滑らかな軌
跡に修正することができる。[ 0061 ] As described above, according to this embodiment 1, a difference vector, which is a curvature evaluation value, is calculated from several points before and after the correction point of the point sequence command P i input to the point sequence command correction unit 12, and the point sequence command is moved so that the large value of the difference vector becomes small, thereby correcting the entire point sequence command P i into a smooth trajectory.
【0062】また、円弧のような滑らかな軌跡を表現し
ている点列指令Pi の場合は、曲率評価値として用いる
複数の差分ベクトルの値がほぼ同じ値となり、点列指令
の修正量が小さな値となる。そのため、前記円弧のよう
な曲線においても適切な修正動作を実現することができ
る。[ 0062 ] Furthermore, in the case of a point sequence command P i that represents a smooth trajectory such as a circular arc, the values of the multiple difference vectors used as curvature evaluation values become approximately the same, and the amount of correction of the point sequence command becomes small. Therefore, appropriate correction operations can be achieved even for curves such as the aforementioned circular arc.
【0063】さらに、修正量の計算を式(114),
(115),(116)のように少ない処理により実現
することができる。[ 0063 ] Furthermore, the amount of correction is calculated using equation (114),
This can be achieved with minimal processing, as shown in (115) and (116).
【0064】さらに、点列指令Pi の移動量を修正量制
限部6で最大許容誤差内に制限しているため、修正によ
る点列指令の位置誤差が必要以上に大きくならず、加工
精度が保証された修正動作を実現することができる。[ 0064 ] Furthermore, since the amount of movement of the point sequence command P i is limited to within the maximum permissible error by the correction amount limiting unit 6, the position error of the point sequence command due to correction does not become unnecessarily large, and a correction operation with guaranteed machining accuracy can be achieved.
【0065】実施の形態2.
実施の形態1では評価範囲設定部4の選択する点列数が
5点の場合を説明したが、この実施の形態2では、前記
点列数が7点の場合について説明する。図6はこの発明
の実施の形態2による数値制御装置の構成を示すブロッ
ク図であり、図において、1aはこの実施の形態2の数
値制御装置、4aは実施の形態2の評価範囲設定部、5
aは実施の形態2の修正量計算部、12aは実施の形態
2の点列指令修正部である。図1に示した実施の形態1
の数値制御装置1との違いは、評価範囲設定部4aと修
正量計算部5aの処理の相違のみである。[ 0065 ] Embodiment 2. Embodiment 1 described the case where the number of points selected by the evaluation range setting unit 4 is 5 points, but in this Embodiment 2, the case where the number of points is 7 points will be described. Figure 6 is a block diagram showing the configuration of the numerical control device according to Embodiment 2 of the present invention, in the figure 1a is the numerical control device of Embodiment 2, 4a is the evaluation range setting unit of Embodiment 2, 5
a is the correction amount calculation unit of Embodiment 2, and 12a is the point sequence command correction unit of Embodiment 2. Embodiment 1 shown in Figure 1
The only difference between this and the numerical control device 1 is the processing of the evaluation range setting unit 4a and the correction amount calculation unit 5a.
【0066】次に動作について説明する。図7は実施の
形態2の数値制御装置1aの点列指令修正部12aの動
作を示すフローチャートである。図7のステップST1
〜ステップST27は図3に示した実施の形態1におけ
る処理と同様であり、説明は省略する。[ 0066 ] Next, the operation will be described. Figure 7 is a flowchart showing the operation of the point sequence command correction unit 12a of the numerical control device 1a of Embodiment 2. Step ST1 in Figure 7
Step ST27 is the same as the process in Embodiment 1 shown in Figure 3, so its explanation is omitted.
【0067】ステップST3,5,7、およびステップ
ST40〜ステップST45は評価範囲設定部4aの処
理である。この実施の形態2の評価範囲設定部4aは連
続する7点を評価範囲として選択する。例えば、図2で
修正を行う点をPi としたとき、前記修正点Pi とその
前後の各3点、Pi-3 ,Pi-2 ,Pi-1 ,Pi+1 ,P
i+2 ,Pi+3 を選択する処理が行われる。[0067Steps ST3, 5, 7, and step
Steps ST40 to ST45 are performed by the evaluation range setting unit 4a.
This is correct. The evaluation range setting unit 4a of this embodiment 2 is connected
The following seven points are selected as the evaluation range. For example, in Figure 2
Points to be corrected are PiIn that case, the aforementioned modification point Piand
Three points each at the front and back, Pi-3, Pi-2, Pi-1, Pi+1, P
i+2, Pi+3A selection process is performed.
【0068】ステップST41では、i=3ならステッ
プST42に処理を進め、そうでないならステップST
43に処理を進める。ステップST43ではi=n−2
ならステップST44に処理を進め、そうでないならス
テップST5に処理を進める。[ 0068 ] In step ST41, if i = 3, proceed to step ST42, otherwise proceed to step ST
Proceed to step 43. In step ST43, i = n-2
If so, proceed to step ST44; otherwise, proceed to step ST5.
【0069】ステップST40,42,44,45,4
6では、前記修正点Pi と前後の3点(Pi-3 ,
Pi-2 ,Pi-1 ,Pi+1 ,Pi+2 ,Pi+3 )の選択を行
うが、ステップST40とステップST42は点列指令
の始点部での処理、ステップST44とステップST4
5は点列指令の終点部での処理、ステップST46は始
点部、終点部以外の処理である。[ 0069 ] Steps ST40, 42, 44, 45, 4
In section 6, the three points before and after the aforementioned modification point Pi (P i-3 ,
The selection of P i-2 , P i-1 , P i+1 , P i+2 , P i+3 ) is performed, but steps ST40 and ST42 are processing at the starting point of the point sequence command, steps ST44 and ST4
Step 5 is the processing at the end of the sequence command, and step ST46 is the processing at locations other than the start and end points.
【0070】ステップST40においては点Pi-2 と点
Pi-3 が、ステップST42においては点Pi-3 が、ス
テップST44においては点Pi+3 が、ステップST4
5においては点Pi+2 と点Pi+3 が存在しないため、次
式を使って点列指令を外挿する。
ステップST40
Pi-2 =P3 −3P2 +3P1 (201)
Pi-3 =3P3 −8P2 +6P1 (202)
ステップST42
Pi-3 =P3 −3P2 +3P1 (203)
ステップST44
Pi+3 =3Pn −3Pn-1 +Pn-2 (204)
ステップST45
Pi+2 =3Pn −3Pn-1 +Pn-2 (205)
Pi+3 =6Pn −8Pn-1 −3Pn-2 (206)[ 0070 ] In step ST40, points P i-2 and P i-3 , in step ST42, point P i-3 , in step ST44, point P i+3 , in step ST4
In point 5, points P i+2 and P i+3 do not exist, so the point sequence command is extrapolated using the following equations. Step ST40 P i-2 = P3 - 3P2 + 3P1 (201) P i-3 = 3P3 - 8P2 + 6P1 (202) Step ST42 P i-3 = P3 - 3P2 + 3P1 (203) Step ST44 P i+3 = 3Pn - 3Pn -1 + Pn -2 (204) Step ST45 P i+2 = 3Pn - 3Pn -1 + Pn -2 (205) P i+3 = 6Pn - 8Pn -1 - 3Pn -2 (206)
【0071】ステップST47は修正量計算部5aの処
理で、ステップST40,42,44,45,46で選
択した前記7点から点Pi の修正量Ei を計算する。修
正量Ei はi番目の点列指令Pi の修正量であり、X、
Y、Z軸の修正量(exi ,eyi ,ezi )からなる
ベクトルである。図2の点列指令における点Pi の修正
量Ei の計算方法を以下に示す。図8は点列指令修正部
12aの点列指令の修正動作の説明図である。[ 0071 ] Step ST47 is the processing of the correction amount calculation unit 5a, which calculates the correction amount Ei of point P i from the seven points selected in steps ST40, 42, 44, 45, and 46. The correction amount Ei is the correction amount of the i-th point sequence command P i , and X,
This is a vector consisting of the correction amounts (ex i , eye i , ez i ) for the Y and Z axes. The method for calculating the correction amount E i for point P i in the point sequence command in Figure 2 is shown below. Figure 8 is an explanatory diagram of the point sequence command correction operation of the point sequence command correction unit 12a.
【0072】まず、図8に示すように図2の点列指令か
ら線分ベクトルSi-3 ,Si-2 ,S i-1 ,Si ,
Si+1 ,Si+2 を計算する。Si-2 ,Si-1 ,Si ,S
i+1 としては式(103),(104),(105),
(106)を用い、Si-3 およびS i+2 としては次式を
用いる。
Si-3 =Pi-2 −Pi-3
=(Pxi-2 −Pxi-3 ,Pyi-2 −Pyi-3
,Pzi-2 −Pzi-3 )
=(Sxi-3 ,Syi-3 ,Szi-3 ) (207)
Si+2 =Pi+3 −Pi+2
=(Pxi+3 −Pxi+2 ,Pyi+3 −Pyi+2
,Pzi+3 −Pzi+2 )
=(Sxi+2 ,Syi+2 ,Szi+2 ) (208)[0072First, as shown in Figure 8, the dot sequence command in Figure 2
Line segment vector Si-3, Si-2, S i-1, Si,
Si+1, Si+2Calculate Si-2, Si-1, Si, S
i+1Examples include equations (103), (104), (105),
Using (106), Si-3and S i+2The following equation is used:
To use.
Si-3= Pi-2-Pi-3 = (Pxi-2-Pxi-3, Pyi-2-Pyi-3
,Pzi-2-Pzi-3)
= (Sxi-3Syi-3, Szi-3) (207)
Si+2= Pi+3-Pi+2 = (Pxi+3-Pxi+2, Pyi+3-Pyi+2
,Pzi+3-Pzi+2)
= (Sxi+2Syi+2, Szi+2) (208)
【0073】次に、第1階差分ベクトルΔSi-2 ,ΔS
i-1 ,ΔSi ,ΔSi+1 ,ΔSi+2を計算する。ΔS
i-1 ,ΔSi ,ΔSi+1 としては式(107),(10
8),(109)を用い、ΔSi-2 およびΔSi+2 とし
ては次式を用いる。
ΔSi-2 =Si-2 −Si-3
=(Sxi-2 −Sxi-3 ,Syi-2 −Syi-3
,Szi-2 −Szi-3 )
(209)
ΔSi+2 =Si+2 −Si+1
=(Sxi+2 −Sxi+1 ,Syi+2 −Syi+1
,Szi+2 −Szi+1 )
(210)[0073Next, the first-order difference vector ΔSi-2ΔS
i-1ΔSiΔSi+1ΔSi+2Calculate ΔS
i-1ΔSiΔSi+1For example, equation (107), (10
Using 8) and (109), ΔSi-2and ΔSi+2year
The following equation is used:
ΔSi-2= Si-2-Si-3 = (Sxi-2−Sxi-3Syi-2-Syi-3
,Szi-2-Szi-3)
(209)
ΔSi+2= Si+2-Si+1 = (Sxi+2−Sxi+1Syi+2-Syi+1
,Szi+2-Szi+1)
(210)
【0074】次に、図8に示すような、第2階差分ベク
トル(差分ベクトル)ΔΔSi-2 ,ΔΔSi-1 ,ΔΔS
i ,ΔΔSi+1 を計算する。
ΔΔSi-2 =ΔSi-1 −ΔSi-2
=Si-1 −2Si-2 +Si-3 (211)
ΔΔSi-1 =ΔSi −ΔSi-1
=Si −2Si-1 +Si-2 (212)
ΔΔSi =ΔSi+1 −ΔSi
=Si+1 −2Si +Si-1 (213)
ΔΔSi+1 =ΔSi+2 −ΔSi+1
=Si+2 −2Si+1 +Si (214)[0074Next, as shown in Figure 8, the second-order difference vector
Tor (difference vector) ΔΔSi-2,ΔΔSi-1,ΔΔS
i,ΔΔSi+1Calculate ΔΔS.
ΔΔSi-2=ΔSi-1-ΔSi-2 = Si-1-2Si-2+Si-3 (211)
ΔΔSi-1=ΔSi-ΔSi-1 = Si-2Si-1+Si-2 (212)
ΔΔSi=ΔSi+1-ΔSi = Si+1-2Si+Si-1 (213)
ΔΔSi+1=ΔSi+2-ΔSi+1 = Si+2-2Si+1+Si(214)
【0075】図4の点列指令Pi-3 〜Pi+3 はほぼ等間
隔に配置されているので、前記第2階差分ベクトルΔΔ
Si-2 ,ΔΔSi-1 ,ΔΔSi ,ΔΔSi+1 はそれぞ
れ、点列指令軌跡Pi-3 〜Pi ,Pi-2 〜Pi+1 ,P
i-1 〜Pi+2 ,Pi 〜Pi+3 間の曲率の変化が大きい時
は値が大きく、前記曲率の変化が小さい時は小さい値と
なる。ここでは前記第2階差分べクトルを曲率評価値と
して用いる。[ 0075 ] Since the point sequence commands P i-3 to P i+3 in Figure 4 are arranged at approximately equal intervals, the second-order difference vector ΔΔ
S i-2 , ΔΔS i-1 , ΔΔS i , and ΔΔS i+1 are the point sequence command trajectories P i-3 to P i , P i-2 to P i+1 , and P
The value is large when the change in curvature between i-1 to P i+2 and P i to P i+3 is large, and small when the change in curvature is small. Here, the second-order difference vector is used as the curvature evaluation value.
【0076】修正点Pi を修正量Ei だけ移動させる
と、式(211),(212),(213)の前記差分
ベクトルは以下のようになる。修正後の前記差分ベクト
ルを、ΔΔSi-2 ’,ΔΔSi-1 ’,ΔΔSi ’,ΔΔ
Si+1 ’とする。
ΔΔSi-2 ’=(Si-1 +Ei )−2Si-2 +Si-3
(215)
ΔΔSi-1 ’=(Si −Ei )−2(Si-1 +Ei )
+Si-2 (216)
ΔΔSi ’=Si+1 −2(Si −Ei )+(Si-1 +Ei )
(217)
ΔΔSi+1 ’=Si+2 −2Si+1 +(Si −Ei )
(218)[0076] Correction point PiCorrection amount EiMove only that
and the difference between equations (211), (212), and (213)
The vector will be as follows: The corrected difference vector
Lu, ΔΔSi-2', ΔΔSi-1', ΔΔSi', ΔΔ
Si+1Let's assume it's '.
ΔΔSi-2' = ( Si-1+Ei)-2Si-2+Si-3
(215)
ΔΔSi-1' = ( Si-Ei)-2(Si-1+Ei)
+Si-2 (216)
ΔΔSi' = Si+1-2(Si-Ei) + ( Si-1+Ei)
(217)
ΔΔSi+1' = Si+2-2Si+1+ (Si-Ei)
(218)
【0077】ここで、式(215),(216),(2
17),(218)の差分ベクトルΔΔSi-2 ’,ΔΔ
Si-1 ’,ΔΔSi ’,ΔΔSi+1 ’において、大きな
値を持つ差分ベクトルを小さくする修正量Ei を求める
ため、実施の形態1の式(113),(114)式と同
様に、前記差分ベクトルの各軸成分の2乗の和が最小と
なる修正量Ei を計算すると、式(117)に対応した
次式のような計算式が得られる。
Ei =−(−Pi-3 +6Pi-2 −15Pi-1 +20Pi
−15Pi+1 +6Pi+2 −Pi+3 )/20
(219)[0077Here, equations (215), (216), (2
17) The difference vector ΔΔS of (218)i-2', ΔΔ
Si-1', ΔΔSi', ΔΔSi+1In ',
We find the correction amount Ei that reduces the value of the difference vector.
Therefore, the same as equations (113) and (114) of Embodiment 1
Thus, the sum of the squares of the axis components of the difference vector is minimized.
When the correction amount Ei is calculated, it corresponds to equation (117).
The following formula is obtained:
Ei= −(−P)i-3+6Pi-2-15Pi-1+20Pi -15Pi+1+6Pi+2-Pi+3)/20
(219)
【0078】ステップST47においては式(219)
により修正量Ei を計算する処理が行われる。[ 0078 ] In step ST47, formula (219)
The process of calculating the correction amount E i is then performed.
【0079】以上のように、この実施の形態2によれ
ば、点列指令の評価範囲を長くして前記曲率評価値に高
次の差分ベクトルを用いて修正量を計算することがで
き、点列指令全体をより滑らかな軌跡に修正することが
可能となる。[ 0079 ] As described above, according to this embodiment 2, the evaluation range of the point sequence command can be extended and the correction amount can be calculated using a higher-order difference vector for the curvature evaluation value, making it possible to correct the entire point sequence command to a smoother trajectory.
【0080】実施の形態3.
実施の形態1の点列指令修正部12、あるいは実施の形
態2の点列指令修正部12aの動作は、点列指令の間隔
がほぼ等間隔であれば有効に働くが、等間隔でない場
合、前記差分ベクトルの曲率評価値と点列指令からなる
軌跡の曲率との対応関係が悪くなり、修正動作が有効に
働かなくなる傾向がある。そこで、この実施の形態3で
は、点列指令の間隔が等間隔でない場合にも点列指令の
修正動作が有効に働くような点列指令修正部を持つ数値
制御装置について説明する。[ 0080 ] Embodiment 3. The operation of the point sequence command correction unit 12 in Embodiment 1, or the point sequence command correction unit 12a in Embodiment 2, works effectively when the intervals between point sequence commands are approximately equal. However, when the intervals are not equal, the correspondence between the curvature evaluation value of the difference vector and the curvature of the trajectory consisting of the point sequence commands deteriorates, and the correction operation tends to become ineffective. Therefore, in this Embodiment 3, a numerical control device having a point sequence command correction unit that allows the correction operation of the point sequence commands to work effectively even when the intervals between point sequence commands are not equal will be described.
【0081】図9はこの発明の実施の形態3による数値
制御装置の構成を示すブロック図であり、図において、
1bはこの実施の形態3の数値制御装置、5bは実施の
形態3の修正量計算部、12bは実施の形態3の点列指
令修正部である。図1に示した実施の形態1の数値制御
装置1との違いは、修正量計算部5bの処理の相違のみ
である。[ 0081 ] Figure 9 is a block diagram showing the configuration of a numerical control device according to Embodiment 3 of the present invention, and in the figure,
1b is the numerical control device of this third embodiment, 5b is the correction amount calculation unit of the third embodiment, and 12b is the point sequence command correction unit of the third embodiment. The only difference from the numerical control device 1 of the first embodiment shown in Figure 1 is the difference in the processing of the correction amount calculation unit 5b.
【0082】次に動作について説明する。図10はこの
実施の形態3の数値制御装置1bの点列指令修正部12
bの動作を示すフローチャートである。図10に示す処
理は、図3に示した実施の形態1の処理におけるステッ
プST9の代わりにステップST50の処理を行うもの
である。[ 0082 ] Next, the operation will be described. Figure 10 shows the point sequence command correction unit 12 of the numerical control device 1b of this embodiment 3.
This is a flowchart showing the operation of b. The process shown in Figure 10 is the same as the process of step ST50 in the process of Embodiment 1 shown in Figure 3, but instead of step ST9.
【0083】ステップST50の処理は、図11に示す
ように点列指令が等間隔でない場合にも有効な修正量を
計算するものである。ここでは、評価範囲設定部4で選
択される点が修正点Pi とその前後の各2点、Pi-2 ,
Pi-1 ,Pi+1 ,Pi+2 の5点であるものとして修正量
Ei を計算する場合について説明する。もちろん、実施
の形態2のように前後各3点(計7点)を選択して修正
量を計算する場合においても同様に適用できることは言
うまでもない。[ 0083 ] The process in step ST50 calculates a correction amount that is effective even when the point sequence command is not equally spaced, as shown in Figure 11. Here, the points selected by the evaluation range setting unit 4 are the correction point P i and the two points before and after it, P i-2 ,
We will now explain how to calculate the correction amount E i assuming there are five points: P i-1 , P i+1 , and P i+2 . Of course, it goes without saying that this method can also be applied when selecting three points before and three points after (a total of seven points), as in Embodiment 2, to calculate the correction amount.
【0084】点列指令の修正量Ei の計算式は以下の手
順で求める。まず、式(103),(104),(10
5)を用いて図12に示すような線分ベクトルSi-2 ,
Si- 1 ,Si ,Si+1 を計算する。次に、前記線分ベク
トルSi-2 ,Si-1 ,Si ,Si+1 の線分長Li-2 ,L
i-1 ,Li ,Li+1 を次式により求める。
Li-2 =sqrt(Sxi-2 ^2+Syi-2 ^2
+Szi-2 ^2)
(301)
Li-1 =sqrt(Sxi-1 ^2+Syi-1 ^2
+Szi-1 ^2)
(302)
Li =sqrt(Sxi ^2+Syi ^2+Szi ^2)
(303)
Li+1 =sqrt(Sxi+1 ^2+Syi+1 ^2
+Szi+1 ^2)
(304)[ 0084 ] The formula for calculating the correction amount E i of the point sequence command is obtained by the following procedure. First, formulas (103), (104), (10
5) Using the line segment vector S i-2 shown in Figure 12,
Calculate S i- 1 , S i , S i+1 . Next, calculate the line segment lengths L i-2 , L i-2 , L i -1, S i, S i+1 .
Find i-1 , L i and L i+1 using the following equations. L i-2 = sqrt(Sx i-2 ^2+Sy i-2 ^2 +Sz i-2 ^2) (301) L i-1 = sqrt(Sx i-1 ^2+Sy i-1 ^2 +Sz i-1 ^2) (302) L i =sqrt(Sx i ^2+Sy i ^2+Sz i ^2) (303) L i+1 =sqrt(Sx i+1 ^2+Sy i+1 ^2 +Sz i+1 ^2) (304)
【0085】次に、次式のような第1階差分ベクトルΔ
Wi-1 ,ΔWi ,ΔWi+1 を計算する。
ΔWi-1 =Qi-1 Si-1 −Ri-1 Si-2
=(Qi-1 Sxi-1 −Ri-1 Sxi-2 ,
Qi-1 Syi-1 −Ri-1 Syi-2 ,
Qi-1 Szi-1 −Ri-1 Szi-2 )
(305)
ΔWi =Qi Si −Ri Si-1
=(Qi Sxi −Ri Sxi-1 ,
Qi Syi −Ri Syi-1 ,
Qi Szi −Ri Szi-1 )
(306)
ΔWi+1 =Qi+1 Si+1 −Ri+1 Si
=(Qi+1 Sxi+1 −Ri+1 Sxi ,
Qi+1 Syi+1 −Ri+1 Syi ,
Qi+1 Szi+1 −Ri+1 Szi )
(307)[0085Next, the first-order difference vector Δ is given by the following equation.
Wi-1ΔWiΔWi+1Calculate ΔW.
ΔWi-1= Qi-1Si-1-Ri-1Si-2 = (Q)i-1Sxi-1-Ri-1Sxi-2,
Qi-1Syi-1-Ri-1Syi-2,
Qi-1Szi-1-Ri-1Szi-2)
(305)
ΔWi= QiSi-RiSi-1 = (Q)iSxi-RiSxi-1,
QiSyi-RiSyi-1,
QiSzi-RiSzi-1)
(306)
ΔWi+1= Qi+1Si+1-Ri+1Si = (Q)i+1Sxi+1-Ri+1Sxi,
Qi+1Syi+1-Ri+1Syi,
Qi+1Szi+1-Ri+1Szi)
(307)
【0086】ここで、Qi-1 ,Ri-1 ,Qi ,Ri ,Q
i+1 ,Ri+1 は前記線分ベクトルの重み係数であり、下
式のように線分べクトルの長さを用いて計算する。
Qi-1 =2/{Li-1 (Li-1 +Li-2 )}
(308−1)
Ri-1 =2/{Li-2 (Li-1 +Li-2 )}
(308−2)
Qi =2/{Li (Li +Li-1 )}
(309−1)
Ri =2/{Li-1 (Li +Li-1 )}
(309−2)
Qi+1 =2/{Li+1 (Li+1 +Li )}
(310−1)
Ri+1 =2/{Li (Li+1 +Li )}
(310−2)[ 0086 ] Here, Q i-1 , Ri i-1 , Q i , Ri , Q
i+1 and R i+1 are the weighting coefficients of the line segment vector, and are calculated using the length of the line segment vector as shown in the following equations: Q i-1 = 2 / {L i-1 (L i-1 + L i-2 )} (308-1) R i-1 = 2 / {L i-2 (L i-1 + L i-2 )} (308-2) Q i = 2 / {L i (L i + L i-1 )} (309-1) R i = 2 / {L i-1 (L i + L i-1 )} (309-2) Q i+1 = 2 / {L i+1 (L i+1 + L i )} (310-1) R i+1 = 2 / {L i (L i+1 + L i )} (310-2)
【0087】図12に示すように、点列指令Pi-2 〜P
i+2 が不等間隔に配置されている場合でも、前記第1階
差分ベクトルΔWi-1 ,ΔWi ,ΔWi+1 は線分長に関
する量により重み付けがなされているため、ΔWi-1 ,
ΔWi ,ΔWi+1 はそれぞれ、点列指令軌跡Pi-2 〜P
i 間,Pi-1 〜Pi+1 間,Pi 〜Pi+2 間の平均曲率に
対応したベクトルとなる。ここではこの差分ベクトルを
曲率評価値として用いる。[ 0087 ] As shown in Figure 12, the sequence command P i-2 to P
Even when i+2 is arranged at unequal intervals, the first-order difference vectors ΔW i-1 , ΔW i , and ΔW i+1 are weighted by a quantity related to the line segment length, so ΔW i-1 ,
ΔW i and ΔW i+1 are the point sequence command trajectories P i-2 to P, respectively.
This vector corresponds to the mean curvature between P i , between P i-1 and P i+1 , and between P i and P i+2 . Here, this difference vector is used as the curvature evaluation value.
【0088】修正点Pi を修正量Ei だけ移動させる
と、式(305),(306),(307)の前記3つ
の差分ベクトルは以下のようになる。修正後の前記差分
ベクトルをΔWi-1 ’,ΔWi ’,ΔWi+1 ’とする。
ΔWi-1 ’=Qi-1 (Si-1 +Ei )−Ri-1 Si-2
(311)
ΔWi ’=Qi (Si −Ei )−Ri (Si-1 +Ei )
(312)
ΔWi+1 ’=Qi+1 Si+1 −Ri+1 (Si −Ei )
(313)[0088] Correction point PiCorrection amount EiMove only that
And the three aforementioned equations (305), (306), and (307)
The difference vector is as follows. The corrected difference
Vector ΔWi-1', ΔWi', ΔWi+1Let's assume it's '.
ΔWi-1' = Qi-1(Si-1+Ei)-Ri-1Si-2
(311)
ΔWi' = Qi(Si-Ei)-Ri(Si-1+Ei)
(312)
ΔWi+1' = Qi+1Si+1-Ri+1(Si-Ei)
(313)
【0089】ここで式(311),(312),(31
3)の差分ベクトルΔWi-1 ’,ΔWi ’,ΔWi+1 ’
において大きな値を持つ差分ベクトルを小さくする修正
量E i を求めるため、実施の形態1における式(11
3),(114)と同様に、前記差分ベクトルの各軸成
分の2乗の和が最小となる修正量Ei を計算すると、式
(117)に対応した次式のような計算式が得られる。
Ei =−(K1 Pi-2 +K2 Pi-1 +K3 Pi
+K4 Pi+1 +K5 Pi+2 )/K6
(314)
ここで、
K1 =Qi-1 Ri-1
K2 =−Qi-1 2−Qi-1 Ri-1 −Ri 2+Qi Ri
K3 =Qi-1 2+Qi 2+2Qi Ri +Ri 2+Ri+1 2
K4 =−Qi Ri +Qi+1 2−Qi+1 Ri+1 −Ri+1 2
K5 =Qi+1 Ri+1
K6 =Qi-1 2+Qi 2+2Qi Ri +Ri 2+Ri+1 2
(315)
である。[0089Here, equations (311), (312), (31
3) Difference vector ΔWi-1', ΔWi', ΔWi+1'
Correction to reduce the difference vectors that have large values in
Quantity E iTo find the formula in Embodiment 1 (11
3) and (114) similarly, each axis of the difference vector
The correction amount E that minimizes the sum of the squares of the divisions.iWhen you calculate the formula,
The following formula, corresponding to (117), is obtained.
Ei= -(K1Pi-2+K2Pi-1+K3Pi +K4Pi+1+K5Pi+2)/K6
(314)
Here,
K1= Qi-1Ri-1 K2= -Qi-1 2-Qi-1Ri-1-Ri 2+QiRi K3= Qi-1 2+Qi 2+2QiRi+Ri 2+Ri+1 2 K4= -QiRi+Qi+1 2-Qi+1Ri+1-Ri+1 2 K5= Qi+1Ri+1 K6= Qi-1 2+Qi 2+2QiRi+Ri 2+Ri+1 2 (315)
That is the case.
【0090】ステップST50では式(314)により
修正量Ei を計算する処理が行われる。[ 0090 ] In step ST50, the correction amount E i is calculated using formula (314).
【0091】以上のように、この実施の形態3によれ
ば、点列指令間の距離(線分長)に関する量により重み
付けされた線分から求めた差分ベクトルを曲率評価値と
して用い、前記差分ベクトルの大きな値が小さくなるよ
うに点列指令を移動するため、点列指令が等間隔でない
場合においても点列指令を滑らかにする良好な点列指令
の修正を実現することができる。[ 0091 ] As described above, according to this embodiment 3, a difference vector obtained from line segments weighted by a quantity relating to the distance (line segment length) between point sequence commands is used as a curvature evaluation value, and the point sequence commands are moved so that the large value of the difference vector becomes small. Therefore, even when the point sequence commands are not equally spaced, good correction of the point sequence commands that smooths the point sequence commands can be achieved.
【0092】実施の形態4.
前記実施の形態1および2、あるいは実施の形態3で用
いた方法は、本来の軌跡の曲率変化が大きい場合や、点
列間隔が大きい場合には十分な効果を得ることができな
い。そこで、この実施の形態4では、評価範囲内におい
て曲率変化が大きいような場合に対しても、点列指令の
修正動作が有効に働くような点列指令修正部を持つ数値
制御装置について説明する。この方法の考え方は、本来
の軌跡と同じあるいは類似する曲線を用いて、局所的に
本来の曲線に当てはめることにより、誤差成分を取り除
くことである。また、この方式によれば、点列指令が等
間隔でない場合にも点列指令の修正動作が有効に働く。[ 0092 ] Embodiment 4. The methods used in Embodiments 1 and 2, or Embodiment 3, cannot obtain sufficient effect when the curvature change of the original trajectory is large or when the interval between points is large. Therefore, in this Embodiment 4, a numerical control device having a point sequence command correction unit that allows the correction operation of the point sequence command to work effectively even when the curvature change is large within the evaluation range will be described. The idea of this method is to remove the error component by using a curve that is the same as or similar to the original trajectory and locally fitting it to the original curve. Furthermore, with this method, the correction operation of the point sequence command works effectively even when the point sequence commands are not equally spaced.
【0093】図13はこの発明の実施の形態4による数
値制御装置の構成を示すブロック図であり、図におい
て、1cは実施の形態4の数値制御装置、5cは実施の
形態4の修正量計算部、12cは実施の形態4の点列指
令修正部である。図1に示した実施の形態1の数値制御
装置1との違いは、修正量計算部5cの処理の相違のみ
である。[ 0093 ] Figure 13 is a block diagram showing the configuration of a numerical control device according to Embodiment 4 of the present invention, where 1c is the numerical control device of Embodiment 4, 5c is the correction amount calculation unit of Embodiment 4, and 12c is the point sequence command correction unit of Embodiment 4. The only difference from the numerical control device 1 of Embodiment 1 shown in Figure 1 is the difference in the processing of the correction amount calculation unit 5c.
【0094】次に動作について説明する。図14は実施
の形態4の数値制御装置1cの点列指令修正部12cの
動作を示すフローチャートである。点列指令修正部12
cの動作は、図3のステップST3,4,5,6,8の
代わりにステップST60を用い、図3のステップST
9の代わりにステップST61を用いる他は、図3に示
した実施の形態1における動作と同様である。[ 0094 ] Next, the operation will be described. Figure 14 is a flowchart showing the operation of the point sequence command correction unit 12c of the numerical control device 1c of Embodiment 4. Point sequence command correction unit 12
The operation of c uses step ST60 instead of steps ST3, 4, 5, 6, and 8 in Figure 3, and step ST
The operation is the same as in Embodiment 1 shown in Figure 3, except that step ST61 is used instead of step 9.
【0095】以下、ステップST60およびステップS
T61の処理について述べる。その他の処理は図3処理
と同様であり、説明を省略する。[ 0095 ] Steps ST60 and S
The process of T61 will be described below. Other processes are the same as those shown in Figure 3, and their explanation will be omitted.
【0096】まず、ステップST60の処理について説
明する。ステップST60においては、点列の評価範囲
を設定するが、実施の形態1と異なり、点の個数は固定
ではなく、前方nf点、後方nb点(計1+nf+nb
点)である。すなわち、この実施の形態では、選択する
評価範囲の点の数は必ずしも固定である必要がなく、調
節可能である。もちろん、簡単のため、実施の形態1の
ようにnf=nb=2、あるいは実施の形態3のように
nf=nb=3に固定するのは任意である。[ 0096 ] First, the process of step ST60 will be explained. In step ST60, the evaluation range of the point sequence is set, but unlike in Embodiment 1, the number of points is not fixed, but rather forward nf points and backward nb points (total 1 + nf + nb
(points). In other words, in this embodiment, the number of points in the selected evaluation range does not necessarily have to be fixed and is adjustable. Of course, for simplicity, it is optional to fix nf = nb = 2 as in Embodiment 1, or nf = nb = 3 as in Embodiment 3.
【0097】一般に、点の数が増えれば、より広い範囲
に曲線を当てはめるため、軌跡をより滑らかにする効果
が得られる。ただし、評価範囲内の点の数は、曲線の次
数+2以上でないと、軌跡を滑らかにする効果がない。
例えば、曲線の次数を2とすると、点の数は4以上であ
る必要がある。[ 0097 ] Generally, increasing the number of points allows the curve to be fitted to a wider area, resulting in a smoother trajectory. However, the number of points within the evaluation range must be at least the degree of the curve plus two to achieve the effect of smoothing the trajectory.
For example, if the degree of the curve is 2, then the number of points must be 4 or more.
【0098】次に、ステップST61の処理について説
明する。ステップST61においては、評価範囲内に、
近似的な曲線を当てはめる。その曲線をP(t)とおけ
ば、修正量Ei は、
Ei =P(ti )−Pi (401)
で与えられる。ここで、tは曲線パラメータ、ti はP
i に対応する曲線パラメータである。[ 0098 ] Next, the process of step ST61 will be described. In step ST61, within the evaluation range,
We fit an approximate curve. If we let this curve be P(t), the correction amount E i is given by E i = P(t i ) - P i (401). Here, t is the curve parameter and t i is P
This is the curve parameter corresponding to i .
【0099】ここで、曲線は、本来の軌跡と同じ種類の
曲線を用いるのが最も適切である。例えば、設計者がC
ADによりデザインする際に4次の曲線を用いていれ
ば、4次の曲線をあてはめることが最適である。しか
し、仮に設計者が高次の曲線を用いて設計していても、
現実のデザインとしては、局所的に見れば、低次の曲線
に十分精度よく近似でき、また、モータを制御する観点
からも、速度(曲線の1次微分に対応)や加速度(2次
微分に対応)が連続であれば十分である。また、曲線が
高次になればなるほど、計算量が多くなるという欠点も
ある。そのため、必要以上に高次の曲線を用いることは
必ずしも適切ではない。すなわち、実際的には、2次や
3次といった低次のスプライン曲線でほとんど十分であ
る。逆に、1次の曲線(すなわち直線)を用いた場合に
は、軌跡を滑らかにする効果は期待できず、むしろ軌跡
を必要以上に変形させてしまい、適当ではない。以下で
は、2次のスプライン曲線を用いた場合について述べ
る。2次のスプライン曲線は以下の式で与えられる。
P(t)={X(t)Y(t)Z(t)} (402)
ここで、X(t),Y(t),Z(t)は、それぞれ以
下で与えられる。
X(t)=Cx2 ・t2 +Cx1 ・t+Cx0
(403)
Y(t)=Cy2 ・t2 +Cy1 ・t+Cy0
(404)
Z(t)=Cz2 ・t2 +Cz1 ・t+Cz0
(405)[0099Here, the curve is of the same type as the original trajectory.
Using curves is the most appropriate approach. For example, if the designer is C
When designing using AD, a fourth-degree curve is used.
Therefore, fitting a quartic curve is optimal. However
And even if the designer uses higher-order curves in their design,
In terms of actual design, locally, it is a low-order curve.
It can approximate with sufficient accuracy, and also from the perspective of controlling the motor.
From this, we can also see velocity (corresponding to the first derivative of the curve) and acceleration (second derivative).
It is sufficient that the derivative is continuous. Also, the curve is
A drawback is that the higher the order of complexity, the more computational resources are required.
Yes, it is. Therefore, using higher-order curves than necessary is not advisable.
It is not necessarily appropriate. In other words, in practice, secondary or
Low-order spline curves, such as cubic ones, are usually sufficient.
Conversely, when using a linear curve (i.e., a straight line)
This cannot be expected to have the effect of smoothing the trajectory; rather, it can smooth the trajectory
It has been distorted more than necessary, making it inappropriate.
This section describes the case using a quadratic spline curve.
The quadratic spline curve is given by the following equation:
P(t) = {X(t)Y(t)Z(t)} (402)
Here, X(t), Y(t), and Z(t) are, respectively...
It is given below.
X(t) = Cx2・t2+Cx1t + Cx0
(403)
Y(t)=Cy2・t2+Cy1・t+Cy0
(404)
Z(t)=Cz2・t2+Cz1t + Cz0 (405)
【0100】図15は2次スプライン曲線のあてはめの
一例を示す模式図である。図においては、nb=nf=
2であり、評価範囲であるPi-2 ,Pi-1 ,Pi ,P
i+1 ,Pi+2 の計5点に対し、近似的な2次スプライン
曲線を当てはめている。修正前のPi が2次スプライン
曲線上の対応する点に近づくように修正量Ei が求めら
れる。[ 0100 ] Figure 15 is a schematic diagram showing an example of fitting a quadratic spline curve. In the figure, nb = nf =
The value is 2, and the evaluation range is P i-2 , P i-1 , P i , P
An approximate quadratic spline curve is fitted to a total of five points i+1 , P i+2 , and so on. The correction amount E i is determined so that the original P i approaches the corresponding point on the quadratic spline curve.
【0101】式(403),(404),(405)に
おいて、Cx2 ,Cx1 ,Cx0 などの係数は、最小2
乗法を用いて求めることができる。すなわち、Cx2 ,
Cx 1 ,Cx0 については、
{Cx2 、Cx1 、Cx0 }’
=[inv(A’×A)]×(A’×b)
(406)
(上式において、’は、行列の転置を意味する)とな
る。ここで、A,bは、次のように与えられる。
A=[fi-nb fi-nb+1 … fi … fi+nf-1 fi+nf]’
(407)
fi ={ti 2 ti 1}’ (408)
b={Pxi-nb Pxi-nb+1 … Pxi …
… Pxi+nf-1 Pxi+nf}’ (409)
ここで、Pxi はインデックスiの点のx座標値であ
る。[0101In equations (403), (404), and (405):
In Cx2, Cx1, Cx0The coefficients such as these are at least 2
It can be found using multiplication. That is, Cx2,
Cx 1, Cx0Regarding this,
{Cx2, Cx1, Cx0}'
= [inv(A'×A)]×(A'×b)
(406)
(In the above equation, ' means the transpose of the matrix)
Here, A and b are given as follows:
A = [fi-nbfi-nb+1... fi... fi+nf-1fi+nf]’
(407)
fi= {ti 2ti 1}’ (408)
b={Pxi-nbPxi-nb+1... Pxi…
… Pxi+nf-1Pxi+nf}' (409)
Here, Pxiis the x-coordinate value of the point at index i.
ru.
【0102】Y,Z軸成分に関しても、同様に求められ
る。図16は、途中で曲率が変化するような軌跡に対し
て、この方法を適用した例を示すグラフ図である。修正
前の点(×印で表示)においては、図中左側では曲率が
大きく、図中右側では曲率が小さい。その境界あたり
(図中中央付近)で曲率が変化しており、その箇所に段
差状の誤差成分が観察できる。この方法を適用すること
により、修正後の点(○印)は滑らかな軌跡になってい
ることがわかる。以上では、2次のスプライン曲線を用
いた場合について述べたが、3次以上の曲線、有理多項
式で表される曲線、円弧や楕円などの曲線を用いても、
同様に適用することができる。[ 0102 ] The Y and Z axis components can be calculated in the same way. Figure 16 is a graph showing an example of applying this method to a trajectory where the curvature changes along the way. At the point before correction (indicated by an ×), the curvature is large on the left side of the figure and small on the right side. The curvature changes around the boundary (near the center of the figure), and a step-like error component can be observed at that point. By applying this method, it can be seen that the point after correction (indicated by a ○) has a smooth trajectory. The above describes the case using a quadratic spline curve, but even when using curves of degree three or higher, curves expressed by rational polynomials, or curves such as circular arcs and ellipses,
It can be applied similarly.
【0103】以上のように、この実施の形態4によれ
ば、評価範囲内において曲率の変化や点列指令間の間隔
の変化が大きいような点列指令に対しても、点列指令の
修正動作を有効に働かせることができる。[ 0103 ] As described above, according to this embodiment 4, even for point sequence commands where there are large changes in curvature or intervals between point sequence commands within the evaluation range, the correction operation of the point sequence command can be effectively implemented.
【0104】実施の形態5.
図17はこの発明の実施の形態5による数値制御装置の
構成を示すブロック図であり、図において、1dはこの
実施の形態5の数値制御装置、7dは実施の形態5の点
列移動部である。点列移動部7dは、点列指令入力部3
の点列指令の位置を修正量制限部6の出力に応じて移動
させるとともに、この移動させた点列指令を評価範囲設
定部4に出力する。12dは実施の形態5の点列指令修
正部である。図1に示した実施の形態1の数値制御装置
1との相違は、点列移動部7dにおける移動結果を評価
範囲設定部4における次の評価範囲設定に用いることで
ある。[ 0104 ] Embodiment 5. Figure 17 is a block diagram showing the configuration of a numerical control device according to Embodiment 5 of the present invention, where 1d is the numerical control device of Embodiment 5, and 7d is the point sequence movement unit of Embodiment 5. The point sequence movement unit 7d is the point sequence command input unit 3
The position of the point sequence command is moved according to the output of the correction amount limiting unit 6, and the moved point sequence command is output to the evaluation range setting unit 4. 12d is the point sequence command correction unit of Embodiment 5. The difference from the numerical control device 1 of Embodiment 1 shown in Figure 1 is that the movement result in the point sequence movement unit 7d is used for setting the next evaluation range in the evaluation range setting unit 4.
【0105】次に動作について説明する。図18はこの
実施の形態5の数値制御装置1dの点列指令修正部12
dの動作を示すフローチャートである。図18のステッ
プST1〜ステップST26の処理は図3のものと同様
の処理であり、説明を省略する。[ 0105 ] Next, the operation will be described. Figure 18 shows the point sequence command correction unit 12 of the numerical control device 1d of this embodiment 5.
This is a flowchart of the operation of d. The processes of steps ST1 to ST26 in Figure 18 are the same as those in Figure 3, so the explanation is omitted.
【0106】図18には、図3のステップST22,2
4,25,27の処理がなく、ステップST26の処理
がステップST18とステップST23の処理の間で行
われる点が異なる。図18のステップST26で修正が
行われた点列指令Pi を用いて、前記Pi の次の点Pi+
1 の修正量の計算(ステップST3〜ステップST2
1)が繰り返し行われる。[ 0106 ] Figure 18 shows steps ST22, 2 of Figure 3.
The difference is that steps 4, 25, and 27 are omitted, and the process in step ST26 is performed between the processes in step ST18 and step ST23. Using the point sequence command Pi modified in step ST26 of Figure 18, the next point Pi+
Calculation of the correction amount (Steps ST3 to ST2)
Step 1) is repeated.
【0107】以上のように、この実施の形態5によれ
ば、修正された点列指令を用いて次の点列の修正計算を
行うため、より滑らかな点列指令の修正を実現すること
ができる。なお、上記においては、実施の形態1の方法
を繰り返す場合について説明したが、実施の形態2,実
施の形態3,あるいは実施の形態4の方法についても、
ブロック図およびフローチャートに同様の変更を施すこ
とにより、繰り返しによる性能の向上を図ることが可能
である。[ 0107 ] As described above, according to this embodiment 5, since the correction calculation of the next point sequence is performed using the corrected point sequence command, a smoother correction of the point sequence command can be achieved. In addition, although the above has described the case in which the method of embodiment 1 is repeated, the methods of embodiment 2, embodiment 3, or embodiment 4 can also be described.
By making similar changes to block diagrams and flowcharts, it is possible to improve performance through iteration.
【0108】実施の形態6.
いろいろな種類の軌跡が組み合わされた場合や、誤差成
分が特定の箇所にのみ存在する場合に、より正確に誤差
だけを取り除くためには、軌跡の種類や誤差の有無など
の点列の性状に応じて、評価範囲や修正量計算方法を可
変にできる効果がある。そこで、この実施の形態6にお
いては、評価範囲や修正量計算方法を可変にできるよう
な点列指令修正部を持つ数値制御装置について説明す
る。[ 0108 ] Embodiment 6. In cases where various types of trajectories are combined, or when error components exist only at specific locations, it is effective to be able to vary the evaluation range and correction amount calculation method according to the characteristics of the point sequence, such as the type of trajectory and the presence or absence of errors, in order to remove only the error more accurately. Therefore, in this Embodiment 6, a numerical control device having a point sequence command correction unit that can vary the evaluation range and correction amount calculation method will be described.
【0109】図19はこの発明の実施の形態6による数
値制御装置の構成を示すブロック図であり、図におい
て、1eは実施の形態6の数値制御装置、12eは実施
の形態6の点列指令修正部、13は入力された点列指令
の軌跡の正常を判断する軌跡判断部である。図1に示し
た実施の形態1の数値制御装置1との相違は、軌跡判断
部13を含むことである。[ 0109 ] Figure 19 is a block diagram showing the configuration of a numerical control device according to Embodiment 6 of the present invention. In the figure, 1e is the numerical control device of Embodiment 6, 12e is the point sequence command correction unit of Embodiment 6, and 13 is the trajectory determination unit that determines whether the trajectory of the input point sequence command is normal. The difference from the numerical control device 1 of Embodiment 1 shown in Figure 1 is the inclusion of the trajectory determination unit 13.
【0110】次に動作について説明する。図20は実施
の形態6の数値制御装置1eの前記点列指令修正部12
eの軌跡判断部13の動作を示すフローチャートであ
る。ステップST80では、誤差成分があるかどうかを
チェックする。誤差成分があるかどうかは、実施の形態
1で述べた第1階差分ベクトルにより判定する。[ 0110 ] Next, the operation will be described. Figure 20 shows the point sequence command correction unit 12 of the numerical control device 1e of Embodiment 6.
This is a flowchart showing the operation of the trajectory determination unit 13 of e. In step ST80, it is checked whether there is an error component. Whether there is an error component is determined by the first-order difference vector described in Embodiment 1.
【0111】誤差成分により、段差,突起,ガタガタな
どが生じている箇所では,いずれも隣接する第1階差分
ベクトルの方向が逆に向いている.そこで、加速度ベク
トルの方向が逆を向いている箇所およびその周辺を誤差
成分がある箇所とする。誤差成分がない場合には、滑ら
かにする必要がないため、評価範囲に含めない。誤差成
分がある場合には、ステップST81に処理を進める。[ 0111 ] In areas where steps, protrusions, or jaggedness occur due to error components, the direction of the adjacent first-order difference vectors is reversed. Therefore, areas where the direction of the acceleration vector is reversed and their surroundings are considered to be areas with error components. If there are no error components, there is no need to smooth them, so they are not included in the evaluation range. If there are error components, the process proceeds to step ST81.
【0112】ステップST81では、点列の間隔をチェ
ックする。間隔の判定は、適当な基準値を設定してお
き、その値と比較することによる。点列の間隔が長い場
合には、連続した曲線の一部とみなすことは適当ではな
いため、評価範囲に含めない。間隔が短い場合には、ス
テップST82に処理を進める。[ 0112 ] In step ST81, the interval between points is checked. The interval is determined by setting an appropriate reference value and comparing it to that value. If the interval between points is long, it is not appropriate to consider it as part of a continuous curve, so it is not included in the evaluation range. If the interval is short, the process proceeds to step ST82.
【0113】ステップST82では、コーナーかどうか
をチェックする。コーナーかどうかは、実施の形態1で
述べた第1階差分べクトルにより判定する。第1階差分
ベクトルが大きな値を示す点が単独であり、かつ、その
周辺の第1階差分ベクトルが小さい点を、コーナーとす
る。コーナーであれば、この点は、滑らかにするのでは
なく、厳密にコーナーを通過するべきなので、評価範囲
に含めない。コーナーでなければ、ステップST83に
処理を進め、評価範囲に含める。[ 0113 ] In step ST82, it is checked whether it is a corner. Whether it is a corner is determined by the first-order difference vector described in Embodiment 1. A corner is defined as a single point where the first-order difference vector shows a large value, and the first-order difference vectors around it are small. If it is a corner, this point should not be smoothed, but should strictly pass through the corner, so it is not included in the evaluation range. If it is not a corner, the process proceeds to step ST83 and it is included in the evaluation range.
【0114】評価範囲設定部4は、上記により判断され
た結果が「評価範囲に含める」であれば、入力された点
を評価範囲に含め、逆に、判断された結果が「評価範囲
に含めない」であれば、入力された点を評価範囲に含め
ない。[ 0114 ] The evaluation range setting unit 4 includes the input points in the evaluation range if the result determined above is "include in evaluation range", and conversely, if the result determined is "do not include in evaluation range", it does not include the input points in the evaluation range.
【0115】さらに、引き続いて、ステップST85に
処理を進める。ステップST85では、曲率が一定の区
間かどうかをチェックする。曲率は、実施の形態1で述
べた第1階差分ベクトルで代用する。曲率が一定でない
場合は、ステップST89に処理を進め、曲線をあては
めることによる方法を選択する。[ 0115 ] Next, the process proceeds to step ST85. In step ST85, it is checked whether the curvature is constant over the interval. The curvature is replaced by the first-order difference vector described in Embodiment 1. If the curvature is not constant, the process proceeds to step ST89, and the method of fitting the curve is selected.
【0116】曲率が一定であれば、ステップST86に
処理を進める。ステップST86では、評価範囲内の点
列の間隔が均一かどうかを判断し、均一であれば、ステ
ップST87に処理を進め、1次差分による方法または
2次差分による方法を選択し、均一でなければステップ
ST88に処理を進め、重み付き1次差分による方法ま
たは重み付き2次差分による方法を選択する。[ 0116 ] If the curvature is constant, the process proceeds to step ST86. In step ST86, it is determined whether the spacing of the sequence of points within the evaluation range is uniform. If it is uniform, the process proceeds to step ST87 to select either the first-order difference method or the second-order difference method. If it is not uniform, the process proceeds to step ST88 to select either the weighted first-order difference method or the weighted second-order difference method.
【0117】修正量計算部5は、ここで選択した方法に
より、修正量を計算する。なお、上記において、ステッ
プST80,82,85においては、第1階差分ベクト
ルを用いて軌跡の性状を判断したが、実施の形態3で述
べた線分長さで重みづけされた第1階差分ベクトル(Δ
Wi )を用いてもよい。[ 0117 ] The correction amount calculation unit 5 calculates the correction amount using the method selected here. Note that in steps ST80, 82, and 85 above, the characteristics of the trajectory were determined using the first-order difference vector, but the first-order difference vector (Δ) weighted by the line segment length as described in Embodiment 3
You may also use Wi .
【0118】図21は、評価範囲や修正量計算方法を固
定にした場合の点列指令の修正結果を示す模式図であ
る。図中、×印は修正前の点、*印は誤差を含む修正前
の点、○印は修正後の点、破線は修正前の点を結んだ
線、実線は修正後の点を結んだ線を示す。この図におい
ては、評価範囲や修正量計算方法を固定にしているた
め、次のような問題点が生じている。
(1)誤差のないコーナーの箇所も滑らかにしてしま
い、内回りする(図中1の箇所)。
(2)誤差のない曲線の箇所も滑らかにしてしまい、わ
ずかだが内回りする(図中2の箇所。図ではほとんどわ
からないが、点列間隔の数%程度内回りしている)。
(3)点列間隔の長い箇所の周辺では、形状が大きく崩
れる場合がある(図中3の箇所)。[ 0118 ] Figure 21 is a schematic diagram showing the correction results of a point sequence command when the evaluation range and correction amount calculation method are fixed. In the figure, × marks indicate points before correction, * marks indicate points before correction including errors, ○ marks indicate points after correction, dashed lines indicate lines connecting points before correction, and solid lines indicate lines connecting points after correction. In this figure, because the evaluation range and correction amount calculation method are fixed, the following problems occur: (1) Corners without errors are also smoothed, causing an inward curve (location 1 in the figure). (2) Curves without errors are also smoothed, causing a slight inward curve (location 2 in the figure. It is hardly noticeable in the figure, but there is an inward curve of a few percent of the point sequence interval). (3) In the vicinity of areas with long point sequence intervals, the shape may be significantly distorted (location 3 in the figure).
【0119】図22はこの実施の形態6における方法を
適用した場合の点列指令の修正結果を示す模式図であ
る。上記の方法を用いることにより、上記問題点がなく
なり、必要な個所のみを的確に滑らかにすることが可能
となっている。[ 0119 ] Figure 22 is a schematic diagram showing the result of modifying the point sequence command when the method in this embodiment 6 is applied. By using the above method, the above problems are eliminated, and it becomes possible to precisely smooth only the necessary parts.
【0120】以上のように、この実施の形態6によれ
ば、いろいろな種類の軌跡が組み合わされている場合
や、誤差成分が特定の箇所にのみ存在するような場合に
も、的確に誤差だけを取り除くことが可能となる。[ 0120 ] As described above, according to this embodiment 6, even when various types of trajectories are combined or when error components exist only at specific locations, it is possible to accurately remove only the error.
【0121】[ 0121 ]
【発明の効果】以上のように、この発明によれば、修正
量計算部が、点列指令を通過する曲線の曲率に相当する
曲率評価値を評価範囲内の複数箇所で計算するととも
に、前記複数の曲率評価値の中で値の大きなものを小さ
くするように前記点列指令の修正量を計算するように構
成したので、点列指令の修正において点列指令全体を滑
らかにする有効な修正を行うことができ、工作機械によ
る加工面を滑らかにし、工作機械に不必要な加速度が加
わって工作機械を損傷するような事態を有効に防止する
ことができる効果がある。[Effects of the Invention] As described above, according to this invention, the correction amount calculation unit is configured to calculate curvature evaluation values corresponding to the curvature of the curve passing through the point sequence command at multiple locations within the evaluation range, and to calculate the correction amount of the point sequence command so as to reduce the value of the larger of the multiple curvature evaluation values. Therefore, in correcting the point sequence command, an effective correction can be made to smooth the entire point sequence command, which has the effect of smoothing the machined surface by the machine tool and effectively preventing situations in which unnecessary acceleration is applied to the machine tool and damages the machine tool.
【0122】この発明によれば、修正量計算部が、曲率
評価値として、連続する点列指令を結ぶ線分ベクトルの
1次または高次の変化量を示す差分ベクトルを用いるよ
うに構成したので、線分ベクトルの変化量を示す差分ベ
クトルの単純な計算を行うことにより、差分ベクトルの
階数に応じた広い範囲の点列指令を用いて点列指令の修
正量を計算することができ、点列指令全体をより滑らか
にする有効な修正を行うことができる効果がある。ま
た、円弧のような滑らかな軌跡を表現している点列指令
の場合にも、従来の方法におけるように軌跡を劣化させ
ることなく滑らかな点列指令を得ることができる効果が
ある。[ 0122 ] According to this invention, the correction amount calculation unit is configured to use a difference vector that shows the amount of change of the first or higher order of the line segment vector connecting consecutive point sequence commands as the curvature evaluation value. Therefore, by performing a simple calculation of the difference vector that shows the amount of change of the line segment vector, the correction amount of the point sequence command can be calculated using a wide range of point sequence commands corresponding to the order of the difference vector, and an effective correction can be made to make the entire point sequence command smoother. Furthermore, even in the case of a point sequence command that represents a smooth trajectory such as a circular arc, it is possible to obtain a smooth point sequence command without degrading the trajectory as in conventional methods.
【0123】この発明によれば、修正量計算部が、複数
箇所における差分ベクトルの各軸成分の2乗和が最小と
なるように、修正量の前記各軸成分を計算するように構
成したので、複数箇所における差分ベクトルの各軸成分
の2乗和を最小とするように修正量の各軸成分を決定す
ることにより複数の曲率評価値の中で値の大きなものを
小さくすることができ、これにより、請求項2記載の発
明の効果を得ることができる効果がある。[ 0123 ] According to this invention, the correction amount calculation unit is configured to calculate each axis component of the correction amount such that the sum of the squares of each axis component of the difference vector at multiple locations is minimized. By determining each axis component of the correction amount in such a way that the sum of the squares of each axis component of the difference vector at multiple locations is minimized, it is possible to reduce the value of the larger curvature evaluation value among the multiple curvature evaluation values, thereby achieving the effect of the invention described in claim 2.
【0124】この発明によれば、修正量計算部における
修正量を許容誤差値以下に制限する修正量制限部を備え
るように構成したので、修正量計算部における点列指令
の修正量が許容誤差以上の大きな値となって工作機械に
よる加工不良や工作機械の損傷が発生する事態を防止す
ることができる効果がある。[ 0124 ] According to this invention, the correction amount calculation unit is configured to include a correction amount limiting unit that limits the correction amount to less than or equal to the permissible error value. This has the effect of preventing situations in which the correction amount of the point sequence command in the correction amount calculation unit becomes a value larger than the permissible error, resulting in machining defects or damage to the machine tool.
【0125】この発明によれば、修正量計算部が、差分
ベクトルとして、線分ベクトルの長さに関する量により
重み付けされた線分ベクトルを用いて計算された差分ベ
クトルを用いるように構成したので、点列指令が等間隔
でない場合においても点列指令を滑らかにする良好な点
列指令の修正を実現することができる効果がある。[ 0125 ] According to this invention, the correction amount calculation unit is configured to use a difference vector calculated using a line segment vector weighted by a quantity relating to the length of the line segment vector as the difference vector. Therefore, even when the point sequence command is not equally spaced, it is possible to achieve good correction of the point sequence command, which smooths the point sequence command.
【0126】この発明によれば、修正量計算部が、評価
範囲内の点列指令に2次以上の曲線をあてはめ、その曲
線に近づくように前記点列指令の修正量を計算するよう
に構成したので、評価範囲内において曲率の変化や点列
指令間の間隔の変化が大きいような点列指令に対しても
軌跡を劣化させることなく滑らかな点列指令が得られ、
点列指令の修正を有効に行うことができる効果がある。[ 0126 ] According to this invention, the correction amount calculation unit is configured to apply a curve of order two or higher to the point sequence command within the evaluation range and calculate the correction amount of the point sequence command so that it approaches that curve. Therefore, even for point sequence commands where the change in curvature or the change in the interval between point sequence commands is large within the evaluation range, a smooth point sequence command can be obtained without degrading the trajectory.
This has the effect of effectively allowing for the modification of point sequence commands.
【0127】この発明によれば、修正量計算部が、評価
範囲内の点列指令に2次曲線をあてはめるように構成し
たので、少ない計算量により本来の曲線に良好に倣った
点列指令への修正を行うことができる効果がある。[ 0127 ] According to this invention, the correction amount calculation unit is configured to fit a quadratic curve to the point sequence command within the evaluation range, which has the effect of being able to correct the point sequence command to closely follow the original curve with less computation.
【0128】この発明によれば、評価範囲内の点列指令
に2次曲線をあてはめた修正量計算部における修正量を
許容誤差値以下に制限する修正量制限部を備えるように
構成したので、修正量計算部における点列指令の修正量
が許容誤差以上の大きな値となって工作機械による加工
不良や工作機械の損傷が発生する事態を防止することが
できる効果がある。[ 0128 ] According to this invention , a sequence command of points within the evaluation range
The system is configured to include a correction amount limiting unit that limits the correction amount in the correction amount calculation unit, which applies a quadratic curve to the correction amount calculation unit, to below the permissible error value. This has the effect of preventing situations where the correction amount of the point sequence command in the correction amount calculation unit becomes a value larger than the permissible error, resulting in machining defects or damage to the machine tool.
【0129】この発明によれば、修正量計算部が、修正
された点列指令を以降の修正点に対する修正量の計算に
用いるように構成したので、より滑らかな点列指令の修
正を実現することができる効果がある。[ 0129 ] According to this invention, the correction amount calculation unit is configured to use the corrected point sequence command for calculating the correction amount for subsequent correction points, which has the effect of enabling smoother correction of the point sequence command.
【0130】この発明によれば、入力された点列指令か
らなる軌跡の性状を判断する軌跡判断部を備え、判断さ
れた前記軌跡の性状に応じて、評価範囲設定部において
設定する前記評価範囲、および/または、修正量計算部
における前記修正量計算方法を適宜変更するように構成
したので、いろいろな種類の軌跡が組み合わされている
場合や、誤差成分が特定の箇所にのみ存在するような場
合にも、的確に誤差だけを取り除き、良好な点列指令の
修正を行うことができる効果がある。[ 0130 ] According to this invention, the system is equipped with a trajectory determination unit that determines the characteristics of a trajectory consisting of input point sequence commands, and is configured to appropriately change the evaluation range set in the evaluation range setting unit and/or the correction amount calculation method in the correction amount calculation unit according to the determined characteristics of the trajectory. Therefore, even when various types of trajectories are combined or when error components exist only at specific locations, the system has the effect of accurately removing only the errors and making good corrections to the point sequence commands.
【0131】この発明によれば、第3のステップが、点
列指令を通過する曲線の曲率に相当する曲率評価値を評
価範囲内の複数箇所で計算するとともに、前記複数の曲
率評価値の中で値の大きなものを小さくするように前記
点列指令の修正量を計算するように構成したので、点列
指令の修正において点列指令全体を滑らかにする有効な
修正を行うことができ、工作機械による加工面を滑らか
にし、工作機械に不必要な加速度が加わって工作機械を
損傷するような事態を有効に防止することができる効果
がある。 [ 0131 ] According to this invention, the third step is to point
The curvature evaluation value corresponds to the curvature of the curve passing through the column command.
The calculation is performed at multiple points within the value range, and the aforementioned multiple curves
The above describes how to reduce the value of the rate evaluation that is large.
Since it is configured to calculate the correction amount for the sequence command, the sequence
Effective ways to smooth the entire sequence of points in the command modification.
Corrections can be made, and the machined surface can be smoothed by the machine tool.
This applies unnecessary acceleration to the machine tool, causing it to malfunction.
This has the effect of effectively preventing situations that could cause damage.
There is.
【0132】この発明によれば、第3のステップが、曲
率評価値として、連続する点列指令を結ぶ線分ベクトル
の1次または高次の変化量を示す差分ベクトルを用いる
ように構成したので、線分ベクトルの変化量を示す差分
ベクトルの単純な計算を行うことにより、差分ベクトル
の階数に応じた広い範囲の点列指令を用いて点列指令の
修正量を計算することができ、点列指令全体をより滑ら
かにする有効な修正を行うことができる効果がある。ま
た、円弧のような滑らかな軌跡を表現している点列指令
の場合にも、従来の方法におけるように軌跡を劣化させ
ることなく滑らかな点列指令を得ることができる効果が
ある。 [ 0132 ] According to this invention, the third step is to curve
As a rate evaluation value, a line segment vector connecting consecutive point sequences is used.
A difference vector showing the first-order or higher-order change is used.
Since it was constructed in this way, the difference shows the amount of change in the line segment vector.
By performing a simple calculation of the vector, the difference vector
Using a wide range of point sequence commands corresponding to the number of levels, the point sequence commands
The amount of correction can be calculated, making the entire sequence command smoother.
It has the effect of being able to make effective corrections.
Furthermore, a sequence of points command that represents a smooth trajectory like an arc.
In this case as well, the trajectory is degraded as in the conventional method.
The effect is that a smooth sequence of points can be obtained without any effort.
be.
【0133】この発明によれば、第3のステップが、複
数箇所における差分ベクトルの各軸成分の2乗和が最小
となるように、修正量の前記各軸成分を計算するように
構成したので、複数箇所における差分ベクトルの各軸成
分の2乗和を最小とするように修正量の各軸成分を決定
することにより複数の曲率評価値の中で値の大きなもの
を小さくすることができ、これにより、請求項12記載
の発明の効果を得ることができる効果がある。 [ 0133 ] According to this invention, the third step is multiple
The sum of the squares of the axis components of the difference vector at several points is minimized.
The calculation of the respective axis components of the correction amount is performed in such a manner.
Since it was constructed, the axis of each difference vector at multiple locations
Determine the axis components of the correction amount so as to minimize the sum of the squares of the fractions.
By doing so, the larger value among multiple curvature evaluation values is selected.
This makes it possible to reduce the size, thereby fulfilling the description in claim 12.
It has the effect of being able to obtain the effects of the invention.
【0134】この発明によれば、第3のステップにおけ
る修正量を許容誤差値以下に制限する第5のステップを
有するように構成したので、第3のステップにおける点
列指令の修正量が許容誤差以上の大きな値となって工作
機械による加工不良や工作機械の損傷が発生する事態を
防止することができる効果がある。 [ 0134 ] According to this invention, in the third step
A fifth step is to limit the amount of correction to below the tolerance value.
Since it is configured to have, the point in the third step
The correction amount for the column command is a value larger than the tolerance, and the work is being carried out.
This refers to situations where machining defects or damage to machine tools occur.
It has the effect of preventing this.
【0135】この発明によれば、第3のステップが、差
分ベクトルとして、線分ベクトルの長さに関する量によ
り重み付けされた線分ベクトルを用いて計算された差分
ベクトルを用いるように構成したので、点列指令が等間
隔でない場合においても点列指令を滑らかにする良好な
点列指令の修正を実現することができる効果がある。 [ 0135 ] According to this invention, the third step is to differentiate
As a vector segment, it is a quantity related to the length of the line segment vector.
Difference calculated using weighted line segment vectors
Since it is configured to use vectors, the point sequence command is equal in spacing
Good for smoothing point sequence commands even when there is no spacing
This has the effect of enabling modification of point sequence commands.
【0136】この発明によれば、第3のステップが、評
価範囲内の点列指令に2次以上の曲線をあてはめ、その
曲線に近づくように前記点列指令の修正量を計算するよ
うに構成したので、評価範囲内において曲率の変化や点
列指令間の間隔の変化が大きいような点列指令に対して
も軌跡を劣化させることなく滑らかな点列指令が得ら
れ、点列指令の修正を有効に行うことができる効果があ
る。 [ 0136 ] According to this invention, the third step is to evaluate
A curve of degree two or higher is applied to a sequence of points within a range of values, and
We will calculate the amount of correction for the aforementioned point sequence command so that it approaches the curve.
Because it was constructed in such a way, changes in curvature and points within the evaluation range
For point sequence commands where the interval between sequence commands changes significantly
A smooth sequence of points can be obtained without degrading the trajectory.
This has the effect of effectively allowing for the modification of point sequence commands.
ru.
【0137】この発明によれば、第3のステップが、評
価範囲内の点列指令に2次曲線をあてはめるように構成
したので、少ない計算量により本来の曲線に良好に倣っ
た点列指令への修正を行うことができる効果がある。 [ 0137 ] According to this invention, the third step is to evaluate
The system is configured to fit a quadratic curve to a sequence of points within a specified range.
Therefore, it closely follows the original curve with less computation.
This has the effect of allowing modifications to the sequence of points command.
【0138】この発明によれば、評価範囲内の点列指令
に2次曲線をあてはめた第3のステップにおける修正量
を許容誤差値以下に制限する第5のステップを有するよ
うに構成したので、第3のステップにおける点列指令の
修正量が許容誤差以上の大きな値となって工作機械によ
る加工不良や工作機械の損傷が発生する事態を防止する
ことができる効果がある。 [ 0138 ] According to this invention, a sequence command of points within the evaluation range
The amount of correction in the third step, when a quadratic curve is fitted to it.
It has a fifth step of limiting it to below the permissible error value.
Since it was configured in this way, the point sequence command in the third step
The correction amount becomes a value larger than the tolerance, causing the machine tool to...
This prevents situations that result in processing defects or damage to machine tools.
It has the effect of being able to do so.
【0139】この発明によれば、第3のステップが、修
正された点列指令を以降の修正点に対する修正量の計算
に用いるように構成したので、より滑らかな点列指令の
修正を実現することができる効果がある。 [ 0139 ] According to this invention, the third step is to repair
The corrected point sequence command is used to calculate the correction amount for subsequent correction points.
It is configured to be used for smoother point sequence commands.
It has the effect of enabling correction.
【0140】この発明によれば、入力された点列指令か
らなる軌跡の性状を判断する第6のステップを有し、判
断された前記軌跡の性状に応じて、第2のステップにお
いて設定する前記評価範囲、および/または、第3のス
テップにおける前記修正量計算方法を適宜変更するよう
に構成したので、いろいろな種類の軌跡が組み合わされ
ている場合や、誤差成分が特定の箇所にのみ存在するよ
うな場合にも、的確に誤差だけを取り除き、良好な点列
指令の修正を行うことができる効果がある。 [ 0140 ] According to this invention, the input dot sequence command
It has a sixth step of determining the characteristics of the trajectory,
Depending on the characteristics of the trajectory that has been cut, in the second step
The evaluation range set by and/or the third
The method for calculating the correction amount in step will be changed as appropriate.
Because it was structured in this way, various types of trajectories are combined.
In some cases, the error component exists only in specific locations.
Even in such cases, it accurately removes only the errors and produces a good sequence of points.
It has the effect of allowing for the modification of instructions.
【図面の簡単な説明】[Brief explanation of the drawing]
【図1】 この発明の実施の形態1による数値制御装置
の構成を示すブロック図である。[Figure 1] This is a block diagram showing the configuration of a numerical control device according to Embodiment 1 of the present invention.
【図2】 点列指令の1例を示す模式図である。[Figure 2] This is a schematic diagram showing an example of a sequence command.
【図3】 この発明の実施の形態1による数値制御装置
の点列指令修正部の動作を示すフローチャートである。[Figure 3] This is a flowchart showing the operation of the point sequence command correction unit of the numerical control device according to Embodiment 1 of the present invention.
【図4】 この発明の実施の形態1による数値制御装置
の点列指令修正部の点列指令の修正動作の説明図であ
る。[Figure 4] This is an explanatory diagram of the point sequence command correction operation of the point sequence command correction unit of the numerical control device according to Embodiment 1 of the present invention.
【図5】 図4の点列指令Pi が点列移動部によりEi
だけ修正された後の様子を示す模式図である。[Figure 5] The point sequence command P i in Figure 4 is moved to E i by the point sequence movement unit.
This is a schematic diagram showing the state after only the corrections have been made.
【図6】 この発明の実施の形態2による数値制御装置
の構成を示すブロック図である。[Figure 6] This is a block diagram showing the configuration of a numerical control device according to Embodiment 2 of the present invention.
【図7】 この発明の実施の形態2による数値制御装置
の点列指令修正部の動作を示すフローチャートである。[Figure 7] This is a flowchart showing the operation of the point sequence command correction unit of the numerical control device according to Embodiment 2 of the present invention.
【図8】 この発明の実施の形態2による数値制御装置
の点列指令修正部の点列指令の修正動作の説明図であ
る。[Figure 8] This is an explanatory diagram of the point sequence command correction operation of the point sequence command correction unit of the numerical control device according to Embodiment 2 of the present invention.
【図9】 この発明の実施の形態3による数値制御装置
の構成を示すブロック図である。[Figure 9] This is a block diagram showing the configuration of a numerical control device according to Embodiment 3 of the present invention.
【図10】 この発明の実施の形態3による数値制御装
置の点列指令修正部の動作を示すフローチャートであ
る。[Figure 10] This is a flowchart showing the operation of the point sequence command correction unit of the numerical control device according to Embodiment 3 of the present invention.
【図11】 等間隔でない点列指令を示す模式図であ
る。[Figure 11] This is a schematic diagram showing a sequence of dots that are not evenly spaced.
【図12】 この発明の実施の形態3による数値制御装
置の点列指令修正部の点列指令の修正動作の説明図であ
る。[Figure 12] This is an explanatory diagram of the point sequence command correction operation of the point sequence command correction unit of the numerical control device according to Embodiment 3 of the present invention.
【図13】 この発明の実施の形態4による数値制御装
置の構成を示すブロック図である。[Figure 13] This is a block diagram showing the configuration of a numerical control device according to Embodiment 4 of the present invention.
【図14】 この発明の実施の形態4による数値制御装
置の点列指令修正部の動作を示すフローチャートであ
る。[Figure 14] This is a flowchart showing the operation of the point sequence command correction unit of the numerical control device according to Embodiment 4 of the present invention.
【図15】 実施の形態4における2次スプライン曲線
のあてはめの一例を示す模式図である。[Figure 15] This is a schematic diagram showing an example of fitting a quadratic spline curve in Embodiment 4.
【図16】 実施の形態4における点列指令の修正結果
の例を示すグラフ図である。[Figure 16] This graph shows an example of the modification result of the point sequence command in Embodiment 4.
【図17】 この発明の実施の形態5による数値制御装
置の構成を示すブロック図である。[Figure 17] This is a block diagram showing the configuration of a numerical control device according to Embodiment 5 of the present invention.
【図18】 この発明の実施の形態5による数値制御装
置の点列指令修正部の動作を示すフローチャートであ
る。[Figure 18] This is a flowchart showing the operation of the point sequence command correction unit of the numerical control device according to Embodiment 5 of the present invention.
【図19】 この発明の実施の形態6による数値制御装
置の構成を示すブロック図である。[Figure 19] This is a block diagram showing the configuration of a numerical control device according to Embodiment 6 of the present invention.
【図20】 この発明の実施の形態6による数値制御装
置の点列指令修正部の軌跡判断部の動作を示すフローチ
ャートである。[Figure 20] This is a flowchart showing the operation of the trajectory determination unit of the point sequence command correction unit of the numerical control device according to Embodiment 6 of the present invention.
【図21】 評価範囲や修正量計算方法を固定にした場
合の点列指令の修正結果を示す模式図である。[Figure 21] This is a schematic diagram showing the correction results of a point sequence command when the evaluation range and correction amount calculation method are fixed.
【図22】 この発明の実施の形態6による数値制御装
置の点列指令の修正結果を示す模式図である。[Figure 22] This is a schematic diagram showing the result of modifying the point sequence command of the numerical control device according to Embodiment 6 of the present invention.
【符号の説明】
1,1a,1b,1c,1d,1e 数値制御装置、2
工作機械、3 点列指令入力部、4,4a 評価範囲
設定部、5,5a,5b,5c 修正量計算部、6 修
正量制限部、7,7d 点列移動部、13 軌跡判断
部、Pi-3 ,Pi- 2 ,Pi-1 ,Pi ,Pi+1 ,Pi+2 ,
Pi+3 ,P1 〜Pn 点列指令、Si-3 ,Si-2 ,S
i-1 ,Si ,Si+1 ,Si+2 線分ベクトル、Δ
Si-1 ,ΔSi ,ΔSi+1 ,ΔSi-1 ’,ΔSi ’,Δ
Si+1 ’,ΔWi-1 ,ΔWi ,ΔWi+1 第1階差分ベ
クトル(差分ベクトル)、ΔΔSi-2 ,ΔΔSi-1 ,Δ
ΔSi ,ΔΔSi+1 第2階差分ベクトル(差分ベクト
ル)。[Explanation of symbols] 1, 1a, 1b, 1c, 1d, 1e Numerical control device, 2
Machine tool, 3 Point sequence command input section, 4, 4a Evaluation range setting section, 5, 5a, 5b, 5c Correction amount calculation section, 6 Correction amount limiting section, 7, 7d Point sequence movement section, 13 Trajectory judgment section, Pi -3 , Pi - 2 , Pi -1 , Pi , Pi +1 , Pi +2 ,
P i+3 , P 1 to P n point sequence command, S i-3 , S i-2 , S
i-1 , Si , Si +1 , Si +2 line segment vectors, Δ
S i-1 , ΔS i , ΔS i+1 , ΔS i-1 ', ΔS i ', Δ
S i+1 ', ΔW i-1 , ΔW i , ΔW i+1 first-order difference vector (difference vector), ΔΔS i-2 , ΔΔS i-1 , Δ
ΔSi , ΔΔSi +1, second-order difference vector (difference vector).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03823397A JP3640754B2 (en) | 1997-02-21 | 1997-02-21 | Numerical control apparatus and numerical control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03823397A JP3640754B2 (en) | 1997-02-21 | 1997-02-21 | Numerical control apparatus and numerical control method |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JPH10240328A JPH10240328A (en) | 1998-09-11 |
| JPH10240328A5 true JPH10240328A5 (en) | 2001-09-28 |
| JP3640754B2 JP3640754B2 (en) | 2005-04-20 |
Family
ID=12519591
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP03823397A Expired - Fee Related JP3640754B2 (en) | 1997-02-21 | 1997-02-21 | Numerical control apparatus and numerical control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3640754B2 (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3904993B2 (en) | 2002-08-16 | 2007-04-11 | ファナック株式会社 | Curve interpolation method |
| JP2006309645A (en) | 2005-05-02 | 2006-11-09 | Fanuc Ltd | Curve interpolation method |
| JP4518033B2 (en) * | 2006-03-22 | 2010-08-04 | トヨタ自動車株式会社 | Route creation method, moving body, and moving body control system |
| JP4800873B2 (en) | 2006-08-04 | 2011-10-26 | オークマ株式会社 | Approximate curve generation program and method from approximate point cloud data |
| JP4928387B2 (en) * | 2007-08-29 | 2012-05-09 | オークマ株式会社 | Point cloud data correction method, correction program, and approximate curve generation program |
| JP5326015B2 (en) | 2012-02-20 | 2013-10-30 | ファナック株式会社 | Numerical control device with machining curve creation function |
| CN103809521B (en) * | 2012-11-14 | 2016-08-17 | 中国科学院沈阳计算技术研究所有限公司 | SPL interpolating method based on Secant Method |
| JP6110250B2 (en) * | 2013-08-06 | 2017-04-05 | オークマ株式会社 | Method and apparatus for calculating and displaying the degree of change in rotational feed axis command in NC program |
| CN105700466A (en) * | 2015-11-23 | 2016-06-22 | 上海交通大学 | Curvature fairing method for high-speed numerical control processing track |
| CN108287528B (en) * | 2017-12-06 | 2020-02-14 | 莱芜钢铁集团电子有限公司 | Multi-point coplanar curve display method and device |
| CN112621739B (en) * | 2019-10-08 | 2022-03-15 | 东元电机股份有限公司 | Robot and its path interpolation planning command generation system |
| WO2023058243A1 (en) * | 2021-10-08 | 2023-04-13 | ファナック株式会社 | Control device and computer-readable recording medium storing program |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58178406A (en) * | 1982-04-14 | 1983-10-19 | Mitsubishi Electric Corp | Nc data generating device for numerical control |
| JPH0658603B2 (en) * | 1986-05-30 | 1994-08-03 | 株式会社安川電機 | Trajectory interpolation method for automatic machines |
| JPH0764621A (en) * | 1993-08-25 | 1995-03-10 | Matsushita Electric Ind Co Ltd | Robot trajectory interpolator |
| JPH0764622A (en) * | 1993-08-26 | 1995-03-10 | Matsushita Electric Ind Co Ltd | Robot trajectory interpolator |
| JP3543459B2 (en) * | 1995-12-06 | 2004-07-14 | 豊田工機株式会社 | Numerical control device for machining workpieces |
-
1997
- 1997-02-21 JP JP03823397A patent/JP3640754B2/en not_active Expired - Fee Related
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2011052800A1 (en) | Tool path generation method and device | |
| CN101539769B (en) | Fitting and Interpolation Method of G01 Code Based on Quadratic B-spline Curve | |
| JP5615377B2 (en) | Tool path generation method and generation apparatus | |
| Bosetti et al. | Feed-rate and trajectory optimization for CNC machine tools | |
| WO2019119268A1 (en) | Numerical control system, apparatus with storage function, and nurbs curve interpolation method | |
| Hua et al. | Global toolpath smoothing for CNC machining based on B-spline approximation with tool tip position adjustment | |
| JP3640754B2 (en) | Numerical control apparatus and numerical control method | |
| JPH1190774A (en) | How to determine an adaptable feed rate for machine tools | |
| Guangwen et al. | Corner smoothing for CNC machining of linear tool path: A review | |
| CN118893529B (en) | Sub-region segmentation and interference self-adaptive adjustment method and system for global grinding and polishing of blisk | |
| CN116360343A (en) | A smoothing method for corner circumscribed transition to improve the kinematic performance of five-axis machine tools | |
| CN112731865A (en) | A Pre-compensation Method for Multi-axis Machining Contour Error Based on Interpolation Data | |
| JP3879056B2 (en) | Numerically controlled curved surface processing equipment | |
| CN114488941B (en) | Trace smoothing method for micro line segment, medium and machine tool numerical control equipment | |
| CN110883608A (en) | Magnetorheological polishing edge removal function modeling and edge effect inhibiting method | |
| CN117600919A (en) | A fuzzy adaptive constant force polishing method, system and device | |
| CN113835397B (en) | Linear numerical control machining path smoothing method based on B spline curve and path integral | |
| CN120762418A (en) | A corner-optimized path planning method and system | |
| Chen et al. | FRKVF: High-accuracy motion interpolation for polishing operations using fourth-order Runge-Kutta and velocity flexibility planning | |
| JP3511583B2 (en) | Numerical control method | |
| CN114019910A (en) | A real-time global smoothing method for small line segment tool path | |
| Ge et al. | A non-iterative compensation method for machining errors of thin-walled parts considering coupling effect of tool-workpiece deformation | |
| CN113504764A (en) | Continuous line segment numerical control machining path smoothing method based on position vector weighted integral | |
| Wang et al. | Tool trajectory planning with inter-path consistency of feedrate for freeform surface machining | |
| Wu et al. | Minimum-acceleration local modification method for planning tool orientations in 5-axis ball-end machining |