JPH09167952A - Photoelectric switch - Google Patents

Photoelectric switch

Info

Publication number
JPH09167952A
JPH09167952A JP32766095A JP32766095A JPH09167952A JP H09167952 A JPH09167952 A JP H09167952A JP 32766095 A JP32766095 A JP 32766095A JP 32766095 A JP32766095 A JP 32766095A JP H09167952 A JPH09167952 A JP H09167952A
Authority
JP
Japan
Prior art keywords
received light
light
point
amount
photoelectric switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP32766095A
Other languages
Japanese (ja)
Inventor
Junji Oshita
淳司 大下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Keyence Corp
Original Assignee
Keyence Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Keyence Corp filed Critical Keyence Corp
Priority to JP32766095A priority Critical patent/JPH09167952A/en
Publication of JPH09167952A publication Critical patent/JPH09167952A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)
  • Optical Radar Systems And Details Thereof (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a photoelectric switch capable of easily and exactly setting sensitivity so as to change a detection signal in a specified state. SOLUTION: A worker inputs a setting control signal CT at the time when an object to be detected reaches just before a positioning point and when the object reaches the positioning point. Then, a sampling means 6 performs the first half sampling and the second half sampling and stores light receiving data Vin obtained by the first half sampling and the second half sampling as the first point and second point light receiving data V1 and V2, respectively, in a sampling value storage means 7. A set data arithmetic means 8 stores the size relation of the light receiving data V1 of the first point and the light receiving data V2 of the second point and the value of the receiving data V2 of the second point as set data in a set data storage means 9. An operating level arithmetic means 10 defines an operating level as V2 and V2-HYS in the case of V1<V2 and defines the operating level as V2+HYS and V2 in the case of V1>=V2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は感度設定機能を有す
る光電スイッチに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a photoelectric switch having a sensitivity setting function.

【0002】[0002]

【従来の技術】従来より、検知領域に光を投射しその反
射光または透過光を検出することにより物体の有無を判
定する光電スイッチが用いられている。反射型の光電ス
イッチでは、被検出物体が検知領域に存在する場合に、
投光部から投射された光が物体により反射され、その反
射光が受光部に入光する。この場合、受光部での受光量
のレベルが所定の動作レベル(入光レベル)を越えたと
きに、被検出物体が存在すると判定される。一方、透過
型の光電スイッチでは、被検出物体が検知領域に存在し
ない場合に、投光部から投射された光が受光部に入光す
る。この場合、受光部での受光量のレベルが所定の動作
レベル(遮光レベル)よりも低下したときに被検出物体
が存在すると判定される。光電スイッチは、例えば工場
の搬送ライン等で用いられる。このような光電スイッチ
の感度は動作レベルを変化させることにより調整され
る。
2. Description of the Related Art Conventionally, there has been used a photoelectric switch that determines the presence or absence of an object by projecting light on a detection area and detecting reflected light or transmitted light thereof. In the reflective photoelectric switch, when the detected object is in the detection area,
The light projected from the light projecting unit is reflected by the object, and the reflected light enters the light receiving unit. In this case, it is determined that the detected object exists when the level of the amount of light received by the light receiving unit exceeds a predetermined operation level (light incident level). On the other hand, in the transmissive photoelectric switch, when the object to be detected does not exist in the detection area, the light projected from the light projecting unit enters the light receiving unit. In this case, it is determined that the detected object exists when the level of the amount of light received by the light receiving unit falls below a predetermined operation level (light blocking level). The photoelectric switch is used, for example, in a transportation line of a factory. The sensitivity of such a photoelectric switch is adjusted by changing the operation level.

【0003】特に、搬送ラインを流れるリードフレー
ム、基板、シリコンウエハ等の物体の位置検出や位置決
めの際には、その物体が特定の位置に達したときに検出
信号の状態を変化させる必要がある。このような場合に
は、所定の位置決め点で検出信号の状態が変化するよう
に動作レベルを設定する必要がある。
In particular, when detecting or positioning the position of an object such as a lead frame, a substrate, or a silicon wafer flowing through a transfer line, it is necessary to change the state of the detection signal when the object reaches a specific position. . In such a case, it is necessary to set the operation level so that the state of the detection signal changes at a predetermined positioning point.

【0004】なお、動作レベルは、検出信号がオフ状態
からオン状態に変化するときのオンレベルおよび検出信
号がオン状態からオフ状態に変化するときのオフレベル
からなる。
The operation level consists of an on level when the detection signal changes from the off state to the on state and an off level when the detection signal changes from the on state to the off state.

【0005】ボリューム式の感度設定機能を有する光電
スイッチにおいては、被検出物体が意図した位置決め点
に位置したときに検出信号の状態が変化するように可変
抵抗器を微調整しながら感度設定を行う。この場合、何
度も調整および確認作業を繰り返す必要があるため、感
度設定に熟練を要し、また時間がかかる。
In the photoelectric switch having the volume type sensitivity setting function, the sensitivity is set while finely adjusting the variable resistor so that the state of the detection signal changes when the object to be detected is located at the intended positioning point. . In this case, it is necessary to repeat the adjustment and confirmation work many times, which requires skill and time for setting the sensitivity.

【0006】一方、自動感度調整式の光電スイッチにお
いては、被検出物体を意図した位置決め点(位置決めし
たい点)またはその近傍に静止させ、作業者が操作ボタ
ン等の操作により感度設定を指令する。すると、サンプ
リングされた受光量に基づいて光電スイッチの内部の演
算手段が所定の演算を行って動作レベルを自動的に設定
する。位置決め点と実際の検出信号の変化点がずれてい
る場合には、作業者の勘により感度設定する点を微妙に
ずらしながら設定することを繰り返す。このような追い
込み作業は非常に手間がかかる。
On the other hand, in the automatic sensitivity adjustment type photoelectric switch, the object to be detected is made to stand still at or near the intended positioning point (point to be positioned), and the operator commands sensitivity setting by operating an operation button or the like. Then, the calculation means inside the photoelectric switch performs a predetermined calculation on the basis of the sampled light receiving amount to automatically set the operation level. When the positioning point and the actual change point of the detection signal are deviated from each other, the setting of the sensitivity setting point is repeated while subtly shifting the sensitivity setting point by the intuition of the operator. Such a drive-in work is very troublesome.

【0007】図7および図8は従来の自動感度調整式の
光電スイッチにおける感度設定の方法を示す図である。
図7の例においては、(a)に示すように、被検出物体
110は矢印Xの方向に移動するものとする。感度設定
においては、反射型の光電スイッチのヘッド部100を
適当に配置し、被検出物体110を点Cにて位置決めす
るものとする。被検出物体110を位置決めしたい点
(以下、位置決め点と呼ぶ)Cに静止させ、作業者が感
度設定を指令する。この場合、(b)に示すように、位
置決め点Cでの受光量のレベルの上下にオンレベルおよ
びオフレベルが設定される。
FIGS. 7 and 8 are diagrams showing a method of sensitivity setting in a conventional automatic sensitivity adjustment type photoelectric switch.
In the example of FIG. 7, it is assumed that the detected object 110 moves in the direction of arrow X, as shown in (a). In the sensitivity setting, the head portion 100 of the reflection type photoelectric switch is appropriately arranged and the detected object 110 is positioned at the point C. The detected object 110 is made to stand still at a point C to be positioned (hereinafter referred to as a positioning point) C, and an operator commands sensitivity setting. In this case, as shown in (b), an on level and an off level are set above and below the level of the amount of received light at the positioning point C.

【0008】光電スイッチが入光オンモードに設定され
ている場合には、被検出物体110が矢印Xの方向に移
動し、受光量が矢印で示すように「暗」から「明」の方
向に変化するときに、オン点Aで検出信号がオフからオ
ンになる。図7の例とは逆に、被検出物体100が矢印
Xと逆方向に移動し、受光量が「明」から「暗」の方向
に変化するときには、オフ点Bで検出信号がオンからオ
フになる。
When the photoelectric switch is set to the light-on mode, the object 110 to be detected moves in the direction of arrow X, and the amount of received light changes from "dark" to "bright" as indicated by the arrow. When changing, the detection signal changes from OFF to ON at the ON point A. Contrary to the example of FIG. 7, when the detected object 100 moves in the direction opposite to the arrow X and the amount of received light changes from “bright” to “dark”, the detection signal at the off point B changes from on to off. become.

【0009】このように、いずれの場合にも、検出信号
の変化点が位置決め点Cと一致していない。なお、光電
スイッチが遮光オンモードに設定されている場合には、
検出信号のオン・オフが入光オンモードの場合と逆にな
る。
As described above, in any case, the change point of the detection signal does not coincide with the positioning point C. If the photoelectric switch is set to the light-shielding on mode,
On / off of the detection signal is opposite to that in the light-on mode.

【0010】図8の例においては、位置決め点Cでの受
光量のレベルに一致するようにオンレベルが設定され、
オフレベルは応差(ヒステリシス)に相当する分だけオ
ンレベルよりも低く設定される。したがって、オン点A
は位置決め点Cに一致する。
In the example of FIG. 8, the ON level is set so as to match the level of the amount of received light at the positioning point C,
The off level is set lower than the on level by an amount corresponding to the hysteresis. Therefore, ON point A
Coincides with the positioning point C.

【0011】入光オンモードで考えると、受光量が矢印
で示すように「暗」から「明」の方向に変化するとき
に、位置決め点Cで検出信号がオフからオンに変化す
る。しかしながら、受光量が逆に「明」から「暗」の方
向に変化する場合には、オフ点Bで検出信号がオンから
オフに変化する。すなわち、受光量の変化方向や被検出
物体の移動方向によって検出信号の変化点が位置決め点
と一致したり、一致しなかったりする。
In the light-on mode, when the amount of received light changes from "dark" to "bright" as indicated by the arrow, the detection signal changes from off to on at the positioning point C. However, when the amount of received light changes from “bright” to “dark”, the detection signal changes from on to off at the off point B. That is, the change point of the detection signal may or may not coincide with the positioning point depending on the direction of change in the amount of received light and the direction of movement of the detected object.

【0012】このように、図7および図8のいずれの感
度設定方法でも、被検出物体110の位置検出および位
置決めを正確に行うことができない。このように自動感
度調整式の光電スイッチの場合、感度設定が光電スイッ
チの内部での判断に依存しているので、内部の感度設定
が作業者の意図と直結しにくく、かえってボリューム式
の感度設定よりも微調整が困難である。
As described above, neither the sensitivity setting method of FIG. 7 nor the sensitivity setting method of FIG. 8 can accurately detect the position and position of the object 110 to be detected. In this way, in the case of the automatic sensitivity adjustment type photoelectric switch, since the sensitivity setting depends on the judgment inside the photoelectric switch, it is difficult to directly connect the internal sensitivity setting to the operator's intention, and rather the volume type sensitivity setting. Is more difficult to fine tune.

【0013】なお、投射光の光束を絞ることにより被検
出物体の単位移動量当たりの光量変化率を大きくし、位
置決め誤差を小さくすることも行われている。図9は投
射光の光束が広がっている場合の感度設定を示す図、図
10は投射光の光束が絞られている場合の感度設定を示
す図である。図10の例では、反射型の光電スイッチの
ヘッド部100にレンズ120を取り付けて光束を絞っ
ている。
Incidentally, it is also practiced to reduce the positioning error by narrowing the luminous flux of the projection light to increase the rate of change in the amount of light per unit movement of the object to be detected. FIG. 9 is a diagram showing sensitivity setting when the luminous flux of the projection light is spread, and FIG. 10 is a diagram showing sensitivity setting when the luminous flux of the projection light is narrowed. In the example of FIG. 10, the lens 120 is attached to the head portion 100 of the reflection type photoelectric switch to narrow the light flux.

【0014】図9に示すように、投射光の光束が広がっ
ている場合には、検出信号の変化点と位置決め点Cとの
位置ずれW1が大きくなるが、図10に示すように、投
射光の光束が絞られている場合には、検出信号の変化点
と位置決め点Cとの位置ずれW1が小さくなる。しかし
ながら、光束を絞る光学系が必要となり、光電スイッチ
のヘッド部が大きくなるとともにコストも増大するとい
う問題がある。
As shown in FIG. 9, when the luminous flux of the projection light is spread, the positional deviation W1 between the change point of the detection signal and the positioning point C becomes large, but as shown in FIG. When the luminous flux of is narrowed, the positional deviation W1 between the change point of the detection signal and the positioning point C becomes small. However, there is a problem that an optical system for narrowing the light flux is required, the head portion of the photoelectric switch becomes large, and the cost also increases.

【0015】本発明の目的は、特定の状態で検出信号が
変化するように感度を簡単かつ正確に設定することがで
きる光電スイッチを提供することである。
An object of the present invention is to provide a photoelectric switch whose sensitivity can be easily and accurately set so that a detection signal changes in a specific state.

【0016】[0016]

【課題を解決するための手段および発明の効果】第1の
発明に係る光電スイッチは、光を検知領域に投射しその
透過光または反射光を受光し、受光量を入光検出のため
の第1の動作レベルおよび遮光検出のための第2の動作
レベルと比較することにより物体の有無を検出し、検出
結果を示す検出信号を出力する光電スイッチであって、
サンプリング手段、比較手段および動作レベル設定手段
を備える。
A photoelectric switch according to a first aspect of the present invention projects light onto a detection region, receives transmitted light or reflected light thereof, and determines the amount of received light for detecting incident light. A photoelectric switch that detects the presence or absence of an object by comparing with an operation level of 1 and a second operation level for light shielding detection, and outputs a detection signal indicating a detection result,
Sampling means, comparison means, and operation level setting means are provided.

【0017】サンプリング手段は、検出信号を変化させ
るべき状態で与えられる第1の指令および他の状態で与
えられる第2の指令に応答してそれぞれ第1および第2
の受光量を検出する。比較手段は、サンプリング手段に
より検出された第1の受光量と第2の受光量とを比較す
る。動作レベル設定手段は、比較手段の比較結果および
第1の受光量に基づいて第1および第2の動作レベルを
設定する。
The sampling means is responsive to the first command given in the state in which the detection signal should be changed and the second command given in the other state, respectively.
To detect the amount of received light. The comparison means compares the first received light amount and the second received light amount detected by the sampling means. The operation level setting means sets the first and second operation levels based on the comparison result of the comparison means and the first received light amount.

【0018】第2の発明に係る光電スイッチは、第1の
発明に係る光電スイッチの構成において、動作レベル設
定手段が、比較手段の比較結果に基づいて第1の受光量
が増加する方向にあるか減少する方向にあるかを判定
し、第1の受光量が増加する方向にあるときに第1の受
光量および第1の受光量から所定の値を引いた値をそれ
ぞれ第1および第2の動作レベルとし、第1の受光量が
減少する方向にあるときに第1の受光量に所定の値を加
えた値および第1の受光量をそれぞれ第1および第2の
動作レベルとするものである。
In the photoelectric switch according to the second invention, in the configuration of the photoelectric switch according to the first invention, the operation level setting means is in a direction in which the first received light amount increases based on the comparison result of the comparison means. It is determined whether the first light receiving amount is increasing or not. When the first light receiving amount is increasing, the first light receiving amount and a value obtained by subtracting a predetermined value from the first light receiving amount are respectively determined. And the first received light amount is a value obtained by adding a predetermined value to the first received light amount and the first received light amount is the first and second operation levels, respectively. Is.

【0019】第3の発明に係る光電スイッチは、第1ま
たは第2の発明に係る光電スイッチの構成において、検
出信号を変化させるべき状態が、物体の検出されるべき
箇所が位置決めすべき点に位置する状態であり、上記他
の状態が、物体の検出されるべき箇所が位置決めすべき
点とは異なる点に位置する状態であるものである。
In the photoelectric switch according to the third invention, in the structure of the photoelectric switch according to the first or second invention, the state in which the detection signal should be changed is the point at which the position of the object to be detected should be positioned. It is a state in which the object is located, and the other state is a state in which the position of the object to be detected is different from the position to be positioned.

【0020】第1〜第3の発明に係る光電スイッチにお
いては、検出信号を変化させるべき状態で与えられる第
1の指令および他の状態で与えられる第2の指令に応答
してそれぞれ第1および第2の受光量が検出される。そ
して、第1の受光量と第2の受光量とが比較され、その
比較結果および第1の受光量に基づいて第1および第2
の動作レベルが設定される。
In the photoelectric switch according to the first to third aspects of the invention, the first and the second commands given in the states where the detection signal is to be changed and the second commands given in the other states are respectively responded to. The second amount of received light is detected. Then, the first light receiving amount and the second light receiving amount are compared, and the first and second light receiving amounts are obtained based on the comparison result and the first light receiving amount.
The operation level of is set.

【0021】それにより、検出信号を変化させるべき状
態での受光量の変化方向を判定することができ、その判
定結果に基づいて第1および第2の動作レベルを設定す
ることができる。したがって、受光量の変化方向に応じ
て特定の状態で検出信号の状態が変化するように感度を
簡単かつ正確に設定することができる特に、第2の発明
に係る光電スイッチにおいては、比較手段の比較結果に
基づいて第1の受光量が増加する方向にあるか減少する
方向にあるかが判定される。第1の受光量が増加する方
向にあるときには、第1の受光量および前記第1の受光
量から所定の値を引いた値がそれぞれ第1および第2の
動作レベルとされる。第1の受光量が減少する方向にあ
るときには、第1の受光量に所定の値を加えた値および
第1の受光量がそれぞれ第1および第2の動作レベルと
される。
This makes it possible to determine the direction of change in the amount of received light when the detection signal should be changed, and set the first and second operation levels based on the result of the determination. Therefore, the sensitivity can be easily and accurately set so that the state of the detection signal changes in a specific state according to the direction of change in the amount of received light. Particularly, in the photoelectric switch according to the second invention, Based on the comparison result, it is determined whether the first amount of received light is increasing or decreasing. When the first received light amount is increasing, the first received light amount and the value obtained by subtracting a predetermined value from the first received light amount are set as the first and second operation levels, respectively. When the first amount of received light is decreasing, the value obtained by adding a predetermined value to the first amount of received light and the first amount of received light are the first and second operation levels, respectively.

【0022】これにより、第1の受光量が増加する方向
にあるときには、入光検出時に検出信号が変化する。ま
た、第1の受光量が減少する方向にあるときには、遮光
検出時に検出信号が変化する。したがって、受光量の変
化方向に関わらず、特定の状態で検出信号を変化させる
ことができる。
As a result, when the first amount of received light is in the increasing direction, the detection signal changes at the time of detecting the incident light. Further, when the first amount of received light is decreasing, the detection signal changes at the time of light shielding detection. Therefore, the detection signal can be changed in a specific state regardless of the direction of change in the amount of received light.

【0023】また、第3の発明に係る光電スイッチにお
いては、移動する物体を測定する場合に、予め動作レベ
ルの調整時に物体の移動方向に応じて第1および第2の
動作レベルを設定することができる。それにより、移動
する物体の測定時に、物体が位置決めすべき点に位置し
たときに検出信号を変化させることが可能となる。した
がって、移動する物体の正確な位置決めまたは位置検出
が可能となる。
In the photoelectric switch according to the third aspect of the invention, when measuring a moving object, the first and second operation levels are set in advance according to the moving direction of the object when adjusting the operation level. You can This makes it possible to change the detection signal when the object is located at the point to be positioned when measuring the moving object. Therefore, it is possible to accurately position or detect the position of a moving object.

【0024】[0024]

【発明の実施の形態】図1は本発明の一実施例における
光電スイッチの構成を示すブロック図である。
1 is a block diagram showing the structure of a photoelectric switch according to an embodiment of the present invention.

【0025】図1において、主制御手段1は、光電スイ
ッチ内の各部を制御する。投光回路2は、検知領域に光
を投射する。反射型の光電スイッチの場合には、検知領
域に被検出物体が存在するときに、被検出物体からの反
射光が受光・増幅回路3で受光される。一方、透過型の
光電スイッチの場合には、検知領域に被検出物体が存在
しないときに、投光回路2から投射された光が受光・増
幅回路3で受光される。
In FIG. 1, the main control means 1 controls each part in the photoelectric switch. The light projecting circuit 2 projects light onto the detection area. In the case of the reflection type photoelectric switch, when the object to be detected is present in the detection area, the reflected light from the object to be detected is received by the light receiving / amplifying circuit 3. On the other hand, in the case of the transmissive photoelectric switch, the light projected from the light projecting circuit 2 is received by the light receiving / amplifying circuit 3 when there is no detected object in the detection region.

【0026】受光・増幅回路3は受光した光をアナログ
の受光信号に変換および増幅して出力する。A/D変換
器(アナログ/デジタル変換器)4は、受光・増幅回路
3から出力された受光信号をアナログ・デジタル変換し
て受光データVinとして出力する。受光データ記憶手
段5は、A/D変換器4から出力された受光データVi
nを記憶する。
The light receiving / amplifying circuit 3 converts the received light into an analog light receiving signal, amplifies it, and outputs it. The A / D converter (analog / digital converter) 4 analog-digital converts the light reception signal output from the light reception / amplification circuit 3 and outputs the light reception data Vin. The received light data storage means 5 receives the received light data Vi output from the A / D converter 4.
Remember n.

【0027】サンプリング手段6は、受光データ記憶手
段5に記憶された受光データVinをサンプリングす
る。サンプリング値記憶手段7は、サンプリング手段6
によりサンプリングされた受光データを記憶する。設定
データ演算手段8は、ピーク値記憶手段7に記憶された
受光データに基づいて設定データを算出する。ここで、
設定データとは、動作レベルの算出に用いられるデータ
である。設定データ記憶手段9は、設定データ演算手段
8により得られた設定データを記憶する。
The sampling means 6 samples the received light data Vin stored in the received light data storage means 5. The sampling value storage means 7 is a sampling means 6.
The light reception data sampled by is stored. The setting data calculator 8 calculates the setting data based on the received light data stored in the peak value storage 7. here,
The setting data is data used for calculating the behavior level. The setting data storage unit 9 stores the setting data obtained by the setting data calculation unit 8.

【0028】動作レベル演算手段10は、設定データ記
憶手段9に記憶された設定データに基づいて動作レベル
OPを算出する。なお、動作レベルOPは、検出信号が
オフ状態からオン状態に変化するときのオンレベルおよ
び検出信号がオン状態からオフ状態に変化するときのオ
フレベルからなる。
The operation level calculation means 10 calculates the operation level OP based on the setting data stored in the setting data storage means 9. The operation level OP includes an on level when the detection signal changes from the off state to the on state and an off level when the detection signal changes from the on state to the off state.

【0029】比較器11は、受光データ記憶手段5に記
憶された受光データVinを動作レベル演算手段10に
より得られた動作レベルOPと比較する。入光判定手段
12は、比較器11の比較結果に基づいて入光の有無を
判定する。出力制御手段13は、入光判定手段12の判
定結果を検出信号DETとして出力装置14を介して外
部に出力する。
The comparator 11 compares the received light data Vin stored in the received light data storage means 5 with the operation level OP obtained by the operation level calculation means 10. The light incident determination means 12 determines the presence or absence of light incident based on the comparison result of the comparator 11. The output control unit 13 outputs the determination result of the light incident determination unit 12 as a detection signal DET to the outside via the output device 14.

【0030】感度設定制御手段15は、設定データを更
新するための感度設定処理を行う。EEPROM制御手
段16は、感度設定処理により得られた設定データをE
EPROM(電気的に消去および書き込み可能なリード
オンリメモリ)17に書き込むためのEEPROM制御
処理を行う。
The sensitivity setting control means 15 performs sensitivity setting processing for updating the setting data. The EEPROM control means 16 sets the setting data obtained by the sensitivity setting processing to E
An EEPROM control process for writing to an EPROM (electrically erasable and writable read-only memory) 17 is performed.

【0031】動作モード切換入力手段18は、動作モー
ドを切り換えるための動作モード切換信号OSを出力制
御手段13に入力する。動作モードとは、例えば入光オ
ンモードおよび遮光オンモードである。入光オンモード
では、検出信号DETが入光時にオンし、遮光時にオフ
する。遮光オンモードでは、検出信号DETが遮光時に
オンし、入光時にオフする。
The operation mode switching input means 18 inputs an operation mode switching signal OS for switching the operation mode to the output control means 13. The operation modes are, for example, a light-on mode and a light-shielding on mode. In the light-on mode, the detection signal DET turns on when light enters and turns off when light is blocked. In the light-shielding on mode, the detection signal DET is turned on when light is shielded and is turned off when light is incident.

【0032】設定制御入力手段19は、感度設定を指令
するための設定制御信号CTを感度設定制御手段15に
入力する。この設定制御信号CTは、作業者が操作ボタ
ンを操作することにより入力されるか、あるいはシーケ
ンサ等の外部機器から与えられる。例えば、設定制御信
号CTが入力されている間、感度設定処理が行われても
よく、あるいは感度設定開始を示す設定制御信号CTの
入力により感度設定が開始され、感度設定終了を示す設
定制御信号CTの入力により感度設定が終了してもよ
い。
The setting control input means 19 inputs the setting control signal CT for instructing the sensitivity setting to the sensitivity setting control means 15. The setting control signal CT is input by an operator operating an operation button or is given from an external device such as a sequencer. For example, the sensitivity setting processing may be performed while the setting control signal CT is being input, or the sensitivity setting is started by the input of the setting control signal CT indicating the sensitivity setting start and the setting control signal indicating the sensitivity setting end. The sensitivity setting may be completed by inputting CT.

【0033】本実施例では、受光データ記憶手段5、サ
ンプリング手段6およびサンプリング値記憶手段7がサ
ンプリング手段を構成し、設定データ演算手段8が比較
手段を構成し、設定データ記憶手段9および動作レベル
演算手段10が動作レベル設定手段を構成する。
In this embodiment, the received light data storage means 5, the sampling means 6 and the sampling value storage means 7 constitute sampling means, the set data calculation means 8 constitutes comparison means, and the set data storage means 9 and the operation level. The calculation means 10 constitutes an operation level setting means.

【0034】次に、図2〜図5を参照しながら図1の光
電スイッチにおける位置決め用感度設定処理を説明す
る。図2は反射型の光電スイッチにおける位置決め用感
度設定の一例を示す図、図3は透過型の光電スイッチに
おける位置決め用感度設定の一例を示す図である。図2
および図3の例では、光電スイッチが入光オンモードに
設定されている。この場合、オンレベルが入光レベルに
対応し、オフレベルが遮光レベルに対応する。
Next, the positioning sensitivity setting process in the photoelectric switch of FIG. 1 will be described with reference to FIGS. FIG. 2 is a diagram showing an example of positioning sensitivity setting in a reflective photoelectric switch, and FIG. 3 is a diagram showing an example of positioning sensitivity setting in a transmissive photoelectric switch. FIG.
And in the example of FIG. 3, the photoelectric switch is set to the light-on mode. In this case, the on level corresponds to the incident light level and the off level corresponds to the light blocking level.

【0035】図2においては、光電スイッチのヘッド部
100が位置決め点PS2に配置され、図3において
は、光電スイッチの投光部100Aおよび受光部100
Bが位置決め点PS2に配置される。測定時には、被検
出物体110は矢印Xの方向に移動するものとする。図
2の例では、被検出物体110の移動により受光データ
Vinが「暗」から「明」の方向に変化する。図3の例
では、被検出物体110の移動により受光データVin
が「明」から「暗」の方向に変化する。
In FIG. 2, the head portion 100 of the photoelectric switch is arranged at the positioning point PS2, and in FIG. 3, the light projecting portion 100A and the light receiving portion 100 of the photoelectric switch are arranged.
B is located at the positioning point PS2. At the time of measurement, the detected object 110 is assumed to move in the direction of arrow X. In the example of FIG. 2, the received light data Vin changes from “dark” to “bright” due to the movement of the detected object 110. In the example of FIG. 3, the received light data Vin
Changes from "bright" to "dark".

【0036】感度設定時には、被検出物体110を位置
決め点PS2に位置させた時点およびその近傍の1点に
位置させた時点でそれぞれ設定制御信号CTを入力す
る。図2および図3の例では、被検出物体110の前端
が位置決め点PS2の直前の地点PS1に位置したとき
および被検出物体110の前端が位置決め点PS2に位
置したときにそれぞれ設定制御信号CTを入力する。そ
れにより、地点PS1での受光データVinおよび位置
決め点PS2での受光データVinがサンプリングされ
る。
When the sensitivity is set, the setting control signal CT is input at the time when the detected object 110 is positioned at the positioning point PS2 and at the time when it is positioned at one point in the vicinity thereof. In the example of FIGS. 2 and 3, the setting control signal CT is set when the front end of the detected object 110 is located at the point PS1 immediately before the positioning point PS2 and when the front end of the detected object 110 is located at the positioning point PS2. input. Thereby, the received light data Vin at the point PS1 and the received light data Vin at the positioning point PS2 are sampled.

【0037】図2の例では、位置決め点PS2での受光
データVinのレベルをオンレベルに設定し、そのオン
レベルから応差(ヒステリシス)に相当するレベル差H
YSを引いたレベルをオフレベルに設定する。一方、図
3の例では、位置決め点PS2での受光データVinの
レベルをオフレベルに設定し、そのオフレベルに応差に
相当するレベル差HYSを加えたレベルをオンレベルに
設定する。このような設定を行うためには、受光データ
Vinのレベルの変化方向および位置決め点PS2での
受光データVinの値を設定データとして記憶し、その
設定データに基づいてオンレベルおよびオフレベルを決
定する。
In the example of FIG. 2, the level of the received light data Vin at the positioning point PS2 is set to the on level, and the level difference H corresponding to the hysteresis (hysteresis) is set from the on level.
Set the level minus YS to the off level. On the other hand, in the example of FIG. 3, the level of the received light data Vin at the positioning point PS2 is set to the off level, and the level obtained by adding the level difference HYS corresponding to the hysteresis to the off level is set to the on level. In order to make such a setting, the changing direction of the level of the light reception data Vin and the value of the light reception data Vin at the positioning point PS2 are stored as setting data, and the on level and the off level are determined based on the setting data. .

【0038】図4および図5は図1の感度設定制御手段
15による位置決め用感度設定処理を示すフローチャー
トである。まず、設定制御入力手段19により入力され
る設定制御信号CTに基づいて感度設定を開始するか否
かを判別する(図4のステップS1)。例えば、設定制
御信号CTが入力されると感度設定を開始する。感度設
定を開始する場合には、受光データ記憶手段5に記憶さ
れる受光データVinが確定しているか否かを判別する
(ステップS2)。受光データVinが確定している場
合には、サンプリング手段6がその受光データVinを
1点目の受光データV1としてサンプリング値記憶手段
7に格納する(ステップS3)。
4 and 5 are flow charts showing the positioning sensitivity setting process by the sensitivity setting control means 15 of FIG. First, it is determined whether or not sensitivity setting is started based on the setting control signal CT input by the setting control input means 19 (step S1 in FIG. 4). For example, when the setting control signal CT is input, sensitivity setting is started. When the sensitivity setting is started, it is determined whether or not the received light data Vin stored in the received light data storage means 5 is fixed (step S2). When the received light data Vin is confirmed, the sampling means 6 stores the received light data Vin in the sampling value storage means 7 as the received light data V1 of the first point (step S3).

【0039】そして、設定制御入力手段19により入力
される設定制御信号CTに基づいて前半のサンプリング
を終了するか否かを判別する(ステップS4)。例え
ば、設定制御信号CTの入力が終了すると前半のサンプ
リングを終了する。前半のサンプリングを終了しない場
合には、ステップS1に戻り、ステップS1〜S3の処
理を繰り返す。
Then, based on the setting control signal CT inputted by the setting control input means 19, it is judged whether or not the first half sampling is ended (step S4). For example, when the input of the setting control signal CT is finished, the first half sampling is finished. When the sampling in the first half is not finished, the process returns to step S1 and the processes of steps S1 to S3 are repeated.

【0040】本実施例では、前半のサンプリングで図2
および図3の位置決め点PS2の直前の地点PS1の受
光データVinを1点目の受光データV1としてサンプ
リングする。
In this embodiment, the first half of the sampling shown in FIG.
Also, the received light data Vin at the point PS1 immediately before the positioning point PS2 in FIG. 3 is sampled as the received light data V1 at the first point.

【0041】なお、ノイズ等により受光量の変動がある
場合には、ステップS3において、例えば複数の受光デ
ータの平均値を求めることにより受光データを補正して
1点目の受光データV1としてもよい。
If there is a change in the amount of received light due to noise or the like, in step S3, the received light data may be corrected by obtaining the average value of a plurality of received light data to obtain the received light data V1 of the first point. .

【0042】前半のサンプリングの終了後、設定制御入
力手段19により入力される設定制御信号CTに基づい
て後半のサンプリングを開始するか否かを判別する(図
5のステップS5)。例えば、設定制御信号CTが入力
されると後半のサンプリングを開始する。後半のサンプ
リングを開始する場合には、受光データ記憶手段5に記
憶された受光データVinが確定しているか否かを判別
する(ステップS6)。受光データVinが確定してい
る場合には、サンプリング手段6がその受光データVi
nを2点目の受光データV2としてサンプリング値記憶
手段7に格納する(ステップS7)。
After the sampling of the first half is completed, it is determined whether to start the sampling of the second half based on the setting control signal CT input by the setting control input means 19 (step S5 in FIG. 5). For example, when the setting control signal CT is input, the latter half sampling is started. When the latter half sampling is started, it is determined whether or not the received light data Vin stored in the received light data storage means 5 is confirmed (step S6). When the received light data Vin is confirmed, the sampling means 6 causes the received light data Vi to be detected.
The value n is stored in the sampling value storage means 7 as the second received light data V2 (step S7).

【0043】そして、設定制御入力手段19により入力
される設定制御信号CTに基づいて後半のサンプリング
を終了するか否かを判別する(ステップS8)。例え
ば、設定制御信号CTの入力が終了すると後半のサンプ
リングを終了する。後半のサンプリングを終了しない場
合には、ステップS6に戻り、ステップS6,S7の処
理を繰り返す。
Then, based on the setting control signal CT inputted by the setting control input means 19, it is judged whether or not the latter half sampling is ended (step S8). For example, when the input of the setting control signal CT ends, the latter half sampling ends. When the latter half sampling is not ended, the process returns to step S6 and the processes of steps S6 and S7 are repeated.

【0044】本実施例では、後半のサンプリングで図2
および図3の位置決め点PS2の受光データVinを2
点目の受光データV2としてサンプリングする。なお、
ステップS7においても、例えば複数の受光データの平
均値を求めることにより受光データを補正して2点目の
受光データV2としてもよい。
In this embodiment, the latter half of the sampling shown in FIG.
And the received light data Vin at the positioning point PS2 in FIG.
Sampling is performed as the second light reception data V2. In addition,
Also in step S7, the received light data may be corrected to obtain the received light data V2 of the second point by, for example, obtaining an average value of a plurality of received light data.

【0045】後半のサンプリングの終了後、設定データ
を更新するか否かを判別する(ステップS9)。設定デ
ータを更新する場合には、設定データ演算手段8が設定
データとして1点目の受光データV1と2点目の受光デ
ータV2の大小関係および2点目の受光データV2の値
を設定データ記憶手段9に格納する(ステップS1
0)。その後、ステップS1に戻る。
After the latter half sampling is completed, it is judged whether or not the setting data is updated (step S9). When the setting data is updated, the setting data calculating means 8 stores the size relation between the first received light data V1 and the second received light data V2 and the value of the second received light data V2 as the setting data. Stored in the means 9 (step S1)
0). Then, the process returns to step S1.

【0046】図6は図1の動作レベル演算手段10によ
る動作レベル生成処理を示すフローチャートである。ま
ず、設定データ記憶手段9に記憶される設定データが確
定してるか否かを判別する(ステップS11)。ここ
で、ノイズ等を考慮して設定データを補正してもよい。
設定データが確定している場合には、2点目の受光デー
タV2が1点目の受光データV1よりも大きいか否かを
判別する(ステップS12)。
FIG. 6 is a flow chart showing the operation level generation processing by the operation level calculation means 10 of FIG. First, it is determined whether or not the setting data stored in the setting data storage means 9 is confirmed (step S11). Here, the setting data may be corrected in consideration of noise or the like.
When the setting data is confirmed, it is determined whether or not the light reception data V2 at the second point is larger than the light reception data V1 at the first point (step S12).

【0047】2点目の受光データV2が1点目の受光デ
ータV1よりも大きい場合には、受光データVinが
「暗」から「明」の方向に変化していると判定し、動作
レベルをV2およびV2−HYSとする(ステップS1
3)。すなわち、図2のように入光オンモードでは、オ
ンレベルが位置決め点Cでの受光データVinのレベル
に設定され、オフレベルがそれよりもHYSだけ低いレ
ベルに設定される。
When the light reception data V2 at the second point is larger than the light reception data V1 at the first point, it is determined that the light reception data Vin is changing from "dark" to "bright", and the operation level is changed. V2 and V2-HYS (step S1
3). That is, in the light incident on mode as shown in FIG. 2, the on level is set to the level of the received light data Vin at the positioning point C, and the off level is set to a level lower by HYS.

【0048】2点目の受光データV2が1点目の受光デ
ータV1以下の場合には、受光データVinが「明」か
ら「暗」の方向に変化していると判定し、動作レベルを
V2+HYSおよびV2とする(ステップS14)。す
なわち、図3のように入光オンモードでは、オフレベル
が位置決め点Cでの受光データVinのレベルに設定さ
れ、オンレベルがそれよりもHYSだけ高いレベルに設
定される。
When the light reception data V2 at the second point is less than or equal to the light reception data V1 at the first point, it is determined that the light reception data Vin is changing from "bright" to "dark", and the operation level is V2 + HYS. And V2 (step S14). That is, as shown in FIG. 3, in the light-on mode, the off level is set to the level of the light reception data Vin at the positioning point C, and the on level is set to a level higher by HYS.

【0049】このように、受光データVinが「暗」か
ら「明」の方向に変化する場合でも、受光データVin
が「明」から「暗」の方向に変化する場合でも、位置決
め点PS2で検出信号DETの状態が変化するように動
作レベルを設定することができる。したがって、作業者
の技量や勘に頼ることなく、短時間の作業で、また光電
スイッチの動作モードに関係なく、被検出物体の正確な
位置決めおよび位置検出が可能となる。
Thus, even when the received light data Vin changes from "dark" to "bright", the received light data Vin
Even when changes from “bright” to “dark”, the operation level can be set so that the state of the detection signal DET changes at the positioning point PS2. Therefore, it is possible to perform accurate positioning and position detection of the detected object in a short time without depending on the skill and intuition of the operator and regardless of the operation mode of the photoelectric switch.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例における光電スイッチの構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a photoelectric switch according to an embodiment of the present invention.

【図2】図1の光電スイッチにおいて受光量が「暗」か
ら「明」に変化する場合の位置決め用感度設定を示す図
である。
FIG. 2 is a diagram showing positioning sensitivity setting when the amount of received light changes from “dark” to “bright” in the photoelectric switch of FIG.

【図3】図1の光電スイッチにおいて受光量が「明」か
ら「暗」に変化する場合の位置決め用感度設定を示す図
である。
3 is a diagram showing positioning sensitivity setting when the amount of received light changes from "bright" to "dark" in the photoelectric switch of FIG.

【図4】図1の光電スイッチにおける位置決め用感度設
定処理を示すフローチャートである。
FIG. 4 is a flowchart showing a positioning sensitivity setting process in the photoelectric switch of FIG.

【図5】図1の光電スイッチにおける位置決め用感度設
定処理を示すフローチャートである。
5 is a flowchart showing a positioning sensitivity setting process in the photoelectric switch of FIG.

【図6】図1の光電スイッチにおける動作レベル生成処
理を示すフローチャートである。
6 is a flowchart showing an operation level generation process in the photoelectric switch of FIG.

【図7】位置決め点での受光レベルがオンレベルとオフ
レベルとの間にある従来の位置決め用感度設定を示す図
である。
FIG. 7 is a diagram showing a conventional positioning sensitivity setting in which a light receiving level at a positioning point is between an on level and an off level.

【図8】受光量の変化の方向を考慮しない従来の位置決
め用感度設定を示す図である。
FIG. 8 is a diagram showing a conventional positioning sensitivity setting that does not consider the direction of change in the amount of received light.

【図9】光軸を絞らない場合における従来の光電スイッ
チにおける位置決め用感度設定を示す図である。
FIG. 9 is a diagram showing positioning sensitivity setting in the conventional photoelectric switch when the optical axis is not narrowed.

【図10】光量を絞った場合における従来の光電スイッ
チにおける位置決用め感度設定を示す図である。
FIG. 10 is a diagram showing setting sensitivity for position determination in the conventional photoelectric switch when the amount of light is narrowed.

【符号の説明】[Explanation of symbols]

1 主制御手段 2 投光回路 3 受光・増幅回路 4 A/D変換器 5 受光データ記憶手段 6 サンプリング手段 7 サンプリング値記憶手段 8 設定データ演算手段 9 設定データ記憶手段 10 動作レベル演算手段 11 比較器 12 入光判定手段 13 出力制御手段 14 出力装置 15 感度設定制御手段 16 EEPROM制御手段 17 EEPROM 18 動作モード切替入力手段 19 設定制御入力手段 1 Main Control Means 2 Light Emitting Circuit 3 Light Reception / Amplification Circuit 4 A / D Converter 5 Light Reception Data Storage Means 6 Sampling Means 7 Sampling Value Storage Means 8 Setting Data Calculating Means 9 Setting Data Means 10 Operating Level Calculating Means 11 Comparators 12 Light Input Determining Means 13 Output Control Means 14 Output Device 15 Sensitivity Setting Control Means 16 EEPROM Control Means 17 EEPROM 18 Operation Mode Switching Input Means 19 Setting Control Input Means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 光を検知領域に投射しその透過光または
反射光を受光し、受光量を入光検出のための第1の動作
レベルおよび遮光検出のための第2の動作レベルと比較
することにより物体の有無を検出し、検出結果を示す検
出信号を出力する光電スイッチであって、 前記検出信号を変化させるべき状態で与えられる第1の
指令および他の状態で与えられる第2の指令に応答して
それぞれ第1および第2の受光量を検出するサンプリン
グ手段と、 前記サンプリング手段により検出された前記第1の受光
量と前記第2の受光量とを比較する比較手段と、 前記比較手段の比較結果および前記第1の受光量に基づ
いて前記第1および第2の動作レベルを設定する動作レ
ベル設定手段とを備えたことを特徴とする光電スイッ
チ。
1. A light is projected onto a detection region, and its transmitted light or reflected light is received, and the amount of received light is compared with a first operation level for detecting incident light and a second operation level for detecting light shielding. A photoelectric switch that detects the presence or absence of an object and outputs a detection signal indicating a detection result by a first command given in a state in which the detection signal should be changed and a second command given in another state. In response to each of the first and second received light quantities, a sampling means, a comparison means for comparing the first received light quantity and the second received light quantity detected by the sampling means, and the comparison means. A photoelectric switch comprising: an operation level setting means for setting the first and second operation levels based on a comparison result of the means and the first received light amount.
【請求項2】 前記動作レベル設定手段は、前記比較手
段の比較結果に基づいて前記第1の受光量が増加する方
向にあるか減少する方向にあるかを判定し、前記第1の
受光量が増加する方向にあるときに前記第1の受光量お
よび前記第1の受光量から所定の値を引いた値をそれぞ
れ前記第1および第2の動作レベルとし、前記第1の受
光量が減少する方向にあるときに前記第1の受光量に所
定の値を加えた値および前記第1の受光量をそれぞれ前
記第1および第2の動作レベルとすることを特徴とする
請求項2記載の光電スイッチ。
2. The operation level setting means determines, based on a comparison result of the comparison means, whether the first received light amount is increasing or decreasing, and the first received light amount is determined. The first received light amount and a value obtained by subtracting a predetermined value from the first received light amount are set as the first and second operation levels, respectively, and the first received light amount decreases. 3. The value obtained by adding a predetermined value to the first amount of received light and the first amount of received light are set as the first and second operation levels, respectively, when they are in the direction of movement. Photoelectric switch.
【請求項3】 前記検出信号を変化させるべき状態は、
前記物体の検出されるべき箇所が位置決めすべき点に位
置する状態であり、前記他の状態は、前記物体の検出さ
れるべき箇所が前記位置決めすべき点とは異なる点に位
置する状態であることを特徴とする請求項1または2記
載の光電スイッチ。
3. A state in which the detection signal should be changed is
The position of the object to be detected is located at a point to be positioned, and the other state is a position of the object to be detected at a position different from the position to be positioned. The photoelectric switch according to claim 1 or 2, characterized in that.
JP32766095A 1995-12-15 1995-12-15 Photoelectric switch Pending JPH09167952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32766095A JPH09167952A (en) 1995-12-15 1995-12-15 Photoelectric switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32766095A JPH09167952A (en) 1995-12-15 1995-12-15 Photoelectric switch

Publications (1)

Publication Number Publication Date
JPH09167952A true JPH09167952A (en) 1997-06-24

Family

ID=18201548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32766095A Pending JPH09167952A (en) 1995-12-15 1995-12-15 Photoelectric switch

Country Status (1)

Country Link
JP (1) JPH09167952A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003069407A (en) * 2001-08-28 2003-03-07 Sunx Ltd Sensor with sensitivity setting function
CN109922730A (en) * 2016-10-25 2019-06-21 豪夫迈·罗氏有限公司 For determining the method and analyte concentration measurement equipment of the analyte concentration in body fluid

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003069407A (en) * 2001-08-28 2003-03-07 Sunx Ltd Sensor with sensitivity setting function
JP4683790B2 (en) * 2001-08-28 2011-05-18 パナソニック電工Sunx株式会社 Sensor with sensitivity setting function
CN109922730A (en) * 2016-10-25 2019-06-21 豪夫迈·罗氏有限公司 For determining the method and analyte concentration measurement equipment of the analyte concentration in body fluid
JP2020500300A (en) * 2016-10-25 2020-01-09 エフ ホフマン−ラ ロッシュ アクチェン ゲゼルシャフト Method for determining the concentration of an analyte in a body fluid and an apparatus for measuring the concentration of an analyte
US11284817B2 (en) 2016-10-25 2022-03-29 Roche Diabetes Care, Inc. Method for determination of an analyte concentration in a body fluid and analyte concentration measurement device

Similar Documents

Publication Publication Date Title
JP3223420B2 (en) Detection switch
JPS62236273A (en) Black level correcting circuit for video camera
JPS58113807A (en) Distance measuring device
US5255045A (en) Camera system having distance measuring apparatus
JPH0714970Y2 (en) Automatic focus adjustment device
JPH09167952A (en) Photoelectric switch
US4573783A (en) Focusing controlling device
JP4683790B2 (en) Sensor with sensitivity setting function
JP3632103B2 (en) Photoelectric switch
JP3482285B2 (en) Photoelectric switch
JPH0360517A (en) Automatic sensitivity adjusting method for photoelectric switch
JP3329742B2 (en) Detection switch device
JP2958371B2 (en) Device for adjusting operating condition of photoelectric sensor and method for adjusting operating condition thereof
JP2003032093A (en) Detection switch system
JPH09232934A (en) Photoelectric switch
JP2892463B2 (en) Analog instrument automatic calibration system
JPH09167951A (en) Photoelectric switch
EP1237011A1 (en) Optoelectronic distance measurement device
JPH03293541A (en) Control circuit for light detection sensor
JP3408310B2 (en) Camera ranging device
JPH0798223A (en) Range finder
JPH09189522A (en) Optical dimension-measuring device
JP2024072169A (en) Distance measuring device, distance correction method, and distance measuring program
JP2970250B2 (en) Distance measuring device
JP5007181B2 (en) Automatic calibration method of detection level in measuring part of shutter tester