JPH09128029A - Data interpolation device - Google Patents

Data interpolation device

Info

Publication number
JPH09128029A
JPH09128029A JP28053495A JP28053495A JPH09128029A JP H09128029 A JPH09128029 A JP H09128029A JP 28053495 A JP28053495 A JP 28053495A JP 28053495 A JP28053495 A JP 28053495A JP H09128029 A JPH09128029 A JP H09128029A
Authority
JP
Japan
Prior art keywords
movement
interpolation
amount
input
interpolating
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.)
Withdrawn
Application number
JP28053495A
Other languages
Japanese (ja)
Inventor
Tetsuya Iwasaki
鉄也 岩崎
Takeshi Shimomura
健 下村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP28053495A priority Critical patent/JPH09128029A/en
Publication of JPH09128029A publication Critical patent/JPH09128029A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To determine interpolation positional data in which an error is small and also speed change is mitigated by the linear interpolation which is provided for the control of an NC machine tool and is easy in calculation by providing plural interpolation arithmetic parts storing different linear interplation methods and properly selecting one of the interpolation methods. SOLUTION: In a positional command data preparation part 2, a first interpolation arithmetic part 10, a second interpolation arithmetic part 11 and a third interpolation arithmetic part 12 storing each different linear interpolation methods are connected via a changeover switch 13. The changeover of this switch 13 is performed by an interpolation method selection judging part 14. The three interpolation arithmetic parts 10 to 12 are connected with a target value table 4. The target positional data stored in the target value table 4 is successively outputted to each positional controller 5 controlling the operation of each axis of an NC machine tool. Therefore, the linear interpolation in which an error is small and speed change is mitigated can be performed without using a high grade interpolation method by properly selecting one of the interpolation arithmetic parts 10 to 12.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、数値制御工作機械
を制御するための、入力された離散的な位置指令データ
を直線補間して指示された2点間の目標位置群を演算す
るデータ補間装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data interpolation for controlling a numerically controlled machine tool, which linearly interpolates input discrete position command data to calculate a target position group between two designated points. Regarding the device.

【0002】[0002]

【従来の技術】現在、ドリル加工、フライス加工などの
自動化においては、数値制御工作機械(以下、NC工作
機械という)が一般に使用されている。数値制御とは、
従来作業者が手動で行っていた機械加工の複雑な諸操作
を、数値と符号で構成された数値情報を与えることによ
って自動的に行わせるものである。数値情報は、工具の
位置を示す座標データや機械の操作順序を指令するデー
タなどからなり、NCテープと呼ばれるせん孔テープ
(具体的には、紙テープ、磁気テープなど)に記録され
る。工作機械はこの数値情報に従って制御され自動的に
工作物を加工していく。
2. Description of the Related Art At present, numerical control machine tools (hereinafter referred to as NC machine tools) are generally used in automation of drilling, milling and the like. What is numerical control?
This is to automatically perform complicated operations of machining which are conventionally performed by an operator by giving numerical information composed of numerical values and signs. The numerical information is composed of coordinate data indicating the position of the tool, data instructing the operation sequence of the machine, and the like, and is recorded on a perforated tape called NC tape (specifically, paper tape, magnetic tape, etc.). The machine tool is controlled according to this numerical information and automatically processes the workpiece.

【0003】このNC工作機械においては、工具の位置
情報は飛び飛びの値で指令されるため、実際に工具を直
線的または曲線(円、円弧、放物線など)的に移動させ
る場合には、与えられたある点から次の点までの間を所
定の関数曲線に沿った点群で近似し(補間)、その2点
間の目標位置群を求める必要がある。通常は、計算が簡
単であるなどの理由から、与えられた2点間を直線に沿
った点群で近似する直線補間が行われている。
In this NC machine tool, since the position information of the tool is commanded by discrete values, it is given when actually moving the tool linearly or in a curve (circle, arc, parabola, etc.). It is necessary to approximate (interpolate) a point group along a predetermined function curve from one point to the next point, and obtain a target position group between the two points. Normally, linear interpolation is performed to approximate a given two points by a point group along a straight line for reasons such as easy calculation.

【0004】図6は従来のNC工作機械の制御系のブロ
ック図である。NCテープ1に記録された数値情報は数
値制御装置に入力される。この数値制御装置内の中央処
理部を構成する位置指令データ作成部2は、その入力し
た数値情報から、離散的な位置指令データを作成し、数
値制御装置内の位置決め部を構成する補間演算部3に出
力する。補間演算部3は、位置指令データ作成部2から
出力された離散的な位置指令データを直線補間し、同じ
位置決め部を構成する目標値テーブル4に、求めた数ス
テップ分の補間位置(目標位置群)を出力する。目標値
テーブル4に格納された目標位置データは、NC工作機
械の各軸(ここでは、n個とする)の動作を制御するそ
れぞれの位置制御器4に順次出力される。各位置制御器
4は、動作信号を増幅器6を介して軸モータ7に出力す
るが、その際、この軸モータ7に機械的に取り付けられ
たエンコーダ8からの位置検出信号を目標値テーブル4
からの目標位置データと比較し、それらが一致するよう
にフィードバック制御を行う。なお、NC工作機械の軸
数が2以上(n≧2)である場合には、各位置制御器4
は、2軸以上の運動を同時に関連づけながら、対応する
軸を絶えず制御する。
FIG. 6 is a block diagram of a control system of a conventional NC machine tool. The numerical information recorded on the NC tape 1 is input to the numerical controller. The position command data creation unit 2 that constitutes the central processing unit in the numerical control device creates discrete position command data from the input numerical information, and the interpolation calculation unit that constitutes the positioning unit in the numerical control device. Output to 3. The interpolation calculation unit 3 linearly interpolates the discrete position command data output from the position command data creation unit 2, and a target value table 4 forming the same positioning unit uses the calculated interpolation positions (target position) for several steps. Group) is output. The target position data stored in the target value table 4 is sequentially output to each position controller 4 that controls the operation of each axis (here, n) of the NC machine tool. Each position controller 4 outputs an operation signal to the shaft motor 7 via the amplifier 6. At this time, the position detection signal from the encoder 8 mechanically attached to the shaft motor 7 is used as the target value table 4
The target position data from is compared, and feedback control is performed so that they match. If the number of axes of the NC machine tool is 2 or more (n ≧ 2), each position controller 4
Continuously associates motions of two or more axes while continuously controlling the corresponding axes.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の装置にあっては、補間演算部が1つしかな
く、それにプログラムされた1種類の補間方法でしか補
間演算を行えないため、補間方法の選択如何によっては
次のような問題点がある。
However, in such a conventional apparatus, since there is only one interpolation calculation section and the interpolation calculation can be performed only by one kind of interpolation method programmed in the interpolation calculation section, the interpolation calculation is performed. There are the following problems depending on the selection of the method.

【0006】すなわち、直線補間の方法には、全移動量
を分割ステップで割った余りの分配の仕方に応じて、余
りを各ステップに平均的に分配する方法(以下、これを
平均分割法と呼ぶことにする)と、余りを各ステップの
前半部にまとめて置く方法(以下、これを余り先付け法
と呼ぶことにする)と、余りを各ステップの後半部にま
とめて置く方法(以下、これを余り後付け法と呼ぶこと
にする)とがあり、通常は、平均分割法が用いられてい
る。余り先付け法や余り後付け法においては平均分割法
と比べて補間の最中における速度変化が大きいからであ
る。一般に、このような直線補間(平均分割法による)
においては、目標軌跡と実際の軌跡との間における誤差
や前後の2つの補間の間における速度変化が大きいとい
う問題がある。
That is, in the linear interpolation method, the remainder is averagely distributed to each step according to the distribution method of the remainder obtained by dividing the total movement amount by the division step (hereinafter, this is referred to as an average division method). Call), a method of putting the remainder in the first half of each step (hereinafter, this will be called a remainder preemption method), and a method of putting the remainder in the second half of each step (hereinafter, This will be referred to as the retrofitting method), and the average division method is usually used. This is because the surplus-first method and the surplus-postfix method have a larger change in speed during interpolation than the average division method. Generally, such linear interpolation (by means of average division)
In the above, there is a problem that an error between the target trajectory and the actual trajectory and a speed change between two front and rear interpolations are large.

【0007】なお、誤差を小さくし速度変化を緩和する
ためには、直線補間に代えていわゆるスプライン補間
(補間式としてスプライン関数を用いる方法)を用いる
ことが考えられるが、スプライン補間は計算がきわめて
複雑であり、多くの周辺データ(たとえば、前後のある
程度数のデータ、前後の多くのデータ、前後の十数点の
データ、前後の数十点のデータなど)を必要とするた
め、処理時間の点で問題があり、これに対応するには高
性能の機器が必要となり、コストアップにもつながる。
In order to reduce the error and alleviate the speed change, it is conceivable to use so-called spline interpolation (a method that uses a spline function as an interpolation formula) instead of linear interpolation, but spline interpolation is extremely difficult to calculate. It is complicated and requires a lot of peripheral data (for example, a certain number of data before and after, many data before and after, dozens of data before and after, dozens of data before and after, etc.) There is a problem in that point, and high-performance equipment is required to address this, leading to higher costs.

【0008】本発明は、このような従来技術の問題点に
鑑みてなされたものであり、NC工作機械の制御に供さ
れる、計算が簡単な直線補間により誤差が小さく速度変
化も緩和された補間位置データを求めることができるデ
ータ補間装置を提供することを目的とする。
The present invention has been made in view of the above problems of the prior art, and the error is small and the speed change is alleviated by the linear interpolation which is used for the control of the NC machine tool and which is easy to calculate. An object of the present invention is to provide a data interpolating device that can obtain interpolated position data.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、請求項1記載の発明は、数値制御工作機械を制御す
るための、入力された離散的な位置指令データを直線補
間して指示された2点間の目標位置群を演算するデータ
補間装置において、離散的な位置指令データを入力する
入力手段と、平均分割の手法により、前記入力手段によ
って入力された位置指令データを直線補間する第1補間
手段と、余り先付けの手法により、前記入力手段によっ
て入力された位置指令データを直線補間する第2補間手
段と、余り後付けの手法により、前記入力手段によって
入力された位置指令データを直線補間する第3補間手段
と、前記入力手段によって入力された位置指令データに
基づいて、前記第1補間手段、前記第2補間手段、およ
び前記第3補間手段のいずれか1つを選択する選択手段
と、前記選択手段によって選択された補間手段からの出
力を記憶する記憶手段とを有することを特徴とする。
In order to achieve the above-mentioned object, the invention according to claim 1 linearly interpolates the input discrete position command data for controlling a numerically controlled machine tool, and gives an instruction. In the data interpolating device for calculating the target position group between the two points, the position command data input by the input device is linearly interpolated by the input means for inputting the discrete position command data and the averaging method. A first interpolating means, a second interpolating means for linearly interpolating the position command data input by the input means by a remainder pre-adding method, and a linear interpolating position command data input by the input means by a surplus post-applying method. Third interpolating means for interpolating, and based on the position command data input by the inputting means, the first interpolating means, the second interpolating means, and the third interpolating means. Selection means for selecting any one of, and having a storage means for storing the output from the interpolation means selected by said selecting means.

【0010】この請求項1記載のデータ補間装置にあっ
ては、入力手段は離散的な位置指令データを入力し、選
択手段は、入力手段によって入力された位置指令データ
に基づいて、第1補間手段、第2補間手段、および第3
補間手段のいずれか1つを選択する。選択手段によって
第1補間手段が選択されたときには、第1補間手段は、
入力手段によって入力された位置指令データに対し、平
均分割の手法により直線補間を行って2点間の目標位置
群を演算する。また、選択手段によって第2補間手段が
選択されたときには、第2補間手段入力手段によって入
力された位置指令データに対し、余り先付けの手法によ
り直線補間を行って2点間の目標位置群を演算する。ま
た、選択手段によって第3補間手段が選択されたときに
は、第3補間手段は、入力手段によって入力された位置
指令データに対し、余り後付けの手法により直線補間を
行って2点間の目標位置群を演算する。記憶手段は、選
択手段によって選択された補間手段からの出力を記憶す
る。すなわち、それぞれ異なる直線補間法を格納した3
種類の補間演算部を設け、それらの1つを適宜選択する
ので、誤差が小さく速度変化が緩和された直線補間を行
うことができる。
In the data interpolating apparatus according to the present invention, the input means inputs discrete position command data, and the selecting means performs the first interpolation based on the position command data inputted by the input means. Means, second interpolating means, and third
Select one of the interpolation means. When the first interpolating means is selected by the selecting means, the first interpolating means:
The target command group between two points is calculated by performing linear interpolation on the position command data input by the input means by a method of average division. When the second interpolating means is selected by the selecting means, the position command data input by the second interpolating means inputting means is linearly interpolated by a remainder-preceding method to calculate a target position group between two points. To do. Further, when the third interpolating means is selected by the selecting means, the third interpolating means performs linear interpolation on the position command data input by the inputting means by a method of residual addition, and a target position group between two points. Is calculated. The storage means stores the output from the interpolation means selected by the selection means. That is, three different linear interpolation methods are stored.
Since there are provided different kinds of interpolation calculation units and one of them is appropriately selected, it is possible to perform linear interpolation in which the error is small and the speed change is moderated.

【0011】請求項2記載の発明は、上記請求項1記載
のデータ補間装置において、前記選択手段は、入力され
た位置指令データから2点間の移動量を逐次算出し、求
めた現在の移動量と次回の移動量を比較し、それらの差
の絶対値があらかじめ設定された判定値以下であるとき
に、前記第1補間手段を選択することを特徴とする。こ
の請求項2記載のデータ補間装置にあっては、選択手段
は、入力手段によって入力された位置指令データから2
点間の移動量を逐次算出し、求めた現在の移動量と次回
の移動量を比較し、それらの差の絶対値があらかじめ設
定された判定値以下であるときに、第1補間手段を選択
する。
According to a second aspect of the present invention, in the data interpolating apparatus according to the first aspect, the selecting means sequentially calculates the amount of movement between two points from the input position command data, and obtains the present movement. It is characterized in that the first interpolation means is selected when the absolute value of the difference between these amounts is compared with the next movement amount and is less than or equal to a preset judgment value. In the data interpolating device according to the second aspect, the selecting means selects 2 from the position command data input by the input means.
The amount of movement between points is sequentially calculated, the calculated current amount of movement is compared with the next amount of movement, and when the absolute value of the difference is less than or equal to a preset judgment value, the first interpolation means is selected. To do.

【0012】請求項3記載の発明は、上記請求項1記載
のデータ補間装置において、前記選択手段は、入力され
た位置指令データから2点間の移動量を逐次算出し、求
めた現在の移動量と次回の移動量を比較し、現在の移動
量から次回の移動量を引いた値があらかじめ設定された
判定値以上であり、かつ、前回の補間法が余り後付け法
であったときに、前記第1補間手段を選択することを特
徴とする。この請求項3記載のデータ補間装置にあって
は、選択手段は、入力手段によって入力された位置指令
データから2点間の移動量を逐次算出し、求めた現在の
移動量と次回の移動量を比較し、現在の移動量から次回
の移動量を引いた値があらかじめ設定された判定値以上
であり、かつ、前回の補間法が余り後付け法であったと
きに、第1補間手段を選択する。
According to a third aspect of the present invention, in the data interpolating device according to the first aspect, the selecting means sequentially calculates the amount of movement between two points from the input position command data, and obtains the present movement. Amount is compared with the next movement amount, when the value obtained by subtracting the next movement amount from the current movement amount is greater than or equal to the preset judgment value, and the previous interpolation method was too much retrofitting, It is characterized in that the first interpolation means is selected. In the data interpolating device according to the third aspect of the present invention, the selecting means sequentially calculates the movement amount between two points from the position command data input by the inputting means, and obtains the present movement amount and the next movement amount. The first interpolation means is selected when the value obtained by subtracting the next movement amount from the current movement amount is equal to or greater than the preset determination value and the previous interpolation method is the post-addition method. To do.

【0013】請求項4記載の発明は、上記請求項1記載
のデータ補間装置において、前記選択手段は、入力され
た位置指令データから2点間の移動量を逐次算出し、求
めた現在の移動量と次回の移動量を比較し、現在の移動
量から次回の移動量を引いた値があらかじめ設定された
判定値以上であり、かつ、前回の補間法が余り後付け法
以外であったときに、前記第2補間手段を選択すること
を特徴とする。この請求項4記載のデータ補間装置にあ
っては、選択手段は、入力手段によって入力された位置
指令データから2点間の移動量を逐次算出し、求めた現
在の移動量と次回の移動量を比較し、現在の移動量から
次回の移動量を引いた値があらかじめ設定された判定値
以上であり、かつ、前回の補間法が余り後付け法以外で
あったときに、第2補間手段を選択する。
According to a fourth aspect of the present invention, in the data interpolating apparatus according to the first aspect, the selecting means sequentially calculates the amount of movement between two points from the input position command data, and obtains the present movement. If the value obtained by subtracting the next movement amount from the current movement amount is greater than or equal to the preset judgment value, and the previous interpolation method was other than the retrofit method, , The second interpolation means is selected. In the data interpolating device according to the present invention, the selecting means successively calculates the movement amount between two points from the position command data input by the inputting means, and obtains the present movement amount and the next movement amount. When the value obtained by subtracting the next movement amount from the current movement amount is equal to or greater than the preset determination value and the previous interpolation method is other than the post-installation method, the second interpolation means is set. select.

【0014】請求項5記載の発明は、上記請求項1記載
のデータ補間装置において、前記選択手段は、入力され
た位置指令データから2点間の移動量を逐次算出し、求
めた現在の移動量と次回の移動量を比較し、次回の移動
量から現在の移動量を引いた値があらかじめ設定された
判定値以上であり、かつ、前回の補間法が余り先付け法
であったときに、前記第1補間手段を選択することを特
徴とする。この請求項5記載のデータ補間装置にあって
は、選択手段は、入力手段によって入力された位置指令
データから2点間の移動量を逐次算出し、求めた現在の
移動量と次回の移動量を比較し、次回の移動量から現在
の移動量を引いた値があらかじめ設定された判定値以上
であり、かつ、前回の補間法が余り先付け法であったと
きに、第1補間手段を選択する。
According to a fifth aspect of the present invention, in the data interpolating device according to the first aspect, the selecting means sequentially calculates the amount of movement between two points from the input position command data, and obtains the present movement. Amount is compared with the next movement amount, the value obtained by subtracting the current movement amount from the next movement amount is equal to or greater than the preset determination value, and the previous interpolation method is the preemptive method, It is characterized in that the first interpolation means is selected. In the data interpolating apparatus according to the present invention, the selecting means sequentially calculates the movement amount between two points from the position command data input by the input means, and obtains the present movement amount and the next movement amount. When the value obtained by subtracting the current movement amount from the next movement amount is equal to or greater than the preset determination value and the previous interpolation method is the remainder preemption method, the first interpolation means is selected. To do.

【0015】請求項6記載の発明は、上記請求項1記載
のデータ補間装置において、前記選択手段は、入力され
た位置指令データから2点間の移動量を逐次算出し、求
めた現在の移動量と次回の移動量を比較し、次回の移動
量から現在の移動量を引いた値があらかじめ設定された
判定値以上であり、かつ、前回の補間法が余り先付け法
以外であったときに、前記第3補間手段を選択すること
を特徴とする。この請求項6記載のデータ補間装置にあ
っては、選択手段は、入力手段によって入力された位置
指令データから2点間の移動量を逐次算出し、求めた現
在の移動量と次回の移動量を比較し、次回の移動量から
現在の移動量を引いた値があらかじめ設定された判定値
以上であり、かつ、前回の補間法が余り先付け法以外で
あったときに、第3補間手段を選択する。
According to a sixth aspect of the present invention, in the data interpolating apparatus according to the first aspect, the selecting means sequentially calculates a movement amount between two points from the input position command data, and obtains the present movement. Amount is compared with the next movement amount, and the value obtained by subtracting the current movement amount from the next movement amount is greater than or equal to the preset judgment value, and the previous interpolation method was other than the preemptive method. , The third interpolating means is selected. In the data interpolating device according to the present invention, the selecting means successively calculates the moving amount between the two points from the position command data input by the inputting means, and obtains the present moving amount and the next moving amount. When the value obtained by subtracting the current movement amount from the next movement amount is equal to or greater than a preset determination value and the previous interpolation method is other than the pre-emption method, the third interpolation means is used. select.

【0016】[0016]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。図1は本発明のデータ補正装置を
含むNC工作機械の制御系のブロック図である。なお、
図6と共通する部分には同一の符号を付してある。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a control system of an NC machine tool including a data correction device of the present invention. In addition,
The same parts as those in FIG. 6 are designated by the same reference numerals.

【0017】このNC工作機械はn個の軸を有してお
り、それぞれの軸には、従来と同様、位置制御器5、増
幅器6、軸モータ7、およびエンコーダ8が設けられて
いる。位置制御器5は、目標値テーブル4から目標位置
データを入力し、これとエンコーダ8からフィードバッ
クされる位置検出信号(軸モータ7の現在位置)とを比
較して動作信号を作出し、作出した動作信号を増幅器6
を介して軸モータ7に出力する。これにより、軸モータ
7は目標位置に一致するように動作する。目標値テーブ
ル4内の目標位置データは順次各位置制御器5に転送さ
れるので、各軸は目標位置の変化に追従して運動するこ
とになる。その際、NC工作機械の軸数が2以上(n≧
2)である場合には、各位置制御器5によって、2軸以
上の運動を同時に関連づけながら絶えずNC工作機械の
動作を制御するようになっている。なお、ここでは、軸
モータ7の位置をエンコーダ8で検出しているが、これ
に限定されないことはもちろんである。たとえば、エン
コーダ8に代えてパルスジェネレータなどを使用しても
よい。
This NC machine tool has n axes, and each axis is provided with a position controller 5, an amplifier 6, an axis motor 7, and an encoder 8 as in the conventional case. The position controller 5 inputs the target position data from the target value table 4, compares it with the position detection signal fed back from the encoder 8 (the current position of the shaft motor 7) to generate and generate an operation signal. Operation signal amplifier 6
To the shaft motor 7 via. As a result, the shaft motor 7 operates so as to match the target position. Since the target position data in the target value table 4 is sequentially transferred to each position controller 5, each axis moves following the change in the target position. At that time, the number of axes of the NC machine tool is 2 or more (n ≧
In the case of 2), each position controller 5 constantly controls the operation of the NC machine tool while simultaneously associating the motions of two or more axes. Although the position of the shaft motor 7 is detected by the encoder 8 here, it is needless to say that the position is not limited to this. For example, a pulse generator or the like may be used instead of the encoder 8.

【0018】NC工作機械を制御するためのマシンプロ
グラムはNCテープ1によって与えられる。NCテープ
1は数値情報を記録したせん孔テープであって、これに
は工具の位置を示す座標データや機械の操作順序のデー
タなどが所定のフォーマットに従って記録されている。
NCテープ1に指示された工具の位置情報は離散的であ
り、飛び飛びの値で与えられている。NCテープ1に記
録された数値情報は数値制御装置に入力され、この数値
制御装置内の中央処理部を構成する位置指令データ作成
部2に転送される。位置指令データ作成部2は、その入
力した数値情報から、離散的な位置指令データを作成す
る機能を有している。位置指令データ作成部2には、そ
れぞれ異なる直線補間法を格納した3つの補間演算部、
つまり第1補間演算部10、第2補間演算部11、およ
び第3補間演算部12が切替スイッチ13を介して接続
されている。第1補間演算部10はいわゆる平均分割法
を格納しており、入力した離散的な位置指令データに対
し平均分割法による直線補間を行うものである。第2補
間演算部11はいわゆる余り先付け法を格納しており、
入力した離散的な位置指令データに対し余り先付け法に
よる直線補間を行うものである。第3補間演算部12は
いわゆる余り後付け法を格納しており、入力した離散的
な位置指令データに対し余り後付け法による直線補間を
行うものである。これらの直線補間法については後で説
明する。スイッチ13の切り替えは補間法選択判断部1
4によって行われる。この補間法選択判断部14もまた
位置指令データ作成部2に接続されており、この補間法
選択判断部14は、位置指令データ作成部2から位置指
令データを入力し、この入力した位置指令データに基づ
いて最適な直線補間法を選択し、この結果によりスイッ
チ14を切り替える、つまり、位置指令データ作成部2
から位置指令データを出力すべき補間演算部11〜12
を1つ選択する機能を有している。この補間法選択判断
部14で選択された補間法はその都度当該2点間と関係
づけて補間法選択判断部14内の所定の内部メモリに記
憶される。補間法選択判断部14における補間法の選択
の判断基準については後で説明する。前記3つの補間演
算部10〜12は目標値テーブル4に接続されている。
目標値テーブル4は、選択された補間演算部10〜12
の結果、つまり、入力された離散的な位置指令データを
直線補間して得られた2点間の目標位置群(所定のステ
ップ数分の補間位置)のデータをその2点(指令位置)
を含む表の形で記憶するものである。目標値テーブル4
に格納された目標位置データは、上記したように、NC
工作機械の各軸の動作を制御するそれぞれの位置制御器
4に順次出力される。上記した3つの補間演算部10〜
12、補間法選択判断部14、および目標値テーブル4
は数値制御装置内の位置決め部を構成している。
A machine program for controlling the NC machine tool is provided by the NC tape 1. The NC tape 1 is a perforated tape on which numerical information is recorded, on which coordinate data indicating the position of the tool, data on the operation sequence of the machine, and the like are recorded according to a predetermined format.
The position information of the tool instructed on the NC tape 1 is discrete, and is given as discrete values. The numerical information recorded on the NC tape 1 is input to the numerical control device and transferred to the position command data creating unit 2 which constitutes the central processing unit in the numerical control device. The position command data creation unit 2 has a function of creating discrete position command data from the input numerical information. The position command data creation unit 2 includes three interpolation calculation units that store different linear interpolation methods,
That is, the first interpolation calculation unit 10, the second interpolation calculation unit 11, and the third interpolation calculation unit 12 are connected via the changeover switch 13. The first interpolation calculation unit 10 stores a so-called average division method, and performs linear interpolation by the average division method on the input discrete position command data. The second interpolation calculation unit 11 stores a so-called remainder pre-allocation method,
Linear interpolation is performed on the input discrete position command data by the remainder pre-addition method. The third interpolation calculation unit 12 stores a so-called surplus retrofitting method, and performs linear interpolation on the input discrete position command data by the surplus retrofitting method. These linear interpolation methods will be described later. The switch 13 is switched by the interpolation method selection determination unit 1
4 is performed. The interpolation method selection determination unit 14 is also connected to the position command data creation unit 2, and the interpolation method selection determination unit 14 inputs the position command data from the position command data creation unit 2 and the input position command data The optimum linear interpolation method is selected based on the above, and the switch 14 is switched according to this result, that is, the position command data creation unit 2
To output position command data from the interpolation calculation units 11 to 12
Has a function of selecting one. The interpolation method selected by the interpolation method selection determination unit 14 is stored in a predetermined internal memory in the interpolation method selection determination unit 14 in association with the two points each time. The determination criteria for selecting the interpolation method in the interpolation method selection determination unit 14 will be described later. The three interpolation calculation units 10 to 12 are connected to the target value table 4.
The target value table 4 includes the selected interpolation calculation units 10-12.
Result, that is, the data of the target position group (interpolation position for a predetermined number of steps) between two points obtained by linearly interpolating the input discrete position command data
It is stored in the form of a table including. Target value table 4
As described above, the target position data stored in
It is sequentially output to each position controller 4 that controls the operation of each axis of the machine tool. The above three interpolation calculation units 10 to 10
12, interpolation method selection determination unit 14, and target value table 4
Constitutes a positioning unit in the numerical controller.

【0019】なお、入力手段はNCテープ1と位置指令
データ作成部2、第1補間手段は第1補間演算部10、
第2補間手段は第2補間演算部11、第3補間手段は第
3補間演算部12、選択手段は切替スイッチ13と補間
法選択判断部14、記憶手段は目標値テーブル4によっ
てそれぞれ構成されている。
The input means is the NC tape 1 and the position command data creating section 2, the first interpolating means is the first interpolation computing section 10,
The second interpolation means is constituted by the second interpolation calculation section 11, the third interpolation means is constituted by the third interpolation calculation section 12, the selection means is constituted by the changeover switch 13 and the interpolation method selection judgment section 14, and the storage means is constituted by the target value table 4. There is.

【0020】図2は上記した3通りの直線補間法の説明
図、図3は図2の結果をグラフ化した図である。ここで
は、指令された2点間の移動量(距離)が12であり、
分割ステップ数が8である場合を例示している。
FIG. 2 is an explanatory view of the above-mentioned three kinds of linear interpolation methods, and FIG. 3 is a graph showing the results of FIG. Here, the commanded movement amount (distance) between the two points is 12,
The case where the number of division steps is 8 is illustrated.

【0021】第1補間演算部10が実行する平均分割法
とは、与えられた2点間の全移動量を分割ステップ数で
割った値を基本移動量とし(この例では1となる)、余
りを平均的に各ステップに分配する方法である(図2
(A)参照)。第2補間演算部11が実行する余り先付
け法とは、与えられた2点間の全移動量を分割ステップ
数で割った値を基本移動量とし(この例では1とな
る)、割り切れなかった余りを各ステップの前半部にま
とめて置く方法である(図2(B)参照)。また、第3
補間演算部12が実行する余り後付け法とは、与えられ
た2点間の全移動量を分割ステップ数で割った値を基本
移動量とし(この例では1となる)、割り切れなかった
余りを各ステップの後半部にまとめて置く方法である
(図3(C)参照)。図2に示す各結果を分割ステップ
に対する距離の形でグラフ化したのが図3である。各ス
テップは同じ時間で処理されるので、同図からわかるよ
うに、余り先付け法によれば前半部の移動速度が後半部
に比べて速くなり(前半部の移動距離のほうが大きいの
で)、余り後付け法によれば後半部の移動速度が前半部
に比べて速くなり(後半部の移動距離のほうが大きいの
で)、平均分割法によれば2点間を一定の速度変化を繰
り返しながら移動することになる。
The average division method executed by the first interpolation calculation unit 10 is a value obtained by dividing the given total movement amount between two points by the number of division steps (1 in this example), This is a method to distribute the remainder to each step on average (Fig. 2
(A)). The remainder pre-allocation method executed by the second interpolation calculation unit 11 is a value obtained by dividing the given total movement amount between two points by the number of division steps (1 in this example), which is not divisible. This is a method in which the remainder is put together in the first half of each step (see FIG. 2B). Also, the third
The surplus retrofitting method executed by the interpolation calculation unit 12 is a value obtained by dividing the given total movement amount between two points by the number of division steps as the basic movement amount (1 in this example), and the remainder that cannot be divided is This is a method of putting them together in the latter half of each step (see FIG. 3C). FIG. 3 is a graph showing each result shown in FIG. 2 in the form of distance with respect to the division step. Since each step is processed in the same time, as can be seen from the figure, the extra-heading method makes the moving speed of the first half faster than that of the second half (because the moving distance of the first half is larger). According to the retrofit method, the moving speed of the latter half is faster than that of the first half (because the moving distance of the latter half is larger), and according to the average division method, moving between two points while repeating constant speed change. become.

【0022】図4は補間法選択判断部14の動作を示す
フローチャートである。補間法選択判断部14において
補間法を選択する際に用いられる判断基準はこのフロー
チャートに示されている。
FIG. 4 is a flow chart showing the operation of the interpolation method selection judgment unit 14. The determination criteria used when selecting the interpolation method in the interpolation method selection determination unit 14 are shown in this flowchart.

【0023】まず、補間法選択判断部14は、位置指令
データ作成部2から飛び飛びの位置指令データを入力し
(ステップS1)、これによって与えられた前後の2点
のデータから、当該2点間の移動量K(j) を逐次計算
し、結果を所定の内部メモリに記憶する(ステップS
2)。
First, the interpolation method selection judgment unit 14 inputs the position command data scattered from the position command data generation unit 2 (step S1), and based on the data of the two points before and after given by this, the interpolation between the two points is performed. The amount of movement K (j) of S is calculated sequentially and the result is stored in a predetermined internal memory (step S
2).

【0024】ステップS3では、ステップS2の結果を
記憶した内部メモリから、直線補間を実施しようとする
2点間の移動量(現在移動量という)K(n) と、次回直
線補間を行う2点間の移動量(次回移動量という)K(n
+1) とを読み出し、これらを比較して、たとえば、現在
移動量K(n) が次回移動量K(n+1) 以上であるかどうか
を判断する。
In step S3, from the internal memory storing the result of step S2, the amount of movement K (n) between the two points for which linear interpolation is to be performed (current movement amount) and the two points for the next linear interpolation are performed. Amount of movement (called the next movement) K (n
+1) is read and compared with each other to determine whether the current movement amount K (n) is, for example, the next movement amount K (n + 1) or more.

【0025】このステップS3の判断の結果として現在
移動量K(n) が次回移動量K(n+1)以上である場合は、
現在移動量K(n) から次回移動量K(n+1) を引いた値
(K(n) −K(n+1) )が、たとえば、あらかじめ適当に
設定された判定値Dよりも大きいかどうかを判断し(ス
テップS4)、この判断の結果としてK(n) −K(n+1)
が判定値D以下であれば、平均分割法を選択し、第1補
間演算部10に切替スイッチ13を設定する(ステップ
S8)。
If the current movement amount K (n) is greater than or equal to the next movement amount K (n + 1) as a result of the determination in step S3,
A value (K (n) -K (n + 1)) obtained by subtracting the next movement amount K (n + 1) from the current movement amount K (n) is, for example, larger than the predetermined judgment value D. It is determined whether or not (step S4), and as a result of this determination, K (n) -K (n + 1)
If is less than or equal to the determination value D, the average division method is selected and the changeover switch 13 is set in the first interpolation calculation unit 10 (step S8).

【0026】その理由はこうである。K(n) −K(n+1)
が判定値D以下である場合には、現在移動量K(n) と次
回移動量K(n+1) の差がそれほど大きくないので、両移
動の節点(つまり、前後する2つの指令された点のうち
今回の移動と次回の移動に共通する後の指令点)の前後
での速度変化をゆるやかにするには、2点間を平均した
速度変化となるように直線補間する平均分割法で十分で
あるからである。
The reason is as follows. K (n) -K (n + 1)
Is less than or equal to the determination value D, the difference between the current movement amount K (n) and the next movement amount K (n + 1) is not so large, so the nodes of both movements (that is, the two commands before and after are commanded). To slow down the speed change before and after the command point, which is common to the current move and the next move, among the points, use the average division method that performs linear interpolation so that the speed change averages between the two points. Because it is enough.

【0027】また、ステップS4の判断の結果としてK
(n) −K(n+1) が判定値Dよりも大きい場合は、さら
に、過去の補間法選択の結果を記憶した内部メモリにア
クセスして、前回の補間法が余り後付け法であったかど
うかを判断する(ステップS5)。この判断の結果とし
て前回の補間法が余り後付け法であったときは平均分割
法を選択し(ステップS8)、前回の補間法が余り後付
け法でない、つまり平均分割法または余り先付け法であ
ったときは余り先付け法を選択し(ステップS9)、切
替スイッチ13をそれぞれ第1補間演算部10および第
2補間演算部11に設定する。
As a result of the determination in step S4, K
If (n) -K (n + 1) is larger than the judgment value D, the internal memory that stores the result of the past interpolation method selection is further accessed to determine whether the previous interpolation method is a postscript method. Is determined (step S5). As a result of this judgment, when the previous interpolation method is the excessive post-addition method, the average division method is selected (step S8), and the previous interpolation method is not the excessive post-attachment method, that is, the average division method or the extra pre-addition method. In this case, the surplus prepositioning method is selected (step S9), and the changeover switch 13 is set to the first interpolation calculation section 10 and the second interpolation calculation section 11, respectively.

【0028】その理由は次のとおりである。K(n) −K
(n+1) が判定値Dよりも大きい場合には、現在移動量K
(n) は次回移動量K(n+1) よりもかなり大きく、両移動
の節点(つまり、上記のように、後の指令点)の前後で
の速度変化をゆるやかにするためには少なくとも当該2
点間の分割ステップの後半部での移動速度は小さくなけ
ればならないところ、前回の補間法が余り後付け法であ
ったときには、前回の補間では分割ステップの後半部の
移動速度が速いため、前回の移動と今回の移動との節点
(つまり、前後する2つの指令された点のうち前の点)
の前後での速度変化を緩和するという観点からは、当該
2点間の分割ステップの前半部での移動速度を速くした
ほうがよいが、しかしこれでは、節点の前後での移動速
度がともに速くなるので誤差が大きくなってしまう。そ
こで、両者の調和点として、2点間を平均的に分割し速
度変化のあまりない平均分割法を選択する。他方、同じ
場合において、前回の補間法が余り後付け法以外(つま
り、平均分割法または余り先付け法)であったときに
は、前回の補間における分割ステップの後半部の移動速
度はそれほど速くはないので、上記のような衡量はあま
り必要でなく、当該2点間の分割ステップの後半部での
移動速度を小さくするために、前半部の移動速度が後半
部よりも速くなる余り先付け法を選択する。
The reason is as follows. K (n) -K
If (n + 1) is larger than the judgment value D, the current movement amount K
(n) is considerably larger than the next movement amount K (n + 1), and at least in order to moderate the speed change before and after the nodes of both movements (that is, the later command point as described above). Two
The movement speed in the latter half of the division step between points must be small.However, if the previous interpolation method was too late, the movement speed in the latter half of the division step was high in the previous interpolation, so Node between movement and current movement (that is, the previous of the two commanded points that move back and forth)
From the viewpoint of easing the speed change before and after, it is better to increase the moving speed in the first half of the division step between the two points, but this increases the moving speed before and after the node. Therefore, the error becomes large. Therefore, as a harmony point between the two, an average division method in which the two points are averagely divided and the velocity change is not so much is selected. On the other hand, in the same case, when the previous interpolation method is a method other than the post-remainder method (that is, the average division method or the remainder-preceding method), the movement speed of the latter half of the division step in the previous interpolation is not so fast, The balance as described above is not necessary so much, and in order to reduce the moving speed in the latter half of the dividing step between the two points, a surplus prepositioning method in which the moving speed in the first half is faster than in the latter half is selected.

【0029】さらに、上記ステップS3の判断の結果と
して現在移動量K(n) が次回移動量K(n+1) よりも小さ
い場合は、次回移動量K(n+1) から現在移動量K(n) を
引いた値(K(n+1) −K(n) )が前記判定値Dよりも大
きいかどうかを判断し(ステップS6)、この判断の結
果としてK(n+1) −K(n) が判定値D以下であれば、平
均分割法を選択し、第1補間演算部10に切替スイッチ
13を設定する(ステップS8)。
Furthermore, if the current movement amount K (n) is smaller than the next movement amount K (n + 1) as a result of the determination in step S3, the next movement amount K (n + 1) to the current movement amount K It is judged whether or not the value (K (n + 1) -K (n)) obtained by subtracting (n) is larger than the judgment value D (step S6). As a result of this judgment, K (n + 1)- If K (n) is less than or equal to the determination value D, the average division method is selected and the changeover switch 13 is set in the first interpolation calculation unit 10 (step S8).

【0030】その理由は次のとおりである。K(n+1) −
K(n) が判定値D以下である場合には、上記したステッ
プS4の判断結果によるステップS8の実行の場合と同
様、現在移動量K(n) と次回移動量K(n+1) の差がそれ
ほど大きくないので、両移動の節点(つまり、前後する
2つの指令点のうち後のほうの点)の前後での速度変化
をゆるやかにするためには平均分割法による補間で十分
であるからである。
The reason is as follows. K (n + 1)-
When K (n) is less than or equal to the determination value D, the current movement amount K (n) and the next movement amount K (n + 1) are calculated as in the case of executing step S8 according to the determination result of step S4 described above. Since the difference is not so large, the interpolation by the average division method is sufficient to make the speed change before and after the node of both movements (that is, the latter one of the two command points before and after). Because.

【0031】また、ステップS6の判断の結果としてK
(n+1) −K(n) が判定値Dよりも大きい場合は、さら
に、過去の補間法選択の結果を記憶した内部メモリにア
クセスして、前回の補間法が余り先付け法であったかど
うかを判断する(ステップS7)。この判断の結果とし
て前回の補間法が余り先付け法であったときは平均分割
法を選択し(ステップS8)、前回の補間法が余り先付
け法でない、つまり平均分割法または余り後付け法であ
ったときは余り後付け法を選択し(ステップS10)、
切替スイッチ13をそれぞれ第1補間演算部10および
第3補間演算部12に設定する。
Further, as a result of the determination in step S6, K
If (n + 1) -K (n) is larger than the judgment value D, the internal memory that stores the result of the past interpolation method selection is further accessed to determine whether the previous interpolation method is the pre-emptive method. Is determined (step S7). As a result of this judgment, when the previous interpolation method is the residual pre-addition method, the average division method is selected (step S8), and the previous interpolation method is not the preliminary pre-attachment method, that is, the average division method or the residual post-attachment method. If so, the post-removal method is selected (step S10)
The changeover switches 13 are set to the first interpolation calculation section 10 and the third interpolation calculation section 12, respectively.

【0032】その理由は次のとおりである。K(n+1) −
K(n) が判定値Dよりも大きい場合には、現在移動量K
(n) は次回移動量K(n+1) よりもかなり小さく、両移動
の節点(つまり、後の指令点)の前後での速度変化をゆ
るやかにするためには少なくとも当該2点間の分割ステ
ップの後半部での移動速度は速くなければならないとこ
ろ、前回の補間法が余り先付け法であったときには、前
回の補間では分割ステップの後半部の移動速度が遅いた
め、前回の移動と今回の移動との節点(つまり、前の指
令点)の前後での速度変化を緩和するという観点から
は、当該2点間の分割ステップの前半部での移動速度を
遅くしたほうがよいが、しかしこれでは、節点の前後で
の移動速度がともに遅くなるので誤差が大きくなってし
まう。そこで、両者の調和点として、2点間を平均的に
分割し速度変化のあまりない平均分割法を選択する。他
方、同じ場合において、前回の補間法が余り先付け法以
外(つまり、平均分割法または余り後付け法)であった
ときには、前回の補間における分割ステップの後半部の
移動速度はそれほど遅くはないので、上記のような衡量
はあまり必要でなく、当該2点間の分割ステップの後半
部での移動速度を速くするために、前半部の移動速度を
後半部よりも遅くする余り後付け法を選択する。
The reason is as follows. K (n + 1) −
If K (n) is larger than the judgment value D, the current movement amount K
(n) is much smaller than the next movement amount K (n + 1), and in order to make the speed change before and after the node of both movements (that is, the subsequent command point) at least, divide it between the two points. The movement speed in the latter half of the step must be fast, but when the previous interpolation method was too much of a pre-emptive method, the movement speed in the latter half of the division step was slow in the previous interpolation, so From the viewpoint of reducing the speed change before and after the node (that is, the previous command point) with the movement, it is better to slow down the movement speed in the first half of the division step between the two points, but this is Since the moving speed before and after the node becomes slow, the error becomes large. Therefore, as a harmony point between the two, an average division method in which the two points are averagely divided and the velocity change is not so much is selected. On the other hand, in the same case, when the previous interpolation method is a method other than the remainder pre-attachment method (that is, the average division method or the remainder addition method), the movement speed of the latter half of the division step in the previous interpolation is not so slow, The above-mentioned balance is not necessary so much, and in order to increase the moving speed in the latter half of the dividing step between the two points, a post-addition method in which the moving speed in the first half is slower than that in the latter half is selected.

【0033】なお、ステップS8、ステップS9、およ
びステップS10でそれぞれ選択された補間法はその都
度当該2点間と関係づけて所定の内部メモリに記憶さ
れ、ステップS5とステップS7の判断に供される。
The interpolation methods selected in step S8, step S9, and step S10 are stored in a predetermined internal memory in association with the corresponding points, and are used for the determination in steps S5 and S7. It

【0034】ステップS8、ステップS9、またはステ
ップS10の処理を終えると、終了信号の入力の有無な
どにより、一連の処理動作を終了するかどうかを判断し
(ステップS11)、終了しない場合はステップS1に
戻って、以上の一連の処理を繰り返す。
When the processing of step S8, step S9, or step S10 is completed, it is judged whether or not a series of processing operations is to be completed depending on whether or not an end signal is input (step S11), and if not completed, step S1. Then, the above series of processing is repeated.

【0035】図5は上記の例による実際の動作例を示す
図である。同図からわかるように、指令された各点(節
点)をなめらかにで結んだ曲線(目標軌跡)に対し、直
線補間を平均分割法のみで行う従来の方法に比べ、3種
の補間法から最適な補間法を選択して直線補間を行う本
案のほうが、目標軌跡との誤差が全体的に小さくなって
いる。また、各節点の前後における速度変化もゆるやか
になっている。
FIG. 5 is a diagram showing an example of an actual operation according to the above example. As can be seen from the figure, compared to the conventional method in which the linear interpolation is performed only by the average division method for the curve (target locus) that smoothly connects the commanded points (nodes), three types of interpolation methods are used. The error with respect to the target locus is generally smaller in the case of the present invention in which the optimum interpolation method is selected and linear interpolation is performed. The speed change before and after each node is also gentle.

【0036】したがって、本実施形態によれば、それぞ
れ異なる直線補間法を格納した3つの補間演算部10〜
12を設け、補間法選択判断部14により、指令された
各点の前後における移動量や移動速度の変化を考慮し
て、それらの1つを適宜選択するようにしたので、常に
最適な直線補間法によって位置指令データを直線補間す
ることが可能となり、平均分割法のみで直線補間を行っ
ていた従来の場合に比べて、精度が向上するとともに、
各節点の前後での速度変化がゆるやかになる。つまり、
工具をより高精度でかつよりなめらかに移動させること
ができる(図5参照)。
Therefore, according to the present embodiment, the three interpolation calculation units 10 to 10 storing different linear interpolation methods, respectively.
12 is provided, and the interpolation method selection determination unit 14 is configured to select one of them appropriately in consideration of the change in the moving amount and the moving speed before and after each instructed point, so that the optimum linear interpolation is always performed. The position command data can be linearly interpolated by the method, and the accuracy is improved compared to the conventional case where the linear interpolation is performed only by the average division method.
The speed change before and after each node becomes gentle. That is,
The tool can be moved more accurately and more smoothly (see FIG. 5).

【0037】しかも、上記の効果は直線補間によって得
られるので、スプライン補間を用いる必要はなく、スプ
ライン補間を用いる場合よりも大幅に計算が簡単化さ
れ、既存の性能の機器でも十分に対応でき、コストアッ
プはない。
Moreover, since the above effect is obtained by linear interpolation, it is not necessary to use spline interpolation, the calculation is greatly simplified as compared with the case of using spline interpolation, and it is possible to sufficiently cope with existing performance equipment. There is no cost increase.

【0038】[0038]

【発明の効果】以上述べたように、請求項1記載の発明
によれば、それぞれ異なる直線補間法を格納した3種類
の補間演算部を設け、それらの1つを適宜選択するの
で、スプライン補間などの高度の補間法を用いることな
く、誤差が小さく速度変化が緩和された直線補間を行う
ことができる。
As described above, according to the first aspect of the present invention, three kinds of interpolating operation units storing different linear interpolation methods are provided and one of them is appropriately selected. It is possible to perform linear interpolation with a small error and a reduced speed change without using a high-level interpolation method such as.

【0039】また、請求項2〜6記載の各発明によれ
ば、指令された各点の前後における移動量や移動速度の
変化を考慮して補間法を選択するようにしたので、指令
された2点間を直線補間する際に常に最適な補間法を選
択することができる。
Further, according to each of the inventions described in claims 2 to 6, since the interpolation method is selected in consideration of the change in the moving amount and the moving speed before and after each commanded point, the command is issued. When performing linear interpolation between two points, the optimum interpolation method can always be selected.

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

【図1】 本発明のデータ補正装置を含むNC工作機械
の制御系のブロック図
FIG. 1 is a block diagram of a control system of an NC machine tool including a data correction device of the present invention.

【図2】 3通りの直線補間法の説明図FIG. 2 is an explanatory diagram of three linear interpolation methods.

【図3】 図2の結果をグラフ化した図FIG. 3 is a graph showing the results of FIG.

【図4】 補間法選択判断部の動作を示すフローチャー
FIG. 4 is a flowchart showing the operation of an interpolation method selection determination unit.

【図5】 本案による実際の動作例を示す図FIG. 5 is a diagram showing an actual operation example according to the present invention.

【図6】 従来のNC工作機械の制御系のブロック図FIG. 6 is a block diagram of a control system of a conventional NC machine tool.

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

1…NCテープ(入力手段) 2…位置指令データ作成部(入力手段) 4…目標値テーブル(記憶手段) 10…第1補間演算部(第1補間手段) 11…第2補間演算部(第2補間手段) 12…第3補間演算部(第3補間手段) 13…切替スイッチ(選択手段) 14…補間法選択判断部(選択手段) DESCRIPTION OF SYMBOLS 1 ... NC tape (input means) 2 ... Position command data creation part (input means) 4 ... Target value table (storage means) 10 ... First interpolation calculation part (first interpolation means) 11 ... Second interpolation calculation part (first 2 interpolation means) 12 ... third interpolation calculation section (third interpolation means) 13 ... changeover switch (selection means) 14 ... interpolation method selection determination section (selection means)

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 数値制御工作機械を制御するための、入
力された離散的な位置指令データを直線補間して指示さ
れた2点間の目標位置群を演算するデータ補間装置にお
いて、 離散的な位置指令データを入力する入力手段と、 平均分割の手法により、前記入力手段によって入力され
た位置指令データを直線補間する第1補間手段と、 余り先付けの手法により、前記入力手段によって入力さ
れた位置指令データを直線補間する第2補間手段と、 余り後付けの手法により、前記入力手段によって入力さ
れた位置指令データを直線補間する第3補間手段と、 前記入力手段によって入力された位置指令データに基づ
いて、前記第1補間手段、前記第2補間手段、および前
記第3補間手段のいずれか1つを選択する選択手段と、 前記選択手段によって選択された補間手段からの出力を
記憶する記憶手段と、 を有することを特徴とするデータ補間装置。
1. A data interpolating device for controlling a numerically controlled machine tool, which linearly interpolates input discrete position command data to calculate a target position group between two designated points. Input means for inputting position command data, first interpolating means for linearly interpolating the position command data input by the input means by a method of average division, and position input by the input means by a method of remainder heading Second interpolating means for linearly interpolating the command data, third interpolating means for linearly interpolating the position command data input by the input means by a method with a remainder, and based on the position command data input by the input means A selection means for selecting any one of the first interpolation means, the second interpolation means, and the third interpolation means; A data interpolating device comprising: a storage unit that stores the output from the selected interpolating unit.
【請求項2】 前記選択手段は、入力された位置指令デ
ータから2点間の移動量を逐次算出し、求めた現在の移
動量と次回の移動量を比較し、それらの差の絶対値があ
らかじめ設定された判定値以下であるときに、前記第1
補間手段を選択することを特徴とする請求項1記載のデ
ータ補間装置。
2. The selecting means successively calculates the movement amount between two points from the input position command data, compares the obtained movement amount and the next movement amount, and obtains the absolute value of the difference between them. When it is less than or equal to a preset judgment value, the first
2. The data interpolating device according to claim 1, wherein the interpolating means is selected.
【請求項3】 前記選択手段は、入力された位置指令デ
ータから2点間の移動量を逐次算出し、求めた現在の移
動量と次回の移動量を比較し、現在の移動量から次回の
移動量を引いた値があらかじめ設定された判定値以上で
あり、かつ、前回の補間法が余り後付け法であったとき
に、前記第1補間手段を選択することを特徴とする請求
項1記載のデータ補間装置。
3. The selecting means successively calculates the amount of movement between two points from the input position command data, compares the calculated current amount of movement with the next amount of movement, and calculates the next amount of movement from the current amount of movement. 2. The first interpolation means is selected when the value obtained by subtracting the movement amount is equal to or greater than a preset determination value and the previous interpolation method is a post-replacement method. Data interpolator.
【請求項4】 前記選択手段は、入力された位置指令デ
ータから2点間の移動量を逐次算出し、求めた現在の移
動量と次回の移動量を比較し、現在の移動量から次回の
移動量を引いた値があらかじめ設定された判定値以上で
あり、かつ、前回の補間法が余り後付け法以外であった
ときに、前記第2補間手段を選択することを特徴とする
請求項1記載のデータ補間装置。
4. The selecting means successively calculates the amount of movement between two points from the input position command data, compares the calculated current amount of movement with the next amount of movement, and calculates the next amount of movement from the current amount of movement. The second interpolation means is selected when the value obtained by subtracting the movement amount is equal to or greater than a preset determination value and the previous interpolation method is other than the post-replacement method. The described data interpolator.
【請求項5】 前記選択手段は、入力された位置指令デ
ータから2点間の移動量を逐次算出し、求めた現在の移
動量と次回の移動量を比較し、次回の移動量から現在の
移動量を引いた値があらかじめ設定された判定値以上で
あり、かつ、前回の補間法が余り先付け法であったとき
に、前記第1補間手段を選択することを特徴とする請求
項1記載のデータ補間装置。
5. The selecting means sequentially calculates the amount of movement between two points from the input position command data, compares the calculated current amount of movement with the next amount of movement, and calculates the current amount of movement from the next amount of movement. 2. The first interpolating means is selected when the value obtained by subtracting the movement amount is equal to or greater than a preset determination value and the previous interpolation method is a surplus advance method. Data interpolator.
【請求項6】 前記選択手段は、入力された位置指令デ
ータから2点間の移動量を逐次算出し、求めた現在の移
動量と次回の移動量を比較し、次回の移動量から現在の
移動量を引いた値があらかじめ設定された判定値以上で
あり、かつ、前回の補間法が余り先付け法以外であった
ときに、前記第3補間手段を選択することを特徴とする
請求項1記載のデータ補間装置。
6. The selecting means sequentially calculates the amount of movement between two points from the input position command data, compares the calculated current amount of movement with the next amount of movement, and calculates the current amount of movement from the next amount of movement. The third interpolating means is selected when the value obtained by subtracting the movement amount is equal to or greater than a preset determination value and the previous interpolation method is other than the pre-prediction method. The described data interpolator.
JP28053495A 1995-10-27 1995-10-27 Data interpolation device Withdrawn JPH09128029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28053495A JPH09128029A (en) 1995-10-27 1995-10-27 Data interpolation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28053495A JPH09128029A (en) 1995-10-27 1995-10-27 Data interpolation device

Publications (1)

Publication Number Publication Date
JPH09128029A true JPH09128029A (en) 1997-05-16

Family

ID=17626434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28053495A Withdrawn JPH09128029A (en) 1995-10-27 1995-10-27 Data interpolation device

Country Status (1)

Country Link
JP (1) JPH09128029A (en)

Similar Documents

Publication Publication Date Title
US6330493B1 (en) Control system for synchronously cooperative operation of plurality of robots
JP5417392B2 (en) Numerical controller
JPH08305430A (en) Freely curved line interpolating system
JP2005301440A (en) Machining time calculating device
EP0470564B1 (en) Method of and apparatus for controlling motion of a machine member
US4683543A (en) Time-based interpolation control of a robot
JP3853752B2 (en) Simulation device
JP2662864B2 (en) Industrial robot controller
US4458326A (en) Method and apparatus for circular interpolation
JP3513100B2 (en) Control device
JPH02146607A (en) Interpolation system for nc transfer command
US7580770B2 (en) Numerical controller
JPH07302110A (en) Production of robot operation program
JPH09128029A (en) Data interpolation device
US6745098B2 (en) Machining based on master program merged from parts programs
JP4560191B2 (en) Numerical controller
JP3660038B2 (en) Numerical controller
JP7415093B1 (en) Control device and computer readable recording medium
JPH0561524A (en) Numerical controller
JPH0561516A (en) Numerical controller
JPH05165514A (en) Interpolating system for numerical controller
JP3164512B2 (en) Numerical control unit
JP3195646B2 (en) Motor drive control device
JPH06110532A (en) Method for controlling position and device thereof
JP2000347715A (en) Numerical controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030107