JP7092842B2 - Numerical control device - Google Patents

Numerical control device Download PDF

Info

Publication number
JP7092842B2
JP7092842B2 JP2020173352A JP2020173352A JP7092842B2 JP 7092842 B2 JP7092842 B2 JP 7092842B2 JP 2020173352 A JP2020173352 A JP 2020173352A JP 2020173352 A JP2020173352 A JP 2020173352A JP 7092842 B2 JP7092842 B2 JP 7092842B2
Authority
JP
Japan
Prior art keywords
block
machining
restart
command
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020173352A
Other languages
Japanese (ja)
Other versions
JP2021009729A (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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP2020173352A priority Critical patent/JP7092842B2/en
Publication of JP2021009729A publication Critical patent/JP2021009729A/en
Application granted granted Critical
Publication of JP7092842B2 publication Critical patent/JP7092842B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Laser Beam Processing (AREA)
  • Numerical Control (AREA)

Description

本発明は、数値制御装置に関する。 The present invention relates to a numerical control device.

従来、例えば旋盤、ボール盤、中ぐり盤、フライス盤、研削盤、歯切り盤・歯車仕上げ機械、マシニングセンタ、放電加工機、パンチプレス、レーザ加工機、搬送機及びプラスチック射出成形機といった工作機械を制御する制御装置が知られている。
例えば、レーザ光を用いてワークを加工するレーザ加工システムにおいて、制御装置がレーザ加工プログラムを実行している最中に、レーザ発振のための電力供給や媒体(特にガス)供給の異常、加工点へのアシストガス供給の異常等に起因して、或いはオペレータによる意図的な停止命令、安全確保のための緊急停止信号等に従って、レーザ加工プログラムの実行が中断される場合がある。
レーザ加工プログラムの実行の中断後、中断時の位置とは異なる位置でレーザ加工プログラムの実行を再開することができるレーザ加工システムは知られている。
Conventionally, machine tools such as lathes, drilling machines, boring machines, milling machines, grinding machines, gear cutting machines / gear finishing machines, machining centers, electric discharge machines, punch presses, laser machines, conveyors and plastic injection molding machines are controlled. Control devices are known.
For example, in a laser processing system that processes a workpiece using laser light, while the control device is executing a laser processing program, abnormalities in the power supply for laser oscillation, medium (especially gas) supply, and processing points. Execution of the laser processing program may be interrupted due to an abnormality in the supply of assist gas to the laser, or in accordance with an intentional stop command by the operator, an emergency stop signal for ensuring safety, or the like.
A laser machining system is known that can resume the execution of a laser machining program at a position different from the position at the time of interruption after the execution of the laser machining program is interrupted.

この点、特許文献1には、ワークを加工中に加工作業を中断した時、この中断点の情報(例えば、中断したプログラムの箇所を示すシーケンス番号、プログラムカウンタ、そのプログラムの名前や番号、親のプログラムの名前や番号、親プログラムのどの箇所から呼び出されたか、また、中断したブロックでどんな機能が実行されていたかを判別できる情報や、ポジションデータ、マクロ変数情報)を加工再開ブロックデータとして、現在の数値制御の状態をメモリに記憶し、当該加工再開ブロックデータをプログラム再開時に使用して、再開したいブロックまでプログラムを仮実行(「仮実行」:機械を駆動しないプログラムの計算処理を実行すること)して、モーダル情報(又は機能情報)や補助機能の状態を復活して再開する技術が存在することが開示されている。
また、特許文献1には、再開したいプログラムの箇所に仮実行せずにプログラム中のシーケンス番号のサーチを行ったり、仮実行せずにプログラムのブロックをカウントして加工再開ブロックまでサーチしたりして、プログラムの目的の箇所に高速に移動させて再開する技術も存在することが開示されている。
In this regard, Patent Document 1 describes information on the interruption point (for example, a sequence number indicating the location of the interrupted program, a program counter, a name or number of the program, and a parent) when the machining operation is interrupted while the workpiece is being machined. The name and number of the program, information that can be used to determine from which part of the parent program it was called, and what function was executed in the interrupted block, position data, macro variable information) are used as processing restart block data. The current numerical control status is stored in the memory, the machining restart block data is used when the program is restarted, and the program is provisionally executed up to the block to be restarted ("temporary execution": the calculation process of the program that does not drive the machine is executed. It is disclosed that there is a technique for restoring and resuming the state of modal information (or functional information) and auxiliary functions.
Further, in Patent Document 1, the sequence number in the program is searched without being provisionally executed at the location of the program to be restarted, or the block of the program is counted and searched up to the processing restart block without being provisionally executed. It is also disclosed that there is a technique for moving the program to the target location at high speed and restarting the program.

また、特許文献2には、レーザ加工システムにおいて、レーザ加工プログラムの実行を中断したときのレーザ加工機の稼働状況を正確に判定して、レーザ加工プログラムの実行を再開するときのレーザ加工機の再始動条件を、中断時の稼働状況に応じて適切に設定でするために、レーザ加工プログラムの実行を中断したときのレーザ加工機の稼働状況がワークを現実に加工しているレーザ加工中であるか否かを判定する稼働状況判定部と、稼働状況判定部の判定結果に応じて、レーザ加工プログラムの実行を再開するときのレーザ加工機の再始動条件(例えば、レーザ発振器の作動条件、加工ヘッドの位置等)を、レーザ加工プログラムにおける既定の条件の中で特定する再始動条件特定部とを備える数値制御装置が開示されている。
そうすることで、特許文献2に記載の制御装置は、例えば、再開位置を(1)レーザ加工プログラムPの実行を中断した位置Q5の直前の位置Q4、(2)レーザ加工プログラムPの実行を中断した位置Q5を含むブロックの始点の位置Q3、(3)レーザ加工プログラムPの実行を中断した位置Q5を含むブロックよりも前のブロックの始点の位置Q2、又は(4)レーザ加工プログラムPの実行を中断した位置Q5を含む加工経路の次の加工経路の加工開始点の位置Q6の何れかを再始動条件Cとして特定し、特定した(1)~(4)の何れかの位置に加工ヘッド34を移動する制御を行うと共にレーザ発振器の作動条件等の加工再開に必要な他の再始動条件にしたがってレーザ加工機を自動的に再始動させることができる。
Further, in Patent Document 2, in the laser processing system, the operating status of the laser processing machine when the execution of the laser processing program is interrupted is accurately determined, and the execution of the laser processing program is restarted. In order to set the restart conditions appropriately according to the operating status at the time of interruption, the operating status of the laser processing machine when the execution of the laser processing program is interrupted is actually processing the workpiece during laser processing. The restart condition of the laser processing machine (for example, the operating condition of the laser oscillator, etc.) when restarting the execution of the laser processing program according to the determination result of the operation status determination unit for determining the presence or absence and the determination result of the operation status determination unit. A numerical control device including a restart condition specifying unit that specifies a processing head position, etc.) within a predetermined condition in a laser processing program is disclosed.
By doing so, the control device described in Patent Document 2 may, for example, set the restart position to (1) the position Q4 immediately before the position Q5 where the execution of the laser processing program P is interrupted, and (2) the execution of the laser processing program P. The position Q3 of the start point of the block including the interrupted position Q5, (3) the position Q2 of the start point of the block before the block including the position Q5 where the execution of the laser processing program P is interrupted, or (4) the position of the start point Q2 of the laser processing program P. Any one of the positions Q6 of the machining start point of the machining path next to the machining path including the position Q5 where the execution was interrupted is specified as the restart condition C, and the machining is performed at any of the specified positions (1) to (4). It is possible to control the movement of the head 34 and automatically restart the laser processing machine according to other restart conditions necessary for resuming processing such as operating conditions of the laser oscillator.

上記のように、従来の数値制御装置においては、例えば、ユーザは、加工プログラム中のシーケンス番号のサーチを行ったり、仮実行せずにプログラムのブロックをカウントして加工再開ブロックまでサーチしたりして、プログラムの目的の箇所に高速に移動させて再開することができる。また、レーザ加工プログラムPの実行を中断した位置に基づいて、再開位置が設定された後、加工ヘッドを移動する制御を行うと共にレーザ発振器の作動条件等の加工再開に必要な他の再始動条件にしたがってレーザ加工機を自動的に再始動することができる。 As described above, in the conventional numerical control device, for example, the user searches for the sequence number in the machining program, or counts the blocks of the program and searches up to the machining restart block without tentative execution. Then, it can be moved to the target part of the program at high speed and restarted. Further, after the restart position is set based on the position where the execution of the laser machining program P is interrupted, the machining head is controlled to move, and other restart conditions necessary for restarting machining such as the operating condition of the laser oscillator are performed. The laser machine can be restarted automatically according to the procedure.

特開2010-044489号公報Japanese Unexamined Patent Publication No. 2010-044489 特開2015-208775号公報JP-A-2015-208775

従来の加工プログラムの実行の中断後に加工プログラムを再開する場合、例えば、オペレータは、中断時点における加工プログラムのブロック番号等に基づいて、再開するブロックを設定するために、加工プログラムをサーチする必要があった。
しかしながら、加工プログラムそのものをサーチすることで、再開するブロックを設定することから、オペレータにとって加工プログラムの再開に係る操作手順が多く、またオペレータにとっては、当該再開位置とするブロックが実際の加工経路のどこから再開するものであるかを直感的に把握することが困難であった。
When restarting the machining program after interrupting the execution of the conventional machining program, for example, the operator needs to search the machining program in order to set the block to be restarted based on the block number of the machining program at the time of interruption or the like. there were.
However, since the block to be restarted is set by searching the machining program itself, there are many operation procedures related to restarting the machining program for the operator, and for the operator, the block set as the restart position is the actual machining path. It was difficult to intuitively grasp where to restart.

本発明は、加工プログラムの実行の中断後に、加工を再開する場合に、オペレータにとって、プログラム再開位置候補を表示器に表示される加工経路上に表示することで、再開位置候補が実際の加工経路のどこから加工を再開するのかを視覚的に把握することを可能にすると共に、加工経路上に表示された再開位置候補の中から再開位置を設定することで、加工を再開するまでの手順が少ない数値制御装置を提供することを目的とする。 In the present invention, when the machining is restarted after the execution of the machining program is interrupted, the operator displays the program restart position candidate on the machining path displayed on the display, so that the restart position candidate is the actual machining path. It is possible to visually grasp where to restart machining, and by setting the restart position from the restart position candidates displayed on the machining path, there are few steps to restart machining. It is an object of the present invention to provide a numerical control device.

本発明に係る数値制御装置(例えば、後述の「数値制御装置100」)は、加工経路描画画面を表示する表示器(例えば、後述の「表示器170」)と、加工前に加工プログラムを解析する加工プログラム解析部(例えば、後述の「加工プログラム解析部121」)と、前記加工プログラムの解析結果に基づいて、前記加工経路描画画面に未加工の加工経路を描画する未加工経路描画部(例えば、後述の「未加工経路描画部122」)と、前記加工プログラムの解析結果に基づいて、加工を再開する再開位置の候補となるブロックの情報を記憶する再開位置候補設定部(例えば、後述の「再開位置候補設定部123」)と、加工処理中に加工中の時々刻々の現在位置を表示する加工中描画部(例えば、後述の「加工中描画部124」)と、加工が中断した場合に、前記再開位置候補設定部によって記憶された再開位置の候補となるブロックの先頭に対応する加工位置、及び加工が中断された中断ブロックの先頭に対応する加工位置を、前記加工経路描画画面に表示された前記加工経路上に描画すると共に、再開するブロックの経路全体を他の加工経路とは別の色で表示するブロック先頭位置描画部(例えば、後述の「ブロック先頭位置描画部125」)と、前記ブロック先頭位置描画部によって描画された前記加工位置の中からユーザによって指定された加工位置に対応するブロックを、再開ブロックとして設定する再開ブロック設定部(例えば、後述の「再開ブロック設定部126」)と、前記再開ブロック設定部により設定された再開ブロックに基づくユーザからの再開指示に応じて、当該加工の再開に必要なモーダル及び/又は補助機能の設定を行う準備プログラムを自動で実行する再開制御部(例えば、後述の「再開制御部127」)と、を備える。 The numerical control device according to the present invention (for example, "numerical control device 100" described later) analyzes a display (for example, "display 170" described later) for displaying a machining path drawing screen and a machining program before machining. A machining program analysis unit (for example, "machining program analysis unit 121" described later) and an unprocessed path drawing unit that draws an unprocessed machining path on the machining path drawing screen based on the analysis result of the machining program (for example, a machining program analysis unit 121). For example, a restart position candidate setting unit (for example, described later) that stores information of a block that is a candidate for a restart position for restarting machining based on the analysis result of the machining program and the “raw path drawing unit 122” described later). "Restart position candidate setting unit 123"), and the processing drawing unit (for example, "processing drawing unit 124" described later) that displays the current position of each moment during processing, and the processing is interrupted. In this case, the machining path drawing screen displays the machining position corresponding to the beginning of the block that is a candidate for the restart position stored by the restart position candidate setting unit and the machining position corresponding to the beginning of the interrupted block in which machining is interrupted. A block head position drawing unit (for example, "block head position drawing unit 125" described later) that draws on the processing path displayed in the above and displays the entire path of the restarting block in a color different from that of other processing paths. ) And the restart block setting unit (for example, "restart block setting" described later) that sets the block corresponding to the processing position specified by the user from the processing positions drawn by the block head position drawing unit as the restart block. In response to the restart instruction from the user based on the restart block set by the restart block setting unit, the preparation program for setting the modal and / or auxiliary functions necessary for restarting the machining is automatically performed. A restart control unit (for example, “restart control unit 127” described later) to be executed is provided.

(2) (1)に記載の数値制御装置において、前記再開位置候補設定部(例えば、後述の「再開位置候補設定部123」)は、前記再開位置の候補として、中断ブロック、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令、Bコード指令を含むブロック、及び位置決めブロックのうち、少なくとも1以上の種類のブロックを候補としてもよい。 (2) In the numerical control device according to (1), the restart position candidate setting unit (for example, "restart position candidate setting unit 123" described later) is a stop block and a subprogram call command as candidates for the restart position. Among blocks including, a block including a macro call command, a block including a macro modal call command, a block containing a G code command for enabling a predetermined function, a block containing an M code command, a block containing a B code command, and a positioning block. At least one or more types of blocks may be candidates.

(3) (1)又は(2)に記載の数値制御装置において、前記加工中描画部(例えば、後述の「加工中描画部124」)は、前記加工経路上に加工中の時々刻々の現在位置を前記再開位置候補設定部によって描画された未加工の加工経路上に重ねて描画してもよい。 (3) In the numerical control device according to (1) or (2), the machining drawing unit (for example, "machining drawing unit 124" described later) is currently being machined on the machining path. The position may be overlaid on the raw processing path drawn by the restart position candidate setting unit.

(4) (1)~(3)に記載の数値制御装置において、前記加工プログラムがレーザ加工プログラムの場合、前記再開位置候補設定部(例えば、後述の「再開位置候補設定部123」)は、前記再開位置の候補として、中断ブロック、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令、Bコード指令を含むブロック、位置決めブロック、ピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、及びアシストガス指令を含むブロックのうち、少なくとも1以上の種類のブロックを候補としてもよい。 (4) In the numerical control device according to (1) to (3), when the machining program is a laser machining program, the restart position candidate setting unit (for example, "restart position candidate setting unit 123" described later) may be used. Candidates for the restart position include a break block, a block including a subprogram call command, a block including a macro call command, a block including a macromodal call command, a block including a G code command for enabling a predetermined function, and an M code command. , A block including a B code command, a positioning block, a block including a piercing command, a block including a gap control command, and a block including an assist gas command, at least one type of block may be a candidate.

(5) (1)~(4)に記載の数値制御装置において、前記加工プログラムがレーザ加工プログラムの場合、前記再開制御部は、前記再開ブロック設定部により設定された再開ブロックがピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、又はアシストガス指令を含むブロックの場合に、ユーザからの再開指示に応じて、前記ピアッシング指令、前記ギャップ制御指令、又は前記アシストガス指令に係る準備プログラムを自動で実行してもよい。 (5) In the numerical control device according to (1) to (4), when the machining program is a laser machining program, the restart control unit includes a piercing command for the restart block set by the restart block setting unit. In the case of a block, a block including a gap control command, or a block containing an assist gas command, the piercing command, the gap control command, or the preparation program related to the assist gas command is automatically executed in response to a restart instruction from the user. You may do it.

本発明によれば、加工プログラムの実行の中断後に、加工を再開する場合に、オペレータにとって、プログラム再開位置候補を表示器に表示される加工経路上に表示することで、再開位置候補が実際の加工経路のどこから加工を再開するのかを視覚的に把握することを可能にすると共に、加工経路上に表示された再開位置候補の中から再開位置を設定することで、加工を再開するまでの手順が少ない数値制御装置を提供することが可能となる。 According to the present invention, when the machining is restarted after the execution of the machining program is interrupted, the restart position candidate is actually displayed by the operator on the machining path displayed on the display. The procedure for restarting machining by setting the restart position from the restart position candidates displayed on the machining path while making it possible to visually grasp where in the machining path the machining is restarted. It becomes possible to provide a numerical control device with a small number of.

本発明の一実施形態に係る数値制御装置の構成を示す図である。It is a figure which shows the structure of the numerical control apparatus which concerns on one Embodiment of this invention. 本発明の一実施形態に係る数値制御装置が備えるCPUの機能ブロック図である。It is a functional block diagram of the CPU provided in the numerical control device which concerns on one Embodiment of this invention. 本発明の一実施形態に係る数値制御装置の動作を示すフローチャートである。It is a flowchart which shows the operation of the numerical control apparatus which concerns on one Embodiment of this invention. 本発明の一実施形態に係る数値制御装置による加工経路描画画面の例である。This is an example of a machining path drawing screen by a numerical control device according to an embodiment of the present invention. 本発明の一実施形態に係る数値制御装置の操作手順の例を示すフローチャートである。It is a flowchart which shows the example of the operation procedure of the numerical control apparatus which concerns on one Embodiment of this invention.

〔1.第1実施形態〕
図1~図4を参照し、本発明の第1実施形態に係る数値制御装置について説明する。図1は、数値制御装置100の構成図である。図2は、数値制御装置100が備える制御部111の機能ブロック図である。図3は、数値制御装置100の動作を示すフローチャートである。図4は、数値制御装置100が有する表示器170に表示される加工経路描画画面の例である。
[1. First Embodiment]
A numerical control device according to a first embodiment of the present invention will be described with reference to FIGS. 1 to 4. FIG. 1 is a configuration diagram of a numerical control device 100. FIG. 2 is a functional block diagram of the control unit 111 included in the numerical control device 100. FIG. 3 is a flowchart showing the operation of the numerical control device 100. FIG. 4 is an example of a processing path drawing screen displayed on the display 170 of the numerical control device 100.

〔1.1 数値制御装置の構成〕
まず、図1及び図2を参照することにより、数値制御装置100の構成について説明する。図1を参照すると、数値制御装置100は、制御部111、ROM112、RAM113、CMOSメモリ114、複数のインタフェース(インタフェース115、インタフェース118、インタフェース119)、PLC116、I/Oユニット117、データ通信バス120、複数の軸制御回路(軸制御回路130~134)、複数のサーボアンプ(サーボアンプ140~144)、スピンドル制御回路160、スピンドルアンプ161、表示器/MDIユニット170、操作盤171、外部機器172、レーザ制御部180、を備える。
[1.1 Configuration of Numerical Control Device]
First, the configuration of the numerical control device 100 will be described with reference to FIGS. 1 and 2. Referring to FIG. 1, the numerical control device 100 includes a control unit 111, a ROM 112, a RAM 113, a CMOS memory 114, a plurality of interfaces (interface 115, interface 118, interface 119), a PLC 116, an I / O unit 117, and a data communication bus 120. , Multiple axis control circuits (axis control circuits 130 to 134), multiple servo amplifiers (servo amplifiers 140 to 144), spindle control circuit 160, spindle amplifier 161. Display / MDI unit 170, operation panel 171 and external device 172. , A laser control unit 180.

制御部111は数値制御装置100を全体的に制御し、例えばプロセッサを用いて実現される。制御部111は、ROM112に格納されたシステムプログラムとアプリケーションプログラムを、データ通信バス120を介して読み出し、該システムプログラムに従って数値制御装置100全体を制御すると共に、該アプリケーションプログラムに従って図2の機能ブロック図に示す各機能を実現する。制御部111の詳細については後述する。 The control unit 111 controls the numerical control device 100 as a whole, and is realized by using, for example, a processor. The control unit 111 reads out the system program and the application program stored in the ROM 112 via the data communication bus 120, controls the entire numerical control device 100 according to the system program, and controls the entire numerical control device 100 according to the system program, and also according to the application program, the functional block diagram of FIG. Realize each function shown in. The details of the control unit 111 will be described later.

RAM113には一時的な計算データや表示データ及び表示器170を介してオペレータが入力した各種データが格納される。 Temporary calculation data, display data, and various data input by the operator via the display 170 are stored in the RAM 113.

CMOSメモリ114は図示しないバッテリでバックアップされ、数値制御装置100の電源がオフされても記憶状態が保持される不揮発性メモリとして構成される。CMOSメモリ114中には、インタフェース115を介して読み込まれた加工プログラムや表示器170を介して入力された加工プログラム等が記憶される。 The CMOS memory 114 is backed up by a battery (not shown), and is configured as a non-volatile memory in which the storage state is maintained even when the power of the numerical control device 100 is turned off. The CMOS memory 114 stores a machining program read via the interface 115, a machining program input via the display 170, and the like.

ROM112には、加工プログラムの作成及び編集のために必要とされる編集モードの処理や自動運転のための処理を実施するための各種システムプログラムがあらかじめ書き込まれている。 Various system programs for carrying out processing in the editing mode required for creating and editing a machining program and processing for automatic operation are written in the ROM 112 in advance.

各種加工プログラムは、インタフェース115や表示器170を介して入力し、CMOSメモリ114に格納することができる。 Various machining programs can be input via the interface 115 and the display 170 and stored in the CMOS memory 114.

インタフェース115は、数値制御装置100とデータサーバ等の外部機器172との接続を可能とするものである。外部機器172側からは加工プログラムや各種パラメータ等が読み込まれる。また、数値制御装置100内で編集した加工プログラムは、外部機器172を介して外部記憶手段に記憶させることができる。 The interface 115 enables connection between the numerical control device 100 and an external device 172 such as a data server. Machining programs, various parameters, etc. are read from the external device 172 side. Further, the machining program edited in the numerical control device 100 can be stored in the external storage means via the external device 172.

PLC(プログラマブル・ロジック・コントローラ)116は、数値制御装置100に内蔵されたシーケンスプログラムで工作機械の補助装置にI/Oユニット117を介して信号を出力し制御する。また、工作機械の本体に配備された操作盤の各種スイッチ等の信号を受け、必要な信号処理をした後、CPU111に渡す。 The PLC (programmable logic controller) 116 is a sequence program built in the numerical control device 100, and outputs a signal to an auxiliary device of the machine tool via the I / O unit 117 for control. In addition, it receives signals from various switches on the operation panel installed in the main body of the machine tool, performs necessary signal processing, and then passes them to the CPU 111.

表示器170はディスプレイやキーボード等を備えた手動データ入力装置であり、インタフェース118は表示器170のキーボードからの指令やデータを受けてCPU111に渡す。
インタフェース119は手動パルス発生器等を備えた操作盤171に接続されている。
各軸の軸制御回路130~134はCPU111からの各軸の移動指令量を受けて、各軸の指令をサーボアンプ140~144に出力する。
The display 170 is a manual data input device including a display, a keyboard, and the like, and the interface 118 receives commands and data from the keyboard of the display 170 and passes them to the CPU 111.
The interface 119 is connected to an operation panel 171 equipped with a manual pulse generator or the like.
The axis control circuits 130 to 134 of each axis receive the movement command amount of each axis from the CPU 111, and output the command of each axis to the servo amplifiers 140 to 144.

サーボアンプ140~144はこの指令を受けて、各軸のサーボモータ150~154を駆動する。各軸のサーボモータ150~154は位置・速度検出器を内蔵し、この位置・速度検出器からの位置・速度フィードバック信号を軸制御回路130~134にフィードバックし、位置・速度のフィードバック制御を行う。なお、図1では、位置・速度のフィードバックについては省略している。 In response to this command, the servo amplifiers 140 to 144 drive the servomotors 150 to 154 of each axis. Servo motors 150 to 154 of each axis have a built-in position / velocity detector, and the position / velocity feedback signal from this position / velocity detector is fed back to the axis control circuits 130 to 134 to perform feedback control of position / velocity. .. Note that in FIG. 1, the feedback of position and speed is omitted.

スピンドル制御回路160は、工具が取り付けられた主軸への主軸回転指令を受け、スピンドルアンプ161にスピンドル速度信号を出力する。スピンドルアンプ161はこのスピンドル速度信号を受けて、スピンドルモータ162を指令された回転速度で回転させ、主軸に取り付けられた加工ヘッドを駆動する。 The spindle control circuit 160 receives a spindle rotation command to the spindle to which the tool is attached, and outputs a spindle speed signal to the spindle amplifier 161. In response to this spindle speed signal, the spindle amplifier 161 rotates the spindle motor 162 at the commanded rotation speed to drive the machining head attached to the spindle.

レーザ制御部180は、制御部111から、加工プログラムに基づいたレーザ加工のためのレーザ出力指令を受ける。ここで、レーザ出力指令には、例えば、所定の出力のレーザ光を照射するためのピークパワー、周波数及びデューティ比等の指示が含まれる。レーザ制御部180は、このレーザ出力指令に基づいた制御信号をレーザ加工部190に出力する。 The laser control unit 180 receives a laser output command for laser processing based on the processing program from the control unit 111. Here, the laser output command includes, for example, instructions such as a peak power, a frequency, and a duty ratio for irradiating a laser beam having a predetermined output. The laser control unit 180 outputs a control signal based on this laser output command to the laser processing unit 190.

レーザ加工部190は、レーザ光を発振して出射するレーザ発振器や、レーザ発振器から出射されたレーザ光を光学系で集光してワークに対して照射する加工ヘッドやノズルを備える部分である。レーザ加工部190は、レーザ制御部180からの制御信号に基づいて、所定の出力のレーザ光をワークに対して照射する。 The laser processing unit 190 is a portion including a laser oscillator that oscillates and emits laser light, and a processing head and a nozzle that collects the laser light emitted from the laser oscillator by an optical system and irradiates the work. The laser processing unit 190 irradiates the work with a laser beam having a predetermined output based on the control signal from the laser control unit 180.

なお、モータに接続された各軸によるワークや工具の一般的な移動の方法や、レーザ加工部190を用いた一般的なレーザ加工の方法については当業者にとってよく知られている。そこで、これらの点についての詳細な説明及び図示は省略する。 It should be noted that those skilled in the art are well aware of a general method of moving a work or a tool by each axis connected to a motor, and a general laser processing method using a laser processing unit 190. Therefore, detailed description and illustration of these points will be omitted.

また、上述した数値制御装置100の構成例はあくまで一例である。例えば、上述した構成例では、軸制御回路130~134の5つの軸制御回路と、サーボモータ150~154の5つのサーボモータが示されている。しかし、これに限定されることなく、任意の個数の軸制御回路及びサーボモータを備えるようにしてもよい。なお、図1に示す数値制御装置100はレーザ制御部180を備えるが、これは一例であって、これには限定されない。具体的には、数値制御装置100は、レーザ加工機以外の工作機械を制御してもよい。 Further, the configuration example of the numerical control device 100 described above is only an example. For example, in the above-mentioned configuration example, five axis control circuits of axis control circuits 130 to 134 and five servomotors of servo motors 150 to 154 are shown. However, the present invention is not limited to this, and any number of axis control circuits and servomotors may be provided. The numerical control device 100 shown in FIG. 1 includes a laser control unit 180, but this is an example and is not limited thereto. Specifically, the numerical control device 100 may control a machine tool other than the laser processing machine.

図2は、制御部111の機能ブロック図である。制御部111は、ROM112に格納されたアプリケーションプログラムを、データ通信バス120を介して読み出し、該アプリケーションプログラムに従って図2の機能ブロック図に示す各機能を実現する。 FIG. 2 is a functional block diagram of the control unit 111. The control unit 111 reads out the application program stored in the ROM 112 via the data communication bus 120, and realizes each function shown in the functional block diagram of FIG. 2 according to the application program.

加工プログラム解析部121は、加工前に加工プログラムを解析する。より具体的には、加工プログラム解析部121は、例えば、加工プログラムの構文を解析することにより、加工プログラムの構文木を生成し、生成した構文木に基づいて条件判断や動作を抽出してもよい。 The machining program analysis unit 121 analyzes the machining program before machining. More specifically, the machining program analysis unit 121 may generate a syntax tree of the machining program by analyzing the syntax of the machining program, and extract conditional judgments and actions based on the generated syntax tree. good.

未加工経路描画部122は、加工プログラム解析部121による加工プログラムの解析結果に基づいて、表示器170に表示された加工経路描画画面に、未加工の加工経路を描画する。 The unprocessed path drawing unit 122 draws an unprocessed machining path on the machining path drawing screen displayed on the display 170 based on the analysis result of the machining program by the machining program analysis unit 121.

再開位置候補設定部123は、加工プログラム解析部121による加工プログラムの解析結果に基づいて、加工を再開する再開位置の候補となるブロックの情報を記憶する。 The restart position candidate setting unit 123 stores the information of the block that is a candidate for the restart position for restarting the machining based on the analysis result of the machining program by the machining program analysis unit 121.

より具体的には、再開位置候補設定部123は、再開位置の候補となるブロックとして、特定の指令を含むブロックの情報を記憶する。ここで、特定の指令を含むブロックとしては、例えば、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令を含むブロック、Bコード指令を含むブロック、位置決めブロックが挙げられる。
なお、「サブプログラム呼び出し指令」とは、複数の加工プログラムに親子関係がある場合、親の加工プログラムから子の加工プログラムを呼び出す指令のことである。
また、「マクロ呼び出し指令」とは、メモリに登録された一群の命令であるマクロプログラムを呼び出す指令のことである。
また、「マクロモーダル呼び出し指令」とは、いったん呼び出したマクロプログラムを継続して使用しながら、変数のみを指示することによる、マクロプログラムの呼び出し指令のことである。
また、「Gコード指令」とは、加工を行うための準備機能を指示するGコードによる指令のことである。具体的には、「Gコード指令」とは、例えば、同期制御、混合制御、重畳制御、円筒補間、極座標補間、極座標指令、工具径補正、法線方向制御、工具先端点制御、工具長補正、スケーリング、座標回転、3次元座標変換、プログラマブルミラー、ワーク設置誤差補正等の機能を有効とするGコードによる指令である。
また、「Mコード指令」とは、後述のレーザ加工部190による加工を行うための補助機能を指示するMコードによる指令のことである。
また、「Bコード指令」とは、レーザ加工部190による加工を行うための第2補助機能を指示するBコードによる指令のことである。
また、「位置決めブロック」とは、レーザ加工部190の加工ヘッドを加工開始位置へ移動させるためのブロックのことである。
More specifically, the restart position candidate setting unit 123 stores information of a block including a specific command as a block that is a candidate for the restart position. Here, examples of the block including a specific command include a block including a subprogram call command, a block including a macro call command, a block including a macromodal call command, and a block including a G code command for enabling a predetermined function. , A block including an M code command, a block including a B code command, and a positioning block.
The "subprogram call command" is a command to call a child machining program from the parent machining program when a plurality of machining programs have a parent-child relationship.
Further, the "macro call command" is a command for calling a macro program, which is a group of commands registered in the memory.
Further, the "macro modal call command" is a command to call a macro program by instructing only a variable while continuing to use the macro program once called.
Further, the "G code command" is a command by the G code instructing the preparation function for performing the machining. Specifically, the "G code command" is, for example, synchronous control, mixing control, superimposition control, cylindrical interpolation, polar coordinate interpolation, polar coordinate command, tool diameter correction, normal direction control, tool tip point control, tool length correction. , Scaling, coordinate rotation, three-dimensional coordinate conversion, programmable mirror, work installation error correction, etc. are commands by G code.
Further, the "M code command" is a command by the M code instructing an auxiliary function for processing by the laser processing unit 190, which will be described later.
Further, the "B code command" is a command by the B code instructing the second auxiliary function for processing by the laser processing unit 190.
The "positioning block" is a block for moving the machining head of the laser machining section 190 to the machining start position.

また、加工プログラムがレーザ加工プログラムの場合に、再開位置候補設定部121は、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令を含むブロック、Bコード指令を含むブロック、位置決めブロックに加えて、ピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、及びアシストガス指令を含むブロックを、再開位置の候補となるブロックとしてもよい。
なお、「ピアッシング指令」とは、レーザによる穴あけ加工を指示する指令のことである。
また、「ギャップ制御指令」とは、レーザ発振を開始する前に、ギャップの寸法、すなわちギャップ量を目標値に到達させる先行動作を指示する指令のことである。
また、「アシストガス指令」とは、レーザ加工中に、ワークの加工点及びその周辺へのアシストガスを吹き付ける指令のことである。
Further, when the machining program is a laser machining program, the restart position candidate setting unit 121 enables a block including a subprogram call command, a block including a macro call command, a block including a macromodal call command, and a predetermined function. In addition to the block containing the G code command, the block containing the M code command, the block containing the B code command, and the positioning block, the block containing the piercing command, the block containing the gap control command, and the block containing the assist gas command are restarted. It may be a block that is a candidate for a position.
The "piercing command" is a command for instructing drilling with a laser.
Further, the "gap control command" is a command for instructing the size of the gap, that is, the preceding operation for causing the gap amount to reach the target value before starting the laser oscillation.
Further, the "assist gas command" is a command for blowing assist gas to the machining point of the work and its surroundings during laser machining.

なお、再開位置候補設定部123は、上記のブロックに加え、加工が中断した中断ブロックを、再開位置の候補となるブロックとする。 In addition to the above block, the restart position candidate setting unit 123 sets the interrupted block in which machining is interrupted as a block that is a candidate for the restart position.

加工中描画部124は、加工処理中に加工中の時々刻々の現在位置を、加工経路描画画面に描画する。とりわけ、加工中描画部124は、未加工経路描画部122によって描画された未加工の加工経路上に重ねて、加工中の時々刻々の現在位置を点列で表示することにより、加工済みの加工経路を描画することが好ましい。加工中描画部124は、未加工の加工経路が点線で描画されている場合には、加工済みの加工経路を実線で描画してもよく、未加工の加工経路が実線で描画されている場合には、加工済みの加工経路を点線で描画してもよい。 The processing drawing unit 124 draws the current position of each moment during processing on the processing path drawing screen. In particular, the machined drawing unit 124 is superimposed on the raw machined path drawn by the raw machined path drawing unit 122, and the current position of each moment during the machined is displayed as a dotted line, so that the machined machine has been machined. It is preferable to draw the route. When the unprocessed processing path is drawn by the dotted line, the processing drawing unit 124 may draw the processed processing path by a solid line, and when the unprocessed processing path is drawn by a solid line, the processing unit 124 may draw the processed processing path by a solid line. May draw the processed processing path with a dotted line.

ブロック先頭位置描画部125は、加工が中断した場合に、再開位置候補設定部123によって記憶された再開位置の候補となるブロックの先頭に対応する加工位置を、加工経路描画画面に表示された加工経路上に描画する。更に、ブロック先頭位置描画部125は、加工経路描画画面上において、再開するブロックの経路全体を、他の加工経路とは別の色で表示してもよい。 When the processing is interrupted, the block head position drawing unit 125 displays the processing position corresponding to the head of the block that is a candidate for the restart position stored by the restart position candidate setting unit 123 on the processing path drawing screen. Draw on the path. Further, the block head position drawing unit 125 may display the entire path of the block to be restarted in a color different from that of other machining paths on the machining path drawing screen.

再開ブロック設定部126は、ブロック先頭位置描画部125によって描画された加工位置の中からユーザによって指定された加工位置に対応するブロックを、再開ブロックとして設定する。すなわち、ユーザが、加工を再開したい位置として加工経路描画画面に表示された加工位置の中からいずれかの加工位置を指定すると、再開ブロック設定部124は、ユーザが指定した加工位置に対応するブロックを再開ブロックとして設定する。 The restart block setting unit 126 sets the block corresponding to the processing position specified by the user from the processing positions drawn by the block head position drawing unit 125 as the restart block. That is, when the user specifies one of the machining positions displayed on the machining path drawing screen as the position where the machining is to be restarted, the restart block setting unit 124 is a block corresponding to the machining position specified by the user. Is set as a restart block.

再開制御部127は、再開ブロック設定部126により設定された再開ブロックに基づくユーザからの再開指示に応じて、加工の再開に必要なモーダル及び/又は補助機能の設定を行う準備プログラムを自動で実行する。とりわけ、加工プログラムがレーザ加工プログラムであり、再開ブロック設定部126により設定された再開ブロックが、ピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、又はアシストガス指令を含むブロックの場合に、再開制御部127は、再開操作に応じて、ピアッシング指令、ギャップ制御指令、又はアシストガス指令に係る準備プログラムを自動で実行する。
ここで、「モーダル」とは、一度指令されると、現在とは異なるGコードが指定されるまで有効となるGコードのことである。
また、「補助機能」とは、数値制御装置100が制御する工作機械の、個々の機能を制御する機能のことである。
The restart control unit 127 automatically executes a preparation program for setting modal and / or auxiliary functions necessary for restarting machining in response to a restart instruction from the user based on the restart block set by the restart block setting unit 126. do. In particular, when the machining program is a laser machining program and the restart block set by the restart block setting unit 126 is a block including a piercing command, a block including a gap control command, or a block including an assist gas command, restart control is performed. The unit 127 automatically executes the preparation program related to the piercing command, the gap control command, or the assist gas command in response to the restart operation.
Here, the "modal" is a G code that, once commanded, is valid until a G code different from the current one is specified.
Further, the "auxiliary function" is a function of controlling individual functions of the machine tool controlled by the numerical control device 100.

数値制御装置100の構成の説明は上記の通りである。次に、図3及び図4を参照することにより、数値制御装置100の動作について説明する。 The description of the configuration of the numerical control device 100 is as described above. Next, the operation of the numerical control device 100 will be described with reference to FIGS. 3 and 4.

〔1.2 数値制御装置の動作〕
図3は数値制御装置100の動作を示すフローチャートである。図4は、数値制御装置100が備える表示器170に描画される加工経路描画画面の例である。
[1.2 Operation of numerical control device]
FIG. 3 is a flowchart showing the operation of the numerical control device 100. FIG. 4 is an example of a processing path drawing screen drawn on the display 170 included in the numerical control device 100.

ステップS11において、制御部111は、ユーザからの指示に基づき、加工プログラムの仮想運転を開始する。具体的には、制御部111は、実加工を行うことなく、加工プログラムの先頭部から末尾部に渡る、仮想的な運転を開始する。 In step S11, the control unit 111 starts the virtual operation of the machining program based on the instruction from the user. Specifically, the control unit 111 starts a virtual operation from the beginning to the end of the machining program without performing actual machining.

ステップS12において、加工プログラム解析部121は、加工プログラムを解析する。具体的には、加工プログラム解析部121は、例えば、加工プログラムの構文を解析することにより、加工プログラムの構文木を生成し、生成した構文木から各加工に対応する条件判断や動作を抽出する。 In step S12, the machining program analysis unit 121 analyzes the machining program. Specifically, the machining program analysis unit 121 generates a syntax tree of the machining program by, for example, analyzing the syntax of the machining program, and extracts condition judgments and operations corresponding to each machining from the generated syntax tree. ..

ステップS13において、未加工経路描画部122は、加工プログラムの解析結果に基づいて、表示器170に表示された加工経路描画画面に未加工の加工経路を描画する。 In step S13, the raw machining path drawing unit 122 draws the raw machining path on the machining path drawing screen displayed on the display 170 based on the analysis result of the machining program.

ステップS14において、再開位置候補設定部123は、加工を再開する再開位置の候補となるブロックの情報を記憶する。ここで、再開位置の候補となるブロックとしては、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令を含むブロック、Bコード指令を含むブロック、位置決めブロックが挙げられる。また、加工プログラムがレーザ加工プログラムの場合には、再開位置の候補となるブロックとしては、ピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、アシストガス指令を含むブロック、及び加工条件設定機能のEコードを含むブロックが挙げられる。 In step S14, the restart position candidate setting unit 123 stores information on the block that is a candidate for the restart position for restarting machining. Here, the blocks that are candidates for the restart position include a block that includes a subprogram call command, a block that includes a macro call command, a block that includes a macromodal call command, and a block that includes a G code command that enables a predetermined function. Examples include a block containing an M code command, a block containing a B code command, and a positioning block. When the machining program is a laser machining program, the blocks that are candidates for the restart position include a block including a piercing command, a block including a gap control command, a block including an assist gas command, and the machining condition setting function E. Examples include blocks containing code.

なお、ステップS13とステップS14とは、図3に記載のようにパラレルに実行してもよく、或いはリニアに実行してもよい。 In addition, step S13 and step S14 may be executed in parallel as shown in FIG. 3, or may be executed linearly.

ステップS15において、制御部111は、加工プログラムの仮想運転を終了する。 In step S15, the control unit 111 ends the virtual operation of the machining program.

ステップS16において、加工プログラムの解析結果に基づいて、制御部111は、レーザ制御部180を介してレーザ加工部190を制御し、軸制御回路130~134を介してサーボアンプ140~144を制御し、スピンドル制御回路160を介してスピンドルアンプ161を制御することにより、加工プログラムによる実加工を開始する。 In step S16, the control unit 111 controls the laser processing unit 190 via the laser control unit 180, and controls the servo amplifiers 140 to 144 via the axis control circuits 130 to 134, based on the analysis result of the processing program. By controlling the spindle amplifier 161 via the spindle control circuit 160, the actual machining by the machining program is started.

ステップS17において、加工中描画部124は、加工処理中に、加工中の時々刻々の現在位置を加工経路描画画面に描画する。とりわけ、加工中描画部124は、未加工経路描画部123によって描画された未加工の加工経路上に重ねて、加工中の時々刻々の現在位置を点列で表示することにより、加工済みの加工経路を描画することが好ましい。 In step S17, the processing drawing unit 124 draws the current position of each moment during processing on the processing path drawing screen during processing. In particular, the machined drawing unit 124 is superimposed on the raw machined path drawn by the machined path drawing unit 123, and the current position of the machined machine is displayed as a dotted line from moment to moment during the machined processing. It is preferable to draw the route.

ステップS18において、加工プログラムの実行が中断する。
ステップS19において、ブロック先頭位置描画部125は、再開位置候補設定部123によって記憶された再開位置の候補となるブロックの先頭に対応する加工位置、及び加工が中断された中断ブロックの先頭に対応する加工位置を、加工経路描画画面に表示された加工経路上に描画する。
In step S18, the execution of the machining program is interrupted.
In step S19, the block head position drawing unit 125 corresponds to the machining position corresponding to the head of the block that is the candidate for the restart position stored by the restart position candidate setting unit 123, and the head of the interrupted block in which machining is interrupted. The machining position is drawn on the machining path displayed on the machining path drawing screen.

ステップS20において、ユーザは加工経路上に描画された、再開位置の候補に対応する加工位置の中から、加工を再開したい位置を指定する。これを受けて、再開ブロック設定部124は、ユーザによって指定された加工位置に対応するブロックを、再開ブロックとして設定する。 In step S20, the user specifies a position where he / she wants to restart machining from the machining positions corresponding to the candidates for the restart position drawn on the machining path. In response to this, the restart block setting unit 124 sets the block corresponding to the machining position specified by the user as the restart block.

ステップS21において、ユーザは、再開ブロック設定部126により設定された再開ブロックから、加工プログラムを再開する操作をする。具体的には、ユーザは、数値制御装置100が備える表示器170や操作盤171から、加工プログラムの再開を指示する。 In step S21, the user operates to restart the machining program from the restart block set by the restart block setting unit 126. Specifically, the user instructs the restart of the machining program from the display 170 and the operation panel 171 included in the numerical control device 100.

ステップS22において、再開制御部127は、再開ブロック設定部124により設定された再開ブロックに基づくユーザからの再開指示に応じて、当該加工の再開に必要なモーダル及び/又は補助機能の設定を行う準備プログラムを自動で実行する。とりわけ、加工プログラムがレーザ加工プログラムであり、再開ブロック設定部126により設定された再開ブロックが、ピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、又はアシストガス指令を含むブロックの場合に、再開制御部127は、ユーザからの再開指示に応じて、それぞれ、ピアッシング指令、ギャップ制御指令、又はアシストガス指令に係る準備プログラムを自動で実行する。 In step S22, the restart control unit 127 prepares to set the modal and / or auxiliary function necessary for restarting the machining in response to the restart instruction from the user based on the restart block set by the restart block setting unit 124. Run the program automatically. In particular, when the machining program is a laser machining program and the restart block set by the restart block setting unit 126 is a block including a piercing command, a block including a gap control command, or a block including an assist gas command, restart control is performed. Unit 127 automatically executes a preparation program related to a piercing command, a gap control command, or an assist gas command, respectively, in response to a restart instruction from the user.

ステップS23において、制御部111は、再開ブロック設定部126により設定された再開ブロックから、加工プログラムによる実加工を再開する。 In step S23, the control unit 111 restarts the actual machining by the machining program from the restart block set by the restart block setting unit 126.

図4は、図3に示すフローチャート中のステップS20の時点における、加工経路描画画面の例を示す。なお、図4は、数値制御装置100が制御するレーザ加工機が、多数個取り加工を実行する場合の加工経路描画画面の一例について示すが、これには限定されない。 FIG. 4 shows an example of a machining path drawing screen at the time of step S20 in the flowchart shown in FIG. Note that FIG. 4 shows an example of a processing path drawing screen when the laser processing machine controlled by the numerical control device 100 executes a large number of pieces processing, but the present invention is not limited to this.

加工経路描画画面の右側には、加工経路が示される。図4に示す例においては、加工済みの加工経路が実線で、未加工の加工経路が点線で示されているが、これには限定されず、加工済みの加工経路を点線で、未加工の加工経路を実線で示してもよい。また、図4は、レーザ加工により、当初の予定では4枚の板をくり抜く所、3枚目の板をくり抜く途中で加工が中断した例を示す。 Machining path The machining path is shown on the right side of the drawing screen. In the example shown in FIG. 4, the processed processing path is shown by a solid line and the unprocessed processing path is shown by a dotted line, but the present invention is not limited to this, and the processed processing path is shown by a dotted line and is not processed. The processing path may be indicated by a solid line. Further, FIG. 4 shows an example in which four plates are hollowed out in the original plan due to laser processing, but the processing is interrupted in the middle of hollowing out the third plate.

加工経路上には、加工を再開する加工位置の候補が黒い丸で示される。より具体的には、図4に示す例において、1枚目~4枚目の板内で、レーザによる切断を開始するためのピアッシング指令を含むブロックの先頭部が各板2箇所ずつ示される。更に、3枚目の板において、中断点として、加工を中断した中断ブロックの先頭部が黒い丸で示される。 Candidates for machining positions to resume machining are indicated by black circles on the machining path. More specifically, in the example shown in FIG. 4, in the first to fourth plates, the head portion of the block including the piercing command for starting the cutting by the laser is shown at two locations on each plate. Further, in the third plate, the head portion of the interrupted block in which the machining is interrupted is indicated by a black circle as an interrupt point.

ユーザは、黒い丸で示される複数の加工位置の中から、加工を再開したい加工位置を選択する。図4は、4枚目の板の中抜き部に設定された加工位置が選択された例を示す。 The user selects a machining position at which he / she wants to resume machining from a plurality of machining positions indicated by black circles. FIG. 4 shows an example in which the machining position set in the hollow portion of the fourth plate is selected.

加工経路描画画面の左側には、選択された加工位置に対応する再開ブロックの詳細が示される。「プログラム」は、実行中のプログラム名を示す。「シーケンス番号」は、加工プログラムの箇所を示す番号である。「ブロック番号」は、現時点での加工プログラム中の再開ブロックの位置を識別するための番号である。「全ブロック番号」は、全加工プログラム中の全ブロック内における再開ブロックの位置を識別するための番号である。例えば、図4に示されるような多数個取り加工において、4回目のくり抜き加工の途中から加工を再開したい場合、レーザによるくり抜き加工が既に3回繰り返されているため、4回目のくり抜き加工中のブロック番号に1回目~3回目のくり抜き加工に係るブロック番号が合算された上で、「全ブロック番号」が示される。「繰り返し回数」は、再開ブロックが加工プログラム内で何回繰り返されたかを示す数字である。「多重度」は、「プログラム」で名称が示されるプログラムが、全加工プログラムの親子関係の中で、メインの加工プログラムから見て何世代目にあるかを示す数値である。「多重度1」とは、メインの加工プログラムから見て1世代目、すなわち、他の加工プログラムを介さず、メインの加工プログラムから直接呼び出されるプログラムであることを示す。「呼出元」は、「プログラム」で名称が示されるプログラムを呼び出すプログラムを示す。 The details of the restart block corresponding to the selected machining position are shown on the left side of the machining path drawing screen. "Program" indicates the name of the program being executed. The "sequence number" is a number indicating the location of the machining program. The "block number" is a number for identifying the position of the restart block in the machining program at the present time. The "all block number" is a number for identifying the position of the restart block in all the blocks in the whole machining program. For example, in the case of multi-cutting as shown in FIG. 4, when it is desired to restart the machining from the middle of the fourth hollowing, the laser hollowing has already been repeated three times, so that the fourth hollowing is in progress. The "all block numbers" are shown after the block numbers related to the first to third hollowing processes are added to the block numbers. The "repetition count" is a number indicating how many times the restart block is repeated in the machining program. The "multiplicity" is a numerical value indicating the generation number of the program whose name is indicated by the "program" in the parent-child relationship of all the machining programs as seen from the main machining program. The "multiplicity 1" indicates that the program is the first generation seen from the main machining program, that is, the program is directly called from the main machining program without going through another machining program. "Caller" indicates a program that calls the program whose name is indicated by "program".

数値制御装置100の動作に係る説明は上記の通りである。次に、図5を参照することにより、ユーザが数値制御装置100を用いて加工を再開する際の、ユーザの操作手順について説明する。 The description relating to the operation of the numerical control device 100 is as described above. Next, with reference to FIG. 5, the operation procedure of the user when the user restarts the machining using the numerical control device 100 will be described.

〔1.3 ユーザの操作〕
図5は、ユーザの操作手順の一例を示すフローチャートである。
工作機械による加工が中断すると、例えば図4に示す加工経路描画画面が、表示器170に表示される。
ステップS31において、ユーザは、加工経路描画画面に表示された加工経路上に描画された、再開位置の候補に対応する加工位置の中から、加工を再開したい加工位置を選択する。
ステップS32において、ユーザは、ソフトキー[再開設定]を押す。これにより、ユーザが選択した加工位置に対応する再開ブロックが設定される。
ステップS33において、ユーザは、ソフトキー[再開]を押す。
これを受けて、数値制御装置100は、工作機械による加工を再開させる。
[1.3 User operation]
FIG. 5 is a flowchart showing an example of a user's operation procedure.
When the machining by the machine tool is interrupted, for example, the machining path drawing screen shown in FIG. 4 is displayed on the display 170.
In step S31, the user selects a machining position to be restarted from the machining positions corresponding to the candidates for the restart position drawn on the machining path displayed on the machining path drawing screen.
In step S32, the user presses the softkey [restart setting]. As a result, a restart block corresponding to the machining position selected by the user is set.
In step S33, the user presses the softkey [Resume].
In response to this, the numerical control device 100 restarts the machining by the machine tool.

上記の説明では、第1実施形態に係る数値制御装置100が、工作機械としてレーザ加工機を制御する例について記載したが、これには限定されない。すなわち、レーザ加工機の代わりに、例えば、旋盤、ボール盤、中ぐり盤、フライス盤、研削盤、歯切り盤・歯車仕上げ機械、マシニングセンタ、放電加工機、パンチプレス、搬送機及びプラスチック射出成形機といった工作機械を制御する数値制御装置に、本発明を適用することが可能である。 In the above description, an example in which the numerical control device 100 according to the first embodiment controls a laser machine tool as a machine tool has been described, but the present invention is not limited thereto. That is, instead of a laser processing machine, for example, lathes, drilling machines, boring machines, milling machines, grinding machines, gear cutting machines / gear finishing machines, machining centers, electric discharge machines, punch presses, conveyors and plastic injection molding machines. The present invention can be applied to a numerical control device that controls a machine.

〔1.4 第1実施形態が奏する効果〕
本実施形態に係る数値制御装置100は、数値制御装置100によって制御される工作機械において加工が中断した場合に、加工の再開位置の候補となるブロックの先頭に対応する加工位置を、加工経路描画画面に表示された加工経路上に描画し、加工経路描画画面内でユーザによって指定された加工位置を含むブロックを、再開ブロックとして設定する。
これにより、再開位置とするブロックが実際の加工経路のどこから再開するものであるかを、オペレータが視覚的に把握することが可能となると共に、加工を再開するまでの手順が少なくて済む。
[1.4 Effects of the first embodiment]
The numerical control device 100 according to the present embodiment draws a machining path corresponding to the head of a block that is a candidate for a machining restart position when machining is interrupted in a machine tool controlled by the numerical control device 100. A block that draws on the machining path displayed on the screen and includes the machining position specified by the user in the machining path drawing screen is set as a restart block.
As a result, the operator can visually grasp where in the actual machining path the block to be the restart position is restarted, and the procedure for restarting the machining can be reduced.

また、数値制御装置100は、再開位置の候補となるブロックとして、中断ブロック、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令、Bコード指令を含むブロック、及び位置決めブロックのうち、少なくとも1以上の種類のブロックを候補とする。
これにより、実際の加工よりも前に加工プログラムを解析し、再開位置の候補となるブロックの情報を事前に記憶することが可能となる。
Further, the numerical control device 100 enables a break block, a block including a subprogram call command, a block including a macro call command, a block including a macro modal call command, and a predetermined function as blocks that are candidates for the restart position. Among the blocks including the G code command, the M code command, the block containing the B code command, and the positioning block, at least one or more types of blocks are candidates.
This makes it possible to analyze the machining program before the actual machining and store the information of the block that is a candidate for the restart position in advance.

また、数値制御装置100は、加工中の時々刻々の現在位置を、未加工の加工経路上に重ねて描画する。
これにより、ユーザは、当初設定した全加工経路のうち、どの程度加工が終了したかを、視覚的に把握することが可能となる。
Further, the numerical control device 100 draws the current position of each moment during processing by superimposing it on the unprocessed processing path.
As a result, the user can visually grasp to what extent the machining is completed out of all the initially set machining paths.

また、数値制御装置100は、ユーザによる再開操作に応じて、加工の再開に必要なモーダル及び/又は補助機能の設定を行う準備プログラムを自動的に実行する。
これにより、加工を再開するまでの手順を簡略化することが可能となる。
Further, the numerical control device 100 automatically executes a preparation program for setting modal and / or auxiliary functions necessary for restarting machining in response to a restart operation by the user.
This makes it possible to simplify the procedure for restarting machining.

また、加工プログラムがレーザ加工プログラムの場合、数値制御装置100は、再開位置の候補となるブロックとして、中断ブロック、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令、Bコード指令を含むブロック、及び位置決めブロックに加えて、ピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、及びアシストガス指令を含むブロックを候補とする。
加工プログラムがレーザ加工プログラムの場合、数値制御装置100は、設定された再開ブロックがピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、又はアシストガス指令を含むブロックの場合に、再開操作に応じて、ピアッシング指令、ギャップ制御指令、又はアシストガス指令に係る準備プログラムを自動で実行する。
これにより、数値制御装置100の制御対象がレーザ加工機である場合に特化して、本発明に係る制御方法を適用することが可能となる。
When the machining program is a laser machining program, the numerical control device 100 includes a break block, a block including a subprogram call command, a block including a macro call command, and a macromodal call command as blocks that are candidates for the restart position. A block containing a G-code command that enables a predetermined function, a block containing an M-code command, a block containing a B-code command, and a positioning block, a block containing a piercing command, a block containing a gap control command, and an assist gas. The block containing the command is a candidate.
When the machining program is a laser machining program, the numerical control device 100 responds to the restart operation when the set restart block is a block including a piercing command, a block including a gap control command, or a block including an assist gas command. , Piercing command, gap control command, or assist gas command preparatory program is automatically executed.
This makes it possible to apply the control method according to the present invention specifically to the case where the control target of the numerical control device 100 is a laser processing machine.

以上、本発明の実施形態について説明したが、本発明は前述した実施形態に限るものではない。また、本実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本実施形態に記載されたものに限定されるものではない。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. Moreover, the effects described in the present embodiment are merely a list of the most preferable effects resulting from the present invention, and the effects according to the present invention are not limited to those described in the present embodiment.

100 数値制御装置
111 CPU
121 再開位置候補設定部
122 加工中描画部
123 ブロック先頭位置描画部
124 再開ブロック設定部
125 再開制御部
100 Numerical control device 111 CPU
121 Resume position candidate setting unit 122 Processing drawing unit 123 Block head position drawing unit 124 Resume block setting unit 125 Resume control unit

Claims (4)

加工経路描画画面を表示する表示器と、
加工前に加工プログラムを解析する加工プログラム解析部と、
前記加工プログラムの解析結果に基づいて、前記加工経路描画画面に未加工の加工経路を描画する未加工経路描画部と、
前記加工プログラムの解析結果に基づいて、加工を再開する再開位置の候補となるブロックの情報を記憶する再開位置候補設定部と、
加工処理中に加工中の時々刻々の現在位置を表示する加工中描画部と、
加工が中断した場合に、前記再開位置候補設定部によって記憶された再開位置の候補となるブロックの先頭に対応する加工位置、及び加工が中断された中断ブロックの先頭に対応する加工位置を、前記加工経路描画画面に表示された前記加工経路上に描画すると共に、再開するブロックの経路全体を他の加工経路とは別の色で表示するブロック先頭位置描画部と、
前記ブロック先頭位置描画部によって描画された前記加工位置の中からユーザによって指定された加工位置に対応するブロックを、再開ブロックとして設定する再開ブロック設定部と、
前記再開ブロック設定部により設定された再開ブロックに基づくユーザからの再開指示に応じて、当該加工の再開に必要なモーダル及び/又は補助機能の設定を行う準備プログラムを自動で実行する再開制御部と、
を備え
前記再開位置候補設定部は、少なくとも、中断ブロック、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令、Bコード指令を含むブロック、及び位置決めブロックを前記再開位置の候補とする、数値制御装置。
A display that displays the processing path drawing screen and
A machining program analysis unit that analyzes the machining program before machining,
An unprocessed path drawing unit that draws an unprocessed machining path on the machining path drawing screen based on the analysis result of the machining program.
Based on the analysis result of the machining program, a restart position candidate setting unit that stores information on a block that is a candidate for a restart position for restarting machining, and a restart position candidate setting unit.
A drawing unit during processing that displays the current position of each moment during processing during processing,
When machining is interrupted, the machining position corresponding to the head of the block that is a candidate for the restart position stored by the restart position candidate setting unit and the machining position corresponding to the head of the interrupted block in which machining is interrupted are set. A block head position drawing unit that draws on the machining path displayed on the machining path drawing screen and displays the entire path of the restarting block in a color different from that of other machining paths.
A restart block setting unit that sets a block corresponding to a processing position specified by the user from the processing positions drawn by the block head position drawing unit as a restart block, and a restart block setting unit.
A restart control unit that automatically executes a preparation program for setting modal and / or auxiliary functions necessary for restarting the machining in response to a restart instruction from the user based on the restart block set by the restart block setting unit. ,
Equipped with
The restart position candidate setting unit is at least a interruption block, a block including a subprogram call command, a block including a macro call command, a block including a macromodal call command, and a block including a G code command for enabling a predetermined function. A numerical control device having an M code command, a block including a B code command, and a positioning block as candidates for the restart position .
前記加工中描画部は、前記加工経路上に加工中の時々刻々の現在位置を前記未加工経路描画部によって描画された未加工の加工経路上に重ねて描画する、請求項1に記載の数値制御装置。 The numerical value according to claim 1, wherein the processing drawing unit draws the current position of each moment during processing on the processing path by superimposing it on the raw processing path drawn by the raw processing path drawing unit. Control device. 前記加工プログラムがレーザ加工プログラムの場合、
前記再開位置候補設定部は、中断ブロック、サブプログラム呼び出し指令を含むブロック、マクロ呼び出し指令を含むブロック、マクロモーダル呼び出し指令を含むブロック、所定の機能を有効とするGコード指令を含むブロック、Mコード指令、Bコード指令を含むブロック、及び位置決めブロックに加えて、ピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、及びアシストガス指令を含むブロックのうち、少なくとも1以上の種類のブロックを前記再開位置の候補とする、請求項1又は請求項に記載の数値制御装置。
When the machining program is a laser machining program,
The restart position candidate setting unit includes a break block, a block including a subprogram call command, a block including a macro call command, a block including a macromodal call command, a block including a G code command for enabling a predetermined function, and an M code. In addition to the command, the block containing the B code command, and the positioning block, at least one of the blocks including the piercing command, the block containing the gap control command, and the block containing the assist gas command is placed in the restart position . The numerical control device according to claim 1 or 2 , which is a candidate for the above.
前記加工プログラムがレーザ加工プログラムの場合、
前記再開制御部は、
前記再開ブロック設定部により設定された再開ブロックがピアッシング指令を含むブロック、ギャップ制御指令を含むブロック、又はアシストガス指令を含むブロックの場合に、ユーザからの再開指示に応じて、前記ピアッシング指令、前記ギャップ制御指令、又は前記アシストガス指令に係る準備プログラムを自動で実行する、請求項に記載の数値制御装置。
When the machining program is a laser machining program,
The restart control unit is
When the restart block set by the restart block setting unit is a block including a piercing command, a block including a gap control command, or a block including an assist gas command, the piercing command, the above, in response to a restart instruction from the user. The numerical control device according to claim 3 , which automatically executes a gap control command or a preparation program related to the assist gas command.
JP2020173352A 2020-10-14 2020-10-14 Numerical control device Active JP7092842B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020173352A JP7092842B2 (en) 2020-10-14 2020-10-14 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020173352A JP7092842B2 (en) 2020-10-14 2020-10-14 Numerical control device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018028212A Division JP2019144828A (en) 2018-02-20 2018-02-20 Numerical control device

Publications (2)

Publication Number Publication Date
JP2021009729A JP2021009729A (en) 2021-01-28
JP7092842B2 true JP7092842B2 (en) 2022-06-28

Family

ID=74199296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020173352A Active JP7092842B2 (en) 2020-10-14 2020-10-14 Numerical control device

Country Status (1)

Country Link
JP (1) JP7092842B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010044489A (en) 2008-08-11 2010-02-25 Fanuc Ltd Numerical controller with machining resumption function
JP2015208775A (en) 2014-04-30 2015-11-24 ファナック株式会社 Laser processing system having processing resumption preparation function
JP2016134036A (en) 2015-01-20 2016-07-25 ファナック株式会社 Numerical control device with drawn route correction function

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0659717A (en) * 1992-08-07 1994-03-04 Toshiba Mach Co Ltd Nc device having tool locus data plotting function and plotting method thereof
JPH07311612A (en) * 1994-05-16 1995-11-28 Fanuc Ltd Method and device for editing machining program of numerical controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010044489A (en) 2008-08-11 2010-02-25 Fanuc Ltd Numerical controller with machining resumption function
JP2015208775A (en) 2014-04-30 2015-11-24 ファナック株式会社 Laser processing system having processing resumption preparation function
JP2016134036A (en) 2015-01-20 2016-07-25 ファナック株式会社 Numerical control device with drawn route correction function

Also Published As

Publication number Publication date
JP2021009729A (en) 2021-01-28

Similar Documents

Publication Publication Date Title
US5465215A (en) Numerical control method and apparatus
US20090228135A1 (en) Numerical Control Apparatus
US10108171B2 (en) Numerical controller capable of specifying halt point
EP0511395A1 (en) Conversational type numerical control equipment
CN110174874B (en) Numerical controller
JP2004126956A (en) Numerical control machine
JPH11143514A (en) Numerical controller capable of executing working error check
JP7092842B2 (en) Numerical control device
JP2006172388A (en) Numerical controller
JP5702833B2 (en) Numerical control device with screen display switching function following NC program
JP2008200809A (en) Device for preparing program for punch working, recording medium storing program for preparing program for punch working, and wire cut electrical discharge machine
JP2948797B2 (en) Machining sequence editing method and apparatus for wire cut electric discharge machining
JP2010033150A (en) Numerically controlled machine tool
JP6408040B2 (en) Numerical controller
JPH0370242B2 (en)
JP6013690B2 (en) Numerical control device for approaching the machining restart position
JP6777618B2 (en) Numerical control device, numerical control method and numerical control program
CN109143964B (en) Numerical controller
JP2000353003A (en) Nc data recognition device
JP2000035815A (en) Numerically controlled machine tool
JPH09212221A (en) Numerical controller having guide display function
EP0436039A1 (en) System for resuming program for automatic operation
KR0155014B1 (en) Numerical control apparatus
JP4208600B2 (en) NC machine tool
JPS61118807A (en) Method and device for reset to working position of nc program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220201

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220616

R150 Certificate of patent or registration of utility model

Ref document number: 7092842

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150