JP2017110926A - Photoelectric switch - Google Patents

Photoelectric switch Download PDF

Info

Publication number
JP2017110926A
JP2017110926A JP2015243150A JP2015243150A JP2017110926A JP 2017110926 A JP2017110926 A JP 2017110926A JP 2015243150 A JP2015243150 A JP 2015243150A JP 2015243150 A JP2015243150 A JP 2015243150A JP 2017110926 A JP2017110926 A JP 2017110926A
Authority
JP
Japan
Prior art keywords
light
amount
detection
unit
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015243150A
Other languages
Japanese (ja)
Other versions
JP6712132B2 (en
Inventor
智之 齋藤
Tomoyuki Saito
智之 齋藤
次郎 馬場
Jiro Baba
次郎 馬場
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.)
Keyence Corp
Original Assignee
Keyence Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Keyence Corp filed Critical Keyence Corp
Priority to JP2015243150A priority Critical patent/JP6712132B2/en
Publication of JP2017110926A publication Critical patent/JP2017110926A/en
Application granted granted Critical
Publication of JP6712132B2 publication Critical patent/JP6712132B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Switches Operated By Changes In Physical Conditions (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a photoelectric switch for suppressing a decrease in discrimination sensitivity of color.SOLUTION: A photoelectric switch comprises: light projection means for projecting detection light DL toward a detection area; light reception means for receiving reflection light RL from the detection area and converting the light to a light reception signal; correction instruction reception means for receiving a correction instruction; amount-of-return-light acquisition means for acquiring a reception light signal according to a correction instruction and designating the amount of reception light for each specific wavelength as the amount of return light; return light correction means for correcting a reception light signal based on the amount of return light; color information acquisition means for acquiring color information by comparing the amount of reception light of at least two specific wavelengths, based on a light reception signal after correction by the return light correction means; reference color intake instruction reception means for receiving a reference light intake instruction; reference color acquisition means for designating color information acquired according to the reference color intake instruction as a reference color; degree-of-coincidence calculation means for obtaining a degree of coincidence by comparing successively acquired color information with a reference color; and detection signal output means for performing work determination by comparing the degree of coincidence with a determination threshold and outputting a detection signal.SELECTED DRAWING: Figure 14

Description

本発明は、光電スイッチに係り、さらに詳しくは、検出領域からの反射光を受光してワーク判定を行う光電スイッチの改良に関する。   The present invention relates to a photoelectric switch, and more particularly, to an improvement in a photoelectric switch that receives a reflected light from a detection region and determines a workpiece.

光電スイッチは、光を用いてワークを検出する検出装置であり、検出光を投光し、ワークによる反射光や透過光等を受光してワーク判定を行い、ワーク判定の結果に基づいて検出信号を生成する。光電スイッチには、ワークを含む検出領域からの反射光又は透過光の受光量によりワーク判定を行う受光量方式の光電スイッチと、ワークまでの距離を計測してワーク判定を行う距離計測方式の光電スイッチと、ワーク表面の色を判別してワーク判定を行う色判別方式の光電スイッチとがある。   A photoelectric switch is a detection device that detects light using light, projects detection light, receives reflected light or transmitted light from the work, etc., makes a work determination, and detects a signal based on the result of the work determination. Is generated. The photoelectric switch includes a received light amount type photoelectric switch that performs workpiece determination based on the amount of reflected or transmitted light received from a detection area including the workpiece, and a distance measurement type photoelectric switch that measures the distance to the workpiece and performs workpiece determination. There are a switch and a color discrimination type photoelectric switch that discriminates the color of the workpiece surface and discriminates the workpiece.

受光量方式の光電スイッチは、ワーク表面の反射率又は色の違い、ワークまでの距離の違い、ワーク表面の傾き(チルト角)の違い等により受光量が変動することを利用してワーク判別を行うものであり、多くの用途に適用することができる汎用的な光電スイッチである。一方、距離計測方式の光電スイッチは、ワークの形状による特徴をワークまでの距離として計測してワーク判定を行うものであり、ワーク表面の反射率及び色の変動、ワーク表面の傾き(チルト角)の変動の影響を受け難い。また、色判別方式の光電スイッチは、ワーク表面の色によりワーク判定を行うものであり、ワーク表面の反射率の変動、ワークまでの距離の変動、ワーク表面の傾き(チルト角)の変動の影響を受け難い。   Light-receiving-type photoelectric switches use the fact that the amount of received light varies due to differences in the reflectance or color of the workpiece surface, differences in the distance to the workpiece, differences in the tilt (tilt angle) of the workpiece surface, etc. This is a general-purpose photoelectric switch that can be applied to many purposes. On the other hand, the distance measurement type photoelectric switch measures a feature by measuring the feature depending on the shape of the workpiece as the distance to the workpiece, and changes the reflectance and color of the workpiece surface, and the tilt (tilt angle) of the workpiece surface. It is hard to be affected by fluctuations. In addition, the color discrimination type photoelectric switch determines the workpiece based on the color of the workpiece surface, and is affected by variations in the reflectance of the workpiece surface, variations in the distance to the workpiece, and variations in the workpiece surface tilt (tilt angle). It is difficult to receive.

色判別方式の従来の光電スイッチは、赤色、緑色及び青色の検出光をそれぞれ生成する3つの発光素子と、反射光を受光して受光信号を生成する1つの受光素子とを備える(例えば、特許文献1〜4)。この種の光電スイッチでは、各発光素子を時分割で順に点灯させて得られる3色の受光量レベルR,G,Bに基づいて、例えば、3色の受光量レベルの比率r=R/M,g=G/M,bk=B/M(受光量の和M=R+G+B)により色を表し、ワーク判定時に取得された受光量レベルの比率r,g,bが、予め登録された基準色の受光量レベルの比率r,g,bと一致するか否かが判別される。具体的には、各色の受光量レベルの比率を基準色の受光量レベルの比率と比較して両色情報の一致度を求め、この一致度を判定用閾値と比較することにより、ワーク判定が行われる。 A conventional photoelectric switch of a color discrimination system includes three light emitting elements that respectively generate red, green, and blue detection lights, and one light receiving element that receives reflected light and generates a light reception signal (for example, a patent). Literatures 1-4). In this type of photoelectric switch, for example, the ratio r k of the light reception amount levels of the three colors based on the light reception amount levels R k , G k , and B k of the three colors obtained by sequentially lighting the light emitting elements in time division. = R k / M k, g k = G k / M k, represents a color by bk = B k / M k (OR M k = R k + G k + B k of the light-receiving amount), receiving acquired during the work determination It is determined whether or not the quantity level ratios r 1 , g 1 , b 1 match the pre-registered received light quantity level ratios r 0 , g 0 , b 0 . Specifically, by comparing the ratio of the received light amount level of each color with the ratio of the received light amount level of the reference color, the degree of coincidence of the two color information is obtained, and by comparing this degree of coincidence with the determination threshold value, the work determination is performed. Done.

基準色の受光量レベルは、ユーザが指示したタイミングで取得された各色の受光量レベルに基づいて定められる。例えば、所定期間内に取得される複数の受光量レベル又は受光量レベルの比率に基づいて、色成分ごとに最大値及び最小値を求め、最大値と最小値との中間値が基準色の受光量レベル又は受光量レベルの比率に指定される。   The received light level of the reference color is determined based on the received light level of each color acquired at the timing designated by the user. For example, a maximum value and a minimum value are obtained for each color component based on a plurality of received light amount levels or a ratio of received light amount levels acquired within a predetermined period, and an intermediate value between the maximum value and the minimum value is the received light of the reference color It is specified as the ratio of the light level or the light receiving level.

特開2000−121440号公報JP 2000-112440 A 特開2000−121441号公報Japanese Patent Laid-Open No. 2000-121441 特開2005−127869号公報JP 2005-127869 A 特開2005−291748号公報JP 2005-291748 A

上述した従来の光電スイッチは、色の判別に一致度を用いることにより、通常3つのパラメータにより表現される色情報を、一致度という1つのパラメータで表現するため、受光量と閾値とで判別する受光量方式の光電スイッチと同様な取り扱いができ、設定が簡便なものとなっている。一方、ワークに貼付されたラベル、ワークに組み付けられた部品等を検出する場合、従来の光電スイッチは、基準色との色差を求め、色差が一定レベル以上であれば、ラベルや組付け部品が存在していると判別する。また、シート状部材の切断位置、ラベルの貼付位置等を表すレジマークを検出する場合にも、基準色との色差が一定レベル以上であれば、レジマークが存在していると判別される。色差は、一致度とその上限値から求められ、色情報が基準色と完全に一致している場合の色差は0である。   The conventional photoelectric switch described above uses color matching to determine color information, which is usually represented by three parameters, using a single parameter called matching, and therefore discriminates based on the amount of received light and a threshold value. It can be handled in the same way as a light receiving type photoelectric switch, and is easy to set. On the other hand, when detecting a label affixed to a workpiece or a component assembled to a workpiece, a conventional photoelectric switch obtains a color difference from a reference color. Determine that it exists. Also, when detecting a registration mark indicating a cutting position of a sheet-like member, a label applying position, etc., if the color difference from the reference color is equal to or higher than a certain level, it is determined that the registration mark exists. The color difference is obtained from the degree of coincidence and the upper limit value, and the color difference is 0 when the color information completely matches the reference color.

検出光を検出領域に集光させる対物レンズを備えた光電スイッチでは、検出光の一部が対物レンズにより反射され、対物レンズから出射されることなく受光素子に戻り光として受光される場合がある。また、検出光を本体部からヘッド部へ伝送する一方、検出領域からの反射光をヘッド部から本体部へ伝送する光ファイバケーブルを備えた光電スイッチでは、きず等の光ファイバの不具合により、検出光の一部が反射光伝送用の光ファイバに混入し、ヘッド部から出射されることなく受光素子に戻り光として受光される場合がある。   In a photoelectric switch having an objective lens for condensing detection light in a detection region, a part of the detection light may be reflected by the objective lens and received as return light by the light receiving element without being emitted from the objective lens. . Also, photoelectric switches equipped with an optical fiber cable that transmits detection light from the main body to the head while transmitting reflected light from the detection area from the head to the main body are detected due to defects in the optical fiber such as flaws. There is a case where part of the light is mixed into the optical fiber for reflected light transmission and is received as return light by the light receiving element without being emitted from the head portion.

色判別方式の従来の光電スイッチでは、各色の受光量を比較して色情報を取得している。このため、戻り光の影響によって受光量比率が変化し、ワークの色目が正しく判別することができないという問題があった。特に、反射率が低いワークを検出対象とする場合、ワークからの反射光量が少ないため、戻り光によって受光量比率が大きく変化してしまう。   In the conventional photoelectric switch of the color discrimination method, the color information is acquired by comparing the amount of received light of each color. For this reason, there is a problem that the received light amount ratio changes due to the influence of the return light, and the color of the workpiece cannot be correctly identified. In particular, when a workpiece having a low reflectance is a detection target, the amount of light reflected from the workpiece is small, and thus the ratio of the amount of received light greatly changes due to the return light.

本発明は、上記事情に鑑みてなされたものであり、色の判別感度の低下を抑制することができる光電スイッチを提供することを目的とする。特に、反射率が低いワークを検出対象とする場合であっても、戻り光による色の判別感度の低下を抑制することができる光電スイッチを提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a photoelectric switch that can suppress a decrease in color discrimination sensitivity. In particular, it is an object of the present invention to provide a photoelectric switch that can suppress a decrease in color discrimination sensitivity due to return light even when a workpiece with low reflectance is a detection target.

本発明の第1の態様による光電スイッチは、2以上の特定波長に対応する検出光を検出領域に向けて投光する投光手段と、上記検出領域からの反射光を受光して受光信号に変換する受光手段と、補正指示を受け付ける補正指示受付手段と、上記補正指示に従って上記受光信号を取得し、上記特定波長ごとの受光量を戻り光量に指定する戻り光量取得手段と、上記戻り光量に基づいて、上記受光信号を補正する戻り光補正手段と、上記戻り光補正手段による補正後の上記受光信号に基づいて、少なくとも2つの上記特定波長の受光量を比較して色情報を取得する色情報取得手段と、基準色取込指示を受け付ける基準色取込指示受付手段と、上記基準色取込指示に従って上記色情報取得手段により取得された上記色情報を基準色に指定する基準色取得手段と、上記色情報取得手段により順次に取得される上記色情報を上記基準色と比較して一致度を求める一致度算出手段と、上記一致度を予め定められた判定閾値と比較してワーク判定を行い、上記ワーク判定の結果に基づいて検出信号を出力する検出信号出力手段とを備える。   The photoelectric switch according to the first aspect of the present invention includes a light projecting unit that projects detection light corresponding to two or more specific wavelengths toward a detection region, and receives reflected light from the detection region as a light reception signal. A light receiving means for converting, a correction instruction receiving means for receiving a correction instruction, a light receiving signal in accordance with the correction instruction, a return light quantity acquiring means for specifying a received light quantity for each specific wavelength as a return light quantity, and a return light quantity Based on the return light correction unit that corrects the light reception signal and the light reception signal corrected by the return light correction unit, the color information is obtained by comparing the light reception amounts of at least two specific wavelengths. Information acquisition means, reference color acquisition instruction reception means for receiving a reference color acquisition instruction, and a reference color that designates the color information acquired by the color information acquisition means according to the reference color acquisition instruction as a reference color A matching degree calculating means for comparing the color information sequentially obtained by the color information obtaining means with the reference color to obtain a matching degree, and comparing the matching degree with a predetermined determination threshold value. Detection signal output means for performing workpiece determination and outputting a detection signal based on the result of the workpiece determination.

この様な構成によれば、補正指示に従って取得される戻り光量に基づいて受光信号を補正するため、戻り光による受光量の変化を抑制することができる。従って、ワーク上のラベル、組付け部品、レジマーク等を検出する際に、ワークの色目を正しく判別することができ、戻り光による色の判別感度の低下を抑制することができる。特に、ワークからの反射光量にかかわらずワークの色目が正しく判別されるため、反射率が低いワークを検出対象とする場合であっても、戻り光による色の判別感度の低下を抑制することができる。   According to such a configuration, since the light reception signal is corrected based on the return light amount acquired in accordance with the correction instruction, a change in the light reception amount due to the return light can be suppressed. Therefore, when detecting a label, an assembly part, a registration mark, or the like on the workpiece, the color of the workpiece can be correctly identified, and a decrease in color discrimination sensitivity due to return light can be suppressed. In particular, since the color of the workpiece is correctly determined regardless of the amount of reflected light from the workpiece, even when a workpiece with low reflectance is targeted for detection, it is possible to suppress a decrease in color discrimination sensitivity due to return light. it can.

本発明の第2の態様による光電スイッチは、上記構成に加え、上記検出光を生成する発光ダイオード及び上記受光信号を生成するフォトダイオードを有する本体部と、上記検出光を検出領域に向けて出射する一方、上記検出領域からの反射光が入射されるヘッド部と、上記検出光及び上記反射光を上記本体部及び上記ヘッド部間で伝送する光ファイバケーブルとを備え、上記検出光を伝送する光ファイバの端部及び上記反射光を伝送する光ファイバの端部が、上記ヘッド部内において隣接配置されるように構成される。   A photoelectric switch according to a second aspect of the present invention, in addition to the above configuration, emits the detection light toward a detection region, and a main body having a light emitting diode that generates the detection light and a photodiode that generates the light reception signal. On the other hand, a head part to which the reflected light from the detection area is incident and an optical fiber cable for transmitting the detection light and the reflected light between the main body part and the head part are provided to transmit the detection light. An end portion of the optical fiber and an end portion of the optical fiber that transmits the reflected light are arranged adjacent to each other in the head portion.

この様な構成によれば、光ファイバの不具合により、ヘッド部内において検出光の一部が反射光伝送用の光ファイバに混入し、ヘッド部から出射されることなくフォトダイオードに戻り光として受光される場合であっても、戻り光による色の判別感度の低下を抑制することができる。   According to such a configuration, due to the malfunction of the optical fiber, a part of the detection light is mixed in the reflected-light transmission optical fiber in the head portion, and is received as return light by the photodiode without being emitted from the head portion. Even in this case, it is possible to suppress a decrease in color discrimination sensitivity due to return light.

本発明の第3の態様による光電スイッチは、上記構成に加え、上記ヘッド部に着脱可能に装着され、上記光ファイバケーブルの端面から出射された上記検出光を上記検出領域に集光させる対物レンズを備えて構成される。   In addition to the above configuration, the photoelectric switch according to the third aspect of the present invention is an objective lens that is detachably attached to the head unit and condenses the detection light emitted from the end face of the optical fiber cable on the detection region. It is configured with.

この様な構成によれば、検出光の一部が対物レンズにより反射され、対物レンズから出射されることなくフォトダイオードに戻り光として受光される場合であっても、戻り光による色の判別感度の低下を抑制することができる。また、対物レンズを取り替えることにより、光学特性が変化した場合であっても、戻り光量を取得して受光信号を補正することにより、戻り光による色の判別感度の低下を抑制することができる。   According to such a configuration, even when a part of the detection light is reflected by the objective lens and is received as return light by the photodiode without being emitted from the objective lens, the color discrimination sensitivity by the return light. Can be suppressed. Further, even if the optical characteristics change by replacing the objective lens, it is possible to suppress a decrease in color discrimination sensitivity due to the return light by acquiring the return light amount and correcting the light reception signal.

本発明の第4の態様による光電スイッチは、上記構成に加え、上記本体部が、上記光ファイバケーブルが着脱可能に接続されるファイバ接続部を有し、上記検出光を伝送する光ファイバの端部及び上記反射光を伝送する光ファイバの端部が、上記ファイバ接続部内において平行に配置されるように構成される。   A photoelectric switch according to a fourth aspect of the present invention includes, in addition to the above configuration, the main body portion having a fiber connection portion to which the optical fiber cable is detachably connected, and an end of an optical fiber that transmits the detection light. And an end portion of the optical fiber that transmits the reflected light are arranged in parallel in the fiber connection portion.

この様な構成によれば、ヘッド部又は光ファイバケーブルを取り替えることにより、光学特性が変化した場合であっても、戻り光量を取得して受光信号を補正することにより、戻り光による色の判別感度の低下を抑制することができる。   According to such a configuration, even if the optical characteristics are changed by replacing the head unit or the optical fiber cable, the color discrimination by the return light is performed by acquiring the return light amount and correcting the light reception signal. A decrease in sensitivity can be suppressed.

本発明の第5の態様による光電スイッチは、上記構成に加え、上記受光信号に基づいて、上記検出光の投光量を制御する投光量制御手段を備え、上記戻り光補正手段が、上記投光量に応じて上記戻り光量を調整し、調整後の戻り光量に基づいて上記受光信号の補正を行うように構成される。この様な構成によれば、投光量に応じて戻り光量を調整するため、検出光の投光量が変化した場合であっても、戻り光による誤検出を低減させることができる。   A photoelectric switch according to a fifth aspect of the present invention includes, in addition to the above configuration, a light projection amount control unit that controls a light projection amount of the detection light based on the light reception signal, and the return light correction unit includes the light projection amount. The return light amount is adjusted in accordance with the received light amount, and the received light signal is corrected based on the adjusted return light amount. According to such a configuration, since the return light amount is adjusted according to the light projection amount, erroneous detection due to the return light can be reduced even when the light projection amount of the detection light changes.

本発明の第6の態様による光電スイッチは、上記構成に加え、上記受光信号に基づいて、上記受光信号を増幅するアンプのゲインを制御するゲイン制御手段を備え、上記戻り光補正手段が、上記ゲインに応じて上記戻り光量を調整し、調整後の戻り光量に基づいて上記受光信号の補正を行うように構成される。この様な構成によれば、ゲインに応じて戻り光量を調整するため、アンプのゲインが変化した場合であっても、戻り光による誤検出を低減させることができる。   A photoelectric switch according to a sixth aspect of the present invention includes, in addition to the above configuration, gain control means for controlling the gain of an amplifier that amplifies the light reception signal based on the light reception signal, and the return light correction means includes The return light amount is adjusted according to the gain, and the received light signal is corrected based on the adjusted return light amount. According to such a configuration, since the amount of return light is adjusted according to the gain, erroneous detection due to the return light can be reduced even when the gain of the amplifier changes.

本発明の第7の態様による光電スイッチは、上記構成に加え、上記色情報取得手段が、赤色成分の受光量、緑色成分の受光量及び青色成分の受光量の和に対する各色成分の受光量の比率を含む色情報を取得するように構成される。この様な構成によれば、各色成分について、受光量比率の変化が抑制されるため、戻り光による誤検出を低減させることができる。   In the photoelectric switch according to the seventh aspect of the present invention, in addition to the above-described configuration, the color information acquisition unit is configured to determine a received light amount of each color component with respect to a sum of a received light amount of a red component, a received light amount of a green component, and a received light amount of a blue component. It is configured to obtain color information including a ratio. According to such a configuration, the change in the amount of received light is suppressed for each color component, so that erroneous detection due to return light can be reduced.

本発明の第8の態様による光電スイッチは、上記構成に加え、上記戻り光補正手段が、特定波長ごとに、受光量から上記戻り光量を減算することにより、上記受光信号の補正を行うように構成される。この様な構成によれば、補正のための演算処理を複雑化することなく、戻り光による誤検出を低減させることができる。   In the photoelectric switch according to the eighth aspect of the present invention, in addition to the above configuration, the return light correction unit corrects the light reception signal by subtracting the return light amount from the light reception amount for each specific wavelength. Composed. According to such a configuration, it is possible to reduce erroneous detection due to return light without complicating calculation processing for correction.

本発明の第9の態様による光電スイッチは、上記構成に加え、上記一致度を表示する一致度表示手段を備えて構成される。この様な構成によれば、一致度を判定閾値と比較してワーク判定を行うため、ワーク判定用のパラメータは判定閾値だけであり、パラメータの指定を簡素化することができる。   The photoelectric switch according to the ninth aspect of the present invention includes a coincidence degree display means for displaying the coincidence degree in addition to the above structure. According to such a configuration, since the workpiece is determined by comparing the degree of coincidence with the determination threshold, the workpiece determination parameter is only the determination threshold, and the specification of the parameter can be simplified.

本発明の第10の態様による光電スイッチは、上記構成に加え、上記判定閾値の入力を受け付ける判定閾値入力手段を備えて構成される。この様な構成によれば、判定閾値を任意に指定することができる。   A photoelectric switch according to a tenth aspect of the present invention includes a determination threshold value input unit that receives an input of the determination threshold value in addition to the above configuration. According to such a configuration, the determination threshold can be arbitrarily designated.

本発明による光電スイッチでは、戻り光による受光量の変化が抑制されるため、色の判別感度の低下を抑制することができる。特に、ワークからの反射光量にかかわらずワークの色目が正しく判別されるため、反射率が低いワークを検出対象とする場合であっても、戻り光による色の判別感度の低下を抑制することができる。   In the photoelectric switch according to the present invention, since the change in the amount of received light due to the return light is suppressed, it is possible to suppress a decrease in color discrimination sensitivity. In particular, since the color of the workpiece is correctly determined regardless of the amount of reflected light from the workpiece, even when a workpiece with low reflectance is targeted for detection, it is possible to suppress a decrease in color discrimination sensitivity due to return light. it can.

本発明の実施の形態による光電スイッチ1の一構成例を示した斜視図である。It is the perspective view which showed one structural example of the photoelectric switch 1 by embodiment of this invention. 図1のヘッド部3の鉛直面による断面図である。It is sectional drawing by the vertical surface of the head part 3 of FIG. 図2のヘッド部3のA−A切断線による断面図である。It is sectional drawing by the AA cutting line of the head part 3 of FIG. 図1の本体部10を示した平面図である。It is the top view which showed the main-body part 10 of FIG. 図4の本体部10のB1−B1切断線による断面図である。It is sectional drawing by the B1-B1 cutting line of the main-body part 10 of FIG. 図4の本体部10のB2−B2切断線による断面図である。It is sectional drawing by the B2-B2 cutting line of the main-body part 10 of FIG. 図4の本体部10を展開して示した斜視図である。It is the perspective view which expanded and showed the main-body part 10 of FIG. 図7の光学モジュール42を展開して示した斜視図である。It is the perspective view which expanded and showed the optical module 42 of FIG. 図8の投光モジュール50を展開して示した斜視図である。It is the perspective view which expanded and showed the light projection module 50 of FIG. 図4の本体部10のファイバ接続部18の構成例を示した図である。It is the figure which showed the structural example of the fiber connection part 18 of the main-body part 10 of FIG. 図10のクランプモジュール70を展開して示した斜視図である。It is the perspective view which expanded and showed the clamp module 70 of FIG. 図10のクランプモジュール70の動作例を示した図である。It is the figure which showed the operation example of the clamp module 70 of FIG. 図4の本体部10内の機能構成の一例を示したブロック図である。FIG. 5 is a block diagram illustrating an example of a functional configuration in the main body unit 10 of FIG. 4. 図13の主制御部100の構成例を示したブロック図である。FIG. 14 is a block diagram illustrating a configuration example of a main control unit 100 in FIG. 13. ヘッド部3及び光ファイバケーブル2の他の構成例を示した図である。It is the figure which showed the other structural example of the head part 3 and the optical fiber cable.

以下、本発明の実施の形態について、図面を参照して説明する。本明細書では、便宜上、ヘッド部の投受光軸の方向を上下方向(鉛直方向)とし、本体部の投受光軸の方向を前後方向として説明するが、本発明による光電スイッチの使用時における姿勢を限定するものではない。   Embodiments of the present invention will be described below with reference to the drawings. In this specification, for the sake of convenience, the direction of the light projecting / receiving axis of the head portion is assumed to be the vertical direction (vertical direction), and the direction of the light projecting / receiving axis of the main body portion is assumed to be the front-rear direction. It is not intended to limit.

<光電スイッチ1>
図1は、本発明の実施の形態による光電スイッチ1の一構成例を示した斜視図であり、色判別方式の光電スイッチ1が示されている。光電スイッチ1は、検出光DLを投光し、ワークWを含む検出領域からの反射光を受光してワーク判定を行い、ワーク判定の結果に基づいて検出信号を生成する検出装置である。ワーク判定は、ワーク表面の色を判別することによって行われ、ワークWの良否、ワークWの有無等を示す検出信号が出力される。
<Photoelectric switch 1>
FIG. 1 is a perspective view showing a configuration example of a photoelectric switch 1 according to an embodiment of the present invention, and shows a color discrimination type photoelectric switch 1. The photoelectric switch 1 is a detection device that projects detection light DL, receives reflected light from a detection region including the workpiece W, performs workpiece determination, and generates a detection signal based on the result of workpiece determination. The workpiece determination is performed by determining the color of the workpiece surface, and a detection signal indicating whether the workpiece W is acceptable or not, the presence / absence of the workpiece W, etc. is output.

この光電スイッチ1は、投光用光源や受光回路等を有する本体部10と、検出光DL及び検出領域からの反射光を伝送する光ファイバケーブル2と、検出光DLを検出領域に向けて出射する一方、検出領域からの反射光が入射されるヘッド部3とにより構成される。ヘッド部3は、本体部10から離間した位置に設置することができる。また、ヘッド部3及び光ファイバケーブル2は、本体部10に対し、着脱可能である。   The photoelectric switch 1 includes a main body 10 having a light source for light projection, a light receiving circuit, and the like, an optical fiber cable 2 that transmits the detection light DL and reflected light from the detection region, and emits the detection light DL toward the detection region. On the other hand, the head unit 3 is configured to receive the reflected light from the detection region. The head unit 3 can be installed at a position separated from the main body unit 10. The head unit 3 and the optical fiber cable 2 are detachable from the main body unit 10.

本体部10は、表示灯11、操作キー12及び配線ケーブル14を備える。表示灯11は、ワーク判定の結果に応じて点灯するLED(Light Emitting Diode:発光ダイオード)インジケータであり、本体部10の筐体上面に配設されている。操作キー12は、ワーク判定用の基準色を指定する際に使用される押下式のセットキーであり、本体部10の筐体上面に配設されている。   The main body 10 includes an indicator lamp 11, operation keys 12, and a wiring cable 14. The indicator lamp 11 is an LED (Light Emitting Diode) indicator that is turned on according to the result of the work determination, and is disposed on the upper surface of the casing of the main body 10. The operation key 12 is a push-type set key used when designating a reference color for workpiece determination, and is disposed on the upper surface of the casing of the main body unit 10.

配線ケーブル14は、本体部10内の回路素子に電力を供給するための電源ケーブルと、制御用信号や検出信号を伝送するための信号ケーブルとにより構成される。配線ケーブル14の引出部は、本体部10の筐体背面、底面(下面)及び左側面の3面による角部(コーナー)に配置されている。本体部10の筐体側面に設けられた取付穴13は、本体部10を工場設備や建屋に固定するためのネジ穴である。   The wiring cable 14 includes a power cable for supplying power to the circuit elements in the main body 10 and a signal cable for transmitting control signals and detection signals. The lead-out portion of the wiring cable 14 is arranged at the corner portion (corner) of the three surfaces of the housing rear surface, bottom surface (lower surface), and left side surface of the main body unit 10. A mounting hole 13 provided on the side surface of the housing of the main body 10 is a screw hole for fixing the main body 10 to factory equipment or a building.

光ファイバケーブル2は、検出光DL及び反射光を本体部10及びヘッド部3間で伝送する伝送線路であり、検出光DLを本体部10からヘッド部3に伝送するための光ファイバ2aと、反射光をヘッド部3から本体部10に伝送するための光ファイバ2bとからなる。この光ファイバケーブル2は、光ファイバ2a及び光ファイバ2bが並べて配置される並列型の光ファイバケーブルである。   The optical fiber cable 2 is a transmission line that transmits the detection light DL and the reflected light between the main body unit 10 and the head unit 3, and an optical fiber 2a for transmitting the detection light DL from the main body unit 10 to the head unit 3. It consists of an optical fiber 2 b for transmitting reflected light from the head unit 3 to the main body unit 10. The optical fiber cable 2 is a parallel type optical fiber cable in which an optical fiber 2a and an optical fiber 2b are arranged side by side.

光ファイバケーブル2の本体部側の端部には、コネクタ部21が設けられている。コネクタ部21は、光ファイバケーブル2を本体部10に着脱可能に接続するための接続部であり、光ファイバ2a及び光ファイバ2bに共通の部材からなる。このコネクタ部21は、本体部10の筐体前面から前方に向けて突出するように装着されている。光ファイバケーブル2の本体部側の端部は、光ファイバ2a及び光ファイバ2bをこの順序で上下方向に並べた状態で本体部10に固定されている。   A connector portion 21 is provided at the end of the optical fiber cable 2 on the main body side. The connector part 21 is a connection part for detachably connecting the optical fiber cable 2 to the main body part 10, and is made of a member common to the optical fiber 2a and the optical fiber 2b. The connector portion 21 is mounted so as to protrude forward from the front surface of the housing of the main body portion 10. The end of the optical fiber cable 2 on the main body side is fixed to the main body 10 with the optical fiber 2a and the optical fiber 2b being arranged in the vertical direction in this order.

光ファイバ2a及び光ファイバ2bの外径は、Φ1.3mm〜Φ1.0mmのいずれかに設定されており、コネクタ部21により、光ファイバ2a及び光ファイバ2bの見かけの外径がΦ2.2mmとなっている。なお、光ファイバケーブル2の光ファイバ2a及び光ファイバ2bの外径がΦ2.2mmに設定されている場合、コネクタ部21を設けることなく、光ファイバケーブル2の光ファイバ2a及び光ファイバ2bの端部を本体部10に着脱可能に接続することができる。   The outer diameters of the optical fiber 2a and the optical fiber 2b are set to any of Φ1.3 mm to Φ1.0 mm, and the apparent outer diameter of the optical fiber 2a and the optical fiber 2b is Φ2.2 mm by the connector unit 21. It has become. When the outer diameters of the optical fiber 2a and the optical fiber 2b of the optical fiber cable 2 are set to Φ2.2 mm, the ends of the optical fiber 2a and the optical fiber 2b of the optical fiber cable 2 are not provided without providing the connector portion 21. The part can be detachably connected to the main body part 10.

ヘッド部3は、投受光ユニットであり、ヘッド部3内に光ファイバケーブル2の端部が配置され、光ファイバ2aを介して伝送された検出光DLを下方に向けて出射する。このヘッド部3は、ボルト形状であり、円筒状の鏡筒部32を下方に向けて配置され、光ファイバケーブル2がファイバケーブル保持部31から水平に引き出されている。光ファイバケーブル2のヘッド部側の端部は、光ファイバ2a及び光ファイバ2bを水平方向に隣接させた状態でヘッド部3に固定されている。   The head unit 3 is a light projecting / receiving unit, and an end of the optical fiber cable 2 is disposed in the head unit 3 and emits the detection light DL transmitted through the optical fiber 2a downward. The head portion 3 has a bolt shape, is disposed with the cylindrical barrel portion 32 facing downward, and the optical fiber cable 2 is pulled out horizontally from the fiber cable holding portion 31. The end of the optical fiber cable 2 on the head part side is fixed to the head part 3 with the optical fiber 2a and the optical fiber 2b adjacent to each other in the horizontal direction.

ヘッド部3には、レンズユニット33が着脱可能に装着される。レンズユニット33は、光ファイバ2aの端面から出射された検出光DLを検出領域に集光させる対物レンズを有する円筒状部材からなり、鏡筒部32に装着されている。レンズユニット33を取り替えることにより、測定レンジ、焦点距離、投光スポットのサイズ(スポット径)等を変更することができる。   A lens unit 33 is detachably attached to the head unit 3. The lens unit 33 is composed of a cylindrical member having an objective lens for condensing the detection light DL emitted from the end face of the optical fiber 2 a in the detection region, and is attached to the lens barrel portion 32. By replacing the lens unit 33, the measurement range, focal length, projection spot size (spot diameter), and the like can be changed.

<ヘッド部3>
図2は、図1のヘッド部3を対物レンズ34の光軸を含む鉛直面により切断した場合の切断面を示す断面図である。図3は、図2のヘッド部3をA−A切断線により切断した場合の切断面を示す断面図である。図3には、矢印により示した方向から切断面を見た場合が示されている。
<Head 3>
FIG. 2 is a cross-sectional view showing a cut surface when the head unit 3 of FIG. 1 is cut along a vertical plane including the optical axis of the objective lens 34. FIG. 3 is a cross-sectional view showing a cut surface when the head portion 3 of FIG. 2 is cut along an AA cutting line. FIG. 3 shows a case where the cut surface is viewed from the direction indicated by the arrow.

ヘッド部3のヘッド筐体30は、ファイバケーブル保持部31及び鏡筒部32により構成される。光ファイバ2aは、ファイバケーブル保持部31内において、水平に保持されている。光ファイバケーブル2のヘッド部側の端部22は、鏡筒部32内において、光ファイバ2aの端面を下方に向けた状態で保持される。この端部22は、保持部材321を介して鏡筒部32内に固定されている。つまり、光ファイバケーブル2の光ファイバ2a及び2bは、ヘッド部3内において、直角に折り曲げられている。   The head housing 30 of the head unit 3 includes a fiber cable holding unit 31 and a lens barrel unit 32. The optical fiber 2 a is held horizontally in the fiber cable holding unit 31. The end portion 22 on the head portion side of the optical fiber cable 2 is held in the lens barrel portion 32 with the end face of the optical fiber 2a facing downward. The end 22 is fixed in the lens barrel 32 via a holding member 321. That is, the optical fibers 2 a and 2 b of the optical fiber cable 2 are bent at right angles in the head portion 3.

光ファイバケーブル2のヘッド部側の端部22は、光ファイバ2aの端部及び光ファイバ2bの端部からなり、光ファイバ2aの端部及び光ファイバ2bの端部が互いに隣接した状態でヘッド筐体30の鏡筒部32内に配置される。端部22は、光を伝搬させるコア221と、コア221を外囲するクラッド222とにより構成される。   The end portion 22 on the head portion side of the optical fiber cable 2 is composed of an end portion of the optical fiber 2a and an end portion of the optical fiber 2b, and the end portion of the optical fiber 2a and the end portion of the optical fiber 2b are adjacent to each other. It is arranged in the lens barrel part 32 of the housing 30. The end 22 includes a core 221 that propagates light and a clad 222 that surrounds the core 221.

この様に光ファイバ2a及び光ファイバ2bは、ヘッド筐体30内において、クラッド222同士が外接した状態で配置される。このため、きず等の不具合があれば、検出光DLの一部が、光ファイバ2aから光ファイバ2b側に混入し、ヘッド部3から出射されることなく受光素子に戻り光として受光される場合がある。   As described above, the optical fiber 2 a and the optical fiber 2 b are arranged in the head housing 30 with the clads 222 being circumscribed. For this reason, if there is a defect such as a flaw, a part of the detection light DL is mixed from the optical fiber 2a to the optical fiber 2b side and is received as return light by the light receiving element without being emitted from the head unit 3. There is.

レンズユニット33の対物レンズ34は、光ファイバ2aの端面に対向させた状態で配置されている。レンズユニット33をヘッド筐体30に対して移動させることにより、焦点距離、スポット径等の調整が可能である。   The objective lens 34 of the lens unit 33 is disposed so as to face the end face of the optical fiber 2a. By moving the lens unit 33 with respect to the head housing 30, the focal length, the spot diameter, and the like can be adjusted.

この様な対物レンズ34を備えた光電スイッチ1では、検出光DLの一部が対物レンズ34の内面により反射され、対物レンズ34から出射されることなく受光素子に戻り光として受光される場合がある。本実施の形態による光電スイッチ1では、上述した戻り光による誤検出を抑制するために、ユーザが補正を指示したタイミングで各色の受光量を取得し、その受光量を用いて通常検出時の受光量を補正する処理が行われる。   In the photoelectric switch 1 having such an objective lens 34, a part of the detection light DL is reflected by the inner surface of the objective lens 34 and may be received as return light by the light receiving element without being emitted from the objective lens 34. is there. In the photoelectric switch 1 according to the present embodiment, in order to suppress the erroneous detection due to the return light described above, the received light amount of each color is acquired at the timing when the user instructs correction, and the received light amount at the time of normal detection is obtained using the received light amount. Processing for correcting the amount is performed.

<本体部10>
図4は、図1の本体部10を示した平面図である。図中の(a)には、本体部10の前面が示され、(b)には、本体部10の右側面が示されている。図5は、図4の本体部10をB1−B1切断線により切断した場合の切断面を示した断面図である。図6は、図4の本体部10をB2−B2切断線により切断した場合の切断面を示した断面図である。図5及び図6には、矢印により示した方向から切断面を見た場合が示されている。図7は、図4の本体部10を展開して示した斜視図である。図8は、図7の光学モジュール42を展開して示した斜視図である。図9は、図8の投光モジュール50を展開して示した斜視図である。
<Main body 10>
FIG. 4 is a plan view showing the main body 10 of FIG. In the figure, (a) shows the front surface of the main body 10 and (b) shows the right side of the main body 10. FIG. 5 is a cross-sectional view showing a cut surface when the main body 10 of FIG. 4 is cut along a B1-B1 cutting line. FIG. 6 is a cross-sectional view showing a cut surface when the main body 10 of FIG. 4 is cut along a B2-B2 cutting line. 5 and 6 show the case where the cut surface is viewed from the direction indicated by the arrow. FIG. 7 is an exploded perspective view of the main body 10 of FIG. FIG. 8 is an exploded perspective view of the optical module 42 of FIG. FIG. 9 is an exploded perspective view of the light projecting module 50 of FIG.

この光電スイッチ1は、本体筐体15、操作キー16、絶縁フィルム41、光学モジュール42、メイン基板43及びシールドシート44により構成される。本体筐体15は、回路素子、光学部品等を収容するための直方体形状のケーシングであり、収容部15a及び本体カバー15bからなる。   The photoelectric switch 1 includes a main body casing 15, operation keys 16, an insulating film 41, an optical module 42, a main substrate 43, and a shield sheet 44. The body housing 15 is a rectangular parallelepiped casing for housing circuit elements, optical components, and the like, and includes a housing portion 15a and a body cover 15b.

収容部15aは、右側面が開口した箱体であり、絶縁フィルム41、光学モジュール42、メイン基板43及びシールドシート44がこの順序で収容される。本体カバー15bは、収容部15aの開口を塞ぐ側板であり、収容部15aに取り付けられる。収容部15a及び本体カバー15bは、高熱伝導性材料により形成される。高熱伝導性材料は、高い熱伝導性を有する材料であり、放熱性に優れる。   The accommodating portion 15a is a box having an opening on the right side, and the insulating film 41, the optical module 42, the main substrate 43, and the shield sheet 44 are accommodated in this order. The main body cover 15b is a side plate that closes the opening of the housing portion 15a, and is attached to the housing portion 15a. The accommodating portion 15a and the main body cover 15b are formed of a high thermal conductivity material. The high thermal conductivity material is a material having high thermal conductivity and is excellent in heat dissipation.

例えば、収容部15a及び本体カバー15bは、樹脂などに比べて熱伝導率が高い金属を用いて形成される。この光電スイッチ1では、亜鉛ダイカスト製の本体筐体15が用いられている。表示灯11、操作キー12,16、取付穴13、表示パネル17及びファイバ接続部18と、後述するクランプモジュール70とは、本体部10の収容部15aに設けられている。   For example, the accommodating portion 15a and the main body cover 15b are formed using a metal having a higher thermal conductivity than a resin or the like. In the photoelectric switch 1, a main body housing 15 made of zinc die casting is used. The indicator lamp 11, the operation keys 12 and 16, the mounting hole 13, the display panel 17, the fiber connection portion 18, and a clamp module 70 described later are provided in the housing portion 15 a of the main body portion 10.

操作キー16は、ワーク判定用の閾値を指定する際に使用される押下式の方向キーであり、アップキー及びダウンキーにより構成される。アップキーを操作することにより、数値をインクリメントすることができ、ダウンキーを操作することにより、数値をデクリメントすることができる。操作キー16は、収容部15aの背面に配設されている。   The operation key 16 is a push-type direction key used when designating a threshold value for workpiece determination, and includes an up key and a down key. The numerical value can be incremented by operating the up key, and the numerical value can be decremented by operating the down key. The operation key 16 is disposed on the back surface of the housing portion 15a.

表示パネル17は、ワーク判定用の閾値や一致度を表示する表示装置であり、収容部15aの背面に配設されている。例えば、表示パネル17は、7セグメント表示器である。なお、表示パネル17には、LCD(Liquid Crystal Display:液晶ディスプレイ)などのアクティブマトリクス駆動方式の表示装置を用いても良い。   The display panel 17 is a display device that displays a threshold value and a degree of coincidence for workpiece determination, and is disposed on the back surface of the housing portion 15a. For example, the display panel 17 is a 7-segment display. The display panel 17 may be an active matrix drive type display device such as an LCD (Liquid Crystal Display).

ファイバ接続部18は、光ファイバケーブル2が着脱可能に接続されるファイバケーブル着脱部であり、クランプモジュール70に配設されている。光ファイバ2aの端部及び光ファイバ2bの端部は、ファイバ接続部18内において平行に配置され、互いに上下方向に離間している。   The fiber connection portion 18 is a fiber cable attachment / detachment portion to which the optical fiber cable 2 is detachably connected, and is disposed in the clamp module 70. The end portion of the optical fiber 2a and the end portion of the optical fiber 2b are arranged in parallel in the fiber connection portion 18 and are separated from each other in the vertical direction.

絶縁フィルム41は、電気絶縁性を有し、収容部15aの側壁に沿って配置されるシート状の部材である。この絶縁フィルム41は、回路素子を本体筐体15から電気的に絶縁する樹脂製のフィルムであり、左側の側壁に密着させて配置される。   The insulating film 41 is a sheet-like member that has electrical insulation and is disposed along the side wall of the housing portion 15a. The insulating film 41 is a resin film that electrically insulates the circuit element from the main body casing 15 and is disposed in close contact with the left side wall.

絶縁フィルム41は、熱伝導性が高い方が好ましいが、厚みが0.5mm程度を下回れば、熱伝導性を特に考慮しなくても熱抵抗は低く、より好ましくは厚みが0.1mm程度であれば、絶縁フィルム41を介して本体筐体15へ放熱することができる。なお、絶縁フィルム41に代えて熱伝導性及び絶縁性が高い絶縁物を介在させ、放熱性と電気絶縁性の両立をさせることもできる。   The insulating film 41 preferably has a high thermal conductivity, but if the thickness is less than about 0.5 mm, the thermal resistance is low even if the thermal conductivity is not particularly considered, and more preferably the thickness is about 0.1 mm. If there is, heat can be radiated to the main body casing 15 via the insulating film 41. In addition, it can replace with the insulating film 41 and can interpose an insulator with high heat conductivity and insulation, and can also make heat dissipation and electrical insulation compatible.

<光学モジュール42>
光学モジュール42は、光学ベースフレーム420、投光モジュール50、受光基板60、PDユニット61及びガラス板62により構成される。光学ベースフレーム420は、光学部品及び回路基板を支持する支持部材である。
<Optical module 42>
The optical module 42 includes an optical base frame 420, a light projecting module 50, a light receiving substrate 60, a PD unit 61, and a glass plate 62. The optical base frame 420 is a support member that supports the optical component and the circuit board.

<投光モジュール50>
投光モジュール50は、投光基板51、発光素子52、投光基板ホルダ53、放熱シート54、調整スペーサ55、ファイバホルダ56、ガラスファイバ57、クッション材58及びファイバ押え59により構成される。
<Light Emitting Module 50>
The light projecting module 50 includes a light projecting substrate 51, a light emitting element 52, a light projecting substrate holder 53, a heat dissipation sheet 54, an adjustment spacer 55, a fiber holder 56, a glass fiber 57, a cushion material 58, and a fiber presser 59.

発光素子52は、検出光DLを生成する投光用光源である。この発光素子52は、色相が異なる2以上の色成分を含む白色光を検出光DLとして生成するLED(Light Emitting Diode:発光ダイオード)であり、矩形状の半導体チップからなり、投光基板51に面実装されている。投光基板51は、投光用の回路素子が設けられた回路基板である。この投光基板51は、発光素子52の発光面を前方に向けた状態で配置される。   The light emitting element 52 is a light source for projection that generates the detection light DL. The light emitting element 52 is an LED (Light Emitting Diode) that generates white light including two or more color components having different hues as the detection light DL. The light emitting element 52 includes a rectangular semiconductor chip, and is disposed on the light projecting substrate 51. Surface mounted. The light projecting board 51 is a circuit board provided with circuit elements for light projection. The light projecting substrate 51 is arranged with the light emitting surface of the light emitting element 52 facing forward.

発光素子52は、補色の関係にある2以上の色の光を混ぜることによって白色光を生成する白色LEDである。例えば、発光素子52は、青色光を放射する半導体素子層と、蛍光体を有する蛍光体層とを積層した積層体により構成される。蛍光体層は、透光性の樹脂又はガラスにより蛍光体が固定されており、蛍光体は、半導体素子層の放射光によって励起され、青色光よりも波長が長い光、例えば、黄色光を発する。   The light emitting element 52 is a white LED that generates white light by mixing light of two or more colors having a complementary color relationship. For example, the light emitting element 52 includes a stacked body in which a semiconductor element layer that emits blue light and a phosphor layer having a phosphor are stacked. The phosphor layer is fixed with a translucent resin or glass, and the phosphor is excited by the radiation of the semiconductor element layer and emits light having a longer wavelength than blue light, for example, yellow light. .

投光基板ホルダ53は、投光基板51を保持するとともに、発光素子52などの回路素子において発生した熱を放熱させるためのヒートシンク部材であり、高熱伝導性材料により形成される。例えば、亜鉛ダイカスト等の金属材料により形成される。この投光基板ホルダ53は、投光基板51の前面と対向するように配置される。   The light projecting substrate holder 53 is a heat sink member for holding the light projecting substrate 51 and dissipating heat generated in the circuit elements such as the light emitting elements 52, and is made of a highly thermally conductive material. For example, it is formed of a metal material such as zinc die casting. The light projecting substrate holder 53 is disposed so as to face the front surface of the light projecting substrate 51.

放熱シート54は、高熱伝導性樹脂からなる板状の部材であり、収容部15aの側壁と投光基板ホルダ53との間に配置される。例えば、放熱シート54は、シリコーンゴムにより形成される。投光基板ホルダ53が金属製である場合、放熱シート54は、電気絶縁性を有することが好ましい。なお、絶縁フィルム41を設けない場合、放熱シート54は、電気絶縁性を有することが好ましい。   The heat radiating sheet 54 is a plate-like member made of a highly heat conductive resin, and is disposed between the side wall of the housing portion 15 a and the light projecting substrate holder 53. For example, the heat dissipation sheet 54 is formed of silicone rubber. When the light projecting substrate holder 53 is made of metal, the heat dissipation sheet 54 preferably has electrical insulation. In addition, when not providing the insulating film 41, it is preferable that the thermal radiation sheet 54 has electrical insulation.

放熱シート54は、好ましくは、ゴム、エラストマ、ゲル状体等の凹凸面や曲面への密着追従性が高い部材で形成され、収容部15aの側壁に配置される絶縁フィルム41と投光基板ホルダ53とに密着し、高い放熱性を実現する。例えば、放熱シート54は、電気絶縁性及び熱伝導性のシリコーンやアクリル樹脂のゴム、エラストマ、又は、ゲル状体からなる。なお、絶縁フィルム41を設けない場合、放熱シート54は、収容部15aの側壁と投光基板ホルダ53とに密着する。   The heat radiating sheet 54 is preferably formed of a member having high adhesion followability to uneven surfaces and curved surfaces such as rubber, elastomer, and gel-like body, and the insulating film 41 and the light projecting substrate holder disposed on the side wall of the housing portion 15a. Adheres to 53 and realizes high heat dissipation. For example, the heat radiating sheet 54 is made of electrically insulating and thermally conductive silicone or acrylic resin rubber, elastomer, or gel. When the insulating film 41 is not provided, the heat dissipation sheet 54 is in close contact with the side wall of the housing portion 15 a and the light projecting substrate holder 53.

ガラスファイバ57は、発光素子52から出射された検出光DLを光ファイバケーブル2の本体部側の端部にまで導光する導光用の光学部品であり、ガラス製の光ファイバからなる。このガラスファイバ57は、前後方向に延びる円柱形状であり、後端面を発光素子52の発光面に対向させ、前端面を光ファイバ2aの端面に対向させた状態で配置される。また、ガラスファイバ57は、光ファイバ2aと同軸に配置される。   The glass fiber 57 is a light guiding optical component that guides the detection light DL emitted from the light emitting element 52 to the end of the optical fiber cable 2 on the main body side, and is made of a glass optical fiber. The glass fiber 57 has a cylindrical shape extending in the front-rear direction, and is disposed in a state where the rear end surface is opposed to the light emitting surface of the light emitting element 52 and the front end surface is opposed to the end surface of the optical fiber 2a. Moreover, the glass fiber 57 is arrange | positioned coaxially with the optical fiber 2a.

ファイバホルダ56は、ガラスファイバ57を保持する保持部材であり、投光基板ホルダ53に固定される。ファイバ押え59は、ガラスファイバ57との間にクッション材58を挟み込んだ状態で、ファイバホルダ56に取り付けられる。調整スペーサ55は、投光基板ホルダ53とファイバホルダ56との間に配置されるシート状の部材である。   The fiber holder 56 is a holding member that holds the glass fiber 57 and is fixed to the light projecting substrate holder 53. The fiber retainer 59 is attached to the fiber holder 56 with a cushion material 58 sandwiched between the fiber retainer 59 and the glass fiber 57. The adjustment spacer 55 is a sheet-like member disposed between the light projecting substrate holder 53 and the fiber holder 56.

<受光モジュール>
PDユニット61は、検出領域からの反射光を2以上の特定波長に対応して選択的に受光し、特定波長ごとの受光量にそれぞれ対応する2以上の受光信号を生成する受光素子ユニットであり、2以上のPD(Photo Diode:フォトダイオード)により構成される。このPDユニット61は、PDが受光基板60上に2次元的に配列された多分割PDユニットである。例えば、各PDは、12×24のマトリクス状に配列される。
<Light receiving module>
The PD unit 61 is a light receiving element unit that selectively receives reflected light from the detection region corresponding to two or more specific wavelengths and generates two or more received light signals respectively corresponding to the received light amounts for the specific wavelengths. It is composed of two or more PDs (Photo Diodes). The PD unit 61 is a multi-division PD unit in which PDs are two-dimensionally arranged on the light receiving substrate 60. For example, each PD is arranged in a 12 × 24 matrix.

受光基板60は、受光用の回路素子が設けられた回路基板である。この受光基板60は、PDユニット61の受光面を前方に向けた状態で光学ベースフレーム420に固定されている。   The light receiving substrate 60 is a circuit substrate provided with a light receiving circuit element. The light receiving substrate 60 is fixed to the optical base frame 420 with the light receiving surface of the PD unit 61 facing forward.

ガラス板62は、光ファイバケーブル2の端部とPDユニット61の受光面との衝突を防止するための突き当て保護部材であり、検出領域からの反射光を透過させるガラス製の透明な板部材からなる。このガラス板62は、背面をPDユニット61の受光面に対向させ、前面を光ファイバ2bの端面に対向させた状態で配置される。受光用の光学部品及び回路素子は、投光用の光学部品及び回路素子よりも下側に配置される。   The glass plate 62 is a butting protection member for preventing a collision between the end of the optical fiber cable 2 and the light receiving surface of the PD unit 61, and is a transparent plate member made of glass that transmits reflected light from the detection region. Consists of. The glass plate 62 is arranged in a state where the back surface is opposed to the light receiving surface of the PD unit 61 and the front surface is opposed to the end surface of the optical fiber 2b. The optical components and circuit elements for receiving light are arranged below the optical components and circuit elements for projecting light.

メイン基板43は、演算回路などの回路素子が設けられた回路基板である。このメイン基板43は、回路形成面を本体カバー15b側に向けた状態で光学ベースフレーム420に取り付けられる。メイン基板43は、一方の面のみが回路形成面であっても良く、両面が回路形成面であっても良い。   The main board 43 is a circuit board provided with circuit elements such as an arithmetic circuit. The main board 43 is attached to the optical base frame 420 with the circuit forming surface facing the main body cover 15b. Only one surface of the main substrate 43 may be a circuit formation surface, or both surfaces may be circuit formation surfaces.

シールドシート44は、静電的、磁気的又は電磁的なシールド性能を有するシート状のシールド部材である。このシールドシート44は、本体筐体15内の回路素子を静電的、磁気的又は電磁的に絶縁するシートであり、メイン基板43と本体カバー15bとの間に配置される。シールドシート44は、電気絶縁性を有する樹脂性のフィルムで覆われていても良い。   The shield sheet 44 is a sheet-like shield member having electrostatic, magnetic or electromagnetic shielding performance. The shield sheet 44 is a sheet that electrostatically, magnetically, or electromagnetically insulates circuit elements in the main body casing 15 and is disposed between the main board 43 and the main body cover 15b. The shield sheet 44 may be covered with a resinous film having electrical insulation.

<ファイバ接続部18>
図10は、図4の本体部10のファイバ接続部18の構成例を示した図である。図中の(a)には、光ファイバケーブル2のコネクタ部21が接続された本体部10の前面が示され、(b)には、本体部10をC−C切断線により切断した場合の切断面が示されている。
<Fiber connection 18>
FIG. 10 is a diagram illustrating a configuration example of the fiber connection unit 18 of the main body unit 10 of FIG. (A) in the figure shows the front surface of the main body 10 to which the connector portion 21 of the optical fiber cable 2 is connected, and (b) shows the case where the main body 10 is cut along a CC cutting line. A cut surface is shown.

コネクタ部21は、光ファイバ2a及び2bを保持するファイバホルダ部211と、光ファイバケーブル2の本体部側の端部23を本体筐体15内に案内するガイド部212とにより構成される。光ファイバ2a及び2bは、いずれも前後方向の直線状に延び、互いに上下方向に離間し、かつ、平行な状態でコネクタ部21に保持されている。   The connector unit 21 includes a fiber holder unit 211 that holds the optical fibers 2 a and 2 b, and a guide unit 212 that guides the end 23 on the main body side of the optical fiber cable 2 into the main body housing 15. The optical fibers 2a and 2b both extend in a straight line in the front-rear direction, are spaced apart from each other in the vertical direction, and are held by the connector portion 21 in a parallel state.

ガイド部212は、光ファイバ2aに沿って前後方向に延びる投光ガイド部212aと、光ファイバ2bに沿って前後方向に延びる受光ガイド部212bとを有し、ファイバホルダ部211に取り付けられている。   The guide part 212 includes a light projection guide part 212 a extending in the front-rear direction along the optical fiber 2 a and a light-receiving guide part 212 b extending in the front-rear direction along the optical fiber 2 b, and is attached to the fiber holder part 211. .

ファイバ接続部18には、この様なコネクタ部21が前後方向に着脱される。クランプモジュール70は、コネクタ部21が本体部10から抜け落ちないようにコネクタ部21を固定するためのスライド式のロック機構であり、本体筐体15に取り付けられている。   Such a connector portion 21 is attached to and detached from the fiber connection portion 18 in the front-rear direction. The clamp module 70 is a slide type locking mechanism for fixing the connector portion 21 so that the connector portion 21 does not fall off the main body portion 10, and is attached to the main body housing 15.

投光モジュール50のガラスファイバ57は、発光素子52と光ファイバ2aの端部23との間に配置される。ガラスファイバ57の後端面は、発光素子52の発光面から僅かに離間している。ガラスファイバ57の前端面も、光ファイバ2aの端面から僅かに離間している。なお、ガラスファイバ57の前端面と、光ファイバ2aの端面とが当接するように構成しても良い。   The glass fiber 57 of the light projecting module 50 is disposed between the light emitting element 52 and the end 23 of the optical fiber 2a. The rear end surface of the glass fiber 57 is slightly separated from the light emitting surface of the light emitting element 52. The front end face of the glass fiber 57 is also slightly separated from the end face of the optical fiber 2a. In addition, you may comprise so that the front-end surface of the glass fiber 57 and the end surface of the optical fiber 2a may contact | abut.

この様なガラスファイバ57を用いて検出光DLを光ファイバ2aに導光させることにより、光学レンズを用いる場合に比べ、伝送損失を低減させることができる。また、ガラス製の光ファイバを用いることにより、樹脂製の光ファイバを用いる場合に比べ、発光素子52からの熱による変形を抑制することができる。   By using such a glass fiber 57 to guide the detection light DL to the optical fiber 2a, transmission loss can be reduced as compared with the case of using an optical lens. In addition, by using a glass optical fiber, it is possible to suppress deformation due to heat from the light emitting element 52 as compared to the case of using a resin optical fiber.

受光モジュールのガラス板62は、PDユニット61と光ファイバ2bの端部23との間に配置される。ガラス板62の背面は、PDユニット61の受光面から僅かに離間している。ガラス板62の前面も、光ファイバ2bの端面から僅かに離間している。   The glass plate 62 of the light receiving module is disposed between the PD unit 61 and the end 23 of the optical fiber 2b. The back surface of the glass plate 62 is slightly separated from the light receiving surface of the PD unit 61. The front surface of the glass plate 62 is also slightly separated from the end surface of the optical fiber 2b.

<クランプモジュール70>
図11は、図10のクランプモジュール70を展開して示した斜視図である。図12は、図10のクランプモジュール70の動作例を示した図である。図中の(a)には、クランプモジュール70がロック状態にある場合が示され、(b)には、クランプモジュール70が開放状態にある場合が示されている。
<Clamp module 70>
FIG. 11 is an exploded perspective view of the clamp module 70 of FIG. FIG. 12 is a diagram illustrating an operation example of the clamp module 70 of FIG. (A) in the drawing shows a case where the clamp module 70 is in a locked state, and (b) shows a case where the clamp module 70 is in an open state.

このクランプモジュール70は、クランプケース71、スライドケース72、シール押え73、フロントパッキン74、クランプケースパッキン75、ファイバホルダ76、ホルダ押え77、ホルダガイド78、ギアレバー79、ブッシュパッキン80、ギア81及びカムギア82により構成される。   The clamp module 70 includes a clamp case 71, a slide case 72, a seal holder 73, a front packing 74, a clamp case packing 75, a fiber holder 76, a holder holder 77, a holder guide 78, a gear lever 79, a bush packing 80, a gear 81, and a cam gear. 82.

クランプケース71は、ファイバホルダ76、ホルダ押え77、ホルダガイド78、ギア81及びカムギア82を収容する部材であり、コネクタ部21のガイド部212が配置される2つの貫通孔、シール押え73が配置されるシール押え配置部、ギアレバー79を回転可能に収容するギアレバー収容部等が形成されている。   The clamp case 71 is a member that accommodates the fiber holder 76, the holder retainer 77, the holder guide 78, the gear 81, and the cam gear 82. The two through holes in which the guide portions 212 of the connector portion 21 are disposed and the seal retainer 73 are disposed. A seal-pressing arrangement portion, a gear lever accommodating portion for accommodating the gear lever 79 rotatably, and the like are formed.

スライドケース72は、クランプケース71に対し、上下方向に移動可能に取り付けられ、上下方向の移動に連動するように、左右方向に延びる回転軸を中心としてギアレバー79を回転させる。ギアレバー79は、ギア81を貫通し、左右方向に延びる回転軸を中心としてギア81を回転させる。ギアレバー79とクランプケース71との間には、円環状のブッシュパッキン80が配置される。   The slide case 72 is attached to the clamp case 71 so as to be movable in the vertical direction, and rotates the gear lever 79 around the rotation axis extending in the horizontal direction so as to be interlocked with the movement in the vertical direction. The gear lever 79 passes through the gear 81 and rotates the gear 81 around a rotation axis extending in the left-right direction. An annular bush packing 80 is disposed between the gear lever 79 and the clamp case 71.

ファイバホルダ76は、ガイド部212の先端部を保持する部材である。ホルダガイド78は、ファイバホルダ76の可動部を上下方向に案内するプレート状の部材である。ホルダ押え77は、カムギア82と接触し、カムギア82の回転に連動するように、ファイバホルダ76の可動部を上方へ押し上げる。カムギア82は、ギア81と噛み合い、ギア81の回転に連動するように、ホルダ押え77を上下方向に移動させる。   The fiber holder 76 is a member that holds the distal end portion of the guide portion 212. The holder guide 78 is a plate-like member that guides the movable part of the fiber holder 76 in the vertical direction. The holder presser 77 comes into contact with the cam gear 82 and pushes up the movable portion of the fiber holder 76 so as to interlock with the rotation of the cam gear 82. The cam gear 82 meshes with the gear 81 and moves the holder presser 77 in the vertical direction so as to interlock with the rotation of the gear 81.

シール押え73は、フロントパッキン74をクランプケース71に固定するためのプレート状の部材であり、ガイド部212が配置される2つの貫通孔が形成されている。シール押え73は、フロントパッキン74を挟み込んだ状態でクランプケース71の前面側に取り付けられる。   The seal retainer 73 is a plate-like member for fixing the front packing 74 to the clamp case 71, and has two through holes in which the guide portion 212 is disposed. The seal retainer 73 is attached to the front side of the clamp case 71 with the front packing 74 sandwiched therebetween.

クランプケース71には、ファイバホルダ76、ホルダ押え77、ホルダガイド78、ギア81及びカムギア82が背面側から収容される。クランプケース71は、これらの部材を収容した状態で、クランプケースパッキン75を介し、本体筐体15の収容部15aに固定される。   In the clamp case 71, a fiber holder 76, a holder presser 77, a holder guide 78, a gear 81 and a cam gear 82 are accommodated from the back side. The clamp case 71 is fixed to the accommodating portion 15a of the main body housing 15 via the clamp case packing 75 in a state where these members are accommodated.

クランプモジュール70のロック状態とは、スライドケース72を下方のロック位置に移動させることにより、ガイド部212がファイバホルダ76に固定された状態のことである。このロック状態では、カムギア82によってホルダ押え77が上方に押し上げられることにより、ガイド部212の先端部がファイバホルダ76によって締め付けられ、ファイバホルダ76に対して固定される。   The locked state of the clamp module 70 is a state in which the guide portion 212 is fixed to the fiber holder 76 by moving the slide case 72 to the lower locked position. In this locked state, the holder presser 77 is pushed upward by the cam gear 82, whereby the tip end portion of the guide portion 212 is fastened by the fiber holder 76 and fixed to the fiber holder 76.

一方、クランプモジュール70の開放状態とは、スライドケース72を上方の開放位置に移動させることにより、ガイド部212をファイバホルダ76から抜き取ることが可能な状態のことである。この開放状態では、カムギア82の回転に連動してホルダ押え77が下方に下がることにより、ガイド部212の先端部に対するファイバホルダ76の締め付けが緩み、ファイバホルダ76に対するガイド部212の先端部の抜き取りが可能になる。   On the other hand, the open state of the clamp module 70 is a state in which the guide portion 212 can be removed from the fiber holder 76 by moving the slide case 72 to the upper open position. In this open state, the holder presser 77 is lowered downward in conjunction with the rotation of the cam gear 82, whereby the fiber holder 76 is loosely tightened with respect to the distal end portion of the guide portion 212, and the distal end portion of the guide portion 212 is removed from the fiber holder 76. Is possible.

この様なクランプモジュール70を設けることにより、ヘッド部3又は光ファイバケーブル2を容易に取り替えることができる。また、クランプモジュール70には、フロントパッキン74、クランプケースパッキン75及びブッシュパッキン80等のシール部材が配置されるため、クランプケース71内への水や塵埃の浸入を防止することができる。   By providing such a clamp module 70, the head unit 3 or the optical fiber cable 2 can be easily replaced. Further, since seal members such as the front packing 74, the clamp case packing 75, and the bush packing 80 are disposed in the clamp module 70, it is possible to prevent water and dust from entering the clamp case 71.

図13は、図4の本体部10内の機能構成の一例を示したブロック図である。この本体部10は、主制御部100、投光駆動部101、発光素子52、カラーフィルタ102、PDユニット61、アンプ部103、メモリ104、電源部105、入出力部106、表示部107及び操作部108により構成される。   FIG. 13 is a block diagram showing an example of a functional configuration in the main body 10 of FIG. The main unit 10 includes a main control unit 100, a light projecting drive unit 101, a light emitting element 52, a color filter 102, a PD unit 61, an amplifier unit 103, a memory 104, a power supply unit 105, an input / output unit 106, a display unit 107, and an operation. The unit 108 is configured.

主制御部100は、投受光を制御し、受光信号に基づいてワーク判定を行う。投光駆動部101は、主制御部100の指示に基づいて、発光素子52を駆動する。例えば、主制御部100は、投光駆動部101に指示する投光量を制御する。投光量は、PDユニット61の受光素子からの受光量に基づいて、受光量が一定の範囲内に収まるように制御される。   The main control unit 100 controls light projection and reception, and performs workpiece determination based on the light reception signal. The light projecting drive unit 101 drives the light emitting element 52 based on an instruction from the main control unit 100. For example, the main control unit 100 controls the light projection amount instructed to the light projection drive unit 101. The light projection amount is controlled based on the amount of light received from the light receiving element of the PD unit 61 so that the amount of received light is within a certain range.

反射率の高いワークの場合、受光量が相対的に大きくなるため、主制御部100は、受光量に基づいて投光駆動部101に相対的に小さい投光量を指示する。一方、反射率の低いワークの場合、受光量が相対的に小さくなるため、主制御部100は、受光量に基づいて投光駆動部101に相対的に大きい投光量を指示する。また、投光駆動部101は、主制御部100の投光量指示と投光タイミング指示とに基づいて、発光素子52をパルス駆動する。発光素子52がパルス駆動される場合、発光素子52のパルス発光量を図示しないモニタPDで測定し、測定されるパルス発光量が所定の目標値と一致するように投光駆動部101が制御されても良い。この場合、主制御部100は、目標値を調整することで発光素子52の発光量を調整することができる。   In the case of a workpiece having a high reflectance, the amount of received light is relatively large. Therefore, the main control unit 100 instructs the light projecting drive unit 101 on the basis of the amount of received light. On the other hand, since the received light amount is relatively small in the case of a work having a low reflectance, the main control unit 100 instructs the light projecting drive unit 101 on the basis of the received light amount. Further, the light projecting drive unit 101 performs pulse driving of the light emitting element 52 based on the light projection amount instruction and the light projection timing instruction from the main control unit 100. When the light emitting element 52 is pulse-driven, the pulse light emission amount of the light emitting element 52 is measured by a monitor PD (not shown), and the light projecting drive unit 101 is controlled so that the measured pulse light emission amount matches a predetermined target value. May be. In this case, the main control unit 100 can adjust the light emission amount of the light emitting element 52 by adjusting the target value.

検出光DLは、ヘッド部3から検出領域に向けて出射される。検出領域からの反射光RLは、カラーフィルタ102を介してPDユニット61に入射される。カラーフィルタ102は、2次元位置に応じて特定波長の色成分の光を選択的に透過させる光学部品であり、PDユニット61の受光面上に配置される。このカラーフィルタ102では、赤色光、緑色光又は青色光のいずれかをそれぞれ選択的に透過させるRフィルタ領域、Gフィルタ領域及びBフィルタ領域がマトリクス状に配置される。Rフィルタ領域、Gフィルタ領域及びBフィルタ領域は、いずれも微小な矩形領域からなり、多数の受光素子(PD)に対応づけて形成される。   The detection light DL is emitted from the head unit 3 toward the detection region. The reflected light RL from the detection region is incident on the PD unit 61 via the color filter 102. The color filter 102 is an optical component that selectively transmits light of a color component having a specific wavelength according to a two-dimensional position, and is disposed on the light receiving surface of the PD unit 61. In the color filter 102, an R filter region, a G filter region, and a B filter region that selectively transmit any of red light, green light, and blue light are arranged in a matrix. Each of the R filter region, the G filter region, and the B filter region is formed of a minute rectangular region, and is formed in association with a large number of light receiving elements (PD).

PDユニット61は、反射光RLを受光して受光信号を生成する。アンプ部103は、PDユニット61の各受光素子から入力される受光信号を増幅して主制御部100へ出力する増幅器ユニットである。このアンプ部103は、ゲインを切り替えることができる。受光信号は、特定波長の色成分ごとに増幅して主制御部100へ出力される。アンプ部103のゲインは、主制御部100による発光素子52の発光量の調整と同様に、受光素子からの受光量を表す受光信号に基づいて、受光量が一定の範囲内に収まるように主制御部100により制御される。主制御部100は、受光信号に基づいてアンプ部103のゲインと発光素子52の発光量の両方を制御するようにしても良い。   The PD unit 61 receives the reflected light RL and generates a light reception signal. The amplifier unit 103 is an amplifier unit that amplifies a light reception signal input from each light receiving element of the PD unit 61 and outputs the amplified signal to the main control unit 100. The amplifier unit 103 can switch the gain. The light reception signal is amplified for each color component of a specific wavelength and output to the main control unit 100. Similarly to the adjustment of the light emission amount of the light emitting element 52 by the main control unit 100, the gain of the amplifier unit 103 is based on the light reception signal indicating the light reception amount from the light receiving element so that the light reception amount is within a certain range. It is controlled by the control unit 100. The main control unit 100 may control both the gain of the amplifier unit 103 and the light emission amount of the light emitting element 52 based on the light reception signal.

メモリ104には、ワーク判定用の閾値、基準色の色情報などが保持される。電源部105は、配線ケーブル14を介してコントローラなどの外部機器に接続され、主制御部100の制御に基づいて、主制御部100や投光駆動部101に直流電源を供給する。入出力部106は、配線ケーブル14を介してコントローラなどの外部機器に接続され、制御用信号を受信して主制御部100へ出力し、主制御部100から入力された検出信号を外部機器へ送信する。   The memory 104 holds a work determination threshold value, reference color information, and the like. The power supply unit 105 is connected to an external device such as a controller via the wiring cable 14 and supplies DC power to the main control unit 100 and the light projecting drive unit 101 based on the control of the main control unit 100. The input / output unit 106 is connected to an external device such as a controller via the wiring cable 14, receives a control signal, outputs the control signal to the main control unit 100, and outputs a detection signal input from the main control unit 100 to the external device. Send.

表示部107は、主制御部100の制御に基づいて、ワーク判定用の閾値、一致度、色差等を表示パネル17に表示する。操作部108は、操作キー12及び16の押下操作に基づいて、操作信号を生成し、主制御部100へ出力する。   Based on the control of the main control unit 100, the display unit 107 displays a threshold value for work determination, a matching degree, a color difference, and the like on the display panel 17. The operation unit 108 generates an operation signal based on the pressing operation of the operation keys 12 and 16 and outputs the operation signal to the main control unit 100.

<主制御部100>
図14は、図13の主制御部100の構成例を示したブロック図である。この主制御部100は、投光量制御部110、ゲイン制御部111、色情報取得部112、基準色取得部113、一致度算出部114、検出信号出力部115、補正指示受付部116、戻り光量取得部117、戻り光量記憶部118、戻り光補正部119、パラメータ指定部120、判定閾値記憶部121及び基準色取込指示受付部122により構成される。
<Main control unit 100>
FIG. 14 is a block diagram illustrating a configuration example of the main control unit 100 of FIG. The main control unit 100 includes a light projection amount control unit 110, a gain control unit 111, a color information acquisition unit 112, a reference color acquisition unit 113, a coincidence degree calculation unit 114, a detection signal output unit 115, a correction instruction reception unit 116, and a return light amount. The acquisition unit 117, the return light amount storage unit 118, the return light correction unit 119, the parameter specification unit 120, the determination threshold storage unit 121, and the reference color capture instruction reception unit 122 are configured.

投光量制御部110は、アンプ部103から入力される受光信号に基づいて、投光駆動部101を制御し、検出光DLの投光量を調整する。例えば、反射光RLの受光量が一定レベルを上回った場合に、投光量を下げる一方、反射光RLの受光量が当該一定レベルを下回った場合に、投光量を上げて元の状態に戻す制御が行われる。   The light projection amount control unit 110 controls the light projection drive unit 101 based on the light reception signal input from the amplifier unit 103 and adjusts the light projection amount of the detection light DL. For example, when the amount of reflected light RL received exceeds a certain level, the amount of light emitted is reduced. On the other hand, when the amount of reflected light RL received below the certain level, the amount of emitted light is increased to return to the original state. Is done.

ゲイン制御部111は、アンプ部103から入力される受光信号に基づいて、アンプ部103のゲインを調整する。例えば、反射光RLの受光量が一定レベルを上回った場合に、アンプ部103のゲインを下げる一方、反射光RLの受光量が当該一定レベルを下回った場合に、アンプ部103のゲインを上げて元の状態に戻す制御が行われる。この様な投光量及びゲインの制御は、RGBのいずれかの受光量に基づいて行われる。或いは、RGBの各受光量を組み合わせて得られるパラメータに基づいて行われる。   The gain control unit 111 adjusts the gain of the amplifier unit 103 based on the light reception signal input from the amplifier unit 103. For example, when the amount of reflected light RL received exceeds a certain level, the gain of the amplifier unit 103 is decreased. On the other hand, when the amount of reflected light RL received below the certain level, the gain of the amplifier 103 is increased. Control to return to the original state is performed. Such control of the light projection amount and the gain is performed based on the received light amount of RGB. Alternatively, it is performed based on parameters obtained by combining the received light amounts of RGB.

色情報取得部112は、2以上の特定波長にそれぞれ対応する2以上の受光信号に基づいて、色情報を取得し、基準色取得部113及び一致度算出部114へ出力する。取得される色情報は、少なくとも2つの特定波長の受光量を比較して取得される。例えば、色情報取得部112は、赤色成分の受光量、緑色成分の受光量及び青色成分の受光量の和に対する各色成分の受光量の比率を含む色情報を取得する。具体的には、赤色光の受光量レベルをR、緑色光の受光量レベルをG、青色光の受光量レベルをBとし、受光量の和をM=R+G+Bとすれば、3色の受光量レベルの比率r=R/M,g=G/M,b=B/Mを用いた組(r,g,b)により色が表される。色情報(r,g,b)は、周期的に繰り返し取得される。 The color information acquisition unit 112 acquires color information based on two or more received light signals respectively corresponding to two or more specific wavelengths, and outputs the color information to the reference color acquisition unit 113 and the matching degree calculation unit 114. The acquired color information is acquired by comparing the received light amounts of at least two specific wavelengths. For example, the color information acquisition unit 112 acquires color information including the ratio of the received light amount of each color component to the sum of the received light amount of the red component, the received light amount of the green component, and the received light amount of the blue component. Specifically, the received light amount level of red light is R 1 , the received light amount level of green light is G 1 , the received light amount level of blue light is B 1, and the sum of received light amounts is M k = R k + G k + B k. Then, a set (r 1 , g 1 , b) using the ratios r k = R k / M k , g k = G k / M k , and b k = B k / M k of the three light reception levels. The color is expressed by 1 ). The color information (r 1 , g 1 , b 1 ) is periodically and repeatedly acquired.

基準色取込指示受付部122は、操作部108からの操作信号に基づいて、基準色の取込指示を受け付け、色情報取得部112に色情報の取込を指示する。例えば、ラベルやレジマークを検出する場合、ラベル又はレジマークがない状態で、基準色の取込が指示される。基準色取得部113は、基準色取込指示に従って色情報取得部112により取得された色情報(r,g,b)を基準色に指定する。 The reference color capture instruction receiving unit 122 receives a reference color capture instruction based on an operation signal from the operation unit 108 and instructs the color information acquisition unit 112 to capture color information. For example, when a label or registration mark is detected, the reference color is instructed in the absence of the label or registration mark. The reference color acquisition unit 113 specifies the color information (r 0 , g 0 , b 0 ) acquired by the color information acquisition unit 112 in accordance with the reference color acquisition instruction as a reference color.

一致度算出部114は、色情報取得部112により取得された色情報(r,g,b)を基準色取得部113により指定された基準色の色情報(r,g,b)と比較して両色情報の一致度Cを算出し、検出信号出力部115へ出力する。一致度Cは、色の一致の度合いを示すパラメータであり、比較対象の色がワーク判定の基準として登録された色にどれだけ類似しているのかが定量的に評価される。 The coincidence degree calculation unit 114 uses the color information (r 1 , g 1 , b 1 ) acquired by the color information acquisition unit 112 as the color information (r 0 , g 0 , b 0 ), the degree of coincidence C between the two color information is calculated and output to the detection signal output unit 115. The degree of coincidence C is a parameter indicating the degree of color coincidence, and it is quantitatively evaluated how much the color to be compared is similar to the color registered as a reference for work determination.

例えば、一致度Cは、0以上999以下の整数を用いて表される。この場合、一致度Cの上限は999であり、比較対象の色が基準色と完全に一致していれば、一致度Cは999である。なお、一致度Cは、1以上1000以下の整数を用いて表しても良い。この場合、一致度Cの上限は1000であり、比較対象の色が基準色と完全に一致していれば、一致度Cは1000である。   For example, the degree of coincidence C is expressed using an integer of 0 or more and 999 or less. In this case, the upper limit of the matching degree C is 999, and the matching degree C is 999 if the color to be compared completely matches the reference color. The degree of coincidence C may be expressed using an integer of 1 to 1000. In this case, the upper limit of the matching degree C is 1000, and the matching degree C is 1000 if the color to be compared completely matches the reference color.

表示部107は、一致度算出部114により算出された一致度Cを表示パネル17に表示する。なお、色情報として、各色の受光量レベルの比率であるr,g,bの組(r,g,b)を例示したが、本発明では、色情報の構成をこれに限らない。例えば、赤色光の受光量レベル、緑色光の受光量レベル、青色光の受光量レベルの組(R,G,B)を色情報としても良い。また、RGB表色系に限られず、Lab等の表色系に基づく各色成分の値からなる組を色情報としても良い。 The display unit 107 displays the matching degree C calculated by the matching degree calculation unit 114 on the display panel 17. In addition, as the color information, a set of r k , g k , and b k (r k , g k , b k ), which is the ratio of the received light amount level of each color, has been illustrated. Not limited to. For example, a combination (R k , G k , B k ) of a received light level of red light, a received light level of green light, and a received light level of blue light may be used as color information. Further, the color information is not limited to the RGB color system, and a set of color component values based on the color system such as Lab may be used as the color information.

検出信号出力部115は、一致度算出部114により算出された一致度Cを予め定められた判定閾値Cdと比較してワーク判定を行い、このワーク判定の結果に基づいて検出信号を出力する。検出信号は、入出力部106を介して外部機器へ送信される。運転モードでは、色情報が新たに取得されるごとに、一致度Cが算出され、ワーク判定が行われる。例えば、一致度Cが判定閾値Cdを下回った場合に、光電スイッチ1の検出信号は、オン状態に遷移する。一方、一致度Cが判定閾値Cd以上となった場合に、光電スイッチ1の検出信号は、オフ状態に遷移する。   The detection signal output unit 115 compares the degree of coincidence C calculated by the degree of coincidence calculation unit 114 with a predetermined determination threshold Cd to perform work determination, and outputs a detection signal based on the result of the work determination. The detection signal is transmitted to an external device via the input / output unit 106. In the operation mode, every time color information is newly acquired, the degree of coincidence C is calculated, and the work determination is performed. For example, when the degree of coincidence C falls below the determination threshold Cd, the detection signal of the photoelectric switch 1 transitions to an on state. On the other hand, when the degree of coincidence C is equal to or higher than the determination threshold Cd, the detection signal of the photoelectric switch 1 transitions to an off state.

補正指示受付部116は、操作部108からの操作信号に基づいて、補正指示を受け付け、戻り光量取得部117に受光信号の取込を指示する。例えば、補正指示受付部116は、戻り光量取得部117による受光信号の取込時期を指示するものであり、取込時期として、例えば、取込タイミングや取込期間を指示するものである。投光モジュール50から検出光DLが投光されている状態で、ワークWや背景に物体がない状態であれば、検出領域からの反射光RLはPDユニット61で受光されず、検出領域からの反射光RLの受光量レベルは理想的には0となる。ところが、投光モジュール50から検出光DLが投光されている状態で、ワークWや背景に物体がない状態であるにもかかわらず、戻り光の影響により、PDユニット61における受光量レベルが戻り光量に相当するレベルとなる。   The correction instruction receiving unit 116 receives a correction instruction based on the operation signal from the operation unit 108 and instructs the return light amount acquisition unit 117 to capture the received light signal. For example, the correction instruction accepting unit 116 instructs the capture time of the received light signal by the return light quantity acquisition unit 117, and instructs the capture timing and the capture period as the capture time, for example. If the detection light DL is being projected from the light projecting module 50 and there is no object on the workpiece W or the background, the reflected light RL from the detection area is not received by the PD unit 61 and is not emitted from the detection area. The received light amount level of the reflected light RL is ideally 0. However, in the state where the detection light DL is projected from the light projecting module 50, the received light level in the PD unit 61 returns due to the influence of the return light even though there is no object on the workpiece W or the background. The level corresponds to the amount of light.

そこで、例えば、ヘッド部3の向きを変えるなど、ワークWがない状態で、補正指示が受け付けられ、受光信号が取り込まれる。検出光DLの投光量は、投光量制御部110により、受光信号に基づいて調整されており、ワークWや背景に物体がない状態であれば、典型的には、投光モジュール50からの検出光DLの投光量は、投光量制御部110により調整可能な範囲の中で最大の投光量に調整される。ただし、戻り光量が大きい光学系の場合は、検出光DLの投光量が、投光量制御部110により最大の投光量に調整されるとは限られない。また、アンプ部103のゲインは、ゲイン制御部111により、受光信号に基づいて調整されており、ワークWや背景に物体がない状態であれば、典型的には、アンプ部103のゲインは、ゲイン制御部111により調整可能な範囲の中で最大のゲインに調整される。ただし、戻り光量が大きい光学系の場合は、アンプ部103のゲインが、ゲイン制御部111により最大のゲインに調整されるとは限られない。   Therefore, for example, the correction instruction is accepted and the received light signal is taken in the absence of the workpiece W such as changing the orientation of the head unit 3. The light projection amount of the detection light DL is adjusted based on the light reception signal by the light projection amount control unit 110. Typically, if there is no object on the workpiece W or the background, detection from the light projection module 50 is typically performed. The light emission amount of the light DL is adjusted to the maximum light emission amount within the range adjustable by the light emission amount control unit 110. However, in the case of an optical system with a large return light amount, the light projection amount of the detection light DL is not necessarily adjusted to the maximum light projection amount by the light projection amount control unit 110. Further, the gain of the amplifier unit 103 is adjusted based on the light reception signal by the gain control unit 111. Typically, if there is no object on the workpiece W or the background, the gain of the amplifier unit 103 is typically The gain is adjusted to the maximum gain within the adjustable range. However, in the case of an optical system with a large amount of return light, the gain of the amplifier unit 103 is not necessarily adjusted to the maximum gain by the gain control unit 111.

戻り光量取得部117は、補正指示受付部116の補正指示に従って受光信号を取得し、特定波長ごとの受光量を戻り光量に指定する。戻り光量記憶部118には、特定波長ごとの戻り光量が保持される。   The return light quantity acquisition unit 117 acquires a light reception signal in accordance with the correction instruction from the correction instruction reception unit 116, and designates the light reception quantity for each specific wavelength as the return light quantity. The return light quantity storage unit 118 holds the return light quantity for each specific wavelength.

戻り光量取得部117が、補正指示受付部116の補正指示に従って受光信号を取得する際の検出光DLの投光量は、例えば、投光量制御部110により調整可能な範囲の最大の投光量等の予め定められた投光量に調整されても良い。或いは、戻り光量取得部117が、補正指示受付部116の補正指示に従って受光信号を取得する際の検出光DLの投光量は、投光量制御部110により、受光信号に基づいて調整されたものであっても良い。この場合、例えば、戻り光量記憶部118には、投光量制御部110により調整された検出光DLの受光量に関する情報と特定波長ごとの戻り光量とが紐づけて保持される。また、投光量制御部110により調整された検出光DLの受光量に基づいて戻り光量を規格化し、規格化された戻り光量を、以降の処理に戻り光量として用いても良い。また、戻り光量取得部117が、補正指示受付部116の補正指示に従って受光信号を取得する際に、第1の期間では検出光DLの投光量は第1の投光量に調整され、第2の期間では検出光DLの投光量は第2の投光量に調整され、第1の期間に第1の戻り光量を取得し、第2の期間に第2の戻り光量を取得するようにしても良い。この場合、戻り光量記憶部118には、検出光DLの投光量ごとに特定波長ごとの戻り光量が保持される。   The light projection amount of the detection light DL when the return light amount acquisition unit 117 acquires the received light signal in accordance with the correction instruction of the correction instruction reception unit 116 is, for example, the maximum light emission amount within a range adjustable by the light emission amount control unit 110. The light projection amount may be adjusted to a predetermined amount. Alternatively, the light projection amount of the detection light DL when the return light amount acquisition unit 117 acquires the light reception signal in accordance with the correction instruction of the correction instruction reception unit 116 is adjusted by the light emission amount control unit 110 based on the light reception signal. There may be. In this case, for example, the return light amount storage unit 118 holds information related to the received light amount of the detection light DL adjusted by the light projection amount control unit 110 and the return light amount for each specific wavelength. Further, the return light amount may be normalized based on the received light amount of the detection light DL adjusted by the light projection amount control unit 110, and the normalized return light amount may be used as the return light amount in the subsequent processing. In addition, when the return light amount acquisition unit 117 acquires the light reception signal in accordance with the correction instruction from the correction instruction reception unit 116, the light emission amount of the detection light DL is adjusted to the first light emission amount in the first period, In the period, the projection light quantity of the detection light DL is adjusted to the second projection light quantity, the first return light quantity is acquired in the first period, and the second return light quantity is acquired in the second period. . In this case, the return light amount storage unit 118 holds the return light amount for each specific wavelength for each projection light amount of the detection light DL.

戻り光量取得部117が、補正指示受付部116の補正指示に従って受光信号を取得する際のアンプ部103のゲインは、例えば、ゲイン制御部111により調整可能な範囲の最大のゲイン等の予め定められたゲインに調整されても良い。或いは、戻り光量取得部117が、補正指示受付部116の補正指示に従って受光信号を取得する際のアンプ部103のゲインは、ゲイン制御部111により、受光信号に基づいて調整されたものであっても良い。この場合、例えば、戻り光量記憶部118には、ゲイン制御部111により調整されたゲインに関する情報と特定波長ごとの戻り光量とが紐づけて保持される。また、戻り光量取得部117が、補正指示受付部116の補正指示に従って受光信号を取得する際に、第1の期間ではアンプ部103のゲインは第1のゲインに調整され、第2の期間ではアンプ部103のゲインは第2のゲインに調整され、第1の期間に第1の戻り光量を取得し、第2の期間に第2の戻り光量を取得するようにしても良い。この場合、戻り光量記憶部118には、アンプ部103のゲインごとに特定波長ごとの戻り光量が保持される。   The gain of the amplifier unit 103 when the return light amount acquisition unit 117 acquires the received light signal in accordance with the correction instruction from the correction instruction reception unit 116 is determined in advance, for example, as the maximum gain within the range adjustable by the gain control unit 111. The gain may be adjusted. Alternatively, the gain of the amplifier unit 103 when the return light quantity acquisition unit 117 acquires the light reception signal in accordance with the correction instruction of the correction instruction reception unit 116 is adjusted by the gain control unit 111 based on the light reception signal. Also good. In this case, for example, the return light amount storage unit 118 holds information related to the gain adjusted by the gain control unit 111 and the return light amount for each specific wavelength. Further, when the return light quantity acquisition unit 117 acquires the light reception signal in accordance with the correction instruction from the correction instruction reception unit 116, the gain of the amplifier unit 103 is adjusted to the first gain in the first period, and in the second period. The gain of the amplifier unit 103 may be adjusted to the second gain, and the first return light amount may be acquired in the first period, and the second return light amount may be acquired in the second period. In this case, the return light amount storage unit 118 holds the return light amount for each specific wavelength for each gain of the amplifier unit 103.

戻り光補正部119は、戻り光量記憶部118に記憶された戻り光量に基づいて、現在の受光量に応じて順次に生成される受光信号を補正する。また、戻り光量記憶部118に記憶された戻り光量及び検出光DLの受光量に関する情報とに基づいて、現在の受光量に応じて順次に生成される受光信号を補正するように構成してもよい。例えば、戻り光補正部119は、特定波長ごとに、受光量から戻り光量を減算することにより、受光信号の補正を行う。色情報取得部112は、戻り光補正部119による補正後の受光信号に基づいて、色情報を周期的に繰り返し取得する。   Based on the return light amount stored in the return light amount storage unit 118, the return light correction unit 119 corrects the light reception signal that is sequentially generated according to the current light reception amount. Further, it may be configured to correct the light reception signal sequentially generated according to the current light reception amount based on the return light amount stored in the return light amount storage unit 118 and the information regarding the light reception amount of the detection light DL. Good. For example, the return light correction unit 119 corrects the received light signal by subtracting the returned light amount from the received light amount for each specific wavelength. The color information acquisition unit 112 periodically and repeatedly acquires color information based on the light reception signal corrected by the return light correction unit 119.

3色の戻り光量をR,G,Bとすれば、補正後の受光量レベルは、(R−R)、(G−G)、(B−B)である。また、基準色の受光量レベルは、(R−R)、(G−G)、(B−B)である。 If the return light amounts of the three colors are R 2 , G 2 , and B 2 , the corrected received light amount levels are (R 1 -R 2 ), (G 1 -G 2 ), and (B 1 -B 2 ). is there. The received light level of the reference color is (R 0 -R 2 ), (G 0 -G 2 ), (B 0 -B 2 ).

戻り光補正部119では、投光量制御部110により調整された検出光DLの投光量に応じて戻り光量を調整し、調整後の戻り光量に基づいて受光信号の補正を行う。この様な構成によれば、投光量に応じて戻り光量を調整するため、検出光DLの投光量が変化した場合であっても、戻り光による誤検出を低減させることができる。   The return light correction unit 119 adjusts the return light amount according to the projection light amount of the detection light DL adjusted by the projection light amount control unit 110, and corrects the received light signal based on the adjusted return light amount. According to such a configuration, since the return light amount is adjusted according to the light projection amount, erroneous detection due to the return light can be reduced even when the light projection amount of the detection light DL changes.

また、戻り光補正部119では、ゲイン制御部111により調整されたアンプ部103のゲインに応じて戻り光量を調整し、調整後の戻り光量に基づいて受光信号の補正を行う。この様な構成によれば、ゲインに応じて戻り光量を調整するため、アンプ部103のゲインが変化した場合であっても、戻り光による誤検出を低減させることができる。   The return light correction unit 119 adjusts the return light amount according to the gain of the amplifier unit 103 adjusted by the gain control unit 111, and corrects the received light signal based on the adjusted return light amount. According to such a configuration, since the amount of return light is adjusted according to the gain, erroneous detection due to the return light can be reduced even when the gain of the amplifier unit 103 changes.

パラメータ指定部120は、操作部108からの操作信号に基づいて、判定閾値Cdを含む各種パラメータの入力を受け付ける。判定閾値記憶部121には、パラメータ指定部120により指定された判定閾値Cdが保持される。ユーザは、判定閾値Cdを任意に指定することができる。検出信号出力部115は、一致度Cを判定閾値記憶部121に登録された判定閾値Cdと比較してワーク判定を行う。   The parameter specifying unit 120 receives input of various parameters including the determination threshold Cd based on the operation signal from the operation unit 108. The determination threshold storage unit 121 holds the determination threshold Cd specified by the parameter specifying unit 120. The user can arbitrarily specify the determination threshold Cd. The detection signal output unit 115 compares the degree of coincidence C with the determination threshold Cd registered in the determination threshold storage unit 121 to perform work determination.

本実施の形態によれば、補正指示に従って取得される戻り光量に基づいて受光信号を補正するため、戻り光による受光量の変化を抑制することができる。従って、ワークW上のラベル、組付け部品、レジマーク等を検出する際に、ワークWの色目を正しく判別することができ、戻り光による色の判別感度の低下を抑制することができる。特に、ワークWからの反射光量にかかわらずワークWの色目が正しく判別されるため、反射率が低いワークWを検出対象とする場合であっても、戻り光による色の判別感度の低下を抑制することができる。   According to the present embodiment, since the light reception signal is corrected based on the return light amount acquired in accordance with the correction instruction, a change in the light reception amount due to the return light can be suppressed. Accordingly, when detecting a label, an assembly part, a registration mark, or the like on the workpiece W, the color of the workpiece W can be correctly identified, and a decrease in color discrimination sensitivity due to return light can be suppressed. In particular, since the color of the workpiece W is correctly determined regardless of the amount of light reflected from the workpiece W, even when the workpiece W having a low reflectance is targeted for detection, a reduction in color discrimination sensitivity due to return light is suppressed. can do.

特に、光ファイバの不具合により、ヘッド部3内において検出光DLの一部が反射光伝送用の光ファイバ2bに混入し、ヘッド部3から出射されることなくPDユニット61の受光素子に戻り光として受光される場合であっても、戻り光による色の判別感度の低下を抑制することができる。また、検出光DLの一部が対物レンズ34により反射され、対物レンズ34から出射されることなくPDユニット61の受光素子に戻り光として受光される場合であっても、戻り光による色の判別感度の低下を抑制することができる。また、対物レンズ34を取り替えることにより、光学特性が変化した場合であっても、戻り光量を取得して受光信号を補正することにより、戻り光による色の判別感度の低下を抑制することができる。   In particular, due to a defect in the optical fiber, a part of the detection light DL is mixed in the reflected light transmission optical fiber 2b in the head unit 3, and is returned to the light receiving element of the PD unit 61 without being emitted from the head unit 3. Even when the light is received as light, it is possible to suppress a decrease in color discrimination sensitivity due to return light. Further, even when a part of the detection light DL is reflected by the objective lens 34 and is received as return light by the light receiving element of the PD unit 61 without being emitted from the objective lens 34, the color discrimination by the return light is performed. A decrease in sensitivity can be suppressed. In addition, even if the optical characteristics change by replacing the objective lens 34, a decrease in color discrimination sensitivity due to the return light can be suppressed by acquiring the return light amount and correcting the light reception signal. .

さらに、ヘッド部3又は光ファイバケーブル2を取り替えることにより、光学特性が変化した場合であっても、戻り光量を取得して受光信号を補正することにより、戻り光による色の判別感度の低下を抑制することができる。   Furthermore, even if the optical characteristics are changed by replacing the head unit 3 or the optical fiber cable 2, the return light quantity is acquired and the received light signal is corrected, thereby reducing the color discrimination sensitivity due to the return light. Can be suppressed.

なお、本実施の形態では、光ファイバケーブル2が並列型のケーブルであり、ヘッド部3内において直角に折り曲げられる場合の例について説明したが、本発明は、光ファイバケーブル2やヘッド部3の構成をこれに限定するものではない。例えば、光ファイバケーブル2は、光ファイバ2a及び2bが同軸に配置される同軸型のケーブルであっても良い。また、ヘッド部3は、光ファイバケーブル2が直線状に配置される円筒形状であっても良い。   In the present embodiment, the example in which the optical fiber cable 2 is a parallel cable and is bent at a right angle in the head portion 3 has been described. However, the present invention is not limited to the optical fiber cable 2 or the head portion 3. The configuration is not limited to this. For example, the optical fiber cable 2 may be a coaxial cable in which the optical fibers 2a and 2b are coaxially arranged. Further, the head portion 3 may have a cylindrical shape in which the optical fiber cable 2 is linearly arranged.

図15は、ヘッド部3及び光ファイバケーブル2の他の構成例を示した図である。図中の(a)には、前後方向に延びる円筒形状のヘッド部3が示され、(b)には、前後方向の投受光軸と交差する鉛直面によりヘッド部3を切断した場合の切断面が示されている。   FIG. 15 is a diagram illustrating another configuration example of the head unit 3 and the optical fiber cable 2. (A) in the figure shows a cylindrical head portion 3 extending in the front-rear direction, and (b) shows a cut when the head portion 3 is cut by a vertical plane intersecting with the light projecting / receiving axis in the front-rear direction. A face is shown.

光ファイバケーブル2は、同軸型の光ファイバケーブルである。1本の光ファイバ2aを中心とし、8本の光ファイバ2bが光ファイバ2aを取り囲むように配置されている。ヘッド部3のヘッド筐体30は、前後方向に延びる円筒形状である。光ファイバ2aの素線径は、0.5mm程度である。一方、光ファイバ2bの素線径は、0.265mm程度である。   The optical fiber cable 2 is a coaxial optical fiber cable. The eight optical fibers 2b are arranged so as to surround the optical fiber 2a with the single optical fiber 2a as the center. The head housing 30 of the head unit 3 has a cylindrical shape extending in the front-rear direction. The strand diameter of the optical fiber 2a is about 0.5 mm. On the other hand, the strand diameter of the optical fiber 2b is about 0.265 mm.

また、本実施の形態では、一致度Cが3色の受光量レベルの比率r,g,bに基づいて算出される場合の例について説明したが、本発明は、一致度Cの算出方法をこれに限定するものではない。3色の受光量レベルの比率r,g,bと受光量の和Mとに基づいて一致度Cを求めるような構成であっても良い。この様な一致度Cを用いることにより、有彩色のワークだけでなく、色相や彩度が同程度であって明度だけが大きく変化する様なワーク、特に、白黒の濃淡を有する様な無彩色のワークを正しく検出することができる。 In the present embodiment, an example in which the degree of coincidence C is calculated based on the ratios r k , g k , and b k of the received light amount levels of the three colors has been described. The calculation method is not limited to this. The configuration may be such that the degree of coincidence C is obtained based on the ratios r k , g k , b k of the received light amount levels of the three colors and the sum M k of the received light amounts. By using such a degree of coincidence C, not only chromatic work, but also work in which the hue and saturation are similar and only lightness changes greatly, especially achromatic colors having black and white shades. Can be detected correctly.

また、本実施の形態では、操作キー12の押下操作に基づいて、基準色の取込が指示され、或いは、補正用色情報の取込が指示される場合の例について説明したが、本発明は、色情報の取込を指示する方法をこれに限定するものではない。例えば、コントローラなどの外部機器から入力されるトリガ信号又はタイミング信号に基づいて、基準色の取込が指示され、或いは、補正用色情報の取込が指示されるような構成であっても良い。   Further, in the present embodiment, an example has been described in which the reference color is instructed or the correction color information is instructed based on the pressing operation of the operation key 12. However, the method for instructing the capture of color information is not limited to this. For example, the configuration may be such that the reference color is instructed or the correction color information is instructed based on a trigger signal or a timing signal input from an external device such as a controller. .

また、本実施の形態では、色相が異なる2以上の色成分を含む白色光を検出光DLとして用いる場合の例について説明したが、本発明は、投光用光源をこれに限定するものではない。例えば、赤色、緑色及び青色の検出光をそれぞれ生成する3つの発光素子を投光用光源として備え、各発光素子を時分割で順に点灯させるような構成であっても良い。また、赤色、緑色及び青色の3つの発光素子を同時に点灯させて白色の検出光DLを得るような構成であっても良い。   In the present embodiment, an example in which white light including two or more color components having different hues is used as the detection light DL has been described. However, the present invention is not limited to this. . For example, a configuration in which three light emitting elements that respectively generate red, green, and blue detection lights are provided as light sources for light projection, and the respective light emitting elements are sequentially turned on in a time-sharing manner. Moreover, the structure which lights up three light emitting elements of red, green, and blue simultaneously and obtains the white detection light DL may be sufficient.

また、本実施の形態では、PDユニット61を用いて反射光RLを受光する場合の例について説明したが、本発明は、受光手段の構成をこれに限定するものではない。例えば、反射光RLを3つの色成分に分光する分光器と、各色成分を受光する3つの受光素子とを受光手段として備えるような構成であっても良い。或いは、赤色、緑色及び青色の検出光を時分割で順に投光する場合には、1つの受光素子を受光手段として備えるような構成であっても良い。   In the present embodiment, the example in which the reflected light RL is received using the PD unit 61 has been described, but the present invention does not limit the configuration of the light receiving means. For example, a configuration in which a spectroscope that splits the reflected light RL into three color components and three light receiving elements that receive each color component as light receiving means may be used. Alternatively, when red, green, and blue detection lights are sequentially projected in a time division manner, a configuration in which one light receiving element is provided as a light receiving unit may be used.

1 光電スイッチ
10 本体部
11 表示灯
12,16 操作キー
13 取付穴
14 配線ケーブル
15 本体筐体
15a 収容部
15b 本体カバー
17 表示パネル
18 ファイバ接続部
2 光ファイバケーブル
2a,2b 光ファイバ
21 コネクタ部
22 光ファイバケーブルのヘッド部側の端部
23 光ファイバケーブルの本体部側の端部
3 ヘッド部
30 ヘッド筐体
31 ファイバケーブル保持部
32 鏡筒部
33 レンズユニット
34 対物レンズ
41 絶縁フィルム
42 光学モジュール
43 メイン基板
44 シールドシート
420 光学ベースフレーム
50 投光モジュール
51 投光基板
52 発光素子
53 投光基板ホルダ
54 放熱シート
55 調整スペーサ
56 ファイバホルダ
57 ガラスファイバ
58 クッション材
59 ファイバ押え
60 受光基板
61 PDユニット
62 ガラス板
70 クランプモジュール
100 主制御部
101 投光駆動部
102 カラーフィルタ
103 アンプ部
104 メモリ
105 電源部
106 入出力部
107 表示部
108 操作部
110 投光量制御部
111 ゲイン制御部
112 色情報取得部
113 基準色取得部
114 一致度算出部
115 検出信号出力部
116 補正指示受付部
117 戻り光量取得部
118 戻り光量記憶部
119 戻り光補正部
120 パラメータ指定部
121 判定閾値記憶部
122 基準色取込指示受付部
DESCRIPTION OF SYMBOLS 1 Photoelectric switch 10 Main body part 11 Indicator lamp 12, 16 Operation key 13 Mounting hole 14 Wiring cable 15 Main body housing | casing 15a Housing | casing part 15b Main body cover 17 Display panel 18 Fiber connection part 2 Optical fiber cable 2a, 2b Optical fiber 21 Connector part 22 End portion 23 on the head portion side of the optical fiber cable 3 End portion on the main body side of the optical fiber cable 3 Head portion 30 Head housing 31 Fiber cable holding portion 32 Lens barrel portion 33 Lens unit 34 Objective lens 41 Insulating film 42 Optical module 43 Main board 44 Shield sheet 420 Optical base frame 50 Light projecting module 51 Light projecting board 52 Light emitting element 53 Light projecting board holder 54 Heat radiating sheet 55 Adjustment spacer 56 Fiber holder 57 Glass fiber 58 Cushion material 59 Fiber retainer 60 Light receiving board 61 P Unit 62 Glass plate 70 Clamp module 100 Main control unit 101 Light projection drive unit 102 Color filter 103 Amplifier unit 104 Memory 105 Power source unit 106 Input / output unit 107 Display unit 108 Operation unit 110 Light emission amount control unit 111 Gain control unit 112 Color information acquisition Unit 113 reference color acquisition unit 114 coincidence calculation unit 115 detection signal output unit 116 correction instruction reception unit 117 return light amount acquisition unit 118 return light amount storage unit 119 return light correction unit 120 parameter specification unit 121 determination threshold storage unit 122 reference color capture Instruction reception part

Claims (10)

2以上の特定波長に対応する検出光を検出領域に向けて投光する投光手段と、
上記検出領域からの反射光を受光して受光信号に変換する受光手段と、
補正指示を受け付ける補正指示受付手段と、
上記補正指示に従って上記受光信号を取得し、上記特定波長ごとの受光量を戻り光量に指定する戻り光量取得手段と、
上記戻り光量に基づいて、上記受光信号を補正する戻り光補正手段と、
上記戻り光補正手段による補正後の上記受光信号に基づいて、少なくとも2つの上記特定波長の受光量を比較して色情報を取得する色情報取得手段と、
基準色取込指示を受け付ける基準色取込指示受付手段と、
上記基準色取込指示に従って上記色情報取得手段により取得された上記色情報を基準色に指定する基準色取得手段と、
上記色情報取得手段により順次に取得される上記色情報を上記基準色と比較して一致度を求める一致度算出手段と、
上記一致度を予め定められた判定閾値と比較してワーク判定を行い、上記ワーク判定の結果に基づいて検出信号を出力する検出信号出力手段とを備えたことを特徴とする光電スイッチ。
A light projecting means for projecting detection light corresponding to two or more specific wavelengths toward the detection region;
A light receiving means for receiving reflected light from the detection region and converting it into a light reception signal;
Correction instruction receiving means for receiving a correction instruction;
Return light quantity acquisition means for acquiring the received light signal according to the correction instruction and designating the received light quantity for each specific wavelength as a return light quantity;
Return light correction means for correcting the light reception signal based on the return light amount;
Based on the light reception signal after correction by the return light correction means, color information acquisition means for acquiring color information by comparing light reception amounts of at least two specific wavelengths;
A reference color capture instruction receiving means for receiving a reference color capture instruction;
Reference color acquisition means for designating the color information acquired by the color information acquisition means in accordance with the reference color capture instruction as a reference color;
A degree of coincidence calculating means for comparing the color information sequentially obtained by the color information obtaining means with the reference color to obtain a degree of coincidence;
A photoelectric switch comprising: a detection signal output unit configured to perform workpiece determination by comparing the degree of coincidence with a predetermined determination threshold value and to output a detection signal based on the result of the workpiece determination.
上記検出光を生成する発光ダイオード及び上記受光信号を生成するフォトダイオードを有する本体部と、
上記検出光を検出領域に向けて出射する一方、上記検出領域からの反射光が入射されるヘッド部と、
上記検出光及び上記反射光を上記本体部及び上記ヘッド部間で伝送する光ファイバケーブルとを備え、
上記検出光を伝送する光ファイバの端部及び上記反射光を伝送する光ファイバの端部は、上記ヘッド部内において隣接配置されることを特徴とする請求項1に記載の光電スイッチ。
A main body having a light emitting diode for generating the detection light and a photodiode for generating the light reception signal;
A head unit that emits the detection light toward the detection region, and on which reflected light from the detection region is incident;
An optical fiber cable for transmitting the detection light and the reflected light between the main body and the head,
2. The photoelectric switch according to claim 1, wherein an end portion of the optical fiber that transmits the detection light and an end portion of the optical fiber that transmits the reflected light are disposed adjacent to each other in the head portion.
上記ヘッド部に着脱可能に装着され、上記光ファイバケーブルの端面から出射された上記検出光を上記検出領域に集光させる対物レンズを備えたことを特徴とする請求項2に記載の光電スイッチ。   The photoelectric switch according to claim 2, further comprising an objective lens that is detachably attached to the head portion and condenses the detection light emitted from an end face of the optical fiber cable in the detection region. 上記本体部は、上記光ファイバケーブルが着脱可能に接続されるファイバ接続部を有し、上記検出光を伝送する光ファイバの端部及び上記反射光を伝送する光ファイバの端部が、上記ファイバ接続部内において平行に配置されることを特徴とする請求項2又は3に記載の光電スイッチ。   The main body portion has a fiber connection portion to which the optical fiber cable is detachably connected, and an end portion of the optical fiber that transmits the detection light and an end portion of the optical fiber that transmits the reflected light are the fiber The photoelectric switch according to claim 2, wherein the photoelectric switch is arranged in parallel in the connection portion. 上記受光信号に基づいて、上記検出光の投光量を制御する投光量制御手段を備え、
上記戻り光補正手段は、上記投光量に応じて上記戻り光量を調整し、調整後の戻り光量に基づいて上記受光信号の補正を行うことを特徴とする請求項1〜4のいずれかに記載の光電スイッチ。
Based on the light reception signal, provided with a light projection amount control means for controlling the light projection amount of the detection light,
5. The return light correction unit adjusts the return light amount according to the projected light amount, and corrects the received light signal based on the adjusted return light amount. 6. Photoelectric switch.
上記受光信号に基づいて、上記受光信号を増幅するアンプのゲインを制御するゲイン制御手段を備え、
上記戻り光補正手段は、上記ゲインに応じて上記戻り光量を調整し、調整後の戻り光量に基づいて上記受光信号の補正を行うことを特徴とする請求項1〜5のいずれかに記載の光電スイッチ。
Gain control means for controlling the gain of an amplifier that amplifies the light reception signal based on the light reception signal,
6. The return light correcting unit adjusts the return light amount according to the gain, and corrects the light reception signal based on the adjusted return light amount. Photoelectric switch.
上記色情報取得手段は、赤色成分の受光量、緑色成分の受光量及び青色成分の受光量の和に対する各色成分の受光量の比率を含む色情報を取得することを特徴とする請求項1〜6のいずれかに記載の光電スイッチ。   The color information acquisition unit acquires color information including a ratio of a received light amount of each color component to a sum of a received light amount of a red component, a received light amount of a green component, and a received light amount of a blue component. The photoelectric switch according to any one of 6. 上記戻り光補正手段は、上記特定波長ごとに、受光量から上記戻り光量を減算することにより、上記受光信号の補正を行うことを特徴とする請求項1〜7のいずれかに記載の光電スイッチ。   The photoelectric switch according to claim 1, wherein the return light correction unit corrects the light reception signal by subtracting the return light amount from a light reception amount for each specific wavelength. . 上記一致度を表示する一致度表示手段を備えたことを特徴とする請求項1〜8のいずれかに記載の光電スイッチ。   9. The photoelectric switch according to claim 1, further comprising a coincidence degree display means for displaying the coincidence degree. 上記判定閾値の入力を受け付ける判定閾値入力手段を備えたことを特徴とする請求項1〜9のいずれかに記載の光電スイッチ。   The photoelectric switch according to claim 1, further comprising a determination threshold value input unit that receives an input of the determination threshold value.
JP2015243150A 2015-12-14 2015-12-14 Photoelectric switch Active JP6712132B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015243150A JP6712132B2 (en) 2015-12-14 2015-12-14 Photoelectric switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015243150A JP6712132B2 (en) 2015-12-14 2015-12-14 Photoelectric switch

Publications (2)

Publication Number Publication Date
JP2017110926A true JP2017110926A (en) 2017-06-22
JP6712132B2 JP6712132B2 (en) 2020-06-17

Family

ID=59080594

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015243150A Active JP6712132B2 (en) 2015-12-14 2015-12-14 Photoelectric switch

Country Status (1)

Country Link
JP (1) JP6712132B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021120994A (en) * 2020-01-30 2021-08-19 株式会社キーエンス Light detection unit
WO2021177202A1 (en) * 2020-03-06 2021-09-10 株式会社バルカー Determining system
WO2022059637A1 (en) * 2020-09-18 2022-03-24 株式会社バルカー Information processing device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63145926A (en) * 1986-12-10 1988-06-18 Hoya Corp Color sensor
JPH0665835U (en) * 1993-02-19 1994-09-16 株式会社キーエンス Color identification sensor
JPH11330940A (en) * 1998-05-20 1999-11-30 Keyence Corp Optical device, photoelectric switch, fiber type photoelectric switch, and color discrimination sensor
JP2002243550A (en) * 2001-02-20 2002-08-28 Minolta Co Ltd Optical characteristic measuring device
JP2003057115A (en) * 2001-08-14 2003-02-26 Nireco Corp Color measurement device for ink of color printer
JP2004119387A (en) * 2003-10-15 2004-04-15 Keyence Corp Photoelectric switch
JP2005274231A (en) * 2004-03-23 2005-10-06 Sunx Ltd Photoelectric sensor
US6958834B1 (en) * 2000-07-11 2005-10-25 Kabushiki Kaisha Toshiba Image reading apparatus
JP2008298614A (en) * 2007-05-31 2008-12-11 Omron Corp Sensor
JP2011226947A (en) * 2010-04-21 2011-11-10 Graduate School For The Creation Of New Photonics Industries Spectroscopic imaging device and spectroscopic imaging method
JP2013024600A (en) * 2011-07-15 2013-02-04 Canon Inc Spectral color sensor and image formation apparatus
JP2014164069A (en) * 2013-02-25 2014-09-08 Seiko Epson Corp Measurement device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63145926A (en) * 1986-12-10 1988-06-18 Hoya Corp Color sensor
JPH0665835U (en) * 1993-02-19 1994-09-16 株式会社キーエンス Color identification sensor
JPH11330940A (en) * 1998-05-20 1999-11-30 Keyence Corp Optical device, photoelectric switch, fiber type photoelectric switch, and color discrimination sensor
US6958834B1 (en) * 2000-07-11 2005-10-25 Kabushiki Kaisha Toshiba Image reading apparatus
JP2002243550A (en) * 2001-02-20 2002-08-28 Minolta Co Ltd Optical characteristic measuring device
JP2003057115A (en) * 2001-08-14 2003-02-26 Nireco Corp Color measurement device for ink of color printer
JP2004119387A (en) * 2003-10-15 2004-04-15 Keyence Corp Photoelectric switch
JP2005274231A (en) * 2004-03-23 2005-10-06 Sunx Ltd Photoelectric sensor
JP2008298614A (en) * 2007-05-31 2008-12-11 Omron Corp Sensor
JP2011226947A (en) * 2010-04-21 2011-11-10 Graduate School For The Creation Of New Photonics Industries Spectroscopic imaging device and spectroscopic imaging method
JP2013024600A (en) * 2011-07-15 2013-02-04 Canon Inc Spectral color sensor and image formation apparatus
JP2014164069A (en) * 2013-02-25 2014-09-08 Seiko Epson Corp Measurement device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021120994A (en) * 2020-01-30 2021-08-19 株式会社キーエンス Light detection unit
WO2021177202A1 (en) * 2020-03-06 2021-09-10 株式会社バルカー Determining system
WO2022059637A1 (en) * 2020-09-18 2022-03-24 株式会社バルカー Information processing device

Also Published As

Publication number Publication date
JP6712132B2 (en) 2020-06-17

Similar Documents

Publication Publication Date Title
JP5270160B2 (en) Lighting system
US20070222741A1 (en) Liquid crystal display apparatus and backlight unit used in liquid crystal display apparatus
JP6674770B2 (en) Photoelectric switch
EP3226555B1 (en) Wavelength estimation device, light-source device, image display apparatus, wavelength estimation method, and light-source control method
CN106568504B (en) Photoelectric switch
US10725283B2 (en) Light source apparatus
US20150108376A1 (en) Distance Measuring Photoelectric Sensor And Method For Controlling Light Projection Spot Thereof
WO2007020720A1 (en) Light source control device, illumination device, and liquid crystal display device
JP5225752B2 (en) Fluorescence temperature sensor
JPWO2007099860A1 (en) LED lighting fixtures
JP2005241340A (en) Multi-range finding device
CN101438093A (en) LED luminaire with optical feedback by image mapping on segmented light sensors
JP6712132B2 (en) Photoelectric switch
KR20090056858A (en) Apparatus for measuring optical property
WO2020059420A1 (en) Light-source driving device and light emission device
JP2012215569A (en) Portable color measurement device
TWI685678B (en) Laser projection module , depth camera and electronic device
CN110018127B (en) Spectroscopy reflectometer
US9307602B2 (en) Illumination system
JP2017021017A (en) Photoelectric sensor
JP7076954B2 (en) Confocal displacement meter
JP2019067651A (en) Photoelectric sensor
KR102548859B1 (en) Beam projector module providing eye protection
JP2008175743A (en) Photoelectric sensor
JP6650239B2 (en) Photoelectric switch

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180831

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190723

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190919

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200331

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200513

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200529

R150 Certificate of patent or registration of utility model

Ref document number: 6712132

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250