JP5277373B2 - Numerical control device and operation control method for machine tool - Google Patents

Numerical control device and operation control method for machine tool Download PDF

Info

Publication number
JP5277373B2
JP5277373B2 JP2009026458A JP2009026458A JP5277373B2 JP 5277373 B2 JP5277373 B2 JP 5277373B2 JP 2009026458 A JP2009026458 A JP 2009026458A JP 2009026458 A JP2009026458 A JP 2009026458A JP 5277373 B2 JP5277373 B2 JP 5277373B2
Authority
JP
Japan
Prior art keywords
electronic cam
data
unit
data conversion
storage unit
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.)
Active
Application number
JP2009026458A
Other languages
Japanese (ja)
Other versions
JP2010182190A (en
Inventor
訓之 矢崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Star Micronics Co Ltd
Original Assignee
Star Micronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Star Micronics Co Ltd filed Critical Star Micronics Co Ltd
Priority to JP2009026458A priority Critical patent/JP5277373B2/en
Publication of JP2010182190A publication Critical patent/JP2010182190A/en
Application granted granted Critical
Publication of JP5277373B2 publication Critical patent/JP5277373B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To allow subsequent workpieces to be machined while an inputted wear offset is valid, without suspending workpiece machining. <P>SOLUTION: When a wear offset is inputted during execution of an electronic cam operation, data conversion processing to new electronic cam data reflecting the inputted wear offset is started in the background while continuing execution of the electronic cam operation. When completion of one cycle of the electronic cam operation is detected during the data conversion processing, the workpiece machining is continued by switching from the electronic cam operation to an NC operation. Thus, even when the data conversion processing is not completed before completion of the one cycle of the electronic cam operation, the workpiece machining is allowed to be continued by switching to the NC operation that can promptly reflect the inputted wear offset, without suspending operation of the machining tool. <P>COPYRIGHT: (C)2010,JPO&amp;INPIT

Description

本発明は、工作機械の数値制御装置および運転制御方法に関し、特に、NC(numerical control)プログラムを電子カムデータに変換して、その電子カムデータにより各機構部の動作を制御するようにした工作機械の数値制御装置に用いて好適なものである。   The present invention relates to a numerical control device and an operation control method for a machine tool, and in particular, a machine that converts an NC (numerical control) program into electronic cam data and controls the operation of each mechanism unit by the electronic cam data. It is suitable for use in a numerical control device of a machine.

従来、工作機械の数値制御方式には、NCプログラムを使用するNC制御方式と、電子カムデータを使用する電子カム制御方式とが存在する。NCプログラムは、主軸や刃物台等の移動指令を表すGコード、使用する工具の呼出指令を表すTコード、補助機能指令を表すMコードなどのコード体系を持つプログラムである。NC制御方式では、工作機械の数値制御装置(NC装置)がNCプログラムを1ブロック(行)ずつ読み込んでその指令(NCコード)を解釈し、指令の実行に必要なデータを参照しながら、複数の指令を順次実行していく。   Conventionally, numerical control methods for machine tools include an NC control method using an NC program and an electronic cam control method using electronic cam data. The NC program is a program having a code system such as a G code representing a movement command for a spindle or a tool post, a T code representing a calling command for a tool to be used, and an M code representing an auxiliary function command. In the NC control method, a numerical control device (NC device) of a machine tool reads NC programs one block (line) at a time, interprets the command (NC code), and refers to the data necessary for executing the command. The commands are executed sequentially.

NC装置がNCコードに従って読み込むデータには、被加工物(ワーク)の加工に使用する工具(刃物)の位置を補正するための摩耗オフセットと呼ばれるデータがある。工具は、複数のワークを加工しているうちに刃先が徐々に摩耗してくる。刃先が摩耗してくると、摩耗によって摩り減った分だけ工具の加工位置が変化してしまう。このため、予定していた通りにワークを加工することができなくなり、ワークの加工精度に誤差が生じる。そして、この誤差が公差の範囲を超えないように、摩耗した刃先が本来の正しい位置にくるように工具の位置を微修正する必要がある。この位置の修正量を示すのが摩耗オフセットである。   The data read by the NC device in accordance with the NC code includes data called wear offset for correcting the position of a tool (blade) used for machining a workpiece (workpiece). The cutting edge of the tool gradually wears while machining a plurality of workpieces. When the cutting edge starts to wear, the machining position of the tool changes by the amount worn by the wear. For this reason, the workpiece cannot be machined as planned, and an error occurs in the workpiece machining accuracy. Then, it is necessary to finely correct the position of the tool so that the worn cutting edge comes to the original correct position so that this error does not exceed the tolerance range. A wear offset indicates the correction amount of this position.

一方、電子カム制御方式では、工作機械の動作前に、コンピュータがNCプログラムを電子カムデータに変換する。そして、変換した電子カムデータによりNC装置が工作機械の各機構部の動作を制御する。電子カムデータは、所定の基準軸における動作量を基準にして、基準軸の動作量に対応した移動軸の位置データを表すデータである。例えば、所定時間毎の主軸の累積回転角に対応させて刃物台の工具の位置データを表したものが電子カムデータである。この電子カムデータにより示される工具の位置データは、上述の摩耗オフセットも考慮に入れて算出されたものである。電子カム制御方式では、基準軸の動作量が電子カムデータに記憶された動作量に達したときに、その動作量に対応して記憶された位置に移動軸が到達するように制御する。   On the other hand, in the electronic cam control system, the computer converts the NC program into electronic cam data before the machine tool is operated. Then, the NC device controls the operation of each mechanism part of the machine tool based on the converted electronic cam data. The electronic cam data is data representing the position data of the moving axis corresponding to the movement amount of the reference axis with reference to the movement amount of the predetermined reference axis. For example, the electronic cam data represents the position data of the tool on the tool post corresponding to the cumulative rotation angle of the spindle every predetermined time. The tool position data indicated by the electronic cam data is calculated in consideration of the wear offset described above. In the electronic cam control system, when the movement amount of the reference axis reaches the movement amount stored in the electronic cam data, control is performed so that the moving axis reaches the position stored corresponding to the movement amount.

NC制御方式では、工作機械の運転時にNC装置がNCプログラムを1行ずつ読み込み、指令の内容を解釈しながら実行していく必要がある。これに対し、電子カム制御方式では、工作機械の運転前に一連の動作を電子カムテーブルに電子カムデータとして確定しておく。そのため、1行ずつプログラムを読み込んで指令の解釈をその都度行う必要がないので、指令を解釈する時間が不要となる。また、電子カム制御方式では、各移動軸毎に軸移動の開始を最適なタイミングに設定することもできる。その結果、被加工物(ワーク)の加工時間を短縮する等の最適化を電子カムデータにあらかじめ施すことが可能である。   In the NC control method, it is necessary for the NC device to read the NC program line by line during operation of the machine tool and execute it while interpreting the contents of the command. On the other hand, in the electronic cam control system, a series of operations are determined as electronic cam data in the electronic cam table before the machine tool is operated. For this reason, it is not necessary to read the program line by line and interpret the command each time, so that the time for interpreting the command is not required. Further, in the electronic cam control system, the start of the axis movement can be set at an optimal timing for each movement axis. As a result, optimization such as shortening the processing time of the workpiece (workpiece) can be performed in advance on the electronic cam data.

ただし、摩耗オフセットの値の変更に対して、NC制御方式では柔軟に対応できるが、電子カム制御方式では柔軟に対応することができない。すなわち、NC制御方式は、NCプログラムの指令を順に読み込み、読み込んだ指令に従ってNCプログラムとは別に記憶されている摩耗オフセットを参照して工具の位置を割り出す仕組みとなっている。そのため、NCプログラム自体は修正する必要がなく、摩耗オフセットの値を変えるだけで、つまり工作機械の運転を停止することなく、変更後の摩耗オフセットを工具の刃先位置の補正に直ちに反映させることができる。複数のワークを連続的に加工する場合、工具の摩耗は計時的に進行するが、NC制御方式によれば、摩耗の進行に合わせて摩耗オフセットの値を随時変更して刃先位置の補正に反映させることが可能である。   However, the NC control method can flexibly cope with the change of the wear offset value, but the electronic cam control method cannot flexibly cope with the change of the wear offset value. In other words, the NC control system has a mechanism in which NC program commands are sequentially read, and a tool position is determined by referring to a wear offset stored separately from the NC program in accordance with the read commands. Therefore, the NC program itself does not need to be corrected, and the changed wear offset can be immediately reflected in the correction of the tool edge position only by changing the value of the wear offset, that is, without stopping the operation of the machine tool. it can. When machining multiple workpieces continuously, the wear of the tool progresses in time, but according to the NC control method, the value of the wear offset is changed at any time according to the progress of wear and reflected in the correction of the cutting edge position. It is possible to make it.

これに対して、電子カム制御方式は、摩耗オフセットも考慮に入れてNCプログラムを電子カムデータにあらかじめ変換し、電子カムデータにより工作機械を運転する仕組みとなっている。そのため、摩耗オフセットを変更する場合は、摩耗オフセットを変更した後、工作機械の運転をいったん停止して変更後の摩耗オフセットを用いてNCプログラムを電子カムデータに再変換しなければならない。すなわち、変更した摩耗オフセットを電子カムデータに直ちに反映させることができない。そのため、電子カム制御方式は、1つのワークの加工時間はNC制御方式より短くなるものの、複数のワークを加工する場合にはトータルの加工時間が長くなってしまうこともあった。   On the other hand, the electronic cam control system has a mechanism in which the NC program is converted into electronic cam data in advance in consideration of wear offset, and the machine tool is operated by the electronic cam data. Therefore, when changing the wear offset, after changing the wear offset, it is necessary to stop the operation of the machine tool and reconvert the NC program into electronic cam data using the changed wear offset. That is, the changed wear offset cannot be immediately reflected in the electronic cam data. For this reason, in the electronic cam control method, the machining time for one workpiece is shorter than that in the NC control method, but when machining a plurality of workpieces, the total machining time may be increased.

従来、このような不都合を解消するための技術が提案されている(例えば、特許文献1参照)。この特許文献1に記載の数値制御装置では、電子カムデータによる工作機械の運転中に、摩耗オフセットとNCプログラムとに基づき電子カムデータへの変換をバックグランドで行う。そして、その変換処理の完了後に、使用中の電子カムデータを再変換後の新しい電子カムデータと置換する。このようにすれば、摩耗オフセットの変更を電子カムデータに反映させるために工作機械の運転をいったん停止する必要がなくなり、複数のワークを加工する場合のトータルの加工時間を短くすることができる。   Conventionally, a technique for eliminating such inconvenience has been proposed (see, for example, Patent Document 1). In the numerical control device described in Patent Document 1, conversion to electronic cam data is performed in the background based on the wear offset and the NC program during operation of the machine tool based on the electronic cam data. Then, after the conversion process is completed, the electronic cam data being used is replaced with new electronic cam data after re-conversion. In this way, it is not necessary to once stop the operation of the machine tool in order to reflect the change in the wear offset in the electronic cam data, and the total machining time when machining a plurality of workpieces can be shortened.

特開2004−326618号公報JP 2004-326618 A

しかしながら、特許文献1に記載の従来技術では、工作機械の運転中に新たに電子カムデータへのデータ変換処理を開始したときに加工途中であったワークの加工が完了するまでに、データ変換処理が終わらない場合がある。図7は、このようなケースを模式的に示すタイミングチャートである。図7に示す1サイクル停止コードは、連続して複数のワークを加工する際に1つのワークの加工終了を表すためのコードである。すなわち、1サイクル停止コードを2回検知する間の時間が、サイクルタイムと呼ばれるワークの加工時間に相当する。   However, in the prior art described in Patent Document 1, the data conversion process is completed until the machining of the workpiece that is in the middle of machining when the data conversion process to the electronic cam data is newly started during the operation of the machine tool. May not end. FIG. 7 is a timing chart schematically showing such a case. The one-cycle stop code shown in FIG. 7 is a code for indicating the end of machining of one workpiece when machining a plurality of workpieces continuously. That is, the time between two detections of one cycle stop code corresponds to the workpiece machining time called cycle time.

図7に示す例では、ワークAを加工している途中でオペレータが摩耗オフセットを入力し、その入力された摩耗オフセットを用いてコンピュータがデータ変換処理を開始している。その後、データ変換処理の途中でワークAの加工が完了し(1つ目の1サイクル停止コードの検出)、続いて次のワークBの加工処理を行っている。そして、ワークBの加工処理の途中でデータ変換処理が完了し、その後しばらくしてワークBの加工が完了している(2つ目の1サイクル停止コードの検出)。ワークBの加工が完了した後は、次のワークCの加工処理を行っている。   In the example shown in FIG. 7, the operator inputs the wear offset while machining the workpiece A, and the computer starts the data conversion process using the input wear offset. Thereafter, the machining of the workpiece A is completed in the middle of the data conversion process (detection of the first one-cycle stop code), and then the machining process for the next workpiece B is performed. Then, the data conversion process is completed in the middle of the workpiece B machining process, and after a while, the machining of the workpiece B is completed (detection of the second one-cycle stop code). After the workpiece B has been processed, the next workpiece C is processed.

図7のような状況の場合、ワークAの加工中に摩耗オフセットを用いたデータ変換処理がバックグランドで開始されるが、ワークAの加工が完了するまでにデータ変換処理が終わっていない。入力した摩耗オフセットが有効になるのは、当該摩耗オフセットを用いた電子カムデータへの変換が完了した後からであるため、ワークAの次のワークBは、摩耗オフセットの変更が反映される前の古い電子カムデータにより加工されてしまう。つまり、図7のケースでは、ワークBの次のワークCに対する加工からしか摩耗オフセットの変更を反映することができない。なお、データ変換処理が長引いてワークBの加工完了までに終わらなければ、次のワークCも古い電子カムデータに基づいて加工されてしまう。   In the situation as shown in FIG. 7, the data conversion process using the wear offset is started in the background during the machining of the workpiece A, but the data conversion process is not finished until the machining of the workpiece A is completed. The input wear offset becomes effective after the conversion to the electronic cam data using the wear offset is completed. Therefore, the work B next to the work A is before the change of the wear offset is reflected. Are processed by old electronic cam data. That is, in the case of FIG. 7, the change of the wear offset can be reflected only from the machining of the workpiece B following the workpiece B. If the data conversion process is not completed until the processing of the workpiece B is completed, the next workpiece C is also processed based on the old electronic cam data.

このように、従来は、入力した摩耗オフセットが有効となるまでの間に、古い電子カムデータに基づいて数個のワークを加工してしまう問題があった。通常、摩耗オフセットを入力するのは、工具の刃先の摩耗が相当進んだ後のタイミングである。そのため、摩耗オフセットを入力したにもかかわらず古い電子カムデータに基づいて加工された数個のワークに関しては、公差の範囲を超えてしまう可能性が高くなるという問題があった。   Thus, conventionally, there has been a problem that several workpieces are processed based on old electronic cam data until the input wear offset becomes effective. Normally, the wear offset is inputted at a timing after the wear of the cutting edge of the tool has advanced considerably. For this reason, there is a problem that there is a high possibility that the number of workpieces processed based on the old electronic cam data despite the input of the wear offset exceeds the tolerance range.

これに対し、新たな電子カムデータへのデータ変換処理をバックグランドで行っているときに、それと並行して運転中の古い電子カムデータにおいて1サイクル停止コードを検出した場合(あるワークの加工完了を検出した場合)、新たな電子カムデータへのデータ変換処理が完了するまで次のワークの加工を一時的に停止するという方法が考えられる。図7の例でいうと、ワークAの加工終了を表す1サイクル停止コードを検出したときに工作機械の運転を一時停止し、その後、データ変換処理が完了した時点で次のワークBの加工を開始するという方法である。このようにすれば、あるワークの加工中に入力した摩耗オフセットを次のワークの加工時から有効とすることが可能となる。   On the other hand, when data conversion processing to new electronic cam data is performed in the background, a one-cycle stop code is detected in the old electronic cam data in operation in parallel (processing of a certain workpiece is completed) In this case, it is conceivable to temporarily stop the machining of the next workpiece until the data conversion process into new electronic cam data is completed. In the example of FIG. 7, the machine tool operation is temporarily stopped when a one-cycle stop code indicating the machining end of the workpiece A is detected, and then the next workpiece B is machined when the data conversion process is completed. It is a method of starting. In this way, it is possible to make the wear offset input during machining of a certain workpiece effective from the time of machining the next workpiece.

しかしながら、この方法では、データ変換処理が完了するまでワークの加工を一時的に停止しなければならない。そのため、複数のワークを加工する場合のトータルの加工時間が長くなってしまうという問題を生じる。   However, in this method, machining of the workpiece must be temporarily stopped until the data conversion process is completed. Therefore, there arises a problem that the total machining time for machining a plurality of workpieces becomes long.

本発明は、このような問題を解決するために成されたものであり、ワークの加工を一時的に停止することなく、入力した摩耗オフセットが有効な状態で次以降のワークを加工できるようにすることを目的とする。   The present invention has been made in order to solve such a problem, so that the next and subsequent workpieces can be machined in a state where the input wear offset is effective without temporarily stopping the machining of the workpieces. The purpose is to do.

上記した課題を解決するために、本発明では、電子カムデータに基づく電子カム運転の実行中に工具刃先位置補正量(摩耗オフセット)が入力された場合に、電子カム運転の実行を継続しながら、入力された工具刃先位置補正量を反映させた新たな電子カムデータをNCプログラムから変換する処理を行う。そして、電子カム運転の実行と並行して新たな電子カムデータへの変換処理が行われている最中に、電子カム運転の動作が1サイクル終了したことを検出した場合には、電子カム運転からNC運転へと切り替える。   In order to solve the above-described problem, in the present invention, when the tool edge position correction amount (wear offset) is input during execution of the electronic cam operation based on the electronic cam data, the execution of the electronic cam operation is continued. Then, a process for converting new electronic cam data reflecting the input tool edge position correction amount from the NC program is performed. When it is detected that the operation of the electronic cam operation has been completed during the conversion process to new electronic cam data in parallel with the execution of the electronic cam operation, Switch from to NC operation.

また、本発明の他の態様では、上述のようにして電子カム運転からNC運転へと切り替えた後に、新たな電子カムデータへのデータ変換処理が完了し、かつ、NC運転の動作が1サイクル終了したことが検出されたとき、NC運転から、新たな電子カムデータに基づく電子カム運転へと切り替える。   In another aspect of the present invention, after switching from the electronic cam operation to the NC operation as described above, the data conversion process to new electronic cam data is completed, and the operation of the NC operation is one cycle. When it is detected that the operation has been completed, the NC operation is switched to the electronic cam operation based on the new electronic cam data.

上記のように構成した本発明によれば、電子カム運転の実行中に、入力された工具刃先位置補正量とNCプログラムとに基づき新たな電子カムデータへのデータ変換処理が行われる。このため、工具刃先位置補正量の変更を電子カムデータに反映させるために工作機械の運転をいったん停止する必要がない。また、データ変換処理を開始したときに実行中であった電子カム運転の動作が1サイクル終了するまでの間にデータ変換処理が終わらない場合であっても、電子カム運転の動作が1サイクル終了した時点で、電子カム運転からNC運転に切り替えられてワークの加工が継続される。NC運転の場合は、工作機械の運転を停止してNCプログラムを修正しなくても、入力された工具刃先位置補正量を直ちに反映させることができる。以上により、本発明によれば、ワークの加工を一時的に停止することなく、入力した工具刃先位置補正量が有効な状態で次以降のワークを加工することができる。   According to the present invention configured as described above, data conversion processing to new electronic cam data is performed based on the input tool edge position correction amount and the NC program during execution of the electronic cam operation. For this reason, it is not necessary to stop the operation of the machine tool in order to reflect the change in the tool edge position correction amount in the electronic cam data. In addition, even if the data conversion process does not end before the end of the cycle of the electronic cam operation that was being executed when the data conversion process was started, the operation of the electronic cam operation ends At this point, the operation of the workpiece is continued by switching from the electronic cam operation to the NC operation. In the case of NC operation, the input tool edge position correction amount can be immediately reflected without stopping the operation of the machine tool and correcting the NC program. As described above, according to the present invention, it is possible to machine the subsequent workpieces in a state where the input tool edge position correction amount is valid without temporarily stopping the machining of the workpieces.

また、本発明の他の態様によれば、上述のようにして電子カム運転からNC運転へと切り替えた後に、そのNC運転の動作が1サイクル終了した時点で新たな電子カムデータへのデータ変換処理も完了していれば、NC運転から電子カム運転へと戻される。その後の電子カム運転は、入力した工具刃先位置補正量が反映された新たな電子カムデータに基づいて行われる。これにより、入力した工具刃先位置補正量が有効な状態でワークの加工を単に継続して行うことができるだけでなく、1ワーク当たりの加工時間が短い電子カム運転をできるだけ多く利用して、複数のワークを加工する場合のトータルの加工時間を短くすることができる。   Further, according to another aspect of the present invention, after switching from the electronic cam operation to the NC operation as described above, data conversion to new electronic cam data is performed at the time when the cycle of the NC operation ends. If the processing is also completed, the operation returns from the NC operation to the electronic cam operation. The subsequent electronic cam operation is performed based on new electronic cam data reflecting the input tool edge position correction amount. Thus, not only can the workpiece machining be performed continuously in a state where the input tool edge position correction amount is valid, but a plurality of electronic cam operations with a short machining time per workpiece are utilized as much as possible. The total machining time when machining a workpiece can be shortened.

本実施形態による工作機械の数値制御装置のハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the numerical control apparatus of the machine tool by this embodiment. 本実施形態による数値制御装置の機能構成例を示す図である。It is a figure which shows the function structural example of the numerical control apparatus by this embodiment. 本実施形態による数値制御装置の動作例を示すタイミングチャートである。It is a timing chart which shows the operation example of the numerical control apparatus by this embodiment. 本実施形態による数値制御装置の動作例であってメイン処理の処理手順を示すフローチャートである。It is an operation example of the numerical control apparatus by this embodiment, and is a flowchart which shows the process sequence of a main process. 本実施形態による数値制御装置の動作例であって摩耗オフセット入力処理の処理手順を示すフローチャートである。It is an operation example of the numerical control apparatus by this embodiment, and is a flowchart which shows the process sequence of wear offset input processing. 本実施形態による数値制御装置の動作例であってデータ変換処理の処理手順を示すフローチャートである。It is an operation example of the numerical control apparatus by this embodiment, and is a flowchart which shows the process sequence of a data conversion process. 従来の数値制御装置の動作例を示すタイミングチャートである。It is a timing chart which shows the operation example of the conventional numerical control apparatus.

以下、本発明の一実施形態を図面に基づいて説明する。図1は、本実施形態による工作機械の数値制御装置(NC装置100)のハードウェア構成例を示す図である。図2は、本実施形態によるNC装置100の主要な機能構成例を示す図である。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a hardware configuration example of a numerical control device (NC device 100) of a machine tool according to the present embodiment. FIG. 2 is a diagram illustrating a main functional configuration example of the NC device 100 according to the present embodiment.

図1に示すように、本実施形態のNC装置100は、CPU10、ROM20、RAM30、入力部40、表示部50および駆動制御部60を備えている。CPU10は、ROM20およびRAM30に格納されている各種プログラムに従って所定の処理を実行する。ROM20は、データ変換プログラム記憶部20a、運転切替制御プログラム記憶部20bおよび摩耗オフセット入力プログラム記憶部20cを有している。RAM30は、NCプログラム記憶部30a、電子カムデータ記憶部30b、摩耗オフセット記憶部30cおよびフラグ記憶部30dを有している。   As shown in FIG. 1, the NC apparatus 100 according to the present embodiment includes a CPU 10, a ROM 20, a RAM 30, an input unit 40, a display unit 50, and a drive control unit 60. The CPU 10 executes predetermined processing according to various programs stored in the ROM 20 and the RAM 30. The ROM 20 includes a data conversion program storage unit 20a, an operation switching control program storage unit 20b, and a wear offset input program storage unit 20c. The RAM 30 includes an NC program storage unit 30a, an electronic cam data storage unit 30b, a wear offset storage unit 30c, and a flag storage unit 30d.

RAM30のNCプログラム記憶部30aは、オペレータが作成したNCプログラムを記憶する。このNCプログラムは、工作機械の各駆動機構110(主軸や刃物台)の移動軸をNC制御方式で制御する場合に使用するものであり、Gコード、Tコード、Mコードなどのコード体系を持つ。なお、CPU10およびNCプログラム記憶部30aに記憶されたNCプログラムにより、図2のNC運転制御部1が構成される。   The NC program storage unit 30a of the RAM 30 stores the NC program created by the operator. This NC program is used when the moving axis of each drive mechanism 110 (spindle or tool post) of a machine tool is controlled by the NC control method, and has a code system such as G code, T code, and M code. . The NC operation control unit 1 of FIG. 2 is configured by the NC program stored in the CPU 10 and the NC program storage unit 30a.

ROM20のデータ変換プログラム記憶部20aは、NCプログラム記憶部30aに記憶されているNCプログラムを電子カムデータに変換するためのデータ変換プログラムを記憶する。なお、CPU10およびデータ変換プログラム記憶部20aに記憶されたデータ変換プログラムにより、図2のデータ変換部2が構成される。   The data conversion program storage unit 20a of the ROM 20 stores a data conversion program for converting the NC program stored in the NC program storage unit 30a into electronic cam data. The data conversion unit 2 in FIG. 2 is configured by the data conversion program stored in the CPU 10 and the data conversion program storage unit 20a.

RAM30の電子カムデータ記憶部30bは、NCプログラムから変換された電子カムデータを記憶する。電子カムデータは、各駆動機構110の移動軸を電子カム制御方式で制御する場合に使用するものであり、所定の基準軸における動作量を基準にして、基準軸の動作量に対応した移動軸の位置データを表す。なお、CPU10および電子カムデータ記憶部30bに記憶された電子カムデータにより、図2の電子カム運転制御部3が構成される。   The electronic cam data storage unit 30b of the RAM 30 stores electronic cam data converted from the NC program. The electronic cam data is used when the movement axis of each drive mechanism 110 is controlled by the electronic cam control method, and the movement axis corresponding to the movement amount of the reference axis on the basis of the movement amount on the predetermined reference axis. Represents position data. The electronic cam operation control unit 3 of FIG. 2 is configured by the electronic cam data stored in the CPU 10 and the electronic cam data storage unit 30b.

駆動制御部60は、NCプログラム記憶部30aに記憶されているNCプログラムに基づくCPU10の制御、または、電子カムデータ記憶部30bに記憶されている電子カムデータに基づくCPU10の制御に従って、各駆動機構110の移動軸に関する駆動を制御する。   The drive control unit 60 controls each drive mechanism according to the control of the CPU 10 based on the NC program stored in the NC program storage unit 30a or the control of the CPU 10 based on the electronic cam data stored in the electronic cam data storage unit 30b. 110 controls the driving of the moving axis.

ROM20の運転切替制御プログラム記憶部20bは、NC運転でワークを加工するか電子カム運転でワークを加工するかを切り替えるための運転切替制御プログラムを記憶する。NC運転とは、NCプログラム記憶部30aに記憶されているNCプログラムに基づきCPU10が駆動制御部60を制御してワークの加工を行う運転状態である。また、電子カム運転とは、電子カムデータ記憶部30bに記憶されている電子カムデータに基づきCPU10が駆動制御部60を制御してワークの加工を行う運転状態である。なお、CPU10および運転切替制御プログラム記憶部20bに記憶された運転切替制御プログラムにより、図2の運転切り替え制御部4が構成される。   The operation switching control program storage unit 20b of the ROM 20 stores an operation switching control program for switching between machining a workpiece by NC operation or machining a workpiece by electronic cam operation. The NC operation is an operation state in which the CPU 10 controls the drive control unit 60 based on the NC program stored in the NC program storage unit 30a to process the workpiece. The electronic cam operation is an operation state in which the CPU 10 controls the drive control unit 60 based on the electronic cam data stored in the electronic cam data storage unit 30b to process the workpiece. The operation switching control unit 4 of FIG. 2 is configured by the operation switching control program stored in the CPU 10 and the operation switching control program storage unit 20b.

RAM30の摩耗オフセット記憶部30cは、各移動機構110の一要素である刃物台に取り付けられた工具の刃先位置に関する補正量を表す工具刃先位置補正量としての摩耗オフセットを記憶する。入力部40は、キーボードなどの入力デバイスを備えて構成されるものであり、オペレータが摩耗オフセットを入力する際に使用される。表示部50は、液晶表示装置などの表示デバイスを備えて構成されるものであり、オペレータが入力部40の操作を行う際に使用する各種操作画面などを表示する。   The wear offset storage unit 30 c of the RAM 30 stores a wear offset as a tool edge position correction amount that represents a correction amount related to the blade edge position of the tool attached to the tool post that is an element of each moving mechanism 110. The input unit 40 includes an input device such as a keyboard, and is used when an operator inputs a wear offset. The display unit 50 is configured to include a display device such as a liquid crystal display device, and displays various operation screens used when the operator operates the input unit 40.

ROM20の摩耗オフセット入力プログラム記憶部20cは、入力部40の操作を通じて摩耗オフセットの入力を受け付けるための摩耗オフセット入力プログラムを記憶する。なお、CPU10および摩耗オフセット入力プログラム記憶部20cに記憶された摩耗オフセット入力プログラムにより、図2の摩耗オフセット入力部5が構成される。摩耗オフセット入力部5は、本発明の補正量入力部に相当するものである。   The wear offset input program storage unit 20c of the ROM 20 stores a wear offset input program for receiving wear offset input through operation of the input unit 40. The wear offset input unit 5 of FIG. 2 is configured by the wear offset input program stored in the CPU 10 and the wear offset input program storage unit 20c. The wear offset input unit 5 corresponds to a correction amount input unit of the present invention.

RAM30のフラグ記憶部30dは、CPU10がROM20およびRAM30に格納されている各種プログラムに従って処理を実行する際に必要となる各種フラグ情報を記憶する。フラグ記憶部30dに記憶されるフラグ情報には、摩耗オフセット変更フラグ、データ変換中フラグ、摩耗オフセット入力禁止フラグがある。   The flag storage unit 30d of the RAM 30 stores various flag information necessary when the CPU 10 executes processing according to various programs stored in the ROM 20 and the RAM 30. The flag information stored in the flag storage unit 30d includes a wear offset change flag, a data conversion flag, and a wear offset input prohibition flag.

摩耗オフセット変更フラグは、入力部40から摩耗オフセットが入力されたとき、すなわち、摩耗オフセット記憶部30cに記憶される摩耗オフセットの値が変更されたときにオンとなるフラグ情報である。データ変換中フラグは、NCプログラムから電子カムデータに変換する処理(データ変換処理)の実行中にオンとなるフラグ情報である。摩耗オフセット入力禁止フラグは、摩耗オフセットが入力された後、データ変換処理の実行中に電子カム運転から切り替えられて行われるNC運転が終了するまでの間オンとなって摩耗オフセットの再入力を禁止するためのフラグ情報である。   The wear offset change flag is flag information that is turned on when a wear offset is input from the input unit 40, that is, when the value of the wear offset stored in the wear offset storage unit 30c is changed. The data conversion flag is flag information that is turned on during execution of processing (data conversion processing) for converting NC programs into electronic cam data. The wear offset input prohibition flag remains on after the wear offset is input until the NC operation that is performed by switching from the electronic cam operation during the data conversion process is completed, and prohibits the re-input of the wear offset. This is flag information.

以下、図2に示した各機能構成について詳しく説明する。図2において、NC運転制御部1は、NCプログラム記憶部30aに格納されているNCプログラムを実行する。すなわち、NC運転制御部1は、NCプログラム記憶部30aに記憶されているNCプログラムに基づきワークを加工するNC運転の制御を行う。ここで、NC運転制御部1は、NCプログラム記憶部30aに格納されているNCプログラムの指令を順に読み込み、読み込んだ指令に従って摩耗オフセット記憶部30cに記憶されている摩耗オフセットを参照しながら、工具の刃先位置を計算する。そして、計算した位置に刃物台の工具を移動させるよう駆動制御部60を制御する。   Hereinafter, each functional configuration shown in FIG. 2 will be described in detail. In FIG. 2, the NC operation control unit 1 executes the NC program stored in the NC program storage unit 30a. That is, the NC operation control unit 1 controls the NC operation for machining the workpiece based on the NC program stored in the NC program storage unit 30a. Here, the NC operation control unit 1 sequentially reads the commands of the NC program stored in the NC program storage unit 30a, and refers to the wear offset stored in the wear offset storage unit 30c according to the read command while referring to the tool offset. Calculate the cutting edge position. And the drive control part 60 is controlled to move the tool of a tool post to the calculated position.

データ変換部2は、NCプログラム記憶部30aに格納されているNCプログラムを、所定時間毎の工具の位置データを表す電子カムデータに変換する。そして、データ変換部2は、変換した電子カムデータを電子カムデータ記憶部30bに記憶する。NCプログラムを電子カムデータに変換する際に、摩耗オフセット記憶部30cに摩耗オフセットが記憶されている場合には、データ変換部2はその摩耗オフセットも用いて工具の位置データを算出する。   The data conversion unit 2 converts the NC program stored in the NC program storage unit 30a into electronic cam data representing tool position data every predetermined time. The data conversion unit 2 stores the converted electronic cam data in the electronic cam data storage unit 30b. If the wear offset is stored in the wear offset storage unit 30c when the NC program is converted into the electronic cam data, the data conversion unit 2 calculates the position data of the tool using the wear offset.

データ変換部2は、データ変換処理の実行中に、フラグ記憶部30dに格納されているデータ変換中フラグをオンに書き換える。すなわち、データ変換部2は、データ変換処理を開始したときにデータ変換中フラグをオンに書き換えるとともに、データ変換処理を終了したときにデータ変換中フラグをオフに書き換える。   During the execution of the data conversion process, the data conversion unit 2 rewrites the data conversion flag stored in the flag storage unit 30d to on. In other words, the data conversion unit 2 rewrites the data conversion flag on when the data conversion process is started, and rewrites the data conversion flag off when the data conversion process ends.

電子カム運転制御部3は、電子カムデータ記憶部30bに記憶されている電子カムデータに基づきワークを加工する電子カム運転の制御を行う。ここで、電子カム運転制御部3は、例えば、各駆動機構110の一要素である主軸の位置が電子カムデータに記憶された位置に達したときに、その主軸の位置に対応して記憶された刃物台の位置に当該刃物台が到達するように駆動制御部60を制御する。   The electronic cam operation control unit 3 controls the electronic cam operation that processes the workpiece based on the electronic cam data stored in the electronic cam data storage unit 30b. Here, for example, when the position of the spindle, which is one element of each drive mechanism 110, reaches the position stored in the electronic cam data, the electronic cam operation control unit 3 is stored corresponding to the position of the spindle. The drive control unit 60 is controlled so that the tool post reaches the position of the tool post.

摩耗オフセット入力部5は、入力部40の操作を通じて摩耗オフセットの入力を受け付ける。摩耗オフセット入力部5は、電子カム運転制御部3により電子カム運転が行われている最中に摩耗オフセットの入力を受け付けた場合に、入力された摩耗オフセットを摩耗オフセット記憶部30cに記憶するとともに、フラグ記憶部30dに格納されている摩耗オフセット変更フラグおよび摩耗オフセット入力禁止フラグをオフからオンに書き換える。   The wear offset input unit 5 receives an input of the wear offset through the operation of the input unit 40. The wear offset input unit 5 stores the input wear offset in the wear offset storage unit 30c when receiving the input of the wear offset while the electronic cam operation control unit 3 is performing the electronic cam operation. The wear offset change flag and the wear offset input prohibition flag stored in the flag storage unit 30d are rewritten from off to on.

データ変換部2は、電子カム運転制御部3により電子カム運転が行われている最中に、摩耗オフセット入力部5を通じて入力された摩耗オフセットによって摩耗オフセット記憶部30cに記憶される摩耗オフセットが更新されると、更新された摩耗オフセットを用いてNCプログラムを新たな電子カムデータに再変換する。そして、データ変換部2は、再変換した新たな電子カムデータによって、電子カムデータ記憶部30bに記憶されている古い電子カムデータを書き換える。   The data conversion unit 2 updates the wear offset stored in the wear offset storage unit 30c by the wear offset input through the wear offset input unit 5 while the electronic cam operation control unit 3 is performing the electronic cam operation. Then, the NC program is re-converted into new electronic cam data using the updated wear offset. Then, the data conversion unit 2 rewrites the old electronic cam data stored in the electronic cam data storage unit 30b with the reconverted new electronic cam data.

摩耗オフセット記憶部30cに記憶される摩耗オフセットが更新されたか否かについては、運転切り替え制御部4が、フラグ記憶部30dに格納されている摩耗オフセット変更フラグがオンになったか否かを監視することによって判定する。運転切り替え制御部4は、摩耗オフセット変更フラグがオンになったときに、データ変換処理の起動をデータ変換部2に指示する。この指示を受けてデータ変換部2は、摩耗オフセット記憶部30cに記憶された摩耗オフセットを用いてデータ変換処理を開始する。なお、データ変換部2は、データ変換処理を開始したら、フラグ記憶部30dに格納されている摩耗オフセット変更フラグをオンからオフに書き換える。   As to whether or not the wear offset stored in the wear offset storage unit 30c has been updated, the operation switching control unit 4 monitors whether or not the wear offset change flag stored in the flag storage unit 30d has been turned on. Judge by. The operation switching control unit 4 instructs the data conversion unit 2 to start the data conversion process when the wear offset change flag is turned on. In response to this instruction, the data conversion unit 2 starts the data conversion process using the wear offset stored in the wear offset storage unit 30c. When the data conversion unit 2 starts the data conversion process, the data conversion unit 2 rewrites the wear offset change flag stored in the flag storage unit 30d from on to off.

運転切り替え制御部4は、NC運転制御部1によるNC運転と電子カム運転制御部3による電子カム運転とを切り替える。具体的には、運転切り替え制御部4は、1サイクル終了判定部4a、データ変換処理の終了判定部4b、NC運転切替部4cおよび電子カム運転切替部4dを備え、これらの各機能構成によって以下のような処理を実行する。   The operation switching control unit 4 switches between NC operation by the NC operation control unit 1 and electronic cam operation by the electronic cam operation control unit 3. Specifically, the operation switching control unit 4 includes a one-cycle end determination unit 4a, a data conversion processing end determination unit 4b, an NC operation switching unit 4c, and an electronic cam operation switching unit 4d. The process like this is executed.

1サイクル終了判定部4aは、データ変換部2により新たな電子カムデータへのデータ変換処理が行われている最中に、電子カム運転制御部3により行われている電子カム運転の動作が1サイクル終了したか否かを判定する。NC運転切替部4cは、データ変換処理の実行中に電子カム運転の動作が1サイクル終了したと1サイクル終了判定部4aにより判断されたとき、電子カム運転制御部3による電子カム運転からNC運転制御部1によるNC運転へと切り替えるように制御する。   The one-cycle end determination unit 4a performs the operation of the electronic cam operation performed by the electronic cam operation control unit 3 while the data conversion unit 2 performs the data conversion process to new electronic cam data. It is determined whether or not the cycle has ended. When the one-cycle end determination unit 4a determines that the operation of the electronic cam operation has been completed during one cycle of the data conversion process, the NC operation switching unit 4c changes from the electronic cam operation by the electronic cam operation control unit 3 to the NC operation. Control is performed so as to switch to NC operation by the control unit 1.

また、1サイクル終了判定部4aは、NC運転切替部4cにより電子カム運転からNC運転へと切り替えられた後で、NC運転制御部1により行われているNC運転の動作が1サイクル終了したか否かを判定する。さらに、データ変換処理の終了判定部4bは、NC運転切替部4cにより電子カム運転からNC運転へと切り替えられた後で、データ変換部2による新たな電子カムデータへのデータ変換処理が完了したか否かを判定する。データ変換部2による新たな電子カムデータへのデータ変換処理が完了したか否かについて、データ変換処理の終了判定部4bは、フラグ記憶部30dに格納されているデータ変換中フラグがオフになっているか否かを監視することによって判定する。   Further, the 1-cycle end determination unit 4a determines whether the NC operation performed by the NC operation control unit 1 has completed one cycle after the NC operation switching unit 4c has switched from the electronic cam operation to the NC operation. Determine whether or not. Further, the data conversion processing end determination unit 4b has completed the data conversion processing to new electronic cam data by the data conversion unit 2 after switching from the electronic cam operation to the NC operation by the NC operation switching unit 4c. It is determined whether or not. Regarding whether or not the data conversion process to new electronic cam data by the data conversion unit 2 has been completed, the data conversion process completion determination unit 4b turns off the data conversion in progress flag stored in the flag storage unit 30d. Judgment is made by monitoring whether or not.

電子カム運転切替部4dは、データ変換部2による新たな電子カムデータへのデータ変換処理が完了したとデータ変換処理の終了判定部4bにて判断され、かつ、NC運転制御部1により行われているNC運転の動作が1サイクル終了したと1サイクル終了判定部4aにより判断されたとき、NC運転から、電子カムデータ記憶部30bに記憶された新たな電子カムデータに基づく電子カム運転へと切り替えるように制御する。電子カム運転切替部4dは、NC運転から電子カム運転へと切り替えたら、フラグ記憶部30dに格納されている摩耗オフセット入力禁止フラグをオンからオフに書き換える。   The electronic cam operation switching unit 4d is determined by the data conversion processing end determination unit 4b when the data conversion processing to new electronic cam data by the data conversion unit 2 is completed, and is performed by the NC operation control unit 1. When the one-cycle end determination unit 4a determines that the operation of the NC operation is completed, the NC operation is changed to the electronic cam operation based on the new electronic cam data stored in the electronic cam data storage unit 30b. Control to switch. When switching from the NC operation to the electronic cam operation, the electronic cam operation switching unit 4d rewrites the wear offset input prohibition flag stored in the flag storage unit 30d from on to off.

次に、上記のように構成した本実施形態によるNC装置100の動作を説明する。図3は、本実施形態によるNC装置100の動作の概要を示すタイミングチャートである。図3に示す例では、電子カム運転制御部3による電子カム運転に基づきワークAを加工している途中で、オペレータが入力部40を操作して摩耗オフセットを入力している。摩耗オフセットが入力されて摩耗オフセット記憶部30cに記憶されると、データ変換部2は、その摩耗オフセット記憶部30cに新たに記憶された摩耗オフセットとNCプログラム記憶部30aのNCプログラムとに基づき新たな電子カムデータへのデータ変換処理を行う。このデータ変換処理は、電子カム運転のバックグランドで電子カム運転と並行して行う。   Next, the operation of the NC apparatus 100 according to the present embodiment configured as described above will be described. FIG. 3 is a timing chart showing an outline of the operation of the NC device 100 according to the present embodiment. In the example shown in FIG. 3, the operator inputs the wear offset by operating the input unit 40 while the workpiece A is being processed based on the electronic cam operation by the electronic cam operation control unit 3. When the wear offset is input and stored in the wear offset storage unit 30c, the data conversion unit 2 creates a new one based on the wear offset newly stored in the wear offset storage unit 30c and the NC program in the NC program storage unit 30a. Data conversion processing to electronic cam data is performed. This data conversion process is performed in parallel with the electronic cam operation in the background of the electronic cam operation.

その後、データ変換処理を行っている最中にワークAの加工が完了すると(1サイクル終了判定部4aが1つ目の1サイクル停止コードを検出すると)、続いて次のワークBの加工を行う。本実施形態では、電子カム運転の最中にワークAの加工が完了した時点で、NC運転切替部4cが工作機械の運転を電子カム運転からNC運転に切り替える。すなわち、ワークBの加工は、NC運転制御部1がNC運転に基づいて行う。このNC運転によるワークBの加工時に、NC運転制御部1は、摩耗オフセット記憶部30cに記憶された摩耗オフセットを適宜読み込みながらNCプログラムを実行する。このため、入力された摩耗オフセットがワークBの加工に有効に反映される。   Thereafter, when the machining of the workpiece A is completed during the data conversion process (when the 1-cycle end determination unit 4a detects the first one-cycle stop code), the next workpiece B is subsequently machined. . In the present embodiment, when machining of the workpiece A is completed during the electronic cam operation, the NC operation switching unit 4c switches the operation of the machine tool from the electronic cam operation to the NC operation. That is, the machining of the workpiece B is performed by the NC operation control unit 1 based on the NC operation. At the time of machining the workpiece B by this NC operation, the NC operation control unit 1 executes the NC program while appropriately reading the wear offset stored in the wear offset storage unit 30c. For this reason, the input wear offset is effectively reflected in the machining of the workpiece B.

そして、NC運転によるワークBの加工が終了した時点で(1サイクル終了判定部4aが2つ目の1サイクル停止コードを検出した時点で)、データ変換処理が既に終了しているとデータ変換処理の終了判定部4bにより判断されれば、電子カム運転切替部4dは、工作機械の運転をNC運転から電子カム運転に戻す。これにより、ワークBの次に続くワークCの加工は、入力された摩耗オフセットを反映して再変換した新たな電子カムデータを用いて、電子カム運転制御部3が電子カム運転に基づいて行うことになる。   When the machining of the workpiece B by NC operation is completed (when the 1-cycle end determination unit 4a detects the second one-cycle stop code), the data conversion process is completed if the data conversion process has already been completed. If it is determined by the end determination unit 4b, the electronic cam operation switching unit 4d returns the operation of the machine tool from the NC operation to the electronic cam operation. Thereby, the machining of the workpiece C subsequent to the workpiece B is performed by the electronic cam operation control unit 3 based on the electronic cam operation using the new electronic cam data re-converted reflecting the input wear offset. It will be.

なお、ワークBの加工終了時点でデータ変換処理がまだ終了していなければ、その時点で電子カム運転切替部4dは工作機械の運転を電子カム運転に切り替えない。よって、次のワークCは引き続きNC運転により加工される。そして、もしワークCの加工中にデータ変換処理が終了した場合、電子カム運転切替部4dは、ワークCの加工終了時点で工作機械の運転をNC運転から電子カム運転に戻す。   Note that if the data conversion process has not been completed at the end of machining the workpiece B, the electronic cam operation switching unit 4d does not switch the operation of the machine tool to the electronic cam operation at that time. Therefore, the next workpiece C is subsequently processed by NC operation. If the data conversion process is completed during the machining of the workpiece C, the electronic cam operation switching unit 4d returns the operation of the machine tool from the NC operation to the electronic cam operation when the machining of the workpiece C is completed.

図4〜図6は、本実施形態によるNC装置100の詳細な動作例を示すフローチャートである。このうち、図4は、メイン処理の処理手順を示すフローチャートである。図5は、摩耗オフセット入力の割込処理の処理手順を示すフローチャートである。また、図6は、データ変換処理の処理手順を示すフローチャートである。   4 to 6 are flowcharts showing detailed operation examples of the NC apparatus 100 according to the present embodiment. Among these, FIG. 4 is a flowchart showing a processing procedure of the main processing. FIG. 5 is a flowchart showing the processing procedure of the wear offset input interrupt processing. FIG. 6 is a flowchart showing a processing procedure of data conversion processing.

図4に示すメイン処理のフローチャートは、オペレータが入力部40を操作することによって電子カム運転制御部3による電子カム運転の実行を指示したときに開始する。図4において、まず運転切り替え制御部4は、電子カム運転が実行中か否かを判定する(ステップS1)。ここで、電子カム運転が行われていると判断した場合、運転切り替え制御部4は、フラグ記憶部30dを参照し、摩耗オフセット変更フラグがオンとなっているか否かを判定する(ステップS2)。   The flowchart of the main process shown in FIG. 4 starts when the operator instructs the electronic cam operation control unit 3 to execute the electronic cam operation by operating the input unit 40. In FIG. 4, the operation switching control unit 4 first determines whether or not the electronic cam operation is being executed (step S1). Here, when it is determined that the electronic cam operation is being performed, the operation switching control unit 4 refers to the flag storage unit 30d and determines whether or not the wear offset change flag is on (step S2). .

図5にて後述するように、入力部40の操作により摩耗オフセットが入力されると、フラグ記憶部30dに格納されている摩耗オフセット変更フラグがオフからオンに書き換えられる。運転切り替え制御部4は、この摩耗オフセット変更フラグがオンであると判断した場合、すなわち、入力部40の操作により摩耗オフセットが入力されたと判断した場合に、データ変換部2のデータ変換処理を起動する(ステップS3)。データ変換処理が起動されると、データ変換部2は、図6にて後述するデータ変換処理を開始し、図4のメイン処理と並行して新たな電子カムデータへのデータ変換処理を行う。   As will be described later with reference to FIG. 5, when the wear offset is input by operating the input unit 40, the wear offset change flag stored in the flag storage unit 30d is rewritten from off to on. When the operation switching control unit 4 determines that the wear offset change flag is on, that is, when it is determined that the wear offset is input by the operation of the input unit 40, the data conversion process of the data conversion unit 2 is started. (Step S3). When the data conversion process is started, the data conversion unit 2 starts a data conversion process to be described later with reference to FIG. 6, and performs a data conversion process into new electronic cam data in parallel with the main process in FIG.

次に、運転切り替え制御部4の1サイクル終了判定部4aは、1サイクル停止コードを検出したか否かを判定する(ステップS4)。なお、上記ステップS1において電子カム運転が実行中でない(つまり、NC運転が実行中である)と判断した場合、運転切り替え制御部4は、ステップS2,S3の処理を飛ばしてステップS4の判定を行う。また、上記ステップS2において摩耗オフセット変更フラグがオフであると判断した場合、運転切り替え制御部4は、ステップS3の処理を飛ばしてステップS4の判定を行う。   Next, the 1-cycle end determination unit 4a of the operation switching control unit 4 determines whether or not a 1-cycle stop code has been detected (step S4). If it is determined in step S1 that the electronic cam operation is not being executed (that is, the NC operation is being executed), the operation switching control unit 4 skips steps S2 and S3 and makes the determination in step S4. Do. If it is determined in step S2 that the wear offset change flag is off, the operation switching control unit 4 skips step S3 and performs determination in step S4.

なお、ステップS2の処理を経由してステップS4に移行する場合、つまり、電子カム運転制御部3により電子カム運転を実行中の場合、1サイクル終了判定部4aは、電子カム運転の動作が1サイクル終了したか否かを判定することになる。一方、ステップS2の処理を経ずにステップS4に移行する場合、つまり、NC運転制御部1によりNC運転を実行中の場合、1サイクル終了判定部4aは、NC運転の動作が1サイクル終了したか否かを判定することになる。   When the process proceeds to step S4 via the process of step S2, that is, when the electronic cam operation is being executed by the electronic cam operation control unit 3, the one-cycle end determination unit 4a has an electronic cam operation of 1 It is determined whether or not the cycle has ended. On the other hand, when the process proceeds to step S4 without passing through the process of step S2, that is, when the NC operation is being executed by the NC operation control unit 1, the 1-cycle end determination unit 4a has completed the operation of the NC operation for one cycle. It will be determined whether or not.

ステップS4において、1サイクル停止コードを検出したと1サイクル終了判定部4aにて判断した場合、データ変換処理の終了判定部4bは、フラグ記憶部30dを参照し、データ変換中フラグがオンとなっているか否かを判定する(ステップS5)。図6にて後述するように、データ変換部2によりデータ変換処理が行われている間は、データ変換中フラグがオンとなっている。ここで、データ変換中フラグがオンであると終了判定部4bにて判断した場合、NC運転切替部4cは、工作機械の運転をNC運転制御部1によるNC運転に切り替える(ステップS6)。なお、ステップS6において既にNC運転が行われていた場合は、そのままNC運転を継続する。   In step S4, when the one-cycle end determination unit 4a determines that a one-cycle stop code has been detected, the data conversion processing end determination unit 4b refers to the flag storage unit 30d and the data conversion flag is turned on. It is determined whether or not (step S5). As will be described later with reference to FIG. 6, the data conversion flag is on while the data conversion process is being performed by the data conversion unit 2. When the end determination unit 4b determines that the data conversion flag is on, the NC operation switching unit 4c switches the operation of the machine tool to the NC operation by the NC operation control unit 1 (step S6). If the NC operation has already been performed in step S6, the NC operation is continued as it is.

一方、データ変換中フラグがオフであると終了判定部4bにて判断した場合、電子カム運転切替部4dは、NC運転が行われているか否かを判定する(ステップS7)。ここで、NC運転が行われていると判断した場合、電子カム運転切替部4dは、工作機械の運転を電子カム運転制御部3による電子カム運転に切り替える(ステップS8)。そして、電子カム運転切替部4dは、フラグ記憶部30dの摩耗オフセット入力禁止フラグをオンからオフに書き換える(ステップS9)。   On the other hand, when the end determination unit 4b determines that the data conversion flag is off, the electronic cam operation switching unit 4d determines whether the NC operation is being performed (step S7). Here, when it is determined that the NC operation is being performed, the electronic cam operation switching unit 4d switches the operation of the machine tool to the electronic cam operation by the electronic cam operation control unit 3 (step S8). Then, the electronic cam operation switching unit 4d rewrites the wear offset input prohibition flag in the flag storage unit 30d from on to off (step S9).

ステップS6またはステップS9の処理を行うことにより、メイン処理の一連の流れは終了する。なお、上記ステップS4で1サイクル停止コードを検出していないと1サイクル終了判定部4aにて判断した場合、および、上記ステップS7でNC運転が行われていないと電子カム運転切替部4dにて判断した場合には、そのままメイン処理を終了する。メイン処理の終了後は、ステップS1に戻り、再びメイン処理を実行する。   By performing the process of step S6 or step S9, a series of flow of the main process is completed. If the one-cycle end determination unit 4a determines that the one-cycle stop code is not detected in step S4, and if the NC operation is not performed in step S7, the electronic cam operation switching unit 4d If it is determined, the main process is terminated. After the main process ends, the process returns to step S1 and the main process is executed again.

図5に示す摩耗オフセット入力処理のフローチャートは、入力部40の操作を通じて摩耗オフセット入力部5が摩耗オフセットの入力を受け付けたときに、メイン処理に対する割込処理として開始する。図5において、まず摩耗オフセット入力部5は、フラグ記憶部30dを参照して、摩耗オフセット入力禁止フラグがオフになっているか否かを判定する(ステップS11)。摩耗オフセット入力禁止フラグがオフであると判断した場合、摩耗オフセット入力部5は、摩耗オフセットの入力が完了したか否かを判定する(ステップS12)。   The flowchart of the wear offset input process shown in FIG. 5 starts as an interrupt process for the main process when the wear offset input unit 5 receives an input of the wear offset through the operation of the input unit 40. In FIG. 5, the wear offset input unit 5 first determines whether or not the wear offset input prohibition flag is off with reference to the flag storage unit 30d (step S11). When it is determined that the wear offset input prohibition flag is OFF, the wear offset input unit 5 determines whether or not the input of the wear offset has been completed (step S12).

摩耗オフセットの入力が完了したか否かの判定は、具体的には、入力部40の入力完了ボタン(図示せず)が押されたか否かを判定することによって行う。オペレータは、複数の工具に対する摩耗オフセットを入力してから入力完了ボタンを押すことも可能である。ここで、摩耗オフセットの入力が完了したと判断した場合、摩耗オフセット入力部5は、入力された摩耗オフセットを摩耗オフセット記憶部30cに保存する(ステップS13)。   Specifically, whether or not the input of the wear offset has been completed is determined by determining whether or not an input completion button (not shown) of the input unit 40 has been pressed. The operator can input wear offsets for a plurality of tools and then press the input completion button. Here, when it is determined that the input of the wear offset is completed, the wear offset input unit 5 stores the input wear offset in the wear offset storage unit 30c (step S13).

さらに、摩耗オフセット入力部5は、フラグ記憶部30dの摩耗オフセット入力禁止フラグをオフからオンに書き換えるとともに(ステップS14)、フラグ記憶部30dの摩耗オフセット変更フラグをオフからオンに書き換える(ステップS15)。これによって摩耗オフセットの入力に関する割込処理を終了する。なお、ステップS11にて摩耗オフセット入力部5が、摩耗オフセット入力禁止フラグがオンであると判断した場合は、ステップS11〜S15の処理を何も行わずに割込処理を終了する。   Further, the wear offset input unit 5 rewrites the wear offset input prohibition flag in the flag storage unit 30d from off to on (step S14), and rewrites the wear offset change flag in the flag storage unit 30d from off to on (step S15). . As a result, the interruption process relating to the input of the wear offset is completed. If the wear offset input unit 5 determines in step S11 that the wear offset input prohibition flag is on, the interrupt process is terminated without performing any processes in steps S11 to S15.

上述のように、摩耗オフセット入力禁止フラグは摩耗オフセットが入力されたときにオンとなり(図5のステップS14)、NC運転から電子カム運転に切り替えられたときにオフに戻される(図4のステップS9)。これにより、摩耗オフセットの入力に応じて新たな電子カムデータへのデータ変換処理が行われ、その間に電子カム運転からNC運転に切り替えられた後、再び電子カム運転に戻されるまでの間、摩耗オフセットの再入力が禁止される。   As described above, the wear offset input prohibition flag is turned on when the wear offset is input (step S14 in FIG. 5), and is turned off when the operation is switched from the NC operation to the electronic cam operation (step in FIG. 4). S9). As a result, data conversion processing to new electronic cam data is performed in accordance with the input of the wear offset, and during that time, after switching from the electronic cam operation to the NC operation, the wear is continued until returning to the electronic cam operation again. Offset re-entry is prohibited.

図6に示すデータ変換処理のフローチャートは、メイン処理のステップS3で運転切り替え制御部4によりデータ変換プログラムが起動されたときに開始し、メイン処理と並行して実行される。図6において、まずデータ変換部2は、フラグ記憶部30dのデータ変換中フラグをオフからオンに書き換える(ステップS21)。また、データ変換部2は、フラグ記憶部30dの摩耗オフセット変更フラグをオンからオフに書き換える(ステップS22)。   The flowchart of the data conversion process shown in FIG. 6 starts when the data conversion program is started by the operation switching control unit 4 in step S3 of the main process, and is executed in parallel with the main process. In FIG. 6, first, the data conversion unit 2 rewrites the data conversion flag in the flag storage unit 30d from off to on (step S21). Further, the data conversion unit 2 rewrites the wear offset change flag in the flag storage unit 30d from on to off (step S22).

次に、データ変換部2は、図5のステップS13で摩耗オフセット記憶部30cに記憶された摩耗オフセットを読み込む(ステップS23)。そして、データ変換部2は、読み込んだ摩耗オフセットを用いて、NCプログラム記憶部30aに記憶されているNCプログラムを電子カムデータに変換する処理を行う(ステップS24)。電子カムデータへの変換処理が終了すると、データ変換部2は、変換した新たな電子カムデータを電子カムデータ記憶部30bに保存する(ステップS25)。その後、データ変換部2は、フラグ記憶部30dのデータ変換中フラグをオンからオフに書き換えて(ステップS26)、データ変換処理を終了する。   Next, the data conversion unit 2 reads the wear offset stored in the wear offset storage unit 30c in step S13 of FIG. 5 (step S23). Then, the data conversion unit 2 performs processing to convert the NC program stored in the NC program storage unit 30a into electronic cam data using the read wear offset (step S24). When the conversion process to the electronic cam data is completed, the data conversion unit 2 stores the converted new electronic cam data in the electronic cam data storage unit 30b (step S25). Thereafter, the data conversion unit 2 rewrites the data conversion flag in the flag storage unit 30d from on to off (step S26), and ends the data conversion process.

以上詳しく説明したように、本実施形態では、電子カム運転の実行中に摩耗オフセットが入力された場合に、電子カム運転の実行を継続しながら、入力された摩耗オフセットを反映させた新たな電子カムデータへのデータ変換処理を行う。そして、電子カム運転の実行と並行して新たな電子カムデータへのデータ変換処理が行われている最中に、電子カム運転の動作が1サイクル終了したことを検出した場合には、電子カム運転からNC運転へと切り替えるようにしている。   As described above in detail, in this embodiment, when the wear offset is input during the execution of the electronic cam operation, the new electronic device that reflects the input wear offset while continuing the execution of the electronic cam operation is performed. Data conversion processing to cam data is performed. When it is detected that one cycle of the operation of the electronic cam operation has been completed while data conversion processing to new electronic cam data is being performed in parallel with the execution of the electronic cam operation, Switching from operation to NC operation is made.

このように構成した本実施形態によれば、電子カム運転の実行中に摩耗オフセットが入力された場合、工作機械の運転を停止することなく、そのバックグランド処理として、入力された摩耗オフセットを反映した新たな電子カムデータを生成することができる。また、電子カム運転中にデータ変換処理を開始した後、1サイクル停止コードを検出するまでの間にデータ変換処理が終わらない場合には、入力された摩耗オフセットを直ちに反映可能なNC運転に切り替えてワークの加工が継続されるので、ワークの加工を一時的に停止することなく、入力した摩耗オフセットが有効な状態で次以降のワークを加工することができる。   According to the present embodiment configured as described above, when a wear offset is input during execution of the electronic cam operation, the input wear offset is reflected as a background process without stopping the operation of the machine tool. New electronic cam data can be generated. If the data conversion process does not end after the start of the data conversion process during the electronic cam operation and before the one-cycle stop code is detected, switch to the NC operation that can immediately reflect the input wear offset. Therefore, the subsequent workpieces can be machined with the input wear offset being effective without temporarily stopping the workpiece machining.

また、本実施形態では、上述のようにして電子カム運転からNC運転へと切り替えた後に、新たな電子カムデータへのデータ変換処理が完了し、かつ、NC運転の動作が1サイクル終了したことが検出されたときに、NC運転から電子カム運転へと戻すようにしている。この場合、その後の電子カム運転は、入力した摩耗オフセットが反映された新たな電子カムデータに基づいて行われる。これにより、入力した摩耗オフセットが有効な状態でワークの加工を継続して行うことができるだけでなく、1ワーク当たりの加工時間が短い電子カム運転をできるだけ多く利用して、複数のワークを加工する場合のトータルの加工時間を短くすることができる。   Further, in the present embodiment, after switching from the electronic cam operation to the NC operation as described above, the data conversion process to new electronic cam data is completed, and the operation of the NC operation is completed for one cycle. Is detected, the NC operation is returned to the electronic cam operation. In this case, the subsequent electronic cam operation is performed based on new electronic cam data that reflects the input wear offset. As a result, it is possible not only to continuously process the workpiece while the input wear offset is valid, but also to process a plurality of workpieces using as much electronic cam operation as possible with a short processing time per workpiece. In this case, the total processing time can be shortened.

なお、上記実施形態では、データ変換部2がNCプログラムを新たな電子カムデータへ変換したときに、その新たな電子カムデータによって電子カムデータ記憶部30bに記憶されている古い電子カムデータを書き換えるようにしているが、本発明はこの例に限定されない。例えば、古い電子カムデータと新しい電子カムデータとの両方を電子カムデータ記憶部30bに保存し、使用する電子カムデータを古いものから新しいものに切り替えるようにしても良い。特に、摩耗オフセットを何も入力していないときに最初に変換した電子カムデータを電子カムデータ記憶部30bに保存しておけば、工具を新品に取り換えたときに、摩耗オフセットがない場合の電子カムデータを再度生成する必要がなく、電子カムデータ記憶部30bに保存されているものを再利用することが可能である。   In the above embodiment, when the data conversion unit 2 converts the NC program into new electronic cam data, the old electronic cam data stored in the electronic cam data storage unit 30b is rewritten with the new electronic cam data. However, the present invention is not limited to this example. For example, both the old electronic cam data and the new electronic cam data may be stored in the electronic cam data storage unit 30b, and the electronic cam data to be used may be switched from the old one to the new one. In particular, if the electronic cam data converted first when no wear offset is input is stored in the electronic cam data storage unit 30b, the electronic when there is no wear offset when the tool is replaced with a new one. It is not necessary to generate the cam data again, and the data stored in the electronic cam data storage unit 30b can be reused.

また、上記実施形態では、図3に示すように、入力した摩耗オフセットを反映させた新たな電子カムデータへのデータ変換処理が完了する前に電子カム運転の1サイクルが終了する場合を例に挙げたが、これに限定されない。サイクルタイムの中で摩耗オフセットを入力するタイミングによっては、電子カム運転の1サイクルが終了する前に新たな電子カムデータへのデータ変換処理が完了する場合もある。その場合、運転切り替え制御部4は、電子カム運転の1サイクルが終了したタイミングで、電子カム運転からNC運転に切り替えることなく、古い電子カムデータを用いた電子カム運転から新たな電子カムデータを用いた電子カム運転に直接切り替える。なお、この場合には新たな電子カムデータを用いた電子カム運転に切り替えた段階で摩耗オフセット入力禁止フラグをオンからオフに書き換える。   Moreover, in the said embodiment, as shown in FIG. 3, the case where one cycle of an electronic cam driving | operation is completed before the data conversion process to the new electronic cam data reflecting the input wear offset is completed as an example. Although mentioned, it is not limited to this. Depending on the timing at which the wear offset is input in the cycle time, the data conversion process to new electronic cam data may be completed before one cycle of the electronic cam operation is completed. In that case, the operation switching control unit 4 obtains new electronic cam data from the electronic cam operation using the old electronic cam data without switching from the electronic cam operation to the NC operation at the timing when one cycle of the electronic cam operation is completed. Switch directly to the used electronic cam operation. In this case, the wear offset input prohibition flag is rewritten from on to off at the stage of switching to electronic cam operation using new electronic cam data.

その他、上記実施形態は、何れも本発明を実施するにあたっての具体化の一例を示したものに過ぎず、これによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその精神、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。   In addition, each of the above-described embodiments is merely an example of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed in a limited manner. In other words, the present invention can be implemented in various forms without departing from the spirit or main features thereof.

1 NC運転制御部
2 データ変換部
3 電子カム運転制御部
4 運転切り替え制御部
4a 1サイクル終了判定部
4b データ変換処理の終了判定部
4c NC運転切替部
4d 電子カム運転切替部
5 摩耗オフセット入力部
10 CPU
20 ROM
20a データ変換プログラム記憶部
20b 運転切替制御プログラム記憶部
20c 摩耗オフセット入力プログラム記憶部
30 RAM
30a NCプログラム記憶部
30b 電子カムデータ記憶部
30c 摩耗オフセット記憶部
100 NC装置
DESCRIPTION OF SYMBOLS 1 NC operation control part 2 Data conversion part 3 Electronic cam operation control part 4 Operation switching control part 4a 1 cycle completion | finish determination part 4b Data conversion process completion | finish determination part 4c NC operation switching part 4d Electronic cam operation switching part 5 Wear offset input part 10 CPU
20 ROM
20a Data conversion program storage unit 20b Operation switching control program storage unit 20c Wear offset input program storage unit 30 RAM
30a NC program storage unit 30b Electronic cam data storage unit 30c Wear offset storage unit 100 NC device

Claims (4)

NCプログラムを記憶するNCプログラム記憶部と、
上記NCプログラム記憶部に記憶されている上記NCプログラムに基づき被加工物を加工するNC運転の制御を行うNC運転制御部と、
上記NCプログラム記憶部に記憶されている上記NCプログラムを電子カムデータに変換するデータ変換部と、
上記データ変換部により変換された上記電子カムデータを記憶する電子カムデータ記憶部と、
上記電子カムデータ記憶部に記憶されている上記電子カムデータに基づき上記被加工物を加工する電子カム運転の制御を行う電子カム運転制御部と、
上記被加工物の加工を行うための工具の刃先位置に関する補正量を表す工具刃先位置補正量の入力を受け付ける補正量入力部と、
上記NC運転制御部による上記NC運転と上記電子カム運転制御部による上記電子カム運転とを切り替える運転切り替え制御部とを備え、
上記データ変換部は、上記電子カム運転制御部により上記電子カム運転が行われている最中に、上記補正量入力部を通じて入力された上記工具刃先位置補正量を用いて上記NCプログラムを新たな電子カムデータへ変換するデータ変換処理を開始し、
上記運転切り替え制御部は、上記データ変換部による上記新たな電子カムデータへの上記データ変換処理が行われている最中に、上記電子カム運転制御部により行われている上記電子カム運転の動作が1サイクル終了したことが検出されたとき、上記電子カム運転制御部による上記電子カム運転から上記NC運転制御部による上記NC運転へと切り替えるように制御することを特徴とする工作機械の数値制御装置。
An NC program storage unit for storing NC programs;
An NC operation control unit for controlling an NC operation for machining a workpiece based on the NC program stored in the NC program storage unit;
A data conversion unit for converting the NC program stored in the NC program storage unit into electronic cam data;
An electronic cam data storage unit for storing the electronic cam data converted by the data conversion unit;
An electronic cam operation control unit for controlling an electronic cam operation for processing the workpiece based on the electronic cam data stored in the electronic cam data storage unit;
A correction amount input unit that receives an input of a tool blade edge position correction amount that represents a correction amount related to the blade edge position of the tool for processing the workpiece;
An operation switching control unit that switches between the NC operation by the NC operation control unit and the electronic cam operation by the electronic cam operation control unit;
The data conversion unit renews the NC program using the tool edge position correction amount input through the correction amount input unit while the electronic cam operation is being performed by the electronic cam operation control unit. Start data conversion processing to convert to electronic cam data,
The operation switching control unit performs the operation of the electronic cam operation performed by the electronic cam operation control unit while the data conversion process to the new electronic cam data is performed by the data conversion unit. Is controlled to switch from the electronic cam operation by the electronic cam operation control unit to the NC operation by the NC operation control unit when it is detected that one cycle has been completed. apparatus.
上記運転切り替え制御部は、上記電子カム運転から上記NC運転へと切り替えた後で、上記データ変換部による上記データ変換処理が完了し、かつ、上記NC運転制御部により行われている上記NC運転の動作が1サイクル終了したことが検出されたとき、上記NC運転から、上記電子カムデータ記憶部に記憶された上記新たな電子カムデータに基づく上記電子カム運転へと切り替えるように制御することを特徴とする請求項1に記載の工作機械の数値制御装置。 The operation switching control unit, after switching from the electronic cam operation to the NC operation, completes the data conversion process by the data conversion unit and performs the NC operation performed by the NC operation control unit. Control is performed to switch from the NC operation to the electronic cam operation based on the new electronic cam data stored in the electronic cam data storage unit. The numerical control device for a machine tool according to claim 1, wherein the numerical control device is a machine tool. 電子カムデータ記憶部に記憶されている電子カムデータに基づき被加工物を加工する電子カム運転が行われているときに、操作部の操作を通じて、上記被加工物の加工を行うための工具の刃先位置に関する補正量を表す工具刃先位置補正量が入力されたか否かを判定する第1のステップと、
上記第1のステップで上記工具刃先位置補正量が入力されたと判断された場合、上記第1のステップで入力された上記工具刃先位置補正量を用いて、NCプログラム記憶部に記憶されているNCプログラムを新たな電子カムデータへ変換するデータ変換処理を開始する第2のステップと、
上記電子カム運転が行われるのと並行して上記第2のステップにより上記新たな電子カムデータへの上記データ変換処理が行われている最中に、上記電子カム運転の動作が1サイクル終了したか否かを判定する第3のステップと、
上記第3のステップで上記電子カム運転の動作が1サイクル終了したと判断された場合、上記電子カムデータ記憶部に記憶されている電子カムデータに基づく上記電子カム運転から、上記NCプログラム記憶部に記憶されているNCプログラムに基づくNC運転へと切り替える第4のステップとを有することを特徴とする工作機械の運転制御方法。
When an electronic cam operation for processing a workpiece is performed based on the electronic cam data stored in the electronic cam data storage unit, the tool for processing the workpiece is operated through the operation of the operation unit. A first step of determining whether or not a tool cutting edge position correction amount representing a correction amount related to the cutting edge position has been input;
When it is determined that the tool edge position correction amount is input in the first step, the NC stored in the NC program storage unit using the tool edge position correction amount input in the first step. A second step of starting a data conversion process for converting the program into new electronic cam data;
In parallel with the electronic cam operation being performed, the electronic cam operation was completed for one cycle while the data conversion processing to the new electronic cam data was being performed in the second step. A third step of determining whether or not
If it is determined in the third step that the operation of the electronic cam operation has been completed for one cycle, the NC program storage unit starts from the electronic cam operation based on the electronic cam data stored in the electronic cam data storage unit. And a fourth step of switching to NC operation based on the NC program stored in the machine tool.
上記第4のステップで上記電子カム運転から上記NC運転へと切り替えられた後で、上記第2のステップで行われた上記新たな電子カムデータへの上記データ変換処理が完了したか否かを判定する第5のステップと、
上記第4のステップで上記電子カム運転から上記NC運転へと切り替えられた後で、上記NC運転の動作が1サイクル終了したか否かを判定する第6のステップと、
上記第5のステップで上記新たな電子カムデータへの変換が完了したと判断され、かつ、上記第6のステップで上記NC運転の動作が1サイクル終了したと判断されたとき、上記NCプログラム記憶部に記憶されているNCプログラムに基づく上記NC運転から、上記電子カムデータ記憶部に記憶された上記新たな電子カムデータに基づく上記電子カム運転へと切り替える第7のステップとを有することを特徴とする請求項3に記載の工作機械の運転制御方法。
After switching from the electronic cam operation to the NC operation in the fourth step, it is determined whether or not the data conversion process to the new electronic cam data performed in the second step is completed. A fifth step of determining;
A sixth step of determining whether or not the operation of the NC operation has ended one cycle after switching from the electronic cam operation to the NC operation in the fourth step;
When it is determined in the fifth step that the conversion to the new electronic cam data has been completed, and it is determined in the sixth step that the NC operation has completed one cycle, the NC program storage A seventh step of switching from the NC operation based on the NC program stored in the unit to the electronic cam operation based on the new electronic cam data stored in the electronic cam data storage unit. The operation control method for a machine tool according to claim 3.
JP2009026458A 2009-02-06 2009-02-06 Numerical control device and operation control method for machine tool Active JP5277373B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009026458A JP5277373B2 (en) 2009-02-06 2009-02-06 Numerical control device and operation control method for machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009026458A JP5277373B2 (en) 2009-02-06 2009-02-06 Numerical control device and operation control method for machine tool

Publications (2)

Publication Number Publication Date
JP2010182190A JP2010182190A (en) 2010-08-19
JP5277373B2 true JP5277373B2 (en) 2013-08-28

Family

ID=42763739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009026458A Active JP5277373B2 (en) 2009-02-06 2009-02-06 Numerical control device and operation control method for machine tool

Country Status (1)

Country Link
JP (1) JP5277373B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004326618A (en) * 2003-04-25 2004-11-18 Star Micronics Co Ltd Numerical control device of machine tool
JP4494280B2 (en) * 2005-04-11 2010-06-30 三菱電機株式会社 Electronic cam control device
JP2007233575A (en) * 2006-02-28 2007-09-13 Star Micronics Co Ltd Numerical controller and control method for machine tool

Also Published As

Publication number Publication date
JP2010182190A (en) 2010-08-19

Similar Documents

Publication Publication Date Title
JP5357082B2 (en) Machine tool control device and operation control method
JP4374045B2 (en) Numerical control device with program restart function
JP4382123B2 (en) Numerical control device having control mode switching function
JP4972447B2 (en) Numerical controller
JP5778430B2 (en) Machine tool controller
JP2004326618A (en) Numerical control device of machine tool
JP2011158979A (en) Method of and apparatus for controlling machine tool for restarting automatic operation
JPWO2003032097A1 (en) Numerical controller
JP2006172388A (en) Numerical controller
JP5210070B2 (en) Numerically controlled machine tool
JP5949537B2 (en) Numerical controller
JP6542710B2 (en) Numerical control device with program correction support function for alarm solution
JP5277373B2 (en) Numerical control device and operation control method for machine tool
JP5339815B2 (en) Numerical control device with processing resumption function
JP2019079244A (en) Numeric control device
JP2007213241A (en) Interruption workable numerically controlled machine tool
CN101340171A (en) Pecking motor control device
JP2020057088A (en) Numerical control device
JP2016157393A (en) Numeric control system
JP4112433B2 (en) Numerical control device for machine tool and numerical control method for machine tool
JP4282632B2 (en) Numerical control device that operates with tabular data
JP6661062B1 (en) Numerical control device and machine learning device
JP5301300B2 (en) Machine tool control device and tool post movement control method
JP2011039701A (en) Numerical control device, method and program
JP2008234278A (en) Numerical control device, control program, control program recording medium, and machine tool

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120110

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: 20130212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130215

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130218

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5277373

Country of ref document: JP

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