JP2019100887A - Inspection order setting device, inspection order setting method and inspection order setting program - Google Patents

Inspection order setting device, inspection order setting method and inspection order setting program Download PDF

Info

Publication number
JP2019100887A
JP2019100887A JP2017232865A JP2017232865A JP2019100887A JP 2019100887 A JP2019100887 A JP 2019100887A JP 2017232865 A JP2017232865 A JP 2017232865A JP 2017232865 A JP2017232865 A JP 2017232865A JP 2019100887 A JP2019100887 A JP 2019100887A
Authority
JP
Japan
Prior art keywords
inspection
order
arithmetic processing
period
setting
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.)
Pending
Application number
JP2017232865A
Other languages
Japanese (ja)
Inventor
内田 和宏
Kazuhiro Uchida
和宏 内田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nagoya Electric Works Co Ltd
Original Assignee
Nagoya Electric Works Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nagoya Electric Works Co Ltd filed Critical Nagoya Electric Works Co Ltd
Priority to JP2017232865A priority Critical patent/JP2019100887A/en
Publication of JP2019100887A publication Critical patent/JP2019100887A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

To provide a technique capable of setting an order of an inspection field so as to suppress a processing waiting period of an arithmetic processing part.SOLUTION: An inspection order setting device sets an inspection order of an inspection field which is inspected by a substrate inspection device comprising: one camera capable of imaging each of N or more inspection fields (N is a natural number of 2 or larger) set on the substrate; and H arithmetic processing parts (H is a natural number of 2 or larger and less than N), the inspection order setting device comprises: an order candidate setting part for setting a plurality of candidates of the inspection order; an arithmetic period acquisition part for acquiring an arithmetic period which the arithmetic processing parts require for the arithmetic processing, for each inspection field; a required period acquisition part for acquiring a require period when all inspection fields are inspected, for each of the plurality of candidates, based on the arithmetic period; and an inspection order selection part for selecting the inspection order set to the substrate inspection device from the plurality of candidates on the basis of the required period.SELECTED DRAWING: Figure 5

Description

本発明は、基板上に設定された複数の検査視野の検査順序を設定する技術に関する。   The present invention relates to a technique for setting an inspection order of a plurality of inspection fields set on a substrate.

基板上に設定された検査視野を検査する順序を適正化する技術が提案されている(特許文献1、参照)。特許文献1においては、検査視野の位置関係と移動関係とを視覚的に把握可能な態様で表示した状態で、検査視野順序の変更が受け付けられる。これにより、検査視野の移動経路に無駄がないように検査視野順序を変更できる。   There has been proposed a technique for optimizing the order of inspecting inspection visual fields set on a substrate (see Patent Document 1). In Patent Document 1, a change in inspection visual field order is accepted in a state in which the positional relation and the movement relation of the inspection visual field are displayed in a visually comprehensible manner. Thereby, the inspection visual field order can be changed so that the movement path of the inspection visual field is not wasted.

特開2006−308349号公報JP, 2006-308349, A

しかしながら、検査視野の移動経路に無駄がなくても、演算処理部が過去の検査視野の演算処理を終了していない場合には、当該演算処理が終了するまで次の検査視野の演算処理を行うことができず、処理待ちの時間が発生してしまうというという問題があった。すなわち、検査視野の移動経路に無駄がないような検査視野順序を設定しても、必ずしも検査の所要期間が短くならないという問題があった。   However, even if the movement path of the inspection view is not wasted, if the arithmetic processing unit does not finish the operation processing of the past inspection view, the next inspection view calculation processing is performed until the calculation processing ends. There is a problem that it can not be done and the waiting time for processing occurs. That is, there is a problem that even if the inspection visual field order is set such that the movement path of the inspection visual field is not wasted, the required period of the inspection does not necessarily become short.

本発明は、前記の問題を解決せんとするもので、検査の所要時間が短くなる検査視野の検査順序を設定することができる技術を提供することを目的とする。   An object of the present invention is to solve the above-mentioned problems, and it is an object of the present invention to provide a technique capable of setting an inspection order of inspection visual fields in which a required time for inspection becomes short.

前記の目的を達成するため、本発明の検査順序設定装置は、基板上に設定されたN個(Nは2以上の自然数)の検査視野のそれぞれを撮像可能な1個のカメラと、H個(Hは2以上かつN未満の自然数)の演算処理部とを備えた基板検査装置に検査させる検査視野の検査順序を設定する検査順序設定装置であって、検査順序の複数の候補を設定する順序候補設定部と、演算処理部が演算処理に要する演算期間を検査視野のそれぞれについて取得する演算期間取得部と、演算期間に基づいて、すべての検査視野を検査した場合の所要期間を複数の検査順序の候補のそれぞれについて取得する所要期間取得部と、所要期間に基づいて、複数の検査順序の候補のなかから基板検査装置に設定する検査順序を選択する検査順序選択部と、を備える。   In order to achieve the above object, the inspection order setting device of the present invention comprises one camera capable of imaging each of N (N is a natural number of 2 or more) inspection fields set on a substrate, and H An inspection order setting apparatus for setting an inspection order of an inspection field to be inspected by a substrate inspection apparatus provided with (H is a natural number of 2 or more and a natural number less than N), and setting a plurality of candidates for the inspection order The order candidate setting unit, the calculation period acquisition unit for acquiring the calculation period required for the calculation process for each of the inspection fields, and the required period when all the inspection fields are inspected based on the calculation period A required period acquiring unit for acquiring each of inspection order candidates, and an inspection order selection unit for selecting an inspection order to be set in the substrate inspection apparatus from among a plurality of inspection order candidates based on the required period.

前記の構成において、検査視野の検査順序の複数の候補のうち、すべての検査視野を検査した場合の所要期間が短くなるものを、基板検査装置に設定する検査順序として選択できる。所要期間取得部は、検査視野のそれぞれの演算期間に基づいて所要期間を取得するため、検査視野ごとに異なる演算期間を考慮して全体の所要期間が短くなる検査順序を選択できる。従って、検査視野ごとに検査対象となる部位(半田、部品、リード、印字等)の数や種類が異なり、演算負荷が異なる場合でも、適切な検査順序を選択できる。   In the above configuration, it is possible to select one of a plurality of candidates for the inspection order of the inspection field of view which shortens the required period in the case of inspecting all the inspection fields as the inspection order to be set in the substrate inspection apparatus. Since the required period acquisition unit acquires the required period based on each calculation period of the inspection view, it is possible to select an inspection order in which the entire required period becomes short in consideration of different calculation periods for each inspection view. Therefore, even if the number and type of parts (solder, parts, leads, printing, etc.) to be inspected differ depending on the inspection visual field, and the calculation load is different, an appropriate inspection order can be selected.

ここで、検査視野の検査順序とは、H個の演算処理部を用いて、どの検査視野を何番目に演算処理するかを規定するものである。順序候補設定部は、検査視野の検査順序の複数(少なくとも2個)の候補を設定する。N個の検査視野の検査順序の候補の個数は、Nの階乗(N!)だけ考えられ得る。ただし、順序候補設定部は、組み合わせられ得るすべての検査順序の候補を設定しなくてもよく、組み合わせられ得るすべての検査順序のうちの一部を候補として設定してもよい。   Here, the inspection order of inspection visual field defines which inspection visual field is to be processed in what order using H arithmetic processing units. The order candidate setting unit sets a plurality of (at least two) candidates of the inspection order of the inspection view. The number of inspection order candidates for N inspection views can be considered by N factorial (N!). However, the order candidate setting unit does not have to set all examination order candidates that can be combined, and may set a part of all possible examination orders that can be combined as candidates.

演算期間取得部は、検査視野ごとの演算期間を取得すればよく、実際に演算処理部にて演算処理をした際に要した期間の計測結果に基づいて演算期間を取得してもよいし、検査視野内に存在する検査対象となる部位の個数や種類等に基づいて演算期間を予測してもよい。また、H個の演算処理部の処理能力は均一であってもよいし、均一でなくてもよい。
後者の場合、H個の演算処理部のそれぞれの処理能力に応じて異なる演算期間が取得できるように構成しておけばよい。演算処理部とは、演算処理を行うためのハードウェアを意味し、例えばCPUとRAMが該当する。また、1個のCPUまたはCPUコアが1個の演算処理部に相当してもよいし、複数のCPUまたはCPUコアが1個の演算処理部に相当してもよい。演算処理とは、検査視野を撮像した画像の画像処理や、当該画像処理の結果物を検査対象の部位ごとに良否判定する処理を含んでもよい。さらに、演算処理は、検査視野を撮像した画像をRAM等のワークエリアに読み込む処理を含んでいてもよい。検査順序選択部は、所要期間が短い検査順序を選択すればよく、所要期間が最短となる検査順序を選択してもよいし、所要期間が閾値以下となる検査順序を選択してもよい。
The calculation period acquisition unit may obtain the calculation period for each examination view, and may obtain the calculation period based on the measurement result of the period required when the calculation processing unit actually performs the calculation processing, The calculation period may be predicted based on the number, type, and the like of the portions to be inspected that are present in the inspection view. Also, the processing capabilities of the H arithmetic processing units may or may not be uniform.
In the latter case, different calculation periods may be obtained according to the processing capacity of each of the H calculation processing units. The arithmetic processing unit means hardware for performing arithmetic processing, and corresponds to, for example, a CPU and a RAM. Further, one CPU or CPU core may correspond to one arithmetic processing unit, or a plurality of CPUs or CPU cores may correspond to one arithmetic processing unit. The arithmetic processing may include image processing of an image obtained by capturing an inspection view, and processing for determining pass / fail of the result of the image processing for each part to be inspected. Furthermore, the calculation process may include a process of reading an image obtained by capturing an inspection view into a work area such as a RAM. The inspection order selection unit may select an inspection order with a short required period, and may select an inspection order with the shortest required period, or may select an inspection order with the required period below the threshold.

ここで、所要期間取得部は、検査順序の候補における順番がn番目(nはN以下の自然数)の検査視野についての演算処理の準備が完了する準備完了時刻において、H個の演算処理部の少なくとも1個が演算処理を行っていない場合には、準備完了時刻をn番目の検査視野の演算処理の開始時刻として設定し、準備完了時刻において、H個の演算処理部のすべてが演算処理を行っている場合には、H個の演算処理部のそれぞれが行っている演算処理の終了時刻のうちの最も早い時刻をn番目の検査視野の演算処理の開始時刻として設定する開始時刻設定処理を行ってもよい。そして、所要期間取得部は、この開始時刻設定処理を、候補における検査順序が1番目からN番目の検査視野について順次行うことにより、順番がN番目の検査視野についての演算処理の終了時刻を最終終了時刻として取得し、当該最終終了時刻を終期とする所要期間を取得してもよい。   Here, the required period acquisition unit is prepared for the H operation processing units at the preparation completion time when the preparation of the arithmetic processing for the inspection view of the nth (n is a natural number less than or equal to N) in the inspection order candidate is completed. When at least one does not perform the arithmetic processing, the preparation completion time is set as the start time of the arithmetic processing of the n-th examination field, and all the H arithmetic processing units execute the arithmetic processing at the preparation completion time. If it is performed, the start time setting process of setting the earliest time of the end times of the arithmetic processing performed by each of the H arithmetic processing units as the start time of the arithmetic processing of the n-th examination field You may go. Then, the required period acquisition unit sequentially performs this start time setting process on the first to Nth inspection visual fields in the examination order in the candidate, thereby ending the end time of the arithmetic processing on the Nth inspection visual field in the order. It may be acquired as an end time, and a required period ending with the final end time may be acquired.

順番がn番目の検査視野の演算処理の準備が完了する準備完了時刻において、H個の演算処理部の少なくとも1個が演算処理を行っていない場合には、すぐに演算処理を開始することができ、当該準備完了時刻を演算処理の開始時刻とすることができる。一方、順番がn番目の検査視野の演算処理の準備が完了しているのに、H個の演算処理部のすべてが演算処理を行っている場合には、すぐに演算処理を開始することができず、処理待ち期間が発生することとなる。この処理待ち期間は、H個の演算処理部のそれぞれが行っている演算処理の終了時刻のうちの最も早い時刻まで継続し、当該時刻にて順番がn番目の検査視野の演算処理を開始することができることとなる。   If at least one of the H arithmetic processing units is not performing the arithmetic processing at the preparation completion time when the preparation for the arithmetic processing of the n-th inspection field is completed, the arithmetic processing may be started immediately The preparation completion time can be used as the start time of the arithmetic processing. On the other hand, if all of the H arithmetic processing units are performing the arithmetic processing while the preparation for the arithmetic processing of the n-th inspection visual field is completed, the arithmetic processing may be started immediately It can not be done, and a processing waiting period will occur. This processing waiting period continues until the earliest time among the end times of the arithmetic processing performed by each of the H arithmetic processing units, and the arithmetic processing of the inspection field of the n-th inspection order is started at the relevant time It will be possible.

以上のように、順番がn番目の検査視野の演算処理の開始時刻を設定する開始時刻設定処理を、検査順序が1番目からN番目の検査視野について順次行っていくことにより、最終的にN番目の検査視野の演算処理の開始時刻を設定できる。そして、n番目の検査視野の演算処理の開始時刻にn番目の検査視野の演算期間を加算することにより、n番目の検査視野の演算処理の終了時刻を得ることができる。N番目の検査視野についての演算処理の終了時刻は、すべての検査視野についての検査の最終終了時刻となるため、当該最終終了時刻が早い検査順序の候補を選択することにより、検査の所要時間が短くなる検査順序を設定できる。   As described above, by sequentially performing the start time setting process of setting the start time of the calculation process of the inspection field of the n-th order sequentially for the first to N-th inspection fields of the inspection order, N The start time of the calculation process of the second inspection view can be set. Then, by adding the calculation period of the n-th examination view to the start time of the calculation process of the n-th examination view, the end time of the calculation process of the n-th examination view can be obtained. Since the end time of the calculation process for the Nth inspection view is the final end time of the inspection for all the inspection views, the examination required time is selected by selecting the candidate for the inspection order whose final end time is earlier. You can set the inspection order to be short.

準備完了時刻は、カメラが検査視野の撮像を完了する時刻であってもよい。カメラが検査視野の撮像を完了すれば、当該撮像した撮像画像を演算処理部が演算処理することができる。なお、1個のカメラでN個の検査視野を順次撮像するため、準備完了時刻は検査視野ごとに異なることとなる。従って、所要期間取得部は、検査視野を撮像する撮像順序に基づいて準備完了時刻を取得し、さらに当該準備完了時刻に基づいて所要期間を取得することとなる。ここで、早期に演算処理する検査視野を早期に撮像しておくことができるように、撮像順序と検査順序とが一致することが望ましい。ただし、必ずしも撮像順序と検査順序とが一致しなくてもよい。   The preparation completion time may be a time at which the camera completes the imaging of the examination view. When the camera completes the imaging of the examination view, the arithmetic processing unit can perform arithmetic processing on the imaged captured image. In addition, in order to image N inspection visual fields one by one in order, the preparation completion time will differ for every inspection visual field. Therefore, the required period acquisition unit acquires the preparation completion time based on the imaging order for imaging the examination view, and further acquires the required period based on the preparation completion time. Here, it is desirable that the imaging order and the inspection order match so that the inspection view field to be arithmetically processed early can be imaged early. However, the imaging order and the inspection order do not necessarily have to match.

さらに、順序候補設定部は、演算期間が最短の検査視野を、複数の検査順序の候補のそれぞれにおける順番がN番目の検査視野として設定してもよい。N番目の検査視野は最後に演算処理が開始する検査視野であり、N番目の検査視野の演算処理の終了待ちにより、全体の所要期間が長くなる可能性がある。これに対して、演算期間が最短の検査視野をN番目の検査視野と設定することにより、N番目の検査視野の演算処理の終了待ちの期間を抑制し、全体の所要期間を短くすることができる。さらに、演算期間が最短の検査視野をN番目の検査視野に固定することにより、組み合わせられ得る検査視野の検査順序の候補の個数を抑制することができる。   Furthermore, the order candidate setting unit may set the inspection view with the shortest calculation period as the Nth inspection view in each of the plurality of inspection order candidates. The N-th examination view is the examination view at which the calculation process finally starts, and waiting for the completion of the calculation process of the N-th examination view may increase the entire required period. On the other hand, by setting the inspection field of view with the shortest calculation period as the N-th inspection field, the period waiting for the end of the calculation processing of the N-th inspection field can be suppressed and the entire required period can be shortened. it can. Furthermore, by fixing the inspection view with the shortest calculation period to the N-th inspection view, it is possible to suppress the number of inspection order candidates of the inspection view that can be combined.

また、順序候補設定部は、基板上に設けられた位置合わせのための基準マークからの距離が最短の検査視野を、撮像順序が1番目の検査視野として設定し、複数の検査順序の候補のそれぞれにおける検査順序が1番目の検査視野として設定してもよい。これにより、検査順序が1番目の検査視野へのカメラの移動と撮像とを速やかに行うことができ、H個の演算処理部のいずれかが演算処理を開始するタイミングを早めることができる。従って、全体の所要期間を短くすることができる。さらに、基準マークからの距離が最短の検査視野を1番目の検査視野に固定することにより、組み合わせられ得る検査視野の検査順序の候補の個数を抑制することができる。   In addition, the order candidate setting unit sets an inspection view having the shortest distance from the reference mark for alignment provided on the substrate as an inspection view with the first imaging order, and a plurality of inspection order candidates are selected. The inspection order in each may be set as the first inspection view. Thereby, the movement of the camera to the first inspection visual field and the imaging can be performed promptly in the inspection order, and the timing at which one of the H arithmetic processing units starts the arithmetic processing can be advanced. Therefore, the entire required period can be shortened. Further, by fixing the inspection view with the shortest distance from the reference mark to the first inspection view, it is possible to suppress the number of inspection order candidates of the inspection view that can be combined.

検査順序設定装置のブロック図である。It is a block diagram of an inspection order setting device. 基板の平面図である。It is a top view of a substrate. 図3Aは演算期間情報を示す表,図3Bは移動期間情報を示す表、図3Cは検査順序の候補を示す表である。FIG. 3A is a table showing operation period information, FIG. 3B is a table showing movement period information, and FIG. 3C is a table showing candidates for inspection order. 検査のタイミングチャートである。It is a timing chart of an inspection. 検査のタイミングチャートである。It is a timing chart of an inspection. 検査順序設定処理のフローチャートである。It is a flowchart of inspection order setting processing. 所要期間取得処理のフローチャートである。It is a flowchart of a required period acquisition process.

ここでは、下記の順序に従って本発明の実施の形態について説明する。
(1)検査順序設定装置の構成:
(2)検査順序設定処理:
(3)所要期間取得処理:
(4)他の実施形態:
Here, embodiments of the present invention will be described in the following order.
(1) Configuration of inspection order setting device:
(2) Inspection order setting process:
(3) Required period acquisition process:
(4) Other embodiments:

(1)検査順序設定装置の構成:
図1は、本実施形態にかかる基板検査装置10の概略構成を示すブロック図である。基板検査装置10は、本発明の一実施形態にかかる検査順序設定装置を含むものである。図1において、基板検査装置10は、制御部20と記録媒体30と撮像部40とを備えている。
(1) Configuration of inspection order setting device:
FIG. 1 is a block diagram showing a schematic configuration of a substrate inspection apparatus 10 according to the present embodiment. The substrate inspection apparatus 10 includes an inspection order setting device according to an embodiment of the present invention. In FIG. 1, the substrate inspection apparatus 10 includes a control unit 20, a recording medium 30, and an imaging unit 40.

撮像部40は、照明41とイメージセンサ42と移動部43とを備えている。移動部43は、基板とイメージセンサ42とを相対移動させるための装置であり、イメージセンサ42を移動させるアクチュエータであってもよいし、基板をイメージセンサ42に対して移動させるX−Yステージであってもよい。本明細書において、イメージセンサ42が検査視野に移動すると表記した場合、検査視野を撮像できる相対位置にイメージセンサ42と基板とが移動することを意味することとする。   The imaging unit 40 includes a light 41, an image sensor 42, and a moving unit 43. The moving unit 43 is a device for relatively moving the substrate and the image sensor 42. The moving unit 43 may be an actuator for moving the image sensor 42, or an XY stage for moving the substrate with respect to the image sensor 42. It may be. In the present specification, when the image sensor 42 is described as moving in the inspection view, it means that the image sensor 42 and the substrate move to a relative position where the inspection view can be imaged.

照明41は、基板に光を照射するための光源と光学系を含み、照明光の種類は特に限定されない。イメージセンサ42は、基板上の検査視野を撮像する撮像素子である。イメージセンサ42は、撮像した撮像画像を1枚分だけ記録可能であり、当該撮像画像を他のメモリに転送するまでは、次の撮像画像を撮像することができない。イメージセンサ42は、本発明のカメラに相当する。   The illumination 41 includes a light source for irradiating the substrate with light and an optical system, and the type of illumination light is not particularly limited. The image sensor 42 is an imaging element that captures an inspection view on the substrate. The image sensor 42 can record only one captured image captured, and can not capture the next captured image until the captured image is transferred to another memory. The image sensor 42 corresponds to the camera of the present invention.

図2は、基板の平面図である。基板WBには予め5個(N=5)の検査視野V1〜V5が設定されており、検査視野V1〜V5に対応する位置に基板WBとイメージセンサ42とが相対移動することにより、検査視野V1〜V5のそれぞれを撮像することが可能となっている。検査視野V1〜V5には、複数の検査対象となる部位が不均一に存在している。検査対象となる部位とは、半田、部品、リード、印字等であり、これらのそれぞれについて基板検査装置10は良否判定を行う。検査対象となる部位の種類は特に限定されない。検査視野V1〜V5の大きさは均一であってもよいし、互いに異なってもよい。基板WBは外形が矩形状となっており、3個の隅に予め決められた形状の基準マークE1〜E3が形成されている。基準マークE1〜E3は、予め決められた形状のパッドやレジストや穴等であり、予め決められた基準位置に形成されたものである。基準マークE1〜E3の個数は特に限定されるものではない。   FIG. 2 is a plan view of the substrate. Five (N = 5) inspection fields of view V1 to V5 are set in advance on the substrate WB, and the inspection fields of view are obtained by relative movement of the substrate WB and the image sensor 42 to the positions corresponding to the inspection fields of view V1 to V5. It is possible to image each of V1 to V5. In the inspection visual fields V1 to V5, a plurality of parts to be inspected are present unevenly. The parts to be inspected are solder, parts, leads, printing and the like, and the board inspection apparatus 10 determines the quality of each of these. The type of site to be examined is not particularly limited. The sizes of the inspection views V1 to V5 may be uniform or may be different from each other. The substrate WB has a rectangular outer shape, and fiducial marks E1 to E3 of a predetermined shape are formed at three corners. The reference marks E1 to E3 are pads, resists, holes or the like of a predetermined shape, and are formed at predetermined reference positions. The number of reference marks E1 to E3 is not particularly limited.

図1に示す制御部20は、図示しないCPUやROMやRAMで構成されるコンピュータであり、記録媒体30に記録された各種情報を用いて検査視野V1〜V5の検査に必要な処理を実行する。制御部20は、2個のVRAM1,VRAM2を含んでいる。VRAM1,VRAM2は、物理的に独立したメモリであってもよいし、単一のメモリを論理的に区分したものであってもよい。制御部20は、2個(H=2)の演算処理部C1と演算処理部C2とを有しており、演算処理部C1がVRAM1をワークエリアとして使用し、演算処理部C2がVRAM2をワークエリアとして使用する。演算処理部C1と演算処理部C2は、並列処理が可能である。制御部20は、CPUとしてマルチコアプロセッサを備えており、当該演算処理部C1と演算処理部C2のそれぞれに互いに同数のコアが割り当てられている。すなわち、演算処理部C1の処理能力と演算処理部C2の処理能力とは同じである。   The control unit 20 illustrated in FIG. 1 is a computer configured by a CPU, a ROM, and a RAM (not shown), and executes various processings necessary for the inspection of the inspection views V1 to V5 using various information recorded in the recording medium 30. . The control unit 20 includes two VRAMs 1 and 2. VRAM1 and VRAM2 may be physically independent memories, or may be logically divided single memories. The control unit 20 has two (H = 2) arithmetic processing units C1 and C2, and the arithmetic processing unit C1 uses the VRAM1 as a work area, and the arithmetic processing unit C2 does not use the VRAM2 as a work area. Use as an area. The arithmetic processing unit C1 and the arithmetic processing unit C2 can perform parallel processing. The control unit 20 includes a multi-core processor as a CPU, and the same number of cores are assigned to each of the arithmetic processing unit C1 and the arithmetic processing unit C2. That is, the processing capability of the arithmetic processing unit C1 and the processing capability of the arithmetic processing unit C2 are the same.

記録媒体30は、検査視野情報30aと演算期間情報30bと移動期間情報30cとを記録している。検査視野情報30aは、検査視野V1〜V5の個数と位置と形状とを規定した情報である。制御部20は、基準マークE1〜E3を順次イメージセンサ42で撮像することにより、基準マークE1〜E3の位置を取得し、当該基準マークE1〜E3の位置に基づいて検査視野V1〜V5の位置と形状とを補正する。補正後の検査視野V1〜V5の位置や形状を用いて検査視野V1〜V5の撮像が行われる。なお、基準マークE1〜E3のうち、右下隅の基準マークE3が最後に撮像されることとする。また、検査視野情報30aは、検査視野V1〜V5に含まれる複数の検査対象の部位のそれぞれについて位置や種類を規定している。   The recording medium 30 records inspection view field information 30a, calculation period information 30b, and movement period information 30c. The inspection view information 30a is information that defines the number, the position, and the shape of the inspection views V1 to V5. The control unit 20 acquires the positions of the reference marks E1 to E3 by sequentially imaging the reference marks E1 to E3 with the image sensor 42, and the positions of the inspection fields V1 to V5 based on the positions of the reference marks E1 to E3. And correct the shape. Imaging of the inspection fields V1 to V5 is performed using the positions and shapes of the inspection fields V1 to V5 after correction. Among the reference marks E1 to E3, the reference mark E3 in the lower right corner is to be imaged last. Further, the inspection view information 30a defines the position and the type of each of the plurality of inspection target parts included in the inspection views V1 to V5.

演算期間情報30bは、検査視野V1〜V5の検査のための演算処理に要する期間である演算期間を検査視野V1〜V5のそれぞれについて規定した情報である。図3Aは、演算期間情報を示す表である。同図に示すように、検査視野V1〜V5のそれぞれについて演算期間D1〜D5が規定されている。   The calculation period information 30 b is information that defines, for each of the inspection views V 1 to V 5, the calculation period which is a period required for calculation processing for the inspection of the inspection views V 1 to V 5. FIG. 3A is a table showing operation period information. As shown in the figure, calculation periods D1 to D5 are defined for each of the inspection views V1 to V5.

演算期間D1〜D5とは、検査視野V1〜V5の撮像画像をイメージセンサ42からVRAM1またはVRAM2に転送する転送期間と、VRAM1またはVRAM2に転送された撮像画像を用いて検査対象となる部位の検査を行うための各種演算処理の期間とが含まれる。本実施形態において、撮像画像の転送期間は短く、当該転送期間の長さを0と見なすこととする。   In the calculation periods D1 to D5, a transfer period for transferring a captured image of the inspection view field V1 to V5 from the image sensor 42 to the VRAM1 or VRAM2 and an inspection of a portion to be inspected using the captured image transferred to the VRAM1 or VRAM2 And the period of various arithmetic processing for performing. In this embodiment, the transfer period of the captured image is short, and the length of the transfer period is regarded as zero.

各種演算処理には、検査対象となる部位の画像の抽出処理、検査に適した画像とするための画像調整処理、画像から検査指標値を導出する数値化処理、検査指標値に基づいて良否判定を行う処理等を含む。むろん、これらの処理の内容は特に限定されない。検査対象となる部位の数や種類によって演算期間D1〜D5の長さは互いに異なっており、検査視野V1の演算期間D1が最も短いこととする。本実施形態において、演算期間D1〜D5は、実際に検査視野V1〜V5についての演算処理を行った場合に要した期間を計測することにより得られている。   Various calculation processing includes extraction processing of the image of the part to be inspected, image adjustment processing to make the image suitable for inspection, digitization processing for deriving the inspection index value from the image, and quality determination based on the inspection index value Processing etc. are included. Of course, the contents of these processes are not particularly limited. The lengths of the calculation periods D1 to D5 differ from one another depending on the number and types of parts to be inspected, and the calculation period D1 of the inspection field V1 is the shortest. In the present embodiment, the calculation periods D1 to D5 are obtained by measuring the period required when the calculation processing for the inspection visual fields V1 to V5 is actually performed.

移動期間情報30cは、検査視野V1〜V5間の移動に要する期間である移動期間を検査視野V1〜V5の組のそれぞれについて規定した情報である。検査視野V1〜V5の組とは、移動元の検査視野V1〜V5と移動先の検査視野V1〜V5との組み合わせである。例えば、検査視野V2から検査視野V3へと移動する場合の移動期間R23が移動期間情報30cに規定されている。移動期間R23は、反対方向の移動期間R32と同一であると見なされてもよいし、反対方向の移動期間R32と異なってもよい。また、最後に撮像される基準マークE3から当該基準マークE3に最も近い検査視野V5へと移動する際の移動期間R05も移動期間情報30cに規定されている。   The movement period information 30c is information which defines the movement period which is a period required for movement between the inspection visual fields V1 to V5 for each of the groups of the inspection visual fields V1 to V5. The set of inspection views V1 to V5 is a combination of the inspection views V1 to V5 of the movement source and the inspection views V1 to V5 of the movement destination. For example, the moving period R23 when moving from the inspection view V2 to the inspection view V3 is defined in the movement period information 30c. The movement period R23 may be considered to be identical to the movement period R32 in the opposite direction, or may be different from the movement period R32 in the opposite direction. Further, a moving period R05 when moving from the reference mark E3 captured last to the inspection visual field V5 closest to the reference mark E3 is also defined in the moving period information 30c.

制御部20は、検査順序設定プログラム21と基板検査プログラム22とを実行する。まず、基板検査プログラム22の機能により制御部20は、基準マークE1〜E3を順次イメージセンサ42で撮像することにより、基準マークE1〜E3の位置を取得し、当該基準マークE1〜E3の位置に基づいて検査視野V1〜V5の位置と形状とを補正しておく。そして、基板検査プログラム22の機能により制御部20は、予め設定された検査順序で検査視野V1〜V5が撮像できるように移動部43を制御するとともに、イメージセンサ42にて撮像画像の撮像を行わせる。   The control unit 20 executes an inspection order setting program 21 and a substrate inspection program 22. First, the control unit 20 acquires the positions of the reference marks E1 to E3 by sequentially imaging the reference marks E1 to E3 with the function of the substrate inspection program 22 and acquires the positions of the reference marks E1 to E3. The positions and shapes of the inspection fields V1 to V5 are corrected on the basis of this. Then, the control unit 20 controls the moving unit 43 so that the inspection view fields V1 to V5 can be imaged in the inspection order set in advance by the function of the substrate inspection program 22, and the imaging sensor 42 captures an imaged image. Let

基板検査プログラム22の機能により制御部20は、検査視野V1〜V5のそれぞれの撮像が完了すると、撮像画像をVRAM1またはVRAM2に転送する。撮像画像をVRAM1またはVRAM2に転送すると、イメージセンサ42は撮像順序における次の順番の検査視野V1〜V5の撮像が可能となる。撮像画像がVRAM1またはVRAM2に転送されると、基板検査プログラム22の機能により制御部20は、VRAM1またはVRAM2をワークエリアとして演算処理部C1または演算処理部C2に検査のための演算処理を開始させる。制御部20は、演算処理が完了すると、VRAM1またはVRAM2をクリアする。   When the imaging of each of the inspection views V1 to V5 is completed by the function of the substrate inspection program 22, the control unit 20 transfers the captured image to the VRAM 1 or VRAM 2. When the captured image is transferred to the VRAM 1 or VRAM 2, the image sensor 42 can capture the next inspection field of view V 1 to V 5 in the imaging order. When the captured image is transferred to the VRAM1 or VRAM2, the control unit 20 causes the arithmetic processing unit C1 or the arithmetic processing unit C2 to start arithmetic processing for inspection using VRAM1 or VRAM2 as a work area according to the function of the substrate inspection program 22. . When the arithmetic processing is completed, the control unit 20 clears the VRAM1 or VRAM2.

図4は、検査のタイミングチャートの一例である。本実施形態において、撮像順序と検査順序とが一致することとする。図4において、検査順序における順番がn−3〜n+1番目の検査視野V1〜V5(以下、単に検査視野Vと表記する場合もある。)についてのタイミングが示されている。ここで、順番がn番目の検査視野Vに注目して検査のタイミングを説明する。n番目の検査視野Vの撮像が完了する時刻を撮像完了時刻S(n)と表記し、n番目の検査視野Vの撮像が開始する時刻を撮像開始時刻Q(n)と表記し、n番目の検査視野Vへの移動が完了する時刻を移動完了時刻U(n)と表記する。さらに、n番目の検査視野Vの演算処理に要する期間を演算期間D(n)と表記し、当該演算期間D(n)が開始する時刻を演算開始時刻X(n)と表記し、当該演算期間D(n)が終了する時刻を演算終了時刻Z(n)と表記する。   FIG. 4 is an example of a test timing chart. In the present embodiment, it is assumed that the imaging order and the inspection order match. FIG. 4 shows the timing for the n-3 to n + 1-th inspection visual field V1 to V5 (hereinafter, may be simply referred to as the inspection visual field V) in the inspection order. Here, the inspection timing will be described focusing on the inspection view field V in the nth order. The time when imaging of the n-th examination view V is completed is referred to as imaging completion time S (n), the time when imaging of the n-th examination view V is started is referred to as imaging start time Q (n), and n-th The time when the movement to the inspection view field V is completed is referred to as a movement completion time U (n). Furthermore, the period required for the calculation process of the n-th inspection view V is described as calculation period D (n), the time when the calculation period D (n) starts is described as calculation start time X (n), The time when the period D (n) ends is referred to as an operation end time Z (n).

図4に示すように、n番目の検査視野Vの撮像が撮像完了時刻S(n)にて完了している。撮像完了時刻S(n)は、本発明の準備完了時刻である。なお、図4の例では、撮像完了時刻S(n)において、演算処理部C1,C2のうち演算処理部C1における演算処理が完了しており、VRAM1がクリアされている。   As shown in FIG. 4, imaging of the n-th inspection visual field V is completed at imaging completion time S (n). The imaging completion time S (n) is the preparation completion time of the present invention. In the example of FIG. 4, at the imaging completion time S (n), the arithmetic processing in the arithmetic processing unit C1 of the arithmetic processing units C1 and C2 is completed, and the VRAM 1 is cleared.

従って、基板検査プログラム22の機能により制御部20は、VRAM1にn番目の検査視野Vの撮像画像を転送して、演算処理部C1にn番目の検査視野Vについての演算処理を行わせる。従って、撮像完了時刻S(n)と演算開始時刻X(n)とはほぼ同時となる。n番目の検査視野Vの撮像画像をVRAM1に転送すれば、イメージセンサ42は次の(n+1)番目の検査視野Vの撮像を行うことが可能となる。従って、制御部20は、(n+1)番目の検査視野Vへの移動完了時刻U(n+1)と、n番目の検査視野Vの撮像画像を転送した演算開始時刻X(n)のうち遅い方の時刻にて、イメージセンサ42に(n+1)番目の検査視野Vの撮像を開始させる。   Therefore, the control unit 20 transfers the captured image of the n-th inspection view V to the VRAM 1 by the function of the substrate inspection program 22, and causes the arithmetic processing unit C1 to perform arithmetic processing on the n-th inspection view V. Therefore, the imaging completion time S (n) and the operation start time X (n) are almost simultaneous. If the captured image of the n-th examination view V is transferred to the VRAM 1, the image sensor 42 can capture the next (n + 1) -th examination view V. Therefore, the control unit 20 is the later one of the movement completion time U (n + 1) to the (n + 1) th inspection visual field V and the operation start time X (n) at which the captured image of the nth inspection visual field V is transferred. At time, the image sensor 42 starts imaging of the (n + 1) th inspection visual field V.

ここで、図4に示すように、演算処理に要する期間である演算期間D(n−3),D(n−2),D(n−1),D(n)は、検査視野Vごとに異なる。なお、本実施形態において、検査視野Vの撮像に要する撮像期間は、均一であることとする。ただし、照明条件や露光条件等の相違によって撮像期間が検査視野Vごとに異なってもよい。   Here, as shown in FIG. 4, calculation periods D (n−3), D (n−2), D (n−1), D (n) which are periods required for the calculation processing It is different. In the present embodiment, it is assumed that the imaging period required for imaging the inspection view field V is uniform. However, the imaging period may be different for each inspection visual field V depending on the difference in the illumination condition, the exposure condition, and the like.

図5は、検査のタイミングチャートの別の例である。ここでも、順番がn番目の検査視野Vに注目して検査のタイミングを説明する。図5の例では、撮像完了時刻S(n)において、演算処理部C1,C2の双方の演算処理が完了しておらず、VRAM1,VRAM2がともにクリアされていない。従って、基板検査プログラム22の機能により制御部20は、演算処理部C1,C2が行っている演算処理の演算終了時刻Z(n−1),Z(n−2)のうち早い方の演算終了時刻Z(n−2)が到来するまで待機し、演算終了時刻Z(n−2)と同時に、VRAM2にn番目の検査視野Vの撮像画像を転送する。   FIG. 5 is another example of a test timing chart. Here also, the timing of the inspection will be described focusing on the inspection visual field V in the nth order. In the example of FIG. 5, at the imaging completion time S (n), the arithmetic processing of both the arithmetic processing units C1 and C2 is not completed, and both VRAM1 and VRAM2 are not cleared. Therefore, with the function of the substrate inspection program 22, the control unit 20 terminates the operation of one of the operation end times Z (n-1) and Z (n-2) of the operation processing performed by the operation processing units C1 and C2. It waits until time Z (n-2) arrives, and simultaneously transfers the captured image of the n-th inspection view V to the VRAM 2 at the same time as the operation end time Z (n-2).

その結果、(n−2)番目の検査視野Vの演算処理の演算終了時刻Z(n−2)とほぼ同時に、演算処理部C2におけるn番目の検査視野Vについての演算処理の演算開始時刻X(n)が到来することとなる。n番目の検査視野Vの撮像画像を転送するまでは、イメージセンサ42は撮像順序における次の順番の(n+1)番目の検査視野Vの撮像を行うことができず、(n+1)番目の検査視野Vまで移動した状態で待機することとなる。図5の例において、制御部20は、n番目の検査視野Vの撮像画像をVRAM2に転送すると同時に(転送期間を0と見なす)、イメージセンサ42に(n+1)番目の検査視野Vの撮像を開始している。すなわち、n番目の検査視野Vの演算開始時刻X(n)とn+1番目の検査視野Vの撮像開始時刻Q(n+1)とが同時となっている。この場合、n番目の検査視野Vの撮像が完了しているのにn番目の検査視野Vの演算処理が開始できない演算待ち期間W(n)と、(n+1)番目の検査視野Vへの移動が完了しているのにn+1番目の検査視野Vの撮像が開始できない撮像待ち期間P(n+1)とが発生する。   As a result, the calculation start time X of the calculation process for the n-th inspection view V in the arithmetic processing unit C2 substantially simultaneously with the calculation end time Z (n-2) of the calculation process of the (n-2) th inspection view V (N) will arrive. The image sensor 42 can not capture the next (n + 1) th inspection field V in the imaging order until the captured image of the nth inspection field V is transferred, and the (n + 1) th inspection field It will stand by in the state which moved to V. In the example of FIG. 5, the control unit 20 transfers the captured image of the n-th inspection view field V to the VRAM 2 at the same time (considering the transfer period as 0) and simultaneously capturing the (n + 1) th inspection view field V on the image sensor 42. It has started. That is, the calculation start time X (n) of the n-th examination view V and the imaging start time Q (n + 1) of the (n + 1) -th examination view V coincide with each other. In this case, while the imaging of the n-th examination view V is completed, calculation processing of the n-th examination view V can not start calculation processing period W (n) and movement to the (n + 1) -th examination view V An imaging waiting period P (n + 1) occurs in which imaging of the (n + 1) -th inspection view field V can not start even though the above is completed.

以上の処理を予め設定された検査順序における順番が1〜N番目(n=1〜N)の検査視野Vについて順次行っていくことにより、すべての検査視野Vについて検査の結果を得ることができる。制御部20は、すべての検査視野Vについての検査の結果を記録媒体30に記録したり、図示しない出力装置に出力したりする。   By sequentially performing the above-described process on the first to Nth (n = 1 to N) inspection visual fields V in the inspection order set in advance, the inspection results can be obtained for all the inspection visual fields V. . The control unit 20 records the inspection results for all inspection visual fields V on the recording medium 30, and outputs the recording results to an output device (not shown).

(2)検査順序設定処理:
次に、検査順序を設定するための構成を図6の検査順序設定処理のフローチャートとともに説明する。検査順序設定プログラム21は、順序候補設定モジュール21aと演算期間取得モジュール21bと所要期間取得モジュール21cと検査順序選択モジュール21dとを含む。順序候補設定モジュール21aと演算期間取得モジュール21bと所要期間取得モジュール21cと検査順序選択モジュール21dとを実行するコンピュータとしての制御部20は、本発明の順序候補設定部と演算期間取得部と所要期間取得部と検査順序選択部とを構成する。
(2) Inspection order setting process:
Next, a configuration for setting the inspection order will be described along with the flowchart of the inspection order setting process of FIG. The inspection order setting program 21 includes an order candidate setting module 21a, an operation period acquisition module 21b, a required period acquisition module 21c, and an inspection order selection module 21d. The control unit 20 as a computer that executes the order candidate setting module 21a, the calculation period acquisition module 21b, the required period acquisition module 21c, and the inspection order selection module 21d corresponds to the order candidate setting unit, the calculation period acquisition unit, and the required period of the present invention. The acquisition unit and the inspection order selection unit are configured.

まず、演算期間取得モジュール21bの機能により制御部20は、検査視野情報30aを取得する(ステップS100)。すなわち、制御部20は、基板WBに設定されている検査視野Vの個数(=N)と、各検査視野Vの位置と形状とを取得する。さらに、演算期間取得モジュール21bの機能により制御部20は、演算処理部C1,C2が演算処理に要する演算期間D1〜D5を検査視野V1〜V5のそれぞれについて取得する。すなわち、演算期間取得モジュール21bの機能により制御部20は、移動期間情報30cを参照することにより、実際の演算処理に要した演算期間D1〜D5を取得する。   First, the control unit 20 acquires inspection visual field information 30a by the function of the calculation period acquisition module 21b (step S100). That is, the control unit 20 acquires the number (= N) of inspection visual fields V set on the substrate WB, and the position and shape of each inspection visual field V. Furthermore, the control unit 20 acquires, for each of the inspection views V1 to V5, the calculation periods D1 to D5 required for the calculation processing by the calculation processing units C1 and C2 by the function of the calculation period acquisition module 21b. That is, the control unit 20 acquires the calculation periods D1 to D5 required for the actual calculation process by referring to the movement period information 30c by the function of the calculation period acquisition module 21b.

次に、順序候補設定モジュール21aの機能により制御部20は、検査視野Vの検査順序の複数の候補を設定する(ステップS110)。制御部20は、基準マークE1〜E3のうちイメージセンサ42が最後に撮像する基準マークE3からの距離が最短の検査視野V5を複数の検査順序の候補のそれぞれにおける検査順序が1番目の検査視野Vとして設定する。   Next, the control unit 20 sets a plurality of candidates for the inspection order of the inspection view field V by the function of the order candidate setting module 21a (step S110). The control unit 20 controls the inspection visual field V5 having the shortest distance from the reference mark E3 captured by the image sensor 42 last among the reference marks E1 to E3 to the inspection visual field having the first inspection order in each of a plurality of inspection order candidates. Set as V.

さらに、順序候補設定モジュール21aの機能により制御部20は、演算期間が最短の検査視野Vを、複数の検査順序の候補のそれぞれにおける検査順序がN番目(N=5)の検査視野Vとして設定する。上述したように、検査視野V1の演算期間D1が他の検査視野V2〜V5よりも短いため、制御部20は、演算期間D1が最短の検査視野V1を複数の検査順序の候補のそれぞれにおける順番がN番目の検査視野Vとして設定する。   Further, by the function of the order candidate setting module 21a, the control unit 20 sets the inspection view field V having the shortest calculation period as the N-th (N = 5) inspection view field V in each of the plurality of inspection order candidates. Do. As described above, since the calculation period D1 of the inspection view V1 is shorter than the other inspection views V2 to V5, the control unit 20 determines the inspection view V1 having the shortest calculation period D1 in each of the plurality of inspection order candidates. Set as the N-th inspection view V.

図3Cは、検査順序の候補K1〜K6を示す表である。同図に示すように、基準マークE3からの距離が最短の検査視野V5の順番が検査順序の候補K1〜K6のいずれにおいても1番目となっている。また、演算期間D1が最短の検査視野V1の順番が検査順序の候補K1〜K6のいずれにおいても5番目となっている。本実施形態においては、撮像順序と検査順序が一致するため、検査順序の候補K1〜K6を設定することにより、撮像順序の候補も設定されたこととなる。   FIG. 3C is a table showing candidates K1 to K6 of the inspection order. As shown in the figure, the order of the inspection view field V5 having the shortest distance from the reference mark E3 is the first in any of the inspection order candidates K1 to K6. Further, the order of the inspection view field V1 having the shortest calculation period D1 is the fifth in any of the inspection order candidates K1 to K6. In the present embodiment, since the imaging order and the inspection order match, by setting the inspection order candidates K1 to K6, the imaging order candidate is also set.

順序候補設定モジュール21aの機能により制御部20は、1番目とN番目以外の順番について考えられ得るすべての組み合わせを生成することにより、検査順序の候補K1〜K6を設定する。本実施形態においては、検査視野V1,V5を除く、3個の検査視野V2〜V4の順列を考えればよいため、3!=6個の検査順序の候補K1〜K6が設定されることとなる。なお、制御部20は、どの演算処理部C1,C2にどの検査視野V1〜V5の演算処理を担当させるかについては設定しない。   By the function of the order candidate setting module 21a, the control unit 20 sets all possible combinations of the first and N-th orders, thereby setting the inspection order candidates K1 to K6. In the present embodiment, since permutations of the three inspection visual fields V2 to V4 except the inspection visual fields V1 and V5 may be considered, 3! = 6 inspection order candidates K1 to K6 are set. Note that the control unit 20 does not set which calculation processing units C1 and C2 are to be in charge of calculation processing of which inspection view fields V1 to V5.

次に、所要期間取得モジュール21cの機能により制御部20は、検査順序の候補K1〜K6を仮選択する(ステップS120)。すなわち、制御部20は、後述する所要期間取得処理の対象とする検査順序の候補K1〜K6を1個選択する。次に、所要期間取得モジュール21cの機能により制御部20は、所要期間取得処理を実行する(ステップS130)。すなわち、所要期間取得モジュール21cの機能により制御部20は、演算期間D1〜D5に基づいて、検査視野V1〜V5を検査した場合の所要期間を、仮選択した検査順序の候補K1〜K6について取得するための所要期間取得処理を実行する。所要期間取得処理の詳細については後述する。   Next, the control unit 20 temporarily selects the inspection order candidates K1 to K6 by the function of the required period acquisition module 21c (step S120). That is, the control unit 20 selects one of the inspection order candidates K1 to K6 to be subjected to the required period acquisition process described later. Next, the control unit 20 executes a required period acquisition process by the function of the required period acquisition module 21c (step S130). That is, with the function of the required period acquisition module 21c, the control unit 20 acquires the required period when the inspection view fields V1 to V5 are inspected based on the operation periods D1 to D5 for the candidates K1 to K6 of the temporarily selected inspection order. Execute the required period acquisition process to Details of the required period acquisition process will be described later.

次に、所要期間取得モジュール21cの機能により制御部20は、すべての検査順序の候補K1〜K6について所要期間を取得したか否かを判定する(ステップS150)。すなわち、制御部20は、検査順序の候補K1〜K6の個数分だけ所要期間取得処理を繰り返して実行したか否かを判定する。すべての検査順序の候補K1〜K6について所要期間を取得したと判定しなかった場合(ステップS150:N)、制御部20は、ステップS120に戻り、次の検査順序の候補K1〜K6を仮選択する。以上の処理(ステップS120〜S150)を繰り返して実行することにより、所要期間取得モジュール21cの機能により制御部20は、演算期間D1〜D5に基づいて、すべての検査視野V1〜V5を検査した場合の所要期間を複数の検査順序の候補K1〜K6のそれぞれについて取得することができる。   Next, with the function of the required period acquisition module 21c, the control unit 20 determines whether or not the required period has been acquired for all the inspection order candidates K1 to K6 (step S150). That is, the control unit 20 determines whether or not the required period acquisition process has been repeatedly performed by the number of the inspection order candidates K1 to K6. If it is not determined that the required period has been acquired for all the inspection order candidates K1 to K6 (step S150: N), the control unit 20 returns to step S120 and temporarily selects the candidate K1 to K6 for the next inspection order. Do. When the control unit 20 inspects all the inspection visual fields V1 to V5 based on the calculation periods D1 to D5 by repeatedly executing the above processing (steps S120 to S150) by the function of the required period acquisition module 21c The required period of time can be acquired for each of the plurality of examination order candidates K1 to K6.

すべての検査順序の候補K1〜K6について所要期間を取得したと判定した場合(ステップS150:Y)、検査順序選択モジュール21dの機能により所要期間が最短の検査順序の候補K1〜K6を選択する(ステップS160)。すなわち、検査順序選択モジュール21dの機能により制御部20は、所要期間に基づいて、複数の検査順序の候補K1〜K6のなかから基板検査装置10に設定する検査順序を選択する。ここで選択された検査順序にしたがって、基板検査プログラム22の機能により制御部20は、各検査視野V1〜V5の検査を順次実行することとなる。   If it is determined that the required periods have been acquired for all the inspection order candidates K1 to K6 (step S150: Y), the inspection order selection module 21d selects candidates K1 to K6 for the inspection order with the shortest required period ( Step S160). That is, the control unit 20 selects an inspection order to be set in the substrate inspection apparatus 10 from among the plurality of inspection order candidates K1 to K6 based on the required period by the function of the inspection order selection module 21d. According to the inspection order selected here, the control unit 20 sequentially executes the inspections of the inspection visual fields V1 to V5 by the function of the substrate inspection program 22.

(3)所要期間取得処理:
次に、所要期間取得処理(図6のステップS130)の詳細について説明する。図7は、所要期間取得処理のフローチャートである。まず、所要期間取得モジュール21cの機能により制御部20は、nに1をセットする(ステップS131)。すなわち、制御部20は、仮選択した検査順序の候補K1〜K6における順番を指定する変数であるnを1番目にセットする。次に、所要期間取得モジュール21cの機能により制御部20は、撮像開始時刻Q(n)と撮像完了時刻S(n)とを取得する(ステップS132)。本実施形態において、n=1である場合、制御部20は、最後に撮像する基準マークE3から1番目の検査視野V5=V(n)までの移動期間R05を撮像開始時刻Q(n)として取得する。一方、n≧2である場合、制御部20は、後述するステップS140にて予め設定されている撮像開始時刻Q(n)を取得する。制御部20は、撮像開始時刻Q(n)に撮像期間を加算した時刻を撮像完了時刻S(n)として取得する。
(3) Required period acquisition process:
Next, details of the required period acquisition process (step S130 in FIG. 6) will be described. FIG. 7 is a flowchart of the required period acquisition process. First, the control unit 20 sets n to 1 by the function of the required period acquisition module 21c (step S131). That is, the control unit 20 sets n, which is a variable for specifying the order of the temporarily selected inspection order candidates K1 to K6, first. Next, the control unit 20 acquires the imaging start time Q (n) and the imaging completion time S (n) by the function of the required period acquisition module 21c (step S132). In the present embodiment, when n = 1, the control unit 20 sets the moving period R05 from the reference mark E3 to be imaged last to the first inspection visual field V5 = V (n) as the imaging start time Q (n). get. On the other hand, when n ≧ 2, the control unit 20 acquires the imaging start time Q (n) set in advance in step S140 described later. The control unit 20 acquires a time obtained by adding the imaging period to the imaging start time Q (n) as an imaging completion time S (n).

次に、所要期間取得モジュール21cの機能により制御部20は、nが2よりも大きいか否かを判定する(ステップS133)。ここで、nが2よりも大きい場合、撮像完了時刻S(n)において、演算処理部C1と演算処理部C2の双方が1〜n−1番目の検査視野Vの演算処理を行っており、VRAM1とVRAM2の双方がクリアされていない可能性がある。一方、nが2以下である場合、撮像完了時刻S(n)において、演算処理部C1と演算処理部C2の少なくとも一方が検査視野Vの演算処理を行っておらず、VRAM1とVRAM2の少なくとも一方がクリアされていることとなる。   Next, the control unit 20 determines whether n is larger than 2 or not by the function of the required period acquisition module 21c (step S133). Here, when n is larger than 2, both of the arithmetic processing unit C1 and the arithmetic processing unit C2 perform the arithmetic processing of the first to (n−1) th inspection visual field V at the imaging completion time S (n), It is possible that both VRAM1 and VRAM2 have not been cleared. On the other hand, when n is 2 or less, at least one of the arithmetic processing unit C1 and the arithmetic processing unit C2 does not perform the arithmetic processing of the inspection field V at the imaging completion time S (n), and at least one of VRAM1 and VRAM2 Will be cleared.

nが2よりも大きいと判定しなかった場合(ステップS133:N)、所要期間取得モジュール21cの機能により制御部20は、演算開始時刻X(n)として撮像完了時刻S(n)を取得する(ステップS134)。すなわち、制御部20は、撮像完了時刻S(n)において、VRAM1とVRAM2の少なくとも一方がクリアされており、即座にn番目の検査視野Vの撮像画像を転送して演算処理部C1または演算処理部C2にて演算処理を開始できるとして、演算開始時刻X(n)に撮像完了時刻S(n)を設定する。   When it is not determined that n is larger than 2 (step S133: N), the control unit 20 acquires the imaging completion time S (n) as the operation start time X (n) by the function of the required period acquisition module 21c. (Step S134). That is, at the imaging completion time S (n), at least one of VRAM1 and VRAM2 is cleared, and the control unit 20 immediately transfers the captured image of the inspection field V of the nth to execute the arithmetic processing unit C1 or arithmetic processing Assuming that calculation processing can be started in the part C2, an imaging completion time S (n) is set to the calculation start time X (n).

一方、nが2よりも大きいと判定した場合(ステップS133:Y)、所要期間取得モジュール21cの機能により制御部20は、演算終了時刻Z(1)〜Z(n−1)を取得する(ステップS135)。すなわち、制御部20は、検査順序における順番がn番目よりも早い1〜n−1番目の演算終了時刻Z(1)〜Z(n−1)を取得する。なお、nが2よりも大きい場合、少なくとも2個の演算終了時刻Z(1)〜Z(n−1)が、後述するステップS138にて予め設定されていることとなる。   On the other hand, when it is determined that n is larger than 2 (step S133: Y), the control unit 20 acquires operation end times Z (1) to Z (n-1) by the function of the required period acquisition module 21c ( Step S135). That is, the control unit 20 acquires 1 to n-1st operation end times Z (1) to Z (n-1) whose order in the inspection order is earlier than the nth. When n is larger than 2, at least two operation end times Z (1) to Z (n-1) are set in advance in step S138 described later.

次に、所要期間取得モジュール21cの機能により制御部20は、撮像完了時刻S(n)より遅い演算終了時刻Z(1)〜Z(n−1)が2個(H個)であるか否かを判定する(ステップS136)。すなわち、制御部20は、撮像完了時刻S(n)において、2個の演算処理部C1と演算処理部C2の双方が1〜n−1番目のいずれかの検査視野Vの演算処理を行っているか否かを判定する。つまり、制御部20は、撮像完了時刻S(n)において、VRAM1とVRAM2の双方がクリアされておらず、即座にn番目の検査視野Vの演算処理を開始できないか否かを判定する。   Next, according to the function of the required period acquisition module 21c, the control unit 20 determines whether two (H) operation end times Z (1) to Z (n-1) later than the imaging completion time S (n). It is determined (step S136). That is, at the imaging completion time S (n), both of the two arithmetic processing units C1 and C2 perform arithmetic processing of any one of the 1st to (n−1) -th inspection fields of view. Determine if there is. That is, at the imaging completion time S (n), the control unit 20 determines whether both the VRAM 1 and the VRAM 2 are not cleared and the arithmetic processing of the n-th inspection visual field V can not be started immediately.

ここで、撮像完了時刻S(n)において、演算処理部C1と演算処理部C2が演算処理を行っている検査視野Vはn−1番目とn−2番目の検査視野Vに限られない。例えば、撮像完了時刻S(n)において、演算処理部C1と演算処理部C2が演算処理を行っている検査視野Vがn−1番目とn−3番目の検査視野Vとなる場合も生じ得る。   Here, at the imaging completion time S (n), the inspection field of view V in which the arithmetic processing unit C1 and the arithmetic processing unit C2 are performing arithmetic processing is not limited to the n-1st and n-2th inspection visual fields V. For example, the inspection field of view V in which the arithmetic processing unit C1 and the arithmetic processing unit C2 are performing arithmetic processing at the imaging completion time S (n) may be the n-1st and n-3rd inspection visual field V .

撮像完了時刻S(n)より遅い演算終了時刻Z(1)〜Z(n−1)が2個(H個)であると判定しなかった場合(ステップS136:N)、制御部20は、演算開始時刻X(n)として、撮像完了時刻S(n)を取得する(ステップS134)。すなわち、制御部20は、撮像完了時刻S(n)において、VRAM1とVRAM2の少なくとも一方がクリアされており、即座にn番目の検査視野Vの撮像画像を転送して演算処理部C1または演算処理部C2にて演算処理を開始できるとして、演算開始時刻X(n)に撮像完了時刻S(n)を設定する。図4の例では、撮像完了時刻S(n)より遅い演算終了時刻Z(n−2)が1個であり、撮像完了時刻S(n)において、演算処理部C1の演算処理が終了しており、演算処理部C1のVRAM1がクリアされていることとなる。そのため、制御部20は、演算開始時刻X(n)に撮像完了時刻S(n)を設定する。   When it is not determined that there are two (H) calculation end times Z (1) to Z (n-1) later than the imaging completion time S (n) (step S136: N), the control unit 20 The imaging completion time S (n) is acquired as the operation start time X (n) (step S134). That is, at the imaging completion time S (n), at least one of VRAM1 and VRAM2 is cleared, and the control unit 20 immediately transfers the captured image of the inspection field V of the nth to execute the arithmetic processing unit C1 or arithmetic processing Assuming that calculation processing can be started in the part C2, an imaging completion time S (n) is set to the calculation start time X (n). In the example of FIG. 4, there is one operation end time Z (n−2) later than the imaging completion time S (n), and at the imaging completion time S (n), the arithmetic processing of the arithmetic processing unit C1 ends. The VRAM 1 of the arithmetic processing unit C1 is cleared. Therefore, the control unit 20 sets the imaging completion time S (n) at the calculation start time X (n).

一方、撮像完了時刻S(n)より遅い演算終了時刻Z(1)〜Z(n−1)が2個(H個)であると判定した場合(ステップS136:Y)、演算開始時刻X(n)として、撮像完了時刻S(n)より遅い演算終了時刻Z(1)〜Z(n−1)のうち最も早いものを設定する(ステップS137)。すなわち、撮像完了時刻S(n)において、演算処理部C1と演算処理部C2の双方が演算処理を行っており、VRAM1とVRAM2の双方がクリアされておらず、即座にn番目の検査視野Vの演算処理を開始できない場合、制御部20は、処理中の演算処理の演算終了時刻Z(1)〜Z(n−1)のうち最も早い時刻を演算開始時刻X(n)として取得する。図5の例では、撮像完了時刻S(n)より遅い演算終了時刻Z(n−1),Z(n−2)のうち、早い方の演算終了時刻Z(n−2)がn番目の検査視野Vの演算開始時刻X(n)として取得されることとなる。   On the other hand, when it is determined that there are two (H) calculation end times Z (1) to Z (n-1) later than the imaging completion time S (n) (step S136: Y), the operation start time X (Y). As n), the earliest one of the operation end times Z (1) to Z (n-1) later than the imaging completion time S (n) is set (step S137). That is, at the imaging completion time S (n), both the arithmetic processing unit C1 and the arithmetic processing unit C2 perform the arithmetic processing, and both the VRAM1 and the VRAM2 are not cleared. When the calculation process of (1) can not be started, the control unit 20 acquires, as the calculation start time X (n), the earliest time among the calculation end times Z (1) to Z (n-1) of the calculation process being processed. In the example of FIG. 5, of the operation end times Z (n-1) and Z (n-2) later than the imaging completion time S (n), the earlier operation end time Z (n-2) is the n-th one. It will be acquired as the calculation start time X (n) of the inspection view field V.

以上説明したように、所要期間取得モジュール21cの機能により制御部20は、検査順序の候補K1〜K6における順番がn番目(nはN以下の自然数)の検査視野Vについての演算処理の準備が完了する撮像完了時刻S(n)において、H個の演算処理部C1,C2の少なくとも1個が演算処理を行っていない場合には(ステップS133:N,ステップS136:N)、撮像完了時刻S(n)をn番目の検査視野Vの演算処理の演算開始時刻X(n)として設定し(ステップS134)、撮像完了時刻S(n)において、H個の演算処理部C1,C2のすべてが演算処理を行っている場合には(ステップS136:Y)、H個の演算処理部C1,C2のそれぞれが行っている演算処理の終了時刻のうちの最も早い時刻をn番目の検査視野Vの演算処理の演算開始時刻X(n)として設定する(ステップS137)、開始時刻設定処理(図7矢印)を行っている。   As described above, the function of the required period acquisition module 21c prepares the arithmetic processing for the inspection view field V of the nth (n is a natural number less than or equal to N) order in the candidates K1 to K6 of the inspection order by the function of the required period acquisition module 21c. If at least one of the H arithmetic processing units C1 and C2 has not performed the arithmetic processing at the imaging completion time S (n) to be completed (step S133: N, step S136: N), the imaging completion time S (N) is set as the calculation start time X (n) of the calculation process of the n-th inspection visual field V (step S134), and at the imaging completion time S (n), all H arithmetic processing units C1 and C2 When arithmetic processing is performed (step S136: Y), the earliest one of the end times of the arithmetic processing performed by each of the H arithmetic processing units C1 and C2 is the n-th inspection It is set as the calculation start time X of the calculation processing of V (n) (step S137), is carried out starting time setting process (FIG. 7 arrow).

順番がn番目の検査視野Vの演算処理の準備が完了する撮像完了時刻S(n)において、H個の演算処理部C1,C2の少なくとも1個が演算処理を行っていない場合には、即座に演算処理を開始することができ、当該撮像完了時刻S(n)を演算開始時刻X(n)とすることができる。一方、順番がn番目の検査視野Vの演算処理の準備が完了しているのに、H個の演算処理部C1,C2のすべてが演算処理を行っている場合には、すぐに演算処理を開始することができず、処理待ち期間W(n)が発生することとなる。
この処理待ち期間W(n)は、H個の演算処理部のそれぞれが行っている演算処理の演算終了時刻Z(n−2),Z(n−1)のうちの最も早い時刻まで継続し、当該時刻にて順番がn番目の検査視野Vの演算処理を開始することができることとなる。
If at least one of the H arithmetic processing units C1 and C2 has not performed the arithmetic processing at the imaging completion time S (n) for which the preparation for the arithmetic processing of the inspection field V having the nth order is completed, Arithmetic processing can be started, and the imaging completion time S (n) can be set as the arithmetic start time X (n). On the other hand, if all the H arithmetic processing units C1 and C2 are performing the arithmetic processing while the preparation for the arithmetic processing of the inspection field V having the nth order is completed, the arithmetic processing is immediately performed. It can not be started, and a processing waiting period W (n) will occur.
This processing waiting period W (n) is continued to the earliest one of the operation end times Z (n−2) and Z (n−1) of the arithmetic processing performed by each of the H arithmetic processing units. It is possible to start the calculation processing of the n-th inspection view field V at the relevant time.

以上のようにして、n番目の検査視野Vの演算処理の演算開始時刻X(n)として設定すると、所要期間取得モジュール21cの機能により制御部20は、演算開始時刻X(n)に演算期間D(n)を加算した時刻を演算終了時刻Z(n)として設定する(ステップS138)。このように、演算終了時刻Z(n)を設定しておくことにより、後続のステップS135にて演算終了時刻Z(1)〜Z(n−1)を取得することが可能となる。   As described above, when the calculation start time X (n) of the calculation process of the n-th inspection view field V is set, the control unit 20 performs the calculation period at the calculation start time X (n) by the function of the required period acquisition module 21c. The time obtained by adding D (n) is set as the operation end time Z (n) (step S138). Thus, by setting the operation end time Z (n), it becomes possible to obtain the operation end times Z (1) to Z (n-1) in the subsequent step S135.

次に、所要期間取得モジュール21cの機能により制御部20は、nがNと等しいか否かを判定する(ステップS139)。すなわち、制御部20は、仮選択している検査順序の候補K1〜K6の最後の順番の検査視野Vについて演算開始時刻X(n)を設定する処理が完了したか否かを判定する。   Next, the control unit 20 determines whether n is equal to N or not by the function of the required period acquisition module 21c (step S139). That is, the control unit 20 determines whether or not the process of setting the operation start time X (n) has been completed for the inspection visual field V in the final order of the temporarily selected inspection order candidates K1 to K6.

nがNと等しいと判定しなかった場合(ステップS139:N)、所要期間取得モジュール21cの機能により制御部20は、n+1番目の検査視野Vの撮像開始時刻Q(n+1)として、n番目の検査視野Vの演算開始時刻X(n)と、n+1番目の検査視野Vへの移動完了時刻U(n+1)のうち遅い方を設定する(ステップS140)。   When it is not determined that n is equal to N (step S139: N), the control unit 20 sets the nth imaging start time Q (n + 1) of the (n + 1) th inspection visual field V according to the function of the required period acquisition module 21c. The later one of the operation start time X (n) of the inspection view field V and the movement completion time U (n + 1) to the (n + 1) th inspection view field V is set (step S140).

すなわち、図4に示すように、n+1番目の検査視野Vへの移動が完了する移動完了時刻U(n+1)において、イメージセンサ42がn+1番目の検査視野Vの撮像画像の転送を完了していれば、制御部20は、当該移動完了時刻U(n+1)を撮像開始時刻Q(n+1)として設定する。一方、図5に示すように、n+1番目の検査視野Vへの移動が完了する移動完了時刻U(n+1)において、イメージセンサ42がn+1番目の検査視野Vの撮像画像の転送を完了していなければ、制御部20は、検査視野Vの撮像画像の転送が完了するn番目の検査視野Vの演算開始時刻X(n)を撮像開始時刻Q(n+1)として設定する。このように、撮像開始時刻Q(n+1)を設定しておくことにより、後続のステップS132にて撮像開始時刻Q(n)を取得することが可能となる。なお、本実施形態において、撮像画像の転送期間は0と見なしている。ただし、撮像画像の転送期間を考慮してもよく、n番目の検査視野Vの撮像画像の転送を開始した演算開始時刻X(n)から、転送期間だけ遅延した時刻を撮像開始時刻Q(n+1)として設定してもよい。   That is, as shown in FIG. 4, at the movement completion time U (n + 1) where the movement to the n + 1st inspection visual field V is completed, the image sensor 42 completes the transfer of the captured image of the n + 1th inspection visual field V For example, the control unit 20 sets the movement completion time U (n + 1) as the imaging start time Q (n + 1). On the other hand, as shown in FIG. 5, the image sensor 42 must complete the transfer of the captured image of the (n + 1) th inspection field V at the movement completion time U (n + 1) where movement to the n + 1th inspection field V is completed. For example, the control unit 20 sets an operation start time X (n) of the n-th inspection view field V for which transfer of a captured image of the inspection view field V is completed as an imaging start time Q (n + 1). Thus, by setting the imaging start time Q (n + 1), the imaging start time Q (n) can be acquired in the subsequent step S132. In the present embodiment, the transfer period of the captured image is considered to be zero. However, the transfer period of the captured image may be taken into consideration, and the imaging start time Q (n + 1) is obtained by delaying the transfer start period X (n) from the operation start time X (n) It may be set as).

次に、所要期間取得モジュール21cの機能により制御部20は、nに1を加算して(ステップS142)、ステップS132に戻る。すなわち、検査順序の候補K1〜K6の次の順番の検査視野Vについて演算開始時刻X(n)を設定する処理を繰り返して実行する。   Next, the control unit 20 adds 1 to n by the function of the required period acquisition module 21c (step S142), and returns to step S132. That is, the process of setting the operation start time X (n) for the inspection visual field V next to the inspection order candidates K1 to K6 is repeatedly executed.

以上説明したように、所要期間取得モジュール21cの機能により制御部20は、演算開始時刻X(n)を設定する開始時刻設定処理を、検査順序の候補K1〜K6における検査順序が1番目からN番目の検査視野について順次行うこととなる。   As described above, the control unit 20 sets the operation start time X (n) by the function of the required period acquisition module 21c, and the inspection order for the inspection order candidates K1 to K6 is from the first to N for the start time setting process. It will be sequentially performed about the second inspection visual field.

nがNと等しいと判定した場合(ステップS139:Y)、所要期間取得モジュール21cの機能により制御部20は、所要期間を取得する(ステップS143)。具体的に、所要期間取得モジュール21cの機能により制御部20は、順番がN番目の検査視野Vについての演算処理の演算終了時刻Z(N)を最終終了時刻として取得し、当該最終終了時刻を終期とする所要期間を取得する。   When it is determined that n is equal to N (step S139: Y), the control unit 20 acquires a required period by the function of the required period acquisition module 21c (step S143). Specifically, by the function of the required period acquisition module 21c, the control unit 20 acquires the operation end time Z (N) of the calculation process for the inspection field V having the Nth order as the final end time, and the final end time Acquire the end of the required period.

以上のように、順番がn番目の検査視野Vの演算開始時刻X(n)を設定する開始時刻設定処理を、検査順序が1番目からN番目の検査視野について順次行っていくことにより、最終的にN番目の検査視野Vの演算開始時刻X(n)を設定できる。n番目の検査視野Vの演算開始時刻X(n)にn番目の検査視野Vの演算期間D(n)を加算することにより、n番目の検査視野Vの演算終了時刻Z(n)を得ることができる。N番目の検査視野についての演算処理の終了時刻は、すべての検査視野についての検査の最終終了時刻となるため、当該最終終了時刻が早い検査順序の候補を選択することにより、検査の所要時間が短くなる検査順序を設定できる。   As described above, the start time setting process for setting the calculation start time X (n) of the inspection field V of the nth order is sequentially performed on the inspection fields of the first to Nth inspection order. The calculation start time X (n) of the N-th inspection visual field V can be set. The calculation end time Z (n) of the n-th inspection view V is obtained by adding the calculation period D (n) of the n-th inspection view V to the calculation start time X (n) of the n-th inspection view V be able to. Since the end time of the calculation process for the Nth inspection view is the final end time of the inspection for all the inspection views, the examination required time is selected by selecting the candidate for the inspection order whose final end time is earlier. You can set the inspection order to be short.

なお、所要期間の始期の時刻を0としているため、0から最終終了時刻までの期間が所要期間となる。以上により所要期間取得処理が完了し、予め設定された検査順序の候補K1〜K6のそれぞれについて所要期間が取得され、所要期間が最短となる検査順序の候補K1〜K6が選択されることとなる。   Since the start time of the required period is 0, the required period is from 0 to the final end time. Thus, the required period acquisition process is completed, the required period is acquired for each of the candidates K1 to K6 in the inspection order set in advance, and the candidate K1 to K6 in the inspection order with the shortest required period is selected. .

以上説明した本実施形態において、検査視野Vの検査順序の複数の候補K1〜K6のうち、すべての検査視野Vを検査した場合の所要期間が短くなるものを、基板検査装置10に設定する検査順序として選択できる。制御部20は、検査視野Vのそれぞれの演算期間D1〜D5に基づいて所要期間を取得するため、検査視野Vごとに異なる演算期間D1〜D5を考慮して全体の所要期間が短くなる検査順序を選択できる。従って、検査視野Vごとに検査対象となる部位(半田、部品、リード、印字等)の数や種類が異なり、演算負荷が異なる場合でも、適切な検査順序を選択できる。   In the present embodiment described above, among the plurality of candidates K1 to K6 in the inspection order of the inspection view V, an inspection in which the required period in the case of inspecting all the inspection views V is shortened is set in the substrate inspection apparatus 10 It can be selected as an order. Since the control unit 20 acquires the required period based on the respective calculation periods D1 to D5 of the inspection view field V, an inspection order in which the entire required period becomes short in consideration of the calculation periods D1 to D5 different for each inspection view field V You can choose Therefore, even if the number and type of parts (solder, parts, leads, printing, etc.) to be inspected differ for each inspection visual field V, and the calculation load is different, an appropriate inspection order can be selected.

1個のイメージセンサ42でN個の検査視野Vを順次撮像するため、準備完了時刻としての撮像完了時刻S(n)は検査視野Vごとに異なることとなる。これに対して、制御部20は、検査視野Vを撮像する撮像順序に基づいて撮像完了時刻S(n)を取得し、さらに当該撮像完了時刻S(n)に基づいて所要期間を取得することができる。   In order to sequentially image the N inspection visual fields V with one image sensor 42, the imaging completion time S (n) as the preparation completion time is different for each inspection visual field V. On the other hand, the control unit 20 acquires the imaging completion time S (n) based on the imaging order for imaging the inspection view field V, and further acquires the required period based on the imaging completion time S (n). Can.

また、N番目の検査視野Vは最後に演算処理が開始する検査視野Vであり、N番目の検査視野Vの演算処理の終了待ちにより、全体の所要期間が長くなる可能性がある。これに対して、演算期間が最短の検査視野V1をN番目の検査視野Vと設定することにより、N番目の検査視野V1の演算処理の終了待ちの期間を抑制し、全体の所要期間を短くすることができる。図4の演算期間D(n)がN番目の検査視野Vについてのものであったとすると、演算期間D(n)が短いほど全体の所要期間を短くなる。さらに、演算期間が最短の検査視野V1をN番目の検査視野Vに固定することにより、組み合わせられ得る検査視野の検査順序の候補K1〜K6の個数を抑制することができる。   Further, the N-th inspection view V is the inspection view V at which the calculation processing finally starts, and waiting for the end of the calculation processing of the N-th inspection view V may lengthen the entire required period. On the other hand, by setting the inspection visual field V1 having the shortest calculation period as the Nth inspection visual field V, the period waiting for the end of the calculation processing of the N th inspection visual field V1 is suppressed, and the entire required period is shortened. can do. Assuming that the calculation period D (n) in FIG. 4 is for the N-th inspection field V, the shorter the calculation period D (n), the shorter the entire required period. Further, by fixing the inspection view field V1 having the shortest calculation period to the N-th inspection view field V, it is possible to suppress the number of candidates K1 to K6 of the inspection order of the inspection view that can be combined.

制御部20は、基板WB上に設けられた位置合わせのための基準マークE3からの距離が最短の検査視野V5を、複数の検査順序の候補K1〜K6のそれぞれにおける検査順序が1番目の検査視野Vとして設定している。これにより、検査順序が1番目の検査視野V5へのイメージセンサ42の移動と撮像とを速やかに行うことができ、H個の演算処理部C1,C2のいずれかが演算処理を開始するタイミングを早めることができる。従って、全体の所要期間を短くすることができる。さらに、基準マークE3からの距離が最短の検査視野V5を1番目の検査視野に固定することにより、組み合わせられ得る検査視野Vの検査順序の候補K1〜K6の個数を抑制することができる。   The control unit 20 checks the inspection view field V5 provided on the substrate WB with the shortest distance from the reference mark E3 for alignment, in the first inspection order in each of the plurality of inspection order candidates K1 to K6. The visual field V is set. As a result, the movement and imaging of the image sensor 42 to the first inspection field V5 in the inspection order can be performed promptly, and the timing at which one of the H arithmetic processing units C1 and C2 starts the arithmetic processing It can be early. Therefore, the entire required period can be shortened. Further, by fixing the inspection view field V5 having the shortest distance from the reference mark E3 to the first inspection view field, the number of candidates K1 to K6 of the inspection order of the inspection view field V which can be combined can be suppressed.

(4)他の実施形態:
前記実施形態においては、検査順序設定装置が基板検査装置10に含まれていたが、検査順序設定装置は基板検査装置から独立した装置であってもよい。すなわち、検査順序設定装置が選択した検査順序を示すデータが、基板検査装置にて取得可能となっていればよい。演算処理部C1,C2の個数を示すHは2でなくてもよく、3以上であってもよい。
むろん、検査視野Vの個数を示すNも5でなくてもよい。
(4) Other embodiments:
In the said embodiment, although the test | inspection order setting apparatus was contained in the board | substrate test | inspection apparatus 10, a test | inspection order setting apparatus may be an apparatus independent of a board | substrate test | inspection apparatus. That is, data indicating the inspection order selected by the inspection order setting device may be acquired by the substrate inspection device. H indicating the number of arithmetic processing units C1 and C2 may not be 2 but may be 3 or more.
Of course, N indicating the number of inspection visual fields V may not be five.

前記実施形態においては、演算処理部C1,C2の個数だけ撮像画像が記録可能なVRAM1,VRAM2が備えられ、検査視野VごとにVRAM1,VRAM2への撮像画像の転送と演算処理とが連続して行われている。しかしながら、すべての検査視野Vの撮像画像を記録可能なVRAMが備えられてもよい。この場合、VRAMへの撮像画像の転送が完了した時刻が、演算処理(転送を含まない)の準備が完了する準備完了時刻となる。   In the embodiment, VRAM1 and VRAM2 capable of recording captured images as many as the number of operation processing units C1 and C2 are provided, and transfer of the captured image to VRAM1 and VRAM2 for each inspection field V and operation processing are continuously performed. It has been done. However, a VRAM capable of recording captured images of all the inspection fields V may be provided. In this case, the time when the transfer of the captured image to the VRAM is completed is the preparation completion time when the preparation of the arithmetic processing (not including the transfer) is completed.

また、例えば検査視野Vにおける検査対象の部位の数が膨大である場合等、撮像期間や移動期間よりも演算期間D1〜D5が著しく大きくなる場合もある。このような場合、順番が早い検査視野Vの演算処理を行っている間に、残りのすべての検査視野Vの撮像とVRAMへの転送が完了する場合も生じ得る。この場合、残りのすべての検査視野Vについては、必ずしも撮像順序どおりに、演算処理を行わなくてもよくなる。従って、検査順序のうち、ある順番までは撮像順序と一致し、ある順番より後においては撮像順序と一致しなくてもよい。   In addition, when the number of parts to be inspected in the inspection view field V is enormous, for example, the calculation periods D1 to D5 may be significantly larger than the imaging period and the movement period. In such a case, it may occur that imaging of all the remaining inspection visual fields V and transfer to the VRAM are completed while the processing of the inspection visual field V is performed in the earlier order. In this case, for all the remaining inspection visual fields V, the arithmetic processing does not have to be performed in the imaging order. Therefore, up to a certain order in the examination order, it does not have to match the imaging order after the certain order.

また、検査開始時にイメージセンサ42が存在する位置から最も近い検査視野Vを1番目の検査視野Vとすればよく、検査開始時にイメージセンサ42が存在する位置は基準マークE3の位置に限られない。むろん、検査順序の候補K1〜K6において、1番目の検査視野Vが固定されなくてもよい。同様に、検査順序の候補K1〜K6において、N番目の検査視野Vが固定されなくてもよい。例えば、N個の検査視野Vによって構成されるN!個の順列のすべてが検査順序の候補として設定されてもよい。   Further, the inspection visual field V closest to the position where the image sensor 42 exists at the start of the inspection may be set as the first inspection visual field V, and the position where the image sensor 42 exists at the start of the inspection is not limited to the position of the reference mark E3. . Of course, in the inspection order candidates K1 to K6, the first inspection visual field V may not be fixed. Similarly, in the inspection order candidates K1 to K6, the N-th inspection visual field V may not be fixed. For example, N! Configured by N inspection visual fields V! All of the permutations may be set as candidates for the inspection order.

10…基板検査装置、20…制御部、21…検査順序設定プログラム、21a…順序候補設定モジュール、21b…演算期間取得モジュール、21c…所要期間取得モジュール、21d…検査順序選択モジュール、22…基板検査プログラム、30…記録媒体、30a…検査視野情報、30b…演算期間情報、30c…移動期間情報、40…撮像部、41…照明、42…イメージセンサ、43…移動部、C1…演算処理部、C2…演算処理部、D…演算期間、E1〜E3…基準マーク、K1〜K6…検査順序の候補、Q…撮像開始時刻、S…撮像完了時刻、U…移動完了時刻、V…検査視野、W…処理待ち期間、P…撮像待ち期間、WB…基板 DESCRIPTION OF SYMBOLS 10 ... Board inspection apparatus, 20 ... Control part, 21 ... Inspection order setting program, 21a ... Order candidate setting module, 21b ... Calculation period acquisition module, 21c ... Required period acquisition module, 21d ... Inspection order selection module, 22 ... Board inspection Program 30 30 recording medium 30a inspection visual field information 30b calculation period information 30c movement period information 40 imaging unit 41 illumination 42 image sensor 43 moving unit C1 arithmetic processing unit C2 Operation processing unit D Operation period E1 to E3 Reference mark K1 to K6 Candidate for inspection order Q Imaging start time S Imaging completion time U Movement completion time V Inspection field of view W: processing waiting period, P: imaging waiting period, WB: substrate

しかしながら、検査視野の移動経路に無駄がなくても、演算処理部が過去の検査視野の演算処理を終了していない場合には、当該演算処理が終了するまで次の検査視野の演算処理を行うことができず、処理待ちの時間が発生してしまうという問題があった。すなわち、検査視野の移動経路に無駄がないような検査視野順序を設定しても、必ずしも検査の所要期間が短くならないという問題があった。
However, even if the movement path of the inspection view is not wasted, if the arithmetic processing unit does not finish the operation processing of the past inspection view, the next inspection view calculation processing is performed until the calculation processing ends. There is a problem that it can not be done and a waiting time for processing occurs. That is, there is a problem that even if the inspection visual field order is set such that the movement path of the inspection visual field is not wasted, the required period of the inspection does not necessarily become short.

Claims (7)

基板上に設定されたN個(Nは2以上の自然数)の検査視野のそれぞれを撮像可能な1個のカメラと、H個(Hは2以上かつN未満の自然数)の演算処理部とを備えた基板検査装置に検査させる前記検査視野の検査順序を設定する検査順序設定装置であって、
前記検査順序の複数の候補を設定する順序候補設定部と、
前記演算処理部が演算処理に要する演算期間を前記検査視野のそれぞれについて取得する演算期間取得部と、
前記演算期間に基づいて、すべての前記検査視野を検査した場合の所要期間を複数の前記候補のそれぞれについて取得する所要期間取得部と、
前記所要期間に基づいて、複数の前記候補のなかから前記基板検査装置に設定する前記検査順序を選択する検査順序選択部と、
を備える検査順序設定装置。
One camera capable of imaging each of N (N is a natural number of 2 or more) inspection fields set on a substrate, and H (H is a natural number of 2 or more and less than N) arithmetic processing units An inspection order setting device for setting an inspection order of the inspection visual field to be inspected by a substrate inspection apparatus provided, comprising:
An order candidate setting unit configured to set a plurality of candidates for the inspection order;
An operation period acquisition unit that acquires, for each of the inspection views, the operation period required for the operation processing by the operation processing unit;
A required period acquisition unit which acquires, for each of a plurality of candidates, required periods when all the inspection visual fields are inspected based on the calculation period;
An inspection order selection unit which selects the inspection order to be set in the substrate inspection apparatus from among the plurality of candidates based on the required period;
An inspection order setting device comprising:
前記所要期間取得部は、
前記候補における順番がn番目(nはN以下の自然数)の前記検査視野についての前記演算処理の準備が完了する準備完了時刻において、H個の前記演算処理部のいずれかが前記演算処理を行っていない場合には、前記準備完了時刻をn番目の前記検査視野の前記演算処理の開始時刻として設定し、
前記準備完了時刻において、H個の前記演算処理部のすべてが前記演算処理を行っている場合には、H個の前記演算処理部のそれぞれが行っている前記演算処理の終了時刻のうちの最も早い時刻をn番目の前記検査視野の前記演算処理の開始時刻として設定する、開始時刻設定処理を、
前記候補における前記検査順序が1番目からN番目の前記検査視野について順次行うことにより、前記検査順序がN番目の前記検査視野についての前記演算処理の終了時刻を最終終了時刻として取得し、当該最終終了時刻を終期とする前記所要期間を取得する、
請求項1に記載の検査順序設定装置。
The required period acquisition unit
Any one of the H arithmetic processing units performs the arithmetic processing at a preparation completion time when the preparation of the arithmetic processing for the inspection visual field of the nth (n is a natural number less than or equal to N) in the candidate is completed. If not, the preparation completion time is set as the start time of the arithmetic processing of the nth inspection visual field,
When all of the H arithmetic processing units are performing the arithmetic processing at the preparation completion time, the most of the end times of the arithmetic processing performed by each of the H arithmetic processing units Start time setting processing for setting an early time as a start time of the arithmetic processing of the n-th inspection visual field;
By sequentially performing the inspection order for the first to Nth inspection fields in the candidate, the end time of the arithmetic processing for the inspection field for the Nth inspection order is acquired as a final end time, Acquire the required period ending with the end time,
The inspection order setting device according to claim 1.
前記準備完了時刻は、前記カメラが前記検査視野の撮像を完了する時刻である、
請求項2に記載の検査順序設定装置。
The preparation completion time is a time at which the camera completes the imaging of the examination view.
The inspection order setting device according to claim 2.
前記順序候補設定部は、前記演算期間が最短の前記検査視野を、複数の前記候補のそれぞれにおける前記検査順序がN番目の前記検査視野として設定する、
請求項1から請求項3のいずれか一項に記載の検査順序設定装置。
The order candidate setting unit sets the inspection view with the shortest calculation period as the Nth inspection view in each of a plurality of the candidates.
The inspection order setting device according to any one of claims 1 to 3.
前記順序候補設定部は、前記基板上に設けられた位置合わせのための基準マークからの距離が最短の前記検査視野を、複数の前記候補のそれぞれにおける前記検査順序が1番目の前記検査視野として設定する、
請求項1から請求項4のいずれか一項に記載の検査順序設定装置。
The order candidate setting unit sets the inspection view with the shortest distance from the reference mark for alignment provided on the substrate as the inspection view with the first inspection order in each of the plurality of candidates. To set
The inspection order setting device according to any one of claims 1 to 4.
基板上に設定されたN個(Nは2以上の自然数)の検査視野のそれぞれを撮像可能な1個のカメラと、H個(Hは2以上かつN未満の自然数)の演算処理部とを備えた基板検査装置に検査させる前記検査視野の検査順序を設定する検査順序設定方法であって、
前記検査順序の複数の候補を設定する順序候補設定工程と、
前記演算処理部が演算処理に要する演算期間を前記検査視野のそれぞれについて取得する演算期間取得工程と、
前記演算期間に基づいて、すべての前記検査視野を検査した場合の所要期間を複数の前記候補のそれぞれについて取得する所要期間取得工程と、
前記所要期間に基づいて、複数の前記候補のなかから前記基板検査装置に設定する前記検査順序を選択する検査順序選択工程と、
を含む検査順序設定方法。
One camera capable of imaging each of N (N is a natural number of 2 or more) inspection fields set on a substrate, and H (H is a natural number of 2 or more and less than N) arithmetic processing units An inspection order setting method for setting an inspection order of the inspection visual field to be inspected by a substrate inspection apparatus provided, comprising:
An order candidate setting step of setting a plurality of candidates for the inspection order;
An operation period acquisition step of acquiring, for each of the inspection visual fields, the operation period required for the operation processing by the operation processing unit;
A required period acquisition step of acquiring, for each of a plurality of candidates, required periods when all the inspection visual fields are inspected based on the calculation period;
An inspection order selection step of selecting the inspection order to be set in the substrate inspection apparatus from among the plurality of candidates based on the required period;
How to set the inspection order, including
基板上に設定されたN個(Nは2以上の自然数)の検査視野のそれぞれを撮像可能な1個のカメラと、H個(Hは2以上かつN未満の自然数)の演算処理部とを備えた基板検査装置に検査させる前記検査視野の検査順序を設定する機能をコンピュータに実現させる検査順序設定プログラムであって、
前記検査順序の複数の候補を設定する順序候補設定機能と、
前記演算処理部が演算処理に要する演算期間を前記検査視野のそれぞれについて取得する演算期間取得機能と、
前記演算期間に基づいて、すべての前記検査視野を検査した場合の所要期間を複数の前記候補のそれぞれについて取得する所要期間取得機能と、
前記所要期間に基づいて、複数の前記候補のなかから前記基板検査装置に設定する前記検査順序を選択する検査順序選択機能と、
前記コンピュータに実現させる検査順序設定プログラム。
One camera capable of imaging each of N (N is a natural number of 2 or more) inspection fields set on a substrate, and H (H is a natural number of 2 or more and less than N) arithmetic processing units An inspection order setting program which causes a computer to realize a function of setting an inspection order of the inspection visual field to be inspected by the substrate inspection apparatus provided, comprising:
An order candidate setting function for setting a plurality of candidates for the inspection order;
An operation period acquisition function of acquiring, for each of the inspection visual fields, the operation period required for the arithmetic processing by the arithmetic processing unit;
A required period acquisition function of acquiring, for each of a plurality of candidates, required periods when all the inspection visual fields are inspected based on the calculation period;
An inspection order selection function of selecting the inspection order to be set in the substrate inspection apparatus from among the plurality of candidates based on the required period;
An inspection order setting program implemented on the computer.
JP2017232865A 2017-12-04 2017-12-04 Inspection order setting device, inspection order setting method and inspection order setting program Pending JP2019100887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017232865A JP2019100887A (en) 2017-12-04 2017-12-04 Inspection order setting device, inspection order setting method and inspection order setting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017232865A JP2019100887A (en) 2017-12-04 2017-12-04 Inspection order setting device, inspection order setting method and inspection order setting program

Publications (1)

Publication Number Publication Date
JP2019100887A true JP2019100887A (en) 2019-06-24

Family

ID=66976795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017232865A Pending JP2019100887A (en) 2017-12-04 2017-12-04 Inspection order setting device, inspection order setting method and inspection order setting program

Country Status (1)

Country Link
JP (1) JP2019100887A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019158499A (en) * 2018-03-12 2019-09-19 オムロン株式会社 Appearance inspection system, setting device, image processor, method for setting, and program
US11080836B2 (en) 2018-03-12 2021-08-03 Omron Corporation Appearance inspection system, image processing device, imaging device, and inspection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005241310A (en) * 2004-02-24 2005-09-08 Nagoya Electric Works Co Ltd Visual examination device, visual examination method and visual examination program
JP2006308349A (en) * 2005-04-27 2006-11-09 Ckd Corp Order rationalizing device and substrate inspection device
JP2016530521A (en) * 2013-08-23 2016-09-29 コー・ヤング・テクノロジー・インコーポレーテッド Board inspection equipment
JP2017181188A (en) * 2016-03-29 2017-10-05 Ckd株式会社 Circuit board inspection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005241310A (en) * 2004-02-24 2005-09-08 Nagoya Electric Works Co Ltd Visual examination device, visual examination method and visual examination program
JP2006308349A (en) * 2005-04-27 2006-11-09 Ckd Corp Order rationalizing device and substrate inspection device
JP2016530521A (en) * 2013-08-23 2016-09-29 コー・ヤング・テクノロジー・インコーポレーテッド Board inspection equipment
JP2017181188A (en) * 2016-03-29 2017-10-05 Ckd株式会社 Circuit board inspection device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019158499A (en) * 2018-03-12 2019-09-19 オムロン株式会社 Appearance inspection system, setting device, image processor, method for setting, and program
US11080836B2 (en) 2018-03-12 2021-08-03 Omron Corporation Appearance inspection system, image processing device, imaging device, and inspection method
JP7167453B2 (en) 2018-03-12 2022-11-09 オムロン株式会社 APPEARANCE INSPECTION SYSTEM, SETTING DEVICE, IMAGE PROCESSING DEVICE, SETTING METHOD AND PROGRAM

Similar Documents

Publication Publication Date Title
US10366484B2 (en) Inspection method, inspection apparatus, processing apparatus, and recording medium for detecting defects of a work
CN107315011B (en) Image processing apparatus, image processing method, and storage medium
JP4652391B2 (en) Pattern inspection apparatus and pattern inspection method
US20150043805A1 (en) Image processing system, image processing method, and computer-readable recording medium
JP2006276454A (en) Image correcting method and pattern defect inspecting method using same
JP2007327957A (en) Teaching method of automatic optical inspection system, and inspection method of automatic optical inspection system
JP2019100887A (en) Inspection order setting device, inspection order setting method and inspection order setting program
CN109425327B (en) Inspection system and method for correcting inspection image
JP2003308803A (en) Reference image pre-reading function in scanning microscope
JP2007285880A (en) Sample image registration method in board inspection, and sample image producing system
WO2014208193A1 (en) Wafer appearance inspection device
JP2011222636A (en) Inspection apparatus, inspection method, and defect coordinate correction method
JP2007103645A (en) Pattern inspection method
JP4243268B2 (en) Pattern inspection apparatus and pattern inspection method
JP4074624B2 (en) Pattern inspection method
JP3944075B2 (en) Sample inspection method and inspection apparatus
JP5684628B2 (en) Pattern inspection apparatus and pattern inspection method
JP2009294123A (en) Pattern discriminator, pattern discriminating method and inspection device of sample
JP2018146492A (en) Defect inspection system and inspection device and review device used for the same
JP2006201135A (en) Defect inspection device, defect inspection method, and defect inspection program
JP4390732B2 (en) Semiconductor wafer appearance inspection system
JP2005134347A (en) Reticle inspection device and reticle inspection method
JP2007072232A (en) Reference image forming apparatus, pattern inspection apparatus, reference image forming method, and reticle
KR20150049799A (en) Method of inspecting a surface of a substrate and apparatus for performing the same
JP2008076231A (en) Tire visual inspection device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180330

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190402

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190521

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190903

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200707