JPH0677207B2 - Method of determining evacuation / reentry route in numerical control device - Google Patents

Method of determining evacuation / reentry route in numerical control device

Info

Publication number
JPH0677207B2
JPH0677207B2 JP61226567A JP22656786A JPH0677207B2 JP H0677207 B2 JPH0677207 B2 JP H0677207B2 JP 61226567 A JP61226567 A JP 61226567A JP 22656786 A JP22656786 A JP 22656786A JP H0677207 B2 JPH0677207 B2 JP H0677207B2
Authority
JP
Japan
Prior art keywords
reentry
numerical control
evacuation
route
path
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
JP61226567A
Other languages
Japanese (ja)
Other versions
JPS6381508A (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 JP61226567A priority Critical patent/JPH0677207B2/en
Publication of JPS6381508A publication Critical patent/JPS6381508A/en
Publication of JPH0677207B2 publication Critical patent/JPH0677207B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 (発明の技術分野) 本発明は数値制御装置における退避/再入経路の決定方
法、特に異常事態回避のために退避/再入用外部信号に
より、自動的に最適な退避/再入移動経路を発生できる
ようにした数値制御装置における退避/再入経路の決定
方法に関する。
Description: TECHNICAL FIELD OF THE INVENTION The present invention relates to a method of determining a retreat / reentry path in a numerical controller, and in particular, it is automatically optimized by a retreat / reentry external signal for avoiding an abnormal situation. The present invention relates to a method of determining a retreat / reentry route in a numerical control device capable of generating a retreat / reentry movement route.

(発明の技術的背景とその問題点) 数値制御(NC)装置は通常数値制御プログラムデータ通
りに数値制御処理を実行し、この処理に基づいて機械を
制御し、ワークに指令通りの加工を行なわせるようにな
っている。最近の数値制御装置にはサブプログラム,ユ
ーザーマクロの機能が付加されており、加工途中で異常
が発生した場合、その異常を知らせる外部信号を受信
し、通常の数値制御プログラムのフローを変更し、異常
処理用のサブプログラム,ユーザーマクロにプログラム
のフローを切換えるようにしていた。
(Technical background of the invention and its problems) A numerical control (NC) device normally executes a numerical control process according to a numerical control program data, controls a machine based on this process, and performs machining according to a command on a work. It is designed to let you. Subprograms and user macro functions have been added to recent numerical control devices. If an abnormality occurs during machining, an external signal that notifies the abnormality is received, and the normal numerical control program flow is changed. The flow of the program was switched to the sub-program for error processing and the user macro.

しかしながら、異常処理用の最適なサブプログラム,ユ
ーザーマクロを準備しておくことは困難であり、仮に準
備したとしても通常の数値制御プログラムのそれぞれの
局面に適するように、非常に多くのサブプログラム,ユ
ーザーマクロを準備する必要があり、実用的ではなかっ
た。
However, it is difficult to prepare the optimum sub-programs and user macros for abnormal processing. Even if they are prepared, a large number of sub-programs, so that they are suitable for each aspect of a normal numerical control program, User macro had to be prepared and not practical.

(発明の目的) 本発明は上述のような事情よりなされたものであり、本
発明の目的は、通常の数値制御プログラムの軸移動経路
データを記憶しておき、これに基づいて異常事態回避の
ために最適な異常処理用の退避/再入動作の回避経路を
自動的に生成できるようにした数値制御装置における退
避/再入経路の決定方法を提供することにある。
(Object of the Invention) The present invention has been made under the circumstances as described above, and an object of the present invention is to store the axis movement path data of a normal numerical control program and to avoid an abnormal situation based on this. Therefore, it is an object of the present invention to provide a method of determining an evacuation / reentry path in a numerical control device, which is capable of automatically generating an optimal evacuation / reentry operation avoidance path for abnormality processing.

(発明の概要) 本発明は、数値制御プログラムに基づいて数値制御処理
を実行し、その処理によって機械を制御し、ワークに指
令に従った加工を行なわせる数値制御装置における退避
/再入経路の決定方法に関するもので、異常処理用の退
避/再入動作を必要とする領域を設定しておき、前記領
域に侵入した移動経路を前記数値制御プログラムの実行
中に記憶すると共に、前記移動経路に閉ループが有る場
合には当該閉ループを削除して記憶し、異常処理を要求
する退避/再入外部信号が入力された場合、前記記憶し
た移動経路に基づいて前記退避/再入経路を自動的に決
定するようにしたものである。
(Summary of the Invention) The present invention executes a numerical control process based on a numerical control program, controls a machine by the process, and causes a workpiece to perform a machining according to a command. Regarding the determination method, an area requiring evacuation / reentry operation for abnormality processing is set, and a movement route that has entered the area is stored during execution of the numerical control program, and If there is a closed loop, the closed loop is deleted and stored, and when an evacuation / reentry external signal requesting abnormal processing is input, the evacuation / reentry route is automatically set based on the stored travel route. It was decided to decide.

(発明の実施例) 第1図は本発明の数値制御装置における退避/再入経路
の決定方法を実現する装置の一例を示しており、数値制
御プログラムは数値制御プログラム解読手段1に入力さ
れ、解読された数値制御プログラムが領域判断手段2及
び軸移動データ選択手段6に入力される。領域判断手段
2で判断された移動経路の結果は、移動経路記憶手段3
に入力されて記憶され、移動経路に閉ループが有る場合
には閉ループ移動経路削除手段4で削除される。閉ルー
プ移動経路削除手段4で閉ループが削除された移動経路
は退避/再入軸移動データ生成手段5に入力され、退避
外部信号及び再入外部信号と共に軸移動データ選択手段
6に入力され、選択されたデータが軸移動制御手段7に
伝送されるようになっている。
(Embodiment of the Invention) FIG. 1 shows an example of a device for realizing a method of determining a retreat / reentry path in a numerical control device of the present invention, in which a numerical control program is input to a numerical control program decoding means 1, The decrypted numerical control program is input to the area determination means 2 and the axis movement data selection means 6. The result of the movement route determined by the area determination unit 2 is the movement route storage unit 3
Is input to and stored in, and when the moving path has a closed loop, it is deleted by the closed loop moving path deleting means 4. The movement path from which the closed loop has been deleted by the closed loop movement path deletion means 4 is input to the evacuation / reentry axis movement data generation means 5 and is input and selected to the axis movement data selection means 6 together with the evacuation external signal and the reentry external signal. The data is transmitted to the axis movement control means 7.

このような構成において、その動作を第2図のフローチ
ャーを参照して説明する。
With such a configuration, its operation will be described with reference to the flowchart of FIG.

先ず、数値制御プログラムを数値制御プログラム解読手
段1によって解読し(ステップS1)、軸移動データ等を
生成して軸移動データ選択手段6及び領域判断手段2に
伝送する。領域判断手段2は生成された軸移動データが
指定された領域内にあるか否かを判断し(ステップS
2)、軸移動データが指定された領域内に有る場合には
移動経路記憶手段3が入力されて記憶され(ステップS3
3)、その読出された移動経路が閉ループ移動経路削除
手段4に入力され、閉ループが有る場合には削除される
(ステップS4)。第3図及び第4図の例では、移動経路
b〜c以降の経路が指定領域内となっており、移動経路
記憶手段3には例えば第6図〜第8図に示すようなデー
タで移動経路が記憶される。そして、移動経路記憶手段
3の中に閉ループ移動経路が記憶された場合、例えば第
6図の(X,Z)〜(X,Z)間のような閉ループ
データで有る場合、閉ループ移動経路削除手段4は閉ル
ープデータを削除して第7図のようにする。
First, the numerical control program is decoded by the numerical control program decoding means 1 (step S1), axis movement data and the like are generated and transmitted to the axis movement data selection means 6 and the area determination means 2. The area judging means 2 judges whether or not the generated axis movement data is within the specified area (step S
2) If the axis movement data is within the designated area, the movement path storage means 3 is input and stored (step S3).
3) The read movement path is input to the closed loop movement path deletion means 4, and if there is a closed loop, it is deleted (step S4). In the example of FIGS. 3 and 4, the routes after the moving routes b to c are in the designated area, and the moving route storage means 3 is moved by the data as shown in FIGS. 6 to 8, for example. The route is stored. When the closed-loop moving path is stored in the moving-path storing means 3, for example, when the closed-loop data is between (X c , Z c ) to (X f , Z f ) in FIG. The moving route deleting means 4 deletes the closed loop data as shown in FIG.

閉ループ移動経路削除手段4で閉ループが判定されて削
除された後、又は上記ステップS2の領域判断において移
動経路が指定領域外であると判断された場合には、退避
外部信号又は再入外部信号の外部信号が入力されている
か否かを判断する(ステップS5)。そして、例えば第4
図のh点で退避外部信号が入力された場合には、第8図
の移動経路データに従ってH→g→f→b点の退避用軸
移動データを退避/再入軸移動データ生成手段5で生
成、その後再入外部信号が入力された場合には、同様に
b→f→g→h点の再入軸移動データを生成する(ステ
ップS7)。軸移動データ選択手段6は、外部信号が無い
場合には通常の数値制御プログラムによる軸移動データ
を選択し(ステップS6)、上記退避又は再入外部信号が
有る場合には生成された退避/再入の軸移動データを選
択し(ステップS8)、軸移動制御手段7に送って軸移動
の制御を実行する。
After the closed loop is determined and deleted by the closed loop movement route deleting means 4, or when the movement route is determined to be outside the designated region in the area determination in step S2, a save external signal or a re-entry external signal is output. It is determined whether or not an external signal is input (step S5). And, for example, the fourth
When an evacuation external signal is input at the point h in the figure, the evacuation / reentry axis movement data generation means 5 saves the evacuation axis movement data at the points H → g → f → b according to the movement path data in FIG. When a generation signal and then a re-entry external signal are input, similarly, re-entry axis movement data of points b → f → g → h are generated (step S7). When there is no external signal, the axis movement data selection means 6 selects the axis movement data according to a normal numerical control program (step S6), and when there is the above-mentioned evacuation or re-entry external signal, the evacuation / re-entry generated. The input axis movement data is selected (step S8) and sent to the axis movement control means 7 to control the axis movement.

尚、第6図〜第9図は軸移動経路記憶手段3の中の記憶
データの例を示しており、第6図は第3図のプログラム
によりe点まで加工し、f点に移動しようとした場合の
内容を示している。又、第7図は移動経路記憶手段3の
中に閉ループの移動経路が記憶されている場合、その閉
ループ移動経路データを削除した結果の内容を示してお
り、第8図は第7図以降で外部信号が入力されるまでの
移動経路記憶手段3の内容を示している。
6 to 9 show examples of the stored data in the axis movement path storage means 3, and FIG. 6 shows that the program shown in FIG. It shows the contents when it is done. Further, FIG. 7 shows the contents of the result of deleting the closed loop movement route data when the movement route storing means 3 stores the closed loop movement route, and FIG. 8 shows the contents after FIG. The contents of the movement route storage means 3 until an external signal is input are shown.

(発明の効果) 以上のように本発明の数値制御装置における退避/再入
経路の決定方法によれば、異常事態回避のために最適な
異常処理用の退避/再入動作の回避経路を自動的に生成
できるようにしたので、数値制御プログラムを複雑にす
ることなく、信頼性の高い経済的なワーク加工を実現す
ることができる。
(Effects of the Invention) As described above, according to the method for determining the evacuation / reentry path in the numerical control device of the present invention, the optimal evacuation / reentry operation avoidance path for abnormality processing is automatically generated for avoiding an abnormal situation. Since it can be generated automatically, it is possible to realize highly reliable and economical work machining without complicating the numerical control program.

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

第1図は本発明方法を実現する装置の一例を示すブロッ
ク構成図、第2図は本発明の動作例を示すフローチャー
ト、第3図は本発明の説明に用いる数値制御プログラム
の一例を示す図、第4図は数値制御プログラムの移動経
路の一例を示す図、第5図は第3図及び第4図の例にお
ける異常処理用の退避/再入の経路図、第6図〜第8図
は移動経路記憶手段の記憶データの一例を示す図であ
る。 1……数値制御プログラム解読手段、2……領域判断手
段、3……移動経路記憶手段、4……閉ループ移動経路
削除手段、5……退避/再入軸移動データ生成手段、6
……軸移動データ選択手段、7……軸移動制御手段。
FIG. 1 is a block configuration diagram showing an example of an apparatus for realizing the method of the present invention, FIG. 2 is a flow chart showing an operation example of the present invention, and FIG. 3 is a diagram showing an example of a numerical control program used for explaining the present invention. FIG. 4 is a diagram showing an example of a moving route of a numerical control program, FIG. 5 is a route diagram of evacuation / reentry for abnormality processing in the examples of FIGS. 3 and 4, and FIGS. FIG. 3 is a diagram showing an example of data stored in a moving route storage means. 1 ... Numerical control program decoding means, 2 ... Area determination means, 3 ... Moving path storing means, 4 ... Closed loop moving path deleting means, 5 ... Retract / reentry axis moving data generating means, 6
...... Axis movement data selection means, 7 ...... Axis movement control means.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】数値制御プログラムに基づいて数値制御処
理を実行し、その処理によって機械を制御し、ワークに
指令に従った加工を行なわせる数値制御装置における退
避/再入経路の決定方法において、異常処理用の退避/
再入動作をを必要とする領域を設定しておき、前記領域
に侵入した移動経路を前記数値制御プログラムの実行中
に記憶すると共に、前記移動経路に閉ループが有る場合
には当該閉ループを削除して記憶し、異常処理を要求す
る退避/再入外部信号が入力された場合、前記記憶した
移動経路に基づいて前記退避/再入経路を自的に決定す
るようにしたことを特徴とする数値制御装置における退
避/再入経路の決定方法。
1. A method of deciding an evacuation / reentry path in a numerical controller for executing numerical control processing based on a numerical control program, controlling a machine by the processing, and causing a work to perform machining according to a command. Evacuation for error handling /
An area that requires reentry operation is set, the moving path that entered the area is stored during execution of the numerical control program, and if the moving path has a closed loop, the closed loop is deleted. When the evacuation / reentry external signal requesting abnormal processing is input, the evacuation / reentry route is automatically determined based on the stored travel route. A method for determining a retreat / reentry route in a control device.
JP61226567A 1986-09-25 1986-09-25 Method of determining evacuation / reentry route in numerical control device Expired - Fee Related JPH0677207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61226567A JPH0677207B2 (en) 1986-09-25 1986-09-25 Method of determining evacuation / reentry route in numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61226567A JPH0677207B2 (en) 1986-09-25 1986-09-25 Method of determining evacuation / reentry route in numerical control device

Publications (2)

Publication Number Publication Date
JPS6381508A JPS6381508A (en) 1988-04-12
JPH0677207B2 true JPH0677207B2 (en) 1994-09-28

Family

ID=16847183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61226567A Expired - Fee Related JPH0677207B2 (en) 1986-09-25 1986-09-25 Method of determining evacuation / reentry route in numerical control device

Country Status (1)

Country Link
JP (1) JPH0677207B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02101507A (en) * 1988-10-11 1990-04-13 Mitsubishi Electric Corp Work controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5721247A (en) * 1980-07-04 1982-02-03 Komatsu Ltd Determination of retracting and returning path for tool in machine tool

Also Published As

Publication number Publication date
JPS6381508A (en) 1988-04-12

Similar Documents

Publication Publication Date Title
KR890002437B1 (en) A numerical control system
JPH0239304A (en) Learning control system for numerical control machine tool
KR930011227B1 (en) Numerical controller
JP3451594B2 (en) Storage unit access control method and numerical control device in numerical control device
KR920004080B1 (en) Numerical control device
JPH0677207B2 (en) Method of determining evacuation / reentry route in numerical control device
JPH0498301A (en) Numerically controlled machine tool and numerical controller
JP2672595B2 (en) Tool replacement method
JPS62260204A (en) Numerical control system
JPH02202604A (en) External part extending type programmable controller
JPH05274021A (en) Machining system
JPS63250705A (en) Numerical controller
JPH06100931B2 (en) Method for creating change program in control information creation device for industrial robot
JP2820823B2 (en) Numerical control unit
JPS61107401A (en) Program format converting system between numerical controller and programmable controller for machine tool
JP3195646B2 (en) Motor drive control device
JPH08286712A (en) Editing system for sequence program
JPS60222904A (en) Control method of coordinate system conversion of numerically controlled lathe
JPH04169907A (en) Acceleration/deceleration control system
JPH02284847A (en) Turret turn control system and device thereof in numerically controlled lathe
JPH0550358A (en) Work carrying-in requisition adding method for numerical control program
JPS62174805A (en) Numerical control system
JPH01200409A (en) Scheduling operation method
JPS6289117A (en) Numerical control device
JPH0619518A (en) Program calling system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371