JPH07325611A - Automatic correcting method for off-line teaching data - Google Patents

Automatic correcting method for off-line teaching data

Info

Publication number
JPH07325611A
JPH07325611A JP6117803A JP11780394A JPH07325611A JP H07325611 A JPH07325611 A JP H07325611A JP 6117803 A JP6117803 A JP 6117803A JP 11780394 A JP11780394 A JP 11780394A JP H07325611 A JPH07325611 A JP H07325611A
Authority
JP
Japan
Prior art keywords
robot
teaching data
work
offline teaching
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP6117803A
Other languages
Japanese (ja)
Other versions
JP3191563B2 (en
Inventor
Hirohisa Sakai
浩久 酒井
Masao Kawase
昌男 川瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP11780394A priority Critical patent/JP3191563B2/en
Publication of JPH07325611A publication Critical patent/JPH07325611A/en
Application granted granted Critical
Publication of JP3191563B2 publication Critical patent/JP3191563B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Resistance Welding (AREA)
  • Numerical Control (AREA)
  • Manipulator (AREA)

Abstract

PURPOSE:To provide a method for automatically correcting off-line teaching data with high precision. CONSTITUTION:A mark 8 is fitted to a work 1 and a position detecting means such as a CCD camera 5A is mounted on a robot; and the robot is moved so that the image of the mark 8 recognized by the CCD camera 5A is in the center of a screen, and the off-line teaching data are automatically corrected by the movement quantity.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ロボットのオフライン
ティーチングデータを自動的に補正する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically correcting offline teaching data of a robot.

【0002】[0002]

【従来の技術】自動車ボデーの生産ラインでは、ロボッ
トガンを装着した汎用ロボットが、パレットに位置決め
されてコンベアで送られてきたワークに対して、教示さ
れたティーチングデータを再生することにより、所定の
作業を実施している。以下の説明では、ロボットガンが
スポット溶接ガンの場合を例にとってあるが、ロボット
ガンはスポット溶接ガンに限るものではなく、ロール溶
接ガン、シーラ塗布用シーラガンであってもよい。自動
車のモデルチェンジ時にワーク(たとえば、ボデー)の
形状、スポット溶接位置が変更されると、それに対応し
たティーチングデータをロボットに教示し直す必要があ
る。教示し直した後は、次のモデルチェンジまでは、教
示し直したデータで、同タイプのワークの溶接が行われ
る。ティーチングデータのロボットへの教示は、従来、
オンラインティーチングとオフラインティーチングとが
ある。オンラインティーチングでは、現場にて、ロボッ
トガンをロボットでワーク打点位置に対応する位置にも
っていき、その点をティーチペンダントでロボットに教
示する。これを各打点位置に対して行う。オフラインテ
ィーチングでは、現場でなくオフラインにて、パソコン
内で仮想のロボットと仮想のワークとで、ティーチング
データを作成し、それを実際のロボットに入力する。
2. Description of the Related Art In an automobile body production line, a general-purpose robot equipped with a robot gun reproduces teaching data for a workpiece positioned on a pallet and sent by a conveyor to reproduce a predetermined data. Work is being carried out. In the following description, the case where the robot gun is a spot welding gun is taken as an example, but the robot gun is not limited to the spot welding gun, and may be a roll welding gun or a sealer application sealer gun. If the shape of the work (for example, body) and the spot welding position are changed when the model of the automobile is changed, it is necessary to re-teach the robot the teaching data corresponding thereto. After re-teaching, the same type of work is welded with the re-teached data until the next model change. Teaching data to robots has traditionally been taught by
There are online teaching and offline teaching. In the online teaching, the robot gun is brought to a position corresponding to the workpiece hitting point by the robot on the spot, and the point is taught to the robot by the teach pendant. This is done for each dot position. In off-line teaching, teaching data is created by a virtual robot and a virtual work in a personal computer not in the field but in a personal computer, and the data is input to an actual robot.

【0003】[0003]

【発明が解決しようとする課題】しかし、オンラインテ
ィーチングは、熟練を要し、人によって微妙にティーチ
ングデータが異なるという問題がある。また、従来のオ
フラインティーチングは、オフラインで教示した位置と
実際に設置してあるロボットによる位置との間に、ロボ
ットの設置位置ずれ、溶接ガン自重によるロボットアー
ムの撓みによって、ずれを生じ、オフラインティーチン
グデータの補正を必要とし、補正も精度が不足したり、
作業者によってばらつきがあり、補正のための段取りが
大変である、という問題を有する。とくに、従来のオフ
ラインティーチングデータの補正は基準点ティーチから
成るので、打点位置によっては補正精度が不足すること
がある。より詳しくは、パレットにボデーをのせて溶接
ロボットの位置にコンベアで送って止め、パレット又は
ロボットのある一点(たとえばパレットのピン)を基準
点として選択して、基準点の位置を測定し、ロボットの
姿勢を変えて少なくとも3回これを繰り返すことによ
り、基準点の実際の位置を求め、該基準点の実際の位置
とオフラインティーチングで教示した基準点の理論の位
置とのずれを求め、そのずれ分だけ全打点位置のオフラ
インティーチングデータを一律に補正する。しかし、キ
ャリブレーション実行時の基準点位置とは異なる位置に
ある打点位置に、異なる姿勢で、ロボットガンが移動し
たときに、ガン自重のかかり方が変化して、補正後の位
置も、実際の位置から微妙にずれるので、打点位置によ
っては精度が不足する部位が出てくる。
However, there is a problem that the online teaching requires skill and the teaching data is slightly different depending on the person. Further, in the conventional offline teaching, there is a gap between the position taught by the offline and the position actually set by the robot due to the displacement of the robot installation position and the deflection of the robot arm due to the weight of the welding gun, which causes the offline teaching. Data correction is required, and the accuracy of correction is insufficient,
There is a problem that there are variations depending on the operator, and the setup for correction is difficult. In particular, since the conventional correction of the offline teaching data consists of the reference point teach, the correction accuracy may be insufficient depending on the hitting position. More specifically, a body is placed on a pallet and conveyed to the position of the welding robot by a conveyor to be stopped, and a certain point on the pallet or robot (for example, a pin on the pallet) is selected as a reference point to measure the position of the reference point. The actual position of the reference point is obtained by changing the posture of the above and repeated at least three times, and the difference between the actual position of the reference point and the theoretical position of the reference point taught by the offline teaching is obtained. The off-line teaching data for all dot positions are uniformly corrected by the amount. However, when the robot gun moves to a striking point position that is different from the reference point position at the time of calibration and in a different posture, the way the weight of the gun itself is applied changes and the corrected position also changes to the actual position. Since it deviates slightly from the position, some parts may lack accuracy depending on the hitting position.

【0004】本発明の目的は、全ての打点位置に対して
高精度に位置ずれを補正でき、しかも補正を自動で行
う、オフラインティーチングデータの自動補正方法を提
供することにある。
It is an object of the present invention to provide an off-line teaching data automatic correction method capable of highly accurately correcting misalignment with respect to all hitting point positions, and further performing the correction automatically.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
の、本発明の方法は次の通りである。 (1) ロボットの一対のロボットガン装着部位の少な
くとも一方にCCDカメラを装着するとともに、ワーク
の打点位置の各々にマークを設け、ロボットにてオフラ
インティーチングデータをワークに対して再現し、再現
時に、各打点位置について、CCDカメラが認識した前
記マークの像が前記CCDカメラの画面の中心にくるよ
うに前記少なくとも一方のロボットガン装着部位をロボ
ットのツール座標のxy平面内で平行移動させ、該移動
量分、前記オフラインティーチングデータを補正する、
オフラインティーチングデータの自動補正方法。 (2) ロボットの一対のロボットガン装着部位の両方
にCCDカメラを装着するとともに、ワークの打点位置
の各々の表裏に互いに同サイズのマークを設け、ロボッ
トにてオフラインティーチングデータをワークに対して
再現し、再現時に、各打点位置について、両方のCCD
カメラがとらえたそれぞれの前記マークの像の径が互い
に同径となるように前記両方のロボットガン装着部位を
同時にロボットのツール座標のz方向に同量移動させ、
該移動量分だけ前記オフラインティーチングデータを補
正する、オフラインティーチングデータの自動補正方
法。 (3) ロボットツール座標でz方向の、ロボットガン
電極のロボットに対する駆動をサーボモータで行うよう
にしたロボットを用いてのオフラインティーチングデー
タの自動補正方法であって、ロボットにてオフラインテ
ィーチングデータをワークに対して再現し、再現時に、
各打点位置について、一方のロボットガン電極をワーク
に接近する方向に駆動し、前記電極がワークに当たった
ことを検知してその時迄の電極移動量からワークのロボ
ットツール座標でのz方向位置を求め、該ワーク位置よ
り前記一方のロボットガン電極の前記z方向のオフライ
ンティーチングデータを補正する、オフラインティーチ
ングデータの自動補正方法。 (4) ロボットの一対のロボットガン装着部位の少な
くとも一方に距離センサを装着し、ロボットにてオフラ
インティーチングデータをワークに対して再現し、再現
時に、各打点位置について、該打点位置が位置するワー
クのフランジの長手方向と直交方向にロボットを駆動し
て前記距離センサを移動させ、前記距離センサのフラン
ジとの距離データが急変する位置をワークの縁と認識し
てオフラインティーチングデータの打点位置とワーク縁
との距離を求め、該距離が所定距離となるように前記オ
フラインティーチングデータの打点位置をフランジ面内
で補正する、オフラインティーチングデータの自動補正
方法。 (5) ロボットの一対のロボットガン装着部位の少な
くとも一方にCCDカメラを装着するとともに、ワーク
の打点位置の各々に円筒状のマークを設け、ロボットに
てオフラインティーチングデータをワークに対して再現
し、再現時に、各打点位置について、CCDカメラが認
識した前記マークの像が真円になるように前記少なくと
も一方のロボットガン装着部位を姿勢変更して面直ズレ
を求め、該面直ズレ分、前記オフラインティーチングデ
ータを補正する、オフラインティーチングデータの自動
補正方法。 (6) ロボットの一対のロボットガン装着部の少なく
とも一方のまわりに距離センサを3個配設し、ロボット
にてオフラインティーチングデータをワークに対して再
現し、再現時に、各打点位置について、前記3個の距離
センサによりそれぞれワークとの距離を測定し、3個の
センサデータが一致するように前記少なくとも一方のロ
ボットガン装着部の姿勢を変えて面直ズレを求め、該面
直ズレ分、前記オフラインティーチングデータを補正す
る、オフラインティーチングデータの自動補正方法。
The method of the present invention for achieving the above object is as follows. (1) A CCD camera is mounted on at least one of a pair of robot gun mounting parts of the robot, and marks are provided on each of the spotting positions of the workpiece, and the robot reproduces the offline teaching data for the workpiece. For each dot position, the at least one robot gun attachment part is translated in the xy plane of the tool coordinate of the robot so that the image of the mark recognized by the CCD camera is at the center of the screen of the CCD camera, and the movement is performed. Correct the offline teaching data by the amount,
Offline teaching data automatic correction method. (2) A CCD camera is mounted on both of the robot gun mounting parts of the robot, and marks of the same size are provided on the front and back of each point where the workpiece is struck, and the robot reproduces offline teaching data for the workpiece. However, at the time of reproduction, for each dot position, both CCDs
Both of the robot gun mounting parts are simultaneously moved in the z direction of the tool coordinate of the robot by the same amount so that the diameters of the images of the marks captured by the cameras have the same diameter.
An automatic correction method for offline teaching data, which corrects the offline teaching data by the movement amount. (3) This is an automatic correction method for offline teaching data using a robot that uses a servo motor to drive the robot gun electrode to the robot in the z direction with robot tool coordinates. Again, at the time of reproduction,
For each hitting point position, one of the robot gun electrodes is driven in a direction approaching the work, and it is detected that the electrode has hit the work, and the z-direction position of the work in robot tool coordinates is determined from the electrode movement amount up to that time. An automatic correction method of offline teaching data, which is obtained and corrects the offline teaching data in the z direction of the one robot gun electrode from the work position. (4) A distance sensor is mounted on at least one of a pair of robot gun mounting parts of the robot, and the robot reproduces the offline teaching data with respect to the work. The robot is driven in a direction orthogonal to the longitudinal direction of the flange to move the distance sensor, and the position where the distance data between the distance sensor and the flange suddenly changes is recognized as the edge of the work, and the hitting position of the offline teaching data and the work are recognized. An automatic correction method for offline teaching data, which calculates a distance to an edge and corrects a hitting point position of the offline teaching data within a flange surface so that the distance becomes a predetermined distance. (5) A CCD camera is attached to at least one of a pair of robot gun attachment parts of the robot, and a cylindrical mark is provided at each of the spotting positions of the work, and the robot reproduces the offline teaching data for the work. At the time of reproduction, the posture of at least one of the robot gun mounting portions is changed for each hitting point position so that the image of the mark recognized by the CCD camera becomes a perfect circle, and the plane deviation is obtained. An automatic correction method for offline teaching data that corrects the offline teaching data. (6) Three distance sensors are provided around at least one of the pair of robot gun mounting parts of the robot, and the robot reproduces the offline teaching data for the work. The distance to the work is measured by each of the distance sensors, the posture of the at least one robot gun mounting portion is changed so as to match the data of the three sensors, and the plane deviation is obtained. An automatic correction method for offline teaching data that corrects the offline teaching data.

【0006】[0006]

【作用】上記(1)〜(6)の何れにあっても、打点位
置の各々に対して、打点位置に付したマークを機械的に
検出することによって求めた実際の打点位置とオフライ
ンティーチングデータの打点位置とが一致するようにロ
ボットのガン装着部位の位置が移動され、その移動量分
オフラインティーチングデータが補正されることによ
り、各々の打点位置に対する補正は、自動的に、ロボッ
トの設置位置によるずれとロボットアームの撓みによる
ずれを補正し、高精度になる。また、マークの検出、理
論位置と実際の位置との合せるためのロボットのガン装
着部の移動とその移動量の演算、オフラインティーチン
グデータの補正は、自動で行われ、作業者によるばらつ
きもなく、短時間で行われる。
In any of the above (1) to (6), for each of the dot positions, the actual dot position and the offline teaching data obtained by mechanically detecting the mark attached to the dot position. The position of the gun mounting part of the robot is moved so that it coincides with the hit point position of the robot, and the offline teaching data is corrected by the amount of movement, so the correction for each hit point position is automatically performed. High accuracy is achieved by correcting the deviation due to and the deviation due to the bending of the robot arm. In addition, the detection of marks, the movement of the gun mounting part of the robot to match the theoretical position and the actual position, the calculation of the movement amount, and the correction of the offline teaching data are performed automatically, and there is no variation depending on the operator. It is done in a short time.

【0007】[0007]

【実施例】以下に、本発明の実施例を説明する。図中、
図1〜図3、および図24、図25は本発明の何れの実
施例にも適用可能であり、図4〜図7、図26は本発明
の第1実施例に適用され、図8〜図10、図27は本発
明の第2実施例に適用され、図11、図12、図28は
本発明の第3実施例に適用され、図13〜図15、図2
9は本発明の第4実施例に適用され、図16〜図21、
図30は本発明の第5実施例に適用され、図22〜図2
4、図31は本発明の第6実施例に適用される。
EXAMPLES Examples of the present invention will be described below. In the figure,
1 to 3 and FIGS. 24 and 25 are applicable to any of the embodiments of the present invention, FIGS. 4 to 7 and 26 are applied to the first embodiment of the present invention, and FIGS. FIGS. 10 and 27 are applied to the second embodiment of the present invention, FIGS. 11, 12 and 28 are applied to the third embodiment of the present invention, and FIGS.
9 is applied to the fourth embodiment of the present invention, and FIGS.
FIG. 30 is applied to the fifth embodiment of the present invention, and FIGS.
4 and 31 are applied to the sixth embodiment of the present invention.

【0008】まず、全実施例に適用可能な共通構成を説
明する。共通構成部分には全実施例にわたって同一符号
を付してある。図1は、本発明方法を実施する装置を、
スポットガン溶接装置を例にとって示している。1は、
ワークで、たとえば自動車ボデーである。ワーク1はパ
レットに位置決めされて載せられてコンベアライン上を
流され、ロボット2の位置で停止される。ロボット2
は、6自由度の先端部をもつ汎用ロボットから成り、た
とえば6軸を有する多関節ロボットから成る。ロボット
2の先端部にはロボットガン3がとりつけられ、所望の
操作がワーク1に対して実施される。ロボットガン3が
スポット溶接ガン3の場合は、スポット溶接がワーク1
に対して行われる。ロボットガンはスポット溶接ガンに
かぎるものではない。たとえば、図2に示すように、ロ
ボットガンがシーラガン3Bである場合は、ワーク1に
対してシール剤が塗布される。図3に示すように、ロボ
ットガンがロール溶接ガン3Cの場合は、ワーク1に対
してロールスポット溶接が行われる。これらは本発明に
含む。
First, a common structure applicable to all the embodiments will be described. Common components are denoted by the same reference numerals throughout the embodiments. FIG. 1 shows an apparatus for carrying out the method according to the invention,
A spot gun welding device is shown as an example. 1 is
Work, for example a car body. The work 1 is positioned and placed on the pallet, is flowed on the conveyor line, and is stopped at the position of the robot 2. Robot 2
Consists of a general-purpose robot having a 6-DOF tip, for example, a multi-joint robot having 6 axes. A robot gun 3 is attached to the tip of the robot 2, and a desired operation is performed on the work 1. When the robot gun 3 is the spot welding gun 3, spot welding is the work 1
Done against. Robot guns are not limited to spot welding guns. For example, as shown in FIG. 2, when the robot gun is the sealer gun 3B, the sealant is applied to the work 1. As shown in FIG. 3, when the robot gun is the roll welding gun 3C, roll spot welding is performed on the work 1. These are included in the present invention.

【0009】ロボット1は、ロボット1に電気的に接続
されたロボット制御盤4によって、その先端部(ロボッ
トガン装着部)の移動を制御される。ロボット制御盤4
には、オフラインティーチングデータ補正前にオフライ
ンティーチングデータが入力され、ワーク1のタイプが
モデルチェンジなどによって変更されたときに、変更さ
れたワーク1のはじめの1台をコンベア上に流してロボ
ット位置で停止させ、はじめの1台のワーク1を用いて
オンラインで、オフラインティーチングデータを本発明
の方法を用いて自動補正する。コンベア上を流される2
台目以後の同タイプのワーク1は、補正されたデータを
用いて、スポット溶接等の操作が実行される。
The robot 1 is controlled by a robot control panel 4 electrically connected to the robot 1 to move the tip portion (robot gun mounting portion) thereof. Robot control panel 4
In the case where the offline teaching data is input before the offline teaching data correction and the type of the work 1 is changed due to a model change, etc., the first one of the changed work 1 is flown on the conveyor and the robot position is maintained. It is stopped, and online teaching data is automatically corrected using the method of the present invention using the first one workpiece 1 online. Flowed on the conveyor 2
For the work 1 of the same type after the table, operations such as spot welding are executed using the corrected data.

【0010】ロボット1の、ロボットガン装着部には、
実際の打点位置の検出手段5、たとえばCCDカメラ5
A、が少なくとも一方のロボットガンをとり外して装着
される。検出手段5によって検出されたデータは、ロボ
ット制御盤4の位置に設けられた画像処理装置6に送ら
れ、そこで処理された処理データはロボット制御盤4に
入力される。ロボット制御盤4でオフラインティーチン
グデータが自動補正される。図24は、従来のオフライ
ンティーチングデータ補正と本発明のオフラインティー
チングデータ補正のロジックの相違を示している。ステ
ップ101で、コンピュータ内で仮想のロボットと仮想
のワークとをベースにして、オフラインでティーチング
データ(打点位置、動作軌跡、溶接条件)を作成し、ス
テップ102で、現地に据えつけてあるロボット2にオ
フラインティーチングデータを入力する。ステップ10
2までは従来と本発明とは同じである。本発明では、ス
テップ103でワーク1をセットし、ワークの打点位置
にマーキング8を施し、ワークをロボット位置に送って
停止させる。ついで、ステップ104で、ロボット2に
て、オフラインティーチングデータを対象ワーク1に対
して再現させる。実際の位置とオフラインティーチング
データを再現した位置とはずれているので、ステップ1
05で、検出手段5を使用して実際のマークの位置を求
め、たとえば検出手段がCCDカメラ5Aの場合はマー
ク8を撮影しそれを画像処理装置6で画像処理して実際
の位置を求め、ついでオンラインデータとオフラインデ
ータが一致するようにロボットを動かして移動量をずれ
量とみなし、ロボット操作盤4内で、オフラインティー
チングデータと実際のデータのずれ量分だけオフライン
ティーチングデータを自動補正する。これを、全ての打
点位置の各々に対して実行する。検出は、検出手段がC
CDカメラの場合、たとえば、走査点を画面内で水平走
査線に沿って移動させることを鉛直方向に繰り返し、走
査点がマーク位置にきたことを画面の色や輝度の変化か
ら検出してマークの形状を認識し、マーク中心点を求め
る等によって行う。
In the robot gun mounting portion of the robot 1,
An actual hitting point detecting means 5, for example, a CCD camera 5
A, at least one of the robot guns is removed and attached. The data detected by the detection means 5 is sent to the image processing device 6 provided at the position of the robot control panel 4, and the processed data processed there is input to the robot control panel 4. The robot control panel 4 automatically corrects the offline teaching data. FIG. 24 shows the difference in logic between the conventional offline teaching data correction and the offline teaching data correction of the present invention. In step 101, based on the virtual robot and the virtual work in the computer, the teaching data (dotting position, movement locus, welding condition) is created offline, and in step 102, the robot 2 installed on site is used. Input the offline teaching data to. Step 10
Up to 2, the conventional method and the present invention are the same. In the present invention, the work 1 is set in step 103, the marking 8 is applied to the hitting position of the work, and the work is sent to the robot position and stopped. Then, in step 104, the robot 2 reproduces the offline teaching data for the target work 1. Since the actual position and the position where the offline teaching data is reproduced are not correct, step 1
At 05, the actual position of the mark is obtained using the detecting means 5. For example, when the detecting means is the CCD camera 5A, the mark 8 is photographed and the image processing device 6 performs image processing to obtain the actual position, Then, the robot is moved so that the online data and the offline data match, the movement amount is regarded as the deviation amount, and the offline teaching data is automatically corrected in the robot operation panel 4 by the deviation amount between the offline teaching data and the actual data. This is executed for each of all the dot positions. For detection, the detection means is C
In the case of a CD camera, for example, moving the scanning point along the horizontal scanning line in the screen is repeated in the vertical direction, and the fact that the scanning point comes to the mark position is detected from the change in the color and brightness of the screen, and the mark This is done by recognizing the shape and finding the mark center point.

【0011】上記のオフラインティーチングデータの、
ずれ量分だけの補正を図25を参照して説明する。オン
ラインでCCDカメラ等で測定したワーク上の基準点
(各打点位置)のロボット座標系ΣR における座標(各
軸のエンコーダから分かる値)をPiR =(XiR
iR、ZiRT とする。ただし、( )T は転値行列を
表す。オフラインでティーチングした、同一基準点の絶
対空間座標系Σ´R における座標をP´iR =(X
´iR、Y´iR、Z´iRT とする。PiRを絶対空間座標
系に変換するマトリクスTを用いて、Σ´R 座標系であ
らわしたデータと、オフラインティーチングデータとの
差がずれ量である。
Of the above offline teaching data,
Correction of only the amount of deviation will be described with reference to FIG. The coordinates (values known from the encoders of the respective axes) in the robot coordinate system Σ R of the reference points (each hitting point position) on the work measured online with a CCD camera or the like are P iR = (X iR ,
Y iR , Z iR ) T. However, () T represents a transversion matrix. And teaching offline, the coordinates in the absolute space coordinate system Shiguma' R of the same reference point P'iR = (X
'IR, Y'iR, and Z'iR) T. Using the matrix T to convert the P iR absolute space coordinate system, and the data expressed as a Shiguma' R coordinate system, which is the difference deviation amount between the off-line teaching data.

【0012】[0012]

【数1】 [Equation 1]

【0013】Tに対し、これを微小平行移動△x、△
y、△zと、回転δx 、δy 、δz をさせるマトリクス
を△Tとする。ただし、△Tとその要素との関係式は公
知であり、つぎの式で与えられる。
A small parallel movement Δx, Δ with respect to T
Let ΔT be the matrix that causes y, Δz and the rotations δ x , δ y , δ z . However, the relational expression between ΔT and its elements is known, and is given by the following expression.

【0014】[0014]

【数2】 [Equation 2]

【0015】オフラインデータとオンラインデータと
の、補正後の差は、次式であらわせ、0である。
The difference between the offline data and the online data after the correction is expressed by the following equation and is zero.

【0016】[0016]

【数3】 [Equation 3]

【0017】上式でTマトリクスはロボット固有のもの
で既知のマトリクスである。△Tはロボット装着部の移
動量から与えられるマトリクスである。したがって、補
正時には、P´iRが与えられて、PiRが決定される。こ
れによって、オフラインデータP´iRから、オンライン
用データPiRがロボット制御盤(コンピュータ)によっ
て自動的に決定される。すなわち、オフラインティーチ
ングデータが自動補正される。
In the above equation, the T matrix is a matrix unique to the robot and is known. ΔT is a matrix given from the movement amount of the robot mounting portion. Therefore, the correction time is, P'by iR is given, P iR is determined. Thereby, the off-line data P'iR, online data P iR is automatically determined by the robot control board (computer). That is, the offline teaching data is automatically corrected.

【0018】つぎに、本発明の各実施例に特有な構成を
説明する。本発明の第1実施例では、図4〜図7および
図26に示すように、ロボット2の一対のロボットガン
装着部位の少なくとも一方に、CCDカメラ5Aを装着
する。スポット溶接ガンの場合は、互いに対向する位置
に2つガン7があるので、そのうちの少なくとも一方を
とり外して、CCDカメラ5Aにもち換える。一方、ワ
ーク(たとえば、自動車のボデー)1には、スポット溶
接を施すべき打点位置の各々に、予め打点位置マーク8
を施しておく。たとえば、マーク8をワーク1に貼りつ
ける。ついで、ロボット2にてオフラインティーチング
データをワーク1に対して再現する。再現時に、各打点
位置について、CCDカメラ5Aが認識したマーク8の
像9が、図7に示すように、CCDカメラ5Aの画面の
中心10にくるように、CCDカメラ5Aをロボットの
ツール座標のxy平面内(スポット溶接ガンの加圧方向
と直交する面内)で平行移動させ、移動量(Δx、Δ
y)分、オフラインティーチングデータを補正する。す
なわち、Δx、ΔyからΔTが求まり、オフラインティ
ーチングデータP´iRとTとから、PiRが決定され、自
動補正が行われる。この操作を、打点位置の各々に対し
て行う。図26は、本発明の第1実施例のフローチャー
トを示している。ステップ151で、オフラインティー
チングデータをロボットにて再現し、ステップ152で
画像データをロボット制御盤(コンピュータ)にフィー
ドバックする。ついで、ステップ153にて、マーク位
置9とオフラインティーチングデータ位置10が一致し
ているかどうかを判定し、一致していればステップ15
4に進み、一致していなければ、ステップ156に進ん
でロボット姿勢修正を繰り返す。ステップ154にて、
オフラインティーチングデータを最終ティーチングデー
タに変換し、ステップ155に進んで、すべての打点位
置について完了したかを確認し、確認できたら終了す
る。すべての打点位置について終了していなければ、ス
テップ151にかえって、上記サイクルを繰り返す。
Next, the structure peculiar to each embodiment of the present invention will be described. In the first embodiment of the present invention, as shown in FIGS. 4 to 7 and 26, the CCD camera 5A is attached to at least one of the pair of robot gun attachment portions of the robot 2. In the case of the spot welding gun, since there are two guns 7 at positions facing each other, at least one of them is removed and replaced with the CCD camera 5A. On the other hand, on the work (for example, the body of the automobile) 1, the spot position mark 8 is previously set at each spot position to be spot-welded.
To give. For example, the mark 8 is attached to the work 1. Then, the robot 2 reproduces the offline teaching data for the work 1. At the time of reproduction, the CCD camera 5A is moved to the robot tool coordinate so that the image 9 of the mark 8 recognized by the CCD camera 5A is located at the center 10 of the screen of the CCD camera 5A at each dot position, as shown in FIG. The amount of movement (Δx, Δ) is translated in the xy plane (in the plane orthogonal to the pressure direction of the spot welding gun)
Correct the offline teaching data by y). That is, ΔT is obtained from Δx and Δy, P iR is determined from the offline teaching data P ′ iR and T, and automatic correction is performed. This operation is performed for each of the hitting points. FIG. 26 shows a flowchart of the first embodiment of the present invention. In step 151, the offline teaching data is reproduced by the robot, and in step 152, the image data is fed back to the robot control panel (computer). Then, in step 153, it is determined whether the mark position 9 and the offline teaching data position 10 match, and if they match, step 15
If not, the process proceeds to step 156 to repeat the robot posture correction. In step 154,
The offline teaching data is converted into the final teaching data, the process proceeds to step 155, it is confirmed whether or not all the hitting point positions are completed, and if confirmed, the process ends. If not completed for all the hitting points, the above cycle is repeated instead of step 151.

【0019】本発明の第2実施例では、図8〜図10お
よび図27に示すように、ロボット2の一対のロボット
ガン装着部位の両方にCCDカメラ5Bを装着するとと
もに、ワーク1の打点位置の各々の表裏に、互いに同サ
イズのマーク8を設ける。マーク8の形状は望ましくは
円形で、ワーク1に貼り付けられる。ついで、ロボット
2にオフラインティーチングデータをワーク1に対して
再現する。再現時に、各打点位置について、両方のCC
Dカメラ5Bがとらえた、それぞれのマーク8の像の径
が、互いに同径となるように、両方のCCDカメラ5B
を同時にロボット2のツール座標のz方向(打点位置に
おけるワークの面と直交する方向)に同時移動させ、そ
の移動量分(△z)だけ、オフラインティーチングデー
タを補正する。この補正は、自動的にロボット制御盤内
で行われる。図27は、本発明の第2実施例のフローチ
ャートを示している。ステップ201で、オフラインテ
ィーチングデータをロボットにて再現し、ステップ20
2にて、一方のCCDカメラ5Bが認識したマークの直
径D1を演算する。ついで、ステップ203にてD1の
データをロボット制御盤内でフィードバックし、ステッ
プ204にてD1のデータを基準にして、一方のCCD
カメラ5Bと打点位置とのz方向距離L1を演算する。
また、ステップ205にて、他方のCCDカメラ5Bが
認識したマークの直径D2を演算する。ついで、ステッ
プ203にてD2のデータをロボット制御盤内でフィー
ドバックし、ステップ204にてD2のデータを基準に
して、他方のCCDカメラ5Bと打点位置とのz方向距
離L2を演算する。ついで、ステップ208にて、L1
とL2が等しいか否かを判定し、等しくなるまでステッ
プ209にてロボット姿勢を修正する。ステップ208
でL1とL2が等しいと判定されると、ステップ210
に進んで、上記データを最終データに変換し、ステップ
211で、すべての打点位置について完了したかを確認
し、確認できたら終了する。すべての打点位置について
終了していなければ、ステップ201にかえって、上記
サイクルを繰り返す。
In the second embodiment of the present invention, as shown in FIGS. 8 to 10 and 27, the CCD camera 5B is mounted on both of the pair of robot gun mounting portions of the robot 2 and the position of the hit point of the work 1 is set. Marks 8 of the same size are provided on the front and back of each of the above. The shape of the mark 8 is preferably circular and is attached to the work 1. Then, the offline teaching data for the robot 2 is reproduced for the work 1. When reproducing, both CCs for each dot position
Both CCD cameras 5B are arranged so that the diameters of the images of the respective marks 8 captured by the D camera 5B have the same diameter.
Are simultaneously moved in the z direction of the tool coordinates of the robot 2 (direction orthogonal to the surface of the work at the hitting position), and the offline teaching data is corrected by the amount of movement (Δz). This correction is automatically performed in the robot control panel. FIG. 27 shows a flowchart of the second embodiment of the present invention. In step 201, the offline teaching data is reproduced by the robot, and step 20
At 2, the diameter D1 of the mark recognized by one of the CCD cameras 5B is calculated. Next, in step 203, the D1 data is fed back in the robot control panel, and in step 204, one of the CCDs is referenced with the D1 data as a reference.
The z-direction distance L1 between the camera 5B and the hitting point position is calculated.
In step 205, the diameter D2 of the mark recognized by the other CCD camera 5B is calculated. Then, in step 203, the data of D2 is fed back in the robot control panel, and in step 204, the z-direction distance L2 between the other CCD camera 5B and the hitting position is calculated based on the data of D2. Then, in step 208, L1
And L2 are equal, and the robot posture is corrected in step 209 until they are equal. Step 208
If it is determined that L1 is equal to L2 in step 210, step 210
Then, the above data is converted into final data, and in step 211, it is confirmed whether or not all the hitting point positions have been completed. If not completed for all the hitting points, the above cycle is repeated instead of step 201.

【0020】本発明の第3実施例は、図11、図12、
および図28に示すように、ロボットツール座標でz方
向の、ロボットガン電極11のロボットに対する駆動を
サーボモータ5Cで行うようにしたロボットを用いての
オフラインティーチングデータの自動補正方法である。
ロボットにてオフラインティーチングデータをワーク1
に対して再現する。再現時に、各打点位置について、一
方のロボットガン電極11をワーク1に接近する方向に
駆動し、電極11がワーク1に当たったことを検知して
その時迄の電極移動量からワーク1のロボットツール座
標でのz方向位置を求め、電極位置がワークから所定位
置隔たった位置にくるようにロボットガン装着部を移動
させ、移動量(Δz)分、オフラインティーチングデー
タを補正する。電極11がワーク1に当たったことの検
知は、サーボモータ5Cからの帰還電流の増加したこと
を検知するか、あるいはエンコーダ5Dのデータが変化
しなくなったことを検知するか電極内に圧力センサ5E
(トランスデューサ)を埋め込んでおき、圧力センサ5
Eの出力値が急変したことを検知するか、により行う。
図28は、本発明の第3実施例のフローチャートを示し
ている。ステップ301で、オフラインティーチングデ
ータをロボットにて再現する。ついで、ステップ302
にて、一方の電極、たとえば上部電極をワークに近づけ
ていき、ステップ303にて上部電極がワークに接触し
たとき、ステップ304にて接触をサーボ電流の変化か
ら検出し、それを検出するまで繰り返す。ついで、ステ
ップ305から接触したときの上部電極位置をエンコー
ダより検出し、ステップ306にて、その位置情報をコ
ントローラにフィードバックする。ついで、ステップ3
07にてチップとワークの相対距離Lを演算する。つい
で、ステップ308にて、L=(m−t)/2か否かを
判定し(ただし、mは上下チップ間距離、tはワーク板
厚)、NOならステップ309に進んでオフラインデー
タを修正し、ステップ310にてロボット位置を修正す
る。ステップ308にて、L=(m−t)/2であれ
ば、ステップ311に進んで、修正オフラインデータを
最終データに変換し、ステップ312で、すべての打点
位置について完了したかを確認し、確認できたら終了す
る。すべての打点位置について終了していなければ、ス
テップ301にかえって、上記サイクルを繰り返す。
The third embodiment of the present invention is shown in FIGS.
Further, as shown in FIG. 28, there is an automatic correction method for offline teaching data using a robot in which the robot gun electrode 11 is driven by the servo motor 5C in the z direction in robot tool coordinates.
Off-line teaching data for work 1 by robot
To reproduce against. At the time of reproduction, for each hitting point position, one of the robot gun electrodes 11 is driven in the direction of approaching the work 1 and it is detected that the electrode 11 has hit the work 1 and the robot tool of the work 1 is determined from the electrode movement amount up to that time. The position in the z direction in coordinates is obtained, and the robot gun mounting part is moved so that the electrode position is a position separated from the work by a predetermined position, and the offline teaching data is corrected by the movement amount (Δz). Whether the electrode 11 hits the work 1 is detected by detecting an increase in the feedback current from the servomotor 5C, or by detecting that the data of the encoder 5D is no longer changed, or by detecting the pressure sensor 5E in the electrode.
(Transducer) is embedded and pressure sensor 5
Whether or not the output value of E is suddenly changed is detected.
FIG. 28 shows a flowchart of the third embodiment of the present invention. In step 301, the offline teaching data is reproduced by the robot. Then, step 302
, One electrode, for example, the upper electrode, is brought closer to the work, and when the upper electrode contacts the work in step 303, the contact is detected from the change in the servo current in step 304, and this is repeated until it is detected. . Then, from step 305, the position of the upper electrode upon contact is detected by the encoder, and in step 306 the position information is fed back to the controller. Then, step 3
At 07, the relative distance L between the chip and the work is calculated. Then, in step 308, it is determined whether or not L = (m−t) / 2 (where m is the distance between the upper and lower chips and t is the work plate thickness). If NO, the process proceeds to step 309 to correct the offline data. Then, in step 310, the robot position is corrected. If L = (m−t) / 2 in step 308, the process proceeds to step 311, the corrected offline data is converted into final data, and in step 312, it is confirmed whether or not all the hit point positions are completed, If you can confirm, exit. If not completed for all the hitting points, the above cycle is repeated instead of step 301.

【0021】本発明の第4実施例では、図13、図1
4、図15および図29に示すように、一対のロボット
2のロボットガン装着部位の少なくとも一方に、距離セ
ンサ5Fを装着する。ついで、ロボット2にてオフライ
ンティーチングデータをワーク1に対して再現する。再
現時に、各打点位置について、該打点位置が位置するワ
ーク1のフランジの長手方向と直交方向に、フランジ面
とは平行に、距離センサ5Fを移動させ、距離センサ5
Fのフランジとの距離データが急変する位置をワーク1
の縁と認識してオフラインティーチングデータの打点位
置とワーク縁との距離を求め、該距離が所定距離となる
ようにロボットガン装着部を移動し、移動量分、オフラ
インティーチングデータをフランジ面と平行方向に補正
する。これによって、データ補正後の打点位置、すなわ
ち実際の打点位置、をワーク1のフランジ端縁から所定
距離隔たった位置とすることができる。もしも、打点位
置がフランジ幅方向にずれて溶接位置がフランジ端縁に
近ずきすぎると、溶接バリが生じて溶接品質が低下する
ことがあるが、本発明では、それが防止される。図29
は、本発明の第4実施例のフローチャートを示してい
る。ステップ401で、オフラインティーチングデータ
をロボットにて再現する。ついで、ステップ402に
て、各打点位置に対して距離センサ5Fを走引し、ステ
ップ403にてセンサデータをコントローラにフィード
バックする。ついで、ステップ404にてセンサデータ
が変化したか否かを判定し、変化するまで上記サイクル
を繰り返す。ステップ404にてセンサデータが変化し
たことが確認されると、ステップ405に進み、走引速
度、走引時間を基準にしてティーチングデータを修正す
る。ついで、ステップ406にて、打点位置がフランジ
の端から所定距離にあるか否かを判定し、NOならステ
ップ407に進んで打点位置がフランジの端から所定距
離にあるように補正する。ステップ406にて、打点位
置がフランジの端から所定距離にあると判定されると、
ステップ408に進んで、修正オフラインデータを最終
データに変換し、ステップ409で、すべての打点位置
について完了したかを確認し、確認できたら終了する。
すべての打点位置について終了していなければ、ステッ
プ401にかえって、上記サイクルを繰り返す。
In the fourth embodiment of the present invention, FIG. 13 and FIG.
4, 15 and 29, the distance sensor 5F is attached to at least one of the robot gun attachment portions of the pair of robots 2. Then, the robot 2 reproduces the offline teaching data for the work 1. At the time of reproduction, for each hitting point position, the distance sensor 5F is moved in a direction orthogonal to the longitudinal direction of the flange of the workpiece 1 where the hitting point position is located, parallel to the flange surface, and the distance sensor 5 is moved.
Work 1 at the position where the distance data from the F flange changes suddenly
The edge of the robot teaching point is calculated to find the distance between the hitting position of the offline teaching data and the work edge, and the robot gun mounting part is moved so that the distance becomes the specified distance, and the offline teaching data is parallel to the flange surface by the amount of movement. Correct in the direction. Thereby, the hitting position after data correction, that is, the actual hitting position can be set at a position separated from the flange edge of the work 1 by a predetermined distance. If the striking position shifts in the flange width direction and the welding position comes too close to the flange edge, welding burrs may occur and welding quality may deteriorate, but this is prevented in the present invention. FIG. 29
Shows a flow chart of a fourth embodiment of the present invention. In step 401, the offline teaching data is reproduced by the robot. Next, in step 402, the distance sensor 5F is driven to each hit point position, and in step 403, the sensor data is fed back to the controller. Next, in step 404, it is determined whether or not the sensor data has changed, and the above cycle is repeated until it changes. When it is confirmed in step 404 that the sensor data has changed, the process proceeds to step 405, and the teaching data is corrected based on the running speed and running time. Next, at step 406, it is judged whether or not the hitting point position is a predetermined distance from the end of the flange, and if NO, the routine proceeds to step 407, where the hitting point position is corrected so that it is a predetermined distance from the end of the flange. When it is determined in step 406 that the hitting point position is at a predetermined distance from the end of the flange,
Proceeding to step 408, the corrected offline data is converted into final data, and in step 409, it is confirmed whether or not all the hitting point positions have been completed, and if confirmed, the processing ends.
If not completed for all the hitting points, the above cycle is repeated instead of step 401.

【0022】本発明の第5実施例では、図16から図2
1、および図30に示すように、ロボット2の一対のロ
ボットガン装着部位の少なくとも一方にCCDカメラ5
Gを装着するとともに、ワークの打点位置の各々に円筒
状のマーク8を設ける。マーク8は、透明な円柱状体
で、図17、図18に示すように、上面と下面の色を異
ならせてある。ついで、ロボット2にてオフラインティ
ーチングデータをワーク1に対して再現する。再現時
に、各打点位置について、CCDカメラ5Gが認識した
マーク8の像が真円になるように、図21に示すよう
に、CCDカメラ5Gを図19の状態から図20の状態
に姿勢変更して面直ズレを求め、該面直ズレの移動量
分、オフラインティーチングデータを補正する。図30
は、本発明の第5実施例のフローチャートを示してい
る。ステップ501で、オフラインティーチングデータ
をロボットにて再現する。ついで、ステップ502に
て、画像をコントローラにフィードバックする。つい
で、ステップ503にて、マークが真円として認識でき
たか否かを判定し、真円として認識できるまで、ステッ
プ504にてロボットの姿勢を修正する。ステップ50
3にて、マークが真円として認識できると、ステップ5
05に進み、オフラインデータを修正するとともに、修
正オフラインデータを最終データに変換し、ステップ5
06で、すべての打点位置について完了したかを確認
し、確認できたら終了する。すべての打点位置について
終了していなければ、ステップ501にかえって、上記
サイクルを繰り返す。
In the fifth embodiment of the present invention, FIGS.
As shown in FIG. 1 and FIG. 30, the CCD camera 5 is provided on at least one of the pair of robot gun mounting parts of the robot 2.
While G is mounted, a cylindrical mark 8 is provided at each of the work point positions. The mark 8 is a transparent columnar body, and as shown in FIGS. 17 and 18, the colors of the upper surface and the lower surface are different. Then, the robot 2 reproduces the offline teaching data for the work 1. At the time of reproduction, as shown in FIG. 21, the attitude of the CCD camera 5G is changed from the state of FIG. 19 to the state of FIG. 20 so that the image of the mark 8 recognized by the CCD camera 5G becomes a perfect circle at each hitting point position. The surface deviation is obtained by correcting the off-line teaching data by the movement amount of the surface deviation. Figure 30
Shows a flow chart of a fifth embodiment of the present invention. In step 501, the offline teaching data is reproduced by the robot. Then, in step 502, the image is fed back to the controller. Next, in step 503, it is determined whether or not the mark can be recognized as a perfect circle, and the posture of the robot is corrected in step 504 until it can be recognized as a perfect circle. Step 50
If the mark can be recognized as a perfect circle in step 3, step 5
Proceed to 05 to correct the offline data, convert the corrected offline data into final data, and execute Step 5
At 06, it is confirmed whether or not all the hitting point positions have been completed, and if confirmed, the process ends. If it has not been completed for all hitting points, the above cycle is repeated instead of step 501.

【0023】本発明の第6実施例では、図22、図2
3、図24、および図31に示すように、ロボット2の
一対のロボットガン装着部位の少なくとも一方のまわり
に距離センサ5Hを3個配設する。この場合、図23に
示すように、三角形の位置に配設する。ついで、ロボッ
ト2にてオフラインティーチングデータをワーク1に対
して再現する。再現時に、各打点位置について、3個の
距離センサ5Gによりそれぞれワークとの距離を測定
し、3個のセンサデータが一致するようにロボットガン
装着部の姿勢を変えて面直ズレを求め、該面直ズレ分、
オフラインティーチングデータを補正する。図31は、
補正の為の制御をフローチャートで示している。ステッ
プ601で、オフラインティーチングデータをロボット
にて再現する。ついで、ステップ602にて3個のセン
サデータA、B、Cをコントローラにフィードバックす
る。ついで、ステップ603でセンサデータの差が微小
値以下か否かを判定し、微小値以下でないなら、ステッ
プ604で、A、B、Cが一致するようにステップ60
5でロボット姿勢を修正する。ステップ603で、それ
ぞれの差が所定値m以下になったと判定されると、ステ
ップ606に進み、修正オフラインデータを最終データ
に変換し、ステップ607で、すべての打点位置につい
て完了したかを確認し、確認できたら終了する。すべて
の打点位置について終了していなければ、ステップ60
1にかえって、上記サイクルを繰り返す。
In the sixth embodiment of the present invention, FIGS.
3, FIG. 24, and FIG. 31, three distance sensors 5H are arranged around at least one of a pair of robot gun mounting parts of the robot 2. In this case, as shown in FIG. 23, they are arranged at triangular positions. Then, the robot 2 reproduces the offline teaching data for the work 1. At the time of reproduction, the distance to the work is measured by each of the three distance sensors 5G for each hitting point position, the posture of the robot gun mounting part is changed so that the three sensor data match, and the plane deviation is obtained. Misalignment,
Correct the offline teaching data. FIG. 31 shows
The control for correction is shown in a flowchart. In step 601, the offline teaching data is reproduced by the robot. Then, in step 602, the three sensor data A, B, and C are fed back to the controller. Next, in step 603, it is determined whether or not the difference in the sensor data is less than or equal to a minute value. If it is not less than or equal to the minute value, in step 604, steps A, B, and C are made to match.
Correct the robot posture with 5. When it is determined in step 603 that the respective differences have become equal to or less than the predetermined value m, the process proceeds to step 606, the corrected offline data is converted into final data, and in step 607, it is confirmed whether or not all the hit point positions are completed. , If it can be confirmed, it ends. If not completed for all hit points, step 60
Instead of 1, repeat the above cycle.

【0024】つぎに、作用を説明する。オフラインティ
ーチングデータは、本発明の方法によって、現地にて自
動補正され、最終ティーチングデータに変換される。こ
のデータ補正は、各打点位置に対して行われ、しかも、
制御盤内で自動的に行われる。その結果、補正後のデー
タが高精度になるため、オフラインティーチングデータ
の精度はラフでよい。また、補正が自動化されているの
で、従来のオンラインティーチングに比べて、作業時間
が短縮される。また、自動化によって、人の感性によっ
て左右される部分が無くなり、補正の質の向上、ワーク
品質の向上がはかられる。
Next, the operation will be described. The off-line teaching data is automatically corrected on-site and converted into final teaching data by the method of the present invention. This data correction is performed for each dot position, and
It is done automatically in the control panel. As a result, the corrected data becomes highly accurate, and the accuracy of the offline teaching data may be rough. Further, since the correction is automated, the working time is shortened as compared with the conventional online teaching. Further, the automation eliminates the part that is influenced by the human sensibilities, and the quality of correction and the work quality can be improved.

【0025】[0025]

【発明の効果】本発明の何れの実施例によっても、オフ
ラインティーチングデータを現地にて高精度に補正で
き、しかも補正を自動で行うことができる。
According to any of the embodiments of the present invention, the offline teaching data can be corrected on-site with high accuracy, and the correction can be automatically performed.

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

【図1】本発明を実施する装置の斜視図である。FIG. 1 is a perspective view of an apparatus embodying the present invention.

【図2】本発明を実施するもう一つの例の装置のロボッ
トガンの部分の斜視図である。
FIG. 2 is a perspective view of a portion of a robot gun of another example apparatus embodying the present invention.

【図3】本発明を実施するさらにもう一つの例の装置の
ロボットガンの部分の斜視図である。
FIG. 3 is a perspective view of a portion of a robot gun of yet another example apparatus embodying the present invention.

【図4】本発明の第1実施例の装置のロボットガンおよ
びCCDカメラ装着部分の側面図である。
FIG. 4 is a side view of a robot gun and a CCD camera mounting portion of the device according to the first embodiment of the present invention.

【図5】図4の装置のロボットガンの部分の拡大斜視図
である。
5 is an enlarged perspective view of a portion of a robot gun of the apparatus shown in FIG.

【図6】図4の装置のCCDカメラ取付部の拡大側面図
である。
6 is an enlarged side view of a CCD camera mounting portion of the apparatus of FIG.

【図7】図4の装置のCCDカメラ撮影画面の正面図で
ある。
FIG. 7 is a front view of a CCD camera photographing screen of the apparatus of FIG.

【図8】本発明の第2実施例の装置のCCDカメラ装着
部分の斜視図である。
FIG. 8 is a perspective view of a CCD camera mounting portion of the device according to the second embodiment of the present invention.

【図9】図8の装置のCCDカメラ取付部の拡大側面図
である。
9 is an enlarged side view of a CCD camera mounting portion of the apparatus shown in FIG.

【図10】図8の装置のCCDカメラ撮影画面の正面図
である。
FIG. 10 is a front view of a CCD camera photographing screen of the apparatus of FIG.

【図11】本発明の第3実施例の打点位置検出手段装着
部分の斜視図である。
FIG. 11 is a perspective view of a portion where a hitting point position detecting means is mounted according to a third embodiment of the present invention.

【図12】図11の装置のもう一つの打点位置検出手段
の装着部分の拡大側面図である。
12 is an enlarged side view of a mounting portion of another hitting point position detecting means of the apparatus of FIG.

【図13】本発明の第4実施例の装置のCCDカメラ装
着部分の斜視図である。
FIG. 13 is a perspective view of a CCD camera mounting portion of an apparatus according to a fourth embodiment of the present invention.

【図14】図13の装置のワーク部分の拡大平面図であ
る。
14 is an enlarged plan view of a work portion of the apparatus shown in FIG.

【図15】図13の装置の検出データ図である。FIG. 15 is a detection data diagram of the apparatus of FIG.

【図16】本発明の第5実施例の装置のCCDカメラ装
着部分の斜視図である。
FIG. 16 is a perspective view of a CCD camera mounting portion of the device of the fifth embodiment of the present invention.

【図17】図16の装置のマークの斜視図である。FIG. 17 is a perspective view of marks of the device of FIG.

【図18】図16の装置のもう一つのマークの斜視図で
ある。
FIG. 18 is a perspective view of another mark of the device of FIG.

【図19】図16の装置のCCDカメラ装着部分の側面
図である。
19 is a side view of the CCD camera mounting portion of the apparatus of FIG.

【図20】図16の装置のCCDカメラ装着部分の姿勢
補正後の側面図である。
FIG. 20 is a side view of the apparatus of FIG. 16 after the attitude correction of the CCD camera mounting portion.

【図21】図16の装置のCCDカメラの撮影画面の正
面図である。
21 is a front view of a photographing screen of a CCD camera of the apparatus shown in FIG.

【図22】本発明の第6実施例の装置の距離センサ装着
部分の斜視図である。
FIG. 22 is a perspective view of a distance sensor mounting portion of the device according to the sixth embodiment of the present invention.

【図23】図22の装置の距離センサ装着部の平面図で
ある。
FIG. 23 is a plan view of a distance sensor mounting portion of the device of FIG.

【図24】本発明の自動補正制御のフローチャートであ
る。
FIG. 24 is a flowchart of automatic correction control of the present invention.

【図25】本発明に用いることのできる自動補正制御の
論理の斜視図である。
FIG. 25 is a perspective view of the logic of automatic correction control that can be used in the present invention.

【図26】本発明の第1実施例の補正制御のフローチャ
ートである。
FIG. 26 is a flowchart of correction control according to the first embodiment of the present invention.

【図27】本発明の第2実施例の補正制御のフローチャ
ートである。
FIG. 27 is a flowchart of correction control according to the second embodiment of the present invention.

【図28】本発明の第3実施例の補正制御のフローチャ
ートである。
FIG. 28 is a flowchart of correction control according to the third embodiment of the present invention.

【図29】本発明の第4実施例の補正制御のフローチャ
ートである。
FIG. 29 is a flowchart of correction control according to the fourth embodiment of the present invention.

【図30】本発明の第5実施例の補正制御のフローチャ
ートである。
FIG. 30 is a flowchart of correction control according to the fifth embodiment of the present invention.

【図31】本発明の第6実施例の補正制御のフローチャ
ートである。
FIG. 31 is a flowchart of correction control according to the sixth embodiment of the present invention.

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

1 ワーク 2 ロボット 3 操作ガン 4 ロボット制御盤 5A、5B、5G CCDカメラ 5C サーボモータ 5D エンコーダ 5E 圧力センサ 5F,5H 距離センサ 7 ロボットガン 8 マーク 10 画面中心 1 Work 2 Robot 3 Operation Gun 4 Robot Control Panel 5A, 5B, 5G CCD Camera 5C Servo Motor 5D Encoder 5E Pressure Sensor 5F, 5H Distance Sensor 7 Robot Gun 8 Mark 10 Screen Center

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05B 19/42 G05B 19/42 P Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location G05B 19/42 G05B 19/42 P

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ロボットの一対のロボットガン装着部位
の少なくとも一方にCCDカメラを装着するとともに、
ワークの打点位置の各々にマークを設け、 ロボットにてオフラインティーチングデータをワークに
対して再現し、再現時に、各打点位置について、CCD
カメラが認識した前記マークの像が前記CCDカメラの
画面の中心にくるように前記少なくとも一方のロボット
ガン装着部位をロボットのツール座標のxy平面内で平
行移動させ、該移動量分、前記オフラインティーチング
データを補正する、ことを特徴とするオフラインティー
チングデータの自動補正方法。
1. A CCD camera is mounted on at least one of a pair of robot gun mounting parts of a robot,
Marks are provided on each work point position, and the robot uses the robot to reproduce the offline teaching data for the work.
The at least one robot gun mounting portion is translated in the xy plane of the tool coordinate of the robot so that the image of the mark recognized by the camera is located at the center of the screen of the CCD camera, and the offline teaching is performed by the movement amount. An off-line teaching data automatic correction method characterized by correcting data.
【請求項2】 ロボットの一対のロボットガン装着部位
の両方にCCDカメラを装着するとともに、ワークの打
点位置の各々の表裏に互いに同サイズのマークを設け、 ロボットにてオフラインティーチングデータをワークに
対して再現し、再現時に、各打点位置について、両方の
CCDカメラがとらえたそれぞれの前記マークの像の径
が互いに同径となるように前記両方のロボットガン装着
部位を同時にロボットのツール座標のz方向に同量移動
させ、該移動量分だけ前記オフラインティーチングデー
タを補正する、ことを特徴とするオフラインティーチン
グデータの自動補正方法。
2. A CCD camera is attached to both of a pair of robot gun attachment parts of the robot, and marks of the same size are provided on the front and back of each point of the work point, and offline teaching data is provided to the work piece by the robot. At the time of reproduction, both of the robot gun mounting parts at the same time are z-shaped as the tool coordinate of the robot so that the diameters of the images of the marks captured by both CCD cameras are the same at each dot position. A method for automatically correcting offline teaching data, which comprises moving the same amount in the same direction and correcting the offline teaching data by the amount of the movement.
【請求項3】 ロボットツール座標でz方向の、ロボッ
トガン電極のロボットに対する駆動をサーボモータで行
うようにしたロボットを用いてのオフラインティーチン
グデータの自動補正方法であって、 ロボットにてオフラインティーチングデータをワークに
対して再現し、再現時に、各打点位置について、一方の
ロボットガン電極をワークに接近する方向に駆動し、前
記電極がワークに当たったことを検知してその時迄の電
極移動量からワークのロボットツール座標でのz方向位
置を求め、該ワーク位置より前記一方のロボットガン電
極の前記z方向のオフラインティーチングデータを補正
する、ことを特徴とするオフラインティーチングデータ
の自動補正方法。
3. A method for automatically correcting offline teaching data using a robot in which a robot gun electrode is driven by a servo motor in the z direction in robot tool coordinates, the offline teaching data being used by the robot. Is reproduced for the work, and at the time of reproduction, one of the robot gun electrodes is driven in the direction of approaching the work for each hitting point position, and it is detected that the electrode hits the work and the amount of electrode movement up to that time is detected. A method for automatically correcting offline teaching data, comprising: determining a z-direction position of a work in robot tool coordinates, and correcting the z-direction off-line teaching data of the one robot gun electrode from the work position.
【請求項4】 ロボットの一対のロボットガン装着部位
の少なくとも一方に距離センサを装着し、 ロボットにてオフラインティーチングデータをワークに
対して再現し、再現時に、各打点位置について、該打点
位置が位置するワークのフランジの長手方向と直交方向
にロボットを駆動して前記距離センサを移動させ、前記
距離センサのフランジとの距離データが急変する位置を
ワークの縁と認識してオフラインティーチングデータの
打点位置とワーク縁との距離を求め、該距離が所定距離
となるように前記オフラインティーチングデータの打点
位置をフランジ面内で補正する、ことを特徴とするオフ
ラインティーチングデータの自動補正方法。
4. A distance sensor is mounted on at least one of a pair of robot gun mounting parts of the robot, and the robot reproduces the offline teaching data for the workpiece. The robot is driven in a direction orthogonal to the longitudinal direction of the flange of the workpiece to move the distance sensor, and the position where the distance data with the flange of the distance sensor changes abruptly is recognized as the edge of the workpiece, and the position of the hitting point of the offline teaching data is recognized. And an edge of the workpiece are calculated, and the hitting position of the offline teaching data is corrected within the flange surface so that the distance becomes a predetermined distance.
【請求項5】 ロボットの一対のロボットガン装着部位
の少なくとも一方にCCDカメラを装着するとともに、
ワークの打点位置の各々に円筒状のマークを設け、 ロボットにてオフラインティーチングデータをワークに
対して再現し、再現時に、各打点位置について、CCD
カメラが認識した前記マークの像が真円になるように前
記少なくとも一方のロボットガン装着部位を姿勢変更し
て面直ズレを求め、該面直ズレ分、前記オフラインティ
ーチングデータを補正する、ことを特徴とするオフライ
ンティーチングデータの自動補正方法。
5. A CCD camera is mounted on at least one of a pair of robot gun mounting parts of the robot,
Cylindrical marks are provided at each work point position and the robot reproduces the offline teaching data for the work.
Changing the posture of at least one of the robot gun mounting parts so that the image of the mark recognized by the camera becomes a perfect circle, and obtaining a plane deviation, and correcting the offline teaching data by the plane deviation. A feature of automatic correction method for offline teaching data.
【請求項6】 ロボットの一対のロボットガン装着部の
少なくとも一方のまわりに距離センサを3個配設し、 ロボットにてオフラインティーチングデータをワークに
対して再現し、再現時に、各打点位置について、前記3
個の距離センサによりそれぞれワークとの距離を測定
し、3個のセンサデータが一致するように前記少なくと
も一方のロボットガン装着部の姿勢を変えて面直ズレを
求め、該面直ズレ分、前記オフラインティーチングデー
タを補正する、ことを特徴とするオフラインティーチン
グデータの自動補正方法。
6. A distance sensor is provided around at least one of a pair of robot gun mounting parts of a robot, and offline teaching data is reproduced for a work by the robot. 3 above
The distance to the work is measured by each of the distance sensors, the posture of the at least one robot gun mounting portion is changed so as to match the data of the three sensors, and the plane deviation is obtained. An automatic correction method for offline teaching data, characterized by correcting the offline teaching data.
JP11780394A 1994-05-31 1994-05-31 Automatic correction method for offline teaching data Expired - Fee Related JP3191563B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11780394A JP3191563B2 (en) 1994-05-31 1994-05-31 Automatic correction method for offline teaching data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11780394A JP3191563B2 (en) 1994-05-31 1994-05-31 Automatic correction method for offline teaching data

Publications (2)

Publication Number Publication Date
JPH07325611A true JPH07325611A (en) 1995-12-12
JP3191563B2 JP3191563B2 (en) 2001-07-23

Family

ID=14720669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11780394A Expired - Fee Related JP3191563B2 (en) 1994-05-31 1994-05-31 Automatic correction method for offline teaching data

Country Status (1)

Country Link
JP (1) JP3191563B2 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6256552B1 (en) 1997-09-10 2001-07-03 Honda Giken Kabushiki Kaisha Method for setting tool-based working condition in off-line teaching
US6332101B1 (en) 1997-07-16 2001-12-18 Honda Giken Kogya Kabushiki Kaisha Off-line teaching method for correcting robot model by revising teaching data on basis of difference between actual and target position
EP1710649A2 (en) * 2005-04-07 2006-10-11 Seiko Epson Corporation Motion control apparatus for teaching robot position, robot-position teaching apparatus, motion control method for teaching robot postion, robot-position teaching method, and motion control program for teaching robot-position
JP2008132525A (en) * 2006-11-29 2008-06-12 Nachi Fujikoshi Corp Teaching-position correcting system of welding-robot and teaching-position correcting method of welding-robot
JP2009125839A (en) * 2007-11-21 2009-06-11 Nachi Fujikoshi Corp Weld teaching position correction system
CN102152033A (en) * 2011-02-14 2011-08-17 苏州工业园区华焊科技有限公司 Image centralizing location method for automatic tube plate welding
JP2013202692A (en) * 2012-03-29 2013-10-07 Fanuc Robotics America Corp Normalization of posture of robot welding gun
WO2016136816A1 (en) * 2015-02-25 2016-09-01 本田技研工業株式会社 Spot position correcting method and apparatus
JP2018126857A (en) * 2017-02-09 2018-08-16 キヤノン株式会社 Control method of robot, teaching method of the robot, robot system, program, and recording medium
US10173325B2 (en) 2015-03-30 2019-01-08 Seiko Epson Corporation Robot, robot control apparatus and robot system
JP2019209422A (en) * 2018-06-04 2019-12-12 株式会社キーレックス Method for producing teaching data for multi-joint robot
WO2019235023A1 (en) * 2018-06-04 2019-12-12 株式会社キーレックス Teaching data creating method for articulated robot, and coordinate system detector for teaching data calibration
JP2019214088A (en) * 2018-06-12 2019-12-19 株式会社キーレックス Detection tool of coordinate system for teaching data proof reading
WO2021070922A1 (en) * 2019-10-09 2021-04-15 川崎重工業株式会社 Correction system, correction method, robot system, and control device
KR20210060710A (en) * 2019-11-18 2021-05-27 한국생산기술연구원 Precision machining device and its operation method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4583361B2 (en) * 2006-12-14 2010-11-17 本田技研工業株式会社 POSITION CORRECTION DEVICE, POSITION CORRECTION METHOD, AND PROGRAM

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6332101B1 (en) 1997-07-16 2001-12-18 Honda Giken Kogya Kabushiki Kaisha Off-line teaching method for correcting robot model by revising teaching data on basis of difference between actual and target position
US6256552B1 (en) 1997-09-10 2001-07-03 Honda Giken Kabushiki Kaisha Method for setting tool-based working condition in off-line teaching
EP1710649A2 (en) * 2005-04-07 2006-10-11 Seiko Epson Corporation Motion control apparatus for teaching robot position, robot-position teaching apparatus, motion control method for teaching robot postion, robot-position teaching method, and motion control program for teaching robot-position
EP1710649A3 (en) * 2005-04-07 2007-08-08 Seiko Epson Corporation Motion control apparatus for teaching robot position, robot-position teaching apparatus, motion control method for teaching robot postion, robot-position teaching method, and motion control program for teaching robot-position
JP2008132525A (en) * 2006-11-29 2008-06-12 Nachi Fujikoshi Corp Teaching-position correcting system of welding-robot and teaching-position correcting method of welding-robot
JP2009125839A (en) * 2007-11-21 2009-06-11 Nachi Fujikoshi Corp Weld teaching position correction system
CN102152033A (en) * 2011-02-14 2011-08-17 苏州工业园区华焊科技有限公司 Image centralizing location method for automatic tube plate welding
JP2013202692A (en) * 2012-03-29 2013-10-07 Fanuc Robotics America Corp Normalization of posture of robot welding gun
CN107249805A (en) * 2015-02-25 2017-10-13 本田技研工业株式会社 Get position correcting method and device ready
JPWO2016136816A1 (en) * 2015-02-25 2017-07-27 本田技研工業株式会社 Dot position correction method and apparatus
WO2016136816A1 (en) * 2015-02-25 2016-09-01 本田技研工業株式会社 Spot position correcting method and apparatus
GB2550793A (en) * 2015-02-25 2017-11-29 Honda Motor Co Ltd Spot position correcting method and apparatus
CN107249805B (en) * 2015-02-25 2019-07-26 本田技研工业株式会社 Get position correcting method and device ready
US10173325B2 (en) 2015-03-30 2019-01-08 Seiko Epson Corporation Robot, robot control apparatus and robot system
JP2018126857A (en) * 2017-02-09 2018-08-16 キヤノン株式会社 Control method of robot, teaching method of the robot, robot system, program, and recording medium
JP2019209422A (en) * 2018-06-04 2019-12-12 株式会社キーレックス Method for producing teaching data for multi-joint robot
WO2019235023A1 (en) * 2018-06-04 2019-12-12 株式会社キーレックス Teaching data creating method for articulated robot, and coordinate system detector for teaching data calibration
CN112166011A (en) * 2018-06-04 2021-01-01 希利股份有限公司 Teaching data creation method for articulated robot and coordinate system detector for teaching data correction
CN112166011B (en) * 2018-06-04 2023-11-24 希利股份有限公司 Teaching data creation method for multi-joint robot and coordinate system detector for teaching data correction
JP2019214088A (en) * 2018-06-12 2019-12-19 株式会社キーレックス Detection tool of coordinate system for teaching data proof reading
WO2021070922A1 (en) * 2019-10-09 2021-04-15 川崎重工業株式会社 Correction system, correction method, robot system, and control device
JP2021058988A (en) * 2019-10-09 2021-04-15 川崎重工業株式会社 Correction system, correction method, robot system and control device
KR20210060710A (en) * 2019-11-18 2021-05-27 한국생산기술연구원 Precision machining device and its operation method

Also Published As

Publication number Publication date
JP3191563B2 (en) 2001-07-23

Similar Documents

Publication Publication Date Title
JP3191563B2 (en) Automatic correction method for offline teaching data
JP7153085B2 (en) ROBOT CALIBRATION SYSTEM AND ROBOT CALIBRATION METHOD
US8706300B2 (en) Method of controlling a robotic tool
KR100621100B1 (en) method and system for teaching welding robot
CN111905983B (en) Vision following-based dispensing track correction method, device, system and medium
JPH08505091A (en) System and method for tracking features on an object using redundant axes
KR20080088165A (en) Robot calibration method
JP2007122705A (en) Welding teaching point correction system and calibration method
JPH0976065A (en) Welding robot
JP7281910B2 (en) robot control system
JPH07266272A (en) Follow-up method and device for manipulator
CN110154043A (en) The robot system and its control method of study control are carried out based on processing result
JP2773917B2 (en) Work positioning device for bending equipment
CN113195142B (en) Automatic welding system, method for manufacturing elevator car chamber member, and automatic welding method
JP2654206B2 (en) Touch-up method
JP3319086B2 (en) Spot welding method and spot welding device
JP2002144034A (en) Device for checking reference position in working tool with robot
KR100214675B1 (en) Calibration apparatus and the method of calibratoriginal position and orientation for industrial robot
JPS6111815A (en) Compensating system of positional shift of robot
JPH07205014A (en) Grinding robot
JPH05329786A (en) Industrial robot device
CN116571852B (en) Automatic welding method and system for robot stud
JP3359012B2 (en) Spot welding robot
CN113770577B (en) Method for realizing generation of track of workpiece mounted on robot
JPH06206186A (en) Calibration of handling precision of horizontal articulated type robot equipped with visual sensor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees