JP2004101445A - Sensor - Google Patents

Sensor Download PDF

Info

Publication number
JP2004101445A
JP2004101445A JP2002266015A JP2002266015A JP2004101445A JP 2004101445 A JP2004101445 A JP 2004101445A JP 2002266015 A JP2002266015 A JP 2002266015A JP 2002266015 A JP2002266015 A JP 2002266015A JP 2004101445 A JP2004101445 A JP 2004101445A
Authority
JP
Japan
Prior art keywords
function
input signal
remote input
signal
remote
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002266015A
Other languages
Japanese (ja)
Other versions
JP3981820B2 (en
Inventor
Yoshinori Kawai
川合 喜典
Takashi Kamei
亀井 隆
Hiroyuki Inoue
井上 宏之
Kiyohiko Gondo
権藤 清彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2002266015A priority Critical patent/JP3981820B2/en
Publication of JP2004101445A publication Critical patent/JP2004101445A/en
Application granted granted Critical
Publication of JP3981820B2 publication Critical patent/JP3981820B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Light Receiving Elements (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a photoelectric sensor and a proximity sensor for repeatedly performing desired function even if function specifying information is not included in a remote input signal in the case of previously knowing which function realizing means is used among a plurality of previously provided function realizing means. <P>SOLUTION: This sensor includes: a characteristic amount obtaining means for obtaining the characteristic amount related to the presence/absence of an object through the medium of light from an area to be detected; a determination means for determining the presence/absence of an object by comparison between the characteristic amount obtained by the characteristic amount obtaining means and a designated threshold; an output means for performing output operation corresponding to the determination result of the determination means; a signal input means for receiving a remote input signal; a plurality of function realizing means operated in response to each input signal to realize an inherent function; and an allocation setting means for previously allocating which of the plurality of function realizing means is to be operated. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明は、リモート入力信号を受け付ける機能を有するセンサに係り、特に、リモート入力信号に応答して動作すべき機能実現手段の選択をセンサ側にて予め割当設定可能とした光電センサ及び近接センサに関する。
【0002】
【従来の技術】
従来、リモート入力を受け付ける機能を有する光電センサにあっては、リモート入力信号それ自体に含まれる機能指定情報を解析することにより、予め用意された複数の機能実現手段のいずれを動作すべきかの判断を行うという手法が採用されている。
【0003】
ここで、機能指定情報は、入力信号ラインがベースバンドラインで構成される場合には、入力信号の論理H/論理Lの期間やパルス数等の簡単な信号形態で与えられ、フィールドバス等の通信ラインで構成される場合には、様々な通信プロトコルを利用して与えられる(例えば、特許文献1参照)。
【0004】
【特許文献1】
特開平11−161303号公報
【0005】
【発明が解決しようとする課題】
しかしながら、このような従来のリモート入力受け付け機能を有する光電センサにあっては、リモート入力信号に複雑な操作を加えて機能指定情報を含ませねばならないから、リモート入力信号の送り出し側の負担が大きい。また、リモート入力信号を受け取るセンサの側でも、その都度、機能指定情報の解析が必要であるから、応答速度が低下する。そのため、殊に、リモート入力機能を利用して同一の機能実現手段を繰り返し動作させたい場合には、その都度、信号送出側でリモート入力信号に機能指定情報を含ませねばならない一方、センサ側でも、その都度信号の解析に煩わされることとなり、著しく合理性に欠ける。
【0006】
加えて、リモート入力信号とそれに対応して動作する機能実現手段との関係が固定的に決められているセンサの場合には、リモート入力機能を利用して複数の機能を実現したい場合には、その機能毎に複数種のセンサを使い分けねばならない。
【0007】
この発明は、上述の問題点に着目してなされたものであり、その目的とするところは、予め用意された複数の機能実現手段の中でいずれを利用するかが予め判っている場合等には、リモート入力信号に機能指定情報を含めずとも、所望の機能を繰り返し実行させることができる光電センサ及び近接センサを提供することにある。
【0008】
この発明のさらに他の目的並びに作用効果については、明細書の以下の説明を参照することにより、当業者であれば容易に理解される筈である。
【0009】
【課題を解決するための手段】
この発明の光電センサは、検出対象領域から物体の有無と相関のある特徴量を取得する特徴量取得手段と、前記特徴量取得手段により取得された特徴量と所定のしきい値との比較により物体の有無を判定する判定手段と、前記判定手段による判定結果に対応する出力動作を行う出力手段と、リモート入力信号を受け付けるための信号入力手段と、それぞれ入力信号に応答して動作して固有の機能を実現する複数の機能実現手段と、前記信号入力手段がリモート入力信号を受け付けたときに、前記複数の機能実現手段のいずれが動作すべきかを予め割当設定する割当設定手段とを具備することを特徴とする。
【0010】
ここで、光電センサに代えて、近接センサについても、同様の構成を具備させることができる。
【0011】
また、『リモート入力信号』の意味するところは、センサに対して外部から何らかの機能を実行させるために与えられる入力信号のことであって、一般的には、“H”状態と“L”状態とをとることができる二値信号である場合が多い。また、複数の機能実現手段としては、例えば光電センサの場合、しきい値の設定などの際に動作するティーチング機能実現手段等が少なくとも含まれる。その他、機能実現手段としては、センサの設定や動作に関して必要な様々な機能を含むことを想定している。
【0012】
そして、このような構成によれば、信号入力手段がリモート入力信号を受け付けたときに、複数の機能実現手段のいずれが動作すべきかを予め割当設定する割当設定手段を設けたことにより、リモート入力信号を送り出す側では、そのリモート入力信号に従前のように機能指定情報を含ませることが不要となるから、その分だけリモート入力信号送り出し側の負担を軽減することができる。同時に、リモート入力信号を受け取るセンサの側でも、その都度、機能指定情報の解析が不要となるため、応答速度を向上させることができる。そのため、この発明によれば、リモート入力機能を利用して同一の機能実現手段を繰り返し動作させるような場合には、その都度、信号送り出し側でリモート入力信号に機能指定情報を含ませる必要がなくなる一方、センサの側ではその都度信号の解析に煩わされることがなくなるため、応答性の高い制御処理を実現することができる。
【0013】
加えて、リモート入力信号とそれに対応して動作する機能実現手段との関係は任意に変更ができるため、1台のセンサを用いることによって、様々なリモート入力機能を提供することができる。
【0014】
この発明にかかる光電センサの好適な実施の一形態においては、前記割当設定手段が、前記割当設定されるべき機能実現手段を指示するための手動操作子を含むものが考えられる。このような構成によれば、ユーザは操作キーや操作ボタン等を使用することによって、割当設定されるべき機能実現手段を任意に設定することが可能となる。殊に、こうして予めリモート入力信号に対応して実行されるべき機能実現手段を割り当てておけば、以後リモート入力信号に対しては指定機能の解析が一切不要であるから、センサの側ではリモート入力信号の到来と共に直ちに該当する機能実現手段を動作させ、高い応答速度をもって所望の機能を実現させることができる。
【0015】
本発明にかかる光電センサの好ましい他の実施の一形態においては、前記割当設定手段が、前記設定の候補となり得る複数の機能実現手段により実現されるべき機能の各々を案内表示するための表示器を含むことが考えられる。このような構成によれば、当該センサにリモート入力信号と関連してどのような機能実現手段が備えられているかを容易に把握することができ、これに基づき上記割当操作を適切に実施することができる。
【0016】
また、本発明にかかる光電センサの好適な他の実施の一形態においては、予め決められた処理の実行中にあっては、前記リモート入力信号の受け付けを禁止する受け付け禁止手段をさらに含ませることが考えられる。このような構成によれば、例えば高速応答を必要とするような処理の実行中に、当該処理がリモート入力信号によって邪魔されたり、処理の実行が遅らされるといった事態が回避され、全体として処理の高速化を実現することができる一方、当該高速処理等の実行中にあっては、そのような受け付け禁止が自動的に行われることによって、ユーザはセンサ内の実行プログラムに一切配慮することなく、全体としてセンサの動作に遅れが生ずることを回避することができる。
【0017】
また、本発明にかかる光電センサの他の実施の一形態においては、前記複数の機能実現手段の中には、リモート入力信号が受け付けられても、なにもしない機能を含ませることが考えられる。このような構成によれば、予めこの『なにもしない機能』を設定していくことによって、リモート入力信号が不用意に受け付けられ、意図しない機能動作が実現される虞れを未然に防止することができる。
【0018】
さらに、本発明にかかる光電センサの他の実施の一形態においては、所定の操作子の操作に応答してリモート入力信号を擬似的に発生させるリモート入力発生手段をさらに有することが考えられる。このような構成によれば、リモート入力とそれに対応する機能実現手段との割当設定を完了した後に、その設定が正常に行われているかどうかを、擬似的なリモート入力信号を任意に発生させることによって確認することが可能となり、設定操作の確実性を担保することができる。
【0019】
【発明の実施の形態】
以下に、本発明に係る光電センサの好適な実施の一形態を添付図面に従って詳細に説明する。尚、以下に説明する実施の形態は、本発明に係る光電センサの一例を示すものに過ぎず、本発明に係る光電センサの及ぶ範囲は特許請求の範囲のみによって特定されることは言うまでもない。
【0020】
殊に、以下の説明では本発明を光電センサとして実施しているが、本発明の適用はこれに限定されるものではなく、近接センサにも応用が可能である。
【0021】
本発明の一実施形態における光電センサの上部カバーを開いた状態における外観斜視図が図1に示されている。同図に示されるように、光電センサ1は多連層型のプラスチック製筐体101を有する。筐体101の前部には、投光用ファイバ2と受光用ファイバ3とが挿入され、クランプレバー103の操作によって抜け止め固定される。筐体101の後部からは電気コード4が引き出されている。
図示の電気コード4は、アース(GND)用の芯線41と、電源(Vcc)用の芯線42と、検出出力用の芯線43と、補助出力用の芯線44と、リモート入力用の芯線45とを有する。
【0022】
筐体101は、制御盤などの取付面に対して図示しないDINレールを介して固定される。符号104で示されるものはDINレール嵌合溝である。筐体101の上部には、透明な上部カバー102が開閉可能に取り付けられている。上部カバー102を開いた状態で露出する筐体101の上面には、第1の表示器105と、第2の表示器106と、第1の操作ボタン(UP)107と、第2の操作ボタン(DOWN)108と、第3の操作ボタン(MODE)109と、第1のスライド操作子(SET/RUN)110と、第2のスライド操作子(L/D)111とが設けられている。
【0023】
本発明光電センサの操作・表示部の拡大図が図2に示されている。図1及び図2を参照して明らかなように、第1の表示器105及び第2の表示器106は、いずれも4桁の7セグメントデジタル表示器で構成されており、それぞれ4桁の数字、アルファベット、さらにはそれらの組み合わせを任意に表示可能となされている。第1の操作ボタン107、第2の操作ボタン108、及び第3の操作ボタン109は、いずれもモメンタリタイプの押しボタンスイッチを構成しており、図2に示されるように、第1の操作ボタン107は『UPキー』として、第2の操作ボタン108は『DOWNキー』として、第3の操作ボタン109は『MODEキー』としてそれぞれ機能するように構成されている。第1のスライド操作子110及び第2のスライド操作子111はいずれもスライドスイッチを構成するものであり、図2に示されるように、第1のスライド操作子110は『SET/RUN切替スイッチ』として、第2のスライド操作子111は『L/D切替スイッチ』として機能するように構成されている。
【0024】
図1に戻って、筐体101の内部には、図示しないが、物体検出用の発光素子と物体検出用の受光素子とが内蔵されている。投光用ファイバ2をファイバ挿入孔にしっかりと挿入すると、投光用ファイバ2の端面と検出用発光素子の発光部とがしっかりと光結合され、これにより検出用の発光素子から発生した光は、投光用ファイバ2を経由して、その先端の図示しないファイバヘッドから検出領域へと投光される。同様に、受光用ファイバ3をファイバ挿入孔にしっかりと挿入すると、受光用ファイバ3の端面と検出用受光素子とが光結合され、これにより図示しない受光用ファイバ3のファイバヘッドからファイバ内に導入された光は、受光用ファイバ3に案内されて、検出用の受光素子にたどり着くようになっている。以上述べた検出用の発光素子と検出用の受光素子との配置構成は従来のこの種のファイバ型光電スイッチに採用されたものと同様である。
【0025】
次に、本発明の一実施形態である光電センサの電気的ハードウェア構成の全体を示すブロック図が図3に示されている。同図に示されるように、この回路はマイクロプロセッサを主体として構成されるCPU200を中心として構成されている。CPU200内には、マイクロプロセッサの他に、システムプログラムを格納したROMやプログラムの実行に必要なワーキングRAM、その他各種の設定データを格納するためのEEPROMなどが内蔵されている。このEEPROMには、工場出荷前においてメーカ側が設定したデータや、工場出荷後にユーザが設定した各種のデータが格納される。このようなCPU200の構成については、各種の文献において種々公知であるから、その点についての詳細な説明は省略する。
【0026】
図において最も左側には、先に説明した発光素子を有する投光部202と受光素子を有する受光部203とが描かれている。投光部202には検出用の発光素子である発光ダイオード(以下、LEDと称する)202aと、LED202aを駆動するためのLED駆動部202bとが含まれている。一方、受光部203には、検出用の受光素子であるフォトダイオード(以下、PDと称する)203aと、PD203aの出力を増幅するためのアンプ部203bとが含まれている。
【0027】
そして、LED駆動部202bの作用により検出用発光素子であるLED202aから発生したパルス光は、投光用ファイバ2を介して検出領域へと導かれる。検出領域において透過または反射したことにより受光用ファイバ3に導入された光は、受光用ファイバ3を経由して検出用受光素子であるPD203aへとたどり着く。PD203aで光電変換されて生じた出力信号は、アンプ部203bで増幅された後CPU200へとA/D変換器(図示せず)を介して取り込まれる。尚、これら投受光の基本的な構成についても、各種の文献において公知であるから、この点についての詳細な説明は省略する。
【0028】
表示部204は、CPU200における各種の演算により生成されたデータを表示させるための表示器で構成されており、この表示部204には、より具体的には、先に図1並びに図2を参照して説明した第1の表示器105並びに第2の表示器106が含まれている。それらの第1並びに第2の表示器105,106には、後に詳細に説明するように、本発明のリモート入力割当設定機能に関連した各種の情報が、数値、アルファベット、それらの組み合わせなどにより表示される。
【0029】
入力部205は、CPU200に対して各種の情報を入力するためのものである。この入力部205には、キー入力部205aと信号入力部205bとが含まれている。キー入力部205aは、オペレータが手動操作で各種のデータを入力するためのものであり、この入力部205aには先に図1並びに図2を参照して説明したように、第1の操作ボタン107、第2の操作ボタン108、第3の操作ボタン109、第1のスライド操作子110、及び第2のスライド操作子111が含まれている。これに対して、信号入力部205bは、先に図1を参照して説明した電気コード4の芯線45を介してリモート入力信号を入力するためのものであり、この信号入力部205bを介して芯線45から到来するリモート入力信号(この例では1ビットの“H”/“L”信号)がCPU200へと取り込まれる。
【0030】
尚、この例にあっては、信号入力部205bは1ラインしか設けられていないが、これを2ライン以上設けて2系統のリモート入力信号に対応させたり、さらに3ライン以上に増加させて、それぞれ別々のリモート入力信号に対応させることができるのは勿論である。このように多数の信号入力系を設けた場合には、個々の1ビット毎をそれぞれ入力信号と認定することもできるが、それら複数ビットからなるコードをデコードした結果を個々のリモート入力信号の到来と判定するように設計することも可能である。このような場合には、ユーザサイドの側では、リモート入力信号を並列多ビットのコードとして送り出せばよい。こうして送り出された多ビットのコードを、センサ内部のハードウェア的に構成されたデコーダによってデコード処理すれば、リモート入力信号の迅速な取り込みが可能となる。尚、その際には、デコードされた各1ビットを本発明に関連して、様々な機能実現手段に割当設定すればよい。
【0031】
出力部206は、CPU200で生成された各種の出力信号を電気コード4に含まれる芯線43及び44へと出力するためのものである。この出力部206には、物体検出信号出力用の出力部206aと任意の補助出力信号用の出力部206bとが含まれている。すなわち、CPU200で生成された物体検出用の検出信号は、出力部206aを介して電気コード4内の芯線43へと送り出される。
同様にして、CPU200で生成された任意の補助出力信号は、出力部206bを介して、電気コード4に含まれる芯線44へと送り出される。これらの電気コード4に含まれる芯線43,44は一般的にはPLCやPC等の上位装置へと接続される。同様にして、電気コード4に含まれる芯線45についても、PLCやPC等の上位装置へと接続され、リモート入力信号の生成に提供される。
【0032】
電源部201は、図3に示される投光部202、受光部203、表示部204、入力部205、出力部206のそれぞれに対して電源を供給する電源安定化装置等で構成されており、この電源部201に対する給電は、電気コード4に含まれる芯線41及び42を介して行われる。この例では芯線41はGNDに接続され、芯線42はVccに接続される。
【0033】
次に、以上述べた機械的構造並びに電気的なハードウェア構成を前提として、この光電センサに備えられた様々な機能並びにそれらを実現するためにCPU200で実行されるシステムプログラムの構成について説明する。
【0034】
この光電センサには、選択的に実行(ON/OFF)可能な複数の機能が備えられている。それらの機能のそれぞれには、様々な選択肢が用意されている。それらの機能の選択(ON/OFF)並びに選択肢の選択は、この光電センサをSETモードに設定することで行うことができる。特定の選択肢に従ってON設定された機能を実現させる動作は、この光電センサをRUNモードに設定することで行うことができる。動作モードをSETモードとするかRUNモードとするかの指定は、図2に示されるように、第1のスライド操作子110を『SET』側とするか、『RUN』側とするかにより決定することができる。因みに、第2のスライド操作子111は、この光電センサの検出出力信号の論理極性を設定するためのもので、第2のスライド操作子111が『L』側に設定されているといわゆるライトオンモードとなり、『D』側に設定されるとダークオンモードとなる。
【0035】
CPUで実行されるシステムプログラムの全体を概略的に示すゼネラルフローチャートが図4に示されている。このシステムプログラムは電源投入によって実行を開始される。
【0036】
同図において、処理が開始されると、まず初期設定処理(ステップ401)が実行される。この初期設定処理(ステップ401)においては、後述するルーチン処理を開始するに先立って必要な各種の初期設定処理が実行される。この初期設定処理には、各種メモリ、表示灯、制御出力の初期化の実行や、CPU200に含まれるEEPROMから必要項目の読出とデータチェックを行う処理などが実行される。
【0037】
初期設定処理(ステップ401)が実行を完了すると、ルーチン処理への移行が行われ、その最初においてまず第1のスライド操作子110の設定状態が参照される(ステップ402)。ここで、第1のスライド操作子110が『SET』側へ設定されていれば(ステップ402SET)、続いてSETモード初期設定処理(ステップ403)が実行される。このSETモード初期設定処理(ステップ403)では、SETモード用測定値の初期化や機能番号(F)の初期化(F=0)等が行われる。
【0038】
SETモード初期設定処理(ステップ403)が実行を完了すると、以後、第1のスライド操作子110が『SET』側へ設定された状態にある限り(ステップ405YES)、様々な機能(F)に関するSETモード処理(ステップ404)が実行される。この状態において、ユーザは、第1の操作ボタン107、第2の操作ボタン108、第3の操作ボタン109を適宜に操作することによって、当該光電センサに用意された様々な機能(F)のON/OFF設定、さらには、各機能(F)別の個別設定処理を実行することができる。
【0039】
一方、第1のスライド操作子110の設定状態を参照した結果、『RUN』側へと設定されたと判定されると(ステップ402RUN)、続いて、RUNモード初期設定処理(ステップ406)が実行される。このRUNモード初期設定処理(ステップ406)においては、表示灯、制御出力の初期化、しきい値及び各種RUNモード用設定値の初期化等が行われる。
【0040】
RUNモード初期設定処理(ステップ406)が完了すると、続いて第1のスライド操作子110が『RUN』側へ設定されている限り(ステップ408YES)、RUNモード処理(ステップ407)が実行される。このRUNモード処理(ステップ407)においては、光電センサとして必要な基本的な動作の他に、ユーザにより選択的に設定された各種の機能が実現される。尚、このRUNモード処理の具体的な内容については、必要に応じて、後に詳細に説明を行う。
【0041】
このように、CPU200で実行されるシステムプログラムは、いわゆる電源投入直後に行われるイニシャル処理である初期設定処理(ステップ401)と、ルーチン処理であるところの2つの処理すなわちSETモード処理(ステップ404)及びRUNモード処理(ステップ407)に大別される。そして、本発明の要部であるところのリモート入力割当設定機能の実行はRUNモード処理(ステップ407)において行われ、リモート入力割当設定機能における各種の設定はSETモード処理(ステップ404)において行われる。
【0042】
SETモード処理の全体を示すフローチャートが図5に示されている。同図において処理が開始されると、まず機能別表示処理(ステップ501)が実行される。この機能別表示処理(ステップ501)では、機能番号Fに該当する様々な表示処理が実行される。
【0043】
続いて、キー入力検出処理が実行され(ステップ502)、図1並びに図2に示される操作ボタン107〜109並びにスライド操作子110,111におけるキー入力操作の有無を待機する状態となる(ステップ503NO)。
【0044】
この状態において、キー入力有りと判定され(ステップ503YES)、しかも機能切替に相当するキー入力シーケンスが確認されると(ステップ504YES)、機能切替指令が確認されるたびに、機能番号(F)の値は全機能数に達するまで+1ずつインクリメントされ(ステップ505,506NO)、全機能数に達すると共に(ステップ506YES)、再びゼロリセットされて(ステップ507)、機能(F)の循環切替が実行される。
【0045】
この状態においてそのとき設定されている機能Fに関する実行が指示されると(ステップ504NO,508YES)、機能別実行処理が実行され、機能番号Fに該当する処理が行われる(ステップ509)。本発明に関するリモート入力割当設定機能は、この機能別実行処理(ステップ509)により実現される。
【0046】
すなわち、図6のフローチャートに示されるように、リモート入力割当設定処理が開始されると、まず7セグメント表示器である第1の表示器105,第2の表示器106には、『リモート入力割当設定モード』に対応する表示と『割当対象機能』に対応する表示とが行われる。このような設定時における幾つかの案内表示例を示す説明図が図11に示されている。
【0047】
同図(a)には、1点ティーチング機能に対する案内表示例が示されている。
この例にあっては、第1の表示器105にはリモート入力割当設定モードを意味する表示が例えば『7 rm』として行われ、第2の表示器106には1点ティーチング機能を意味する表示が例えば『1Pt』のように行われる。
【0048】
同図(b)には、2点ティーチング機能に対する案内表示例が示されている。
この例にあっても、第1の表示器105にはリモート入力割当設定モードを意味する表示が例えば『7 rm』として行われ、第2の表示器106には2点ティーチング機能を意味する表示が例えば『2Pt』のように行われる。
【0049】
同図(c)には、オートマチックティーチング機能に対する案内表示例が示されている。この例にあっても、第1の表示器105にはリモート入力割当設定モードを意味する表示が例えば『7 rm』として行われ、第2の表示器106にはオートマチックティーチング機能を意味する表示が例えば『AUto』として行われる。
【0050】
同図(d)には、カウンタリセット機能に対する案内表示例が示されている。
この例にあっても、第1の表示器105にはリモート入力割当設定モードを意味する表示が例えば『7 rm』として行われ、第2の表示器106にはカウンタリセット機能を意味する表示が例えば『crSt』として行われる。
【0051】
そのため、ユーザはこれらの案内表示される内容に応じて、当該センサにどのような機能実現手段が、リモート入力と関連して具備されているかを容易に目で確認することができる。この状態において、所定の設定操作(例えば第3の操作ボタン109の押下)を行うことによって、リモート入力に割り当てられるべき機能実現手段を任意に設定並びに設定変更することが可能となる。、こうして設定されたデータは、CPU200に含まれるEEPROMに格納され、リモート入力機能の実行にあたって適宜に読み出されて、利用に供せられる。
【0052】
続いて、図6に戻って、ユーザによるキー操作が行われたこと(ステップ602)若しくは別途図示しない外部操作信号入力部を介して外部から信号の入力があったこと(ステップ603)の判定が行われる。ここで、ユーザによるキー操作若しくは外部より操作信号の入力が確認されると(ステップ602YES、または603YES)、リモート入力が受け付けられたときに、それに対応して実行される機能を表示器105,106に表示するか否かの判定が行われる。ここで、ユーザのキー操作又は外部信号によりそのような設定要求が確認されると(ステップ604YES)、リモート入力受け付け時に実行機能を表示する旨の設定が行われ(ステップ605)、その後、リモート入力割当設定処理(ステップ606)への移行が行われる。
【0053】
リモート入力割当設定処理の詳細を示すフローチャートが図7に示されている。同図に示されるように、処理が開始されると、ユーザのキー操作又は外部信号により指定された機能が、1点ティーチング機能、2点ティーチング機能、オートマチックティーチング機能、ゼロリセット機能、カウンタリセット機能、リモート禁止機能のいずれであるかの判定が行われる(ステップ701,703,705,707,709,711)。
【0054】
ここで、『1点ティーチング機能』とは、リモート入力信号を検知した時点で受光量をサンプリングし、その受光量から一定の値だけ低い値又は高い値にしきい値を設定する機能である。また、『2点ティーチング機能』とは、1回目のリモート入力信号を検知したときに取得したサンプリング値と、2回目のリモート入力信号を検知したときに取得したサンプリング値との中間にしきい値を設定する機能である。すなわち、この2点ティーチング機能によれば、しきい値=(1回目のサンプリング値+2回目のサンプリング値)/2となる。また、『オートマチックティーチング機能』とは、リモート入力信号を検知している期間においてサンプリングを継続し、その期間の最大値と最小値とを記憶させると共に、リモート入力信号を検知しなくなったときに、その最大値と最小値との中間にしきい値を設定する機能である。このオートマチックティーチング機能によれば、しきい値=(最大値+最小値)/2となる。また、『ゼロリセット機能』とは、リモート入力信号を検知した時点で、そのときの受光量を『0』として表示レベルを変更する機能である。また、『カウンタリセット機能』とは、リモート入力信号を検知した時点で、カウンタの値が設定値に戻る機能である。さらに、『リモート禁止機能』とは、リモート入力信号を検知してもなにもしないと言う機能であり、本発明者等によって新たに提供される機能である。
【0055】
この状態において、1点ティーチング機能、2点ティーチング機能、オートマチックティーチング機能、ゼロリセット機能、カウンタリセット機能、リモート禁止機能のいずれかにおいて、割当設定要求が確認されると、所定の実行機能指定ポインタPには、当該機能の実現手段であるプログラムを指定する数値『1』〜『6』のいずれかがセットされ、これによりリモート入力割当設定処理は終了する。
【0056】
次に、図4に戻って、RUNモード処理について説明する。RUNモードへの導入に先立ち、まずRUNモード初期設定処理が実行される(ステップ406)。このRUNモード初期設定処理(ステップ406)においては、RUNモードの実行に必要な各種のフラグ、カウンタ、レジスタ類等の初期設定処理が行われる。続いて、RUNモード初期設定処理(ステップ406)が完了すると、以後第1のスライド操作子110が『RUN』側に設定されている限り(ステップ408YES)、RUNモード処理(ステップ407)が繰り返し実行される。
【0057】
このRUNモード処理(ステップ407)の全体を示すフローチャートが図8に示されている。同図に示されるように、このRUNモード処理の全体は、通常処理(ステップ801〜805)と割込処理(ステップ806〜808)とに大別される。そして割込処理(ステップ806〜808)は、時間Tsec毎(例えば、100μsec毎)にタイマ割込で実行される。
【0058】
まず、通常処理(ステップ801〜805)について説明する。処理が開始されると、表示灯制御処理(ステップ801)が実行される。この表示灯制御処理(ステップ801)では、指定された表示内容に応じて、7セグメントデジタル表示器である第1及び第2の表示器105,106の点灯制御を行う。
【0059】
続いて、オートパワーコントロール(以下、APCという)処理(ステップ802)が実行される。このAPC処理(ステップ802)では、後述する計測用の投受光処理(ステップ806)で取得したモニタ受光量を監視し、一定期間毎に、APC補正を実施する。このAPC補正は、この例においては、投光電流のパワー制御により行われている。
【0060】
続いて、キー入力検知処理(ステップ803)が実行される。このキー入力検知処理(ステップ803)においては、一定期間毎に、キー入力の検知を行い、入力を検知した場合は、該当処理の実行ができるように設定を行う。続いて、キー入力対応処理(ステップ804)が実行されて、検知されたキー入力に対応する様々な処理が実行される。
【0061】
入力キー対応処理の詳細を示すフローチャートが図9に示されている。同図に示されるように、このキー入力対応処理においては、検知されたキー入力の内容が、1点ティーチング要求か(ステップ901)、2点ティーチング要求か(ステップ903)、オートマチックティーチング要求か(ステップ905)、ゼロリセット要求か(ステップ907)、カウンタリセット要求か(ステップ909)、リモート禁止設定要求か(ステップ911)の判定が行われる。ここで、キー入力内容がそれらのいずれかであると判定されると、該当する処理(ステップ902,904,906,908,910.912)が実行される。それらの実行機能それ自体の詳細については、先に、説明した通りである。なお、この実施形態にあっては、このRUNモードにおいても、緊急の場合等のために、リモート禁止状態への設定を可能としている。勿論、ここでのリモート禁止状態への設定は、続く、外部入力処理(ステップ805)に反映される。
【0062】
図8のフローチャートに戻って、このようにして入力キー対応処理(ステップ804)が終了すると、外部入力処理(ステップ805)が実行される。外部入力処理の詳細を示すフローチャートが図10に示されている。同図において、処理が開始されると、キー操作により擬似的なリモート入力信号が生成されたか(ステップ1001)、又は外部から真のリモート入力信号が入力されたか(ステップ1002)の判定が行われる。この状態において、擬似的なリモート入力信号あり又は真のリモート入力信号ありが判定されると(ステップ1001YES、又はステップ1002YES)、続いてリモート入力を受け付けるか否かの判定が行われる(ステップ1003)。このとき、予め特定された高速応答要求処理が実行中であると、入力受け付け不可との判定が行われ(ステップ1003NO)、再びキー操作にて擬似的なリモート入力信号が生成されたか、又は真のリモート入力信号が到来したか、の待機状態に復帰する。そのため、この実施形態によれば、リモート信号の到来によって高速処理が邪魔されることはない。
【0063】
これに対して、擬似的な入力信号又は真のリモート信号が受け付けられると(ステップ1003YES)、ポインタPの内容を読み込むことにより、リモート用に設定された機能の確認処理が行われ(ステップ1004)、続いて、ポインタPで指定の処理を実行することにより、リモート入力に対して割当設定された機能の実行が行われる(ステップ1005)。つまり、従前のリモート入力受け付け時のように、リモート入力信号に含まれる機能特定情報を解析することなく、直ちにリモート入力に応答して該当する機能処理を実行するのである。
【0064】
続いて、このようにして実行される機能を第1、第2の表示器(7セグメント表示器)に表示させることが設定されているか否かが判定され(ステップ1006)、そのような設定がなされているときには(ステップ1006YES)、実行した機能に相当する表示が第1、第2の表示器105,106に行われる(ステップ1007)。
【0065】
一例として、1点ティーチング機能における表示例が図12に示されている。
同図(a)に示されるように、通常表示状態にあっては、第1の表示器105には『光量値』が、第2の表示器106には『しきい値』が表示されている。この状態において、リモート入力が受け付けられると、同図(b)に示されるように、第1の表示器105には、リモート入力による実行機能である1点ティーチングに相当する表示『1Pt』が1秒間だけなされる。同時に、第2の表示器106には、設定されたしきい値に相当する表示『1880』が1秒間に2回の頻度で点滅表示される。一方、1点ティーチングにてしきい値の取得に失敗したときには、同図(c)に示されるように、第1の表示器105には『1Pt』が1秒間のみ、又第2の表示器106には光量が低すぎることを示す表示『Lo』が1秒間の2回の頻度で点滅表示される。
【0066】
他の一例として、ゼロリセット機能における表示例が図13に示されている。
同図(a)に示されるゼロリセット前の表示にあっては、第1の表示器105には光量値として『2130』が、また第2の表示器106にはしきい値として『1000』が表示されている。この状態において、リモート入力が受け付けられると、第1の表示器105に表示された光量値は『0』とされ、第2の表示器106に表示されたしきい値は『−1130』とされる。
【0067】
次に、リモート入力の外部入力時点(t1)から該当する機能実行時点(t2)に至る応答速度を従来方式と本発明方式とで比較して示す図が図14に示されている。同図(a)に示されるように、従来方式にあっては、入力信号に対して機能指定情報の解読が必要であることから、入力信号到来時点(t1)から機能実行時点(t2)までにはかなりの時間が必要となる。これに対して、本発明方式にあっては、リモート入力により起動される機能を予め割当設定することが可能なため、入力信号到来時点(t1)から機能実行時点(t2)までは、信号のノイズ確認に要する僅かの期間しかかからない。しかも、リモート信号送出側での複雑な信号処理やセンサ側での複雑な信号解読も不要である。そのため、同一の機能を繰り返し頻繁に起動させたい場合にも、そのような起動を遅れ時間なくスムーズに実現することができる。
【0068】
最後に、時刻Tsec毎に実行される割込処理について説明する。割込処理が開始されると、まず投受光処理(ステップ806)が実行される。この投受光処理(ステップ806)においては、図3に示されるLED201aを投光駆動部201bを介してパルス駆動することによって、可視光又は赤外線光を発生させ、これを投光用ファイバ2を通じて投光用ヘッド(図示せず)へと導き、投光用ヘッドから検出対象領域へと放出する。同時に、検出対象領域において反射又は透過した光を、受光用ファイバ3の先端に設けられた受光ヘッドから受光用ファイバ3内へと導入し、これを受光用ファイバ3を経由してPD202aへと導き、PD202aにて光電変換により得られた信号を、増幅回路202bにて増幅し、その後増幅出力をA/Dコンバータ202cを介してCPU200に取り込む。これにより、検出対象領域の状況に対応する特徴量を含んだ受光量がCPU200に取得される。
【0069】
続いて、ON/OFF判定処理(ステップ807)が実行される。このON/OFF判定処理(ステップ807)においては、予め設定されたON/OFF判定用の光量しきい値を基準として、受光量データを弁別二値化することにより、検出対象領域に物体の有無が判定される。すなわち、検出対象領域に目的とする物体が存在すれば、判定結果はONとなり、存在しなければ判定結果はOFFとされる。
【0070】
こうしてON/OFF判定処理(ステップ807)が実行終了すると、続いて出力制御処理(ステップ808)が実行されて、CPU200で生成された検出出力信号は、出力部209を介して、電気コード4に含まれる物体検出信号出力用の芯線43へと送り出される。こうして芯線43へと出力された検出出力信号は、例えばPLCやPC等の上位装置などへと送られる。
【0071】
以上の実施形態によれば、信号入力手段がリモート入力信号を受け付けたときに、複数の機能実現手段のいずれが動作すべきかを予め割当設定する割当設定手段(ステップ606.701〜712)を設けたことにより、リモート入力信号を送り出す側では、そのリモート入力信号に従前のように機能指定情報を含ませることが不要となるから、その分だけリモート入力信号送り出し側の負担を軽減することができる。同時に、リモート入力信号を受け取るセンサの側でも、その都度、機能指定情報の解析が不要となるため、応答速度を向上させることができる。そのため、この発明によれば、リモート入力機能を利用して同一の機能実現手段を繰り返し動作させるような場合には、その都度、信号送り出し側でリモート入力信号に機能指定情報を含ませる必要がなくなる一方、センサの側ではその都度信号の解析に煩わされることがなくなるため、応答性の高い制御処理を実現することができる。加えて、リモート入力信号とそれに対応して動作する機能実現手段との関係は任意に変更ができるため、1台のセンサを用いることによって、様々なリモート入力機能を提供することができる。
【0072】
また、以上の実施形態によれば、前記割当設定手段(ステップ606.701〜712)が、前記割当設定されるべき機能実現手段を指示するための手動操作子(107,108,109)を含むものであるから、ユーザは操作キーや操作ボタン等を使用することによって、割当設定されるべき機能実現手段を任意に設定することが可能となる。殊に、こうして予めリモート入力信号に対応して実行されるべき機能実現手段を割り当てておけば、以後リモート入力信号に対しては指定機能の解析が一切不要であるから、センサの側ではリモート入力信号の到来と共に直ちに該当する機能実現手段を動作させ、高い応答速度をもって所望の機能を実現させることができる。
【0073】
また、以上の実施形態によれば、前記割当設定手段が、前記設定の候補となり得る複数の機能実現手段により実現されるべき機能の各々を案内表示するための表示器(105,106)を含むものであるから、図11に示されるように、当該センサにリモート入力信号と関連してどのような機能実現手段が備えられているかを容易に把握することができ、これに基づき上記割当操作を適切に実施することができる。
【0074】
また、以上の実施形態によれば、予め決められた処理の実行中にあっては、前記リモート入力信号の受け付けを禁止する受け付け禁止手段(ステップ1003)をさらに含むものであるから、例えば高速応答を必要とするような処理の実行中に、当該処理がリモート入力信号によって邪魔されたり、処理の実行が遅らされるといった事態が回避され、全体として処理の高速化を実現することができる一方、当該高速処理等の実行中にあっては、そのような受け付け禁止が自動的に行われることによって、ユーザはセンサ内の実行プログラムに一切配慮することなく、全体としてセンサの動作に遅れが生ずることを回避することができる。
【0075】
また、以上の実施形態によれば、前記複数の機能実現手段の中には、リモート入力信号が受け付けられても、なにもしない機能(ステップ711,712,910,911)を含むものであるから、予めこの『なにもしない機能』を設定していくことによって、リモート入力信号が不用意に受け付けられ、意図しない機能動作が実現される虞れを未然に防止することができる。
【0076】
さらに、以上の実施形態によれば、所定の操作子の操作に応答してリモート入力信号を擬似的に発生させるリモート入力発生手段(ステップ1001)をさらに有するものであるから、リモート入力とそれに対応する機能実現手段との割当設定を完了した後に、その設定が正常に行われているかどうかを、擬似的なリモート入力信号を任意に発生させることによって確認することが可能となり、設定操作の確実性を担保することができる。
【0077】
【発明の効果】
以上の説明で明らかなように、本発明によれば、この種の光電センサ及び近接センサにおいて、予め用意された複数の機能実現手段の中でいずれを利用するかが予め判っている場合等には、リモート入力信号に機能指定情報を含めずとも、所望の機能を繰り返し実行させることができるという効果を有する。
【図面の簡単な説明】
【図1】本発明光電センサの上部カバーを開いた状態における外観斜視図である。
【図2】本発明の一実施形態である光電センサの操作・表示部の拡大図である。
【図3】本発明の一実施形態である光電センサの電気的ハードウェア構成の全体を示すブロック図である。
【図4】CPUで実行されるシステムプログラムの全体を概略的に示すゼネラルフローチャートである。
【図5】SETモード処理の全体を示すフローチャートである。
【図6】外部入力設定処理を示すフローチャートである。
【図7】リモート入力割当設定処理を示すフローチャートである。
【図8】RUNモード処理の全体を示すフローチャートである。
【図9】キー入力対応処理を示すフローチャートである。
【図10】外部入力処理を示すフローチャートである。
【図11】設定時の表示例を示す図である。
【図12】1点ティーチングにおける表示例を示す図である。
【図13】ゼロリセットにおける表示例を示す図である。
【図14】外部入力時点から機能実行時点に至る応答速度を従来方式と本発明方式とで比較して示す図である。
【符号の説明】
1 光電センサ
2 投光用ファイバ
3 受光用ファイバ
4 電気コード
41 GND用芯線
42 Vcc用芯線
43 検出出力信号用の芯線
44 補助出力信号用の芯線
45 リモート入力信号用の芯線
101 筐体
102 透明カバー
103 クランプレバー
104 DINレール嵌合溝
105 第1の表示器
106 第2の表示器
107 第1の操作ボタン
108 第2の操作ボタン
109 第3の操作ボタン
110 第1のスライド操作子
111 第2のスライド操作子
200 CPU
201 電源部
202 投光部
202a LED
202b 投光駆動部
203 受光部
203a PD
203b アンプ部
204 表示部
205 入力部
205a キー入力部
205b 信号入力部(リモート入力用)
206 出力部
206a 検出信号用の出力部
206b 補助出力信号用の出力部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a sensor having a function of receiving a remote input signal, and more particularly, to a photoelectric sensor and a proximity sensor in which selection of a function realizing means to be operated in response to a remote input signal can be set in advance on the sensor side. .
[0002]
[Prior art]
Conventionally, in a photoelectric sensor having a function of receiving a remote input, by analyzing function designation information included in the remote input signal itself, it is determined which of a plurality of prepared function realizing means should be operated. Is performed.
[0003]
Here, when the input signal line is composed of a baseband line, the function designation information is given in a simple signal form such as the period of the logic H / logic L of the input signal and the number of pulses. When configured with a communication line, it is provided using various communication protocols (for example, see Patent Document 1).
[0004]
[Patent Document 1]
JP-A-11-161303
[0005]
[Problems to be solved by the invention]
However, in such a conventional photoelectric sensor having a remote input receiving function, since a complicated operation must be performed on the remote input signal to include the function designation information, the burden on the sending side of the remote input signal is large. . In addition, the sensor receiving the remote input signal also needs to analyze the function designation information each time, so that the response speed decreases. Therefore, in particular, when it is desired to repeatedly operate the same function realizing means using the remote input function, the function designation information must be included in the remote input signal on the signal sending side and the sensor side also needs to be included each time. Each time, it becomes troublesome to analyze the signal, which is extremely irrational.
[0006]
In addition, in the case of a sensor in which the relationship between the remote input signal and the function realizing means operating in response thereto is fixedly determined, if it is desired to realize a plurality of functions using the remote input function, A plurality of types of sensors must be used for each function.
[0007]
The present invention has been made in view of the above-described problems, and is intended for, for example, a case where it is known in advance which of a plurality of function realizing means to be used is to be used. An object of the present invention is to provide a photoelectric sensor and a proximity sensor that can repeatedly execute a desired function without including function designation information in a remote input signal.
[0008]
Still other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the following description in the specification.
[0009]
[Means for Solving the Problems]
The photoelectric sensor according to the present invention includes a feature amount obtaining unit that obtains a feature amount having a correlation with the presence or absence of an object from a detection target region, and comparing the feature amount obtained by the feature amount obtaining unit with a predetermined threshold. Determining means for determining the presence or absence of an object; output means for performing an output operation corresponding to the determination result by the determining means; signal input means for receiving a remote input signal; A plurality of function realizing means for realizing the above function, and an assignment setting means for preliminarily allocating and setting which of the plurality of function realizing means should operate when the signal input means receives a remote input signal. It is characterized by the following.
[0010]
Here, a similar configuration can be provided for the proximity sensor instead of the photoelectric sensor.
[0011]
Further, the meaning of the “remote input signal” is an input signal given to externally execute a certain function to the sensor, and is generally an “H” state and an “L” state. Is often a binary signal that can take the form Further, in the case of a photoelectric sensor, for example, in the case of a photoelectric sensor, the plurality of function realizing means include at least a teaching function realizing means that operates when setting a threshold value or the like. In addition, it is assumed that the function realizing means includes various functions necessary for setting and operation of the sensor.
[0012]
According to such a configuration, when the signal input unit receives the remote input signal, the allocation setting unit that allocates and sets in advance which of the plurality of function realizing units should be operated is provided. The signal transmitting side does not need to include the function designation information as in the case of the remote input signal as before, so that the load on the remote input signal transmitting side can be reduced correspondingly. At the same time, the sensor receiving the remote input signal does not need to analyze the function designation information each time, so that the response speed can be improved. Therefore, according to the present invention, when the same function realizing means is repeatedly operated using the remote input function, it is not necessary to include the function designation information in the remote input signal on the signal sending side each time. On the other hand, the sensor does not have to be bothered with the signal analysis each time, so that a highly responsive control process can be realized.
[0013]
In addition, since the relationship between the remote input signal and the function realizing means operating in response thereto can be arbitrarily changed, various remote input functions can be provided by using one sensor.
[0014]
In a preferred embodiment of the photoelectric sensor according to the present invention, the assignment setting means may include a manual operator for instructing the function realizing means to be assigned and set. According to such a configuration, the user can arbitrarily set the function realizing means to be assigned and set by using the operation keys and the operation buttons. In particular, if the function realizing means to be executed in response to the remote input signal is assigned in advance in this way, the analysis of the designated function is not required for the remote input signal at all, so that the remote input signal is not required on the sensor side. As soon as the signal arrives, the corresponding function realizing means is operated, and the desired function can be realized with a high response speed.
[0015]
In another preferred embodiment of the photoelectric sensor according to the present invention, the allocation setting means guides and displays each of the functions to be realized by a plurality of function realizing means that can be candidates for the setting. May be included. According to such a configuration, it is possible to easily grasp what kind of function realizing means is provided in the sensor in relation to the remote input signal, and to appropriately perform the above-described assignment operation based on the function realizing means. Can be.
[0016]
In another preferred embodiment of the photoelectric sensor according to the present invention, during execution of a predetermined process, a reception prohibiting unit for prohibiting reception of the remote input signal is further included. Can be considered. According to such a configuration, for example, during the execution of a process that requires a high-speed response, a situation in which the process is disturbed by a remote input signal or the execution of the process is delayed is avoided. While high-speed processing can be realized, during the execution of the high-speed processing or the like, such a prohibition is automatically performed, so that the user must pay due attention to the execution program in the sensor. Therefore, it is possible to avoid a delay in the operation of the sensor as a whole.
[0017]
In another embodiment of the photoelectric sensor according to the present invention, it is conceivable that the plurality of function realizing means include a function that does nothing even if a remote input signal is received. . According to such a configuration, by setting this “no function” in advance, it is possible to prevent a remote input signal from being carelessly received and to prevent a possibility that an unintended function operation is realized. be able to.
[0018]
Further, in another embodiment of the photoelectric sensor according to the present invention, it is conceivable that the photoelectric sensor further includes a remote input generating means for generating a remote input signal in response to an operation of a predetermined operation element. According to such a configuration, after completing the assignment setting between the remote input and the corresponding function realizing means, it is possible to arbitrarily generate a pseudo remote input signal as to whether the setting is normally performed. This makes it possible to confirm, and the reliability of the setting operation can be ensured.
[0019]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a preferred embodiment of a photoelectric sensor according to the present invention will be described in detail with reference to the accompanying drawings. Note that the embodiments described below are merely examples of the photoelectric sensor according to the present invention, and it goes without saying that the range of the photoelectric sensor according to the present invention is specified only by the claims.
[0020]
In particular, in the following description, the present invention is embodied as a photoelectric sensor. However, the application of the present invention is not limited to this, and can be applied to a proximity sensor.
[0021]
FIG. 1 is an external perspective view of the photoelectric sensor according to the embodiment of the present invention in a state where an upper cover is opened. As shown in FIG. 1, the photoelectric sensor 1 has a multi-layer plastic case 101. The light projecting fiber 2 and the light receiving fiber 3 are inserted into the front part of the housing 101, and are fixed by the operation of the clamp lever 103 so as not to come off. The electric cord 4 is drawn out from the rear part of the housing 101.
The illustrated electric cord 4 includes a core 41 for a ground (GND), a core 42 for a power supply (Vcc), a core 43 for a detection output, a core 44 for an auxiliary output, and a core 45 for a remote input. Having.
[0022]
The housing 101 is fixed to a mounting surface such as a control panel via a DIN rail (not shown). Reference numeral 104 denotes a DIN rail fitting groove. A transparent upper cover 102 is attached to the upper part of the housing 101 so as to be openable and closable. A first display 105, a second display 106, a first operation button (UP) 107, and a second operation button are provided on an upper surface of the housing 101 exposed when the upper cover 102 is opened. A (DOWN) 108, a third operation button (MODE) 109, a first slide operator (SET / RUN) 110, and a second slide operator (L / D) 111 are provided.
[0023]
FIG. 2 is an enlarged view of the operation / display unit of the photoelectric sensor of the present invention. As is clear from FIGS. 1 and 2, each of the first display 105 and the second display 106 is configured by a 4-digit 7-segment digital display, and each of the first display 105 and the second display 106 has a 4-digit number. , Alphabets, and combinations thereof can be arbitrarily displayed. The first operation button 107, the second operation button 108, and the third operation button 109 all constitute a momentary-type push button switch, and as shown in FIG. 107 is configured to function as an “UP key”, the second operation button 108 functions as a “DOWN key”, and the third operation button 109 functions as a “MODE key”. Both the first slide operator 110 and the second slide operator 111 constitute a slide switch, and as shown in FIG. 2, the first slide operator 110 is a “SET / RUN switch”. The second slide operator 111 is configured to function as an “L / D switch”.
[0024]
Returning to FIG. 1, although not shown, a light emitting element for detecting an object and a light receiving element for detecting an object are built in the housing 101. When the light projecting fiber 2 is firmly inserted into the fiber insertion hole, the end face of the light projecting fiber 2 and the light emitting portion of the light emitting element for detection are firmly optically coupled, so that light generated from the light emitting element for detection is Then, the light is projected from the fiber head (not shown) at the end of the light to the detection area via the light emitting fiber 2. Similarly, when the light-receiving fiber 3 is firmly inserted into the fiber insertion hole, the end face of the light-receiving fiber 3 and the light-receiving element for detection are optically coupled, thereby being introduced into the fiber from the fiber head of the light-receiving fiber 3 (not shown). The emitted light is guided by the light receiving fiber 3 and reaches the light receiving element for detection. The arrangement of the light emitting element for detection and the light receiving element for detection described above is the same as that employed in this type of conventional fiber type photoelectric switch.
[0025]
Next, FIG. 3 is a block diagram showing the entire electrical hardware configuration of the photoelectric sensor according to one embodiment of the present invention. As shown in the figure, this circuit is mainly configured by a CPU 200 mainly composed of a microprocessor. The CPU 200 contains, in addition to the microprocessor, a ROM storing a system program, a working RAM necessary for executing the program, and an EEPROM for storing various setting data. The EEPROM stores data set by the manufacturer before shipment from the factory and various data set by the user after shipment from the factory. Such a configuration of the CPU 200 is known in various documents, and a detailed description thereof will be omitted.
[0026]
On the leftmost side of the figure, the light projecting unit 202 having the light emitting element described above and the light receiving unit 203 having the light receiving element are illustrated. The light projecting unit 202 includes a light emitting diode (hereinafter, referred to as an LED) 202a, which is a light emitting element for detection, and an LED driving unit 202b for driving the LED 202a. On the other hand, the light receiving unit 203 includes a photodiode (hereinafter, referred to as PD) 203a as a light receiving element for detection, and an amplifier unit 203b for amplifying the output of the PD 203a.
[0027]
Then, the pulse light generated from the LED 202a, which is the light emitting element for detection, by the operation of the LED driving unit 202b is guided to the detection area via the light emitting fiber 2. The light that has been transmitted or reflected in the detection area and introduced into the light-receiving fiber 3 reaches the PD 203a, which is a light-receiving element for detection, via the light-receiving fiber 3. The output signal generated by the photoelectric conversion in the PD 203a is amplified by the amplifier 203b, and then taken into the CPU 200 via an A / D converter (not shown). Since the basic configuration of these light emitting and receiving is also known in various documents, detailed description on this point will be omitted.
[0028]
The display unit 204 is configured with a display for displaying data generated by various calculations in the CPU 200. More specifically, the display unit 204 has the above-described configuration shown in FIGS. The first display 105 and the second display 106 described above are included. As will be described later in detail, various information related to the remote input assignment setting function of the present invention is displayed on the first and second displays 105 and 106 by numerical values, alphabets, combinations thereof, and the like. Is done.
[0029]
The input unit 205 is for inputting various types of information to the CPU 200. The input unit 205 includes a key input unit 205a and a signal input unit 205b. The key input unit 205a is used by an operator to manually input various data. The input unit 205a includes the first operation button as described above with reference to FIGS. 107, a second operation button 108, a third operation button 109, a first slide operator 110, and a second slide operator 111 are included. On the other hand, the signal input unit 205b is for inputting a remote input signal via the core wire 45 of the electric cord 4 described above with reference to FIG. 1, and via the signal input unit 205b. The remote input signal (1 bit “H” / “L” signal in this example) coming from the core wire 45 is taken into the CPU 200.
[0030]
In this example, the signal input unit 205b is provided with only one line. However, two or more lines are provided to correspond to two systems of remote input signals, or further increased to three or more lines. Of course, each can correspond to a separate remote input signal. When a large number of signal input systems are provided as described above, each individual bit can be identified as an input signal. However, the result of decoding a code consisting of a plurality of bits can be used as the input signal of each remote input signal. It is also possible to design to determine. In such a case, the user side may transmit the remote input signal as a parallel multi-bit code. If the multi-bit code sent out in this way is decoded by a decoder configured in hardware inside the sensor, it is possible to quickly capture the remote input signal. In this case, each decoded one bit may be assigned and set to various function realizing means in connection with the present invention.
[0031]
The output unit 206 is for outputting various output signals generated by the CPU 200 to the core wires 43 and 44 included in the electric code 4. The output unit 206 includes an output unit 206a for outputting an object detection signal and an output unit 206b for an arbitrary auxiliary output signal. That is, the detection signal for object detection generated by CPU 200 is sent out to core wire 43 in electric cord 4 via output unit 206a.
Similarly, an arbitrary auxiliary output signal generated by the CPU 200 is sent to the core wire 44 included in the electric cord 4 via the output unit 206b. The core wires 43 and 44 included in the electric cord 4 are generally connected to a host device such as a PLC or a PC. Similarly, the core wire 45 included in the electric cord 4 is also connected to a host device such as a PLC or a PC, and is provided for generating a remote input signal.
[0032]
The power supply unit 201 includes a power stabilizing device that supplies power to each of the light projecting unit 202, the light receiving unit 203, the display unit 204, the input unit 205, and the output unit 206 illustrated in FIG. The power supply to the power supply unit 201 is performed via core wires 41 and 42 included in the electric cord 4. In this example, the core wire 41 is connected to GND, and the core wire 42 is connected to Vcc.
[0033]
Next, on the premise of the mechanical structure and the electrical hardware configuration described above, various functions provided in the photoelectric sensor and the configuration of a system program executed by the CPU 200 to realize the functions will be described.
[0034]
The photoelectric sensor has a plurality of functions that can be selectively executed (ON / OFF). Each of these features has a variety of options. Selection of these functions (ON / OFF) and selection of options can be performed by setting this photoelectric sensor in the SET mode. The operation of realizing the function that is set ON according to the specific option can be performed by setting the photoelectric sensor to the RUN mode. Whether the operation mode is set to the SET mode or the RUN mode is determined depending on whether the first slide control 110 is set to the “SET” side or the “RUN” side, as shown in FIG. can do. Incidentally, the second slide operator 111 is for setting the logical polarity of the detection output signal of the photoelectric sensor, and when the second slide operator 111 is set to the “L” side, a so-called light-on operation is performed. Mode, and if it is set to the “D” side, it becomes the dark on mode.
[0035]
FIG. 4 is a general flowchart schematically showing the entire system program executed by the CPU. The execution of this system program is started when the power is turned on.
[0036]
In the figure, when the process is started, first, an initial setting process (step 401) is executed. In this initial setting process (step 401), various necessary initial setting processes are executed before starting a routine process described later. In the initialization processing, initialization of various memories, indicator lights, and control outputs, processing of reading necessary items from an EEPROM included in the CPU 200, and checking data are performed.
[0037]
When the execution of the initial setting process (step 401) is completed, a transition to a routine process is performed, and at first, the setting state of the first slide operator 110 is referred to (step 402). Here, if the first slide operator 110 is set to the “SET” side (step 402SET), subsequently, a SET mode initial setting process (step 403) is executed. In the SET mode initial setting process (step 403), initialization of the measured values for the SET mode, initialization of the function number (F) (F = 0), and the like are performed.
[0038]
When the execution of the SET mode initial setting process (Step 403) is completed, thereafter, as long as the first slide operator 110 is set to the “SET” side (Step 405 YES), the SET related to various functions (F) is performed. The mode processing (step 404) is executed. In this state, the user appropriately operates the first operation button 107, the second operation button 108, and the third operation button 109 to turn on various functions (F) prepared for the photoelectric sensor. / OFF setting, and individual setting processing for each function (F).
[0039]
On the other hand, as a result of referring to the setting state of the first slide operator 110, when it is determined that the setting has been made to the “RUN” side (step 402RUN), subsequently, a RUN mode initial setting process (step 406) is executed. You. In the RUN mode initial setting process (step 406), initialization of an indicator light, control output, threshold values and various RUN mode setting values, and the like are performed.
[0040]
When the RUN mode initial setting process (Step 406) is completed, the RUN mode process (Step 407) is executed as long as the first slide control 110 is set to the “RUN” side (Step 408 YES). In the RUN mode process (step 407), various functions selectively set by the user are realized in addition to the basic operation necessary for the photoelectric sensor. The specific contents of the RUN mode processing will be described later in detail as necessary.
[0041]
As described above, the system program executed by the CPU 200 includes two processes, namely, an initial setting process (step 401), which is an initial process performed immediately after the power is turned on, and a routine process, that is, a SET mode process (step 404). And RUN mode processing (step 407). The execution of the remote input assignment setting function, which is a main part of the present invention, is performed in the RUN mode processing (step 407), and various settings in the remote input assignment setting function are performed in the SET mode processing (step 404). .
[0042]
FIG. 5 is a flowchart showing the entire SET mode process. When the process is started in the figure, first, a function-specific display process (step 501) is executed. In this function-specific display process (step 501), various display processes corresponding to the function number F are executed.
[0043]
Subsequently, a key input detection process is executed (step 502), and a state of waiting for a key input operation on the operation buttons 107 to 109 and the slide operators 110 and 111 shown in FIGS. 1 and 2 is set (step 503 NO). ).
[0044]
In this state, it is determined that there is a key input (step 503 YES), and if a key input sequence corresponding to function switching is confirmed (step 504 YES), every time a function switching command is confirmed, the function number (F) is changed. The value is incremented by +1 until the total number of functions is reached (steps 505 and 506 NO). When the value reaches the total number of functions (step 506 YES), the value is reset to zero again (step 507) and the circulation switching of the function (F) is executed. You.
[0045]
In this state, when execution of the function F set at that time is instructed (step 504 NO, 508 YES), execution processing for each function is executed, and processing corresponding to the function number F is executed (step 509). The remote input assignment setting function according to the present invention is realized by this function-specific execution processing (step 509).
[0046]
That is, as shown in the flowchart of FIG. 6, when the remote input assignment setting process is started, first, the “remote input assignment” is displayed on the first display 105 and the second display 106, which are seven-segment displays. A display corresponding to "setting mode" and a display corresponding to "assignment target function" are performed. FIG. 11 is an explanatory diagram showing some guidance display examples at the time of such setting.
[0047]
FIG. 3A shows an example of guidance display for the one-point teaching function.
In this example, a display indicating the remote input assignment setting mode is displayed on the first display 105 as, for example, “7 rm”, and a display indicating the one-point teaching function is displayed on the second display 106. Is performed, for example, as “1Pt”.
[0048]
FIG. 3B shows an example of guidance display for the two-point teaching function.
Also in this example, the display indicating the remote input assignment setting mode is displayed on the first display 105 as, for example, “7 rm”, and the display indicating the two-point teaching function is displayed on the second display 106. Is performed, for example, as “2Pt”.
[0049]
FIG. 3C shows an example of a guidance display for the automatic teaching function. Also in this example, a display indicating the remote input assignment setting mode is displayed on the first display 105 as, for example, “7 rm”, and a display indicating the automatic teaching function is displayed on the second display 106. For example, it is performed as “AUto”.
[0050]
FIG. 4D shows an example of guidance display for the counter reset function.
Also in this example, a display indicating the remote input assignment setting mode is displayed on the first display 105 as, for example, “7 rm”, and a display indicating the counter reset function is displayed on the second display 106. For example, it is performed as “crSt”.
[0051]
Therefore, the user can easily visually confirm what function realizing means is provided in the sensor in association with the remote input in accordance with the contents of the guidance display. In this state, by performing a predetermined setting operation (for example, pressing the third operation button 109), it is possible to arbitrarily set and change the function realizing means to be assigned to the remote input. The data set in this manner is stored in an EEPROM included in the CPU 200, and is appropriately read and used for execution of the remote input function.
[0052]
Subsequently, returning to FIG. 6, it is determined whether a key operation has been performed by the user (step 602) or a signal has been input from the outside via an external operation signal input unit (not shown) (step 603). Done. Here, when the key operation by the user or the input of the operation signal from the outside is confirmed (YES in step 602 or 603 YES), when the remote input is accepted, the functions executed corresponding to the remote input are displayed on the display units 105 and 106. Is displayed. Here, when such a setting request is confirmed by a user's key operation or an external signal (YES in step 604), a setting to display an execution function at the time of receiving a remote input is performed (step 605). A transition to the assignment setting process (step 606) is performed.
[0053]
FIG. 7 is a flowchart showing details of the remote input assignment setting process. As shown in the figure, when the processing is started, a function designated by a user's key operation or an external signal is changed to a one-point teaching function, a two-point teaching function, an automatic teaching function, a zero reset function, a counter reset function. Then, it is determined which of the remote prohibition functions is being performed (steps 701, 703, 705, 707, 709, 711).
[0054]
Here, the "one-point teaching function" is a function of sampling the amount of received light when a remote input signal is detected, and setting a threshold to a value lower or higher by a certain value from the amount of received light. The “two-point teaching function” means that a threshold value is set between the sampling value acquired when the first remote input signal is detected and the sampling value acquired when the second remote input signal is detected. This is a function to be set. That is, according to the two-point teaching function, the threshold value = (first sampling value + second sampling value) / 2. The "automatic teaching function" means that sampling is continued during the period when the remote input signal is detected, the maximum value and the minimum value during that period are stored, and when the remote input signal is no longer detected, This function sets a threshold value between the maximum value and the minimum value. According to the automatic teaching function, the threshold value = (maximum value + minimum value) / 2. The “zero reset function” is a function of changing the display level at the time when a remote input signal is detected, by setting the received light amount at that time to “0”. The “counter reset function” is a function that returns the value of the counter to a set value when a remote input signal is detected. Further, the “remote prohibition function” is a function that does nothing when a remote input signal is detected, and is a function newly provided by the present inventors.
[0055]
In this state, when an assignment setting request is confirmed in any of the one-point teaching function, the two-point teaching function, the automatic teaching function, the zero reset function, the counter reset function, and the remote inhibition function, a predetermined execution function designation pointer P Is set to one of numerical values "1" to "6" designating a program which is a means for realizing the function, and the remote input assignment setting process ends.
[0056]
Next, returning to FIG. 4, the RUN mode processing will be described. Prior to introduction to the RUN mode, first, a RUN mode initial setting process is executed (step 406). In the RUN mode initial setting process (step 406), an initial setting process of various flags, counters, registers, and the like necessary for executing the RUN mode is performed. Subsequently, when the RUN mode initial setting process (step 406) is completed, the RUN mode process (step 407) is repeatedly executed as long as the first slide operator 110 is set to the “RUN” side (step 408 YES). Is done.
[0057]
FIG. 8 is a flowchart showing the entire RUN mode process (step 407). As shown in the figure, the entire RUN mode process is roughly classified into a normal process (steps 801 to 805) and an interrupt process (steps 806 to 808). The interrupt processing (steps 806 to 808) is executed by a timer interrupt every time Tsec (for example, every 100 μsec).
[0058]
First, the normal processing (steps 801 to 805) will be described. When the process is started, an indicator light control process (step 801) is executed. In the indicator light control process (step 801), lighting control of the first and second indicators 105 and 106, which are 7-segment digital indicators, is performed according to the designated display content.
[0059]
Subsequently, an auto power control (hereinafter, referred to as APC) process (step 802) is executed. In the APC process (step 802), the monitor light reception amount acquired in the measurement light emission / reception process (step 806) described later is monitored, and APC correction is performed at regular intervals. In this example, the APC correction is performed by power control of the projection current.
[0060]
Subsequently, a key input detection process (step 803) is executed. In the key input detection process (step 803), a key input is detected at regular intervals, and if an input is detected, settings are made so that the corresponding process can be executed. Subsequently, a key input corresponding process (step 804) is executed, and various processes corresponding to the detected key input are executed.
[0061]
FIG. 9 is a flowchart showing details of the input key correspondence processing. As shown in the figure, in this key input correspondence processing, the content of the detected key input is a one-point teaching request (step 901), a two-point teaching request (step 903), or an automatic teaching request (step 901). It is determined whether the request is a reset request (step 905), a zero reset request (step 907), a counter reset request (step 909), or a remote prohibition setting request (step 911). Here, if it is determined that the key input content is any of them, the corresponding processing (steps 902, 904, 906, 908, 910.912) is executed. Details of the execution function itself are as described above. In this embodiment, even in the RUN mode, it is possible to set the remote prohibition state in an emergency or the like. Of course, the setting to the remote prohibited state here is reflected in the subsequent external input processing (step 805).
[0062]
Returning to the flowchart of FIG. 8, when the input key corresponding process (step 804) is completed in this way, an external input process (step 805) is executed. FIG. 10 is a flowchart showing details of the external input process. In the figure, when the process is started, it is determined whether a pseudo remote input signal is generated by a key operation (step 1001) or a true remote input signal is input from outside (step 1002). . In this state, when it is determined that there is a pseudo remote input signal or that there is a true remote input signal (YES in step 1001 or YES in step 1002), it is subsequently determined whether or not a remote input is accepted (step 1003). . At this time, if the high-speed response request process specified in advance is being executed, it is determined that input cannot be accepted (step 1003 NO), and a pseudo remote input signal is generated again by key operation, or the Is returned to the standby state of whether or not the remote input signal has arrived. Therefore, according to this embodiment, the arrival of the remote signal does not hinder the high-speed processing.
[0063]
On the other hand, when a pseudo input signal or a true remote signal is received (YES in step 1003), the contents of the pointer P are read, and a process for confirming the function set for remote is performed (step 1004). Subsequently, by executing a process specified by the pointer P, the function assigned and set for the remote input is executed (step 1005). That is, the corresponding function process is immediately executed in response to the remote input without analyzing the function specifying information included in the remote input signal as in the case of receiving the remote input in the past.
[0064]
Subsequently, it is determined whether or not it is set to display the function executed in this manner on the first and second displays (seven-segment display) (step 1006). If so (step 1006 YES), a display corresponding to the executed function is displayed on the first and second indicators 105 and 106 (step 1007).
[0065]
As an example, FIG. 12 shows a display example in the one-point teaching function.
As shown in FIG. 7A, in the normal display state, the “light amount” is displayed on the first display 105 and the “threshold” is displayed on the second display 106. I have. In this state, when a remote input is received, as shown in FIG. 4B, the first display 105 displays a display “1Pt” corresponding to one-point teaching, which is an execution function by the remote input, for one. Made only for seconds. At the same time, the display "1880" corresponding to the set threshold value is blinked twice a second on the second display 106. On the other hand, when the acquisition of the threshold value has failed in the one-point teaching, as shown in FIG. 10C, “1Pt” is displayed on the first display 105 for only one second, and A display “Lo” indicating that the light amount is too low flashes on and off twice at one second.
[0066]
As another example, a display example in the zero reset function is shown in FIG.
In the display before the zero reset shown in FIG. 7A, “2130” is displayed as the light amount value on the first display 105 and “1000” is displayed as the threshold value on the second display 106. Is displayed. In this state, when a remote input is received, the light amount value displayed on the first display unit 105 is set to “0”, and the threshold value displayed on the second display unit 106 is set to “−1130”. You.
[0067]
Next, FIG. 14 is a diagram showing the response speed from the external input time point (t1) of the remote input to the corresponding function execution time point (t2) between the conventional method and the present invention. As shown in FIG. 1A, in the conventional method, since the function designation information needs to be decoded for the input signal, the time from the arrival of the input signal (t1) to the time of execution of the function (t2). Requires considerable time. On the other hand, in the method of the present invention, since the function activated by the remote input can be pre-assigned and set, the signal from the input signal arrival time (t1) to the function execution time (t2) can be set. It takes only a short period of time to confirm the noise. Moreover, complicated signal processing on the remote signal sending side and complicated signal decoding on the sensor side are unnecessary. Therefore, even when the same function is to be repeatedly and frequently activated, such activation can be smoothly realized without delay.
[0068]
Finally, an interrupt process executed at each time Tsec will be described. When the interrupt processing is started, first, the light emission / reception processing (step 806) is executed. In this light emitting / receiving process (step 806), visible light or infrared light is generated by pulse driving the LED 201a shown in FIG. 3 via the light emitting drive unit 201b, and this is emitted through the light emitting fiber 2. The light is guided to a light head (not shown), and emitted from the light projection head to a detection target area. At the same time, the light reflected or transmitted in the detection target region is introduced into the light receiving fiber 3 from the light receiving head provided at the tip of the light receiving fiber 3, and guided to the PD 202a via the light receiving fiber 3. , The signal obtained by the photoelectric conversion by the PD 202a is amplified by the amplifier circuit 202b, and then the amplified output is taken into the CPU 200 via the A / D converter 202c. As a result, the amount of received light including the characteristic amount corresponding to the situation of the detection target area is acquired by the CPU 200.
[0069]
Subsequently, an ON / OFF determination process (step 807) is performed. In the ON / OFF determination process (step 807), the received light amount data is discriminated into binary values based on a preset light amount threshold value for ON / OFF determination, thereby determining whether an object exists in the detection target area. Is determined. That is, if the target object exists in the detection target area, the determination result is ON, and if not, the determination result is OFF.
[0070]
When the execution of the ON / OFF determination processing (step 807) is completed, an output control processing (step 808) is subsequently performed, and the detection output signal generated by the CPU 200 is output to the electric code 4 via the output unit 209. It is sent to the core wire 43 for output of the included object detection signal. The detection output signal thus output to the core wire 43 is sent to a host device such as a PLC or a PC.
[0071]
According to the above embodiment, when the signal input unit receives the remote input signal, the allocation setting unit (steps 606.701 to 712) is provided which preliminarily sets which of the plurality of function realizing units should operate. This eliminates the need for the remote input signal sending side to include the function designation information as before, so that the burden on the remote input signal sending side can be reduced by that much. . At the same time, the sensor receiving the remote input signal does not need to analyze the function designation information each time, so that the response speed can be improved. Therefore, according to the present invention, when the same function realizing means is repeatedly operated using the remote input function, it is not necessary to include the function designation information in the remote input signal on the signal sending side each time. On the other hand, the sensor does not have to be bothered with the signal analysis each time, so that a highly responsive control process can be realized. In addition, since the relationship between the remote input signal and the function realizing means operating in response thereto can be arbitrarily changed, various remote input functions can be provided by using one sensor.
[0072]
Further, according to the above embodiment, the assignment setting means (steps 606.701 to 712) includes manual operators (107, 108, 109) for instructing the function realizing means to be assigned and set. Therefore, the user can arbitrarily set the function realizing means to be assigned and set by using the operation keys and the operation buttons. In particular, if the function realizing means to be executed in response to the remote input signal is assigned in advance in this way, the analysis of the designated function is not required for the remote input signal at all, so that the remote input signal is not required on the sensor side. As soon as the signal arrives, the corresponding function realizing means is operated, and the desired function can be realized with a high response speed.
[0073]
Further, according to the above embodiment, the assignment setting means includes a display (105, 106) for guiding and displaying each of the functions to be realized by the plurality of function realizing means that can be candidates for the setting. Therefore, as shown in FIG. 11, it is possible to easily grasp what kind of function realizing means is provided in the sensor in connection with the remote input signal, and to appropriately perform the above-mentioned assignment operation based on this. Can be implemented.
[0074]
Further, according to the above embodiment, during the execution of the predetermined process, a reception inhibition means (step 1003) for inhibiting the reception of the remote input signal is further included. During execution of such processing, it is possible to avoid such a situation that the processing is disturbed by the remote input signal or the execution of the processing is delayed, so that the processing can be speeded up as a whole. During execution of high-speed processing, etc., such a prohibition of reception is automatically performed, so that the user does not have to consider the execution program in the sensor at all and delays the operation of the sensor as a whole. Can be avoided.
[0075]
According to the above-described embodiment, the plurality of function realizing means include functions (steps 711, 712, 910, and 911) that do nothing even if a remote input signal is received. By setting this “function to do nothing” in advance, it is possible to prevent the possibility that a remote input signal is carelessly received and an unintended function operation is realized.
[0076]
Further, according to the above embodiment, the remote input generating means (step 1001) for generating the remote input signal in response to the operation of the predetermined operation element is further provided. After completing the assignment setting with the function realizing means, it is possible to confirm whether the setting is normally performed by arbitrarily generating a pseudo remote input signal, and to ensure the reliability of the setting operation. Can be secured.
[0077]
【The invention's effect】
As is clear from the above description, according to the present invention, in this type of photoelectric sensor and proximity sensor, when it is known in advance which of a plurality of function realizing means to be used is to be used, etc. Has an effect that a desired function can be repeatedly executed without including function designation information in a remote input signal.
[Brief description of the drawings]
FIG. 1 is an external perspective view of a photoelectric sensor of the present invention with an upper cover opened.
FIG. 2 is an enlarged view of an operation / display unit of the photoelectric sensor according to the embodiment of the present invention.
FIG. 3 is a block diagram illustrating the entire electrical hardware configuration of a photoelectric sensor according to an embodiment of the present invention.
FIG. 4 is a general flowchart schematically showing an entire system program executed by a CPU.
FIG. 5 is a flowchart illustrating an entire SET mode process.
FIG. 6 is a flowchart showing an external input setting process.
FIG. 7 is a flowchart showing a remote input assignment setting process.
FIG. 8 is a flowchart showing an entire RUN mode process;
FIG. 9 is a flowchart illustrating a key input corresponding process.
FIG. 10 is a flowchart showing an external input process.
FIG. 11 is a diagram showing a display example at the time of setting.
FIG. 12 is a diagram showing a display example in one-point teaching.
FIG. 13 is a diagram illustrating a display example in zero reset.
FIG. 14 is a diagram showing the response speed from the time of external input to the time of function execution in the conventional system and the system of the present invention in comparison.
[Explanation of symbols]
1 Photoelectric sensor
2 Light emitting fiber
3 Receiving fiber
4 Electric cord
41 GND core wire
42 Vcc core wire
43 Core wire for detection output signal
44 Core wire for auxiliary output signal
45 Core wire for remote input signal
101 housing
102 Transparent cover
103 Clamp lever
104 DIN rail fitting groove
105 First display
106 second display
107 1st operation button
108 second operation button
109 third operation button
110 first slide operator
111 second slide control
200 CPU
201 power supply
202 Emitter
202a LED
202b Floodlight drive unit
203 Receiver
203a PD
203b Amplifier section
204 Display
205 input unit
205a Key input section
205b Signal input unit (for remote input)
206 Output unit
206a Output section for detection signal
206b Output section for auxiliary output signal

Claims (7)

検出対象領域から物体有無と相関のある特徴量を光を媒介として取得する特徴量取得手段と、
前記特徴量取得手段により取得された特徴量と所定のしきい値との比較により物体の有無を判定する判定手段と、
前記判定手段による判定結果に対応する出力動作を行う出力手段と、
リモート入力信号を受け付けるための信号入力手段と、
それぞれ入力信号に応答して動作して固有の機能を実現する複数の機能実現手段と、
前記信号入力手段がリモート入力信号を受け付けたときに、前記複数の機能実現手段のいずれが動作すべきかを予め割当設定する割当設定手段と、
を具備する光電センサ。
A feature amount obtaining unit that obtains a feature amount correlated with the presence or absence of an object from the detection target region using light as a medium,
Determining means for determining the presence or absence of an object by comparing the feature amount obtained by the feature amount obtaining unit with a predetermined threshold value;
Output means for performing an output operation corresponding to the determination result by the determination means,
Signal input means for receiving a remote input signal;
A plurality of function realizing means each of which operates in response to an input signal to realize a unique function;
When the signal input unit receives a remote input signal, an assignment setting unit that assigns and sets in advance which of the plurality of function realizing units should operate,
A photoelectric sensor comprising:
前記割当設定手段が、前記割当設定されるべき機能実現手段を指示するための手動操作子を含む請求項1に記載の光電センサ。2. The photoelectric sensor according to claim 1, wherein the assignment setting unit includes a manual operator for indicating the function realizing unit to be assigned. 3. 前記割当設定手段が、前記設定の候補となり得る複数の機能実現手段により実現されるべき機能の各々を案内表示するための表示器を含む請求項1に記載の光電センサ。2. The photoelectric sensor according to claim 1, wherein the assignment setting unit includes a display for guiding and displaying each of the functions to be implemented by the plurality of function implementing units that can be candidates for the setting. 予め決められた処理の実行中にあっては、前記リモート入力信号の受け付けを禁止する受け付け禁止手段をさらに有する請求項1に記載の光電センサ。The photoelectric sensor according to claim 1, further comprising a reception prohibiting unit that prohibits reception of the remote input signal during execution of a predetermined process. 前記複数の機能実現手段の中には、リモート入力信号が受け付けられても、なにもしない機能が含まれている、請求項1に記載のセンサ。The sensor according to claim 1, wherein the plurality of function implementing units include a function that does nothing even if a remote input signal is received. 所定の操作子の操作に応答してリモート入力信号を擬似的に発生させるリモート入力発生手段をさらに有する請求項1に記載の光電センサ。2. The photoelectric sensor according to claim 1, further comprising remote input generation means for generating a remote input signal in a pseudo manner in response to an operation of a predetermined operation element. 検出対象領域から物体有無と相関のある特徴量を磁界を媒介として取得する特徴量取得手段と、
前記特徴量取得手段により取得された特徴量と所定のしきい値との比較により物体の有無を判定する判定手段と、
前記判定手段による判定結果に対応する出力動作を行う出力手段と、
リモート入力信号を受け付けるための信号入力手段と、
それぞれ入力信号に応答して動作して固有の機能を実現する複数の機能実現手段と、
前記信号入力手段がリモート入力信号を受け付けたときに、前記複数の機能実現手段のいずれが動作すべきかを予め割当設定する割当設定手段と、
を具備する近接センサ。
A feature amount obtaining unit that obtains a feature amount correlated with the presence or absence of an object from the detection target area through a magnetic field,
Determining means for determining the presence or absence of an object by comparing the feature amount obtained by the feature amount obtaining unit with a predetermined threshold value;
Output means for performing an output operation corresponding to the determination result by the determination means,
Signal input means for receiving a remote input signal;
A plurality of function realizing means each of which operates in response to an input signal to realize a unique function;
When the signal input unit receives a remote input signal, an assignment setting unit that assigns and sets in advance which of the plurality of function realizing units should operate,
A proximity sensor comprising:
JP2002266015A 2002-09-11 2002-09-11 Sensor Expired - Lifetime JP3981820B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002266015A JP3981820B2 (en) 2002-09-11 2002-09-11 Sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002266015A JP3981820B2 (en) 2002-09-11 2002-09-11 Sensor

Publications (2)

Publication Number Publication Date
JP2004101445A true JP2004101445A (en) 2004-04-02
JP3981820B2 JP3981820B2 (en) 2007-09-26

Family

ID=32264983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002266015A Expired - Lifetime JP3981820B2 (en) 2002-09-11 2002-09-11 Sensor

Country Status (1)

Country Link
JP (1) JP3981820B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008298614A (en) * 2007-05-31 2008-12-11 Omron Corp Sensor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008298614A (en) * 2007-05-31 2008-12-11 Omron Corp Sensor

Also Published As

Publication number Publication date
JP3981820B2 (en) 2007-09-26

Similar Documents

Publication Publication Date Title
JP3669352B2 (en) Photoelectric sensor
US4959721A (en) Remote control system with menu driven function selection
JP4839805B2 (en) Sensor device
JP4983407B2 (en) Photoelectric sensor
US8786436B2 (en) Multiple optical axis photoelectric sensor
US9291497B2 (en) Sensor system having a plurality of coupled sensors
US8344895B2 (en) Photoelectric sensor and photoelectric sensor system
US5945921A (en) Apparatus and method for confirming remote control command response
JP4428416B2 (en) Photoelectric sensor
JP2014085191A (en) Photoelectronic sensor
US6426820B1 (en) Remote control incorporating self-test capability
JP4009838B2 (en) Photoelectric sensor
US6757030B2 (en) Multi remote control transmitter, video apparatus, and format preset support method for same apparatus
US8194128B2 (en) Surveillance device
JP3981820B2 (en) Sensor
JP2008175742A (en) Photoelectric sensor
JP4855623B2 (en) Sensor
JP4324756B2 (en) Photoelectric sensor
JP2013121175A (en) Wireless receiver, control method of wireless receiver, wireless reception program and recording medium storing wireless reception program
JP2008091173A (en) Photoelectric sensor
KR100360340B1 (en) Automatic control system of domestic electric articles
JP4688154B2 (en) Sensor system and sensor unit
JP7135898B2 (en) Sensor unit and function operation method
KR100208786B1 (en) Multi remote controller having auto-setting function
JP2007139495A (en) Photoelectric sensor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050527

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20060327

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20060426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060607

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060731

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061226

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070619

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

Free format text: PAYMENT UNTIL: 20100713

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3981820

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110713

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110713

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120713

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130713

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term