JPS5862702A - Numerical controlling method - Google Patents

Numerical controlling method

Info

Publication number
JPS5862702A
JPS5862702A JP16124281A JP16124281A JPS5862702A JP S5862702 A JPS5862702 A JP S5862702A JP 16124281 A JP16124281 A JP 16124281A JP 16124281 A JP16124281 A JP 16124281A JP S5862702 A JPS5862702 A JP S5862702A
Authority
JP
Japan
Prior art keywords
tool
memory
processing
program
subprogram
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
JP16124281A
Other languages
Japanese (ja)
Other versions
JPH0444281B2 (en
Inventor
Ryoichiro Nozawa
野沢 量一郎
Hideaki Kawamura
川村 英昭
Mitsuto Miyata
宮田 光人
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
Fujitsu Fanuc Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp, Fujitsu Fanuc Ltd filed Critical Fanuc Corp
Priority to JP16124281A priority Critical patent/JPS5862702A/en
Publication of JPS5862702A publication Critical patent/JPS5862702A/en
Publication of JPH0444281B2 publication Critical patent/JPH0444281B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of program data in numerical form
    • G05B19/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34365After interrupt of operation, do other task and go on - resume operation
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/37Measurements
    • G05B2219/37245Breakage tool, failure
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50103Restart, reverse, return along machined path, stop

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To quickly process failures, by immediately interrupting processing and saving the program during the execution of a processing program if a failure takes place, and returning to the original program again after the end of processing for the failure. CONSTITUTION:An input control circuit ICT reads out a program of a main memory NCM normally and gives an output to a decoder DEC, and when a tool broken signal TLBS is inputted to said circuit ICT and an operation control circuit OPCN via a power supply circuit PWC, a pulse distribution stop signal PDI is outputted to a pulse distributor PDC, the circuit ICT stops the readout of a memory NCM to read out a subprogram in response to the TLBS from a sub-memory UMM to an OPCN via a DEC, and a data memory DMM is saved to a save memory SMM, allowing to replace a tool with a subprogram. After the replacement of a tool, the data memory DMM is read out from the save memory SMM and the execution of the stopped main program is restarted. Thus, the processing of failures can be performed quickly.

Description

【発明の詳細な説明】 本発明は数値制御方法に係り、特に加工中に特定の信号
たとえば工具破損等の異常信号が発生したとさ、該加工
を中断すると共に該特定の信号に応じた数値制御処理t
−夷実行せ、該処理終了後に加工上再開することができ
る数値制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a numerical control method, in particular, when a specific signal such as an abnormal signal such as tool breakage occurs during machining, the machining is interrupted and the numerical control method is adjusted according to the specific signal. Control processing t
- It relates to a numerical control method that can be executed and restarted for machining after the processing is completed.

加工ブロクラムによる加工中において、工具破損等の異
常状態が生じた場合、通常オペノー夕は加工vIIちに
停止させ、該破損工具tワークに当接しないようにして
手動連続送りにより所定の工具交換位置迄移動させ、工
具交換後扉ニブログラムの最初から再度加工を実行し、
或い社工具破損位置へ工具を位置決め後に該位置から加
工を再開していた。しかしながら、か\る従来の手動を
介在させる方法においては異常状態発生から加工が再開
される迄に相当の時間が必要となるばかりか、操作が煩
雑となり、しかも自動的に上記処理を実行しようとする
と相当のハードウェアが必要となる欠点があった。
If an abnormal condition such as a tool breakage occurs during machining using a machining block, the operator normally stops the machining immediately, and moves the damaged tool to the predetermined tool exchange position by manual continuous feeding while avoiding contact with the workpiece. After changing the tool, perform machining again from the beginning of the door nib program.
Or, after positioning the tool to the position where the tool was damaged, machining was restarted from that position. However, in the conventional manual intervention method, not only does it take a considerable amount of time to restart machining after an abnormal condition occurs, but the operation is complicated, and it is difficult to perform the above processing automatically. This had the drawback of requiring a considerable amount of hardware.

恢りて、本発明の目的は加ニブログラムに基いて加工中
に工作嶺械或いは数値制御装置に異常状態が°発生した
とさ、該加ニブログラムに基づいた加工會一時的′に中
断し、異常状態に応じた処理を自動的に実行させ、該異
常状態に応じ次処理終了徐に前記中断し几加ニブ0グラ
ムに基づく加工を自動的に再開させることができる数値
制御方法を提供することを目的とする。
Accordingly, the object of the present invention is to temporarily interrupt the machining session based on the machine program and to prevent the abnormality from occurring when an abnormal state occurs in the machining machine or numerical control device during machining based on the machine program. To provide a numerical control method capable of automatically executing processing according to the state, and automatically restarting the interrupted processing based on the zero gram nib when the next processing is completed depending on the abnormal state. purpose.

以下、本発明の実施例を図面に従って詳細に説明する。Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明に係る数値制御方法の説明図である。&
!J中、B1.B3.Bs・・・は指令プログラムによ
る工具通路であり、それぞれ嬉1プ0ツク、第2ブロツ
ク、第5ブロツク・・・・・・・・・・・・の加工指令
データによる工具通路を示している。Ps(Xs、Zs
)。
FIG. 1 is an explanatory diagram of the numerical control method according to the present invention. &
! J Junior High, B1. B3. Bs... is the tool path according to the command program, and indicates the tool path according to the machining command data of 1st block, 2nd block, 5th block, etc., respectively. . Ps(Xs, Zs
).

Pe(Xe、Ze)はそれぞれ第2ブロツクの工具通路
の始点と終点、pb(xb、 zb)は工具破損位置、
Pt (Xt、 Zt )は工具交換位置、Psh(X
ah、 Zvh)は工具退避位置である。
Pe (Xe, Ze) are the start and end points of the tool path of the second block, pb (xb, zb) are the tool breakage position,
Pt (Xt, Zt) is the tool change position, Psh (X
ah, Zvh) are tool retraction positions.

さて、指令プログラム(御ニブログラム)に暴いて加工
を行なっている際に、11ポイン)Pbで工1具が破損
したとする。工具破損という異常事態が発生すれば工具
破損信号が発生し、数値制御装置に入力される。尚、工
具破損信号はたとえば、主軸モータ或いは工具を移動さ
せる送りモータの電機子電流籠會智視するセ/すを設け
、亀慎子電流籠が所定値以上になりたととt検出して出
力される。さて、数値制御装置は工具破損信号が入力さ
れ−ば直ちに加工を中断すると共に、以後加ニブログラ
ムによらず別に記憶されているサブプログ2ムの制御下
に置かれる。そして、該サブプログラムにより数値制御
装置は工具破損に応じた処理を行なう。
Now, let us assume that one tool is damaged at point 11) Pb while machining is being performed in accordance with the command program (control program). If an abnormal situation such as tool breakage occurs, a tool breakage signal is generated and input to the numerical control device. Incidentally, the tool breakage signal is output by, for example, providing a device to monitor the armature current cage of the spindle motor or the feed motor that moves the tool, and detecting when the Kame Shinko current cage exceeds a predetermined value. Ru. Now, when the numerical control device receives a tool breakage signal, it immediately interrupts machining, and thereafter is placed under the control of a separately stored subprogram 2, regardless of the machine program. Then, the numerical control device performs processing according to the tool damage according to the subprogram.

即ち、第1図を参照するとサブブロクラムにはたとえば
以下の如き■〜■の処理を実行するための命令がプログ
ラムされており、これにより工具破損処理が実行される
That is, referring to FIG. 1, the sub-blockram is programmed with commands for executing the following processes (1) to (4), thereby executing the tool damage process.

■退避位置Pshの座標計算、 ■退避位置Pshへの工具の移動、 0工具交換位置Ptへの工具の移動、 。エヮ74、:・′□i・ ■前記退避位置Pshへの新工具の移動、■再加工開始
位置(工具破損位置)Pbへの新工具の移動、 ■工具破損ブロックの再加工、 伺、工具を直接工具交換位置へ移動4mtl・い理由は
直接工具を移動させると工具がワークに当接する場合が
あるからである。さて、工具破損位置から工具退避位置
迄の逃は量m或いは該逃げ量のX軸成分mx、Z軸成分
m!等退避位置を決定する量は予めメモリに記憶されて
いる。従って工^が破損して、数値制御装置の内部状態
を退避し、しかる後サブプログラムから後述するリファ
V/ス点復帰命令G28が読出されると次式の演算が実
行されて退避位置Pshの座標Xsh、Zshが求まる
・・・■。
■Coordinate calculation of the evacuation position Psh, ■Movement of the tool to the evacuation position Psh, Movement of the tool to the 0 tool change position Pt. E74, :・′□i・ ■Moving the new tool to the evacuation position Psh, ■Moving the new tool to the rework start position (tool damage position) Pb, ■Reworking the tool damage block, The reason why it is necessary to move the tool directly to the tool exchange position is that if the tool is moved directly, the tool may come into contact with the workpiece. Now, the escape amount from the tool breakage position to the tool retraction position is the amount m, or the X-axis component mx and Z-axis component m of the relief amount! The amount for determining the equal evacuation position is stored in memory in advance. Therefore, when the machine is damaged and the internal state of the numerical control device is saved, and then the reference V/point return command G28, which will be described later, is read from the subprogram, the following equation is executed and the save position Psh is changed. Find the coordinates Xsh and Zsh...■.

/タル値’t 十mx、 +myとしてパルス分配演算
を行なえば工具線退避位置Pshに移動する・・・・・
・・・・・・・■。
/ Tal value 't 10mx, +my If pulse distribution calculation is performed, the tool line will move to the retraction position Psh...
......■.

一方、工具交換位置Pt、換言すればリファVンス点の
座@ (xt、 zt )は予めメモリに記憶されてい
る。従って、退避位置P@hK到達後次式により Xt−Xmh=jX、Zt−Zsh=jZ   ・=・
@インクリメンタル値ΔX、Δzt−求め、該インクリ
メンタル値に基いてパルス分配演算t*行すれは工具は
工具交換位置Piへ移動する・・・・・・・・・・・・
・・・■。
On the other hand, the tool exchange position Pt, in other words, the reference point (xt, zt) is stored in the memory in advance. Therefore, after reaching the evacuation position P@hK, Xt-Xmh=jX, Zt-Zsh=jZ ・=・
@ Find incremental values ΔX, Δzt- and perform pulse distribution calculation t* based on the incremental values, otherwise the tool moves to the tool change position Pi...
...■.

工具交換完了後の退避位置Pshへの移動はX5h−X
t=jX、Zsh−Zt=ΔZにより、インクリメンタ
ル値ΔX、Δ2を演算し、工具破損位[Pbへの位置決
めは、工具破損時Pbの位置(xb、zb)は退避せし
められているから、xb、zby読み出して Xb−Xsh=jX、Zb−Zsh=jZによりインク
リメンタル1[會求め、骸インクリメ以後、工具破損時
に退避し次数値制御装置の内部状態tm元させ、中断し
た加ニブログラムによる再加工を行なう・・・・・・・
・・・・・■。
To move to the evacuation position Psh after tool exchange is completed, use X5h-X.
Incremental values ΔX and Δ2 are calculated from t=jX, Zsh-Zt=ΔZ, and the tool breakage position [positioning to Pb is determined as , zby is read out and Xb - Xsh = j Let's do it...
...■.

以下は第1図に示すM路で工At工具交換位置Ptへ移
動させ、工具変換波工具破損位置pbへ新工JL11−
位置決めするサブプログラムのプ。グラ五例である。
Below, the machine At is moved to the tool change position Pt by the M path shown in Fig. 1, and the new machine JL11- is moved to the tool change position Pb.
Subprogram file for positioning. Here are five examples.

09001  * G28  Umx Wmz  米 T  tn  * G29  X Xb  Z  Zb  −)FM?? 伺、第1ブロツクにおいて09001はナブプログラム
繊別番号であり、第2ブロツクにおいてG28U・・・
W・・・は自動リファレンス復帰命令で、アルファベダ
) U、 Wのあとに逃げ量のX軸成分mx。
09001 * G28 Umx Wmz US T tn * G29 X Xb Z Zb -) FM? ? In the first block, 09001 is the nab program classification number, and in the second block, G28U...
W... is an automatic reference return command (Alphaveda) After U and W, the X-axis component of the escape amount mx.

Y軸成分mzが挿入されている。この自動リファレンス
点復帰命令が読み取られ−ばに)式の演算を行なって退
避位置座標1求めると共に工具を早送りで退避位置Ps
h迄移動する。そして退避位置Pshに位置決め完了後
に(ロ)式の演算を行なって、工具交換位11Pt迄の
各軸イ/りV−ノタル譲jX、Δzt−求め、該インク
リメンタル値に基いてパルス分配演算を行ない早送りで
工具上工具交換位置Piに位置決めする。又、第5ブロ
ツクの・Ttn来は工具交換命令であり、tnによ?新
工具が指示さレル。第4 プ09 り(1)G2vxx
bzzb米は破損位置復帰命令であり、この命令により
新工具は退避位置Psh1r通って、工具破損位置Pb
に復帰せしめられる。第5ブロツク5ytqqはサブプ
ログラムの終了を示すM機能命令でおる。
The Y-axis component mz is inserted. When this automatic reference point return command is read, the following formula is calculated to find the evacuation position coordinate 1, and the tool is rapidly traversed to the evacuation position Ps.
Move to h. Then, after the positioning to the retracted position Psh is completed, the calculation of equation (b) is performed to find the I/V-notal yield jX, Δzt- for each axis up to the tool change position 11Pt, and the pulse distribution calculation is performed based on the incremental values. Position the tool at the tool change position Pi by rapid traverse. Also, after ・Ttn in the 5th block is a tool change command. New tools are indicated. 4th P09 (1) G2vxx
bzzb is a command to return to the damaged position, and this command causes the new tool to pass through the evacuation position Psh1r and return to the tool damaged position Pb.
was forced to return to The fifth block 5ytqq is an M function instruction indicating the end of the subprogram.

崗、上記プロゲラ′ム例はサブプログラム実行前に数値
t11r a M置の内部状態會所定のメモリ領域に退
避させ、サブプログラム実行後に該退避した内部状11
Aw復元させる場合である。そして、この内部状態の退
避及び復元はユーザマクaにより行われる。冑、と\で
ユーザマクロについて若干説明しておく。
In the program example above, the internal state at the numerical value t11r a M is saved in a predetermined memory area before the subprogram is executed, and the saved internal state 11 is saved after the subprogram is executed.
This is a case where Aw is restored. This internal state is saved and restored by the user macro a. Let me explain a little about user macros.

ユーザミクロによればめる一群の命令で構成された機能
會一つの命令で代表させ、その代衆命令だけt書くこと
にエリ前記機能を実行させることができる。そして、登
録ンる一群の命令のことをユーザマク0本体とい\、代
嵌命令會エーザマクロ命令という。従って、第2図に示
すように通常のプロ夛ラムの途中にユーザマクロ命令を
挿入しておくことにより、該ユーザマクロ命令に応じた
機能を実行することができる。
A functional group consisting of a group of instructions in the user micro is represented by one instruction, and the function described above can be executed by writing only the representative instructions. The group of instructions that are registered is called the user macro 0 main body, and the substitute commands are called the ether macro instructions. Therefore, by inserting a user macro instruction in the middle of a normal program as shown in FIG. 2, a function corresponding to the user macro instruction can be executed.

ところで、ユーザマクロの最大の特徴ハ、ユーザマクロ
本体の中で変数が使える仁と、変数間の演算が行なえる
こと、千−ザマクロ命令で変数に実際の値を設定でき“
ることであり、か−る変数はφに続′(変数番号で次の
ように表現される。
By the way, the biggest features of user macros are that variables can be used within the user macro body, operations can be performed between variables, and actual values can be set in variables with a thousand macro instructions.
That is, such a variable follows φ (expressed by the variable number as follows).

φi  (i−1,2,S、・・・・・・・・・)こ\
で、変数番号iはレジスタRiを示し、変数φ蚤はレジ
スタR1の内容を表わす。さて、ユーザマクロにおいて
は、 φi=φj という命令によりレジスタR1の内St−レジスタRI
K転送することができる。即ち、この命令【用いればレ
ジスタの状St谷易に退避させ、且つ復元することがで
きる。
φi (i-1,2,S,......)ko\
Here, variable number i indicates register Ri, and variable φ indicates the contents of register R1. Now, in the user macro, by the instruction φi=φj, St-register RI in register R1 is
K transfer is possible. That is, if this instruction is used, the register state can be easily saved and restored.

゛従って、工具破損が生じたとき本実□明においては第
5図に示すようにユーザマクロ命令音用いて所定のメモ
リ領域へN(、装置の内部状態を退避させ、又サブプロ
グラムによる処理終了後に:L−ザマクロ。命令を用い
てNO装置の内部状aV所定のメモリ領域から復元する
ようにしている。
Therefore, in this embodiment, when a tool breaks, as shown in Figure 5, the user macro command sound is used to save the internal state of the device to a predetermined memory area, and the processing by the subprogram is terminated. After: L-the macro.The internal state aV of the NO device is restored from a predetermined memory area using the instruction.

第4図は本発明の実施例を示すブロヴク図であり、図中
NCMは多数の数値制御データ(NCデータ)から成る
NOプaクラムが記憶されているメインメモ+7 、 
UMMI工具破損壽の各種異常状態時にこれら異常状態
に応じた所定の処理を実行させる各種サブプログラムが
記憶されたサブメモリ、ICTは入力制御回路であり、
通常はメインメモリからNCデータ七順次読取って後段
の解読回路に出力・するが、工具破損信号TLB8等異
常状態信号が発生すると、メインメモリNCMからのN
Cデータの読取りt停止し、サブメモリUMMから異常
状態に応じた所定のサブプログラムを順次読取る。
FIG. 4 is a block diagram showing an embodiment of the present invention, and in the figure, NCM is a main memo +7 in which NO programs consisting of a large number of numerical control data (NC data) are stored;
ICT is an input control circuit, which is a submemory in which various subprograms are stored to execute predetermined processes in response to various abnormal states of the UMMI tool breakage;
Normally, the NC data is read seven times sequentially from the main memory and output to the subsequent decoding circuit, but when an abnormal state signal such as the tool breakage signal TLB8 occurs, the NC data is read from the main memory NCM.
Reading of C data is stopped, and predetermined subprograms corresponding to the abnormal state are sequentially read from the submemory UMM.

DECは解読回路であり、読取ったNCデータtデコー
ドし、#NCNCブール位置指令(Xe、 Ye。
DEC is a decoding circuit that decodes the read NC data and outputs #NCNC Boolean position commands (Xe, Ye.

Ze)、G機能命令などであれば次段の演算及び制御回
路に出力し、M、 8. T@能命令であればシーケン
ス回路からなる強電回路を介して機械側に出力する。0
PCNは演算及び制#回路でめ9、アブンリ為−トの位
置指令Xe、Ye、Zeであれば、Xe−X@−+ΔX
、Ye−Ys−+ΔY、 Ze −Zl−+Δ2の演算
【実行してインクリメンタル値ΔX6ΔY。
Ze), if it is a G function command, it is output to the next stage arithmetic and control circuit, M, 8. If it is a T@function command, it is output to the machine side via a high-voltage circuit consisting of a sequence circuit. 0
PCN is an arithmetic and control circuit.If the position command is Xe, Ye, or Ze for abnormal operation, then Xe-X@-+ΔX
, Ye-Ys-+ΔY, Ze-Zl-+Δ2 [Execute the incremental value ΔX6ΔY.

Δzt求め、次段のパルス分配器に出力すると共K、パ
ルス分配器から分、配パルスxp、 YG’s zpが
発生する毎に現在位置記憶領域の内@Xa、Ya。
When Δzt is determined and output to the next stage pulse distributor, the pulse distribution pulses xp and YG's are output from the pulse distributor to @Xa and Ya in the current position storage area each time zp is generated.

Za(初期時Xa+e=Xs、 Ya=Ys、 Zax
Zs ) tllT。
Za (initial Xa+e=Xs, Ya=Ys, Zax
Zs) tllT.

方向に応じて加減算し、且つ残移動量記憶領域の内容X
m、Ym、Zmt−1減算すル、又、演511ヒ111
J御回路0PCNはG機能命令に応じた樵々の制御を行
なう、 PDCは同時3軸のパルス分配器、 DMMは
逃げ量のXm、Y軸成分mX、mN、現在位置Xs。
Addition and subtraction according to the direction, and the contents of the remaining movement amount storage area X
m, Ym, Zmt-1 subtraction le, also operation 511hi 111
The J control circuit 0PCN controls the woodcutter according to the G function command, the PDC is a simultaneous 3-axis pulse distributor, and the DMM is the escape amount Xm, the Y-axis components mX, mN, and the current position Xs.

Ya、 Za、始点Xs、 Ys、 Zs、終点Xs、
 Ye、 Ze、イアクリメンタル値ΔX、ΔY、 j
Z、残移動量Xm、 Ylll。
Ya, Za, starting point Xs, Ys, Zs, ending point Xs,
Ye, Ze, incremental value ΔX, ΔY, j
Z, remaining movement amount Xm, Yllll.

Zm、G機能命令、補間モード等會記憶するデータメ%
す、X8U、YOU、Z8U はそtLぞれXm、Ym
、Z軸方向の公知のサーボエエッ) 、XM、 YM。
Zm, G function commands, interpolation mode, etc. Data memory%
S, X8U, YOU, Z8U is Xm, Ym respectively
, known servo in the Z-axis direction), XM, YM.

ZMはXm、Ym及びZ動用のDCモータである。ZM is a DC motor for Xm, Ym and Z movements.

8MMは退避メモリであり、工具破損等異常状態が発生
したときデータメモIJ DMMの記憶内容を記憶する
。 SaCは退避/回復制御回路であり、異常状態の発
生に基いて起動するサブプo/?ム中のユーザマクロの
制御でデータメモリDMMの記憶内容【退避メモリ8M
Mに退避させ、又所定の処理終了級に読出されるユーザ
マクロの制御で、退避メモIJ 8MMの記憶内容をデ
ータメモリDMM K回復させる。PWCは機械と数値
制御装置間でのデータの授受會司どる強電回路、OCD
は工具破損検出器である。
8MM is a save memory that stores the contents of the data memo IJ DMM when an abnormal condition such as tool damage occurs. SaC is an evacuation/recovery control circuit, and is activated based on the occurrence of an abnormal condition. The storage contents of the data memory DMM are controlled by the user macro in the system [Evacuation memory 8M]
The contents of the saved memory IJ8MM are saved in the data memory DMM K under the control of a user macro read out at a predetermined processing end level. PWC is a high-power circuit that controls the exchange of data between machines and numerical control devices, and OCD
is a tool breakage detector.

次に本発明の詳細な説明する。Next, the present invention will be explained in detail.

通常、入力制御回路ICTはメインメモ9NCMより1
プaツクづつNOデータを読取9該NCデータを演算及
び制御回路0PCNに入力し骸0PCNt−して数値制
御処理を行なわせ、ワークに所望の加工を施している。
Normally, the input control circuit ICT is 1 from the main memo 9NCM.
The NO data is read out one by one, and the NC data is input to the arithmetic and control circuit 0PCN to perform numerical control processing to perform desired machining on the workpiece.

即ち、メインメモリNCMがら読取り次指令がアブンリ
凰−トの位置決めあるいは移動指令(Xe、 Ye’、
 Ze >であればこれ’is読回路DECを介して演
算及び制御回路0PCNに入力する。
That is, the next command read from the main memory NCM is the positioning or movement command (Xe, Ye',
If Ze >, this is input to the arithmetic and control circuit 0PCN via the 'is reading circuit DEC.

演算及び制御回路0PCNは(Xe、 Ye、 Ze 
)が入力され\は、 Xe−X5=ΔX、  但しX l −X 息Ye−Y
s=jY   但しYss=YaZe−Zs=jZ  
 但しZa=Zaの演算全実行してイアクリメンタルi
it求め、その演算結果(イアクリメンタル値ΔX、Δ
Y、)Z)をパルス分配器PDCに人、力すると共に、
始点Xs。
The calculation and control circuit 0PCN is (Xe, Ye, Ze
) is input, \ is Xe-X5=ΔX, where X l -X Ye-Y
s=jY However, Yss=YaZe-Zs=jZ
However, all calculations of Za=Za are executed and i is incremental i.
It is calculated, and the calculation results (incremental values ΔX, Δ
Y,)Z) to the pulse distributor PDC, and
Starting point Xs.

Ys、 Zs及び指令され次層点座標Xe、 Ye、 
Ze並びに前記インクリメンタル値ΔX、ΔY、Δzv
tメモI) DMMに記憶させ、且つメモリ中の残移動
量記憶領域にΔX、jY、ΔZ f セ9トする(Xm
=jX。
Ys, Zs and commanded next layer point coordinates Xe, Ye,
Ze and the incremental values ΔX, ΔY, Δzv
t Memo I) Store in the DMM and add ΔX, jY, ΔZ f to the remaining movement amount storage area in the memory (Xm
=jX.

Ym=jY、 Zm=Δ2>。Ym=jY, Zm=Δ2>.

パルス分配器PDCはイ/クリメ/タル値−X。The pulse distributor PDC has an i/climate/tal value -X.

ΔY、Δ2が与えられ\ば直ちK パルス分配演算【実
行する。こ−のパルス分配演算によQ分配パルスxp、
 Yp、 zpが分配され\ばこれらはナーボ二ニq 
) XSU、 Y8U、 Z8U K与L ラtL各f
mf’) L) C−v: −タXM、 YM、 ZM
 t−駆動し、工具kしてプa / 5 A通路上を移
動せしめる。これと同時に各分配パルスXp、 Yp、
 Zpは演算及び制御回路0PCNに入力される。これ
により該演算及び制御回路0PCNはXm−1−+Xm
、 Ym−1−+Ym、 Zm−1−+Zm及び Xa±1−+Xa、Ya±1−+Ya、Za±1−+Z
aの演算を実行して現、布位置(Xa、 Ya、 Za
)記憶領域並びに残移動量(Xm、 Ym、 Zm>記
憶領域の内容【更新する。伺、上式中符号は移動方向に
依存する。そして、Xm=0.Ym=O,Zm=Oにな
れば)<ルス分配器PDCにパルス分配停止信号PDI
(=1111)t−出力し、又次のNCデータ読取り信
号R8T1発生し入力制御回路ICT II−して次の
一夕七Il!取らす。
As soon as ΔY and Δ2 are given, K pulse distribution calculation is executed. By this pulse distribution calculation, Q distribution pulse xp,
If Yp and zp are distributed, these are Narboiniq
) XSU, Y8U, Z8U Ky L rat tL each f
mf') L) C-v: -ta XM, YM, ZM
t-drive and move the tool k on the path A/5A. At the same time, each distribution pulse Xp, Yp,
Zp is input to the arithmetic and control circuit 0PCN. As a result, the calculation and control circuit 0PCN becomes Xm-1-+Xm
, Ym-1-+Ym, Zm-1-+Zm and Xa±1-+Xa, Ya±1-+Ya, Za±1-+Z
Execute the calculation of a to find the current cloth position (Xa, Ya, Za
) Storage area and remaining movement amount (Xm, Ym, Zm> Contents of storage area [Update. The sign in the above formula depends on the movement direction. Then, Xm=0.Ym=O, Zm=O. b) <Pulse distribution stop signal PDI to pulse distributor PDC
(=1111) t- is output, and the next NC data read signal R8T1 is generated, input control circuit ICT II- is output, and the next Il! take it.

又、NCデープから読出された加工データがM。Also, the processed data read out from the NC tape is M.

8、 T機能命令であれば、人力制御回路ICTはこれ
′gl:g!A亀−路P冑(4−介して機械−1に出力
し、機械側からこのM、 8. T @能命令に基づく
機械動作を完了したという信号FINが上れば次のブロ
ックの加工データを読出丁。以上の如−加工中に、たと
えは工具が破損し丸とすれは、この工具破損社工具破損
検出器0CL)により検出される。、そして工具破損信
号TLB8が強電回路PWCを介して入力制御回路IC
T及び演算及び制御回路0PCNに入力される。
8. If it is a T function command, the human control circuit ICT is 'gl:g! When the signal FIN indicating that the machine operation based on the M, 8. T @function command is completed, the machining data of the next block is As described above, during machining, if the tool is damaged, for example, a circle or a groove is detected by the tool damage detector (0CL). , and the tool breakage signal TLB8 is input to the control circuit IC via the high-voltage circuit PWC.
It is input to T and the arithmetic and control circuit 0PCN.

仁れにより演算及び制御回路0PCNはパルス分配器P
DCにパルス分配停止信号PDIi、出力し、又入力制
御回路ICTは直ちに工具破損信号TLB8に応じ次工
具破損処理用のサブプログラム會サブメモリUMMから
選択し、該サブプログラムの命令t1ステップづつ読出
し、解読回路DECを介して演算及び制御回路0PCN
に入力する。さて、サブプログラムの先11にはNC装
置の内部状態退避用のユーザマクロ命令が挿入されてい
るため、演算及び制御回路0PCNは該ユーザマクロ命
令に19退避/回復制御回路5RC1−制御しデータメ
モリDMMのPg容を退避メモリ8MMに退避させる。
Due to this, the arithmetic and control circuit 0PCN is a pulse distributor P.
A pulse distribution stop signal PDIi is output to DC, and the input control circuit ICT immediately selects the next subprogram for tool breakage processing from the submemory UMM in response to the tool breakage signal TLB8, and reads out the command t1 step by step of the subprogram. Operation and control circuit 0PCN via decoding circuit DEC
Enter. Now, since a user macro instruction for saving the internal state of the NC device is inserted in the subprogram 11, the arithmetic and control circuit 0PCN uses the user macro instruction 19 save/recovery control circuit 5RC1 to control the data memory. Save the Pg content of the DMM to the save memory 8MM.

そして、データメモリDMMの内!!會退最後、サブプ
ログラムから工具破損処理データが1ステツプづつ読出
されると、演算及び制御回路0PCNは、退避位置Ps
bの座標(Xsh、 Ysh、 Zsh) Vt演算し
、逃げ量の各軸成分 mx (=Xs h −Xb ) 、 my (=Ys
 h−Yb )、 ms (xZsh−Zb)會インク
リメンタル値jx、ΔY、Δzとしてノ(ルス分配器P
DCに出力すると共に、退避位置(Xsh。
And inside the data memory DMM! ! At the end of the meeting, when the tool damage processing data is read out step by step from the subprogram, the arithmetic and control circuit 0PCN sets the retraction position Ps.
Coordinates of b (Xsh, Ysh, Zsh) Vt are calculated, and each axis component of the escape amount mx (=Xsh - Xb), my (=Ys
h-Yb), ms (xZsh-Zb) as incremental values jx, ΔY, Δz
While outputting to DC, the evacuation position (Xsh.

Yak、 Zsh ) 11−f −fi メモリDM
Mノ所定II域KIIe憶させる。パルス分配器PDC
Jd mx、 my、 msが与えられ、且つパルス分
配停止信号が解除(Pl)I−%(1#)されるとパル
ス分配演算を開始する。ノくルス分配器PDCからmx
、my、mzに相当する数の分配パルスxp、 Yp、
 zpが出力されれば演算及び制御回路0PCNよりパ
ルス分配停止信号PDIが出力されパルス分配演算が終
了する。そして、このとき、工具は退避位置Pshへの
退避を完了する。以侵、工具交換位置Ptへの位置決め
工具交換、退避位置Pshへの新工具の位置決め、工具
破損位置P「への新工具の位置決め等が次旬とサブプロ
グラムからの指令により実行され、最終的に新工具は工
具破損位置Prに位置決めされる。
Yak, Zsh) 11-f-fi Memory DM
Predetermined II area KIIe of M is stored. Pulse distributor PDC
When Jd mx, my, and ms are given and the pulse distribution stop signal is released (Pl) I-% (1#), pulse distribution calculation is started. Norculus distributor PDC to mx
, my, mz, the number of distribution pulses xp, Yp,
When zp is output, the pulse distribution stop signal PDI is output from the calculation and control circuit 0PCN, and the pulse distribution calculation ends. At this time, the tool completes retraction to the retraction position Psh. After that, the positioning tool exchange to the tool exchange position Pt, the positioning of the new tool to the retreat position Psh, the positioning of the new tool to the tool damage position P', etc. are executed according to the commands from the next generation and subprograms, and the final The new tool is positioned at the tool damage position Pr.

しかる後、サブプログラムからは、NC装置の内:、・
・1 部状態を退避メモリ8MM$6データメモリDMMに復
元嘔せるユーザマクロ命令が読出される。演算及び制御
回路0PCNは骸ユーザマクロ命令により退避/回復制
御回路8RCy制御し退避メモ178MMに退避され、
ているNC装置の内部状1It−データメモリDMMに
復元する。そして、最後にサブプログラムの終り°を示
すM機能命令M9?が読取られ\ば、演算及び制御回路
0PCNはΔX、ノY、Δzt−パルス分配器PDCに
入力し、工具破損位置からの再加工′に開始する。
After that, from the subprogram, the contents of the NC device:,・
- A user macro instruction is read that restores the state of 1 part to the save memory 8MM and the data memory DMM. The arithmetic and control circuit 0PCN controls the evacuation/recovery control circuit 8RCy according to the Mukuro user macro instruction, and is evacuation to the evacuation memory 178MM.
The internal state of the NC device is restored to the data memory DMM. Finally, the M function command M9? indicates the end of the subprogram. If \ is read, the arithmetic and control circuit 0PCN inputs ΔX, Y, Δzt to the pulse distributor PDC and starts re-machining from the tool breakage position.

以上、本発明によれば加ニブaグラ^とサブプログラム
の両者を記憶媒体に記憶させておき、加ニブログラムに
よる加工中に工具破損等の異常状態が発生すればサブプ
ログラムを読出し、該サブプログラムによる制御で異常
状1146理會自動的に実行するようにしたから、異常
状態処理時間の短縮、オペレータ操作の簡略化が図れ、
加工効率會著しく高めることかでf!た。l!に付加的
なI・−ドウエアtそれほど必要としないため安価な自
動化または無人化システム’r*現することができる。
As described above, according to the present invention, both the cutting nib a graph and the subprogram are stored in a storage medium, and if an abnormal condition such as tool breakage occurs during machining using the cutting nib program, the subprogram is read out and the subprogram is Since abnormal condition 1146 processing is automatically executed under the control of
By significantly increasing machining efficiency, f! Ta. l! Since it does not require much additional hardware, it is possible to create an inexpensive automated or unmanned system.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係る数値制御方法説明図、第2図はニ
ーず實りa説明図、第3図は数値制御装置の内部状態を
退避/復元するプログラム例、第4図は本発明の実施ガ
フcIvり図である。 NCM・・・メインメモリ、UMM・・・サブメモリ、
 ICT・・・入力制御回路、0FON・・・演算及び
fllj御回路、PDC・・・パルス分配器、DMM・
・・データメモリ、8MM・・・退避メモリ、8fLC
・・・退避/@復制御41TEA路、OCD・・・工具
破損検出器 特許出願人  富士通ファナック株式会社代理人 弁理
士  辻      實 (9S2名) 第7図 ノPt(Xt、々〕 /// 第2図 第3哩
Fig. 1 is an explanatory diagram of the numerical control method according to the present invention, Fig. 2 is an explanatory diagram of a need-based method, Fig. 3 is an example of a program for saving/restoring the internal state of the numerical control device, and Fig. 4 is an explanatory diagram of the present invention. This is an implementation gaff cIv diagram. NCM...Main memory, UMM...Sub memory,
ICT...input control circuit, 0FON...arithmetic and flj control circuit, PDC...pulse distributor, DMM/
...Data memory, 8MM...Evacuation memory, 8fLC
...Evacuation/@return control 41TEA path, OCD...Tool breakage detector Patent applicant Fujitsu Fanuc Co., Ltd. Agent Patent attorney Minoru Tsuji (9S, 2 people) Fig. 7 Pt (Xt, etc.) /// No. Figure 2, 3rd floor

Claims (1)

【特許請求の範囲】[Claims] (II  加ニブログラムに基いてワークに所望の加工
を施す数値制御方法において、加ニブログラムによる数
値制御加工中に特定の信号が発生し九とき数値制御装置
をして骸特定の信号に応じ大処理を実行させるサブプロ
グラムを予めメモリに配tさせておき、帥記特定の信号
が発生したとき数値制御装置の内部状at−所定のメモ
リ領域に退避させ、ついで前記サブプログラムに慕いた
処理ta籠副制御装置実行させ、サブプログラムによる
処理終了vkK前記退避した数値制御装置の内部状態を
復元させ、しかる後中断した加工ブロクラムの数値制御
処理を再開することt−特徴とする数値制御方法。
(II. In a numerical control method that performs desired machining on a workpiece based on a Kani program, when a specific signal is generated during numerically controlled processing using the Kani program, the numerical control device is activated to perform large-scale processing in response to the specific signal. A subprogram to be executed is allocated in memory in advance, and when a specific signal is generated, the internal state of the numerical control device is saved to a predetermined memory area, and then the processing desired for the subprogram is transferred to the subprogram. A numerical control method characterized in that the control device is executed, the internal state of the numerical control device that was evacuated is restored after the processing by the subprogram ends, and the interrupted numerical control processing of the processed block is then resumed.
JP16124281A 1981-10-09 1981-10-09 Numerical controlling method Granted JPS5862702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16124281A JPS5862702A (en) 1981-10-09 1981-10-09 Numerical controlling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16124281A JPS5862702A (en) 1981-10-09 1981-10-09 Numerical controlling method

Publications (2)

Publication Number Publication Date
JPS5862702A true JPS5862702A (en) 1983-04-14
JPH0444281B2 JPH0444281B2 (en) 1992-07-21

Family

ID=15731345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16124281A Granted JPS5862702A (en) 1981-10-09 1981-10-09 Numerical controlling method

Country Status (1)

Country Link
JP (1) JPS5862702A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61118807A (en) * 1984-11-15 1986-06-06 Okuma Mach Works Ltd Method and device for reset to working position of nc program
JPS6316303A (en) * 1986-07-09 1988-01-23 Mitsubishi Electric Corp Numerical controller
JPH05158520A (en) * 1991-10-07 1993-06-25 Mitsubishi Electric Corp Laser processing equipment
US20200026259A1 (en) * 2018-07-17 2020-01-23 Fanuc Corporation Numerical controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5451079A (en) * 1977-09-29 1979-04-21 Toshiba Corp Numerical control apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5451079A (en) * 1977-09-29 1979-04-21 Toshiba Corp Numerical control apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61118807A (en) * 1984-11-15 1986-06-06 Okuma Mach Works Ltd Method and device for reset to working position of nc program
JPS6316303A (en) * 1986-07-09 1988-01-23 Mitsubishi Electric Corp Numerical controller
JPH05158520A (en) * 1991-10-07 1993-06-25 Mitsubishi Electric Corp Laser processing equipment
US20200026259A1 (en) * 2018-07-17 2020-01-23 Fanuc Corporation Numerical controller
JP2020011258A (en) * 2018-07-17 2020-01-23 ファナック株式会社 Numerical control unit
CN110727240A (en) * 2018-07-17 2020-01-24 发那科株式会社 Numerical controller
US10955817B2 (en) 2018-07-17 2021-03-23 Fanuc Corporation Numerical controller
CN110727240B (en) * 2018-07-17 2024-04-12 发那科株式会社 Numerical controller

Also Published As

Publication number Publication date
JPH0444281B2 (en) 1992-07-21

Similar Documents

Publication Publication Date Title
US4550378A (en) Method of numerical control and device therefor
EP0782056B1 (en) Numerically controlled machine tool and method
JPS6244281B2 (en)
EP1308809B1 (en) Synchronization control method and synchronization control device
CN105807717B (en) Has the numerical control device of drawing path debugging functions
US10338570B2 (en) Numerical controller
JPS6332586B2 (en)
JPS60157607A (en) Numerical control method
US5578913A (en) NC device controlling machining processes with pre- and post-execution in-position values
JPS5862702A (en) Numerical controlling method
JP2662864B2 (en) Industrial robot controller
JPH11170117A (en) Controlling method and device for moving spindle of machine tool
US4839817A (en) Numerically controlled apparatus including shunting controller
JPH0651258B2 (en) NC controller with automatic return function
JPH0630011B2 (en) Numerical control Machining restart control method
US4495561A (en) Numerical control method
JPS599706A (en) Numerical controlling system
JPS5870314A (en) Sequence resetting system
US5162714A (en) Numerical control device for transfer machines
JP2584225B2 (en) Numerical control unit
JPH0895623A (en) Tool shift control system in cnc
JPS6099545A (en) Machine tool
JPS61260304A (en) Numerical controller
JPH11242511A (en) Numeric controller for simultaneously controlling two movable bodies on comomon path
US20240231321A1 (en) Numerical control device and computer-readable storage medium