JP2016185586A - Robot device control method, robot device, and robot operating device - Google Patents

Robot device control method, robot device, and robot operating device Download PDF

Info

Publication number
JP2016185586A
JP2016185586A JP2015067102A JP2015067102A JP2016185586A JP 2016185586 A JP2016185586 A JP 2016185586A JP 2015067102 A JP2015067102 A JP 2015067102A JP 2015067102 A JP2015067102 A JP 2015067102A JP 2016185586 A JP2016185586 A JP 2016185586A
Authority
JP
Japan
Prior art keywords
robot
trajectory
avoidance
avoidance mode
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.)
Pending
Application number
JP2015067102A
Other languages
Japanese (ja)
Inventor
敏弘 山本
Toshihiro Yamamoto
敏弘 山本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2015067102A priority Critical patent/JP2016185586A/en
Publication of JP2016185586A publication Critical patent/JP2016185586A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an avoidance mode capable of changing or editing robot teaching data by a free teaching operation, and automatically returning a robot to an original trajectory before entering the avoidance mode when change or edition is finished.SOLUTION: A control device 201 turns on or off an avoidance mode in response to an operation on an avoidance switch 111 of a teaching pendant 101. When the avoidance mode of the switch is turned on, the control device 201 stores trajectory control information corresponding to a trajectory of a reference region of a robot before the avoidance mode is activated in a JOG vector direction storage unit 215. While the avoidance mode is turned on, the control device 201 controls the robot to perform an avoidance motion in response to a manual operation of the teaching pendant 101. When turning off the avoidance mode by the switch, the control device 201 generates return control information for returning the robot to the trajectory before activation of the avoidance mode from a current position, the return control information corresponding to the trajectory control information stored in the JOG vector direction storage unit 215.SELECTED DRAWING: Figure 3

Description

本発明は、ロボットアームの基準部位の軌道を制御する制御情報を入力するロボット操作装置を備えたロボット装置の制御方法、ロボット装置、および前記のロボット操作装置に関するものである。   The present invention relates to a control method of a robot apparatus including a robot operation apparatus that inputs control information for controlling a trajectory of a reference part of a robot arm, a robot apparatus, and the robot operation apparatus.

産業用などの用途のロボット装置には、設置された生産現場において、実際にロボットアームに動作を行わせながらロボット動作を教示するロボット操作装置を備えたものがある。このようなロボット操作装置(教示装置)は、ティーチングペンダントと呼ばれるものがある。ティーチングペンダントには、ロボットアームの各関節の角度、あるいはアーム先端の基準位置の位置、姿勢などを制御するためのボタンやスイッチ操作手段が設けられる。作業者は、ロボット装置の設置現場において、ティーチングペンダントのこれらの操作手段を介して実際にロボットアームを動作させ、ロボット制御データとしての教示点をロボット制御装置に記憶させることができる。   Some robot apparatuses for industrial use are equipped with a robot operation apparatus that teaches robot operation while actually causing a robot arm to perform an operation at an installed production site. Such a robot operation device (teaching device) is known as a teaching pendant. The teaching pendant is provided with buttons and switch operation means for controlling the angle of each joint of the robot arm or the position and posture of the reference position of the arm tip. The operator can actually operate the robot arm via these operating means of the teaching pendant at the installation site of the robot apparatus, and can store the teaching points as robot control data in the robot control apparatus.

この種のロボット装置において、部品の組み付けや挿入動作を教示する場合、教示点〜教示点の間を直線補間で結ぶような軌道(経路)を生成することが行われる。例えば、その部品の移動方向に応じて、垂直上下(Z軸)方向、または水平(XまたはY軸)方向に直線補間を行うことによって軌道が生成される。このような教示操作を繰り返して、ロボット装置に組付けや加工動作に係る動作点を教示することができる。   In this type of robot apparatus, when teaching the assembly and insertion of parts, a trajectory (path) that connects teaching points to teaching points by linear interpolation is generated. For example, the trajectory is generated by performing linear interpolation in the vertical vertical (Z axis) direction or horizontal (X or Y axis) direction according to the moving direction of the component. Such teaching operations can be repeated to teach operating points related to assembly and machining operations to the robot apparatus.

一方、ロボット装置が設置された生産現場では、後から治具やユニットが設置されたりすることがある。このような作業工程の変更は、工程の追加や、製造物の仕様変更などに応じてしばしば発生し、これによって例えば、記憶させたロボット制御データ中の軌道を変更する必要が生じる。   On the other hand, in a production site where a robot apparatus is installed, jigs and units may be installed later. Such a change in the work process often occurs in accordance with the addition of a process, a change in the specification of a product, and the like. For example, it becomes necessary to change the trajectory in the stored robot control data.

上記のような作業工程の変更によって、対象物の組付け位置にアプローチする軌道の一部にロボットアームと干渉する障害物が配置される場合がある。この場合には、ティーチングペンダントを用いて、例えばその軌道の途中に教示点を追加し、障害物を回避できるような軌道に変更する作業が必要となる。   Due to the change in the work process as described above, an obstacle that interferes with the robot arm may be arranged on a part of the track approaching the assembly position of the target object. In this case, it is necessary to add a teaching point in the middle of the trajectory and change the trajectory so as to avoid an obstacle using the teaching pendant.

通常、部品を組付け位置に対して、組付けまたは挿入する場合、部品が組付け位置に対してアプローチする移動方向が一定になるように制御する。余程大きな寸法の余裕がある場合を除き、この組付け位置に向かう軌道は変更することができない。当然、上記のような変更作業を行っても、部品の組付け位置にアプローチする最後の軌道のベクトルは、変更前と同じでなければならない。   Usually, when assembling or inserting a part with respect to an assembling position, control is performed so that the moving direction in which the part approaches the assembling position is constant. The trajectory toward this assembly position cannot be changed unless there is a large dimension allowance. Of course, even if the above change work is performed, the vector of the last trajectory approaching the assembly position of the part must be the same as before the change.

ところが、従来のティーチングペンダントのようなロボット操作装置では、手動操作によって、ある教示点から次の教示点へと教示点を順次、直列的に指定し、その間の動作を直線補間するような制御を基本としている。例えば、組付け位置にアプローチする1つの軌道の途中に障害物を回避するための軌道を追加するには、その経路を構成する全ての教示点を手動操作により追加する作業が必要となる。また、組付け位置にアプローチする最後の経路も、そのベクトルの方向が、変更作業前と一致するように教示しなければならないが、この操作も、従来は例えばティーチングペンダントを用いた手動操作によって再度行わなければならない。   However, in a conventional robot operating device such as a teaching pendant, a manual operation is performed so that teaching points are sequentially specified in series from one teaching point to the next teaching point, and the operation between them is linearly interpolated. Basic. For example, in order to add a trajectory for avoiding an obstacle in the middle of one trajectory approaching the assembly position, it is necessary to manually add all the teaching points constituting the path. Also, the last path approaching the assembly position must be taught so that the direction of the vector coincides with that before the change work, but this operation is also conventionally performed again by manual operation using, for example, a teaching pendant. It must be made.

特開平6−102917号公報Japanese Patent Laid-Open No. 6-102917

従来、ロボットの教示作業において、ある教示点から次の教示点までの軌道(経路)の途中に障害物がある場合は、ティーチングペンダントの手動操作によって障害物を回避する経路を構成する教示点(回避点)を逐一教示しなければならなかった。このような回避教示を行った後、組付け位置へアプローチするなどの必要があり、ロボットを元の軌道に戻すのも、従来では全てティーチングペンダントの手動操作が必要で、作業者の多大な労力が必要であった。特に、教示点データが既に存在し、その経路の一部を回避軌道に変更するような作業では、問題なく利用できていた回避前の軌道があっても、その軌道への復帰には全て手動の教示操作が必要であった。   Conventionally, in the teaching operation of a robot, when there is an obstacle in the course (path) from one teaching point to the next teaching point, teaching points that constitute a path for avoiding the obstacle by manual operation of the teaching pendant ( It was necessary to teach each avoidance point. After performing such avoidance teaching, it is necessary to approach the assembly position, etc., and to return the robot to the original trajectory, all of the conventional manual operation of the teaching pendant is necessary, and a great deal of labor is required by the operator. Was necessary. In particular, in the operation where teaching point data already exists and a part of the route is changed to an avoidance trajectory, even if there is a trajectory before avoidance that could be used without any problems, it is necessary to manually return to the trajectory. The teaching operation was necessary.

例えば、ワーク挿入上空から挿入位置までの間に障害物が発生した場合は、ティーチングペンダントの操作を繰り返して回避動作を教示した後に、元のベクトルに整合するように細かなジョグ操作を行い、位置調整を行う必要があった。なお、この「ジョグ操作」は、例えば1キーの連続押下に応じてキーに設定された方向へ、例えばロボットの基準点(基準部位)を移動させる操作を意味する(以下では、上記の用語「ジョグ」に関しては「JOG」の表記も用いる)。   For example, if an obstacle occurs between the work insertion sky and the insertion position, teach the avoidance operation by repeating the teaching pendant operation, then perform a fine jog operation to match the original vector, There was a need to make adjustments. The “jog operation” means an operation of moving a reference point (reference part) of the robot, for example, in a direction set to the key in response to continuous pressing of one key (hereinafter, the term “jogging operation”). “JOG” is also used for “Jog”).

そして、この時、位置調整を誤れば、当然ながら部品やロボットと、他のワークや障害物の干渉などを生じる可能性がある。上記のような事情によって、従来ではこの種の回避教示に多大な時間と労力が必要であった。   At this time, if the position adjustment is wrong, there is a possibility that interference of parts and robots with other workpieces and obstacles may occur. Due to the circumstances as described above, conventionally, a great amount of time and labor are required for this type of avoidance teaching.

そこで、特定の回避教示(操作)を行う場合、特定のモード、例えば回避モードを指定できるようにすることが考えられる。そしてこの回避モードにおいては、例えば手動操作による回避軌道の教示を可能とし、回避モードの無効化ないし終了に応じて、回避モードに入る前の元の軌道に復帰させることができれば便利であろう、と考えられる。   Therefore, when performing a specific avoidance teaching (operation), it may be possible to specify a specific mode, for example, an avoidance mode. In this avoidance mode, for example, it is possible to teach an avoidance trajectory by manual operation, and it would be convenient if it was possible to return to the original trajectory before entering the avoidance mode in accordance with the invalidation or termination of the avoidance mode. it is conceivable that.

ところが、従来では、上記の回避モードのように例外的な教示モードに入り、その後、回避モードに入る前の元の軌道に自動的に復帰させる技術は、知られていない。例えば、上記特許文献1には、作業空間における障害物の出現等の回避方法として、基準位置への回避方法が開示されている。この技術は、予め設定した基準位置に他部材との干渉などの問題なく復帰する経路によって基準位置へ戻るためのものであって、基準位置に復帰することしかできず、例えばある特定の元の軌道に復帰することはできなかった。   However, conventionally, there is no known technique for automatically returning to the original trajectory before entering the exceptional teaching mode as in the avoidance mode and then entering the avoidance mode. For example, Patent Document 1 discloses a method for avoiding a reference position as a method for avoiding the appearance of an obstacle in a work space. This technique is for returning to a reference position by a route that returns to a preset reference position without problems such as interference with other members, and can only return to the reference position. It was not possible to return to orbit.

本発明の課題は、上記に鑑み、例えばロボットの教示データの変更や編集などに利用できる例外モードとして、回避モードを利用できるようにすることにある。この回避モードにおいては、自由な教示操作により教示データの変更や編集が可能で、回避モード終了時にロボットを回避モードに入る前の元の軌道に自動的に復帰させることができるようにする。   In view of the above, an object of the present invention is to make it possible to use an avoidance mode as an exceptional mode that can be used for changing or editing robot teaching data, for example. In this avoidance mode, teaching data can be changed or edited by a free teaching operation, and when the avoidance mode ends, the robot can be automatically returned to the original trajectory before entering the avoidance mode.

上記課題を解決するため、本発明においては、ロボットアームの基準部位の軌道を制御するロボット制御を実行する制御装置と、前記ロボットアームの基準部位の軌道を制御する制御情報を入力するロボット操作装置と、を備えたロボット装置、ないしその制御方法において、前記制御装置は、前記ロボット操作装置に配置された回避モード操作部の操作に応じて、前記ロボットアームの前記基準部位の軌道を変更する回避モードを有効化または無効化し、前記回避モードが有効化された時、前記回避モードが有効化される前の前記基準部位の軌道に対応する軌道制御情報を軌道記憶部に記憶させ、前記回避モードが有効化されている間は、前記ロボット操作装置からの入力に基づき、前記ロボットアームに前記基準部位の軌道を変更する回避動作を行わせ、前記回避モードが無効化された時は、前記ロボットアームの前記基準部位を、前記基準部位の現在位置から前記軌道記憶部に記憶された軌道制御情報に対応する前記回避モードが有効化される前の軌道に復帰させる復帰制御情報を生成する構成を採用した。   In order to solve the above-mentioned problems, in the present invention, a control device that executes robot control for controlling the trajectory of the reference part of the robot arm, and a robot operation device that inputs control information for controlling the trajectory of the reference part of the robot arm And a control method thereof, wherein the control device avoids changing a trajectory of the reference portion of the robot arm in accordance with an operation of an avoidance mode operation unit arranged in the robot operation device. Enabling or disabling the mode, and when the avoidance mode is enabled, the trajectory control information corresponding to the trajectory of the reference portion before the avoidance mode is enabled is stored in the trajectory storage unit, and the avoidance mode Is activated, a circuit for changing the trajectory of the reference part to the robot arm based on an input from the robot operation device. When the operation is performed and the avoidance mode is invalidated, the avoidance mode corresponding to the trajectory control information stored in the trajectory storage unit from the current position of the reference portion is changed to the reference portion of the robot arm. A configuration for generating return control information to return to the orbit before being validated was adopted.

上記の特徴的な構成によって、本発明によれば、回避モード操作部の操作により、例えばロボットの教示データの変更や編集などに利用できる例外モードとして利用できる回避モードを設定ないし解除することができる。そして、回避モードが有効な状態では、自由な教示操作により教示データの変更や編集が可能であり、しかも回避モード終了時にはロボットを回避モードに入る前の元の軌道に自動的に復帰させることができる。本発明の回避モードは、障害物の回避動作を追加するような場面で利用でき、特に面倒な手動操作が必要であった元の軌道への復帰を自動的に行うことができ、作業者の負担を大きく軽減し、作業時間を著しく短縮できる、という優れた効果がある。   With the above-described characteristic configuration, according to the present invention, an avoidance mode that can be used as an exception mode that can be used, for example, for changing or editing robot teaching data can be set or canceled by operating the avoidance mode operation unit. . In the state where the avoidance mode is valid, the teaching data can be changed or edited by a free teaching operation, and when the avoidance mode ends, the robot can be automatically returned to the original trajectory before entering the avoidance mode. it can. The avoidance mode of the present invention can be used in scenes where an obstacle avoidance operation is added, and can automatically return to the original trajectory that required troublesome manual operation. There is an excellent effect that the burden is greatly reduced and the working time can be remarkably shortened.

本発明を採用したロボット装置の回避スイッチを備えたティーチングペンダントの正面図である。It is a front view of the teaching pendant provided with the avoidance switch of the robot apparatus which employ | adopted this invention. 本発明を採用したロボット装置の構成を示した説明図である。It is explanatory drawing which showed the structure of the robot apparatus which employ | adopted this invention. 本発明を採用したロボット装置における制御系の構成を示した説明図である。It is explanatory drawing which showed the structure of the control system in the robot apparatus which employ | adopted this invention. 本発明を採用したロボット装置において、軌道上に障害物が設置された状態を示した説明図である。It is explanatory drawing which showed the state in which the obstacle was installed on the track | orbit in the robot apparatus which employ | adopted this invention. 本発明を採用したロボット装置において、特定の教示点から障害物近くまでジョグ移動させた経路を示した説明図である。It is explanatory drawing which showed the path | route which carried out the jog movement from the specific teaching point to the obstacle vicinity in the robot apparatus which employ | adopted this invention. 本発明を採用したロボット装置において、手動のジョグ操作により障害物を回避させる経路を示した説明図である。In the robot apparatus employing the present invention, it is an explanatory diagram showing a path for avoiding an obstacle by a manual jog operation. 本発明を採用したロボット装置において、回避前のジョグベクトル方向上に移動する経路を示した説明図である。It is explanatory drawing which showed the path | route which moves on the jog vector direction before avoidance in the robot apparatus which employ | adopted this invention. 本発明を採用したロボット装置において、特定の目標点へ向けてジョグ動作を再開した状態を示した説明図である。It is explanatory drawing which showed the state which resumed jog operation | movement toward the specific target point in the robot apparatus which employ | adopted this invention. 本発明を採用したロボット装置における障害物の回避制御の流れを示したフローチャート図である。It is the flowchart figure which showed the flow of the obstacle avoidance control in the robot apparatus which employ | adopted this invention. 回避モードが有効となった時のロボット制御手順を示したフローチャート図である。It is the flowchart figure which showed the robot control procedure when the avoidance mode became effective. 回避モードが無効となった時のロボット制御手順を示したフローチャート図である。It is the flowchart figure which showed the robot control procedure when the avoidance mode became invalid.

以下、添付図面に示す実施例を参照して本発明を実施するための形態につき説明する。なお、以下に示す実施例はあくまでも一例であり、例えば細部の構成については本発明の趣旨を逸脱しない範囲において当業者が適宜変更することができる。また、以下の説明で取り上げる数値は、参考数値であって、本発明を限定するものではない。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described with reference to embodiments shown in the accompanying drawings. The following embodiment is merely an example, and for example, a detailed configuration can be appropriately changed by those skilled in the art without departing from the gist of the present invention. The numerical values taken up in the following description are reference numerical values and do not limit the present invention.

図1〜図3に本発明を採用したロボット装置100の一実施例を示す。図2は本実施例のロボット装置100の全体構成を、図1は本ロボット装置100で用いられるティーチングペンダント101の構成を示している。また、図3は本ロボット装置100の制御系の構成を示している。   1 to 3 show an embodiment of a robot apparatus 100 employing the present invention. FIG. 2 shows the overall configuration of the robot apparatus 100 of this embodiment, and FIG. 1 shows the configuration of the teaching pendant 101 used in the robot apparatus 100. FIG. 3 shows the configuration of the control system of the robot apparatus 100.

図2において、ロボット操作装置としてのティーチングペンダント101はケーブルにより制御装置201(ロボット制御装置)に接続されており、制御装置201に対して教示コマンドにより指示を行う。制御装置201は、ティーチングペンダント101で行われる教示操作に応じてロボットアーム301の動作を制御する。   In FIG. 2, a teaching pendant 101 as a robot operation device is connected to a control device 201 (robot control device) by a cable, and instructs the control device 201 by a teaching command. The control device 201 controls the operation of the robot arm 301 according to the teaching operation performed with the teaching pendant 101.

ロボットアーム301は、例えば図示のような垂直多関節型のロボットアームで、アーム先端には、ワークWを操作するためのエンドエフェクタとしてハンド401が装着されている。ロボットアーム301は、ケーブルにより制御装置201に接続されている。   The robot arm 301 is, for example, a vertical articulated robot arm as shown in the figure, and a hand 401 is attached to the end of the arm as an end effector for operating the workpiece W. The robot arm 301 is connected to the control device 201 by a cable.

ティーチングペンダント101の教示操作に応じて、制御装置201はロボットアーム301の各部の関節やハンド401の動作を制御する。これにより、例えば、図2中の矢印に示すような軌道(経路、軌跡)で、ハンド401によりワークWを把持して、教示点Aから教示点Bまで移動させることができる。なお、このようなロボット制御において、教示点Aや教示点Bに位置させるロボット装置100の基準点(基準部位)は、ロボットアーム301の先端部の任意の場所に設定されていてよい。例えば、このような基準点(基準部位)として、ハンド401の装着面(フランジ面)の中心や、ハンド401の把持中心など任意の部位(の位置)を用いることができる。なお、以下、本実施例では、ロボットの基準点は、例えばハンド401の把持中心(ほぼワークWの中心に一致する)であるものとする。   In response to the teaching operation of the teaching pendant 101, the control device 201 controls the joints of each part of the robot arm 301 and the operation of the hand 401. Thereby, for example, the work W can be gripped by the hand 401 and moved from the teaching point A to the teaching point B in a trajectory (path, trajectory) as shown by an arrow in FIG. In such robot control, the reference point (reference part) of the robot apparatus 100 positioned at the teaching point A or the teaching point B may be set at an arbitrary location on the tip of the robot arm 301. For example, as such a reference point (reference part), an arbitrary part (position) such as the center of the mounting surface (flange surface) of the hand 401 or the grip center of the hand 401 can be used. In the following, in this embodiment, it is assumed that the reference point of the robot is, for example, the grip center of the hand 401 (substantially coincides with the center of the workpiece W).

ティーチングペンダント101の操作面は例えば図1に示すように構成される。ロボットアーム301の上記基準点を移動させるべき動作ポイントとしての教示点を教示するために用いられる。また、ティーチングペンダント101は、ロボットアーム301の各関節の角度を指定するような操作方式で、アーム各部の位置、姿勢を所望に制御するような操作方式で用いられる場合もある。   The operation surface of the teaching pendant 101 is configured as shown in FIG. It is used to teach a teaching point as an operation point for moving the reference point of the robot arm 301. Further, the teaching pendant 101 may be used in an operation method in which the angle of each joint of the robot arm 301 is designated, and in an operation method in which the position and posture of each part of the arm are controlled as desired.

図1のティーチングペンダント101は、座標軸(X+、X−、Y+、Y−、Z+、Z−)に沿う正逆方向の移動、および座標軸廻り(RX+、RX−、RY+、RY−、RZ+、RZ−)の正逆方向の回転をそれぞれ指示可能なキー114を有している。また、図1のティーチングペンダント101には、ロボット装置100(図2のロボットアーム301、ハンド401)の動作やプログラム状態に関する諸情報を表示するための表示部102を有する。表示部102の左上には、緊急時にロボット装置100の動作を直ちに停止させるための非常停止キー113が配置されている。   The teaching pendant 101 in FIG. 1 moves in the forward and reverse directions along the coordinate axes (X +, X−, Y +, Y−, Z +, Z−) and around the coordinate axes (RX +, RX−, RY +, RY−, RZ +, RZ). It has a key 114 that can instruct the rotation in the forward and reverse directions. In addition, the teaching pendant 101 of FIG. 1 has a display unit 102 for displaying various information relating to the operation and program state of the robot apparatus 100 (the robot arm 301 and the hand 401 of FIG. 2). An emergency stop key 113 for immediately stopping the operation of the robot apparatus 100 in an emergency is arranged at the upper left of the display unit 102.

表示部102は、ロボットの現在位置あるいは現在姿勢、ロボット教示時の移動の速度あるいはステップ送り時の移動量、教示済の動作ポイントの位置あるいは姿勢などを含むロボットの動作に関する情報を表示することができる。   The display unit 102 can display information on the robot operation including the current position or posture of the robot, the speed of movement at the time of robot teaching or the amount of movement at the time of step feed, the position or posture of the taught operation point, and the like. it can.

なお、表示部102は例えば液晶表示器とタッチセンサなどを用いたタッチパネルなどから構成することもできる。その場合、表示部102はロボットの動作やプログラム状態に関する情報表示の他、表示上に画成されたタッチキーの操作によって、ロボットの教示操作を行う操作入力手段(の一部)を構成することになる。   Note that the display unit 102 can be configured by a touch panel using a liquid crystal display and a touch sensor, for example. In that case, the display unit 102 constitutes (part of) operation input means for performing the teaching operation of the robot by the operation of the touch key defined on the display in addition to the information display regarding the operation and the program state of the robot. become.

表示部102のうち、表示領域1024は、設定済みの(あるいはこれから設定される)教示点におけるX、Y、Zの3次元座標値(ないし各軸軸上の移動量)と、該3次元座標軸廻りにおける回転移動の量(RX、RY、RZ)の表示に用いることができる。また、表示領域1022は、特に現在設定中の教示点、または現在のロボットの状態に対応したX、Y、Zの3次元座標値(ないし各軸軸上の移動量)と、該3次元座標軸廻りにおける回転移動の量(RX、RY、RZ)の表示などに用いられる。上部および下部の表示領域1021、1025は、例えばファンクション表示として用いられる。これら表示領域1021、1025に画成される複数のファンクション表示は動作状態に応じて異なる表示に切り換えられる。また、中央の表示領域1023は、現在の連続(JOG)移動速度(またはステップ操作量など)、ロボットの現在の操作対象部位の表示などに用いられる。また、図1の状態では、表示領域1023の右側には、教示点などの登録に用いられる登録キーが表示されている。この登録キーは、例えば後述の教示点の登録(図9ステップS105、S106)に利用できる。   The display area 1024 in the display unit 102 includes three-dimensional coordinate values (or movement amounts on each axis) of X, Y, and Z at set (or set) teaching points and the three-dimensional coordinate axes. It can be used to display the amount of rotational movement (RX, RY, RZ) around. In addition, the display area 1022 includes, in particular, a currently set teaching point or three-dimensional coordinate values (or movement amounts on each axis) of X, Y, and Z corresponding to the current robot state and the three-dimensional coordinate axes. This is used to display the amount of rotational movement (RX, RY, RZ) around the vehicle. The upper and lower display areas 1021 and 1025 are used as function displays, for example. The plurality of function displays defined in the display areas 1021 and 1025 are switched to different displays depending on the operation state. The central display area 1023 is used for displaying the current continuous (JOG) moving speed (or step operation amount, etc.), the current operation target part of the robot, and the like. In the state of FIG. 1, a registration key used for registering a teaching point or the like is displayed on the right side of the display area 1023. This registration key can be used, for example, for registering teaching points described later (steps S105 and S106 in FIG. 9).

なお、図1に示した表示部102の表示状態はあくまでもロボット装置の状態やティーチングペンダント101の特定の操作状態に対応した一例に過ぎない。表示部102をタッチパネルなどにより構成する場合には、当然ロボット装置の状態やティーチングペンダント101の特定の操作状態に応じて表示部102の表示の全部または一部は図1とは異なる状態に制御される場合がある。これら表示部102の表示の様式や、表示部102がタッチパネルなどにより構成される場合の操作方式に関しては当業者が任意に変更可能な設計事項である。   Note that the display state of the display unit 102 illustrated in FIG. 1 is merely an example corresponding to the state of the robot apparatus or a specific operation state of the teaching pendant 101. When the display unit 102 is configured by a touch panel or the like, naturally, all or a part of the display on the display unit 102 is controlled to a state different from that in FIG. 1 according to the state of the robot apparatus or the specific operation state of the teaching pendant 101. There is a case. A person skilled in the art can arbitrarily change the display style of the display unit 102 and the operation method when the display unit 102 is configured by a touch panel or the like.

ティーチングペンダント101のキー114(キー群)は、正逆2つのキーで構成され、例えばステップ操作やジョグ操作によって操作される。このうち、ステップ操作は、1キーの押下でキーに設定された方向へ、例えばロボットの上記基準点を移動させる。これに対して、ジョグ操作は、1キーの連続押下に応じてキーに設定された方向へ、例えばロボットの上記基準点を移動させるものである。   The key 114 (key group) of the teaching pendant 101 is composed of two forward and reverse keys, and is operated by, for example, step operation or jog operation. Of these, the step operation moves the reference point of the robot, for example, in the direction set to the key by pressing one key. On the other hand, the jog operation moves the reference point of the robot, for example, in the direction set to the key in response to continuous pressing of one key.

これらの操作に関して、ロボット基準点の(ステップ)移動量や(ジョグ)移動速度を指定する操作手段は、例えば別途配置したファンクションキー(不図示)によって構成できる。また、これら(ステップ)移動量や(ジョグ)移動速度を指定する操作手段は、例えば表示部102とともに配置されたタッチパネル上に配置されるファンクションキーによって構成することもできる。なお、以下の説明では、キー114の操作はジョグ操作によって行うものとするが、以下に示す制御および動作はステップ操作による操作方式でも同様に実現できる。   Regarding these operations, the operation means for designating the (step) movement amount and (jog) movement speed of the robot reference point can be configured by function keys (not shown) arranged separately, for example. The operation means for designating these (step) movement amount and (jog) movement speed can also be configured by function keys arranged on a touch panel arranged together with the display unit 102, for example. In the following description, the operation of the key 114 is performed by a jog operation. However, the following control and operation can be similarly realized by an operation method using a step operation.

本実施例のティーチングペンダント101では、操作面に回避スイッチ111を配置している。この回避スイッチ111は、オルタネイト(トグル)操作機能を有するスイッチ(ボタン)により構成される。後述の制御装置201は、回避スイッチ111のONによって、回避モードをON(有効)状態に制御する。この回避モードのON(有効)状態から、再度、回避スイッチ111が操作されると、制御装置201は回避モードを終了させる、即ち、回避モードをOFF(無効)状態に制御にする。   In the teaching pendant 101 of this embodiment, an avoidance switch 111 is disposed on the operation surface. The avoidance switch 111 includes a switch (button) having an alternate (toggle) operation function. The control device 201 to be described later controls the avoidance mode to the ON (valid) state by turning on the avoidance switch 111. When the avoidance switch 111 is operated again from the ON (valid) state of the avoidance mode, the control device 201 ends the avoidance mode, that is, controls the avoidance mode to the OFF (invalid) state.

なお、本実施例では、回避スイッチ111は、ティーチングペンダント101に配置しているが、ティーチングペンダント101以外の場所(例えば制御装置201の筐体など)に回避スイッチ111を設ける構成であってもよい。   In this embodiment, the avoidance switch 111 is disposed on the teaching pendant 101. However, the avoidance switch 111 may be provided in a place other than the teaching pendant 101 (for example, the casing of the control device 201). .

本実施例の回避スイッチ111により制御される回避モードを用いた回避教示(操作)は、図4〜図8に示すように利用することができる。例えば図2のA点からB点にJOG操作でロボットの移動を行う際、図4のように作業仕様の変更などによって経路の途中に回避すべき障害物501が現れた場合、図5〜図8に示すように本実施例の回避モードを利用することができる。   The avoidance teaching (operation) using the avoidance mode controlled by the avoidance switch 111 of this embodiment can be used as shown in FIGS. For example, when the robot is moved from point A to point B in FIG. 2 by a JOG operation, if an obstacle 501 to be avoided appears in the route due to a change in work specifications as shown in FIG. As shown in FIG. 8, the avoidance mode of this embodiment can be used.

図4は、教示点A−Bの軌道上に障害物501が設置された状態を示している。図2との比較から明らかなように、教示点A−Bの軌道のままロボットの基準点を移動させれば、ロボットアーム301、ハンド401、あるいはワークWが障害物501と干渉(あるいは衝突)する。   FIG. 4 shows a state in which an obstacle 501 is installed on the trajectory of the teaching point A-B. As is clear from the comparison with FIG. 2, if the robot reference point is moved while maintaining the trajectory of the teaching point AB, the robot arm 301, the hand 401, or the workpiece W interferes (or collides) with the obstacle 501. To do.

ここで、例えば、教示済みの教示データを編集する場合などにおいては、教示点AおよびBが既に教示済みである。障害物501を回避するためには、教示点A−Bの軌道(経路)の途中に、障害物501を回避するための回避軌道を構成する教示(回避)点を追加する必要がある。この回避軌道は、たとえば図7の軌道602、603、604のように障害物501を回避する軌道である。従来では、このような回避軌道(602、603、604)を構成する教示(回避)点の追加(あるいは変更)は、上述のように全て手動でティーチングペンダント101を用いた教示操作を繰り返すことにより行われる。   Here, for example, when teaching data that has been taught is edited, the teaching points A and B have already been taught. In order to avoid the obstacle 501, it is necessary to add a teaching (avoidance) point that constitutes an avoidance trajectory for avoiding the obstacle 501 in the middle of the trajectory (path) of the teaching point AB. This avoidance trajectory is a trajectory that avoids the obstacle 501 as in the trajectories 602, 603, and 604 of FIG. Conventionally, addition (or change) of teaching (avoidance) points constituting such avoidance trajectories (602, 603, 604) is performed by manually repeating teaching operations using the teaching pendant 101 as described above. Done.

特に、回避教示後、教示点Bに向かう軌道(ベクトル)の方向は、教示点A−Bの軌道(経路)と正確に一致しているのが望ましい。これは、教示点Bが例えば、ワークWの組付け位置であって、教示点A−Bの軌道が組付け位置にアプローチする方向に整合するようプログラムされていた場合などにおいてはなおさらである。   In particular, after the avoidance teaching, it is desirable that the direction of the trajectory (vector) toward the teaching point B exactly matches the trajectory (path) of the teaching point AB. This is even more so when, for example, the teaching point B is the assembly position of the workpiece W and the trajectory of the teaching point A-B is programmed to match the direction approaching the assembly position.

ただし、以下に示す回避モードを用いたロボット制御においては、教示点Bは必ずしも教示済みの教示点である必要はない。例えば、少なくとも、回避モードに入る前の段階でなんらかの特定の軌道でロボットの基準点が移動していればよく、その場合でも、教示点Bが教示済みである場合と同様に、回避軌道からその元の軌道への自動復帰の効果を得ることができる。もし、教示点Bが教示済みでない場合は、以下の説明で教示点Bとして説明する点は、前記回避モードに入る前に基準点が移動していた軌道上の1点に相当すると考えてよい。   However, in robot control using the avoidance mode described below, the teaching point B does not necessarily need to be a taught teaching point. For example, it suffices that the reference point of the robot moves on a specific trajectory at least before entering the avoidance mode, and even in that case, the teaching point B is moved from the avoidance trajectory in the same manner as when the teaching point B has been taught. The effect of automatic return to the original trajectory can be obtained. If the teaching point B is not taught, the point described as the teaching point B in the following description may be considered to correspond to one point on the trajectory where the reference point has moved before entering the avoidance mode. .

本実施例の回避操作(教示)は図5〜図8のようにして行う。図5は教示点Aから障害物501の近傍までティーチングペンダント101(のキー114)をジョグ操作して移動させた状態を示している。例えば、もし教示点Bが既に教示されているのであれば、この操作は、教示点A−Bの軌道の途中までのロボット動作を、ジョグ操作により「再生」する操作として実行される。   The avoidance operation (teaching) of this embodiment is performed as shown in FIGS. FIG. 5 shows a state in which the teaching pendant 101 (key 114) is moved from the teaching point A to the vicinity of the obstacle 501 by jogging. For example, if the teaching point B has already been taught, this operation is executed as an operation of “reproducing” the robot operation up to the middle of the trajectory of the teaching point AB by a jog operation.

作業者は、教示点Aから障害物501の近傍までロボットの基準点を移動させた時点でティーチングペンダント101の回避スイッチ111を押下して回避モードをONとする。この回避モードのON操作を制御装置201が検出すると、回避スイッチ111の押下を認識したその時点の基準点の現在位置、およびその時の基準点の軌道に対応する軌道制御情報をメモリに記憶させる。   When the operator moves the reference point of the robot from the teaching point A to the vicinity of the obstacle 501, the worker presses the avoidance switch 111 of the teaching pendant 101 to turn the avoidance mode ON. When the control device 201 detects the ON operation of the avoidance mode, the current position of the reference point at that time when the depression of the avoidance switch 111 is recognized and the trajectory control information corresponding to the trajectory of the reference point at that time are stored in the memory.

本明細書では、以下、JOGベクトル方向記憶部(215)に記憶させる軌道制御情報のうち、その時点の基準点の軌道の方向を「JOGベクトル方向」という。この基準点の軌道の方向に相当するJOGベクトル方向は、上記の現在位置の情報とともに、JOGベクトル方向記憶部(215:後述)に記憶させる。   Hereinafter, in the trajectory control information stored in the JOG vector direction storage unit (215), the trajectory direction of the reference point at that time is referred to as “JOG vector direction”. The JOG vector direction corresponding to the direction of the reference point trajectory is stored in the JOG vector direction storage unit (215: described later) together with the information on the current position.

図6および図7は、作業者が回避モード中のティーチングペンダント101(のキー114)の手動操作によって、障害物501を回避する軌道を教示する様子を示している。この回避操作は、作業者が障害物501の周囲の状況を確認しながら行う。   FIGS. 6 and 7 show how the operator teaches a trajectory for avoiding the obstacle 501 by manual operation of the teaching pendant 101 (the key 114) in the avoidance mode. This avoidance operation is performed while the operator confirms the situation around the obstacle 501.

図6では、ロボットの基準点が元の軌道(601)から上方に移動するように軌道修正(602)し、さらに障害物501の上部を通過できる高さで水平方向に軌道修正(603)を行っている。これら各々の軌道修正点は教示点として登録する。この登録操作は、ジョグ操作方向を変更するために、キー114のジョグ操作を一端停止し、ロボットアーム301が停止した時点で、ティーチングペンダント101で所定の操作を行うことによって行われる。この登録操作には、例えば図1の表示部102に表示した登録キーを用いることができる。   In FIG. 6, the trajectory correction (602) is performed so that the reference point of the robot moves upward from the original trajectory (601), and the trajectory correction (603) is performed in a horizontal direction at a height that can pass above the obstacle 501. Is going. These trajectory correction points are registered as teaching points. In order to change the jog operation direction, this registration operation is performed by temporarily stopping the jog operation of the key 114 and performing a predetermined operation with the teaching pendant 101 when the robot arm 301 stops. For this registration operation, for example, a registration key displayed on the display unit 102 of FIG. 1 can be used.

そして、図7のように、ロボットの基準点が障害物501の上部を通過した時点で、回避スイッチ111を再度操作して回避モードをOFFに切り換える。これにより、制御装置201は、JOGベクトル方向記憶部(215)に記憶させた軌道制御情報、即ち、教示点A−Bの軌道に最短距離で復帰するための復帰制御情報を生成する。そして、制御装置201は、生成した復帰制御情報に基づき、ロボットの基準点を移動させる。この復帰制御情報に基づくロボットの基準点の移動は、ティーチングペンダント101の操作を行うことなく自動的に実行する。   Then, as shown in FIG. 7, when the robot reference point passes over the obstacle 501, the avoidance switch 111 is operated again to switch the avoidance mode to OFF. Thus, the control device 201 generates trajectory control information stored in the JOG vector direction storage unit (215), that is, return control information for returning to the trajectory of the teaching point A-B with the shortest distance. Then, the control device 201 moves the reference point of the robot based on the generated return control information. The movement of the reference point of the robot based on the return control information is automatically executed without operating the teaching pendant 101.

即ち、図7において、回避スイッチ111をOFFに切り換えると回避モードがOFFに制御される。そして、制御装置201は、JOGベクトル方向記憶部(215)に記憶されている位置とJOGベクトル方向に基づき、教示点A−Bの軌道に最短距離で復帰するための復帰制御情報を生成する。そして、ロボットアーム301の各部を動作させ、読みだしてロボットの基準点を回避モードが有効となる(直)前の軌道上に復帰させる。なお、この復帰制御情報の生成と、それに基づく基準点の復帰制御は、後述する制御装置201の復帰制御部216の機能によって実現される。   That is, in FIG. 7, when the avoidance switch 111 is switched to OFF, the avoidance mode is controlled to be OFF. Then, the control device 201 generates return control information for returning to the trajectory of the teaching point A-B with the shortest distance based on the position stored in the JOG vector direction storage unit (215) and the JOG vector direction. Then, each part of the robot arm 301 is operated to read out and return the reference point of the robot to the trajectory before the avoidance mode becomes effective (immediately). The generation of the return control information and the return control of the reference point based thereon are realized by the function of the return control unit 216 of the control device 201 described later.

具体的には、制御装置201が生成する復帰制御情報は、教示点A−Bの(直線)軌道上の一点にロボットの基準点が一致するように移動する軌道情報として生成される。図7の例では、制御装置201が生成した復帰制御情報により、ロボットの基準点がほぼ垂直下方に下降するような復帰軌道(軌道604)が生成されている。   Specifically, the return control information generated by the control device 201 is generated as trajectory information that moves so that the reference point of the robot coincides with one point on the (straight) trajectory of the teaching point AB. In the example of FIG. 7, a return trajectory (trajectory 604) is generated so that the reference point of the robot descends substantially vertically downward based on the return control information generated by the control device 201.

ただし、この例は単純な例であり、障害物501の上部により複雑な構造がある、などの理由で、水平面内での軌道変更を数度行うなど、より複雑な回避操作を行う場合も考えられる。このような複雑な回避操作を行った場合は、回避モード終了(OFF)時にそれを回避するために元の軌道(601)の垂直上方にロボットの基準点が位置していない場合も考えられる。   However, this example is a simple example, and there may be a case where a more complicated avoidance operation is performed, for example, the trajectory is changed several times in the horizontal plane because the upper part of the obstacle 501 has a more complicated structure. It is done. When such a complicated avoidance operation is performed, there may be a case where the reference point of the robot is not positioned vertically above the original trajectory (601) in order to avoid it when the avoidance mode ends (OFF).

そこで、制御装置201が、回避モード終了時に生成する復帰軌道(604)は、例えば、可能な限り障害物501に干渉することなく、好ましくは最短距離でロボットの基準点を現在の位置から元の軌道(601)上の1点に移動する軌道とする。このような復帰軌道の条件を満たすように復帰制御情報を生成する具体例については後述する。   Therefore, the return trajectory (604) generated by the control device 201 at the end of the avoidance mode is preferably, for example, the minimum reference distance of the robot from the current position without interfering with the obstacle 501 as much as possible. The trajectory moves to one point on the trajectory (601). A specific example of generating the return control information so as to satisfy the conditions of the return trajectory will be described later.

図8はその後のティーチングペンダント101によるロボット操作を示している。ここでは、ロボットの基準点が、復帰した元の軌道(601)上の延長上の1点から、元の目標位置であった教示点Bへ向けて移動させている(軌道605)。この操作は、例えば、図7のようにロボットの基準点が元の軌道(601)上の1点に復帰した時点で、一旦ロボットアーム301の動作を停止させた後、ティーチングペンダント101(のキー114)で行われるジョグ操作に応じて実行する。   FIG. 8 shows the subsequent robot operation by the teaching pendant 101. Here, the reference point of the robot is moved from one point on the extension on the restored original trajectory (601) toward the teaching point B which was the original target position (trajectory 605). For example, when the robot reference point returns to one point on the original trajectory (601) as shown in FIG. 114).

図3は本実施例の制御装置の構成例を示している。ここでは、上述のような回避(教示)操作を行うために必要な部分や機能をハードウェア(あるいは)ブロックによって示している。   FIG. 3 shows a configuration example of the control device of this embodiment. Here, parts and functions necessary for performing the avoidance (teaching) operation as described above are indicated by hardware (or) blocks.

図3は、本実施例のロボット装置の制御系、即ち、ティーチングペンダント101および制御装置201の構成を示しており、上記のJOG動作制御部214、および復帰制御部216と、JOGベクトル方向記憶部215を含む。これら214〜215により示した機能ブロックは、例えば制御装置201の主制御部を構成する汎用マイクロプロセッサなどから成るCPU211がプログラムを実行することにより実現される。   FIG. 3 shows the configuration of the control system of the robot apparatus of this embodiment, that is, the teaching pendant 101 and the control apparatus 201. The JOG operation control section 214, the return control section 216, and the JOG vector direction storage section. 215. The functional blocks indicated by 214 to 215 are realized by the CPU 211 including, for example, a general-purpose microprocessor constituting the main control unit of the control device 201 executing a program.

図3において、CPU211はティーチングペンダント101による教示操作に基づきロボット装置全体の動作を制御する。ROM221は、例えば後述するCPU211の制御プログラムを格納するためのメモリで、その場合、ROM221は本実施例に係るコンピュータ読み取り可能な記録媒体を構成する。CPU211がROM221に格納された制御プログラムを実行することによって、ティーチングペンダント101との入出力制御、およびロボットアーム301の駆動制御が実現される。   In FIG. 3, the CPU 211 controls the operation of the entire robot apparatus based on the teaching operation by the teaching pendant 101. The ROM 221 is, for example, a memory for storing a control program for the CPU 211 described later. In this case, the ROM 221 constitutes a computer-readable recording medium according to this embodiment. When the CPU 211 executes a control program stored in the ROM 221, input / output control with the teaching pendant 101 and drive control of the robot arm 301 are realized.

なお、ROM221のプログラム格納領域はEEPROMのような書き換え可能な記憶デバイスで構成することができる。その場合、不図示のフラッシュメモリや光ディスクからプログラムおよび制御データを供給することにより、ROM221にロボット制御プログラムをインストールしたり、あるいはそのプログラムを更新したりすることができる。   The program storage area of the ROM 221 can be configured by a rewritable storage device such as an EEPROM. In that case, by supplying a program and control data from a flash memory or an optical disk (not shown), the robot control program can be installed in the ROM 221 or the program can be updated.

200の参照符号によって破線で示したブロックは、RAMなどの書き換え可能なメモリデバイスから構成されたメモリ領域である(以下、RAM200と表記)。本実施例では、上記のJOGベクトル方向記憶部215はこのRAM200の領域に配置される。RAM200には、他にワークエリア212の領域が配置される。ワークエリア212は、例えばCPU211が後述のプログラムを実行する際に一時的に用いられるような一時データの記憶に用いられる。   A block indicated by a broken line with reference numeral 200 is a memory area composed of a rewritable memory device such as a RAM (hereinafter referred to as RAM 200). In the present embodiment, the JOG vector direction storage unit 215 is disposed in the RAM 200 area. In the RAM 200, another work area 212 is arranged. The work area 212 is used for storing temporary data that is temporarily used when the CPU 211 executes a program to be described later, for example.

ティーチングペンダントインターフェース213は、ティーチングペンダント101との制御信号入出力に用いられる。ティーチングペンダントインターフェース213は、無線ないし有線のシリアルないしパラレルインターフェース、あるいはネットワークインターフェースによって構成される。   The teaching pendant interface 213 is used for control signal input / output with the teaching pendant 101. The teaching pendant interface 213 is configured by a wireless or wired serial or parallel interface, or a network interface.

JOG動作制御部214は、ティーチングペンダント101のキー114などのジョグ操作に応じて生成されたコマンドに従ってロボットアーム301を(ジョグ)動作させる。このJOG動作制御部214の機能は、CPU211のソフトウェアによって実現できる。   The JOG operation control unit 214 (jogs) the robot arm 301 according to a command generated according to a jog operation such as the key 114 of the teaching pendant 101. The function of the JOG operation control unit 214 can be realized by software of the CPU 211.

回避スイッチ111の操作によって回避モードがONとなった時、CPU211は回避モードのフラグ(ワークエリア212に配置される)をONとする。また、この時、CPU211は、RAM200のJOGベクトル方向記憶部215に、少なくともその時点でのロボットの基準点(たとえばハンド401の把持中心)の位置(XYZ座標)と、その時点でのJOG動作ベクトル方向を記憶させる。少なくとも、このロボットの基準点の位置(XYZ座標)、およびその時点で基準点が移動しているJOG動作ベクトル方向を保存しておけば、回避モードがONとなる(直)前の基準点が移動していた軌道を特定できる。JOGベクトル方向記憶部215に格納するJOG動作ベクトル方向は、3次元空間における方位情報であればよく、そのメモリ上におけるデータ表現の形式は任意である。   When the avoidance mode is turned on by operating the avoidance switch 111, the CPU 211 turns on the avoidance mode flag (located in the work area 212). At this time, the CPU 211 stores in the JOG vector direction storage unit 215 of the RAM 200 at least the position (XYZ coordinates) of the reference point of the robot (for example, the grip center of the hand 401) at that time and the JOG motion vector at that time. Remember direction. If at least the position (XYZ coordinates) of the reference point of the robot and the JOG motion vector direction in which the reference point is moving at that time are stored, the reference point before (directly) the avoidance mode is turned on The moving trajectory can be identified. The JOG motion vector direction stored in the JOG vector direction storage unit 215 may be azimuth information in a three-dimensional space, and the format of data representation on the memory is arbitrary.

復帰制御部216は、ティーチングペンダント101で回避スイッチ111が操作され、回避モードがOFFに切り換えられた時の復帰制御情報の生成と、それに基づく基準点の復帰制御を行う。この復帰制御部216の機能は、CPU211のソフトウェアによって実現できる。   The return control unit 216 performs generation of return control information when the avoidance switch 111 is operated by the teaching pendant 101 and the avoidance mode is switched to OFF, and return control of the reference point based thereon. The function of the return control unit 216 can be realized by software of the CPU 211.

回避モードがOFFに切り換えられると、復帰制御部216は、JOGベクトル方向記憶部215から、回避モードがONの時に記憶させた上記の基準点の位置情報と、JOG動作ベクトル情報を読み出す。これらの情報によって、回避モードがONの時のロボットの基準点の軌道(回避モードないし回避操作前の軌道)を一意に特定できる。   When the avoidance mode is switched to OFF, the return control unit 216 reads the reference point position information and JOG motion vector information stored when the avoidance mode is ON from the JOG vector direction storage unit 215. With these pieces of information, the trajectory of the reference point of the robot when the avoidance mode is ON (the avoidance mode or the trajectory before the avoidance operation) can be uniquely specified.

そして、復帰制御部216は、ロボットの基準点を現在(回避モードのOFF時)の位置から、回避モードないし回避操作前の軌道に(好ましくは最短距離で)復帰させる復帰制御情報を生成する。この復帰情報は、例えば現在(回避モードのOFF時)の位置から、回避モードないし回避操作前の軌道(の延長)上の(好ましくは最短距離にある)一点に向かうベクトルデータの形式により表現される(復帰軌道ベクトル)。そして、復帰制御部216は、この復帰制御情報(回避軌道ベクトル)を用いて、ロボットアーム301の基準点を、現在位置からJOGベクトル方向記憶部215に記憶させた回避前JOG動作ベクトルの軌道の延長上へ移動させる。この復帰制御情報の生成と、ロボット基準点の復帰動作は、回避スイッチ111による回避モードのOFF操作のみによって自動的に行われる。   Then, the return control unit 216 generates return control information for returning the reference point of the robot from the current position (when the avoidance mode is OFF) to the trajectory before the avoidance mode or the avoidance operation (preferably at the shortest distance). This return information is expressed, for example, in the form of vector data from the current position (when the avoidance mode is OFF) to one point (preferably at the shortest distance) on the trajectory (extension) before the avoidance mode or avoidance operation. (Return trajectory vector). Then, using this return control information (avoidance trajectory vector), the return control unit 216 uses the trajectory of the pre-avoidance JOG motion vector stored in the JOG vector direction storage unit 215 from the current position to the reference point of the robot arm 301. Move up the extension. The generation of the return control information and the return operation of the robot reference point are automatically performed only by the avoidance mode OFF operation by the avoidance switch 111.

なお、図3の制御装置201には、ネットワークインターフェース222を設けてある。このネットワークインターフェース222は、例えば、ティーチングペンダント101の教示操作により生成された教示点データや、回避モードで生成された教示点データを他のロボット装置や管理端末、サーバなどに送信するのに利用できる。また、ネットワークインターフェース222は、他のロボット装置や管理端末、サーバから、教示点データやロボット制御プログラムを受信するのにも利用できる。特に、ネットワークインターフェース222経由で受信したプログラムおよび制御データを用いてROM221にロボット制御プログラムをインストールしたり更新したりするのにも利用できる。   Note that a network interface 222 is provided in the control device 201 of FIG. The network interface 222 can be used, for example, to transmit the teaching point data generated by the teaching operation of the teaching pendant 101 or the teaching point data generated in the avoidance mode to another robot apparatus, a management terminal, a server, or the like. . The network interface 222 can also be used to receive teaching point data and a robot control program from other robot devices, management terminals, and servers. In particular, it can be used to install or update a robot control program in the ROM 221 using a program and control data received via the network interface 222.

以下、図9〜図11を参照して、図3の制御装置201のCPU211によって制御される教示制御、特に回避スイッチ111を用いた回避動作の制御手順につき詳細に説明する。図9〜図11は、CPU211が上記の制御を実行するための制御プログラムの流れの一例を示している。図示の手順はCPU211の制御プログラムとして、例えばROM221に格納しておく。   Hereinafter, the teaching control controlled by the CPU 211 of the control device 201 of FIG. 3, particularly the control procedure of the avoidance operation using the avoidance switch 111 will be described in detail with reference to FIGS. 9 to 11. 9 to 11 show an example of the flow of a control program for the CPU 211 to execute the above control. The illustrated procedure is stored in the ROM 221 as a control program for the CPU 211, for example.

図9は本実施例に係る障害物の回避動作を、特にティーチングペンダント101で教示を行う作業者の操作を中心に記載したものである。図9の分岐や判定ステップには、この作業者によって行われるものが含まれる。   FIG. 9 shows the obstacle avoidance operation according to the present embodiment, especially the operation of the operator who teaches with the teaching pendant 101. The branches and determination steps in FIG. 9 include those performed by this operator.

図9のステップS101、S102は、ティーチングペンダント101を用いた作業者の教示操作を示している。ここでは、作業者がティーチングペンダント101のキー114を用いて、ロボットの基準点を移動させる操作を行なう。また、その間、必要に応じて、ティーチングペンダント101を用いて現在の基準点位置を教示点として登録することもできる。ロボットアーム301の基準点は、CPU211によって、ティーチングペンダント101のキー114のジョグ操作に応じてそのキーに割り当てられている方向にジョグ移動(ジョグ動作)するよう制御される。このジョグ操作ないしは教示操作は、ステップS102において、例えば図5のようにロボットの基準点が障害物501に近接するような状況となるまで続けられる。   Steps S <b> 101 and S <b> 102 in FIG. 9 indicate an operator's teaching operation using the teaching pendant 101. Here, the operator uses the key 114 of the teaching pendant 101 to perform an operation of moving the reference point of the robot. In the meantime, if necessary, the current reference point position can be registered as a teaching point using the teaching pendant 101. The reference point of the robot arm 301 is controlled by the CPU 211 so as to jog in the direction assigned to the key in accordance with the jog operation of the key 114 of the teaching pendant 101 (jogging operation). This jog operation or teaching operation is continued in step S102 until the robot's reference point approaches the obstacle 501 as shown in FIG.

ステップS102において、例えば図5に示すようにロボットの基準点が障害物501に近づいたのを作業者が認識すると、作業者は上記のジョグ操作を停止し、ステップS103で回避スイッチ111をONとする(モード制御行程)。   In step S102, for example, when the worker recognizes that the reference point of the robot has approached the obstacle 501 as shown in FIG. 5, the worker stops the jog operation, and in step S103, the avoidance switch 111 is turned on. (Mode control process)

この回避スイッチ111のON操作に応じて、CPU211はステップS103でワークエリア212などに配置したフラグをONとし、回避モードを有効化(ON)する。また、この時、CPU211は、JOGベクトル方向記憶部215に、少なくともその時点でのロボットの基準点(たとえばハンド401の把持中心)の位置(XYZ座標)と、その時点でのJOG動作ベクトル方向を記憶させる(記憶行程)。このステップS103の回避スイッチ111による回避モードのON時の処理は後述の図10により詳細に説明する。   In response to the ON operation of the avoidance switch 111, the CPU 211 turns on the flag arranged in the work area 212 or the like in step S103, and enables (ON) the avoidance mode. At this time, the CPU 211 stores at least the position (XYZ coordinates) of the reference point (for example, the grip center of the hand 401) of the robot at that time and the JOG motion vector direction at that time in the JOG vector direction storage unit 215. Remember (memory process). The process when the avoidance mode is turned on by the avoidance switch 111 in step S103 will be described in detail with reference to FIG.

続くステップS104〜S107のループは、回避モードが有効である間に実行する動作(回避制御行程)である。本実施例では、この回避モード中の障害物501の回避操作は、ティーチングペンダント101のジョグ操作によって、障害物501を回避する回避移動(S104)となるよう、自由に行うことを許容する。前述の図においては、この回避操作は図5の状態で回避スイッチ111をONとした後、図6の状態となるまでの区間に相当する。   The subsequent loop of steps S104 to S107 is an operation (avoidance control process) executed while the avoidance mode is valid. In this embodiment, the avoidance operation of the obstacle 501 in the avoidance mode is allowed to be freely performed so as to be an avoidance movement (S104) that avoids the obstacle 501 by the jog operation of the teaching pendant 101. In the above-described figure, this avoidance operation corresponds to a section from when the avoidance switch 111 is turned on in the state of FIG. 5 until the state of FIG. 6 is reached.

作業者は、ステップS107の障害物501の回避が完了したか否かを判定しながら、ステップS104〜S107のループによって上記の回避操作を続ける。その間、CPU211は、作業者が、例えば1回のジョグ操作を停止させる毎に、ステップS105でその時の基準点の位置を退避点(教示点)として登録するかどうかを選択できるようティーチングペンダント101の状態監視とロボット制御を行う。   The worker continues the above avoidance operation through the loop of steps S104 to S107 while determining whether or not the avoidance of the obstacle 501 of step S107 is completed. During that time, the CPU 211 allows the operator to select whether or not to register the position of the reference point at that time as a retract point (teaching point) in step S105 each time the operator stops, for example, one jog operation. Condition monitoring and robot control.

例えば、図5から図6の状態に向かう回避軌道の生成では、元の軌道601から障害物501の壁面に沿ってロボットの基準点を((ほぼ)垂直に)上昇させるジョグ操作を行っている(軌道602)。その後、図6の障害物501上部の水平軌道(軌道603)に切り換えるべき位置でキー114のジョグ操作を一度停止させている。その後の障害物501上部の水平軌道(603)では、別の移動方向が設定されたキー114を用いることになる。従って、このようなジョグ操作の切り換えタイミングで必要に応じてその時々のロボットの基準点の位置を教示点として登録する。ただし、微少調整などの際、同じキー114によって、同一方向へのジョグ移動と一時停止を繰り返すような状況においては、作業者の判断(S105)によって教示点の登録を省略してよい。   For example, in the generation of the avoidance trajectory from the state shown in FIG. 5 to FIG. 6, a jog operation is performed to raise the reference point of the robot along the wall surface of the obstacle 501 from the original trajectory 601 (substantially vertically). (Orbit 602). Thereafter, the jog operation of the key 114 is once stopped at a position to be switched to the horizontal orbit (orbit 603) above the obstacle 501 in FIG. In the horizontal trajectory (603) above the obstacle 501 thereafter, the key 114 having a different moving direction is used. Therefore, the position of the reference point of the robot at that time is registered as a teaching point as necessary at the switching timing of the jog operation. However, in the situation where the jog movement in the same direction and the temporary stop are repeated by the same key 114 at the time of fine adjustment, the registration of the teaching point may be omitted by the operator's judgment (S105).

作業者が教示点の登録を行うべきと判断(S105)すると、ステップS106において、ティーチングペンダント101の登録操作を行い、これに応じてCPU211はロボットの基準点の位置を教示点として登録する(回避点の教示)。この登録操作が行われる毎に、教示点の座標(あるいはさらにロボットアーム301の各部の関節の制御角度などを含む位置姿勢のデータであってもよい)は、例えばRAM200のワークエリア212に配置した教示点記憶部に格納していく。   If the operator determines that the teaching point should be registered (S105), the teaching pendant 101 is registered in step S106, and the CPU 211 registers the position of the reference point of the robot as the teaching point in response to this (avoidance). Point teaching). Each time this registration operation is performed, the coordinates of the teaching point (or data of position and orientation including joint control angles of each part of the robot arm 301) may be arranged in the work area 212 of the RAM 200, for example. It is stored in the teaching point storage unit.

この教示点記憶部に蓄積した教示点ないし回避点のデータは、例えば回避モード前、後の他の教示点のものも含め、教示データとして他のロボット装置や制御端末、サーバなどに送信することができる。その場合、この教示データの送受信には、例えばネットワークインターフェース222を用いることができる。また、この教示データは、不図示の外部記憶装置(HDD、SSDや光ディスク装置なども含む)に転送して記録することもできる。   The teaching point or avoidance point data stored in the teaching point storage unit is transmitted to other robot devices, control terminals, servers, etc. as teaching data, including those of other teaching points before and after the avoidance mode, for example. Can do. In this case, for example, the network interface 222 can be used for transmission / reception of the teaching data. Further, the teaching data can be transferred to an external storage device (not shown) (including HDD, SSD, optical disk device, etc.) and recorded.

なお、図5〜図8の回避操作の場合、上記の回避点の教示操作は、図6の障害物501上部の水平軌道に切り換える位置で1回だけ行っている。また、回避モードがONとなった時点のタイミングのロボットの基準位置は、JOGベクトル方向記憶部215に記憶されるため、必ずしも教示点登録する必要はない。しかしながら、データの整合性などを考慮して、回避モードがONとなった時にワークエリア212の教示点格納領域に教示点として自動的に登録するようにしてもよい。   In the case of the avoidance operation shown in FIGS. 5 to 8, the avoidance point teaching operation described above is performed only once at the position of switching to the horizontal trajectory above the obstacle 501 shown in FIG. In addition, since the reference position of the robot at the time when the avoidance mode is turned on is stored in the JOG vector direction storage unit 215, it is not always necessary to register the teaching point. However, in consideration of data consistency or the like, when the avoidance mode is turned on, it may be automatically registered as a teaching point in the teaching point storage area of the work area 212.

上記の回避操作および教示(退避)点の登録は、ステップS107において、作業者が障害物501の回避動作が完了したと判断するまで続けることができる。作業者が障害物501の回避動作が完了したと判断すると、ステップS107からS108に進む。   The avoidance operation and the registration of the teaching (retraction) point can be continued until it is determined in step S107 that the operator has completed the avoidance operation of the obstacle 501. When the worker determines that the avoiding operation of the obstacle 501 is completed, the process proceeds from step S107 to S108.

ステップS108では、作業者は回避スイッチ111を(例えば、再度ないしはトグル)操作して、回避モードを無効化(OFF)する。作業者がティーチングペンダント101の回避スイッチ111をOFFにすると、CPU211はワークエリア212のフラグを操作して回避モードをOFFに切り換える(モード制御行程)。そして、CPU211は、復帰制御部216の機能を実行する。即ち、JOGベクトル方向記憶部215に記憶させた回避モードがONとなった時の基準点の位置と、JOGベクトル方向を読み出し、ロボットを回避操作前の元の軌道に復帰させるための復帰制御情報を生成する。さらに、CPU211は、生成した復帰制御情報に基づき、ロボットアーム301の各部を制御し、ロボットの基準点を回避操作前の元の軌道601(の延長線上)の一点に復帰させる移動制御を行う。この回避操作前の元の軌道(の延長線上)の一点への復帰は、ティーチングペンダント101の手動(ジョグ)操作などを必要とせず、回避スイッチ111で回避モードをOFFにするだけで自動的に行える。   In step S108, the operator operates the avoidance switch 111 (for example, again or toggles) to invalidate (OFF) the avoidance mode. When the worker turns off the avoidance switch 111 of the teaching pendant 101, the CPU 211 operates the flag of the work area 212 to switch the avoidance mode to OFF (mode control process). Then, the CPU 211 executes the function of the return control unit 216. That is, the return control information for reading the position of the reference point and the JOG vector direction when the avoidance mode stored in the JOG vector direction storage unit 215 is ON and returning the robot to the original trajectory before the avoidance operation. Is generated. Furthermore, the CPU 211 controls each part of the robot arm 301 based on the generated return control information, and performs movement control for returning the reference point of the robot to one point on the original trajectory 601 (on the extension line) before the avoidance operation. The return to one point of the original trajectory (on the extension line) before the avoidance operation does not require manual (jogging) operation of the teaching pendant 101, and is automatically performed only by turning off the avoidance mode with the avoidance switch 111. Yes.

このステップS108の回避スイッチ111のOFF(回避モードのOFF)時の処理は後述の図11により詳細に説明する。   The processing when the avoidance switch 111 is OFF (the avoidance mode is OFF) in step S108 will be described in detail with reference to FIG.

続いて、ステップS109においては、既にロボットの基準点が上記の回避モードの無効化(OFF)に伴い回避操作前の元の軌道601の延長線上の一点に自動的に復帰している。このため、作業者は、従来のように回避操作前の軌道に復帰させるための面倒な手動操作を必要とせず、元の軌道601(の延長線)上でのジョグ操作を継続することができる。   Subsequently, in step S109, the reference point of the robot has already been automatically returned to one point on the extension line of the original trajectory 601 before the avoidance operation in accordance with the invalidation (OFF) of the avoidance mode. For this reason, the operator can continue the jog operation on the original track 601 (extension line thereof) without requiring a troublesome manual operation for returning to the track before the avoidance operation as in the prior art. .

図10は、図9のステップS103において、回避スイッチ111をONした時、即ち回避モードがONに切り換えられた時の制御手順を詳細に示している。図10のステップS201において、CPU211は回避スイッチ111がONされたか否かを判定しており、回避スイッチ111がON操作されると、例えばワークエリア212に配置されたフラグの操作によって回避モードをONとする。   FIG. 10 shows in detail the control procedure when the avoidance switch 111 is turned on in step S103 of FIG. 9, that is, when the avoidance mode is switched to ON. In step S201 in FIG. 10, the CPU 211 determines whether or not the avoidance switch 111 is turned on. When the avoidance switch 111 is turned on, for example, the avoidance mode is turned on by operating a flag arranged in the work area 212. And

そして、ステップS202において、ロボットの基準点の現在位置を特定し、ステップS203では、現在のジョグ軌道の方向を特定する。ステップS203では、例えば現在位置とそれ以前の位置(例えば現在の軌道が直線軌道の場合は前回の教示点)からJOGベクトル方向を算出する。   In step S202, the current position of the reference point of the robot is specified. In step S203, the current jog trajectory direction is specified. In step S203, for example, the JOG vector direction is calculated from the current position and the previous position (for example, the previous teaching point when the current trajectory is a straight trajectory).

そして、ステップS202、S203で求めた回避モードがONとなった時の基準点の位置と、JOGベクトル方向を、ステップS204においてJOGベクトル方向記憶部215に記憶させる。これら回避モードがONとなった時の基準点の位置と、JOGベクトル方向の情報は、回避モードが有効化される前のロボットの基準部位の軌道に対応する軌道制御情報に相当する。   Then, the position of the reference point and the JOG vector direction when the avoidance mode obtained in steps S202 and S203 is ON are stored in the JOG vector direction storage unit 215 in step S204. Information on the position of the reference point and the JOG vector direction when the avoidance mode is ON corresponds to trajectory control information corresponding to the trajectory of the reference portion of the robot before the avoidance mode is enabled.

図11は、図9のステップS108において、回避スイッチ111をOFFした時、即ち回避モードがOFFとなった時の制御手順を詳細に示している。図11の制御は、復帰制御部216の、ロボットを回避操作前の元の軌道(601)に復帰させるための復帰制御情報の生成と、その復帰制御情報に基づく復帰制御に相当する。   FIG. 11 shows in detail the control procedure when the avoidance switch 111 is turned off in step S108 of FIG. 9, that is, when the avoidance mode is turned off. The control in FIG. 11 corresponds to generation of return control information for returning the robot to the original trajectory (601) before the avoidance operation, and return control based on the return control information.

図11のステップS301では、回避スイッチ111が(たとえばトグル操作によって)OFF操作されたか否かを判定する。ここで回避スイッチ111がOFF操作されると、例えばワークエリア212に配置されたフラグの操作によって回避モードをOFFに切り換え、ステップS302に進む。   In step S301 in FIG. 11, it is determined whether the avoidance switch 111 has been turned OFF (for example, by a toggle operation). If the avoidance switch 111 is turned off here, for example, the avoidance mode is switched to OFF by operating a flag arranged in the work area 212, and the process proceeds to step S302.

次に、ステップS302では、ロボットの基準点の現在位置を取得する。続いて、ステップS303では、JOGベクトル方向記憶部215に記憶されている回避モードがONとなった時の基準点の位置と、JOGベクトル方向を読み出す。   Next, in step S302, the current position of the reference point of the robot is acquired. Subsequently, in step S303, the position of the reference point and the JOG vector direction when the avoidance mode stored in the JOG vector direction storage unit 215 is turned on are read.

ステップS304では、読み出した回避モードがONとなった時の基準点の位置と、JOGベクトル方向に基づき、ロボットの基準点を現在位置から、回避モードないし回避操作前の軌道(の延長)上の一点に向かう復帰制御情報を生成する。このステップS304の処理は復帰制御情報の生成行程に相当する。この復帰制御情報は、例えば、ロボット基準点を、現在(回避モードはOFF)の位置から、回避モードないし回避操作前の軌道(の延長)上の(好ましくは最短距離にある)一点に向かうような復帰軌道で動作させる制御情報である。この復帰軌道(例えば図7、図8の軌道604)データは、例えばベクトルデータの形式などを用いて表現できる。なお、この復帰軌道は、ロボット基準点を好ましくは最短距離で、回避モードないし回避操作前の軌道に復帰させるように生成する。このような復帰軌道の生成例については、後で詳細に説明する。   In step S304, based on the position of the reference point when the read avoidance mode is turned ON and the JOG vector direction, the robot reference point is moved from the current position to the avoidance mode or on the trajectory before the avoidance operation (extension). Return control information toward one point is generated. The process of step S304 corresponds to a return control information generation process. For example, the return control information is such that the robot reference point is directed from the current position (the avoidance mode is OFF) to a point (preferably at the shortest distance) on the trajectory (extension) before the avoidance mode or the avoidance operation. Control information to be operated in a proper return trajectory. The return trajectory (eg, the trajectory 604 in FIGS. 7 and 8) data can be expressed using, for example, the format of vector data. The return trajectory is generated so that the robot reference point is returned to the trajectory before the avoidance mode or the avoidance operation, preferably with the shortest distance. An example of generating such a return trajectory will be described in detail later.

ステップS305では、ステップS304で生成した復帰制御情報(回避軌道ベクトル)を用いて、ロボットアーム301の基準点を、現在位置からJOGベクトル方向記憶部215に記憶させた回避前JOG動作ベクトルの軌道の延長上へ移動させる。このステップS305の制御は、ロボットの点(基準部位)を回避モードが有効化される前の軌道上の1点に復帰させる復帰制御行程に相当する。この復帰制御情報の生成と、ロボット基準点の復帰動作は、上記のように回避スイッチ111による回避モードのOFF操作のみによって自動的に行われる。   In step S305, using the return control information (avoidance trajectory vector) generated in step S304, the reference point of the robot arm 301 is stored in the trajectory of the pre-avoidance JOG motion vector stored in the JOG vector direction storage unit 215 from the current position. Move up the extension. The control in step S305 corresponds to a return control process for returning the robot point (reference part) to one point on the trajectory before the avoidance mode is activated. The generation of the return control information and the return operation of the robot reference point are automatically performed only by the avoidance mode OFF operation by the avoidance switch 111 as described above.

ここで、回避モード(ないし回避操作)前の軌道に復帰させるための復帰軌道の生成の詳細につき考える。   Here, details of generation of a return trajectory for returning to the trajectory before the avoidance mode (or avoidance operation) will be considered.

例えば上記の復帰軌道の生成行程(S304)において、CPU211は、ロボットアーム301の基準部位を、その現在位置から最短距離で、回避モードが有効化される前の軌道に復帰させることができる復帰制御情報を生成する。また、この時、できるだけ障害物501に干渉する可能性が低い復帰軌道となるよう復帰制御情報を生成するのが望ましい。   For example, in the return trajectory generation process (S304), the CPU 211 can return the reference portion of the robot arm 301 to the trajectory before the avoidance mode is activated at the shortest distance from the current position. Generate information. At this time, it is desirable to generate the return control information so that the return trajectory has a low possibility of interfering with the obstacle 501 as much as possible.

上記のような好適な復帰軌道の例としては、例えば、ロボット基準点の現在位置を含み、かつ鉛直面(水平面ないしはロボット設置面に垂直な面)内を通り、回避前JOG動作ベクトルの軌道の延長線上の一点に向かう軌道、が考えられる。CPU211がこのようなロボット基準点の現在位置を含み、かつ鉛直面内を通って元の軌道上の一点に向かう復帰軌道を生成すれば、障害物501に再度干渉する可能性はかなり低くなり、同時に上記最短距離の条件も満たされる。   Examples of the preferred return trajectory as described above include, for example, the current position of the robot reference point and pass through the vertical plane (horizontal plane or plane perpendicular to the robot installation plane) and the trajectory of the JOG motion vector before avoidance. A trajectory toward one point on the extension line is conceivable. If the CPU 211 generates a return trajectory that includes the current position of such a robot reference point and passes through the vertical plane toward one point on the original trajectory, the possibility of interference with the obstacle 501 again becomes considerably low. At the same time, the condition for the shortest distance is also satisfied.

なお、上記のような復帰軌道が生成されることは、ティーチングペンダント101やロボット装置を含むロボットシステム全体の取扱説明書などに記載しておくべき事項と考えられる。例えば、そのような文書では、回避スイッチ111で回避モードをOFFとすると、上記のように現在位置から鉛直面内を通って元の軌道上の1点に自動的に復帰する動作が行われる、ということを記載することが考えられる。あるいはさらに、そのような鉛直面内を通る復帰軌道で復帰が行われても障害物と再度干渉しないような位置まで回避モードにおける回避操作を実行した後、回避モードをOFFにすべきである、などと、より明示的に記載することが考えられる。   The generation of the return trajectory as described above is considered to be a matter to be described in the instruction manual of the entire robot system including the teaching pendant 101 and the robot apparatus. For example, in such a document, when the avoidance mode is turned off by the avoidance switch 111, an operation of automatically returning to one point on the original trajectory from the current position through the vertical plane as described above is performed. It is possible to describe that. Alternatively, the avoidance mode should be turned off after performing the avoidance operation in the avoidance mode up to a position where it does not interfere with the obstacle again even if the return trajectory passes through the vertical plane. For example, it is possible to write more explicitly.

以上のように、本実施例では現場環境の変化などにより、障害物を回避するよう教示データを修正する必要が生じた場合などにおいて、回避スイッチ111を用いた簡単な操作によって、容易に元のロボット軌道(601)にほぼ自動的に復帰することができる。   As described above, in this embodiment, when the teaching data needs to be corrected so as to avoid an obstacle due to a change in the site environment, the original operation can be easily performed by a simple operation using the avoidance switch 111. It can return almost automatically to the robot trajectory (601).

本実施例では、ロボット操作装置としてのティーチングペンダント101の回避スイッチ111(回避モード操作部)の操作により回避モードをONまたはOFFに制御できる。回避モードのON操作時には、軌道制御情報として、その時のロボット基準点(基準部位)の位置と、軌道の方向(JOG回避前JOG動作ベクトルの方向)を軌道記憶部たるJOGベクトル方向記憶部215に記憶する。   In this embodiment, the avoidance mode can be controlled to ON or OFF by operating the avoidance switch 111 (avoidance mode operation unit) of the teaching pendant 101 as the robot operation device. When the avoidance mode is turned on, as the trajectory control information, the position of the robot reference point (reference part) and the trajectory direction (direction of the JOG motion vector before JOG avoidance) at that time are stored in the JOG vector direction storage unit 215 serving as the trajectory storage unit. Remember.

そして、回避モードが有効化されている(ONの)間は、ティーチングペンダント101からの手動操作入力に基づき、ロボットアームにロボットの基準点の軌道を変更する回避動作を行わせる。この回避操作は、障害物の形状や大きさなどに応じて自由に行うことができる。また、回避軌道の任意の位置におけるロボットの基準点の現在位置を教示点(回避点)として教示データ中に登録することができる。   While the avoidance mode is enabled (ON), the robot arm is caused to perform an avoidance operation for changing the trajectory of the reference point of the robot based on a manual operation input from the teaching pendant 101. This avoidance operation can be performed freely according to the shape and size of the obstacle. In addition, the current position of the reference point of the robot at any position on the avoidance trajectory can be registered in the teaching data as a teaching point (avoiding point).

一方、回避モードが無効化(OFF)されると、ロボットの基準点を、現在位置から、JOGベクトル方向記憶部215に記憶されている軌道制御情報に基づき、回避モードが有効化される前の元の軌道(601)に復帰させる復帰制御情報を生成する。この時、好ましくは、復帰制御情報は、基準点を、障害物と干渉する可能性が低く、また、最短距離で元の軌道上の1点に向かう復帰軌道を通って復帰させるように生成する。そして、回避モードのOFF操作時に、このように生成された復帰制御情報に基づきロボットアーム301の各部を動作させて、基準点を自動的に回避モード前の元の軌道上の1点に復帰させることができる。   On the other hand, when the avoidance mode is disabled (OFF), the reference point of the robot is changed from the current position based on the trajectory control information stored in the JOG vector direction storage unit 215 before the avoidance mode is enabled. Return control information for returning to the original trajectory (601) is generated. At this time, preferably, the return control information is generated so that the reference point is less likely to interfere with an obstacle and is returned through a return trajectory toward one point on the original trajectory at the shortest distance. . When the avoidance mode is turned off, each part of the robot arm 301 is operated based on the return control information generated in this way, and the reference point is automatically returned to one point on the original trajectory before the avoidance mode. be able to.

以上のように、本実施例ではロボット操作装置(ティーチングペンダント)の回避スイッチ111の操作により回避モードを利用できる。その場合、回避モードでは障害物の形状や大きさなどに応じて自由な回避操作を行うことができる。しかも回避モード終了(OFF)操作を行った時点で、面倒な手動ジョグ操作や確認作業の繰り返しを必要とせず、回避モードがONとなる前、即ち回避操作を開始する前の元の軌道(601)上の1点に自動的に復帰させることができる。   As described above, in this embodiment, the avoidance mode can be used by operating the avoidance switch 111 of the robot operation device (teaching pendant). In that case, in the avoidance mode, a free avoidance operation can be performed according to the shape and size of the obstacle. Moreover, when the avoidance mode end (OFF) operation is performed, it is not necessary to repeat the troublesome manual jog operation and confirmation work, and the original trajectory (601 before the avoidance operation is started) before the avoidance mode is turned on. ) It is possible to automatically return to the upper point.

そして、復帰制御情報は、例えば、ロボットの基準点を現在位置から鉛直面内を通って元の軌道上の1点に復帰させるような復帰軌道が選ばれるよう生成することができる。このような復帰制御情報を生成することにより、ロボットの基準点を、障害物と干渉する可能性が低く、また、最短距離で元の軌道上の1点に向かう復帰軌道を経由して、元の軌道(601)に復帰させることができる。   The return control information can be generated, for example, so that a return trajectory is selected that returns the reference point of the robot from the current position to one point on the original trajectory through the vertical plane. By generating such return control information, the robot reference point is unlikely to interfere with an obstacle, and the original point is returned via a return trajectory that is directed to one point on the original trajectory at the shortest distance. The trajectory (601) can be returned to.

以上のように、本実施例では回避スイッチ111によって、例えばロボットの教示データの変更や編集などに利用できる例外モードとして利用できる回避モードをON/OFF制御することができる。そして、回避モードがONの状態においては、自由な教示操作により教示データの変更や編集が可能であり、しかも回避モード終了時にはロボットを回避モードに入る前の元の軌道に自動的に復帰させることができる。このため、教示データに回避動作を追加するような場面において、従来では特に面倒な手動操作が必要とされた元の軌道への復帰を自動的に行うことができ、作業者の負担を大きく軽減し、作業時間を著しく短縮できる、という優れた効果がある。   As described above, in this embodiment, the avoidance switch 111 can perform ON / OFF control of the avoidance mode that can be used as an exceptional mode that can be used for changing or editing the teaching data of the robot, for example. When the avoidance mode is ON, teaching data can be changed and edited by free teaching operations, and when the avoidance mode ends, the robot is automatically returned to the original trajectory before entering the avoidance mode. Can do. For this reason, in situations where an avoidance operation is added to the teaching data, it is possible to automatically return to the original trajectory, which conventionally required cumbersome manual operations, greatly reducing the burden on the operator. In addition, there is an excellent effect that the working time can be remarkably shortened.

本発明は、上述の実施例の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステムまたは装置に供給し、そのシステムまたは装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現できる。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in the computer of the system or apparatus read and execute the program Can also be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

101…ティーチングペンダント、111…回避スイッチ、201…制御装置、213…ティーチングペンダントインターフェース、214…JOG動作制御部、215…JOGベクトル方向記憶部、216…復帰制御部、301…ロボット、401…ハンド、501…障害物。   DESCRIPTION OF SYMBOLS 101 ... Teaching pendant, 111 ... Avoidance switch, 201 ... Control device, 213 ... Teaching pendant interface, 214 ... JOG operation control part, 215 ... JOG vector direction memory | storage part, 216 ... Return control part, 301 ... Robot, 401 ... Hand, 501 ... An obstacle.

Claims (13)

ロボットアームの基準部位の軌道を制御するロボット制御を実行する制御装置と、前記ロボットアームの基準部位の軌道を制御する制御情報を入力するロボット操作装置と、を備えたロボット装置の制御方法において、
前記制御装置が、前記ロボット操作装置に配置された回避モード操作部の操作に応じて、前記ロボットアームの前記基準部位の軌道を変更する回避モードを有効化または無効化するモード制御行程と、
前記制御装置が、前記回避モードが有効化された時、前記回避モードが有効化される前の前記基準部位の軌道に対応する軌道制御情報を軌道記憶部に記憶させる記憶行程と、
前記制御装置が、前記回避モードが有効化されている間、前記ロボット操作装置からの入力に基づき、前記ロボットアームに前記基準部位の軌道を変更する回避動作を行わせる回避制御行程と、
前記制御装置が、前記回避モードが無効化された時、前記ロボットアームの前記基準部位を、前記基準部位の現在位置から前記軌道記憶部に記憶された軌道制御情報に対応する前記回避モードが有効化される前の軌道に復帰させる復帰制御情報を生成する生成行程と、
を備えたことを特徴とするロボット装置の制御方法。
In a control method of a robot apparatus, comprising: a control apparatus that executes robot control for controlling a trajectory of a reference part of a robot arm; and a robot operation apparatus that inputs control information for controlling a trajectory of the reference part of the robot arm.
A mode control process for enabling or disabling an avoidance mode in which the control device changes a trajectory of the reference part of the robot arm in accordance with an operation of an avoidance mode operation unit disposed in the robot operation device;
A storage step of storing, in the trajectory storage unit, trajectory control information corresponding to the trajectory of the reference portion before the avoidance mode is activated when the avoidance mode is activated;
An avoidance control step for causing the robot arm to perform an avoidance operation to change the trajectory of the reference portion based on an input from the robot operation device while the avoidance mode is enabled;
When the control device disables the avoidance mode, the avoidance mode corresponding to the trajectory control information stored in the trajectory storage unit from the current position of the reference portion is enabled for the reference portion of the robot arm. A generation process for generating return control information for returning to the orbit before being converted,
A method for controlling a robot apparatus, comprising:
請求項1に記載のロボット装置の制御方法において、前記制御装置が、前記生成行程で生成された前記復帰制御情報に基づき、前記ロボットアームの前記基準部位を現在位置から前記前記回避モードが有効化される前の前記基準部位の軌道に復帰させる復帰制御行程を含むことを特徴とするロボット装置の制御方法。   2. The method of controlling a robot apparatus according to claim 1, wherein the control apparatus activates the avoidance mode from the current position of the reference portion of the robot arm based on the return control information generated in the generation process. A control method for a robot apparatus, comprising: a return control process for returning to the trajectory of the reference part before being performed. 請求項1または2に記載のロボット装置の制御方法において、前記回避制御行程における回避動作の間、前記制御装置は、前記ロボット操作装置からの入力に基づき、前記ロボットアームの前記基準部位の位置姿勢に対応する教示点を教示点記憶部に記憶させることを特徴とするロボット装置の制御方法。   3. The control method of the robot device according to claim 1, wherein during the avoidance operation in the avoidance control process, the control device is configured to determine the position and orientation of the reference portion of the robot arm based on an input from the robot operation device. A method for controlling a robot apparatus, characterized in that a teaching point corresponding to is stored in a teaching point storage unit. 請求項1から3のいずれか1項に記載のロボット装置の制御方法において、前記生成行程において、前記制御装置は、前記ロボットアームの前記基準部位を、その現在位置から最短距離で、前記回避モードが有効化される前の軌道に復帰させるための前記復帰制御情報を生成することを特徴とするロボット装置の制御方法。   4. The robot apparatus control method according to claim 1, wherein in the generation process, the control apparatus moves the reference portion of the robot arm from the current position at a shortest distance to the avoidance mode. A control method for a robot apparatus, comprising: generating the return control information for returning to a trajectory before activation of the robot. 請求項1から4のいずれか1項に記載のロボット装置の制御方法において、前記生成行程において、前記制御装置は、前記ロボットアームの前記基準部位を、その現在位置から前記回避モードが有効化される前の軌道に復帰させるための前記復帰制御情報として、前記現在位置を含む鉛直面内を通り、前記回避モードが有効化される前の軌道上の1点に向かう復帰軌道を生成することを特徴とするロボット装置の制御方法。   5. The method of controlling a robot apparatus according to claim 1, wherein in the generation process, the control apparatus activates the avoidance mode from the current position of the reference portion of the robot arm. As the return control information for returning to the previous trajectory, generating a return trajectory that passes through the vertical plane including the current position and goes to one point on the trajectory before the avoidance mode is activated. A control method for a robot apparatus. 請求項1から5のいずれか1項に記載の各行程を前記制御装置に実行させることを特徴とするロボット装置の制御プログラム。   6. A control program for a robot apparatus, which causes the control device to execute each process according to claim 1. 請求項6に記載のロボット装置の制御プログラムを格納したことを特徴とするコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium storing the robot apparatus control program according to claim 6. ロボットアームの基準部位の軌道を制御するロボット制御を実行する制御装置と、
前記ロボットアームの基準部位の軌道を制御する制御情報を入力するロボット操作装置と、
前記ロボット操作装置に配置された回避モード操作部と、
前記回避モードが有効化される前の前記基準部位の軌道に対応する軌道制御情報を記憶する軌道記憶部と、
を備え、前記制御装置は、
前記回避モード操作部の操作に応じて前記ロボットアームの前記基準部位の軌道を変更する回避モードを有効化または無効化し、
前記回避モード操作部により前記回避モードが有効化された時は、前記軌道記憶部に前記回避モードが有効化される前の前記基準部位の軌道に対応する軌道制御情報を記憶させ、
前記回避モードが有効化されている間、前記ロボット操作装置からの入力に基づき、前記ロボットアームに前記基準部位の軌道を変更する回避動作を行わせ、
前記回避モードが無効化された時は、前記ロボットアームの前記基準部位を、前記基準部位の現在位置から前記軌道記憶部に記憶された前記軌道制御情報に対応する前記回避モードが有効化される前の軌道に復帰させる復帰制御情報を生成する、
ロボット制御を実行することを特徴とするロボット装置。
A control device for executing robot control for controlling the trajectory of the reference part of the robot arm;
A robot operating device for inputting control information for controlling the trajectory of the reference part of the robot arm;
An avoidance mode operation unit arranged in the robot operation device;
A trajectory storage unit that stores trajectory control information corresponding to the trajectory of the reference portion before the avoidance mode is activated;
The control device comprises:
Enabling or disabling the avoidance mode of changing the trajectory of the reference part of the robot arm according to the operation of the avoidance mode operation unit;
When the avoidance mode is activated by the avoidance mode operation unit, the trajectory storage unit stores trajectory control information corresponding to the trajectory of the reference portion before the avoidance mode is activated,
While the avoidance mode is activated, based on an input from the robot operation device, the robot arm performs an avoidance operation to change the trajectory of the reference part,
When the avoidance mode is invalidated, the avoidance mode corresponding to the trajectory control information stored in the trajectory storage unit from the current position of the reference portion is validated for the reference part of the robot arm. Generate return control information to return to the previous trajectory,
A robot apparatus that performs robot control.
請求項8に記載のロボット装置において、前記制御装置は、生成された前記復帰制御情報に基づき、前記ロボットアームの前記基準部位を現在位置から前記前記回避モードが有効化される前の前記基準部位の軌道に復帰させるロボット制御を実行することを特徴とするロボット装置。   9. The robot apparatus according to claim 8, wherein the control device moves the reference part of the robot arm from the current position before the avoidance mode is validated based on the generated return control information. A robot apparatus for executing robot control for returning to the trajectory. 請求項8または9に記載のロボット装置において、前記回避動作の間、前記制御装置は、前記ロボット操作装置からの入力に基づき、前記ロボットアームの前記基準部位の位置姿勢に対応する教示点を教示点記憶部に記憶させることを特徴とするロボット装置。   10. The robot device according to claim 8, wherein during the avoiding operation, the control device teaches a teaching point corresponding to a position and orientation of the reference portion of the robot arm based on an input from the robot operation device. A robot apparatus characterized by being stored in a point storage unit. 請求項8から10のいずれか1項に記載のロボット装置において、前記制御装置は、前記ロボットアームの前記基準部位を、その現在位置から最短距離で、前記回避モードが有効化される前の軌道に復帰させるための前記復帰制御情報を生成することを特徴とするロボット装置。   The robot apparatus according to any one of claims 8 to 10, wherein the control device moves the reference portion of the robot arm at a shortest distance from the current position before the avoidance mode is activated. The robot apparatus is characterized in that the return control information for returning to a position is generated. 請求項8から11のいずれか1項に記載のロボット装置において、前記制御装置は、前記ロボットアームの前記基準部位を、その現在位置から前記回避モードが有効化される前の軌道に復帰させるための前記復帰制御情報として、前記現在位置を含む鉛直面内を通り、前記回避モードが有効化される前の軌道上の1点に向かう復帰軌道を生成することを特徴とするロボット装置。   The robot apparatus according to any one of claims 8 to 11, wherein the control device returns the reference portion of the robot arm from a current position to a trajectory before the avoidance mode is validated. As the return control information, a robot trajectory is generated that passes through a vertical plane including the current position and goes to one point on the trajectory before the avoidance mode is validated. 請求項8から12のいずれか1項に記載の回避モード操作部を備えたことを特徴とするロボット操作装置。   A robot operation device comprising the avoidance mode operation unit according to any one of claims 8 to 12.
JP2015067102A 2015-03-27 2015-03-27 Robot device control method, robot device, and robot operating device Pending JP2016185586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015067102A JP2016185586A (en) 2015-03-27 2015-03-27 Robot device control method, robot device, and robot operating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015067102A JP2016185586A (en) 2015-03-27 2015-03-27 Robot device control method, robot device, and robot operating device

Publications (1)

Publication Number Publication Date
JP2016185586A true JP2016185586A (en) 2016-10-27

Family

ID=57202368

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015067102A Pending JP2016185586A (en) 2015-03-27 2015-03-27 Robot device control method, robot device, and robot operating device

Country Status (1)

Country Link
JP (1) JP2016185586A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108789403A (en) * 2017-04-26 2018-11-13 发那科株式会社 Operating device, robot system and operating method
CN112230647A (en) * 2019-06-28 2021-01-15 鲁班嫡系机器人(深圳)有限公司 Intelligent power system behavior model, training method and device for trajectory planning

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108789403A (en) * 2017-04-26 2018-11-13 发那科株式会社 Operating device, robot system and operating method
JP2018183845A (en) * 2017-04-26 2018-11-22 ファナック株式会社 Operation device, robot system, and operation method, for operating robot
US10654171B2 (en) 2017-04-26 2020-05-19 Fanuc Corporation Operation device for operating robot, robot system, and operation method
CN108789403B (en) * 2017-04-26 2020-10-16 发那科株式会社 Operation device, robot system, and operation method
CN112230647A (en) * 2019-06-28 2021-01-15 鲁班嫡系机器人(深圳)有限公司 Intelligent power system behavior model, training method and device for trajectory planning

Similar Documents

Publication Publication Date Title
JP6814735B2 (en) Remote control manipulator system and its operation method
US10737396B2 (en) Method and apparatus for robot path teaching
US11213945B2 (en) Robot simulator, robot system and simulation method
JP3950805B2 (en) Teaching position correction device
JP4087841B2 (en) Robot controller
JP5872894B2 (en) Robot motion teaching support apparatus and method
JP2001088071A (en) Control device of robot
JP6068423B2 (en) Robot programming device that teaches robots machining operations
JP2006099474A (en) Method for controlling robot locus
JP2011048621A (en) Robot off-line teaching method
JP2014065100A (en) Robot system and method for teaching robot
JP6904759B2 (en) Robot movement speed control device and method
JP2014217901A (en) Robot system
US10315305B2 (en) Robot control apparatus which displays operation program including state of additional axis
JP6850102B2 (en) Robot system and its operation method
JP2010094765A (en) Apparatus for returning robot to origin
JP2016185586A (en) Robot device control method, robot device, and robot operating device
JP2008221428A (en) Robot teaching system and method
JPS58225406A (en) Industrial robot
JP2021167065A (en) Machine teaching terminal, teaching system, program, and safety confirmation method used for teaching machine
US11964391B2 (en) Robot system
JPS5916286B2 (en) Operation control method for industrial robots
JPH1083208A (en) Arithmetic mechanism for inter-robot relative position
JPH08286722A (en) Off-line teaching method using cad data and its system
JP5946680B2 (en) Program conversion method for arc welding program and program conversion apparatus for arc welding program