JP4654937B2 - Numerical control apparatus, numerical control method, and computer program - Google Patents
Numerical control apparatus, numerical control method, and computer program Download PDFInfo
- Publication number
- JP4654937B2 JP4654937B2 JP2006048633A JP2006048633A JP4654937B2 JP 4654937 B2 JP4654937 B2 JP 4654937B2 JP 2006048633 A JP2006048633 A JP 2006048633A JP 2006048633 A JP2006048633 A JP 2006048633A JP 4654937 B2 JP4654937 B2 JP 4654937B2
- Authority
- JP
- Japan
- Prior art keywords
- machining program
- execution
- start position
- execution start
- tool
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Numerical Control (AREA)
Description
本発明は、加工プログラムの一部分のみを実行したい場合、加工プログラムを変更することなく所望の部分のみ実行することが可能な数値制御装置、数値制御方法及びコンピュータプログラムに関する。 The present invention relates to a numerical control apparatus, a numerical control method, and a computer program that can execute only a desired part without changing the machining program when only a part of the machining program is to be executed.
数値制御装置では、一旦加工が終了した後に部分的に再加工する必要のある場合や、加工範囲を限定して部分加工する場合がある。例えば、自動運転中に工具が破損等した場合、破損した工具の加工部分だけを再度実行する必要が生じる。 In the numerical control device, there is a case where it is necessary to partially rework after machining is completed, or there is a case where the machining range is limited and partial machining is performed. For example, when a tool is damaged during automatic operation, it is necessary to re-execute only the machined portion of the damaged tool.
特に大量生産用の生産ラインでは、工具の破損を即座に発見することは困難で有る。したがって、工具の破損を発見した時点では、既に破損した工具でワークを何十個、何百個等加工した後であり、気づかずに加工したワークを全て再加工する必要が生じることから、手戻り工数が無視できないオーダーとなる。 In particular, in a production line for mass production, it is difficult to immediately detect a tool breakage. Therefore, when a tool breakage is discovered, it is necessary to rework all the workpieces that have been machined without being noticed, after machining dozens or hundreds of workpieces with an already damaged tool. The order of the return man-hour cannot be ignored.
斯かる問題を解決するために、従来は、シーケンス番号サーチ機能、プログラムリスタート機能等により、加工プログラムの途中の工程から再実行することにより、未加工のワークに対して正しい加工を行っていた。また、加工プログラムのブロックに、ブロックをスキップするか否かを指定する判断記号を付加しておき、加工プログラムの実行時に、ブロックのスキップが指定されたブロックを無視して加工プログラムを実行することにより、加工プログラムの部分的な再実行を実現していた(特許文献1参照)。
しかしながら、上述したシーケンス番号サーチ機能、プログラムリスタート機能を用いる場合、加工プログラムを起動する都度再実行するシーケンス番号を指定する必要があり、工作機械ごとにシーケンス番号を指定する作業が発生する等、再加工する工数を低減することが困難であるという問題点があった。 However, when using the above-described sequence number search function and program restart function, it is necessary to specify the sequence number to be re-executed every time the machining program is started, and work for specifying the sequence number for each machine tool occurs. There is a problem that it is difficult to reduce the number of man-hours for reworking.
また、スキップするブロックを指定する方法では、どのブロックをスキップするか加工プログラムを修正して指定する必要が生じる。したがって、加工プログラムの更新作業が煩雑であると共に、加工プログラムの戻し忘れ等の人為的エラーの発生源となるという問題点があった。 In addition, in the method of specifying blocks to be skipped, it is necessary to specify which blocks to skip by modifying the machining program. Therefore, there is a problem in that the machining program update operation is complicated and causes a human error such as forgetting to return the machining program.
本発明は斯かる事情に鑑みてなされたものであり、加工プログラムを修正することなく、再実行することが必要な部分だけ加工プログラムを再実行することができる数値制御装置、数値制御方法及びコンピュータプログラムを提供することを目的とする。 The present invention has been made in view of such circumstances, and a numerical control device, a numerical control method, and a computer that can re-execute a machining program only for a portion that needs to be re-executed without correcting the machining program. The purpose is to provide a program.
上記目的を達成するために第1発明に係る数値制御装置は、加工プログラムに従って工作機械の動作を制御する数値制御装置において、前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶する記憶手段と、前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から実行終了位置に相当する命令までの部分だけ実行するプログラム実行手段とを備えることを特徴とする。 Numerical control device according to the first invention to achieve the above object, the numerical controller for controlling the operation of the machine tool according to a machining program, and terminates the execution start position 置及 beauty executed to start the execution of the machining program storage means for storing instructions to perform the end position and execution start position of said machining program, when executing the machining program from the execution start position, read instructions to the execution start position of the machining program from said storage means Te, part of the machining program to the after be executed from the start position were return operation to a state that can correspond to the run end position from the instruction corresponding to the execution start position of the machining program instructions And a program execution means for executing only the program.
また、第2発明に係る数値制御装置は、第1発明において、前記実行開始位置及び前記実行終了位置は、工具の交換を指示する工具交換命令の情報に基づいて指定してあることを特徴とする。 The numerical control device according to a second aspect of the present invention is characterized in that, in the first aspect, the execution start position and the execution end position are specified based on information of a tool replacement instruction instructing tool replacement. To do.
また、第3発明に係る数値制御装置は、第2発明において、前記工具交換命令の情報は、工具の種類を識別する情報であることを特徴とする。 The numerical control device according to a third aspect of the present invention is characterized in that, in the second aspect, the information on the tool change command is information for identifying the type of the tool.
また、第4発明に係る数値制御装置は、第3発明において、前記実行終了位置は、前記実行開始位置で指定された工具の種類を識別する情報と異なる工具の種類を識別する情報を含む工具交換命令、又は該工具交換命令の1つ手前の命令であることを特徴とする。 The numerical control device according to a fourth aspect of the present invention is the numerical control device according to the third aspect, wherein the execution end position includes information identifying a tool type different from information identifying the tool type specified at the execution start position. It is a change command, or a command immediately before the tool change command.
また、第5発明に係る数値制御装置は、第3発明において、前記実行開始位置は、前記加工プログラムに記載されている工具の種類を識別する情報の数に基づいて指定してあることを特徴とする。 In the numerical controller according to a fifth aspect of the present invention, in the third aspect, the execution start position is specified based on the number of pieces of information identifying the type of tool described in the machining program. And
また、第6発明に係る数値制御装置は、第2発明において、前記実行終了位置は、前記実行開始位置以降の前記加工プログラムに記載されている工具の種類を識別する情報の数に基づいて指定してあることを特徴とする。 In the numerical control device according to a sixth aspect of the present invention, in the second aspect, the execution end position is specified based on the number of pieces of information identifying the type of tool described in the machining program after the execution start position. It is characterized by being.
また、第7発明に係る数値制御装置は、第1発明において、前記実行開始位置及び実行終了位置は、前記加工プログラムに記載してある命令のシーケンス番号に基づいて指定してあることを特徴とする。 The numerical control device according to a seventh aspect of the invention is characterized in that, in the first aspect, the execution start position and the execution end position are specified based on a sequence number of an instruction described in the machining program. To do.
また、第8発明に係る数値制御装置は、第1発明において、前記実行開始位置及び実行終了位置は、前記加工プログラムのブロック番号に基づいて指定してあることを特徴とする。 According to an eighth aspect of the present invention, in the first aspect, the execution start position and the execution end position are designated based on a block number of the machining program.
また、第9発明に係る数値制御方法は、加工プログラムに従って工作機械の動作を制御する数値制御方法において、前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶手段に記憶し、前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの前記実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から前記実行終了位置に相当する命令までの部分だけ実行することを特徴とする。 The numerical control method according to a ninth invention, in a numerical control method for controlling the operation of the machine tool according to a machining program execution ending position and said ends the execution start position 置及 beauty executed to start the execution of the machining program An instruction to the execution start position of the machining program is stored in the storage means, and when the machining program is executed from the execution start position, the instruction to the execution start position of the machining program is read from the storage means, and the machining After performing a return operation in which the program can be executed from the execution start position, only the part from the instruction corresponding to the execution start position to the instruction corresponding to the execution end position of the machining program is executed. It is characterized by that.
また、第10発明に係るコンピュータプログラムは、加工プログラムに従って工作機械の動作を制御する数値制御装置で実行することが可能なコンピュータプログラムにおいて、前記数値制御装置を、前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶手段に記憶する手段、及び前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの前記実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から前記実行終了位置に相当する命令までの部分だけ実行する手段として機能させることを特徴とする。 The computer program according to the first 0 invention is a computer program that can be executed by the numerical controller for controlling the operation of the machine tool according to a machining program, said numerical controller starts to execute the machining program means for storing in the storage means an instruction to the execution end position and execution start position of the machining program ends the execution start position 置及 beauty run, and from the execution start position when performing a machining program, the machining program Corresponding to the execution start position of the machining program after performing a return operation that reads the command to the execution start position from the storage means and makes the machining program executable from the execution start position Means for executing only the part from the instruction to the instruction corresponding to the execution end position. It is characterized by functioning.
第1発明、第9発明、及び第10発明では、加工プログラムの実行を開始する実行開始位置、及び実行を終了する実行終了位置を記憶手段に記憶しておき、該記憶手段から実行開始位置及び実行終了位置を読み出し、加工プログラムの実行開始位置に相当する命令から実行終了位置に相当する命令までの部分だけ実行する。記憶手段に実行開始位置及び実行終了位置を記憶しておくことにより、加工プログラムの更新作業が不要であり、加工プログラムの戻し忘れ等の人為的エラーを未然に回避することができ、加工プログラムの実行終了位置も確実に指定することが可能となる。したがって、加工プログラムの更新作業が発生することなく、再実行することが必要な部分だけ再実行することが可能となる。また加工プログラムの実行開始位置までの命令を記憶手段に記憶し、実行開始位置から加工プログラムを部分的に実行する場合、加工プログラムの実行開始位置までの命令を記憶手段から読み出して、加工プログラムを実行開始位置から実行することが可能な状態とする復帰運転を行う。これにより、加工プログラムを実行開始位置まで単純にスキップするだけではなく、部分的に加工プログラムを開始する場合であっても、それまでの命令が実行された場合と同様の初期条件下で実行することが可能となる。 In the first invention, the ninth invention, and the tenth invention, the execution start position for starting the execution of the machining program and the execution end position for ending the execution are stored in the storage means, and the execution start position is stored from the storage means. The execution end position is read, and only the part from the instruction corresponding to the execution start position of the machining program to the instruction corresponding to the execution end position is executed. By storing the execution start position and execution end position in the storage means, it is not necessary to update the machining program, and human errors such as forgetting to return the machining program can be avoided in advance. It is possible to reliably specify the execution end position. Therefore, it is possible to re-execute only the part that needs to be re-executed without causing the machining program to be updated. In addition, when a command to the execution start position of the machining program is stored in the storage unit and the machining program is partially executed from the execution start position, the command to the execution start position of the machining program is read from the storage unit, and the machining program is A return operation is performed to enable execution from the execution start position. As a result, the machining program is not simply skipped to the execution start position, but even when the machining program is partially started, the machining program is executed under the same initial conditions as when the previous command was executed. It becomes possible.
第2発明では、実行開始位置及び実行終了位置を、工具の交換を指示する工具交換命令の情報に基づいて指定する。これにより、所定の工具が折損等した場合、該工具による加工部分を、工具の交換を支持する工具交換命令に含まれる情報、例えば工具の種類、交換回数等に基づいて特定することにより、部分的に加工プログラムを実行することができ、無駄な工程を実行することを回避して、手戻り工程を最小限に止めることが可能となる。 In the second aspect of the invention, the execution start position and the execution end position are designated based on information of a tool change command that instructs tool change. Thereby, when a predetermined tool breaks or the like, the processing part by the tool is specified based on information included in the tool replacement command for supporting the tool replacement, for example, the type of tool, the number of times of replacement, etc. Therefore, it is possible to execute the machining program automatically, avoid performing unnecessary processes, and minimize the return process.
第3発明では、工具交換命令の情報は、工具の種類を識別する情報である。これにより、所定の工具が折損等した場合、該工具による加工部分を、工具の種類に基づいて特定することにより、部分的に加工プログラムを実行することができ、無駄な工程を実行することを回避して、手戻り工程を最小限に止めることが可能となる。 In the third invention, the information of the tool change command is information for identifying the type of the tool. As a result, when a predetermined tool breaks or the like, the machining program by the tool can be specified based on the type of the tool, so that the machining program can be partially executed and a wasteful process can be executed. As a result, the rework process can be minimized.
第4発明では、実行終了位置は、実行開始位置で指定された工具の種類を識別する情報と異なる工具の種類を識別する情報を含む工具交換命令、又は該工具交換命令の1つ手前の命令である。これにより、ワークに影響を及ぼすことが無い範囲で加工プログラムを部分的に実行する部分を特定することができ、特定された部分のみ再実行することが可能となる。 In the fourth invention, the execution end position is a tool change command including information identifying a tool type different from information identifying the tool type specified at the execution start position, or a command immediately before the tool change command. It is. As a result, it is possible to specify a part for partially executing the machining program within a range that does not affect the workpiece, and it is possible to re-execute only the specified part.
第5発明では、実行開始位置を、加工プログラムに記載されている工具の種類を識別する情報の数に基づいて指定する。これにより、加工プログラムの実行開始位置を同一工具により加工する回数に基づいて特定することができ、例えば折損等が生じた工具による加工部分のみ実行することが可能となる。 In the fifth invention, the execution start position is designated based on the number of pieces of information for identifying the type of tool described in the machining program. Thereby, the execution start position of the machining program can be specified based on the number of times of machining with the same tool, and for example, it is possible to execute only the machined portion of the tool in which breakage or the like has occurred.
第6発明では、実行終了位置を、実行開始位置以降の加工プログラムに記載されている工具の種類を識別する情報の数に基づいて指定する。これにより、加工プログラムの実行終了位置を同一工具により加工する回数に基づいて特定することができ、例えば折損等が生じた工具による加工部分のみ実行することが可能となる。 In the sixth invention, the execution end position is designated based on the number of pieces of information for identifying the type of tool described in the machining program after the execution start position. As a result, the execution end position of the machining program can be specified based on the number of times of machining with the same tool, and for example, only the machined portion of the tool in which breakage or the like has occurred can be executed.
第7発明は、実行開始位置及び実行終了位置は、加工プログラムに記載してある命令のシーケンス番号に基づいて指定する。これにより、加工プログラムのうち実行する部分を正確に特定することができ、特定された部分のみ再実行することが可能となる。 In the seventh invention, the execution start position and the execution end position are designated based on the sequence number of the instruction described in the machining program. Thereby, the part to be executed in the machining program can be accurately specified, and only the specified part can be re-executed.
第8発明では、実行開始位置及び実行終了位置は、加工プログラムのブロック番号に基づいて指定する。これにより、加工プログラムのうち実行する部分を正確に特定することができ、特定された部分のみ再実行することが可能となる。 In the eighth invention, the execution start position and the execution end position are designated based on the block number of the machining program. Thereby, the part to be executed in the machining program can be accurately specified, and only the specified part can be re-executed.
本発明によれば、記憶手段に実行開始位置及び実行終了位置を記憶しておくことにより、加工プログラムの更新作業が不要であり、加工プログラムの戻し忘れ等の人為的エラーを未然に回避することができ、加工プログラムの実行終了位置も確実に指定することが可能となる。したがって、加工プログラムの更新作業が発生することなく、再実行することが必要な部分だけ再実行することが可能となる。また、実行開始位置及び実行終了位置を、工具の種類を識別する情報、加工プログラムのシーケンス番号、又はブロック番号に基づいて指定することにより、所定の工具が折損等した場合、該工具による加工部分のみ加工プログラムを実行することができ、無駄な工程を実行することを回避することができ、手戻り工程を最小限に止めることが可能となる。 According to the present invention, by storing the execution start position and the execution end position in the storage means, it is not necessary to update the machining program and to avoid human errors such as forgetting to return the machining program. Therefore, the execution end position of the machining program can be specified with certainty. Therefore, it is possible to re-execute only the part that needs to be re-executed without causing the machining program to be updated. In addition, when a predetermined tool breaks by specifying the execution start position and execution end position based on the information identifying the type of tool, the sequence number of the machining program, or the block number, the machining portion by the tool Only the machining program can be executed, the useless process can be avoided, and the reworking process can be minimized.
また本発明によれば、加工プログラムを実行開始位置まで単純にスキップするだけではなく、部分的に加工プログラムを開始する場合であっても、それまでの命令が実行された場合と同様の初期条件下で実行することが可能となる。 Further, according to the present invention, not only the machining program is simply skipped to the execution start position, but even when the machining program is partially started, the same initial condition as when the previous command is executed is used. It is possible to execute below.
以下に、本発明をその実施の形態を示す図面に基づいて説明する。なお、本発明の実施の形態は、下記の実施例に何ら限定されるものではなく、本発明の技術的範囲に属する限り、種々の態様で実施できることは言うまでもない。 Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments thereof. The embodiment of the present invention is not limited to the following examples, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.
(実施の形態1)
図1は、本発明の実施の形態1に係る数値制御装置1を3軸制御の工作機械に用いる場合の構成を示すブロック図である。図1において、数値制御装置1は、少なくとも、CPU(中央演算装置)11、ROM12、RAM13、入出力インタフェース14、制御対象となる各種モータの駆動を制御する信号を出力する出力インタフェース20、および記憶手段26が、内部バス19を介して接続されている。入出力インタフェース14には、マウス及びキーボード等の入力手段15、ディスプレイ等の表示手段16、補助記憶手段17、及び外部とデータ通信する通信手段18が接続されている。
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration when the
CPU11は、内部バス19を介して数値制御装置1の上述したようなハードウェア各部と接続されており、上述したハードウェア各部を制御するとともに、RAM13に格納された加工プログラム3又は補助記憶手段17であるCD−ROM、DVD等の(可搬型)記録媒体2を用いてRAM13へ導入された加工プログラム3に従って、出力インタフェース20を介して接続されている種々の機器の動作を制御する。
The
RAM13は、SRAM、フラッシュメモリ等で構成されソフトウェアの実行時に発生する一時的なデータ、ソフトウェアの実行に必要なデータ等を記憶する。入出力インタフェース14を介して接続されている入力手段15は、数値制御装置1を操作するために必要な文字キー、テンキー、各種のファンクションキー等を備えたキーボード、マウス等の入力媒体である。表示手段16は、液晶表示装置、CRTディスプレイ等の表示装置であり、数値制御装置1の動作状態を示す画像、ユーザへ操作入力を促す画像等を表示する。なお、表示手段16をタッチパネル方式とすることにより、入力手段15の各種のファンクションキーの内の一部又は全部を表示手段16が代用することも可能である。通信手段18は、外部からのデータの取得、外部装置の動作制御データ等を送受信する。
The
記憶手段26は、不揮発メモリ、ハードディスク等の固定型記憶装置であり、工具の交換を指示する工具交換命令に含まれている情報に基づいて指定してある加工プログラム3の部分的な実行開始位置及び実行終了位置を記憶してある。工具交換命令に基づいて加工プログラム3の部分的な実行開始位置及び実行終了位置を制御することにより、例えば所定の工具が折損等した場合、該工具による加工部分に関する命令のみ部分的に再実行することができ、無駄な工程を実行することを回避して、手戻り工程を最小限に止めることができる。
The storage means 26 is a fixed storage device such as a non-volatile memory or a hard disk, and is a partial execution start position of the
出力インタフェース20は、X軸モータ22、Y軸モータ23、Z軸モータ24、及び主軸モータ25のそれぞれを駆動させる駆動回路21、21、21、21へ駆動信号を送信する。
The
以下、上述した構成の数値制御装置1を備えた工作機械を複数用いて大量生産を行う場合、一の工作機械で工具の一部が折損等したときには、既に大量のワークに対して加工が完了していることがある。したがって、既に折損した工具等で異常な加工が行われたワークに対して、再度正常な状態で加工を行う必要がある。
Hereinafter, when mass production is performed using a plurality of machine tools equipped with the
図2は、本実施の形態1に係る数値制御装置1で実行する加工プログラム3の一例を示す図である。図2に示す加工プログラム3では、工具交換命令‘M6’に工具を識別する情報である工具番号‘Tn’(nは自然数)を付与している。また、シーケンス番号‘N10’乃至‘N130’はそれぞれブロック番号1乃至13に対応しており、‘M30’は加工プログラム3の終了ブロックである旨を示している。
FIG. 2 is a diagram showing an example of the
図3は、本実施の形態1に係る数値制御装置1で実行する加工プログラム3を部分的に再実行する場合の実行開始位置及び実行終了位置を示す実行部分特定情報の一例を示す図である。実行部分特定情報は、CPU11がユーザによる設定を受け付け、記憶手段26に記憶する。図3の例では、加工プログラム3の工具交換命令に含まれる工具番号、及びシーケンス番号により、加工プログラム3を部分的に再実行する場合の実行開始位置及び実行終了位置を指定している。
FIG. 3 is a diagram illustrating an example of execution part specifying information indicating an execution start position and an execution end position when the
シーケンス番号を用いる場合、加工プログラム3のシーケンス番号で部分的に実行する範囲を特定する。工具番号を用いる場合、加工プログラム3の命令に含まれる工具番号への工具交換命令で部分的に実行する範囲を特定する。また、実行終了位置には‘any’を用い、実行開始位置を特定した工具番号以外の工具番号への工具交換命令を検出した時点で実行を終了するようにしても良い。
When the sequence number is used, a range to be partially executed is specified by the sequence number of the
図3の例では、CPU11は、まず1ブロック目の命令‘M8’を解釈し、ブロック番号1に対応するシーケンス番号10である1ブロック目の命令‘M8’を実行する。CPU11は、次のブロックの命令‘M20’を解釈し、図3に示す実行終了位置に該当しないと判断して、命令‘M20’を実行する。
In the example of FIG. 3, the
CPU11は、次のブロックの命令‘G54G0X0Y0Z0’を解釈し、図3に示す実行終了位置に該当すると判断して、命令‘G54G0X0Y0Z0’を実行しない。同様にCPU11は、次の実行開始位置に該当する工具交換命令‘M6T2’まで命令をスキップし、工具番号‘2’が一致している工具交換命令‘M6T2’を実行する。CPU11は、実行終了位置に該当する工具交換命令‘M6T3’までの命令を実行する。そして、終了ブロックである‘M30’により運転を終了する。
The
なお、上述の例では、実行終了位置の1つ手前の命令まで実行する場合について説明しているが、特にこれに限定されるものではなく、実行終了位置に該当する命令まで実行しても良い。 In the above example, the case where the instruction is executed up to the instruction immediately before the execution end position is described. However, the present invention is not particularly limited to this, and the instruction corresponding to the execution end position may be executed. .
また、実行開始位置及び実行終了位置、又はいずれか一方を、加工プログラムに記載されている工具交換の数に基づいて指定しても良い。実行開始位置を工具交換の数で指定する場合、加工プログラム3の最初の命令から実効開始位置に該当する工具番号への工具交換が指定された数読み出された命令から実行を開始する。実行終了位置を工具交換の数で指定する場合、実行開始位置以降の加工プログラムの命令から実行終了位置に該当する工具番号への工具交換が指定された数読み出された命令、又は該命令の1つ手前の命令で実行を終了する。さらに、実行終了位置は、実行開始位置で指定された工具番号とは異なる工具番号への工具交換が含まれていることを検出した場合、該工具番号を含む工具交換命令、又は該工具交換命令の1つ手前の命令としても良い。上述の例における‘any’の指定がこれに該当する。もちろん、工具交換命令の数を計数し、例えば3番目の工具交換命令から5番目の工具交換命令までを実行するように、工具交換命令の数に基づいて実行開始位置及び実行終了位置を指定しても良い。
Further, the execution start position and / or the execution end position may be designated based on the number of tool changes described in the machining program. When the execution start position is designated by the number of tool replacements, the execution is started from the command that is read from the first command of the
図4は、再度加工を行う場合の加工プログラム3の実行開始位置、及び実行終了位置の指定を受け付ける画面の一例を示す図である。図4に示すように、指定受付画面は、加工プログラム3の命令をブロック単位で表示する加工プログラム表示領域41、加工プログラム3を部分的に実行する実行開始位置及び実行終了位置を入力/表示する実行範囲入力領域42、及び実行開始位置と実行終了位置とをどの項目に基づいて指定するかの選択を受け付ける項目選択領域43を備えている。
FIG. 4 is a diagram illustrating an example of a screen that accepts designation of an execution start position and an execution end position of the
ユーザは、加工プログラム表示領域41に表示されている加工プログラムを閲覧しながら、どこを、又はどの工具について部分的に再実行させるか判断し、項目選択領域43へ実行開始位置及び実行終了位置を指定する項目を入力する。図4の例では、入力値が‘0’である場合には、設定を終了する。入力値が‘1’である場合には、工具番号に基づいて設定する。同様に、入力値が‘2’である場合にはシーケンス番号に基づいて、入力値が‘3’である場合にはブロック番号に基づいて、それぞれ設定する。
While viewing the machining program displayed in the machining
項目選択領域43へ実行開始位置及び実行終了位置を指定する項目が入力された場合、実行範囲入力領域42に設定対象となる項目が表示され、空欄となっている「実行開始位置」及び「実行終了位置」へそれぞれの項目に応じて値を入力する。
When items specifying the execution start position and the execution end position are input to the
図5は、本発明の実施の形態1に係る数値制御装置1で加工プログラム3を部分的に再実行する場合のCPU11の処理手順を示すフローチャートである。数値制御装置1のCPU11は、実行対象となる加工プログラム3の選択を受け付け(ステップS501)、選択された加工プログラム3を起動し、フラグ情報を‘0’に初期化する(ステップS502)。
FIG. 5 is a flowchart showing a processing procedure of the
CPU11は、実行範囲が指定されているか否かを判断し(ステップS503)、CPU11が、実行範囲が指定されていないと判断した場合(ステップS503:NO)、CPU11は、該加工プログラムを最初の命令から最後の命令まで順次実行する(ステップS504)。CPU11が、実行範囲が指定されていると判断した場合(ステップS503:YES)、CPU11は、指定されている実行範囲、すなわち該加工プログラム3の実行開始位置及び実行終了位置を読み出し(ステップS505)、加工プログラム3の命令を順次1ブロックずつ解釈する(ステップS506)。
The
CPU11は、解釈したブロックの命令が‘M30’であるか否か、すなわち加工プログラム3の実行終了命令であるか否かを判断し(ステップS507)、CPU11が、解釈したブロックの命令が‘M30’であると判断した場合(ステップS507:YES)、CPU11は、該加工プログラム3の実行を終了する。
The
CPU11が、解釈したブロックの命令が‘M30’でないと判断した場合(ステップS507:NO)、CPU11は、フラグ情報が‘0’であるか否かを判断する(ステップS508)。CPU11が、フラグ情報が‘0’であると判断した場合(ステップS508:YES)、CPU11は、解釈したブロックが実行開始位置であるか否かを判断する(ステップS509)。
When the
CPU11が、解釈したブロックが実行開始位置ではないと判断した場合(ステップS509:NO)、CPU11は、処理をステップS506へ戻し、上述した処理を繰り返す。CPU11が、フラグ情報が‘0’ではないと判断した場合(ステップS508:NO)、CPU11は、解釈したブロックが実行終了位置であるか否かを判断する(ステップS510)。
When the
CPU11が、解釈したブロックが実行終了位置であると判断した場合(ステップS510:YES)、CPU11は、フラグ情報を‘0’に設定して(ステップS511)、処理をステップS506へ戻す。CPU11が、解釈したブロックが実行開始位置であると判断した場合(ステップS509:YES)、又は解釈したブロックが実行終了位置ではないと判断した場合(ステップS510:NO)、CPU11は、解釈されたブロックの命令を実行して、フラグ情報を‘1’に設定する(ステップS512)。CPU11は、処理をステップS506へ戻し、上述した処理を繰り返す。
When the
以上のように本実施の形態1によれば、記憶手段26に実行開始位置及び実行終了位置を記憶しておくことにより、加工プログラム3の更新作業が不要であり、加工プログラム3の戻し忘れ等の人為的エラーを未然に回避することができ、加工プログラム3の実行終了位置も確実に指定することが可能となる。したがって、加工プログラム3の更新作業が発生することなく、再実行することが必要な部分だけ再実行することが可能となる。
As described above, according to the first embodiment, by storing the execution start position and the execution end position in the
(実施の形態2)
以下、本発明の実施の形態2に係る数値制御装置1について図面を参照しながら詳細に説明する。本発明の実施の形態2に係る数値制御装置1の構成は、実施の形態1と同様であることから、同一の符号を付することにより詳細な説明を省略する。本実施の形態2は、加工プログラム3を部分的に実行する場合に、部分的に実行する前段階の処理(復帰運転)を実行した後に部分的に加工プログラムを実行する点で実施の形態1と相違する。
(Embodiment 2)
Hereinafter, the
図6は、本実施の形態2に係る数値制御装置1で実行する加工プログラム3の一例を示す図である。図6に示す加工プログラム3では、ドリルサイクル‘G81’を用いてドリル加工する加工プログラム3を例に挙げている。なお、シーケンス番号‘N10’乃至‘N150’は、それぞれブロック番号1乃至15に対応しており、‘M30’は加工プログラム3の終了ブロックである旨を示している。
FIG. 6 is a diagram showing an example of the
図7は、本実施の形態2に係る数値制御装置1で実行する加工プログラム3を部分的に再実行する場合の実行開始位置及び実行終了位置を示す実行部分特定情報の一例を示す図である。実行部分特定情報は、CPU11がユーザによる設定を受け付け、記憶手段26に記憶する。図7の例では、加工プログラム3のブロック番号により、加工プログラム3を部分的に再実行する場合の実行開始位置及び実行終了位置を指定している。
FIG. 7 is a diagram illustrating an example of execution part specifying information indicating an execution start position and an execution end position when the
図7の例では、CPU11は、まず1ブロック目の命令‘M6T1G54’を解釈し、ブロック番号1が図7に示す実行開始位置に該当しないと判断し、復帰運転情報を記憶手段26へ記憶する。CPU11は、次のブロックの命令‘M8’を解釈し、同じく図7に示す実行開始位置に該当しないと判断して、復帰運転情報を記憶手段26へ記憶する。
In the example of FIG. 7, the
CPU11は、同様に順次ブロック命令を解釈し、ブロック番号7が図7に示す実行開始位置に該当すると判断して、命令‘X−20.Y−20.’を実行すべく復帰運転を実行する。具体的には工具1に工具を交換し、M8信号を出力し、主軸を1000回転として、X−10.Y−10.Z−50.へ移動する。そしてドリルサイクルG81を動作状態とする。
Similarly, the
CPU11は、命令‘X−20.Y−20.’を実行し、次のブロックの命令‘X−30.Y−30.’を解釈し、図7に示す実行終了位置に該当しないと判断して、命令‘X−30.Y−30.’を実行する。CPU11は、次のブロックの命令‘G0X0Y0Z50’を解釈し、図7に示す実行終了位置に該当すると判断して、復帰運転情報を記憶手段26へ記憶する。具体的には次に実行開始位置となるまでの命令を記憶手段26に記憶する。以下、同様にして命令を実行する前に必ず記憶手段26に記憶してある復帰運転情報に基づいて復帰運転を行った後に、実行開始位置に該当する命令を実行する。これにより、加工プログラム3を実行開始位置まで単純にスキップするだけではなく、部分的に加工プログラム3を開始する場合であっても、それまでの命令が実行された場合と同様の初期条件下、例えば工具の位置、状態等で実行することができる。
The
なお、上述の例では、実行終了位置の命令まで実行する場合について説明しているが、特にこれに限定されるものではなく、実行終了位置の1つ手前に該当する命令まで実行するものであっても良い。 In the above-described example, the case of executing up to the instruction at the execution end position has been described. However, the present invention is not particularly limited to this, and the instruction is executed up to the instruction just before the execution end position. May be.
また、実行開始位置及び実行終了位置の指定方法は、実施の形態1と同様、様々なバリエーションが存在する。ユーザは、図4と同様の画面から状況に応じた項目で指定すれば良い。 In addition, as with the first embodiment, there are various variations in the method for specifying the execution start position and the execution end position. The user may specify the item according to the situation from the same screen as in FIG.
図8は、本発明の実施の形態1に係る数値制御装置1で加工プログラム3を部分的に再実行する場合のCPU11の処理手順を示すフローチャートである。数値制御装置1のCPU11は、実行対象となる加工プログラム3の選択を受け付け(ステップS801)、選択された加工プログラム3を起動し、フラグ情報を‘0’に初期化する(ステップS802)。
FIG. 8 is a flowchart showing a processing procedure of the
CPU11は、実行範囲が指定されているか否かを判断し(ステップS803)、CPU11が、実行範囲が指定されていないと判断した場合(ステップS803:NO)、CPU11は、該加工プログラムを最初の命令から最後の命令まで順次実行する(ステップS804)。CPU11が、実行範囲が指定されていると判断した場合(ステップS803:YES)、CPU11は、指定されている実行範囲、すなわち該加工プログラム3の実行開始位置及び実行終了位置を読み出し(ステップS805)、加工プログラム3の命令を順次1ブロックずつ解釈する(ステップS806)。
The
CPU11は、解釈したブロックの命令が‘M30’であるか否か、すなわち加工プログラム3の実行終了命令であるか否かを判断し(ステップS807)、CPU11が、解釈したブロックの命令が‘M30’であると判断した場合(ステップS807:YES)、CPU11は、該加工プログラム3の実行を終了する。
The
CPU11が、解釈したブロックの命令が‘M30’でないと判断した場合(ステップS807:NO)、CPU11は、フラグ情報が‘0’であるか否かを判断する(ステップS808)。CPU11が、フラグ情報が‘0’であると判断した場合(ステップS808:YES)、CPU11は、解釈したブロックが実行開始位置であるか否かを判断する(ステップS809)。
When the
CPU11が、解釈したブロックが実行開始位置ではないと判断した場合(ステップS809:NO)、CPU11は、解釈したブロックを復帰運転情報として記憶手段26に記憶し(ステップS810)、処理をステップS806へ戻し、上述した処理を繰り返す。CPU11が、フラグ情報が‘0’ではないと判断した場合(ステップS808:NO)、CPU11は、解釈したブロックが実行終了位置であるか否かを判断する(ステップS811)。
If the
CPU11が、解釈したブロックが実行終了位置であると判断した場合(ステップS811:YES)、CPU11は、フラグ情報を‘0’に設定して(ステップS812)、解釈したブロックを復帰運転情報として記憶手段26に記憶し(ステップS813)、処理をステップS806へ戻し、上述した処理を繰り返す。CPU11が、解釈したブロックが実行開始位置であると判断した場合(ステップS809:YES)、CPU11は、記憶手段26に記憶してある復帰運転情報に従って復帰運転を実行する(ステップS814)。CPU11が復帰運転を実行した後又は解釈したブロックが実行終了位置ではないと判断した場合(ステップS811:NO)、CPU11は、解釈されたブロックの命令を実行して、フラグ情報を‘1’に設定する(ステップS815)。CPU11は、処理をステップS806へ戻し、上述した処理を繰り返す。
When the
以上のように本実施の形態2によれば、加工プログラム3を実行開始位置まで単純にスキップするだけではなく、部分的に加工プログラム3を開始する場合であっても、それまでの命令が実行された場合と同様の初期条件下で実行することが可能となる。
As described above, according to the second embodiment, not only the
1 数値制御装置
2 記憶媒体
3 加工プログラム
11 CPU
12 ROM
13 RAM
15 入力手段
16 表示手段
26 記憶手段
DESCRIPTION OF
12 ROM
13 RAM
15 Input means 16 Display means 26 Storage means
Claims (10)
前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶する記憶手段と、
前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から実行終了位置に相当する命令までの部分だけ実行するプログラム実行手段と
を備えることを特徴とする数値制御装置。 In a numerical control device that controls the operation of a machine tool according to a machining program,
Storage means for storing instructions to perform the start of the run end position and the machining program ends the execution start position 置及 beauty executed to start the execution of the machining program,
When executing the machining program from the execution start position, the instruction to the execution start position of the machining program is read from the storage unit, and the machining program can be executed from the execution start position. after the operation, the numerical control device, characterized in that it comprises a program execution unit for executing only part up instruction corresponding to the execution ending position from the instruction corresponding to the execution start position of the machining program.
前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶手段に記憶し、
前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの前記実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から前記実行終了位置に相当する命令までの部分だけ実行すること
を特徴とする数値制御方法。 In a numerical control method for controlling the operation of a machine tool according to a machining program,
The store instructions until the execution start of the run end position and the machining program ends the execution start position 置及 beauty executed to start the execution of the machining program storage means,
When the machining program is executed from the execution start position, an instruction to the execution start position of the machining program is read from the storage unit so that the machining program can be executed from the execution start position. After the return operation is performed, only the part from the command corresponding to the execution start position to the command corresponding to the execution end position of the machining program is executed.
前記数値制御装置を、
前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶手段に記憶する手段、及び
前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの前記実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から前記実行終了位置に相当する命令までの部分だけ実行する手段
として機能させることを特徴とするコンピュータプログラム。 In a computer program that can be executed by a numerical control device that controls the operation of a machine tool according to a machining program,
The numerical control device,
Means for storing in storage means the execution ending position and the instruction to the execution start position of the machining program ends the execution start position 置及 beauty executed to start the execution of the machining program, and
When the machining program is executed from the execution start position, an instruction to the execution start position of the machining program is read from the storage unit so that the machining program can be executed from the execution start position. A computer program that functions as means for executing only a part from an instruction corresponding to the execution start position to an instruction corresponding to the execution end position of the machining program after performing a return operation .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006048633A JP4654937B2 (en) | 2006-02-24 | 2006-02-24 | Numerical control apparatus, numerical control method, and computer program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006048633A JP4654937B2 (en) | 2006-02-24 | 2006-02-24 | Numerical control apparatus, numerical control method, and computer program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007226648A JP2007226648A (en) | 2007-09-06 |
JP4654937B2 true JP4654937B2 (en) | 2011-03-23 |
Family
ID=38548395
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006048633A Expired - Fee Related JP4654937B2 (en) | 2006-02-24 | 2006-02-24 | Numerical control apparatus, numerical control method, and computer program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4654937B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014013539A (en) * | 2012-07-05 | 2014-01-23 | Fanuc Ltd | Numerical control device including program resuming function |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010097414A (en) * | 2008-10-16 | 2010-04-30 | Citizen Machinery Co Ltd | Apparatus and method for controlling machine tool |
JP7015260B2 (en) * | 2019-02-13 | 2022-02-02 | ファナック株式会社 | Machine control device and control method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0214303A (en) * | 1988-07-01 | 1990-01-18 | Mitsubishi Heavy Ind Ltd | Numerical controller |
JPH0241504A (en) * | 1988-08-02 | 1990-02-09 | Fanuc Ltd | Executing method for part program |
JPH05158518A (en) * | 1991-12-05 | 1993-06-25 | Okuma Mach Works Ltd | Halfway actuating method in numerical controller |
JPH09160620A (en) * | 1995-12-08 | 1997-06-20 | Toshiba Mach Co Ltd | Numerical controller |
JP2000089813A (en) * | 1998-09-11 | 2000-03-31 | Mitsubishi Electric Corp | Working program editing method and controller for machine tool |
JP2000293212A (en) * | 1999-04-02 | 2000-10-20 | Amada Co Ltd | Nc working device and its interruption processing method |
-
2006
- 2006-02-24 JP JP2006048633A patent/JP4654937B2/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0214303A (en) * | 1988-07-01 | 1990-01-18 | Mitsubishi Heavy Ind Ltd | Numerical controller |
JPH0241504A (en) * | 1988-08-02 | 1990-02-09 | Fanuc Ltd | Executing method for part program |
JPH05158518A (en) * | 1991-12-05 | 1993-06-25 | Okuma Mach Works Ltd | Halfway actuating method in numerical controller |
JPH09160620A (en) * | 1995-12-08 | 1997-06-20 | Toshiba Mach Co Ltd | Numerical controller |
JP2000089813A (en) * | 1998-09-11 | 2000-03-31 | Mitsubishi Electric Corp | Working program editing method and controller for machine tool |
JP2000293212A (en) * | 1999-04-02 | 2000-10-20 | Amada Co Ltd | Nc working device and its interruption processing method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014013539A (en) * | 2012-07-05 | 2014-01-23 | Fanuc Ltd | Numerical control device including program resuming function |
Also Published As
Publication number | Publication date |
---|---|
JP2007226648A (en) | 2007-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6378264B2 (en) | Automatic backup device, automatic backup method and program | |
US20100204818A1 (en) | Numerical control device | |
JP5543534B2 (en) | Numerical control device with program restart function | |
US10534347B2 (en) | Control device for machine tool | |
JP5859173B1 (en) | Engineering tool, program editing device, and program editing system | |
JP4654937B2 (en) | Numerical control apparatus, numerical control method, and computer program | |
JP4266893B2 (en) | Robot control apparatus and robot system | |
US10310488B2 (en) | Numerical controller having program correction assistance function for alarm solution | |
JPH103307A (en) | Numerical controller | |
JP2006172388A (en) | Numerical controller | |
JP5339815B2 (en) | Numerical control device with processing resumption function | |
JP2002373008A (en) | Numerical controller | |
JP2016059989A (en) | Robot control device, robot device, robot control method, program, and recording medium | |
JP2013233604A (en) | Method and device of monitoring control of production apparatus, and production system | |
US10705489B2 (en) | Controller | |
US20110184549A1 (en) | Machining Tool Control System and Control Method | |
WO2020136899A1 (en) | Numerical control device and machine learning device | |
JP3180805B2 (en) | Numerically controlled machine tools | |
US20240116191A1 (en) | Robot control device, robot control system, and robot control method | |
JP2009080621A (en) | Numerical control device, numerical control program, and storage medium storing numerical control program | |
JP4396554B2 (en) | Numerical control apparatus, numerical control method, and control program | |
JP2006079561A (en) | Numerical control apparatus, numerical control method, control program, and recording medium | |
JP2013114425A (en) | Numerical controller | |
JP5008520B2 (en) | How to display data entry status in the display screen | |
JP2008234379A (en) | Software generation apparatus and software generation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080313 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091228 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100907 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101104 |
|
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: 20101124 |
|
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: 20101207 |
|
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: 4654937 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |