JP2019067943A - Setting device and surface mounting machine - Google Patents

Setting device and surface mounting machine Download PDF

Info

Publication number
JP2019067943A
JP2019067943A JP2017192593A JP2017192593A JP2019067943A JP 2019067943 A JP2019067943 A JP 2019067943A JP 2017192593 A JP2017192593 A JP 2017192593A JP 2017192593 A JP2017192593 A JP 2017192593A JP 2019067943 A JP2019067943 A JP 2019067943A
Authority
JP
Japan
Prior art keywords
image
component
control unit
rotation angle
setting device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017192593A
Other languages
Japanese (ja)
Other versions
JP6974101B2 (en
Inventor
貴通 香月
Takamichi Katsuki
貴通 香月
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.)
Yamaha Motor Co Ltd
Original Assignee
Yamaha Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Motor Co Ltd filed Critical Yamaha Motor Co Ltd
Priority to JP2017192593A priority Critical patent/JP6974101B2/en
Publication of JP2019067943A publication Critical patent/JP2019067943A/en
Application granted granted Critical
Publication of JP6974101B2 publication Critical patent/JP6974101B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Supply And Installment Of Electrical Components (AREA)

Abstract

To achieve highly efficient setting of determination parameters for determining a rotational angle and a posture of a component such as its front and rear.SOLUTION: A setting device 2 includes: a substrate imaging camera 17 which images a component E with a feature part 54 capable of determining a rotational angle θ and creates an image; a control unit 30. The control unit 30 executes recognition processing (S107) for recognizing the feature part 54 on an image and setting processing (S108) for setting a rotational angle determination parameter for determining the rotational angle θ on the basis of the feature part 54 recognized by the recognition processing.SELECTED DRAWING: Figure 4

Description

本明細書で開示する技術は、設定装置、及び、表面実装機に関する。   The technology disclosed herein relates to a setting device and a surface mounter.

従来、部品供給装置から供給される部品を保持して基板に実装する表面実装機において、部品の中心点周りの当該部品の回転角度を判定し、判定した回転角度と部品を基板に実装するときの実装角度との角度差に応じて部品の回転角度を補正するものが知られている(例えば、特許文献1参照)。   Conventionally, in a surface mounter that holds a component supplied from a component supply device and mounts it on a substrate, when the rotation angle of the component around the center point of the component is determined and the determined rotation angle and component are mounted on the substrate It is known to correct the rotation angle of a part according to the angle difference with the mounting angle of (see, for example, Patent Document 1).

特開2007−103436号公報(段落0049)JP 2007-103436 A (paragraph 0049)

ところで、一般に部品の回転角度は部品の外周形状から判定することができる。しかしながら、部品によっては外周形状から回転角度を判定できない場合もある。例えば外周形状が正方形の場合、ある任意の回転角度を0度としたとき、0度、90度、180度及び270度のときに外周形状が一致するので、回転角度が0度、90度、180度及び270度のいずれであるかを外周形状から判定することはできない。   Generally, the rotation angle of a part can be determined from the outer peripheral shape of the part. However, depending on the part, the rotation angle may not be determined from the outer peripheral shape. For example, in the case where the outer peripheral shape is a square, the outer peripheral shapes match at 0 degree, 90 degrees, 180 degrees and 270 degrees, where a given arbitrary rotation angle is 0 degree, so the rotation angle is 0 degrees, 90 degrees, It can not be determined from the outer peripheral shape which of 180 degrees and 270 degrees.

ただし、一般にこのような部品は回転角度を判定可能な特徴部分を有している。このため、このような部品の場合は回転角度を判定するための判定パラメータを予め特徴部分に基づいて設定しておくことにより、部品の回転角度を判定することができる。   However, in general, such a component has a feature that can determine the rotation angle. For this reason, in the case of such a part, the rotation angle of the part can be determined by setting in advance a determination parameter for determining the rotation angle based on the characteristic part.

また、部品は裏返って供給される可能性もある。一般に部品は表と裏を判定可能な特徴部分を有しているので、表と裏を判定するための判定パラメータを予め特徴部分に基づいて設定しておくことにより、部品の表と裏を判定することができる。   Also, parts may be turned over. In general, parts have characteristic portions that can determine front and back. Therefore, by setting in advance determination parameters for determining front and back based on the characteristic portions, the front and back of the parts can be determined. can do.

しかしながら、一般に部品の供給メーカからは部品の特徴部分に関するデータが提供されない。このため従来はオペレータが手作業で判定パラメータを設定しており、効率が悪いという問題があった。
本明細書では、回転角度や表と裏などの部品の姿勢を判定するための判定パラメータを効率よく設定できる技術を開示する。
However, in general, the supplier of the component does not provide data on the feature of the component. For this reason, conventionally, the operator manually sets the determination parameters, and there is a problem that the efficiency is low.
The present specification discloses a technique capable of efficiently setting determination parameters for determining the orientations of parts such as the rotation angle and the front and back.

本明細書で開示する設定装置は、姿勢を判定可能な特徴部分を有する部品を撮像して画像を生成する撮像部と、前記画像上で前記特徴部分を認識する認識処理、及び、前記認識処理で認識した前記特徴部分に基づいて、前記姿勢を判定するための判定パラメータを設定する設定処理を実行する制御部と、を備える。   The setting apparatus disclosed in the present specification includes an imaging unit configured to capture an image by imaging a component having a feature portion whose posture can be determined, a recognition process for recognizing the feature portion on the image, and the recognition process. The control part which performs the setting process which sets the determination parameter for determining the said attitude | position based on the said characteristic part recognized by these.

上記の設定装置によると、オペレータが手作業で判定パラメータを設定する場合に比べて設定に要する時間を短縮することができるので、判定パラメータを効率よく設定することができる。   According to the above setting apparatus, the time required for setting can be shortened as compared with the case where the operator manually sets the determination parameter, so that the determination parameter can be set efficiently.

また、前記姿勢は前記部品の中心点周りの回転角度であり、前記制御部は、前記認識処理において、前記画像を回転させ、回転前の前記画像と回転後の前記画像との差画像に基づいて前記特徴部分を認識してもよい。   Further, the posture is a rotation angle around the center point of the part, and the control unit rotates the image in the recognition processing, and is based on a difference image between the image before rotation and the image after rotation. The feature portion may be recognized.

上記の設定装置によると、部品の回転角度を判定可能な判定パラメータを設定することができる。   According to the above setting device, it is possible to set a determination parameter that can determine the rotation angle of the part.

また、前記姿勢は前記部品の表と裏を含み、前記撮像部は、前記部品の表面を撮像して表面画像を生成する第1の撮像部と、前記部品の裏面を撮像して裏面画像を生成する第2の撮像部と、を有し、前記制御部は、前記認識処理において、前記表面画像と前記裏面画像との差画像に基づいて前記特徴部分を認識してもよい。   The posture includes the front and back of the component, and the imaging unit captures a surface of the component to generate a surface image, and the imaging unit captures a back of the component to generate a back surface image. The control unit may recognize the feature portion based on a difference image between the front surface image and the back surface image in the recognition processing.

上記の設定装置によると、部品の表と裏を判定可能な判定パラメータを設定することができる。   According to the above setting apparatus, it is possible to set a determination parameter capable of determining the front and back of the part.

また、前記部品は表及び裏に電極を有しており、前記制御部は、前記認識処理の前に、前記表面画像において前記電極を表している画素の濃度と前記裏面画像において前記電極を表している画素の濃度とに基づいて前記表面画像及び前記裏面画像の少なくとも一方の画素の濃度を補正する補正処理を実行してもよい。   In addition, the component has an electrode on the front and back, and the control unit indicates the density of a pixel representing the electrode in the surface image and the electrode in the back image before the recognition process. A correction process may be performed to correct the density of at least one of the front image and the back image based on the density of the target pixel.

第1の撮像部と第2の撮像部とは撮像センサの感度の違いや光源の輝度の違いなどによって同じ被写体を撮像しても画素の濃度が異なってしまうことがある。言い換えると、第1の撮像部と第2の撮像部とで画素の濃淡が異なってしまうことがある。表と裏で画素の濃淡が異なると判定パラメータの精度が低下してしまう虞がある。
上記の設定装置によると、表面画像において部品の電極を表している画素の濃度と裏面画像において部品の電極を表している画素の濃度とに基づいて表面画像及び裏面画像の少なくとも一方の画素の濃度を補正するので、画素の濃淡が異なることによって判定パラメータの精度が低下してしまうことを抑制できる。
Even when the same subject is imaged, the density of the pixels may be different between the first imaging unit and the second imaging unit due to the difference in sensitivity of the imaging sensor or the difference in luminance of the light source. In other words, the lightness and darkness of the pixel may be different between the first imaging unit and the second imaging unit. If the density of the pixel differs between the front and the back, the accuracy of the determination parameter may be reduced.
According to the above setting apparatus, the density of at least one of the front image and the back image is determined based on the density of the pixel representing the electrode of the component in the front image and the density of the pixel representing the electrode of the component in the back image. Therefore, it is possible to suppress the decrease in the accuracy of the determination parameter due to the difference in density of the pixels.

また、前記制御部は、前記設定処理の後、各前記画像上で前記判定パラメータを用いて姿勢を判定することによって前記判定パラメータを検証する検証処理を実行してもよい。   In addition, after the setting process, the control unit may execute a verification process of verifying the determination parameter by determining a posture on each of the images using the determination parameter.

上記の設定装置によると、判定パラメータの信頼性を向上させることができる。   According to the above setting apparatus, the reliability of the determination parameter can be improved.

また、本明細書で開示する表面実装機は、上記の設定装置と、部品供給装置によって供給される前記部品を保持して基板に実装する実装部と、を備える。   In addition, the surface mounter disclosed in the present specification includes the setting device described above and a mounting unit that holds the component supplied by the component supply device and mounts the component on a substrate.

上記の表面実装機によると、オペレータが手作業で判定パラメータを設定する場合に比べて判定パラメータを効率よく設定することができる。   According to the above-mentioned surface mounting machine, the judgment parameter can be set efficiently as compared with the case where the operator manually sets the judgment parameter.

また、前記制御部は、前記実装部によって前記部品を保持し、前記実装部によって保持されている前記部品を前記撮像部によって撮像してもよい。   Further, the control unit may hold the component by the mounting unit, and the imaging unit may image the component held by the mounting unit.

従来は撮像部によって部品の裏面を撮像するためにオペレータが手作業で実装部に部品を保持させていた。言い換えるとオペレータが実装部に部品を手付けしていた。このためオペレータにとって手間であった。特に極小部品は実装部に保持させることが困難であるためオペレータにとって大きな手間であった。これに対し、表面実装機によると、オペレータは実装部に部品を保持させる作業を行わなくてよいのでオペレータの手間を軽減することができる。   Conventionally, the operator manually holds the component on the mounting unit in order to image the back surface of the component by the imaging unit. In other words, the operator hand-painted the part on the mounting unit. For this reason, it was troublesome for the operator. In particular, it is difficult for the operator to hold a very small component in the mounting portion. On the other hand, according to the surface mounter, the operator does not have to carry out the work of holding the components in the mounting portion, so that the labor of the operator can be reduced.

実施形態1に係る表面実装機の全体構成を示す模式図A schematic view showing an entire configuration of a surface mounter according to Embodiment 1. ヘッドユニット及び基板撮像カメラの正面図Front view of head unit and substrate imaging camera 表面実装機の電気的構成を示すブロック図Block diagram showing the electrical configuration of the surface mounter 部品(PLCC)を上方から撮像した画像を示す模式図A schematic diagram showing an image of a part (PLCC) taken from above 部品(SOP)を上方から撮像した画像を示す模式図A schematic diagram showing an image of a part (SOP) taken from above 判定領域(検出円)を示す模式図A schematic diagram showing the judgment area (detection circle) 回転角度判定パラメータを示す模式図Schematic diagram showing rotation angle determination parameters 部品(PLCC)を上方から撮像した画像を示す模式図A schematic diagram showing an image of a part (PLCC) taken from above 回転角度判定パラメータの設定処理のフローチャートFlow chart of setting process of rotation angle judgment parameter 差画像の一例を示す模式図A schematic view showing an example of a difference image 回転角度の判定処理のフローチャートFlow chart of rotation angle determination processing 実施形態2に係る部品の模式図Schematic diagram of parts according to the second embodiment 差画像の一例を示す模式図A schematic view showing an example of a difference image 表裏判定パラメータを示す模式図A schematic diagram showing front and back judgment parameters 表裏判定パラメータの設定処理のフローチャートFlow chart of setting process of front and back judgment parameter 実施形態3に係る部品の模式図Schematic diagram of parts according to the third embodiment 表裏判定パラメータを示す模式図A schematic diagram showing front and back judgment parameters

<実施形態1>
実施形態1を図1ないし図11によって説明する。以降の説明では図1に示す左右方向をX軸方向、前後方向をY軸方向、図2に示す上下方向をZ軸方向という。また、以降の説明では図1に示す右側を上流側、左側を下流側という。また、以降の説明では同一の構成部材には一部を除いて図面の符号を省略している場合がある。
First Embodiment
The first embodiment will be described with reference to FIGS. In the following description, the left-right direction shown in FIG. 1 is referred to as the X-axis direction, the front-rear direction as the Y-axis direction, and the up-down direction shown in FIG. 2 as the Z-axis direction. In the following description, the right side shown in FIG. 1 is referred to as the upstream side, and the left side is referred to as the downstream side. Further, in the following description, reference numerals of the drawings may be omitted except for some of the same constituent members.

(1)表面実装機の全体構成
図1を参照して、表面実装機1の全体構成について説明する。表面実装機1は基台10、搬送コンベア11、テープ部品供給装置12、トレイ部品供給装置13、ヘッドユニット14、ヘッド搬送部15、2つの部品撮像カメラ16(撮像部、第2の撮像部の一例)、基板撮像カメラ17(撮像部、第1の撮像部の一例)、図3に示す制御部30、操作部31などを備えている。部品撮像カメラ16、基板撮像カメラ17及び制御部30は実施形態1に係る設定装置2(図3参照)を構成している。ヘッドユニット14及びヘッド搬送部15は実装部の一例である。
(1) Overall Configuration of Surface Mount Machine The overall configuration of the surface mount machine 1 will be described with reference to FIG. The surface mounter 1 includes a base 10, a transfer conveyor 11, a tape component supply device 12, a tray component supply device 13, a head unit 14, a head transfer unit 15, two component imaging cameras 16 (imaging unit, second imaging unit An example), a substrate imaging camera 17 (an imaging unit, an example of a first imaging unit), a control unit 30 shown in FIG. 3, an operation unit 31, and the like are provided. The component imaging camera 16, the substrate imaging camera 17, and the control unit 30 constitute the setting device 2 (see FIG. 3) according to the first embodiment. The head unit 14 and the head conveyance unit 15 are an example of a mounting unit.

基台10は平面視長方形状をなすとともに上面が平坦とされている。図1において二点鎖線で示す矩形枠Aは基板Pに部品Eを実装するときの作業位置を示している。
搬送コンベア11は基板PをX軸方向の上流側から作業位置Aに搬入し、作業位置Aで部品Eが実装された基板Pを下流側に搬出するものである。搬送コンベア11はX軸方向に循環駆動する一対のコンベアベルト11A及び11B、コンベアベルト11A及び11Bを駆動するコンベア駆動モータ44(図3参照)などを備えている。後側のコンベアベルト11Aは前後方向に移動可能であり、基板Pの幅に応じて2つのコンベアベルト11Aと11Bとの間隔を調整することができる。
The base 10 has a rectangular shape in plan view and a flat upper surface. A rectangular frame A indicated by a two-dot chain line in FIG. 1 indicates a working position when the component E is mounted on the substrate P.
The transport conveyor 11 carries the substrate P from the upstream side in the X-axis direction to the work position A, and carries out the substrate P on which the component E is mounted at the work position A to the downstream side. The conveyer 11 includes a pair of conveyer belts 11A and 11B cyclically driven in the X-axis direction, a conveyer drive motor 44 (see FIG. 3) driving the conveyer belts 11A and 11B, and the like. The rear conveyor belt 11A can move in the front-rear direction, and the distance between the two conveyor belts 11A and 11B can be adjusted according to the width of the substrate P.

2つのテープ部品供給装置12は搬送コンベア11の前側においてX軸方向に並んで配されている。テープ部品供給装置12は比較的小さな部品Eを供給するものであり、複数のフィーダ12Aが左右方向に横並び状に整列して取り付けられている。各フィーダ12Aは複数の部品Eが収容された部品テープ(不図示)が巻回されたリール(不図示)、及び、リールから部品テープを引き出す電動式の送出装置(不図示)等を備えており、搬送コンベア11側に位置する端部に設けられた部品供給位置から部品Eを一つずつ供給する。   The two tape component supply devices 12 are disposed side by side in the X-axis direction on the front side of the transport conveyor 11. The tape component feeding device 12 feeds a relatively small component E, and a plurality of feeders 12A are attached side by side in the lateral direction. Each feeder 12A is provided with a reel (not shown) around which a component tape (not shown) in which a plurality of components E are accommodated is wound, an electrically driven delivery device (not shown) for pulling out the component tape from the reel, etc. Parts E are supplied one by one from the parts supply position provided at the end located on the side of the conveyer 11.

2つのトレイ部品供給装置13は搬送コンベア11の後側においてX軸方向に並んで配されている。トレイ部品供給装置13は比較的大きな部品Eを供給するものであり、縦長の箱状の本体部13D、本体部13Dの内側に昇降可能に収容されており、複数のパレット13Aが格納されているマガジン(不図示)、マガジンを昇降させるマガジン昇降部(不図示)、本体部13Dから前側に延出するように設けられている略平板状の供給ステージ13C、パレット13Aを前後方向に搬送するパレット搬送部(不図示)などを備えている。各パレット13Aにはトレイ13Bが載置されている。トレイ13Bには部品Eが整列した状態で載置されており、図示しないパレット搬送部によってパレット13Aが供給ステージ13C上に引き出されることによって複数の部品Eが一括して供給される。   The two tray component supply devices 13 are disposed side by side in the X-axis direction on the rear side of the transport conveyor 11. The tray component supply device 13 supplies a relatively large component E, and is housed inside the vertically elongated box-like main body portion 13D and the main body portion 13D so as to be able to move up and down, and a plurality of pallets 13A are stored. A magazine (not shown), a magazine elevating part (not shown) for raising and lowering the magazine, a substantially flat supply stage 13C provided to extend forward from the main body 13D, and a pallet for conveying the pallet 13A in the front-rear direction A transport unit (not shown) and the like are provided. A tray 13B is mounted on each pallet 13A. Parts E are placed on the tray 13B in an aligned state, and the pallet 13A is pulled out onto the supply stage 13C by a pallet transport unit (not shown), so that a plurality of parts E are collectively supplied.

ヘッドユニット14は複数(ここでは5個)の実装ヘッド20を昇降可能に且つ軸周りに回転可能に支持するものである。ヘッドユニット14の構成については後述する。   The head unit 14 supports a plurality (five in this case) of mounting heads 20 so as to be movable up and down and rotatably around an axis. The configuration of the head unit 14 will be described later.

ヘッド搬送部15はヘッドユニット14を所定の可動範囲内でX軸方向及びY軸方向に搬送するものである。ヘッド搬送部15はヘッドユニット14をX軸方向に往復移動可能に支持しているビーム21、ビーム21をY軸方向に往復移動可能に支持している一対のY軸ガイドレール22、ヘッドユニット14をX軸方向に往復移動させるX軸サーボモータ40、ビーム21をY軸方向に往復移動させるY軸サーボモータ41などを備えている。   The head transport unit 15 transports the head unit 14 in the X-axis direction and the Y-axis direction within a predetermined movable range. The head transport unit 15 includes a beam 21 supporting the head unit 14 so as to reciprocate in the X axis direction, a pair of Y axis guide rails 22 supporting the beam 21 so as to reciprocate in the Y axis direction, and the head unit 14 And the Y axis servomotor 41 for reciprocating the beam 21 in the Y axis direction.

2つの部品撮像カメラ16は実装ヘッド20に吸着されている部品Eを下から撮像するものである。前側の部品撮像カメラ16は搬送コンベア11の前側においてX軸方向に並んだ2つのテープ部品供給装置12の間に配されている。後側の部品撮像カメラ16は搬送コンベア11の後側においてX軸方向に並んだ2つのトレイ部品供給装置13の間に配されている。各部品撮像カメラ16は撮像センサ、部品Eに光を照射するLEDなどの光源、光源から出射されて部品Eによって反射された光を撮像センサの受光面に結像する光学系などを有しており、受光面が上を向く姿勢で配されている。   The two component imaging cameras 16 image the component E adsorbed by the mounting head 20 from below. The front side component imaging camera 16 is disposed on the front side of the transport conveyor 11 between two tape component supply devices 12 aligned in the X-axis direction. The rear side component imaging camera 16 is disposed between the two tray component supply devices 13 aligned in the X-axis direction on the rear side of the transport conveyor 11. Each component imaging camera 16 has an imaging sensor, a light source such as an LED for emitting light to the component E, and an optical system for forming the light emitted from the light source and reflected by the component E on the light receiving surface of the imaging sensor It is arranged in a posture in which the light receiving surface faces upward.

基板撮像カメラ17はヘッドユニット14に設けられている。基板撮像カメラ17は基板Pに付されているフィデューシャルマークを上方から撮像するためのものである。また、基板撮像カメラ17はテープ部品供給装置12やトレイ部品供給装置13によって供給される部品Eの撮像にも用いられる。基板撮像カメラ17の構成については後述する。   The substrate imaging camera 17 is provided in the head unit 14. The substrate imaging camera 17 is for imaging a fiducial mark attached to the substrate P from above. Further, the substrate imaging camera 17 is also used for imaging the component E supplied by the tape component supply device 12 and the tray component supply device 13. The configuration of the substrate imaging camera 17 will be described later.

(1−1)ヘッドユニット及び基板撮像カメラ
次に、図2を参照して、ヘッドユニット14及び基板撮像カメラ17について説明する。実施形態1に係るヘッドユニット14は所謂インライン型であり、複数の実装ヘッド20がX軸方向に並んで設けられている。また、ヘッドユニット14にはこれらの実装ヘッド20を個別に昇降させるZ軸サーボモータ42(図3参照)やこれらの実装ヘッド20を一斉に軸周りに回転させるR軸サーボモータ43(図3参照)などが設けられている。
(1-1) Head Unit and Substrate Imaging Camera Next, the head unit 14 and the substrate imaging camera 17 will be described with reference to FIG. The head unit 14 according to the first embodiment is a so-called in-line type, and a plurality of mounting heads 20 are provided side by side in the X-axis direction. In addition, the head unit 14 includes a Z-axis servomotor 42 (see FIG. 3) for moving the mounting heads 20 individually up and down, and an R-axis servomotor 43 for rotating the mounting heads 20 around the axis at the same time (see FIG. 3). Etc. are provided.

各実装ヘッド20は部品Eを吸着(保持の一例)及び解放するものであり、ノズルシャフト23と、ノズルシャフト23の下端に着脱可能に取り付けられている吸着ノズル24とを有している。吸着ノズル24にはノズルシャフト23を介して図示しない空気供給装置から負圧及び正圧が供給される。吸着ノズル24は負圧が供給されることによって部品Eを吸着し、正圧が供給されることによってその部品Eを解放する。   Each mounting head 20 suctions (parts an example of holding) and releases the component E, and has a nozzle shaft 23 and a suction nozzle 24 detachably attached to the lower end of the nozzle shaft 23. Negative pressure and positive pressure are supplied to the suction nozzle 24 from an air supply device (not shown) via the nozzle shaft 23. The suction nozzle 24 sucks the component E by being supplied with a negative pressure, and releases the component E by being supplied with a positive pressure.

なお、ここではインライン型のヘッドユニット14を例に説明するが、ヘッドユニット14は例えば複数の実装ヘッド20が円周上に配列された所謂ロータリーヘッドであってもよい。   Here, although the in-line type head unit 14 is described as an example, the head unit 14 may be a so-called rotary head in which a plurality of mounting heads 20 are arranged on the circumference, for example.

基板撮像カメラ17はヘッドユニット14の下端部に設けられている。基板撮像カメラ17は撮像センサ、被写体(フィデューシャルマークや部品E)に光を照射するLEDなどの光源、光源から出射されて被写体によって反射された光を撮像センサの受光面に結像する光学系などを有しており、受光面が斜め下を向く姿勢で配されている。   The substrate imaging camera 17 is provided at the lower end of the head unit 14. The substrate imaging camera 17 is an imaging sensor, a light source such as an LED for emitting light to a subject (a fiducial mark and a part E), and an optical for imaging light emitted from the light source and reflected by the subject on a light receiving surface of the imaging sensor It has a system, etc., and is disposed in a posture in which the light receiving surface faces obliquely downward.

(1−2)表面実装機の電気的構成
次に、図3を参照して、表面実装機1の電気的構成について説明する。表面実装機1は制御部30及び操作部31を備えている。制御部30は演算処理部32、モータ制御部33、記憶部34、画像処理部35、外部入出力部36、通信部37などを備えている。
(1-2) Electrical Configuration of Surface Mount Machine Next, the electrical configuration of the surface mount machine 1 will be described with reference to FIG. The surface mounter 1 includes a control unit 30 and an operation unit 31. The control unit 30 includes an arithmetic processing unit 32, a motor control unit 33, a storage unit 34, an image processing unit 35, an external input / output unit 36, a communication unit 37, and the like.

演算処理部32はCPU、ROM、RAMなどを備えており、ROMに記憶されている制御プログラムを実行することによって表面実装機1の各部を制御する。   The arithmetic processing unit 32 includes a CPU, a ROM, a RAM, and the like, and controls each part of the surface mounter 1 by executing a control program stored in the ROM.

モータ制御部33は演算処理部32の制御の下でX軸サーボモータ40、Y軸サーボモータ41、Z軸サーボモータ42、R軸サーボモータ43、コンベア駆動モータ44などの各モータを回転させる。   The motor control unit 33 rotates motors such as the X-axis servomotor 40, the Y-axis servomotor 41, the Z-axis servomotor 42, the R-axis servomotor 43, and the conveyor drive motor 44 under the control of the arithmetic processing unit 32.

記憶部34には各種のデータが記憶されている。各種のデータには生産が予定されている基板Pの生産枚数や品種に関する情報、基板Pに実装される部品Eの数や種類に関する情報、各部品Eを基板Pに実装する実装位置に関する情報、それらの部品Eの実装順序に関する情報、部品Eの回転角度が0度のときにおける部品Eの外周形状を表す形状データ、後述する判定パラメータ等が含まれる。   The storage unit 34 stores various data. Various data include information on the number and types of substrates P to be produced, information on the number and types of components E to be mounted on the substrate P, information on mounting positions at which the components E are to be mounted on the substrate P, The information on the mounting order of the parts E, shape data representing the outer peripheral shape of the parts E when the rotation angle of the parts E is 0 degree, determination parameters to be described later, and the like are included.

画像処理部35は部品撮像カメラ16や基板撮像カメラ17から出力される画像信号が取り込まれるように構成されており、出力された画像信号に基づいてデジタル画像を生成する。   The image processing unit 35 is configured to receive an image signal output from the component imaging camera 16 or the substrate imaging camera 17, and generates a digital image based on the output image signal.

外部入出力部36はいわゆるインターフェースであり、表面実装機1の本体に設けられている各種センサ類45から出力される検出信号が取り込まれるように構成されている。また、外部入出力部36は演算処理部32から出力される制御信号に基づいて各種アクチュエータ類46に対する動作制御を行うように構成されている。   The external input / output unit 36 is a so-called interface, and is configured to receive detection signals output from various sensors 45 provided in the main body of the surface mounter 1. The external input / output unit 36 is configured to perform operation control on the various actuators 46 based on a control signal output from the arithmetic processing unit 32.

通信部37は制御部30がテープ部品供給装置12やトレイ部品供給装置13と通信するためのものである。   The communication unit 37 is for the control unit 30 to communicate with the tape component supply device 12 and the tray component supply device 13.

操作部31は液晶ディスプレイなどの表示装置や、タッチパネル、キーボード、マウスなどの入力装置を備えている。作業者は操作部31を操作して各種の設定などを行うことができる。   The operation unit 31 includes a display device such as a liquid crystal display, and an input device such as a touch panel, a keyboard, and a mouse. The operator can operate the operation unit 31 to perform various settings and the like.

なお、制御部30はCPUに替えて、あるいはCPUに加えてASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)などを備えていてもよい。   The control unit 30 may include an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like instead of or in addition to the CPU.

(2)部品の回転角度の判定
次に、図4及び図5を参照して、部品Eの回転角度の判定について説明する。ここでは部品EとしてPLCC(Plastic leaded chip carrier)、及び、SOP(Small Outline Package)を例に説明する。
(2) Determination of Rotation Angle of Part Next, determination of the rotation angle of the part E will be described with reference to FIGS. 4 and 5. Here, PLCC (Plastic leaded chip carrier) and SOP (Small Outline Package) will be described as parts E as an example.

図4において画像51Aは中心点S周りの回転角度θが0度(あるいはそれに近い角度)となるように載置されたPLCCを上方から撮像した画像である。なお、画像51AではPLCCが中心点S周りに回転しているが、便宜上、ここでは画像51Aに示すPLCCの角度を0度とする。
画像51B〜51Dは画像51Aを90度、180度、270度回転させることによって生成された画像である。以降の説明では画像51Aを0度画像、画像51Bを90度画像、画像51Cを180度画像、画像51Dを270度画像という。図4に示すように、PLCCは外周形状が略正方形であり、0度、90度、180度及び270度の4角度において外周形状が一致する。このため外周形状だけでは回転角度θを判定することができない。
In FIG. 4, an image 51 </ b> A is an image obtained by photographing from above the PLCC placed so that the rotation angle θ around the center point S becomes 0 degree (or an angle close to it). Although PLCC rotates around central point S in image 51A, for convenience, the PLCC angle shown in image 51A is assumed to be 0 degrees here.
Images 51B to 51D are images generated by rotating the image 51A by 90 degrees, 180 degrees, and 270 degrees. In the following description, the image 51A is referred to as a 0 degree image, the image 51B as a 90 degree image, the image 51C as a 180 degree image, and the image 51D as a 270 degree image. As shown in FIG. 4, the PLCC has a substantially square outer peripheral shape, and the outer peripheral shapes coincide at four angles of 0 degrees, 90 degrees, 180 degrees, and 270 degrees. Therefore, the rotation angle θ can not be determined only by the outer peripheral shape.

図5において画像52Aは回転角度θが0度(あるいはそれに近い角度)となるように載置されたSOPを上方から撮像した画像である。SOPの外周形状は横長の長方形状であり、左右から同数のリードが延出している。図5に示すように、SOPは0度及び180度の2角度において外周形状が一致する。このため外周形状だけでは回転角度θを判定することができない。   In FIG. 5, an image 52A is an image obtained by photographing from above the SOP placed so that the rotation angle θ is 0 degree (or an angle close to it). The outer shape of the SOP is a horizontally long rectangular shape, and the same number of leads extend from the left and right. As shown in FIG. 5, the SOPs have the same outer circumferential shape at two angles of 0 degrees and 180 degrees. Therefore, the rotation angle θ can not be determined only by the outer peripheral shape.

しかしながら、これらの部品Eは回転角度θを判定可能な特徴部分を有している。例えば、図4に示すようにPLCCは一つだけ他のリード56よりも長いリード53を有している。画像51A〜51Dに示すように当該長いリードにおいて他のリード56より長い部分54の位置はPLCCの回転角度θによって異なる。このため、PLCCを撮像した画像上で当該部分54を検出することにより、PLCCの回転角度θを判定することができる。すなわち当該部分54はPLCCの回転角度θを判定可能な特徴部分である。
図5に示すSOPの場合は表面にマーク55が印刷などによって付されている。マーク55はSOPの回転角度θを判定可能な特徴部分である。
However, these parts E have features capable of determining the rotation angle θ. For example, as shown in FIG. 4, the PLCC has leads 53 which are longer than the other leads 56 by one. As shown in the images 51A to 51D, the position of the portion 54 which is longer than the other leads 56 in the long lead differs depending on the rotation angle θ of the PLCC. Therefore, the rotation angle θ of the PLCC can be determined by detecting the part 54 on the image obtained by imaging the PLCC. That is, the portion 54 is a feature portion capable of determining the rotation angle θ of the PLCC.
In the case of the SOP shown in FIG. 5, a mark 55 is attached on the surface by printing or the like. The mark 55 is a feature portion capable of determining the rotation angle θ of the SOP.

そこで、制御部30は基板Pへの部品Eの実装を開始する前に予め特徴部分に基づいて回転角度判定パラメータ91(図7参照、判定パラメータの一例)を設定し、基板Pに部品Eを実装するとき、回転角度判定パラメータ91を用いて部品Eの回転角度θを判定する。以下、具体的に説明する。   Therefore, before starting the mounting of the component E on the substrate P, the control unit 30 sets the rotation angle determination parameter 91 (see FIG. 7, an example of the determination parameter) in advance based on the characteristic portion, When mounting, the rotation angle θ of the component E is determined using the rotation angle determination parameter 91. The details will be described below.

(2−1)回転角度判定パラメータ
ここでは先ず、図6を参照して、回転角度判定パラメータ91の設定に用いる円形の判定領域61(以下、検出円61という)について説明する。検出円61は0度画像上における特徴部分54の位置を示すものであり、特徴部分54に内接する円として設定される。なお、判定領域61の形状は円に限定されるものではなく、適宜に決定することができる。例えば判定領域61は特徴部分54に内接する四角形であってもよい。また、判定領域61は特徴部分54の内側に設定されればよく、必ずしも内接していなくてもよい。
(2-1) Rotation Angle Determination Parameter Here, with reference to FIG. 6, a circular determination area 61 (hereinafter referred to as a detection circle 61) used to set the rotation angle determination parameter 91 will be described. The detection circle 61 indicates the position of the feature portion 54 on the 0 degree image, and is set as a circle inscribed in the feature portion 54. The shape of the determination area 61 is not limited to a circle, and can be determined as appropriate. For example, the determination area 61 may be a quadrilateral inscribed in the feature portion 54. Further, the determination area 61 may be set inside the feature portion 54 and may not necessarily be inscribed.

次に、図7を参照して、回転角度判定パラメータ91について説明する。回転角度判定パラメータ91には「検出角度」、「検出円直径」、「検出円中心位置X」、「検出円中心位置Y」、「特徴部分の色」、及び、「最小濃度差」が含まれる。   Next, the rotation angle determination parameter 91 will be described with reference to FIG. The rotation angle determination parameter 91 includes “detection angle”, “detection circle diameter”, “detection circle center position X”, “detection circle center position Y”, “feature portion color”, and “minimum density difference” Be

「検出角度」は外周形状が形状データと一致する回転角度θの数である。具体的には、前述したように記憶部34には部品Eの回転角度θが0度のときにおける部品Eの外周形状を表す形状データが記憶されている。PLCCは0度、90度、180度及び270度の4角度において外周形状が形状データと一致するので「検出角度」に4が設定される。また、SOPは0度及び180度の2角度において外周形状が形状データと一致するので「検出角度」に2が設定される。   The “detection angle” is the number of rotation angles θ at which the outer peripheral shape matches the shape data. Specifically, as described above, shape data representing an outer peripheral shape of the part E when the rotation angle θ of the part E is 0 degree is stored in the storage unit 34. Since the outer peripheral shape of the PLCC matches the shape data at four angles of 0 degrees, 90 degrees, 180 degrees and 270 degrees, 4 is set as the "detection angle". Further, since the outer peripheral shape of the SOP matches the shape data at two angles of 0 degree and 180 degrees, 2 is set as the "detection angle".

「検出円直径」は検出円61の直径であり、「検出円中心位置X」は検出円61の中心点のX座標、「検出円中心位置Y」は検出円61の中心点のY座標である。
ここで、画像51Aに示すように部品Eは0度画像上で少し回転してしまっている場合もある。このため、これらの座標は例えば0度画像上における部品Eの左上角を原点、部品Eの上辺をX軸、部品Eの左辺をY軸とするXY座標系で設定されるものとする。
"Detection circle diameter" is the diameter of detection circle 61, "detection circle center position X" is the X coordinate of the center point of detection circle 61, and "detection circle center position Y" is the Y coordinate of the center point of detection circle 61 is there.
Here, as shown in the image 51A, the part E may be slightly rotated on the 0 degree image. Therefore, for example, these coordinates are set in an XY coordinate system in which the upper left corner of the part E on the 0 degree image is the origin, the upper side of the part E is the X axis, and the left side of the part E is the Y axis.

「特徴部分の色」は特徴部分の色を示すものである。例えば図4に示す例では特徴部分54の色が白であるので白が設定される。これに対し、図8に示す例では上辺側、右辺側及び下辺側に他のリード56よりも長いリード53があり、左辺側には長いリード53がない。すなわち3つの位置に長いリード53があって1つの位置だけ長いリード53がない。この場合は長いリード53がない位置が特徴部分として認識される。このため特徴部分の色は黒となる。   "Color of feature" indicates the color of the feature. For example, in the example shown in FIG. 4, since the color of the feature portion 54 is white, white is set. On the other hand, in the example shown in FIG. 8, the leads 53 longer than the other leads 56 are present on the upper side, the right side and the lower side, and the long leads 53 are not present on the left side. That is, there are long leads 53 at three positions and no leads 53 long at one position. In this case, a position without the long lead 53 is recognized as a feature. Therefore, the color of the feature portion is black.

「最小濃度差」は回転角度θの判定可否を判断する基準となる値である。図6に示すように、制御部30は0度画像において上述した検出円61内の画素の濃度の平均値を求めるとともに、0度画像上において検出円61を部品Eの中心点S周りに90度、180度、270度回転させ、各角度において検出円61内の画素の濃度の平均値を求める。そして、制御部30は最大の平均値と最小の平均値との差を「最小濃度差」として設定する。以下「最小濃度差」を設定する理由について説明する。   The “minimum density difference” is a value serving as a reference for determining whether or not the rotation angle θ can be determined. As shown in FIG. 6, the control unit 30 obtains the average value of the density of the pixels in the detection circle 61 described above in the 0 degree image, and 90 around the center point S of the part E on the 0 degree image. The angle is rotated 180 degrees and 270 degrees, and the average value of the density of the pixels in the detection circle 61 is obtained at each angle. Then, the control unit 30 sets the difference between the maximum average value and the minimum average value as the “minimum density difference”. The reason for setting the "minimum density difference" will be described below.

本来、各角度における平均値のうち最大の平均値と最小の平均値との差はある程度大きくなるはずであるが、何らかの理由によって差が小さくなってしまうこともあり得る。その場合は回転角度判定パラメータ91を設定しても信頼性が低下してしまう虞がある。このため、制御部30は最大の平均値と最小の平均値との差が「最小濃度差」以上であるか否かを判断し、「最小濃度差」以上の場合は回転角度θを判定可と判断する一方、「最小濃度差」未満の場合は判定不可と判断する。   Essentially, the difference between the largest average value and the smallest average value among the average values at each angle should be somewhat large, but the difference may be small for some reason. In such a case, the reliability may be reduced even if the rotation angle determination parameter 91 is set. Therefore, the control unit 30 determines whether or not the difference between the maximum average value and the minimum average value is equal to or more than the "minimum density difference", and in the case where the difference is equal to or more than the "minimum density difference" On the other hand, if the difference is less than the "minimum density difference", it is determined that the determination is not possible.

(2−2)回転角度判定パラメータの設定処理
次に、図9を参照して、回転角度判定パラメータ91の設定処理について説明する。本処理はオペレータが設定対象の部品Eを所定の位置(例えばトレイ13B)に載置した後、操作部31を操作して回転角度判定パラメータ91の設定を指示すると開始される。ここで、オペレータは当該所定の位置に部品Eを載置するとき、回転角度θが0度(あるいはそれに近い角度)となるように載置するものとする。
(2-2) Setting Process of Rotation Angle Determination Parameter Next, a setting process of the rotation angle determination parameter 91 will be described with reference to FIG. The present process is started when the operator places the component E to be set on a predetermined position (for example, the tray 13B) and then operates the operation unit 31 to instruct setting of the rotation angle determination parameter 91. Here, when placing the part E at the predetermined position, the operator places it so that the rotation angle θ becomes 0 degree (or an angle close to it).

S101では、制御部30は上述した所定の位置に載置されている部品Eを基板撮像カメラ17によって撮像して画像を生成する。以降の説明ではS101で生成した画像を0度画像という。
S102では、制御部30は0度画像を90度、180度、270度回転させることによって90度画像、180度画像及び270度画像を生成する。
In S101, the control unit 30 captures an image of the component E placed at the above-described predetermined position by using the substrate imaging camera 17. In the following description, the image generated in step S101 is referred to as a 0 degree image.
In S102, the control unit 30 generates a 90 degree image, a 180 degree image, and a 270 degree image by rotating the 0 degree image by 90 degrees, 180 degrees, and 270 degrees.

S103では、制御部30は0度〜270度の各画像について部品Eの外周形状が形状データと一致するか否かを判断する。例えばPLCCは0度〜270度画像のいずれにおいても外周形状が形状データと一致するので外周形状が一致すると判断される。これに対し、SOPは0度及び180度画像では外周形状が一致するが、90度及び270度画像では外周形状が一致しないので一致しないと判断される。   In S103, the control unit 30 determines whether the outer peripheral shape of the part E matches the shape data for each of the images of 0 degrees to 270 degrees. For example, in PLCC, since the outer peripheral shape matches the shape data in any of the 0 ° to 270 ° images, it is determined that the outer peripheral shapes match. On the other hand, in SOP, the outer peripheral shapes coincide with each other in the 0 degree and 180 degree images, but since the outer peripheral shapes do not match in the 90 degree and 270 degree images, it is determined that they do not match.

ここで、部品Eは必ずしも完全に0度となるように載置されるとは限らないので、制御部30は0度画像における部品Eの回転角度θが0度となるように0度画像の回転角度θを補正してから形状データと比較してもよい。その場合は90度〜270度画像についても同じ角度補正するものとする。
制御部30は、いずれの画像においても形状データと一致する場合は外周形状だけでは回転角度θを判定できない部品E(言い換えると特徴部分を認識する必要がある部品E)であるとしてS106に進み、一致しない場合はS104に進む。
Here, since the part E is not necessarily placed so as to be completely 0 degrees, the control unit 30 sets the rotation angle θ of the part E in the 0 degree image to 0 degrees so that the rotation angle θ of the part E becomes 0 degrees. After correcting the rotation angle θ, it may be compared with the shape data. In that case, the same angle correction is performed for the 90 ° to 270 ° image.
If the control unit 30 matches the shape data in any of the images, the control unit 30 determines that the rotation angle θ can not be determined only by the outer peripheral shape (in other words, the part E that needs to recognize the feature portion). If they do not match, the process proceeds to step S104.

S104では、制御部30は0度及び180度の各画像について部品Eの外周形状が形状データと一致するか否かを判断する。例えばSOPは0度及び180度画像のいずれにおいても外周形状が形状データと一致するので外周形状が一致すると判断される。制御部30は、いずれの画像においても形状データと一致する場合は外周形状だけでは回転角度θを判定できない部品E(言い換えると特徴部分を認識する必要がある部品E)であるとしてS106に進み、一致しない場合はS105に進む。   In S104, the control unit 30 determines whether the outer peripheral shape of the part E matches the shape data for each of the 0 ° and 180 ° images. For example, since the outer peripheral shape of the SOP matches the shape data in any of the 0 degree and 180 degree images, it is determined that the outer peripheral shape matches. If the control unit 30 matches the shape data in any of the images, the control unit 30 determines that the rotation angle θ can not be determined only by the outer peripheral shape (in other words, the part E that needs to recognize the feature portion). If they do not match, the process proceeds to step S105.

S105では、制御部30はエラー処理を実行する。具体的には、制御部30は回転角度判定パラメータ91の設定を中止し、回転角度判定パラメータ91を設定できない旨のエラーメッセージを操作部31の表示装置に表示させる。   At S105, the control unit 30 executes an error process. Specifically, the control unit 30 cancels the setting of the rotation angle determination parameter 91 and causes the display device of the operation unit 31 to display an error message indicating that the rotation angle determination parameter 91 can not be set.

S106では、制御部30は次に説明する差画像を生成する。
図10を参照して、差画像について説明する。ここではPLCCを例に説明する。差画像65は0度〜270度の4つの画像を重ねた場合にそれら4つの画像全てにおいて濃度がほぼ一致する画素の濃度を0(黒)、それ以外の画素の濃度を255(白)としたものである。例えば0度画像においてPLCCの特徴部分を表している画素の濃度はそれら4つの画像を重ねた場合に90度〜270度画像の同じ位置にある画素の濃度と一致しない。このため、差画像65において0度画像の特徴部分に対応する画素は白となる。90度〜270度画像についても同様である。これに対し、特徴部分以外の画素の濃度は4つの画像においてほぼ一致するので黒となる。このため、図10に示すように差画像65は4つの画像から特徴部分を抽出した画像となる。
At S106, the control unit 30 generates a difference image to be described next.
The difference image will be described with reference to FIG. Here, PLCC will be described as an example. In the difference image 65, when four images of 0 degree to 270 degrees are overlapped, the density of the pixel having almost the same density in all four images is 0 (black), and the density of the other pixels is 255 (white). It is For example, the density of the pixel representing the feature of the PLCC in the 0 ° image does not match the density of the pixel at the same position in the 90 ° to 270 ° image when these four images are superimposed. Therefore, in the difference image 65, the pixel corresponding to the characteristic part of the 0 degree image is white. The same applies to the 90 ° to 270 ° images. On the other hand, the density of the pixels other than the feature portion is black because they are almost the same in the four images. For this reason, as shown in FIG. 10, the difference image 65 is an image obtained by extracting characteristic portions from four images.

S107では、制御部30は差画像に基づいて0度画像上で特徴部分を認識する(認識処理の一例)。具体的には例えば、制御部30は0度画像上で輪郭追跡処理によって部品Eの輪郭を検出するとともに、差画像上で輪郭追跡処理によって特徴部分の輪郭を検出し、0度画像上で検出した部品Eの輪郭において差画像上で検出した輪郭と一致する部分を特徴部分として認識する。なお、特徴部分を認識する方法はこれに限られるものではなく、適宜の方法で認識することができる。
S108では、制御部30は0度画像上の特徴部分に基づいて回転角度判定パラメータ91を設定する(設定処理の一例)。回転角度判定パラメータ91の設定については前述した通りであるので説明は省略する。
In S107, the control unit 30 recognizes the feature portion on the 0-degree image based on the difference image (an example of recognition processing). Specifically, for example, the control unit 30 detects the outline of the part E by the outline tracking process on the 0 degree image, detects the outline of the feature portion by the outline tracking process on the difference image, and detects the outline on the 0 degree image A portion of the contour of the part E that matches the contour detected on the difference image is recognized as a feature portion. The method of recognizing the characteristic part is not limited to this, and can be recognized by an appropriate method.
In S108, the control unit 30 sets the rotation angle determination parameter 91 based on the characteristic part on the 0 degree image (an example of setting processing). The setting of the rotation angle determination parameter 91 is as described above, so the description is omitted.

S109では、制御部30は設定した回転角度判定パラメータ91を検証する(検証処理の一例)。具体的には、制御部30は0度〜270度画像の4画像(「検出角度」が2の場合は0度及び180度画像の2画像)についてS108で設定した回転角度判定パラメータ91を用いて部品Eの回転角度θを判定する。回転角度判定パラメータ91を用いた部品Eの回転角度θの判定の仕方についての説明は後述する。
制御部30はいずれの画像においても回転角度θを正しく判定できた場合は検証成功として本処理を終了し、少なくとも一つの画像で正しく判定できなかった場合は検証失敗としてS110に進む。
In S109, the control unit 30 verifies the set rotation angle determination parameter 91 (an example of verification process). Specifically, the control unit 30 uses the rotation angle determination parameter 91 set in S108 for four images of 0 degree to 270 degree images (two images of 0 degree and 180 degree images when “detection angle” is 2). Of the part E is determined. The method of determining the rotation angle θ of the component E using the rotation angle determination parameter 91 will be described later.
The control unit 30 ends the processing as verification success if the rotation angle θ can be correctly determined in any of the images, and proceeds to S110 as a verification failure if it can not be determined correctly in at least one image.

S110では、制御部30はエラー処理を実行する。具体的には、制御部30は回転角度判定パラメータ91の設定を中止し、回転角度判定パラメータ91を設定できなかった旨のエラーメッセージを操作部31の表示装置に表示させる。   At S110, the control unit 30 executes an error process. Specifically, the control unit 30 cancels the setting of the rotation angle determination parameter 91 and causes the display device of the operation unit 31 to display an error message indicating that the rotation angle determination parameter 91 can not be set.

(2−3)回転角度判定パラメータを用いた部品の回転角度の判定処理
次に、図11を参照して、回転角度判定パラメータ91を用いた部品の回転角度θの判定処理について説明する。ここではPLCCを例に説明する。制御部30はトレイ13Bに載置されている部品E(あるいは部品テープに収容されている部品E)を実装ヘッド20によって吸着して基板Pに実装するとき、実装ヘッド20によって吸着する前に基板撮像カメラ17によって部品Eを撮像して画像を生成する。本処理は当該画像が生成されると開始される。なお、前述したS109で実行される回転角度θの判定も本処理と同じ手順で実行される。
(2-3) Determination Processing of Rotation Angle of Component Using Rotation Angle Determination Parameter Next, determination processing of the rotation angle θ of the component using the rotation angle determination parameter 91 will be described with reference to FIG. Here, PLCC will be described as an example. When the control unit 30 sucks the component E placed on the tray 13B (or the component E stored in the component tape) by the mounting head 20 and mounts the component E on the substrate P, the substrate is not removed by the mounting head 20. The component E is imaged by the imaging camera 17 to generate an image. The process is started when the image is generated. The determination of the rotation angle θ performed in S109 described above is also performed in the same procedure as this process.

S201では、制御部30は回転角度判定パラメータ91の「検出円直径」、「検出円中心位置X」及び「検出円中心位置Y」に基づいて画像上に検出円61を設定する。
ここで、部品Eは回転していたり位置がずれていたりする状態で撮像される場合もある。このため、制御部30は例えば部品Eの左上角を原点、部品Eの上辺をX軸、部品Eの左辺をY軸とするXY座標系で検出円61を設定するものとする。
In S201, the control unit 30 sets a detection circle 61 on the image based on "detection circle diameter", "detection circle center position X" and "detection circle center position Y" of the rotation angle determination parameter 91.
Here, the part E may be imaged in a state where it is rotated or deviated in position. Therefore, for example, the control unit 30 sets the detection circle 61 in an XY coordinate system in which the upper left corner of the part E is the origin, the upper side of the part E is the X axis, and the left side of the part E is the Y axis.

S202では、制御部30は設定した検出円61内の画素の濃度の平均値を求める。ここではその平均値のことを0度における平均値というものとする。
S203では、制御部30は画像上で部品Eの中心点周りに検出円61を90度、180度及び270度回転させ、各角度において検出円61内の画素の濃度の平均値を求める。
In S202, the control unit 30 obtains an average value of the densities of the pixels in the set detection circle 61. Here, the average value is referred to as an average value at 0 degrees.
In S203, the control unit 30 rotates the detection circle 61 by 90 degrees, 180 degrees, and 270 degrees around the center point of the part E on the image, and obtains the average value of the densities of the pixels in the detection circle 61 at each angle.

S204では、制御部は最大の平均値と最小の平均値との差を求める。
S205では、制御部30はS204で求めた差が「最小濃度差」以上であるか否かを判断し、「最小濃度差」以上の場合は回転角度θを判定可と判断する一方、「最小濃度差」未満の場合は判定不可と判断する。制御部30は判定可と判断した場合はS206に進み、判定不可と判断した場合はS207に進む。
In S204, the control unit obtains the difference between the maximum average value and the minimum average value.
In step S205, the control unit 30 determines whether the difference obtained in step S204 is equal to or greater than the "minimum density difference". If the difference is equal to or greater than the "minimum density difference", the control unit 30 determines that the rotation angle θ is acceptable. If the difference is less than "density difference", it is determined that the determination is not possible. If the control unit 30 determines that the determination is possible, the process proceeds to S206, and if it is determined that the determination is not possible, the process proceeds to S207.

S206では、制御部30は「特徴部分の色」が白である場合は最大の平均値に対応する角度を部品Eの回転角度θと判定し、「特徴部分の色」が黒である場合は最小の平均値に対応する角度を部品Eの回転角度θと判定する。
S207では、制御部30はエラー処理を実行する。具体的には、制御部30は回転角度θの判定を中止し、回転角度θを判定できない旨のエラーメッセージを操作部31の表示装置に表示させる。
In S206, the control unit 30 determines the angle corresponding to the maximum average value as the rotation angle θ of the part E when the “color of the feature portion” is white, and when the “color of the feature portion” is black. The angle corresponding to the minimum average value is determined as the rotation angle θ of the part E.
At S207, the control unit 30 executes an error process. Specifically, the control unit 30 stops the determination of the rotation angle θ, and causes the display device of the operation unit 31 to display an error message indicating that the rotation angle θ can not be determined.

(3)実施形態の効果
以上説明した実施形態1に係る設定装置2(部品撮像カメラ16、基板撮像カメラ17及び制御部30)によると、オペレータが手作業で回転角度判定パラメータ91を設定する場合に比べて設定に要する時間を短縮することができるので、回転角度判定パラメータ91を効率よく設定することができる。
また、設定装置2によると、オペレータが手作業で設定する場合に比べてオペレータの作業負担を軽減することができる。また、オペレータが手作業で設定する場合は設定ミスが懸念されるが、設定装置2によるとそのような設定ミスを低減できるので回転角度判定パラメータ91の信頼性を向上させることができる。また、従来は、回転角度θを正しく判定できる回転角度判定パラメータ91を手作業で設定するためにはスキルが必要であった。例えばオペレータは各パラメータの意味を理解して適切な値を設定する必要があった。このため回転角度判定パラメータ91を設定できるオペレータが限られていた。これに対し、設定装置2によると、スキルレスで回転角度判定パラメータ91を設定できるので、回転角度θを正しく判定できる回転角度判定パラメータ91をオペレータのスキルによらず設定することができる。
(3) Effects of the Embodiment According to the setting apparatus 2 (the component imaging camera 16, the substrate imaging camera 17, and the control unit 30) according to the first embodiment described above, the operator manually sets the rotation angle determination parameter 91 Since the time required for setting can be shortened as compared with the above, the rotation angle determination parameter 91 can be set efficiently.
Further, according to the setting device 2, the workload on the operator can be reduced as compared with the case where the operator manually sets it. In addition, when the operator manually sets, there is a concern about setting errors. However, according to the setting device 2, such setting errors can be reduced, so the reliability of the rotation angle determination parameter 91 can be improved. Also, conventionally, skill was required to manually set the rotation angle determination parameter 91 that can determine the rotation angle θ correctly. For example, the operator had to understand the meaning of each parameter and set an appropriate value. Therefore, the operator who can set the rotation angle determination parameter 91 is limited. On the other hand, according to the setting device 2, since the rotation angle determination parameter 91 can be set without skill, the rotation angle determination parameter 91 capable of correctly determining the rotation angle θ can be set regardless of the skill of the operator.

更に、設定装置2によると、設定した回転角度判定パラメータ91を検証するので(S109)、回転角度判定パラメータ91の信頼性を向上させることができる。   Furthermore, according to the setting device 2, since the set rotation angle determination parameter 91 is verified (S109), the reliability of the rotation angle determination parameter 91 can be improved.

また、実施形態1に係る表面実装機1によると、オペレータが手作業で設定する場合に比べて回転角度判定パラメータ91を効率よく設定することができる。   Further, according to the surface mounter 1 of the first embodiment, the rotation angle determination parameter 91 can be set efficiently as compared with the case where the operator manually sets it.

<実施形態2>
次に、実施形態2を図12ないし図15によって説明する。前述した実施形態1では部品Eの姿勢として部品Eの回転角度θを判定する。これに対し、実施形態2では部品Eの姿勢として部品Eの表と裏を判定する。
Second Embodiment
Next, Embodiment 2 will be described with reference to FIGS. 12 to 15. In the first embodiment described above, the rotation angle θ of the part E is determined as the posture of the part E. On the other hand, in the second embodiment, the front and back of the part E are determined as the posture of the part E.

先ず、図12を参照して、実施形態2に係る部品Eの例について説明する。部品Eは2端子部品であり、部品本体70Aと電極70Bとを有している。部品本体70Aの色はグレーであり、表面に「A」という白い文字が印字されている。   First, an example of a part E according to the second embodiment will be described with reference to FIG. The component E is a two-terminal component, and has a component body 70A and an electrode 70B. The color of the component body 70A is gray, and a white letter "A" is printed on the surface.

図12に示す部品Eの場合、部品Eの裏面を撮像した画像71(以下「裏面画像」という)と表面を撮像した画像72(以下「表面画像」という)との差画像を生成すると図13に示す差画像76が生成され、特徴部分75が認識される。図13に示すように特徴部分75には「A」という文字が含まれる。その場合、図12に示すように表面画像72上に「A」という文字に外接する矩形の判定領域73を設定したとすると、判定領域73内にはグレーを表す画素と白を表す画素とが混在する。   In the case of the component E shown in FIG. 12, when a difference image between the image 71 (hereinafter referred to as “rear surface image”) obtained by imaging the back surface of the component E and the image 72 (hereinafter referred to as “surface image”) obtained by imaging the front surface is generated. A difference image 76 is generated, and the feature portion 75 is recognized. As shown in FIG. 13, the characteristic portion 75 includes the character “A”. In that case, assuming that a rectangular determination area 73 circumscribing the character “A” is set on the surface image 72 as shown in FIG. 12, pixels representing gray and pixels representing white are included in the determination area 73. Mixed.

これに対し、裏面画像71上の同じ位置に上述した判定領域73を設定すると、判定領域73内の画素の色はほぼグレーであるので、表面画像72に比べて判定領域73内の画素の濃度のバラツキが小さくなる。このため、画素の濃度のバラツキから部品Eの表と裏を判定することができる。すなわち、特徴部分75に基づいて表と裏を判定することができる。   On the other hand, if the determination area 73 described above is set at the same position on the back surface image 71, the color of the pixels in the determination area 73 is substantially gray, the density of the pixels in the determination area 73 compared to the surface image 72. Variation in For this reason, it is possible to determine the front and back of the component E from the variation in the density of the pixels. That is, front and back can be determined based on the characteristic portion 75.

なお、便宜上、ここでは「A」という文字に外接する矩形の判定領域73を設定する場合を例に説明したが、図13に示すように、特徴部分75には「A」という文字以外の部分(具体的には表面画像72において「A」という文字の左側にある縦長の白い領域74や、裏面画像において電極70Bのうち部品本体70Aの内側に入り込んでいる部分)も含まれる。判定領域73はこれらも含めた特徴部分75全体に外接する矩形の領域として設定される。ただし、判定領域73は必ずしも特徴部分75全体に外接するように設定される必要はなく、図12に示すように特徴部分75の一部(例えば「A」という文字)のみを囲む領域として設定されてもよい。   Here, for the sake of convenience, the case where the rectangular determination area 73 circumscribing the character “A” is set is described as an example, but as shown in FIG. 13, the characteristic portion 75 is a portion other than the character “A”. (Specifically, a vertically long white region 74 on the left side of the character “A” in the front surface image 72, and a portion of the back surface image which is inside the component main body 70A of the electrode 70B) is also included. The determination area 73 is set as a rectangular area circumscribing the entire feature portion 75 including these. However, the determination area 73 does not necessarily need to be set so as to circumscribe the entire feature 75, and is set as an area surrounding only a part of the feature 75 (for example, the character “A”) as shown in FIG. May be

(1)表裏判定パラメータ
次に、図14を参照して、表裏判定パラメータ92(判定パラメータの一例)について説明する。表裏判定パラメータ92には「分散閾値」、「NG判定条件」、「判定領域サイズX」、「判定領域サイズY」、「判定領域オフセットX」、「判定領域オフセットY」及び「判定領域オフセット有効/無効」が含まれる。
(1) Front / Back Determination Parameter Next, the front / back determination parameter 92 (an example of the determination parameter) will be described with reference to FIG. For the front / back judgment parameter 92, “dispersion threshold”, “NG judgment condition”, “judged area size X”, “judged area size Y”, “judged area offset x”, “judged area offset y” and “judged area offset valid” "Invalid" is included.

「分散閾値」は表と裏を判定する基準となる値であり、表面画像72の判定領域73内の画素の濃度の分散と裏面画像71の判定領域73内の画素の濃度の分散との中間値が設定される。なお、「分散」は中間値に限定されるものではなく、適宜に設定することができる。また、ここでは画素の濃度のバラツキの指標として分散を用いるが、バラツキの指標は標準偏差であってもよいし、判定領域73内の最大の濃度と最小の濃度との差であってもよい。   The “dispersion threshold” is a reference value for determining the front and back sides, and is intermediate between the dispersion of the density of the pixels in the judgment area 73 of the front image 72 and the dispersion of the density of the pixels in the judgment area 73 of the back surface image 71. The value is set. The “dispersion” is not limited to the intermediate value, and can be set as appropriate. Further, although the dispersion is used as an index of the dispersion of the density of the pixels here, the index of the dispersion may be a standard deviation or a difference between the maximum density and the minimum density in the determination area 73. .

「NG判定条件」は「分散閾値」に設定されている値より大きい場合に表と判定するか小さい場合に表と判定するかを示すものである。例えば表面の分散の方が裏面の分散より大きい場合に表と判定する場合は「NG判定条件」に「大」が設定され、表面の分散の方が裏面の分散より小さい場合に表と判定する場合は「小」が設定される。   “NG determination condition” indicates whether the table is determined if the value is larger than the value set in the “dispersion threshold” or the table is determined if the value is smaller. For example, when it is determined that the front side dispersion is larger than the back side dispersion, "big" is set in the "NG determination condition", and the front side dispersion is determined as the front side when it is smaller than the back side dispersion. In the case, "small" is set.

「判定領域サイズX」、「判定領域サイズY」、「判定領域オフセットX」、「判定領域オフセットY」はそれぞれ判定領域73のX方向の幅、Y方向の幅、部品Eの中心位置に対する判定領域73の中心位置のX方向のずれ幅(オフセット)、部品Eの中心位置に対する判定領域73の中心位置のY方向のずれ幅(オフセット)である。   “Judged area size X”, “judged area size Y”, “judged area offset X”, and “judged area offset Y” are the width of the judged area 73 in the X direction, the width in the Y direction, and the center position of the part E The deviation width (offset) of the center position of the area 73 in the X direction and the deviation width (offset) of the center position of the determination area 73 with respect to the center position of the part E in the Y direction.

「判定領域オフセット有効/無効」は上述した「判定領域オフセットX」及び「判定領域オフセットY」が有効であるか無効であるかを示すものである。部品Eの中心位置を判定領域73の中心位置とする場合は「判定領域オフセット有効/無効」に無効が設定される。部品Eの中心位置を判定領域73の中心位置とするか否かは適宜に決定することができる。   The “determination area offset valid / invalid” indicates whether the “determination area offset X” and the “determination area offset Y” described above are valid or invalid. When the center position of the part E is set as the center position of the determination area 73, “invalid in the determination area offset valid / invalid” is set. Whether or not the center position of the part E is to be the center position of the determination area 73 can be determined as appropriate.

(2)表裏判定パラメータの設定処理
次に、図15を参照して、表裏判定パラメータ92の設定処理について説明する。本処理はオペレータが所定の位置に設定対象の部品Eを載置した後に操作部31を操作して表裏判定パラメータ92の設定を指示すると開始される。
(2) Setting Process of Front / Back Determination Parameter Next, setting process of the front / back determination parameter 92 will be described with reference to FIG. The present process is started when the operator places the component E to be set at a predetermined position and operates the operation unit 31 to instruct setting of the front / back determination parameter 92.

S301では、制御部30は上述した所定の位置に載置されている部品Eを基板撮像カメラ17によって上方から撮像することによって表面画像を生成する。
S302では、制御部30は実装ヘッド20によって部品Eを吸着し、実装ヘッド20によって吸着されている部品Eを部品撮像カメラ16によって下方から撮像することによって裏面画像を生成する。
In S301, the control unit 30 generates a surface image by imaging the component E placed at the above-described predetermined position from above with the substrate imaging camera 17.
In S302, the control unit 30 adsorbs the component E by the mounting head 20, and generates a back surface image by capturing the component E absorbed by the mounting head 20 from below by the component imaging camera 16.

S303では、制御部30は電極の色を基準としてソフトゲイン補正を行うことにより、各画像の画素の濃淡をチューニングする(補正処理の一例)。以下、具体的に説明する。
基板撮像カメラ17と部品撮像カメラ16とは撮像センサの感度の違いや光源の輝度の違いなどによって同じ被写体を撮像しても画素の濃淡(色味というこももできる)が異なってしまうことがある。画素の濃淡が異なると表裏判定パラメータ92を精度よく設定できない虞がある。
In step S303, the control unit 30 performs soft gain correction on the basis of the color of the electrode to tune the density of the pixels of each image (an example of correction processing). The details will be described below.
The board image pickup camera 17 and the component image pickup camera 16 may sometimes have different shades of pixels (it is possible to say color) even if they capture the same subject due to the difference in sensitivity of the image sensor or the difference in brightness of the light source. . If the density of the pixel is different, there is a possibility that the front and back determination parameter 92 can not be set with high accuracy.

このため、制御部30は表面画像において電極70Bを表している画素の濃度の平均値と裏面画像において電極70Bを表している画素の濃度の平均値との差の絶対値を補正値とし、例えば表面画像において電極70Bを表している画素の濃度の平均値が、裏面画像において電極70Bを表している画素の濃度の平均値より大きい場合は、裏面画像の各画素に補正値を加算する(あるいは表面画像の各画素から補正値を減算する)。逆に、表面画像において電極を表している画素の濃度の平均値が、裏面画像において電極を表している画素の濃度の平均値より小さい場合は、裏面画像の各画素から補正値を減算する(あるいは表面画像の各画素に補正値を加算する)。これにより電極の色を基準として画素の濃淡を合わせることができる。   Therefore, the control unit 30 sets the absolute value of the difference between the average value of the density of the pixels representing the electrode 70B in the front surface image and the average value of the density of the pixels representing the electrode 70B in the back surface image as the correction value If the average value of the density of the pixels representing the electrode 70B in the front surface image is larger than the average value of the density of the pixels representing the electrode 70B in the back surface image, the correction value is added to each pixel of the back surface image (or The correction value is subtracted from each pixel of the surface image). Conversely, if the average value of the density of the pixels representing the electrode in the front surface image is smaller than the average value of the density of the pixels representing the electrode in the back surface image, the correction value is subtracted from each pixel of the back surface image Alternatively, the correction value is added to each pixel of the surface image). As a result, it is possible to match the density of the pixel with reference to the color of the electrode.

S304では、制御部30は表面画像と裏面画像との差画像を生成する。
S305では、制御部30は差画像に基づいて特徴部分を認識する(認識処理の一例)。
S306では、制御部30は表裏判定パラメータ92を設定する(設定処理の一例)。表裏判定パラメータ92の設定については前述した通りであるので説明は省略する。
In S304, the control unit 30 generates a difference image between the front surface image and the back surface image.
In S305, the control unit 30 recognizes the feature portion based on the difference image (an example of recognition processing).
In S306, the control unit 30 sets the front and back determination parameter 92 (an example of setting processing). The setting of the front / back determination parameter 92 is as described above, and thus the description thereof is omitted.

S308では、制御部30は設定した表裏判定パラメータ92を検証する(検証処理の一例)。具体的には、制御部30は表面画像及び裏面画像についてS306で設定した表裏判定パラメータ92を用いて部品Eの表と裏を判定し、全ての画像において表と裏を正しく判定できた場合は検証成功として本処理を終了し、少なくとも一つの画像で正しく判定できなかった場合は検証失敗としてS309に進む。   In S308, the control unit 30 verifies the set front / back determination parameter 92 (an example of verification processing). Specifically, the control unit 30 determines the front and back of the component E using the front and back determination parameter 92 set in S306 for the front surface image and the rear surface image, and if the front and back are correctly determined in all images, The processing ends as the verification success, and if it can not be determined correctly with at least one image, the processing proceeds to S309 as the verification failure.

S309では、制御部30はエラー処理を実行する。具体的には、制御部30は表裏判定パラメータ92の設定を中止し、表裏判定パラメータ92を設定できなかった旨のエラーメッセージを操作部31の表示装置に表示させる。   At S309, the control unit 30 executes an error process. Specifically, the control unit 30 cancels the setting of the front and back determination parameter 92 and causes the display device of the operation unit 31 to display an error message indicating that the front and back determination parameter 92 can not be set.

(4)実施形態の効果
以上説明した実施形態2に係る設定装置2によると、部品Eの表と裏を判定可能な判定パラメータを設定することができる。
(4) Effects of the Embodiment According to the setting device 2 of the second embodiment described above, determination parameters capable of determining the front and back of the part E can be set.

更に、設定装置2によると、電極の色を基準としてソフトゲイン補正を行うので、表面画像と裏面画像とで画素の濃淡が異なることによって表裏判定パラメータ92の精度が低下してしまうことを抑制できる。   Furthermore, according to the setting device 2, since the soft gain correction is performed based on the color of the electrode, it is possible to suppress the decrease in the accuracy of the front / back determination parameter 92 due to the difference in density of the pixel between the front surface image and the back surface image. .

更に、実施形態2に係る表面実装機によると、実装ヘッド20によって部品Eを吸着し、吸着されている部品Eを部品撮像カメラ16によって下方から撮像する。従来は部品撮像カメラ16によって部品Eの裏面を撮像するためにオペレータが手作業で実装ヘッド20に部品Eを吸着させていた。言い換えるとオペレータが実装ヘッド20に部品Eを手付けしていた。このためオペレータにとって手間であった。特に極小部品Eは実装ヘッド20に吸着させることが困難であるためオペレータにとって大きな手間であった。これに対し、表面実装機によると、オペレータは実装ヘッド20に部品Eを吸着させる作業を行わなくてよいのでオペレータの手間を軽減することができる。
また、部品Eを手作業で実装ヘッド20に吸着させる場合は適切に吸着されたか否かをオペレータが確認する必要があったため時間を要していたが、表面実装機によるとそのような時間が不要になるので設定に要する時間をより短縮することができる。
Furthermore, according to the surface mounter of the second embodiment, the component E is adsorbed by the mounting head 20, and the component E being adsorbed is imaged from below by the component imaging camera 16. Conventionally, in order to image the back of the component E by the component imaging camera 16, the operator manually sucks the component E on the mounting head 20. In other words, the operator has handed the component E to the mounting head 20. For this reason, it was troublesome for the operator. In particular, it is difficult for the operator to attach the minimal component E to the mounting head 20 because it is difficult. On the other hand, according to the surface mounter, the operator does not have to perform the work of causing the mounting head 20 to adsorb the component E, so that the labor of the operator can be reduced.
In addition, in the case where the component E is manually adsorbed to the mounting head 20, the operator needs to check whether the component E is appropriately adsorbed or not, but it took time, but according to the surface mounter, such time is required Since it becomes unnecessary, the time required for setting can be further shortened.

<実施形態3>
次に、実施形態3を図16ないし図17によって説明する。実施形態3は部品Eの表と裏を判定する別の例である。
Embodiment 3
The third embodiment will now be described with reference to FIGS. The third embodiment is another example of determining the front and back of the part E.

先ず、図16を参照して、実施形態3に係る部品Eの例について説明する。部品Eはチップ抵抗であり、部品本体80Aと電極80Bとを有している。部品本体80Aは裏面が白であり、表面が黒である。
図16に示す部品Eの場合、表面画像82と裏面画像81との差画像を生成して特徴部分を認識すると、部品本体80Aを表している部分(表面画像82の黒い部分)が特徴部分として認識される。その場合、例えば表面画像82の特徴部分の任意の位置に円形の判定領域84を設定したとすると、判定領域84内の画素87の濃度はほぼ黒(0)であるので画素87の濃度の分散は小さくなる。また、裏面画像の同じ位置に上述した判定領域84を設定したとすると、判定領域84内の画素86の濃度はほぼ白(255)であるので画素86の濃度の分散は小さくなる。このため、部品Eの場合は画素の濃度の分散から表と裏を判定することはできない。
First, an example of a part E according to the third embodiment will be described with reference to FIG. The component E is a chip resistor, and has a component body 80A and an electrode 80B. The component main body 80A is white on the back and black on the surface.
In the case of the component E shown in FIG. 16, when a difference image between the front surface image 82 and the back surface image 81 is generated and the feature portion is recognized, a portion (black portion of the surface image 82) representing the component body 80A is a feature portion. Be recognized. In that case, for example, assuming that a circular determination area 84 is set at an arbitrary position of the characteristic portion of the surface image 82, the density of the pixel 87 in the determination area 84 is substantially black (0). Becomes smaller. Further, assuming that the determination area 84 described above is set at the same position on the back surface image, the density of the pixels 86 in the determination area 84 is almost white (255), so the variance of the density of the pixels 86 is small. For this reason, in the case of the part E, the front and back can not be determined from the dispersion of the density of the pixel.

しかしながら、部品Eの場合は表面画像における判定領域84内の画素87の濃度がほぼ0(黒)であり、裏面画像における判定領域84内の画素86の濃度がほぼ255(白)であるので、画素86,87の濃度の平均値を比較することによって表と裏を判定することができる。すなわち、特徴部分に基づいて表と裏を判定することができる。   However, in the case of the part E, the density of the pixels 87 in the determination area 84 in the surface image is almost 0 (black), and the density of the pixels 86 in the determination area 84 in the back surface image is approximately 255 (white). The front and back can be determined by comparing the average value of the density of the pixels 86 and 87. That is, front and back can be determined based on the characteristic part.

(1)表裏判定パラメータ
ここでは先ず、図16を参照して、実施形態3に係る表裏判定パラメータ(判定パラメータの一例)の設定に用いる円形の判定領域84(以下「検出円」という)について説明する。検出円84は部品Eの中心位置を中心点として特徴部分内に収まる円として設定される。なお、判定領域84の形状は円に限定されるものではなく、適宜に決定することができる。例えば判定領域84は特徴部分内に収まる四角形であってもよい。
(1) Front and Back Determination Parameter Here, first, with reference to FIG. 16, the circular determination area 84 (hereinafter referred to as “detection circle”) used for setting the top and bottom determination parameter (an example of the determination parameter) according to the third embodiment will be described. Do. The detection circle 84 is set as a circle that falls within the feature with the center position of the part E as the center point. The shape of the determination area 84 is not limited to a circle, and can be determined as appropriate. For example, the determination area 84 may be a square that fits within the feature.

次に、図17を参照して、表裏判定パラメータ93について説明する。表裏判定パラメータ93には「濃度閾値」、「検出円直径」及び「特徴部分の色」が含まれる。
「濃度閾値」は表と裏を判定する基準となる値であり、表面画像82の検出円84内の濃度の平均値と裏面画像81の検出円84内の濃度の平均値との中間値が設定される。なお、「濃度閾値」は中間値に限定されるものではなく、適宜に設定することができる。
Next, front and back determination parameters 93 will be described with reference to FIG. The front and back determination parameters 93 include “density threshold”, “detection circle diameter”, and “color of characteristic portion”.
“Density threshold” is a value serving as a reference for determining front and back, and an intermediate value between the average value of the density in the detection circle 84 of the surface image 82 and the average value of the density in the detection circle 84 of the back surface image 81 It is set. Note that the “density threshold” is not limited to the intermediate value, and can be set as appropriate.

「検出円直径」は検出円84の直径である。検出円84の直径は検出円84が特徴部分内に収まる範囲で適宜に決定することができる。ただし、直径が小さいと画素の数が少なくなるので判定の信頼性が低下してしまう虞がある。このため直径はある程度大きいことが望ましい。
「特徴部分の色」は表面画像82における特徴部分の色を示すものである。例えば「特徴部分の色」が黒である場合は、表面画像82の画素の濃度の平均値が「濃度閾値」未満の場合に表と判定され、「濃度閾値」以上の場合に裏と判定される。逆に、「特徴部分の色」が白である場合は、表面画像82の画素の濃度の平均値が「濃度閾値」以上の場合に表と判定され、「濃度閾値」未満の場合に裏と判定される。なお、「特徴部分の色」は裏面画像81における特徴部分の色であってもよい。
実施形態3はその他の点において実施形態2と実質的に同一である。
The “detection circle diameter” is the diameter of the detection circle 84. The diameter of the detection circle 84 can be appropriately determined as long as the detection circle 84 falls within the feature portion. However, if the diameter is small, the number of pixels decreases, which may lower the reliability of the determination. For this reason, it is desirable that the diameter be somewhat large.
The “color of feature portion” indicates the color of the feature portion in the surface image 82. For example, when “color of characteristic portion” is black, it is determined that the average value of the density of the pixels of the surface image 82 is less than the “density threshold”, and is determined reverse when it is “density threshold” or more. Ru. Conversely, if the “color of the feature portion” is white, it is determined that the average value of the density of the pixels of the surface image 82 is the “density threshold” or more, and it is determined to be the front. It is judged. The “color of the characteristic portion” may be the color of the characteristic portion in the back surface image 81.
Embodiment 3 is substantially the same as Embodiment 2 in other points.

<他の実施形態>
本明細書によって開示される技術は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本明細書によって開示される技術的範囲に含まれる。
Other Embodiments
The art disclosed by the present specification is not limited to the embodiments described above with reference to the drawings, and, for example, the following embodiments are also included in the technical scope disclosed by the present specification.

(1)上記実施形態1では回転角度判定パラメータとして「検出角度」、「検出円直径」、「検出円中心位置X」、「検出円中心位置Y」、「特徴部分の色」、及び、「最小濃度差」が含まれる回転角度判定パラメータ91を例に説明した。しかしながら、回転角度判定パラメータは部品Eの回転角度θを判定できるものであればこれに限られない。例えばこれら6つのパラメータのうち不要なパラメータは含まれなくてもよい。また、例えば円ではなく矩形の判定領域61を設定する場合は「検出円直径」に替えて「判定領域サイズX」や「判定領域サイズY」が設定されてもよい。   (1) In the first embodiment, “detection angle”, “detection circle diameter”, “detection circle center position X”, “detection circle center position Y”, “feature portion color”, and “rotation angle determination parameters” The rotation angle determination parameter 91 including the “minimum density difference” has been described as an example. However, the rotation angle determination parameter is not limited to this as long as the rotation angle θ of the part E can be determined. For example, unnecessary ones of these six parameters may not be included. For example, when setting the determination area 61 which is not a circle but a rectangle, a “determination area size X” or a “determination area size Y” may be set instead of the “detection circle diameter”.

(2)上記実施形態では部品EとしてPLCCやSOPを例に説明したが、部品Eはこれらに限定されるものではない。   (2) Although PLCC and SOP were demonstrated to an example as parts E in the above-mentioned embodiment, parts E are not limited to these.

(3)上記実施形態では設定装置として表面実装機の基板撮像カメラ17、部品撮像カメラ16及び制御部30を例に説明したが、設定装置は表面実装機とは別の装置として構成されてもよい。   (3) Although the board imaging camera 17 of the surface mounting machine, the component imaging camera 16 and the control unit 30 have been described as an example of the setting apparatus in the above embodiment, the setting apparatus may be configured as an apparatus different from the surface mounting machine Good.

(4)上記実施形態では設定した判定パラメータを検証する場合を例に説明したが、検証は必ずしも行われなくてもよい。   (4) Although the case where the set determination parameter is verified has been described as an example in the above embodiment, the verification may not necessarily be performed.

(5)上記実施形態では吸着ノズル24によって部品Eを吸着することによって部品Eを保持する場合を例に説明したが、部品Eの保持はこれに限られるものではなく、例えば所謂チャックを用いて部品Eを挟むことによって保持してもよい。   (5) Although the case where the component E is held by suctioning the component E by the suction nozzle 24 has been described as an example in the above embodiment, the holding of the component E is not limited to this. For example, using a so-called chuck It may hold by sandwiching the part E.

1…表面実装機、12…テープ部品供給装置(部品供給装置)、13…トレイ部品供給装置(部品供給装置)、14…ヘッドユニット(実装部の一例)、15…ヘッド搬送部、実装部の一例)、16…部品撮像カメラ(撮像部、第2の撮像部の一例)、17…基板撮像カメラ(撮像部、第1の撮像部の一例)、30…制御部、32A…認識処理、32B…設定処理、51A…画像(回転前の画像の一例)、51B〜51D…画像(回転後の画像の一例)、52A…画像(回転前の画像の一例)、52B…画像(回転後の画像の一例)、54…特徴部分、55…特徴部分、65…差画像、70B…電極、71…裏面画像、72…表面画像、80B…電極、81…裏面画像、82…表面画像、E…部品、P…基板、S…部品の中心点、91…回転角度判定パラメータ、92,93…表裏判定パラメータ、θ…回転角度 DESCRIPTION OF SYMBOLS 1 ... surface mounting machine, 12 ... tape component supply apparatus (component supply apparatus), 13 ... tray component supply apparatus (component supply apparatus), 14 ... head unit (an example of mounting part), 15 ... head conveyance part, of a mounting part An example), 16 ... parts imaging camera (an imaging unit, an example of a second imaging unit), 17 ... a board imaging camera (an example of an imaging unit, a first imaging unit), 30 ... a control unit, 32A ... recognition processing, 32B ... setting processing, 51A ... image (an example of an image before rotation), 51B to 51D ... an image (an example of an image after rotation), 52A ... an image (an example of an image before rotation), 52B ... an image (image after rotation Examples of 54) characteristic part 55 characteristic part 65 difference image 70B electrode 71 back surface image 72 surface image 80B electrode 81 back surface image 82 surface image E component , P: substrate, S: central point of parts, 91: rotation Degree determination parameter, 92, 93 ... front and back decision parameters, theta ... rotation angle

Claims (7)

姿勢を判定可能な特徴部分を有する部品を撮像して画像を生成する撮像部と、
前記画像上で前記特徴部分を認識する認識処理、及び、前記認識処理で認識した前記特徴部分に基づいて、前記姿勢を判定するための判定パラメータを設定する設定処理を実行する制御部と、
を備える、設定装置。
An imaging unit that generates an image by imaging a component having a characteristic portion whose posture can be determined;
A control unit that executes a setting process of setting a determination parameter for determining the posture based on a recognition process of recognizing the feature part on the image, and the feature part recognized in the recognition process;
Setting device.
請求項1に記載の設定装置であって、
前記姿勢は前記部品の中心点周りの回転角度であり、
前記制御部は、前記認識処理において、前記画像を回転させ、回転前の前記画像と回転後の前記画像との差画像に基づいて前記特徴部分を認識する、設定装置。
The setting device according to claim 1, wherein
The posture is a rotation angle around the center point of the part,
The setting device, wherein the control unit is configured to rotate the image and to recognize the characteristic portion based on a difference image between the image before rotation and the image after rotation in the recognition process.
請求項1又は請求項2に記載の設定装置であって、
前記姿勢は前記部品の表と裏を含み、
前記撮像部は、
前記部品の表面を撮像して表面画像を生成する第1の撮像部と、
前記部品の裏面を撮像して裏面画像を生成する第2の撮像部と、
を有し、
前記制御部は、前記認識処理において、前記表面画像と前記裏面画像との差画像に基づいて前記特徴部分を認識する、設定装置。
The setting device according to claim 1 or 2, wherein
The attitude includes the front and back of the part,
The imaging unit is
A first imaging unit configured to image the surface of the component to generate a surface image;
A second imaging unit configured to image a back surface of the component to generate a back surface image;
Have
The setting device, wherein the control unit recognizes the characteristic portion based on a difference image between the front surface image and the back surface image in the recognition processing.
請求項3に記載の設定装置であって、
前記部品は表及び裏に電極を有しており、
前記制御部は、前記認識処理の前に、前記表面画像において前記電極を表している画素の濃度と前記裏面画像において前記電極を表している画素の濃度とに基づいて前記表面画像及び前記裏面画像の少なくとも一方の画素の濃度を補正する補正処理を実行する、設定装置。
The setting device according to claim 3, wherein
The part has electrodes on the front and back,
The control unit, before the recognition process, determines the front image and the back image based on the density of pixels representing the electrode in the front image and the density of pixels representing the electrode in the back image. A setting device that executes a correction process to correct the density of at least one pixel of the image.
請求項2乃至請求項4のいずれか一項に記載の設定装置であって、
前記制御部は、前記設定処理の後、各前記画像上で前記判定パラメータを用いて姿勢を判定することによって前記判定パラメータを検証する検証処理を実行する、設定装置。
The setting device according to any one of claims 2 to 4, wherein
The setting device, wherein the control unit executes a verification process of verifying the determination parameter by determining a posture on each of the images using the determination parameter after the setting process.
請求項1乃至請求項5のいずれか一項に記載の設定装置と、
部品供給装置によって供給される前記部品を保持して基板に実装する実装部と、
を備える表面実装機。
The setting device according to any one of claims 1 to 5.
A mounting unit that holds the component supplied by the component supply device and mounts the component on a substrate;
Surface mounter equipped with
請求項6に記載の表面実装機であって、
前記制御部は、前記実装部によって前記部品を保持し、前記実装部によって保持されている前記部品を前記撮像部によって撮像する、表面実装機。
7. A surface mounter according to claim 6, wherein
The control unit holds the component by the mounting unit, and images the component held by the mounting unit by the imaging unit.
JP2017192593A 2017-10-02 2017-10-02 Setting device and surface mounter Active JP6974101B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017192593A JP6974101B2 (en) 2017-10-02 2017-10-02 Setting device and surface mounter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017192593A JP6974101B2 (en) 2017-10-02 2017-10-02 Setting device and surface mounter

Publications (2)

Publication Number Publication Date
JP2019067943A true JP2019067943A (en) 2019-04-25
JP6974101B2 JP6974101B2 (en) 2021-12-01

Family

ID=66338466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017192593A Active JP6974101B2 (en) 2017-10-02 2017-10-02 Setting device and surface mounter

Country Status (1)

Country Link
JP (1) JP6974101B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115088402A (en) * 2020-02-21 2022-09-20 株式会社富士 Component mounting machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115088402A (en) * 2020-02-21 2022-09-20 株式会社富士 Component mounting machine
CN115088402B (en) * 2020-02-21 2023-06-27 株式会社富士 Component assembling machine

Also Published As

Publication number Publication date
JP6974101B2 (en) 2021-12-01

Similar Documents

Publication Publication Date Title
JP6293899B2 (en) Mounting device
US10314220B2 (en) Mounting machine and component detection method
JP6231791B2 (en) Mounting device
JP2007220837A (en) Method and device for mounting electronic component
JP2015230912A (en) Component mounting device
JP5989803B2 (en) Component mounting machine and component mounting method
JP6472873B2 (en) Parts inspection machine and parts placement machine
JP4896757B2 (en) Surface mount machine
CN105848462B (en) Component mounting device and component mounting method
JP6828223B2 (en) Mounting device
WO2017145249A1 (en) Image processing system and image processing method
JP6356222B2 (en) Component mounting device
JP6974101B2 (en) Setting device and surface mounter
JP6475165B2 (en) Mounting device
JP5977579B2 (en) Board work equipment
WO2016151797A1 (en) Mounting device and mounting method
JPWO2020021657A1 (en) Surface mounter
WO2018055663A1 (en) Imaging device and mounting device
JPWO2019012576A1 (en) Imaging device, surface mounter and inspection device
KR102375465B1 (en) Apparatus for mounting camera module
JP2018152400A (en) Surface mounter and setting program
JP7285194B2 (en) Mounting machine, component recognition method
JP2002151896A (en) Mounting apparatus for electronic component
JP2018098404A (en) Determination device and surface mounting machine
WO2019207730A1 (en) Component mounting device and inspection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210413

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210423

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211104

R150 Certificate of patent or registration of utility model

Ref document number: 6974101

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150