JP6657144B2 - Machining program debug device and machine tool having the same - Google Patents
Machining program debug device and machine tool having the same Download PDFInfo
- 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
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).
しかしながら、金型のように複雑な三次元形状を加工するための加工プログラムは、そのブロック数が何十万というオーダーになる。このため、そのような加工プログラムのデバッグに際し、上記のようなシングルブロック機能を用いると、膨大な時間がかかってしまうため現実的ではないという問題がある。 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.
以下、本発明に係る加工プログラムデバッグ装置およびこれを備えた工作機械の一実施形態について図面を用いて説明する。 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
工作機械10は、旋盤、ボール盤、中ぐり盤、フライス盤、歯切り盤、研削盤等のように、金属、木材、石材、樹脂等のワークに対して、切断、穿孔、研削、研磨、圧延、鍛造、折り曲げ等の各種の加工を施すための機械である。本実施形態において、工作機械10は、加工プログラムによって数値制御可能に構成されている。
The
本実施形態の加工プログラムデバッグ装置1は、工作機械10を制御する数値制御装置等のコンピュータによって構成されており、図1に示すように、主として、各種のデータを表示・入力する表示入力手段2と、各種のデータを送受信する通信手段3と、各種のデータを記憶する記憶手段4と、各種の演算処理を実行し後述する各構成部として機能する演算処理手段5とから構成されている。以下、各構成手段について詳細に説明する。
The machining
表示入力手段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
通信手段3は、加工プログラムデバッグ装置1に通信機能を実装するためのものであり、通信モジュール等から構成されている。本実施形態において、通信手段3は、有線または無線LAN(Local Area Network)等のネットワーク通信に対応しており、後述する事前通知処理部55による通知をオペレータの携帯端末11や、オペレータが操作中の機器12に送信するようになっている。
The communication means 3 is for mounting a communication function in the machining
記憶手段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
プログラム記憶部41には、本実施形態の加工プログラムデバッグプログラム1aがインストールされている。そして、演算処理手段5が、加工プログラムデバッグプログラム1aを実行することにより、加工プログラムデバッグ装置1としてのコンピュータを後述する各構成部として機能させるようになっている。
The machining program debug program 1a of the present embodiment is installed in the
なお、加工プログラムデバッグプログラム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
また、本実施形態において、加工プログラム記憶部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
解析結果記憶部43は、デバッグ処理を実行する前に、加工プログラムを事前に解析した結果を記憶するものである。具体的には、解析結果記憶部43は、図1に示すように、後述する加工プログラム解析部51によって検出された退避動作開始行および進入動作終了行と、後述する事前通知行決定部52によって決定された事前通知行のそれぞれについて、該当する行番号を記憶するようになっている。また、解析結果記憶部43は、後述する通知開始時間を事前通知行に対応付けて記憶するようになっている。
The analysis
なお、デバッグ作業において、オペレータが特に注意すべき要注意範囲は、工具がワークと干渉または衝突する可能性のある、進入動作および退避動作を行う部分である。このため、本実施形態では、図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
演算処理手段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
加工プログラム解析部51は、加工プログラムを事前に解析するものである。加工プログラムにおいては、一般的に、進入動作および退避動作は早送りによって行われる。しかしながら、実際には加工動作においても早送りが使用される場合がある。そこで、本実施形態では、複数の加工動作間に通常挿入される区切りブロックを基準として前後方向を探索し、退避動作開始行や進入動作終了行を検出するようになっている。
The
具体的には、加工プログラム解析部51は、加工プログラム記憶部42内の加工プログラムを取得し、当該加工プログラムから解析対象となる解析対象行を順次選択しながら区切りブロックを検出する。そして、当該区切りブロックから前方向における最初の早送り、または所定の送り速度以上に設定された最初の切削送りのいずれかを含むブロックを退避動作開始行として検出し、その行番号を解析結果記憶部43に記憶するようになっている。
Specifically, the machining
なお、本実施形態では、区切りブロックとして、図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
事前通知行決定部52は、デバッグ処理が要注意範囲に到達する旨をオペレータに通知するタイミングを定める事前通知行を決定するものである。本実施形態において、事前通知行決定部52は、図3に示すように、要注意範囲の最初の行にあたる退避動作開始行よりも任意の事前通知設定時間だけ前方向のタイミングに基づき事前通知行を決定する。具体的には、事前通知行決定部52は、退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算する。そして、当該サイクルタイムの総和が事前通知設定時間以上になったときのブロックを事前通知行として決定し、その行番号を解析結果記憶部43に記憶するようになっている。
The advance notification
なお、本実施形態において、事前通知設定時間は、ユーザによって任意の時間(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
具体的には、事前通知行決定部52は、退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムを順次加算する。そして、当該サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間より短い場合、上記のとおり、当該ブロックを事前通知行として決定する。なお、基準時間としては、60秒以下程度に設定することが好ましいが適宜変更しうる。
Specifically, the advance notification
一方、事前通知行決定部52は、前記サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれない場合、前記サイクルタイムの総和から事前通知設定時間を差し引いた値を通知開始時間として解析結果記憶部43に記憶する。
On the other hand, the advance notification
なお、最終区間とは、ブロックの最後から所定時間内の区間であり、当該所定時間としては数秒程度に設定することが好ましいが、適宜変更可能である。また、最終区間内に前記タイミングが含まれるか否かは、事前通知設定時間から一つ前の総サイクルタイムを差し引いた値が、最終区間を定める所定時間以下であるか否かによって判定される。すなわち、上記値が所定時間以下であれば最終区間内であり、所定時間よりも大きければ最終区間内ではないと判定される。 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
また、事前通知行決定部52は、前記サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に前記タイミングが含まれる場合、当該ブロックの次のブロックを事前通知行として決定し、その行番号を解析結果記憶部43に記憶するようになっている。
In addition, the advance notification
デバッグ処理部53は、加工プログラムのデバッグ処理を行うものである。本実施形態において、デバッグ処理部53は、加工プログラム記憶部42から加工プログラムを読み出し、当該加工プログラムを構成する各ブロックによって指定される動作を順次実行するようになっている。
The
また、本実施形態において、デバッグ処理部53は、解析結果記憶部43に記憶されている退避動作開始行に到達した場合、オペレータ検出部54の検出結果を参照する。そして、オペレータが検出されなかった場合、デバッグ処理部53は、退避動作開始行で加工プログラムの実行を停止するようになっている。また、デバッグ処理部53は、表示入力手段2等から実行の再開を受け付けた場合、加工プログラムの実行を再開する。
In this embodiment, when the
さらに、本実施形態において、デバッグ処理部53は、解析結果記憶部43に記憶されている退避動作開始行から進入動作終了行までの要注意範囲を実行している間、常に、オペレータ検出部54の検出結果を参照する。そして、オペレータが検出されなかった場合、デバッグ処理部53は、オペレータが不在の旨をオペレータ不在記録部44に記憶するようになっている。
Furthermore, in the present embodiment, the
オペレータ検出部54は、加工プログラムデバッグ装置1の周囲にオペレータがいるか否かを検出するものである。本実施形態において、オペレータ検出部54は、加工プログラムデバッグ装置1や工作機械10に設けられた所定のボタン(図示せず)が押下されたか否かによって、オペレータの在否を判定するようになっている。このため、タッチパネルやメカニカルボタン等の既存の設備を用いてオペレータの検出が可能になる。
The
なお、オペレータの検出手段は、上記ボタンに限定されるものではなく、オペレータを検出しうるものであればよい。例えば、加工プログラムデバッグ装置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
事前通知処理部55は、まもなく退避動作開始行に到達する旨をオペレータに通知するための事前通知処理を実行するものである。本実施形態において、事前通知処理部55は、加工プログラムのデバッグ中に事前通知行に到達した場合、オペレータ検出部54の検出結果を参照する。そして、加工プログラムデバッグ装置1の周囲にオペレータが検出された場合、事前通知処理部55は、加工プログラムデバッグ装置1または工作機械10において事前通知処理を実行する。一方、加工プログラムデバッグ装置1の周囲にオペレータが検出されなかった場合、事前通知処理部55は、オペレータの携帯端末11またはオペレータが操作中の機器12(他の工作機械等)に対して事前通知処理を実行するようになっている。
The advance
また、本実施形態において、加工プログラムデバッグ装置1の周囲にオペレータが検出された場合であって、前記タイミングを含むブロックのサイクルタイムが基準時間以上であり、かつ、前記タイミングが当該ブロックの最終区間内に含まれない場合、事前通知処理部55は、解析結果記憶部43から通知開始時間を読み出し、事前通知行の実行が開始されてから通知開始時間の経過後に事前通知処理を実行するようになっている。
Further, in the present embodiment, when an operator is detected around the machining
なお、事前通知処理は、オペレータに通知しうる処理であれば特に限定されるものではない。具体的には、表示入力手段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
表示制御部56は、表示入力手段2に表示させる表示内容を制御するものである。本実施形態において、表示制御部56は、加工プログラムのデバッグ中に、実行中の行と、当該行以降の複数の行を表示入力手段2に表示させる。また、表示制御部56は、解析結果記憶部43から退避動作開始行および進入動作終了行の行番号を参照し、退避動作開始行から進入動作終了行までの要注意範囲を他の行と識別可能に表示入力手段2に表示させる。例えば、図3に示すように、要注意範囲の背景にのみ着色することにより、オペレータは一目で要注意範囲を認識する。
The
つぎに、本実施形態の加工プログラムデバッグ装置1、およびこれを備えた工作機械10の作用について、図4〜図6を参照しつつ説明する。
Next, the operation of the machining
まず、本実施形態の加工プログラムデバッグ装置1を用いて、加工プログラムをデバッグする場合、事前に加工プログラムを解析し、退避動作開始行、進入動作開始行および事前通知行を特定するための加工プログラム解析処理を実行する。
First, when debugging a machining program using the machining
具体的には、図4に示すように、まず、加工プログラム解析部51が加工プログラムを取得するとともに(ステップS1)、解析対象行の行番号を示すパラメータiを0に初期化する(ステップS2)。そして、パラメータiをインクリメント(i+1)することにより、次の行を解析対象行として選択し(ステップS3)、当該解析対象行が加工プログラムの最終行であるか否かを判定する(ステップS4)。当該判定の結果、解析対象行が最終行である場合(ステップS4:YES)、加工プログラム解析処理を終了する。
Specifically, as shown in FIG. 4, first, the machining
一方、ステップ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
一方、ステップ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
つぎに、加工プログラム解析部51は、パラメータjをデクリメント(j−1)することにより、1つ前の行を新たな探索対象行として選択し(ステップS7)、当該探索対象行が早送りを開始するブロックであるか否かを判定する(ステップS8)。当該判定の結果、早送り開始ブロックでなければ(ステップS8:NO)、ステップS7に戻り、1つ前の行を新たな探索対象行として選択する。これにより、区切りブロックから前方向におけるブロックが順次探索されることとなる。
Next, the machining
一方、ステップ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
退避動作開始行が検出されると(ステップS9)、事前通知行決定部52が、当該退避動作開始行よりも任意の事前通知設定時間だけ前方のタイミングに基づいて事前通知行を決定する(ステップS10)。具体的には、図5に示すように、まず、事前通知行決定部52が、サイクルタイムを算出するための算出対象行を示すパラメータkを退避動作開始行の行番号(j)に初期化するとともに、サイクルタイムの総和を示すパラメータTを0に初期化する(ステップS21)。
When the evacuation operation start line is detected (step S9), the advance notification
つぎに、事前通知行決定部52は、パラメータkをデクリメントすることにより、1つ前の行(k−1)を新たな算出対象行(k)として選択する(ステップS22)。そして、事前通知行決定部52は、当該算出対象行(k)のサイクルタイム(tk)を算出し、当該サイクルタイム(tk)を総サイクルタイム(T)に加算する(ステップS23)。これにより、ステップS9で検出された退避動作開始行よりも前方向に存在する各ブロックのサイクルタイムが順次加算されることとなる。
Next, the prior notification
総サイクルタイム(T)が更新される度に(ステップS23)、事前通知行決定部52は、事前通知設定時間と比較する(ステップS24)。当該比較の結果、総サイクルタイム(T)が事前通知設定時間未満であれば(ステップS24:NO)、ステップS22に戻り、1つ前の行(k−1)を新たな算出対象行(k)として選択する。一方、ステップS24における比較の結果、総サイクルタイム(T)が事前通知設定時間以上となった場合(ステップS24:YES)、事前通知行決定部52は、現在の算出対象行(k)のサイクルタイム(tk)が、基準時間以上であるか否かを判定する(ステップS25)。
Each time the total cycle time (T) is updated (step S23), the advance notice
当該判定の結果、現在の算出対象行(k)のサイクルタイム(tk)が基準時間よりも短い場合(ステップ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
一方、ステップS25における判定の結果、現在の算出対象行(k)のサイクルタイム(tk)が基準時間以上である場合(ステップS25:YES)、事前通知行決定部52は、事前通知設定時間から一つ前の総サイクルタイム(T−tk)を差し引いた値が、最終区間を定める所定時間以下であるか否かを判定する(ステップ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
ステップS26における判定の結果、事前通知設定時間から一つ前の総サイクルタイム(T−tk)を差し引いた値が所定時間よりも大きい場合(ステップ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
一方、事前通知設定時間から一つ前の総サイクルタイム(T−tk)を差し引いた値が所定時間以下の場合(ステップ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
以上の事前通知行決定処理によって事前通知行が決定されると(ステップ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
つぎに、加工プログラム解析部51は、パラメータjをインクリメント(j+1)することにより、次の行を新たな探索対象行として選択し(ステップS12)、当該探索対象行が加工動作を開始するブロックであるか否かを判定する(ステップS13)。当該判定の結果、加工開始ブロックでなければ(ステップS13:NO)、ステップS12に戻り、次の行を新たな探索対象行として選択する。これにより、区切りブロックから後方向におけるブロックが順次探索されることとなる。
Next, the processing
一方、ステップ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
進入動作終了行が検出されると(ステップS14)、加工プログラム解析部51は、現在の解析対象行の行番号が加工プログラムの総行数を超えているか否かを比較する(ステップS15)。当該比較の結果、現在の解析対象行の行番号が総行数以下の場合(ステップS15:NO)、未解析のブロックが存在するため、ステップS3に戻り、上述した処理を繰り返す。一方、現在の解析対象行の行番号が総行数を超えた場合(ステップS15:YES)、全てのブロックが解析されたこととなるため、加工プログラム解析処理を終了する。
When the entry operation end row is detected (step S14), the machining
以上のとおり、事前に加工プログラム解析処理を実行することにより、デバッグ対象の加工プログラムに含まれる、全ての退避動作開始行、進入動作終了行および事前通知行が特定される。そして、加工プログラム解析処理が実行された加工プログラムについては、本実施形態のデバッグ処理が実行可能となる。 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
つづいて、デバッグ処理部53が加工プログラムの実行対象行の行番号を示すパラメータeを0に初期化した後(ステップS32)、パラメータeをインクリメント(e+1)することにより、次の行を新たな実行対象行として選択し実行する(ステップS33)。そして、デバッグ処理部53は、当該実行対象行が事前通知行であるか否かを判定する(ステップS34)。
Subsequently, after the
当該判定の結果、実行対象行が事前通知行でなければ(ステップ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
ステップ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
これにより、オペレータはどこにいても確実に、まもなく要注意範囲に到達する旨の注意が喚起される。このため、デバッグにおける要注意範囲の見過ごしが防止されるとともに、オペレータはデバッグ中の工作機械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
また、本実施形態において、事前通知行に対応付けて上述した通知開始時間が設定されている場合、事前通知処理部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
さらに、本実施形態において、退避動作開始行よりも事前通知設定時間だけ前方向のタイミングを含むブロックのサイクルタイムが長く、当該ブロックの最終区間内に前記タイミングが含まれる場合、当該ブロックの次のブロックが事前通知行として設定される。これにより、事前通知行の実行が開始されてから要注意範囲に到達するまでに長時間かかることが防止される。一方、事前通知行を次のブロックに設定しても、事前通知処理の実行タイミングはほとんど変わらないため、事前通知処理の作用効果は維持される。 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
つづいて、デバッグ処理部53が、パラメータeをインクリメント(e+1)することにより、次の行を新たな実行対象行として選択し実行する(ステップS39)。そして、デバッグ処理部53は、当該実行対象行が退避動作開始行であるか否かを判定する(ステップS40)。当該判定の結果、実行対象行が退避動作開始行でなければ(ステップS40:NO)、ステップS39に戻り、次の行を新たな実行対象行として選択する。
Subsequently, the
一方、ステップ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
これにより、オペレータが不在の状態で、要注意範囲の実行が開始されてしまうことがなく、デバッグ作業の信頼性が向上する。また、事前通知設定時間を長めに設定することにより、オペレータは加工プログラムが停止する前に戻って来ることができ、デバッグ作業における時間のロスを低減することができる。 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
一方、ステップ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
一方、ステップ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
以上のような本実施形態によれば、以下のような効果を奏する。
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
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
例えば、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
また、本実施形態の加工プログラムデバッグ装置1は、オペレータ不在記録部44およびオペレータ検出部54を有しているが、この構成に限定されるものではない。オペレータが不在時の処理が不要であれば、オペレータ不在記録部44およびオペレータ検出部54を設けなくてもよい。この場合、デバッグ処理におけるステップS35、ステップS37およびステップS41〜S44の処理が不要となる。
Further, the machining
さらに、上述した本実施形態では、要注意範囲を他の行と識別可能に表示するために、進入動作終了行を検出している。しかしながら、当該識別表示が不要であれば、加工プログラム解析部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
また、上述した本実施形態では、事前通知処理の実行後にオペレータが長時間待たされるのを防止するため、事前通知行決定部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
さらに、本実施形態において、事前通知行決定部52は、サイクルタイムの総和が事前通知設定時間以上になったときのブロックのサイクルタイムが基準時間以上であり、かつ、当該ブロックの最終区間内に通知タイミングが含まれる場合のみ、当該ブロックの次のブロックを事前通知行として決定している。しかしながら、事前通知行決定部52は、ブロックのサイクルタイムに関係なく、通知タイミングがブロックの最終区間内に含まれる場合には、当該ブロックの次のブロックを事前通知行として決定してもよい。
Further, in the present embodiment, the advance notification
1 加工プログラムデバッグ装置
1a 加工プログラムデバッグプログラム
2 表示入力手段
3 通信手段
4 記憶手段
5 演算処理手段
10 工作機械
11 携帯端末
12 機器
41 プログラム記憶部
42 加工プログラム記憶部
43 解析結果記憶部
44 オペレータ不在記録部
51 加工プログラム解析部
52 事前通知行決定部
53 デバッグ処理部
54 オペレータ検出部
55 事前通知処理部
56 表示制御部
DESCRIPTION OF
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から請求項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から請求項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.
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)
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 |
-
2017
- 2017-06-30 JP JP2017128149A patent/JP6657144B2/en active Active
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 |