Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0767036B2 - Electronic component mounting position correction method - Google Patents
[go: Go Back, main page]

JPH0767036B2 - Electronic component mounting position correction method - Google Patents

Electronic component mounting position correction method

Info

Publication number
JPH0767036B2
JPH0767036B2 JP63298984A JP29898488A JPH0767036B2 JP H0767036 B2 JPH0767036 B2 JP H0767036B2 JP 63298984 A JP63298984 A JP 63298984A JP 29898488 A JP29898488 A JP 29898488A JP H0767036 B2 JPH0767036 B2 JP H0767036B2
Authority
JP
Japan
Prior art keywords
lead
electronic component
image
search
center
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.)
Expired - Fee Related
Application number
JP63298984A
Other languages
Japanese (ja)
Other versions
JPH02143599A (en
Inventor
和隆 池田
尚人 谷脇
正治 杭ノ瀬
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP63298984A priority Critical patent/JPH0767036B2/en
Publication of JPH02143599A publication Critical patent/JPH02143599A/en
Publication of JPH0767036B2 publication Critical patent/JPH0767036B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Automatic Assembly (AREA)
  • Supply And Installment Of Electrical Components (AREA)

Description

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

【産業上の利用分野】[Industrial applications]

本発明は、主として、QFP(quad flat package)、PLCC
(plastic leaded chip−carrier)、SOP(small outli
ne pockage)、SOJ(small−outline J−leaded packag
e)のような面実装を行う複数本のリードを有した電子
部品を基板に実装する際に、基板の部品実装位置に対し
て電子部品を正確に位置決めできるようにする電子部品
の装着位置補正方法に関するものである。
The present invention is mainly applied to QFP (quad flat package), PLCC.
(Plastic leaded chip-carrier), SOP (small outli
ne pockage), SOJ (small-outline J-leaded packag
When mounting an electronic component that has multiple leads for surface mounting such as in e) on the substrate, the electronic component mounting position correction that enables the electronic component to be accurately positioned with respect to the component mounting position on the substrate It is about the method.

【従来の技術】[Prior art]

一般に、電子部品を基板に自動的に装着する際には、電
子部品を供給するフィーダから吸着装置によって電子部
品を吸着して取り出し、その電子部品を基板に設定され
た部品実装位置まで運んで装着する。電子部品としてリ
ードの本数が非常に多い面実装用のチップ部品を用いる
ような場合には、隣接するリード間のピッチが小さく、
わずかに位置がずれても誤配線につながる。 そこで、誤配線が生じないように、吸着装置で搬送中の
電子部品の位置と向きとを検出し、検出された位置およ
び向きに応じて搬送中の電子部品の位置と向きとのずれ
を補正して部品実装位置に合致させることが考えられて
いる。 このような電子部品の装着位置の補正方法としては、特
開昭63−88896号公報に示されるように、電子部品のリ
ードの画像から電子部品の向きを判定することが提案さ
れている。
Generally, when electronic components are automatically mounted on a board, the electronic components are sucked out by a suction device from a feeder that supplies the electronic components, and the electronic components are carried to the component mounting position set on the substrate and mounted. To do. When using a chip component for surface mounting with a large number of leads as an electronic component, the pitch between adjacent leads is small,
Even a slight misalignment leads to incorrect wiring. Therefore, to prevent miswiring, the position and orientation of the electronic component being conveyed is detected by the suction device, and the deviation between the position and orientation of the electronic component being conveyed is corrected according to the detected position and orientation. Then, it is considered to match the component mounting position. As a method of correcting the mounting position of such an electronic component, as disclosed in Japanese Patent Laid-Open No. 63-88896, it has been proposed to determine the orientation of the electronic component from the image of the lead of the electronic component.

【発明が解決しようとする課題】[Problems to be Solved by the Invention]

上記方法は、電子部品の複数本のリードのうちの2本の
みを検出して位置補正の演算のもとにするものであり、
リードの位置にばらつきがあると、電子部品の実装位置
を十分に高い精度で位置決めできないという問題が生じ
る。また、2本のリードしか検出していないから、リー
ドに折れや曲がりといった不良があっても検出できな
い。 本発明は上記問題点の解決を目的とするものであり、す
べてのリードの先端縁の中心座標を平均化して電子部品
の位置ずれの程度を正確に求めるようにし、かつ、すべ
てのリードの先端縁の中心座標を求めることにより、リ
ードの不良が容易に発見できるようにした電子部品の装
着位置補正方法を提供しようとするものである。
The above method detects only two of the plurality of leads of the electronic component and uses them as the basis for the position correction calculation.
If the positions of the leads vary, the mounting position of the electronic component cannot be positioned with sufficiently high accuracy. Further, since only two leads are detected, it is not possible to detect even if the lead has a defect such as a bend or a bend. The present invention is intended to solve the above-mentioned problems, and the center coordinates of the tip edges of all the leads are averaged so as to accurately obtain the degree of positional deviation of electronic components, and the tips of all the leads. An object of the present invention is to provide a method for correcting the mounting position of an electronic component, which makes it possible to easily find a lead defect by obtaining the center coordinates of the edge.

【課題を解決するための手段】[Means for Solving the Problems]

本発明では、上記目的を達成するために、リードが含ま
れている画像上で略一直線上に並ぶ各リードの先端縁の
中心座標を求め、次に各リードの先端縁の中心座標に対
して最小二乗法を適用してリードの先端縁の中心を通る
直線の傾きをパッケージの各辺についてそれぞれ求める
とともに、各リードの先端縁の中心座標に基づいて電子
部品の中心位置を求め、上記各直線に基づいて画像上の
基準方向に対する電子部品の傾きを求め、画像上の基準
点に対する電子部品の中心位置の誤差および上記傾きを
補正値とするようにしているのである。 また、画像上の基準方向に対する電子部品の傾きは、隣
合う各一対のリードの先端縁の中心を結ぶ各直線が画像
の基準方向に対してなす角度の分布に基づいて求めても
よい。
In the present invention, in order to achieve the above object, the center coordinates of the tip edge of each lead arranged in a substantially straight line on the image including the lead is obtained, and then with respect to the center coordinate of the tip edge of each lead. Apply the least-squares method to find the slope of a straight line passing through the center of the lead edge for each side of the package, and find the center position of the electronic component based on the center coordinates of the lead edge of each lead. The inclination of the electronic component with respect to the reference direction on the image is obtained based on the above, and the error in the center position of the electronic component with respect to the reference point on the image and the inclination are used as correction values. Further, the inclination of the electronic component with respect to the reference direction on the image may be obtained based on the distribution of the angles formed by the straight lines connecting the centers of the tip edges of the adjacent pairs of leads with respect to the reference direction of the image.

【作用】[Action]

上記方法によれば、いずれの方法においても、すべての
リードの先端縁の中心座標のばらつきを平均化して求め
た値を補正値としているから、補正値の誤差が非常に小
さくなり、電子部品の部品実装位置への位置決めを高い
精度で行うことができる。また、すべてのリードについ
て先端縁の中心座標を求めているから、中心座標のばら
つきの程度によりリードの折れや曲がりといった不良を
容易に発見することができる。
According to the above method, in any method, since the correction value is a value obtained by averaging the variations in the center coordinates of the tip edges of all the leads, the error of the correction value becomes very small, Positioning to the component mounting position can be performed with high accuracy. Further, since the center coordinates of the leading edge are obtained for all the leads, it is possible to easily find defects such as bending and bending of the leads depending on the degree of variation in the center coordinates.

【実施例】【Example】

第11図に示すように、電子部品1はパッケージ6の周縁
に複数本のリード2が突設された形状を有しており、吸
着装置3によって吸着されて第11図の位置でフィーダ
やトレー等から取り出され、第11図の位置まで搬送さ
れて基板4の部品実装位置に装着される。また、吸着装
置3による搬送過程の位置において、テレビジョンカ
メラ等の画像入力装置5によって電子部品1が撮像さ
れ、リード2の画像に基づいて電子部品1の位置と向き
とが判定されるとともに、その位置および向きに応じて
部品実装位置に合致するように電子部品1の位置および
向きが補正される。 リード2の画像に基づく電子部品1の位置および向きの
検出方法について以下に説明する。 画像入力装置5で得られた画像は、電子部品1への照明
を工夫したり画像処理を施したりして、リード2の輪郭
線と背景とが明確に識別できるように処理される。こう
して、第3図に示すような複数本のリード21〜2nの並ん
だ画像が得られるから、リード21〜2nの突出方向に交差
するように設定されている基準方向に複数本の探索ライ
ンla〜leを設定し、この基準方向に直交するように仮想
的に設定した探索開始線SLと探索ラインla〜leとの交点
を探索開始点p1〜p5として探索ラインla〜le上を探索す
る。すなわち、画像のX方向を基準方向とすれば、Y方
向に等間隔で離間した複数本の探索ラインla〜leを設定
し、これらの探索ラインla〜leの左端付近に同じX座標
を有した探索開始点p1〜p5を設定できるのである。ここ
に、Y方向における各探索ラインla〜leの間隔は、リー
ド21〜2nの突出長よりも小さく設定される。以上のよう
にして、各探索ラインla〜le上を左端から探索すると、
リード21〜2nのエッジとの交点が検出されるから、探索
開始点p1〜p5から交点までの距離が最短であるリード21
を左端のリード21とみなす。 次に、左端のリード21から始めて、各リード21〜2nの先
端位置を順次求める。各リード21〜2nの先端位置は、そ
れぞれ以下のようにして求める。まず、左端のリード21
については、上記探索ラインla〜le上の探索によって左
端のリード21と交差する探索ラインliが判明しているか
ら、この探索ラインliとリード21との交点の座標に基づ
いて探索開始点を設定し、X方向に走る探索ラインl1
設定する。また、この探索開始点からY方向に所定間隔
Dyだけ離れ、上記探索開始点と同じX座標を有する探索
開始点を設定し、X方向に走る探索ラインl2を設定す
る。ここに、両探索ラインl1,l2のY方向の間隔Dyは、
リード21の突出長よりも十分に小さく設定される。さら
に、両探索開始点はリード21よりも左に位置するように
決定される。すなわち、吸着装置3により取り出された
電子部品1の傾きは±30゜の範囲であり、また、リード
2の突出方向における位置ずれの範囲も判明しているか
ら、これらの条件に基づいて、探索ラインl1,l2の探索
開始点を設定するときに、両探索ラインl1,l2がともに
リード21と交差し、かつ、探索開始点のX座標がともに
リード21の左側に位置するように探索開始点を設定する
のである。 以上のようにして設定された探索ラインl1,l2上を各探
索開始点から始めて探索すると、各探索開始点とリード
21の交点との距離がそれぞれ求められる。次に、両距離
の差をD1とし、探索ラインl2の探索開始点に対してX方
向にD1、Y方向にDyだけ離れた点を次の探索開始点とし
てX方向に走る探索ラインl3を設定する。こうして、探
索ラインl3上でリード21との交点を求めて、探索ライン
l3について探索開始点から交点までの距離を求める。こ
こで、探索ラインl2,l3における探索開始点と交点との
距離の差をD2とし、探索ラインl3の探索開始点からX方
向にD2、Y方向にDyだけ離れた点を次の探索開始点とす
る。以上の手順を繰り返して探索ラインl1〜lnを順次設
定する。探索開始点のX座標を上述のようにして順次ず
らしているのは、第4図(b)のように、探索開始点SL
に対してリード21が傾いている場合に探索開始点のX座
標をずらしていかないと、探索開始点がリード21に重な
り、探索開始後にリード21との交点が求まらなくなるこ
とがあるからである。以上の操作を順次繰り返すと、や
がて探索ラインlnがリード21の先端を越える位置に設定
されることになる。探索ラインl1〜lnの長さは、リード
21の幅に基づいて所定値に設定されているから、この長
さの範囲の中でリード21と交差しなければ、リード21
先端を越えたことがわかる。 リード21と交差しない探索ラインlnが得られると、第5
図に示すように、探索ラインlnの探索開始点のY座標の
一つ前の探索ラインln-1の探索開始点のY座標との中央
の値をY座標とし、探索ラインlnの探索開始点と同じX
座標を有する探索開始点を持つ探索ラインlbを設定す
る。この探索ラインlbがリード21と交差すれば、さらに
探索ラインlnとの中央に次の探索ラインlbbを設定し、
リード21と交差しなければ、探索ラインln-1との中央に
次の探索ラインlbbを設定する。このように、新たに引
いた探索ラインと一つ前の探索ラインとの中間に次々に
探索ラインを設定し、画像の分解能の限界までこれを続
けるようにする。ここに、各探索ラインlb,lbb,…lt
探索開始点のX座標はすべて探索ラインlnの探索開始点
のX座標と同じにする。このような手順で最終的に得ら
れる探索ラインltは、リード21の先端を通るものとみな
せる。以下の説明では、この手法を2分探査と呼称す
る。2分探査によれば、リード21の先端を検出する時間
はほぼ一定であり、かつ高速に検出できるのである。 ところで、上述した探索ラインl1〜lnのうちリード21
交差する複数本の探索ラインli,ljについて、第6図に
示すように、リード21の幅方向の両端との交点の中点
Ci,Cjを求める。これらの中点Ci,Cjを通る直線と、リー
ド21の先端を通る探索ラインltとの交点Cは、リード21
の先端縁の中点とみなせる程度に、リード21の先端縁の
中点に近接している。そこで、この交点Cをリード21
先端縁の中点と規定し、交点Cの座標(X1,Y1)を求め
る。以上の手順で、左端のリード21に関して、先端縁の
中点の座標が決定されるのである。 左端のリード21について先端縁の中点の座標が求められ
ると、今度は、左から2番目のリード22の先端縁の中点
が求められる。2番目のリード22に対する最初の探索ラ
インl11は、第7図に示すように、左端のリード21と2
番目のリード22との両方に交点s1,s2を有するように設
定される。すなわち、リード2の傾きは上述したように
所定の範囲内であることが経験的にわかっており、ま
た、リード2間のピッチは0.5〜1.27mmであることがわ
かっているから、これらの条件に基づいて、探索ライン
l11の探索開始点と長さとが設定されるのである。探索
ラインl11上では、交点s1,s2の座標と、探索ラインl11
上でのリード21,22の幅が求められる。こうして求めた
交点s2を基準とし、左端のリード21の場合と同様の手法
を用いてY方向に所定間隔Dyで複数本の探索ラインを設
定して探索を行い、その後、2分探査を行って2番目の
リード22の先端縁の中点の座標(X2,Y2)を求める。 以上のようにして求めた両リード21,22の先端縁の中点
のY座標Y1,Y2の差Daに等しい距離だけ探索ラインl11
ら離間した探索ラインl31を設定し、この探索ラインl31
と3番目のリード23との交点s3を求める。この探索ライ
ンl31のX座標は探索開始点は、リード2の傾き、リー
ド2間のピッチ、探索ラインl11上で求めたリード22
幅に基づいて、リード23に重ならない位置に設定され
る。この交点s3を基準とし、左端のリード21と同様の手
法を用いて3番目のリード23の先端縁の中点の座標
(X3,Y3)を求める。以後の処理において、リード2の
幅は3番目のリード23に対して設定した探索ラインl31
の探索開始点を求めたときと同じ値が用いられる。今度
は2番目のリード22の先端縁の中点と、3番目のリード
23の先端縁の中点とのY座標の差Dbに等しい距離だけ探
索ラインl31からY方向に離間した探索ラインl41を設定
し、この探索ラインl41と4番目のリード24との交点を
求める。以下同様にして、画像内のすべてのリード21
2nの先端縁の中点の座標(Xi,Yi)を求める。また、電
子部品1の種類によりパッケージ6の2辺のみにリード
2があれば2辺について、パッケージ6の4辺にリード
2があれば4辺について同様の処理を行う。ここまでの
処理を第2図に示している。 以上のようにして、各リード2iの先端縁の中点の座標
(Xi,Yi)を求めるときに、左端のリード21の先端縁の
中心と2番目のリード22の先端縁の中心とのY座標の差
Y1〜Y2(=Da)に比較して、他の隣合うリード2i-1,2i
のY座標の差Yi-1〜Yiが規定値以上に大きくなれば、現
在搬送中の電子部品1のリード2に折れや曲がりが発生
していると判断できるから、その電子部品1を不良品で
あると判定して処理を行い、以後の演算を行わないよう
にする。 不良品と判定されない場合には、以後の演算を行う。ま
ず、パッケージ6の各辺に並ぶリード2について先端縁
の中点の座標に対して最小二乗法を適用し、リード2の
先端縁の傾きを代表する一次関数を求める。また、得ら
れた各直線のX軸およびY軸に対する角度をそれぞれ求
める。 以上のようにして、各辺についてリード2の先端縁の傾
きを代表する一次関数を求めると、リード2の突出量の
ばらつきが平均化されることになる。次に、第8図に示
すように、パッケージ6の互いに隣合う一対の辺におけ
る一次関数同士の交点A(Xa,Ya)〜D(Xd,Yd)と、各
一次関数のX軸およびY軸に対する傾きθa〜θdを求
める。さらに、点A,Cを結ぶ直線と点B,Dを結ぶ直線との
交点O′(X0′,Y0′)を求め、画面上で規定されてい
る部品実装位置の中心O(X0,Y0)との差(ΔX=X0〜X
0′,ΔY=Y0〜Y0′)を求めれば、電子部品1の中心
と部品実相位置の中心位置との間の位置ずれに関する補
正値を得ることができる。また、角度θa〜θdの平均
値Δθ=(θa+θb+θc+θd)/4を電子部品1の
回転ずれに対する補正値とすることができるのである。 パッケージ6の2辺にしかリード2がない場合には、各
リード2の先端縁の中心座標の重心を求めることにより
電子部品1の中心O′を求めることができる。また、傾
きについては、各辺について上述した方法で一次関数を
求め、画面の基準軸に対する両一次関数の傾斜角度の平
均値を求めればよいのである。 上記実施例では、リード2の先端縁の中心の座標に最小
二乗法を適用して電子部品1の傾きを求めたが、第9図
に示すように、隣接する各一対のリード21〜2nについ
て、先端縁の中点を結ぶ直線のX軸もしくはY軸に対す
る角度θ1223,…θ(n-1)nを求めることにより、電子
部品1の回転ずれの補正値を演算するようにしてもよ
い。この場合、角度を所定の単位でとれば(たとえば、
0.5゜単位とする)、第10図に示すように、角度の分布
は正規分布に近くなるから、この分布の標準偏差に基づ
いて、分布のピーク値を求めれば、電子部品1の回転ず
れの補正値Δθが得られる。ここに、補正値Δθに対し
て規定された範囲を逸脱する角度のリード2が存在して
いる場合には、その電子部品1を不良品と判定して処理
を行い、以後の演算は行わないようにする。電子部品1
の中心位置の位置ずれに対する補正値(ΔX,ΔY)は、
上記実施例と同じようにして求めればよい。このよう
に、角度分布により回転ずれの補正値を求める場合に
は、リード2の突出量のばらつきによる電子部品1の不
良判定の後に、もう一度、不良判定が行えるので、不良
品を確実に抽出することができるのである。以上の手順
は第1図に示されている。 上記各実施例では、すべてのリード2について先端縁の
中心の座標を求めているが、リード2間のピッチが比較
的大きいような場合で、精度を多少落としてもよい場合
には、1本おきないし2本おきにリード2の先端縁の中
心座標を求めるようにしてもよい。
As shown in FIG. 11, the electronic component 1 has a shape in which a plurality of leads 2 are projectingly provided on the periphery of a package 6, and the electronic device 1 is sucked by a suction device 3 and is fed or trayed at the position shown in FIG. 11 and the like, and is transported to the position shown in FIG. 11 and mounted at the component mounting position on the substrate 4. Further, the electronic component 1 is imaged by the image input device 5 such as a television camera at the position of the conveyance process by the suction device 3, and the position and orientation of the electronic component 1 are determined based on the image of the lead 2, and The position and orientation of the electronic component 1 are corrected so as to match the component mounting position according to the position and orientation. A method of detecting the position and orientation of the electronic component 1 based on the image of the lead 2 will be described below. The image obtained by the image input device 5 is processed so that the outline of the lead 2 and the background can be clearly identified by devising the illumination of the electronic component 1 or by performing image processing. Thus, since the image aligned with the plurality of leads 2 1 to 2 n as shown in Figure 3 is obtained, a plurality of the reference direction is set so as to intersect the projecting direction of the lead 2 1 to 2 n The search lines la to le are set, and the intersections of the search start lines SL and the search lines la to le virtually set to be orthogonal to the reference direction are set as the search start points p 1 to p 5 and the search lines la to Search on le. That is, assuming that the X direction of the image is the reference direction, a plurality of search lines la to le are set at equal intervals in the Y direction, and the same X coordinate is provided near the left ends of these search lines la to le. The search starting points p 1 to p 5 can be set. Here, the interval between each search line la~le in the Y-direction is set smaller than the projection length of the lead 2 1 to 2 n. As described above, when searching each search line la to le from the left end,
Since the intersection with the edges of leads 2 1 to 2 n is detected, the distance from the search start points p 1 to p 5 to the intersection is the shortest lead 2 1
Is regarded as the leftmost lead 2 1 . Then, starting from the left end of the lead 2 1, sequentially obtains the end position of each lead 2 1 to 2 n. End position of each lead 2 1 to 2 n are respectively obtained as follows. First, the leftmost lead 2 1
For, since the search line li intersecting left end of the lead 2 1 by the search on the search line la~le is known, the search starting point based on the coordinates of the intersection of the search line li to the lead 2 1 Is set, and a search line l 1 running in the X direction is set. In addition, from this search start point in the Y direction
The search start point having the same X coordinate as the search start point is set apart from Dy, and the search line l 2 running in the X direction is set. Here, the distance Dy in the Y direction between both search lines l 1 and l 2 is
It is set sufficiently smaller than the projection length of the lead 2 1. Furthermore, both search start point is determined to be located to the left than the lead 2 1. That is, the inclination of the electronic component 1 taken out by the suction device 3 is within a range of ± 30 °, and the range of the positional deviation in the protruding direction of the lead 2 is known. Therefore, the search is performed based on these conditions. When the search start points of the lines l 1 and l 2 are set, both search lines l 1 and l 2 intersect with the lead 2 1 and the X coordinate of the search start point is located on the left side of the lead 2 1. The search start point is set so that When the search is started on each of the search lines l 1 and l 2 set as above from each search start point, each search start point and the lead
The distance to the intersection of 2 1 is obtained. Next, the difference between the two distances is set to D 1 , and a search line running in the X direction with a point separated by D 1 in the X direction and Dy in the Y direction from the search start point of the search line l 2 as the next search start point. Set l 3 . In this way, the search line l 3 is searched for the intersection with the lead 2 1 and the search line
For l 3 , find the distance from the search start point to the intersection. Here, the difference in distance between the search start point and the intersection point on the search lines l 2 and l 3 is D 2, and a point separated from the search start point on the search line l 3 by D 2 in the X direction and Dy in the Y direction. Set as the starting point for the next search. The above procedure is repeated to sequentially set the search lines l 1 to l n . The X coordinate of the search start point is sequentially shifted as described above, as shown in FIG. 4 (b).
Against Unless Ika shifting the X coordinate of the search starting point when the read 2 1 is inclined, overlapping search start point to the lead 2 1, that the intersection of the lead 2 1 after the search start is not Motomara Because there is. When sequentially repeating the above operations, the search line l n will be set to a position beyond the distal end of lead 2 1 soon. The length of the search lines l 1 to l n is the lead
Since 2 based on the first width is set to a predetermined value, unless intersect the lead 2 1 within the scope of this length, it can be seen that beyond the distal end of the lead 2 1. If a search line l n that does not intersect lead 2 1 is obtained,
As shown, the center value of the search line l n search starting point before a Y coordinate of the search line l n-1 Y coordinate of search start point and Y coordinates, the search line l n Same as search start point X
Set a search line l b with a search start point with coordinates. If the search line l b is them crosses the lead 2 1, set the following search line l bb in the center of the further search line l n,
If intersect the lead 2 1, the center of the search line l n-1 sets the next search line l bb. In this way, search lines are set one after another between the newly drawn search line and the previous search line, and this is continued until the resolution of the image reaches the limit. Here, the X coordinate of the search start point of each search line l b , l bb , ..., L t is the same as the X coordinate of the search start point of the search line l n . Such procedure finally obtained search line l t can be regarded as passing the tip of the lead 2 1. In the following description, this method is called a binary search. According to 2 minutes exploration time of detecting the tip of the lead 2 1 is substantially constant, and it can be detected at high speed. Meanwhile, search line l i a plurality of intersecting the lead 2 1 of the search line l 1 to l n described above, the l j, as shown in Figure 6, the intersection of the ends of the leads 2 1 in the width direction Midpoint
Find C i and C j . Intersection C of these midpoints C i, and the straight line passing through the C j, the search line l t through the tip of the lead 2 1, leads 2 1
To the extent that can be regarded as the leading edge of the midpoint, it is close to the midpoint of the lead 2 1 of leading edge. Therefore, by defining the point of intersection C with the middle point of the lead 2 1 of leading edge, obtaining an intersection C of coordinates (X 1, Y 1). In the above procedure, with regard leftmost lead 2 1 is the coordinate of the midpoint of the leading edge is determined. When the coordinates of the midpoint of the leading edge of the leftmost lead 2 1 are obtained, this time, the midpoint of the leading edge of the second lead 2 2 from the left is obtained. The first search line l 11 for the second lead 2 2 is the leftmost lead 2 1 and 2 as shown in FIG.
It is set to have intersection points s 1 and s 2 both with the second lead 2 2 . That is, it is empirically known that the inclination of the leads 2 is within the predetermined range as described above, and it is known that the pitch between the leads 2 is 0.5 to 1.27 mm. Based on the search line
The search start point and length of l 11 are set. On the search line l 11 , the coordinates of the intersections s 1 and s 2 and the search line l 11
The width of the leads 2 1 and 2 2 above is obtained. The basis of the intersection s 2 thus obtained, carries out the search by setting a plurality of search line at predetermined intervals Dy in the Y direction using the same method as the case of the left end of the lead 2 1, then 2 minutes search Go to find the coordinates (X 2 , Y 2 ) of the midpoint of the tip edge of the second lead 2 2 . A search line l 31 separated from the search line l 11 by a distance equal to the difference Da between the Y coordinates Y 1 and Y 2 of the midpoints of the tips of the leads 2 1 and 2 2 obtained as described above is set, This search line l 31
And find the intersection s 3 of the third lead 23. The search start point of the X coordinate of this search line l 31 is a position that does not overlap the lead 2 3 based on the inclination of the leads 2, the pitch between the leads 2 and the width of the lead 2 2 obtained on the search line l 11. Is set. The intersection s 3 as a reference to determine the using the same technique as the left end of the lead 2 1 3 th lead 2 3 tip edge of the midpoint of the coordinates (X 3, Y 3). In the subsequent processing, the width of the lead 2 is the search line l 31 set for the third lead 2 3 .
The same value is used as when the search starting point of was found. This time the middle point of the tip edge of the second lead 2 2 and the third lead
A search line l 41, which is separated from the search line l 31 in the Y direction by a distance equal to the difference Db in Y coordinate from the midpoint of the leading edge of 2 3 , is set, and this search line l 41 and the fourth lead 2 4 are set. Find the intersection of. Do the same for all leads in the image 2 1 ~
Find the coordinates (X i , Y i ) of the midpoint of the leading edge of 2 n . Further, depending on the type of the electronic component 1, if the leads 2 are provided only on the two sides of the package 6, the same processing is performed on the two sides, and if the leads 2 are provided on the four sides of the package 6, the same processing is performed. The processing up to this point is shown in FIG. As described above, the coordinates of the midpoint of the leading edge of each lead 2 i (X i, Y i ) when seeking, the left end of the lead 2 1 tip edge center and the second lead 2 2 leading edge Difference of Y coordinate from the center of
Compared to Y 1 to Y 2 (= Da), other adjacent leads 2 i-1 , 2 i
Of If the difference Y i-1 to Y i of Y coordinate becomes larger than the prescribed value, since it can be determined that broken or bent leads 2 of the electronic component 1 of the currently transport is occurring, the electronic component 1 It is determined that the product is defective, the process is performed, and the subsequent calculation is not performed. If the product is not determined to be defective, the subsequent calculation is performed. First, the least squares method is applied to the coordinates of the midpoint of the leading edge of the leads 2 arranged on each side of the package 6, and a linear function representing the inclination of the leading edge of the lead 2 is obtained. In addition, the angles of the obtained straight lines with respect to the X axis and the Y axis are obtained. As described above, when the linear function representing the inclination of the leading edge of the lead 2 is obtained for each side, the variation in the protrusion amount of the lead 2 is averaged. Next, as shown in FIG. 8, intersections A (Xa, Ya) to D (Xd, Yd) of the linear functions on a pair of adjacent sides of the package 6 and the X-axis and Y-axis of each linear function. The inclinations θa to θd with respect to are obtained. Further, an intersection point O ′ (X 0 ′, Y 0 ′) of a straight line connecting the points A and C and a straight line connecting the points B and D is obtained, and the center O (X 0 0 of the component mounting position defined on the screen is obtained. , Y 0 ) (ΔX = X 0 ~ X
0 by obtaining a ', ΔY = Y 0 ~Y 0 '), it is possible to obtain a correction value related to the position deviation between the center position of the center and part reality position of the electronic component 1. Further, the average value Δθ = (θa + θb + θc + θd) / 4 of the angles θa to θd can be used as the correction value for the rotational deviation of the electronic component 1. When the leads 2 are provided only on two sides of the package 6, the center O ′ of the electronic component 1 can be obtained by obtaining the center of gravity of the center coordinates of the tip edges of the leads 2. Regarding the inclination, a linear function may be obtained for each side by the method described above, and the average value of the inclination angles of both linear functions with respect to the reference axis of the screen may be obtained. In the above embodiment, to determine the inclination of the electronic component 1 by applying the least squares method to the coordinates of the center of the lead 2 leading edge, as shown in FIG. 9, each adjacent pair of leads 2 1 to 2 For n , the correction value of the rotation deviation of the electronic component 1 is calculated by obtaining the angles θ 12 , θ 23 , ... θ (n-1) n with respect to the X axis or the Y axis of the straight line connecting the midpoints of the leading edges. You may do it. In this case, if you take the angle in a predetermined unit (for example,
As shown in FIG. 10, the angle distribution is close to the normal distribution. Therefore, if the peak value of the distribution is obtained based on the standard deviation of this distribution, the rotation deviation of the electronic component 1 A correction value Δθ is obtained. If there is a lead 2 whose angle deviates from the specified range with respect to the correction value Δθ, the electronic component 1 is determined to be defective and the process is performed, and the subsequent calculation is not performed. To do so. Electronic component 1
The correction values (ΔX, ΔY) for the displacement of the center position of are
It may be obtained in the same manner as in the above embodiment. As described above, when the correction value of the rotation deviation is obtained from the angle distribution, the defect determination can be performed again after the defect determination of the electronic component 1 due to the variation in the protrusion amount of the lead 2, so that the defective product can be reliably extracted. It is possible. The above procedure is shown in FIG. In each of the above-mentioned embodiments, the coordinates of the center of the tip edge are obtained for all the leads 2, but if the pitch between the leads 2 is relatively large and the accuracy may be lowered to a certain extent, one The center coordinates of the tip edge of the lead 2 may be obtained every two or two.

【発明の効果】【The invention's effect】

本発明は上述のように、リードが含まれている画像上で
略一直線上に並ぶ各リードの先端縁の中心座標を求め、
次に各リードの先端縁の中心座標に対して最小二乗法を
適用してリードの先端縁の中心を通る直線の傾きをパッ
ケージの各辺についてそれぞれ求めるとともに、各リー
ドの先端縁の中心座標に基づいて電子部品の中心位置を
求め、上記各直線に基づいて画像上の基準方向に対する
電子部品の傾きを求め、画像上の基準点に対する電子部
品の中心位置の誤差および上記傾きを補正値とするよう
にしているものであり、すべてのリードの先端縁の中心
座標のばらつきを平均化して求めた値を補正値としてい
るから、補正値の誤差が非常に小さくなり、電子部品の
部品実装位置への位置決めを高い精度で行うことができ
るという利点を有する。また、すべてのリードについて
先端縁の中心座標を求めているから、中心座標のばらつ
きの程度によりリードの折れや曲がりといった不良を容
易に発見することができるという利点を有する。 さらに、画像上の基準方向に対する電子部品の傾きは、
隣合う各一対のリードの先端縁の中心を結ぶ各直線が画
像の基準方向に対してなす角度の分布に基づいて求めて
も同等の効果が得られるものである。
As described above, the present invention obtains the center coordinates of the tip edges of the leads arranged in a substantially straight line on the image including the leads,
Next, the least squares method is applied to the center coordinates of the lead edge of each lead to obtain the slope of a straight line passing through the center of the lead edge of each lead for each side of the package. The center position of the electronic component is obtained based on the above, the inclination of the electronic component with respect to the reference direction on the image is obtained based on each of the straight lines, and the error in the center position of the electronic component with respect to the reference point on the image and the inclination are used as correction values. Since the correction value is a value obtained by averaging the variations in the center coordinates of the tip edges of all leads, the error in the correction value becomes extremely small, and This has the advantage that the positioning can be performed with high accuracy. Further, since the center coordinates of the leading edge are obtained for all the leads, there is an advantage that defects such as bending and bending of the leads can be easily found depending on the degree of variation of the center coordinates. Furthermore, the tilt of the electronic component with respect to the reference direction on the image is
The same effect can be obtained even if it is determined based on the distribution of the angles formed by the straight lines connecting the centers of the tip edges of the pairs of adjacent leads to the reference direction of the image.

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

第1図は本発明の実施例における処理手順を示す動作説
明図、第2図は同上におけるリードの先端縁の中心座標
を検出する手順を示す動作説明図、第3図は同上におい
て端に位置するリードを検出する探索ラインの設定例を
示す動作説明図、第4図は(a)は同上においてリード
の先端のおおまかな検出を行う際の探索ラインの設定例
を示す動作説明図、第4図(b)は同図(a)に示した
探索ラインとは異なる設定の探索ラインによる問題点を
示す動作説明図、第5図は同上においてリードの先端縁
を求める2分探査の際の探索ラインの設定例を示す動作
説明図、第6図は同上においてリードの先端縁の中心座
標を求める方法の概念を示す動作説明図、第7図は同上
において各リードに対して最初の探索ラインを設定する
方法の概念を示す動作説明図、第8図は同上において電
子部品の回転移動と平行移動とに対する補正値を求める
方法を示す動作説明図、第9図は同上においてリードの
先端縁の中心座標から電子部品の回転移動を求める手法
の説明図、第10図は同上において各リードに対して第9
図の手法を用いたときの角度分布の一例を示す説明図、
第11図は本発明における電子部品の実装過程を示す概略
構成図である。 1……電子部品、2,21〜2n……リード、3……吸着装
置、4……基板、5……画像入力装置、6……パッケー
ジ。
FIG. 1 is an operation explanatory view showing a processing procedure in an embodiment of the present invention, FIG. 2 is an operation explanatory view showing a procedure for detecting the center coordinates of the leading edge of the lead in the same as above, and FIG. 4 is an operation explanatory diagram showing an example of setting a search line for detecting a lead, and FIG. 4 (a) is an operation explanatory diagram showing an example of setting a search line when roughly detecting the tip of the lead in the same as above; FIG. 5B is an operation explanatory view showing a problem caused by a search line having a setting different from that shown in FIG. 5A, and FIG. 5 is a search in the dichotomizing search for obtaining the leading edge of the lead in the same as above. FIG. 6 is an operation explanatory view showing an example of line setting, FIG. 6 is an operation explanatory view showing the concept of the method of obtaining the center coordinates of the leading edge of the lead in the same as above, and FIG. Show the concept of how to set FIG. 8 is an operation explanatory view showing a method for obtaining a correction value for rotational movement and parallel movement of the electronic component in the same as above, and FIG. 9 is rotational movement of the electronic component from the center coordinates of the tip edge of the lead in the same as above. Fig. 10 is an explanatory view of the method for obtaining
Explanatory diagram showing an example of the angle distribution when using the method of the figure,
FIG. 11 is a schematic configuration diagram showing a mounting process of the electronic component in the present invention. 1 ...... electronic component, 2, 2 1 to 2 n ...... lead, 3 ...... adsorber, 4 ...... substrate, 5 ...... image input device, 6 ...... package.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−271500(JP,A) 特開 昭63−88896(JP,A) 特開 昭63−75503(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-62-271500 (JP, A) JP-A-63-88896 (JP, A) JP-A-63-75503 (JP, A)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】パッケージの周縁に複数本のリードが突設
された電子部品を回路基板の部品実装位置まで搬送する
過程で画像入力装置により撮像し、上記リードの画像に
基づいて部品実装位置に対する電子部品の位置と向きと
のずれを補正する電子部品の装着位置補正方法におい
て、上記画像上で略一直線上に並ぶ各リードの先端縁の
中心座標を求め、次に各リードの先端縁の中心座標に対
して最小二乗法を適用してリードの先端縁の中心を通る
直線の傾きをパッケージの各辺についてそれぞれ求める
とともに、各リードの先端縁の中心座標に基づいて電子
部品の中心位置を求め、上記各直線に基づいて画像上の
基準方向に対する電子部品の傾きを求め、画像内の基準
点に対する電子部品の中心位置の誤差および上記傾きを
補正値とすることを特徴とする電子部品の装着位置補正
方法。
1. An electronic component having a plurality of leads protruding from the periphery of a package is picked up by an image input device in the process of being conveyed to a component mounting position of a circuit board, and the component mounting position is determined based on the image of the lead. In a method for correcting the mounting position of an electronic component that corrects the deviation between the position and the orientation of the electronic component, the center coordinates of the leading edge of each lead arranged in a substantially straight line on the image are obtained, and then the center of the leading edge of each lead is determined. The least squares method is applied to the coordinates to find the slope of the straight line passing through the center of the lead edge for each side of the package, and the center position of the electronic component is calculated based on the center coordinates of the lead edge of each lead. The inclination of the electronic component with respect to the reference direction on the image is obtained based on each of the straight lines, and the error in the center position of the electronic component with respect to the reference point in the image and the inclination are used as correction values. Mounting position correcting method of the electronic component to symptoms.
【請求項2】パッケージの周縁に複数本のリードが突設
された電子部品を回路基板の部品実装位置まで搬送する
過程で画像入力装置により撮像し、上記リードの画像に
基づいて部品実装位置に対する電子部品の位置と向きと
のずれを補正する電子部品の装着位置補正方法におい
て、上記画像上で略一直線上に並ぶ各リードの先端縁の
中心座標を求め、次に各リードの先端縁の中心座標に基
づいて電子部品の中心位置を求め、隣合う各一対のリー
ドの先端縁の中心を結ぶ各直線が画像の基準方向に対し
てなす角度の分布に基づいて画像上の基準方向に対する
電子部品の傾きを求め、画像上の基準点に対する電子部
品の中心位置の誤差および上記傾きを補正値とすること
を特徴とする電子部品の装着位置補正方法。
2. An electronic component having a plurality of leads protruding from the periphery of a package is picked up by an image input device in the process of being conveyed to a component mounting position of a circuit board, and the component mounting position is detected based on the image of the lead. In a method for correcting the mounting position of an electronic component that corrects the deviation between the position and the orientation of the electronic component, the center coordinates of the leading edge of each lead arranged in a substantially straight line on the image are obtained, and then the center of the leading edge of each lead is determined. The center position of the electronic component is determined based on the coordinates, and the electronic component with respect to the reference direction on the image is based on the distribution of the angle formed by the straight lines connecting the centers of the tips of the adjacent pairs of leads with respect to the reference direction of the image. Of the center position of the electronic component with respect to the reference point on the image and the inclination are used as the correction values.
JP63298984A 1988-11-25 1988-11-25 Electronic component mounting position correction method Expired - Fee Related JPH0767036B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63298984A JPH0767036B2 (en) 1988-11-25 1988-11-25 Electronic component mounting position correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63298984A JPH0767036B2 (en) 1988-11-25 1988-11-25 Electronic component mounting position correction method

Publications (2)

Publication Number Publication Date
JPH02143599A JPH02143599A (en) 1990-06-01
JPH0767036B2 true JPH0767036B2 (en) 1995-07-19

Family

ID=17866729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63298984A Expired - Fee Related JPH0767036B2 (en) 1988-11-25 1988-11-25 Electronic component mounting position correction method

Country Status (1)

Country Link
JP (1) JPH0767036B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07112119B2 (en) * 1991-04-08 1995-11-29 日本アビオニクス株式会社 Positioning device for electronic components

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0680954B2 (en) * 1986-05-20 1994-10-12 日立テクノエンジニアリング株式会社 Device for mounting IC on printed circuit board
JPS6375503A (en) * 1986-09-19 1988-04-05 Toshiba Corp Positioning device for parts with lead
JPH0767032B2 (en) * 1986-10-02 1995-07-19 三洋電機株式会社 Position correction method for electronic components

Also Published As

Publication number Publication date
JPH02143599A (en) 1990-06-01

Similar Documents

Publication Publication Date Title
CN1276702C (en) Method for positioning on base and placing view-point characteristic of semiconductor piece
JP2851023B2 (en) IC tilt inspection method
US20210029857A1 (en) Component mounting device, method of capturing image, and method of determining mounting sequence
JPH0767036B2 (en) Electronic component mounting position correction method
JPH0541598A (en) Component mounting position correction method
JP2000013097A (en) Component mounting equipment
JP3269816B2 (en) Component mounting equipment
JP2000258121A (en) Master substrate for calibrating a plurality of cameras and calibration method for image recognition camera
JP2793947B2 (en) Appearance inspection method of soldering condition
JPH0831715B2 (en) Position correction method for leaded parts
JP2712642B2 (en) Component tilt detection method
JP3158351B2 (en) Position detection method for minute workpiece
JP3720476B2 (en) Component detection method
JP4633973B2 (en) Rectangular part position detection method and position detection apparatus, and semiconductor chip bonding method and semiconductor chip bonding apparatus using the same
JP3055864B2 (en) Electronic component mounting method and device
JP2940213B2 (en) Check area setting method for solder appearance inspection
CN111246721A (en) Mounting device and mounting method
JP3805026B2 (en) IC component mounting method and IC component mounting machine using the same
JP3356256B2 (en) Electronic component mounting method and mounting device
JPH0772931A (en) Parts positioning method
JPH11145699A (en) Recognition method for electronic components with insertion pins
JPS6388896A (en) Method of correcting position of electronic component
JP3089786B2 (en) Check area setting method for multiple lands
KR101430979B1 (en) Exposure apparatus, and exposure method
JP3097263B2 (en) Check area setting method of parallel land

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070719

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080719

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees