JPH08330931A - Detection switch - Google Patents

Detection switch

Info

Publication number
JPH08330931A
JPH08330931A JP15838395A JP15838395A JPH08330931A JP H08330931 A JPH08330931 A JP H08330931A JP 15838395 A JP15838395 A JP 15838395A JP 15838395 A JP15838395 A JP 15838395A JP H08330931 A JPH08330931 A JP H08330931A
Authority
JP
Japan
Prior art keywords
level
threshold
input
detection
threshold value
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
JP15838395A
Other languages
Japanese (ja)
Other versions
JP3440393B2 (en
Inventor
Nobuharu Ishikawa
展玄 石川
Arata Nakamura
新 中村
Hayami Hosokawa
速美 細川
Shinji Mizuhata
伸治 水畑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP15838395A priority Critical patent/JP3440393B2/en
Publication of JPH08330931A publication Critical patent/JPH08330931A/en
Application granted granted Critical
Publication of JP3440393B2 publication Critical patent/JP3440393B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To provide a detection switch which can set the proper threshold value by setting both threshold ON and OFF levels and also setting the center value between both threshold levels at a level lower than the arithmetical mean value of input levels. CONSTITUTION: The geometrical mean value is set at a level lower than the arithmetical mean value of both input levels V1 and V2 as the virtual center value. This geometrical mean value is equivalent to the equal level ratios set between 0 level and the center value Vceng. Then both threshold value Vthon and Vthoff are set with margins of the same width to the value Vceng. Thereby, the center value set between ON and OFF levels of the threshold value for detection of an object is set at a level lower than the arithmetical mean value of input levels set in two teaching modes. As a result, the substantially equal margins are secured among the signals of such types that have the input level variances which are frequently proportional to the absolute value of these input levels. Thus the input level variances can be stably detected.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は光電スイッチや光沢スイ
ッチ,磁気スイッチ,超音波スイッチ等の電子的な検出
スイッチに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to electronic detection switches such as photoelectric switches, gloss switches, magnetic switches and ultrasonic switches.

【0002】[0002]

【従来の技術】従来電子スイッチ、例えば光電スイッチ
等では、物体の有無を判別するため光を物体検知領域に
照射し、その反射光のレベルに基づいて物体の有無を判
別している。そして物体と背景又は2つの物体を識別す
るためには、あらかじめティーチングを行い、検出すべ
き物体を所定の位置に配置した状態でその反射光のレベ
ルを判別して一旦保持し、更にこれと識別する背景や他
の物体を配置した状態でティーチングを行ってその入力
レベルを保持し、それらの中間値に閾値を設定して実際
の物体の有無を判別するように構成されている。
2. Description of the Related Art In a conventional electronic switch such as a photoelectric switch, light is applied to an object detection area to determine the presence or absence of an object, and the presence or absence of the object is determined based on the level of the reflected light. Then, in order to distinguish the object from the background or two objects, teaching is performed in advance, the level of the reflected light is judged while the object to be detected is arranged at a predetermined position, and the object is once held, and further distinguished from this. It is configured such that teaching is performed with the background and other objects arranged, the input level is held, and a threshold value is set to an intermediate value between them to determine the presence or absence of an actual object.

【0003】図9(a)は従来の2つの入力レベルV
1,V2とそのばらつき範囲を示しており、更にこの入
力レベルに基づいて設定した検出レベルVthon,非検出
レベルVthoff 及びその上下に設定される安定検出レベ
ルVston,安定非検出レベルVstoff を示している。従
来の閾値の設定方法では、2つの入力レベルV1とV2
の中間点に相加平均(V1+V2)/2の中心値Vc を
設定し、その上下に同一の幅でヒステリシス幅を設けて
検出レベルVthon,非検出レベルVthoff を設定し、更
にその上下に同一の幅で安定検出レベルVstonと非安定
検出レベルVstoff とを設定するようにしていた。
FIG. 9A shows two conventional input levels V.
1, V2 and their variation ranges are shown. Further, the detection level Vth on and the non-detection level Vth off set based on the input level and the stable detection level Vst on and the stable non-detection level Vst off set above and below the detection level Vth on and the non-detection level Vth off are shown. Is shown. In the conventional threshold setting method, there are two input levels V1 and V2.
The central value Vc of the arithmetic mean (V1 + V2) / 2 is set to the middle point of the above, and the detection level Vth on and the non-detection level Vth off are set by providing a hysteresis width with the same width above and below the value. The stable detection level Vst on and the unstable detection level Vst off are set within the same width.

【0004】[0004]

【発明が解決しようとする課題】しかしながらこのよう
な従来の検出スイッチにおける閾値の設定方法では、最
適な閾値が設定されたものではなかった。これは2つの
入力レベルのばらつきが生じるが、そのばらつきのレベ
ルは入力レベルに依存しており、入力レベルが高ければ
ばらつきも大きい。ここで第1,第2の入力データV
1,V2のばらつき範囲を図9において夫々V1d,V
2dとする。このようなばらつきを考えると、このよう
な入力レベルV1のばらつきの上限値と非検出レベルV
thoff のレベルの差a1と、入力レベルV2のばらつき
の下限値と検出レベルVthonの差a2との差が大きかっ
た。又入力レベルV1のばらつきの上限値と安定非検出
レベルVstoff のレベルの差b1と、入力レベルV2の
ばらつきの下限値と安定検出レベルVstonのレベル差b
2の差も大きい。従って入力レベルのばらつきに対して
閾値の設定が不適当であるという欠点があった。このた
め実質的な余裕度が等しくなく、適切な閾値の設定レベ
ルでないという欠点があった。
However, in such a conventional threshold value setting method for the detection switch, the optimum threshold value is not set. This causes two input level variations, but the level of the variation depends on the input level, and the higher the input level, the greater the variation. Here, the first and second input data V
The variation ranges of V1 and V2 are V1d and V in FIG. 9, respectively.
2d. Considering such variations, the upper limit value of such variations of the input level V1 and the non-detection level V
The difference between the level a1 of th off and the difference a2 between the lower limit of the variation of the input level V2 and the detection level Vth on was large. Further, the difference b1 between the upper limit of the variation of the input level V1 and the stable non-detection level Vst off , and the difference b1 between the lower limit of the variation of the input level V2 and the stable detection level Vst on b
The difference between 2 is also large. Therefore, there is a drawback that the setting of the threshold value is inappropriate for the variation of the input level. For this reason, there is a drawback that the substantial margins are not equal and the threshold level is not set appropriately.

【0005】本発明はこのような従来の問題点に鑑みて
なされたものであって、適切な閾値を設定することがで
きる検出スイッチを提供することを目的とする。
The present invention has been made in view of such conventional problems, and an object thereof is to provide a detection switch capable of setting an appropriate threshold value.

【0006】[0006]

【課題を解決するための手段】本願の請求項1の発明
は、物理状態に対応したレベルを検出する検出手段と、
閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、検出モードにおいて前記閾値
設定手段によって設定された閾値と前記検出手段からの
入力とを比較することにより、前記二つの状態を識別す
る弁別手段と、を具備する検出スイッチにおいて、前記
閾値設定手段は、前記第1の入力レベルと第2の入力レ
ベルとの間に閾値オンレベルと閾値オフレベルとを設定
し、該閾値オンレベルと閾値オフレベルの中心値を前記
第1,第2の入力レベルの相加平均値より低いレベルと
したことを特徴とするものである。
According to the invention of claim 1 of the present application, a detecting means for detecting a level corresponding to a physical state,
Threshold setting means for inputting in advance the first and second input levels obtained from the detecting means for two physical states to be distinguished in the threshold setting mode, and setting the threshold based on the input level; In the detection switch, which comprises a discriminating means for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means, the threshold value setting means includes: A threshold on level and a threshold off level are set between the first input level and the second input level, and the central value of the threshold on level and the threshold off level is added to the first and second input levels. The feature is that the level is lower than the average value.

【0007】本願の請求項2の発明は、物理状態に対応
したレベルを検出する検出手段と、閾値設定モードにお
いて識別すべき二つの物理状態に対して前記検出手段か
ら得られる第1,第2の入力レベルをあらかじめ入力
し、その入力レベルに基づいた閾値を設定する閾値設定
手段と、検出モードにおいて前記閾値設定手段によって
設定された閾値と前記検出手段からの入力とを比較する
ことにより、前記二つの状態を識別する弁別手段と、を
具備する検出スイッチにおいて、前記閾値設定手段は、
前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相乗平均値としたことを特徴とするものであ
る。
According to the invention of claim 2 of the present application, the detecting means for detecting the level corresponding to the physical state and the first and the second obtained from the detecting means for the two physical states to be distinguished in the threshold setting mode. By previously inputting the input level of, the threshold setting means for setting the threshold based on the input level, by comparing the threshold set by the threshold setting means in the detection mode and the input from the detecting means, In the detection switch, which comprises a discriminating means for discriminating two states, the threshold setting means,
A threshold on level and a threshold off level are set between the first input level and the second input level, and a central value of the threshold on level and the threshold off level is set to the first and second input levels. It is characterized in that it is a geometric mean value.

【0008】本願の請求項3の発明は、物理状態に対応
したレベルを検出する検出手段と、閾値設定モードにお
いて識別すべき二つの物理状態に対して前記検出手段か
ら得られる第1,第2の入力レベルをあらかじめ入力
し、その入力レベルに基づいた閾値を設定する閾値設定
手段と、検出モードにおいて前記閾値設定手段によって
設定された閾値と前記検出手段からの入力とを比較する
ことにより、前記二つの状態を識別する弁別手段と、を
具備する検出スイッチにおいて、前記閾値設定手段は、
前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相乗平均値とし、閾値オンレベルと該中心値及
び閾値オフレベルと該中心値までのレベル差を前記入力
レベルの比で振り分けて設定することを特徴とするもの
である。
According to a third aspect of the present invention, the detecting means for detecting the level corresponding to the physical state, and the first and the second obtained from the detecting means for the two physical states to be distinguished in the threshold setting mode. By previously inputting the input level of, the threshold setting means for setting the threshold based on the input level, by comparing the threshold set by the threshold setting means in the detection mode and the input from the detecting means, In the detection switch, which comprises a discriminating means for discriminating two states, the threshold setting means,
A threshold on level and a threshold off level are set between the first input level and the second input level, and a central value of the threshold on level and the threshold off level is set to the first and second input levels. As a geometric mean value, the threshold on level and the center value, and the threshold value off level and the level difference up to the center value are distributed and set by the ratio of the input level.

【0009】本願の請求項4の発明は、物理状態に対応
したレベルを検出する検出手段と、閾値設定モードにお
いて識別すべき二つの物理状態に対して前記検出手段か
ら得られる第1,第2の入力レベルをあらかじめ入力
し、その入力レベルに基づいた閾値を設定する閾値設定
手段と、検出モードにおいて前記閾値設定手段によって
設定された閾値と前記検出手段からの入力とを比較する
ことにより、前記二つの状態を識別する弁別手段と、を
具備する検出スイッチにおいて、前記閾値設定手段は、
前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相加平均値より低いレベルとし、閾値オンレベ
ルとこれに近い第1,第2のいずれかの入力レベルとの
差と、閾値オフレベルと他方の入力レベルとの差を夫々
その入力レベルの比で振り分けるように閾値オンレベル
及び閾値オフレベルを設定したことを特徴とするもので
ある。
According to a fourth aspect of the present invention, a detecting means for detecting a level corresponding to a physical state and two first and second physical states to be discriminated in the threshold setting mode are obtained from the detecting means. By previously inputting the input level of, the threshold setting means for setting the threshold based on the input level, by comparing the threshold set by the threshold setting means in the detection mode and the input from the detecting means, In the detection switch, which comprises a discriminating means for discriminating two states, the threshold setting means,
A threshold on level and a threshold off level are set between the first input level and the second input level, and a central value of the threshold on level and the threshold off level is set to the first and second input levels. The level is lower than the arithmetic mean value, and the difference between the threshold on level and either one of the first and second input levels close thereto and the difference between the threshold off level and the other input level are the ratios of the respective input levels. It is characterized in that the threshold on level and the threshold off level are set so as to be distributed by.

【0010】本願の請求項5の発明は、物理状態に対応
したレベルを検出する検出手段と、閾値設定モードにお
いて識別すべき二つの物理状態に対して前記検出手段か
ら得られる第1,第2の入力レベルをあらかじめ入力
し、その入力レベルに基づいた閾値を設定する閾値設定
手段と、検出モードにおいて前記閾値設定手段によって
設定された閾値と前記検出手段からの入力とを比較する
ことにより、前記二つの状態を識別する弁別手段と、を
具備する検出スイッチにおいて、前記閾値設定手段は、
閾値オンレベルと閾値オフレベルとの第1,第2の入力
レベルの相加平均値からのレベル差を入力レベルの逆比
によって振り分けるように閾値オンレベル及び閾値オフ
レベルを設定したことを特徴とするものである。
According to a fifth aspect of the present invention, a detecting means for detecting a level corresponding to a physical state and two first and second physical states to be distinguished in the threshold setting mode are obtained from the detecting means. By previously inputting the input level of, the threshold setting means for setting the threshold based on the input level, by comparing the threshold set by the threshold setting means in the detection mode and the input from the detecting means, In the detection switch, which comprises a discriminating means for discriminating two states, the threshold setting means,
The threshold on level and the threshold off level are set so that the level difference from the arithmetic mean value of the first and second input levels between the threshold on level and the threshold off level is distributed according to the inverse ratio of the input level. To do.

【0011】本願の請求項6の発明は、物理状態に対応
したレベルを検出する検出手段と、閾値設定モードにお
いて識別すべき二つの物理状態に対して前記検出手段か
ら得られる第1,第2の入力レベルをあらかじめ入力
し、その入力レベルに基づいた閾値を設定する閾値設定
手段と、検出モードにおいて前記閾値設定手段によって
設定された閾値と前記検出手段からの入力とを比較する
ことにより、前記二つの状態を識別する弁別手段と、を
具備する検出スイッチにおいて、前記閾値設定手段は、
前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相加平均値より低いレベルとし、閾値オンレベ
ルと閾値オフレベルとを夫々前記第1,第2の入力レベ
ルの定数倍及び該定数の逆数倍のレベルに設定したこと
を特徴とするものである。
According to a sixth aspect of the present invention, the detecting means for detecting the level corresponding to the physical state and the first and the second obtained from the detecting means for the two physical states to be distinguished in the threshold setting mode. By previously inputting the input level of, the threshold setting means for setting the threshold based on the input level, by comparing the threshold set by the threshold setting means in the detection mode and the input from the detecting means, In the detection switch, which comprises a discriminating means for discriminating two states, the threshold setting means,
A threshold on level and a threshold off level are set between the first input level and the second input level, and a central value of the threshold on level and the threshold off level is set to the first and second input levels. It is characterized in that the level is lower than the arithmetic mean value, and the threshold on level and the threshold off level are set to a constant multiple of the first and second input levels and a reciprocal multiple of the constant, respectively. is there.

【0012】本願の請求項7の発明は、物理状態に対応
したレベルを検出する検出手段と、閾値設定モードにお
いて識別すべき二つの物理状態に対して前記検出手段か
ら得られる第1,第2の入力レベルをあらかじめ入力
し、その入力レベルに基づいた閾値を設定する閾値設定
手段と、検出モードにおいて前記閾値設定手段によって
設定された閾値と前記検出手段からの入力とを比較する
ことにより、前記二つの状態を識別する弁別手段と、を
具備する検出スイッチにおいて、前記閾値設定手段は、
閾値オンレベルをこれに近い前記第1,第2の入力レベ
ルのいずれか一方の一定割合分低いレベルに設定し、閾
値オフレベルを他方の入力レベルの前記一定割合分高い
レベルに設定したことを特徴とするものである。
According to a seventh aspect of the present invention, a detecting means for detecting a level corresponding to a physical state and two first and second physical states to be identified in the threshold setting mode are obtained from the detecting means. By previously inputting the input level of, the threshold setting means for setting the threshold based on the input level, by comparing the threshold set by the threshold setting means in the detection mode and the input from the detecting means, In the detection switch, which comprises a discriminating means for discriminating two states, the threshold setting means,
The threshold on-level is set to a level lower by a certain percentage of one of the first and second input levels close thereto, and the threshold off-level is set to a level higher by the certain percentage of the other input level. It is a feature.

【0013】本願の請求項8の発明では、前記閾値設定
手段による閾値オンレベルは物体の検出信号を出力する
検出レベルであり、前記閾値オフレベルは物体の非検出
を出力する非検出レベルであり、前記検出レベルに対し
て安定検出レベルを、非検出レベルに対する安定非検出
レベルを、夫々同一のレベル差に設定する安定レベル検
出手段を更に有することを特徴とするものである。
In the invention of claim 8 of the present application, the threshold on-level by the threshold setting means is a detection level for outputting a detection signal of an object, and the threshold off-level is a non-detection level for outputting non-detection of an object. A stable level detecting means for setting the stable detection level for the detection level and the stable non-detection level for the non-detection level to the same level difference is further provided.

【0014】本願の請求項9の発明では、前記閾値設定
手段による閾値オンレベルは物体を検出信号を出力する
検出レベルであり、前記閾値オフレベルは物体の非検出
を出力する非検出レベルであり、前記検出レベルと非検
出レベルとの上下に、夫々前記第1,第2の入力レベル
のうちより高い入力レベルと他方の入力レベルとの比で
振り分けられた安定検出レベルと安定非検出レベルとを
設定する安定レベル設定手段を更に有することを特徴と
するものである。
According to a ninth aspect of the present invention, the threshold on-level by the threshold setting means is a detection level for outputting a detection signal of an object, and the threshold off-level is a non-detection level for outputting non-detection of the object. , A stable detection level and a stable non-detection level above and below the detection level and the non-detection level, respectively, which are distributed by the ratio of the higher input level of the first and second input levels to the other input level. Is further provided with a stable level setting means.

【0015】[0015]

【作用】このような特徴を有する本願の請求項1〜9の
発明によれば、検出レベルや安定検出レベル等の閾値オ
ンレベルと非検出レベルや安定非検出レベル等の閾値オ
フレベルとの中心値を入力レベルの相加平均値より低い
レベルに設定している。検出スイッチの多くの検出手段
からの入力はそのデータのばらつきは入力レベルの絶対
値に対応して大きくなることが多く、このような種々の
検出スイッチからの入力信号に基づいて閾値を設定する
場合に入力レベルのレベルに対応させて閾値を設定する
ことにより、第1,第2の入力レベルのばらつきに対す
る閾値オンレベルとオフレベルの余裕が夫々ほぼ等しく
できることとなる。
According to the inventions of claims 1 to 9 having the above characteristics, the center of the threshold on level such as the detection level or the stable detection level and the threshold off level such as the non-detection level or the stable non-detection level. The value is set to a level lower than the arithmetic average value of the input level. The input from many detection means of the detection switch often has a large variation in the data corresponding to the absolute value of the input level, and when the threshold value is set based on the input signals from such various detection switches. By setting the threshold value corresponding to the input level, the margins of the threshold on level and the off level with respect to the variations of the first and second input levels can be made substantially equal to each other.

【0016】[0016]

【実施例】図1は本発明の一実施例による光学式センサ
装置の全体構成を示すブロック図である。本図において
この光学式センサ装置1は信号処理部2とヘッド部3か
ら成り立っている。信号処理部2は所定周期毎に投光素
子4を駆動する投光回路5と、受光素子6,7に接続さ
れたS側受光回路8及びP側受光回路9を有している。
受光回路8,9は夫々S偏光成分及びP偏光成分の光を
受光する受光回路であって、その出力はマイクロコンピ
ュータ(CPU)10に与えられる。マイクロコンピュ
ータ10には発振回路11,電源12,モード切換スイ
ッチ13,感度設定ボタン14が接続され、メモリとし
てEEPROM15,出力回路16が接続されている。
マイクロコンピュータ10は後述するようにこれらの入
力に基づいて所定のタイミングで投光素子5を周期的に
駆動し、受光信号によって閾値を設定して物体の表面状
態の変化を検出するものである。出力回路16は物体を
検知して検出出力を出すと共に、物体検知の安定/非安
定状態を検出して安定/非安定出力を出すものである。
1 is a block diagram showing the overall construction of an optical sensor device according to an embodiment of the present invention. In this figure, the optical sensor device 1 comprises a signal processing unit 2 and a head unit 3. The signal processing unit 2 has a light projecting circuit 5 that drives the light projecting element 4 at predetermined intervals, and an S-side light receiving circuit 8 and a P-side light receiving circuit 9 connected to the light receiving elements 6 and 7.
The light receiving circuits 8 and 9 are light receiving circuits for receiving the light of the S-polarized component and the light of the P-polarized component, respectively, and their outputs are given to the microcomputer (CPU) 10. An oscillator circuit 11, a power supply 12, a mode changeover switch 13, and a sensitivity setting button 14 are connected to the microcomputer 10, and an EEPROM 15 as a memory and an output circuit 16 are connected.
As will be described later, the microcomputer 10 periodically drives the light projecting element 5 at a predetermined timing based on these inputs, sets a threshold value by a light receiving signal, and detects a change in the surface state of the object. The output circuit 16 detects an object and outputs a detection output, and also detects a stable / unstable state of object detection and outputs a stable / unstable output.

【0017】次にヘッド部3の構成について説明する。
信号処理部2とヘッド部3との間は3本の光ファイバ2
1〜23で接続される。光ファイバ21は投光素子4に
一端が接続された投光用の光ファイバであって、そのヘ
ッド側端部にはフィルタ24を介してレンズ25が配置
される。フィルタ24はS偏光成分のみを出力する偏光
フィルタである。そして受光側にはこの照射された光の
反射光を受光する位置に偏光ビームスプリッタ26が配
置される。偏光ビームスプリッタ26は受光した光をS
偏光成分とP偏光成分とに分離するビームスプリッタで
あり、S偏光成分は受光用光ファイバ22に、P偏光成
分は受光用光ファイバ23に入射される。受光用光ファ
イバ22,23の他端は夫々信号処理部2の受光素子6
及び7に接続されている。
Next, the structure of the head portion 3 will be described.
Three optical fibers 2 are provided between the signal processing unit 2 and the head unit 3.
1 to 23 are connected. The optical fiber 21 is an optical fiber for projecting light, one end of which is connected to the projecting element 4, and a lens 25 is arranged at an end portion on the head side thereof via a filter 24. The filter 24 is a polarization filter that outputs only the S-polarized component. On the light receiving side, the polarization beam splitter 26 is arranged at a position for receiving the reflected light of the emitted light. The polarization beam splitter 26 converts the received light into S
It is a beam splitter that separates a polarized light component and a P polarized light component. The S polarized light component is incident on the light receiving optical fiber 22 and the P polarized light component is incident on the light receiving optical fiber 23. The other ends of the optical fibers 22 and 23 for receiving light are respectively the light receiving elements 6 of the signal processing unit 2.
And 7 are connected.

【0018】さてモード切換スイッチ13はランモード
とティーチモードとを切換えるスイッチである。ティー
チモードは、感度設定ボタン14が投入される毎に一対
の受光素子から得られる受光回路の出力をA/D変換し
てマイクロコンピュータ10に取込み、その値により後
述する評価関数の係数及び閾値オンレベルと閾値オフレ
ベルを設定するための閾値設定モードである。又ランモ
ードはティーチモードで設定した検出レベル及び非検出
レベルと現在の信号レベルとを比較し、オンオフ信号を
出力する検出モードである。
The mode changeover switch 13 is a switch for changing over between the run mode and the teach mode. In the teach mode, every time the sensitivity setting button 14 is turned on, the output of the light receiving circuit obtained from the pair of light receiving elements is A / D-converted and taken into the microcomputer 10, and the coefficient of the evaluation function and the threshold value which will be described later are turned on by the value. This is a threshold setting mode for setting a level and a threshold off level. The run mode is a detection mode in which the detection level and non-detection level set in the teach mode are compared with the current signal level and an on / off signal is output.

【0019】次に本実施例の動作についてフローチャー
トを参照しつつ説明する。図2,図3は本実施例の動作
を示すフローチャートである。動作を開始するとまずス
テップ31において、モード切換スイッチ13がティー
チモードかどうかをチェックする。ティーチモードであ
れば、ステップ32に進んで感度設定ボタン14が押下
されたかどうかをチェックし、押下されるまで待受け
る。ティーチモードでは識別すべき2つの状態とした状
態で感度設定を行う。ここではヘッド部3の前方にワー
ク27を図1のように配置する。ワーク27は検知しな
い白紙の白地領域27aとその上に貼られた透明のテー
プの領域27bがあり、これらの物体を識別するものと
する。
Next, the operation of this embodiment will be described with reference to the flow chart. 2 and 3 are flowcharts showing the operation of this embodiment. When the operation is started, first, at step 31, it is checked whether the mode changeover switch 13 is in the teach mode. If it is the teach mode, the routine proceeds to step 32, where it is checked whether or not the sensitivity setting button 14 has been pressed, and it waits until it is pressed. In the teach mode, the sensitivity is set in two states to be distinguished. Here, the work 27 is arranged in front of the head portion 3 as shown in FIG. The work 27 has a blank white background area 27a which is not detected and a transparent tape area 27b attached thereon, and these objects are identified.

【0020】まずワーク27の白地領域27aに投光素
子4からの光を照射できるように配置して感度設定ボタ
ン14を投入する。感度設定ボタン14が投入される
と、ステップ33に進んで投光回路5を介して投光素子
4を駆動する。そうすれば投光用光ファイバ21を介し
て光が照射され、偏光フィルタ24を介してS偏光成分
の光のみがワーク27の白地領域27aに照射される。
そしてその反射光が偏光ビームスプリッタ26によりS
偏光成分とP偏光成分とに分離され、夫々光ファイバ2
2,23を介して信号処理部2の受光素子6及び7によ
って受光される。この受光された信号はS側受光回路
8,P側受光回路9によって夫々電圧信号に変換され、
マイクロコンピュータ10内でA/D変換される。マイ
クロコンピュータ10はステップ34に進んでS偏光成
分及びP偏光成分を夫々SA ,PA として取込む。
First, the white background area 27a of the work 27 is arranged so that the light from the light projecting element 4 can be irradiated, and the sensitivity setting button 14 is turned on. When the sensitivity setting button 14 is turned on, the process proceeds to step 33 to drive the light projecting element 4 via the light projecting circuit 5. Then, the light is emitted through the light projecting optical fiber 21, and only the light of the S-polarized component is emitted through the polarization filter 24 onto the white background area 27a of the work 27.
Then, the reflected light is converted into S by the polarization beam splitter 26.
The optical fiber 2 is separated into a polarized light component and a P polarized light component.
The light is received by the light receiving elements 6 and 7 of the signal processing unit 2 via 2 and 23. The received signals are converted into voltage signals by the S-side light receiving circuit 8 and the P-side light receiving circuit 9, respectively.
A / D conversion is performed in the microcomputer 10. The microcomputer 10 proceeds to step 34 to capture the S polarization component and the P polarization component as S A and P A , respectively.

【0021】次いでヘッド部3の前方の所定のワーク2
7にテープを貼り付けたテープ領域27bに光が照射さ
れるようにワーク27を移動し、ステップ35に進んで
感度設定ボタン14を再び押下する。そうすると同様に
して投光回路5が駆動され、投光素子4からの光のうち
投光用光ファイバ21及び偏光フィルタ24を介してS
偏光成分のみがワークの領域Bに入射する。この反射光
を偏光ビームスプリッタ26で分離し、夫々S偏光成分
B 及びP偏光成分PB をA/D変換回路を介してマイ
クロコンピュータ10に取込む(ステップ37)。そし
てステップ38に進んで後述するように光沢度XをS偏
光成分とP偏光成分との出力の差によって判別する。又
ステップ39に進んでS偏光成分とP偏光成分の光量の
和により光量Yを判別する。次いでステップ40に進ん
でこれらの値を用いて評価関数Zを決める係数a,bを
決定する。次いでステップ41,42に進んで検出レベ
ルVthon及び非検出レベルVthoff を設定し、次いで安
定検出レベルレベルVston及び安定非検出レベルVst
off を設定する。EEPROM15に検出レベル,非検
出レベル,安定検出レベル,安定非検出レベルと係数
a,bを書込んで(ステップ43)、ティーチモードで
の処理を終える。
Next, a predetermined work 2 in front of the head portion 3
The work 27 is moved so that the tape area 27b where the tape is attached to 7 is irradiated with light, and the process proceeds to step 35 to press the sensitivity setting button 14 again. Then, the light projecting circuit 5 is driven in the same manner, and S of the light from the light projecting element 4 is transmitted through the light projecting optical fiber 21 and the polarization filter 24.
Only the polarized component is incident on the region B of the work. The reflected light is separated by the polarization beam splitter 26, and the S-polarized component S B and the P-polarized component P B are taken into the microcomputer 10 via the A / D conversion circuit (step 37). Then, the process proceeds to step 38, and the glossiness X is discriminated by the difference between the outputs of the S-polarized component and the P-polarized component as described later. Further, the process proceeds to step 39, and the light amount Y is discriminated by the sum of the light amounts of the S-polarized component and the P-polarized component. Next, in step 40, the coefficients a and b that determine the evaluation function Z are determined using these values. Next, in steps 41 and 42, the detection level Vth on and the non-detection level Vth off are set, and then the stable detection level Vst on and the stable non-detection level Vst are set.
Set off . The detection level, the non-detection level, the stable detection level, the stable non-detection level and the coefficients a and b are written in the EEPROM 15 (step 43), and the processing in the teach mode is completed.

【0022】次に係数a,bと検出レベル,非検出レベ
ルVthon,Vthoff の設定について説明する。図4は光
沢度が小さい物体及び大きい物体に対する入射光の反射
状態を示す概略図である。本図において入射光をいずれ
か一方の偏光成分、例えばS偏光成分を有する光とする
と、図4(a)に示す光沢度が小さい物体では偏光方向
が保存された正反射光も得られるが、それ以外にS偏光
成分とP偏光成分とが夫々等しい拡散反射光のレベルが
高くなる。一方光沢度が大きければ、図4(b)に示す
ようにP偏光成分とS偏光成分とのレベルが等しい拡散
反射光の全体の光量が低くなり、偏光方向を保存するS
偏光の正反射光のレベルが相対的に高くなる。従ってS
偏光成分とP偏光成分との差から光沢度を検出すること
ができる。
Next, the setting of the coefficients a and b and the detection levels and non-detection levels Vth on and Vth off will be described. FIG. 4 is a schematic diagram showing a reflection state of incident light with respect to an object having a low glossiness and an object having a high glossiness. In this figure, if the incident light is light having either one of the polarization components, for example, the S polarization component, specular reflection light in which the polarization direction is preserved can be obtained in an object having a low glossiness shown in FIG. 4A. In addition to that, the level of diffuse reflected light in which the S-polarized component and the P-polarized component are equal becomes high. On the other hand, if the glossiness is large, the total amount of diffuse reflected light in which the levels of the P-polarized component and the S-polarized component are equal as shown in FIG.
The level of the regular reflection light of the polarized light becomes relatively high. Therefore S
The glossiness can be detected from the difference between the polarized component and the P polarized component.

【0023】ここではワークが図1に示すように、光沢
度の小さい面27aと光沢度の大きい面27bとを有
し、これらを識別するものとしているが、一般的には識
別すべき2つの物理状態となるように、例えば検出物体
(A)に光を照射したときと非検出物体(B)に光を照
射し、これらを識別するために係数と閾値を設定するも
のとする。そしてワークの面AでのS偏光成分の入力値
をSA ,P偏光成分をPA とする。又ワークの面Bでの
S偏光成分をSB ,P偏光成分をPB とする。このとき
光沢度XA ,XB 反射光量YA ,YB を以下のように定
義する。 XA =SA −PAB =SB −PBA =SA +PAB =SB +PB 次いでワークの面A,Bの光沢差XS ,光量差YS を次
式で定義する。
Here, as shown in FIG. 1, the work has a surface 27a having a low glossiness and a surface 27b having a high glossiness, which are to be discriminated from each other. For example, when the detection object (A) is irradiated with light and when the non-detection object (B) is irradiated with light so as to be in a physical state, a coefficient and a threshold value are set to identify them. The input value of the S-polarized component on the surface A of the work is S A and the P-polarized component is P A. The S-polarized component on the surface B of the work is S B and the P-polarized component is P B. At this time glossiness X A, X B reflected light Y A, is defined as follows Y B. X A = S A -P A X B = S B -P B Y A = S A + P A Y B = S B + P B then the surface of the workpiece A, the gloss difference X S of B, the following equation the quantity difference Y S Define in.

【数1】 こうすればXS ,YS は夫々0〜100の値をとる。そ
して光沢度X,光量Yに対して評価関数Zを次式により
定める。 Z=aX+bY ここで光沢差XS ,光量差YS から係数a,bを次式で
定める。
[Equation 1] In this way, X S and Y S take values of 0 to 100, respectively. Then, the evaluation function Z is determined by the following equation for the glossiness X and the light amount Y. Z = aX + bY Here, the coefficients a and b are determined by the following equations based on the gloss difference X S and the light amount difference Y S.

【数2】 こうして得られた評価値Zは2つのワークの面A,Bに
夫々光を入射したときに得られる評価値を第1,第2の
入力レベルV1,V2とする。これらの値から検出レベ
ルVthon及び非検出レベルVthoff を定める。
[Equation 2] The evaluation values Z obtained in this way are the evaluation values obtained when light is respectively incident on the surfaces A and B of the two workpieces as the first and second input levels V1 and V2. The detection level Vth on and the non-detection level Vth off are determined from these values.

【0024】図5(a)は第1実施例における閾値の設
定を示す概略図である。本図においてティーチングによ
って得られた2つの入力レベルV1とV2とによって閾
値を設定する場合について説明する。まず仮想的な中心
値として2つの入力レベルV1とV2との相加平均より
低いレベル、例えば相乗平均値を設定する。これは図5
(a)に示す零レベルからみて中心値Vcengまでのレベ
ルの比を等しくすることと等価である。即ちV1:Vce
ng=Vceng:V2が成り立つ中心値Vcengを設定する。
こうすればVcengはV1,V2の相乗平均値√(V1・
V2)となる。そしてこの中心値Vcengに対して同一の
幅の余裕度をもって閾値VthonとVthoff とを設定す
る。ここでVH はヒステリシス幅を示しており、ヒステ
リシス幅を等分したものである。従って閾値VthonとV
thoff は次式で示される。 Vthon =Vceng+VH /2 Vthoff =Vceng−VH /2
FIG. 5A is a schematic diagram showing the setting of the threshold value in the first embodiment. A case where a threshold value is set by two input levels V1 and V2 obtained by teaching in this figure will be described. First, a level lower than the arithmetic mean of the two input levels V1 and V2, for example, a geometric mean value is set as a virtual center value. This is Figure 5
This is equivalent to making the ratio of the levels up to the central value Vceng as seen from the zero level shown in (a) equal. That is, V1: Vce
ng = Vceng: The central value Vceng for which V2 holds is set.
By doing this, Vceng is the geometric mean value of V1 and V2 √ (V1 ·
V2). Then, the threshold values Vth on and Vth off are set with a margin of the same width with respect to the center value Vceng. Here, V H indicates a hysteresis width, which is obtained by equally dividing the hysteresis width. Therefore, the threshold values Vth on and V
th off is expressed by the following equation. Vth on = Vceng + VH / 2 Vth off = Vceng- VH / 2

【0025】次に第2実施例による閾値の設定について
図5(b)を用いて説明する。第2実施例では仮想的な
中心値Vcengは第1実施例と同様に相乗平均値とし、そ
のヒステリシス幅もVH とする。そしてこのヒステリシ
ス幅を比例配分によって分配する。即ちVcengからVth
onまでをVHaとし、VcengからVthoff までVHbとし、
Vthon,Vthoff を次式で設定する。 VH =VHa+VHb Vthon =Vceng+VHa=Vceng+VH ×V2/(V1
+V2) Vthoff =Vceng+VHb=Vceng−VH ×V1/(V1
+V2) とする。こうすればヒステリシス幅VH を入力レベルV
1,V2に応じて分配することができるため、閾値をよ
り適切な値に設定することができる。
Next, the setting of the threshold value according to the second embodiment will be described with reference to FIG. Virtual center value Vceng in the second embodiment is the geometric mean value as in the first embodiment, and its hysteresis width V H. Then, this hysteresis width is distributed by proportional distribution. That is, Vceng to Vth
From on to V Ha , from Vceng to Vth off to V Hb ,
Vth on and Vth off are set by the following equations. V H = V Ha + V Hb Vth on = Vceng + V Ha = Vceng + V H × V2 / (V1
+ V2) Vth off = Vceng + V Hb = Vceng-V H × V1 / (V1
+ V2). By doing this, the hysteresis width V H can be set to the input level V
Since it can be distributed according to 1, V2, the threshold value can be set to a more appropriate value.

【0026】次に本発明の第3実施例による閾値の設定
方法について説明する。図5(c)はこの閾値の設定に
ついて示した図である。まず第1,第2の入力レベルV
1,V2のうち高いレベルである第2の入力レベルV2
からVthonまでの幅をa,V2より低い第1の入力レベ
ルV1からVthoff までの幅をbとする。そして入力レ
ベルV2,V1から閾値Vthon,Vthoff までの夫々の
間隔aとbとを、入力レベルの比例配分によって振り分
けて設定したものである。即ちVthon,Vthoff を次式
で設定している。 Vthon =V2−a=V2−VA ×V2/(V1+V
2) Vthoff =V1+b=V1+VA ×V1/(V1+V
2) ここでaとbの和をVA とする。このVA はV2−V1
からヒステリシス幅VHを差し引いたものである。
Next, a threshold value setting method according to the third embodiment of the present invention will be described. FIG. 5C is a diagram showing the setting of this threshold value. First, the first and second input levels V
The second input level V2 which is the higher level of V1 and V2
The width from Vth on to Vth on is a, and the width from the first input level V1 lower than V2 to Vth off is b. Then, the respective intervals a and b from the input levels V2, V1 to the threshold values Vth on , Vth off are set by being distributed by proportional distribution of the input levels. That is, Vth on and Vth off are set by the following equations. Vth on = V2-a = V2- VA xV2 / (V1 + V
2) Vth off = V1 + b = V1 + V A × V1 / (V1 + V
2) Here, the sum of a and b is V A. This V A is V2-V1
The hysteresis width VH is subtracted from this.

【0027】次に本発明の第4実施例による閾値の設定
について図6(a)を用いて説明する。本実施例では2
つの入力レベルV1とV2に対してヒステリシス幅をV
H とし、相加平均の中心値Vcena=(V1+V2)/2
とする。そしてこの中心値に対して検出レベルVthon
での幅をc,Vthoff までの幅をdとすると、c+dは
ヒステリシス幅VH となる。そしてVthon,Vthoff
この相加平均による中心値Vcenaに対して、ヒステリシ
ス幅VH を逆に比例配分して設定する。即ちVthon,V
thoff は次式で定められる。 Vthon =Vcena+c=Vcena+VH ×V1/(V1+
V2) Vthoff =Vcena−d=Vcena−VH ×V2/(V1+
V2)
Next, setting of the threshold value according to the fourth embodiment of the present invention will be described with reference to FIG. In this embodiment, 2
Hysteresis width for one input level V1 and V2 is V
H, and the central value of arithmetic mean Vcena = (V1 + V2) / 2
And And c the width to the detection level Vth on to this center value, when the width of up to Vth off and d, c + d is the hysteresis width V H. Then, Vth on and Vth off are set by inversely proportionally distributing the hysteresis width V H to the central value Vcena obtained by the arithmetic mean. That is, Vth on , V
th off is defined by the following equation. Vth on = Vcena + c = Vcena + V H × V1 / (V1 +
V2) Vth off = Vcena-d = Vcena- VH * V2 / (V1 +
V2)

【0028】次に本発明の第5実施例による閾値の設定
について説明する。図6(b)は第5実施例による閾値
の設定を示している。この閾値の設定は零レベルからの
値を用いて次式 V1:Vthoff =Vthon:V2 が成り立つように、即ち相似となるように設定してい
る。即ちVthoff /V1=V2/Vthon=kとする。こ
のときVthonをVthoff より大きくすることはいうまで
もない。従ってVthon,Vthoff は夫々次式で示され
る。 Vthon =V2/k Vthoff =V1×k V2>Vthon>Vthoff >V1 k>1
Next, the setting of the threshold value according to the fifth embodiment of the present invention will be described. FIG. 6B shows the setting of the threshold value according to the fifth embodiment. The threshold value is set so that the following equation V1: Vth off = Vth on : V2 is satisfied, that is, the values are similar to each other, using values from the zero level. That is, Vth off / V1 = V2 / Vth on = k. It goes without saying that at this time, Vth on is made larger than Vth off . Therefore, Vth on and Vth off are respectively expressed by the following equations. Vth on = V2 / k Vth off = V1 × k V2> Vth on > Vth off > V1 k> 1

【0029】次に本発明の第6実施例による閾値の設定
について図6(c)を用いて説明する。この実施例では
検知レベルVthonはV2を1としてこれよりα少ない
値、非検知レベルVthoff はV1を1としてこれよりα
大きい値とする。このαは0<α<1の範囲の値とす
る。例えばVthonとV2の95%、Vthoff はV1の105
%とすると、αは0.05となる。これを一般化すると、次
式で示される。 Vthon =V2×(1−α) Vthoff =V1×(1+α)
Next, setting of the threshold value according to the sixth embodiment of the present invention will be described with reference to FIG. In this embodiment, the detection level Vth on has V2 set to 1 and a value less than that by α, and the non-detection level Vth off sets V1 to 1 and set α below this.
Use a large value. This α is a value in the range of 0 <α <1. For example, Vth on and 95% of V2, Vth off 105 of V1
%, Α becomes 0.05. When this is generalized, it is expressed by the following equation. Vth on = V2 × (1-α) Vth off = V1 × (1 + α)

【0030】次にステップ42における安定検出レベル
Vston,安定非検出レベルVstoffの設定について説明
する。Vston,Vstoff は前述した第1〜第6実施例と
同様にしてそのヒステリシス幅VH や分配値a〜d,
k,α等を適宜変更してあらかじめ設定することができ
る。そしてこれに加えて前述した1〜6の方法で説明し
た検出レベルVthonと非検出レベルVthoff とを1〜6
の実施例の入力レベルV1,V2,V1に置き換えて、
これに基づいて1〜6の手法からVston,Vstoff を設
定することもできる。例えば図6(d)に示すようにV
thon,Vthoff は前述した第1実施例の方法で設定す
る。即ちVcengを相乗平均値としてこれと等しい幅を上
下にとってヒステリシス幅としてVthon,Vthoff を設
定する。そしてVthon,Vthoff の外側にその和が
H ′となる安定検出レベルと安定非検出レベルとを次
式で設定する。 VH ′=e+f Vston=Vthon+e=Vthon+VH ′/2 Vstoff =Vthoff −f=Vthoff −VH ′/2 こうすれば安定検出レベルと安定非検出レベルとが設定
できることとなる。又その他2〜6の実施例と同一の方
法によって設定することができることはいうまでもな
い。
Next, the setting of the stable detection level Vst on and the stable non-detection level Vst off in step 42 will be described. Vst on and Vst off are the hysteresis width V H and distribution values a to d, as in the first to sixth embodiments described above.
It is possible to change k, α, etc. appropriately and set them in advance. In addition to this, the detection level Vth on and the non-detection level Vth off described in the methods 1 to 6 are set to 1 to 6
Substituting the input levels V1, V2 and V1 of the embodiment of
Based on this, Vst on and Vst off can be set from the methods 1 to 6. For example, as shown in FIG.
Th on and Vth off are set by the method of the first embodiment described above. That Vth on this equal width as the geometric mean value Vceng as hysteresis width for the upper and lower sets Vth off. Then, a stable detection level and a stable non-detection level whose sum is V H ′ are set outside Vth on and Vth off by the following equation. VH '= e + f Vst on = Vth on + e = Vth on + VH ' / 2 Vst off = Vth off -f = Vth off -V H '/ 2 In this way, the stable detection level and the stable non-detection level can be set. Becomes Needless to say, it can be set by the same method as in the second to sixth embodiments.

【0031】図9(b)はこうして設定された閾値オン
レベルである検出レベルVthon,安定検出レベルVston
と閾値オフレベルである非検出レベルVthoff ,安定非
検出レベルVstoff と2つのレベルとのばらつきの関係
を示す図である。この図に示すように入力レベルV1,
V2はその絶対値に応じたばらつきを生じるものとすれ
ば、従来例と異なり入力レベルV1のばらつきの上限値
と非検出レベルVthoff のレベル差a1と、入力レベル
V2のばらつきの下限値と検出レベルVthonの差a2と
をほぼ一致させることができる。又入力レベルV1のば
らつきの上限値と安定非検出レベルVstoff のレベルの
差b1と、入力レベルV2のばらつきの下限値と安定検
出レベルVstonのレベル差b2もほぼ同一レベルとする
ことができ、適切な閾値の設定が成されていることがわ
かる。
FIG. 9B shows the detection level Vth on and the stable detection level Vst on which are the threshold on levels set in this way.
FIG. 5 is a diagram showing a relation between a non-detection level Vth off which is a threshold off level, a stable non-detection level Vst off , and a variation between the two levels. As shown in this figure, the input level V1,
Assuming that V2 causes a variation according to its absolute value, unlike the conventional example, the level difference a1 between the upper limit of the variation of the input level V1 and the non-detection level Vth off , and the lower limit of the variation of the input level V2 are detected. It is possible to make the difference a2 of the level Vth on substantially match. Also, the difference b1 between the upper limit of the variation of the input level V1 and the level of the stable non-detection level Vst off , and the lower limit b2 of the variation of the input level V2 and the level difference b2 of the stable detection level Vst on can be made substantially the same level. It can be seen that an appropriate threshold value is set.

【0032】次に図2に示すフローチャートにおいて、
ステップ31の判断時にモード切換スイッチ13がラン
モードであれば、図3のステップ51に進んでEEPR
OMから検出レベルVthon,非検出レベルVthoff 及び
評価関数Zの係数値a,bを読出す。そしてステップ5
2に進んで投光回路を駆動する。そうすれば投光素子4
より光が光ファイバ21を介して出射され、偏光フィル
タ24によってS偏光成分のみがワークに照射される。
その反射光がS偏光とP偏光とに分離して受光素子によ
って受光される。この出力のA/D変換値をマイクロコ
ンピュータ10に読込む(ステップ53)。そしてステ
ップ45に進み、評価関数Zの演算を次式に基づいて行
う。 Z=aX+bY そしてステップ55において検出レベルVthon,非検出
レベルVthoff とZとを比較し、オンオフ信号を出力す
る。そしてステップ56に進んでモード切換スイッチ1
3がティーチモードかどうかをチェックし、ティーチモ
ードでなければステップ52に戻って同様の処理を繰り
返す。又ステップ56においてモード切換スイッチ13
がティーチモードに設定されていれば、図2のステップ
32に戻って同様の処理を繰り返し、係数値a,bと検
出レベルVthon,非検出レベルVthoff を設定する。こ
うすれば設定した閾値と評価関数を用いて2つの物体を
識別することができる。ここでマイクロコンピュータ1
0はステップ31〜41,43において後述するように
閾値オンレベルと閾値オフレベルとを設定する閾値設定
手段の機能を達成しており、ステップ42において検出
の安定/非安定検出レベルを設定する安定レベル設定手
段の機能を達成している。又投光素子4と投光回路5,
ヘッド部3及び受光素子6,7、受光回路8,9とマイ
クロコンピュータ10のステップ52〜54は、物理状
態に対応したレベルを検出する検出手段を構成してい
る。更にマイクロコンピュータ10はステップ52〜5
5において入力レベルと閾値とを比較することによっ
て、2つの物理状態を判別する弁別手段の機能を達成し
ている。
Next, in the flow chart shown in FIG.
If the mode changeover switch 13 is in the run mode at the time of judgment in step 31, the process proceeds to step 51 in FIG.
The detection level Vth on , the non-detection level Vth off, and the coefficient values a and b of the evaluation function Z are read from the OM. And step 5
Proceed to 2 to drive the light projecting circuit. Then the light emitting element 4
More light is emitted through the optical fiber 21, and the polarization filter 24 irradiates only the S-polarized component on the work.
The reflected light is separated into S-polarized light and P-polarized light and received by the light receiving element. The A / D converted value of this output is read into the microcomputer 10 (step 53). Then, in step 45, the evaluation function Z is calculated based on the following equation. Z = aX + bY Then, in step 55, the detection level Vth on and the non-detection level Vth off are compared with Z, and an on / off signal is output. Then, the process proceeds to step 56 and the mode changeover switch 1
It is checked whether or not 3 is the teach mode, and if not the teach mode, the process returns to step 52 and the same processing is repeated. In step 56, the mode changeover switch 13
2 is set to the teach mode, the process returns to step 32 of FIG. 2 and the same processing is repeated to set the coefficient values a and b, the detection level Vth on , and the non-detection level Vth off . In this way, two objects can be identified using the set threshold and evaluation function. Microcomputer 1
0 achieves the function of the threshold setting means for setting the threshold on level and the threshold off level as described later in steps 31 to 41 and 43, and in step 42 the stable / unstable detection level of detection is set. The function of the level setting means is achieved. Further, the light emitting element 4 and the light emitting circuit 5,
The head section 3, the light receiving elements 6 and 7, the light receiving circuits 8 and 9 and steps 52 to 54 of the microcomputer 10 constitute a detecting means for detecting the level corresponding to the physical state. Further, the microcomputer 10 performs steps 52 to 5
By comparing the input level and the threshold value in 5, the function of the discriminating means for discriminating the two physical states is achieved.

【0033】尚前述した実施例は光沢を検出する光沢検
出センサについて説明しているが、投光回路より投光素
子を介して光を物体検知領域に照射し、単一の受光素子
及び受光回路でその反射光のレベルを検出して、2つの
識別すべき状態に対して第1,第2の入力レベルV1,
V2を得て、この間に閾値を設定する通常の光電スイッ
チに適用することができることはいうまでもない。
In the above-mentioned embodiment, the gloss detecting sensor for detecting the gloss is explained. However, the light projecting circuit irradiates the object detection area with light through the light projecting element to obtain a single light receiving element and a light receiving circuit. The level of the reflected light is detected by, and the first and second input levels V1,
It goes without saying that it can be applied to an ordinary photoelectric switch that obtains V2 and sets a threshold value during this period.

【0034】次に本発明の第7実施例について説明す
る。本実施例による検出スイッチは高周波発振型の近接
スイッチとしたものであり、図7(a)にそのブロック
図を示す。本実施例では発振回路61は共振回路62を
含んで構成されており、発振出力は周波数カウンタ63
を介して信号処理回路64に入力される。信号処理回路
64は発振周波数の変化に基づいて共振回路62の近傍
に接近した金属物体を検出するものである。発振周波数
と検出物体までの検出距離Lとの関係は図7(b)に示
すように、距離Lが近くなれば発振周波数が急激に高く
なるようになっている。このため検出距離LbとLaと
で夫々発振周波数Fa,Fbを検出して保持し、その間
に閾値を設定するものとする。ここで検出距離にある範
囲のばらつきΔLを生じるとすると、同一のばらつきの
距離に対してLaの範囲内の周波数変化ΔFaがLbの
ばらつき範囲の周波数変化ΔFbよりも大きくなる。従
って前述した各実施例の方法によって閾値の周波数を設
定すれば、入力のばらつきに対応して適切な検出/非検
出レベル及び安定/非安定検出レベルの閾値を設定する
ことができる。図7(a)において感度設定回路65は
2つの物体を距離La,Lbに設定してティーチング入
力を行うための回路であり、これらの入力に基づいて一
旦周波数カウンタ63の周波数値がメモリ66に保持さ
れる。そしてそれらの周波数値に基づいて前述した第1
〜第6実施例のように閾値オンレベル,閾値オフレベル
を設定する。こうすればばらつきが生じる物体に対して
も適切な閾値によってその有無を判別することができ
る。
Next, a seventh embodiment of the present invention will be described. The detection switch according to the present embodiment is a high frequency oscillation type proximity switch, and a block diagram thereof is shown in FIG. In this embodiment, the oscillation circuit 61 is configured to include a resonance circuit 62, and the oscillation output is a frequency counter 63.
Is input to the signal processing circuit 64 via. The signal processing circuit 64 detects a metal object approaching the vicinity of the resonance circuit 62 based on the change of the oscillation frequency. As shown in FIG. 7B, the relationship between the oscillation frequency and the detection distance L to the detection object is such that the oscillation frequency sharply increases as the distance L becomes shorter. Therefore, the oscillation frequencies Fa and Fb are detected and held at the detection distances Lb and La, respectively, and the threshold value is set between them. If a variation ΔL in a certain range of the detection distance occurs, the frequency change ΔFa in the range La is larger than the frequency change ΔFb in the variation range Lb for the same variation distance. Therefore, if the threshold frequency is set by the method of each of the embodiments described above, it is possible to set the appropriate detection / non-detection level and stable / unstable detection level thresholds in accordance with the input variations. In FIG. 7A, a sensitivity setting circuit 65 is a circuit for setting two objects at distances La and Lb and performing teaching input. Based on these inputs, the frequency value of the frequency counter 63 is temporarily stored in the memory 66. Retained. Then, based on those frequency values, the above-mentioned first
The threshold on level and the threshold off level are set as in the sixth embodiment. In this way, it is possible to determine the presence / absence of an object having a variation with an appropriate threshold value.

【0035】本発明を超音波スイッチに適用した第8実
施例について図8を参照しつつ説明する。本実施例では
発振回路71より送波回路72を介して超音波振動子7
3を駆動し、物体を検知する方向に周期的に超音波を送
出している。そして物体が近接すればその検出距離まで
の距離Lに対応したレベルで超音波の反射波が受波さ
れ、これを超音波振動子74を介して受波する。そして
受波増幅回路75を介して増幅し、積分回路76を介し
て検出信号として判別する。検出物体までの距離Laと
これより近い位置に距離Laを設定した場合に、音量レ
ベルは図7(b)に示すように距離が近づけば急激に受
波レベルが増加している。そして物体までのティーチン
グの位置のばらつきをいずれもΔLとすると、このΔL
の幅に対応する音量レベルのばらつきは図示のようにΔ
Pa,ΔPbのようにΔPaが大きくなる。従ってこの
場合にも前述した各実施例と同様に閾値オンレベルと閾
値オフレベルを設定することにより、最適の閾値を設定
することができる。図8において積分回路76の出力は
信号処理回路77に入力される。信号処理回路77はこ
のレベルPa,Pbを感度設定回路68から入力がある
毎にメモリ79に保持し、これに基づいて前述したよう
に閾値を設定する。そしてティーチングが終了すれば検
出モードに入り、実際の物体が接近した状態でその閾値
を用いて弁別し、物体検知信号を出力する。
An eighth embodiment in which the present invention is applied to an ultrasonic switch will be described with reference to FIG. In this embodiment, the ultrasonic transducer 7 is transmitted from the oscillation circuit 71 via the wave transmission circuit 72.
3 is driven, and ultrasonic waves are periodically sent in the direction of detecting an object. When the object approaches, the reflected wave of the ultrasonic wave is received at the level corresponding to the distance L to the detection distance, and the reflected wave is received via the ultrasonic transducer 74. Then, the signal is amplified through the receiving / amplifying circuit 75 and is determined as a detection signal through the integrating circuit 76. When the distance La to the detection object and the distance La is set at a position closer to the distance La, the sound wave level rapidly increases as the distance approaches, as shown in FIG. 7B. If the variation in the teaching position up to the object is ΔL, this ΔL
The variation of the volume level corresponding to the width of
ΔPa becomes large like Pa and ΔPb. Therefore, also in this case, the optimum threshold value can be set by setting the threshold on level and the threshold off level as in the above-described respective embodiments. In FIG. 8, the output of the integrating circuit 76 is input to the signal processing circuit 77. The signal processing circuit 77 holds these levels Pa and Pb in the memory 79 each time there is an input from the sensitivity setting circuit 68, and based on this, sets the threshold value as described above. When the teaching is completed, the detection mode is entered, and when the actual object is approaching, the threshold value is used for discrimination, and the object detection signal is output.

【0036】尚本実施例は光電スイッチや光沢スイッ
チ,近接スイッチ,超音波スイッチについて説明してい
るが、本発明は他の種々の検出スイッチに適用すること
ができる。
In this embodiment, the photoelectric switch, the gloss switch, the proximity switch, and the ultrasonic switch are described, but the present invention can be applied to various other detection switches.

【0037】[0037]

【発明の効果】以上詳細に説明したように本発明によれ
ば、物体を検出する閾値のオンレベルとオフレベルの中
心値を入力レベルの2つのティーチング時の入力レベル
の相加平均値より低いレベルに設定しているため、入力
レベルのばらつきがその入力レベルの絶対値に比例する
ことが多い種々の信号に対して実質的な余裕度が等しく
なる。従って入力レベルのばらつきに対して安定に検出
することができ、又小さな入力レベルの差を検出するこ
とができるという効果が得られる。
As described above in detail, according to the present invention, the central value of the on level and the off level of the threshold value for detecting an object is lower than the arithmetic mean value of the input levels at the time of teaching the two input levels. Since the level is set, the substantial margin is equal to various signals in which the variation of the input level is often proportional to the absolute value of the input level. Therefore, it is possible to stably detect a variation in the input level and to obtain a small difference in the input level.

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

【図1】本発明の一実施例による光学式センサ装置の全
体構成を示すブロック図である。
FIG. 1 is a block diagram showing an overall configuration of an optical sensor device according to an embodiment of the present invention.

【図2】本実施例のティーチングモードでの動作を示す
フローチャートである。
FIG. 2 is a flowchart showing an operation in a teaching mode of this embodiment.

【図3】本実施例のランモードでの動作を示すフローチ
ャートである。
FIG. 3 is a flowchart showing an operation in a run mode according to this embodiment.

【図4】光沢度の小さい物体及び大きい物体に一方に偏
光方向を有する光を入射したときの正反射光と拡散反射
光との関係を示す概略図である。
FIG. 4 is a schematic diagram showing a relationship between specular reflection light and diffuse reflection light when light having a polarization direction is incident on an object having a low glossiness or an object having a high glossiness.

【図5】(a)〜(c)は本発明の第1〜3実施例によ
る検出レベル,非検出レベルの閾値の設定方法を示す図
である。
5A to 5C are diagrams showing a method of setting threshold values of a detection level and a non-detection level according to the first to third embodiments of the present invention.

【図6】(a)〜(c)は本発明の第4〜6実施例によ
る検出レベル,非検出レベルの閾値の設定方法を示す
図、(d)は安定検出レベル,安定非検出レベルの閾値
の設定方法を示す図である。
6 (a) to 6 (c) are diagrams showing a method of setting threshold values for detection levels and non-detection levels according to fourth to sixth embodiments of the present invention, and FIG. 6 (d) is a diagram showing stable detection levels and stable non-detection levels. It is a figure which shows the setting method of a threshold value.

【図7】(a)は本発明の第7実施例による近接スイッ
チの構成を示すブロック図、(b)は近接スイッチの検
出距離に対する周波数の変化を示すグラフである。
7A is a block diagram showing a configuration of a proximity switch according to a seventh embodiment of the present invention, and FIG. 7B is a graph showing a change in frequency with respect to a detection distance of the proximity switch.

【図8】(a)は本発明の第8実施例による超音波スイ
ッチの構成を示すブロック図、(b)は検出距離に対す
る超音波の音量レベルの変化を示すグラフである。
FIG. 8A is a block diagram showing a configuration of an ultrasonic switch according to an eighth embodiment of the present invention, and FIG. 8B is a graph showing a change in volume level of ultrasonic waves with respect to a detection distance.

【図9】(a)は従来の入力レベルと閾値との関係、
(b)は本願の第1実施例による入力レベルと閾値との
関係を示す図である。
FIG. 9A is a relationship between a conventional input level and a threshold,
(B) is a diagram showing a relationship between an input level and a threshold value according to the first embodiment of the present application.

【符号の説明】 1 光学式センサ装置 2 信号処理部 3 ヘッド部 4 投光素子 5 投光回路 6,7 受光素子 8 S側受光回路 9 P側受光回路 10 マイクロコンピュータ 11 発振回路 12 電源回路 13 モード切換スイッチ 14 感度設定スイッチ 15 EEPROM 16 出力回路 21〜23 光ファイバ 24 偏光フィルタ 25 レンズ 26 偏光ビームスプリッタ 27 ワーク 61,71 発振回路 62 共振回路 63 周波数カウンタ 64,77 信号処理回路 65 感度設定回路 66,79 メモリ 67,80 出力回路 72 送波回路 73,74 超音波素子 75 受波増幅回路 76 積分回路[Description of Reference Signs] 1 optical sensor device 2 signal processing unit 3 head unit 4 light emitting element 5 light emitting circuit 6,7 light receiving element 8 S side light receiving circuit 9 P side light receiving circuit 10 microcomputer 11 oscillation circuit 12 power supply circuit 13 Mode selector switch 14 Sensitivity setting switch 15 EEPROM 16 Output circuit 21-23 Optical fiber 24 Polarization filter 25 Lens 26 Polarization beam splitter 27 Work 61,71 Oscillation circuit 62 Resonance circuit 63 Frequency counter 64,77 Signal processing circuit 65 Sensitivity setting circuit 66 , 79 memory 67, 80 output circuit 72 wave transmitting circuit 73, 74 ultrasonic element 75 wave receiving amplifier circuit 76 integrating circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H03K 17/94 9406−2G G01V 9/04 J (72)発明者 水畑 伸治 京都府京都市右京区花園土堂町10番地 オ ムロン株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Reference number in the agency FI Technical indication location H03K 17/94 9406-2G G01V 9/04 J (72) Inventor Shinji Mizuhata Ukyo, Kyoto City, Kyoto Prefecture 10 Hanazono, Doudou-cho, OMRON Corporation

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 物理状態に対応したレベルを検出する検
出手段と、 閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、 検出モードにおいて前記閾値設定手段によって設定され
た閾値と前記検出手段からの入力とを比較することによ
り、前記二つの状態を識別する弁別手段と、を具備する
検出スイッチにおいて、 前記閾値設定手段は、 前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相加平均値より低いレベルとしたことを特徴と
する検出スイッチ。
1. A detection means for detecting a level corresponding to a physical state, and first and second input levels obtained from the detection means for two physical states to be distinguished in a threshold setting mode are inputted in advance. A threshold value setting means for setting a threshold value based on the input level, and a discrimination method for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means in the detection mode. The threshold value setting means sets a threshold on level and a threshold off level between the first input level and the second input level, and the threshold on level and the threshold A detection switch, wherein a central value of the off level is set to a level lower than an arithmetic mean value of the first and second input levels.
【請求項2】 物理状態に対応したレベルを検出する検
出手段と、 閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、 検出モードにおいて前記閾値設定手段によって設定され
た閾値と前記検出手段からの入力とを比較することによ
り、前記二つの状態を識別する弁別手段と、を具備する
検出スイッチにおいて、 前記閾値設定手段は、 前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相乗平均値としたことを特徴とする検出スイッ
チ。
2. A detection means for detecting a level corresponding to a physical state, and first and second input levels obtained from the detection means for two physical states to be distinguished in the threshold setting mode are inputted in advance. A threshold value setting means for setting a threshold value based on the input level, and a discrimination method for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means in the detection mode. The threshold value setting means sets a threshold on level and a threshold off level between the first input level and the second input level, and the threshold on level and the threshold A detection switch, wherein a central value of off-levels is a geometric mean value of the first and second input levels.
【請求項3】 物理状態に対応したレベルを検出する検
出手段と、 閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、 検出モードにおいて前記閾値設定手段によって設定され
た閾値と前記検出手段からの入力とを比較することによ
り、前記二つの状態を識別する弁別手段と、を具備する
検出スイッチにおいて、 前記閾値設定手段は、 前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相乗平均値とし、閾値オンレベルと該中心値及
び閾値オフレベルと該中心値までのレベル差を前記入力
レベルの比で振り分けて設定することを特徴とする検出
スイッチ。
3. Detection means for detecting a level corresponding to a physical state, and first and second input levels obtained from the detection means for two physical states to be distinguished in the threshold setting mode are inputted in advance. A threshold value setting means for setting a threshold value based on the input level, and a discrimination method for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means in the detection mode. The threshold value setting means sets a threshold on level and a threshold off level between the first input level and the second input level, and the threshold on level and the threshold The center value of the off level is the geometric mean value of the first and second input levels, and the threshold on level and the center value and the threshold off level and the level up to the center value Detection switch, characterized in that the set sorting by the ratio of the input level.
【請求項4】 物理状態に対応したレベルを検出する検
出手段と、 閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、 検出モードにおいて前記閾値設定手段によって設定され
た閾値と前記検出手段からの入力とを比較することによ
り、前記二つの状態を識別する弁別手段と、を具備する
検出スイッチにおいて、 前記閾値設定手段は、 前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相加平均値より低いレベルとし、閾値オンレベ
ルとこれに近い第1,第2のいずれかの入力レベルとの
差と、閾値オフレベルと他方の入力レベルとの差を夫々
その入力レベルの比で振り分けるように閾値オンレベル
及び閾値オフレベルを設定したことを特徴とする検出ス
イッチ。
4. A detection means for detecting a level corresponding to a physical state, and first and second input levels obtained from the detection means for the two physical states to be distinguished in the threshold setting mode are inputted in advance. A threshold value setting means for setting a threshold value based on the input level, and a discrimination method for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means in the detection mode. The threshold value setting means sets a threshold on level and a threshold off level between the first input level and the second input level, and the threshold on level and the threshold The central value of the off level is set to a level lower than the arithmetic average value of the first and second input levels, and the threshold on level and either the first or second input value close to the threshold on level are set. Detection switch, wherein the difference between the levels, that setting a threshold on level and threshold-off level as distributed by the difference of the respective ratio of the input level of the threshold-off level and the other input levels.
【請求項5】 物理状態に対応したレベルを検出する検
出手段と、 閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、 検出モードにおいて前記閾値設定手段によって設定され
た閾値と前記検出手段からの入力とを比較することによ
り、前記二つの状態を識別する弁別手段と、を具備する
検出スイッチにおいて、 前記閾値設定手段は、 閾値オンレベルと閾値オフレベルとの第1,第2の入力
レベルの相加平均値からのレベル差を入力レベルの逆比
によって振り分けるように閾値オンレベル及び閾値オフ
レベルを設定したことを特徴とする検出スイッチ。
5. Detection means for detecting a level corresponding to a physical state, and first and second input levels obtained from the detection means for the two physical states to be distinguished in the threshold setting mode are inputted in advance. A threshold value setting means for setting a threshold value based on the input level, and a discrimination method for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means in the detection mode. The threshold value setting means distributes the level difference from the arithmetic mean value of the first and second input levels of the threshold on level and the threshold off level according to the inverse ratio of the input level. A detection switch having a threshold on level and a threshold off level set as described above.
【請求項6】 物理状態に対応したレベルを検出する検
出手段と、 閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、 検出モードにおいて前記閾値設定手段によって設定され
た閾値と前記検出手段からの入力とを比較することによ
り、前記二つの状態を識別する弁別手段と、を具備する
検出スイッチにおいて、 前記閾値設定手段は、 前記第1の入力レベルと第2の入力レベルとの間に閾値
オンレベルと閾値オフレベルとを設定し、該閾値オンレ
ベルと閾値オフレベルの中心値を前記第1,第2の入力
レベルの相加平均値より低いレベルとし、閾値オンレベ
ルと閾値オフレベルとを夫々前記第1,第2の入力レベ
ルの定数倍及び該定数の逆数倍のレベルに設定したもの
であることを特徴とする検出スイッチ。
6. A detection means for detecting a level corresponding to a physical state, and first and second input levels obtained from the detection means for the two physical states to be identified in the threshold setting mode are input in advance. A threshold value setting means for setting a threshold value based on the input level, and a discrimination method for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means in the detection mode. The threshold value setting means sets a threshold on level and a threshold off level between the first input level and the second input level, and the threshold on level and the threshold The central value of the off level is set to a level lower than the arithmetic mean value of the first and second input levels, and the threshold on level and the threshold off level are respectively set to the first and the first off levels. Detection switch, characterized in that in which the set in the input level of the constant multiple and level number inverse number times the the constant.
【請求項7】 物理状態に対応したレベルを検出する検
出手段と、 閾値設定モードにおいて識別すべき二つの物理状態に対
して前記検出手段から得られる第1,第2の入力レベル
をあらかじめ入力し、その入力レベルに基づいた閾値を
設定する閾値設定手段と、 検出モードにおいて前記閾値設定手段によって設定され
た閾値と前記検出手段からの入力とを比較することによ
り、前記二つの状態を識別する弁別手段と、を具備する
検出スイッチにおいて、 前記閾値設定手段は、 閾値オンレベルをこれに近い前記第1,第2の入力レベ
ルのいずれか一方の一定割合分低いレベルに設定し、閾
値オフレベルを他方の入力レベルの前記一定割合分高い
レベルに設定したものであることを特徴とする検出スイ
ッチ。
7. A detection means for detecting a level corresponding to a physical state, and first and second input levels obtained from the detection means for the two physical states to be distinguished in the threshold setting mode are inputted in advance. A threshold value setting means for setting a threshold value based on the input level, and a discrimination method for discriminating the two states by comparing the threshold value set by the threshold value setting means with the input from the detecting means in the detection mode. In the detection switch including means, the threshold setting means sets the threshold on level to a level lower by a certain percentage of the first and second input levels close to the threshold on level, and sets the threshold off level to A detection switch, which is set to a level that is higher than the other input level by the predetermined percentage.
【請求項8】 前記閾値設定手段による閾値オンレベル
は物体の検出信号を出力する検出レベルであり、前記閾
値オフレベルは物体の非検出を出力する非検出レベルで
あり、 前記検出レベルに対して安定検出レベルを、非検出レベ
ルに対する安定非検出レベルを、夫々同一のレベル差に
設定する安定レベル検出手段を更に有するものであるこ
とを特徴とする請求項1〜7のいずれか1項記載の検出
スイッチ。
8. The threshold on level by the threshold setting means is a detection level for outputting a detection signal of an object, and the threshold off level is a non-detection level for outputting non-detection of an object, with respect to the detection level. 8. The stable level detecting means for setting the stable non-detection level and the stable non-detection level to the same level difference, respectively, further comprises stable level detecting means. Detection switch.
【請求項9】 前記閾値設定手段による閾値オンレベル
は物体を検出信号を出力する検出レベルであり、前記閾
値オフレベルは物体の非検出を出力する非検出レベルで
あり、 前記検出レベルと非検出レベルとの上下に、夫々前記第
1,第2の入力レベルのうちより高い入力レベルと他方
の入力レベルとの比で振り分けられた安定検出レベルと
安定非検出レベルとを設定する安定レベル設定手段を更
に有するものであることを特徴とする請求項1〜7のい
ずれか1項記載の検出スイッチ。
9. The threshold on level by the threshold setting means is a detection level for outputting an object detection signal, and the threshold off level is a non-detection level for outputting non-detection of the object. Stable level setting means for setting a stable detection level and a stable non-detection level distributed above and below the level, respectively, by the ratio of the higher input level of the first and second input levels to the other input level. The detection switch according to any one of claims 1 to 7, further comprising:
JP15838395A 1995-05-31 1995-05-31 Glossy switch and detection switch Expired - Fee Related JP3440393B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15838395A JP3440393B2 (en) 1995-05-31 1995-05-31 Glossy switch and detection switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15838395A JP3440393B2 (en) 1995-05-31 1995-05-31 Glossy switch and detection switch

Publications (2)

Publication Number Publication Date
JPH08330931A true JPH08330931A (en) 1996-12-13
JP3440393B2 JP3440393B2 (en) 2003-08-25

Family

ID=15670524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15838395A Expired - Fee Related JP3440393B2 (en) 1995-05-31 1995-05-31 Glossy switch and detection switch

Country Status (1)

Country Link
JP (1) JP3440393B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002357669A (en) * 2001-05-31 2002-12-13 Sunx Ltd Photoelectric sensor
JP2008288030A (en) * 2007-05-17 2008-11-27 Hochiki Corp Opening/closing sensor
JP2009278069A (en) * 2008-04-17 2009-11-26 Dainippon Screen Mfg Co Ltd Heat treatment device
JP2010129005A (en) * 2008-11-30 2010-06-10 Hochiki Corp Window opening/closing detecting device
JP2016184832A (en) * 2015-03-26 2016-10-20 アズビル株式会社 Switching method of adjustment mode in photoelectric sensor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002357669A (en) * 2001-05-31 2002-12-13 Sunx Ltd Photoelectric sensor
JP2008288030A (en) * 2007-05-17 2008-11-27 Hochiki Corp Opening/closing sensor
JP2009278069A (en) * 2008-04-17 2009-11-26 Dainippon Screen Mfg Co Ltd Heat treatment device
JP2010129005A (en) * 2008-11-30 2010-06-10 Hochiki Corp Window opening/closing detecting device
JP2016184832A (en) * 2015-03-26 2016-10-20 アズビル株式会社 Switching method of adjustment mode in photoelectric sensor

Also Published As

Publication number Publication date
JP3440393B2 (en) 2003-08-25

Similar Documents

Publication Publication Date Title
US4999461A (en) Coordinates input apparatus
US7106451B2 (en) Frequency splitting laser micrometer
JP3440393B2 (en) Glossy switch and detection switch
US5922960A (en) Ultrasonic material constant measuring system
US5570299A (en) Coordinate input apparatus, vibration sensing device and method of evaluating same
JP3264143B2 (en) Optical sensor device
JP3264162B2 (en) Glossiness determination sensor device
JPH11325823A (en) Distance measuring apparatus, object detecting apparatus using the same, and light receiving signal processing circuit
JPS63154911A (en) Apparatus for measuring road surface
JP2746166B2 (en) Transparent object detection sensor
EP0368351A2 (en) Coordinate input apparatus
DE60233285D1 (en) coin processing
JP2001013260A (en) Foreign matter detector
JP2816257B2 (en) Non-contact displacement measuring device
JPS62192610A (en) Noncontact displacement measuring instrument
JPH11282614A (en) Coordinate input device, its control method and computer readable memory
JP3354992B2 (en) Lens meter
JPH054004B2 (en)
JPH0616255B2 (en) Coordinate input device
JPH06291573A (en) Amplifier circuit
JPH07146365A (en) Ultrasonic detector
JP2001311689A (en) Method for judging degree of glossiness on surface of object
JPH1117513A (en) Sensor switch
JPH046410A (en) Photoelectric switch
JPS6049206A (en) Body displacement detector

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080620

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090620

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees