JPH06230145A - Optical detector - Google Patents

Optical detector

Info

Publication number
JPH06230145A
JPH06230145A JP1476393A JP1476393A JPH06230145A JP H06230145 A JPH06230145 A JP H06230145A JP 1476393 A JP1476393 A JP 1476393A JP 1476393 A JP1476393 A JP 1476393A JP H06230145 A JPH06230145 A JP H06230145A
Authority
JP
Japan
Prior art keywords
light
emitting element
light emitting
identification information
touch
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
JP1476393A
Other languages
Japanese (ja)
Other versions
JP3205106B2 (en
Inventor
Kan Fujimoto
敢 藤本
Yoshiro Sato
芳郎 佐藤
Hiroki Nagasaki
浩樹 長崎
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.)
Dowa Holdings Co Ltd
Original Assignee
Dowa Mining Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dowa Mining Co Ltd filed Critical Dowa Mining Co Ltd
Priority to JP1476393A priority Critical patent/JP3205106B2/en
Publication of JPH06230145A publication Critical patent/JPH06230145A/en
Application granted granted Critical
Publication of JP3205106B2 publication Critical patent/JP3205106B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide an optical detector comprising at least a pair of light emitting element and a light receiving element spaced apart from each other by a predetermined distance and detecting the presence or the position of an object shading a light beam projected from the light emitting element toward the light receiving element in which erroneous detection caused by the light emitting element can be specified. CONSTITUTION:The optical detector comprises means 8 for driving a light emitting element 1, means 13 for detecting output voltage from the light emitting element 1, and means 5 for comparing a detected voltage value with a predetermined reference level, wherein the comparison results are employed for deciding whether the light emitting element 1 is driven correctly, i.e., whether the light emitting element 1 is normal or not.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、物体の位置または有
無を光学的に検出する光学的検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical detecting device for optically detecting the position or presence / absence of an object.

【0002】[0002]

【従来の技術】従来、図5に示すように、一対の発光素
子1と受光素子2を所定距離離間して複数対配置して検
出パネル3を構成し、一対の発光、受光素子を順次作動
させ、各発光素子1から対応する受光素子2に向けて発
光された光の物体による遮光の有無により、前記パネル
3上の物体4の位置を検出する光学的検出装置が知られ
ている。
2. Description of the Related Art Conventionally, as shown in FIG. 5, a plurality of pairs of a light emitting element 1 and a light receiving element 2 are arranged at a predetermined distance from each other to form a detection panel 3, and a pair of light emitting and light receiving elements are sequentially operated. There is known an optical detection device that detects the position of the object 4 on the panel 3 depending on whether or not the light emitted from each light emitting element 1 toward the corresponding light receiving element 2 is blocked by the object.

【0003】図6は、上記光学的検出装置の概略全体構
成の一例を示している。図6において11は複数の発光
素子1が配列された発光素子アレーを示し、この発光素
子アレー11から所定距離離間して受光素子アレー12
が設けられ、そこには前記発光素子1とそれぞれ対をな
す受光素子2が配列されている。マイクロプロセッサ5
は発光素子駆動回路6とマルチプレクサ7を順次走査し
て対をなす発光素子1と受光素子2を動作可能にする。
マイクロプロセッサ5に備えられた演算制御回路51は
発光素子駆動回路6とマルチプレクサ7を順次走査して
対をなす発光素子1と受光素子2を動作可能にする。こ
のとき発光素子1には電流供給回路8から電流が供給さ
れる。動作可能状態にある受光素子2からマルチプレク
サ7を経由して得られた各受光素子2の各個別受光量を
表す信号は増幅器9で増幅され、マイクロプロセッサ5
に備えられたアナログ/デジタル変換器52を介して演
算制御回路51に入力される。演算制御回路51は、該
個別受光量をマイクロプロセッサ5に備えられたRAM
(ランダムアクセスメモリ)53に各対をなす発光素子
1および受光素子2ごとに記憶されている個別基準値と
比較し、遮光の有無を判断している。
FIG. 6 shows an example of a schematic overall configuration of the above optical detection device. In FIG. 6, reference numeral 11 denotes a light emitting element array in which a plurality of light emitting elements 1 are arranged, and the light receiving element array 12 is separated from the light emitting element array 11 by a predetermined distance.
Are provided, and the light receiving elements 2 that are paired with the light emitting elements 1 are arranged therein. Microprocessor 5
Sequentially scans the light emitting element drive circuit 6 and the multiplexer 7 to enable the pair of the light emitting element 1 and the light receiving element 2 to operate.
The arithmetic control circuit 51 provided in the microprocessor 5 sequentially scans the light emitting element drive circuit 6 and the multiplexer 7 to enable the light emitting element 1 and the light receiving element 2 forming a pair. At this time, a current is supplied from the current supply circuit 8 to the light emitting element 1. A signal representing the individual light receiving amount of each light receiving element 2 obtained from the light receiving element 2 in the operable state via the multiplexer 7 is amplified by the amplifier 9, and the microprocessor 5
It is input to the arithmetic control circuit 51 via the analog / digital converter 52 provided in the. The arithmetic control circuit 51 uses the RAM provided in the microprocessor 5 for the individual light receiving amount.
The presence or absence of light shielding is determined by comparing with an individual reference value stored in the (random access memory) 53 for each pair of the light emitting element 1 and the light receiving element 2.

【0004】また、光学的検出装置は、図5に示すよう
に遮光物体4が検出パネル3にタッチされたこと(タッ
チオン)、検出パネル3にタッチしていた遮光物体4が
検出パネル3からオフしたこと(タッチオフ)、検出パ
ネル3にタッチしている遮光物体4が検出パネル3の別
の位置へ移動したこと(タッチ移動)の検出パネル3の
操作情報を判断する。即ち、検出パネル3は対をなす発
光素子1および受光素子2を走査して、前回の遮光物体
のタッチ状態およびタッチ位置と比較し、タッチオンま
たはタッチオフまたはタッチ移動の種類を判断し、タッ
チ操作の変動があるごとに該種類を示す操作識別情報と
共に該操作が行われた座標データ(タッチ移動の場合は
移動位置の座標データ)を1回だけ通信ケーブルを介し
てホストコンピュータ側へと送信する。ホストコンピュ
ータは操作識別情報および座標データを受信して検出パ
ネル3の操作状態を識別して所要の処理を行う。
Further, in the optical detection device, as shown in FIG. 5, when the light-shielding object 4 is touched on the detection panel 3 (touch-on), the light-shielding object 4 touching the detection panel 3 is turned off from the detection panel 3. The operation information of the detection panel 3 indicating that the light-shielding object 4 touching the detection panel 3 has moved to another position of the detection panel 3 (touch movement) (touch-off). That is, the detection panel 3 scans the light emitting element 1 and the light receiving element 2 forming a pair, compares the touch state and the touch position of the previous light-shielding object, determines the type of touch-on or touch-off, or touch movement, and determines the touch operation. Every time there is a change, the coordinate data (the coordinate data of the moving position in the case of touch movement) along with the operation identification information indicating the type are transmitted to the host computer side only once via the communication cable. The host computer receives the operation identification information and the coordinate data, identifies the operation state of the detection panel 3, and performs the required processing.

【0005】[0005]

【発明が解決しょうとする課題】図6に示すように、従
来の光学的検出装置においては、発光素子1または受光
素子2の少なくとも一方の不良により、物体による遮光
がないにもかかわらず遮光有りと誤って判断される不都
合がある。この場合、遮光有りの誤判断の原因は発光素
子1および受光素子2に依存する場合のほか、装置自体
に依存するなどその原因は複雑であり、これら原因の特
定は困難であった。誤判断の原因が発光素子1またはそ
の外の原因に依存するかの区別ができれば、原因が特定
されるかまたは絞り込むことができる。
As shown in FIG. 6, in the conventional optical detection device, due to a defect in at least one of the light emitting element 1 and the light receiving element 2, there is light shielding although there is no light shielding by an object. There is an inconvenience that it is erroneously determined. In this case, the cause of the erroneous determination that the light is shielded depends not only on the light emitting element 1 and the light receiving element 2 but also on the device itself, which is complicated, and it is difficult to specify these causes. If it is possible to distinguish whether the cause of the erroneous determination depends on the light emitting element 1 or another cause, the cause can be specified or narrowed down.

【0006】この第1の発明の目的は、発光素子の原因
に基づく誤検出を特定し、以て誤検出を防止することが
できる光学的検出装置を提供することである。
An object of the first invention is to provide an optical detection device capable of identifying erroneous detection based on the cause of a light emitting element and preventing the erroneous detection.

【0007】また、図6に示す従来の光学的検出装置に
おいて、前記RAM53に記憶される個別基準値は、電
源オン時の装置の動作開始時の遮光のない場合の受光
量、またはホストコンピュータから基準値記憶のコマン
ドが与えられた時の遮光のない受光量を基準としてい
る。従って、ホストコンピュータから基準値記憶のコマ
ンドが無い場合は、前記個別基準値は調整されることは
なく、従前からの個別基準値によって遮光の有無の判断
を行っていた。ところで、物体の遮光の有無の判断を誤
る原因としては、発光素子1および受光素子2自体の経
時的劣化および故障、温度、発光素子1および受光素子
2間に蓄積される塵埃、周囲光の影響、装置の機構部の
変化および赤外線フィルタの透過率の低下などが考えら
れる。このため、遮光が無い場合の受光量は時間の経過
とともに刻々と変動し、従前から使用されている個別基
準値を基準に遮光の有無を判断したのでは個別基準値が
時間の変動に連動していないため誤検出するおそれがあ
った。
Further, in the conventional optical detection device shown in FIG. 6, the individual reference value stored in the RAM 53 is the amount of light received when there is no light blocking at the start of operation of the device when the power is on, or from the host computer. The amount of light received without shading when a command for storing a reference value is given is used as a reference. Therefore, when there is no command for storing the reference value from the host computer, the individual reference value is not adjusted, and the presence or absence of light shielding is determined based on the individual reference value from before. By the way, the cause of erroneous determination of whether or not the object is shielded from light is deterioration of the light emitting element 1 and the light receiving element 2 itself and failure, temperature, dust accumulated between the light emitting element 1 and the light receiving element 2, influence of ambient light. It is possible that the mechanical part of the device is changed and the transmittance of the infrared filter is lowered. For this reason, the amount of light received when there is no light shielding fluctuates over time, and if the presence or absence of light shielding is judged based on the individual reference value that has been used before, the individual reference value will be linked to the time variation. There is a risk of erroneous detection.

【0008】この第2の発明の目的は、遮光の有無の判
断の基準となる受光量の個別基準値を受光量の経時的な
変化と対応して自動的に調整し、以て誤検出を防止した
光学的検出装置を提供することである。
The second object of the present invention is to automatically adjust the individual reference value of the amount of received light, which serves as a reference for determining the presence or absence of light shielding, in response to the change over time in the amount of received light, thereby preventing erroneous detection. It is an object of the present invention to provide an optical detection device which is prevented.

【0009】また、前記検出パネル3から通信ケーブル
を介してホストコンピュータ側に送信される操作識別情
報は、タッチオン、タッチオフ、タッチ移動の操作が行
われるごとに1回に限り送信されている。この操作識別
情報は、タッチオンでは2値論理の“0”信号を、タッ
チオフでは2値論理の“1”信号を、タッチ移動では2
値論理の“2”信号を送信している。このため、操作識
別情報の転送エラーが発生してデータ欠けが生じた場合
には、ホストコンピュータは検出パネル3上の物体4に
関する正確な情報が得られなくなるばかりでなく、操作
識別情報の受信順序に論理矛盾を生じて動作異常を発生
するおそれがあった。例えば、操作識別情報が“2”
(タッチ移動)、“1”(タッチオフ)、“0”(タッ
チオン)の順序で転送された時、タッチオフを示す
“1”の操作識別情報が欠けた場合には、“2”の次に
“0”を受信することになり論理矛盾を生じ、タッチオ
フになったにもかかわらずホストコンピュータはその情
報を識別できず、検出パネル3のスクリーン上にはタッ
チオンを示すカーソル表示が持続するという不都合があ
る。また、操作識別情報が“0”、“1”、“0”の順
序で転送されたとき、“1”の操作識別情報が欠けた場
合には、タッチオンを示す操作識別情報を“0”、
“0”と2回続けて受信することになり、タッチオンが
2回続けて受信されるという論理矛盾を生じて動作異常
を生じるおそれがある。
The operation identification information transmitted from the detection panel 3 to the host computer side via the communication cable is transmitted only once every time a touch-on operation, a touch-off operation, or a touch movement operation is performed. This operation identification information is a binary logic "0" signal when touch-on, a binary logic "1" signal when touch-off, and a binary logic "1" signal when touch-moving.
The value logic "2" signal is transmitted. Therefore, when a transfer error of the operation identification information occurs and a data loss occurs, the host computer cannot obtain accurate information about the object 4 on the detection panel 3 and also the reception order of the operation identification information. There is a possibility that a logical contradiction may occur and an abnormal operation may occur. For example, the operation identification information is “2”
(Touch movement), “1” (touch off), and “0” (touch on) are transferred in this order, and when the operation identification information of “1” indicating touch off is missing, “2” is followed by “ However, the host computer cannot identify the information even though the touch-off occurs and the cursor display indicating the touch-on continues on the screen of the detection panel 3. is there. When the operation identification information is transferred in the order of “0”, “1”, and “0”, and the operation identification information of “1” is missing, the operation identification information indicating touch-on is set to “0”,
Since "0" is received twice in succession, there is a possibility that an abnormal operation may occur due to a logical contradiction that touch-on is received twice in succession.

【0010】ホストコンピュータ側では受信エラーが発
生して論理矛盾が発生した場合には、検出パネル3の動
作を一旦停止して再起動させる方法がある。しかし、受
信エラー発生の都度、再起動させることは不便であるの
で、受信エラーが発生した操作識別情報と共に送られる
座標データを廃棄して受信を続行している。しかし、ホ
ストコンピュータ側で論理矛盾が生じた場合に、単に座
標データを廃棄する処理を行うことは現在識別すべき座
標データが識別されないことになり誤動作の原因となる
問題がありホストコンピュータ側での対策が望まれてい
た。
On the host computer side, when a reception error occurs and a logical contradiction occurs, there is a method of temporarily stopping the operation of the detection panel 3 and restarting it. However, since it is inconvenient to restart each time a reception error occurs, the coordinate data sent together with the operation identification information in which the reception error has occurred is discarded and the reception is continued. However, if a logical contradiction occurs on the host computer side, simply performing the process of discarding the coordinate data causes a problem that the coordinate data to be identified at present cannot be identified, which causes a malfunction. Measures were desired.

【0011】この第3および第4の発明の目的は、デー
タ送信時のデータ欠けなどによる論理矛盾の発生を防止
し、以て誤動作を防止した光学的検出装置を提供するこ
とである。
An object of the third and fourth inventions is to provide an optical detecting device which prevents the occurrence of a logical contradiction due to a data loss during data transmission, thereby preventing a malfunction.

【0012】[0012]

【課題を解決するための手段】この第1の発明の光学的
検出装置は、前記発光素子を駆動する発光駆動手段と、
前記発光素子の出力電圧を検出する電圧検出手段と、該
検出された電圧値を所定の基準レベルと比較する比較手
段とを備えている。
The optical detecting device according to the first aspect of the present invention comprises a light emission drive means for driving the light emitting element,
The light emitting device includes a voltage detecting means for detecting an output voltage and a comparing means for comparing the detected voltage value with a predetermined reference level.

【0013】またこの第2の発明の光学的検出装置は、
各発光素子を発光駆動する発光駆動手段と、前記各発光
素子の駆動中に対応する前記各受光素子により受光され
る各個別受光量を測定する測定手段と、遮光がない場合
の各受光素子ごとの個別受光量を個別基準値として記憶
する記憶手段と、前記記憶された個別基準値と現在の個
別受光量とから遮光の有無を判断する遮光判断手段と、
遮光なしと判断された場合にのみ前記個別基準値と前記
現在の個別受光量に基づいて該個別基準値を更新する更
新手段とを備え、前記各発光素子が駆動される都度、遮
光の有無が判断される共に遮光なしと判断された場合に
のみ前記個別基準値の更新が行われることを特徴として
いる。
The optical detecting device of the second invention is
Light emitting drive means for driving each light emitting element to emit light, measuring means for measuring each individual light receiving amount received by each corresponding light receiving element during driving of each light emitting element, and each light receiving element when there is no light shielding Storage means for storing the individual received light amount as an individual reference value, and light-shielding determination means for determining the presence or absence of light-shielding from the stored individual reference value and the current individual received light amount,
Only when it is determined that there is no light shielding, the individual reference value and an updating unit that updates the individual reference value based on the current individual light receiving amount are provided, and whether or not light is shielded each time the light emitting element is driven. It is characterized in that the individual reference value is updated only when both judgments are made and it is judged that there is no light blocking.

【0014】またこの第3の発明の光学的検出装置は、
遮光物体のタッチオフ時に送信される操作識別情報と座
標データを複数回連続して送信するように構成されてい
る。
The optical detecting device according to the third invention is
The operation identification information and the coordinate data transmitted when the light-shielding object is touched off are continuously transmitted a plurality of times.

【0015】またこの第4の発明の光学的検出装置は、
ホストコンピュータ側において受信される操作識別情報
の受信順序に論理矛盾が生じている場合には該矛盾した
操作識別情報を論理矛盾しない種類の操作識別情報に変
換して受信する情報変換手段を備えて構成されている。
The optical detecting device of the fourth invention is
In the case where there is a logical contradiction in the reception order of the operation identification information received on the host computer side, there is provided information conversion means for converting the inconsistent operation identification information into operation identification information of a kind that does not logically conflict and receiving the operation identification information. It is configured.

【0016】[0016]

【作用】この第1の発明は、発光駆動される発光素子の
出力電圧を検出する電圧検出手段を備え、該検出電圧の
値を所定の基準レベルと比較することにより該発光素子
が正しく駆動されているか否か、即ち発光素子の故障の
有無を判断することができる。
According to the first aspect of the present invention, the light emitting element is provided with the voltage detecting means for detecting the output voltage of the light emitting element which is driven to emit light, and the value of the detected voltage is compared with a predetermined reference level so that the light emitting element is correctly driven. It is possible to judge whether or not there is a failure of the light emitting element.

【0017】また、この第2の発明は、各発光素子が駆
動される都度、遮光の有無が判断されると共に、遮光な
しと判断された場合にのみ個別基準値が自動的に更新さ
れるため、受光量の各種原因による経時的な変化に対応
して適切な個別基準値を常に維持することができ、以て
誤検出の発生を防止できる。
Further, according to the second aspect of the present invention, the presence or absence of light shielding is determined every time each light emitting element is driven, and the individual reference value is automatically updated only when it is determined that there is no light shielding. It is possible to always maintain an appropriate individual reference value in response to changes over time due to various causes of the amount of received light, and thus prevent erroneous detection from occurring.

【0018】また、この第3の発明は、タッチオフ時に
ホストコンピュータ側に送信される操作識別情報と座標
データを複数回連続して送信しているから、送信中に操
作識別情報のデータ欠けが発生しても該操作識別情報は
必ずホストコンピュータ側に受信されるため、タッチオ
フの操作識別情報のデータ欠けによる論理矛盾は回避さ
れる。
Further, according to the third aspect of the present invention, since the operation identification information and the coordinate data transmitted to the host computer side at the time of touch-off are continuously transmitted a plurality of times, data loss of the operation identification information occurs during transmission. However, since the operation identification information is always received by the host computer side, a logical contradiction due to missing data of the touch-off operation identification information can be avoided.

【0019】また、この第4の発明は、ホストコンピュ
ータ側で受信される操作識別情報に論理矛盾が発生して
いる場合には該矛盾する操作識別情報を矛盾のない操作
識別情報に変換してホストコンピュータ側に受信させる
機能を備え、該操作識別情報と共に送信される座標デー
タを廃棄することなく受信することにより、誤動作を防
止する。
Further, according to the fourth aspect of the present invention, when a logical contradiction occurs in the operation identification information received on the host computer side, the contradictory operation identification information is converted into consistent operation identification information. Since the host computer has a function of receiving the coordinate data and the coordinate data transmitted together with the operation identification information is received without being discarded, a malfunction is prevented.

【0020】[0020]

【実施例】図1はこの第1の発明の一実施例を示す概略
全体構成図であり、図6と同一部分は同一符号を付して
その説明は省略する。前記電流供給回路8から発光素子
アレー11の各発光素子1に供給された電流は各発光素
子1からの出力電圧として電圧検出回路13によって検
出される。この電圧検出回路13は例えば比較器によっ
て構成され、ここで検出された電圧値が所定の基準レベ
ルと比較され、この比較結果が発光素子1の良、不良を
示す信号としてマイクロプロセッサ5に与えられる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a schematic overall configuration diagram showing an embodiment of the first invention. The same parts as those in FIG. The current supplied from the current supply circuit 8 to each light emitting element 1 of the light emitting element array 11 is detected by the voltage detection circuit 13 as an output voltage from each light emitting element 1. The voltage detection circuit 13 is composed of, for example, a comparator, the voltage value detected here is compared with a predetermined reference level, and the comparison result is given to the microprocessor 5 as a signal indicating whether the light emitting element 1 is good or bad. .

【0021】図2は、第1の発明の発光素子の故障を検
出する機能を有する主要な回路構成を説明する図であ
る。図2において、発光素子アレー11のうちひとつの
発光素子1の故障の有無の検出を例示したもので、各発
光素子1ごとに同様な構成が適用されている。発光ダイ
オードでなる発光素子1のアノードにはトランジスタ1
4のエミッタが接続され、発光素子1のカソードにはト
ランジスタ15のコレクタが接続され、トランジスタ1
5のエミッタには抵抗16が接続されている。トランジ
スタ14、発光素子1、トランジスタ15および抵抗1
6はそれぞれ直列に接続されている。図1に示す発光素
子駆動回路6は発光素子アレー11の各発光素子1のひ
とつを選択する選択信号をトランジスタ14のベースに
出力する。電流供給回路8は、この例ではデジタル/ア
ナログ(D/A)変換器17および増幅器18から構成
され、マイクロプロセッサ5から送られるデジタル信号
をアナログ信号に変換して増幅器18に入力し、増幅器
18の出力をトランジスタ15のベースに供給する。ト
ランジスタ14および15のベースに共に電流が供給さ
れている期間だけ発光素子1は発光駆動されると共に、
抵抗16には電圧が生じ、この電圧は電圧検出回路13
に与えられる。電圧検出回路13は、この例では比較器
として機能し、抵抗16に生じた電圧は所定の基準電圧
と比較され、基準電圧より高い場合は電圧検出あり、即
ち発光素子1の異常無しを示す信号が、基準電圧よりも
低い場合は電圧検出なし、即ち発光素子1の異常を示す
信号がマイクロプロセッサ5へ出力される。マイクロプ
ロセッサ5は、入力する検出信号により、現在、発光駆
動されている発光素子1に異常が生じているか否かを判
断し、異常が生じている場合は該当する発光素子1の異
常を表示する。
FIG. 2 is a diagram for explaining a main circuit configuration having a function of detecting a failure of the light emitting element of the first invention. In FIG. 2, detection of the presence / absence of a failure of one light emitting element 1 in the light emitting element array 11 is illustrated, and the same configuration is applied to each light emitting element 1. A transistor 1 is provided at the anode of the light emitting element 1 which is a light emitting diode
4 is connected to the emitter, and the cathode of the light emitting element 1 is connected to the collector of the transistor 15.
A resistor 16 is connected to the emitter of 5. Transistor 14, light emitting element 1, transistor 15 and resistor 1
6 are connected in series. The light emitting element drive circuit 6 shown in FIG. 1 outputs a selection signal for selecting one of the light emitting elements 1 of the light emitting element array 11 to the base of the transistor 14. The current supply circuit 8 is composed of a digital / analog (D / A) converter 17 and an amplifier 18 in this example. The current supply circuit 8 converts a digital signal sent from the microprocessor 5 into an analog signal and inputs the analog signal into the amplifier 18. Is supplied to the base of the transistor 15. The light emitting element 1 is driven to emit light only while current is being supplied to both bases of the transistors 14 and 15, and
A voltage is generated in the resistor 16, and this voltage is detected by the voltage detection circuit 13
Given to. The voltage detection circuit 13 functions as a comparator in this example, the voltage generated in the resistor 16 is compared with a predetermined reference voltage, and when the voltage is higher than the reference voltage, there is voltage detection, that is, a signal indicating that there is no abnormality in the light emitting element 1. However, when the voltage is lower than the reference voltage, no voltage is detected, that is, a signal indicating an abnormality of the light emitting element 1 is output to the microprocessor 5. Based on the input detection signal, the microprocessor 5 determines whether or not there is an abnormality in the light emitting element 1 that is currently driven to emit light, and if an abnormality occurs, displays the abnormality of the corresponding light emitting element 1. .

【0022】なお、前記電圧検出回路13の代わりにA
/D変換器を接続し、抵抗16の電圧値をデジタル信号
に変換してマイクロプロセッサ5に入力しても良い。こ
の場合、マイクロプロセッサ5は記憶している所定の基
準値と入力する信号を比較し、発光素子1の異常の有無
を判断する。この構成では、入力する検出信号をマイク
ロプロセッサ5によってモニタして各発光素子1ごとの
初期値からの経時変化を知ることができるので、各発光
素子1の交換時期を故障の前に知ることができ、事前に
不良の発生を防止できる。
In place of the voltage detection circuit 13, A
A / D converter may be connected to convert the voltage value of the resistor 16 into a digital signal and input the digital signal to the microprocessor 5. In this case, the microprocessor 5 compares the stored reference value with the input signal to determine whether the light emitting element 1 is abnormal. In this configuration, since the input detection signal can be monitored by the microprocessor 5 and the change with time from the initial value of each light emitting element 1 can be known, the replacement time of each light emitting element 1 can be known before the failure. It is possible to prevent the occurrence of defects in advance.

【0023】図3は、第2の発明の動作を説明するため
のフローチャートである。第2の発明の概略システム構
成図は図6に示される概略全体構成図が使用できるの
で、図6を参照しながら図3について説明する。図6に
ついて前述したように、演算制御回路51は、現在の個
別受光量とRAM53に記憶されている各受光素子2ご
との個別基準値を比較して遮光の有無を判断する。演算
制御回路51には第2の発明を実行するために必要なカ
ウンタCおよび補償レジスタPなどが備えられている。
この第2の発明では、演算制御回路51によって遮光有
りと判断された場合は現在の個別基準値は維持され、次
の判断の基準値として利用されるが、遮光なしと判断さ
れた場合は個別基準値は図3に示す所定の手続きに従っ
て補正(更新)される。この動作は、各対の発光素子1
および受光素子2が走査される都度、そして各対の発光
および受光素子ごとに行われる。
FIG. 3 is a flow chart for explaining the operation of the second invention. As the schematic system configuration diagram of the second invention, the schematic overall configuration diagram shown in FIG. 6 can be used. Therefore, FIG. 3 will be described with reference to FIG. As described above with reference to FIG. 6, the arithmetic control circuit 51 compares the current individual light receiving amount with the individual reference value for each light receiving element 2 stored in the RAM 53 to determine the presence or absence of light shielding. The arithmetic control circuit 51 is provided with a counter C, a compensation register P and the like necessary for carrying out the second invention.
In the second aspect of the invention, when the arithmetic control circuit 51 determines that there is light shielding, the current individual reference value is maintained and used as a reference value for the next determination, but when it is determined that there is no light shielding, the individual individual reference value is used. The reference value is corrected (updated) according to a predetermined procedure shown in FIG. This operation is performed by each pair of light emitting elements 1.
And every time the light receiving element 2 is scanned, and for each pair of light emitting and light receiving elements.

【0024】光学的検出装置の電源をオンすると各対を
なす発光素子1および受光素子2が走査されるごとに、
図3に示すフローが実行される。まず、ステップS1に
おいて、マイクロプロセッサ5の走査回数カウンタCが
クリアされC=0が記憶される。次にステップS2に移
り、演算制御回路51は現在走査されている受光素子2
によって受光された個別受光量P(c)を受信し、RA
M53に記憶する。次に、ステップS3に移り、走査回
数カウンタCの内容が1以上であるか否かが判断され、
ノウと判断されるとステップS4に移る。ステップS4
において、電源がオンされて走査が開始してから初回に
受光された個別受光量P(c)が個別基準値Po(c)
としてRAM53に記憶される。
When the power source of the optical detecting device is turned on, each time the pair of the light emitting element 1 and the light receiving element 2 is scanned,
The flow shown in FIG. 3 is executed. First, in step S1, the scanning number counter C of the microprocessor 5 is cleared and C = 0 is stored. Next, in step S2, the arithmetic control circuit 51 determines that the light receiving element 2 currently being scanned.
The individual received light amount P (c) received by
Store in M53. Next, in step S3, it is determined whether the content of the scanning number counter C is 1 or more,
If it is determined to be No, the process proceeds to step S4. Step S4
In the above, the individual received light amount P (c) received for the first time after the power is turned on and the scanning is started is the individual reference value Po (c).
Is stored in the RAM 53.

【0025】ステップS3において、イエスと判断され
た場合はステップS5に移り、ここで個別基準値Po
(c)と個別受光量P(c)との比を示す比受光量b
(c)=P(c)/Po(c)を算出してRAM53に
記憶する。次にステップS6に移り、比受光量b(c)
が所定の遮光基準値qより大であるか否かが判断され、
ノウと判断されるとステップS7に移る。ステップS7
において、比受光量b(c)が遮光基準値q以下である
ことは受光量の低下が著しく物体による遮光ありと判断
される。ステップS6においてイエスと判断された場合
はステップS8に移り、ここで遮光無しとみなされてス
テップS9に移る。ステップS9において、個別基準値
Po(c)は個別受光量P(c)より大であるか否か、
即ち一走査期間の間の個別受光量P(c)の増加または
減少の有無が判断され、ノウと判断されるとステップS
11に、イエスと判断されるとステップS10にそれぞ
れ移行する。ステップS10において、今回の個別受光
量P(c)は個別基準値Po(c)より減少したと判断
され、該個別基準値を補償するための補償値P1が補償
レジスタPにP=P1として記憶される。また、ステッ
プS11では今回の個別受光量P(c)は個別基準値P
o(c)より増加したと判断され、該個別基準値を補償
するための補償値P2が補償レジスタPにP=P2とし
て記憶される。補償係数P1およびP2は遮光以外の原
因による一走査期間の受光量の変動を補償するもので、
(1/P1)<(1/P2)の関係にある。この理由
は、通常、個別受光量P(c)が増加する場合は、発光
素子に付着したほこりなどがとれて発光量が増加したな
ど特定の理由に限られるので、減少する場合に比べて補
償量を大きくとっている。ステップS10またはS11
を経た後、ステップS12に移り、ここで個別基準値P
o(c)の補償が行われる。即ち、前記補償レジスタP
に記憶された補償値P1またはP2(=P)、個別受光
量P(c)及び個別基準値Po(c)から式(1)によ
って新たな個別基準値Po(c)が算出されて、次回の
個別基準値としてRAM53に記憶される。
If YES is determined in step S3, the process proceeds to step S5, in which the individual reference value Po is set.
Specific received light amount b indicating the ratio between (c) and the individual received light amount P (c)
(C) = P (c) / Po (c) is calculated and stored in the RAM 53. Next, the process proceeds to step S6, and the specific received light amount b (c)
Is greater than a predetermined shading reference value q,
If it is determined to be No, the process proceeds to step S7. Step S7
When the specific light receiving amount b (c) is equal to or less than the light blocking reference value q, it is determined that the light receiving amount is significantly reduced and light is blocked by the object. If YES is determined in step S6, the process proceeds to step S8, where it is considered that there is no light blocking, and the process proceeds to step S9. In step S9, whether the individual reference value Po (c) is larger than the individual light receiving amount P (c),
That is, it is determined whether or not the individual light receiving amount P (c) is increased or decreased during one scanning period, and if it is determined to be “NO”, step S
If the answer is YES in step 11, the process proceeds to step S10. In step S10, it is determined that the individual light receiving amount P (c) of this time is smaller than the individual reference value Po (c), and the compensation value P1 for compensating the individual reference value is stored in the compensation register P as P = P1. To be done. In step S11, the individual received light amount P (c) of this time is the individual reference value P
The compensation value P2 for compensating the individual reference value is determined to be greater than o (c), and is stored in the compensation register P as P = P2. The compensation coefficients P1 and P2 compensate for variations in the amount of light received during one scanning period due to causes other than light shielding.
There is a relationship of (1 / P1) <(1 / P2). The reason for this is usually limited to a specific reason such as an increase in the light emission amount due to removal of dust adhering to the light emitting element when the individual light reception amount P (c) increases. It takes a large amount. Step S10 or S11
After that, the process proceeds to step S12, where the individual reference value P
The compensation of o (c) is performed. That is, the compensation register P
A new individual reference value Po (c) is calculated by the equation (1) from the compensation value P1 or P2 (= P), the individual light receiving amount P (c) and the individual reference value Po (c) stored in Is stored in the RAM 53 as the individual reference value of.

【数1】 Po(c)=Po(c)+{P(c)−Po(c)}/P (1) ステップS4、ステップS7およびステップS12の実
行の後、ステップS13に移り、カウンタCの内容が1
つ増分され、現在走査されている対をなす発光素子1お
よび受光素子2に対する遮光の有無の判断および個別基
準値の更新動作を終了してステップS2に戻る。
## EQU1 ## Po (c) = Po (c) + {P (c) -Po (c)} / P (1) After execution of steps S4, S7 and S12, the process proceeds to step S13 and the counter C is reached. Content of 1
The light emitting element 1 and the light receiving element 2 that are currently scanned are incremented by one, the judgment of the presence or absence of light shielding and the updating operation of the individual reference value are ended, and the process returns to step S2.

【0026】現在走査中にある対をなす発光素子1およ
び受光素子2において図3に示すフローが実行される結
果、電源オン時の初回の走査ではステップS1、S2〜
S4、S13が順次実行されて初期の個別基準値Po
(c)が記憶される。次の走査からは走査の都度、物体
による遮光がある場合にはステップS2〜S7、S13
が順次行われる結果、個別基準値は補償されることなく
現在の個別基準値が維持されて次回の走査においても使
用される。物体による遮光が無い場合にはステップS2
〜S6、S8、S9、S10(またはS11)、S1
2、S13が順次行われる結果、個別基準値が適正な値
に自動的に更新される。
As a result of the flow shown in FIG. 3 being executed in the pair of the light emitting element 1 and the light receiving element 2 which is currently being scanned, steps S1 and S2 to S2 in the first scanning when the power is turned on.
S4 and S13 are sequentially executed to set the initial individual reference value Po.
(C) is stored. Each time after the next scanning, if there is light blocking by the object at each scanning, steps S2 to S7, S13
As a result, the individual reference value is not compensated and the current individual reference value is maintained and used in the next scan. If there is no light blocking by the object, step S2
~ S6, S8, S9, S10 (or S11), S1
As a result of sequentially performing 2 and S13, the individual reference value is automatically updated to an appropriate value.

【0027】次にこの第3の発明について説明する。第
3の発明では図4に示すように光学的検出装置は大略、
検出パネル3側とホストコンピュータ21側に分割さ
れ、検出パネル3とホストコンピュータ21との間は通
信ケーブル20を介してデータの授受が行われる。検出
パネル3は図5および図6に示しかつ該図を参照して説
明された構成が適用される。検出パネル3に備えられた
マイクロコンピュータ5の演算制御回路51は、発光素
子1から受光素子2に向けて発光された光の遮光物体4
のタッチオン/タッチオフ/タッチ移動のいずれかの操
作が行われる毎に該操作の種類を示す対応する操作識別
情報“0”、“1”、“2”を該当する座標データと共
にホストコンピュータ21に送信する。この第3の発明
が従来と異なるところは、演算制御回路51は、遮光物
体4のタッチオフを検出した場合には、タッチオフを示
す操作識別情報“1”を該タッチオフの位置を示す座標
データと共に複数回連続してホストコンピュータ21へ
送信することである。この操作識別情報“1”および該
座標を連続して送信する回数は特定回数だけ出力しても
良く、また次のタッチオンが演算制御回路51により識
別されて操作識別情報“0”が出力されるまで続けて送
信しても良い。なお、タッチオフ以外のタッチオンおよ
びタッチ移動を示す操作識別情報“1”および“2”お
よび該当する座標データは従来通り1回だけ出力され
る。この理由は、タッチオフの操作識別情報のデータ欠
けが生じた場合は、次のタッチオンまでに時間間隔があ
り、他の操作識別情報に比較して誤動作が見過ごされ易
いことと、タッチオンおよびタッチ移動の操作識別情報
にデータ欠けが生じてもオペレータは異常に気がついて
再操作することが期待されるからである。
Next, the third invention will be described. In the third invention, as shown in FIG.
It is divided into the detection panel 3 side and the host computer 21 side, and data is exchanged between the detection panel 3 and the host computer 21 via the communication cable 20. The detection panel 3 has the configuration shown in FIGS. 5 and 6 and described with reference to the drawings. The arithmetic control circuit 51 of the microcomputer 5 provided in the detection panel 3 is provided with the light shielding object 4 for the light emitted from the light emitting element 1 toward the light receiving element 2.
Each time any one of touch-on / touch-off / touch movement is performed, corresponding operation identification information “0”, “1”, “2” indicating the type of the operation is transmitted to the host computer 21 together with the corresponding coordinate data. To do. The third aspect of the present invention is different from the conventional one, in the case where the arithmetic control circuit 51 detects a touch-off of the light-shielding object 4, a plurality of pieces of operation identification information "1" indicating the touch-off are displayed together with coordinate data indicating the touch-off position. It is to transmit to the host computer 21 continuously. The operation identification information "1" and the number of times the coordinates are continuously transmitted may be output a specific number of times, and the next touch-on is identified by the arithmetic control circuit 51 and the operation identification information "0" is output. You can continue sending until. The operation identification information "1" and "2" indicating touch-on and touch movement other than touch-off and corresponding coordinate data are output only once as in the conventional case. The reason for this is that if data is missing from the touch-off operation identification information, there is a time interval until the next touch-on, and malfunctions are more easily overlooked compared to other operation identification information. This is because the operator is expected to notice the abnormality and perform the operation again even if the operation identification information lacks data.

【0028】上述のように構成された演算制御回路51
から出力される操作識別情報を従来のホストコンピュー
タ21で受信する場合について説明する。いま、タッチ
オン、タッチオフ、タッチオンを示す操作識別情報
“0”、“1”、…、“1”、“0”が順次、該当する
座標データと共に演算制御回路51からホストコンピュ
ータ21へ送信されている。送信中にデータ欠けが生
じ、最初に送られてくる操作識別情報“1”が正しく受
信されなかった場合には、ホストコンピュータ21は正
しく受信されない(論理矛盾が生じた)操作識別情報お
よび該当する座標データを廃棄する。続いて、ホストコ
ンピュータ21は操作識別情報“1”を受信するから、
該情報を正しい(論理矛盾のない)情報として受信し、
該当する座標データをタッチオフした座標データとして
記憶する。続いて順次、操作識別情報“1”および該当
する座標データが受信されるものの、論理矛盾(タッチ
オフが続けて受信されることはない)を生じるから以後
の“1”および該当する座標データは廃棄される。この
後、タッチオンを示す操作識別情報“0”が受信される
とホストコンピュータ21は論理矛盾を生じない情報と
して該当する座標データを記憶する。このように、タッ
チオフを示す操作識別情報“1”の送信中にデータ欠け
が発生しても、ホストコンピュータ21には必ずタッチ
オフおよびその座標データが識別されるから、タッチオ
フに伴う誤動作は回避される。さらに従来のように、タ
ッチオフのデータ欠けが生じた後にタッチオンの操作識
別情報が送信された場合にタッチオンの情報に論理矛盾
が生じてデータが廃棄される不都合はない。
The operation control circuit 51 configured as described above.
A case where the conventional host computer 21 receives the operation identification information output from the above will be described. Now, operation identification information “0”, “1”, ..., “1”, “0” indicating touch-on, touch-off, and touch-on are sequentially transmitted from the arithmetic control circuit 51 to the host computer 21 together with the corresponding coordinate data. . When data is lost during transmission and the operation identification information "1" sent first is not correctly received, the host computer 21 is not correctly received (logical contradiction has occurred) and the corresponding operation identification information. Discard the coordinate data. Subsequently, since the host computer 21 receives the operation identification information "1",
Receiving the information as correct (logically consistent) information,
The corresponding coordinate data is stored as touch-off coordinate data. Subsequently, although the operation identification information “1” and the corresponding coordinate data are sequentially received, a logical contradiction (touch-off is not continuously received) occurs, and hence the subsequent “1” and the corresponding coordinate data are discarded. To be done. After that, when the operation identification information "0" indicating the touch-on is received, the host computer 21 stores the corresponding coordinate data as information that does not cause a logical contradiction. As described above, even if a data loss occurs during the transmission of the operation identification information “1” indicating touch-off, the host computer 21 can always identify the touch-off and the coordinate data thereof, so that the malfunction due to the touch-off can be avoided. . Further, unlike the prior art, when touch-on operation identification information is transmitted after a touch-off data loss, a logical contradiction occurs in touch-on information and data is not discarded.

【0029】この第4の発明では、図4に示すようにホ
ストコンピュータ21側には検出パネル3から送信され
る操作識別情報に論理矛盾が生じている場合には該論理
矛盾した操作識別情報を論理矛盾しない操作識別情報に
変換し、座標データは変換しないで受信する操作識別情
報変換機能を有する変換部22が備えられている。この
変換部22は次のプログラムに従って受信した操作識別
情報の変換を行う。この変換用のプログラムは、ドライ
バプログラムとして変換部22に記憶され、メーカがユ
ーザ側に提供する基本ソフトウエアの一部である。
According to the fourth aspect of the present invention, as shown in FIG. 4, when there is a logical contradiction in the operation identification information transmitted from the detection panel 3 on the host computer 21 side, the logically contradictory operation identification information is displayed. A conversion unit 22 having an operation identification information conversion function of converting the operation identification information into logically consistent information and receiving the coordinate data without conversion is provided. The conversion unit 22 converts the operation identification information received according to the following program. The conversion program is stored in the conversion unit 22 as a driver program and is a part of the basic software provided by the manufacturer to the user.

【0030】検出パネル3の演算制御回路51は電源起
動時に、起動を示す起動コマンドをホストコンピュータ
21に送る。変換部22は起動コマンドを受信すると、
起動コマンド受信直後に最初に受信する操作識別情報に
対して次の変換処理を行う。即ち、(a)タッチオンを
示す操作識別情報“0”が受信された場合は論理矛盾は
生じないから変換することなく受信する。(b)タッチ
オフを示す操作識別情報“1”が受信された場合は、起
動後の最初の操作がタッチオフであることはあり得ない
ので論理矛盾を生じるからこの操作識別情報“1”およ
び座標データを廃棄する。(c)タッチ移動を示す操作
識別情報“2”が受信された場合には、起動後の最初に
タッチ移動はあり得ないから論理矛盾を生じるため、タ
ッチ移動を示す“2”をタッチオンを示す“1”に変換
して論理矛盾を無くし、該当する座標データをタッチオ
ンを示す座標データとして受信する。このように、起動
時に最初に受信される操作識別情報としてデータ欠けな
どにより論理矛盾が生じる操作識別情報が受信されても
矛盾の無い操作識別情報に変換して受信することができ
る。
The arithmetic control circuit 51 of the detection panel 3 sends an activation command indicating activation to the host computer 21 when the power source is activated. When the conversion unit 22 receives the activation command,
The following conversion processing is performed on the operation identification information that is received first immediately after receiving the activation command. That is, (a) when the operation identification information “0” indicating touch-on is received, no logical contradiction occurs, and therefore the operation identification information “0” is received without conversion. (B) When the operation identification information "1" indicating touch-off is received, the first operation after activation cannot be touch-off, and a logical contradiction occurs. Therefore, the operation identification information "1" and coordinate data are generated. Discard. (C) When the operation identification information “2” indicating the touch movement is received, since there is no touch movement at the beginning after activation, a logical contradiction occurs. Therefore, “2” indicating the touch movement is indicated as touch-on. It is converted to "1" to eliminate logical contradiction, and the corresponding coordinate data is received as coordinate data indicating touch-on. In this way, even if operation identification information that causes a logical contradiction due to missing data or the like is received as the operation identification information that is first received at the time of startup, it can be converted into operation identification information that does not have a contradiction and can be received.

【0031】電源起動後に2回目以降に受信される操作
識別情報に対しては変換部22は次の変換処理を行う。
(d)タッチオンを示す操作識別情報“0”に続いてタ
ッチオンを示す操作識別情報“0”を受信した場合には
論理矛盾を生じるから“0”をタッチ移動を示す操作識
別情報“2”に変換して該当する座標データと共に受信
する。なお、“0”に続いてタッチオフを示す操作識別
情報“1”またはタッチ移動を示す操作識別情報“2”
を受信した場合には論理矛盾は生じないから廃棄および
変換することなくそのまま受信する。(e)タッチオフ
を示す操作識別情報“1”に続いてタッチオンを示す操
作識別情報“0”が受信された場合は論理矛盾を生じな
いから廃棄および変換することなく受信する。操作識別
情報“1”に続いて操作識別情報“1”が受信された場
合には論理矛盾を生じるから“1”および該当する座標
データは廃棄される。操作識別情報“1”に続いて操作
識別情報“2”を受信した場合には論理矛盾を生じるか
らタッチ移動を示す“2”をタッチオンを示す“0”に
変換して該当する座標データと共に受信する。(f)タ
ッチ移動を示す操作識別情報“2”に続いてタッチオン
を示す操作識別情報“0”を受信した場合には論理矛盾
を生じるから“0”を“2”に変換してタッチ移動情報
として受信する。操作識別情報“2”に続いて操作識別
情報“1”または“2”が受信された場合には論理矛盾
は生じ無いからそのまま受信する。
The conversion unit 22 performs the following conversion processing on the operation identification information received after the second power-on operation.
(D) When operation identification information "0" indicating touch-on is received subsequently to operation identification information "0" indicating touch-on, a logical contradiction occurs, so "0" is changed to operation identification information "2" indicating touch movement. It is converted and received together with the corresponding coordinate data. Note that operation identification information “1” indicating touch-off or operation identification information “2” indicating touch movement is displayed following “0”.
When it receives, the logical contradiction does not occur, and therefore it is received as it is without being discarded and converted. (E) When the operation identification information “1” indicating touch-off is received and then the operation identification information “0” indicating touch-on is received, it is received without discarding and conversion because no logical contradiction occurs. When the operation identification information "1" is received after the operation identification information "1", a logical contradiction occurs, so "1" and the corresponding coordinate data are discarded. If the operation identification information "2" is received after the operation identification information "1", a logical contradiction occurs. Therefore, "2" indicating touch movement is converted into "0" indicating touch-on and received together with the corresponding coordinate data. To do. (F) When the operation identification information "2" indicating touch movement is received and subsequently the operation identification information "0" indicating touch-on is received, a logical contradiction occurs. Therefore, "0" is converted to "2" and the touch movement information is converted. To receive as. If the operation identification information "1" or "2" is received after the operation identification information "2", no logical contradiction occurs and the operation identification information is received as it is.

【0032】上述のように、ホストコンピュータ21の
変換部22において、検出パネル3側から送信される操
作識別情報が何らかの理由により論理矛盾を生じた場合
には論理矛盾を生じた座標データを従来のように全て廃
棄するだけでなく、論理矛盾の無いものとして処理する
ことができる操作識別情報は適切な操作識別情報に変換
して座標データと共に受信する情報変換機能を備えてい
る。
As described above, in the conversion section 22 of the host computer 21, when the operation identification information transmitted from the detection panel 3 side causes a logical contradiction for some reason, the coordinate data in which the logical contradiction occurs is converted into the conventional coordinate data. As described above, the operation identification information, which can be processed not only by discarding all but logically consistent, is converted into appropriate operation identification information and received with the coordinate data.

【0033】なお、上述の説明では、第3の発明と第4
の発明とは別々の発明として説明したが、第3の発明を
使用した検出パネルと第4の発明を備えたホストコンピ
ュータとを備えた光学的検出装置を使用すれば、操作識
別情報のデータ欠けなどによる受信エラーに対して一層
適切に対処でき、オペレータはデータ欠けの問題に煩わ
されることなく適正な動作が保証される。
In the above description, the third invention and the fourth invention are described.
Although the invention is described as a separate invention from the above invention, if the optical detection device including the detection panel using the third invention and the host computer having the fourth invention is used, the operation identification information data is missing. It is possible to more appropriately deal with a reception error due to, for example, and the operator is assured of proper operation without being bothered by the problem of data loss.

【0034】[0034]

【効果】この第1の発明によれば、発光素子の出力電圧
を検出する電圧検出手段を備えているから、装置に誤動
作が生じた場合、誤動作の原因が発光素子の故障の基づ
く否かを判断することができ、発光素子に基づく場合は
速やかに該当する発光素子の交換など誤動作の原因を取
り除くことができる。また、発光素子以外に誤動作の原
因がある場合でも少なくとも発光素子はその原因から除
去されるから原因を調べる手数が省かれ、メンテナンス
が容易になる。さらに、発光素子からの検出電圧をデジ
タル信号に変換してマイクロプロセッサで処理する構成
にすると発光素子の経時的変化がモニタできるから経時
的な劣化の程度が分かり、故障前に交換時期を判断する
ことができる利点がある。
According to the first aspect of the present invention, since the voltage detecting means for detecting the output voltage of the light emitting element is provided, when a malfunction occurs in the device, it is determined whether or not the cause of the malfunction is a failure of the light emitting element. When the light emitting element is used, the cause of malfunction such as replacement of the corresponding light emitting element can be promptly removed. Further, even when there is a cause of malfunction other than the light emitting element, at least the light emitting element is removed from the cause, so that the number of labors for investigating the cause is saved, and the maintenance becomes easy. Furthermore, if the configuration is such that the detection voltage from the light emitting element is converted into a digital signal and processed by a microprocessor, the change over time of the light emitting element can be monitored, so that the degree of deterioration over time can be known and the replacement time can be judged before failure. There is an advantage that can be.

【0035】この第2の発明によれば、対をなす発光素
子と受光素子が走査される都度、物体による遮光がない
場合のみ個別基準値が現在受光される個別受光量に応じ
て自動的に適切に補償される。従って、発光素子および
受光素子の劣化、塵埃の付着、周囲光の変化、装置自体
の変動、温度変化等の種々の原因に基づく個別受光量の
経時的変動に対応した適切な個別基準値を絶えず準備す
ることができるので、物体の有無の判断に誤検出が生じ
ることがない。さらに、素子および装置自体の寿命を最
大に延ばすことができる。
According to the second aspect of the present invention, each time the light emitting element and the light receiving element forming a pair are scanned, the individual reference value is automatically set according to the individual light receiving amount which is currently received only when there is no light blocking by the object. Properly compensated. Therefore, it is necessary to constantly maintain an appropriate individual reference value corresponding to the time-dependent variation of the individual light receiving amount due to various causes such as deterioration of the light emitting element and the light receiving element, adhesion of dust, change of ambient light, fluctuation of the device itself, temperature change, etc. Since preparation can be made, erroneous detection does not occur in the determination of the presence or absence of an object. Furthermore, the life of the device and of the device itself can be maximized.

【0036】この第3の発明によれば、タッチオフを示
す操作識別情報および座標データが連続して複数回、ホ
ストコンピュータ側に送信されるので、ホストコンピュ
ータ側では検出パネル側のタッチオフおよびその座標デ
ータを確実に識別して把握することができる。しかも、
従来のようにタッチオフの操作識別情報のデータ欠けに
伴い続けて受信されたタッチオンの操作識別情報および
その座標データが廃棄され続けるという異常動作が生じ
る問題を解消することができる。
According to the third aspect of the present invention, since the operation identification information indicating the touch-off and the coordinate data are continuously transmitted to the host computer side a plurality of times, the host computer side touch-off the touch panel and the coordinate data thereof. Can be surely identified and grasped. Moreover,
It is possible to solve the problem of the conventional abnormal operation in which the touch-on operation identification information and the coordinate data received continuously due to the lack of the touch-off operation identification information data are continuously discarded.

【0037】この第4の発明によれば、ホストコンピュ
ータ側において検出パネル側から送信された操作識別情
報の受信順序に論理矛盾が生じていても、論理矛盾を生
じない操作識別情報に変換する情報変換機能を備えてい
るから、論理矛盾が生じた場合に単に情報を廃棄する従
来の構成に比べて検出パネルの操作をより適確に把握す
ることができ、また続けて送信データが廃棄され続ける
という動作異常を生じるおそれを解消することができ
る。
According to the fourth aspect of the invention, even if there is a logical contradiction in the reception order of the operation identification information transmitted from the detection panel side on the host computer side, the information for converting into the operation identification information which does not cause the logical contradiction. Since it has a conversion function, it can grasp the operation of the detection panel more accurately than the conventional configuration that simply discards information when a logical contradiction occurs, and the transmission data continues to be discarded. It is possible to eliminate the possibility that such abnormal operation will occur.

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

【図1】この第1の発明の一実施例を示す概略全体構成
図である。
FIG. 1 is a schematic overall configuration diagram showing an embodiment of the first invention.

【図2】第1の発明に関係する図1の主要回路構成図で
ある。
FIG. 2 is a main circuit configuration diagram of FIG. 1 related to the first invention.

【図3】この第2の発明を説明するフローチャートであ
る。
FIG. 3 is a flow chart for explaining the second invention.

【図4】この第3および第4の発明を説明するための概
略構成図である。
FIG. 4 is a schematic configuration diagram for explaining the third and fourth inventions.

【図5】遮光物体の位置検出を行う検出パネルの概略平
面図である。
FIG. 5 is a schematic plan view of a detection panel that detects the position of a light-shielding object.

【図6】遮光物体の位置検出動作を説明する概略全体構
成図である。
FIG. 6 is a schematic overall configuration diagram illustrating a position detecting operation of a light shielding object.

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

1 発光素子 2 受光素子 3 検出パネル 4 物体 5 マイクロプロセッサ 8 電流供給回路 13 電圧検出回路 21 ホストコンピュータ 22 変換部 51 演算制御回路 53 RAM 1 Light emitting element 2 Light receiving element 3 Detection panel 4 Object 5 Microprocessor 8 Current supply circuit 13 Voltage detection circuit 21 Host computer 22 Converter 51 Operation control circuit 53 RAM

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも一対の発光素子と受光素子と
を所定距離離間して配置し、前記発光素子から前記受光
素子に向けて発光された光を遮光する物体の位置または
有無を検出する光学的検出装置において、 前記発光素子を駆動する発光駆動手段と、前記発光素子
の出力を検出する電圧検出手段と、該検出された電圧値
を所定の基準レベルと比較する比較手段とを備えてなる
光学的検出装置。
1. An optical device for arranging at least a pair of a light emitting element and a light receiving element with a predetermined distance therebetween, and detecting the position or presence or absence of an object that shields the light emitted from the light emitting element toward the light receiving element. In the detection device, an optical device comprising a light emission drive means for driving the light emitting element, a voltage detection means for detecting an output of the light emitting element, and a comparison means for comparing the detected voltage value with a predetermined reference level. Detection device.
【請求項2】 少なくとも一対の発光素子と受光素子と
を所定距離離間して配置し、前記発光素子から前記受光
素子に向けて発光された光を遮光する物体の位置または
有無を検出する光学的検出装置において、 前記各発光素子を発光駆動する発光駆動手段と、前記各
発光素子の駆動中に対応する前記各受光素子により受光
される各個別受光量を測定する測定手段と、遮光がない
場合の各受光素子ごとの個別受光量を個別基準値として
記憶する記憶手段と、前記記憶された個別基準値と現在
の個別受光量とから遮光の有無を判断する遮光判断手段
と、遮光なしと判断された場合にのみ前記個別基準値と
前記現在の個別受光量に基づいて該個別基準値を更新す
る更新手段とを備え、前記各発光素子が駆動される都
度、遮光の有無が判断されると共に遮光なしと判断され
た場合に前記個別基準値の更新が行われることを特徴と
する光学的検出装置。
2. An optical system in which at least a pair of a light emitting element and a light receiving element are arranged at a predetermined distance from each other and which detects the position or presence or absence of an object that shields the light emitted from the light emitting element toward the light receiving element. In the detection device, a light emission drive means for driving each light emitting element to emit light, a measurement means for measuring each individual light receiving amount received by each corresponding light receiving element during driving of each light emitting element, and a case where there is no light shielding Storage means for storing the individual light receiving amount of each of the light receiving elements as an individual reference value, a light shielding determining means for determining the presence or absence of light shielding based on the stored individual reference value and the current individual light receiving amount, and it is determined that there is no light shielding. Only when the individual reference value and the updating means for updating the individual reference value based on the current individual received light amount, the presence or absence of light shielding is determined every time each of the light emitting elements is driven. Both Optical detection device, characterized in that the updating of individual reference value is performed when it is determined that no light-shielding.
【請求項3】 少なくとも一対の発光素子と受光素子と
を所定距離離間して配置し、前記発光素子から前記受光
素子に向けて発光された光の遮光物体のタッチオン/タ
ッチオフ/タッチ位置の移動のいずれかの操作が行われ
る毎に該操作の種類を示す操作識別情報を座標データと
共にホストコンピュータ側に送信する光学的検出装置に
おいて、 前記遮光物体のタッチオフ時に送信される操作識別情報
と座標データを複数回連続して送信することを特徴とす
る光学的検出装置。
3. A touch-on / touch-off / movement of a touch position of a light-shielding object for light emitted from the light-emitting element toward the light-receiving element, wherein at least a pair of the light-emitting element and the light-receiving element are arranged at a predetermined distance from each other. In an optical detection device that transmits operation identification information indicating the type of operation to the host computer side together with coordinate data every time any operation is performed, the operation identification information and the coordinate data transmitted when the light-shielding object is touched off are stored. An optical detection device characterized in that it transmits a plurality of times continuously.
【請求項4】 少なくとも一対の発光素子と受光素子と
を所定距離離間して配置し、前記発光素子から前記受光
素子に向けて発光された光の遮光物体のタッチオン/タ
ッチオフ/タッチ位置の移動のいずれかの操作が行われ
る毎に該操作の種類を示す操作識別情報を座標データと
共にホストコンピュータ側に送信する光学的検出装置に
おいて、 前記ホストコンピュータ側において受信される前記操作
識別情報の受信順序に論理矛盾が生じている場合には該
矛盾した操作識別情報を論理矛盾しない種類の操作識別
情報に変換して受信する情報変換手段を備えてなる光学
的検出装置。
4. A touch-on / touch-off / movement of a touch position of a light-shielding object for light emitted from the light-emitting element toward the light-receiving element, wherein at least a pair of the light-emitting element and the light-receiving element are arranged at a predetermined distance from each other. In an optical detection device that transmits operation identification information indicating the type of the operation together with coordinate data to the host computer side every time any operation is performed, in the reception order of the operation identification information received on the host computer side. An optical detection device comprising information conversion means for converting the contradictory operation identification information into operation identification information of a type not logically contradictory and receiving when the logical contradiction occurs.
JP1476393A 1993-02-01 1993-02-01 Optical detector Expired - Lifetime JP3205106B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1476393A JP3205106B2 (en) 1993-02-01 1993-02-01 Optical detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1476393A JP3205106B2 (en) 1993-02-01 1993-02-01 Optical detector

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2000392868A Division JP3404474B2 (en) 2000-12-25 2000-12-25 Optical detector

Publications (2)

Publication Number Publication Date
JPH06230145A true JPH06230145A (en) 1994-08-19
JP3205106B2 JP3205106B2 (en) 2001-09-04

Family

ID=11870122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1476393A Expired - Lifetime JP3205106B2 (en) 1993-02-01 1993-02-01 Optical detector

Country Status (1)

Country Link
JP (1) JP3205106B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10161809A (en) * 1996-11-27 1998-06-19 Meidensha Corp Touch panel interface for digital relay
JP2007025796A (en) * 2005-07-12 2007-02-01 Sony Corp Display device and display method
JP2010505182A (en) * 2006-09-29 2010-02-18 ネクシオ カンパニー リミテッド Coordinate recognition method and contact area recognition method of hitting point of infrared touch screen

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
PL438698A1 (en) * 2021-08-05 2023-02-06 Integer.Pl Spółka Akcyjna Optical system for parcel detection

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10161809A (en) * 1996-11-27 1998-06-19 Meidensha Corp Touch panel interface for digital relay
JP2007025796A (en) * 2005-07-12 2007-02-01 Sony Corp Display device and display method
US8334854B2 (en) 2005-07-12 2012-12-18 Sony Corporation Display device and display method
JP2010505182A (en) * 2006-09-29 2010-02-18 ネクシオ カンパニー リミテッド Coordinate recognition method and contact area recognition method of hitting point of infrared touch screen

Also Published As

Publication number Publication date
JP3205106B2 (en) 2001-09-04

Similar Documents

Publication Publication Date Title
US4905174A (en) Optical coordinate input apparatus
JPH0650779A (en) Self-diagnosing method and control apparatus for the same
JP3205106B2 (en) Optical detector
US10175280B2 (en) Electronic device test system and method thereof
JP2597405B2 (en) Optical detector
JP3404474B2 (en) Optical detector
US8547332B2 (en) Pointing device user interface method, medium, and system robust against external noise
US9177496B2 (en) Matrix addressed display system
JPH0750424B2 (en) Touch panel control method and touch panel device
US11526228B1 (en) Method for monitoring an operation condition of an interactive information system
CN1193707C (en) Radiation thermometer
US8481329B2 (en) Analysis system for the photometric determination of an analyte in a body fluid
US5117100A (en) Apparatus for and method of optical position detection
JP3814106B2 (en) Coordinate detection device
KR100518449B1 (en) Touch sensing method in touch panel and touch panel incorporating the same
JP3324835B2 (en) Optical detector
US4761550A (en) Scanning system for optical coordinate input device with scan interrupt control
JP3585472B2 (en) Optical detector
JP2005077690A (en) Image forming apparatus and its operation verification method
KR100189832B1 (en) Monitoring system for evaporation process
JP2001312370A (en) Touch panel device
JPH02144713A (en) Optical touch screen
CN114967637A (en) Action management device and action management method
JP3392223B2 (en) Film feed control device
KR100985579B1 (en) Self-test system of image reproducing apparatus and method thereof

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20080629

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20080629

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090629

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100629

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100629

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110629

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110629

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120629

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120629

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130629

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130629

Year of fee payment: 12