JPH0355184A - Industrial robot - Google Patents

Industrial robot

Info

Publication number
JPH0355184A
JPH0355184A JP18833389A JP18833389A JPH0355184A JP H0355184 A JPH0355184 A JP H0355184A JP 18833389 A JP18833389 A JP 18833389A JP 18833389 A JP18833389 A JP 18833389A JP H0355184 A JPH0355184 A JP H0355184A
Authority
JP
Japan
Prior art keywords
tool
robot
coordinate system
tip
gun
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
JP18833389A
Other languages
Japanese (ja)
Inventor
Saburo Muto
武藤 三郎
Shinji Kumagai
信治 熊谷
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 JP18833389A priority Critical patent/JPH0355184A/en
Publication of JPH0355184A publication Critical patent/JPH0355184A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To facilitate location at an instruction point by furnishing No.1 calculating part which expresses the position and direction of a tool coordinate system, determined for each provisional instruction data, by a coordinate conversion matrix in the form converted into the position and direction in the robot coordinate system. CONSTITUTION:No.1 calculating part determines the coordinate conversion matrix which prescribes the relation with the tool coordinate system in which the direction of a tool 2 installed at the tip of the movable part of a robot 1 is made one axis, and the position and direction of the tool coordinate system determined for each provisional instruction data are expressed by the coordinate conversion matrix in the form converted into the position and direction in the robot coordinate system. Then the space to be taken at reproducing is entered in the coordinate conversion matrix, and the tool coordinate system after the tool tip has moved is expressed with coordinate matrix by a No.2 calculating part. Thereafter the coordinate conversion matrix is inversively converted, and the position and attitude of the tool coordinate system after motion of the tool tip in the robot coordinate system are determined as normal instruction data by No.3 calculating part.

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は産業用ロボットに係り、特に、塗装用ロボット
などのように、ロホットのツール先端とワークとの間の
距離が製品の完或度に重要な影響を及ぼす場合に適用し
て好適な教示データ作成法に関する。
Detailed Description of the Invention "Industrial Application Field" The present invention relates to industrial robots, and in particular, in robots for painting, etc., the distance between the tip of a rotary tool and a workpiece is determined by the degree of completion of the product. This invention relates to a teaching data creation method suitable for application in cases where it has a significant influence on the data.

「従来の技術」 塗装用ロボットにおいては、ガン先端とワークとの間の
距離を所定の値に保ちながら塗装を行わせることか、良
好な品質の塗装を行う上できわめて重要である。そのた
めに従来は、第l1図に示すように、塗装ガン2の先匍
111に教示用治具4を設け、ガン先端とワーク3との
間の距離eを一定に保つように教示している。この距離
Qは、ロボットに動作プログラムを教示する人間の経験
に基づいて、最適な値となるように調整する。
``Prior Art'' In a painting robot, it is extremely important to maintain the distance between the gun tip and the workpiece at a predetermined value in order to perform painting with good quality. To this end, conventionally, as shown in FIG. 11, a teaching jig 4 is provided at the tip end 111 of the coating gun 2, and the teaching jig 4 is taught to keep the distance e between the gun tip and the workpiece 3 constant. . This distance Q is adjusted to an optimal value based on the experience of humans who teach motion programs to robots.

また、ワーク3が平面形状の場合に限っては、ロボット
を中心とする直交座標系(ロボット座標)において、教
示データを平行シフトすることにより、ガン先端とワー
ク3との間の距離を所望の値にすることもで可能である
か、任意形状のワークについて、このような演算を行な
うものは存在しない。
In addition, only when the workpiece 3 has a planar shape, the distance between the gun tip and the workpiece 3 can be set to the desired distance by parallelly shifting the teaching data in the orthogonal coordinate system (robot coordinates) centered on the robot. It is possible to convert it into a value, or there is no method that performs such calculations on workpieces of arbitrary shapes.

「発明が解決しようとする課題」 このように、従来技術では、任意曲面のワークに沿って
一定の距離を保ちながらガン先端を移動させることは困
難であった。
``Problem to be Solved by the Invention'' As described above, in the conventional technology, it is difficult to move the gun tip while maintaining a constant distance along a workpiece having an arbitrary curved surface.

また、塗装条件の変更により、ガン先距離を変更するよ
うな場合、教示データを一つ一つ修正しなければならな
いといった問題点があった。例え3 ば、ガン先端からワーク3までの距離を400mmとし
て教示したデータによってロ小ツ1・を再生ずる際に、
塗装確認によって塗装品質が不可であると判断された場
合、ガン先端位置をワークに近づけたり、遠ざけたりす
ることによって解決できる場合がある。このような場合
、従来ては、1ポイントごとに教示データを修正してい
かなくてはならず、修正に多大な工数を要していた。
Furthermore, when changing the gun tip distance due to a change in painting conditions, there is a problem in that the teaching data must be corrected one by one. For example, when reproducing a small piece 1 using the data taught assuming that the distance from the gun tip to the workpiece 3 is 400 mm,
If the coating quality is determined to be unacceptable after coating confirmation, the problem may be resolved by moving the gun tip closer to or farther away from the workpiece. In such a case, conventionally, the teaching data had to be corrected point by point, which required a large amount of man-hours.

「課題を解決するための手段」 上記問題点を解決するために、この発明は、ロボット本
体と、該ロボット本体を制御するコントローラとを有す
る産業用ロボットにおいて、ツール先端をワークに密着
させた状態、あるいは一定量離した状態で教示した仮教
示データを記憶する記憶手段と、 ツール先端とワークとがロボット再生時にとるべき間隔
を入力する人力手段と、 ロボット可動部先端に設けられたツールの方向を1つの
軸とするツール座標系とロホ・ノト本体に関するロボッ
ト座標系との関係を規定する座標変4 換マトリックスを求め、前記各仮教示データごとに定ま
るツール座標系の位置と方向を、ロボノ1・座標系にお
ける位置と方向に変換した形で前記座標変換マI− ’
ljックスによって表現する第1演算部と、 前記再生時にとるべき間隔を前記座標変換マトリックス
に入れて、ツール先端移動後のツール座標系を前記座標
マトリックスによって表現する第2演算部と、 該座標変換マトリックスを逆変換してロボッ1・座標系
におけるツール先端移動後のツール座標系の位置と姿勢
とを正規の教示データとして求める第3演算部と を具備することを特徴とする。
"Means for Solving the Problems" In order to solve the above problems, the present invention provides an industrial robot having a robot body and a controller for controlling the robot body, in which a tool tip is brought into close contact with a workpiece. or a storage means for storing provisional teaching data taught in a state where the tool tip and the workpiece are separated by a certain amount, a manual means for inputting the distance that the tip of the tool and the workpiece should take when reproducing the robot, and a direction of the tool provided at the tip of the robot movable part. A coordinate transformation matrix that defines the relationship between the tool coordinate system with Rho-Noto as one axis and the robot coordinate system regarding the Roho Noto body is determined, and the position and direction of the tool coordinate system determined for each provisional teaching data are determined by the robot robot. 1. The coordinate transformation map I-' is converted into the position and direction in the coordinate system.
a first calculation section that expresses the coordinate transformation by the coordinate transformation matrix; The present invention is characterized by comprising a third calculation unit that inversely transforms the matrix and obtains the position and orientation of the tool coordinate system after the tool tip has moved in the robot 1 coordinate system as regular teaching data.

「作用」 上記手段によれば、教示時に、ツール(ガン)先端を任
意曲面に垂直に押しあてて、教示点を教えることによっ
て、任意曲面の形状をとらえ、仮教示データとして記憶
する。ツールの軸は、ツール座標系の一つの軸をなして
いるので、ツールを軸方向(ツール方向)にずらすこと
で、任意曲面に垂直な方向に一定距離シフトすることが
できる。
"Operation" According to the above means, at the time of teaching, the tip of the tool (gun) is pressed perpendicularly to the arbitrary curved surface to teach the teaching point, thereby capturing the shape of the arbitrary curved surface and storing it as temporary teaching data. Since the axis of the tool constitutes one axis of the tool coordinate system, by shifting the tool in the axial direction (tool direction), it is possible to shift a certain distance in the direction perpendicular to the arbitrary curved surface.

言い換えれば、ツール座標系を平行移動することによっ
て、ワークとツール先端との距離を一定に保った教示デ
ータが作成される。
In other words, by moving the tool coordinate system in parallel, teaching data is created in which the distance between the workpiece and the tool tip is kept constant.

また、ワークとツールとを離した状態で教示したときの
距離を記憶しておけば、個々の教示データについて修正
しなくとも、」二記距離を一括して変更することができ
る。
Furthermore, by storing the distance when teaching is performed with the workpiece and tool separated, the distances can be changed all at once without modifying each individual teaching data.

「実施例」 以下、図面を参照してこの発明の実施例を説明する。"Example" Embodiments of the present invention will be described below with reference to the drawings.

実施例1 まず、第1図を参照して、ロボットのツール座標系につ
いて説明する。ツール座標系は、ガンなどのツールの軸
を一つの軸とする座標系であり、任意局面に対してツー
ルを垂直に移動させる場合の計算を簡単化するための座
標系である。
Embodiment 1 First, the tool coordinate system of the robot will be explained with reference to FIG. The tool coordinate system is a coordinate system in which the axis of a tool such as a gun is one axis, and is a coordinate system for simplifying calculations when moving the tool perpendicularly to an arbitrary situation.

第1図のロボット機構において、アーム先端点をA1手
首先端をB1ツール(ガン)先端をTと?る。また、そ
れぞれに直角座標系を設け、これらをΣ4,Σ8,Σ7
とする。ここで、Σ7は、ツール座標系てあり、次のよ
うに定義される。すなわち、ツール(この場合は、塗装
用ガン)2の先端を原点OTとし、ツール2の軸をXT
軸、ツール2の静止位置垂直上方向をZT軸、これらと
直交する方向をYT軸とする。このように定義すること
によって、ツール2の位置・姿勢は、ロボッ1・座標系
Σ■から見たツール座標系Σ7の原点OTの位置、およ
びXT, YT+  ZT軸方向の単位ヘクトルの方向
で表わされる。つまり、ツール座標系からロホット座標
系への座標変換71・リックスR71Tか分かれば、ツ
ール2の位置姿勢か求まる。ここで、座標変換マトリッ
クスRToの右下の添字(T)は変換前の座標系(ツー
ル座標系)を示し、左肩部(R)は変換後の座標系(ロ
ボット座標系)を示すものとする。この座標変換マトリ
ックスは、4×4のマトリックスである。この種の4×
4の座標変換マトリックスTは、3X3の回転マトリノ
クスRと、位置ベクトルPとから次のように表わ7 される。
In the robot mechanism shown in Figure 1, the tip of the arm is A1, the tip of the wrist is B1, the tip of the tool (gun) is T? Ru. In addition, a rectangular coordinate system is provided for each, and these are Σ4, Σ8, Σ7
shall be. Here, Σ7 is in the tool coordinate system and is defined as follows. In other words, the tip of the tool (in this case, the painting gun) 2 is the origin OT, and the axis of the tool 2 is XT.
The vertically upward direction of the rest position of the tool 2 is the ZT axis, and the direction perpendicular to these is the YT axis. With this definition, the position and orientation of the tool 2 can be expressed by the position of the origin OT of the tool coordinate system Σ7 as seen from the robot 1 and the coordinate system Σ It will be done. In other words, if the coordinate transformation 71/Rix R71T from the tool coordinate system to the Rohot coordinate system is known, the position and orientation of the tool 2 can be determined. Here, the subscript (T) at the bottom right of the coordinate transformation matrix RTo indicates the coordinate system before transformation (tool coordinate system), and the left shoulder (R) indicates the coordinate system after transformation (robot coordinate system). . This coordinate transformation matrix is a 4×4 matrix. This kind of 4×
The coordinate transformation matrix T of 4 is expressed from the 3×3 rotation matrix R and the position vector P as follows.

ロボット座標系から見たXT, YT,  ZT軸方向
の単位ベクトルをu,o, Wとすれば、回転マトリッ
クスRは、R−Cu  v  to)となる。
If the unit vectors in the XT, YT, and ZT axis directions as seen from the robot coordinate system are u, o, and W, then the rotation matrix R becomes R-Cu v to).

回転マトリックスRは、3×3のマトリックスで9項か
らなるが、単位ベク1・ルであるu,0,Wが直交して
いるという条件から、独立な変数は3つとなる。
The rotation matrix R is a 3×3 matrix consisting of nine terms, but there are three independent variables because the unit vectors u, 0, and W are orthogonal.

同様に、各直角座標系Σヶ,Σ8,Σ0からロボット座
標系Σ8への座標変換マトリックスを次のように定義す
る。
Similarly, the coordinate transformation matrix from each rectangular coordinate system Σ, Σ8, Σ0 to the robot coordinate system Σ8 is defined as follows.

8 ここで、第l図に示すように、ロボッ1・1の各リンク
の長さをr1〜r4、ロボット関節角を01〜θ8、そ
のベクトル表示をθ一(θ,〜θe)Tとし、さらに、
単位ベクトルnの軸回りの回転角度θ。
8 Here, as shown in Figure 1, the length of each link of the robots 1 and 1 is r1 to r4, the robot joint angle is 01 to θ8, and the vector representation is θ-(θ, ~θe)T, moreover,
Rotation angle θ around the axis of unit vector n.

の回転をRot[:n,  θ。〕と表現すると、次の
関係式が成立する。
The rotation of Rot[:n, θ. ], the following relational expression holds true.

R A−R o t ( Z +θ,) ・Rot(Y
,−(θ2− (3 3))”” CuAIJ A t
lJn:1 S.一sinθ1 C.=cosθl St−3=sin(θ,一θ3) C,.=cos(θ2−03) R a = R o t ( Z  θ,) ・Rot
(Y,一〔un (jn We) PB= PA+ r 3+ ’ ua rffi2 ° II)B (i−1 (θ, ( 6) θ3+θ4)) 7?.=RB+ROt(Z,  θs) 6 Rot(
X,  θ6)= ((7.T UT II)J PT= P B十r 4 ’ u T このように、ロボット関節角θから座標変換マトリック
スRT1を求める変換RT7−f(θ)を正変換、その
逆のθ一f−1(RTT)を逆変換と呼ぶ。
R A−Rot (Z +θ,) ・Rot(Y
,-(θ2- (3 3))”” CuAIJ A t
lJn:1S. - sin θ1 C. =cosθl St-3=sin(θ, -θ3) C,. = cos (θ2-03) Ra = Rot (Z θ,) ・Rot
(Y, one [un (jn We) PB= PA+ r 3+ ' ua rffi2 ° II) B (i-1 (θ, (6) θ3+θ4)) 7? .. =RB+ROt(Z, θs) 6 Rot(
X, θ6)= ((7.T UT II) J PT= P B0r 4' u T In this way, the transformation RT7-f(θ) for obtaining the coordinate transformation matrix RT1 from the robot joint angle θ is transformed into a positive transformation, The opposite, θ-f-1 (RTT), is called inverse transformation.

一般に、正変換は一意的に求まるが、逆変換は多価関数
となり、多数個の解の中から一つの解を選択する必要が
ある。このために、座標変換マトリックスlIT7に近
い座標変換マトリックスを与えるロボット関節角が既知
であるとすると、第1図に示すような自由度構成のロボ
ットでは、解析的に逆変換が求まることが知られている
。ここでは式の導出は省略し、 θ=f引(IIT丁) と一般的に表記する。
Generally, a forward transformation can be found uniquely, but an inverse transformation is a multivalued function, and it is necessary to select one solution from among many solutions. For this reason, assuming that the robot joint angles that give a coordinate transformation matrix close to the coordinate transformation matrix lIT7 are known, it is known that for a robot with a degree of freedom configuration as shown in Fig. 1, the inverse transformation can be found analytically. ing. Here, the derivation of the formula is omitted, and it is generally written as θ=f(IIT-d).

第2図は、塗装ロボットIによるワーク(被塗装物)3
への塗装作業をモデル化したものである。
Figure 2 shows workpiece (object to be painted) 3 by painting robot I.
This is a model of the painting process.

塗装ロボット1は、第1図のロボット1をモデル?した
もので、アーム中心軸と関節部だけを表わすスケルトン
モデルである。塗装口ポソ1・1の手首先端には塗装ガ
ン2が搭載されている。
Is painting robot 1 modeled after robot 1 in Figure 1? This is a skeleton model that only shows the arm's central axis and joints. Painting gun 2 is mounted on the tip of the wrist of painting port Poso 1.1.

この塗装ガン2の狙い方向の延長線」二に、ワーク4上
の狙い点P1がある。塗装ガン2先6H74点と、ワー
ク4上の狙い点P,との間の距離をQ1とする。
The target point P1 on the workpiece 4 is located on the extension line of the aiming direction of the coating gun 2. Let Q1 be the distance between the point 6H74 at the tip of the painting gun 2 and the target point P on the workpiece 4.

この距離Qlは、塗装条件により決まり、同一の塗装作
業中では、ほぼ一定に保つことが望ましい。
This distance Ql is determined by the painting conditions, and is preferably kept approximately constant during the same painting operation.

第3図は、この実施例による教示方法を示すものである
。この教示方法では、狙い点P.と塗装ガン2の先端間
との距l!llc0.1をOとし、ガン2の先端をワー
ク3の狙い点P■に直接接触させ、そのときのガン2の
姿勢を記憶装置に記憶する。このように、本実施例では
、塗装条件によらず、ガン2の先端を常にワーク3の狙
い点Plに接触させて、塗装プログラムの仮教示点を教
示する。
FIG. 3 shows the teaching method according to this embodiment. In this teaching method, the target point P. and the distance l between the tip of paint gun 2! Ilc0.1 is set to O, the tip of the gun 2 is brought into direct contact with the target point P■ of the workpiece 3, and the attitude of the gun 2 at that time is stored in the storage device. In this way, in this embodiment, the tip of the gun 2 is always brought into contact with the target point Pl of the workpiece 3, regardless of the coating conditions, and the temporary teaching point of the coating program is taught.

その後、ガン2の先端とワーク3との間の距離Qをロホ
ノ1・コントローラに人力し、記憶されている仮教示点
(ガン2の先端とワーク3との間の距離Oの塗装プログ
ラ1, )を自動変換し、ガン211 の先端とワーク3との距離が入力された距離Qとなるよ
うにする。
After that, the distance Q between the tip of the gun 2 and the workpiece 3 is manually entered into the Rohono 1 controller, and the stored provisional teaching point (painting program 1 of the distance O between the tip of the gun 2 and the workpiece 3, ) is automatically converted so that the distance between the tip of the gun 211 and the workpiece 3 becomes the input distance Q.

言い換えれば、距離g−oとして、ロホットの関節角e
(i)一(θ,(i),θ2(+),・・・,θ。(i
))Tを教示し、これを仮教示点θ(i)(i=l,2
,・・・・I end)として記憶し、次いで、所定の
距離Qを入力し、ガン2の先端をワーク3から距離eだ
け引き離したときのロボット関節角を正規の教示点とす
る。以下、仮教示点から正規の教示点への変換方法を、
第4図〜第6図に示すフローチャートによって説明する
In other words, as the distance go, Lohot's joint angle e
(i) one (θ, (i), θ2(+), ..., θ. (i
)) T is taught, and this is set as a temporary teaching point θ(i) (i=l,2
, . . . I end), then input a predetermined distance Q, and set the robot joint angle when the tip of the gun 2 is separated from the workpiece 3 by a distance e as the regular teaching point. Below is the method for converting temporary teaching points to regular teaching points.
This will be explained with reference to flowcharts shown in FIGS. 4 to 6.

第4図は教示時の動作フローである。まず教示点番号i
を1に初期化する(ステソプSPY)。
FIG. 4 is an operational flow during teaching. First, teaching point number i
Initialize to 1 (Stethop SPY).

次いで、ロポソト1のガン2の先端が狙いの位置へ移動
されたならば(ステップSP2,SP3)、そのときの
ロホット関節角データθ(i)を読込み(ステップSP
4)、仮教示点として記憶装置へ格納する(ステップS
P5)。こうして、一つの仮教示点が教示された。
Next, when the tip of the gun 2 of the lohot 1 is moved to the target position (steps SP2, SP3), the lohot joint angle data θ(i) at that time is read (step SP
4), stored in the storage device as a temporary teaching point (step S
P5). In this way, one provisional teaching point was taught.

その後、教示点番号jを1だけインクリメントl2 ?(ステップSP.8)、教示が終了でなlナればステ
ップSP2へ戻る。また、教示が終了であれば(ステッ
プSP7)、教示点数をI endとして記憶し、教示
を終了する。
After that, increment the teaching point number j by 1 l2? (Step SP.8), if the teaching is completed, return to step SP2. Further, if the teaching is finished (step SP7), the teaching score is stored as I end, and the teaching is ended.

第5図は、上で教示した仮教示点を再生可能な正規の教
示点へ変換するためのフローである。
FIG. 5 is a flowchart for converting the temporary teaching points taught above into regular teaching points that can be reproduced.

まず、教示点番号iを1に初期化しくステップSP’l
l)、入力手段から入力されたガン先端と塗装面との距
離Qを読み込んで設定する(ステソプSP12)。さら
に、仮教示点データθ(i)を記憶装置から読み出し(
ステップSP13)、該仮教示点データ(ロボッ1・関
節角データ)θ(i)を正変換して、座標変換マトリク
スI?TTを求める(ステップSP14)。すなわち、 R7”T(i )一f (e(i ))この座標変換マ
トリックスl+7’T(+)は、教示点iにおけるガン
2の位置・姿勢を表わすもので、ツール座標系Σ7で表
したガン2の位置・姿勢を、ロボット座標系Σ■て表し
たガン2の位置・姿勢に変換して示すものである。座標
変換マトリックス[l7’T(i)を詳しく書くと、 前述のように、 となる。ここで、ベクトルu(i)は、教示点iにおけ
るツール座標系Σ1のXT軸方向を示す基底ベクトルで
あり、ガンの狙い方向を示している。
First, the teaching point number i is initialized to 1 in step SP'l.
l) Read and set the distance Q between the tip of the gun and the painted surface input from the input means (STEP SP12). Furthermore, the temporary teaching point data θ(i) is read out from the storage device (
Step SP13), the temporary teaching point data (robot 1/joint angle data) θ(i) is transformed into a coordinate transformation matrix I? TT is determined (step SP14). That is, R7''T(i) - f (e(i)) This coordinate transformation matrix l+7'T(+) represents the position and orientation of the gun 2 at the teaching point i, expressed in the tool coordinate system Σ7. This shows the position and orientation of gun 2 transformed into the position and orientation of gun 2 expressed in the robot coordinate system Σ■.If we write the coordinate transformation matrix [l7'T(i) in detail, as mentioned above, , Here, the vector u(i) is a base vector indicating the XT axis direction of the tool coordinate system Σ1 at the teaching point i, and indicates the aiming direction of the gun.

ガン2の狙い方向と姿勢を変えないで、ガン2を狙い方
向に沿って距離Qだけ後退させたときの回転マトリック
スRr(i)とベクトルPT(1)は次のようになる。
When the gun 2 is moved back by a distance Q along the aiming direction without changing the aiming direction and posture of the gun 2, the rotation matrix Rr(i) and vector PT(1) are as follows.

RT’(i )−77T(i ) PT’(i )=PT(+ )  (1−u(+ )こ
こで、゜(ダッシュ)は後退後の位置姿勢を示す。ステ
ップSP15において、この′R T″<+>、PT“
(i)を算出し、後退後の座標変換マトリックス l4 を求める。この座標変換マトリソクスRTT’(i)は
、カン2の先端とワーク3との間の距離かQの場合の、
ガン2の先端位置を表す、もので、ツール座標系での表
現をロボット座標系での表現に変換するものである。座
標変換71・リックス+17+T”(i)に逆変換演算
0 = / −’(”/’ T’ )を施すことによっ
て、ロボット関節角θ′(1)か求められる(ステップ
SP1.6)。これが、ガン2の先端をワーク3から距
離Qたけ後退さぜたときの正規の教示点であり、この教
示点θ′(l)を記憶装置へ格納する(ステップSP1
7)。そして、格納後、教示点番号をインクリメントし
(ステップSP8)、最終点でなければステップSPl
3へ戻り、最終点であれば変換を終了する(ステップS
 P 1 9)。
RT'(i)-77T(i) PT'(i)=PT(+) (1-u(+)) Here, ゜ (dash) indicates the position and orientation after retreating.In step SP15, this 'R T″<+>, PT“
(i) is calculated, and the coordinate transformation matrix l4 after retreat is determined. This coordinate transformation matrix RTT'(i) is the distance between the tip of the can 2 and the workpiece 3, or in the case of Q,
It represents the position of the tip of the gun 2 and converts the expression in the tool coordinate system to the expression in the robot coordinate system. The robot joint angle θ'(1) is determined by applying the inverse transformation operation 0=/-'("/'T') to the coordinate transformation 71.Rix+17+T"(i) (step SP1.6). This is the regular teaching point when the tip of the gun 2 is moved back a distance Q from the workpiece 3, and this teaching point θ'(l) is stored in the storage device (step SP1
7). After storing, the teaching point number is incremented (step SP8), and if it is not the final point, step SP1
Return to step 3, and if it is the final point, end the conversion (step S
P19).

こうして、正規の教示点か求められ、これに基づいて再
生動作、つまり塗装か行われる。なお、教示点間の速度
補間法は別に定められているか、ここでは、説明を省略
する。
In this way, a regular teaching point is determined, and a reproducing operation, that is, painting, is performed based on this. It should be noted that the speed interpolation method between teaching points is determined separately, and its explanation will be omitted here.

室妻l生Z 第5図に示す動作フローでは、仮教示点を正規の教示点
に変換した後、一旦記憶し、この記憶された教示点にし
たがって再生動作を行うようにした。しかしながら、変
換後の正規の教示点を記憶しないで、ロボットが動作す
る毎にリアルタイムで計算する方法をとってもよい。第
6図は、この場合のフローを示すものである。
In the operation flow shown in FIG. 5, the provisional teaching points are converted into regular teaching points, then temporarily stored, and the playback operation is performed in accordance with the stored teaching points. However, a method may be used in which the converted regular teaching points are not stored and are calculated in real time each time the robot moves. FIG. 6 shows the flow in this case.

第6図のフローチャートは、ステップSP17以外は第
5図と同一である。第5図のフローでは、ステップSP
]7で記憶装置に記憶していたが、第6図のフローでは
、算出されたロボット関節角データ(正規の教示点)θ
”(1)によってロボットを直接動作させる(ステップ
SP17a)。なお、教示点θ’(i − 1 )から
O“(i)までの速度補間については、別途制御されて
いるが、ここでは説明を省略する。この実施例2ては、
ガン2の先端と塗装面との間の距離を毎回読込んでいる
ので、リアルタイムで距離の変更ができる。
The flowchart in FIG. 6 is the same as that in FIG. 5 except for step SP17. In the flow of FIG. 5, step SP
] 7, but in the flow of FIG. 6, the calculated robot joint angle data (regular teaching point) θ
The robot is directly operated according to ``(1)'' (step SP17a). Note that the speed interpolation from the teaching point θ'(i − 1) to O''(i) is controlled separately, but will not be explained here. Omitted. In this Example 2,
Since the distance between the tip of gun 2 and the painted surface is read each time, the distance can be changed in real time.

実施例3 上記実施例では、ガンの先端を塗装面に乗直に当てた状
態で実際に教示し、その点を仮教示点とし、この仮教示
点に所定の演算を施して、最適距離Qだけガンをずらし
たときの位置を算出し、これを正規の教示点としている
。これに対して、本実施例では、ガン先端と塗装面とを
適当な距離eだけ離して教示し、それを修正して最適距
離にしようとするものである。以下、これにつき説明す
る。
Example 3 In the above example, the tip of the gun is actually taught with the tip of the gun directly in contact with the painted surface, that point is used as a temporary teaching point, and a predetermined calculation is performed on this temporary teaching point to determine the optimal distance Q. The position when the gun is shifted by this amount is calculated, and this is used as the official teaching point. In contrast, in this embodiment, the gun tip and the painted surface are taught to be separated by an appropriate distance e, and this is corrected to obtain the optimum distance. This will be explained below.

多関節型で各軸に位置検出器を有するロボットにおいて
、教示のときに、ガン先端点とワークとの距離を入力し
て教示データ上に記憶させる。
In a multi-jointed robot having a position detector on each axis, during teaching, the distance between the gun tip and the workpiece is input and stored in the teaching data.

上記データに対し、各軸の位置検出器のデータからロボ
ット座標上でのガン先端点の位置およびガン角度をコン
トローラにより演算する。これらのデータに基づいて、
ガン角度を保ったまま、カンをその軸方向に移動させる
。第7図〜第9図は、?の状態を示すものである。こう
して、通常の塗装作業が実行される。
With respect to the above data, the position of the gun tip point on the robot coordinates and the gun angle are calculated by the controller from the data of the position detector of each axis. Based on these data,
Move the can in the direction of its axis while maintaining the gun angle. Figures 7 to 9 are? This indicates the state of In this way, normal painting work is carried out.

ところで、ガン先端と塗装面との距離を少し調整するこ
とによって、塗装品質を向上できることもある。このよ
うな場合のために、ファンクション機能として、」二記
距離を可変できるようにした。
By the way, painting quality can sometimes be improved by slightly adjusting the distance between the gun tip and the painting surface. For cases like this, we have added a function that allows you to change the distance.

これが本実施例の要点である。This is the main point of this embodiment.

まず、ガン先端と塗装面との距離を現状に対して士何m
m移動するかということを、コントローラのキー操作に
よって人力する。コントローラは、人力された値によっ
て、各軸位置データを一括変換する。本変換処理の処理
フロー概要を第10図に示す。
First, measure the distance between the tip of the gun and the painted surface in meters relative to the current situation.
The decision whether to move m or not is manually performed by operating the keys on the controller. The controller converts the position data of each axis at once based on the manually inputted values. FIG. 10 shows an overview of the processing flow of this conversion process.

・ステップSP21:  各軸位置データd,,d,・
・ d.から、各軸間の角度θ1,θ2,・・,θ■を
演算する。
・Step SP21: Each axis position data d,,d,・
・d. From this, the angles θ1, θ2, . . . , θ■ between the respective axes are calculated.

・ステップSP22:  上記角度θ1,θ2θ■から
、4行×4列の座標変換マトリックスTを算出する。
- Step SP22: A coordinate transformation matrix T of 4 rows x 4 columns is calculated from the angles θ1 and θ2θ■.

18 ただし t nl(n = i〜3〉:ガン方向ベクトルtn2
(n−1〜3)・ガン方向、パターン方向と共に直交す
る方向ベク トノレ t n3( n−1〜3):パターン方向ベクトルt 
n.(n = 1〜4):ガン先端点の座標・ステップ
SP23:  ガン先端点を座標変更量分たけシフトす
る。すなわち、上記tn4(n=1〜4)をtnA±Δ
Qr(r=x+  y+  z)とする。
18 However, t nl (n = i ~ 3>: Gun direction vector tn2
(n-1 to 3) - Direction vector t perpendicular to the gun direction and pattern direction n3 (n-1 to 3): Pattern direction vector t
n. (n = 1 to 4): Coordinates of gun tip point - Step SP23: Shift the gun tip point by the amount of coordinate change. That is, the above tn4 (n=1 to 4) is tnA±Δ
Let Qr (r=x+y+z).

(以下、 余白) l9 ・ステップSP24:  上記マトリックスT゛から各
軸間の角度θ1゛,θ2゜,・・・,θ。′を算出する
(Hereafter, blank space) l9 - Step SP24: From the above matrix T', angles θ1゛, θ2゜, ..., θ between the respective axes. ′ is calculated.

・ステップSP25 :  上記角度01′,θ2,・
・・θ。′から各軸のデジタル値d,’,d,”,・・
・,dnを算出する。これによって、ガン方向ベクトル
を変えない姿勢で、ガン先端点を一定量移動するための
マニピュレー夕に対する指令値を求めることができる。
・Step SP25: The above angle 01', θ2,・
...θ. ' to digital value d, ', d,'',...
・, dn is calculated. This makes it possible to obtain a command value for the manipulator to move the gun tip point by a certain amount without changing the gun direction vector.

「発明の効果」 以上説明したように、本発明によれば、ワークの塗装面
に塗装ガンを押しあてた状態で教示できるので、次の効
果が得られる。
"Effects of the Invention" As explained above, according to the present invention, teaching can be performed while the painting gun is pressed against the painted surface of the workpiece, so the following effects can be obtained.

(1)狙い位置、狙い方向が正確になり塗装品質が向上
する。
(1) The aiming position and aiming direction become more accurate and the coating quality improves.

(2)教示点での位置決めが容易になるので、決20 め時間が短縮できる。(2) Positioning at the teaching point becomes easier, so You can reduce the time required.

(3)教示用治具など余分なものが不要である。(3) Extraneous items such as teaching jigs are unnecessary.

また、ガン先端と塗装面間の距離を教示後任意に設定で
きるので、次の効果が得られる。
Furthermore, since the distance between the gun tip and the painted surface can be set arbitrarily after being taught, the following effects can be obtained.

(4)塗装面に対して、平行に移動するロボットの軌道
が容易に得られる。
(4) The trajectory of the robot moving parallel to the painted surface can be easily obtained.

(5)塗装条件の変化に応じて、自由にガン先端と塗装
面間の距離を変更することで、均一な塗装作業を行うこ
とが可能となる。
(5) By freely changing the distance between the gun tip and the painted surface in response to changes in painting conditions, it becomes possible to perform uniform painting work.

特に、3次元曲面においては効果が大きくなる。The effect is particularly great on three-dimensional curved surfaces.

また、実施例2では、リアルタイムでガン先端と塗装面
間の距離が変更できるので、作業中の塗装条件変化に対
しても塗装品質を均一にできる。
Furthermore, in the second embodiment, since the distance between the gun tip and the coating surface can be changed in real time, the coating quality can be made uniform even when coating conditions change during work.

そのほか、次の効果か得られる。In addition, you can obtain the following effects.

(6)ガン先端と塗装而との距離変更をリモー1・操作
によって容易に行えるようになる。
(6) The distance between the tip of the gun and the paint can be easily changed by remote control.

(7)ガンの変更、あるいは吐出量の変更なとにともな
ってガン先端と塗装面との距離を変更する場合、一括変
換ができるので、ロボットを動作させて修正するといっ
た作業が不要となる。
(7) When changing the distance between the gun tip and the painted surface due to changing the gun or changing the discharge amount, batch conversion can be performed, so there is no need to operate the robot to make corrections.

(8)相似形ワークに対する修正操作が容易となる。(8) Correction operations for similar-shaped workpieces become easier.

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

第1図は塗装用ロボットのロボット座標とツール座標を
示す斜視図、第2図は被塗装物(ワーク)に対するロボ
ットの塗装動作のモデル図、第3図は本発明の実施例1
,2による教示方法を説明するための概略図、第4図〜
第6図は実施例1,2の動作を示すフローチャートで、
第4図は実施例1,2の教示動作時、第5図は実施例1
の教示点変換動作時、第6図は実施例2の教示点変換動
作時の各フローチャート、第7図〜第9図は実施例3の
動作を説明するための概略図で、第7図はガン先端と塗
装面との距離を示す平面図、第8図はロボット本体の側
面図、第9図はロボット本体の平面図、第10図は実施
例3の動作を示すフローチャート、第11図は塗装用ロ
ボットにおける従来の教示方法を説明するための図であ
る。 1・・・・・・塗装用ロボット、2・・・・・・塗装ガ
ン、3 ・・ ・・被塗装物(ワーク) 4 ・・教示用t台具。
Figure 1 is a perspective view showing the robot coordinates and tool coordinates of a painting robot, Figure 2 is a model diagram of the robot's painting operation on an object to be painted (workpiece), and Figure 3 is Embodiment 1 of the present invention.
, 2 - Schematic diagram for explaining the teaching method according to 2.
FIG. 6 is a flowchart showing the operation of embodiments 1 and 2.
Figure 4 shows the teaching operation of Examples 1 and 2, and Figure 5 shows Example 1.
FIG. 6 is a flow chart of the teaching point conversion operation of the second embodiment, FIGS. 7 to 9 are schematic diagrams for explaining the operation of the third embodiment, and FIG. FIG. 8 is a side view of the robot main body, FIG. 9 is a plan view of the robot main body, FIG. 10 is a flowchart showing the operation of Example 3, and FIG. FIG. 2 is a diagram for explaining a conventional teaching method for a painting robot. 1...Painting robot, 2...Painting gun, 3...Object to be painted (work) 4...T-tool for teaching.

Claims (1)

【特許請求の範囲】 ロボット本体と、該ロボット本体を制御するコントロー
ラとを有する産業用ロボットにおいて、ツール先端をワ
ークに密着させた状態、あるいは一定量離した状態で教
示した仮教示データを記憶する記憶手段と、 ツール先端とワークとがロボット再生時にとるべき間隔
を入力する入力手段と、 ロボット可動部先端に設けられたツールの方向を1つの
軸とするツール座標系とロボット本体に関するロボット
座標系との関係を規定する座標変換マトリックスを求め
、前記各仮教示データごとに定まるツール座標系の位置
と方向を、ロボット座標系における位置と方向に変換し
た形で前記座標変換マトリックスによって表現する第1
演算部前記再生時にとるべき間隔を前記座標変換マトリ
ックスに入れて、ツール先端移動後のツール座標系を前
記座標マトリックスによって表現する第2演算部と、 該座標変換マトリックスを逆変換してロボット座標系に
おけるツール先端移動後のツール座標系の位置と姿勢と
を正規の教示データとして求める第3演算部と を具備することを特徴とする産業用ロボット。
[Claims] In an industrial robot having a robot body and a controller for controlling the robot body, provisional teaching data taught while the tool tip is in close contact with a workpiece or separated by a certain amount is stored. a storage means, an input means for inputting the interval between the tool tip and the workpiece during robot playback, a tool coordinate system having one axis in the direction of the tool provided at the tip of the robot movable part, and a robot coordinate system regarding the robot body. The first step is to obtain a coordinate transformation matrix that defines the relationship between
a second calculation unit that inputs the interval to be taken during the reproduction into the coordinate transformation matrix and expresses the tool coordinate system after the tool tip has been moved by the coordinate matrix; An industrial robot, comprising: a third calculation unit that obtains the position and orientation of the tool coordinate system after the tool tip is moved as regular teaching data.
JP18833389A 1989-07-20 1989-07-20 Industrial robot Pending JPH0355184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18833389A JPH0355184A (en) 1989-07-20 1989-07-20 Industrial robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18833389A JPH0355184A (en) 1989-07-20 1989-07-20 Industrial robot

Publications (1)

Publication Number Publication Date
JPH0355184A true JPH0355184A (en) 1991-03-08

Family

ID=16221781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18833389A Pending JPH0355184A (en) 1989-07-20 1989-07-20 Industrial robot

Country Status (1)

Country Link
JP (1) JPH0355184A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8134800B2 (en) 2008-03-12 2012-03-13 Nec Embedded Products, Ltd. Stop position adjusting device and stop position adjusting method for accessor mechanism
JP2015023951A (en) * 2013-07-25 2015-02-05 オリンパス株式会社 Manipulator and manipulator system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8134800B2 (en) 2008-03-12 2012-03-13 Nec Embedded Products, Ltd. Stop position adjusting device and stop position adjusting method for accessor mechanism
JP2015023951A (en) * 2013-07-25 2015-02-05 オリンパス株式会社 Manipulator and manipulator system

Similar Documents

Publication Publication Date Title
US4887222A (en) Method for controlling operation of industrial robot
US4823279A (en) Coordinate conversion system and method for controlling an industrial robot
CN113001535B (en) Automatic correction system and method for robot workpiece coordinate system
CN104827479A (en) Pipeline insertion intersecting line track planning method orientated to laser machining robot
CN107443382A (en) Industrial robot structure parameter error recognizes and compensation method
CN111702762A (en) Industrial robot operation attitude optimization method
JPS58163006A (en) Switch command position transducer for controller
CA2526459C (en) Teaching data preparing method for articulated robot
JPS6198407A (en) Production of position data on robot control shaft
CN109623812B (en) Mechanical arm trajectory planning method considering spacecraft body attitude motion
CN111037054B (en) Arc fuse curve surface additive pose modeling method and control method
CN116330267A (en) Control method based on industrial robot wrist singular point calculation
CN106881717B (en) A kind of surface of robot spacing follows method for paint spraying
JPH0355184A (en) Industrial robot
CN116038697A (en) Jeans automatic spraying method and system based on manual teaching
CN110561387B (en) Method for determining a rotatable workpiece in an industrial robot system
CN110039249B (en) Method for solving motion trail of welding positioner based on inverse kinematics analytic solution weight method of welding positioner
FI83175C (en) Procedure for path control of a robotic cell
JPH09179619A (en) Method for setting up locus of coating robot
JPH11226886A (en) Correcting method for robot track
JPH02310706A (en) Articulated robot controller
CN113119123B (en) Motion control method for office swivel chair production
JPH02303779A (en) Control of industrial robot
JPS61253510A (en) Method for confirming robot control data
JP2664476B2 (en) Industrial robot