JP6389651B2 - Inspection method, mounting method, and mounting apparatus - Google Patents

Inspection method, mounting method, and mounting apparatus Download PDF

Info

Publication number
JP6389651B2
JP6389651B2 JP2014120985A JP2014120985A JP6389651B2 JP 6389651 B2 JP6389651 B2 JP 6389651B2 JP 2014120985 A JP2014120985 A JP 2014120985A JP 2014120985 A JP2014120985 A JP 2014120985A JP 6389651 B2 JP6389651 B2 JP 6389651B2
Authority
JP
Japan
Prior art keywords
mounting
image data
area
value
substrate
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.)
Active
Application number
JP2014120985A
Other languages
Japanese (ja)
Other versions
JP2015079933A (en
Inventor
今野 貴史
貴史 今野
由佳 中西
由佳 中西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Juki Corp
Original Assignee
Juki Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Juki Corp filed Critical Juki Corp
Priority to JP2014120985A priority Critical patent/JP6389651B2/en
Publication of JP2015079933A publication Critical patent/JP2015079933A/en
Application granted granted Critical
Publication of JP6389651B2 publication Critical patent/JP6389651B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Supply And Installment Of Electrical Components (AREA)

Description

本発明は、検査方法、実装方法、及び実装装置に関する。   The present invention relates to an inspection method, a mounting method, and a mounting apparatus.

電子機器の製造工程において、例えば特許文献1、特許文献2、及び特許文献3に開示されているような、電子部品を基板に実装する実装装置が使用される。   In a manufacturing process of an electronic device, for example, a mounting apparatus for mounting an electronic component on a substrate as disclosed in Patent Document 1, Patent Document 2, and Patent Document 3 is used.

特表2005−537630号公報JP 2005-537630 A 特表2007−511094号公報Special table 2007-511094 gazette 特開2012−039096号公報JP 2012-039096 A

電子部品は基板の搭載領域に搭載される。搭載領域に電子部品が搭載されたか否かを検査する場合、その検査精度が低下すると、所期の電子機器が製造されず、生産性が低下する可能性がある。   Electronic components are mounted on the substrate mounting area. When inspecting whether or not an electronic component is mounted in the mounting area, if the inspection accuracy decreases, the expected electronic device may not be manufactured, and productivity may decrease.

本発明は、検査精度の低下が抑制される検査方法を提供することを目的とする。また本発明は、生産性の低下が抑制される実装方法及び実装装置を提供することを目的とする。   An object of the present invention is to provide an inspection method in which a decrease in inspection accuracy is suppressed. Another object of the present invention is to provide a mounting method and a mounting apparatus in which a decrease in productivity is suppressed.

上述した課題を解決し、目的を達成するために、本発明に係る検査方法は、基板に対する電子部品の搭載において行われる検査方法であって、前記基板の搭載領域に対する前記電子部品の搭載前に、撮像素子により前記搭載領域及び前記搭載領域の周辺の前記基板の周辺領域を含む画像データを取得するステップと、前記搭載領域に対する前記電子部品の搭載後に、前記搭載領域及び前記周辺領域を含む画像データを取得するステップと、前記搭載前の前記画像データと前記搭載後の前記画像データとを比較するステップと、前記比較の結果に基づいて、前記搭載領域及び前記周辺領域の少なくとも一方の異常の有無を判定するステップと、を含む。   In order to solve the above-described problems and achieve the object, an inspection method according to the present invention is an inspection method performed in mounting an electronic component on a substrate, and before the electronic component is mounted on a mounting region of the substrate. Acquiring image data including the mounting area and a peripheral area of the substrate around the mounting area by an imaging device; and an image including the mounting area and the peripheral area after mounting the electronic component on the mounting area. A step of acquiring data, a step of comparing the image data before mounting and the image data after mounting, and based on a result of the comparison, an abnormality of at least one of the mounting region and the peripheral region Determining the presence or absence.

本発明に係る検査方法において、前記搭載前の前記画像データと前記搭載後の前記画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出するステップを含み、前記比較するステップは、前記差分値と予め定められた閾値とを比較することを含み、前記比較の結果に基づいて、前記搭載領域及び前記周辺領域それぞれの異常の有無が判定されてもよい。   In the inspection method according to the present invention, the method includes a step of calculating a difference value of a luminance value for each pixel of the image sensor between the image data before mounting and the image data after mounting, and the comparing step includes: Comparing the difference value with a predetermined threshold value, the presence / absence of an abnormality in each of the mounting area and the peripheral area may be determined based on a result of the comparison.

本発明に係る検査方法において、前記搭載前の前記搭載領域の画像データと前記搭載後の前記搭載領域の画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出するステップを含み、前記比較するステップは、前記差分値と予め定められた閾値とを比較することを含み、前記比較の結果に基づいて、前記搭載領域の異常の有無を判定するステップと、前記搭載前の前記周辺領域の画像データと前記搭載後と前記周辺領域の画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出するか否かを選択するステップと、を含んでもよい。   In the inspection method according to the present invention, the method includes a step of calculating a difference value of a luminance value for each pixel of the imaging element between the image data of the mounting area before mounting and the image data of the mounting area after mounting. The step of comparing includes comparing the difference value with a predetermined threshold value, and determining whether there is an abnormality in the mounting area based on the result of the comparison; Selecting whether or not to calculate a difference value of luminance values for each pixel of the image sensor between the image data of the region and the image data of the peripheral region after the mounting.

本発明に係る検査方法において、複数の前記差分値に関する情報に基づいて、前記閾値を更新するステップを含んでもよい。   The inspection method according to the present invention may include a step of updating the threshold value based on information on a plurality of the difference values.

本発明に係る検査方法において、前記基板に、前記基板とは異なる色のライン、図形、マーク、及び文字を含むシルクが設けられ、前記撮像素子の複数の画素のそれぞれが検出した輝度値を取得するステップと、複数の前記画素のそれぞれが検出した輝度値のうち、予め定められた輝度値に関する閾値以上の輝度値を検出した画素からのデータを除外するステップと、を含み、前記データが除外された後、前記搭載前の前記画像データと前記搭載後の前記画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出するステップが行われてもよい。   In the inspection method according to the present invention, the substrate is provided with a silk including lines, figures, marks, and characters of a color different from that of the substrate, and obtains a luminance value detected by each of the plurality of pixels of the image sensor. And excluding data from pixels that have detected a luminance value greater than or equal to a threshold value related to a predetermined luminance value among luminance values detected by each of the plurality of pixels, and the data is excluded Then, a step of calculating a difference value of a luminance value for each pixel of the image sensor between the image data before mounting and the image data after mounting may be performed.

本発明に係る検査方法において、前記輝度値の上限値を設定するステップと、前記上限値に基づいて、前記搭載前の前記画像データ及び前記搭載後の前記画像データを補正するステップと、を含んでもよい。   The inspection method according to the present invention includes a step of setting an upper limit value of the luminance value, and a step of correcting the image data before mounting and the image data after mounting based on the upper limit value. But you can.

本発明に係る検査方法において、前記搭載領域の異常の有無の判定は、前記搭載領域に対する前記電子部品の搭載状態の異常の有無の判定を含んでもよい。   In the inspection method according to the present invention, the determination of whether there is an abnormality in the mounting area may include determination of whether there is an abnormality in the mounting state of the electronic component in the mounting area.

本発明に係る検査方法において、前記電子部品を保持して前記基板に搭載可能なノズルが前記搭載前の前記画像データ及び前記搭載後の前記画像データに含まれ、前記搭載前の前記画像データ及び前記搭載後の前記画像データのそれぞれから前記ノズルを含む一部のデータを除去するステップを含み、前記一部のデータが除去された後、前記搭載前の前記画像データと前記搭載後の前記画像データとを比較するステップが行われてもよい。   In the inspection method according to the present invention, a nozzle that holds the electronic component and can be mounted on the substrate is included in the image data before mounting and the image data after mounting, and the image data before mounting and Removing a part of the data including the nozzles from each of the image data after the mounting, and after the part of the data is removed, the image data before the mounting and the image after the mounting A step of comparing the data may be performed.

本発明に係る検査方法において、前記搭載前の前記画像データと前記搭載後の前記画像データとを比較するステップは、前記搭載領域を含む第1ウィンドウにおいてテンプレートマッチング処理により前記搭載前の前記画像データと前記搭載後の前記画像データとを位置合わせするステップと、前記搭載領域を含み前記第1ウィンドウよりも小さい第2ウィンドウにおいて前記テンプレートマッチング処理により前記搭載前の前記画像データと前記搭載後の前記画像データとを位置合わせするステップと、を含んでもよい。   In the inspection method according to the present invention, the step of comparing the image data before mounting and the image data after mounting includes the image data before mounting by template matching processing in a first window including the mounting area. Aligning the image data after mounting and the image data after mounting by the template matching processing in a second window that includes the mounting area and is smaller than the first window. Aligning the image data.

本発明に係る検査方法において、前記搭載前の前記画像データと前記搭載後の前記画像データとを比較するステップは、テンプレートマッチング処理により前記搭載前の前記画像データと前記搭載後の前記画像データとの相関値を算出するステップと、前記相関値が第1閾値以下のとき、前記搭載領域に対する前記電子部品の搭載状態は正常であると判断するステップと、前記相関値が第2閾値以上のとき、前記搭載領域に対する前記電子部品の搭載状態は異常であると判断するステップと、を含み、前記相関値が前記第1閾値よりも大きく前記第2閾値よりも小さいとき、前記搭載前の前記画像データと前記搭載後の前記画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出して、前記搭載領域及び前記周辺領域の少なくとも一方の異常の有無を判定してもよい。   In the inspection method according to the present invention, the step of comparing the image data before mounting and the image data after mounting includes the image data before mounting and the image data after mounting by template matching processing. Calculating a correlation value of the electronic component, determining that the mounting state of the electronic component in the mounting area is normal when the correlation value is equal to or less than a first threshold, and when the correlation value is equal to or greater than a second threshold. Determining that the mounting state of the electronic component in the mounting region is abnormal, and when the correlation value is larger than the first threshold and smaller than the second threshold, the image before the mounting The difference value of the luminance value for each pixel of the image sensor between the data and the image data after mounting is calculated, and at least one of the mounting region and the peripheral region is calculated. The presence or absence of an abnormality may be determined.

本発明に係る検査方法において、前記基板は基板保持部に保持され、前記基板保持部に保持された前記基板が撓み変形した状態と変形しない状態のそれぞれにおいて、演算処理対象領域である前記撮像素子のウィンドウに前記搭載領域が配置され続けるように、前記ウィンドウが設定されてもよい。   In the inspection method according to the present invention, the substrate is held by a substrate holding unit, and the imaging element that is an arithmetic processing target region in each of a state where the substrate held by the substrate holding unit is bent and deformed and a state where the substrate is not deformed The window may be set so that the mounting area continues to be arranged in the window.

上述した課題を解決し、目的を達成するために、本発明に係る実装方法は、基板に電子部品を実装する実装方法であって、上記の検査方法で、前記搭載領域及び前記周辺領域の少なくとも一方を検査するステップを含む。   In order to solve the above-described problems and achieve the object, a mounting method according to the present invention is a mounting method for mounting an electronic component on a board, and the inspection method includes at least the mounting region and the peripheral region. Including inspecting one.

上述した課題を解決し、目的を達成するために、本発明に係る実装装置は、基板に電子部品を実装する実装装置であって、前記電子部品を保持して前記基板に搭載可能なノズルと、前記基板の搭載領域に対する前記電子部品の搭載前及び搭載後のそれぞれにおいて、前記搭載領域及び前記搭載領域の周辺の前記基板の周辺領域を含む画像データを取得する撮像素子を含む撮像装置と、前記搭載前の前記画像データと前記搭載後の前記画像データとを比較した結果に基づいて、前記搭載領域及び前記周辺領域の少なくとも一方の異常の有無を判定する処理装置と、を備える。   In order to solve the above-described problems and achieve the object, a mounting apparatus according to the present invention is a mounting apparatus for mounting an electronic component on a substrate, and includes a nozzle that holds the electronic component and can be mounted on the substrate. An imaging device including an imaging element that acquires image data including the mounting region and a peripheral region of the substrate around the mounting region before and after mounting the electronic component on the mounting region of the substrate; And a processing device that determines whether or not there is an abnormality in at least one of the mounting area and the peripheral area based on a result of comparing the image data before mounting and the image data after mounting.

本発明に係る検査方法によれば、検査精度の低下が抑制される。また、本発明に係る実装方法及び実装装置によれば、生産性の低下が抑制される。   According to the inspection method of the present invention, a decrease in inspection accuracy is suppressed. Moreover, according to the mounting method and the mounting apparatus according to the present invention, the reduction in productivity is suppressed.

図1は、第1実施形態に係る実装装置の一例を示す斜視図である。FIG. 1 is a perspective view showing an example of a mounting apparatus according to the first embodiment. 図2は、第1実施形態に係る移載ヘッドの一例を示す斜視図である。FIG. 2 is a perspective view illustrating an example of the transfer head according to the first embodiment. 図3は、第1実施形態に係る撮像装置の一例を示す正面図である。FIG. 3 is a front view illustrating an example of the imaging apparatus according to the first embodiment. 図4は、第1実施形態に係る実装装置の動作の一例を示す図である。FIG. 4 is a diagram illustrating an example of the operation of the mounting apparatus according to the first embodiment. 図5は、第1実施形態に係る実装装置の動作の一例を示す図である。FIG. 5 is a diagram illustrating an example of the operation of the mounting apparatus according to the first embodiment. 図6は、第1実施形態に係る実装装置の機能ブロック図の一例を示す図である。FIG. 6 is a diagram illustrating an example of a functional block diagram of the mounting apparatus according to the first embodiment. 図7は、第1実施形態に係る検査方法の一例を示すフローチャートである。FIG. 7 is a flowchart illustrating an example of the inspection method according to the first embodiment. 図8は、第1実施形態に係る画像データの一例を示す図である。FIG. 8 is a diagram illustrating an example of image data according to the first embodiment. 図9は、第1実施形態に係る画像データの一例を示す図である。FIG. 9 is a diagram illustrating an example of image data according to the first embodiment. 図10は、第1実施形態に係る画像データの一例を示す図である。FIG. 10 is a diagram illustrating an example of image data according to the first embodiment. 図11は、第1実施形態に係る画像データの一例を示す図である。FIG. 11 is a diagram illustrating an example of image data according to the first embodiment. 図12は、第1実施形態に係る差分画像データの作成方法の一例を説明するための模式図である。FIG. 12 is a schematic diagram for explaining an example of a method for creating difference image data according to the first embodiment. 図13は、第1実施形態に係る画像データの一例を示す図である。FIG. 13 is a diagram illustrating an example of image data according to the first embodiment. 図14は、第1実施形態に係る画像データの一例を示す図である。FIG. 14 is a diagram illustrating an example of image data according to the first embodiment. 図15は、第1実施形態に係る画像データの一例を示す図である。FIG. 15 is a diagram illustrating an example of image data according to the first embodiment. 図16は、第2実施形態に係る実装方法の一例を示すフローチャートである。FIG. 16 is a flowchart illustrating an example of the mounting method according to the second embodiment. 図17は、第3実施形態に係る搭載前画像データの一例を示す図である。FIG. 17 is a diagram illustrating an example of pre-mounting image data according to the third embodiment. 図18は、第3実施形態に係る搭載後画像データの一例を示す図である。FIG. 18 is a diagram illustrating an example of post-mounting image data according to the third embodiment. 図19は、第3実施形態に係るテンプレート画像データの一例を示す図である。FIG. 19 is a diagram illustrating an example of template image data according to the third embodiment. 図20は、第4実施形態に係る検査方法の一例を示すフローチャートである。FIG. 20 is a flowchart illustrating an example of an inspection method according to the fourth embodiment. 図21は、第5実施形態に係る検査方法の一例を示すフローチャートである。FIG. 21 is a flowchart illustrating an example of an inspection method according to the fifth embodiment. 図22は、第5実施形態に係る第1閾値と第2閾値と相関値と処理の内容との関係を模式的に示す図である。FIG. 22 is a diagram schematically illustrating a relationship among the first threshold value, the second threshold value, the correlation value, and the processing content according to the fifth embodiment. 図23は、第6実施形態に係る画像データの一例を示す図である。FIG. 23 is a diagram illustrating an example of image data according to the sixth embodiment. 図24は、第7実施形態に係る画像データの一例を示す図である。FIG. 24 is a diagram illustrating an example of image data according to the seventh embodiment. 図25は、第7実施形態に係る検査方法の一例を示す模式図である。FIG. 25 is a schematic diagram illustrating an example of an inspection method according to the seventh embodiment. 図26は、第7実施形態に係る検査方法の一例を示す模式図である。FIG. 26 is a schematic diagram illustrating an example of an inspection method according to the seventh embodiment. 図27は、第8実施形態に係る撮像装置と基板との関係の一例を示す模式図である。FIG. 27 is a schematic diagram illustrating an example of a relationship between an imaging apparatus and a substrate according to the eighth embodiment. 図28は、第8実施形態に係る撮像装置と基板との関係の一例を示す模式図である。FIG. 28 is a schematic diagram illustrating an example of the relationship between the imaging device and the substrate according to the eighth embodiment. 図29は、第8実施形態に係る画像データの一例を示す図である。FIG. 29 is a diagram illustrating an example of image data according to the eighth embodiment. 図30は、第9実施形態に係る搭載前画像データの一例を示す図である。FIG. 30 is a diagram illustrating an example of pre-mounting image data according to the ninth embodiment. 図31は、第9実施形態に係る差分画像データの一例を示す図である。FIG. 31 is a diagram illustrating an example of difference image data according to the ninth embodiment.

以下、本発明に係る実施形態について図面を参照しながら説明するが、本発明はこれに限定されない。以下で説明する実施形態の構成要素は、適宜組み合わせることができる。また、一部の構成要素を用いない場合もある。また、以下で説明する実施形態における構成要素には、当業者が容易に想定できるもの、実質的に同一のもの、いわゆる均等の範囲のものが含まれる。   Hereinafter, embodiments according to the present invention will be described with reference to the drawings, but the present invention is not limited thereto. The components of the embodiments described below can be combined as appropriate. Some components may not be used. In addition, constituent elements in the embodiments described below include those that can be easily assumed by those skilled in the art, those that are substantially the same, and those in a so-called equivalent range.

以下の説明においては、XYZ直交座標系を設定し、このXYZ直交座標系を参照しつつ各部の位置関係について説明する。水平面内の一方向をX軸方向、水平面内においてX軸方向と直交する方向をY軸方向、X軸方向及びY軸方向のそれぞれと直交する方向(すなわち鉛直方向)をZ軸方向とする。また、X軸、Y軸、及びZ軸まわりの回転(傾斜)方向をそれぞれ、θX、θY、及びθZ方向とする。XY平面は、水平面である。XZ平面及びYZ平面のそれぞれは、XY平面と垂直に交わる。   In the following description, an XYZ orthogonal coordinate system is set, and the positional relationship of each part will be described with reference to this XYZ orthogonal coordinate system. One direction in the horizontal plane is defined as the X-axis direction, the direction orthogonal to the X-axis direction in the horizontal plane is defined as the Y-axis direction, and the direction orthogonal to each of the X-axis direction and Y-axis direction (that is, the vertical direction) is defined as the Z-axis direction. Further, the rotation (inclination) directions around the X axis, Y axis, and Z axis are the θX, θY, and θZ directions, respectively. The XY plane is a horizontal plane. Each of the XZ plane and the YZ plane intersects the XY plane perpendicularly.

<第1実施形態>
第1実施形態について説明する。図1は、本実施形態に係る実装装置100の一例を示す斜視図である。実装装置100は、基板3に電子部品18を実装するものであって、基板3を搬送する搬送装置2と、電子部品18を供給する供給部4と、電子部品18を保持するノズル10を有し、電子部品18を供給部4から基板3に移送して搭載する移載ヘッド7とを備えている。本実施形態において、電子部品18は、所謂、チップ型電子部品(搭載型電子部品)であり、基板3に搭載されて実装される。また、実装装置100は、ノズル10(移載ヘッド7)を移動する駆動システム10Dと、移載ヘッド7の移動経路に配置され、移載ヘッド7の画像データを取得するカメラ9と、基板3に対する電子部品18の搭載において、電子部品18及び基板3の少なくとも一部の画像データを取得する撮像素子を含む撮像装置14とを備えている。実装装置100は、基台1を有し、搬送装置2及び駆動システム10Dの少なくとも一部は、基台1に支持される。
<First Embodiment>
A first embodiment will be described. FIG. 1 is a perspective view illustrating an example of a mounting apparatus 100 according to the present embodiment. The mounting apparatus 100 mounts the electronic component 18 on the substrate 3, and includes a transport device 2 that transports the substrate 3, a supply unit 4 that supplies the electronic component 18, and a nozzle 10 that holds the electronic component 18. And a transfer head 7 for transferring and mounting the electronic component 18 from the supply unit 4 to the substrate 3. In the present embodiment, the electronic component 18 is a so-called chip type electronic component (mounting type electronic component), and is mounted on and mounted on the substrate 3. In addition, the mounting apparatus 100 includes a drive system 10D that moves the nozzle 10 (transfer head 7), a camera 9 that is arranged in the movement path of the transfer head 7 and acquires image data of the transfer head 7, and the substrate 3. The electronic component 18 is mounted on the electronic component 18 and the image pickup device 14 including an image pickup device that acquires image data of at least part of the substrate 3. The mounting apparatus 100 includes a base 1, and at least a part of the transport device 2 and the drive system 10 </ b> D is supported by the base 1.

搬送装置2は、基板3を保持する基板保持部と、X軸方向に延在し、基板保持部が移動する搬送路2Rとを含み、基板3を搬送するとともに、保持した基板3を位置決めする。供給部4は、基板3に搭載される電子部品18を供給する。本実施形態において、供給部4は、Y軸方向に関して搬送路2Rの両側に配置される。供給部4は、X軸方向に配置された複数のパーツフィーダ5を有する。パーツフィーダ5は、複数の電子部品18が保持するキャリアテープを収納し、そのキャリアテープを送り出すことにより、電子部品18を順次供給する。   The transfer device 2 includes a substrate holding unit that holds the substrate 3 and a transfer path 2R that extends in the X-axis direction and moves the substrate holding unit, and transfers the substrate 3 and positions the held substrate 3. . The supply unit 4 supplies the electronic component 18 mounted on the substrate 3. In the present embodiment, the supply unit 4 is disposed on both sides of the transport path 2R with respect to the Y-axis direction. The supply unit 4 has a plurality of parts feeders 5 arranged in the X-axis direction. The parts feeder 5 stores a carrier tape held by a plurality of electronic components 18 and sequentially supplies the electronic components 18 by feeding out the carrier tape.

駆動システム10Dは、移載ヘッド7を支持してX軸方向に移動するX軸テーブル6と、X軸テーブル6を支持してY軸方向に移動するY軸テーブル8Aと、Y軸テーブル8Aと対向するように配置され、X軸テーブル6をY軸方向にガイドするガイド部材8Bとを有する。X軸テーブル6は、搬送路2Rの上方においてX軸方向に延在する。X軸テーブル6の−X側の端部がY軸テーブル8Aに支持され、X軸テーブル6の+X側の端部がガイド部材8Bに支持される。Y軸テーブル8A及びガイド部材8Bは、基台1の上面に配置される。本実施形態において、Y軸テーブル8Aの少なくとも一部は、搬送路2Rの−X側の端部の上方に配置され、ガイド部材8Bの少なくとも一部は、搬送路2Rの+X側の端部の上方に配置される。   The drive system 10D includes an X-axis table 6 that supports the transfer head 7 and moves in the X-axis direction, a Y-axis table 8A that supports the X-axis table 6 and moves in the Y-axis direction, and a Y-axis table 8A. The guide member 8B is disposed so as to face each other and guides the X-axis table 6 in the Y-axis direction. The X-axis table 6 extends in the X-axis direction above the transport path 2R. The −X side end of the X axis table 6 is supported by the Y axis table 8A, and the + X side end of the X axis table 6 is supported by the guide member 8B. The Y-axis table 8 </ b> A and the guide member 8 </ b> B are disposed on the upper surface of the base 1. In the present embodiment, at least a part of the Y-axis table 8A is disposed above the −X side end of the transport path 2R, and at least a part of the guide member 8B is a + X side end of the transport path 2R. Arranged above.

移載ヘッド7は、電子部品18をリリース可能に保持するノズル10を有する。ノズル10は、電子部品18を保持して基板3に搭載可能である。移載ヘッド7は、X軸テーブル6の下面側に配置される。Y軸テーブル8AがX軸テーブル6をY軸方向に移動すると、そのX軸テーブル6に支持されている移載ヘッド7がX軸テーブル6と一緒にY軸方向に移動する。また、移載ヘッド7は、X軸テーブル6によりX軸方向に移動可能である。すなわち、本実施形態においては、X軸テーブル6及びY軸テーブル8Aの作動により、ノズル10を含む移載ヘッド7はX軸方向及びY軸方向に移動可能である。   The transfer head 7 has a nozzle 10 that holds the electronic component 18 in a releasable manner. The nozzle 10 can hold the electronic component 18 and can be mounted on the substrate 3. The transfer head 7 is disposed on the lower surface side of the X-axis table 6. When the Y-axis table 8A moves the X-axis table 6 in the Y-axis direction, the transfer head 7 supported by the X-axis table 6 moves in the Y-axis direction together with the X-axis table 6. Further, the transfer head 7 can be moved in the X-axis direction by the X-axis table 6. In other words, in the present embodiment, the transfer head 7 including the nozzle 10 is movable in the X-axis direction and the Y-axis direction by the operation of the X-axis table 6 and the Y-axis table 8A.

なお、上記構成では、Y軸テーブル8Aとガイド部材8Bにより、X軸テーブル6がY軸方向に移動可能とされていた。これに代えて、駆動機構とガイド機構を備えた、周知の一対のY軸ガイドテーブルにより、X軸テーブルをY軸方向に移動させることも容易に考えられる。   In the above configuration, the X-axis table 6 is movable in the Y-axis direction by the Y-axis table 8A and the guide member 8B. Instead of this, it is possible to easily move the X-axis table in the Y-axis direction by using a well-known pair of Y-axis guide tables provided with a drive mechanism and a guide mechanism.

カメラ9は、移載ヘッド7及びノズル10を下方から撮影する。カメラ9は、搬送路2Rと供給部4との間の移載ヘッド7の移動経路に配置されており、電子部品18を保持した状態の移載ヘッド7(ノズル10)の画像データを取得可能である。電子部品18を保持した状態の移載ヘッド7の画像データが取得されることにより、電子部品18の識別及び位置ずれ検出が行われる。   The camera 9 photographs the transfer head 7 and the nozzle 10 from below. The camera 9 is arranged on the movement path of the transfer head 7 between the transport path 2R and the supply unit 4, and can acquire image data of the transfer head 7 (nozzle 10) in a state where the electronic component 18 is held. It is. By acquiring the image data of the transfer head 7 in a state where the electronic component 18 is held, the electronic component 18 is identified and misalignment is detected.

撮像装置14は、光学系及び撮像素子を含み、基板3の少なくとも一部の画像データを取得可能である。本実施形態において、撮像装置14は、移載ヘッド7に取り付けられ、移載ヘッド7と一緒に移動可能である。   The imaging device 14 includes an optical system and an imaging element, and can acquire at least part of image data of the substrate 3. In the present embodiment, the imaging device 14 is attached to the transfer head 7 and is movable together with the transfer head 7.

図2は、本実施形態に係る移載ヘッド7の一例を示す斜視図である。移載ヘッド7は、電子部品18をリリース可能に保持するノズル10と、ノズル10を支持するノズルシャフト11と、ノズルシャフト11を保持するホルダ54と、ホルダ54を支持するベース部材52と、ベース部材52に支持され、ホルダ54をZ軸方向に移動するZ軸モータ13と、ホルダ54に支持され、ノズルシャフト11をθZ方向に移動(回転)するθ軸モータ12とを備えている。   FIG. 2 is a perspective view showing an example of the transfer head 7 according to the present embodiment. The transfer head 7 includes a nozzle 10 that releasably holds the electronic component 18, a nozzle shaft 11 that supports the nozzle 10, a holder 54 that holds the nozzle shaft 11, a base member 52 that supports the holder 54, and a base A Z-axis motor 13 supported by the member 52 and moving the holder 54 in the Z-axis direction and a θ-axis motor 12 supported by the holder 54 and moving (rotating) the nozzle shaft 11 in the θZ direction are provided.

本実施形態において、ノズル10及びノズル10を支持するノズルシャフト11はそれぞれ複数(4つ)設けられる。なお、ノズル10及びノズルシャフト11は、単数設けられてもよい。ノズル10は、電子部品18を吸着する吸着ノズルであり、ノズルシャフト11の下端部に配置される。ノズル10の下端部には、気体を吸引する吸着孔が設けられている。ノズル10の下端部と電子部品18とが接触した状態で、吸着孔から気体が吸引されることにより、ノズル10は、電子部品18を保持する。また、吸着孔からの気体の吸引が停止されることにより、電子部品18はノズル10からリリースされる。   In the present embodiment, a plurality (four) of nozzles 10 and nozzle shafts 11 that support the nozzles 10 are provided. Note that a single nozzle 10 and nozzle shaft 11 may be provided. The nozzle 10 is a suction nozzle that sucks the electronic component 18, and is disposed at the lower end of the nozzle shaft 11. An adsorption hole for sucking gas is provided at the lower end of the nozzle 10. In a state where the lower end portion of the nozzle 10 and the electronic component 18 are in contact with each other, the nozzle 10 holds the electronic component 18 by sucking gas from the suction holes. Further, the electronic component 18 is released from the nozzle 10 by stopping the suction of the gas from the suction hole.

θ軸モータ12は、ノズルシャフト11の上端部に接続されており、ノズルシャフト11をθZ方向に移動(回転)する。ノズルシャフト11がθZ方向に移動すると、そのノズルシャフト11に支持されているノズル10は、ノズルシャフト11と一緒にθZ方向に移動(回転)する。Z軸モータ13は、ボールねじ56を介してホルダ54に接続されており、ホルダ54をZ軸方向に移動する。ホルダ54がZ軸方向に移動すると、そのホルダ54に保持されているノズルシャフト11及びノズル10は、ホルダ54と一緒にZ軸方向に移動する。すなわち、本実施形態においては、θ軸モータ12及びZ軸モータ13の作動により、ノズル10はZ軸方向及びθZ方向に移動可能である。   The θ-axis motor 12 is connected to the upper end of the nozzle shaft 11 and moves (rotates) the nozzle shaft 11 in the θZ direction. When the nozzle shaft 11 moves in the θZ direction, the nozzle 10 supported by the nozzle shaft 11 moves (rotates) in the θZ direction together with the nozzle shaft 11. The Z-axis motor 13 is connected to a holder 54 via a ball screw 56, and moves the holder 54 in the Z-axis direction. When the holder 54 moves in the Z-axis direction, the nozzle shaft 11 and the nozzle 10 held by the holder 54 move in the Z-axis direction together with the holder 54. That is, in the present embodiment, the nozzle 10 is movable in the Z-axis direction and the θZ direction by the operation of the θ-axis motor 12 and the Z-axis motor 13.

本実施形態においては、複数のノズル10及びノズルシャフト11のそれぞれに対して、ホルダ54、θ軸モータ12、及びZ軸モータ13が配置される。複数のノズル10は、Z軸及びθZの2つの方向に関して個別に移動可能である。   In the present embodiment, the holder 54, the θ-axis motor 12, and the Z-axis motor 13 are arranged for each of the plurality of nozzles 10 and the nozzle shaft 11. The plurality of nozzles 10 are individually movable with respect to the two directions of the Z axis and θZ.

駆動システム10Dは、X軸テーブル6、Y軸テーブル8A、θ軸モータ12、及びZ軸モータ13を含む。本実施形態においては、駆動システム10Dの作動により、ノズル10は、X軸、Y軸、Z軸、及びθZの4つの方向に移動可能である。   The drive system 10D includes an X-axis table 6, a Y-axis table 8A, a θ-axis motor 12, and a Z-axis motor 13. In the present embodiment, the nozzle 10 is movable in four directions of the X axis, the Y axis, the Z axis, and θZ by the operation of the drive system 10D.

図3は、本実施形態に係る撮像装置14の一例を示す正面図である。撮像装置14は、複数のカメラ15を備える。複数のカメラ15のそれぞれは、光学系及び撮像素子を有する。撮像装置14は、基板3に対する電子部品18の搭載において、基板3の少なくとも一部の画像データを取得する。本実施形態において、撮像装置14は、基板3を斜め上方から撮像する。なお、カメラ15は、1つのノズル10に対して1つだけ設けられてもよいし、複数のノズル10に対して1つだけ設けられてもよい。なお、撮像装置14で撮像される基板3を照明する照明装置が設けられてもよい。撮像装置14は、照明装置で照明された基板3の少なくとも一部の画像データを取得してもよい。   FIG. 3 is a front view illustrating an example of the imaging device 14 according to the present embodiment. The imaging device 14 includes a plurality of cameras 15. Each of the plurality of cameras 15 has an optical system and an image sensor. The imaging device 14 acquires image data of at least a part of the substrate 3 when the electronic component 18 is mounted on the substrate 3. In the present embodiment, the imaging device 14 images the substrate 3 from obliquely above. Note that only one camera 15 may be provided for one nozzle 10, or only one camera 15 may be provided for a plurality of nozzles 10. An illumination device that illuminates the substrate 3 imaged by the imaging device 14 may be provided. The imaging device 14 may acquire at least part of image data of the substrate 3 illuminated by the illumination device.

次に、本実施形態に係る実装装置100の動作の一例について説明する。図4は、電子部品18が基板3に搭載される前の状態を示す図である。ノズル10に保持された電子部品18が、基板3の搭載領域40に搭載される。基板3の搭載領域40には半田ペースト16が印刷されている。本実施形態においては、基板3の搭載領域40に電子部品18が搭載される前に、基板3の搭載領域40と、その搭載領域40の周辺の基板3の周辺領域50とを含む画像データが撮像装置14によって取得される。   Next, an example of the operation of the mounting apparatus 100 according to the present embodiment will be described. FIG. 4 is a diagram illustrating a state before the electronic component 18 is mounted on the substrate 3. The electronic component 18 held by the nozzle 10 is mounted on the mounting area 40 of the substrate 3. A solder paste 16 is printed on the mounting area 40 of the substrate 3. In the present embodiment, before the electronic component 18 is mounted on the mounting area 40 of the substrate 3, image data including the mounting area 40 of the substrate 3 and the peripheral area 50 of the substrate 3 around the mounting area 40 is obtained. Acquired by the imaging device 14.

基板3の上面の搭載領域40及び周辺領域50の画像が撮像された後、電子部品18を保持したノズル10が下降し、基板3の搭載領域40に電子部品18を搭載する。電子部品18は、基板3上に印刷された半田ペースト16と接続される。電子部品18は、ボディ部18Aと、ボディ部18Aの両端に形成された電極部18Bを含み、電極部18Bの少なくとも一部と半田ペースト16とが接続される。   After images of the mounting area 40 and the peripheral area 50 on the upper surface of the substrate 3 are captured, the nozzle 10 holding the electronic component 18 is lowered, and the electronic component 18 is mounted on the mounting area 40 of the substrate 3. The electronic component 18 is connected to the solder paste 16 printed on the substrate 3. The electronic component 18 includes a body portion 18A and electrode portions 18B formed at both ends of the body portion 18A, and at least a part of the electrode portion 18B and the solder paste 16 are connected.

図5は、電子部品18が基板3に搭載された後の状態を示す図である。基板3に電子部品18が搭載された後、ノズル10が上昇し、基板3及び電子部品18から離れる。本実施形態においては、基板3の搭載領域40に電子部品18が搭載された後に、基板3の搭載領域40と周辺領域50とを含む画像データが撮像装置14によって取得される。図5に示す例では、基板3の搭載領域40に電子部品18が搭載され、搭載領域40の画像データは、その搭載領域40に搭載された電子部品18の画像データを含む。   FIG. 5 is a diagram illustrating a state after the electronic component 18 is mounted on the substrate 3. After the electronic component 18 is mounted on the substrate 3, the nozzle 10 rises and moves away from the substrate 3 and the electronic component 18. In the present embodiment, after the electronic component 18 is mounted on the mounting area 40 of the substrate 3, image data including the mounting area 40 and the peripheral area 50 of the substrate 3 is acquired by the imaging device 14. In the example shown in FIG. 5, the electronic component 18 is mounted on the mounting area 40 of the substrate 3, and the image data of the mounting area 40 includes image data of the electronic component 18 mounted on the mounting area 40.

図6は、本実施形態に係る実装装置100の機能ブロック図である。図6に示すように、実装装置100は、撮像装置14と、CPU(Central Processing Unit)25を含み、実装装置100を制御するメイン制御装置26と、基板3及び電子部品18の少なくとも一方を検査する検査装置37とを備えている。撮像装置14は、メイン制御装置26と接続され、メイン制御装置26からの指令信号に基づいて作動する。検査装置37は、メイン制御装置26と接続され、メイン制御装置26とデータ通信可能である。また、検査装置37は、撮像装置14と接続され、撮像装置14とデータ通信可能である。   FIG. 6 is a functional block diagram of the mounting apparatus 100 according to the present embodiment. As illustrated in FIG. 6, the mounting apparatus 100 includes an imaging device 14 and a CPU (Central Processing Unit) 25, and inspects at least one of the main control device 26 that controls the mounting apparatus 100, the board 3, and the electronic component 18. And an inspection device 37 for performing the inspection. The imaging device 14 is connected to the main control device 26 and operates based on a command signal from the main control device 26. The inspection device 37 is connected to the main control device 26 and can communicate data with the main control device 26. The inspection device 37 is connected to the imaging device 14 and can communicate data with the imaging device 14.

検査装置37は、CPUを含み、検査装置37を制御する制御装置35と、撮像装置14で取得された画像データを記憶する書き換え可能なメモリをそれぞれ含む搭載前画像データ記憶部30及び搭載後画像データ記憶部31と、検査に使用される各種のデータを処理して基板3及び電子部品18の状態を判定する検査処理部32と、検査処理部32から出力される差分画像データを記憶する差分画像データ記憶部33と、検査処理部32による判定結果を記憶する書き換え可能なメモリを含む判定結果記憶部34と、判定結果記憶部34に記憶された判定結果に基づいて処理を行う判定結果処理部36と、を有する。   The inspection device 37 includes a CPU, and includes a control device 35 that controls the inspection device 37 and a rewritable memory that stores image data acquired by the imaging device 14. A data storage unit 31, an inspection processing unit 32 that processes various data used for inspection to determine the state of the substrate 3 and the electronic component 18, and a difference that stores differential image data output from the inspection processing unit 32 Image data storage unit 33, determination result storage unit 34 including a rewritable memory for storing determination results by inspection processing unit 32, and determination result processing for performing processing based on the determination results stored in determination result storage unit 34 Part 36.

検査処理部32は、撮像装置14で取得された画像データを処理する画像解析処理部32Aと、搭載領域40の異常の有無を判定する搭載領域判定処理部32Bと、周辺領域50の異常の有無を判定する周辺領域判定処理部32Cと、を含む。   The inspection processing unit 32 includes an image analysis processing unit 32A that processes image data acquired by the imaging device 14, a mounting region determination processing unit 32B that determines whether there is an abnormality in the mounting region 40, and whether there is an abnormality in the peripheral region 50. A peripheral area determination processing unit 32C.

検査処理部32(画像解析処理部32A、搭載領域判定処理部32B、周辺領域判定処理部32C)、及び判定結果処理部36は、CPUとソフトウェア(プログラム)で実現することもできるし、ハードワイヤード回路で実現することもできる。ソフトウェア(プログラム)は、磁気ディスク、光ディスク、半導体メモリ等の記録媒体に記録しておいても良いし、LAN(Local Area Network)やインターネット経由でダウンロードしてもよい。   The inspection processing unit 32 (the image analysis processing unit 32A, the mounting region determination processing unit 32B, the peripheral region determination processing unit 32C), and the determination result processing unit 36 can be realized by a CPU and software (program), or hard wired. It can also be realized with a circuit. The software (program) may be recorded on a recording medium such as a magnetic disk, an optical disk, or a semiconductor memory, or may be downloaded via a LAN (Local Area Network) or the Internet.

次に、基板3に対する電子部品18の搭載において行われる検査方法の一例について、図7のフローチャートを参照して説明する。   Next, an example of an inspection method performed when the electronic component 18 is mounted on the substrate 3 will be described with reference to a flowchart of FIG.

電子部品18を基板3の搭載領域40に搭載するために、メイン制御装置26は、駆動システム10Dを制御して、供給部4の電子部品18をノズル10で保持し、搬送装置2の基板3まで搬送する。メイン制御装置26は、電子部品18が基板3に搭載される前に、撮像装置14に対して撮像開始の指令信号を送信する。指令信号を受信した撮像装置14は、基板3の搭載領域40に対する電子部品18の搭載前に基板3を撮像して、基板3の搭載領域40及び周辺領域50を含む画像データを取得する(ステップSA1)。以下の説明においては、電子部品18の搭載前に取得された搭載領域40及び周辺領域50の画像データを適宜、搭載前画像データDAa、と称する。   In order to mount the electronic component 18 on the mounting area 40 of the substrate 3, the main control device 26 controls the drive system 10 </ b> D to hold the electronic component 18 of the supply unit 4 with the nozzle 10, and the substrate 3 of the transport device 2. Transport to. The main control device 26 transmits an imaging start command signal to the imaging device 14 before the electronic component 18 is mounted on the substrate 3. The imaging device 14 that has received the command signal images the board 3 before mounting the electronic component 18 on the mounting area 40 of the board 3 and acquires image data including the mounting area 40 and the peripheral area 50 of the board 3 (step). SA1). In the following description, the image data of the mounting area 40 and the peripheral area 50 acquired before mounting the electronic component 18 is appropriately referred to as pre-mounting image data DAa.

本実施形態においては、撮像装置14及び基板3のそれぞれが静止した状態で搭載前画像データDAaが取得される。すなわち、撮像装置14と基板3との相対位置が固定された状態で搭載前画像データDAaが取得される。撮像装置14は、搭載領域40の画像データ及び周辺領域50の画像データを同時に取得する。搭載領域40及び周辺領域50の画像が撮像装置14の撮像素子によって同時に取得されるように、撮像装置14の光学系の視野領域が定められる。撮像装置14の撮像素子は、複数の画素を有し、搭載前画像データDAaが複数の画素ごとに取得される。   In the present embodiment, the pre-mounting image data DAa is acquired in a state where the imaging device 14 and the substrate 3 are stationary. That is, the pre-mounting image data DAa is acquired in a state where the relative position between the imaging device 14 and the substrate 3 is fixed. The imaging device 14 simultaneously acquires the image data of the mounting area 40 and the image data of the peripheral area 50. The visual field region of the optical system of the imaging device 14 is determined so that the images of the mounting region 40 and the peripheral region 50 are simultaneously acquired by the imaging device of the imaging device 14. The imaging device of the imaging device 14 has a plurality of pixels, and the pre-mounting image data DAa is acquired for each of the plurality of pixels.

図8は、搭載前画像データDAaの一例を示す図である。図8において、搭載領域40には電子部品18が搭載されていない。搭載領域40の外形及び大きさは、電子部品18の外形及び大きさとほぼ等しい。本実施形態において、基板3の表面と平行なXY平面内における搭載領域40の外形は、四角形(長方形)である。なお、搭載領域40の外形は、正方形でもよいし、平行四辺形でもよいし、ひし形でもよい。電子部品18の電極部18Bと接続されるように搭載領域40に半田ペースト16が配置されている。搭載領域40の中心位置17を目標にして電子部品18が搭載される。   FIG. 8 is a diagram illustrating an example of pre-mounting image data DAa. In FIG. 8, the electronic component 18 is not mounted in the mounting area 40. The outer shape and size of the mounting area 40 are substantially equal to the outer shape and size of the electronic component 18. In the present embodiment, the outer shape of the mounting region 40 in the XY plane parallel to the surface of the substrate 3 is a quadrangle (rectangle). Note that the outer shape of the mounting region 40 may be a square, a parallelogram, or a rhombus. The solder paste 16 is disposed in the mounting region 40 so as to be connected to the electrode portion 18B of the electronic component 18. The electronic component 18 is mounted with the center position 17 of the mounting area 40 as a target.

周辺領域50は、搭載領域40の周辺の領域である。搭載領域40の周囲には、他の搭載領域(周辺搭載領域)40Eが配置される。図8に示す例では、周辺搭載領域40Eのそれぞれに電子部品18が搭載されている。周辺領域50は、周辺搭載領域40E、周辺搭載領域40Eに搭載された電子部品18、搭載領域40と周辺搭載領域40Eとの間の非搭載領域、及び周辺搭載領域40Eとその周辺搭載領域40Eに隣接する周辺搭載領域40Eとの間の非搭載領域を含む。非搭載領域は、電子部品18が搭載されない領域である。なお、周辺領域50が、搭載領域40と周辺搭載領域40Eとの間の非搭載領域のみを含む概念でもよい。中心位置17に対する放射方向に関して、周辺領域50の寸法は、搭載領域40の寸法よりも大きくてもよいし、小さくてもよい。   The peripheral area 50 is an area around the mounting area 40. Around the mounting area 40, another mounting area (peripheral mounting area) 40E is arranged. In the example shown in FIG. 8, the electronic component 18 is mounted on each of the peripheral mounting areas 40E. The peripheral area 50 includes a peripheral mounting area 40E, an electronic component 18 mounted in the peripheral mounting area 40E, a non-mounting area between the mounting area 40 and the peripheral mounting area 40E, and a peripheral mounting area 40E and its peripheral mounting area 40E. A non-mounting region between adjacent peripheral mounting regions 40E is included. The non-mounting area is an area where the electronic component 18 is not mounted. The concept may be such that the peripheral area 50 includes only a non-mounting area between the mounting area 40 and the peripheral mounting area 40E. With respect to the radial direction with respect to the center position 17, the size of the peripheral region 50 may be larger or smaller than the size of the mounting region 40.

撮像装置14により取得された搭載前画像データDAaは、検査装置37に送信される。検査装置37は、搭載前画像データDAaを、画像データ記憶部(搭載前画像データ記憶部)30に記憶する(ステップSA2)。   The pre-mounting image data DAa acquired by the imaging device 14 is transmitted to the inspection device 37. The inspection device 37 stores the pre-mounting image data DAa in the image data storage unit (pre-mounting image data storage unit) 30 (step SA2).

搭載前画像データDAaが取得された後、電子部品18が基板3の搭載領域40に搭載される(ステップSA3)。基板3に電子部品18が搭載され、基板3及び電子部品18から離れるようにノズル10が上昇するとき、メイン制御装置26は、撮像装置14に対して撮像開始の指令信号を送信する。指令信号を受信した撮像装置14は、基板3の搭載領域40に対する電子部品18の搭載後に基板3を撮像して、基板3の搭載領域40及び周辺領域50を含む画像データを取得する(ステップSA4)。以下の説明においては、電子部品18の搭載後に取得された搭載領域40及び周辺領域50の画像データを適宜、搭載後画像データDAb、と称する。   After the pre-mounting image data DAa is acquired, the electronic component 18 is mounted on the mounting area 40 of the substrate 3 (step SA3). When the electronic component 18 is mounted on the substrate 3 and the nozzle 10 is lifted away from the substrate 3 and the electronic component 18, the main control device 26 transmits an imaging start command signal to the imaging device 14. The imaging device 14 that has received the command signal images the substrate 3 after mounting the electronic component 18 on the mounting region 40 of the substrate 3 and acquires image data including the mounting region 40 and the peripheral region 50 of the substrate 3 (step SA4). ). In the following description, the image data of the mounting area 40 and the peripheral area 50 acquired after mounting the electronic component 18 is appropriately referred to as post-mounting image data DAb.

本実施形態においては、撮像装置14及び基板3のそれぞれが静止した状態で搭載後画像データDAbが取得される。すなわち、撮像装置14と基板3との相対位置が固定された状態で搭載後画像データDAbが取得される。また、搭載前画像データDAaの取得時と搭載後画像データDAbの取得時とで、撮像装置14及び基板3の位置は同一であり、撮像装置14と基板3との相対位置が固定された状態で搭載前画像データDAa及び搭載後画像データDAbのそれぞれが取得される。撮像装置14は、搭載領域40の画像データ及び周辺領域50の画像データを同時に取得する。搭載前画像データDAaの取得時と搭載後画像データDAbの取得時とで、撮像装置14の光学系の視野領域は同一であり、搭載後画像データDAbが撮像素子の複数の画素ごとに取得される。   In the present embodiment, post-mounting image data DAb is acquired in a state where the imaging device 14 and the substrate 3 are stationary. That is, the post-mounting image data DAb is acquired in a state where the relative position between the imaging device 14 and the substrate 3 is fixed. The positions of the imaging device 14 and the substrate 3 are the same when the pre-mounting image data DAa and the post-mounting image data DAb are acquired, and the relative position between the imaging device 14 and the substrate 3 is fixed. Thus, the pre-mounting image data DAa and the post-mounting image data DAb are acquired. The imaging device 14 simultaneously acquires the image data of the mounting area 40 and the image data of the peripheral area 50. The field of view of the optical system of the imaging device 14 is the same when the pre-mounting image data DAa and the post-mounting image data DAb are acquired, and the post-mounting image data DAb is acquired for each of a plurality of pixels of the image sensor. The

図9は、搭載後画像データDAbの一例を示す図である。図9において、搭載領域40には電子部品18が搭載されている。上述したように、基板3の搭載領域40に電子部品18が搭載されているとき、基板3の搭載領域40の画像データは、電子部品18の画像データを含む。また、図9に示す例では、搭載後画像データDAbの取得時における周辺領域50の状態は、搭載前画像データDAaの取得時における周辺領域50の状態と同一である。すなわち、周辺領域50の電子部品18の位置及び数は、搭載前画像データDAaの取得時と搭載後画像データDAbの取得時とで同一である。   FIG. 9 is a diagram illustrating an example of the post-mounting image data DAb. In FIG. 9, the electronic component 18 is mounted in the mounting area 40. As described above, when the electronic component 18 is mounted on the mounting area 40 of the substrate 3, the image data of the mounting area 40 of the substrate 3 includes the image data of the electronic component 18. In the example shown in FIG. 9, the state of the peripheral region 50 when the post-mounting image data DAb is acquired is the same as the state of the peripheral region 50 when the pre-mounting image data DAa is acquired. That is, the position and number of the electronic components 18 in the peripheral region 50 are the same when the pre-mounting image data DAa is acquired and when the post-mounting image data DAb is acquired.

撮像装置14により取得された搭載後画像データDAbは、検査装置37に送信される。検査装置37は、搭載後画像データDAbを、画像データ記憶部(搭載後画像データ記憶部)31に記憶する(ステップSA5)。   The post-mounting image data DAb acquired by the imaging device 14 is transmitted to the inspection device 37. The inspection device 37 stores the post-mounting image data DAb in the image data storage unit (post-mounting image data storage unit) 31 (step SA5).

検査処理部32は、搭載前画像データ記憶部30に記憶されている搭載前画像データDAaと、搭載後画像データ記憶部31に記憶されている搭載後画像データDAbとを比較する(ステップSA6)。検査処理部32は、その比較の結果に基づいて、搭載領域40及び周辺領域50の少なくとも一方の異常の有無を判定する(ステップSA7)。   The inspection processing unit 32 compares the pre-mounting image data DAa stored in the pre-mounting image data storage unit 30 with the post-mounting image data DAb stored in the post-mounting image data storage unit 31 (step SA6). . The inspection processing unit 32 determines whether there is an abnormality in at least one of the mounting area 40 and the peripheral area 50 based on the comparison result (step SA7).

上述のように、搭載前画像データDAa及び搭載後画像データDAbのそれぞれは、撮像素子の複数の画素ごとに取得される。本実施形態においては、搭載前画像データDAa及び搭載後画像データDAbの取得において、撮像素子の画素ごとの輝度値が検出される。本実施形態において、搭載前画像データDAa及び搭載後画像データDAbのそれぞれは、撮像素子の複数の画素ごとの輝度値に関する情報を含む。   As described above, each of the pre-mounting image data DAa and the post-mounting image data DAb is acquired for each of the plurality of pixels of the image sensor. In the present embodiment, the luminance value for each pixel of the image sensor is detected in the acquisition of the pre-mounting image data DAa and the post-mounting image data DAb. In the present embodiment, each of the pre-mounting image data DAa and the post-mounting image data DAb includes information regarding the luminance value for each of the plurality of pixels of the image sensor.

図10は、搭載前画像データDAaと搭載後画像データDAbとを比較するために出力された画像データである。図10に示す画像データは、搭載前画像データDAa及び搭載後画像データDAbそれぞれの画素ごとの輝度値の差分値を使って作成された差分画像データDSである。差分画像データDSとは、搭載前画像データDAaの輝度値から搭載後画像データDAbの輝度値を差分して、その絶対値(正の値)を画像化したものである。   FIG. 10 shows image data output for comparing the pre-mounting image data DAa and the post-mounting image data DAb. The image data shown in FIG. 10 is difference image data DS created using the difference value of the luminance value for each pixel of the pre-mounting image data DAa and the post-mounting image data DAb. The difference image data DS is obtained by imaging the absolute value (positive value) by subtracting the luminance value of the post-mounting image data DAb from the luminance value of the pre-mounting image data DAa.

本実施形態においては、複数の画素ごとに輝度値の差分値が算出される。搭載前画像データDAaの取得時と搭載後画像データDAbの取得時とにおいて基板3の同一位置を撮像した画素(同一位置からの光が入射した画素)により検出された輝度値の差分値が算出される。   In the present embodiment, a difference value of luminance values is calculated for each of a plurality of pixels. The difference value between the luminance values detected by the pixels that have captured the same position of the substrate 3 (the pixels on which light from the same position is incident) is calculated when the pre-mounting image data DAa and the post-mounting image data DAb are acquired. Is done.

図11は、差分画像データDSの作成方法の一例を説明するための模式図である。図11に示すように、搭載前画像データ記憶部30には搭載前画像データDAaが記憶され、搭載後画像データ記憶部31には搭載後画像データDAbが記憶されている。搭載前画像データDAa及び搭載後画像データDAbのそれぞれは、画素px(px1、px2、…、pxn)ごとの輝度値に関する情報を含む。   FIG. 11 is a schematic diagram for explaining an example of a method for creating difference image data DS. As shown in FIG. 11, the pre-mounting image data storage unit 30 stores pre-mounting image data DAa, and the post-mounting image data storage unit 31 stores post-mounting image data DAb. Each of the pre-mounting image data DAa and the post-mounting image data DAb includes information on the luminance value for each pixel px (px1, px2,..., Pxn).

検査処理部32は、搭載前画像データDAaと搭載後画像データDAbとの位置合わせをする。例えば、搭載前画像データDAaの中心位置17と搭載後画像データDAbの中心位置17とが一致するように位置合わせする。そして、検査処理部32は、搭載前画像データDAaの画素pxにおける輝度値maと、その搭載前画像データDAaの画素pxに一致する搭載後画像データDAbの画素pxにおける輝度値mbとの差分値Δmを算出する。例えば、図11において、搭載前画像データDAaの第1領域を撮像した画素px1における輝度値ma1と、搭載後画像データDAbの第1領域を撮像した画素px1における輝度値mb1との差分値Δm1が算出される。搭載前画像データDAaの第2領域を撮像した画素px2における輝度値ma2と、搭載後画像データDAbの第2領域を撮像した画素px2における輝度値mb2との差分値Δm2が算出される。搭載前画像データDAaの第i領域を撮像した画素pxiにおける輝度値maiと、搭載後画像データDAbの第i領域を撮像した画素pxiにおける輝度値mbiとの差分値Δmiが算出される。以下同様に、全ての画素px(px1、px2、…、pxi、…、pxn)それぞれにおける搭載前画像データDAaの輝度値ma(ma1、ma2、…、mai、…、man)と、搭載後画像データDAbの輝度値mb(mb1、mb2、…、mbi、…、mbn)との差分値Δm(Δm1、Δm2、…、Δmi、…、Δmn)がそれぞれ算出される。   The inspection processing unit 32 aligns the pre-mounting image data DAa and the post-mounting image data DAb. For example, the center position 17 of the pre-mounting image data DAa and the center position 17 of the post-mounting image data DAb are aligned. Then, the inspection processing unit 32 calculates a difference value between the luminance value ma in the pixel px of the pre-mounting image data DAa and the luminance value mb in the pixel px of the post-mounting image data DAb that matches the pixel px of the pre-mounting image data DAa. Δm is calculated. For example, in FIG. 11, the difference value Δm1 between the luminance value ma1 in the pixel px1 that images the first region of the pre-mounting image data DAa and the luminance value mb1 in the pixel px1 that images the first region of the post-mounting image data DAb is Calculated. A difference value Δm2 between the luminance value ma2 in the pixel px2 that images the second region of the pre-mounting image data DAa and the luminance value mb2 in the pixel px2 that images the second region of the post-mounting image data DAb is calculated. A difference value Δmi between the luminance value mai at the pixel pxi that images the i-th region of the pre-mounting image data DAa and the luminance value mbi at the pixel pxi that images the i-th region of the post-mounting image data DAb is calculated. Similarly, the luminance value ma (ma1, ma2,..., Mai,..., Man) of the pre-mounting image data DAa in each of the pixels px (px1, px2,..., Pxn) and the mounted image. Difference values Δm (Δm1, Δm2,..., Δmi,..., Δmn) from the luminance values mb (mb1, mb2,..., Mbn) of the data DAb are respectively calculated.

このように、本実施形態においては、搭載前画像データDAaと搭載後画像データDAbとの撮像素子の複数の画素pxごとの輝度値maと輝度値mbの差分値Δm(Δm1、Δm2、…、Δmi、…、Δmn)が算出される。   As described above, in the present embodiment, the difference value Δm (Δm1, Δm2,...) Between the luminance value ma and the luminance value mb for each of the plurality of pixels px of the image sensor between the pre-mounting image data DAa and the post-mounting image data DAb. Δmi,..., Δmn) are calculated.

なお、搭載前画像データDAaと搭載後画像データDAbとの位置合わせは、所謂、テンプレートマッチング処理により行われてもよい。例えば、検査処理部32(画像解析処理部32A)は、搭載前画像データDAaをテンプレートとして、搭載前画像データDAaと搭載後画像データDAbとの相関値を算出し、相関値が最も高くなるように搭載前画像データDAaと搭載後画像データDAbとの位置合わせをする。検査処理部32は、相関値が最も高い搭載前画像データDAa及び搭載後画像データDAbの位置を、それら搭載前画像データDAaと搭載後画像データDAbとが一致する位置と判断する。このとき、位置合わせ精度を高めるために、サブピクセル演算が実施されてもよい。また、演算時間を短縮するために、全ての画素について位置合わせのための演算を行うのではなく、一部の画素について位置合わせのための演算が行われてもよい。   Note that the alignment of the pre-mounting image data DAa and the post-mounting image data DAb may be performed by a so-called template matching process. For example, the inspection processing unit 32 (image analysis processing unit 32A) calculates the correlation value between the pre-mounting image data DAa and the post-mounting image data DAb using the pre-mounting image data DAa as a template so that the correlation value becomes the highest. The pre-mounting image data DAa and post-mounting image data DAb are aligned. The inspection processing unit 32 determines the position of the pre-mounting image data DAa and the post-mounting image data DAb having the highest correlation value as the position where the pre-mounting image data DAa and the post-mounting image data DAb match. At this time, sub-pixel calculation may be performed in order to increase alignment accuracy. In addition, in order to shorten the calculation time, the calculation for alignment may be performed for some pixels instead of performing the calculation for alignment for all the pixels.

検査処理部32は、画素pxごとに求められた差分値Δmをプロットして、差分画像データDSを作成する。作成された差分画像データDSは、差分画像データ記憶部33に記憶される。   The inspection processing unit 32 creates difference image data DS by plotting the difference value Δm obtained for each pixel px. The created difference image data DS is stored in the difference image data storage unit 33.

本実施形態において、搭載前画像データDAaと搭載後画像データDAbとを比較するステップSA6は、差分値Δmと予め定められた閾値Rとを比較することを含む。差分値Δmと閾値Rとを比較した結果に基づいて、搭載領域40及び周辺領域50それぞれの異常の有無が判定される。   In the present embodiment, step SA6 for comparing the pre-mounting image data DAa and the post-mounting image data DAb includes comparing the difference value Δm with a predetermined threshold value R. Based on the result of comparing the difference value Δm and the threshold value R, the presence / absence of an abnormality in each of the mounting area 40 and the peripheral area 50 is determined.

本実施形態において、搭載領域40の異常は、搭載領域40に対する電子部品18の搭載状態の異常を含み、搭載領域40の異常の有無の判定は、搭載領域40に対する電子部品18の搭載状態の異常の有無の判定を含む。搭載領域40の異常は、搭載動作が行われたにもかかわらず搭載領域40に電子部品18が搭載されていない状態、搭載動作が行われていないにもかかわらず搭載領域40に電子部品18が搭載されている状態、搭載領域40の少なくとも一部に電子部品18が搭載されているものの、搭載領域40と電子部品18との位置がずれている状態の少なくとも一つを含む。本実施形態において、周辺領域50の異常は、周辺領域50(周辺搭載領域40E)に搭載された電子部品18の位置がずれた状態、及び周辺領域50(周辺搭載領域40E)に搭載された電子部品18の位置がずれてその電子部品18の少なくとも一部が搭載領域40に配置された状態の少なくとも一つを含む。なお、周辺領域50(周辺搭載領域40E)に搭載された電子部品18の位置がずれてその電子部品18の少なくとも一部が搭載領域40に配置された状態を、搭載領域40の異常とみなしてもよい。   In the present embodiment, the abnormality in the mounting area 40 includes an abnormality in the mounting state of the electronic component 18 with respect to the mounting area 40, and the determination of whether there is an abnormality in the mounting area 40 is an abnormality in the mounting state of the electronic component 18 with respect to the mounting area 40. Including the determination of the presence or absence of An abnormality in the mounting area 40 includes a state in which the electronic component 18 is not mounted in the mounting area 40 despite the mounting operation being performed, and an electronic component 18 in the mounting area 40 in which the mounting operation is not performed. It includes at least one of the mounted state and the state in which the electronic component 18 is mounted on at least a part of the mounting region 40 but the mounting region 40 and the electronic component 18 are out of position. In the present embodiment, abnormalities in the peripheral area 50 include the state in which the position of the electronic component 18 mounted in the peripheral area 50 (peripheral mounting area 40E) is shifted, and the electrons mounted in the peripheral area 50 (peripheral mounting area 40E). It includes at least one of the states in which the position of the component 18 is shifted and at least a part of the electronic component 18 is arranged in the mounting area 40. Note that a state where the position of the electronic component 18 mounted in the peripheral region 50 (peripheral mounting region 40E) is shifted and at least a part of the electronic component 18 is disposed in the mounting region 40 is regarded as an abnormality in the mounting region 40. Also good.

本実施形態においては、搭載前画像データDAaの搭載領域40と搭載後画像データDAbの搭載領域40との撮像素子の画素ごとの輝度値の差分値の合計値と、閾値R40とが比較される。また、本実施形態においては、搭載前画像データDAaの周辺領域50と搭載後画像データDAbの周辺領域50との撮像素子の画素ごとの輝度値の差分値の合計値と、閾値R50とが比較される。   In this embodiment, the threshold R40 is compared with the total value of the difference values of the luminance values for each pixel of the image sensor between the mounting area 40 of the pre-mounting image data DAa and the mounting area 40 of the post-mounting image data DAb. . In the present embodiment, the total value of the difference values of the luminance values for each pixel of the image sensor between the peripheral area 50 of the pre-mounting image data DAa and the peripheral area 50 of the post-mounting image data DAb is compared with the threshold value R50. Is done.

例えば、搭載領域40を撮像した画素がpxa、pxb、…、pxeであり、搭載前画像データDAaの搭載領域40を撮像した複数の画素pxa、pxb、…、pxeそれぞれにおける輝度値がmaa、mab、…、maeであり、搭載後画像データDAbの搭載領域40を撮像した複数の画素pxa、pxb、…、pxeそれぞれにおける輝度値がmba、mbb、…、mbeであり、画素pxa、pxb、…、pxeごとの差分値がΔma、Δmb、…、Δmeである場合、本実施形態においては、Δma+Δmb+Δmc+Δmd+Δmeと、予め定められた閾値R40と、が比較される。なお、説明を簡単にするため、搭載領域40を撮像した画素をpxa、pxb、…、pxeとしたが、実際には搭載領域40を撮像した画素の数は多く、例えば数十個、数百個、或いは数千個である。   For example, the pixels that image the mounting area 40 are pxa, pxb,..., Pxe, and the luminance values of the pixels pxa, pxb,..., Pxe that image the mounting area 40 of the pre-mounting image data DAa are maa, mab, respectively. ,..., Mae, and the luminance values of the plurality of pixels pxa, pxb,..., Pxe obtained by imaging the mounting area 40 of the post-mounting image data DAb are mba, mbb,. In this embodiment, Δma + Δmb + Δmc + Δmd + Δme is compared with a predetermined threshold value R40 when the difference value for each pxe is Δma, Δmb,. In order to simplify the description, the pixels in which the mounting area 40 is imaged are designated as pxa, pxb,..., Pxe, but in reality, the number of pixels in which the mounting area 40 is imaged is large. Or thousands.

例えば、周辺領域50を撮像した画素がpxq、pxr、…、pxuであり、搭載前画像データDAaの周辺領域50を撮像した複数の画素pxq、pxr、…、pxuそれぞれにおける輝度値がmaq、mar、…、mauであり、搭載後画像データDAbの周辺領域50を撮像した複数の画素pxq、pxr、…、pxuそれぞれにおける輝度値がmbq、mbr、…、mbuであり、画素pxq、pxr、…、pxuごとの差分値がΔmq、Δmr、…、Δmuである場合、本実施形態においては、Δmq+Δmr+Δms+Δmt+Δmuと、予め定められた閾値R50と、が比較される。なお、説明を簡単にするため、周辺領域50を撮像した画素をpxq、pxr、…、pxuとしたが、実際には周辺領域50を撮像した画素の数は多く、例えば数十個、数百個、或いは数千個である。   For example, the pixels that image the peripheral region 50 are pxq, pxr,..., Pxu, and the luminance values in the plurality of pixels pxq, pxr,..., Pxu that image the peripheral region 50 of the pre-mounting image data DAa are maq, mar. ,..., Mau, and the luminance values of the plurality of pixels pxq, pxr,..., Pxu obtained by imaging the peripheral region 50 of the post-mounting image data DAb are mbq, mbr,. In this embodiment, Δmq + Δmr + Δms + Δmt + Δmu is compared with a predetermined threshold value R50 when the difference value for each pxu is Δmq, Δmr,. In order to simplify the description, the pixels that image the peripheral region 50 are assumed to be pxq, pxr,..., Pxu. However, in reality, the number of pixels that image the peripheral region 50 is large, for example, tens or hundreds. Or thousands.

搭載領域40及び周辺領域50のそれぞれに異常が無い場合、図10に示すように、搭載領域40における差分値Δmは大きく、周辺領域50における差分値Δmは小さい(零を含む)。すなわち、電子部品18が搭載領域40に正しく搭載される場合、搭載前においては基板3(半田ペースト16)に基づく搭載領域40の輝度値maが検出され、搭載後においては電子部品18に基づく搭載領域40の輝度値mbが検出されるため、搭載前の搭載領域40の輝度値maと、搭載後の搭載領域40の輝度値mbとの差は大きくなる。したがって、差分画像データDSにおいて、搭載領域40の差分値Δmは大きくなる。また、電子部品18が搭載領域40に正しく搭載され、周辺領域50にも異常が生じていない場合、搭載前においては基板3(非搭載領域)及び周辺搭載領域40E(電子部品18)に基づく周辺領域50の輝度値maが検出され、搭載後においても基板3(非搭載領域)及び周辺搭載領域40E(電子部品18)に基づく周辺領域50の輝度値mbが検出されるため、搭載前の周辺領域50の輝度値maと、搭載後の周辺領域50の輝度値mbとの差は小さい。したがって、差分画像データDSにおいて、周辺領域50の差分値Δmは小さい(零を含む)。すなわち、搭載領域40及び周辺領域50のそれぞれに異常が無い場合、搭載領域40における差分値Δmの合計値は、閾値R40よりも大きく、周辺領域50における差分値Δmの合計値は、閾値R50よりも小さい。この場合、搭載領域40及び周辺領域50のそれぞれにおいて、異常は生じていないと判定される。   When there is no abnormality in each of the mounting area 40 and the peripheral area 50, as shown in FIG. 10, the difference value Δm in the mounting area 40 is large and the difference value Δm in the peripheral area 50 is small (including zero). That is, when the electronic component 18 is correctly mounted on the mounting region 40, the luminance value ma of the mounting region 40 based on the substrate 3 (solder paste 16) is detected before mounting, and the mounting based on the electronic component 18 after mounting. Since the luminance value mb of the area 40 is detected, the difference between the luminance value ma of the mounting area 40 before mounting and the luminance value mb of the mounting area 40 after mounting becomes large. Accordingly, in the difference image data DS, the difference value Δm of the mounting area 40 is increased. Further, when the electronic component 18 is correctly mounted on the mounting area 40 and no abnormality has occurred in the peripheral area 50, the periphery based on the substrate 3 (non-mounting area) and the peripheral mounting area 40E (electronic component 18) before mounting. The luminance value ma of the region 50 is detected, and the luminance value mb of the peripheral region 50 based on the substrate 3 (non-mounting region) and the peripheral mounting region 40E (electronic component 18) is detected even after mounting. The difference between the luminance value ma of the region 50 and the luminance value mb of the peripheral region 50 after mounting is small. Therefore, in the difference image data DS, the difference value Δm of the peripheral region 50 is small (including zero). That is, when there is no abnormality in each of the mounting area 40 and the peripheral area 50, the total value of the difference values Δm in the mounting area 40 is larger than the threshold value R40, and the total value of the differential values Δm in the peripheral area 50 is higher than the threshold value R50. Is also small. In this case, it is determined that no abnormality has occurred in each of the mounting area 40 and the peripheral area 50.

図12は、周辺搭載領域40Eを含むように周辺領域50が定められている場合において、その周辺領域50に異常が生じた例を示す。図12に示す例では、搭載領域40に電子部品18が正しく搭載されているものの、搭載領域40に関する搭載前画像データDAaの取得時と搭載後画像データDAbの取得時との間の期間において、周辺搭載領域40Eに搭載された電子部品18の位置が周辺搭載領域40Eからずれてしまった例を示す。例えば、搭載前画像データDAaの取得時と搭載後画像データDAbの取得時との間の期間において、基板3に外力が作用したり、基板3が振動したり、周辺搭載領域40Eの電子部品18に搭載領域40に搭載される電子部品18が接触したりした場合、周辺搭載領域40Eに搭載された電子部品18の位置がずれてしまう可能性がある。   FIG. 12 shows an example in which an abnormality has occurred in the peripheral area 50 when the peripheral area 50 is determined so as to include the peripheral mounting area 40E. In the example shown in FIG. 12, although the electronic component 18 is correctly mounted in the mounting area 40, in the period between the acquisition of the pre-mounting image data DAa and the acquisition of the post-mounting image data DAb related to the mounting area 40, An example in which the position of the electronic component 18 mounted in the peripheral mounting area 40E has shifted from the peripheral mounting area 40E is shown. For example, an external force acts on the substrate 3, the substrate 3 vibrates, or the electronic component 18 in the peripheral mounting area 40E during a period between the acquisition of the pre-mounting image data DAa and the acquisition of the post-mounting image data DAb. If the electronic component 18 mounted on the mounting area 40 comes into contact, the position of the electronic component 18 mounted on the peripheral mounting area 40E may be shifted.

図13は、図12に示した例の差分画像データDSを示す。図13に示すように、搭載領域40に対する電子部品18の搭載前と搭載後とにおいて、周辺領域50の輝度値が変化し、差分画像データDSにおいて、周辺領域50の一部の差分値が大きくなる。すなわち、図12及び図13に示す例では、搭載領域40における差分値Δmの合計値は、閾値R40よりも大きく、周辺領域50における差分値Δmの合計値も、閾値R50よりも大きい。この場合、搭載領域40に電子部品18が正しく搭載されて搭載領域40においては異常が生じていないものの、周辺領域50において異常(周辺搭載領域40Eと電子部品18との位置ずれ)が生じたと判定される。   FIG. 13 shows the difference image data DS of the example shown in FIG. As shown in FIG. 13, the luminance value of the peripheral region 50 changes before and after the electronic component 18 is mounted on the mounting region 40, and a partial difference value of the peripheral region 50 is large in the difference image data DS. Become. That is, in the example shown in FIGS. 12 and 13, the total value of the difference values Δm in the mounting area 40 is larger than the threshold value R40, and the total value of the difference values Δm in the peripheral area 50 is also larger than the threshold value R50. In this case, although the electronic component 18 is correctly mounted in the mounting area 40 and no abnormality has occurred in the mounting area 40, it is determined that an abnormality (positional displacement between the peripheral mounting area 40E and the electronic component 18) has occurred in the peripheral area 50. Is done.

図14は、周辺領域50及び搭載領域40に異常が生じた例を示す。図14に示す例では、搭載領域40には電子部品18が未だ搭載されてなく、搭載領域40に関する搭載前画像データDAaの取得前において、周辺搭載領域40Eに搭載された電子部品18の位置が周辺搭載領域40Eからずれてその電子部品18の少なくとも一部が搭載領域40に配置されてしまった例を示す。また、図14に示す例は、搭載領域40に対する電子部品18の搭載動作(ノズル10の駆動など)が行われたにもかかわらず、何らかの原因で電子部品18が搭載されなかった例を示す。この場合においても、搭載領域40に対する電子部品18の搭載動作が行われる前と、電子部品18の搭載動作が行われた後とのそれぞれにおいて、搭載領域40及び周辺領域50の画像データが取得される。   FIG. 14 shows an example in which an abnormality has occurred in the peripheral area 50 and the mounting area 40. In the example illustrated in FIG. 14, the electronic component 18 is not yet mounted in the mounting area 40, and the position of the electronic component 18 mounted in the peripheral mounting area 40 </ b> E is obtained before the pre-mounting image data DAa related to the mounting area 40 is acquired. An example will be shown in which at least a part of the electronic component 18 has been disposed in the mounting area 40 by deviating from the peripheral mounting area 40E. In addition, the example illustrated in FIG. 14 illustrates an example in which the electronic component 18 is not mounted for some reason even though the mounting operation (driving of the nozzle 10 or the like) of the electronic component 18 in the mounting region 40 is performed. Even in this case, the image data of the mounting area 40 and the peripheral area 50 is acquired before and after the mounting operation of the electronic component 18 on the mounting area 40 and after the mounting operation of the electronic component 18 is performed. The

図15は、図14に示した例の差分画像データDSを示す。図15に示すように、搭載領域40に対する電子部品18の搭載動作の前と搭載動作の後とにおいて、周辺領域50の輝度値が変化し、差分画像データDSにおいて、周辺領域50の一部の差分値が大きくなる。一方、搭載領域40に対する電子部品18の搭載動作の前と搭載動作の後とにおいて、搭載領域40の輝度値はあまり変化せず、差分画像データDSにおいて、搭載領域40の差分値は小さい。すなわち、図14及び図15に示す例では、搭載領域40における差分値Δmの合計値は、閾値R40よりも小さく、周辺領域50における差分値Δmの合計値は、閾値R50よりも大きい。この場合、搭載領域40において異常(電子部品18の非搭載)が生じたと判定されるとともに、周辺領域50において異常(他の搭載領域40Eと電子部品18との位置ずれ)が生じたと判定される。   FIG. 15 shows the difference image data DS of the example shown in FIG. As shown in FIG. 15, the luminance value of the peripheral region 50 changes before and after the mounting operation of the electronic component 18 in the mounting region 40, and a part of the peripheral region 50 in the difference image data DS. The difference value increases. On the other hand, the luminance value of the mounting area 40 does not change much before and after the mounting operation of the electronic component 18 with respect to the mounting area 40, and the difference value of the mounting area 40 is small in the difference image data DS. That is, in the example shown in FIGS. 14 and 15, the total value of the difference values Δm in the mounting area 40 is smaller than the threshold value R40, and the total value of the difference values Δm in the peripheral area 50 is larger than the threshold value R50. In this case, it is determined that an abnormality (non-mounting of the electronic component 18) has occurred in the mounting area 40, and it is determined that an abnormality (positional displacement between the other mounting area 40E and the electronic component 18) has occurred in the peripheral area 50. .

また、図面を参照しての説明は省略するが、搭載領域40における差分値Δmの合計値が、閾値R40よりも小さく、周辺領域50における差分値Δmの合計値が、閾値R50よりも小さい場合が生じる。この場合、搭載領域40において異常(電子部品18の非搭載)が生じたと判定されるとともに、周辺領域50においては異常が生じていないと判定される。   Although not described with reference to the drawings, the total value of the difference values Δm in the mounting area 40 is smaller than the threshold value R40, and the total value of the difference values Δm in the peripheral area 50 is smaller than the threshold value R50. Occurs. In this case, it is determined that an abnormality (non-mounting of the electronic component 18) has occurred in the mounting area 40, and it is determined that no abnormality has occurred in the peripheral area 50.

以上説明したように、本実施形態によれば、搭載領域40及び周辺領域50それぞれの搭載前画像データDAa及び搭載後画像データDAbを取得するようにしたので、搭載領域40の異常の有無、及び周辺領域50の異常の有無を判定することができる。上述したように、搭載前後における搭載領域40の輝度値の差分値(差分値の合計値)が予め定められた閾値R40よりも大きい場合、電子部品18が搭載領域40に正しく搭載され、搭載領域40においては異常が生じていないと判定できる。搭載前後における搭載領域40の輝度値の差分値が予め定められた閾値R40よりも小さい場合、電子部品18が搭載領域40に搭載されず、搭載領域40においては異常が生じていると判定できる。また、搭載前後における周辺領域50の輝度値の差分値が予め定められた閾値R50よりも小さい場合、周辺領域50において電子部品18の位置ずれなどの異常が生じていないと判定できる。搭載前後における周辺領域50の輝度値の差分値が予め定められた閾値R50よりも大きい場合、周辺領域50において電子部品18の位置ずれなどの異常が生じたと判定できる。   As described above, according to the present embodiment, the pre-mounting image data DAa and the post-mounting image data DAb of the mounting region 40 and the peripheral region 50 are acquired, so whether there is an abnormality in the mounting region 40, and The presence or absence of an abnormality in the peripheral area 50 can be determined. As described above, when the difference value (total value of difference values) of the luminance values in the mounting area 40 before and after mounting is larger than the predetermined threshold value R40, the electronic component 18 is correctly mounted in the mounting area 40, and the mounting area In 40, it can be determined that no abnormality has occurred. When the difference value of the luminance value of the mounting area 40 before and after mounting is smaller than a predetermined threshold value R40, it can be determined that the electronic component 18 is not mounted on the mounting area 40 and an abnormality has occurred in the mounting area 40. Further, when the difference value of the luminance value of the peripheral region 50 before and after mounting is smaller than a predetermined threshold value R50, it can be determined that no abnormality such as a positional deviation of the electronic component 18 has occurred in the peripheral region 50. When the difference value of the luminance values of the peripheral region 50 before and after mounting is larger than a predetermined threshold value R50, it can be determined that an abnormality such as a positional deviation of the electronic component 18 has occurred in the peripheral region 50.

例えば、搭載領域40の輝度値の差分値(輝度値の変化量)を算出し、周辺領域50の輝度値の差分値(輝度値の変化量)を算出しない場合、何らかの原因で搭載領域40に電子部品18が搭載されず、かつ、周辺搭載領域40Eに搭載されるべき電子部品18が位置ずれなどにより搭載領域40に配置されてしまうと、正しい電子部品18が搭載領域40に搭載されていないにもかかわらず、電子部品18が搭載されたと誤判定(誤検査)されてしまう可能性がある。特に、隣接する搭載領域40と周辺搭載領域40Eとの間隔が小さい場合(所謂、狭ピッチの場合)、上述のような誤判定が発生する可能性が高くなる。本実施形態によれば、搭載領域40の輝度値の差分値のみならず、周辺領域50の輝度値の差分値も算出するようにしたので、その算出結果に基づいて、上述のような誤判定の発生が抑制される。   For example, when a difference value (luminance value change amount) of the mounting area 40 is calculated and a luminance value difference value (luminance value change amount) of the peripheral area 50 is not calculated, the mounting area 40 may be changed for some reason. If the electronic component 18 is not mounted and the electronic component 18 to be mounted in the peripheral mounting area 40E is disposed in the mounting area 40 due to a positional shift or the like, the correct electronic component 18 is not mounted in the mounting area 40. Nevertheless, there is a possibility of erroneous determination (incorrect inspection) that the electronic component 18 is mounted. In particular, when the distance between the adjacent mounting area 40 and the peripheral mounting area 40E is small (so-called narrow pitch), there is a high possibility that the above-described erroneous determination occurs. According to the present embodiment, not only the difference value of the luminance value of the mounting area 40 but also the difference value of the luminance value of the peripheral area 50 is calculated, so that the erroneous determination as described above is based on the calculation result. Is suppressed.

また、本実施形態によれば、周辺領域50の状態を撮像装置14で検出するようにしたので、周辺領域50の周辺搭載領域40Eに搭載された電子部品18の異常(位置ずれなど)を検出することができる。   Further, according to the present embodiment, since the state of the peripheral region 50 is detected by the imaging device 14, an abnormality (such as a positional deviation) of the electronic component 18 mounted in the peripheral mounting region 40E of the peripheral region 50 is detected. can do.

このように、本実施形態によれば、電子部品18の搭載(実装)の段階で、異常が生じたか否かを判定することができる。したがって、異常が生じた基板3についての各種の処理が継続されてしまうといった不具合の発生が抑制されるため、歩留まりの低下、及び生産性の低下が抑制される。   Thus, according to the present embodiment, it is possible to determine whether or not an abnormality has occurred at the stage of mounting (mounting) the electronic component 18. Therefore, since the occurrence of problems such as various kinds of processing on the substrate 3 in which an abnormality has occurred is suppressed, a decrease in yield and a decrease in productivity are suppressed.

なお、本実施形態においては、搭載領域40の異常の有無の判定において、搭載領域40からの光が入射した複数の画素それぞれの輝度値の差分値の合計値を算出した。搭載前後の搭載領域40を撮像した複数の画素それぞれの輝度値の差分値の平均値に基づいて、搭載領域40の異常の有無の判定が行われてもよい。同様に、搭載前後の周辺領域50を撮像した複数の画素それぞれの輝度値の差分値の平均値に基づいて、周辺領域50の異常の有無の判定が行われてもよい。以下の実施形態においても同様である。   In the present embodiment, in determining whether there is an abnormality in the mounting area 40, the total value of the difference values of the luminance values of each of the plurality of pixels on which light from the mounting area 40 is incident is calculated. The presence / absence of an abnormality in the mounting area 40 may be determined based on the average value of the difference values of the luminance values of the plurality of pixels that image the mounting area 40 before and after mounting. Similarly, the presence / absence of abnormality in the peripheral region 50 may be determined based on the average value of the difference values of the luminance values of the plurality of pixels that have captured the peripheral region 50 before and after mounting. The same applies to the following embodiments.

なお、本実施形態においては、搭載領域40及び周辺領域50の異常の有無の判定において、画素ごとの輝度値の差分値を求めることとした。複数の画像を含む微小領域を複数定め、その微小領域ごとの輝度値の差分値を求めることとしてもよい。換言すれば、輝度値(差分値)を求める単位は、画素でもよいし、複数の画素を含む微小領域でもよい。以下の実施形態においても同様である。   In the present embodiment, in determining whether there is an abnormality in the mounting area 40 and the peripheral area 50, the difference value of the luminance value for each pixel is obtained. A plurality of micro regions including a plurality of images may be determined, and a difference value of luminance values for each micro region may be obtained. In other words, the unit for obtaining the luminance value (difference value) may be a pixel or a minute area including a plurality of pixels. The same applies to the following embodiments.

なお、本実施形態において、輝度値の差分値が、複数の画素(微小領域)ごとの輝度値の差分値の合計値を含む概念でもよい。以下の実施形態においても同様である。   In the present embodiment, the concept that the difference value of the luminance value includes the total value of the difference values of the luminance values for each of a plurality of pixels (small regions) may be used. The same applies to the following embodiments.

<第2実施形態>
第2実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
Second Embodiment
A second embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

図16は、本実施形態に係る基板3に電子部品18を実装する方法の一例を示すフローチャートである。   FIG. 16 is a flowchart illustrating an example of a method for mounting the electronic component 18 on the substrate 3 according to the present embodiment.

上述の実施形態と同様、搭載前画像データDAaと搭載後画像データDAbとのそれぞれが取得される。検査処理部32は、搭載前画像データDAaと搭載後画像データDAbとの位置合わせをする(ステップSB1)。上述の実施形態で説明したように、搭載前画像データDAaと搭載後画像データDAbとを位置合わせする処理は、搭載前画像データDAaの中心位置17と搭載後画像データDAbの中心位置17とを一致させる処理でもよいし、所謂、テンプレートマッチング処理を含む処理でもよい。   Similar to the above-described embodiment, the pre-mounting image data DAa and the post-mounting image data DAb are acquired. The inspection processing unit 32 aligns the pre-mounting image data DAa and the post-mounting image data DAb (step SB1). As described in the above embodiment, the process of aligning the pre-mounting image data DAa and the post-mounting image data DAb is performed by combining the center position 17 of the pre-mounting image data DAa and the center position 17 of the post-mounting image data DAb. A process of matching may be used, or a process including a so-called template matching process may be used.

上述のように、本実施形態においては、搭載前画像データDAaの取得時と搭載後画像データDAbの取得時とで、撮像装置14及び基板3の位置は同一であり、撮像装置14と基板3との相対位置が固定された状態で搭載前画像データDAa及び搭載後画像データDAbのそれぞれが取得される。また、搭載前画像データDAaの取得時と搭載後画像データDAbの取得時とで、撮像装置14の光学系の視野領域は同一である。しかしながら基板3に対する電子部品18の搭載により基板3に力が加わったり、基板3が振動したりする可能性がある。その場合、既知の画像処理アルゴリズムであるテンプレートマッチング処理により、搭載前画像データDAaと搭載後画像データDAbとの位置合わせ処理が実施されてもよい。   As described above, in the present embodiment, the positions of the imaging device 14 and the substrate 3 are the same when the pre-mounting image data DAa is acquired and when the post-mounting image data DAb is acquired. The pre-mounting image data DAa and the post-mounting image data DAb are acquired in a state in which the relative position to the position is fixed. Further, the field of view of the optical system of the imaging device 14 is the same when the pre-mounting image data DAa is acquired and when the post-mounting image data DAb is acquired. However, there is a possibility that a force is applied to the substrate 3 due to the mounting of the electronic component 18 on the substrate 3 or the substrate 3 vibrates. In this case, the alignment process between the pre-mounting image data DAa and the post-mounting image data DAb may be performed by a template matching process that is a known image processing algorithm.

次に、検査処理部32は、上述の実施形態に従って、搭載前画像データDAa及び搭載後画像データDAbに基づいて、差分画像データDSを作成する(ステップSB2)。作成された差分画像データDSは、差分画像データ記憶部33に記憶される。   Next, the inspection processing unit 32 creates the difference image data DS based on the pre-mounting image data DAa and the post-mounting image data DAb according to the above-described embodiment (step SB2). The created difference image data DS is stored in the difference image data storage unit 33.

次に、検査処理部32は、差分画像データDSのノイズを除去する処理を行う(ステップSB3)。例えば、基板3(電子部品18)のコントラストが高い部分を撮像素子で撮像した場合、そのコントラストが高い部分についての画像データはノイズ成分を多く含む可能性がある。なお、コントラストが高い部分として、例えば電子部品18と基板3との境界部や、基板3に設けられているパターンや文字のエッジ部などが挙げられる。そのため、検査処理部32は、例えば、複数の画素のそれぞれが検出した輝度値のうち、予め定められた所定範囲外の輝度値を検出した画素からのデータを除外して、差分画像データDSを作成する。なお、ノイズを除去する処理として、既存の画像処理アルゴリズムである侵食処理又は膨張処理が使用されてもよい。   Next, the inspection processing unit 32 performs a process of removing noise from the difference image data DS (step SB3). For example, when a high-contrast portion of the substrate 3 (electronic component 18) is imaged by the imaging device, the image data for the high-contrast portion may contain a lot of noise components. Examples of the high contrast portion include a boundary portion between the electronic component 18 and the substrate 3, a pattern provided on the substrate 3, and an edge portion of a character. Therefore, for example, the inspection processing unit 32 excludes the data from the pixels in which the luminance values outside the predetermined range are detected from the luminance values detected by each of the plurality of pixels, and generates the difference image data DS. create. Note that an erosion process or an expansion process, which is an existing image processing algorithm, may be used as a process for removing noise.

次に、本実施形態において、検査処理部32は、搭載前の搭載領域40の画像データと、搭載後の搭載領域40の画像データとの撮像素子の画素ごとの輝度値の差分値を算出する(ステップSB4)。すなわち、搭載前画像データDAaの搭載領域40と搭載後画像データDAbの搭載領域40との撮像素子の画素ごとの輝度値の差分値の合計値が算出される。なお、検査処理部32は、画素ごとの輝度値の差分値の合計値を算出するかわりに、画素ごとの輝度値を二乗するなどの強調処理を行った後、その強調処理後の値の差分値の合計値を算出してもよい。これにより、差分値が強調される。差分値の合計値が算出された後、その差分値の合計値と、閾値R40とが比較される。   Next, in the present embodiment, the inspection processing unit 32 calculates the difference value of the luminance value for each pixel of the image sensor between the image data of the mounting area 40 before mounting and the image data of the mounting area 40 after mounting. (Step SB4). That is, the total value of the difference values of the luminance values for each pixel of the image sensor between the mounting area 40 of the pre-mounting image data DAa and the mounting area 40 of the post-mounting image data DAb is calculated. Note that the inspection processing unit 32 performs enhancement processing such as squaring the luminance value for each pixel instead of calculating the total value of the luminance value difference for each pixel, and then the difference between the values after the enhancement processing. A total value may be calculated. Thereby, the difference value is emphasized. After the sum of the difference values is calculated, the sum of the difference values is compared with the threshold value R40.

次に、検査処理部32は、搭載領域40及び周辺領域50の両方の異常の有無を判定するか、又は搭載領域40の異常の有無を判定して周辺領域50の異常の有無は判定しないか、を選択する(ステップSB5)。周辺領域50の異常の有無の判定をするか否かの選択は、搭載前の周辺領域50の画像データと、搭載後の周辺領域50の画像データとの撮像素子の画素ごとの輝度値の差分値(差分値の合計値)を算出するか否かの選択を含む。   Next, the inspection processing unit 32 determines whether or not there is an abnormality in both the mounting area 40 and the peripheral area 50, or whether or not there is an abnormality in the mounting area 40 and determines whether there is an abnormality in the peripheral area 50 Are selected (step SB5). Whether to determine whether or not there is an abnormality in the peripheral region 50 is determined by the difference in luminance value for each pixel of the image sensor between the image data of the peripheral region 50 before mounting and the image data of the peripheral region 50 after mounting. This includes selection of whether or not to calculate a value (total value of difference values).

例えば、搭載領域40と周辺搭載領域40Eとの間隔(周辺搭載領域40Eとその周辺搭載領域40Eに隣接する周辺搭載領域40Eとの間隔)が大きい場合(狭ピッチでない場合)、上述したような誤判定が発生する可能性は低くなると考えられる。そのような場合、搭載領域40の異常の有無を判定して周辺領域50の異常の有無は判定しないことにより、処理時間(演算時間)が短縮される。一方、狭ピッチの場合、上述したような誤判定が発生する可能性が高くなると考えられる。そのような場合、搭載領域40及び周辺領域50の両方の異常の有無を判定することにより、誤判定の発生が抑制される。   For example, when the distance between the mounting area 40 and the peripheral mounting area 40E (the distance between the peripheral mounting area 40E and the peripheral mounting area 40E adjacent to the peripheral mounting area 40E) is large (when the pitch is not narrow), the above-described error may occur. It is considered that the possibility that the determination will occur is reduced. In such a case, the processing time (calculation time) is shortened by determining whether there is an abnormality in the mounting area 40 and not determining whether there is an abnormality in the peripheral area 50. On the other hand, in the case of a narrow pitch, it is considered that the possibility of erroneous determination as described above increases. In such a case, occurrence of erroneous determination is suppressed by determining whether or not there is an abnormality in both the mounting area 40 and the peripheral area 50.

本実施形態においては、搭載領域40と周辺搭載領域40Eとの間隔(周辺搭載領域40Eとその周辺搭載領域40Eに隣接する周辺搭載領域40Eとの間隔)に関する情報(狭ピッチであるか否かに関する情報)は、例えば設計値情報のような既知情報である。検査処理部32は、その既知情報に基づいて、搭載領域40及び周辺領域50の両方の異常の有無を判定するか、又は搭載領域40の異常の有無を判定して周辺領域50の異常の有無は判定しないか、を選択する。   In the present embodiment, information (related to whether or not the pitch is narrow) between the mounting area 40 and the peripheral mounting area 40E (interval between the peripheral mounting area 40E and the peripheral mounting area 40E adjacent to the peripheral mounting area 40E). Information) is known information such as design value information. Based on the known information, the inspection processing unit 32 determines whether there is an abnormality in both the mounting area 40 and the peripheral area 50, or determines whether there is an abnormality in the mounting area 40 and whether there is an abnormality in the peripheral area 50. Select whether or not to judge.

ステップSB5において、搭載領域40及び周辺領域50の両方の異常の有無を判定すると選択された場合(ステップSB5:Yes)、検査処理部32は、搭載前の周辺領域50の画像データと、搭載後の周辺領域50の画像データとの撮像素子の画素ごとの輝度値の差分値を算出する(ステップSB6)。すなわち、搭載前画像データDAaの周辺領域50と搭載後画像データDAbの周辺領域50との撮像素子の画素ごとの輝度値の差分値の合計値が算出される。なお、検査処理部32は、画素ごとの輝度値の差分値の合計値を算出するかわりに、画素ごとの輝度値を二乗するなどの強調処理を行った後、その強調処理後の値の差分値の合計値を算出してもよい。これにより、差分値が強調される。差分値の合計値が算出された後、その差分値の合計値と、閾値R50とが比較される。   If it is selected in step SB5 that the presence / absence of both the mounting area 40 and the peripheral area 50 is determined to be abnormal (step SB5: Yes), the inspection processing unit 32 displays the image data of the peripheral area 50 before mounting and the post-mounting. The difference value of the luminance value for each pixel of the image sensor from the image data of the peripheral region 50 is calculated (step SB6). That is, the total value of the difference values of the luminance values for each pixel of the image sensor between the peripheral area 50 of the pre-mounting image data DAa and the peripheral area 50 of the post-mounting image data DAb is calculated. Note that the inspection processing unit 32 performs enhancement processing such as squaring the luminance value for each pixel instead of calculating the total value of the luminance value difference for each pixel, and then the difference between the values after the enhancement processing. A total value may be calculated. Thereby, the difference value is emphasized. After the sum of the difference values is calculated, the sum of the difference values is compared with the threshold value R50.

検査処理部32は、周辺領域50における差分値の合計値と閾値R50とを比較し、その比較の結果に基づいて、周辺領域50の異常の有無を判定する(ステップSB7)。上述の実施形態と同様、周辺領域50における差分値の合計値が閾値R50よりも小さい場合、周辺領域50には異常が生じていないと判定され、周辺領域50における差分値の合計値が閾値R50よりも大きい場合、周辺領域50には異常が生じていると判定される。   The inspection processing unit 32 compares the total value of the difference values in the peripheral region 50 with the threshold value R50, and determines whether there is an abnormality in the peripheral region 50 based on the comparison result (step SB7). Similar to the above-described embodiment, when the total difference value in the peripheral region 50 is smaller than the threshold value R50, it is determined that no abnormality has occurred in the peripheral region 50, and the total difference value in the peripheral region 50 is the threshold value R50. Is larger than that, it is determined that an abnormality has occurred in the peripheral region 50.

ステップSB7において、周辺領域50における差分値の合計値が閾値R50よりも大きい(周辺領域50には異常が生じている)と判定された場合(ステップSB7:Yes)、エラー処理が実行される(ステップSB8)。エラー処理は、周辺領域50に異常が生じている旨の情報をメイン制御装置26に伝達する処理、及び表示装置や報知装置を使って周辺領域50に異常が生じている旨を作業者に伝達する処理を含む。表示装置は、異常が生じている旨の情報を画面表示により伝達可能であり、報知装置は、異常が生じている旨の情報を音や光を使って伝達可能である。メイン制御装置26は、検査処理部32から周辺領域50に異常が生じている旨の情報を受信した場合、電子部品18の搭載動作を中止する。   If it is determined in step SB7 that the total difference value in the peripheral region 50 is greater than the threshold value R50 (abnormality has occurred in the peripheral region 50) (step SB7: Yes), error processing is executed (step SB7: Yes). Step SB8). In the error processing, information indicating that an abnormality has occurred in the peripheral area 50 is transmitted to the main control device 26, and that an abnormality has occurred in the peripheral area 50 using a display device or a notification device is transmitted to the operator. Processing to include. The display device can transmit information indicating that an abnormality has occurred on a screen display, and the notification device can transmit information indicating that an abnormality has occurred using sound or light. When receiving information indicating that an abnormality has occurred in the peripheral region 50 from the inspection processing unit 32, the main control device 26 stops the mounting operation of the electronic component 18.

ステップSB5において、搭載領域40の異常の有無を判定して周辺領域50の異常の有無は判定しないと選択された場合(ステップSB5:No)、又は、ステップSB7において、周辺領域50における差分値の合計値が閾値R50よりも小さい(周辺領域50には異常が生じていない)と判定された場合(ステップSB7:No)、検査処理部32は、搭載領域40における差分値の合計値と閾値R40とを比較し、その比較の結果に基づいて、搭載領域40の異常の有無を判定する(ステップSB9)。上述の実施形態と同様、搭載領域40における差分値の合計値が閾値R40よりも大きい場合(ステップSB9:Yes)、搭載領域40には異常が生じていない(搭載領域40に対する電子部品18の搭載状態は正常である)と判定される(ステップSB10)。一方、搭載領域40における差分値の合計値が閾値R40よりも小さい場合(ステップSB9:No)、搭載領域40には異常が生じている(搭載領域40に対する電子部品18の搭載状態は異常である)と判定される(ステップSB11)。搭載領域40に異常が生じていると判定された場合、搭載領域40に異常が生じている旨の情報をメイン制御装置26に伝達する処理、及び表示装置や報知装置を使って搭載領域40に異常が生じている旨を作業者に伝達する処理が行われてもよい。メイン制御装置26は、検査処理部32から搭載領域40に異常が生じている旨の情報を受信した場合、電子部品18の搭載動作を中止する。   In step SB5, when it is selected that the presence / absence of abnormality in the mounting area 40 is determined and the presence / absence of abnormality in the peripheral area 50 is not determined (step SB5: No), or the difference value in the peripheral area 50 is determined in step SB7. When it is determined that the total value is smaller than the threshold value R50 (no abnormality has occurred in the peripheral region 50) (step SB7: No), the inspection processing unit 32 determines the total value of the difference values in the mounting region 40 and the threshold value R40. And whether or not there is an abnormality in the mounting area 40 is determined based on the comparison result (step SB9). Similar to the above-described embodiment, when the total difference value in the mounting area 40 is larger than the threshold value R40 (step SB9: Yes), no abnormality has occurred in the mounting area 40 (the mounting of the electronic component 18 in the mounting area 40). It is determined that the state is normal) (step SB10). On the other hand, when the total difference value in the mounting area 40 is smaller than the threshold value R40 (step SB9: No), an abnormality has occurred in the mounting area 40 (the mounting state of the electronic component 18 in the mounting area 40 is abnormal). ) Is determined (step SB11). When it is determined that an abnormality has occurred in the mounting area 40, a process for transmitting information indicating that an abnormality has occurred in the mounting area 40 to the main control device 26, and a display device or a notification device is used to enter the mounting area 40. A process of notifying the operator that an abnormality has occurred may be performed. When receiving information indicating that an abnormality has occurred in the mounting area 40 from the inspection processing unit 32, the main control device 26 stops the mounting operation of the electronic component 18.

以上説明したように、本実施形態においては、隣接する搭載領域40の間隔(ピッチ)に関する情報に基づいて、周辺領域50の異常の有無を判定する処理を行うか否かが選択される。隣接する搭載領域40の間隔が小さい場合、搭載領域40及び周辺領域50の両方の異常の有無を判定することで、誤判定(誤検査)の発生が抑制される。隣接する搭載領域40の間隔が大きい場合、周辺領域50の異常の有無を判定せず、搭載領域40の異常の有無のみを判定することで、処理時間(演算時間)を短縮することができる。   As described above, in the present embodiment, whether or not to perform the process of determining whether there is an abnormality in the peripheral region 50 is selected based on the information regarding the interval (pitch) between the adjacent mounting regions 40. When the interval between the adjacent mounting areas 40 is small, the occurrence of erroneous determination (incorrect inspection) is suppressed by determining whether there is an abnormality in both the mounting area 40 and the peripheral area 50. When the interval between the adjacent mounting areas 40 is large, the processing time (calculation time) can be shortened by determining only whether there is an abnormality in the mounting area 40 without determining whether there is an abnormality in the peripheral area 50.

上述の実施形態においては、ステップSB7において、周辺領域50における輝度値の差分値と、予め定められている閾値R50とを比較することとしたが、ステップSB6で算出された差分値に関する情報に基づいて、閾値R50が更新されてもよい。すなわち、第1の基板3について、周辺領域50に異常が生じていない状況において撮像装置14により検出された差分値(複数の差分値の合計値)を、次の第2の基板3の周辺領域50の異常の有無を判定するときの閾値として使用してもよい。また、周辺領域50に異常が生じていない状況において撮像装置14により検出された差分値(複数の差分値の合計値)を複数蓄積して、N数の差分値が得られたときに標準偏差を求め、その標準偏差の値を、周辺領域50の異常の有無を判定するときの閾値として使用してもよい。   In the above-described embodiment, the difference value of the brightness value in the peripheral region 50 is compared with the predetermined threshold value R50 in step SB7. However, based on the information regarding the difference value calculated in step SB6. Thus, the threshold value R50 may be updated. That is, for the first substrate 3, the difference value (total value of a plurality of difference values) detected by the imaging device 14 in a situation in which no abnormality has occurred in the peripheral region 50 is used as the peripheral region of the next second substrate 3. You may use as a threshold value when determining the presence or absence of 50 abnormalities. In addition, when a plurality of difference values (total values of a plurality of difference values) detected by the imaging device 14 in a situation where no abnormality has occurred in the peripheral region 50 are accumulated, the standard deviation is obtained when N number of difference values are obtained. And the value of the standard deviation may be used as a threshold when determining whether there is an abnormality in the peripheral region 50.

同様に、上述の実施形態においては、ステップSB9において、搭載領域40における輝度値の差分値と、予め定められている閾値R40とを比較することとしたが、ステップSB4で算出された差分値に関する情報に基づいて、閾値R40が更新されてもよい。すなわち、第1の基板3について、搭載領域40に異常が生じていない状況において撮像装置14により検出された差分値(複数の差分値の合計値)を、次の第2の基板3の搭載領域40の異常の有無を判定するときの閾値として使用してもよい。また、搭載領域40に異常が生じていない状況において撮像装置14により検出された差分値(複数の差分値の合計値)を複数蓄積して、N数の差分値が得られたときに標準偏差を求め、その標準偏差の値を、搭載領域40の異常の有無を判定するときの閾値として使用してもよい。   Similarly, in the above-described embodiment, the difference value of the luminance value in the mounting area 40 is compared with the predetermined threshold value R40 in step SB9, but the difference value calculated in step SB4 is related. The threshold value R40 may be updated based on the information. That is, with respect to the first substrate 3, the difference value (total value of a plurality of difference values) detected by the imaging device 14 in a state where no abnormality has occurred in the mounting region 40 is used as the next second substrate 3 mounting region. You may use as a threshold value when determining the presence or absence of 40 abnormalities. In addition, when a plurality of difference values (total values of a plurality of difference values) detected by the imaging device 14 in a situation where no abnormality has occurred in the mounting area 40 and N number of difference values are obtained, the standard deviation is obtained. And the value of the standard deviation may be used as a threshold when determining whether or not there is an abnormality in the mounting area 40.

<第3実施形態>
第3実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
<Third Embodiment>
A third embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

図17は、本実施形態に係る搭載前画像データDAaの一例を示す図である。図18は、本実施形態に係る搭載後画像データDAbの一例を示す図である。図17は、図8の変形例であり、搭載前画像データDAaがノズル10の画像を含む例である。図18は、図9の変形例であり、搭載後画像データDAbがノズル10の画像を含む例である。   FIG. 17 is a diagram illustrating an example of pre-mounting image data DAa according to the present embodiment. FIG. 18 is a diagram illustrating an example of post-mounting image data DAb according to the present embodiment. FIG. 17 is a modification of FIG. 8, in which the pre-mounting image data DAa includes an image of the nozzle 10. FIG. 18 is a modification of FIG. 9, in which the post-mounting image data DAb includes an image of the nozzle 10.

搭載前画像データDAaは、ノズル10により電子部品18が基板3に搭載される直前に取得される。搭載後画像データDAbは、ノズル10により電子部品18が基板3に搭載された直後に取得される。例えば、搭載動作においてノズル10が高速で移動した場合、図17に示すように、搭載前画像データDAaの取得において、ノズル10が撮像装置14に撮像される可能性がある。図18に示すように、搭載後画像データDAbの取得において、ノズル10が撮像装置14に撮像される可能性がある。図17は、電子部品18を基板3に搭載するために高速で下降するノズル10が、搭載前画像データDAaに含まれた例を示す。図18は、基板3に電子部品18を搭載した後、上昇するノズル10が、搭載後画像データDAbに含まれた例を示す。   The pre-mounting image data DAa is acquired immediately before the electronic component 18 is mounted on the substrate 3 by the nozzle 10. The post-mounting image data DAb is acquired immediately after the electronic component 18 is mounted on the substrate 3 by the nozzle 10. For example, when the nozzle 10 moves at a high speed during the mounting operation, the nozzle 10 may be imaged by the imaging device 14 in the acquisition of the pre-mounting image data DAa as shown in FIG. As illustrated in FIG. 18, the nozzle 10 may be imaged by the imaging device 14 in acquiring the post-mounting image data DAb. FIG. 17 shows an example in which the nozzle 10 that descends at a high speed in order to mount the electronic component 18 on the substrate 3 is included in the pre-mounting image data DAa. FIG. 18 shows an example in which the nozzle 10 that rises after the electronic component 18 is mounted on the substrate 3 is included in the post-mounting image data DAb.

搭載前画像データDAaに含まれるノズル10の画像、及び搭載後画像データDAbに含まれるノズル10の画像は、ノイズ成分として機能する可能性が高い。そのため、ノズル10が含まれる搭載前画像データDAa及び搭載後画像データDAbを使って相関値を算出した場合、搭載領域40及び周辺領域50の少なくとも一方の異常の有無を精確に判定できなくなる可能性がある。   The image of the nozzle 10 included in the pre-mounting image data DAa and the image of the nozzle 10 included in the post-mounting image data DAb are highly likely to function as noise components. Therefore, when the correlation value is calculated using the pre-mounting image data DAa and the post-mounting image data DAb including the nozzle 10, it may not be possible to accurately determine the presence / absence of at least one of the mounting region 40 and the peripheral region 50. There is.

本実施形態においては、ノズル10が搭載前画像データDAa及び搭載後画像データDAbに含まれる場合、図19に示すテンプレート画像データのように、検査処理部32は、ノズル影響範囲42を除去する(マスクする)。ノズル影響範囲42は、搭載前画像データDAa及び搭載後画像データDAbにおいて、ノズル10が配置される可能性が高い範囲(写り込んでしまう可能性が高い範囲)である。ノズル影響範囲42は、ノズル10の移動条件(移動速度及び移動経路)又は実験などに基づいて事前に取得することができる既知情報である。   In the present embodiment, when the nozzle 10 is included in the pre-mounting image data DAa and the post-mounting image data DAb, the inspection processing unit 32 removes the nozzle influence range 42 as in the template image data shown in FIG. Mask). The nozzle influence range 42 is a range in which there is a high possibility that the nozzle 10 is disposed in the pre-mounting image data DAa and the post-mounting image data DAb (a range in which there is a high possibility of being captured). The nozzle influence range 42 is known information that can be acquired in advance based on the movement conditions (movement speed and movement path) of the nozzle 10 or experiments.

検査処理部32は、ノズル影響範囲42をマスク領域に設定し、そのノズル影響範囲42を除去した後、そのノズル影響範囲42が除去された搭載前画像データDAaと搭載後画像データDAbとを、テンプレートマッチング処理により位置合わせする。検査処理部32は、搭載前画像データDAaをテンプレートとして、搭載前画像データDAaと搭載後画像データDAbとの相関値を算出し、相関値が最も高くなるように搭載前画像データDAaと搭載後画像データDAbとの位置合わせをする。すなわち、検査処理部32は、搭載前画像データDAa及び搭載後画像データDAbのそれぞれからノズル10を含む一部のデータ(ノズル影響範囲42に含まれるデータ)を除去し、その一部のデータを除去した後、搭載前画像データDAaと搭載後画像データDAbとを比較して相関値を算出する。検査処理部32は、相関値が最も高い搭載前画像データDAa及び搭載後画像データDAbの位置を、それら搭載前画像データDAaと搭載後画像データDAbとが一致する位置と判断する。   The inspection processing unit 32 sets the nozzle influence range 42 as a mask area, removes the nozzle influence range 42, and then sets the pre-mounting image data DAa and the post-mounting image data DAb from which the nozzle influence range 42 has been removed. Align by template matching process. The inspection processing unit 32 calculates a correlation value between the pre-mounting image data DAa and the post-mounting image data DAb using the pre-mounting image data DAa as a template, and the pre-mounting image data DAa and the post-mounting so that the correlation value becomes the highest. Align with the image data DAb. That is, the inspection processing unit 32 removes a part of the data including the nozzle 10 (data included in the nozzle influence range 42) from each of the pre-mounting image data DAa and the post-mounting image data DAb, and converts the partial data. After the removal, the correlation value is calculated by comparing the pre-mounting image data DAa and the post-mounting image data DAb. The inspection processing unit 32 determines the position of the pre-mounting image data DAa and the post-mounting image data DAb having the highest correlation value as the position where the pre-mounting image data DAa and the post-mounting image data DAb match.

位置合わせが行われた後、上述の実施形態に従って、画素pxそれぞれにおける搭載前画像データDAaの輝度値maと、搭載後画像データDAbの輝度値mbとの差分値Δmが算出され、差分値Δmと閾値Rとが比較され、その比較した結果に基づいて、搭載領域40及び周辺領域50それぞれの異常の有無が判定される。   After the alignment, according to the above-described embodiment, the difference value Δm between the luminance value ma of the pre-mounting image data DAa and the luminance value mb of the post-mounting image data DAb in each pixel px is calculated, and the difference value Δm And the threshold value R are compared, and the presence or absence of abnormality in each of the mounting area 40 and the peripheral area 50 is determined based on the comparison result.

以上説明したように、本実施形態によれば、ノズル影響範囲42が相関値の演算に含まれないように、ノズル10を含む一部のデータの除去処理(マスク処理)を行うようにしたので、搭載領域40及び周辺領域50の少なくとも一方の異常の有無を精確に判定することができる。   As described above, according to the present embodiment, part of the data including the nozzle 10 is removed (mask process) so that the nozzle influence range 42 is not included in the correlation value calculation. Thus, it is possible to accurately determine whether or not there is an abnormality in at least one of the mounting area 40 and the peripheral area 50.

<第4実施形態>
第4実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
<Fourth embodiment>
A fourth embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

上述の実施形態と同様、本実施形態においても、搭載前画像データDAa及び搭載後画像データDAbのそれぞれは、撮像素子の複数の画素ごとに取得される。搭載前画像データDAaの取得時及び搭載後画像データDAbの取得時のそれぞれにおいて、基板3の同一位置を撮像した画素(同一位置からの光が入射した画素)ごとに輝度値が検出される。また、それら複数の画素ごとに輝度値の差分値が算出される。   Similar to the above-described embodiment, also in this embodiment, the pre-mounting image data DAa and the post-mounting image data DAb are acquired for each of a plurality of pixels of the image sensor. At the time of acquiring the pre-mounting image data DAa and at the time of acquiring the post-mounting image data DAb, a luminance value is detected for each pixel (a pixel on which light from the same position is incident) that images the same position of the substrate 3. In addition, a difference value of luminance values is calculated for each of the plurality of pixels.

上述の実施形態と同様、検査処理部32は、搭載前画像データDAaの中心位置17と搭載後画像データDAbの中心位置17とが一致するように位置合わせした後、搭載前画像データDAaの画素pxにおける輝度値maと、その搭載前画像データDAaの画素pxに一致する搭載後画像データDAbの画素pxにおける輝度値mbとの差分値Δmを算出する。   Similar to the above-described embodiment, the inspection processing unit 32 aligns the center position 17 of the pre-mounting image data DAa and the center position 17 of the post-mounting image data DAb, and then aligns the pixels of the pre-mounting image data DAa. A difference value Δm between the luminance value ma at px and the luminance value mb at the pixel px of the post-mounting image data DAb that matches the pixel px of the pre-mounting image data DAa is calculated.

検査処理部32は、全ての画素px(px1、px2、…、pxi、…、pxn)それぞれにおける搭載前画像データDAaの輝度値ma(ma1、ma2、…、mai、…、man)と、搭載後画像データDAbの輝度値mb(mb1、mb2、…、mbi、…、mbn)との差分値Δm(Δm1、Δm2、…、Δmi、…、Δmn)を算出する。差分値Δmが算出された後、差分値Δmと予め定められた閾値Rとが比較され、その比較した結果に基づいて、搭載領域40及び周辺領域50それぞれの異常の有無が判定される。   The inspection processing unit 32 includes the luminance value ma (ma1, ma2,..., Mai,..., Man) of the pre-mounting image data DAa in each of the pixels px (px1, px2,..., Pxi). Difference values Δm (Δm1, Δm2,..., Δmi,..., Δmn) from the luminance values mb (mb1, mb2,..., Mbn) of the post-image data DAb are calculated. After the difference value Δm is calculated, the difference value Δm is compared with a predetermined threshold value R, and the presence / absence of abnormality in each of the mounting area 40 and the peripheral area 50 is determined based on the comparison result.

搭載前画像データDAaと搭載後画像データDAbとを比較するときの位置合わせの精度が不十分である場合、極小チップ部品のような搭載領域40が小さい電子部品18についての差分値Δmに基づく搭載領域40及び周辺領域50の異常の有無の判定の精度は、搭載領域40が大きい電子部品18についての差分値Δmに基づく搭載領域40及び周辺領域50の異常の有無の判定の精度に比べて、低下する可能性が高い。   When the positioning accuracy when comparing the pre-mounting image data DAa and the post-mounting image data DAb is insufficient, mounting based on the difference value Δm for the electronic component 18 having a small mounting area 40 such as a very small chip component. The accuracy of determining whether there is an abnormality in the region 40 and the peripheral region 50 is higher than the accuracy of determining whether there is an abnormality in the mounting region 40 and the peripheral region 50 based on the difference value Δm for the electronic component 18 having a large mounting region 40. There is a high possibility of decline.

上述のように、搭載前画像データDAaと搭載後画像データDAbとの比較において、搭載前画像データDAaの中心位置17と搭載後画像データDAbの中心位置17との位置合わせの精度が十分である場合、例えば、搭載前画像データDAaについての画素px1における輝度値ma1と、搭載後画像データDAbについての画素px1における輝度値mb1との差分値が算出される。すなわち、搭載前画像データDAaと搭載後画像データDAbとにおいて、同一の画素px1の輝度値(ma1、mb1)の差分値が算出される。   As described above, in the comparison between the pre-mounting image data DAa and the post-mounting image data DAb, the alignment accuracy between the center position 17 of the pre-mounting image data DAa and the center position 17 of the post-mounting image data DAb is sufficient. In this case, for example, a difference value between the luminance value ma1 at the pixel px1 for the pre-mounting image data DAa and the luminance value mb1 at the pixel px1 for the post-mounting image data DAb is calculated. That is, the difference value between the luminance values (ma1, mb1) of the same pixel px1 is calculated between the pre-mounting image data DAa and the post-mounting image data DAb.

搭載前画像データDAaと搭載後画像データDAbとの比較において、搭載前画像データDAaの中心位置17と搭載後画像データDAbの中心位置17との位置合わせの精度が不十分である場合、画素px1における輝度値ma1と輝度値mb1との差分値が算出されず、例えば、搭載前画像データDAaについての画素px1における輝度値ma1と、搭載後画像データDAbについての画素px2における輝度値mb2との差分値が算出される可能性がある。すなわち、搭載前画像データDAaと搭載後画像データDAbとにおいて、異なる画素(px1、px2)の輝度値(ma1、mb2)の差分値が算出される。   When the pre-mounting image data DAa and the post-mounting image data DAb are compared, if the alignment accuracy between the center position 17 of the pre-mounting image data DAa and the center position 17 of the post-mounting image data DAb is insufficient, the pixel px1 The difference value between the luminance value ma1 and the luminance value mb1 is not calculated. For example, the difference between the luminance value ma1 at the pixel px1 for the pre-mounting image data DAa and the luminance value mb2 at the pixel px2 for the post-mounting image data DAb. A value may be calculated. That is, a difference value between luminance values (ma1, mb2) of different pixels (px1, px2) is calculated between the pre-mounting image data DAa and the post-mounting image data DAb.

搭載領域40が小さい電子部品18の画像データを取得するために使用される画素pxの数は、搭載領域40が大きい電子部品18の画像データを取得するために使用される画素pxの数よりも少ない。搭載前画像データDAaと搭載後画像データDAbとを比較するときの位置合わせが十分に行われず、搭載前画像データDAaと搭載後画素データDAbとを比較するときに、異なる画素の輝度値の差分値が算出された場合、搭載領域40が小さい電子部品18についての搭載領域40及び周辺領域50の異常の有無の判定の精度は、搭載領域40が大きい電子部品18についての搭載領域40及び周辺領域50の異常の有無の判定の精度よりも低い可能性がある。   The number of pixels px used to acquire the image data of the electronic component 18 with the small mounting area 40 is larger than the number of pixels px used to acquire the image data of the electronic component 18 with the large mounting area 40. Few. When the pre-mounting image data DAa and the post-mounting image data DAb are compared, the alignment is not sufficiently performed. When the pre-mounting image data DAa and the post-mounting pixel data DAb are compared, the difference between the luminance values of different pixels. When the value is calculated, the accuracy of determining whether there is an abnormality in the mounting area 40 and the peripheral area 50 for the electronic component 18 having a small mounting area 40 is the accuracy of the mounting area 40 and the peripheral area for the electronic component 18 having a large mounting area 40. There is a possibility that it is lower than the accuracy of determination of the presence or absence of 50 abnormalities.

すなわち、搭載領域40が小さい電子部品18について、搭載前画像データDAaの画素pxと搭載後画像データDAbの画素pxが1つの画素分だけずれたとしても、算出される差分値Δmの変動量は大きい。つまり、搭載領域40が小さい電子部品18は、搭載領域40が大きい電子部品18に比べて、安定した差分値(評価値)を得ることが困難となる可能性が高い。   That is, for the electronic component 18 having a small mounting area 40, even if the pixel px of the pre-mounting image data DAa and the pixel px of the post-mounting image data DAb are shifted by one pixel, the calculated variation amount of the difference value Δm is large. In other words, the electronic component 18 having a small mounting area 40 is more likely to be difficult to obtain a stable difference value (evaluation value) than the electronic component 18 having a large mounting area 40.

本実施形態においては、図20に示すように、検査処理部32は、搭載前画像データDAaと搭載後画像データDAbとを比較するステップ(図7のステップSA6参照)において、搭載領域40を含む第1ウィンドウ(演算処理対象領域)において、テンプレートマッチング処理により搭載前画像データDAaと搭載後画像データDAbとを位置合わせする工程(ステップSC1)と、ステップSC1の後、搭載領域40を含む第2ウィンドウ(演算処理対象領域)において、テンプレートマッチング処理により搭載前画像データDAaと搭載後画像データDAbとを位置合わせする工程(ステップSC2)と、を実行する。   In the present embodiment, as shown in FIG. 20, the inspection processing unit 32 includes a mounting area 40 in the step of comparing the pre-mounting image data DAa and the post-mounting image data DAb (see step SA6 in FIG. 7). A step (step SC1) of aligning the pre-mounting image data DAa and the post-mounting image data DAb by template matching processing in the first window (arithmetic processing target region), and a second including the mounting region 40 after step SC1. A step (step SC2) of aligning the pre-mounting image data DAa and the post-mounting image data DAb by template matching processing in the window (arithmetic processing target region) is executed.

第1ウィンドウは、搭載領域40(電子部品18)を含む大きい領域である。第2ウィンドウは、搭載領域40を含み、第1ウィンドウよりも小さい領域である。第2ウィンドウの画素数は、第1ウィンドウの画素数よりも少ない。ステップSC1において、検査処理部32は、第1ウィンドウにおいて、搭載前画像データDAaをテンプレートとして、搭載前画像データDAaと搭載後画像データDAbとの相関値を算出し、相関値が最も高くなるように搭載前画像データDAaと搭載後画像データDAbとの位置合わせをする。検査処理部32は、相関値が最も高い搭載前画像データDAa及び搭載後画像データDAbの位置を、それら搭載前画像データDAaと搭載後画像データDAbとが一致する位置と判断する。   The first window is a large area including the mounting area 40 (electronic component 18). The second window includes a mounting area 40 and is smaller than the first window. The number of pixels in the second window is smaller than the number of pixels in the first window. In step SC1, the inspection processing unit 32 calculates a correlation value between the pre-mounting image data DAa and the post-mounting image data DAb using the pre-mounting image data DAa as a template in the first window so that the correlation value becomes the highest. The pre-mounting image data DAa and post-mounting image data DAb are aligned. The inspection processing unit 32 determines the position of the pre-mounting image data DAa and the post-mounting image data DAb having the highest correlation value as the position where the pre-mounting image data DAa and the post-mounting image data DAb match.

ステップSC1の後、検査処理部32は、第1ウィンドウよりも小さい第2ウィンドウにおいて、搭載前画像データDAaをテンプレートとして、搭載前画像データDAaと搭載後画像データDAbとの相関値を算出し、相関値が最も高くなるように搭載前画像データDAaと搭載後画像データDAbとの位置合わせをする。検査処理部32は、相関値が最も高い搭載前画像データDAa及び搭載後画像データDAbの位置を、それら搭載前画像データDAaと搭載後画像データDAbとが一致する位置と判断する。   After step SC1, the inspection processing unit 32 calculates a correlation value between the pre-mounting image data DAa and the post-mounting image data DAb using the pre-mounting image data DAa as a template in a second window smaller than the first window, The pre-mounting image data DAa and the post-mounting image data DAb are aligned so that the correlation value becomes the highest. The inspection processing unit 32 determines the position of the pre-mounting image data DAa and the post-mounting image data DAb having the highest correlation value as the position where the pre-mounting image data DAa and the post-mounting image data DAb match.

2段階のテンプレートマッチング処理により搭載前画像データDAaと搭載後画像データDAbとの位置合わせが行われた後、上述の実施形態に従って、画素pxそれぞれにおける搭載前画像データDAaの輝度値maと、搭載後画像データDAbの輝度値mbとの差分値Δmが算出され、差分値Δmと閾値Rとが比較され、その比較した結果に基づいて、搭載領域40及び周辺領域50それぞれの異常の有無が判定される。   After the positioning of the pre-mounting image data DAa and the post-mounting image data DAb by the two-stage template matching processing, the luminance value ma of the pre-mounting image data DAa in each pixel px and the mounting according to the above-described embodiment. A difference value Δm from the luminance value mb of the post-image data DAb is calculated, the difference value Δm and the threshold value R are compared, and the presence / absence of abnormality in each of the mounting area 40 and the peripheral area 50 is determined based on the comparison result. Is done.

以上説明したように、本実施形態によれば、異なるウィンドウ(演算処理対象領域)に基づいて2段階でマッチング処理を行うことにより、搭載領域40が小さい電子部品18についての搭載領域40及び周辺領域50の異常の有無の判定の精度の低下が抑制される。   As described above, according to the present embodiment, the mounting area 40 and the peripheral area for the electronic component 18 having a small mounting area 40 are obtained by performing matching processing in two stages based on different windows (arithmetic processing target areas). A decrease in accuracy in determining whether there are 50 abnormalities is suppressed.

<第5実施形態>
第5実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
<Fifth Embodiment>
A fifth embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

上述の実施形態においては、テンプレートマッチング処理が、搭載前画像データDAaと搭載後画像データDAbとの位置合わせに使用される例について説明した。本実施形態においては、テンプレートマッチング処理により算出された搭載前画像データDAaと搭載後画像データDAbとの相関値に基づいて、搭載領域40に対する電子部品18の搭載状態の異常の有無を判定する例について説明する。   In the above-described embodiment, the example in which the template matching process is used for positioning the pre-mounting image data DAa and the post-mounting image data DAb has been described. In the present embodiment, an example of determining whether there is an abnormality in the mounting state of the electronic component 18 in the mounting area 40 based on the correlation value between the pre-mounting image data DAa and the post-mounting image data DAb calculated by the template matching process. Will be described.

例えば、図7を参照して説明したように、搭載前画像データDAaが取得され(ステップSA1)、搭載前画像データDAaが記憶され(ステップSA2)、電子部品18が基板3に搭載され(ステップSA3)、搭載後画像データDAbが取得され(ステップSA4)、搭載後画像データDAbが記憶される(ステップSA5)。ステップSA5の後、搭載前画像データDAaと搭載後画像データDAbとが比較される(ステップSA6)。   For example, as described with reference to FIG. 7, the pre-mounting image data DAa is acquired (step SA1), the pre-mounting image data DAa is stored (step SA2), and the electronic component 18 is mounted on the substrate 3 (step SA1). SA3), post-mounting image data DAb is acquired (step SA4), and post-mounting image data DAb is stored (step SA5). After step SA5, the pre-mounting image data DAa and the post-mounting image data DAb are compared (step SA6).

図21は、本実施形態に係る搭載前画像データDAaと搭載後画像データDAbとを比較するステップの一例を示すフローチャートである。図21に示す処理は、図7のステップSA6のサブルーチンに相当する。   FIG. 21 is a flowchart showing an example of steps for comparing the pre-mounting image data DAa and the post-mounting image data DAb according to the present embodiment. The process shown in FIG. 21 corresponds to the subroutine of step SA6 in FIG.

図21に示すように、搭載前画像データDAaと搭載後画像データDAbとを比較するステップは、テンプレートマッチング処理により搭載前画像データDAaと搭載後画像データDAbとの相関値を算出するステップ(ステップSD1)と、ステップSD1において算出された相関値が第2閾値以上のとき、搭載領域40に対する電子部品18の搭載状態は異常であると判定するステップ(ステップSD3)と、ステップSD1において算出された相関値が第1閾値以下のとき、搭載領域40に対する電子部品18の搭載状態は正常であると判定するステップ(ステップSD5)と、を含む。   As shown in FIG. 21, the step of comparing the pre-mounting image data DAa and the post-mounting image data DAb is a step of calculating a correlation value between the pre-mounting image data DAa and the post-mounting image data DAb by the template matching process (step). SD1), and when the correlation value calculated in step SD1 is greater than or equal to the second threshold value, the step of determining that the mounting state of the electronic component 18 in the mounting region 40 is abnormal (step SD3) and the step SD1 A step of determining that the mounting state of the electronic component 18 in the mounting area 40 is normal when the correlation value is equal to or less than the first threshold (step SD5).

搭載前画像データDAaと搭載後画像データDAbとのテンプレートマッチング処理が行われ、相関値が算出される(ステップSD1)。例えば、検査処理部32は、搭載前画像データDAaをテンプレートとして、搭載前画像データDAaと搭載後画像データDAbとの相関値を算出し、相関値が最も高くなるように搭載前画像データDAaと搭載後画像データDAbとの位置合わせをする。検査処理部32は、相関値が最も高い搭載前画像データDAa及び搭載後画像データDAbの位置を、それら搭載前画像データDAaと搭載後画像データDAbとが一致する位置と判断する。   Template matching processing is performed on the pre-mounting image data DAa and the post-mounting image data DAb, and a correlation value is calculated (step SD1). For example, the inspection processing unit 32 calculates the correlation value between the pre-mounting image data DAa and the post-mounting image data DAb using the pre-mounting image data DAa as a template, and the pre-mounting image data DAa so that the correlation value becomes the highest. Alignment with post-mounting image data DAb is performed. The inspection processing unit 32 determines the position of the pre-mounting image data DAa and the post-mounting image data DAb having the highest correlation value as the position where the pre-mounting image data DAa and the post-mounting image data DAb match.

相関値が高い場合、搭載前画像データDAaと搭載後画像データDAbとは一致する可能性が高い。相関値が低い場合、搭載前画像データDAaと搭載後画像データDAbとは一致しない可能性が高い。搭載領域40に電子部品18が搭載されない場合、搭載前画像データDAaと搭載後画像データDAbとは一致するため、相関値は高い。搭載領域40に電子部品18が搭載された場合、搭載前画像データDAaと搭載後画像データDAbとは一致しないため、相関値は低い。   When the correlation value is high, there is a high possibility that the pre-mounting image data DAa and the post-mounting image data DAb match. When the correlation value is low, there is a high possibility that the pre-mounting image data DAa and the post-mounting image data DAb do not match. When the electronic component 18 is not mounted on the mounting area 40, the correlation value is high because the pre-mounting image data DAa and the post-mounting image data DAb match. When the electronic component 18 is mounted in the mounting area 40, the correlation value is low because the pre-mounting image data DAa and the post-mounting image data DAb do not match.

相関値が算出された後、その相関値は第2閾値以上か否かが判断される(ステップSD2)。ステップSD2において、相関値が第2閾値以上であると判断された場合(Yesの場合)、搭載領域40に対する電子部品18の搭載状態は異常であると判断される(ステップSD3)。   After the correlation value is calculated, it is determined whether or not the correlation value is greater than or equal to a second threshold value (step SD2). If it is determined in step SD2 that the correlation value is greater than or equal to the second threshold value (Yes), it is determined that the mounting state of the electronic component 18 in the mounting area 40 is abnormal (step SD3).

ステップSD2において、相関値が第2閾値よりも小さいと判断された場合(Noの場合)、相関値は第1閾値以下か否かが判断される(ステップSD4)。第2閾値は、第1閾値よりも大きい値である。   When it is determined in step SD2 that the correlation value is smaller than the second threshold value (No), it is determined whether or not the correlation value is equal to or less than the first threshold value (step SD4). The second threshold is a value larger than the first threshold.

ステップSD4において、相関値が第1閾値以下であると判断された場合(Yesの場合)、搭載領域40に対する電子部品18の搭載状態は正常であると判断される(ステップSD5)。   In step SD4, when it is determined that the correlation value is equal to or less than the first threshold value (in the case of Yes), it is determined that the mounting state of the electronic component 18 in the mounting area 40 is normal (step SD5).

ステップSD4において、相関値が第1閾値よりも大きいと判断された場合(Noの場合)、すなわち、ステップSD1で算出された相関値が第1閾値よりも大きく第2閾値よりも小さいと判断された場合、搭載前画像データDAaと搭載後画像データDAbとを比較するステップが終了する。その後、図7に示したステップSA7の処理が実行される。   If it is determined in step SD4 that the correlation value is larger than the first threshold value (in the case of No), that is, it is determined that the correlation value calculated in step SD1 is larger than the first threshold value and smaller than the second threshold value. In this case, the step of comparing the pre-mounting image data DAa and the post-mounting image data DAb is completed. Thereafter, the process of step SA7 shown in FIG. 7 is executed.

上述したように、図7に示したステップSA7の処理は、搭載前画像データDAaと搭載後画像データDAbとの撮像素子の画素pxごとの輝度値maと輝度値mbの差分値Δmを算出するステップと、差分値Δmと予め定められた閾値R40及び閾値R50とを比較するステップと、その比較の結果に基づいて、搭載領域40及び周辺領域50それぞれの異常の有無を判定するステップと、を含む。   As described above, the process of step SA7 shown in FIG. 7 calculates the difference value Δm between the luminance value ma and the luminance value mb for each pixel px of the image sensor between the pre-mounting image data DAa and the post-mounting image data DAb. Comparing the difference value Δm with predetermined threshold values R40 and R50, and determining whether there is an abnormality in each of the mounting region 40 and the peripheral region 50 based on the comparison result. Including.

図22は、第1閾値と、第2閾値と、相関値と、処理の内容との関係を模式的に示す図である。図22に示すように、第2閾値は、第1閾値よりも大きい。搭載前画像データDAaと搭載後画像データDAbとが一致する場合、相関値は高い。搭載前画像データDAaと搭載後画像データDAbとが一致しない場合、相関値は低い。そのため、電子部品18が搭載領域40に搭載されなかった場合、相関値は高くなる。電子部品18が搭載領域40に搭載された場合、相関値は低くなる。したがって、ステップSD2において、相関値が第2閾値以上であると判断された場合、搭載状態は異常である(電子部品18は搭載領域40に搭載されていない)と判断することができる。また、ステップSD4において、相関値が第1閾値以下であると判断された場合、搭載状態は正常である(電子部品18は搭載領域40に搭載されている)と判断することができる。   FIG. 22 is a diagram schematically illustrating a relationship among the first threshold value, the second threshold value, the correlation value, and the content of the process. As shown in FIG. 22, the second threshold value is larger than the first threshold value. When the pre-mounting image data DAa matches the post-mounting image data DAb, the correlation value is high. When the pre-mounting image data DAa and the post-mounting image data DAb do not match, the correlation value is low. Therefore, when the electronic component 18 is not mounted on the mounting area 40, the correlation value becomes high. When the electronic component 18 is mounted on the mounting area 40, the correlation value becomes low. Therefore, when it is determined in step SD2 that the correlation value is equal to or greater than the second threshold value, it can be determined that the mounting state is abnormal (the electronic component 18 is not mounted in the mounting region 40). If it is determined in step SD4 that the correlation value is equal to or less than the first threshold value, it can be determined that the mounting state is normal (the electronic component 18 is mounted in the mounting area 40).

一方、相関値が第1閾値よりも大きく第2閾値よりも小さいと判断された場合、テンプレートマッチング処理の結果である相関値を使って搭載領域40及び周辺領域50それぞれの異常の有無を判定することはできない、と判断される。その場合、上述の実施形態で説明したように、画素pxごとの輝度値maと輝度値mbの差分値Δmが算出され、差分値Δmに基づいて、搭載領域40及び周辺領域50それぞれの異常の有無が判定される。   On the other hand, when it is determined that the correlation value is larger than the first threshold value and smaller than the second threshold value, the presence or absence of abnormality in each of the mounting area 40 and the peripheral area 50 is determined using the correlation value that is the result of the template matching process. It is judged that it cannot be done. In that case, as described in the above-described embodiment, the difference value Δm between the luminance value ma and the luminance value mb for each pixel px is calculated. Based on the difference value Δm, the abnormality of each of the mounting area 40 and the peripheral area 50 is detected. Presence / absence is determined.

以上説明したように、本実施形態によれば、演算に要する時間が短くて済むテンプレートマッチング処理を使って相関値を求め、その相関値が非常に大きい場合(第2閾値以上である場合)、搭載状態は異常であると判断し、その相関値が非常に小さい場合(第1閾値以下である場合)、搭載状態は正常であると判断するようにしたので、搭載状態の異常の有無を短時間で判定することができる。また、相関値が中間値である場合(第1閾値よりも大きく第2閾値よりも小さい場合)、相関値に基づく搭載状態の異常の有無の判定を行わずに、差分値Δmを算出し、その差分値Δmを使って搭載状態の異常の有無を判定するようにしたので、判定を精確に行うことができる。このように、本実施形態によれば、相関値が非常に大きい場合及び小さい場合と、相関値が中間値である場合とで、搭載状態の異常の有無を異なる方法で判定するようにしたので、判定精度の低下を抑制しつつ、判定に要する時間を短くすることができる。   As described above, according to the present embodiment, the correlation value is obtained using the template matching process that requires a short time for the calculation, and the correlation value is very large (when it is equal to or larger than the second threshold), Since it is determined that the mounting state is abnormal and the correlation value is very small (below the first threshold value), the mounting state is determined to be normal. Can be determined by time. Also, when the correlation value is an intermediate value (when larger than the first threshold and smaller than the second threshold), the difference value Δm is calculated without determining whether there is an abnormal mounting state based on the correlation value, Since the difference value Δm is used to determine whether there is an abnormality in the mounting state, the determination can be made accurately. As described above, according to the present embodiment, the presence / absence of an abnormality in the mounting state is determined by different methods depending on whether the correlation value is very large or small and the correlation value is an intermediate value. The time required for determination can be shortened while suppressing a decrease in determination accuracy.

<第6実施形態>
第6実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
<Sixth Embodiment>
A sixth embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

図23は、本実施形態に係る基板3の一例を示す図である。図23に示すように、ライン、図形、マーク、パターン、及び文字が基板3に設けられる場合がある。それらライン、図形、マーク、パターン、及び文字は、一般に、シルク43と呼ばれる。基板3の色と、シルク43の色とは異なる。本実施形態において、基板3(下地)は黒色であり、シルク43は白色である。なお、基板3は、黒色のみならず、例えば緑色又は白色である場合もある。シルク43は、白色のみならず、例えば黄色又は黒色である場合もある。   FIG. 23 is a diagram illustrating an example of the substrate 3 according to the present embodiment. As shown in FIG. 23, a line, a figure, a mark, a pattern, and a character may be provided on the substrate 3 in some cases. These lines, figures, marks, patterns, and characters are generally called silk 43. The color of the substrate 3 and the color of the silk 43 are different. In the present embodiment, the substrate 3 (base) is black, and the silk 43 is white. In addition, the board | substrate 3 may be not only black but green or white, for example. The silk 43 may be not only white but also yellow or black, for example.

例えば、基板3が黒色であり、シルク43が白色である場合、基板3とシルク43とのコントラストが大きくなる可能性がある。その結果、画像データがノイズを含む可能性が高くなる。   For example, when the substrate 3 is black and the silk 43 is white, the contrast between the substrate 3 and the silk 43 may increase. As a result, there is a high possibility that the image data includes noise.

図16を参照して説明したように、検査処理部32は、差分画像データDSのノイズを除去する処理を行う(ステップSB3)。図16を参照して説明したように、電子部品18と基板3との境界部など、基板3(電子部品18)のコントラストが高い部分を撮像素子で撮像した場合、そのコントラストが高い部分についての画像データはノイズ成分を多く含む可能性がある。そのため、検査処理部32は、撮像素子の複数の画素のそれぞれが検出した輝度値を取得し、その複数の画素のそれぞれが検出した輝度値のうち、予め定められた閾値以上の輝度値を検出した画素からのデータを除外して、差分画像データDSを作成する。差分画像データDSの作成は、そのデータを除外した後、搭載前画像データDAaと搭載後画像データDAbとの撮像素子の画素ごとの輝度値の差分値を算出するステップを含む。   As described with reference to FIG. 16, the inspection processing unit 32 performs a process of removing noise from the difference image data DS (step SB3). As described with reference to FIG. 16, when a high-contrast portion of the substrate 3 (electronic component 18), such as a boundary portion between the electronic component 18 and the substrate 3, is imaged by the image sensor, the high-contrast portion Image data may contain a lot of noise components. Therefore, the inspection processing unit 32 acquires the luminance value detected by each of the plurality of pixels of the image sensor, and detects a luminance value equal to or higher than a predetermined threshold among the luminance values detected by each of the plurality of pixels. The difference image data DS is created by excluding data from the pixels that have been processed. The creation of the difference image data DS includes a step of calculating the difference value of the luminance value for each pixel of the image sensor between the pre-mounting image data DAa and the post-mounting image data DAb after removing the data.

シルク43と基板3(下地)との境界部のコントラストは、例えば電子部品18と基板3との境界部のコントラストに比べて大きい。そのため、シルク43と基板3との境界部についての画像データは、非常に高いノイズ成分を含む可能性がある。すなわち、シルク43が存在する場合としない場合とで、発生するノイズレベルが変化する。   The contrast at the boundary between the silk 43 and the substrate 3 (base) is larger than the contrast at the boundary between the electronic component 18 and the substrate 3, for example. Therefore, the image data about the boundary between the silk 43 and the substrate 3 may include a very high noise component. That is, the generated noise level changes depending on whether the silk 43 is present or not.

本実施形態においては、シルク43が存在する場合、検査処理部32は、複数の画素のそれぞれが検出した輝度値のうち、予め定められた閾値以上の輝度値を検出した画素からのデータを除外して、差分画像データDSを作成する。シルク43と基板3との境界部の輝度値に関する閾値は、例えば、電子部品18と基板3との境界部の輝度値に関する閾値よりも大きい。このように、検査処理部32は、シルク43の有無に応じて変化するノイズレベルを考慮して、そのノイズをカットするための閾値を変化させる。   In the present embodiment, when the silk 43 is present, the inspection processing unit 32 excludes data from pixels that have detected a luminance value equal to or higher than a predetermined threshold among the luminance values detected by each of the plurality of pixels. Then, difference image data DS is created. The threshold value regarding the luminance value at the boundary portion between the silk 43 and the substrate 3 is larger than, for example, the threshold value regarding the luminance value at the boundary portion between the electronic component 18 and the substrate 3. In this way, the inspection processing unit 32 changes the threshold for cutting the noise in consideration of the noise level that changes depending on the presence or absence of the silk 43.

例えば、図23に示すように、搭載領域40にシルク43(シルク印刷のハンダ)が存在する場合、検査処理部32は、搭載前画像データDAaに基づいて、搭載領域40におけるシルク43の有無を判定する。検査処理部32は、搭載前画像データDAaの搭載領域40の輝度値を取得し、高い輝度値の画素数の割合が高いと判断した場合、搭載領域40にシルク43が存在すると判定することができる。検査処理部32は、搭載領域40にシルク43が存在すると判断した場合、ノイズをカットするための閾値を大きくする。   For example, as shown in FIG. 23, when the silk 43 (silk printing solder) is present in the mounting area 40, the inspection processing unit 32 determines the presence or absence of the silk 43 in the mounting area 40 based on the pre-mounting image data DAa. judge. When the inspection processing unit 32 acquires the luminance value of the mounting area 40 of the pre-mounting image data DAa and determines that the ratio of the number of pixels having a high luminance value is high, the inspection processing unit 32 determines that the silk 43 exists in the mounting area 40. it can. When the inspection processing unit 32 determines that the silk 43 is present in the mounting area 40, the inspection processing unit 32 increases the threshold for cutting noise.

以上説明したように、本実施形態によれば、ノイズを発生させやすいシルク43が存在する場合、ノイズをカットするための閾値を変化(増大)するようにしたので、ノイズをカットすることができる。   As described above, according to the present embodiment, when there is a silk 43 that easily generates noise, the threshold for cutting noise is changed (increased), so that noise can be cut. .

なお、ノイズをカットするための閾値を増大させる処理は、シルク43が存在する場合のみならず、基板3に配置される高い輝度値を有する構造体について適用可能である。   Note that the process of increasing the threshold for cutting noise is applicable not only to the case where the silk 43 is present but also to a structure having a high luminance value arranged on the substrate 3.

<第7実施形態>
第7実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
<Seventh embodiment>
A seventh embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

上述の実施形態と同様、検査処理部32は、搭載前画像データDAaと、搭載後画像データDAbとの撮像素子の画素pxごとの輝度値maと輝度値mbとの差分値Δmを算出する。   Similar to the above-described embodiment, the inspection processing unit 32 calculates a difference value Δm between the luminance value ma and the luminance value mb for each pixel px of the image sensor between the pre-mounting image data DAa and the post-mounting image data DAb.

図24に示すように、基板3の半田ペースト16の表面の一部の領域45で反射した光の進行方向が、例えば基板3の撓み及び傾きに起因して変化する可能性がある。領域45で反射した光の進行方向が変化すると、その光が撮像装置14の撮像素子に高い輝度値(強度)で入射したり、撮像素子に低い輝度値で入射したり、撮像素子に入射しなかったりする可能性がある。そのため、撮像装置14は、基板3の同一位置(同一部位)を撮像しているにもかかわらず、搭載前画像データDAaの取得時と搭載後画像データDAbの取得時とで、撮像素子に入射する光の輝度値が変化する可能性がある。その結果、例えば、搭載領域40に電子部品18が搭載されていないにもかかわらず(搭載状態が異常であるにもかかわらず)、検査処理部32は、搭載領域40に電子部品18が搭載された(搭載状態が正常である)と誤判断してしまう可能性がある。   As shown in FIG. 24, the traveling direction of the light reflected by the partial region 45 on the surface of the solder paste 16 of the substrate 3 may change due to, for example, the deflection and inclination of the substrate 3. When the traveling direction of the light reflected by the region 45 changes, the light enters the imaging device of the imaging device 14 with a high luminance value (intensity), enters the imaging device with a low luminance value, or enters the imaging device. There is a possibility of not. Therefore, the imaging device 14 is incident on the imaging device when acquiring the pre-mounting image data DAa and when acquiring the post-mounting image data DAb, even though the same position (same part) of the substrate 3 is imaged. There is a possibility that the luminance value of the light to be changed will change. As a result, for example, the inspection processing unit 32 mounts the electronic component 18 in the mounting area 40 even though the electronic component 18 is not mounted in the mounting area 40 (although the mounting state is abnormal). (There is a possibility that the mounting state is normal).

そこで、本実施形態においては、輝度値の上限値が設定され、その上限値に基づいて、搭載前画像データDAa及び搭載後画像データDAbが補正される。   Therefore, in the present embodiment, an upper limit value of the luminance value is set, and the pre-mounting image data DAa and the post-mounting image data DAb are corrected based on the upper limit value.

図25は、輝度値の上限値を説明するための図である。図25に示すグラフにおいて、横軸は、撮像装置14の検出結果から導出された搭載前画像データDAa及び搭載後画像データDAbの輝度値を示す。縦軸は、補正後の搭載前画像データDAa及び搭載後画像データDAbの輝度値を示す。   FIG. 25 is a diagram for explaining the upper limit value of the luminance value. In the graph shown in FIG. 25, the horizontal axis indicates the luminance values of the pre-mounting image data DAa and the post-mounting image data DAb derived from the detection result of the imaging device 14. The vertical axis indicates the luminance values of the pre-mounting image data DAa and the post-mounting image data DAb after correction.

図25に示す例において、輝度値の上限値は、約180に定められている。図25に示す例において、搭載前画像データDAa及び搭載後画像データDAbの輝度値190及び輝度値230のような輝度値は全て、輝度値180に補正される。   In the example shown in FIG. 25, the upper limit value of the luminance value is set to about 180. In the example shown in FIG. 25, all the luminance values such as the luminance value 190 and the luminance value 230 of the pre-mounting image data DAa and the post-mounting image data DAb are corrected to the luminance value 180.

このように、本実施形態においては、輝度値の上限値が設けられ、輝度値が上限値以上のとき、その輝度値が上限値に補正される。これにより、搭載状態の異常の有無に関する誤判断の発生を抑制することができる。   Thus, in this embodiment, the upper limit value of the luminance value is provided, and when the luminance value is equal to or higher than the upper limit value, the luminance value is corrected to the upper limit value. Thereby, generation | occurrence | production of the misjudgment regarding the presence or absence of abnormality of a mounting state can be suppressed.

なお、基板3の同一部位についての搭載前画像データDAaの取得と搭載後画像データDAbの取得とにおいて、撮像素子に入射する光の輝度値の変化に起因する搭載状態の異常の有無に関する誤判断の発生を抑制するために、搭載前画像データDAa及び搭載後画像データDAbそれぞれの画素pxごとの輝度値の差分値Δm(差分画像データDS)が一定値を超えたとき、その差分値Δmを2で割った値を、搭載前画像データDAaの輝度値に加算して、補正後の搭載後画像データDAbの輝度値を求めてもよい。   In addition, in the acquisition of the pre-mounting image data DAa and the acquisition of the post-mounting image data DAb for the same part of the substrate 3, a misjudgment regarding the presence or absence of an abnormality in the mounting state due to a change in the luminance value of the light incident on the image sensor When the difference value Δm (difference image data DS) of the luminance value for each pixel px of the pre-mounting image data DAa and the post-mounting image data DAb exceeds a certain value, the difference value Δm is A value divided by 2 may be added to the luminance value of the pre-mounting image data DAa to obtain the luminance value of the post-mounting image data DAb after correction.

図26は、差分値Δmを2で割る処理を説明するための模式図である。図26に示すグラフにおいて、横軸は、差分画像データDSの輝度値を示す。縦軸は、補正後の搭載後画像データDAbの輝度値を示す。   FIG. 26 is a schematic diagram for explaining a process of dividing the difference value Δm by 2. In the graph shown in FIG. 26, the horizontal axis indicates the luminance value of the difference image data DS. The vertical axis represents the luminance value of the post-mounting image data DAb after correction.

1つの画素の輝度の差分値が一定値を超えた場合、基板3に対する電子部品18の搭載前と搭載後とにおいて、撮像素子に入射する光の輝度値に急激な変化があったとみなすことができる。   When the difference value of the luminance of one pixel exceeds a certain value, it can be considered that there is a sudden change in the luminance value of light incident on the image sensor before and after the electronic component 18 is mounted on the substrate 3. it can.

本実施形態においては、差分値が一定値よりも大きくなった場合、その差分値(差分値を算出するための搭載前画像データDAa及び搭載後画像データDAb)は除去されず、その差分値の1/2の値が算出される。その差分値の1/2の値が、搭載前画像データDAaの輝度値に加算される。これにより、補正後の搭載後画像データDAbの輝度値が導出される。   In this embodiment, when the difference value becomes larger than a certain value, the difference value (the pre-mounting image data DAa and the post-mounting image data DAb for calculating the difference value) is not removed, and the difference value A value of 1/2 is calculated. A half value of the difference value is added to the luminance value of the pre-mounting image data DAa. Thereby, the luminance value of the post-mounting image data DAb after correction is derived.

上述のように、上限値は、例えば180に設定される。一定値は、例えば120に設定される。1つの画素の輝度値の差分値が120を超えた場合、搭載前と搭載後とにおいて、輝度値に急激な変化があったとみなすことができる。その画素の輝度値の重みを低くする効果として、差分値の1/2の値が加算される。   As described above, the upper limit value is set to 180, for example. The constant value is set to 120, for example. When the difference value of the luminance value of one pixel exceeds 120, it can be considered that there is a sudden change in the luminance value before and after mounting. As an effect of reducing the weight of the luminance value of the pixel, a half value of the difference value is added.

なお、基板3の同一部位についての搭載前画像データDAaの取得と搭載後画像データDAbの取得とにおいて、撮像素子に入射する光の輝度値の変化に起因する搭載状態の異常の有無に関する誤判断の発生を抑制するために、上述したような、輝度値が上限値以上のときにその輝度値を上限値に補正する処理と、搭載前画像データDAa及び搭載後画像データDAbそれぞれの画素pxごとの輝度値の差分値Δm(差分画像データDS)が一定値を超えたときにその差分値Δmを2で割ってその割った値を加算する処理と、を組み合わせてもよい。   In addition, in the acquisition of the pre-mounting image data DAa and the acquisition of the post-mounting image data DAb for the same part of the substrate 3, a misjudgment regarding the presence or absence of an abnormality in the mounting state due to a change in the luminance value of the light incident on the image sensor In order to suppress the occurrence of the above, the process of correcting the luminance value to the upper limit value when the luminance value is equal to or higher than the upper limit value, and the pixel px of each of the pre-mounting image data DAa and the post-mounting image data DAb When the difference value Δm (difference image data DS) of the luminance value exceeds a certain value, the difference value Δm may be divided by 2 and the divided value may be added.

<第8実施形態>
第8実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
<Eighth Embodiment>
An eighth embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

搭載動作において、搬送装置2の基板保持部に保持された基板3が変形する可能性がある。例えば、基板保持部に保持された状態で、基板3の上面が上方に突出するように、基板3が撓み変形(上反り変形)する可能性がある。   In the mounting operation, there is a possibility that the substrate 3 held by the substrate holding part of the transfer device 2 is deformed. For example, the substrate 3 may be bent and deformed (upwardly deformed) so that the upper surface of the substrate 3 protrudes upward while being held by the substrate holder.

なお、基板3の下面は、基板保持部で保持されているため、基板3の下面が下方に突出するように基板3が撓み変形(下反り変形)する可能性は低い。   In addition, since the lower surface of the substrate 3 is held by the substrate holding portion, the possibility that the substrate 3 is bent and deformed (downwardly deformed) so that the lower surface of the substrate 3 protrudes downward is low.

図27は、撮像装置14と基板3との関係の一例を示す図である。図27において、基板3は変形していない。基板3の上面は平坦である。図27に示すように、本実施形態において、撮像装置14は、基板3の上面よりも上方に配置される。撮像装置14は、基板3の上面の法線に対して傾斜する方向から基板3の上面を撮像する。撮像装置14のウィンドウの中心と、搭載領域40の中心位置17とが一致するように、撮像装置14と基板3を保持した基板保持部との位置関係が調整される。   FIG. 27 is a diagram illustrating an example of the relationship between the imaging device 14 and the substrate 3. In FIG. 27, the substrate 3 is not deformed. The upper surface of the substrate 3 is flat. As shown in FIG. 27, in the present embodiment, the imaging device 14 is disposed above the upper surface of the substrate 3. The imaging device 14 images the upper surface of the substrate 3 from a direction inclined with respect to the normal line of the upper surface of the substrate 3. The positional relationship between the imaging device 14 and the substrate holder that holds the substrate 3 is adjusted so that the center of the window of the imaging device 14 and the center position 17 of the mounting area 40 coincide.

図28は、撮像装置14と基板3との関係の一例を示す図である。図28において、基板3は、上反り変形している。撮像装置14のウィンドウの中心と搭載領域40の中心位置17とが一致するように、撮像装置14と基板3を保持した基板保持部との位置関係が調整されたとしても、図28に示すように、基板3の上反り変形により、撮像装置14のウィンドウの中心と搭載領域40の中心位置17とがずれる可能性がある。   FIG. 28 is a diagram illustrating an example of the relationship between the imaging device 14 and the substrate 3. In FIG. 28, the substrate 3 is warped and deformed. Even if the positional relationship between the imaging device 14 and the substrate holding unit that holds the substrate 3 is adjusted so that the center of the window of the imaging device 14 and the center position 17 of the mounting area 40 coincide with each other, as shown in FIG. In addition, the center of the window of the imaging device 14 and the center position 17 of the mounting area 40 may be shifted due to the warping deformation of the substrate 3.

なお、本実施形態において、ウィンドウの中心と搭載領域40の中心位置17とがずれるとは、基板3の上面と平行な面内(本実施形態においては水平面内)における位置関係が変化することをいう。本実施形態においては、基板3の上反り変形により、水平面内における撮像装置14のウィンドウの中心と搭載領域40の中心位置17とがずれる可能性がある。   In the present embodiment, the shift of the center of the window from the center position 17 of the mounting area 40 means that the positional relationship in a plane parallel to the upper surface of the substrate 3 (in the horizontal plane in the present embodiment) changes. Say. In the present embodiment, there is a possibility that the center of the window of the imaging device 14 and the center position 17 of the mounting area 40 in the horizontal plane are shifted due to the warping deformation of the substrate 3.

図29は、撮像装置14によって撮像された搭載領域40の一例を示す図である。基板3が変形していない状態において、ウィンドウに搭載領域40が配置される。図29において、基板3が変形していないときの搭載領域40を点線で示す。   FIG. 29 is a diagram illustrating an example of the mounting area 40 imaged by the imaging device 14. In a state where the substrate 3 is not deformed, the mounting area 40 is disposed in the window. In FIG. 29, the mounting area 40 when the substrate 3 is not deformed is indicated by a dotted line.

基板3が上反り変形した場合、搭載領域40は、ウィンドウの中心からある方向にずれる。図29にいて、基板3が上反り変形したときの搭載領域40を実線で示す。   When the substrate 3 is warped and deformed, the mounting area 40 is shifted in a certain direction from the center of the window. In FIG. 29, the mounting area 40 when the substrate 3 is warped and deformed is indicated by a solid line.

本実施形態においては、図29に示すように、そのずれ量を考慮して、ウィンドウ(演算処理対象領域)が設定される。すなわち、基板3の上反り変形に起因する搭載領域40のずれ量を考慮して、搭載領域40がずれたとしても、搭載領域40がウィンドウに配置され続けるように、ウィンドウが設定される。   In the present embodiment, as shown in FIG. 29, a window (arithmetic processing target area) is set in consideration of the shift amount. That is, in consideration of the shift amount of the mounting area 40 due to the warping deformation of the substrate 3, even if the mounting area 40 is shifted, the window is set so that the mounting area 40 is continuously arranged in the window.

なお、水平面内における基板3のずれ量(シフト量)は、基板3の上反り変形量から幾何学的に算出することができる。   The amount of shift (shift amount) of the substrate 3 in the horizontal plane can be calculated geometrically from the amount of warpage deformation of the substrate 3.

基板3の上反り変形に起因して、水平面内における搭載領域40の位置がずれる場合、その搭載領域40の少なくとも一部が撮像装置14のウィンドウの外側に出てしまう可能性がある。ウィンドウの大きさを大きくすることによって、搭載領域40の位置がずれても、搭載領域40がウィンドウの外側に出てしまうことを防止することができる。しかし、上述の実施形態で説明したように、ウィンドウを大きくすると、画像データにノイズ成分が多く含まれる可能性がある。   When the position of the mounting area 40 in the horizontal plane is shifted due to the warping deformation of the substrate 3, at least a part of the mounting area 40 may come out of the window of the imaging device 14. By increasing the size of the window, it is possible to prevent the mounting area 40 from coming out of the window even if the position of the mounting area 40 is shifted. However, as described in the above embodiment, when the window is enlarged, there is a possibility that a lot of noise components are included in the image data.

本実施形態においては、ウィンドウの大きさを変えずに、搭載領域40のずれ量を考慮して、ウィンドウが設定される。すなわち、基板3が変形しない状態と、基板3が上反り変形した状態との両方で、搭載領域40がウィンドウに配置され続けるように、ウィンドウが設定される。   In the present embodiment, the window is set in consideration of the shift amount of the mounting area 40 without changing the size of the window. That is, the window is set so that the mounting area 40 is continuously arranged in the window in both the state where the substrate 3 is not deformed and the state where the substrate 3 is warped and deformed.

以上説明したように、本実施形態によれば、基板保持部に保持された基板3が撓み変形(上反り変形)した状態と変形しない状態のそれぞれにおいて、演算処理対象領域である撮像素子のウィンドウに搭載領域40が配置され続けるように、ウィンドウが設定される。そのため、ノイズが画像データに含まれることを抑制できる。   As described above, according to the present embodiment, the window of the image sensor that is the calculation processing target area in each of the state in which the substrate 3 held by the substrate holding portion is bent and deformed (upwardly deformed) and the state in which the substrate 3 is not deformed. The window is set so that the mounting area 40 continues to be arranged. Therefore, it can suppress that noise is contained in image data.

<第9実施形態>
第9実施形態について説明する。以下の説明において、上述の実施形態と同一又は同等の構成部分については同一の符号を付し、その説明を簡略若しくは省略する。
<Ninth Embodiment>
A ninth embodiment will be described. In the following description, the same or equivalent components as those of the above-described embodiment are denoted by the same reference numerals, and the description thereof is simplified or omitted.

上述の実施形態と同様、搭載前画像データDAaと搭載後画像データDAbとを比較するステップ(図7のステップSA6参照)が行われる。その比較するステップにおいて、上述の実施形態と同様、検査処理部32は、搭載前画像データDAaの中心位置17と搭載後画像データDAbの中心位置17とが一致するように位置合わせする。そして、検査処理部32は、搭載前画像データDAaの画素pxにおける輝度値maと、その搭載前画像データDAaの画素pxに一致する搭載後画像データDAbの画素pxにおける輝度値mbとの差分値Δmを算出する。   As in the above-described embodiment, a step of comparing the pre-mounting image data DAa and the post-mounting image data DAb (see step SA6 in FIG. 7) is performed. In the comparison step, as in the above-described embodiment, the inspection processing unit 32 aligns the center position 17 of the pre-mounting image data DAa and the center position 17 of the post-mounting image data DAb. Then, the inspection processing unit 32 calculates a difference value between the luminance value ma in the pixel px of the pre-mounting image data DAa and the luminance value mb in the pixel px of the post-mounting image data DAb that matches the pixel px of the pre-mounting image data DAa. Δm is calculated.

図30は、本実施形態に係る搭載前画像データDAaの一例を示す図である。図31は、本実施形態に係る差分画像データDSの一例を示す図である。   FIG. 30 is a diagram illustrating an example of pre-mounting image data DAa according to the present embodiment. FIG. 31 is a diagram illustrating an example of the difference image data DS according to the present embodiment.

図30に示すように、搭載前画像データDAaにおいて、搭載領域40が、実際には正しい搭載領域からずれてしまった状態で、上述の差分値Δmが算出されてしまう可能性がある。その場合、そのずれてしまった領域において、差分値が小さくなる。その結果、搭載状態は、正常であるにもかかわらず、異常と判断(誤判断)されてしまう可能性がある。   As shown in FIG. 30, in the pre-mounting image data DAa, there is a possibility that the above-described difference value Δm is calculated in a state where the mounting area 40 is actually deviated from the correct mounting area. In that case, the difference value becomes small in the shifted area. As a result, the mounted state may be determined to be abnormal (incorrect determination) even though it is normal.

そのような誤判断を防止するため、差分値Δmに偏りがある場合には、閾値R40を小さくしてもよい。例えば、図30及び図31に示すように、図中、搭載領域40の上側に電子部品18が搭載されると、搭載領域40の上半分の領域(上半分領域)44において、差分値Δmが大きくなる。そのため、全体の搭載領域40に対して差分値Δmが大きい上半分領域44の割合が高いと判断された場合、実際の搭載領域が画像データにおける搭載領域40からずれていると判断される。搭載領域40の異常の有無の判断は、閾値R40を半分にした新たな閾値に基づいて行われる。   In order to prevent such misjudgment, the threshold value R40 may be reduced when the difference value Δm is biased. For example, as shown in FIGS. 30 and 31, when the electronic component 18 is mounted on the upper side of the mounting area 40 in the drawing, the difference value Δm is obtained in the upper half area (upper half area) 44 of the mounting area 40. growing. Therefore, when it is determined that the ratio of the upper half area 44 having a large difference value Δm with respect to the entire mounting area 40 is high, it is determined that the actual mounting area is shifted from the mounting area 40 in the image data. The determination of whether or not there is an abnormality in the mounting area 40 is made based on a new threshold value obtained by halving the threshold value R40.

1 基台
2 搬送装置
2R 搬送路
3 基板
4 供給部
5 パーツフィーダ
6 X軸テーブル
7 移載ヘッド
8A Y軸テーブル
8B ガイド部材
9 カメラ
10 ノズル
10D 駆動システム
11 ノズルシャフト
12 θ軸モータ
13 Z軸モータ
14 撮像装置
15 カメラ
16 半田ペースト
17 中心位置
18 電子部品
18A ボディ部
18B 電極部
25 CPU
26 メイン制御装置
30 画像データ記憶部(搭載前画像データ記憶部)
31 画像データ記憶部(搭載後画像データ記憶部)
32 検査処理部
32A 画像解析処理部
32B 搭載領域判定処理部
32C 周辺領域判定処理部
33 差分画像データ記憶部
34 判定結果記憶部
35 制御装置
36 判定結果処理部
37 検査装置
40 搭載領域
40E 周辺搭載領域
50 周辺領域
52 ベース部材
54 ホルダ
56 ボールねじ
100 実装装置
DAa 搭載前画像データ
DAb 搭載後画像データ
DS 差分画像データ
DESCRIPTION OF SYMBOLS 1 Base 2 Conveyor 2R Conveyance path 3 Substrate 4 Supply part 5 Parts feeder 6 X-axis table 7 Transfer head 8A Y-axis table 8B Guide member 9 Camera 10 Nozzle 10D Drive system 11 Nozzle shaft 12 θ-axis motor 13 Z-axis motor 14 Imaging Device 15 Camera 16 Solder Paste 17 Center Position 18 Electronic Component 18A Body Part 18B Electrode Part 25 CPU
26 Main controller 30 Image data storage unit (pre-mounting image data storage unit)
31 Image data storage unit (image data storage unit after installation)
32 inspection processing unit 32A image analysis processing unit 32B mounting region determination processing unit 32C peripheral region determination processing unit 33 differential image data storage unit 34 determination result storage unit 35 control device 36 determination result processing unit 37 inspection device 40 mounting region 40E peripheral mounting region 50 Peripheral area 52 Base member 54 Holder 56 Ball screw 100 Mounting device DAa Image data before mounting DAb Image data DS after mounting Difference image data

Claims (10)

基板に対する電子部品の搭載において行われる検査方法であって、
前記基板の搭載領域に対する前記電子部品の搭載前に、撮像素子により前記搭載領域及び前記搭載領域の周辺の前記基板の周辺領域を含む画像データを取得するステップと、
前記搭載領域に対する前記電子部品の搭載後に、前記搭載領域及び前記周辺領域を含む画像データを取得するステップと、
前記搭載前の前記搭載領域の画像データと前記搭載後の前記搭載領域の画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出するステップと、
前記差分値と予め定められた閾値とを比較するステップと、
前記比較の結果に基づいて、前記搭載領域異常の有無を判定するステップと、
前記搭載前の前記周辺領域の画像データと前記搭載後と前記周辺領域の画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出するか否かを選択するステップと、
を含む検査方法。
An inspection method performed in mounting electronic components on a substrate,
Before mounting the electronic component on the mounting area of the substrate, acquiring image data including the mounting area and a peripheral area of the substrate around the mounting area by an imaging device;
Obtaining image data including the mounting area and the peripheral area after mounting the electronic component on the mounting area;
Calculating a difference value of a luminance value for each pixel of the imaging element between the image data of the mounting area before mounting and the image data of the mounting area after mounting;
Comparing the difference value with a predetermined threshold ;
Determining whether there is an abnormality in the mounting area based on the result of the comparison;
Selecting whether or not to calculate the difference value of the luminance value for each pixel of the imaging element between the image data of the peripheral area before mounting and the image data of the peripheral area after mounting;
Including inspection methods.
複数の前記差分値に関する情報に基づいて、前記閾値を更新するステップを含む請求項に記載の検査方法。 The inspection method according to claim 1 , further comprising a step of updating the threshold based on information on a plurality of the difference values. 前記輝度値の上限値を設定するステップと、
前記上限値に基づいて、前記搭載前の前記画像データ及び前記搭載後の前記画像データを補正するステップと、を含む請求項1又は請求項に記載の検査方法。
Setting an upper limit of the luminance value;
On the basis of the upper limit, the inspection method according to claim 1 or claim 2 including a step of correcting the image data after the image data and the mounting of the front the mounting.
前記搭載領域の異常の有無の判定は、前記搭載領域に対する前記電子部品の搭載状態の異常の有無の判定を含む請求項1から請求項のいずれか一項に記載の検査方法。 The determination of the presence or absence of the mounting area abnormalities, inspection method according to any one of claims 1 to 3, including the determination of the presence or absence of the mounting state of the electronic component for mounting region abnormality. 前記電子部品を保持して前記基板に搭載可能なノズルが前記搭載前の前記画像データ及び前記搭載後の前記画像データに含まれ、
前記搭載前の前記画像データ及び前記搭載後の前記画像データのそれぞれから前記ノズルを含む一部のデータを除去するステップを含み、
前記一部のデータが除去された後、前記搭載前の前記画像データと前記搭載後の前記画像データとを比較するステップが行われる請求項1又は請求項に記載の検査方法。
The nozzle that holds the electronic component and can be mounted on the substrate is included in the image data before the mounting and the image data after the mounting,
Removing a part of the data including the nozzle from each of the image data before the mounting and the image data after the mounting,
After the portion of data has been removed, the inspection method according to claim 1 or claim 2 step of comparing the image data after the mounting and the image data before the mounting is performed.
前記搭載前の前記画像データと前記搭載後の前記画像データとを比較するステップは、前記搭載領域を含む第1ウィンドウにおいてテンプレートマッチング処理により前記搭載前の前記画像データと前記搭載後の前記画像データとを位置合わせするステップと、前記搭載領域を含み前記第1ウィンドウよりも小さい第2ウィンドウにおいて前記テンプレートマッチング処理により前記搭載前の前記画像データと前記搭載後の前記画像データとを位置合わせするステップと、を含む請求項1から請求項のいずれか一項に記載の検査方法。 The step of comparing the image data before mounting and the image data after mounting includes the image data before mounting and the image data after mounting by template matching processing in a first window including the mounting area. And aligning the image data before mounting and the image data after mounting in the second window that includes the mounting area and is smaller than the first window by the template matching process. The inspection method according to any one of claims 1 to 5 , comprising: 前記搭載前の前記画像データと前記搭載後の前記画像データとを比較するステップは、
テンプレートマッチング処理により前記搭載前の前記画像データと前記搭載後の前記画像データとの相関値を算出するステップと、
前記相関値が第1閾値以下のとき、前記搭載領域に対する前記電子部品の搭載状態は正常であると判断するステップと、
前記相関値が第2閾値以上のとき、前記搭載領域に対する前記電子部品の搭載状態は異常であると判断するステップと、を含み、
前記相関値が前記第1閾値よりも大きく前記第2閾値よりも小さいとき、前記搭載前の前記画像データと前記搭載後の前記画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出して、前記搭載領域及び前記周辺領域の少なくとも一方の異常の有無を判定する請求項1に記載の検査方法。
The step of comparing the image data before mounting and the image data after mounting,
Calculating a correlation value between the image data before mounting and the image data after mounting by template matching processing;
Determining that the mounting state of the electronic component in the mounting region is normal when the correlation value is equal to or less than a first threshold;
Determining that the mounting state of the electronic component in the mounting region is abnormal when the correlation value is greater than or equal to a second threshold,
When the correlation value is larger than the first threshold value and smaller than the second threshold value, a difference value of a luminance value for each pixel of the image sensor between the image data before mounting and the image data after mounting is calculated. The inspection method according to claim 1, wherein the inspection method calculates and determines whether there is an abnormality in at least one of the mounting area and the peripheral area.
前記基板は基板保持部に保持され、
前記基板保持部に保持された前記基板が撓み変形した状態と変形しない状態のそれぞれにおいて、演算処理対象領域である前記撮像素子のウインドウに前記搭載領域が配置され続けるように、前記ウインドウが設定される請求項1から請求項のいずれか一項に記載の検査方法。
The substrate is held by a substrate holding unit,
The window is set so that the mounting area continues to be arranged in the window of the imaging element, which is a calculation processing target area, in each of a state where the substrate held by the substrate holding portion is bent and deformed and a state where the substrate is not deformed. The inspection method according to any one of claims 1 to 7 .
基板に電子部品を実装する実装方法であって、
請求項1から請求項のいずれか一項に記載の検査方法で、前記搭載領域及び前記周辺領域の少なくとも一方を検査するステップを含む実装方法。
A mounting method for mounting electronic components on a substrate,
In the inspection method as claimed in any one of claims 8, mounting method comprising the step of inspecting at least one of the mounting region and the peripheral region.
基板に電子部品を実装する実装装置であって、
前記電子部品を保持して前記基板に搭載可能なノズルと、
前記基板の搭載領域に対する前記電子部品の搭載前及び搭載後のそれぞれにおいて、前記搭載領域及び前記搭載領域の周辺の前記基板の周辺領域を含む画像データを取得する撮像素子を含む撮像装置と、
前記搭載前の前記搭載領域の画像データと前記搭載後の前記搭載領域の画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出し、前記差分値と予め定められた閾値とを比較した結果に基づいて、前記搭載領域異常の有無を判定し、前記搭載前の前記周辺領域の画像データと前記搭載後と前記周辺領域の画像データとの前記撮像素子の画素ごとの輝度値の差分値を算出するか否かを選択する処理装置と、を備える実装装置。
A mounting device for mounting electronic components on a substrate,
A nozzle that holds the electronic component and can be mounted on the substrate;
An imaging apparatus including an imaging element that acquires image data including the mounting area and a peripheral area of the substrate around the mounting area before and after mounting of the electronic component with respect to the mounting area of the substrate;
A difference value of a luminance value for each pixel of the image sensor between the image data of the mounting area before mounting and the image data of the mounting area after mounting is calculated, and the difference value and a predetermined threshold value are calculated. Based on the comparison result, the presence / absence of abnormality in the mounting area is determined , and the luminance value for each pixel of the image sensor of the image data of the peripheral area before mounting and the image data of the peripheral area before mounting and after And a processing device that selects whether or not to calculate the difference value .
JP2014120985A 2013-09-10 2014-06-11 Inspection method, mounting method, and mounting apparatus Active JP6389651B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014120985A JP6389651B2 (en) 2013-09-10 2014-06-11 Inspection method, mounting method, and mounting apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013187416 2013-09-10
JP2013187416 2013-09-10
JP2014120985A JP6389651B2 (en) 2013-09-10 2014-06-11 Inspection method, mounting method, and mounting apparatus

Publications (2)

Publication Number Publication Date
JP2015079933A JP2015079933A (en) 2015-04-23
JP6389651B2 true JP6389651B2 (en) 2018-09-12

Family

ID=52975431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014120985A Active JP6389651B2 (en) 2013-09-10 2014-06-11 Inspection method, mounting method, and mounting apparatus

Country Status (2)

Country Link
JP (1) JP6389651B2 (en)
CN (1) CN104427853B (en)

Families Citing this family (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016174763A1 (en) * 2015-04-30 2016-11-03 富士機械製造株式会社 Component inspecting machine and component mounting machine
CN107535090B (en) * 2015-05-21 2020-09-01 株式会社富士 Device and method for generating component orientation determination data
KR102018070B1 (en) 2015-06-19 2019-09-04 야마하하쓰도키 가부시키가이샤 Component mounting device and component mounting method
JP6738583B2 (en) * 2015-08-06 2020-08-12 Juki株式会社 Inspection device, mounting device, inspection method, and program
US10674650B2 (en) 2015-08-17 2020-06-02 Yamaha Hatsudoki Kabushiki Kaisha Component mounting device
US11134597B2 (en) 2015-10-14 2021-09-28 Yamaha Hatsudoki Kabushiki Kaisha Component mounting device
WO2017064774A1 (en) 2015-10-14 2017-04-20 ヤマハ発動機株式会社 Substrate working system and component mounting device
CN107926154B (en) * 2015-10-15 2020-01-21 雅马哈发动机株式会社 Component mounting apparatus
JP6751567B2 (en) * 2016-02-18 2020-09-09 Juki株式会社 Electronic component inspection method, electronic component mounting method, and electronic component mounting device
JP6745117B2 (en) * 2016-02-24 2020-08-26 Juki株式会社 Inspection device, mounting device, inspection method, and program
EP3550952B1 (en) * 2016-12-01 2021-07-28 Fuji Corporation Manufacturing management system for component mounting line
CN110036279B (en) * 2016-12-06 2022-03-15 三菱电机株式会社 Inspection apparatus and inspection method
JP2018175764A (en) * 2017-04-21 2018-11-15 株式会社大一商会 Game machine
JP6998674B2 (en) * 2017-04-28 2022-01-18 株式会社大一商会 Pachinko machine
JP6998673B2 (en) * 2017-04-28 2022-01-18 株式会社大一商会 Pachinko machine
JP6998671B2 (en) * 2017-04-28 2022-01-18 株式会社大一商会 Pachinko machine
JP6998672B2 (en) * 2017-04-28 2022-01-18 株式会社大一商会 Pachinko machine
JP6821506B2 (en) * 2017-05-17 2021-01-27 株式会社大一商会 Game machine
JP6821507B2 (en) * 2017-05-17 2021-01-27 株式会社大一商会 Game machine
JP6827684B2 (en) * 2017-05-17 2021-02-10 株式会社大一商会 Game machine
JP6831457B2 (en) * 2017-06-06 2021-02-17 ヤマハ発動機株式会社 Component mounting device
JP6918583B2 (en) * 2017-06-08 2021-08-11 Juki株式会社 Inspection equipment, mounting equipment, inspection method
JP2019025009A (en) * 2017-07-31 2019-02-21 株式会社大一商会 Game machine
JP2019025010A (en) * 2017-07-31 2019-02-21 株式会社大一商会 Game machine
JP6867091B2 (en) * 2017-08-04 2021-04-28 株式会社大一商会 Pachinko machine
JP6799360B2 (en) * 2017-08-04 2020-12-16 株式会社大一商会 Game machine
JP6793436B2 (en) * 2017-08-04 2020-12-02 株式会社大一商会 Game machine
JP6799358B2 (en) * 2017-08-04 2020-12-16 株式会社大一商会 Game machine
JP6799359B2 (en) * 2017-08-04 2020-12-16 株式会社大一商会 Game machine
JP6867093B2 (en) * 2017-08-04 2021-04-28 株式会社大一商会 Pachinko machine
JP6867092B2 (en) * 2017-08-04 2021-04-28 株式会社大一商会 Pachinko machine
JP6799357B2 (en) * 2017-08-04 2020-12-16 株式会社大一商会 Game machine
JP6799356B2 (en) * 2017-08-04 2020-12-16 株式会社大一商会 Game machine
JP7019348B2 (en) * 2017-08-31 2022-02-15 株式会社大一商会 Pachinko machine
JP7034542B2 (en) * 2017-09-20 2022-03-14 株式会社大一商会 Pachinko machine
JP2019080688A (en) * 2017-10-30 2019-05-30 株式会社大一商会 Game machine
JP6851122B2 (en) * 2017-10-30 2021-03-31 株式会社大一商会 Game machine
JP2019080689A (en) * 2017-10-30 2019-05-30 株式会社大一商会 Game machine
JP6851123B2 (en) * 2017-10-30 2021-03-31 株式会社大一商会 Game machine
JP6991669B2 (en) * 2018-02-16 2022-01-12 株式会社大一商会 Pachinko machine
JP6991670B2 (en) * 2018-02-21 2022-01-12 株式会社大一商会 Pachinko machine
JP6991672B2 (en) * 2018-02-26 2022-01-12 株式会社大一商会 Pachinko machine
JP7126880B2 (en) * 2018-07-02 2022-08-29 Juki株式会社 Image processing device, mounting device, image processing method, program
JP7085264B2 (en) * 2018-08-08 2022-06-16 株式会社大一商会 Pachinko machine
JP2019037836A (en) * 2018-11-13 2019-03-14 株式会社大一商会 Game machine
JP6991687B2 (en) * 2019-04-09 2022-01-12 株式会社大一商会 Pachinko machine
JP6774722B2 (en) * 2019-05-15 2020-10-28 株式会社大一商会 Game machine
JP6774532B2 (en) * 2019-05-20 2020-10-28 ヤマハ発動機株式会社 Component mounting device and component mounting method
JP6773842B2 (en) * 2019-05-31 2020-10-21 株式会社大一商会 Game machine

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3309420B2 (en) * 1992-03-31 2002-07-29 松下電器産業株式会社 Inspection method of solder bridge
JP3472443B2 (en) * 1997-06-23 2003-12-02 沖電気工業株式会社 Mounted parts inspection equipment
JP4536280B2 (en) * 2001-03-12 2010-09-01 ヤマハ発動機株式会社 Component mounter, mounting inspection method
JP4563205B2 (en) * 2005-02-08 2010-10-13 富士機械製造株式会社 Inspection method and apparatus for mounted electronic component
JP4821246B2 (en) * 2005-10-06 2011-11-24 パナソニック株式会社 Electronic component mounting method
JP4205139B2 (en) * 2007-05-29 2009-01-07 株式会社メガトレード Appearance inspection method in appearance inspection apparatus
JP4577395B2 (en) * 2008-04-03 2010-11-10 ソニー株式会社 Mounting apparatus and mounting method
JP5239561B2 (en) * 2008-07-03 2013-07-17 オムロン株式会社 Substrate appearance inspection method and substrate appearance inspection apparatus
JP2011082243A (en) * 2009-10-05 2011-04-21 Panasonic Corp Component mounting device, and mounting-state inspection method in the same
JP5832167B2 (en) * 2010-07-13 2015-12-16 富士機械製造株式会社 Component presence / absence determination apparatus and component presence / absence determination method
WO2012091494A2 (en) * 2010-12-29 2012-07-05 주식회사 고영테크놀러지 Substrate inspection method
JP6108770B2 (en) * 2012-11-02 2017-04-05 Juki株式会社 Electronic component mounting apparatus and mounting component inspection method

Also Published As

Publication number Publication date
CN104427853A (en) 2015-03-18
JP2015079933A (en) 2015-04-23
CN104427853B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
JP6389651B2 (en) Inspection method, mounting method, and mounting apparatus
JP6333250B2 (en) Component holding state detection method and component mounting apparatus
JP2009027015A (en) Method and device for mounting electronic component
CN107124865B (en) Inspection apparatus, mounting apparatus, and inspection method
JP5052302B2 (en) Component mounting method and apparatus
JPWO2017064786A1 (en) Component mounting equipment
WO2017081773A1 (en) Image processing device and image processing method for base plate
JP5545737B2 (en) Component mounter and image processing method
JP6411663B2 (en) Component mounting equipment
JP6849815B2 (en) How to determine the component mounting device, shooting method, and mounting order
CN106455478B (en) Inspection apparatus, mounting apparatus, and inspection method
JPWO2017013781A1 (en) Component mounter
JP2006108457A (en) Mounting error detection method and device of electronic part mounting device
JP6466960B2 (en) Mounting machine and electronic component suction posture inspection method using mounting machine
JP5297913B2 (en) Mounting machine
US11291149B2 (en) Electronic component mounting machine and production line
JP4421281B2 (en) Component recognition method, component recognition device, surface mounter, component test device, and board inspection device
JP2017045913A (en) Component mounting device and component mounting method
JP4349091B2 (en) Printed circuit board support apparatus and printed circuit board support method
CN115136579A (en) Image correction method, imaging device, and inspection device
JP6377136B2 (en) Anti-substrate working machine, anti-substrate working system, and anti-substrate working method
JP2009170586A (en) Method and apparatus for recognizing electronic component
JP6584277B2 (en) Board work machine
JP2022080510A (en) Component mounting system and component mounting state determination method
JP2018041914A (en) Substrate work device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180605

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180620

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: 20180731

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180820

R150 Certificate of patent or registration of utility model

Ref document number: 6389651

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150