JP2008218021A - Transparent body detecting sensor - Google Patents

Transparent body detecting sensor Download PDF

Info

Publication number
JP2008218021A
JP2008218021A JP2007050032A JP2007050032A JP2008218021A JP 2008218021 A JP2008218021 A JP 2008218021A JP 2007050032 A JP2007050032 A JP 2007050032A JP 2007050032 A JP2007050032 A JP 2007050032A JP 2008218021 A JP2008218021 A JP 2008218021A
Authority
JP
Japan
Prior art keywords
transparent body
threshold level
value
threshold
level
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
JP2007050032A
Other languages
Japanese (ja)
Inventor
Toru Wake
徹 和氣
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.)
Panasonic Industrial Devices SUNX Co Ltd
Original Assignee
Sunx Ltd
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 Sunx Ltd filed Critical Sunx Ltd
Priority to JP2007050032A priority Critical patent/JP2008218021A/en
Publication of JP2008218021A publication Critical patent/JP2008218021A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a transparent body detecting sensor capable of getting rid of influence of the lens effect of a transparent body, and stably detecting the transparent body when the received light quantity of a light receiving part fluctuates due to dirt on lenses provided in a light projection part, the light receiving part, and an optical path, and when it is used for a long period of time. <P>SOLUTION: This transparent body detecting sensor 10 functions as a threshold value setting means to set a second threshold value level region for a microcomputer to determine a non-detected state. When the microcomputer 16 sets the second threshold value level region, it is set so that a range of values shifted to plus and minus respectively with respect to the received light quantity level under the non-detected state in the past by a prescribed quantity (that is M %) is used as the second threshold value level region. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、透明体を被検出体とする透明体検出センサに関する。   The present invention relates to a transparent body detection sensor having a transparent body as a detection target.

ビンやペットボトルのような透明体を検出する透明体検出センサでは、回帰反射型の透明体検出センサが公知である。回帰反射型の透明体検出センサは、投光部から投光した光を回帰反射板により反射させて投光部側に配置された受光部により反射光を受光させて、その受光量の変化により、投光部(受光部)と回帰反射板間を通過する透明体を検出するものである。前記回帰反射板は、多数のコーナキューブが隙間なく配置されており、入射した光を各コーナキューブのピッチ分だけ光軸より平行にシフトさせて投光部側に反射するようにされている。   As a transparent body detection sensor for detecting a transparent body such as a bottle or a plastic bottle, a regression reflection type transparent body detection sensor is known. The retroreflective type transparent body detection sensor reflects the light projected from the light projecting unit by the retroreflecting plate and receives the reflected light by the light receiving unit arranged on the light projecting unit side, and changes the amount of received light. The transparent body passing between the light projecting section (light receiving section) and the retroreflecting plate is detected. The recursive reflecting plate has a large number of corner cubes arranged without gaps, and the incident light is reflected parallel to the optical axis by the pitch of each corner cube and reflected to the light projecting portion side.

上記回帰反射板を有することにより、回帰反射板型の透明体検出センサでは透明体を2回通過した光を受光部が検出することになるため、前記回帰反射板の配置位置に受光素子を配置する透過型の透明体検出センサよりも、受光部での受光量のレベルが減衰するため、透明体の検出がしやすくなり有利である。   Since the light receiving section detects the light that has passed through the transparent body twice in the recursive reflection plate type transparent body detection sensor by having the above-mentioned regressive reflection board, the light receiving element is disposed at the position where the recursive reflection board is disposed. Since the level of the amount of light received at the light receiving portion is attenuated, the transparent body can be detected more easily than the transparent type transparent body detection sensor.

ところで、ビンやペットボトルの場合のように、透明体の曲面形状、或いは厚みによるレンズ効果によって透過光が受光部に向けて集光して、透過光の光強度が減衰せず、被検出体が存在するにもかかわらず、非検出判定を行ってしまうことがある。   By the way, as in the case of bottles and plastic bottles, the transmitted light is condensed toward the light receiving part by the curved surface shape or thickness of the transparent body, and the light intensity of the transmitted light is not attenuated. In spite of the existence of non-detection, non-detection determination may be performed.

この問題を解決するために、レンズ効果の影響を受けないように投光素子の出射範囲をスリットにより限定する光学設計を行った透明体検出センサも提案されている(特許文献1)。
特開平10−255612号公報
In order to solve this problem, a transparent body detection sensor has been proposed in which an optical design that limits the emission range of the light projecting element with a slit so as not to be affected by the lens effect (Patent Document 1).
JP-A-10-255612

しかし、特許文献1の光路設計によってでは、長期にわたる使用により投光部や、受光部及び光路上に設けられるレンズの汚れなどにより受光部の受光量に変動がある場合には、対応できない問題があった。   However, according to the optical path design of Patent Document 1, there is a problem that cannot be dealt with when the amount of light received by the light receiving unit varies due to dirt of the light projecting unit, the light receiving unit and the lens provided on the optical path due to long-term use. there were.

本発明の目的は、透明体のレンズ効果の影響をなくすことができるとともに、投光部や、受光部及び光路上に設けられるレンズの汚れなどにより受光部の受光量に変動がある場合、或いは長期の使用によっても安定した透明体の検出が可能な透明体検出センサを提供することにある。   The object of the present invention is to eliminate the influence of the lens effect of the transparent body, and when the amount of light received by the light receiving unit varies due to dirt on the light projecting unit, the light receiving unit and the lens provided on the optical path, or An object of the present invention is to provide a transparent body detection sensor capable of stably detecting a transparent body even after long-term use.

上記問題点を解決するために、請求項1に記載の発明は、投光手段と、前記投光手段からの光を反射する回帰反射板と、前記回帰反射板からの反射光を受光する受光手段と、前記受光手段の受光量に応じたレベルと第1閾値レベルとの大小を判定することにより、前記投光手段及び受光手段と前記回帰反射板との間を通過する透明体が検出状態であるとの判定を行い、前記受光量に応じたレベルが前記第1閾値レベルとは異なる第2閾値レベル領域の範囲内に所定時間継続するとき、前記透明体が検出されていない非検出状態であると判定する検出手段とを、備える透明体検出センサにおいて、前記非検出状態の判定を行うための第2閾値レベル領域を設定する閾値設定手段を備え、当該閾値設定手段は、前記第2閾値レベル領域の設定に際して、過去の非検出状態における受光量レベルに対して所定量プラスとマイナスにそれぞれシフトした値の範囲を前記第2閾値レベル領域とするように設定することを特徴とする透明体検出センサを要旨とするものである。   In order to solve the above problem, the invention according to claim 1 is a light projecting unit, a regressive reflection plate that reflects light from the light projecting unit, and a light receiving device that receives reflected light from the regressive reflection plate. And a transparent body that passes between the light projecting means and the light receiving means and the regressive reflecting plate is detected by determining the magnitude of the first threshold level and the level corresponding to the amount of light received by the light receiving means. When the level corresponding to the amount of received light continues for a predetermined time within a range of a second threshold level region different from the first threshold level, the transparent body is not detected. A transparent body detection sensor comprising: a threshold value setting means for setting a second threshold level region for determining the non-detection state, wherein the threshold value setting means includes the second threshold level setting means. When setting the threshold level area The transparent body detection sensor is characterized in that a range of values shifted respectively by a predetermined amount plus and minus with respect to the received light amount level in the past non-detection state is set as the second threshold level region. It is what.

請求項1の発明では、閾値設定手段が、第2閾値レベル領域の設定に際して、過去の非検出状態における受光量レベルに対して所定量プラスとマイナスにそれぞれシフトした値の範囲を新たな第2閾値レベル領域として設定する。このことによって、第2閾値レベル領域が更新されるため、長期の使用によって受光量レベル、特に、非検出状態の受光量レベルが低下した場合においても、或いは、透明体のレンズ効果による悪影響も抑制でき、安定した非検出状態の判定を行うことができる。   According to the first aspect of the present invention, when the second threshold level region is set, the threshold value setting unit newly sets a second range of values each shifted by a predetermined amount plus and minus with respect to the received light amount level in the past non-detection state. Set as threshold level area. As a result, the second threshold level region is updated, so that even when the received light amount level, particularly the non-detected received light amount level, decreases due to long-term use, or adverse effects due to the lens effect of the transparent body are suppressed. And a stable non-detection state can be determined.

請求項2の発明は、請求項1において、前記閾値設定手段は、第2閾値レベル領域の設定に際して、過去の非検出状態における受光量レベルに対して所定量プラスとマイナスにそれぞれシフトした値が、それぞれ予め定められたプラス側の第1限界値又はマイナス側の第2限界値を越えた場合、設定を禁止することを特徴とする。   According to a second aspect of the present invention, in the first aspect, when the second threshold level region is set, the threshold value setting unit has a value that is shifted by a predetermined amount plus and minus with respect to the received light amount level in the past non-detection state. The setting is prohibited when a predetermined first limit value on the positive side or a second limit value on the negative side is exceeded.

請求項2の発明によれば、過剰な第2閾値レベル領域の設定の行き過ぎを防止することができる。
請求項3の発明は、請求項1又は請求項2において、前記所定量は、固定値であることを特徴とする。
According to the invention of claim 2, it is possible to prevent excessive setting of the second threshold level region.
According to a third aspect of the present invention, in the first or second aspect, the predetermined amount is a fixed value.

請求項3の発明によれば、閾値設定手段が第2閾値レベル領域の設定に際して、過去の非検出状態における受光量レベルに対して固定値である所定量をプラスとマイナスにそれぞれシフトした値が、それぞれ予め定められたプラス側の第1限界値又はマイナス側の第2限界値を越えた場合、設定を禁止する。このことにより、過剰な第2閾値レベル領域の設定の行き過ぎを防止することができる。 請求項4の発明は、請求項1乃至請求項3のうちいずれか1項において、前記閾値設定手段は、前記第2閾値レベル領域の設定を、透明体の非検出状態が終了する毎に行うことを特徴とする。   According to the invention of claim 3, when the threshold value setting means sets the second threshold level region, the predetermined amount which is a fixed value with respect to the light reception amount level in the past non-detection state is shifted to plus and minus respectively. When the predetermined first limit value on the plus side or the second limit value on the minus side is exceeded, the setting is prohibited. This can prevent excessive setting of the second threshold level region. According to a fourth aspect of the present invention, in any one of the first to third aspects, the threshold value setting unit performs the setting of the second threshold level region every time the transparent body non-detection state ends. It is characterized by that.

請求項4の発明によれば、第2閾値レベル領域の設定が毎回行われるため、受光量レベルの変化に応じて対応できる。
請求項5の発明は、請求項1乃至請求項3のうちいずれか1項において、前記閾値設定手段は、前記第2閾値レベル領域の設定を、透明体の非検出状態が終了する終了回数が所定回数になる毎に行うことを特徴とする。
According to the fourth aspect of the invention, since the setting of the second threshold level region is performed every time, it is possible to cope with the change in the received light amount level.
According to a fifth aspect of the present invention, in any one of the first to third aspects, the threshold value setting means sets the second threshold level region according to an end count at which the transparent body non-detection state ends. This is performed every time the predetermined number of times is reached.

請求項5の発明によれば、第2閾値レベル領域の設定が透明体の非検出状態が終了する終了回数が所定回数になる毎に行われるため、第2閾値レベル領域の設定が必要か否かの条件判断を行って再設定する場合に比して、再設定のタイミングが所定回をカウントするという簡単な処理だけでよくなり、再設定のための処理回路の負荷が少なくて済む効果がある。   According to the fifth aspect of the invention, since the setting of the second threshold level region is performed every time the end number of times the non-detection state of the transparent body ends is a predetermined number of times, it is necessary to set the second threshold level region. Compared with the case where the condition is determined and reset, only a simple process of counting the reset timing at a predetermined number of times is required, and the load on the processing circuit for the reset can be reduced. is there.

請求項6の発明は、請求項1乃至請求項3のうちいずれか1項において、前記閾値設定手段は、過去の非検出状態における受光量レベルが、予め設定された許容レベルと比較して、同許容レベルを越える変化があった際、前記第2閾値レベル領域の設定を行うことを特徴とする。   A sixth aspect of the present invention provides the method according to any one of the first to third aspects, wherein the threshold value setting unit compares the received light amount level in the past non-detection state with a preset allowable level, The second threshold level region is set when there is a change exceeding the allowable level.

請求項6の発明によれば、無駄な再設定を行うことなく本当に必要なときに第2閾値レベル領域が再設定できる。
請求項7の発明は、請求項1乃至請求項6のうちいずれか1項において、電源が遮断された際に、最新の第2閾値レベル領域の値を記憶するとともに電源が投入された際に、前記記憶した最新の第2閾値レベル領域の値が読出し可能な記憶手段を備えたことを特徴とする。
According to the sixth aspect of the present invention, the second threshold level region can be reset when it is really necessary without performing unnecessary resetting.
A seventh aspect of the present invention is the storage medium according to any one of the first to sixth aspects, wherein when the power is shut off, the latest value of the second threshold level region is stored and the power is turned on. The storage means is capable of reading out the latest stored value of the second threshold level region.

請求項7の発明によれば、電源が遮断された際には、最新の第2閾値レベル領域の値が記憶手段に記憶され、電源が投入された際に、前記記憶した最新の第2閾値レベル領域の値が読出しできるため、電源が投入された際に常に更新された第2閾値レベル領域の値を使用することができる。   According to the invention of claim 7, when the power is shut off, the latest value of the second threshold level region is stored in the storage means, and when the power is turned on, the stored latest second threshold value is stored. Since the value of the level region can be read, the value of the second threshold level region that is always updated when the power is turned on can be used.

以上詳述したように、請求項1乃至請求項7の発明によれば、透明体のレンズ効果の影響をなくすことができるとともに、投光手段(投光部)や、受光手段(受光部)及び光路上に設けられるレンズの汚れなどにより受光部の受光量に変動がある場合、或いは長期の使用によっても安定した透明体の検出を行うことができる。   As described above in detail, according to the inventions of claims 1 to 7, the influence of the lens effect of the transparent body can be eliminated, and the light projecting means (light projecting part) or the light receiving means (light receiving part). In addition, when the amount of light received by the light receiving unit varies due to dirt on the lens provided on the optical path, or even when used for a long time, a stable transparent body can be detected.

以下、本発明を具体化した一実施形態を図1〜図3を参照して説明する。
透明体検出センサ10は図1に示すように投光素子11及び受光素子12等を備えるセンサ本体13を備えている。投光素子11は、例えばLED、レーザダイオード等から構成されている。又、受光素子12は、例えばファトダイオードやフォトトランジスタ等から構成されている。投光素子11は、図示しない投光素子駆動回路から駆動電流が与えられることにより発光する。投光素子11は本発明の投光手段に相当する。
Hereinafter, an embodiment embodying the present invention will be described with reference to FIGS.
As shown in FIG. 1, the transparent body detection sensor 10 includes a sensor body 13 including a light projecting element 11, a light receiving element 12, and the like. The light projecting element 11 is composed of, for example, an LED or a laser diode. The light receiving element 12 is composed of, for example, a photodiode or a phototransistor. The light projecting element 11 emits light when a drive current is applied from a light projecting element drive circuit (not shown). The light projecting element 11 corresponds to the light projecting means of the present invention.

投光素子11から投光された光は図示しないレンズにより平行な投光ビームにされ、投光素子11から離間して配置された回帰反射板14に入射する。回帰反射板14は多数のコーナキューブが密に配置されており、入射された光を各コーナキューブのピッチ分だけ光軸より平行にシフトさせて受光素子12側に反射させる。受光素子12は、受光した光の光量(受光量)に応じたレベルの受光信号を出力する。該受光信号は図示しないA/D変換器によってA/D変換されて受光量としてその時々にマイクロコンピュータ16の図示しないバッファに取り込まれる。前記受光素子12は本発明の受光手段に相当する。   The light projected from the light projecting element 11 is made into a parallel light projecting beam by a lens (not shown), and is incident on the regressive reflection plate 14 disposed away from the light projecting element 11. A large number of corner cubes are densely arranged on the retroreflecting plate 14, and the incident light is shifted in parallel from the optical axis by the pitch of each corner cube and reflected to the light receiving element 12 side. The light receiving element 12 outputs a light reception signal at a level corresponding to the amount of received light (amount of received light). The received light signal is A / D converted by an A / D converter (not shown) and is taken into a buffer (not shown) of the microcomputer 16 as a received light amount. The light receiving element 12 corresponds to the light receiving means of the present invention.

マイクロコンピュータ16は、図示しないCPU、ROMや、不揮発性メモリであるフラッシュメモリ等からなるEEPROM19、RAM(図示しない)を備え、図2に示されている検出手段17、閾値設定手段18の機能を有している。前記ROMには、検出プログラムが格納されている。なお、EEPROM19は不揮発性メモリであれば、他のメモリで構成されていてもよい。   The microcomputer 16 includes a CPU, a ROM (not shown), an EEPROM 19 including a flash memory which is a nonvolatile memory, and a RAM (not shown), and functions as the detection means 17 and the threshold setting means 18 shown in FIG. Have. A detection program is stored in the ROM. The EEPROM 19 may be composed of other memories as long as it is a nonvolatile memory.

そして、透明体検出センサ10は、投光素子11及び受光素子12を備えたセンサ本体13と回帰反射板14との間に設けられた被検出体としての透明体Wが通過する通過経路を例えば挟むように対向配置される。透明体Wは例えばビンやペットボトルが挙げられる。   And the transparent body detection sensor 10 passes the passage route through which the transparent body W as a detected body provided between the sensor main body 13 provided with the light projecting element 11 and the light receiving element 12 and the return reflection plate 14 passes, for example. Opposing to be sandwiched. Examples of the transparent body W include bottles and plastic bottles.

(作用)
次に、本実施形態の透明体検出センサ10の作用を図3のフローチャートを参照して説明する。このフローチャートは、マイクロコンピュータ16のROMに格納された検出プログラムによる処理を表わしており、数msec毎に定時的に実行される。
(Function)
Next, the operation of the transparent body detection sensor 10 of the present embodiment will be described with reference to the flowchart of FIG. This flowchart represents processing by a detection program stored in the ROM of the microcomputer 16 and is executed regularly every several msec.

S10では、マイクロコンピュータ16は前記バッファに格納された受光素子12の受光量を読込み、S20ではその受光量レベルと第2閾値レベル領域との比較を行う。第2閾値レベル領域は、上限値TH2hと下限値TH2l(<TH2h)の範囲を持つ。この範囲は、透明体Wがセンサ本体13と回帰反射板14間を通過しない状態で、投光素子11が受光する受光量を検出するために予め設定された値である。最初にこのプログラムが起動された際には、上限値TH2hと下限値TH2lの初期値として初期設定により入力された値を使用する。又、上限値TH2hと下限値TH2lが更新される作業時にはRAMに書き込まれ、透明体検出センサ10が使用されない際には、前記EEPROMに格納されて保存され、次の起動時に読み込まれて使用される。   In S10, the microcomputer 16 reads the received light amount of the light receiving element 12 stored in the buffer, and in S20, compares the received light amount level with the second threshold level region. The second threshold level region has a range of an upper limit value TH2h and a lower limit value TH2l (<TH2h). This range is a value set in advance to detect the amount of light received by the light projecting element 11 in a state where the transparent body W does not pass between the sensor main body 13 and the return reflection plate 14. When this program is started for the first time, the values input by the initial setting are used as the initial values of the upper limit value TH2h and the lower limit value TH2l. In addition, the upper limit value TH2h and the lower limit value TH2l are written in the RAM when the update is performed, and stored and stored in the EEPROM when the transparent body detection sensor 10 is not used. The

ここで、マイクロコンピュータ16は更新した第2閾値レベル領域(すなわち、上限値TH2hと下限値TH2l)を記憶する記憶手段に相当する。
S20において、受光量レベルが第2閾値レベル領域内であれば、S30に移行する。S30では、マイクロコンピュータ16は読込みした今回の受光量レベル(以下、今回値Gaという)が前回の受光量レベル(以下、前回値Goという)と同じレベルか否か、及び同じレベルが所定時間継続しているか否かを判定する。すなわち、S30では、受光量レベルが安定して入力されているかを判定しているのである。ここで所定時間とは、受光量レベルが安定しているかを判定するための時間であり、この時間は、複数の透明体Wが送られる場合の該透明体W同士の間隔や、透明体Wの送り速度に応じて設定される。そして、受光量レベルが安定しているのであれば、マイクロコンピュータ16は、透明体Wがセンサ本体13と回帰反射板14間の通過経路を通過していないと判定(「YES」と判定)し、安定していないのであれば、透明体Wが同通過経路を通過中のため変動していると判定(すなわち、「NO」と判定)するのである。
Here, the microcomputer 16 corresponds to storage means for storing the updated second threshold level region (that is, the upper limit value TH2h and the lower limit value TH2l).
In S20, if the received light amount level is within the second threshold level region, the process proceeds to S30. In S30, the microcomputer 16 reads whether or not the current received light amount level (hereinafter referred to as current value Ga) is the same level as the previous received light amount level (hereinafter referred to as previous value Go), and the same level continues for a predetermined time. It is determined whether or not. That is, in S30, it is determined whether the received light amount level is stably input. Here, the predetermined time is a time for determining whether the received light amount level is stable, and this time is an interval between the transparent bodies W when a plurality of transparent bodies W are sent, or the transparent body W. Is set according to the feed rate. If the received light amount level is stable, the microcomputer 16 determines that the transparent body W does not pass through the passage between the sensor body 13 and the regressive reflection plate 14 (determines “YES”). If it is not stable, it is determined that the transparent body W is fluctuating because it is passing through the passage route (that is, “NO” is determined).

S30でマイクロコンピュータ16は「NO」と判定すると、この検出プログラムの処理を一旦終了する。又、S30で「YES」と判定すると、マイクロコンピュータ16は、S40において、検出フラグFをリセット(すなわち、「0」に)し、通過経路に透明体Wが通過しておらず、非検出状態とする。なお、この検出プログラムを起動した時の検出フラグFはリセットされている。   If the microcomputer 16 determines “NO” in S30, the process of this detection program is once terminated. If “YES” is determined in S30, the microcomputer 16 resets the detection flag F in S40 (that is, “0”), and the transparent body W does not pass through the passage route, and the non-detection state is detected. And The detection flag F when the detection program is started is reset.

又、S20において、今回値Gaが第2閾値レベル領域外であれば、S50に移行する。
S50では、マイクロコンピュータ16は、今回値Gaと第1閾値レベルTH1との比較を行う。マイクロコンピュータ16は、今回値Ga>第1閾値レベルTH1のときは、この検出プログラムの処理を一旦終了する。又、マイクロコンピュータ16は、今回値Gaが第1閾値レベルTH1以下と判定すると、S60において、検出フラグFが1にセットされているか否かを判定する。検出フラグFが1にセットされている場合は、この検出プログラムの処理を一旦終了する。
In S20, if the current value Ga is outside the second threshold level region, the process proceeds to S50.
In S50, the microcomputer 16 compares the current value Ga with the first threshold level TH1. When the current value Ga> the first threshold level TH1, the microcomputer 16 once ends the processing of this detection program. If the microcomputer 16 determines that the current value Ga is equal to or lower than the first threshold level TH1, the microcomputer 16 determines whether or not the detection flag F is set to 1 in S60. If the detection flag F is set to 1, the processing of this detection program is temporarily terminated.

S60において、検出フラグFが1にセットされていないと判定すると、マイクロコンピュータ16は、S70において、検出フラグFを1にセットする。すなわち、透明体検出センサ10により透明体Wが検出状態であるとする。   If it is determined in S60 that the detection flag F is not set to 1, the microcomputer 16 sets the detection flag F to 1 in S70. That is, it is assumed that the transparent body W is in a detection state by the transparent body detection sensor 10.

そして、続くS80において、マイクロコンピュータ16は、第2閾値レベル領域の設定処理を行う。具体的には、マイクロコンピュータ16は、今回値Gaではなく、過去の受光量レベルにおいて、第2閾値レベル領域にあった最新の受光量レベルGをバッファから読込みし、この値に所定量としてM%の値を加減算(シフト)する。すなわち、受光量レベルG±M%を算出し、G+M%の値を新たな第2閾値レベル領域の上限値TH2hとし、G−M%の値を新たな第2閾値レベル領域の下限値TH2lとする。そして、この更新された上限値TH2hと下限値TH2lの範囲を次回以降の検出タイミングに使用する新たな第2閾値レベル領域とする。なお、M%は、試験値等で得られた値であり、固定値である。   In subsequent S80, the microcomputer 16 performs a setting process for the second threshold level region. Specifically, the microcomputer 16 reads the latest received light amount level G in the second threshold level region from the buffer at the past received light amount level instead of the current value Ga, and sets M as a predetermined amount to this value. Add or subtract (shift) the% value. That is, the received light amount level G ± M% is calculated, the value of G + M% is set as the upper limit value TH2h of the new second threshold level region, and the value of G−M% is set as the lower limit value TH2l of the new second threshold level region. To do. Then, the updated range of the upper limit value TH2h and the lower limit value TH2l is set as a new second threshold level region that is used at the next and subsequent detection timings. M% is a value obtained from a test value or the like, and is a fixed value.

マイクロコンピュータ16はS80の処理を終了すると、この検出プログラムの処理を一旦終了する。又、更新された上限値TH2hと下限値TH2lの範囲(すなわち、新たな第2閾値レベル領域の値)はEEPROM19に格納される。   When the microcomputer 16 finishes the process of S80, the process of this detection program is once finished. The updated range of the upper limit value TH2h and the lower limit value TH2l (that is, the value of the new second threshold level region) is stored in the EEPROM 19.

図2は、上記のように構成された透明体検出センサ10の検出状態と非検出状態を示す受光量レベルと第1閾値レベルTH1、第2閾値レベル領域(上限値TH2h、下限値TH2l)との関係を示している。図2において、横軸は時間tであり、縦軸は受光量レベルを示している。   FIG. 2 shows the received light amount level indicating the detection state and non-detection state of the transparent body detection sensor 10 configured as described above, the first threshold level TH1, the second threshold level region (upper limit value TH2h, lower limit value TH2l), and Shows the relationship. In FIG. 2, the horizontal axis represents time t, and the vertical axis represents the received light amount level.

図2に示すように、検出タイミングt1よりも前回の検出タイミングまでは非検出状態であったとき、t1の検出タイミングにおいて検出プログラムが実行されると、S10,S20,S50〜S80の処理が行われる。そして、次の検出タイミングt2で、検出プログラムが実行されて、S10,S20,S50を介してS60に移行したときは、前の検出タイミングt1で検出フラグFは「1」にセットされているため、S60で、「YES」とされて、この検出プログラムを終了する。   As shown in FIG. 2, when the detection program is executed at the detection timing of t1, when the detection program is executed from the detection timing t1 until the previous detection timing, the processes of S10, S20, and S50 to S80 are performed. Is called. When the detection program is executed at the next detection timing t2 and the process proceeds to S60 via S10, S20, and S50, the detection flag F is set to “1” at the previous detection timing t1. In S60, “YES” is set, and the detection program is terminated.

又、図2において、検出タイミングtmは、透明体Wのレンズ効果により受光量レベルが第2閾値レベル領域内にあるときのものである。この場合、図2において、検出状態であるときの検出タイミングtmにおいて、検出プログラムが実行された場合、S10,S20に移行すると、S20では今回値Gaが「領域内」であると判定されて、S30に移行する。このとき、図2に示すように、前回値Goは今回値Gaよりも小さな値であるため、同じレベルではないとして「NO」と判定されてこの検出プログラムが終了される。   In FIG. 2, the detection timing tm is when the received light amount level is within the second threshold level region due to the lens effect of the transparent body W. In this case, in FIG. 2, when the detection program is executed at the detection timing tm in the detection state, when the process proceeds to S10 and S20, it is determined in S20 that the current value Ga is “in area”. The process proceeds to S30. At this time, as shown in FIG. 2, since the previous value Go is smaller than the current value Ga, it is determined that the level is not the same and “NO” is determined, and the detection program is terminated.

このように透明体Wのレンズ効果により受光量レベルが増加して第2閾値レベル領域内にあってもS30では、前回値Goと今回値Gaとが同じレベルでないと判定されるため、透明体Wのレンズ効果により受光量レベルが増加しても誤検出を防止できる。   Thus, even if the received light amount level is increased by the lens effect of the transparent body W and is within the second threshold level region, it is determined in S30 that the previous value Go and the current value Ga are not the same level. Even if the amount of received light increases due to the W lens effect, erroneous detection can be prevented.

又、図2において、検出タイミングtnは、透明体Wのレンズ効果により受光量レベルが第2閾値レベル領域を越えたときのものである。この場合、図2において、検出状態であるときの検出タイミングtnにおいて、検出プログラムが実行された場合、S10,S20に移行すると、S20では今回値Gaが「領域外」であると判定されて、S50に移行する。このとき、図2に示すように、今回値Gaは、第1閾値レベルTH1よりも大であるため「NO」と判定されてこの検出プログラムが終了される。   In FIG. 2, the detection timing tn is when the received light amount level exceeds the second threshold level region due to the lens effect of the transparent body W. In this case, in FIG. 2, when the detection program is executed at the detection timing tn in the detection state, when the process proceeds to S10 and S20, it is determined in S20 that the current value Ga is “out of region”. The process proceeds to S50. At this time, as shown in FIG. 2, since the current value Ga is larger than the first threshold level TH1, it is determined as “NO” and the detection program is terminated.

このように透明体Wのレンズ効果により受光量レベルが第2閾値レベル領域の上限値TH2hを越えてもS30では、前回値Goと今回値Gaとが同じレベルでないと判定されるため、透明体Wのレンズ効果により受光量レベルが増加しても誤検出を防止できる。   Thus, even if the received light amount level exceeds the upper limit value TH2h of the second threshold level region due to the lens effect of the transparent body W, it is determined in S30 that the previous value Go and the current value Ga are not the same level. Even if the amount of received light increases due to the W lens effect, erroneous detection can be prevented.

又、図2において、検出タイミングtoは、透明体Wが通過して受光量レベルが第2閾値レベル領域内にあるときのものである。この場合、図2に示すように、検出タイミングtoにおいて、S10,S20に移行して、S20では今回値Gaが「領域内」であると判定され、さらにS30に移行したとき、今回値Gaが前回値Goと同じレベルであって、「YES」と判定されると、S40に移行して検出フラグFが0にリセットされて検出プログラムが終了される。   In FIG. 2, the detection timing to is when the transparent body W passes and the received light amount level is in the second threshold level region. In this case, as shown in FIG. 2, at the detection timing to, the process proceeds to S10 and S20. In S20, it is determined that the current value Ga is “inside the region”, and when the process further proceeds to S30, the current value Ga is If it is the same level as the previous value Go and it is determined “YES”, the process proceeds to S40, the detection flag F is reset to 0, and the detection program is terminated.

なお、この透明体検出センサ10は電源が遮断された際には、記憶手段としてのEEPROM19に、最新の更新された上限値TH2hと下限値TH2lの範囲(すなわち、新たな第2閾値レベル領域の値)が記憶保持される。又、この後、この透明体検出センサ10の電源が投入された際には、透明体Wの検出プログラムが実行される際に、EEPROM19に記憶保持された最新の更新された上限値TH2hと下限値TH2lの範囲(すなわち、新たな第2閾値レベル領域の値)が使用される。   When the power is cut off, the transparent body detection sensor 10 stores the latest updated upper limit value TH2h and lower limit value TH2l in the EEPROM 19 as a storage means (that is, a new second threshold level region). Value) is stored and held. Thereafter, when the power of the transparent body detection sensor 10 is turned on, when the transparent body W detection program is executed, the latest updated upper limit TH2h and lower limit stored in the EEPROM 19 are stored. A range of values TH2l (ie, a new second threshold level region value) is used.

(第1実施形態の作用)
さて、第1実施形態によれば、以下のような特徴がある。
(1) 本実施形態の透明体検出センサ10は、マイクロコンピュータ16が非検出状態の判定を行うための第2閾値レベル領域を設定する閾値設定手段として機能する。そして、マイクロコンピュータ16が第2閾値レベル領域の設定に際して、過去の非検出状態における受光量レベルに対して所定量(すなわち、M%)プラスとマイナスにそれぞれシフト(加減算)した値の範囲を前記第2閾値レベル領域とするように設定するようにした。
(Operation of the first embodiment)
Now, according to the first embodiment, there are the following features.
(1) The transparent body detection sensor 10 of this embodiment functions as a threshold setting unit that sets a second threshold level region for the microcomputer 16 to determine the non-detection state. When the microcomputer 16 sets the second threshold level region, a range of values obtained by shifting (adding or subtracting) a predetermined amount (that is, M%) plus and minus each with respect to the received light amount level in the past non-detection state. The second threshold level region is set.

このことによって、第2閾値レベル領域が更新されるため、長期の使用によって受光量レベル、特に、非検出状態の受光量レベルが低下した場合においても、或いは、透明体Wのレンズ効果による悪影響も抑制でき、安定した非検出状態の判定を行うことができる。   Accordingly, since the second threshold level region is updated, even when the received light amount level, particularly, the undetected received light amount level is lowered by long-term use, or there is an adverse effect due to the lens effect of the transparent body W. It can suppress and can determine the stable non-detection state.

(2) 本実施形態の透明体検出センサ10では、マイクロコンピュータ16は閾値設定手段として、第2閾値レベル領域の設定を、透明体Wの非検出状態が終了する毎に行うようにした。この結果、請求項4の発明によれば、第2閾値レベル領域の設定が毎回行われるため、受光量レベルの変化に応じて対応できる。   (2) In the transparent body detection sensor 10 of the present embodiment, the microcomputer 16 sets the second threshold level region as the threshold setting means every time the non-detected state of the transparent body W ends. As a result, according to the invention of claim 4, since the setting of the second threshold level region is performed every time, it is possible to cope with the change in the received light amount level.

(3) 本実施形態の透明体検出センサ10では、電源が遮断された際には、最新の第2閾値レベル領域の値が記憶手段としてのEEPROM19に記憶され、電源が投入された際に、前記記憶した最新の第2閾値レベル領域の値を読出しできるため、電源が投入された際に常に更新された第2閾値レベル領域の値を使用することができる。   (3) In the transparent body detection sensor 10 of the present embodiment, when the power is shut off, the latest value of the second threshold level region is stored in the EEPROM 19 as the storage means, and when the power is turned on, Since the stored value of the latest second threshold level region can be read, the updated value of the second threshold level region can be used whenever the power is turned on.

(第2実施形態)
次に第2実施形態の透明体検出センサ10を図4のフローチャートを参照して説明する。なお、ハード構成は、第1実施形態と同じ構成であるため、同一構成には同一符号を付して、その詳細な説明を省略し、異なるソフト的な相違を中心に説明する。
(Second Embodiment)
Next, the transparent body detection sensor 10 of 2nd Embodiment is demonstrated with reference to the flowchart of FIG. Since the hardware configuration is the same as that of the first embodiment, the same components are denoted by the same reference numerals, detailed description thereof is omitted, and different software differences will be mainly described.

第2実施形態では、図3のフローチャートのステップのうち、S70とS80の間に図4に示すようにS72,S74,S76が設けられているところが異なっている。
すなわち、S70の処理が終了してS72に移行すると、マイクロコンピュータ16は、カウンタCを1つインクリメントする。なお、検出プログラムが起動された際のカウンタCの初期値は0となっている。
The second embodiment is different from the steps of the flowchart of FIG. 3 in that S72, S74, and S76 are provided between S70 and S80 as shown in FIG.
That is, when the process of S70 is completed and the process proceeds to S72, the microcomputer 16 increments the counter C by one. Note that the initial value of the counter C when the detection program is started is 0.

次のS74では、マイクロコンピュータ16は、カウンタCの値がR回に達したか否かを判定する。このR回は、所定回数に相当するものであり、任意の回数に予め設定されている。S74で、マイクロコンピュータ16はカウンタCの値がR回に達していない場合は、この検出プログラムを終了する。又、マイクロコンピュータ16はカウンタCの値がR回に達している場合は、S76において、カウンタCを0にリセットして、S80の処理を行う。   In next S74, the microcomputer 16 determines whether or not the value of the counter C has reached R times. The R times correspond to a predetermined number of times and are set in advance to an arbitrary number of times. If the value of the counter C has not reached R times in S74, the microcomputer 16 ends this detection program. If the value of the counter C has reached R times, the microcomputer 16 resets the counter C to 0 in S76 and performs the process of S80.

さて、第2実施形態によれば、以下のような特徴がある。
(1) 第2実施形態の透明体検出センサ10では、マイクロコンピュータ16が第2閾値レベル領域の設定を、透明体Wの非検出状態が終了する所定回数(すなわち、R回)毎に行うようにしている。この結果、第2実施形態では透明体Wの非検出状態が終了する所定回数(すなわち、R回)毎に第2閾値レベル領域の再設定を行うため、再設定処理も少なく、再設定のための処理回路の負荷が少なくて済む効果がある。さらに、第2実施形態の透明体検出センサ10では、高速応答に適することができる。
Now, according to the second embodiment, there are the following features.
(1) In the transparent body detection sensor 10 of the second embodiment, the microcomputer 16 sets the second threshold level region every predetermined number of times (that is, R times) when the non-detection state of the transparent body W ends. I have to. As a result, in the second embodiment, since the second threshold level region is reset every predetermined number of times (that is, R times) when the non-detection state of the transparent body W is completed, the reset process is less and the resetting is performed. This has the effect of reducing the load on the processing circuit. Furthermore, the transparent body detection sensor 10 of the second embodiment can be suitable for high-speed response.

(第3実施形態)
次に、第3実施形態を図5のフローチャートを参照して説明する。なお、ハード構成は、第1実施形態と同じ構成であるため、同一構成には同一符号を付して、その詳細な説明を省略し、異なるソフト的な相違を中心に説明する。
(Third embodiment)
Next, a third embodiment will be described with reference to the flowchart of FIG. Since the hardware configuration is the same as that of the first embodiment, the same components are denoted by the same reference numerals, detailed description thereof is omitted, and different software differences will be mainly described.

第3実施形態では、図3のフローチャートのステップのうち、S70とS80の間に図5に示すようにS78が設けられているところが異なっている。
すなわち、S70の処理が終了してS78に移行すると、マイクロコンピュータ16は過去の最新の非検出状態における受光量レベルが、予め設定された許容レベル範囲内に有るか否かを判定する。
The third embodiment is different from the flowchart of FIG. 3 in that S78 is provided between S70 and S80 as shown in FIG.
That is, when the processing of S70 is completed and the routine proceeds to S78, the microcomputer 16 determines whether or not the received light amount level in the past latest non-detection state is within a preset allowable level range.

この許容レベル範囲とは、試験値等により得られた値である。過去の最新の非検出状態における受光量レベルが、許容レベル範囲内に無い(すなわち、許容レベル範囲を越えて変化している)と判定すると、マイクロコンピュータ16は、S80の処理を行うことになる。   This allowable level range is a value obtained from a test value or the like. If the microcomputer 16 determines that the received light amount level in the latest latest non-detection state is not within the allowable level range (that is, has changed beyond the allowable level range), the microcomputer 16 performs the process of S80. .

さて、第3実施形態によれば、以下のような特徴がある。
(3) 第3実施形態の透明体検出センサ10では、マイクロコンピュータ16は閾値設定手段として、過去の非検出状態における受光量レベルが、予め設定された許容レベルと比較して、同許容レベルを越える変化があった際、第2閾値レベル領域の設定を行うようにしている。この結果、第3実施形態では、第1実施形態と異なり、透明体Wの非検出状態が終了する毎に行わないため、無駄に再設定を行うことなく受光量レベルが減衰して再設定が必要なときに第2閾値レベル領域を再設定できる効果を奏する。
Now, according to the third embodiment, there are the following features.
(3) In the transparent body detection sensor 10 of the third embodiment, the microcomputer 16 serves as a threshold value setting means for comparing the received light amount level in the past non-detection state with a preset allowable level. When there is a change exceeding, the second threshold level region is set. As a result, unlike the first embodiment, the third embodiment is not performed every time the non-detected state of the transparent body W is completed, and thus the received light amount level is attenuated and resetting is performed without wasteful resetting. The second threshold level region can be reset when necessary.

なお、本発明の実施形態は以下のように変更してもよい。
○ 前記各実施形態において、図6に示すようにS70の処理の後、S90,S100の処理を追加してもよい。すなわち、S90では、マイクロコンピュータ16は第2閾値レベル領域の上限値TH2hが第1限界値を越えたか、又は、下限値TH2lが第2限界値を越えたか否かを判定する。
In addition, you may change embodiment of this invention as follows.
In each of the above embodiments, the processes of S90 and S100 may be added after the process of S70 as shown in FIG. That is, in S90, the microcomputer 16 determines whether the upper limit value TH2h of the second threshold level region exceeds the first limit value or whether the lower limit value TH2l exceeds the second limit value.

ここで、第1限界値は、第2閾値レベル領域の上限値TH2hの初期値のQ1%(例えば50%)とし、第2限界値は、第2閾値レベル領域の下限値TH2lの初期値のQ2%(例えば50%)とする。なお、Q1はQ2は、予め試験値等により設定するものとし、両者は、同じ値でもよく、又は異なる値でもよい。   Here, the first limit value is Q1% (for example, 50%) of the initial value of the upper limit value TH2h of the second threshold level region, and the second limit value is the initial value of the lower limit value TH2l of the second threshold level region. Q2% (for example, 50%). In addition, Q1 shall set Q2 beforehand by a test value etc., and both may be the same value or a different value.

そして、S90において、マイクロコンピュータ16は第2閾値レベル領域の上限値TH2hが第1限界値を越えておらず、かつ、下限値TH2lが第2限界値を越えていない場合には、この検出プログラムを一旦終了する。   In S90, the microcomputer 16 detects this detection program when the upper limit value TH2h of the second threshold level region does not exceed the first limit value and the lower limit value TH2l does not exceed the second limit value. Is temporarily terminated.

又、S90において、「第2閾値レベル領域の上限値TH2hが第1限界値を越えている」、或いは、「下限値TH2lが第2限界値を越えている」の少なくともいずれかであると判定した場合には、マイクロコンピュータ16は第2閾値レベル領域の設定の禁止処理、すなわち、エラー処理を行い、検出プログラムを終了する。この場合は、マイクロコンピュータ16は、このエラー処理に基づいて、警告ランプや、警告ブザー等の警告手段により警告を発することによって、作業者に報知する。   In S90, it is determined that the upper limit value TH2h of the second threshold level region exceeds the first limit value or that the lower limit value TH2l exceeds the second limit value. In this case, the microcomputer 16 performs a prohibition process for setting the second threshold level region, that is, an error process, and ends the detection program. In this case, the microcomputer 16 notifies the worker by issuing a warning by a warning means such as a warning lamp or a warning buzzer based on the error processing.

なお、上限値TH2hが第1限界値に達する前に、予報警報レベル値を設けておいて、先に、上限値TH2hが予報警報レベル値を越えたときに、エラー予報のための警告ランプや、警告ブザー等の警告手段により警告を発することによって、作業者に報知してもよい。そして、その後、上限値TH2hが第1限界値を超えたときには、第2閾値レベル領域の設定の禁止処理、すなわち、エラー処理を行ってもよい。   A forecast warning level value is provided before the upper limit value TH2h reaches the first limit value. When the upper limit value TH2h exceeds the forecast warning level value, a warning lamp for error prediction or The operator may be notified by issuing a warning by a warning means such as a warning buzzer. After that, when the upper limit value TH2h exceeds the first limit value, the second threshold level region setting prohibition process, that is, the error process may be performed.

又、同様に下限値TH2lが第2限界値に達する前に、予報警報レベル値を設けておいて、先に、下限値TH2lが予報警報レベル値を越えたときに、エラー予報のための警告ランプや、警告ブザー等の警告手段により警告を発することによって、作業者に報知してもよい。そして、その後、下限値TH2lが第2限界値を超えたときには、第2閾値レベル領域の設定の禁止処理、すなわち、エラー処理を行ってもよい。なお、これらの場合のエラー処理は、単に透明体検出センサ10のエラーがあったことを報知するようにする。TH
このようにすれば、予め先にエラー予報のための警告ランプや、警告ブザー等の警告手段により警告を発するため、エラーが出るまえに透明体検出センサ10のメンテナンスや交換等を行うことができる。
Similarly, a forecast warning level value is provided before the lower limit value TH2l reaches the second limit value. When the lower limit value TH2l exceeds the forecast warning level value, a warning for error prediction is provided. The operator may be notified by issuing a warning by a warning means such as a lamp or a warning buzzer. After that, when the lower limit value TH2l exceeds the second limit value, the second threshold level region setting prohibition process, that is, the error process may be performed. Note that the error processing in these cases simply notifies that there was an error in the transparent body detection sensor 10. TH
In this way, since the warning is issued in advance by a warning lamp for error prediction or warning means such as a warning buzzer, the transparent body detection sensor 10 can be maintained or replaced before an error occurs. .

○ 前記各実施形態では、S30において、今回値Gaが前回値Goと同じレベルか否かの判定は、前回値Goと今回値Gaとが同一か否かで判定するようにしたが、前回値Goに±αを加減算した値の範囲内であれば、同じレベルと定するようにしてもよい。なお、前記αの値は、安定していると判定してもよいとする許容範囲を限度として適宜設定するものとする。このようにすれば、透明体Wが通過していないときに、受光量レベルが何らかの原因で変動が合った場合でも、安定していると判定することができる。   In each of the above embodiments, in S30, whether or not the current value Ga is the same level as the previous value Go is determined based on whether or not the previous value Go and the current value Ga are the same. If it is within the range of the value obtained by adding and subtracting ± α to Go, the same level may be determined. Note that the value of α is set as appropriate within the allowable range that may be determined to be stable. In this way, when the transparent body W is not passing, even if the received light amount level fluctuates for some reason, it can be determined that it is stable.

○ 前記各実施形態において、S80の「第2閾値レベル領域判の設定処理」では、マイクロコンピュータ16は、今回値Gaではなく、過去の受光量レベルにおいて、第2閾値レベル領域にあった「最新」の受光量レベルGをバッファから読込みし、この値にM%の値を加減算するようにした。   In each of the embodiments, in the “second threshold level area setting process” in S80, the microcomputer 16 does not have the current value Ga, but the “latest received light level” in the second threshold level area. Is read from the buffer, and the value of M% is added to or subtracted from this value.

過去の受光量レベルは、「最新」に限定されるものではなく、例えば、「所定回前の」受光量レベルであってもよく、或いは、「所定回の受光量レベルの平均値」であってもよい。   The past received light amount level is not limited to “latest”, and may be, for example, a “predetermined” received light amount level or “an average value of predetermined received light amount levels”. May be.

○ 第1実施形態では、過去の非検出状態における受光量レベルに対して所定量(すなわち、M%)プラスとマイナスにそれぞれシフトした値の範囲を前記第2閾値レベル領域とするように設定するようにした。この場合、プラスとマイナスにそれぞれシフトした量を同じとしているが、必ずしも同じである必要はなく、プラスとマイナスにそれぞれシフトする所定量を互いに異なる値にしてもよい。   In the first embodiment, a range of values shifted respectively by a predetermined amount (that is, M%) plus and minus with respect to the received light amount level in the past non-detection state is set as the second threshold level region. I did it. In this case, the amounts shifted positively and negatively are the same, but they are not necessarily the same, and the predetermined amounts shifted positively and negatively may be different from each other.

本発明を具体化した第1実施形態の透明体検出センサ10の概略ブロック図。The schematic block diagram of the transparent body detection sensor 10 of 1st Embodiment which actualized this invention. 同じく透明体検出センサ10の第2閾値レベル領域の設定タイミングを示す説明図。Explanatory drawing which similarly shows the setting timing of the 2nd threshold level area | region of the transparent body detection sensor 10. FIG. 同じく検出プログラムのフローチャート。The flowchart of a detection program similarly. 第2実施形態の検出プログラムのフローチャート。The flowchart of the detection program of 2nd Embodiment. 第3実施形態の検出プログラムのフローチャート。The flowchart of the detection program of 3rd Embodiment. 他の実施形態の検出プログラムの要部フローチャート。The principal part flowchart of the detection program of other embodiment.

符号の説明Explanation of symbols

G…受光量レベル、W…透明体、TH1…第1閾値レベル、
10…透明体検出センサ、11…投光素子(投光手段)、
12…受光素子(受光手段)、13…センサ本体、14…回帰反射板、
16…マイクロコンピュータ、17…検出手段、18…閾値設定手段、
19…EEPROM(記憶手段)。
G: received light level, W: transparent body, TH1: first threshold level,
10 ... transparent detection sensor, 11 ... light projecting element (light projecting means),
12 ... light receiving element (light receiving means), 13 ... sensor body, 14 ... regression reflector,
16 ... Microcomputer, 17 ... Detection means, 18 ... Threshold setting means,
19: EEPROM (storage means).

Claims (7)

投光手段と、
前記投光手段からの光を反射する回帰反射板と、
前記回帰反射板からの反射光を受光する受光手段と、
前記受光手段の受光量に応じたレベルと第1閾値レベルとの大小を判定することにより、前記投光手段及び受光手段と前記回帰反射板との間を通過する透明体が検出状態であるとの判定を行い、前記受光量に応じたレベルが前記第1閾値レベルとは異なる第2閾値レベル領域の範囲内に所定時間継続するとき、前記透明体が検出されていない非検出状態であると判定する検出手段とを、備える透明体検出センサにおいて、
前記非検出状態の判定を行うための第2閾値レベル領域を設定する閾値設定手段を備え、
当該閾値設定手段は、
前記第2閾値レベル領域の設定に際して、過去の非検出状態における受光量レベルに対して所定量プラスとマイナスにそれぞれシフトした値の範囲を前記第2閾値レベル領域とするように設定することを特徴とする透明体検出センサ。
Floodlight means;
A return reflector that reflects light from the light projecting means;
A light receiving means for receiving reflected light from the regressive reflection plate;
By determining the level between the level corresponding to the amount of light received by the light receiving means and the first threshold level, the transparent body passing between the light projecting means and the light receiving means and the regressive reflection plate is in a detection state. When the level according to the amount of received light continues for a predetermined time within a range of a second threshold level region different from the first threshold level, the transparent body is not detected and is in a non-detection state. In a transparent body detection sensor comprising a detection means for determining,
Threshold setting means for setting a second threshold level region for determining the non-detection state,
The threshold setting means is
In setting the second threshold level region, a range of values each shifted by a predetermined amount plus and minus with respect to the received light amount level in the past non-detection state is set as the second threshold level region. A transparent body detection sensor.
前記閾値設定手段は、
第2閾値レベル領域の設定に際して、過去の非検出状態における受光量レベルに対して所定量プラスとマイナスにそれぞれシフトした値が、それぞれ予め定められたプラス側の第1限界値又はマイナス側の第2限界値を越えた場合、設定を禁止することを特徴とする請求項1に記載の透明体検出センサ。
The threshold setting means includes
When setting the second threshold level region, a value shifted by a predetermined amount plus and minus with respect to the received light amount level in the past non-detection state is a predetermined positive first limit value or minus side first value, respectively. 2. The transparent body detection sensor according to claim 1, wherein setting is prohibited when a limit value of 2 is exceeded.
前記所定量は、固定値であることを特徴とする請求項1又は請求項2に記載の透明体検出センサ。   The transparent body detection sensor according to claim 1, wherein the predetermined amount is a fixed value. 前記閾値設定手段は、
前記第2閾値レベル領域の設定を、透明体の非検出状態が終了する毎に行うことを特徴とする請求項1乃至請求項3のうちいずれか1項に記載の透明体検出センサ。
The threshold setting means includes
4. The transparent body detection sensor according to claim 1, wherein the setting of the second threshold level region is performed every time the non-detection state of the transparent body is finished. 5.
前記閾値設定手段は、
前記第2閾値レベル領域の設定を、透明体の非検出状態が終了する終了回数が所定回数になる毎に行うことを特徴とする請求項1乃至請求項3のうちいずれか1項に記載の透明体検出センサ。
The threshold setting means includes
4. The method according to claim 1, wherein the second threshold level region is set every time the end number of times that the non-detection state of the transparent body ends is a predetermined number of times. 5. Transparent body detection sensor.
前記閾値設定手段は、
過去の非検出状態における受光量レベルが、予め設定された許容レベル範囲と比較して、同許容レベルを越える変化があった際、前記第2閾値レベル領域の設定を行うことを特徴とする請求項1乃至請求項3のうちいずれか1項に記載の透明体検出センサ。
The threshold setting means includes
The second threshold level region is set when the received light amount level in the past non-detection state changes compared with a preset allowable level range exceeding the allowable level. The transparent body detection sensor according to any one of claims 1 to 3.
電源が遮断された際に、最新の第2閾値レベル領域の値を記憶するとともに電源が投入された際に、前記記憶した最新の第2閾値レベル領域の値が読出し可能な記憶手段を備えたことを特徴とする請求項1乃至請求項6のうちいずれか1項に記載の透明体検出センサ。   The storage means stores the latest value of the second threshold level area when the power is cut off and can read out the stored value of the latest second threshold level area when the power is turned on. The transparent body detection sensor according to claim 1, wherein the transparent body detection sensor is a transparent body detection sensor.
JP2007050032A 2007-02-28 2007-02-28 Transparent body detecting sensor Pending JP2008218021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007050032A JP2008218021A (en) 2007-02-28 2007-02-28 Transparent body detecting sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007050032A JP2008218021A (en) 2007-02-28 2007-02-28 Transparent body detecting sensor

Publications (1)

Publication Number Publication Date
JP2008218021A true JP2008218021A (en) 2008-09-18

Family

ID=39837844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007050032A Pending JP2008218021A (en) 2007-02-28 2007-02-28 Transparent body detecting sensor

Country Status (1)

Country Link
JP (1) JP2008218021A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012154719A (en) * 2011-01-25 2012-08-16 Omron Corp Object detecting unit
WO2016103371A1 (en) * 2014-12-24 2016-06-30 富士機械製造株式会社 Conveyed object detecting system
US9990571B2 (en) 2014-07-18 2018-06-05 Canon Finetech Nisca Inc. Media determining apparatus for determining transparency of a media, a media transport apparatus for detecting an end position of the medium and printing apparatus for controlling start of printing on a printing medium
WO2018105031A1 (en) * 2016-12-06 2018-06-14 株式会社Fuji Substrate detection device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012154719A (en) * 2011-01-25 2012-08-16 Omron Corp Object detecting unit
US9990571B2 (en) 2014-07-18 2018-06-05 Canon Finetech Nisca Inc. Media determining apparatus for determining transparency of a media, a media transport apparatus for detecting an end position of the medium and printing apparatus for controlling start of printing on a printing medium
WO2016103371A1 (en) * 2014-12-24 2016-06-30 富士機械製造株式会社 Conveyed object detecting system
JPWO2016103371A1 (en) * 2014-12-24 2017-10-05 富士機械製造株式会社 Conveyed object detection system
WO2018105031A1 (en) * 2016-12-06 2018-06-14 株式会社Fuji Substrate detection device

Similar Documents

Publication Publication Date Title
JP5760167B2 (en) Spatial information detector
JP2008218021A (en) Transparent body detecting sensor
JP5760168B2 (en) Spatial information detector
JP7501289B2 (en) Distance Measuring Device
US11074704B2 (en) Error reduction of depth maps
JP7226000B2 (en) LASER RADAR DEVICE AND CONTROL PROGRAM FOR THE LASER RADAR DEVICE
US20110062309A1 (en) Optical fault monitoring
JP2009085679A (en) Edge detector
JP5740858B2 (en) Optical phase difference detection type object detection sensor
EP4215870A1 (en) Measurement device and measurement method
US20230057540A1 (en) Photoelectric sensor and threshold setting method
WO2021095601A1 (en) Distance measurement device
JP2020165912A (en) Edge detection sensor
JP2015158720A (en) Road surface detector and road surface detection method
JP6170714B2 (en) Ranging device
JP2009014360A (en) Reflection type photoelectric sensor
JPS629212A (en) Range finding device using semiconductor light position detecting element
JP2005345147A (en) Detection sensor and photoelectric sensor
JP2020201216A (en) Radar-mounted lighting fixture unit
JP2007003348A (en) Regression reflection typed photo-electronic sensor
JP5131831B2 (en) Head separation type photoelectric sensor
JP2013090045A (en) Optical sensor
WO2022250095A1 (en) Stain determination device
JP5703033B2 (en) Ranging device
WO2024062825A1 (en) Distance measuring device