JP2011095053A - Method and system for preparing setting data of inspection region for inspecting substrate - Google Patents

Method and system for preparing setting data of inspection region for inspecting substrate Download PDF

Info

Publication number
JP2011095053A
JP2011095053A JP2009247994A JP2009247994A JP2011095053A JP 2011095053 A JP2011095053 A JP 2011095053A JP 2009247994 A JP2009247994 A JP 2009247994A JP 2009247994 A JP2009247994 A JP 2009247994A JP 2011095053 A JP2011095053 A JP 2011095053A
Authority
JP
Japan
Prior art keywords
inspection
area
region
component
electrode pins
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
JP2009247994A
Other languages
Japanese (ja)
Other versions
JP5407754B2 (en
Inventor
Motoi Doi
基 土肥
Hirotaka Wada
洋貴 和田
Yasusuke Goto
庸佑 後藤
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2009247994A priority Critical patent/JP5407754B2/en
Publication of JP2011095053A publication Critical patent/JP2011095053A/en
Application granted granted Critical
Publication of JP5407754B2 publication Critical patent/JP5407754B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To speed up processing for preparing the setting data of an inspection region for a part having a plurality of electrode pins. <P>SOLUTION: After the reference image in a region containing a part 201 to be treated is displayed to take up operation for indicating the region 30 corresponding to a part body, indication using an indication frame 32 is taken up. A user adjusts the width of the indication frame 32 so that a first electrode pin to a third electrode pin are contained and aligns the side of the outside of the indication frame 32 with the leading end position of a land. If the indication is completed, the electrode pins and the land are extracted from the reference image of the range corresponding to the indication frame 32 and the rule related to these arrangements is specified. Further, on the basis of the specified rule or the region 30, the inspection regions S11, S21, S31 and S41 corresponding to the individual electrode pins or inspection regions S1, S2, S3 and S4 becoming the allotment standards of an imaging target region are set. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、部品実装基板上の部品の実装状態を画像処理の手法により検査することを前提として、この検査に必要な検査領域の設定データを作成する方法、およびこの方法が適用された検査データ作成システムに関する。   The present invention is based on the premise that the mounting state of a component on a component mounting board is inspected by an image processing technique, and a method of creating inspection area setting data necessary for this inspection, and inspection data to which this method is applied Regarding the creation system.

部品実装基板の外観検査装置では、一般に、検査対象の基板を撮像して2次元画像を生成し、画像中の部品にその部品種に応じた検査領域を設定し、検査領域内の画像を処理することにより、はんだ付け状態の適否や部品の位置ずれの有無などを判別する(特許文献1を参照。)。また、2次元画像に高さ情報を加えて3次元画像とし、これを用いて電極や部品の高さを判別するものもある(特許文献2を参照)。   In general, a component mounting board visual inspection apparatus generates a two-dimensional image by imaging a board to be inspected, sets an inspection area corresponding to the type of the part in the image, and processes an image in the inspection area. By doing so, it is determined whether or not the soldering state is appropriate and whether or not there is a positional shift of the component (see Patent Document 1). In addition, there is a technique in which height information is added to a two-dimensional image to form a three-dimensional image, and the height of an electrode or a component is determined using this (see Patent Document 2).

この種の検査装置における検査データには、一般に、検査領域の設定データ(検査領域の数および各検査領域の設定位置および大きさを示すもの)や、各検査領域で被検査部位を抽出するための2値化しきい値、各検査領域における測定処理のロジック、判定基準値などが含まれる。具体的な検査の内容は、部品の外観に応じて異なるため、従来の基板外観検査装置では、ティーチング作業の負荷を軽減するために、あらかじめ部品の種毎に「ライブラリデータ」と呼ばれる標準の検査データを用意し、検査対象の部品に対し、それぞれその部品種に応じたライブラリデータを適用するようにしている。   In general, the inspection data in this type of inspection apparatus is used to extract inspection region setting data (indicating the number of inspection regions and the setting position and size of each inspection region) and the inspection site in each inspection region. The binarization threshold value, the logic of the measurement process in each inspection region, the determination reference value, and the like are included. Since the specific inspection contents differ depending on the appearance of the parts, the conventional board appearance inspection apparatus uses standard inspections called “library data” for each part type in advance to reduce the burden of teaching work. Data is prepared, and library data corresponding to the part type is applied to each part to be inspected.

たとえば、特許文献1には、教示対象の部品の具体的な画像と、この部品に対応する部品種について入力すべき項目とを表示し、各項目につき、所定数の外観情報の選択肢の中から表示中の部品に該当するものをユーザに選択させ、選択された外観情報に適合するライブラリデータを読み出して、これに基づき教示対象の部品に対する検査領域を特定することが記載されている。   For example, Patent Document 1 displays a specific image of a part to be taught and items to be input for a part type corresponding to this part, and for each item, a predetermined number of appearance information options are selected. It is described that the user selects a part corresponding to the displayed part, reads out library data matching the selected appearance information, and specifies an inspection area for the part to be taught based on this.

また特許文献2にも、電極ピン(リード)の3次元形状や輝度値に基づき、基板の3次元画像からリード領域を抽出し、総リード数、リード間距離などから検査部品の部品種類を決定することや、決定した部品種類を基にあらかじめ記憶した部品ライブラリを選択することなどが記載されている。   Also in Patent Document 2, a lead area is extracted from a three-dimensional image of a substrate based on a three-dimensional shape and luminance value of an electrode pin (lead), and a component type of an inspection part is determined from the total number of leads, a distance between leads, and the like. And selecting a component library stored in advance based on the determined component type.

特開2008−32525号公報JP 2008-32525 A 特開2006−250609号公報JP 2006-250609 A

QFP,SOPなどのIC部品では、電極ピンの数やピッチが部品によって異なり、電極ピンの長さにもばらつきがある。このため、出願人が提供する従来の外観検査装置では、IC部品用の検査領域については、大まかな設定ルールのみを定め、検査対象の基板の基準画像から各電極ピンやこれらが接続されるランドを自動抽出して、抽出された電極ピンやランドに上記の設定ルールを適用することにより、検査領域を特定するようにしている。   In IC parts such as QFP and SOP, the number and pitch of electrode pins vary depending on the parts, and the lengths of electrode pins also vary. For this reason, in the conventional appearance inspection apparatus provided by the applicant, only a rough setting rule is defined for the inspection area for IC parts, and each electrode pin and the land to which these are connected from the reference image of the substrate to be inspected. Is automatically extracted, and the above-described setting rule is applied to the extracted electrode pins and lands, thereby specifying the inspection region.

しかし、多数の電極ピンやランドを正しく抽出するには抽出用のプログラムが複雑になり、電極ピンやランドをすべて抽出し終えるまでにかなりの時間がかかる。また、画像中の抽出対象部位の色彩や明るさのばらつきが大きい場合に、均一な基準で抽出するのが困難である点や、部品の周囲の抽出対象部位によく似た色彩の部位が誤抽出される点も問題となっている。   However, in order to correctly extract a large number of electrode pins and lands, the extraction program becomes complicated, and it takes a considerable time to complete the extraction of all electrode pins and lands. In addition, when there are large variations in the color and brightness of the extraction target part in the image, it is difficult to extract on a uniform basis, and there is an error in the color part that closely resembles the extraction target part around the part. The point extracted is also a problem.

本発明は上記の問題点に着目し、多数の電極ピンを具備する部品を対象に検査領域の設定データを作成する場合に、ユーザの簡単な指定操作に応じて検査領域を特定することにより、検査領域の設定データの作成を高速化することを目的とする。   The present invention pays attention to the above-mentioned problems, and when creating inspection area setting data for a part having a large number of electrode pins, by specifying the inspection area according to a simple designation operation by the user, The purpose is to speed up the creation of inspection area setting data.

本発明による検査領域の設定方法は、部品実装後の基板の部品の電極と他の部位との区別が可能で、その表面を正面から観測した状態を表す画像を用いて、当該基板上の各部品の実装状態の検査に用いられる検査領域の設定データを作成するもので、以下の第1〜第6のステップを実行することを特徴とする。   The inspection area setting method according to the present invention is capable of distinguishing between the electrode of the component of the board after mounting the component and other parts, and using the image representing the state of observing the surface from the front, It creates inspection area setting data used for inspecting the mounting state of a component, and is characterized by executing the following first to sixth steps.

第1ステップでは、複数の電極ピンが部品本体の端縁に沿って規則性をもって配置されている部品を設定の対象として、この対象部品の実装状態を表す基準画像をモニタに表示する。第2ステップでは、基準画像の表示画面において、対象部品の部品本体に対応する第1の領域を指定する操作と、この第1の領域の一辺を基準に、基準の辺に沿う方向および基準の辺から第1の領域の外側に向かう方向における範囲指定により第2の領域を指定する操作とを受け付ける。なお、これらの指定は、第1領域を指定した後に第2領域を指定するのが好ましいが、指定の順序を逆にすることを排除するものではない。   In the first step, a reference image representing a mounting state of the target component is displayed on a monitor, with a component in which a plurality of electrode pins are regularly arranged along the edge of the component main body being set. In the second step, on the display screen of the reference image, an operation for designating the first area corresponding to the component main body of the target part, and the direction along the reference side and the reference line based on one side of the first area An operation of designating the second region by designating a range in a direction from the side toward the outside of the first region is accepted. These designations preferably specify the second area after the first area is specified, but this does not exclude reversing the designation order.

第3ステップでは、第1および第2の領域が指定されたことに応じて、第2の領域に対応する範囲の基準画像から電極ピンを抽出する。第4ステップは、第3ステップの処理により基準の辺に沿って複数の電極ピン抽出されたことに応じて実施されるもので、抽出された電極ピン間の関係および電極ピンと第1の領域との関係に基づき電極ピンの配置に関する規則を特定する。   In the third step, in response to the designation of the first and second regions, electrode pins are extracted from the reference image in the range corresponding to the second region. The fourth step is performed in response to the extraction of the plurality of electrode pins along the reference side by the processing of the third step. The relationship between the extracted electrode pins and the relationship between the electrode pins and the first region Based on the relationship, the rules regarding the arrangement of the electrode pins are specified.

第5ステップでは、第1の領域の各辺のうち少なくとも前記基準の辺に第4ステップで特定された規則を適用して、第1の領域の外側に、電極ピンに対する検査のための検査領域を前記規則が適用された辺に沿って複数設定する。第6ステップでは、第5ステップの実行に応じて、モニタに表示されている基準画像を検査領域が設定された状態を表すものに更新し、更新後の表示に対して確定操作が行われたことに応じて検査領域の設定に用いられた設定データを確定する。   In the fifth step, by applying the rule specified in the fourth step to at least the reference side of each side of the first region, an inspection region for inspecting the electrode pin outside the first region Are set along a side to which the rule is applied. In the sixth step, in accordance with the execution of the fifth step, the reference image displayed on the monitor is updated to the one representing the state where the inspection area is set, and the confirmation operation is performed on the updated display. Accordingly, setting data used for setting the inspection area is determined.

上記の方法によれば、複数の電極ピンが部品本体の端縁に沿って規則性をもって配置されている部品に対する検査領域の設定データを作成する場合には、モニタに表示された基準画像の画面上でユーザが第1および第2の領域を指定したことに応じて、第1の領域の少なくとも一辺に沿って複数の検査領域が自動的に設定され、基準画像の表示がその設定状態を表すものに切り替えられる。ユーザが、この表示により検査領域の設定が適切であると判断して確定操作を行うと、表示中の検査領域の設定データが確定される。   According to the above method, when creating inspection area setting data for a part in which a plurality of electrode pins are regularly arranged along the edge of the part body, the screen of the reference image displayed on the monitor In response to the user specifying the first and second regions above, a plurality of inspection regions are automatically set along at least one side of the first region, and the display of the reference image indicates the setting state You can switch to something. When the user determines that the setting of the examination area is appropriate by this display and performs a confirmation operation, the setting data of the examination area being displayed is confirmed.

SOPやQFPの部品本体の電極ピンが配置される辺では、通常、両端部に等しいマージンをおいて、大きさおよび形状が等しい電極ピンが等間隔で配列される。したがって、このような部品に対し、ユーザが、設定対象の部品の部品本体に対応する領域を正しく指定すると共に、この部品本体の一辺に沿って並ぶ電極ピンを、端に位置する電極ピンから順に2つ以上選択して、これらに対応する領域を正しく指定すれば、電極ピンの配置に関する規則を正しく特定し、検査領域を精度良く設定することが可能になる。   In the side where the electrode pins of the SOP or QFP component main body are arranged, the electrode pins having the same size and shape are usually arranged at equal intervals with equal margins at both ends. Therefore, for such a component, the user correctly specifies the region corresponding to the component main body of the component to be set, and the electrode pins arranged along one side of the component main body are arranged in order from the electrode pin located at the end. If two or more are selected and the areas corresponding to these are correctly specified, it is possible to correctly specify the rules regarding the arrangement of the electrode pins and set the inspection area with high accuracy.

上記の方法の好ましい態様では、第4ステップでは、電極ピンの配置に関する規則として、電極ピンの幅および長さならびにピッチと、第1の領域の一角部からその直近の電極ピンまでの距離とを、それぞれ特定する。このような情報を特定すれば、部品本体の一辺における電極ピンの数や位置を割り出し、個々の電極ピンやランド毎に検査領域を設定することが可能になる。   In a preferred aspect of the above method, in the fourth step, as the rules regarding the arrangement of the electrode pins, the width, length and pitch of the electrode pins, and the distance from the corner of the first region to the nearest electrode pin are set. , Identify each. If such information is specified, the number and positions of electrode pins on one side of the component main body can be determined, and an inspection area can be set for each individual electrode pin or land.

他の好ましい態様では、部品実装前の基準画像および部品実装後の基板の基準画像を準備して、後者の基準画像を第1ステップにおいて表示すると共に、第3ステップでは、第2指定操作による指定を各基準画像に適用して、第2の領域に対応する範囲の部品実装後の基板の基準画像から電極ピンを抽出すると共に、第2の領域に対応する範囲の部品実装前の基板の基準画像からランドを抽出する。さらに第4ステップでは、電極ピンの配置に関する規則として、電極ピンの幅および長さならびにピッチと、第1の領域の一角部からその直近の電極ピンまでの距離と、対応関係にある電極ピンとランドとの位置関係とを、それぞれ特定する。   In another preferred embodiment, a reference image before component mounting and a reference image of a substrate after component mounting are prepared, and the latter reference image is displayed in the first step, and in the third step, designation by the second designation operation is performed. Is applied to each reference image to extract the electrode pins from the reference image of the substrate after component mounting in the range corresponding to the second region, and the reference of the substrate before component mounting in the range corresponding to the second region Extract a land from an image. Further, in the fourth step, as the rules regarding the arrangement of the electrode pins, the width, length and pitch of the electrode pins, the distance from one corner of the first region to the nearest electrode pin, and the electrode pins and the land corresponding to each other And the positional relationship with each other.

上記の態様によれば、部品本体の一辺に沿って並ぶ電極ピンおよびこれらに対応するランドが、それぞれ端に位置するものから順に複数含まれるようにユーザが第2の領域を指定することにより、この領域から電極ピンおよびランドの組み合わせが複数抽出される。そして、部品本体領域の一辺における電極ピンの数や位置を割り出すのに必要な情報とともに、電極ピンとランドとの位置関係が特定されるので、個々の電極ピンとランドとの接続状態を検査するための検査領域を精度良く設定することが可能になる。   According to the above aspect, the user designates the second region so that the electrode pins arranged along one side of the component main body and the lands corresponding thereto are plurally included in order from the one located at the end, respectively, A plurality of combinations of electrode pins and lands are extracted from this region. And since the positional relationship between the electrode pins and the lands is specified together with information necessary to determine the number and position of the electrode pins on one side of the component main body region, the connection state between each electrode pin and the land is inspected. The inspection area can be set with high accuracy.

上記の方法の他の好ましい態様では、矩形状の部品本体の対向する2辺にそれぞれ複数の電極ピンが配置されると共に、これらの辺における電極ピンの配列の間に線対称の関係が成立する部品(SOP)を設定の対象とする。この場合の第5ステップでは、基準の辺に第4ステップで特定された規則を適用して、第1の領域の外側で前記基準の辺に沿う位置に複数の検査領域を設定するステップと、これらの検査領域を180度回転させたものを第1の領域の外側で基準の辺に対向する辺に沿う位置に設定するステップとを実行する。   In another preferable aspect of the above method, a plurality of electrode pins are arranged on two opposing sides of the rectangular component body, and a line-symmetric relationship is established between the arrangement of the electrode pins on these sides. A part (SOP) is set as a setting target. In the fifth step in this case, applying the rule specified in the fourth step to the reference side, setting a plurality of inspection regions at positions along the reference side outside the first region; The step of rotating these inspection regions by 180 degrees is set outside the first region at a position along the side opposite to the reference side.

別の好ましい態様では、矩形状の部品本体の各辺にそれぞれ複数の電極ピンが配置されると共に、対向する関係にある2辺における電極ピンの配列の間に線対称の関係が成立する部品(QFP)を設定の対象とする。この場合の第5ステップでは、基準の辺および基準の辺に直交する2つの辺のうちの一方を対象にして、それぞれ第4ステップで特定された規則を適用して、第1の領域の外側で対象の辺に沿う位置に複数の検査領域を設定するステップと、これらの検査領域を180度回転させたものを第1の領域の外側で対象の辺に対向する辺に沿う位置に設定するステップとを実行する。   In another preferred embodiment, a plurality of electrode pins are arranged on each side of the rectangular component body, and a component in which a line-symmetric relationship is established between the arrangement of the electrode pins on the two opposing sides ( QFP) is the target of setting. In the fifth step in this case, the rule specified in the fourth step is applied to one of the reference side and two sides orthogonal to the reference side, respectively, and the outside of the first region The step of setting a plurality of inspection regions at positions along the target side and the rotation of these inspection regions by 180 degrees are set at positions along the side opposite to the target side outside the first region. And execute steps.

上記の各態様によれば、対向する2辺間の対称性を利用して、一方の辺に対して設定した検査領域を他方の辺に適用して、各検査領域の設定データを効率良く作成することが可能になる。   According to each aspect described above, the inspection area set for one side is applied to the other side using the symmetry between the two opposing sides, and the setting data for each inspection area is efficiently created. It becomes possible to do.

つぎに、本発明が適用される検査データの作成システムは、部品実装後の基板の部品の電極と他の部位との区別が可能で、その表面を正面から観測した状態を表す画像を用いて、当該基板上の各部品の実装状態の検査に必要な情報を作成するものである。このシステムは、複数の電極ピンが前記部品本体の端縁に沿って規則性をもって配置されている部品を設定の対象として、この対象部品の実装状態を表す基準画像をモニタに表示する基準画像表示手段;基準画像の表示画面において、対象部品の部品本体に対応する第1の領域を指定する操作と、この第1の領域の一辺を基準に、基準の辺に沿う方向および基準の辺から第1の領域の外側に向かう方向における範囲指定により第2の領域を指定する操作とを受け付ける領域指定受付手段;領域指定受付手段が第1の領域および第2の領域にかかる指定を受け付けたことに応じて、第2の領域に対応する範囲の基準画像から電極ピンを抽出する抽出処理手段;抽出処理手段により基準の辺に沿って複数の電極ピンが抽出されたとき、抽出された電極ピン間の関係および電極ピンと第1の領域との関係に基づき電極ピンの配置に関する規則を特定する配置規則特定手段;第1の領域の各辺のうち少なくとも基準の辺に配置規則特定手段により特定された規則を適用して、第1の領域の外側に、電極ピンに対する検査のための検査領域を前記規則が適用された辺に沿って複数設定する領域設定手段;領域設定手段により検査領域が設定されたことに応じて、前記モニタに表示されている基準画像を前記検査領域が設定された状態を表すものに更新し、更新後の表示に対して確定操作が行われたことに応じて前記検査領域の設定に用いられた設定データを確定する領域確定手段、の各手段を具備することを特徴とする。   Next, the inspection data creation system to which the present invention is applied is capable of distinguishing between the electrode of the component on the board after mounting the component and other parts, and using an image representing the state of observing the surface from the front. Information required for inspection of the mounting state of each component on the board is created. In this system, a reference image display for displaying a reference image representing a mounting state of a target component on a monitor with a component in which a plurality of electrode pins are regularly arranged along the edge of the component main body as a setting target Means: On the display screen of the reference image, an operation for designating the first area corresponding to the component main body of the target part, and the direction along the reference side and the reference side based on one side of the first area Region designation accepting means for accepting an operation for designating a second area by specifying a range in a direction toward the outside of the one area; that the area designation accepting means accepts designation for the first area and the second area. Accordingly, extraction processing means for extracting electrode pins from a reference image in a range corresponding to the second region; extracted when a plurality of electrode pins are extracted along the reference side by the extraction processing means An arrangement rule specifying means for specifying a rule regarding the arrangement of the electrode pins based on the relationship between the pole pins and the relationship between the electrode pins and the first area; at least a reference side among the sides of the first area by the arrangement rule specifying means Area setting means for applying a specified rule and setting a plurality of inspection areas for inspection of the electrode pins along the side to which the rule is applied outside the first area; the inspection area by the area setting means In response to the setting, the reference image displayed on the monitor is updated to the one representing the state where the inspection area is set, and the confirmation operation is performed on the updated display. And an area determining means for determining setting data used for setting the inspection area.

上記のシステムによれば、先に述べた検査領域の設定方法を実行して検査領域の設定データを効率良く作成することができる。なお、このシステムは、検査を行う装置に導入することができるが、パーソナルコンピュータなどの外部のコンピュータに導入することもできる。後者の場合には、作成された検査データは、たとえば通信により検査装置に移植することができる。   According to the above system, the inspection area setting data can be efficiently created by executing the inspection area setting method described above. Note that this system can be installed in an inspection apparatus, but can also be installed in an external computer such as a personal computer. In the latter case, the created inspection data can be transplanted to the inspection apparatus by communication, for example.

本発明によれば、SOP,QFPなど、複数の電極ピンが部品本体の端縁に沿って規則性をもって配置されている部品について、各電極ピンおよびこれらに対応するランドの状態に適した検査領域を容易に特定して、検査領域の設定データの作成にかかる効率を向上することが可能になる。また、表示されている部品の形状に合わせて第1の領域を指定し、当該部品の一辺における電極ピンおよびランドの配列を対象に、その端部を含む一部の範囲を指定すれば、検査領域を正しく設定することができるので、設定作業に慣れていないユーザでも、適切な検査領域を容易に設定することが可能になる。   According to the present invention, for a component in which a plurality of electrode pins such as SOP and QFP are regularly arranged along the edge of the component body, an inspection region suitable for the state of each electrode pin and the land corresponding thereto. This makes it possible to easily identify and improve the efficiency of creating the inspection area setting data. In addition, if the first area is specified according to the shape of the displayed part, and the part of the part including the end is specified for the arrangement of the electrode pins and lands on one side of the part, the inspection is performed. Since the area can be set correctly, even a user who is not used to setting work can easily set an appropriate inspection area.

基板外観検査装置の構成を検査データ作成用のコンピュータとの関係とともに示す図である。It is a figure which shows the structure of a board | substrate external appearance inspection apparatus with the relationship with the computer for test | inspection data creation. 検査データ作成システムによるバリエーションの作成処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the creation process of the variation by a test | inspection data creation system. チップ部品に対する検査領域の設定方法を示す図である。It is a figure which shows the setting method of the test | inspection area | region with respect to a chip component. SOPを対象にした検査領域の設定画面を示す図である。It is a figure which shows the setting screen of the test | inspection area | region which made SOP object. 図4の画面において部品対応領域を指定した後の画面表示の変化を示す図である。It is a figure which shows the change of the screen display after designating a component corresponding | compatible area | region in the screen of FIG. 指定枠による指定操作の例およびこの指定に応じた検査領域の設定例を示す図である。It is a figure which shows the example of designation | designated operation by a designation | designated frame, and the example of a setting of the test | inspection area | region according to this designation | designated. 検査領域の設定のために導出されるパラメータを示す図である。It is a figure which shows the parameter derived | led-out for the setting of a test | inspection area | region. SOPおよびQFPを対象にした検査領域の設定処理についての詳細を示すフローチャートである。It is a flowchart which shows the detail about the setting process of the inspection area | region which made SOP and QFP object. 想定ピッチテーブルのデータ構成例を示す図である。It is a figure which shows the data structural example of an assumption pitch table. ランドの幅が一定でない例を示す図である。It is a figure which shows the example whose width of a land is not constant. 電極ピンおよびランドに対応する領域を手動で設定する場合の設定画面を示す図である。It is a figure which shows the setting screen in the case of setting manually the area | region corresponding to an electrode pin and a land. 図11の画面において実施される指定操作の例を示す図である。It is a figure which shows the example of designation | designated operation implemented on the screen of FIG.

図1は、部品実装基板の自動外観検査を行う検査装置1の主要構成を、この検査装置1に接続されるパーソナルコンピュータ7ととともに示す。   FIG. 1 shows a main configuration of an inspection apparatus 1 that performs an automatic appearance inspection of a component mounting board, together with a personal computer 7 connected to the inspection apparatus 1.

この実施例の検査装置1は、はんだの印刷工程、部品の実装工程、およびリフロー工程により製作された完成体の基板200を対象にした検査を実行するためのもので、カラー撮影用のカメラ2、照明部3、基板ステージ4、および制御処理部5などにより構成される。   The inspection apparatus 1 according to this embodiment is for performing an inspection on a finished board 200 manufactured by a solder printing process, a component mounting process, and a reflow process, and a camera 2 for color photography. , The illumination unit 3, the substrate stage 4, and the control processing unit 5.

基板ステージ4には、基板200を支持するためのテーブル部41や、このテーブル部41をX,Yの各軸方向に移動させるための移動機構42などが設けられる。カメラ2は、基板ステージ4の上方に、撮像面を下方に向け、かつ光軸を鉛直方向に合わせた状態で配備される。   The substrate stage 4 is provided with a table unit 41 for supporting the substrate 200 and a moving mechanism 42 for moving the table unit 41 in the X and Y axial directions. The camera 2 is arranged above the substrate stage 4 with the imaging surface facing downward and the optical axis aligned with the vertical direction.

照明部3には、赤、緑、青の各色彩光をそれぞれ発する円環状光源3R,3G,3Bが含まれており、基板ステージ4とカメラ2との間に配置される。各光源3R,3G,3Bは、それぞれ径が異なり、また各中心部をカメラ2の光軸に合わせた状態で配備される。これにより、基板200に対し、赤、緑、青の各光が、それぞれ仰角が異なる方向から照射されるので、はんだフィレットや後記する電極ピンなどの鏡面反射性の高い部位の傾斜状態を各照明光の色彩により表現した画像を生成することができる。図3〜6等の画像の模式図では、画像中の色彩を網点などのパターンに置き換えて示す。   The illumination unit 3 includes annular light sources 3R, 3G, and 3B that respectively emit red, green, and blue color lights, and are disposed between the substrate stage 4 and the camera 2. Each of the light sources 3R, 3G, and 3B has a different diameter, and is disposed in a state in which each central portion is aligned with the optical axis of the camera 2. Thereby, since each light of red, green, and blue is irradiated to the board | substrate 200 from the direction from which an elevation angle differs, respectively, the inclination state of highly specular reflective parts, such as a solder fillet and an electrode pin mentioned later, is illuminated. An image expressed by the color of light can be generated. In the schematic diagrams of the images in FIGS. 3 to 6 and the like, the colors in the images are replaced with patterns such as halftone dots.

制御処理部5には、コンピュータによる制御部50のほか、画像入力部51、撮像制御部52、照明制御部53、XYステージ制御部54、メモリ55、表示部56、入力部57、通信インターフェース58などが設けられる。   The control processing unit 5 includes a computer control unit 50, an image input unit 51, an imaging control unit 52, an illumination control unit 53, an XY stage control unit 54, a memory 55, a display unit 56, an input unit 57, and a communication interface 58. Etc. are provided.

画像入力部51には、カメラ2からの画像をディジタル変換するためのA/D変換回路などが含まれる。撮像制御部52は、カメラ2に対し、撮像を指示するタイミング信号を出力し、照明制御部53は、各光源3R,3G,3Bの点消灯動作や光量を制御する。XYステージ制御部54は、基板ステージ4の移動のタイミングやX,Yの各軸方向における移動量を制御する。   The image input unit 51 includes an A / D conversion circuit for digitally converting an image from the camera 2. The imaging control unit 52 outputs a timing signal for instructing imaging to the camera 2, and the illumination control unit 53 controls the on / off operation and the light amount of each of the light sources 3R, 3G, and 3B. The XY stage controller 54 controls the movement timing of the substrate stage 4 and the movement amount in the X and Y axial directions.

メモリ55には、検査を実行するための一連の処理手順が記述されたプログラムや検査データ格納用のデータベース(以下、「検査用データベース」という。)が格納される。検査用データベースには、検査対象の基板200に実装される部品毎に、設定すべき検査領域の設定に関するデータ(検査領域の位置および大きさを示すもの)、各検査領域で被検査部位の色彩を検出するための2値化しきい値、被検査部位の測定値(主として面積)の適否を判定するための判定ロジックならびに判定基準値など、複数種の検査データが設定される。   The memory 55 stores a program describing a series of processing procedures for executing an inspection and a database for storing inspection data (hereinafter referred to as “inspection database”). In the inspection database, for each component mounted on the board 200 to be inspected, data relating to the setting of the inspection area to be set (indicating the position and size of the inspection area), the color of the part to be inspected in each inspection area A plurality of types of inspection data, such as a binarization threshold value for detecting the detection value, determination logic for determining the suitability of the measurement value (mainly area) of the region to be inspected, and a determination reference value, are set.

本明細書では、上記の検査データのうち、検査領域の位置および大きさを示すデータを「検査領域の設定データ」と呼び、それ以外の検査データを「検査用パラメータ」と総称する。   In the present specification, of the above inspection data, data indicating the position and size of the inspection region is referred to as “inspection region setting data”, and other inspection data is collectively referred to as “inspection parameter”.

つぎに、この実施例の基板200は複数の領域に分けて撮像される。検査用データベースには、基板200に対するカメラ2の視野の割り付けに関するデータも格納されている。制御部50は、このデータに基づきXYステージ制御部54を介して基板ステージ4の移動を制御することにより、カメラ2を各撮像対象領域に順に位置合わせして撮像を行う。毎時の撮像により生成されたカラー画像は画像入力部51を介して制御部50に入力され、その内部のメモリ(RAMなど)に格納される。制御部50は、この内部メモリに格納された画像中の部品に順に着目し、着目部品に対し、その検査データに基づき、検査領域の設定、2値化、計測、良否判定の各処理を順に実行する。   Next, the substrate 200 of this embodiment is imaged in a plurality of regions. The inspection database also stores data relating to the allocation of the field of view of the camera 2 to the substrate 200. The control unit 50 controls the movement of the substrate stage 4 via the XY stage control unit 54 based on this data, thereby aligning the camera 2 with each imaging target region in order to perform imaging. A color image generated by imaging every hour is input to the control unit 50 via the image input unit 51 and stored in an internal memory (such as a RAM). The control unit 50 pays attention to the components in the image stored in the internal memory in order, and sequentially sets the inspection area, binarization, measurement, and pass / fail judgment processing for the target component based on the inspection data. Execute.

制御部50は、通信インターフェース58および通信回線6を介して、図中のパーソナルコンピュータ7や図示しない上位機器に接続されている。制御部50は、1枚の基板200の検査が終了する都度、その基板200に対する検査の結果や検査に用いられた画像などを、上位機器に出力する。また、検査結果や画像は、表示部56にも表示される。   The control unit 50 is connected to the personal computer 7 in the figure and a host device (not shown) via the communication interface 58 and the communication line 6. Each time the inspection of one substrate 200 is completed, the control unit 50 outputs the inspection result for the substrate 200, the image used for the inspection, and the like to the host device. In addition, the inspection result and the image are also displayed on the display unit 56.

パーソナルコンピュータ7には、上記の検査装置で使用される検査データを作成するためのシステム(以下、「検査データ作成システム」または単に「システム」という。)が組み込まれている。この検査データ作成システムには、複数の部品種にそれぞれサブ部品種を対応づけた階層構造データが登録されている。部品種は、想定され得る各種部品の外観を、主として部品本体の形状の違いにより分類することで設定されたものである。この部品種を、部品の色彩や電極の形状などの違いに基づき細分類したものがサブ部品種である。   The personal computer 7 incorporates a system (hereinafter referred to as “inspection data creation system” or simply “system”) for creating inspection data used in the above-described inspection apparatus. In this inspection data creation system, hierarchical structure data in which sub-part types are associated with a plurality of part types is registered. The component type is set by classifying the appearance of various components that can be assumed mainly by the difference in the shape of the component body. A sub-part type is obtained by finely classifying this part type based on differences in the color of the part, the shape of the electrode, and the like.

各部品種には、当該部品種に適した検査領域の基本の設定ルールが登録されている。また各サブ部品種には、上位の部品種の検査領域の設定ルールへのリンク情報と、サブ部品種の外観の特徴に応じた検査用パラメータとを含む基本ライブラリデータとが登録されている。   In each component type, a basic setting rule of an inspection area suitable for the component type is registered. Each sub-part type is registered with basic library data including link information to the setting rule for the inspection region of the upper part type and inspection parameters according to the appearance characteristics of the sub-part type.

この実施例では、検査装置において、基板200の部品実装前および部品実装後の良品モデルをそれぞれ複数の領域に分割して領域毎に撮像し、生成された画像をつなぎ合わせることにより、基板200の全体構成を表す基準画像を生成する。以下では、部品実装前の基板を示す基準画像を「実装前基準画像」といい、部品実装後の基板を示す基準画像を「実装後基準画像」という。   In this embodiment, in the inspection apparatus, the non-defective product model before and after the component mounting of the substrate 200 is divided into a plurality of regions and images are taken for each region, and the generated images are connected to each other. A reference image representing the overall configuration is generated. Hereinafter, a reference image indicating a substrate before component mounting is referred to as a “pre-mounting reference image”, and a reference image indicating a substrate after component mounting is referred to as a “post-mounting reference image”.

検査データ作成システムでは、各基準画像や基板200のCADデータを入力し、これらの入力情報と上記の基本ライブラリデータとを用いて、CADデータが表す部品の型式毎に、その型式に適したサブ部品種を特定し、特定されたサブ部品種にリンクする検査用パラメータを使用して、当該型式に対応するバリエーションのライブラリデータ(以下、単に「バリエーション」という。)を作成し、これを登録する。なお、既にバリエーションが登録されている型式については、この処理は不要である。   In the inspection data creation system, each reference image and CAD data of the substrate 200 are input, and by using these input information and the above basic library data, sub models suitable for the model are provided for each part model represented by the CAD data. Using the inspection parameters linked to the specified sub part type, specify the part type, create library data of the variation corresponding to the model (hereinafter simply referred to as “variation”), and register it. . Note that this processing is not necessary for models for which variations are already registered.

上記の登録処理が終了すると、システムでは、CADデータが示す各部品にそれぞれその型式に応じたバリエーションを適用して、各部品の検査データを作成する。完成した検査データは、検査装置1に送信され、メモリ55内の検査用データベースに格納される。   When the above registration process is completed, the system applies the variation corresponding to the model to each part indicated by the CAD data, and creates inspection data for each part. The completed inspection data is transmitted to the inspection apparatus 1 and stored in the inspection database in the memory 55.

図2は、上記のバリエーションの作成に関して検査データ作成システムが実行する処理の概略手順を示す。
このフローチャートを参照して説明すると、まず、検査データ作成システムは、基板200のCADデータからバリエーションが登録されていない部品を検索し、この検索で抽出された部品の部品型式を示すリスト(以下、「未登録リスト」という。)を図1に示すモニタ17に表示する(ST1)。ユーザが未登録リスト中の一部品型式を選択すると(ST2が「YES」)、検査データ作成システムは、選択された型式の部品の実装位置をCADデータから割り出し、この部品を含む範囲内の実装後基準画像をモニタ17に表示する(ST3)。
FIG. 2 shows a schematic procedure of processing executed by the inspection data creation system with respect to creation of the above variation.
The description will be made with reference to this flowchart. First, the inspection data creation system searches the CAD data of the board 200 for parts for which no variation is registered, and a list (hereinafter, referred to as a part type) of the parts extracted by this search. “Unregistered list”) is displayed on the monitor 17 shown in FIG. 1 (ST1). When the user selects one part type in the unregistered list (ST2 is “YES”), the inspection data creation system calculates the mounting position of the part of the selected type from the CAD data, and mounts within the range including this part. The rear reference image is displayed on the monitor 17 (ST3).

このときの表示画面には、各種部品種やサブ部品種のサンプル画像のリストも表示される。ユーザは、選択中の型式の部品の形状や色彩をこのリストと照合して、当該部品に適合する部品種およびサブ部品種を選択する。
さらにユーザは、表示中の画像上で設定対象の部品の部品本体に対応する領域を指定する。ここで指定される領域を、以下では「部品本体領域」という。
A list of sample images of various component types and sub-component types is also displayed on the display screen at this time. The user collates the shape and color of the part of the selected model with this list, and selects a part type and sub-part type that match the part.
Further, the user designates an area corresponding to the component main body of the component to be set on the displayed image. The area designated here is hereinafter referred to as “component body area”.

検査データ作成システムでは、上記の各操作を受け付けると(ST4,5)、選択された部品種およびサブ部品種に適合する検査領域の設定ルールを読み出し、このルールを部品本体領域が設定された範囲に適用して検査領域を設定する(ST6)。さらに、表示中の実装後基準画像を、検査領域の設定状態を示すものに更新する(ST7)。   In the inspection data creation system, when each of the above operations is received (ST4, 5), an inspection area setting rule suitable for the selected component type and sub-component type is read out, and this rule is the range in which the component main body region is set. The inspection area is set by applying to (ST6). Further, the post-mounting reference image being displayed is updated to indicate the setting state of the inspection area (ST7).

この表示に対し、ユーザが確定操作を行うと(ST8)、検査データシステムでは、表示中の検査領域の設定データに、設定対象の部品につき選択されているサブ部品種の検査用パラメータを組み合わせ、この組み合わせを新規のバリエーションとして登録する(ST10)。
なお、この新規バリエーションには、バリエーション名として設定対象の部品の品番名称が付与される。また、検査領域の設定状態の表示に対し、ユーザがその表示を不適当であると判断してキャンセル操作を行った場合には、ユーザの手操作に応じて検査領域を修正する(ST9)。
When the user performs a confirming operation on this display (ST8), the inspection data system combines the inspection parameter of the sub-part type selected for the setting target part with the setting data of the inspection area being displayed, This combination is registered as a new variation (ST10).
The new variation is given the part number of the part to be set as the variation name. If the user determines that the display is inappropriate for the display of the setting state of the inspection area and performs a cancel operation, the inspection area is corrected according to the user's manual operation (ST9).

以下、未登録の部品型式がなくなるまでこれらが順に選択されて、上記と同様の処理が実行される。これにより、全ての型式に適合するバリエーションが作成されて登録されると、ST11が「NO」となり、バリエーションの作成処理を終了する。   Thereafter, these are sequentially selected until there is no unregistered part type, and the same processing as described above is executed. As a result, when variations suitable for all types are created and registered, ST11 becomes “NO” and the variation creation process is terminated.

以下、ST6の検査領域の設定処理について詳細に説明する。
この実施例では、電極の数が比較的少なく、かつ電極数が固定されているチップ部品に対しては、図3(A)に示すように、処理対象の部品202の部品種に設定されている基本のルールに基づき、ユーザにより指定された部品本体領域30を基準にして各種検査領域S101〜S104を設定する。ただし、基板側のランドの位置や大きさには、ばらつきがあるので、図3の(B)(C)に示すように、実装前基準画像の対応範囲からランドを抽出し、この抽出結果に応じて、はんだ付け状態の検査用の検査領域S101,S102を修正するようにしている。
なお、図中の検査領域S103は、部品の有無を判別する検査に用いられる。また、検査領域S104は、実際の処理対象画像から検査対象の部品やランドを抽出して、各検査領域S101〜S103の位置を微調整する目的に使用される。
Hereinafter, the inspection area setting process in ST6 will be described in detail.
In this embodiment, for a chip component in which the number of electrodes is relatively small and the number of electrodes is fixed, the component type of the component 202 to be processed is set as shown in FIG. Various inspection areas S101 to S104 are set based on the component main body area 30 designated by the user based on the basic rules. However, since the position and size of the land on the board side vary, as shown in FIGS. 3B and 3C, the land is extracted from the corresponding range of the pre-mounting reference image, and the extraction result is Accordingly, the inspection areas S101 and S102 for inspection of the soldered state are corrected.
Note that the inspection area S103 in the drawing is used for inspection for determining the presence or absence of a component. In addition, the inspection area S104 is used for the purpose of finely adjusting the positions of the inspection areas S101 to S103 by extracting parts and lands to be inspected from the actual processing target image.

上記に対し、SOP,QFPなど、多数の電極ピンが配置され、部品型式によって電極ピンの数が異なる部品を設定対象とする場合には、まず電極ピンの数やピッチを特定する必要がある。この特定をするには、実装前基準画像からランドを抽出したり、実装後基準画像から電極ピンを抽出する方法が考えられるが、微小で数が特定されていない部位を正確に抽出するには複雑な処理を行う必要があり、処理時間が長びく可能性がある。またランドに関してメッキ処理がされている場合に、表面の凹凸むらなどによって画像中の色彩や明るさにばらつきが生じて抽出に失敗したり、部品の周囲にある電極ピンやランドによく似た色の部位が誤抽出されるなど、抽出の精度を確保できない可能性もある。   On the other hand, when a large number of electrode pins, such as SOP and QFP, are arranged and a component having a different number of electrode pins depending on the component type is to be set, it is necessary to first specify the number and pitch of the electrode pins. In order to identify this, it is possible to extract lands from the pre-mounting reference image or to extract electrode pins from the post-mounting reference image. It is necessary to perform complicated processing, and processing time may be long. In addition, when the land is plated, the color or brightness in the image varies due to uneven surface irregularities, etc., and the extraction fails, or the color is very similar to the electrode pins and lands around the part. There is a possibility that the accuracy of extraction cannot be ensured, for example, the part of the above is erroneously extracted.

そこで、この実施例では、SOPやQFPでは電極ピンが規則性をもって配置されていることや、線対称の形状を有している点に着目し、ユーザに一部の電極ピンやランドを含む領域を指定させて、その領域内の画像から電極ピンおよびランドの規則性を特定し、この結果に基づき、全ての電極ピンおよびランドに対する検査領域を設定するようにしている。   Therefore, in this embodiment, focusing on the fact that the electrode pins are regularly arranged in SOP and QFP and having a line-symmetric shape, an area including some electrode pins and lands is shown to the user. Is specified, the regularity of the electrode pins and lands is specified from the image in the area, and the inspection areas for all the electrode pins and lands are set based on the result.

図4および図5は、上記の方法で検査領域を設定する際に用いられる作業用画面を提示される順に示す。この画面の左側には、基板200の実装後基準画像を表示するための画像表示領域100が設けられ、右側には、選択対象の部品に関する情報を表示する欄101や、ユーザの設定操作を支援するためのガイダンス領域102などが設けられる。   4 and 5 show the work screens used in setting the examination area by the above method in the order in which they are presented. On the left side of this screen, an image display area 100 for displaying a reference image after mounting of the substrate 200 is provided, and on the right side, a column 101 for displaying information on a component to be selected and a user setting operation are supported. For example, a guidance area 102 is provided.

図4に示す画面は、処理対象の部品(現在選択されている型式の部品)の部品種およびサブ部品種が選択されたことに応じて表示されたもので、画像表示領域100には、処理対象の部品201(この例ではSOP)を中心にした実装後基準画像が、デフォルトの設定による部品本体領域30とともに表示されている。また、画面の右上およびガイダンス領域102の中央部には、選択されたサブ部品種のサンプル画像103が表示される。   The screen shown in FIG. 4 is displayed in response to the selection of the component type and sub-component type of the component to be processed (the component of the currently selected type). A post-mounting reference image centering on the target component 201 (SOP in this example) is displayed together with the component main body region 30 by default setting. In addition, a sample image 103 of the selected sub-part type is displayed at the upper right of the screen and at the center of the guidance area 102.

部品本体領域30は、各検査領域を設定するための基準として用いられるもので、範囲を表す矩形枠の一辺に三角形状のマーク31が設定されている。このマーク31は部品201の向きを示すもので、たとえば、マーク31が右向きであれば部品201の向きは0度であり、マーク31が上向きであれば、部品201の向きは90度である。この部品201の向きは、CADデータに基づき設定される。   The component main body region 30 is used as a reference for setting each inspection region, and a triangular mark 31 is set on one side of a rectangular frame representing the range. The mark 31 indicates the orientation of the component 201. For example, if the mark 31 is facing right, the orientation of the component 201 is 0 degrees, and if the mark 31 is facing upward, the orientation of the component 201 is 90 degrees. The orientation of the component 201 is set based on CAD data.

ガイダンス領域102には、「自動」および「手動」のタブが設けられる。図4,5の例のように「自動」のタブが選択されている場合には、電極ピンやランドを自動抽出するモードが設定され、ガイダンス領域102には、自動抽出の対象領域の指定に関するユーザへのメッセージ104が表示される。   The guidance area 102 is provided with “automatic” and “manual” tabs. When the “automatic” tab is selected as in the examples of FIGS. 4 and 5, a mode for automatically extracting electrode pins and lands is set, and the guidance area 102 relates to designation of the target area for automatic extraction. A message 104 to the user is displayed.

また、このときのガイダンス領域102には、2つのボタン105,106が設けられている。ボタン105は部品本体領域の指定が終了したことを通知するものであり、以下、このボタン105を「指定ボタン105」という。ボタン106は、部品本体領域30の向きが検査データの定義と異なる場合に、この向きを変更するためのものである。   In addition, two buttons 105 and 106 are provided in the guidance area 102 at this time. The button 105 notifies that the designation of the component main body area has been completed. Hereinafter, this button 105 is referred to as a “designation button 105”. The button 106 is used to change the orientation of the component main body region 30 when the orientation is different from the definition of the inspection data.

さらに、ガイダンス領域102の下方には、画面を一段階前のものに戻すための「戻る」ボタン107などが設けられる。また、画像表示領域100の下方には、この領域100内の表示倍率を切り替えるための設定領域108や、表示中の画像を切り替えるための切り替え用のボタン109などが設けられる。ボタン109は、画像表示領域100内の設定対象の部品の状態が良くない場合などに操作されるもので、この操作が行われると、画像表示領域100内の表示は、選択中の部品型式で、現在表示されているものとは別の場所にある部品を中心にするものに更新される。   Furthermore, a “return” button 107 for returning the screen to the previous one is provided below the guidance area 102. Below the image display area 100, a setting area 108 for switching the display magnification in the area 100, a switching button 109 for switching the image being displayed, and the like are provided. The button 109 is operated when the state of the component to be set in the image display area 100 is not good. When this operation is performed, the display in the image display area 100 is the part type being selected. , It is updated to one centered on a part in a location different from the currently displayed one.

図4の例の画像表示領域100に表示されている部品本体領域30は、選択中の部品種の基本の設定ルールに基づいて設定されたものであるが、実際の部品には適合していない。この実施例では、ユーザに、マウスを用いて、部品本体領域30の各辺を実際の部品本体に合わせるように調整することを要求する。ユーザがこの要求に応じた操作を行って指定ボタン105を操作することにより、図2のST5の受付処理が実行される。   The component main body region 30 displayed in the image display region 100 in the example of FIG. 4 is set based on the basic setting rule of the selected component type, but is not suitable for an actual component. . In this embodiment, the user is requested to adjust each side of the component main body region 30 to match the actual component main body using the mouse. When the user performs an operation corresponding to this request and operates the designation button 105, the reception process of ST5 in FIG. 2 is executed.

部品本体領域30の指定が受け付けられると、画面は図5に示すものに切り替えられる。この画面の画像表示領域100では、調整後の部品本体領域30の左下の角部の近傍位置に矩形枠32が表示される。またガイダンス領域102では、コメント104の内容が、矩形枠32による指定操作を指示するものに変更され、指定ボタン105に代わって、「抽出」の文字が付されたボタン110が設けられる。このボタン110は、指定枠32内の画像を用いて検査領域を自動設定することを指示するためのものである。
以下、上記の矩形枠32を「指定枠32」といい、ボタン110を「抽出ボタン110」という。
When the designation of the component main body area 30 is accepted, the screen is switched to that shown in FIG. In the image display area 100 of this screen, a rectangular frame 32 is displayed in the vicinity of the lower left corner of the adjusted component main body area 30. In the guidance area 102, the content of the comment 104 is changed to that instructing a designation operation using the rectangular frame 32, and a button 110 with “extract” characters is provided instead of the designation button 105. This button 110 is used to instruct to automatically set an inspection region using an image in the designation frame 32.
Hereinafter, the rectangular frame 32 is referred to as a “designated frame 32”, and the button 110 is referred to as an “extract button 110”.

さらに、この段階より後の画面のガイダンス領域102の下方には、「枠変更」の文字を付したボタン111が設けられる。このボタン111は、指定枠32の位置を変更することを指示するためのものである。このボタン111が操作される都度、指定枠32は、部品本体領域30の各角部の近傍に順に移動する。   Further, below the guidance area 102 on the screen after this stage, a button 111 with a “change frame” character is provided. This button 111 is for instructing to change the position of the designation frame 32. Each time the button 111 is operated, the designation frame 32 moves in order near each corner of the component main body region 30.

ユーザは、ガイダンス領域102のコメント104に従って指定枠32の位置や大きさを調整し、抽出ボタン110を操作する。これにより部品本体領域30が第1の指定領域として、指定枠32に対応する領域が第2の指定領域として、それぞれ確定され、検査領域の自動設定処理が開始される。   The user adjusts the position and size of the designation frame 32 according to the comment 104 in the guidance area 102 and operates the extraction button 110. As a result, the component main body area 30 is determined as the first specified area, and the area corresponding to the specified frame 32 is determined as the second specified area, and the automatic setting process of the inspection area is started.

図6は、図5の画面より後の画像表示領域100における表示の推移を、処理対象の部品201に表示を限定して示す。図中の(1)(2)は、ユーザの指定枠32の調整作業に応じた表示を示し、(3)は最終的に検査領域が自動設定されたときの表示例を示す。   FIG. 6 shows the display transition in the image display area 100 after the screen of FIG. 5 with the display limited to the component 201 to be processed. In the figure, (1) and (2) show displays according to the adjustment work of the user's designated frame 32, and (3) shows a display example when the inspection area is finally automatically set.

この実施例の指定枠32は、マウスにより幅を自由に変更できるように設定されている。また、指定枠32の幅方向に沿う2辺のうちの一方は、初期段階から部品本体領域30の内側に位置づけられて固定されるが、部品本体領域の外側に位置する辺は自由に調整することができる。この実施例では、これらの調整機能を用いて、ユーザに、部品本体の一辺に沿って並ぶピン電極が一番左端のものから順に3本含まれるように指定枠32の幅を調整するとともに、指定枠32の外側の辺をランドの先端位置に合わせるように要求する。ユーザがこの要求に従って図6(1)(2)のように調整操作を行い、抽出ボタン110を操作すると、部品の検査に必要な全ての検査領域が設定され、表示状態は図6(3)に示すようなものに更新される。   The designation frame 32 of this embodiment is set so that the width can be freely changed by the mouse. One of the two sides along the width direction of the designated frame 32 is positioned and fixed inside the component main body region 30 from the initial stage, but the side located outside the component main body region can be freely adjusted. be able to. In this embodiment, using these adjustment functions, the user adjusts the width of the designation frame 32 so that three pin electrodes arranged along one side of the component main body are included in order from the leftmost one. A request is made to align the outer side of the designated frame 32 with the tip position of the land. When the user performs an adjustment operation as shown in FIGS. 6 (1) and 6 (2) according to this request and operates the extraction button 110, all inspection areas necessary for the part inspection are set, and the display state is shown in FIG. 6 (3). It is updated as shown in

この表示では、設定された検査領域を示す矩形枠が部品201の画像に重ね表示される。
ここで設定される検査領域を簡単に説明すると、この実施例では、部品本体の一辺に沿って並ぶ電極ピンを3〜4個のグループに分けて、グループ毎に、そのグループ内の電極ピンおよびこれらに対応するランドが含まれる範囲に検査領域S1〜S4を設定する。また、個々の電極ピンにもそれぞれ個別に検査領域が設定されるが、図6(3)の表示例では、グループ毎に、そのグループ内の電極ピンの1つを代表として、代表の電極ピンに設定した検査領域S11,S21,S31,S41のみを表示する。
In this display, a rectangular frame indicating the set inspection area is displayed superimposed on the image of the component 201.
The inspection area set here will be briefly described. In this embodiment, the electrode pins arranged along one side of the component main body are divided into 3 to 4 groups, and the electrode pins in the group and Inspection areas S1 to S4 are set in a range including lands corresponding to these. In addition, an inspection region is individually set for each electrode pin. In the display example of FIG. 6C, for each group, one of the electrode pins in the group is used as a representative electrode pin. Only the inspection areas S11, S21, S31, and S41 set in the above are displayed.

また、この例では表示されていないが、S11,S21,S31,S41などの電極ピン単位の検査領域の間には、それぞれブリッジを検出するための検査領域が設定され、各電極ピンの先端からランドの先端までの範囲には、両者の間のフィレットの状態を検査するための検査領域が設定される。   Although not displayed in this example, inspection areas for detecting bridges are set between inspection areas in units of electrode pins such as S11, S21, S31, S41, and the like, from the tip of each electrode pin. An inspection area for inspecting the state of the fillet between the two is set in the range up to the tip of the land.

電極ピン単位の検査領域は、電極ピンの有無や位置ずれ、形状の適否などを判別する検査に用いられる。
また、グループ単位の検査領域S1〜S4は、撮像対象領域を割り付ける際の基準の単位として用いられる。すなわち、同じグループに含まれる範囲のすべてが同一の画像に含まれるように毎時の撮像対象領域が設定される。これにより電極ピンやランドの単位で実施される検査の精度を確保することができる。
The inspection area in units of electrode pins is used for inspection to determine the presence / absence of electrode pins, positional deviation, suitability of shape, and the like.
Further, the inspection areas S1 to S4 in group units are used as reference units when assigning the imaging target areas. That is, the hourly imaging target region is set so that the entire range included in the same group is included in the same image. Thereby, it is possible to ensure the accuracy of the inspection performed in units of electrode pins and lands.

この実施例では、指定ボタン105が操作された後でも、抽出ボタン110を操作するまでの間であれば、部品本体領域30の位置や大きさを修正することができる。指定枠32も同様に、抽出ボタン110を操作する前であれば、何度でも調整することができる。また、ユーザが指定枠32の初期設定位置の画像の精度が良くないと判断した場合には、図5中の変更ボタン111を操作することによって、部品本体領域30の他の角部の付近で画像の精度が良い場所に、指定枠32を移動させることができる。   In this embodiment, even after the designation button 105 is operated, the position and size of the component main body region 30 can be corrected until the extraction button 110 is operated. Similarly, the designation frame 32 can be adjusted any number of times before the extraction button 110 is operated. If the user determines that the accuracy of the image at the initial setting position of the designated frame 32 is not good, by operating the change button 111 in FIG. 5, near the other corner of the component main body region 30. The designated frame 32 can be moved to a place where the accuracy of the image is good.

抽出ボタン110が操作された後の全体画面に関しては図示していないが、ガイダンス領域102には、検査領域の設定を確定するための確定ボタンや、設定を破棄するキャンセルボタンなどが設けられる。ユーザが表示された検査領域を適切であると判断して確定ボタンを操作することにより、表示中の検査領域にかかる設定データが確定されて、先の図2のST10の処理が実行される。一方、キャンセルボタンが操作された場合には、検査領域の設定データは破棄され、ガイダンス領域102は図5に示した状態のものに戻される。   Although the entire screen after the extraction button 110 is operated is not illustrated, the guidance area 102 is provided with a confirmation button for confirming the setting of the examination area, a cancel button for discarding the setting, and the like. When the user determines that the displayed examination area is appropriate and operates the confirm button, the setting data relating to the examination area being displayed is confirmed, and the process of ST10 of FIG. 2 is executed. On the other hand, when the cancel button is operated, the setting data of the examination area is discarded, and the guidance area 102 is returned to the state shown in FIG.

図7は、上記の検査領域を設定するために導出される主要なパラメータを示す。図中、Pは電極ピンの幅であり、Pは電極ピンの長さであり、Pは電極ピン間のピッチである。また、Lはランドの幅であり、Lは部品の端縁からランドの端縁までの距離である。Sは、部品の一角部からその直近の電極ピンまでの距離(以下、この距離を「マージン」と呼ぶ。)である。 FIG. 7 shows the main parameters derived for setting the inspection area. In the figure, P W is the width of the electrode pins, P M is the length of the electrode pins, the P D is the pitch between the electrode pins. Further, L W is the width of the land, L M is the distance from the edge of the part to the end edge of the land. SD is a distance from one corner of the component to the nearest electrode pin (hereinafter, this distance is referred to as “margin”).

図8は、抽出ボタン110の操作に応じて検査データ作成システムが実行する処理の手順を示す。以下、このフローチャートに沿って、SOPやQFPを対象に検査領域の設定データを作成する場合の処理を説明する。   FIG. 8 shows a procedure of processing executed by the examination data creation system in accordance with the operation of the extraction button 110. In the following, a process for creating inspection area setting data for SOP and QFP will be described with reference to this flowchart.

この処理では、まず、実装後基準画像を対象に、指定枠32に対応する範囲から電極ピンの画像を抽出する(ST101)。なお、この実施例では、指定枠32内に3本の電極ピンおよびこれらに対応するランドが含まれるようにすることを求めているが、部品本体領域30の一辺に沿う範囲を指定するのであれば、4本以上の電極ピンが含まれる範囲まで指定枠32が拡大されても、その指定を有効とする。しかし、ST101で抽出された電極ピンが2本以下の場合には、指定枠32による指定を受け付けずに、ガイダンス領域102に再度の指定を求めるメッセージを表示するなどのエラー処理を実行する。   In this process, first, an electrode pin image is extracted from a range corresponding to the designated frame 32 for the post-mounting reference image (ST101). In this embodiment, the specification frame 32 is required to include three electrode pins and lands corresponding to them, but the range along one side of the component main body region 30 may be specified. For example, even if the designation frame 32 is expanded to a range including four or more electrode pins, the designation is valid. However, when the number of electrode pins extracted in ST101 is two or less, error processing such as displaying a message for requesting re-designation in the guidance area 102 without receiving designation by the designation frame 32 is executed.

ST101において3本以上の電極ピンが抽出された場合(ST102が「YES」)には、これらの抽出結果に基づき、各電極ピンの幅および長さを計測し、それぞれの平均値を求める。そして、幅の計測値の平均値をPとし、長さの計測値の平均値をPとする(ST103)。 When three or more electrode pins are extracted in ST101 (“YES” in ST102), the width and length of each electrode pin are measured based on these extraction results, and the average value of each is obtained. Then, the average value of the measured value of the width and P W, the average length of the measured values and P M (ST103).

つぎに、ステップST104では、1番目のピンと2番目のピンとの間の距離、および2番目のピンと3番目のピンとの間の距離をそれぞれ計測し、各計測値に基づき電極ピン間のピッチPを特定する。この処理では正確を期すために、図9に示す想定ピッチテーブルを参照して各計測値に最も適合する想定ピッチを特定し、特定された想定ピッチをピクセルの単位に置き換えたものをPとする。なお、想定ピッチテーブルには、開発者が経験的に構築した情報に基づくピッチの具体的な値(ただし、図9ではa〜gの文字により示す。)が格納されている。 Next, in step ST104, the distance between the first pin and the second pin and the distance between the second pin and the third pin are respectively measured, and the pitch P D between the electrode pins is measured based on each measured value. Is identified. To ensure accuracy in this process to identify the best fit assuming the pitch with reference to the assumed pitch table for each measured value shown in FIG. 9, a replaces the identified assumed pitch units of pixels and P D To do. The assumed pitch table stores specific values of pitch based on information empirically constructed by the developer (indicated by characters a to g in FIG. 9).

つぎに、部品本体の角部のマージンSを求める処理を実行する(ST105)。ここでは、指定枠32から抽出された電極ピンの中で部品本体領域30の角部に最も近いものに着目し、当該角部と着目した電極ピンとの間の距離を計測し、その計測値をマージンSとする。 Next, a process for obtaining the margin margin SD of the component main body is executed (ST105). Here, paying attention to the electrode pin extracted from the designation frame 32 and closest to the corner of the component main body region 30, the distance between the corner and the focused electrode pin is measured, and the measured value is obtained. Let margin SD .

つぎに、実装前基準画像に処理対象を切り替えて、指定枠32に対応する範囲からランドを抽出する(ST106)。さらに、抽出された各ランドの幅および長さを計測し、各幅の計測値の平均値をLとし、各長さの計測値の平均値をLとする(ST107)。 Next, the processing target is switched to the pre-mounting reference image, and a land is extracted from the range corresponding to the designated frame 32 (ST106). Furthermore, the width and length of each land that is extracted is measured and the average value of the measurement values of each width is L W, the average value of the measurement values of each length to L M (ST107).

このようにして各種パラメータが導出されると、ST108では、部品本体領域30の指定枠に対応する辺を基準の辺として、この基準の辺の両端にそれぞれマージンSを設定する。そして、両端のマージンSを除いた範囲の長さとピッチPとを用いて、基準の辺における電極ピンの数および各電極ピンの位置を特定する。 When various parameters are derived in this way, in ST108, the side corresponding to the designated frame of the component main body region 30 is set as a reference side, and margins SD are set at both ends of the reference side. Then, using a length and a pitch P D range excluding the margin S D at both ends, to identify the number and position of each electrode pin of the electrode pins in the reference side.

つぎに、ST109では、上記の処理により特定された各電極ピンに検査領域を割り付ける。具体的には、電極ピンやランドの幅および長さを示すパラメータP,P,L,Lに基づき、電極ピン単位の検査領域(図6(3)のS11,S21,S31,S41)の幅や長さを特定し、これらを各電極ピンにつき特定した位置に設定する。さらに、これらの検査領域を3個または4個の単位でグループ分けして、グループ単位の検査領域(図6(3)のS1,S2,S3,S4)を設定する。さらに、ブリッジ検査用の検査領域や、ランドに対する検査領域などを設定する。
なお、電極ピン単位の検査領域を特定する場合には、電極ピンとランドとの幅方向が中心位置で位置合わせされているものとして、検査領域の幅を設定する。
Next, in ST109, an inspection area is assigned to each electrode pin specified by the above processing. Specifically, based on the parameters P W , P M , L W , and L M indicating the width and length of the electrode pins and lands, the inspection area for each electrode pin (S11, S21, S31, The width and length of S41) are specified, and these are set at the specified positions for each electrode pin. Further, these inspection areas are grouped in units of 3 or 4 to set inspection areas in units of groups (S1, S2, S3, S4 in FIG. 6 (3)). Further, an inspection area for bridge inspection, an inspection area for lands, and the like are set.
When specifying the inspection area in units of electrode pins, the width of the inspection area is set assuming that the width direction of the electrode pins and the land is aligned at the center position.

上記の処理により、基準の辺に対応する検査領域が設定されると、これらの検査領域を180度回転させたものを基準の辺に対向する辺に設定する(ST110)。なお、検査領域の回転処理として、この実施例では、画像中の検査領域の配列を時計回りまたは反時計回りに回転させるが、これに限らず、検査領域の配列を、その配列方向を軸として軸回転させる処理(各検査領域を裏返した状態にする変換処理)を行ってもよい。
処理対象の部品がSOPである場合には、つぎのST111が「NO」となり、これをもって検査領域の設定処理が終了する。
When the inspection areas corresponding to the reference sides are set by the above processing, those obtained by rotating these inspection areas by 180 degrees are set as the sides opposite to the reference sides (ST110). In this embodiment, as the inspection area rotation processing, the array of inspection areas in the image is rotated clockwise or counterclockwise. A process of rotating the shaft (a conversion process for turning each inspection region upside down) may be performed.
If the part to be processed is SOP, the next ST111 is “NO”, and the setting process of the inspection area is completed.

一方、処理対象の部品がQFPである場合(ST111が「YES」)には、部品本体領域の基準の辺に直交する二辺のうちの一方を基準の辺に変更して(ST112)、この基準の辺における電極ピンの数および位置を特定し(ST113)、その特定結果に基づき検査領域の割り付け処理を実行する(ST114)。さらに、この処理により設定された検査領域を180度回転させたものを、基準の辺に対向する辺に設定する(ST115)。これをもって、検査領域の設定処理が終了となる。   On the other hand, when the component to be processed is QFP (ST111 is “YES”), one of the two sides orthogonal to the reference side of the component main body region is changed to the reference side (ST112). The number and position of the electrode pins on the reference side are identified (ST113), and the inspection area allocation processing is executed based on the identification result (ST114). Further, the inspection area set by this process rotated 180 degrees is set as the side opposite to the reference side (ST115). This completes the inspection area setting process.

ST113,ST114,ST115では、それぞれST108,ST109,ST110と同様の処理を実行する。ただし、処理対象の部品の部品本体が正方形でない場合には、直交する二辺におけるマージンが異なる場合がある。このマージンの違いに対応するためにST114では、電極ピン単位の検査領域を割り付けた後に、これらの検査領域の配列の中心位置が基準の辺の中心に位置合わせされるように、各検査領域を微調整する。   In ST113, ST114, and ST115, the same processes as ST108, ST109, and ST110 are executed, respectively. However, if the component body of the component to be processed is not square, the margins on two orthogonal sides may be different. In order to cope with this difference in margin, in ST114, after allocating inspection areas in units of electrode pins, each inspection area is set so that the center position of the array of these inspection areas is aligned with the center of the reference side. Make fine adjustments.

また、図9に示した想定ピッチテーブル中に値が接近したピッチが複数格納されている場合には、これらが想定ピッチテーブル中に画像から計測されたピッチに近似して、いずれを選択するのが良いかを判別するのが困難になる場合があると考えられる。この点につきこの実施例では、ST104において、想定ピッチテーブル中の2以上の値が画像から計測されたピッチに近似した場合には、これらの値をすべてPとして仮設定する。さらにST108においては、Pの各仮設定値に基づき電極ピンの数および位置を特定し、各電極ピンを等間隔により近い状態で配置できたときの特定結果およびその特定に用いたPを採用する。さらに、この後にST113を実行する場合には、ピッチPとして、ST106で採用した方の値を使用する。 Further, when a plurality of pitches close in value are stored in the assumed pitch table shown in FIG. 9, these are approximated to the pitch measured from the image in the assumed pitch table, and which one is selected. It is considered that it may be difficult to determine whether the image is good. In this embodiment this respect, in ST 104, when two or more values in the assumed pitch table approximating the pitch measured from an image, all of these values are provisionally set as P D. In addition ST 108, a P D using specific results and that particular time identifying the number and location of electrode pins based on the temporary decision value of P D, can place each electrode pins in the state closer to an equal interval adopt. Furthermore, when running ST113 After this, the pitch P D, use the value of the person employed in ST 106.

また、図4〜6に示した例では、各ランドの幅が均一であるものとしたが、基板によっては、図10に示すように、端部のランドの幅LW1が他のランドの幅LW2より大きくなっている場合もある。このような場合には、ST107では、各幅LW1およびLW2を個別に算出して、これらの値を検査領域の設定に反映させる。 In the examples shown in FIGS. 4 to 6, the width of each land is uniform. However, depending on the substrate, as shown in FIG. 10, the width L W1 of the end land is the width of the other land. It may be larger than LW2 . In such a case, in ST107, each width L W1 and L W2 is calculated individually, and these values are reflected in the setting of the inspection region.

この実施例で指定枠32内に3本以上の電極ピンを含めることを要求するのは、上記の例のようなランドの幅のばらつきや、電極ピンやランドを画像から抽出する際の抽出精度を考慮してのことである。ただし、抽出の精度を保証できるのであれば、一番端とその隣の2つの電極ピン、ならびにこれらに対応するランドのみを含む範囲にまで指定枠32の有効範囲を許容してもよい。   In this embodiment, it is required to include three or more electrode pins in the designated frame 32 because of variations in land width as in the above example, and extraction accuracy when extracting electrode pins and lands from an image. Is to consider. However, as long as the accuracy of extraction can be guaranteed, the effective range of the designation frame 32 may be allowed up to a range including only the extreme end and the adjacent two electrode pins and lands corresponding thereto.

上記のとおり、この実施例では、SOPやQFPについては、各電極ピンや各ランドの配置の規則性や部品の線対称の形状を利用して、部品本体の一辺に沿って並ぶ電極ピンのうち、端から順に3本の電極ピンおよびこれらに対応するランドを画像から抽出し、抽出された部位における規則性を部品全体に適用することによって、全ての電極ピンおよびランドに対する検査領域を設定する。よって、電極ピンやランドを抽出するための画像処理にかかる負担が軽減され、検査領域の設定に要する処理の時間を短縮することが可能になる。また、ユーザが部品本体領域30や指定枠32を正しく設定すれば、これらの指定に基づき、電極ピンやランドの配置の規則を示すパラメータを十分に精度良く求めることができるから、検査領域の設定の精度を確保することができる。   As described above, in this embodiment, for SOP and QFP, among the electrode pins arranged along one side of the component body using the regular arrangement of each electrode pin and each land and the line symmetrical shape of the component Three electrode pins and lands corresponding thereto are extracted from the image in order from the end, and the regularity in the extracted part is applied to the entire part, thereby setting inspection regions for all the electrode pins and lands. Therefore, the burden on the image processing for extracting the electrode pins and lands can be reduced, and the processing time required for setting the inspection area can be shortened. Further, if the user correctly sets the component main body region 30 and the specification frame 32, parameters indicating the arrangement rules of electrode pins and lands can be obtained with sufficient accuracy based on these specifications. Accuracy can be ensured.

またこの実施例では、指定枠32に対応する範囲のランドや電極ピンの画像が抽出に適さない場合には、変更ボタン111を用いて指定枠32の位置を変更することができる。よって、ユーザは、ランドや電極ピンの抽出に最も適した場所を選択して、指定枠32による指定を行うことができるから、検査領域の精度を確保することができる。   In this embodiment, if the land or electrode pin images in the range corresponding to the designated frame 32 are not suitable for extraction, the position of the designated frame 32 can be changed using the change button 111. Therefore, the user can select the most suitable place for extraction of lands and electrode pins and perform the designation by the designation frame 32, so that the accuracy of the inspection area can be ensured.

しかしながら、部品の構成や画像の状態によっては、画像からのランドや電極ピンの抽出精度を確保するのが困難な場合もある。そこでこの実施例では、画像処理によらずに、ユーザにランドや電極ピンに対応する範囲を指定させる手動設定のモードも実行できるようにしている。   However, depending on the configuration of the parts and the state of the image, it may be difficult to ensure the accuracy of extracting lands and electrode pins from the image. Therefore, in this embodiment, a manual setting mode that allows the user to specify a range corresponding to a land or an electrode pin can be executed without using image processing.

図11は、手動設定が選択されている場合の作業画面の例を示す。この例の画面は、部品本体領域30の指定が完了した段階のもので、画像表示領域100には、処理対象部品の左下角部に近い位置に、図11の例よりも小さい指定枠33が表示される。また、ガイダンス領域102には、図5の例と同様のボタン106,110に加えて、指定や設定の対象を切り替えるための切替ボタン112,113,114、リセットボタン115、上下左右の各方向への移動ボタン116などが設けられる。   FIG. 11 shows an example of a work screen when manual setting is selected. The screen of this example is at a stage where the specification of the component main body area 30 is completed, and the image display area 100 has a designation frame 33 smaller than the example of FIG. 11 at a position near the lower left corner of the processing target component. Is displayed. Further, in the guidance area 102, in addition to the buttons 106 and 110 similar to those in the example of FIG. 5, switching buttons 112, 113 and 114, a reset button 115 for switching the target of designation and setting, up, down, left and right directions The movement button 116 is provided.

図12は、ユーザの指定操作に応じた画像表示領域100内の表示の変化を、処理対象部品201の一部(指定枠33に対応する部分)に限定して示す。
この実施例では、一列に並ぶ電極ピンを端から順に2つ指定すると共に、これらの電極ピンに対応するランドを指定する。
FIG. 12 shows a change in display in the image display area 100 according to the user's designation operation limited to a part of the processing target component 201 (part corresponding to the designation frame 33).
In this embodiment, two electrode pins arranged in a row are designated in order from the end, and lands corresponding to these electrode pins are designated.

図11および図12を参照して具体的な作業の流れを説明すると、まず、ガイダンス領域内102の「1ピン」ボタン112を操作することにより、指定枠33を呼び出して、この指定枠33を左端の電極ピンに合うように調整する(図12(1))。つぎに、「1ランド」ボタン113を操作すると、上記の指定枠33よりやや外側に、この指定枠33とは異なる色彩により、ランド指定用の指定枠34が表示される(図12(2))。ユーザは、この指定枠34の先端が左端のランドの先端に合うように調整する(図12(3))。   The specific work flow will be described with reference to FIG. 11 and FIG. 12. First, the designated frame 33 is called by operating the “1 pin” button 112 in the guidance area 102. Adjustment is made so as to match the leftmost electrode pin (FIG. 12 (1)). Next, when the “1 land” button 113 is operated, a designation frame 34 for land designation is displayed slightly outside the designation frame 33 with a color different from that of the designation frame 33 (FIG. 12 (2)). ). The user adjusts the tip of the designated frame 34 so that it matches the tip of the left land (FIG. 12 (3)).

つぎにユーザがガイダンス領域102の「2ピン・ランド」のボタン114を操作すると、各指定枠33,34が複写されて、現在の表示位置の右手に表示される(図12(4))。ユーザは、この複写された指定枠33,34を、マウスのドラッグ・ドロップ操作や矢印キー116の操作により、左から2番目の電極ピンおよびランドに位置合わせする(図12(5))。なお、図10のように、端部のランドが幅広になっている場合には、2番目のランドに対する指定枠34や指定枠33,34間の位置関係を調整する作業が必要になる。   Next, when the user operates the “2-pin land” button 114 in the guidance area 102, the designated frames 33 and 34 are copied and displayed on the right hand side of the current display position (FIG. 12 (4)). The user aligns the copied designation frames 33 and 34 with the second electrode pin and land from the left by dragging and dropping the mouse or operating the arrow key 116 (FIG. 12 (5)). As shown in FIG. 10, when the land at the end is wide, it is necessary to adjust the positional relationship between the designated frame 34 and the designated frames 33 and 34 with respect to the second land.

上記のようにして、部品本体領域30の一角部の直近の電極ピンおよびその隣の電極ピンと、これらに対応するランドとを指定することができる。この後、抽出ボタン110が操作されると、検査データ作成システムでは、各指定枠33,34をそれぞれ電極ピンおよびランドとみなして、図8のST103以下と同様の処理(ただし、ST106を除く。)を実行する。これにより、電極ピンやランドを抽出するための画像処理を行うことなく、検査領域を設定することが可能になる。   As described above, it is possible to designate the nearest electrode pin at one corner of the component main body region 30 and the adjacent electrode pin and the land corresponding thereto. Thereafter, when the extraction button 110 is operated, the inspection data creation system regards the designated frames 33 and 34 as electrode pins and lands, respectively, and performs the same processing as ST103 and subsequent steps in FIG. 8 (except ST106). ). This makes it possible to set the inspection area without performing image processing for extracting electrode pins and lands.

したがって、画像からの電極ピンやランドの抽出精度に問題があって、検査領域の設定がうまくいかなかった場合でも、ユーザが電極ピンやランドを目視で確認して、これらを正しく指定すれば、検査領域を精度良く設定することが可能になる。またユーザによる指定も、電極ピンおよびランドを2つずつ指定する程度のものであるので、大きな負担をかけることがなく、検査領域の設定作業を短時間で完了することができる。   Therefore, even if there is a problem in the extraction accuracy of the electrode pins and lands from the image and the setting of the inspection area is not successful, if the user visually checks the electrode pins and lands and specifies these correctly, The inspection area can be set with high accuracy. Further, the user can specify only two electrode pins and two lands, so that the setting work of the inspection region can be completed in a short time without imposing a heavy burden.

なお、1番目の実施例では、指定枠32内に電極ピンおよびランドを含むように指定することを要求しているが、これに限らず、指定枠32に完全に含める必要がある部位を電極ピンのみに限定してもよい。この場合でも、たとえば、実装後基準画像の指定枠32に対応する領域から各電極ピンを抽出した後に、実装前基準画像を対象に、各電極ピンの先端に対応する位置を起点にランドの色彩を検索することにより、各電極ピンに対応するランドを抽出することができるから、図7に示したパラメータを支障なく求めることが可能になる。   In the first embodiment, the designation frame 32 is required to be designated so as to include electrode pins and lands. However, the present invention is not limited to this, and a portion that needs to be completely included in the designation frame 32 is not limited to this. You may limit only to a pin. Even in this case, for example, after extracting each electrode pin from the region corresponding to the designation frame 32 of the post-mounting reference image, the color of the land is set starting from the position corresponding to the tip of each electrode pin for the pre-mounting reference image. Since the land corresponding to each electrode pin can be extracted by searching for, the parameters shown in FIG. 7 can be obtained without hindrance.

また、各実施例とも、SOP,QFPなど、対向する2辺間における電極ピンの配列に線対称の関係が成立する部品を設定の対象としたが、このような形状以外の部品(たとえばコネクタ)に関しても、電極ピンが複数配置されている辺に指定枠32(または33,34)を設定することにより、上記実施例と同様の手法で検査領域の設定データを作成することが可能である。   In each of the embodiments, a part such as SOP, QFP, or the like that has a line-symmetric relationship with the arrangement of electrode pins between two opposing sides is set as an object of setting. With regard to the above, by setting the designation frame 32 (or 33, 34) on the side where a plurality of electrode pins are arranged, it is possible to create inspection area setting data in the same manner as in the above embodiment.

また、上記の実施例では、部品型式に対応するサブ部品種用のライブラリデータを作成する処理の中で、検査領域の設定データを作成しているが、ライブラリデータによらずに、基板200の実装後基準画像を用いて個々の部品毎に検査領域の設定データを特定する場合にも、同様の処理を適用することができる。   In the above-described embodiment, the inspection area setting data is created in the process of creating the library data for the sub part type corresponding to the part type. A similar process can be applied to the case where the inspection region setting data is specified for each individual part using the post-mounting reference image.

また、処理対象の画像は、上記実施例のような2次元画像に限らず、2次元画像に各部位の高さデータを組み合わせた3次元画像や、X線CT画像から復元された3次元情報を対象にした検査を行う場合にも、上記と同様の方法で検査領域の設定データを特定することが可能である。   Further, the image to be processed is not limited to the two-dimensional image as in the above embodiment, but a three-dimensional image obtained by combining the two-dimensional image with the height data of each part, or three-dimensional information restored from the X-ray CT image. In the case of performing the inspection for the target, it is possible to specify the setting data of the inspection area by the same method as described above.

1 検査装置
2 カメラ
7 パーソナルコンピュータ
17 モニタ
30 部品対応領域
32,33,34 指定枠
100 画像表示領域
102 ガイダンス領域
110 抽出ボタン
201 部品
S1,S2,S3,S4,S11,S21,S31,S41 検査領域
DESCRIPTION OF SYMBOLS 1 Inspection apparatus 2 Camera 7 Personal computer 17 Monitor 30 Parts corresponding | compatible area 32, 33, 34 Specification frame 100 Image display area 102 Guidance area 110 Extraction button 201 Parts S1, S2, S3, S4, S11, S21, S31, S41 Inspection area

Claims (6)

部品実装後の基板の部品の電極と他の部位との区別が可能で、その表面を正面から観測した状態を表す画像を用いて、当該基板上の部品の実装状態の検査に用いられる検査領域の設定データを作成する方法において、
複数の電極ピンが前記部品本体の端縁に沿って規則性をもって配置されている部品を設定の対象として、この対象部品の実装状態を表す基準画像をモニタに表示する第1ステップ、
前記基準画像の表示画面において、前記対象部品の部品本体に対応する第1の領域を指定する操作と、この第1の領域の一辺を基準に、基準の辺に沿う方向および基準の辺から第1の領域の外側に向かう方向における範囲指定により第2の領域を指定する操作とを受け付ける第2ステップ、
前記第1および第2の領域が指定されたことに応じて、第2の領域に対応する範囲の基準画像から電極ピンを抽出する第3ステップ、
前記第3ステップの処理により前記基準の辺に沿って複数の電極ピンが抽出されたとき、抽出された電極ピン間の関係および電極ピンと前記第1の領域との関係に基づき電極ピンの配置に関する規則を特定する第4ステップ、
前記第1の領域の各辺のうち少なくとも前記基準の辺に前記第4ステップで特定された規則を適用して、前記第1の領域の外側に、電極ピンに対する検査のための検査領域を前記規則が適用された辺に沿って複数設定する第5ステップ、
前記第5ステップの実行に応じて、前記モニタに表示されている基準画像を前記検査領域が設定された状態を表すものに更新し、更新後の表示に対して確定操作が行われたことに応じて前記検査領域の設定に用いられた設定データを確定する第6ステップ、の各ステップを実行することを特徴とする基板検査用の検査領域の設定データ作成方法。
The inspection area used for inspecting the mounting state of the component on the board by using an image showing the state of the surface observed from the front, which can distinguish the electrode of the component on the board after mounting the component and other parts In the method of creating the setting data of
A first step of displaying a reference image representing a mounting state of the target component on a monitor, with a component in which a plurality of electrode pins are regularly arranged along the edge of the component main body being set;
On the display screen of the reference image, an operation for designating a first area corresponding to the component main body of the target part, and a direction along the reference side and a reference side from the one side of the first area as a reference. A second step of accepting an operation of designating a second region by designating a range in a direction toward the outside of the region of 1,
A third step of extracting electrode pins from a reference image in a range corresponding to the second region in response to the first and second regions being designated;
When a plurality of electrode pins are extracted along the reference side by the processing in the third step, the electrode pins are arranged based on the relationship between the extracted electrode pins and the relationship between the electrode pins and the first region. The fourth step of identifying the rules,
Applying the rule specified in the fourth step to at least the reference side of each side of the first region, an inspection region for inspecting an electrode pin is provided outside the first region. A fifth step of setting a plurality along the side to which the rule is applied;
In accordance with the execution of the fifth step, the reference image displayed on the monitor is updated to one representing the state where the inspection area is set, and the confirmation operation has been performed on the updated display. In response, a sixth step of determining setting data used for setting the inspection area is executed. A method for creating inspection area setting data for substrate inspection.
請求項1に記載された方法において、
前記第4ステップでは、前記電極ピンの配置に関する規則として、電極ピンの幅および長さならびにピッチと、前記第1の領域の一角部からその直近の電極ピンまでの距離とを、それぞれ特定する、基板検査用の検査領域の設定データ作成方法。
The method of claim 1, wherein
In the fourth step, as the rules regarding the arrangement of the electrode pins, the width and length of the electrode pins and the pitch, and the distance from one corner of the first region to the nearest electrode pin are specified, respectively. Method for creating inspection area setting data for board inspection.
請求項1に記載された方法において、
部品実装前の基板の基準画像および部品実装後の基板の基準画像を準備して、後者の基準画像を前記第1ステップにおいて表示すると共に、第3ステップでは、前記第2指定操作による指定を各基準画像に適用して、第2の領域に対応する範囲の部品実装後の基板の基準画像から電極ピンを抽出すると共に、第2の領域に対応する範囲の部品実装前の基板の基準画像からランドを抽出し、
前記第4ステップでは、前記電極ピンの配置に関する規則として、電極ピンの幅および長さならびにピッチと、前記第1の領域の一角部からその直近の電極ピンまでの距離と、対応関係にある電極ピンとランドとの位置関係とを、それぞれ特定する、
基板検査用の検査領域の設定データ作成方法。
The method of claim 1, wherein
A reference image of the substrate before component mounting and a reference image of the substrate after component mounting are prepared, and the latter reference image is displayed in the first step. In the third step, designation by the second designation operation is performed Applied to the reference image, the electrode pins are extracted from the reference image of the substrate after component mounting in the range corresponding to the second region, and from the reference image of the substrate before component mounting in the range corresponding to the second region. Extract the land,
In the fourth step, as a rule relating to the arrangement of the electrode pins, the width, length and pitch of the electrode pins, and the distance between the corner of the first region and the nearest electrode pin, and the corresponding electrodes Identify the positional relationship between pins and lands,
Method for creating inspection area setting data for board inspection.
請求項1〜3のいずれかに記載された方法において、
矩形状の部品本体の対向する2辺にそれぞれ複数の電極ピンが配置されると共に、これらの辺における電極ピンの配列の間に線対称の関係が成立する部品を設定の対象とし、
前記第5ステップにおいて、前記基準の辺に前記第4ステップで特定された規則を適用して、前記第1の領域の外側で前記基準の辺に沿う位置に複数の検査領域を設定するステップと、これらの検査領域を180度回転させたものを前記第1の領域の外側で基準の辺に対向する辺に沿う位置に設定するステップとを実行する、基板検査用の検査領域の設定データ作成方法。
In the method as described in any one of Claims 1-3,
A plurality of electrode pins are arranged on the two opposing sides of the rectangular component body, and a part in which a line symmetric relationship is established between the electrode pin arrangements on these sides is set as a setting target.
Applying a rule specified in the fourth step to the reference side in the fifth step, and setting a plurality of inspection regions at positions along the reference side outside the first region; And a step of setting the inspection region rotated 180 degrees to a position along the side opposite to the reference side outside the first region. Method.
請求項1〜3のいずれかに記載された方法において、
矩形状の部品本体の各辺にそれぞれ複数の電極ピンが配置されると共に、対向する関係にある2辺における電極ピンの配列の間に線対称の関係が成立する部品を設定の対象とし、
前記第5ステップにおいて、前記基準の辺および基準の辺に直交する2つの辺のうちの一方を対象にして、それぞれ前記第4ステップで特定された規則を適用して、第1の領域の外側で対象の辺に沿う位置に複数の検査領域を設定するステップと、これらの検査領域を180度回転させたものを前記第1の領域の外側で対象の辺に対向する辺に沿う位置に設定するステップとを実行する、基板検査用の検査領域の設定データ作成方法。
In the method as described in any one of Claims 1-3,
A plurality of electrode pins are arranged on each side of the rectangular component body, and a part in which a line-symmetrical relationship is established between the arrangement of electrode pins on two opposite sides is set as an object of setting.
In the fifth step, the rule specified in the fourth step is applied to one of the reference side and two sides orthogonal to the reference side, respectively, and the outside of the first region A step of setting a plurality of inspection areas at positions along the target side and a position obtained by rotating these inspection areas by 180 degrees to a position along the side facing the target side outside the first area. A method for creating inspection area setting data for board inspection.
部品実装後の基板の部品の電極と他の部位との区別が可能で、その表面を正面から観測した状態を表す画像を用いて、当該基板上の部品の実装状態の検査に必要な情報を作成するシステムであって、
複数の電極ピンが前記部品本体の端縁に沿って規則性をもって配置されている部品を設定の対象として、この対象部品の実装状態を表す基準画像をモニタに表示する基準画像表示手段、
前記基準画像の表示画面において、前記対象部品の部品本体に対応する第1の領域を指定する操作と、この第1の領域の一辺を基準に、基準の辺に沿う方向および基準の辺から第1の領域の外側に向かう方向における範囲指定により第2の領域を指定する操作とを受け付ける領域指定受付手段、
前記領域指定受付手段が第1の領域および第2の領域にかかる指定を受け付けたことに応じて、第2の領域に対応する範囲の基準画像から電極ピンを抽出する抽出処理手段、
前記抽出処理手段により前記基準の辺に沿って複数の電極ピンが抽出されたとき、抽出された電極ピン間の関係および電極ピンと前記第1の領域との関係に基づき電極ピンの配置に関する規則を特定する配置規則特定手段、
前記第1の領域の各辺のうち少なくとも前記基準の辺に前記配置規則特定手段により特定された規則を適用して、前記第1の領域の外側に、電極ピンに対する検査のための検査領域を前記規則が適用された辺に沿って複数設定する領域設定手段、
前記領域設定手段により検査領域が設定されたことに応じて、前記モニタに表示されている基準画像を前記検査領域が設定された状態を表すものに更新し、更新後の表示に対して確定操作が行われたことに応じて前記検査領域の設定に用いられた設定データを確定する領域確定手段、
の各手段を具備することを特徴とする基板検査用の検査データ作成システム。
It is possible to distinguish between the electrode of the component on the board after mounting the component and other parts, and using the image showing the state of observing the surface from the front, information necessary for inspection of the mounting state of the component on the substrate A system to create,
Reference image display means for displaying a reference image representing a mounting state of the target component on a monitor, with a component in which a plurality of electrode pins are regularly arranged along the edge of the component main body being set.
On the display screen of the reference image, an operation for designating a first area corresponding to the component main body of the target part, and a direction along the reference side and a reference side from the one side of the first area as a reference. An area designation accepting unit for accepting an operation for designating a second area by a range designation in a direction toward the outside of the one area;
An extraction processing means for extracting an electrode pin from a reference image in a range corresponding to the second area in response to the designation of the first area and the second area being received by the area designation receiving means;
When a plurality of electrode pins are extracted along the reference side by the extraction processing means, rules regarding the arrangement of electrode pins based on the relationship between the extracted electrode pins and the relationship between the electrode pins and the first region are set. An arrangement rule identification means to identify,
Applying the rule specified by the arrangement rule specifying means to at least the reference side of each side of the first region, an inspection region for inspecting the electrode pin is provided outside the first region. Area setting means for setting a plurality along the side to which the rule is applied,
In response to setting of the inspection area by the area setting means, the reference image displayed on the monitor is updated to the one representing the state where the inspection area is set, and the confirmation operation is performed on the updated display. Area determining means for determining setting data used for setting the inspection area in response to
An inspection data creation system for inspecting a substrate, comprising:
JP2009247994A 2009-10-28 2009-10-28 Inspection area setting data creation method and inspection data creation system for board inspection Active JP5407754B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009247994A JP5407754B2 (en) 2009-10-28 2009-10-28 Inspection area setting data creation method and inspection data creation system for board inspection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009247994A JP5407754B2 (en) 2009-10-28 2009-10-28 Inspection area setting data creation method and inspection data creation system for board inspection

Publications (2)

Publication Number Publication Date
JP2011095053A true JP2011095053A (en) 2011-05-12
JP5407754B2 JP5407754B2 (en) 2014-02-05

Family

ID=44112137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009247994A Active JP5407754B2 (en) 2009-10-28 2009-10-28 Inspection area setting data creation method and inspection data creation system for board inspection

Country Status (1)

Country Link
JP (1) JP5407754B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014033815A1 (en) * 2012-08-27 2014-03-06 富士機械製造株式会社 Ng component display method and ng component display system
JP2015161622A (en) * 2014-02-28 2015-09-07 大日本印刷株式会社 Appearance inspection device, appearance inspection method, and program
KR20160104357A (en) * 2015-02-26 2016-09-05 한화테크윈 주식회사 Method of teaching for electronic parts information
KR20190102623A (en) * 2018-02-26 2019-09-04 한화정밀기계 주식회사 System and method for inspecting lead

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04196145A (en) * 1990-11-26 1992-07-15 Matsushita Electric Ind Co Ltd Method of detecting pitch of lead of electronic component and number thereof
JPH05160235A (en) * 1991-12-02 1993-06-25 Rozefu Technol:Kk Deciding method for visual inspection field of soldered part
JPH0682228A (en) * 1992-09-02 1994-03-22 Hitachi Denshi Ltd Method and apparatus for generating program data for inspection
JP2001013086A (en) * 1999-04-27 2001-01-19 Matsushita Electric Ind Co Ltd Inspection method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04196145A (en) * 1990-11-26 1992-07-15 Matsushita Electric Ind Co Ltd Method of detecting pitch of lead of electronic component and number thereof
JPH05160235A (en) * 1991-12-02 1993-06-25 Rozefu Technol:Kk Deciding method for visual inspection field of soldered part
JPH0682228A (en) * 1992-09-02 1994-03-22 Hitachi Denshi Ltd Method and apparatus for generating program data for inspection
JP2001013086A (en) * 1999-04-27 2001-01-19 Matsushita Electric Ind Co Ltd Inspection method and apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014033815A1 (en) * 2012-08-27 2014-03-06 富士機械製造株式会社 Ng component display method and ng component display system
JP2015161622A (en) * 2014-02-28 2015-09-07 大日本印刷株式会社 Appearance inspection device, appearance inspection method, and program
KR20160104357A (en) * 2015-02-26 2016-09-05 한화테크윈 주식회사 Method of teaching for electronic parts information
KR102099112B1 (en) * 2015-02-26 2020-04-09 한화정밀기계 주식회사 Method of teaching for electronic parts information
KR20190102623A (en) * 2018-02-26 2019-09-04 한화정밀기계 주식회사 System and method for inspecting lead
KR102510529B1 (en) 2018-02-26 2023-03-15 한화정밀기계 주식회사 System and method for inspecting lead

Also Published As

Publication number Publication date
JP5407754B2 (en) 2014-02-05

Similar Documents

Publication Publication Date Title
JP3882840B2 (en) Solder printing inspection method, solder printing inspection machine and solder printing inspection system using this method
US9959451B2 (en) Image inspection device, image inspection method and image inspection program
TW583389B (en) A surface conduction examination method and a substrate examination device
JP4103921B2 (en) Method of setting inspection reference data for fillet inspection, and substrate visual inspection apparatus using this method
JP4788517B2 (en) Method for setting inspection reference data for substrate appearance inspection and substrate appearance inspection apparatus using this method
EP2618135B1 (en) Method for registering inspection standard for soldering inspection and board inspection apparatus thereby
US10060859B2 (en) Method of inspecting foreign substance on substrate
JP5365643B2 (en) Soldering inspection method, board inspection system, and soldering inspection machine
JP4978424B2 (en) Inspection result confirmation method and inspection result confirmation system for component mounting inspection
KR101241175B1 (en) Mounting boards inspection apparatus and method thereof
JP2012145484A (en) Solder inspection method, solder inspection machine, and board inspection system
JP2004071781A (en) Method for preparing inspection data, and board inspection device using the same
JP2014526706A (en) Non-contact type component inspection apparatus and component inspection method
CN1932491A (en) Substrate inspection system
JP6943412B2 (en) Board inspection equipment
JP5407754B2 (en) Inspection area setting data creation method and inspection data creation system for board inspection
JP5182121B2 (en) Library data creation method and inspection data creation method for substrate visual inspection
JP2007285880A (en) Sample image registration method in board inspection, and sample image producing system
JP2006216981A (en) Mounted substrate inspection method/system and component mount board manufacturing method
JP5407755B2 (en) Inspection area setting data creation method and inspection data creation system for board inspection
JP2006058170A (en) Visual confirmation device and inspection system
JP2009267099A (en) Board inspection method, and inspection result confirmation system of automatic visual inspection
KR101511089B1 (en) Teaching data auto-generating method for aoi apparatus
KR101893823B1 (en) Board inspection apparatus and method of compensating board distortion using the same
JP2017032360A (en) Image inspection device, image inspection method and image inspection program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120305

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120319

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130319

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130510

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131008

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131021

R150 Certificate of patent or registration of utility model

Ref document number: 5407754

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150