JPH036409A - Method and apparatus for inspecting printed circuit board - Google Patents

Method and apparatus for inspecting printed circuit board

Info

Publication number
JPH036409A
JPH036409A JP1141640A JP14164089A JPH036409A JP H036409 A JPH036409 A JP H036409A JP 1141640 A JP1141640 A JP 1141640A JP 14164089 A JP14164089 A JP 14164089A JP H036409 A JPH036409 A JP H036409A
Authority
JP
Japan
Prior art keywords
printed circuit
circuit board
holes
positions
shape
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1141640A
Other languages
Japanese (ja)
Other versions
JPH0749933B2 (en
Inventor
Yukitaka Kuzukawa
葛川 幸隆
Yutaka Ikeda
豊 池田
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.)
Y M SYST KK
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Y M SYST KK
Dainippon Screen Manufacturing Co 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 Y M SYST KK, Dainippon Screen Manufacturing Co Ltd filed Critical Y M SYST KK
Priority to JP1141640A priority Critical patent/JPH0749933B2/en
Publication of JPH036409A publication Critical patent/JPH036409A/en
Publication of JPH0749933B2 publication Critical patent/JPH0749933B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To enable accurate position alignment of the contour line of a board in a short time by determining an approximate contour line on the basis of positions of three or more sample points on the contour line. CONSTITUTION:A light from a light source 10 is applied to a printed circuit board 21 on a conveyance stage 20 and it is transmitted or reflected corresponding to the contour line of the board 21, position of holes thereof, etc. This conveyance stage 20 conveys the board 21 in a sub-scanning direction Y. The light from the board 21 is given to an image sensor 30 disposed in a main- scanning direction X and the contour line of the board 21, the positions of the holes thereof, etc. are read therein. Signals representing informations on the contour line and holes of the board 21 read in the sensor 30 are given to a processing element 40, subjected therein to a binary-coding processing and a noise-removing processing and then given to a printed circuit board inspecting circuit 50. Moreover, the results of processings by the circuit 50 are given to a display element 60 and displayed on or outputted to CRT 61 or a printer 62.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はプリント基板の検査方法および装置に関する
ものであり、特に光電走査を行ってスルーホールの個数
や位置ずれを検査する方法および装置に関するものであ
る。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method and apparatus for inspecting printed circuit boards, and in particular to a method and apparatus for inspecting the number and positional deviation of through holes by photoelectric scanning. It is.

〔従来の技術〕[Conventional technology]

プリント基板を光電走査して、スルーホールやパターン
の検査を行う方法、装置については、例えば″゛サーキ
ツトテクノロジvo1.3No、6(1988)”P、
354〜P、358に開示されているような、密着型イ
メージセンサを用いて、搬送されるプリント基板のイメ
ージを読み取り、プリント基板の検査を行う方法、装置
などが知られている。
For information on methods and devices for inspecting through holes and patterns by photoelectrically scanning printed circuit boards, see, for example, "Circuit Technology Vol. 1.3 No. 6 (1988)" P.
2. Description of the Related Art There are known methods and apparatuses for inspecting a printed circuit board by reading an image of a printed circuit board being transported using a contact type image sensor, as disclosed in Japanese Patent No. 354-P, 358.

上記の文献や他の文献において提示されている手法の一
つに、あらかじめ標準基板の基準データ(マスターデー
タ)を記憶しておき、搬送される被検査基板の外形線の
形状やスルーホールなどの表面形状に関するデータとマ
スターデータとの比較、照合を行うことにより、被検査
基板の良否を判定する比較法がある。
One of the methods proposed in the above-mentioned literature and other literature is to memorize the standard data (master data) of the standard board in advance, and check the outline shape, through holes, etc. of the board to be inspected to be transported. There is a comparison method that determines the quality of a board to be inspected by comparing and collating data regarding surface shape with master data.

このような比較法は、マスターデータと被検査基板のデ
ータとを比較して良否を判定するために、得られる情報
が多く、かつ正確な良否判定が行えるものであるが、被
検査基板の読み取りが不正確になると、その判定の結果
も不正確になる。
This type of comparison method can obtain a lot of information and make accurate pass/fail judgments by comparing the master data and the data of the test board, but it is difficult to read the test board. If becomes inaccurate, the result of the determination will also be inaccurate.

プリント基板のパターンの高密度化や、スルーホールの
小径化(ミニバイアホール化)などが進むにつれて、比
較法を行うにあたって読み取り誤差を小さくするための
技術がさらに望まれており、基板の搬送に際して位置決
めのためのガイドを用いた搬送装置なども提案されてい
る。
As printed circuit board patterns become denser and through holes become smaller (mini-via holes), there is a growing need for technology to reduce reading errors when carrying out comparison methods. Conveying devices using guides for positioning have also been proposed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、ガイドなどの機械的な位置決め手段を用
いた装置では、ガイド自体の精度が低いため、および基
板自体のガタつきなどのために高精度の位置決めが困難
であるという問題点かあった。
However, devices using mechanical positioning means such as guides have problems in that highly accurate positioning is difficult due to the low precision of the guides themselves and the wobbling of the substrates themselves.

また、読み取られたプリント基板のデータに基づいて、
座標変換などの抽圧を電子的に行い、マスターデータと
比較する手法も提案されているが、処理に時間がかかり
すぎたり、処理結果も不正確であるという問題点があっ
た。
Also, based on the read printed circuit board data,
A method has been proposed in which extraction, such as coordinate transformation, is performed electronically and compared with master data, but this method has problems in that the processing takes too much time and the processing results are inaccurate.

さらに、以上のような手法では、基板の外形線の位置合
せは行えても、基板上のパターンずれによる誤差には対
処できないという問題点もあった。
Furthermore, although the above-described method can align the outline of the substrate, there is a problem in that it cannot deal with errors caused by misalignment of patterns on the substrate.

〔発明の目的〕[Purpose of the invention]

この発明は以上のような事情を考慮してなされたもので
あり、短時間で正確に基板の外形線の位置あわせができ
るプリント基板の検査方法および装置を得ることを第1
の目的とする。
This invention has been made in consideration of the above circumstances, and its first object is to provide a printed circuit board inspection method and apparatus that can accurately align the outline of the circuit board in a short time.
The purpose of

また、基板上のパターンずれによる誤差を解消したプリ
ント基板の検査方法および装置を得ることを第2の目的
とする。
A second object of the present invention is to provide a method and apparatus for inspecting a printed circuit board that eliminates errors caused by pattern displacement on the circuit board.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係る第1の構成のプリント基板の検査方法は
、複数の辺によって構成される標準形状に基づいた形状
を有する基板上に、標準パターンに基づいた位置に複数
の孔を設けられたプリント基板を検査する方法であって
、まず標準形状および標準パターンの座標情報を示すマ
スターデータを準備する。
The first method of inspecting a printed circuit board according to the present invention is to inspect a printed circuit board having a plurality of holes at positions based on a standard pattern on a substrate having a shape based on a standard shape constituted by a plurality of sides. In this method of inspecting a board, first, master data indicating coordinate information of a standard shape and a standard pattern is prepared.

次に、プリント基板を光電走査して、そのプリント基板
の形状および複数の孔の位置を読み取る。
Next, the printed circuit board is photoelectrically scanned to read the shape of the printed circuit board and the positions of the plurality of holes.

次に、プリント基板の形状の外形線上の3つ以上のサン
プル点の位置を認識し、それらのサンプル点の位置に基
づいて、外形線を直線近似した近似外形線を求める。
Next, the positions of three or more sample points on the outline of the printed circuit board shape are recognized, and based on the positions of these sample points, an approximate outline is obtained by linearly approximating the outline.

さらに、所定の座標系において、近似外形線の座標情報
とこれに対応する辺の座標情報とに基づいて標準形状と
プリント基板の形状との間の相対的位置関係を求め、そ
の相対的位置関係に基づいて、読み取られた複数の孔の
位置を座標変換し、対応する修正位置を求める。
Furthermore, in a predetermined coordinate system, the relative positional relationship between the standard shape and the printed circuit board shape is determined based on the coordinate information of the approximate outline and the coordinate information of the corresponding sides, and the relative positional relationship is determined. Based on the coordinates of the read holes, the corresponding corrected positions are determined.

そして、標準パターンの座標情報を用いつつ、修正位置
上の孔と標準パターン上の孔とを照合することにより、
プリント基板における複数の孔の個数および位置を認識
するものである。
Then, by comparing the hole at the correction position and the hole on the standard pattern while using the coordinate information of the standard pattern,
This method recognizes the number and position of a plurality of holes in a printed circuit board.

この発明に係る第2の構成のプリント基板の検査方法は
、第1の構成のプリント基板の検査方法によって標準形
状とプリント基板の形状との間の相対的位置関係を求め
、その相対的位置関係に基づいて、読み取られた複数の
孔の位置を座標変換した後、標準パターン上の上の所定
の2つの孔を示す第1および第2の基準位置を特定する
The method for inspecting a printed circuit board having the second configuration according to the present invention includes determining the relative positional relationship between the standard shape and the shape of the printed circuit board by the method for inspecting the printed circuit board having the first configuration; After performing coordinate transformation on the positions of the plurality of read holes based on the above, first and second reference positions indicating the upper two predetermined holes on the standard pattern are specified.

次に、読み取られた複数の孔の位置の中から所定の2つ
の孔を示す第1および第2の実測位置を求める。
Next, first and second actually measured positions indicating two predetermined holes are determined from among the positions of the plurality of holes that have been read.

次に、所定の座標系において、第1および第2の実測位
置と第1および第2の基準位置との相対的位置関係を求
める。
Next, in a predetermined coordinate system, a relative positional relationship between the first and second actually measured positions and the first and second reference positions is determined.

そして、その相対的位置関係に基づいて、複数の孔の位
置を座標変換し、対応する修正位置を求め、修正位置上
の孔と標準パターン」二の孔とを照合することにより、
プリント基板における複数の孔の個数および位置を認識
するものである。
Then, based on the relative positional relationship, the positions of the multiple holes are converted into coordinates, the corresponding correction position is obtained, and the hole at the correction position is compared with the hole in the standard pattern "2."
This method recognizes the number and position of a plurality of holes in a printed circuit board.

さらに、この発明に係るプリント基板の検査装置は、第
1および第2の構成のプリント基板の検査方法を実行す
るように構成されたものである。
Furthermore, the printed circuit board inspection apparatus according to the present invention is configured to execute the printed circuit board inspection methods of the first and second configurations.

〔作用〕[Effect]

この発明における近似外形線は、外形線上の3つ以上の
サンプル点の位置によって決定されるので、外形線の凹
凸の影響が除去される。
Since the approximate contour line in this invention is determined by the positions of three or more sample points on the contour line, the influence of unevenness of the contour line is removed.

また、この発明における第1および第2の実測位置は、
第1および第2の基準位置と比較され、実測位置と基準
位置との間のずれが求められるので、標準パターンと実
測データによって与えられるパターンとの間のずれが検
出される。
Moreover, the first and second actually measured positions in this invention are
The measured position is compared with the first and second reference positions, and the deviation between the measured position and the reference position is determined, so that the deviation between the standard pattern and the pattern given by the measured data is detected.

〔実施例〕〔Example〕

A、全体構成と概略動作 第2図はこの発明の一実施例を適用するプリント基板検
査装置のブロック図である。また第3図はプリント基板
検査装置の外観図である。
A. Overall structure and general operation FIG. 2 is a block diagram of a printed circuit board inspection apparatus to which an embodiment of the present invention is applied. Moreover, FIG. 3 is an external view of the printed circuit board inspection apparatus.

第2図において、例えばLEDアレイなどによって構成
される光源10からの光は搬送台20上のプリント基板
21に照射され、プリント基板21 ] 2 1の外形線や、スルーホールおよび取付穴などを含む孔
(ホール)の位置などに対応して透過1反射される。搬
送台20はプリント基板2]を副走査方向Yに平行に搬
送する。またプリント基板21からの光は主走査方向X
に配置された、例えば密着型のイメージセンサ30に与
えられ、プリント基板2]の外形線や孔の位置などが、
そこで読み取られる。プリント基板2]は検査装置上で
定義されるX−Y座標系の上で移動する。
In FIG. 2, light from a light source 10 constituted by, for example, an LED array is irradiated onto a printed circuit board 21 on a transfer table 20, including the outline of the printed circuit board 21, through holes, mounting holes, etc. One is transmitted and one is reflected depending on the position of the hole. The conveyor table 20 conveys the printed circuit board 2 in parallel to the sub-scanning direction Y. Also, the light from the printed circuit board 21 is transmitted in the main scanning direction
For example, the outline of the printed circuit board 2, the position of the holes, etc. are given to the contact type image sensor 30 disposed in the
It is read there. The printed circuit board 2] moves on an X-Y coordinate system defined on the inspection device.

イメージセンサ30で読み取られたプリント基板21の
外形線や孔に関する情報を示す信号は処理部40に与え
られ、2値化処理や、ノイズ除去処理を受けた後、後述
する処理を行うプリント基板検査回路50に与えられる
。プリント基板検査回路50で処理された結果は表示部
60に与えられ、CRT61やプリンタ62上に表示、
出力される。
Signals indicating information on the outline and holes of the printed circuit board 21 read by the image sensor 30 are given to the processing unit 40, and after being subjected to binarization processing and noise removal processing, the printed circuit board inspection is performed to perform the processing described below. is applied to circuit 50. The results processed by the printed circuit board inspection circuit 50 are given to the display section 60 and displayed on the CRT 61 or printer 62.
Output.

また、処理部40は駆動部70に制御命令を与えること
により、搬送台20の動作を制御する。
Furthermore, the processing section 40 controls the operation of the conveyance table 20 by giving a control command to the driving section 70 .

駆動部70は図示されないパルスモータやモータコント
ローラなどによって構成される。さらに、以上のような
構成の動作の開始や停止などの指示は、パネルやキーボ
ードなどで構成される操作部80で行われる。
The drive unit 70 is composed of a pulse motor, a motor controller, etc. (not shown). Furthermore, instructions to start or stop the operation of the above-described configuration are performed using an operation unit 80 that includes a panel, a keyboard, and the like.

なお、第3図においては、第2図に示される構成の他に
、オプションで取り付けられる良品ストッカー91や不
良品ストッカー92が示されている。スルーホール検査
などの種々の検査を経て良品と判定されたプリント基板
は良品ストッカー91に、不良品と判定されたプリント
基板は不良品ストッカー92に搬送される。
In addition to the configuration shown in FIG. 2, FIG. 3 also shows a good product stocker 91 and a defective product stocker 92, which can be attached as options. Printed circuit boards determined to be non-defective after various inspections such as through-hole inspection are transported to a non-defective product stocker 91, and printed circuit boards determined to be defective are transported to a defective product stocker 92.

B、データ型式 次に、この発明のプリント基板の検査方法に用いられる
データの型式について説明する。第4図は、プリント基
板上のスルーホールを示す図である。第4図を参照して
、データの読み取りおよびその型式について説明する。
B. Data Format Next, the data format used in the printed circuit board inspection method of the present invention will be explained. FIG. 4 is a diagram showing through holes on the printed circuit board. Data reading and its format will be explained with reference to FIG.

前述したように、プリント基板21は副走査方向Yに平
行に搬送される。第2図および第3図に示すイメージセ
ンサ30は主走査方向Xに複数の  3 4 CCDなどを配置した構成を有しており、走査線上の画
素ごとにプリント基板21の画像情報をアナログ的に読
み取る。このアナログ値は第2図に示す処理部40内の
図示しないA/D変換器によって2値化され、明部およ
び暗部を示す情報となる。
As described above, the printed circuit board 21 is transported parallel to the sub-scanning direction Y. The image sensor 30 shown in FIGS. 2 and 3 has a configuration in which a plurality of 3 4 CCDs are arranged in the main scanning direction read. This analog value is binarized by an A/D converter (not shown) in the processing section 40 shown in FIG. 2, and becomes information indicating bright areas and dark areas.

第4図において、プリント基板21から離れた走査線S
LOにおいては、全画素について明部を示す情報が連続
するデータが生成される。このデータはランレングスフ
ォーマット化され、明部を示すイメージデータと明部の
長さとの組み合わせによって構成される1つのコードが
生成される。
In FIG. 4, the scanning line S away from the printed circuit board 21
In LO, data in which information indicating bright areas is continuous for all pixels is generated. This data is formatted into a run length format, and one code is generated by a combination of image data indicating a bright area and the length of the bright area.

なおこの期間は、プリント基板21を走査しないアイド
ルタイムとして、後述する検査に関する処理は特に行わ
ない。
Note that this period is an idle time in which the printed circuit board 21 is not scanned, and no particular processing related to inspection, which will be described later, is performed.

走査線SLIにおいて、プリント基板2]の読み取りが
始まると、プリント基板21の両側の2つの明部とプリ
ント基板21上の1つの暗部とに対応して、ランレング
スフォーマット化された3つのコードが生成される。こ
のような3つのコドを生成する最初の走査線SLIのア
ドレスを用いて、プリント基板21の端部の座標情報が
与えられる。またこの端部を示す座標情報は、所定のア
ドレスを有するメモリ領域内に格納され、後述する処理
において用いられる。
When the reading of the printed circuit board 2 begins in the scanning line SLI, three codes in run-length format are read, corresponding to two bright areas on both sides of the printed circuit board 21 and one dark area on the printed circuit board 21. generated. The coordinate information of the end of the printed circuit board 21 is given using the address of the first scanning line SLI that generates these three codes. Further, coordinate information indicating this end portion is stored in a memory area having a predetermined address, and is used in processing to be described later.

走査線SL2においては、ホールH1における明部が認
識され、5つのコードが生成される。ホルH1には他の
ホールと区別するためにラベルLA=1が付与される。
In the scanning line SL2, the bright part in the hole H1 is recognized, and five codes are generated. A label LA=1 is given to hole H1 to distinguish it from other holes.

ホールH1の開始点のX座標X8□および終了点のX座
標XE1は、それぞれ始まりの画素アドレスLEおよび
終わりの画素アドレスTEとして仮に登録される。さら
に、X軸方向の直径DIA=TE−LEが計算され、仮
に登録される。
The X coordinate X8□ of the starting point and the X coordinate XE1 of the ending point of the hole H1 are provisionally registered as a starting pixel address LE and an ending pixel address TE, respectively. Furthermore, the diameter DIA=TE-LE in the X-axis direction is calculated and provisionally registered.

走査線SL3においてはホールH2における明部も認識
され、ホールH2に関する処理も始まる。
In the scanning line SL3, the bright portion in the hole H2 is also recognized, and processing regarding the hole H2 also begins.

な′お、走査線SLB上のホールH1の開始点および終
了点のX座標x   x  と、走査ライン5L82″
 E2 2上のホールH1の開始点および終了点のX座標XSl
’  xElとの間の大小関係は、 5 x  >x  、x  <x  となり、E2   E
l   32  5L (XE2  XEL) X (XS2  X5t) <
 0という関係が成立する。開始点および終了点の各座
標間に上記の関係が成立するため、これらの点が同一の
ホールH1に属していることが認識される。
Furthermore, the X coordinates x x of the start and end points of hole H1 on scanning line SLB and scanning line 5L82''
X coordinates XSl of the start and end points of hole H1 on E2 2
' The magnitude relationship between xEl is 5 x > x, x < x, and E2 E
l 32 5L (XE2 XEL) X (XS2 X5t) <
A relationship of 0 holds true. Since the above relationship is established between the coordinates of the start point and the end point, it is recognized that these points belong to the same hole H1.

また直径DIAは走査線ごとに計算されており、より大
きい値を取るように更新されている。走査線SL3にお
いてホールH1に関する直径DIAは最大値を取り、ホ
ールH1に関するX軸方向の直径が確定する。また、こ
の時の画素アドレスLEおよび画素アドレスTEが、ホ
ールH1に関する開始点および終了点として登録される
Also, the diameter DIA is calculated for each scanning line and updated to take a larger value. At the scanning line SL3, the diameter DIA of the hole H1 takes the maximum value, and the diameter of the hole H1 in the X-axis direction is determined. Furthermore, the pixel address LE and pixel address TE at this time are registered as the starting point and ending point regarding the hole H1.

走査線SL5においては、ホールH1が認識されなくな
る。したがって、その1つ前の走査線SL4がホールH
1に関する最終の走査線となる。
In the scanning line SL5, the hole H1 is no longer recognized. Therefore, the previous scanning line SL4 is the hole H.
This is the final scan line for 1.

最初の走査線SLIから走査線SL4までホールH1は
連続して主走査を行われる。この連続して主走査を行っ
た回数LCはホールH]のY軸方向の直径に対応する。
Main scanning is continuously performed on the hole H1 from the first scanning line SLI to the scanning line SL4. The number of consecutive main scans LC corresponds to the diameter of the hole H in the Y-axis direction.

また、ホールH1に関する走] 6 査が終了すると、例えば最大の直径DIAを与える走査
線SL上の開始点および終了点の座標情報から、中心の
X座標XCおよびY座標YCも求められ、最終的にホー
ルH1に関するデータが下記表1のように構成される。
In addition, when scanning for hole H1 is completed, the X coordinate XC and Y coordinate YC of the center are also determined from the coordinate information of the starting point and ending point on the scanning line SL that gives the maximum diameter DIA, for example, and the final Data regarding the hole H1 is configured as shown in Table 1 below.

表  1 また同様のデータがホールH2などの他のホルについて
も生成される。さらに、再びアイドルタイムが始まる走
査線SL7の1つ前の走査線SL6において、走査線S
LIと同様にプリント基板21の端部が認識され、外形
線に関するデータがすべてが得られる。
Table 1 Similar data is also generated for other holes such as hole H2. Furthermore, in the scanning line SL6 immediately before the scanning line SL7 where the idle time starts again, the scanning line S
As with LI, the edge of the printed circuit board 21 is recognized, and all data regarding the outline can be obtained.

C1外形線近似処理  7 8 次に、第2図に示すプリント基板検査回路50でソフト
的に行われる外形線近似処理について説明する。第1A
図はこの発明の一実施例による外形線近似処理の処理手
順を示すフローチャー1・である。また、第5図は、傾
いた状態で搬送されるプリント基板の走査読取りを行う
様子を示した図である。第4図に示す例においては、走
査線とプリント基板の外形線とが平行であったが、一般
には第5図に示すように傾きを有して搬送される。
C1 Outline Line Approximation Process 7 8 Next, the outline line approximation process performed by software in the printed circuit board inspection circuit 50 shown in FIG. 2 will be described. 1st A
The figure is a flowchart 1 showing the processing procedure of outline approximation processing according to an embodiment of the present invention. Further, FIG. 5 is a diagram showing how a printed circuit board that is transported in an inclined state is scanned. In the example shown in FIG. 4, the scanning line and the outline of the printed circuit board were parallel to each other, but generally the printed circuit board is conveyed with an inclination as shown in FIG.

第1A図のステップ31.1において、処理対象のプリ
ント基板の走査が完了したら、その中央領域を設定する
。第5図に示す例においては、イメージセンサ30の位
置にある走査線SLの下をプリント基板21の頂点りが
横切った時に走査が始まり、頂点Bが横切った時に走査
が終了する。頂点りから頂点Bまでのプリント基板21
のY軸方向の長さしを4分割して、L/4の長さを有す
る中央の2つの領域を合わせて中央領域MAとする。
In step 31.1 of FIG. 1A, once the scanning of the printed circuit board to be processed has been completed, its central region is established. In the example shown in FIG. 5, scanning starts when the apex of the printed circuit board 21 crosses under the scanning line SL located at the position of the image sensor 30, and ends when the apex B crosses the line. Printed circuit board 21 from apex to apex B
The length in the Y-axis direction is divided into four, and the two central areas having a length of L/4 are combined to form the central area MA.

傾きの角度θが極端に大きくなければ、中央領域MA内
には上辺ABおよび下辺CDの中央部分が含まれること
になる。
If the angle of inclination θ is not extremely large, the central region MA includes the central portions of the upper side AB and the lower side CD.

ステップS12では、中央領域に含まれる上辺および下
辺の各辺において、所定個数のサンプル点を設定する。
In step S12, a predetermined number of sample points are set on each of the upper and lower sides included in the central region.

第6図は第5図に示す辺ABの中央部分を拡大して示し
た図である。外形線OLは、一般に凹凸を有しており、
第6図に示す外形線OLも四部を形成している。外形線
OL上にはY軸方向に等間隔に3個以上のサンプル点P
1〜P9が設定される。なおサンプル点P1〜P9の座
標は、例えばX方向にランレングスフォーマット化され
たデータによって与えられる。
FIG. 6 is an enlarged view of the central portion of side AB shown in FIG. The outline line OL generally has unevenness,
The outline line OL shown in FIG. 6 also forms four parts. Three or more sample points P are placed at equal intervals in the Y-axis direction on the outline line OL.
1 to P9 are set. Note that the coordinates of the sample points P1 to P9 are given, for example, by data formatted in run length format in the X direction.

ステップ813では、ステップS12で設定した上辺お
よび下辺のサンプル点を直線で近似して1次の近似外形
線を求める。第6図においては、サンプル点P1〜P9
を最小二乗法によって近似して、1次の近似外形線OL
Iが求められる。サンプル点P1〜P3.P7〜P9は
ほぼ真の外形線OLO上に存在するが、サンプル点P4
〜P6は四部上にあり、プリント基板21の内側方向に
ずれて存在する。そのため、近似外形線OLIは 9 0 真の外形線OLOよりも内側にずれて設定される。
In step 813, the sample points on the upper and lower sides set in step S12 are approximated by straight lines to obtain a first-order approximate outline. In FIG. 6, sample points P1 to P9
is approximated by the least squares method to obtain the first-order approximate outline OL
I is required. Sample points P1 to P3. P7 to P9 exist almost on the true outline line OLO, but sample point P4
~P6 is located on the fourth part and is shifted toward the inner side of the printed circuit board 21. Therefore, the approximate outline OLI is set to be shifted inward from the true outline OLO.

ステップS14てはステップ813で設定した1次の近
似外形線を、上辺および下辺の各辺の全範囲にわたって
延長する。第7図は第6図に示す近似外形線を延長した
様子を示す図である。
In step S14, the first-order approximate outline set in step 813 is extended over the entire range of the upper and lower sides. FIG. 7 is a diagram showing an extension of the approximate outline shown in FIG. 6.

ステップS15では各辺の全範囲にわたってサンプル点
を設定し、そのサンプル点を1次の近似外形線との配置
関係に基づいて、2つのグループに分類する。第7図に
示す例においては、ある程度の大きさを有する凹部内の
サンプル点P4.P26などが近似外形線OLIから見
てプリント基板21の内側のグループG2に分類され、
他のサンプル点は近似外形線OL1から見てプリント基
板21の外側のグループG1に分類される。
In step S15, sample points are set over the entire range of each side, and the sample points are classified into two groups based on the arrangement relationship with the first-order approximate outline. In the example shown in FIG. 7, sample point P4. P26 etc. are classified into group G2 inside the printed circuit board 21 when viewed from the approximate outline OLI,
The other sample points are classified into a group G1 outside the printed circuit board 21 when viewed from the approximate outline line OL1.

ステップS16では、1次の近似外形線によって分類さ
れたグループの中から、より多数のサンプル点を含むグ
ループに属するサンプル点を用いて、2次の近似直線を
求める。第7図に示す例においては、サンプル点P4.
P26などの、グループG2に含まれる真の外形線OL
Oから比較的離れたサンプル点が排除される。そして、
グループG1に含まれる真の外形線OLOに比較的近い
サンプル点を用いて、2次の近似直線OL2が求められ
るので、真の外形線OLOにより近い近似外形線OL2
が得られる。
In step S16, a second-order approximate straight line is determined using sample points belonging to a group containing a larger number of sample points from among the groups classified by the first-order approximate contour line. In the example shown in FIG. 7, sample point P4.
True outline OL included in group G2, such as P26
Sample points relatively far from O are excluded. and,
Since the quadratic approximate straight line OL2 is obtained using sample points relatively close to the true outline OLO included in group G1, the approximate outline OL2 is closer to the true outline OLO.
is obtained.

ステップS17では、ステップS15およびステップS
16に相当する処理が所定回数(n回)行われたかどう
かの判断を行う。ステップ15およびステップ16の処
理をくり返すと、第7図のサンプル点P14などの微少
な四部にあるサンプル点も排除され、近似外形線は真の
外形線OLOに向かって収束していき、最終的には真の
外形線OLOに非常に近い図示しないn次の近似外形線
OLnが得られる。
In step S17, step S15 and step S
It is determined whether the process corresponding to step 16 has been performed a predetermined number of times (n times). By repeating the process of steps 15 and 16, sample points in the four small parts such as sample point P14 in FIG. 7 are also eliminated, and the approximate outline converges toward the true outline OLO, resulting in In other words, an n-th approximate outline line OLn (not shown) which is very close to the true outline line OLO is obtained.

ステップ318では、以上のようにして得られたn次の
近似外形線OLnを最終的な近似外形線として、以後の
処理に用いる。
In step 318, the n-th approximated outline OLn obtained as described above is used as the final approximated outline for subsequent processing.

なお、四部のサンプル点を排除する例について説明した
が、凸部のサンプル点も同様にして排除され、四部、凸
部の両方を含む場合でも、近似外影線は真の外形線に収
束していき、充分に近い近似外形線が得られる。
Although we have explained an example of excluding the sample points on the four parts, sample points on the convex parts are also excluded in the same way, and even if both the four parts and the convex parts are included, the approximate outline line will not converge to the true outline line. As a result, a sufficiently close approximate outline can be obtained.

以上のようにして第5図の上辺AB、下辺CDの方向性
が決定したら、次に右辺DA、左辺BCの方向性を決定
する。第1B図は右辺の位置の決定の処理手順を示すフ
ローチャー1・であり、第1A図に示す処理の後に行わ
れる。また、第8図は右辺の位置の決定の様子を示す図
である。
After the directions of the upper side AB and lower side CD in FIG. 5 are determined as described above, the directions of the right side DA and left side BC are determined next. FIG. 1B is a flowchart 1 showing the processing procedure for determining the position of the right side, which is performed after the processing shown in FIG. 1A. Further, FIG. 8 is a diagram showing how the position of the right side is determined.

まず、第1B図のステップS21で、n近の近似外形線
OLnによって与えられた上辺の端部(=1近に基準点
を設定し、そこがら上辺に垂直に仮の右辺を設定する。
First, in step S21 in FIG. 1B, a reference point is set near the end (=1) of the upper side given by the approximate outline line OLn near n, and a temporary right side is set perpendicular to the upper side from there.

第8図においては上辺AB上に基準点Kが設定され、そ
こがら仮の右辺りが設定される。なお、第8図において
はn次の近似外形線OLnと真の外形線OLOとは充分
に近く、近似外形線OLn上に頂点A、Bが存在すると
している。
In FIG. 8, a reference point K is set on the upper side AB, and a temporary right side is set from there. In FIG. 8, it is assumed that the nth-order approximate outline OLn and the true outline OLO are sufficiently close, and that vertices A and B exist on the approximate outline OLn.

ステップS22では、右辺上にサンプル点を設定し、そ
のサンプル点のそれぞれと仮の右辺との間のそれぞれの
距離を求める。第8図においては、右辺DA上にX方向
に等間隔にサンプル点Q1〜Q5を設定し、そのサンプ
ル点Q1〜Q5から、仮の右辺りまでの距離d1〜d5
を求める。なおサンプル点の数は任意の複数である。
In step S22, sample points are set on the right side, and distances between each of the sample points and the temporary right side are determined. In FIG. 8, sample points Q1 to Q5 are set at equal intervals in the X direction on the right side DA, and the distances d1 to d5 from the sample points Q1 to Q5 to the temporary right side are
seek. Note that the number of sample points is an arbitrary number.

ステップ23では、サンプル点の中から仮の右辺までの
最大の距離を与えるサンプル点を求め基準サンプル点と
する。第8図においては、距離d2が最大なので、サン
プル点Q2が基準サンプル点となる。
In step 23, a sample point that gives the maximum distance to the tentative right side is determined from among the sample points and is set as a reference sample point. In FIG. 8, since the distance d2 is the maximum, the sample point Q2 becomes the reference sample point.

ステップS24では、基準サンプル点を通り上辺に垂直
な直線を求め上辺との交点を新しい頂点とする。第8図
においては、基準サンプル点Q2を通り直線ABに垂直
な直線L1が求められる。
In step S24, a straight line passing through the reference sample point and perpendicular to the upper side is determined, and the point of intersection with the upper side is determined as a new vertex. In FIG. 8, a straight line L1 passing through the reference sample point Q2 and perpendicular to the straight line AB is determined.

また直線L1と直線ABとの交点A′が頂点Aに代る新
たな頂点A′として認識される。
Further, the intersection point A' between the straight line L1 and the straight line AB is recognized as a new vertex A' instead of the vertex A.

ステップS25では、新たに求まった頂点を各直線の端
点として、上辺および右辺を再設定する。
In step S25, the upper side and right side are reset using the newly found vertices as the end points of each straight line.

上辺および下辺の1つの端点と方向性が確定する。One end point and directionality of the upper and lower sides are determined.

第8図においては、頂点A′が直線Ll、ABの端点と
なり、上辺A’ Bおよび右辺A’Q2の方 3 4 向性が確定する。
In FIG. 8, the vertex A' becomes the end point of the straight lines Ll and AB, and the directions of the upper side A'B and the right side A'Q2 are determined.

以上のような処理を下辺と左辺についても行い第9図に
示すように左下の頂点C′を確定する。
The above-described processing is also performed on the lower and left sides to determine the lower left vertex C' as shown in FIG.

また、右辺と下辺の交点を頂点D /、左辺と上辺の交
点を頂点B′とする。仮の右辺および左辺から最大距離
を有するサンプル点を基準サンプル点として右辺および
左辺を決定したので、はとんどの場合新たに求められた
頂点A′〜D′は元の頂点A−Dよりも外側に位置する
。このようにして、プリント基板の各頂点部分の丸みや
各辺の凹部などの欠落の影響を排除し、プリント基板の
標準形状を正確に復元することができる。そのため例え
ば、第9図に示すようなプリント基板の外形線から所定
距離dO内の領域については、検査などの処理を行わな
いようにするマスキングを正確に実行できる。
Also, let the intersection of the right side and the lower side be the vertex D/, and the intersection of the left side and the upper side be the vertex B'. Since the right and left sides were determined using the sample point with the maximum distance from the tentative right and left sides as the reference sample point, in most cases the newly found vertices A' to D' are smaller than the original vertices A to D. located on the outside. In this way, it is possible to eliminate the effects of missing parts such as roundness at each vertex of the printed circuit board and concave portions on each side, and to accurately restore the standard shape of the printed circuit board. Therefore, for example, it is possible to accurately mask a region within a predetermined distance dO from the outline of the printed circuit board as shown in FIG. 9 to prevent processing such as inspection from being performed.

また、上辺A’ B’および下辺C’ D’ は最小二
乗法によって厳密に近似を行ったので、はぼ平行となり
、四角形A’B’C″D゛はほぼ長方形となる。
Further, since the upper side A'B' and the lower side C'D' are strictly approximated by the least squares method, they are almost parallel, and the quadrilateral A'B'C''D' is almost rectangular.

そのため、傾き角度θも正確に求められる。なお上辺A
’ B’ と下辺C’ D’の傾きが異なる時には、そ
の2つの傾き角度を平均して角度θを求めればよい。な
お、以上のようにして求められた角度θは、後述する比
較判定処理において用いられる。
Therefore, the tilt angle θ can also be accurately determined. Note that the upper side A
When the inclinations of 'B' and the lower side C' and D' are different, the angle θ may be obtained by averaging the two inclination angles. Note that the angle θ obtained as described above is used in the comparison and determination process described later.

D、比較判定処理 次に、マスターデータと実測データとの比較を行い、プ
リント基板の良否を判定する比較判定処理について説明
する。第1C図は比較判定処理の処理手順を示すフロー
チャートであり、この処理は、第1A図および第1B図
に示す外形線近似処理を行った後に行われる。また、第
10図は比較判定処理の様子を示す図である。この処理
もプリント基板検査回路50で行われる。
D. Comparison and Judgment Process Next, a comparison and judgment process will be described in which the master data and the measured data are compared to determine whether the printed circuit board is good or bad. FIG. 1C is a flowchart showing the procedure of the comparison and determination process, and this process is performed after the outline approximation process shown in FIGS. 1A and 1B is performed. Further, FIG. 10 is a diagram showing the state of the comparison and determination processing. This process is also performed by the printed circuit board inspection circuit 50.

第1C図のステップS31において、マスクデータの外
形線と前述した実測データの近似外形線との間の頂点合
せを行う。ここでマスターデータとは、プリント基板の
設計上の外形線やスルホール、取付穴の位置を示すもの
であり、プリント基板の標準形状および標準パターンを
与えるも 6 のである。また、マスターデータはプリント基板検査回
路50内の図示しない所定のメモリ領域に格納されてい
る。第10図においてはマスターデータの頂点AO−D
Oの中の右上の頂点AOと実測データの近似外形線の右
上の頂点A′とが一致するように近似外形線ABCDを
平行移動する。
In step S31 in FIG. 1C, the vertices are aligned between the outline of the mask data and the approximate outline of the actual measurement data described above. Here, the master data indicates the designed outline of the printed circuit board, the positions of through holes, and mounting holes, and provides the standard shape and standard pattern of the printed circuit board. Further, the master data is stored in a predetermined memory area (not shown) in the printed circuit board inspection circuit 50. In Figure 10, the master data vertices AO-D
The approximate contour line ABCD is translated in parallel so that the upper right vertex AO in O coincides with the upper right vertex A' of the approximate contour line of the actual measurement data.

ステップS32では、一致した頂点を中心として、傾き
角度を補正する方向に回転移動を行う。
In step S32, rotational movement is performed around the matched vertex in a direction to correct the tilt angle.

第10図においては、頂点A’  (AO)を中心とし
て近似外形線A’BC’D’を傾き角度θだけ回転し、
マスターデータの頂点AO−Doのそれぞれと頂点A′
〜D′のそれぞれとが、はぼ一致するように実測データ
の座標変換を行う。
In FIG. 10, the approximate outline line A'BC'D' is rotated by the inclination angle θ around the vertex A' (AO),
Each of the master data vertices AO-Do and the vertex A'
The coordinates of the measured data are transformed so that each of D' to D' closely matches each other.

ステップS51では座標変換後の実測データのホールの
位置、形状データと、マスターデータのホールの位置、
形状データとを照合して、ポールの有無、個数および形
状の良否などを判定する。
In step S51, the hole position and shape data of the measured data after coordinate transformation and the hole position of the master data,
The presence or absence of poles, the number of poles, and the quality of the shape are determined by comparing with the shape data.

第10図においては、マスターデータのホールHOに対
応する実測データのホールH3が回転により座標変換さ
れて、ホールHOの近くに移動する。
In FIG. 10, the hole H3 of the measured data corresponding to the hole HO of the master data is coordinate-transformed by rotation and moved near the hole HO.

さらに第11図に示すようにマスターデータのホールH
Oを中心として、所定の長さDXを一辺とする正方形を
想定し、その中にホールH3の中心が存在すれば、ホー
ルHOに対応するホールか存在すると判定する。長さD
Xを小さくすると判定基準が厳しくなり、対応するホー
ルが無いと判断される可能性が高くなる。また、長さD
Xを大きくすると判定基準が緩くなるが、隣接するホー
ルと当該ホールとを誤認する可能性が高くなる。
Furthermore, as shown in FIG. 11, the master data hole H
A square having a predetermined length DX on one side with O as the center is assumed, and if the center of the hole H3 exists within the square, it is determined that a hole corresponding to the hole HO exists. length D
As X becomes smaller, the criteria become stricter, and there is a higher possibility that it will be determined that there is no corresponding hole. Also, length D
As X becomes larger, the criteria for determination become looser, but the possibility of misidentifying an adjacent hole with the hole in question increases.

この判定基準の設定は処理対象のプリント基板に応じて
オペレータが指定する。このようにして、ホールの個数
がマスターデータと実測データとで一致するかどうかの
判定が行われる。さらに、この2つのホールHO,H3
の形状を相互に比較してホールH3を示す実71+11
データの半径が1[常なものかどうかの判定も行う。な
お、この座標変換および比較判定については前述した表
1に示す各データが用いられる。
The setting of this criterion is specified by the operator according to the printed circuit board to be processed. In this way, it is determined whether the number of holes matches the master data and the measured data. Furthermore, these two holes HO, H3
Fruit 71+11 showing hole H3 by comparing the shapes of
It is also determined whether the radius of the data is 1 [ordinary]. Note that each data shown in Table 1 mentioned above is used for this coordinate transformation and comparison determination.

また、ホールの個数が、実測データの方が少ない場合に
は、穴づまりや形状不良を起こしている 7 8 ホールの位置を検出する。
In addition, if the number of holes is smaller in the actual measurement data, the position of the hole that is clogged or has a defective shape is detected.

ステップS52では、以上のようにして比較判定した結
果を出力1表示する。例えば、ホールの個数が一致しな
い場合には、その不良ホールの位置をデイスプレィ上に
表示する。オペレータはその位置にあるプリント基板上
の領域を実際に1」視検査することにより、多数のホー
ルの中から簡単に不良のホールを検出することができる
In step S52, the results of the comparison and determination as described above are displayed as output 1. For example, if the numbers of holes do not match, the position of the defective hole is displayed on the display. The operator can easily detect a defective hole from among a large number of holes by visually inspecting the area on the printed circuit board at that location.

以上のように第1C図に示す処理を行えば、プリント基
板の外形線とパターンとの間の相対的位置関係のずれが
小さい時には、正確にホールに関する比較判定を行うこ
とができる。
If the process shown in FIG. 1C is performed as described above, when the deviation in the relative positional relationship between the outline of the printed circuit board and the pattern is small, it is possible to accurately compare and determine holes.

プリント基板の外形線とパターンとの相対的位置関係の
ずれが無視できない場合や、さらに高密度のプリント基
板をより正確に比較判定したい場合などにおいては、下
記のように、さらに座標の再変換を行う。
In cases where the relative positional relationship between the outline of the printed circuit board and the pattern cannot be ignored, or when you want to more accurately compare and judge high-density printed circuit boards, further reconvert the coordinates as shown below. conduct.

第1D図は座標の再変換の処理手順を示すフローチャー
トであり、第12図は座標の再変換の様子を示す図であ
る。
FIG. 1D is a flowchart showing the processing procedure for re-converting coordinates, and FIG. 12 is a diagram showing the state of re-converting coordinates.

まず、第1D図において、第1C図のステップS32ま
での処理を行い、第12図に示すように頂点A′〜D′
と頂点AO〜Doをほぼ一致させておく。そして、ステ
ップS41で、マスターデータ上の2つのホールを特定
し、対応する実測データ上の2つのホールを、例えば前
述した第11図に示す正方形を用いて求めておく。第1
2図では、例えば頂点AOに最も近いホールHAと最も
遠いホールHBとがマスターデータ上で特定され、対応
する実測データ上のホールHa、Hbが求められる。
First, in FIG. 1D, the process up to step S32 in FIG. 1C is performed, and as shown in FIG.
and vertices AO to Do are made to almost match. Then, in step S41, two holes on the master data are identified, and two corresponding holes on the measured data are found using, for example, the squares shown in FIG. 11 mentioned above. 1st
In FIG. 2, for example, the hole HA closest to the vertex AO and the hole HB furthest from the vertex AO are specified on the master data, and the corresponding holes Ha and Hb on the measured data are determined.

ステップS42では、マスターデータ上で特定された2
つのホールを結ぶ直線と、実測データ上の対応する2つ
のホールを結ぶ直線とを求める。
In step S42, the 2
A straight line connecting two holes and a straight line connecting two corresponding holes on the actual measurement data are determined.

第12図においては、ホールHA、HBを結ぶ直線LA
とホールHa、Hbを結ぶ直線Laが求められる。
In Figure 12, a straight line LA connecting holes HA and HB
A straight line La connecting the holes Ha and Hb is found.

ステップS43では、ステップS42で求められたマス
ターデータ上および実測データ上での2つの直線の傾き
に基づいてずれ角度を求める。第12図においては、Y
軸方向と直線LA  Laのそれぞれとの角度θ 、θ
2を求め、ずれ角度Δ■ θ(=lθ −θ2 ))を求める。
In step S43, the deviation angle is determined based on the slopes of the two straight lines on the master data and the actual measurement data determined in step S42. In Figure 12, Y
The angles θ and θ between the axial direction and the straight line LA La, respectively
2 is obtained, and the deviation angle Δ■ θ (=lθ −θ2 )) is obtained.

■ ステップS44では、ステップS41て特定した2つの
ホールの中から1つのホールを選択してマスターデータ
上と実測データ上でそのホールが重なるように、ステッ
プS42て求めた直線の平行移動を行う。第12図にお
いては、ホールHaをホールHAに重ねるように直線L
aを平行移動して直線Lbを形成する。
(2) In step S44, one hole is selected from the two holes specified in step S41, and the straight line obtained in step S42 is translated in parallel so that the hole overlaps on the master data and the measured data. In Fig. 12, a straight line L is drawn so that the hole Ha overlaps with the hole HA.
A is translated in parallel to form a straight line Lb.

ステップS45では、重ね合わせたホールを中心として
ずれ角度を補正する方向に、ステップS44で求めた直
線の回転移動を行う。第12図においては、ホールHA
を中心として直線Lbをずれ角度Δθたけ回転し、直線
LAと重なるようにする。
In step S45, rotational movement of the straight line obtained in step S44 is performed in a direction that corrects the deviation angle around the overlapping holes. In Figure 12, the hole HA
The straight line Lb is rotated by a shift angle Δθ around , so that it overlaps with the straight line LA.

以上のような処理により、直線La上のホールは直線L
A上のホールの位置に移動する。またこの平行移動およ
び回転移動は実測データ上の他のホールについても行わ
れるので、マスターチー タ上のホールの位置と実測デ
ータ上のホールの位置とが、さらに近づく。その後、第
1C図のステップS51を行い、同様の比較判定処理を
行えば、より正確な比較判定処理を行うことができる。
Through the above processing, the hole on the straight line La becomes the straight line L
Move to the hole position above A. In addition, this parallel and rotational movement is also performed for other holes on the measured data, so the position of the hole on the master cheetah and the position of the hole on the measured data become even closer. After that, if step S51 in FIG. 1C is performed and similar comparison and determination processing is performed, more accurate comparison and determination processing can be performed.

E、変形例 以上説明した実施例においては、四部および凸部の両方
を排除して近似外形線を求めるために、グループ分けを
行ったが、プリント基板に切りがきなどの四部が多数存
在する場合には、1次の近似外形線から見てプリント基
板内側のサンプル点を順次排除し、1次の近似外形線の
外側のサンプル点を用いて2次の近似外形線を求めてい
けばよい。なお、以下の処理は前述した例と同様となる
E. Modified example In the embodiment described above, grouping was performed to obtain approximate outlines by excluding both the four parts and the convex parts, but when there are many four parts such as cuts on the printed circuit board. To do this, sample points on the inside of the printed circuit board as viewed from the first-order approximate outline are sequentially excluded, and sample points outside the first-order approximate outline are used to find the second-order approximate outline. Note that the following processing is similar to the example described above.

また以上説明した実施例において、第1D図に示す座標
の再変換は、2つのスルーホールを用いて行ったが、ス
ルーホールを用いずに、例えばプリント基板の取り付は
穴などを基準にして座標の再変換を行ってもよい。
In addition, in the embodiment described above, the reconversion of the coordinates shown in FIG. 1D was carried out using two through holes. Coordinates may be retransformed.

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

以上のようにこの発明の第1の構成によれば、1 2 近似外形線は外形線上の3つ以上のサンプル点の位置に
よって決定されるので、外形線の凹凸の影響が除去され
、標準形状によって与えられる真の外形線に充分近い近
似外形線が得られ、所定の座標系における外形線と標準
形状の辺との角度か正確に算出される。
As described above, according to the first configuration of the present invention, since the approximate outline is determined by the positions of three or more sample points on the outline, the influence of unevenness of the outline is removed, and the standard shape An approximate contour line that is sufficiently close to the true contour line given by is obtained, and the angle between the contour line and the side of the standard shape in a predetermined coordinate system is accurately calculated.

そのため、短時間で正確に基板の外形線の位置あわせが
できるプリント基板の検査方法および装置を得ることが
できる。
Therefore, it is possible to obtain a printed circuit board inspection method and apparatus that can accurately align the outline of the circuit board in a short time.

また、この発明の第2の構成によれば、第1および第2
の実測位置は、第1゜および第2の基準位置と比較され
、実測位置と基準位置との間のずれが求められるので、
標準パターンと実測データによって与えられるパターン
との間のずれが検出され、その2つのパターンを重ねる
ような座標変換が行なえる。
Further, according to the second configuration of the present invention, the first and second
The actual measured position is compared with the first and second reference positions, and the deviation between the actual measured position and the reference position is determined.
A deviation between the standard pattern and the pattern given by the measured data is detected, and coordinate transformation can be performed to overlap the two patterns.

そのため、短時間で正確に基板の外形線の位置あわせが
できるとともに、パターンずれによる誤差を解消したプ
リント基板の検査方法および装置を得ることができる。
Therefore, it is possible to obtain a method and apparatus for inspecting a printed circuit board that can accurately align the outline of the circuit board in a short time and eliminate errors caused by pattern misalignment.

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

第1A図はこの発明の一実施例による外形線近似処理の
フローチャート、 第1B図はこの発明の一実施例による右辺設定処理のフ
ローチャート、 第1C図はこの発明の一実施例による比較判定処理のフ
ローチャート、 第1D図はこの発明の一実施例による座標の再変換処理
のフローチャート、 第2図はこの発明の一実施例を適用するプリント基板の
検査装置のブロック図、 第3図は第2図に示すプリント基板の検査装置の外観図
、 第4図はホールとデータの関係を示す図、第5図は傾い
たプリント基板を示す図、第6図は辺の拡大図、 第7図は近似外形線の設定の様子を示す図、第8図は右
辺の設定の様子を示す図、 第9図はマスキング領域を示す図、 第10図は比較判定処理の様子を示す図、第1−1図は
ホールの有無の判定の様子を示す図、第12図は座標の
再変換の様子を示す図である。 21・・・プリント基板、30・・・イメージセンサ、
50・・・プリント基板検査回路、 HO−H3、HA 、 HB 、 Ha 、 Hb ・
・・ホール、θ・・・傾き角度、   P1〜P9・・
・サンプル点、OLl・・・1次の近似外形線、 OL2・・・2次の近似外形線、
FIG. 1A is a flowchart of outline approximation processing according to an embodiment of the present invention, FIG. 1B is a flowchart of right-side setting processing according to an embodiment of this invention, and FIG. 1C is a flowchart of comparison judgment processing according to an embodiment of this invention. Flowchart, FIG. 1D is a flowchart of coordinate reconversion processing according to an embodiment of the present invention, FIG. 2 is a block diagram of a printed circuit board inspection apparatus to which an embodiment of the present invention is applied, FIG. Figure 4 is a diagram showing the relationship between holes and data, Figure 5 is a diagram showing a tilted printed circuit board, Figure 6 is an enlarged view of the sides, and Figure 7 is an approximation. Figure 8 is a diagram showing the setting of the outline line, Figure 8 is a diagram showing the setting of the right side, Figure 9 is a diagram showing the masking area, Figure 10 is a diagram showing the comparison judgment process, Figure 1-1 The figure shows how the presence or absence of a hole is determined, and FIG. 12 shows how the coordinates are re-converted. 21... Printed circuit board, 30... Image sensor,
50...Printed board inspection circuit, HO-H3, HA, HB, Ha, Hb・
...Hole, θ...Tilt angle, P1 to P9...
・Sample point, OLl...1st order approximate outline line, OL2...2nd order approximate outline line,

Claims (5)

【特許請求の範囲】[Claims] (1)複数の辺によって構成される標準形状に基づいた
形状を有する基板上に、標準パターンに基づいた位置に
複数の孔が設けられたプリント基板を検査する方法であ
って、 (a)前記標準形状および前記標準パターンの座標情報
を示すマスターデータを準備する工程と、(b)前記プ
リント基板を光電走査して、そのプリント基板の形状お
よび複数の孔の位置を読み取る工程と、 (c)前記プリント基板の形状の外形線上の3つ以上の
サンプル点の位置を認識する工程と、(d)前記サンプ
ル点の位置に基づいて、前記外形線を直線近似した近似
外形線を求める工程と、(e)所定の座標系において、
前記近似外形線の座標情報とこれに対応する前記辺の座
標情報とに基づいて前記標準形状と前記プリント基板の
形状との間の相対的位置関係を求める工程と、(f)前
記相対的位置関係に基づいて、前記読み取られた複数の
孔の位置を座標変換し、対応する修正位置を求める工程
と、 (g)前記標準パターンの座標情報を用いつつ、前記修
正位置上の孔と前記標準パターン上の孔とを照合するこ
とにより、前記プリント基板における複数の孔の個数お
よび位置を認識する工程と、を含むプリント基板の検査
方法。
(1) A method of inspecting a printed circuit board in which a plurality of holes are provided at positions based on a standard pattern on a board having a shape based on a standard shape constituted by a plurality of sides, the method comprising: (a) the above-mentioned (b) photoelectrically scanning the printed circuit board to read the shape of the printed circuit board and the positions of the plurality of holes; (c) a step of recognizing the positions of three or more sample points on an outline line of the shape of the printed circuit board; (d) a step of determining an approximate outline line by linearly approximating the outline line based on the positions of the sample points; (e) In a given coordinate system,
(f) determining a relative positional relationship between the standard shape and the shape of the printed circuit board based on the coordinate information of the approximate outline and the corresponding coordinate information of the side; and (f) the relative position. (g) converting the coordinates of the read positions of the plurality of holes based on the relationship to obtain the corresponding correction positions; (g) using the coordinate information of the standard pattern, converting the holes at the correction positions and the standard A method for inspecting a printed circuit board, comprising the step of recognizing the number and position of a plurality of holes in the printed circuit board by comparing the holes with holes on a pattern.
(2)請求項1記載のプリント基板の検査方法であつて
、 工程(d)が、 (d−1)最小二乗法によって3つ以上のサンプル点の
位置を近似する第1次近似直線を求める工程と、 (d−2)前記第1次近似直線と前記3つ以上のサンプ
ル点のそれぞれとの配置関係に基づいて、前記複数のサ
ンプル点を比較的多数のサンプル点を含む第1のグルー
プと比較的少数のサンプル点を含む第2のグループとに
類別する工程と、(d−3)前記第1のグループに含ま
れるサンプル点の位置を近似する第2次近似直線を求め
る工程と、 (d−4)前記第2次近似直線に基づいて近似外形線を
求める工程と、を含むプリント基板の検査方法。
(2) The method for inspecting a printed circuit board according to claim 1, wherein step (d) comprises: (d-1) determining a first approximation straight line that approximates the positions of three or more sample points by the least squares method; (d-2) forming the plurality of sample points into a first group containing a relatively large number of sample points based on the arrangement relationship between the first approximation straight line and each of the three or more sample points; (d-3) determining a second approximation straight line that approximates the position of the sample points included in the first group; (d-4) A method for inspecting a printed circuit board, including the step of determining an approximate outline line based on the second approximate straight line.
(3)複数の辺によって構成される標準形状に基づいた
形状を有する基板上に、標準パターンに基づいた位置に
複数の孔が設けられたプリント基板を検査する方法であ
って、 (a)前記標準形状および前記標準パターンの座標情報
を示すマスターデータを準備する工程と、(b)前記プ
リント基板を光電走査して、そのプリント基板の形状お
よび複数の孔の位置を読み取る工程と、 (c)前記プリント基板の形状の外形線上の3つ以上の
サンプル点の位置を認識する工程と、(d)前記サンプ
ル点の位置に基づいて、前記外形線を直線近似した近似
外形線を求める工程と、(e)所定の座標系において、
前記近似外形線の座標情報とこれに対応する前記辺の座
標情報とに基づいて前記標準形状と前記プリント基板の
形状との間の第1の相対的位置関係を求める工程と、(
f)前記第1の相対的位置関係に基づいて、前記読み取
られた複数の孔の位置を座標変換し、対応する第1の修
正位置を求める工程と、 (g)前記標準パターン上の所定の2つの孔を示す第1
および第2の基準位置を特定する工程と、(h)前記第
1の修正位置にある複数の孔の位置の中から前記所定の
2つの孔を示す第1および第2の実測位置を求める工程
と、 (i)前記第1および第2の実測位置と前記第1および
第2の基準位置との間の第2の相対的位置関係を求める
工程と、 (j)前記第2の相対的位置関係に基づいて、前記第1
の修正位置にある複数の孔の位置を座標変換し、対応す
る第2の修正位置を求める工程と、(k)前記標準パタ
ーンの座標情報を用いつつ、前記第2の修正位置上の孔
と前記標準パターン上の孔とを照合することにより、前
記プリント基板における複数の孔の個数および位置を認
識する工程と、を含むプリント基板の検査方法。
(3) A method for inspecting a printed circuit board in which a plurality of holes are provided at positions based on a standard pattern on a board having a shape based on a standard shape constituted by a plurality of sides, the method comprising: (a) (b) photoelectrically scanning the printed circuit board to read the shape of the printed circuit board and the positions of the plurality of holes; (c) a step of recognizing the positions of three or more sample points on an outline line of the shape of the printed circuit board; (d) a step of determining an approximate outline line by linearly approximating the outline line based on the positions of the sample points; (e) In a given coordinate system,
determining a first relative positional relationship between the standard shape and the shape of the printed circuit board based on coordinate information of the approximate outline line and coordinate information of the side corresponding thereto;
f) coordinating the read positions of the plurality of holes based on the first relative positional relationship to obtain a corresponding first corrected position; The first showing two holes
and (h) determining first and second actually measured positions indicating the predetermined two holes from among the positions of the plurality of holes at the first correction position. (i) determining a second relative positional relationship between the first and second actually measured positions and the first and second reference positions; (j) determining the second relative position; Based on the relationship, the first
(k) converting the coordinates of the positions of the plurality of holes at the correction positions to obtain a corresponding second correction position; and (k) converting the coordinates of the holes at the second correction position using the coordinate information of the standard pattern. A method for inspecting a printed circuit board, comprising: recognizing the number and position of a plurality of holes in the printed circuit board by comparing the holes with holes on the standard pattern.
(4)複数の辺によって構成される標準形状に基づいた
形状を有する基板上に、標準パターンに基づいた位置に
複数の孔が設けられたプリント基板を検査する装置であ
って、 (a)前記標準形状および前記標準パターンの座標情報
を示すマスターデータを記憶する記憶手段と、 (b)前記プリント基板を光電走査して、そのプリント
基板の形状および複数の孔の位置を読み取るイメージセ
ンサと、 (c)前記プリント基板の形状の外形線上の3つ以上の
サンプル点の位置を認識するサンプル手段と、 (d)前記サンプル点の位置に基づいて、前記外形線を
直線近似した近似外形線を求める近似手段と、 (e)前記近似外形線の座標情報とこれに対応する前記
辺の座標情報とに基づいて前記標準形状と前記プリント
基板の形状との間の相対的位置関係を求める位置関係決
定手段と、 (f)前記相対的位置関係に基づいて、前記読み取られ
た複数の孔の位置を座標変換し、対応する修正位置を求
める修正手段と、 (g)前記修正位置上の孔と前記標準パターン上の孔と
を照合することにより、前記プリント基板における複数
の孔の個数および位置を認識する認識手段と、を含むプ
リント基板の検査装置。
(4) An apparatus for inspecting a printed circuit board in which a plurality of holes are provided at positions based on a standard pattern on a board having a shape based on a standard shape constituted by a plurality of sides, comprising: (a) the above-mentioned (b) an image sensor that photoelectrically scans the printed circuit board to read the shape of the printed circuit board and the positions of the plurality of holes; c) sampling means for recognizing the positions of three or more sample points on the outline of the shape of the printed circuit board; (d) determining an approximate outline by linearly approximating the outline based on the positions of the sample points; (e) positional relationship determination for determining the relative positional relationship between the standard shape and the shape of the printed circuit board based on the coordinate information of the approximate outline and the corresponding coordinate information of the side; (f) a correction means for converting coordinates of the read positions of the plurality of holes based on the relative positional relationship to obtain a corresponding correction position; (g) a hole at the correction position and the correction means; A printed circuit board inspection device comprising: recognition means for recognizing the number and position of a plurality of holes in the printed circuit board by comparing the holes with holes on a standard pattern.
(5)請求項4記載のプリント基板の検査装置であって
、 手段(a)に、 (a′)前記標準パターン上の所定の2つの孔を示す第
1および第2の基準位置を特定する特定手段を、付加し
、 イメージセンサ(b)に、 (b′)前記読み取られた複数の孔の位置の中から前記
所定の2つの孔を示す第1および第2の実測位置を求め
る検出手段を、付加し、 手段(e)に、 (e′)前記第1および第2の実測位置と前記第1およ
び第2の基準位置との相対的位置関係を求める位置関係
決定手段を、付加したプリント基板の検査装置。
(5) The printed circuit board inspection apparatus according to claim 4, wherein the means (a) includes: (a') specifying first and second reference positions indicating two predetermined holes on the standard pattern; identifying means is added to the image sensor (b); (b') detection means for determining first and second actually measured positions indicating the predetermined two holes from among the read positions of the plurality of holes; and to the means (e), (e') positional relationship determining means for determining the relative positional relationship between the first and second actually measured positions and the first and second reference positions is added. Printed circuit board inspection equipment.
JP1141640A 1989-06-02 1989-06-02 Printed circuit board inspection method and device Expired - Fee Related JPH0749933B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1141640A JPH0749933B2 (en) 1989-06-02 1989-06-02 Printed circuit board inspection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1141640A JPH0749933B2 (en) 1989-06-02 1989-06-02 Printed circuit board inspection method and device

Publications (2)

Publication Number Publication Date
JPH036409A true JPH036409A (en) 1991-01-11
JPH0749933B2 JPH0749933B2 (en) 1995-05-31

Family

ID=15296749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1141640A Expired - Fee Related JPH0749933B2 (en) 1989-06-02 1989-06-02 Printed circuit board inspection method and device

Country Status (1)

Country Link
JP (1) JPH0749933B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008105463A1 (en) * 2007-02-28 2008-09-04 Nikon Corporation Manufacturing method for inspection device
JP2013134183A (en) * 2011-12-27 2013-07-08 Denso Corp Inspection device and inspection method for bored article
CN103518423A (en) * 2011-03-29 2014-01-15 At&S奥地利科技及系统技术股份公司 Method for producing more particularly processing or populating, a circuit board element and carrier for use in such a method
JP2017049150A (en) * 2015-09-02 2017-03-09 アズビル株式会社 Method for measuring fluorescent particles
WO2020090192A1 (en) * 2018-10-31 2020-05-07 パナソニックIpマネジメント株式会社 Size measurement apparatus and package shipping locker

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61120907A (en) * 1984-11-19 1986-06-09 Toshiba Corp Hole inspection of printed-circuit board
JPS6225204A (en) * 1985-07-25 1987-02-03 Narumi China Corp Correcting method for position of through hole
JPS62115591A (en) * 1985-11-15 1987-05-27 Fujitsu Ltd Recognition method for pattern position
JPS63124939A (en) * 1986-11-14 1988-05-28 Hitachi Ltd Pattern inspecting method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61120907A (en) * 1984-11-19 1986-06-09 Toshiba Corp Hole inspection of printed-circuit board
JPS6225204A (en) * 1985-07-25 1987-02-03 Narumi China Corp Correcting method for position of through hole
JPS62115591A (en) * 1985-11-15 1987-05-27 Fujitsu Ltd Recognition method for pattern position
JPS63124939A (en) * 1986-11-14 1988-05-28 Hitachi Ltd Pattern inspecting method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008105463A1 (en) * 2007-02-28 2008-09-04 Nikon Corporation Manufacturing method for inspection device
JPWO2008105463A1 (en) * 2007-02-28 2010-06-03 株式会社ニコン Manufacturing method of inspection device
CN103518423A (en) * 2011-03-29 2014-01-15 At&S奥地利科技及系统技术股份公司 Method for producing more particularly processing or populating, a circuit board element and carrier for use in such a method
JP2013134183A (en) * 2011-12-27 2013-07-08 Denso Corp Inspection device and inspection method for bored article
JP2017049150A (en) * 2015-09-02 2017-03-09 アズビル株式会社 Method for measuring fluorescent particles
WO2020090192A1 (en) * 2018-10-31 2020-05-07 パナソニックIpマネジメント株式会社 Size measurement apparatus and package shipping locker
JPWO2020090192A1 (en) * 2018-10-31 2021-10-07 パナソニックIpマネジメント株式会社 Dimension measuring device and locker for shipping luggage

Also Published As

Publication number Publication date
JPH0749933B2 (en) 1995-05-31

Similar Documents

Publication Publication Date Title
JP2733206B2 (en) Method and apparatus for correcting distortion in an automatic optical inspection device for printed circuit boards
KR900005349B1 (en) Method of and apparatus for checking geometry of multi-layer patterns for ic structures
KR920008287B1 (en) Inspection method and apparatus of the conduction pattern of pcb
JPH0763691A (en) Method and apparatus for inspection of pattern defect
KR20210104028A (en) Compensation for reference misalignment during part inspection
KR960013357B1 (en) Image data inspecting method and apparatus
EP0488206A2 (en) Method of and apparatus for inspecting pattern on printed board
JP3409670B2 (en) Appearance inspection method and apparatus
JPS61212708A (en) Method and apparatus for detecting pattern defect
JPH036409A (en) Method and apparatus for inspecting printed circuit board
JPH1064981A (en) Method for aligning wafer
JPH04295748A (en) Pattern inspecting apparatus
JP3281457B2 (en) Board component mounting inspection method and inspection device
JP2561193B2 (en) Print pattern inspection device
JP4357666B2 (en) Pattern inspection method and apparatus
JPH05129397A (en) Foreign matter detection method and device
JPH09145334A (en) Method and equipment for inspecting mounted device
JPH10142771A (en) Method for setting sensitivity of inspection apparatus for inspecting pattern and inspection apparatus which allows setting of sensitivity
JPH05272945A (en) Apparatus for inspecting bent part of lead
JPH01251175A (en) Position recognizing device
JP3198105B2 (en) Automatic visual inspection device
JP2601232B2 (en) IC lead displacement inspection equipment
JP2891241B2 (en) Inspection route forming method for mounting components and mounting state inspection method thereof
JPH04123497A (en) Detection of position of substrate and means of loading part on substrate
JP4130848B2 (en) Pixel inspection method and pixel inspection apparatus

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees