JPH06202723A - Numerically controlled machine tool - Google Patents

Numerically controlled machine tool

Info

Publication number
JPH06202723A
JPH06202723A JP34878192A JP34878192A JPH06202723A JP H06202723 A JPH06202723 A JP H06202723A JP 34878192 A JP34878192 A JP 34878192A JP 34878192 A JP34878192 A JP 34878192A JP H06202723 A JPH06202723 A JP H06202723A
Authority
JP
Japan
Prior art keywords
machine tool
state
numerically controlled
program
controlled machine
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.)
Granted
Application number
JP34878192A
Other languages
Japanese (ja)
Other versions
JP2998473B2 (en
Inventor
Tomomitsu Niwa
友光 丹羽
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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
Priority to JP34878192A priority Critical patent/JP2998473B2/en
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to DE69330144T priority patent/DE69330144T2/en
Priority to EP96119191A priority patent/EP0766153A1/en
Priority to EP97103235A priority patent/EP0782056B1/en
Priority to DE69328266T priority patent/DE69328266T2/en
Priority to DE69317540T priority patent/DE69317540T2/en
Priority to EP96119192A priority patent/EP0766154B1/en
Priority to EP93121024A priority patent/EP0606649B1/en
Publication of JPH06202723A publication Critical patent/JPH06202723A/en
Priority to US08/429,783 priority patent/US6202003B1/en
Priority to US08/625,076 priority patent/US5793635A/en
Priority to US08/668,718 priority patent/US6397111B1/en
Priority to HK98109240A priority patent/HK1008445A1/en
Application granted granted Critical
Publication of JP2998473B2 publication Critical patent/JP2998473B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To automatically generate a restoring program which executes the processing necessary for restarting NC working program by comparing the machine state for interruption and that for re-execution with each other to restore the machine state to that for interruption at the time when execution of the working program is restarted from the interrupt position after being interrupted. CONSTITUTION:When an NC working program 103 is interrupted, the state of an MC machine tool at this time is stored. When an operator restarts the NC working program 103 after performing the interrupting operation, the state of the NC machine tool at this restart time is grasped and is compared with the stored NC state to generate a restoring program 123. When working is restarted, the stored NC state is restored after execution of the generated restoring program 123, and the part following the interrupt position of the NC working program 103 is executed hereafter, thereby restarting the NC working program 103 from the interrupt position. Thus, the operation left unexecuted is proceeded.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は数値制御工作機械に係
り、特に加工プログラムの実行中断後の再実行を容易に
すると共に、加工プログラムのチェックを容易にし、補
助指令処理を迅速に行えるようにした数値制御工作機械
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerically controlled machine tool, and more particularly to facilitating re-execution of a machining program after interruption of its execution, facilitating checking of the machining program, and promptly executing auxiliary command processing. The present invention relates to a numerically controlled machine tool.

【0002】[0002]

【従来の技術】近年計算機内蔵の数値制御装置(CN
C)を用いた工作機械(数値制御工作機械)が普及し、
加工分野における自動化、省力化が推進されている。数
値制御工作機械は、数値制御装置(CNC)、強電シー
ケンス回路、工作機械から構成されている。強電シーケ
ンス回路は、CNCと工作機械との間にあって、種々の
補助的な仕事を行うもので、機械の規模にもよるが従来
は通常200個から300個のリレー回路によってつく
られていた。NCが配線ロジックNCからCNCに移っ
たように、強電シーケンス回路もリレー回路からマイク
ロプロセッサを用いたプログラマブルコントローラ(P
C)が主流になってきた。
2. Description of the Related Art In recent years, numerical control devices (CN
Machine tools using C) (numerical control machine tools) have spread,
Automation and labor saving are being promoted in the processing field. The numerically controlled machine tool is composed of a numerical controller (CNC), a high-voltage sequence circuit, and a machine tool. The heavy-duty sequence circuit is located between the CNC and the machine tool and performs various auxiliary tasks. Conventionally, the heavy-duty sequence circuit is normally made up of 200 to 300 relay circuits, depending on the scale of the machine. Just as NC moved from wiring logic NC to CNC, the high-voltage sequence circuit also changed from a relay circuit to a programmable controller (P
C) has become mainstream.

【0003】PCには汎用PCとCNC専用の内蔵型P
Cがある。数百本の工具やオートローダを有し、複雑な
シーケンスと入出力信号を必要とする工作機械では汎用
PCが用いられるが、大部分の工作機械では内蔵型PC
で十分である。旋盤や小型マシニングセンタ用の内蔵型
PCでは、特にPCのために独立したマイクロプロセッ
サを準備せず、CNC用のマイクロプロセッサの余力を
利用してPC機能を発揮せしめることができる。この場
合、PCのための部品点数は極めて少なくてすみ、信頼
性、コストともに優れたものが実現できる。
The PC includes a general-purpose PC and a built-in P dedicated to the CNC.
There is C. A general-purpose PC is used in machine tools that have hundreds of tools and autoloaders and require complicated sequences and input / output signals, but most machine tools have built-in PCs.
Is enough. In a built-in PC for a lathe or a small machining center, an independent microprocessor for the PC is not prepared, and the PC function can be exerted by utilizing the spare capacity of the CNC microprocessor. In this case, the number of parts for the PC can be extremely small, and a product having excellent reliability and cost can be realized.

【0004】CNC内蔵のPCは、CNCのロッカ内に
内蔵できるので、機械側にPCを設置するスペースを取
らなくてすむというメリットも有する。内蔵型PCとC
NCとの間のデータの授受は特別なドライバ/レシーバ
を必要とせず、共通バス(あるいはそれ相当)ですむた
め、PCに必要な入出力点数は汎用PCを使用する場合
に比べて約半分ですむ。
Since the PC with the built-in CNC can be built in the locker of the CNC, there is also an advantage that a space for installing the PC on the machine side can be saved. Built-in PC and C
Data exchange with the NC does not require a special driver / receiver and requires a common bus (or equivalent), so the number of I / O points required for a PC is about half that of a general-purpose PC. Mu.

【0005】PCに関する各種設定(タイマ、カウンタ
など)、状態表示やアラームメッセージの表示などは、
CNCの操作盤を利用して行うことができ、他に別の操
作盤を必要としない。図17は、NC専用の内蔵型PC
付きのCNCを使用したCNC工作機械の概要図であ
り、図中、10はCNC部、20は工作機械部である。
CNC部10は、NC部1、プログラマブル・コントロ
ーラ(PC)部2、入出力回路3から構成されており、
NC部1は、図21に示すオペレータ110とCNC工
作機械とのマンマシンインターフェースで制御するマン
マシン制御部4、M指令,S指令,T指令等の補助指令
を制御する補助指令制御部5、サーボ軸の制御を行う軸
移動制御部6から構成される。
Various settings (timers, counters, etc.) regarding the PC, status display, alarm message display, etc.
It can be performed using the operation panel of the CNC and does not require any other operation panel. Figure 17 shows a built-in PC dedicated to NC
FIG. 3 is a schematic view of a CNC machine tool using a CNC with an arrow, in which 10 is a CNC section and 20 is a machine tool section.
The CNC unit 10 is composed of an NC unit 1, a programmable controller (PC) unit 2, and an input / output circuit 3.
The NC unit 1 includes a man-machine control unit 4 that controls a man-machine interface between an operator 110 and a CNC machine tool shown in FIG. 21, an auxiliary command control unit 5 that controls auxiliary commands such as M commands, S commands, and T commands. It is composed of an axis movement control unit 6 that controls the servo axis.

【0006】PC部2は、シーケンスプログラムを格納
する部分で、図示しないがコンピュータと同様な構造を
もったシーケンス制御装置であり、CPU、プログラム
記憶装置等で構成されており、主としてROM,RAM
の半導体メモリで構成されている。入出力回路3は機械
側とのインターフェース部分で、ドライバやレシーバで
構成されており、工作機械部20の機械操作盤12や強
電回路13、スピンドルアンプ15等に接続される。
The PC section 2 is a section for storing a sequence program, which is a sequence control device having a structure similar to that of a computer (not shown), and is composed of a CPU, a program storage device, etc., and mainly ROM, RAM.
It is composed of a semiconductor memory. The input / output circuit 3 is an interface portion with the machine side and is composed of a driver and a receiver, and is connected to the machine operation panel 12 of the machine tool unit 20, the high-voltage circuit 13, the spindle amplifier 15, and the like.

【0007】工作機械部20には、オペレータ110と
CNC工作機械のマンマシンインターフェースの中心と
なるNC操作盤11があり、通常CRT装置やテンキー
等で構成され、NC部1のデータをCRT装置上に表示
させたり、テンキーよりデータを入力させたりする。
The machine tool section 20 includes an operator 110 and an NC operation panel 11 which is the center of the man-machine interface of the CNC machine tool, and is usually composed of a CRT device or a numeric keypad. The data of the NC unit 1 is stored on the CRT device. To be displayed or to input data with the numeric keypad.

【0008】その他、12の機械操作盤は主に工作機械
をオペレータ110がマニュアル操作するためのもので
あり、13の強電回路は機械各部14のアクチュータ等
を制御するものであり、15のスピンドルアンプはスピ
ンドルモータ16を制御するものであり、17の速度制
御ユニットは18の送りモータを制御するものである。
In addition, twelve machine operation panels are mainly used for the operator 110 to manually operate the machine tool, thirteen high-voltage circuits control actuators and the like of the machine parts 14, and fifteen spindle amplifiers. Is for controlling the spindle motor 16, and 17 is a speed control unit for controlling 18 feed motors.

【0009】工作機械の本来の仕事は切削や研削などの
加工であるが、この加工を行うための補助的な仕事が多
くある。例えば、加工物の着脱、主軸モータの起動/停
止、切削油のオン/オフ、工具の選択などである。これ
らの補助的な仕事はNC部1から送られてくる補助機能
信号(M指令)、工具選択信号(T指令)などを受けて
PC部2により処理される。
The original work of the machine tool is machining such as cutting and grinding, but there are many auxiliary jobs for performing this machining. For example, attachment / detachment of a workpiece, start / stop of a spindle motor, turning on / off of cutting oil, selection of a tool, and the like. These auxiliary jobs are processed by the PC unit 2 in response to the auxiliary function signal (M command), tool selection signal (T command), etc. sent from the NC unit 1.

【0010】図18は補助機能信号のインターフェース
の説明図であり、BCD2桁のコード信号(M11〜M
28)とコード読取り用信号(MF)がNC部1からP
C部2に送られ、このコード信号はPC部2によって解
読され、必要なアクチュータが決められたシーケンスで
駆動され、指令された動作が行われる。
FIG. 18 is an explanatory diagram of the interface of the auxiliary function signal, and the BCD two-digit code signal (M11 to M).
28) and the code reading signal (MF) from the NC unit 1 to P
The code signal is sent to the C section 2, the code signal is decoded by the PC section 2, the necessary actuator is driven in a predetermined sequence, and the instructed operation is performed.

【0011】動作が完了すると完了信号(FIN)がN
C部1に送られる。NC部1はこれによってコード読取
用信号MFをオフにする。引きつづいて完了信号FIN
オフ、Mコード信号オフという順序を経て、次のブロッ
クのNC指令に進む。この動作のタイームチャートが図
19に示される。
When the operation is completed, the completion signal (FIN) becomes N
It is sent to C section 1. Thereby, the NC unit 1 turns off the code reading signal MF. Continue to complete signal FIN
After the order of OFF and M code signal OFF, the operation proceeds to the NC command of the next block. A time chart of this operation is shown in FIG.

【0012】図20は、加工プログラムの作成から加工
物の検査までの流れを示す図である。 加工図面100
を見ながらプログラマ101はNCの加工プログラムを
作成する(ステップ102)。加工プログラムは通常の
EIAフォーマットや近年多用されるようになって来た
CNCに搭載されている自動プログラム、あるいはオフ
ラインのCAM等で作成される。103がこうして作成
されたNC加工プログラムである。
FIG. 20 is a diagram showing a flow from creation of a machining program to inspection of a workpiece. Processing drawing 100
The programmer 101 creates an NC machining program while watching (step 102). The processing program is created by a normal EIA format, an automatic program mounted on a CNC which has been widely used in recent years, or an off-line CAM. Reference numeral 103 is the NC machining program created in this way.

【0013】加工プログラムの作成が完了したら、加工
プログラム103のチェックを行う(ステップ10
4)。これは、近年のCNCにはグラフィック表示等が
可能なものが多いので、加工パスの軌跡を画面上に表示
させるなどして行うことが可能である。加工プログラム
103が正しいと思われたら、実際に加工を行うこと無
しに工作機械を動かし、工作機械の動作を確認しながら
加工プログラムのチェックをする空切削を行う(ステッ
プ105)。正しく切削できると思われたら実際のワー
クに対して試し加工を行ってみる(ステップ106)。
正しく切削できるようであれば、本格的な切削加工に入
り(ステップ107)、必要に応じて加工物を検査する
(ステップ108)。ステップ104〜108の各段階
において、加工プログラムの不具合が発見された場合、
加工プログラム103を修正し(ステップ109)、再
度ステップ104〜108の必要な段階から再チェック
する。上記のステップ105,106,107の段階に
おいて、加工プログラムの実行を一時中断させ、オペレ
ータ110がマニュアル操作を行う必要が生じる場合が
ある。
When the creation of the machining program is completed, the machining program 103 is checked (step 10).
4). This can be done by displaying the path of the machining path on the screen, etc., because many recent CNCs can display graphics. If the machining program 103 is considered to be correct, the machine tool is moved without actually machining, and the blanking is performed to check the machining program while confirming the operation of the machine tool (step 105). If it seems that the workpiece can be cut correctly, trial machining is performed on an actual work (step 106).
If it can be cut correctly, a full-scale cutting process is started (step 107), and the workpiece is inspected if necessary (step 108). If a defect in the machining program is found in each of steps 104 to 108,
The machining program 103 is modified (step 109), and the steps 104 to 108 are checked again from the necessary stage. In the steps 105, 106 and 107 described above, it may be necessary for the operator 110 to temporarily suspend the execution of the machining program and perform the manual operation.

【0014】例えば、切削中に切粉がからみつき、これ
をオペレータ110がマニュアル操作で除去する必要が
生じた場合とか、工具が途中で切損し、交換する必要が
生じた場合などである。
For example, there is a case where the cutting chips are entangled during cutting and it is necessary for the operator 110 to manually remove the cutting chips, or a case where the tool is cut off in the middle and needs to be replaced.

【0015】図21は、加工プログラムの実行を中断
し、マニュアル操作等で割り込みを行った際のNC部1
と工作機械部20の内部状態を示す図である。NC加工
プログラム103をNC部1は解析しながら(ステップ
111)機械に対して様々の指令を出力する。これを受
けて工作機械20は所定の動作を行う(ステップ11
4)。この時、NC部1における状態Aと工作機械部2
0の状態Aとは一致している。この場合の状態の一致と
は、NC部が認識している工作機械部20の状態と、実
際の工作機械部20の状態が一致していることであり、
例えば、NC部1が工作機械部20には現在7番の工具
が装着されていると認識している時、工作機械部20に
も実際に7番の工具が装着されていることである。さら
には、NC部1が認識している工作機械の各軸の位置と
実際の工作機械の各軸の位置が一致しているようなこと
である。
FIG. 21 shows the NC unit 1 when the execution of the machining program is interrupted and interrupted by a manual operation or the like.
3 is a diagram showing an internal state of the machine tool unit 20. FIG. The NC unit 1 analyzes the NC machining program 103 (step 111) and outputs various commands to the machine. In response to this, the machine tool 20 performs a predetermined operation (step 11).
4). At this time, the state A in the NC section 1 and the machine tool section 2
It matches the state A of 0. The matching of the states in this case means that the state of the machine tool unit 20 recognized by the NC unit and the actual state of the machine tool unit 20 match.
For example, when the NC unit 1 recognizes that the machine tool unit 20 is currently equipped with the No. 7 tool, the machine tool unit 20 is actually equipped with the No. 7 tool. Furthermore, the position of each axis of the machine tool recognized by the NC unit 1 and the position of each axis of the actual machine tool are the same.

【0016】通常上記のように加工プログラム実行中は
両者の状態が一致しながら加工プログラム103に基づ
いて加工を実行するが、この実行を中断させ(ステップ
112)、オペレータ110がマニュアル操作等で工作
機械を操作すると(ステップ113)、中断時のNC状
態B、工作機械の状態Bと割込み操作を行った後のNC
状態C、工作機械の状態Cとは各々異なった状態となる
Normally, as described above, while the machining program is being executed, the machining is executed based on the machining program 103 while the two states are the same. However, this execution is interrupted (step 112), and the operator 110 manually operates the machine. When the machine is operated (step 113), NC state B at the time of interruption, state B of the machine tool and NC after performing an interrupt operation
The state C and the state C of the machine tool are different from each other.

【0017】図22は、上記の1例を示す説明図であ
る。加工プログラムを実行中(107)、M08指令が
指令されたとする。M08指令は液状クーラントONの
指令であるので、工作機械側では液状クーラントがON
状態となる。この液状クーラントは、クーラントOFF
(M09指令)が指令されるまでON状態のままとな
る。ここで、加工プログラムを中断させたとすると(1
12)、加工プログラムの実行は中断されるが、工作機
械側の液状クーラントはONのままである。オペレータ
110が操作する際、クーラントがONのままでは操作
しにくいので、マニュアル操作(MDI)でM09を指
令し、クーラントをOFFさせようとする(113)。
工作機械側は、このM09指令を受け、クーラントをO
FF状態にする。その後、加工プログラムを再開させよ
うとした場合(118)、このままでは工作機械側はク
ーラントOFF状態のまま加工が再開されることとな
り、中断時の状態、すなわち、液状クーラントON状態
と異なる状態で再開されることになる。
FIG. 22 is an explanatory diagram showing the above example. It is assumed that the M08 command is issued while the machining program is being executed (107). Since the M08 command is a liquid coolant ON command, the liquid coolant is ON on the machine tool side.
It becomes a state. This liquid coolant is coolant OFF
It remains in the ON state until (M09 command) is commanded. If you interrupt the machining program (1
12), the execution of the machining program is interrupted, but the liquid coolant on the machine tool side remains ON. When the operator 110 operates, it is difficult to operate if the coolant is still ON. Therefore, the operator tries to turn off the coolant by commanding M09 by manual operation (MDI).
The machine tool receives this M09 command and turns off the coolant.
Set to FF state. After that, when the machining program is restarted (118), the machine tool side restarts the machining in the coolant OFF state as it is, and restarts in the state at the time of interruption, that is, the state different from the liquid coolant ON state. Will be done.

【0018】上記の例は、補助指令関連のものである
が、この他、中断時の工具位置から工具を移動させなけ
れば操作ができないような場合、工具を動かせば当然中
断時(112)の工具位置と割り込み操作(113)後
の工具位置とは異なるものとなる。
The above example relates to an auxiliary command, but in addition to this, if the tool cannot be operated unless the tool is moved from the tool position at the time of interruption, if the tool is moved, naturally the interruption (112) occurs. The tool position and the tool position after the interrupt operation (113) are different.

【0019】図23は中断したNC加工プログラム10
3を再開させる場合の説明図である。NC加工プログラ
ムを一旦中断させ、割り込み操作113を行うと、中断
時の状態から異なった状態となり、このままNC加工プ
ログラム103を再開させたのでは正常に加工できなく
なってしまう。このため、再開するに必要な復元操作1
17を行う必要がある。復元操作とは、機械の位置を中
断時に戻したり、中断時の機械状態(スピンドルの回転
数、クーラントのON/OFF 等)に戻すことであ
る。
FIG. 23 shows the interrupted NC machining program 10.
It is explanatory drawing in the case of restarting 3. If the NC machining program is temporarily interrupted and the interrupt operation 113 is performed, a state different from the state at the time of interruption will be obtained. If the NC machining program 103 is restarted as it is, normal machining cannot be performed. Therefore, the restore operation 1 required to restart
You need to do 17. The restoration operation means returning the position of the machine at the time of interruption, or returning to the machine state at the time of interruption (spindle speed, coolant ON / OFF, etc.).

【0020】また、加工プログラムを中断させる場合、
フィードホールド、ブロック停止等の加工プログラムの
一時的な停止状態で中断させ、このままの状態から再開
させる場合はよいが、CNCをリセットするなどして完
全に加工プログラムの実行を停止させてしまった場合、
実行を再開させる場合には加工プログラムの位置だけを
見つけ出すプログラムサーチ、CNCの内部状態も更新
しながら加工プログラムの位置を見つけるモーダルサー
チ等の機能を用いて加工プログラムの行う必要がある。
When interrupting the machining program,
It is good to suspend the machining program in a temporarily stopped state such as feed hold or block stop and restart it from this state, but if the machining program is completely stopped by resetting the CNC etc. ,
When the execution is restarted, it is necessary to perform the machining program by using a function such as a program search for finding only the position of the machining program, or a modal search for finding the position of the machining program while updating the internal state of the CNC.

【0021】図24は工具交換装置(ATC)の一例を
示す説明図である。30はATC部であり、複数の工具
交換用の工具35,36が格納されている。32は工具
交換用のアームであり、工具を把握するためのハンド3
3が両端に装着されている。31はスピンドル部であ
り、先端に加工用の工具34が装着されており、この工
具34にて加工を行う。工具交換を行う際には、まず交
換用の工具をATC部30の工具交換位置まで移動させ
ておき、その後加工用工具34を工具交換位置まで移動
させる。これは工具交換用のアーム32が工具交換可能
な位置であり、機械によって定まった固定位置である。
加工用工具34と交換用工具35とが所定の位置まで来
た時点で工具交換用補助指令(M06)を実行する。
FIG. 24 is an explanatory view showing an example of a tool changer (ATC). Reference numeral 30 denotes an ATC unit, which stores a plurality of tools 35 and 36 for tool exchange. 32 is an arm for tool exchange, and is a hand 3 for grasping the tool.
3 are attached to both ends. Reference numeral 31 is a spindle portion, and a machining tool 34 is attached to the tip thereof, and machining is performed by this tool 34. When exchanging tools, first, the exchanging tool is moved to the tool exchanging position of the ATC unit 30, and then the machining tool 34 is moved to the exchanging tool position. This is the position where the tool changing arm 32 can change the tool, and is a fixed position determined by the machine.
When the machining tool 34 and the replacement tool 35 reach the predetermined positions, the tool replacement auxiliary command (M06) is executed.

【0022】図25は、M06(工具交換)における一
連の機械動作と各機械動作に対応した補助指令(M指
令)の対応を示すフローチャートである。M06を実行
すると、図25で示したような一連の動作で工具交換を
完了する。工具交換を行う際M06を指定すればよい
が、M06で指定された工具交換動作中に何らかの障害
が発生し、工具交換動作を続行不能となる場合がある。
この場合、オペレータ110が介在し、障害を取り除
き、工具交換を完了させる必要があるので、工具交換の
ための一連の動作の各々を補助指令(M指令)で指定可
能にしてあるのが通常である。すなわち、M06を指定
したのと等価の動作をM601〜M612を順に指令す
ることで行わせることができるようにしてある。
FIG. 25 is a flowchart showing the correspondence between a series of machine operations in M06 (tool exchange) and auxiliary commands (M commands) corresponding to each machine operation. When M06 is executed, the tool exchange is completed by the series of operations shown in FIG. Although it is sufficient to specify M06 when performing the tool exchange, there is a case where some failure occurs during the tool exchange operation designated by M06 and the tool exchange operation cannot be continued.
In this case, since it is necessary for the operator 110 to intervene, remove the obstacle, and complete the tool replacement, it is normal to be able to specify each of a series of operations for tool replacement by an auxiliary command (M command). is there. That is, an operation equivalent to designating M06 can be performed by sequentially instructing M601 to M612.

【0023】仮に図25におけるM606に相当する動
作の、「アーム180゜旋回」中にATCのアームが加
工物等に干渉して旋回不能になったとする。この場合、
NC工作機械は加工続行不能となるので、オペレータが
介在して不具合要因を除去しなくてはならない。これに
は、プログラムの実行を停止させた後、不具合要因をマ
ニュアル操作等で除去し、工具交換動作(M06)が途
中で終わってしまっているため、工具交換の状況を見て
「アーム180゜旋回」中に停止したことを認識し、こ
の後の一連の工具交換動作を指令するM606〜M61
2指令をマニュアル操作(MDI)で実行させることに
よりM06処理を完了させていた。
It is assumed that the ATC arm interferes with a workpiece or the like and becomes unrotatable during the "arm 180 ° swivel" operation corresponding to M606 in FIG. in this case,
Since the NC machine tool cannot continue machining, an operator must intervene to eliminate the cause of the problem. This is because after stopping the execution of the program, the cause of the problem is removed by manual operation, etc., and the tool change operation (M06) has ended halfway. It recognizes that it stopped during "turning", and commands a series of subsequent tool change operations M606 to M61.
The M06 process was completed by executing 2 commands by manual operation (MDI).

【0024】[0024]

【発明が解決しようとする課題】従来の数値制御工作機
械は以上のように構成されているので、加工プログラム
103を何らかの理由により中断された後、割り込み処
理を行い、加工プログラム103を再開させるのには、
オペレータ110が現在の状態から中断時の状態に戻す
ことが必要で、大いに手間がかかると共に、正しく状態
を復元せずに加工を再開すると機械を損傷させる危険が
あるという第1の問題があった。
Since the conventional numerically controlled machine tool is constructed as described above, after interrupting the machining program 103 for some reason, interrupt processing is performed to restart the machining program 103. Has
There is a first problem that it is necessary for the operator 110 to return from the current state to the state at the time of interruption, which is very time-consuming, and there is a risk of damaging the machine if the machining is restarted without properly restoring the state. .

【0025】この加工プログラムの再開処理を容易にす
るため、加工を中断した時点での工具位置や工具をオペ
レータ110がマニュアル操作で移動させた場合、その
途中経路を記憶させ、再開時にはこの記憶した途中経路
を逆にたどって中断位置に復帰させようとする発明が特
開昭55−97606号公報に開示されている。
In order to facilitate the restart processing of the machining program, when the operator 110 manually moves the tool position or the tool at the time of interrupting the machining, the midway route is stored, and this route is stored when restarted. An invention that attempts to return to the interrupted position by tracing the path on the way in reverse is disclosed in JP-A-55-97606.

【0026】さらには、中断時のCNCの状態を記憶さ
せ、再開時にはこの記憶したCNCの状態を復元させて
加工を再開させる発明が特開昭57−60488号公報
及び特開平2−151909号公報に開示されている。
Further, there is an invention in which the state of the CNC at the time of interruption is stored, and when it is restarted, the stored state of the CNC is restored to resume the machining. JP-A-57-60488 and JP-A-2-151909 Is disclosed in.

【0027】しかし、上記2つの発明はいずれも中断時
のCNCの内部状態を記憶させ、これを再開時に単に復
元するだけのものであり、再開時の機械状態に関しては
何ら考慮されていない。また、上記3つの発明はいずれ
も加工再開に当たっては中断後、加工を再開するまでに
オペレーションに関する制約がある。例えば、特開昭5
5−97606号公報に開示された発明においては必ず
中断した位置までしか戻せないし、CNCの電源を切っ
てしまえば記憶したデータは無効となる。
However, both of the above two inventions store the internal state of the CNC at the time of interruption and simply restore it at the time of resumption, and no consideration is given to the machine state at the time of resumption. Further, in all of the above three inventions, there is a restriction on the operation before the machining is restarted after the interruption when the machining is restarted. For example, JP-A-5
In the invention disclosed in Japanese Patent Laid-Open No. 5-97606, it is always possible to return to the interrupted position, and if the power of the CNC is turned off, the stored data becomes invalid.

【0028】また、特開昭57−60488号公報に開
示された発明、特開平2−151909号公報に開示さ
れた発明は、いずれも加工中断時に割り込めるのはあら
かじめプログラミングされている割り込みプログラムの
みであり、オペレータ110が任意に割り込み操作を行
えるわけではない。
Further, in both the invention disclosed in Japanese Patent Laid-Open No. 57-60488 and the invention disclosed in Japanese Patent Laid-Open No. 2-151909, only interrupt programs programmed in advance can be interrupted when machining is interrupted. Therefore, the operator 110 cannot arbitrarily perform the interrupt operation.

【0029】M指令等の補助指令に関して、再開時のこ
とを考慮した考案としては、実開昭57−78407号
公報に開示されているようにそれまで実行された補助指
令を順に記憶させ、再開時には画面上にこれらのデータ
を表示させることにより、オペレータ110が再開処理
を行うのを援助するものがある。
Regarding the auxiliary commands such as the M command and the like, in consideration of the resumption, as disclosed in Japanese Utility Model Laid-Open No. 57-78407, the auxiliary commands executed up to that time are stored in order and restarted. Sometimes, displaying these data on the screen assists the operator 110 in performing the restart process.

【0030】また、特開昭63−73401号公報に開
示されているように補助指令を各々グループ化し、各グ
ループにおいて最終に指令された補助指令が何かを表示
させ、オペレータ110が再開処理用のプログラムの作
成を援助するものがある。
Further, as disclosed in Japanese Patent Laid-Open No. 63-74031, auxiliary commands are grouped into groups, and the final commanded auxiliary command in each group is displayed so that the operator 110 can perform restart processing. There are some that help you create your own program.

【0031】さらには、特開平2−300801号公報
に開示されているように補助指令をグループ化し、各グ
ループにおいて最終に指令された補助指令を再開処理時
に自動的に実行させてから再開させるものもある。
Further, as disclosed in Japanese Patent Application Laid-Open No. 2-300801, the auxiliary commands are grouped, and the final auxiliary command in each group is automatically executed and restarted during the restart processing. There is also.

【0032】しかし、上記の3つの発明はいずれも加工
プログラムのサーチ中もしくは実行中にデータを更新す
るだけであり、中断時のCNCの補助指令状態は把握で
きても再開時の工作機械の状態は把握できない。
However, all of the above three inventions only update the data during the search or execution of the machining program, and the auxiliary command state of the CNC at the time of interruption can be grasped, but the state of the machine tool at the time of restarting. Can't figure out.

【0033】また、機械の状態が現在どのようになって
いるかは実際の機械を見ないと分からないため、機械の
カバーを閉めた状態で機械の状態把握するのが難しいと
いう第2の問題があった。
The second problem is that it is difficult to grasp the state of the machine with the cover of the machine closed because the actual state of the machine cannot be known without looking at the actual machine. there were.

【0034】また、多重のネスティングを有する構造の
複雑な加工プログラムを実行し、その加工プログラムが
サブプログラム実行時に中断された場合、加工プログラ
ムのどの位置で加工中断しているかを判断するのが難し
かった。このため、加工を再開させるべきプログラム位
置を指定するのに時間と労力を要し、オペレータ110
に負担をかけるという第3の問題があった。
Further, when a complicated machining program having a structure having multiple nesting is executed and the machining program is interrupted when the subprogram is executed, it is difficult to determine at which position of the machining program the machining is interrupted. It was Therefore, it takes time and labor to specify the program position where the machining should be restarted, and the operator 110
There was a third problem of burdening

【0035】この問題を解決するために、特開昭62−
32505号公報あるいは、特開平2−114302号
公報には、ネスティング構造の加工プログラムの実行位
置を表示する技術が示されている。この特開昭62−3
2505公報には、サブプログラムの指定された繰り返
し回数、実行中の繰り返し回数を表示することも示され
ている。
In order to solve this problem, Japanese Unexamined Patent Publication No. 62-62
Japanese Patent No. 32505 or Japanese Patent Laid-Open No. 114302/1990 discloses a technique of displaying the execution position of a machining program having a nesting structure. This Japanese Patent Laid-Open No. 62-3
The 2505 publication also discloses displaying the number of times the subprogram is specified and the number of times the subprogram is being executed.

【0036】しかし、上記2つの発明では、加工プログ
ラムの実行位置は認識可能であるが、この認識された加
工プログラムの位置を指定することはできない。サブプ
ログラム実行中に中断させた場合、その位置を指定する
のは不可能であった。なぜなら、従来の加工プログラム
の位置を指定する方法ではサブプログラムを呼び出した
メインプログラム側の位置や実行済みの繰り返し回数等
は指定できなかったからである。
However, in the above two inventions, the execution position of the machining program can be recognized, but the recognized position of the machining program cannot be designated. It was impossible to specify the position when the program was interrupted during execution. This is because the conventional method for specifying the position of the machining program cannot specify the position on the main program side that called the sub program, the number of times the executed program has been repeated, or the like.

【0037】この問題を解決するため、特開昭60−2
63209号公報においては、サブプログラム中の位置
と実行した繰り返し回数を指定させこれをサーチする方
式が示されている。しかし、この方式では呼出側の位置
が指定できないため、呼出側が複数の箇所で同一のサブ
プログラムを呼び出している場合には2番目以降の呼出
位置をサーチできないという欠点がある。
In order to solve this problem, JP-A-60-2
In Japanese Patent Laid-Open No. 63209, there is shown a method in which a position in a subprogram and the number of repetitions executed are designated and searched. However, in this method, since the position of the calling side cannot be specified, there is a disadvantage in that when the calling side calls the same subprogram at a plurality of points, the second and subsequent calling positions cannot be searched.

【0038】プログラム中の位置と実行した繰り返し回
数を指定させこれをサーチする方式が示されている。し
かし、この方式では呼出側の位置が指定できないため、
呼出側が複数の箇所で同一のサブプログラムを呼び出し
ている場合には2番目以降の呼出位置をサーチできない
という欠点がある。
A method is shown in which a position in the program and the number of times of execution are designated and searched. However, with this method, the caller's position cannot be specified, so
If the calling side calls the same subprogram in a plurality of places, there is a disadvantage that the second and subsequent calling positions cannot be searched.

【0039】さらに、特開昭60−263209号公報
に開示された方式では、サブプログラムの繰り返し処理
を忠実に実行させてサーチするため、サーチ時間がかか
るという欠点がある。
Furthermore, the method disclosed in Japanese Patent Laid-Open No. 60-263209 has a drawback that it takes a long time to search because the sub-program repetitive processing is executed faithfully.

【0040】また、工具交換等の一連の機械動作を一つ
の補助指令で指令し、一連の機械動作の途中で障害が発
生した場合、どの動作で障害が発生したかを確認するの
が難しく、さらにその復旧操作も難しいという第4の問
題があった。
Further, when a series of machine operations such as tool change is commanded by one auxiliary command and a failure occurs in the middle of the series of machine operations, it is difficult to confirm in which operation the failure occurred. Furthermore, there was a fourth problem that the recovery operation was difficult.

【0041】請求項1乃至請求項7に係わる数値制御工
作機械は、上記第1、2、3、4の問題を解決するため
になされたものであり、NC加工プログラムの実行を中
断させ、割り込み処理を行った後、再びNC加工プログ
ラムの実行を続行させる場合、NC加工プログラム再開
のために必要な処理を行う復元プログラムを自動生成可
能な数値制御工作機械を得ることを目的とする。
The numerically controlled machine tool according to any one of claims 1 to 7 is designed to solve the above first, second, third, and fourth problems, and interrupts the execution of the NC machining program and interrupts it. An object of the present invention is to obtain a numerically controlled machine tool capable of automatically generating a restoration program for performing the processing necessary for restarting the NC machining program when the execution of the NC machining program is resumed after performing the processing.

【0042】[0042]

【課題を解決するための手段】請求項1の数値制御工作
機械は、加工プログラムに基づいて加工を行う数値制御
工作機械において、実行中の加工プログラムを中断させ
る中断手段と、中断時の数値制御工作機械の状態を記憶
する記憶手段と、加工プログラムを途中から再実行させ
る再開手段と、再実行時の数値制御工作機械の状態を認
識する認識手段と、中断時の数値制御工作機械の状態と
再実行時の状態を比較し中断時の工作機械の状態に戻す
ための再開処理用プログラムを生成する生成手段とを備
えたものである。
A numerically controlled machine tool according to claim 1 is a numerically controlled machine tool which performs machining based on a machining program, and an interruption means for interrupting a machining program being executed, and a numerical control at the time of interruption. Storage means for storing the state of the machine tool, resuming means for re-executing the machining program from the middle, recognition means for recognizing the state of the numerically controlled machine tool at the time of re-execution, and state of the numerically controlled machine tool at the time of interruption And a generation unit for generating a restart processing program for comparing the states at the time of re-execution and returning to the state of the machine tool at the time of interruption.

【0043】請求項2の数値制御工作機械は、請求項1
記載の数値制御工作機械において、中断時の数値制御工
作機械の状態を画面上に表示させる表示手段を備えたも
のである。
A numerically controlled machine tool according to a second aspect is the first aspect.
The numerically controlled machine tool described above is provided with display means for displaying the state of the numerically controlled machine tool at the time of interruption on a screen.

【0044】請求項3の数値制御工作機械は、請求項1
記載の数値制御工作機械において、生成された再開処理
用プログラムをオペレータが修正する修正手段を備えた
ものである。
The numerically controlled machine tool of claim 3 is the same as that of claim 1.
The numerically controlled machine tool described above is provided with a correction means for an operator to correct the generated restart processing program.

【0045】請求項4の数値制御工作機械は、請求項2
記載の数値制御工作機械において、表示手段により画面
上に表示された中断時の数値制御工作機械の状態をオペ
レータが変更する変更手段を備えたものである。
A numerically controlled machine tool according to a fourth aspect is the second aspect.
The numerically controlled machine tool described above is provided with changing means for changing the state of the numerically controlled machine tool at the time of interruption displayed on the screen by the display means.

【0046】請求項5の数値制御工作機械は、各補助指
令に対応したメッセージデータを設定記憶する手段と、
実行された補助指令に対応する現在の数値制御工作機械
の状態をメッセージデータとして表示する表示手段を備
えたものである。
A numerically controlled machine tool according to a fifth aspect of the present invention comprises means for setting and storing message data corresponding to each auxiliary command,
The present invention is provided with display means for displaying, as message data, the current state of the numerically controlled machine tool corresponding to the executed auxiliary command.

【0047】請求項6の数値制御工作機械は、ネスト構
造を有する加工プログラムを実行可能な数値制御工作機
機において、実行中の加工プログラムの実行ブロック位
置を監視する監視手段と、実行中の加工プログラムのネ
スト構造を表示する表示手段と、前記表示手段に表示さ
れた加工プログラムのネスト構造を修正する修正手段と
を備えたものである。
A numerically controlled machine tool according to a sixth aspect is a numerically controlled machine tool capable of executing a machining program having a nest structure, a monitoring means for monitoring the execution block position of the machining program being executed, and the machining being executed. Display means for displaying the nest structure of the program and correction means for correcting the nest structure of the machining program displayed on the display means are provided.

【0048】請求項7の数値制御工作機械は、予め定め
られた一連の機械動作の全体を1つの補助指令で指令す
ることも、前記予め定められた一連の機械動作の各々の
動作を個別の補助指令で指令することも可能な数値制御
工作機械において、前記一連の機械動作をまとめて指令
する1つの補助指令を実行中に動作が中断された場合、
前記一連の機械動作中どの動作で中断したかを判別する
判別手段と、前記判別手段で判別された中断動作以降の
動作を各個別の一連の補助指令で指令実行する手段とを
備えたものである。
In the numerically controlled machine tool according to a seventh aspect of the present invention, the entire series of predetermined machine operations can be instructed by one auxiliary command, or each operation of the predetermined series of machine operations can be individually performed. In a numerically controlled machine tool that can be commanded by an auxiliary command, if the operation is interrupted during execution of one auxiliary command that collectively commands the series of machine operations,
And a means for executing the operation after the interrupted operation judged by the judging means by each individual series of auxiliary commands. is there.

【0049】[0049]

【作用】請求項1乃至請求項7に係る数値制御工作機械
によれば、再実行するために必要な復元処理を実現する
復元プログラムが自動生成されるため、オペレータが自
ら機械の再開時の状態と中断時の状態を考慮して復元処
理を行うことなく、安全確実に加工プログラムの再実行
が行える。さらに、機械の一連の動作中に障害が発生し
た場合でも、オペレータがその障害を除去すれば容易に
残りの動作を続行可能となる。また、オペレータがNC
操作部の画面上に表示される補助指令のコメントによ
り、容易に機械の状態を把握可能となる。
According to the numerically controlled machine tool according to the first aspect to the seventh aspect, since the restoration program that realizes the restoration processing necessary for re-execution is automatically generated, the operator himself / herself is in a state when the machine is restarted. The machining program can be safely and reliably re-executed without performing the restoration process in consideration of the state at the time of interruption. Further, even if a failure occurs during a series of operations of the machine, the operator can easily continue the remaining operation by removing the failure. In addition, the operator is NC
The comment of the auxiliary command displayed on the screen of the operation unit makes it possible to easily grasp the state of the machine.

【0050】[0050]

【実施例】【Example】

実施例1.請求項1乃至請求項7に係る数値制御工作機
械について説明する。図1は、実施例1を示す説明図で
あり、NC加工プログラム103を中断した場合(ステ
ップ112)、その時点におけるNC工作機械の状態を
記憶する(ステップ121)。オペレータが割り込み操
作を行った後(ステップ113)、NC加工プログラム
を再開させようとした場合(ステップ118)、再開時
点におけるNC工作機械状態を把握し(ステップ12
2)、ステップ121で記憶したNC状態とを比較する
ことにより復元用のプログラムを生成し(ステップ12
3)、加工を再開させる場合(ステップ118)、ステ
ップ123で作成した復元プログラムを実行後(ステッ
プ124)、ステップ121で記憶したNC状態を復元
し(ステップ125)、以後NC加工プログラム103
の中断以降を実行させることにより、NC加工プログラ
ムの中断を再開可能とするものである。
Example 1. A numerically controlled machine tool according to claims 1 to 7 will be described. FIG. 1 is an explanatory diagram showing the first embodiment. When the NC machining program 103 is interrupted (step 112), the state of the NC machine tool at that time is stored (step 121). When the operator performs an interrupt operation (step 113) and then tries to restart the NC machining program (step 118), the NC machine tool state at the time of restart is grasped (step 12).
2) Generate a restoration program by comparing it with the NC state stored in step 121 (step 12
3) When resuming machining (step 118), after executing the restoration program created in step 123 (step 124), the NC state stored in step 121 is restored (step 125), and thereafter the NC machining program 103
The interruption of the NC machining program can be restarted by executing the interruption after the interruption.

【0051】図2は、図1のNC加工プログラム103
の実行位置を示すテーブルの説明図である。131は加
工プログラムの実行位置を示す情報であり、通常EIA
の加工プログラムを実行中であればプログラム番号(O
No.)、シーケンス番号(N No.)、ブロック
番号(B)のことであり、自動プログラムを実行中であ
れば、その自動プログラムに対応した中断位置を示す情
報のことである。132はメインプログラム上での位置
を示す情報であり、情報の内容は131と同様のもので
ある。133はメインプログラムの実行回数を示す情報
であり、これはメインプログラムを本来実行すべき回数
と現在までに実行された回数を示す情報のことである。
例えば、メインプログラムを100回実行すべきとこ
ろ、56回まで実行し、現在57回目を実行中であれ
ば、100と56の値が格納されている値である。
FIG. 2 shows the NC machining program 103 of FIG.
5 is an explanatory diagram of a table showing execution positions of FIG. Reference numeral 131 is information indicating the execution position of the machining program, which is usually EIA.
Program number (O
No. ), A sequence number (N No.), and a block number (B), and is information indicating an interruption position corresponding to the automatic program when the automatic program is being executed. Reference numeral 132 is information indicating a position on the main program, and the content of the information is the same as that of 131. Reference numeral 133 is information indicating the number of executions of the main program, which is information indicating the number of times the main program should be originally executed and the number of times the main program has been executed up to now.
For example, when the main program should be executed 100 times, it is executed up to 56 times, and if the 57th is currently being executed, the values of 100 and 56 are stored.

【0052】134は各サブプログラムの先頭位置であ
り、先頭位置とはメインプログラムが呼び出したサブプ
ログラムの先頭を示す情報である。135はサブプログ
ラムの位置を示す情報であり、このサブプログラムが他
のサブプログラムを呼び出し中であれば、サブプログラ
ム呼び出し位置を示す情報であり、そうでなければこの
サブプログラム上での実行位置を示す情報である。13
4、135の各々情報の構成は131と同様の構成であ
る。136は133と同様に、該当するサブプログラム
が50回繰り返し実行するように指定されているところ
を25回実行し、26回目を実行中であれば50と25
の値が格納されている値となるように、サブプログラム
の指定された繰り返し回数と今まで実行された回数を示
すものである。
Reference numeral 134 denotes the head position of each subprogram, and the head position is information indicating the head of the subprogram called by the main program. Reference numeral 135 is information indicating the position of the subprogram. If this subprogram is calling another subprogram, it is information indicating the subprogram calling position. If not, the execution position on this subprogram is set. It is information to show. Thirteen
Each of the information items 4 and 135 has the same configuration as that of 131. Similar to 133, 136 executes 25 times where the corresponding subprogram is specified to be repeatedly executed 50 times, and if the 26th time is being executed, 50 and 25 are executed.
It indicates the number of times the subprogram has been specified and the number of times it has been executed so far so that the value of is the stored value.

【0053】以後、サブプログラムのネスティング回数
分サブプログラムの情報が134、135、136に格
納される。nはサブプログラムの許されているネスティ
ング回数を示すものとし、実行されていないサブプログ
ラムのネスティング情報は0クリアされているものとす
る。
After that, information on the subprograms corresponding to the nesting times of the subprograms is stored in 134, 135, 136. It is assumed that n indicates the allowable number of nesting times of the subprogram, and the nesting information of the subprogram which is not executed is cleared to zero.

【0054】図5はNC加工プログラム103の実行状
況を示す例である。メインプログラムをA回実行すべき
ところa回まで実行し、現在a+1回目を実行中であ
り、P1の部分でサブプログラム1を呼び出し、サブプ
ログラム1の先頭はS1でサブプログラム1はB回実行
すべきところb回まで実行し、現在b+1回目を実行中
であり、P2の部分でサブプログラム2を呼び出し、サ
ブプログラム2の先頭はS2でサブプログラム2はC回
実行すべきところc回まで実行し、c+1回目を実行中
であり、P3の部分でサブプログラム3を呼び出し、サ
ブプログラム3の先頭はS3でサブプログラム3はD回
実行すべきところd回まで実行し、現在d+1回目を実
行中であり、その実行位置はP4であったとする。
FIG. 5 is an example showing the execution status of the NC machining program 103. Where the main program should be executed A times, it is executed up to a times, the a + 1 time is currently being executed, the sub program 1 is called at the portion P1, the head of the sub program 1 is S1, and the sub program 1 is executed B times. Executed up to b times, and is currently executing the (b + 1) th time. Subprogram 2 is called at P2, subprogram 2 starts at S2, and subprogram 2 executes up to c times where it should be executed C times. , C + 1 times are being executed, subprogram 3 is called at P3, subprogram 3 starts at S3, and subprogram 3 should be executed D times, where d times are currently being executed. It is assumed that the execution position is P4.

【0055】この場合、図2において、131の内容
は、P4の位置を示す情報であり、132の内容は、P
1の位置を示す情報であり、133の内容は、Aとaを
示す情報であり、サブプログラム1に関しての134の
内容は、S1の位置を示す情報であり、135の内容
は、P2の位置を示す情報であり、136の内容は、B
とbを示す情報であり、サブプログラム2に関しての1
34の内容は、S2の位置を示す情報であり、135の
内容は、P3の位置を示す情報であり、136の内容
は、Cとcを示す情報であり、サブプログラム3に関し
ての134の内容は、S3の位置を示す情報であり、1
35の内容は、P4の位置を示す情報であり、136の
内容は、Dとdを示す情報である。
In this case, in FIG. 2, the content of 131 is information indicating the position of P4, and the content of 132 is P.
1 is the information indicating the position of 1, the content of 133 is the information indicating A and a, the content of 134 regarding the subprogram 1 is the information indicating the position of S1, and the content of 135 is the position of P2. And the content of 136 is B
And b, which is information about subprogram 1
The contents of 34 are the information indicating the position of S2, the contents of 135 are the information indicating the position of P3, the contents of 136 are the information indicating C and c, and the contents of 134 regarding the subprogram 3. Is information indicating the position of S3, and 1
The content of 35 is information indicating the position of P4, and the content of 136 is information indicating D and d.

【0056】図3は実行時のその他の情報を示すテーブ
ルの説明図である。141はその時点における各軸の座
標値であり、142は現在使用している工具の番号、1
43は工具位置オフセット値やノーズR補正値等の補正
指令値、144はF指令で与えられる工具の送り速度、
145はS指令で与えられる主軸の回転数、146はG
指令のモーダル値、147はM指令の状態である。14
7のM指令の状態とは、図4で示すようにPC部2が実
行中のM指令値151、実行中のM指令が後述するよう
な複数のM指令値に分解されるようであれば、そのうち
現在実行中の部分を示す情報152、M指令の各グルー
プにおける最終指令値153から構成される情報のこと
である。
FIG. 3 is an explanatory diagram of a table showing other information at the time of execution. 141 is the coordinate value of each axis at that time, 142 is the number of the tool currently used, 1
43 is a correction command value such as a tool position offset value or nose R correction value, 144 is a tool feed speed given by the F command,
145 is the rotation speed of the spindle given by the S command, 146 is G
The modal value of the command, 147, is the state of the M command. 14
The M command state of No. 7 is the M command value 151 being executed by the PC unit 2 as shown in FIG. 4, and the M command being executed is decomposed into a plurality of M command values as described later. The information 152 is information consisting of a portion currently being executed and a final command value 153 in each group of M commands.

【0057】M指令の各グループとは、機械の状態を定
めるM指令を各々その状態に応じて分類し、各グループ
で指定されたM指令によって機械の状態が把握可能なも
のである。例えば、主軸の回転状態を示すM指令 M03:主軸正転 M04:主軸逆転 M05:主軸停止 を1つのグループとし、このグループ内でどのM指令が
最後に指令されたかを見ることで機械の現在の状態が把
握可能となる。
Each M command group is a group in which M commands that determine the state of the machine are classified according to the state, and the state of the machine can be grasped by the M command specified in each group. For example, M command indicating the rotation status of the spindle M03: Spindle forward rotation M04: Spindle reverse rotation M05: Spindle stop is one group, and by checking which M command was last issued in this group, the current machine The state can be grasped.

【0058】M指令の各グループの値は、加工プログラ
ム103の実行によって更新されると共に、マニュアル
操作(MDI)等の操作によっても更新され、このM指
令の各グループの値により現在の機械状態を把握するこ
とが可能となる。
The value of each group of the M command is updated by the execution of the machining program 103 and also by an operation such as a manual operation (MDI). The value of each group of the M command indicates the current machine state. It becomes possible to grasp.

【0059】M指令のグループ化の指定は図6に示すよ
うに、NC操作盤11上の画面で設定可能である。16
0は画面表示例であり、161がM指令値、162はグ
ループ化するグループ番号である。図6の例では第1グ
ループとして、 M03:主軸正転 M04:主軸逆転 M05:主軸停止 を指定し、第2グループとして、 M07:ミストクーラントON M08:液状クーラントON M09:クーラントOFF を指定した例を示してある。
The designation of grouping of the M command can be set on the screen on the NC operation panel 11, as shown in FIG. 16
0 is an example of screen display, 161 is an M command value, and 162 is a group number for grouping. In the example of FIG. 6, an example in which M03: main spindle forward rotation M04: main spindle reverse rotation M05: main spindle stop is designated as the first group, and M07: mist coolant ON M08: liquid coolant ON M09: coolant OFF is designated as the second group Is shown.

【0060】また、166は各M指令に対するコメント
であり、各M指令の内容をコメントとして指定すること
により、各M指令の内容をオペレータが容易に把握でき
るようにするものである。
Reference numeral 166 is a comment for each M command, and by designating the contents of each M command as a comment, the operator can easily understand the contents of each M command.

【0061】図7はM指令の各グループの値の更新方法
を示すフローチャートである。M指令が指令された場
合、指令されたM指令値が登録されているかどうかを判
別する(ステップ1001)。M指令値が登録されてい
るとは、図6で示したM指令テーブル中の161のM指
令値に、指令されたM指令値が登録されているかどうか
ということである。
FIG. 7 is a flow chart showing a method of updating the value of each group of the M command. When the M command is commanded, it is determined whether or not the commanded M command value is registered (step 1001). That the M command value is registered means whether or not the commanded M command value is registered in the M command value of 161 in the M command table shown in FIG.

【0062】指令されたM指令値が登録されていれば、
指令されたM指令値はグループ指定されているかどうか
を判別する(ステップ1002)。指令されたM指令値
がグループ指定されているとは、図6で示したM指令テ
ーブル中の162にグループ番号が指定されているかど
うかということである。指令されたM指令値がグループ
指定されていれば、指定されたグループ番号のテーブル
(MG1〜MGn)に指令されたM指令値を格納する
(ステップ1003)。
If the commanded M command value is registered,
It is determined whether the commanded M command value is designated as a group (step 1002). The fact that the commanded M command value is designated as a group means whether or not the group number is designated at 162 in the M command table shown in FIG. If the commanded M command value is designated as a group, the commanded M command value is stored in the designated group number tables (MG1 to MGn) (step 1003).

【0063】このように、図2、図3、図4に示すデー
タによりNC工作機械の状態を把握することが可能にな
る。図1のステップ121で示したNC工作機械状態の
記憶とは、この図2、図3、図4で示したテーブルの内
容を専用エリア(図示せず)に記憶することである。図
8は中断したNC加工プログラム103を再開する際の
手順を示したフローチャートである。NC加工プログラ
ム103を再開させる場合、中断時のNC工作機械状態
をNC操作盤11の画面上に表示する(ステップ110
1)。中断時のNC工作機械状態とは、図1のステップ
121で示した専用エリア(図示せず)に記憶されたN
C工作機械状態の記憶内容のことである。
As described above, the state of the NC machine tool can be grasped by the data shown in FIGS. 2, 3, and 4. Storing the NC machine tool state shown in step 121 of FIG. 1 means storing the contents of the tables shown in FIGS. 2, 3 and 4 in a dedicated area (not shown). FIG. 8 is a flowchart showing a procedure for restarting the interrupted NC machining program 103. When restarting the NC machining program 103, the NC machine tool state at the time of interruption is displayed on the screen of the NC operation panel 11 (step 110).
1). The NC machine tool state at the time of interruption is the N stored in the dedicated area (not shown) shown in step 121 of FIG.
C Memorized contents of machine tool status.

【0064】図9はNC操作盤11の画面上の表示例で
ある。170が表示画面であり、171は中断時のNC
加工プログラム103の中断位置を示す情報であり、1
72はメインプログラムの位置情報、173はサブプロ
グラム1の位置情報、174はサブプログラム2の位置
情報を示し、175はプログラム番号、176はシーケ
ンス番号、177はブロック番号、178は繰り返し回
数とその実行回数を示すものであり、179はサブプロ
グラムの先頭のプログラム番号、180は同じくシーケ
ンス番号、181は同じくブロック番号である。
FIG. 9 is a display example on the screen of the NC operation panel 11. 170 is a display screen, and 171 is NC at the time of interruption.
Information indicating the interruption position of the machining program 103, which is 1
72 is the position information of the main program, 173 is the position information of the sub program 1, 174 is the position information of the sub program 2, 175 is the program number, 176 is the sequence number, 177 is the block number, 178 is the number of repetitions and its execution. It indicates the number of times, 179 is the program number at the beginning of the subprogram, 180 is the same sequence number, and 181 is also the block number.

【0065】図9で示した中断時の各情報171を図1
5及び図16を使用して説明する。図15のNC加工プ
ログラム例は、プログラム番号(PNo.)100のプ
ログラム中にサブプログラム1(SUB1)がシーケン
ス番号5100から、サブプログラム2(SUB2)が
シーケンス番号7800から格納されているものとす
る。また、図16は図15で示したNC加工プログラム
PNo.100中断時の状態を示す図である。図9で示
した中断時の各情報171の数値は図16においてメイ
ンプログラムのシーケンス番号2700、ブロック番号
2の位置でサブプログラム1を10回呼びだし、現在7
回目を実行中であり、サブプログラム1のシーケンス番
号5100、ブロック番号1の位置でサブプログラム2
を5回呼びだし、現在3回目を実行中であり、サブプロ
グラム2のシーケンス番号7835、ブロック番号3を
現在実行中であることを示す。
Each information 171 at the time of interruption shown in FIG. 9 is shown in FIG.
This will be described with reference to FIGS. In the NC machining program example of FIG. 15, it is assumed that the subprogram 1 (SUB1) is stored from the sequence number 5100 and the subprogram 2 (SUB2) is stored from the sequence number 7800 in the program of the program number (PNo.) 100. . Further, FIG. 16 shows the NC machining program PNo. It is a figure which shows the state at the time of 100 interruption. The numerical value of each information 171 at the time of interruption shown in FIG. 9 calls the subprogram 1 10 times at the position of the main program sequence number 2700 and block number 2 in FIG.
The second time is being executed, and subprogram 2 is located at the position of sequence number 5100 and block number 1 of subprogram 1.
Is called five times, the third time is currently being executed, and the sequence number 7835 and block number 3 of the subprogram 2 are currently being executed.

【0066】図9の表示例では、サブプログラムのネス
ティングは2重までであることを示している。図9の表
示例では、サブプログラムのネスティングは2重までし
か表示できないようになっているが、許容されるネステ
ィングに応じて画面を変更するとよい。182は中断時
の各軸の座標値であり、図9の表示例ではX,Y,Z,
C軸の座標値が表示されているが、これも必要に応じて
表示する軸を変更してもよい。 183は使用工具
(T)、補正番号(H)、送り速度(F)、主軸の回転
数(S)を示す。184はG指令のモーダル値を示す。
The display example of FIG. 9 indicates that nesting of subprograms is up to double. In the display example of FIG. 9, the nesting of the subprogram can be displayed only up to double, but the screen may be changed according to the allowed nesting. 182 is the coordinate value of each axis at the time of interruption, and in the display example of FIG. 9, X, Y, Z,
Although the coordinate value of the C axis is displayed, the axis to be displayed may also be changed if necessary. Reference numeral 183 indicates a tool (T) used, a correction number (H), a feed rate (F), and a rotation speed (S) of the spindle. Reference numeral 184 indicates a modal value of the G command.

【0067】185はM指令の各グループにおいて最後
に指定されたM指令を示すものである。各グループ対応
に表示され、Mの指令値186と各M指令値に対応する
コメント187が合わせて表示されるので、M指令の内
容が容易に判別できると共に、機械の状態も容易に把握
することが可能である。187に表示される内容は、図
6の166で指定したコメント情報が表示される。
Reference numeral 185 indicates the M command last designated in each group of M commands. Since the M command value 186 and the comment 187 corresponding to each M command value are displayed together for each group, the contents of the M command can be easily determined and the state of the machine can be easily grasped. Is possible. As the content displayed in 187, the comment information specified in 166 of FIG. 6 is displayed.

【0068】図8に戻り、ステップ1101において表
示されたNC状態に対して修正が必要かどうかをオペレ
ータが判断し(ステップ1102)、修正が必要な場合
にはNC状態を修正する(ステップ1103)。NC状
態の修正は図9の188で示したカーソルを修正部分に
移動させ、NC操作盤11上のキーボード(図示せず)
からデータを入力することによって修正可能である。カ
ーソルの移動はキーボード上のカーソル移動キー(図示
せず)によって行う。修正可能なのは、175〜177
及び、179〜181の各プログラム位置を示すデー
タ、178の繰り返し回数とその実行回数、182の中
断位置を示す各軸の座標値、183の使用工具(T)、
補正番号(H)、送り速度(F)、主軸の回転数(S)
を示す値、184のG指令のモーダル値、186の各グ
ループ対応のMの指令値である。
Returning to FIG. 8, the operator judges whether or not the NC state displayed in step 1101 needs to be corrected (step 1102). If the NC state needs to be corrected, the NC state is corrected (step 1103). . To correct the NC state, move the cursor shown at 188 in FIG. 9 to the correction portion, and press the keyboard (not shown) on the NC operation panel 11.
It can be corrected by inputting data from. The cursor is moved by a cursor movement key (not shown) on the keyboard. 175-177 can be modified
And data indicating each program position of 179 to 181, the number of repetitions of 178 and the number of executions thereof, the coordinate value of each axis indicating the interruption position of 182, the tool (T) of 183
Correction number (H), feed rate (F), spindle speed (S)
, A modal value of the G command of 184, and an M command value of 186 corresponding to each group.

【0069】次に、NC状態の修正が必要なくなった時
点で、システム側はステップ1101で表示したNC工
作機械の状態と現在のNC工作機械状態とを比較して復
元用のプログラムを生成する(ステップ1104)。
Next, when it is no longer necessary to correct the NC state, the system side compares the state of the NC machine tool displayed in step 1101 with the current state of the NC machine tool to generate a restoration program ( Step 1104).

【0070】図10は復元用プログラム生成を示すフロ
ーチャートである。まず、中断時に使用していた工具番
号と現在装着されている工具の番号を比較し(ステップ
1201)、同じであれば工具交換は不要であるからス
テップ1205へ飛び、異なっていればステップ120
2〜1204で中断時の使用工具に現在装置されている
工具を変更するための工具交換を行う。
FIG. 10 is a flow chart showing the restoration program generation. First, the tool number used at the time of interruption is compared with the currently installed tool number (step 1201). If they are the same, it is not necessary to replace the tools, so the process jumps to step 1205.
In 2 to 1204, tool exchange for changing the tool currently installed to the tool used at the time of interruption is performed.

【0071】ステップ1202は工具交換位置まで現在
装着されている工具を移動させるパスを生成させるもの
であり、ステップ1203はステップ1202で生成さ
れた指令を実行すれば装着工具は工具交換位置へ移動す
るので、現在の機械位置を工具交換位置に変更してお
く。ステップ1204は工具交換のための指令を生成す
るものである。
Step 1202 generates a path for moving the currently mounted tool to the tool exchange position, and step 1203 moves the attached tool to the tool exchange position by executing the command generated in step 1202. Therefore, the current machine position is changed to the tool change position. Step 1204 is to generate a command for tool change.

【0072】ステップ1205は主軸関連の指令を生成
するものであり、主軸回転数の指令(S)や主軸回転方
向の指令(M03,M04)を生成するものである。ス
テップ1206はNC工作機械の状態を中断時の状態に
戻すために必要なM指令を出力するものである。これ
は、図4で示したMG1〜MGnの値を中断時と同じ値
にするものであり、中断時と再開時の値が異なっていた
場合、中断時の値となるようなM指令値を生成するもの
である。
In step 1205, a spindle-related command is generated, and a spindle rotation speed command (S) and a spindle rotation direction command (M03, M04) are generated. Step 1206 outputs an M command necessary for returning the state of the NC machine tool to the state at the time of interruption. This is to set the values of MG1 to MGn shown in FIG. 4 to the same values as at the time of interruption, and if the values at the time of interruption and at the time of restart are different, set the M command value to be the value at interruption. To generate.

【0073】次に、中断時の位置と現在の位置とを比較
し(スッテプ1207)、異なっていれば中断時点の位
置に戻すために必要な移動パスを生成する(ステップ1
208)。なお、中断位置に戻す際、図11に示すよう
に直接中断位置にアプローチするのではなく、中断位置
に接する円弧の軌跡を通して(G02で示す部分)アプ
ローチさせるようにしてもよい。円弧の半径等はパラメ
ータで指定させるようにするとよい。このように、接円
でアプローチすることにより、加工ワークに対して傷を
付けることなく工具を戻すことが可能となる。
Next, the position at the time of interruption and the current position are compared (step 1207), and if they are different, a movement path necessary for returning to the position at the time of interruption is generated (step 1).
208). When returning to the interruption position, instead of directly approaching the interruption position as shown in FIG. 11, it may be approached through a locus of an arc that is in contact with the interruption position (a portion indicated by G02). It is advisable to specify the radius of the arc and the like with parameters. Thus, by approaching with a tangent circle, the tool can be returned without damaging the work piece.

【0074】以上のように図8におけるステップ110
4で生成された復元プログラムをNC操作盤11の画面
上に表示させる(ステップ1105)。図12はこうし
て表示された復元プログラムを表示させた例である。
As described above, step 110 in FIG.
The restoration program generated in 4 is displayed on the screen of the NC operation panel 11 (step 1105). FIG. 12 shows an example in which the restoration program thus displayed is displayed.

【0075】こうして生成された復元プログラムを修正
するかどうかをオペレータが判定し(ステップ110
6)、修正が必要であれば修正を行う(ステップ110
7)。修正は図12に示すように修正部にカーソル18
8を移動させ、通常のNC加工プログラム103の修正
と同様に行う。
The operator determines whether or not the restoration program thus generated is to be modified (step 110).
6) If necessary, make a correction (step 110)
7). As shown in FIG. 12, the correction is made by moving the cursor 18 to the correction section.
8 is moved and the same operation as the normal NC machining program 103 is corrected.

【0076】このように生成された復元プログラムを加
工再開時に実行し(ステップ1108)、次にステップ
1101で表示された状態にNC状態を復元し(ステッ
プ1109)、中断されたNC加工プログラム103の
実行を再開する(ステップ1110)。
The restoration program thus generated is executed at the time of resuming machining (step 1108), then the NC state is restored to the state displayed in step 1101 (step 1109), and the interrupted NC machining program 103 is restored. The execution is restarted (step 1110).

【0077】以上のような手順により中断した加工プロ
グラムの再開処理を行う。なお、上記実施例によれば、
実行中の加工プログラムを中断させ、オペレータが割り
込み処理を行った後の加工再開処理の例を示したが、こ
のほか、次の手順により加工プログラムの途中からの実
行処理が可能となる。途中から実行させたいプログラム
を途中実行させたい位置までモーダルサーチを行わせ
る。これにより、中断位置まで加工プログラムを実行さ
せた場合のNC工作機械の状態が仮想的にできあがる。
以降は加工プログラムを中断させた場合と同様に図8で
示した手順で処理させる。モーダルサーチした結果に不
都合が有れば、図8のステップ1103により任意に状
態を修正する。
The resuming process of the machining program interrupted by the above procedure is performed. According to the above embodiment,
An example of the machining resuming process after the machining program being executed is interrupted and the operator interrupts is shown. In addition to this, the following procedure enables the execution process from the middle of the machining program. A modal search is performed to the position where you want to execute the program you want to execute from the middle. As a result, the state of the NC machine tool when the machining program is executed up to the interruption position is virtually created.
After that, the processing is performed in the procedure shown in FIG. 8 as in the case where the machining program is interrupted. If the result of the modal search is inconvenient, the state is arbitrarily corrected in step 1103 of FIG.

【0078】なお本実施例においてモーダルサーチを行
う場合、現在の機械状態を記憶するエリアではなく、中
断時の機械状態を記憶するエリアを更新し、モーダルサ
ーチ後加工プログラムを実行させる際には、上記に示し
た加工中断時と同様の手順で加工を実行させる。
When performing a modal search in this embodiment, when the area for storing the machine state at the time of interruption is updated and the machining program after the modal search is executed, instead of the area for storing the current machine state, Machining is executed in the same procedure as when the machining is interrupted as described above.

【0079】また、中断時の機械状態を記憶するエリア
は常に存在しており、加工プログラムの中断時のみ生成
されるわけではないので、加工プログラムを中断させた
り、モーダルサーチを行わせたりすることなく、この中
断時の機械状態を記憶するエリアに直接データを設定
し、加工プログラムを途中から実行させることも可能で
ある。すなわち、途中実行させたい加工プログラムにお
いて、途中実行させる時点でのNC工作機械の状態が分
かっているなら、上記のようにモーダルサーチさせるこ
と無しに図8で示した1101のステップから途中実行
処理を行ってもよい。すなわち、ステップ1103で直
接に途中実行させる際のNC工作機械の状態を入力すれ
ばよい。
Since the area for storing the machine state at the time of interruption is always present and is not generated only when the machining program is interrupted, the machining program may be interrupted or modal search may be performed. Alternatively, it is possible to directly set data in an area for storing the machine state at the time of interruption and to execute the machining program midway. That is, in the machining program to be executed midway, if the state of the NC machine tool at the time of midway execution is known, the midway execution processing is performed from step 1101 shown in FIG. 8 without performing the modal search as described above. You can go. That is, the state of the NC machine tool at the time of direct execution in step 1103 may be input.

【0080】また、NC工作機械が中断される場合とし
て、一連の機械動作を行っている最中に何事か不具合が
発生し、一連の機械動作が終了できなくなって加工が中
断されると言う場合がある。例えば、図33で示したよ
うなATCを用いた工具交換動作中に不具合が発生した
ような場合である。この実施例によれば、図4に示すよ
うにPC部2が実行中のM指令値151、実行中のM指
令が後述するような複数のM指令値に分解される場合そ
のうち実行中の部分を示す情報152を有しているた
め、容易に中断された動作を認識することが可能であ
る。151、152の値はNC部1とPC部2とでデー
タのやりとりを行う際にPC部2から教えてもらうよう
にしても良いし、内蔵型のPCであれば、双方からアク
セス可能な共通テーブルを有する場合が多いので、この
テーブルの中に151、152のデータを有するように
してもよい。
In addition, when the NC machine tool is interrupted, a problem occurs during a series of machine operations, and the series of machine operations cannot be completed and machining is interrupted. There is. For example, this is a case where a problem occurs during the tool changing operation using the ATC as shown in FIG. According to this embodiment, as shown in FIG. 4, when the PC unit 2 is executing the M command value 151 and the M command being executed is decomposed into a plurality of M command values, which will be described later, the part currently being executed. It is possible to easily recognize the interrupted operation because it has the information 152 that indicates. The values of 151 and 152 may be instructed by the PC unit 2 when exchanging data between the NC unit 1 and the PC unit 2, or if the built-in PC has a common value accessible from both sides. Since it often has a table, the data of 151 and 152 may be included in this table.

【0081】また、図4における153の各値も、通常
はM指令によってのみ更新されるが、NC工作機械の機
械操作盤12からNC部1を介さずにNC工作機械を動
作させる機能が存在する場合、NC部1がM指令のみ監
視していたのではNC工作機械の状態を正確に把握する
ことは困難となる。この様な場合、151、152のデ
ータと同様にPC部2からこれらの値を教えるようにさ
せればよい。
Further, although each value of 153 in FIG. 4 is normally updated only by the M command, there is a function of operating the NC machine tool from the machine operation panel 12 of the NC machine tool without going through the NC section 1. In this case, if the NC unit 1 monitors only the M command, it becomes difficult to accurately grasp the state of the NC machine tool. In such a case, the PC unit 2 may teach these values in the same manner as the data of 151 and 152.

【0082】このMSUB152の情報は、図9の18
9で示すように中断情報として画面上にMの指令値とそ
れに対応するコメントとで同時に表示されるため、オペ
レータが容易に中断された動作を確認することが可能で
ある。
The information of this MSUB 152 is 18 in FIG.
As indicated by 9, the command value of M and the comment corresponding thereto are simultaneously displayed on the screen as the interruption information, so that the operator can easily confirm the interrupted operation.

【0083】図13は一連の機械動作に対応するM指令
を定義したテーブルを示すものである。このテーブルに
相当するデータを、各一連の機械動作対応で予め設定し
ておく。
FIG. 13 shows a table defining M commands corresponding to a series of machine operations. Data corresponding to this table is preset for each series of machine operations.

【0084】図14は、上記のように一連の機械動作が
途中で中断された場合の再開処理を示すフローチャート
である。まず、中断したM指令値が登録済みかどうかチ
ェックする(ステップ1301)。中断したM指令値が
登録済みとは、図13で示したように一連の機械動作の
各ステップを対応するM指令とコメントが登録済みとい
うことである。登録されていれば、ステップ1302で
nの値を1に初期化する。nの値は、一連の機械動作の
順番を示すものである。図4の152で示したMSUB
の値がMnの値と一致するかどうかを確認する(ステッ
プ1303)。Mnの値とは、図13で定義された一連
の機械動作に対応するM指令の指定されたステップにお
ける値である。一致しなければ、次のデータと比較する
ためにnの値を1だけ増加させる(ステップ130
4)。この時、nの値が図13で定義されたステップ数
Nを超えたかどうかを確認する(ステップ1306)。
超えていなければステップ1303から繰り返す。図1
3の例では、Nの値は12である。
FIG. 14 is a flow chart showing the restart processing when a series of mechanical operations are interrupted midway as described above. First, it is checked whether the interrupted M command value has been registered (step 1301). That the interrupted M command value has been registered means that the M command and the comment corresponding to each step of the series of machine operations have been registered as shown in FIG. If registered, the value of n is initialized to 1 in step 1302. The value of n indicates the order of a series of machine operations. MSUB indicated by 152 in FIG.
It is confirmed whether or not the value of is equal to the value of Mn (step 1303). The value of Mn is the value at the specified step of the M command corresponding to the series of machine operations defined in FIG. If they do not match, the value of n is incremented by 1 for comparison with the next data (step 130).
4). At this time, it is confirmed whether the value of n exceeds the number N of steps defined in FIG. 13 (step 1306).
If not exceeded, the process is repeated from step 1303. Figure 1
In the example of 3, the value of N is 12.

【0085】当然MSUBの値が図13で定義されたM
nの中に存在しなくてはならないが、図13でMnの値
を誤って定義する場合もあり得るのでこのためのエラー
チェックである。MSUBの値が図13で定義されたM
nの中に存在しない場合、エラーとする(ステップ13
06)。
Naturally, the value of MSUB is M defined in FIG.
Although it must exist in n, the value of Mn may be erroneously defined in FIG. 13, so this is an error check for this purpose. The value of MSUB is M defined in FIG.
If it does not exist in n, an error occurs (step 13).
06).

【0086】対応するMnの値が見つかれば、このMn
から出力すればよいのであるから、Mnの値を出力する
(ステップ1307)。実行されていない残りのM指令
値を出力するため、ステップ1307〜1309を繰り
返すことでステップ数Nまでのデータ出力を行う。
If the corresponding Mn value is found, this Mn
Therefore, the value of Mn is output (step 1307). In order to output the remaining M command values that have not been executed, steps 1307 to 1309 are repeated to output data up to the step number N.

【0087】ここで、Mnのデータ出力は前記復元プロ
グラムの作成時に行い、復元プログラムの一部として実
行させても良いし、NC操作盤11上あるいは機械操作
盤12上の、予め定められている操作ボタン(図示せ
ず)をオペレータが押したときに、上記出力する一連の
Mn指令値を実行させて残りの一連の機械動作を行わせ
るようにしてもよい。
Here, the data output of Mn may be performed at the time of creating the restoration program and executed as a part of the restoration program, or it may be predetermined on the NC operation panel 11 or the machine operation panel 12. When the operator presses an operation button (not shown), the series of Mn command values output as described above may be executed to perform the remaining series of mechanical operations.

【0088】[0088]

【発明の効果】請求項1乃至請求項7に係る数値制御工
作機械によれば、加工プログラムの実行をを中断させ、
オペレータが任意の割り込み処理を行った後、加工プロ
グラムを中断位置より再実行させる際、中断時と再実行
時の機械の状態を比較して機械の状態を中断時の状態に
戻せるように復元プログラムを自動生成するため、オペ
レータは何の制約も受けずに加工プログラムの再開処理
を行うことが可能である。
According to the numerically controlled machine tool of the first to seventh aspects, execution of the machining program is interrupted,
After the operator performs an arbitrary interrupt process, when the machining program is re-executed from the interrupted position, a restoration program that compares the machine state at the time of interruption and the machine state at the time of re-execution so that the machine state can be returned to the state at the time of interruption Since it is automatically generated, the operator can perform the resuming process of the machining program without any restriction.

【0089】さらに、中断時のNC工作機械の状態を表
示可能としたことで、中断時点におけるNC工作機械の
状態をオペレータが容易に把握することが可能となり、
さらにはこの状態を画面から修正可能としたことで、再
開時の融通性を大幅に向上させることができる。
Further, since the state of the NC machine tool at the time of interruption can be displayed, the operator can easily grasp the state of the NC machine tool at the time of interruption,
Furthermore, by making it possible to correct this state from the screen, it is possible to greatly improve the flexibility when restarting.

【0090】また、自動生成された復元プログラムをオ
ペレータが自在に修正することが可能であるので、中断
時及び再開時の状況に応じた最適な復元処理が可能とな
る。
Further, since the operator can freely modify the automatically generated restoration program, it is possible to perform the optimal restoration processing according to the situation at the time of interruption and at the time of restart.

【0091】また、指令されたM指令をグループに分類
し、各グループに対して指令されたM指令を監視するこ
とで、機械の状態を認識することが可能となり、各M指
令に対応してコメントを付加できるので、容易にオペレ
ータが機械状態を把握できるようになる。
Further, by classifying the commanded M commands into groups and monitoring the commanded M commands for each group, it becomes possible to recognize the state of the machine, and to correspond to each M command. Since a comment can be added, the operator can easily grasp the machine state.

【0092】さらに、サブプログラムの繰り返し回数と
その実行回数が修正可能であり、必要によってはプログ
ラムの実行位置さえも修正可能であるので、多重のネス
ティングを有する構造の複雑な加工プログラムのサブプ
ログラムの途中から、しかも複数回の繰り返しの途中か
ら実行させるような制御も自在に行える。
Furthermore, since the number of times the subprogram is repeated and the number of times the subprogram is executed can be modified, and even the execution position of the program can be modified if necessary, the subprogram of a complicated machining program having a structure with multiple nesting can be modified. It is possible to freely perform control such that the process is executed from the middle, and also from the middle of a plurality of repetitions.

【0093】また、一連の機械動作の途中で機械が停止
したような場合でも一連の機械動作中どこで停止したか
が認識可能となり、かつ中断要因を除去した後容易に機
械を復旧させることが可能となった。
Further, even when the machine stops during the series of machine operations, it is possible to recognize where the machine stopped during the series of machine operations, and the machine can be easily restored after removing the cause of interruption. Became.

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

【図1】 本発明の一実施例を示す説明図である。FIG. 1 is an explanatory diagram showing an embodiment of the present invention.

【図2】 NC加工プログラムの実行位置を示すテーブ
ルの説明図である。
FIG. 2 is an explanatory diagram of a table showing execution positions of an NC machining program.

【図3】 実行時のその他の情報を示すテーブルの説明
図である。
FIG. 3 is an explanatory diagram of a table showing other information at the time of execution.

【図4】 M指令の状態を示すテーブルの説明図であ
る。
FIG. 4 is an explanatory diagram of a table showing states of M commands.

【図5】 NC加工プログラムの実行状況を示す例の図
である。
FIG. 5 is a diagram of an example showing an execution status of an NC machining program.

【図6】 M指令のグループ化の指定をおこなう画面表
示例を示す図である。
FIG. 6 is a diagram showing an example of a screen display for designating grouping of M commands.

【図7】 M指令の各グループの値の更新方法を示すフ
ローチャートである。
FIG. 7 is a flowchart showing a method of updating the value of each group of M commands.

【図8】 中断後、加工を再開する際の手順を示すフロ
ーチャートである。
FIG. 8 is a flowchart showing a procedure for resuming machining after interruption.

【図9】 NC操作盤の画面上の表示例を示す図であ
る。
FIG. 9 is a diagram showing a display example on the screen of the NC operation panel.

【図10】 復元用プログラム生成を示すフローチャー
トである。
FIG. 10 is a flowchart showing restoration program generation.

【図11】 中断位置に工具を戻す工具軌跡の例を示す
図である。
FIG. 11 is a diagram showing an example of a tool path for returning a tool to an interruption position.

【図12】 復元プログラムを画面上に表示させた例を
示す図である。
FIG. 12 is a diagram showing an example in which a restoration program is displayed on the screen.

【図13】 一連の機械動作に対応するM指令を定義し
たテーブルを示す図である。
FIG. 13 is a diagram showing a table defining M commands corresponding to a series of machine operations.

【図14】 一連の機械動作時の再開処理フローチャー
トである。
FIG. 14 is a restart processing flowchart during a series of machine operations.

【図15】 NC加工プログラムのメインプログラムと
サブプログラム構成例を示す図である。
FIG. 15 is a diagram showing a configuration example of a main program and a sub program of the NC machining program.

【図16】 NC加工プログラムの中断時の状況を示す
例の図である。
FIG. 16 is a diagram of an example showing a situation when the NC machining program is interrupted.

【図17】 内蔵型PC付きCNCを使用したCNC工
作機械の概要図である。
FIG. 17 is a schematic diagram of a CNC machine tool using a built-in PC-attached CNC.

【図18】 補助機能信号のインターフェースの説明図
である。
FIG. 18 is an explanatory diagram of an interface for auxiliary function signals.

【図19】 M指令処理動作のタイームチャートであ
る。
FIG. 19 is a time chart of an M command processing operation.

【図20】 加工プログラムの作成から加工物の検査ま
での流れを示す図である。
FIG. 20 is a diagram showing a flow from creation of a machining program to inspection of a workpiece.

【図21】 NC部と数値制御工作機械の内部状態を示
す説明図である。
FIG. 21 is an explanatory diagram showing internal states of the NC unit and the numerically controlled machine tool.

【図22】 NC部と数値制御工作機械の内部状態の一
例を示す説明図である。
FIG. 22 is an explanatory diagram showing an example of internal states of the NC unit and the numerically controlled machine tool.

【図23】 中断したNC加工プログラムを再開させる
場合の説明図である。
FIG. 23 is an explanatory diagram for restarting the interrupted NC machining program.

【図24】 工具交換装置(ATC)の一例を示す説明
図である。
FIG. 24 is an explanatory diagram showing an example of a tool changer (ATC).

【図25】 工具交換の一連の動作を示すフローチャー
トである。
FIG. 25 is a flowchart showing a series of operations for tool exchange.

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

1 NC部 2 プログラマブルコントローラ(PC)部 3 入出力回路 4 マンマシン制御部 5 補助指令制御部 6 軸移動制御部 10 CNC部 11 NC操作盤 12 機械操作盤 13 強電回路 14 機械各部 15 スピンドルアンプ 16 スピンドルモータ 17 速度制御ユニット 18 送りモータ 20 工作機械部 30 ATC部 31 スピンドル部 32 工具交換用アーム 33 工具を把握するためのハンド 34 加工用の工具 35 工具交換位置にある工具交換用工具 36 工具交換用工具 100 加工図面 101 プログラマ 103 NC加工プログラム 110 オペレータ 131 中断位置 132 メインプログラム位置 133 メインプログラム実行回数 134 サブプログラム先頭位置 135 サブプログラム位置 136 サブプログラム実行回数 141 各軸の座標値 142 現在使用している工具の番号 143 工具位置オフセット値やノーズR補正値等の補
正指令値 144 F指令で与えられる工具の送り速度 145 S指令で与えられる主軸の回転数 146 G指令のモーダル値 147 M指令の状態 151 実行中のM指令値 152 M指令の終了したところまでを示す情報 153 M指令の各グループにおける最終指令値 160 画面表示例 161 M指令値 162 グループ化するグループ番号 166 コメント 170 表示画面 171 NC加工プログラムの中断位置を示す情報 172 メインプログラムの位置情報 173 サブプログラム1の位置情報 174 サブプログラム2の位置情報 175 プログラム番号 176 シーケンス番号 177 ブロック番号 178 繰り返し回数とその実行回数 179 サブプログラムの先頭のプログラム番号 180 サブプログラムの先頭のシーケンス番号 181 サブプログラムの先頭のブロック番号 182 中断時の各軸の座標値 183 使用工具、補正番号、送り速度、主軸の回転数 184 G指令のモーダル値 185 M指令の各グループにおいて最後に指定された
M指令 186 M指令値 187 コメント 188 カーソル
1 NC section 2 Programmable controller (PC) section 3 Input / output circuit 4 Man-machine control section 5 Auxiliary command control section 6 Axis movement control section 10 CNC section 11 NC operation panel 12 Machine operation panel 13 High-voltage circuit 14 Machine parts 15 Spindle amplifier 16 Spindle motor 17 Speed control unit 18 Feed motor 20 Machine tool section 30 ATC section 31 Spindle section 32 Tool exchange arm 33 Hand for grasping tool 34 Tool for machining 35 Tool exchange tool at tool exchange position 36 Tool exchange Tool 100 Machining drawing 101 Programmer 103 NC machining program 110 Operator 131 Interruption position 132 Main program position 133 Main program execution count 134 Subprogram start position 135 Subprogram position 136 Subprogram execution Number 141 Coordinate value of each axis 142 Number of tool currently used 143 Correction command value such as tool position offset value and nose R correction value 144 Tool feed speed given by F command 145 Spindle rotation given by S command Number 146 G modal value of G command 147 M command state 151 M command value being executed 152 Information indicating the end of M command 153 Final command value in each group of M command 160 Screen display example 161 M command value 162 group Group number to be converted 166 Comment 170 Display screen 171 Information indicating the interrupted position of NC machining program 172 Position information of main program 173 Position information of subprogram 1 174 Position information of subprogram 2 175 Program number 176 Sequence number 177 Block number 178 Repeat Times And its execution count 179 Program number at the beginning of the subprogram 180 Sequence number at the beginning of the subprogram 181 Block number at the beginning of the subprogram 182 Coordinate value of each axis at the time of interruption 183 Tool used, compensation number, feed speed, spindle rotation Number 184 Modal value of G command 185 M command specified last in each group of M command 186 M command value 187 Comment 188 Cursor

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 加工プログラムに基づいて加工を行う数
値制御工作機械において、実行中の加工プログラムを中
断させる中断手段と、中断時の数値制御工作機械の状態
を記憶する記憶手段と、加工プログラムを途中から再実
行させる再開手段と、再実行時の数値制御工作機械の状
態を認識する認識手段と、中断時の数値制御工作機械の
状態と再実行時の状態を比較し中断時の工作機械の状態
に戻すための再開処理用プログラムを生成する生成手段
とを備えたことを特徴とする数値制御工作機械。
1. In a numerically controlled machine tool that performs machining based on a machining program, interruption means for interrupting the machining program being executed, storage means for storing the state of the numerically controlled machine tool at the time of interruption, and a machining program. Resuming means for re-execution from the middle, recognition means for recognizing the state of the numerically controlled machine tool at the time of re-execution, and comparison of the state of the numerically controlled machine tool at the time of interruption and the state at the time of re-execution A numerically controlled machine tool comprising: a generation unit that generates a restart processing program for returning to a state.
【請求項2】 中断時の数値制御工作機械の状態を画面
上に表示させる表示手段を備えたことを特徴とする請求
項1記載の数値制御工作機械。
2. The numerically controlled machine tool according to claim 1, further comprising display means for displaying a state of the numerically controlled machine tool at the time of interruption on a screen.
【請求項3】 生成された再開処理用プログラムをオペ
レータが修正する修正手段を備えたことを特徴とする請
求項1記載の数値制御工作機械。
3. The numerically controlled machine tool according to claim 1, further comprising modifying means for modifying the generated restart processing program by an operator.
【請求項4】 表示手段により画面上に表示された中断
時の数値制御工作機械の状態をオペレータが変更する変
更手段を備えたことを特徴とする請求項2記載の数値制
御工作機械。
4. The numerically controlled machine tool according to claim 2, further comprising changing means for changing the state of the numerically controlled machine tool at the time of interruption displayed on the screen by the display means.
【請求項5】 各補助指令に対応したメッセージデータ
を設定記憶する手段と、実行された補助指令に対応する
現在の数値制御工作機械の状態をメッセージデータとし
て表示する表示手段を備えたことを特徴とする数値制御
工作機械。
5. A means for setting and storing message data corresponding to each auxiliary instruction, and a display means for displaying the current state of the numerically controlled machine tool corresponding to the executed auxiliary instruction as message data. Numerically controlled machine tool.
【請求項6】 ネスト構造を有する加工プログラムを実
行可能な数値制御工作機機において、実行中の加工プロ
グラムの実行ブロック位置を監視する監視手段と、実行
中の加工プログラムのネスト構造を表示する表示手段
と、前記表示手段に表示された加工プログラムのネスト
構造を修正する修正手段とを備えたことを特徴とする数
値制御工作機械。
6. A numerical control machine tool capable of executing a machining program having a nest structure, monitoring means for monitoring the execution block position of the machining program being executed, and a display for displaying the nest structure of the machining program being executed. A numerically controlled machine tool comprising: means and a correction means for correcting the nest structure of the machining program displayed on the display means.
【請求項7】 予め定められた一連の機械動作の全体を
1つの補助指令で指令することも、前記予め定められた
一連の機械動作の各々の動作を個別の補助指令で指令す
ることも可能な数値制御工作機械において、前記一連の
機械動作をまとめて指令する1つの補助指令を実行中に
動作が中断された場合、前記一連の機械動作中どの動作
で中断したかを判別する判別手段と、前記判別手段で判
別された中断動作以降の動作を各個別の一連の補助指令
で指令実行する手段とを備えたことを特徴とする数値制
御工作機械。
7. The entire series of predetermined machine operations can be commanded by one auxiliary command, or each operation of the predetermined series of machine operations can be commanded by individual auxiliary commands. In a numerically controlled machine tool, when an operation is interrupted during execution of one auxiliary command for collectively instructing the series of machine operations, a determining means for determining which operation is interrupted during the series of machine operations. A numerically controlled machine tool comprising: means for executing an operation after the interruption operation determined by the determination means by a series of individual auxiliary commands.
JP34878192A 1992-12-28 1992-12-28 Numerically controlled machine tools Expired - Lifetime JP2998473B2 (en)

Priority Applications (12)

Application Number Priority Date Filing Date Title
JP34878192A JP2998473B2 (en) 1992-12-28 1992-12-28 Numerically controlled machine tools
EP93121024A EP0606649B1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method to re-execute a machining program after it has been stopped
EP97103235A EP0782056B1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
DE69328266T DE69328266T2 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
DE69317540T DE69317540T2 (en) 1992-12-28 1993-12-28 Numerical control for a machine tool and method for continuing a machining program after it has been interrupted
EP96119192A EP0766154B1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
DE69330144T DE69330144T2 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool
EP96119191A EP0766153A1 (en) 1992-12-28 1993-12-28 Numerically controlled machine tool and method
US08/429,783 US6202003B1 (en) 1992-12-28 1995-04-27 Numerically controlled machine tool and method
US08/625,076 US5793635A (en) 1992-12-28 1996-03-29 Numerically controlled machine tool and method
US08/668,718 US6397111B1 (en) 1992-12-28 1996-06-24 Numerically controlled machine tool and method
HK98109240A HK1008445A1 (en) 1992-12-28 1998-07-17 Numerically controlled machine tool and method to re-execute a machining program after it has been stopped

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34878192A JP2998473B2 (en) 1992-12-28 1992-12-28 Numerically controlled machine tools

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP20290499A Division JP3180805B2 (en) 1999-07-16 1999-07-16 Numerically controlled machine tools

Publications (2)

Publication Number Publication Date
JPH06202723A true JPH06202723A (en) 1994-07-22
JP2998473B2 JP2998473B2 (en) 2000-01-11

Family

ID=18399321

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34878192A Expired - Lifetime JP2998473B2 (en) 1992-12-28 1992-12-28 Numerically controlled machine tools

Country Status (1)

Country Link
JP (1) JP2998473B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305428A (en) * 1995-05-11 1996-11-22 Amada Co Ltd Method for restarting interrupted machining in nc machine
EP1672451A1 (en) 2004-12-20 2006-06-21 Fanuc Ltd State restoration for a numerical controller after interruption of processing
JP2008027261A (en) * 2006-07-24 2008-02-07 Sodick Co Ltd Numerically controlled machine tool and interrupt working method
EP2104013A2 (en) 2008-03-17 2009-09-23 Fanuc Ltd Numerical controller with machining restart function
JP2011158979A (en) * 2010-01-29 2011-08-18 Mori Seiki Co Ltd Method of and apparatus for controlling machine tool for restarting automatic operation
DE102014013063A1 (en) 2013-09-09 2015-03-12 Fanuc Corporation Numerical control device with program resumption function
WO2022004252A1 (en) * 2020-06-29 2022-01-06 Dmg森精機株式会社 Machine tool
CN115673575A (en) * 2022-10-27 2023-02-03 深圳市睿达科技有限公司 Power-off continuous processing control method based on time univariate recording
WO2023145241A1 (en) * 2022-01-25 2023-08-03 Dmg森精機株式会社 Numerical control apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007213241A (en) * 2006-02-08 2007-08-23 Fanuc Ltd Interruption workable numerically controlled machine tool
JP5893527B2 (en) * 2012-07-26 2016-03-23 ファナック株式会社 Numerical control device with a function to display the difference between machining interruption and resumption status

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305428A (en) * 1995-05-11 1996-11-22 Amada Co Ltd Method for restarting interrupted machining in nc machine
EP1672451A1 (en) 2004-12-20 2006-06-21 Fanuc Ltd State restoration for a numerical controller after interruption of processing
JP2008027261A (en) * 2006-07-24 2008-02-07 Sodick Co Ltd Numerically controlled machine tool and interrupt working method
JP4656432B2 (en) * 2006-07-24 2011-03-23 株式会社ソディック Numerically controlled machine tool and interrupt machining method
EP2104013A2 (en) 2008-03-17 2009-09-23 Fanuc Ltd Numerical controller with machining restart function
JP2011158979A (en) * 2010-01-29 2011-08-18 Mori Seiki Co Ltd Method of and apparatus for controlling machine tool for restarting automatic operation
DE102014013063A1 (en) 2013-09-09 2015-03-12 Fanuc Corporation Numerical control device with program resumption function
US9557732B2 (en) 2013-09-09 2017-01-31 Fanuc Corporation Numerical controller having program resuming function
DE102014013063B4 (en) * 2013-09-09 2018-01-04 Fanuc Corporation Numerical control device with program resumption function
WO2022004252A1 (en) * 2020-06-29 2022-01-06 Dmg森精機株式会社 Machine tool
JP2022016711A (en) * 2020-06-29 2022-01-24 Dmg森精機株式会社 Machine tool
WO2023145241A1 (en) * 2022-01-25 2023-08-03 Dmg森精機株式会社 Numerical control apparatus
CN115673575A (en) * 2022-10-27 2023-02-03 深圳市睿达科技有限公司 Power-off continuous processing control method based on time univariate recording

Also Published As

Publication number Publication date
JP2998473B2 (en) 2000-01-11

Similar Documents

Publication Publication Date Title
EP0766154B1 (en) Numerically controlled machine tool and method
JPH06202723A (en) Numerically controlled machine tool
JPH0390904A (en) Sequence controller
EP0171435B1 (en) Numerical control method
EP0521164B1 (en) Method of restarting operation of punch press machine and numerically controlled device
JP4216808B2 (en) Numerical controller
JP3180805B2 (en) Numerically controlled machine tools
US5940301A (en) Process and device for controlling a machine tool in particular, and EDM machine
JPH0370242B2 (en)
JPH02151909A (en) Control device for industrial machine
JPH055123B2 (en)
JP3758789B2 (en) Control device for punch press machine
JPH06282318A (en) Mumerically controlled machine tool
WO2023199408A1 (en) Numerical control device, and computer-readable storage medium
JP3854089B2 (en) Electric discharge machining program creation method and apparatus
WO2023058085A1 (en) Numerical control device
JP3487713B2 (en) Fast-forward moving speed control method and device
JP4208600B2 (en) NC machine tool
JP3464894B2 (en) Machine tool control method
JPH0218603A (en) Numerical controller
JPH10133727A (en) Method and device for controlling nc machine tool
JPH11212617A (en) Controller for plural working programs
JP2022047702A (en) Machining program optimization device and method thereof
JP2699788B2 (en) Wire electric discharge machine
JPS6249514A (en) Numerical controller