JP6657144B2 - Machining program debug device and machine tool having the same - Google Patents

Machining program debug device and machine tool having the same Download PDF

Info

Publication number
JP6657144B2
JP6657144B2 JP2017128149A JP2017128149A JP6657144B2 JP 6657144 B2 JP6657144 B2 JP 6657144B2 JP 2017128149 A JP2017128149 A JP 2017128149A JP 2017128149 A JP2017128149 A JP 2017128149A JP 6657144 B2 JP6657144 B2 JP 6657144B2
Authority
JP
Japan
Prior art keywords
machining program
line
block
operator
advance notification
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
JP2017128149A
Other languages
Japanese (ja)
Other versions
JP2019012376A (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.)
DMG Mori Co Ltd
Original Assignee
DMG Mori Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DMG Mori Co Ltd filed Critical DMG Mori Co Ltd
Priority to JP2017128149A priority Critical patent/JP6657144B2/en
Publication of JP2019012376A publication Critical patent/JP2019012376A/en
Application granted granted Critical
Publication of JP6657144B2 publication Critical patent/JP6657144B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、加工プログラムによって制御される工作機械の動作を確認するための加工プログラムデバッグ装置およびこれを備えた工作機械に関するものである。   The present invention relates to a machining program debugging device for confirming the operation of a machine tool controlled by a machining program, and a machine tool having the same.

従来、新規に作成された加工プログラムについては、当該加工プログラムによって制御される工作機械が意図した通りに動作するか否かを事前に確認し、適宜修正するデバッグ作業が行われている。このデバッグ作業に際しては、加工プログラムを1ブロックずつ実行するシングルブロック機能を利用し、オペレータが工作機械の動作を1ブロックずつ確認することが多い。   Conventionally, with respect to a newly created machining program, a debugging operation has been performed in which it is checked in advance whether a machine tool controlled by the machining program operates as intended, and an appropriate correction is made. In this debugging work, an operator often checks the operation of the machine tool one block at a time using a single block function of executing a machining program one block at a time.

上記のような加工プログラムをデバッグするための技術として、例えば、特開2007−128231号公報には、加工プログラム確認モードにおいて、シングルブロック運転によって1ブロック毎、低速度の早送りでその指令を実行し、オペレータが確認して問題がなければ早送り速度を上げて実行する数値制御工作機械が提案されている(特許文献1)。   As a technique for debugging a machining program as described above, for example, Japanese Patent Application Laid-Open No. 2007-128231 discloses that in a machining program confirmation mode, a single block operation is executed for each block in a single block operation at a low speed rapid traverse. A numerically controlled machine tool has been proposed in which the operator confirms and if there is no problem, increases the rapid traverse speed and executes the machine (Patent Document 1).

特開2007−128231号公報JP 2007-128231 A

しかしながら、金型のように複雑な三次元形状を加工するための加工プログラムは、そのブロック数が何十万というオーダーになる。このため、そのような加工プログラムのデバッグに際し、上記のようなシングルブロック機能を用いると、膨大な時間がかかってしまうため現実的ではないという問題がある。   However, a machining program for machining a complicated three-dimensional shape such as a mold has an order of hundreds of thousands of blocks. For this reason, there is a problem that it is not practical to use such a single block function as described above when debugging such a machining program because it takes an enormous amount of time.

一方、上記のようなシングルブロック機能をオフにした状態では、工作機械が連続的かつ高速に加工プログラムを実行する。このため、工作機械の動作を目視で監視するオペレータにとっては、長時間に渡って緊張した状態が強いられ、作業負担が大きいという問題がある。また、オペレータが十分に注意していても、一瞬目を離した隙に修正すべきブロックを見過ごしてしまうおそれもある。   On the other hand, when the single block function is turned off, the machine tool executes the machining program continuously and at high speed. For this reason, there is a problem that an operator who visually monitors the operation of the machine tool is forced to be nervous over a long period of time, and the work load is large. In addition, even if the operator pays enough attention, there is a risk that the block to be corrected may be overlooked in a moment away from the eye.

なお、デバッグ作業において、オペレータが特に注意すべき要注意範囲は、工具が進入動作および退避動作を行う部分である。しかしながら、上記のような要注意範囲が、加工プログラム中のどの部分に対応するかは、加工プログラムを見ただけで特定することは極めて困難である。このため、結局のところ、オペレータは加工プログラムが終了するまでの間、工作機械の動作を常に監視しているのが現状である。   In the debugging work, the area of special attention that the operator should pay particular attention to is the part where the tool performs the approach operation and the retreat operation. However, it is extremely difficult to specify which part in the machining program corresponds to the above cautionary range just by looking at the machining program. Therefore, after all, the operator currently constantly monitors the operation of the machine tool until the machining program ends.

本発明は、このような問題点を解決するためになされたものであって、加工プログラムのデバッグにかかるオペレータの作業負担を軽減するとともに、デバッグにおける要注意範囲の見過ごしを防止することができる加工プログラムデバッグ装置およびこれを備えた工作機械を提供することを目的としている。   The present invention has been made in order to solve such a problem, and it is possible to reduce a work load on an operator involved in debugging of a machining program, and to prevent a worker from overlooking a range requiring attention in debugging. It is an object of the present invention to provide a program debugging device and a machine tool having the same.

本発明に係る加工プログラムデバッグ装置は、加工プログラムのデバッグにかかるオペレータの作業負担を軽減するとともに、デバッグにおける要注意範囲の見過ごしを防止するという課題を解決するために、加工プログラムによって制御される工作機械の動作を確認するための加工プログラムデバッグ装置であって、前記加工プログラムを解析し、加工動作後に工具の退避動作を開始する退避動作開始行を検出する加工プログラム解析部と、前記退避動作開始行よりも任意の事前通知設定時間だけ前方向のタイミングに基づき事前通知行を決定する事前通知行決定部と、前記加工プログラムのデバッグ中に前記事前通知行に到達した場合、まもなく前記退避動作開始行に到達する旨を通知するための事前通知処理を実行する事前通知処理部と、を有する。   A machining program debugging device according to the present invention reduces a work load on an operator involved in debugging of a machining program and solves a problem of preventing an overlooked area in debugging from being overlooked. A machining program debugging device for checking the operation of a machine, comprising: a machining program analysis unit that analyzes the machining program and detects a retreat operation start line that starts a retraction operation of a tool after the machining operation; A pre-notification line determination unit that determines a pre-notification line based on a timing in the forward direction by an arbitrary pre-notification setting time longer than the line, and if the pre-notification line is reached during debugging of the machining program, the evacuation operation is performed shortly. Advance notification processing unit that executes advance notification processing to notify that the start line has been reached It has a.

また、本発明の一態様として、オペレータがどこにいても、まもなく要注意範囲に到達することを確実に通知するという課題を解決するために、前記加工プログラムデバッグ装置の周囲にオペレータがいるか否かを検出するオペレータ検出部を有し、前記事前通知処理部は、前記加工プログラムデバッグ装置の周囲にオペレータが検出された場合、前記加工プログラムデバッグ装置または前記工作機械において前記事前通知処理を実行し、前記オペレータが検出されなかった場合、前記オペレータの携帯端末または前記オペレータが操作中の機器に対して前記事前通知処理を実行してもよい。   Further, as one aspect of the present invention, in order to solve the problem of reliably notifying that the operator will soon reach the caution area, wherever the operator is, it is determined whether or not an operator is present around the machining program debug device. An operator detection unit for detecting, the advance notification processing unit, when an operator is detected around the machining program debug device, executes the advance notification process in the machining program debug device or the machine tool When the operator is not detected, the advance notification processing may be performed on the mobile terminal of the operator or a device operated by the operator.

さらに、本発明の一態様として、デバッグの精度および信頼性を向上するという課題を解決するために、前記加工プログラム解析部は、前記退避動作後に実行される工具の進入動作を終了する進入動作終了行を検出し、前記オペレータ検出部によって、前記退避動作開始行から前記進入動作終了行までの要注意範囲において、前記加工プログラムデバッグ装置の周囲にオペレータが検出されなかった場合、その旨を記録するオペレータ不在記録部を有してもよい。   Furthermore, as one aspect of the present invention, in order to solve the problem of improving the accuracy and reliability of debugging, the machining program analysis unit includes an entry operation end for terminating an entry operation of a tool executed after the retreat operation. A line is detected, and if no operator is detected around the machining program debug device in the cautionary range from the evacuation operation start line to the approach operation end line by the operator detection unit, the fact is recorded. An operator absence recording unit may be provided.

また、本発明の一態様として、要注意範囲に到達する所定時間前のブロックを事前通知行として正確かつ自動的に決定するという課題を解決するために、前記事前通知行決定部は、前記退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算し、前記サイクルタイムの総和が前記事前通知設定時間以上になったときのブロックを前記事前通知行として決定してもよい。   Further, as one aspect of the present invention, in order to solve the problem of accurately and automatically determining a block before a predetermined time reaching the cautionary range as a prior notification line, the prior notification line determination unit includes: The cycle time of each block existing in the forward direction from the evacuation operation start line is sequentially added, and a block when the sum of the cycle times is equal to or longer than the advance notification set time is determined as the advance notification line. Is also good.

さらに、本発明の一態様として、事前通知行の実行が開始されてから、要注意範囲に到達するまでにオペレータが長時間待たされるのを防止するという課題を解決するために、前記事前通知行決定部は、前記退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算し、前記サイクルタイムの総和が前記事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれない場合、前記サイクルタイムの総和から前記事前通知設定時間を差し引いた値を通知開始時間として記憶するとともに、前記ブロックを前記事前通知行として決定し、前記事前通知処理部は、前記事前通知行に到達してから前記通知開始時間の経過後に前記事前通知処理を実行してもよい。   Further, as one aspect of the present invention, in order to solve the problem of preventing the operator from waiting for a long time from when the execution of the advance notification line is started until reaching the caution range, the advance notification is performed. The row determining unit sequentially adds the cycle times of the respective blocks existing in the forward direction from the evacuation operation start row, and determines the cycle time of the block when the total of the cycle times becomes equal to or longer than the advance notification set time. When the timing is equal to or longer than the reference time and the timing is not included in the last section of the block, a value obtained by subtracting the advance notification setting time from the sum of the cycle times is stored as the notification start time, and the block is stored in the block. Is determined as the advance notification line, and the advance notification processing unit determines the advance notification after a lapse of the notification start time after reaching the advance notification line. It may perform the physical.

また、本発明の一態様として、事前通知行の実行が開始されてから、要注意範囲に到達するまでにオペレータが長時間待たされるのを防止するという課題を解決するために、前記事前通知行決定部は、前記退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算し、前記サイクルタイムの総和が前記事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれる場合、当該ブロックの次のブロックを前記事前通知行として決定してもよい。   Further, as one aspect of the present invention, in order to solve the problem of preventing the operator from waiting for a long time from when the execution of the advance notification line is started until reaching the caution range, the advance notification is performed. The row determining unit sequentially adds the cycle times of the respective blocks existing in the forward direction from the evacuation operation start row, and determines the cycle time of the block when the total of the cycle times becomes equal to or longer than the advance notification set time. When the time is equal to or longer than a reference time and the timing is included in the last section of the block, a block next to the block may be determined as the advance notification line.

さらに、本発明の一態様として、要注意範囲の開始ブロックを簡単かつ自動的に検出するという課題を解決するために、前記加工プログラム解析部は、前記加工プログラムに含まれる複数の加工動作間の区切りを示す区切りブロックを検出し、前記区切りブロックから前方向における最初の早送り、または所定の送り速度以上に設定された最初の切削送りのいずれかを含むブロックを前記退避動作開始行として検出してもよい。   Furthermore, as one aspect of the present invention, in order to solve the problem of simply and automatically detecting the start block of the caution range, the machining program analysis unit includes a plurality of machining operations included in the machining program. Detecting a delimiting block indicating a delimiter, detecting a block including either the first rapid feed in the forward direction from the delimited block or the first cutting feed set at a predetermined feed speed or more as the retreat operation start line. Is also good.

また、本発明の一態様として、要注意範囲をオペレータに一目で認識させるという課題を解決するために、前記加工プログラム解析部は、前記退避動作後に工具の進入動作を終了する進入動作終了行を検出し、前記加工プログラムのデバッグ中に、前記退避動作開始行から前記進入動作終了行までの要注意範囲を他の行と識別可能に表示手段に表示させる表示制御部を有してもよい。   Further, as one aspect of the present invention, in order to solve the problem of allowing the operator to recognize the caution range at a glance, the machining program analysis unit includes an entry operation end line for ending the entry operation of the tool after the retreat operation. The system may further include a display control unit that detects and displays a cautionary range from the retreat operation start line to the approach operation end line on a display unit so as to be distinguishable from other lines during debugging of the machining program.

さらに、本発明に係る工作機械は、加工プログラムのデバッグにかかるオペレータの作業負担を軽減するとともに、デバッグにおける要注意範囲の見過ごしを防止するという課題を解決するために、上述した各態様の加工プログラムデバッグ装置を備えてなるものである。   Further, the machine tool according to the present invention is provided with a machining program according to each of the above aspects, in order to reduce the work load on the operator involved in debugging the machining program and to solve the problem of preventing the user from overlooking the cautionary range in debugging. It is provided with a debugging device.

本発明によれば、加工プログラムのデバッグにかかるオペレータの作業負担を軽減するとともに、デバッグにおける要注意範囲の見過ごしを防止することができる。   ADVANTAGE OF THE INVENTION According to this invention, while being able to reduce the work load of the operator which concerns on debugging of a machining program, it is possible to prevent an overlooked range of caution in debugging.

本発明に係る加工プログラムデバッグ装置およびこれを備えた工作機械の一実施形態を示すブロック図である。FIG. 1 is a block diagram illustrating an embodiment of a machining program debugging device according to the present invention and a machine tool including the same. 本実施形態における工作機械の主な動作を示す図である。It is a figure showing the main operation of the machine tool in this embodiment. 本実施形態における加工プログラムの一例を示す図である。It is a figure showing an example of a processing program in this embodiment. 本実施形態の加工プログラムデバッグ装置が、加工プログラムを解析する際の処理を示すフローチャートである。It is a flowchart which shows the process when the machining program debug device of this embodiment analyzes a machining program. 本実施形態の加工プログラムデバッグ装置が、事前通知行を決定する際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the processing program debug apparatus of this embodiment determining a prior notification line. 本実施形態の加工プログラムデバッグ装置が、加工プログラムをデバッグする際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the machining program debugging apparatus of this embodiment debugging a machining program.

以下、本発明に係る加工プログラムデバッグ装置およびこれを備えた工作機械の一実施形態について図面を用いて説明する。   Hereinafter, an embodiment of a machining program debugging device according to the present invention and a machine tool including the same will be described with reference to the drawings.

本実施形態の加工プログラムデバッグ装置1は、オペレータが加工プログラムによって制御される工作機械10の動作を事前に確認し、適宜修正するデバッグ作業を行うためのものである。以下、各構成について詳細に説明する。   The machining program debugging device 1 according to the present embodiment is for an operator to perform a debugging operation in which the operation of the machine tool 10 controlled by the machining program is confirmed in advance and is appropriately corrected. Hereinafter, each configuration will be described in detail.

工作機械10は、旋盤、ボール盤、中ぐり盤、フライス盤、歯切り盤、研削盤等のように、金属、木材、石材、樹脂等のワークに対して、切断、穿孔、研削、研磨、圧延、鍛造、折り曲げ等の各種の加工を施すための機械である。本実施形態において、工作機械10は、加工プログラムによって数値制御可能に構成されている。   The machine tool 10 cuts, drills, grinds, grinds, rolls, and cuts workpieces such as metal, wood, stone, and resin, such as a lathe, drilling machine, boring machine, milling machine, gear cutting machine, and grinder. It is a machine for performing various processes such as forging and bending. In the present embodiment, the machine tool 10 is configured to be numerically controllable by a machining program.

本実施形態の加工プログラムデバッグ装置1は、工作機械10を制御する数値制御装置等のコンピュータによって構成されており、図1に示すように、主として、各種のデータを表示・入力する表示入力手段2と、各種のデータを送受信する通信手段3と、各種のデータを記憶する記憶手段4と、各種の演算処理を実行し後述する各構成部として機能する演算処理手段5とから構成されている。以下、各構成手段について詳細に説明する。   The machining program debugging device 1 of the present embodiment is constituted by a computer such as a numerical control device for controlling a machine tool 10, and as shown in FIG. 1, a display input means 2 for mainly displaying and inputting various data. And communication means 3 for transmitting and receiving various data, storage means 4 for storing various data, and arithmetic processing means 5 for executing various arithmetic processing and functioning as each component described later. Hereinafter, each component will be described in detail.

表示入力手段2は、タッチパネル等で構成されており、オペレータからの入力等を受け付ける入力機能と、デバッグ処理中の加工プログラム等を表示する表示機能とを兼ね備えたものである。本実施形態において、表示入力手段2は、後述する表示制御部56から入力された表示内容を表示するようになっている。なお、表示入力手段2の構成は上記に限定されるものではなく、表示機能のみを備えた表示手段、および入力機能のみを備えた入力手段をそれぞれ別個に有していてもよい。   The display input means 2 is configured by a touch panel or the like, and has both an input function of receiving an input from an operator and a display function of displaying a machining program or the like during a debugging process. In the present embodiment, the display input unit 2 displays the display content input from the display control unit 56 described later. Note that the configuration of the display input unit 2 is not limited to the above, and a display unit having only a display function and an input unit having only an input function may be separately provided.

通信手段3は、加工プログラムデバッグ装置1に通信機能を実装するためのものであり、通信モジュール等から構成されている。本実施形態において、通信手段3は、有線または無線LAN(Local Area Network)等のネットワーク通信に対応しており、後述する事前通知処理部55による通知をオペレータの携帯端末11や、オペレータが操作中の機器12に送信するようになっている。   The communication means 3 is for mounting a communication function in the machining program debugging device 1, and is composed of a communication module and the like. In the present embodiment, the communication unit 3 supports network communication such as a wired or wireless LAN (Local Area Network), and notifies a notification by the advance notification processing unit 55, which will be described later, to the mobile terminal 11 of the operator or the operator. To the device 12.

記憶手段4は、各種のデータを記憶するとともに、演算処理手段5が演算処理を行う際のワーキングエリアとして機能するものである。本実施形態において、記憶手段4は、ROM(Read Only Memory)、RAM(Random Access Memory)およびフラッシュメモリ等によって構成されており、図1に示すように、プログラム記憶部41と、加工プログラム記憶部42と、解析結果記憶部43と、オペレータ不在記録部44とを有している。以下、各構成部についてより詳細に説明する。   The storage unit 4 stores various data and functions as a working area when the arithmetic processing unit 5 performs arithmetic processing. In the present embodiment, the storage unit 4 is configured by a ROM (Read Only Memory), a RAM (Random Access Memory), a flash memory, and the like. As shown in FIG. 1, a program storage unit 41 and a processing program storage unit 42, an analysis result storage unit 43, and an operator absence recording unit 44. Hereinafter, each component will be described in more detail.

プログラム記憶部41には、本実施形態の加工プログラムデバッグプログラム1aがインストールされている。そして、演算処理手段5が、加工プログラムデバッグプログラム1aを実行することにより、加工プログラムデバッグ装置1としてのコンピュータを後述する各構成部として機能させるようになっている。   The machining program debug program 1a of the present embodiment is installed in the program storage unit 41. Then, the arithmetic processing means 5 executes the machining program debug program 1a, thereby causing a computer as the machining program debug device 1 to function as each component described later.

なお、加工プログラムデバッグプログラム1aの利用形態は、上記構成に限られるものではない。例えば、CD−ROMやUSBメモリ等のように、コンピュータで読み取り可能な記録媒体に加工プログラムデバッグプログラム1aを記憶させておき、当該記録媒体から直接読み出して実行してもよい。また、外部サーバ等からASP(Application Service Provider)方式やクラウドコンピューティング方式で利用してもよい。   In addition, the use form of the machining program debug program 1a is not limited to the above configuration. For example, the machining program debug program 1a may be stored in a computer-readable recording medium such as a CD-ROM or a USB memory, and may be directly read from the recording medium and executed. Further, an ASP (Application Service Provider) method or a cloud computing method may be used from an external server or the like.

加工プログラム記憶部42は、デバッグ対象となる加工プログラムを記憶するためのものである。本実施形態において、加工プログラムは、CAM(Computer Aided Manufacturing:コンピュータ支援製造)装置によって作成され、工作機械10を数値制御するためのGコードやMコード等によって構成されている。なお、工作機械10の主な動作は、図2に示すように、工具をワークに進入させる進入動作、工具でワークを加工する加工動作、および工具をワークから退避させる退避動作の3つである。このため、加工プログラムには、図3に示すように、進入動作、加工動作および退避動作を指令する複数のブロックが繰り返し含まれている。   The machining program storage unit 42 stores a machining program to be debugged. In the present embodiment, the machining program is created by a CAM (Computer Aided Manufacturing) device, and is configured by G codes, M codes, and the like for numerically controlling the machine tool 10. As shown in FIG. 2, the main operations of the machine tool 10 are three operations, that is, an operation for entering the tool into the work, a processing operation for processing the work with the tool, and an evacuation operation for retracting the tool from the work. . Therefore, as shown in FIG. 3, the machining program repeatedly includes a plurality of blocks for instructing the approach operation, the machining operation, and the retreat operation.

また、本実施形態において、加工プログラム記憶部42に記憶される加工プログラムは、後述するとおり、デバッグ処理を実行する前に、加工プログラム解析部51によって事前に解析されるとともに、デバッグ処理中は、後述するデバッグ処理部53によって実行されるようになっている。   In the present embodiment, the machining program stored in the machining program storage unit 42 is analyzed in advance by the machining program analysis unit 51 before executing the debugging process, as described later, and during the debugging process, This is executed by a debug processing unit 53 described later.

解析結果記憶部43は、デバッグ処理を実行する前に、加工プログラムを事前に解析した結果を記憶するものである。具体的には、解析結果記憶部43は、図1に示すように、後述する加工プログラム解析部51によって検出された退避動作開始行および進入動作終了行と、後述する事前通知行決定部52によって決定された事前通知行のそれぞれについて、該当する行番号を記憶するようになっている。また、解析結果記憶部43は、後述する通知開始時間を事前通知行に対応付けて記憶するようになっている。   The analysis result storage unit 43 stores a result of analyzing a machining program in advance before executing a debugging process. Specifically, as shown in FIG. 1, the analysis result storage unit 43 stores the evacuation operation start line and the approach operation end line detected by the machining program analysis unit 51 described later, and the advance notification line determination unit 52 described later. For each of the determined prior notification lines, the corresponding line number is stored. In addition, the analysis result storage unit 43 stores a notification start time described later in association with a prior notification line.

なお、デバッグ作業において、オペレータが特に注意すべき要注意範囲は、工具がワークと干渉または衝突する可能性のある、進入動作および退避動作を行う部分である。このため、本実施形態では、図3に示すように、加工動作後に工具の退避動作を開始する退避動作開始行から、退避動作後に工具の進入動作を終了する進入動作終了行までが要注意範囲として特定される。   In the debugging work, the area of special attention that the operator should pay particular attention to is a part that performs an approach operation and a retreat operation in which the tool may interfere or collide with the workpiece. For this reason, in the present embodiment, as shown in FIG. 3, the range from the retreat operation start line that starts the retreat operation of the tool after the machining operation to the entry operation end line that ends the retraction operation of the tool after the retreat operation is the caution range. Specified as

オペレータ不在記録部44は、デバッグ中にオペレータが不在であったブロックを記録するものである。本実施形態において、オペレータ不在記録部44は、後述するオペレータ検出部54によって、退避動作開始行から進入動作終了行までの要注意範囲において、加工プログラムデバッグ装置1の周囲にオペレータが検出されなかった場合、その旨を記録するようになっている。具体的には、不在であった行番号を記録してもよく、全ての行番号を有する行番号テーブルにおいて、不在であった行番号をチェックしてもよい。   The operator absence recording unit 44 records the block where the operator was absent during debugging. In the present embodiment, the operator absence recording unit 44 does not detect an operator around the machining program debug device 1 in the caution range from the evacuation operation start line to the approach operation end line by the operator detection unit 54 described later. In the case, the fact is recorded. Specifically, the absent line number may be recorded, or the absent line number may be checked in a line number table having all the line numbers.

演算処理手段5は、CPU(Central Processing Unit)等によって構成されており、記憶手段4にインストールされた加工プログラムデバッグプログラム1aを実行することにより、図1に示すように、加工プログラム解析部51と、事前通知行決定部52と、デバッグ処理部53と、オペレータ検出部54と、事前通知処理部55と、表示制御部56として機能するようになっている。以下、各構成部についてより詳細に説明する。   The arithmetic processing unit 5 is configured by a CPU (Central Processing Unit) and the like, and executes the machining program debug program 1a installed in the storage unit 4 to execute the machining program analysis unit 51 as shown in FIG. , A pre-notification line determination unit 52, a debug processing unit 53, an operator detection unit 54, a pre-notification processing unit 55, and a display control unit 56. Hereinafter, each component will be described in more detail.

加工プログラム解析部51は、加工プログラムを事前に解析するものである。加工プログラムにおいては、一般的に、進入動作および退避動作は早送りによって行われる。しかしながら、実際には加工動作においても早送りが使用される場合がある。そこで、本実施形態では、複数の加工動作間に通常挿入される区切りブロックを基準として前後方向を探索し、退避動作開始行や進入動作終了行を検出するようになっている。   The machining program analyzer 51 analyzes a machining program in advance. In a machining program, generally, the approach operation and the retreat operation are performed by rapid traverse. However, there is a case where the rapid traverse is actually used in the machining operation. Therefore, in the present embodiment, a search is made in the front-rear direction with reference to a separation block normally inserted between a plurality of machining operations, and a retreat operation start line and an approach operation end line are detected.

具体的には、加工プログラム解析部51は、加工プログラム記憶部42内の加工プログラムを取得し、当該加工プログラムから解析対象となる解析対象行を順次選択しながら区切りブロックを検出する。そして、当該区切りブロックから前方向における最初の早送り、または所定の送り速度以上に設定された最初の切削送りのいずれかを含むブロックを退避動作開始行として検出し、その行番号を解析結果記憶部43に記憶するようになっている。   Specifically, the machining program analysis unit 51 acquires a machining program in the machining program storage unit 42, and detects a break block while sequentially selecting an analysis target line to be analyzed from the machining program. Then, a block including either the first rapid feed in the forward direction or the first cutting feed set at a predetermined feed speed or more from the delimiter block is detected as a retreat operation start line, and the line number is detected as an analysis result storage unit. 43.

なお、本実施形態では、区切りブロックとして、図3に示すM01(オプショナルストップ)を使用している。しかしながら、これに限定されるものではなく、複数の加工動作間の区切りを示すものであれば、M00(プログラムストップ)や、加工プログラムの作成者によって意図的に挿入された任意の文字列等を区切りブロックとしてもよい。また、早送りを行わせる際は、一般的なG00(早送りによる工具の移動)の他に、G01(切削送りによる工具の直線移動)の送り速度(F)を早くして代用することがある。このため、本実施形態では、G00および所定の送り速度以上のG01のどちらでも、早送りを開始するブロックとして検出するようになっている。   In this embodiment, M01 (optional stop) shown in FIG. 3 is used as a delimiter block. However, the present invention is not limited to this. If it indicates a break between a plurality of machining operations, M00 (program stop), an arbitrary character string intentionally inserted by the creator of the machining program, or the like may be used. It may be a delimiter block. Further, when performing the rapid traverse, the feed rate (F) of G01 (the linear movement of the tool by the cutting feed) may be increased instead of the general G00 (movement of the tool by the rapid traverse). For this reason, in the present embodiment, both G00 and G01 at a speed equal to or higher than a predetermined feed speed are detected as blocks for starting fast-forward.

また、本実施形態において、加工プログラム解析部51は、検出した区切りブロック以降において最初の加工動作を行うブロックの1つ前の行を、進入動作終了行として検出し、その行番号を解析結果記憶部43に記憶するようになっている。なお、加工動作を行うブロックとしては、各種の切削送り(G01、G02、G03)等が挙げられる。   Further, in the present embodiment, the machining program analysis unit 51 detects the line immediately before the block where the first machining operation is performed after the detected delimiter block as the entry operation end line, and stores the line number thereof as an analysis result storage. The information is stored in the unit 43. In addition, as a block which performs a machining operation, various cutting feeds (G01, G02, G03) and the like can be mentioned.

事前通知行決定部52は、デバッグ処理が要注意範囲に到達する旨をオペレータに通知するタイミングを定める事前通知行を決定するものである。本実施形態において、事前通知行決定部52は、図3に示すように、要注意範囲の最初の行にあたる退避動作開始行よりも任意の事前通知設定時間だけ前方向のタイミングに基づき事前通知行を決定する。具体的には、事前通知行決定部52は、退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算する。そして、当該サイクルタイムの総和が事前通知設定時間以上になったときのブロックを事前通知行として決定し、その行番号を解析結果記憶部43に記憶するようになっている。   The advance notification line determination unit 52 determines an advance notification line that determines the timing at which the operator is notified that the debugging process reaches the caution range. In the present embodiment, as shown in FIG. 3, the advance notice line determination unit 52 performs the advance notice line based on the timing in the forward direction by an arbitrary advance notice set time from the evacuation operation start line corresponding to the first line in the cautionary range. To determine. Specifically, the advance notification line determination unit 52 sequentially adds the cycle times of the blocks existing in the forward direction from the evacuation operation start line. Then, a block when the sum of the cycle times becomes equal to or longer than the advance notification set time is determined as an advance notification line, and the line number is stored in the analysis result storage unit 43.

なお、本実施形態において、事前通知設定時間は、ユーザによって任意の時間(10秒等)に設定されてもよく、センサ等によって検出された各種の状況に応じて、最適な時間が自動的に設定されるようにしてもよい。また、サイクルタイムは、1ブロックを実行するのにかかる処理時間であり、その算出に際しては、各ブロックで指定されている、移動距離、送り速度とそのオーバーライド(倍率)、モータの加減速、および動作時間(M機能の場合)等が加味される。これにより、正確なサイクルタイムが算出されるため、事前通知行が自動的かつ高精度に決定される。   In the present embodiment, the advance notification setting time may be set to an arbitrary time (10 seconds or the like) by the user, and the optimum time is automatically set in accordance with various situations detected by a sensor or the like. It may be set. The cycle time is the processing time required to execute one block. When calculating the cycle time, the movement distance, feed speed and its override (magnification), acceleration / deceleration of the motor, The operation time (in the case of the M function) and the like are taken into account. As a result, an accurate cycle time is calculated, and the advance notification line is automatically and accurately determined.

なお、上述した本実施形態において、事前通知行決定部52によって決定された事前通知行が長時間を要するブロックであった場合、後述する事前通知処理が実行された後も長時間待たなければならない場合も考えられる。そこで、本実施形態において、事前通知行決定部52は、前記タイミングを含むブロックのサイクルタイムが基準時間以上か否かを判断し、当該結果に応じて事前通知処理を実行するタイミングを調整するようになっている。   In the present embodiment described above, when the advance notification line determined by the advance notification line determination unit 52 is a block that requires a long time, the user must wait for a long time after the advance notification process described later is executed. It is possible. Therefore, in the present embodiment, the advance notification row determination unit 52 determines whether the cycle time of the block including the timing is equal to or longer than the reference time, and adjusts the timing of executing the advance notification process according to the result. It has become.

具体的には、事前通知行決定部52は、退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算する。そして、当該サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間より短い場合、上記のとおり、当該ブロックを事前通知行として決定する。なお、基準時間としては、60秒以下程度に設定することが好ましいが適宜変更しうる。   Specifically, the advance notification line determination unit 52 sequentially adds the cycle times of the blocks existing in the forward direction from the evacuation operation start line. When the cycle time of the block when the sum of the cycle times becomes equal to or longer than the advance notification set time is shorter than the reference time, the block is determined as the advance notification line as described above. The reference time is preferably set to about 60 seconds or less, but can be changed as appropriate.

一方、事前通知行決定部52は、前記サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれない場合、前記サイクルタイムの総和から事前通知設定時間を差し引いた値を通知開始時間として解析結果記憶部43に記憶する。   On the other hand, the advance notification row determination unit 52 determines that the cycle time of the block when the sum of the cycle times is equal to or longer than the advance notification set time is equal to or longer than the reference time, and that the timing is included in the last section of the block. If not, a value obtained by subtracting the advance notification set time from the total of the cycle times is stored in the analysis result storage unit 43 as the notification start time.

なお、最終区間とは、ブロックの最後から所定時間内の区間であり、当該所定時間としては数秒程度に設定することが好ましいが、適宜変更可能である。また、最終区間内に前記タイミングが含まれるか否かは、事前通知設定時間から一つ前の総サイクルタイムを差し引いた値が、最終区間を定める所定時間以下であるか否かによって判定される。すなわち、上記値が所定時間以下であれば最終区間内であり、所定時間よりも大きければ最終区間内ではないと判定される。   Note that the last section is a section within a predetermined time from the end of the block, and the predetermined time is preferably set to about several seconds, but can be changed as appropriate. Whether or not the timing is included in the last section is determined by whether or not a value obtained by subtracting the previous total cycle time from the advance notification setting time is equal to or less than a predetermined time that defines the last section. . That is, if the value is equal to or less than the predetermined time, it is determined that the current time is within the last section, and if the value is longer than the predetermined time, it is determined that the current time is not within the last section.

また、事前通知行決定部52は、前記サイクルタイムの総和が事前通知設定時間以上になったときのブロックを事前通知行として決定し、その行番号を通知開始時間とともに解析結果記憶部43に記憶するようになっている。この場合、後述するとおり、事前通知処理部55は、事前通知行に到達してから通知開始時間の経過後に事前通知処理を実行するようになっている。   The advance notification line determination unit 52 determines a block when the total of the cycle times is equal to or longer than the advance notification set time as the advance notification line, and stores the line number in the analysis result storage unit 43 together with the notification start time. It is supposed to. In this case, as described later, the advance notification processing unit 55 executes the advance notification process after a lapse of the notification start time from the arrival at the advance notification row.

また、事前通知行決定部52は、前記サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれる場合、当該ブロックの次のブロックを事前通知行として決定し、その行番号を解析結果記憶部43に記憶するようになっている。   In addition, the advance notification line determination unit 52 determines that the cycle time of the block when the sum of the cycle times is equal to or greater than the advance notification set time is equal to or greater than the reference time, and that the timing is included in the last section of the block. In this case, the next block of the block is determined as the advance notification line, and the line number is stored in the analysis result storage unit 43.

デバッグ処理部53は、加工プログラムのデバッグ処理を行うものである。本実施形態において、デバッグ処理部53は、加工プログラム記憶部42から加工プログラムを読み出し、当該加工プログラムを構成する各ブロックによって指定される動作を順次実行するようになっている。   The debug processing unit 53 performs a debugging process of the machining program. In the present embodiment, the debug processing unit 53 reads out a machining program from the machining program storage unit 42 and sequentially executes operations specified by blocks constituting the machining program.

また、本実施形態において、デバッグ処理部53は、解析結果記憶部43に記憶されている退避動作開始行に到達した場合、オペレータ検出部54の検出結果を参照する。そして、オペレータが検出されなかった場合、デバッグ処理部53は、退避動作開始行で加工プログラムの実行を停止するようになっている。また、デバッグ処理部53は、表示入力手段2等から実行の再開を受け付けた場合、加工プログラムの実行を再開する。   In this embodiment, when the debug processing unit 53 reaches the evacuation operation start line stored in the analysis result storage unit 43, the debug processing unit 53 refers to the detection result of the operator detection unit 54. When no operator is detected, the debug processing unit 53 stops executing the machining program at the retreat operation start line. In addition, when receiving a restart of the execution from the display input unit 2 or the like, the debug processing unit 53 restarts the execution of the machining program.

さらに、本実施形態において、デバッグ処理部53は、解析結果記憶部43に記憶されている退避動作開始行から進入動作終了行までの要注意範囲を実行している間、常に、オペレータ検出部54の検出結果を参照する。そして、オペレータが検出されなかった場合、デバッグ処理部53は、オペレータが不在の旨をオペレータ不在記録部44に記憶するようになっている。   Furthermore, in the present embodiment, the debug processing unit 53 always executes the operator detection unit 54 while executing the cautionary range from the evacuation operation start line to the approach operation end line stored in the analysis result storage unit 43. Refer to the detection result of. When no operator is detected, the debug processing unit 53 stores the absence of the operator in the operator absence recording unit 44.

オペレータ検出部54は、加工プログラムデバッグ装置1の周囲にオペレータがいるか否かを検出するものである。本実施形態において、オペレータ検出部54は、加工プログラムデバッグ装置1や工作機械10に設けられた所定のボタン(図示せず)が押下されたか否かによって、オペレータの在否を判定するようになっている。このため、タッチパネルやメカニカルボタン等の既存の設備を用いてオペレータの検出が可能になる。   The operator detecting section 54 detects whether or not an operator is present around the machining program debug device 1. In the present embodiment, the operator detection unit 54 determines the presence or absence of an operator based on whether or not a predetermined button (not shown) provided on the machining program debugging device 1 or the machine tool 10 has been pressed. ing. Therefore, the operator can be detected using existing equipment such as a touch panel and mechanical buttons.

なお、オペレータの検出手段は、上記ボタンに限定されるものではなく、オペレータを検出しうるものであればよい。例えば、加工プログラムデバッグ装置1の周囲に設置した監視カメラ(図示せず)の映像を画像処理し、オペレータが工作機械10を見ているか否かによってオペレータを検出してもよい。また、加工プログラムデバッグ装置1の周囲に設置したバリアセンサ(図示せず)からの出力信号に基づいて、オペレータを検出してもよく、他の人感センサ等を使用してもよい。   The operator detecting means is not limited to the above buttons, but may be any as long as it can detect the operator. For example, an image of a monitoring camera (not shown) installed around the machining program debug device 1 may be image-processed, and the operator may be detected based on whether the operator is looking at the machine tool 10. Further, an operator may be detected based on an output signal from a barrier sensor (not shown) provided around the machining program debug device 1, or another human sensor may be used.

事前通知処理部55は、まもなく退避動作開始行に到達する旨をオペレータに通知するための事前通知処理を実行するものである。本実施形態において、事前通知処理部55は、加工プログラムのデバッグ中に事前通知行に到達した場合、オペレータ検出部54の検出結果を参照する。そして、加工プログラムデバッグ装置1の周囲にオペレータが検出された場合、事前通知処理部55は、加工プログラムデバッグ装置1または工作機械10において事前通知処理を実行する。一方、加工プログラムデバッグ装置1の周囲にオペレータが検出されなかった場合、事前通知処理部55は、オペレータの携帯端末11またはオペレータが操作中の機器12(他の工作機械等)に対して事前通知処理を実行するようになっている。   The advance notification processing section 55 executes an advance notification process for notifying the operator that the evacuation operation start line will be reached soon. In the present embodiment, the advance notification processing unit 55 refers to the detection result of the operator detection unit 54 when reaching the advance notification line during debugging of the machining program. Then, when an operator is detected around the machining program debug device 1, the advance notice processing unit 55 executes the advance notice process in the machining program debug device 1 or the machine tool 10. On the other hand, when the operator is not detected around the machining program debug device 1, the advance notification processing unit 55 notifies the operator's portable terminal 11 or the device 12 (other machine tool or the like) operated by the operator in advance. The processing is executed.

また、本実施形態において、加工プログラムデバッグ装置1の周囲にオペレータが検出された場合であって、前記タイミングを含むブロックのサイクルタイムが基準時間以上であり、かつ、前記タイミングが当該ブロックの最終区間内に含まれない場合、事前通知処理部55は、解析結果記憶部43から通知開始時間を読み出し、事前通知行の実行が開始されてから通知開始時間の経過後に事前通知処理を実行するようになっている。   Further, in the present embodiment, when an operator is detected around the machining program debug device 1, the cycle time of the block including the timing is equal to or longer than the reference time, and the timing is the last section of the block. If not included, the advance notification processing unit 55 reads the notification start time from the analysis result storage unit 43, and executes the advance notification process after the elapse of the notification start time since the execution of the advance notification row. Has become.

なお、事前通知処理は、オペレータに通知しうる処理であれば特に限定されるものではない。具体的には、表示入力手段2にメッセージを表示させてもよく、スピーカー(図示せず)から警告音を出力してもよく、ライトを点滅・点灯させてもよい。また、本実施形態では、オペレータの携帯端末11のメールアドレスや、オペレータが操作中の機器12に関する情報が予め記憶手段4に設定されている。   The advance notification process is not particularly limited as long as the process can notify the operator. Specifically, a message may be displayed on the display input means 2, a warning sound may be output from a speaker (not shown), or a light may be blinked or lit. In the present embodiment, the mail address of the mobile terminal 11 of the operator and information on the device 12 operated by the operator are set in the storage unit 4 in advance.

表示制御部56は、表示入力手段2に表示させる表示内容を制御するものである。本実施形態において、表示制御部56は、加工プログラムのデバッグ中に、実行中の行と、当該行以降の複数の行を表示入力手段2に表示させる。また、表示制御部56は、解析結果記憶部43から退避動作開始行および進入動作終了行の行番号を参照し、退避動作開始行から進入動作終了行までの要注意範囲を他の行と識別可能に表示入力手段2に表示させる。例えば、図3に示すように、要注意範囲の背景にのみ着色することにより、オペレータは一目で要注意範囲を認識する。   The display control unit 56 controls display contents to be displayed on the display input unit 2. In the present embodiment, the display control unit 56 causes the display input unit 2 to display the line being executed and a plurality of lines after the line during debugging of the machining program. Further, the display control unit 56 refers to the line numbers of the evacuation operation start line and the approach operation end line from the analysis result storage unit 43, and distinguishes the cautionary range from the evacuation operation start line to the approach operation end line from other lines. It is displayed on the display input means 2 as possible. For example, as shown in FIG. 3, by coloring only the background of the cautionary area, the operator can recognize the cautionary area at a glance.

つぎに、本実施形態の加工プログラムデバッグ装置1、およびこれを備えた工作機械10の作用について、図4〜図6を参照しつつ説明する。   Next, the operation of the machining program debug device 1 of the present embodiment and the machine tool 10 having the same will be described with reference to FIGS.

まず、本実施形態の加工プログラムデバッグ装置1を用いて、加工プログラムをデバッグする場合、事前に加工プログラムを解析し、退避動作開始行、進入動作開始行および事前通知行を特定するための加工プログラム解析処理を実行する。   First, when debugging a machining program using the machining program debug device 1 of the present embodiment, a machining program for analyzing the machining program in advance and specifying a retreat operation start line, an approach operation start line, and a prior notification line Perform analysis processing.

具体的には、図4に示すように、まず、加工プログラム解析部51が加工プログラムを取得するとともに(ステップS1)、解析対象行の行番号を示すパラメータiを0に初期化する(ステップS2)。そして、パラメータiをインクリメント(i+1)することにより、次の行を解析対象行として選択し(ステップS3)、当該解析対象行が加工プログラムの最終行であるか否かを判定する(ステップS4)。当該判定の結果、解析対象行が最終行である場合(ステップS4:YES)、加工プログラム解析処理を終了する。   Specifically, as shown in FIG. 4, first, the machining program analysis unit 51 acquires a machining program (step S1), and initializes a parameter i indicating a row number of a row to be analyzed to 0 (step S2). ). Then, by incrementing (i + 1) the parameter i, the next line is selected as an analysis target line (step S3), and it is determined whether or not the analysis target line is the last line of the machining program (step S4). . As a result of the determination, if the analysis target row is the last row (step S4: YES), the machining program analysis processing ends.

一方、ステップS4における判定の結果、解析対象行が最終行でない場合(ステップS4:NO)、加工プログラム解析部51は、解析対象行が区切りブロックであるか否かを判定する(ステップS5)。当該判定の結果、解析対象行が区切りブロックでなければ(ステップS5:NO)、ステップS3へ戻り、次の行を新たな解析対象行として選択する。   On the other hand, if the result of determination in step S4 is that the analysis target row is not the last row (step S4: NO), the machining program analysis unit 51 determines whether the analysis target row is a delimiter block (step S5). As a result of the determination, if the analysis target row is not a delimiter block (step S5: NO), the process returns to step S3, and the next row is selected as a new analysis target row.

一方、ステップS5における判定の結果、解析対象行が区切りブロックであった場合(ステップS5:YES)、加工プログラム解析部51は、退避動作開始行を探索するための探索対象行を示すパラメータjを現在の解析対象行の行番号(i)に初期化する(ステップS6)。これにより、退避動作開始行を探索する際の基準が区切りブロックに設定される。   On the other hand, as a result of the determination in step S5, when the analysis target line is the delimiter block (step S5: YES), the machining program analysis unit 51 sets the parameter j indicating the search target line for searching for the evacuation operation start line. Initialize to the line number (i) of the current analysis target line (step S6). As a result, the criterion for searching for the evacuation operation start line is set in the partition block.

つぎに、加工プログラム解析部51は、パラメータjをデクリメント(j−1)することにより、1つ前の行を新たな探索対象行として選択し(ステップS7)、当該探索対象行が早送りを開始するブロックであるか否かを判定する(ステップS8)。当該判定の結果、早送り開始ブロックでなければ(ステップS8:NO)、ステップS7に戻り、1つ前の行を新たな探索対象行として選択する。これにより、区切りブロックから前方向におけるブロックが順次探索されることとなる。   Next, the machining program analysis unit 51 selects the previous row as a new search target row by decrementing the parameter j (j-1) (step S7), and the search target row starts fast-forwarding. It is determined whether or not the block is to be executed (step S8). As a result of the determination, if the block is not the fast forward start block (step S8: NO), the process returns to step S7, and the previous row is selected as a new search target row. As a result, blocks in the forward direction are sequentially searched from the delimiter block.

一方、ステップS8における判定の結果、探索対象行が早送り開始ブロックであった場合(ステップS8:YES)、加工プログラム解析部51は、現在の探索対象行(j)を退避動作開始行として解析結果記憶部43に記憶する(ステップS9)。これにより、要注意範囲の開始ブロックとなる退避動作開始行が正確かつ自動的に検出される。   On the other hand, as a result of the determination in step S8, if the search target line is the fast-forward start block (step S8: YES), the machining program analysis unit 51 sets the current search target line (j) as the evacuation operation start line, and It is stored in the storage unit 43 (Step S9). As a result, the evacuation operation start line, which is the start block of the caution range, is accurately and automatically detected.

退避動作開始行が検出されると(ステップS9)、事前通知行決定部52が、当該退避動作開始行よりも任意の事前通知設定時間だけ前方のタイミングに基づいて事前通知行を決定する(ステップS10)。具体的には、図5に示すように、まず、事前通知行決定部52が、サイクルタイムを算出するための算出対象行を示すパラメータkを退避動作開始行の行番号(j)に初期化するとともに、サイクルタイムの総和を示すパラメータTを0に初期化する(ステップS21)。   When the evacuation operation start line is detected (step S9), the advance notification line determination unit 52 determines the advance notification line based on the timing ahead of the evacuation operation start line by an arbitrary advance notification set time (step S9). S10). Specifically, as shown in FIG. 5, first, the prior notification line determination unit 52 initializes a parameter k indicating a calculation target line for calculating a cycle time to a line number (j) of the evacuation operation start line. At the same time, a parameter T indicating the sum of the cycle times is initialized to 0 (step S21).

つぎに、事前通知行決定部52は、パラメータkをデクリメントすることにより、1つ前の行(k−1)を新たな算出対象行(k)として選択する(ステップS22)。そして、事前通知行決定部52は、当該算出対象行(k)のサイクルタイム(t)を算出し、当該サイクルタイム(t)を総サイクルタイム(T)に加算する(ステップS23)。これにより、ステップS9で検出された退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムが順次加算されることとなる。 Next, the prior notification row determination unit 52 selects the previous row (k-1) as a new calculation target row (k) by decrementing the parameter k (step S22). The advance notification line determination unit 52 calculates the cycle time (t k) of the calculation target row (k), and adds the cycle time (t k) to the total cycle time (T) (step S23). Thus, the cycle times of the blocks existing in the forward direction from the evacuation operation start line detected in step S9 are sequentially added.

総サイクルタイム(T)が更新される度に(ステップS23)、事前通知行決定部52は、事前通知設定時間と比較する(ステップS24)。当該比較の結果、総サイクルタイム(T)が事前通知設定時間未満であれば(ステップS24:NO)、ステップS22に戻り、1つ前の行(k−1)を新たな算出対象行(k)として選択する。一方、ステップS24における比較の結果、総サイクルタイム(T)が事前通知設定時間以上となった場合(ステップS24:YES)、事前通知行決定部52は、現在の算出対象行(k)のサイクルタイム(t)が、基準時間以上であるか否かを判定する(ステップS25)。 Each time the total cycle time (T) is updated (step S23), the advance notice row determination unit 52 compares the total cycle time (T) with the advance notice set time (step S24). As a result of the comparison, if the total cycle time (T) is less than the advance notification set time (step S24: NO), the process returns to step S22, and the previous row (k-1) is replaced with a new calculation target row (k). ). On the other hand, as a result of the comparison in step S24, if the total cycle time (T) is equal to or longer than the advance notification set time (step S24: YES), the advance notification row determination unit 52 determines the cycle of the current calculation target row (k). time (t k) is equal to or larger than the reference time (step S25).

当該判定の結果、現在の算出対象行(k)のサイクルタイム(t)が基準時間よりも短い場合(ステップS25:NO)、事前通知行決定部52は、現在の算出対象行(k)を事前通知行として解析結果記憶部43に記憶する(ステップS28)。これにより、サイクルタイムがそれほど長くないブロックであれば、退避動作開始行よりも事前通知設定時間前に実行されるブロックが事前通知行として正確かつ自動的に決定される。 As a result of the determination, if the cycle time of the current calculation target row (k) (t k) is shorter than the reference time (step S25: NO), advance notice line determination unit 52, the current calculation target row (k) Is stored in the analysis result storage unit 43 as a prior notification line (step S28). As a result, if the block has a cycle time not so long, the block executed before the evacuation operation start line and before the elapse of the pre-notification set time is accurately and automatically determined as the pre-notification line.

一方、ステップS25における判定の結果、現在の算出対象行(k)のサイクルタイム(t)が基準時間以上である場合(ステップS25:YES)、事前通知行決定部52は、事前通知設定時間から一つ前の総サイクルタイム(T−t)を差し引いた値が、最終区間を定める所定時間以下であるか否かを判定する(ステップS26)。これにより、事前通知設定時間によって定められるタイミングが、サイクルタイムの長いブロックにおける最終区間に含まれるか否かが判定される。 On the other hand, the result of determination in step S25, if the cycle time of the current calculation target row (k) (t k) is equal to or larger than the reference time (step S25: YES), advance notice line determining unit 52 in advance notification setting time minus the previous total cycle time (T-t k) from is equal to or less than a predetermined time to determine the final interval (step S26). Thereby, it is determined whether or not the timing determined by the advance notification setting time is included in the last section of the block having the long cycle time.

ステップS26における判定の結果、事前通知設定時間から一つ前の総サイクルタイム(T−t)を差し引いた値が所定時間よりも大きい場合(ステップS26:NO)、事前通知行決定部52は、総サイクルタイム(T)から事前通知設定時間を差し引いた値を通知開始時間として記憶するとともに(ステップS27)、現在の算出対象行(k)を事前通知行として記憶する(ステップS28)。これにより、サイクルタイムの長いブロックにおいて、通知タイミングが最後の数秒間に含まれない場合、事前通知行に到達してから事前通知処理を実行するまでの時間を定める通知開始時間が別途、算出される。 As a result of the judgment in the step S26, when the value obtained by subtracting the previous total cycle time (T-t k) from the pre-notification setting time is greater than the predetermined time (Step S26: NO), advance notice line determination unit 52 Then, a value obtained by subtracting the advance notification set time from the total cycle time (T) is stored as the notification start time (step S27), and the current calculation target row (k) is stored as the advance notification row (step S28). Thereby, in a block having a long cycle time, if the notification timing is not included in the last few seconds, a notification start time which determines a time from when the advance notification row is reached to when the advance notification processing is performed is separately calculated. You.

一方、事前通知設定時間から一つ前の総サイクルタイム(T−t)を差し引いた値が所定時間以下の場合(ステップS26:YES)、事前通知行決定部52は、現在の算出対象行(k)の次のブロック(k+1)を事前通知行として決定する(ステップS29)。これにより、サイクルタイムの長いブロックにおいて、通知タイミングが最後の数秒間に含まれる場合には、通知開始時間が算出されることなく次のブロックが事前通知行として決定される。 On the other hand, if the advance notice set by subtracting the previous total cycle time (T-t k) from the time value is less than a predetermined time (step S26: YES), advance notice line determination unit 52, the current calculation target row The block (k + 1) next to (k) is determined as the advance notification line (step S29). Thus, in a block having a long cycle time, when the notification timing is included in the last few seconds, the next block is determined as the advance notification line without calculating the notification start time.

以上の事前通知行決定処理によって事前通知行が決定されると(ステップS9)、図4の加工プログラム解析処理に戻り、加工プログラム解析部51が探索対象行を示すパラメータjを再び現在の解析対象行の行番号(i)で初期化する(ステップS11)。これにより、進入動作終了行を探索する際の基準が区切りブロックに設定される。   When the prior notification line is determined by the above-described prior notification line determination process (step S9), the process returns to the machining program analysis process of FIG. 4, and the machining program analysis unit 51 again sets the parameter j indicating the search target line to the current analysis target. Initialization is performed with the row number (i) of the row (step S11). As a result, the criterion for searching for the entry operation end row is set in the partition block.

つぎに、加工プログラム解析部51は、パラメータjをインクリメント(j+1)することにより、次の行を新たな探索対象行として選択し(ステップS12)、当該探索対象行が加工動作を開始するブロックであるか否かを判定する(ステップS13)。当該判定の結果、加工開始ブロックでなければ(ステップS13:NO)、ステップS12に戻り、次の行を新たな探索対象行として選択する。これにより、区切りブロックから後方向におけるブロックが順次探索されることとなる。   Next, the processing program analysis unit 51 selects the next row as a new search target row by incrementing the parameter j (j + 1) (step S12), and the search target row starts a processing operation in a block. It is determined whether or not there is (step S13). As a result of the determination, if the block is not the processing start block (step S13: NO), the process returns to step S12, and the next row is selected as a new search target row. As a result, blocks in the backward direction are sequentially searched from the partition block.

一方、ステップS13における判定の結果、探索対象行が加工開始ブロックであった場合(ステップS13:YES)、加工プログラム解析部51は、現在の探索対象行の1つ前の行(j−1)を進入動作終了行として解析結果記憶部43に記憶する(ステップS14)。これにより、要注意範囲の終了ブロックとなる進入動作終了行が正確かつ自動的に検出される。   On the other hand, as a result of the determination in step S13, when the search target row is the processing start block (step S13: YES), the processing program analysis unit 51 determines the row (j−1) immediately before the current search target row. Is stored in the analysis result storage unit 43 as the entry operation end row (step S14). Thus, the entry operation end row, which is the end block of the caution range, is accurately and automatically detected.

進入動作終了行が検出されると(ステップS14)、加工プログラム解析部51は、現在の解析対象行の行番号が加工プログラムの総行数を超えているか否かを比較する(ステップS15)。当該比較の結果、現在の解析対象行の行番号が総行数以下の場合(ステップS15:NO)、未解析のブロックが存在するため、ステップS3に戻り、上述した処理を繰り返す。一方、現在の解析対象行の行番号が総行数を超えた場合(ステップS15:YES)、全てのブロックが解析されたこととなるため、加工プログラム解析処理を終了する。   When the entry operation end row is detected (step S14), the machining program analysis unit 51 compares whether or not the row number of the current analysis target row exceeds the total number of machining program rows (step S15). As a result of the comparison, if the current row number of the analysis target row is equal to or smaller than the total number of rows (step S15: NO), since there is an unanalyzed block, the process returns to step S3, and the above-described processing is repeated. On the other hand, if the line number of the current line to be analyzed exceeds the total number of lines (step S15: YES), all blocks have been analyzed, and the machining program analysis processing ends.

以上のとおり、事前に加工プログラム解析処理を実行することにより、デバッグ対象の加工プログラムに含まれる、全ての退避動作開始行、進入動作終了行および事前通知行が特定される。そして、加工プログラム解析処理が実行された加工プログラムについては、本実施形態のデバッグ処理が実行可能となる。   As described above, by executing the machining program analysis processing in advance, all the retreat operation start lines, the approach operation end lines, and the advance notice lines included in the machining program to be debugged are specified. Then, the debugging process of the present embodiment can be executed for the machining program on which the machining program analysis process has been executed.

具体的には、図6に示すように、まず、表示制御部56がデバッグ対象の加工プログラムを表示入力手段2に表示する(ステップS31)。これにより、デバッグ処理を実行する加工プログラムがオペレータに提示され、実行中のブロックおよびこれから実行されるブロックが目視により確認される。   Specifically, as shown in FIG. 6, first, the display control unit 56 displays the machining program to be debugged on the display input unit 2 (step S31). As a result, the machining program for executing the debugging process is presented to the operator, and the block being executed and the block to be executed are visually confirmed.

つづいて、デバッグ処理部53が加工プログラムの実行対象行の行番号を示すパラメータeを0に初期化した後(ステップS32)、パラメータeをインクリメント(e+1)することにより、次の行を新たな実行対象行として選択し実行する(ステップS33)。そして、デバッグ処理部53は、当該実行対象行が事前通知行であるか否かを判定する(ステップS34)。   Subsequently, after the debug processing unit 53 initializes the parameter e indicating the line number of the execution target line of the machining program to 0 (step S32), the parameter e is incremented (e + 1), so that the next line is set to a new line. It is selected and executed as an execution target line (step S33). Then, the debug processing unit 53 determines whether or not the execution target line is the advance notification line (Step S34).

当該判定の結果、実行対象行が事前通知行でなければ(ステップS34:NO)、ステップS33に戻り、次の行を新たな実行対象行として選択する。一方、ステップS34における判定の結果、実行対象行が事前通知行であった場合(ステップS34:YES)、オペレータ検出部54は加工プログラムデバッグ装置1の周囲にオペレータがいるか否かを判定する(ステップS35)。これにより、オペレータの在否に応じて適した事前通知処理を行うことが可能となる。   As a result of the determination, if the execution target row is not the advance notification row (step S34: NO), the process returns to step S33, and the next row is selected as a new execution target row. On the other hand, as a result of the determination in step S34, when the execution target line is the advance notification line (step S34: YES), the operator detection unit 54 determines whether there is an operator around the machining program debug device 1 (step S34). S35). As a result, it is possible to perform a prior notification process suitable for the presence or absence of an operator.

ステップS35における判定の結果、オペレータが検出された場合(ステップS35:YES)、事前通知処理部55が加工プログラムデバッグ装置1または工作機械10において事前通知処理を実行する(ステップS36)。一方、オペレータが検出されなかった場合(ステップS35:NO)、事前通知処理部55がオペレータの携帯端末11またはオペレータが操作中の機器12に対して事前通知処理を実行する(ステップS37)。   If the result of determination in step S35 is that an operator has been detected (step S35: YES), the advance notice processing unit 55 executes advance notice processing in the machining program debugging device 1 or the machine tool 10 (step S36). On the other hand, when the operator is not detected (step S35: NO), the advance notification processing unit 55 executes the advance notification processing on the mobile terminal 11 of the operator or the device 12 operated by the operator (step S37).

これにより、オペレータはどこにいても確実に、まもなく要注意範囲に到達する旨の注意が喚起される。このため、デバッグにおける要注意範囲の見過ごしが防止されるとともに、オペレータはデバッグ中の工作機械10を常時監視する必要がなく、デバッグにかかる作業負担が軽減する。また、複数の工作機械10を同時並行で操作することも可能となるため、作業効率が向上する。   This alerts the operator to reach the caution range soon, regardless of where he is. For this reason, oversight of the caution range in debugging is prevented, and the operator does not need to constantly monitor the machine tool 10 being debugged, thereby reducing the work load involved in debugging. In addition, since it is possible to operate a plurality of machine tools 10 simultaneously and in parallel, work efficiency is improved.

また、本実施形態において、事前通知行に対応付けて上述した通知開始時間が設定されている場合、事前通知処理部55は、事前通知行に到達してから通知開始時間の経過後に事前通知処理を実行する(ステップS36)。これにより、事前通知行決定部52によって決定された事前通知行のサイクルタイムが長い場合には、当該事前通知行の実行開始時ではなく、通知開始時間の経過後に事前通知処理が実行されるため、オペレータが長時間待たされることがない。   Further, in the present embodiment, if the above-described notification start time is set in association with the advance notification line, the advance notification processing unit 55 performs the advance notification processing after the notification start time has elapsed since the arrival at the advance notification line. Is executed (step S36). Accordingly, if the cycle time of the advance notification line determined by the advance notification line determination unit 52 is long, the advance notification process is executed not after the execution of the advance notification line but after the elapse of the notification start time. The operator is not kept waiting for a long time.

さらに、本実施形態において、退避動作開始行よりも事前通知設定時間だけ前方向のタイミングを含むブロックのサイクルタイムが長く、当該ブロックの最終区間内に前記タイミングが含まれる場合、当該ブロックの次のブロックが事前通知行として設定される。これにより、事前通知行の実行が開始されてから要注意範囲に到達するまでに長時間かかることが防止される。一方、事前通知行を次のブロックに設定しても、事前通知処理の実行タイミングはほとんど変わらないため、事前通知処理の作用効果は維持される。   Further, in the present embodiment, when the cycle time of a block including the timing in the forward direction is longer than the evacuation operation start row by the advance notification set time and the timing is included in the last section of the block, The block is set as the advance notice line. As a result, it is prevented that it takes a long time from the start of the execution of the advance notification line to the arrival at the caution range. On the other hand, even if the advance notification line is set in the next block, the execution timing of the advance notification process hardly changes, so that the operational effect of the advance notification process is maintained.

つぎに、表示制御部56が、表示入力手段2に表示される加工プログラムのうち、退避動作開始行から進入動作終了行までの要注意範囲を識別可能に表示する(ステップS38)。これにより、オペレータは、デバッグにおける要注意範囲を一目で認識し、集中して確認できるため、デバッグの精度が向上する。   Next, the display control unit 56 displays a cautionary range from the retreat operation start line to the approach operation end line in the machining program displayed on the display input unit 2 (step S38). This allows the operator to recognize the cautionary range in debugging at a glance and to concentrate on checking, thereby improving debugging accuracy.

つづいて、デバッグ処理部53が、パラメータeをインクリメント(e+1)することにより、次の行を新たな実行対象行として選択し実行する(ステップS39)。そして、デバッグ処理部53は、当該実行対象行が退避動作開始行であるか否かを判定する(ステップS40)。当該判定の結果、実行対象行が退避動作開始行でなければ(ステップS40:NO)、ステップS39に戻り、次の行を新たな実行対象行として選択する。   Subsequently, the debug processing unit 53 selects and executes the next line as a new execution target line by incrementing the parameter e (e + 1) (step S39). Then, the debug processing unit 53 determines whether or not the execution target line is the save operation start line (Step S40). As a result of the determination, if the execution target row is not the save operation start row (step S40: NO), the process returns to step S39, and the next row is selected as a new execution target row.

一方、ステップS40における判定の結果、実行対象行が退避動作開始行であった場合(ステップS40:YES)、オペレータ検出部54が加工プログラムデバッグ装置1の周囲にオペレータがいるか否かを判定する(ステップS41)。当該判定の結果、オペレータが不在であれば(ステップS43:NO)、デバッグ処理部53が加工プログラムの実行を停止する(ステップS42)。   On the other hand, as a result of the determination in step S40, when the execution target line is the evacuation operation start line (step S40: YES), the operator detection unit 54 determines whether there is an operator around the machining program debug device 1 (step S40). Step S41). As a result of the determination, if the operator is absent (step S43: NO), the debug processing unit 53 stops executing the machining program (step S42).

これにより、オペレータが不在の状態で、要注意範囲の実行が開始されてしまうことがなく、デバッグ作業の信頼性が向上する。また、事前通知設定時間を長めに設定することにより、オペレータは加工プログラムが停止する前に戻って来ることができ、デバッグ作業における時間のロスを低減することができる。   Accordingly, the execution of the range requiring attention is not started in a state where the operator is absent, and the reliability of the debugging work is improved. Further, by setting the advance notification setting time to be longer, the operator can return before the machining program stops, and the loss of time in the debugging work can be reduced.

つぎに、デバッグ処理部53は、オペレータが不在の旨をオペレータ不在記録部44に記録する(ステップS43)。これにより、要注意範囲内のブロックが実行されている間に、オペレータが不在であったブロックが記録される。このため、オペレータによって確認されなかったブロックが簡単に特定されるため、再確認作業が容易になり、デバッグの精度が向上する。また、不在の記録がなければ、要注意範囲がオペレータによって確認されたことが間接的に担保される。   Next, the debug processing unit 53 records the absence of the operator in the operator absence recording unit 44 (Step S43). As a result, while the blocks in the range requiring attention are being executed, the blocks where the operator is absent are recorded. For this reason, the block that has not been confirmed by the operator is easily specified, so that the reconfirmation work is facilitated and the accuracy of debugging is improved. If there is no absence record, it is indirectly secured that the operator needs to confirm the range requiring attention.

一方、ステップS41における判定の結果、オペレータが検出された場合(ステップS41:YES)、または、加工プログラムが一旦停止した後、オペレータから実行再開の指示を受け付けた場合(ステップS44:YES)、デバッグ処理部53がパラメータeをインクリメント(e+1)することにより、次の行を新たな実行対象行として選択し実行する(ステップS45)。そして、デバッグ処理部53は、当該実行対象行が加工プログラムの総行数を超えたか否かを判定し(ステップS46)、超えていれば(ステップS46:YES)、デバッグ処理を終了する。   On the other hand, if the result of determination in step S41 is that an operator has been detected (step S41: YES), or if an instruction to resume execution has been received from the operator after the machining program has been temporarily stopped (step S44: YES), debugging is performed. The processing unit 53 increments the parameter e (e + 1), thereby selecting and executing the next line as a new execution target line (step S45). Then, the debug processing unit 53 determines whether or not the execution target line has exceeded the total number of lines of the machining program (step S46). If it has exceeded (step S46: YES), the debug processing ends.

一方、ステップS46における判定の結果、総行数を超えていない場合(ステップS46:NO)、デバッグ処理部53は実行対象行が進入動作終了行であるか否かを判定する(ステップS47)。そして、当該判定の結果、進入動作終了行でなければ(ステップS47:NO)、ステップS43に戻り、オペレータの存否を確認しながら次の行を選択して実行する。一方、ステップS47における判定の結果、実行対象行が進入動作終了行であれば(ステップS47:YES)、ステップS33に戻り、次の行を選択して実行する。これにより、加工プログラムに含まれる全ての要注意範囲について、上述したデバッグ処理が実行されることとなる。   On the other hand, if the result of determination in step S46 is that the total number has not been exceeded (step S46: NO), the debug processing unit 53 determines whether or not the execution target line is the entry operation end line (step S47). If the result of the determination is that the line is not the entry operation end line (step S47: NO), the flow returns to step S43, and the next line is selected and executed while confirming the presence or absence of the operator. On the other hand, as a result of the determination in step S47, if the execution target line is the entry operation end line (step S47: YES), the process returns to step S33, and the next line is selected and executed. As a result, the above-described debugging process is executed for all the caution ranges included in the machining program.

以上のような本実施形態によれば、以下のような効果を奏する。
1.加工プログラムのデバッグにかかるオペレータの作業負担を軽減するとともに、デバッグにおける要注意範囲の見過ごしを防止することができる。
2.オペレータがどこにいても、まもなく要注意範囲に到達することを確実に通知することができる。
3.オペレータの不在を記録することにより、デバッグの精度および信頼性を向上することができる。
4.要注意範囲に到達する事前通知設定時間前のタイミングに基づいて、事前通知行を正確かつ自動的に決定することができる。
5.事前通知行の実行が開始されてから、要注意範囲に到達するまでにオペレータが長時間待たされるのを防止することができる。
6.要注意範囲の開始ブロックである退避動作開始行および要注意範囲の終了ブロックである進入動作終了行を簡単かつ自動的に検出することができる。
7.要注意範囲をオペレータに一目で認識させられるため、デバッグの精度を向上することができる。
8.オペレータが不在の状態で、要注意範囲の実行が開始されることを防止し、デバッグ作業の信頼性を向上することができる。
9.オペレータが不在でも、加工プログラムデバッグ装置1に戻って来るための時間的な余裕を与えて、デバッグ処理が停止されることを極力抑制し、デバッグ作業における時間のロスを低減することができる。
10.退避動作開始行、進入動作開始行および事前通知行を手動で指定または挿入する必要がなく、一般的な加工プログラムをそのまま解析およびデバッグすることができる。
11.要注意範囲のうち、オペレータが不在であったブロックを事後的に確認することができる。
According to the above-described embodiment, the following effects can be obtained.
1. It is possible to reduce the workload of the operator involved in debugging the machining program, and to prevent the user from overlooking the cautionary range in debugging.
2. Regardless of where the operator is, it can be reliably notified that the operator will soon reach the caution area.
3. By recording the absence of the operator, the accuracy and reliability of debugging can be improved.
4. The advance notification line can be accurately and automatically determined based on the timing before the advance notification setting time to reach the caution range.
5. It is possible to prevent the operator from having to wait for a long time from when the execution of the advance notification line is started to when the attention required range is reached.
6. The evacuation operation start line which is the start block of the caution range and the approach operation end line which is the end block of the caution range can be easily and automatically detected.
7. Since the operator can recognize the range requiring attention at a glance, the accuracy of debugging can be improved.
8. It is possible to prevent the execution of the range requiring attention from being started in a state where the operator is absent, thereby improving the reliability of the debugging work.
9. Even if an operator is absent, a time margin for returning to the machining program debugging apparatus 1 is given, and the stop of the debugging process can be suppressed as much as possible, and the time loss in the debugging work can be reduced.
10. There is no need to manually specify or insert the retreat operation start line, the approach operation start line, and the advance notification line, and a general machining program can be analyzed and debugged as it is.
11. The block in which the operator is absent can be confirmed after the fact within the caution range.

なお、本発明に係る加工プログラムデバッグ装置1は、前述した実施形態に限定されるものではなく、適宜変更することができる。例えば、上述した本実施形態では、数値制御装置の一機能として加工プログラムデバッグ装置1を機能させているが、この構成に限定されるものではない。   The machining program debugging device 1 according to the present invention is not limited to the above-described embodiment, and can be appropriately changed. For example, in the present embodiment described above, the machining program debug device 1 is caused to function as one function of the numerical control device, but the present invention is not limited to this configuration.

例えば、CAD(Computer-Aided Design:コンピュータ支援設計)機能およびCAM(Computer Aided Manufacturing:コンピュータ支援製造)機能を兼ね備えたCAD/CAM装置に本発明に係る加工プログラムデバッグプログラム1aを実装し、加工プログラムデバッグ装置1として構成してもよい。この場合、工作機械10を実際に動作させることなく、シミュレーションによって工作機械10の動作を確認しデバッグすることができる。   For example, the machining program debug program 1a according to the present invention is mounted on a CAD / CAM device having both a CAD (Computer-Aided Design) function and a CAM (Computer Aided Manufacturing) function, and the machining program debug is performed. The device 1 may be configured. In this case, the operation of the machine tool 10 can be confirmed and debugged by simulation without actually operating the machine tool 10.

また、本実施形態の加工プログラムデバッグ装置1は、オペレータ不在記録部44およびオペレータ検出部54を有しているが、この構成に限定されるものではない。オペレータが不在時の処理が不要であれば、オペレータ不在記録部44およびオペレータ検出部54を設けなくてもよい。この場合、デバッグ処理におけるステップS35、ステップS37およびステップS41〜S44の処理が不要となる。   Further, the machining program debugging device 1 of the present embodiment has the operator absence recording unit 44 and the operator detection unit 54, but is not limited to this configuration. If the processing when the operator is absent is unnecessary, the operator absence recording unit 44 and the operator detection unit 54 need not be provided. In this case, the processes of steps S35, S37, and steps S41 to S44 in the debugging process are not required.

さらに、上述した本実施形態では、要注意範囲を他の行と識別可能に表示するために、進入動作終了行を検出している。しかしながら、当該識別表示が不要であれば、加工プログラム解析部51は、進入動作終了行を検出する必要はない。この場合、加工プログラム解析処理におけるステップS11〜S14の処理が不要となる。   Furthermore, in the above-described embodiment, the entry operation end row is detected in order to display the cautionary range so as to be distinguishable from other rows. However, if the identification display is unnecessary, the machining program analysis unit 51 does not need to detect the entry operation end line. In this case, the processing of steps S11 to S14 in the processing program analysis processing becomes unnecessary.

また、上述した本実施形態では、事前通知処理の実行後にオペレータが長時間待たされるのを防止するため、事前通知行決定部52は、事前通知行決定処理におけるステップS25〜S27,S29を実行している。しかしながら、各ブロックのサイクルタイムがそれほど長くない場合などは、上記ステップS25〜S27,S29の処理を省略してもよい。さらに、事前通知行決定部52は、事前通知行決定処理において、通知開始時間を設定するステップS27のみを省略してもよい。   Further, in the above-described embodiment, in order to prevent the operator from waiting for a long time after the execution of the advance notification process, the advance notification line determination unit 52 executes steps S25 to S27 and S29 in the advance notification line determination process. ing. However, when the cycle time of each block is not so long, the processing of steps S25 to S27 and S29 may be omitted. Furthermore, the prior notification line determination unit 52 may omit only the step S27 of setting the notification start time in the prior notification line determination process.

さらに、本実施形態において、事前通知行決定部52は、サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に通知タイミングが含まれる場合のみ、当該ブロックの次のブロックを事前通知行として決定している。しかしながら、事前通知行決定部52は、ブロックのサイクルタイムに関係なく、通知タイミングがブロックの最終区間内に含まれる場合には、当該ブロックの次のブロックを事前通知行として決定してもよい。   Further, in the present embodiment, the advance notification row determination unit 52 determines that the cycle time of the block when the sum of the cycle times is equal to or longer than the advance notification set time is equal to or longer than the reference time, and is within the last section of the block. Only when the notification timing is included, the next block of the block is determined as the advance notification line. However, when the notification timing is included in the last section of the block regardless of the cycle time of the block, the advance notification line determination unit 52 may determine the next block after the block as the advance notification line.

1 加工プログラムデバッグ装置
1a 加工プログラムデバッグプログラム
2 表示入力手段
3 通信手段
4 記憶手段
5 演算処理手段
10 工作機械
11 携帯端末
12 機器
41 プログラム記憶部
42 加工プログラム記憶部
43 解析結果記憶部
44 オペレータ不在記録部
51 加工プログラム解析部
52 事前通知行決定部
53 デバッグ処理部
54 オペレータ検出部
55 事前通知処理部
56 表示制御部
DESCRIPTION OF SYMBOLS 1 Machining program debug apparatus 1a Machining program debug program 2 Display input means 3 Communication means 4 Storage means 5 Arithmetic processing means 10 Machine tool 11 Portable terminal 12 Equipment 41 Program storage unit 42 Processing program storage unit 43 Analysis result storage unit 44 Operator absence record Unit 51 Machining program analysis unit 52 Prior notification line determination unit 53 Debug processing unit 54 Operator detection unit 55 Prior notification processing unit 56 Display control unit

Claims (9)

加工プログラムによって制御される工作機械の動作を確認するための加工プログラムデバッグ装置であって、
前記加工プログラムを解析し、加工動作後に工具の退避動作を開始する退避動作開始行を検出する加工プログラム解析部と、
前記退避動作開始行よりも任意の事前通知設定時間だけ前方向のタイミングに基づき事前通知行を決定する事前通知行決定部と、
前記加工プログラムのデバッグ中に前記事前通知行に到達した場合、まもなく前記退避動作開始行に到達する旨を通知するための事前通知処理を実行する事前通知処理部と、
を有する、加工プログラムデバッグ装置。
A machining program debugging device for confirming an operation of a machine tool controlled by the machining program,
A machining program analysis unit that analyzes the machining program and detects a retreat operation start line that starts a retreat operation of the tool after the machining operation;
A prior notification line determination unit that determines a prior notification line based on a timing in a forward direction by any prior notification setting time from the evacuation operation start line,
When reaching the advance notification line during debugging of the machining program, a prior notification processing unit that executes a prior notification process to notify that the evacuation operation start line will be reached shortly,
A machining program debugging device.
前記加工プログラムデバッグ装置の周囲にオペレータがいるか否かを検出するオペレータ検出部を有し、
前記事前通知処理部は、前記加工プログラムデバッグ装置の周囲にオペレータが検出された場合、前記加工プログラムデバッグ装置または前記工作機械において前記事前通知処理を実行し、前記オペレータが検出されなかった場合、前記オペレータの携帯端末または前記オペレータが操作中の機器に対して前記事前通知処理を実行する、請求項1に記載の加工プログラムデバッグ装置。
Having an operator detection unit to detect whether there is an operator around the machining program debug device,
When the operator is detected around the machining program debug device, the advance notification processing unit executes the advance notification process in the machining program debug device or the machine tool, and when the operator is not detected. 2. The machining program debug device according to claim 1, wherein the advance notification process is performed on a portable terminal of the operator or a device operated by the operator.
前記加工プログラム解析部は、前記退避動作後に実行される工具の進入動作を終了する進入動作終了行を検出し、
前記オペレータ検出部によって、前記退避動作開始行から前記進入動作終了行までの要注意範囲において、前記加工プログラムデバッグ装置の周囲にオペレータが検出されなかった場合、その旨を記録するオペレータ不在記録部を有する、請求項2に記載の加工プログラムデバッグ装置。
The machining program analysis unit detects an entry operation end line that ends the entry operation of the tool executed after the retreat operation,
The operator detecting section, if no operator is detected around the machining program debug device in the cautionary range from the evacuation operation start line to the approach operation end line, an operator absence recording section that records the fact. The machining program debug device according to claim 2 having.
前記事前通知行決定部は、前記退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算し、前記サイクルタイムの総和が前記事前通知設定時間以上になったときのブロックを前記事前通知行として決定する、請求項1から請求項3のいずれかに記載の加工プログラムデバッグ装置。   The advance notification line determination unit sequentially adds the cycle time of each block existing in the forward direction from the evacuation operation start line, and the block when the total of the cycle times becomes equal to or longer than the advance notification set time. The machining program debug device according to any one of claims 1 to 3, wherein the processing program debug device is determined as the advance notification line. 前記事前通知行決定部は、前記退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算し、前記サイクルタイムの総和が前記事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれない場合、前記サイクルタイムの総和から前記事前通知設定時間を差し引いた値を通知開始時間として記憶するとともに、前記ブロックを前記事前通知行として決定し、
前記事前通知処理部は、前記事前通知行に到達してから前記通知開始時間の経過後に前記事前通知処理を実行する、請求項1から請求項4のいずれかに記載の加工プログラムデバッグ装置。
The advance notification line determination unit sequentially adds the cycle time of each block existing in the forward direction from the evacuation operation start line, and the block when the total of the cycle times becomes equal to or longer than the advance notification set time. If the cycle time is equal to or longer than the reference time and the timing is not included in the last section of the block, a value obtained by subtracting the advance notification set time from the sum of the cycle times is stored as the notification start time. Along with, the block is determined as the advance notification line,
The machining program debug according to any one of claims 1 to 4, wherein the advance notification processing unit executes the advance notification process after a lapse of the notification start time after reaching the advance notification row. apparatus.
前記事前通知行決定部は、前記退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算し、前記サイクルタイムの総和が前記事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれる場合、当該ブロックの次のブロックを前記事前通知行として決定する、請求項1から請求項5のいずれかに記載の加工プログラムデバッグ装置。   The advance notification line determination unit sequentially adds the cycle time of each block existing in the forward direction from the evacuation operation start line, and the block when the total of the cycle times becomes equal to or longer than the advance notification set time. 6. If the cycle time is equal to or longer than the reference time and the timing is included in the last section of the block, the next block of the block is determined as the advance notification line. The machining program debug device according to any one of the above. 前記加工プログラム解析部は、前記加工プログラムに含まれる複数の加工動作間の区切りを示す区切りブロックを検出し、前記区切りブロックから前方向における最初の早送り、または所定の送り速度以上に設定された最初の切削送りのいずれかを含むブロックを前記退避動作開始行として検出する、請求項1から請求項6のいずれかに記載の加工プログラムデバッグ装置。   The machining program analysis unit detects a partition block indicating a break between a plurality of machining operations included in the machining program, and the first fast-forward in the forward direction from the break block, or the first set at a predetermined feed speed or higher. The machining program debug device according to any one of claims 1 to 6, wherein a block including any one of the following cutting feeds is detected as the retreat operation start line. 前記加工プログラム解析部は、前記退避動作後に工具の進入動作を終了する進入動作終了行を検出し、
前記加工プログラムのデバッグ中に、前記退避動作開始行から前記進入動作終了行までの要注意範囲を他の行と識別可能に表示手段に表示させる表示制御部を有する、請求項1から請求項7のいずれかに記載の加工プログラムデバッグ装置。
The machining program analysis unit detects an entry operation end line that ends the entry operation of the tool after the retreat operation,
8. A display control unit for displaying, on a display means, a cautionary range from the retreat operation start line to the approach operation end line during debugging of the machining program so as to be distinguishable from other lines. The debugging program for a machining program according to any one of the above.
請求項1から請求項8のいずれかに記載の加工プログラムデバッグ装置を備えてなる工作機械。   A machine tool comprising the machining program debugging device according to any one of claims 1 to 8.
JP2017128149A 2017-06-30 2017-06-30 Machining program debug device and machine tool having the same Active JP6657144B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017128149A JP6657144B2 (en) 2017-06-30 2017-06-30 Machining program debug device and machine tool having the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017128149A JP6657144B2 (en) 2017-06-30 2017-06-30 Machining program debug device and machine tool having the same

Publications (2)

Publication Number Publication Date
JP2019012376A JP2019012376A (en) 2019-01-24
JP6657144B2 true JP6657144B2 (en) 2020-03-04

Family

ID=65228085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017128149A Active JP6657144B2 (en) 2017-06-30 2017-06-30 Machining program debug device and machine tool having the same

Country Status (1)

Country Link
JP (1) JP6657144B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06110527A (en) * 1992-09-28 1994-04-22 Okuma Mach Works Ltd Numerical controller with work completion forecasting function
JP2003015712A (en) * 2001-07-04 2003-01-17 Nakamura Tome Precision Ind Co Ltd Mail transmitter for machine tool
JP4238528B2 (en) * 2002-07-01 2009-03-18 三菱電機株式会社 Cutting path warning device
JP6411992B2 (en) * 2015-12-25 2018-10-24 ファナック株式会社 Numerical control device having means for confirming program execution state in function of executing NC program in response to handle operation

Also Published As

Publication number Publication date
JP2019012376A (en) 2019-01-24

Similar Documents

Publication Publication Date Title
US10018992B2 (en) Numerical control device
US8180476B2 (en) Machining state checking method and machining state checking apparatus
US6937942B2 (en) Method and apparatus of detecting tool abnormality in a machine tool
US10222782B2 (en) Parameter-based controller for managing tool life considering change in machining conditions
CN102667650B (en) Numerical control machine tool
JP2017033346A (en) Information acquisition device for machine tool
JP5788097B1 (en) Numerical control apparatus and logging method
US10108171B2 (en) Numerical controller capable of specifying halt point
JP7151108B2 (en) Information processing device, information processing method and program
JP6977296B2 (en) Work time measurement system and work instruction system using it
EP3816745B1 (en) Device for automatically operating machining center using cad data
KR102124658B1 (en) Method and Apparatus for Monitoring Cutting Load of Machine Tool
JP2011118840A (en) Numerical control device having motor load torque measuring function
US9857787B2 (en) Numerical controller configured to perform teaching operation with mechanism sections switched
JP4247264B2 (en) Machine tool controller
CN105388836A (en) Numerical control device
CN104850060A (en) Numerical controller for machine tool with efficient regular inspection function for components
JP2008176579A (en) Controller of machine
JP6657144B2 (en) Machining program debug device and machine tool having the same
US20180203433A1 (en) Numerical controller
US6829518B2 (en) Numerical control apparatus
JP2008087093A (en) Abnormality detecting device for machine tool
KR102336216B1 (en) Apparatus for displaying manufacturing time of machine tool
JP2017097631A (en) Utilization monitoring device of machine tool
CN111185801A (en) Numerical controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190313

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20191220

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

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200131

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200205

R150 Certificate of patent or registration of utility model

Ref document number: 6657144

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250