[go: up one dir, main page]

JP4654937B2 - Numerical control apparatus, numerical control method, and computer program - Google Patents

Numerical control apparatus, numerical control method, and computer program Download PDF

Info

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
Application number
JP2006048633A
Other languages
Japanese (ja)
Other versions
JP2007226648A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2006048633A priority Critical patent/JP4654937B2/en
Publication of JP2007226648A publication Critical patent/JP2007226648A/en
Application granted granted Critical
Publication of JP4654937B2 publication Critical patent/JP4654937B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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参照)。
特許第3660038号公報
In order to solve such a problem, conventionally, machining was performed correctly on an unmachined workpiece by re-execution from a process in the middle of a machining program by a sequence number search function, a program restart function, or the like. . In addition, a judgment symbol that specifies whether or not to skip the block is added to the block of the machining program, and the machining program is executed while ignoring the block designated for block skipping when the machining program is executed. Thus, partial re-execution of the machining program was realized (see Patent Document 1).
Japanese Patent No. 3660038

しかしながら、上述したシーケンス番号サーチ機能、プログラムリスタート機能を用いる場合、加工プログラムを起動する都度再実行するシーケンス番号を指定する必要があり、工作機械ごとにシーケンス番号を指定する作業が発生する等、再加工する工数を低減することが困難であるという問題点があった。   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.

また、第発明に係る数値制御方法は、加工プログラムに従って工作機械の動作を制御する数値制御方法において、前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶手段に記憶し、前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの前記実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から前記実行終了位置に相当する命令までの部分だけ実行することを特徴とする。 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.

また、第1発明に係るコンピュータプログラムは、加工プログラムに従って工作機械の動作を制御する数値制御装置で実行することが可能なコンピュータプログラムにおいて、前記数値制御装置を、前記加工プログラムの実行を開始する実行開始位置及び実行を終了する実行終了位置並びに前記加工プログラムの実行開始位置までの命令を記憶手段に記憶する手段、及び前記実行開始位置から加工プログラムを実行する場合に、前記加工プログラムの前記実行開始位置までの命令を前記記憶手段から読み出して、前記加工プログラムを前記実行開始位置から実行することが可能な状態とする復帰運転を行った後、前記加工プログラムの前記実行開始位置に相当する命令から前記実行終了位置に相当する命令までの部分だけ実行する手段として機能させることを特徴とする。 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発明、第発明、及び第1発明では、加工プログラムの実行を開始する実行開始位置、及び実行を終了する実行終了位置を記憶手段に記憶しておき、該記憶手段から実行開始位置及び実行終了位置を読み出し、加工プログラムの実行開始位置に相当する命令から実行終了位置に相当する命令までの部分だけ実行する。記憶手段に実行開始位置及び実行終了位置を記憶しておくことにより、加工プログラムの更新作業が不要であり、加工プログラムの戻し忘れ等の人為的エラーを未然に回避することができ、加工プログラムの実行終了位置も確実に指定することが可能となる。したがって、加工プログラムの更新作業が発生することなく、再実行することが必要な部分だけ再実行することが可能となる。また加工プログラムの実行開始位置までの命令を記憶手段に記憶し、実行開始位置から加工プログラムを部分的に実行する場合、加工プログラムの実行開始位置までの命令を記憶手段から読み出して、加工プログラムを実行開始位置から実行することが可能な状態とする復帰運転を行う。これにより、加工プログラムを実行開始位置まで単純にスキップするだけではなく、部分的に加工プログラムを開始する場合であっても、それまでの命令が実行された場合と同様の初期条件下で実行することが可能となる。 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 numerical control device 1 according to the first embodiment of the present invention is used in a machine tool of three-axis control. In FIG. 1, a numerical controller 1 includes at least a CPU (central processing unit) 11, a ROM 12, a RAM 13, an input / output interface 14, an output interface 20 that outputs signals for controlling driving of various motors to be controlled, and a storage. Means 26 are connected via the internal bus 19. The input / output interface 14 is connected to an input unit 15 such as a mouse and a keyboard, a display unit 16 such as a display, an auxiliary storage unit 17, and a communication unit 18 that performs data communication with the outside.

CPU11は、内部バス19を介して数値制御装置1の上述したようなハードウェア各部と接続されており、上述したハードウェア各部を制御するとともに、RAM13に格納された加工プログラム3又は補助記憶手段17であるCD−ROM、DVD等の(可搬型)記録媒体2を用いてRAM13へ導入された加工プログラム3に従って、出力インタフェース20を介して接続されている種々の機器の動作を制御する。   The CPU 11 is connected to the hardware units as described above of the numerical controller 1 via the internal bus 19, and controls the hardware units described above, and also processes the machining program 3 or auxiliary storage means 17 stored in the RAM 13. The operation of various devices connected via the output interface 20 is controlled in accordance with the machining program 3 introduced into the RAM 13 using a (portable) recording medium 2 such as a CD-ROM or DVD.

RAM13は、SRAM、フラッシュメモリ等で構成されソフトウェアの実行時に発生する一時的なデータ、ソフトウェアの実行に必要なデータ等を記憶する。入出力インタフェース14を介して接続されている入力手段15は、数値制御装置1を操作するために必要な文字キー、テンキー、各種のファンクションキー等を備えたキーボード、マウス等の入力媒体である。表示手段16は、液晶表示装置、CRTディスプレイ等の表示装置であり、数値制御装置1の動作状態を示す画像、ユーザへ操作入力を促す画像等を表示する。なお、表示手段16をタッチパネル方式とすることにより、入力手段15の各種のファンクションキーの内の一部又は全部を表示手段16が代用することも可能である。通信手段18は、外部からのデータの取得、外部装置の動作制御データ等を送受信する。   The RAM 13 is composed of SRAM, flash memory, etc., and stores temporary data generated during execution of software, data necessary for execution of software, and the like. The input means 15 connected via the input / output interface 14 is an input medium such as a keyboard and a mouse provided with character keys, numeric keys, various function keys and the like necessary for operating the numerical control device 1. The display means 16 is a display device such as a liquid crystal display device or a CRT display, and displays an image indicating an operation state of the numerical control device 1, an image for prompting an operation input to the user, and the like. Note that the display means 16 can be substituted for some or all of the various function keys of the input means 15 by adopting a touch panel system for the display means 16. The communication means 18 transmits and receives external data acquisition, external device operation control data, and the like.

記憶手段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 machining program 3 specified based on information included in a tool change command for instructing tool change. And the execution end position is stored. By controlling the partial execution start position and execution end position of the machining program 3 based on the tool change command, for example, when a predetermined tool breaks, only the command related to the machining portion by the tool is partially re-executed. It is possible to avoid performing a useless process and minimize the rework process.

出力インタフェース20は、X軸モータ22、Y軸モータ23、Z軸モータ24、及び主軸モータ25のそれぞれを駆動させる駆動回路21、21、21、21へ駆動信号を送信する。   The output interface 20 transmits drive signals to drive circuits 21, 21, 21, 21 that drive the X-axis motor 22, the Y-axis motor 23, the Z-axis motor 24, and the main shaft motor 25, respectively.

以下、上述した構成の数値制御装置1を備えた工作機械を複数用いて大量生産を行う場合、一の工作機械で工具の一部が折損等したときには、既に大量のワークに対して加工が完了していることがある。したがって、既に折損した工具等で異常な加工が行われたワークに対して、再度正常な状態で加工を行う必要がある。   Hereinafter, when mass production is performed using a plurality of machine tools equipped with the numerical control device 1 having the above-described configuration, when a part of the tool is broken by one machine tool, machining has already been completed for a large number of workpieces. Have Therefore, it is necessary to perform machining in a normal state again on a workpiece that has already been abnormally machined with a broken tool or the like.

図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 machining program 3 executed by the numerical control apparatus 1 according to the first embodiment. In the machining program 3 shown in FIG. 2, a tool number “Tn” (n is a natural number), which is information for identifying a tool, is assigned to the tool change command “M6”. The sequence numbers “N10” to “N130” correspond to the block numbers 1 to 13, respectively, and “M30” indicates that the machining program 3 is an end block.

図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 machining program 3 executed by the numerical control device 1 according to the first embodiment is partially re-executed. . The execution part specifying information is received by the CPU 11 from the user and stored in the storage unit 26. In the example of FIG. 3, the execution start position and the execution end position when the machining program 3 is partially re-executed are specified by the tool number and the sequence number included in the tool change command of the machining program 3.

シーケンス番号を用いる場合、加工プログラム3のシーケンス番号で部分的に実行する範囲を特定する。工具番号を用いる場合、加工プログラム3の命令に含まれる工具番号への工具交換命令で部分的に実行する範囲を特定する。また、実行終了位置には‘any’を用い、実行開始位置を特定した工具番号以外の工具番号への工具交換命令を検出した時点で実行を終了するようにしても良い。   When the sequence number is used, a range to be partially executed is specified by the sequence number of the machining program 3. When the tool number is used, a range to be partially executed is specified by a tool change command to the tool number included in the command of the machining program 3. Further, “any” may be used as the execution end position, and the execution may be ended when a tool change command for a tool number other than the tool number specifying the execution start position is detected.

図3の例では、CPU11は、まず1ブロック目の命令‘M8’を解釈し、ブロック番号1に対応するシーケンス番号10である1ブロック目の命令‘M8’を実行する。CPU11は、次のブロックの命令‘M20’を解釈し、図3に示す実行終了位置に該当しないと判断して、命令‘M20’を実行する。   In the example of FIG. 3, the CPU 11 first interprets the instruction “M8” of the first block, and executes the instruction “M8” of the first block having the sequence number 10 corresponding to the block number 1. The CPU 11 interprets the instruction “M20” in the next block, determines that it does not correspond to the execution end position shown in FIG. 3, and executes the instruction “M20”.

CPU11は、次のブロックの命令‘G54G0X0Y0Z0’を解釈し、図3に示す実行終了位置に該当すると判断して、命令‘G54G0X0Y0Z0’を実行しない。同様にCPU11は、次の実行開始位置に該当する工具交換命令‘M6T2’まで命令をスキップし、工具番号‘2’が一致している工具交換命令‘M6T2’を実行する。CPU11は、実行終了位置に該当する工具交換命令‘M6T3’までの命令を実行する。そして、終了ブロックである‘M30’により運転を終了する。   The CPU 11 interprets the instruction “G54G0X0Y0Z0” of the next block, determines that it corresponds to the execution end position shown in FIG. 3, and does not execute the instruction “G54G0X0Y0Z0”. Similarly, the CPU 11 skips the command up to the tool change command ‘M6T2’ corresponding to the next execution start position, and executes the tool change command ‘M6T2’ that matches the tool number ‘2’. The CPU 11 executes commands up to the tool change command 'M6T3' corresponding to the execution end position. Then, the operation is terminated by 'M30' which is an end block.

なお、上述の例では、実行終了位置の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 machining program 3 to the tool number corresponding to the effective start position. When the execution end position is designated by the number of tool replacements, a command in which the number of tool replacements from the machining program command after the execution start position to the tool number corresponding to the execution end position is designated, or Execution ends with the previous instruction. Furthermore, when the execution end position is detected to include a tool change to a tool number different from the tool number specified at the execution start position, the tool change instruction including the tool number, or the tool change instruction It may be a command one before. The designation of “any” in the above example corresponds to this. Of course, the number of tool change commands is counted, and the execution start position and the execution end position are specified based on the number of tool change commands so that, for example, the third tool change command to the fifth tool change command are executed. May be.

図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 machining program 3 when machining is performed again. As shown in FIG. 4, the designation reception screen inputs / displays a machining program display area 41 for displaying commands of the machining program 3 in units of blocks, and an execution start position and an execution end position for partially executing the machining program 3. An execution range input area 42 and an item selection area 43 for receiving selection of which item to specify the execution start position and the execution end position are provided.

ユーザは、加工プログラム表示領域41に表示されている加工プログラムを閲覧しながら、どこを、又はどの工具について部分的に再実行させるか判断し、項目選択領域43へ実行開始位置及び実行終了位置を指定する項目を入力する。図4の例では、入力値が‘0’である場合には、設定を終了する。入力値が‘1’である場合には、工具番号に基づいて設定する。同様に、入力値が‘2’である場合にはシーケンス番号に基づいて、入力値が‘3’である場合にはブロック番号に基づいて、それぞれ設定する。   While viewing the machining program displayed in the machining program display area 41, the user determines where or which tool is to be partially re-executed, and sets the execution start position and execution end position in the item selection area 43. Enter the item to be specified. In the example of FIG. 4, when the input value is “0”, the setting is completed. When the input value is “1”, it is set based on the tool number. Similarly, when the input value is ‘2’, it is set based on the sequence number, and when the input value is ‘3’, it is set based on the block number.

項目選択領域43へ実行開始位置及び実行終了位置を指定する項目が入力された場合、実行範囲入力領域42に設定対象となる項目が表示され、空欄となっている「実行開始位置」及び「実行終了位置」へそれぞれの項目に応じて値を入力する。   When items specifying the execution start position and the execution end position are input to the item selection area 43, the items to be set are displayed in the execution range input area 42, and the “execution start position” and “execution” fields that are blank are displayed. Enter a value in "End position" according to each item.

図5は、本発明の実施の形態1に係る数値制御装置1で加工プログラム3を部分的に再実行する場合のCPU11の処理手順を示すフローチャートである。数値制御装置1のCPU11は、実行対象となる加工プログラム3の選択を受け付け(ステップS501)、選択された加工プログラム3を起動し、フラグ情報を‘0’に初期化する(ステップS502)。   FIG. 5 is a flowchart showing a processing procedure of the CPU 11 when the machining program 3 is partially re-executed by the numerical controller 1 according to the first embodiment of the present invention. The CPU 11 of the numerical controller 1 accepts the selection of the machining program 3 to be executed (step S501), activates the selected machining program 3, and initializes the flag information to ‘0’ (step S502).

CPU11は、実行範囲が指定されているか否かを判断し(ステップS503)、CPU11が、実行範囲が指定されていないと判断した場合(ステップS503:NO)、CPU11は、該加工プログラムを最初の命令から最後の命令まで順次実行する(ステップS504)。CPU11が、実行範囲が指定されていると判断した場合(ステップS503:YES)、CPU11は、指定されている実行範囲、すなわち該加工プログラム3の実行開始位置及び実行終了位置を読み出し(ステップS505)、加工プログラム3の命令を順次1ブロックずつ解釈する(ステップS506)。   The CPU 11 determines whether or not the execution range is specified (step S503). When the CPU 11 determines that the execution range is not specified (step S503: NO), the CPU 11 executes the machining program for the first time. The command is sequentially executed from the command to the last command (step S504). When the CPU 11 determines that the execution range is designated (step S503: YES), the CPU 11 reads the designated execution range, that is, the execution start position and the execution end position of the machining program 3 (step S505). Then, the commands of the machining program 3 are sequentially interpreted block by block (step S506).

CPU11は、解釈したブロックの命令が‘M30’であるか否か、すなわち加工プログラム3の実行終了命令であるか否かを判断し(ステップS507)、CPU11が、解釈したブロックの命令が‘M30’であると判断した場合(ステップS507:YES)、CPU11は、該加工プログラム3の実行を終了する。   The CPU 11 determines whether or not the interpreted block instruction is 'M30', that is, whether or not it is an execution end instruction of the machining program 3 (step S507), and the CPU 11 interprets the block instruction that is 'M30'. If it is determined that it is' (step S507: YES), the CPU 11 ends the execution of the machining program 3.

CPU11が、解釈したブロックの命令が‘M30’でないと判断した場合(ステップS507:NO)、CPU11は、フラグ情報が‘0’であるか否かを判断する(ステップS508)。CPU11が、フラグ情報が‘0’であると判断した場合(ステップS508:YES)、CPU11は、解釈したブロックが実行開始位置であるか否かを判断する(ステップS509)。   When the CPU 11 determines that the interpreted block instruction is not 'M30' (step S507: NO), the CPU 11 determines whether the flag information is '0' (step S508). When the CPU 11 determines that the flag information is “0” (step S508: YES), the CPU 11 determines whether or not the interpreted block is an execution start position (step S509).

CPU11が、解釈したブロックが実行開始位置ではないと判断した場合(ステップS509:NO)、CPU11は、処理をステップS506へ戻し、上述した処理を繰り返す。CPU11が、フラグ情報が‘0’ではないと判断した場合(ステップS508:NO)、CPU11は、解釈したブロックが実行終了位置であるか否かを判断する(ステップS510)。   When the CPU 11 determines that the interpreted block is not the execution start position (step S509: NO), the CPU 11 returns the process to step S506 and repeats the above-described process. When the CPU 11 determines that the flag information is not “0” (step S508: NO), the CPU 11 determines whether or not the interpreted block is an execution end position (step S510).

CPU11が、解釈したブロックが実行終了位置であると判断した場合(ステップS510:YES)、CPU11は、フラグ情報を‘0’に設定して(ステップS511)、処理をステップS506へ戻す。CPU11が、解釈したブロックが実行開始位置であると判断した場合(ステップS509:YES)、又は解釈したブロックが実行終了位置ではないと判断した場合(ステップS510:NO)、CPU11は、解釈されたブロックの命令を実行して、フラグ情報を‘1’に設定する(ステップS512)。CPU11は、処理をステップS506へ戻し、上述した処理を繰り返す。   When the CPU 11 determines that the interpreted block is the execution end position (step S510: YES), the CPU 11 sets the flag information to “0” (step S511), and returns the process to step S506. When the CPU 11 determines that the interpreted block is the execution start position (step S509: YES) or when the interpreted block is not the execution end position (step S510: NO), the CPU 11 is interpreted. The block instruction is executed to set the flag information to “1” (step S512). CPU11 returns a process to step S506, and repeats the process mentioned above.

以上のように本実施の形態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 storage unit 26, the machining program 3 need not be updated, and the machining program 3 is forgotten to be returned. The human error can be avoided in advance, and the execution end position of the machining program 3 can be specified with certainty. Therefore, it is possible to re-execute only a portion that needs to be re-executed without causing an update operation of the machining program 3.

(実施の形態2)
以下、本発明の実施の形態2に係る数値制御装置1について図面を参照しながら詳細に説明する。本発明の実施の形態2に係る数値制御装置1の構成は、実施の形態1と同様であることから、同一の符号を付することにより詳細な説明を省略する。本実施の形態2は、加工プログラム3を部分的に実行する場合に、部分的に実行する前段階の処理(復帰運転)を実行した後に部分的に加工プログラムを実行する点で実施の形態1と相違する。
(Embodiment 2)
Hereinafter, the numerical controller 1 according to Embodiment 2 of the present invention will be described in detail with reference to the drawings. Since the configuration of the numerical control device 1 according to the second embodiment of the present invention is the same as that of the first embodiment, detailed description thereof will be omitted by attaching the same reference numerals. In the second embodiment, when the machining program 3 is partially executed, the machining program is partially executed after executing the process (return operation) of the previous stage to be partially executed. Is different.

図6は、本実施の形態2に係る数値制御装置1で実行する加工プログラム3の一例を示す図である。図6に示す加工プログラム3では、ドリルサイクル‘G81’を用いてドリル加工する加工プログラム3を例に挙げている。なお、シーケンス番号‘N10’乃至‘N150’は、それぞれブロック番号1乃至15に対応しており、‘M30’は加工プログラム3の終了ブロックである旨を示している。   FIG. 6 is a diagram showing an example of the machining program 3 executed by the numerical control apparatus 1 according to the second embodiment. In the machining program 3 shown in FIG. 6, the machining program 3 for drilling using the drill cycle 'G81' is taken as an example. The sequence numbers “N10” to “N150” correspond to the block numbers 1 to 15, respectively, and “M30” indicates that the machining program 3 is an end block.

図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 machining program 3 executed by the numerical control device 1 according to the second embodiment is partially re-executed. . The execution part specifying information is received by the CPU 11 from the user and stored in the storage unit 26. In the example of FIG. 7, the execution start position and the execution end position when the machining program 3 is partially re-executed are designated by the block number of the machining program 3.

図7の例では、CPU11は、まず1ブロック目の命令‘M6T1G54’を解釈し、ブロック番号1が図7に示す実行開始位置に該当しないと判断し、復帰運転情報を記憶手段26へ記憶する。CPU11は、次のブロックの命令‘M8’を解釈し、同じく図7に示す実行開始位置に該当しないと判断して、復帰運転情報を記憶手段26へ記憶する。   In the example of FIG. 7, the CPU 11 first interprets the instruction “M6T1G54” in the first block, determines that the block number 1 does not correspond to the execution start position shown in FIG. 7, and stores the return operation information in the storage unit 26. . The CPU 11 interprets the instruction “M8” in the next block, determines that it does not correspond to the execution start position shown in FIG. 7, and stores the return operation information in the storage unit 26.

CPU11は、同様に順次ブロック命令を解釈し、ブロック番号7が図7に示す実行開始位置に該当すると判断して、命令‘X−20.Y−20.’を実行すべく復帰運転を実行する。具体的には工具1に工具を交換し、M8信号を出力し、主軸を1000回転として、X−10.Y−10.Z−50.へ移動する。そしてドリルサイクルG81を動作状態とする。   Similarly, the CPU 11 sequentially interprets the block instructions, determines that the block number 7 corresponds to the execution start position shown in FIG. Y-20. Return operation is executed to execute '. Specifically, the tool is changed to the tool 1, the M8 signal is output, the spindle is set to 1000 revolutions, and X-10. Y-10. Z-50. Move to. Then, the drill cycle G81 is set in the operating state.

CPU11は、命令‘X−20.Y−20.’を実行し、次のブロックの命令‘X−30.Y−30.’を解釈し、図7に示す実行終了位置に該当しないと判断して、命令‘X−30.Y−30.’を実行する。CPU11は、次のブロックの命令‘G0X0Y0Z50’を解釈し、図7に示す実行終了位置に該当すると判断して、復帰運転情報を記憶手段26へ記憶する。具体的には次に実行開始位置となるまでの命令を記憶手段26に記憶する。以下、同様にして命令を実行する前に必ず記憶手段26に記憶してある復帰運転情報に基づいて復帰運転を行った後に、実行開始位置に該当する命令を実行する。これにより、加工プログラム3を実行開始位置まで単純にスキップするだけではなく、部分的に加工プログラム3を開始する場合であっても、それまでの命令が実行された場合と同様の初期条件下、例えば工具の位置、状態等で実行することができる。   The CPU 11 sends the instruction 'X-20. Y-20. 'And execute the instruction' X-30. Y-30. 'And interprets that it does not correspond to the execution end position shown in FIG. Y-30. 'Is executed. The CPU 11 interprets the instruction ‘G0X0Y0Z50’ of the next block, determines that it corresponds to the execution end position shown in FIG. 7, and stores the return operation information in the storage unit 26. Specifically, instructions until the next execution start position are stored in the storage means 26. In the same manner, after executing the return operation based on the return operation information always stored in the storage means 26 before executing the command, the command corresponding to the execution start position is executed. Thereby, not only the machining program 3 is simply skipped to the execution start position, but even when the machining program 3 is partially started, the same initial conditions as those when the previous command is executed are: For example, it can be executed according to the position and state of the tool.

なお、上述の例では、実行終了位置の命令まで実行する場合について説明しているが、特にこれに限定されるものではなく、実行終了位置の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 CPU 11 when the machining program 3 is partially re-executed by the numerical controller 1 according to the first embodiment of the present invention. The CPU 11 of the numerical controller 1 accepts the selection of the machining program 3 to be executed (step S801), activates the selected machining program 3, and initializes the flag information to ‘0’ (step S802).

CPU11は、実行範囲が指定されているか否かを判断し(ステップS803)、CPU11が、実行範囲が指定されていないと判断した場合(ステップS803:NO)、CPU11は、該加工プログラムを最初の命令から最後の命令まで順次実行する(ステップS804)。CPU11が、実行範囲が指定されていると判断した場合(ステップS803:YES)、CPU11は、指定されている実行範囲、すなわち該加工プログラム3の実行開始位置及び実行終了位置を読み出し(ステップS805)、加工プログラム3の命令を順次1ブロックずつ解釈する(ステップS806)。   The CPU 11 determines whether or not the execution range is specified (step S803), and when the CPU 11 determines that the execution range is not specified (step S803: NO), the CPU 11 executes the machining program for the first time. The command is sequentially executed from the instruction to the last instruction (step S804). When the CPU 11 determines that the execution range is designated (step S803: YES), the CPU 11 reads the designated execution range, that is, the execution start position and the execution end position of the machining program 3 (step S805). Then, the instructions of the machining program 3 are sequentially interpreted one block at a time (step S806).

CPU11は、解釈したブロックの命令が‘M30’であるか否か、すなわち加工プログラム3の実行終了命令であるか否かを判断し(ステップS807)、CPU11が、解釈したブロックの命令が‘M30’であると判断した場合(ステップS807:YES)、CPU11は、該加工プログラム3の実行を終了する。   The CPU 11 determines whether or not the interpreted block instruction is 'M30', that is, whether or not it is an execution end instruction of the machining program 3 (step S807), and the CPU 11 interprets the block instruction as 'M30'. If it is determined that it is' (step S807: YES), the CPU 11 ends the execution of the machining program 3.

CPU11が、解釈したブロックの命令が‘M30’でないと判断した場合(ステップS807:NO)、CPU11は、フラグ情報が‘0’であるか否かを判断する(ステップS808)。CPU11が、フラグ情報が‘0’であると判断した場合(ステップS808:YES)、CPU11は、解釈したブロックが実行開始位置であるか否かを判断する(ステップS809)。   When the CPU 11 determines that the interpreted block instruction is not 'M30' (step S807: NO), the CPU 11 determines whether or not the flag information is '0' (step S808). When the CPU 11 determines that the flag information is “0” (step S808: YES), the CPU 11 determines whether or not the interpreted block is the execution start position (step S809).

CPU11が、解釈したブロックが実行開始位置ではないと判断した場合(ステップS809:NO)、CPU11は、解釈したブロックを復帰運転情報として記憶手段26に記憶し(ステップS810)、処理をステップS806へ戻し、上述した処理を繰り返す。CPU11が、フラグ情報が‘0’ではないと判断した場合(ステップS808:NO)、CPU11は、解釈したブロックが実行終了位置であるか否かを判断する(ステップS811)。   If the CPU 11 determines that the interpreted block is not the execution start position (step S809: NO), the CPU 11 stores the interpreted block in the storage means 26 as return operation information (step S810), and the process proceeds to step S806. Return and repeat the process described above. When the CPU 11 determines that the flag information is not “0” (step S808: NO), the CPU 11 determines whether or not the interpreted block is an execution end position (step S811).

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 CPU 11 determines that the interpreted block is the execution end position (step S811: YES), the CPU 11 sets the flag information to “0” (step S812) and stores the interpreted block as the return operation information. It memorize | stores in the means 26 (step S813), returns a process to step S806, and repeats the process mentioned above. When the CPU 11 determines that the interpreted block is the execution start position (step S809: YES), the CPU 11 executes the return operation according to the return operation information stored in the storage unit 26 (step S814). After the CPU 11 performs the return operation or when it is determined that the interpreted block is not the execution end position (step S811: NO), the CPU 11 executes the command of the interpreted block and sets the flag information to “1”. Setting is made (step S815). CPU11 returns a process to step S806, and repeats the process mentioned above.

以上のように本実施の形態2によれば、加工プログラム3を実行開始位置まで単純にスキップするだけではなく、部分的に加工プログラム3を開始する場合であっても、それまでの命令が実行された場合と同様の初期条件下で実行することが可能となる。   As described above, according to the second embodiment, not only the machining program 3 is simply skipped to the execution start position, but even when the machining program 3 is partially started, instructions up to that point are executed. It is possible to execute under the same initial conditions as those performed.

本発明の実施の形態1に係る数値制御装置を3軸制御の工作機械に用いる場合の構成を示すブロック図である。It is a block diagram which shows the structure in the case of using the numerical control apparatus which concerns on Embodiment 1 of this invention for the machine tool of 3-axis control. 本実施の形態1に係る数値制御装置で実行する加工プログラムの一例を示す図である。It is a figure which shows an example of the processing program performed with the numerical control apparatus which concerns on this Embodiment 1. FIG. 本実施の形態1に係る数値制御装置で実行する加工プログラムを部分的に再実行する場合の実行開始位置及び実行終了位置を示す実行部分特定情報の一例を示す図である。It is a figure which shows an example of the execution part specific information which shows the execution start position and execution end position in the case of partially re-executing the processing program performed with the numerical control apparatus which concerns on this Embodiment 1. FIG. 再度加工を行う場合の加工プログラムの実行開始位置、及び実行終了位置の指定を受け付ける画面の一例を示す図である。It is a figure which shows an example of the screen which receives designation | designated of the execution start position and execution end position of a process program in the case of performing a process again. 本発明の実施の形態1に係る数値制御装置で加工プログラムを部分的に再実行する場合のCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU in the case of partially re-executing a machining program with the numerical control apparatus which concerns on Embodiment 1 of this invention. 本実施の形態2に係る数値制御装置で実行する加工プログラムの一例を示す図である。It is a figure which shows an example of the machining program performed with the numerical control apparatus which concerns on this Embodiment 2. FIG. 本実施の形態2に係る数値制御装置で実行する加工プログラムを部分的に再実行する場合の実行開始位置及び実行終了位置を示す実行部分特定情報の一例を示す図である。It is a figure which shows an example of the execution part specific information which shows the execution start position and execution end position in the case of partially re-executing the processing program performed with the numerical control apparatus which concerns on this Embodiment 2. FIG. 本発明の実施の形態に係る数値制御装置で加工プログラムを部分的に再実行する場合のCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU in the case of partially re-executing a machining program with the numerical control apparatus which concerns on Embodiment 2 of this invention.

符号の説明Explanation of symbols

1 数値制御装置
2 記憶媒体
3 加工プログラム
11 CPU
12 ROM
13 RAM
15 入力手段
16 表示手段
26 記憶手段
DESCRIPTION OF SYMBOLS 1 Numerical control apparatus 2 Storage medium 3 Processing program 11 CPU
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.
前記実行開始位置及び前記実行終了位置は、工具の交換を指示する工具交換命令の情報に基づいて指定してあることを特徴とする請求項1記載の数値制御装置。   The numerical control device according to claim 1, wherein the execution start position and the execution end position are specified based on information of a tool replacement command that instructs tool replacement. 前記工具交換命令の情報は、工具の種類を識別する情報であることを特徴とする請求項2記載の数値制御装置。   The numerical control device according to claim 2, wherein the information on the tool change command is information for identifying a type of a tool. 前記実行終了位置は、前記実行開始位置で指定された工具の種類を識別する情報と異なる工具の種類を識別する情報を含む工具交換命令、又は該工具交換命令の1つ手前の命令であることを特徴とする請求項3記載の数値制御装置。   The execution end position is a tool change command including information for identifying a tool type different from the information for identifying the tool type specified at the execution start position, or a command immediately before the tool change command. The numerical control apparatus according to claim 3. 前記実行開始位置は、前記加工プログラムに記載されている工具の種類を識別する情報の数に基づいて指定してあることを特徴とする請求項3記載の数値制御装置。   The numerical control device according to claim 3, wherein the execution start position is specified based on the number of pieces of information for identifying the type of tool described in the machining program. 前記実行終了位置は、前記実行開始位置以降の前記加工プログラムに記載されている工具の種類を識別する情報の数に基づいて指定してあることを特徴とする請求項2記載の数値制御装置。   The numerical control device according to claim 2, wherein the execution end position is specified based on the number of pieces of information for identifying the type of tool described in the machining program after the execution start position. 前記実行開始位置及び実行終了位置は、前記加工プログラムに記載してある命令のシーケンス番号に基づいて指定してあることを特徴とする請求項1記載の数値制御装置。   The numerical control device according to claim 1, wherein the execution start position and the execution end position are specified based on a sequence number of an instruction described in the machining program. 前記実行開始位置及び実行終了位置は、前記加工プログラムのブロック番号に基づいて指定してあることを特徴とする請求項1記載の数値制御装置。   The numerical control device according to claim 1, wherein the execution start position and the execution end position are specified based on a block number 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 .
JP2006048633A 2006-02-24 2006-02-24 Numerical control apparatus, numerical control method, and computer program Expired - Fee Related JP4654937B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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