JP3566231B2 - Detection switch - Google Patents

Detection switch Download PDF

Info

Publication number
JP3566231B2
JP3566231B2 JP2001176503A JP2001176503A JP3566231B2 JP 3566231 B2 JP3566231 B2 JP 3566231B2 JP 2001176503 A JP2001176503 A JP 2001176503A JP 2001176503 A JP2001176503 A JP 2001176503A JP 3566231 B2 JP3566231 B2 JP 3566231B2
Authority
JP
Japan
Prior art keywords
threshold value
detection
display
value
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001176503A
Other languages
Japanese (ja)
Other versions
JP2002098773A (en
Inventor
光男 西出
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Keyence Corp
Original Assignee
Keyence Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Keyence Corp filed Critical Keyence Corp
Priority to JP2001176503A priority Critical patent/JP3566231B2/en
Publication of JP2002098773A publication Critical patent/JP2002098773A/en
Application granted granted Critical
Publication of JP3566231B2 publication Critical patent/JP3566231B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Electronic Switches (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、検出スイッチに関するものである。
【0002】
【従来の技術】
従来より、工場の生産ライン等で移動する物体の有無を検出するために、光電スイッチ、近接スイッチ、超音波スイッチ等の検出スイッチが用いられている。例えば、光電スイッチは、物体の搬送経路に光を投射し、その光の反射光または透過光を検出することにより、物体の有無を判定するものである。
【0003】
透過型の光電スイッチでは、投光部から投射された光が物体検出領域を通過する物体に遮られることにより受光部の受光量が変化する。この変化から物体の存在を判定するようにされ、この場合、受光部での受光量(検出量)が予め設定した受光量(しきい値)以下のときに被検出物体が存在すると判定するようにされている。一方、反射型の光電スイッチでは、投光部から投射された光が物体検出領域を通過する物体により反射されることにより受光部の受光量が変化する。この変化から被検出物体の存在を判定するもので、この場合、受光部での反射光による受光量(検出量)が予め設定した受光量(しきい値)を越えたときに被検出物体が存在すると判定するようにされている。
【0004】
ところで、このような光電スイッチは、光軸のずれ、投光面や受光面の汚れ、投光部の発光素子の特性の劣化等により検出量が低下する場合がある。このような場合には、光電スイッチの感度が低下するので、しきい値を検出量の低下に応じて再設定し、感度を高め、検出量が低下しても安定して被検出物体が検出できるようにする必要がある。
【0005】
しかし、しきい値の設定は、被検出物体の有無の状態を設定し、被検出物体の有無の状態で得られた検出量データに基づいて行われ、手間のかかる作業となっている。そこで、しきい値の設定を自動的に行う自動しきい値設定方式の光電スイッチが開発されている。この自動しきい値設定方式によるしきい値の設定は、その設定時に制御信号を入力することにより開始され、検出量をサンプリングして得られたデータ群から、例えば最大値、最小値(結果的には被検出物体の有無時の検出量となる。)の中間値をマイクロコンピュータで演算させて求め、求めた中間値をしきい値として自動的に設定するものである。
【0006】
【発明が解決しようとする課題】
上記のような自動しきい値設定方式の光電スイッチでは、しきい値の設定作業は簡単であり、また比較的適切なしきい値を求めることができるが、自動的に設定しているため、設定されたしきい値や運転時の検出量を作業者は知ることができず、測定環境に応じて微調整をする必要がある場合、例えば埃や汚れに対して強くしたい場合にこれを行うことができないという問題があった。また、このような問題は光電スイッチに限らず、近接スイッチ、超音波スイッチ等の検出スイッチにおいても有する問題である。
【0007】
本発明は、このような問題に鑑みなされたもので、自動しきい値設定方式の検出スイッチにおいて、しきい値および検出量ならびに相対値を数値表示するとともに、測定環境に応じてしきい値の微調整を図ることのできる検出スイッチを提供することを目的とする。
【0008】
【課題を解決するための手段】
請求項1に係る本発明は、被検出物体の検出量に応じて出力する検出手段と、被検出物体の有無に基づき前記検出手段により得られる検出量を演算してしきい値を求める演算手段と、前記演算手段で求めたしきい値を設定する設定手段と、前記設定手段に設定したしきい値と前記検出手段によって得られた検出量とを比較し、その比較の結果を出力する比較手段と、前記設定手段に設定されたしきい値と前記検出手段の検出量との比である相対値を算出する相対値算出手段と、前記検出手段によって得られた検出量、前記設定手段に設定されたしきい値および前記算出手段によって算出された相対値を数値として切り換え表示する表示手段と、前記表示手段の表示を前記検出量と前記相対値との間で切り換える第一の表示モード切り換えスイッチと、前記検出量と前記しきい値との間、又は前記相対値と前記しきい値との間で切り換える第二の表示モード切り換えスイッチと、前記表示手段に表示したしきい値を調整して前記設定手段に再設定するしきい値調整手段を設けてなることを特徴とする。
【0009】
請求項2に係る本発明は、被検出物体の検出量に応じて出力する検出手段と、被検出物体の有無に基づき前記検出手段により得られる検出量を演算してしきい値を求める演算手段と、前記演算手段で求めたしきい値を設定する設定手段と、前記設定手段に設定したしきい値と前記検出手段によって得られた検出量とを比較し、その比較の結果を出力する比較手段と、前記設定手段に設定されたしきい値と前記検出手段の検出量との比である相対値を算出する相対値算出手段と、前記検出手段によって得られた検出量、前記設定手段に設定されたしきい値および前記算出手段によって算出された相対値を数値として切り換え表示する表示手段と、前記表示手段の表示を前記検出量と前記相対値との間で切り換える第一の表示モード切り換えスイッチと、前記表示手段の表示を、前記第一の表示モード切り換えスイッチよって前記表示手段に表示された前記検出量または前記相対値と前記しきい値との間で切り換える第二の表示モード切り換えスイッチと、前記表示手段に表示したしきい値を調整して前記設定手段に再設定するしきい値調整手段を設けてなることを特徴とする。
【0010】
請求項3に係る本発明は、請求項1又は請求項2記載の発明における表示手段に数値表示したしきい値を調整するアップ・ダウンスイッチを設けてなること、請求項4に係る本発明は、請求項1又は請求項2記載の発明における演算手段は、設定時に検出手段により得られる検出量に基づいてしきい値を自動的に求めるとともに、前記求めたしきい値を設定した際、表示手段に前記設定されたしきい値を表示してなること、請求項5に係る本発明は、請求項4に係る本発明におけるしきい値を自動的に求める演算は、検出量の最大値と最小値に基づいて、その最大値と最小値との間をしきい値としてなることを特徴とする。
【0011】
本発明では、しきい値設定手段に設定したしきい値について、検出手段が配置されている環境に適合しているか否かを表示手段の表示により確認し、検出量としきい値が接近している場合などにそのしきい値の微調整を行い、被検出物体をより確実に検出するようにしきい値を再設定する。表示手段の表示は、設定されているしきい値、検出量および相対値を切り換えて個別に数値表示し、微調整はしきい値表示の際、そのしきい値について行なう。
【0012】
【発明の実施の形態】
以下、本発明の実施の形態について図を参照して説明する。図1は本発明の一実施形態における光電スイッチ親機の構成を示すブロック図である。また、図2は図1の光電スイッチ親機に連接される光電スイッチ子機の構成を示すブロック図である。
【0013】
図1の光電スイッチ親機100は、ゲ−トアレイからなる処理部1およびCPU(中央演算処理装置)からなる制御部2を備える。処理部1は、タイミング制御部3、比較部4、出力部5、しきい値演算処理部6、検出量データ用レジスタ7、第1のしきい値設定用レジスタ8、第2のしきい値設定用レジスタ9および送受信レジスタ10を有する。
【0014】
処理部1には、駆動回路11、発光素子12、受光素子13、増幅器14およびA/D変換器(アナログ・デジタル変換器)15が接続されている。発光素子12および受光素子13には光ファイバを通してセンサヘッド部(図示せず)が接続されている。
【0015】
タイミング制御部3は、駆動回路11を介して発光素子12の投光タイミングを制御する。駆動回路11が発光素子12を駆動すると、発光素子12から光ファイバ(図示せず)を介して光が検知領域に投射される。センサヘッド部が透過型の場合には、検知領域に物体が存在しないときに、発光素子12から投射された光が受光素子13で受光される。一方、センサヘッド部が反射型の場合には、検知領域に物体が存在するときに、物体からの反射光が受光素子13で受光される。
【0016】
受光素子13は、検知領域にある物体の状態(検知領域内の一部あるいは全部に物体があるなど)に応じた検出量信号を出力し、その出力信号は増幅器14により増幅された後、A/D変換器15に与えられる。A/D変換器15は、増幅器14の出力信号をデジタル信号に変換して処理部1に与える。処理部1に与えられた検出量はレジスタ7に格納される。
【0017】
しきい値演算処理部6は、しきい値設定指令時に、例えば検出量の最大値および最小値に基づいてその最大値と最小値との間にしきい値を求める演算を行い、しきい値を自動的に算出する。この実施形態の光電スイッチ親機100では、例えば検出手段と被検出物体との距離や被検出物体の色などの違いによる2つの検出量に対して、それぞれについてしきい値演算処理を行い、これにより得られた2つのしきい値がそれぞれ第1のしきい値設定用レジスタ8および第2のしきい値設定用レジスタ9に設定される。送受信レジスタ10には、制御部2および図2の光電スイッチ子機200に対して送受信する送受信デ−タが一時的に格納される。
【0018】
比較部4は、検出量と第1のしきい値との比較および検出量と第2のしきい値との比較を時分割で行い、それらの比較結果を出力部5を介して出力端子26A、26Bにそれぞれ第1の検出信号DET1および第2の検出信号DET2として出力する。この光電スイッチ親機100は、第1のしきい値および第2のしきい値にそれぞれ対応する2つのチャンネル“A”,“B”を有する。また、この光電スイッチ親機100に順次接続される光電スイッチ子機には順次チャンネル“1”,“2”,…が与えられる。
【0019】
また、処理部1には、チャンネル“A”,“B”における検出結果およびしきい値設定状態を表示するLED部16および図2の光電スイッチ子機200を接続するためのコネクタ17が接続されている。
【0020】
一方、制御部2には、しきい値設定スイッチ18、アップスイッチ19、ダウンスイッチ20およびモ−ドスイッチ21が接続されている。しきい値設定スイッチ18は、処理部1のしきい値演算処理部6にしきい値設定指令を指令するために用いられる。また、アップスイッチ19およびダウンスイッチ20は、しきい値演算処理部6により求めたしきい値、つまりしきい値設定用レジスタ8および第2のしきい値設定用レジスタ9に設定されたしきい値を微調整するために用いられる。モ−ドスイッチ21は、主として後述する表示モ−ドを切り換えるために用いられる。
【0021】
また、制御部2には、光電スイッチ親機100の第1および第2のしきい値およびチャンネルを記憶するEEPROM(電気的に消去および書き込み可能なリ−ドオンリメモリ)22が接続されている。さらに、この制御部2には当該光電スイッチ親機100の検出量、第1のしきい値および第2のしきい値ならびに光電スイッチ子機の検出量およびしきい値をデジタル的に数値表示するためのLCD部(液晶表示部)23が接続されている。このLCD部23には、赤のバックライト24および緑のバックライト25が設けられている。
【0022】
この実施形態では、タイミング制御部3、駆動回路11、発光素子12、受光素子13、増幅器14、A/D変換器15が検出手段を構成し、比較部4および出力部5が比較手段を構成する。また、しきい値演算処理部6およびしきい値設定スイッチ18が演算手段を構成し、しきい値設定用レジスタ8(親機100では、しきい値設定用レジスタ9を含む)がしきい値設定手段を構成する。
【0023】
さらに制御部2およびLCD部23が表示手段を構成し、アップスイッチ19、ダウンスイッチ20および制御部2が調整手段を構成する。またさらに、制御部2およびLCD部23が検出スイッチ用表示装置を構成し、アップスイッチ19、ダウンスイッチ20および制御部2が検出スイッチ用設定装置を構成する。送受信レジスタ10は送受信手段を構成する。
【0024】
図2の光電スイッチ子機200は、ゲ−トアレイからなる処理部1aを備える。処理部1aは、タイミング制御部3、比較部4a、出力部5、しきい値演算処理部6および検出量デ−タ用レジスタ7、しきい値設定用レジスタ8および送受信レジスタ10を有する。
【0025】
処理部1aには、図1の光電スイッチ親機100同様に、駆動回路11、発光素子12、受光素子13、増幅器14およびA/D変換器15が接続されている。A/D変換器15により得られた検出量はレジスタ7に格納される。
【0026】
この光電スイッチ子機200においては、1つのしきい値が設定される。しきい値設定スイッチ18の操作に応答してしきい値設定処理を行い、自動的にしきい値を設定する。しきい値演算処理部6により得られたしきい値はしきい値としてレジスタ8に設定される。送受信レジスタ10には、図1の光電スイッチ親機100に対して送受信する送受信デ−タが一時的に格納される。比較部4aは、検出量をしきい値と比較し、その比較結果を出力部5を介して出力端子26に検出信号DETとして出力する。
【0027】
処理部1aには光電スイッチ親機100または他の光電スイッチ子機を接続するための2つのコネクタ17A,17Bが接続されている。ここでは、コネクタ17Aに図1の光電スイッチ親機100が接続され、コネクタ17Bに他の光電スイッチ子機が接続されるものとする。また、処理部1aには、当該光電スイッチ子機200のしきい値を記憶するEEPROM22が接続されている。
【0028】
図3は図1の光電スイッチ親機100の表示パネルを示す図である。図3において、LED部16は、チャンネル“A”の検出状態を表示する動作表示用LED16A、チャンネル“B”の検出状態を表示する動作表示用LED16B、およびしきい値設定状態を表示するしきい値設定表示用LED16Cを有する。
【0029】
動作表示用LED16Aは、チャンネル“A”における検出信号がオン状態になると赤く点灯する。動作表示用LED16Bは、チャンネル“B”における検出信号がオン状態になると赤く点灯する。しきい値設定表示用LED16Cは、しきい値設定処理中に黄色に点灯する。検出信号DET1,DET2が入光時にオンするか遮光時にオンするかは、図示しない切り換えスイッチにより切り換えることができる。
【0030】
しきい値設定スイッチ18を押すと、図1のしきい値演算処理部6によりしきい値が求められ、レジスタ8に自動的に設定される。アップスイッチ19およびダウンスイッチ20は、しきい値演算処理部6により求めたしきい値を微調整するために用いられる。LCD部23は、表示チャンネルを示すチャンネル部23aおよび表示チャンネルの検出量、しきい値および相対値を示すデ−タ表示部23bを有する。ここで、相対値とは、検出量としきい値との比であり、しきい値に対する検出量の余裕度を表す。
【0031】
モ−ドスイッチ21を所定時間(例えば3秒)以上押すと、デ−タ表示部23bに表示されるデ−タが検出量と相対値との間で切り替わる。また、モ−ドスイッチ21を所定時間(例えば3秒)未満押すと、デ−タ表示部23bに表示されるデータが検出量としきい値との間または相対値としきい値との間で切り替わる。このように、、モ−ドスイッチ21を操作することにより表示モ−ドが切り替わる。また、モ−ドスイッチ21とアップスイッチ19またはダウンスイッチ20を押すと、チャンネル部23aの表示チャンネルが切り替わる。
【0032】
電源投入時には、図1のEEPROM22の記憶内容に基づいて前回の電源オフ時に表示されていたチャンネルが表示チャンネルとしてチャンネル部23aに表示され、そのチャンネルにおける検出量または相対値がデ−タ表示部23bに表示される。
【0033】
このLCD部23は、表示チャンネルにおける検出信号がオンのときに、図1のバックライト24が点灯することにより赤の表示を行い、表示チャンネルにおける検出信号がオフのときに、図1のバックライト25が点灯することにより緑の表示を行う。
【0034】
図4は図1の光電スイッチ親機100の制御部2における表示更新処理を示すフロ−チャ−トである。制御部2は、処理部1との間で検出量およびしきい値の送受信を行うことによりLCD部23における表示の更新を行う。
【0035】
まず、制御部2は、検出量の読み出し回数Nを0に設定する(ステップS1)。そして、スイッチ入力があるか否かを判定する。(ステップS2)。しきい値設定スイッチ18によりしきい値の微調整が指令されると(ステップS3)、後述するしきい値の読み出し処理を行い(ステップS4)、読み出されたしきい値にアップスイッチ19またはダウンスイッチ20による入力値を加算する(ステップS5)。そして、その加算結果を新たなしきい値として後述するしきい値の書き込み処理を行い(ステップS6)、ステップS15に進む。
【0036】
モ−ドスイッチ21により表示モ−ドの変更が指令されると(ステップS7)、表示モ−ドを変更する。(ステップS8)。そして、検出量の読み出し処理を行い(ステップS9)、ステップS15に進む。また、モ−ドスイッチ21およびアップスイッチ19またはダウンスイッチ20によりチャンネルの変更が指令されると(ステップS10)、チャンネルを変更し(ステップS11)、検出量の読み出し回数Nを0に再設定する(ステップS12)。そして、検出量の読み出し処理を行い(ステップS13)、ステップS15に進む。
【0037】
なお、ステップS2において、スイッチ入力がない場合には、検出量の読み出し処理を行い(ステップS14)、ステップS15に進む。ステップS15においては、検出量の読み出し回数Nを1増加する。検出量の読み出し回数Nが所定回数(たとえば8回)になるまでステップS2〜ステップS15の処理を繰り返す。これにより、所定回数(例えば8回)の検出量の読み出し処理が所定の周期で行われる。また、チャンネルを変更した場合には、チャンネルの変更後から所定回数(例えば8回)の検出量の読み出し処理が所定の周期で行われる。
【0038】
検出量の読み出し回数Nが所定回数(例えば8回)になると、後述するしきい値の読み出し処理を行い(ステップS17)、所定回数(例えば8回)分の検出量の平均値を求め、その平均値としきい値の比を求めることにより相対値を算出する。(ステップS18)。そして、現在の表示モ−ドで現在のチャンネルの検出量、しきい値および相対値の表示を更新する(ステップS19)。
【0039】
次に、図5、図6および図7を参照しながら検出量の読み出し処理ならびにしきい値の読み出し処理および書き込み処理を説明する。図5は読み出し処理時および書き込み処理時に制御部2から処理部1に与えられるアドレスのフォ−マットを示す図である。
【0040】
図5に示すように、アドレスは、読み出し/書き込みビットRW、検出量/しきい値ビットRTおよびチャンネルCHを含む。読み出し/書き込みビットRWは、読み出し処理を行うか書き込み処理を行うかを示しており、“0”のときに読み出し処理を示し、“1”のときに書き込み処理を示す。検出量/しきい値ビットRTは、処理するデ−タが検出量であるかしきい値であるかを示しており“0”のときに検出量を示し、“1”のときにしきい値を示す。また、チャンネルCHは表示または微調整するチャンネルを示している。
【0041】
図6は制御部2によるアドレス設定処理を示すフロ−チャ−トである。まず、制御部2は、処理すべきデ−タが検出量であるかしきい値であるかを判定する(ステップS21)。検出量を処理する場合には、検出量/しきい値ビットRTを“0”に設定する(ステップS22)。そして、読み出し/書き込みビットRWを“0”に設定する(ステップS23)。
【0042】
処理すべきデ−タがしきい値の場合には、検出量/しきい値ビットRTを“1”に設定し(ステップS24)、アップスイッチ19またはダウンスイッチ20が押されているか否かに基づいて読み出し処理を行うべきか書き込み処理を行うべきかを判定する(ステップS25)。読み出し処理を行う場合には、読み出し/書き込みビットRWを“0”に設定し(ステップS26)、書き込み処理を行う場合には、読み出し/書き込みビットRWを“1”に設定する(ステップS27)。
【0043】
その後、モ−ドスイッチ21およびアップスイッチ19またはダウンスイッチ20により設定されているチャンネルに基づいて、チャンネルCHを設定する(ステップS28)。そして、設定された読み出し/書き込みビットRW、検出量/しきい値ビットRTおよびチャンネルCHを含むアドレスを設定する(ステップS29)。
【0044】
図7は処理部1および制御部2により行われる読み出し処理および書き込み処理を示すフロ−チャ−トである。まず、制御部2において、図6に示したアドレス設定処理を行う(ステップS31)。そして、設定されたアドレスを制御部2から処理部1に送信する(ステップS32)。
【0045】
処理部1は、受信したアドレスの読み出し/書き込みビットRWに基づいて読み出し処理を行うべきかを判定する(ステップS33)。読み出し処理を行う場合には、アドレスのチャンネルCHに基づいて当該光電スイッチ親機(自機)100における読み出し処理を行うべきか光電スイッチ子機200における読み出し処理を行うべきかを判定する(ステップS34)。すなわち、チャンネルCHが“A”または“B”に設定されている場合には、当該光電スイッチ親機100における読み出し処理となり、チャンネルCHが“1”以降の番号に設定されている場合には光電スイッチ子機200における読み出し処理となる。
【0046】
当該光電スイッチ親機(自機)100における読み出し処理を行う場合には、処理部1は、検出量/しきい値ビットRTに基づいてレジスタ7に格納されている検出量、レジスタ8に設定されている第1のしきい値またはレジスタ9に設定されている第2のしきい値を読み出しデ−タとして送受信レジスタ10に設定する(ステップS35)。そして、処理部1から制御部2に送受信レジスタ10の読み出しデ−タを送信する(ステップS36)。制御部2は、その読み出しデ−タをLCD部23のデ−タ表示部23bに表示する。
【0047】
一方、光電スイッチ子機200における読み出し処理を行う場合には、処理部1は、アドレスのチャンネルCHに基づいて該当する光電スイッチ子機200にアドレスを送信する(ステップS37)。この場合、アドレスを受信した子機は、そのアドレスの読み出し/書き込みビットRWに基づいて読み出し処理を行うべきであると判定し、かつ検出量/しきい値ビットRTに基づいて検出量を処理すべきかしきい値を処理すべきかを判定し、検出量またはしきい値を読み出しデ−タとしてコネクタ17Aを介して光電スイッチ親機100に送信する。
【0048】
光電スイッチ親機100の処理部1は、光電スイッチ子機200からの読み出しデ−タを送受信レジスタ10に受信すると(ステップS38)、制御部2にその読み出しデ−タを送信する(ステップS39)。制御部2は、受信した読み出しデ−タをLCD部23のデ−タ表示部23bに表示する。
【0049】
ステップS33において,書き込み処理を行う場合には、アドレスのチャンネルCHに基づいて当該光電スイッチ親機(自機)100における書き込み処理を行うべきかを光電スイッチ子機200における書き込み処理を行うべきかを判定する(ステップS40)。当該光電スイッチ親機(自機)100における書き込み処理を行う場合には、制御部2から処理部1に書き込みデ−タを送信する(ステップS41)。ここで、書き込みデ−タは、前回の読み出し処理により読みだされたしきい値にアップスイッチ19またはダウンスイッチ20による入力値を加算した値である。処理部1は、受信した書き込みデ−タを新たなしきい値としてアドレスのチャンネルCHに応じてレジスタ8または9に設定する。
【0050】
一方、光電スイッチ子機200における書き込み処理を行う場合には、処理部1は、アドレスのチャンネルCHに基づいて該当する光電スイッチ子機200にアドレスを送信する(ステップS43)。その後、制御部2から処理部1に書き込みデ−タを送信する(ステップS44)。ここで書き込みデ−タは、前回の読み出し処理により読み出されたしきい値にアップスイッチ19またはダウンスイッチ20による入力値を加算した値である。
【0051】
処理部1は、受信した書き込みデ−タをコネクタ17を介して光電スイッチ子機200に送信する(ステップS45)。書き込みデ−タを受信した光電スイッチ子機200は、アドレスの読み出し/書き込みビットRWおよび検出量/しきい値ビットRTに基づいて受信した書き込みデ−タを新たなしきい値と判定してレジスタ8に設定する。
【0052】
このようにして、図3に示すモ−ドスイッチ21およびアップスイッチ19またはダウンスイッチ20を操作することにより、チャンネル部23aのチャンネルが切り替わり、モ−ドスイチ21を操作することによりデ−タ表示部23bに表示されるデ−タが検出量、しきい値および相対値の間で切り替わる。
【0053】
それにより、作業者は、光電スイッチ親機100の検出量、第1および第2のしきい値ならびに光電スイッチ子機200の検出量、しきい値および相対値を正確に知ることができる。
【0054】
また、アップスイッチ19またはダウンスイッチ20を操作することによりチャンネル部23aに表示されたチャンネルにおけるしきい値が微調整されるとともに、新たなしきい値デ−タがデ−タ表示部23bに表示される。したがって作業者は、デ−タ表示部23bの表示を見ながら光電スイッチ親機100および光電スイッチ子機200に設定されたしきい値を微調整することができる。
【0055】
なお、上記実施形態では、親機と子機とを組み合わせた場合の検出スイッチ装置について説明しているが、親機単独で使用しても良いことは言うまでもない。、また制御部2、制御部に入力するスイッチ19、20、21およびLCD表示部23、EEPROM22、バックライト24、25を単体のユニットとして構成し、子機に設けるようにしてもよい。
【0056】
さらに、上記実施形態では、本発明を光電スイッチおよび光電スイッチシステムに適用した場合を説明したが、本発明は、近接スイッチ、超音波スイッチ等の他の検出スイッチおよび他の検出スイッチシステムにも同様にして適用することができる。
【0057】
【発明の効果】
以上詳述したように、本発明によれば、演算手段で求めたしきい値、現時点で検出手段により得られた検出量および相対値を切り換えてそれぞれ数値表示するので、検出量と演算手段で求めたしきい値との関係を知ることができ、演算手段で求めたしきい値の的確性が判断できるとともに、しきい値の微調整を図ることができるので、より測定環境に応じたしきい値を設定することが可能になる。
【図面の簡単な説明】
【図1】本発明の一実施形態における光電スイッチ親機の構成を示すブロック図である。
【図2】図1に示す光電スイッチ親機に連接される光電スイッチ子機の構成を示すブロック図である。
【図3】図1の光電スイッチ親機の表示パネルをしめす図である。
【図4】図1の光電スイッチ親機における表示更新処理を示すフロ−チャ−トである。
【図5】読み出し処理および書き込み処理に用いられるアドレスのフォ−マットを示す図である。
【図6】図1の光電スイッチ親機の制御部によるアドレス設定処理を示すフロ−チャ−トである。
【図7】図1の光電スイッチ親機における読み出し処理および書き込み処理を示すフロ−チャ−トである。
【符号の説明】
1、1a 処理部
2 制御部
4、4a 比較部
6 しきい値演算処理部
7 受光量データ用レジスタ
8、9 しきい値設定用レジスタ
10 送受信レジスタ
12 発光素子
13 受光素子
16 LED部
17,17A,17B コネクタ
18 しきい値設定スイッチ
19 アップスイッチ
20 ダウンスイッチ
21 モ−ドスイッチ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a detection switch.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, detection switches such as photoelectric switches, proximity switches, and ultrasonic switches have been used to detect the presence or absence of a moving object on a production line or the like in a factory. For example, a photoelectric switch projects light on a transport path of an object and detects reflected light or transmitted light of the light to determine the presence or absence of the object.
[0003]
In a transmission type photoelectric switch, the amount of light received by the light receiving unit changes when light emitted from the light emitting unit is blocked by an object passing through the object detection area. The presence of an object is determined based on this change. In this case, when the amount of light received by the light receiving unit (detected amount) is equal to or less than a predetermined amount of received light (threshold), it is determined that the detected object is present. Has been. On the other hand, in the reflection type photoelectric switch, the amount of light received by the light receiving unit changes when light projected from the light projecting unit is reflected by an object passing through the object detection area. The presence of the object to be detected is determined from this change. In this case, when the amount of light received by the light receiving portion (detected amount) exceeds a predetermined amount of received light (threshold), the detected object is detected. It is determined that it exists.
[0004]
By the way, in such a photoelectric switch, the detection amount may be reduced due to a shift of an optical axis, contamination of a light emitting surface or a light receiving surface, deterioration of characteristics of a light emitting element of a light emitting portion, or the like. In such a case, the sensitivity of the photoelectric switch decreases, so the threshold value is reset according to the decrease in the detection amount, the sensitivity is increased, and even if the detection amount decreases, the detected object is detected stably. You need to be able to do it.
[0005]
However, the setting of the threshold value is performed based on the detection amount data obtained in the presence / absence state of the detected object by setting the presence / absence state of the detected object, which is a time-consuming operation. Accordingly, photoelectric switches of an automatic threshold setting method for automatically setting a threshold have been developed. The setting of the threshold value by the automatic threshold value setting method is started by inputting a control signal at the time of the setting, and for example, a maximum value and a minimum value (results) are obtained from a data group obtained by sampling the detection amount. Is a detection amount when an object to be detected is present.) Is calculated by a microcomputer, and the obtained intermediate value is automatically set as a threshold value.
[0006]
[Problems to be solved by the invention]
In the photoelectric switch of the automatic threshold setting method as described above, the setting operation of the threshold value is easy, and a relatively appropriate threshold value can be obtained. When the operator cannot know the threshold value and the amount detected during operation, and it is necessary to make fine adjustments according to the measurement environment, for example, when it is necessary to increase the resistance to dust and dirt There was a problem that can not be. Further, such a problem is not limited to the photoelectric switch, but also occurs in a detection switch such as a proximity switch or an ultrasonic switch.
[0007]
The present invention has been made in view of such a problem, and in a detection switch of an automatic threshold setting method, a threshold, a detection amount, and a relative value are numerically displayed, and the threshold is set in accordance with a measurement environment. It is an object of the present invention to provide a detection switch capable of performing fine adjustment.
[0008]
[Means for Solving the Problems]
The present invention according to claim 1 is a detecting means for outputting in accordance with the detected amount of the detected object, and a calculating means for calculating a detected amount obtained by the detecting means based on the presence or absence of the detected object to obtain a threshold value Setting means for setting a threshold value obtained by the calculating means; comparing the threshold value set by the setting means with the detection amount obtained by the detecting means; and outputting a result of the comparison. Means, a relative value calculating means for calculating a relative value which is a ratio between a threshold value set in the setting means and a detection amount of the detection means, and a detection amount obtained by the detection means, Display means for switching and displaying the set threshold value and the relative value calculated by the calculation means as numerical values, and first display mode switching for switching the display of the display means between the detection amount and the relative value Sui And a second display mode changeover switch for switching between the detection amount and the threshold value or between the relative value and the threshold value, and adjusting the threshold value displayed on the display means. The setting means is provided with a threshold value adjusting means for resetting.
[0009]
The present invention according to claim 2 is a detecting means for outputting in accordance with the detected amount of the detected object, and a calculating means for calculating a detected amount obtained by the detecting means based on the presence or absence of the detected object to obtain a threshold value Setting means for setting a threshold value obtained by the calculating means; comparing the threshold value set by the setting means with the detection amount obtained by the detecting means; and outputting a result of the comparison. Means, a relative value calculating means for calculating a relative value which is a ratio between a threshold value set in the setting means and a detection amount of the detection means, and a detection amount obtained by the detection means, Display means for switching and displaying the set threshold value and the relative value calculated by the calculation means as numerical values, and first display mode switching for switching the display of the display means between the detection amount and the relative value Sui And a second display mode changeover switch for switching the display of the display means between the detected value or the relative value displayed on the display means and the threshold value by the first display mode changeover switch. And a threshold value adjusting means for adjusting the threshold value displayed on the display means and resetting it on the setting means.
[0010]
According to a third aspect of the present invention, the display means according to the first or second aspect is provided with an up / down switch for adjusting a threshold value indicated by a numerical value. The calculating means in the invention according to claim 1 or 2 automatically obtains a threshold value based on a detection amount obtained by the detecting means at the time of setting, and displays the threshold value when the obtained threshold value is set. The present invention according to claim 5 is characterized in that the set threshold value is displayed on the means. In the invention according to claim 4, the operation of automatically finding the threshold value is performed by calculating the maximum value of the detected amount. On the basis of the minimum value, a threshold between the maximum value and the minimum value is used as a threshold value.
[0011]
According to the present invention, the threshold value set in the threshold value setting unit is checked by the display on the display unit whether or not the detection unit is suitable for the environment in which the detection unit is arranged. In such a case, the threshold value is finely adjusted, and the threshold value is reset so that the detected object can be detected more reliably. The display means switches the set threshold value, detection amount and relative value and individually displays numerical values. Fine adjustment is performed on the threshold value when the threshold value is displayed.
[0012]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a photoelectric switch master unit according to an embodiment of the present invention. FIG. 2 is a block diagram showing a configuration of a photoelectric switch slave unit connected to the photoelectric switch master unit of FIG.
[0013]
The photoelectric switch master unit 100 shown in FIG. 1 includes a processing unit 1 composed of a gate array and a control unit 2 composed of a CPU (Central Processing Unit). The processing unit 1 includes a timing control unit 3, a comparison unit 4, an output unit 5, a threshold value calculation processing unit 6, a detection amount data register 7, a first threshold value setting register 8, a second threshold value. It has a setting register 9 and a transmission / reception register 10.
[0014]
The processing unit 1 is connected to a drive circuit 11, a light emitting element 12, a light receiving element 13, an amplifier 14, and an A / D converter (analog / digital converter) 15. A sensor head (not shown) is connected to the light emitting element 12 and the light receiving element 13 through an optical fiber.
[0015]
The timing control unit 3 controls the light emission timing of the light emitting element 12 via the drive circuit 11. When the drive circuit 11 drives the light emitting element 12, light is projected from the light emitting element 12 to the detection area via an optical fiber (not shown). When the sensor head is of a transmission type, the light projected from the light emitting element 12 is received by the light receiving element 13 when no object exists in the detection area. On the other hand, when the sensor head is a reflection type, when an object is present in the detection area, light reflected from the object is received by the light receiving element 13.
[0016]
The light receiving element 13 outputs a detection amount signal according to the state of the object in the detection area (for example, an object exists in a part or the whole of the detection area). / D converter 15. The A / D converter 15 converts an output signal of the amplifier 14 into a digital signal and supplies the digital signal to the processing unit 1. The detected amount given to the processing unit 1 is stored in the register 7.
[0017]
At the time of the threshold setting command, the threshold value calculation processing unit 6 performs a calculation for obtaining a threshold value between the maximum value and the minimum value based on, for example, the maximum value and the minimum value of the detection amount, and Calculated automatically. In the photoelectric switch master device 100 of this embodiment, for example, a threshold value calculation process is performed for each of two detection amounts due to a difference in the distance between the detection means and the detected object or the color of the detected object. Are set in the first threshold setting register 8 and the second threshold setting register 9, respectively. The transmission / reception register 10 temporarily stores transmission / reception data transmitted / received to / from the control unit 2 and the photoelectric switch handset 200 of FIG.
[0018]
The comparison unit 4 compares the detected amount with the first threshold value and compares the detected amount with the second threshold value in a time-division manner, and outputs the comparison result via the output unit 5 to the output terminal 26A. , 26B as a first detection signal DET1 and a second detection signal DET2, respectively. This photoelectric switch parent device 100 has two channels “A” and “B” respectively corresponding to a first threshold value and a second threshold value. Also, the photoelectric switch slave units sequentially connected to the photoelectric switch master unit 100 are sequentially provided with channels "1", "2",.
[0019]
Further, the processing section 1 is connected with an LED section 16 for displaying the detection results and threshold setting states of the channels “A” and “B”, and a connector 17 for connecting the photoelectric switch subunit 200 of FIG. ing.
[0020]
On the other hand, a threshold setting switch 18, an up switch 19, a down switch 20, and a mode switch 21 are connected to the control unit 2. The threshold setting switch 18 is used to issue a threshold setting command to the threshold calculation processor 6 of the processor 1. Further, the up switch 19 and the down switch 20 are thresholds determined by the threshold calculation unit 6, that is, thresholds set in the threshold setting register 8 and the second threshold setting register 9. Used to fine tune the value. The mode switch 21 is mainly used for switching a display mode described later.
[0021]
An EEPROM (electrically erasable and writable read-only memory) 22 for storing the first and second thresholds and the channel of the photoelectric switch master device 100 is connected to the control unit 2. Further, the control unit 2 digitally displays the detection amount of the photoelectric switch master unit 100, the first threshold value and the second threshold value, and the detection amount and threshold value of the photoelectric switch slave unit. LCD section (liquid crystal display section) 23 is connected. The LCD unit 23 is provided with a red backlight 24 and a green backlight 25.
[0022]
In this embodiment, the timing control unit 3, the driving circuit 11, the light emitting element 12, the light receiving element 13, the amplifier 14, and the A / D converter 15 constitute a detecting unit, and the comparing unit 4 and the output unit 5 constitute a comparing unit. I do. The threshold value calculation processing section 6 and the threshold value setting switch 18 constitute a calculating means, and the threshold value setting register 8 (including the threshold value setting register 9 in the parent device 100) is used as a threshold value. The setting means is configured.
[0023]
Further, the control section 2 and the LCD section 23 constitute display means, and the up switch 19, the down switch 20 and the control section 2 constitute adjustment means. Further, the control unit 2 and the LCD unit 23 constitute a display device for a detection switch, and the up switch 19, the down switch 20 and the control unit 2 constitute a detection switch setting device. The transmission / reception register 10 forms transmission / reception means.
[0024]
The photoelectric switch slave device 200 of FIG. 2 includes a processing unit 1a formed of a gate array. The processing section 1a has a timing control section 3, a comparison section 4a, an output section 5, a threshold value calculation processing section 6, a detection data register 7, a threshold setting register 8, and a transmission / reception register 10.
[0025]
A drive circuit 11, a light emitting element 12, a light receiving element 13, an amplifier 14, and an A / D converter 15 are connected to the processing unit 1a, as in the photoelectric switch master device 100 of FIG. The detected amount obtained by the A / D converter 15 is stored in the register 7.
[0026]
In the photoelectric switch slave unit 200, one threshold value is set. A threshold setting process is performed in response to the operation of the threshold setting switch 18 to automatically set the threshold. The threshold value obtained by the threshold value calculation processing section 6 is set in the register 8 as a threshold value. The transmission / reception register 10 temporarily stores transmission / reception data transmitted / received to / from the photoelectric switch master device 100 in FIG. The comparing section 4a compares the detected amount with the threshold value and outputs the result of the comparison to the output terminal 26 via the output section 5 as the detection signal DET.
[0027]
Two connectors 17A and 17B for connecting the photoelectric switch master unit 100 or another photoelectric switch slave unit are connected to the processing unit 1a. Here, it is assumed that the photoelectric switch master device 100 of FIG. 1 is connected to the connector 17A, and another photoelectric switch slave device is connected to the connector 17B. In addition, an EEPROM 22 that stores a threshold value of the photoelectric switch slave unit 200 is connected to the processing unit 1a.
[0028]
FIG. 3 is a diagram showing a display panel of the photoelectric switch master device 100 of FIG. In FIG. 3, the LED section 16 includes an operation display LED 16A for displaying the detection state of the channel "A", an operation display LED 16B for displaying the detection state of the channel "B", and a threshold for displaying the threshold setting state. It has a value setting display LED 16C.
[0029]
The operation display LED 16A turns red when the detection signal in the channel “A” is turned on. The operation display LED 16B turns red when the detection signal in the channel “B” is turned on. The threshold setting display LED 16C lights yellow during the threshold setting process. Whether the detection signals DET1 and DET2 are turned on when light enters or when light is blocked can be switched by a changeover switch (not shown).
[0030]
When the threshold value setting switch 18 is pressed, the threshold value is obtained by the threshold value calculation processing section 6 in FIG. The up switch 19 and the down switch 20 are used for finely adjusting the threshold value obtained by the threshold value calculation processing section 6. The LCD unit 23 has a channel unit 23a indicating a display channel and a data display unit 23b indicating a detection amount, a threshold value and a relative value of the display channel. Here, the relative value is a ratio between the detection amount and the threshold value, and represents a margin of the detection amount with respect to the threshold value.
[0031]
When the mode switch 21 is pressed for a predetermined time (for example, 3 seconds) or more, the data displayed on the data display section 23b is switched between the detected amount and the relative value. When the mode switch 21 is pressed for less than a predetermined time (for example, 3 seconds), the data displayed on the data display section 23b switches between the detected amount and the threshold value or between the relative value and the threshold value. . As described above, the display mode is switched by operating the mode switch 21. When the mode switch 21 and the up switch 19 or the down switch 20 are pressed, the display channel of the channel section 23a is switched.
[0032]
When the power is turned on, the channel displayed when the power was last turned off is displayed on the channel section 23a as a display channel based on the stored contents of the EEPROM 22 in FIG. Will be displayed.
[0033]
The LCD unit 23 performs red display by turning on the backlight 24 in FIG. 1 when the detection signal in the display channel is on, and performs the backlight in FIG. 1 when the detection signal in the display channel is off. The display of green is performed when 25 is lit.
[0034]
FIG. 4 is a flowchart showing a display update process in the control unit 2 of the photoelectric switch master device 100 of FIG. The control unit 2 updates the display on the LCD unit 23 by transmitting and receiving the detected amount and the threshold value to and from the processing unit 1.
[0035]
First, the control unit 2 sets the number N of times of reading the detected amount to 0 (step S1). Then, it is determined whether or not there is a switch input. (Step S2). When a fine adjustment of the threshold value is instructed by the threshold value setting switch 18 (step S3), a threshold value reading process described later is performed (step S4), and the read-out threshold value is set to the up switch 19 or The input value from the down switch 20 is added (step S5). Then, the addition result is used as a new threshold value to perform a threshold value writing process described later (step S6), and the process proceeds to step S15.
[0036]
When a change of the display mode is instructed by the mode switch 21 (step S7), the display mode is changed. (Step S8). Then, the detection amount is read (step S9), and the process proceeds to step S15. When a channel change is commanded by the mode switch 21 and the up switch 19 or the down switch 20 (step S10), the channel is changed (step S11), and the number N of times of reading the detected amount is reset to zero. (Step S12). Then, the detection amount is read (step S13), and the process proceeds to step S15.
[0037]
If there is no switch input in step S2, readout processing of the detected amount is performed (step S14), and the process proceeds to step S15. In step S15, the number N of times of reading the detected amount is increased by one. Steps S2 to S15 are repeated until the number of times N of reading the detected amount reaches a predetermined number (for example, eight). As a result, the process of reading out the detection amount a predetermined number of times (for example, eight times) is performed at a predetermined cycle. When the channel is changed, a predetermined number of times (for example, eight times) of reading the detection amount after the channel is changed is performed at a predetermined cycle.
[0038]
When the number of readings N of the detection amount reaches a predetermined number (for example, eight times), a threshold value reading process described later is performed (step S17), and an average value of the detection amount for the predetermined number of times (for example, eight times) is obtained. The relative value is calculated by calculating the ratio between the average value and the threshold value. (Step S18). Then, the display of the current channel detection amount, threshold value, and relative value is updated in the current display mode (step S19).
[0039]
Next, with reference to FIGS. 5, 6 and 7, the detection amount reading process and the threshold value reading and writing processes will be described. FIG. 5 is a diagram showing the format of an address given to the processing unit 1 from the control unit 2 at the time of read processing and write processing.
[0040]
As shown in FIG. 5, the address includes a read / write bit RW, a detection amount / threshold bit RT, and a channel CH. The read / write bit RW indicates whether to perform a read process or a write process. When “0”, the read process is performed, and when “1”, the write process is performed. The detection amount / threshold value bit RT indicates whether the data to be processed is a detection amount or a threshold value. When "0", the detection amount is indicated, and when "1", the threshold value is indicated. Is shown. Channel CH indicates a channel to be displayed or finely adjusted.
[0041]
FIG. 6 is a flowchart showing an address setting process by the control unit 2. First, the control unit 2 determines whether the data to be processed is a detected amount or a threshold value (step S21). When processing the detection amount, the detection amount / threshold value bit RT is set to “0” (step S22). Then, the read / write bit RW is set to "0" (step S23).
[0042]
If the data to be processed is a threshold, the detection amount / threshold bit RT is set to "1" (step S24), and it is determined whether the up switch 19 or the down switch 20 is pressed. It is determined whether to perform the read process or the write process based on the process (step S25). When performing the read process, the read / write bit RW is set to “0” (step S26), and when performing the write process, the read / write bit RW is set to “1” (step S27).
[0043]
Thereafter, the channel CH is set based on the channel set by the mode switch 21 and the up switch 19 or the down switch 20 (step S28). Then, an address including the set read / write bit RW, detection amount / threshold bit RT, and channel CH is set (step S29).
[0044]
FIG. 7 is a flowchart showing read processing and write processing performed by the processing section 1 and the control section 2. First, the control unit 2 performs the address setting process shown in FIG. 6 (step S31). Then, the set address is transmitted from the control unit 2 to the processing unit 1 (step S32).
[0045]
The processing unit 1 determines whether to perform a read process based on the read / write bit RW of the received address (Step S33). In the case of performing the read process, it is determined whether the read process in the photoelectric switch master device (own device) 100 or the read process in the photoelectric switch slave device 200 should be performed based on the channel CH of the address (step S34). ). That is, when the channel CH is set to “A” or “B”, the reading process is performed in the photoelectric switch master unit 100. When the channel CH is set to a number “1” or later, the photoelectric switch is set to “1”. This is a reading process in the switch slave unit 200.
[0046]
When the reading process is performed in the photoelectric switch master device (own device) 100, the processing unit 1 sets the detection amount stored in the register 7 and the register 8 based on the detection amount / threshold value bit RT. The first threshold value or the second threshold value set in the register 9 is set as read data in the transmission / reception register 10 (step S35). Then, the processing unit 1 transmits the read data of the transmission / reception register 10 to the control unit 2 (step S36). The control unit 2 displays the read data on a data display unit 23b of the LCD unit 23.
[0047]
On the other hand, when performing the reading process in the photoelectric switch slave device 200, the processing section 1 transmits the address to the corresponding photoelectric switch slave device 200 based on the address channel CH (step S37). In this case, the slave unit that has received the address determines that read processing should be performed based on the read / write bit RW of the address, and processes the detected amount based on the detected amount / threshold bit RT. It is determined whether or not the threshold should be processed, and the detected amount or the threshold is read out and transmitted as data to the photoelectric switch master unit 100 via the connector 17A.
[0048]
When the processing unit 1 of the photoelectric switch master unit 100 receives the read data from the photoelectric switch slave unit 200 in the transmission / reception register 10 (step S38), it transmits the read data to the control unit 2 (step S39). . The control unit 2 displays the received read data on a data display unit 23b of the LCD unit 23.
[0049]
In step S33, when performing the writing process, it is determined whether to perform the writing process in the photoelectric switch parent device (own device) 100 based on the address channel CH or not. A determination is made (step S40). When performing the writing process in the photoelectric switch master device (own device) 100, the control unit 2 transmits the write data to the processing unit 1 (step S41). Here, the write data is a value obtained by adding the input value from the up switch 19 or the down switch 20 to the threshold value read in the previous read processing. The processing unit 1 sets the received write data as a new threshold value in the register 8 or 9 according to the channel CH of the address.
[0050]
On the other hand, when performing the writing process in the photoelectric switch slave unit 200, the processing unit 1 transmits the address to the corresponding photoelectric switch slave unit 200 based on the address channel CH (step S43). Thereafter, the controller 2 transmits the write data to the processor 1 (step S44). Here, the write data is a value obtained by adding the input value from the up switch 19 or the down switch 20 to the threshold value read in the previous read processing.
[0051]
The processing section 1 transmits the received write data to the photoelectric switch slave device 200 via the connector 17 (step S45). Upon receiving the write data, the photoelectric switch slave unit 200 determines the received write data as a new threshold based on the read / write bit RW of the address and the detection amount / threshold bit RT and determines whether the register 8 is a new threshold. Set to.
[0052]
In this manner, by operating the mode switch 21 and the up switch 19 or the down switch 20 shown in FIG. 3, the channel of the channel section 23a is switched, and by operating the mode switch 21, the data display section is displayed. The data displayed at 23b is switched between the detected amount, the threshold value and the relative value.
[0053]
Thus, the operator can accurately know the detection amount, the first and second threshold values of the photoelectric switch master device 100, and the detection amount, threshold value, and relative value of the photoelectric switch slave device 200.
[0054]
By operating the up switch 19 or the down switch 20, the threshold value of the channel displayed on the channel section 23a is finely adjusted, and new threshold data is displayed on the data display section 23b. You. Therefore, the operator can finely adjust the threshold values set in the photoelectric switch master device 100 and the photoelectric switch slave device 200 while viewing the display on the data display section 23b.
[0055]
In the above embodiment, the detection switch device when the master unit and the slave unit are combined has been described, but it goes without saying that the master unit may be used alone. Alternatively, the control unit 2, the switches 19, 20, and 21 to be input to the control unit, the LCD display unit 23, the EEPROM 22, and the backlights 24 and 25 may be configured as a single unit and provided in the slave unit.
[0056]
Further, in the above embodiment, the case where the present invention is applied to the photoelectric switch and the photoelectric switch system has been described. However, the present invention is similarly applied to other detection switches and other detection switch systems such as a proximity switch and an ultrasonic switch. And can be applied.
[0057]
【The invention's effect】
As described above in detail, according to the present invention, the threshold value obtained by the calculating means, the detected amount obtained by the detecting means at the present time, and the relative value are switched and numerically displayed, respectively. It is possible to know the relationship with the obtained threshold value, to judge the accuracy of the threshold value obtained by the calculation means, and to finely adjust the threshold value, so that the measurement environment can be adjusted more. It becomes possible to set a threshold value.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a photoelectric switch parent device according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of a photoelectric switch slave connected to the photoelectric switch master shown in FIG.
FIG. 3 is a view showing a display panel of the photoelectric switch master device of FIG. 1;
FIG. 4 is a flowchart showing a display update process in the photoelectric switch master unit of FIG. 1;
FIG. 5 is a diagram showing the format of addresses used for read processing and write processing.
FIG. 6 is a flowchart showing an address setting process by a control unit of the photoelectric switch master unit of FIG. 1;
FIG. 7 is a flowchart showing a read process and a write process in the photoelectric switch parent device of FIG. 1;
[Explanation of symbols]
1, 1a processing unit
2 control unit
4, 4a comparison section
6 Threshold calculation processing section
7 Received light data register
8, 9 Threshold value setting register
10 Transmit / receive register
12 Light emitting element
13 Light receiving element
16 LED section
17, 17A, 17B Connector
18 Threshold value setting switch
19 Up switch
20 Down switch
21 Mode switch

Claims (5)

被検出物体の検出量に応じて出力する検出手段と、被検出物体の有無に基づき前記検出手段により得られる検出量を演算してしきい値を求める演算手段と、前記演算手段で求めたしきい値を設定する設定手段と、前記設定手段に設定したしきい値と前記検出手段によって得られた検出量とを比較し、その比較の結果を出力する比較手段と、前記設定手段に設定されたしきい値と前記検出手段の検出量との比である相対値を算出する相対値算出手段と、前記検出手段によって得られた検出量、前記設定手段に設定されたしきい値および前記算出手段によって算出された相対値を数値として切り換え表示する表示手段と、前記表示手段の表示を前記検出量と前記相対値との間で切り換える第一の表示モード切り換えスイッチと、前記検出量と前記しきい値との間、又は前記相対値と前記しきい値との間で切り換える第二の表示モード切り換えスイッチと、前記表示手段に表示したしきい値を調整して前記設定手段に再設定するしきい値調整手段を設けてなることを特徴とする検出スイッチ。Detecting means for outputting in accordance with the detected amount of the detected object; calculating means for calculating a detection amount obtained by the detecting means based on the presence or absence of the detected object to obtain a threshold; Setting means for setting a threshold value, comparing means for comparing a threshold value set in the setting means with a detection amount obtained by the detecting means, and outputting a result of the comparison; A relative value calculating means for calculating a relative value which is a ratio of the detected threshold value to the detected amount of the detecting means; a detected amount obtained by the detecting means; Display means for switching and displaying the relative value calculated by the means as a numerical value, a first display mode changeover switch for switching the display of the display means between the detected amount and the relative value, A second display mode changeover switch for switching between a threshold value or the relative value and the threshold value, and adjusting the threshold value displayed on the display means and resetting the setting means. A detection switch comprising threshold adjustment means. 被検出物体の検出量に応じて出力する検出手段と、被検出物体の有無に基づき前記検出手段により得られる検出量を演算してしきい値を求める演算手段と、前記演算手段で求めたしきい値を設定する設定手段と、前記設定手段に設定したしきい値と前記検出手段によって得られた検出量とを比較し、その比較の結果を出力する比較手段と、前記設定手段に設定されたしきい値と前記検出手段の検出量との比である相対値を算出する相対値算出手段と、前記検出手段によって得られた検出量、前記設定手段に設定されたしきい値および前記算出手段によって算出された相対値を数値として切り換え表示する表示手段と、前記表示手段の表示を前記検出量と前記相対値との間で切り換える第一の表示モード切り換えスイッチと、前記表示手段の表示を、前記第一の表示モード切り換えスイッチよって前記表示手段に表示された前記検出量または前記相対値と前記しきい値との間で切り換える第二の表示モード切り換えスイッチと、前記表示手段に表示したしきい値を調整して前記設定手段に再設定するしきい値調整手段を設けてなることを特徴とする検出スイッチ。Detecting means for outputting in accordance with the detected amount of the detected object; calculating means for calculating a detection amount obtained by the detecting means based on the presence or absence of the detected object to obtain a threshold; Setting means for setting a threshold value, comparing means for comparing a threshold value set in the setting means with a detection amount obtained by the detecting means, and outputting a result of the comparison; Relative value calculating means for calculating a relative value that is a ratio between the threshold value and the detection amount of the detection means, the detection amount obtained by the detection means, the threshold value set in the setting means, and the calculation Display means for switching and displaying the relative value calculated by the means as a numerical value, a first display mode changeover switch for switching the display of the display means between the detected amount and the relative value, and a table of the display means. A second display mode changeover switch for switching between the detected amount or the relative value and the threshold value displayed on the display means by the first display mode changeover switch, and a display on the display means. A detection switch comprising threshold value adjusting means for adjusting a threshold value and resetting the setting means. 表示手段に数値表示したしきい値を調整するアップ・ダウンスイッチを設けてなることを特徴とする請求項1又は請求項2記載の検出スイッチ。3. The detection switch according to claim 1, further comprising an up / down switch for adjusting a numerical value displayed on the display means. 演算手段は、設定時に検出手段により得られる検出量に基づいてしきい値を自動的に求めるとともに、前記求めたしきい値を設定した際、表示手段に前記設定されたしきい値を表示してなることを特徴とする請求項1又は請求項2記載の検出スイッチ。The calculating means automatically obtains the threshold value based on the detection amount obtained by the detecting means at the time of setting, and displays the set threshold value on the display means when the obtained threshold value is set. The detection switch according to claim 1, wherein the detection switch comprises: しきい値を自動的に求める演算は、検出量の最大値と最小値に基づいて、その最大値と最小値との間をしきい値としてなる請求項4記載の検出スイッチ。5. The detection switch according to claim 4, wherein the calculation for automatically determining the threshold value is based on the maximum value and the minimum value of the detected amount, and the threshold between the maximum value and the minimum value is used as the threshold value.
JP2001176503A 2001-06-12 2001-06-12 Detection switch Expired - Fee Related JP3566231B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001176503A JP3566231B2 (en) 2001-06-12 2001-06-12 Detection switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001176503A JP3566231B2 (en) 2001-06-12 2001-06-12 Detection switch

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP06086496A Division JP3223420B2 (en) 1996-03-18 1996-03-18 Detection switch

Publications (2)

Publication Number Publication Date
JP2002098773A JP2002098773A (en) 2002-04-05
JP3566231B2 true JP3566231B2 (en) 2004-09-15

Family

ID=19017481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001176503A Expired - Fee Related JP3566231B2 (en) 2001-06-12 2001-06-12 Detection switch

Country Status (1)

Country Link
JP (1) JP3566231B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6333800B2 (en) 2015-12-08 2018-05-30 ファナック株式会社 Switch device and numerical control system for generating safety input signal

Also Published As

Publication number Publication date
JP2002098773A (en) 2002-04-05

Similar Documents

Publication Publication Date Title
JP3223420B2 (en) Detection switch
CN1180745C (en) Infrared thermometer
JP2000121440A (en) Color identifying apparatus
US8384512B2 (en) Detection sensor and setting information acquisition method thereof
JP2004138548A (en) Sensor and output characteristic switchover method for same
JP3566231B2 (en) Detection switch
JP3329742B2 (en) Detection switch device
JP4950452B2 (en) Detection sensor
JP3830776B2 (en) Detection switch
JP4338708B2 (en) Detection switch
JP2003075117A (en) Optical sensor device and signal processing device of optical sensor and branch connector for optical sensor
JP2003032093A (en) Detection switch system
JP4683790B2 (en) Sensor with sensitivity setting function
JP2007088659A (en) Infrared touch switch
JPH09252243A (en) Detection switch
KR100800411B1 (en) Apparatus and method for controlling buffer memory in digital video recorder
CN117234193B (en) Calibration device for a control system
JPH08136487A (en) Odor monitor
JPH08106585A (en) Fire detector
JPH0830654B2 (en) Position measuring device
KR100549601B1 (en) Method and apparatus for controlling auto convergence of display device
KR100800418B1 (en) Apparatus and method for controlling buffer memory in digital video recorder
JPH09232934A (en) Photoelectric switch
JP2005109704A (en) Detection sensor
JP2002024978A (en) Detecting sensor

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040608

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040609

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100618

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100618

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130618

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees