JPH10133727A - Method and device for controlling nc machine tool - Google Patents

Method and device for controlling nc machine tool

Info

Publication number
JPH10133727A
JPH10133727A JP28806796A JP28806796A JPH10133727A JP H10133727 A JPH10133727 A JP H10133727A JP 28806796 A JP28806796 A JP 28806796A JP 28806796 A JP28806796 A JP 28806796A JP H10133727 A JPH10133727 A JP H10133727A
Authority
JP
Japan
Prior art keywords
program
machine tool
command
storage
state
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.)
Pending
Application number
JP28806796A
Other languages
Japanese (ja)
Inventor
Takanori Hashimoto
孝典 橋本
Kiyomi Ono
清美 大野
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP28806796A priority Critical patent/JPH10133727A/en
Publication of JPH10133727A publication Critical patent/JPH10133727A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To make the handling of an NC machine tool easier. SOLUTION: By state-storing commands 3, 5, 8, and 98 in an NC program, specific positions in a program and positions of a machine tool corresponding to the positions in the NC program are stored. The storage of the positions in the NC program and the positions of the machine tool are updated into the latest positions by the state store commands. When the NC program is interrupted, the position of the machine tool is restored with a state restoration command 0 based on a stored specific position and at the same time, the NC program is searched based on the specific position. Therefore, the handling of the NC machine tool becomes easier and the man-hour of an operator and the product cost are reduced.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、NC工作機械の制
御方法および制御装置に関する。
The present invention relates to a control method and a control device for an NC machine tool.

【0002】[0002]

【従来の技術】NC工作機械を用いて加工を行うとき
に、その作動中に止むを得ぬ事情によりそのNCプログ
ラムを一時中断し、作業者がNC工作機械内に立ち入る
場合がある。例えば、 初品加工時の動作確認(治工具の干渉確認) 初品加工時の加工状態の確認(製品の切削状態および
寸法測定) 加工異常発生時(工具折損、工具摩耗)の修復 治工具等の位置出し 機械の精度測定 等がこれに当たる。この際、NC工作機械の誤作動によ
る事故を防止するために、NC工作機械の動力を遮断す
る。そして、上記作業が終了し、作業者がNC工作機械
の外に出た後に再び動力を接続し、加工を続行する。こ
の際、NC工作機械を動力遮断以前の位置に復帰させる
ための制御装置が、実開平1-96005 号公報に開示されて
いる。
2. Description of the Related Art When machining is performed using an NC machine tool, the NC program may be temporarily interrupted due to unavoidable circumstances during operation, and an operator may enter the NC machine tool. For example, operation confirmation at the time of first product processing (confirmation of interference of jigs and tools) Confirmation of processing state at the time of first product processing (measurement of cutting condition and dimensions of products) Repair of abnormal processing (breakage of tools, tool wear) This corresponds to the measurement of machine accuracy. At this time, the power of the NC machine tool is shut off in order to prevent an accident due to a malfunction of the NC machine tool. Then, after the above operation is completed, the power is connected again after the worker goes out of the NC machine tool, and the machining is continued. At this time, a control device for returning the NC machine tool to a position before the power is cut off is disclosed in Japanese Utility Model Laid-Open No. 1-96005.

【0003】[0003]

【発明が解決しようとする課題】ところで、NC工作機
械の動力を遮断すると以下のような不具合が生ずる。
装置の作動制御軸に位置ずれが発生する。NCプログ
ラムの処理済工程の記憶が消去される。NCプログラ
ムの指令シーケンスにずれが生ずる。
By the way, when the power of the NC machine tool is cut off, the following problems occur.
The displacement of the operation control shaft of the device occurs. The storage of the processed steps of the NC program is erased. A shift occurs in the command sequence of the NC program.

【0004】よって、NCプログラムに基づく自動運転
を中断状態から継続再スタートするには、〜の状態
を手動操作で修復し、NC制御装置とNC工作機械を継
続再スタート可能な状態に戻す必要がある。図5には、
加工用NCプログラムの一例と、一時中断後に継続再ス
タートを行う際の作業手順が示されている。この加工用
NCプログラムは、工作機械に種々の条件設定を行う準
備指令(step 1)が出力された後、実際に加工を施すた
めの、1つもしくは複数の切削指令ブロック(step 2,
step 3)が実行される。さらに次の条件設定を行う準備
指令(step 4)が出力され、続いて切削指令ブロック
(step 5)が実行される。このように準備指令の後に切
削指令ブロックを実行するという手順を繰り返し、切削
指令ブロック(step90)を終了した後にプログラムは実
行完了する。
Therefore, in order to continuously restart the automatic operation based on the NC program from the interrupted state, it is necessary to restore the state (1) to (2) by a manual operation and to return the NC control device and the NC machine tool to a state in which the continuous restart can be performed. is there. In FIG.
An example of a machining NC program and a work procedure for performing a continuous restart after a temporary suspension are shown. The NC program for processing includes one or a plurality of cutting command blocks (step 2, step 2) for actually performing processing after a preparation command (step 1) for setting various conditions is output to the machine tool.
Step 3) is performed. Further, a preparation command (step 4) for performing the next condition setting is output, and subsequently, a cutting command block (step 5) is executed. Thus, the procedure of executing the cutting command block after the preparation command is repeated, and the program is completed after the cutting command block (step 90) is completed.

【0005】上記NCプログラムにおいて、例えば切削
指令ブロック(step 5)でプログラムの実行を中断した
場合の再継続手順は、次の通りである。 1.再スタート位置を決める。すなわち、(step 5)の切
削加工ブロックを再度実行させる為、その準備指令(st
ep 4)に戻す。 2.工作機械を、切削指令ブロック(step 3)終了時の状
態に手動操作で復帰させる。 3.(step 3)までのプログラムが実行済である旨の情報
を、NC装置に手入力する。 4.プログラムスタート位置を、準備指令(step 4)に合
わせてセットする。 5.上記1.〜4.の再継続準備操作に誤りがないことを確認
する。 6.工作機械の送りオーバーライトを絞りながら、自動運
転を再開する。 7.工作機械の動作に誤りがないことを確認しながら、送
りオーバーライトの絞りを徐々に解放し、正規の作動速
度に戻す。
[0005] In the above-mentioned NC program, for example, when the execution of the program is interrupted in the cutting command block (step 5), the re-continuation procedure is as follows. 1. Determine the restart position. That is, in order to execute the cutting block of (step 5) again, the preparation command (st
Return to ep 4). 2. Manually return the machine tool to the state at the end of the cutting command block (step 3). 3. Manually input information indicating that the program up to (step 3) has been executed to the NC unit. 4. Set the program start position according to the preparation command (step 4). 5. Confirm that there are no mistakes in the re-continuation preparation operations in 1 to 4 above. 6. Restart automatic operation while reducing the feed overwrite of the machine tool. 7. While confirming that there is no mistake in the operation of the machine tool, gradually release the aperture of the feed overwrite and return to the normal operating speed.

【0006】以上のごとく、再スタートを行うための準
備作業には工作機械の位置を復帰させるための多くの操
作ステップと、NCプログラムを中断位置に頭出しする
ための手入力が必要となる。しかも、この作業はNC工
作機械の機種や、NCプログラムを一時中断した時の条
件、再スタート以降に指令される制御命令の内容等によ
り、必要とされる入力内容が異なってくる。したがっ
て、NC工作機械に対する作業者の習熟が必要となり、
誤操作による機械の干渉、加工不良が生じないように、
作業には細心の注意が必要となる等、自動運転を再スタ
ートさせるまでの準備作業は非常に手間のかかるもので
あった。
As described above, the preparation operation for restarting requires many operation steps for returning the position of the machine tool and manual input for locating the NC program to the interruption position. In addition, the required input content differs depending on the type of the NC machine tool, the condition when the NC program is temporarily suspended, the content of the control command issued after the restart, and the like. Therefore, it is necessary for the operator to master the NC machine tool,
In order to prevent machine interference and processing defects due to incorrect operation,
Preparatory work before restarting automatic driving was very time-consuming, as the work required careful attention.

【0007】本発明は上記課題に鑑みてなされたもので
あり、その目的とするところは、NC工作機械の動力遮
断に伴うNCプログラムの一時中断後に、継続再スター
トを容易に行うことを可能とすることにより、NC工作
機械の取扱をより簡単にし、作業者の作業工数の減少と
製品コストの低減を図ることにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to make it possible to easily perform a continuous restart after an NC program is temporarily interrupted due to power cutoff of an NC machine tool. By doing so, it is possible to make the handling of the NC machine tool simpler, to reduce the number of man-hours for the operator, and to reduce the product cost.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するため
の本発明に係るNC工作機械の制御方法は、実行中のN
Cプログラム上の所定の位置および該プログラム上の位
置に対応する工作機械の位置を記憶する工程と、該NC
プログラム上の位置および該工作機械の位置の記憶を更
新する工程と、該NCプログラムを中断した際に、前記
所定位置に基づいて工作機械の位置を復帰させる工程
と、前記所定位置に基づいてNCプログラムの頭出しを
行う工程とを含むことを特徴とする。
According to the present invention, there is provided a method for controlling an NC machine tool, comprising the steps of:
Storing a predetermined position on the C program and a position of the machine tool corresponding to the position on the program;
Updating the storage of the position on the program and the position of the machine tool; returning the position of the machine tool based on the predetermined position when the NC program is interrupted; Searching for the program.

【0009】本発明によると、実行中のNCプログラム
上の所定の位置および該プログラム上の位置に対応する
工作機械の位置の記憶を常に更新し、NCプログラムを
中断した場合でも、前記所定の位置の記憶から、継続再
スタートに必要な工作機械の位置およびNCプログラム
上の位置を把握し、各々の位置へと工作機械およびNC
プログラムを頭出しして、再スタートを速やかに行う。
According to the present invention, the predetermined position on the currently executed NC program and the storage of the position of the machine tool corresponding to the position on the program are constantly updated, and even if the NC program is interrupted, the predetermined position is maintained. The position of the machine tool and the position on the NC program necessary for continuous restart are grasped from the memory of the machine tool, and the machine tool and the NC are transferred to each position.
Locate the program and restart immediately.

【0010】また、上記課題を解決するための本発明に
係るNC工作機械の制御装置は、実行中のNCプログラ
ム上の所定の位置および該プログラム上の位置に対応す
る工作機械の位置を記憶する所定位置記憶手段と、該N
Cプログラムを中断した際に、前記所定位置記憶手段の
記憶位置に基づいて、工作機械を該記憶位置に復帰させ
る機械位置復帰手段と、前記所定位置記憶手段の記憶位
置に基づいて、NCプログラム上の所定位置へ頭出しを
行うプログラム位置復帰手段とを有することを特徴とす
る。
A control device for an NC machine tool according to the present invention for solving the above problems stores a predetermined position on an NC program being executed and a position of the machine tool corresponding to the position on the program. A predetermined position storage means;
When the C program is interrupted, a machine position return unit that returns the machine tool to the storage position based on the storage position of the predetermined position storage unit, and an NC program based on the storage position of the predetermined position storage unit. And program position return means for performing cueing to a predetermined position.

【0011】上記構成によると、所定位置記憶手段にお
いて、常に実行中のNCプログラム上の位置および該プ
ログラム上の位置に対応する工作機械の位置を把握し、
NCプログラムを中断した際にも、該記憶位置に対応し
て、機械位置復帰手段およびプログラム位置復帰手段を
作動させ、継続再スタートに必要な工作機械の位置およ
びNCプログラム上の位置に、工作機械およびNCプロ
グラムを導く。
According to the above configuration, the predetermined position storage means grasps the position on the NC program which is always being executed and the position of the machine tool corresponding to the position on the program.
Even when the NC program is interrupted, the machine position return means and the program position return means are operated in accordance with the storage position, and the machine tool is moved to the position of the machine tool required for continuous restart and the position on the NC program. And lead the NC program.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態を添付
図面に基づいて説明する。従来例と同一部分または相当
する部分については同一符号で示し、詳しい説明は省略
する。
Embodiments of the present invention will be described below with reference to the accompanying drawings. The same or corresponding parts as those in the conventional example are denoted by the same reference numerals, and detailed description is omitted.

【0013】本発明の実施の形態に係るNC工作機械の
制御装置は、図4に示す様に、加工制御手段1、所定位
置記憶手段2、機械位置復帰手段3およびプログラム位
置復帰手段4を有する。加工制御手段1は、NC工作機
械5を作動させて実際に加工を行う為のNCプログラム
(図1)を有するものである。また、所定位置記憶手段
2は、実行中のNCプログラム上の位置とそれに対応す
るNC工作機械5の各種設定条件を記憶する特殊サブプ
ログラム(図2)を有するものである。さらに、機械位
置復帰手段3は、該NCプログラムを中断した際に、所
定位置記憶手段2に記憶された各種設定条件に基づい
て、NC工作機械5を復帰させるものである。また、プ
ログラム位置復帰手段4は、所定位置記憶手段2の記憶
位置に基づいて、NCプログラム上の所定位置へ頭出し
を行うものである。そして、機械位置復帰手段3および
プログラム位置復帰手段4は、同一の特殊サブプログラ
ム(図3)上で作動するようになっている。
As shown in FIG. 4, a control device for an NC machine tool according to an embodiment of the present invention has a machining control means 1, a predetermined position storage means 2, a machine position return means 3, and a program position return means 4. . The machining control means 1 has an NC program (FIG. 1) for operating the NC machine tool 5 to actually perform machining. The predetermined position storage means 2 has a special subprogram (FIG. 2) for storing the position on the currently executed NC program and various setting conditions of the NC machine tool 5 corresponding to the position. Further, the machine position return means 3 is for returning the NC machine tool 5 based on various setting conditions stored in the predetermined position storage means 2 when the NC program is interrupted. Further, the program position return means 4 performs cueing to a predetermined position on the NC program based on the storage position of the predetermined position storage means 2. The machine position return means 3 and the program position return means 4 operate on the same special subprogram (FIG. 3).

【0014】まず、図1に基づいて加工制御手段1の説
明を行う。加工用制御手段1は、図示の加工用NCプロ
グラム(メインプログラム)を有する。このNCプログ
ラムは、最初から加工を始める場合と、継続再スタート
を行う場合との双方に対応するものである。該NCプロ
グラムの概略の流れは、図5で説明した従来のNCプロ
グラムとほぼ同様に、準備指令の後に切削指令ブロック
を実行するという手順を繰り返すものである。しかしな
がら、本実施の形態の特徴として、各準備指令および切
削指令ブロックの間に、その時の工作機械の設定条件を
記憶する為の状態記憶指令((3),(5),(8),(98)がこれに
該当する)が盛り込まれている。また、NCプログラム
の実行開始時指令( 0)が出力されたときに、その指令
が、最初から加工を始めるときのものであるか、もしく
は、継続再スタートに係るものであるかの判断を行う状
態復帰指令( 1)が盛り込まれている。
First, the processing control means 1 will be described with reference to FIG. The processing control means 1 has a processing NC program (main program) as shown. This NC program corresponds to both the case where machining is started from the beginning and the case where continuous restart is performed. The general flow of the NC program repeats a procedure of executing a cutting command block after a preparation command, similarly to the conventional NC program described with reference to FIG. However, as a feature of this embodiment, between each preparation command and the cutting command block, a state storage command ((3), (5), (8), (8), for storing the setting conditions of the machine tool at that time. 98)). Further, when the NC program execution start command (0) is output, it is determined whether the command is for starting machining from the beginning or relating to continuous restart. State return command (1) is included.

【0015】次に、所定位置記憶手段2の説明を行う。
所定位置記憶手段2は、図2の状態記憶処理の特殊サブ
プログラムを有する。このサブプログラムは、図1のN
Cプログラムにおいて前記状態記憶指令が出されると、
図2のA1に移行し、例えば、NC工作機械における現
在の各種設定条件(各制御軸の位置座標、使用中の工具
番号、次に用いる工具の工具番号、主軸等の回転状態、
切削クーラントの使用状態等、以上を総称して機械の位
置という)を記憶する( i)。さらに、( i)で記憶し
た設定条件に対応するNCプログラム上の切削指令ブロ
ックを記憶し(ii)、これによってNCプログラム上の
位置を判断する。この後に、図1で状態記憶指令が出力
された直後に位置する切削指令ブロックに戻る。本実施
の形態においては、所定位置記憶手段2で記憶される機
械の位置およびNCプログラム上の位置は、NCプログ
ラムで新たな状態記憶指令が出される毎に、その時点で
最新のものに更新される。よって、以下の説明において
は、所定位置記憶手段2を最新位置記憶手段2と言い替
える。なお、最新位置記憶手段2は、動力の遮断があっ
てもバックアップ電源等によってその記憶内容が保護さ
れる。
Next, the predetermined position storage means 2 will be described.
The predetermined position storage means 2 has a special subprogram for the state storage processing of FIG. This subprogram corresponds to N in FIG.
When the state storage command is issued in the C program,
Moving to A1 in FIG. 2, for example, the current various setting conditions (the position coordinates of each control axis, the tool number in use, the tool number of the tool to be used next, the rotation state of the spindle, etc.) in the NC machine tool,
(I.e., the position of the machine, which is collectively referred to as the state of use of the cutting coolant). Further, a cutting command block in the NC program corresponding to the setting condition stored in (i) is stored (ii), and a position on the NC program is determined based on the block. Thereafter, the process returns to the cutting command block located immediately after the output of the state storage command in FIG. In the present embodiment, the position of the machine and the position in the NC program stored in the predetermined position storage means 2 are updated to the latest one each time a new state storage command is issued in the NC program. You. Therefore, in the following description, the predetermined position storage means 2 will be referred to as the latest position storage means 2. The stored contents of the latest position storage means 2 are protected by a backup power supply or the like even if the power is shut off.

【0016】次に、機械位置復帰手段3およびプログラ
ム位置復帰手段4についての説明を行う。機械位置復帰
手段3およびプログラム位置復帰手段4は、図3に示す
状態復帰処理の特殊サブプログラム上で作動する。この
サブプログラムは、図1のNCプログラムにおいて、状
態復帰指令( 1)が出力されると、図3のB1に移行
し、NC工作機械の動力の遮断が有ったか否かを判断す
る( a)。すなわち、NCプログラムの実行開始時指令
( 0)が出力されたときに、その指令が、最初から加工
を始めるときのものであれば、動力の遮断はなく、NC
プログラムの実行開始時指令が継続再スタートに係るも
のであれば、動力の遮断があると判断する。図3の(
a)で動力の遮断がないと判断されると、図1のNCプ
ログラムにおける最初の準備指令( 2)に移行し、その
後のNCプログラムを実行する。また、動力の遮断があ
ると判断されると、最新位置記憶手段2に記憶されてい
る各種条件に合わせて、NC工作機械の位置を移動させ
る( b)。さらに、B2に移行し、ここでNCプログラ
ム上での所望の切削指令ブロックを頭出しする。そし
て、NCプログラムの実行を再開する。
Next, the mechanical position returning means 3 and the program position returning means 4 will be described. The mechanical position return means 3 and the program position return means 4 operate on a special subprogram of the state return processing shown in FIG. When the state return command (1) is output in the NC program of FIG. 1, this subprogram shifts to B1 of FIG. 3 to determine whether or not the power of the NC machine tool has been cut off (a ). That is, when the NC program execution start command (0) is output and the command is for starting machining from the beginning, there is no power interruption, and the NC
If the command at the start of the execution of the program relates to the continuous restart, it is determined that the power is shut off. In FIG.
If it is determined in a) that the power is not shut off, the process shifts to the first preparation command (2) in the NC program of FIG. 1 and executes the subsequent NC program. When it is determined that the power is shut off, the position of the NC machine tool is moved in accordance with various conditions stored in the latest position storage means 2 (b). Further, the process proceeds to B2, where a desired cutting command block on the NC program is located. Then, the execution of the NC program is restarted.

【0017】ここで、図1ないし図3に例示される各プ
ログラムを実行することにより、NC工作機械5の制御
を行う手順を、以下に説明する。なお、以下の説明で
は、最初から加工を開始し、途中でNCプログラムの中
断があり、その後に継続再スタートする場合を想定して
いる。
A procedure for controlling the NC machine tool 5 by executing each of the programs illustrated in FIGS. 1 to 3 will be described below. In the following description, it is assumed that machining is started from the beginning, the NC program is interrupted in the middle, and then the machine is continuously restarted.

【0018】まず、図1においてNCプログラムの実行
開始時指令( 0)が出力され、続いて状態復帰指令(
1)が出力される。すると、図3に示すサブプログラム
に移行し、( a)で動力の遮断がなかったことが判断さ
れる。そして、図1の準備指令( 2)に戻る。そして、
状態記憶指令( 3)で図2に示すサブプログラムに移行
し、準備指令( 2)における工作機械の位置を記憶し
( i)、かつ、( 2)に続く切削指令ブロックが( 4)
であることを記憶する(ii)。そして、切削指令ブロッ
ク( 4)を実行する。さらに、状態記憶指令( 5)にお
いて、この時点での工作機械の位置と、続く切削指令ブ
ロックが( 6)であることを記憶する。そして切削指令
ブロック( 6)を実行する。次に準備指令( 7)を出力
する。さらに、状態記憶指令( 8)で図2のサブプログ
ラムに移行し、準備指令( 7)における工作機械の位置
( i)と、準備指令( 7)に続く切削指令ブロックが
( 9)であることを記憶する(ii)。
First, in FIG. 1, a command (0) at the start of execution of the NC program is output.
1) is output. Then, the process proceeds to the sub-program shown in FIG. 3, and it is determined that the power is not shut off in (a). Then, the process returns to the preparation command (2) in FIG. And
With the state storage command (3), the processing shifts to the subprogram shown in FIG. 2, the machine tool position in the preparation command (2) is stored (i), and the cutting command block following (2) is (4).
(Ii). Then, the cutting command block (4) is executed. Further, in the state storage command (5), the position of the machine tool at this point and the fact that the subsequent cutting command block is (6) are stored. Then, the cutting command block (6) is executed. Next, a preparation command (7) is output. Further, the state program (8) shifts to the subprogram of FIG. 2 and the machine tool position (i) in the preparation command (7) and the cutting command block following the preparation command (7) are (9). (Ii).

【0019】さて、切削指令ブロック( 9)の実行中に
動力の遮断があったものとする。この後に、再び動力を
接続すると、加工用制御手段1とNC工作機械5との間
には、NC機械の作動制御軸の位置ずれ、NCプロ
グラムの処理済工程の記憶の喪失、NCプログラムの
指令シーケンスのずれ等の不具合が生ずる。このとき、
最新位置記憶手段2には、準備指令( 7)における工作
機械の位置と、これに続く切削指令ブロックが( 9)で
あることが記憶保存されている。
Now, it is assumed that power is interrupted during the execution of the cutting command block (9). Thereafter, when the power is connected again, the displacement of the operation control axis of the NC machine, the loss of storage of the processed process of the NC program, the command of the NC program are provided between the machining control means 1 and the NC machine tool 5. Inconveniences such as a sequence shift occur. At this time,
The latest position storage means 2 stores and stores the position of the machine tool in the preparation command (7) and the cutting command block following (9).

【0020】ここで、継続再スタートのために、図1の
NCプログラムにおいて実行開始時指令( 0)を出力
し、続いて状態復帰指令( 1)を出力する。そして、図
3に示すサブプログラムに移行すると、( a)で動力の
遮断があったことが判断され、( b)で機械位置復帰手
段3に対し、最新位置記憶手段2の記憶内容に基づくN
C工作機械5の位置復帰指令が出力される。そして、N
C工作機械5は機械位置復帰手段3の指示により、準備
指令( 7)で設定された工作機械の位置に自動復帰され
る。さらに、本サブプログラムはB2に移行し、プログ
ラム位置復帰手段4に対し、最新位置記憶手段2の記憶
内容に基づくプログラム位置復帰指令を出力する。そし
て、NCプログラム上の切削指令ブロック( 9)を頭出
しする。この後に、再び図1に示すNCプログラムに沿
って(10)以降の加工が行われ、切削指令ブロック(9
9)を終了した後にプログラムは実行完了する。
Here, for the continuous restart, the execution start command (0) is output in the NC program of FIG. 1 and then the state return command (1) is output. Then, when shifting to the sub-program shown in FIG. 3, it is determined in (a) that the power has been shut off, and in (b), the machine position return means 3 is instructed based on the contents stored in the latest position storage means 2 by N
A position return command for the C machine tool 5 is output. And N
The C machine tool 5 is automatically returned to the position of the machine tool set by the preparation command (7) according to the instruction of the machine position return means 3. Further, the subprogram shifts to B2 and outputs a program position return command to the program position return means 4 based on the contents stored in the latest position storage means 2. Then, the cutting command block (9) on the NC program is searched for. Thereafter, the machining following (10) is performed again according to the NC program shown in FIG.
After completing step 9), the program is completed.

【0021】なお、図1のNCプログラムにおいて、状
態記憶指令を挿入させるプログラム上の位置に制限は無
く、より多くの状態記憶指令を挿入すると、処理時間は
増加するが、NCプログラム中断後に、より適切な位置
で自動運転を再スタートさせることができる。
In the NC program shown in FIG. 1, there is no restriction on the position on the program where the state storage command is inserted, and when more state storage commands are inserted, the processing time increases. Automatic operation can be restarted at an appropriate position.

【0022】上記構成をなす本発明の実施の形態に係る
作用効果は、以下の通りである。加工制御手段1のNC
プログラムは、NCプログラム上の最新の位置および該
NCプログラム上の位置に対応する工作機械の位置の記
憶を記憶するために、準備指令( 2)の後等に、状態復
帰指令((3),(5),(8),(98))を挿入している。そして、
各状態復帰指令により、最新位置記憶手段2のサブプロ
グラム(図2)に移行し、現在の工作機械の位置および
プログラム上の位置を記憶する。そして、再びNCプロ
グラムに戻る。また、NCプログラム上で状態復帰指令
が出される毎に、サブプログラム(図2)に移行し、N
Cプログラム上の位置および該工作機械の位置の記憶を
常に最新のものに更新する。この最新の位置の記憶は、
NCプログラムを中断した場合でも保存される。
The operation and effect according to the embodiment of the present invention having the above configuration are as follows. NC of processing control means 1
In order to store the latest position on the NC program and the storage of the position of the machine tool corresponding to the position on the NC program, the program returns the state return command ((3), (5), (8), (98)). And
In response to each state return command, the process shifts to the subprogram (FIG. 2) of the latest position storage means 2 to store the current position of the machine tool and the position on the program. Then, the process returns to the NC program. Also, every time a status return command is issued on the NC program, the flow shifts to the subprogram (FIG. 2), and N
The storage of the position on the C program and the position of the machine tool is always updated to the latest one. The memory of this latest position is
It is saved even if the NC program is interrupted.

【0023】また、継続再スタートの場合でも、まずN
Cプログラムの実行開始時指令( 0)を出力し、続いて
状態復帰指令( 1)を出力することにより、図3に示す
サブプログラムに移行する。そして、( a)で動力の遮
断の有無を判断する。再スタートの場合には、ここで動
力の遮断があったことが確認されるので、最新位置記憶
手段2に保存された記憶内容より、継続再スタートに必
要な工作機械の位置およびNCプログラム上の位置を把
握する。そして、NC工作機械の位置を復帰させ、か
つ、所望のNCプログラムを頭出しすることにより、再
スタートを速やかに行うことが可能となる。
In the case of continuous restart, first, N
By outputting a command (0) at the start of execution of the C program, and subsequently outputting a status return command (1), the flow shifts to the subprogram shown in FIG. Then, it is determined in (a) whether or not the power is shut off. In the case of a restart, it is confirmed here that the power has been cut off. Therefore, from the stored contents stored in the latest position storage means 2, the position of the machine tool required for continuous restart and the NC program Know your location. Then, by restarting the position of the NC machine tool and searching for the desired NC program, it is possible to quickly restart.

【0024】[0024]

【発明の効果】本発明はこのように構成したので、以下
のような効果を有する。本発明の請求項1に係るNC工
作機械の制御方法によると、実行中のNCプログラム上
の所定の位置および該工作機械の位置の記憶を常に更新
し、突然NCプログラムを中断した場合でも、前記所定
の位置の記憶から、継続再スタートに必要な工作機械の
位置およびNCプログラム上の位置を把握し、再スター
トを速やかに行うことが可能となる。したがって、動力
の遮断等非常時においても、NC工作機械の取扱がより
簡単になり、作業者の作業工数の減少と製品コストの低
減を図ることが可能となる。
According to the present invention, the following effects are obtained. According to the control method for an NC machine tool according to claim 1 of the present invention, the storage of a predetermined position on the currently executed NC program and the position of the machine tool is always updated, and even when the NC program is suddenly interrupted, From the storage of the predetermined position, the position of the machine tool and the position on the NC program required for the continuous restart can be grasped, and the restart can be promptly performed. Therefore, even in an emergency such as when power is cut off, the handling of the NC machine tool becomes easier, and it is possible to reduce the number of man-hours for the worker and the product cost.

【0025】また、本発明の請求項2に係るNC工作機
械の制御装置によると、所定位置記憶手段において、常
に実行中のNCプログラム上の所定の位置および該プロ
グラム上の位置に対応する工作機械の位置を把握するこ
とができる。そして、突然のNCプログラムの中断時に
も、該記憶位置に対応して、機械位置復帰手段およびプ
ログラム位置復帰手段を作動させ、継続再スタートに必
要な工作機械の位置およびNCプログラム上の位置を自
動的に導き出すことができる。よって、動力の遮断等非
常時においても、NC工作機械の取扱がより簡単にな
り、作業者の作業工数の減少と製品コストの低減を図る
ことが可能となる。
According to the NC machine tool control device of the present invention, in the predetermined position storage means, a predetermined position on the currently executed NC program and a machine tool corresponding to the position on the program. Position can be grasped. Then, even when the NC program is suddenly interrupted, the machine position return means and the program position return means are operated in accordance with the storage position, and the position of the machine tool and the position on the NC program required for continuous restart are automatically determined. Can be deduced. Therefore, even in an emergency such as when the power is shut off, the handling of the NC machine tool becomes simpler, and it is possible to reduce the number of man-hours for the worker and the product cost.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態に係るNC工作機械の制御
装置に用いられる、NCプログラムのフローチャートで
ある。
FIG. 1 is a flowchart of an NC program used for a control device of an NC machine tool according to an embodiment of the present invention.

【図2】本発明の実施の形態に係るNC工作機械の制御
装置に用いられる、特殊サブプログラムのフローチャー
トである。
FIG. 2 is a flowchart of a special subprogram used for the control device of the NC machine tool according to the embodiment of the present invention.

【図3】本発明の実施の形態に係るNC工作機械の制御
装置に用いられる、特殊サブプログラムのフローチャー
トである。
FIG. 3 is a flowchart of a special subprogram used for the control device of the NC machine tool according to the embodiment of the present invention.

【図4】本発明の実施の形態に係るNC工作機械の制御
装置を示すブロック図である。
FIG. 4 is a block diagram showing a control device of the NC machine tool according to the embodiment of the present invention.

【図5】従来のNC工作機械の制御装置に用いられる、
NCプログラムのフローチャートである。
FIG. 5 is used for a control device of a conventional NC machine tool.
It is a flowchart of an NC program.

【符号の説明】[Explanation of symbols]

2 所定位置記憶手段 3 機械位置復帰手段 4 プログラム位置復帰手段 5 NC工作機械 ( 1) 状態復帰指令 ( 3) 状態記憶指令 ( 5) 状態記憶指令 ( 8) 状態記憶指令 (98) 状態記憶指令 2 Predetermined position storage means 3 Machine position return means 4 Program position return means 5 NC machine tool (1) State return instruction (3) State storage instruction (5) State storage instruction (8) State storage instruction (98) State storage instruction

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 実行中のNCプログラム上の所定の位置
および該プログラム上の位置に対応する工作機械の位置
を記憶する工程と、該NCプログラム上の位置および該
工作機械の位置の記憶を更新する工程と、該NCプログ
ラムを中断した際に、前記所定位置に基づいて工作機械
の位置を復帰させる工程と、前記所定位置に基づいてN
Cプログラムの頭出しを行う工程とを含むNC工作機械
の制御方法。
1. A step of storing a predetermined position on an NC program being executed and a position of a machine tool corresponding to a position on the program, and updating the storage of the position on the NC program and the position of the machine tool. Performing a step of returning the position of the machine tool based on the predetermined position when the NC program is interrupted;
A method for controlling an NC machine tool, including a step of searching for a C program.
【請求項2】 実行中のNCプログラム上の所定位置お
よび該プログラム上の位置に対応する工作機械の位置を
記憶する所定位置記憶手段と、該NCプログラムを中断
した際に、前記所定位置記憶手段の記憶位置に基づい
て、工作機械を該記憶位置に復帰させる機械位置復帰手
段と、前記所定位置記憶手段の記憶位置に基づいて、N
Cプログラム上の所定位置へ頭出しを行うプログラム位
置復帰手段とを有することを特徴とするNC工作機械の
制御装置。
2. A predetermined position storage means for storing a predetermined position on an NC program being executed and a position of a machine tool corresponding to the position on the program, and the predetermined position storage means when the NC program is interrupted. A machine position return unit for returning the machine tool to the storage position based on the storage position of the predetermined position storage unit;
A control device for an NC machine tool, comprising: program position return means for performing cueing to a predetermined position on a C program.
JP28806796A 1996-10-30 1996-10-30 Method and device for controlling nc machine tool Pending JPH10133727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28806796A JPH10133727A (en) 1996-10-30 1996-10-30 Method and device for controlling nc machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28806796A JPH10133727A (en) 1996-10-30 1996-10-30 Method and device for controlling nc machine tool

Publications (1)

Publication Number Publication Date
JPH10133727A true JPH10133727A (en) 1998-05-22

Family

ID=17725398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28806796A Pending JPH10133727A (en) 1996-10-30 1996-10-30 Method and device for controlling nc machine tool

Country Status (1)

Country Link
JP (1) JPH10133727A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007185748A (en) * 2006-01-13 2007-07-26 Nakamura Tome Precision Ind Co Ltd Restarting method of machine tool
JP5159993B1 (en) * 2012-05-09 2013-03-13 三菱電機株式会社 Numerical controller
JP2018176398A (en) * 2017-04-21 2018-11-15 ファナック株式会社 Robot system
WO2024042568A1 (en) * 2022-08-22 2024-02-29 ファナック株式会社 Numerical control device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007185748A (en) * 2006-01-13 2007-07-26 Nakamura Tome Precision Ind Co Ltd Restarting method of machine tool
JP5159993B1 (en) * 2012-05-09 2013-03-13 三菱電機株式会社 Numerical controller
CN104272205A (en) * 2012-05-09 2015-01-07 三菱电机株式会社 Numerical control device
CN104272205B (en) * 2012-05-09 2016-06-29 三菱电机株式会社 Numerical control device
US9523979B2 (en) 2012-05-09 2016-12-20 Mitsubishi Electric Corporation Numerical control device
JP2018176398A (en) * 2017-04-21 2018-11-15 ファナック株式会社 Robot system
US10562185B2 (en) 2017-04-21 2020-02-18 Fanuc Corporation Robot system
WO2024042568A1 (en) * 2022-08-22 2024-02-29 ファナック株式会社 Numerical control device

Similar Documents

Publication Publication Date Title
JP5415311B2 (en) Method and apparatus for controlling machine tool capable of resuming automatic operation
US20140364989A1 (en) Controller for controlling machine tool and robot
EP1672451A1 (en) State restoration for a numerical controller after interruption of processing
JP6569825B1 (en) Numerical controller
US10324444B2 (en) Numerical controller including tool retracting function for avoidance of interference
EP0171435B1 (en) Numerical control method
US20040236462A1 (en) Numerical control apparatus for machine tool
JPH0390904A (en) Sequence controller
JP2998473B2 (en) Numerically controlled machine tools
JPH10133727A (en) Method and device for controlling nc machine tool
US7139635B2 (en) Multi-system numerical control device
JPS59201747A (en) Numerical control system
US4839817A (en) Numerically controlled apparatus including shunting controller
JPS61173842A (en) Numerical control device
JPH0370242B2 (en)
JP2007213241A (en) Interruption workable numerically controlled machine tool
JP3180805B2 (en) Numerically controlled machine tools
JP2006227894A (en) Cut resumption method, cutting system and cutting controller
JPS6244352A (en) Feed controlling method in numerically controlled machine tool
JP2000089813A (en) Working program editing method and controller for machine tool
JP3209890B2 (en) Production cell
JPH07152416A (en) Numerical controller having program restarting function
JPS6349803A (en) Nc program production system for nc device
JP4208600B2 (en) NC machine tool
KR100600016B1 (en) Warming Up Control Method of Spindle Unit