JP3465243B2 - Control device for numerically controlled machine tools - Google Patents

Control device for numerically controlled machine tools

Info

Publication number
JP3465243B2
JP3465243B2 JP02866097A JP2866097A JP3465243B2 JP 3465243 B2 JP3465243 B2 JP 3465243B2 JP 02866097 A JP02866097 A JP 02866097A JP 2866097 A JP2866097 A JP 2866097A JP 3465243 B2 JP3465243 B2 JP 3465243B2
Authority
JP
Japan
Prior art keywords
machining
block
time
execution
operation time
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.)
Expired - Fee Related
Application number
JP02866097A
Other languages
Japanese (ja)
Other versions
JPH10222218A (en
Inventor
智広 中島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Okuma Corp
Original Assignee
Okuma 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 Okuma Corp filed Critical Okuma Corp
Priority to JP02866097A priority Critical patent/JP3465243B2/en
Publication of JPH10222218A publication Critical patent/JPH10222218A/en
Application granted granted Critical
Publication of JP3465243B2 publication Critical patent/JP3465243B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrical Discharge Machining, Electrochemical Machining, And Combined Machining (AREA)
  • Numerical Control (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、数値制御工作機械
の制御装置に関し、特に放電加工機等の運転時間に伴い
実行ブロックを変更する手段を設けた数値制御工作機械
の制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device for a numerically controlled machine tool, and more particularly to a control device for a numerically controlled machine tool provided with means for changing an execution block according to an operating time of an electric discharge machine or the like.

【0002】[0002]

【従来の技術】放電加工は、加工液に浸された電極と被
加工物との間に放電を逐次発生させ、これに伴う被加工
物の熔融除去作用によって加工を行なうものである。通
常は、加工速度の速い粗加工条件から加工を開始し、所
定除去分を加工した後、順次面粗さの小さい加工条件に
切替えて加工する。こうして最終の仕上げ加工条件まで
実行した後に、加工を終了する。一般に、粗加工条件か
ら最終の仕上げ加工条件までの各加工条件について、主
に加工部の底方向に加工する「底加工」と、主に加工部
の側面方向を加工する「揺動加工」とを実施する。これ
ら加工は放電加工機の数値制御装置によって遂行される
が、このNCプログラムの簡単な一例を次に示して説明
する。
2. Description of the Related Art In electric discharge machining, electric discharge is sequentially generated between an electrode immersed in a machining liquid and a work piece, and the work is melted and removed to carry out machining. Usually, the processing is started from the rough processing condition with a high processing speed, and after the predetermined removal amount is processed, the processing conditions are sequentially switched to the processing conditions with the smaller surface roughness. After performing the final finishing processing conditions in this way, the processing is finished. Generally, for each machining condition from rough machining conditions to final finishing conditions, "bottom machining" is mainly performed in the bottom direction of the machined part and "oscillating machining" is mainly processed in the lateral direction of the machined part. Carry out. The machining is performed by the numerical control device of the electric discharge machine, and a simple example of this NC program will be described below.

【0003】NCプログラム例1: N010 G00 X0 Y0 Z5 N020 M150 N030 VAL=10 N040 E=VAL N050 G01 Z=-[8-VFSTP[VAL,3]] N060 G74 R=0.2-VSSTP[VAL,3] N070 VAL=VAL-1 N080 IF[VAL >= 3] GOTO N040 N090 M152 N100 G01 Z5 N110 M02NC program example 1: N010 G00 X0 Y0 Z5 N020 M150 N030 VAL = 10 N040 E = VAL N050 G01 Z =-[8-VFSTP [VAL, 3]] N060 G74 R = 0.2-VSSTP [VAL, 3] N070 VAL = VAL-1 N080 IF [VAL> = 3] GOTO N040 N090 M152 N100 G01 Z5 N110 M02

【0004】上記NCプログラムの”N”に続く数値は
シーケンス番号であり、以下このシーケンス番号毎に説
明する。シーケンス”N010”では座標(X,Y,
Z)=(0,0,5)に電極を移動し、シーケンス”N
020”のM150指令によって加工電源をオンする。
シーケンス”N030”のVALはNCプログラム内で
読書き可能な変数であり、ここでは粗加工条件を示す加
工条件固有番号”10”が代入される。シーケンス”N
040”ではアドレスキャラクタEに変数VALの値”
10”が代入され、これによって加工条件固有番号”1
0”に対応した加工条件が加工電源に指令される。次
に、シーケンス”N050”でZ指令量に基づいて底加
工を行ない、シーケンス”N060”でRを揺動拡大量
とした揺動加工を行なう。ここで、底加工では関数VF
STPで返される値を、揺動加工では関数VSSTPで
返される値をそれぞれ目標量に対して減算している。こ
れは各々の関数において、第1の引数に現在の加工条件
固有番号、第2の引数に最終の仕上げ加工条件固有番号
を与えることで、最終の仕上げ加工条件までに至る加工
取り代を演算するようになっており、関数VFSTPは
底加工に係る前記加工取り代を、関数VSSTPは揺動
加工に係る前記加工取り代をそれぞれ演算する。つま
り、シーケンス”N050”の底加工とシーケンス”N
060”の揺動加工において、以降の各加工条件の加工
取り代が残るように加工量が制限されている。次いで、
シーケンス”N070”で変数VALが「1」減じられ
る。シーケンス”N080”ではIF構文の[]内の値
が評価され、真である時、[]後のGOTO文が実行さ
れる。つまり、変数VALの値が最終の加工条件固有番
号である3以上である限り、再びシーケンス”N04
0”から実行が継続される。これにより、変数VALの
値が”10”から順次減算されて”3”となるまで、変
数VALが示す加工条件において底加工と揺動加工とが
実行される。なお、加工条件固有番号はその値が大きい
ほど面粗さの大きい粗加工条件を示し、その値が小さい
ほど面粗さの小さい仕上げ加工条件を示すようになって
いる。変数VALの値が3未満になると、シーケンス”
N080”のIF構文の[]内の評価値が偽となり、G
OTO文が実行されず、実行するNCブロックがシーケ
ンス”N090”に移る。シーケンス”N090”のM
151指令で加工電源をオフし、シーケンス”N10
0”で電極を加工開始位置まで退避する。最後に、シー
ケンス”N110”でプログラムの実行を終了する。
The numerical value following "N" in the NC program is a sequence number, and each sequence number will be described below. In the sequence "N010", the coordinates (X, Y,
Z) = (0,0,5), move the electrode to the sequence "N
The machining power supply is turned on by the M150 command of 020 ".
The VAL of the sequence “N030” is a variable that can be read and written in the NC program, and here the machining condition unique number “10” indicating the rough machining condition is substituted. Sequence "N
In the case of 040 ", the value of the variable VAL is added to the address character E"
10 "is substituted, and as a result, the processing condition unique number" 1 "
A machining condition corresponding to 0 "is commanded to the machining power source. Next, in sequence" N050 ", bottom machining is performed based on the Z command amount, and in sequence" N060 ", swing machining with R as the swing expansion amount is performed. Here, in bottom machining, the function VF
The value returned by STP is subtracted from the value returned by the function VSSTP in rocking machining. In each function, the machining allowance up to the final finishing machining condition is calculated by giving the current machining condition unique number to the first argument and the final finishing machining condition unique number to the second argument. The function VFSTP calculates the machining allowance for bottom machining, and the function VSSTP calculates the machining allowance for swing machining. That is, the bottom machining of the sequence "N050" and the sequence "N"
In the swing machining of "060", the machining amount is limited so that the machining allowance of each of the subsequent machining conditions remains.
The variable VAL is decremented by "1" in the sequence "N070". In the sequence "N080", the value in [] of the IF syntax is evaluated, and when true, the GOTO statement after [] is executed. That is, as long as the value of the variable VAL is 3 or more, which is the final machining condition unique number, the sequence “N04
The execution is continued from 0 ". As a result, the bottom machining and the swing machining are executed under the machining conditions indicated by the variable VAL until the value of the variable VAL is sequentially subtracted from" 10 "to become" 3 ". It should be noted that the machining condition unique number indicates a rough machining condition with a large surface roughness as its value increases, and a finish machining condition with a small surface roughness as its value decreases. When it becomes less than 3, the sequence "
The evaluation value in [] of the IF syntax of N080 "becomes false, and G
The OTO statement is not executed, and the NC block to be executed moves to the sequence “N090”. M of the sequence "N090"
The processing power is turned off by the 151 command, and the sequence “N10
The electrode is retracted to the machining start position at 0 ". Finally, the execution of the program is ended at sequence" N110 ".

【0005】図4は、従来の放電加工機の数値制御装置
のNCプログラム実行に係る要部ブロック図である。N
Cプログラム格納部1は、NCプログラム読込部2を介
して紙テープなどから読込んだNCプログラム、あるい
はNCプログラム編集部3で生成されたNCプログラム
を格納する。NCプログラム格納部1に記憶されたNC
プログラムの各NCブロックは、実行ブロック制御部4
によって逐次取り出され、NCブロック解釈部5に転送
される。NCブロック解釈部5はNCブロックの内容を
解釈し、機械動作などを伴う指令であればその旨をNC
ブロック実行部6に通知する。NCブロック実行部6
は、軸駆動装置7を介して電極9を移動したり、加工電
源8に加工条件に係る指令を行なったりする。なお、加
工電源8の出力は、電極9と被加工物10に接続されて
いる。またNCブロック解釈部5では、前記NCプログ
ラム例1のシーケンス”N080”で示したように、実
行するNCブロックの変更が生じた場合、次に実行する
シーケンス番号を実行ブロック制御部4に通知する。実
行ブロック制御部4はこの通知を受けると、NCプログ
ラム格納部1に格納されたNCプログラム中から前記シ
ーケンス番号”N040”を探索し、以降そのシーケン
ス番号が指し示すNCブロックから逐次NCブロックの
取り出しを行なう。
FIG. 4 is a block diagram of essential parts relating to execution of an NC program of a conventional numerical control device for an electric discharge machine. N
The C program storage unit 1 stores the NC program read from a paper tape or the like via the NC program reading unit 2 or the NC program generated by the NC program editing unit 3. NC stored in NC program storage unit 1
Each NC block of the program is executed by the execution block controller 4
Are sequentially taken out and transferred to the NC block interpretation unit 5. The NC block interpreting unit 5 interprets the contents of the NC block, and if the command involves a machine operation, the NC block interpreter 5
Notify the block execution unit 6. NC block execution unit 6
Moves the electrode 9 via the axis drive device 7 and gives a command to the machining power source 8 regarding machining conditions. The output of the machining power source 8 is connected to the electrode 9 and the workpiece 10. Further, in the NC block interpretation unit 5, as shown in the sequence "N080" of the NC program example 1, when the NC block to be executed is changed, the execution block control unit 4 is notified of the sequence number to be executed next. . Upon receiving this notification, the execution block control unit 4 searches the NC program stored in the NC program storage unit 1 for the sequence number "N040", and sequentially retrieves NC blocks from the NC block indicated by the sequence number. To do.

【0006】[0006]

【発明が解決しようとする課題】一般に、放電加工によ
る加工部の面粗さが小さいほど、後工程の磨き時間が短
縮できる。しかし、面粗さが小さい加工条件ほど加工速
度が指数的に減少し、放電加工に要する時間が長くな
る。そのため、放電加工に要する加工時間と得られる面
粗さの兼ね合いから、どの程度まで放電加工で仕上げる
のが良いかを決定しなければならない。ところが、放電
加工の所要時間は加工面積や加工形状に依存しており、
事前に加工時間を見積ることは容易でない。この結果、
放電加工でどの程度の面粗さまで仕上げるかは、経験と
勘に頼っているのが現状である。このような背景で加工
を行なうので、予定した加工時間になっても放電加工が
終了しなかったり、あるいは予定した加工時間前に加工
が終了し、特に夜間加工において稼働率が低下するとい
った問題がある。
Generally, the smaller the surface roughness of the machined portion by electric discharge machining, the shorter the polishing time in the post-process. However, the machining conditions with a smaller surface roughness exponentially reduce the machining speed, and the time required for electric discharge machining becomes longer. Therefore, it is necessary to decide to what extent electrical discharge machining should be finished in consideration of the machining time required for electrical discharge machining and the obtained surface roughness. However, the time required for electrical discharge machining depends on the machining area and machining shape,
It is not easy to estimate the processing time in advance. As a result,
At present, it depends on experience and intuition as to how much surface roughness can be finished by electrical discharge machining. Since machining is performed in such a background, there are problems that the electrical discharge machining does not end even when the scheduled machining time comes, or the machining ends before the scheduled machining time, and the operating rate decreases especially at night machining. is there.

【0007】なお、予定した加工時間になっても放電加
工が終了しない場合、加工途中でありながらオペレータ
によって運転が強制的に中断される場合が考えられる。
ここで、面粗さが小さい加工条件の加工過程で運転を中
断したとすれば、後工程での磨き作業もそれほど困難で
はなく、また、仕上げ加工条件の加工取り代が小さいた
め、加工寸法精度上も問題とはならない。しかし、まだ
面粗さが十分小さくない加工条件で運転が中断される
と、後工程の磨き作業が困難となり、かつ加工取り代が
多く残っているため加工寸法精度上、許容範囲を超えて
しまうという問題がある。
If the electric discharge machining is not completed even after the scheduled machining time, the operator may forcibly interrupt the operation during the machining.
Here, if the operation is interrupted in the machining process under the machining condition with a small surface roughness, the polishing work in the post process is not so difficult, and the machining allowance in the finishing machining condition is small, so the machining dimensional accuracy is small. The above does not matter either. However, if the operation is interrupted under the processing conditions where the surface roughness is not sufficiently small, the polishing work in the post process will be difficult and the machining allowance will be left over, so the processing dimensional accuracy will exceed the allowable range. There is a problem.

【0008】本発明は上述のような事情よりなされたも
のであり、本発明の目的は、予定した時間で放電加工が
終了し、工程管理が容易で機械の稼働率を上げることが
できる数値制御工作機械の制御装置を提供することにあ
る。
The present invention has been made under the circumstances as described above, and an object of the present invention is to perform numerical control in which electric discharge machining is completed at a scheduled time, process control is easy, and the operating rate of a machine can be increased. It is to provide a control device for a machine tool.

【0009】[0009]

【課題を解決するための手段】本発明は、電極と被加工
物の間に放電を逐次発生させて加工を行なう放電加工機
等の数値制御工作機械の制御装置に関するものであり、
本発明の上記目的は、数値制御装置の運転時間を計時す
る手段と、予定運転時間を設定する設定手段と、前記運
転時間が前記予定運転時間を経過した後のジャンプ先シ
ーケンス番号を記憶する記憶手段とを設け、前記運転時
間が前記予定運転時間以上となった時に、実行中のブロ
ックの実行を中断して前記ジャンプ先シーケンス番号よ
り実行を行なうことによって達成される。例えば、加工
電源オフや電極の退避などが記述されたシーケンスをジ
ャンプ先シーケンス番号で設定すれば、運転時間が予定
した時間に達した時に加工を終了することができる。
SUMMARY OF THE INVENTION The present invention relates to a control device for a numerically controlled machine tool such as an electric discharge machine which performs machining by sequentially generating an electric discharge between an electrode and a workpiece.
The above object of the present invention includes means for counting the operation time of the numerical control device, a setting means for setting a planned operation time, the luck
Rolling time provided a storage means for storing the jump destination sequence number after a lapse of said predetermined operating time, when the operating time has become the expected operation time or more, said interrupts the execution of the block in execution It is achieved by executing from the jump destination sequence number. For example, if a sequence in which the processing power is turned off or the electrode is retracted is set by the jump destination sequence number, the processing can be ended when the operation time reaches the scheduled time.

【0010】さらに、前記運転時間が前記予定運転時間
以上となった時に、実行中のブロックの実行を中断して
前記ジャンプ先シーケンス番号より実行を行なうことを
禁止又は許可する指令手段を設けることで、面粗さ並び
に加工寸法精度上問題となる過程の加工中に、加工を終
了しないようにすることができる。
Further, by providing a command means for prohibiting or permitting execution of the block from the jump destination sequence number by interrupting the execution of the block being executed when the operating time exceeds the planned operating time. It is possible to prevent the processing from being completed during the processing in the process that causes problems in surface roughness and processing dimensional accuracy.

【0011】[0011]

【発明の実施の形態】以下、図面に基づいて本発明の好
適な実施の形態について詳細に説明する。図1は、本発
明の数値制御工作機械の制御装置の一実施形態を示すブ
ロック構成を、図4に対応させて示すものである。同一
箇所には同一番号を付し、その説明を省略する。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a controller for a numerically controlled machine tool of the present invention, corresponding to FIG. The same parts are designated by the same reference numerals and the description thereof will be omitted.

【0012】NCプログラム格納部1に格納されたNC
プログラムの各NCブロックは、従来と同様に、順次実
行ブロック制御部4、NCブロック解釈部5、NCブロ
ック実行部6を経て指令が実行される。NCブロック解
釈部5からは、予定運転時間b及び時間比較許可情報d
が運転時間比較監視部21に送られる。一方、運転時間
計時部20は機械運転中の時間を累積し、運転時間aを
逐次更新すると共に、運転時間比較監視部21に送る。
そして、運転時間比較監視部21は送られて来る運転時
間aと予定運転時間bとを比較し、運転時間aが予定運
転時間b以上となった時、この旨を実行ブロック制御部
4に通知する。実行ブロック制御部4は、運転時間aが
予定運転時間b以上であることが運転時間比較監視部2
1から通知されると、NCブロック実行部6に対して現
在実行中のブロックの中断を行なうよう指示する。そし
て、NCプログラム格納部1に格納されたNCプログラ
ム中からジャンプ先シーケンス番号cを探索し、以降そ
のシーケンス番号が指し示すNCブロックから逐次取り
出しを行なう。なお、現在実行中のブロックの中断に際
して、揺動加工中の場合、NCブロック実行部6は中断
処理として電極を揺動の中心位置に戻す処理を行なう。
NC stored in NC program storage unit 1
In each NC block of the program, a command is executed via the sequential execution block control unit 4, the NC block interpretation unit 5, and the NC block execution unit 6 as in the conventional case. From the NC block interpretation unit 5, the planned operation time b and the time comparison permission information d
Is sent to the operating time comparison and monitoring section 21. On the other hand, the operation time counting unit 20 accumulates the time during machine operation, sequentially updates the operation time a, and sends it to the operation time comparison and monitoring unit 21.
Then, the operating time comparison / monitoring unit 21 compares the sent operating time a with the planned operating time b, and when the operating time a is equal to or longer than the planned operating time b, notifies the execution block control unit 4 to that effect. To do. The execution block control unit 4 determines that the operation time a is equal to or longer than the planned operation time b by comparing the operation time monitoring unit 2
When notified from 1, the NC block execution unit 6 is instructed to suspend the block currently being executed. Then, the NC program stored in the NC program storage unit 1 is searched for the jump destination sequence number c, and subsequently, the NC block indicated by the sequence number is sequentially fetched. Note that, when the block currently being executed is interrupted and the swing machining is being performed, the NC block execution unit 6 performs a process of returning the electrode to the center position of the swing as an interrupt process.

【0013】本発明の実施形態では、予定運転時間b及
びジャンプ先シーケンス番号cはNCプログラム内の専
用書式で設定変更可能としており、書式「VSKPT」
で予定運転時間bを、書式「VJPNO」でジャンプ先
シーケンス番号cをそれぞれ指令するようになってい
る。NCブロック解釈部5によって、NCブロック内に
それぞれの書式が現れたことを認識すると、NCブロッ
ク解釈部5は、予定運転時間b又はジャンプ先シーケン
ス番号cをそれぞれ更新する。また、予定運転時間b
は、図示しない入力装置を介してオペレータが変更可能
になっている。
In the embodiment of the present invention, the scheduled operation time b and the jump destination sequence number c can be set and changed in a dedicated format in the NC program, and the format "VSKPT" is set.
And the jump destination sequence number c in the format "VJPNO". When the NC block interpretation unit 5 recognizes that each format appears in the NC block, the NC block interpretation unit 5 updates the scheduled operation time b or the jump destination sequence number c, respectively. Also, the planned operating time b
Can be changed by an operator via an input device (not shown).

【0014】時間比較許可情報dは禁止状態と許可状態
のいずれかを示し、運転時間比較監視部21において、
時間比較許可情報dが禁止状態である時、運転時間aが
予定運転時間b以上になってもこの旨を実行ブロック制
御部4に通知しない。時間比較許可情報dはNCプログ
ラム内の専用書式で設定変更可能であり、本実施形態で
は書式「M180」で時間比較許可情報dを許可状態
に、書式「M181」で時間比較許可情報dを禁止状態
にする。NCブロック解釈部5が、M180指令又はM
181指令が現れたことを認識すると、NCブロック解
釈部5は時間比較許可情報dを書き換える。
The time comparison permission information d indicates either the prohibition state or the permission state.
When the time comparison permission information d is in the prohibited state, the execution block control unit 4 is not notified of this even if the driving time a exceeds the planned driving time b. The time comparison permission information d can be set and changed in a dedicated format in the NC program. In the present embodiment, the time comparison permission information d is permitted in the format “M180” and the time comparison permission information d is prohibited in the format “M181”. Put in a state. The NC block interpretation unit 5 uses the M180 command or the M180 command.
When recognizing that the 181 command has appeared, the NC block interpretation unit 5 rewrites the time comparison permission information d.

【0015】次に、本発明の実施形態に係る運転時間比
較監視部21と実行ブロック制御部4の動作を、フロー
チャートを用いて説明する。図2は運転時間比較監視部
21のフローチャートである。予定運転時間bが設定さ
れている時に(ステップS10)、且つ運転時間aが予
定運転時間b以上であって(ステップS11)、且つ時
間比較許可情報dが許可状態である時(ステップS1
2)、実行ブロック制御部4に対して、運転時間が予定
運転時間以上である旨を通知する(ステップS13)。
ステップS10〜S12のいずれかの条件が満たされな
いと、運転時間比較監視部21は運転時間が予定運転時
間以上である旨を実行ブロック制御部4に通知しない。
Next, the operations of the operating time comparison / monitoring section 21 and the execution block control section 4 according to the embodiment of the present invention will be described with reference to a flowchart. FIG. 2 is a flowchart of the operating time comparison and monitoring unit 21. When the planned driving time b is set (step S10), the driving time a is equal to or longer than the planned driving time b (step S11), and the time comparison permission information d is in the permitted state (step S1).
2) The execution block controller 4 is notified that the operation time is equal to or longer than the planned operation time (step S13).
If any of the conditions of steps S10 to S12 is not satisfied, the driving time comparison monitoring unit 21 does not notify the execution block control unit 4 that the driving time is equal to or longer than the planned driving time.

【0016】図3は実行ブロック制御部4のフローチャ
ートである。運転時間が予定加工時間以上である旨が運
転時間比較監視部21から通知されている時(ステップ
S20)、NCブロック実行部6に対して実行ブロック
の中断を指示し(ステップS21)、NCプログラム中
からジャンプ先シーケンス番号cを探索して、次に取り
出すNCブロックを変更する(ステップS22)。そし
て、NCプログラム格納部1から次に実行するNCブロ
ックを取り出し、このNCブロックをNCブロック解釈
部5に転送する(ステップS26)。ステップS20
で、運転時間が予定加工時間以上である旨が運転時間比
較監視部21から通知されていない時には、NCブロッ
ク解釈部5からシーケンス番号が通知されていないかを
判断し(ステップS23)、シーケンス番号が通知され
ている場合は、この通知されたシーケンス番号をNCプ
ログラム中から探索し、次に取り出すNCブロックを変
更する(ステップS24)。その後、ステップS26を
前記同様に実行する。ステップS20、S23で共に偽
であった場合には、先に転送したNCブロックの実行が
終了した後に、NCプログラム格納部1から次のNCブ
ロックを取り出し、NCブロック解釈部5に転送する
(ステップS25、S26)。
FIG. 3 is a flow chart of the execution block controller 4. When the operation time comparison monitoring unit 21 notifies that the operation time is equal to or longer than the planned processing time (step S20), the NC block execution unit 6 is instructed to interrupt the execution block (step S21), and the NC program is executed. The jump destination sequence number c is searched from the inside, and the NC block to be extracted next is changed (step S22). Then, the NC block to be executed next is taken out from the NC program storage unit 1, and this NC block is transferred to the NC block interpretation unit 5 (step S26). Step S20
Then, when the operation time comparison monitoring unit 21 has not notified that the operation time is equal to or longer than the scheduled processing time, it is determined whether or not the sequence number has been notified from the NC block interpretation unit 5 (step S23), and the sequence number. Is notified, the NC program is searched for the notified sequence number and the NC block to be extracted next is changed (step S24). Then, step S26 is executed in the same manner as described above. If both of the steps S20 and S23 are false, the next NC block is taken out from the NC program storage unit 1 and transferred to the NC block interpretation unit 5 after the execution of the previously transferred NC block is completed (step S20). S25, S26).

【0017】以下、本発明にかかるNCプログラムの例
2を示し、その要部動作を説明する。但し、従来と同じ
ブロックには同一のシーケンス番号を付し、その説明を
省略する。
An example 2 of the NC program according to the present invention will be shown below, and the operation of the essential parts will be described. However, the same block numbers as in the related art are assigned the same sequence numbers and the description thereof is omitted.

【0018】NCプログラム例2: N010 G00 X0 Y0 Z5 N020 M150 N021 M181 N022 VJPNO=N090 N023 VSKPT=600 N030 VAL=10 N040 E=VAL N041 IF[VAL < 5] M180 N050 G01 Z=-[8-VFSTP[VAL,3]] N060 G74 R=0.2-VSSTP[VAL,3] N070 VAL=VAL-1 N080 IF[VAL >= 3] GOTO N040 N090 M152 N100 G01 Z5 N110 M02NC program example 2: N010 G00 X0 Y0 Z5 N020 M150 N021 M181 N022 VJPNO = N090 N023 VSKPT = 600 N030 VAL = 10 N040 E = VAL N041 IF [VAL <5] M180 N050 G01 Z =-[8-VFSTP [VAL, 3]] N060 G74 R = 0.2-VSSTP [VAL, 3] N070 VAL = VAL-1 N080 IF [VAL> = 3] GOTO N040 N090 M152 N100 G01 Z5 N110 M02

【0019】シーケンス”N020”までのシーケンス
で加工の準備が終了すると、まずシーケンス”N02
1”のM181指令で時間比較許可情報dを禁止状態に
する。次にシーケンス”N022”で加工終了後に実行
すべきジャンプ先シーケンス番号としてシーケンス”N
090”を指定し、シーケンス”N023”で予定運転
時間bを指令する。本実施形態ではVSKPT指令の単
位として”分”を採用しており、上記プログラム例2に
おいて、予定運転時間として600分が設定されたこと
になる。その後、従来のプログラム同様各加工条件につ
いて底加工と揺動加工とが実施されるが、加工条件固有
番号を示す変数VALが”5”より小さくなると、シー
ケンス”N041”のIF構文の評価値が真となり、M
180指令を実行して時間比較許可情報dを許可状態に
変更する。このようにして、加工条件固有番号が4以下
になった状態でかつ運転時間が600分を超えると、そ
の時点で実行中のブロックを中断し、シーケンス番号”
N090”以降のシーケンスが実行され、運転が終了す
る。
When the preparation for machining is completed in the sequence up to the sequence "N020", first the sequence "N02"
The time comparison permission information d is prohibited by the M181 command of "1". Next, in the sequence "N022", the sequence "N" is set as the jump destination sequence number to be executed after the machining is completed.
090 "is designated and the scheduled operation time b is commanded by the sequence" N023 ". In this embodiment," minute "is adopted as the unit of the VSKPT command, and in the above program example 2, the planned operation time is 600 minutes. After that, bottom machining and swing machining are carried out for each machining condition as in the conventional program, but when the variable VAL indicating the machining condition unique number becomes smaller than "5", the sequence "N041" IF syntax evaluation value is true, M
180 command is executed to change the time comparison permission information d to the permission state. In this way, if the machining condition unique number is 4 or less and the operating time exceeds 600 minutes, the block currently being executed is interrupted and the sequence number "
The sequence after N090 "is executed, and the operation ends.

【0020】以上のような構成とすることで、予定した
時間で加工を終了することができると共に、加工結果上
不都合が生ずる状態での加工終了を禁止することもでき
る。なお、以上の実施形態では運転時間計時部20で運
転時間を累積したが、これを加工中の時間に限定して時
間を累積してもよい。また、現在日付と現在時刻を取得
する手段を備える制御装置であれば、予定運転時間の代
わりに加工を終了したい日付と時刻を設定するようにし
て、これを比較監視することは容易に類推可能である。
また本発明は放電加工に係る制御装置として説明した
が、金型加工における加工プロセスは、放電加工に限ら
ず粗加工から仕上げ加工に順次切替えて加工するので、
放電加工機以外の数値制御工作機械の制御装置にも適用
することができる。例えばマシニングセンタで金型を製
作する場合、仕上げ工程に移行するに従って、加工軌跡
の間隔(いわゆる「ピック」)が小さくなる。ピックが
小さいと相対的に総加工軌跡長が長くなり、結果として
加工時間が長くなる。反面、仕上げ工程では加工取り代
が小さいので、必要十分な面粗さの工程が終了した以降
で加工を中断しても、被加工物の寸法誤差は許容範囲に
収まる。従って、本発明に係る制御装置をマシニングセ
ンタに適用すれば、放電加工機で得られる効果と同様の
効果を得ることができる。
With the above-described structure, it is possible to finish the machining at a scheduled time and also to prohibit the machining from being finished in a state where the machining result causes inconvenience. In the above embodiment, the operation time counting unit 20 accumulates the operation time, but the operation time may be limited to the time during processing and the time may be accumulated. In addition, if it is a control device equipped with a means for acquiring the current date and the current time, it is easy to analogize it by setting the date and time at which the machining is to be finished instead of the scheduled operation time, and comparing and monitoring this. Is.
Further, the present invention has been described as a control device relating to electric discharge machining, but the machining process in the die machining is not limited to electric discharge machining, and since the machining is sequentially switched from rough machining to finish machining,
It can also be applied to control devices for numerically controlled machine tools other than electric discharge machines. For example, when a die is manufactured by a machining center, the intervals of processing loci (so-called "picks") become smaller as the process shifts to the finishing process. If the pick is small, the total machining path length becomes relatively long, and as a result, the machining time becomes long. On the other hand, since the machining allowance is small in the finishing process, even if the machining is interrupted after the process of the necessary and sufficient surface roughness is completed, the dimensional error of the workpiece falls within the allowable range. Therefore, when the control device according to the present invention is applied to a machining center, it is possible to obtain the same effect as that obtained by an electric discharge machine.

【0021】[0021]

【発明の効果】以上のように本発明の数値制御工作機械
の制御装置によれば、仕上げる面粗さと加工時間の兼ね
合いを考慮しなくても必要十分な予定運転時間を設定す
ることで、予定した時間で加工が終了し、工程管理が容
易でまた機械の稼働率を上げることができる。
As described above, according to the controller of the numerically controlled machine tool of the present invention, it is possible to set the required and sufficient scheduled operation time without considering the balance between the surface roughness to be finished and the machining time. Machining is completed in a certain time, process management is easy, and the operating rate of the machine can be increased.

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

【図1】本発明の放電加工機の制御装置の一実施形態を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a control device for an electric discharge machine of the present invention.

【図2】本発明の放電加工機の制御装置の一実施形態に
おける運転時間比較監視部の動作を示すフローチャート
である。
FIG. 2 is a flowchart showing the operation of an operating time comparison and monitoring section in an embodiment of the control device for an electric discharge machine of the present invention.

【図3】本発明の放電加工機の制御装置の一実施形態に
おける実行ブロック制御部の動作を示すフローチャート
である。
FIG. 3 is a flowchart showing an operation of an execution block controller in one embodiment of the controller for the electric discharge machine of the present invention.

【図4】従来の放電加工機の制御装置の一例を示すブロ
ック図である。
FIG. 4 is a block diagram showing an example of a control device for a conventional electric discharge machine.

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

1 NCプログラム格納部 2 NCプログラム読込部 3 NCプログラム編集部 4 実行ブロック制御部 5 NCブロック解釈部 6 NCブロック実行部 7 軸駆動装置 8 加工電源 9 電極 10 被加工物 20 運転時間計時部 21 運転時間比較監視部 1 NC program storage 2 NC program reading section 3 NC program editor 4 Execution block controller 5 NC block interpreter 6 NC block execution unit 7-axis drive 8 Processing power supply 9 electrodes 10 Workpiece 20 Driving time counter 21 Operating time comparison monitor

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 数値制御工作機械の運転時間を計時する
計時手段と、予定運転時間を設定する設定手段と、前記
運転時間が前記予定運転時間を経過した後のジャンプ先
シーケンス番号を記憶する記憶手段とを有し、前記運転
時間が前記予定運転時間以上となった時に、実行中のブ
ロックの実行を中断して前記ジャンプ先シーケンス番号
より実行を行なうことを特徴とする数値制御工作機械の
制御装置。
A counting means for counting the 1. A numerically controlled machine tool operation time, setting means for setting a planned operation time, the
And a storage means for operation time storing jump destination sequence number after a lapse of said predetermined operating time, when the operating time has become the expected operation time or suspends the execution of the block in execution A control device for a numerically controlled machine tool, wherein execution is performed from the jump destination sequence number.
【請求項2】 前記運転時間が前記予定運転時間以上と
なった時に、実行中のブロックの実行を中断して前記ジ
ャンプ先シーケンス番号より実行を行なうことを禁止又
は許可する指令手段を設けた請求項1に記載の数値制御
工作機械の制御装置。
When wherein becomes the operation time said predetermined operating time or more, provided an instruction means for inhibiting or allowed to interrupt the execution of the block in execution the execution from the jump destination sequence number according Item 1. A control device for a numerically controlled machine tool according to Item 1.
JP02866097A 1997-02-13 1997-02-13 Control device for numerically controlled machine tools Expired - Fee Related JP3465243B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02866097A JP3465243B2 (en) 1997-02-13 1997-02-13 Control device for numerically controlled machine tools

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02866097A JP3465243B2 (en) 1997-02-13 1997-02-13 Control device for numerically controlled machine tools

Publications (2)

Publication Number Publication Date
JPH10222218A JPH10222218A (en) 1998-08-21
JP3465243B2 true JP3465243B2 (en) 2003-11-10

Family

ID=12254666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02866097A Expired - Fee Related JP3465243B2 (en) 1997-02-13 1997-02-13 Control device for numerically controlled machine tools

Country Status (1)

Country Link
JP (1) JP3465243B2 (en)

Also Published As

Publication number Publication date
JPH10222218A (en) 1998-08-21

Similar Documents

Publication Publication Date Title
US6397111B1 (en) Numerically controlled machine tool and method
US20060149411A1 (en) Numerical controller
CN101303585A (en) Controller
US4513380A (en) Method of tool recovery in threadcutting apparatus
JP6333656B2 (en) Machining time prediction device that predicts machining time after NC program modification
JP2004326618A (en) Numerical control device of machine tool
KR930011227B1 (en) Numerical controller
KR930010589B1 (en) Cutting tool stop control apparatus
JP3465243B2 (en) Control device for numerically controlled machine tools
JPH0370242B2 (en)
JPS599706A (en) Numerical controlling system
WO2022196622A9 (en) Numerical control device
CN108334042A (en) Numerical control device
WO2024105821A1 (en) Numerical control device and computer-readable storage medium
JPS60228056A (en) Method of control for determining tool approach position in milling work
KR100206135B1 (en) Works cutting control method
CN109634214B (en) Numerical controller
JPH07253810A (en) Numerical control processing unit
JPS61152351A (en) Machine tool with function of returning to original position
JP2612364B2 (en) Numerical control unit
JPS62130412A (en) Numerical control method
JPS6240722B2 (en)
JPH1190770A (en) Control method for machine tool
JP4031571B2 (en) NC lathe control device
EP0700745A1 (en) Jump controlling method for die sinking electric discharge machine

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees