JPH0728520A - Origin return control method for robot - Google Patents

Origin return control method for robot

Info

Publication number
JPH0728520A
JPH0728520A JP17442893A JP17442893A JPH0728520A JP H0728520 A JPH0728520 A JP H0728520A JP 17442893 A JP17442893 A JP 17442893A JP 17442893 A JP17442893 A JP 17442893A JP H0728520 A JPH0728520 A JP H0728520A
Authority
JP
Japan
Prior art keywords
robot
origin
return
work
command
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.)
Pending
Application number
JP17442893A
Other languages
Japanese (ja)
Inventor
Yoshimasa Sato
義正 佐藤
Atsuhito Inagaki
淳仁 稲垣
Shigetaka Nagamatsu
茂隆 永松
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP17442893A priority Critical patent/JPH0728520A/en
Publication of JPH0728520A publication Critical patent/JPH0728520A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Manipulator (AREA)

Abstract

PURPOSE:To provide the origin return control method for a robot which can surely return the robot to the origin with a simple constitution while suppressing the interference very much, namely, without collision with another jig or the like at the time of returning the robot, which has plural kinds of movement commands and can take various routes at the time of work, to the origin. CONSTITUTION:When an already executed control command is successively reversely executed, the position from which the robot is started by a movement command at the time of normal operation (continuous line) is replaced with the arrival position for return operation, and the position argument of the just preceding movement command is used to execute each movement command, and thereby, the robot is moved back along the route (continuous line) for normal operation and is returned to the work origin (broken line). Or one or plural preliminarily determined movement commands are skipped to short-circuit a part of the route and the robot is returned to the work origin when the already executed control program is successively reversely executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はロボットの制御方法、特
に通常作業プログラムの途中で停止しているロボットを
作業原点に復帰させる制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a robot control method, and more particularly to a control method for returning a robot stopped in the middle of a normal work program to a work origin.

【0002】[0002]

【従来の技術】近年、自動車の組立等に多軸ロボットが
広く利用されている。電源を投入直後、あるいは何らか
の原因で組み付け動作中に停止したロボットを再始動さ
せる際には、ロボットの暴走を防止すべくロボットの可
動部分は機械的ないし電気的な初期位置(原点位置)に
復帰させなくてはならない。
2. Description of the Related Art In recent years, multi-axis robots have been widely used for assembling automobiles. Immediately after turning on the power, or when restarting a robot that stopped during assembly for some reason, the movable part of the robot returns to its mechanical or electrical initial position (origin position) to prevent robot runaway. I have to let them do it.

【0003】このため、ロボットコントローラに作業原
点に復帰する機能を持たせ、ロボットの作業プログラム
を逆に実行して作業原点にロボットを復帰させることが
考えられている。
Therefore, it is considered that the robot controller has a function of returning to the work origin, and the work program of the robot is executed in reverse to return the robot to the work origin.

【0004】図16にはロボットの作業プログラムの一
例が示されており、「MOVE」や「MOVES」、
「SWITCH」等のコマンドとP[ 1] やP[ 2] 等
の引数の組からなる制御コマンド群から構成されてい
る。ここで、「MOVE」は移動すべきポイントのみ指
定してポイント間の移動する経路は適当な各軸動作で決
定されるコマンドであり、「MOVES」はロボット先
端が直線に移動する直線動作コマンドを意味している。
また、「SWITCH」は信号出力コマンドであり、
「WAIT」は信号入力待ちコマンドである。もちろ
ん、ロボットの作業プログラムとしては、同様の動作を
他のコマンドで実行することも可能である。通常の動作
では、この作業プログラムをロボットコントローラ内の
インタプリタが解釈し、図16において上から下に順次
実行していく。そして、このような作業プログラムの実
行途中でロボットが停止した場合には、ロボットコント
ローラ内のインタプリタがこの作業プログラムを逆に実
行する。すなわち、図16において、通常の作業では上
から下に順次実行する作業プログラムを下から上に順次
逆実行するのである。
FIG. 16 shows an example of a robot work program, which includes "MOVE", "MOVES",
The control command group is composed of a set of commands such as “SWITCH” and arguments such as P [1] and P [2]. Here, “MOVE” is a command that specifies only the points to be moved, and the path to be moved between the points is determined by an appropriate axis operation. “MOVES” is a linear operation command that moves the robot tip in a straight line. I mean.
"SWITCH" is a signal output command,
“WAIT” is a signal input waiting command. Of course, as the robot work program, it is possible to execute the same operation by using another command. In a normal operation, this work program is interpreted by an interpreter in the robot controller and sequentially executed from top to bottom in FIG. When the robot stops during the execution of such a work program, the interpreter in the robot controller executes the work program in reverse. That is, in FIG. 16, a work program which is normally executed from top to bottom is reversely executed from bottom to top.

【0005】一方、このように作業プログラムを順次逆
実行するのではなく、予め作業原点復帰用の専用プログ
ラムを用意しておき、この専用プログラムを起動するこ
とによりロボットを作業原点に復帰させることも提案さ
れている(例えば、特開60−156104号公報)。
On the other hand, instead of sequentially executing the work programs in reverse, a dedicated program for returning the work origin is prepared in advance, and the robot can be returned to the work origin by activating the dedicated program. It has been proposed (for example, JP 60-156104 A).

【0006】なお、作業原点に復帰させるものではない
が、類似の技術として、戻し指令が発生した場合に作業
時の軌道データを逆の順番に読み出して所望の位置まで
復帰させる技術(例えば、特開平2−76691号公
報)も提案されている。
Although not a method of returning to the work origin, as a similar technique, a technique of reading trajectory data at the time of work in reverse order and returning to a desired position when a return command is generated (for example, a special technique) Kaihei 2-76691) is also proposed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、ロボッ
トコントローラ内のインタプリタで作業プログラムを単
に順次逆実行するのでは、異なる移動コマンドを有する
ため異なる経路を採り得る作業プログラムの場合には、
通常作業時と同一経路を辿って原点に復帰することがで
きない問題が生じてしまう。
However, if the interpreter in the robot controller simply executes the work programs in reverse, in the case of work programs that have different movement commands and thus can take different paths,
There is a problem that it is not possible to return to the origin by following the same route as during normal work.

【0008】図17には、図16に示された作業プログ
ラムに従って作業した場合のロボットの経路(図中実
線)及び、この作業プログラムを単に逆実行した場合の
ロボットの経路(図中破線)が示されている。図16の
作業プログラムには前述したように「MOVE」と「M
OVES」という2種類の移動コマンドが存在するた
め、単に逆実行したのでは両経路は一致しない。通常の
作業時には「MOVE」で移動した経路を戻し時には
「MOVES」で移動し、通常の作業時には「MOVE
S」で移動した経路を戻し時には「MOVE」で移動す
ることになってしまうからである。多軸ロボットが使用
される場合、他のロボットや工具等の関係上、その動作
経路のスペースは限られることが多く、従って、このよ
うに原点復帰時に通常の作業時と異なる経路を辿る場合
には、他の治具等と衝突(以下、これを干渉という)し
てしまう問題がある。
FIG. 17 shows a robot path (solid line in the figure) when working according to the work program shown in FIG. 16 and a robot path (dashed line in the figure) when the work program is simply executed in reverse. It is shown. As described above, the work program shown in FIG. 16 includes “MOVE” and “M”.
Since there are two types of movement commands "OVES", the two routes do not match if they are simply executed in reverse. The route that was moved by "MOVE" during normal work is moved by "MOVES" at the time of returning, and is moved by "MOVE" during normal work.
This is because the route moved by "S" will be moved by "MOVE" when returning. When a multi-axis robot is used, the space of its movement path is often limited due to the relationship with other robots and tools. Therefore, when following a path different from normal work when returning to the origin in this way. Has a problem of colliding with other jigs (hereinafter referred to as interference).

【0009】一方、特開昭60−156104号公報の
ように、原点復帰用の専用プログラムを設ける構成で
は、予めロボットが任意の位置で停止しても治具等の周
辺装置と干渉しないように戻ることを確認しなければな
らず、従って本来の作業プログラムに加えて戻し用のプ
ログラムの動作確認が必要となり、手続きが煩雑化する
問題がある。
On the other hand, in a configuration such as that disclosed in Japanese Patent Laid-Open No. 60-156104, in which a dedicated program for returning to the origin is provided, even if the robot is stopped at an arbitrary position in advance, it will not interfere with peripheral devices such as jigs. Since it is necessary to confirm that the program returns, it is necessary to confirm the operation of the program for returning in addition to the original work program, and there is a problem that the procedure becomes complicated.

【0010】さらに、特開平2−76691号公報のよ
うに、戻し指令が発生した場合に作業時の軌道データを
逆の順番に読み出して所望の位置まで復帰させる構成を
用いて作業原点まで復帰させようとすると、軌道データ
を記憶するためのバッファメモリの容量が著しく増大し
てしまい実用的でない。
Further, as in Japanese Patent Laid-Open No. 2-76669, a structure is used in which, when a return command is issued, the orbital data at the time of work is read in the reverse order and the work is returned to a desired position. If this is done, the capacity of the buffer memory for storing the orbital data will increase significantly, which is not practical.

【0011】本発明は上記従来技術の有する課題に鑑み
なされたものであり、その目的は、異なる複数種類の移
動コマンドを有し作業時に異なる経路を採り得るロボッ
トを原点まで復帰させるに際し、簡易な構成で、かつ、
干渉性をきわめて小さく抑えて、すなわち他の治具等と
衝突することなく確実に原点に復帰させることが可能な
ロボットの原点復帰制御方法を提供することにある。
The present invention has been made in view of the above problems of the prior art, and an object thereof is to easily return a robot having a plurality of different types of movement commands and capable of taking different routes during work to the origin. Configuration, and
An object of the present invention is to provide a method for returning to the origin of a robot, in which the coherence can be suppressed to a very small value, that is, the origin can be surely returned without colliding with another jig or the like.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
に、請求項1記載のロボットの原点復帰制御方法は、既
に実行された制御プログラムを順次逆実行するに際し、
各移動コマンドをその一つ前の移動コマンドの位置引数
を用いて実行することにより前記経路を遡行して作業原
点まで復帰することを特徴とする。
In order to achieve the above-mentioned object, a method of returning to origin of a robot according to a first aspect of the present invention is such that when a control program that has already been executed is sequentially reversely executed,
It is characterized in that each movement command is executed by using the position argument of the immediately preceding movement command to trace back the path and return to the work origin.

【0013】また、上記目的を達成するために、請求項
2記載のロボットの原点復帰制御方法は、既に実行され
た制御プログラムを順次逆実行するに際し、予め定めら
れた一または複数の移動コマンドをスキップして逆実行
することにより前記経路の一部を短絡して作業原点まで
復帰することを特徴とする。
In order to achieve the above object, the robot origin return control method according to a second aspect of the present invention uses one or a plurality of predetermined movement commands when sequentially executing a control program that has already been executed. It is characterized in that a part of the path is short-circuited and the operation origin is restored by skipping and performing the reverse operation.

【0014】[0014]

【作用】請求項1記載の原点復帰制御方法においては、
ロボットを通常作業時と同一経路で原点まで復帰させる
ことにより干渉性を低減すべく、ある移動コマンドとそ
の一つ前の位置引数を組み合わせ、逆実行するものであ
る。前述したように、単に作業プログラムを順次逆実行
するのでは、MOVEとMOVES等異なる経路を移動
する複数種類のコマンドがある場合には同一経路を辿る
ことができないが、ある移動コマンドに対し、通常動作
時にその移動コマンドで出発した位置を戻し動作時の到
達位置に置き換え、ある移動コマンドとその一つ前の位
置引数を組み合わせることにより同一経路を遡行して原
点に復帰することができる。
In the origin return control method according to claim 1,
In order to reduce interference by returning the robot to the origin along the same path as during normal work, a certain movement command and the position argument immediately before it are combined and executed in reverse. As described above, simply executing the work programs in reverse order cannot follow the same route when there are multiple types of commands such as MOVE and MOVES that move on different routes. It is possible to trace the same route and return to the origin by replacing the position started by the move command at the time of operation with the reached position at the time of return operation and combining a move command with the position argument immediately before it.

【0015】また、請求項2記載の原点復帰制御方法に
おいては、戻し動作時に予め干渉することが明かな場合
には、その干渉する特定の位置を短絡することにより、
干渉を防止するものである。経路を短絡するには、通常
動作時で実行された移動コマンドのいずれかを戻し動作
時にスキップすればよく、一の移動コマンドをスキップ
すれば一の経路が短絡され、二以上の移動コマンドをス
キップすれば二以上の経路を短絡することができる。
Further, in the home-return control method according to the second aspect, when it is clear that interference will occur in advance during the returning operation, by short-circuiting the interfering specific position,
This is to prevent interference. To short-circuit the path, one of the movement commands executed during normal operation can be skipped during the returning operation, and skipping one movement command short-circuits one path and skips two or more movement commands. By doing so, two or more paths can be short-circuited.

【0016】[0016]

【実施例】以下、図面を用いながら本発明のロボットの
原点復帰制御方法の好適な実施例について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the origin return control method for a robot according to the present invention will be described below with reference to the drawings.

【0017】第1実施例 図1には本実施例のロボット制御システムの構成が示さ
れており、また、図2にはシーケンサからの入力信号が
示されている。ロボットコントローラ内のインタプリタ
12に前進・戻し信号入力部(シーケンサ)10から前
進信号が供給されると、インタプリタ12でロボット作
業プログラムを解析する。インタプリタ12は、後述す
るように前進インタプリタと戻しインタプリタの機能を
有しており、起動信号STRあるいは戻し信号RTNに
応じて前進インタプリタあるいは戻しインタプリタを実
行する。インタプリタ12で解析された作業データは演
算部14に供給され、軌道生成及び座標変換してサーボ
アンプ16に指令値を出力する。サーボアンプ16は、
さらにこの指令値をモータロボット18に供給して作業
プログラムに従い動作制御する。ロボットの作業プログ
ラムが前述した図16の作業プログラムである場合に
は、起動信号STRが入力されると、まず、MOVES
P[ 1] でポイントP[ 1] に直線軌道で移動し、次
に、MOVEP[ 2] でポイントP[ 2] に各軸で移動
する。この「MOVE」コマンドでは、前述したように
ロボットの先端軌道は一般に直線とはならない(図17
参照)。以下、作業プログラムを順次実行して所定の作
業を行う。
First Embodiment FIG. 1 shows the configuration of a robot control system of this embodiment, and FIG. 2 shows an input signal from a sequencer. When a forward signal is supplied from the forward / back signal input unit (sequencer) 10 to the interpreter 12 in the robot controller, the interpreter 12 analyzes the robot work program. The interpreter 12 has the functions of a forward interpreter and a return interpreter as will be described later, and executes the forward interpreter or the return interpreter according to the start signal STR or the return signal RTN. The work data analyzed by the interpreter 12 is supplied to the calculation unit 14, and the trajectory is generated and the coordinates are converted to output a command value to the servo amplifier 16. The servo amplifier 16 is
Further, this command value is supplied to the motor robot 18 to control the operation according to the work program. When the work program of the robot is the work program of FIG. 16 described above, when the activation signal STR is input, first, the MOVES
At P [1], it moves to a point P [1] in a linear trajectory, and then at MOVEP [2] it moves to a point P [2] on each axis. In this "MOVE" command, the tip trajectory of the robot is generally not a straight line as described above (Fig. 17).
reference). Hereinafter, the work program is sequentially executed to perform a predetermined work.

【0018】そして、ロボットがP[ 5] の位置に移動
したところで、非常停止が入力されてロボットが停止し
た場合を考える。このとき、図2に示される戻し動作
「RTN]の起動が入力され、ロボットコントローラ内
のインタプリタ12はこのRTNにより戻しインタプリ
タを実行して作業プログラムを逆に順次実行する。但
し、この戻しインタプリタでは、従来のように単に作業
プログラムを逆実行するのではなく、各移動コマンドを
その一つ前の移動コマンドの位置引数を用いて実行する
のである。具体的には、図3に示すようにP[ 5] の位
置からP[ 4] の位置に移動する際には、P[ 5] に対
応する移動コマンドである「MOVES」と、その一つ
前の位置引数P[ 4] を組み合わせ、図3の破線で示す
制御コマンドを作成して逆実行するのである。図4に
は、このように移動コマンドとその前の位置引数とを組
み合わせて作成した戻し用の作業プログラムが示されて
おり、戻しインタプリタでは、この戻し用作業プログラ
ムを下から上に順次実行するのである。すると、通常の
作業時(前進インタプリタで実行した場合)で「MOV
E」で移動した経路は「MOVE」で戻り、「MOVE
S」で移動した経路は「MOVES」で戻ることができ
るようになり、図5に示されるように、通常の作業時の
経路(実線)と戻り経路(破線)を一致させることがで
きる。このように、同一経路で作業原点に復帰させるこ
とにより、図17に示される場合と比べて干渉性を低減
できることは明らかである。
Consider a case where the robot is stopped by inputting an emergency stop when the robot moves to the position P [5]. At this time, the activation of the return operation "RTN" shown in Fig. 2 is input, and the interpreter 12 in the robot controller executes the return interpreter by this RTN to sequentially execute the work program, but with this return interpreter. Instead of simply reversely executing the work program as in the conventional case, each move command is executed using the position argument of the move command immediately before that, specifically, as shown in FIG. When moving from the position of [5] to the position of P [4], the move command “MOVES” corresponding to P [5] and the position argument P [4] immediately before that are combined, That is, the control command indicated by the broken line 3 is created and is reversely executed. FIG. 4 shows a return work program created by combining the move command and the preceding position argument in this way, and the return interpreter sequentially executes the return work program from bottom to top. Of. Then, during normal work (when executed by the forward interpreter), "MOV
The route moved by "E" returns with "MOVE", and "MOVE"
The route moved by "S" can be returned by "MOVES", and as shown in FIG. 5, the route (solid line) during normal work and the return route (broken line) can be matched. As described above, it is apparent that the coherence can be reduced by returning to the work origin along the same path as compared with the case shown in FIG.

【0019】第2実施例 前述の第1実施例では、作業プログラムが移動コマンド
と入出力コマンドから構成される場合を示したが、本発
明は他のコマンドが含まれる作業プログラムにも適用す
ることができる。
Second Embodiment In the above-mentioned first embodiment, the case where the work program is composed of the move command and the input / output command is shown, but the present invention can be applied to the work program including other commands. You can

【0020】本第2実施例では、ロボットが作業に合わ
せて把持する工具を指定するコマンドを含む作業プログ
ラムの場合の原点復帰制御を説明する。図6には、本実
施例の作業プログラムが示されており、「TOOL」コ
マンドにより使用される工具が選択される。図6では、
TOOL 1及びTOOL 2により2種類の工具が選
択されている。ここで、ロボットの教示位置P[ 1] 等
は工具が設定されている場合には工具の長さ等のデータ
を考慮して決定されている。このため、教示した位置へ
正しく移動する為には位置を記憶したときの工具と一致
させる必要がある。なお、図6において、TOOL 0
は工具の解除を意味している。
In the second embodiment, origin return control in the case of a work program including a command for designating a tool to be gripped by the robot according to the work will be described. FIG. 6 shows the work program of this embodiment, and the tool to be used is selected by the "TOOL" command. In FIG.
Two kinds of tools are selected by TOOL 1 and TOOL 2. Here, the teaching position P [1] of the robot and the like are determined in consideration of data such as the length of the tool when the tool is set. Therefore, in order to move correctly to the taught position, it is necessary to match the position with the tool used when the position was stored. In addition, in FIG. 6, TOOL 0
Means to release the tool.

【0021】図6の作業プログラムを実行すると、工具
1,2を適宜選択しながらP[ 1] 〜P[ 6] へ順次移
動していく。そして、P[ 6] に移動したときに非常停
止が入力されてロボットが停止した場合を考える。前述
した第1実施例と同様に移動コマンドとその一つ前の位
置引数を組み合わせて戻し用の作業プログラムを作成す
ると図7に示すようになる。ここで、戻しインタプリタ
がこの戻し作業プログラムを順次逆実行していくと、ポ
イントP[ 4] ,P[ 3] に移動するときにはTOOL
2により工具2が選択され、ポイントP[ 2] ,P[
1] に移動するときにはTOOL 1により工具1が選
択されてしまい、前進動作のときと異なる動作が行われ
てしまう。このように、異なる工具を把持すると、たと
え同一経路を戻るとしても他の工具や装置に衝突する可
能性が高くなり、干渉性が増大する。
When the work program shown in FIG. 6 is executed, the tools 1 and 2 are sequentially moved to P [1] to P [6] while being appropriately selected. Then, consider a case where an emergency stop is input and the robot stops when the robot moves to P [6]. As in the case of the first embodiment described above, a return work program is created by combining the move command and the position argument immediately before it, as shown in FIG. Here, if the return interpreter sequentially executes this return work program in reverse, when it moves to points P [4] and P [3]
The tool 2 is selected by 2, and the points P [2] and P [
1], the tool 1 is selected by TOOL 1 and an operation different from the forward operation is performed. As described above, when different tools are gripped, the possibility of colliding with other tools and devices increases even if the tool returns to the same path, and the coherence increases.

【0022】そこで、このように工具選択コマンドを含
む作業プログラムの場合でも、低干渉性で原点まで復帰
させるべく、本実施例では工具選択コマンドに前進動作
時の工具番号と戻し動作時の工具番号を記述できるよう
にしている。図8に図6の作業プログラムに対応する本
実施例の戻し用の作業プログラムの一例が示されてい
る。図7の戻し用作業プログラムと比較すれば明かなよ
うに、TOOLコマンドの工具番号がTOOL 1,0
の如く2つの引数から構成されていることが特徴であ
る。前の番号が前進動作時の選択工具番号を意味してお
り、後の番号が戻し動作時の選択工具番号を意味してい
る。そして、前進動作時には、前進インタプリタにより
前の番号に従い工具が選択され、戻し動作時には、戻し
インタプリタにより後の番号に従い工具が選択される。
従って、図8の戻し用作業プログラムを戻しインタプリ
タで順次逆実行すると、ポイントP[ 4] ,P[ 3] に
移動するときにはTOOL 2,1により工具1が選択
され、ポイントP[ 2] ,P[1] に移動するときには
TOOL 1,0により工具0すなわち工具解除の状態
で移動するので、前進動作時と全く同一の経路かつ同一
の工具で原点に復帰することができるようになる。
Therefore, even in the case of the work program including the tool selection command as described above, in order to return to the origin with low interference, in this embodiment, the tool number for the forward movement and the tool number for the returning movement are included in the tool selection command. You can describe. FIG. 8 shows an example of the returning work program of this embodiment corresponding to the work program of FIG. As is clear from the comparison with the returning work program of FIG. 7, the tool number of the TOOL command is TOOL 1,0.
The feature is that it is composed of two arguments as described above. The previous number means the selected tool number at the time of forward movement, and the latter number means the selected tool number at the time of returning operation. Then, during the forward movement, the forward interpreter selects the tool according to the previous number, and during the return operation, the return interpreter selects the tool according to the subsequent number.
Therefore, when the returning work program of FIG. 8 is sequentially reversely executed by the returning interpreter, the tool 1 is selected by TOOLs 2, 1 when moving to the points P [4] and P [3], and the points P [2] and P When moving to [1], the tool 1 is moved by TOOL 1,0 in a state where the tool is released. Therefore, it is possible to return to the origin with the same route and the same tool as during forward movement.

【0023】第3実施例 第1、2実施例では、ロボットを非常停止位置から一気
に原点まで復帰させる場合を説明したが、状況によって
はロボットの戻し動作の途中で動作を一時停止させ、ロ
ボット及び周辺装置の状況を確認してから再度戻し動作
を行う必要が生じる場合がある。例えば、ロボットを特
定の教示位置で一時停止させ、治具のシリンダを移動さ
せた後でないとロボットが治具と干渉してしまう場合な
どである。図10にはこのような場合の一例が示されて
おり、ロボットがP[ 1] 〜P[5] と移動する際に、
他の治具がP[3] の位置に移動した場合である。この場
合には、P[ 5] の位置からロボットを同一経路で戻す
とP[ 3] で治具100と干渉してしまう。このような
場合に対処すべく、本実施例では戻し動作時に特定の教
示位置にロボットが到達した時に一時停止させるように
FLAGコマンドを戻し用作業プログラムに挿入してい
る。図9には本実施例の戻し用作業プログラムの一例が
示されており、MOVE P[ 3] コマンドとMOVE
S P[ 4]コマンドの間にFLAGコマンドが挿入さ
れている。これにより、戻し動作時にはポイントP[
4] に達した時にFLAGコマンドが実行されてロボッ
トは自動的に一時停止することになり、治具等を移動さ
せて干渉を防止することができる。なお、このFLAG
コマンドは前進インタプリタでは実行されず、前進動作
時には一時停止しないのは言うまでもない。
Third Embodiment In the first and second embodiments, the case where the robot is immediately returned to the origin from the emergency stop position has been described. However, depending on the situation, the operation is temporarily stopped during the returning operation of the robot, and the robot and It may be necessary to check the status of the peripheral device and then perform the returning operation again. For example, the robot may interfere with the jig unless the robot is temporarily stopped at a specific teaching position and the cylinder of the jig is moved. FIG. 10 shows an example of such a case, and when the robot moves from P [1] to P [5],
This is a case where another jig has moved to the position P [3]. In this case, if the robot is returned along the same path from the position of P [5], it will interfere with the jig 100 at P [3]. In order to deal with such a case, in the present embodiment, the FLAG command is inserted into the returning work program so that the robot temporarily stops when the robot reaches a specific teaching position during the returning operation. FIG. 9 shows an example of the returning work program according to the present embodiment, which includes the MOVE P [3] command and the MOVE command.
The FLAG command is inserted between the SP [4] commands. As a result, the point P [
4], the FLAG command is executed and the robot automatically pauses, so that the jig or the like can be moved to prevent interference. In addition, this FLAG
It goes without saying that the command is not executed by the forward interpreter and is not paused during the forward movement.

【0024】第4実施例 前述した第3実施例では、特定の位置にロボットが到達
した場合にロボットを一時停止させるFLAGコマンド
を挿入したが、本実施例では、予め干渉が生じるであろ
う特定位置にはロボットを戻さず、前進動作時の経路の
一部を短絡して原点に戻すことにより一時停止の必要も
なく、かつ干渉性を低減させるものである。
Fourth Embodiment In the above-described third embodiment, the FLAG command for temporarily stopping the robot when the robot reaches a specific position is inserted, but in the present embodiment, it is possible that interference may occur in advance. The robot is not returned to the position, but a part of the path at the time of forward movement is short-circuited and returned to the origin, so that there is no need of temporary stop and the coherence is reduced.

【0025】このため、本実施例では、動作コマンドに
戻し動作時のみ実行しないスイッチを新たに設けてい
る。これは、動作コマンドの後ろに設定される ,Nで
示される。図11には本実施例の作業プログラムの一例
が示されている。図11において、MOVE P[ 1
1] 等は前述の各実施例と同様に前進、戻し共に実行さ
れるコマンドであり、MOVES P[ 13] ,N が
前進時のみ実行し、戻し時には実行しないコマンドであ
る。このような作業プログラムを実行中に非常停止が入
力されると、戻し信号RTNが入力されて戻しインタプ
リタが戻し用作業プログラムを作成して逆実行するが、
図11の戻し作業プログラムは図12に示すようにな
る。前進動作時には存在するコマンドMOVES P[
13] が戻し用作業プログラムではスキップされている
ことに着目すべきである。このように、戻し動作時に前
進動作時のコマンドの一部をスキップすると、図13に
示されるように戻し動作時には前進動作時の経路の一部
(図13ではポイントP[ 13] )を飛び越してポイン
トP[ 14] からポイントP[ 12] に直接戻ってい
る。従って、ポイントP[ 13] に治具が存在しても干
渉することなく、短時間で原点に復帰することができ
る。
For this reason, in this embodiment, a switch is newly provided which is not executed only when returning to the operation command. This is denoted by N, which is set after the motion command. FIG. 11 shows an example of the work program of this embodiment. In FIG. 11, MOVE P [1
1] and the like are commands that are executed both forward and backward as in the above-described embodiments, and MOVES P [13] and N are commands that are executed only during forward movement and not during return. If an emergency stop is input during execution of such a work program, the return signal RTN is input and the return interpreter creates a return work program and executes it in reverse.
The return work program of FIG. 11 is as shown in FIG. Command MOVES P [that exists during forward movement
13] is skipped in the returning work program. Thus, if a part of the command for forward movement is skipped during the return operation, as shown in FIG. 13, a portion of the path during forward movement (point P [13] in FIG. 13) is skipped during the return operation. The point P [14] returns directly to the point P [12]. Therefore, even if the jig exists at the point P [13], it can return to the origin in a short time without causing any interference.

【0026】なお、本実施例では一の経路のみを短絡す
る場合を示したが、必要に応じ二以上の経路を短絡する
ことも可能である。この場合、スキップすべきコマンド
の後ろに ,Nを付加するだけでよい。
In this embodiment, the case where only one path is short-circuited has been described, but it is also possible to short-circuit two or more paths if necessary. In this case, it is only necessary to add N after the command to be skipped.

【0027】第5実施例 前述した第4実施例では移動コマンドに ,Nを付加し
て経路の一部を短絡する例を示したが、SWITCHや
WAIT等の入出力コマンドに新たなスイッチを付加し
て前進動作時のみ、あるいは戻し動作時のみ実行するよ
うに構成する事も可能である。
Fifth Embodiment In the above-described fourth embodiment, an example in which N is added to the movement command and a part of the route is short-circuited has been shown, but a new switch is added to the input / output command such as SWITCH and WAIT. It is also possible to configure so that it is executed only during forward movement or only during return movement.

【0028】図14には本実施例の作業プログラムの一
例が示されている。SWITCH2,OFF,RやWA
IT 2,ON,Rが本実施例における特徴的なコマン
ドであり、後ろの,Rが戻し動作時のみ実行することを
示すスイッチである。従って、図14の作業プログラム
実行中にロボットが非常停止し、戻し指令RTNが入力
されると、戻しインタプリタは図14の作業プログラム
から図15に示す戻し用作業プログラムを作成し、順次
逆実行する。ここで、SWITCH 2,OFFコマン
ド、WAIT 2,ONコマンド、SWITCH 2,
ONコマンドが戻し作業プログラムに存在することに着
目すべきである。このように、戻し動作時のみ実行され
るコマンドを設定しておくことにより、戻し動作時に治
具を自動的に経路から移動させ、前述した第3実施例の
ように一時停止する必要もなく、また第4実施例のよう
に前進動作時の経路の一部を短絡することなく、同一経
路で、かつ短時間で原点に復帰することができる。
FIG. 14 shows an example of the work program of this embodiment. SWITCH2, OFF, R and WA
IT 2, ON, and R are characteristic commands in this embodiment, and the rear R is a switch indicating that the command is executed only during the return operation. Therefore, when the robot makes an emergency stop during execution of the work program of FIG. 14 and the return command RTN is input, the return interpreter creates the return work program shown in FIG. 15 from the work program of FIG. 14 and sequentially performs reverse execution. . Here, SWITCH 2, OFF command, WAIT 2, ON command, SWITCH 2,
It should be noted that there is an ON command in the return work program. In this way, by setting a command to be executed only at the time of the returning operation, the jig is automatically moved from the path at the time of the returning operation, and it is not necessary to temporarily stop the jig as in the third embodiment described above. Further, unlike the fourth embodiment, it is possible to return to the origin on the same route and in a short time without short-circuiting a part of the route during forward movement.

【0029】なお、前述した各実施例は互いに独立では
なく、状況に応じて適宜これらを組み合わせて最も干渉
性が低く、かつ短時間でロボットを原点に復帰させるこ
とも可能である。例えば、あるポイントでは信号入出力
で治具を自動移動できるが、あるポイントではマニュア
ル操作でしか治具を移動できない場合には第3実施例と
第5実施例を組み合わせればよく、任意の組み合わせを
用いることが可能である。
It should be noted that the above-described embodiments are not independent of each other, and it is possible to appropriately combine them according to the situation to return the robot to the origin in the shortest time and with the lowest interference. For example, at a certain point, the jig can be automatically moved by signal input / output, but at a certain point, when the jig can be moved only by manual operation, the third embodiment and the fifth embodiment can be combined, and any combination can be used. Can be used.

【0030】[0030]

【発明の効果】以上説明したように、本発明のロボット
の原点復帰制御方法によれば、簡易な構成で、かつ、干
渉性をきわめて小さく抑えて、すなわち他の治具等と衝
突することなく確実に原点に復帰させることが可能とな
る。
As described above, according to the origin return control method for a robot of the present invention, the structure is simple and the coherence is suppressed to a very small level, that is, without colliding with other jigs or the like. It is possible to surely return to the origin.

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

【図1】本発明の実施例のシステム構成図である。FIG. 1 is a system configuration diagram of an embodiment of the present invention.

【図2】シーケンサ入力説明図である。FIG. 2 is an explanatory diagram of sequencer input.

【図3】作業プログラムの一例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of a work program.

【図4】図3の作業プログラムの戻し用作業プログラム
を示す説明図である。
FIG. 4 is an explanatory diagram showing a returning work program of the work program of FIG.

【図5】第1実施例のロボットの軌道を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing a trajectory of the robot of the first embodiment.

【図6】作業プログラムの一例を示す説明図である。FIG. 6 is an explanatory diagram showing an example of a work program.

【図7】図6の作業プログラムの戻し用作業プログラム
を示す説明図である。
FIG. 7 is an explanatory diagram showing a returning work program of the work program of FIG. 6;

【図8】図6に対応する第2実施例の戻し作業プログラ
ムを示す説明図である。
FIG. 8 is an explanatory diagram showing a returning work program of the second embodiment corresponding to FIG. 6;

【図9】第3実施例の戻し作業プログラムを示す説明図
である。
FIG. 9 is an explanatory diagram showing a returning work program according to a third embodiment.

【図10】第3実施例のロボットの軌道を示す説明図で
ある。
FIG. 10 is an explanatory diagram showing the trajectory of the robot of the third embodiment.

【図11】作業プログラムの一例を示す説明図である。FIG. 11 is an explanatory diagram showing an example of a work program.

【図12】図11に対応する第4実施例の戻し用作業プ
ログラムを示す説明図である。
12 is an explanatory diagram showing a returning work program of a fourth embodiment corresponding to FIG. 11. FIG.

【図13】第4実施例のロボットの軌道を示す説明図で
ある。
FIG. 13 is an explanatory diagram showing the trajectory of the robot of the fourth embodiment.

【図14】作業プログラムの一例を示す説明図である。FIG. 14 is an explanatory diagram showing an example of a work program.

【図15】図14に対応する第5実施例の戻し用作業プ
ログラムを示す説明図である。
FIG. 15 is an explanatory diagram showing a returning work program of a fifth embodiment corresponding to FIG. 14;

【図16】作業プログラムの一例を示す説明図である。FIG. 16 is an explanatory diagram showing an example of a work program.

【図17】従来のロボットの軌道を示す説明図である。FIG. 17 is an explanatory diagram showing a trajectory of a conventional robot.

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

10 入力部 12 インタプリタ 14 演算部 16 サーボアンプ 18 モータロボット 100 治具 10 Input Unit 12 Interpreter 14 Computing Unit 16 Servo Amplifier 18 Motor Robot 100 Jig

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 一般に経路が一致しない複数種類の移動
コマンドを含んで記述された制御プログラムを順次実行
することにより所望の経路で一連の動作を行うロボット
を停止位置から作業原点に復帰させる制御方法であっ
て、 既に実行された制御プログラムを順次逆実行するに際
し、各移動コマンドをその一つ前の移動コマンドの位置
引数を用いて実行することにより前記経路を遡行して作
業原点まで復帰することを特徴とするロボットの原点復
帰制御方法。
1. A control method for returning a robot that performs a series of operations along a desired path from a stop position to a work origin by sequentially executing a control program that includes a plurality of types of movement commands whose paths do not match. When the control program that has already been executed is sequentially reverse-executed, each movement command is executed by using the position argument of the immediately preceding movement command to trace back the path and return to the work origin. A method of returning to origin for a robot characterized by.
【請求項2】 一般に経路が一致しない複数種類の移動
コマンドを含んで記述された制御プログラムを順次実行
することにより所望の経路で一連の動作を行うロボット
を停止位置から作業原点に復帰させる制御方法であっ
て、 既に実行された制御プログラムを順次逆実行するに際
し、予め定められた一または複数の移動コマンドをスキ
ップして逆実行することにより前記経路の一部を短絡し
て作業原点まで復帰することを特徴とするロボットの原
点復帰制御方法。
2. A control method for returning a robot that performs a series of operations along a desired path from a stop position to a work origin by sequentially executing a control program that includes a plurality of types of movement commands whose paths do not match. When the control programs that have already been executed are sequentially reverse-executed, a predetermined one or a plurality of movement commands are skipped and reverse-executed to short-circuit part of the path and return to the work origin. A method for returning to origin of a robot, which is characterized in that
JP17442893A 1993-07-14 1993-07-14 Origin return control method for robot Pending JPH0728520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17442893A JPH0728520A (en) 1993-07-14 1993-07-14 Origin return control method for robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17442893A JPH0728520A (en) 1993-07-14 1993-07-14 Origin return control method for robot

Publications (1)

Publication Number Publication Date
JPH0728520A true JPH0728520A (en) 1995-01-31

Family

ID=15978373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17442893A Pending JPH0728520A (en) 1993-07-14 1993-07-14 Origin return control method for robot

Country Status (1)

Country Link
JP (1) JPH0728520A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008254141A (en) * 2007-04-06 2008-10-23 Mitsubishi Electric Corp Apparatus and method of controlling robot, and robot conveyor
KR20170094351A (en) 2014-12-25 2017-08-17 카와사키 주코교 카부시키 카이샤 Automatic obstruction avoidance method and control device for arm-type robot
JP2018202588A (en) * 2017-06-09 2018-12-27 セイコーエプソン株式会社 Control device, robot, and robot system
WO2019111413A1 (en) * 2017-12-08 2019-06-13 株式会社Fuji Control device, workpiece operation device, workpiece operation system, and control method
WO2020188630A1 (en) 2019-03-15 2020-09-24 オムロン株式会社 Robot control device, method, and program
WO2021070859A1 (en) * 2019-10-09 2021-04-15 川崎重工業株式会社 Control method, control device, robot system, program and recording medium
WO2022215476A1 (en) * 2021-04-05 2022-10-13 Dmg森精機株式会社 Information processing device and information processing program
DE102022104586B3 (en) 2022-02-25 2023-02-16 Denso Wave Incorporated Apparatus for controlling a return of a robot to its origin and method for searching a return path of the robot to its origin
CN115922686A (en) * 2021-09-23 2023-04-07 库卡机器人制造(上海)有限公司 Robot, method and apparatus for controlling robot, and computer-readable storage medium

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008254141A (en) * 2007-04-06 2008-10-23 Mitsubishi Electric Corp Apparatus and method of controlling robot, and robot conveyor
KR20170094351A (en) 2014-12-25 2017-08-17 카와사키 주코교 카부시키 카이샤 Automatic obstruction avoidance method and control device for arm-type robot
US10350756B2 (en) 2014-12-25 2019-07-16 Kawasaki Jukogyo Kabushiki Kaisha Method of automatically avoiding obstacle for arm robot and control device
JP2018202588A (en) * 2017-06-09 2018-12-27 セイコーエプソン株式会社 Control device, robot, and robot system
WO2019111413A1 (en) * 2017-12-08 2019-06-13 株式会社Fuji Control device, workpiece operation device, workpiece operation system, and control method
CN111417496A (en) * 2017-12-08 2020-07-14 株式会社富士 Control device, work operation system, and control method
JPWO2019111413A1 (en) * 2017-12-08 2020-11-19 株式会社Fuji Control device, work work device, work work system and control method
CN111417496B (en) * 2017-12-08 2023-03-28 株式会社富士 Control device, work operation system, and control method
WO2020188630A1 (en) 2019-03-15 2020-09-24 オムロン株式会社 Robot control device, method, and program
US11981032B2 (en) 2019-03-15 2024-05-14 Omron Corporation Robot control device, method and program for a recovery after an obstruction
TWI767350B (en) * 2019-10-09 2022-06-11 日商川崎重工業股份有限公司 Control method, control device, robot system, program, and recording medium
KR20220100865A (en) 2019-10-09 2022-07-18 카와사키 주코교 카부시키 카이샤 Control method, control device, robot system, program and recording medium
CN114845841A (en) * 2019-10-09 2022-08-02 川崎重工业株式会社 Control method, control device, robot system, program, and recording medium
JP2021058987A (en) * 2019-10-09 2021-04-15 川崎重工業株式会社 Control method, control device, robot system and program
CN114845841B (en) * 2019-10-09 2024-02-06 川崎重工业株式会社 Control method, control device, robot system, program, and recording medium
WO2021070859A1 (en) * 2019-10-09 2021-04-15 川崎重工業株式会社 Control method, control device, robot system, program and recording medium
US11992951B2 (en) 2019-10-09 2024-05-28 Kawasaki Jukogyo Kabushiki Kaisha Control method, control device, robot system, program, and recording medium
WO2022215476A1 (en) * 2021-04-05 2022-10-13 Dmg森精機株式会社 Information processing device and information processing program
JP2022159935A (en) * 2021-04-05 2022-10-18 Dmg森精機株式会社 Machine tool, information processor and information processing program
CN115922686A (en) * 2021-09-23 2023-04-07 库卡机器人制造(上海)有限公司 Robot, method and apparatus for controlling robot, and computer-readable storage medium
DE102022104586B3 (en) 2022-02-25 2023-02-16 Denso Wave Incorporated Apparatus for controlling a return of a robot to its origin and method for searching a return path of the robot to its origin

Similar Documents

Publication Publication Date Title
US11103996B2 (en) Robot joint space point-to-point movement trajectory planning method
JPH03213283A (en) Control method for industrial robot
JPS63216689A (en) Automatic working device
JPH0728520A (en) Origin return control method for robot
US5872894A (en) Robot control apparatus and method eliminating any influence of motion in a preceding path and a recording medium storing the same
KR0160998B1 (en) Robot trajectory planning method
JP3168682B2 (en) Numerical control unit
US6480760B1 (en) Robot restarting method
JPH06190753A (en) Robot control device
JPS62123504A (en) Robot control method
JPH06114761A (en) Vibration damping control method
JP3201425B2 (en) Industrial robot control device
JP2003165079A (en) Industrial robot
JP3365421B2 (en) Robot controller
CN114947609B (en) Chassis automatic return method, system, medium and robot
WO2020066947A1 (en) Robot route determination device, robot route determination method, and program
JP2689748B2 (en) Robot control method
JP2023175302A (en) Robot control system and robot control program
JPH05134732A (en) Method for generating interference evasion route
JPH1177571A (en) Robot teaching method, robot working and controlling method and robot controller
JPS60101606A (en) Automatic robot operation system
JP2023175301A (en) Robot control system and robot control program
JPS63278104A (en) Robot controller
JPS58121407A (en) Positioning control method for industrial robot
JPH07104712B2 (en) Manual control method for robot arm