JP2005114551A - Multi-optical-axis photoelectric sensor - Google Patents

Multi-optical-axis photoelectric sensor Download PDF

Info

Publication number
JP2005114551A
JP2005114551A JP2003349158A JP2003349158A JP2005114551A JP 2005114551 A JP2005114551 A JP 2005114551A JP 2003349158 A JP2003349158 A JP 2003349158A JP 2003349158 A JP2003349158 A JP 2003349158A JP 2005114551 A JP2005114551 A JP 2005114551A
Authority
JP
Japan
Prior art keywords
light
period
optical axis
photoelectric sensor
axis photoelectric
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003349158A
Other languages
Japanese (ja)
Inventor
Kazunari Osako
一功 尾▲さこ▼
Tetsuya Akagi
哲也 赤木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2003349158A priority Critical patent/JP2005114551A/en
Publication of JP2005114551A publication Critical patent/JP2005114551A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Manipulation Of Pulses (AREA)
  • Electronic Switches (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a multi-optical-axis photoelectric sensor capable of properly avoiding interference and keeping operating, without stopping its operation or the like, even if interference is detected. <P>SOLUTION: The multi-optical-axis photoelectric sensor has a projection sensor head, wherein a plurality of projectors are arranged, and a light-receiving sensor head wherein a plurality of photodetectors are arranged, and supervises invasion of a substance into a predetermined area by projecting detection light by a predetermined period, synchronizing a projection period with a light-receiving sampling period for each optical axis. The sensor is provided with an existence-of-disturbance-light determining means which performs light reception sampling concerning predetermined two durations close to a projection light and determines whether entry of disturbance light exists, a counting means for counting the number of times of the entry of light, confirmed by the existence-of-disturbance-light determination means for each of the two durations separately, and a period changing means which changes, when a number of times of entry of the disturbance light exceeding a predetermined number of times is counted in any of the two durations in a fixed duration, a planed next-time synchronization timing depending on which of the two durations is one exceeding the duration, and consequently shifts the phases of the periods thereafter. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、例えば、ライトカーテンやエリアセンサとしての用途に好適な多光軸光電センサに係り、特に、相互干渉回避対策の施された多光軸光電センサに関する。   The present invention relates to a multi-optical axis photoelectric sensor suitable for use as, for example, a light curtain or an area sensor, and more particularly to a multi-optical axis photoelectric sensor in which measures against mutual interference are taken.

多光軸光電センサは一般に、一方側には複数の投光素子が配列された投光センサヘッド(投光器)が、対向する側には同数の受光素子が配列された受光センサヘッド(受光器)が配置されて構成される。ライトカーテンとして使用される場合には、検出対象領域(危険領域)に物体が侵入すると、投光器からの検出光が受光器手前で遮蔽又は反射されるため、受光器における受光量が部分的又は全体に亘り変化し(受光量が減衰し)、それにより物体侵入が検出される。また、エリアセンサとして使用される場合には、検出対象領域に物体が侵入すると、いずれかの光軸が侵入物体により遮蔽されるため、該当する1又は2以上の受光素子における受光量が減衰し、それにより所定領域(エリア)への物体侵入が検出される。   A multi-optical axis photoelectric sensor generally has a light projecting sensor head (light projector) in which a plurality of light projecting elements are arranged on one side, and a light receiving sensor head (light receiver) in which the same number of light receiving elements are arranged on the opposite side. Are arranged and configured. When used as a light curtain, when an object enters the detection target area (dangerous area), the detection light from the projector is shielded or reflected in front of the light receiver, so the amount of light received by the light receiver is partially or entirely (The amount of received light is attenuated), whereby the intrusion of the object is detected. Further, when used as an area sensor, when an object enters the detection target area, one of the optical axes is shielded by the intruding object, so that the amount of light received by the corresponding one or more light receiving elements is attenuated. Thereby, the intrusion of the object into the predetermined area (area) is detected.

ところで、上述のような多光軸光電センサは、現場においては近接して複数台が設置されるような場合が多々あり、このような場合には、所謂相互干渉の発生が懸念される。そこで、昨今では、そのような相互干渉への対策が施された多光軸光電センサが種々提案されている。具体的には、非投光期間中に所定回数の受光サンプリングを行い、この受光サンプリング期間中に幾度かの受光が確認されたときには、相互干渉が発生している(外乱光が入光している)ものとして、警告灯を表示させたり、センサの動作を停止等させるものが知られている(例えば、特許文献1、特許文献2参照)。
特開平5−75421号公報 特開平11−260215号公報
By the way, there are many cases where a plurality of multi-optical axis photoelectric sensors as described above are installed close to each other in the field. In such a case, there is a concern that so-called mutual interference may occur. In view of this, various multi-optical axis photoelectric sensors with such countermeasures against mutual interference have been proposed recently. Specifically, a predetermined number of times of light reception sampling is performed during the non-light projection period, and when light reception is confirmed several times during this light reception sampling period, mutual interference has occurred (disturbance light is incident and received). There are known devices that display a warning light, stop the operation of the sensor, and the like (see, for example, Patent Document 1 and Patent Document 2).
Japanese Patent Laid-Open No. 5-75421 Japanese Patent Laid-Open No. 11-260215

しかしながら、上述のような相互干渉防止対策の施された多光軸光電センサは、相互干渉を検知(発見)することそのものに重点が置かれているため、干渉を検知すると警告灯を表示させたり、センサの動作を停止等させるのみであり、干渉が発生したときの具体的回避策までは施されていない。すなわち、干渉を検知したときに自動的に当該干渉を回避して動作を継続させることのできるものではなかった。   However, multi-optical axis photoelectric sensors with measures for preventing mutual interference as described above are focused on detecting (discovering) mutual interference. Therefore, when interference is detected, a warning light is displayed. This only stops the operation of the sensor, and no specific workaround is provided when interference occurs. That is, when interference is detected, it is not possible to automatically avoid the interference and continue the operation.

この発明は、上述の問題点に着目してなされたものであり、その目的とするところは、干渉を検知しても動作を停止等させることなく、適切に当該干渉を回避して、動作を継続させることのできる多光軸光電センサを提供することにある。   The present invention has been made paying attention to the above-mentioned problems, and the object of the present invention is to appropriately avoid the interference without stopping the operation even if the interference is detected, and to operate. The object is to provide a multi-optical axis photoelectric sensor that can be continued.

この発明のさらに他の目的乃至作用効果については、以下の明細書の記載を参照することにより、当業者であれば容易に理解されるであろう。   Other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the description of the following specification.

上記問題点を解決するための本発明の多光軸光電センサは、複数の投光器が配列された投光センサヘッドと、複数の受光器が配列された受光センサヘッドとを有し、各光軸毎に投光期間並びに受光サンプリング期間を同期させて所定の周期で検出光の投光を行うことにより所定エリアへの物体侵入有無を監視する多光軸光電センサを前提とする。尚、ここでいう多光軸光電センサには、所定エリアへの物体侵入が検知されたときには外部制御対象機器の動作停止信号を生成するライトカーテンや、遮光が検知された1又は2以上の光軸に基づいて、所定エリア内における物体の侵入位置を検知するエリアセンサが含まれる。   The multi-optical axis photoelectric sensor of the present invention for solving the above-mentioned problems has a light projecting sensor head in which a plurality of light projectors are arranged, and a light receiving sensor head in which a plurality of light receivers are arranged, and each optical axis A multi-optical axis photoelectric sensor that monitors whether or not an object has entered a predetermined area by projecting detection light in a predetermined cycle in synchronization with the light projection period and the light reception sampling period is assumed. The multi-optical axis photoelectric sensor referred to here includes a light curtain that generates an operation stop signal for an external control target device when an object intrusion into a predetermined area is detected, and one or more light beams that have been detected to block light. An area sensor that detects an intrusion position of an object within a predetermined area based on the axis is included.

そして、本発明の多光軸光電センサには、投光期間直近の所定の2つの期間についてそれぞれ受光サンプリングを行い、外乱光の入光有無を判定する外乱光有無判定手段と、外乱光有無判定手段により確認された入光有りの回数を2つの期間別にカウントするカウント手段と、一定期間内に前記2つの期間のいずれかで所定回数を超える入光数がカウントされたときには、それが前記2つの期間のいずれかに基づいて、予定された次回の同期タイミングを変更することにより、以降の周期の位相をずらす周期変更手段とが設けられている。   In the multi-optical axis photoelectric sensor of the present invention, the received light sampling is performed for each of the predetermined two periods closest to the light projecting period, the disturbance light presence / absence determination means for determining the presence / absence of disturbance light, and the presence / absence determination of the disturbance light A counting means for counting the number of incident lights confirmed by the means for each of two periods; and when the number of incident lights exceeding a predetermined number is counted in one of the two periods within a certain period, Period change means for shifting the phase of the subsequent period by changing the next scheduled synchronization timing based on one of the two periods is provided.

本発明の多光軸光電センサでは、投光期間の直近の2つの非投光期間中に受光サンプリングを行い、それぞれのオンオフ認定結果を得ている。このため、自身のセンサと他の隣接センサとの投受光周期の差により、自身の投光タイミングに時間的に前から近づきつつある他のセンサの投光タイミングの到来と、時間的に後から近づいてくる他のセンサの投光タイミングの到来とを識別することができる。そのため、その識別結果に応じて、その後の投光タイミング(投受光同期)を適宜前後へ移動させることができる。そのため、干渉を検知乃至予知した場合にも、動作を停止等させることなく、適切に当該干渉を回避して、動作を継続させることが可能となる。   In the multi-optical axis photoelectric sensor of the present invention, light reception sampling is performed during the two non-light-projecting periods closest to the light-projecting period, and respective on-off certification results are obtained. For this reason, due to the difference in the light-emission / reception period between its own sensor and another adjacent sensor, the light-emission timing of another sensor that is approaching its own light-emission timing from the front in time and the time later It is possible to distinguish from the arrival of the light projection timing of another sensor approaching. Therefore, the subsequent light projecting timing (light projecting / receiving synchronization) can be appropriately moved back and forth according to the identification result. Therefore, even when interference is detected or predicted, it is possible to appropriately avoid the interference and continue the operation without stopping the operation.

本発明において、好ましくは、前記2つの期間は、投光期間の直前と直後にそれぞれ設定される。このような態様によれば、他のセンサの検出光が自身のセンサの投光タイミングと完全に一致してしまう(干渉が発生してしまう)前に、その旨を検知乃至予知できるから、干渉を未然に防止し、かつ、適切に当該干渉を回避して、動作を継続させることが可能となる。   In the present invention, preferably, the two periods are set immediately before and after the light projection period. According to such an aspect, since the detection light of the other sensor is completely coincident with the light projection timing of its own sensor (interference occurs), this can be detected or predicted. Can be prevented, and the interference can be appropriately avoided to continue the operation.

尚、「適切に当該干渉を防止」とあるが、具体的には、一定期間内における投光期間の直前の入光数が所定数を超えたときには、次回の同期タイミングを予定されたそれより所定時間遅れさせ、一定期間内における投光期間の直後の入光数が所定数を超えたときには、次回の同期タイミングを予定されたそれより所定時間早めるようにするのが好ましい。このように設定すれば、適当に同期タイミングを変更する場合に比して、確実に干渉を回避することができる。   In addition, “Properly prevent the interference”, specifically, when the number of incident lights immediately before the light projection period within a certain period exceeds a predetermined number, the next synchronization timing is more than that scheduled. It is preferable to delay the predetermined time, and when the number of incident lights immediately after the light projection period within a certain period exceeds a predetermined number, the next synchronization timing is preferably advanced by a predetermined time from the scheduled time. By setting in this way, interference can be reliably avoided as compared with the case where the synchronization timing is appropriately changed.

また、本発明において、好ましくは外乱光有無判定手段は、全光軸を対象として投光期間の直前及び直後における入光有無を判定し、周期変更手段は、いずれか1つの光軸に対応する外乱光の入光数が所定回数を超えたことを条件として、全光軸についての次回の同期タイミングを一律に変更するようにされる。   In the present invention, the disturbance light presence / absence determining means preferably determines the presence / absence of incident light immediately before and immediately after the light projection period for all optical axes, and the period changing means corresponds to any one of the optical axes. The next synchronization timing for all the optical axes is uniformly changed on condition that the number of disturbance light incidents exceeds a predetermined number.

すなわち、多光軸光電センサにおいては、いずれか1つの光軸でも干渉を検知乃至予知したときには、他の光軸への干渉が生じることも想定される。そのため、そのような場合には、全光軸についての次回の同期タイミングを一律に変更することにより、そのような懸念が排除される。また、一般に、多光軸光電センサにおいては、各光軸の投受光周期が所定の間隔づつずらされて設定されている。このため、1つの光軸のみの投受光周期を変更することは設計的にも煩雑であるため、1つの光軸に対応する外乱光の入光数が所定回数を超えたような場合には、全光軸についての次回の同期タイミングを一律に変更する方が容易である。   That is, in the multi-optical axis photoelectric sensor, when any one of the optical axes detects or predicts interference, it is assumed that interference with other optical axes occurs. Therefore, in such a case, such a concern is eliminated by uniformly changing the next synchronization timing for all the optical axes. In general, in the multi-optical axis photoelectric sensor, the light projecting / receiving periods of the respective optical axes are set to be shifted by a predetermined interval. For this reason, it is complicated in design to change the light projecting / receiving period of only one optical axis. Therefore, when the number of disturbance light incidents corresponding to one optical axis exceeds a predetermined number of times. It is easier to change the next synchronization timing for all optical axes uniformly.

本発明において、好ましくは、外乱光有無判定手段は、投光期間の直前のみの受光サンプリングと、投光期間の直後のみの受光サンプリングとを、1周期毎に交互に繰り返すように設定される。センサの応答速度を問わずに、干渉発生検知(予知)の速さを重視するのであれば、1周期毎に投光期間の直前と直後の両方で受光サンプリングするのが好ましいのであるが、このような態様によれば、センサの応答時間を短縮することができるというメリットが得られる。   In the present invention, preferably, the disturbance light presence / absence determining means is set to alternately repeat the light reception sampling just before the light projection period and the light reception sampling only just after the light projection period every one period. Regardless of the response speed of the sensor, if importance is attached to the speed of detection of interference occurrence (prediction), it is preferable to perform light reception sampling for each cycle both immediately before and after the light projection period. According to such an aspect, there is an advantage that the response time of the sensor can be shortened.

本発明において、好ましくは、カウント手段は、投光期間の直前と直後における連続入光数をそれぞれカウントする直前入光カウンタ及び直後入光カウンタを有し、カウント手段の各カウンタは、1周期毎に到来する監視対象周期において入光が確認されたときにはカウンタ値が歩進される一方、監視対象周期において入光が確認されないときには、カウンタ値がリセットされるようにする。   In the present invention, it is preferable that the counting unit has a just before incident light counter and a just after incident light counter for counting the number of continuous incidents immediately before and immediately after the light projecting period, and each counter of the counting unit is provided for each cycle. The counter value is incremented when the incident light is confirmed in the monitoring target period, and the counter value is reset when the incident light is not confirmed in the monitoring target period.

このような態様によれば、直前入光カウンタ或いは直後入光カウンタにより連続して所定回数入光が確認されたときのみ、同期タイミングの変更が実行されるから、回路内部で発生するノイズや蛍光灯ノイズ等の単発ノイズを干渉光と見なして直ちに同期タイミングを変更してしまうといったような不要な対応動作を防止することができる。   According to such an aspect, the synchronization timing is changed only when light incident is confirmed a predetermined number of times continuously by the immediately preceding incident counter or the immediately following incident counter. It is possible to prevent an unnecessary corresponding operation such that a single noise such as a lamp noise is regarded as interference light and the synchronization timing is immediately changed.

本発明において、好ましくは、同期タイミングが複数周期に亘り連続して変更された回数をカウントする連続変更回数カウント手段と、連続変更回数が所定回数を超えたときには、センサ動作を停止する手段と、が更に設けられる。   In the present invention, preferably, a continuous change number counting unit that counts the number of times that the synchronization timing is continuously changed over a plurality of cycles, and a unit that stops the sensor operation when the continuous change number exceeds a predetermined number of times, Is further provided.

すなわち、本発明の多光軸光電センサにあっては、繰り返し連続して同期タイミングを変更しているにもかかわらず、依然として干渉が検知されるような場合も想定される。このような状況は、何らかの原因により干渉回避が不可能な状態にあり、多光軸光電センサとしての正常な検出動作を実行できていないとみなすことができるから、直ちにセンサの動作を停止することで、そのような不具合を回避することができる。   That is, in the multi-optical axis photoelectric sensor of the present invention, it is assumed that interference is still detected even though the synchronization timing is changed continuously and repeatedly. In such a situation, interference cannot be avoided for some reason, and it can be considered that normal detection operation as a multi-optical axis photoelectric sensor cannot be executed. Thus, such a problem can be avoided.

以上の説明で明らかなように、本実施の形態によれば、干渉を検知しても動作を停止等させることなく、適切に当該干渉を回避して、動作を継続させることのできる多光軸光電センサを提供することができる。   As is clear from the above description, according to the present embodiment, even when interference is detected, the multi-optical axis that can appropriately avoid the interference and continue the operation without stopping the operation or the like. A photoelectric sensor can be provided.

以下に、本発明に係る多光軸光電センサの好適な実施の一形態を添付図面を参照しつつ詳細に説明する。尚、以下の実施の形態は本発明の一例を示すものに過ぎず、言うまでもなく、本発明の要旨は特許請求の範囲によってのみ規定されるものである。   Hereinafter, a preferred embodiment of a multi-optical axis photoelectric sensor according to the present invention will be described in detail with reference to the accompanying drawings. The following embodiments are merely examples of the present invention, and needless to say, the gist of the present invention is defined only by the claims.

本実施形態の多光軸光電センサ100の構成が図1の外観図に示されている。同図に示されるように本実施形態の多光軸光電センサは、投光センサヘッド1と受光センサヘッド2とが通信用ケーブル101で接続されて構成されている。また、通信用ケーブル101には、接続コネクタ102を介して、外部設定器3が連結されている。尚、図示は省略されているが、接続コネクタ102と投光センサヘッド1との間には、電源供給用の配線ボックス等が介在されている。   The configuration of the multi-optical axis photoelectric sensor 100 of this embodiment is shown in the external view of FIG. As shown in the figure, the multi-optical axis photoelectric sensor of this embodiment is configured by connecting a light projecting sensor head 1 and a light receiving sensor head 2 with a communication cable 101. The external setting device 3 is connected to the communication cable 101 via the connection connector 102. Although not shown, a power supply wiring box or the like is interposed between the connection connector 102 and the light projecting sensor head 1.

外部設定器3は、複数の押しボタンスイッチで構成される操作部3aと、液晶ディスプレイで構成される表示部3bとを有している。本実施形態では、この外部設定器3を介して、投光センサヘッド1からの投光量、受光センサヘッド2における受光信号増幅率並びに受光判定しきい値の設定が可能とされている。また、表示部3bには、そのときどきの投光用、受光量或いは受光判定しきい値等が表示される。   The external setting device 3 includes an operation unit 3a composed of a plurality of push button switches and a display unit 3b composed of a liquid crystal display. In the present embodiment, it is possible to set the light projection amount from the light projecting sensor head 1, the light reception signal amplification factor in the light reception sensor head 2, and the light reception determination threshold value via the external setting device 3. Further, the display unit 3b displays the light projecting amount, the light reception amount, the light reception determination threshold value, and the like at that time.

本実施形態の多光軸光電センサの本体部(センサヘッド)の回路構成が図2に示されている。同図に示されるように、投光センサヘッド1は、投光素子、電流制御回路及び光軸選択回路を含むn個の投光器11(111〜11n)と、それら投光器11の駆動信号等を生成するCPU12と、受光センサヘッド2との通信並びに外部設定器3との通信を行うための通信回路13と、上位装置(この例ではPLC)との通信を行うためのI/Oインターフェース14とを有している。   The circuit configuration of the main body (sensor head) of the multi-optical axis photoelectric sensor of this embodiment is shown in FIG. As shown in the figure, the light projecting sensor head 1 generates n light projectors 11 (111 to 11n) including a light projecting element, a current control circuit, and an optical axis selection circuit, and a drive signal for the light projectors 11 and the like. A communication circuit 13 for performing communication with the CPU 12, the light receiving sensor head 2, and communication with the external setting device 3, and an I / O interface 14 for performing communication with a host device (in this example, a PLC). Have.

また、受光センサヘッド2は、受光素子を含む光電変換部、受光素子からの受光信号を増幅するプリアンプ並びに光軸選択回路を含む受光器21(211〜21n)と、メインアンプ、フィルタ(コムフィルタ)並びにA/D変換器を含む信号処理部22と、受光器21の駆動信号等を生成すると共に信号処理部22からの信号に基づいて検出判定のための演算を行うCPU23と、投光センサヘッド1との通信並びに外部設定器3との通信を行うための通信回路24と、上位装置(この例ではPLC)との通信を行うためのI/Oインターフェース25とを有している。   The light receiving sensor head 2 includes a photoelectric conversion unit including a light receiving element, a preamplifier that amplifies a light reception signal from the light receiving element, and a light receiver 21 (211 to 21n) including an optical axis selection circuit, a main amplifier, and a filter (com filter). ) And a signal processing unit 22 including an A / D converter, a CPU 23 that generates a driving signal of the light receiver 21 and the like, and performs calculation for detection determination based on a signal from the signal processing unit 22, and a light projection sensor A communication circuit 24 for performing communication with the head 1 and communication with the external setting device 3 and an I / O interface 25 for performing communication with a host device (PLC in this example) are provided.

投光センサヘッド1の回路構成の詳細が図3に示されている。同図に示されるように、各投光センサヘッド1は、赤外光(又は赤色光)を発光する投光素子111と、投光素子111を駆動するためのCPUからの駆動信号(光軸選択信号)がベース端子に入力されるトランジスタ(光軸選択回路)112と、CPU12からの信号に基づき、投光素子111からの投光量調整を行うための電流制御回路113と、内部メモリを有するCPU12と、CPU12からのm本の信号入力線とn本の出力線とが接続されたデコーダ120とを含んで構成されている。尚、同図では、CPU12に対して一体の投光器が接続されている様子が示されているが、実際には、同様の構成により、図2に示したようにCPU12にはn個の投光器11が信号線を介して接続されている。   The details of the circuit configuration of the light projection sensor head 1 are shown in FIG. As shown in the figure, each light projecting sensor head 1 includes a light projecting element 111 that emits infrared light (or red light), and a drive signal (optical axis) from a CPU for driving the light projecting element 111. A transistor (optical axis selection circuit) 112 having a selection signal) input to the base terminal, a current control circuit 113 for adjusting the amount of light emitted from the light projecting element 111 based on a signal from the CPU 12, and an internal memory. The CPU 12 is configured to include a decoder 120 to which m signal input lines from the CPU 12 and n output lines are connected. In the figure, a state in which an integral projector is connected to the CPU 12 is shown, but in reality, the CPU 12 has n projectors 11 as shown in FIG. Are connected via a signal line.

同図から理解されるように、図2に示すn個の各投光器11は、CPU12からの光軸選択信号(S1)により、トランジスタ112を介して選択的に駆動される。   As understood from the figure, each of the n projectors 11 shown in FIG. 2 is selectively driven via the transistor 112 by an optical axis selection signal (S 1) from the CPU 12.

また、電流制御回路113は、メイン抵抗113aを介在させて、トランジスタ112に並列接続されるn個のFET(電界効果トランジスタ)を含んで構成される。尚、符号113R1,113R2,113R3〜113Rnは、メイン抵抗113aと各FETとの間に介在される異なる抵抗値を有する抵抗である。   The current control circuit 113 includes n FETs (field effect transistors) connected in parallel to the transistor 112 with a main resistor 113a interposed. Reference numerals 113R1, 113R2, and 113R3 to 113Rn are resistors having different resistance values interposed between the main resistor 113a and each FET.

それぞれのFET(113R1,113R2,113R3〜113Rn)には、デコーダ120から駆動信号(S3)が入力されるようになっている。すなわち、CPU12から、デコーダ120に対しては、各信号線につき2ビットによる複数通り(2m通り)の信号入力(S2)が可能とされており、これにより、デコーダからは、n個のFETを選択的に駆動するためのn通りの信号出力(S3)がなされる。このことから理解されるように、各投光器11においては、FET(113R1,113R2,113R3〜113Rn)及び抵抗(113R1,113R2,113R3〜113Rn)を介して、投光量(投光電流値)をn通り選択することが可能とされている。尚、投光量の設定値は、外部設定器3を介して指定され、その値は、CPU21の内部メモリに格納される。   A drive signal (S3) is input from the decoder 120 to each FET (113R1, 113R2, 113R3 to 113Rn). That is, a plurality of (2m) signal inputs (S2) with 2 bits per signal line can be performed from the CPU 12 to the decoder 120, whereby n FETs are transmitted from the decoder. N kinds of signal outputs (S3) for selective driving are performed. As can be understood from this, in each projector 11, the light projection amount (light projection current value) is set to n via the FET (113R1, 113R2, 113R3 to 113Rn) and the resistor (113R1, 113R2, 113R3 to 113Rn). It is possible to select the street. Note that the set value of the light projection amount is designated via the external setting device 3, and the value is stored in the internal memory of the CPU 21.

受光センサヘッド2の回路構成の詳細が図4に示されている。同図に示されるように、各投光センサヘッド2は、光電変換部21a、プリアンプ21b及び光軸選択回路21cを含む投光器21と、プリアンプ21からの受光信号を増幅するメインアンプ22aと、増幅された受光信号の中から検出光による受光信号成分を抽出する(後述するインバータ蛍光灯からのノイズ光に対応する信号成分を除去する)フィルタ22bと、フィルタリング後の受光信号をA/D変換器22cを通して受信し、この受光信号レベルに基づき検出判定処理を行うCPU23とを主体として構成される。   The details of the circuit configuration of the light receiving sensor head 2 are shown in FIG. As shown in the figure, each light projecting sensor head 2 includes a light projector 21 including a photoelectric conversion unit 21a, a preamplifier 21b, and an optical axis selection circuit 21c, a main amplifier 22a that amplifies a light reception signal from the preamplifier 21, and an amplification. A filter 22b for extracting a received light signal component from the detected light from the received light signal (removing a signal component corresponding to noise light from an inverter fluorescent lamp described later), and an A / D converter for the received light signal after filtering The CPU 23 is configured mainly by the CPU 23 which receives the signal through the 22c and performs detection determination processing based on the received light signal level.

CPU23は、内部メモリを有し、受光判定しきい値の設定値は、外部設定器3を介して指定され、この内部メモリに格納される。この受光判定しきい値と信号処理部22からの受光信号(S4)との比較を行うことにより、検出判定処理を実行する。   The CPU 23 has an internal memory, and the set value of the light reception determination threshold value is designated via the external setting device 3 and stored in this internal memory. The detection determination process is executed by comparing the light reception determination threshold value with the light reception signal (S4) from the signal processing unit 22.

また、CPU23からは、メインアンプ22aにおける受光信号増幅率を規定するためのnビットの信号(S5)が出力される。すなわち、本実施形態では、このnビットの信号(S5)に基づいて、メインアンプ22においては、2n通りの受光信号増幅率を設定することが可能とされている。尚、この受光信号増幅率も、外部設定器3を介して設定されるものであり、その設定値はCPU23の内部メモリに格納される。   Further, the CPU 23 outputs an n-bit signal (S5) for defining the light reception signal amplification factor in the main amplifier 22a. That is, in this embodiment, the main amplifier 22 can set 2n received light signal amplification factors based on the n-bit signal (S5). This received light signal amplification factor is also set via the external setting device 3, and the set value is stored in the internal memory of the CPU 23.

また、CPU23からは、トランジスタ(図示せず)を有する光軸選択回路21cを介して光電変換部21における受光素子を選択的に駆動するための光軸選択信号(S6)と、受光信号の有効化(ゲート開)を指示するゲート制御信号(S7)とが出力されるようになっている。   Further, the CPU 23 sends an optical axis selection signal (S6) for selectively driving the light receiving element in the photoelectric conversion unit 21 via the optical axis selection circuit 21c having a transistor (not shown) and the validity of the light reception signal. And a gate control signal (S7) for instructing to open (gate opening).

更に、CPU23には、本発明の要部ともなる『前後干渉カウンタ機能』、『干渉連続発生カウンタ機能』を具備している。これらの詳細については後述する。   Further, the CPU 23 is provided with a “front-rear interference counter function” and an “interference continuous occurrence counter function” which are essential parts of the present invention. Details of these will be described later.

外部設定器3の回路構成の詳細が図5に示されている。同図に示されるように、外部設定器3は、図1に示した操作部3aに対応する入力回路31と、図1に示した表示部3bに対応する表示回路32と、投光センサヘッド1並びに受光センサヘッド2との通信を行うための通信回路33と、それら入力回路31、表示回路32、通信回路33を統括制御するCPU34とを有している。CPU34は、内部メモリを有しており、この内部メモリには、図6に示す変換テーブルが格納されている。尚、同図中符号35で示されるのは、通信ケーブル用の接続端子である。   Details of the circuit configuration of the external setting device 3 are shown in FIG. As shown in the figure, the external setting device 3 includes an input circuit 31 corresponding to the operation unit 3a shown in FIG. 1, a display circuit 32 corresponding to the display unit 3b shown in FIG. 1 and a communication circuit 33 for communicating with the light receiving sensor head 2, and an input circuit 31, a display circuit 32, and a CPU 34 that controls the communication circuit 33. The CPU 34 has an internal memory, and a conversion table shown in FIG. 6 is stored in the internal memory. In the figure, reference numeral 35 denotes a connection terminal for a communication cable.

変換テーブルは、外部設定器3を介して、投光センサヘッド1からの投光量、受光センサヘッド2における受光信号増幅率並びに受光判定しきい値を一括して規定するために予め用意されるものである。変換テーブルでは、距離値に対して、投光量、受光信号増幅率、受光判定しきい値が一義的に対応付けられている。すなわち、この例では、外部設定器3には、投光センサヘッドと受光センサヘッド間の距離値が入力され、これにより、投光センサヘッド1からの投光量、受光センサヘッド2における受光信号増幅率並びに受光判定しきい値が特定される。   The conversion table is prepared in advance to preliminarily define the light projection amount from the light projecting sensor head 1, the light reception signal amplification factor and the light reception determination threshold value via the external setting device 3. It is. In the conversion table, the light projection amount, the light reception signal amplification factor, and the light reception determination threshold value are uniquely associated with the distance value. That is, in this example, a distance value between the light projecting sensor head and the light receiving sensor head is input to the external setting device 3, whereby the light projection amount from the light projecting sensor head 1 and the light reception signal amplification in the light receiving sensor head 2. The rate and the light reception threshold value are specified.

具体的には、入力される距離値が500mm〜550mmの間にあるときは、投光量はI1、受光信号増幅率はG1、受光判定しきい値はTh1と特定される。同様にして、外部設定器3に入力される距離値が551mm〜650mmの間にあるときは、投光量はI2、受光信号増幅率はG2、受光判定しきい値はTh2と特定される。尚、同図に示される距離値の例から明らかであるように、本実施形態では、センサヘッド間の距離は、500mm〜10000mmの間で設定可能とされている。尚、図11に“Manualの表示値”とあるが、これは、外部設定器3に入力される距離値を、実質値(単位:メートル、センチ、ミリメートル)ではなく、距離相当のパラメータ値で入力する場合に用いられる値である。すなわち、本実施形態では、外部設定器3に入力する距離値として、実質値とパラメータ値との双方が利用可能とされている。尚、上述の各種設定値は、外部設定器3の操作を介して個々に微調整乃至変更可能とされている。   Specifically, when the input distance value is between 500 mm and 550 mm, the light projection amount is specified as I1, the light reception signal amplification factor as G1, and the light reception determination threshold as Th1. Similarly, when the distance value input to the external setting device 3 is between 551 mm and 650 mm, the light projection amount is specified as I2, the light reception signal amplification factor as G2, and the light reception determination threshold as Th2. As is clear from the example of the distance values shown in the figure, in this embodiment, the distance between the sensor heads can be set between 500 mm and 10000 mm. Note that “Manual display value” in FIG. 11 indicates that the distance value input to the external setting device 3 is not a real value (unit: meter, centimeter, millimeter) but a parameter value corresponding to the distance. This is the value used when entering. That is, in the present embodiment, both the real value and the parameter value can be used as the distance value input to the external setting device 3. The various setting values described above can be finely adjusted or changed individually through the operation of the external setting device 3.

次に、本実施形態における投光周期並びに投光パルス生成の態様について図7乃至図8を参照しつつ説明する。   Next, a projection cycle and a projection pulse generation mode in the present embodiment will be described with reference to FIGS.

本実施形態では、設置環境下におけるインバータ蛍光灯による検出判定への影響を排除するための対策として、インバータ蛍光灯の点滅周期(蛍光灯ノイズ周期)TN内において少なくとも3回以上の投光を行うように仕組まれている。具体的には、投光センサヘッド1のCPU12からは、想定されるもっとも短い蛍光灯ノイズの周期(例えば60〜70μsec)と同程度の投光周期となるように駆動信号が各投光部11に順次送られる。この駆動信号は、この例では、図7,8に示されるように3個のタイミング成分(投光パルスP1、P2、P3)を有する。これらの投光パルスP1、P2、P3により各投光部11の投光素子111が駆動され、3個のパルス状検出光が所定間隔で対象領域へと投光される。対象領域を通過したパルス状検出光は、対応する光電変換部21aへと到達して光電変換並びに増幅されて、受光信号VS1、VS2、VS3が生成される。このとき同様に、インバータ蛍光灯によるノイズ信号VNも生成される。   In the present embodiment, as a measure for eliminating the influence on the detection determination by the inverter fluorescent lamp in the installation environment, at least three or more times of light projection are performed within the blinking period (fluorescent lamp noise period) TN of the inverter fluorescent lamp. It is structured as follows. Specifically, the CPU 12 of the light projecting sensor head 1 sends a drive signal to each light projecting unit 11 so as to have a light projecting period comparable to the expected shortest fluorescent lamp noise period (for example, 60 to 70 μsec). Will be sent sequentially. In this example, this drive signal has three timing components (light projection pulses P1, P2, and P3) as shown in FIGS. The light projecting elements 111 of the light projecting units 11 are driven by these light projecting pulses P1, P2, and P3, and three pulsed detection lights are projected onto the target region at predetermined intervals. The pulsed detection light that has passed through the target region reaches the corresponding photoelectric conversion unit 21a, undergoes photoelectric conversion and amplification, and light reception signals VS1, VS2, and VS3 are generated. Similarly, a noise signal VN from the inverter fluorescent lamp is also generated at this time.

こうして生成された受光信号VSとノイズ信号VNとの関係が図9に示されている。同図に示されるように、3個の受光信号VS1,VS2,VS3の間隔は蛍光灯ノイズVNが存在することにより、両側に位置する2個の受光信号VS1,VS3が蛍光灯ノイズの位相0度並びに位相180度に一致した最悪の状況であっても、真ん中に位置する投光信号VS2については、ノイズ波形上の比較的変化の緩やかな位相90度の部分に一致するように設定されている。   The relationship between the light reception signal VS and the noise signal VN generated in this way is shown in FIG. As shown in the figure, the interval between the three light reception signals VS1, VS2, and VS3 is that the fluorescent light noise VN is present, so that the two light reception signals VS1 and VS3 located on both sides have a phase 0 of the fluorescent light noise. Even in the worst situation where the phase coincides with the phase and the phase of 180 degrees, the light projection signal VS2 located in the middle is set to coincide with the 90 degree portion of the noise waveform having a relatively gentle change. Yes.

受光センサヘッド2のフィルタ22bでは、既知の手法により受光信号VS、VNをレベルシフトする。こうしてレベルシフトされた受光信号が図10に示されている。図示される3個の受光信号VS1,VS2,VS3は、検出光が入光されている場合、第1のタイミングT1においては、本来いずれもしきい値Vthを越えていなければならない。しかしながら、上述の最悪の状況にあっては、ノイズ波形の位相0度並びに90度にタイミングが一致した受光信号VS1,VS2については、いずれもしきい値Vthを越えるのに対して、ノイズ波形の位相180度にタイミングが一致した投光信号VS3については、その値がしきい値Vthを越えることができない。一方、図示しないが、3個の受光信号VS1,VS2,VS3が、いずれもしきい値Vthを越えてはいけないノイズ光LNのみが入光されている場合を想定すると、位相90度並びに180度にタイミングが一致した受光信号VS2,VS3については、その値がしきい値Vthを越えることがないのに対して、位相0度にタイミングが一致した受光信号VS1については、その値がしきい値Vthを越えることとなる。そこで、1ノイズ周期(TN)内で行われる3回の判定のうちで、2回以上がしきい値を越える場合にはオン認定、2回以上がしきい値を越えない場合にはオフ認定と多数決原理に従うものとすれば、インバータ蛍光灯による検出判定への影響を回避して信頼性の高いオンオフ判定結果が得られることが判る。   In the filter 22b of the light receiving sensor head 2, the light receiving signals VS and VN are level-shifted by a known method. The received light signal level-shifted in this way is shown in FIG. The three received light signals VS1, VS2, and VS3 shown in the figure must originally exceed the threshold value Vth at the first timing T1 when the detection light is incident. However, in the above-mentioned worst situation, the light reception signals VS1 and VS2 whose timings coincide with each other at the phase of the noise waveform of 0 degree and 90 degrees exceed the threshold value Vth, whereas the phase of the noise waveform For the light projection signal VS3 whose timing coincides with 180 degrees, the value cannot exceed the threshold value Vth. On the other hand, although not shown, assuming that only the noise light LN that should not exceed the threshold value Vth is received by the three light reception signals VS1, VS2, and VS3, the phase is 90 degrees and 180 degrees. The values of the light receiving signals VS2 and VS3 having the same timing do not exceed the threshold value Vth, whereas the values of the light receiving signals VS1 having the same timing at 0 degree are the threshold value Vth. Will be exceeded. Therefore, of the three judgments performed within one noise period (TN), if two or more times exceed the threshold value, it is turned on. If two or more times does not exceed the threshold value, it is turned off. If it follows the majority rule, it can be seen that a highly reliable on / off determination result can be obtained by avoiding the influence on the detection determination by the inverter fluorescent lamp.

次に、本発明の要部となる相互干渉回避のための構成について、先ず、その概略を説明する。   Next, an outline of a configuration for avoiding mutual interference, which is a main part of the present invention, will be described first.

図11は相互干渉の発生の様子を説明するためのタイミングチャートである。同図(a)は一体の多光軸光電センサにおける任意の1光軸の投光タイミングを、同図(b)はそれに隣接する多光軸光電センサにおける任意の1光軸の投光タイミングをそれぞれ示している。尚、この例では説明を容易とするために投光パルス生成は1周期につき1個とする。同図(a)に示される多光軸光電センサにおいては周期Taで投光が行われているのに対し、同図(b)に示される多光軸光電センサにおいては周期Tbで投光が行われている。尚、このような投光周期の差は、ソフトウェア処理の内容の相違や、クロックのバラツキ等により生じる。ここでTb>Taとすると、両者の投光タイミングの時間差分は、差分a、差分b、差分c、差分dと徐々にその差を狭めながら、やがては、同図(b)に示される多光軸光電センサの投光タイミングが同図(a)に示される多光軸光電センサの投光タイミングに“追いつき”、相互干渉が発生する。尚、この現象は、換言すれば、同図(a)に示される多光軸光電センサの投光タイミングが同図(b)に示される多光軸光電センサの投光タイミングに“追いつかれ”、相互干渉が発生するものとも言える。   FIG. 11 is a timing chart for explaining how mutual interference occurs. The figure (a) shows the projection timing of any one optical axis in the integrated multi-optical axis photoelectric sensor, and the figure (b) shows the projection timing of any one optical axis in the adjacent multi-optical axis photoelectric sensor. Each is shown. In this example, for ease of explanation, the number of light projection pulses is one per cycle. In the multi-optical axis photoelectric sensor shown in FIG. 5A, light is projected at a period Ta, whereas in the multi-optical axis photoelectric sensor shown in FIG. Has been done. Note that such a difference in the light projection period is caused by a difference in the contents of software processing, clock variation, and the like. Assuming that Tb> Ta, the time difference between the light projection timings of the two is gradually reduced to the difference a, difference b, difference c, and difference d. The projection timing of the optical axis photoelectric sensor “catch up” with the projection timing of the multi-optical axis photoelectric sensor shown in FIG. In other words, this phenomenon means that the projection timing of the multi-optical axis photoelectric sensor shown in FIG. 5A is “catch up” with the projection timing of the multi-optical axis photoelectric sensor shown in FIG. It can be said that mutual interference occurs.

従来の多光軸光電センサにおける相互干渉対策は、単に、相互干渉の発生有無を検知するのみであったが、本発明では、この“追いつき”、“追いつかれ”に着目し、それぞれの場合に応じて適切に投光タイミングを変更することにより、干渉を検知(予知)しても動作を停止等させることなく、適切に当該干渉を回避して、動作を継続させるように構成している。   In the conventional multi-optical axis photoelectric sensor, the countermeasure against mutual interference was merely detecting the presence or absence of mutual interference. However, in the present invention, paying attention to “catch up” and “catch up”, each case Accordingly, by appropriately changing the light projection timing accordingly, even if the interference is detected (predicted), the operation is appropriately avoided without stopping the operation, and the operation is continued.

そのための構成として、本発明の多光軸光電センサにおいては、図12に示されるように、各光軸(この例では(a)〜(c)の3個のみを示す)の投光周期T毎に、投光期間(実線で示される3個の連続パルス)の直前と直後の非投光期間(点線で示される1個のパルス)に受光サンプリングを行って入光有無を判定することにより、時間的に“追いつき”または“追いつかれ”て発生しようとしている干渉を識別して検知するようにしている。尚、図12で示される例では、投光期間の直前のみの受光サンプリングと、投光期間の直後のみの受光サンプリングとを、1周期毎に交互に繰り返しているが、これは、センサの応答時間を短縮するためである。応答速度を問わずに、干渉発生予知の速さを重視するのであれば、1周期毎に投光期間の直前と直後の両方で受光サンプリングするのが好ましい。   As a configuration for this, in the multi-optical axis photoelectric sensor of the present invention, as shown in FIG. 12, the light projection period T of each optical axis (only three of (a) to (c) are shown in this example). By performing light reception sampling in the non-projection period (one pulse indicated by a dotted line) immediately before and after the light emission period (three continuous pulses indicated by a solid line) and determining whether light is incident or not In this case, interference that is about to be caught up with time or caught up is identified and detected. In the example shown in FIG. 12, the light reception sampling just before the light projection period and the light reception sampling only just after the light projection period are alternately repeated every cycle. This is to shorten the time. Regardless of the response speed, if importance is attached to the speed of predicting the occurrence of interference, it is preferable to perform light reception sampling for each cycle both immediately before and after the projection period.

そして、投光期間の直前の受光サンプリングによる入光が連続して確認された場合には、自身の投光タイミングが隣接する他の多光軸光電センサの投光タイミングに、時間的に“追いつかれつつある”と考えられるから、この場合には、自身の全光軸についての次回の投光タイミングを図13に示されるように、投光周期Tで規定される予定された投光タイミングtよりも時間Ta分だけ遅らせる(T+Ta)。但し、その後の投光周期Tはそのまま維持される。これにより、以降の投光周期の位相が時間的に前にずらされるから、追いつかれそうであった状況を脱して相互干渉が未然に防がれる上に、動作を停止等させることなくセンサ動作を継続させることができる。尚、同図中、縦の点線で挟まれる領域“I”は自己診断やセンサ間通信等に費やされる期間を示している。   Then, when the incident light by the light reception sampling immediately before the light projection period is continuously confirmed, its own light projection timing “catch up” with the light projection timing of another adjacent multi-optical axis photoelectric sensor. In this case, the next light projection timing for all the optical axes is scheduled light projection timing t defined by the light projection period T as shown in FIG. Is delayed by the time Ta (T + Ta). However, the subsequent light projection period T is maintained as it is. As a result, the phase of the subsequent projection cycle is shifted forward in time, so that the situation where it was likely to be overtaken can be avoided and mutual interference can be prevented, and the sensor operation can be performed without stopping the operation. Can be continued. In the figure, an area “I” between vertical dotted lines indicates a period spent for self-diagnosis, communication between sensors, and the like.

一方、投光期間の直後の受光サンプリングによる入光が連続して確認された場合には、自身の投光タイミングが隣接する他の多光軸光電センサの投光タイミングに、時間的に“追いつきつつある”と考えられるから、この場合には、自身の全光軸についての次回の投光タイミングを図14に示されるように、投光周期Tで規定される予定された投光タイミングtよりも時間Ta分だけ早める(T−Ta)。但し、その後の投光周期Tはそのまま維持される。これにより、以降の投光周期の位相が時間的に後ろにずらされるから、追いつきそうであった状況を脱して相互干渉が未然に防がれる上に、動作を停止等させることなくセンサ動作を継続させることができる。尚、同図中、縦の点線で挟まれる領域“I”は自己診断やセンサ間通信等に費やされる期間を示している。   On the other hand, if incident light by light reception sampling immediately after the light projection period is continuously confirmed, its own light projection timing “catch up” with the light projection timing of another adjacent multi-optical axis photoelectric sensor. In this case, the next light projection timing for all of its own optical axes is based on the scheduled light projection timing t defined by the light projection period T as shown in FIG. Is also advanced by the time Ta (T-Ta). However, the subsequent light projection period T is maintained as it is. As a result, the phase of the subsequent projection cycle is shifted backward in time, so that the situation where it was likely to catch up is avoided and mutual interference is prevented in advance, and the sensor operation can be performed without stopping the operation. Can continue. In the figure, an area “I” between vertical dotted lines indicates a period spent for self-diagnosis, communication between sensors, and the like.

次に、上述の相互干渉回避を実現するための本実施形態の多光軸光電センサの動作内容全体の概略を図15のゼネラルフローチャートに示す。   Next, an outline of the entire operation of the multi-optical axis photoelectric sensor of this embodiment for realizing the above-described mutual interference avoidance is shown in the general flowchart of FIG.

同フローチャートに示されるように、本実施形態の多光軸光電センサは、電源が投入されると、先ず、センサヘッド及び外部設定器のメモリの初期化等の起動処理が実行される(ステップ1501)。起動処理が終了すると、次いで検出処理が実行される。この検出処理では、先に図13、図14を参照して説明した投光タイミング調整処理(ステップ1502)と、投受光処理(ステップ1503)と、自己診断処理(1504)と、投光センサヘッド1、受光センサヘッド2並びに外部設定器3との間の通信又は受光センサヘッド2と他の多光軸光電センサ(多光軸光電センサが併設されるような場合)の受光センサヘッドとの通信を行う通信処理(ステップ1505)とを繰り返すことにより実行される。   As shown in the flowchart, when the multi-optical axis photoelectric sensor of the present embodiment is turned on, first, startup processing such as initialization of the memory of the sensor head and the external setting device is executed (step 1501). ). When the startup process ends, the detection process is then executed. In this detection process, the light projection timing adjustment process (step 1502), the light projection / reception process (step 1503), the self-diagnosis process (1504), and the light projection sensor head described above with reference to FIGS. 1. Communication between the light receiving sensor head 2 and the external setting device 3 or communication with the light receiving sensor head of the light receiving sensor head 2 and another multi-optical axis photoelectric sensor (when a multi-optical axis photoelectric sensor is provided together) It is executed by repeating the communication process (step 1505) for performing the above.

尚、本実施形態では、通信処理(ステップ1505)の終了後に、異常有無確認(ステップ1506)と、受光判定しきい値、投光量、受光信号増幅率等の設定を行うための設定モードに移行するか否かの確認が行われる(ステップ1508)。ステップ1506で行われる異常有無確認では、ステップ1504の自己診断についての異常有無確認と、ステップ1505の通信処理についての異常確認と、ステップ1502のタイミング調整が所定回数以上連続して行われていないか(すなわち、繰り返しタイミング調整を行っても干渉を回避できていない場合)の確認が行われている。これらに異常が認められたときには(ステップ1506YES)、異常モードへと移行し(ステップ1507)、センサの動作が一時的にロックアウトされる。また、この例では、外部設定器3からの所定の設定開始信号の入力があったときに(ステップ1508YES)、設定モード(ステップ1509)へと移行する   In the present embodiment, after completion of the communication process (step 1505), a transition is made to a setting mode for confirming the presence / absence of abnormality (step 1506) and setting the light reception determination threshold value, the light projection amount, the light reception signal amplification factor, and the like. Whether or not to confirm is confirmed (step 1508). In the confirmation of the presence / absence of abnormality performed in step 1506, whether the abnormality presence / absence confirmation for the self-diagnosis in step 1504, the abnormality confirmation for the communication processing in step 1505, and the timing adjustment in step 1502 have been continuously performed a predetermined number of times or more. (That is, interference is not avoided even after repeated timing adjustment) is confirmed. When an abnormality is recognized in these (YES in step 1506), the operation shifts to an abnormal mode (step 1507), and the sensor operation is temporarily locked out. In this example, when a predetermined setting start signal is input from the external setting device 3 (YES in step 1508), the mode shifts to the setting mode (step 1509).

まず、ステップ1503に示される投受光処理の詳細を図16のフローチャートを参照しつつ説明する。尚、同図には、投光センサヘッド1における処理(ステップ1601、1602)と、受光センサヘッド2における処理(ステップ1611〜1619)とが並列的に示されている。同フローチャートには示されていないが、投受光処理に際しては、先ず、投光センサヘッド1においては、CPU12において、内部メモリから投光量の設定値(投光電流データ)が読み込まれ、これにより、図3に示したデコーダ120からのFET駆動信号出力(S3)が決定される。一方、受光センサヘッド2においては、先ず、CPU23において、内部メモリから受光信号増幅率、及び受光判定しきい値の設定値が読み込まれ、これにより、図4に示したCPU23からの受光信号増幅率指定信号(S5)及び受光判定しきい値が決定される。   First, details of the light projecting / receiving process shown in step 1503 will be described with reference to the flowchart of FIG. In the figure, the processing in the light projecting sensor head 1 (steps 1601 and 1602) and the processing in the light receiving sensor head 2 (steps 1611 to 1619) are shown in parallel. Although not shown in the flowchart, in the light projecting / receiving process, first, in the light projecting sensor head 1, the CPU 12 reads the setting value (light projecting current data) of the light projecting amount from the internal memory. The FET drive signal output (S3) from the decoder 120 shown in FIG. 3 is determined. On the other hand, in the light receiving sensor head 2, first, the CPU 23 reads the light reception signal amplification factor and the set value of the light reception determination threshold value from the internal memory, whereby the light reception signal amplification factor from the CPU 23 shown in FIG. A designation signal (S5) and a light reception determination threshold value are determined.

次いで、投光センサヘッド1及び受光センサヘッド2において、通信用ケーブル101を通じて、投光センサヘッド1と受光センサヘッド2との間の同期をとるための同期通信が行われる(ステップ1601,ステップ1611)。   Next, in the light projecting sensor head 1 and the light receiving sensor head 2, synchronous communication for synchronizing the light projecting sensor head 1 and the light receiving sensor head 2 is performed through the communication cable 101 (steps 1601 and 1611). ).

次いで、受光センサヘッド2においては、その後の投受光処理(ステップ1602、ステップ1613)における干渉チェックのための受光サンプリングを投光期間の直前に行うか直後に行うかの確認を行う(ステップ1612)。この確認はCPU23の内部メモリに書き込まれる干渉チェックフラグを見ることで行われる。   Next, in the light receiving sensor head 2, it is confirmed whether the light receiving sampling for interference check in the subsequent light projecting / receiving process (step 1602, step 1613) is performed immediately before or after the light projecting period (step 1612). . This confirmation is performed by looking at the interference check flag written in the internal memory of the CPU 23.

次いで、光軸の数だけループ処理が行われる。投光センサヘッド1においては、先に決定された投光量と規定の連続投光数(3回)を前提として、各投光器11を順次選択的に駆動させることにより、各投光器11からの投光が行われる(ステップ1602)。これが全光軸分終了するまで繰り返される。   Next, loop processing is performed for the number of optical axes. In the light projecting sensor head 1, light projection from each light projecting device 11 is performed by selectively driving each light projecting device 11 on the premise of the previously determined light projecting amount and a prescribed number of continuous light projections (3 times). Is performed (step 1602). This is repeated until all the optical axes have been completed.

一方、受光センサヘッド2においては、先に決定された受光信号増幅率を前提として、各受光器21の受光サンプリングゲートを各々4回分(オンオフ判定用3回+干渉チェック用1回)選択的に順次開放し、各受光器21からの受光信号を順次取り込む。受光信号は、A/D変換器22cによりA/D変換されて、CPU23に取り込まれる。CPU23では、取り込まれた受光信号と、先に決定された受光判定しきい値とを比較することにより、受光判定処理(各光軸における受光有無の判定)を実行する(ステップ1613)。より詳細には、この判定処理は、投光器からの投光に同期した3回分の受光サンプリングにより得られる受光信号を、それぞれ受光判定しきい値と比較し、3回の判定のうちで、2回以上がしきい値を越える場合にはオン認定、2回以上がしきい値を越えない場合にはオフ認定と多数決原理に従って最終的な受光判定を行う。尚、このとき、同時に、干渉チェック用の受光サンプリングにより得られる受光信号についてもオンオフ認定が行われる。この結果は、後述する相互干渉データ処理(ステップ1615)で使用される。   On the other hand, in the light receiving sensor head 2, on the premise of the light receiving signal amplification factor determined in advance, the light receiving sampling gates of the respective light receivers 21 are selectively selected four times (on / off determination three times + interference check once). The light receiving signals from the respective light receivers 21 are sequentially taken in sequentially. The received light signal is A / D converted by the A / D converter 22 c and taken into the CPU 23. The CPU 23 executes a light reception determination process (determination of the presence or absence of light reception in each optical axis) by comparing the received light reception signal with the previously determined light reception determination threshold value (step 1613). More specifically, in this determination process, the light reception signals obtained by the light reception sampling for three times synchronized with the light projection from the light projector are respectively compared with the light reception determination threshold value, and two times among the three determinations. When the above exceeds the threshold value, the on-recognition is performed, and when the number of times does not exceed the threshold value, the final light reception determination is performed according to the off-determination and the majority rule. At this time, on-off certification is also performed for the received light signal obtained by the received light sampling for interference check. This result is used in the mutual interference data processing (step 1615) described later.

尚、この例では、ライトカーテンを用途としているため、受光判定処理(ステップ1613)において、何れかの光軸において受光が確認されなかったとき(オフ認定のとき)には、それに応じた所定動作(例えば、制御対象機器の停止信号の生成)が実行される(出力制御処理、ステップ1614)。また、この多光軸光電センサがエリアセンサを用途とする場合には、受光判定処理(ステップ1613)において、受光が確認されなかった光軸に基づいて、それに応じた所定動作(例えば、物体侵入エリアを特定するための信号生成)が実行される(出力制御処理、ステップ1614)。尚、これら受光判定処理後の出力制御処理については当業者にとって自明であるからここでの詳細説明は省略する。   In this example, since the light curtain is used, when light reception is not confirmed on any of the optical axes in the light reception determination process (step 1613) (when off is recognized), a predetermined operation corresponding thereto is performed. (For example, generation of a stop signal for the control target device) is executed (output control processing, step 1614). Further, when the multi-optical axis photoelectric sensor is used as an area sensor, a predetermined operation (for example, object intrusion) corresponding to the optical axis for which light reception is not confirmed in the light reception determination process (step 1613). Signal generation for specifying an area) is executed (output control processing, step 1614). Note that the output control processing after the light reception determination processing is obvious to those skilled in the art, and thus detailed description thereof is omitted here.

続くステップ1615では、相互干渉データ処理が実行される。この相互干渉データ処理では、先のステップ1613で得られた干渉チェック用の受光サンプリングによるオンオフ認定結果が使用される。   In the following step 1615, mutual interference data processing is executed. In this mutual interference data processing, the on / off recognition result by the light reception sampling for interference check obtained in the previous step 1613 is used.

相互干渉データ処理の詳細が図17のフローチャートにより示されている。この処理では、先ず、先のステップ1613で得られた干渉チェック用の受光サンプリングによるオンオフ認定結果が確認される。ここで、干渉有り(オン認定)の場合には(ステップ1701YES)、次いで、その受光サンプリングが投光期間の直前のものか直後のものかの識別が干渉チェックフラグを見て行われる(ステップ1702)。次いで、CPU23において前後干渉カウンタ機能が使用される。すなわち、受光サンプリングが投光期間の直前のものであった場合には(ステップ1702前)、前干渉カウンタN2が+1歩進される(ステップ1703)。一方、受光サンプリングが投光期間の直後のものであった場合には(ステップ1702後)、後干渉カウンタN3が+1歩進される(ステップ1704)。これに対し、先のステップ1613で得られた干渉チェック用の受光サンプリングによるオンオフ認定結果がオフ認定(干渉無し)の場合には(ステップ1701NO)、次いで、その受光サンプリングが投光期間の直前のものか直後のものかの識別が干渉チェックフラグを見て行われる(ステップ1705)。次いで、CPU23において前後干渉カウンタ機能が使用される。すなわち、受光サンプリングが投光期間の直前のものであった場合には(ステップ1705前)、前干渉カウンタN2がリセット(クリア)される(ステップ1706)。一方、受光サンプリングが投光期間の直後のものであった場合には(ステップ1705後)、後干渉カウンタN3がリセット(クリア)される(ステップ1704)。このように、前後干渉カウンタは、投光期間の直前か直後の受光サンプリングの結果、複数周期連続してオン認定が行われた場合にのみ歩進される。これは、単発のノイズ等は干渉光として認定しないための対応である。   Details of the mutual interference data processing are shown in the flowchart of FIG. In this process, first, the on / off recognition result by the light reception sampling for interference check obtained in the previous step 1613 is confirmed. If there is interference (ON authorization) (YES at step 1701), then, whether the received light sampling is immediately before or after the projection period is identified by checking the interference check flag (step 1702). ). Next, the front / rear interference counter function is used in the CPU 23. That is, when the light reception sampling is immediately before the light projection period (before step 1702), the previous interference counter N2 is incremented by +1 (step 1703). On the other hand, if the received light sampling is immediately after the light projection period (after step 1702), the rear interference counter N3 is incremented by +1 (step 1704). On the other hand, if the ON / OFF recognition result by the light reception sampling for interference check obtained in the previous step 1613 is OFF recognition (no interference) (step 1701 NO), then the light reception sampling is performed immediately before the light projection period. Whether it is a thing or just after is identified by looking at the interference check flag (step 1705). Next, the front / rear interference counter function is used in the CPU 23. That is, if the light reception sampling is immediately before the light projection period (before step 1705), the previous interference counter N2 is reset (cleared) (step 1706). On the other hand, if the received light sampling is immediately after the light projection period (after step 1705), the rear interference counter N3 is reset (cleared) (step 1704). As described above, the front-rear interference counter is incremented only when ON recognition is performed continuously for a plurality of periods as a result of light reception sampling immediately before or after the light projection period. This is a measure for preventing single noise or the like from being recognized as interference light.

図16のフローチャートに戻り、ステップ1613〜ステップ1615で示されるループ処理が終了されると、受光センサヘッドにおいては、CPU23の内部メモリ内の干渉チェックフラグの書き換え(反転)が行われる(ステップ1616)。これにより、次回のループ処理における干渉チェック用の受光サンプリングの投光期間に対する前後位置が反転されることとなる。   Returning to the flowchart of FIG. 16, when the loop processing shown in steps 1613 to 1615 is completed, the light receiving sensor head rewrites (inverts) the interference check flag in the internal memory of the CPU 23 (step 1616). . As a result, the front and rear positions of the light reception sampling for interference check in the next loop processing are inverted.

次いで、投受光ループ処理の結果に基づく補助出力が生成される(ステップ1617)。この補助出力は、PLC等の上位機器に、センサのオンオフ認定の状態を複数周期毎に通知するためのものであるが、発明の要部とは直接関係しないため、ここでの詳細説明は省略するものとする。   Next, an auxiliary output based on the result of the light projection / reception loop processing is generated (step 1617). This auxiliary output is for notifying a host device such as a PLC of the on / off status of the sensor for each of a plurality of cycles, but is not directly related to the main part of the invention, so detailed description thereof is omitted here. It shall be.

次いで、ステップ1618に示される相互干渉判定処理が実行される。相互干渉判定処理の詳細内容が図18のフローチャートにより示されている。相互干渉判定処理では、まず、先のステップ1615で歩進・リセット等された前後干渉カウンタについて、全光軸を対象として検証が行われる。第1に、全光軸に対応する前干渉カウンタN2の値が確認される(ステップ1801)。ここで1つの光軸でも前干渉カウンタN2の値が“5”に達していると(5回連続して投光期間の直前の受光サンプリングでオン認定がされていると)(ステップ1801YES)、CPU23の内部メモリの所定領域に前干渉発生フラグF1に“1”が書き込まれる(ステップ1802)。すなわち、この状態は、自身の何れかの光軸についての投光タイミングが、他のセンサの投光タイミングに追いつかれつつあり、干渉を受けている、あるいは干渉を受ける直前の状態にあることを意味している。この前干渉フラグF1は、図15で示したタイミング調整処理(ステップ1502)において使用される。その詳細については後述する。   Next, the mutual interference determination process shown in step 1618 is executed. The detailed contents of the mutual interference determination process are shown in the flowchart of FIG. In the mutual interference determination process, first, the front / rear interference counter that has been advanced / reset in step 1615 is verified for all optical axes. First, the value of the front interference counter N2 corresponding to all the optical axes is confirmed (step 1801). Here, if the value of the front interference counter N2 reaches “5” even with one optical axis (if the light reception sampling immediately before the light projection period is turned on five times) (YES in step 1801), "1" is written in the previous interference occurrence flag F1 in a predetermined area of the internal memory of the CPU 23 (step 1802). In other words, this state indicates that the light projection timing for any one of the optical axes is being caught up with the light projection timing of another sensor, and is in an interfering state or just before receiving the interference. I mean. This previous interference flag F1 is used in the timing adjustment process (step 1502) shown in FIG. Details thereof will be described later.

続くステップ1803では、全光軸についての前干渉カウンタN2をリセットして処理は一旦終了する。   In the subsequent step 1803, the pre-interference counter N2 for all the optical axes is reset, and the process is temporarily ended.

一方、先のステップ1801において、いずれの光軸に対応する前干渉カウンタN2の値が“5”に達していない場合には、次いで、全光軸に対応する後干渉カウンタN3の値が確認される(ステップ1804)。ここで1つの光軸でも後干渉カウンタN3の値が“5”に達していると(5回連続して投光期間の直後の受光サンプリングでオン認定がされていると)(ステップ1804YES)、CPU23の内部メモリの所定領域に後干渉発生フラグF2に“1”が書き込まれる(ステップ1802)。すなわち、この状態は、自身の何れかの光軸についての投光タイミング他のセンサの投光タイミングに追いつきつつあり、相互干渉を受けている、或いは受ける直前の状態にあることを意味している。この後干渉フラグF2は、図15で示したタイミング調整処理(ステップ1502)において使用される。その詳細については後述する。   On the other hand, if the value of the front interference counter N2 corresponding to any optical axis has not reached “5” in the previous step 1801, then the value of the rear interference counter N3 corresponding to all the optical axes is confirmed. (Step 1804). Here, if the value of the rear interference counter N3 reaches “5” even with one optical axis (if the light reception sampling is performed immediately after the light projection period for five consecutive times) (YES in step 1804). “1” is written to the post-interference occurrence flag F2 in a predetermined area of the internal memory of the CPU 23 (step 1802). That is, this state means that it is catching up with the light projection timing of any one of its own optical axes and the light projection timing of other sensors, and is in a state of receiving or receiving a mutual interference. . Thereafter, the interference flag F2 is used in the timing adjustment process (step 1502) shown in FIG. Details thereof will be described later.

次に、図15のフローチャートに戻り、タイミング調整処理について説明する。このタイミング調整処理は、各投受光ループ処理の先頭で行われるものである。タイミング調整処理の詳細が図19のフローチャートにより示されている。   Next, returning to the flowchart of FIG. 15, the timing adjustment processing will be described. This timing adjustment process is performed at the head of each light emitting / receiving loop process. Details of the timing adjustment processing are shown in the flowchart of FIG.

タイミング調整処理では、CPU23の内部メモリに書き込まれた前干渉発生フラグF1、並びに後干渉発生フラグF2についての確認が行われる。ここで、前干渉発生フラグF1=“1”の場合には(ステップ1901YES)、自身の何れかの光軸についての投光タイミングが、他のセンサの投光タイミングに追いつかれつつあり、干渉を受けている、あるいは干渉を受ける直前の状態にあると判断し、先に図13で示したように、次回の投光タイミング(投受光同期タイミング)を時間Ta分遅らせるための処理を行う(ステップ1902)。その後、前干渉発生フラグを“0”に書き換え(ステップ1903)、更に、干渉連続発生カウンタPを+1歩進させ、処理は一旦終了する。尚、この干渉連続発生カウンタPは、図15のステップ1506で示される異常検出処理の際、参照されるものである。詳細は後述する。   In the timing adjustment process, confirmation is performed on the front interference occurrence flag F1 and the rear interference occurrence flag F2 written in the internal memory of the CPU 23. Here, when the previous interference occurrence flag F1 = “1” (step 1901 YES), the light projection timing of any of its own optical axes is being caught up with the light projection timing of other sensors, and interference is not caused. It is determined that it is being received or is in a state immediately before receiving interference, and as shown in FIG. 13, processing for delaying the next light projection timing (projection / reception synchronization timing) by time Ta is performed (step 1902). Thereafter, the previous interference occurrence flag is rewritten to “0” (step 1903), and the continuous interference occurrence counter P is incremented by +1, and the process is temporarily ended. The continuous interference occurrence counter P is referred to in the abnormality detection process shown at step 1506 in FIG. Details will be described later.

一方、タイミング調整処理において、後干渉発生フラグF2=“1”の場合には(ステップ1901NO,ステップ1905YES)、自身の何れかの光軸についての投光タイミング他のセンサの投光タイミングに追いつきつつあり、相互干渉を受けている、或いは受ける直前の状態にあると判断し、先に図14で示したように、次回の投光タイミング(投受光同期タイミング)を時間Ta分早めるための処理を行う(ステップ1906)。その後、後干渉発生フラグを“0”に書き換え(ステップ1907)、更に、干渉連続発生カウンタPを+1歩進させ(ステップ1908)、処理は一旦終了する。尚、この干渉連続発生カウンタPは、図15のステップ1506で示される異常検出処理の際、参照されるものである。詳細は後述する。尚、前後干渉フラグの何れもが“0”である場合には(ステップ1901NO、ステップ1905NO)、干渉連続発生カウンタPはリセットされる(ステップ1909)。   On the other hand, in the timing adjustment process, when the post-interference occurrence flag F2 = “1” (NO in step 1901, YES in step 1905), the projection timing for any one of its own optical axes catches up with the projection timing of other sensors. Yes, it is determined that it is receiving mutual interference or is in a state just before receiving, and as shown in FIG. 14, processing for advancing the next light projection timing (projection / reception synchronization timing) by time Ta is performed. Perform (step 1906). Thereafter, the post-interference occurrence flag is rewritten to “0” (step 1907), and the continuous interference occurrence counter P is incremented by +1 (step 1908), and the process is temporarily ended. The continuous interference occurrence counter P is referred to in the abnormality detection process shown at step 1506 in FIG. Details will be described later. If both the front and rear interference flags are “0” (NO in step 1901 and NO in step 1905), the continuous interference occurrence counter P is reset (step 1909).

図15のフローチャートに戻り、投受光処理(ステップ1503)が終了すると、次いで、先に説明した自己診断処理(ステップ1504)、通信処理(1505が行われ、その後、異常有無確認(ステップ1506)が行われる。ステップ1506で行われる異常有無確認では、ステップ1504の自己診断についての異常有無確認と、ステップ1505の通信処理についての異常確認と、ステップ1502のタイミング調整が所定回数以上連続して行われていないか(すなわち、繰り返しタイミング調整を行っても干渉を回避できていない場合)の確認が行われている。   Returning to the flowchart of FIG. 15, when the light projection / reception processing (step 1503) is completed, the self-diagnosis processing (step 1504) and communication processing (1505) described above are then performed, and then the presence / absence confirmation of abnormality (step 1506) is performed. In the abnormality presence / absence confirmation performed in step 1506, the abnormality presence / absence confirmation in step 1504, the abnormality confirmation in communication processing in step 1505, and the timing adjustment in step 1502 are continuously performed a predetermined number of times or more. (That is, when interference is not avoided even after repeated timing adjustments).

ここで、ステップ1502のタイミング調整が所定回数以上連続して行われていないかについては、先に図19のフローチャートを参照して説明した干渉連続発生カウンタPの値が参照される。この値がこの例では“5”に達していると、干渉を回避できていない(5回連続してタイミング調整を行っているにも拘わらず干渉が検知され続けている)状態が発生しているものとして、異常モードへと移行し、センサがロックアウトされる。   Here, as to whether or not the timing adjustment in step 1502 has been continuously performed a predetermined number of times or more, the value of the continuous interference occurrence counter P described above with reference to the flowchart of FIG. 19 is referred to. If this value reaches “5” in this example, interference cannot be avoided (interference is continuously detected despite timing adjustment being performed five times in succession). As a result, a transition is made to the abnormal mode and the sensor is locked out.

このように、本実施形態では、投光期間の直前と直後の非投光期間中に受光サンプリングを行い、直前と直後のそれぞれのオンオフ認定結果に基づいて、その後の投光タイミング(投受光同期)を適宜前後へ移動させているため、干渉を検知乃至予知しても動作を停止等させることなく、適切に当該干渉を回避して、動作を継続させることを可能としている。   As described above, in the present embodiment, the light reception sampling is performed during the non-light projection period immediately before and after the light projection period, and the subsequent light projection timing (projection / light reception synchronization) is based on the respective on / off certification results immediately before and after the light projection period. ) Is appropriately moved back and forth, so that even if the interference is detected or predicted, the operation can be appropriately avoided without stopping the operation, and the operation can be continued.

尚、上記実施形態では、インバータ蛍光灯ノイズの影響を排除するために投光周期の到来毎に3発の連続投光を行ったが、投光が単発の場合であっても、本発明を適用することができる。   In the above embodiment, three consecutive light projections are performed every time the light projection period arrives in order to eliminate the influence of inverter fluorescent lamp noise. However, the present invention is not limited to a single light projection. Can be applied.

また、上記実施形態では、3発連続投光(投光期間)の直前と直後における受光サンプリングを行っているが、非投光時における受光サンプリング(干渉チェック)は、3発投光(複数投光)の合間に介在させることもできる。   In the above embodiment, light reception sampling is performed immediately before and immediately after three consecutive light projections (light projection periods). However, light reception sampling (interference check) during non-light projection is performed by three light projections (multiple light projections). It is also possible to intervene between light).

本発明の多光軸光電センサの外観図(全体構成図)である。It is an external view (whole structure figure) of the multi-optical axis photoelectric sensor of this invention. 本発明の多光軸光電センサの本体部(投受光センサヘッド)の回路構成を示す図である。It is a figure which shows the circuit structure of the main-body part (projection-and-reception sensor head) of the multi-optical axis photoelectric sensor of this invention. 投光センサヘッドの回路構成の詳細を示す図である。It is a figure which shows the detail of the circuit structure of a light projection sensor head. 受光センサヘッドの回路構成の詳細を示す図である。It is a figure which shows the detail of the circuit structure of a light-receiving sensor head. 外部設定器の回路構成を示す図である。It is a figure which shows the circuit structure of an external setting device. 変換テーブル内容の一例を示す図である。It is a figure which shows an example of the content of a conversion table. 蛍光灯ノイズの波形と投光パルスとの関係を示す図である。It is a figure which shows the relationship between the waveform of fluorescent lamp noise, and a light projection pulse. 投光パルスの発生タイミングと蛍光灯ノイズ周期との関係を示す図である。It is a figure which shows the relationship between the generation timing of a light projection pulse, and a fluorescent lamp noise period. 蛍光灯ノイズと受光信号との関係を示す図である。It is a figure which shows the relationship between fluorescent lamp noise and a light reception signal. レベルシフト後の受光信号としきい値との関係を示す図である。It is a figure which shows the relationship between the light received signal after a level shift, and a threshold value. 相互干渉の発生の様子を説明するための図である。It is a figure for demonstrating the mode of generation | occurrence | production of mutual interference. 投受光タイミングの一例を示す図である。It is a figure which shows an example of a light projection / reception timing. タイミング調整の例を示す図(その1)である。FIG. 6 is a diagram (part 1) illustrating an example of timing adjustment. タイミング調整の例を示す図(その2)である。FIG. 10 is a second diagram illustrating an example of timing adjustment; 本発明の多光軸光電センサの動作内容の全体を示すフローチャートである。It is a flowchart which shows the whole operation | movement content of the multi-optical axis photoelectric sensor of this invention. 投受光処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a light projection / reception process. 相互干渉データ処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a mutual interference data process. 相互干渉判定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a mutual interference determination process. タイミング調整処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a timing adjustment process.

符号の説明Explanation of symbols

1 投光センサヘッド
2 受光センサヘッド
3 外部設定器
3a 操作部
3b 表示部
4 PLC
10 ケーブル
11 投光器
12 CPU
13 通信用回路
14 I/O
21 受光器
22 信号処理部
23 CPU
24 通信用回路
25 I/O
31 入力回路
32 表示回路
33 通信回路
34 CPU
100 多光軸光電センサ
101 通信用ケーブル
102 通信用ケーブル接続コネクタ
111 投光素子
112 選択回路
113 電流制御回路
120 デコーダ
P1,P2,P3 投光パルス
TN 蛍光灯ノイズ周期
VS 受光信号
DESCRIPTION OF SYMBOLS 1 Light emission sensor head 2 Light reception sensor head 3 External setting device 3a Operation part 3b Display part 4 PLC
10 Cable 11 Floodlight 12 CPU
13 Communication circuit 14 I / O
21 Photoreceiver 22 Signal processor 23 CPU
24 Communication circuit 25 I / O
31 Input Circuit 32 Display Circuit 33 Communication Circuit 34 CPU
DESCRIPTION OF SYMBOLS 100 Multi-optical axis photoelectric sensor 101 Communication cable 102 Communication cable connector 111 Light emitting element 112 Selection circuit 113 Current control circuit 120 Decoder P1, P2, P3 Light emission pulse TN Fluorescent lamp noise period VS Light reception signal

Claims (9)

複数の投光器が配列された投光センサヘッドと、複数の受光器が配列された受光センサヘッドとを有し、各光軸毎に投光期間並びに受光サンプリング期間を同期させて所定の周期で検出光の投光を行うことにより所定エリアへの物体侵入有無を監視する多光軸光電センサであって、
投光期間直近の所定の2つの期間についてそれぞれ受光サンプリングを行い、外乱光の入光有無を判定する外乱光有無判定手段と、
外乱光有無判定手段により確認された入光有りの回数を2つの期間別にカウントするカウント手段と、
一定期間内に前記2つの期間のいずれかで所定回数を超える入光数がカウントされたときには、それが前記2つの期間のいずれかに基づいて、予定された次回の同期タイミングを変更することにより、以降の周期の位相をずらす周期変更手段と、
を有する多光軸光電センサ。
It has a light projecting sensor head in which a plurality of light projectors are arranged and a light receiving sensor head in which a plurality of light receivers are arranged, and detects at a predetermined cycle by synchronizing the light projection period and the light reception sampling period for each optical axis. A multi-optical axis photoelectric sensor that monitors the presence or absence of an object entering a predetermined area by projecting light,
Light receiving sampling for each of the two predetermined periods nearest to the light projecting period, disturbance light presence / absence determining means for determining the presence or absence of disturbance light, and
Counting means for counting the number of incident lights confirmed by the disturbance light presence / absence judging means for two periods;
When the number of incident light exceeding a predetermined number is counted in either of the two periods within a certain period, it is changed based on either of the two periods by changing the scheduled next synchronization timing. , Period changing means for shifting the phase of the subsequent period,
A multi-optical axis photoelectric sensor.
2つの期間は、投光期間の直前と直後にそれぞれ設定されている、ことを特徴とする1に記載の多光軸光電センサ。 2. The multi-optical axis photoelectric sensor according to 1, wherein the two periods are set immediately before and after the light projection period, respectively. 外乱光有無判定手段は、全光軸を対象として投光期間の直前及び直後における入光有無を判定し、
周期変更手段は、いずれか1つの光軸に対応する外乱光の入光数が所定回数を超えたことを条件として、全光軸についての次回の同期タイミングを一律に変更する、ことを特徴とする請求項1または2に記載の多光軸光電センサ。
The disturbance light presence / absence determining means determines the presence / absence of incident light immediately before and immediately after the light projection period for all optical axes,
The period changing means uniformly changes the next synchronization timing for all the optical axes on condition that the number of disturbance light incidents corresponding to any one optical axis exceeds a predetermined number of times. The multi-optical axis photoelectric sensor according to claim 1 or 2.
周期変更手段は、一定期間内における投光期間の直前の入光数が所定数を超えたときには、次回の同期タイミングを予定されたそれより所定時間遅れさせ、一定期間内における投光期間の直後の入光数が所定数を超えたときには、次回の同期タイミングを予定されたそれより所定時間早める、ことを特徴とする請求項2又は3に記載の多光軸光電センサ。 The period changing means delays the next synchronization timing by a predetermined time from the scheduled time when the number of incident lights immediately before the light projection period within a certain period exceeds a predetermined number, and immediately after the light projection period within the certain period. 4. The multi-optical axis photoelectric sensor according to claim 2, wherein when the number of incident lights exceeds a predetermined number, the next synchronization timing is advanced by a predetermined time from the scheduled timing. 外乱光有無判定手段は、投光期間の直前のみの受光サンプリングと、投光期間の直後のみの受光サンプリングとを、1周期毎に交互に繰り返すことを特徴とする請求項1乃至4の何れかに記載の多光軸光電センサ。 5. The disturbance light presence / absence determining means alternately repeats the light reception sampling just before the light projection period and the light reception sampling only immediately after the light projection period every one cycle. The multi-optical axis photoelectric sensor according to 1. カウント手段は、投光期間の直前と直後における連続入光数をそれぞれカウントする直前入光カウンタ及び直後入光カウンタを有し、
カウント手段の各カウンタは、1周期毎に到来する監視対象周期において入光が確認されたときにはカウンタ値が歩進される一方、監視対象周期において入光が確認されないときには、カウンタ値がリセットされる、
ことを特徴とする請求項5に記載の多光軸光電センサ。
The counting means has a just before incident light counter and a just after incident light counter for counting the number of continuous incident light immediately before and immediately after the light projection period,
Each counter of the counting means is incremented when the incident light is confirmed in the monitoring target period that arrives every one period, and is reset when no incident light is confirmed in the monitoring target period. ,
The multi-optical axis photoelectric sensor according to claim 5.
同期タイミングが複数周期に亘り連続して変更された回数をカウントする連続変更回数カウント手段と、
連続変更回数が所定回数を超えたときには、センサ動作を停止する手段と、
を更に有することを特徴とする請求項1乃至6の何れかに記載の多光軸光電センサ。
Continuous change count counting means for counting the number of times the synchronization timing has been continuously changed over a plurality of cycles;
Means for stopping the sensor operation when the number of continuous changes exceeds a predetermined number;
The multi-optical axis photoelectric sensor according to claim 1, further comprising:
所定エリアへの物体侵入が検知されたときには、外部制御対象機器の動作停止信号を生成するライトカーテンである、ことを特徴とする請求項1乃至7の何れかに記載の多光軸光電センサ。 The multi-optical axis photoelectric sensor according to claim 1, wherein the multi-optical axis photoelectric sensor is a light curtain that generates an operation stop signal of an external control target device when an object intrusion into a predetermined area is detected. 遮光が検知された1又は2以上の光軸に基づいて、所定エリア内における物体の侵入位置を検知するエリアセンサである、ことを特徴とする請求項1乃至7の何れかに記載の多光軸光電センサ。 The multi-light according to claim 1, wherein the multi-light is an area sensor that detects an intrusion position of an object in a predetermined area based on one or more optical axes in which light shielding is detected. Axis photoelectric sensor.
JP2003349158A 2003-10-08 2003-10-08 Multi-optical-axis photoelectric sensor Pending JP2005114551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003349158A JP2005114551A (en) 2003-10-08 2003-10-08 Multi-optical-axis photoelectric sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003349158A JP2005114551A (en) 2003-10-08 2003-10-08 Multi-optical-axis photoelectric sensor

Publications (1)

Publication Number Publication Date
JP2005114551A true JP2005114551A (en) 2005-04-28

Family

ID=34541098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003349158A Pending JP2005114551A (en) 2003-10-08 2003-10-08 Multi-optical-axis photoelectric sensor

Country Status (1)

Country Link
JP (1) JP2005114551A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007101217A (en) * 2005-09-30 2007-04-19 Sunx Ltd Photoelectric sensor
JP2007129583A (en) * 2005-11-04 2007-05-24 Sunx Ltd Multiple-optical-axis photoelectric sensor
JP2015087317A (en) * 2013-10-31 2015-05-07 株式会社コスモテック Optical sensor, detection device and detection method
JP2017118435A (en) * 2015-12-25 2017-06-29 パナソニック デバイスSunx株式会社 Photoelectronic sensor
WO2019176305A1 (en) * 2018-03-13 2019-09-19 オムロン株式会社 Determination device, multiple optical-axis photoelectric sensor, determination device control method, information processing program, and recording medium
JP2020148642A (en) * 2019-03-14 2020-09-17 オムロン株式会社 Optical sensor
CN114200534A (en) * 2021-12-09 2022-03-18 欧姆龙(上海)有限公司 Photoelectric sensor and control method thereof
CN114623851A (en) * 2022-03-08 2022-06-14 欧姆龙(上海)有限公司 Photoelectric sensor and control method thereof

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007101217A (en) * 2005-09-30 2007-04-19 Sunx Ltd Photoelectric sensor
JP4648812B2 (en) * 2005-09-30 2011-03-09 パナソニック電工Sunx株式会社 Photoelectric sensor
JP2007129583A (en) * 2005-11-04 2007-05-24 Sunx Ltd Multiple-optical-axis photoelectric sensor
JP2015087317A (en) * 2013-10-31 2015-05-07 株式会社コスモテック Optical sensor, detection device and detection method
JP2017118435A (en) * 2015-12-25 2017-06-29 パナソニック デバイスSunx株式会社 Photoelectronic sensor
JP2019158600A (en) * 2018-03-13 2019-09-19 オムロン株式会社 Determination device, multi-axis photoelectric sensor, method of controlling determination device, information processing program, and recording medium
WO2019176305A1 (en) * 2018-03-13 2019-09-19 オムロン株式会社 Determination device, multiple optical-axis photoelectric sensor, determination device control method, information processing program, and recording medium
KR20200027026A (en) * 2018-03-13 2020-03-11 오므론 가부시키가이샤 Judgment apparatus, multi-axis photoelectric sensor, control method of judging apparatus, information processing program, and recording medium
KR102251301B1 (en) 2018-03-13 2021-05-12 오므론 가부시키가이샤 Judgment device, multi-beam photoelectric sensor, control method of judging device, information processing program, and recording medium
US11169301B2 (en) 2018-03-13 2021-11-09 Omron Oorporation Determination device, multiple optical-axis photoelectric sensor, determination device control method, information processing program, and recording medium
JP2020148642A (en) * 2019-03-14 2020-09-17 オムロン株式会社 Optical sensor
JP7037770B2 (en) 2019-03-14 2022-03-17 オムロン株式会社 Optical sensor
CN114200534A (en) * 2021-12-09 2022-03-18 欧姆龙(上海)有限公司 Photoelectric sensor and control method thereof
CN114200534B (en) * 2021-12-09 2024-04-26 欧姆龙(上海)有限公司 Photoelectric sensor and control method thereof
CN114623851A (en) * 2022-03-08 2022-06-14 欧姆龙(上海)有限公司 Photoelectric sensor and control method thereof

Similar Documents

Publication Publication Date Title
US7326910B2 (en) Multiple-optical-axis photoelectric sensor
US6720545B2 (en) Photoelectric sensor, control method therefor and semiconductor integrated circuit therefor
JP2009124666A (en) Photoelectric sensor
US20140361149A1 (en) Method for Synchronizing Optical Units of a Photoelectric Barrier and Light Curtain
JP2005114551A (en) Multi-optical-axis photoelectric sensor
JP5472571B2 (en) Laser distance measuring apparatus and shielding object detection method thereof
JP2013210314A (en) Object detection device, object detection method, object detection program, and information recording medium
JP2009225012A (en) Intrusion detection apparatus
CN111095465B (en) Multi-optical axis photoelectric sensor
JPH0530787U (en) Photoelectric switch
JPH0983330A (en) Photoelectric switch and its system
JP2010041462A (en) Photoelectric switch
JP4007965B2 (en) Object detection device
JPH02285277A (en) Photoelectric switch equipped with mutual interference preventing function
JP2005098874A (en) Infrared detection sensor
JP2008213980A (en) Picking sensor and picking system
JP2010210473A (en) Optical type vehicle detection device
JP2002217703A (en) Multi-optical axis photoelectric sensor
KR102081226B1 (en) Multi-optical axis sensor
JP2006211186A (en) Photoelectric sensor with interference prevention function
EP2957993A1 (en) Detecting device and input device
KR20050095441A (en) Infrared detector and control method thereof
JP2009207190A (en) Multi-optical axis photoelectric sensor
JP2005242710A (en) Infrared sensor and infrared monitoring system using it
JP3347199B2 (en) Multi-optical axis photoelectric switch

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080116

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080227

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080501