JP2022139823A - Optical sensor, control method for optical sensor, and control program for optical sensor - Google Patents

Optical sensor, control method for optical sensor, and control program for optical sensor Download PDF

Info

Publication number
JP2022139823A
JP2022139823A JP2021040371A JP2021040371A JP2022139823A JP 2022139823 A JP2022139823 A JP 2022139823A JP 2021040371 A JP2021040371 A JP 2021040371A JP 2021040371 A JP2021040371 A JP 2021040371A JP 2022139823 A JP2022139823 A JP 2022139823A
Authority
JP
Japan
Prior art keywords
light
detection
projection
optical sensor
optical axis
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
JP2021040371A
Other languages
Japanese (ja)
Inventor
典大 蓬郷
Norihiro Hogo
良介 都築
Ryosuke Tsuzuki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2021040371A priority Critical patent/JP2022139823A/en
Priority to PCT/JP2021/046930 priority patent/WO2022190524A1/en
Publication of JP2022139823A publication Critical patent/JP2022139823A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

To provide an optical sensor that, even when detecting a relatively distant object to be detected, does not require complicated optical axis adjustment work.SOLUTION: An optical sensor 100 comprises: a light projection element that projects detection light LT being visible light; an optical axis adjustment element that adjusts an optical axis of the detection light projected from the light projection element; a light receiving element that receives detection light reflected on an object 210 and outputs a detection signal; and a light projection adjustment unit that recognizes, as an indication direction, a specific direction in which, among detection results based on detection signals obtained by driving the optical axis adjustment element to sequentially project the detection light in a plurality of preset specific directions, a detection result evaluated such that the detection light is blocked is obtained, and adjusts a light projection direction of the detection light projected for inspection of an objected to be inspected on the basis of, the recognized indication direction.SELECTED DRAWING: Figure 4

Description

本発明は、光学式センサ、光学式センサの制御方法及び光学式センサの制御プログラムに関する。 The present invention relates to an optical sensor, an optical sensor control method, and an optical sensor control program.

検査対象物の有無や距離を検出する光学式センサが知られている。例えば、特許文献1には、検査対象物へ投光された検出光が反射して戻ってくるまでの時間を測定することにより距離を検出するToF(Time of Flight)センサが開示されている。 2. Description of the Related Art Optical sensors that detect the presence or absence of an inspection object and the distance to it are known. For example, Patent Literature 1 discloses a ToF (Time of Flight) sensor that detects distance by measuring the time it takes for detection light projected onto an inspection object to be reflected and returned.

特開2017-53769号公報JP 2017-53769 A

光学式センサは、製造ラインに設置され、製造ラインを流れる部品の特徴的な形状部分を測定して当該物品の品種や良否を判別することに利用されることがある。このように利用される場合に、光学式センサは製造ライン300に付随する構造物に取り付けられることが多いが、必ずしも検査対象物の近くに取り付けることができるとは限らない。そこで、近年においては検出レンジが数mにも達する広レンジタイプの光学式センサも開発されている。しかし、広レンジタイプの光学式センサは、取付け時にわずかでも角度誤差が生じると、検査対象物のターゲットとする箇所から検出光が外れてしまう。取付器具を介して光学式センサを取り付ける場合には検出光の厳密な光軸調整が難しく、作業者は検出光のスポットを確認しつつ取付器具を緩めたり締め付けたりするという煩雑な作業を行う必要があった。 An optical sensor is installed in a production line, and is sometimes used to measure a characteristic shape portion of a part flowing through the production line to determine the type and quality of the article. When utilized in this manner, optical sensors are often attached to structures associated with the manufacturing line 300, but may not always be attached near the object to be inspected. Therefore, in recent years, a wide-range type optical sensor with a detection range of several meters has also been developed. However, with the wide-range type optical sensor, if even a slight angular error occurs during installation, the detected light will deviate from the target portion of the inspection object. When an optical sensor is attached via a mounting device, it is difficult to precisely adjust the optical axis of the detection light, and the operator must check the spot of the detection light while loosening and tightening the mounting device, which is a cumbersome task. was there.

本発明は、このような問題を解決するためになされたものであり、比較的遠くの検出対象物を検出する場合であっても、煩雑な光軸調整作業を必要としない光学式センサ等を提供するものである。 The present invention has been made to solve such problems, and provides an optical sensor or the like that does not require complicated optical axis adjustment work even when detecting a relatively distant detection target. It provides.

本発明の第1の態様における光学式センサは、可視光である検出光を投光する投光素子と、投光素子から投光された検出光の光軸を調整する光軸調整素子と、対象物で反射した検出光を受光して検出信号を出力する受光素子と、光軸調整素子を駆動することにより検出光を予め設定された複数の特定方向へ順次投光して得た検出信号に基づく検出結果のうち、検出光が遮られたと評価される検出結果が得られた特定方向を指示方向と認識し、認識した指示方向に基づいて検査対象物の検査のために投光する検出光の投光方向を調整する投光調整部とを備える。このように構成された光学式センサによれば、ユーザは、例えば指先で特定方向への検出光を遮るだけで、検査対象物の検査のために投光する検出光の投光方向を指示できるので、光学式センサの向きを調整し直すなどの手間が省け、作業性の向上を図ることができる。 An optical sensor according to a first aspect of the present invention comprises a light projecting element that projects visible detection light, an optical axis adjustment element that adjusts the optical axis of the detection light projected from the light projecting element, A light-receiving element that receives the detection light reflected by the object and outputs a detection signal, and a detection signal that is obtained by sequentially projecting the detection light in a plurality of predetermined specific directions by driving the optical axis adjustment element. Among the detection results based on the detection method, the specific direction in which the detection result that the detection light is evaluated as being blocked is recognized as the indicated direction, and based on the recognized indicated direction, light is emitted for inspection of the inspection object. and a light projection adjustment unit that adjusts the light projection direction. According to the optical sensor configured in this way, the user can indicate the projection direction of the detection light to be projected for inspection of the inspection target simply by blocking the detection light in a specific direction with, for example, a fingertip. Therefore, it is possible to save the trouble of readjusting the orientation of the optical sensor and improve the workability.

上記の光学式センサにおいて、投光調整部は、複数の特定方向に加え、その時点で設定されている投光方向を1サイクルとして順次投光し、複数の特定方向へ投光する場合と投光方向へ投光する場合で、投光の態様を異ならせてもよい。このように投光の態様を異ならせることにより、ユーザは、一つの投光素子から投光されるそれぞれの検出光の役割を容易に認識することができる。 In the optical sensor described above, the light projection adjustment unit sequentially projects light in a plurality of specific directions and the currently set projection direction as one cycle. In the case of projecting light in the light direction, the mode of light projection may be changed. By making the modes of light projection different in this way, the user can easily recognize the role of each detection light projected from one light projecting element.

上記の光学式センサにおいて、複数の特定方向のそれぞれは、光軸調整素子によって調整可能な範囲の端に設定されているとよい。このように調整可能な範囲の端に設定されることにより、ユーザは、検査対象物の検査のために投光する検出光をどの範囲で調整できるかを容易に認識することができる。 In the above optical sensor, each of the plurality of specific directions may be set at the end of the range adjustable by the optical axis adjustment element. By setting the end of the adjustable range in this way, the user can easily recognize within which range the detection light projected for inspection of the inspection object can be adjusted.

上記の光学式センサにおいて、投光調整部は、予め設定された複数の特定方向のうち反射した検出信号を受光素子で検出できない特定方向が存在する場合には、その特定方向を検出信号が検出できる方向へ移動させるようにしてもよい。このように特定方向を移動させれば、いずれの特定方向への検出光も対象物にスポットを形成するので、ユーザは、特定方向への検出光の光軸を発見しやすく、方向指示を与えやすい。 In the above optical sensor, if there is a specific direction in which the light-receiving element cannot detect the reflected detection signal, the light projection adjustment unit detects the detection signal in the specific direction. You may make it move in the possible direction. If the specific direction is moved in this way, the detection light in any specific direction forms a spot on the object, so that the user can easily find the optical axis of the detection light in the specific direction and give a direction indication. Cheap.

上記の光学式センサにおいて、投光調整部は、予め設定された複数の特定方向の少なくともいずれか又は前記投光方向で検出された対象物までの距離に基づいて複数の特定方向を移動させるようにしてもよい。このように移動させることにより、光学式センサからの距離によらず特定方向の検出光の間隔を適度に保つことができるので、ユーザは方向指示を与えやすい。このとき、投光調整部は、複数の特定方向が光軸調整素子によって調整可能な範囲の端でない場合には、範囲を示すために端方向への投光を行うようにしてもよい。このように端方向への投光を行うことにより、ユーザは、検査対象物の検査のために投光する検出光をどの範囲で調整できるかを容易に認識することができる。 In the above optical sensor, the light projection adjustment unit moves in at least one of a plurality of predetermined specific directions or a plurality of specific directions based on the distance to the object detected in the light projection direction. can be By moving in this way, it is possible to maintain an appropriate interval between detected light beams in a specific direction regardless of the distance from the optical sensor, so that the user can easily give a direction indication. At this time, if the plurality of specific directions is not at the end of the range adjustable by the optical axis adjusting element, the light projection adjusting section may project light in the end direction to indicate the range. By projecting light toward the end in this way, the user can easily recognize the range in which the detection light projected for inspection of the inspection object can be adjusted.

上記の光学式センサにおいて、投光調整部は、複数の特定方向のそれぞれにおいて投光した検出光のうちの2つ以上の特定方向に対する検出光が連続して順次遮られたと評価される検出結果が得られた場合には、当該2つ以上の特定方向の遮られた順番に基づいて検査対象物の検査のために投光する検出光の投光方向を調整するようにしてもよい。このような態様によっても、ユーザは、直感的かつ容易に方向指示を与えることができる。このとき、投光調整部は、遮られた順番に基づいて当該投光方向を調整した場合は、予め設定された設定時間の間、当該投光方向の調整を停止するとよい。このような停止期間を設けることにより、ユーザの手が往復することによる誤検出を防ぐことができる。 In the above-mentioned optical sensor, the light projection adjustment unit produces a detection result that is evaluated to indicate that the detection light in two or more specific directions out of the detection light projected in each of the plurality of specific directions is successively and sequentially blocked. is obtained, the projection direction of the detection light projected for inspection of the inspection object may be adjusted based on the order in which the two or more specific directions are blocked. This aspect also allows the user to intuitively and easily give directions. At this time, when the light projection adjustment unit adjusts the light projection direction based on the order of blocking, it is preferable to stop the adjustment of the light projection direction for a preset set time. By providing such a stop period, erroneous detection due to reciprocation of the user's hand can be prevented.

上記の光学式センサにおいて、投光調整部は、複数の特定方向へ順次投光して得た検出結果のすべてが検出光が遮られたと評価される検出結果であった場合に、投光方向を確定させてもよい。このように方向指示に連続して確定指示を受け付けるようにすれば、ユーザは、確定指示をするために光学式センサを操作する必要がないので、作業性の向上が見込める。 In the above optical sensor, the light projection adjustment unit adjusts the light projection direction when all of the detection results obtained by sequentially projecting light in a plurality of specific directions are evaluation results indicating that the detected light is blocked. may be confirmed. In this way, if the confirmation instruction is accepted following the direction instruction, the user does not need to operate the optical sensor to issue the confirmation instruction, so workability can be expected to be improved.

上記の光学式センサにおいて、投光調整部は、複数の特定方向へ順次投光して得た検出結果のうち予め設定された組み合わせの検出光がいずれも遮られたと評価される検出結果であった場合に、投光方向を確定させてもよい。また、投光調整部は、確定指示を受け付けるための確定投光として検出光を投光し、確定投光の検出光が遮られたと評価される検出結果であった場合に、投光方向を確定させてもよい。このような態様であっても、ユーザは、確定指示をするために光学式センサを操作する必要がないので、作業性の向上が見込める。 In the above-mentioned optical sensor, the light projection adjustment unit outputs detection results obtained by sequentially projecting light in a plurality of specific directions, and the detection results are such that all of the detection light in a preset combination is blocked. In this case, the projection direction may be determined. Further, the light emission adjustment unit emits the detection light as the final light emission for accepting the confirmation instruction, and when the detection result indicates that the detection light of the final light emission is blocked, changes the light projection direction. You can confirm. Even in such a mode, the user does not need to operate the optical sensor to issue a confirmation instruction, so workability can be expected to be improved.

上記の光学式センサにおいて、複数の特定方向は、光軸調整素子によって調整可能な範囲の少なくとも一部の範囲を覆うように規定された複数の離散点のそれぞれに対して設定され、投光調整部は、検出光が最も至近で遮られたと評価される検出結果が得られた特定方向を指示方向と認識し、当該投光方向を指示方向として確定してもよい。このような指示方式であれば、より直接的に投光方向を指示できる。 In the above optical sensor, the plurality of specific directions are set for each of the plurality of discrete points defined so as to cover at least a part of the range adjustable by the optical axis adjustment element, and the projection adjustment The unit may recognize the specific direction in which the detection result evaluated that the detected light is blocked at the closest distance is obtained as the pointing direction, and may determine the projection direction as the pointing direction. With such an indication method, the direction of projection can be indicated more directly.

本発明の第2の態様における光学式センサの制御方法は、検出光を投光する投光素子と、投光素子から投光された検出光の光軸を調整する光軸調整素子と、対象物で反射した検出光を受光して検出信号を出力する受光素子とを備える光学式センサの制御方法であって、光軸調整素子を駆動することにより検出光を予め設定された複数の特定方向へ順次投光する投光ステップと、投光ステップで複数の特定方向へそれぞれ投光して得た検出信号に基づく検出結果のうち、検出光が遮られたと評価される検出結果が得られた特定方向を指示方向と認識する認識ステップと、認識ステップで認識された指示方向に基づいて検査対象物の検査のために投光する検出光の投光方向を調整する調整ステップとを有する。 A method for controlling an optical sensor according to a second aspect of the present invention includes a light projecting element that projects detection light, an optical axis adjustment element that adjusts the optical axis of the detection light projected from the light projecting element, and a target A control method for an optical sensor provided with a light receiving element for receiving detection light reflected by an object and outputting a detection signal, wherein the detection light is directed in a plurality of predetermined specific directions by driving the optical axis adjustment element. Among the detection results based on the detection signals obtained by projecting light in a plurality of specific directions in the step of sequentially projecting light onto the target and the step of projecting light, a detection result evaluated as blocking the detection light was obtained. It has a recognition step of recognizing a specific direction as a pointing direction, and an adjusting step of adjusting the projection direction of the detection light projected for inspecting the inspection target based on the pointing direction recognized in the recognition step.

また、本発明の第3の態様における光学式センサの制御プログラムは、検出光を投光する投光素子と、投光素子から投光された検出光の光軸を調整する光軸調整素子と、対象物で反射した検出光を受光して検出信号を出力する受光素子とを備える光学式センサの制御プログラムであって、光軸調整素子を駆動することにより検出光を予め設定された複数の特定方向へ順次投光する投光ステップと、投光ステップで複数の特定方向へそれぞれ投光して得た検出信号に基づく検出結果のうち、検出光が遮られたと評価される検出結果が得られた特定方向を指示方向と認識する認識ステップと、認識ステップで認識された指示方向に基づいて検査対象物の検査のために投光する検出光の投光方向を調整する調整ステップとをコンピュータに実行させる。 A control program for an optical sensor according to a third aspect of the present invention includes a light projecting element that projects detection light, and an optical axis adjustment element that adjusts the optical axis of the detection light projected from the light projecting element. and a light-receiving element that receives detection light reflected by an object and outputs a detection signal. Among the detection results based on the detection signals obtained by projecting light in a plurality of specific directions in each of the projection step of sequentially projecting light in a specific direction and the projection step, the detection result evaluated as the detection light being blocked is obtained. a recognition step of recognizing the specified direction as a pointing direction; and an adjusting step of adjusting the projection direction of the detection light projected for inspection of the inspection object based on the pointing direction recognized in the recognition step. to execute.

このような第2、第3の態様であっても、第1の態様と同様に、検査対象物の検査のために投光する検出光の投光方向を容易に指示できるので、光学式センサの向きを調整し直すなどの手間が省け、作業性の向上を図ることができる。 Even in the second and third aspects, as in the first aspect, it is possible to easily indicate the projection direction of the detection light emitted for inspection of the inspection object, so that the optical sensor can This eliminates the trouble of readjusting the orientation, and improves workability.

本発明により、比較的遠くの検出対象物を検出する場合であっても、煩雑な光軸調整作業を必要としない光学式センサ等を提供することができる。 INDUSTRIAL APPLICABILITY According to the present invention, it is possible to provide an optical sensor or the like that does not require complicated optical axis adjustment work even when detecting a relatively distant detection target.

光学式センサの外観斜視図である。1 is an external perspective view of an optical sensor; FIG. 光学式センサのシステム構成図である。1 is a system configuration diagram of an optical sensor; FIG. 予備ワークに対する指示投光と調整投光の投光を説明する図である。It is a figure explaining the light projection of the instruction|indication light projection and adjustment light projection with respect to a preliminary|backup workpiece|work. 調整投光を右方向へ移動させる場合の調整方法を説明する図である。It is a figure explaining the adjustment method in the case of moving adjustment projection rightward. 調整投光を下方向へ移動させる場合の調整方法を説明する図である。It is a figure explaining the adjustment method in the case of moving adjustment projection downward. 調整投光の投光方向を検査方向に確定する確定方法を説明する図である。It is a figure explaining the determination method which determines the light projection direction of adjustment light projection to an inspection direction. 検査対象物を検査する様子を示す図である。It is a figure which shows a mode that an inspection target is inspected. 対象物の形状に応じて指示投光の投光方向を自動調整する様子を示す図である。It is a figure which shows a mode that the projection direction of instruction|indication light projection is automatically adjusted according to the shape of a target object. 対象物の距離に応じて指示投光の投光方向を自動調整する様子を示す図である。It is a figure which shows a mode that the projection direction of instruction|indication light projection is automatically adjusted according to the distance of a target object. 指示投光に加えて境界投光を行う様子を示す図である。FIG. 10 is a diagram showing how boundary projection is performed in addition to instruction projection. 調整投光を移動させる他の指示手法を説明する図である。It is a figure explaining other instruction|indication methods which move adjustment projection light. 調整投光の投光方向を検査方向に確定する他の確定方法を説明する図である。FIG. 10 is a diagram for explaining another method of determining the direction of projection of adjusted light to be in the inspection direction; 調整投光の投光を行うことなく直接的に検査方向を確定する調整手法を説明する図である。It is a figure explaining the adjustment method which determines an inspection direction directly, without light-projecting adjustment light. 制御部の処理手順を説明するフロー図である。It is a flow figure explaining the processing procedure of a control part.

以下、発明の実施の形態を通じて本発明を説明するが、特許請求の範囲に係る発明を以下の実施形態に限定するものではない。また、実施形態で説明する構成の全てが課題を解決するための手段として必須であるとは限らない。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described through embodiments of the invention, but the invention according to the scope of claims is not limited to the following embodiments. Moreover, not all the configurations described in the embodiments are essential as means for solving the problems.

図1は、光学式センサ100の外観斜視図である。本実施形態に係る光学式センサ100は、検査対象物であるワークの部分形状の有無や特定箇所までの距離等を検出するセンサであり、例えば工場の製造ラインなどに設置されて利用される。光学式センサ100は、検出光L1をワークへ向けて投光し、ワークで反射して戻ってくる検出光L2を受光する。以下に説明する光学式センサ100は、特に検出光の往復時間を計測することにより距離情報を検出するToFセンサである。光学式センサ100は、検出光L2を受光できない場合にはワークが検出されない旨の未検出情報を出力し、検出光L2を受光できた場合には距離情報を出力する。 FIG. 1 is an external perspective view of an optical sensor 100. FIG. The optical sensor 100 according to the present embodiment is a sensor that detects the presence or absence of a partial shape of a workpiece to be inspected, the distance to a specific location, and the like, and is installed and used in a manufacturing line of a factory, for example. The optical sensor 100 projects detection light L1 toward the work and receives detection light L2 that is reflected back from the work. The optical sensor 100 described below is a ToF sensor that detects distance information by measuring the round trip time of detection light. The optical sensor 100 outputs undetected information indicating that the workpiece is not detected when the detection light L2 cannot be received, and outputs distance information when the detection light L2 is received.

検出光L1は、筐体101の一面に設けられた透過窓102を透過して投光される。詳細については後述するが、光学式センサ100は、投光素子から投光された検出光L1の投光方向を調整する光軸調整素子を備える。光軸調整素子は、所定ピッチで直交する2軸方向(図示するX軸方向とY軸方向)へ、検出光L1の光軸を偏向することができる。具体的には、図示するように偏向可能範囲R内のドットで示す任意の方向(xm,yn)へ検出光L1の光軸を一致させることができる。 The detection light L 1 is transmitted through a transmission window 102 provided on one surface of the housing 101 and projected. Although the details will be described later, the optical sensor 100 includes an optical axis adjusting element that adjusts the projection direction of the detection light L 1 projected from the light projecting element. The optical axis adjustment element can deflect the optical axis of the detection light L1 in two orthogonal directions (the X-axis direction and the Y-axis direction in the drawing) at a predetermined pitch. Specifically, the optical axis of the detection light L 1 can be aligned in any direction (x m , y n ) indicated by dots within the deflectable range R as shown.

また、光学式センサ100は、検出光L1の投光方向に沿ってDnからDfの範囲で距離を検出することができる。すなわち、図の網点で示す範囲が検出可能範囲Vであり、光学式センサ100は、この範囲にワークが存在しなければ未検出情報を出力し、この範囲にワークが存在すれば検出光L1の反射点までの距離情報を出力する。 Further, the optical sensor 100 can detect the distance in the range from Dn to Df along the projection direction of the detection light L1. That is, the range indicated by halftone dots in the figure is the detectable range V. If the work does not exist in this range, the optical sensor 100 outputs non-detection information. Output the distance information to the 1 reflection point.

筐体101の一面には操作ボタン150が設けられており、操作ボタン150は、ユーザからの操作を受け付ける。また、筐体101の一面には表示パネル160が設けられており、表示パネル160は、後述するように、確定した検査方向等を表示する。ケーブル103は、外部機器であるPLCやPCと接続され、出力信号をこれらの機器へ伝送する。なお、図示するようにX軸、Y軸及びZ軸を定める。以後のいくつかの図面においても図1と同様の座標軸を併記することにより、それぞれの図面が表す構成要素の向きを示す。 An operation button 150 is provided on one surface of the housing 101, and the operation button 150 receives an operation from the user. A display panel 160 is provided on one surface of the housing 101, and the display panel 160 displays the determined inspection direction and the like, as will be described later. A cable 103 is connected to a PLC or a PC as external devices, and transmits output signals to these devices. The X-axis, Y-axis and Z-axis are defined as shown in the figure. In the following drawings, the same coordinate axes as in FIG. 1 are used to indicate the directions of the constituent elements shown in each drawing.

図2は、光学式センサ100のシステム構成図である。光学式センサ100の制御システムは、主に、制御部110、投光素子120、光軸調整素子130、受光素子140、操作ボタン150、表示パネル160、入出力IF170、記憶部180によって構成される。制御部110は、光学式センサ100の制御とプログラムの実行処理を行うプロセッサ(CPU:Central Processing Unit)である。制御部110は、ASIC(Application Specific Integrated Circuit)等の演算処理チップや、各種電気信号を処理する処理回路を含む構成であってもよい。制御部110は、記憶部180から読み出される、あるいは入出力IF170を介して外部機器から与えられる制御プログラムを実行して、ワークの検出処理に関する様々な処理を実行する。 FIG. 2 is a system configuration diagram of the optical sensor 100. As shown in FIG. The control system of the optical sensor 100 is mainly composed of a control section 110, a light emitting element 120, an optical axis adjusting element 130, a light receiving element 140, an operation button 150, a display panel 160, an input/output IF 170, and a storage section 180. . The control unit 110 is a processor (CPU: Central Processing Unit) that controls the optical sensor 100 and executes a program. The control unit 110 may be configured to include an arithmetic processing chip such as an ASIC (Application Specific Integrated Circuit) or a processing circuit that processes various electrical signals. The control unit 110 executes a control program read from the storage unit 180 or given from an external device via the input/output IF 170 to perform various processes related to workpiece detection processing.

投光素子120は、可視光である波長帯域のレーザ光(例えば635nm~680nmの赤色光)を出射するレーザダイオードであり、制御部110の制御により特定の周波数(例えば12MHz)に変調された検出光L1を出射する。なお、投光素子120は、コヒーレント光を出射するレーザダイオードに限らず、LEDなどのインコヒーレント光を出射する素子を用いてもよい。 The light projecting element 120 is a laser diode that emits laser light in a wavelength band of visible light (eg, red light of 635 nm to 680 nm), and is controlled by the control unit 110 to a specific frequency (eg, 12 MHz) for detection. Light L 1 is emitted. Note that the light projecting element 120 is not limited to a laser diode that emits coherent light, and an element that emits incoherent light, such as an LED, may be used.

光軸調整素子130は、上述のように、投光素子120から投光された検出光L1の光軸を調整する素子である。本実施形態においては、光軸調整素子130として、液晶セルに電圧を加えてオン/オフを制御することにより偏向を実現する液晶デバイスを利用する。液晶デバイスは、具体的には、液晶セルが配列された液晶回折格子(例えば、会誌「光学」30巻1号:「液晶光学デバイスの研究動向」第6頁)を積層し、入力された制御信号に応じて入射されたレーザ光の偏向量を制御できるように液晶セルに印加する電圧を制御する制御回路を組み込んだデバイスである。また、光軸調整素子130としては、他にも、MEMSミラー、光フェーズドアレイ、電気光学結晶などを利用することができる。 The optical axis adjustment element 130 is an element that adjusts the optical axis of the detection light L 1 projected from the light projecting element 120, as described above. In this embodiment, as the optical axis adjustment element 130, a liquid crystal device is used that realizes deflection by applying a voltage to a liquid crystal cell to control on/off. Specifically, the liquid crystal device is formed by laminating a liquid crystal diffraction grating in which liquid crystal cells are arranged (for example, the journal "Optics" Vol. 30 No. 1: "Research Trends in Liquid Crystal Optical Devices" p. This device incorporates a control circuit that controls the voltage applied to the liquid crystal cell so that the amount of deflection of the incident laser light can be controlled according to the signal. In addition, as the optical axis adjustment element 130, a MEMS mirror, an optical phased array, an electro-optic crystal, or the like can be used.

受光素子140は、二次元状に配列された光電変換画素を有する例えばCMOSセンサであり、受光した検出光L2を電気信号に変換して制御部110へ送信する。なお、図においてはワークへ向けて投光される検出光L1と、受光素子140で受光する検出光L2の光路を分けて示すが、実際には図1に示すように同一光路であり、例えばダイクロイックミラーを用いて受光素子140へ向かう検出光L2の光路を検出光L1の光路から分離する。また、光軸調整素子130は、投光素子120及び受光素子140と共に筐体101内に収容されているので、筐体101の外に検出光L1の光軸を調整する可動部を設ける必要がない。したがって、筐体101を例えば製造ラインに付随する構造物に直接的に固定できるので、光学式センサ100の設置がしやすく、また作業者による不用意な接触等の影響も受けにくい。 The light receiving element 140 is, for example, a CMOS sensor having photoelectric conversion pixels arranged two-dimensionally, converts the received detection light L 2 into an electric signal, and transmits the electric signal to the control unit 110 . In the drawing, the optical paths of the detection light L1 projected toward the workpiece and the detection light L2 received by the light receiving element 140 are shown separately, but in reality they are the same optical path as shown in FIG . For example, a dichroic mirror is used to separate the optical path of the detection light L2 toward the light receiving element 140 from the optical path of the detection light L1. In addition, since the optical axis adjustment element 130 is accommodated in the housing 101 together with the light emitting element 120 and the light receiving element 140, it is necessary to provide a movable portion outside the housing 101 for adjusting the optical axis of the detection light L1. There is no Therefore, since the housing 101 can be directly fixed to a structure associated with a manufacturing line, for example, the optical sensor 100 can be easily installed and is less susceptible to accidental contact by an operator.

操作ボタン150は、ユーザからの指定を受け付ける操作部材であり、例えば、UPボタンとDOWNボタン、十字ボタンなどが含まれていてもよい。操作ボタン150は、制御部110と協働して、光学式センサ100の各種項目の入力を受け付ける受付部としての機能を担う。なお、操作部材としては操作ボタンに限らず、タッチセンサなど他のデバイスであってもよい。 The operation button 150 is an operation member that receives designation from the user, and may include, for example, an UP button, a DOWN button, a cross button, and the like. The operation button 150 cooperates with the control unit 110 and functions as a reception unit that receives input of various items of the optical sensor 100 . Note that the operation member is not limited to the operation button, and may be another device such as a touch sensor.

表示パネル160は、例えば液晶パネルであり、光学式センサ100の設定状態、検出結果としての距離情報や未検出情報などが表示される。なお、光学式センサ100の設定状態を示すデバイスとしては、LEDなどが設けられていてもよい。入出力IF170は、ケーブル103を介して外部機器と情報の授受を行うためのインタフェースであり、例えばEthernet(登録商標)ユニットやLANユニットを含む。なお、入出力IF170としては、ケーブル103を介した有線接続に限らず、無線LANやBluetooth(登録商標)に対応する無線の接続ユニットを含んでもよい。 The display panel 160 is, for example, a liquid crystal panel, and displays the setting state of the optical sensor 100, distance information as detection results, non-detection information, and the like. As a device indicating the setting state of the optical sensor 100, an LED or the like may be provided. The input/output IF 170 is an interface for exchanging information with an external device via the cable 103, and includes, for example, an Ethernet (registered trademark) unit and a LAN unit. Note that the input/output IF 170 is not limited to a wired connection via the cable 103, and may include a wireless connection unit compatible with a wireless LAN or Bluetooth (registered trademark).

制御部110は、外部の操作盤に対してユーザが行った操作や外部機器であるPLCが出力する制御信号を、入出力IF170を介して受け付けることもできる。例えば、ユーザが操作盤を操作してワークの検査を開始する指示を行う場合には、入出力IF170は、制御部110と協働して検査開始の指示を受け付ける受付部としての機能を担う。 The control unit 110 can also receive, via the input/output IF 170, an operation performed by a user on an external operation panel and a control signal output by a PLC, which is an external device. For example, when the user operates the operation panel to issue an instruction to start inspecting a workpiece, the input/output IF 170 functions as a reception unit that cooperates with the control unit 110 to receive an instruction to start inspection.

記憶部180は、不揮発性の記憶媒体であり、例えばフラッシュメモリによって構成されている。記憶部180は、光学式センサ100の制御や処理を実行するプログラムの他にも、制御や演算に用いられる様々なパラメータ値、関数、ルックアップテーブル等を記憶し得る。また、記憶部180は、調整モードの開始時に検出された初期検出距離や、検出光L1の確定された検査方向を記憶する。 The storage unit 180 is a non-volatile storage medium, and is configured by flash memory, for example. The storage unit 180 can store various parameter values, functions, lookup tables, etc. used for control and calculation, in addition to programs for executing control and processing of the optical sensor 100 . The storage unit 180 also stores the initial detection distance detected at the start of the adjustment mode and the determined inspection direction of the detection light L1.

制御部110は、制御プログラムが指示する処理に応じて様々な演算を実行する機能演算部としての役割も担う。制御部110は、投光調整部111、距離演算部112として機能し得る。投光調整部111は、光軸調整素子130を駆動することにより検出光L1を予め設定された複数の特定方向へ順次投光して得た検出結果のうち、検出光L1が遮られたと評価される検出結果が得られた特定方向を指示方向と認識し、検査ワークの検査のために投光する検出光L1の投光方向を認識した当該指示方向に基づいて調整する。また、検査ワークの検査時には、そのように調整され確定された検査方向へ検出光L1が投光されるように光軸調整素子130を駆動する。距離演算部112は、投光した検出光L1と、受光した検出光L2の時間差を例えば両者の位相差を用いて演算し、予備ワークあるいは検査ワークまでの距離に変換する。制御部110は、距離演算部112の演算結果をデータ構造化し、距離情報として出力することができる。あるいは、受光素子140が検出光L2を受光しない場合には、規定された未検出情報を出力することができる。 The control unit 110 also serves as a functional calculation unit that executes various calculations according to the processing instructed by the control program. The control unit 110 can function as a light projection adjustment unit 111 and a distance calculation unit 112 . The light projection adjustment unit 111 drives the optical axis adjustment element 130 to sequentially project the detection light L 1 in a plurality of predetermined specific directions. A specific direction in which a detection result evaluated to be obtained is recognized as a pointing direction, and the projection direction of the detection light L1 projected for inspection of the inspection workpiece is adjusted based on the recognized pointing direction. Further, when inspecting a work to be inspected, the optical axis adjustment element 130 is driven so that the detection light L1 is projected in the inspection direction thus adjusted and determined. The distance calculation unit 112 calculates the time difference between the projected detection light L1 and the received detection light L2 using, for example, the phase difference between the two , and converts it into the distance to the preliminary work or inspection work. The control unit 110 can data-structure the calculation result of the distance calculation unit 112 and output it as distance information. Alternatively, when the light receiving element 140 does not receive the detection light L2, it is possible to output prescribed non - detection information.

ユーザは、操作ボタン150等を介して光学式センサ100を調整モードに切り替え、検出光L1が向けられるべき検査方向を確定させるための調整作業を行う。以下にその手順を具体的に説明する。 The user switches the optical sensor 100 to the adjustment mode via the operation button 150 or the like, and performs adjustment work for determining the inspection direction to which the detection light L1 should be directed. The procedure will be specifically described below.

図3は、予備ワーク210に対する指示投光IU、IR、ID、ILと調整投光LTの投光を説明する図である。光学式センサ100は、製造ライン300上の検査位置辺りに向けて、製造ラインに付随する構造物に固定されている。ユーザは、予定している検査対象物と同一種類の予備対象物である予備ワーク210を、ターゲットとする検査箇所211が検査位置辺りに位置するように、製造ライン300上に載置する。ここで、検査箇所211は検出光L1の偏向可能範囲に含まれていればよく、ユーザは、それ程の注意を払うことなくおよその場所に予備ワーク210を製造ライン300上に載置すればよい。 FIG. 3 is a diagram for explaining projection of instruction lights IU , IR , ID , and IL and adjustment light LT onto the preliminary workpiece 210. As shown in FIG. The optical sensor 100 is fixed to a structure associated with the production line toward an inspection position on the production line 300 . The user places a preliminary workpiece 210, which is a preliminary object of the same type as the intended inspection object, on the production line 300 so that the target inspection point 211 is positioned around the inspection position. Here, the inspection point 211 only needs to be included in the deflectable range of the detection light L 1 , and the user can place the preliminary work 210 on the production line 300 at an approximate location without paying much attention. good.

なお、予備ワーク210は、検査箇所211が良好と判定される状態の、基準品であることが望ましい。本実施例においては、製造ライン300上を順番に流されるそれぞれのワークに六角ネジが良好に締結されていることを検査する場合を想定する。この場合、検査箇所211は六角ネジのネジ頭であり、予備ワーク210においても六角ネジが正しく締結されている状態であることが望ましい。 It is desirable that the spare workpiece 210 is a reference product in which the inspection point 211 is determined to be good. In this embodiment, it is assumed that it is inspected whether the hexagonal screws are properly fastened to the works that are successively passed through the manufacturing line 300 . In this case, it is desirable that the inspection point 211 is the screw head of the hexagonal screw, and that the hexagonal screw is correctly tightened in the preliminary work 210 as well.

このように光学式センサ100と予備ワーク210が設置された状態で、ユーザは、操作ボタン150等を操作して光学式センサ100を調整モードに切り替える。光学式センサ100は、調整モードに切り替えられると、指示投光IU、IR、ID、ILと調整投光LTを順次かつ繰り返し実行する。調整投光LTは、検査対象物を検査する検出光L1の投光方向(検査方向)を確定するための、仮の検査方向へ向けて投光された調整対象光である。調整投光LTは、調整モード開始時においては、例えば偏向可能範囲Rの中心に向けられる。 With the optical sensor 100 and the spare workpiece 210 thus installed, the user operates the operation button 150 or the like to switch the optical sensor 100 to the adjustment mode. When the optical sensor 100 is switched to the adjustment mode, the optical sensor 100 sequentially and repeatedly executes the instruction light projections IU , IR , ID , IL and the adjustment light projection LT . The adjustment projection light L T is adjustment target light that is projected in a temporary inspection direction for determining the projection direction (inspection direction) of the detection light L 1 for inspecting the inspection object. The adjustment projection light LT is directed to the center of the deflectable range R, for example, at the start of the adjustment mode.

指示投光IU、IR、ID、ILは、ユーザから調整投光LTの投光方向を調整する指示を受け付けるために、それぞれ偏向可能範囲Rの四方へ向けて投光された指示検出光である。本実施例においては、図示するように、指示投光IUは偏向可能範囲Rの境界上辺の中点に、指示投光IRは偏向可能範囲Rの境界右辺の中点に、指示投光IDは偏向可能範囲Rの境界下辺の中点に、指示投光ILは偏向可能範囲Rの境界左辺の中点にそれぞれ向けて投光される。すなわち、本実施例においては、指示投光を投光する複数の特定方向として、偏向可能範囲Rの中心に対して、調整可能な範囲の端となる上下左右の4方向が設定されている。なお、複数の特定方向はこれに限らず、例えば偏向可能範囲Rの境界の四隅の方向を設定してもよいし、これに本実施例の4方向を加えた8方向を設定してもよい。 The instruction lights IU , IR, ID , and IL are projected toward four directions of the deflectable range R , respectively, in order to receive an instruction from the user to adjust the projection direction of the adjustment light LT . It is an indication detection light. In this embodiment, as shown in the figure, the instruction projection light IU is positioned at the midpoint of the upper side of the boundary of the deflectable range R , and the instruction projection light IR is positioned at the midpoint of the right side of the boundary of the deflectable range R. I D is projected toward the middle point of the lower side of the boundary of the deflectable range R, and the instruction light IL is projected toward the middle point of the left side of the boundary of the deflectable range R, respectively. That is, in this embodiment, as a plurality of specific directions in which the instruction light is projected, the four directions of up, down, left, and right, which are the ends of the adjustable range with respect to the center of the deflectable range R, are set. The plurality of specific directions is not limited to this. For example, directions at the four corners of the boundary of the deflectable range R may be set, or eight directions may be set by adding the four directions of the present embodiment. .

投光調整部111は、投光素子120から発出された検出光L1を順次偏向して、指示投光IU→指示投光IR→指示投光ID→指示投光IL→調整投光LTを1サイクルとする投光を繰り返す。具体的には、それぞれの投光が例えば0.01秒継続するように、順次切り替える。検出光L1は可視光であるので、ユーザは、これらの投光が予備ワーク210上に形成するスポットSPU、SPR、SPD、SPL、SPTを視認することができる。なお、調整モードの開始時においては、スポットSPTがスポットSPU、SPR、SPD、SPLに囲まれた内部、特に囲まれた内部の中心に位置するように、調整投光LTの投光方向が調整されるとよい。このように調整されると、ユーザは、指示投光IU、IR、ID、ILと調整投光LTの役割を直感的に把握することができ、また、その後の調整によってスポットSPTが移動されても、調整投光LTの偏向量や偏向方向を容易に把握することができる。 The light projection adjustment unit 111 sequentially deflects the detection light L 1 emitted from the light projecting element 120 to perform instruction light projection I U →instruction light projection I R →instruction light projection I D →instruction light projection IL →adjustment. Light projection is repeated with light projection LT as one cycle. Specifically, the light is sequentially switched so that each projection continues for 0.01 seconds, for example. Since the detection light L 1 is visible light, the user can visually recognize the spots S U , S R , SP D , S L , and S T formed on the preliminary work 210 by these light projections. At the start of the adjustment mode, the adjusted projection light L T is arranged such that the spot S T is positioned in the interior surrounded by the spots S U , S R , SP D and S L , particularly at the center of the interior surrounded. is preferably adjusted. When adjusted in this way, the user can intuitively grasp the roles of the instruction projection lights IU , IR , ID , and IL and the adjustment projection lights LT , and furthermore, the subsequent adjustment allows the user to understand the spot Even if SP T is moved, the deflection amount and deflection direction of the adjustment projected light L T can be easily grasped.

ここで、投光調整部111は、調整投光LTのスポットSPTと指示投光IU、IR、ID、ILのスポットSPU、SPR、SPD、SPLが区別されるように、調整投光LTと指示投光IU、IR、ID、ILの投光の態様を異ならせる。具体的には、制御部110と協働して投光素子120の投光を制御し、調整投光LTに対して発光強度を上げたり、点滅させたりすることができる。このように投光の態様を異ならせることにより、ユーザは、一つの投光素子120から投光される検出光L1でありながら、それぞれの投光の役割を容易に認識することができる。 Here, the light projection adjustment unit 111 distinguishes between the spot SPT of the adjusted projection light LT and the spots SPU , SPR , SPD, and SPL of the instruction light projections IU , IR , ID , and IL . As shown, the modes of projection of adjustment light LT and instruction light IU , IR , ID , and IL are made different. Specifically, it is possible to cooperate with the control unit 110 to control the light projection of the light projecting element 120 to increase the emission intensity with respect to the adjusted projection light L T or to blink the light. By making the modes of light projection different in this way, the user can easily recognize the roles of the respective light projections even though the detection light L 1 is projected from one light projection element 120 .

投光調整部111は、調整モードが開始されると、開始時に実行された指示投光IU、IR、ID、ILのそれぞれに対する距離を距離演算部112に演算させる。投光調整部111は、これらの演算結果を初期検出距離DU、DR、DD、DLとして記憶部180に記憶する。 When the adjustment mode is started, the projection adjustment unit 111 causes the distance calculation unit 112 to calculate the distances to each of the instruction projections IU , IR , ID , and IL executed at the start. The projection adjustment unit 111 stores these calculation results in the storage unit 180 as the initial detection distances D U , D R , D D and D L .

図4は、調整投光LTを右方向へ移動させる場合の調整方法を説明する図である。上述のように調整モードが開始されると、調整モードが終了するまで、投光調整部111は、指示投光IU→指示投光IR→指示投光ID→指示投光IL→調整投光LTの投光を繰り返す。距離演算部112は、指示投光IU、IR、ID、ILに対する検出距離をそれぞれの投光に同期して算出する。この状態でユーザが例えば図示するように人差指を指示投光IRの光路中に突き出すと、スポットSPRはユーザの人差指上に形成され、指示投光IRは人差指に遮られ、それより後方(破線で示す)へは進行しない。距離演算部112は、指示投光IRについて、人差指までの距離DR’を算出する。 FIG. 4 is a diagram for explaining an adjustment method when moving the adjustment projection light LT to the right. When the adjustment mode is started as described above, until the adjustment mode ends, the light projection adjustment unit 111 performs the command projection IU → command light projection I R → command light projection I D → command light projection IL → The projection of the adjustment projection light LT is repeated. The distance calculation unit 112 calculates the detection distances for the command projection lights IU , IR , ID , and IL in synchronization with the respective light projections. In this state, for example, when the user sticks his or her index finger into the optical path of the projection light I R as shown in the figure, the spot SP R is formed on the index finger of the user, and the projection light I R is blocked by the index finger, and is positioned behind it. (indicated by the dashed line). The distance calculator 112 calculates the distance D R ' to the index finger with respect to the pointing light I R .

算出結果が投光調整部111へ引き渡されると、投光調整部111は、初期検出距離DRとの比較から、指示投光IRが遮られたと評価する。指示投光IRは偏向可能範囲Rの中心に対して右側へ向けて投光されたものなので、投光調整部111は、その評価結果から、調整投光LTをその時点における投光方向から右側へ、予め設定された偏向量だけ偏向させる。ユーザが人差指を指示投光IRの光路中にしばらくの間突き出しておくと、調整投光LTは、徐々に右側へ偏向され、やがて検査箇所211の上方まで到達する。ユーザは、タイミングを見計らって、人差指を指示投光IRの光路から退避させる。 When the calculation result is handed over to the light projection adjustment unit 111, the light projection adjustment unit 111 evaluates that the instruction light projection I R is blocked based on the comparison with the initial detection distance D R . Since the command projection light I R is projected toward the right side with respect to the center of the deflectable range R, the projection adjustment unit 111, based on the evaluation result, sets the adjusted projection light LT to the projection direction at that time. to the right by a preset amount of deflection. When the user sticks his or her index finger into the optical path of the instruction light I R for a while, the adjustment light L T is gradually deflected to the right and eventually reaches above the inspection point 211 . The user withdraws the index finger from the optical path of the instruction light IR at the right timing.

図5は、調整投光LTを下方向へ移動させる場合の調整方法を説明する図である。図4に続いて、ユーザが例えば図示するように人差指を指示投光IDの光路中に突き出すと、スポットSPDはユーザの人差指上に形成され、距離演算部112は、指示投光IDについて、人差指までの距離DD’を算出する。 FIG. 5 is a diagram for explaining an adjustment method for moving the adjustment projection light LT downward. Continuing from FIG. 4, for example, when the user sticks his or her index finger into the optical path of the instruction light ID as shown in the figure, the spot SP D is formed on the user's index finger, and the distance calculation unit 112 calculates the instruction light ID , the distance D D ' to the index finger is calculated.

算出結果が投光調整部111へ引き渡されると、投光調整部111は、初期検出距離DDとの比較から、指示投光IDが遮られたと評価する。指示投光IDは偏向可能範囲Rの中心に対して下側へ向けて投光されたものなので、投光調整部111は、その評価結果から、調整投光LTをその時点における投光方向から下側へ、予め設定された偏向量だけ偏向させる。ユーザが人差指を指示投光IDの光路中にしばらくの間突き出しておくと、調整投光LTは、徐々に下側へ偏向され、やがて検査箇所211まで到達する。ユーザは、タイミングを見計らって、人差指を指示投光IDの光路から退避させる。 When the calculation result is handed over to the light projection adjustment unit 111, the light projection adjustment unit 111 evaluates that the instruction light projection I D has been blocked from comparison with the initial detection distance D D . Since the command projection light I D is projected downward with respect to the center of the deflectable range R, the projection adjustment unit 111 determines the adjusted projection light L T from the evaluation result as the projected light at that time. The direction is deflected downward by a preset amount of deflection. When the user sticks his or her index finger into the optical path of the instruction light ID for a while, the adjustment light L T is gradually deflected downward and eventually reaches the inspection point 211 . The user withdraws the index finger from the optical path of the instruction light ID at the right timing.

図6は、調整投光LTの投光方向を検査方向に確定する確定方法を説明する図である。ユーザは、上述のように調整投光LTを検査箇所211まで到達させたら、その投光方向を検査方向として確定させる。具体的には、例えば図示するように操作ボタン150のうちの確定ボタンを押下して確定させる。その時点における調整投光LTの投光方向が検査方向として確定されると、投光調整部111は、その検査方向示す方向座標(xT,yT)を記憶部180に記憶する。投光調整部111は、調整投光LTの投光の態様とは異なる態様で確定された検査投光LCを一定時間行う。具体的には、制御部110と協働して投光素子120の投光を制御し、調整投光LTに対して発光強度を上げたり、点滅させたりすることができる。これにより、検査箇所211には視認性の高いスポットSPCが形成され、ユーザは検査が実行される箇所を確認することができる。このように検査方向が確定されると、ユーザは、光学式センサ100から比較的遠くの検出対象物を検出する場合であっても、検出光のスポットを確認しつつ取付器具を繰り返し緩めたり締め付けたりするといった煩雑な作業を省くことができる。 FIG. 6 is a diagram for explaining a determination method for determining the projection direction of the adjustment projection light LT to be the inspection direction. After the adjusted projection light L T reaches the inspection point 211 as described above, the user determines the projection direction as the inspection direction. Specifically, for example, as shown in the figure, the confirm button of the operation buttons 150 is pressed to confirm. When the projection direction of the adjustment projection light L T at that time is determined as the inspection direction, the projection adjustment unit 111 stores the direction coordinates (x T , y T ) indicating the inspection direction in the storage unit 180 . The light projection adjustment unit 111 performs the determined inspection light L C for a certain period of time in a mode different from the light projection mode of the adjustment light L T . Specifically, it is possible to cooperate with the control unit 110 to control the light projection of the light projecting element 120 to increase the emission intensity with respect to the adjusted projection light L T or to blink the light. As a result, a highly visible spot SP C is formed at the inspection location 211, and the user can confirm the inspection location. Once the inspection direction is determined in this way, the user can repeatedly loosen or tighten the mounting device while checking the spot of the detection light even when detecting a detection target relatively far from the optical sensor 100 . It is possible to omit complicated work such as

図7は、検査対象物である検査ワーク290を検査する様子を示す図である。上述のように検査方向が確定すると、ユーザは、予備ワーク210を取り除き、対象となる検査ワーク290が順次流れるように製造ライン300を稼働する。投光調整部111は、検査開始の指示を受け付けると、記憶部180に記憶された方向座標(xT,yT)を読み出して検査投光LCの投光方向をその方向へ固定する。制御部110は、検査ワーク290が製造ライン300上の規定位置に到達するたびに検査投光LCを行って検出処理を実行させ、その検出結果を外部機器へ出力する。 FIG. 7 is a diagram showing how an inspection workpiece 290, which is an object to be inspected, is inspected. After the inspection direction is determined as described above, the user removes the spare work 210 and operates the manufacturing line 300 so that the target inspection works 290 flow sequentially. Upon receiving the inspection start instruction, the light projection adjustment unit 111 reads the direction coordinates (x T , y T ) stored in the storage unit 180 and fixes the projection direction of the inspection light L C to that direction. The control unit 110 emits the inspection light LC every time the workpiece 290 to be inspected reaches a specified position on the production line 300, causes the detection process to be executed, and outputs the detection result to an external device.

ここでは、単純に検査箇所221の検出距離を検出結果として出力する場合について説明する。図示するように、ある検査ワーク290aにおいて六角ネジは正しく締結されており、光学式センサ100は、検査箇所291aにおける検出距離として距離Daを外部機器へ出力する。外部機器は、距離Daが許容範囲に含まれることを確認して「合格」と判定する。一方、次の検査ワーク290bにおいて六角ネジは締結が不十分で浮いており、光学式センサ100は、検査箇所291bにおける検出距離として距離Dbを外部機器へ出力する。外部機器は、距離Dbが許容範囲に含まれないことを確認して「不合格」と判定する。このようにして、光学式センサ100を用いて検査ワーク290の良/不良を判定することができる。なお、合格/不合格の判定を光学式センサ100が行い、その結果を外部機器へ出力するようにしてもよい。 Here, a case of simply outputting the detection distance of the inspection point 221 as the detection result will be described. As shown in the figure, the hexagonal screw is correctly tightened in a certain workpiece 290a to be inspected, and the optical sensor 100 outputs the distance D a to the external device as the detected distance at the inspection point 291a. The external device confirms that the distance D a is within the allowable range and judges it as "accepted". On the other hand, the hexagon screw is floating due to insufficient tightening of the next workpiece 290b to be inspected, and the optical sensor 100 outputs the distance D b to the external device as the detection distance at the inspection point 291b. The external device confirms that the distance D b is not included in the allowable range, and determines "fail". In this manner, the optical sensor 100 can be used to determine whether the workpiece 290 to be inspected is good or bad. The optical sensor 100 may make pass/fail judgment and output the result to an external device.

次に、いくつかの変形例について説明する。図8は、1つ目の変形例として、対象物である予備ワーク220の形状に応じて指示投光の投光方向が自動調整される様子を示す図である。 Next, some modifications will be described. FIG. 8 is a diagram showing, as a first modified example, how the projection direction of the instruction light is automatically adjusted according to the shape of the preliminary work 220 that is the object.

図3から図6を用いて説明した実施例においては、指示投光IU、IR、ID、ILの投光方向は、偏向可能範囲Rの端(境界)に設定されていた。しかし、対象物の形状によっては指示投光が投光された箇所に反射面が存在せず、スポットを形成できない場合がある。そのような場合は、受光素子140は反射光である検出光L2を検出できず、距離演算部112は距離不算出の結果を出力する。また、ユーザはいずれの方向へ指示投光が行われているのか視認することができず、そのような指示投光を遮ることも難しい。 In the embodiments described with reference to FIGS. 3 to 6, the projection directions of the instruction lights IU , IR, ID , and IL are set at the ends (boundaries) of the deflectable range R. FIG. However, depending on the shape of the object, there may be no reflective surface at the location where the pointing light is projected, making it impossible to form a spot. In such a case, the light receiving element 140 cannot detect the detection light L2, which is the reflected light, and the distance calculation section 112 outputs the result of distance non-calculation. In addition, the user cannot visually recognize in which direction the instructional light projection is being performed, and it is difficult to block such instructional light projection.

そこで、投光調整部111は、距離不算出の結果であった指示投光に対して、その投光方向を偏向可能範囲Rの内側へ徐々に移動させる調整を実行する。具体的には、例えば図示するように初期の指示投光IUに対して距離不算出の結果を得た場合には、投光調整部111は、指示投光IUを予め設定された偏向量だけ下方へ偏向させる。この場合、指示投光IUにとっての下方は、偏向可能範囲Rの中心方向である。偏向させた後も再び距離不算出の結果を得た場合には、更に指示投光IUを予め設定された偏向量だけ下方へ偏向させる。このような処理を繰り返し、予備ワーク210上にスポットSPUが形成され、距離検出に成功した時点で、指示投光IUの投光方向の調整を終了する。 Therefore, the light projection adjustment unit 111 performs adjustment to gradually move the light projection direction toward the inside of the deflectable range R for the instructed light projection for which the distance was not calculated. Specifically, for example, as shown in the figure, when a result of distance non-calculation is obtained for the initial instruction light projection IU , the light projection adjustment unit 111 causes the instruction light projection IU to be deflected by the preset deflection. Deflect downward by the amount. In this case, the downward direction for the pointing light IU is the center direction of the deflectable range R. As shown in FIG. If the distance cannot be calculated again after the deflection, the instruction projection light IU is further deflected downward by a preset deflection amount. Such processing is repeated until the spot S U is formed on the preliminary work 210 and the adjustment of the projection direction of the instruction light I U is finished when the distance detection is successful.

このようにスポットSPUが予備ワーク210上に形成されれば、距離演算部112は初期検出距離DUを算出することができ、ユーザは指示投光IUの光路を認識することができる。指示投光IR、ID、ILについても同様に、距離不算出の結果を得た場合には、その投光方向を偏向可能範囲Rの中心方向へ向かって徐々に偏向することにより自動調整を実行する。 If the spot S U is formed on the preliminary work 210 in this way, the distance calculator 112 can calculate the initial detection distance D U and the user can recognize the optical path of the instruction light I U. Similarly, when the distance is not calculated for the instruction lights I R , I D , and IL, the light projection direction is gradually deflected toward the center of the deflectable range R, thereby automatically perform reconciliation.

なお、偏向させる方向は偏向可能範囲Rの中心方向でなくてもよい。また、それぞれの指示投光が上下左右の相対関係を保って予備ワーク210上にスポットを形成するように、距離不算出の結果を得た指示投光以外の指示投光も併せて偏向させてもよい。このように自動調整を実行すれば、いずれの指示投光も予備ワーク210上にスポットを形成することができるので、ユーザは、それぞれの指示投光の光路を発見しやすく、方向指示を与えやすい。 It should be noted that the direction of deflection does not have to be the center direction of the deflectable range R. In addition, the instruction light beams other than the instruction light beams for which the distance calculation result is not obtained are also deflected so that the respective instruction light beams maintain the relative relationship in the vertical and horizontal directions and form a spot on the preliminary work 210 . good too. By executing the automatic adjustment in this way, any pointing light can form a spot on the preliminary work 210, so that the user can easily find the optical path of each pointing light and give direction instructions. .

図9は、2つ目の変形例として、対象物である予備ワーク210の距離に応じて指示投光の投光方向が自動調整される様子を示す図である。図1に示すように、偏向可能範囲Rは、光学式センサ100から遠ざかるにつれて大きくなる。したがって、製造ライン300が光学式センサ100から遠い場合には、対象物に対して偏向可能範囲Rが大きくなり、指示投光の投光方向を偏向可能範囲Rの端(境界)に設定すると、距離不算出となることが多くなる。また、距離が算出できる場合でもそれぞれが形成するスポットの間隔が拡がってしまい、ユーザはそれぞれの光路を遮る動作を行いにくくなってしまう。 FIG. 9 is a diagram showing, as a second modified example, how the projection direction of the instruction light is automatically adjusted according to the distance of the preliminary work 210, which is the object. As shown in FIG. 1, the deflectable range R increases as the distance from the optical sensor 100 increases. Therefore, when the production line 300 is far from the optical sensor 100, the deflectable range R becomes large with respect to the object. The distance cannot be calculated in many cases. Moreover, even if the distance can be calculated, the intervals between the spots formed by the respective spots are widened, making it difficult for the user to perform the operation of blocking the respective optical paths.

そこで、投光調整部111は、指示投光IU、IR、ID、ILの少なくともいずれか又は調整投光LTで検出された予備ワーク210までの距離に基づいてそれぞれの投光方向を調整する。例えば、図示するように調整投光LTが形成するスポットSPTにより距離DPが検出された場合、距離DPに対して予め規定されている大きさに合わせて指示投光枠Sを決定し、指示投光IU、IR、ID、ILのそれぞれの投光方向をこの指示投光枠Sの上下左右の方向に合わせるように調整する。 Therefore, the light projection adjustment unit 111 adjusts each light projection based on the distance to the backup workpiece 210 detected by at least one of the instruction light projections IU , IR , ID , and IL or the adjusted light projection LT . Adjust direction. For example, when the distance D P is detected by the spot SP T formed by the adjusted projection light L T as shown in the figure, the designated projection frame S is determined according to the size predetermined for the distance D P. Then, the projection directions of the instruction lights IU , IR , ID , and IL are adjusted so as to match the directions of the instruction light projection frame S in the vertical and horizontal directions.

このように予備ワーク210の距離に応じて指示投光枠Sを偏向可能範囲Rの内側に設定して指示投光の投光方向を調整すれば、予備ワーク210上にそれぞれのスポットが互いに適度な間隔で形成されることが期待できる。ユーザは、それぞれの光路を遮る動作を行いやすくなる。なお、このように指示投光の投光方向を調整しても距離不算出の結果を得る指示投光が存在する場合には、その指示投光に対して図8の例を適用し、更に投光方向の調整を行ってもよい。 In this manner, if the instruction light projection frame S is set inside the deflectable range R according to the distance of the preliminary work 210 and the direction of projection of the instruction light is adjusted, the respective spots on the preliminary work 210 are appropriately aligned. can be expected to be formed at regular intervals. It becomes easier for the user to perform the operation of blocking each optical path. In addition, when there is instruction light projection for which the result of distance calculation is not calculated even if the projection direction of the instruction light projection is adjusted in this way, the example of FIG. 8 is applied to the instruction light projection, and The light projection direction may be adjusted.

図10は、3つ目の変形例として、指示投光IU、IR、ID、ILに加えて境界投光Pa、Pb、Pc、Pdを行う様子を示す図である。図9の例のように予備ワーク210の距離に応じて指示投光枠Sを偏向可能範囲Rの内側に設定すると、ユーザは、調整投光LTをどの範囲で移動できるか認識しづらくなる。そこで、投光調整部111は、調整投光LTの移動指示を受け付けるための指示投光IU、IR、ID、ILとは別に、調整可能範囲を示すための指示投光境界投光Pa、Pb、Pc、Pdをさらに実行する。 FIG. 10 is a diagram showing a third modified example in which boundary light projections P a , P b , P c , and P d are performed in addition to instruction light projections I U , I R , I D , and I L . be. If the designated light projection frame S is set inside the deflectable range R according to the distance of the preliminary work 210 as in the example of FIG. 9, it becomes difficult for the user to recognize within which range the adjusted projection light LT can be moved. . Therefore, the light projection adjustment unit 111 provides instruction light projection boundaries for indicating the adjustable range separately from the instruction light projection IU , IR , ID , and IL for receiving the movement instruction of the adjustment light projection LT . Light projections P a , P b , P c , P d are further performed.

図示するように、予備ワーク230が比較的大きければ、偏向可能範囲Rの四隅に対して投光される境界投光Pa、Pb、Pc、Pdは、それぞれ予備ワーク230の表面にスポットSPa、SPb、SPc、SPdを形成することができる。ユーザは、このように形成されたスポットSPa、SPb、SPc、SPdを視認することにより、調整投光LTをどの範囲で移動できるかを認識することができる。 As shown in the figure, if the preliminary work 230 is relatively large, the boundary projection lights P a , P b , P c , and P d that are projected toward the four corners of the deflectable range R are projected onto the surface of the preliminary work 230 . Spots SP a , SP b , SP c , SP d can be formed. By visually recognizing the spots SP a , SP b , SP c , and SP d thus formed, the user can recognize the range in which the adjusted projected light LT can be moved.

投光調整部111は、投光素子120から発出された検出光L1を順次偏向して、例えば、指示投光IU→指示投光IR→指示投光ID→指示投光IL→調整投光LT→境界投光Pa→境界投光Pb→境界投光Pc→境界投光Pdを1サイクルとする投光を繰り返す。あるいは、境界投光の頻度を指示投光の頻度の半分にするなど、境界投光の頻度を下げてもよい。また、指示投光に対して、境界投光の発光強度を下げたり点灯時間を短くしたりしてもよい。 The light projection adjustment unit 111 sequentially deflects the detection light L 1 emitted from the light projecting element 120 so that, for example, the instruction light IU →the instruction light I R →the instruction light I D →the instruction light IL →adjustment light L T →boundary light P a →boundary light P b →boundary light P c →boundary light P d is repeated as one cycle. Alternatively, the frequency of boundary light projection may be reduced, for example, by making the frequency of boundary light projection half the frequency of instruction light projection. Further, the emission intensity of the boundary light emission may be lowered or the lighting time may be shortened with respect to the instruction light emission.

このように境界投光を行うと、ユーザは、特に指示投光枠Sを超えて調整投光LTを移動させる場合に調整を行いやすい。例えば図示するように、指示投光枠Sの外側に存在する検査箇所231まで調整投光LTを移動させる場合に都合が良い。 When boundary projection is performed in this way, the user can easily make adjustments when moving the adjustment projection light LT beyond the instruction projection frame S. FIG. For example, as shown in the figure, this is convenient when the adjustment projection light LT is moved to an inspection point 231 existing outside the instruction projection frame S.

図11は、4つ目の変形例として、調整投光LTを移動させる他の指示手法を説明する図である。これまで説明した各実施例においては、ユーザは、指示投光のいずれかを遮ることにより指示方向を認識させたが、4つ目の変形例では、それぞれの指示投光を連続的に遮り、その遮った順番により方向指示を認識させる。図11(A)から図11(C)は、時間の経過に伴って順番にいずれかの指示投光が遮られる様子を示す図である。 FIG. 11 is a diagram for explaining another instruction method for moving the adjustment projection light LT as a fourth modification. In each of the embodiments described so far, the user was made to recognize the pointing direction by blocking one of the projecting light beams, but in the fourth modified example, each of the projecting light beams is continuously blocked, The direction indication is recognized by the order of blocking. FIGS. 11(A) to 11(C) are diagrams showing how one of the instruction light projections is blocked in order as time elapses.

具体的には、ユーザが手のひらを上から下へ振る様子を示し、図11(A)はその初期の段階において指示投光IUを遮っている様子を示す。その後図11(B)に示すように、手のひらは指示投光IUに加えて指示投光IR、ILも遮り、やがて図11(C)に示すように、手のひらは指示投光IDを遮る。なお、図11(C)ではIRも同時に遮られている様子を示す。投光調整部111は、距離演算部112からそのような経時に沿って順次遮られたと評価し得る算出結果を受け取ると、手のひらが上から下へ振られたと認識し、調整投光LTをその時点における投光方向から下側へ、予め設定された偏向量だけ偏向させる。同様に、手のひらが下から上へ振られたと認識した場合には調整投光LTを上側へ、右から左へ振られたと認識した場合には調整投光LTを左側へ、左から右へ振られたと認識した場合には調整投光LTを右側へ予め設定された偏向量だけ偏向させる。 Specifically, it shows how the user shakes his palm from top to bottom, and FIG. 11A shows how the instruction light IU is blocked in the initial stage. After that, as shown in FIG. 11( B ), the palm blocks the projected light I R and IL as well as the projected light I U , and eventually, as shown in FIG. block the Note that FIG. 11C shows a state in which I R is also blocked at the same time. When the light projection adjustment unit 111 receives from the distance calculation unit 112 such a calculation result that can be evaluated as being sequentially blocked over time, it recognizes that the palm has been swung from top to bottom, and adjusts the projection light L T . The light is deflected downward from the light projection direction at that time by a preset deflection amount. Similarly, when it is recognized that the palm is shaken from bottom to top, the adjusted light emission LT is directed upward, and when it is recognized that the palm is shaken from right to left, the adjusted light emission LT is directed to the left and left to right. When it is recognized that it has been swung to the right, it deflects the adjusted projection light LT to the right by a preset amount of deflection.

なお、例えば連続して手のひらを上から下へ振ろうとすると、併せて連続して下から上へ振ることになるので、誤認識を回避するために、投光調整部111は、指示方向の認識を一度行ったら、予め設定された設定時間(例えば1秒)の間、指示方向の認識を停止する。ユーザは、一度手のひらを振って指示方向を認識させたら、指示方向の認識が停止されている間に手のひらを初期位置へ戻す。 For example, if you try to shake your palm continuously from top to bottom, you will also have to shake your palm continuously from bottom to top. is performed once, recognition of the indicated direction is stopped for a preset set time (for example, 1 second). Once the user shakes the palm to recognize the pointing direction, the user returns the palm to the initial position while recognition of the pointing direction is stopped.

図12は、5つ目の変形例として、調整投光LTの投光方向を検査方向に確定する他の確定方法を説明する図である。本変形例は、4つ目の変形例と相性が良いが、これに限らず、これまでの実施例のいずれにも組み合わせることができる。 FIG. 12 is a diagram for explaining another determination method for determining the projection direction of the adjustment projection light LT to be the inspection direction as a fifth modification. This modified example is compatible with the fourth modified example, but is not limited to this, and can be combined with any of the previous embodiments.

上述の図6の例では、調整投光LTを検査箇所211まで到達させたら、ユーザは、その投光方向を検査方向として確定させるために操作ボタン150を操作した。本変形例においては、ユーザは、調整投光LTを検査箇所211まで到達させた後に、図示するように、指示投光IU、IR、ID、ILのすべてを同時に遮ることにより、その投光方向を検査方向として確定させる。 In the example of FIG. 6 described above, after the adjusted projected light L T reaches the inspection point 211, the user operates the operation button 150 to confirm the projected light direction as the inspection direction. In this modification, after the adjustment projection light LT reaches the inspection point 211, as shown in the figure, the user blocks all of the instruction projection lights IU , IR , ID , and IL at the same time. , the light projection direction is determined as the inspection direction.

投光調整部111は、指示投光IU、IR、ID、ILのすべてが遮られたと評価される算出結果を距離演算部112から受け取った場合に、その時点における調整投光LTの投光方向を検査方向に確定する。すなわち、その検査方向示す方向座標(xT,yT)を記憶部180に記憶する。このように方向指示に連続して確定指示を受け付けるようにすれば、ユーザは、確定指示をするために光学式センサ100の操作ボタン150を操作する必要がないので、作業性の向上が期待できる。 When the light projection adjustment unit 111 receives from the distance calculation unit 112 a calculation result in which all of the instructed light projections IU , IR, ID , and IL are blocked, the light projection adjustment unit 111 determines the adjusted projection light L Set the projection direction of T to the inspection direction. That is, the direction coordinates (x T , y T ) indicating the inspection direction are stored in the storage unit 180 . In this way, if the confirmation instruction is accepted following the direction instruction, the user does not need to operate the operation button 150 of the optical sensor 100 to issue the confirmation instruction, so that an improvement in workability can be expected. .

なお、確定指示を検出する手法は、指示投光IU、IR、ID、ILのすべてが同時に遮られたことを検出する手法に限らず、他にも様々な手法を採用し得る。例えば、指示投光IU、IR、ID、ILのうち予め設定された組み合わせの指示投光がいずれも遮られたと検出された場合に、その時点における調整投光LTの投光方向を検査方向に確定してもよい。例えば指示投光IUとIDの組み合わせにおいては、同時に遮られることが偶発的に発生することは稀と考えられるので、このような組み合わせの指示投光が同時に遮られた場合には確定指示と認識してもよい。また、指示投光とは別に、確定指示を受け付けるための確定投光を行うようにしてもよい。確定投光が遮られた場合には、その時点における調整投光LTの投光方向を検査方向に確定する。確定投光は、指示投光の投光方向とは離れた方向へ行うとよい。 It should be noted that the method of detecting the definite indication is not limited to the method of detecting that all of the indication lights IU , IR , ID , and IL are blocked at the same time, and various other methods can be adopted. . For example, when it is detected that all of a preset combination of instruction lights IU , IR , ID , and IL are blocked, the adjustment light LT is emitted at that time. The direction may be determined to be the inspection direction. For example, in the combination of the instruction lights IU and ID , it is considered rare that they are blocked at the same time. can be recognized as Further, apart from the instruction light emission, the confirmation light emission for accepting the confirmation instruction may be performed. When the determined projected light is blocked, the projection direction of the adjusted projected light LT at that time is determined to be the inspection direction. The determined light projection is preferably performed in a direction away from the direction of the instruction light projection.

図13は、6つ目の変形例として、調整投光LTの投光を行うことなく直接的に検査方向を確定する調整手法を説明する図である。これまでに説明した実施例はいずれも、調整投光LTの移動指示を受け付けるために指示投光IU、IR、ID、ILを4方向(あるいはそれ以上)へ向けて投光し、いずれかが遮られたことを検出してその方向へ段階的に偏向させた。本変形例においては、指示投光IMの投光方向を偏向可能範囲Rに規定された格子点のそれぞれに対して設定する。そして、投光調整部111は、それらのうち最も至近で遮られたと評価される検出結果が得られた指示投光IMの投光方向を指示方向と認識し、その指示方向を直ちに検査方向として確定する。 FIG. 13 is a diagram for explaining an adjustment method for directly determining the inspection direction without emitting adjustment light L T as a sixth modification. In any of the embodiments described so far, the instruction lights IU , IR , ID , and IL are projected in four directions (or more) to receive the instruction to move the adjustment light LT . and detected that one of them was blocked and deflected stepwise in that direction. In this modified example, the projection direction of the instruction projection light IM is set for each of the lattice points defined in the deflectable range R. FIG. Then, the light projection adjustment unit 111 recognizes the projection direction of the instruction light IM for which the detection result is evaluated as being the closest and blocked as the instruction direction, and immediately changes the instruction direction to the inspection direction. Determined as

具体的には図13(A)に示すように、投光調整部111は、光軸調整素子130を駆動して、偏向可能範囲Rに設定された格子点の左上から右下まで一筆書きの要領で、検出光L1を順次偏向して投光する。格子点に対するそれぞれの投光を指示投光IMとする。ユーザは、例えば検査箇所211である六角ネジのネジ頭を検査方向にしたい場合には、当該ネジ頭を照射する指示投光IMの一つを他の指示投光IMと比べて最も光学式センサ100に近い場所で遮るように、人差指を突き出す。すると、投光調整部111は、その指示投光IMを指示方向と認識し、検査対象物を検査する検査方向として確定する。 More specifically, as shown in FIG. 13A, the light projection adjustment unit 111 drives the optical axis adjustment element 130 so that the lattice points set in the deflection range R are linearly drawn from the upper left to the lower right. In this manner, the detection light L1 is sequentially deflected and projected. Each projection for the lattice point is designated as the designated projection I M . For example, when the user wants to set the screw head of the hexagonal screw, which is the inspection point 211, in the inspection direction, one of the instruction projection lights IM that irradiates the screw head is the most optical one compared to the other instruction projection lights IM . Stick out your index finger so as to block it near the sensor 100 . Then, the light projection adjustment unit 111 recognizes the instruction projection light IM as the instruction direction, and determines it as the inspection direction for inspecting the inspection object.

図13(B)は、指示投光IMの投光の態様とは異なる態様で、確定された検査投光LCを一定時間行う様子を示す。具体的には、制御部110と協働して投光素子120の投光を制御し、調整投光LTに対して発光強度を上げたり、点滅させたりすることができる。このような調整手法によれば、複数回の指示工程を経て調整投光LTの投光方向を追い込む作業を省くことができるので、より直接的に、かつ短時間に検査方向を確定することができる。 FIG. 13(B) shows how the determined inspection light L C is projected for a certain period of time in a mode different from the light projection mode of the instruction light IM. Specifically, it is possible to cooperate with the control unit 110 to control the light projection of the light projecting element 120 to increase the emission intensity with respect to the adjusted projection light L T or to blink the light. According to such an adjustment method, it is possible to omit the work of adjusting the projection direction of the adjustment projection light LT through a plurality of instruction steps, so that the inspection direction can be determined more directly and in a short time. can be done.

なお、図の例では指示投光IMの投光方向を偏向可能範囲Rに規定された格子点のそれぞれに対して設定したが、指示投光IMの投光方向の設定はこれに限らない。指示投光IMの投光方向は、偏向可能範囲Rの少なくとも一部の範囲を覆うように規定された複数の離散点のそれぞれに対して設定されればよい。 In the illustrated example, the projection direction of the instruction light IM is set for each of the lattice points defined in the deflectable range R, but the setting of the projection direction of the instruction light IM is limited to this. do not have. The projection direction of the instruction light IM may be set for each of a plurality of discrete points defined so as to cover at least a part of the deflectable range R.

次に、図3から図7を用いて説明した実施例を代表例として、制御部110の処理手順について説明する。図14は、制御部110の処理手順を説明するフロー図である。フローは、光学式センサ100が製造ライン300に付随する構造物に固定され、予備ワーク210が製造ライン300上に載置された状態で、調整モードが選択された時点から開始する。 Next, the processing procedure of the control unit 110 will be described using the embodiment described with reference to FIGS. 3 to 7 as a representative example. FIG. 14 is a flowchart for explaining the processing procedure of the control unit 110. As shown in FIG. The flow starts when the adjustment mode is selected with the optical sensor 100 fixed to a structure associated with the production line 300 and the preliminary workpiece 210 placed on the production line 300 .

投光調整部111は、ステップS101で、偏向可能範囲Rの境界上辺へ向けた指示投光IU→境界右辺へ向けた指示投光IR→境界下辺へ向けた指示投光ID→境界左辺へ向けた指示投光ILを順次投光し、それぞれに対する距離を距離演算部112に演算させる。投光調整部111は、これらの演算結果を初期検出距離DU、DR、DD、DLとして記憶部180に記憶する。 In step S101, the light projection adjustment unit 111 performs instruction projection I U toward the upper boundary of the deflectable range R → instruction projection I R toward the right side of the boundary → instruction projection ID toward the lower side of the boundary → boundary The instruction light I L directed toward the left side is sequentially projected, and the distance calculation unit 112 is caused to calculate the distance to each of them. The projection adjustment unit 111 stores these calculation results in the storage unit 180 as the initial detection distances D U , D R , D D and D L .

続いてステップS102へ進み、投光調整部111は、指示投光IU→指示投光IR→指示投光ID→指示投光ILを順に実行する。そして、ステップS103で、いずれかの指示投光が遮られたか否かを判断する。具体的には、それぞれの投光に対して算出された検出距離DU’、DR’、DD’、DL’が、初期検出距離DU、DR、DD、DLより閾値を超えて短くなったか否かによって、遮られたか否かを判断する。 Subsequently, the process proceeds to step S102 , and the light projection adjustment unit 111 sequentially executes instruction projection IU →instruction projection IR →instruction projection ID →instruction projection IL. Then, in step S103, it is determined whether or not any instruction light has been blocked. Specifically, the detection distances D U ', D R ', D D ', and D L ' calculated for the respective light projections are threshold values from the initial detection distances D U , D R , D D , and D L . It is determined whether or not it has been blocked by whether or not the length has shortened beyond .

いずれも遮られていないと判断したら、ステップS104へ進み、投光調整部111は、調整投光LTを前回と同じ方向へ投光し、ステップS106へ進む。いずれかが遮られたと判断したら、投光調整部111は、調整投光LTを当該遮られた指示投光が示す方向へ向きを更新して投光し、ステップS106へ進む。 If it is determined that neither of them is blocked, the process proceeds to step S104, the light projection adjustment unit 111 projects the adjusted projection light LT in the same direction as the previous time, and the process proceeds to step S106. When it is determined that any one of them has been blocked, the light projection adjustment unit 111 updates the orientation of the adjusted projection light L T in the direction indicated by the blocked instruction light projection, and proceeds to step S106.

投光調整部111は、ステップS106へ進むと、操作ボタン150を介して確定指示を受け付けたか否かを確認する。確定指示を受け付けていなければ、ステップS102へ戻って調整モードを続行する。確定指示を受け付けていれば、その時点における調整投光LTの投光方向を検査方向として確定させ、その検査方向示す方向座標(xT,yT)を記憶部180に記憶し、調整モードを終了してステップS107へ進む。 Proceeding to step S<b>106 , the light projection adjustment unit 111 confirms whether or not a confirmation instruction has been received via the operation button 150 . If no confirmation instruction has been received, the process returns to step S102 to continue the adjustment mode. If the confirmation instruction is accepted, the projection direction of the adjustment projection light L T at that time is confirmed as the inspection direction, the direction coordinates (x T , y T ) indicating the inspection direction are stored in the storage unit 180, and the adjustment mode is entered. , and proceeds to step S107.

制御部110は、ステップS107で検査開始の指示を受け付けると、記憶部180に記憶された方向座標(xT,yT)を読み出して検査投光LCの投光方向をその方向へ固定する。そして、ステップS108へ進み、検査ワーク290が製造ライン300上の規定位置に到達するたびに検査投光LCを行って検出処理を実行させ、その検出結果を外部機器へ出力する。製造ライン300上を流れる予定数のワークの検査が終了したら、一連の処理を終える。 Upon receiving the instruction to start inspection in step S107, the control unit 110 reads the direction coordinates (x T , y T ) stored in the storage unit 180 and fixes the projection direction of the inspection light L C to that direction. . Then, in step S108, inspection light L C is emitted every time the work 290 to be inspected reaches a specified position on the manufacturing line 300, detection processing is executed, and the detection result is output to an external device. When the inspection of the planned number of works flowing on the production line 300 is completed, the series of processes is completed.

以上説明した光学式センサ100は、検出光の往復時間を計測することにより距離情報を検出するToFセンサに限らず、検出対象物の距離に応じて変化する反射光の到達位置を計測することにより距離情報を検出する三角測距センサを用いてもよい。三角測距センサで光軸調整素子を採用する場合には、例えば、検出光L1の投光方向と検出光L2の受光位置に対して測定距離を対応付けるルックアップテーブルを予め準備しておけば、検出結果としての距離情報を生成できる。また、以上説明した実施形態においては、検査対象物の良否を判定するための距離情報の検出について説明したが、出力された距離情報の利用態様は良否判定に限らない。例えば、特徴的な部分形状を検査対象として距離を検出することにより、検査対象物の品種を判定する利用態様等も想定し得る。 The optical sensor 100 described above is not limited to the ToF sensor that detects distance information by measuring the round-trip time of the detected light. A triangulation sensor that detects distance information may be used. When employing an optical axis adjustment element in a triangulation sensor, for example, a lookup table that associates the measurement distance with the projection direction of the detection light L1 and the light reception position of the detection light L2 should be prepared in advance. For example, distance information can be generated as a detection result. Further, in the above-described embodiments, detection of distance information for judging the quality of an object to be inspected has been described, but the usage of the output distance information is not limited to the quality judgment. For example, it is conceivable to use a characteristic partial shape as an inspection object and detect the distance to determine the type of the inspection object.

[付記]
可視光である検出光(L1)を投光する投光素子(120)と、
前記投光素子(120)から投光された前記検出光(L1)の光軸を調整する光軸調整素子(130)と、
対象物で反射した前記検出光(L2)を受光して検出信号を出力する受光素子(140)と、
前記光軸調整素子(130)を駆動することにより前記検出光(L1)を予め設定された複数の特定方向へ順次投光して得た前記検出信号に基づく検出結果のうち、前記検出光(L1)が遮られたと評価される検出結果が得られた特定方向を指示方向と認識し、検査対象物(290)の検査のために投光する前記検出光(L1)の投光方向を認識した前記指示方向に基づいて調整する投光調整部(111)と
を備える光学式センサ(100)。
[Note]
a light projecting element (120) for projecting detection light (L 1 ), which is visible light;
an optical axis adjusting element (130) for adjusting the optical axis of the detection light (L 1 ) projected from the light projecting element (120);
a light receiving element (140) that receives the detection light (L 2 ) reflected by the object and outputs a detection signal;
Among detection results based on the detection signals obtained by sequentially projecting the detection light (L 1 ) in a plurality of predetermined specific directions by driving the optical axis adjustment element (130), the detection light Projection of the detection light (L 1 ) for inspecting the inspection object (290) by recognizing the specific direction in which the detection result evaluated as being blocked (L 1 ) is obtained as the pointing direction. An optical sensor (100) comprising a light projection adjustment section (111) that adjusts based on the indicated direction that has been recognized.

100…光学式センサ、101…筐体、102…透過窓、103…ケーブル、110…制御部、111…投光調整部、112…距離演算部、120…投光素子、130…光軸調整素子、140…受光素子、150…操作ボタン、160…表示パネル、170…入出力IF、180…記憶部、210、220、230…予備ワーク、211、231…検査箇所、290、290a、290b…検査ワーク、291a、291b…検査箇所、300…製造ライン DESCRIPTION OF SYMBOLS 100... Optical sensor, 101... Housing, 102... Transmission window, 103... Cable, 110... Control part, 111... Light emission adjustment part, 112... Distance calculation part, 120... Light emission element, 130... Optical axis adjustment element , 140... light receiving element, 150... operation button, 160... display panel, 170... input/output IF, 180... storage section, 210, 220, 230... preliminary work, 211, 231... inspection location, 290, 290a, 290b... inspection Workpiece 291a, 291b Inspection point 300 Production line

Claims (14)

可視光である検出光を投光する投光素子と、
前記投光素子から投光された前記検出光の光軸を調整する光軸調整素子と、
対象物で反射した前記検出光を受光して検出信号を出力する受光素子と、
前記光軸調整素子を駆動することにより前記検出光を予め設定された複数の特定方向へ順次投光して得た前記検出信号に基づく検出結果のうち、前記検出光が遮られたと評価される検出結果が得られた特定方向を指示方向と認識し、認識した前記指示方向に基づいて検査対象物の検査のために投光する前記検出光の投光方向を調整する投光調整部と
を備える光学式センサ。
a light projecting element that projects detection light that is visible light;
an optical axis adjusting element for adjusting an optical axis of the detection light projected from the light projecting element;
a light receiving element that receives the detection light reflected by the object and outputs a detection signal;
Among detection results based on the detection signals obtained by sequentially projecting the detection light in a plurality of predetermined specific directions by driving the optical axis adjusting element, it is evaluated that the detection light is blocked. a light projection adjustment unit that recognizes a specific direction from which a detection result is obtained as a designated direction, and adjusts the projection direction of the detection light projected for inspection of the inspection object based on the recognized designated direction; optical sensor.
前記投光調整部は、前記複数の特定方向に加え、その時点で設定されている前記投光方向を1サイクルとして順次投光し、前記複数の特定方向へ投光する場合と前記投光方向へ投光する場合で、投光の態様を異ならせる請求項1に記載の光学式センサ。 The light projection adjustment unit sequentially projects the light in the plurality of specific directions and the currently set light projection direction as one cycle, and projects light in the plurality of specific directions and in the light projection direction. 2. The optical sensor according to claim 1, wherein the light is projected in different ways. 前記複数の特定方向のそれぞれは、前記光軸調整素子によって調整可能な範囲の端に設定されている請求項1又は2に記載の光学式センサ。 3. The optical sensor according to claim 1, wherein each of the plurality of specific directions is set at an end of a range adjustable by the optical axis adjustment element. 前記投光調整部は、予め設定された前記複数の特定方向のうち反射した前記検出信号を前記受光素子で検出できない特定方向が存在する場合には、その特定方向へ投光する前記検出光を前記検出信号が検出できる方向へ偏向させる請求項1から3のいずれか1項に記載の光学式センサ。 When there is a specific direction in which the reflected detection signal cannot be detected by the light-receiving element among the plurality of predetermined specific directions, the light projection adjustment unit adjusts the detection light projected in the specific direction. 4. The optical sensor according to any one of claims 1 to 3, wherein the detection signal is deflected in a detectable direction. 前記投光調整部は、予め設定された前記複数の特定方向の少なくともいずれか又は前記投光方向で検出された対象物までの距離に基づいて前記複数の特定方向へそれぞれ投光する前記検出光を偏向させる請求項1から4のいずれか1項に記載の光学式センサ。 The light projection adjustment unit projects the detection light in each of the plurality of specific directions based on at least one of the plurality of predetermined specific directions or a distance to an object detected in the light projection direction. 5. An optical sensor according to any one of claims 1 to 4, which deflects the . 前記投光調整部は、前記複数の特定方向が前記光軸調整素子によって調整可能な範囲より内側の方向である場合には、前記範囲を示すために端方向への投光を行う請求項5に記載の光学式センサ。 6. When the plurality of specific directions are directions inside a range adjustable by the optical axis adjusting element, the light projection adjusting section projects light toward the end to indicate the range. The optical sensor according to . 前記投光調整部は、前記複数の特定方向のそれぞれにおいて投光した前記検出光のうち2つ以上の特定方向に対する前記検出光が連続して順次遮られたと評価される検出結果が得られた場合には、前記2つ以上の特定方向の遮られた順番に基づいて前記投光方向を調整する請求項1から6のいずれか1項に記載の光学式センサ。 The light projection adjustment unit obtains a detection result evaluated that the detection light in two or more specific directions out of the detection light projected in each of the plurality of specific directions is successively and sequentially blocked. 7. The optical sensor of any one of claims 1 to 6, wherein, if any, the direction of light projection is adjusted based on the order in which the two or more specific directions are blocked. 前記投光調整部は、遮られた順番に基づいて前記投光方向を調整した場合は、予め設定された設定時間の間、前記投光方向の調整を停止する請求項7に記載の光学式センサ。 8. The optical system according to claim 7, wherein, when the light projection adjustment unit adjusts the light projection direction based on the order of blocking, the adjustment of the light projection direction is stopped for a preset time. sensor. 前記投光調整部は、前記複数の特定方向へ順次投光して得た検出結果のすべてが前記検出光が遮られたと評価される検出結果であった場合に、前記投光方向を確定させる請求項1から8のいずれか1項に記載の光学式センサ。 The light projection adjustment unit determines the light projection direction when all of the detection results obtained by sequentially projecting light in the plurality of specific directions are detection results that indicate that the detection light is blocked. Optical sensor according to any one of claims 1 to 8. 前記投光調整部は、前記複数の特定方向へ順次投光して得た検出結果のうち予め設定された組み合わせの前記検出光がいずれも遮られたと評価される検出結果であった場合に、前記投光方向を確定させる請求項1から8のいずれか1項に記載の光学式センサ。 When the light projection adjustment unit evaluates that all of the detection light beams of a preset combination among the detection results obtained by sequentially projecting light in the plurality of specific directions are blocked, 9. The optical sensor according to any one of claims 1 to 8, wherein the light projection direction is determined. 前記投光調整部は、確定指示を受け付けるための確定投光として前記検出光を投光し、前記確定投光の前記検出光が遮られたと評価される検出結果であった場合に、前記投光方向を確定させる請求項1から8のいずれか1項に記載の光学式センサ。 The light projection adjustment unit projects the detection light as final light projection for accepting a final instruction, and if the detection result indicates that the detection light of the final light projection is blocked, the light projection adjustment unit 9. Optical sensor according to any one of the preceding claims, for determining the direction of light. 前記複数の特定方向は、前記光軸調整素子によって調整可能な範囲の少なくとも一部の範囲を覆うように規定された複数の離散点のそれぞれに対して設定され、
前記投光調整部は、前記検出光が最も至近で遮られたと評価される検出結果が得られた特定方向を指示方向と認識し、前記投光方向を前記指示方向として確定する請求項1に記載の光学式センサ。
The plurality of specific directions are set for each of a plurality of discrete points defined to cover at least a part of the range adjustable by the optical axis adjustment element,
2. The light projection adjusting unit recognizes a specific direction in which a detection result evaluated that the detected light is blocked at the closest point is obtained as the designated direction, and determines the projected light direction as the designated direction. Optical sensor as described.
検出光を投光する投光素子と、前記投光素子から投光された前記検出光の光軸を調整する光軸調整素子と、対象物で反射した前記検出光を受光して検出信号を出力する受光素子とを備える光学式センサの制御方法であって、
前記光軸調整素子を駆動することにより前記検出光を予め設定された複数の特定方向へ順次投光する投光ステップと、
前記投光ステップで前記複数の特定方向へそれぞれ投光して得た前記検出信号に基づく検出結果のうち、前記検出光が遮られたと評価される検出結果が得られた特定方向を指示方向と認識する認識ステップと、
前記認識ステップで認識された前記指示方向に基づいて検査対象物の検査のために投光する前記検出光の投光方向を調整する調整ステップと
を有する光学式センサの制御方法。
an optical axis adjusting element for adjusting an optical axis of the detection light projected from the light emitting element; and receiving the detection light reflected by the object to generate a detection signal. A control method for an optical sensor comprising a light receiving element that outputs
a light projecting step of sequentially projecting the detection light in a plurality of preset specific directions by driving the optical axis adjustment element;
Among the detection results based on the detection signals obtained by projecting light in each of the plurality of specific directions in the light projecting step, a specific direction in which a detection result evaluated to indicate that the detection light is blocked is defined as a pointing direction. a recognition step of recognizing;
and an adjusting step of adjusting a projection direction of the detection light projected for inspecting the inspection target based on the pointing direction recognized in the recognition step.
検出光を投光する投光素子と、前記投光素子から投光された前記検出光の光軸を調整する光軸調整素子と、対象物で反射した前記検出光を受光して検出信号を出力する受光素子とを備える光学式センサの制御プログラムであって、
前記光軸調整素子を駆動することにより前記検出光を予め設定された複数の特定方向へ順次投光する投光ステップと、
前記投光ステップで前記複数の特定方向へそれぞれ投光して得た前記検出信号に基づく検出結果のうち、前記検出光が遮られたと評価される検出結果が得られた特定方向を指示方向と認識する認識ステップと、
前記認識ステップで認識された前記指示方向に基づいて検査対象物の検査のために投光する前記検出光の投光方向を調整する調整ステップと
をコンピュータに実行させる光学式センサの制御プログラム。
an optical axis adjusting element for adjusting an optical axis of the detection light projected from the light emitting element; and receiving the detection light reflected by the object to generate a detection signal. A control program for an optical sensor comprising a light receiving element that outputs,
a light projecting step of sequentially projecting the detection light in a plurality of preset specific directions by driving the optical axis adjustment element;
Among the detection results based on the detection signals obtained by projecting light in each of the plurality of specific directions in the light projecting step, a specific direction in which a detection result evaluated to indicate that the detection light is blocked is defined as a pointing direction. a recognition step of recognizing;
A control program for an optical sensor that causes a computer to execute an adjustment step of adjusting the projection direction of the detection light projected for inspection of the inspection target based on the pointing direction recognized in the recognition step.
JP2021040371A 2021-03-12 2021-03-12 Optical sensor, control method for optical sensor, and control program for optical sensor Pending JP2022139823A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021040371A JP2022139823A (en) 2021-03-12 2021-03-12 Optical sensor, control method for optical sensor, and control program for optical sensor
PCT/JP2021/046930 WO2022190524A1 (en) 2021-03-12 2021-12-20 Optical sensor, method for controlling optical sensor, and program for controlling optical sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021040371A JP2022139823A (en) 2021-03-12 2021-03-12 Optical sensor, control method for optical sensor, and control program for optical sensor

Publications (1)

Publication Number Publication Date
JP2022139823A true JP2022139823A (en) 2022-09-26

Family

ID=83227548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021040371A Pending JP2022139823A (en) 2021-03-12 2021-03-12 Optical sensor, control method for optical sensor, and control program for optical sensor

Country Status (2)

Country Link
JP (1) JP2022139823A (en)
WO (1) WO2022190524A1 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101976605B1 (en) * 2016-05-20 2019-05-09 이탁건 A electronic device and a operation method
JP6926491B2 (en) * 2017-01-30 2021-08-25 オムロン株式会社 Detection system, detection device, and detection method

Also Published As

Publication number Publication date
WO2022190524A1 (en) 2022-09-15

Similar Documents

Publication Publication Date Title
KR101923089B1 (en) Robot teaching method and robot
US9182226B2 (en) Hand-held laser distance measuring device
JP5544042B2 (en) Method and apparatus for controlling a laser tracker using a gesture
JP6716318B2 (en) Range finder and industrial robot
JP4821811B2 (en) Bolt tightening judgment device
JP2003130644A (en) Automatic collimation surveying instrument equipped with imaging device
WO2000011542A1 (en) Scanning-light touch panel
US9329027B2 (en) Measuring unit, measuring system and method for determining a relative position and relative orientation
JP2014006134A (en) Optical measurement device
EP3079045A1 (en) Position sensing device and position sensing method
CN106353764B (en) Laser measuring device
KR100728482B1 (en) Displacement sensor providing auto setting means of measurement area
JP2020125926A (en) Distance image measuring device
US10859369B2 (en) Displacement measuring apparatus
US20200149872A1 (en) Displacement Measuring Apparatus
JP2013152224A (en) Optical system
WO2022190524A1 (en) Optical sensor, method for controlling optical sensor, and program for controlling optical sensor
TWI500950B (en) Optical displacement sensor
WO2006073303A1 (en) Robot positioning system and method of using the same
JP7193308B2 (en) Profile measuring device
US20240168163A1 (en) Optical sensor, method for controlling optical sensor, and control program for optical sensor
WO2010021266A1 (en) Colorimetric system, and white color proofing unit
WO2022190516A1 (en) Optical sensor, control method for optical sensor, and control program for optical sensor
US10724849B2 (en) Displacement measuring apparatus
US20200149874A1 (en) Displacement Measuring Apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240116