JP2010176309A - Machine tool, and method for presenting operating time of the same - Google Patents

Machine tool, and method for presenting operating time of the same Download PDF

Info

Publication number
JP2010176309A
JP2010176309A JP2009016996A JP2009016996A JP2010176309A JP 2010176309 A JP2010176309 A JP 2010176309A JP 2009016996 A JP2009016996 A JP 2009016996A JP 2009016996 A JP2009016996 A JP 2009016996A JP 2010176309 A JP2010176309 A JP 2010176309A
Authority
JP
Japan
Prior art keywords
program
electronic cam
time
machining
machining time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009016996A
Other languages
Japanese (ja)
Inventor
Tetsuya Sugiyama
哲也 杉山
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 JP2009016996A priority Critical patent/JP2010176309A/en
Publication of JP2010176309A publication Critical patent/JP2010176309A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To minimize the man-hours required to generate electronic cam data having a desired cycle time from an NC program. <P>SOLUTION: A machine tool includes: an NC machining time measurement part 33 for measuring a cycle time based on an NC program while the machine tool is operated by the NC program, an electronic cam machining time calculation part 34 for calculating a cycle time based on electronic cam data from the electronic cam data, and a display control part 35 for simultaneously displaying the cycle time based on the NC program and the cycle time based on the electronic cam data on a display part 30. An operator can check the cycle time based on the electronic cam data, which is difficult to predict from the cycle time based on the NC program, without actual operation of the machine tool using the electronic cam data, and can check a time saving effect of the electronic cam at a glance. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

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

従来、工作機械の数値制御方式には、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 an NC program one block (line) at a time and interprets the command (NC code) while sequentially executing a plurality of commands.

一方、電子カム制御方式では、工作機械の動作前に、NC装置とは別個に設置されているパーソナルコンピュータがNCプログラムを電子カムデータに変換する。そして、変換した電子カムデータによりNC装置が工作機械の各機構部の動作を制御する。電子カムデータは、所定の基準軸における動作量を基準にして、基準軸の動作量に対応した移動軸の位置データを表すデータである。例えば、所定時間毎の主軸の累積回転角に対応させて刃物台の工具の位置データを表したものが電子カムデータである。電子カム制御方式では、基準軸の動作量が電子カムデータに記憶された動作量に達したときに、その動作量に対応して記憶された位置に移動軸が到達するように制御する。   On the other hand, in the electronic cam control system, before the machine tool is operated, a personal computer installed separately from the NC device converts the NC program into electronic cam data. 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. 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.

図10は、電子カムデータを生成する際の一般的な工程(電子カム化の工程)を示すフローチャートである。図10に示すように、最初に、オペレータがNCプログラムを作成する(ステップS101)。そして、作成したNCプログラムを用いて試運転し、要求通りの精度でワークを問題なく加工できるかどうかをオペレータが確認する(ステップS102)。   FIG. 10 is a flowchart showing a general process (electronic cam conversion process) when generating electronic cam data. As shown in FIG. 10, first, the operator creates an NC program (step S101). Then, a trial run is performed using the created NC program, and the operator confirms whether or not the workpiece can be machined without problems with the required accuracy (step S102).

その後、オペレータは、NCプログラムで工作機械を試運転したときのサイクルタイムを確認する(ステップS103)。サイクルタイムとは、ワークの加工時間を示すものである。具体的には、NCプログラムに含まれるワンサイクル停止コードを2回検知する間の時間がサイクルタイムに相当する。すなわち、連続して複数のワークを加工する際に1つのワークの加工終了を表すために、NCプログラムの先頭付近にはワンサイクル停止コードが含まれている。工作機械の試運転時には、サイクルタイムを測定するために、ワンサイクル停止コードを検知したときにタイマのカウント動作を開始し、NCプログラムが一巡して次のワンサイクル停止コードを検知したときにカウント動作を停止する。オペレータは、タイマのカウント値を見ることで、サイクルタイムを確認する。   Thereafter, the operator confirms the cycle time when the machine tool is trial run with the NC program (step S103). The cycle time indicates the machining time of the workpiece. Specifically, the time between detecting the one-cycle stop code included in the NC program twice corresponds to the cycle time. That is, a one-cycle stop code is included near the head of the NC program in order to indicate the end of machining of one workpiece when machining a plurality of workpieces continuously. During the test run of the machine tool, the timer starts counting when a one-cycle stop code is detected to measure the cycle time, and counts when the NC program detects the next one-cycle stop code. To stop. The operator confirms the cycle time by looking at the count value of the timer.

ここで、オペレータは、加工したワークが公差の範囲内に入っていないなどの不具合がないか、およびサイクルタイムが期待した値の範囲内に入っているかどうか確認する(ステップS104)。加工したワークが公差内に入っていない、あるいはサイクルタイムが期待した値の範囲内になっていない場合には、オペレータはNCプログラムを修正する(ステップS105)。そして、ステップS102に戻り、修正したNCプログラムを用いて試運転する。以下、ステップS103、S104の工程を繰り返す。   Here, the operator checks whether there is a problem such as the processed workpiece not within the tolerance range and whether the cycle time is within the expected value range (step S104). If the machined workpiece does not fall within the tolerance or the cycle time is not within the expected value range, the operator corrects the NC program (step S105). Then, the process returns to step S102, and a trial operation is performed using the corrected NC program. Thereafter, steps S103 and S104 are repeated.

ステップS102〜S105の工程を必要に応じて繰り返すことにより、ワークを問題なく加工でき、かつ、サイクルタイムが期待した値の範囲内に入ったと判断した場合、データ変換プログラムを使用して、パーソナルコンピュータによりNCプログラムを電子カムデータに変換する(ステップS106)。そして、変換した電子カムデータをNC装置の記憶部に記録して(ステップS107)、電子カムデータの生成処理を終了する。   If it is determined that the workpiece can be machined without problems by repeating the steps S102 to S105 as necessary, and the cycle time is within the expected range of values, a data conversion program is used to Thus, the NC program is converted into electronic cam data (step S106). Then, the converted electronic cam data is recorded in the storage unit of the NC device (step S107), and the electronic cam data generation process is terminated.

なお、電子カム制御方式による工作機械ではないが、工作機械の運転時間を算出して表示するようにした技術が存在する(例えば、特許文献1参照)。この特許文献1には、数値制御情報を工程単位で分割、統合、移動、削除する際に変化する工作機械の運転時間を算出して表示することが記載されている。ちなみに、特許文献1に記載された発明は、工程編集に伴い変化する運転時間を算出して表示する技術であって、NCプログラムを電子カムデータに変換した場合に変化する運転時間を算出することはできない。   In addition, although it is not a machine tool by an electronic cam control system, the technique which calculated and displayed the operation time of a machine tool exists (for example, refer patent document 1). This Patent Document 1 describes that the operation time of a machine tool that changes when numerical control information is divided, integrated, moved, or deleted in units of processes is calculated and displayed. Incidentally, the invention described in Patent Document 1 is a technique for calculating and displaying an operation time that changes with process editing, and calculating an operation time that changes when an NC program is converted into electronic cam data. I can't.

特開平3−92246号公報JP-A-3-92246

上述したように、電子カム制御方式で工作機械における各機構部(主軸や刃物台など)の移動軸の動作を制御すれば、NC制御方式で各機構部の動作を制御する場合に比べて、通常はワークの加工時間を短縮することができる。そのため従来は、図10に示したように、NCプログラムについては必要に応じて何回か修正を行うが、NCプログラムの修正が完了した後は、これを電子カムデータに変換して電子カム化の工程を終了していた。   As described above, if the operation of the movement axis of each mechanism unit (main spindle, tool post, etc.) in the machine tool is controlled by the electronic cam control method, compared to the case where the operation of each mechanism unit is controlled by the NC control method, Usually, the machining time of the workpiece can be shortened. Therefore, in the past, as shown in FIG. 10, the NC program is corrected several times as necessary. After the NC program has been corrected, it is converted into electronic cam data and converted into an electronic cam. The process was completed.

しかしながら、実際にはNCプログラムの作り方によって、電子カムデータに変換した場合にどの程度ワークの加工時間が短くなるかが変わってしまう。すなわち、NCプログラムの指令(NCコード)の位置や順番等に応じて、出来上がった電子カムデータによる工作機械の運転時間が左右されるのである。そのため、加工されたワークが公差の範囲外となる不具合をなくし、サイクルタイムも期待した値の範囲内に入るようなNCプログラムを作成して電子カムデータに変換しても、必ずしも期待通りのサイクルタイムを有する電子カムデータが生成されるとは限らないという問題があった。   However, in practice, how much the machining time of the workpiece is shortened when converted into electronic cam data varies depending on how the NC program is created. That is, the operating time of the machine tool based on the completed electronic cam data depends on the position and order of the NC program commands (NC code). Therefore, even if an NC program that eliminates the problem that the machined workpiece is out of the tolerance range and the cycle time is within the expected value range and converts it into electronic cam data, the cycle is not as expected. There has been a problem that electronic cam data having time is not always generated.

例えば、NCプログラムを電子カムデータに変換しても、期待通りに加工時間が短くならないことがある。逆に、NCプログラムを電子カムデータに変換した場合に、予想以上に加工時間が短くなることもある。従来、NCプログラムにより工作機械を運転した場合のサイクルタイムが期待した値の範囲内に入るか否かは確認しているが、そのNCプログラムを変換した電子カムデータにより工作機械を運転した場合のサイクルタイムが期待した値の範囲内に入る保障はない。   For example, even if the NC program is converted into electronic cam data, the machining time may not be shortened as expected. Conversely, when the NC program is converted into electronic cam data, the machining time may be shorter than expected. Conventionally, it has been confirmed whether or not the cycle time when the machine tool is operated by the NC program is within the expected range, but when the machine tool is operated by the electronic cam data converted from the NC program. There is no guarantee that the cycle time is within the expected range.

実際、NCプログラムを電子カムデータに変換した場合に、どのくらい加工時間が短くなるかは予想がしにくい。そのため、NCプログラムだけでなく、NCプログラムから生成した電子カムデータを使用して工作機械を試運転し、サイクルタイムを確認する必要がある。そして、期待通りに加工時間が短くなっていなければ、たとえ電子カムデータを生成した後であっても、NCプログラムを修正しなければならない。また、電子カムデータにより工作機械を運転した結果、予想以上に加工時間が短くなった場合には、工具の加工送り速度を再検討することがある。工具の加工送り速度を遅くするようにNCプログラムを修正すれば、加工精度が高まる上に工具の刃持ちも良くなり、工作機械の連続稼働時間を延ばすことが可能になる。   Actually, it is difficult to predict how much the machining time will be shortened when the NC program is converted into electronic cam data. Therefore, it is necessary to test the machine tool by using not only the NC program but also the electronic cam data generated from the NC program to check the cycle time. If the machining time is not shortened as expected, the NC program must be corrected even after the electronic cam data is generated. In addition, if the machining time becomes shorter than expected as a result of operating the machine tool with the electronic cam data, the machining feed rate of the tool may be reconsidered. If the NC program is modified so as to slow down the machining feed rate of the tool, the machining accuracy will be improved and the tool will be held better, and the continuous operation time of the machine tool can be extended.

しかしながら、仮に電子カムデータにより工作機械を運転してサイクルタイムを確認し、必要に応じてNCプログラムを修正することとした場合、NCプログラムのサイクルタイムだけを確認していた従来よりも多くの手間と時間がかかってしまう。場合によっては、NCプログラムのサイクルタイムを確認した後も、NCプログラムの修正、NCプログラムによる運転、電子カムデータへの変換、電子カムデータによる運転、電子カムデータのサイクルタイムの確認といった工程を繰り返し行う必要があり、電子カムデータを完成させるまでに多くの工数がかかってしまう。   However, if the machine tool is operated with electronic cam data to check the cycle time and the NC program is modified as necessary, it takes more time than the conventional method of checking only the cycle time of the NC program. It takes time. In some cases, after confirming the cycle time of the NC program, the processes such as modification of the NC program, operation by the NC program, conversion to electronic cam data, operation by electronic cam data, and confirmation of the cycle time of electronic cam data are repeated. It is necessary to do this, and it takes a lot of man-hours to complete the electronic cam data.

本発明は、このような問題を解決するために成されたものであり、所望のサイクルタイムを有する電子カムデータを、できるだけ少ない工数でNCプログラムから生成できるようにすることを目的とする。   The present invention has been made to solve such a problem, and an object thereof is to generate electronic cam data having a desired cycle time from an NC program with as few man-hours as possible.

上記した課題を解決するために、本発明では、NCプログラムにより工作機械を運転して当該NCプログラムによる被加工物の加工時間を測定するとともに、NCプログラムから変換した電子カムデータをもとに当該電子カムデータによる被加工物の加工時間を算出する。そして、NCプログラムによる加工時間および電子カムデータによる加工時間を同時に表示するようにしている。ここで、NCプログラムによる加工時間および電子カムデータによる加工時間は、例えば1加工サイクルの加工時間(サイクルタイム)である。   In order to solve the above problems, in the present invention, a machine tool is operated by an NC program to measure a machining time of a workpiece by the NC program, and the electronic cam data converted from the NC program is used to measure the machining time. The processing time of the workpiece is calculated by electronic cam data. The machining time based on the NC program and the machining time based on the electronic cam data are displayed simultaneously. Here, the machining time by the NC program and the machining time by the electronic cam data are, for example, machining time (cycle time) of one machining cycle.

本発明の他の態様では、NCプログラムによる加工時間として、1加工サイクルの加工時間を工具の呼出指令毎または系統間の待ち合わせ毎に分けて測定する。また、電子カムデータによる加工時間として、1加工サイクルの加工時間を工具の呼出指令毎または系統間の待ち合わせ毎に分けて算出する。   In another aspect of the present invention, as the machining time by the NC program, the machining time of one machining cycle is measured separately for each tool call command or for each waiting time between systems. Further, as the machining time based on the electronic cam data, the machining time of one machining cycle is calculated separately for each tool calling command or for each waiting between systems.

上記のように構成した本発明によれば、NCプログラムによる加工時間と電子カムデータによる加工時間とが同時に表示されるので、NCプログラムを電子カムデータに変換した場合に、どのくらい加工時間が短くなるかをオペレータが一見して判断することができる。また、オペレータは、電子カムデータによる加工時間そのものを確認することもできる。このため、電子カムデータによる加工時間が期待した通りに短くなったか、期待値の範囲内に入っているかどうかなどをオペレータが確認して、そうなっていなければNCプログラムを適宜修正することができる。   According to the present invention configured as described above, since the machining time based on the NC program and the machining time based on the electronic cam data are displayed simultaneously, how much the machining time is shortened when the NC program is converted into electronic cam data. The operator can judge at a glance. The operator can also check the machining time itself based on the electronic cam data. For this reason, the operator checks whether the machining time based on the electronic cam data is shortened as expected or is within the range of the expected value, and if not, the NC program can be modified appropriately. .

しかも、電子カムデータによる加工時間は、NCプログラムから変換された電子カムデータ自体に基づき算出される。電子カムデータは、例えば所定時間毎の基準軸の移動量に対応させて工具の位置データなどを表したテーブルデータであるから、当該テーブルデータから電子カムデータによる加工時間は算出できる。すなわち、電子カムデータを実際に使用して工作機械を試運転しなくても、電子カムデータによる加工時間を取得できる。そのため、電子カムデータによる加工時間を確認してNCプログラムを修正するとしても、電子カムデータによる運転の工程は不要であり、その分だけ工数を少なくすることができる。   Moreover, the machining time based on the electronic cam data is calculated based on the electronic cam data itself converted from the NC program. Since the electronic cam data is, for example, table data representing tool position data corresponding to the amount of movement of the reference axis every predetermined time, the machining time based on the electronic cam data can be calculated from the table data. That is, the machining time based on the electronic cam data can be acquired without actually using the electronic cam data to test run the machine tool. Therefore, even if the machining time based on the electronic cam data is confirmed and the NC program is corrected, the operation process based on the electronic cam data is unnecessary, and the man-hour can be reduced correspondingly.

以上のことから、本発明によれば、所望のサイクルタイムを有する電子カムデータを、できるだけ少ない工数でNCプログラムから生成することができる。   From the above, according to the present invention, electronic cam data having a desired cycle time can be generated from an NC program with as few man-hours as possible.

また、本発明の他の態様によれば、NCプログラムによる加工時間および電子カムデータによる加工時間として、サイクルタイムそのものではなく、工具の呼出指令毎または系統間の待ち合わせ毎にサイクルタイムを分けて算出した時間が表示される。このため、どの工具で加工しているときにどの程度の加工時間が必要なのか、電子カム化によってどのくらい加工時間が短くなるのかをオペレータが一見して判断することができる。また、どの待ち合わせ間にどの程度の加工時間が必要なのか、電子カム化によってどのくらい加工時間が短くなるのかをオペレータが一見して判断することができる。   According to another aspect of the present invention, the machining time based on the NC program and the machining time based on the electronic cam data are calculated by dividing the cycle time not for each cycle time but for each tool call command or for each waiting time between systems. Time is displayed. For this reason, the operator can determine at a glance how long the machining time is required when machining with which tool and how much the machining time is shortened by using the electronic cam. Also, the operator can determine at a glance how much machining time is required between each waiting time and how much the machining time is shortened by using the electronic cam.

これにより、電子カムデータによる加工時間を確認してオペレータがNCプログラムを修正する際に、NCプログラムのどこを修正すればよいかの予想が立てやすくなる。このため、NCプログラムの修正を効率的に行うことができ、その分だけ工数を少なくすることができる。したがって、所望のサイクルタイムを有する電子カムデータを、より少ない工数でNCプログラムから生成することができるようになる。   As a result, when the operator corrects the NC program by checking the machining time based on the electronic cam data, it is easy to predict where the NC program should be corrected. Therefore, the NC program can be corrected efficiently, and the man-hour can be reduced accordingly. Therefore, electronic cam data having a desired cycle time can be generated from the NC program with less man-hours.

第1の実施形態による工作機械のハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the machine tool by 1st Embodiment. 第1の実施形態による工作機械の機能構成例を示す図である。It is a figure which shows the function structural example of the machine tool by 1st Embodiment. 電子カムデータ記憶部に格納される電子カムデータの一例を示す図である。It is a figure which shows an example of the electronic cam data stored in an electronic cam data storage part. 主軸台および刃物台を含む可動部の系統構成例を示す図である。It is a figure which shows the system configuration | structure example of a movable part containing a headstock and a tool post. 第1の実施形態による表示制御部の制御によって表示部に表示される画面の一例を示す図である。It is a figure which shows an example of the screen displayed on a display part by control of the display control part by 1st Embodiment. 図5に示した画面を表示する際の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence at the time of displaying the screen shown in FIG. 第2の実施形態による工作機械の機能構成例を示す図である。It is a figure which shows the function structural example of the machine tool by 2nd Embodiment. 第2の実施形態による表示制御部の制御によって表示部に表示される画面の一例を示す図である。It is a figure which shows an example of the screen displayed on a display part by control of the display control part by 2nd Embodiment. 第2の実施形態による表示制御部の制御によって表示部に表示される画面の一例を示す図である。It is a figure which shows an example of the screen displayed on a display part by control of the display control part by 2nd Embodiment. 電子カムデータを生成する際の一般的な工程(電子カム化の工程)を示すフローチャートである。It is a flowchart which shows the general process (process of electronic cam formation) at the time of producing | generating electronic cam data.

(第1の実施形態)
以下、本発明の一実施形態を図面に基づいて説明する。図1は、第1の実施形態による工作機械100のハードウェア構成例を示す図である。図2は、第1の実施形態による工作機械100の主要な機能構成例を示す図である。
(First embodiment)
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 machine tool 100 according to the first embodiment. FIG. 2 is a diagram illustrating a main functional configuration example of the machine tool 100 according to the first embodiment.

図1に示すように、第1の実施形態による工作機械100は、NC装置10、パーソナルコンピュータ(PC)20、表示部30、入力部40、駆動制御装置50、可動部60およびインタフェース70を備えている。NC装置10、PC20、表示部30、入力部40および駆動制御装置50は、インタフェース70を介して相互に接続され、互いにデータの授受を行うことができるようになされている。   As shown in FIG. 1, the machine tool 100 according to the first embodiment includes an NC device 10, a personal computer (PC) 20, a display unit 30, an input unit 40, a drive control device 50, a movable unit 60, and an interface 70. ing. The NC device 10, the PC 20, the display unit 30, the input unit 40, and the drive control device 50 are connected to each other via an interface 70 so that data can be exchanged between them.

NC装置10は、CPU11、RAM12、ROM13、メモリ14およびタイマ15を備えている。RAM12は、NCプログラム記憶部12aおよび電子カムデータ記憶部12bを有している。ROM13は、NC加工時間測定プログラム記憶部13a、電子カム加工時間算出プログラム記憶部13bおよび表示制御プログラム記憶部13cを有している。PC20は、CPU21およびRAM22を備えている。RAM22は、データ変換プログラム記憶部22aを有している。可動部60は、ワークを着脱可能に把持する主軸を備えた主軸台61と、ワークを加工する複数種類の工具を保持する刃物台62とを備えている。   The NC device 10 includes a CPU 11, a RAM 12, a ROM 13, a memory 14 and a timer 15. The RAM 12 has an NC program storage unit 12a and an electronic cam data storage unit 12b. The ROM 13 includes an NC machining time measurement program storage unit 13a, an electronic cam machining time calculation program storage unit 13b, and a display control program storage unit 13c. The PC 20 includes a CPU 21 and a RAM 22. The RAM 22 has a data conversion program storage unit 22a. The movable part 60 includes a spindle stock 61 having a spindle for detachably gripping a workpiece and a tool rest 62 for holding a plurality of types of tools for machining the workpiece.

NC装置10のCPU11は、RAM12およびROM13に格納されている各種プログラムに従って所定の処理を実行する。メモリ14は、CPU11による処理の実行結果を一時的に格納する。本実施形態では、メモリ14は、NCプログラムにより工作機械100を運転して測定されたサイクルタイムを一時的に格納する。タイマ15は、NCプログラムにより工作機械100を運転してサイクルタイムを測定するときに使用する。   The CPU 11 of the NC device 10 executes predetermined processing according to various programs stored in the RAM 12 and the ROM 13. The memory 14 temporarily stores the execution result of the processing by the CPU 11. In the present embodiment, the memory 14 temporarily stores a cycle time measured by operating the machine tool 100 according to the NC program. The timer 15 is used when the cycle time is measured by operating the machine tool 100 according to the NC program.

RAM12のNCプログラム記憶部12aは、オペレータが作成したNCプログラムを記憶する。このNCプログラム記憶部12aに記憶されるNCプログラムは、工作機械100の入力部40から直接入力されたり、プログラム作成ツール(図示せず)により作成されて、通信機能等を介して転送されたりする。なお、CPU11およびNCプログラム記憶部12aに記憶されたNCプログラムにより、図2のNCプログラム実行部31が構成される。   The NC program storage unit 12a of the RAM 12 stores the NC program created by the operator. The NC program stored in the NC program storage unit 12a is directly input from the input unit 40 of the machine tool 100, or created by a program creation tool (not shown) and transferred via a communication function or the like. . 2 is constituted by the NC program stored in the CPU 11 and the NC program storage unit 12a.

電子カムデータ記憶部12bは、電子カム制御を行うための電子カムデータを記憶する。ここに記憶される電子カムデータは、NCプログラム記憶部12aに格納されたNCプログラムを、PC20のデータ変換プログラム記憶部22aに格納されているデータ変換プログラムにより変換することで作成されたものである。図3は、電子カムデータの一例を示す図である。図3に示すように、電子カムデータは、例えば基準タイミング信号のカウント値に応じて、主軸台61に取り付けられた主軸の累積回転角と、刃物台62に取り付けられた工具の位置データと、系統間の待ち合わせ完了タイミングとを対応させて表したテーブルデータである。   The electronic cam data storage unit 12b stores electronic cam data for performing electronic cam control. The electronic cam data stored here is created by converting the NC program stored in the NC program storage unit 12a by the data conversion program stored in the data conversion program storage unit 22a of the PC 20. . FIG. 3 is a diagram illustrating an example of electronic cam data. As shown in FIG. 3, the electronic cam data includes, for example, the cumulative rotation angle of the spindle attached to the spindle stock 61, the position data of the tool attached to the tool rest 62, according to the count value of the reference timing signal, This is table data that represents the timing of completion of waiting between systems.

PC20のCPU21は、RAM22のデータ変換プログラム記憶部22aに格納されているデータ変換プログラムに従って、NCプログラム記憶部12aに格納されているNCプログラムを電子カムデータに変換する処理を実行する。入力部40は、データ変換プログラムの起動用として使用する電子カムデータ作成ボタン(図示せず)を備えている。オペレータが電子カムデータ作成ボタンを操作すると、CPU21がデータ変換プログラム記憶部22aのデータ変換プログラムに従ってNCプログラムを電子カムデータに変換する。なお、CPU21およびデータ変換プログラム記憶部22aに記憶されたデータ変換プログラムにより、図2のデータ変換部32が構成される。   The CPU 21 of the PC 20 executes processing for converting the NC program stored in the NC program storage unit 12a into electronic cam data in accordance with the data conversion program stored in the data conversion program storage unit 22a of the RAM 22. The input unit 40 includes an electronic cam data creation button (not shown) used for starting up the data conversion program. When the operator operates the electronic cam data creation button, the CPU 21 converts the NC program into electronic cam data in accordance with the data conversion program stored in the data conversion program storage unit 22a. Note that the data conversion program 32 stored in the CPU 21 and the data conversion program storage unit 22a constitutes the data conversion unit 32 in FIG.

駆動制御装置50は、可動部60における主軸台61および刃物台62の駆動を制御する。図4は、主軸台61および刃物台62を含む可動部60の系統構成例を示す図である。図4に示す例において、可動部60は第1系統、第2系統、第3系統の3系統を含んでいる。主軸台61は第1系統および第2系統に備えられ、刃物台62は第1系統から第3系統の全てに備えられている。   The drive control device 50 controls the driving of the headstock 61 and the tool rest 62 in the movable part 60. FIG. 4 is a diagram illustrating a system configuration example of the movable unit 60 including the headstock 61 and the tool rest 62. In the example shown in FIG. 4, the movable unit 60 includes three systems, a first system, a second system, and a third system. The headstock 61 is provided in the first system and the second system, and the tool rest 62 is provided in all of the first system to the third system.

図4において、駆動制御装置50は、第1系統に関するNCプログラムまたは電子カムデータ(以下、これらをまとめて加工プログラムと称する)により、第1系統の機構部における主軸台移動用モータ、主軸回転用モータおよび工具移動用モータ(何れのモータも図示せず)を制御する。これによって、主軸台61−1上の主軸A1は、図4に矢印で示すようにZ1軸方向に主軸台61−1と共に移動制御されるとともに、C1回転方向に回転制御される。一方、刃物台62−1上の工具TS1は、図4に矢印で示すように刃物台62−1と共にX1軸方向およびY1軸方向に移動制御される。   In FIG. 4, the drive control device 50 uses the spindle program moving motor and the spindle rotation in the mechanism part of the first system based on the NC program or electronic cam data (hereinafter collectively referred to as the machining program) related to the first system. A motor and a tool moving motor (none of which are shown) are controlled. As a result, the spindle A1 on the spindle stock 61-1 is controlled to move together with the spindle stock 61-1 in the Z1 axis direction and also to rotate in the C1 rotation direction as indicated by arrows in FIG. On the other hand, the tool TS1 on the tool rest 62-1 is controlled to move in the X1 axis direction and the Y1 axis direction together with the tool rest 62-1 as indicated by an arrow in FIG.

すなわち、第1系統の機構部では、主軸台61−1の移動制御、主軸A1の回転制御、工具TS1を支持する刃物台62−1の移動制御が行われる。なお、刃物台62−1は、複数の工具TS1として、バイト等の非可動のもの、あるいはドリル等の回転可能なものを取り付け可能としている。ドリル等の回転可能な工具を使う場合には、駆動制御装置50は、第1系統に関する加工プログラムにより、工具を回転させるための工具回転用モータ(図示せず)を制御する。   That is, in the mechanism part of the first system, movement control of the spindle stock 61-1, rotation control of the spindle A1, and movement control of the tool post 62-1 supporting the tool TS1 are performed. The tool post 62-1 can be attached with a non-movable tool such as a tool or a rotatable tool such as a drill as the plurality of tools TS1. When using a rotatable tool such as a drill, the drive control device 50 controls a tool rotation motor (not shown) for rotating the tool by a machining program related to the first system.

また、駆動制御装置50は、第2系統に関する加工プログラムにより、第2系統の機構部における背面主軸台移動用モータおよび背面主軸回転用モータ(何れのモータも図示せず)を制御する。これによって、主軸台61−2上の背面主軸A2は、図4に矢印で示すように背面主軸台61−2と共にX2軸方向およびZ2軸方向に移動制御されるとともに、C2回転方向に回転制御される。   Moreover, the drive control apparatus 50 controls the motor for moving the back spindle head and the motor for rotating the back spindle (not shown) in the mechanism part of the second system by a machining program related to the second system. As a result, the back spindle A2 on the spindle stock 61-2 is controlled to move in the X2 axis direction and the Z2 axis direction together with the back spindle stock 61-2 as indicated by arrows in FIG. Is done.

一方、固定刃物台62−2は、複数の工具TS2として、第1系統の工具TS1と同様にバイト等の非可動のもの、あるいはドリル等の回転可能なものを取り付け可能としている。ドリル等の回転可能な工具を使う場合には、駆動制御装置50は、第2系統に関する加工プログラムにより、工具を回転させるための工具回転用モータ(図示せず)を制御する。   On the other hand, the fixed tool post 62-2 can be attached with a non-movable tool such as a bite or a rotatable tool such as a drill as the plurality of tools TS2 as in the first system tool TS1. When using a rotatable tool such as a drill, the drive control device 50 controls a tool rotation motor (not shown) for rotating the tool by a machining program related to the second system.

さらに、駆動制御装置50は、第3系統に関する加工プログラムにより、第3系統の機構部における工具移動用モータ(図示せず)を制御する。これによって、第3系統の工具TS3は、図4に矢印で示すように刃物台62−3と共にX3軸方向、Y3軸方向、Z3軸方向に移動制御される。すなわち、第3系統の機構部では、工具TS3を支持する刃物台62−3が駆動制御装置50により移動制御される。また、刃物台62−3に保持される工具TS3がドリル等の回転工具の場合は、その工具を回転させるための工具回転用モータ(図示せず)が駆動制御装置50により回転制御される。   Further, the drive control device 50 controls a tool moving motor (not shown) in the mechanism part of the third system by a machining program related to the third system. As a result, the tool TS3 of the third system is controlled to move in the X3 axis direction, the Y3 axis direction, and the Z3 axis direction together with the tool post 62-3 as indicated by an arrow in FIG. That is, in the third system mechanism, the tool rest 62-3 supporting the tool TS3 is moved and controlled by the drive control device 50. When the tool TS3 held on the tool post 62-3 is a rotary tool such as a drill, the drive control device 50 controls the rotation of a tool rotation motor (not shown) for rotating the tool.

図4に示す機構部でワークを加工する際には、まず第1系統の主軸A1でワークの一部を把持し、第1系統の工具TS1または第3系統の工具TS3でワーク(具体的には、主軸A1により把持されていない部分)を加工する。その後、第1系統の主軸A1から第2系統の背面主軸A2にワークを受け渡し、第2系統の工具TS2でワークの背面(主軸A1により把持されていて加工されていない部分)を加工する。第1系統の主軸A1から第2系統の背面主軸A2にワークを受け渡す際に、タイミング合わせのために系統間の待ち合わせが発生する。   When machining a workpiece by the mechanism shown in FIG. 4, first, a part of the workpiece is gripped by the first spindle A1, and the workpiece (specifically, the tool TS1 of the first system or the tool TS3 of the third system is used. Machine the part that is not gripped by the spindle A1. Thereafter, the workpiece is transferred from the first system spindle A1 to the second system back spindle A2, and the back surface of the work (the portion gripped by the spindle A1 and not processed) is processed by the second system tool TS2. When the workpiece is transferred from the main spindle A1 of the first system to the rear spindle A2 of the second system, waiting between systems occurs for timing adjustment.

なお、図4のように、主軸台61として第1系統の主軸台61−1と第2系統の主軸台61−2とが存在する場合、図3に示した電子カムデータは、それぞれの主軸台61−1,61−2毎に別個に生成するようにしても良い。   As shown in FIG. 4, when there are a first-system spindle stock 61-1 and a second-system spindle stock 61-2 as the spindle stock 61, the electronic cam data shown in FIG. You may make it produce | generate separately for every stand 61-1, 61-2.

図1に戻って説明する。NC装置10が備えるROM13のNC加工時間測定プログラム記憶部13aは、NC加工時間測定プログラムを記憶する。このNC加工時間測定プログラムは、NCプログラム記憶部12aに格納されているNCプログラムによるワークの加工時間を測定するためのプログラムである。なお、NC装置10のCPU11およびNC加工時間測定プログラム記憶部13aに記憶されたNC加工時間測定プログラムにより、図2のNC加工時間測定部33が構成される。   Returning to FIG. The NC machining time measurement program storage unit 13a of the ROM 13 provided in the NC device 10 stores an NC machining time measurement program. This NC machining time measurement program is a program for measuring the machining time of a workpiece by the NC program stored in the NC program storage unit 12a. 2 is configured by the NC machining time measurement program stored in the CPU 11 of the NC apparatus 10 and the NC machining time measurement program storage unit 13a.

電子カム加工時間算出プログラム記憶部13bは、電子カム加工時間算出プログラムを記憶する。この電子カム加工時間算出プログラムは、電子カムデータ記憶部12bに格納されている電子カムデータによるワークの加工時間を算出するためのプログラムである。なお、NC装置10のCPU11および電子カム加工時間算出プログラム記憶部13bに記憶された電子カム加工時間算出プログラムにより、図2の電子カム加工時間算出部34が構成される。   The electronic cam machining time calculation program storage unit 13b stores an electronic cam machining time calculation program. The electronic cam machining time calculation program is a program for calculating a workpiece machining time based on electronic cam data stored in the electronic cam data storage unit 12b. The electronic cam machining time calculation unit 34 of FIG. 2 is configured by the CPU 11 of the NC device 10 and the electronic cam machining time calculation program stored in the electronic cam machining time calculation program storage unit 13b.

表示制御プログラム記憶部13cは、表示制御プログラムを記憶する。この表示制御プログラムは、NCプログラムによるワークの加工時間と電子カムデータによるワークの加工時間とを表示部30に同時に表示するためのプログラムである。なお、NC装置10のCPU11および表示制御プログラム記憶部13cに記憶された表示制御プログラムにより、図2の表示制御部35が構成される。   The display control program storage unit 13c stores a display control program. This display control program is a program for simultaneously displaying on the display unit 30 the workpiece machining time by the NC program and the workpiece machining time by the electronic cam data. 2 is configured by the display control program stored in the CPU 11 of the NC apparatus 10 and the display control program storage unit 13c.

以下、図2に示した各機能構成について詳しく説明する。図2において、NCプログラム実行部31は、NCプログラム記憶部12aに格納されているNCプログラムを実行する。すなわち、NCプログラム実行部31は、NCプログラム記憶部12aからNCプログラムのNCコードを順番に読み込み、各NCコードを解釈しながら順に実行していく。   Hereinafter, each functional configuration shown in FIG. 2 will be described in detail. In FIG. 2, the NC program execution unit 31 executes the NC program stored in the NC program storage unit 12a. That is, the NC program execution unit 31 sequentially reads the NC codes of the NC program from the NC program storage unit 12a, and executes them in order while interpreting each NC code.

NC加工時間測定部33は、NCプログラム実行部31によりNCプログラムが実行されたときに、当該NCプログラムによるワークの加工時間を測定する。第1の実施形態においてNC加工時間測定部33は、NCプログラムによる加工時間として、1加工サイクルの加工時間(サイクルタイム)を測定する。具体的には、NC加工時間測定部33は、タイマ15を用いて、NCプログラムに含まれるワンサイクル停止コードを2回検知する間の時間をサイクルタイムとして測定する。   When the NC program is executed by the NC program execution unit 31, the NC machining time measurement unit 33 measures the machining time of the workpiece by the NC program. In the first embodiment, the NC machining time measuring unit 33 measures a machining time (cycle time) of one machining cycle as a machining time by the NC program. Specifically, the NC machining time measuring unit 33 uses the timer 15 to measure the time during which the one-cycle stop code included in the NC program is detected twice as the cycle time.

すなわち、NC加工時間測定部33は、NCプログラム実行部31によりNCプログラムの運転が開始されたときに、タイマ15を起動してカウント値をゼロにクリアする。その後、NC加工時間測定部33は、NCプログラム実行部31がNCコードを順番に読み込んで実行していく過程で、ワンサイクル停止コードが読み込まれたか否かを判定する。そして、ワンサイクル停止コードを検知した場合、NC加工時間測定部33はタイマ15にスタート指令を出し、タイマ15のカウントアップを開始する。   That is, the NC machining time measuring unit 33 activates the timer 15 and clears the count value to zero when the NC program execution unit 31 starts the operation of the NC program. Thereafter, the NC machining time measurement unit 33 determines whether or not the one-cycle stop code has been read in the process in which the NC program execution unit 31 reads and executes the NC codes in order. When a one-cycle stop code is detected, the NC machining time measuring unit 33 issues a start command to the timer 15 and starts counting up the timer 15.

その後、NC加工時間測定部33は、NCプログラム実行部31がNCコードを更に読み込んで実行していく過程で、NCプログラムが一巡して2回目のワンサイクル停止コードが読み込まれたか否かを判定する。そして、2回目のワンサイクル停止コードを検知した場合、NC加工時間測定部33は、タイマ15にストップ指令を出すことによりタイマ15のカウントアップを停止し、そのときのカウント値をメモリ14に格納する。このメモリ14に格納されたカウント値が、NCプログラムによるサイクルタイムとなる。   Thereafter, the NC machining time measuring unit 33 determines whether or not the NC program has been read once and the second one-cycle stop code has been read while the NC program executing unit 31 further reads and executes the NC code. To do. When the second one-cycle stop code is detected, the NC machining time measurement unit 33 stops the timer 15 count-up by issuing a stop command to the timer 15 and stores the count value at that time in the memory 14. To do. The count value stored in the memory 14 becomes the cycle time by the NC program.

なお、このNCプログラムの試運転の段階で、加工されたワークが公差の範囲内に入らなかったり、NCプログラムによるサイクルタイムが期待値の範囲内に入らなかったりした場合には、オペレータによってNCプログラムの修正が行われる。そして、修正したNCプログラムを用いて、NCプログラム実行部31およびNC加工時間測定部33の処理を再び行う。   If the machined workpiece does not fall within the tolerance range or the cycle time according to the NC program does not fall within the expected value range at the time of the trial run of this NC program, Corrections are made. Then, the processing of the NC program execution unit 31 and the NC machining time measurement unit 33 is performed again using the corrected NC program.

データ変換部32は、NCプログラム記憶部12aに格納されているNCプログラムを電子カムデータに変換し、変換した電子カムデータを電子カムデータ記憶部12bに格納する。ここで変換対象とするNCプログラムは、修正済みのNCプログラムである。   The data conversion unit 32 converts the NC program stored in the NC program storage unit 12a into electronic cam data, and stores the converted electronic cam data in the electronic cam data storage unit 12b. Here, the NC program to be converted is a corrected NC program.

電子カム加工時間算出部34は、データ変換部32により変換された電子カムデータをもとに、電子カムデータによるワークの加工時間を算出する。第1の実施形態において電子カム加工時間算出部34は、電子カムデータによる加工時間として、1加工サイクルの加工時間(サイクルタイム)を算出する。   The electronic cam machining time calculation unit 34 calculates the workpiece machining time based on the electronic cam data based on the electronic cam data converted by the data conversion unit 32. In the first embodiment, the electronic cam machining time calculation unit 34 calculates the machining time (cycle time) of one machining cycle as the machining time based on the electronic cam data.

電子カムデータは、図3に示したように、基準タイミング信号のカウント値に応じて、主軸の移動量に対応させて工具の位置データ等を記憶させたテーブルデータである。このため、テーブルデータの最初のレコードにおける基準タイミング信号のカウント値が電子カムデータによる加工の開始時間に相当し、最後のレコードにおける基準タイミング信号のカウント値が加工の終了時間に相当する。したがって、電子カム加工時間算出部34は、最後のレコードにおける基準タイミング信号のカウント値と、基準タイミング信号のカウント周期とから、電子カムデータによる加工時間を算出することができる。   As shown in FIG. 3, the electronic cam data is table data in which tool position data and the like are stored in accordance with the amount of movement of the spindle in accordance with the count value of the reference timing signal. Therefore, the count value of the reference timing signal in the first record of the table data corresponds to the machining start time by the electronic cam data, and the count value of the reference timing signal in the last record corresponds to the machining end time. Therefore, the electronic cam machining time calculation unit 34 can calculate the machining time based on the electronic cam data from the count value of the reference timing signal in the last record and the count cycle of the reference timing signal.

表示制御部35は、NC加工時間測定部33により測定されたNCプログラムによる加工時間(メモリ14に格納されたNCプログラムによるサイクルタイム)と、電子カム加工時間算出部34により算出された電子カムデータによる加工時間(サイクルタイム)とを表示部30に同時に表示するよう制御する。なお、NCプログラムによるサイクルタイムと電子カムデータによるサイクルタイムとを同時に表示することに代えて、または同時に表示することに加えて、NCプログラムによるサイクルタイムと電子カムデータによるサイクルタイムとの差分を表示するようにしても良い。   The display control unit 35 includes a machining time measured by the NC machining time measuring unit 33 (cycle time based on the NC program stored in the memory 14) and electronic cam data calculated by the electronic cam machining time calculating unit 34. The processing time (cycle time) is controlled to be displayed on the display unit 30 at the same time. In addition to displaying the cycle time by the NC program and the cycle time by the electronic cam data at the same time or in addition to displaying them simultaneously, the difference between the cycle time by the NC program and the cycle time by the electronic cam data is displayed. You may make it do.

図5は、表示制御部35の制御によって表示部30に表示される画面の一例を示す図である。図5に示す画面は、データ変換部32がNCプログラムを電子カムデータに変換する処理を開始するときから表示される画面の例を示している。すなわち、画面の左側には、上から順に“読み込み中”、“解析中”、“最適化中”、“出力中”および“完了”の文字が表示されていて、これらの各処理が終了する毎に、文字の左側に処理終了を表すレ点マークが表示されていく。   FIG. 5 is a diagram illustrating an example of a screen displayed on the display unit 30 under the control of the display control unit 35. The screen shown in FIG. 5 shows an example of a screen displayed when the data conversion unit 32 starts processing for converting the NC program into electronic cam data. That is, on the left side of the screen, characters “Reading”, “Analyzing”, “Optimizing”, “Outputting”, and “Completed” are displayed in order from the top, and each of these processes ends. Each time, a check mark indicating the end of processing is displayed on the left side of the character.

なお、“読み込み中”は、NCプログラム記憶部12aからNCプログラムを読み込む処理を表す。“解析中”は、読み込んだNCプログラムを解析する処理を表す。“最適化中”は、解析し終わったNCプログラムを電子カムデータに変換する処理を表す。“出力中”は、変換した電子カムデータを電子カムデータ記憶部12bに格納する処理を表す。“完了”は、電子カムデータ記憶部12bに格納された電子カムデータのサイクルタイムの算出が完了したことを表す。   “Reading” represents the process of reading the NC program from the NC program storage unit 12a. “Under analysis” represents a process of analyzing the read NC program. “Optimizing” represents a process of converting the analyzed NC program into electronic cam data. “During output” represents a process of storing the converted electronic cam data in the electronic cam data storage unit 12b. “Completed” indicates that the calculation of the cycle time of the electronic cam data stored in the electronic cam data storage unit 12b has been completed.

また、図5に示す画面の右側には、上から順に“NC”、“最適化後”、“短縮時間”および“短縮率”の文字が表示されていて、それらの文字の右側に数字が表示されている。ここで、“NC”の右側の数字は、NCプログラムによるサイクルタイムを表す。“最適化後”の右側の数字は、NCプログラムから変換された電子カムデータによるサイクルタイムを表す。“短縮時間”の右側の数字は、NCプログラムによるサイクルタイムと電子カムデータによるサイクルタイムとの差分時間を表す。“短縮率”は、電子カム化によってどれだけ加工時間が短くなったかの割合を表す。   In addition, on the right side of the screen shown in FIG. 5, characters “NC”, “after optimization”, “shortening time” and “shortening rate” are displayed in order from the top, and numbers are displayed on the right side of these characters. It is displayed. Here, the number on the right side of “NC” represents the cycle time according to the NC program. The number on the right side of “after optimization” represents the cycle time by the electronic cam data converted from the NC program. The number on the right side of “shortening time” represents the difference time between the cycle time by the NC program and the cycle time by the electronic cam data. “Shortening rate” represents the ratio of how much the processing time has been shortened by the electronic cam.

図6は、図5に示した画面を表示する際の処理手順を示すフローチャートである。なお、図6に示すフローチャートは、入力部40の電子カムデータ作成ボタンをオペレータが操作することによって開始する。この開始時点において、NCプログラムによるサイクルタイムはNC加工時間測定部33によって既に測定されており、測定されたNCプログラムによるサイクルタイムはメモリ14に格納済みである。   FIG. 6 is a flowchart showing a processing procedure when the screen shown in FIG. 5 is displayed. Note that the flowchart shown in FIG. 6 starts when the operator operates the electronic cam data creation button of the input unit 40. At this starting point, the cycle time by the NC program has already been measured by the NC machining time measuring unit 33, and the measured cycle time by the NC program has already been stored in the memory 14.

図6において、まずデータ変換部32は、NCプログラム記憶部12aに格納されているNCプログラムを電子カムデータに変換し、変換した電子カムデータを電子カムデータ記憶部12bに格納する(ステップS1)。次に、電子カム加工時間算出部34は、電子カムデータ記憶部12bに格納された電子カムデータをもとに、電子カムデータによるサイクルタイムを算出する(ステップS2)。   In FIG. 6, the data conversion unit 32 first converts the NC program stored in the NC program storage unit 12a into electronic cam data, and stores the converted electronic cam data in the electronic cam data storage unit 12b (step S1). . Next, the electronic cam machining time calculation unit 34 calculates a cycle time based on the electronic cam data based on the electronic cam data stored in the electronic cam data storage unit 12b (step S2).

また、電子カム加工時間算出部34は、メモリ14に格納されているNCプログラムによるサイクルタイムを取得する(ステップS3)。そして、電子カム加工時間算出部34は、NCプログラムによるサイクルタイムと電子カムデータによるサイクルタイムとから、電子カム化による短縮時間と短縮率とを算出する(ステップS4)。   Further, the electronic cam machining time calculation unit 34 acquires the cycle time by the NC program stored in the memory 14 (step S3). Then, the electronic cam machining time calculation unit 34 calculates the shortening time and the shortening rate by the electronic cam conversion from the cycle time by the NC program and the cycle time by the electronic cam data (step S4).

最後に、表示制御部35は、メモリ14に格納されているNCプログラムによるサイクルタイムと、電子カム加工時間算出部34により算出された電子カムデータによるサイクルタイムと、電子カム化による短縮時間および短縮率とを図5のように表示部30の画面に同時に表示する(ステップS5)。   Finally, the display control unit 35 includes a cycle time based on the NC program stored in the memory 14, a cycle time based on the electronic cam data calculated by the electronic cam machining time calculation unit 34, and a reduction time and reduction due to the electronic cam conversion. The rate is simultaneously displayed on the screen of the display unit 30 as shown in FIG. 5 (step S5).

以上詳しく説明したように、第1の実施形態では、NCプログラム実行部31によりNCプログラムを用いて実際に工作機械100を運転して、NC加工時間測定部33によりNCプログラムによるサイクルタイムを測定するとともに、NCプログラムから変換した電子カムデータをもとに、電子カムデータによるサイクルタイムを算出する。そして、NCプログラムによるサイクルタイムと電子カムデータによるサイクルタイムとを表示部30に同時に表示するようにしている。このように構成した第1の実施形態によれば、工作機械100のオペレータは、NCプログラムによるサイクルタイムからは予測が困難な電子カムデータによるサイクルタイムに加え、NCプログラムを電子カムデータに変換した場合にどのくらい加工時間が短くなるかを一見して確認することができる。   As described in detail above, in the first embodiment, the NC program execution unit 31 actually operates the machine tool 100 using the NC program, and the NC machining time measurement unit 33 measures the cycle time according to the NC program. At the same time, the cycle time based on the electronic cam data is calculated based on the electronic cam data converted from the NC program. The cycle time based on the NC program and the cycle time based on the electronic cam data are simultaneously displayed on the display unit 30. According to the first embodiment configured as described above, the operator of the machine tool 100 converts the NC program into electronic cam data in addition to the cycle time based on electronic cam data that is difficult to predict from the cycle time based on the NC program. It is possible to confirm at a glance how much the processing time is shortened.

また、第1の実施形態では、電子カム化による短縮時間と短縮率とを合わせて表示するようにしている。これによりオペレータは、NCプログラムの電子カム化によってどのくらい加工時間が短くなるかを、より一層容易に確認することができる。そのためオペレータは、電子カムデータによるサイクルタイムの確認結果から、NCプログラム修正の必要性の有無を的確に判断し、NCプログラムを適宜修正することができる。   In the first embodiment, the shortening time and the shortening rate due to the electronic cam are displayed together. As a result, the operator can more easily check how much the machining time is shortened by converting the NC program into an electronic cam. Therefore, the operator can accurately determine whether or not the NC program needs to be corrected from the result of checking the cycle time based on the electronic cam data, and can appropriately correct the NC program.

しかも、電子カムデータによるサイクルタイムは、電子カムデータ自体から簡単に算出することができる。すなわち、電子カムデータを用いて実際に工作機械100を運転しなくても、電子カムデータによるサイクルタイムを取得することができる。そのため、電子カムデータによるサイクルタイムを確認してNCプログラムを修正するとしても、電子カムデータによる運転の工程は不要であり、その分だけ工数を少なくすることができる。   Moreover, the cycle time based on the electronic cam data can be easily calculated from the electronic cam data itself. That is, the cycle time based on the electronic cam data can be acquired without actually operating the machine tool 100 using the electronic cam data. Therefore, even if the cycle time based on the electronic cam data is confirmed and the NC program is corrected, the operation process based on the electronic cam data is not necessary, and the man-hour can be reduced correspondingly.

以上のことから、第1の実施形態によれば、NCプログラムによるサイクルタイムだけを確認してNCプログラムを修正していた従来とは異なり、所望のサイクルタイムを有する電子カムデータを、できるだけ少ない工数でNCプログラムから生成することができる。   From the above, according to the first embodiment, unlike the conventional case where the NC program is corrected by checking only the cycle time by the NC program, the electronic cam data having a desired cycle time is reduced as much as possible. Can be generated from the NC program.

(第2の実施形態)
次に、本発明の第2の実施形態を図面に基づいて説明する。第2の実施形態において、工作機械100のハードウェア構成は、メモリとタイマとが2つずつ設けられること以外は、図1と同様である。図7は、第2の実施形態による工作機械100の主要な機能構成例を示す図である。なお、この図7において、図2に示した符号と同一の符号を付したものは同一の機能を有するものであるので、ここでは重複する説明を省略する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to the drawings. In the second embodiment, the hardware configuration of the machine tool 100 is the same as that in FIG. 1 except that two memories and two timers are provided. FIG. 7 is a diagram illustrating a main functional configuration example of the machine tool 100 according to the second embodiment. In FIG. 7, components having the same reference numerals as those shown in FIG. 2 have the same functions, and thus redundant description is omitted here.

図7に示すように、第2の実施形態では、第1の実施形態で説明したNC加工時間測定部33、電子カム加工時間算出部34および表示制御部35の代わりに、これらとは機能が異なるNC加工時間測定部33’、電子カム加工時間算出部34’および表示制御部35’を備えている。また、第1の実施形態で説明したメモリ14(図7では第1のメモリ14に相当)に加え、第2のメモリ16を備えている。また、第1の実施形態で説明したタイマ15(図7では第1のタイマ15に相当)に加え、第2のタイマ17を備えている。第2のメモリ16および第2のタイマ17は、NC装置10に備えられる。   As shown in FIG. 7, in the second embodiment, instead of the NC machining time measurement unit 33, the electronic cam machining time calculation unit 34, and the display control unit 35 described in the first embodiment, these functions Different NC machining time measurement units 33 ', an electronic cam machining time calculation unit 34', and a display control unit 35 'are provided. Further, in addition to the memory 14 described in the first embodiment (corresponding to the first memory 14 in FIG. 7), a second memory 16 is provided. Further, in addition to the timer 15 described in the first embodiment (corresponding to the first timer 15 in FIG. 7), a second timer 17 is provided. The second memory 16 and the second timer 17 are provided in the NC device 10.

第2の実施形態において、NC加工時間測定部33’は、NCプログラムによる加工時間として、サイクルタイムを測定するとともに、当該サイクルタイムを工具の呼出指令毎(工具番号毎)に分けて測定する。NCプログラムによるサイクルタイムの測定は、第1の実施形態と同様にして行う。すなわち、NC加工時間測定部33’は、第1のタイマ15を用いて、NCプログラムに含まれるワンサイクル停止コードを2回検知する間の時間をサイクルタイムとして測定する。   In the second embodiment, the NC machining time measuring unit 33 ′ measures the cycle time as machining time by the NC program, and measures the cycle time separately for each tool call command (for each tool number). The cycle time measurement by the NC program is performed in the same manner as in the first embodiment. That is, the NC machining time measurement unit 33 ′ uses the first timer 15 to measure the time between two times that the one-cycle stop code included in the NC program is detected as the cycle time.

具体的には、NC加工時間測定部33’は、NCプログラム実行部31によりNCプログラムの運転が開始されたときに、第1のタイマ15を起動してカウント値をゼロにクリアする。その後、NC加工時間測定部33’は、NCプログラム実行部31がNCコードを順番に読み込んで実行していく過程で、ワンサイクル停止コードが読み込まれたか否かを判定する。そして、ワンサイクル停止コードを検知した場合、NC加工時間測定部33’は、第1のタイマ15にスタート指令を出し、第1のタイマ15のカウントアップを開始する。   Specifically, when the NC program operation unit 31 starts the operation of the NC program, the NC machining time measurement unit 33 'activates the first timer 15 and clears the count value to zero. Thereafter, the NC machining time measurement unit 33 'determines whether or not the one-cycle stop code has been read in the process in which the NC program execution unit 31 reads and executes the NC codes in order. When the one-cycle stop code is detected, the NC machining time measurement unit 33 ′ issues a start command to the first timer 15 and starts counting up the first timer 15.

その後、NC加工時間測定部33’は、NCプログラム実行部31がNCコードを更に読み込んで実行していく過程で、NCプログラムが一巡して2回目のワンサイクル停止コードが読み込まれたか否かを判定する。そして、2回目のワンサイクル停止コードを検知した場合、NC加工時間測定部33’は、第1のタイマ15にストップ指令を出すことにより第1のタイマ15のカウントアップを停止し、そのときのカウント値を第1のメモリ14に格納する。この第1のメモリ14に格納されたカウント値が、NCプログラムによるサイクルタイムとなる。   Thereafter, the NC machining time measurement unit 33 ′ determines whether or not the NC program has been read and executed and the second one-cycle stop code has been read in the course of the NC program execution unit 31 further reading and executing the NC code. judge. When the second one-cycle stop code is detected, the NC machining time measurement unit 33 ′ stops the count-up of the first timer 15 by issuing a stop command to the first timer 15, and at that time The count value is stored in the first memory 14. The count value stored in the first memory 14 becomes the cycle time by the NC program.

一方、NCプログラムによる工具番号毎の加工時間は、以下のようにして測定する。すなわち、NC加工時間測定部33’は、NCプログラム実行部31によりNCプログラムの運転が開始されたときに、第2のタイマ17を起動してカウント値をゼロにクリアする。その後、NC加工時間測定部33’は、NCプログラム実行部31がNCコードを順番に読み込んで実行していく過程で、工具呼出指令(Tコード)が読み込まれたか否かを判定する。Tコードを検知した場合、NC加工時間測定部33’は、検知したTコード(工具番号)を第2のメモリ16の第1レコードに格納するとともに、第2のタイマ17にスタート指令を出して第2のタイマ17のカウントアップを開始する。   On the other hand, the machining time for each tool number according to the NC program is measured as follows. That is, when the NC program execution unit 31 starts the operation of the NC program, the NC machining time measurement unit 33 'activates the second timer 17 and clears the count value to zero. Thereafter, the NC machining time measurement unit 33 'determines whether or not a tool call command (T code) has been read in the process in which the NC program execution unit 31 reads and executes the NC codes in order. When the T code is detected, the NC machining time measuring unit 33 ′ stores the detected T code (tool number) in the first record of the second memory 16 and issues a start command to the second timer 17. The second timer 17 starts counting up.

その後、NC加工時間測定部33’は、NCプログラム実行部31がNCコードを更に読み込んで実行していく過程で、新たなTコードが読み込まれたか否かを判定する。新たなTコードを検知した場合、NC加工時間測定部33’は、第2のメモリ16の第1レコードに格納しておいた工具番号に関連付けて、第2のタイマ17のカウント値を格納する。この第2のメモリ16の第1レコードに格納されたカウント値が、1つ目の工具番号に対応する加工時間となる。   Thereafter, the NC machining time measuring unit 33 'determines whether or not a new T code has been read while the NC program executing unit 31 further reads and executes the NC code. When a new T code is detected, the NC machining time measuring unit 33 ′ stores the count value of the second timer 17 in association with the tool number stored in the first record of the second memory 16. . The count value stored in the first record of the second memory 16 is the machining time corresponding to the first tool number.

また、NC加工時間測定部33’は、新たなTコードを検知した時点で、当該新たなTコード(工具番号)を第2のメモリ16の第2レコードに格納するとともに、第2のタイマ17をゼロにクリアしてカウントアップを再開始する。その後、NC加工時間測定部33’が更に次のTコードを検知した場合は、第2のメモリ16の第2レコードに格納しておいた2つ目の工具番号に関連付けて、その時点における第2のタイマ17のカウント値を格納する。この第2レコードに格納されたカウント値が、2つ目の工具番号に対応する加工時間となる。以下同様に処理を繰り返していき、NC加工時間測定部33’が2回目のワンサイクル停止コードを検知した時点で、その時点のカウント値を最後の工具番号に関連付けて第2のメモリ16に格納する。そして、工具番号毎の加工時間の測定を終了する。   Further, the NC machining time measuring unit 33 ′ stores the new T code (tool number) in the second record of the second memory 16 when the new T code is detected, and the second timer 17. To zero and restart counting up. After that, when the NC machining time measuring unit 33 ′ further detects the next T code, the second machining number stored in the second record of the second memory 16 is associated with the second tool number at that time. 2 count value of timer 17 is stored. The count value stored in the second record is the machining time corresponding to the second tool number. Thereafter, the process is repeated in the same manner, and when the NC machining time measurement unit 33 ′ detects the second one-cycle stop code, the count value at that time is stored in the second memory 16 in association with the last tool number. To do. And the measurement of the processing time for every tool number is complete | finished.

電子カム加工時間算出部34’は、電子カムデータによる加工時間として、サイクルタイムを測定するとともに、当該サイクルタイムを工具の呼出指令毎(工具番号毎)に分けて算出する。電子カムデータによるサイクルタイムの算出は、第1の実施形態と同様にして行う。電子カムデータによる工具番号毎の加工時間の算出も、第1の実施形態とほぼ同様にして行うことが可能である。   The electronic cam machining time calculation unit 34 'measures the cycle time as the machining time based on the electronic cam data and calculates the cycle time separately for each tool calling command (for each tool number). Calculation of the cycle time based on the electronic cam data is performed in the same manner as in the first embodiment. The calculation of the machining time for each tool number based on the electronic cam data can be performed in substantially the same manner as in the first embodiment.

すなわち、電子カムデータは、図3に示したように、基準タイミング信号のカウント値に応じて、主軸の移動量に対応させて工具の位置データ等を記憶させたテーブルデータである。このため、ある工具番号について位置データが記述された最初のレコードにおける基準タイミング信号のカウント値がその工具番号による加工の開始時間に相当し、次の工具番号に切り替わる直前のレコードにおける基準タイミング信号のカウント値が加工の終了時間に相当する。したがって、電子カム加工時間算出部34’は、基準タイミング信号のカウント値と、基準タイミング信号のカウント周期とから、電子カムデータによる工具番号毎の加工時間を算出することができる。   That is, as shown in FIG. 3, the electronic cam data is table data in which tool position data and the like are stored in accordance with the amount of movement of the spindle in accordance with the count value of the reference timing signal. For this reason, the count value of the reference timing signal in the first record in which position data is described for a certain tool number corresponds to the machining start time by that tool number, and the reference timing signal in the record immediately before switching to the next tool number. The count value corresponds to the machining end time. Therefore, the electronic cam machining time calculation unit 34 'can calculate the machining time for each tool number based on the electronic cam data from the count value of the reference timing signal and the count cycle of the reference timing signal.

表示制御部35’は、図8に示すように、NCプログラムによるサイクルタイムと、電子カムデータによるサイクルタイムと、NCプログラムの電子カム化による短縮時間および短縮率とを表示部30の画面に同時に表示する。さらに、表示制御部35’は、NCプログラムによる工具番号毎の加工時間と、電子カムデータによる工具番号毎の加工時間とを表示部30の画面に同時に表示する。   As shown in FIG. 8, the display control unit 35 ′ simultaneously displays the cycle time by the NC program, the cycle time by the electronic cam data, and the shortening time and the shortening rate by converting the NC program into the electronic cam on the screen of the display unit 30. indicate. Further, the display control unit 35 ′ simultaneously displays the machining time for each tool number by the NC program and the machining time for each tool number by the electronic cam data on the screen of the display unit 30.

なお、ここではNCプログラムによる加工時間および電子カムデータによる加工時間として、サイクルタイムを工具の呼出指令毎(工具番号毎)に分けて測定する例について説明したが、本発明はこれに限定されない。例えば、サイクルタイムを系統間の待ち合わせ指令の実行完了毎に分けて測定するようにしても良い。   Here, an example has been described in which the cycle time is measured separately for each tool call command (for each tool number) as the machining time by the NC program and the machining time by the electronic cam data, but the present invention is not limited to this. For example, the cycle time may be measured separately for each completion of the waiting command between the systems.

この場合、NC加工時間測定部33’は、NCプログラムによる加工時間として、サイクルタイムを測定するとともに、サイクルタイムを系統間の待ち合わせ指令の実行完了毎に分けて測定する。NCプログラムによる待ち合わせ指令の実行完了毎の加工時間は、NCプログラムによる工具番号毎の加工時間と同様にして測定する。すなわち、工具呼出指令を検知する度に第2のタイマ17をゼロからカウントアップしていく代わりに、複数の系統における対応する待ち合わせ指令の中で最後に読み込まれた待ち合わせ指令の実行を検知する度、すなわち、待ち合わせが完了する度に第2のタイマ17をゼロからカウントアップしていけばよい。   In this case, the NC machining time measurement unit 33 'measures the cycle time as machining time by the NC program, and measures the cycle time separately for each completion of the waiting command between the systems. The machining time for each completion of execution of the waiting command by the NC program is measured in the same manner as the machining time for each tool number by the NC program. That is, instead of counting up the second timer 17 from zero each time a tool call command is detected, every time the execution of a wait command read last among the corresponding wait commands in a plurality of systems is detected. That is, the second timer 17 may be counted up from zero every time waiting is completed.

また、電子カム加工時間算出部34’は、電子カムデータによる加工時間として、サイクルタイムを測定するとともに、当該サイクルタイムを待ち合わせ完了毎に分けて算出する。電子カムデータによる待ち合わせ完了毎の加工時間も、電子カムデータによる工具番号毎の加工時間と同様にして算出することが可能である。なお、図3に示した電子カムデータの構成例において、系統間の待ち合わせ完了タイミングを表す部分のデータは、サイクルタイムを待ち合わせ完了毎に分けて算出する場合にのみ必要であり、サイクルタイムを待ち合わせ完了毎に分けて算出しない場合には必ずしも必要でない。   The electronic cam machining time calculation unit 34 'measures the cycle time as the machining time based on the electronic cam data, and calculates the cycle time separately for each waiting completion. The machining time for each completion of waiting by the electronic cam data can be calculated in the same manner as the machining time for each tool number by the electronic cam data. In the configuration example of the electronic cam data shown in FIG. 3, the data of the portion indicating the waiting completion timing between the systems is necessary only when the cycle time is calculated separately for each waiting completion, and the waiting time is waited for. This is not always necessary if it is not calculated separately for each completion.

また、表示制御部35’は、図9に示すように、NCプログラムによるサイクルタイムと、電子カムデータによるサイクルタイムと、NCプログラムの電子カム化による短縮時間および短縮率とを表示部30の画面に同時に表示する。さらに、表示制御部35’は、NCプログラムによる待ち合わせ指令の実行完了毎の加工時間と、電子カムデータによる待ち合わせ完了毎の加工時間とを表示部30の画面に同時に表示する。   Further, as shown in FIG. 9, the display control unit 35 ′ displays the cycle time by the NC program, the cycle time by the electronic cam data, and the shortening time and the shortening rate by converting the NC program into the electronic cam. Are displayed simultaneously. Further, the display control unit 35 ′ simultaneously displays on the screen of the display unit 30 the machining time for each completion of the waiting command by the NC program and the machining time for each waiting completion by the electronic cam data.

以上詳しく説明したように、第2の実施形態では、NCプログラムによる加工時間として、サイクルタイムを工具の呼出指令毎または系統間の待ち合わせ指令の実行完了毎に分けて測定する。また、電子カムデータによる加工時間として、サイクルタイムを工具の呼出指令毎または系統間の待ち合わせ完了毎に分けて算出する。そして、NCプログラムによる工具呼出指令毎または系統間の待ち合わせ指令の実行完了毎の加工時間と、電子カムデータによる工具呼出指令毎または系統間の待ち合わせ完了毎の加工時間とを同時に表示部30に表示するようにしている。   As described above in detail, in the second embodiment, as the machining time by the NC program, the cycle time is measured separately for each tool call command or for each completion of the waiting command between systems. Further, as the machining time based on the electronic cam data, the cycle time is calculated separately for each tool call command or each waiting time between systems. Then, the processing time for each completion of execution of the tool call command by the NC program or the waiting command between systems and the processing time for each tool call command by the electronic cam data or for completion of waiting between systems are simultaneously displayed on the display unit 30. Like to do.

このように構成した第2の実施形態によれば、オペレータは図8のように表示された画面を見て、どの工具で加工しているときにどの程度の加工時間が必要なのか、電子カム化によってどのくらい加工時間が短くなるのかを一見して確認することができる。また、オペレータは図9のように表示された画面を見て、どの待ち合わせ間にどの程度の加工時間が必要なのか、電子カム化によってどのくらい加工時間が短くなるのかを一見して確認することができる。   According to the second embodiment configured as described above, the operator looks at the screen displayed as shown in FIG. 8 to determine how much machining time is required when machining with an electronic cam. It is possible to confirm at a glance how much the processing time is shortened by the conversion. In addition, the operator can check the screen displayed as shown in FIG. 9 to confirm at a glance how much processing time is required between the waiting periods and how much the processing time is shortened by using the electronic cam. it can.

これにより、電子カムデータによる加工時間を確認してオペレータがNCプログラムを修正する際に、NCプログラムのどこを修正すればよいかの予想が立てやすくなる。このため、NCプログラムの修正を効率的に行うことができ、その分だけ工数を少なくすることができる。したがって、所望のサイクルタイムを有する電子カムデータを、より少ない工数でNCプログラムから生成することができるようになる。   As a result, when the operator corrects the NC program by checking the machining time based on the electronic cam data, it is easy to predict where the NC program should be corrected. Therefore, the NC program can be corrected efficiently, and the man-hour can be reduced accordingly. Therefore, electronic cam data having a desired cycle time can be generated from the NC program with less man-hours.

なお、上記第1および第2の実施形態では、可動部60が3系統の機構部を有する構成について説明したが、本発明はこれに限定されない。例えば、可動部60が第1系統および第2系統の2系統を有する構成であっても良い。
また、上記第1および第2の実施形態では、工作機械100がPC20を内部装置として備える構成について説明したが、PC20は工作機械100の外部装置であっても良い。
In the first and second embodiments, the configuration in which the movable unit 60 has three mechanisms is described, but the present invention is not limited to this. For example, the movable part 60 may be configured to have two systems of a first system and a second system.
In the first and second embodiments, the configuration in which the machine tool 100 includes the PC 20 as an internal device has been described. However, the PC 20 may be an external device of the machine tool 100.

また、上記第1および第2の実施形態では、NCプログラムによるサイクルタイム、電子カムデータによるサイクルタイム、電子カム化による短縮時間および短縮率を全て同時に表示する例について説明したが、本発明はこれに限定されない。例えば、NCプログラムによるサイクルタイムと電子カムデータによるサイクルタイムとの2つだけを同時に表示するようにしても良い。または、電子カム化による短縮時間だけを表示するようにしても良い。または、電子カム化による短縮率だけを表示するようにしても良い。ただし、NCプログラムによるサイクルタイムと電子カムデータによるサイクルタイムについては、表示するのが好ましい。サイクルタイムが期待値の範囲内にあるかどうかを確認するために、サイクルタイムの絶対値を表示するのが好ましいからである。   In the first and second embodiments, the example in which the cycle time by the NC program, the cycle time by the electronic cam data, the shortening time and the shortening rate by the electronic cam conversion are all displayed at the same time has been described. It is not limited to. For example, only two of the cycle time based on the NC program and the cycle time based on the electronic cam data may be displayed simultaneously. Or you may make it display only the shortening time by electronic cam conversion. Or you may make it display only the shortening rate by electronic cam conversion. However, it is preferable to display the cycle time by the NC program and the cycle time by the electronic cam data. This is because it is preferable to display the absolute value of the cycle time in order to confirm whether or not the cycle time is within the range of the expected value.

また、上記第2の実施形態では、図8のように工具呼出指令毎の加工時間を表示するか、図9のように待ち合わせ毎の加工時間を表示するかの何れか一方について説明したが、本発明はこれに限定されない。例えば、工具呼出指令毎の加工時間と待ち合わせ毎の加工時間とを同時に測定および算出し、工具呼出指令毎の加工時間と待ち合わせ毎の加工時間との両方を同時に表示するようにしても良い。さらに、工具呼出指令毎の加工時間と待ち合わせ毎の加工時間とを切り替えて表示できるようにしても良い。   In the second embodiment, either one of the processing time for each tool call command is displayed as shown in FIG. 8 or the processing time for each waiting time is displayed as shown in FIG. The present invention is not limited to this. For example, the machining time for each tool calling command and the machining time for each waiting time may be measured and calculated simultaneously, and both the machining time for each tool calling command and the machining time for each waiting time may be displayed simultaneously. Furthermore, the machining time for each tool call command and the machining time for each waiting time may be switched and displayed.

また、上記第2の実施形態では、図8および図9に示したように、工具呼出指令毎の加工時間および待ち合わせ毎の加工時間については、その絶対値を表示するのみとしているが、本発明はこれに限定されない。例えば、工具呼出指令毎の加工時間や待ち合わせ毎の加工時間についてもサイクルタイムと同様に、電子カム化による短縮時間や時間の短縮率を合わせて表示するようにしても良い。   In the second embodiment, as shown in FIGS. 8 and 9, only the absolute values of the machining time for each tool call command and the machining time for each waiting time are displayed. Is not limited to this. For example, the machining time for each tool call command and the machining time for each waiting time may be displayed together with the shortening time and the time shortening rate due to the electronic cam as well as the cycle time.

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

10 NC装置
11 CPU
12 RAM
12a NCプログラム記憶部
12b 電子カムデータ記憶部
13 ROM
13a NC加工時間測定プログラム記憶部
13b 電子カム加工時間算出プログラム記憶部
13c 表示制御プログラム記憶部
20 PC
21 CPU
22 RAM
22a データ変換プログラム記憶部
30 表示部
31 NCプログラム実行部
32 データ変換部
33,33’ NC加工時間測定部
34,34’ 電子カム加工時間算出部
35,35’ 表示制御部
100 工作機械
10 NC device 11 CPU
12 RAM
12a NC program storage unit 12b Electronic cam data storage unit 13 ROM
13a NC machining time measurement program storage unit 13b Electronic cam machining time calculation program storage unit 13c Display control program storage unit 20 PC
21 CPU
22 RAM
22a Data conversion program storage unit 30 Display unit 31 NC program execution unit 32 Data conversion unit 33, 33 'NC machining time measurement unit 34, 34' Electronic cam machining time calculation unit 35, 35 'Display control unit 100 Machine tool

Claims (5)

NCプログラムによる被加工物の加工時間を測定するNC加工時間測定部と、
上記NCプログラムを電子カムデータに変換するデータ変換部と、
上記データ変換部により変換された上記電子カムデータをもとに、上記電子カムデータによる被加工物の加工時間を算出する電子カム加工時間算出部と、
上記NC加工時間測定部により測定された上記NCプログラムによる加工時間および上記電子カム加工時間算出部により算出された上記電子カムデータによる加工時間を同時に表示する表示制御部とを備えたことを特徴とする工作機械。
NC machining time measuring unit for measuring the machining time of the workpiece by NC program;
A data converter for converting the NC program into electronic cam data;
Based on the electronic cam data converted by the data conversion unit, an electronic cam processing time calculation unit that calculates a processing time of the workpiece by the electronic cam data;
A display control unit for simultaneously displaying the machining time by the NC program measured by the NC machining time measurement unit and the machining time by the electronic cam data calculated by the electronic cam machining time calculation unit; Machine tool to do.
上記表示制御部は、上記NCプログラムによる加工時間および上記電子カムデータによる加工時間に代えて、またはこれらの加工時間に加えて、上記NCプログラムによる加工時間と上記電子カムデータによる加工時間との差分を表示することを特徴とする請求項1に記載の工作機械。 The display control unit replaces the machining time by the NC program and the machining time by the electronic cam data, or in addition to these machining times, the difference between the machining time by the NC program and the machining time by the electronic cam data. The machine tool according to claim 1, wherein the machine tool is displayed. 上記NC加工時間測定部は、上記NCプログラムによる加工時間として1加工サイクルの加工時間を測定し、
上記電子カム加工時間算出部は、上記電子カムデータによる加工時間として1加工サイクルの加工時間を算出することを特徴とする請求項1または2に記載の工作機械。
The NC machining time measuring unit measures the machining time of one machining cycle as machining time by the NC program,
The machine tool according to claim 1, wherein the electronic cam machining time calculation unit calculates a machining time of one machining cycle as a machining time based on the electronic cam data.
上記NC加工時間測定部は、上記NCプログラムによる加工時間として1加工サイクルの加工時間を工具の呼出指令毎または系統間の待ち合わせ毎に分けて測定し、
上記電子カム加工時間算出部は、上記電子カムデータによる加工時間として1加工サイクルの加工時間を工具の呼出指令毎または系統間の待ち合わせ毎に分けて算出することを特徴とする請求項1または2に記載の工作機械。
The NC machining time measuring unit measures the machining time of one machining cycle as the machining time by the NC program separately for each tool call command or for each waiting time between systems,
3. The electronic cam machining time calculation unit calculates a machining time of one machining cycle as a machining time based on the electronic cam data separately for each tool call command or for each waiting time between systems. The machine tool described in 1.
NCプログラムによる被加工物の加工時間を測定する第1のステップと、
上記NCプログラムを電子カムデータに変換する第2のステップと、
上記電子カムデータをもとに、上記電子カムデータによる被加工物の加工時間を算出する第3のステップと、
上記第1のステップで測定された上記NCプログラムによる加工時間および上記第3のステップで算出された上記電子カムデータによる加工時間を同時に表示する第4のステップとを有することを特徴とする工作機械の動作時間提示方法。
A first step of measuring the machining time of the workpiece by the NC program;
A second step of converting the NC program into electronic cam data;
A third step of calculating a processing time of the workpiece based on the electronic cam data based on the electronic cam data;
A machine tool comprising: a fourth step of simultaneously displaying the machining time measured by the NC program in the first step and the machining time calculated by the electronic cam data calculated in the third step. How to present the operating time.
JP2009016996A 2009-01-28 2009-01-28 Machine tool, and method for presenting operating time of the same Pending JP2010176309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009016996A JP2010176309A (en) 2009-01-28 2009-01-28 Machine tool, and method for presenting operating time of the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009016996A JP2010176309A (en) 2009-01-28 2009-01-28 Machine tool, and method for presenting operating time of the same

Publications (1)

Publication Number Publication Date
JP2010176309A true JP2010176309A (en) 2010-08-12

Family

ID=42707246

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009016996A Pending JP2010176309A (en) 2009-01-28 2009-01-28 Machine tool, and method for presenting operating time of the same

Country Status (1)

Country Link
JP (1) JP2010176309A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013039645A (en) * 2011-08-18 2013-02-28 Okuma Corp Rotation speed display device
JP2017068680A (en) * 2015-09-30 2017-04-06 株式会社牧野フライス製作所 Control device of machine tool
JP2017126199A (en) * 2016-01-14 2017-07-20 ファナック株式会社 Numerical controller having block time display means

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013039645A (en) * 2011-08-18 2013-02-28 Okuma Corp Rotation speed display device
JP2017068680A (en) * 2015-09-30 2017-04-06 株式会社牧野フライス製作所 Control device of machine tool
JP2017126199A (en) * 2016-01-14 2017-07-20 ファナック株式会社 Numerical controller having block time display means
CN106970592A (en) * 2016-01-14 2017-07-21 发那科株式会社 The numerical control device of time display function is performed with program block

Similar Documents

Publication Publication Date Title
JP4920785B2 (en) Numerical control method and apparatus
JP6150903B2 (en) Machining information management device and tool path generation device
US10775768B2 (en) Machine control program creating device
JP6335925B2 (en) Machine tool controller
JP3904945B2 (en) Optimal data conversion method and numerical control machine tool for NC program
JP2008112269A (en) Machining simulation system
JP2012101285A (en) Tool changer of machine tool
CN104423317A (en) Data acquisition device for acquiring cause of stoppage of drive axis and information relating thereto
US20040210868A1 (en) Icons and icon representation of process steps for graphic visualization of task-oriented steps
JP2010176309A (en) Machine tool, and method for presenting operating time of the same
KR101468751B1 (en) Numerical control system having graphic-based user interface
JP6638979B2 (en) Numerical control device with machining process management function and machining process management program
JP2021096561A (en) Control device, measurement system, and measurement method
JP2009122852A (en) Numerical controller for storing operating history during path table operation
US6829518B2 (en) Numerical control apparatus
JP2008226112A (en) Numerically controlled apparatus
JP2008071015A (en) Numerical controller
JP5184533B2 (en) Controller for automatic control of machining parameters with full integration of gauge system into machine control
JP4112433B2 (en) Numerical control device for machine tool and numerical control method for machine tool
JP2017157194A (en) Numerical controller for machine tool
JP2011039701A (en) Numerical control device, method and program
WO2023067699A1 (en) Machined surface estimation device and computer-readable storage medium
US20240207024A1 (en) Apparatus and method for processing dental prosthesis
JP2002073126A (en) Method and device for estimating remaining machining time
JP2010003214A (en) Control method for machining process