JP2004320767A - Photoelectric fiber sensor - Google Patents

Photoelectric fiber sensor Download PDF

Info

Publication number
JP2004320767A
JP2004320767A JP2004117088A JP2004117088A JP2004320767A JP 2004320767 A JP2004320767 A JP 2004320767A JP 2004117088 A JP2004117088 A JP 2004117088A JP 2004117088 A JP2004117088 A JP 2004117088A JP 2004320767 A JP2004320767 A JP 2004320767A
Authority
JP
Japan
Prior art keywords
channel
fiber
detection
light
display
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
JP2004117088A
Other languages
Japanese (ja)
Other versions
JP3844080B2 (en
Inventor
Takashi Kamei
隆 亀井
Hiroyuki Inoue
宏之 井上
Kiyohiko Gondo
清彦 権藤
Shinichiro Iura
慎一郎 井浦
Chiku Fujita
築 藤田
Yoshinori Kawai
喜典 川合
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
Priority claimed from US10/695,652 external-priority patent/US6944359B2/en
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2004117088A priority Critical patent/JP3844080B2/en
Publication of JP2004320767A publication Critical patent/JP2004320767A/en
Application granted granted Critical
Publication of JP3844080B2 publication Critical patent/JP3844080B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce a virtual occupancy width per channel in the case of mounting a plurality of photoelectric fiber sensors in series. <P>SOLUTION: The photoelectric fiber sensor includes two pairs of lighting circuits and light-receiving circuits, respectively corresponding to a first and a second detection channel; a single CPU performing time-division detection operations of the two detection channels; two output lines, corresponding to the two detection channels; four fiber insertion inlets disposed on the front face, being arrayed vertically in such a way that the lower two inlets correspond to a lighting and receiving pair corresponding to the first detection channel, and the upper two inlets correspond to a lighting and receiving pair, corresponding to the second detection channel; and a first and a second numerical display section, disposed on the upper face in parallel along the longitudinal direction of a case, each capable of displaying a plurality of numeral digits in parallel, along the longitudinal direction of the case. The light quantity of the first detection channel received is to be displayed in the first numeric display section, while the light quantity of the second detection channel received is to be displayed in the second numeric display section. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、DINレールなどの取り付け用レールを介して互いに密に隣接して連装可能としたファイバ型光電センサに係り、特に、狭小なスペースに多数取り付けるのに好適なファイバ型光電センサに関する。   The present invention relates to a fiber-type photoelectric sensor which can be installed closely adjacent to each other via a mounting rail such as a DIN rail, and more particularly to a fiber-type photoelectric sensor suitable for mounting a large number in a small space.

DINレールを介して多数連装可能であって、1組の投受光ファイバと、1組の投受光回路と、1本の出力線とを有するファイバ型光電センサは既に知られている(特許文献1参照)。   A fiber-type photoelectric sensor that can be connected in large numbers via a DIN rail and has one set of light emitting and receiving fibers, one set of light emitting and receiving circuits, and one output line is already known (Patent Document 1). reference).

また、ファイバヘッドと連繋して目的とするセンシング機能を実現するためのセンシング系回路と、複数隣接させて連装した状態における1方の側のセンサと双方向光通信を行うための投受光素子を含む第1の光通信系回路と、複数隣接させて連装した状態における他方の側の隣接センサと双方向光通信を行う為の投受光素子を含む第2の光通信系回路とが、DINレールを介して多数連装可能なハウジングに収容され、それにより連装状態において両隣のセンサとの間で双方向に光通信が可能とされたファイバ型光電センサは既に知られている(特許文献2参照)。   In addition, a sensing system circuit for realizing a desired sensing function in connection with the fiber head, and a light emitting and receiving element for performing bidirectional optical communication with a sensor on one side in a state where a plurality of sensors are connected in series are provided. And a second optical communication system circuit including a light emitting / receiving element for performing bidirectional optical communication with an adjacent sensor on the other side in a state in which a plurality of adjacent optical sensors are connected to each other. A fiber-type photoelectric sensor which is housed in a housing capable of being connected in a large number via a plurality of sensors, thereby enabling two-way optical communication between adjacent sensors in a connected state is already known (see Patent Document 2). .

また、第1の側と第2の側の通信系回路を使用して両隣のセンサとハンドシェイク処理を試み、センサ列中における自己のポジションを学習し、学習された固有なアドレスを割り当て設定し、ポジションに固有なセンシング動作のタイミングを生成して、この動作タイミングに従ってセンシング系回路を駆動することによりセンシング動作を実現すると共に、センシング動作の合間に、1方の側の隣接センサから受信されたデータを、自己のみに当てられたものを除いて、他方の側の隣接センサへと転送するデータ選択転送機能と、受信された自己宛のデータに含まれるコマンドを実行する機能が具備されたファイバ型光電センサは既に知られている(特許文献3参照)。   Further, the handshake process is attempted with the sensors on both sides using the communication circuits on the first and second sides, the own position in the sensor array is learned, and the learned unique address is assigned and set. In addition, a timing of a sensing operation specific to a position is generated, and a sensing operation is realized by driving a sensing system circuit in accordance with the operation timing, and received from an adjacent sensor on one side during the sensing operation. A fiber provided with a data selective transfer function for transferring data to an adjacent sensor on the other side, excluding data applied only to itself, and a function for executing a command included in received data addressed to self. Type photoelectric sensors are already known (see Patent Document 3).

また、1台で複数の検出チャンネルを備え、前面に1つの検出チャンネルに対応する投受光対の光ファイバ挿入口が上下に配列され、そのような光ファイバ挿入口の対が検出チャンネルの数だけ横方向に配列された複数チャンネルのファイバ型光電センサは既に知られている(特許文献4参照)。
特開2002−279871号公報 国際公開第01/31607号パンフレット 特開2001−222786号公報 特開平7−301733号公報
In addition, one unit has a plurality of detection channels, and the optical fiber insertion ports of the light emitting and receiving pair corresponding to one detection channel are arranged vertically on the front surface, and the number of such optical fiber insertion ports is equal to the number of the detection channels. A multi-channel fiber-type photoelectric sensor arranged in a horizontal direction is already known (see Patent Document 4).
JP-A-2002-279871 International Publication No. 01/31607 pamphlet JP 2001-222786 A JP-A-7-301733

昨今、産業現場における制御の複雑高度化に伴い、多数の検出対象物を1台の制御装置で制御する必要性が生じている。検出対象物が高密度に多数存在する場合、センサヘッド部の小型並びに取扱い容易性から、ファイバ型光電センサが多用される傾向にある。殊に、DINレールを介して多数密に連装可能な連装方式のファイバ型光電センサは、狭小なスペースに多数のセンサを取り付けることができる点で好適である。   In recent years, with the sophistication of control in industrial sites, it has become necessary to control a large number of detection targets with a single control device. When a large number of objects to be detected exist at a high density, a fiber-type photoelectric sensor tends to be frequently used due to the small size and easy handling of the sensor head. In particular, a fiber-type photoelectric sensor of a continuous type that can be mounted densely via a DIN rail is suitable in that a large number of sensors can be mounted in a small space.

しかしながら、特許文献1〜特許文献3に記載の従来のファイバ型光電センサにあっては、1チャンネル分の検出動作しか賄うことしかできないから、例えば8チャンネル(8箇所)、16チャンネル(16箇所)、32チャンネル(32箇所)といったように検出対象物が複数存在するときには、それらのチャンネル数に合わせて8台、16台、32台といったように多数のファイバ型光電センサを並べねばならない。もちろん、これらセンサの連装方向への幅乃至厚みに関しては、各メーカにおいて薄型化が検討された結果、例えば幅10mm程度までの薄型化が達成されている。しかし、これらの薄型化への努力にも限界があるため、チャンネル数が増大するにつれて、DINレールに沿ったセンサ群の連装長さは無視しがたいものとなる。殊に、工作機械などの制御装置の内部に組み込まざるを得ない場合には、一般の制御盤内に組み込まれる場合に比べて、スペース上の制約が大きい。   However, the conventional fiber-type photoelectric sensors described in Patent Literatures 1 to 3 can only cover the detection operation for one channel. Therefore, for example, 8 channels (8 locations) and 16 channels (16 locations) When there are a plurality of detection targets such as 32 channels (32 locations), a large number of fiber-type photoelectric sensors such as 8, 16, and 32 must be arranged in accordance with the number of channels. Of course, as for the width or thickness of these sensors in the connecting direction, each manufacturer has studied thinning, and as a result, for example, a thickness of about 10 mm has been achieved. However, these efforts to reduce the thickness are limited, and as the number of channels increases, the continuous length of the sensor group along the DIN rail is not negligible. In particular, when it has to be installed inside a control device such as a machine tool, space restrictions are greater than when it is installed inside a general control panel.

また、センサが1チャンネルずつ独立した製品となっているので、多数を使用するとコスト高となる。センサのケースが大きくなってもよいから、単一の製品で多数の検出チャンネルを扱うことによってコストダウンを図ることも考えられるが、ユーザーが必要とするチャンネル数はさまざまであるから、いずれのユーザーのニーズをも満足させようとするとチャンネル数の異なる多くの機種が必要となり、結局十分なコストダウン効果を得ることができない。また、多チャンネル化する場合に、出力応答性のような性能面、連装される他のファイバ型光電センサとの連携機能、および使いやすさの観点から構成上いかなる配慮をすべきかが明らかでない。さらに、特許文献4に記載のファイバ型光電センサのように複数の検出チャンネルの光ファイバ挿入口を横方向に配列したのでは、多チャンネル化による省スペース効果が充分得られない。   Further, since the sensor is an independent product for each channel, the use of many sensors increases the cost. Since the size of the sensor case may be large, it may be possible to reduce the cost by handling a large number of detection channels with a single product.However, since the number of channels required by the user varies, In order to satisfy these needs, many models having different numbers of channels are required, and as a result, a sufficient cost reduction effect cannot be obtained. In addition, it is not clear what consideration should be given to the configuration in terms of performance such as output responsiveness, the function of coordination with other fiber-type photoelectric sensors to be connected, and ease of use when multi-channeling is used. Furthermore, if the optical fiber insertion ports of a plurality of detection channels are arranged in the horizontal direction as in the fiber type photoelectric sensor described in Patent Document 4, the space saving effect due to the multi-channel cannot be sufficiently obtained.

この発明は、このような従来の問題点に着目してなされたものであり、その目的とするところは、複数台連装する場合において、1チャンネルあたりの実質占有幅を縮小することが可能なファイバ型光電センサを提供することにある。   The present invention has been made in view of such conventional problems, and an object of the present invention is to provide a fiber capable of reducing a substantial occupied width per channel in a case where a plurality of units are connected in series. It is to provide a type photoelectric sensor.

また、この発明の他の目的とするところは、1チャンネルあたりの実質占有幅を縮小しつつも、各チャンネル毎の動作や表示機能をできる限り維持するようにしたファイバ型光電センサを提供することにある。   Another object of the present invention is to provide a fiber-type photoelectric sensor in which the operation and display function of each channel are maintained as much as possible while reducing the substantial occupation width per channel. It is in.

また、この発明の他の目的とするところは、1チャンネルあたりの占有幅を実質的に縮小しつつも、隣接チャンネル間における検出情報を有効に利用して、出力動作や表示動作を行うことができるようにしたファイバ型光電センサを提供することにある。   Another object of the present invention is to perform an output operation and a display operation by effectively utilizing detection information between adjacent channels while substantially reducing the occupied width per channel. It is an object of the present invention to provide a fiber type photoelectric sensor which can be used.

また、この発明のさらに他の目的とするところは、従前の1チャンネル方式の連装センサシステムにもそのまま適用が可能な適合性の高いファイバ型光電センサを提供することにある。   It is still another object of the present invention to provide a highly adaptable fiber-type photoelectric sensor which can be directly applied to a conventional single-channel type continuous sensor system.

また、この発明のさらに他の目的とするところは、比較的少数の検出チャンネルを使用する場合および比較的多数の検出チャンネルを必要とする場合のいずれにあっても、コストダウンを図ることができるファイバ型光電センサを提供することにある。   Still another object of the present invention is to reduce costs regardless of whether a relatively small number of detection channels are used or a relatively large number of detection channels are required. An object of the present invention is to provide a fiber type photoelectric sensor.

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

この発明のファイバ型光電センサは、底面にレール装着部、上面に表示部と操作部、前面にファイバ挿入口、後面にコード引出方式またはコネクタ方式の出力部、を有すると共に、レール長手方向の寸法が15mm以下であることを前提とする。   The fiber-type photoelectric sensor of the present invention has a rail mounting portion on the bottom surface, a display portion and an operation portion on the upper surface, a fiber insertion port on the front surface, a cord pull-out type or connector type output portion on the rear surface, and a dimension in the rail longitudinal direction. Is 15 mm or less.

ここで、『レール装着部』とあるのは、主としてDINレールなどを意識したものであるが、『レール』なるものの意味するところは、特定の物理的形状を意味するものではない。そのため、この種のファイバ型光電センサを制御盤や制御装置の内部に取り付ける際に使用される任意の形状のレール乃至取付具を広く含むことは言うまでもない。また、『表示部と操作部』とが設けられる『上面』とは、仮に水平な取付面に取り付けた場合の上面を意味するものであって、任意の取付状態において垂直方向上方に位置する面ではないことは言うまでもない。また、ここで上面とは、その上に透明なカバーなどが存在しても差し支えない。更に、上面は必ずしも平坦な面である必要はなく、視認に便利なように傾斜していたり緩やかな曲面を成していたりしたものも全て上面に含まれる。   Here, the term "rail mounting portion" is mainly intended for a DIN rail or the like, but what is meant by a "rail" does not mean a specific physical shape. Therefore, it goes without saying that rails or fixtures of any shape used when attaching this type of fiber type photoelectric sensor to the inside of a control panel or a control device are obviously included. The “upper surface” provided with the “display unit and the operation unit” means the upper surface when temporarily mounted on a horizontal mounting surface, and is a surface located vertically upward in an arbitrary mounting state. Not to mention that it is not. The upper surface here may be a transparent cover or the like on the upper surface. Further, the upper surface does not necessarily have to be a flat surface, and any surface that is inclined or forms a gentle curved surface for easy viewing is included in the upper surface.

ファイバ挿入口が設けられる『前面』についても、水平な面に取り付けた場合における前面を意味するものであって、任意の姿勢における前面を意味するものではない。また、センサの筐体とファイバクランパの筐体とが分離可能な別体となっているような場合には、ファイバの挿入されるクランパの面がここで言う『前面』に相当するものであり、『前面』の意味するところについては、後述する『後面』との対比から理解されるべきである。   The "front surface" provided with the fiber insertion port also means the front surface when mounted on a horizontal surface, and does not mean the front surface in any posture. Further, when the housing of the sensor and the housing of the fiber clamper are separated from each other, the surface of the clamper into which the fiber is inserted corresponds to the “front surface” here. The meaning of "front" should be understood from comparison with "rear" described later.

出力部が設けられる『後面』については、同様に水平面に取り付けた場合における『前面』に対する『後面』であることは言うまでもない。尚、『コード引出方式』とは、電源線や信号線に相当する電気コードの先端がセンサハウジングの内部で半田やねじなどにより永久的に固定されており、通常の操作では着脱不能な方式を言い、コネクタ方式とは、本出願人が先に特開2001−196127号公報により開示したように、電源線や信号線をコネクタを介してセンサ本体ケースに対して着脱自在としたものである。このとき、隣接コネクタ同士を連結して、電源線を共有化したものも知られている。   It is needless to say that the “rear surface” on which the output unit is provided is the “rear surface” with respect to the “front surface” when similarly attached to a horizontal surface. In addition, the “code withdrawal method” refers to a method in which the tip of an electric cord corresponding to a power supply line or a signal line is permanently fixed inside the sensor housing with solder or screws, and cannot be attached or detached in normal operation. In other words, the connector system is one in which a power supply line and a signal line are detachably attached to a sensor main body case via a connector, as disclosed by the present applicant in Japanese Patent Application Laid-Open No. 2001-196127. At this time, there is also known a connector in which adjacent connectors are connected to share a power line.

更に、レール長手方向の寸法が15mm以下としたのは、現行製品がすでに達成しており、今後も標準的であると予想される寸法と同程度の寸法を有する薄型製品に適用される発明であることを明確にするためである。なお、ファイバ型光電センサのこの寸法はあまり小さいと表示器や操作スイッチも小さくなって使いにくくなるので、どこまでも薄くなるというものではなく、好適な寸法が存在すると考えられる。その好適な寸法は5〜15mm程度であり、より好適には7〜12mmである。   Further, the dimension of the rail in the longitudinal direction is set to 15 mm or less in the invention applied to a thin product having the same size as that expected by the current product and expected to be standard in the future. This is to clarify something. If the dimensions of the fiber-type photoelectric sensor are too small, the display and the operation switches become small, which makes it difficult to use. Therefore, it is considered that the fiber-type photoelectric sensor does not become thinner but has suitable dimensions. The preferred dimensions are about 5 to 15 mm, more preferably 7 to 12 mm.

以上の前提の基に、本発明にあっては、第1、第2の検出チャンネルに対応する2組の投光回路及び受光回路を設ける。ここで受光回路にはその後段に設けられるA/Dコンバータは含まれない。そのため、2組の受光回路のそれぞれ毎に別個にA/Dコンバータを有しなくとも良い。即ち、ここで言う『2組の受光回路』とは、受光素子とアナログ増幅回路が2組あれば要件を満たす。殊に、CPUをマイクロプロセッサを用いて構成する場合、マイクロプロセッサ内蔵のA/Dコンバータはビット数があまり多くないため、計測並びに表示の高精度化に制約を与える。このような場合、多少高価ではあるが、外付けのA/Dコンバータを利用し、これをセレクタにて第1チャンネルと第2チャンネルに切り替えるようにすれば、さほどコストアップを来すことなく十分なデータビット数を確保して、検出並びに表示における高精度化を実現することができる。   Based on the above premise, in the present invention, two sets of light emitting circuits and light receiving circuits corresponding to the first and second detection channels are provided. Here, the light receiving circuit does not include an A / D converter provided at a subsequent stage. Therefore, it is not necessary to provide an A / D converter separately for each of the two sets of light receiving circuits. That is, the "two sets of light receiving circuits" mentioned here satisfies the requirement if there are two sets of light receiving elements and analog amplifier circuits. In particular, when the CPU is configured using a microprocessor, the A / D converter with a built-in microprocessor does not have a very large number of bits, and thus limits the accuracy of measurement and display. In such a case, it is somewhat expensive, but if an external A / D converter is used and the selector is used to switch between the first channel and the second channel, the cost will not increase significantly. By ensuring a sufficient number of data bits, it is possible to realize high precision in detection and display.

次に、本発明にあっては、2つの検出チャンネルの検出動作(投光タイミング及び受光量を取得するタイミングを制御し、受光量をしきい値により判別する)を時分割で行う単一のCPUを有する。このようなCPUを実現する手段としては、マイクロプロセッサのみならずプログラマブル・ゲート・アレイなどのハードウェアを利用しても良い。また、ここで言う時分割には、『投受光から判定に至るまでの一連の処理を交互に』に限定するものではなく、多様な時分割の仕方が含まれていても良い。これにより、各検出チャンネル別に2台のCPUを設ける場合に比べ、回路部品の占める占積率を縮小し、コストダウンが可能となる。   Next, in the present invention, a single operation of detecting two detection channels in a time-division manner (controlling the timing of projecting light and the timing of acquiring the amount of received light and determining the amount of received light based on a threshold). It has a CPU. As means for realizing such a CPU, not only a microprocessor but also hardware such as a programmable gate array may be used. Further, the time division described here is not limited to “a series of processes from light emission / reception until determination is performed alternately”, and may include various methods of time division. As a result, the space factor occupied by the circuit components can be reduced and the cost can be reduced as compared with the case where two CPUs are provided for each detection channel.

また、本発明にあっては、2つの検出チャンネルに対応する2本の出力線を設ける。ここで、『2本の出力線』の意味するところは、1本の出力線を用いて時分割的に2つの検出チャンネルに対応するものを排除することにある。このような構成によって、各チャンネル毎に専用の出力線が存在するから、時分割構成に比べ、出力応答性を損ねることがない。   In the present invention, two output lines corresponding to the two detection channels are provided. Here, the meaning of "two output lines" is to exclude one corresponding to two detection channels in a time division manner using one output line. With such a configuration, a dedicated output line exists for each channel, so that output responsiveness is not impaired as compared with the time division configuration.

また、本発明にあっては、前面に上下に並んだ4つのファイバ挿入口を有する。ここで、下2つが第1のチャンネルに対応する投受光対、上2つが第2の検出チャンネルに対応する投受光対となる。このような構成を採用すると、1チャンネルタイプのファイバ型光電センサを製作する場合、検出チャンネルを構成する投受光対は、ハウジングの下2つに相当する位置に存在するようにすると、1チャンネルタイプのハウジング構造と本発明の2チャンネルタイプのハウジング構造において基本的構成が同一となり、部品の共通化が可能となる。また、この種のファイバ型光電センサに使用される投光ファイバと受光ファイバは、平行状態で密着一体化されているものがあるため、1つのチャンネルに対応するファイバ挿入口が上下に隣接して配置されていると、センサ本体に挿入する部分だけが分岐された密着一体型の投光ファイバと受光ファイバのセンサ本体への装着が容易となる。   In addition, the present invention has four fiber insertion ports arranged vertically on the front surface. Here, the lower two are light emitting and receiving pairs corresponding to the first channel, and the upper two are light emitting and receiving pairs corresponding to the second detection channel. When such a configuration is adopted, when a one-channel type fiber-type photoelectric sensor is manufactured, the light-emitting / receiving pair constituting the detection channel is provided at a position corresponding to the lower two portions of the housing. And the two-channel type housing structure of the present invention have the same basic configuration, and parts can be shared. In addition, the light-emitting fiber and the light-receiving fiber used in this type of fiber-type photoelectric sensor are closely integrated in a parallel state, so that the fiber insertion ports corresponding to one channel are vertically adjacent to each other. When it is arranged, it becomes easy to mount the light-emitting fiber and the light-receiving fiber of the close contact integral type in which only the portion to be inserted into the sensor main body is branched.

また、本発明にあっては、第1,第2の数値表示部が上面に設けられる。それら各数値表示部は、ケース長手方向へと数字が並べられる。加えて、それら第1,第2の数値表示部それ自体も、ケースの長手方向へ一定間隔で並べられる。これにより、ケースの長手方向と各数値の上下方向が直交する関係となって、最小スペースを持ってケースの長手方向へと数値を羅列することができるため、配列可能な数値桁数が増大する。   Further, in the present invention, the first and second numerical display portions are provided on the upper surface. In each of these numerical display portions, numbers are arranged in the longitudinal direction of the case. In addition, the first and second numerical display portions themselves are arranged at regular intervals in the longitudinal direction of the case. Accordingly, the longitudinal direction of the case and the vertical direction of each numerical value are orthogonal to each other, and numerical values can be arranged in the longitudinal direction of the case with a minimum space, thereby increasing the number of numerical values that can be arranged. .

さらに、この発明にあっては第1の数値表示部は第1の検出チャンネルの受光量を表示し、第2の数値表示部は第2の検出チャンネルの受光量を表示することができる。即ち、1個の数値表示部を切り替えて第1の検出チャンネルと第2の検出チャンネルとを択一的に表示するのではなく、同時に両チャンネルの受光量を確認することができる。これにより、1台のハウジングに2チャンネル分の検出機能並びに表示機能を収めてはいるものの、それらの機能は従前の2台の1チャンネルタイプのセンサの場合となんら変わるものではなく、機能性を損ねることなく、連装状態における占積率を向上できる。   Further, according to the present invention, the first numerical display unit can display the received light amount of the first detection channel, and the second numerical display unit can display the received light amount of the second detection channel. That is, instead of switching one numerical display unit to selectively display the first detection channel and the second detection channel, it is possible to simultaneously confirm the light reception amounts of both channels. As a result, although the detection function and display function for two channels are housed in one housing, those functions are not different from those of the conventional two one-channel type sensors, and the functionality is improved. The space factor in the connected state can be improved without spoiling.

以上述べた本発明のファイバ型光電センサによれば、ほぼ1台分の幅に2台分の機能(2チャンネル)の光電センサを設置することができ、かつ、両チャンネルの動作状況を同時に確認できる効果がある。さらに、単一のセンサ製品に2つの検出チャンネルが含まれることにより、チャンネル間でケースやCPUを共用することができるのでコストダウンを図ることができる。しかも、どのようなチャンネル数を必要とするユーザーも2つの検出チャンネルを有する本発明のセンサと従前の1つの検出チャンネルを有するセンサとを組み合わせて要求を満たすことができるから、さまざまなチャンネル数のセンサを用意することによるコストの増加を避けることができる。なお、多数の検出チャンネルを使用する場合には、たとえチャンネル数が1つ余ってもコストの無駄は相対的に小さな比率となるので、本発明のセンサのみを用いるようにしてもよい。   According to the fiber-type photoelectric sensor of the present invention described above, photoelectric sensors of two functions (two channels) can be installed in a width of approximately one device, and the operation status of both channels can be simultaneously checked. There is an effect that can be done. Furthermore, since a single sensor product includes two detection channels, the case and the CPU can be shared between the channels, so that the cost can be reduced. Moreover, a user who needs any number of channels can satisfy the demand by combining the sensor of the present invention having two detection channels and the sensor having one conventional detection channel. An increase in cost due to the provision of the sensor can be avoided. When a large number of detection channels are used, even if the number of channels is one more, the waste of cost is relatively small, so that only the sensor of the present invention may be used.

本発明の好ましい実施の形態においては、第1の数値表示部に隣接して第1の動作表示灯が、また第2の数値表示部に隣接し第2の動作表示灯が設けられ、その結果第1,第2の動作表示灯の何れかは第1,第2の数値表示部に挟まれて存在する。   In a preferred embodiment of the present invention, a first operation indicator is provided adjacent to the first numerical display, and a second operation indicator is provided adjacent to the second numerical display. Either the first or second operation indicator lamp is interposed between the first and second numerical display units.

このような構成によれば、動作表示灯が各チャンネルに隣接して設けられるため、各検出チャンネルにおける動作状態と受光量などとの関係を容易に理解することができ、使い勝手が良好なものとなる。   According to such a configuration, since the operation indicator is provided adjacent to each channel, it is possible to easily understand the relationship between the operation state and the amount of received light in each detection channel, and it is easy to use. Become.

本発明の好ましい実施の形態によれば、選択操作により、第1の数値表示部と第2の数値表示部の表示内容を、第1の検出チャンネルの受光量と第2の検出チャンネルの受光量、第1の検出チャンネルの受光量としきい値、及び第2の検出チャンネルの受光量としきい値、のいずれかに切り替えることが可能とされる。   According to a preferred embodiment of the present invention, the display contents of the first numerical display unit and the second numerical display unit are changed by the selection operation to the light receiving amount of the first detection channel and the light receiving amount of the second detection channel. , The received light amount and threshold value of the first detection channel, and the received light amount and threshold value of the second detection channel.

このような構成によれば、予め設けられた2台の数値表示部に対し、個々の受光量、又は各チャンネル毎の受光量としきい値とを適宜選択的に表示させることができるため、2チャンネル分の機能を1台のセンサで賄いつつも、個々のチャンネルに関する表示機能を何ら損ねることがない。   According to such a configuration, it is possible to appropriately and selectively display the amount of received light or the amount of received light and the threshold value for each channel on two numerical display units provided in advance. While the functions for the channels are covered by one sensor, the display function for each channel is not impaired at all.

また、本発明の好ましい実施の一形態においては、第1の検出チャンネルの検出結果と第2の検出チャンネルの検出結果との間で論理演算を行う論理演算手段と、論理演算手段による論理演算結果を出力する出力線が設けられる。『論理演算手段』には、ワイヤードロジックで構成された論理回路及びマイクロプロセッサで実行されるソフトウェアのいずれもが含まれる。また、『論理演算結果を出力する出力線』についても、先に述べた2本の出力線の内の1本を兼用したり、別途専用の出力線を設けたりすることができる。   In a preferred embodiment of the present invention, a logical operation means for performing a logical operation between a detection result of the first detection channel and a detection result of the second detection channel, and a logical operation result by the logical operation means Is provided. The “logical operation means” includes both a logic circuit constituted by wired logic and software executed by a microprocessor. As for the "output line for outputting a logical operation result", one of the above-mentioned two output lines may be used, or a dedicated output line may be separately provided.

このような構成によれば、隣接する2つのチャンネルの論理演算結果が出力できることに加え、従前の隣接センサ間で論理演算を行うものに比べ、センサ間通信が不要となることから、応答性の高い論理演算出力を得ることができる。加えて、隣接センサ間での通信が不要であるため、その時間を省略して、より複雑な論理演算を実施させることができる。   According to such a configuration, in addition to being able to output a logical operation result of two adjacent channels, communication between sensors is not required as compared with a conventional logical operation performed between adjacent sensors. A high logical operation output can be obtained. In addition, since communication between adjacent sensors is not necessary, the time can be omitted and more complicated logical operation can be performed.

また、本発明の好ましい実施の一形態においては、第1の検出チャンネルの受光量と第2の検出チャンネルの受光量との間の差の演算を行う差演算手段と、差演算手段による差演算結果をしきい値により判別する判別手段と、判別手段による判別結果を出力する出力線とが設けられる。ここで、『差演算手段』についても、アナログ差演算回路を使用する場合と、マイクロプロセッサによりソフトウェア的に実行する場合との双方を含むことができる。また、『判別結果を出力する出力線』についても、先に述べた2本の出力線の内の1本を兼用しても良いし、それらとは別に専用の出力線を設けてもよい。   Further, in a preferred embodiment of the present invention, a difference calculation means for calculating a difference between a light reception amount of the first detection channel and a light reception amount of the second detection channel, and a difference calculation by the difference calculation means A determination means for determining the result based on a threshold value and an output line for outputting a result of the determination by the determination means are provided. Here, the "difference calculation means" can also include both a case where an analog difference calculation circuit is used and a case where execution is performed by software using a microprocessor. As for the “output line for outputting the determination result”, one of the two output lines described above may be used, or a dedicated output line may be provided separately from them.

また、本発明の好ましい実施の一形態においては、単一のクランプ操作子の操作により、上下に配列された4個のファイバ挿入口に挿入された4本のファイバを同時にロックするファイバロック機構が設けられる。従来、投受光一対の光ファイバをロックする場合、それら2本の光ファイバは1個の可動ブロックにより一体的にクランプされる。本発明のように2対の投受光光ファイバが存在すれば、各ファイバ対毎に着脱を要する場合も存在するであるだろう。しかし、上下に配置された2系統の光ファイバ対を別々にロック・アンロックするとすれば、その結果クランプ操作子(クランプレバー、ロックボタン等とも称される)についても2個必要となる。すると、たとえばクランプ操作子がクランプレバーの場合にはそれら2個のクランプレバーをセンサハウジングの狭小なスペース内において併存させかつ各々独立して操作可能とするためには、2個のレバーの回動軸を前後にずらすかレバーの幅を狭くしてセンサハウジングの幅方向へ並列に配置するかのいずれかとなり、いずれにしても極めて複雑な構造を採用せねばならない。本発明のように、連装状態における占有スペースの小型化を主として意図した場合、むしろ2系統のファイバ対を別々に着脱可能とすることは犠牲にしても、構造の簡素化によりケースへの収容を容易とすることを優先すべきである。斯かる観点からすれば、単一のクランプ操作子の操作により4本のファイバを同時にロックするファイバロック機構は、上記の省スペース化の目的には最適なものと言える。ここで、ファイバロック機構は、ファイバの先端部を受け入れる4個のファイバ挿入孔が上下方向に適当な間隔(間隔は一定であってもなくてもよい)で配置されたベースブロックと、ベースブロックの4個のファイバ挿入口の入口のそれぞれに対応させてベースブロックに固定された4個の可撓性Cリングと、ベースブロックの前面側にあって上下方向にスライド自在に支持されかつ4個のCリングのそれぞれと係合してその径を拡大又は縮小させる1個の共通なスライドアクチュエータと、ベースブロックに回動自在に支持されかつその回動によりスライドアクチュエータをスライドさせるクランプレバーと、を含むようにしても良い。   In a preferred embodiment of the present invention, a fiber lock mechanism for simultaneously locking four fibers inserted into four fiber insertion ports arranged vertically by operating a single clamp operator is provided. Provided. Conventionally, when locking a pair of optical fibers, the two optical fibers are integrally clamped by one movable block. If there are two pairs of light emitting and receiving optical fibers as in the present invention, there may be cases where attachment / detachment is required for each fiber pair. However, if two pairs of optical fibers arranged vertically are separately locked and unlocked, as a result, two clamp operators (also called clamp levers, lock buttons, etc.) are required. Then, for example, when the clamp operator is a clamp lever, in order to make the two clamp levers coexist in the narrow space of the sensor housing and to be able to operate independently of each other, the rotation of the two levers is performed. Either the shaft is shifted back and forth or the width of the lever is reduced, and the levers are arranged in parallel in the width direction of the sensor housing. In any case, an extremely complicated structure must be adopted. As in the present invention, when the main purpose is to reduce the occupied space in the continuous state, the accommodation of the two fiber pairs in the case is simplified by simplifying the structure, at the cost of making it possible to separately attach and detach the two fiber pairs. Ease should be a priority. From this point of view, a fiber lock mechanism that locks four fibers simultaneously by operating a single clamp operator can be said to be optimal for the above-described space saving purpose. Here, the fiber lock mechanism includes a base block in which four fiber insertion holes for receiving the tip of the fiber are arranged at appropriate intervals in the vertical direction (the interval may or may not be constant); And four flexible C-rings fixed to the base block corresponding to the entrances of the four fiber insertion ports, respectively, and four slidably supported vertically on the front side of the base block. A common slide actuator that engages with each of the C-rings to increase or decrease the diameter thereof, and a clamp lever that is rotatably supported by the base block and slides the slide actuator by the rotation. It may be included.

さらに、本発明の好適な実施の一形態においては、外部同期信号に基づいて生成される検出動作タイミングが到来する度に、検出動作を行うべき検出チャンネルを、第1の検出チャンネルと第2の検出チャンネルとに交互に切り替える切り替え手段が設けられる。   Further, in a preferred embodiment of the present invention, each time a detection operation timing generated based on an external synchronization signal arrives, a detection channel on which a detection operation is to be performed is set to a first detection channel and a second detection channel. Switching means for alternately switching to the detection channel is provided.

一般にこの種のセンサシステムにあっては、1台の親機に対し複数台の子機が連接され(親機と子機は同一の構成で自己設定または外部からの設定により親機、子機の役割が定まるものであってもよい)、親機はタイマにより周期的に同期信号を隣接センサに送り出す一方、各連接された子機のそれぞれにおいては、例えば、バケツリレー方式などによって同期信号を順繰りに隣接センサへと受け渡し、それぞれの子機センサにおいては隣接センサからの同期信号受信を待って検出動作を行うと共に、わずかな遅れ時間をもって、同期信号を隣接センサへと伝えるようになっている。これにより、親機が全システムの同期を管理しつつ、子機においては、わずかな時間差をもって投受光を行うことにより、隣接センサ間の干渉が防止される。一方、各親機又は子機においては、投受光に続いて、受光データの処理のためにある程度の時間が必要であり、これらの時間は、システムを構成する全センサの動作が一巡する間に、最後のセンサにおける受信処理動作が完了していなければならない。しかし、従前の1チャンネル内蔵型のセンサと本発明の2チャンネル内蔵型のセンサが混在したり、センサシステムを構成するセンサが全て本発明の2チャンネル内蔵のセンサであるような場合、もしも同一のセンサ内における隣接チャンネル間において相連続してわずかなディレイ時間をもって検出動作を行うと、特に同一回路基板内に2つの受信回路が搭載されていれば、チャンネル間の雑音混入或いは電源ラインの電圧変動の影響で、検出動作に支障を来すことが想定される。   Generally, in this type of sensor system, a plurality of slave units are connected to one master unit (the master unit and the slave unit have the same configuration, and are set by the self-configuration or external setting. The master unit periodically sends a synchronization signal to an adjacent sensor by a timer, while each of the connected slave units outputs the synchronization signal by, for example, a bucket brigade method. The handover sensors are sequentially transferred to adjacent sensors, and each slave unit sensor performs a detection operation after receiving a synchronization signal from the adjacent sensor, and transmits a synchronization signal to the adjacent sensor with a slight delay time. . Thereby, while the master unit manages synchronization of all the systems, the slave unit emits and receives light with a slight time difference, thereby preventing interference between adjacent sensors. On the other hand, in each of the master units or the slave units, a certain amount of time is required for processing the received light data following the light emission and reception, and such time is required during the cycle of the operation of all the sensors constituting the system. , The receiving processing operation in the last sensor must be completed. However, if the conventional one-channel built-in sensor and the two-channel built-in sensor of the present invention coexist, or if all the sensors constituting the sensor system are the two-channel built-in sensors of the present invention, the same is true. If the detection operation is performed with a slight delay time consecutively between adjacent channels in the sensor, especially if two receiving circuits are mounted on the same circuit board, noise mixing between channels or voltage fluctuation of the power supply line will occur. It is assumed that the detection operation will be affected by the influence of.

加えて、2チャンネル分の検出動作を1台のセンサ内において連続して行えば、当然にしてその1台のセンサが占める動作完了に至る時間は長大化するため、本来設計値では、8チャンネル、16チャンネル、32チャンネルのように、想定される最大チャンネル数が搭載されても最後のチャンネルにおける動作が予め決められた1周期内で終了するはずが、システム内に2チャンネル搭載のセンサが存在することによって、1周期を超えてしまい(所謂サイクルタイムオーバ)、センサシステム全体の動作に支障を来す虞が想定される。   In addition, if the detection operation for two channels is performed continuously in one sensor, the time required for the operation occupied by one sensor is naturally prolonged. Even if the expected maximum number of channels such as 16 channels and 32 channels are mounted, the operation on the last channel should end within a predetermined cycle, but there are sensors with 2 channels in the system. By doing so, it is possible that one cycle may be exceeded (so-called cycle time over), which may hinder the operation of the entire sensor system.

これに対して、本発明のこの実施形態のように、センサハウジング内に2チャンネルを有するものの1センサ内における隣接2チャンネルについては連続して動作させない構成、つまりセンサシステムの動作が一巡する度に、隣接センサが交互に検出動作を行うようにすれば、1台のセンサ内に2チャンネルの機能が搭載されていても、検出動作の所要時間は1チャンネル内蔵のセンサと同一となるため、従前の同期管理を行ったセンサシステムにおいても、何らセンサシステム全体に支障を与えることなく、検出動作を正常に行わせることができる。   On the other hand, as in this embodiment of the present invention, two channels are provided in the sensor housing, but two adjacent channels in one sensor are not operated continuously, that is, each time the operation of the sensor system makes one cycle. If the adjacent sensors perform the detection operation alternately, the time required for the detection operation is the same as that of the one-channel built-in sensor even if one sensor has the function of two channels. Even in a sensor system that has performed the synchronization management of the above, the detection operation can be performed normally without causing any trouble to the entire sensor system.

この実施形態は、上述した1台の親機に対し複数台の子機が存在し、同期信号を順次転送するタイプのセンサシステムのみならず、共通の同期ラインが並列にシステムを構成する各センサに接続され、個々のセンサ側において固有なディレイ時間をもって、全体として同期を取るようなセンサにあっても有効に機能する。即ち、そのような共通同期線を利用したセンサシステムであっても、8台、16台、32台といった最多予定接続台数に応じた最大周期時間は決定されているから、特定のセンサにおいて2チャンネル搭載することにより1台あたりの占有時間が増大すれば、システム全体として同様な不都合が生ずるはずである。   In this embodiment, not only a sensor system of a type in which a plurality of slave units exist for one master unit described above and a synchronization signal is sequentially transferred, but also a sensor system in which a common synchronization line constitutes a system in parallel , And has an inherent delay time on the individual sensor side, and functions effectively even in a sensor that is synchronized as a whole. In other words, even in a sensor system using such a common synchronous line, the maximum cycle time according to the maximum planned number of connected devices such as 8, 16, and 32 is determined. If the occupation time per unit increases due to the mounting, similar inconvenience should occur in the entire system.

従って、この実施形態のように、外部同期信号に基づいて生成される検出動作タイミングが到来する度に、検出動作を行うべき検出チャンネルを、第1の検出チャンネルと第2の検出チャンネルとに交互に切り替える切り替え手段を設けることによって、予め規定の周期(サイクルタイム)を有するセンサシステムであっても、それらを構成するセンサの1つ又は全部に2チャンネル内蔵のセンサを導入しても、システム全体に悪影響を与えないと言う利点があるのである。   Therefore, as in this embodiment, every time the detection operation timing generated based on the external synchronization signal arrives, the detection channel to be subjected to the detection operation is alternately switched between the first detection channel and the second detection channel. Even if a sensor system having a predetermined cycle (cycle time) is provided, even if a sensor having two channels is installed in one or all of the sensors constituting the sensor system, the entire system is provided. Has the advantage of not adversely affecting

他の観点から規定したこの発明のファイバ型光電センサは、底面にレール装着部、上面に表示部と操作部、前面にファイバ挿入口、後面にコード引き出し方式又はコネクタ方式からなる出力部、をそれぞれ有することを前提とし、第1、第2の検出チャンネルに対応する2組の投光回路及び受光回路と、2つの検出チャンネルの検出動作を時分割で行う単一のCPUと、2つの検出チャンネルに対応する2本の出力線と、前面に配列された4個のファイバ挿入口と、ケースの上面に設けられ、複数桁の数字をケース長手方向に並べて表示することができ、第1の検出チャンネルの受光量及び第2の検出チャンネルの受光量を数値で表示し得るように構成した表示器と、を備えるものである。このファイバ型光電センサによれば、先に説明したのと同様に、1チャンネル対応のセンサ2台分よりも低コストに製作することができる。また、各チャンネルの受光量を数値で確認することができるので使い勝手がよい。   The fiber-type photoelectric sensor of the present invention defined from another viewpoint has a rail mounting portion on the bottom surface, a display portion and an operation portion on the upper surface, a fiber insertion port on the front surface, and an output portion of a cord pull-out type or connector type on the rear surface, Two light-emitting circuits and light-receiving circuits corresponding to the first and second detection channels, a single CPU for performing time-division detection of the two detection channels, and two detection channels Are provided on the upper surface of the case, and a plurality of digits can be displayed side by side in the longitudinal direction of the case. A display configured to be able to display the received light amount of the channel and the received light amount of the second detection channel by numerical values. According to this fiber type photoelectric sensor, as described above, it can be manufactured at a lower cost than two sensors for one channel. Further, the amount of received light of each channel can be confirmed by a numerical value, so that the usability is good.

このファイバ型光電センサの好適な実施の一形態によれば、表示器は、各々複数桁の数字をケースの長手方向に並べて表示することができ、且つケースの長手方向に並べられた第1、第2の数値表示部を備え、第1の数値表示部には第1の検出チャンネルの受光量を、第2の数値表示部には第2の検出チャンネルの受光量をそれぞれ表示することが可能とされる。これにより、同時に両チャンネルの受光量を確認することができる。表示器の他の実施形態として、各チャンネルの受光量を1つの数値表示部に切り換えて表示してもよい。   According to a preferred embodiment of the fiber-type photoelectric sensor, the display device can display a plurality of digits each arranged in the longitudinal direction of the case, and the first and the second arranged in the longitudinal direction of the case. A second numerical display unit is provided. The first numerical display unit can display the received light amount of the first detection channel, and the second numerical display unit can display the received light amount of the second detection channel. It is said. Thereby, it is possible to confirm the light receiving amounts of both channels at the same time. As another embodiment of the display, the amount of received light of each channel may be switched and displayed on one numerical display unit.

このファイバ型光電センサは、4個のファイバ挿入口の種々の配置を採用しうる。例えば、1つのチャンネルの2個のファイバ挿入口を上下に、異なるチャンネルのファイバ挿入口を横方向に並べた配置、1つのチャンネルの2個のファイバ挿入口を横方向に、異なるチャンネルのファイバ挿入口を上下に並べた配置、これらの斜めの位置関係を含む配置などである。このファイバ型光電センサの他の好適な実施の一形態によれば、レール長手方向の寸法が15mm以下であり、4個のファイバ挿入口は、前面に上下に配列される。これにより、4個のファイバ挿入口を幅の狭いセンサ前面に無理なく配列することが可能となり、ほぼ一台分の幅に2台分の機能(2チャンネル)の光電センサを配置することができる。   This fiber type photoelectric sensor can adopt various arrangements of four fiber insertion ports. For example, two fiber insertion ports of one channel are arranged vertically, and fiber insertion ports of different channels are arranged side by side. Two fiber insertion ports of one channel are arranged horizontally, and fiber insertion of different channels is performed. An arrangement in which the mouths are arranged vertically, an arrangement including these oblique positional relationships, and the like. According to another preferred embodiment of this fiber type photoelectric sensor, the dimension in the rail longitudinal direction is 15 mm or less, and four fiber insertion ports are vertically arranged on the front surface. As a result, the four fiber insertion ports can be arranged without difficulty on the front surface of the narrow sensor, and the photoelectric sensor having two functions (two channels) can be arranged in the width of almost one sensor. .

4個のファイバ挿入口は、下2つが第1の検出チャンネルに対応する投受光対、上2つが第2の検出チャンネルに対応する投受光対となるように配列することができる。   The four fiber insertion ports can be arranged such that the lower two are light emitting and receiving pairs corresponding to the first detection channel, and the upper two are light emitting and receiving pairs corresponding to the second detection channel.

以上の説明で明らかなように、本発明の光電センサによれば、1台で2チャンネル分の検出動作が可能であるとともに、各チャンネルの受光量を数値で確認することができ、しかも1チャンネル対応のセンサ2台分よりも低コストに製作することができる。   As is apparent from the above description, according to the photoelectric sensor of the present invention, the detection operation for two channels can be performed by one device, and the received light amount of each channel can be confirmed by a numerical value. It can be manufactured at a lower cost than two corresponding sensors.

以下に、本発明に係るファイバ型光電センサの好適な実施の一形態を添付図面を参照しながら詳細に説明する。尚、以下の実施の形態は本発明の一例を示すものに過ぎず、言うまでもなく、本発明の要旨は特許請求の範囲によってのみ規定されるものである。   Hereinafter, a preferred embodiment of a fiber type 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 the gist of the present invention is, of course, defined only by the appended claims.

本発明の一実施形態である光電センサの連装状態を示す斜視図が図1に、また同光電センサの内部構造を示す分解斜視図が図2にそれぞれ示されている。   FIG. 1 is a perspective view showing a connected state of photoelectric sensors according to an embodiment of the present invention, and FIG. 2 is an exploded perspective view showing an internal structure of the photoelectric sensor.

それらの図に示されるように、この実施形態の光電センサ1は、上面が開口されたケース本体10と、ケース本体10内に挿入されて、ケース本体10の開口106を塞ぐ本体アセンブリ20と、本体アセンブリ20の前部に設けられたクランパホルダ部210に収容保持されるクランパアセンブリ(本発明のロック機構に相当する)30とを含んでいる。ケース本体10は合成樹脂一体成形品であり前面板101と、後面板102と、右側面板103と、左側面板104と、下面板(底板)105とを有する六面体構造を有する。前面板101には、第1チャンネル投光用のファイバ挿入口107と、第1チャンネル受光用のファイバ挿入口108と、第2チャンネル投光用のファイバ挿入口109と、第2チャンネル受光用のファイバ挿入口110とが設けられている。すなわち、前面板101には、上下に並んだ4つのファイバ挿入口が設けられ、下2つであるファイバ挿入口107,108が第1の検出チャンネルに対応する投受光対を挿入するためのものであり、上2つのファイバ挿入口109,110が第2の検出チャンネルに対応する投受光対を挿入するためのものである。   As shown in the drawings, the photoelectric sensor 1 of this embodiment includes a case body 10 having an upper surface opened, a body assembly 20 inserted into the case body 10 and closing the opening 106 of the case body 10, And a clamper assembly (corresponding to a lock mechanism of the present invention) 30 housed and held in a clamper holder 210 provided at a front portion of the main assembly 20. The case body 10 is a synthetic resin integrally molded product, and has a hexahedral structure including a front plate 101, a rear plate 102, a right side plate 103, a left side plate 104, and a lower plate (bottom plate) 105. The front plate 101 has a fiber insertion port 107 for first channel light emission, a fiber insertion port 108 for first channel light reception, a fiber insertion port 109 for second channel light emission, and a fiber insertion port 109 for second channel light reception. A fiber insertion port 110 is provided. That is, the front plate 101 is provided with four vertically arranged fiber insertion ports, and two lower fiber insertion ports 107 and 108 are for inserting a light emitting and receiving pair corresponding to the first detection channel. The upper two fiber insertion ports 109 and 110 are for inserting a light emitting and receiving pair corresponding to the second detection channel.

ケース本体10の後面板102からは、図1に示されるように、電気コード5が引き出されている。この電気コード5は、コード固定式のものであって、第1チャンネル出力用の芯線51と、第2チャンネル出力用の芯線52と、Vcc用の芯線53と、GND用の芯線54とが含まれている。尚、先に述べたように、コネクタ接続方式の電気コードを引き出す場合、特開2001−196127号公報に示されるように、隣接コネクタ間で電源のやり取りを行う場合には、連装された最端部のセンサから出力された電気コードを除き、Vcc用芯線53は含まれていない。   As shown in FIG. 1, the electric cord 5 is drawn from the rear plate 102 of the case body 10. The electric cord 5 is of a fixed type, and includes a core 51 for outputting a first channel, a core 52 for outputting a second channel, a core 53 for Vcc, and a core 54 for GND. Have been. As described above, when the electric cord of the connector connection method is pulled out, as shown in Japanese Patent Application Laid-Open No. 2001-196127, when power is exchanged between adjacent connectors, the end of the serially connected end is connected. The Vcc core wire 53 is not included except for the electric cord output from the sensor of the section.

ケース本体10の右側面板103及び左側面板104には、隣接センサとの間で光通信を行うための投受光窓112が左右同一箇所に設けられている。したがって、DINレール2を介して複数のセンサを連装すると、隣接センサ間において投受光窓112同士が対向するようになされている。尚、図において、Ltは送信用赤外光、Lrは受信用赤外光である。   On the right side plate 103 and the left side plate 104 of the case main body 10, light transmitting and receiving windows 112 for performing optical communication with adjacent sensors are provided at the same positions on the left and right. Therefore, when a plurality of sensors are connected in series via the DIN rail 2, the light emitting / receiving windows 112 are opposed to each other between adjacent sensors. In the figure, Lt is infrared light for transmission, and Lr is infrared light for reception.

ケース本体10の下面板105には、DINレール2に取り付けるためのDINレール嵌合溝111が形成されている。図示しないが、各DINレール嵌合溝111内には、DINレール2との着脱を容易とするための係合機構が設けられている。   A DIN rail fitting groove 111 for attaching to the DIN rail 2 is formed in the lower surface plate 105 of the case body 10. Although not shown, an engagement mechanism for facilitating attachment and detachment with the DIN rail 2 is provided in each DIN rail fitting groove 111.

ケース本体10の上面は開口106とされており、この開口内には本体アセンブリ20が挿入され、開口106は本体アセンブリ20の上面パネル20Aによって塞がれる。   An upper surface of the case main body 10 is formed as an opening 106, into which the main body assembly 20 is inserted, and the opening 106 is closed by an upper surface panel 20 </ b> A of the main body assembly 20.

図2に示されるように、本体アセンブリ20は、ケース本体10の内部に収容される部品搭載基板20Bと、ケース本体10の上部開口106を塞ぐ上面パネル20Aとを一体に組み付けて構成される。上面パネル20Aには、図2において左側略2/3の領域を占める『表示部』と、右側略1/3の領域を占める『操作部』とが設けられている。   As shown in FIG. 2, the main body assembly 20 is configured by integrally assembling a component mounting board 20 </ b> B housed inside the case main body 10 and a top panel 20 </ b> A for closing the upper opening 106 of the case main body 10. The upper panel 20A is provided with a “display section” occupying approximately / of the left region in FIG. 2 and an “operation portion” occupying approximately 1 / of the right region in FIG.

表示部には、第1数値表示部201と、第2数値表示部202と、第1動作表示灯203と、第2動作表示灯204とが設けられる。換言すれば、第1の数値表示部201の左側に隣接して第1の動作表示灯203が設けられ、第2数値表示部202の左側に隣接して第2動作表示灯204が設けられる。その結果、第2動作表示灯204は、第1数値表示部201と第2数値表示部202とに挟まれた状態で配置される。また、第1数値表示部201及び第2数値表示部202は、いずれも4桁の7セグメントLED表示器で構成されており、各桁の数字は本体ケース10の長手方向へ沿って配列されている。換言すれば、各桁の数字はその上下方向がケース本体10の長手方向と直交するように向けられている。そのため、上面パネル20A上の限られたスペースに、4桁の数値表示器並びに2個の動作表示灯が効率よく並べられている。本実施の形態では、後述のように、第1数値表示部201に第1チャンネルの受光量を、第2数値表示部202に第2チャンネルの受光量を表示することができるが、201に第2チャンネルの受光量を、202に第1チャンネルの受光量を表示するようにしてもよい。この場合は、201を第2数値表示部、202を第1数値表示部と呼ぶことができる。   The display unit includes a first numerical display unit 201, a second numerical display unit 202, a first operation indicator 203, and a second operation indicator 204. In other words, a first operation indicator 203 is provided adjacent to the left of the first numerical display unit 201, and a second operation indicator 204 is provided adjacent to the left of the second numerical display 202. As a result, the second operation indicator lamp 204 is arranged so as to be sandwiched between the first numerical display unit 201 and the second numerical display unit 202. Each of the first numerical display unit 201 and the second numerical display unit 202 is composed of a 4-digit 7-segment LED display, and the numerals of each digit are arranged along the longitudinal direction of the main body case 10. I have. In other words, each digit is oriented such that the vertical direction is orthogonal to the longitudinal direction of the case body 10. Therefore, a four-digit numerical display and two operation indicators are efficiently arranged in a limited space on the upper panel 20A. In the present embodiment, as will be described later, the received light amount of the first channel can be displayed on the first numerical value display unit 201 and the received light amount of the second channel can be displayed on the second numerical value display unit 202. The received light amount of two channels may be displayed, and the received light amount of the first channel may be displayed on 202. In this case, 201 can be called a second numerical display unit, and 202 can be called a first numerical display unit.

一方、上面パネル20Aの右側略1/3を占める操作部には、UPスイッチの操作部として機能する押しボタン205と、DOWNスイッチの操作部として機能する押しボタン206と、MODEスイッチの操作部として機能する押しボタン207と、SET/RUN切換スイッチの操作部として機能するスライド操作子208と、チャンネル切換スイッチの操作部として機能するスライド操作子209とが設けられている。以下、押しボタン205をUPボタン、押しボタン206をDOWNボタン、押しボタン207をMODEボタンと称する。   On the other hand, the operation unit occupying approximately 1/3 of the right side of the top panel 20A includes a push button 205 functioning as an operation unit of an UP switch, a push button 206 functioning as an operation unit of a DOWN switch, and a operation button of a MODE switch. A push button 207 that functions, a slide operator 208 that functions as an operation unit of a SET / RUN switch, and a slide operator 209 that functions as an operation unit of a channel switch are provided. Hereinafter, the push button 205 is called an UP button, the push button 206 is called a DOWN button, and the push button 207 is called a MODE button.

本体アセンブリ20の前部にはクランパホルダ部210が設けられ、このクランパホルダ部210にはクランパアセンブリ30が収容固定される。   A clamper holder 210 is provided at a front portion of the main body assembly 20, and the clamper assembly 30 is housed and fixed to the clamper holder 210.

クランパアセンブリの内部構造を示す分解斜視図が図3に、同クランパアセンブリの非クランプ状態を示す分解斜視図が図4に、同クランパアセンブリのクランプ状態を示す分解斜視図が図5に、ファイバグリッパを斜め前方から見た斜視図が図6に、同ファイバグリッパの正面並びに背面が図7に、同ファイバグリッパの左側面並びに右側面図が図8にそれぞれ示されている。   FIG. 3 is an exploded perspective view showing the internal structure of the clamper assembly, FIG. 4 is an exploded perspective view showing the clamper assembly in an unclamped state, and FIG. 5 is an exploded perspective view showing the clamped state of the clamper assembly. 6 is a perspective view of the fiber gripper as viewed obliquely from the front, FIG. 7 is a front view and a rear view of the fiber gripper, and FIG. 8 is a left side view and a right side view of the fiber gripper.

図3に示されるように、クランパアセンブリ30は、ベースブロック310と、下側ファイバグリッパ320と、上側ファイバグリッパ330と、クランプレバー340と、スライドアクチュエータ350とを備えている。   As shown in FIG. 3, the clamper assembly 30 includes a base block 310, a lower fiber gripper 320, an upper fiber gripper 330, a clamp lever 340, and a slide actuator 350.

ベースブロック310の前面には、4個のファイバ挿入孔310a,310b,310c,310dが設けられている。挿入孔310aは第1のチャンネルの投光用光ファイバ31の先端部を挿入するためのものであり、挿入孔310bは第1のチャンネルの受光用光ファイバ32の先端部を受け入れるためのものである。同様に、挿入孔310cは第2のチャンネルの投光用光ファイバ41の先端部を受け入れるためのものであり、挿入孔310dは第2のチャンネルの受光用光ファイバ42の先端部を受け入れるためのものである。ベースブロック310の前面には、それら挿入孔の他に、下側ファイバグリッパ320用の位置決め孔310e,310fと載置用ステージ310iが設けられている。同様にして、ベースブロック310の前面には、上側ファイバグリッパ330用の位置決め孔310g,310hと載置用ステージ310jとが設けられている。加えて、ベースブロック310の前面側の左右のエッジ部には、スライドアクチュエータ350と係合するガイド突起310n,310o,310pが設けられている。ベースブロック310の上部には、ブラケット310lが設けられ、このブラケット310lには軸孔310mが設けられている。この軸孔310mには、ピン310kを介してクランパレバー340が回動自在に取り付けられる。   On the front surface of the base block 310, four fiber insertion holes 310a, 310b, 310c, 310d are provided. The insertion hole 310a is for inserting the distal end of the optical fiber 31 for light projection of the first channel, and the insertion hole 310b is for receiving the distal end of the optical fiber 32 for light reception of the first channel. is there. Similarly, the insertion hole 310c is for receiving the tip of the light emitting optical fiber 41 of the second channel, and the insertion hole 310d is for receiving the tip of the light receiving optical fiber 42 of the second channel. Things. On the front surface of the base block 310, in addition to these insertion holes, positioning holes 310e and 310f for the lower fiber gripper 320 and a mounting stage 310i are provided. Similarly, on the front surface of the base block 310, positioning holes 310g and 310h for the upper fiber gripper 330 and a mounting stage 310j are provided. In addition, guide protrusions 310 n, 310 o, and 310 p that engage with the slide actuator 350 are provided on the left and right edges on the front side of the base block 310. A bracket 3101 is provided on an upper portion of the base block 310, and the bracket 3101 is provided with a shaft hole 310m. A clamper lever 340 is rotatably attached to the shaft hole 310m via a pin 310k.

下側ファイバグリッパ320は、図6〜図8に示されるように、上側Cリング部320aと下側Cリング部320bとを連結した形状を有し、プラスチックを用いて一体成形されている。図6に示されるように、上側Cリング部320aの空隙部320fは左側に位置しており、下側Cリング部320bの空隙部320gは右側に位置している。上側Cリング部320aの自由端には耳部320cが設けられ、下側Cリング部320bの自由端には耳部320dが設けられている。これらの耳部320c,320dを下方向へ押し下げることによって、上側Cリング部320a及び下側Cリング部320bの内径は縮小する。逆に、それら耳部320c及び320dに対する下向きの力を解放すれば、それらのCリング部320a,320bは弾性により元の形に復帰し、内径は拡大する。後に詳細に説明するが、スライドアクチュエータ350が上下にスライドすると、それらの耳部320c,320dに対して下向きの力が加えられ、上側Cリング部320a,下側Cリング部320bが撓んで、内径が縮小され、それらのリング部に挿入されたファイバがしっかりとグリップされる。   As shown in FIGS. 6 to 8, the lower fiber gripper 320 has a shape in which an upper C-ring portion 320 a and a lower C-ring portion 320 b are connected, and is integrally formed using plastic. As shown in FIG. 6, the gap 320f of the upper C-ring 320a is located on the left side, and the gap 320g of the lower C-ring 320b is located on the right. An ear 320c is provided at a free end of the upper C-ring 320a, and an ear 320d is provided at a free end of the lower C-ring 320b. By pushing these ears 320c and 320d downward, the inner diameters of the upper C-ring 320a and the lower C-ring 320b are reduced. Conversely, when the downward force on the ears 320c and 320d is released, the C-rings 320a and 320b return to their original shapes by elasticity, and the inner diameter increases. As will be described in detail later, when the slide actuator 350 slides up and down, a downward force is applied to the ear portions 320c and 320d, and the upper C-ring portion 320a and the lower C-ring portion 320b bend, and the inner diameter is reduced. Are reduced, and the fibers inserted into those ring portions are firmly gripped.

図7及び図8に示されるように、下側ファイバグリッパ320の背面には、丸棒状の突起320hと平板状の突起320iとが形成されている。突起320hは、先に説明したように、ベースブロック310の位置決め孔310eに挿入され、突起320iは位置決め孔310fに挿入される。また、下側ファイバグリッパ320の底面は、ステージ310iに当接し、これにより下側ファイバグリッパ320の全体は、ステージ310iに乗せられ、かつ位置決め孔310e及び310fを介してしっかりとベースブロック310に固定される。尚、上側ファイバグリッパ330についてもその構造は同様であって、ステージ310jに乗せられ、かつ位置決め孔310g及び310hを介してベースブロック310に固定される。その結果、ベースブロック310に設けられた4個のファイバ挿入孔310a,310b,310c,310dの入口部には、4個のCリング部320a,320b,330a,330bが位置することとなる。   As shown in FIGS. 7 and 8, on the back surface of the lower fiber gripper 320, a round bar-shaped projection 320h and a flat plate-shaped projection 320i are formed. As described above, the protrusion 320h is inserted into the positioning hole 310e of the base block 310, and the protrusion 320i is inserted into the positioning hole 310f. In addition, the bottom surface of the lower fiber gripper 320 abuts on the stage 310i, whereby the entire lower fiber gripper 320 is mounted on the stage 310i and fixed firmly to the base block 310 via the positioning holes 310e and 310f. Is done. The structure of the upper fiber gripper 330 is the same, and is mounted on the stage 310j and fixed to the base block 310 via the positioning holes 310g and 310h. As a result, four C-ring portions 320a, 320b, 330a, 330b are located at the entrances of the four fiber insertion holes 310a, 310b, 310c, 310d provided in the base block 310.

スライドアクチュエータ350は、上面から見た場合、断面コの字状を呈している。その前面側には、下側窓350aと上側窓350bとが開口形成されている。また左右の両側面には、3個のガイドスリット350c,350d,350eが設けられている。これらのガイドスリット350c,350d,350eが、ベースブロック310側のガイド突起310n,310o,310pと係合することによって、スライドアクチュエータ350はベースブロック310側に保持され、かつ上下方向へ僅かのストロークでスライド自在とされる。スライドアクチュエータ350内の左右の側壁には、4個の突起350f,350g,350h,350iが設けられている。スライドアクチュエータ350が下方へスライドすると、スライドアクチュエータ350の内部左側面に形成された突起350fが、下側ファイバグリッパ320の上側Cリング部320aの耳部320cに当接する。同時に、スライドアクチュエータ350内部の右側面に形成された突起350gが、下側ファイバグリッパ320の下側Cリング部320bの耳部320dに当接する。そのため、スライドアクチュエータ350がさらに下方へスライドすると、下側ファイバグリッパ320の耳部320c及び耳部320dが下側へ押されて、Cリング部が撓むことによって、それぞれの内径が縮小する。これにより、それらのリング部320a,320bに挿通されたファイバがしっかりとグリップされる。上側ファイバグリッパ330においても同様な作用が行われ、スライドアクチュエータ350の突起350h及び350iが、上側ファイバグリッパ330の上側Cリング部330a及び下側Cリング部330bの該当する耳部に当接することによって、それらリング部の内径が縮小され、同様にして挿通されたファイバはしっかりとグリップされる。   The slide actuator 350 has a U-shaped cross section when viewed from above. On the front side, a lower window 350a and an upper window 350b are formed with openings. Also, three guide slits 350c, 350d, and 350e are provided on both left and right side surfaces. By engaging these guide slits 350c, 350d, 350e with the guide protrusions 310n, 310o, 310p on the base block 310 side, the slide actuator 350 is held on the base block 310 side and with a slight stroke in the vertical direction. You can slide freely. Four protrusions 350f, 350g, 350h, 350i are provided on the left and right side walls in the slide actuator 350. When the slide actuator 350 slides downward, the protrusion 350f formed on the inner left side surface of the slide actuator 350 comes into contact with the ear 320c of the upper C-ring portion 320a of the lower fiber gripper 320. At the same time, the projection 350g formed on the right side inside the slide actuator 350 comes into contact with the ear 320d of the lower C-ring portion 320b of the lower fiber gripper 320. Therefore, when the slide actuator 350 slides further downward, the lugs 320c and the lugs 320d of the lower fiber gripper 320 are pushed downward, and the C-rings are bent, so that the respective inner diameters are reduced. As a result, the fibers inserted into the ring portions 320a and 320b are firmly gripped. The same operation is performed in the upper fiber gripper 330, and the protrusions 350h and 350i of the slide actuator 350 abut on the corresponding ears of the upper C ring portion 330a and the lower C ring portion 330b of the upper fiber gripper 330. The inner diameters of these ring portions are reduced, and similarly, the inserted fiber is firmly gripped.

ベースブロック310のブラケット330lの軸孔310mには、ピン310kを介して、クランプレバー340が回動自在に取り付けられる。すなわち、ブラケット310lの軸孔310mと、クランプレバー340の軸孔340aとを軸芯整合させた状態において、それらの軸孔にピン310kを貫通させることによって、クランプレバー340はブラケット310lに対して回動自在に固定される。また、このような状態において、クランプレバー340の下面に形成されたカム部340bが、スライドアクチュエータ350の上端面350jに当接する。そのため、図4に示されるように、クランプレバー340を持ち上げた状態においては、スライドアクチュエータ350はCリング部の復元力によって上方に持ち上げられた状態となる。一方、図5に示されるように、クランプレバー340を押し下げると、カム部340bがスライドアクチュエータ350の上端面350jを下方へ押圧することによって、スライドアクチュエータ350は下方へスライドし、これに伴い先に説明したように、突起350f〜350iが、上下のファイバグリッパ320,330の該当する耳部に当たって、これを押し下げることにより、各Cリング部320a,320b,330a,330bの該当する耳部が下方へ押し下げられて、ファイバがしっかりとグリップされる。   A clamp lever 340 is rotatably attached to the shaft hole 310m of the bracket 330l of the base block 310 via a pin 310k. That is, in a state where the shaft hole 310m of the bracket 310l and the shaft hole 340a of the clamp lever 340 are aligned with each other, the pin 310k is passed through the shaft hole so that the clamp lever 340 can be rotated with respect to the bracket 3101. It is fixed movably. In such a state, the cam portion 340b formed on the lower surface of the clamp lever 340 contacts the upper end surface 350j of the slide actuator 350. Therefore, as shown in FIG. 4, when the clamp lever 340 is lifted, the slide actuator 350 is lifted upward by the restoring force of the C-ring portion. On the other hand, as shown in FIG. 5, when the clamp lever 340 is pressed down, the cam portion 340b presses the upper end surface 350j of the slide actuator 350 downward, so that the slide actuator 350 slides downward. As described above, the projections 350f to 350i hit the corresponding ears of the upper and lower fiber grippers 320, 330, and push down the same, so that the corresponding ears of the respective C-rings 320a, 320b, 330a, 330b are lowered. When depressed, the fiber is firmly gripped.

このように、本実施形態のクランパアセンブリによれば、ファイバの先端部を受け入れる4個のファイバ挿入孔310a〜310dが上下方向に適当な間隔で配置されたベースブロック310と、ベースブロック310の4個のファイバ挿入孔310a〜310dの入口のそれぞれに対応させてベースブロックに固定された4個の可撓性Cリング320a,320b,330a,330bと、ベースブロック310の前面側にあって上下方向にスライド自在に支持されかつ4個のCリング320a,320b,330a,330bのそれぞれと係合してその径を拡大または縮小させる1個の共通なスライドアクチュエータ350と、ベースブロック310に回動自在に支持されかつその回動によりスライドアクチュエータ350をスライドさせるクランプレバー340とを有するものである。そのため、1個のクランプレバー340の操作によって、第1チャンネル及び第2チャンネルの4本のファイバを一括して同時にロックさせることができる。また、クランプレバー340及びスライドアクチュエータ350は共通であるものの、4個のCリング部は、2個ずつ一体化されて、下側ファイバグリッパ320と上側ファイバグリッパ330とに分離され、しかもそれらのファイバグリッパ320,330は互いに協働することなく独立しているため、このセンサを2チャンネルではなく1チャンネル用に構成する場合には、いずれかのファイバグリッパを取り除くだけでよく、殆どの構成部品を共用して1チャンネル用と2チャンネル用とを選択的に生産することもできる。また、スライドアクチュエータ350は上から見た状態において断面コの字状を呈しているため、構造上丈夫であり、薄肉化しても強度を維持することができ、そのため幅の狭いケースに収容して、クランプレバー340からの力を、上下のファイバグリッパ320,330に伝達するには好適なものとなる。また、上下のファイバグリッパ320,330のいずれにおいても、上下のCリング部320a,320bは、その空隙部320f及び320gを左右異ならせて配置していると共に、これと係合するスライドアクチュエータ350側の突起350f,350gについても左右別々に分離しているため、上からの力を上側Cリング部320aと下側Cリング部320bとに均等に加え、バランスよくファイバをグリップさせることができる。   As described above, according to the clamper assembly of the present embodiment, the base block 310 in which the four fiber insertion holes 310a to 310d for receiving the distal ends of the fibers are arranged at appropriate intervals in the vertical direction, Four flexible C-rings 320a, 320b, 330a, 330b fixed to the base block corresponding to the entrances of the fiber insertion holes 310a to 310d, respectively, And one common slide actuator 350 that engages with each of the four C-rings 320a, 320b, 330a, and 330b to increase or decrease the diameter thereof, and is rotatably mounted on the base block 310. The slide actuator 350 is slid by its rotation. That is one having a clamp lever 340. Therefore, by operating one clamp lever 340, the four fibers of the first channel and the second channel can be collectively locked simultaneously. In addition, although the clamp lever 340 and the slide actuator 350 are common, the four C-ring portions are integrated into two, separated into a lower fiber gripper 320 and an upper fiber gripper 330. Since the grippers 320 and 330 are independent and do not cooperate with each other, if this sensor is configured for one channel instead of two, only one of the fiber grippers needs to be removed, and most of the components are removed. One channel and two channels can be selectively produced in common. Further, since the slide actuator 350 has a U-shaped cross section when viewed from above, it is structurally strong and can maintain its strength even if it is made thin, so that it can be accommodated in a narrow case. This is suitable for transmitting the force from the clamp lever 340 to the upper and lower fiber grippers 320 and 330. In each of the upper and lower fiber grippers 320 and 330, the upper and lower C-ring portions 320a and 320b have their gap portions 320f and 320g arranged so as to be different from each other on the left and right sides, and the side of the slide actuator 350 engaged with this. The projections 350f and 350g are also separated into left and right sides, so that a force from above can be evenly applied to the upper C-ring portion 320a and the lower C-ring portion 320b, and the fiber can be gripped in a well-balanced manner.

図1及び図2に戻って、上面パネル20Aの後部にはヒンジ211が設けられ、このヒンジ211によって、上面パネル20Aを開閉する透明な上面カバー6が回動自在に取り付けられる。尚、図4において突起322は、クランパアセンブリ30をクランパホルダ部210に装着する際のガイドピンである。   Returning to FIGS. 1 and 2, a hinge 211 is provided at the rear of the upper panel 20A, and the transparent upper cover 6 that opens and closes the upper panel 20A is rotatably attached by the hinge 211. In FIG. 4, projections 322 are guide pins when the clamper assembly 30 is mounted on the clamper holder 210.

次に、図1〜図8で説明した光電センサの外形寸法の説明図が図9に示されている。同図に示されるように、図1〜図8に示された光電センサ1は、幅W、高さH、奥行きLを有する。ここで幅Wとは、図1に示されるように、DINレールの長手方向の寸法に相当する。また、奥行きLは、DINレールの長手方向と直交する方向の寸法に相当する。更に、高さHは、DINレール2の取り付け面に対する垂直方向の寸法に相当する。特に、この実施の形態における光電センサ1にあっては、幅Wは7mm〜12mm、高さHは25mm〜40mm、奥行きLは60mm〜80mmの範囲に設定されている。より具体的な一例としては、幅Wは10mm、高さHは32mm、奥行きLは70mmとされている。このような幅Wを有する2チャンネル実装型の光電センサによれば、8台連装した場合の連装幅は、80mmで16チャンネル分の容量、16台連装した状態における連装幅は、160mmで32チャンネル分の容量、32台連装した場合における連装幅は、320mmで64チャンネル分の容量をまかなうことができる。そのため、従前の1チャンネル実装型の光電センサに比べ、同一の連装台数で2倍のチャンネル容量をまかなうことができるから、高密度実装には一層好適なものとなる。   Next, FIG. 9 is an explanatory diagram of the outer dimensions of the photoelectric sensor described with reference to FIGS. As shown in the drawing, the photoelectric sensor 1 shown in FIGS. 1 to 8 has a width W, a height H, and a depth L. Here, the width W corresponds to the dimension in the longitudinal direction of the DIN rail as shown in FIG. Further, the depth L corresponds to a dimension in a direction orthogonal to the longitudinal direction of the DIN rail. Further, the height H corresponds to a dimension in a direction perpendicular to the mounting surface of the DIN rail 2. In particular, in the photoelectric sensor 1 according to this embodiment, the width W is set in a range of 7 mm to 12 mm, the height H is set in a range of 25 mm to 40 mm, and the depth L is set in a range of 60 mm to 80 mm. As a more specific example, the width W is 10 mm, the height H is 32 mm, and the depth L is 70 mm. According to the two-channel mounting type photoelectric sensor having such a width W, the connecting width when eight units are connected is a capacity of 16 channels at 80 mm, and the connecting width when 16 units are connected is 32 channels at 160 mm. The capacity per minute, that is, the connecting width when 32 units are connected in series, can cover a capacity of 64 channels at 320 mm. Therefore, compared to the conventional one-channel mounting type photoelectric sensor, the same number of units can provide twice the channel capacity, which is more suitable for high-density mounting.

次に、同実施形態の光電センサの電気的なハードウェア構成を示すブロック図が図10に示されている。同図において符号700が付されているのは、図2に示される部品搭載基板20Bに含まれる基板搭載回路である。この基板搭載回路700は、制御部(CPU)701を主体として構成される。この制御部(CPU)701は、この実施形態にあっては、ワンチップマイクロコンピュータとして機能するマイクロプロセッサにより実現されている。   Next, FIG. 10 is a block diagram illustrating an electrical hardware configuration of the photoelectric sensor according to the embodiment. In the figure, reference numeral 700 denotes a board mounted circuit included in the component mounting board 20B shown in FIG. The board mounting circuit 700 is mainly configured by a control unit (CPU) 701. In this embodiment, the control unit (CPU) 701 is realized by a microprocessor functioning as a one-chip microcomputer.

基板搭載回路700の全体は、検出系回路と通信系回路とに分かれている。まず検出系回路から詳細な説明を行う。検出系回路は第1チャンネル側と第2チャンネル側とに分けられている。両者の構成はほぼ同一である。   The entire board mounted circuit 700 is divided into a detection system circuit and a communication system circuit. First, the detection system circuit will be described in detail. The detection system circuit is divided into a first channel side and a second channel side. The configuration of both is almost the same.

すなわち、第1チャンネル側には、投光系回路と、受光系回路と、APC系回路とが含まれている。投光系回路は、制御部(CPU)701からの信号S11を受けて作動する投光回路701aと、投光回路701aによって駆動されるLED702aとを含んでいる。投光系回路を構成するLED702aから発せられた光は、投光用光ファイバ31に導入され、図示しないファイバヘッドへと送られる。受光系回路は、受光用ファイバ32から到来する光を受光するメイン受光PD703aと、メイン受光PD703aの出力信号を増幅する増幅回路704aとを含んでいる。またAPC系回路は、投光系回路を構成するLED702aからの光を受光するAPC用受光PD705aと、APC用受光PDの出力信号を増幅するAPC受光回路706aとを含んでいる。APC受光回路706aの出力信号S13は図示しないCPU内蔵のA/Dコンバータを介してCPU701に取り込まれる。これにより、CPU701では、投光系回路を構成するLED702aに関するオートパワーコントロールを実行する。   That is, the first channel side includes a light emitting system circuit, a light receiving system circuit, and an APC system circuit. The light emitting system circuit includes a light emitting circuit 701a that operates upon receiving a signal S11 from a control unit (CPU) 701, and an LED 702a that is driven by the light emitting circuit 701a. The light emitted from the LED 702a constituting the light projecting system circuit is introduced into the light projecting optical fiber 31, and sent to a fiber head (not shown). The light receiving system circuit includes a main light receiving PD 703a for receiving light coming from the light receiving fiber 32, and an amplifier circuit 704a for amplifying an output signal of the main light receiving PD 703a. The APC circuit includes an APC light receiving PD 705a that receives light from the LED 702a that forms the light projecting system circuit, and an APC light receiving circuit 706a that amplifies an output signal of the APC light receiving PD. The output signal S13 of the APC light receiving circuit 706a is taken into the CPU 701 via an A / D converter built in the CPU (not shown). As a result, the CPU 701 executes the automatic power control for the LED 702a constituting the light emitting system circuit.

同様にして、第2チャンネル側にも、投光系回路と、受光系回路と、APC系回路とが含まれている。投光系回路は、制御部(CPU)701からの信号S21を受けて作動する投光回路701bと、投光回路701bによって駆動されるLED702bとを含んでいる。LED702bから発せられた光は、投光用のファイバ41に導入され、図示しないファイバヘッドへと送られる。受光系回路は、受光用ファイバ42からの光を受光するメイン受光PD703bと、メイン受光PD703bの出力を増幅する増幅回路704bとを含んでいる。またAPC系回路は、投光系回路を構成するLED702bからの光を受光するAPC用受光PD705bと、APC系回路705bの出力を増幅するAPC受光回路706bとを含んでいる。APC受光回路706bの出力信号S23は図示しないCPU内蔵A/Dコンバータを介して制御部(CPU)701に取り込まれ、投光系回路を構成するLED702bのオートパワーコントロールに供される。   Similarly, the second channel side also includes a light projecting circuit, a light receiving circuit, and an APC circuit. The light projecting circuit includes a light projecting circuit 701b that operates upon receiving a signal S21 from a control unit (CPU) 701, and an LED 702b that is driven by the light projecting circuit 701b. The light emitted from the LED 702b is introduced into the light emitting fiber 41 and sent to a fiber head (not shown). The light receiving system circuit includes a main light receiving PD 703b that receives light from the light receiving fiber 42, and an amplifier circuit 704b that amplifies the output of the main light receiving PD 703b. The APC circuit includes an APC light receiving PD 705b for receiving light from the LED 702b constituting the light projecting circuit, and an APC light receiving circuit 706b for amplifying the output of the APC circuit 705b. The output signal S23 of the APC light receiving circuit 706b is taken into a control unit (CPU) 701 via an A / D converter with a built-in CPU (not shown), and is used for automatic power control of an LED 702b constituting a light emitting system circuit.

一方、チャンネル切換回路707の入力側には、第1チャンネルの増幅回路704aの出力信号S12と、第2チャンネルの増幅回路704bの出力信号S22とが並列に入力されている。また、チャンネル切換回路707は、CPU701からの制御で切換動作を行う。更に、チャンネル切換回路707の出力側にはCPU701とは別に設けられた外付けのA/Dコンバータ708が設けられている。このコンバータ708の出力ビット数は、制御部(CPU)701に内蔵されたA/Dコンバータのそれに比し十分大きく設定されている。一例としては、CPU内蔵のA/Dコンバータは現状10ビット程度であるのに対し、外付けのA/Dコンバータ708のビット数は12ビットとなっている。そのため、CPU701では、チャンネル切換回路707を適宜制御することによって、第1チャンネルのメイン受光PD703aの受光出力又は第2チャンネルのメイン受光PD703bの出力を外付けのA/Dコンバータ708を介して高精度に検出することができる。   On the other hand, to the input side of the channel switching circuit 707, the output signal S12 of the first channel amplifier circuit 704a and the output signal S22 of the second channel amplifier circuit 704b are input in parallel. The channel switching circuit 707 performs a switching operation under the control of the CPU 701. Further, an external A / D converter 708 provided separately from the CPU 701 is provided on the output side of the channel switching circuit 707. The number of output bits of this converter 708 is set to be sufficiently larger than that of an A / D converter built in control unit (CPU) 701. As an example, the number of bits of the external A / D converter 708 is 12 bits while the current number of A / D converters with a built-in CPU is about 10 bits. For this reason, the CPU 701 controls the channel switching circuit 707 as appropriate so that the light receiving output of the main light receiving PD 703a of the first channel or the output of the main light receiving PD 703b of the second channel can be output with high precision via an external A / D converter 708. Can be detected.

次に、通信系回路について説明する。この通信系回路についても、左側と右側に分かれている。すなわち、先に図1及び図2を参照して説明したように、光電センサ1のケース本体10の左右の側面板には、投受光窓112が設けられており、この投受光窓112を介して光通信を行うことによって、互いに隣接して連装された個々の光電センサは、左右両隣の光電センサと光通信を行うことが可能となっている。光通信系回路は、右側と左側とに分けられている。   Next, a communication system circuit will be described. This communication system circuit is also divided into a left side and a right side. That is, as described above with reference to FIGS. 1 and 2, the light emitting and receiving windows 112 are provided on the left and right side plates of the case body 10 of the photoelectric sensor 1. By performing the optical communication, the individual photoelectric sensors arranged adjacent to each other can perform optical communication with the photoelectric sensors on both the left and right sides. The optical communication system circuit is divided into a right side and a left side.

左側の通信系回路は、送信系回路と、受信系回路とを含んでいる。送信系回路は、CPU701からの信号S41を受けて動作する通信投光駆動回路709aと、通信投光駆動回路709aにより駆動される通信用LED710aとを含んでいる。ここで、通信用LED710aは赤外光を発する様に設定されている。受信系回路は、隣接センサからの赤外光を受信する通信用PD711aと、通信用PD711aの出力を増幅する通信増幅回路712aとを含んでいる。この通信増幅回路712aの出力信号S42がCPU701に取り込まれる。送信データは信号S41に含まれ、受信データは信号S42に含まれる。   The left communication circuit includes a transmission circuit and a reception circuit. The transmission system circuit includes a communication light emitting drive circuit 709a that operates in response to the signal S41 from the CPU 701, and a communication LED 710a driven by the communication light emission drive circuit 709a. Here, the communication LED 710a is set to emit infrared light. The receiving system circuit includes a communication PD 711a that receives infrared light from an adjacent sensor, and a communication amplification circuit 712a that amplifies the output of the communication PD 711a. The output signal S42 of the communication amplification circuit 712a is taken into the CPU 701. The transmission data is included in the signal S41, and the reception data is included in the signal S42.

右側の通信系回路は、送信系回路と、受信系回路とを含んでいる。送信系回路は、CPU701からの信号S51を受けて動作する通信投光駆動回路709bと、通信投光駆動回路709bにより駆動される通信用LED710bとを含んでいる。ここで、通信用LED710bは赤外光を発光する様に設定されている。受信系回路は、隣接センサから発せられた赤外光を受光する通信用PD711bと、通信用PD711bの出力を増幅する通信増幅回路712bとを含んでいる。この通信増幅回路712bの出力信号S52がCPU701に取り込まれる。送信データは信号S51に含まれ、受信データは信号S52に含まれる。   The communication circuit on the right side includes a transmission circuit and a reception circuit. The transmission system circuit includes a communication light emitting drive circuit 709b that operates in response to the signal S51 from the CPU 701, and a communication LED 710b that is driven by the communication light emission drive circuit 709b. Here, the communication LED 710b is set to emit infrared light. The receiving system circuit includes a communication PD 711b that receives infrared light emitted from an adjacent sensor, and a communication amplification circuit 712b that amplifies the output of the communication PD 711b. The output signal S52 of the communication amplifier circuit 712b is input to the CPU 701. The transmission data is included in the signal S51, and the reception data is included in the signal S52.

出力系回路は、第1チャンネル用の制御出力回路715と、第2チャンネル用の制御出力回路716とを含んでいる。第1チャンネル用の制御出力回路715は、第1チャンネル系の検出出力を生成するもので、こうして得られた検出出力は電気コード5に含まれる第1チャンネル出力用の芯線51に送り出される。また、第2チャンネル用の制御出力回路716は、第2チャンネル系の制御出力を生成するもので、この第2チャンネル用の制御出力回路716からの信号は、電気コード5に含まれる第2チャンネル出力用の芯線52へと送り出される。このように、この光電センサにあっては、第1チャンネルと第2チャンネルとに別々の制御出力回路715,716を有する。そのため、第1チャンネル又は第2チャンネルのいずれかにおいて非同期に検出出力が生成された場合、いつでもこの信号を直ちに電気コード5に含まれる芯線51又は52へと迅速に送り出すことができる。即ち、第1チャンネルと第2チャンネルとに共通な1個の制御出力回路を設け、これを時分割で適宜切り替えて利用しようとすれば、検出出力の応答性を損ねるが、本発明にあっては各チャンネルに専用の制御出力回路715,716を有するため、応答速度を損ねることがない。   The output system circuit includes a control output circuit 715 for the first channel and a control output circuit 716 for the second channel. The control output circuit 715 for the first channel generates a detection output of the first channel system, and the detection output thus obtained is sent to the core 51 for the first channel output included in the electric cord 5. The control output circuit 716 for the second channel generates a control output of the second channel, and the signal from the control output circuit 716 for the second channel is transmitted to the second channel included in the electric code 5. It is sent out to a core wire 52 for output. Thus, this photoelectric sensor has separate control output circuits 715 and 716 for the first channel and the second channel. Therefore, when a detection output is generated asynchronously in either the first channel or the second channel, this signal can be immediately sent to the core wire 51 or 52 included in the electric cord 5 immediately at any time. That is, if one control output circuit common to the first channel and the second channel is provided, and the control output circuit is appropriately switched and used in a time-division manner, the response of the detection output is impaired. Has dedicated control output circuits 715 and 716 for each channel, so that the response speed is not impaired.

電源回路718は、Vcc用芯線53及びGND用芯線54から得られる電源を安定化させて、基板搭載回路700の全体に供給する。さらに、CPUリセット回路717は、ユーザの所定操作に応答して、制御部(CPU)701を構成するマイクロプロセッサをリセットさせる作用を有する。   The power supply circuit 718 stabilizes the power obtained from the Vcc core wire 53 and the GND core wire 54 and supplies the power to the entire board mounted circuit 700. Further, the CPU reset circuit 717 has an operation of resetting a microprocessor constituting the control unit (CPU) 701 in response to a predetermined operation by a user.

次に表示系の構成について説明する。表示系要素としては表示駆動回路719が設けられている。この表示駆動回路719は、先に図1及び図2を参照して説明した様に、第1数値表示部201を構成する7セグメント表示器、第2数値表示部202を構成する7セグメント表示器、第1チャンネルの動作表示灯203、第2チャンネルの動作表示灯204を駆動する。尚、駆動すべきデータは、CPU701の演算処理により生成される。   Next, the configuration of the display system will be described. A display drive circuit 719 is provided as a display element. The display drive circuit 719 includes, as described above with reference to FIGS. 1 and 2, a seven-segment display that forms the first numerical display unit 201 and a seven-segment display that forms the second numerical display unit 202. , The operation indicator 203 of the first channel and the operation indicator 204 of the second channel are driven. The data to be driven is generated by the arithmetic processing of the CPU 701.

次に、操作系の構成について説明する。操作系としては、操作回路720が含まれている。この操作回路720は、先に図1及び図2を参照して説明したように、UPボタン205に対応するUPスイッチ205a、DOWNボタン206に対応するDOWNスイッチ206a、MODEボタン207に対応するMODEスイッチ207a、SET/RUNスライド操作子208に対応するSET/RUN切り替えスイッチ208a、及びチャンネル切り替え用スライド操作子209に対応するチャンネル切り替えスイッチ209aからの信号を処理することによって、それらのスイッチが操作されたことを制御部(CPU)701に伝え、該当する制御プログラムを起動させる。   Next, the configuration of the operation system will be described. The operation system includes an operation circuit 720. As described above with reference to FIGS. 1 and 2, the operation circuit 720 includes an UP switch 205a corresponding to the UP button 205, a DOWN switch 206a corresponding to the DOWN button 206, and a MODE switch corresponding to the MODE button 207. 207a, signals from the SET / RUN switch 208a corresponding to the SET / RUN slide operator 208, and the channel switch 209a corresponding to the channel switch slider 209 are processed to operate the switches. This is communicated to the control unit (CPU) 701, and the corresponding control program is started.

尚、図10において、符号714はEEPROMであって、制御部(CPU)701において必要な各種の設定データを格納するものであり、符号713は制御部(CPU)701の動作に必要なクロックを生成するための水晶発振子である。   In FIG. 10, reference numeral 714 denotes an EEPROM for storing various setting data necessary for the control unit (CPU) 701, and reference numeral 713 denotes a clock required for the operation of the control unit (CPU) 701. It is a crystal oscillator for generating.

次に、光電センサのソフトウェア構成の全体を示すゼネラルフローチャートが図11に、また同フローチャートの各処理内容を表形式で示す説明図が図18に示されている。それらの図面を参照しながら、実施形態に示された光電センサの動作について以下に詳細な説明を行う。   Next, FIG. 11 is a general flowchart showing the entire software configuration of the photoelectric sensor, and FIG. 18 is an explanatory diagram showing each processing content of the flowchart in a table format. The operation of the photoelectric sensor shown in the embodiment will be described in detail below with reference to those drawings.

図11において処理が開始されると、先ず、初期設定処理(ステップ1101)が実行される。図18に示されるように、この初期設定処理(ステップ1101)においては、各種メモリ、表示灯、制御出力の初期化の実行、並びにEEPROM714から必須項目の呼び出しとデータチェックを行う処理を実行する。その後、図10に示されるSET/RUN切換スイッチ208aの状態が参照される(ステップ1102)。   When the process is started in FIG. 11, first, an initial setting process (step 1101) is executed. As shown in FIG. 18, in this initial setting process (step 1101), initialization of various memories, indicator lights, and control outputs is executed, and a process of calling essential items from the EEPROM 714 and performing data check is executed. Thereafter, the state of the SET / RUN switch 208a shown in FIG. 10 is referred to (step 1102).

SET/RUN切換スイッチ208aの状態を参照した結果、それがSET側に設定されていれば(ステップ1102SET)、続いてSETモード初期設定処理(ステップ1103)が実行される。図18に示されるように、このSETモード初期設定処理(ステップ1103)においては、SETモード用設定値の初期化、並びに、機能番号Fの初期化(F=0)が行われる。後に詳細に説明するが、機能番号Fと機能内容との関係、並びに、チャンネル個別設定可否を表形式で示す説明図が図20に示されている。ここでは、ティーチング(F=0)、動作モード設定(F=1)、検出機能設定(F=2)、タイマ機能設定(F=3)、表示内容設定(F=4)、キー機能割り付け設定(F=5)、パワーチューニング目標値設定(F=6)、表示方向設定(F=7)、及び出力内容設定(F=8)と決められている。SETモード初期設定処理(ステップ1103)が終了すると、続いてそのとき指定されたSETモードの内容に応じて、SETモード処理(ステップ1104)が実行される。以後、SET/RUN切換スイッチ208aの内容が『SET』と判定される限り(ステップ1105YES)、SETモード処理(ステップ1104)が継続的に実行され、SET/RUN切換スイッチ208aの内容が『RUN』と判定されると(ステップ1105NO)、ステップ1102に戻ることとなる。   As a result of referring to the state of the SET / RUN switch 208a, if it is set on the SET side (step 1102SET), the SET mode initial setting process (step 1103) is subsequently executed. As shown in FIG. 18, in the SET mode initial setting processing (step 1103), the setting values for the SET mode and the function number F are initialized (F = 0). As will be described in detail later, FIG. 20 is an explanatory diagram showing the relationship between the function number F and the function contents and the availability of individual channel setting in a table format. Here, teaching (F = 0), operation mode setting (F = 1), detection function setting (F = 2), timer function setting (F = 3), display content setting (F = 4), key function assignment setting (F = 5), power tuning target value setting (F = 6), display direction setting (F = 7), and output content setting (F = 8). When the SET mode initial setting process (Step 1103) ends, the SET mode process (Step 1104) is subsequently executed according to the contents of the SET mode specified at that time. Thereafter, as long as the content of the SET / RUN switch 208a is determined to be "SET" (step 1105 YES), the SET mode process (step 1104) is continuously executed, and the content of the SET / RUN switch 208a is set to "RUN". Is determined (NO in step 1105), the process returns to step 1102.

SETモード処理の全体を示すフローチャートが図12に、また図12のSETモード処理の各処理内容を表形式で示す説明図が図19に示されている。それらの図に示されように、SETモード処理が開始されると、機能別表示処理(ステップ1201)が実行されて、表示灯を制御し、設定されている機能番号(F)に応じた表示が行われる。   FIG. 12 is a flowchart showing the entire SET mode processing, and FIG. 19 is an explanatory diagram showing the contents of each processing of the SET mode processing in FIG. 12 in a table format. As shown in these figures, when the SET mode process is started, a function-specific display process (step 1201) is executed to control the display lamp and display according to the set function number (F). Is performed.

その後、キー入力検知処理(ステップ1202)が実行されて、一定期間毎に、キー入力の検知が行われ、入力を検知した場合には、該当処理が実行できるように設定を行う。ここで、キー入力は、UPボタン205,DOWNボタン206,MODEボタン207,スライド操作子208,スライド操作子209の操作を介して検知される。以後、キー入力を待機する状態となる(ステップ1203NO)。   Thereafter, a key input detection process (step 1202) is executed, and a key input is detected at regular intervals, and when an input is detected, a setting is made so that the corresponding process can be executed. Here, the key input is detected through the operation of the UP button 205, the DOWN button 206, the MODE button 207, the slide operator 208, and the slide operator 209. Thereafter, a state of waiting for a key input is entered (step 1203 NO).

この状態において、キー入力ありと判定され(ステップ1203YES)、それが機能切換を指令するものであると判定されれば(ステップ1204YES)、その都度機能番号(F)の値は+1ずつ所定の最大値に達するまで(ステップ1206NO)増加していき(ステップ1205)、最大値に達する毎に(ステップ1206YES)、ゼロリセットされる(ステップ1207)。こうして、オペレータが図2に示されるUPボタン205を操作することにより、機能番号(F)を変更しつつ、所望の機能を選択することができる。   In this state, it is determined that there is a key input (YES in step 1203), and if it is determined that this is a command to switch the function (YES in step 1204), the value of the function number (F) is incremented by +1 each time. The value is increased until the value reaches (Step 1206 NO) (Step 1205), and is reset to zero (Step 1207) each time the value reaches the maximum value (Step 1206 YES). Thus, by operating the UP button 205 shown in FIG. 2, the operator can select a desired function while changing the function number (F).

一方、オペレータが機能番号(F)を選択した後、例えばMODEボタン207を操作して、機能の実行を指令すると(ステップ1204NO,1208YES)、機能別実行処理が行われる(ステップ1209)。この機能別実行処理(ステップ1209)では、設定されている機能番号(F)に応じた処理が実行され、チャンネル個別設定が可能な機能の場合は、チャンネル切換スイッチ209aの状態を検知し、対応するチャンネルに対する処理が行われる。   On the other hand, if the operator selects the function number (F) and then, for example, operates the MODE button 207 to instruct execution of the function (NO in step 1204, YES in 1208), execution processing for each function is performed (step 1209). In this function-specific execution process (step 1209), a process corresponding to the set function number (F) is executed. If the function allows individual channel setting, the state of the channel switch 209a is detected, and The processing for the channel to be performed is performed.

機能番号(F)と機能内容との関係、並びに、チャンネル個別設定可否を表形式で示す説明図が図20に示されている。   FIG. 20 is an explanatory diagram showing the relationship between the function number (F) and the function content, and whether individual channel setting is possible or not in a table format.

即ち、図20に示されるように、機能番号(F)が『0』であれば、ティーチング機能が選択される。このティーチング機能においては、キー入力に応じて各種ティーチングを行い、しきい値を決定する。ティーチング方法としては、既に種々しられているように、ワークなしティーチング、ワークありなしティーチング、最大感度設定などを採用することができる。尚、この例にあっては、ティーチング機能に関してのチャンネル毎の個別設定が可能とされている。そのため、第1チャンネルに関してはワークなしティーチングを行いつつも、第2チャンネルに関してはワークありなしティーチングを採用したり、第1チャンネルと第2チャンネルとでしきい値を異ならせたりするといった操作を自由に行うことができる。このため、1個のセンサで2つのチャンネルを賄いつつも、各チャンネル別に種類の異なるティーチングを採用して、あたかも1チャンネルを内蔵する2台のセンサを使用しているのと同様な機能を実現することができる。   That is, as shown in FIG. 20, if the function number (F) is “0”, the teaching function is selected. In this teaching function, various teachings are performed in accordance with a key input to determine a threshold value. As various teaching methods, teaching without work, teaching with and without work, maximum sensitivity setting, and the like can be adopted as already known. In this example, individual settings can be made for each channel for the teaching function. Therefore, while performing teaching without work for the first channel, it is possible to freely use teaching without work for the second channel or to make the threshold different between the first and second channels. Can be done. Therefore, while one sensor covers two channels, different types of teaching are used for each channel to achieve the same function as if two sensors with one channel were used. can do.

機能番号(F)が『1』の場合には、動作モード設定機能が選択される。この動作モード設定機能においては、入光時ONモードや遮光時ONモードといった動作モードの設定を行うことができる。この動作モード設定機能においても、チャンネル毎に個別設定が可能とされている。そのため、1台のセンサに含まれる2つのチャンネルであっても、第1チャンネルについては入光時ONモードに、第2チャンネルについては遮光時ONモードに設定するなどといったチャンネル別に異なる動作モードの設定を行うことが可能となる。これによっても、1台のセンサによって2つのチャンネルを賄いつつも、あたかも1チャンネル内蔵のセンサを2台使用するのと同様な機能を実現することができる。   When the function number (F) is “1”, the operation mode setting function is selected. In this operation mode setting function, it is possible to set operation modes such as a light-ON mode and a light-ON mode. Also in this operation mode setting function, individual settings can be made for each channel. Therefore, even if two channels are included in one sensor, different operation modes are set for each channel, such as setting the first channel to the ON mode when light enters and the second channel to the ON mode when light is blocked. Can be performed. Even with this, it is possible to achieve the same function as if two sensors with one channel are used, while one sensor covers two channels.

機能番号(F)が『2』の場合には、検出機能設定機能が選択される。この検出機能設定機能では、検出機能の選択を行うことができる。本機能の選択内容により、ON/OFF判定時の検出アルゴリズムが異なる。ここで、検出機能としては、標準モード、最速モード、高精度モードなどが用意されている。尚、この実施形態においては、この検出機能設定機能に関しては、チャンネル毎の個別設定は否定されている。   When the function number (F) is “2”, the detection function setting function is selected. In the detection function setting function, the detection function can be selected. The detection algorithm at the time of ON / OFF determination differs depending on the selection of this function. Here, as a detection function, a standard mode, a fastest mode, a high accuracy mode, and the like are prepared. In this embodiment, the individual setting for each channel is denied for the detection function setting function.

機能番号(F)が『3』である場合には、タイマ機能設定機能が選択される。このタイマ機能設定機能においては、タイマモードとタイマ時間の設定が行われる。本設定により、ON/OFF判定時の出力タイミングの設定が行われる。ここで、タイマモードには、タイマオフ、オフディレイ、オンディレイ、ワンショットなどが用意されている。また、タイマ時間には、タイマオフ時以外は、可能範囲内で設定するといった仕様が用意されている。このタイマ機能設定機能においても、チャンネル毎の個別設定が可能とされている。そのため、第1チャンネルに関してはタイマモードはオフディレイとする一方、第2チャンネルに関してはオンディレイとするなど、様々な設定内容を選択することができる。この点からも、1台のセンサにより2チャンネル分の機能を有するとはいえ、各チャンネル別にタイマ機能の設定が可能となるから、使い勝手が良好なものとなる。   When the function number (F) is “3”, the timer function setting function is selected. In this timer function setting function, a timer mode and a timer time are set. With this setting, the output timing at the time of ON / OFF determination is set. Here, in the timer mode, timer off, off delay, on delay, one shot and the like are prepared. In addition, specifications are provided such that the timer time is set within a possible range except when the timer is off. Also in this timer function setting function, individual setting for each channel is possible. Therefore, various setting contents can be selected, such as setting the timer mode to the off delay for the first channel and setting the on delay to the second channel. From this point, although one sensor has a function for two channels, the timer function can be set for each channel, so that the usability is good.

機能番号(F)が『4』の場合には、表示内容設定機能が選択される。この表示内容設定機能では、表示内容の選択が行われる。ここで、表示内容としては、受光量、しきい値、バー表示などが用意されている。また、上記表示内容を組み合わせて表示することも可能であり、各内容のホールド値(ピーク、ボトムなど)を表示することも可能とされている。もっとも、この表示内容設定機能に関しては、チャンネル毎の個別設定は否定されている。   When the function number (F) is “4”, the display content setting function is selected. In this display content setting function, the display content is selected. Here, as the display contents, a light reception amount, a threshold value, a bar display, and the like are prepared. Further, it is also possible to display the above display contents in combination, and it is also possible to display the hold value (peak, bottom, etc.) of each content. However, regarding this display content setting function, individual setting for each channel is denied.

機能番号(F)が『5』の場合には、キー機能割り付け設定機能が選択される。このキー機能割り付け設定機能においては、RUNモード時のキーの役割が選択される。ここで、キー割付としては、パワーチューニング、ゼロリセットなどが用意されている。このキー機能割り付け設定機能に関しては、チャンネル毎の個別設定は否定されている。   When the function number (F) is "5", the key function assignment setting function is selected. In this key function assignment setting function, the role of the key in the RUN mode is selected. Here, power tuning, zero reset, and the like are prepared as key assignments. Regarding this key function assignment setting function, individual setting for each channel is denied.

機能番号(F)が『6』の場合には、パワーチューニング目標値設定機能が選択される。このパワーチューニング目標値設定機能においては、パワーチューニング実行時の目標値が設定される。このパワーチューニング目標値設定機能に関しては、チャンネル毎の個別設定は否定されている。   When the function number (F) is “6”, the power tuning target value setting function is selected. In this power tuning target value setting function, a target value at the time of executing power tuning is set. Regarding the power tuning target value setting function, the individual setting for each channel is denied.

機能番号(F)が『7』の場合には、表示方向設定機能が選択される。この表示方向設定機能においては、表示方向の選択が行われる。ここで、『通常』が設定されれば通常方向の表示が行われ、『リバース』が選択されれば、リバース方向の表示が行われる。この表示方向設定機能に関しては、チャンネル毎の個別設定は否定されている。   When the function number (F) is “7”, the display direction setting function is selected. In the display direction setting function, a display direction is selected. Here, if "normal" is set, display in the normal direction is performed, and if "reverse" is selected, display in the reverse direction is performed. Regarding the display direction setting function, the individual setting for each channel is denied.

機能番号(F)が『8』の場合には、出力内容設定機能が選択される。この出力内容設定機能においては、2出力タイプ機種において、2チャンネル目の出力内容の設定が行われる。ここで、出力内容としては、通常独立出力、AND出力、OR出力、差分出力が用意されている。通常独立出力については特に説明は要しないであろうが、AND出力が選択されると第1チャンネルの検出出力と第2チャンネルの検出出力との論理積が演算されて、これが特定の出力ラインに出力される。また、OR出力が設定されると、第1チャンネルの検出出力と第2チャンネルの検出出力との論理和が演算により求められ、この論理和出力が特定の出力ラインに送り出される。さらに差分出力が設定されると、第1チャンネルの受光量と第2チャンネルの受光量との差演算が行われ、得られた差分出力を所定のしきい値と比較して判別した結果が、特定の出力ラインに送り出される。つまり、第1チャンネルの受光量と第2チャンネルの受光量との偏差が予め規定されたしきい値を超えたか否かに応じて、その判定結果が特定の出力ラインに送り出される。この差演算は、後にRUNモード実行時に説明するように、制御部(CPU)701を構成するマイクロプロセッサによって行われる。もっとも、別途OPアンプなどのアナログ演算回路を設けて、その演算を制御部(CPU)701の外部で行い、その演算結果をさらにアナログコンパレータで判別するといった構成を採用しても、同様な機能を実現できることは言うまでもない。殊に、この差分出力に関しては、従前隣接する2台の光電センサで行ったものを、隣接センサ間で通信を介していずれかのセンサに取り込み、その後論理判別を行って、いずれかのセンサで出力するといったものが存在したが、そのような構成のものに比べ、本発明の2チャンネル内蔵型センサによれば、隣接センサ間における通信が不要であるから、出力応答性が向上するし、通信を介在させないことによって、十分に時間的余裕を持って、より高度な判定出力を実現することもできる。図12のフローチャートにもどって、キー入力が検知されても(1203YES)、それがSETモード処理と関連しなければ、SETモード処理はスキップされて(1204NO、1208NO)、他の処理が実行される。   When the function number (F) is “8”, the output content setting function is selected. In the output content setting function, the output content of the second channel is set in a two-output type model. Here, as the output contents, usually an independent output, an AND output, an OR output, and a difference output are prepared. Although it is usually unnecessary to explain the independent output, when the AND output is selected, the logical product of the detection output of the first channel and the detection output of the second channel is calculated, and this is output to a specific output line. Is output. When the OR output is set, the logical sum of the detection output of the first channel and the detection output of the second channel is obtained by calculation, and this logical sum output is sent to a specific output line. When the difference output is further set, a difference operation between the light reception amount of the first channel and the light reception amount of the second channel is performed, and a result of comparing the obtained difference output with a predetermined threshold value and determining It is sent to a specific output line. That is, the determination result is sent to a specific output line according to whether or not the deviation between the light reception amount of the first channel and the light reception amount of the second channel exceeds a predetermined threshold. This difference calculation is performed by a microprocessor constituting the control unit (CPU) 701, as will be described later when the RUN mode is executed. However, even if an analog operation circuit such as an OP amplifier is separately provided, the operation is performed outside the control unit (CPU) 701, and the operation result is further discriminated by the analog comparator, the same function can be obtained. Needless to say, this can be achieved. In particular, with respect to this difference output, what was previously performed by two adjacent photoelectric sensors is taken into one of the sensors through communication between the adjacent sensors, and then the logical determination is performed, and the logical determination is performed. Although there is an output type, the two-channel built-in sensor of the present invention does not require communication between adjacent sensors, so that output responsiveness is improved and communication is improved. By not intervening, a more advanced judgment output can be realized with a sufficient time margin. Returning to the flowchart of FIG. 12, even if a key input is detected (YES in 1203), if the key input is not related to the SET mode processing, the SET mode processing is skipped (NOs in 1204 and 1208), and another processing is executed. .

図11に戻って、SET/RUN切換スイッチ208aの状態が『RUN』であると判定されると(ステップ1102RUN)、続いてRUNモード初期設定処理(ステップ1106)が実行される。このRUNモード初期設定処理(ステップ1106)では、図18に示されるように、表示灯及び制御出力の初期化、しきい値及び各種RUNモード用設定値の初期化、更には、投受光チャンネル番号Cの初期化(C=1)が行われる。ここで投受光チャンネル番号Cの値は、後述するRUNモードにおいて、何れの検出チャンネルに関する動作を行うべきかどうかの制御に利用される。すなわち、この実施形態においては、1台のCPUによって、第1チャンネル系と第2チャンネル系とを時分割で交互に実行しているため、それらの何れを実行するかをこの投受光チャンネル番号Cの値に応じて決定するのである。   Returning to FIG. 11, when it is determined that the state of the SET / RUN switch 208a is "RUN" (step 1102 RUN), the RUN mode initial setting process (step 1106) is executed. In this RUN mode initial setting process (step 1106), as shown in FIG. 18, the indicator and control output are initialized, threshold values and various RUN mode setting values are initialized, Initialization of C (C = 1) is performed. Here, the value of the light emitting / receiving channel number C is used for controlling which detection channel should be operated in the RUN mode described later. That is, in this embodiment, the first channel system and the second channel system are alternately executed in a time-division manner by one CPU. Is determined according to the value of.

以後、SET/RUN切換スイッチ208aの内容が『RUN』と判定される限り(ステップ1108YES)、RUNモード処理(ステップ1107)が継続的に実行される。   Thereafter, as long as the content of the SET / RUN switch 208a is determined to be "RUN" (step 1108 YES), the RUN mode process (step 1107) is continuously executed.

RUNモード処理の全体を示すフローチャートが図13に、RUNモード処理の各処理内容を表形式で示す説明図が図21にそれぞれ示されている。図13において、処理が開始されると、まず表示灯制御処理が実行される(ステップ1301)。この表示灯制御処理(ステップ1301)においては、指定された表示内容に応じて、7セグメント表示器の点灯制御を行う。ここで『指定された表示内容』とあるのは、先にSETモード処理(ステップ1104)において、機能番号(F)を『4』とすることにより、表示内容設定機能を選択して、決定した受光量、しきい値、バー表示の表示内容のことである。   FIG. 13 is a flowchart showing the entire RUN mode processing, and FIG. 21 is an explanatory diagram showing each processing content of the RUN mode processing in a table format. In FIG. 13, when the process is started, first, an indicator light control process is executed (step 1301). In the indicator light control process (step 1301), the lighting control of the 7-segment display is performed according to the specified display content. Here, the “designated display content” is determined by first selecting the display content setting function by setting the function number (F) to “4” in the SET mode processing (step 1104). This means the display content of the received light amount, threshold value, and bar display.

続いて通信コマンド実行処理(ステップ1302)を実行する。この通信コマンド実行処理(ステップ1302)においては、後述する計測割込処理(ステップ1350)内で通信コマンドを受け付けた場合、該当するコマンドの処理を実行することを意味している。先に特開2001−222788号にて本出願人が開示したように、データ設定コマンド、操作不能化コマンド、隠れ機能実行コマンド等が用意されている。続いて、APC処理(ステップ1303)においては、後に説明する計測割込処理(ステップ1350)内で取得したモニタ受光量を監視し、一定期間毎に、APC(オートパワーコントロール‘投光電流のパワー制御’)補正を実施する。このときAPC補正は、各チャンネル毎に実行されるから、投光素子や受光素子或いは投光回路や受光回路の特性がチャンネル毎に異なる場合であっても、各チャンネル別に常に適正なオートパワーコントロールが行われる。   Subsequently, a communication command execution process (step 1302) is executed. This communication command execution processing (step 1302) means that when a communication command is received in a measurement interrupt processing (step 1350) described later, the processing of the corresponding command is executed. As disclosed by the present applicant in Japanese Patent Application Laid-Open No. 2001-222788, a data setting command, an operation disable command, a hidden function execution command, and the like are provided. Subsequently, in the APC process (step 1303), the monitor received light amount acquired in the measurement interrupt process (step 1350) described later is monitored, and the APC (auto power control) Control ') Perform the correction. At this time, the APC correction is performed for each channel. Therefore, even if the characteristics of the light emitting element and the light receiving element or the light emitting circuit and the light receiving circuit are different for each channel, the appropriate automatic power control is always performed for each channel. Is performed.

続いて、キー入力検知処理(ステップ1304)においては、一定期間毎に、キー入力の検知を行い、入力を検知した場合は、該当処理が実行できるように設定を行う。その後、検知されたキー入力の状態に基づき、キー入力により指令された内容が、チャンネル切換指令(ステップ1306)、しきい値調整指令(ステップ1307)、パワーチューニング指令(ステップ1308)、ゼロリセット指令(ステップ1309)、キーロック指令(ステップ1310)の何れであるかの判定が行われる。ここで、それらの判定結果に応じて、チャンネル切換処理(ステップ1311)、しきい値調整処理(ステップ1312)、パワーチューニング処理(ステップ1313)、ゼロリセット処理(ステップ1314)、キーロック処理(ステップ1315)の何れかが実行される。   Subsequently, in a key input detection process (step 1304), a key input is detected at regular intervals, and if an input is detected, settings are made so that the corresponding process can be executed. Thereafter, based on the detected key input state, the contents instructed by the key input include a channel switching instruction (step 1306), a threshold adjustment instruction (step 1307), a power tuning instruction (step 1308), and a zero reset instruction. (Step 1309), it is determined which of the key lock command (Step 1310). Here, according to these determination results, channel switching processing (step 1311), threshold adjustment processing (step 1312), power tuning processing (step 1313), zero reset processing (step 1314), key lock processing (step 1314) 1315) is executed.

ここで、チャンネル切換処理(ステップ1311)が実行された場合、キー入力に応じて指定チャンネルの切換が行われる。すなわち、図1及び図2において、スライド操作子209が第1チャンネルと第2チャンネルとの何れかに設定されれば、チャンネル切換スイッチ209aを介してその設定状態が読み込まれ、指定されたチャンネルへの切換が実行される。   Here, when the channel switching process (step 1311) is executed, the designated channel is switched according to the key input. That is, in FIGS. 1 and 2, if the slide operator 209 is set to one of the first channel and the second channel, the setting state is read via the channel changeover switch 209a, and the selected channel is switched to the specified channel. Is performed.

また、しきい値調整処理(ステップ1312)が実行された場合には、キー入力に応じて、しきい値の変更が行われ、指定されているチャンネルに対して該当するしきい値調整処理が行われる。すなわち、スライド操作子209がそのとき第1チャンネル又は第2チャンネルの何れに設定しているかによって、指定されたチャンネルに関して、所定のキー操作に応じてしきい値の変更が行われる。   When the threshold adjustment processing (step 1312) is executed, the threshold is changed in accordance with the key input, and the threshold adjustment processing corresponding to the designated channel is performed. Done. That is, depending on whether the slide operator 209 is set to the first channel or the second channel at that time, the threshold is changed for the designated channel in accordance with a predetermined key operation.

また、パワーチューニング処理(ステップ1313)が実行されると、目標とする検出値が得られるように、投光パワー及び受光ゲインの最適調整が行われる(パワーチューニング実行)。一方、『パワーチューニング解除』が要求された場合には、デフォルトの投光パワー、受光ゲイン状態への復帰が行われる(パワーチューニング解除)。更に、それらのパワーチューニング実行並びにパワーチューニング解除は、チャンネル切換スイッチ209の設定状態に応じて、指定されているチャンネルに対して処理が行われる。これにより、第1チャンネル又は第2チャンネルを個別に別々のパワーチューニングを行うことが可能となるから、第1チャンネルと第2チャンネルとで投受光系の特性が相違する場合にも、各チャンネル別に最適なパワーチューニングが行われ、1チャンネル内蔵型のセンサを2台使用するのと全く同様な使い勝手を獲得することができる。   When the power tuning process (step 1313) is executed, the optimum adjustment of the light projection power and the light reception gain is performed so that the target detection value is obtained (power tuning is performed). On the other hand, when "power tuning release" is requested, a return to the default projection power and light receiving gain state is performed (power tuning release). Further, the execution of the power tuning and the cancellation of the power tuning are performed on the designated channel in accordance with the setting state of the channel switch 209. This makes it possible to separately perform power tuning for the first channel or the second channel. Even when the characteristics of the light emitting / receiving system are different between the first channel and the second channel, each channel can be individually tuned. Optimum power tuning is performed, and the same usability as using two 1-channel built-in sensors can be obtained.

また、ゼロリセット処理(ステップ1314)が実行された場合には、現在の受光量表示が『0』となるように、起点受光量の決定が行われる。以降は、起点受光量から変化量を受光量表示する。上記の起点受光量に応じて、しきい値も同様にシフト表示される(ゼロリセット実行)。一方、『ゼロリセット解除』が要求された場合には、デフォルトの受光量表示状態への復帰が行われる(ゼロリセット解除)。これらゼロリセット実行又はゼロリセット解除は、先の場合と同様に、指定されているチャンネルに対して個別に行うことができるから、1チャンネル内蔵型のセンサを2台使用するのと全く同様な操作間隔で、各チャンネル別にゼロリセットを実行させることができる。尚、このゼロリセット処理に関しては、先に本出願人により特開2001−124594号公報において詳しく開示されているため、ここでは説明は省略する。   When the zero reset process (step 1314) is executed, the starting light receiving amount is determined so that the present light receiving amount display becomes “0”. Thereafter, the amount of change is displayed based on the received light amount at the starting point. The threshold value is similarly shifted and displayed according to the above-mentioned starting point received light amount (zero reset execution). On the other hand, when "zero reset release" is requested, a return to the default received light amount display state is performed (zero reset release). The execution of the zero reset or the release of the zero reset can be performed individually for the designated channel, as in the previous case, so the operation is exactly the same as using two sensors with a built-in one channel. At intervals, a zero reset can be performed for each channel. Since the zero reset process has been disclosed in detail in Japanese Patent Application Laid-Open No. 2001-124594 by the present applicant, the description is omitted here.

また、キーロック処理(ステップ1315)が実行された場合には、『キーロック』の設定が行われる。この『キーロック』が設定されている場合は、特定キー以外の入力を受け付けないように作用する。一方、『キーロック解除』が要求された場合には、ロック状態は解除される。   When the key lock process (step 1315) is executed, “key lock” is set. When this “key lock” is set, it acts so as not to accept an input other than a specific key. On the other hand, when "key lock release" is requested, the locked state is released.

続いて、定時割込で実行される計測割込処理(ステップ1350)について詳細な説明を行う。計測割込処理を示すフローチャートが図14に、また計測割込処理の各処理内容を表形式で示す説明図が図22に示されている。   Subsequently, a detailed description will be given of the measurement interruption process (step 1350) executed in the regular interruption. FIG. 14 is a flowchart showing the measurement interruption processing, and FIG. 22 is an explanatory diagram showing the contents of each processing of the measurement interruption processing in a table format.

図14において処理が開始されると、先ず同期通信処理(ステップ1401)が実行される。この同期通信処理においては、図22に示されるように、隣接センサに対して投光同期信号の送信が行われる。先に図1及び図2を参照して説明したように、光電センサ1の本体ケース10の左右の側面板103,104には、投受光用窓112が開口形成されており、その内部には、先に図10を参照して説明したように、左側通信用LED710a、左側通信用PD711a又は右側通信用LED710b、右側通信用PD711bが配置されている。そして、これらのLED及びPDを適宜駆動することによって、隣接センサとの間で、光通信を介して、情報の送受を行うことが可能とされている。尚、これら情報の送受の詳細については、本出願人により先に特開2001−222786号公報により詳細に開示されている。すなわち、この同期通信処理(ステップ1401)においては、連装された一連のセンサの最端部に位置する親機から定時タイマ処理によって、一定間隔で隣接子機に対して投光同期信号を送信する。すると、それに連なる各子機は順次投光同期信号を一定の遅れ時間をもって隣接する子機へと転送する。これにより、親機並びにそれに隣接する各子機においては、例えば100μsec周期で、僅かな位相遅れをもって、自己が動作すべき動作タイミングを取得することができる。   When the process is started in FIG. 14, a synchronous communication process (step 1401) is first executed. In this synchronous communication process, as shown in FIG. 22, a light emission synchronization signal is transmitted to an adjacent sensor. As described above with reference to FIGS. 1 and 2, the left and right side plates 103 and 104 of the main body case 10 of the photoelectric sensor 1 are formed with openings 112 for light emitting and receiving light, and are formed therein. As described above with reference to FIG. 10, the left communication LED 710a, the left communication PD 711a or the right communication LED 710b, and the right communication PD 711b are arranged. By appropriately driving these LEDs and PDs, it is possible to transmit and receive information to and from adjacent sensors via optical communication. The details of the transmission and reception of such information are disclosed in detail in Japanese Patent Application Laid-Open No. 2001-222786 by the present applicant. That is, in this synchronous communication processing (step 1401), a light emitting synchronization signal is transmitted from the master located at the end of the series of sensors to the adjacent slaves at regular intervals by the regular timer processing. . Then, each of the slave units connected to the slave unit sequentially transmits the light emission synchronization signal to the adjacent slave unit with a certain delay time. As a result, in the master unit and each slave unit adjacent thereto, the operation timing at which the master unit should operate can be acquired at a period of, for example, 100 μsec with a slight phase delay.

こうして、同期通信処理(ステップ1401)の実行の結果、自己の動作タイミング到来と判定されると、そのときの設定チャンネルの内容をチャンネル設定レジスタCの内容に基づいて判定する。ここで『C=1』であれば第1チャンネル、『C=2』であれば第2チャンネルが設定されているものと判定される。   As a result of the execution of the synchronous communication processing (step 1401), when it is determined that the own operation timing has come, the content of the set channel at that time is determined based on the content of the channel setting register C. Here, if “C = 1”, it is determined that the first channel is set, and if “C = 2”, it is determined that the second channel is set.

チャンネル指定レジスタCの内容を参照した結果、その内容が『1』と判定されれば、以後第1チャンネル系の処理が行われるのに対し、『2』であると判定されれば、第2チャンネル系の処理が実行される。   As a result of referring to the content of the channel designation register C, if the content is determined to be “1”, the processing of the first channel system is performed thereafter, whereas if it is determined to be “2”, the second channel processing is performed. Channel-related processing is executed.

いま仮に、チャンネル指定レジスタCの値が『1』であると判定されたと想定すると(ステップ1402 C=1)、続いて第1チャンネルに関する投受光処理(ステップ1403)が実行される。この第1チャンネルに関する投受光処理(ステップ1403)においては、設定された検出モードに応じて第1チャンネルの投光LED702aの点灯制御を行い、その状態でメイン受光PD703aを介して得られた受光量を電気信号に変換・増幅し、その後、A/Dコンバータ708を介してA/D変換を実施することにより、検出値を取得する。ここで検出した検出値は、第1チャンネルに関するON/OFF判定処理やRUNモード処理での表示等に利用される。   Now, assuming that it is determined that the value of the channel designation register C is “1” (Step 1402 C = 1), subsequently, the light emitting / receiving process for the first channel (Step 1403) is executed. In the light emitting / receiving process for the first channel (step 1403), the lighting control of the light emitting LED 702a of the first channel is performed according to the set detection mode, and in this state, the amount of light received via the main light receiving PD 703a Is converted and amplified into an electric signal, and then A / D conversion is performed via an A / D converter 708 to obtain a detection value. The detection value detected here is used for ON / OFF determination processing for the first channel, display in the RUN mode processing, and the like.

続いて、第1のチャンネルに関するON/OFF判定処理(ステップ1404)が実行される。この第1チャンネルに関するON/OFF判定処理(ステップ1404)においては、取得した検出値としきい値レベルを比較することにより、設定された検出機能、タイマモード、動作モード(L.ON/D.ON)に応じて、第1チャンネルのON/OFF判定を行う。   Subsequently, an ON / OFF determination process (step 1404) for the first channel is executed. In the ON / OFF determination processing for the first channel (step 1404), the obtained detection value is compared with a threshold level to determine the set detection function, timer mode, and operation mode (L.ON / D.ON). ), ON / OFF determination of the first channel is performed.

続いて、第1チャンネルに関する出力制御処理(ステップ1405)が実行される。この第1チャンネルに関する出力制御処理(ステップ1405)においては、第1チャンネルのON/OFF状態に応じて、第1チャンネル制御出力の出力制御と動作表示灯の点灯制御を行う。このとき、第1チャンネルの制御出力の外部への送出は図10に示される第1チャンネル制御出力回路715を介して行われ、また動作表示灯203の点灯制御については、表示駆動回路719を介して行われる。   Subsequently, an output control process (step 1405) for the first channel is executed. In the output control process for the first channel (step 1405), output control of the first channel control output and lighting control of the operation indicator are performed according to the ON / OFF state of the first channel. At this time, the transmission of the control output of the first channel to the outside is performed via the first channel control output circuit 715 shown in FIG. 10, and the lighting control of the operation indicator lamp 203 is performed via the display drive circuit 719. Done.

このようにして、第1チャンネルに関する出力制御処理(ステップ1405)が終了した後にあっては、チャンネル指定レジスタの値は『1』から『2』に書き換えられる(ステップ1406)。以後、コマンド通信処理(ステップ1413)が実行されて、通信によりコマンド通信を受信した場合、受信内容を保存すると共に、隣接センサへのコマンド転送を行う。   After the output control process for the first channel (step 1405) is completed, the value of the channel designation register is rewritten from "1" to "2" (step 1406). Thereafter, when the command communication process (step 1413) is executed and the command communication is received by communication, the received content is saved and the command is transferred to the adjacent sensor.

次いで、次回の割り込み処理が実行されると、同期通信処理(ステップ1401)において、動作タイミングの到来が検出されるのを待って、チャンネル指定レジスタCの内容が判定される(ステップ1402)。このとき、先の割り込み処理において、チャンネル指定レジスタCの値は『1』から『2』へと書き換えられているため(ステップ1406)、今回の判定処理(ステップ1402)においてはC=2との判定が行われ、その結果、今度は第2チャンネルに関する投受光処理(ステップ1407)が実行される。   Next, when the next interrupt processing is executed, in the synchronous communication processing (step 1401), the contents of the channel designation register C are determined (step 1402) after the arrival of the operation timing is detected. At this time, since the value of the channel designation register C has been rewritten from “1” to “2” in the previous interrupt processing (step 1406), it is determined that C = 2 in the present determination processing (step 1402). A determination is made, and as a result, a light emitting / receiving process (step 1407) for the second channel is performed.

この第2チャンネルに関する投受光処理(ステップ1407)においては、設定された検出モードに応じて第2チャンネルの投光LED702bの点灯制御を行い、メイン受光PD703bを介して得られた受光量を電気信号に変換・増幅し、その後、A/Dコンバータ708を介してA/D変換を実施することにより、検出値を取得する。ここで取得した検出値は、第2チャンネルに関するON/OFF判定処理やRUNモード処理での表示等に使用する。   In the light emitting / receiving process for the second channel (step 1407), lighting control of the light emitting LED 702b of the second channel is performed according to the set detection mode, and the amount of light received via the main light receiving PD 703b is converted into an electric signal. Then, the detected value is obtained by performing A / D conversion via the A / D converter 708. The detection value acquired here is used for ON / OFF determination processing relating to the second channel, display in the RUN mode processing, and the like.

このようにして第2チャンネルに関する投受光処理(ステップ1407)が実行完了すると、続いて差分検知出力が設定されているかどうかの判定が行われる(ステップ1408)。この差分検知出力の指定は、先に説明したように、SETモード処理(ステップ1104)において、機能番号(F)として『8』を設定し、出力内容設定機能を選択することで行うことができる。ここで、差分検知出力指定なしと判定されれば(ステップ1408NO)、続いて第2チャンネルに関するON/OFF判定処理(ステップ1409)が実行される。   When the light emission / reception processing (step 1407) for the second channel is completed in this way, it is subsequently determined whether or not the difference detection output is set (step 1408). As described above, this difference detection output can be designated by setting “8” as the function number (F) in the SET mode process (step 1104) and selecting the output content setting function. . If it is determined that there is no difference detection output designation (step 1408 NO), then ON / OFF determination processing for the second channel (step 1409) is executed.

この第2チャンネルに関するON/OFF判定処理(ステップ1409)においては、取得した検出値としきい値レベルを比較することにより、設定された検出機能、タイマモード、動作モード(L.ON/D.ON)に応じて、第2チャンネルのON/OFF判定を行う。   In the ON / OFF determination processing for the second channel (step 1409), the obtained detection value is compared with a threshold level to set a detection function, a timer mode, and an operation mode (L.ON / D.ON). ), ON / OFF determination of the second channel is performed.

これに対して、差分検知出力指定ありと判定された場合には(ステップ1408YES)、続いて差分判定処理(ステップ1410)が実行される。この差分判定処理(ステップ1410)においては、第1チャンネルの受光量から第2チャンネルの受光量を減算した値としきい値レベルとを比較することにより、タイマモード、動作モード(L.ON./D.ON)に応じて、第2チャンネルのON/OFF判定を実施する。すなわち、この差分判定処理によって、1台のセンサ内に組み込まれた2つのチャンネル間において、両受光量の差分を求め、この差分が予め決められたしきい値を越えたか否かによって判定出力を生成することが可能となるのである。   On the other hand, if it is determined that there is a difference detection output designation (step 1408 YES), a difference determination process (step 1410) is subsequently performed. In this difference determination processing (step 1410), the timer mode and the operation mode (L.ON./) are compared by comparing the value obtained by subtracting the amount of received light of the second channel from the amount of received light of the first channel with the threshold level. D. ON), ON / OFF determination of the second channel is performed. That is, by this difference determination processing, a difference between the two received light amounts is obtained between the two channels incorporated in one sensor, and a determination output is determined based on whether or not the difference exceeds a predetermined threshold value. It can be generated.

続いて、第2チャンネルに関する出力制御処理(ステップ1411)が実行される。この出力制御処理(ステップ1411)においては、SETモードでの出力内容設定に応じて、第2チャンネル制御出力の出力制御と動作表示灯の点灯制御を行う。先に図20を参照して説明したように、出力内容設定としては、通常独立出力、AND出力、OR出力、差分出力がそれぞれ用意されている。『通常独立出力』においては、第2チャンネルに関するON/OFFの判定結果が出力される。『AND出力』においては、第1チャンネルと第2チャンネルのON/OFF判定結果のAND出力が送出される。『OR出力』の場合には、第1チャンネルと第2チャンネルのON/OFF判定結果のOR出力が生成され、外部へと送出される。さらに、『差分出力』においては、差分判定処理(ステップ1410)において得られた判定結果が出力される。   Subsequently, an output control process (step 1411) for the second channel is executed. In this output control process (step 1411), output control of the second channel control output and lighting control of the operation indicator are performed according to the output content setting in the SET mode. As described above with reference to FIG. 20, as the output content setting, usually, an independent output, an AND output, an OR output, and a difference output are prepared. In the “normally independent output”, an ON / OFF determination result for the second channel is output. In the “AND output”, an AND output of the ON / OFF determination result of the first channel and the second channel is transmitted. In the case of "OR output", an OR output of the ON / OFF determination results of the first channel and the second channel is generated and sent to the outside. Further, in the “difference output”, the determination result obtained in the difference determination processing (step 1410) is output.

このようにして、第2チャンネルに関する出力制御処理(ステップ1411)が実行を完了すると、その直後に、チャンネル指定レジスタCの値は『2』から『1』へと書き換えられる(ステップ1412)。その後、コマンド通信処理(ステップ1413)が実行されて、通信によりコマンド通信を受信した場合、受信内容を保持すると共に、隣接センサへのコマンド転送を行った後、タイマの起動を待って、次回の計測割り込み処理へと移行する。   When the output control process for the second channel (step 1411) is thus completed, immediately after that, the value of the channel designation register C is rewritten from "2" to "1" (step 1412). After that, when the command communication process (step 1413) is executed and the command communication is received by the communication, the received content is held, the command is transferred to the adjacent sensor, and after the timer is started, the next time, the command is received. Move on to measurement interrupt processing.

その結果、ステップ1402におけるチャンネル指定レジスタCの参照処理、並びに、ステップ1406及びステップ1412において行われるチャンネル指定レジスタ書き換え処理の結果、チャンネル指定レジスタCの値は割り込みのたびに交互に『1』と『2』とに切り替わることとなって、第1チャンネル系の処理(ステップ1403〜1405)と第2チャンネル系の処理(ステップ1407〜1411)が交互に実行される。   As a result, as a result of referring to the channel designation register C in step 1402 and rewriting the channel designation register performed in steps 1406 and 1412, the value of the channel designation register C becomes “1” and “ 2 ", the processing of the first channel system (steps 1403 to 1405) and the processing of the second channel system (steps 1407 to 1411) are executed alternately.

すると、図17に示されるように、多数のセンサをDINレールを介して連装したセンサシステムにおいては、個々の2チャンネル内蔵型センサ内において、第1のチャンネルと第2のチャンネルとが親機が決めた投光周期を挟んで、交互に実行されることとなり、従前の1チャンネル内蔵型の光電センサと同様に、何ら同期管理を乱すことなく、個々のセンサは正常に作動することとなる。   Then, as shown in FIG. 17, in a sensor system in which many sensors are connected via a DIN rail, in each of the two-channel built-in sensors, the first channel and the second channel are connected by the master unit. The execution is alternately performed with the determined light emission cycle interposed, and the individual sensors operate normally without disturbing the synchronization management at all, similarly to the conventional one-channel built-in photoelectric sensor.

すなわち、1台のセンサに2個のチャンネルが組み込まれているとは言え、各センサ内におけるチャンネルは1動作周期毎に1個しか作動しないから、親機が決めた動作周期に従って、8点、16点、32点といったように最大接続台数が制限された機種においても、それらのセンサの1つとして又は全てが本発明に係る2チャンネル組込型のセンサであっても、1動作周期内の終了間近に1台のセンサ内において同時に2台のチャンネルが僅かな遅れ時間をもって作動したことにより、最終センサの動作期間が決められた周期を越えて、システム全体に支障を来すといった虞れを未然に防止することができる。   In other words, although two channels are incorporated in one sensor, only one channel in each sensor operates in each operation cycle, so that eight points, Even in models in which the maximum number of connected devices is limited, such as 16 points and 32 points, even if one or all of the sensors are two-channel built-in sensors according to the present invention, the number of sensors within one operation cycle is limited. Due to the simultaneous operation of two channels within one sensor with a slight delay near the end of the operation, there is a risk that the operation period of the final sensor may exceed the predetermined period and cause a problem for the entire system. It can be prevented before it happens.

すなわち、図17の例は、3台のセンサ(センサU1,U2,U3)を例にとり、それぞれが2チャンネル組込型のセンサとした場合において、従前の1チャンネル組込型の動作周期(サイクルタイム)を維持したままで、これが正常に動作することを示すものである。   That is, the example of FIG. 17 takes three sensors (sensors U1, U2, and U3) as an example, and when each sensor is a two-channel built-in sensor, the operation cycle (cycle) of the conventional one-channel built-in type is set. This indicates that this operates normally while maintaining the time.

親機であるセンサU1には1CH、2CHが割り付けられ、子機であるセンサU2には3CH、4CHが割り付けられ、さらに子機であるU3には5CH、6CHが割り付けられている。この状態において、親機であるセンサU1が主導権をもって、一定周期で同期信号を隣接センサであるセンサU2に送信すると、センサU2においては3CHに関する検出動作が行われた後、さらにセンサU2からセンサU3に向けて同期信号の光通信による送出が行われる。すると、続くセンサU3においては、5CHに関する検出動作が行われる。その後、同期周期が経過すると、センサU1においてはタイマ管理によって2CHに関する検出動作が実行され、これより僅かに遅れて続くセンサU2に対して同期信号の送出が行われる。すると、センサU2においては、4CHに関する検出動作が行われ、その後僅かに遅れてセンサU3に関して同期信号の光通信による送出が行われる。すると、今度はセンサU3においては6CHに関する検出動作が行われ、その後、内部タイマ管理による投光周期の経過を待って、親機であるセンサU1においては、今度は1CHに関する検出動作が実行される。その後、僅かに遅れてセンサU2に対し同期信号が光信号により送出される。すると、センサU2においては3CHに関する検出動作が行われ、その後僅かに遅れてセンサU3に対し同期信号が光通信で送出される。すると、センサU3では、5CHに関する検出動作が行われ、以後、各センサU1,U2,U3においては、隣接する2つのチャンネルが交互に実行される。その結果、各センサ内に2つのチャンネルが組み込まれているとは言え、各センサ内において専有する時間は、1チャンネル組込型センサと同様であるから、センサ接続最大台数を維持する限りにおいては、接続センサ台数を最大規定台数まで増加することによって、一定のセンサ専有幅を維持しつつも扱うことが可能なチャンネル数を2倍に増加させることが可能となるのである。   1CH and 2CH are allocated to the sensor U1 as the parent device, 3CH and 4CH are allocated to the sensor U2 as the child device, and 5CH and 6CH are further allocated to the U3 as the child device. In this state, when the sensor U1 serving as the master unit takes the initiative and transmits a synchronization signal to the sensor U2 serving as an adjacent sensor at a fixed period, the sensor U2 performs a detection operation regarding 3CH, and then performs a sensor operation from the sensor U2. The synchronization signal is transmitted to U3 by optical communication. Then, in the subsequent sensor U3, a detection operation regarding 5CH is performed. After that, when the synchronization period elapses, the sensor U1 performs a detection operation regarding 2CH by timer management, and sends a synchronization signal to the sensor U2 that is slightly later than the detection operation. Then, in the sensor U2, the detection operation for the 4CH is performed, and then, with a slight delay, the transmission of the synchronization signal by optical communication is performed for the sensor U3. Then, the detection operation for 6CH is performed in the sensor U3, and then, after the elapse of the light emission period by the internal timer management, the detection operation for 1CH is performed in the sensor U1, which is the parent device. . Thereafter, with a slight delay, a synchronization signal is sent to the sensor U2 by an optical signal. Then, the detection operation for 3CH is performed in the sensor U2, and a synchronization signal is transmitted to the sensor U3 by optical communication with a slight delay thereafter. Then, the sensor U3 performs a detection operation on 5CH, and thereafter, in each of the sensors U1, U2, and U3, two adjacent channels are alternately executed. As a result, although two channels are built in each sensor, the time occupied in each sensor is the same as that of the one-channel built-in sensor, so long as the maximum number of connected sensors is maintained. By increasing the number of connected sensors to the maximum specified number, it is possible to double the number of channels that can be handled while maintaining a certain sensor occupation width.

最後に、表示部全体の詳細を拡大して示す説明図が図15に、また第1,第2数値表示部の表示態様を示す説明図が図16にそれぞれ示されている。   Finally, FIG. 15 is an enlarged explanatory diagram showing details of the entire display unit, and FIG. 16 is an explanatory diagram showing a display mode of the first and second numerical value display units.

すなわち、本発明にあっては、第1数値表示部201及び第2数値表示部202を巧みに利用することによって、第1チャンネル並びに第2チャンネルに関する様々な表示態様を獲得することができる。   That is, in the present invention, various display modes related to the first channel and the second channel can be obtained by skillfully using the first numerical value display unit 201 and the second numerical value display unit 202.

図16(a)に示されるように、<受光量+受光量>表示を選択すれば、第1数値表示部201には第1チャンネルの受光量が『1000』として、また第2数値表示部202には第2チャンネルの受光量が『3000』として表示される。   As shown in FIG. 16A, when the display of <light reception amount + light reception amount> is selected, the light reception amount of the first channel is displayed as “1000” in the first numerical display unit 201 and the second numerical display unit is displayed. At 202, the received light amount of the second channel is displayed as "3000".

また、図16(b)に示されるように、チャンネル切替スイッチ209aが第1チャンネルに設定された状態において、<受光量+しきい値>表示が選択されれば、第1数値表示部201には第1チャンネルの受光量が『4000』として表示され、同時に第2数値表示部202には第1チャンネルのしきい値が『1800』として表示される。   Further, as shown in FIG. 16B, when the display of <light reception amount + threshold> is selected in a state where the channel changeover switch 209a is set to the first channel, the first numerical value display unit 201 is displayed. Is displayed as the light reception amount of the first channel is "4000", and at the same time, the threshold value of the first channel is displayed as "1800" on the second numerical value display section 202.

また、図16(c)に示されるように、チャンネル切替スイッチ209aが第2チャンネル側に設定された状態において、<受光量+しきい値>表示が選択されれば、第1数値表示部201には第2チャンネルの受光量が『3000』として、また第2数値表示部202には第2チャンネルのしきい値が『700』として表示される。   Further, as shown in FIG. 16C, if the display of <light reception amount + threshold value> is selected in a state where the channel changeover switch 209a is set to the second channel side, the first numerical value display unit 201 is displayed. , The light reception amount of the second channel is displayed as “3000”, and the threshold value of the second channel is displayed as “700” on the second numerical value display section 202.

また、図16(d)に示されるように、<バー>表示が選択されれば、第1数値表示部201には各チャンネルの入光側光量が上下に領域を分けてバー表示され、同時に第2数値表示部202には各チャンネルの遮光側光量が上下に領域を分けて同様にバー表示される。   As shown in FIG. 16D, if the display of <bar> is selected, the first numerical value display unit 201 displays the light incident side light amount of each channel as a bar divided into upper and lower areas, and at the same time, In the second numerical value display section 202, the light-shielding light amount of each channel is similarly displayed as a bar by dividing the area vertically.

さらに、図16(e)に示されるように、例えばチャンネル切替スイッチ209aが第2チャンネル側に設定されている状態において、<受光量差分値+しきい値>表示が選択されれば、第1数値表示部201には第1チャンネルの受光量と第2チャンネルの受光量との差分が『+300』として表示され、第2数値表示部202には差分しきい値が『−500』として表示される。   Further, as shown in FIG. 16 (e), for example, in a state where the channel changeover switch 209a is set to the second channel side, if <light reception amount difference value + threshold> display is selected, the first The numerical value display unit 201 displays the difference between the amount of received light of the first channel and the amount of received light of the second channel as “+300”, and the second numerical display unit 202 displays the difference threshold value as “−500”. You.

このように、図16(a)〜(e)に示されるように、本発明によれば、1台のセンサ内に2つのチャンネルの機能を組み込みつつも、2個の数値表示部201,202を利用して、受光量、しきい値、差分といった様々なデータをオペレータに分かりやすく表示させることができ、しかも数値表示のみならず、同図(d)に示されるように、各チャンネルの入光側または遮光側光量をバー表示させることも可能となる。   As described above, according to the present invention, as shown in FIGS. 16A to 16E, the two numerical value display units 201 and 202 are provided while incorporating the functions of two channels in one sensor. By using this, various data such as the amount of received light, the threshold value, and the difference can be displayed to the operator in an easy-to-understand manner. In addition to the numerical display, as shown in FIG. The light amount on the light side or the light shielding side can be displayed as a bar.

以上詳細に説明したように、本実施形態の2チャンネル組込型ファイバ型光電センサによれば、従前の1チャンネル組込型の光電センサに比べ、半分のスペースで同じだけのチャンネル容量を賄うことができ、逆に従前のシステムにおけると同じだけのスペースを確保すれば、2倍のチャンネル容量を獲得することができる。加えて、各センサ内に組み込まれた2つのチャンネルは、同期周期毎に、交互に1個ずつしか動作しないから、従前の1チャンネル組込型のシステムに適用した場合にも、同期周期を乱したり、他のセンサに悪影響を与えることがないと共に、1台のセンサ内においても僅かな時間差をおいて2個のチャンネルがほぼ同時に動作することがないため、一方のチャンネルの動作による基板の電位変動が他方のチャンネルの動作に影響を与えるといった問題を生ずることがなく、信頼性の高い、かつ使い勝手の良好なセンサシステムを提供することができる。   As described in detail above, according to the two-channel built-in fiber type photoelectric sensor of the present embodiment, the same channel capacity can be covered in half the space as compared with the conventional one-channel built-in type photoelectric sensor. If the same space is secured as in the previous system, the channel capacity can be doubled. In addition, since the two channels incorporated in each sensor operate alternately only one at a time for each synchronization cycle, the synchronization cycle is disturbed even when applied to a conventional one-channel embedded system. And the other sensors are not adversely affected, and the two channels do not operate almost simultaneously at a slight time difference within one sensor. It is possible to provide a highly reliable and easy-to-use sensor system without causing the problem that the potential fluctuation affects the operation of the other channel.

加えて、センサケースの両面に設けられた2つの数値表示部並びに2つの動作表示灯を巧みに利用することによって、両チャンネルの受光量を同時に見たり、各チャンネルに関する受光量としきい値とを比較しながら観察したり、さらには2つのチャンネルの光量データを数値表示器の上下2列に分けてバーコードで表示させるなど、オペレータに対して良好な使い勝手を提供することができる。   In addition, by skillfully utilizing the two numerical display units and the two operation indicators provided on both sides of the sensor case, the received light amount of both channels can be simultaneously viewed, and the received light amount and threshold value of each channel can be checked. Good usability can be provided to the operator, for example, by observing while comparing, and furthermore, displaying the light amount data of the two channels in the upper and lower two rows of the numerical display with bar codes.

光電センサの連装状態を示す斜視図である。FIG. 3 is a perspective view showing a state in which the photoelectric sensors are connected in series. 光電センサの内部構造を示す分解斜視図である。FIG. 2 is an exploded perspective view showing the internal structure of the photoelectric sensor. クランプアセンブリの内部構造を示す分解斜視図である。FIG. 3 is an exploded perspective view showing an internal structure of the clamp assembly. クランプアセンブリの非クランプ状態を示す斜視図である。FIG. 4 is a perspective view showing a non-clamp state of the clamp assembly. クランプアセンブリのクランプ状態を示す斜視図である。FIG. 4 is a perspective view showing a clamp state of the clamp assembly. ファイバグリッパを斜め前方から見た斜視図である。It is the perspective view which looked at the fiber gripper from diagonally forward. ファイバグリッパの正面並びに背面を示す図である。It is a figure showing the front and back of a fiber gripper. ファイバグリッパの左側面並びに右側面を示す図である。It is a figure which shows the left side surface and the right side surface of a fiber gripper. 光電センサの外形寸法の説明図である。It is explanatory drawing of the external dimension of a photoelectric sensor. 光電センサの電気的なハードウェア構成を示すブロック図である。FIG. 2 is a block diagram illustrating an electrical hardware configuration of the photoelectric sensor. 光電センサのソフトウェア構成の全体を示すゼネラルフローチャートである。It is a general flowchart which shows the whole software structure of a photoelectric sensor. SETモード処理の全体を示すフローチャートである。9 is a flowchart illustrating the entire SET mode process. RUNモード処理の全体を示すフローチャートである。It is a flowchart which shows the whole RUN mode processing. 計測割り込み処理を示すフローチャートである。It is a flowchart which shows a measurement interruption process. 表示部全体の詳細を拡大して示す説明図である。FIG. 5 is an explanatory diagram showing details of the entire display unit in an enlarged manner. 第1,第2数値表示部の表示態様を示す説明図である。FIG. 9 is an explanatory diagram illustrating a display mode of first and second numerical value display units. 各センサU1,U2,U3に割り付けられた2つのチャンネルの動作タイミングを説明するためのタイムチャートである。6 is a time chart for explaining operation timings of two channels allocated to each of sensors U1, U2, and U3. 図11のゼネラルフローチャートの各処理内容を表形式で示す説明図である。FIG. 12 is an explanatory diagram showing, in a table format, the contents of each process of the general flowchart in FIG. 11. 図12のSETモード処理の各処理内容を表形式で示す説明図である。FIG. 13 is an explanatory diagram showing contents of each processing of the SET mode processing of FIG. 12 in a table format. 機能番号Fと機能内容との関係、並びに、チャンネル個別設定可否を表形式で示す説明図である。FIG. 9 is an explanatory diagram showing, in a table form, a relationship between a function number F and function contents, and whether or not individual channel setting is possible. 図13のRUNモード処理の各処理内容を表形式で示す説明図である。FIG. 14 is an explanatory diagram showing, in a table form, details of each process of the RUN mode process of FIG. 13; 図14の計測割り込み処理の各処理内容を表形式で示す説明図である。FIG. 15 is an explanatory diagram showing, in a table form, details of each processing of the measurement interrupt processing of FIG. 14.

符号の説明Explanation of reference numerals

1 光電センサ
2 DINレール
5 電気コード
6 上面カバー
10 ケース本体
20 本体アセンブリ
20A 上面パネル
20B 部品搭載基板
30 クランプアセンブリ
31 第1チャンネル投光用の光ファイバ
32 第1チャンネル受光用の光ファイバ
41 第2チャンネル投光用の光ファイバ
42 第2チャンネル受光用の光ファイバ
51 第1チャンネル出力用芯線
52 第2チャンネル出力用芯線
53 Vcc用芯線
54 GND用芯線
101 前面板
102 後面板
103 右側面板
104 左側面板
105 下面板(底面板)
106 開口
107 第1チャンネル投光用のファイバ挿入口
108 第1チャンネル受光用のファイバ挿入口
109 第2チャンネル投光用のファイバ挿入口
110 第2チャンネル受光用のファイバ挿入口
111 DINレール嵌合溝
112 投受光窓
201 第1数値表示部
202 第2数値表示部
203 第1動作表示灯
204 第2動作表示灯
205,206,207 押しボタン
205a UPスイッチ
206a DOWNスイッチ
207a MODEスイッチ
208,209 スライド操作子
208a SET/RUN切替スイッチ
209a チャンネル切替スイッチ
210 クランパホルダ部
211 ヒンジ部
310 ベースブロック
310a〜310d ファイバ挿入孔
310e,310g 位置決め孔
310f,310h 位置決め孔
310i,310j ステージ
310n,310o,310p ガイド突起
310l ブラケット
310m 軸孔
310k ピン
320 下側ファイバグリッパ
320a 下側ファイバグリッパの上側Cリング部
320b 下側ファイバグリッパの下側Cリング部
320h 丸棒状突起
320i 平板状突起
320f,320g 空隙部
330 上側ファイバグリッパ
330a 上側ファイバグリッパの上側Cリング部
330b 上側ファイバグリッパの下側Cリング部
340 クランプレバー
340a 軸孔
340b クランプレバーのカム部
350 スライドアクチュエータ
350a 下側窓
350b 上側窓
350c,350d,350e ガイドスリット
350f,350g,350h,350i ファイバグリッパ作動用の突起
350j スライドアクチュエータの上端面
700 基板搭載回路
701 制御部(CPU)
701a 第1チャンネルの投光回路
701b 第2チャンネルの投光回路
702a 第1チャンネルのLED
702b 第2チャンネルのLED
703a 第1チャンネルのメイン受光PD
703b 第2チャンネルのメイン受光PD
704a 第1チャンネルの増幅回路
704b 第2チャンネルの増幅回路
705a 第1チャンネルのAPC用受光PD
705b 第2チャンネルのAPC用受光PD
706a 第1チャンネルのAPC受光回路
706b 第2チャンネルのAPC受光回路
707 チャンネル切替回路
708 外付けのA/Dコンバータ
709a 左側の通信投光駆動回路
710a 左側の通信用LED
710b 右側の通信用LED
711a 左側の通信用PD
711b 右側の通信用PD
712a 左側の通信増幅回路
712b 右側の通信増幅回路
713 発振子
714 EEPROM
715 1チャンネルの制御出力回路
716 2チャンネルの制御出力回路
717 CPUリセット回路
718 電源回路
719 表示駆動回路
720 操作回路
W センサの幅
H センサの高さ
L センサの奥行き
DESCRIPTION OF SYMBOLS 1 Photoelectric sensor 2 DIN rail 5 Electric cord 6 Top cover 10 Case main body 20 Main assembly 20A Top panel 20B Component mounting board 30 Clamp assembly 31 Optical fiber for first channel light emission 32 Optical fiber for first channel light reception 41 Second Optical fiber for channel light emission 42 Optical fiber for second channel light reception 51 First channel output core wire 52 Second channel output core wire 53 Vcc core wire 54 GND core wire 101 Front plate 102 Rear plate 103 Right side plate 104 Left side plate 105 Bottom plate (bottom plate)
106 Opening 107 Fiber insertion port for first channel light emission 108 Fiber insertion port for first channel light reception 109 Fiber insertion port for second channel light emission 110 Fiber insertion port for second channel light reception 111 DIN rail fitting groove 112 Emitter / receiver window 201 First numerical display unit 202 Second numerical display unit 203 First operation indicator 204 Second operation indicator 205, 206, 207 Push button 205a UP switch 206a DOWN switch 207a MODE switch 208, 209 Slider 208a SET / RUN switch 209a Channel switch 210 Clamper holder 211 Hinge 310 Base block 310a-310d Fiber insertion hole 310e, 310g Positioning hole 310f, 310h Positioning hole 3 0i, 310j Stage 310n, 310o, 310p Guide projection 310l Bracket 310m Shaft hole 310k Pin 320 Lower fiber gripper 320a Upper C-ring part of lower fiber gripper 320b Lower C-ring part of lower fiber gripper 320h Round bar-shaped projection 320i Flat plate Protrusion 320f, 320g Air gap 330 Upper fiber gripper 330a Upper C-ring part of upper fiber gripper 330b Lower C-ring part of upper fiber gripper 340 Clamp lever 340a Shaft hole 340b Cam part of clamp lever 350 Slide actuator 350a Lower window 350b Upper window 350c, 350d, 350e Guide slit 350f, 350g, 350h, 350i Projection for operating fiber gripper 350j Slider Upper surface 700 substrate mounting the circuit 701 the control unit of the Chueta (CPU)
701a First channel light emitting circuit 701b Second channel light emitting circuit 702a First channel LED
702b 2nd channel LED
703a Main light receiving PD of the first channel
703b Main light receiving PD of second channel
704a First-channel amplifier circuit 704b Second-channel amplifier circuit 705a First-channel APC light-receiving PD
705b Light receiving PD for APC of 2nd channel
706a APC light receiving circuit of the first channel 706b APC light receiving circuit of the second channel 707 Channel switching circuit 708 External A / D converter 709a Left communication light emission drive circuit 710a Left communication LED
710b Right communication LED
711a Communication PD on left side
711b Right communication PD
712a Communication amplification circuit on the left 712b Communication amplification circuit on the right 713 Oscillator 714 EEPROM
715 One-channel control output circuit 716 Two-channel control output circuit 717 CPU reset circuit 718 Power supply circuit 719 Display drive circuit 720 Operation circuit W Sensor width H Sensor height L Sensor depth

Claims (9)

底面にレール装着部、上面に表示部と操作部、前面にファイバ挿入口、後面にコード引き出し方式又はコネクタ方式からなる出力部、をそれぞれ有するとともに、レール長手方向の寸法が15mm以下であるファイバ型光電センサであって、
第1、第2の検出チャンネルに対応する2組の投光回路及び受光回路と、
2つの検出チャンネルの検出動作を時分割で行う単一のCPUと、
2つの検出チャンネルに対応する2本の出力線と、
下2つが第1の検出チャンネルに対応する投受光対、上2つが第2の検出チャンネルに対応する投受光対となるように、前面に上下に配列された4個のファイバ挿入口と、
各々複数桁の数字をケースの長手方向に並べて表示することができ、且つケースの上面に長手方向に並べて設けられた第1、第2の数値表示部と、を備え、
第1の数値表示部には第1の検出チャンネルの受光量を、第2の数値表示部には第2の検出チャンネルの受光量をそれぞれ表示し得るように構成したことを特徴とするファイバ型光電センサ。
A fiber type having a rail mounting section on the bottom, a display section and an operation section on the top, a fiber insertion port on the front, an output section of a cord drawing type or a connector type on the rear side, and a dimension in the rail longitudinal direction of 15 mm or less. A photoelectric sensor,
Two sets of light emitting circuits and light receiving circuits corresponding to the first and second detection channels,
A single CPU that performs time-division detection operations for two detection channels;
Two output lines corresponding to the two detection channels;
Four fiber insertion ports vertically arranged on the front surface such that the lower two light emitting / receiving pairs corresponding to the first detection channel and the upper two light emitting / receiving pairs corresponding to the second detection channel,
A first and a second numerical display unit, each of which can display a plurality of digits in the longitudinal direction of the case, and are provided on the upper surface of the case in a longitudinal direction;
A fiber type, wherein the first numerical value display unit can display the amount of received light of a first detection channel, and the second numerical value display unit can display the amount of received light of a second detection channel. Photoelectric sensor.
第1の数値表示部に隣接して第1の動作表示灯、第2の数値表示部に隣接して第2の動作表示灯がそれぞれ設けられ、且つ第1、第2の動作表示灯のいずれかは第1、第2の数値表示部に挟まれていることを特徴とする請求項1に記載のファイバ型光電センサ。 A first operation indicator is provided adjacent to the first numerical display, a second operation indicator is provided adjacent to the second numerical display, and any one of the first and second operation indicators is provided. 2. The fiber-type photoelectric sensor according to claim 1, wherein the first and second numerical display portions are sandwiched between the first and second numerical display portions. 選択操作により、第1の数値表示部と第2の数値表示部の表示内容を、第1の検出チャンネルの受光量と第2の検出チャンネルの受光量、第1の検出チャンネルの受光量としきい値、及び第2の検出チャンネルの受光量としきい値、のいずれかに切り替えることができる請求項1に記載のファイバ型光電センサ。 By the selection operation, the display contents of the first numerical value display unit and the second numerical value display unit are set to the light reception amount of the first detection channel, the light reception amount of the second detection channel, and the light reception amount of the first detection channel. The fiber-type photoelectric sensor according to claim 1, wherein the fiber-type photoelectric sensor can be switched to any one of a value, a light reception amount of the second detection channel, and a threshold. 第1の検出チャンネルの検出結果と第2の検出チャンネルの検出結果との間で論理演算を行う論理演算手段と、論理演算手段による論理演算結果を出力する出力線とを有することを特徴とする請求項1に記載のファイバ型光電センサ。 It has a logical operation means for performing a logical operation between the detection result of the first detection channel and the detection result of the second detection channel, and an output line for outputting a logical operation result by the logical operation means. The fiber-type photoelectric sensor according to claim 1. 第1の検出チャンネルの受光量と第2の検出チャンネルの受光量との間の差の演算を行う差演算手段と、差演算手段による差演算結果をしきい値により判別する判別手段と、判別手段による判別結果を出力する出力線とを有することを特徴とする請求項1に記載のファイバ型光電センサ。 Difference calculating means for calculating a difference between the amount of light received by the first detection channel and the amount of light received by the second detection channel; determining means for determining a difference calculation result by the difference calculating means by a threshold value; 2. The fiber type photoelectric sensor according to claim 1, further comprising: an output line for outputting a determination result by the means. 底面にレール装着部、上面に表示部と操作部、前面にファイバ挿入口、後面にコード引き出し方式又はコネクタ方式からなる出力部、をそれぞれ有するファイバ型光電センサであって、
第1、第2の検出チャンネに対応する2組の投光回路及び受光回路と、
2つの検出チャンネルの検出動作を時分割で行う単一のCPUと、
2つの検出チャンネルに対応する2本の出力線と、
前面に配列された4個のファイバ挿入口と、
ケースの上面に設けられ、複数桁の数字をケース長手方向に並べて表示することができ、第1の検出チャンネルの受光量及び第2の検出チャンネルの受光量を数値で表示し得るように構成した表示器と、を備えることを特徴とするファイバ型光電センサ。
A fiber-type photoelectric sensor having a rail mounting portion on the bottom surface, a display portion and an operation portion on the top surface, a fiber insertion port on the front surface, and an output portion made of a cord drawing method or a connector method on the rear surface,
Two sets of light emitting circuits and light receiving circuits corresponding to the first and second detection channels;
A single CPU that performs time-division detection operations for two detection channels;
Two output lines corresponding to the two detection channels;
Four fiber insertion ports arranged on the front,
Provided on the upper surface of the case, a plurality of digits can be displayed side by side in the longitudinal direction of the case, and the received light amount of the first detection channel and the received light amount of the second detection channel can be displayed numerically. A fiber-type photoelectric sensor, comprising: a display;
表示器は、各々複数桁の数字をケースの長手方向に並べて表示することができ、且つケースの長手方向に並べられた第1、第2の数値表示部を備え、
第1の数値表示部には第1の検出チャンネルの受光量を、第2の数値表示部には第2の検出チャンネルの受光量をそれぞれ表示し得るように構成したことを特徴とする、請求項6に記載のファイバ型光電センサ。
The display is capable of displaying a plurality of digits each arranged in the longitudinal direction of the case, and includes first and second numerical display units arranged in the longitudinal direction of the case.
The light receiving amount of the first detection channel may be displayed on the first numerical display unit, and the light receiving amount of the second detection channel may be displayed on the second numerical display unit. Item 7. A fiber type photoelectric sensor according to item 6.
レール長手方向の寸法が15mm以下であり、
4個のファイバ挿入口は、前面に上下に配列されたことを特徴とする、請求項6に記載のファイバ型光電センサ。
The dimension in the rail longitudinal direction is 15 mm or less,
The fiber-type photoelectric sensor according to claim 6, wherein the four fiber insertion ports are vertically arranged on a front surface.
4個のファイバ挿入口は、下2つが第1の検出チャンネルに対応する投受光対、上2つが第2の検出チャンネルに対応する投受光対となるように配列されたことを特徴とする、請求項8に記載のファイバ型光電センサ。 The four fiber insertion ports are arranged such that lower two light emitting / receiving pairs corresponding to the first detection channel and upper two light emitting / receiving pairs corresponding to the second detection channel. A fiber-type photoelectric sensor according to claim 8.
JP2004117088A 2002-10-31 2004-04-12 Fiber photoelectric sensor Expired - Lifetime JP3844080B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004117088A JP3844080B2 (en) 2002-10-31 2004-04-12 Fiber photoelectric sensor

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2002319152 2002-10-31
US10/695,652 US6944359B2 (en) 2002-10-31 2003-10-29 Optical fiber photoelectric sensor unit
JP2004117088A JP3844080B2 (en) 2002-10-31 2004-04-12 Fiber photoelectric sensor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002346446A Division JP3561914B2 (en) 2002-10-31 2002-11-28 Fiber type photoelectric sensor

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2006176463A Division JP4352272B2 (en) 2002-10-31 2006-06-27 Fiber photoelectric sensor

Publications (2)

Publication Number Publication Date
JP2004320767A true JP2004320767A (en) 2004-11-11
JP3844080B2 JP3844080B2 (en) 2006-11-08

Family

ID=34714138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004117088A Expired - Lifetime JP3844080B2 (en) 2002-10-31 2004-04-12 Fiber photoelectric sensor

Country Status (1)

Country Link
JP (1) JP3844080B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006153786A (en) * 2004-12-01 2006-06-15 Sick Optex Kk Photoelectric sensor box equipped with easy-to-detach cover
JP2006351380A (en) * 2005-06-16 2006-12-28 Keyence Corp Photoelectric switch
JP2010025554A (en) * 2008-07-15 2010-02-04 Atsumi Electric Co Ltd Infrared sensor
JP2013083615A (en) * 2011-10-12 2013-05-09 Kyokko Denki Kk Object detection apparatus capable of freely setting detection range
WO2013080725A1 (en) * 2011-11-28 2013-06-06 オムロン株式会社 Sensor device
CN110174734A (en) * 2019-05-07 2019-08-27 上海索迪龙自动化有限公司 Optical fiber amplifying device
CN110556694A (en) * 2019-09-25 2019-12-10 上海长江电气设备集团有限公司 Optical fiber amplifier

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006153786A (en) * 2004-12-01 2006-06-15 Sick Optex Kk Photoelectric sensor box equipped with easy-to-detach cover
JP2006351380A (en) * 2005-06-16 2006-12-28 Keyence Corp Photoelectric switch
JP4679976B2 (en) * 2005-06-16 2011-05-11 株式会社キーエンス Photoelectric switch and its setting and display method
JP2010025554A (en) * 2008-07-15 2010-02-04 Atsumi Electric Co Ltd Infrared sensor
JP2013083615A (en) * 2011-10-12 2013-05-09 Kyokko Denki Kk Object detection apparatus capable of freely setting detection range
WO2013080725A1 (en) * 2011-11-28 2013-06-06 オムロン株式会社 Sensor device
JP2013114839A (en) * 2011-11-28 2013-06-10 Omron Corp Sensor device
CN110174734A (en) * 2019-05-07 2019-08-27 上海索迪龙自动化有限公司 Optical fiber amplifying device
CN110556694A (en) * 2019-09-25 2019-12-10 上海长江电气设备集团有限公司 Optical fiber amplifier

Also Published As

Publication number Publication date
JP3844080B2 (en) 2006-11-08

Similar Documents

Publication Publication Date Title
JP3561914B2 (en) Fiber type photoelectric sensor
JP5527565B2 (en) Fiber photoelectric sensor
JP4806225B2 (en) Control device and car multimedia device
JPH0427280A (en) Camera integrated video recorder device
JP3844080B2 (en) Fiber photoelectric sensor
JP2004227798A (en) Multi-optical axis photoelectric sensor
JP4352272B2 (en) Fiber photoelectric sensor
WO1991016795A1 (en) Remote control device
JP4530072B2 (en) Operation terminal
JP4634658B2 (en) Multi-optical axis photoelectric sensor and light projector and light receiver included therein
JP4874473B2 (en) Multi-optical axis photoelectric sensor and light projector and light receiver included therein
JP3981693B2 (en) Multi-axis photoelectric sensor
JP3854628B2 (en) Multi-optical axis photoelectric sensor and projector / receiver included therein
JP2002289073A (en) Setting system for multiple optical axis photo electric sensor
JP3920906B2 (en) Multi-axis photoelectric sensor
KR200269824Y1 (en) Unification controller
KR940004425Y1 (en) Remote control device able to input/output of light emitter
KR20220059643A (en) A variable layout switching device
JP2007227392A (en) Multiple optical axis photoelectric sensor
JP2003296867A (en) Sensor system, its sensor unit, communication unit and terminating unit therefor
KR100202272B1 (en) Variable remocon
JP2019060775A (en) Photoelectric switch and photoelectric switch system
JP3508542B2 (en) Equipment operation device
KR200177423Y1 (en) Total multiple control system
JPH0832461A (en) Remote control transmitter

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060502

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060627

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: 20060726

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060808

R150 Certificate of patent or registration of utility model

Ref document number: 3844080

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100825

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100825

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110825

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110825

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120825

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130825

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term