JPS62299704A - Inspecting instrument for package parts - Google Patents

Inspecting instrument for package parts

Info

Publication number
JPS62299704A
JPS62299704A JP14294786A JP14294786A JPS62299704A JP S62299704 A JPS62299704 A JP S62299704A JP 14294786 A JP14294786 A JP 14294786A JP 14294786 A JP14294786 A JP 14294786A JP S62299704 A JPS62299704 A JP S62299704A
Authority
JP
Japan
Prior art keywords
data
height
component
light
line sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14294786A
Other languages
Japanese (ja)
Inventor
Giichi Kakigi
柿木 義一
Moritoshi Ando
護俊 安藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP14294786A priority Critical patent/JPS62299704A/en
Publication of JPS62299704A publication Critical patent/JPS62299704A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

PURPOSE:To accurately detect even a parts which is inferior in color contrast by detecting reflected light obtained by irradiating a printed circuit board with a slit type light beam by a line sensor while swinging the light beam by a galvanomirror. CONSTITUTION:The reflected light l4 obtained by projecting the slit type light beam l3 is swung up and down by the galvanomirror 6 and detected by the line sensor 7 successively to detect the reflected light from different height on a printed board by photodetecting elements. Then, a peak value detecting circuit 13 detects peak values of detection signals obtained by the respective photodetecting elements of the line sensor 7 to obtain height data and brightness data corresponding to the peak values. Then, a CPU 15 compares those data with reference data stored previously in a memory 14 and decides the package state of the parts based on the comparison result. Consequently, even the parts which is inferior in color contrast is accurately detected.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔礪   要〕 本発明は、部品の実装されたプリント板上を照明し、そ
の反射光を検知することにより部品の実装状態を検査す
る実装部品検査装置において、従来は上記反射光を濃淡
画像として検知していたため、基板に対してコントラス
トの悪い色を持つ部品を正確に検知できなかったという
問題を解決するため、上記プリント板上にスリット状の
光ビームを照射して得られた反射光をガルバノミラ−で
振りながらラインセンサで検知し、その検知信号のピー
ク値における高さデータと輝度データを得て、これらの
データに基づいて部品の実装状態を判定するようにした
ことにより、上記のような色のコントラストの悪い部品
をも正確に検知できるとともに、部品の高さ不良や品種
ちがい等の各種欠陥の判定をも可能にしたものである。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Summary] The present invention is a mounting method that inspects the mounting state of components by illuminating a printed board on which components are mounted and detecting the reflected light. Conventionally, in component inspection equipment, the reflected light was detected as a grayscale image, so parts with a color that contrasted poorly with the board could not be accurately detected.In order to solve the problem, we installed a slit on the printed board. The reflected light obtained by irradiating a shaped light beam is detected by a line sensor while being swung by a galvano mirror, height data and brightness data at the peak value of the detection signal are obtained, and based on these data, the parts are determined. By determining the mounting state, it is possible to accurately detect components with poor color contrast as described above, and also to determine various defects such as component height defects and wrong product types. be.

〔産業上の利用分野〕[Industrial application field]

本発明は、プリント板に実装された電子部品(特にはチ
ップ部品)の実装状態を光学的に自動検査する実装部品
検査装置に関する。
The present invention relates to a mounted component inspection device that automatically optically inspects the mounting state of electronic components (particularly chip components) mounted on a printed board.

最近、プリント板に実装される電子部品は、特にチップ
部品に見られるように、部品の微小化および実装の高密
度化が進んでいる。そのため、従来から行われている目
視による外観検査は序々に困難になってきており、最近
では外観検査の自動化が強く望まれている。
BACKGROUND ART Recently, electronic components mounted on printed circuit boards have been becoming smaller and more densely packaged, especially as seen in chip components. For this reason, the conventional visual inspection has become increasingly difficult, and automation of the visual inspection has recently been strongly desired.

〔従 来 の 技 術〕[Traditional techniques]

従来も、実装部品の自動検査装置が各種提案されている
。これらの装置はすべて、基板面を面状に照明し、その
反射光を濃淡画像として検知して、その画像を基準とな
る正常な画像と比較することを基本としている。
Conventionally, various automatic inspection devices for mounted components have been proposed. All of these devices are based on illuminating the substrate surface in a planar manner, detecting the reflected light as a grayscale image, and comparing the image with a normal image that serves as a reference.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来の装置では、上述したように濃淡画像に基づい
た検査を行っているため、基板(一般に濃緑色)に対し
て色的にコントラスト良く検知できる部品のみが検査可
能であり、一般的に多い黒色の部品等は検査できなかっ
た。また、コントラストの良い部品であっても、平面的
な位置ずれ等は検査できるが、高さ方向の異常(高さ不
良)は検査できなかった。
As mentioned above, the conventional equipment performs inspection based on gray scale images, so it is only possible to inspect parts that can be detected with good color contrast to the board (generally dark green), which is generally common. Black parts could not be inspected. Furthermore, even if a component has good contrast, it is possible to inspect for planar positional deviations, etc., but it is not possible to inspect for abnormalities in the height direction (height defects).

本発明は、上記問題点に鑑み、色のコントラストの悪い
部品をも正確に検査でき、しかも部品の有無や位置ずれ
等の検査のみならず、部品の高さ不良や品種違い等の様
々な欠陥をも検査できる実装部品検査装置を提供するこ
とを目的とする。
In view of the above-mentioned problems, the present invention is capable of accurately inspecting parts with poor color contrast, and is capable of not only inspecting the presence or absence of parts and misalignment, but also detecting various defects such as defective heights and different types of parts. The purpose of the present invention is to provide a mounted component inspection device that can also inspect.

(問題点を解決するための手段〕 本発明は、光切断法の原理に基づいて部品の高さ等を検
知するための光学系として、まず、部品の実装されたプ
リント板上にスリット状の光ビームを照射する光照射手
段と、その反射光をガルバノミラ−で上下方向に振りな
がら、順次ラインセンサで検知する光検知手段とを備え
ている。
(Means for Solving the Problems) The present invention is an optical system for detecting the height of a component based on the principle of the optical cutting method. It is equipped with a light irradiation means that irradiates a light beam, and a light detection means that sequentially detects the reflected light with a line sensor while swinging the reflected light in the vertical direction with a galvanometer mirror.

次に、信号処理系として、上記ラインセンサの各受光素
子毎に順次得られる検知信号のピーク値を検出し、この
ピーク値における高さデータと輝度データを得るピーク
検知手段を備えるとともに、これらのデータを予め記憶
されている基準データと比較して、その結果に基づいて
部品の実装状態を判定する判定手段を備えたものである
Next, as a signal processing system, a peak detection means is provided which detects the peak value of the detection signal sequentially obtained for each light receiving element of the line sensor and obtains height data and brightness data at this peak value. The device is equipped with a determining means that compares the data with pre-stored reference data and determines the mounting state of the component based on the result.

〔作   用〕[For production]

上述したようにスリット状の光ビームの照射による反射
光をガルバノミラ−で上下方向に振れば、結像される反
射光像も上下方向、すなわち高さ方向に振れる。これを
ラインセンサで順次検知すれば、各受光素子毎にプリン
ト板上のそれぞれ異なる高さからの反射光を順次検知す
ることができる。
As described above, if the reflected light from irradiation with the slit-shaped light beam is swayed in the vertical direction by the galvano mirror, the reflected light image formed will also be swayed in the vertical direction, that is, in the height direction. By sequentially detecting this with a line sensor, it is possible to sequentially detect reflected light from different heights on the printed board for each light receiving element.

このようにして受光素子毎に順次得られた複数の検知信
号は、その得られた順番が高さと対応し、その強度が上
記高さにおける輝度と対応する。また、基板もしくは部
品上面からの直接の反射光は、周囲から回り込んだ光と
比べて強いので、上記複数の検知信号はどこかにピーク
値を持つ。よって、このピーク値を検出すれば、このピ
ーク値における高さデータと輝度データが、基板もしく
は部品上面における高さと輝度に正確に対応する。
In the plurality of detection signals sequentially obtained for each light-receiving element in this way, the order in which they were obtained corresponds to the height, and the intensity thereof corresponds to the luminance at the height. Further, since the direct reflected light from the top surface of the board or component is stronger than the light that has come around from the surroundings, the plurality of detection signals described above have a peak value somewhere. Therefore, if this peak value is detected, the height data and brightness data at this peak value accurately correspond to the height and brightness at the top surface of the board or component.

プリント板の各位置において上記のようにして得られた
高さデータを見れば、プリント板上の部品の三次元形状
や位置を知ることができる。従って、上記高さデータを
基準の形状や位置等を含む基準データと比較することに
より、部品の有無や位置ずれ、高さ不良等を、色のコン
トラストに関係な(検査することができる。
By looking at the height data obtained as described above at each position on the printed board, it is possible to know the three-dimensional shape and position of the component on the printed board. Therefore, by comparing the above-mentioned height data with reference data including the reference shape, position, etc., it is possible to inspect the presence or absence of parts, positional deviation, height defects, etc. related to color contrast.

また、プリント板の各位置において上記のようにして得
られた輝度データを見れば、部品上面の輝度の違いによ
って現れるパターン(例えば部品上に描かれた文字や記
号等)を知ることができる。
Furthermore, by looking at the luminance data obtained as described above at each position on the printed board, it is possible to know patterns (for example, characters or symbols drawn on the component) that appear due to differences in luminance on the top surface of the component.

従って、上記輝度データを基準の文字や記号等を含む基
準データと比較することにより、部品の品種ちがいや方
向ちがい等を検査することもできる。
Therefore, by comparing the luminance data with reference data including reference characters, symbols, etc., it is also possible to check for differences in the type of parts, differences in direction, etc.

〔実  施  例〕〔Example〕

以下、本発明の実施例について、図面を参照しながら説
明する。
Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

同図において、本実施例は、まず半導体レーザ1、コリ
メートレンズ2およびシリンドリカルレンズ3からなる
光照射手段を備えている。この光照射手段は、半導体レ
ーザ1から出力されたレーザ光11をコリメートレンズ
2で平行光I12に変換し、更にシリンドリカルレンズ
3でスリット状の光ビーム(以下、スリットビームと称
す)13に変換し、このスリットビーム13を、Xおよ
びy方向に移動可能なステージ4上に載置されたプリン
l−1a P上に真上から照射する。プリント板Pは、
その基板P上に各種の部品(特にはチップ部品)Qが実
装されており、上記スリットビーム13の照射によって
、上記基板Rおよび部品Q上には光切断線りが形成され
る。
In the figure, the present embodiment first includes a light irradiation means consisting of a semiconductor laser 1, a collimating lens 2, and a cylindrical lens 3. This light irradiation means converts a laser beam 11 output from a semiconductor laser 1 into parallel light I12 with a collimating lens 2, and further converts it into a slit-shaped light beam (hereinafter referred to as a slit beam) 13 with a cylindrical lens 3. This slit beam 13 is irradiated from directly above onto the pudding l-1a P placed on the stage 4 movable in the X and Y directions. The printed board P is
Various components (particularly chip components) Q are mounted on the substrate P, and optical cutting lines are formed on the substrate R and the components Q by irradiation with the slit beam 13.

更に、結像用のレンズ5、ガルバノミラ−6およびライ
ンセンサ(例えばCODラインセンサ等)7からなる光
検知手段を備えている。この光検知手段は、まず上記ス
リットビーム13の照射によるプリント板P上からの斜
め上方への反射光14を、結像用のレンズ5を介してガ
ルバノミラ−6に導く。ガルバノミラ−6は、モータ8
の回転軸8aに固定され、一定角度範囲内で細かく往復
回転(振動)される。すると、ガルバノミラ−6に導か
れた反射光p4は、上記振動に伴って上下方向に振られ
る。この振られた反射光をラインセンサ7で順次検知す
る。するとラインセンサ7は、反射光ρ4のうちのそれ
ぞれ異なる高さからの反射光を順次検知していき、ガル
バノミラ−6の一方向への一回の振りで、反射光14の
全体像を見ることができる。以下、この画像を「光切断
画像」と呼ぶこととする。
Furthermore, it is provided with a light detection means consisting of an imaging lens 5, a galvanometer mirror 6, and a line sensor (for example, a COD line sensor, etc.) 7. This light detection means first guides diagonally upwardly reflected light 14 from the printed board P due to the irradiation of the slit beam 13 to the galvanomirror 6 via the imaging lens 5. The galvano mirror 6 is connected to the motor 8
It is fixed to a rotating shaft 8a, and finely reciprocated (vibrates) within a certain angular range. Then, the reflected light p4 guided to the galvanometer mirror 6 is swung up and down along with the vibration. A line sensor 7 sequentially detects this reflected light. Then, the line sensor 7 sequentially detects the reflected light ρ4 from different heights, and by swinging the galvanometer mirror 6 once in one direction, the entire image of the reflected light 14 can be seen. Can be done. Hereinafter, this image will be referred to as a "light-section image."

この光切断画像は、第3図(a)に示すように、光切断
線りの形成されている対象(部品Q、基板R)の高さに
応じたずれを持つ略スリット状の像(ml。
As shown in FIG. 3(a), this light-cutting image is a substantially slit-shaped image (ml .

m2.m3)として得られるとともに、これらは上記対
象の輝度に応じた多階調の濃淡画像となる。
m2. m3), and these become multi-tone gradation images corresponding to the luminance of the object.

第3図(alにおいて、像m+、m2.m3ば、それぞ
れ高い部品、低い部品、基板に対応する。このようにし
てラインセンサ7で得られる画像は、Xアドレスと2ア
ドレスで表すことができ、Xアドレスはラインセンサ7
の各受光素子(CCD等)に対応している。
In Figure 3 (al), images m+, m2, and m3 correspond to high parts, low parts, and boards, respectively.The image obtained by the line sensor 7 in this way can be expressed by an X address and 2 addresses. , X address is line sensor 7
It corresponds to each light receiving element (CCD etc.).

ここで、上記光切断画像を順次適切に得るための具体的
な同期関係を第2図に示す。同図において、まずライン
センサ7を構成する各受光素子(ここではCODとする
)にデータを取込むタイミングであるCCDの5YNC
パルス(C)に同期させて、ガルバノミラ−6の5YN
Cパルス(blを発生させる。そして、この5YNCパ
ルス(blごとにガルバノミラ−駆動信号(alの傾き
を変える。ガルバノミラ−6は、この駆動信号(alに
比例して上下方向に角度を振られる。また、上記5YN
Cパルスfc)に同期せさて、ステージ4の送りパルス
[d)を発生させる。この送りパルス(dlがあるごと
に、ステージ4はy方向に一定距離(例えば100μm
)だけ移動される。これらの信号は信号処理回路9で作
成され、ラインセンサドライブ回路10、ガルバノミラ
−ドライブ回路11、ステージドライブ回路12に供給
されることにより、それぞれラインセンサ7、ガルバノ
ミラ−6、ステージ4が互いに同期して駆動される。
Here, a specific synchronization relationship for sequentially and appropriately obtaining the above-mentioned light section images is shown in FIG. In the same figure, first, the 5YNC of the CCD is the timing at which data is taken into each light receiving element (herein referred to as COD) constituting the line sensor 7.
5YN of galvanometer mirror 6 in synchronization with pulse (C)
A C pulse (bl) is generated.Then, the inclination of the galvano mirror drive signal (al) is changed every 5 YNC pulses (bl).The galvano mirror 6 is swung vertically in proportion to this drive signal (al). In addition, the above 5YN
A feed pulse [d) for the stage 4 is generated in synchronization with the C pulse fc). Each time there is a sending pulse (dl), the stage 4 moves a certain distance (for example, 100 μm) in the y direction.
) will be moved. These signals are generated by the signal processing circuit 9 and supplied to the line sensor drive circuit 10, galvano mirror drive circuit 11, and stage drive circuit 12, so that the line sensor 7, galvano mirror 6, and stage 4 are synchronized with each other. It is driven by

上述したようにしてガルバノミラ−6と一次元のライン
センサ7を用いて2次元画像を得るようにした場合は、
一般に例えば500X500程度の画素数を持つ2次元
CCDセンサやTV左カメラ用いる場合と比較し、計測
速度が格段に向上するという利点がある。この理由を以
下に述べる。
When a two-dimensional image is obtained using the galvanometer mirror 6 and one-dimensional line sensor 7 as described above,
Generally, compared to using a two-dimensional CCD sensor or a TV left camera having a pixel count of about 500 x 500, for example, there is an advantage that the measurement speed is significantly improved. The reason for this will be explained below.

チップ部品の位置ずれを検出するためには、Q、lim
程度の位置分解能が必要である。また、最も低いチップ
部品の高さは0.5B程度であり、これを基板と判別す
るためには、高さ測定分解能は0.2 w程度必要であ
る。一方、高さの測定範囲は、チップ部品の高さ範囲と
基板の反りとを合わせて、10m程度必要である。これ
らのことから、光切断画像の縦方向サイズは、50 (
= 1010.2 )画素程度必要である。ところが、
上述したような2次元CCDセンサを用いると、縦方向
のサイズが500画素と必要以上に大きいので、信号処
理の効率が悪くなる。例えば、500点の高さを測定す
るのに、約33m5ecの時間がかかる。一方、本実施
例では、例えば2048画素のラインセンサ7を10M
Hzのクロックで動作させるとすると、2048点の高
さを測定するのに、たったlQmsec程度の時間しか
かからない。従って、本実施例によれば、2次元センサ
を用いる場合の約13倍の計測速度が得られる。
In order to detect the positional deviation of chip components, Q, lim
A certain degree of positional resolution is required. Further, the height of the lowest chip component is about 0.5B, and in order to distinguish this from a substrate, a height measurement resolution of about 0.2W is required. On the other hand, the height measurement range needs to be about 10 m, including the height range of the chip components and the warpage of the substrate. From these facts, the vertical size of the light section image is 50 (
= 1010.2) pixels are required. However,
When a two-dimensional CCD sensor as described above is used, the vertical size is 500 pixels, which is larger than necessary, resulting in poor signal processing efficiency. For example, it takes about 33 m5ec to measure the height of 500 points. On the other hand, in this embodiment, for example, the line sensor 7 with 2048 pixels is
If it is operated with a Hz clock, it will take only about 1Qmsec to measure the heights of 2048 points. Therefore, according to this embodiment, a measurement speed approximately 13 times faster than when using a two-dimensional sensor can be obtained.

次に、ラインセンサ7で順次得られる検知信号の処理系
として、ピーク検出回路13を設けている。第3図f8
>に示した光切断画像では、ラインセンサ7の各受光素
子と対応する各X位置ごとに、高さ方向(2方向)の最
高輝度点くピーク)が存在している(第3図(b))。
Next, a peak detection circuit 13 is provided as a processing system for detection signals sequentially obtained by the line sensor 7. Figure 3 f8
In the light-cut image shown in Figure 3 (b )).

ピーク検出回路13は、上記受光素子毎の検知信号をリ
アルタイムで処理して上記ピークを検出し、このピーク
における高さデータと輝度データを得る回路である。ピ
ークにおける高さデータと輝度データは、検知対象面の
高さと輝度に正確に対応するので、精度の良い部品検知
が可能になる。上記ピーク検出回路13を具体的に第4
図に示す。
The peak detection circuit 13 is a circuit that processes the detection signal of each light-receiving element in real time to detect the peak, and obtains height data and brightness data at this peak. Since the height data and brightness data at the peak accurately correspond to the height and brightness of the detection target surface, highly accurate component detection is possible. Specifically, the peak detection circuit 13 is
As shown in the figure.

第4図において、まず、ラインセンサ7中のすべての受
光素子(ここではCODとする)で得られたそれぞれの
検知信号(COD検知信号)を、順次CODデータクロ
ンクに従ってA/DiiM回路21でサンプリングし、
例えば8ビット階調のデジタルデータに変換する。一方
、上記CODデータクロツタは、Xカウンタ22で順次
カウントされていき、このカウント値はCODの5YN
Cパルスでクリアされる。このカウント値は、A/D変
換回路21で取り込まれたデータのXアドレスに相当す
る。
In FIG. 4, first, each detection signal (COD detection signal) obtained from all the light receiving elements (herein referred to as COD) in the line sensor 7 is sequentially sampled by the A/DiiM circuit 21 according to the COD data clock. death,
For example, it is converted into 8-bit gradation digital data. On the other hand, the above COD data clock is sequentially counted by the X counter 22, and this count value is 5YN of COD.
Cleared by C pulse. This count value corresponds to the X address of the data taken in by the A/D conversion circuit 21.

次に、A/D変換回路21から新たに得られたデータを
コンパレータ23の一方の入力端子に与えるとともに、
輝度メモリ24のXカウンタ22で指定されたアドレス
に書込まれているデータを、パスセレクタ25を介して
コンパレータ23のもう一方の入力端子に与え、これら
2つのデータを比較する。ここで、前者のデータが後者
のデータよりも大きいときは、タイミング回路26の指
示により、前者のデータをパスセレクタ25を介して輝
度メモリ24内の同アドレスに新たに書込むとともに、
高さメモリ27内の同アドレスに2カウンタ28の値を
書込む。この処理を、A/D変換回路21から新たなデ
ータが得られるごとに行う。上記2カウンタ28は、第
2図に示したと同一のCCDの5YNCパルスを順次カ
ウントしていくもので、ガルバノミラ−5YNCパルス
によってクリアされる。このカウント値は、A/D変換
回路21で取込まれたデータの2アドレスに相当する。
Next, the newly obtained data from the A/D conversion circuit 21 is applied to one input terminal of the comparator 23, and
The data written in the address specified by the X counter 22 of the brightness memory 24 is applied to the other input terminal of the comparator 23 via the path selector 25, and these two data are compared. Here, when the former data is larger than the latter data, the former data is newly written to the same address in the brightness memory 24 via the path selector 25 according to an instruction from the timing circuit 26, and
The value of the 2 counter 28 is written to the same address in the height memory 27. This process is performed every time new data is obtained from the A/D conversion circuit 21. The two counters 28 sequentially count the 5YNC pulses of the same CCD as shown in FIG. 2, and are cleared by the 5YNC pulses of the galvanometer mirror. This count value corresponds to two addresses of data taken in by the A/D conversion circuit 21.

なお、輝度メモリ24および高さメモリ27は、ガルバ
ノミラ−3YNCパルスが出力されるごとに、全アドレ
スにrOJが書込まれ、初期状態に戻される。
In addition, in the brightness memory 24 and the height memory 27, rOJ is written in all addresses and returned to the initial state every time the galvanometer mirror 3 YNC pulse is output.

従って、次のガルバノミラ−3YNCパルスが出力され
るまでに、輝度メモリ24にはX位置ごとの2方向の最
高輝度データが例えば8ビット階調で記憶され、一方、
高さメモリ27にはX位置ごとの上記最高輝度に対応す
る高さデータ(2アドレス)が記憶される。この高さデ
ータは、例えば第3図(blに示したような、あるX位
置におけるx−z画像に相当する。
Therefore, by the time the next galvano mirror 3YNC pulse is output, the maximum brightness data in two directions for each X position is stored in the brightness memory 24 in, for example, 8-bit gradation.
The height memory 27 stores height data (2 addresses) corresponding to the maximum brightness for each X position. This height data corresponds to an xz image at a certain X position, for example as shown in FIG. 3 (bl).

2カウンタ28が規定値に達したら、輝度メモIJ24
に蓄えられた輝度データと、高さメモリ27に蓄えられ
た高さデータとを、第1図に示したシステムのメモリ1
4へDMAによって転送する。そして、次のガルバノミ
ラ−3YNCパルスが出力されたときに、上述したよう
に上記メモリ24および27の全アドレスにrOJを書
込むとともに、第2図に示したステージ送りパルスを出
力してステージ4をy方向に一定距離だけ移動させ、こ
の新たなX位置で再度輝度データと高さデータを作成す
る。このようにして、以上の処理を各X位置ごとに順次
繰返して行う。
2 When the counter 28 reaches the specified value, the brightness memo IJ24
The luminance data stored in the memory 1 and the height data stored in the height memory 27 are stored in the memory 1 of the system shown in FIG.
4 by DMA. When the next galvanometer mirror 3 YNC pulse is output, rOJ is written to all addresses of the memories 24 and 27 as described above, and the stage feed pulse shown in FIG. 2 is output to move the stage 4. It is moved a certain distance in the y direction, and brightness data and height data are created again at this new X position. In this way, the above process is repeated for each X position in sequence.

なお、ガルバノミラ−6は往復で使用するため、そのス
キャン方向に応じて、2カウンタ28による2アドレス
のカウントのしかたをカウントアンプとカウントダウン
とで切換えるようにする。
Since the galvanometer mirror 6 is used in a reciprocating manner, the method of counting two addresses by the two counter 28 is switched between a count amplifier and a countdown depending on the scanning direction.

次に、ピーク検出回路13における上記処理によって得
られた、プリント板Pの各位置ごとの高さデータおよび
輝度データに基づいて、部品の実装状態を判定するため
の手段について説明する。
Next, a means for determining the mounting state of components based on the height data and luminance data for each position of the printed board P obtained by the above processing in the peak detection circuit 13 will be explained.

このための処理は、主にCPU15で行う。この概略手
順を第5図に示す。なお本実施例では、検査する部品の
基準となる実装位置、実装方向、品種等のデータ(以下
、基準データと称する)が、メモリ14内に予め記憶さ
れている。
Processing for this purpose is mainly performed by the CPU 15. This procedure is schematically shown in FIG. In this embodiment, data such as the mounting position, mounting direction, type, etc. (hereinafter referred to as reference data), which serve as a reference for the component to be inspected, are stored in advance in the memory 14.

第5図において、まずステップS+で高さデータを入力
する。次に、ステップS2で高さデータを2値化して、
部品と基板とを判別するための処理を行う。ただし、基
板には±2fl程度の反りがあるので、一定の高さで2
値化することはできない。そのために、次のような処理
を行う。
In FIG. 5, height data is first input in step S+. Next, in step S2, the height data is binarized,
Processing is performed to distinguish between parts and boards. However, since the board has a warp of about ±2 fl,
It cannot be valued. For this purpose, the following processing is performed.

まず、第6図fa)に示すように、高さデータに対して
、検査を行う部品Qを含む領域をウィンドウWとして設
定する。そして、第6図(b)に示すように、上記ウィ
ンドウW内における高さのヒストグラムを作成する。こ
のヒストグラムを、高さの低い方から高い方へ順次注目
していき、頻度が予め定めた特定の値a以上でピークを
持つ高さを求め、この高さhaを基板高さとする。次に
、部品の一般的な高さの例えば%の値り、を上記基板高
さhaに加えた値hs;Ir:高さスライスレベルとし
、このスライスレベルhsで高さデータを2値化する。
First, as shown in FIG. 6fa), an area including the part Q to be inspected is set as a window W with respect to the height data. Then, as shown in FIG. 6(b), a histogram of heights within the window W is created. Pay attention to this histogram in order from the lowest height to the highest height, find the height at which the frequency has a peak at a predetermined specific value a or more, and set this height ha as the substrate height. Next, the value hs;Ir is the height slice level obtained by adding, for example, a percentage of the general height of the component to the substrate height ha, and the height data is binarized at this slice level hs. .

以上のようにして高さデータの2値化を行うことにより
、基板が反りを持っていても、部品と基板とを正確に区
別できる。なお、上記の値り、は、部品の高さの許容値
としてもよい。
By binarizing the height data as described above, even if the board is warped, it is possible to accurately distinguish between the component and the board. Note that the above value may be an allowable value for the height of the component.

次に、ステップS3に進み、上記ステップS2で得られ
た2値化パターンを、予め記憶されている上記基準デー
タのパターンと比較する。ステップS4でこの比較結果
を見て、基準データ(実装位置)七の不一致度がある大
きな値以上であるときに、部品の「欠落欠陥」と判定す
る。上記不一致度が上記大きな値よりも小さいときには
、ステップS5に移る。ステップS5では、マツチング
がとれたアドレスと正しいアドレスとの差(X及びy)
がある値以上であるかどうかを見て、それ以上である場
合に部品の「位置ずれ」と判定する。
Next, the process proceeds to step S3, and the binarized pattern obtained in step S2 is compared with the pattern of the reference data stored in advance. In step S4, the comparison result is checked, and when the degree of mismatch of the reference data (mounting position) 7 is greater than or equal to a certain large value, it is determined that the component is a "missing defect". When the degree of mismatch is smaller than the large value, the process moves to step S5. In step S5, the difference (X and y) between the matched address and the correct address is
It is checked whether or not the value is greater than a certain value, and if it is greater than that, it is determined that the component is "misaligned."

上記アドレスの差が上記値よりも小さいときは、部品位
置は正常であるとして、次のステップs6に進む。なお
、高さデータから、基板に対する部品の相対高さを得て
、「高さ不良」の判定を行うこともできる。
If the difference between the addresses is smaller than the value, it is determined that the component position is normal, and the process proceeds to the next step s6. Note that it is also possible to obtain the relative height of the component with respect to the board from the height data and determine whether it is "height defective".

ステップS6では、ステップS2と同様にして、輝度デ
ータの2値化を行う。すなわち、まず輝度データに対し
て、第6図(alに示したようにウィンドウWを設定し
た後、その中において第6図fb)に示したようなヒス
トグラムを作成し、その分布からスライスレベルを決定
し、輝度データを2値化する。このようにして得られた
2値化パターンは、部品上面の輝度の違いによって見え
るパターン(例えば部品の品種を示すために部品上に描
かれた文字や記号等)を含んでいる。
In step S6, the luminance data is binarized in the same manner as step S2. That is, first, for the luminance data, a histogram as shown in Fig. 6 (fb) is created after setting the window W as shown in Fig. 6 (al), and the slice level is calculated from the distribution. The brightness data is then binarized. The binarized pattern obtained in this way includes a pattern (for example, a character or a symbol drawn on the part to indicate the type of the part) that is visible due to the difference in brightness on the top surface of the part.

そこでステップS7で、基準データ中の品種データのパ
ターンと上記2値化パターンを比較する。
Therefore, in step S7, the pattern of product type data in the reference data is compared with the binarized pattern.

なおこの際、互いの位置関係を18o°回転させて、2
度比較する。これは、部品の実装方向の判定を行うため
である。そこで、ステア、プS8でこの比較結果を見て
、2度ともパターンが一致しなければ、「品種ちがい」
と判定する。また、正しくない方向でパターンが一致し
ているときは、ステップS9により「方向ちがい」と判
定する。
In addition, at this time, the mutual positional relationship was rotated by 18°, and 2
Compare degrees. This is to determine the mounting direction of the component. So, check this comparison result with Steer and PuS8, and if the patterns do not match both times, it is determined that the product is different.
It is determined that If the patterns match in an incorrect direction, it is determined in step S9 that the direction is incorrect.

上記処理を、ウィンドウWを順次移動して設定しながら
繰返すことにより、基板全面の部品を検査することがで
きる。
By repeating the above process while sequentially moving and setting the windows W, components on the entire surface of the board can be inspected.

本実施例によれは、高速に高さデータと輝度データが得
られ、基板の反りの影響を受けることな(、色のコント
ラストの悪い部品をも正確に検知できるとともに、部品
の「高さ不良」や「品種ちがい」等の各種欠陥を容易に
判定できるようになる。
According to this embodiment, height data and brightness data can be obtained at high speed, and parts with poor color contrast can be accurately detected without being affected by board warping (and parts with poor color contrast can be accurately detected). It becomes possible to easily determine various defects such as "" and "wrong product."

次に、本発明の他の実施例について説明する。Next, other embodiments of the present invention will be described.

本実施例は、第1図に破線で示すように、もう−組の光
検知系(レンズ50.ガルバノミラ−60゜ラインセン
サ70.モータ80)を設けて、左右2方向から反射光
を検知するものである。このように2方向から検知する
ことにより、陰による不可視部をなくすことができる。
In this embodiment, as shown by the broken line in FIG. 1, another set of light detection systems (lens 50, galvanometer mirror, 60° line sensor 70, motor 80) is provided to detect reflected light from two directions, left and right. It is something. By detecting from two directions in this way, invisible parts due to shadows can be eliminated.

このための信号処理系を第7図に示す。同図において、
本信号処理系は、ガルバノミラ−6,60の走査により
ラインセンサ7,70で得られたそれぞれの画像を処理
して2方向の最高輝度とそれに対応する高さく2アドレ
ス)とを求めるピーク検出回路31.32と、この2つ
のピーク検出31.32で得られたデータのうちのどち
らかを選択するデータ選択回路33と、この選択された
データ(輝度データおよび高さデータ)を蓄える2つの
バッファメモリ34.35と、このデータを2値化して
得られたパターンを基準データ記憶部37に予め記憶さ
れている基準のパターンと比較して部品の実装状態を判
定する判定回路36とから構成されている。
A signal processing system for this purpose is shown in FIG. In the same figure,
This signal processing system is a peak detection circuit that processes the respective images obtained by the line sensors 7 and 70 by scanning the galvanometer mirrors 6 and 60 to obtain the maximum brightness in two directions and the corresponding height (2 addresses). 31.32, a data selection circuit 33 that selects either of the data obtained by these two peak detections 31.32, and two buffers that store the selected data (luminance data and height data). It is composed of memories 34 and 35, and a determination circuit 36 that compares a pattern obtained by binarizing this data with a reference pattern stored in advance in a reference data storage section 37 to determine the mounting state of the component. ing.

上記ピーク検出回路31を具体的に第8図に示す。同図
において、バッファメモリ311,312は主としてX
位置ごとの2方向の最高輝度データと、これに対応する
高さデータ(2アドレス)とを蓄えるだめのメモリであ
り、アドレスコントローラ313によって指定されたア
ドレスに対してデータの読み書きが行われる。算術回路
314は、ラインセンサ7の111の受光素子(COD
)で得られた新たなCCDデータ(検知信号)と、この
データのXアドレスに相当するバッファメモリ311(
もしくは312)内に記憶されている1つ前のデータと
の差を算出する回路である。もう1つの算術回路315
は、上記の差を所定の値(Δ)と比較してその比較結果
を出力する回路である。判別回路316は、上記比較結
果やガルバノミラ−6の移動方向に基づいて、パイプラ
インレジスタ317に入っている新たなCCDデータを
バ・7フアメモリ312(もしくは311)に書込むか
どうかを判別するための回路である。
The peak detection circuit 31 is specifically shown in FIG. In the figure, buffer memories 311 and 312 are mainly
This is a memory for storing maximum brightness data in two directions for each position and height data (two addresses) corresponding thereto, and data is read and written to the address specified by the address controller 313. The arithmetic circuit 314 is connected to the 111 light receiving element (COD) of the line sensor 7.
) and the buffer memory 311 (detection signal) corresponding to the X address of this data.
or 312) is a circuit that calculates the difference with the previous data stored in 312). Another arithmetic circuit 315
is a circuit that compares the above difference with a predetermined value (Δ) and outputs the comparison result. The determination circuit 316 determines whether new CCD data stored in the pipeline register 317 should be written to the buffer memory 312 (or 311) based on the comparison result and the direction of movement of the galvanometer mirror 6. This is the circuit.

上記回路の動作を次に説明する。まずへソファメモリ3
11には、CODで得られた一つ前までの情報が入って
いる。新たなCCDデータが入ると、これを一時的にパ
イプラインレジスタ317に保持するとともに、そのデ
ータのXアドレスに相当するバッファメモリ311内に
あるデータを呼出し、上記新たなCCDデータとの差を
算術回路314で算出する。次に、この差が所定の値(
Δ)以上であるかを算術回路315で比較する。この比
較結果を判別回路316で見て、もし上記の差がΔ以上
であれば、パイプラインレジスタ317に蓄えられたC
CDデータ(検知信号)における輝度データと高さデー
タ(2アドレス)とをバッファメモリ312に入力する
と共に、第7図に示したデータ選択回路33に送る。な
お、1つの2アドレス方向に2つ以上のピークがある場
合には、高さの低い方を選ぶようにすることが望ましい
The operation of the above circuit will now be explained. Sofa memory 3
11 contains the previous information obtained by COD. When new CCD data enters, it is temporarily held in the pipeline register 317, the data in the buffer memory 311 corresponding to the X address of the data is called, and the difference with the new CCD data is calculated by arithmetic calculation. Calculated by circuit 314. This difference is then set to a predetermined value (
An arithmetic circuit 315 compares whether it is greater than or equal to Δ). This comparison result is checked by the discrimination circuit 316, and if the above difference is Δ or more, the C stored in the pipeline register 317 is
The brightness data and height data (2 addresses) in the CD data (detection signal) are input to the buffer memory 312 and sent to the data selection circuit 33 shown in FIG. Note that if there are two or more peaks in one two-address direction, it is desirable to select the one with the lower height.

次に、判別回路316でガルバノミラ−6の上下の振動
方向を考慮した場合の具体的な処理を、第9図のフロー
チャートに基づき説明する。同図では、バッファメモリ
312に対してデータの書込みができるか否かを示す書
込みフラグF1と、ガルバノミラ−6の振動方向が上か
下かを示すミラーフラグF2とを用いる。まず、ステッ
プT1で書込みフラグF!を「OoK」にして、データ
の書込みが可能な状態にする。次に、ステップT2に進
み、入力した新たなCCDデータが、バッファメモリ3
11に書込まれている1つ前のデータよりも大きいかど
うか、すなわちデータが上昇中かどうかを見て、上昇中
であれば次のステップT3に進む。ステップT3では、
書込みフラグF+がOoKかどうかを見て、O,にであ
れば、ステップT4で上記新たなCCDデータをバッフ
ァメモリ312にそのまま書込み、O,にでなければ再
度ステップ2に戻る。すなわち、CCDデータがピーク
に達するまでは、バッファメモリ312のデータは新た
なCCDデータと書換えられていく。
Next, specific processing when the determination circuit 316 takes into consideration the vertical vibration direction of the galvanometer mirror 6 will be described based on the flowchart of FIG. In the figure, a write flag F1 is used to indicate whether or not data can be written to the buffer memory 312, and a mirror flag F2 is used to indicate whether the direction of vibration of the galvanometer mirror 6 is upward or downward. First, in step T1, write flag F! Set it to "OoK" to make it possible to write data. Next, the process proceeds to step T2, where the input new CCD data is stored in the buffer memory 3.
It is checked whether the data is larger than the previous data written in 11, that is, whether the data is rising, and if it is rising, the process advances to the next step T3. In step T3,
It is checked whether the write flag F+ is OoK, and if it is O, the new CCD data is written as is into the buffer memory 312 in step T4, and if it is not O, the process returns to step 2 again. That is, until the CCD data reaches its peak, the data in the buffer memory 312 is rewritten with new CCD data.

上記ステップT2においてデータが下降中になれば、デ
ータがピークを経過したことになるので、ステップT5
に進みデータ差が所定値Δ以上かどうか、すなわちピー
クよりもΔ以上下がったかどうかを見る。差がΔよりも
小さければ再度ステップT2に戻り、差がΔ以上であれ
ば、ステップT5でミラーフラグF2を見て、ガルバノ
ミラ−の振動方向が上(↑)か下(1)かを判断する。
If the data is falling in step T2, it means that the data has passed its peak, so step T5
It is checked whether the data difference is greater than or equal to a predetermined value Δ, that is, whether it has fallen below the peak by more than Δ. If the difference is smaller than Δ, the process returns to step T2 again, and if the difference is greater than Δ, the mirror flag F2 is checked in step T5 to determine whether the direction of vibration of the galvano mirror is upward (↑) or downward (1). .

振動方向が上のときは、今のピークが2方向に最も低い
ピークとなるので、ステップT7で書込フラグF+のO
,Kを取り消して、データの書込みを不可能にする。一
方、移動方向が下のときは、ステップT2に戻って、更
に次のピークを探すこととなる。この結果、1つの2ア
ドレス方向に2つ以上のピークがある場合には、最も高
さの低いピークが選ばれ、このピークにおける輝度デー
タと高さデータ(2アドレス)が求まることになる。
When the vibration direction is upward, the current peak is the lowest peak in the two directions, so the write flag F+ is set to O in step T7.
, K to make data writing impossible. On the other hand, when the moving direction is downward, the process returns to step T2 to further search for the next peak. As a result, if there are two or more peaks in one two-address direction, the peak with the lowest height is selected, and the luminance data and height data (two addresses) for this peak are determined.

なお、以上の処理をリアルタイムで行うために、ガルバ
ノミラ−の振動方向が切換わる度に、バッファメモリ3
11,312の役目を互いに交換し、交互に書込むこと
とする。
In order to perform the above processing in real time, the buffer memory 3 is
The roles of 11 and 312 are exchanged and written alternately.

また、第8図に示したピーク、検出回路31の構成と第
9図に示したその処理動作とは、もう一方のピーク検出
回路32にも同様に通用される。
Further, the configuration of the peak detection circuit 31 shown in FIG. 8 and its processing operation shown in FIG. 9 are similarly applicable to the other peak detection circuit 32.

次に、第7図に示したデータ選択回路33を具体的に第
10図に示す。同図において、ピーク検出回路31.3
2で得られたピークにおける輝度データを算術回路33
1に送るとともに、上記輝度データとその高さデータを
パイプラインレジスタ334に送る。算術回路331で
は送られた2つのデータを互いに比較し、その差を出力
する。次に、もう1つの算術回路332で、上記の差を
所定値Δと比較する。その比較結果を判別回路333で
見て、上記の差がΔ以上ならば、パイプラインレジスタ
33イ内のデータのうぢ、ピーク検出回路31からの輝
度データおよび高さデータを取出し、アドレスコントロ
ーラ335によって指定されたへソファメモリ336の
アドレスに害込む。この結果を、第7図に示したバッフ
ァメモリ34.35に送る。
Next, the data selection circuit 33 shown in FIG. 7 is specifically shown in FIG. In the same figure, the peak detection circuit 31.3
The brightness data at the peak obtained in step 2 is sent to the arithmetic circuit 33.
1, and also sends the luminance data and its height data to the pipeline register 334. The arithmetic circuit 331 compares the two sent data and outputs the difference. Next, another arithmetic circuit 332 compares the above difference with a predetermined value Δ. The comparison result is checked by the discrimination circuit 333, and if the above-mentioned difference is Δ or more, the data in the pipeline register 33a, the luminance data and the height data from the peak detection circuit 31 are taken out, and the address controller 335 The address of the sofa memory 336 specified by is corrupted. This result is sent to buffer memories 34 and 35 shown in FIG.

次に、バッファメモリ34.35におけるデータの処理
について、具体的に以下に説明する。この処理は、へソ
ファメモリ34.35の内容を読出す処理と判定回路3
6の判定処理とをリアルタイムで行うようにするため、
上記2つのバッファメモリ34.35の使い方に特徴を
持たせている。
Next, the processing of data in the buffer memories 34 and 35 will be specifically explained below. This process includes the process of reading out the contents of the sofa memory 34, 35 and the judgment circuit 3.
In order to perform the judgment process in step 6 in real time,
The usage of the two buffer memories 34 and 35 mentioned above is unique.

まず、データ選択回路33で得られたデータの読み書き
を、2つのバッファメモリ34.35を交互に繰返し用
いることにより順次行うことを基本としている。このと
き、バッファメモリ34゜35の互いのつぎ目部分に部
品(正確には、輝度データおよび高さデータのうち、部
品と対応する部分)が存在すると、その部品が2つのバ
ッファメモリ34.35に分離されてしまい、判定回路
36で適切な判定がなされなくなる心配がある。
First, data obtained by the data selection circuit 33 is basically read and written sequentially by alternately and repeatedly using the two buffer memories 34 and 35. At this time, if there is a component (more precisely, a portion of the brightness data and height data that corresponds to the component) at the joint between the buffer memories 34 and 35, that component is stored in the two buffer memories 34 and 35. There is a fear that the determination circuit 36 will not be able to make an appropriate determination.

そのため本実施例では、第11図に示すように、バッフ
ァメモリ34.35のそれぞれの先頭部分に、1個の部
品を完全に書込めるだけの広さを持つつぎ日用バフファ
34a、35aを設けて、つぎ目部分に存在する部品を
二重に書込むようにする。すなわち、まずバッファメモ
リ34に順次データを書込んでいき、その終りに近づい
たら、もう一方のバッファメモリ35内のつぎ日用バン
ファ35aにも同時に同じデータを書込んでいく。
Therefore, in this embodiment, as shown in FIG. 11, next-day buffers 34a and 35a are provided at the beginning of each of the buffer memories 34 and 35, each having a space large enough to completely write one component. Then, the parts existing at the seam are written twice. That is, first, data is sequentially written into the buffer memory 34, and when it approaches the end, the same data is simultaneously written into the next day's buffer 35a in the other buffer memory 35.

その後、バッファメモリ35への書込が終りに近づいた
ら、今度は、バッファメモリ34内のつぎ日用バッファ
34aにも同時に同じデータを書込んでいく。このよう
にして、バッファメモリ34゜35に交互に繰返してデ
ータを書込んでいく。従って、第11図において、例え
ば部品Q+がバッファメモリ34の後端で切れていても
、もう一方のバッファメモリ35には完全に入っている
Thereafter, when writing to the buffer memory 35 approaches the end, the same data is simultaneously written to the next day's buffer 34a in the buffer memory 34. In this way, data is written alternately and repeatedly into the buffer memories 34 and 35. Therefore, in FIG. 11, even if the component Q+ is cut off at the rear end of the buffer memory 34, it is completely contained in the other buffer memory 35.

一方、データの読出し処理と判定回路36による判定処
理は、上記書込み処理と同時に進行する。
On the other hand, the data read process and the determination process by the determination circuit 36 proceed simultaneously with the write process.

すなわち、バッファメモリ34に書込まれたデータは、
次のデータの書込みにバッファメモリ35のみが使用さ
れている期間t1で読出され、かつ判定回路36による
処理が行われる。もう一方のバッファメモリ35に書込
まれたデータも同様に、期間t2で読出され、かつ判定
処理が行われる。
That is, the data written to the buffer memory 34 is
The data is read out during a period t1 when only the buffer memory 35 is used for writing the next data, and is processed by the determination circuit 36. The data written in the other buffer memory 35 is similarly read out during period t2, and the determination process is performed.

この判定処理では、バッファメモリ34.35から読出
されたデータのうち、途切れた部品を無視して、完全な
部品だけを判定の対象とすればよい。
In this determination process, it is sufficient to ignore interrupted parts among the data read out from the buffer memories 34 and 35 and to target only complete parts for determination.

具体的な判定処理は、前述した第5図の処理と同様であ
る。
The specific determination process is the same as the process shown in FIG. 5 described above.

このようにして、リアルタイムで、かつつぎ目の影響の
ない処理が可能となる。
In this way, processing can be performed in real time and without the influence of stitches.

なお参考までに、第12図に、以上で用いたアドレスと
被検知面(プリント板)との対応関係の一例を示す。例
えば、2048画素のラインセンサを用いた場合、この
1ラインは実際のプリント板の200Hに相当する。ガ
ルバノミラ−の往復と、それに伴うステージの移動によ
り、上記バッファメモリには、プリント板上の1つのブ
ロック(51m X 200m )に対応するデータ(
高さデータであれば各x、y位置ごとの2アドレス、輝
度データであれば、各x、  y位置ごとの検知信号強
度)が書込まれる。チンブ部品の長さが約2鶴であるこ
とを考慮し、上述したつぎ目の影響をなくすために、次
のブロックとは3tlだけ重複している。
For reference, FIG. 12 shows an example of the correspondence between the addresses used above and the surface to be detected (printed board). For example, when a line sensor with 2048 pixels is used, this one line corresponds to 200H of an actual printed board. Due to the reciprocation of the galvano mirror and the accompanying movement of the stage, the buffer memory stores data (51m x 200m) corresponding to one block (51m x 200m) on the printed board.
For height data, two addresses are written for each x and y position, and for brightness data, two addresses are written for each x and y position (detected signal strength for each x and y position). Considering that the length of the chimbu part is about 2 cranes, it overlaps with the next block by 3 tl in order to eliminate the above-mentioned joint effect.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、色のコントラストの悪い部品をも正確
に検査でき、しかも部品の有無や位置ずれ等の検査のみ
ならず、部品の高さ不良や品種ちがい等の様々な欠陥を
も検査できる。
According to the present invention, it is possible to accurately inspect even parts with poor color contrast, and it is also possible to inspect not only the presence or absence of parts and misalignment, but also various defects such as poor height of parts and wrong product type. .

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

第1図は本発明の一実施例を示す構成図、第2図は同実
施例における同期関係を示す波形図、 第3図(alはラインセンサで検知して得られる光切断
画像の一例を示す図、 第3図(ト))は同図(alに示した画像のうち2方向
の最高輝度点を示した図、 第4図は第1図のピーク検出回路13をより具体的に示
す回路図、 第5図は同実施例に係る判定手段の処理を示すフローチ
ャート、 第6図ta)は高さデータの21a化処理を行う際に設
定されるウィンドウの一例を示す図、第6図(b)は高
さデータの2値化処理を行う際のスライスレベルを決定
するためのヒストグラム処理を示す図、 第7図は本発明の他の実施例に係る信号処理系を示す構
成図、 第8図は第7図のピーク検出回路3工をより具体的に示
す回路図、 第9図は第8図に示した回路の処理動作を示すフローチ
ャート、 第10図は第7図のデータ選択回路33をより具体的に
示す回路図、 第11図はバッファメモリ34.35におけるデータの
書込みおよび読出しの処理を模式的に示す図、 第12図は得られたデータのアドレスと被検知面との対
応関係を示す図である。 1・・・半導体レーザ、 2・・・コリメートレンズ、 3・・・シリンドリカルレンズ、 6・・・ガルバノミラ−1 7・・・ラインセンサ、 13・・・ピーク検出回路、 31.32・・・ピーク検出回路、 33・・・データ選択回路、 34.35・・・バッファメモリ、 36・・・判定回路、 60・・・ガルバノミラ−1 70・・・ラインセンサ。
Fig. 1 is a configuration diagram showing an embodiment of the present invention, Fig. 2 is a waveform diagram showing the synchronization relationship in the same embodiment, and Fig. 3 (al is an example of a light cut image obtained by detection with a line sensor. Figure 3 (G)) is a diagram showing the highest brightness points in two directions of the image shown in Figure (al), and Figure 4 shows the peak detection circuit 13 in Figure 1 in more detail. A circuit diagram, FIG. 5 is a flowchart showing the processing of the determination means according to the same embodiment, and FIG. (b) is a diagram showing histogram processing for determining the slice level when performing binarization processing of height data; FIG. 7 is a block diagram showing a signal processing system according to another embodiment of the present invention; Fig. 8 is a circuit diagram showing more specifically the three components of the peak detection circuit shown in Fig. 7, Fig. 9 is a flowchart showing the processing operation of the circuit shown in Fig. 8, and Fig. 10 is the data selection shown in Fig. 7. A circuit diagram showing the circuit 33 in more detail, FIG. 11 is a diagram schematically showing the processing of writing and reading data in the buffer memory 34 and 35, and FIG. 12 shows the address of the obtained data and the surface to be detected. FIG. DESCRIPTION OF SYMBOLS 1... Semiconductor laser, 2... Collimating lens, 3... Cylindrical lens, 6... Galvano mirror 1 7... Line sensor, 13... Peak detection circuit, 31.32... Peak Detection circuit, 33... Data selection circuit, 34.35... Buffer memory, 36... Judgment circuit, 60... Galvano mirror 1 70... Line sensor.

Claims (1)

【特許請求の範囲】 1)部品の実装されたプリント板上にスリット状の光ビ
ームを照射する光照射手段(1、2、3)と、 該光ビームの照射による前記プリント板上から上記照射
方向とは異なる方向への反射光をガルバノミラー(6)
で上下方向に振りながら、この振られた反射光を順次ラ
インセンサ(7)で検知する光検知手段(5、6、7、
8)と、 前記ガルバノミラーの振りに従って前記ラインセンサの
各受光素子毎に順次得られる検知信号のピーク値を検出
し、該ピーク値における高さデータと輝度データを得る
ピーク検出手段(13)と該ピーク検出手段で得られた
前記プリント板の各位置毎の高さデータおよび輝度デー
タを、予め記憶されている基準データと比較し、その比
較結果に基づいて前記部品の各種実装状態を判定する判
定手段とを具備したことを特徴とする実装部品検査装置
。 2)前記光照射手段は、レーザ光を出力する半導体レー
ザ(1)と該半導体レーザで得られたレーザ光を平行光
に変換するコリメートレンズ(2)と該コリメートレン
ズで得られた平行光を前記スリット状の光ビームに変換
するシリンドリカルレンズ(3)とから構成されること
を特徴とする特許請求の範囲第1項記載の実装部品検査
装置。 3)前記光検知手段は、前記ガルバノミラーおよび前記
ラインセンサを2組(6、7;60、70)備え、前記
反射光の検知を互いに異なる2方向から行うことを特徴
とする特許請求の範囲第1項または第2項記載の実装部
品検査装置。 4)前記ラインセンサはCCDラインセンサであること
を特徴とする特許請求の範囲第1項乃至第3項のいずれ
か1つに記載の実装部品検査装置。 5)前記ピーク検出手段および前記判定手段による処理
はリアルタイムで行うことを特徴とする特許請求の範囲
第1項乃至第4項のいずれか1つに記載の実装部品検査
装置。 6)前記判定手段は、前記高さデータを2値化して前記
基準データの部品位置と比較することにより前記部品の
有無および位置ずれについての判定を行い、また前記高
さデータから得られる前記プリント板の基板に対する部
品の相対高さを前記基準データの部品高さと比較するこ
とにより前記部品の高さ不良についての判定を行い、更
に前記輝度データを2値化して得られる前記部品上の文
字・記号を前記基準データの文字・記号と比較すること
により前記部品の品種違いおよび方向違いについての判
定を行うことを特徴とする特許請求の範囲第1項乃至第
5項のいずれか1つに記載の実装部品検査装置。
[Scope of Claims] 1) Light irradiation means (1, 2, 3) for irradiating a slit-shaped light beam onto a printed board on which components are mounted; and irradiating the printed board with the light beam. Galvano mirror (6) to reflect light in a direction different from the direction
The light detection means (5, 6, 7,
8); and peak detection means (13) for detecting a peak value of a detection signal sequentially obtained for each light receiving element of the line sensor according to the swing of the galvanometer mirror, and obtaining height data and brightness data at the peak value. The height data and luminance data for each position of the printed board obtained by the peak detection means are compared with pre-stored reference data, and various mounting states of the components are determined based on the comparison results. A mounted component inspection device characterized by comprising: a determining means. 2) The light irradiation means includes a semiconductor laser (1) that outputs a laser beam, a collimating lens (2) that converts the laser beam obtained by the semiconductor laser into parallel light, and a collimating lens that converts the parallel light obtained by the collimating lens. The mounted component inspection apparatus according to claim 1, further comprising a cylindrical lens (3) that converts the light beam into a slit-shaped light beam. 3) The light detection means includes two sets (6, 7; 60, 70) of the galvanometer mirror and the line sensor, and detects the reflected light from two different directions. The mounted component inspection device according to item 1 or 2. 4) The mounted component inspection apparatus according to any one of claims 1 to 3, wherein the line sensor is a CCD line sensor. 5) The mounted component inspection apparatus according to any one of claims 1 to 4, wherein the processing by the peak detection means and the determination means is performed in real time. 6) The determining means binarizes the height data and compares it with the component position of the reference data to determine the presence or absence of the component and positional deviation, and also determines the presence or absence of the component and the positional deviation of the print obtained from the height data. By comparing the relative height of the component with respect to the board of the board with the component height of the reference data, a determination is made as to whether the height of the component is defective, and furthermore, the characters on the component obtained by binarizing the luminance data are According to any one of claims 1 to 5, a determination is made as to a difference in type and direction of the parts by comparing a symbol with a character/symbol of the reference data. mounted parts inspection equipment.
JP14294786A 1986-06-20 1986-06-20 Inspecting instrument for package parts Pending JPS62299704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14294786A JPS62299704A (en) 1986-06-20 1986-06-20 Inspecting instrument for package parts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14294786A JPS62299704A (en) 1986-06-20 1986-06-20 Inspecting instrument for package parts

Publications (1)

Publication Number Publication Date
JPS62299704A true JPS62299704A (en) 1987-12-26

Family

ID=15327347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14294786A Pending JPS62299704A (en) 1986-06-20 1986-06-20 Inspecting instrument for package parts

Country Status (1)

Country Link
JP (1) JPS62299704A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008309532A (en) * 2007-06-13 2008-12-25 Lasertec Corp Three-dimensional measuring apparatus and inspection apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008309532A (en) * 2007-06-13 2008-12-25 Lasertec Corp Three-dimensional measuring apparatus and inspection apparatus

Similar Documents

Publication Publication Date Title
JP3132565B2 (en) Defect inspection method and apparatus
EP0467149B1 (en) Method of and device for inspecting pattern of printed circuit board
JPS60219504A (en) Measuring device for height of circuit element on substrate
JP3181435B2 (en) Image processing apparatus and image processing method
JPS62299704A (en) Inspecting instrument for package parts
JP2710527B2 (en) Inspection equipment for periodic patterns
US5661819A (en) Cylindrical container inner surface tester having compensation for measurements made at oblique angles
JPH06258226A (en) Appearance inspection method for tablet
JPS6315380A (en) Method and device for inspecting article having repeated pattern
JPS62144008A (en) Apparatus for inspecting pattern of printed circuit board
JP2004226318A (en) Scanning head and visual inspection apparatus capable of using the same
JPS6326510A (en) Inspection device for packaging component
JP3207974B2 (en) Photomask defect inspection method
JPH01150987A (en) Method for recognizing shape
JP2000121337A (en) Method and device for image correction
JPS6326511A (en) Inspection device for packaging component
JP2701872B2 (en) Surface inspection system
JPH0224322B2 (en)
JPH0399250A (en) Mounting state recognizing apparatus
JPS6027064B2 (en) Label front and back inspection device
JP3029141B2 (en) Print evaluation and print evaluation device
JPH01269035A (en) Instrument for inspecting printed circuit board
JPH0619252B2 (en) Soldering inspection device for printed wiring boards
JPH061247B2 (en) Defect inspection method by image processing
JPH0325357A (en) Image defect detecting method