JPH10149213A - Industrial robot - Google Patents

Industrial robot

Info

Publication number
JPH10149213A
JPH10149213A JP30682596A JP30682596A JPH10149213A JP H10149213 A JPH10149213 A JP H10149213A JP 30682596 A JP30682596 A JP 30682596A JP 30682596 A JP30682596 A JP 30682596A JP H10149213 A JPH10149213 A JP H10149213A
Authority
JP
Japan
Prior art keywords
teaching
teaching point
distance
movable part
coordinate
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.)
Withdrawn
Application number
JP30682596A
Other languages
Japanese (ja)
Inventor
Yoshiko Iriyama
佳子 入山
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.)
Tokico Ltd
Original Assignee
Tokico Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokico Ltd filed Critical Tokico Ltd
Priority to JP30682596A priority Critical patent/JPH10149213A/en
Publication of JPH10149213A publication Critical patent/JPH10149213A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Manipulator (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent interference with a work at the time of teaching, to improve the efficiency of the teaching operation, and to move between teaching points in a short time by moving a movable part along the respective coordinate axes of a three-dimensional orthogonal coordinate system as reference axes for position control over the movable part. SOLUTION: A CPU judges whether or not a move key instructing the movement of a painting gun is pressed (S24) and further judges which of move keys instructing movement along the X, Y, and Z axes the pressed move key is (S25). For example, when the X-axial movement is instructed, the CPU moves the painting gun in a direction of coordinate PgG(x) - current position xc, i.e., toward the coordinate PpG(x) until the current position xc of the painting gun along the X axis becomes equal to the coordinate PpG(x) of a target teaching point PpG specified as a movement destination (S26) so that the absolute value of PpG(x) - xc decreases.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、工業用ロボットに
係わり、特に記憶装置に記憶されたデータに基づいて可
動部を動作させる工業用ロボットに関わる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an industrial robot, and more particularly to an industrial robot that operates a movable part based on data stored in a storage device.

【0002】[0002]

【従来の技術】記憶装置に記憶されたデータに基づいて
可動部を動作させる工業用ロボットの一種としてティー
チング・プレイバック方式の工業用ロボットがある。こ
のティーチング・プレイバック方式の工業用ロボットで
は、教示データ(データ)の修正等のためにマニピュレ
ータ等の可動部を教示点間で移動させる場合、教示順に
教示点上を順次通過させて移動させたり、または移動元
の教示点から移動先の教示点までの最短距離すなわち該
2点間の直線距離を移動させていた。
2. Description of the Related Art There is a teaching / playback type industrial robot as a kind of an industrial robot that operates a movable part based on data stored in a storage device. In this teaching / playback type industrial robot, when a movable part such as a manipulator is moved between teaching points in order to correct teaching data (data) or the like, the teaching robot is moved by sequentially passing over the teaching points in the order of teaching. Alternatively, the shortest distance from the source teaching point to the destination teaching point, that is, the linear distance between the two teaching points is moved.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記従来技
術において、教示順にマニピュレータを順次移動させて
教示データの修正を行う場合、マニピュレータは教示デ
ータの修正に係わりのない教示点上をも通過することに
なるので、修正しようとする教示点まで移動するのに時
間を要する。また、マニピュレータを教示順が離れた教
示点に移動させるときには、その移動経路を選択するこ
とができないので、ワークと干渉して該ワークを壊した
り、またはマニピュレータが損傷する等の問題があっ
た。
In the prior art, when the teaching data is corrected by sequentially moving the manipulators in the teaching order, the manipulator may pass over a teaching point irrespective of the teaching data correction. Therefore, it takes time to move to the teaching point to be corrected. In addition, when the manipulator is moved to a teaching point in a distant teaching order, the movement path cannot be selected, so that there is a problem that the manipulator interferes with the work and breaks the work, or the manipulator is damaged.

【0004】さらに、マニピュレータを離れた教示点に
移動させようとした場合、教示点のみでマニピュレータ
の移動を制御すると、マニピュレータが真に修正したい
点とは異なる点に移動してしまうことがあり、教示デー
タの修正に時間を要する。また、例えば距離が近く教示
順が離れている2つの教示点の相対位置関係を修正する
場合には、マニピュレータを教示点間で直接移動させる
ことができないので、相対位置の修正が困難であった。
Further, in the case where the manipulator is to be moved to a distant teaching point, if the movement of the manipulator is controlled only by the teaching point, the manipulator may move to a point different from a point which is truly desired to be corrected. It takes time to correct the teaching data. Also, for example, when correcting the relative positional relationship between two teaching points that are close to each other and that are far apart in the teaching order, the manipulator cannot be directly moved between the teaching points, so that it is difficult to correct the relative position. .

【0005】本発明は、上述する問題点に鑑みてなされ
たもので、以下の点を目的としている。 (1)教示時にワークとの干渉を防止することが可能な
工業用ロボットを提供する。 (2)教示作業の作業能率を向上させることが可能な工
業用ロボットを提供する。 (3)教示点間を短時間で移動することが可能な工業用
ロボットを提供する。
The present invention has been made in view of the above-mentioned problems, and has the following objects. (1) To provide an industrial robot capable of preventing interference with a workpiece during teaching. (2) To provide an industrial robot capable of improving the work efficiency of teaching work. (3) To provide an industrial robot capable of moving between teaching points in a short time.

【0006】[0006]

【課題を解決するための手段】第1の手段として、記憶
装置に記憶されたデータに基づいて可動部を動作させる
工業用ロボットにおいて、可動部を制御するコントロー
ラは、可動部の先端部をある教示点に移動させる場合
に、該可動部の位置制御上の基準となる3次元直交座標
系の各座標軸に沿って可動部を移動させるという手段が
採用される。
As a first means, in an industrial robot for operating a movable part based on data stored in a storage device, a controller for controlling the movable part has a tip part of the movable part. When moving to the teaching point, means for moving the movable unit along each coordinate axis of the three-dimensional orthogonal coordinate system which is a reference for position control of the movable unit is adopted.

【0007】第2の手段として、上記第1の手段におい
て、コントローラは、可動部の先端部の移動先がおおよ
その距離と方向とによって指示されると、該距離と方向
とに基づいて示される位置に最も近接した教示点に可動
部の先端部を移動させるという手段が採用される。
As a second means, in the first means, when the destination of the distal end portion of the movable portion is designated by an approximate distance and direction, the controller indicates based on the distance and direction. Means of moving the tip of the movable part to the teaching point closest to the position is adopted.

【0008】第3の手段として、上記第1または第2の
手段において、コントローラは、可動部の移動途中にお
いて教示点を通過する場合に、該通過する教示点におい
て可動部を一時停止させるという手段が採用される。
[0008] As a third means, in the first or second means, when the controller passes the teaching point during the movement of the movable section, the controller temporarily stops the movable section at the passing teaching point. Is adopted.

【0009】[0009]

【発明の実施の形態】以下、本発明の工業用ロボットの
一実施形態について、図1〜図9を参照して説明する。
まず、図2を参照して、本実施形態の塗装用ロボットの
システム構成について説明する。本実施形態は、マニピ
ュレータ(可動部)の先端部に塗料を噴射する塗装ガン
を装着し、教示(ティーチング)によって記憶された教
示データ(データ)を再生(プレイバック)することに
より、塗装ガンを所定の経路で移動させてワークに塗装
を施すティーチング・プレイバック方式の塗装用ロボッ
トに係わるものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the industrial robot of the present invention will be described below with reference to FIGS.
First, the system configuration of the painting robot of the present embodiment will be described with reference to FIG. In this embodiment, a coating gun for spraying paint is mounted on the tip of a manipulator (movable part), and teaching data (data) stored by teaching (teaching) is reproduced (playback). The present invention relates to a teaching / playback type coating robot that moves on a predetermined route to coat a workpiece.

【0010】この図に示すように、本塗装用ロボット
は、マニピュレータ1とコントローラ2と入力装置(テ
ィーチング・ペンダント)3などから構成される。マニ
ピュレータ1とコントローラ2とは、ケーブル4により
接続されており、該ケーブル4を介して各種信号の授受
および電源の供給等が行われるようになっている。ま
た、コントローラ2と入力装置3とは、ケーブル5によ
り接続されており、入力装置3を操作することによって
入力された各種指示信号が該ケーブル5を介してコント
ローラ2に入力されるようになっている。
As shown in FIG. 1, the painting robot includes a manipulator 1, a controller 2, an input device (teaching pendant) 3, and the like. The manipulator 1 and the controller 2 are connected by a cable 4, through which various signals are exchanged and power is supplied via the cable 4. The controller 2 and the input device 3 are connected by a cable 5, and various instruction signals input by operating the input device 3 are input to the controller 2 via the cable 5. I have.

【0011】マニピュレータ1は、固定ベース6により
床面に固定されており、該固定ベース6上には駆動モー
タと減速機とが一体に構成された第1モータ減速機ユニ
ット7が取り付けられている。また、この第1モータ減
速機ユニット7上には旋回ベース8が取り付けられてお
り、該旋回ベース8は第1モータ減速機ユニット7(正
確には当該第1モータ減速機ユニット7を構成する上記
駆動モータ)の作動により矢印θ1方向つまり水平面内
で回動するようになっている。旋回ベース8には第2モ
ータ減速機ユニット9を介して第1アーム10が接続さ
れており、該第1アーム10は第2モータ減速機ユニッ
ト9の作動により矢印θ2方向つまり垂直面内で回動す
るようになっている。
The manipulator 1 is fixed to the floor surface by a fixed base 6, and a first motor speed reducer unit 7 in which a drive motor and a speed reducer are integrally formed is mounted on the fixed base 6. . Further, a turning base 8 is mounted on the first motor speed reducer unit 7, and the turning base 8 is connected to the first motor speed reducer unit 7 (more precisely, the first motor speed reducer unit 7). The drive motor is rotated in the direction of arrow θ1, that is, in the horizontal plane. A first arm 10 is connected to the turning base 8 via a second motor speed reducer unit 9, and the first arm 10 is turned in the direction of the arrow θ2, that is, in a vertical plane by the operation of the second motor speed reducer unit 9. It works.

【0012】上記第1アーム10の先端には第3モータ
減速機ユニット11を介して第2アーム12が接続され
ており、該第2アーム12は第3モータ減速機ユニット
11の作動によって矢印θ3方向つまり垂直面内で回動
するようになっている。この第2アーム12の後部には
手首用モータ減速機ユニット13が収納されており、該
手首用モータ減速機ユニット13の作動によって第2ア
ーム12の先端に設けられた手首ユニット14,15,
16は、図示するように矢印θ4方向,矢印θ5方向,
矢印θ6方向にそれぞれ回動するようになっている。
A second arm 12 is connected to a tip of the first arm 10 via a third motor speed reducer unit 11, and the second arm 12 is operated by the operation of the third motor speed reducer unit 11 to generate an arrow θ3. It rotates in a direction, that is, in a vertical plane. A wrist motor speed reducer unit 13 is accommodated in the rear portion of the second arm 12, and the wrist units 14, 15, and
16 is the arrow θ4 direction, the arrow θ5 direction,
It rotates in the direction of the arrow θ6.

【0013】手首ユニット16にはブラケット17を介
して塗装ガン18が取り付けられており、該塗装ガン1
8は、図示しない塗料供給手段から供給された塗料を先
端部から噴射するように構成される。
A coating gun 18 is attached to the wrist unit 16 via a bracket 17.
Numeral 8 is configured to inject paint supplied from a paint supply unit (not shown) from the front end.

【0014】次に、図3を参照して、上記コントローラ
2の構成について説明する。該コントローラ2は、モー
タドライバ2aとCPU(中央演算装置)2bとメモリ
2d、及びCPU2bとモータドライバ2aとを接続す
るシリアルインターフェース2c、並びに記憶装置2e
とから構成される。
Next, the configuration of the controller 2 will be described with reference to FIG. The controller 2 includes a motor driver 2a, a CPU (Central Processing Unit) 2b and a memory 2d, a serial interface 2c connecting the CPU 2b and the motor driver 2a, and a storage device 2e.
It is composed of

【0015】モータドライバ2aは、上記各モータ減速
機ユニットの駆動モータ毎に複数が設けられており、該
駆動モータに取り付けられた角速度検出手段(図示略)
の角速度フィードバックとシリアルインターフェース2
cを介してCPU2bから入力される角速度指令とに基
づいて速度制御関数を生成し、電流指令として駆動モー
タの作動を制御する。また、モータドライバ2aは、上
記角速度フィードバックから角度フィードバックを生成
し、シリアルインターフェース2cを介してCPU2b
に出力する。
A plurality of motor drivers 2a are provided for each drive motor of each of the above-mentioned motor speed reducer units, and angular velocity detecting means (not shown) attached to each drive motor.
Velocity feedback and serial interface 2
A speed control function is generated based on the angular velocity command input from the CPU 2b via the control signal c, and the operation of the drive motor is controlled as a current command. Further, the motor driver 2a generates angle feedback from the angular velocity feedback, and outputs the angle feedback to the CPU 2b via the serial interface 2c.
Output to

【0016】CPU2bは、メモリ2dに記憶された制
御プログラムに従って以下に説明する各種制御処理を実
行するものである。該CPU2bは、当該塗装ロボット
の動作モードが教示モードの場合には、オペレータによ
って入力装置3から入力された指示信号に基づいて上記
各駆動モータの作動を指示する角速度指令をモータドラ
イバ2aに出力すると共に、各駆動モータの駆動角度を
サンプリングして教示データとして記憶装置2eに記憶
させる。記憶装置2eは、例えばハードディスク装置や
フロッピーディスク装置である。
The CPU 2b executes various control processes described below according to a control program stored in the memory 2d. When the operation mode of the painting robot is the teaching mode, the CPU 2b outputs an angular velocity command for instructing the operation of each drive motor to the motor driver 2a based on an instruction signal input from the input device 3 by the operator. At the same time, the drive angle of each drive motor is sampled and stored in the storage device 2e as teaching data. The storage device 2e is, for example, a hard disk device or a floppy disk device.

【0017】また、CPU2bは、当該塗装ロボットの
動作モードが再生モードの時には、記憶装置2eから教
示データを読み出して各駆動モータの目標角度を規定す
る目標軌道を生成し、該目標角度と角度フィードバック
とに基づいて位置制御関数を生成し、角速度指令として
モータドライバ2aに出力する。
When the operation mode of the painting robot is the reproduction mode, the CPU 2b reads the teaching data from the storage device 2e to generate a target trajectory for defining a target angle of each drive motor, and outputs the target angle and the angle feedback. And a position control function is generated based on the above, and is output to the motor driver 2a as an angular velocity command.

【0018】なお、当該塗装ロボットの動作モードは、
入力装置3の操作によって切り換えられるようになって
いる。また、入力装置3には、マニピュレータ1を手動
操作するための各種操作キー及びマニピュレータ1の動
作状態を表示する表示部等が設けられている。
The operation mode of the painting robot is as follows.
Switching can be performed by operating the input device 3. The input device 3 is provided with various operation keys for manually operating the manipulator 1 and a display unit for displaying an operation state of the manipulator 1.

【0019】次に、図4を参照して、上記教示データに
ついて詳しく説明する。この図4は、塗装対象物(ワー
ク)Wに対して、上記マニピュレータ1の位置関係をマ
ニピュレータ1の位置制御上の基準となる3次元直交座
標系(X軸とY軸とZ軸とからなるロボットベース座標
系)上に示した図である。なお、マニピュレータ1は、
該マニピュレータ1の関節部(可動部)である上記第1
モータ減速機ユニット7,第2モータ減速機ユニット
9,第3モータ減速機ユニット11,及び手首ユニット
14,15,16によって略式表示されている。
Next, the teaching data will be described in detail with reference to FIG. FIG. 4 shows a three-dimensional orthogonal coordinate system (consisting of an X-axis, a Y-axis, and a Z-axis) as a reference for position control of the manipulator 1 with respect to a coating object (work) W. FIG. 3 is a diagram shown on a robot-based coordinate system). In addition, the manipulator 1
The first part which is a joint (movable part) of the manipulator 1
This is schematically indicated by the motor speed reducer unit 7, the second motor speed reducer unit 9, the third motor speed reducer unit 11, and the wrist units 14, 15, 16.

【0020】通常、教示データは、黒点で示す教示点P
i(i:0〜nの整数、例えば図4ではn=22)にお
いて、所定の姿勢で上記塗装ガン18の先端部を姿勢保
持するときの各関節部の角度として記憶装置2eに記憶
される。また、この角度には上記数値iによって示され
る再生順序が付されて記憶されるようになっている。例
えば、教示点P0については、塗装ガン18の先端部を
矢印b0の方向に向けて保持する時の各関節部の角度が
教示データとして記憶される。
Normally, the teaching data is a teaching point P indicated by a black point.
At i (i: an integer from 0 to n, for example, n = 22 in FIG. 4), the angle of each joint when the tip of the coating gun 18 is held in a predetermined posture is stored in the storage device 2e. . This angle is stored with the reproduction order indicated by the numerical value i. For example, for the teaching point P0, the angle of each joint when the tip of the coating gun 18 is held in the direction of arrow b0 is stored as teaching data.

【0021】なお、本実施形態では、上記ロボットベー
ス座標系の座標値と塗装ガン18の姿勢を示す各関節部
の角度からなるマトリクス形式で教示データを記憶して
いる。このように記憶された教示データを再生すると、
塗装ガン18の先端部は教示点P0から教示点P22まで
順次移動し、該各教示点P0〜P22において教示された
姿勢で塗装ガン18の方向が設定されてワークWに塗装
を施す。
In the present embodiment, the teaching data is stored in the form of a matrix including the coordinate values of the robot base coordinate system and the angles of the joints indicating the attitude of the coating gun 18. When the teaching data stored in this way is reproduced,
The tip of the coating gun 18 sequentially moves from the teaching point P0 to the teaching point P22, and the direction of the coating gun 18 is set in the posture taught at each of the teaching points P0 to P22 to apply the coating to the work W.

【0022】ここで、このように記憶された教示データ
の修正のため、マニピュレータ1を作動させて、例えば
図示するように教示点P21から教示点P3に塗装ガン1
8を移動させようとした場合、従来では破線で示すよう
に教示点P21と教示点P3とを結ぶ最短距離すなわち直
線状に塗装ガン18が移動するため、該塗装ガン18が
ワークWと干渉する場合があった。
Here, in order to correct the teaching data stored in this way, the manipulator 1 is operated to, for example, change the painting gun 1 from the teaching point P21 to the teaching point P3 as shown in the figure.
In the case where the paint gun 18 is to be moved, the painting gun 18 moves in the shortest distance connecting the teaching point P21 and the teaching point P3, that is, linearly as shown by a broken line in the related art, so that the painting gun 18 interferes with the work W. There was a case.

【0023】これに対して、本願発明では、コントロー
ラ2は、以下に説明するように矢印A,B,Cに沿って
塗装ガン18を移動させるように、マニピュレータ1を
制御する。以下、図1及び図5〜図9の各処理図を参照
して、このような塗装ガン18の移動時におけるCPU
2bの制御処理について説明する。
On the other hand, in the present invention, the controller 2 controls the manipulator 1 so as to move the coating gun 18 along arrows A, B, and C as described below. Hereinafter, with reference to FIG. 1 and each processing diagram of FIG. 5 to FIG.
The control process of 2b will be described.

【0024】まず、図5を参照して、移動先である教示
点の指定方向について説明する。移動先である教示点の
ポイント番号(再生順序を示す上記数値i)が判ってい
る場合、オペレータは該ポイント番号iを入力装置3か
ら入力して移動先の教示点を指定する。また、このポイ
ント番号iが明確ではない場合には、オペレータは、上
記ロボットベース座標系における塗装ガン18の現在位
置から移動先の教示点までの距離(dx,dy,dz)
を各座標軸の方向すなわち各座標軸について正(+)方
向か負(−)方向かと共に入力する(ステップS1)。
First, with reference to FIG. 5, the designation direction of the teaching point which is the movement destination will be described. If the point number (the numerical value i indicating the reproduction order) of the teaching point that is the movement destination is known, the operator inputs the point number i from the input device 3 and specifies the teaching point of the movement destination. If the point number i is not clear, the operator operates the distance (dx, dy, dz) from the current position of the coating gun 18 in the robot base coordinate system to the destination teaching point.
Is input along with the direction of each coordinate axis, that is, the positive (+) direction or the negative (-) direction for each coordinate axis (step S1).

【0025】このような入力に対して、CPU2bは、
ポイント番号iが入力されたか否かをまず判断し(ステ
ップS2)、該ポイント番号iが入力されたと判断した
場合は当該ポイント番号iで指定された移動先の教示点
のX軸,Y軸,Z軸の座標データを記憶装置2eから読
み出し、目標位置としてメモリ2dに記憶する(ステッ
プS3)。
In response to such an input, the CPU 2b
It is first determined whether or not the point number i has been input (step S2). If it is determined that the point number i has been input, the X-axis, the Y-axis, and the teaching point of the movement destination designated by the point number i are determined. The Z-axis coordinate data is read from the storage device 2e and stored in the memory 2d as a target position (step S3).

【0026】一方、目標とする移動先の教示点までの各
距離(dx,dy,dz)が入力された場合、CPU2
bは、以下のステップS4〜S12の処理を順次実行す
る。すなわち、塗装ガン18の現在位置(xc,yc,z
c)をメモリ2dに記憶させ(ステップS4)、各座標軸
の仮目標教示点位置(x’,y’,z’)を以下の式に
よって求める(ステップS5)。 x’=xc+dx (1) y’=yc+dy (2) z’=zc+dz (3)
On the other hand, when the distances (dx, dy, dz) to the target teaching point are input, the CPU 2
b sequentially executes the processing of the following steps S4 to S12. That is, the current position (xc, yc, z) of the coating gun 18
c) is stored in the memory 2d (step S4), and the tentative target teaching point position (x ', y', z ') of each coordinate axis is obtained by the following equation (step S5). x '= xc + dx (1) y' = yc + dy (2) z '= zc + dz (3)

【0027】この仮目標教示点位置(x’,y’,
z’)と上記移動しようとする教示点までの距離(d
x,dy,dz)の最小値をεとし、該最小値εに十分
い大きな値を仮に代入する(ステップS6)。そして、
先に教示された全ての教示点Pi(i=0〜n)につい
て(ステップS7)、ステップS8〜S11の処理を繰り返
してオペレータによって指定された教示点を探索する。
This temporary target teaching point position (x ', y',
z ′) and the distance (d
The minimum value of (x, dy, dz) is set to ε, and a sufficiently large value is temporarily substituted for the minimum value ε (step S6). And
For all the teaching points Pi taught previously (i = 0 to n) (step S7), the processing of steps S8 to S11 is repeated to search for the teaching point designated by the operator.

【0028】すなわち、まず仮目標教示点位置(x’,
y’,z’)と各々の教示点Piの位置{Pi(x),P
i(y),Pi(z)}との距離γを下式に基づいて算出
する(ステップS8)。 γ=〔{x’−Pi(x)}2+{y’−Pi(y)}2 +{z’−Pi(z)}21/2 (4)
That is, first, the provisional target teaching point position (x ',
y ', z') and the position of each teaching point Pi {Pi (x), P
The distance γ from i (y), Pi (z)} is calculated based on the following equation (step S8). γ = [{x′−Pi (x)} 2 + {y′−Pi (y)} 2 + {Z'-Pi (z)} 2 ] 1/2 (4)

【0029】そして、この距離γが先に定義した最小値
εよりも小さいか否かを判断し(ステップS9)、該距
離γが最小値εより小さいと判断した場合は、目標とす
る教示点番号iを移動したい教示点の番号pGに入力し
(ステップS10)、またこのときの距離γの値を最小値
εの値として更新する(ステップS11)。
Then, it is determined whether or not the distance γ is smaller than the previously defined minimum value ε (step S9). If the distance γ is determined to be smaller than the minimum value ε, the target teaching point is determined. The number i is input to the number pG of the teaching point to be moved (step S10), and the value of the distance γ at this time is updated as the value of the minimum value ε (step S11).

【0030】上記ステップS8〜S11の処理を全ての教
示点Pi(i=0〜n)について実行することにより、
オペレータが指定した距離(dx,dy,dz)に最も
近い教示点Piが目標教示点PpGとして探索される。そ
して、この目標教示点PpGの座標がメモり2dに記憶さ
れる(ステップS12)。
By executing the processing of steps S8 to S11 for all teaching points Pi (i = 0 to n),
The teaching point Pi closest to the distance (dx, dy, dz) specified by the operator is searched for as the target teaching point PpG. Then, the coordinates of the target teaching point PpG are stored in the memory 2d (step S12).

【0031】次に、図1を参照して、塗装ガン18の移
動処理について説明する。ここでは、CPU2bは塗装
ガン18の姿勢の変更を指示する姿勢変更キーが入力装
置3において押下されているか否かを判断し(ステップ
S21)、塗装ガン18が移動先の教示点における姿勢を
取るまで(ステップS22)、該塗装ガン18の先端位置
を変更することなく姿勢のみを変更する(ステップS2
3)。
Next, the moving process of the coating gun 18 will be described with reference to FIG. Here, the CPU 2b determines whether or not the attitude change key for instructing the attitude change of the paint gun 18 is pressed on the input device 3 (step S21), and the paint gun 18 takes the attitude at the teaching point of the movement destination. Until (Step S22), only the posture is changed without changing the tip position of the coating gun 18 (Step S2).
3).

【0032】また、塗装ガン18の移動を指示する移動
キーが押下されているか否かをCPU2bは判断し(ス
テップS24)、さらに押下された移動キーが上記X軸,
Y軸,Z軸のいずれの方向への移動を指示する移動キー
かを判断する(ステップS25)。
The CPU 2b determines whether or not a movement key for instructing the movement of the coating gun 18 has been pressed (step S24).
It is determined which of the Y-axis and the Z-axis is the movement key for instructing the movement in the direction (step S25).

【0033】ここで、X軸方向への移動を指示する移動
キーが押下されたと判断した場合、CPU2bは塗装ガ
ン18のX軸方向の現在位置xcが移動先として指定さ
れた目標教示点PpGのX軸の座標PpG(x)と等しくな
るまで(ステップS26)、座標PpG(x)−現在位置x
cの方向つまり座標PpG(x)に向かう方向に、式(Pp
G(x)−xc)の絶対値が小さくなるように塗装ガン1
8を移動させる(ステップS27)。
If it is determined that the movement key for instructing the movement in the X-axis direction has been pressed, the CPU 2b determines that the current position xc of the coating gun 18 in the X-axis direction is the target teaching point PpG designated as the movement destination. Until it becomes equal to the coordinate PpG (x) of the X axis (step S26), the coordinate PpG (x) -current position x
In the direction of c, that is, the direction toward the coordinates PpG (x), the expression (Pp
Paint gun 1 so that the absolute value of G (x) -xc) becomes small.
8 is moved (step S27).

【0034】また、上記ステップS25においてY軸方向
への移動を指示する移動キーが押下されたと判断した場
合には、塗装ガン18のY軸方向の現在位置ycが移動
先として指定された目標教示点PpGのY軸の座標PpG
(y)と等しくなるまで(ステップS28)、座標PpG
(y)−現在位置ycの方向つまり座標PpG(y)に向
かう方向に式(PpG(y)−yc)の絶対値が小さくな
るように塗装ガン18を移動させる(ステップS29)。
If it is determined in step S25 that the movement key for instructing movement in the Y-axis direction has been pressed, the current position yc of the coating gun 18 in the Y-axis direction is designated as the movement destination. The coordinate PpG on the Y axis of the point PpG
Until it becomes equal to (y) (step S28), the coordinates PpG
(Y) -The painting gun 18 is moved in the direction of the current position yc, that is, in the direction toward the coordinates PpG (y), so that the absolute value of the equation (PpG (y) -yc) becomes smaller (step S29).

【0035】さらに、ステップS25においてZ軸方向へ
の移動を指示する移動キーが押下されたと判断した場合
には、塗装ガン18のZ軸方向の現在位置zcが移動先
として指定された目標教示点PpGのZ軸の座標PpG
(z)と等しくなるまで(ステップS30)、座標PpG
(z)−現在位置zcの方向つまり座標PpG(z)に向
かう方向に式(PpG(z)−zc)の絶対値が小さくな
るように塗装ガン18を移動させる(ステップS31)。
Further, when it is determined in step S25 that the movement key for instructing movement in the Z-axis direction has been pressed, the current teaching position zc of the painting gun 18 in the Z-axis direction is designated as the movement destination. PpG Z-axis coordinates PpG
Until it becomes equal to (z) (step S30), the coordinates PpG
(Z) -The coating gun 18 is moved in the direction of the current position zc, that is, in the direction toward the coordinates PpG (z), so that the absolute value of the expression (PpG (z) -zc) becomes smaller (step S31).

【0036】例えば、図4に示したように、教示点P21
から教示点P3に塗装ガン18を移動させようとした場
合、Z軸方向への移動を指示する移動キーが押下される
ことにより塗装ガン18は教示点P21から教示点Pi以
外の点である点Paまで移動し、Y軸方向への移動を指
示する移動キーが押下されることにより塗装ガン18は
点Paから点Pbまで移動し、さらにX軸方向への移動を
指示する移動キーが押下されることにより塗装ガン18
は点Pbから教示点P3に移動する。
For example, as shown in FIG.
When the user tries to move the paint gun 18 from the teaching point P3 to the teaching point P3, the user presses a movement key for instructing movement in the Z-axis direction. The paint gun 18 moves from the point Pa to the point Pb by moving down to Pa and pressing a movement key for instructing movement in the Y-axis direction, and further, a movement key for instructing movement in the X-axis direction is pressed down. By painting gun 18
Moves from the point Pb to the teaching point P3.

【0037】なお、入力装置3を操作することにより修
正したい教示点の近傍に塗装ガン18を移動させた後に
おいても、上記図1及び図5に示した処理を実行するこ
とによって、教示点の番号がわからなくても任意の教示
点に塗装ガン18を移動させることができる。また、図
1に示した処理のみでも、任意の教示点へワークWとの
干渉を避けて塗装ガン18を移動させることができる。
Even after the painting gun 18 has been moved to the vicinity of the teaching point to be corrected by operating the input device 3, the processing shown in FIGS. The painting gun 18 can be moved to any teaching point without knowing the number. Also, the coating gun 18 can be moved to an arbitrary teaching point while avoiding interference with the work W only by the processing shown in FIG.

【0038】次に、図6を参照して、上記図1で示した
移動処理に基づく塗装ガン18の移動において、該塗装
ガン18が教示点上を通過する場合におけるCPU2b
の処理について説明する。
Next, referring to FIG. 6, in the movement of the painting gun 18 based on the movement processing shown in FIG. 1, the CPU 2b is used when the painting gun 18 passes over the teaching point.
Will be described.

【0039】この場合、教示点の修正の終了を指示する
修正終了キーが押下されて、入力装置3から修正終了信
号がCPU2bに入力されるまでの間(ステップS4
1)、以下に説明するステップS42〜S52の処理が実行
される。
In this case, until the correction end key for instructing the end of the correction of the teaching point is pressed and the correction end signal is input from the input device 3 to the CPU 2b (step S4).
1) The processing of steps S42 to S52 described below is executed.

【0040】まず、CPU2bは、塗装ガン18の移動
を指示する移動信号が入力装置3から入力されていない
か否かを判断し(ステップS42)、上記移動キーが押下
されず入力装置3から移動信号が入力されない場合に
は、ステップS43〜S45の処理に基づいて塗装ガン18
の現在位置(xc、yc、zc)に最も近い教示点Ptを検
索する。
First, the CPU 2b determines whether or not a movement signal instructing the movement of the coating gun 18 has been input from the input device 3 (step S42). If no signal is input, the paint gun 18 is determined based on the processing in steps S43 to S45.
The teaching point Pt closest to the current position (xc, yc, zc) is searched.

【0041】すなわち、上記塗装ガン18の現在位置
(xc、yc、zc)からX軸の正方向の距離を示す変数
dx+、X軸の負方向の距離を示す変数dx-、Y軸の正
方向の距離を示す変数dy+、Y軸の負方向の距離を示
す変数dy-、Z軸の正方向の距離を示す変数dz+、Z
軸の負方向の距離を示す変数dz-とし、正方向の距離
を示す変数dx+,dy+,dz+に十分大きい値を仮に
セットし、負方向の距離を示す変数dx-,dy-,dz
-には十分小さい値を仮にセットする(ステップS4
3)。そして、全教示点Pi(i=0〜n)について繰り
返し(ステップS44)、処理Aを実行する(ステップS
45)。
That is, a variable dx + indicating a distance in the positive direction of the X axis, a variable dx indicating a distance in the negative direction of the X axis, and a positive value of the Y axis from the current position (xc, yc, zc) of the coating gun 18. A variable dy + indicating the distance in the direction, a variable dy indicating the distance in the negative direction of the Y axis, a variable dz + , Z indicating the distance in the positive direction of the Z axis.
A variable dz indicating the distance in the negative direction of the axis is set as a variable dx + , dy + , dz + indicating the distance in the positive direction, and variables dx , dy , indicating the distance in the negative direction are temporarily set. dz
- If set to a sufficiently small value (the step S4
3). Then, the process A is repeated for all the teaching points Pi (i = 0 to n) (step S44), and the process A is executed (step S44).
45).

【0042】図7は、上記処理Aの内容を示す処理図で
ある。該処理Aにおいて、CPU2bは、まずロボット
ベース座標系のX軸方向に関して、塗装ガン18の現在
位置xcと教示点Piのx座標との変位をdum xとし
(ステップS451)、該変位dumxが0以上であるか否
かを判断する(ステップS452)。そして、この変位du
mxが0以上の場合には、該変位dum xがX軸の正方向
の変数dx+よりも小さいか否かを判断し(ステップS4
53)、該判断が「YES」の場合にのみ変数dx+に変
位dum xの値を代入し、X軸の正方向で塗装ガン18
の位置に最も近い教示点のx座標の値を変数nearest x
+に代入する(ステップS454)。
FIG. 7 is a processing diagram showing the contents of the processing A. In the process A, the CPU 2b first sets the displacement between the current position xc of the coating gun 18 and the x coordinate of the teaching point Pi in the X-axis direction of the robot base coordinate system as dum x (step S451). It is determined whether or not this is the case (step S452). And this displacement du
If mx is equal to or greater than 0, it is determined whether the displacement dumx is smaller than a variable dx + in the positive direction of the X-axis (step S4).
53) Only when the judgment is “YES”, the value of the displacement dum x is substituted for the variable dx + , and the paint gun 18 is moved in the positive direction of the X axis.
The value of the x coordinate of the teaching point closest to the position of
Substituted into + (step S454).

【0043】一方、CPU2bは、上記ステップS452
において変位dum xが0よりも小さいと判断した場合
には、変位dum xがX軸の負方向の変数dx-より小さ
いと判断すると(ステップS455)、変数dx-に変位d
um xを代入すると共にX軸の負方向で塗装ガン18の
位置に最も近い教示点のx座標の値を変数nearest x-
に代入する(ステップS456)。このようにして、X軸
方向において塗装ガン18の位置に最も近い教示点のx
座標の値が変数nearest x-あるいは変数nearestx+
して求められる。
On the other hand, the CPU 2b proceeds to step S452
Displacement dum when x is determined to be smaller than 0, the negative direction of the variables dx displacement dum x is X-axis in the - when it is determined that a smaller (step S455), the variable dx - displacement d
um variable the value of the x-coordinate of the closest teaching point to the position of the coating the negative direction of the X-axis gun 18 with substitutes x: nearest x -
(Step S456). In this manner, the x of the teaching point closest to the position of the coating gun 18 in the X-axis direction
The value of the coordinate is obtained as the variable nearest x - or the variable nearest x + .

【0044】さらに、CPU2bは、ロボットベース座
標系のY軸方向についても上述したと同様の処理を行
う。すなわち、塗装ガン18の現在位置ycと教示点Pi
のy座標との変位をdum yとし(ステップS457)、該
変位dum yが0以上であるか否かを判断する(ステッ
プS458)。そして、この変位dum yが0以上の場合に
は、該変位dum yがY軸の正方向の変数dy+よりも小
さいか否かを判断し(ステップS459)、該判断が「Y
ES」の場合にのみ変数dy+に変位dum yの値を代入
すると共に、Y軸の正方向で塗装ガン18の位置に最も
近い教示点のy座標の値を変数nearest y+に代入する
(ステップS4510)。
Further, the CPU 2b performs the same processing as described above in the Y-axis direction of the robot base coordinate system. That is, the current position yc of the coating gun 18 and the teaching point Pi
Is set as dummy (step S457), and it is determined whether the displacement dummy is 0 or more (step S458). If the displacement dumy is 0 or more, it is determined whether the displacement dumy is smaller than the variable dy + in the positive direction of the Y axis (step S459).
Only in the case of “ES”, the value of the displacement dumy is substituted for the variable dy +, and the value of the y coordinate of the teaching point closest to the position of the paint gun 18 in the positive Y-axis direction is substituted for the variable nearest y + ( Step S4510).

【0045】一方、CPU2bは、上記ステップS458
において変位dum yが0よりも小さいと判断した場合
には、変位dum yがY軸の負方向の変数dy-より小さ
いと判断すると(ステップS4511)、変数dy-に変位
dum yを代入し、Y軸の負方向で塗装ガン18の位置
に最も近い教示点のy座標の値を変数nearest y-に代
入する(ステップS4512)。このようにして、Y軸方向
において塗装ガン18の位置に最も近い教示点のy座標
の値が変数nearest y-あるいは変数nearest y+として
求められる。
On the other hand, the CPU 2b proceeds to step S458.
Displacement dum when y is determined to be smaller than 0, the displacement dum y is negative variable dy in the Y-axis in the - when it is determined that a smaller (step S4511), the variable dy - substituting the displacement dum y, Y axis value of y-coordinate of the nearest taught point to the position of the spray gun 18 in the negative direction variable: nearest y - is substituted into (step S4512). In this way, the values of y coordinates of the nearest taught point to the position of the spray gun 18 in the Y-axis direction is variable: nearest y - is obtained as + or variables: nearest y.

【0046】さらに、ロボットベース座標系のZ軸方向
に関しても上述のように塗装ガン18の位置に最も近い
教示点Ptのz座標が求められる。すなわち、CPU2
bは、塗装ガン18の現在位置zcと教示点Piのz座標
との変位をdum zとし(ステップS4513)、該変位du
m zが0以上であるか否かを判断する(ステップS451
4)。そして、この変位dum zが0以上の場合には、該
変位dum zがZ軸の正方向の変数dz+よりも小さいか
否かを判断し(ステップS4515)、該判断が「YES」
の場合にのみ変数dz+に変位dum zの値を代入すると
共に、Z軸の正方向で塗装ガン18の位置に最も近い教
示点のz座標の値を変数nearest z+に代入する(ステ
ップS4516)。
Further, in the Z-axis direction of the robot base coordinate system, the z coordinate of the teaching point Pt closest to the position of the painting gun 18 is obtained as described above. That is, CPU2
b, the displacement between the current position zc of the coating gun 18 and the z coordinate of the teaching point Pi is set to dum z (step S4513), and the displacement du is set.
It is determined whether or not m.sub.z is 0 or more (step S451).
Four). If the displacement dum z is equal to or larger than 0, it is determined whether the displacement dum z is smaller than the variable dz + in the positive direction of the Z axis (step S4515), and the determination is "YES".
Only in the case of, the value of the displacement dum z is substituted for the variable dz +, and the value of the z coordinate of the teaching point closest to the position of the paint gun 18 in the positive direction of the Z axis is substituted for the variable nearest z + (step S4516). ).

【0047】また、上記ステップS4514において変位d
um zが0よりも小さいと判断した場合、CPU2b
は、変位dum zがZ軸の負方向の変数dz-より小さい
と判断すると(ステップS4517)、変数dz-に変位du
m zを代入し、Z軸の負方向で塗装ガン18の位置に最
も近い教示点のz座標の値を変数nearest z-に代入す
る(ステップS4518)。このようにして、Z軸方向にお
いて塗装ガン18の位置に最も近い教示点Ptのz座標
の値が変数nearest z-あるいは変数nearest z+として
求められる。
In step S4514, the displacement d
If it is determined that um z is smaller than 0, the CPU 2b
The negative direction variable dz displacement dum z is the Z-axis - when it is determined that a smaller (step S4517), the variable dz - displacement du
substituting m z, position variable the value of the z-coordinate of the closest taught point nearest the spray gun 18 in the negative direction of the Z axis z - substituted (step S4518). In this manner, Z-axis value of the z-coordinate of the closest teaching point Pt to the position of the spray gun 18 in the direction variables: nearest z - it is obtained as or variables: nearest z +.

【0048】以上のようにして、処理AつまりX軸方
向,Y軸方向,Z軸方向について、塗装ガン18の現在
位置(xc、yc、zc)に最も近い教示点Ptの検索が終
了すると、上記ステップS42において移動信号が入力さ
れていると判断された場合に対する処理(ステップS46
〜ステップS52)が実行される。
As described above, when the search for the teaching point Pt closest to the current position (xc, yc, zc) of the coating gun 18 in the processing A, that is, in the X-axis direction, the Y-axis direction, and the Z-axis direction, is completed. Processing for the case where it is determined in step S42 that a movement signal has been input (step S46)
Step S52) is executed.

【0049】まず、処理Aによって求められた教示点P
tと塗装ガン18の現在位置(xc、yc、zc)との距離
と、塗装ガン18の移動方向において予め設定されたし
きい値βとの大小関係が判断される(ステップS46)。
ここで、教示点Ptと塗装ガン18の現在位置(xc、y
c、zc)との距離がしきい値βよりも大きいと判断され
ると、移動方向への移動速度vが基準速度vfにしきい
値βを乗じた値として算出され、塗装ガン18は該移動
速度vで移動される(ステップS47)。
First, the teaching point P obtained by the process A
A magnitude relationship between the distance between t and the current position (xc, yc, zc) of the coating gun 18 and a threshold value β preset in the moving direction of the coating gun 18 is determined (step S46).
Here, the teaching point Pt and the current position of the coating gun 18 (xc, y
c, zc) is determined to be greater than the threshold value β, the moving speed v in the moving direction is calculated as a value obtained by multiplying the reference speed vf by the threshold value β, and the painting gun 18 It is moved at the speed v (step S47).

【0050】ステップS46において教示点Ptと塗装ガ
ン18の現在位置(xc、yc、zc)との距離がしきい
値β以下であると判断された場合には、処理Aによって
求められた教示点Ptと現在位置(xc、yc、zc)の移
動軸方向における距離がdとされ、基準速度vfに距離
dを乗じた値が塗装ガン18の移動速度vとされる(ス
テップS48)。この場合、塗装ガン18は上記ステップ
S47の場合と比較して処理Aによって求められた教示点
Ptに接近しているので、塗装ガン18の移動速度は上
記ステップS47における移動速度よりも小さな速度とな
る。
If it is determined in step S46 that the distance between the teaching point Pt and the current position (xc, yc, zc) of the painting gun 18 is equal to or smaller than the threshold value β, the teaching point obtained by the processing A is determined. The distance between Pt and the current position (xc, yc, zc) in the moving axis direction is set to d, and the value obtained by multiplying the reference speed vf by the distance d is set to the moving speed v of the coating gun 18 (step S48). In this case, since the painting gun 18 is closer to the teaching point Pt obtained by the process A as compared with the case of step S47, the moving speed of the painting gun 18 is smaller than the moving speed in step S47. Become.

【0051】また、ステップS46において処理Aによっ
て求められた教示点Ptと塗装ガン18の現在位置(x
c、yc、zc)との距離が「0」となったと判断された
場合、つまり塗装ガン18が処理Aによって求められた
教示点Pt上に移動してきたときには、CPU2bはタ
イマーをセットして計時を開始させて、塗装ガン18の
移動を一定の間停止して待機させる(ステップS49)。
In step S46, the teaching point Pt obtained by the processing A and the current position (x
c, yc, zc), when it is determined that the distance to “0” has been reached, that is, when the paint gun 18 has moved over the teaching point Pt obtained by the processing A, the CPU 2b sets a timer to count time. Is started, and the movement of the coating gun 18 is stopped for a certain period of time to stand by (step S49).

【0052】そして、タイマーによる計時時間が所定時
間以上となったか否かを判断し(ステップS50)、該所
定時間を経過した場合にはタイマーをクリアし(ステッ
プS51)、上記処理Aを再度実行して塗装ガン18に最
も近い次の教示点Ptを検索する(ステップS52)。移
動信号が入力される間、CPU2bは、上記ステップS
46〜S52の処理を繰り返すことになるので、塗装ガン1
8は教示点Pi上に位置する度に一時停止することにな
る。
Then, it is determined whether or not the time measured by the timer is equal to or longer than a predetermined time (step S50). If the predetermined time has elapsed, the timer is cleared (step S51), and the process A is executed again. Then, the next teaching point Pt closest to the coating gun 18 is searched (step S52). While the movement signal is being input, the CPU 2b executes step S
Since the process from 46 to S52 will be repeated, paint gun 1
8 is temporarily stopped every time it is located on the teaching point Pi.

【0053】上記図6及び図7を用いて説明した制御処
理は、塗装ガン18の移動経路に近隣する教示データの
位置関係を修正する場合に有効である。なお、一時停止
させたい区間を予め指定することが考えられる。この場
合、一時停止の対象区間を(1)教示点番号の範囲、
(2)空間的な範囲(たとえばロボットベース座標系に
おける各軸座標値の範囲)によって指定する。
The control processing described with reference to FIGS. 6 and 7 is effective when correcting the positional relationship of the teaching data adjacent to the moving path of the coating gun 18. It is conceivable that a section to be temporarily stopped is designated in advance. In this case, the target section of the pause is defined as (1) the range of the teaching point number,
(2) Specify by a spatial range (for example, a range of each axis coordinate value in the robot base coordinate system).

【0054】最後に、図8及び図9を参照して、移動し
たい遠隔地点の教示点の位置を選択するための第2の制
御方法について説明する。
Finally, with reference to FIGS. 8 and 9, a second control method for selecting a position of a teaching point at a remote point to be moved will be described.

【0055】この制御方法では、入力装置3から移動し
たいポイント(教示点)が塗装ガン18の現在位置から
どの方向にどの程度離れているのかを曖昧に入力する。
例えば、方向は、前後、左右、上下とこれら方向要素を
組み合わせた16方向から選択されて概略の方向として
入力される(ステップS61)。この曖昧な指示に対し
て、CPU2bは、現在位置からの塗装ガン18の移動
方向を示す方向ベクトルを決定する(ステップS62)。
In this control method, the input device 3 ambiguously inputs in which direction and how far the point (teaching point) to be moved is from the current position of the coating gun 18.
For example, the direction is selected from 16 directions combining front-back, left-right, top-bottom, and these direction elements, and is input as a general direction (step S61). In response to this ambiguous instruction, the CPU 2b determines a direction vector indicating the moving direction of the coating gun 18 from the current position (Step S62).

【0056】そして、塗装ガン18の先端部の現在位置
を上述したと同様に(xc,yc,zc)とし(ステップ
S63)、現在位置(xc,yc,zc)から最も遠い教示
点までの距離をdlとし、該距離dlに「0」を代入す
る(ステップS64)。以下、全ての教示点Pi(i=0
〜n)について(ステップS65)、以下の式(5)に基
づいて塗装ガン18の先端部の現在位置(xc、yc、z
c)と各教示点Piの位置{Pi(x),Pi(y),Pi
(z)}との距離をdl’として算出する(ステップS
66)。 dl’=〔{Pi(x)−xc}2+{Pi(y)−yc}2 +{Pi(z)−zc}21/2 (5)
The current position of the tip of the coating gun 18 is set to (xc, yc, zc) in the same manner as described above (step S63), and the distance from the current position (xc, yc, zc) to the farthest teaching point is set. Is set to dl, and "0" is substituted for the distance dl (step S64). Hereinafter, all the teaching points Pi (i = 0)
(N) (step S65), the current position (xc, yc, z) of the tip of the coating gun 18 based on the following equation (5).
c) and the position of each teaching point Pi {Pi (x), Pi (y), Pi
(Z) The distance from} is calculated as dl ′ (step S)
66). dl '= [{Pi (x) -xc} 2 + {Pi (y) -yc} 2 + {Pi (z) -zc} 2 ] 1/2 (5)

【0057】該距離dl’を上記距離dlと比較して、
条件式(dl’<dl)を満足するか否かを判断し(ス
テップS67)、この条件式を満足する場合つまり距離d
l’が距離dlよりも小さい場合には、距離dlに値と
して距離dl’の値を代入する(ステップS68)。すな
わち、ステップS66〜S68の処理を全ての教示点Pi
(i=0〜n)について実行することによりに、現在位
置(xc,yc,zc)から最も遠い教示点までの距離d
lの値が求められる。
The distance dl ′ is compared with the distance dl, and
It is determined whether or not the conditional expression (dl '<dl) is satisfied (step S67).
If l 'is smaller than the distance dl, the value of the distance dl' is substituted for the value of the distance dl (step S68). That is, the processing of steps S66 to S68 is performed for all the teaching points Pi.
(I = 0 to n), the distance d from the current position (xc, yc, zc) to the farthest teaching point
The value of 1 is determined.

【0058】このようにして求められた距離dlに基づ
いて、例えば7つの距離分類が設定される(ステップS
69)。すなわち、距離dlの6/7〜1.0倍の距離を
最も遠い距離vfとし、距離dlの5/7〜6/7倍の
距離を遠い距離fとし、距離dlの4/7〜5/7倍の
距離を少し遠い距離lfとし、距離dlの3/7〜4/
7倍の距離を中くらいの距離mとし、距離dlの2/7
〜3/7倍の距離を少し近い距離lnとし、距離dlの
1/7〜2/7倍の距離を近い距離nとし、距離dlの
0〜1/7倍の距離をとても近い距離vnとする。そし
て、CPU2bは、全ての教示点Pi(i=0〜n)に
ついて(ステップS70)、処理Bを実行して教示点を選
択する(ステップS71)。
Based on the distance dl obtained in this way, for example, seven distance classifications are set (step S).
69). That is, a distance 6/7 to 1.0 times the distance dl is the farthest distance vf, a distance 5/7 to 6/7 times the distance dl is the far distance f, and 4/7 to 5/5 of the distance dl. The distance seven times is set as a slightly longer distance If, and is 3/7 to 4 / of the distance dl.
The 7 times distance is set to the medium distance m, and 2/7 of the distance dl
A distance 〜3 / 7 times as a slightly closer distance ln, a distance 1/7 to 2/7 times the distance dl as a close distance n, and a distance 0 to 1/7 times the distance dl as a very close distance vn. I do. Then, the CPU 2b executes the process B for all the teaching points Pi (i = 0 to n) (step S70) and selects a teaching point (step S71).

【0059】図9は、この処理Bの内容を示す処理図で
ある。処理Bでは、塗装ガン18の現在位置(xc、y
c、zc)から各教示点Piへの方向ベクトルdirectionが
((Pi(x)−xc,Pi(y)−yc,Pi(z)−z
c)として求められ、該方向ベクトルdirectionが上記ス
テップS61において入力された曖昧な方向に包含される
かか否かが判断される。そして、ある特定の教示点Ps
の方向ベクトルdirectionが包含されると判断された場
合には、塗装ガン18の現在位置(xc、yc、zc)と
該教示点Psとの距離distanceが方向ベクトルdirection
の長さとして算出される(ステップS713)。
FIG. 9 is a processing diagram showing the contents of the processing B. In the process B, the current position (xc, y
c, zc), the direction vector direction from each teaching point Pi is ((Pi (x) -xc, Pi (y) -yc, Pi (z) -z
c), and it is determined whether or not the direction vector direction is included in the ambiguous direction input in step S61. Then, a specific teaching point Ps
Is determined to be included, the distance distance between the current position (xc, yc, zc) of the painting gun 18 and the teaching point Ps is determined by the direction vector direction.
Is calculated (step S713).

【0060】そして、この距離distanceが上記ステップ
S61において入力された曖昧な距離に包含されているか
否かが上記ステップS69において分類された距離vf,
f,if,m,ln,n,vnとの比較によって判断さ
れる(ステップS714)。この結果、距離distanceが上
記曖昧な距離に包含される場合には、教示点Psの教示
点番号がメモリ2dに記憶される(ステップS715)。
Then, it is determined whether or not the distance "distance" is included in the ambiguous distance inputted in the above step S61.
It is determined by comparison with f, if, m, ln, n, and vn (step S714). As a result, if the distance distance is included in the ambiguous distance, the teaching point number of the teaching point Ps is stored in the memory 2d (step S715).

【0061】なお、上記実施形態では、塗装用ロボット
について説明したが、本願発明はこれに限定されるもの
ではなく、ティーチング・プレイバック方式を移用した
他の工業用ロボットにも応用することが可能である。
In the above embodiment, the painting robot has been described. However, the present invention is not limited to this, and may be applied to other industrial robots to which the teaching / playback method is transferred. It is possible.

【0062】[0062]

【発明の効果】以上、説明したように、本発明の工業用
ロボットによれば、以下のような効果を奏する。 (1)記憶装置に記憶されたデータに基づいて可動部を
動作させる工業用ロボットにおいて、可動部を制御する
コントローラは、可動部の先端部をある教示点に移動さ
せる場合に、該可動部の位置制御上の基準となる3次元
直交座標系の各座標軸に沿って可動部を移動させるよう
にしたので、従来のように教示点間を直線的に移動する
ことがない。したがって、マニピュレータが移動すると
きワークと干渉することを回避することが可能であり、
工業用ロボットの生産効率、安全性が向上する。 (2)また、コントローラは、可動部の先端部の移動先
がおおよその距離と方向とによって指示されると、該距
離と方向とに基づいて示される位置に最も近接した教示
点に可動部の先端部を移動させるので、可動部を遠隔教
示点にすばやく移動させることができ、教示作業の作業
効率を向上させることができる。 (3)さらに、コントローラは、可動部の移動途中にお
いて教示点を通過する場合に、該通過する教示点におい
て可動部を一時停止させるので、移動させたい教示点が
明確にわからなくても、短時間で可動部を移動させるこ
とが可能である。したがって、教示データの修正が容易
であり修正時間を短縮して工業用ロボットの生産効率を
向上させることができる。また、移動経路における近隣
の教示点の位置関係の補正が容易となると共に、特に塗
装用ロボットに適用した場合には塗装品質の向上を図る
ことができる。
As described above, according to the industrial robot of the present invention, the following effects can be obtained. (1) In an industrial robot that operates a movable part based on data stored in a storage device, a controller that controls the movable part operates to move the tip of the movable part to a certain teaching point. Since the movable portion is moved along each coordinate axis of the three-dimensional orthogonal coordinate system serving as a reference for position control, it does not move linearly between teaching points as in the related art. Therefore, it is possible to prevent the manipulator from interfering with the workpiece when moving,
The production efficiency and safety of industrial robots are improved. (2) Further, when the destination of the tip of the movable part is indicated by the approximate distance and direction, the controller moves the movable part to the teaching point closest to the position indicated based on the distance and direction. Since the distal end is moved, the movable part can be quickly moved to the remote teaching point, and the work efficiency of the teaching operation can be improved. (3) Further, when the controller passes the teaching point during the movement of the movable part, the controller temporarily stops the movable part at the passing teaching point. It is possible to move the movable part with time. Therefore, the teaching data can be easily corrected, the correction time can be shortened, and the production efficiency of the industrial robot can be improved. In addition, it becomes easy to correct the positional relationship between neighboring teaching points on the movement route, and it is possible to improve the coating quality especially when applied to a coating robot.

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

【図1】 本発明の工業用ロボットの一実施形態におい
て、マニピュレータの先端に設けられた塗装ガンを移動
させる場合の制御手順を示す処理図である。
FIG. 1 is a process diagram showing a control procedure when a coating gun provided at a tip of a manipulator is moved in an embodiment of the industrial robot of the present invention.

【図2】 本発明の工業用ロボットの一実施形態のシス
テム構成を示す図である。
FIG. 2 is a diagram showing a system configuration of an embodiment of the industrial robot of the present invention.

【図3】 本発明の工業用ロボットの一実施形態におい
て、コントローラの構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a controller in the embodiment of the industrial robot of the present invention.

【図4】 本発明の工業用ロボットの一実施形態におい
て、教示データについて説明する説明図である。
FIG. 4 is an explanatory diagram illustrating teaching data in one embodiment of the industrial robot of the present invention.

【図5】 本発明の工業用ロボットの一実施形態におい
て、塗装ガンの移動先の設定手順を示す処理図である。
FIG. 5 is a process chart showing a procedure for setting a destination of a coating gun in the industrial robot according to the embodiment of the present invention.

【図6】 本発明の工業用ロボットの一実施形態におい
て、塗装ガンの移動させる場合の制御手順を示す第2の
処理図である。
FIG. 6 is a second processing diagram showing a control procedure when the coating gun is moved in one embodiment of the industrial robot of the present invention.

【図7】 上記図6に示した処理のうち、処理Aの詳細
を示した処理図である。
FIG. 7 is a processing diagram showing details of processing A in the processing shown in FIG. 6;

【図8】 本発明の工業用ロボットの一実施形態におい
て、塗装ガンの移動先の設定手順を示す第2の処理図で
ある。
FIG. 8 is a second processing diagram showing a procedure for setting a destination of a coating gun in the industrial robot according to the embodiment of the present invention.

【図9】 上記図8に示した処理のうち、処理Bの詳細
を示した処理図である。
FIG. 9 is a processing diagram showing details of a processing B in the processing shown in FIG. 8;

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

1……マニピュレータ(可動部),2……コントロー
ラ,3……入力装置(ティーチングペンダント),4,
5……ケーブル,2a……モータドライバ,2b……C
PU(中央制御装置),2c……シリアルインターフェ
ース,2d……メモリ,2e……記憶装置
1 ... manipulator (movable part), 2 ... controller, 3 ... input device (teaching pendant), 4,
5 ... Cable, 2a ... Motor driver, 2b ... C
PU (central control unit), 2c... Serial interface, 2d... Memory, 2e.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記憶装置に記憶されたデータに基づいて
可動部を動作させる工業用ロボットにおいて、 可動部を制御するコントローラは、可動部の先端部をあ
る教示点に移動させる場合に、該可動部の位置制御上の
基準となる3次元直交座標系の各座標軸に沿って可動部
を移動させることを特徴とする工業用ロボット。
1. An industrial robot that operates a movable part based on data stored in a storage device, wherein a controller that controls the movable part moves the movable part when the tip of the movable part is moved to a certain teaching point. An industrial robot characterized in that a movable part is moved along each coordinate axis of a three-dimensional orthogonal coordinate system which is a reference for position control of the part.
【請求項2】 請求項1記載の工業用ロボットにおい
て、コントローラは、可動部の先端部の移動先がおおよ
その距離と方向とによって指示されると、該距離と方向
とに基づいて示される位置に最も近接した教示点に可動
部の先端部を移動させることを特徴とする工業用ロボッ
ト。
2. The industrial robot according to claim 1, wherein, when the destination of the tip of the movable portion is indicated by an approximate distance and direction, the controller indicates a position indicated based on the distance and direction. An industrial robot for moving a tip of a movable part to a teaching point closest to a robot.
【請求項3】 請求項1または2記載の工業用ロボット
において、コントローラは、可動部の移動途中において
教示点を通過する場合に、該通過する教示点において可
動部を一時停止させることを特徴とする工業用ロボッ
ト。
3. The industrial robot according to claim 1, wherein the controller temporarily stops the movable section at the passing teaching point when the controller passes the teaching point during the movement of the movable section. Industrial robot.
JP30682596A 1996-11-18 1996-11-18 Industrial robot Withdrawn JPH10149213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30682596A JPH10149213A (en) 1996-11-18 1996-11-18 Industrial robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30682596A JPH10149213A (en) 1996-11-18 1996-11-18 Industrial robot

Publications (1)

Publication Number Publication Date
JPH10149213A true JPH10149213A (en) 1998-06-02

Family

ID=17961720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30682596A Withdrawn JPH10149213A (en) 1996-11-18 1996-11-18 Industrial robot

Country Status (1)

Country Link
JP (1) JPH10149213A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010221363A (en) * 2009-03-24 2010-10-07 Niigata Prefecture Multi-shaft working method and multi-shaft working machine
CN114585482A (en) * 2019-11-27 2022-06-03 株式会社日立制作所 Control device, control method, and robot system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010221363A (en) * 2009-03-24 2010-10-07 Niigata Prefecture Multi-shaft working method and multi-shaft working machine
CN114585482A (en) * 2019-11-27 2022-06-03 株式会社日立制作所 Control device, control method, and robot system
CN114585482B (en) * 2019-11-27 2023-08-11 株式会社日立制作所 Control device, control method, and robot system

Similar Documents

Publication Publication Date Title
US20050246062A1 (en) Method for controlling a machine, particularly an industrial robot
US20110224815A1 (en) Industrial Robot And Path Planning Method For Controlling The Movement Of An Industrial Robot
KR20180069031A (en) Direct teaching method of robot
JP3207409B2 (en) Robot tool attitude control method
JPWO2002066210A1 (en) Robot controller
JP4396553B2 (en) Robot controller, computer program
JP2007000954A (en) Robot teaching device and method
US20210260750A1 (en) Method to Modify a Program for Robotic Welding
JP4842656B2 (en) Welding robot controller
US20200238512A1 (en) Teaching Data Generation System For Vertical Multi-Joint Robot
CN109648557B (en) Six-axis robot space motion planning method
JPH10149213A (en) Industrial robot
JP2001150150A (en) Method for positioning spot welding gun
JPH11342473A (en) Control of tig welding robot
JPH08155647A (en) Weaving controller of welding robot
JP7424097B2 (en) Robot control device and robot control method
JPH0830978B2 (en) Teaching / reproducing method for industrial robots
JPH09128024A (en) Method for optimizing operation program of robot having redundant axis
US20210031369A1 (en) Apparatus, robot control device, robot system, and method of setting robot coordinate system
JPH06114764A (en) Controller for robot
JP2514840Y2 (en) Working device with robot
JP3644551B2 (en) Robot control method
JP2007007779A (en) Robot control device
JPH0413109B2 (en)
JPH11188686A (en) Robot controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040203