JP2927594B2 - Control method of optical coupling device - Google Patents

Control method of optical coupling device

Info

Publication number
JP2927594B2
JP2927594B2 JP2763492A JP2763492A JP2927594B2 JP 2927594 B2 JP2927594 B2 JP 2927594B2 JP 2763492 A JP2763492 A JP 2763492A JP 2763492 A JP2763492 A JP 2763492A JP 2927594 B2 JP2927594 B2 JP 2927594B2
Authority
JP
Japan
Prior art keywords
output
optical coupling
coupling device
identification code
absence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2763492A
Other languages
Japanese (ja)
Other versions
JPH05223949A (en
Inventor
清志 蝦名
幸久 織田
信正 小野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Consejo Superior de Investigaciones Cientificas CSIC
Original Assignee
Consejo Superior de Investigaciones Cientificas CSIC
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 Consejo Superior de Investigaciones Cientificas CSIC filed Critical Consejo Superior de Investigaciones Cientificas CSIC
Priority to JP2763492A priority Critical patent/JP2927594B2/en
Publication of JPH05223949A publication Critical patent/JPH05223949A/en
Application granted granted Critical
Publication of JP2927594B2 publication Critical patent/JP2927594B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Photo Coupler, Interrupter, Optical-To-Optical Conversion Devices (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、被検出物の有無を無接
点で検出するフォトインタラプタ等の光結合装置、およ
びその制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical coupling device such as a photo-interrupter for detecting the presence or absence of an object without contact, and a control method therefor.

【0002】[0002]

【従来の技術】従来のフォトインタラプタ1は、アナロ
グ出力のものは、図4のように、発光素子2および受光
素子3から構成され、この出力VEを外部コンパレータ
4にて基準電圧VREFと比較し、「H」または「L」の
2値出力VOとしてCPU等へ入力する。またはVEの出
力を直接CPU等に入力するという使い方であつた。
Conventional photo-interrupter 1, those of the analog output, as shown in FIG. 4, is composed of the light emitting element 2 and the light receiving element 3, and the reference voltage V REF to the output V E by an external comparator 4 The values are compared and input to a CPU or the like as a binary output V O of “H” or “L”. Alternatively, the output of VE was directly input to a CPU or the like.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術におい
て、フォトインタラプタ1は、大きく分けると透過型と
反射型の2種類があり、透過型は、図5のように、発光
素子2から出た光が直接受光素子3に入射する構造であ
り、検出物体5がこの光を遮り、受光量が低下すること
を利用し、物体を検出する。
In the above-mentioned prior art, the photointerrupter 1 is roughly classified into two types, a transmission type and a reflection type. The transmission type is a type in which light emitted from the light emitting element 2 as shown in FIG. Are directly incident on the light receiving element 3, and the object is detected by utilizing the fact that the detection object 5 blocks this light and reduces the amount of received light.

【0004】反射型は、図6のように、発光素子2から
出た光が検出物体5から反射し、受光素子3に入射する
構造であり、検出物体5が有ることにより、受光量が上
がることを利用し、物体を検出するものである。
[0006] The reflection type has a structure in which light emitted from a light emitting element 2 is reflected from a detection object 5 and enters a light receiving element 3 as shown in FIG. The object is detected by utilizing the fact.

【0005】図4の回路では、VEが飽和しないとき、
以下の関係が成り立つ。
In the circuit of FIG. 4, when VE is not saturated,
The following relationship holds:

【0006】[0006]

【数1】 (Equation 1)

【0007】物体の有無を検知する場合、検出物体の有
時のVEと無時のVEの間に基準電圧VREFが存在するよ
う回路定数を設定すればよい(図7を参照)。
[0007] When detecting the presence or absence of an object may be set to circuit constants so that the reference voltage V REF is present between the V E of V E and Mutoki when chromatic detection object (see Figure 7).

【0008】しかし、ここで前出の式で、以下のバラツ
キおよび変動がある。
However, there are the following variations and variations in the above equation.

【0009】K,kは、アセンブリによる光軸のずれ
等のバラツキがある。
K and k have variations such as deviation of the optical axis due to the assembly.

【0010】ΦEは、個々のバラツキ、経時変化(MAX
50%down/50,000H)、温度による変化がある。
[0010] Φ E is an individual variation, a change over time (MAX
50% down / 50,000H), there is a change due to temperature.

【0011】icは、個々のバラツキ、温度による変
化がある。
Ic has individual variations and changes due to temperature.

【0012】Aは、個々の検出物によるバラツキがあ
る。
A has variations due to individual detection objects.

【0013】Bは、個々の検出物によるバラツキがあ
る。
B has variations due to individual detection objects.

【0014】このため、実使用時は、図4の回路におい
ては、個々の機器ごとに抵抗R1またはR2を調整した
り、また、発光素子2、受光素子3、フォトインタラプ
タ1を細かくランク分けして使用せねばならないという
問題があった。
Therefore, in actual use, in the circuit of FIG. 4, the resistance R 1 or R 2 is adjusted for each device, and the light emitting element 2, light receiving element 3, and photo interrupter 1 are finely ranked. There was a problem that it had to be used separately.

【0015】また、反射型フォトインタラプタにおいて
は、検出物5が無いときの背景からの反射光量が多く、
検出物体5の有無時の出力差があまりとれない場合が多
い。このため、上記のΦEの経時変化等の変動等を考慮
すると、VREFが設定できなくなり使用できない等の問
題が発生する。
In the reflection type photo interrupter, the amount of light reflected from the background when there is no detection object 5 is large.
In many cases, the output difference between the presence and absence of the detection object 5 cannot be made much. For this reason, in consideration of the above-mentioned variation of Φ E such as a change with time, there arises a problem that V REF cannot be set and cannot be used.

【0016】本発明は、上記に鑑み、フォトインタラプ
タ等の出力のバラツキ、温度、経時による変動等があつ
ても、かつ検知物有無時の受光量の差が少なくても使用
可能な光結合装置とその制御方法の提供を目的とする。
In view of the above, an object of the present invention is to provide an optical coupling device which can be used even if there is a variation in output of a photo interrupter or the like, a variation due to temperature, aging, etc., and a small difference in the amount of received light with or without an object to be detected. And a control method thereof.

【0017】[0017]

【課題を解決するための手段】本発明による課題解決手
段は、検出物体の有無により変化する受光量を電気信号
に変換し出力する光結合装置を外部制御装置にて駆動す
る場合、外部制御装置は、光結合装置からの出力値を一
定時間毎に記憶しておき、あるいは予め検知物体の有無
に基づいて得られた光結合装置からの出力値を記憶して
おき、検出物体の有無を判別するときに取り込んだ光結
合装置からの出力値を前記の記憶しておいた値と比較す
ることにより、検出物体の有無、または有から無、無か
ら有への変化を判定することである。この判定は、識別
符号が一致しているとき、発光素子および受光素子に電
源を供給してから一定時間あけて行うようにしている。
Means for Solving the Problems An object of the present invention is to provide an external control device for driving an optical coupling device which converts an amount of received light which varies depending on the presence or absence of a detected object into an electric signal and outputs the electric signal. Is to store the output value from the optical coupling device at regular intervals, or
Memorize the output value from the optical coupling device obtained based on
By comparing the output value from the optical coupling device taken in when judging the presence or absence of the detection object with the stored value, the presence or absence of the detection object, or from presence to absence, from absence to existence It is to determine the change. This judgment is
When the codes match, the light emitting element and light receiving element
It is performed after a certain period of time after the source is supplied.

【0018】[0018]

【0019】そして、光結合装置は、自己の識別符号を
記憶する記憶回路と、前記識別符号と外部制御装置から
送られる識別符号とを比較する比較回路と、該比較回路
の出力に基づいて発光素子および受光素子に電源を供給
する出力制御回路と、アナログデジタル変換された電気
信号をデジタル出力する出力部とを備えている。出力部
は、識別符号が一致しているときに識別符号受領信号を
受光量に基づく出力値とともに1本の信号ラインにシリ
アル出力するものである。
[0019] Then, the optical coupling device includes a comparator for comparing a memory circuit for storing a self identification code and the identification code sent from the identification code and an external control device, based on an output of said comparator circuit emitting An output control circuit that supplies power to the element and the light-receiving element, and analog-to-digital converted electricity
An output unit for digitally outputting a signal. Output section
Sends an identification code receipt signal when the identification codes match.
One signal line with the output value based on the amount of received light
Output.

【0020】[0020]

【作用】上記課題解決手段において、外部制御装置は、
光結合装置より送られてきた出力値を記憶し、検出物体
有無を判別するときは、取り込んだ光結合装置の出力
を前記記憶された出力と比較する。この記憶された
出力と判別するときの出力の時間差を最適にとれば、温
あるいは経時による出力変化は無視することが可能で
ある。
[Action] In the above Symbol challenges solving means, the external control device,
Storing the output values sent Ri by optical coupling equipment, detected object
When determining the existence of, Installing elaborate optical coupling equipment output
The value is compared with the stored output values. Taking the time difference between the output of the time to determine that the stored output to the optimum, the output variation due to temperature or aging is able to ignore.

【0021】また、記憶されている光結合装置の出力
も、その光結合装置自身の出力であるため、当然、発光
子の出力、受光素子の感度のバラツキおよびアセンブ
リバラツキがあっても、光結合装置の個々の出力値バラ
ツキは無視できる。
Further, the output of the optical coupling equipment which is also stored, since the output of the optical coupling instrumentation 置自 only, of course, the output of the light emitting <br/> element, variations in sensitivity of the light receiving element and Even if there is assembly variation, individual output value variations of the optical coupling device can be ignored.

【0022】また、受光素子3の出力値をデジタルで送
信するため、例えば出力値を8ビットのデータとする
と、信号ラインD/IOを8本とすることも可能である
が、そのような場合、光結合装置を使用する個数が増加
すると、機器内での配線の本数およびコネクタ等による
接続点の数が増加する。そこで、機器の小型化、不良率
低減を図るため、信号ラインを1本とし、機器内の省線
化およびコネクタ等による接続点の減少を実現する。
The output value of the light receiving element 3 is transmitted digitally.
Output, for example, the output value is 8-bit data
And eight signal lines D / IO are also possible.
However, in such a case, the number of optical coupling devices used increases.
Then, it depends on the number of wires in the device and the connector
The number of connection points increases. Therefore, downsizing of equipment and defective rate
To reduce the number of signal lines, reduce the number of lines in the equipment.
And reduce the number of connection points by connectors and the like.

【0023】[0023]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明の一実施例を示す光結合装置のブ
ロツク図、図2は同じくそのタイミングチャートであ
る。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an optical coupling device showing an embodiment of the present invention, and FIG. 2 is a timing chart thereof.

【0024】図示の如く、本実施例の光結合装置(フォ
トインタラプタ)1は、発光素子2と、増幅器、出力ト
ランジスタを内蔵した受光素子3と、該発光素子2及び
受光素子3の駆動制御を行う内部制御素子10とからな
る。
As shown in the figure, an optical coupling device (photo interrupter) 1 of the present embodiment controls a light emitting element 2, a light receiving element 3 including an amplifier and an output transistor, and a drive control of the light emitting element 2 and the light receiving element 3. And an internal control element 10.

【0025】前記内部制御素子10は、図1の如く、電
源ラインVcc、グランドラインGND、クロックライ
ンCLK及び信号ラインDI/Oの4つの入出力端子に
て、外部制御装置11に接続されている。
As shown in FIG. 1, the internal control element 10 is connected to an external control device 11 through four input / output terminals of a power supply line Vcc, a ground line GND, a clock line CLK and a signal line DI / O. .

【0026】この内部制御素子10は、外部制御装置1
1から信号ラインDI/Oを通じてクロックラインCL
Kのクロック信号に同期して送られてきたデータビット
列を読み込む入力用シフトレジスタ12と、予め自己の
識別符号を記憶する記憶回路(アドレスメモリー)13
と、前記シフトレジスタ12に読み込まれたデータ(識
別符号)とアドレスメモリー13に記憶されたデータ
(自己の識別符号)とが一致しているか否かを比較判別
するアドレス比較回路15と、該アドレス比較回路15
が識別符号の一致を判別したとき、発光素子2及び受光
素子3に電源を供給する出力制御回路16と、クロック
タイミングを制御するタイミング制御回路17と、該タ
イミング制御回路17により決められたタイミングに従
つて受光素子3から入力された検知状態結果DOを識別
符号受領信号ACKにつづけて出力ゲート回路18から
信号ラインDI/Oを通じて外部制御装置11に出力す
る信号発生回路(ACK発生回路)19と、受光素子3
の受光量に見合う電気信号をアナログデジタル変換する
アナログデジタル変換器(以下A/D変換器という)2
1と、該A/D変換器21からのデジタル信号を読み込
んでタイミング制御回路17で決められたタイミングに
従つて出力ゲート回路18から信号を出力する出力部と
しての出力用シフトレジスタ22とを備えている。
The internal control element 10 is connected to the external control device 1
1 to the clock line CL through the signal line DI / O
An input shift register 12 for reading a data bit string sent in synchronization with the K clock signal, and a storage circuit (address memory) 13 for storing its own identification code in advance
An address comparison circuit 15 for comparing the data (identification code) read into the shift register 12 with the data (own identification code) stored in the address memory 13; Comparison circuit 15
Determines that the identification codes match, an output control circuit 16 that supplies power to the light emitting element 2 and the light receiving element 3, a timing control circuit 17 that controls the clock timing, and a timing determined by the timing control circuit 17 Accordingly, a signal generation circuit (ACK generation circuit) 19 which outputs the detection state result DO input from the light receiving element 3 to the external control device 11 through the signal line DI / O from the output gate circuit 18 along with the identification code reception signal ACK. , Light receiving element 3
Analog-to-digital converter (hereinafter referred to as A / D converter) for converting an electric signal corresponding to the amount of received light from analog to digital
1 and an output shift register 22 as an output unit for reading a digital signal from the A / D converter 21 and outputting a signal from the output gate circuit 18 in accordance with the timing determined by the timing control circuit 17. ing.

【0027】ここで、外部制御装置11は、光結合装置
に識別符号の読み取り開始時期を確実に把握させるた
め、信号ラインDI/Oを通じて識別符号の交信を行う
時以外はクロック信号を発生しないように構成されてお
り、図2の如く、このクロック信号は交信時以外はHi
gh状態とし、かつ識別符号の前にLow出力が入力さ
れるようにしている。そこで、前記タイミング制御回路
17は、外部制御装置11から送られてくる信号につい
て、クロック信号の初期2回以上の信号ラインDI/O
の符号によりクロック信号と識別符号との同期を確認す
るよう構成されている。
Here, the external control device 11 does not generate a clock signal except when communicating the identification code through the signal line DI / O in order to make the optical coupling device surely grasp the start time of reading the identification code. As shown in FIG. 2, this clock signal is Hi except during communication.
gh state, and a Low output is input before the identification code. Therefore, the timing control circuit 17 performs two or more initial signal lines DI / O of the clock signal on the signal sent from the external control device 11.
Is used to confirm the synchronization between the clock signal and the identification code.

【0028】また、外部制御装置11から送られてくる
8ビットの識別符号データビット列の最後にパリティ信
号PTYが付加されており、内部制御素子10には、こ
の符号信号のビット数を調べて識別符号の読み込みエラ
ーを検出できるよう、パリティチェック回路24が設け
られている。
A parity signal PTY is added to the end of the 8-bit identification code data bit string sent from the external control device 11, and the internal control element 10 checks the number of bits of this code signal to determine the identification signal. A parity check circuit 24 is provided to detect a code reading error.

【0029】なお、アドレスの書き込みは、外部制御装
置11を有する機器への取り付け前、あるいは機器に取
り付け後にメモリー書き込み制御手段26にて書き込ま
れる。そして、このアドレス書き込み方法としては、R
AM方式、電荷注入方式、接合破壊方式、ヒユーズ溶断
方式等が考えられる。
The address is written by the memory write control means 26 before or after the attachment to the device having the external control device 11. Then, as this address writing method, R
An AM method, a charge injection method, a junction destruction method, a fuse fusing method and the like can be considered.

【0030】一方、外部制御装置11は、フォトインタ
ラプタ1の出力を一定時間毎にメモリする記憶手段31
と、検出物体の有無を判定したいとき、最新のフォトイ
ンタラプタ1の出力と前出のメモリされた出力とを比較
し、検出物体の有無の状態が変化したかどうかを判定す
る判定手段32とを備えている。
On the other hand, the external control device 11 has a storage means 31 for storing the output of the photointerrupter 1 at regular intervals.
And when it is desired to determine the presence or absence of the detected object, the determination unit 32 compares the latest output of the photointerrupter 1 with the previously stored output to determine whether the state of the presence or absence of the detected object has changed. Have.

【0031】次に、図2のタイミングチャートに従つて
上記光結合装置の動作を詳述する。まず、外部制御装置
11と接続されたクロックラインCLK及び信号ライン
DI/Oは、光結合装置を動作させない場合にはHig
h状態を保持している。
Next, the operation of the optical coupling device will be described in detail with reference to the timing chart of FIG. First, the clock line CLK and the signal line DI / O connected to the external control device 11 are set to High when the optical coupling device is not operated.
h state is maintained.

【0032】光結合装置の検知状態を知る必要が生じた
場合、外部制御装置11がクロック信号とこれに同期し
た識別符号を出力する。このとき、タイミング制御回路
17によりDI/O端子の状態が1クロック目立ち下が
り時High、2クロック目立ち下がり時Lowのとき
のみ、以降のDI/Oの状態を図2のDI0〜DI7
(8ビット)を識別符号としてシフトレジスタ12に読
み込む。
When it is necessary to know the detection state of the optical coupling device, the external control device 11 outputs a clock signal and an identification code synchronized with the clock signal. At this time, only when the state of the DI / O terminal is High at the time of the first clock falling and Low at the time of the second clock falling by the timing control circuit 17, the subsequent DI / O states are changed from DI0 to DI7 in FIG.
(8 bits) is read into the shift register 12 as an identification code.

【0033】すなわち、外部制御装置11より送られて
来た識別符号は、図2の様に外部制御装置11より送ら
れてくるクロック信号CLKに同期し、このクロック信
号は信号のやりとり時以外はHigh状態とし、かつ識
別符号の前にLow出力を入れ、光結合装置はクロック
信号の1クロック目立ち上がり時がHigh出力、2ク
ロック目立ち下がり時がLow出力となることをタイミ
ング制御回路17により確認する。そして、クロックタ
イミングがOKであれば、以降のDI0〜DI7の8ビ
ットを識別符号として取り込む。これにより、クロック
信号と、信号ラインDI/O上の符号信号のノイズによ
る同期のずれを光結合装置によりチェックできる。
That is, the identification code sent from the external control device 11 is synchronized with the clock signal CLK sent from the external control device 11 as shown in FIG. The optical coupling device confirms with the timing control circuit 17 that the output becomes High when the first clock of the clock signal is High and the output is Low when the second clock is falling, in the High state and before the identification code. . If the clock timing is OK, the subsequent eight bits DI0 to DI7 are taken in as identification codes. This allows the optical coupling device to check the synchronization deviation due to noise between the clock signal and the code signal on the signal line DI / O.

【0034】さらに、本例では、8ビットのDI0〜D
I7符号にパリティ信号PTYを入れて9ビットの符号
信号とし、この符号信号のビット数をパリティチェック
回路24にて調べ、パリティエラーを検出する。パリテ
ィエラーの発生が確認されると、出力制御回路16は、
O1電源ライン28から発光素子2および受光素子3に
電源を供給せず、パリティエラーの発生が確認されない
ときのみ、発光素子2および受光素子3に電源を供給す
る。したがつて、符号信号のノイズによるエラー、すな
わち識別符号の読み込みエラーをチェックできる。
Further, in this example, the 8-bit DI0 to DI0
A parity signal PTY is inserted into the I7 code to form a 9-bit code signal, and the number of bits of this code signal is checked by the parity check circuit 24 to detect a parity error. When the occurrence of the parity error is confirmed, the output control circuit 16
Power is not supplied to the light emitting element 2 and the light receiving element 3 from the O1 power supply line 28, and power is supplied to the light emitting element 2 and the light receiving element 3 only when occurrence of a parity error is not confirmed. Therefore, an error due to noise in the code signal, that is, an error in reading the identification code can be checked.

【0035】そして、アドレスメモリー13にある自己
の識別符号と、信号ラインDI/Oにより読み込まれた
シフトレジスタ12にある識別符号とをアドレス比較回
路15で比較し、出力制御回路16は、識別符号が一致
した場合のみ発光素子2及び受光素子3のO1電源ライ
ン28に電源を供給して発光素子2および受光素子3を
駆動させる。
The address comparison circuit 15 compares the self identification code in the address memory 13 with the identification code in the shift register 12 read by the signal line DI / O. Power is supplied to the O1 power supply line 28 of the light emitting element 2 and the light receiving element 3 only when the values match, and the light emitting element 2 and the light receiving element 3 are driven.

【0036】ここで、従来の光結合装置の使用に際して
は、常時全光結合装置の電源を入れていたが、本実施例
では、図1において実際に消費電流が多いのは従来の光
結合装置と同一である発光素子2、受光素子3の部分で
あり、この部分は外部制御装置11から識別符号が送ら
れてきた識別符号が予め記憶している自己の識別符号と
一致した光結合装置のみが一定時間のみ動作し、それ以
外の識別符号が一致していない全光結合装置は動作しな
いため、大幅な消費電流の低減が図れる。
Here, when the conventional optical coupling device is used, the power of the all optical coupling device is always turned on. In this embodiment, however, in FIG. The light-emitting element 2 and the light-receiving element 3 are the same as those described above, and this part is only the optical coupling device whose identification code sent from the external control device 11 matches its own identification code stored in advance. Operate only for a certain period of time, and the other all-optical couplers whose identification codes do not match do not operate, so that the current consumption can be significantly reduced.

【0037】そして、受光素子3の出力、すなわち被検
知物体の有無に応じてアナログ電気信号をライン27か
ら読み込み、これをA/D変換器21でデジタル化し、
8ビットの信号として出力用シフトレジスタ22に入力
する。次に、ACK発生回路19は、タイミング制御回
路17により決められたタイミングで検知状態結果DO
を識別符号受領信号ACKにつづけて出力ゲート回路1
8に出力し、出力ゲート回路18は、この両信号DO,
ACKを信号ラインDI/Oラインを通じて外部制御装
置11に出力する。なお、本例においては、13クロッ
ク目の立ち上がりに同期して識別符号受領信号ACKを
出力し、14クロック目の立ち上がりに同期して検知状
態結果DOの出力を行う。
Then, an analog electric signal is read from the line 27 in accordance with the output of the light receiving element 3, ie, the presence or absence of the detected object, and is digitized by the A / D converter 21.
It is input to the output shift register 22 as an 8-bit signal. Next, the ACK generation circuit 19 detects the detection state result DO at the timing determined by the timing control circuit 17.
To the identification code reception signal ACK and output gate circuit 1
8 and the output gate circuit 18 outputs the two signals DO,
ACK is output to the external control device 11 through the signal line DI / O line. In this example, the identification code reception signal ACK is output in synchronization with the rising edge of the 13th clock, and the detection state result DO is output in synchronization with the rising edge of the 14th clock.

【0038】一方、外部制御装置11は、図3のよう
に、記憶手段31により、フォトインタラプタ1の出力
を一定時間毎にメモリしておく。そして、検出物体の有
無を判定したいとき、最新のフォトインタラプタ1の出
力と前出のメモリされた出力とを比較し、検出物体の有
無の状態が変化したかどうかを判定する。図1のフォト
インタラプタ1を使用すれば、検出物体が無→有に変わ
ると、DN>DOとなるため、場合により適切なl,Lを
設定することにより、誤検知が防げる。なお、図3にお
いて、DNは最新のフォトインタラプタの出力、DOは一
定時間前のフォトインタラプタの出力、L、lは物体の
有無の判定基準となる定数である。
On the other hand, as shown in FIG. 3, the external control device 11 stores the output of the photointerrupter 1 in the storage means 31 at regular intervals. Then, when it is desired to determine the presence or absence of the detected object, the latest output of the photointerrupter 1 is compared with the previously stored output to determine whether or not the state of the presence or absence of the detected object has changed. If the photointerrupter 1 of FIG. 1 is used, if the detected object changes from absent to present, D N > D O , so that erroneous detection can be prevented by setting appropriate l and L in some cases. Incidentally, in FIG. 3, D N are output in recent photointerrupter, D O is the output of a certain time before the photo-interrupter, L, l is a constant that is a criterion for presence or absence of an object.

【0039】また、他実施例として、外部制御装置11
において検出物体の有無が分かつているときのフォトイ
ンタラプタ出力をメモリしておき、検出物体の有無を判
別したいときに取り込んでフォトインタラプタの出力を
前出のメモリされた出力と比較することにより検出物体
の有無を判定することもできる。
As another embodiment, the external control device 11
The output of the photointerrupter when the presence or absence of the detected object is stored in the memory is stored, and when it is desired to determine the presence or absence of the detected object, the output is taken and the output of the photointerrupter is compared with the previously stored output to detect the detected object. Can also be determined.

【0040】このように、検知状態結果DOを識別符号
受領信号ACKにつづけて信号ラインDI/Oを通じて
外部制御装置11に出力させることで、例えば複写機等
の外部制御装置11に複数個の光結合装置を接続する場
合には、クロックラインCLKと信号ラインDI/Oを
各光結合装置1間で共用して外部制御装置11に接続で
きる。このため、従来の光結合装置を使用した場合に比
して機器内の配線が簡略化される。
As described above, the detection state result DO is output to the external control device 11 through the signal line DI / O following the identification code reception signal ACK, so that the external control device 11 such as a copying machine can output a plurality of optical signals. When connecting a coupling device, the clock line CLK and the signal line DI / O can be shared between the optical coupling devices 1 and connected to the external control device 11. For this reason, the wiring in the device is simplified as compared with the case where the conventional optical coupling device is used.

【0041】さらに、識別符号と一致している光結合装
置が識別符号受領信号ACKを外部制御装置11に送る
ため、この識別符号受領信号ACKが全光結合装置につ
いて送られてくることを確認すれば、外部制御装置11
からは光結合装置までの接続がなされていることが分る
から、機器製造時の接続チェック及び機器使用時の電源
投入時の接続チェックが行える。
Further, since the optical coupler that matches the identification code sends the identification code acknowledgment signal ACK to the external control device 11, it is confirmed that this identification code acknowledgment signal ACK is sent for the all-optical coupler. If the external control device 11
It can be seen from FIG. 4 that the connection to the optical coupling device has been made, so that a connection check at the time of manufacturing the device and a connection check at the time of turning on the power at the time of using the device can be performed.

【0042】ここで、図2の信号ラインDI/Oにおい
て、パリティエラーの発生がないことを確認し、発光素
子2及び受光素子3のO1電源ライン28により電源を
供給してから一定時間あけて検知状態結果DOを出力す
るのは、受光素子3の被検出物体検知の出力27が安定
した状態で検知状態結果DOを出力するためである。
Here, it is confirmed that no parity error has occurred in the signal line DI / O of FIG. 2, and a certain period of time has elapsed after power was supplied through the O1 power supply line 28 of the light emitting element 2 and the light receiving element 3. The reason why the detection state result DO is output is that the detection state result DO is output in a state where the output 27 of the detected object detection of the light receiving element 3 is stable.

【0043】なお、本発明は、上記実施例に限定される
ものではなく、本発明の範囲内で上記実施例に多くの修
正及び変更を加え得ることは勿論である。
It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that many modifications and changes can be made to the above-described embodiment within the scope of the present invention.

【0044】例えば本実施例では、透過型フォトインタ
プタについて記載したが、反射型フォトインタラプタを
用いて被検出物体の有無を検出するよう構成してもよ
い。
For example, in this embodiment, the transmission type photointerrupter has been described. However, the configuration may be such that the presence or absence of an object to be detected is detected using a reflection type photointerrupter.

【0045】[0045]

【発明の効果】以上の説明から明らかな通り、外部制御
装置は、光結合装置より送られてきた出力値を記憶
り込んだ最新の光結合装置の出力を前記記憶された
出力と比較するので、出力の時間差を最適にとれば、
温度あるいは経時による出力変化は無視することが可能
となる。
As apparent from the above description, the external control unit stores the output values sent from the optical coupler,
Because Installing elaborate an output value of the latest optical coupling device is compared with the stored output values, if perfect take the time difference between the output,
Output changes due to temperature or aging can be ignored.

【0046】また、記憶されている光結合装置の出力
も、その光結合装置自身の出力であるため、当然、発光
素子の出力、受光素子の感度のバラツキおよびアセンブ
リバラツキがあっても、光結合装置の個々の出力値バラ
ツキは無視できる。
Since the stored output of the optical coupling device is also the output of the optical coupling device itself, naturally, even if there is a variation in the output of the light emitting element, the sensitivity of the light receiving element, and the assembly, the optical coupling device does not. Individual output value variations of the device are negligible.

【0047】また、光結合装置は、自己の識別符号と外
部制御装置からの識別符号とが一致した場合に、受発光
素子に電源を供給するので、光結合装置における消費電
力の大幅な削減を図れる。そして、電源供給後一定時間
あけてから判定を行うと、受光素子が安定した状態で出
力するので、検知結果の信頼性を高めることができる。
さらに、光結合装置から外部制御装置に識別符号受領信
号を送信することにより、外部制御装置から各光結合装
置までの接続がなされていることがわかり、機器製造時
の接続チェックおよび機器使用時の接続チェックを容易
に行うことができる。
Further, the optical coupling device supplies power to the light receiving / emitting element when its own identification code and the identification code from the external control device match, so that the power consumption of the optical coupling device can be greatly reduced. I can do it. And for a certain time after power supply
If the judgment is made after opening, the light receiving element will come out in a stable state.
Therefore, the reliability of the detection result can be improved.
Furthermore, the identification code is received from the optical coupling device to the external control device.
Signal from the external control unit,
Connection is made to the
Checking connection of devices and connections when using devices
Can be done.

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

【図1】本発明のフォトインタラプタの一実施例の内部
結線図
FIG. 1 is an internal connection diagram of an embodiment of a photointerrupter of the present invention.

【図2】本発明のフォトインタラプタの一実施例の入出
力タイミングチャート
FIG. 2 is an input / output timing chart of one embodiment of the photointerrupter of the present invention.

【図3】本発明のフォトインタラプタの制御フローチャ
ート
FIG. 3 is a control flowchart of the photointerrupter of the present invention.

【図4】従来のアナログ出力フォトインタラプタと外部
の回路図
FIG. 4 is a circuit diagram of a conventional analog output photointerrupter and an external circuit.

【図5】従来の透過型フォトインタラプタの構造図FIG. 5 is a structural view of a conventional transmission type photo interrupter.

【図6】従来の反射型フォトインタラプタの構造図FIG. 6 is a structural diagram of a conventional reflective photointerrupter.

【図7】VE,VREF設定説明図FIG. 7 is an explanatory diagram of V E and V REF setting.

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

1 フォトインタラプタ 2 発光素子 3 受光素子 4 コンパレータ 5 検出物体 10 内部制御素子 11 外部制御装置 12 入力用シフトレジスタ 13 アドレスメモリ 15 アドレス比較部 16 出力制御回路 17 タイミング制御回路 18 出力ゲート回路 19 ACK発生部 21 A/D変換部 22 出力用シフトレジスタ 26 メモリ書込制御部 31 記憶手段 32 判定手段 DESCRIPTION OF SYMBOLS 1 Photo interrupter 2 Light emitting element 3 Light receiving element 4 Comparator 5 Detected object 10 Internal control element 11 External control device 12 Input shift register 13 Address memory 15 Address comparison unit 16 Output control circuit 17 Timing control circuit 18 Output gate circuit 19 ACK generation unit Reference Signs List 21 A / D converter 22 Output shift register 26 Memory write controller 31 Storage means 32 Judgment means

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−296680(JP,A) 特開 昭63−47691(JP,A) 特開 昭60−27882(JP,A) 実開 昭61−133357(JP,U) 実開 昭60−65838(JP,U) (58)調査した分野(Int.Cl.6,DB名) G01V 9/04 G01J 1/42 H04L 11/00 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-3-296680 (JP, A) JP-A-63-47691 (JP, A) JP-A-60-27882 (JP, A) 133357 (JP, U) Actual opening 60-65838 (JP, U) (58) Fields investigated (Int. Cl. 6 , DB name) G01V 9/04 G01J 1/42 H04L 11/00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 発光素子と受光素子とを有し、検出物体
の有無により変化する受光量を電気信号に変換し出力す
る光結合装置は、自己の識別符号を記憶する記憶回路
と、前記識別符号と外部制御装置から送られる識別符号
とを比較する比較回路と、該比較回路の出力に基づいて
発光素子および受光素子に電源を供給する出力制御回路
と、アナログデジタル変換された電気信号をデジタル出
力する出力部とを備え、光結合装置を外部制御装置にて
駆動する場合、外部制御装置は、光結合装置からの出力
値を記憶しておき、検出物体の有無を判別するときに取
り込んだ光結合装置からの出力値を前記の記憶しておい
た値と比較することにより、検出物体の有無、または有
から無、無から有への変化を判定することを特徴とする
光結合装置の制御方法。
An optical coupling device that has a light emitting element and a light receiving element, converts an amount of received light that varies depending on the presence or absence of a detection object into an electric signal, and outputs the electric signal, a storage circuit that stores its own identification code.
And the identification code and the identification code sent from the external control device
And a comparison circuit for comparing
Output control circuit that supplies power to light emitting and light receiving elements
Output the analog-to-digital converted electrical signal
When the optical coupling device is driven by an external control device, the external control device outputs the output from the optical coupling device.
By storing the value, comparing the output value from the optical coupling device taken in when determining the presence or absence of the detection object with the stored value, the presence or absence of the detection object, or presence or absence, A method for controlling an optical coupling device, comprising: determining a change from absence to presence.
【請求項2】 出力部は、識別符号が一致しているとき
に識別符号受領信号を出力し、この信号を受光量に基づ
く出力値とともに1本の信号ラインにシリアル出力する
ことを特徴とする請求項1記載の光結合装置の制御方
法。
2. An output unit according to claim 1 , wherein said identification codes match.
Output the identification code reception signal to the
Serial output to one signal line together with the output value
The control method for an optical coupling device according to claim 1, wherein:
【請求項3】 識別符号が一致しているとき、発光素子
および受光素子に電源を供給してから一定時間あけて判
定を行うことを特徴とする請求項1または2記載の光結
合装置の制御方法。
3. A light emitting device when the identification codes match.
After a certain period of time after supplying power to the
Method of controlling an optical coupling device according to claim 1 or 2, wherein the performing constant.
JP2763492A 1992-02-14 1992-02-14 Control method of optical coupling device Expired - Fee Related JP2927594B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2763492A JP2927594B2 (en) 1992-02-14 1992-02-14 Control method of optical coupling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2763492A JP2927594B2 (en) 1992-02-14 1992-02-14 Control method of optical coupling device

Publications (2)

Publication Number Publication Date
JPH05223949A JPH05223949A (en) 1993-09-03
JP2927594B2 true JP2927594B2 (en) 1999-07-28

Family

ID=12226382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2763492A Expired - Fee Related JP2927594B2 (en) 1992-02-14 1992-02-14 Control method of optical coupling device

Country Status (1)

Country Link
JP (1) JP2927594B2 (en)

Also Published As

Publication number Publication date
JPH05223949A (en) 1993-09-03

Similar Documents

Publication Publication Date Title
US20090157931A1 (en) Iic bus communication system, slave device, and method for controlling iic bus communication
US20070177532A1 (en) Terminal control system
KR19980033281A (en) Non-volatile semiconductor memory having memory cells that store multiple bit information, respectively
JP2927594B2 (en) Control method of optical coupling device
US7522465B2 (en) Semiconductor memory device, and data transmitting/receiving system
JP2604651B2 (en) Optical coupling device, information equipment using the same, and method of controlling optical coupling device
US20030163614A1 (en) Device with interface recognizing ability
JP4077111B2 (en) Device control circuit
TW202338380A (en) Board card detection and controlling circuit, method and server system
US6170069B1 (en) Bit error measuring device for modem device and bit error measuring method for the same
US5764393A (en) Data transmission control device of radio selection call receiver
JP3336673B2 (en) Data transmission equipment
US5304812A (en) Optoelectronic device, information apparatus and data transmission system using optoelectronic device for simplifying wirings and reducing size, and method of controlling the optoelectronic device
US6456539B1 (en) Method and apparatus for sensing a memory signal from a selected memory cell of a memory device
JP2729873B2 (en) Information equipment, optical coupling device used therefor, and control method therefor
US20080288818A1 (en) Method and System for Protecting Information between a Master Terminal and a Slave Terminal
US11537547B2 (en) Slave device, master device, and data transmission method
US6404805B1 (en) Bit error measuring device for modem device and bit error measuring method for the same
JP2001230726A (en) Infrared ray data communication equipment
KR100378603B1 (en) Apparatus for generating a flag signal
JP2000340312A (en) Signal transmitting device and plug
JP5278267B2 (en) END COVER, PROGRAMMABLE LOGIC CONTROLLER DEVICE EQUIPPED WITH THE SAME, END COVER INSTALLATION CHECK METHOD, AND PROGRAMMABLE LOGIC CONTROLLER FAILURE DIAGNOSIS METHOD
JP2610544B2 (en) Light emitting device and information device using the same
JP2706848B2 (en) Light receiving element and information device using the same
JPH07263081A (en) Connector and connector identifying method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees