JP4656432B2 - Numerically controlled machine tool and interrupt machining method - Google Patents

Numerically controlled machine tool and interrupt machining method Download PDF

Info

Publication number
JP4656432B2
JP4656432B2 JP2006200230A JP2006200230A JP4656432B2 JP 4656432 B2 JP4656432 B2 JP 4656432B2 JP 2006200230 A JP2006200230 A JP 2006200230A JP 2006200230 A JP2006200230 A JP 2006200230A JP 4656432 B2 JP4656432 B2 JP 4656432B2
Authority
JP
Japan
Prior art keywords
machining
processing
program
interrupt
thread
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
JP2006200230A
Other languages
Japanese (ja)
Other versions
JP2008027261A (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.)
Sodick Co Ltd
Original Assignee
Sodick 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 Sodick Co Ltd filed Critical Sodick Co Ltd
Priority to JP2006200230A priority Critical patent/JP4656432B2/en
Publication of JP2008027261A publication Critical patent/JP2008027261A/en
Application granted granted Critical
Publication of JP4656432B2 publication Critical patent/JP4656432B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、加工プログラムの実行中に割込み加工の要求があった場合に、割込み加工を行なって、割込み加工が終了したときに加工状態を元に戻し、中断した加工を再開する数値制御工作機械および割込み加工方法に関する。   The present invention provides a numerically controlled machine tool for performing interrupt machining when interrupt machining is requested during execution of a machining program, returning the machining state to the original state when interrupt machining is completed, and restarting the interrupted machining And an interrupt processing method.

数値制御工作機械では、加工プログラム(NCプログラム)に従い加工が実行されるが、しばしば加工プログラムに従う加工の途中でその加工を中断して別の加工を行なう要求がある。このような加工を割込み加工という。割込み加工が行なわれた後は、中断した加工を再開させる必要がある。特許文献1に示されるように、割込み加工が発生すると、NCの状態と中断位置を記憶させておき、割込み加工の終了後にNCの状態と中断位置を復帰させる。   In a numerically controlled machine tool, machining is performed according to a machining program (NC program), but there is often a demand to interrupt the machining in the middle of machining according to the machining program and perform another machining. Such processing is called interrupt processing. After interrupted machining is performed, it is necessary to resume the suspended machining. As shown in Patent Document 1, when interrupt processing occurs, the NC state and the interrupt position are stored, and after the interrupt processing is completed, the NC state and interrupt position are restored.

割込み加工によって中断した加工を再開させるためには、中断した箇所から加工プログラムを解読させ実行させなければならない。そこで、オペレータが加工プログラムを書き換えて、修正された加工プログラムによって割込み加工前に加工が行なわれた部分をスキップさせている。したがって、割込み加工を行なったときは、オペレータが加工プログラムを修正しなければならず、手間と時間を要する。   In order to resume machining interrupted by interrupt machining, the machining program must be decoded and executed from the interrupted location. Therefore, the operator rewrites the machining program, and skips the portion that was machined before the interrupt machining by the modified machining program. Therefore, when interrupt machining is performed, the operator must correct the machining program, which requires labor and time.

また、加工を再開することが不都合な箇所で加工を中断してしまい、加工が再開できないことがある。例えば、ワイヤカット放電加工の仕上げ加工の場合は、割込み加工の要求があったときに割込み加工後にワイヤ電極が切断された位置に復帰する、いわゆる断線復帰を行うと加工部分にスジ等が発生するため、このような位置で加工を中断することは不都合である。   In addition, the machining may be interrupted at a place where it is inconvenient to resume the machining, and the machining may not be resumed. For example, in the case of finish machining by wire-cut electric discharge machining, when interrupt machining is requested, the wire electrode returns to the position where it was cut after interruption machining, so-called disconnection restoration causes streaks or the like in the machining portion Therefore, it is inconvenient to interrupt processing at such a position.

特許文献2は、割込み加工によって加工を中断させたとき、割込み可能な指令の実行を中断し、加工プログラム中の先頭の加工送り指令から中断の実行直前に実行された加工送りの終了までをスキップするように加工プログラムを書き換えた加工プログラムのテンポラリファイルを作成し、加工を再開するときは、テンポラリファイルを呼び出して加工プログラムの先頭から実行するようにしたNC加工装置を開示している。   In Patent Document 2, when machining is interrupted by interrupt machining, execution of an interruptable command is interrupted, and from the first machining feed command in the machining program to the end of machining feed executed immediately before execution of the interruption is skipped. Thus, an NC machining apparatus is disclosed in which a temporary file of a machining program in which the machining program is rewritten is created, and when the machining is resumed, the temporary file is called and executed from the beginning of the machining program.

特許第3034270号公報Japanese Patent No. 3034270 特開2000−293212号公報JP 2000-293212 A

しかしながら、特許文献2に開示されるNC加工装置の場合、テンポラリファイルを作成する必要がある。そして、加工プログラムのメインプログラムからテンポラリファイルを作成するので、メインプログラムに早送り指令がないと割込み加工処理ができない。また、サブプログラムで加工しているときはメインプログラムに戻るまで割込み加工処理できない。また、メインプログラムの途中でいわゆるミラー加工や回転を行なう指令が含まれている場合、加工プログラムがスキップされることによって元の指令位置と異なるところに移動してしまい中断した加工を復帰させることができない。そのため、実質的に割込み加工ができないことがあったり、割込み加工を実行するまでの待ち時間が長くかかる。   However, in the case of the NC processing apparatus disclosed in Patent Document 2, it is necessary to create a temporary file. Since a temporary file is created from the main program of the machining program, interrupt machining processing cannot be performed unless there is a fast-forward command in the main program. Also, when machining with a subprogram, interrupt machining cannot be performed until the main program is returned. Also, if a command to perform so-called mirror machining or rotation is included in the middle of the main program, the machining program is skipped, so that it moves to a different location from the original command position, and the interrupted machining can be restored. Can not. For this reason, there is a case where interrupt processing cannot be performed substantially, and a long waiting time is required until interrupt processing is executed.

特に、ワイヤカット放電加工の場合は、割込み加工の要求があったときに割込み加工後に断線復帰を行うことができない。そのため、断線復帰できる箇所で割込み加工をすることができず、割込み加工が実行できる位置まで加工しなければならないので、割込み加工を実行するまでの待ち時間が長くかかる。   In particular, in the case of wire-cut electric discharge machining, disconnection cannot be restored after interrupt machining when interrupt machining is requested. For this reason, interrupt processing cannot be performed at a location where disconnection recovery can be performed, and processing must be performed to a position where interrupt processing can be performed. Therefore, a long waiting time is required until interrupt processing is performed.

本発明は、上記課題に鑑みて、加工プログラムの実行中に割込み加工の要求があった場合に、より確実に割込み加工を行なうことができ、割込み加工の待ち時間を短縮する数値制御工作機械および割込み加工方法を提供することを目的とする。   In view of the above-described problems, the present invention provides a numerically controlled machine tool that can perform interrupt processing more reliably when interrupt processing is requested during execution of a processing program, and shortens the waiting time for interrupt processing. An object is to provide an interrupt processing method.

本発明の数値制御工作機械は、加工プログラムの実行中に割込み加工の要求があった場合に、割込み加工が可能なプログラムブロックまで前記加工プログラムを実行して加工を中断する加工中断手段と、前記加工プログラムを解読し実行している加工処理スレッドを待避させメモリに記録された加工プログラムの情報を含む加工プログラムを解読したときのNC装置の状態を示す記録データと前記加工処理スレッドのプログラムをそのまま現在の状態で記憶手段に記憶させる待避手段と、割込み加工の加工プログラムを解読し実行する加工処理スレッドを起動して割込み加工を行なう割込み処理手段と、割込み加工が終了したときに待避手段で前記記憶手段に記憶させておいた前記待避されていた前記記録データと前記待避されていた加工処理スレッドのプログラムをそのまま読み出して前記待避されていた加工処理スレッドを復帰させ前記待避されていた加工処理スレッドに従い加工状態が元に戻された後中断していた加工を再開させる復帰手段と、を有する。 The numerically controlled machine tool of the present invention, when there is a request for interrupt machining during execution of a machining program, machining interrupting means for interrupting machining by executing the machining program up to a program block capable of interrupt machining, as recording data indicating the state of the NC device when decrypting the machining program machining program is retracted the processing thread decrypted running including information processing program recorded in the memory and the processing thread programs and retraction means for storing in storage means the current status, the interrupt processing means for performing interrupt processing to start the processing thread that executes decodes the interrupt processing of the machining program, said at shunting means when the interrupt processing is completed The saved recording data stored in the storage means and the saved processing Having a return means for resuming the interrupted have been processed after thread machining state according processing thread program has been directly read by the retracted to return the processing thread that has been said retracted in is returned to the original .

本発明の割込み加工方法は、加工プログラムの実行中に割込み加工の要求があった場合に、割込み加工が可能なプログラムブロックまで前記加工プログラムを実行して加工を中断し、前記加工プログラムを解読し実行している加工処理スレッドを待避させてメモリに記録された加工プログラムの情報を含むNC装置の状態を示す記録データと前記加工処理スレッドのプログラムをそのまま現在の状態で記憶手段に記憶させ、割込み加工の加工プログラムを解読し実行する加工処理スレッドを起動して割込み加工を行ない、割込み加工が終了したときに待避手段で前記記憶手段に記憶させておいた前記待避されていた前記記録データと前記待避されていた加工処理スレッドのプログラムをそのまま読み出して前記待避されていた加工処理スレッドを復帰させて前記待避されていた加工処理スレッドに従い加工状態を元に戻し中断していた加工を再開させることを特徴とする。 In the interrupt machining method of the present invention, when there is a request for interrupt machining during execution of a machining program, the machining program is executed up to a program block capable of interrupt machining, the machining is interrupted, and the machining program is decoded. Recording data indicating the state of the NC device including information on the machining program recorded in the memory by saving the machining thread being executed and the program of the machining thread are stored in the storage unit as they are in the current state, and an interrupt is made. The interrupt processing is performed by starting a processing thread that decodes and executes a processing program for processing, and when the interrupt processing is completed, the saved recording data stored in the storage means by the saving means and the saving data the retracted once was processing thread program has been the retracted reads as processing threads It was allowed to return, characterized in that to resume the processing that has been returned interrupted based on the machining status in accordance processing thread that has been said retracted.

また、本発明の割込み加工方法は、加工プログラムの実行中に割込み加工の要求があった場合に、解読したプログラムブロックにおいてワイヤカット放電加工における断線復帰が可能であるときはそのプログラムブロックの先頭の位置で加工を中断し、断線復帰が不可能であるときは割込み加工が可能なプログラムブロックまで前記加工プログラムを実行して加工を中断し、前記加工プログラムを解読し実行している加工処理スレッドを待避させてメモリに記録された加工プログラムの情報を含むNC装置の状態を示す記録データと前記加工処理スレッドのプログラムをそのまま現在の状態で記憶手段に記憶させ、割込み加工の加工プログラムを解読し実行する加工処理スレッドを起動して割込み加工を行ない、割込み加工が終了したときに待避手段で前記記憶手段に記憶させておいた前記待避されていた前記記録データと前記待避されていた加工処理スレッドのプログラムをそのまま読み出して前記待避されていた加工処理スレッドを復帰させて前記待避されていた加工処理スレッドに従い加工状態を元に戻し加工を再開させることを特徴とする。 In addition, the interrupt machining method of the present invention, when there is a request for interrupt machining during the execution of a machining program, when the broken program block can recover from the disconnection in the wire cut electric discharge machining, When the machining is interrupted at the position, and it is impossible to recover from the disconnection, the machining program is interrupted by executing the machining program up to the program block capable of interrupting machining, and the machining processing thread that decodes and executes the machining program is executed. The recorded data indicating the status of the NC device including the machining program information saved in the memory and the machining thread program are stored in the storage means as they are, and the machining program for interrupt machining is decoded and executed. When the interrupt processing is completed by starting the processing thread to perform interrupt processing The processing thread the recording data and the retracted that had been processed threaded program that has been said retracted program is stored in the storage means has been said retracted reading it in avoidance means is returned is the retracted According to the processing thread that has been used, the processing state is restored to resume the processing state.

割込み加工の要求があったときに、割込み加工可能な箇所もしくは断線復帰可能な箇所で加工を中断させ、加工プログラムを解読し実行している加工処理スレッドをそのまま待避し、割込み加工用の加工処理スレッドを新たに起動して割込み加工を終了後に、待避していた加工処理スレッドを復帰させるようにしたから、適切な箇所で割込み加工を行なうとともに、テンポラリファイルを作成する必要がなく、早送り指令がない場合、サブプログラムの途中である場合などでも割込み加工が可能となり、割込み加工の待ち時間が短縮される。   When there is a request for interrupt processing, processing is interrupted at a location where interrupt processing can be performed or a location where disconnection can be restored, and the processing thread for decoding and executing the processing program is saved as it is, processing processing for interrupt processing Since the processing thread that has been saved is restored after interrupt processing is started by starting a new thread, interrupt processing is performed at an appropriate location, and there is no need to create a temporary file. If there is no interrupt processing, interrupt processing is possible even in the middle of a subprogram, and the waiting time for interrupt processing is reduced.

また、加工処理スレッドを待避して加工処理スレッドのメモリの記録データと加工処理スレッドのプログラムをそのまま記憶させるので、割込みが発生したときのミラーや回転等の情報も記録されており、加工プログラムの途中でミラー加工や回転等の指令が含まれていても加工が再開できる。特に、ワイヤカット放電加工の場合、断線復帰待ち状態が記録されており、断線復帰位置に戻すことができるので、断線復帰可能な場所で割込み加工を行なうことができ、割込み処理の待ち時間が短縮される。   Also, since the machining thread is saved and the recorded data in the machining thread memory and the machining thread program are stored as they are, information such as the mirror and rotation when an interrupt occurs is also recorded. Machining can be resumed even if commands such as mirror machining and rotation are included on the way. In particular, in the case of wire-cut electrical discharge machining, the disconnection return waiting state is recorded and can be returned to the disconnection return position. Is done.

図1は、数値制御工作機械の数値制御装置の一部分を示す。図2は、本発明の割込み加工方法としてワイヤカット放電加工方法における割込み加工方法を示す。図3は、図2に示される割込み処理方法のうち、特に割込み処理の部分を示す。図4は、ワイヤカット放電加工の加工例を示す。   FIG. 1 shows a part of a numerical control device of a numerically controlled machine tool. FIG. 2 shows an interrupt processing method in the wire cut electric discharge processing method as the interrupt processing method of the present invention. FIG. 3 particularly shows an interrupt processing portion of the interrupt processing method shown in FIG. FIG. 4 shows a machining example of wire cut electric discharge machining.

加工中断手段1は、加工プログラムの実行中に割込み加工の要求があった場合に、割込み加工が可能なプログラムブロック(以下、単にブロックという)まで加工プログラムを実行してから加工を中断させる。このため、割込み加工後に加工を再開するとき、加工の再開に不都合がある位置で中断させることがない。   When there is a request for interrupt machining during execution of the machining program, the machining interrupting means 1 executes the machining program up to a program block (hereinafter simply referred to as a block) capable of interrupt machining and then interrupts the machining. For this reason, when the machining is resumed after the interruption machining, the machining is not interrupted at a position that is inconvenient for the machining resume.

実施の形態の加工中断手段1は、加工プログラムの実行中に割込み加工の要求があった場合に、次に実行される解読されたブロックにおいて断線復帰が可能であるときは、そのブロックの先頭の断線復帰が可能な箇所である位置で加工を中断させる。また、次に実行される解読されたブロックにおいて断線復帰が不可能であるときは割込み加工が可能なブロックまで加工プログラムを実行してから加工を中断させる。   The processing interruption means 1 according to the embodiment, when there is a request for interrupt processing during execution of the processing program, can perform disconnection recovery in the decoded block to be executed next, the head of the block Machining is interrupted at a position where disconnection can be restored. Further, when it is impossible to restore the disconnection in the decoded block to be executed next, the machining program is executed up to the block capable of interrupt machining, and then machining is interrupted.

待避手段2は、加工中断手段1によって加工が中断されたとき、加工プログラムを解読し実行している加工処理スレッドを待避させる。スレッドは、1つの起動中のタスクから起動できるより小さいモジュールである。加工処理スレッドは、加工プログラムを解読し実行するスレッドである。待避手段2は、複数の加工処理スレッドを待避させることができる。   When the machining is interrupted by the machining interruption unit 1, the saving unit 2 saves the machining processing thread that decodes and executes the machining program. A thread is a smaller module that can be started from one active task. The processing thread is a thread that decodes and executes the processing program. The saving means 2 can save a plurality of processing threads.

加工処理スレッドは、実行中、加工プログラムの情報を含む加工プログラムを解読したときのNC装置の状態を示す全ての情報をメモリに記録している。加工処理スレッドを待避することによって、メモリに記憶させている加工プログラムの情報を含む加工プログラムを解読したときのNC装置の状態を示す記録データと加工処理スレッドのプログラムがそのまま図示しない記憶手段に記憶される。NC装置の状態を示す情報は、例えば、位置情報、加工条件、ミラーや回転に関する情報、断線復帰待ち状態であるかどうかなどの加工状態、解読している加工プログラムである。   The machining thread stores all information indicating the state of the NC apparatus in the memory when the machining program including the machining program information is decoded during execution. By saving the machining thread, the recording data indicating the state of the NC apparatus when the machining program including the machining program information stored in the memory is decoded and the machining thread program are stored as they are in the storage means (not shown). Is done. The information indicating the state of the NC device is, for example, position information, processing conditions, information on mirrors and rotation, a processing state such as whether or not waiting for disconnection, and a processing program being decoded.

割込み処理手段3は、待避手段2によって加工処理スレッドが待避され割込み加工を行なうとき、割込み加工の加工プログラムを解読し実行する加工処理スレッドを起動して割込み加工を行なわせる。割込み加工の加工処理スレッドは、割込み加工の加工プログラムを解読し実行するスレッドである。   When the processing thread is saved by the evacuation means 2 and the interrupt processing is performed, the interrupt processing means 3 activates the processing thread that decodes and executes the processing program for interrupt processing to perform the interrupt processing. The interrupt processing thread is a thread that decodes and executes an interrupt processing program.

復帰手段4は、割込み加工が終了したときに待避手段2で待避されていた加工処理スレッドを復帰させて加工状態が元に戻された後中断していた加工を再開させる。復帰手段4は、記憶手段に記憶されている加工処理スレッドの記録データとプログラムをそのまま読み出して再起動させる。復帰手段4は、加工を中断したときに待避されていた加工処理スレッドの記録データとプログラムに従い加工状態が元に戻されたら、加工プログラムの中断した箇所から加工プログラムを実行させ加工を再開する。   The return means 4 returns the machining thread that has been saved by the save means 2 when the interrupting machining is completed, and resumes the machining that has been suspended after the machining state is restored. The return means 4 reads the processing thread recorded data and the program stored in the storage means as they are and restarts them. When the machining state is restored according to the recording data and program of the machining processing thread saved when machining is interrupted, the return means 4 executes the machining program from the interrupted location of the machining program and resumes machining.

次に本発明の割込み加工方法をワイヤカット放電加工を例に説明する。最初に加工処理スレッドを起動して加工プログラムを1ブロック解読する(S1)。加工処理スレッドは、加工プログラムの情報と加工プログラムを解読したときのNC装置の状態を示す情報など加工に必要な情報をメモリに記録している。   Next, the interrupt machining method of the present invention will be described taking wire cut electric discharge machining as an example. First, the machining thread is activated to decode one block of the machining program (S1). The machining thread stores information necessary for machining, such as machining program information and information indicating the state of the NC device when the machining program is decoded.

解読されたブロックが加工を終了する指令であれば、加工を終了する(S2)。解読されたブロックが加工を終了する指令でないときは、起動中の加工処理スレッドに従いその1ブロックを実行処理する(S8)。そして、次のブロックを解読する(S1)。   If the decoded block is an instruction to end the processing, the processing ends (S2). If the decoded block is not a command to end the processing, the one block is executed according to the active processing thread (S8). Then, the next block is decoded (S1).

オペレータから割込み加工の要求があったときは(S3)、解読されたブロックにおいて断線復帰が可能であるかどうかをみる(S4)。断線復帰は、ワイヤカット放電加工においてワイヤ電極が加工の途中で切断されたときに切断された場所に戻って再び加工を行なえる状態にすることである。ワイヤカット放電加工でない場合は断線復帰の判断を行なわない。   When there is an interrupt processing request from the operator (S3), it is checked whether or not disconnection recovery is possible in the decoded block (S4). The disconnection recovery is to return to the cut position when the wire electrode is cut in the middle of the machining in the wire cut electric discharge machining so that the machining can be performed again. When it is not wire cut electric discharge machining, the judgment of disconnection return is not performed.

断線復帰が可能であるときは、そのブロックの先頭の箇所の断線復帰が可能である位置で加工を中断し断線復帰待ち状態にしておく(S5)。断線復帰待ち状態であることは、加工処理スレッドのメモリにNCの状態を示す情報の1つとして記録される。断線復帰が不可能であるときは、加工を中断できる位置であるかどうかをみる(S6)。割込み加工が可能な指令でないときは、1ブロックを実行処理する(S8)。割込み加工が可能な指令であるときは、加工を中断する。加工を中断したら図3に示される割込み加工処理を行なう(S7)。   When disconnection recovery is possible, processing is interrupted at a position where disconnection recovery is possible at the beginning of the block, and a disconnection recovery waiting state is set (S5). The disconnection waiting state is recorded as one piece of information indicating the NC state in the memory of the machining thread. When it is impossible to recover from the disconnection, it is checked whether or not it is a position where machining can be interrupted (S6). If the command is not capable of interrupt processing, one block is executed (S8). If the command can be interrupted, the processing is interrupted. When the processing is interrupted, the interrupt processing shown in FIG. 3 is performed (S7).

割込み加工処理では、最初に、起動している加工処理スレッドを待避する(S11)。加工処理スレッドの待避とは、具体的には、加工処理スレッドのメモリに記録されている加工プログラムの情報を含むNC装置の状態を示す全ての記録データと加工処理スレッドのプログラムをそのまま現在の状態で記憶手段に記憶させることである。そのため、この加工処理スレッドを復帰させるときは、中断した箇所から加工処理スレッドを待避したときの状態で加工を再開できる。   In the interrupt processing, first, the active processing thread is saved (S11). Specifically, machining process thread saving means that all recorded data indicating the status of the NC apparatus including machining program information recorded in the memory of the machining process thread and the program of the machining process thread are kept in the current state. To store it in the storage means. Therefore, when returning the machining thread, machining can be resumed in the state where the machining thread is saved from the interrupted location.

例えば、図4に示すワイヤカット放電加工における多数個取り加工の場合、点Bを加工中に割込み加工の要求があったとき、点Aまたは点Cの近傍でワイヤ電極を結線をして点Cで断線復帰することが可能であるとする。その場合は、点Cまで加工してワイヤ電極を切断し加工を中断して断線復帰待ち状態にする。そして、断線復帰待ちの状態で加工処理スレッドを待避して、中断したときのNC装置の状態と加工処理スレッドのプログラムを記憶させておく。仮に、点Cで断線復帰できない場合は、割込み加工が可能な指令の位置は点Aであるので、点Aまでは各ブロックを実行して加工を中断し、加工処理スレッドを待避させる。   For example, in the case of multi-piece machining in the wire cut electric discharge machining shown in FIG. 4, when there is a request for interruption machining while machining the point B, the wire electrode is connected in the vicinity of the point A or the point C to connect the point C Suppose that it is possible to recover from disconnection. In that case, the process is performed up to point C, the wire electrode is cut, the process is interrupted, and a disconnection recovery waiting state is set. Then, the machining thread is saved while waiting for disconnection recovery, and the state of the NC device and the machining thread program at the time of interruption are stored. If the disconnection cannot be restored at the point C, the position of the command that can be interrupted is the point A, so each block is executed up to the point A, the processing is interrupted, and the processing thread is saved.

次に、割込み加工の加工処理スレッドを起動して割込み加工の加工プログラムを解読し実行する(S12)。割込み加工では、割込み加工の加工処理スレッドに従い割込み加工の加工プログラムを1ブロック解読する(S13)。解読されたブロックが加工を終了する指令でなければ(S14)、割込み加工の要求があるかどうかをみる(S15)。割込み加工の要求がなければ、1ブロックを実行処理する(S20)。   Next, a processing thread for interrupt processing is activated to decode and execute the processing program for interrupt processing (S12). In the interrupt processing, one block of the interrupt processing processing program is decoded in accordance with the interrupt processing processing thread (S13). If the decoded block is not a command to end processing (S14), it is checked whether there is a request for interrupt processing (S15). If there is no request for interrupt processing, one block is executed (S20).

オペレータから割込み加工の要求があったときは(S15)、解読されたブロックにおいて断線復帰が可能であるかどうかをみる(S16)。ワイヤカット放電加工でない場合は断線復帰の判断は行なわない。断線復帰が可能であるときは、そのブロックの先頭の箇所の位置でワイヤ電極を切断して加工を中断し(S17)、割込み加工処理を行なう(S19)。断線復帰が不可能であるときは、加工を中断できる位置であるかどうかをみる(S18)。割込み加工が可能な指令でないときは、1ブロックを実行処理する(S20)。割込み加工が可能な指令であるときは、所定の箇所でワイヤ電極を切断して加工を中断し、割込み加工処理を行なう(S19)。   When there is a request for interrupt processing from the operator (S15), it is checked whether or not disconnection recovery is possible in the decoded block (S16). When it is not wire cut electric discharge machining, the judgment of disconnection return is not performed. When the disconnection can be restored, the wire electrode is cut at the position of the head portion of the block, the processing is interrupted (S17), and the interrupt processing is performed (S19). When it is impossible to recover from the disconnection, it is checked whether or not it is a position where the machining can be interrupted (S18). If the command is not capable of interrupt processing, one block is executed (S20). If the command is capable of interrupt processing, the wire electrode is cut at a predetermined position to interrupt the processing, and interrupt processing is performed (S19).

解読されたブロックが加工を終了する指令であれば(S14)、割込み加工の加工処理スレッドを終了する(S21)。そして、待避していた加工処理スレッドを復帰させる(S22)。加工処理スレッドの復帰とは、具体的には、加工処理スレッドを待避したときに記憶させておいた加工処理スレッドの記録データと加工処理スレッドのプログラムをそのまま読み出して加工処理スレッドを再起動することである。そして、記憶されていた記録データに従い中断した箇所に移動させて加工状態を元に戻す。断線復帰させる必要がある場合は、ワイヤ電極を所定の箇所で結線させて加工を中断した位置まで復帰させる。加工状態を元に戻したら、記憶されていた記録データに従い加工プログラムの中断した箇所から加工プログラムを実行させ1ブロックを実行処理し中断していた加工を再開する(S8)。   If the decoded block is a command to end processing (S14), the processing thread for interrupt processing is ended (S21). Then, the processing thread that has been saved is returned (S22). Specifically, the return of the machining thread refers to reading the machining thread recording data and the machining thread program stored when the machining thread was saved and restarting the machining thread. It is. Then, the machining state is returned to the original position by moving to the interrupted location according to the stored recording data. When it is necessary to return the disconnection, the wire electrode is connected at a predetermined position and returned to the position where the processing is interrupted. When the machining state is returned to the original state, the machining program is executed from the location where the machining program is interrupted in accordance with the stored recording data, one block is executed, and the interrupted machining is resumed (S8).

例えば、図4に示すワイヤカット放電加工における多数個取り加工の場合、点Cまで加工してワイヤ電極を切断し加工を中断しているときは、点Aまたは点Cの近傍でワイヤ電極を結線して点Cまで移動させて断線復帰させる。そして、点Cから中断していた1ブロック分を処理して加工を再開させる。また、点Aまで加工してワイヤ電極を切断し加工を中断しているときは、点Aに移動させて加工状態を元に戻す。点Aに移動した後は、中断していた1ブロック分を処理して次の加工開始点まで移動させる。そして、その加工開始点でワイヤ電極を結線し次の加工形状を加工する。   For example, in the case of multi-piece machining in the wire cut electric discharge machining shown in FIG. 4, when the machining is interrupted by cutting to the point C and cutting the wire electrode, the wire electrode is connected in the vicinity of the point A or the point C. Then, it is moved to the point C and the disconnection is restored. Then, processing for one block that has been interrupted from the point C is resumed. Further, when the processing is interrupted by cutting to the point A and cutting the wire electrode, the processing state is returned to the original state by moving to the point A. After moving to point A, the interrupted one block is processed and moved to the next machining start point. Then, the wire electrode is connected at the processing start point to process the next processing shape.

以上に説明されるように、本発明の割込み加工方法は、プログラムを解読し実行している加工処理スレッドのメモリの記録データとプログラムとをそのまま現在の状態で待避し、割込み加工の加工処理スレッドを起動して割込み加工を行ない、割込み加工終了後に待避させていた加工処理スレッドを復帰させることによって加工を再開させる。したがって、テンポラリファイルを作成する必要がなく、早送り指令がない場合、サブプログラムの途中である場合などで割込み加工が可能となり、割込み加工の待ち時間が短縮される。   As described above, the interrupt processing method of the present invention saves the recorded data and the program in the memory of the processing thread that is decoding and executing the program as it is, and interrupts the processing thread for interrupt processing. Is started, interrupt processing is performed, and processing is resumed by returning the processing thread that has been saved after the end of interrupt processing. Therefore, it is not necessary to create a temporary file, interrupt processing can be performed when there is no fast-forward command, or during the middle of a subprogram, and the waiting time for interrupt processing is shortened.

本発明は、数値制御工作機械に利用される。特に、数値制御ワイヤカット放電加工装置に利用される。本発明は、加工プログラムの実行中に割込み加工の要求があった場合に、割込み加工を行なって、割込み加工が終了したときに加工状態を元に戻し、中断した加工を再開することができる。   The present invention is used for a numerically controlled machine tool. In particular, it is used in a numerically controlled wire cut electric discharge machining apparatus. According to the present invention, when there is a request for interrupt processing during execution of a processing program, interrupt processing is performed, and when the interrupt processing is completed, the processing state can be restored and the interrupted processing can be resumed.

本発明の数値制御工作機械の数値制御装置の一部分を示すブロック図である。It is a block diagram which shows a part of numerical control apparatus of the numerical control machine tool of this invention. 本発明の割込み加工方法を示すフローチャートである。It is a flowchart which shows the interruption processing method of this invention. 図2に示される割込み加工方法のうち割込み処理を示すフローチャートである。It is a flowchart which shows an interruption process among the interruption process methods shown by FIG. ワイヤカット放電加工の加工例を示す図である。It is a figure which shows the process example of wire cut electrical discharge machining.

符号の説明Explanation of symbols

1 加工中断手段
2 待避手段
3 割込み処理手段
4 復帰手段
1 Processing interruption means 2 Retreat means 3 Interrupt processing means 4 Return means

Claims (3)

加工プログラムの実行中に割込み加工の要求があった場合に、割込み加工が可能なプログラムブロックまで前記加工プログラムを実行して加工を中断する加工中断手段と、前記加工プログラムを解読し実行している加工処理スレッドを待避させメモリに記録された加工プログラムの情報を含む加工プログラムを解読したときのNC装置の状態を示す記録データと前記加工処理スレッドのプログラムをそのまま現在の状態で記憶手段に記憶させる待避手段と、割込み加工の加工プログラムを解読し実行する加工処理スレッドを起動して割込み加工を行なう割込み処理手段と、割込み加工が終了したときに待避手段で前記記憶手段に記憶させておいた前記待避されていた前記記録データと前記待避されていた加工処理スレッドのプログラムをそのまま読み出して前記待避されていた加工処理スレッドを復帰させ前記待避されていた加工処理スレッドに従い加工状態が元に戻された後中断していた加工を再開させる復帰手段と、を有する数値制御工作機械。 When there is a request for interrupt processing during execution of the processing program, processing interrupt means for executing the processing program and interrupting processing up to a program block capable of interrupt processing, and decoding and executing the processing program in the storage unit as it current state and recording data indicating the state of the NC apparatus the processing threads of a program when decrypting the machining program is retracted the processing thread comprises information processing program recorded in a memory The saving means, the interruption processing means for starting the interruption processing thread for decoding and executing the interruption processing machining program, and the interruption means for performing interruption machining, and the saving means stored in the storage means when the interruption machining is completed The saved recording data and the saved processing thread program are saved Numerically controlled machine having a return means for resuming the interrupted optionally machining after machining state is returned to the original in accordance with processing thread that has been said retracted to return the processing thread that has been said retracted Te Mayomidashi . 加工プログラムの実行中に割込み加工の要求があった場合に、割込み加工が可能なプログラムブロックまで前記加工プログラムを実行して加工を中断し、前記加工プログラムを解読し実行している加工処理スレッドを待避させてメモリに記録された加工プログラムの情報を含むNC装置の状態を示す記録データと前記加工処理スレッドのプログラムをそのまま現在の状態で記憶手段に記憶させ、割込み加工の加工プログラムを解読し実行する加工処理スレッドを起動して割込み加工を行ない、割込み加工が終了したときに待避手段で前記記憶手段に記憶させておいた前記待避されていた前記記録データと前記待避されていた加工処理スレッドのプログラムをそのまま読み出して前記待避されていた加工処理スレッドを復帰させて前記待避されていた加工処理スレッドに従い加工状態を元に戻し中断していた加工を再開させることを特徴とする割込み加工方法。 When there is a request for interrupt machining during execution of the machining program, the machining program is executed up to a program block capable of interrupt machining, the machining is interrupted, and the machining processing thread that decodes and executes the machining program is executed. The recorded data indicating the status of the NC device including the machining program information saved in the memory and the machining thread program are stored in the storage means as they are, and the machining program for interrupt machining is decoded and executed. The processing thread is activated to perform interrupt processing, and when the interrupt processing is completed, the saved recording data stored in the storage unit by the saving unit and the saved processing thread are stored. program to return the processing thread that has been said retracted reading as being the sheltering The interrupt processing method characterized by resuming the processing which has been returned interrupted accordance processing thread had the machining state based. 加工プログラムの実行中に割込み加工の要求があった場合に、解読したプログラムブロックにおいてワイヤカット放電加工における断線復帰が可能であるときはそのプログラムブロックの先頭の位置で加工を中断し、断線復帰が不可能であるときは割込み加工が可能なプログラムブロックまで前記加工プログラムを実行して加工を中断し、前記加工プログラムを解読し実行している加工処理スレッドを待避させてメモリに記録された加工プログラムの情報を含むNC装置の状態を示す記録データと前記加工処理スレッドのプログラムをそのまま現在の状態で記憶手段に記憶させ、割込み加工の加工プログラムを解読し実行する加工処理スレッドを起動して割込み加工を行ない、割込み加工が終了したときに待避手段で前記記憶手段に記憶させておいた前記待避されていた前記記録データと前記待避されていた加工処理スレッドのプログラムをそのまま読み出して前記待避されていた加工処理スレッドを復帰させて前記待避されていた加工処理スレッドに従い加工状態を元に戻し加工を再開させることを特徴とする割込み加工方法。 If there is a request for interrupt machining during the execution of a machining program, if it is possible to recover from disconnection in wire-cut electrical discharge machining in the decoded program block, machining is interrupted at the beginning of the program block and disconnection recovery is performed. When it is impossible, the machining program is interrupted by executing the machining program up to a program block capable of interrupt machining, and the machining program recorded in the memory is saved by evacuating the machining thread that is decoding and executing the machining program. The recorded data indicating the state of the NC device including the information and the program of the machining process thread are stored in the storage means as they are, and the machining process thread that decodes and executes the machining program for interrupt machining is activated to perform interrupt machining. the performed, is stored in the storage means shunting means when the interrupt processing is completed Oita based on machining state in accordance with the retracted is to return the processing thread that has been said retracted and the recording data has been said retracted once was processing threads of a program is read directly processed thread is the sheltering An interrupt processing method characterized in that the processing is resumed.
JP2006200230A 2006-07-24 2006-07-24 Numerically controlled machine tool and interrupt machining method Active JP4656432B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006200230A JP4656432B2 (en) 2006-07-24 2006-07-24 Numerically controlled machine tool and interrupt machining method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006200230A JP4656432B2 (en) 2006-07-24 2006-07-24 Numerically controlled machine tool and interrupt machining method

Publications (2)

Publication Number Publication Date
JP2008027261A JP2008027261A (en) 2008-02-07
JP4656432B2 true JP4656432B2 (en) 2011-03-23

Family

ID=39117825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006200230A Active JP4656432B2 (en) 2006-07-24 2006-07-24 Numerically controlled machine tool and interrupt machining method

Country Status (1)

Country Link
JP (1) JP4656432B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102632308B (en) * 2012-03-22 2013-08-28 江苏省艾格森数控设备制造有限公司 Control method of electric discharge machining (EDM) machine
CN108326382A (en) * 2018-01-26 2018-07-27 陕西科技大学 The control method of electric spark shaping mill
WO2023007738A1 (en) 2021-07-30 2023-02-02 ファナック株式会社 Control device and control method for controlling wire electrical discharge machine
WO2023007748A1 (en) 2021-07-30 2023-02-02 ファナック株式会社 Control device and control method for controlling wire electrical discharge machine
WO2024023973A1 (en) * 2022-07-27 2024-02-01 ファナック株式会社 Wire electrical discharge machine control device, and display method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS599706A (en) * 1982-07-07 1984-01-19 Fanuc Ltd Numerical controlling system
JPS61161512A (en) * 1985-01-11 1986-07-22 Fuji Facom Corp Mechanical work controller
JPH0334270B2 (en) * 1986-06-18 1991-05-22 Meisei Electric Co Ltd
JPH06202723A (en) * 1992-12-28 1994-07-22 Mitsubishi Electric Corp Numerically controlled machine tool
JPH1133878A (en) * 1997-07-23 1999-02-09 Hitachi Seiki Co Ltd Processing schedule control method of numerically controlled machine tool, nc device, and recording medium for processing schedule controlling program of numerically controlled machine tool
JP2000280122A (en) * 1999-03-30 2000-10-10 Sodick Co Ltd Wire cut electric discharge machining

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS599706A (en) * 1982-07-07 1984-01-19 Fanuc Ltd Numerical controlling system
JPS61161512A (en) * 1985-01-11 1986-07-22 Fuji Facom Corp Mechanical work controller
JPH0334270B2 (en) * 1986-06-18 1991-05-22 Meisei Electric Co Ltd
JPH06202723A (en) * 1992-12-28 1994-07-22 Mitsubishi Electric Corp Numerically controlled machine tool
JPH1133878A (en) * 1997-07-23 1999-02-09 Hitachi Seiki Co Ltd Processing schedule control method of numerically controlled machine tool, nc device, and recording medium for processing schedule controlling program of numerically controlled machine tool
JP2000280122A (en) * 1999-03-30 2000-10-10 Sodick Co Ltd Wire cut electric discharge machining

Also Published As

Publication number Publication date
JP2008027261A (en) 2008-02-07

Similar Documents

Publication Publication Date Title
JP4656432B2 (en) Numerically controlled machine tool and interrupt machining method
JP4374045B2 (en) Numerical control device with program restart function
EP1471404A2 (en) Numerical control apparatus for machine tool
JP2007188170A (en) Method and device for interrupting/restarting working of numerically controlled machine tool
JP2008134983A (en) Numerical controller with machining resume function
JP5581577B2 (en) Data processing device
US10018990B2 (en) Numerical controller including DNC operation unit
JP2006172388A (en) Numerical controller
JP5210070B2 (en) Numerically controlled machine tool
JP5339815B2 (en) Numerical control device with processing resumption function
EP0551132B1 (en) Sequence controller including error correction and method therefor
JPS59201747A (en) Numerical control system
US10507539B2 (en) Wire electric discharge machine and method for correcting wire electrode connection hole position
JP5088922B2 (en) Wire-cut EDM method
JP2006227894A (en) Cut resumption method, cutting system and cutting controller
US11048222B2 (en) Numerical control device
JP7436192B2 (en) Control equipment and industrial machinery
JP2007087269A (en) Software update system, update method and program
JPS6316303A (en) Numerical controller
JPH07152416A (en) Numerical controller having program restarting function
US20180246498A1 (en) Numerical controller and machine tool system
JP2000137511A (en) Numerically controlled machine tool
CN110501969B (en) Control device, control method, and computer-readable recording medium
JP7401244B2 (en) Control device and control method
JP7343340B2 (en) Processing control device and processing control method for machine tools

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101006

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101014

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101201

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101215

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140107

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4656432

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250