JP7755779B2 - Component mounter, lead component rotation angle calculation method, and lead component rotation angle calculation program - Google Patents
Component mounter, lead component rotation angle calculation method, and lead component rotation angle calculation programInfo
- Publication number
- JP7755779B2 JP7755779B2 JP2022079208A JP2022079208A JP7755779B2 JP 7755779 B2 JP7755779 B2 JP 7755779B2 JP 2022079208 A JP2022079208 A JP 2022079208A JP 2022079208 A JP2022079208 A JP 2022079208A JP 7755779 B2 JP7755779 B2 JP 7755779B2
- Authority
- JP
- Japan
- Prior art keywords
- lead
- leads
- angle
- component
- center
- 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
Links
Landscapes
- Supply And Installment Of Electrical Components (AREA)
Description
この発明は、リード部品を実装ヘッドによって基板に実装する部品実装技術に関し、特にリード部品の回転角度を算出する技術に関する。 This invention relates to component mounting technology for mounting lead components onto a substrate using a mounting head, and in particular to technology for calculating the rotation angle of lead components.
リード部品を実装ヘッドによって基板に実装する部品実装機では、基板に対して適切な回転角度でリード部品を実装するために、実装ヘッドに保持されるリード部品を撮像したリード部品画像に基づきリード部品の回転角度が算出される。例えば特許文献1では、リード部品の辺に沿って直線状に並ぶ複数のリードそれぞれの先端を通る直線が最小二乗法によって算出される。そして、この直線の傾きに基づき、リード部品の回転角度が算出される。また、特許文献2では、互いに平行な2辺について、一方の辺に沿った複数のリードの先端の配列範囲の中心と、他方の辺に沿った複数のリードの先端の配列範囲の中心とを結ぶ直線の傾きに基づき、リード部品の回転角度が算出される。 In component mounters that mount lead components onto a board using a mounting head, the rotation angle of the lead component is calculated based on an image of the lead component held by the mounting head in order to mount the lead component at the appropriate rotation angle relative to the board. For example, in Patent Document 1, a line passing through the tips of each of the multiple leads lined up in a straight line along the side of the lead component is calculated using the least squares method. The rotation angle of the lead component is then calculated based on the slope of this line. In Patent Document 2, the rotation angle of the lead component is calculated for two parallel sides based on the slope of a line connecting the center of the arrangement range of the tips of the multiple leads along one side and the center of the arrangement range of the tips of the multiple leads along the other side.
ところで、前者の方法では、リード部品の辺に沿った複数のリードの配列範囲の幅が広いと、リード部品の回転角度の算出誤差が小さくなる一方、この幅が狭いと、リード部品の回転角度の算出誤差が大きくなる傾向にある。また、後者の方法では、複数のリードが配列された互いに平行な2辺の間隔が広いと、リード部品の回転角度の算出誤差が小さくなる一方、この幅が狭いと、リード部品の回転角度の算出誤差が大きくなる傾向にある。つまり、いずれの方法を用いるにしても、リード部品の構成によっては、リード部品の回転角度の算出誤差が大きくなる場合があった。 In the former method, if the width of the arrangement range of multiple leads along the side of the lead component is wide, the calculation error in the rotation angle of the lead component tends to be small, but if this width is narrow, the calculation error in the rotation angle of the lead component tends to be large. In the latter method, if the distance between the two parallel sides along which multiple leads are arranged is wide, the calculation error in the rotation angle of the lead component tends to be small, but if this width is narrow, the calculation error in the rotation angle of the lead component tends to be large. In other words, regardless of which method is used, the calculation error in the rotation angle of the lead component may be large depending on the configuration of the lead component.
この発明は上記課題に鑑みなされたものであり、リード部品の構成によらずにリード部品の回転角度を高精度に算出可能とすることを目的とする。 This invention was developed in consideration of the above-mentioned problems, and aims to make it possible to calculate the rotation angle of a lead component with high accuracy regardless of the configuration of the lead component.
本発明の第一態様に係る部品実装機は、矩形を有する部品本体を有するリード部品を保持する実装ヘッドと、実装ヘッドに保持されるリード部品を示すリード部品画像を撮像する部品撮像部と、部品撮像部によって撮像されたリード部品画像を取得する画像取得部と、リード部品の部品本体の周縁を規定する複数の辺のうち対象とする第1対象辺および第1対象辺に平行な第2対象辺について、第1対象辺に沿って配列された複数の第1リードの先端が配列される方向を示す第1配列角度および第2対象辺に沿って配列された複数の第2リードの先端が配列される方向を示す第2配列角度のうちの少なくとも一方をリード配列角度として、リード部品画像に基づき算出する配列角度算出部と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す幾何中心間直線角度を、リード部品画像に基づき算出する幾何中心間直線角度算出部と、リード部品の回転角度の算出に使用する算出基準角度を、リード配列角度および幾何中心間直線角度のうちから選択するデータ選択部と、リード配列角度および幾何中心間直線角度のうちデータ選択部によって選択された算出基準角度に基づき、リード部品の回転角度を算出する回転角度算出部とを備え、データ選択部は、第1対象辺に沿って複数の第1リードの先端が配列される第1範囲の幅を示す第1リード配列幅および第2対象辺に沿って複数の第2リードの先端が配列される第2範囲の幅を示す第2リード配列幅のうち少なくとも一方を示す配列幅情報と、第1範囲の中心と第2範囲の中心との間の距離を示す中心間距離を示す中心間距離情報とに基づき、算出基準角度を選択する。 A component mounter according to a first aspect of the present invention includes a mounting head that holds a lead component having a rectangular component body; a component imaging unit that captures a lead component image showing the lead component held in the mounting head; an image acquisition unit that acquires the lead component image captured by the component imaging unit; an array angle calculation unit that calculates, based on the lead component image, at least one of a first array angle indicating the direction in which the tips of multiple first leads arranged along a first target side and a second target side parallel to the first target side, the lead array angle, the first array angle indicating the direction in which the tips of multiple second leads arranged along the second target side; and a line connecting the geometric center of the tips of each of the multiple first leads and the geometric center of the tips of each of the multiple second leads. The system includes a geometric center straight-line angle calculation unit that calculates the geometric center straight-line angle indicating the line direction based on a lead component image; a data selection unit that selects a calculation reference angle used to calculate the rotation angle of the lead component from among the lead arrangement angle and the geometric center straight-line angle; and a rotation angle calculation unit that calculates the rotation angle of the lead component based on the calculation reference angle selected by the data selection unit from the lead arrangement angle and the geometric center straight-line angle. The data selection unit selects the calculation reference angle based on arrangement width information indicating at least one of a first lead arrangement width indicating the width of a first range in which the tips of multiple first leads are arranged along a first object side and a second lead arrangement width indicating the width of a second range in which the tips of multiple second leads are arranged along a second object side, and center-to-center distance information indicating the center-to-center distance indicating the distance between the center of the first range and the center of the second range.
本発明の第一態様に係る回転角度算出方法は、矩形を有する部品本体を有するリード部品を示すリード部品画像を取得する工程と、リード部品の部品本体の周縁を規定する複数の辺のうち対象とする第1対象辺および第1対象辺に平行な第2対象辺について、第1対象辺に沿って配列された複数の第1リードの先端が配列される方向を示す第1配列角度および第2対象辺に沿って配列された複数の第2リードの先端が配列される方向を示す第2配列角度のうちの少なくとも一方をリード配列角度として、リード部品画像に基づき算出する工程と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す幾何中心間直線角度を、リード部品画像に基づき算出する工程と、リード部品の回転角度の算出に使用する算出基準角度を、リード配列角度および幾何中心間直線角度のうちから選択する工程と、リード配列角度および幾何中心間直線角度のうちから選択された算出基準角度に基づき、リード部品の回転角度を算出する工程とを備え、第1対象辺に沿って複数の第1リードの先端が配列される第1範囲の幅を示す第1リード配列幅および第2対象辺に沿って複数の第2リードの先端が配列される第2範囲の幅を示す第2リード配列幅のうち少なくとも一方を示す配列幅情報と、第1範囲の中心と第2範囲の中心との間の距離を示す中心間距離を示す中心間距離情報とに基づき、算出基準角度を選択する。 A rotation angle calculation method according to a first aspect of the present invention includes the steps of: acquiring a lead component image showing a lead component having a rectangular component body; calculating, based on the lead component image, at least one of a first arrangement angle indicating the direction in which the tips of multiple first leads arranged along a first target side and a second target side parallel to the first target side, among multiple sides defining the periphery of the component body of the lead component, and a second arrangement angle indicating the direction in which the tips of multiple second leads arranged along the second target side; and calculating a geometric center-to-geometric center angle indicating the direction of a line connecting the geometric center of the tips of each of the multiple first leads and the geometric center of the tips of each of the multiple second leads. The method includes a step of calculating the rotation angle of the lead component based on an image of the lead component, a step of selecting a calculation reference angle used to calculate the rotation angle of the lead component from the lead arrangement angle and the angle between the geometric centers, and a step of calculating the rotation angle of the lead component based on the calculation reference angle selected from the lead arrangement angle and the angle between the geometric centers. The calculation reference angle is selected based on arrangement width information indicating at least one of a first lead arrangement width indicating the width of a first range in which the tips of multiple first leads are arranged along a first target side and a second lead arrangement width indicating the width of a second range in which the tips of multiple second leads are arranged along a second target side, and center-to-center distance information indicating the center-to-center distance indicating the distance between the center of the first range and the center of the second range.
このように構成された本発明の第一態様では、リード部品を示すリード部品画像に基づき、リード部品の回転角度が算出される。特に、リード部品の部品本体の周縁を規定する複数の辺のうち第1対象辺および第1対象辺に平行な第2対象辺を対象として、リード部品の回転角度を算出するために使用する算出基準角度が、リード配列角度および幾何中心間直線角度のうちから選択される。ここで、リード配列角度は、第1対象辺に沿って配列された第1リードの先端が配列される方向を示す第1配列角度および第2対象辺に沿って配列された第2リードの先端が配列される方向を示す第2配列角度のうちの少なくとも一方である。また、幾何中心間直線角度は、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す。したがって、リード配列角度を算出基準角度に選択することで、第1対象辺(第2対象辺)に沿った複数のリードの配列範囲の幅が広いリード部品の回転角度を高精度に算出できる。一方、幾何中心間直線角度を算出基準角度に選択することで、それぞれに沿って複数のリードが配列された第1対象辺と第2対象辺との間隔が広いリード部品の回転角度を高精度に算出できる。これに対して、第1対象辺に沿って複数の第1リードの先端が配列される第1範囲の幅を示す第1リード配列幅および第2対象辺に沿って複数の第2リードの先端が配列される第2範囲の幅を示す第2リード配列幅のうち少なくとも一方を示す配列幅情報と、第1範囲の中心と第2範囲の中心との間の距離を示す中心間距離を示す中心間距離情報とに基づき、算出基準角度が選択される。したがって、リード部品の構成に適した算出基準角度を選択して、当該基準算出角度に基づきリード部品の回転角度を算出することができる。その結果、リード部品の構成によらずにリード部品の回転角度を高精度に算出することが可能となっている。 In the first aspect of the present invention configured as described above, the rotation angle of a lead component is calculated based on a lead component image showing the lead component. In particular, the calculation reference angle used to calculate the rotation angle of the lead component is selected from the lead arrangement angle and the geometric center line angle, using a first target side and a second target side parallel to the first target side, among multiple sides defining the periphery of the component body of the lead component, as targets. Here, the lead arrangement angle is at least one of a first arrangement angle indicating the direction in which the tips of the first leads arranged along the first target side are arranged, and a second arrangement angle indicating the direction in which the tips of the second leads arranged along the second target side are arranged. Furthermore, the geometric center line angle indicates the direction of a line connecting the geometric center of the tips of each of the multiple first leads and the geometric center of the tips of each of the multiple second leads. Therefore, by selecting the lead arrangement angle as the calculation reference angle, the rotation angle of a lead component with a wide arrangement range of multiple leads along the first target side (second target side) can be calculated with high accuracy. On the other hand, by selecting the geometric center-to-geometric center straight-line angle as the calculation reference angle, the rotation angle of a lead component having a wide gap between a first object edge and a second object edge along which multiple leads are arranged can be calculated with high accuracy. In contrast, the calculation reference angle is selected based on array width information indicating at least one of a first lead array width indicating the width of a first area in which the tips of multiple first leads are arranged along the first object edge and a second lead array width indicating the width of a second area in which the tips of multiple second leads are arranged along the second object edge, and center-to-center distance information indicating the center-to-center distance between the center of the first area and the center of the second area. Therefore, by selecting a calculation reference angle appropriate for the configuration of the lead component, the rotation angle of the lead component can be calculated based on this reference calculation angle. As a result, the rotation angle of the lead component can be calculated with high accuracy regardless of the configuration of the lead component.
また、配列幅情報は、第1リード配列幅および第2リード配列幅を示し、データ選択部は、第1リード配列幅と第2リード配列幅との和である合計配列幅と中心間距離との比較に基づき算出基準角度を選択する比較選択処理を実行するように、部品実装機を構成してもよい。これによって、リード部品の構成に適した算出基準角度に基づき、リード部品の回転角度を高精度に算出することが可能となる。 The mounter may also be configured so that the array width information indicates a first lead array width and a second lead array width, and the data selection unit executes a comparison and selection process that selects a calculation reference angle based on a comparison between the total array width, which is the sum of the first lead array width and the second lead array width, and the center-to-center distance. This makes it possible to calculate the rotation angle of the lead component with high accuracy based on a calculation reference angle appropriate for the configuration of the lead component.
また、比較選択処理では、合計配列幅が中心間距離より広い場合には、リード配列角度が算出基準角度に選択される一方、合計配列幅が中心間距離より狭い場合には、幾何中心間直線角度が算出基準角度に選択されるように、部品実装機を構成してもよい。これによって、リード部品の構成に適した算出基準角度に基づき、リード部品の回転角度を高精度に算出することが可能となる。 The mounter may also be configured so that, in the comparison and selection process, the lead arrangement angle is selected as the calculation reference angle when the total arrangement width is wider than the center-to-center distance, and the geometric center-to-center straight-line angle is selected as the calculation reference angle when the total arrangement width is narrower than the center-to-center distance. This makes it possible to calculate the rotation angle of the lead component with high accuracy based on the calculation reference angle appropriate for the lead component configuration.
この際、比較選択処理では、合計配列幅と中心間距離とが等しい場合には、リード配列角度が算出基準角度に選択されるように、部品実装機を構成してもよい。あるいは、比較選択処理では、合計配列幅と中心間距離とが等しい場合には、幾何中心間直線角度が算出基準角度に選択されるように、部品実装機を構成してもよい。 In this case, the mounter may be configured so that, in the comparison and selection process, if the total array width and the center-to-center distance are equal, the lead array angle is selected as the calculation reference angle. Alternatively, in the comparison and selection process, if the total array width and the center-to-center distance are equal, the mounter may be configured so that, in the comparison and selection process, the geometric center-to-center linear angle is selected as the calculation reference angle.
また、データ選択部は、第1範囲の中心と第2範囲の中心とを結ぶ直線が第1対象辺に直交する直線に対して傾く場合には、リード配列角度を算出基準角度に選択するように、部品実装機を構成してもよい。つまり、第1範囲の中心と第2範囲の中心とを結ぶ直線が第1対象辺に直交する直線に対して傾く場合には、幾何中心間直線角度に基づく回転角度の算出は大きな誤差を含む可能性がある。そこで、リード配列角度を算出基準角度に選択することで、リード部品の回転角度を高精度に算出することが可能となる。 The mounter may also be configured so that the data selection unit selects the lead arrangement angle as the calculation reference angle when the line connecting the center of the first range and the center of the second range is inclined with respect to the line perpendicular to the first target side. In other words, when the line connecting the center of the first range and the center of the second range is inclined with respect to the line perpendicular to the first target side, the calculation of the rotation angle based on the angle between the geometric centers may contain a large error. Therefore, by selecting the lead arrangement angle as the calculation reference angle, it is possible to calculate the rotation angle of the lead component with high accuracy.
なお、比較選択処理で使用する配列幅情報および中心間距離情報の取得態様は種々想定される。例えば、配列幅情報および中心間距離情報を記憶する記憶部をさらに備え、データ選択部は、記憶部に記憶された配列幅情報と中心間距離情報とに基づき、算出基準角度を選択するように、部品実装機を構成してもよい。あるいは、配列幅情報および中心間距離情報をリード部品画像に基づき算出する情報算出部をさらに備え、データ選択部は、情報算出部により算出された配列幅情報と中心間距離情報とに基づき、算出基準角度を選択するように、部品実装機を構成してもよい。 Various methods for acquiring the array width information and center-to-center distance information used in the comparison and selection process are possible. For example, the mounter may be configured to further include a memory unit that stores array width information and center-to-center distance information, and the data selection unit selects the calculation reference angle based on the array width information and center-to-center distance information stored in the memory unit. Alternatively, the mounter may be configured to further include an information calculation unit that calculates array width information and center-to-center distance information based on a lead component image, and the data selection unit selects the calculation reference angle based on the array width information and center-to-center distance information calculated by the information calculation unit.
なお、算出基準角度を選択するタイミングは、種々想定される。代表的には、部品が実装ヘッドにより保持されてから基板に実装されるまでのタイミングで、データ選択部が算出基準角度を選択するように、部品実装機を構成してもよい。あるいは、データ選択部は、実装ヘッドがリード部品を基板に実装する部品実装を開始する前に算出基準角度を予め選択するように、部品実装機を構成してもよい。 Various timings are conceivable for selecting the calculated reference angle. Typically, the mounter may be configured so that the data selection unit selects the calculated reference angle at the timing between when the component is held by the mounting head and when it is mounted on the board. Alternatively, the mounter may be configured so that the data selection unit pre-selects the calculated reference angle before the mounting head begins mounting the lead component on the board.
また、リード部品は、複数の辺として第1辺、第1辺に平行な第2辺、第3辺および第3辺に平行な第4辺を有し、データ選択部は、第1辺および第2辺を第1対象辺および第2対象辺として算出基準角度を選択した結果である第1算出基準角度と、第3辺および第4辺を第1対象辺および第2対象辺として算出基準角度を選択した結果である第2算出基準角度とを取得し、回転角度算出部は、第1算出基準角度および第2算出基準角度に基づき、リード部品の回転角度を算出するように、部品実装機を構成してもよい。かかる構成では、リード部品の部品本体の周縁を規定する4辺(第1辺、第2辺、第3辺および第4辺)それぞれに配列されたリードに基づき、リード部品の回転角度を算出することができる。 The component mounter may also be configured so that the lead component has multiple sides: a first side, a second side parallel to the first side, a third side, and a fourth side parallel to the third side; the data selection unit acquires a first calculated reference angle resulting from selecting a calculation reference angle using the first and second sides as the first and second target sides, and a second calculated reference angle resulting from selecting a calculation reference angle using the third and fourth sides as the first and second target sides; and the rotation angle calculation unit calculates the rotation angle of the lead component based on the first calculated reference angle and the second calculated reference angle. With this configuration, the rotation angle of the lead component can be calculated based on the leads arranged on each of the four sides (first, second, third, and fourth sides) that define the periphery of the component body of the lead component.
本発明の第二態様に係る部品実装機は、矩形を有する部品本体と、部品本体の周縁を規定する第1辺に沿って配列された複数の第1リードと、部品本体の周縁を規定する、第1辺に平行な第2辺に沿って配列された複数の第2リードと、部品本体の周縁を規定する、第1辺に直交する第3辺に沿って配列された複数の第3リードと、部品本体の周縁を規定する、第3辺に平行な第4辺に沿って配列された複数の第4リードとを有するリード部品を保持する実装ヘッドと、実装ヘッドに保持されるリード部品を示すリード部品画像を撮像する部品撮像部と、部品撮像部によって撮像されたリード部品画像を取得する画像取得部と、第1リードの先端が配列される方向を示す第1配列角度、第2リードの先端が配列される方向を示す第2配列角度、第3リードの先端が配列される方向を示す第3配列角度および第4リードの先端が配列される方向を示す第4配列角度を、リード部品画像に基づき算出する配列角度算出部と、第1辺に沿って複数の第1リードの先端が配列される幅を示す第1リード配列幅、第2辺に沿って複数の第2リードの先端が配列される幅を示す第2リード配列幅、第3辺に沿って複数の第3リードの先端が配列される幅を示す第3リード配列幅および第4辺に沿って複数の第4リードの先端が配列される幅を示す第4リード配列幅を、リード部品画像に基づき算出する配列幅算出部と、第1リード配列幅、第2リード配列幅、第3リード配列幅および第4リード配列幅を重み係数とする、第1配列角度、第2配列角度、第3配列角度および第4配列角度の加重平均値を、リード部品の回転角度として算出する回転角度算出部とを備える。 A component mounter according to a second aspect of the present invention includes a mounting head that holds a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and defines the periphery of the component body, a component imaging unit that captures a lead component image showing the lead component held in the mounting head, an image acquisition unit that acquires the lead component image captured by the component imaging unit, and a first arrangement angle that indicates the direction in which the tips of the first leads are arranged, a second arrangement angle that indicates the direction in which the tips of the second leads are arranged, and a direction in which the tips of the third leads are arranged. The system includes an arrangement angle calculation unit that calculates, based on a lead component image, a third arrangement angle that indicates the direction in which the tips of the fourth leads are arranged, and a fourth arrangement angle that indicates the direction in which the tips of the fourth leads are arranged; an arrangement width calculation unit that calculates, based on the lead component image, a first lead arrangement width that indicates the width in which the tips of the multiple first leads are arranged along the first side, a second lead arrangement width that indicates the width in which the tips of the multiple second leads are arranged along the second side, a third lead arrangement width that indicates the width in which the tips of the multiple third leads are arranged along the third side, and a fourth lead arrangement width that indicates the width in which the tips of the multiple fourth leads are arranged along the fourth side; and a rotation angle calculation unit that calculates, as the rotation angle of the lead component, a weighted average value of the first arrangement angle, second arrangement angle, third arrangement angle, and fourth arrangement angle, using the first lead arrangement width, second lead arrangement width, third lead arrangement width, and fourth lead arrangement width as weighting coefficients.
本発明の第二態様に係るリード部品の回転角度算出方法は、矩形を有する部品本体と、部品本体の周縁を規定する第1辺に沿って配列された複数の第1リードと、部品本体の周縁を規定する、第1辺に平行な第2辺に沿って配列された複数の第2リードと、部品本体の周縁を規定する、第1辺に直交する第3辺に沿って配列された複数の第3リードと、部品本体の周縁を規定する、第3辺に平行な第4辺に沿って配列された複数の第4リードとを有するリード部品を示すリード部品画像を取得する工程と、第1リードの先端が配列される方向を示す第1配列角度、第2リードの先端が配列される方向を示す第2配列角度、第3リードの先端が配列される方向を示す第3配列角度および第4リードの先端が配列される方向を示す第4配列角度を、リード部品画像に基づき算出する工程と、第1辺に沿って複数の第1リードの先端が配列される幅を示す第1リード配列幅、第2辺に沿って複数の第2リードの先端が配列される幅を示す第2リード配列幅、第3辺に沿って複数の第3リードの先端が配列される幅を示す第3リード配列幅および第4辺に沿って複数の第4リードの先端が配列される幅を示す第4リード配列幅を、リード部品画像に基づき算出する工程と、第1リード配列幅、第2リード配列幅、第3リード配列幅および第4リード配列幅を重み係数とする、第1配列角度、第2配列角度、第3配列角度および第4配列角度の加重平均を、リード部品の回転角度として算出する工程とを備える。 A method for calculating the rotation angle of a lead component according to a second aspect of the present invention includes the steps of acquiring a lead component image showing a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and that defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and that defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and that defines the periphery of the component body, and calculating a first arrangement angle indicating the direction in which the tips of the first leads are arranged, a second arrangement angle indicating the direction in which the tips of the second leads are arranged, a third arrangement angle indicating the direction in which the tips of the third leads are arranged, and a fourth arrangement angle indicating the direction in which the tips of the fourth leads are arranged. The method includes a step of calculating, based on a lead component image, a fourth arrangement angle indicating the direction in which the tips of the plurality of first leads are arranged; a step of calculating, based on the lead component image, a first lead arrangement width indicating the width in which the tips of the plurality of second leads are arranged along the first side, a second lead arrangement width indicating the width in which the tips of the plurality of second leads are arranged along the second side, a third lead arrangement width indicating the width in which the tips of the plurality of third leads are arranged along the third side, and a fourth lead arrangement width indicating the width in which the tips of the plurality of fourth leads are arranged along the fourth side; and a step of calculating a weighted average of the first arrangement angle, second arrangement angle, third arrangement angle, and fourth arrangement angle as the rotation angle of the lead component, using the first lead arrangement width, second lead arrangement width, third lead arrangement width, and fourth lead arrangement width as weighting coefficients.
このように構成された本発明の第二態様では、リード部品を示すリード部品画像に基づき、リード部品の回転角度が算出される。このリード部品は、矩形を有する部品本体と、部品本体の周縁を規定する第1辺に沿って配列された複数の第1リードと、部品本体の周縁を規定する、第1辺に平行な第2辺に沿って配列された複数の第2リードと、部品本体の周縁を規定する、第1辺に直交する第3辺に沿って配列された複数の第3リードと、部品本体の周縁を規定する、第3辺に平行な第4辺に沿って配列された複数の第4リードとを有する。特に、第1リードの先端が配列される方向を示す第1配列角度、第2リードの先端が配列される方向を示す第2配列角度、第3リードの先端が配列される方向を示す第3配列角度および第4リードの先端が配列される方向を示す第4配列角度が、リード部品画像に基づき算出される。さらに、第1辺に沿って複数の第1リードの先端が配列される幅を示す第1リード配列幅、第2辺に沿って複数の第2リードの先端が配列される幅を示す第2リード配列幅、第3辺に沿って複数の第3リードの先端が配列される幅を示す第3リード配列幅および第4辺に沿って複数の第4リードの先端が配列される幅を示す第4リード配列幅が、リード部品画像に基づき算出される。そして、第1リード配列幅、第2リード配列幅、第3リード配列幅および第4リード配列幅を重み係数とする、第1配列角度、第2配列角度、第3配列角度および第4配列角度の加重平均が、リード部品の回転角度として算出される。かかる構成では、回転角度を高精度に算出するのに有利となる配列幅の広い複数のリードそれぞれの先端の位置がリード部品の回転角度の算出結果に与える影響を大きくしつつ、回転角度を高精度に算出するのに不利となる配列幅の狭い複数のリードそれぞれの先端の位置がリード部品の回転角度の算出結果に与える影響を小さくすることができる。その結果、リード部品の構成によらずにリード部品の回転角度を高精度に算出することが可能となっている。 In a second aspect of the present invention configured as described above, the rotation angle of a lead component is calculated based on a lead component image showing the lead component. The lead component has a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and defines the periphery of the component body. In particular, a first arrangement angle indicating the direction in which the tips of the first leads are arranged, a second arrangement angle indicating the direction in which the tips of the second leads are arranged, a third arrangement angle indicating the direction in which the tips of the third leads are arranged, and a fourth arrangement angle indicating the direction in which the tips of the fourth leads are arranged are calculated based on the lead component image. Furthermore, a first lead arrangement width indicating the width of the arrangement of the tips of the multiple first leads along the first side, a second lead arrangement width indicating the width of the arrangement of the tips of the multiple second leads along the second side, a third lead arrangement width indicating the width of the arrangement of the tips of the multiple third leads along the third side, and a fourth lead arrangement width indicating the width of the arrangement of the tips of the multiple fourth leads along the fourth side are calculated based on the lead component image. Then, a weighted average of the first arrangement angle, the second arrangement angle, the third arrangement angle, and the fourth arrangement angle is calculated as the rotation angle of the lead component, using the first lead arrangement width, the second lead arrangement width, the third lead arrangement width, and the fourth lead arrangement width as weighting coefficients. With this configuration, it is possible to increase the influence on the calculation result of the rotation angle of the lead component of the position of the tips of each of the multiple leads with a wide arrangement width, which is advantageous for calculating the rotation angle with high accuracy, while reducing the influence on the calculation result of the rotation angle of the lead component of the position of the tips of each of the multiple leads with a narrow arrangement width, which is disadvantageous for calculating the rotation angle with high accuracy. As a result, it is possible to calculate the rotation angle of the lead component with high accuracy regardless of the configuration of the lead component.
また、部品撮像部によって撮像されたリード部品画像を取得する画像取得部と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第1幾何中心間直線角度および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第2幾何中心間直線角度を、リード部品画像に基づき算出する幾何中心間直線角度算出部と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心との間の第1中心間距離および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心との間の第2中心間距離を、リード部品画像に基づき算出する中心間距離算出部とをさらに備え、回転角度算出部は、第1リード配列幅、第2リード配列幅、第3リード配列幅、第4リード配列幅、第1中心間距離および第2中心間距離を重み係数とする、第1配列角度、第2配列角度、第3配列角度、第4配列角度、第1幾何中心間直線角度および第2幾何中心間直線角度の加重平均値を、リード部品の回転角度として算出するように、部品実装機を構成してもよい。かかる構成では、回転角度を高精度に算出するのに有利となる中心間距離の広い組み合わせのリードの先端の位置がリード部品の回転角度の算出結果に与える影響を大きくしつつ、回転角度を高精度に算出するのに不利となる中心間距離の狭い組み合わせのリードの先端の位置がリード部品の回転角度の算出結果に与える影響を小さくすることができる。その結果、リード部品の構成によらずにリード部品の回転角度を高精度に算出することが可能となっている。 The system also includes an image acquisition unit that acquires lead component images captured by the component imaging unit, a geometric center line angle calculation unit that calculates, based on the lead component images, a first geometric center line angle indicating the direction of a line connecting the geometric center of the tip of each of the multiple first leads and the geometric center of the tip of each of the multiple second leads, and a second geometric center line angle indicating the direction of a line connecting the geometric center of the tip of each of the multiple third leads and the geometric center of the tip of each of the multiple fourth leads, and a first center distance between the geometric center of the tip of each of the multiple first leads and the geometric center of the tip of each of the multiple second leads, and The mounter may further include a center distance calculation unit that calculates, based on the lead component image, a second center distance between the geometric center of the tip of each of the plurality of third leads and the geometric center of the tip of each of the plurality of fourth leads, and the rotation angle calculation unit calculates, as the rotation angle of the lead component, a weighted average of the first arrangement angle, the second arrangement angle, the third arrangement angle, the fourth arrangement angle, the first geometric center line angle, and the second geometric center line angle, using the first lead arrangement width, the second lead arrangement width, the third lead arrangement width, the fourth lead arrangement width, the first center distance, and the second center distance as weighting factors. This configuration can increase the influence on the calculation result of the rotation angle of the lead component of the position of the tips of leads with a wide center distance, which is advantageous for calculating the rotation angle with high accuracy, while reducing the influence on the calculation result of the rotation angle of the lead component of the position of the tips of leads with a narrow center distance, which is disadvantageous for calculating the rotation angle with high accuracy. As a result, it is possible to calculate the rotation angle of the lead component with high accuracy regardless of the configuration of the lead component.
本発明の第三態様に係る部品実装機は、矩形を有する部品本体と、部品本体の周縁を規定する第1辺に沿って配列された複数の第1リードと、部品本体の周縁を規定する、第1辺に平行な第2辺に沿って配列された複数の第2リードと、部品本体の周縁を規定する、第1辺に直交する第3辺に沿って配列された複数の第3リードと、部品本体の周縁を規定する、第3辺に平行な第4辺に沿って配列された複数の第4リードとを有するリード部品を保持する実装ヘッドと、 実装ヘッドに保持されるリード部品を示すリード部品画像を撮像する部品撮像部と、部品撮像部によって撮像されたリード部品画像を取得する画像取得部と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第1幾何中心間直線角度および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第2幾何中心間直線角度を、リード部品画像に基づき算出する幾何中心間直線角度算出部と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心との間の第1中心間距離および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心との間の第2中心間距離を、リード部品画像に基づき算出する中心間距離算出部と、第1中心間距離および第2中心間距離を重み係数とする、第1幾何中心間直線角度および第2幾何中心間直線角度の加重平均を、リード部品の回転角度として算出する回転角度算出部とを備える。 A component mounter according to a third aspect of the present invention includes a mounting head that holds a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and that defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and that defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and that defines the periphery of the component body; a component imaging unit that captures an image of the lead component held by the mounting head; an image acquisition unit that acquires the lead component image captured by the component imaging unit; and a geometric center linear angle calculation unit that calculates, based on the lead component image, a first inter-geometric center linear angle that indicates the direction of a line connecting the geometric center of the tip of each of the plurality of first leads and the geometric center of the tip of each of the plurality of second leads, and a second inter-geometric center linear angle that indicates the direction of a line connecting the geometric center of the tip of each of the plurality of third leads and the geometric center of the tip of each of the plurality of fourth leads. The system includes a rotation angle calculation unit, a center distance calculation unit that calculates, based on a lead component image, a first center-to-center distance between the geometric center of the tip of each of the multiple first leads and the geometric center of the tip of each of the multiple second leads, and a second center-to-center distance between the geometric center of the tip of each of the multiple third leads and the geometric center of the tip of each of the multiple fourth leads, and a rotation angle calculation unit that calculates, as the rotation angle of the lead component, a weighted average of the first geometric center-to-center straight-line angle and the second geometric center-to-center straight-line angle, using the first center-to-center distance and the second center-to-center distance as weighting coefficients.
本発明の第三態様に係るリード部品の回転角度算出方法は、矩形を有する部品本体と、部品本体の周縁を規定する第1辺に沿って配列された複数の第1リードと、部品本体の周縁を規定する、第1辺に平行な第2辺に沿って配列された複数の第2リードと、部品本体の周縁を規定する、第1辺に直交する第3辺に沿って配列された複数の第3リードと、部品本体の周縁を規定する、第3辺に平行な第4辺に沿って配列された複数の第4リードとを有するリード部品を示すリード部品画像を取得する工程と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第1幾何中心間直線角度および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第2幾何中心間直線角度を、リード部品画像に基づき算出する工程と、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心との間の第1中心間距離および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心との間の第2中心間距離を、リード部品画像に基づき算出する工程と、第1中心間距離および第2中心間距離を重み係数とする、第1幾何中心間直線角度および第2幾何中心間直線角度の加重平均を、リード部品の回転角度として算出する工程とを備える。 A method for calculating the rotation angle of a lead component according to a third aspect of the present invention includes the steps of acquiring a lead component image showing a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and that defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and that defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and that defines the periphery of the component body; and calculating a first inter-geometric center straight-line angle indicating the direction of a line connecting the geometric center of the tip of each of the plurality of first leads and the geometric center of the tip of each of the plurality of second leads, and a second inter-geometric center angle indicating the direction of a line connecting the geometric center of the tip of each of the plurality of second leads. The method includes a step of calculating, based on a lead component image, a second geometric center straight-line angle indicating the direction of a line connecting the geometric center of the tip of each of the third leads and the geometric center of the tip of each of the multiple fourth leads; a step of calculating, based on the lead component image, a first center-to-center distance between the geometric center of the tip of each of the multiple first leads and the geometric center of the tip of each of the multiple second leads and a second center-to-center distance between the geometric center of the tip of each of the multiple third leads and the geometric center of the tip of each of the multiple fourth leads; and a step of calculating, as the rotation angle of the lead component, a weighted average of the first geometric center straight-line angle and the second geometric center straight-line angle, using the first center-to-center distance and the second center-to-center distance as weighting coefficients.
このように構成された本発明の第三態様では、リード部品を示すリード部品画像に基づき、リード部品の回転角度が算出される。このリード部品は、矩形を有する部品本体と、部品本体の周縁を規定する第1辺に沿って配列された複数の第1リードと、部品本体の周縁を規定する、第1辺に平行な第2辺に沿って配列された複数の第2リードと、部品本体の周縁を規定する、第1辺に直交する第3辺に沿って配列された複数の第3リードと、部品本体の周縁を規定する、第3辺に平行な第4辺に沿って配列された複数の第4リードとを有する。特に、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第1幾何中心間直線角度および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第2幾何中心間直線角度が、リード部品画像に基づき算出される。さらに、複数の第1リードそれぞれの先端の幾何中心と、複数の第2リードそれぞれの先端の幾何中心との間の第1中心間距離および複数の第3リードそれぞれの先端の幾何中心と、複数の第4リードそれぞれの先端の幾何中心との間の第2中心間距離が、リード部品画像に基づき算出される。そして、第1中心間距離および第2中心間距離を重み係数とする、第1幾何中心間直線角度および第2幾何中心間直線角度の加重平均が、リード部品の回転角度として算出される。かかる構成では、回転角度を高精度に算出するのに有利となる中心間距離の広い組み合わせのリードの先端の位置がリード部品の回転角度の算出結果に与える影響を大きくしつつ、回転角度を高精度に算出するのに不利となる中心間距離の狭い組み合わせのリードの先端の位置がリード部品の回転角度の算出結果に与える影響を小さくすることができる。その結果、リード部品の構成によらずにリード部品の回転角度を高精度に算出することが可能となっている。 In a third aspect of the present invention configured as described above, the rotation angle of a lead component is calculated based on a lead component image showing the lead component. The lead component includes a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and defines the periphery of the component body. In particular, a first inter-geometric center linear angle indicating the direction of a line connecting the geometric center of the tip of each of the first leads to the geometric center of the tip of each of the second leads, and a second inter-geometric center linear angle indicating the direction of a line connecting the geometric center of the tip of each of the third leads to the geometric center of the tip of each of the fourth leads are calculated based on the lead component image. Furthermore, a first center-to-center distance between the geometric center of the tip of each of the multiple first leads and the geometric center of the tip of each of the multiple second leads, and a second center-to-center distance between the geometric center of the tip of each of the multiple third leads and the geometric center of the tip of each of the multiple fourth leads, are calculated based on the lead component image. Then, a weighted average of the first and second geometric center-to-center linear angles, with the first and second center-to-center distances used as weighting factors, is calculated as the rotation angle of the lead component. This configuration increases the influence on the calculation results of the rotation angle of the lead component of the position of the tips of leads with a wide center-to-center distance, which is advantageous for calculating the rotation angle with high accuracy, while reducing the influence on the calculation results of the rotation angle of the lead component of the position of the tips of leads with a narrow center-to-center distance, which is disadvantageous for calculating the rotation angle with high accuracy. As a result, it is possible to calculate the rotation angle of the lead component with high accuracy regardless of the configuration of the lead component.
本発明に係るリード部品の回転角度算出プログラムは、上記のリード部品の回転角度算出方法をコンピュータに実行させる。 The lead component rotation angle calculation program of the present invention causes a computer to execute the above-mentioned lead component rotation angle calculation method.
以上のように、本発明によれば、リード部品の構成によらずにリード部品の回転角度を高精度に算出することが可能となっている。 As described above, according to the present invention, it is possible to calculate the rotation angle of a lead component with high accuracy regardless of the configuration of the lead component.
図1は本発明に係る部品実装機の一例を模式的に示す平面図であり、図2は図1の部品実装機が備える電気的構成を示すブロック図である。図1では、水平方向であるGx方向、Gx方向に直交するGy方向および鉛直方向であるGz方向が適宜示される。この部品実装機1は、図2に示すようにコントローラー100を備え、コントローラー100が装置各部を制御することで、基板Bに設けられた各実装箇所に部品9が実装される。コントローラー100は、CPU(Central Processing Unit)やRAM(Random Access Memory)で構成されたプロセッサである演算処理部110およびHDD(Hard Disk Drive)あるいはSSD(Solid State Drive)で構成された記憶装置である記憶部120を有する。記憶部120には、後に詳述する部品認識を演算処理部110に実行させる部品認識プログラムPが記憶されている。さらに、コントローラー100は、部品実装機1の駆動系を制御する駆動制御部130、部品9の吸着に用いる負圧を制御するバルブ制御部140および部品実装機1の撮像系を制御する撮像制御部150を有し、演算処理部110が各制御部130、140、150の動作を統括的に管理する。 Figure 1 is a plan view schematically illustrating an example of a component mounter according to the present invention, and Figure 2 is a block diagram illustrating the electrical configuration of the component mounter of Figure 1. Figure 1 appropriately illustrates the horizontal Gx direction, the Gy direction perpendicular to the Gx direction, and the vertical Gz direction. This component mounter 1 includes a controller 100, as shown in Figure 2. The controller 100 controls each component of the device, thereby mounting components 9 at each mounting location on a board B. The controller 100 includes an arithmetic processing unit 110, which is a processor comprised of a CPU (Central Processing Unit) and RAM (Random Access Memory), and a memory unit 120, which is a storage device comprised of an HDD (Hard Disk Drive) or SSD (Solid State Drive). The memory unit 120 stores a component recognition program P that causes the arithmetic processing unit 110 to execute component recognition, as described in detail below. Furthermore, the controller 100 has a drive control unit 130 that controls the drive system of the component mounter 1, a valve control unit 140 that controls the negative pressure used to pick up the components 9, and an imaging control unit 150 that controls the imaging system of the component mounter 1, and the calculation processing unit 110 comprehensively manages the operation of each control unit 130, 140, and 150.
また、コントローラー100は、部品実装機1とは別に設けられたサーバーコンピューターSと通信を行う通信IF160を有する。このサーバーコンピューターSの記憶装置には、部品認識プログラムPが保存されており、通信IF160がサーバーコンピューターSからダウンロードした部品認識プログラムPが記憶部120に保存される。なお、部品認識プログラムPの提供態様は、サーバーコンピューターSからのダウンロードによらない。つまり、部品認識プログラムPを保存するUSB(Universal Serial Bus)メモリ等によって部品認識プログラムPが提供されてもよい。 The controller 100 also has a communication IF 160 that communicates with a server computer S that is provided separately from the component mounter 1. A component recognition program P is stored in the storage device of this server computer S, and the component recognition program P downloaded from the server computer S by the communication IF 160 is stored in the storage unit 120. Note that the component recognition program P does not have to be provided by downloading it from the server computer S. In other words, the component recognition program P may be provided by a USB (Universal Serial Bus) memory or the like that stores the component recognition program P.
図1に示すように、部品実装機1は、基台11の上においてGx方向に並列に配列された一対のコンベア12、12を備え、各コンベア12はGx方向に基板Bを搬送する。部品実装機1は、各コンベア12によりGx方向(基板搬送方向)の上流側から基板支持位置12B(図1の基板Bの位置)に搬入した基板Bに対して部品を実装し、部品の実装を完了した基板Bを各コンベア12により基板支持位置12BからGx方向の下流側へ搬出する。 As shown in FIG. 1, the component mounter 1 has a pair of conveyors 12, 12 arranged in parallel in the Gx direction on a base 11, and each conveyor 12 transports a board B in the Gx direction. The component mounter 1 mounts components onto a board B that has been transported by each conveyor 12 from the upstream side in the Gx direction (board transport direction) to a board support position 12B (the position of board B in FIG. 1) and then transports the board B, on which component mounting has been completed, from the board support position 12B to the downstream side in the Gx direction by each conveyor 12.
部品実装機1では、Gy方向に延びる一対のY軸レール21、21と、Gy方向に延びるY軸ボールネジ22と、Y軸ボールネジ22を回転駆動するY軸モーターMyとが設けられ、Gx方向に延びるX軸レール23が一対のY軸レール21、21によりGy方向に移動可能に支持された状態でY軸ボールネジ22のナットに固定されている。X軸レール23には、Gx方向に延びるX軸ボールネジ24と、X軸ボールネジ24を回転駆動するX軸モーターMxとが取り付けられており、ヘッドユニット25がX軸レール23にGx方向に移動可能に支持された状態でX軸ボールネジ24のナットに固定されている。したがって、駆動制御部130は、Y軸モーターMyによりY軸ボールネジ22を回転させてヘッドユニット25をGy方向に移動させ、あるいはX軸モーターMxによりX軸ボールネジ24を回転させてヘッドユニット25をGx方向に移動させることができる。 The mounter 1 is provided with a pair of Y-axis rails 21, 21 extending in the Gy direction, a Y-axis ball screw 22 extending in the Gy direction, and a Y-axis motor My that rotates the Y-axis ball screw 22. An X-axis rail 23 extending in the Gx direction is supported by the pair of Y-axis rails 21, 21 so that it can move in the Gy direction and is fixed to the nut of the Y-axis ball screw 22. An X-axis ball screw 24 extending in the Gx direction and an X-axis motor Mx that rotates the X-axis ball screw 24 are attached to the X-axis rail 23. A head unit 25 is supported on the X-axis rail 23 so that it can move in the Gx direction and is fixed to the nut of the X-axis ball screw 24. Therefore, the drive control unit 130 can rotate the Y-axis ball screw 22 using the Y-axis motor My to move the head unit 25 in the Gy direction, or rotate the X-axis ball screw 24 using the X-axis motor Mx to move the head unit 25 in the Gx direction.
一対のコンベア12、12のGy方向の一方側では、2個のトレイ部品供給部3がGx方向に並んでいる。各トレイ部品供給部3は、例えば特開2015-179709号公報に示されるトレイ部品供給装置と同様の構成を有し、基台11の上面に設けられた部品取出位置31にまでパレットに伴って引き出されたトレイ32を用いて部品9(リード部品)を供給する。このトレイ32は、マトリックス状(図1の例では3行5列)に配列された複数の部品供給箇所33を有し、各部品供給箇所33に部品9が収容されている。 Two tray component supply units 3 are lined up in the Gx direction on one side of the pair of conveyors 12, 12 in the Gy direction. Each tray component supply unit 3 has a configuration similar to the tray component supply device shown in, for example, JP 2015-179709 A, and supplies components 9 (lead components) using trays 32 pulled out along with the pallet to a component removal position 31 provided on the top surface of the base 11. This tray 32 has multiple component supply locations 33 arranged in a matrix (3 rows and 5 columns in the example of Figure 1), and components 9 are stored in each component supply location 33.
一対のコンベア12、12のGy方向の他方側では、2個のテープ部品供給部4がGx方向に並んでいる。各テープ部品供給部4に対しては、複数のテープフィーダー41がGx方向に並んで着脱可能に装着されている。テープフィーダー41はGy方向に延設されており、Gy方向におけるヘッドユニット25側の先端部に部品供給箇所43を有する。集積回路、トランジスター、コンデンサー等の小片状の部品(チップ部品)を所定間隔おきに収容したテープがテープフィーダー41に装填されている。テープフィーダー41は、テープをヘッドユニット25側へ向けてGy方向に間欠的に送り出すことで、テープ内の部品をGy方向に送り出して、その部品供給箇所43に順番に供給する。 On the other side of the pair of conveyors 12, 12 in the Gy direction, two tape component supply units 4 are lined up in the Gx direction. Multiple tape feeders 41 are lined up in the Gx direction and detachably attached to each tape component supply unit 4. The tape feeders 41 extend in the Gy direction and have a component supply point 43 at their tip on the head unit 25 side in the Gy direction. A tape containing small chip components such as integrated circuits, transistors, and capacitors at predetermined intervals is loaded into the tape feeder 41. The tape feeder 41 intermittently feeds the tape in the Gy direction toward the head unit 25, feeding the components on the tape in the Gy direction and supplying them sequentially to the component supply points 43.
ヘッドユニット25は、Gx方向に直線状に並ぶ複数(5本)の実装ヘッド5を有する。各実装ヘッド5はGz方向に平行に延設されており、各実装ヘッド5の下端にはノズルが取り付けられている。各実装ヘッド5は、駆動制御部130の制御に応じて動作するX軸モーターMxおよびY軸モーターMyからの駆動力を受けて、ヘッドユニット25に伴ってGx方向およびGy方向へ移動する。また、部品実装機1は、各実装ヘッド5に接続されたZ軸モーターMzおよびR軸モーターMrを備えており、各実装ヘッド5は、駆動制御部130の制御に応じて動作するZ軸モーターMzからの駆動力によりノズルを昇降させるとともに、駆動制御部130の制御に応じて動作するR軸モーターMrからの駆動力により、R方向にノズルを回転させる。ここで、R方向は、Gz方向に平行な回転軸を中心とする回転方向である。さらに、部品実装機1は各実装ヘッド5に連通する負圧発生器6を有し、バルブ制御部140が負圧発生器6と実装ヘッド5との間に設けられたバルブの開閉を制御することで、実装ヘッド5のノズルに与えられる気圧を調整する。そして、実装ヘッド5は、こうして調整される気圧を利用して、ノズルにより部品の吸着・実装を行う。 The head unit 25 has multiple (five) mounting heads 5 aligned in a line in the Gx direction. Each mounting head 5 extends parallel to the Gz direction, and a nozzle is attached to the bottom end of each mounting head 5. Each mounting head 5 receives driving force from an X-axis motor Mx and a Y-axis motor My, which operate under the control of the drive control unit 130, and moves in the Gx and Gy directions along with the head unit 25. The component mounter 1 also has a Z-axis motor Mz and an R-axis motor Mr connected to each mounting head 5. Each mounting head 5 raises and lowers its nozzle with the driving force from the Z-axis motor Mz, which operates under the control of the drive control unit 130, and rotates the nozzle in the R direction with the driving force from the R-axis motor Mr, which operates under the control of the drive control unit 130. Here, the R direction is the direction of rotation around an axis of rotation parallel to the Gz direction. Furthermore, the component mounter 1 has a negative pressure generator 6 that communicates with each mounting head 5, and the valve control unit 140 controls the opening and closing of a valve installed between the negative pressure generator 6 and the mounting head 5, thereby adjusting the air pressure applied to the nozzle of the mounting head 5. The mounting head 5 then uses the air pressure adjusted in this way to pick up and mount components using the nozzle.
つまり、実装ヘッド5は、トレイ32の部品供給箇所33の上方に位置させたノズルを下降させて当該部品供給箇所33に収容された部品9に当接させた後に、ノズルに供給される負圧により部品9を吸着しつつノズルを上昇させる。続いて、実装ヘッド5は基板支持位置12Bに支持された基板Bの実装箇所の上方に移動し、部品9が基板Bの実装箇所に当接するまでノズルを下降させた後にノズルに供給される大気圧あるいは正圧により部品9を基板Bの実装箇所に実装する。また、テープフィーダー41が部品供給箇所43に供給する部品に対する吸着・実装も同様にして実行される。 In other words, the mounting head 5 lowers the nozzle positioned above the component supply point 33 on the tray 32 until it abuts against the component 9 stored in the component supply point 33, and then raises the nozzle while suctioning the component 9 using the negative pressure supplied to the nozzle. Next, the mounting head 5 moves above the mounting point of board B supported at board support position 12B, lowers the nozzle until the component 9 abuts against the mounting point of board B, and then mounts the component 9 at the mounting point of board B using atmospheric or positive pressure supplied to the nozzle. Components supplied to the component supply point 43 by the tape feeder 41 are similarly picked up and mounted.
さらに、部品実装機1は、上方を向いて基台11に取り付けられた部品認識カメラ7を備える。部品認識カメラ7は、個体撮像素子を有し、撮像対象からの光を個体撮像素子によって検出することで撮像対象を撮像する。特に部品認識カメラ7は、実装ヘッド5のノズルに吸着された部品9に対して下方から対向しつつ部品9を撮像することで、底面視において部品9を示す部品画像Iを取得する。具体的には、駆動制御部130がX軸モーターMxおよびY軸モーターMyを制御することで、実装ヘッド5のノズルに吸着される部品9を部品認識カメラ7に対して上方から対向させる。そして、撮像制御部150が部品認識カメラ7に撮像を実行させて、部品認識カメラ7が取得した部品画像Iを部品認識カメラ7から受信する。駆動制御部130および撮像制御部150は、演算処理部110からの指令に従ってかかる動作を協働して実行し、部品認識カメラ7によって取得された部品画像Iは、撮像制御部150を介して演算処理部110に送信される。 The component mounter 1 further includes a component recognition camera 7 attached to the base 11 and facing upward. The component recognition camera 7 has a solid-state imaging element and captures an image of the object by detecting light from the object with the solid-state imaging element. In particular, the component recognition camera 7 captures an image of the component 9 picked up by the nozzle of the mounting head 5 while facing the component 9 from below, thereby obtaining a component image I showing the component 9 from a bottom view. Specifically, the drive control unit 130 controls the X-axis motor Mx and the Y-axis motor My to position the component 9 picked up by the nozzle of the mounting head 5 facing the component recognition camera 7 from above. The imaging control unit 150 then causes the component recognition camera 7 to capture an image and receives the component image I captured by the component recognition camera 7 from the component recognition camera 7. The drive control unit 130 and imaging control unit 150 cooperatively perform these operations in accordance with commands from the calculation processing unit 110, and the component image I captured by the component recognition camera 7 is transmitted to the calculation processing unit 110 via the imaging control unit 150.
図3Aは部品認識カメラの撮像対象である部品を模式的に示す底面図であり、図3Bは部品認識カメラの撮像対象である部品を模式的に示す側面図である。両図では、水平方向である方向Exと、方向Exに直交する方向Eyとが示される。 Figure 3A is a bottom view that schematically shows a part that is the object of imaging by the part recognition camera, and Figure 3B is a side view that schematically shows a part that is the object of imaging by the part recognition camera. Both figures show a horizontal direction Ex and a direction Ey that is perpendicular to direction Ex.
部品9は、底面視において矩形を有するパッケージ90を有し、パッケージ90は、底面視における当該パッケージ90の周縁を規定する4つの辺911、912、913、914を有する。辺911および辺912は方向Eyに平行であって同一の長さを有し、辺913および辺914は方向Exに平行であって同一の長さを有する。つまり、辺911と辺912とは、辺913(あるいは辺914)の長さに等しい間隔を空けて互いに対向し、辺913と辺914とは、辺911(あるいは辺912)の長さに等しい間隔を空けて互いに対向し、辺911、912のそれぞれと辺913、914のそれぞれとは互いに直交する。 Component 9 has a package 90 that is rectangular in bottom view, and package 90 has four sides 911, 912, 913, and 914 that define the periphery of package 90 in bottom view. Sides 911 and 912 are parallel to direction Ey and have the same length, and sides 913 and 914 are parallel to direction Ex and have the same length. In other words, sides 911 and 912 face each other at a distance equal to the length of side 913 (or side 914), sides 913 and 914 face each other at a distance equal to the length of side 911 (or side 912), and sides 911 and 912 are perpendicular to sides 913 and 914, respectively.
さらに、部品9は、辺911に沿って方向Eyに等ピッチで配列された複数のリード91を有する。底面視において、各リード91は、パッケージ90の辺911から方向Exに平行に延設され、方向Eyに所定の幅を有する。また、部品9は、辺912に沿って方向Eyに等ピッチで配列された複数のリード92を有する。底面視において、各リード92は、パッケージ90の辺912から方向Exに平行に延設され、方向Eyに所定の幅を有する。このように、部品9はリード91、92を有するいわゆるリード部品である。 Furthermore, component 9 has multiple leads 91 arranged at equal pitch in direction Ey along side 911. In bottom view, each lead 91 extends parallel to direction Ex from side 911 of package 90 and has a predetermined width in direction Ey. Also, component 9 has multiple leads 92 arranged at equal pitch in direction Ey along side 912. In bottom view, each lead 92 extends parallel to direction Ex from side 912 of package 90 and has a predetermined width in direction Ey. In this way, component 9 is a so-called lead component having leads 91, 92.
図4は部品実装機において実行される部品認識の一例を示すフローチャートであり、図5は図4の部品認識で実行される回転角度算出の一例を示すフローチャートであり、図6Aおよび図6Bは図5の回転角度算出のステップS201、S202で実行される演算の内容を互いに異なる種類の部品について模式的に示す図であり、図7Aは図5の回転角度算出のステップS204、S205で実行される内容を模式的に示す図であり、図7Bは図5の回転角度算出のステップS206、S207で実行される内容を模式的に示す図である。なお、図6Aおよび図7Aでは同一種類の部品9が示され、図6Bおよび図7Bでは同一種類の部品9が示される。 Figure 4 is a flowchart showing an example of component recognition performed in a component mounter, Figure 5 is a flowchart showing an example of rotation angle calculation performed in the component recognition of Figure 4, Figures 6A and 6B are diagrams schematically showing the contents of the calculations performed in steps S201 and S202 of the rotation angle calculation of Figure 5 for different types of components, Figure 7A is a diagram schematically showing the contents performed in steps S204 and S205 of the rotation angle calculation of Figure 5, and Figure 7B is a diagram schematically showing the contents performed in steps S206 and S207 of the rotation angle calculation of Figure 5. Note that Figures 6A and 7A show components 9 of the same type, and Figures 6B and 7B show components 9 of the same type.
図6A、図6B、図7Aおよび図7Bでは、水平方向に平行なX座標軸と、X座標軸に直交するY座標軸とで構成されるXY座標系が示される。このXY座標系は、演算処理部110が部品画像Iに対して演算(画像処理)を実行して部品画像Iに示される部品9を認識するために使用する座標系に相当する。特に部品9に対して設定された方向Exおよび方向Eyのうち、方向ExはX座標軸に対応し、方向EyはY座標軸に対応する。つまり、鉛直方向に平行な回転軸を中心とする部品9の回転角度θがゼロである場合には、方向ExはX座標軸に平行となり、方向EyはY座標軸に平行となる。ただし、方向Ex、EyとXY座標系との位置関係はこの例に限られず、方向Ex、Eyに対するXY座標系の設定態様は任意である。また、X座標軸はGx方向に平行であり、Y座標軸はGy方向に平行である。ただし、X座標軸およびY座標軸がGx方向およびGy方向にそれぞれ平行である必要は必ずしもない。 6A, 6B, 7A, and 7B show an XY coordinate system consisting of an X coordinate axis parallel to the horizontal direction and a Y coordinate axis perpendicular to the X coordinate axis. This XY coordinate system corresponds to the coordinate system used by the calculation processing unit 110 to perform calculations (image processing) on the part image I and recognize the part 9 shown in the part image I. In particular, of the directions Ex and Ey set for the part 9, direction Ex corresponds to the X coordinate axis, and direction Ey corresponds to the Y coordinate axis. In other words, when the rotation angle θ of the part 9 around the rotation axis parallel to the vertical direction is zero, direction Ex is parallel to the X coordinate axis, and direction Ey is parallel to the Y coordinate axis. However, the positional relationship between directions Ex and Ey and the XY coordinate system is not limited to this example, and the XY coordinate system can be set in any manner relative to directions Ex and Ey. Furthermore, the X coordinate axis is parallel to the Gx direction, and the Y coordinate axis is parallel to the Gy direction. However, the X coordinate axis and the Y coordinate axis do not necessarily have to be parallel to the Gx direction and the Gy direction, respectively.
図4の部品認識は、部品認識プログラムPに従って演算処理部110によって実行される。この部品認識のステップS100では、部品画像Iが取得される。具体的には、演算処理部110は駆動制御部130を制御することで、実装ヘッド5のノズルに吸着された部品9を、部品認識カメラ7に対して上方から対向させる。そして、演算処理部110は、撮像制御部150を制御することで、部品認識カメラ7に部品9を撮像させて部品画像Iを取得させる。こうして、部品認識カメラ7によって取得された部品画像Iは、撮像制御部150を介して演算処理部110に送信される。 The component recognition in FIG. 4 is executed by the arithmetic processing unit 110 in accordance with the component recognition program P. In this component recognition step S100, a component image I is acquired. Specifically, the arithmetic processing unit 110 controls the drive control unit 130 to position the component 9 picked up by the nozzle of the mounting head 5 facing the component recognition camera 7 from above. The arithmetic processing unit 110 then controls the imaging control unit 150 to cause the component recognition camera 7 to capture an image of the component 9 and acquire the component image I. In this way, the component image I acquired by the component recognition camera 7 is transmitted to the arithmetic processing unit 110 via the imaging control unit 150.
ステップS200では、ステップS100で取得された部品画像Iに基づき、部品9の回転角度θが算出される。ここで、部品9の回転角度θとは、鉛直方向に平行な回転軸を中心として部品9が回転する角度であり、図6A、図6B、図7Aおよび図7Bの例では、X座標軸に対する方向Exの角度(換言すれば、Y座標軸に対する方向Eyの角度)が回転角度θに相当する。 In step S200, the rotation angle θ of part 9 is calculated based on part image I acquired in step S100. Here, the rotation angle θ of part 9 is the angle at which part 9 rotates around a rotation axis parallel to the vertical direction, and in the examples of Figures 6A, 6B, 7A, and 7B, the angle of direction Ex relative to the X coordinate axis (in other words, the angle of direction Ey relative to the Y coordinate axis) corresponds to the rotation angle θ.
図5の回転角度算出のステップS201では、演算処理部110は、リード91、92のリード配列幅W91、W92を取得する。ステップS201での具体的な演算内容を、図6Aおよび図6Bを用いて具体的に説明すると次の通りである。 In step S201 of the rotation angle calculation in Figure 5, the calculation processing unit 110 obtains the lead arrangement widths W91 and W92 of the leads 91 and 92. The specific calculation content in step S201 is explained in detail below using Figures 6A and 6B.
複数のリード91それぞれの先端T91の位置が部品画像Iに基づき算出される。ここで、リード91の先端T91とは、リード91の延設方向である方向Exにおけるリード91の両端のうち、パッケージ90側の端と逆側の端である。また、先端T91の位置は、リード91の幅方向である方向Eyにおける先端T91の中心C91の位置である。そして、複数のリード91の配列方向である方向Eyにおいて、複数のリード91のうち両端に位置する2個のリード91それぞれの中心C91の間の範囲がリード91のリード配列範囲R91として求められ、リード配列範囲R91の幅がリード配列幅W91として算出される。同様に、複数のリード92それぞれの先端T92の位置が部品画像Iに基づき算出される。そして、複数のリード92の配列方向である方向Eyにおいて、複数のリード92のうち両端に位置する2個のリード92それぞれの中心C92の間の範囲がリード92のリード配列範囲R92として求められ、リード配列範囲R92の幅がリード配列幅W92として算出される。 The position of the tip T91 of each of the multiple leads 91 is calculated based on the component image I. Here, the tip T91 of the lead 91 refers to the end of the lead 91 opposite the end facing the package 90 in the direction Ex, which is the extension direction of the lead 91. The position of the tip T91 is also the position of the center C91 of the tip T91 in the direction Ey, which is the width direction of the lead 91. The range between the centers C91 of the two leads 91 located at both ends of the multiple leads 91 in the direction Ey, which is the arrangement direction of the multiple leads 91, is calculated as the lead arrangement range R91 of the lead 91, and the width of the lead arrangement range R91 is calculated as the lead arrangement width W91. Similarly, the position of the tip T92 of each of the multiple leads 92 is calculated based on the component image I. The range between the centers C92 of the two leads 92 located at both ends of the multiple leads 92 in the direction Ey, which is the arrangement direction of the multiple leads 92, is calculated as the lead arrangement range R92 of the lead 92, and the width of the lead arrangement range R92 is calculated as the lead arrangement width W92.
また、図5の回転角度算出のステップS202では、演算処理部110は、中心間距離Dを取得する。ステップS202での具体的な演算内容を、図6Aおよび図6Bを用いて具体的に説明すると次の通りである。 Furthermore, in step S202 of the rotation angle calculation in Figure 5, the calculation processing unit 110 obtains the center-to-center distance D. The specific calculation content in step S202 is explained in detail below using Figures 6A and 6B.
上述の通り、ステップS201では、方向Eyに配列された複数のリード91の先端T91の位置、すなわち中心C91が算出される。これに対して、ステップS202では、ステップS201で算出された複数の先端T91の位置(中心C91)の幾何中心G91が算出される。つまり、複数の中心C91それぞれのXY座標(X,Y)の平均が幾何中心G91として算出される。同様に、複数の先端T92の位置(中心C92)の幾何中心G92が算出される。つまり、複数の中心C92それぞれのXY座標(X,Y)の平均が幾何中心G92として算出される。そして、幾何中心G91と幾何中心G92との間の距離が中心間距離Dとして算出される。 As described above, in step S201, the positions of the tips T91 of the multiple leads 91 arranged in the direction Ey, i.e., the centers C91, are calculated. In contrast, in step S202, the geometric center G91 of the positions (centers C91) of the multiple tips T91 calculated in step S201 is calculated. That is, the average of the XY coordinates (X, Y) of each of the multiple centers C91 is calculated as the geometric center G91. Similarly, the geometric center G92 of the positions (centers C92) of the multiple tips T92 is calculated. That is, the average of the XY coordinates (X, Y) of each of the multiple centers C92 is calculated as the geometric center G92. The distance between the geometric centers G91 and G92 is then calculated as the center-to-center distance D.
ステップS203では、部品9の回転角度θの算出に使用する算出基準角度が、リード配列角度および幾何中心間直線角度のうちから選択される。具体的には、リード配列幅W91とリード配列幅W92との和が中心間距離D以上である場合(W91+W92≧Dの場合)には、リード配列角度が算出基準角度に算出される。一方、リード配列幅W91とリード配列幅W92との和が中心間距離D未満である場合(W91+W92<Dの場合)には、幾何中心間直線角度が算出基準角度に算出される。 In step S203, the calculation reference angle used to calculate the rotation angle θ of component 9 is selected from the lead arrangement angle and the geometric center line angle. Specifically, if the sum of lead arrangement width W91 and lead arrangement width W92 is equal to or greater than the center-to-center distance D (if W91 + W92 ≧ D), the lead arrangement angle is calculated as the calculation reference angle. On the other hand, if the sum of lead arrangement width W91 and lead arrangement width W92 is less than the center-to-center distance D (if W91 + W92 < D), the geometric center line angle is calculated as the calculation reference angle.
ステップS203でリード配列角度が算出基準角度に選択された場合には、ステップS204、S205が実行される。ステップS204では、複数のリード91それぞれの位置(中心C91)を表す回帰直線L91が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L91の回転角度θ91が算出される(図7A)。この回転角度θ91(第1配列角度)は、複数のリード91の先端T91が配列される方向を示す。同様に、複数のリード92それぞれの位置(中心C92)を表す回帰直線L92が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L92の回転角度θ92が算出される(図7A)。この回転角度θ92(第2配列角度)は、複数のリード92の先端T92が配列される方向を示す。そして、ステップS205では、回転角度θ91と回転角度θ92との平均が部品9の回転角度θとして算出される。 If the lead arrangement angle is selected as the calculation reference angle in step S203, steps S204 and S205 are executed. In step S204, a regression line L91 representing the position (center C91) of each of the multiple leads 91 is calculated using the least squares method, and a rotation angle θ91 of the regression line L91 centered on a rotation axis parallel to the vertical direction is calculated (Figure 7A). This rotation angle θ91 (first arrangement angle) indicates the direction in which the tips T91 of the multiple leads 91 are arranged. Similarly, a regression line L92 representing the position (center C92) of each of the multiple leads 92 is calculated using the least squares method, and a rotation angle θ92 of the regression line L92 centered on a rotation axis parallel to the vertical direction is calculated (Figure 7A). This rotation angle θ92 (second arrangement angle) indicates the direction in which the tips T92 of the multiple leads 92 are arranged. Then, in step S205, the average of the rotation angles θ91 and θ92 is calculated as the rotation angle θ of the component 9.
ステップS203で幾何中心間直線角度が算出基準角度に選択された場合には、ステップS206、S207が実行される。ステップS206では、幾何中心G91と幾何中心G92とを結ぶ直線である幾何中心間直線Lgが算出されて、鉛直方向に平行な回転軸を中心とする幾何中心間直線Lgの回転角度θgが算出される(図7B)。つまり、回転角度θgは、幾何中心間直線Lgの方向を示す。そして、ステップS207では、回転角度θgが部品9の回転角度θに決定される。 If the geometric center line angle is selected as the calculation reference angle in step S203, steps S206 and S207 are executed. In step S206, the geometric center line Lg, which is the line connecting the geometric centers G91 and G92, is calculated, and the rotation angle θg of the geometric center line Lg about a rotation axis parallel to the vertical direction is calculated (Figure 7B). In other words, the rotation angle θg indicates the direction of the geometric center line Lg. Then, in step S207, the rotation angle θg is determined as the rotation angle θ of part 9.
以上に示す実施形態では、部品9(リード部品)を示す部品画像I(リード部品画像)に基づき、部品9の回転角度θが算出される(ステップS204、S205、S206、S207)。この部品9は、矩形を有するパッケージ90(部品本体)と、パッケージ90の周縁を規定する辺911(第1対象辺)に沿って配列された複数のリード91(第1リード)と、パッケージ90の周縁を規定する、辺911に平行な辺912(第2対象辺)に沿って配列された複数のリード92(第2リード)とを有する。特に、部品9の回転角度θを算出するために使用する算出基準角度が、回転角度θ91、θ92(リード配列角度)および回転角度θg(幾何中心間直線角度)のうちから選択される(ステップS203)。したがって、回転角度θ92、θ92を算出基準角度に選択することで、辺911、912に沿った複数のリード91、92のリード配列範囲R91、R92のリード配列幅W91、W92が広い部品9の回転角度θを高精度に算出できる。一方、回転角度θgを算出基準角度に選択することで、それぞれに沿って複数のリード91、92が配列された辺911と辺912との間隔(中心間距離D)が広い部品9の回転角度θを高精度に算出できる。これに対して、辺911に沿って複数のリード91の先端T91が配列されるリード配列範囲R91(第1範囲)の幅を示すリード配列幅W91(第1リード配列幅)および辺912に沿って複数のリード92の先端が配列されるリード配列範囲R92(第2範囲)の幅を示すリード配列幅W92(第2リード配列幅)が取得される(ステップS201)。また、リード配列範囲R91の中心(幾何中心G91)とリード配列範囲R92の中心(幾何中心G91)との間の距離を示す中心間距離Dが取得される(ステップS202)。そして、リード配列幅W91、W92(配列幅情報)と、中心間距離D(中心間距離情報)とに基づき、算出基準角度が選択される(ステップS203)。したがって、部品9の構成に適した算出基準角度を選択して、当該基準算出角度に基づき部品9の回転角度θを算出することができる(ステップS204、S205、S2106、S207)。その結果、部品9の構成によらずに部品9の回転角度θを高精度に算出することが可能となっている。 In the embodiment described above, the rotation angle θ of component 9 (lead component) is calculated based on component image I (lead component image) showing component 9 (lead component) (steps S204, S205, S206, S207). This component 9 has a rectangular package 90 (component body), multiple leads 91 (first leads) arranged along an edge 911 (first target edge) that defines the periphery of package 90, and multiple leads 92 (second leads) arranged along an edge 912 (second target edge) that defines the periphery of package 90 and is parallel to edge 911. In particular, the calculation reference angle used to calculate the rotation angle θ of component 9 is selected from rotation angles θ91, θ92 (lead arrangement angles) and rotation angle θg (geometric center-to-center linear angle) (step S203). Therefore, by selecting the rotation angles θ92, θ92 as the calculation reference angle, it is possible to accurately calculate the rotation angle θ of a component 9 having wide lead arrangement widths W91, W92 of the lead arrangement ranges R91, R92 of the multiple leads 91, 92 along the sides 911, 912. On the other hand, by selecting the rotation angle θg as the calculation reference angle, it is possible to accurately calculate the rotation angle θ of a component 9 having a wide distance (center-to-center distance D) between the sides 911 and 912 along which the multiple leads 91, 92 are arranged. In response to this, a lead arrangement width W91 (first lead arrangement width) indicating the width of the lead arrangement range R91 (first range) in which the tips T91 of the multiple leads 91 are arranged along the side 911, and a lead arrangement width W92 (second lead arrangement width) indicating the width of the lead arrangement range R92 (second range) in which the tips of the multiple leads 92 are arranged along the side 912 are obtained (step S201). Additionally, a center-to-center distance D indicating the distance between the center (geometric center G91) of lead arrangement range R91 and the center (geometric center G91) of lead arrangement range R92 is acquired (step S202). Then, a calculation reference angle is selected based on the lead arrangement widths W91 and W92 (arrangement width information) and the center-to-center distance D (center-to-center distance information) (step S203). Therefore, a calculation reference angle appropriate for the configuration of component 9 can be selected, and the rotation angle θ of component 9 can be calculated based on this reference calculation angle (steps S204, S205, S2106, S207). As a result, it is possible to calculate the rotation angle θ of component 9 with high accuracy, regardless of the configuration of component 9.
また、演算処理部110は、ステップS201においてリード配列幅W91およびリード配列幅W92(配列幅情報)を取得し、ステップS202において中心間距離D(中心間距離情報)を取得する。そして、ステップS203において、演算処理部110(データ選択部)は、リード配列幅W91とリード配列幅W92との和である合計配列幅(W91+W92)と中心間距離Dとの比較に基づき算出基準角度を選択する(比較選択処理)。これによって、部品9の構成に適した算出基準角度に基づき、部品9の回転角度θを高精度に算出することが可能となる。 Furthermore, the calculation processing unit 110 acquires the lead arrangement width W91 and lead arrangement width W92 (arrangement width information) in step S201, and acquires the center-to-center distance D (center-to-center distance information) in step S202. Then, in step S203, the calculation processing unit 110 (data selection unit) selects a calculation reference angle based on a comparison between the total arrangement width (W91 + W92), which is the sum of the lead arrangement width W91 and the lead arrangement width W92, and the center-to-center distance D (comparison and selection process). This makes it possible to calculate the rotation angle θ of component 9 with high accuracy based on the calculation reference angle appropriate for the configuration of component 9.
また、ステップS203(比較選択処理)では、合計配列幅(W91+W92)が中心間距離Dより広い場合には、回転角度θ91、θ92(リード配列角度)が算出基準角度に選択される一方、合計配列幅(W91+W92)が中心間距離Dより狭い場合には、回転角度θg(幾何中心間直線角度)が算出基準角度に選択される。これによって、部品9の構成に適した算出基準角度に基づき、部品9の回転角度θを高精度に算出することが可能となる。 Furthermore, in step S203 (comparison and selection process), if the total array width (W91 + W92) is wider than the center-to-center distance D, the rotation angles θ91 and θ92 (lead array angles) are selected as the calculation reference angles, while if the total array width (W91 + W92) is narrower than the center-to-center distance D, the rotation angle θg (linear angle between geometric centers) is selected as the calculation reference angle. This makes it possible to calculate the rotation angle θ of component 9 with high accuracy based on the calculation reference angle appropriate for the configuration of component 9.
図8は図4の部品認識で実行される回転角度算出の第1変形例を示すフローチャートであり、図9は図8の回転角度算出の第1変形例で実行される内容を模式的に示す図である。図8および図5それぞれの回転角度算出の違いは、部品9のリード91およびリード92それぞれの配列の間のオフセットの有無に基づき演算内容を変更している点である(ステップS208)。ここでは、図5との違いを中心に説明を行い、図5と共通する部分については相当符号を付して説明を省略する。 Figure 8 is a flowchart showing a first variant of the rotation angle calculation performed in the component recognition of Figure 4, and Figure 9 is a diagram showing the details executed in the first variant of the rotation angle calculation of Figure 8. The difference between the rotation angle calculations of Figure 8 and Figure 5 is that the calculation details are changed based on whether or not there is an offset between the arrangement of leads 91 and 92 of component 9 (step S208). Here, the explanation will focus on the differences from Figure 5, and parts that are common to Figure 5 will be assigned the same reference numerals and will not be explained further.
図9に示すように、部品9は、辺911に沿って方向Eyに等ピッチで配列された複数のリード91と、辺912に沿って方向Eyに等ピッチで配列された複数のリード92とを有する。ただし、複数のリード91の先端T91が配列されるリード配列範囲R91(第1範囲)の中心(幾何中心G91)と、複数のリード92の先端T92が配列されるリード配列範囲R92(第2範囲)の中心(幾何中心G92)とが、辺911の延設方向である方向Exにおいてずれており(オフセットしており)、各中心(幾何中心G91、G92)を結ぶ直線Ldが辺911および辺912に直交する直線Loに対して傾斜する。そして、直線Loに対する直線Ldの傾斜角α1、α2は、部品9のリード91、92の状態に依存する。 As shown in FIG. 9 , component 9 has multiple leads 91 arranged at equal intervals in direction Ey along side 911, and multiple leads 92 arranged at equal intervals in direction Ey along side 912. However, the center (geometric center G91) of lead arrangement range R91 (first range) in which tips T91 of multiple leads 91 are arranged and the center (geometric center G92) of lead arrangement range R92 (second range) in which tips T92 of multiple leads 92 are arranged are offset in direction Ex, which is the extension direction of side 911, and a line Ld connecting these centers (geometric centers G91, G92) is inclined with respect to a line Lo perpendicular to sides 911 and 912. The inclination angles α1 and α2 of line Ld with respect to line Lo depend on the state of leads 91 and 92 of component 9.
つまり、図9の「リード状態1」におけるリード91、92と比較して、図9の「リード状態2」におけるリード91、92は内側に曲がっている。そのため、図9の「リード状態1」では、方向Exにおけるリード91の先端T91とリード92の先端T92との間には間隔Δ1が開き、図9の「リード状態2」では、方向Exにおけるリード91の先端T91とリード92の先端T92との間には間隔Δ1より短い間隔Δ2が開く。そのため、「リード状態1」における直線Loに対する直線Ldの傾斜角α1と、「リード状態2」における直線Loに対する直線Ldの傾斜角α2とは異なる。つまり、幾何中心G91、G92を結ぶ直線Ldが直線Loに対して傾斜する場合(換言すれば、オフセットがある場合)には、リード91、92の状態によって回転角度θg(図7B)がばらつく。そのため、回転角度θgに基づき部品9の回転角度θを求めることは適切ではない。 9 , leads 91 and 92 are bent inward compared to leads 91 and 92 in "Lead State 1" of FIG. 9 . Therefore, in "Lead State 1" of FIG. 9 , a gap Δ1 exists between the tip T91 of lead 91 and the tip T92 of lead 92 in direction Ex. In "Lead State 2" of FIG. 9 , a gap Δ2, shorter than gap Δ1, exists between the tip T91 of lead 91 and the tip T92 of lead 92 in direction Ex. Therefore, the inclination angle α1 of line Ld relative to line Lo in "Lead State 1" is different from the inclination angle α2 of line Ld relative to line Lo in "Lead State 2." In other words, when line Ld connecting geometric centers G91 and G92 is inclined relative to line Lo (in other words, when there is an offset), the rotation angle θg ( FIG. 7B ) varies depending on the state of leads 91 and 92. Therefore, it is not appropriate to determine the rotation angle θ of component 9 based on the rotation angle θg.
そこで、図8の回転角度算出では、演算処理部110は、部品9がオフセットを有するかを確認する(ステップS208)。この部品9のオフセットの有無は、例えば、規格によって規定される部品9の構成に基づき判断することができる。あるいは、部品9がオフセットを有することを示す情報を記憶部120に予め保存しておき、この情報に基づき判断してもよい。そして、部品9がオフセットを有さない場合(ステップS208で「NO」の場合)には、上記と同様にして、ステップS201~S207が実行される。 In the rotation angle calculation shown in FIG. 8, the calculation processing unit 110 checks whether the component 9 has an offset (step S208). Whether the component 9 has an offset can be determined, for example, based on the configuration of the component 9 as defined by a standard. Alternatively, information indicating that the component 9 has an offset may be stored in advance in the storage unit 120, and the determination may be made based on this information. If the component 9 does not have an offset ("NO" in step S208), steps S201 to S207 are executed in the same manner as described above.
一方、部品9がオフセットを有する場合(ステップS208で「NO」の場合)には、演算処理部110は、ステップS201~S203を実行せずに、ステップS204に進む。このステップS204では、複数のリード91、92の先端T91、T92の位置(中心C91、C92)が部品画像Iに基づき算出される。さらに、複数のリード91それぞれの位置(中心C91)を表す回帰直線L91が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L91の回転角度θ91が算出される。同様に、複数のリード92それぞれの位置(中心C92)を表す回帰直線L92が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L92の回転角度θ92が算出される。そして、ステップS205では、回転角度θ91と回転角度θ92との平均が部品9の回転角度θとして算出される。 On the other hand, if the component 9 has an offset ("NO" in step S208), the calculation processing unit 110 skips steps S201 to S203 and proceeds to step S204. In step S204, the positions (centers C91, C92) of the tips T91, T92 of the multiple leads 91, 92 are calculated based on the component image I. Furthermore, a regression line L91 representing the position (center C91) of each of the multiple leads 91 is calculated using the least squares method, and a rotation angle θ91 of the regression line L91 about a rotation axis parallel to the vertical direction is calculated. Similarly, a regression line L92 representing the position (center C92) of each of the multiple leads 92 is calculated using the least squares method, and a rotation angle θ92 of the regression line L92 about a rotation axis parallel to the vertical direction is calculated. Then, in step S205, the average of the rotation angles θ91 and θ92 is calculated as the rotation angle θ of the component 9.
この変形例では、演算処理部110(データ選択部)は、リード配列範囲R91(第1範囲)の中心(幾何中心G91)とリード配列範囲R92(第2範囲)の中心(幾何中心G92)とを結ぶ直線Ldが辺911および辺912に直交する直線Lo(換言すれば、リード91、92の延設方向)に対して傾く場合(すなわち、部品9がオフセットを有する場合)には、ステップS203(比較選択処理)を実行せずに、回転角度θ91、θ92(リード配列角度)を算出基準角度に選択する。つまり、部品9がオフセットを有する場合には、回転角度θg(幾何中心間直線角度)に基づく部品9の回転角度θの算出は大きな誤差を含む可能性がある。そこで、ステップS203(比較選択処理)を実行せずに、回転角度θ91、θ92(リード配列角度)を算出基準角度に選択することで、部品9の回転角度θを高精度に算出することが可能となる。 In this modification, when the line Ld connecting the center (geometric center G91) of the lead arrangement range R91 (first range) and the center (geometric center G92) of the lead arrangement range R92 (second range) is inclined with respect to the line Lo perpendicular to sides 911 and 912 (in other words, the extension direction of leads 91 and 92) (i.e., when component 9 has an offset), the calculation processing unit 110 (data selection unit) does not execute step S203 (comparison and selection process) and selects rotation angles θ91 and θ92 (lead arrangement angles) as the calculation reference angles. In other words, when component 9 has an offset, the calculation of the rotation angle θ of component 9 based on rotation angle θg (angle between geometric centers) may contain a large error. Therefore, by selecting rotation angles θ91 and θ92 (lead arrangement angles) as the calculation reference angles without executing step S203 (comparison and selection process), it is possible to calculate the rotation angle θ of component 9 with high accuracy.
図10は図4の部品認識で実行される回転角度算出の第2変形例を示すフローチャートであり、図11は図10の回転角度算出の第2変形例で実行される内容を模式的に示す図である。 Figure 10 is a flowchart showing a second variant of the rotation angle calculation performed in the part recognition of Figure 4, and Figure 11 is a diagram showing the details performed in the second variant of the rotation angle calculation of Figure 10.
図11に示す部品9は、辺911に沿って方向Eyに等ピッチで配列された複数のリード91を有する。底面視において、各リード91は、パッケージ90の辺911から方向Exに平行に延設され、方向Eyに所定の幅を有する。また、部品9は、辺912に沿って方向Eyに等ピッチで配列された複数のリード92を有する。底面視において、各リード92は、パッケージ90の辺912から方向Exに平行に延設され、方向Eyに所定の幅を有する。 The component 9 shown in FIG. 11 has multiple leads 91 arranged at equal pitch in the direction Ey along the side 911. In bottom view, each lead 91 extends parallel to the direction Ex from the side 911 of the package 90 and has a predetermined width in the direction Ey. The component 9 also has multiple leads 92 arranged at equal pitch in the direction Ey along the side 912. In bottom view, each lead 92 extends parallel to the direction Ex from the side 912 of the package 90 and has a predetermined width in the direction Ey.
さらに、部品9は、辺913に沿って方向Exに等ピッチで配列された複数のリード93を有する。底面視において、各リード93は、パッケージ90の辺913から方向Eyに平行に延設され、方向Exに所定の幅を有する。また、部品9は、辺914に沿って方向Exに等ピッチで配列された複数のリード94を有する。底面視において、各リード94は、パッケージ90の辺914から方向Eyに平行に延設され、方向Exに所定の幅を有する。 The component 9 further has a plurality of leads 93 arranged at equal intervals in the direction Ex along the side 913. In bottom view, each lead 93 extends parallel to the direction Ey from the side 913 of the package 90 and has a predetermined width in the direction Ex. The component 9 also has a plurality of leads 94 arranged at equal intervals in the direction Ex along the side 914. In bottom view, each lead 94 extends parallel to the direction Ey from the side 914 of the package 90 and has a predetermined width in the direction Ex.
図10の回転角度算出のステップS211では、演算処理部110は、リード91、92、93、94それぞれの先端T91、T92、T93、T94が配列される方向を示す回転角度θ91、θ92、θ93、θ94(リード配列角度)を、部品画像Iに基づき算出する。 In step S211 of calculating the rotation angle in Figure 10, the calculation processing unit 110 calculates the rotation angles θ91, θ92, θ93, and θ94 (lead arrangement angles) that indicate the directions in which the tips T91, T92, T93, and T94 of the leads 91, 92, 93, and 94, respectively, are arranged, based on the component image I.
つまり、方向Eyに配列された複数のリード91の先端T91の位置、すなわち中心C91が算出される。そして、複数のリード91それぞれの位置(中心C91)を表す回帰直線L91が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L91の回転角度θ91(リード配列角度)が算出される。この回転角度θ91(第1配列角度)は、複数のリード91の先端T91が配列される方向を示す。 In other words, the positions of the tips T91 of the multiple leads 91 arranged in the direction Ey, i.e., the centers C91, are calculated. Then, a regression line L91 representing the position (centers C91) of each of the multiple leads 91 is calculated using the least squares method, and the rotation angle θ91 (lead arrangement angle) of the regression line L91 about a rotation axis parallel to the vertical direction is calculated. This rotation angle θ91 (first arrangement angle) indicates the direction in which the tips T91 of the multiple leads 91 are arranged.
同様に、方向Eyに配列された複数のリード92の先端T92の位置、すなわち中心C92が算出される。そして、複数のリード92それぞれの位置(中心C92)を表す回帰直線L92が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L92の回転角度θ92(リード配列角度)が算出される。この回転角度θ92(第2配列角度)は、複数のリード92の先端T92が配列される方向を示す。 Similarly, the positions of the tips T92 of the multiple leads 92 arranged in the direction Ey, i.e., the centers C92, are calculated. Then, a regression line L92 representing the position (centers C92) of each of the multiple leads 92 is calculated using the least squares method, and the rotation angle θ92 (lead arrangement angle) of the regression line L92 about a rotation axis parallel to the vertical direction is calculated. This rotation angle θ92 (second arrangement angle) indicates the direction in which the tips T92 of the multiple leads 92 are arranged.
また、方向Exに配列された複数のリード93の先端T93の位置、すなわち中心C93が算出される。そして、複数のリード93それぞれの位置(中心C93)を表す回帰直線L93が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L93の回転角度θ93(リード配列角度)が算出される。この回転角度θ93(第3配列角度)は、複数のリード93の先端T93が配列される方向を示す。 The positions of the tips T93 of the multiple leads 93 arranged in the direction Ex, i.e., the centers C93, are calculated. A regression line L93 representing the positions (centers C93) of each of the multiple leads 93 is then calculated using the least squares method, and a rotation angle θ93 (lead arrangement angle) of the regression line L93 centered on a rotation axis parallel to the vertical direction is calculated. This rotation angle θ93 (third arrangement angle) indicates the direction in which the tips T93 of the multiple leads 93 are arranged.
同様に、方向Exに配列された複数のリード94の先端T94の位置、すなわち中心C94が算出される。そして、複数のリード94それぞれの位置(中心C94)を表す回帰直線L94が最小二乗法によって算出されて、鉛直方向に平行な回転軸を中心とする回帰直線L94の回転角度θ94(リード配列角度)が算出される。この回転角度θ94(第4配列角度)は、複数のリード94の先端T94が配列される方向を示す。 Similarly, the positions of the tips T94 of the multiple leads 94 arranged in the direction Ex, i.e., the centers C94, are calculated. Then, a regression line L94 representing the positions (centers C94) of each of the multiple leads 94 is calculated using the least squares method, and the rotation angle θ94 (lead arrangement angle) of the regression line L94 centered on a rotation axis parallel to the vertical direction is calculated. This rotation angle θ94 (fourth arrangement angle) indicates the direction in which the tips T94 of the multiple leads 94 are arranged.
ステップS212では、演算処理部110は、リード91、92、93、94それぞれのリード配列幅W91、W92、W93、W94を、部品画像Iに基づき算出する。 In step S212, the calculation processing unit 110 calculates the lead arrangement widths W91, W92, W93, and W94 of leads 91, 92, 93, and 94, respectively, based on the component image I.
つまり、複数のリード91の配列方向である方向Eyにおいて、複数のリード91のうち両端に位置する2個のリード91それぞれの中心C91の間の範囲がリード91のリード配列範囲R91として求められる。そして、リード配列範囲R91の幅がリード配列幅W91として算出される。 In other words, in the direction Ey, which is the arrangement direction of the multiple leads 91, the range between the centers C91 of the two leads 91 located at both ends of the multiple leads 91 is obtained as the lead arrangement range R91 of the leads 91. Then, the width of the lead arrangement range R91 is calculated as the lead arrangement width W91.
同様に、複数のリード92の配列方向である方向Eyにおいて、複数のリード92のうち両端に位置する2個のリード92それぞれの中心C92の間の範囲がリード92のリード配列範囲R92として求められ、リード配列範囲R92の幅がリード配列幅W92として算出される。 Similarly, in the direction Ey, which is the arrangement direction of the multiple leads 92, the range between the centers C92 of the two leads 92 located at both ends of the multiple leads 92 is obtained as the lead arrangement range R92 of the leads 92, and the width of the lead arrangement range R92 is calculated as the lead arrangement width W92.
また、複数のリード93の配列方向である方向Exにおいて、複数のリード93のうち両端に位置する2個のリード93それぞれの中心C93の間の範囲がリード93のリード配列範囲R93として求められる。そして、リード配列範囲R93の幅がリード配列幅W93として算出される。 Furthermore, in the direction Ex, which is the arrangement direction of the multiple leads 93, the range between the centers C93 of the two leads 93 located at both ends of the multiple leads 93 is obtained as the lead arrangement range R93 of the leads 93. Then, the width of the lead arrangement range R93 is calculated as the lead arrangement width W93.
同様に、複数のリード94の配列方向である方向Exにおいて、複数のリード94のうち両端に位置する2個のリード94それぞれの中心C94の間の範囲がリード94のリード配列範囲R94として求められる。そして、リード配列範囲R94の幅がリード配列幅W94として算出される。 Similarly, in the direction Ex, which is the arrangement direction of the multiple leads 94, the range between the centers C94 of the two leads 94 located at both ends of the multiple leads 94 is obtained as the lead arrangement range R94 of the leads 94. Then, the width of the lead arrangement range R94 is calculated as the lead arrangement width W94.
なお、ステップS211、S212の実行順序はここの例に限られない。したがって、ステップS212を実行してからステップS211を実行してもよい。 Note that the order in which steps S211 and S212 are executed is not limited to this example. Therefore, step S212 may be executed before step S211.
ステップS213では、演算処理部110(回転角度算出部)は、リード配列幅W91、W92、W93、W94を重み係数とする回転角度θ91、θ92、θ93、θ94の加重平均値を、部品9の回転角度θと算出する。つまり、次式
θ=(W91×θ91+W92×θ92+W93×θ93+W94×θ94)/(W91+W92+W93+W94)
に基づき、部品9の回転角度θが算出される。
In step S213, the calculation processing unit 110 (rotation angle calculation unit) calculates the weighted average value of rotation angles θ91, θ92, θ93, and θ94, using lead arrangement widths W91, W92, W93, and W94 as weighting factors, as the rotation angle θ of the component 9. That is, the following equation is used: θ=(W91×θ91+W92×θ92+W93×θ93+W94×θ94)/(W91+W92+W93+W94).
The rotation angle θ of the part 9 is calculated based on the above.
この変形例では、部品9(リード部品)を示す部品画像I(リード部品画像)に基づき、部品9の回転角度θが算出される。この部品9は、矩形を有するパッケージ90(部品本体)を有し、パッケージ90の周縁は、辺911(第1辺)、辺912(第2辺)、辺913(第3辺)および辺914(第4辺)によって規定され、辺911および辺912は互いに平行であり、辺913および辺914は互いに平行であり、辺911、912と辺913、914とは互いに直交する。また、部品9は、辺911に沿って配列された複数のリード91(第1リード)と、辺912に沿って配列された複数のリード92(第2リード)と、辺913に沿って配列された複数のリード93と、辺914に沿って配列された複数のリード94(第4リード)とを有する。 In this modified example, the rotation angle θ of component 9 (lead component) is calculated based on component image I (lead component image) showing component 9 (lead component). This component 9 has a rectangular package 90 (component body), and the periphery of package 90 is defined by side 911 (first side), side 912 (second side), side 913 (third side), and side 914 (fourth side). Sides 911 and 912 are parallel to each other, sides 913 and 914 are parallel to each other, and sides 911, 912 are perpendicular to sides 913, 914. Component 9 also has a plurality of leads 91 (first leads) arranged along side 911, a plurality of leads 92 (second leads) arranged along side 912, a plurality of leads 93 arranged along side 913, and a plurality of leads 94 (fourth leads) arranged along side 914.
特に、リード91の先端T91が配列される方向を示す回転角度θ91(第1配列角度)、リード92の先端T92が配列される方向を示す回転角度θ92(第2配列角度)、リード93の先端T93が配列される方向を示す回転角度θ93(第3配列角度)およびリード94の先端が配列される方向を示す回転角度θ94(第4配列角度)が、部品画像Iに基づき算出される(ステップS211)。また、辺911に沿って複数のリード91の先端T91が配列される幅を示すリード配列幅W91(第1リード配列幅)、辺912に沿って複数のリード92の先端T92が配列される幅を示すリード配列幅W92(第2リード配列幅)、辺913に沿って複数のリード93の先端T93が配列される幅を示すリード配列幅W93(第3リード配列幅)および辺914に沿って複数のリード94の先端T94が配列される幅を示すリード配列幅W94(第4リード配列幅)が、部品画像Iに基づき算出される(ステップS212)。そして、リード配列幅W91、W92、W93、W94を重み係数とする回転角度θ91、θ92、θ93、θ94の加重平均が部品9の回転角度θとして算出される(ステップS213)。かかる構成では、回転角度θを高精度に算出するのに有利となるリード配列幅W91、W92の広い複数のリード91、92それぞれの先端T91、T92の位置(中心C91、C92)が部品9の回転角度θの算出結果に与える影響を大きくしつつ、回転角度θを高精度に算出するのに不利となるリード配列幅W93、W94の狭い複数のリード93、94それぞれの先端T93、T94の位置(中心C93、C94)が部品9の回転角度θの算出結果に与える影響を小さくすることができる。その結果、部品9の構成によらずに部品9の回転角度θを高精度に算出することが可能となっている。 In particular, rotation angle θ91 (first arrangement angle) indicating the direction in which tip T91 of lead 91 is arranged, rotation angle θ92 (second arrangement angle) indicating the direction in which tip T92 of lead 92 is arranged, rotation angle θ93 (third arrangement angle) indicating the direction in which tip T93 of lead 93 is arranged, and rotation angle θ94 (fourth arrangement angle) indicating the direction in which tip 94 is arranged are calculated based on component image I (step S211). Furthermore, a lead arrangement width W91 (first lead arrangement width) indicating the width across which tips T91 of multiple leads 91 are arranged along side 911, a lead arrangement width W92 (second lead arrangement width) indicating the width across which tips T92 of multiple leads 92 are arranged along side 912, a lead arrangement width W93 (third lead arrangement width) indicating the width across which tips T93 of multiple leads 93 are arranged along side 913, and a lead arrangement width W94 (fourth lead arrangement width) indicating the width across which tips T94 of multiple leads 94 are arranged along side 914 are calculated based on component image I (step S212). Then, a weighted average of rotation angles θ91, θ92, θ93, and θ94, with lead arrangement widths W91, W92, W93, and W94 used as weighting coefficients, is calculated as the rotation angle θ of component 9 (step S213). With this configuration, the influence on the calculation results of the rotation angle θ of the component 9 of the positions (centers C91, C92) of the tips T91, T92 of the multiple leads 91, 92 with wide lead arrangement widths W91, W92, which is advantageous for calculating the rotation angle θ with high accuracy, can be increased, while the influence on the calculation results of the rotation angle θ of the component 9 of the positions (centers C93, C94) of the tips T93, T94 of the multiple leads 93, 94 with narrow lead arrangement widths W93, W94, which is disadvantageous for calculating the rotation angle θ with high accuracy, can be reduced. As a result, it is possible to calculate the rotation angle θ of the component 9 with high accuracy regardless of the configuration of the component 9.
以上に説明したように本実施形態では、部品実装機1が本発明の「部品実装機」の一例に相当し、実装ヘッド5が本発明の「実装ヘッド」の一例に相当し、部品認識カメラ7が本発明の「部品撮像部」の一例に相当し、部品9が本発明の「リード部品」の一例に相当し、パッケージ90が本発明の「部品本体」の一例に相当し、リード91が本発明の「第1リード」の一例に相当し、リード92が本発明の「第2リード」の一例に相当し、リード93が本発明の「第3リード」の一例に相当し、リード94が本発明の「第4リード」の一例に相当し、辺911が本発明の「第1対象辺」あるいは「第1辺」の一例に相当し、辺912が本発明の「第2対象辺」あるいは「第2辺」の一例に相当し、辺913が本発明の「第3辺」の一例に相当し、辺914が本発明の「第4辺」の一例に相当し、演算処理部110が本発明の「画像取得部」の一例に相当し、演算処理部110が本発明の「配列幅算出部」の一例に相当し、演算処理部110が本発明の「配列角度算出部」の一例に相当し、演算処理部110が本発明の「幾何中心間直線角度算出部」の一例に相当し、演算処理部110が本発明の「データ選択部」の一例に相当し、演算処理部110が本発明の「回転角度算出部」の一例に相当し、演算処理部110が本発明の「情報算出部」の一例に相当し、演算処理部110が本発明の「コンピュータ」の一例に相当し、中心間距離Dが本発明の「中心間距離」および「中心間距離情報」の一例に相当し、幾何中心G91、幾何中心G92が本発明の「幾何中心」の一例に相当し、部品認識プログラムPが本発明の「リード部品の回転角度算出プログラム」の一例に相当し、リード配列範囲R91が本発明の「第1範囲」の一例に相当し、リード配列範囲R92が本発明の「第2範囲」の一例に相当し、サーバーコンピューターSが本発明の「記録媒体」の一例に相当し、先端T91、先端T92、先端T93および先端T94が本発明の「先端」の一例に相当し、リード配列幅W91が本発明の「第1リード配列幅」および「配列幅情報」の一例に相当し、リード配列幅W92が本発明の「第2リード配列幅」および「配列幅情報」の一例に相当し、リード配列幅W93が本発明の「第3リード配列幅」の一例に相当し、リード配列幅W94が本発明の「第4リード配列幅」の一例に相当し、回転角度θが本発明の「回転角度」の一例に相当し、回転角度θ91が本発明の「第1配列角度」および「リード配列角度」の一例に相当し、回転角度θ92が本発明の「第2配列角度」および「リード配列角度」の一例に相当し、回転角度θ93が本発明の「第3配列角度」の一例に相当し、回転角度θ94が本発明の「第4配列角度」の一例に相当し、回転角度θgが本発明の「幾何中心間直線角度」の一例に相当し、ステップS203が本発明の「比較選択処理」の一例に相当する。 As explained above, in this embodiment, the component mounter 1 corresponds to an example of a "component mounter" of the present invention, the mounting head 5 corresponds to an example of a "mounting head" of the present invention, the component recognition camera 7 corresponds to an example of a "component imaging unit" of the present invention, the component 9 corresponds to an example of a "lead component" of the present invention, the package 90 corresponds to an example of a "component body" of the present invention, the lead 91 corresponds to an example of a "first lead" of the present invention, the lead 92 corresponds to an example of a "second lead" of the present invention, the lead 93 corresponds to an example of a "third lead" of the present invention, the lead 94 corresponds to an example of a "fourth lead" of the present invention, the edge 911 corresponds to an example of a "first target edge" or "first edge" of the present invention, and the edge 912 corresponds to an example of a "second target edge" or "third target edge" of the present invention. the side 913 corresponds to an example of the "third side" of the present invention, the side 914 corresponds to an example of the "fourth side" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "image acquisition unit" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "arrangement width calculation unit" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "arrangement angle calculation unit" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "inter-geometric center straight line angle calculation unit" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "data selection unit" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "rotation angle calculation unit" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "information calculation unit" of the present invention, the arithmetic processing unit 110 corresponds to an example of the "computer" of the present invention, and the center distance D is the geometric center G91 and the geometric center G92 correspond to an example of the "geometric center" of the present invention; the component recognition program P corresponds to an example of the "lead component rotation angle calculation program" of the present invention; the lead arrangement range R91 corresponds to an example of the "first range" of the present invention; the lead arrangement range R92 corresponds to an example of the "second range" of the present invention; the server computer S corresponds to an example of the "recording medium" of the present invention; the tip T91, the tip T92, the tip T93, and the tip T94 correspond to an example of the "tips" of the present invention; the lead arrangement width W91 corresponds to an example of the "first lead arrangement width" and "arrangement width information" of the present invention; and correspond to an example of "arrangement width information", lead arrangement width W93 corresponds to an example of the "third lead arrangement width" of the present invention, lead arrangement width W94 corresponds to an example of the "fourth lead arrangement width" of the present invention, rotation angle θ corresponds to an example of the "rotation angle" of the present invention, rotation angle θ91 corresponds to an example of the "first arrangement angle" and "lead arrangement angle" of the present invention, rotation angle θ92 corresponds to an example of the "second arrangement angle" and "lead arrangement angle" of the present invention, rotation angle θ93 corresponds to an example of the "third arrangement angle" of the present invention, rotation angle θ94 corresponds to an example of the "fourth arrangement angle" of the present invention, rotation angle θg corresponds to an example of the "angle between geometric centers" of the present invention, and step S203 corresponds to an example of the "comparison and selection process" of the present invention.
なお、本発明は上記実施形態に限定されるものではなく、その趣旨を逸脱しない限りにおいて上述したものに対して種々の変更を加えることが可能である。例えば、上記の図5の例では、ステップS203において、合計配列幅(W91+W92)と中心間距離Dとが等しい場合には、回転角度θ91、θ92(リード配列角度)が算出基準角度に選択される。しかしながら、ステップS203において、合計配列幅(W91+W92)と中心間距離Dとが等しい場合には、中心間距離D(幾何中心間直線角度)が算出基準角度に選択されるように、上記の例を変形してもよい。 The present invention is not limited to the above embodiment, and various modifications can be made to the above without departing from the spirit of the invention. For example, in the example of FIG. 5 above, if the total array width (W91 + W92) and the center-to-center distance D are equal in step S203, the rotation angles θ91 and θ92 (lead array angles) are selected as the calculation reference angles. However, the above example may be modified so that if the total array width (W91 + W92) and the center-to-center distance D are equal in step S203, the center-to-center distance D (linear angle between geometric centers) is selected as the calculation reference angle.
また、上記の図5の例のステップS201、S202におけるリード配列幅W91、W92(配列幅情報)および中心間距離D(中心間距離情報)の取得態様は種々想定される。つまり、上記の例では、演算処理部110(情報算出部)は、リード配列幅W91、W92(配列幅情報)および中心間距離D(中心間距離情報)を部品画像Iに基づき算出する。換言すれば、部品画像Iに示される部品9からリード配列幅W91、W92(配列幅情報)および中心間距離D(中心間距離情報)が抽出される。しかしながら、これらの情報は、規格によって規定される部品9の構成に基づき予め求めておくことができる。そこで、部品9の規格に基づき求められるリード配列幅W91、W92(配列幅情報)および中心間距離D(中心間距離情報)を記憶部120に予め記憶させておき、演算処理部110(データ取得部)は、リード配列幅W91、W92(配列幅情報)および中心間距離D(中心間距離情報)を記憶部120から取得してもよい(ステップS201、S202)。 Furthermore, various methods for acquiring the lead arrangement widths W91, W92 (arrangement width information) and center-to-center distance D (center-to-center distance information) in steps S201 and S202 of the example in Figure 5 above are envisioned. That is, in the above example, the calculation processing unit 110 (information calculation unit) calculates the lead arrangement widths W91, W92 (arrangement width information) and center-to-center distance D (center-to-center distance information) based on component image I. In other words, the lead arrangement widths W91, W92 (arrangement width information) and center-to-center distance D (center-to-center distance information) are extracted from the component 9 shown in component image I. However, this information can be obtained in advance based on the configuration of the component 9 as defined by the standard. Therefore, the lead arrangement widths W91, W92 (arrangement width information) and center-to-center distance D (center-to-center distance information) required based on the specifications of component 9 may be stored in advance in the memory unit 120, and the calculation processing unit 110 (data acquisition unit) may acquire the lead arrangement widths W91, W92 (arrangement width information) and center-to-center distance D (center-to-center distance information) from the memory unit 120 (steps S201, S202).
また、上記では、部品9が実装ヘッド5によって部品供給箇所43から吸着されてから基板Bに実装するまでのタイミングにおいて、算出基準角度がリード配列角度および幾何中心間直線角度のうちから選択されている。しかしながら、算出基準角度を選択するタイミングはこれに限られない。つまり、図12に示すように、実装ヘッド5が部品供給箇所43から部品9を吸着して基板Bに実装する部品実装が開始されるよりまえに、算出基準角度を予め選択してもよい。 In the above example, the calculated reference angle is selected from the lead arrangement angle and the geometric center line angle at the timing from when the component 9 is picked up by the mounting head 5 from the component supply location 43 to when it is mounted on the board B. However, the timing for selecting the calculated reference angle is not limited to this. In other words, as shown in FIG. 12 , the calculated reference angle may be selected in advance before the mounting head 5 starts picking up the component 9 from the component supply location 43 and mounting it on the board B.
図12は部品実装の開始前に実行される算出基準角度選択の一例を示すフローチャートであり、図13は図12の算出基準角度選択を予め実行する場合の回転角度算出の一例を示すフローチャートである。図12のフローチャートを開始するにあたっては、部品9のリード配列幅W91、S92および中心間距離Dは、当該部品9の規格に基づき求められて、予め記憶部120に記憶されている。そして、ステップS221では、演算処理部110は、リード91、92のリード配列幅W91、W92を記憶部120から取得する。また、ステップS222では、演算処理部110は、中心間距離Dを記憶部120から取得する。ステップS223では、上述と同様にして、部品9の回転角度θの算出に使用する算出基準角度が、リード配列角度および幾何中心間直線角度のうちから選択される。 Figure 12 is a flowchart showing an example of calculation reference angle selection that is executed before component mounting begins, and Figure 13 is a flowchart showing an example of rotation angle calculation when the calculation reference angle selection of Figure 12 is executed in advance. Before starting the flowchart of Figure 12, the lead arrangement widths W91 and S92 and center-to-center distance D of component 9 are determined based on the specifications of that component 9 and are stored in advance in storage unit 120. Then, in step S221, processing unit 110 acquires the lead arrangement widths W91 and W92 of leads 91 and 92 from storage unit 120. In addition, in step S222, processing unit 110 acquires the center-to-center distance D from storage unit 120. In step S223, similar to the above, the calculation reference angle used to calculate the rotation angle θ of component 9 is selected from the lead arrangement angle and the geometric center-to-center straight-line angle.
ステップS223でリード配列角度が算出基準角度に選択された場合には、当該部品9の回転角度θを求める際の算出基準角度がリード配列角度であることを示す算出基準角度情報が、記憶部120に保存される(ステップS224)。一方、ステップS223で幾何中心間直線角度が算出基準角度に選択された場合には、当該部品9の回転角度θを求める際の算出基準角度が幾何中心間直線角度であることを示す算出基準角度情報が、記憶部120に保存される(ステップS225)。 If the lead arrangement angle is selected as the calculation reference angle in step S223, calculation reference angle information indicating that the calculation reference angle when determining the rotation angle θ of the component 9 is the lead arrangement angle is stored in the memory unit 120 (step S224). On the other hand, if the geometric center straight line angle is selected as the calculation reference angle in step S223, calculation reference angle information indicating that the calculation reference angle when determining the rotation angle θ of the component 9 is the geometric center straight line angle is stored in the memory unit 120 (step S225).
図13に示すように、かかる構成では、部品画像Iに基づき当該部品画像Iが示す部品9の回転角度θを算出するにあたっては、演算処理部110は、記憶部120に保存された算出基準角度情報を読み出す(ステップS231)。そして、演算処理部110は、当該算出基準角度情報が示す算出基準角度に基づき部品9の回転角度θを算出する(ステップS203~S207)。 As shown in FIG. 13, in this configuration, when calculating the rotation angle θ of the part 9 indicated by part image I based on that part image I, the calculation processing unit 110 reads the calculation reference angle information stored in the memory unit 120 (step S231). Then, the calculation processing unit 110 calculates the rotation angle θ of the part 9 based on the calculation reference angle indicated by the calculation reference angle information (steps S203 to S207).
また、算出基準角度を選択して回転角度を算出する実施例の適用対象は、図6A、図6B、図7Aおよび図7Bに例示するような2辺にリードを有する部品9に限られず、図11に例示するような4辺にリードを有する部品9であってもよい。後者の部品9に対しては、例えば図14に示すようにして回転角度算出を実行できる。 Furthermore, the application of the embodiment in which the rotation angle is calculated by selecting a calculation reference angle is not limited to components 9 with leads on two sides as illustrated in Figures 6A, 6B, 7A, and 7B, but may also be to components 9 with leads on four sides as illustrated in Figure 11. For the latter components 9, rotation angle calculation can be performed, for example, as shown in Figure 14.
図14は図4の部品認識で実行される回転角度算出の第3変形例を示すフローチャートである。ステップS241では、演算処理部110は、部品9の4つの辺911、912、913、914のうち、互いに平行な2辺911、912(第1ペア)を対象に選択する。そして、辺911(第1対象辺)に沿って配列されるリード91と、辺912(第2対象辺)に沿って配列されるリード92について、ステップS201~S204、S206が上述と同様に実行される。 Figure 14 is a flowchart showing a third modified example of the rotation angle calculation performed in the component recognition of Figure 4. In step S241, the calculation processing unit 110 selects two parallel sides 911 and 912 (first pair) of the four sides 911, 912, 913, and 914 of the component 9 as targets. Then, steps S201 to S204 and S206 are performed in the same manner as described above for the lead 91 arranged along side 911 (first target side) and the lead 92 arranged along side 912 (second target side).
ステップS242では、演算処理部110は、部品9の4つの辺911、912、913、914のうち、第1ペアとは異なる互いに平行な2辺913、914(第2ペア)を対象に選択する。そして、辺913(第1対象辺)に沿って配列されるリード93と、辺914(第2対象辺)に沿って配列されるリード94について、ステップS201~S204、S206が上述と同様に実行される。 In step S242, the calculation processing unit 110 selects two parallel sides 913, 914 (second pair) that are different from the first pair of four sides 911, 912, 913, and 914 of the component 9 as targets. Then, steps S201 to S204 and S206 are executed in the same manner as described above for the leads 93 arranged along side 913 (first target side) and the leads 94 arranged along side 914 (second target side).
ステップS243では、演算処理部110は、辺911、912のリード91、92について選択された算出基準角度(リード配列角度/幾何中心間直線角度)と、辺913、914のリード93、94について選択された算出基準角度(リード配列角度/幾何中心間直線角度)との平均を、部品9の回転角度θとして算出する。 In step S243, the calculation processing unit 110 calculates the average of the calculated reference angle (lead arrangement angle/straight line angle between geometric centers) selected for the leads 91 and 92 on sides 911 and 912 and the calculated reference angle (lead arrangement angle/straight line angle between geometric centers) selected for the leads 93 and 94 on sides 913 and 914 as the rotation angle θ of the component 9.
かかる変形例では、部品9は、辺911(第1辺)、辺911に平行な辺912、辺913および辺913に平行な辺914(第4辺)を有する。これに対して、演算処理部110(データ選択部)は、辺911および辺912(第1対象辺および第2対象辺)を対象として算出基準角度を選択した結果である第1算出基準角度(1回目のステップS203で選択された角度)と、辺913および辺914(第1対象辺および第2対象辺)を対象として算出基準角度を選択した結果である第2算出基準角度(2回目のステップS203で選択された角度)とを取得する。そして、演算処理部110(回転角度算出部)は、1回目および2回目のステップS203で選択された算出基準角度(第1および第2算出基準角度)に基づき、部品9の回転角度θを算出する(ステップS204、S206、S243)。かかる構成では、部品9のパッケージ90の周縁を規定する4辺911、912、913、914それぞれに配列されたリード91、92、93、94に基づき、部品9の回転角度θを算出することができる。 In this modified example, part 9 has side 911 (first side), side 912 parallel to side 911, side 913, and side 914 (fourth side) parallel to side 913. In response, the calculation processing unit 110 (data selection unit) acquires a first calculated reference angle (the angle selected in the first step S203) resulting from selecting a calculation reference angle for sides 911 and 912 (the first and second target sides), and a second calculated reference angle (the angle selected in the second step S203) resulting from selecting a calculation reference angle for sides 913 and 914 (the first and second target sides). The calculation processing unit 110 (rotation angle calculation unit) then calculates the rotation angle θ of part 9 based on the calculation reference angles (first and second calculated reference angles) selected in the first and second steps S203 (steps S204, S206, S243). With this configuration, the rotation angle θ of the component 9 can be calculated based on the leads 91, 92, 93, and 94 arranged on each of the four sides 911, 912, 913, and 914 that define the periphery of the package 90 of the component 9.
また、図10の回転角度算出では、リード配列角度の加重平均に基づき部品9の回転角度θを算出する。しかしながら、図15および図16に示すように、幾何中心間直線角度の加重平均に基づき部品9の回転角度θを算出してもよい。 In addition, in the rotation angle calculation in Figure 10, the rotation angle θ of the component 9 is calculated based on a weighted average of the lead arrangement angles. However, as shown in Figures 15 and 16, the rotation angle θ of the component 9 may also be calculated based on a weighted average of the linear angles between the geometric centers.
図15は図4の部品認識で実行される回転角度算出の第4変形例を示すフローチャートであり、図16は図15の回転角度算出の第4変形例で実行される内容を模式的に示す図である。図16に示す部品9は、図10に示す部品9と同様の構成を具備する。 Figure 15 is a flowchart showing a fourth variant of the rotation angle calculation performed in the part recognition of Figure 4, and Figure 16 is a diagram showing a schematic diagram of the content performed in the fourth variant of the rotation angle calculation of Figure 15. The part 9 shown in Figure 16 has the same configuration as the part 9 shown in Figure 10.
図15の回転角度算出のステップS251では、演算処理部110は、リード91とリード92との間の幾何中心間直線Lg1の回転角度θg1(幾何中心間角度)と、リード93とリード94との間の幾何中心間直線Lg2の回転角度θg2(幾何中心間角度)とを、部品画像Iに基づき算出する。 In step S251 of the rotation angle calculation in Figure 15, the calculation processing unit 110 calculates the rotation angle θg1 (angle between geometric centers) of the geometric center line Lg1 between leads 91 and 92, and the rotation angle θg2 (angle between geometric centers) of the geometric center line Lg2 between leads 93 and 94, based on the component image I.
具体的には、複数のリード91の複数の先端T91の位置(中心C91)の幾何中心G91が算出される。また、複数のリード92の複数の先端T92の位置(中心C92)の幾何中心G92が算出される。そして、幾何中心G91と幾何中心G92とを結ぶ直線である幾何中心間直線Lg1が算出されて、鉛直方向に平行な回転軸を中心とする幾何中心間直線Lg1の回転角度θg1が算出される。 Specifically, the geometric center G91 of the positions (center C91) of the multiple tips T91 of the multiple leads 91 is calculated. The geometric center G92 of the positions (center C92) of the multiple tips T92 of the multiple leads 92 is calculated. Then, the geometric center line Lg1, which is the line connecting the geometric center G91 and the geometric center G92, is calculated, and the rotation angle θg1 of the geometric center line Lg1 about a rotation axis parallel to the vertical direction is calculated.
同様に、複数のリード93の複数の先端T93の位置(中心C93)の幾何中心G93が算出される。また、複数のリード94の複数の先端T94の位置(中心C94)の幾何中心G94が算出される。そして、幾何中心G93と幾何中心G94とを結ぶ直線である幾何中心間直線Lg2が算出されて、鉛直方向に平行な回転軸を中心とする幾何中心間直線Lg2の回転角度θg2が算出される。 Similarly, the geometric center G93 of the positions (center C93) of the multiple tips T93 of the multiple leads 93 is calculated. Also, the geometric center G94 of the positions (center C94) of the multiple tips T94 of the multiple leads 94 is calculated. Then, a geometric center line Lg2, which is a line connecting the geometric center G93 and the geometric center G94, is calculated, and the rotation angle θg2 of the geometric center line Lg2 about a rotation axis parallel to the vertical direction is calculated.
ステップS252では、演算処理部110は、リード91とリード92との間の中心間距離D1と、リード93とリード94との間の中心間距離D2とを、部品画像Iに基づき算出する。つまり、幾何中心G91と幾何中心G92との間の距離が中心間距離D1として算出され、幾何中心G93と幾何中心G94との間の距離が中心間距離D2として算出される。なお、ステップS251、S252の実行順序はここの例に限られない。したがって、ステップS252を実行してからステップS251を実行してもよい。 In step S252, the calculation processing unit 110 calculates the center-to-center distance D1 between leads 91 and 92 and the center-to-center distance D2 between leads 93 and 94 based on the component image I. That is, the distance between geometric centers G91 and G92 is calculated as center-to-center distance D1, and the distance between geometric centers G93 and G94 is calculated as center-to-center distance D2. Note that the order in which steps S251 and S252 are performed is not limited to this example. Therefore, step S252 may be performed before step S251.
ステップS253では、演算処理部110(回転角度算出部)は、中心間距離D1、D2を重み係数とする回転角度θg1、θg2の加重平均値を、部品9の回転角度θと算出する。つまり、次式
θ=(D1×θg1+D2×θg2)/(D1+D2)
に基づき、部品9の回転角度θが算出される。
In step S253, the calculation processing unit 110 (rotation angle calculation unit) calculates the weighted average value of the rotation angles θg1 and θg2 using the center-to-center distances D1 and D2 as weighting factors as the rotation angle θ of the component 9. That is, the following equation is used: θ=(D1×θg1+D2×θg2)/(D1+D2)
The rotation angle θ of the part 9 is calculated based on the above.
この実施例では、部品9(リード部品)を示す部品画像I(リード部品画像)に基づき、部品9の回転角度θが算出される。特に、幾何中心間直線Lg1の回転角度θg1(第1幾何中心間直線角度)および幾何中心間直線Lg2の回転角度θg2(第2幾何中心間直線角度)が、部品画像Iに基づき算出される(ステップS251)。ここで、回転角度θg1は、複数のリード91(第1リード)それぞれの先端T91の幾何中心G91と、複数のリード92(第2リード)それぞれの先端T92の幾何中心G92とを結ぶ幾何中心間直線Lg1の方向を示す角度である。また、回転角度θg2は、複数のリード93(第3リード)それぞれの先端T93の幾何中心G93と、複数のリード94(第4リード)それぞれの先端T94の幾何中心G94とを結ぶ幾何中心間直線Lg2の方向を示す角度である。さらに、中心間距離D1(第1中心間距離)および中心間距離D2(第2中心間距離)が、部品画像Iに基づき算出される(ステップS252)。ここで、中心間距離D1は、複数のリード91それぞれの先端T91の幾何中心G91と、複数のリード92それぞれの先端T92の幾何中心G92との間の距離である。また、中心間距離D2は、複数のリード93それぞれの先端T93の幾何中心G93と、複数のリード94それぞれの先端T94の幾何中心G94との間の距離である。そして、中心間距離D1および中心間距離D2を重み係数とする、回転角度θg1および回転角度θg2の加重平均が、部品9の回転角度θとして算出される(ステップS253)。かかる構成では、回転角度θを高精度に算出するのに有利となる中心間距離の広い組み合わせのリードの先端の位置が部品9の回転角度θの算出結果に与える影響を大きくしつつ、回転角度θを高精度に算出するのに不利となる中心間距離の狭い組み合わせのリードの先端の位置が部品9の回転角度θの算出結果に与える影響を小さくすることができる。その結果、部品9の構成によらずに部品9の回転角度θを高精度に算出することが可能となっている。 In this embodiment, the rotation angle θ of component 9 is calculated based on component image I (lead component image) showing component 9 (lead component). In particular, the rotation angle θg1 (first geometric center line angle) of the geometric center line Lg1 and the rotation angle θg2 (second geometric center line angle) of the geometric center line Lg2 are calculated based on component image I (step S251). Here, the rotation angle θg1 is the angle indicating the direction of the geometric center line Lg1 connecting the geometric center G91 of the tip T91 of each of the multiple leads 91 (first leads) and the geometric center G92 of the tip T92 of each of the multiple leads 92 (second leads). Furthermore, the rotation angle θg2 is the angle indicating the direction of the geometric center line Lg2 connecting the geometric center G93 of the tip T93 of each of the multiple leads 93 (third leads) and the geometric center G94 of the tip T94 of each of the multiple leads 94 (fourth leads). Furthermore, a center-to-center distance D1 (first center-to-center distance) and a center-to-center distance D2 (second center-to-center distance) are calculated based on the component image I (step S252). Here, the center-to-center distance D1 is the distance between the geometric center G91 of the tip T91 of each of the multiple leads 91 and the geometric center G92 of the tip T92 of each of the multiple leads 92. The center-to-center distance D2 is the distance between the geometric center G93 of the tip T93 of each of the multiple leads 93 and the geometric center G94 of the tip T94 of each of the multiple leads 94. Then, a weighted average of the rotation angles θg1 and θg2, using the center-to-center distance D1 and the center-to-center distance D2 as weighting factors, is calculated as the rotation angle θ of the component 9 (step S253). With this configuration, it is possible to increase the influence of the position of the tips of leads with a wide center-to-center distance, which is advantageous for calculating the rotation angle θ with high accuracy, on the calculation results of the rotation angle θ of the component 9, while reducing the influence of the position of the tips of leads with a narrow center-to-center distance, which is disadvantageous for calculating the rotation angle θ with high accuracy, on the calculation results of the rotation angle θ of the component 9. As a result, it is possible to calculate the rotation angle θ of the component 9 with high accuracy regardless of the configuration of the component 9.
さらには、図10および図15それぞれの回転角度算出を併用してもよい。この場合、ステップS211、S212、S251およびS252を実行してから、これらの結果を用いて加重平均が算出される。具体的には、演算処理部110(回転角度算出部)は、リード配列幅W91、W92、W93、W94および中心間距離D1、D2を重み係数とする回転角度θ91、θ92、θ93、θ94、θg1、θg2の加重平均値を、部品9の回転角度θと算出する。 Furthermore, the rotation angle calculations in Figures 10 and 15 may be used in combination. In this case, steps S211, S212, S251, and S252 are executed, and then the weighted average is calculated using these results. Specifically, the calculation processing unit 110 (rotation angle calculation unit) calculates the weighted average of rotation angles θ91, θ92, θ93, θ94, θg1, and θg2, using lead arrangement widths W91, W92, W93, and W94 and center-to-center distances D1 and D2 as weighting factors, as the rotation angle θ of component 9.
1…部品実装機
5…実装ヘッド
7…部品認識カメラ(部品撮像部)
9…部品(リード部品)
90…パッケージ(部品本体)
91…リード(第1リード)
92…リード(第2リード)
93…リード(第3リード)
94…リード(第4リード)
911…辺(第1辺)
912…辺(第2辺)
913…辺(第3辺)
914…辺(第4辺)
110…演算処理部(画像取得部、配列幅算出部、配列角度算出部、幾何中心間直線角度算出部、データ選択部、回転角度算出部、情報算出部、コンピュータ)
D…中心間距離(中心間距離情報)
G91、G92…幾何中心
P…部品認識プログラム(リード部品の回転角度算出プログラム)
R91…リード配列範囲(第1範囲)
R92…リード配列範囲(第2範囲)
S…サーバーコンピューター(記録媒体)
T91、T92、T93、T94…先端
W91…リード配列幅(第1リード配列幅、配列幅情報)
W92…リード配列幅(第2リード配列幅、配列幅情報)
W93…リード配列幅(第3リード配列幅)
W94…リード配列幅(第4リード配列幅)
θ…回転角度
θ91…回転角度(第1配列角度、リード配列角度)
θ92…回転角度(第2配列角度、リード配列角度)
θ93…回転角度(第3配列角度)
θ94…回転角度(第4配列角度)
θg…回転角度(幾何中心間直線角度)
S203…ステップS203(比較選択処理)
1... Component mounter 5... Mounting head 7... Component recognition camera (component imaging unit)
9...Components (lead components)
90...Package (component body)
91...Lead (1st lead)
92...Lead (2nd lead)
93...Lead (3rd lead)
94...Lead (4th lead)
911...side (first side)
912...side (second side)
913...side (third side)
914...side (4th side)
110...Calculation processing unit (image acquisition unit, array width calculation unit, array angle calculation unit, geometric center line angle calculation unit, data selection unit, rotation angle calculation unit, information calculation unit, computer)
D... Center-to-center distance (center-to-center distance information)
G91, G92... Geometric center P... Component recognition program (lead component rotation angle calculation program)
R91...read sequence range (first range)
R92...read sequence range (second range)
S...Server computer (recording medium)
T91, T92, T93, T94... Tip W91... Lead arrangement width (first lead arrangement width, arrangement width information)
W92: Lead arrangement width (second lead arrangement width, arrangement width information)
W93: Lead arrangement width (third lead arrangement width)
W94: Lead arrangement width (fourth lead arrangement width)
θ...Rotation angle θ91...Rotation angle (first arrangement angle, lead arrangement angle)
θ92: Rotation angle (second arrangement angle, lead arrangement angle)
θ93: rotation angle (third arrangement angle)
θ94: rotation angle (fourth arrangement angle)
θg: rotation angle (angle between geometric centers)
S203: Step S203 (comparison and selection process)
Claims (17)
前記実装ヘッドに保持される前記リード部品を示すリード部品画像を撮像する部品撮像部と、
前記部品撮像部によって撮像された前記リード部品画像を取得する画像取得部と、
前記リード部品の前記部品本体の周縁を規定する複数の辺のうち対象とする第1対象辺および前記第1対象辺に平行な第2対象辺について、前記第1対象辺に沿って配列された複数の第1リードの先端が配列される方向を示す第1配列角度および前記第2対象辺に沿って配列された複数の第2リードの先端が配列される方向を示す第2配列角度のうちの少なくとも一方をリード配列角度として、前記リード部品画像に基づき算出する配列角度算出部と、
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す幾何中心間直線角度を、前記リード部品画像に基づき算出する幾何中心間直線角度算出部と、
前記リード部品の回転角度の算出に使用する算出基準角度を、前記リード配列角度および前記幾何中心間直線角度のうちから選択するデータ選択部と、
前記リード配列角度および前記幾何中心間直線角度のうち前記データ選択部によって選択された前記算出基準角度に基づき、前記リード部品の回転角度を算出する回転角度算出部と
を備え、
前記データ選択部は、前記第1対象辺に沿って前記複数の第1リードの先端が配列される第1範囲の幅を示す第1リード配列幅および前記第2対象辺に沿って前記複数の第2リードの先端が配列される第2範囲の幅を示す第2リード配列幅のうち少なくとも一方を示す配列幅情報と、前記第1範囲の中心と前記第2範囲の中心との間の距離を示す中心間距離を示す中心間距離情報とに基づき、前記算出基準角度を選択する部品実装機。 a mounting head that holds a lead component having a rectangular component body;
a component imaging unit that captures a lead component image showing the lead component held by the mounting head;
an image acquisition unit that acquires the lead component image captured by the component imaging unit;
an arrangement angle calculation unit that calculates, based on the lead component image, at least one of a first arrangement angle indicating a direction in which tips of a plurality of first leads arranged along the first object side and a second object side parallel to the first object side, the first arrangement angle indicating a direction in which tips of a plurality of second leads arranged along the second object side are arranged, for a first object side and a second object side that are targets among a plurality of sides that define a periphery of the component body of the lead component;
a geometric center straight line angle calculation unit that calculates, based on the lead component image, a geometric center straight line angle indicating the direction of a straight line connecting the geometric center of the tip of each of the plurality of first leads and the geometric center of the tip of each of the plurality of second leads;
a data selection unit that selects a calculation reference angle used to calculate a rotation angle of the lead component from the lead arrangement angle and the angle between geometric centers;
a rotation angle calculation unit that calculates a rotation angle of the lead component based on the calculation reference angle selected by the data selection unit from the lead arrangement angle and the geometric center line angle,
The data selection unit selects the calculation reference angle based on array width information indicating at least one of a first lead array width indicating the width of a first range in which the tips of the multiple first leads are arrayed along the first target edge and a second lead array width indicating the width of a second range in which the tips of the multiple second leads are arrayed along the second target edge, and center-to-center distance information indicating a center-to-center distance indicating the distance between the center of the first range and the center of the second range.
前記データ選択部は、前記第1リード配列幅と前記第2リード配列幅との和である合計配列幅と前記中心間距離との比較に基づき前記算出基準角度を選択する比較選択処理を実行する請求項1に記載の部品実装機。 the array width information indicates the first lead array width and the second lead array width,
2. The component mounter according to claim 1, wherein the data selection unit executes a comparison and selection process to select the calculation reference angle based on a comparison between a total arrangement width, which is the sum of the first lead arrangement width and the second lead arrangement width, and the center-to-center distance.
前記データ選択部は、前記記憶部に記憶された前記配列幅情報と前記中心間距離情報とに基づき、前記算出基準角度を選択する請求項1ないし6のいずれか一項に記載の部品実装機。 a storage unit for storing the arrangement width information and the center-to-center distance information;
The mounter according to claim 1 , wherein the data selection unit selects the calculation reference angle based on the arrangement width information and the center-to-center distance information stored in the storage unit.
前記データ選択部は、前記情報算出部により算出された前記配列幅情報と前記中心間距離情報とに基づき、前記算出基準角度を選択する請求項1ないし6のいずれか一項に記載の部品実装機。 further comprising an information calculation unit that calculates the arrangement width information and the center-to-center distance information based on the lead component image,
The mounter according to claim 1 , wherein the data selection unit selects the calculation reference angle based on the arrangement width information and the center-to-center distance information calculated by the information calculation unit.
前記データ選択部は、前記第1辺および前記第2辺を前記第1対象辺および前記第2対象辺として前記算出基準角度を選択した結果である第1算出基準角度と、前記第3辺および前記第4辺を前記第1対象辺および前記第2対象辺として前記算出基準角度を選択した結果である第2算出基準角度とを取得し、
前記回転角度算出部は、前記第1算出基準角度および前記第2算出基準角度に基づき、前記リード部品の回転角度を算出する請求項1ないし6に記載の部品実装機。 the lead component has, as the plurality of sides, a first side, a second side parallel to the first side, a third side, and a fourth side parallel to the third side;
the data selection unit acquires a first calculated reference angle that is a result of selecting the calculated reference angle with the first side and the second side as the first target side and the second target side, and a second calculated reference angle that is a result of selecting the calculated reference angle with the third side and the fourth side as the first target side and the second target side,
7. The component mounter according to claim 1, wherein the rotation angle calculation unit calculates the rotation angle of the lead component based on the first calculation reference angle and the second calculation reference angle.
前記リード部品の前記部品本体の周縁を規定する複数の辺のうち対象とする第1対象辺および前記第1対象辺に平行な第2対象辺について、前記第1対象辺に沿って配列された複数の第1リードの先端が配列される方向を示す第1配列角度および前記第2対象辺に沿って配列された複数の第2リードの先端が配列される方向を示す第2配列角度のうちの少なくとも一方をリード配列角度として、前記リード部品画像に基づき算出する工程と、
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す幾何中心間直線角度を、前記リード部品画像に基づき算出する工程と、
前記リード部品の回転角度の算出に使用する算出基準角度を、前記リード配列角度および前記幾何中心間直線角度のうちから選択する工程と、
前記リード配列角度および前記幾何中心間直線角度のうちから選択された前記算出基準角度に基づき、前記リード部品の回転角度を算出する工程と
を備え、
前記第1対象辺に沿って前記複数の第1リードの先端が配列される第1範囲の幅を示す第1リード配列幅および前記第2対象辺に沿って前記複数の第2リードの先端が配列される第2範囲の幅を示す第2リード配列幅のうち少なくとも一方を示す配列幅情報と、前記第1範囲の中心と前記第2範囲の中心との間の距離を示す中心間距離を示す中心間距離情報とに基づき、前記算出基準角度を選択するリード部品の回転角度算出方法。 acquiring a lead component image showing a lead component having a rectangular component body;
a step of calculating, based on the lead component image, at least one of a first arrangement angle indicating a direction in which tips of a plurality of first leads arranged along the first object side and a second object side parallel to the first object side, the first arrangement angle indicating a direction in which tips of a plurality of second leads arranged along the second object side are arranged, as a lead arrangement angle for a first object side and a second object side parallel to the first object side that are targets among a plurality of sides defining a periphery of the component body of the lead component;
calculating, based on the lead component image, an angle between geometric centers that indicates the direction of a line connecting the geometric center of the tip of each of the plurality of first leads and the geometric center of the tip of each of the plurality of second leads;
selecting a calculation reference angle used to calculate a rotation angle of the lead component from the lead arrangement angle and the angle between geometric centers;
calculating a rotation angle of the lead component based on the calculation reference angle selected from the lead arrangement angle and the angle between the geometric centers;
A method for calculating the rotation angle of a lead component, which selects the calculation reference angle based on array width information indicating at least one of a first lead array width indicating the width of a first range in which the tips of the multiple first leads are arrayed along the first target side and a second lead array width indicating the width of a second range in which the tips of the multiple second leads are arrayed along the second target side, and center-to-center distance information indicating a center-to-center distance indicating the distance between the center of the first range and the center of the second range.
前記実装ヘッドに保持される前記リード部品を示すリード部品画像を撮像する部品撮像部と、
前記部品撮像部によって撮像された前記リード部品画像を取得する画像取得部と、
前記第1リードの先端が配列される方向を示す第1配列角度、前記第2リードの先端が配列される方向を示す第2配列角度、前記第3リードの先端が配列される方向を示す第3配列角度および前記第4リードの先端が配列される方向を示す第4配列角度を、前記リード部品画像に基づき算出する配列角度算出部と、
前記第1辺に沿って前記複数の第1リードの先端が配列される幅を示す第1リード配列幅、前記第2辺に沿って前記複数の第2リードの先端が配列される幅を示す第2リード配列幅、前記第3辺に沿って前記複数の第3リードの先端が配列される幅を示す第3リード配列幅および前記第4辺に沿って前記複数の第4リードの先端が配列される幅を示す第4リード配列幅を、前記リード部品画像に基づき算出する配列幅算出部と、
前記第1リード配列幅、前記第2リード配列幅、前記第3リード配列幅および前記第4リード配列幅を重み係数とする、前記第1配列角度、前記第2配列角度、前記第3配列角度および前記第4配列角度の加重平均値を、前記リード部品の回転角度として算出する回転角度算出部と
を備えた部品実装機。 a mounting head that holds a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and defines the periphery of the component body;
a component imaging unit that captures a lead component image showing the lead component held by the mounting head;
an image acquisition unit that acquires the lead component image captured by the component imaging unit;
an arrangement angle calculation unit that calculates, based on the lead component image, a first arrangement angle indicating a direction in which the tips of the first leads are arranged, a second arrangement angle indicating a direction in which the tips of the second leads are arranged, a third arrangement angle indicating a direction in which the tips of the third leads are arranged, and a fourth arrangement angle indicating a direction in which the tips of the fourth leads are arranged;
an arrangement width calculation unit that calculates, based on the lead component image, a first lead arrangement width indicating a width in which the tips of the plurality of first leads are arranged along the first side, a second lead arrangement width indicating a width in which the tips of the plurality of second leads are arranged along the second side, a third lead arrangement width indicating a width in which the tips of the plurality of third leads are arranged along the third side, and a fourth lead arrangement width indicating a width in which the tips of the plurality of fourth leads are arranged along the fourth side;
a rotation angle calculation unit that calculates a weighted average value of the first arrangement angle, the second arrangement angle, the third arrangement angle, and the fourth arrangement angle as a rotation angle of the lead component, using the first lead arrangement width, the second lead arrangement width, the third lead arrangement width, and the fourth lead arrangement width as weighting coefficients.
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第1幾何中心間直線角度および前記複数の第3リードそれぞれの先端の幾何中心と、前記複数の第4リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第2幾何中心間直線角度を、前記リード部品画像に基づき算出する幾何中心間直線角度算出部と、
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心との間の第1中心間距離および前記複数の第3リードそれぞれの先端の幾何中心と、前記複数の第4リードそれぞれの先端の幾何中心との間の第2中心間距離を、前記リード部品画像に基づき算出する中心間距離算出部と
をさらに備え、
前記回転角度算出部は、前記第1リード配列幅、前記第2リード配列幅、前記第3リード配列幅、前記第4リード配列幅、前記第1中心間距離および前記第2中心間距離を重み係数とする、前記第1配列角度、前記第2配列角度、前記第3配列角度、前記第4配列角度、前記第1幾何中心間直線角度および前記第2幾何中心間直線角度の加重平均値を、前記リード部品の回転角度として算出する請求項12に記載の部品実装機。 an image acquisition unit that acquires the lead component image captured by the component imaging unit;
a geometric center straight-line angle calculation unit that calculates, based on the lead component image, a first geometric center straight-line angle indicating the direction of a straight line connecting the geometric center of the tip of each of the plurality of first leads and the geometric center of the tip of each of the plurality of second leads, and a second geometric center straight-line angle indicating the direction of a straight line connecting the geometric center of the tip of each of the plurality of third leads and the geometric center of the tip of each of the plurality of fourth leads;
a center distance calculation unit that calculates a first center distance between a geometric center of a tip end of each of the plurality of first leads and a geometric center of a tip end of each of the plurality of second leads and a second center distance between a geometric center of a tip end of each of the plurality of third leads and a geometric center of a tip end of each of the plurality of fourth leads based on the lead component image,
13. The component mounter according to claim 12, wherein the rotation angle calculation unit calculates, as the rotation angle of the lead component, a weighted average value of the first arrangement angle, the second arrangement angle, the third arrangement angle, the fourth arrangement angle, the first inter-geometric center straight-line angle, and the second inter-geometric center straight-line angle, where the first lead arrangement width, the second lead arrangement width, the third lead arrangement width, the fourth lead arrangement width, the first center-to-center distance, and the second center-to-center distance are used as weighting coefficients.
前記実装ヘッドに保持される前記リード部品を示すリード部品画像を撮像する部品撮像部と、
前記部品撮像部によって撮像された前記リード部品画像を取得する画像取得部と、
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第1幾何中心間直線角度および前記複数の第3リードそれぞれの先端の幾何中心と、前記複数の第4リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第2幾何中心間直線角度を、前記リード部品画像に基づき算出する幾何中心間直線角度算出部と、
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心との間の第1中心間距離および前記複数の第3リードそれぞれの先端の幾何中心と、前記複数の第4リードそれぞれの先端の幾何中心との間の第2中心間距離を、前記リード部品画像に基づき算出する中心間距離算出部と、
前記第1中心間距離および前記第2中心間距離を重み係数とする、前記第1幾何中心間直線角度および前記第2幾何中心間直線角度の加重平均を、前記リード部品の回転角度として算出する回転角度算出部と
を備えた部品実装機。 a mounting head that holds a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and defines the periphery of the component body;
a component imaging unit that captures a lead component image showing the lead component held by the mounting head;
an image acquisition unit that acquires the lead component image captured by the component imaging unit;
a geometric center straight-line angle calculation unit that calculates, based on the lead component image, a first geometric center straight-line angle indicating the direction of a straight line connecting the geometric center of the tip of each of the plurality of first leads and the geometric center of the tip of each of the plurality of second leads, and a second geometric center straight-line angle indicating the direction of a straight line connecting the geometric center of the tip of each of the plurality of third leads and the geometric center of the tip of each of the plurality of fourth leads;
a center distance calculation unit that calculates a first center distance between a geometric center of a tip end of each of the plurality of first leads and a geometric center of a tip end of each of the plurality of second leads and a second center distance between a geometric center of a tip end of each of the plurality of third leads and a geometric center of a tip end of each of the plurality of fourth leads based on the lead component image;
a rotation angle calculation unit that calculates a weighted average of the first inter-geometric center straight-line angle and the second inter-geometric center straight-line angle as a rotation angle of the lead component, using the first center-to-center distance and the second center-to-center distance as weighting coefficients.
前記第1リードの先端が配列される方向を示す第1配列角度、前記第2リードの先端が配列される方向を示す第2配列角度、前記第3リードの先端が配列される方向を示す第3配列角度および前記第4リードの先端が配列される方向を示す第4配列角度を、前記リード部品画像に基づき算出する工程と、
前記第1辺に沿って前記複数の第1リードの先端が配列される幅を示す第1リード配列幅、前記第2辺に沿って前記複数の第2リードの先端が配列される幅を示す第2リード配列幅、前記第3辺に沿って前記複数の第3リードの先端が配列される幅を示す第3リード配列幅および前記第4辺に沿って前記複数の第4リードの先端が配列される幅を示す第4リード配列幅を、前記リード部品画像に基づき算出する工程と、
前記第1リード配列幅、前記第2リード配列幅、前記第3リード配列幅および前記第4リード配列幅を重み係数とする、前記第1配列角度、前記第2配列角度、前記第3配列角度および前記第4配列角度の加重平均を、前記リード部品の回転角度として算出する工程と
を備えたリード部品の回転角度算出方法。 acquiring a lead component image showing a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and defines the periphery of the component body;
calculating a first arrangement angle indicating a direction in which the tips of the first leads are arranged, a second arrangement angle indicating a direction in which the tips of the second leads are arranged, a third arrangement angle indicating a direction in which the tips of the third leads are arranged, and a fourth arrangement angle indicating a direction in which the tips of the fourth leads are arranged based on the lead component image;
calculating, based on the lead component image, a first lead arrangement width indicating the width along which the tips of the plurality of first leads are arranged along the first side, a second lead arrangement width indicating the width along which the tips of the plurality of second leads are arranged along the second side, a third lead arrangement width indicating the width along which the tips of the plurality of third leads are arranged along the third side, and a fourth lead arrangement width indicating the width along which the tips of the plurality of fourth leads are arranged along the fourth side;
a step of calculating a weighted average of the first arrangement angle, the second arrangement angle, the third arrangement angle, and the fourth arrangement angle as the rotation angle of the lead component, using the first lead arrangement width, the second lead arrangement width, the third lead arrangement width, and the fourth lead arrangement width as weighting coefficients.
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第1幾何中心間直線角度および前記複数の第3リードそれぞれの先端の幾何中心と、前記複数の第4リードそれぞれの先端の幾何中心とを結ぶ直線の方向を示す第2幾何中心間直線角度を、前記リード部品画像に基づき算出する工程と、
前記複数の第1リードそれぞれの先端の幾何中心と、前記複数の第2リードそれぞれの先端の幾何中心との間の第1中心間距離および前記複数の第3リードそれぞれの先端の幾何中心と、前記複数の第4リードそれぞれの先端の幾何中心との間の第2中心間距離を、前記リード部品画像に基づき算出する工程と、
前記第1中心間距離および前記第2中心間距離を重み係数とする、前記第1幾何中心間直線角度および前記第2幾何中心間直線角度の加重平均を、前記リード部品の回転角度として算出する工程と
を備えたリード部品の回転角度算出方法。 acquiring a lead component image showing a lead component having a rectangular component body, a plurality of first leads arranged along a first side that defines the periphery of the component body, a plurality of second leads arranged along a second side that is parallel to the first side and defines the periphery of the component body, a plurality of third leads arranged along a third side that is perpendicular to the first side and defines the periphery of the component body, and a plurality of fourth leads arranged along a fourth side that is parallel to the third side and defines the periphery of the component body;
calculating, based on the lead component image, a first inter-geometric center straight-line angle indicating the direction of a line connecting the geometric center of the tip of each of the plurality of first leads and the geometric center of the tip of each of the plurality of second leads, and a second inter-geometric center straight-line angle indicating the direction of a line connecting the geometric center of the tip of each of the plurality of third leads and the geometric center of the tip of each of the plurality of fourth leads;
calculating a first center-to-center distance between a geometric center of a tip end of each of the plurality of first leads and a geometric center of a tip end of each of the plurality of second leads, and a second center-to-center distance between a geometric center of a tip end of each of the plurality of third leads and a geometric center of a tip end of each of the plurality of fourth leads based on the lead component image;
and calculating, as the rotation angle of the lead component, a weighted average of the first inter-geometric center straight-line angle and the second inter-geometric center straight-line angle, using the first center-to-center distance and the second center-to-center distance as weighting coefficients.
A lead component rotation angle calculation program that causes a computer to execute the lead component rotation angle calculation method according to claim 11 , 15 , or 16 .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022079208A JP7755779B2 (en) | 2022-05-13 | 2022-05-13 | Component mounter, lead component rotation angle calculation method, and lead component rotation angle calculation program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022079208A JP7755779B2 (en) | 2022-05-13 | 2022-05-13 | Component mounter, lead component rotation angle calculation method, and lead component rotation angle calculation program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023167762A JP2023167762A (en) | 2023-11-24 |
| JP7755779B2 true JP7755779B2 (en) | 2025-10-17 |
Family
ID=88838306
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022079208A Active JP7755779B2 (en) | 2022-05-13 | 2022-05-13 | Component mounter, lead component rotation angle calculation method, and lead component rotation angle calculation program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7755779B2 (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101840572A (en) | 2010-04-13 | 2010-09-22 | 河海大学常州校区 | QFP element position error visual inspection method based on region segmentation |
| JP2015133349A (en) | 2014-01-09 | 2015-07-23 | ヤマハ発動機株式会社 | evaluation device, surface mounting machine, evaluation method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0770874B2 (en) * | 1990-02-15 | 1995-07-31 | 松下電工株式会社 | Parts position detection method |
-
2022
- 2022-05-13 JP JP2022079208A patent/JP7755779B2/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101840572A (en) | 2010-04-13 | 2010-09-22 | 河海大学常州校区 | QFP element position error visual inspection method based on region segmentation |
| JP2015133349A (en) | 2014-01-09 | 2015-07-23 | ヤマハ発動機株式会社 | evaluation device, surface mounting machine, evaluation method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023167762A (en) | 2023-11-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3562325B2 (en) | Electronic component mounting method | |
| JP4828298B2 (en) | Component mounting method and component mounting apparatus | |
| US6563530B1 (en) | Camera position-correcting method and system and dummy component for use in camera position correction | |
| KR20090086528A (en) | Part mounting method | |
| JP3273697B2 (en) | Positioning method and device for mounting machine | |
| JP7755779B2 (en) | Component mounter, lead component rotation angle calculation method, and lead component rotation angle calculation program | |
| JP4927776B2 (en) | Component mounting method | |
| JP4657834B2 (en) | Component mounting method and surface mounter | |
| JP3888042B2 (en) | Electronic component mounting apparatus and mounting method | |
| JP2017216311A (en) | Component mounting device and component mounting method | |
| JP2003234598A (en) | Component mounting method and component mounting device | |
| JP5219765B2 (en) | Method for measuring height of electronic component mounting position | |
| JP4562275B2 (en) | Electrical component mounting system and accuracy inspection method thereof | |
| JP7797299B2 (en) | Component mounter, lead component position calculation method, and lead component position calculation program | |
| JP4675703B2 (en) | How to remove parts | |
| JP6324778B2 (en) | Die bonder mounting position correction method, die bonder and bonding method | |
| US8667670B2 (en) | Electronic component mounting apparatus | |
| JP7319264B2 (en) | Control method, electronic component mounting device | |
| JP6985814B2 (en) | Board work machine | |
| JP2025109533A (en) | Height measuring device, height measuring method, height measuring program and recording medium | |
| JPH06314897A (en) | Chip mounter | |
| JP7648791B2 (en) | Component mounter and component mounting position deviation determination method | |
| JP7849215B2 (en) | PCB work equipment | |
| JP4056649B2 (en) | Electronic component mounting apparatus and mounting method | |
| JP2002057495A (en) | Electronic component mounting method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20241011 |
|
| TRDD | Decision of grant or rejection written | ||
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250826 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20250902 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20250912 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250912 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7755779 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |