JP2011186939A - Numerical control device and production system - Google Patents

Numerical control device and production system Download PDF

Info

Publication number
JP2011186939A
JP2011186939A JP2010053569A JP2010053569A JP2011186939A JP 2011186939 A JP2011186939 A JP 2011186939A JP 2010053569 A JP2010053569 A JP 2010053569A JP 2010053569 A JP2010053569 A JP 2010053569A JP 2011186939 A JP2011186939 A JP 2011186939A
Authority
JP
Japan
Prior art keywords
compression
determination
command
allowable
post
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
Application number
JP2010053569A
Other languages
Japanese (ja)
Other versions
JP2011186939A5 (en
JP5268974B2 (en
Inventor
Shinya Nishino
慎哉 西野
Naoki Nakamura
直樹 中村
Tomonori Sato
智典 佐藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2010053569A priority Critical patent/JP5268974B2/en
Publication of JP2011186939A publication Critical patent/JP2011186939A/en
Publication of JP2011186939A5 publication Critical patent/JP2011186939A5/ja
Application granted granted Critical
Publication of JP5268974B2 publication Critical patent/JP5268974B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide, in a numerical control device configured to perform processing by compressing a plurality of instruction paths having short path lengths into one, the numerical control device which can perform the processing without deteriorating the processing accuracy at high speed by preventing change in the feed rate of a tool due to the compression. <P>SOLUTION: The device includes a determination allowable feed rate calculation part 3, a compression propriety determination part 4, a compression processing part 5, and an interpolation allowable feed rate calculation part 7. The determination allowable feed rate calculation part 3 calculates, based on an instruction path 12 or/and an after-compression instruction path, a determination pre-compression allowable feed rate or/and a determination after-compression allowable feed rate. The compression propriety determination part 4 determines the propriety of compression based on the determination pre-compression allowable feed rate or/and the determination after-compression allowable feed rate. The compression processing part 5 forms an after-compression instruction path 16 by compressing a plurality of instruction paths into one path based on a compression propriety determination result 15 in the compression propriety determination part 4, and the interpolation allowable feed rate calculation part 7 calculates an interpolation allowable feed state based on the after-compression instruction path 16. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

この発明は、工作機械を数値制御(Numerical Control:NC)する数値制御装置、又は数値制御装置を備えた生産システムに関し、特に連続した複数の指令経路を一つの指令経路に置き換える(圧縮する)ことで、高速加工を実現する数値制御装置又は数値制御装置を備えた生産システムに関する。   The present invention relates to a numerical control device for numerically controlling a machine tool (Numerical Control: NC) or a production system equipped with a numerical control device, and more particularly to replacing (compressing) a plurality of continuous command paths with one command path. Thus, the present invention relates to a numerical control device that realizes high-speed machining or a production system including the numerical control device.

数値制御装置を備えた工作機械で3次元形状の加工を行なう場合、自由曲面を連続した複数の指令経路で近似した加工プログラムに従って加工が行なわれることがある。加工プログラムは、簡単な形状であれば手動で作成されることもあるが、自由曲面を含む3次元形状の場合にはCAM(Computer Aided Manufacturing)などで作成されるのが一般的である。   When machining a three-dimensional shape with a machine tool equipped with a numerical control device, machining may be performed according to a machining program that approximates a free-form surface with a plurality of continuous command paths. The machining program may be created manually if it is a simple shape, but is generally created by CAM (Computer Aided Manufacturing) in the case of a three-dimensional shape including a free-form surface.

CAMを用いて加工プログラムを作成する際には、自由曲面をできるだけ正確に表現するために、1つの指令経路の長さ(以下、経路長という)を短くすることがある。しかし、工作機械の数値制御装置のデータ処理能力により一定時間内に処理できる指令経路数は制限されるため、経路長が短くなると、工具が移動できる距離、つまり工具の送り速度(以下、実加工送り速度という)が制限されることになる。   When a machining program is created using CAM, the length of one command path (hereinafter referred to as path length) may be shortened in order to represent a free-form surface as accurately as possible. However, the number of command paths that can be processed within a certain period of time is limited by the data processing capability of the numerical control device of the machine tool. Therefore, when the path length is shortened, the distance that the tool can move, that is, the tool feed speed (hereinafter, actual machining) The feed rate) is limited.

そこで、従来の数値制御装置では、同一直線区間にある連続した複数の指令経路を1つの指令経路(以下、圧縮後指令経路という)に圧縮することで経路長を長くし、複数の指令経路を1つに圧縮した圧縮後指令経路に基づいて許容送り速度計算や経路補正などの処理を行うことで処理負荷を軽減し、高速加工を実現していた。ここで、複数の連続した指令経路が同一直線区間にあるか否か、すなわち圧縮の可否判定は、単に局所的な指令経路の形状情報に基づいて判定が行われていた。例えば、下記特許文献1では、線分の傾きの変化量が所定の値以上である場合に圧縮不可と判定していた。   Therefore, in the conventional numerical control device, a plurality of continuous command paths in the same straight section are compressed into one command path (hereinafter referred to as a post-compression command path) to increase the path length. By performing processing such as allowable feed speed calculation and path correction based on the compressed compressed command path, the processing load is reduced and high-speed machining is realized. Here, whether or not a plurality of consecutive command paths are in the same straight line section, that is, whether or not compression is possible has been determined simply based on the shape information of the local command path. For example, in Patent Document 1 below, it is determined that compression is not possible when the amount of change in the slope of the line segment is greater than or equal to a predetermined value.

特許第3459155号公報Japanese Patent No. 3459155

しかしながら、上記方法では圧縮による経路誤差を所定の値以内にすることは可能であるが、圧縮による許容送り速度(詳細については後述)の変化は考慮されていないため、圧縮により工具への指令送り速度である工具指令送り速度が変化するおそれがある(ここで、工具指令送り速度とは、数値制御装置のデータ処理能力とは関係なく決定される送り速度であり、加工プログラムにより指令された指令送り速度と、指令経路により決定される許容送り速度の小さい方を指す。また、実加工送り速度とは実際に工具が移動する送り速度であり、工具指令送り速度と、数値制御装置のデータ処理能力によって制限される最大送り速度の小さい方を指す)。例えば図12(a)に示すような緩やかなコーナ形状をした指令経路の場合、指令経路N2とN3の傾きの変化が小さければ指令経路N2とN3は圧縮され、図12(b)に示すように圧縮後指令経路N’2となる。ここで、図中の矢印は許容送り速度を指し、矢印の長さは許容送り速度の大きさを示す。一般的に、コーナ等の加速度の大きい点で減速するために工具指令送り速度は指令経路に基づいた許容送り速度と、加工プログラムにより指令された指令送り速度の小さい方となる。そのため、指令位置P2の許容送り速度が指令送り速度よりも小さい場合、図12(a)に示す圧縮前の指令経路における指令位置P2では指令位置P2の許容送り速度で減速されるのに対し、図12(b)に示す圧縮後指令経路では圧縮後指令経路N’1と圧縮後指令経路N’2、圧縮後指令経路N’2と圧縮後指令経路N’3のコーナで許容送り速度計算が行われるため、圧縮前の指令経路に対しコーナが緩やかになり許容送り速度が高くなるため圧縮により工具指令送り速度が変化してしまう。また、図12(a)に示す圧縮前の指令経路では指令位置P2で許容送り速度にて減速しているのに対し、図12(b)に示す圧縮後指令経路では指令位置P1、P3で許容送り速度にて減速しているため、減速位置がずれてしまう。このような問題は指令送り速度が大きい加工プログラムで顕著にあらわれ、コーナ等で減速されず、加工精度が悪化する問題が発生する。また、例えば図13(a)に示すような曲線指令経路の場合、指令経路N1、N2、N3、N4、N5は滑らかな曲線であるが、N1、N2、N3およびN4、N5が圧縮され、図13(b)に示すように圧縮後指令経路N’1、N’2に圧縮されると、N’1とN’2の線分の傾きの変化は大きくなり、指令位置P3での許容送り速度が必要以上に小さくなり、工具指令送り速度も小さくなるおそれがある。上記二つの例にあげた課題は従来の手法でも圧縮可能な線分の傾きの変化を小さくすることなどで対処できるが、圧縮可能な線分の傾きの変化を小さくすると、指令経路を圧縮する効果が失われ、高速加工を行えなくなるといった問題が発生する。   However, in the above method, it is possible to make the path error due to compression within a predetermined value, but since the change of the allowable feed speed (details will be described later) due to compression is not taken into consideration, the command feed to the tool by compression is not considered. There is a possibility that the tool command feed speed, which is the speed, may change (here, the tool command feed speed is a feed speed determined irrespective of the data processing capability of the numerical controller, and is a command commanded by the machining program. The smaller of the feed rate and the allowable feed rate determined by the command path, and the actual machining feed rate is the feed rate at which the tool actually moves, and the tool command feed rate and the data processing of the numerical controller The smaller of the maximum feed speed limited by the capacity). For example, in the case of a command path having a gentle corner shape as shown in FIG. 12A, the command paths N2 and N3 are compressed if the change in inclination of the command paths N2 and N3 is small, as shown in FIG. The post-compression command path N′2 is obtained. Here, the arrow in the figure indicates the allowable feed speed, and the length of the arrow indicates the size of the allowable feed speed. Generally, in order to decelerate at a point where acceleration is large, such as a corner, the tool command feed speed is the smaller of the allowable feed speed based on the command path and the command feed speed commanded by the machining program. Therefore, when the allowable feed speed at the command position P2 is smaller than the command feed speed, the command position P2 in the command path before compression shown in FIG. 12A is decelerated at the allowable feed speed at the command position P2. In the post-compression command path shown in FIG. 12B, the allowable feed speed is calculated at the corners of the post-compression command path N′1 and post-compression command path N′2, and the post-compression command path N′2 and post-compression command path N′3. Therefore, the corner becomes gentle with respect to the command path before compression and the allowable feed speed becomes high, so that the tool command feed speed changes due to compression. Further, in the command path before compression shown in FIG. 12 (a), the vehicle is decelerated at the allowable feed speed at the command position P2, whereas in the command path after compression shown in FIG. 12 (b), at command positions P1 and P3. Since the vehicle is decelerating at the allowable feed speed, the deceleration position is shifted. Such a problem appears remarkably in a machining program having a high command feed rate, and is not decelerated at a corner or the like, resulting in a problem that machining accuracy deteriorates. For example, in the case of a curve command path as shown in FIG. 13A, the command paths N1, N2, N3, N4, and N5 are smooth curves, but N1, N2, N3, and N4 and N5 are compressed. As shown in FIG. 13 (b), when compressed into post-compression command paths N′1 and N′2, the change in the slope of the line segment of N′1 and N′2 becomes large, and is allowed at the command position P3. There is a possibility that the feed speed becomes smaller than necessary and the tool command feed speed becomes smaller. The problems mentioned in the above two examples can be dealt with by reducing the change in the slope of the compressible line segment even with the conventional method, but if the change in the slope of the compressible line segment is reduced, the command path is compressed. There is a problem that the effect is lost and high-speed machining cannot be performed.

さらに、一般的に、連続した複数の指令経路で近似された自由曲面の許容送り速度は、指令経路の形状に応じた正確な許容送り速度を算出するために大域的な形状を参照し、複数の指令経路に基づいて算出する場合がある。その場合、上記従来の圧縮可否判定のような局所的な指令経路の形状情報のみに基づいた圧縮可否判定では、圧縮による工具指令送り速度の変化を防止することはできない。   Furthermore, in general, the allowable feed speed of a free-form surface approximated by a plurality of consecutive command paths is determined by referring to a global shape in order to calculate an accurate allowable feed speed according to the shape of the command path. May be calculated based on the command path. In that case, the change in the tool command feed speed due to the compression cannot be prevented by the compression propriety determination based only on the local command path shape information as in the conventional compression propriety determination.

実際に工具が移動する軌跡である実工具軌跡には実加工送り速度に応じた軌跡誤差が含まれるため、圧縮により工具指令送り速度が変化した経路と変化しなかった経路が混在し、隣り合う経路で実加工送り速度が異なると、経路ごとに実加工軌跡が異なり被加工材に跡が残るなど、加工精度に悪影響を及ぼす。そのため、自由曲面を多く有する金型加工等では圧縮による経路誤差の発生よりも実加工送り速度を変化させないことが重要となる。   The actual tool trajectory, which is the actual trajectory of the tool, contains a trajectory error corresponding to the actual machining feedrate, so the path where the tool command feedrate has changed due to compression and the path that has not changed are mixed and adjacent. If the actual machining feed rate differs in the path, the actual machining trajectory differs from path to path, leaving a mark on the workpiece, which adversely affects machining accuracy. For this reason, it is more important not to change the actual machining feed rate than the generation of a path error due to compression in die machining having many free-form surfaces.

本発明は、かかる問題点を解決するためになされたものであり、連続した複数の指令経路を一つの経路に圧縮して加工を行う数値制御装置、又は数値制御装置を備えた生産システムにおいて、圧縮による工具指令送り速度の変化を防止、ひいては実加工送り速度の変化を防止し、加工精度を悪化させることなく高速に加工を行わせることが可能な数値制御装置、又は数値制御装置を備えた生産システムを得ることを目的としている。   The present invention was made to solve such problems, in a numerical control device that performs processing by compressing a plurality of continuous command paths into one path, or a production system including a numerical control apparatus, Equipped with a numerical control device or numerical control device that prevents changes in the tool command feed speed due to compression, and in turn prevents changes in the actual machining feed speed, and enables high-speed machining without deteriorating machining accuracy. The goal is to obtain a production system.

上述した課題を解決し、目的を達成するために、この発明にかかる数値制御装置は、連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、圧縮後指令経路に基づいて工作機械を制御する数値制御装置において、数値制御装置は、判定用許容送り速度算出部と圧縮可否判定部と圧縮処理部と補間用許容送り速度算出部とを有し、判定用許容送り速度算出部は、指令経路又は/および圧縮後指令経路から判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を算出し、圧縮可否判定部は、判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度に基づいて圧縮の可否を判定し、圧縮処理部は、圧縮可否判定部の圧縮可否判定結果が圧縮可のときに、連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、補間用許容送り速度算出部は、圧縮後指令経路から補間用許容送り速度を算出することを特徴とする。   In order to solve the above-described problems and achieve the object, a numerical control device according to the present invention creates a post-compression command path by compressing a plurality of continuous command paths into one path, and based on the post-compression command path In the numerical control device that controls the machine tool, the numerical control device includes a determination allowable feed rate calculation unit, a compression possibility determination unit, a compression processing unit, and an interpolation allowable feed rate calculation unit, and the determination allowable feed rate. The calculation unit calculates a pre-compression allowable feed speed for determination or / and a post-compression allowable feed speed from the command path or / and the post-compression command path, and the compressibility determination unit determines whether the pre-compression allowable feed speed for determination or / The compression processing unit determines whether or not compression is possible based on the post-compression allowable feed speed for determination, and the compression processing unit converts a plurality of consecutive command paths into one path when the compression availability determination result of the compression availability determination unit is compressible. Compressed pressure Create a post command path, interpolation permissible feed speed calculating unit, and calculates the interpolation permissible feed speed from the post-compression command path.

また、この発明にかかる生産システムは、連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、圧縮後指令経路に基づいて工作機械を制御する生産システムにおいて、生産システムは、判定用許容送り速度算出部と圧縮可否判定部と圧縮処理部と圧縮後データ保存部を備える圧縮装置と、補間用許容送り速度算出部を備える数値制御装置からなり、判定用許容送り速度算出部は、指令経路又は/および圧縮後指令経路から判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を算出し、圧縮可否判定部は、判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度に基づいて圧縮の可否を判定し、圧縮処理部は、圧縮可否判定部での圧縮可否判定結果が圧縮可のときに、連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、圧縮後データ保存部は、圧縮後指令経路を圧縮後データバッファに保存し、補間用許容送り速度算出部は、圧縮後データバッファに保存された圧縮後指令経路から補間用許容送り速度を算出することを特徴とする。   The production system according to the present invention is a production system for creating a post-compression command path obtained by compressing a plurality of continuous command paths into one path, and controlling the machine tool based on the post-compression command path. A determination allowable feed speed calculation unit, a compression determination unit, a compression processing unit, and a compression controller including a post-compression data storage unit, and a numerical control device including an interpolation allowable feed rate calculation unit. The calculation unit calculates a permissible pre-compression allowable feed speed or / and a post-compression allowable feed speed from the command path or / and the post-compression command path, and the compressibility determination unit determines whether the pre-compression permissible feed speed for determination or / and The compression processing unit determines whether or not compression is possible based on the post-compression allowable feed speed for determination, and the compression processing unit determines a plurality of continuous command paths when the compression availability determination result in the compression availability determination unit is compressible. The post-compression command path compressed into one path is created, the post-compression data storage unit stores the post-compression command path in the post-compression data buffer, and the interpolation allowable feed speed calculation unit is stored in the post-compression data buffer. An allowable feed speed for interpolation is calculated from the post-compression command path.

この発明によれば、圧縮処理部の前に判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を求め、前記判定用圧縮前許容送り速度又は/および前記判定用圧縮後許容送り速度に基づいて工具指令送り速度が変化しないように圧縮の可否判定を行うため、圧縮による実加工送り速度の変化を防止し、高精度加工を実現することが可能である。   According to this invention, the pre-compression allowable feed speed for determination or / and the post-compression allowable feed speed are obtained before the compression processing unit, and the pre-determination allowable feed speed for determination or / and the post-compression allowable feed after determination are determined. Since it is determined whether or not the compression can be performed based on the speed so that the tool command feed speed does not change, it is possible to prevent a change in the actual machining feed speed due to the compression and realize high-precision machining.

図1は、本発明に係る数値制御装置の実施の形態1の概略構成を示すブロック図。FIG. 1 is a block diagram showing a schematic configuration of a first embodiment of a numerical control apparatus according to the present invention. 図2は、本発明の実施の形態1における圧縮後指令経路作成の処理の流れを示すフローチャート。FIG. 2 is a flowchart showing a flow of processing for creating a post-compression command path in the first embodiment of the present invention. 図3は、本発明の実施の形態1における圧縮後指令経路の説明図。FIG. 3 is an explanatory diagram of a post-compression command path in the first embodiment of the present invention. 図4は、本発明の実施の形態1における許容送り速度算出の処理の流れを示すフローチャート。FIG. 4 is a flowchart showing a flow of processing for calculating an allowable feed speed in the first embodiment of the present invention. 図5は、本発明の実施の形態1における工具推定位置の説明図。FIG. 5 is an explanatory diagram of a tool estimated position in the first embodiment of the present invention. 図6は、本発明の実施の形態1における加速度および法線加速度の算出方法の説明図。FIG. 6 is an explanatory diagram of a method of calculating acceleration and normal acceleration according to Embodiment 1 of the present invention. 図7は、本発明の実施の形態1における圧縮可否判定の処理の流れを示すフローチャート。FIG. 7 is a flowchart showing a flow of processing for determining whether or not compression is possible in Embodiment 1 of the present invention. 図8は、本発明の実施の形態1における工具移動経路の説明図。FIG. 8 is an explanatory diagram of a tool movement path in the first embodiment of the present invention. 図9は、本発明の実施の形態1における補間処理の流れを示すフローチャート。FIG. 9 is a flowchart showing a flow of interpolation processing in the first embodiment of the present invention. 図10は、本発明の実施の形態1における工具位置算出方法の説明図。FIG. 10 is an explanatory diagram of a tool position calculation method according to the first embodiment of the present invention. 図11は、本発明の実施の形態2の概略構成を示すブロック図。FIG. 11 is a block diagram showing a schematic configuration of the second embodiment of the present invention. 図12は、先行例におけるコーナ経路圧縮の説明図。FIG. 12 is an explanatory diagram of corner path compression in the preceding example. 図13は、先行例における曲線経路圧縮の説明図。FIG. 13 is an explanatory diagram of curve path compression in the preceding example.

以下に、本発明に係る数値制御装置の実施の形態1を図面に基づいて詳細に説明する。なお、この実施の形態1によりこの発明が限定されるものではない。   Hereinafter, a first embodiment of a numerical controller according to the present invention will be described in detail with reference to the drawings. The present invention is not limited to the first embodiment.

実施の形態1.
図1は、本発明に係る数値制御装置の実施の形態1の概略構成を示すブロック図である。図1において、数値制御装置100には、加工プログラム読み取り部2、判定用許容送り速度算出部3、圧縮可否判定部4、圧縮処理部5、移動データ作成部6、補間用許容送り速度算出部7、補間処理部8が設けられている。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a schematic configuration of a first embodiment of a numerical control apparatus according to the present invention. In FIG. 1, a numerical control device 100 includes a machining program reading unit 2, a determination allowable feed rate calculation unit 3, a compression availability determination unit 4, a compression processing unit 5, a movement data creation unit 6, and an interpolation allowable feed rate calculation unit. 7 and an interpolation processing unit 8 are provided.

まず、加工プログラム読み取り部2では、加工プログラム1より指令されたプログラム命令11を読み取り、指令経路12および圧縮前経路補正・動作データ13を出力する。なお、この経路補正・動作データ13には、加工プログラムより指令された指令経路12を工具移動経路へ補正するための情報、指令経路の指令送り速度や動作モードなど指令経路12を移動中の動作を決定するために必要な情報が含まれている。   First, the machining program reading unit 2 reads a program command 11 commanded by the machining program 1 and outputs a command path 12 and a pre-compression path correction / operation data 13. The path correction / operation data 13 includes information for correcting the command path 12 commanded by the machining program into a tool movement path, the command path 12 command feed speed and operation mode, etc. Contains the information needed to determine.

判定用許容送り速度算出部3では、加工プログラム読み取り部2にて出力された指令経路12に基づいて判定用許容送り速度14として判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を算出する。なお、判定用圧縮後許容送り速度を算出する際には暫定的に指令経路12を圧縮した圧縮後指令経路を作成し、この圧縮後指令経路に基づいて判定用圧縮後許容送り速度を算出する。   In the determination allowable feed rate calculation unit 3, based on the command path 12 output by the machining program reading unit 2, the determination allowable feed rate 14 is determined as the determination allowable feed rate before compression and / or the determination allowable post-compression allowable feed rate. Is calculated. When calculating the post-compression allowable feed speed for determination, a post-compression command path that temporarily compresses the command path 12 is created, and the post-compression allowable feed speed for determination is calculated based on the post-compression command path. .

圧縮可否判定部4では、判定用許容送り速度算出部3にて出力された判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度に基づいて圧縮の可否を判定し、圧縮可否判定結果15を出力する。   The compression propriety determination unit 4 determines whether or not compression is possible based on the pre-determination allowable feed rate for determination and / or the post-determination allowable permissible feed rate output from the determination allowable feed rate calculation unit 3, and determines whether or not compression is possible. The result 15 is output.

圧縮処理部5では、圧縮可否判定部4から出力された圧縮可否判定結果15に基づいて、加工プログラム読み取り部2から出力された連続した複数の指令経路12の始点と終点とを結ぶ新たな1つの圧縮後指令経路16を出力する。また、圧縮処理部5では、圧縮後指令経路16に対する経路補正・動作データ17も出力する。なお、圧縮可否判定部4では、後述するように圧縮前経路補正・動作データ13が異なる指令経路12は圧縮不可と判定するため、圧縮処理部5では圧縮前経路補正・動作データ13が異なる指令経路12同士は圧縮しないため、圧縮後指令経路16に含まれるどの指令経路12に対する圧縮前経路補正・動作データ13を圧縮後経路補正・動作データ17としてもよい。   In the compression processing unit 5, based on the compression determination result 15 output from the compression determination unit 4, a new 1 that connects the start points and end points of a plurality of continuous command paths 12 output from the machining program reading unit 2. Two post-compression command paths 16 are output. The compression processing unit 5 also outputs route correction / operation data 17 for the post-compression command route 16. Note that the compression possibility determination unit 4 determines that the command path 12 with different pre-compression path correction / operation data 13 is not compressible as will be described later. Therefore, the compression processing section 5 has a command with different pre-compression path correction / operation data 13. Since the paths 12 are not compressed, the pre-compression path correction / operation data 13 for any command path 12 included in the post-compression command path 16 may be used as the post-compression path correction / operation data 17.

移動データ作成部6では、圧縮処理部5から出力された圧縮後指令経路16を圧縮後経路補正・動作データ17に基づいて工具移動経路へ補正し、工具移動経路を補間するために必要な工具移動データ18を出力する。なお、工具移動データ18とは、補間に必要な工具移動の経路および移動のデータであり、具体的には工具位置を決める各軸の始点や終点、始点から終点までの経路長、工具移動経路の単位方向ベクトル、指令送り速度などの工作機械の動作を決定するために必要な情報が含まれる。   The movement data creation unit 6 corrects the post-compression command path 16 output from the compression processing unit 5 to a tool movement path based on the post-compression path correction / operation data 17, and a tool necessary for interpolating the tool movement path. The movement data 18 is output. The tool movement data 18 is a tool movement path and movement data necessary for interpolation. Specifically, the start point and end point of each axis for determining the tool position, the path length from the start point to the end point, the tool movement path Information necessary for determining the operation of the machine tool, such as a unit direction vector and a command feed speed, is included.

補間用許容送り速度算出部7では、移動データ作成部6から出力された工具移動データ18に基づいて補間用許容送り速度19を出力する。   The interpolation allowable feed speed calculation unit 7 outputs an interpolation allowable feed speed 19 based on the tool movement data 18 output from the movement data creation unit 6.

そして、補間処理部8では、移動データ作成部6から出力された工具移動データ18および補間用許容送り速度算出部7から出力された補間用許容送り速度19に基づいて工具移動経路上を補間し、工具位置20を図示しない加減速処理部およびサーボ制御装置へ出力することで、図示しない各軸の可動部を駆動させることができる。次に、この実施の形態1に係る数値制御装置の動作について説明する。   Then, the interpolation processing unit 8 interpolates the tool movement path based on the tool movement data 18 output from the movement data creation unit 6 and the allowable feed speed 19 for interpolation output from the interpolation allowable feed speed calculation unit 7. By outputting the tool position 20 to an acceleration / deceleration processing unit and a servo control device (not shown), the movable unit of each axis (not shown) can be driven. Next, the operation of the numerical control apparatus according to the first embodiment will be described.

<加工プログラム読み取り部、判定用許容送り速度算出部、圧縮可否判定部、圧縮処理部の動作>
先ず、圧縮処理部5から出力される圧縮後指令経路16および圧縮後経路補正・動作データ17の作成手順について説明する。図2は、この実施の形態1において圧縮処理部5から出力される圧縮後指令経路16および圧縮後経路補正・動作データ17の作成処理の流れの一例を表すフローチャートである。なお、指令経路番号i(加工プログラムから指令されたi番目)の指令経路をN(i)、複数の指令経路N(i)を圧縮した圧縮後指令経路番号j(j番目)の圧縮後指令経路をN’(j)としている。図3は、この実施の形態1におけるN(i)とN’(j)との関係の一例を表す図である。
<Operation of Machining Program Reading Unit, Determination Allowable Feed Speed Calculation Unit, Compressibility Determination Unit, Compression Processing Unit>
First, a procedure for creating the post-compression command path 16 and post-compression path correction / operation data 17 output from the compression processing unit 5 will be described. FIG. 2 is a flowchart showing an example of the flow of processing for creating the post-compression command path 16 and post-compression path correction / operation data 17 output from the compression processing unit 5 in the first embodiment. Note that the command path number i (i-th command from the machining program) is N (i), and the compressed command path number j (j-th) command path is a compressed command path number j (j-th). The route is N ′ (j). FIG. 3 is a diagram illustrating an example of the relationship between N (i) and N ′ (j) in the first embodiment.

先ず、ステップS1では、加工プログラム読み取り部2にて、加工プログラム1の実行が初回か否かを判断し、初回の場合にはステップS2へ進み、指令経路N(i)の指令経路番号iを0で、圧縮後指令経路N’(j)の圧縮後指令経路番号jを1で初期化し、ステップS3へ進む。一方、加工プログラム1の実行が初回でない場合には、ステップS3へ進む。   First, in step S1, the machining program reading unit 2 determines whether or not the machining program 1 is executed for the first time. If it is the first time, the process proceeds to step S2, and the command path number i of the command path N (i) is set. With 0, the post-compression command path number j of the post-compression command path N ′ (j) is initialized with 1, and the process proceeds to step S3. On the other hand, if the machining program 1 is not executed for the first time, the process proceeds to step S3.

ステップS3では加工プログラム読み取り部2にて指令経路番号iをインクリメントし、ステップS4では加工プログラム読み取り部2にて加工プログラム1より指令されたプログラム命令11から指令経路N(i)を読み取る。   In step S3, the command path number i is incremented by the machining program reading unit 2, and in step S4, the command path N (i) is read from the program command 11 commanded by the machining program 1 by the machining program reading unit 2.

ステップS5では、加工プログラム読み取り部2にて、圧縮後指令経路N’(j)の圧縮処理が初回か否か、つまり圧縮後指令経路N’(j)に含まれる指令経路N(i)が1つであるか否かを判定し、圧縮処理が初回の場合にはステップS6へと進む。一方、圧縮が初回でない場合にはステップS7に進む。ステップS7の処理は後述することにし、ステップS6に進んだ場合の処理について説明する。   In step S5, the machining program reading unit 2 determines whether or not the compression process of the post-compression command path N ′ (j) is the first time, that is, the command path N (i) included in the post-compression command path N ′ (j). It is determined whether or not the number is 1, and if the compression process is the first time, the process proceeds to step S6. On the other hand, if the compression is not the first time, the process proceeds to step S7. The processing in step S7 will be described later, and the processing in the case of proceeding to step S6 will be described.

ステップS6では、圧縮処理部5にて、圧縮後指令経路N’(j)の始点を指令経路N(i)の始点で初期化する。ステップS9では、圧縮処理部5にて、圧縮後指令経路N’(j)の終点に指令経路N(i)の終点を設定し、ステップS3の加工プログラム読み取り部2の処理へ戻る。   In step S6, the compression processor 5 initializes the start point of the post-compression command path N ′ (j) with the start point of the command path N (i). In step S9, the compression processing unit 5 sets the end point of the command path N (i) as the end point of the post-compression command path N ′ (j), and the process returns to the processing program reading unit 2 in step S3.

ここまでの処理で圧縮後指令経路N’(j)の作成が行なわれている。なお、ステップS5の判断でステップS6に進んだ場合には、圧縮後指令経路N’(j)と指令経路N(i)は同じ指令経路となっている。   The post-compression command path N ′ (j) is created by the processing so far. If the process proceeds to step S6 as determined in step S5, the post-compression command path N '(j) and the command path N (i) are the same command path.

ステップS3に戻った後の処理の流れについてさらに説明を続ける。ステップS9から戻ったステップS3では、指令経路番号iをインクリメントし、ステップS4で加工プログラム1より指令されたプログラム命令11から指令経路N(i)を読み取る。つまり、前回ステップS4で読み取った指令経路の次の指令経路を読み取る。ステップS5の判断では、既に前回の指令経路N(i−1)の圧縮処理を行っているため、ステップS7に進むことになる。   Further description of the flow of processing after returning to step S3 will be continued. In step S3 returned from step S9, the command path number i is incremented, and the command path N (i) is read from the program command 11 commanded by the machining program 1 in step S4. That is, the command path next to the command path read at the previous step S4 is read. In the determination in step S5, since the previous command path N (i-1) has already been compressed, the process proceeds to step S7.

ステップS7では、判定用許容送り速度算出部3にて、暫定的に圧縮後指令経路N’(j)の終点を指令経路N(i)で更新した暫定圧縮後指令経路N’’(j)を作成し、指令経路N(k)又は/および暫定圧縮後指令経路N’’(h)に基づいて判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を算出する。ここで、i−δ≦k≦i+δ(δ:先読み指令経路数)であり、h≦jである。   In step S7, the provisional post-compression command path N ″ (j) in which the end point of the post-compression command path N ′ (j) is tentatively updated by the command path N (i) in the allowable feed speed calculation unit 3 for determination. Is calculated, and the pre-determination permissible pre-compression allowable feed speed or / and the post-compression permissible post-compression allowable feed speed are calculated based on the command path N (k) or / and the provisional post-compression command path N ″ (h). Here, i−δ ≦ k ≦ i + δ (δ: number of prefetch command paths) and h ≦ j.

ステップS8では、圧縮可否判定部4にて、圧縮後指令経路N’(j)と指令経路N(i)が圧縮可能か否かを判断し、圧縮可能な場合にはステップS9に進み、圧縮後指令経路N’(j)の終点を指令経路N(i)の終点で更新する。この後ステップS9以降の処理を繰り返すことで、複数の指令経路を圧縮した圧縮後指令経路が作成される。   In step S8, the compressibility determination unit 4 determines whether or not the post-compression command path N ′ (j) and the command path N (i) can be compressed. If compression is possible, the process proceeds to step S9. The end point of the subsequent command path N ′ (j) is updated with the end point of the command path N (i). Thereafter, by repeating the processes after step S9, a post-compression command path in which a plurality of command paths are compressed is created.

一方、圧縮不可の場合には圧縮処理を終了し、ステップS10で指令経路番号iをデクリメント、および圧縮後指令経路番号jをインクリメントする。なお、本実施の形態1ではステップS10にて指令経路番号iをデクリメントし、圧縮不可と判定された指令経路N(i)を以降では使用しないようにしているが、読み込んだ指令経路N(i)を保存しておき、次回のステップS4の処理では加工プログラム1から読み込むのではなく、保存した指令経路N(i)を使用するようにしてもよい。   On the other hand, if compression is impossible, the compression process is terminated, and the command path number i is decremented and the post-compression command path number j is incremented in step S10. In the first embodiment, the command path number i is decremented in step S10 so that the command path N (i) determined to be incompressible is not used thereafter, but the read command path N (i ) May be saved, and the saved command route N (i) may be used instead of reading from the machining program 1 in the next process of step S4.

<<許容送り速度算出方法の説明>>
ここで、ステップS7の判定用圧縮前許容送り速度および判定用圧縮後許容送り速度の算出方法について述べる。なお、判定用圧縮前許容送り速度および判定用圧縮後許容送り速度の算出方法は同様であるため、以降の説明では許容送り速度の算出方法について述べ、指令経路N(k)に基づいて算出した許容送り速度が判定用圧縮前許容送り速度であり、暫定圧縮後指令経路N’’(h)で算出した許容送り速度が判定用圧縮後許容送り速度である。ここで、i−δ≦k≦i+δ(δ:先読み指令経路数)であり、h≦jである。
<< Description of Allowable Feed Speed Calculation Method >>
Here, the calculation method of the pre-compression allowable feed speed for determination and the post-compression allowable feed speed for determination in step S7 will be described. Since the calculation method of the allowable feed speed before determination and the allowable feed speed after compression for determination is the same, in the following description, the calculation method of the allowable feed speed will be described and calculated based on the command path N (k). The allowable feed speed is the allowable feed speed before compression for determination, and the allowable feed speed calculated in the post-compression compression command path N ″ (h) is the allowable feed speed after compression for determination. Here, i−δ ≦ k ≦ i + δ (δ: number of prefetch command paths) and h ≦ j.

許容送り速度の算出方法については、一般に、以下のような方法が知られている。
・3点を通る円弧を求め、求めた円弧の曲率から予め設定した許容最大加速度、又は許容最大トルクを超えない許容送り速度を求める。
・2つの指令経路がなす角の角度から2つの指令経路のつなぎ目における加速度を求め、その加速度が予め設定された許容最大化速度を超えないように許容送り速度を求める。
・2つの指令経路における各軸の速度変化を求め、その速度変化が予め設定された許容最大速度変化を超えないように許容送り速度を求める。
As a method for calculating the allowable feed speed, the following methods are generally known.
・ A circular arc passing through the three points is obtained, and a permissible feed speed that does not exceed a preset allowable maximum acceleration or allowable maximum torque is obtained from the calculated curvature of the arc.
The acceleration at the joint between the two command paths is obtained from the angle formed by the two command paths, and the allowable feed speed is determined so that the acceleration does not exceed a preset allowable maximum speed.
-The speed change of each axis in the two command paths is obtained, and the allowable feed speed is obtained so that the speed change does not exceed the preset allowable maximum speed change.

以上のような方法は局所的な指令経路の形状情報から許容送り速度を求めているが、指令経路の形状を把握し正確な許容送り速度を求めるために、複数の指令経路を先読みし、前後数本の指令経路から曲率を求め、求めた曲率から予め設定した許容最大加速度、又は許容最大トルクを超えない許容送り速度を求める方法も知られている。   In the above method, the allowable feed speed is obtained from the shape information of the local command path, but in order to grasp the shape of the command path and obtain the accurate allowable feed speed, a plurality of command paths are pre-read, A method is also known in which a curvature is obtained from several command paths, and a permissible feed speed that does not exceed a preset permissible maximum acceleration or permissible maximum torque is obtained from the obtained curvature.

また、実際の工具の軌跡はサーボ系の遅れやモータ特性により指令経路とは異なるため、サーボ系の遅れやモータ特性に基づいた伝達関数を用いて実際の工具の位置である工具推定位置を求め、工具推定位置に基づいて許容送り速度を算出する方法も知られている。図4はサーボ系の遅れやモータ特性に基づいた伝達関数を用いた許容送り速度算出方法の処理の流れの一例を示したフローチャートである。まず、ステップS71にて加工プログラム読み取り部2から出力された指令経路を所定の距離刻みで補間した仮指令位置P(i)(i=1、2、・・・、n)を作成する。ここで、所定の距離刻みは、予め設定された値、又は指令送り速度Fにサンプリング周期δtを乗じた値Fδtとする。 In addition, since the actual tool trajectory differs from the command path due to servo system delay and motor characteristics, the estimated tool position, which is the actual tool position, is obtained using a transfer function based on the servo system delay and motor characteristics. A method for calculating an allowable feed speed based on the estimated tool position is also known. FIG. 4 is a flowchart showing an example of the processing flow of the allowable feed speed calculation method using a transfer function based on the delay of the servo system and the motor characteristics. First, a temporary command position P 0 (i 7 ) (i 7 = 1, 2,..., N 7 ) obtained by interpolating the command path output from the machining program reading unit 2 in step S71 at predetermined distance increments. create. Here, the predetermined distance increment is a preset value or a value Fδt obtained by multiplying the command feed speed F by the sampling period δt.

次に、ステップS72にて仮指令位置P(i)を用いて、サーボ系の遅れやモータ特性等を考慮した指令位置から実際の工具の位置である工具推定位置までの伝達関数に基づいて工具推定位置P(i)を算出する。図5に実線で表した指令経路を補間して作成した仮指令位置P(i)および工具推定位置P(i)を示す。また、工具推定位置Pを算出するための伝達関数H(z)の一例を以下に示す。 Next, in step S72, using the temporary command position P 0 (i 7 ), based on the transfer function from the command position considering the delay of the servo system and the motor characteristics to the estimated tool position that is the actual tool position. The tool estimated position P (i 7 ) is calculated. FIG. 5 shows a temporary command position P 0 (i 7 ) and a tool estimated position P (i 7 ) created by interpolating the command path represented by a solid line. An example of the transfer function H (z) for calculating the tool estimated position P is shown below.

Figure 2011186939
Figure 2011186939

ここで、zはZ変換子、mは伝達関数の次数、aj7、bj7(j=0〜m)は伝達関数の分子多項式、分母多項式の係数であり、実際のシステムが有するサーボ系の遅れやモータ特性等により決定される。 Here, z is the Z transformer, m 7 is the order of the transfer function, a j7 and b j7 (j 7 = 0 to m 7 ) are the numerator polynomial and denominator polynomial coefficient of the transfer function, which the actual system has It is determined by the delay of the servo system and the motor characteristics.

次に、ステップS73では、ステップS72にて算出した工具推定位置P(i)の時間的変化を表す特徴量を算出する。ここではこの特徴量として工具推定位置P(i)の加速度の法線成分An(i)(以下、法線加速度と呼ぶ)を算出する。工具推定位置P(i)における法線加速度An(i)は以下の式で表される。 Next, in step S73, a feature amount representing a temporal change in the tool estimated position P (i 7 ) calculated in step S72 is calculated. Wherein the normal component of the acceleration of the tool estimated position P (i 7) as the feature amount An (i 7) (hereinafter, referred to as the normal acceleration) is calculated. The normal acceleration An (i 7 ) at the tool estimated position P (i 7 ) is expressed by the following equation.

Figure 2011186939
Figure 2011186939

上式において、A(i)、V(i)、u(i)はそれぞれ工具推定位置P(i)における加速度ベクトル、方向ベクトル、単位方向ベクトルである。図6(a)に加速度ベクトルA(i)、図6(b)に法線加速度An(i)の算出方法を表すベクトル図を示す。 In the above equation, A (i 7 ), V (i 7 ), and u (i 7 ) are an acceleration vector, a direction vector, and a unit direction vector at the estimated tool position P (i 7 ), respectively. FIG. 6A shows a vector diagram representing a method of calculating the acceleration vector A (i 7 ), and FIG. 6B shows a normal acceleration An (i 7 ).

最後にステップS74では、ステップS73で算出した法線加速度An(i)と、予め設定された許容法線加速度Amaxから、許容送り速度Fdを求める。許容送り速度Fdは以下の式で与えられる。 Finally, in step S74, the allowable feed speed Fd is obtained from the normal acceleration An (i 7 ) calculated in step S73 and the preset allowable normal acceleration Amax . The allowable feed speed Fd is given by the following equation.

Figure 2011186939
Figure 2011186939

ここで、Frは経路を円弧とみなせる場合の許容送り速度(以下、円弧許容送り速度という)であり、Fcは経路をコーナとみなせる場合の許容送り速度(以下、コーナ許容送り速度という)FはステップS72で用いた距離刻みに対応する送り速度である。また、Cr(Cr>0)、Cc(Cc>0)はそれぞれ円弧、コーナに対する精度を決定する予め設定されたパラメータ(以下、円弧精度係数、コーナ精度係数という)であり、例えば、0<Cr<1に設定しておけば円弧でより精度の高い加工を行うことができ、Cr>1に設定しておけば円弧でより高速加工を実現できる。 Here, Fr is an allowable feed speed when the path can be regarded as a circular arc (hereinafter referred to as an arc allowable feed speed), and Fc is an allowable feed speed when the path can be regarded as a corner (hereinafter referred to as a corner allowable feed speed) F 0. Is a feed rate corresponding to the distance increment used in step S72. Cr (Cr> 0) and Cc (Cc> 0) are preset parameters (hereinafter referred to as an arc accuracy coefficient and a corner accuracy coefficient) for determining the accuracy with respect to an arc and a corner, for example, 0 <Cr If it is set to <1, more accurate machining can be performed with an arc, and if it is set to Cr> 1, higher speed machining can be realized with an arc.

なお、上記の説明では工具推定位置の時間的変化の特徴量として法線加速度を用いて許容送り速度を求めたが、別の特徴量によっても許容送り速度を求めることができる。例えば、法線加速度An(i)の代わりに加速度A(i)、加速度の時間変化である加加速度を上記特徴量として用いても許容送り速度を求めることができる。また、振動が生じやすい機械により加工面に生じる縞状の傷を低減させたい場合は、工具推定位置、速度、加速度、又は加速度の振動成分を特徴量として用い、各々の許容値に基づいて許容送り速度を求めてよい。 In the above description, the allowable feed speed is obtained by using the normal acceleration as the feature quantity of the temporal change in the tool estimated position, but the allowable feed speed can be obtained by another feature quantity. For example, instead of the normal acceleration An (i 7 ), the allowable feed speed can be obtained even if the acceleration A (i 7 ) and jerk, which is a temporal change in acceleration, are used as the feature amount. Also, if you want to reduce striped scratches on the machined surface due to vibration-prone machines, use the estimated tool position, speed, acceleration, or vibration component of acceleration as a feature value, and allow based on each allowable value. You may find the feed rate.

また、最終的に補間に用いる補間用許容送り速度19は補間用許容送り速度算出部7で改めて算出するため、判定用許容送り速度算出部3では許容送り速度の概算値を算出するのみでもよい。すなわち、法線加速度などの特徴量、又はその特徴量を用いた許容送り速度の算出式を近似することで、判定用許容送り速度算出部3の処理負荷を軽減してもよい。また、複数の指令経路を先読みし、複数の指令経路に基づいて許容送り速度を算出する場合には、判定用許容送り速度算出部3では判定用許容送り速度を算出する際に参照する先読み指令経路数を、補間用許容送り速度算出部7で参照する先読み指令経路数よりも少なくすることで、判定用許容送り速度算出部3の処理負荷を軽減してもよい。   Further, since the interpolation allowable feed speed 19 that is finally used for interpolation is calculated again by the interpolation allowable feed speed calculation section 7, the determination allowable feed speed calculation section 3 may only calculate an approximate value of the allowable feed speed. . That is, the processing load of the determination allowable feed rate calculation unit 3 may be reduced by approximating a feature amount such as normal acceleration or a calculation formula of the allowable feed rate using the feature amount. Further, when prefetching a plurality of command paths and calculating the allowable feed speed based on the plurality of command paths, the predetermination command to be referred to when the judgment allowable feed speed calculation unit 3 calculates the judgment allowable feed speed. The processing load of the determination allowable feed speed calculation unit 3 may be reduced by making the number of paths smaller than the number of prefetch command paths referred to by the interpolation allowable feed speed calculation unit 7.

<<圧縮可否判定の説明>>
次に、ステップS8の圧縮可否の判定処理について説明する。図7は、圧縮可否判定部4の行う圧縮可否判定の処理の流れの一例を示すフローチャートである。
<< Explanation of whether compression is possible >>
Next, the process for determining whether or not compression is possible in step S8 will be described. FIG. 7 is a flowchart illustrating an example of the flow of compression determination processing performed by the compression determination unit 4.

ステップS81にて、加工プログラム読み取り部2で読み取った圧縮前経路補正・動作データを用いて、圧縮後指令経路N’(j)の経路補正・動作データ17と指令経路N(i)の経路補正・動作データ13とが異なる場合、又は圧縮後指令経路N’(j)あるいは指令経路N(i)が指令経路の終点にて減速停止が必要な指令経路である場合、又は、圧縮後指令経路N’(j)または指令経路N(i)が各指令経路の終点において減速停止させる動作モード中である場合には圧縮不可とし、圧縮不可判定を圧縮処理部5に出力する。なお、指令経路の終点にて減速停止が必要な指令経路には、位置決め指令(G00指令)やイグザクトストップ指令(G09指令、G61指令)が含まれ、各指令経路の終点において減速停止させる動作モードには、指令経路を1つずつ実行するシングルブロック運転モードや外部信号を入力することにより各指令経路の終点で減速チェックを行なうエラーディテクトモードが含まれる。他にも、圧縮可否の判断方法として、圧縮経路数(圧縮後指令経路に含まれる指令経路の本数)が予め定められた最大値を超えた場合、又は圧縮による経路誤差が予め定められた許容誤差を越えた場合、又は圧縮後指令経路の経路長が予め定められた許容長さを越えた場合、又は一つの経路に圧縮した複数の指令経路の累積経路長が所定の値を超えた場合、圧縮不可と判定する方法を適用することができる。また、ステップS81での圧縮可否判定では、判定用圧縮前許容送り速度および判定用圧縮後許容送り速度を用いていないため、ステップS81の圧縮可否判定を許容送り速度算出部3の前に行い、ステップS81にて圧縮不可と判定された場合には許容送り速度算出部3の処理を行わないようにすることで、圧縮処理における処理負荷を軽減してもよい。ステップS81にて圧縮不可と判定されなかった場合はステップS82へと進む。   In step S81, using the pre-compression route correction / operation data read by the machining program reading unit 2, the route correction / operation data 17 of the post-compression command route N ′ (j) and the route correction of the command route N (i). -When the operation data 13 is different, or the post-compression command path N '(j) or the command path N (i) is a command path that requires deceleration stop at the end of the command path, or the post-compression command path When N ′ (j) or the command path N (i) is in the operation mode for decelerating and stopping at the end point of each command path, compression is not possible, and the compression impossible judgment is output to the compression processing unit 5. The command path that needs to be decelerated and stopped at the end point of the command path includes a positioning command (G00 command) and an exact stop command (G09 command, G61 command), and an operation mode for decelerating and stopping at the end point of each command path. Includes a single block operation mode in which command paths are executed one by one and an error detection mode in which a deceleration check is performed at the end point of each command path by inputting an external signal. In addition, as a method for determining whether or not compression is possible, when the number of compression paths (the number of command paths included in the post-compression command path) exceeds a predetermined maximum value, or a path error due to compression is determined in advance. When the error is exceeded, or the route length of the command route after compression exceeds a predetermined allowable length, or the cumulative route length of multiple command routes compressed into one route exceeds a predetermined value A method for determining that compression is not possible can be applied. Further, in the compression propriety determination in step S81, since the pre-determination allowable feed speed for determination and the post-compression allowable feed speed for determination are not used, the compression propriety determination in step S81 is performed before the allowable feed speed calculation unit 3, If it is determined in step S81 that compression is not possible, the processing load in the compression process may be reduced by not performing the process of the allowable feed speed calculation unit 3. If it is not determined in step S81 that compression is not possible, the process proceeds to step S82.

ステップS82では、判定用許容送り速度算出部3にて算出された判定用圧縮前許容送り速度と加工プログラムにより指令された指令送り速度(F指令)とを比較し、両者のうち値の小さい方を判定用圧縮前工具指令送り速度として算出する。また、判定用許容送り速度算出部3にて算出された判定用圧縮後許容送り速度と加工プログラムにより指令された指令送り速度(F指令)とを比較し、両者のうち値の小さい方を判定用圧縮後工具指令送り速度として算出し、ステップS83へと進む。   In step S82, the pre-determination permissible pre-compression feed speed calculated by the judgment permissible feed speed calculation unit 3 is compared with the command feed speed (F command) commanded by the machining program, and the smaller of the two values. Is calculated as a pre-compression tool command feed speed for determination. Further, the post-compression allowable feed speed calculated by the determination allowable feed speed calculation unit 3 is compared with the command feed speed (F command) commanded by the machining program, and the smaller one of the values is determined. The post-compression tool command feed speed is calculated, and the process proceeds to step S83.

ステップS83では、ステップS82にて算出された判定用圧縮前工具指令送り速度が指令経路におけるコーナ許容送り速度と等しい場合、つまり、圧縮前形状におけるコーナ許容送り速度が、圧縮前形状における円弧許容送り速度および指令送り速度(F指令)よりも値が小さい場合、圧縮不可とし、圧縮不可判定を圧縮処理部5へと出力する。ステップS83にて圧縮不可と判定されなかった場合はステップS84へと進む。   In step S83, when the pre-compression tool command feed speed for determination calculated in step S82 is equal to the corner allowable feed speed in the command path, that is, the corner allowable feed speed in the pre-compression shape is the arc allowable feed in the pre-compression shape. When the value is smaller than the speed and the command feed speed (F command), the compression is impossible, and the compression impossible determination is output to the compression processing unit 5. If it is not determined in step S83 that compression is not possible, the process proceeds to step S84.

ステップS84では、ステップS82にて算出された判定用圧縮後工具指令送り速度が圧縮後形状におけるコーナ許容送り速度と等しい場合、つまり、圧縮後形状におけるコーナ許容送り速度が、圧縮後形状における円弧許容送り速度および指令送り速度(F指令)よりも値が小さい場合、圧縮不可とし、圧縮不可判定を圧縮処理部5へと出力する。ステップS84にて圧縮不可と判定されなかった場合はステップS85へと進む。   In step S84, when the post-compression tool command feed speed for determination calculated in step S82 is equal to the allowable corner feed speed in the post-compression shape, that is, the allowable corner feed speed in the post-compression shape is equal to the allowable arc in the post-compression shape. When the value is smaller than the feed speed and the command feed speed (F command), the compression is impossible, and the compression impossible judgment is output to the compression processing unit 5. If it is not determined in step S84 that compression is not possible, the process proceeds to step S85.

なお、上記ステップS83、ステップS84の説明では、コーナ精度係数Ccによって決まるコーナ許容送り速度を圧縮可能送り速度とし、判定用圧縮前工具指令送り速度、又は判定用圧縮後工具指令送り速度がコーナ許容送り速度と等しくなった場合圧縮不可と判定したが、圧縮可能送り速度は予め設定しておいてもよい。また、圧縮可能送り速度は他のパラメータから決定してもよい。   In the description of step S83 and step S84, the allowable corner feed speed determined by the corner accuracy coefficient Cc is the compressible feed speed, and the tool command feed speed for determination or the post-compression tool command feed speed for determination is the corner allowable speed. When it becomes equal to the feed rate, it is determined that compression is impossible, but the compressible feed rate may be set in advance. The compressible feed speed may be determined from other parameters.

ステップS85では、判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度とを比較し、判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度との差が予め設定された最大送り速度変化量以上であった場合、圧縮不可とし、圧縮不可判定を圧縮処理部5へ出力する。なお、上記説明では判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度とを直接比較したが、サーボ系の遅れやモータ特性等を考慮した指令位置から実際の工具の位置である工具推定位置までの伝達関数を用いて、指令経路を判定用圧縮前工具指令送り速度で工具が移動したときの工具の軌跡である圧縮前工具推定軌跡Pbと、圧縮後指令経路を判定用圧縮後工具指令送り速度で工具が移動したときの工具の軌跡である圧縮後工具推定軌跡Paを算出し、圧縮前工具推定軌跡Pbと圧縮後工具推定軌跡Paの経路誤差が予め設定した最大軌跡誤差以上になった場合、圧縮不可と判定してもよい。さらには、判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度の比較と、圧縮前工具推定軌跡Pbと圧縮後工具推定軌跡Paの比較の両方の比較を行い、判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度との差が予め設定された最大送り速度変化量以上であるか、あるいは圧縮前工具推定軌跡Pbと圧縮後工具推定軌跡Paの経路誤差が予め設定した最大軌跡誤差以上になった場合に、圧縮不可と判定するようにしてもよい。   In step S85, the pre-compression tool command feed speed for determination and the post-compression tool command feed speed for determination are compared, and the difference between the pre-compression tool command feed speed for determination and the post-compression tool command feed speed for determination is set in advance. If it is equal to or greater than the maximum feed rate change amount, compression is impossible, and a compression impossible determination is output to the compression processing unit 5. In the above description, the pre-compression tool command feed speed for judgment and the post-compression tool command feed speed for judgment are directly compared, but the actual tool position is from the command position taking into account the delay of the servo system, motor characteristics, etc. Using the transfer function up to the estimated tool position, the pre-compression tool estimated trajectory Pb, which is the trajectory of the tool when the tool moves at the pre-decompression tool command feed speed for judgment, and the post-compression command path are compressed for judgment. The post-compression tool estimated trajectory Pa, which is the trajectory of the tool when the tool moves at the post-tool command feed speed, is calculated, and the path error between the pre-compression tool estimated trajectory Pb and the post-compression tool estimated trajectory Pa is a preset maximum trajectory error. When it becomes above, it may be determined that compression is impossible. Furthermore, the comparison between the pre-compression tool command feed speed for determination and the post-compression tool command feed speed for determination and the comparison between the pre-compression tool estimated trajectory Pb and the post-compression tool estimated trajectory Pa are performed. The difference between the tool command feed speed and the post-compression tool command feed speed for determination is equal to or greater than a preset maximum feed speed change amount, or the path error between the pre-compression tool estimated path Pb and the post-compression tool estimated path Pa is It may be determined that compression is not possible when the set maximum trajectory error is exceeded.

なお、上記説明では各指令経路における始点・終点である指令点での許容送り速度を求め、指令点での許容送り速度に基づいて圧縮の可否判定を行なうことについて説明したが、円弧補間指令(G02、G03指令)など曲線形状では指令経路全体に対する許容送り速度を算出するため、指令経路全体に対する許容送り速度に基づいて、指令点での許容送り速度に基づいた圧縮の可否判定と同様の圧縮可否判定を行ってもよい。   In the above description, it has been explained that the allowable feed speed at the command point which is the start point / end point in each command path is obtained, and whether or not compression is possible is determined based on the allowable feed speed at the command point. In the curve shape such as G02, G03 command), the allowable feed speed for the entire command path is calculated. Therefore, compression similar to the determination of whether or not compression is possible based on the allowable feed speed at the command point is performed based on the allowable feed speed for the entire command path. You may determine whether it is possible.

また、本実施の形態1では、上記のように圧縮可否判定を、(1)経路補正・動作データ等による圧縮可否判定、(2)判定用圧縮前工具指令送り速度による圧縮可否判定、(3)判定用圧縮後工具指令送り速度による圧縮可否判定、及び(4)判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度の比較による圧縮可否判定の四つ判定を行うことにより行うが、上記四つの圧縮可否判定のうち一つあるいは複数の圧縮可否判定のみを行ってよい。   Further, in the first embodiment, as described above, the determination of whether or not compression is possible is performed by (1) determining whether or not compression is possible based on path correction / operation data or the like, (2) determining whether or not compression is possible based on a pre-compression tool command feed speed for determination, (3 This is performed by performing four determinations: compression determination based on a post-compression tool command feed speed for determination, and (4) compression determination based on a comparison between a pre-compression tool command feed speed for determination and a post-compression tool command feed speed for determination. However, only one or a plurality of compression propriety determinations among the above four compression propriety determinations may be performed.

<移動データ作成部の動作>
移動データ作成部6では、圧縮処理部5で作成された圧縮後指令経路16を圧縮後経路補正・動作データ17に基づいて工具移動経路へ補正する。この補正には、工具長オフセットやワークオフセットなどの平行移動、指令経路全体の拡大・縮小、および座標回転などの座標変換が含まれる。図8は、この実施の形態1における圧縮後指令経路と工具移動経路との関係の一例を表す図である。続いて、移動データ作成部6では、経路補正した工具移動経路上を補間するために必要な工具移動データ18を作成する。なお、工具移動データ18とは、補間に必要な工具移動の経路および移動のデータであり、具体的には工具位置を決める各軸の始点や終点、始点から終点までの経路長、工具移動経路の単位方向ベクトル、指令送り速度などの工作機械の動作を決定するために必要な情報が含まれる。
<Operation of moving data creation unit>
The movement data creation unit 6 corrects the post-compression command path 16 created by the compression processing unit 5 to a tool movement path based on the post-compression path correction / operation data 17. This correction includes translation such as tool length offset and workpiece offset, enlargement / reduction of the entire command path, and coordinate conversion such as coordinate rotation. FIG. 8 is a diagram illustrating an example of the relationship between the post-compression command path and the tool movement path in the first embodiment. Subsequently, the movement data creation unit 6 creates tool movement data 18 necessary for interpolation on the tool movement path whose path has been corrected. The tool movement data 18 is a tool movement path and movement data necessary for interpolation. Specifically, the start point and end point of each axis for determining the tool position, the path length from the start point to the end point, the tool movement path Information necessary for determining the operation of the machine tool, such as a unit direction vector and a command feed speed, is included.

圧縮後指令経路16を用いて移動データ作成部6、補間用許容送り速度算出部7、補間処理部8を行なうことで、移動データ作成部6、補間用許容送り速度算出部7、補間処理部8の処理時間を短縮することができる。具体的には、圧縮経路数(圧縮後指令経路に含まれる指令経路の本数)をnとすると、圧縮後指令経路16と圧縮後経路補正・動作データ17から工具位置を、圧縮しなかった場合の1/nの処理時間で求めることができる。   By using the post-compression command path 16, the movement data creation section 6, the interpolation allowable feed speed calculation section 7, and the interpolation processing section 8 are performed, so that the movement data creation section 6, the interpolation allowable feed speed calculation section 7, and the interpolation processing section. 8 processing time can be shortened. Specifically, when the number of compression paths (the number of command paths included in the post-compression command path) is n, the tool position is not compressed from the post-compression command path 16 and the post-compression path correction / operation data 17. 1 / n of the processing time.

<補間用許容送り速度算出部の動作>
補間用許容送り速度算出部7では、移動データ作成部で作成された工具移動データ18に基づいて補間用許容送り速度19を算出する。補間用許容送り速度19の算出方法については判定用許容送り速度算出部3で算出した判定用圧縮前許容送り速度および判定用圧縮後許容送り速度と同様である。
<Operation of the allowable feed speed calculation unit for interpolation>
The interpolation allowable feed speed calculation unit 7 calculates an interpolation allowable feed speed 19 based on the tool movement data 18 created by the movement data creation unit. The method of calculating the interpolation allowable feed speed 19 is the same as the pre-determination allowable feed speed for determination and the post-compression allowable feed speed calculated by the determination allowable feed speed calculation unit 3.

<補間処理部の動作>
補間処理部8では、移動データ作成部6で作成された工具移動データおよび補間用許容送り速度算出部7にて算出された補間用許容送り速度19を用いて工具移動経路上を補間し、工具位置20を作成する。
<Operation of interpolation processing unit>
The interpolation processing unit 8 interpolates on the tool movement path using the tool movement data created by the movement data creation unit 6 and the allowable feed speed 19 for interpolation calculated by the interpolation allowable feed speed calculation unit 7, Create position 20.

図9は、この実施の形態1においての補間処理部8の処理の流れの一例を表すフローチャートである。以下、図9に基づいて説明する。なお、j番目の圧縮後指令経路N’(j)を補正した工具移動経路をNt’(j)、工具移動経路Nt’(j)の工具経路長(始点から終点までの距離)をLt’(j)とする。   FIG. 9 is a flowchart showing an example of the processing flow of the interpolation processing unit 8 in the first embodiment. Hereinafter, a description will be given with reference to FIG. Nt ′ (j) is the tool movement path obtained by correcting the jth post-compression command path N ′ (j), and the tool path length (distance from the start point to the end point) of the tool movement path Nt ′ (j) is Lt ′. (J).

ステップS801では、補間用許容送り速度算出部7にて算出された補間用許容送り速度19と加工プログラムにより指令された指令送り速度の値の小さい方を工具指令送り速度Fとし、工具指令送り速度Fから補間周期あたりの移動量FΔTを求める。 In step S801, the smaller of the allowable feed speed 19 for interpolation calculated by the allowable feed speed calculator for interpolation 19 and the command feed speed commanded by the machining program is set as the tool command feed speed Ft , and the tool command feed. A movement amount F t ΔT per interpolation cycle is obtained from the speed F t .

ステップS802では、工具移動経路Nt’(j)上の現在の工具位置ptから補間周期あたりの移動量FΔT進んだときの工具位置ptのある工具移動経路Nt’(m)を求める。工具位置ptのある工具移動経路Nt’(m)の算出方法を図10に基づいて説明する。ここでは、簡単のため現在の工具位置ptが工具移動経路Nt’(j)の始点にあるものとしている。まず、ステップS802では、移動量FΔTが工具経路長Lt’(j)よりも大きいか否かを判定する。移動量FΔTが工具経路長Lt’(j)よりも小さい場合は、工具位置ptは工具移動経路Nt’(j)にある。一方、移動量FΔTが工具移動経路Nt’(j)よりも大きい場合は、補間周期あたりの移動量FΔTから工具経路長Lt’(j)を差し引いた移動量FΔT’と工具経路長Lt’(j+1)との大小比較を行う。そして、差し引いた移動量FΔT’の方が小さい場合には、工具位置ptは工具移動経路Nt’(j+1)にあることになる。以上を繰り返すことで、工具位置ptのある工具移動経路Nt’(m)を求めることができる。以下、工具位置ptがある工具移動経路をNt’(m)とする。また、上記の例では現在の工具位置ptが工具移動経路Nt’(j)の始点にあるものとして算出したが、現在の工具位置ptが工具移動経路Nt’(j)の始点にない場合には、改めて現在の工具位置ptがある工具移動経路Nt’(j)の残り経路長(現在の工具位置から工具移動経路Nt’(j)の終点までの長さ)をLt’(j)とすれば、上記と同様の手順にて工具位置ptがある工具移動経路Nt’(m)を求めることができる。 At step S802, the determined tool movement path Nt '(j) the movement amount per interpolation period from the current tool position pt 0 on F t of ΔT advanced tool position pt when the tool movement path Nt' (m). A method of calculating the tool movement path Nt ′ (m) with the tool position pt will be described with reference to FIG. Here, for simplicity, it is assumed that the current tool position pt 0 is at the start point of the tool movement path Nt ′ (j). First, in step S802, it is determined whether or not the movement amount F t ΔT is larger than the tool path length Lt ′ (j). When the movement amount F t ΔT is smaller than the tool path length Lt ′ (j), the tool position pt is on the tool movement path Nt ′ (j). On the other hand, when the movement amount F t ΔT is larger than the tool movement path Nt ′ (j), the movement amount F t ΔT ′ obtained by subtracting the tool path length Lt ′ (j) from the movement amount F t ΔT per interpolation period A size comparison with the tool path length Lt ′ (j + 1) is performed. When the subtracted movement amount F t ΔT ′ is smaller, the tool position pt is on the tool movement path Nt ′ (j + 1). By repeating the above, the tool movement path Nt ′ (m) with the tool position pt can be obtained. Hereinafter, the tool movement path with the tool position pt is defined as Nt ′ (m). In the above example, the current tool position pt 0 is calculated as being at the start point of the tool movement path Nt ′ (j), but the current tool position pt 0 is not at the start point of the tool movement path Nt ′ (j). In this case, the remaining path length of the tool movement path Nt ′ (j) having the current tool position pt 0 (the length from the current tool position to the end point of the tool movement path Nt ′ (j)) is set to Lt ′ ( j), the tool movement path Nt ′ (m) with the tool position pt can be obtained in the same procedure as described above.

ステップS803では、工具位置ptを求める。工具移動経路Nt’(m)の始点座標値をp(m−1)とすると、工具位置ptは式(4)のように、始点座標値をp(m−1)と工具移動経路Nt’(m)の始点からの移動量FΔT’の和で表される。 In step S803, the tool position pt is obtained. Assuming that the starting point coordinate value of the tool movement path Nt ′ (m) is p (m−1), the tool position pt is set to the starting point coordinate value p (m−1) and the tool movement path Nt ′ as shown in Expression (4). It is represented by the sum of the movement amount F t ΔT ′ from the start point of (m).

Figure 2011186939
Figure 2011186939

上式(4)にて工具位置ptが求まり、これを工具位置20として出力する。なお、この実施の形態1では、加工プログラム読み取り部2、判定用許容送り速度算出部3、圧縮可否判定部4、圧縮処理部5、移動データ作成部6、補間用許容送り速度算出部7、補間処理部8が同一の装置に備えられている場合について説明したが、上記各部を異なる装置に備えてもよい。例えば、加工プログラム読み取り部2、判定用許容送り速度算出部3、圧縮可否判定部4、圧縮処理部5と、新たに圧縮後指令経路16および圧縮後経路補正・動作データ17を圧縮後データ保存部に保存する圧縮後データ保存部を備える装置と、圧縮後データ保存部に保存された圧縮後指令経路16および圧縮後経路補正・動作データ17を用いて移動データ作成部6、補間用許容送り速度算出部7、補間処理部8を処理する装置に分けてもよい。   The tool position pt is obtained by the above equation (4), and this is output as the tool position 20. In the first embodiment, the machining program reading unit 2, the determination allowable feed rate calculation unit 3, the compression availability determination unit 4, the compression processing unit 5, the movement data creation unit 6, the interpolation allowable feed rate calculation unit 7, Although the case where the interpolation processing unit 8 is provided in the same device has been described, the above units may be provided in different devices. For example, the processing program reading unit 2, the determination allowable feed speed calculation unit 3, the compression availability determination unit 4, the compression processing unit 5, and the newly compressed command path 16 and the post-compression path correction / operation data 17 are stored as compressed data. Using the apparatus provided with the post-compression data storage unit stored in the storage unit, the post-compression command path 16 and the post-compression path correction / operation data 17 stored in the post-compression data storage unit, and the allowable data for interpolation. You may divide into the apparatus which processes the speed calculation part 7 and the interpolation process part 8. FIG.

<効果>
以上のように、この実施の形態1によれば、圧縮処理部5の前に判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を求め、前記判定用圧縮前許容送り速度又は/および前記判定用圧縮後許容送り速度および指令送り速度に基づいて圧縮の可否判定を行うため、圧縮による被加工材に対する工具の送り速度の変化を防止することが可能である。つまり、圧縮前に許容送り速度を算出し、許容送り速度に基づいて圧縮の可否を判定することで、圧縮による許容送り速度の変化を防止することができ、加工精度を保ったまま高速加工を実現することができる。(従来の圧縮判定では、局所的な形状データにより圧縮可否判定を行っており、送り速度により圧縮可否判定していなかった。また、指令送り速度を変更した場合にもトレランスは一定のため、圧縮範囲は変化せず、指令送り速度に対応した圧縮判定が行うことができなかった。)
<Effect>
As described above, according to the first embodiment, the pre-determination allowable feed rate for determination or / and the post-compression allowable feed rate for determination are obtained before the compression processing unit 5, and the pre-determination allowable feed rate before compression or Since the determination of whether or not compression is possible is performed based on the post-compression allowable feed speed and the command feed speed for determination, it is possible to prevent a change in the feed speed of the tool with respect to the workpiece due to the compression. In other words, by calculating the allowable feed speed before compression and determining whether or not compression is possible based on the allowable feed speed, it is possible to prevent changes in the allowable feed speed due to compression, and to perform high-speed machining while maintaining machining accuracy. Can be realized. (In the conventional compression determination, whether or not compression is possible is determined based on local shape data, and whether or not compression is possible is not determined based on the feed speed. Since the tolerance is constant even when the command feed speed is changed, the compression is determined. The range did not change, and the compression judgment corresponding to the command feed speed could not be made.)

具体的には、本実施の形態1では、判定用圧縮前許容送り速度および判定用圧縮後許容送り速度と指令送り速度の小さい方を判定用圧縮前工具指令送り速度および判定用圧縮後工具指令送り速度とし、判定用圧縮前工具指令送り速度および判定用圧縮後工具指令送り速度を用いた圧縮可否判定の判定基準として、(2)判定用圧縮前工具指令送り速度による圧縮可否判定、(3)判定用圧縮後工具指令送り速度による圧縮可否判定、(4)判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度の比較による圧縮可否判定を行う。   Specifically, in the first embodiment, the pre-determination permissible pre-compression feed speed and the post-determination permissible post-compression permissible feed speed and the command feed speed whichever is smaller are determined as the pre-determination tool command feed speed and the post-determination tool command after compression. (2) Compressibility determination based on pre-compression tool command feed speed for determination, (3) Determination of compression propriety using the pre-compression tool command feed speed for determination and post-compression tool command feed speed for determination, (3) ) Determination of whether or not compression is possible based on the post-compression tool command feed speed for determination. (4) Determination of whether or not compression is possible by comparing the pre-compression tool command feed speed for determination and the post-compression tool command feed speed for determination.

この実施の形態1では、(2)判定用圧縮前工具指令送り速度による圧縮可否判定において、圧縮前のコーナ許容送り速度が曲線許容送り速度および指令送り速度よりも小さかった場合に圧縮不可としているため、図12(a)に示すような、コーナ等の加速度の大きい位置(指令位置P2)では圧縮不可となるため、図12(b)に示すような、コーナが圧縮により変形することを防止することができる。つまり、圧縮後指令経路においても指令位置P2のコーナ角度は変化せず、圧縮により補間用圧縮後許容送り速度が大きくなること、また補間用許容送り速度により減速する位置がずれることを防止できるため、加工精度の悪化を防止することができる。また、指令送り速度を変更した場合でも、変更後の指令送り速度に応じた圧縮可否判定が可能である。   In the first embodiment, in (2) compression determination based on the pre-compression tool command feed speed for determination, compression is not possible when the corner allowable feed speed before compression is smaller than the curve allowable feed speed and the command feed speed. Therefore, as shown in FIG. 12 (a), compression is impossible at a position where the acceleration such as the corner is high (command position P2), so that the corner is prevented from being deformed by compression as shown in FIG. 12 (b). can do. That is, the corner angle of the command position P2 does not change in the post-compression command path, and it is possible to prevent the post-compression allowable feed speed for interpolation from increasing due to compression and the shift of the position decelerated by the allowable feed speed for interpolation from shifting. Deterioration of processing accuracy can be prevented. Even when the command feed rate is changed, it is possible to determine whether or not compression is possible according to the changed command feed rate.

すなわち、この実施の形態1によれば、圧縮可否判定部において、判定用許容送り速度算出部にて算出された判定用圧縮前許容送り速度が、予め設定された圧縮可能送り速度以下になった場合に、圧縮不可とすることにより、コーナ部等、許容送り速度が低くなる(線分の傾きの変化が大きい)部分では圧縮不可とすることになり、圧縮により線分の傾きの変化が小さくなり、許容送り速度が圧縮前に比べ高くなることを防止することで、高精度加工を実現することができる。また、圧縮可否判定部において、判定用許容送り速度算出部にて算出された判定用圧縮前許容送り速度が加工プログラムにより指令された指令送り速度以下になった場合のみに、圧縮不可とするようにすると、許容送り速度よりも指令送り速度が低い場合には指令送り速度で工具が移動し、圧縮よる工具の送り速度の変化は生じないため、許容送り速度よりも指令送り速度が低い場合は圧縮可能とすることで圧縮効果を向上させ、高速加工を実現することができる。   That is, according to the first embodiment, in the compression possibility determination unit, the pre-determination allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or lower than a preset compressible feed rate. In this case, compression is impossible, and compression is not possible in areas where the allowable feed speed is low (the change in the slope of the line segment is large), such as corners, and the change in the slope of the line segment is small due to compression. Thus, high-accuracy machining can be realized by preventing the allowable feed speed from becoming higher than before compression. Further, in the compression possibility determination unit, compression is disabled only when the pre-compression allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or less than the command feed rate commanded by the machining program. If the command feed rate is lower than the allowable feed rate, the tool will move at the command feed rate, and the tool feed rate will not change due to compression. By enabling compression, the compression effect can be improved and high-speed machining can be realized.

また、(3)判定用圧縮後工具指令送り速度による圧縮可否判定において、圧縮後のコーナ許容送り速度が曲線許容送り速度および指令送り速度よりも小さかった場合に圧縮不可としているため、図13(a)に示すように、指令経路N1、N2、N3、N4、N5が滑らかな曲線であるにもかかわらず、N1、N2、N3およびN4、N5が圧縮され、図13(b)に示すように、圧縮後指令経路N’1、N’2に圧縮されることによりN’1とN’2の傾きの変化が大きくなり、指令位置P3での補間用許容送り速度が必要以上に小さくなることを防止し、加工精度の悪化を防止することができる。   Further, (3) in the determination of whether or not compression is possible based on the post-compression tool command feed speed for determination, compression is impossible when the corner allowable feed speed after compression is smaller than the curve allowable feed speed and the command feed speed. As shown in a), N1, N2, N3 and N4, N5 are compressed even though the command paths N1, N2, N3, N4, and N5 are smooth curves, as shown in FIG. In addition, since the compressed command paths N′1 and N′2 are compressed, the change in the inclination of N′1 and N′2 increases, and the allowable feed speed for interpolation at the command position P3 becomes smaller than necessary. This can prevent the deterioration of processing accuracy.

すなわち、この実施の形態1によれば、圧縮可否判定部において、判定用許容送り速度算出部にて算出された判定用圧縮後許容送り速度が、予め設定された圧縮可能送り速度以下になった場合に、圧縮不可とするようにすると、圧縮により線分の傾きの変化が大きくなり圧縮後許容送り速度が低下する場合には圧縮不可とすることにより、圧縮による許容送り速度の低下を防止し、高精度加工を実現することができる。また、圧縮可否判定部において、判定用許容送り速度算出部にて算出された判定用圧縮後許容送り速度が加工プログラムにより指令された指令送り速度以下になった場合のみに、圧縮不可とするようにすると、許容送り速度よりも指令送り速度が低い場合には指令送り速度で工具が移動し、圧縮よる工具の送り速度の変化は生じないため、許容送り速度よりも指令送り速度が低い場合は圧縮可能とすることで圧縮効果を向上させ、高速加工を実現することができる。   That is, according to the first embodiment, in the compressibility determination unit, the post-compression allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or lower than a preset compressible feed rate. In this case, if compression is disabled, the change in the slope of the line segment increases due to compression and the allowable feed speed after compression decreases. High-precision machining can be realized. Further, in the compressibility determination unit, compression is disabled only when the post-compression allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or less than the command feed rate commanded by the machining program. If the command feed rate is lower than the allowable feed rate, the tool will move at the command feed rate, and the tool feed rate will not change due to compression. By enabling compression, the compression effect can be improved and high-speed machining can be realized.

また、(4)判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度の比較による圧縮可否判定において、判定用圧縮前工具指令送り速度と判定用圧縮後工具指令送り速度の差が予め設定された最大送り速度変化量以上であった場合圧縮不可とするようにすると、圧縮による補間送り速度の変化を最大送り速度変化量未満にすることが可能であり、圧縮による加工精度の悪化を防止することができる。つまり、圧縮前後で判定用工具指令送り速度が大きく変化しない範囲でのみ圧縮を行うことで、圧縮による工具指令送り速度のばらつきを抑え、高精度加工を実現することができる。   Further, (4) in the determination of whether or not compression is possible by comparing the pre-compression tool command feed speed for determination and the post-compression tool command feed speed for determination, the difference between the pre-compression tool command feed speed for determination and the post-compression tool command feed speed for determination is If compression is disabled when the amount is greater than the preset maximum feed rate change amount, the change in interpolation feed rate due to compression can be made less than the maximum feed rate change amount, resulting in deterioration of machining accuracy due to compression. Can be prevented. That is, by performing compression only within a range in which the determination tool command feed speed does not change significantly before and after compression, variation in the tool command feed speed due to compression can be suppressed and high-precision machining can be realized.

なお、指令経路12を判定用圧縮前工具指令送り速度で移動したときの工具の推定軌跡である圧縮前工具推定軌跡と、圧縮後指令経路16を判定用圧縮後工具指令送り速度で移動したときの工具の推定軌跡である圧縮後推定工具軌跡の軌跡誤差が予め設定した最大軌跡誤差以上であった場合圧縮不可とするようにすると、圧縮による補間用送り速度変化も考慮した、圧縮前後の軌跡誤差を最大軌跡誤差未満にすることも可能である。つまり、指令経路および圧縮後指令経路での実際の工具軌跡を予測し、圧縮前後で工具軌跡の変化量が所定値以内に納まる範囲でのみ圧縮を行うことで、高精度加工を実現することができる。   When the command path 12 is moved at the pre-compression tool command feed speed for determination, the pre-compression tool estimated trajectory, which is the estimated trajectory of the tool, and the post-compression command path 16 is moved at the post-compression tool command feed speed for determination. If the trajectory error of the post-compression estimated tool trajectory, which is the estimated trajectory of the tool, is greater than or equal to the preset maximum trajectory error, compression is disabled. It is also possible to make the error less than the maximum trajectory error. In other words, high-precision machining can be realized by predicting actual tool paths on the command path and post-compression command path and performing compression only within a range in which the amount of change in the tool path is within a predetermined value before and after compression. it can.

また、この実施の形態1において、圧縮可否判定部では、一つの経路に圧縮した複数の指令経路の累積経路長が指令送り速度における単位時間当たりの移動量よりも大きい場合、又は、圧縮した指令経路数が所定の値を超えた場合、圧縮不可とするようにしてもよい。このような構成とすることにより、圧縮後の累積経路長および圧縮した線分数の最大値を設けることで必要以上に指令経路を圧縮することを防止し、圧縮による精度悪化を防止することができる。   In the first embodiment, the compressibility determination unit determines that the cumulative path length of the plurality of command paths compressed into one path is larger than the movement amount per unit time at the command feed speed, or the compressed command. When the number of routes exceeds a predetermined value, compression may be disabled. By adopting such a configuration, it is possible to prevent the command path from being compressed more than necessary by providing the cumulative path length after compression and the maximum value of the compressed line segment, and to prevent deterioration in accuracy due to compression. .

さらに、圧縮可否判定部では、加工プログラムにより加工条件が変更された場合に、圧縮不可とするようにしてもよい。このような構成とすることにより、指令速度や主軸回転数など加工条件が異なる指令経路を一つの圧縮後指令経路に圧縮することを防止し、圧縮前後で加工条件が変化することを防止することができる。   Further, the compression possibility determination unit may make compression impossible when the machining condition is changed by the machining program. By adopting such a configuration, it is possible to prevent a command path having different machining conditions such as a command speed and a spindle speed from being compressed into one post-compression command path, and prevent a machining condition from changing before and after compression. Can do.

実施の形態2.
以下に、本発明に係る数値制御装置を備えた生産システムの実施の形態2を図面に基づいて説明する。なお、この実施の形態2によりこの発明が限定されるものではない。図11は、本発明に係る数値制御装置を備えた生産システムの実施の形態2の概略構成を示すブロック図である。図11において、圧縮装置101は、圧縮処理部5から出力された圧縮後指令経路16および圧縮後経路補正・動作データ17を圧縮後データバッファ10に保存する圧縮後データ保存部9、加工プログラム読み取り部2、判定用許容送り速度算出部3、圧縮可否判定部4、圧縮処理部5を備える。一方、数値制御装置100は、移動データ作成部6、補間用許容送り速度算出部7、補間処理部8を備える。なお、図1に示す実施の形態1における数値制御装置の概略構成図を示すブロック図の構成要素と同一機能を達成する構成要素には同一番号を付して重複する説明は省略する。
Embodiment 2. FIG.
A second embodiment of a production system provided with a numerical control device according to the present invention will be described below with reference to the drawings. The present invention is not limited to the second embodiment. FIG. 11 is a block diagram showing a schematic configuration of the second embodiment of the production system provided with the numerical control device according to the present invention. In FIG. 11, the compression apparatus 101 includes a post-compression command path 16 and a post-compression path correction / operation data 17 output from the compression processing section 5, a post-compression data storage section 9 that stores the post-compression data buffer 10, and a processing program read. Unit 2, determination allowable feed speed calculation unit 3, compression possibility determination unit 4, and compression processing unit 5. On the other hand, the numerical control device 100 includes a movement data creation unit 6, an interpolation allowable feed speed calculation unit 7, and an interpolation processing unit 8. In addition, the same number is attached | subjected to the component which achieves the same function as the component of the block diagram which shows the schematic block diagram of the numerical control apparatus in Embodiment 1 shown in FIG. 1, and the overlapping description is abbreviate | omitted.

次に、実施の形態2の動作について説明する。実施の形態1では図1における加工プログラム読み取り部2、判定用許容送り速度算出部3、圧縮可否判定部4、圧縮処理部5、移動データ作成部6、補間用許容送り速度算出部7、補間処理部8を全て数値制御装置100が備えていたのに対し、実施の形態2では、図11における加工プログラム読み取り部2、判定用許容送り速度算出部3、圧縮可否判定部4、圧縮処理部5、圧縮後データ保存部9を備える圧縮装置101により加工前に予め圧縮後指令経路16および圧縮後経路補正・動作データ17を圧縮後データバッファに保存する。移動データ作成部6、補間用許容送り速度算出部7、補間処理部8を備える数値制御装置100では圧縮後データバッファに保存された圧縮後指令経路16および圧縮後経路補正・動作データ17を用いて工具位置20を出力する。   Next, the operation of the second embodiment will be described. In the first embodiment, the machining program reading unit 2, the determination allowable feed rate calculation unit 3, the compression availability determination unit 4, the compression processing unit 5, the movement data creation unit 6, the interpolation allowable feed rate calculation unit 7, the interpolation in FIG. Whereas the processing unit 8 is all provided in the numerical control device 100, in the second embodiment, the machining program reading unit 2, the determination allowable feed speed calculation unit 3, the compressibility determination unit 4, the compression processing unit in FIG. 5. The compression apparatus 101 including the post-compression data storage unit 9 stores the post-compression command path 16 and post-compression path correction / operation data 17 in the post-compression data buffer before processing. In the numerical controller 100 including the movement data creation unit 6, the interpolation allowable feed speed calculation unit 7, and the interpolation processing unit 8, the post-compression command path 16 and the post-compression path correction / operation data 17 stored in the post-compression data buffer are used. The tool position 20 is output.

なお、上記実施の形態2では、加工プログラム読み取り部2、判定用許容送り速度算出部3、圧縮可否判定部4、圧縮処理部5、圧縮後データ保存部9を備える圧縮装置101と移動データ作成部6、補間用許容送り速度算出部7、補間処理部8を数値制御装置100が備えるように説明したが、移動データ作成部6の処理も圧縮装置で行ってもよい。その場合、圧縮装置は、工具移動データを工具移動データバッファに備える工具移動データ保存部を備える。   In the second embodiment, the compression program 101 including the machining program reading unit 2, the determination allowable feed speed calculation unit 3, the compression availability determination unit 4, the compression processing unit 5, and the post-compression data storage unit 9 and movement data creation are provided. Although the numerical control device 100 has been described as including the unit 6, the allowable feed speed calculation unit 7 for interpolation, and the interpolation processing unit 8, the processing of the movement data creation unit 6 may also be performed by the compression device. In this case, the compression device includes a tool movement data storage unit that includes tool movement data in a tool movement data buffer.

また、移動データ作成部6に加え補間用許容送り速度算出部7の処理も圧縮装置にて行ってもよい。その場合には、圧縮装置は、工具移動データおよび補間用許容送り速度を工具補間用データバッファに保存する工具補間用データ保存部を備える。   In addition to the movement data creation unit 6, the processing of the interpolation allowable feed speed calculation unit 7 may be performed by the compression device. In this case, the compression apparatus includes a tool interpolation data storage unit that stores the tool movement data and the allowable feed rate for interpolation in the tool interpolation data buffer.

以上のように、本発明にかかる数値制御装置および生産システムは、工作機械を数値制御する数値制御装置、又は数値制御装置を備えた生産システムに適用されて有用なものであり、特に連続した複数の指令経路を一つの指令経路に置き換える(圧縮する)ことで、高速加工を実現する数値制御装置又は数値制御装置を備えた生産システムに適用されて最適なものである。   As described above, the numerical control device and the production system according to the present invention are useful when applied to a numerical control device that numerically controls a machine tool or a production system that includes a numerical control device. By replacing (compressing) the command path with one command path, the present invention is optimally applied to a numerical control device that realizes high-speed machining or a production system equipped with a numerical control device.

1 加工プログラム
2 加工プログラム読み取り部
3 判定用許容送り速度算出部
4 圧縮可否判定部
5 圧縮処理部
6 移動データ作成部
7 補間用許容送り速度算出部
8 補間処理部
9 圧縮後データ保存部
10 圧縮後データバッファ
11 プログラム命令
12 指令経路
13 圧縮前経路補正・動作データ
14 判定用許容送り速度
15 圧縮可否判定結果
16 圧縮後指令経路
17 経路補正・動作データ
18 工具移動データ
19 補間用許容送り速度
20 工具位置
100 数値制御装置
101 圧縮装置
DESCRIPTION OF SYMBOLS 1 Machining program 2 Machining program reading part 3 Judgment allowable feed speed calculation part 4 Compression determination part 5 Compression processing part 6 Movement data creation part 7 Allowable feed speed calculation part for interpolation 8 Interpolation process part 9 Data storage part after compression 10 Compression Post-data buffer 11 Program instruction 12 Command path 13 Pre-compression path correction / motion data 14 Allowable feed speed for determination 15 Compression result determination result 16 Post-compression command path 17 Path correction / motion data 18 Tool movement data 19 Allowable feed speed for interpolation 20 Tool position 100 Numerical control device 101 Compression device

Claims (18)

連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、圧縮後指令経路に基づいて工作機械を制御する数値制御装置において、
前記数値制御装置は、判定用許容送り速度算出部と圧縮可否判定部と圧縮処理部と補間用許容送り速度算出部とを有し、
前記判定用許容送り速度算出部は、指令経路又は/および圧縮後指令経路から判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を算出し、
前記圧縮可否判定部は、前記判定用圧縮前許容送り速度又は/および前記判定用圧縮後許容送り速度に基づいて圧縮の可否を判定し、
前記圧縮処理部は、前記圧縮可否判定部の圧縮可否判定結果が圧縮可のときに、前記連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、
前記補間用許容送り速度算出部は、前記圧縮後指令経路から補間用許容送り速度を算出する
ことを特徴とする数値制御装置。
In a numerical control device that creates a post-compression command path obtained by compressing a plurality of continuous command paths into one path, and controls the machine tool based on the post-compression command path.
The numerical control device includes a determination allowable feed rate calculation unit, a compression propriety determination unit, a compression processing unit, and an interpolation allowable feed rate calculation unit,
The determination allowable feed speed calculation unit calculates a pre-compression allowable feed speed or / and a post-compression allowable feed speed from the command path or / and the post-compression command path,
The compression propriety determination unit determines whether or not compression is possible based on the allowable feed speed before compression for determination or / and the allowable feed speed after compression for determination,
The compression processing unit creates a post-compression command path obtained by compressing the plurality of consecutive command paths into one path when the compressibility determination result of the compressibility determination section is compressible.
The numerical control device, wherein the interpolation allowable feed speed calculation unit calculates an interpolation allowable feed speed from the post-compression command path.
前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度が、予め設定された圧縮可能送り速度以下になった場合、圧縮不可とすることを特徴とする請求項1に記載の数値制御装置。   The compressibility determination unit determines that compression is not possible when the pre-determination allowable compression rate calculated by the determination allowable feed rate calculation unit is equal to or lower than a preset compressible feed rate. The numerical control apparatus according to claim 1, wherein 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度が加工プログラムにより指令された指令送り速度以下になった場合、圧縮不可とすることを特徴とする請求項2に記載の数値制御装置。   The compressibility determination unit determines that compression is not possible when the pre-determination allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or less than a command feed rate commanded by a machining program. The numerical control apparatus according to claim 2, wherein 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮後許容送り速度が、予め設定された圧縮可能送り速度以下になった場合、圧縮不可とすることを特徴とする請求項1に記載の数値制御装置。   The compressibility determination unit determines that compression is not possible when the post-compression allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or lower than a preset compressible feed rate. The numerical control apparatus according to claim 1, wherein 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮後許容送り速度が加工プログラムにより指令された指令送り速度以下になった場合、圧縮不可とすることを特徴とする請求項4に記載の数値制御装置。   The compressibility determination unit determines that compression is not possible when the post-compression allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or less than a command feed rate commanded by a machining program. The numerical control device according to claim 4, wherein 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度と指令送り速度とのうち小さい方を判定用圧縮前工具指令送り速度とし、前記判定用許容送り速度算出部にて算出された前記判定用圧縮後許容送り速度と指令送り速度とのうち小さい方を判定用圧縮後工具指令送り速度とし、前記判定用圧縮前工具指令送り速度と前記判定用圧縮後工具指令送り速度の差が予め設定された最大送り速度変化量以上になった場合、圧縮不可とすることを特徴とする請求項1から請求項5のいずれか1項に記載の数値制御装置。   The compression propriety determination unit determines a smaller one of the pre-determination allowable feed rate and the command feed rate calculated by the determination allowable feed rate calculation unit as a pre-decompression tool command feed rate for determination, and the determination The smaller one of the allowable post-compression allowable feed speed and the command feed speed calculated by the allowable feed speed calculation unit is set as a post-compression tool command feed speed for determination, and the pre-compression tool command feed speed for determination 6. The compression according to claim 1, wherein compression is impossible when the difference in the post-compression tool command feed speed is greater than or equal to a preset maximum feed speed change amount. 6. Numerical control unit. 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度と指令送り速度とのうち小さい方を判定用圧縮前工具指令送り速度とし、前記判定用圧縮後許容送り速度と指令送り速度とのうち小さい方を判定用圧縮後工具指令送り速度とし、前記判定用圧縮前工具指令送り速度および前記判定用圧縮後工具指令送り速度で工具の移動を制御した場合のそれぞれの圧縮前工具推定軌跡および圧縮後工具推定軌跡を求め、前記圧縮前工具推定軌跡と前記圧縮後工具推定軌跡の軌跡誤差が予め設定した最大軌跡誤差以上になった場合、圧縮不可とすることを特徴とする請求項2から請求項6のいずれか1項に記載の数値制御装置。   The compression propriety determination unit determines a smaller one of the pre-determination allowable feed rate and the command feed rate calculated by the determination allowable feed rate calculation unit as a pre-decompression tool command feed rate for determination, and the determination The smaller one of the allowable post-compression feed speed and the command feed speed is used as the post-compression tool command feed speed for judgment, and the tool is moved at the pre-compression tool command feed speed for judgment and the post-compression tool command feed speed for judgment. Each pre-compression tool estimated trajectory and post-compression tool estimated trajectory in the case of control is obtained, and if the trajectory error between the pre-compression tool estimated trajectory and the post-compression tool estimated trajectory is greater than or equal to a preset maximum trajectory error, compression is performed. The numerical control device according to claim 2, wherein the numerical control device is disabled. 前記圧縮可否判定部は、一つの経路に圧縮した複数の指令経路の経路長が指令送り速度における単位時間当たりの移動量よりも大きい場合、又は、圧縮した指令経路数が所定の値を超えた場合、圧縮不可とすることを特徴とする請求項1から請求項7のいずれか1項に記載の数値制御装置。   The compressibility determination unit determines that the path length of a plurality of command paths compressed into one path is larger than the movement amount per unit time at the command feed speed, or the number of compressed command paths exceeds a predetermined value. The numerical control device according to claim 1, wherein compression is impossible. 前記圧縮可否判定部は、加工プログラムにより加工条件が変更された場合は圧縮不可とすることを特徴とする請求項1から請求項7のいずれか1項に記載の数値制御装置。   The numerical control device according to any one of claims 1 to 7, wherein the compressibility determination unit prohibits compression when a processing condition is changed by a processing program. 連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、圧縮後指令経路に基づいて工作機械を制御する生産システムにおいて、
前記生産システムは、判定用許容送り速度算出部と圧縮可否判定部と圧縮処理部と圧縮後データ保存部を備える圧縮装置と、補間用許容送り速度算出部を備える数値制御装置からなり、
前記判定用許容送り速度算出部は、指令経路又は/および圧縮後指令経路から判定用圧縮前許容送り速度又は/および判定用圧縮後許容送り速度を算出し、
前記圧縮可否判定部は、前記判定用圧縮前許容送り速度又は/および前記判定用圧縮後許容送り速度に基づいて圧縮の可否を判定し、
前記圧縮処理部は、前記圧縮可否判定部での圧縮可否判定結果が圧縮可のときに、前記連続した複数の指令経路を一つの経路に圧縮した圧縮後指令経路を作成し、
前記圧縮後データ保存部は、前記圧縮後指令経路を圧縮後データバッファに保存し、
前記補間用許容送り速度算出部は、前記圧縮後データバッファに保存された前記圧縮後指令経路から補間用許容送り速度を算出する
ことを特徴とする生産システム。
In a production system that creates a post-compression command path by compressing a plurality of continuous command paths into one path, and controls the machine tool based on the post-compression command path.
The production system includes a determination allowable feed rate calculation unit, a compression determination unit, a compression processing unit, a compression unit including a post-compression data storage unit, and a numerical controller including an interpolation allowable feed rate calculation unit,
The determination allowable feed speed calculation unit calculates a pre-compression allowable feed speed or / and a post-compression allowable feed speed from the command path or / and the post-compression command path,
The compression propriety determination unit determines whether or not compression is possible based on the allowable feed speed before compression for determination or / and the allowable feed speed after compression for determination,
The compression processing unit creates a post-compression command path in which the plurality of consecutive command paths are compressed into one path when the compressibility determination result in the compressibility determination section is compressible.
The post-compression data storage unit stores the post-compression command path in a post-compression data buffer,
The allowable interpolation feed speed calculation unit calculates an allowable interpolation feed speed from the post-compression command path stored in the post-compression data buffer.
前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度が、予め設定された圧縮可能送り速度以下になった場合、圧縮不可とすることを特徴とする請求項10に記載の生産システム。   The compressibility determination unit determines that compression is not possible when the pre-determination allowable compression rate calculated by the determination allowable feed rate calculation unit is equal to or lower than a preset compressible feed rate. The production system according to claim 10, wherein the production system is characterized. 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度が加工プログラムにより指令された指令送り速度以下になった場合、圧縮不可とすることを特徴とする請求項11に記載の生産システム。   The compressibility determination unit determines that compression is not possible when the pre-determination allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or less than a command feed rate commanded by a machining program. The production system according to claim 11, wherein the production system is characterized. 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮後許容送り速度が、予め設定された圧縮可能送り速度以下になった場合、圧縮不可とすることを特徴とする請求項10に記載の生産システム。   The compressibility determination unit determines that compression is not possible when the post-compression allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or lower than a preset compressible feed rate. The production system according to claim 10, wherein the production system is characterized. 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮後許容送り速度が加工プログラムにより指令された指令送り速度以下になったのみ場合、圧縮不可とすることを特徴とする請求項13に記載の生産システム。   The compression propriety determination unit makes compression impossible only when the post-compression allowable feed rate calculated by the determination allowable feed rate calculation unit is equal to or less than a command feed rate commanded by a machining program. The production system according to claim 13. 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度と指令送り速度とのうち小さい方を判定用圧縮前工具指令送り速度とし、前記判定用許容送り速度算出部にて算出された前記判定用圧縮後許容送り速度と指令送り速度とのうち小さい方を判定用圧縮後工具指令送り速度とし、前記判定用圧縮前工具指令送り速度と前記判定用圧縮後工具指令送り速度の差が予め設定された最大送り速度変化量以上になった場合、圧縮不可とすることを特徴とする請求項10から請求項14のいずれか1項に記載の生産システム。   The compression propriety determination unit determines a smaller one of the pre-determination allowable feed rate and the command feed rate calculated by the determination allowable feed rate calculation unit as a pre-decompression tool command feed rate for determination, and the determination The smaller one of the allowable post-compression allowable feed speed and the command feed speed calculated by the allowable feed speed calculation unit is set as a post-compression tool command feed speed for determination, and the pre-compression tool command feed speed for determination The compression according to any one of claims 10 to 14, wherein compression is impossible when the difference in the post-compression tool command feed speed is equal to or greater than a preset maximum feed speed change amount. Production system. 前記圧縮可否判定部は、前記判定用許容送り速度算出部にて算出された前記判定用圧縮前許容送り速度と指令送り速度とのうち小さい方を判定用圧縮前工具指令送り速度とし、前記判定用圧縮後許容送り速度と指令送り速度とのうち小さい方を判定用圧縮後工具指令送り速度とし、前記判定用圧縮前工具指令送り速度および前記判定用圧縮後工具指令送り速度で工具の移動を制御した場合のそれぞれの圧縮前工具推定軌跡および圧縮後工具推定軌跡を求め、前記圧縮前工具推定軌跡と前記圧縮後工具推定軌跡の軌跡誤差が予め設定した最大軌跡誤差以上になった場合、圧縮不可とすることを特徴とする請求項11から請求項15のいずれか1項に記載の生産システム。   The compression propriety determination unit determines a smaller one of the pre-determination allowable feed rate and the command feed rate calculated by the determination allowable feed rate calculation unit as a pre-decompression tool command feed rate for determination, and the determination The smaller one of the allowable post-compression feed speed and the command feed speed is used as the post-compression tool command feed speed for judgment, and the tool is moved at the pre-compression tool command feed speed for judgment and the post-compression tool command feed speed for judgment. Each pre-compression tool estimated trajectory and post-compression tool estimated trajectory in the case of control is obtained, and if the trajectory error between the pre-compression tool estimated trajectory and the post-compression tool estimated trajectory is greater than or equal to a preset maximum trajectory error, compression is performed. The production system according to any one of claims 11 to 15, wherein the production system is disabled. 前記圧縮可否判定部は、一つの経路に圧縮した複数の指令経路の経路長が指令送り速度における単位時間当たりの移動量よりも大きい場合、又は、圧縮した指令経路数が所定の値を超えた場合、圧縮不可とすることを特徴とする請求項10から請求項16のいずれか1項に記載の生産システム。   The compressibility determination unit determines that the path length of a plurality of command paths compressed into one path is larger than the movement amount per unit time at the command feed speed, or the number of compressed command paths exceeds a predetermined value. The production system according to any one of claims 10 to 16, wherein compression is impossible. 前記圧縮可否判定部は、加工プログラムにより加工条件が変更された場合は圧縮不可とすることを特徴とする請求項10から請求項16のいずれか1項に記載の生産システム。   The production system according to any one of claims 10 to 16, wherein the compressibility determination unit prohibits compression when a processing condition is changed by a processing program.
JP2010053569A 2010-03-10 2010-03-10 Numerical control device and production system Active JP5268974B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010053569A JP5268974B2 (en) 2010-03-10 2010-03-10 Numerical control device and production system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010053569A JP5268974B2 (en) 2010-03-10 2010-03-10 Numerical control device and production system

Publications (3)

Publication Number Publication Date
JP2011186939A true JP2011186939A (en) 2011-09-22
JP2011186939A5 JP2011186939A5 (en) 2011-12-01
JP5268974B2 JP5268974B2 (en) 2013-08-21

Family

ID=44793099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010053569A Active JP5268974B2 (en) 2010-03-10 2010-03-10 Numerical control device and production system

Country Status (1)

Country Link
JP (1) JP5268974B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016021076A1 (en) * 2014-08-08 2016-02-11 三菱電機株式会社 Numerical control device
US20160346853A1 (en) * 2015-05-29 2016-12-01 Fanuc Corporation Numerical controller for wire electrical discharge machine adapted for corner control of minute blocks
JP2016218934A (en) * 2015-05-26 2016-12-22 株式会社アイエイアイ Correcting device and method for robot language programs, and program
JP2017228210A (en) * 2016-06-24 2017-12-28 ファナック株式会社 Processing program editing apparatus and method, and program for editing
CN113253677A (en) * 2021-07-05 2021-08-13 武汉瀚迈科技有限公司 Robot motion control method combining speed optimization and feedforward compensation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63271505A (en) * 1987-04-28 1988-11-09 Okuma Mach Works Ltd Position interpolating method for numerical controller
JPH06309025A (en) * 1993-04-21 1994-11-04 Toshiba Mach Co Ltd Method and device for numerical control command data preprocessing
JPH09198116A (en) * 1996-01-17 1997-07-31 Yaskawa Electric Corp Block data processing method for numerical controller
JP2000330617A (en) * 1999-05-17 2000-11-30 Toshiba Mach Co Ltd Numerical controller and feed control processing method for numerical controller
JP2001084019A (en) * 1999-09-14 2001-03-30 Yaskawa Electric Corp Numerical value controller,

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63271505A (en) * 1987-04-28 1988-11-09 Okuma Mach Works Ltd Position interpolating method for numerical controller
JPH06309025A (en) * 1993-04-21 1994-11-04 Toshiba Mach Co Ltd Method and device for numerical control command data preprocessing
JPH09198116A (en) * 1996-01-17 1997-07-31 Yaskawa Electric Corp Block data processing method for numerical controller
JP2000330617A (en) * 1999-05-17 2000-11-30 Toshiba Mach Co Ltd Numerical controller and feed control processing method for numerical controller
JP2001084019A (en) * 1999-09-14 2001-03-30 Yaskawa Electric Corp Numerical value controller,

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016021076A1 (en) * 2014-08-08 2016-02-11 三菱電機株式会社 Numerical control device
JPWO2016021076A1 (en) * 2014-08-08 2017-04-27 三菱電機株式会社 Numerical controller
JP2016218934A (en) * 2015-05-26 2016-12-22 株式会社アイエイアイ Correcting device and method for robot language programs, and program
US20160346853A1 (en) * 2015-05-29 2016-12-01 Fanuc Corporation Numerical controller for wire electrical discharge machine adapted for corner control of minute blocks
JP2016224642A (en) * 2015-05-29 2016-12-28 ファナック株式会社 Wire-cut electrical discharge machine numerical control device exerting very small block corner control
US10549367B2 (en) 2015-05-29 2020-02-04 Fanuc Corporation Numerical controller for wire electrical discharge machine adapted for corner control of minute blocks
JP2017228210A (en) * 2016-06-24 2017-12-28 ファナック株式会社 Processing program editing apparatus and method, and program for editing
CN113253677A (en) * 2021-07-05 2021-08-13 武汉瀚迈科技有限公司 Robot motion control method combining speed optimization and feedforward compensation
CN113253677B (en) * 2021-07-05 2021-10-08 武汉瀚迈科技有限公司 Robot motion control method combining speed optimization and feedforward compensation

Also Published As

Publication number Publication date
JP5268974B2 (en) 2013-08-21

Similar Documents

Publication Publication Date Title
JP5202735B2 (en) Numerical controller
JP5268974B2 (en) Numerical control device and production system
US8560112B2 (en) Numerical controller with function to correct movement path of machining program
US8018192B2 (en) 3D-trajectory display device for machine tool
Lai et al. On the development of a parametric interpolator with confined chord error, feedrate, acceleration and jerk
JP5417392B2 (en) Numerical controller
JP2010511919A (en) Tolerance-based path design and control methods
US10416613B2 (en) Machining time estimating apparatus
Bosetti et al. Feed-rate and trajectory optimization for CNC machine tools
US9897992B2 (en) Numerical control apparatus
US10261490B2 (en) Servomotor control device, servomotor control method, and computer readable recording medium
JP2001255921A (en) Working control system
US10788805B2 (en) Numerical controller having tool path interpolation
WO2018020663A1 (en) Numerical control device
CN112865750A (en) Numerical control system multiplying power change smooth control method and device based on FIR filter
CN103901815A (en) Value control apparatus and value control method
JPH11345014A (en) Numerical controller
Sekar et al. Design of jerk bounded feedrate with ripple effect for adaptive nurbs interpolator
JP2001051708A (en) Numerical control method
KR20030060272A (en) Apparatus and method for controlling numerical of high process
JP2004341984A (en) Numerical value control device and numerical value control method
WO2022138843A1 (en) Numerical control device
JP3902353B2 (en) Numerical controller
KR100249354B1 (en) Method of contour error modeling for cross-coupled control of cnc machines
CN116449773A (en) Cutting speed planning system and method, non-transitory recording medium and cutting system

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111014

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111014

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130226

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130321

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130409

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130507

R150 Certificate of patent or registration of utility model

Ref document number: 5268974

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250