JP2002328711A - Numerical control method and its device - Google Patents

Numerical control method and its device

Info

Publication number
JP2002328711A
JP2002328711A JP2001130593A JP2001130593A JP2002328711A JP 2002328711 A JP2002328711 A JP 2002328711A JP 2001130593 A JP2001130593 A JP 2001130593A JP 2001130593 A JP2001130593 A JP 2001130593A JP 2002328711 A JP2002328711 A JP 2002328711A
Authority
JP
Japan
Prior art keywords
movable object
movable
evacuation
interference
numerical control
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
JP2001130593A
Other languages
Japanese (ja)
Other versions
JP4599750B2 (en
Inventor
Takahisa Tanaka
貴久 田中
Kazuo Mizutani
和男 水谷
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
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2001130593A priority Critical patent/JP4599750B2/en
Publication of JP2002328711A publication Critical patent/JP2002328711A/en
Application granted granted Critical
Publication of JP4599750B2 publication Critical patent/JP4599750B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a numerical control method and device capable of easily preparing a working program, and ensuring an optimal working time when a plurality of movable objects in numerical control working are interfering each other. SOLUTION: When a plurality of movable objects are interfering each other, one movable object is provided with means 9A, 9B, 10A, 10B, 11A and 11B for automatically escaping mechanical interference by imparting the same moving amounts to the interference escaping direction corresponding to the other movable object.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、共通の移動経路に
沿って移動可能な2つの可動物を有する工作機械におけ
る個々の可動物を、それぞれ個別の加工プログラムによ
り移動制御する数値制御方法及びその装置に係り、特に
2つの可動物の干渉防止制御に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical control method for controlling the movement of individual movable objects in a machine tool having two movable objects that can move along a common movement path by using respective individual machining programs, and a numerical control method therefor. The present invention relates to an apparatus, and particularly to control for preventing interference between two movable objects.

【0002】[0002]

【従来の技術】従来、数値制御装置により工作機械の移
動制御を行う場合、各軸の移動限界を限定し機械的な干
渉を防止するソフトリミット機能があった。なお、この
ソフトリミット機能は、軸の移動が限界を超えると判断
した場合、軸の移動を停止し、アラームを出力するもの
である。
2. Description of the Related Art Conventionally, when the movement control of a machine tool is performed by a numerical controller, there has been a soft limit function for limiting the movement limit of each axis and preventing mechanical interference. Note that this soft limit function stops the movement of the axis and outputs an alarm when it is determined that the movement of the axis exceeds the limit.

【0003】ところがこのような従来のソフトリミット
機能による干渉防止策では、図8のような共通の移動経
路に沿って互いに接近離間する方向に移動可能な可動物
A、Bが個別の加工プログラムに従って加工する場合、2
つの可動物A、Bが接近できる範囲内での同時加工では問
題とならないが、2つの可動物A、Bがそれ以上接近でき
ない加工箇所を加工する場合、その都度ソフトリミット
アラームが発生するため、ソフトリミット範囲を大きく
設定し、互いの可動物A、Bが干渉しないように考慮した
加工プログラムを作成する必要がある。
[0003] However, in such a conventional anti-interference measure using a soft limit function, a movable object which can move in a direction approaching and separating from each other along a common moving path as shown in FIG.
When A and B machine according to individual machining programs, 2
There is no problem with simultaneous machining within the range where two movable objects A and B can approach, but when machining a machining location where two movable objects A and B can no longer approach, a soft limit alarm is generated each time, It is necessary to set a large soft limit range and create a machining program in which the movable objects A and B do not interfere with each other.

【0004】ところが、このように機械の干渉を考慮し
た加工プログラム上での干渉回避策では、加工プログラ
ムのステップ数が大きく複雑な加工の場合、加工プログ
ラムの作成者に大きな負担を強いるという問題点があ
る。なお、図8の工作機械は模式図的に描いてあるが、
実際は、例えば特開平11−242511号公報の図1
及び図2に開示されているような機械である。
[0004] However, such a method of avoiding interference in a machining program in consideration of machine interference imposes a heavy burden on a creator of the machining program when the machining program has a large number of steps and is complex. There is. Although the machine tool of FIG. 8 is schematically drawn,
Actually, for example, FIG. 1 of Japanese Patent Application Laid-Open No.
And a machine as disclosed in FIG.

【0005】そこでこのような問題点の一部を解決しよ
うとするものとして、特開平11−242511号公報
に開示される技術が提案されている。これは図9に示す
ように、一方の可動物(図左側)が他方の可動物(図右
側)に最も接近する位置に基づいて移動範囲Aを設定す
るとともに、この移動範囲Aの設定に基づいて移動範囲
Bを設定し、一方の可動物が、移動範囲A内で他方の可
動物側に最も接近する位置(加工2の位置)に到達した
後、逆方向である離間方向に移動するときは(時間T5-T
6)、両可動物の移動範囲A、Bをそれぞれ縮小及び拡大す
るように移動範囲を変更する手段を設けたものである。
これにより他方の可動物の移動が、移動範囲Bを超えよ
うするとき、移動範囲Aが縮小されて他方の可動物の移
動範囲Bが拡大されるまで、他方の可動物を一時停止さ
せ、他方の可動物の移動範囲Bが拡大された後、他方の
可動物による加工を行うものである。
To solve some of these problems, a technique disclosed in Japanese Patent Application Laid-Open No. H11-242511 has been proposed. This is based on the setting of the moving range A based on the position where one movable object (left side in the figure) comes closest to the other movable object (right side in the figure) as shown in FIG. When one movable object moves to the position closest to the other movable object side (the position of machining 2) within the movable range A, and then moves in the opposite direction, which is the opposite direction, within the movable range A Is (time T5-T
6) Means are provided for changing the moving ranges so that the moving ranges A and B of both movable objects are respectively reduced and enlarged.
Accordingly, when the movement of the other movable object exceeds the movement range B, the other movable object is temporarily stopped until the movement range A is reduced and the movement range B of the other movable object is enlarged. After the moving range B of the movable object is expanded, the processing by the other movable object is performed.

【0006】[0006]

【発明が解決しようとする課題】しかしながら上記技術
では、もしも一方の可動物が他方の可動物側に最も接近
するのが加工サイクル(時間T1〜T8間)の最後の方であ
り、他方の可動物においては、移動範囲Bを超えるが一
方の可動物とは干渉しない位置に加工が存在する場合
(加工1A)、他方の可動物は、移動範囲B以上に移動
することができずにしばらく停止することとなる。つま
り図9において、加工1Aは、時間T2−T3で機械的な干
渉なく加工行うことができるにもかかわらず、時間T6
まで待たされることとなり加工サイクルタイムが伸びて
しまう難点がある。
However, in the above technique, it is the last part of the machining cycle (between time T1 and T8) that one movable object comes closest to the other movable object side, while the other movable object comes closest to the other movable object side. In the case of an animal, if the processing exists at a position that exceeds the movement range B but does not interfere with one movable object (processing 1A), the other movable object cannot move beyond the movement range B and stops for a while. Will be done. That is, in FIG. 9, the processing 1A can be performed without mechanical interference in the time T2-T3, but the processing 1A can be performed in the time T6.
There is a drawback that the machining cycle time is extended.

【0007】本発明はこのような点に鑑みてなされたも
のであり、加工プログラムによる干渉回避策を考慮する
ことなく、しかも最適な加工時間を保証することができ
る数値制御方法及びその装置を提供することを目的とす
る。
The present invention has been made in view of the above points, and provides a numerical control method and a numerical control method capable of guaranteeing an optimum machining time without considering interference avoidance measures by a machining program. The purpose is to do.

【0008】[0008]

【課題を解決するための手段】本発明に係る数値制御方
法は、第一の可動物と第二の可動物とが機械的な干渉を
起こし得るか否か判断し、両者が機械的な干渉を起こし
得ると判断した場合には、退避側の可動物が退避可能状
態であるか否かを判断し、退避側の可動物が退避可能状
態であると判断した場合には、退避側の可動物に対して
干渉回避方向に干渉を回避し得る移動量を与えて干渉回
避を行わせるものである。
According to a numerical control method of the present invention, it is determined whether or not a first movable object and a second movable object can cause mechanical interference. If it is determined that the retractable movable object is in the retractable state, it is determined whether or not the retractable movable object is in the retractable state. The object is provided with a movement amount capable of avoiding the interference in the interference avoiding direction to the animal so as to avoid the interference.

【0009】また本発明に係る数値制御方法は、第一の
可動物と第二の可動物とが機械的な干渉を起こし得るか
否か判断し、両者が機械的な干渉を起こし得ると判断し
た場合には、退避側の可動物が退避可能状態であるか否
かを判断し、退避側の可動物が退避可能状態であると判
断した場合には、退避制御側より退避側の可動物に対し
て退避制御側の移動量と同一の移動量を与えて干渉回避
を行わせるとともに、この退避側の可動物の干渉回避動
作時に、退避制御側の可動物も退避側の可動物方向に移
動するものである。
Further, the numerical control method according to the present invention determines whether or not the first movable object and the second movable object can cause mechanical interference, and determines that both can cause mechanical interference. If the retractable movable object is in the retractable state, it is determined whether the retractable movable object is in the retractable state.If the retractable movable object is determined to be in the retractable state, the retractable movable object is To avoid the interference by giving the same amount of movement as that of the evacuation control side, and during the operation of avoiding the interference of the evacuation side movable object, the evacuation control side movable object also moves in the direction of the evacuation side movable object. Things that move.

【0010】また本発明に係る数値制御装置は、機械的
な干渉を起こし得る第二の可動物の現在位置に基づいて
第一の可動物の実質的な実効可動範囲を算出し、この実
効可動範囲内に前記第一の可動物が存在するか否か判断
する可動範囲チェック手段と、この可動範囲チェック手
段により、前記第一の可動物が実効可動範囲を超え前記
第二の可動物との機械的な干渉があると判断した場合に
は、前記第二の可動物が退避可能状態であるか否かを判
断する退避可能チェック手段と、この退避可能チェック
手段により前記第二の可動物が退避可能であると判断し
た場合には、前記第二の可動物に対して干渉回避方向に
干渉を回避し得る移動量を与えて干渉回避を行わせる退
避制御手段とを有するものである。
The numerical controller according to the present invention calculates a substantial effective movable range of the first movable object based on the current position of the second movable object which may cause mechanical interference, and calculates the effective movable range of the first movable object. A movable range checking means for determining whether or not the first movable object is present in the range; and the movable range checking means allows the first movable object to exceed the effective movable range and to be in contact with the second movable object. If it is determined that there is mechanical interference, evacuation check means for judging whether the second movable object is in the evacuation state, and the second movable object is When it is determined that the evacuation is possible, there is provided evacuation control means for giving an amount of movement capable of avoiding interference to the second movable object in the interference avoidance direction to perform the interference avoidance.

【0011】また本発明に係る数値制御装置は、機械的
な干渉を起こし得る第二の可動物の現在位置に基づいて
第一の可動物の実質的な実効可動範囲を算出し、この実
効可動範囲内に前記第一の可動物が存在するか否か判断
する可動範囲チェック手段と、この可動範囲チェック手
段により、前記第一の可動物が実効可動範囲を超え前記
第二の可動物との機械的な干渉があると判断した場合に
は、前記第二の可動物が退避可能状態であるか否かを判
断する退避可能チェック手段と、この退避可能チェック
手段により前記第二の可動物が退避可能であると判断し
た場合には、前記第一の可動物側より前記第二の可動物
に対して第一の可動物の移動量と同一の移動量を与えて
干渉回避を行わせる退避制御手段とを備え、この第二の
可動物の干渉回避動作時に、第一の可動物も第二の可動
物方向に移動するものである。
Further, the numerical controller according to the present invention calculates a substantial effective movable range of the first movable object based on the current position of the second movable object which may cause mechanical interference, and calculates the effective movable range of the first movable object. A movable range checking means for determining whether or not the first movable object is present in the range; and the movable range checking means allows the first movable object to exceed the effective movable range and to be in contact with the second movable object. If it is determined that there is mechanical interference, evacuation check means for judging whether the second movable object is in the evacuation state, and the second movable object is If it is determined that the evacuation is possible, evacuation is performed by giving the same amount of movement as that of the first movable object from the first movable object side to the second movable object to avoid interference. Control means for preventing interference of the second movable object. During work, the first movable object also is to move to the second movable object direction.

【0012】また本発明に係る数値制御装置は、退避制
御権が、前記第一の可動物と第二の可動物との間で交互
に入れ替わるものである。
In the numerical controller according to the present invention, the evacuation control right is alternately switched between the first movable object and the second movable object.

【0013】また本発明に係る数値制御装置は、前記退
避制御手段を、前記第一の可動物が停止していることを
確認した後、前記第二の可動物に対して干渉回避方向に
移動量を与えるように構成したものである。
In the numerical controller according to the present invention, after confirming that the first movable object is stopped, the evacuation control unit moves the evacuation control unit in the interference avoiding direction with respect to the second movable object. It is configured to give an amount.

【0014】また本発明に係る数値制御装置は、前記退
避可能チェック手段を、加工プログラムによる指令もし
くはラダープログラムが指令する外部信号による指令を
用いて前記第二の可動物が退避可能と判断するように構
成したものである。
In the numerical controller according to the present invention, the retractable check means determines that the second movable object can be retracted by using a command by a machining program or a command by an external signal commanded by a ladder program. It is what was constituted.

【0015】更にまた、本発明に係る数値制御装置は、
前記退避可能チェック手段を、前記第二の可動物が退避
不可状態である場合には、ある一定時間経過後にエラー
出力するように構成したものである。
Still further, the numerical control device according to the present invention comprises:
The evacuation possibility checking means is configured to output an error after a lapse of a certain time when the second movable object is in the evacuation impossible state.

【0016】[0016]

【発明の実施の形態】実施の形態1.以下本発明に係る
数値制御装置の実施の形態1を、図1〜図8を用いて説
明する。先ず本実施の形態1の理解を助けるために、図
2を用いて本実施の形態1による2つの可動物A、Bの基
本的な動きを説明する。即ち、この実施の形態1は共通
の移動経路X軸を持つ2つの系統1(可動物A)と系統
2(可動物B)の干渉防止の制御するものであるが、系
統1(可動物A)が加工プログラム中のある指令ブロッ
クを読み込み、始点Psから終点Peへ向けて移動を開始す
る場合、始点Psと終点Peを結んだ移動経路L1は、図2
から明らかなように途中でPm位置に存在する系統2
(可動物B)と干渉する。そこでこのような場合には、
系統1(可動物A)が、系統2(可動物B)が位置する
Pm位置の手前で一旦停止させ、系統2(可動物B)が加
工状態でなければ、Pm‘位置(系統1(可動物A)と系
統2(可動物B)とが干渉すると判断された位置)と終
点Peを結んだ移動距離L2分だけこの系統2(可動物B)
を矢印方向へ移動させることにより両者の干渉を回避す
るものである。なおこの系統2(可動物B)の退避移動
時に一旦停止した系統1(可動物A)も移動させる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Hereinafter, a numerical control device according to a first embodiment of the present invention will be described with reference to FIGS. First, in order to facilitate understanding of the first embodiment, basic movements of two movable objects A and B according to the first embodiment will be described with reference to FIG. That is, the first embodiment controls interference prevention between two systems 1 (movable objects A) and 2 (movable objects B) having a common movement path X-axis. ) Reads a certain command block in the machining program and starts moving from the start point Ps to the end point Pe, the movement path L1 connecting the start point Ps and the end point Pe is shown in FIG.
As is clear from FIG.
(Movable object B). So in such a case,
System 1 (movable object A) is located and System 2 (movable object B) is located
If the system 2 (movable object B) is temporarily stopped before the Pm position and the system 2 (movable object B) is not in the processing state, the Pm 'position (the position where it is determined that the system 1 (movable object A) and the system 2 (movable object B) interfere with each other) ) And the end point Pe, this system 2 (movable object B) for the moving distance L2
Is moved in the direction of the arrow to avoid interference between the two. Note that the system 1 (movable object A) that has been temporarily stopped when the system 2 (movable object B) is retracted is also moved.

【0017】次に前記制御を行うための詳細について説
明する。即ち、図1は、本発明の実施の形態1による数
値制御装置1A、1Bの全体構成を示すブロック図であ
り、数値制御装置1Aが系統1(可動物A)を制御し、ま
た数値制御装置1Bが系統2(可動物B)を制御する。図
において、3A、3Bは加工プログラム2A、2Bを1ブロック
ずつ読み取り、移動量、速度などをGコードなどに従っ
て解析するプログラム解析手段、4A、4Bは各軸毎の指令
速度を出力する補間手段であり、5A、5Bは補間手段4A、
4Bの出力速度に加減速を行う加減速手段で、各軸毎に設
けられる。6A、6Bはサーボ制御手段であり、加減速手段
5A、5Bの出力を入力としてモータ7A、7Bを駆動制御す
る。8は退避制御中のタイムアウト値などを設定するパ
ラメータ設定手段であり、9A、9Bは2つの可動物が干渉
しない範囲で動作しているかチェックを行う可動範囲チ
ェック手段であり、10A、10Bは可動範囲チェック手段9
A、9Bにて干渉すると判定されたとき退避制御の実施可
否を判定する退避可能チェック手段であり、11A、11Bは
退避可能チェック手段10A、10Bにて退避制御可能と判定
された場合に退避制御を行う退避制御手段である。な
お、エラー発生時には、退避可能チェック手段10A、10B
からアラームが出力される。また14は退避制御権、加
工状態、タイムアウト値、Xbase、移動量等を記憶する
共有メモリである。
Next, details for performing the control will be described. That is, FIG. 1 is a block diagram showing the entire configuration of the numerical control devices 1A and 1B according to the first embodiment of the present invention. The numerical control device 1A controls the system 1 (movable object A), and 1B controls system 2 (movable object B). In the figure, 3A and 3B are program analysis means for reading the machining programs 2A and 2B one block at a time and analyzing the movement amount, speed and the like according to a G code, etc., and 4A and 4B are interpolation means for outputting a command speed for each axis. Yes, 5A, 5B are interpolation means 4A,
Acceleration / deceleration means for accelerating / decelerating the output speed of 4B, and is provided for each axis. 6A and 6B are servo control means, acceleration / deceleration means
The drive of the motors 7A and 7B is controlled using the outputs of 5A and 5B as inputs. Reference numeral 8 denotes a parameter setting means for setting a timeout value during evacuation control, etc. 9A and 9B are movable range checking means for checking whether the two movable objects are operating within a range where they do not interfere with each other, and 10A and 10B are movable. Range checking means 9
Evacuation check means for judging whether or not the evacuation control can be performed when it is determined that the evacuation control is performed in A and 9B. Evacuation control is performed when the evacuation control means 10A and 10B determine that the evacuation control is possible. Evacuation control means. When an error occurs, the evacuation check means 10A, 10B
Outputs an alarm. Reference numeral 14 denotes a shared memory for storing the evacuation control right, the machining state, the timeout value, the Xbase, the movement amount, and the like.

【0018】次に、図1の可動範囲チェック手段9A、9B、
退避可能チェック手段10A、10B及び退避制御手段11A、11B
の動作について、主に図3〜図5を用いて説明する。な
お、この可動範囲チェック手段9A、9B、退避可能チェッ
ク手段10A、10B及び退避制御手段11A、11Bは、ある一定の
サンプリング周期(例えば10ms)毎に補間手段4A、4Bか
ら呼出されて処理が行われる。以下に説明する図3〜図
5の処理は全てこのサンプリング周期毎に処理される。
また、本実施の形態1は、系統1(可動物A)と系統2
(可動物B)との間で主導権(退避制御権)を交互にや
りとりするものであるが、図1及び以下の説明は、主に
系統1(可動物A)が系統2(可動物B)に対して主導権
(退避制御権)を握っており、系統1(可動物A)から
見た制御の例である。
Next, the movable range checking means 9A, 9B,
Evacuation check means 10A, 10B and evacuation control means 11A, 11B
3 will be described mainly with reference to FIGS. Note that the movable range checking means 9A and 9B, the evacuation possible checking means 10A and 10B, and the evacuation control means 11A and 11B are called from the interpolating means 4A and 4B at a certain sampling cycle (for example, 10 ms) to perform processing. Will be 3 to 5 described below are all processed in each sampling cycle.
In the first embodiment, the system 1 (movable object A) and the system 2
The initiative (evacuation control right) is alternately exchanged with (movable object B). In FIG. 1 and the following description, system 1 (movable object A) is mainly connected to system 2 (movable object B). ) Has the initiative (evacuation control right) with respect to the system 1 (movable object A).

【0019】まず、可動範囲チェック手段9Aの処理手順
を図3に示したフローチャートを参照して説明する。系
統1(可動物A)が系統2(可動物B)に対して干渉して
いるか判定する可動チェック手段9Aでは、サンプリング
周期毎に起動された可動チェック手段9Aの前回までの処
理において、干渉していると判定し処理手順を退避可能
チェック手段10Aに処理を移行したか否かを示す退避可
能チェックフラグがONしているかどうか調べる(ステッ
プS1)。ここで既に系統1(可動物A)が系統2(可動
物B)に干渉すると判定され、退避可能チェックフラグ
がONしている場合には処理を終了し、フラグがOFFして
いる場合には、補間手段4Aにて算出された補間後の指令
位置(FΔt)を取得する(ステップS2)。
First, the processing procedure of the movable range checking means 9A will be described with reference to the flowchart shown in FIG. In the movable check means 9A which determines whether the system 1 (movable object A) is interfering with the system 2 (movable object B), the movable check means 9A activated in each sampling period has not interfered with the previous processing. It is determined whether or not the evacuation possible check flag indicating whether the processing has been transferred to the evacuation possible checking means 10A is ON or not (step S1). Here, it is determined that the system 1 (movable object A) has already interfered with the system 2 (movable object B), and the process ends when the evacuation possibility check flag is ON, and when the flag is OFF, Then, the command position (FΔt) after interpolation calculated by the interpolation means 4A is obtained (step S2).

【0020】次に、図2に示すように、系統1(可動物
A)の機械座標原点と系統2(可動物B)の機械座標原点
が異なるため、予めパラメータ設定手段8などにより予
め設定された系統1(可動物A)と系統2(可動物B)と
の機械原点距離Xbaseを共有メモリ14から取得する
(ステップS3)。次に共有メモリ14に記憶されている
干渉チェック対象である系統2(可動物B)のX軸機械座
標を取得し、この系統2(可動物B)のX軸機械座標に前
記距離Xbaseを加えることにより、系統1(可動物A)の
機械座標系で表された系統2(可動物B)のX軸機械座標
を取得する(ステップS4)。例えば、機械原点距離Xbas
eが50,000で、系統2(可動物B)のX座標が20,000の場
合(系統2のX座標が系統1の機械原点方向を+方向と
してプログラムされる場合)、系統1(可動物A)の機械
座標系で系統2(可動物B)のX軸機械座標は、30,000
(=50,000−20,000)と表される。
Next, as shown in FIG.
Since the mechanical coordinate origin of A) is different from the mechanical coordinate origin of the system 2 (movable object B), the system 1 (movable object A) and the system 2 (movable object B) are preset by the parameter setting means 8 or the like. The machine origin distance Xbase is obtained from the shared memory 14 (step S3). Next, the X-axis machine coordinates of the system 2 (movable object B) to be checked for interference stored in the shared memory 14 are acquired, and the distance Xbase is added to the X-axis machine coordinates of the system 2 (movable object B). Thereby, the X-axis machine coordinates of the system 2 (movable object B) represented by the machine coordinate system of the system 1 (movable object A) are obtained (step S4). For example, the machine origin distance Xbas
If e is 50,000 and the X coordinate of system 2 (movable object B) is 20,000 (when the X coordinate of system 2 is programmed with the machine origin direction of system 1 as + direction), the system 1 (movable object A) The X-axis machine coordinate of system 2 (movable object B) in the machine coordinate system is 30,000
(= 50,000-20,000).

【0021】次に、数値制御装置が従来から保有してい
るソフトリミット機能(系統1(可動物A)及び系統2
(可動物B)の支障のない可動範囲を決定する機能)を
用いて、当初は系統1(可動物A)と系統2(可動物B)
とが干渉する範囲も含んだソフトリミット値が設定され
ているので、系統1(可動物A)が系統2(可動物B)と
干渉することなく動作する実効可動範囲を求める。即
ち、ステップS4で求めた系統2(可動物B)のX軸機械座
標が系統1(可動物A)のX軸機械座標系より+側にある
かどうか判定し(ステップS5)、+側にある場合には、
系統1(可動物A)におけるソフトリミット機能のソフ
トリミット値のプラス側を変更し(ステップS6)、−側
にある場合には、マイナス側のソフトリミット値を変更
して(ステップS7)実効可動範囲とする。例えば、系統
1(可動物A)がX20,000の位置にあり、また系統2(可
動物B)がX30,000(系統1(可動物A)の機械座標系で
表されたX軸機械座標)である場合、系統2(可動物B)
のX座標30,000が、系統1(可動物A)のX座標20,000よ
り+側にあるので、系統1(可動物A)のプラス側のソ
フトリミット値をX30,000−α(α:系統1(可動物A)
及び系統2(可動物B)の機械的構造物による両者の干
渉を考慮した値で、パラメータ設定されている)に変更
する。
Next, the soft limit function (system 1 (movable object A) and system 2
(Function to determine the movable range where hindrance of movable object B does not hinder) system 1 (movable object A) and system 2 (movable object B)
Since the soft limit value including the range in which the system 1 interferes is set, the effective movable range in which the system 1 (movable object A) operates without interfering with the system 2 (movable object B) is determined. That is, it is determined whether or not the X-axis machine coordinate of the system 2 (movable object B) obtained in step S4 is on the + side with respect to the X-axis mechanical coordinate system of system 1 (movable object A) (step S5). In some cases,
The soft limit value of the soft limit function of the system 1 (movable object A) is changed on the plus side (step S6), and when it is on the minus side, the soft limit value on the minus side is changed (step S7), and the effective movement is performed. Range. For example, system 1 (movable object A) is at the position of X20,000, and system 2 (movable object B) is X30,000 (X-axis machine coordinate expressed in the machine coordinate system of system 1 (movable object A)). ), System 2 (movable object B)
30,000 is located on the + side from the X coordinate 20,000 of the system 1 (movable object A), so the soft limit value on the plus side of the system 1 (movable object A) is X30,000-α (α: system 1 ( Movable object A)
And a value that takes into account the interference between the two by the mechanical structure of the system 2 (movable object B) and is set to a parameter).

【0022】次に、系統1(可動物A)の現在位置に補
間後の指令位置を加えて(ステップS8)、補間後の指
令位置が実効可動範囲を超えるか否かチェックを行う
(ステップS9)。補間後の指令位置が実効可動範囲を
超える場合には、退避可能チェック処理を起動するため
の退避可能チェックフラグをONし(ステップS10)、共
有メモリ11に記憶されている退避可能チェック用のタ
イムアウト値を読み込み設定する(ステップS11)。な
お、本タイムアウト値は、パラメータ設定手段8により
変更が可能なものである。補間後の指令位置が実効可動
範囲を超えない場合には、本実施の形態で使用する全て
のフラグをOFFする(ステップS12)。
Next, the command position after interpolation is added to the current position of the system 1 (movable object A) (step S8), and it is checked whether the command position after interpolation exceeds the effective movable range (step S9). ). If the command position after interpolation exceeds the effective movable range, the evacuation check flag for starting the evacuation check processing is turned on (step S10), and the evacuation check time-out stored in the shared memory 11 is performed. The value is read and set (step S11). This timeout value can be changed by the parameter setting means 8. If the command position after the interpolation does not exceed the effective movable range, all the flags used in the present embodiment are turned off (step S12).

【0023】次に、退避可能チェック手段10Aの処理手
順を図4に示したフローチャートを参照して説明する。
退避可能チェック手段10Aでは、可動範囲チェック手段9
Aにて系統1(可動物A)が系統2(可動物B)に干渉す
ると判定されたとき、退避制御手段11Aを有効とするか
否かの判定を行う。まず、サンプリング周期毎に起動さ
れる退避可能チェック手段10Aの前回までの処理におい
て、退避制御手段11Aが有効と判定されているか否かを
示す退避制御REQフラグを調べる(ステップS20)。ここ
で、退避制御手段11が有効であることを示す退避制御RE
QフラグがONしている場合には、以後の処理を行わずに
終了し、退避制御REQフラグOFFしている場合には、可動
範囲チェック手段9Aにて設定された、系統1(可動物
A)が系統2(可動物B)に干渉しているか否かを示す退
避可能チェックフラグを調べる(ステップS21)。退避
可能チェックフラグがOFFしている場合には、以後の処
理を行わずに終了し、退避可能チェックフラグがONして
いる場合には、系統2(可動物B)の加工状態を共有メ
モリ14より取得する(ステップS22)。
Next, the processing procedure of the evacuation possibility checking means 10A will be described with reference to the flowchart shown in FIG.
The retractable check means 10A includes the movable range check means 9
When it is determined in A that the system 1 (movable object A) interferes with the system 2 (movable object B), it is determined whether or not the evacuation control means 11A is enabled. First, the evacuation control REQ flag indicating whether or not the evacuation control means 11A has been determined to be valid in the previous processing of the evacuation possibility checking means 10A activated at each sampling cycle is checked (step S20). Here, the evacuation control RE indicating that the evacuation control means 11 is valid
If the Q flag is ON, the process is terminated without performing the subsequent processing. If the evacuation control REQ flag is OFF, the system 1 (movable object) set by the movable range checking means 9A is set.
The evacuation check flag indicating whether or not A) is interfering with the system 2 (movable object B) is checked (step S21). If the retractable check flag is OFF, the process is terminated without performing the subsequent processing. If the retractable check flag is ON, the machining state of the system 2 (movable object B) is Is obtained (step S22).

【0024】なお、共有メモリ14中に記憶される加工
状態を示すデータは次のようなものである。即ち、加工
プログラムとして例えば次のようなもの(特に重要な命
令以外については、その具体的な指令値を省略してあ
る)が用いられるので、共有メモリ14には、G150
(加工中であることを示す指令)またはG150.1
(加工中であることをキャンセルする指令)が加工状態
を示すデータとして記憶される。 N10 G150 G00 X ; N20 G01 Z ; N30 Z ; N40 G150.1; なおこの加工プログラムは、指令ブロックN10におい
てコードG150により加工状態であることが設定さ
れ。指令ブロックN20、N30にて、実際の切削が行
われ、指令ブロックN40では、コードG150.1に
より加工状態がキャンセルされるものである。
The data indicating the machining state stored in the shared memory 14 is as follows. That is, for example, the following program (specific command values are omitted for commands other than particularly important commands) is used as the machining program.
(Instruction indicating that processing is in progress) or G150.1
(Instruction to cancel that processing is being performed) is stored as data indicating the processing state. N10 G150 G00 X Y Z N20 G01 Z F N30 Z N40 G150.1; Note that this processing program is set to the processing state by the code G150 in the command block N10. In command blocks N20 and N30, actual cutting is performed, and in command block N40, the machining state is canceled by code G150.1.

【0025】ここで系統2(可動物B)が、共有メモリ
14内に記憶されているG150又はG150.1を参
照することにより加工中であるか否か調べ(ステップS2
3)、加工中でない場合には、退避制御手段11Aを有効と
する退避制御REQフラグをONにする(ステップS25)。系
統2(可動物B)が加工中である場合には、可動範囲チ
ェック手段9Aで設定されたタイムアウト値を更新する
(ステップS24)。
Here, it is checked whether or not the system 2 (movable object B) is processing by referring to G150 or G150.1 stored in the shared memory 14 (step S2).
3) If the machining is not being performed, the evacuation control REQ flag for enabling the evacuation control means 11A is turned on (step S25). If the system 2 (movable object B) is being machined, the timeout value set by the movable range check means 9A is updated (step S24).

【0026】次に、更新されたタイムアウト値がタイム
アウトしているか否か調べ(ステップS26)、タイムア
ウトしている場合には、本実施の形態1で使用する各種
フラグをOFFし(ステップS27)、エラーメッセージを出
力するなどのエラー処理を実行する(ステップS28)。
タイムアウトしていない場合には、以後の処理を行わず
に終了する。なお、このタイムアウト値は、系統1(可
動物A)が停止している時間を決定するためのもので、
系統2(可動物B)における所定のブロックの加工時間
等を考慮して決定されるが、系統1(可動物A)が、系
統2(可動物B)が加工中以外の原因で停止している場
合も想定されるので、この系統1(可動物A)が、系統
2(可動物B)が加工中以外の原因で停止している場合
にエラー処理をするものである。
Next, it is checked whether or not the updated timeout value has timed out (step S26). If it has timed out, various flags used in the first embodiment are turned off (step S27). Error processing such as outputting an error message is executed (step S28).
If the timeout has not occurred, the process ends without performing the subsequent processing. This timeout value is used to determine the time during which the system 1 (movable object A) is stopped.
Although it is determined in consideration of the processing time of a predetermined block in the system 2 (movable object B), the system 1 (movable object A) stops due to a cause other than the system 2 (movable object B) being processed. The system 1 (movable object A) performs error processing when the system 2 (movable object B) is stopped due to a cause other than processing.

【0027】次に、退避制御手段11A、11Bの処理手順を
図5に示したフローチャートを参照して説明する。ここ
では、退避可能チェック手段10Aにて退避制御可能と判
定されたか否か退避制御REQフラグを調べ(ステップS3
0)、退避制御REQフラグがOFFしている場合には、以後
の処理を実行せずに終了し、退避制御REQフラグがONし
ている場合には、現在、退避制御が実行中か否かを示す
退避制御ACTフラグを調べる(ステップS31)。退避制御
ACTフラグがONし、既に退避制御が実行されている場合
には、ステップS35に移行する。退避制御ACTフラグがOF
Fしており退避制御が行われていない場合には、サーボ
フィードバック信号の有無を用いて系統1(可動物A)
が停止しているか否か調べる(ステップS32)。停止し
ていない場合には、系統1(可動物A)の移動量0と
し、停止動作を実行させる(ステップS34)。また、既
に系統1(可動物A)が停止している場合には、退避制
御ACTフラグをONさせる(ステップS33)。なお、ステッ
プS32で系統1(可動物A)が停止しているか否か調べる
のは、系統2(可動物B)が動き始める前に系統1(可
動物A)が系統2(可動物B)側に移動し、系統1(可動
物A)が系統2(可動物B)に衝突するのを防止するため
である。
Next, the processing procedure of the evacuation control means 11A and 11B will be described with reference to the flowchart shown in FIG. Here, the evacuation control REQ flag is checked to determine whether the evacuation control means 10A has determined that the evacuation control is possible (step S3).
0), if the evacuation control REQ flag is OFF, the process ends without executing the subsequent processing, and if the evacuation control REQ flag is ON, whether the evacuation control is currently being executed or not. Is checked (step S31). Evacuation control
If the ACT flag is ON and the evacuation control has already been executed, the process proceeds to step S35. Evacuation control ACT flag is OF
When the evacuation control is not performed because of F, the system 1 (movable object A) is determined by using the presence or absence of the servo feedback signal.
It is checked whether or not is stopped (step S32). If not stopped, the movement amount of the system 1 (movable object A) is set to 0, and the stop operation is executed (step S34). If the system 1 (movable object A) has already stopped, the evacuation control ACT flag is turned on (step S33). It is to be noted that whether or not the system 1 (movable object A) is stopped in step S32 is determined before the system 2 (movable object B) starts moving before the system 1 (movable object A) is started. This is to prevent the system 1 (movable object A) from colliding with the system 2 (movable object B).

【0028】次に、退避制御ACTフラグがONし退避制御
中の場合、共有メモリ14に格納されている退避制御権
を調べることにより、系統1(可動物A)が被退避制御
側か、系統2(可動物B)が被退避制御側かを判定する
(ステップS35)。即ち、系統1(可動物A)が被退避制
御側で系統2(可動物B)が退避制御側か、または系統
1(可動物A)が退避制御側で系統2(可動物B)が被退
避制御側かを判定する。この場合、未だ系統1(可動物
A)が退避制御側で系統2(可動物B)が被退避制御側で
あるので、ステップS38に移行して現在実行中のブロッ
クが完了したか否か判断し、現在実行中のブロックが完
了していない場合には、現状自分自身の移動量(指令位
置)を被退避制御側である系統2(可動物B)の加減速
手段5Bの入力として渡すために共有メモリ14上に記憶
する。また、現在実行中のブロックが完了している場合
には、共有メモリ14上に退避制御権を被退避制御側で
ある系統2(可動物B)へ移行させるためその情報を書
き込み(ステップS40)、各種フラグをクリアする(ス
テップS41)。このとき、系統2(可動物B)側が被退避
制御側であるので、系統2(可動物B)の退避制御手段1
1Bが、系統1(可動物A)の移動量(指令位置)を共有
メモリ14より取得し(ステップS36)、取得した移動
量(指令位置)を割り込み量として登録する(ステップ
S37)。この取得した移動量(指令位置)を加減速手段5
Bに入力することにより、系統2(可動物B)の退避行動
を実施する。
Next, when the evacuation control ACT flag is turned ON and the evacuation control is being performed, the evacuation control right stored in the shared memory 14 is checked to determine whether the system 1 (movable object A) is on the evacuation control side or the system. It is determined whether 2 (movable object B) is on the retreat control side (step S35). That is, system 1 (movable object A) is the evacuation control side and system 2 (movable object B) is the evacuation control side, or system 1 (movable object A) is the evacuation control side and system 2 (movable object B) is the evacuation control side. It is determined whether it is the evacuation control side. In this case, system 1 (movable object
Since A) is the evacuation control side and the system 2 (movable object B) is the evacuation control side, the flow shifts to step S38 to determine whether or not the currently executing block is completed, and the currently executing block is completed. If not, the current movement amount (command position) of itself is stored on the shared memory 14 so as to be passed as an input to the acceleration / deceleration means 5B of the system 2 (movable object B) on the retreat control side. If the block currently being executed has been completed, the information is written in the shared memory 14 in order to transfer the evacuation control right to the system 2 (movable object B) on the evacuation control side (step S40). Then, various flags are cleared (step S41). At this time, since the system 2 (movable object B) side is the evacuation control side, the evacuation control means 1 of the system 2 (movable object B)
1B acquires the movement amount (command position) of the system 1 (movable object A) from the shared memory 14 (step S36), and registers the acquired movement amount (command position) as an interruption amount (step S36).
S37). The obtained movement amount (command position) is stored in the acceleration / deceleration
By inputting to B, the evacuation behavior of the system 2 (movable object B) is performed.

【0029】また、被退避制御側である系統2(可動物
B)が退避制御権を取得して系統1(可動物A)に対して
退避制御可能となり、移動を開始する場合、前記割り込
み量を元に戻す処理が働き、系統2(可動物B)は元の
位置に復元される。即ち、系統2(可動物B)の加工プロ
グラムより系統2(可動物B)に指令が与えられた時、加
工プログラムの指令位置に前記系統1(可動物A)側よ
り取得した移動量(指令位置)を足し込んだ指令位置ま
で移動する。
The system 2 (movable object) on the side of the evacuation control
When B) acquires the evacuation control right and becomes able to perform evacuation control with respect to the system 1 (movable object A) and starts moving, the process of restoring the interrupt amount works, and the system 2 (movable object B) It is restored to its original position. That is, when a command is given to the system 2 (movable object B) from the machining program of the system 2 (movable object B), the movement amount (command) acquired from the system 1 (movable object A) to the command position of the machining program. Position) to the commanded position.

【0030】なお上記の説明では、主に系統1(可動物
A)が系統2(可動物B)に対して主導権(退避制御権)
を握っており、系統1(可動物A)から見た制御の例に
ついて説明したが、系統1(可動物A)が系統2(可動
物B)に対して主導権(退避制御権)を握っている場合
にあっても、系統2(可動物B)の可動範囲チェック手
段9B、退避可能チェック手段10B及び退避制御手段11Bも
前記と同様に並行して動作する。また、系統2(可動物
B)が系統1(可動物A)に対して主導権(退避制御権)
を握っており、系統2(可動物B)から見た制御の場合
であっても同様である。なおこの場合の制御ブロック図
は図6に示すようになる。
In the above description, mainly the system 1 (movable object)
A) takes control of system 2 (movable object B) (evacuation control right)
The example of the control viewed from the system 1 (movable object A) has been described. However, the system 1 (movable object A) has the initiative (evacuation control right) for the system 2 (movable object B). In this case, the movable range checking means 9B, the retreatable checking means 10B and the retreat control means 11B of the system 2 (movable object B) also operate in parallel in the same manner as described above. In addition, system 2 (movable object
B) takes control of system 1 (movable object A) (evacuation control right)
The same applies to the case of control from the viewpoint of the system 2 (movable object B). The control block diagram in this case is as shown in FIG.

【0031】このように、本実施の形態1では、干渉退
避制御を自動的に行うようにしたことにより、加工プロ
グラム作成者の負荷を軽減し、最適な加工時間を保証す
ることができる。例えば本実施の形態1のもので、図9
に示す加工を行う場合、系統1(可動物A)及び系統2
(可動物B)の動作は図7に示すようになり、明らかに
加工時間が短縮されていることがわかる。
As described above, in the first embodiment, by automatically performing the interference retreat control, the load on the machining program creator can be reduced, and the optimal machining time can be guaranteed. For example, in the first embodiment, FIG.
When performing the processing shown in (1), system 1 (movable object A) and system 2
The operation of (movable object B) is as shown in FIG. 7, and it can be seen that the processing time is clearly reduced.

【0032】実施の形態2.前記実施の形態1では、退
避可能判定をパラメータに設定された時間分監視するよ
うにしたが、パラメータ設定値に0のような特別な意味
合いのある数値を含ませることにより、無限の時間を監
視することも容易にできる。
Embodiment 2 In the first embodiment, the evacuation determination is monitored for the time set in the parameter, but the infinite time is monitored by including a numerical value having a special meaning such as 0 in the parameter setting value. Can be easily done.

【0033】また、前記実施の形態1では、退避可能判
定を監視する時間をパラメータにて設定するようにした
が、シーケンスプログラムによる時間を設定にすること
も可能である。
In the first embodiment, the time for monitoring the evacuation determination is set by the parameter, but the time by the sequence program can be set.

【0034】また、前記実施の形態1では、退避制御権
を交互にやり取りするようにしたが、パラメータ設定に
より、電源ON時には必ず何れかの系統が所持するよう
設定することも可能である。
In the first embodiment, the evacuation control right is exchanged alternately. However, it is also possible to set so that any system is always possessed when the power is turned on by setting parameters.

【0035】また、前記実施の形態1では、退避可能チ
ェック手段10A,10Bが、加工プログラム中に記載
されたG150、GG150.1を参照することにより相
手方系統が加工中か否かを判断するようにしたが、退避
可能チェック手段10A,10Bが、ラダープログラム
からの信号を参照することにより相手方系統が加工中か
否かを判断するようにしてもよい。例えばY300の信
号がONしている間は加工中であると見なし、OFFし
ている場合は非加工中と見なすようにしてもよい。
In the first embodiment, the retreat-possible check means 10A and 10B determine whether or not the partner system is under machining by referring to G150 and GG150.1 described in the machining program. However, the evacuation possibility checking means 10A and 10B may determine whether or not the partner system is being processed by referring to a signal from the ladder program. For example, while the signal of Y300 is ON, it may be considered that processing is being performed, and when it is OFF, it may be considered that processing is not being performed.

【0036】また、前記実施の形態1では、他方の可動
物に対して干渉回避方向に与えられる干渉を回避し得る
移動量を、機械的な干渉があると判断されてから第一の
可動物に対して与えられる移動量と同一量としたが、そ
れより多い移動量を与えても初期の目的は達成できる。
Further, in the first embodiment, the amount of movement that can avoid the interference given to the other movable object in the interference avoiding direction is changed by the first movable object after it is determined that there is mechanical interference. Although the amount of movement is the same as the amount given to, the initial purpose can be achieved by giving a larger amount of movement.

【0037】また、前記実施の形態1では、一方の可動
物が停止していることを確認した後、他方の可動物に対
して干渉回避方向に移動量を与えるようにしているが、
一方の可動物が停止していることを確認することなく、
他方の可動物に対して干渉回避方向に移動量を与えて
も、初期の目的は達成できる。
In the first embodiment, after confirming that one of the movable objects is stopped, the amount of movement is given to the other movable object in the interference avoiding direction.
Without confirming that one movable object is stopped,
Even if the moving amount is given to the other movable object in the interference avoiding direction, the initial purpose can be achieved.

【0038】[0038]

【発明の効果】以上説明したように本発明によれば、第
一の可動物と第二の可動物とが干渉する際、退避側の可
動物が退避可能であると判断した場合には、退避側の可
動物に対して干渉回避方向に干渉を回避し得る移動量を
与えて干渉回避を行わせるので、両者の機械的な干渉が
自動的に回避され、よって加工プログラムの作成が容易
となり、しかも最適な加工時間を保証することができ
る。
As explained above, according to the present invention, when the first movable object and the second movable object interfere with each other, if it is determined that the movable object on the retreat side can be retracted, The retreat-side movable object is given an amount of movement capable of avoiding interference in the interference avoidance direction to perform interference avoidance, so that mechanical interference between the two is automatically avoided, thereby facilitating creation of a machining program. In addition, an optimum machining time can be guaranteed.

【0039】また本発明によれば、第一の可動物と第二
の可動物とが干渉する際、退避側の可動物が退避可能で
あると判断した場合には、退避制御側より退避側の可動
物に対して退避制御側の移動量と同一の移動量を与えて
干渉回避を行わせるとともに、この退避側の可動物の干
渉回避動作時に、退避制御側の可動物も退避側の可動物
方向に移動するので、両者の機械的な干渉が自動的に回
避され、よって加工プログラムの作成が容易となり、し
かも最適な加工時間を保証することができる。また退避
側の可動物の退避距離が最小となるとともに、退避制御
側の可動物も迅速に加工位置に移動でき、よって退避制
御側が加工を開始するとき、また退避制御側の加工が終
了した後に退避側が加工を開始するとき、迅速に加工を
開始することが可能となる。
Further, according to the present invention, when the first movable object and the second movable object interfere with each other, if it is determined that the movable object on the retreat side can be retracted, the retreat control side switches to the retreat side. The same amount of movement as that of the evacuation control side is applied to the movable object of the evacuation control side to avoid interference. Since it moves in the animal direction, mechanical interference between the two is automatically avoided, thereby facilitating the creation of a machining program and guaranteeing an optimal machining time. In addition, the retreat distance of the movable object on the retreat side is minimized, and the movable object on the retreat control side can also quickly move to the processing position, so that when the retreat control side starts processing, and after the retreat control side processing is completed, When the retreating side starts processing, processing can be started quickly.

【0040】また本発明によれば、退避制御権が第一の
可動物と第二の可動物との間で交互に入れ替わるので、
即ち一方の可動物側のみが退避制御権を独占することが
ないので、第一の可動物と第二の可動物の加工サイクル
タイムが均等化される。
According to the present invention, the evacuation control right is alternately switched between the first movable object and the second movable object.
That is, since only one movable object side does not monopolize the evacuation control right, the processing cycle times of the first movable object and the second movable object are equalized.

【0041】また本発明によれば、第一の可動物が停止
していることを確認した後、第二の可動物に対して干渉
回避方向に移動量を与えるように構成したので、何らか
の原因により第二の可動物が干渉回避方向に移動しない
場合であっても、第一の可動物が第二の可動物に干渉す
ることがなくなり、安全な数値制御装置を得ることがで
きる。
Further, according to the present invention, after confirming that the first movable object has stopped, the amount of movement is given to the second movable object in the interference avoiding direction. Accordingly, even when the second movable object does not move in the interference avoiding direction, the first movable object does not interfere with the second movable object, and a safe numerical control device can be obtained.

【0042】また本発明によれば、加工プログラムによ
る指令もしくはラダープログラムが指令する外部信号に
よる指令を用いて前記第二の可動物が退避可能と判断す
るように構成したので、退避制御の自由度が拡大し、よ
り安全に生産効率を向上できる。
Further, according to the present invention, the second movable object is determined to be retractable using a command from a machining program or a command from an external signal issued from a ladder program. Can be increased and production efficiency can be improved more safely.

【0043】また本発明によれば、第二の可動物が退避
不可状態である場合には、ある一定時間経過後にエラー
出力するように構成したので、複数の可動物が互いにエ
ラー出力の発生頻度が低くなり生産効率が向上する。
Further, according to the present invention, when the second movable object is in the non-evacuable state, an error is output after a certain period of time. And production efficiency is improved.

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

【図1】 本発明の実施の形態1に係る、系統1が退避
制御権を握っている場合の数値制御装置の構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration of a numerical control device according to Embodiment 1 of the present invention when system 1 has an evacuation control right.

【図2】 本発明の実施の形態1に係る2つの可動物
A、Bの動きを説明するための図である。
FIG. 2 shows two movable objects according to the first embodiment of the present invention.
It is a figure for explaining the movement of A and B.

【図3】 本発明の実施の形態1に係る可動範囲チェッ
ク手段の処理手順を示すフローチャートである。
FIG. 3 is a flowchart showing a processing procedure of a movable range check unit according to the first embodiment of the present invention.

【図4】 本発明の実施の形態1に係る退避可能チェッ
ク手段の処理手順を示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure of an evacuation possibility checking unit according to the first embodiment of the present invention.

【図5】 本発明の実施の形態1に係る退避制御手段の
処理手順を示すフローチャートである。
FIG. 5 is a flowchart showing a processing procedure of an evacuation control unit according to the first embodiment of the present invention.

【図6】 本発明の実施の形態1に係る、系統2が退避
制御権を握っている場合の数値制御装置の構成を示すブ
ロック図である。
FIG. 6 is a block diagram showing a configuration of a numerical control device according to Embodiment 1 of the present invention when the system 2 has the evacuation control right.

【図7】 本発明の実施の形態1に係る効果を示す図で
ある。
FIG. 7 is a diagram showing an effect according to the first embodiment of the present invention.

【図8】 本発明の実施の形態1に係る数値制御装置で
制御される工作機械を示す図である。
FIG. 8 is a diagram showing a machine tool controlled by the numerical control device according to the first embodiment of the present invention.

【図9】 従来例を説明するための図である。FIG. 9 is a diagram for explaining a conventional example.

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

1A、1B 数値制御装置、2A、2B 加工プログラム、3A、3
B プログラム解析手段、4A、4B 補間手段、5A、5B
加減速手段、6A、6B サーボ制御手段、7A、7Bモータ、
8 パラメータ設定手段、9A、9B 可動範囲チェック手
段、10A、10B退避可能チェック手段、11A、11B 退避制
御手段、14 共有メモリ。
1A, 1B Numerical controller, 2A, 2B Machining program, 3A, 3
B Program analysis means, 4A, 4B Interpolation means, 5A, 5B
Acceleration / deceleration means, 6A, 6B servo control means, 7A, 7B motor,
8 Parameter setting means, 9A, 9B Movable range check means, 10A, 10B evacuation possible check means, 11A, 11B evacuation control means, 14 shared memory.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 共通の移動経路上に存在する第一、第二
の可動物を制御する数値制御方法において、前記第一の
可動物と第二の可動物とが機械的な干渉を起こし得るか
否か判断し、両者が機械的な干渉を起こし得ると判断し
た場合には、退避側の可動物が退避可能状態であるか否
かを判断し、退避側の可動物が退避可能状態であると判
断した場合には、退避側の可動物に対して干渉回避方向
に干渉を回避し得る移動量を与えて干渉回避を行わせる
ことを特徴とする数値制御方法。
In a numerical control method for controlling first and second movable objects existing on a common movement path, the first movable object and the second movable object may cause mechanical interference. It is determined whether or not both may cause mechanical interference, and it is determined whether or not the retractable movable object is in a retractable state. When it is determined that there is a moving object, a moving amount capable of avoiding interference in the interference avoiding direction is given to the retreat-side movable object to perform the interference avoidance.
【請求項2】 共通の移動経路上に存在する第一、第二
の可動物を制御する数値制御方法において、前記第一の
可動物と第二の可動物とが機械的な干渉を起こし得るか
否か判断し、両者が機械的な干渉を起こし得ると判断し
た場合には、退避側の可動物が退避可能状態であるか否
かを判断し、退避側の可動物が退避可能状態であると判
断した場合には、退避制御側より退避側の可動物に対し
て退避制御側の移動量と同一の移動量を与えて干渉回避
を行わせるとともに、この退避側の可動物の干渉回避動
作時に、退避制御側の可動物も退避側の可動物方向に移
動することを特徴とする数値制御方法。
2. A numerical control method for controlling first and second movable objects existing on a common moving path, wherein the first movable object and the second movable object may cause mechanical interference. It is determined whether or not both may cause mechanical interference, and it is determined whether or not the retractable movable object is in a retractable state. If it is determined that there is, the evacuation control side gives the same amount of movement as that of the evacuation control side to the evacuation side movable object so as to avoid the interference, and to avoid the interference of the evacuation side movable object. A numerical control method, wherein a movable object on the evacuation control side also moves in the direction of the movable object on the evacuation side during operation.
【請求項3】 共通の移動経路上に存在する第一、第二
の可動物を制御する数値制御装置において、機械的な干
渉を起こし得る第二の可動物の現在位置に基づいて第一
の可動物の実質的な実効可動範囲を算出し、この実効可
動範囲内に前記第一の可動物が存在するか否か判断する
可動範囲チェック手段と、この可動範囲チェック手段に
より、前記第一の可動物が実効可動範囲を超え前記第二
の可動物との機械的な干渉があると判断した場合には、
前記第二の可動物が退避可能状態であるか否かを判断す
る退避可能チェック手段と、この退避可能チェック手段
により前記第二の可動物が退避可能であると判断した場
合には、前記第二の可動物に対して干渉回避方向に干渉
を回避し得る移動量を与えて干渉回避を行わせる退避制
御手段とを有することを特徴とする数値制御装置。
3. A numerical control device for controlling first and second movable objects existing on a common movement path, based on a current position of the second movable object that may cause mechanical interference. A movable range check unit that calculates a substantial effective movable range of the movable object and determines whether the first movable object exists within the effective movable range; If it is determined that the movable object exceeds the effective movable range and there is mechanical interference with the second movable object,
Evacuation check means for judging whether or not the second movable object is in an evacuation state; and if the evacuation check means determines that the second movable object is evacuation, A numerical control device, comprising: evacuation control means for giving a movement amount capable of avoiding interference to the two movable objects in the interference avoidance direction to perform interference avoidance.
【請求項4】 共通の移動経路上に存在する第一、第二
の可動物を制御する数値制御装置において、機械的な干
渉を起こし得る第二の可動物の現在位置に基づいて第一
の可動物の実質的な実効可動範囲を算出し、この実効可
動範囲内に前記第一の可動物が存在するか否か判断する
可動範囲チェック手段と、この可動範囲チェック手段に
より、前記第一の可動物が実効可動範囲を超え前記第二
の可動物との機械的な干渉があると判断した場合には、
前記第二の可動物が退避可能状態であるか否かを判断す
る退避可能チェック手段と、この退避可能チェック手段
により前記第二の可動物が退避可能であると判断した場
合には、前記第一の可動物側より前記第二の可動物に対
して第一の可動物の移動量と同一の移動量を与えて干渉
回避を行わせる退避制御手段とを備え、この第二の可動
物の干渉回避動作時に、第一の可動物も第二の可動物方
向に移動することを特徴とする数値制御装置。
4. A numerical control device for controlling first and second movable objects existing on a common movement path, wherein the first and second movable objects are controlled based on a current position of the second movable object which may cause mechanical interference. A movable range check unit that calculates a substantial effective movable range of the movable object and determines whether the first movable object exists within the effective movable range; If it is determined that the movable object exceeds the effective movable range and there is mechanical interference with the second movable object,
Evacuation check means for judging whether or not the second movable object is in an evacuation state; and if the evacuation check means determines that the second movable object is evacuation, Evacuation control means for giving the same amount of movement as that of the first movable object to the second movable object from one movable object side to avoid interference, and A numerical control device, wherein the first movable object also moves in the direction of the second movable object during the interference avoiding operation.
【請求項5】 退避制御権が、前記第一の可動物と第二
の可動物との間で交互に入れ替わることを特徴とする請
求項4に記載の数値制御装置。
5. The numerical control device according to claim 4, wherein the evacuation control right is alternately switched between the first movable object and the second movable object.
【請求項6】 前記退避制御手段は、前記第一の可動物
が停止していることを確認した後、前記第二の可動物に
対して干渉回避方向に移動量を与えるように構成されて
いることを特徴とする請求項3〜請求項5の何れかに記
載の数値制御装置。
6. The retreat control means is configured to give a movement amount to the second movable object in the interference avoiding direction after confirming that the first movable object is stopped. The numerical control device according to any one of claims 3 to 5, wherein
【請求項7】 前記退避可能チェック手段は、加工プロ
グラムによる指令もしくはラダープログラムが指令する
外部信号による指令を用いて前記第二の可動物が退避可
能と判断するように構成されていることを特徴とする請
求項3〜請求項6の何れかに記載の数値制御装置。
7. The retractable check means is configured to determine that the second movable object can be retracted using a command from a machining program or a command from an external signal commanded by a ladder program. The numerical control device according to any one of claims 3 to 6.
【請求項8】 前記退避可能チェック手段は、前記第二
の可動物が退避不可状態である場合には、ある一定時間
経過後にエラー出力するように構成されていることを特
徴とする請求項3〜請求項7の何れかに記載の数値制御
装置。
8. The retreat-possible check means is configured to output an error after a certain period of time when the second movable object is in a retreat-impossible state. The numerical control device according to claim 7.
JP2001130593A 2001-04-27 2001-04-27 Numerical control method and apparatus Expired - Fee Related JP4599750B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001130593A JP4599750B2 (en) 2001-04-27 2001-04-27 Numerical control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001130593A JP4599750B2 (en) 2001-04-27 2001-04-27 Numerical control method and apparatus

Publications (2)

Publication Number Publication Date
JP2002328711A true JP2002328711A (en) 2002-11-15
JP4599750B2 JP4599750B2 (en) 2010-12-15

Family

ID=18978935

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001130593A Expired - Fee Related JP4599750B2 (en) 2001-04-27 2001-04-27 Numerical control method and apparatus

Country Status (1)

Country Link
JP (1) JP4599750B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007069269A (en) * 2005-09-02 2007-03-22 Nakamura Tome Precision Ind Co Ltd Method for changing stroke range of tool rest in two-spindle opposed lathe
JP2008228824A (en) * 2007-03-16 2008-10-02 Samii Kk Pinball game machine
JP2011087682A (en) * 2009-10-21 2011-05-06 Fujishoji Co Ltd Game machine
JP2012166095A (en) * 2012-06-14 2012-09-06 Sammy Corp Pachinko game machine
WO2017138120A1 (en) * 2016-02-10 2017-08-17 富士通株式会社 Dental technical object manufacturing device, method, and program
CN107199561A (en) * 2016-03-17 2017-09-26 发那科株式会社 Robot controller and robot program production system
DE102017011602A1 (en) 2016-12-21 2018-06-21 Fanuc Corporation Numerical control

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0487755A (en) * 1990-07-31 1992-03-19 Makino Milling Mach Co Ltd Feed control method for machine tool having multi spindle head
JPH05181519A (en) * 1991-12-27 1993-07-23 Okuma Mach Works Ltd Numerical controller
JPH0890386A (en) * 1994-09-21 1996-04-09 Daido Kikai Seisakusho:Kk Cooperative control method of nc machine
JP2000284817A (en) * 1999-03-31 2000-10-13 Toyoda Mach Works Ltd Numerical controller to simultaneously control two movable objects no common track

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0487755A (en) * 1990-07-31 1992-03-19 Makino Milling Mach Co Ltd Feed control method for machine tool having multi spindle head
JPH05181519A (en) * 1991-12-27 1993-07-23 Okuma Mach Works Ltd Numerical controller
JPH0890386A (en) * 1994-09-21 1996-04-09 Daido Kikai Seisakusho:Kk Cooperative control method of nc machine
JP2000284817A (en) * 1999-03-31 2000-10-13 Toyoda Mach Works Ltd Numerical controller to simultaneously control two movable objects no common track

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007069269A (en) * 2005-09-02 2007-03-22 Nakamura Tome Precision Ind Co Ltd Method for changing stroke range of tool rest in two-spindle opposed lathe
JP4504286B2 (en) * 2005-09-02 2010-07-14 中村留精密工業株式会社 How to change the stroke range of the tool post on a two-spindle facing lathe
JP2008228824A (en) * 2007-03-16 2008-10-02 Samii Kk Pinball game machine
JP2011087682A (en) * 2009-10-21 2011-05-06 Fujishoji Co Ltd Game machine
JP2012166095A (en) * 2012-06-14 2012-09-06 Sammy Corp Pachinko game machine
WO2017138120A1 (en) * 2016-02-10 2017-08-17 富士通株式会社 Dental technical object manufacturing device, method, and program
CN107199561A (en) * 2016-03-17 2017-09-26 发那科株式会社 Robot controller and robot program production system
DE102017011602A1 (en) 2016-12-21 2018-06-21 Fanuc Corporation Numerical control
JP2018101338A (en) * 2016-12-21 2018-06-28 ファナック株式会社 Numerical control device
CN108227638A (en) * 2016-12-21 2018-06-29 发那科株式会社 Numerical control device

Also Published As

Publication number Publication date
JP4599750B2 (en) 2010-12-15

Similar Documents

Publication Publication Date Title
US6202003B1 (en) Numerically controlled machine tool and method
JP4298770B2 (en) Numerical control device with interference check function
JP2004326618A (en) Numerical control device of machine tool
JP2935713B2 (en) Numerical control unit
JP2002328711A (en) Numerical control method and its device
CN103429399A (en) System for commanding a robot
JPH02259911A (en) Numerical controller
JP5362146B1 (en) Numerical control apparatus and numerical control system
JPH02257204A (en) Collision evasion control system for plural robot arms
JP2020003958A (en) Numerical control device
JP3526475B2 (en) Overtravel detector
JP4560191B2 (en) Numerical controller
WO2022196622A1 (en) Numerical control device
JPS62130411A (en) Numerical control method
JP3198256B2 (en) Numerical control unit
WO2023276121A1 (en) Numerical control device
JP2001154719A (en) Method for interpolating free curve
CN117280287A (en) Numerical controller and computer-readable storage medium
JP2001166807A (en) Method for commanding working by numerical controller
JP6444729B2 (en) Numerical control device with high-speed sequence control by NC program
JPH07136976A (en) Multiple robot interference avoiding method
JP2005182581A (en) Servo control device and servo control switching method
JPH0216604A (en) Return control method for pc
JP2002215212A (en) Interpolation performing method
JP2021060709A (en) Control device and control method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040702

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100615

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100810

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100831

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100913

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131008

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131008

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees