JPH0687035B2 - Photoelectric sensor control method and control system - Google Patents

Photoelectric sensor control method and control system

Info

Publication number
JPH0687035B2
JPH0687035B2 JP13038490A JP13038490A JPH0687035B2 JP H0687035 B2 JPH0687035 B2 JP H0687035B2 JP 13038490 A JP13038490 A JP 13038490A JP 13038490 A JP13038490 A JP 13038490A JP H0687035 B2 JPH0687035 B2 JP H0687035B2
Authority
JP
Japan
Prior art keywords
light
photoelectric sensor
output
incident
ambient light
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 - Lifetime
Application number
JP13038490A
Other languages
Japanese (ja)
Other versions
JPH0425728A (en
Inventor
元 石川
Original Assignee
兼松日産農林株式会社
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 兼松日産農林株式会社 filed Critical 兼松日産農林株式会社
Priority to JP13038490A priority Critical patent/JPH0687035B2/en
Publication of JPH0425728A publication Critical patent/JPH0425728A/en
Publication of JPH0687035B2 publication Critical patent/JPH0687035B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は発光素子と受光素子とからなる光電センサの制
御システムに関する。
The present invention relates to a control system for a photoelectric sensor including a light emitting element and a light receiving element.

(従来の技術) さまざまなシーケンス制御の過程において、スイッチの
一つとして光電センサが利用されている。
(Prior Art) A photoelectric sensor is used as one of switches in various sequence control processes.

従来の光電センサ及びそのスイッチング方法を4図に示
す。
A conventional photoelectric sensor and its switching method are shown in FIG.

同図において、光電センサ21は発光素子22と受光素子23
とからなり、発光素子22は光軸Lを受光素子23に向けて
発している。典型的には発光素子22はフォトダイオード
であり、受光素子23はフォトトランジスタである。
In the figure, the photoelectric sensor 21 includes a light emitting element 22 and a light receiving element 23.
The light emitting element 22 emits the optical axis L toward the light receiving element 23. Typically, the light emitting element 22 is a photodiode and the light receiving element 23 is a phototransistor.

光電センサ21からの信号はアンプ部24に入力され、発光
素子22と受光素子23との間に物体が存在するか否かを表
わす信号がアンプ部24からコントローラ部25に入力され
る。この入力に基づき、コントローラ部25は機器26を制
御する。
A signal from the photoelectric sensor 21 is input to the amplifier section 24, and a signal indicating whether or not an object is present between the light emitting element 22 and the light receiving element 23 is input from the amplifier section 24 to the controller section 25. Based on this input, the controller unit 25 controls the device 26.

なお、一般に光電センサ21の発光素子22にはパルス波が
入力されて一定周期で断続的に点灯するようになってお
り、アンプ部24はこのパルス波に同期するパルス信号と
の比較により物体の存否を判断していた。
Incidentally, in general, the light emitting element 22 of the photoelectric sensor 21 is adapted to be inputted with a pulse wave and be intermittently lit at a constant period, and the amplifier section 24 compares the pulse signal synchronized with the pulse wave of the object. I was judging the existence.

(発明が解決しようとする課題) 上記のような構成においては、外乱光の影響を受けやす
かった。すなわち、第5図に示すように、受光素子23の
出力信号は三種類の波形を取り得る。第5図(イ)
(ロ)(ハ)はそれぞれ(イ)発光素子22からの光が入
光していないとき、(ロ)発光素子22からの光が入光し
ているとき(ハ)外乱光が入光しているときの波形を示
す。このうち(イ)(ロ)が正常に動作している状態で
あり、(イ)(ロ)の入力に対するアンプ部24はコント
ローラ部25に物体の存否を伝達することができる。
(Problems to be Solved by the Invention) In the above-described configuration, it is easy to be affected by ambient light. That is, as shown in FIG. 5, the output signal of the light receiving element 23 can take three types of waveforms. Figure 5 (a)
(B) and (c) indicate (a) when the light from the light emitting element 22 is not incident, and (b) when light from the light emitting element 22 is incident (c) the disturbance light is incident. Shows the waveform when Of these, (a) and (b) are in a normal operating state, and the amplifier section 24 for the input of (a) and (b) can transmit the presence or absence of an object to the controller section 25.

しかし、外乱光が入光している場合には、アンプ部24に
は細かいデータ処理が不可能なため、(イ)が入力して
いるものと判断して同じ信号をコントローラ部25に送っ
てしまい、外乱光の原因が西日の差し込みや機器内への
光の漏れ等であって長時間継続する場合にはその結果機
器26の損傷や事故が生じたりすることがある。
However, when ambient light is incident, the amplifier section 24 cannot perform detailed data processing. Therefore, it is determined that (a) is input and the same signal is sent to the controller section 25. If the cause of the ambient light is the insertion of the western sun or the leakage of light into the device and the like, which continues for a long time, the device 26 may be damaged or cause an accident.

あるいは外乱光を感知できるタイプにおいても、点検や
ワークの補給等のために一時的に機器の蓋を開けた場合
等であっても、軽微な外乱光の影響を過敏に感知して直
ちに機器を緊急停止させたりアラームを鳴らしたりし
て、その都度制御を中断させ、作業能率を低下させてい
た。
Alternatively, even for types that can detect ambient light, even if the lid of the device is temporarily opened for inspection or replenishment of work, etc. Every time an emergency stop or an alarm was sounded, the control was interrupted and work efficiency was reduced.

本発明の目的は、外乱光の影響に対してフレキシブルに
対応を行わせることが可能な光電センサの制御方法及び
制御システムを提供することにある。
It is an object of the present invention to provide a photoelectric sensor control method and control system capable of flexibly responding to the influence of ambient light.

(課題を解決するための手段) 上記目的を達成するために請求項1に記載の発明は、断
続的に発光素子を発光させる発光パルス信号と、該発光
素子に対応する受光素子からの受光信号とを比較して発
光素子の非発光時に受光素子が受光しているか否かによ
り光電センサの受光素子に外乱光が入光しているか否か
を判断する過程と、受光素子に外乱光が入光したと判断
している状態が継続している間、外乱光の入光時間をカ
ウントする過程と、入光時間が一定の長さに達した時に
異常対応手段を起動させる過程とを含んで光電センサの
制御方法を構成した。
(Means for Solving the Problems) In order to achieve the above object, the invention according to claim 1 provides a light emitting pulse signal for intermittently emitting a light emitting element and a light receiving signal from a light receiving element corresponding to the light emitting element. And the process of determining whether the ambient light is entering the light receiving element of the photoelectric sensor depending on whether the light receiving element is receiving light when the light emitting element is not emitting light, and the ambient light entering the light receiving element. Including the process of counting the incoming time of the ambient light while the state that it is judged that the light has been emitted and the process of activating the abnormality response means when the incoming time reaches a certain length A control method for the photoelectric sensor was constructed.

請求項2に記載の発明は、断続的に発光素子を発光させ
る発光パルス信号と、該発光素子に対応する受光素子か
らの受光信号とを比較して発光素子の非発光時に受光素
子が受光した場合にエラー出力を行い、エラー出力数を
計数して外乱光の侵入を判定するように光電センサの制
御システムを構成した。
According to a second aspect of the present invention, the light emitting pulse signal for intermittently emitting the light emitting element is compared with the light receiving signal from the light receiving element corresponding to the light emitting element, and the light receiving element receives the light when the light emitting element is not emitting light. In this case, the control system of the photoelectric sensor is configured to output an error, count the error output, and determine the intrusion of ambient light.

(作用効果) 本発明は上記の構成としたので、次のような作用効果を
奏する。
(Operation effect) Since the present invention is configured as described above, the following operation effects are achieved.

請求項1に記載の発明に係る光電センサの制御方法によ
れば、まず光電センサの受光素子に外乱光が入光してい
るか否かの判断がなされる。外乱光が入光していなけれ
ば通常動作がなされることは言うまでもない。外乱光が
入光している場合には外乱光の入光時間がカウントされ
る。カウントは外乱光が入光したと判断されている状態
が継続している間行なわれる。外乱光の入光時間が一定
の長さに達する以前に中断した場合にはカウントも中止
される。入光時間が一定の長さに達した時には易常対応
手段が起動し、例えばアラームが作動し、あるいは被制
御機器の非常停止がなされる。
According to the control method of the photoelectric sensor of the first aspect of the present invention, it is first determined whether the ambient light enters the light receiving element of the photoelectric sensor. It goes without saying that normal operation is performed unless ambient light is incident. When the ambient light is incident, the ambient light incident time is counted. The counting is performed while the state in which it is determined that the ambient light is incident continues. If it is interrupted before the incident time of ambient light reaches a certain length, counting is also stopped. When the light incident time reaches a certain length, the easy response means is activated, for example, an alarm is activated, or an emergency stop of the controlled device is performed.

よって、請求項1記載の発明に係る光電センサの制御方
法によると、外乱光が一定時間以上継続しない場合には
アラームは起動せず、従って事故が生じたり機器が故障
したりするに至らない軽微な原因による短時間の外乱光
の侵入に対して過敏に対応することなく、しかし被制御
機器の異常作動に基づくような長時間継続する外乱光の
侵入に対しては異常対応手段を起動させて事故や誤作動
を未然に防止することができる。カウントされる入光時
間の長さは適当に調整される。
Therefore, according to the photoelectric sensor control method of the first aspect of the present invention, when the ambient light does not continue for a certain time or longer, the alarm does not activate, and therefore an accident or a device failure does not occur. Do not hypersensitively respond to the intrusion of ambient light for a short period of time due to various causes, but activate the abnormality response means for long-term intrusion of ambient light due to abnormal operation of the controlled device. Accidents and malfunctions can be prevented in advance. The length of the light incident time counted is adjusted appropriately.

本発明に係る光電センサの制御システムによれば、受光
信号は発光パルス信号と比較され、発光素子の非発光時
に受光素子が受光した場合にはエラー出力を行う。そし
てエラー出力数を計数し、ある一定の数に達した場合に
外乱光が侵入しているものと判定するようにした。
According to the control system of the photoelectric sensor of the present invention, the light receiving signal is compared with the light emitting pulse signal, and if the light receiving element receives the light when the light emitting element is not emitting light, an error output is performed. Then, the number of error outputs is counted, and when it reaches a certain number, it is determined that the ambient light has entered.

よって、本発明に係る光電センサの制御システムによる
と、外乱光の侵入が一定時間以上継続しないと制御に影
響を及ぼさないので、事故や機器の損傷の生じない程度
の短時間の外乱光の侵入に対しては影響を受けず、ある
一定時間以上継続して初めて外乱光が侵入しているもの
と判定し、対応する出力がなされる。基準となる時間は
システムごとに適当に設定される。
Therefore, according to the control system of the photoelectric sensor according to the present invention, the disturbance light does not affect the control unless it continues for a certain period of time or more, so that the disturbance light enters for a short time so that an accident or damage to the device does not occur. However, it is determined that the ambient light is invading for a certain period of time or more, and the corresponding output is made. The reference time is set appropriately for each system.

(実施例) 以下図示の実施例について説明する。(Example) Hereinafter, the illustrated example will be described.

第1図は本発明に係る光電センサの制御システムの一実
施例を具体化した回路ブロック図である。
FIG. 1 is a circuit block diagram embodying an embodiment of a photoelectric sensor control system according to the present invention.

同図において、1は発振回路であり、一定周期の発光パ
ルス信号を出力している。発振回路1の発光パルス信号
は、増幅器2を介してフォトダイオード3に入力され、
AND回路4に入力され、インバータ5を介してフリップ
フロップ6に入力されている。フォトダイオード3はこ
の発光パルス信号に従って断続的に点灯し、フォトダイ
オード2の光軸はフォトトランジスタ7に入光する。フ
ォトトランジスタ7はフォトダイオード3からの入光に
従い出力を行う。
In the figure, reference numeral 1 denotes an oscillation circuit, which outputs a light emission pulse signal having a constant cycle. The light emission pulse signal of the oscillation circuit 1 is input to the photodiode 3 via the amplifier 2,
It is input to the AND circuit 4 and is input to the flip-flop 6 via the inverter 5. The photodiode 3 is intermittently turned on according to this light emission pulse signal, and the optical axis of the photodiode 2 enters the phototransistor 7. The phototransistor 7 outputs according to the light incident from the photodiode 3.

フォトトランジスタ7の出力は、フリップフロップ6の
セット側に、インバータ8により反転されて入力され、
リセット側にそのまま入力される。また反転されてAND
回路4に入力される。
The output of the phototransistor 7 is inverted by the inverter 8 and input to the set side of the flip-flop 6,
It is directly input to the reset side. Also inverted and AND
It is input to the circuit 4.

AND回路4とフリップフロップ6の出力はAND回路9に入
力され、AND回路9の出力はモノマルチバイブレータ10
に入力される。AND回路4の出力はN出力となり、モノ
マルチバイブレータ10の出力はZ出力となり、図示しな
いコントローラに入力される。
The outputs of the AND circuit 4 and the flip-flop 6 are input to the AND circuit 9, and the output of the AND circuit 9 is the mono multivibrator 10.
Entered in. The output of the AND circuit 4 becomes an N output, and the output of the mono multivibrator 10 becomes a Z output, which is input to a controller (not shown).

第2図は回路中の各点におけるデジタル出力を示すタイ
ミングチャートである。
FIG. 2 is a timing chart showing the digital output at each point in the circuit.

同図において、(イ)は入光のない場合、すなわちフォ
トダイオード3とフォトトランジスタ7との間に物体が
介在するために光軸Lが遮光されている時の波形を示
す。この状態においては、発振回路1の発光パルス信号
に従い、フォトダイオードは断続的に光を発している
が、光軸Lが遮光されているためにフォトトランジスタ
7には入光せず、従ってそのフォトトランジスタ7はOF
Fのまま変化しない。よってcの受光信号出力は1のま
まである。
In the same figure, (a) shows a waveform when there is no light entering, that is, when the optical axis L is shielded because an object is interposed between the photodiode 3 and the phototransistor 7. In this state, the photodiode intermittently emits light in accordance with the light emission pulse signal of the oscillation circuit 1, but since the optical axis L is shielded, it does not enter the phototransistor 7, and therefore the photodiode Transistor 7 is OF
It remains F and does not change. Therefore, the light reception signal output of c remains 1.

受光信号は反転してAND回路4に入力するので、N出力
gは0のままである。
Since the received light signal is inverted and input to the AND circuit 4, the N output g remains 0.

(ロ)は入光のある場合、すなわちフォトダイオード3
とフォトトランジスタ7との間に光軸を遮る物が存在し
ない時の波形を示す。このとき、フォトトランジスタ7
はフォトダイオードの断続的な発光によりON、OFFを繰
り返し、受光信号出力dは発振回路1の発光パルス信号
aとは位相の逆転したパルス信号となる。これが反転し
てAND回路4に入力すると、そのN出力は元のパルス信
号aと同相のパルス信号となる。
(B) indicates that there is incident light, that is, the photodiode 3
2 shows a waveform when there is no object blocking the optical axis between the phototransistor 7 and the phototransistor 7. At this time, the phototransistor 7
Is repeatedly turned on and off by intermittent light emission of the photodiode, and the light receiving signal output d becomes a pulse signal whose phase is opposite to that of the light emitting pulse signal a of the oscillation circuit 1. When this is inverted and input to the AND circuit 4, its N output becomes a pulse signal in phase with the original pulse signal a.

従って、N出力gが0のままか、パルス信号となるかに
よって、入光の有無を判定することができる。
Therefore, it is possible to determine whether light is incident or not depending on whether the N output g remains 0 or becomes a pulse signal.

(ハ)は入光エラーの場合、すなわち外乱光が入光して
いる場合である。このとき、フォトトランジスタ7はON
の状態が継続するので、受光信号cは継続して0を示
す。よってAND回路4には1が入力され、N出力gは
(ロ)の入光ありの時と同様、パルス信号となる。よっ
て、これだけでは入光ありの場合と外乱光が影響してい
る場合との区別をすることができない。
(C) is a case of a light incident error, that is, a case where ambient light is incident. At this time, the phototransistor 7 is ON
Since the above state continues, the light reception signal c continuously shows 0. Therefore, 1 is input to the AND circuit 4, and the N output g becomes a pulse signal as in the case of (B) with light incident. Therefore, it is not possible to distinguish between the case where the light is incident and the case where the ambient light is influencing with this alone.

そこで本発明においてはフリップフロップ6、AND回路
9及びモノマルチバイブレータ10を利用してZ出力を得
るようにしている。
Therefore, in the present invention, the Z output is obtained using the flip-flop 6, the AND circuit 9 and the mono-multivibrator 10.

外乱光が入光した時には、フリップフロップ6には継続
した0がセット側に、継続した1がリセット側に入力す
る。クロックパルスとしてパルス信号が発振回路1から
反転して入力するので、NGラッチSETdは入光エラー
(ハ)の時パルス信号、その他の時は1を出力する。NG
ラッチRESeはその逆となる。フリップフロップ6の出力
fは(イ)(ロ)の時0、(ハ)の時1となる。この出
力とAND回路4の出力の論理和をAND回路9でとるとhの
ようになり、モノマルチバイブレータ10の出力Zは第2
図のiに示すように(イ)(ロ)の時0、(ハ)の時1
となる。
When ambient light enters, the continuous 0 is input to the set side and the continuous 1 is input to the reset side in the flip-flop 6. Since a pulse signal as a clock pulse is inverted and input from the oscillation circuit 1, the NG latch SETd outputs a pulse signal when a light incident error (c) occurs, and outputs 1 at other times. NG
Latch RESe is the opposite. The output f of the flip-flop 6 becomes 0 when (a) and (b) and becomes 1 when (c). When the logical sum of this output and the output of the AND circuit 4 is taken by the AND circuit 9, it becomes like h, and the output Z of the mono multivibrator 10 is the second
As shown in i in the figure, 0 for (a) and (b) and 1 for (c).
Becomes

N出力及びZ出力は図示しないカウンタにより、N出力
がパルス信号でかつZ出力が0の時にのみN出力のパル
スの数をカウントし、一定の数に達すると入光エラーと
判定するようになっている。また、N出力如何によっ
て、制御される機器に何らかの出力がなされることは言
うまでもない。
The N output and the Z output are counted by a counter (not shown) only when the N output is a pulse signal and the Z output is 0, and the number of N output pulses is counted. ing. Further, it goes without saying that some output is made to the controlled device depending on the N output.

第3図は、上記実施例の制御システムの制御プログラム
の手順を示すフローチャートである。本実施例は自動ネ
ジ締め機のホッパからシュートへネジを送る自動供給装
置に適用されたものであり、ネジが送られるレールの中
に光電センサを設けてネジの有無を検知し、ネジがなけ
れば一定時間T1後にネジ整列装置を作動させ、ネジがあ
れば一定時間T2後にネジ整列装置を停止させるようにす
る。シーケンスコントローラには受光の有無を示す信
号、外乱光の有無を示す信号、クロックパルスが入力す
る。以下、順を追って説明する。
FIG. 3 is a flowchart showing the procedure of the control program of the control system of the above embodiment. This embodiment is applied to an automatic feeder that feeds a screw from a hopper of an automatic screw tightener to a chute, and a photoelectric sensor is provided in a rail to which the screw is fed to detect the presence or absence of the screw, and the screw must be removed. For example, the screw aligner is activated after a certain time T1, and if there is a screw, the screw aligner is stopped after a certain time T2. A signal indicating the presence or absence of received light, a signal indicating the presence or absence of ambient light, and a clock pulse are input to the sequence controller. Hereinafter, description will be made step by step.

《ステップ1》 まず、外乱光の有無を判断する。上述の例に従えば、Z
出力が0で、N出力に1が入力した時に外乱光ありと判
断する。
<< Step 1 >> First, the presence or absence of ambient light is determined. According to the above example, Z
When the output is 0 and 1 is input to the N output, it is determined that there is ambient light.

《ステップ2》 外乱光ありと判断した時には、予め値が定められたエラ
ーカウンタが更新され、−1が加算される。エラーカウ
ンタの値は、継続する外乱光の影響によりネジ整列装置
が誤作動して故障や事故を起こす以前に誤作動に対処で
きるように定められる。
<< Step 2 >> When it is determined that ambient light is present, an error counter having a predetermined value is updated and -1 is added. The value of the error counter is determined so as to be able to cope with the malfunction before the screw alignment device malfunctions due to the continuous influence of ambient light and causes a failure or an accident.

《ステップ3》 エラーカウンタが0になったか否かを判断する。0にな
っていなければ、すなわち一定時間が経過していなけれ
ば最初に戻る。
<< Step 3 >> It is determined whether or not the error counter has reached 0. If it is not 0, that is, if a fixed time has not elapsed, the process returns to the beginning.

《ステップ4》 一定時間になり、エラーカウンタが0になるとアラーム
が起動し、外乱光による異常が生じていることを知らせ
る。
<< Step 4 >> When the error counter reaches 0 for a certain period of time, an alarm is activated to notify that an abnormality due to ambient light has occurred.

アラームの起動により、ネジ整列装置は非常停止を行な
うとともに、異常が生じていることを知った作業者はネ
ジ整列装置のメンテナンスを行ない、外乱光の原因を取
り除くことになる。
Upon activation of the alarm, the screw aligning device makes an emergency stop, and an operator who knows that an abnormality has occurred performs maintenance on the screw aligning device to eliminate the cause of ambient light.

外乱光がないと判断した時の手順は以下の通りである。The procedure when it is determined that there is no ambient light is as follows.

《ステップ2′》 外乱光がない時には、エラーカウンタは再セットされ、
0に戻される。
<< Step 2 '>> When there is no ambient light, the error counter is reset,
It is set back to 0.

従って、外乱光がエラーカウンタにより設定された時間
よりも短い間侵入し、それから外乱光が一旦侵入しなく
なったとすると、エラーカウンタは再セットされるの
で、前回のカウント分は無効になる。よってネジ整列装
置に影響のない決められた時間よりも短い間の外乱光の
侵入によりアラームが起動することはない。
Therefore, if the ambient light enters for a shorter time than the time set by the error counter and then the ambient light does not enter again, the error counter is reset and the previous count is invalid. Therefore, the alarm is not triggered by the intrusion of ambient light for a time shorter than the predetermined time that does not affect the screw alignment device.

《ステップ3′》 次に受光があるか否か、すなわちレール途中にネジが存
在するか否かを判断する。ネジが存在しない場合には受
光があり、ネジ整列装置を作動させなければならない。
ネジが存在する場合には受光がなく、ネジ整列装置を作
動させる必要はない。
<< Step 3 '>> Next, it is determined whether or not light is received, that is, whether or not there is a screw in the middle of the rail. If there are no screws, there is a light reception and the screw aligner must be activated.
If the screw is present, there is no light reception and there is no need to activate the screw alignment device.

《ステップ4′》 受光ありの場合には、ネジ整列装置停止のディレイタイ
ムであるT2が再セットされ、同様に、受光なしの場合に
はネジ整列装置起動のディレイタイムであるT1が再セッ
トされる。
<Step 4 ′> When light is received, the delay time T2 for stopping the screw aligner is reset, and similarly, when there is no light, the delay time T1 for starting the screw aligner is reset. It

《ステップ5′》 受光ありの場合には、次にネジ整列装置起動のディレイ
タイムであるT1から1が引かれて更新される。受光なし
の場合にはT2から1が引かれて更新される。
<< Step 5 '>> When light is received, 1 is subtracted from T1 which is the delay time for starting the screw aligning device, and updated. When no light is received, 1 is subtracted from T2 and updated.

《ステップ6′》 更新したT1もしくはT2が0になっているか否かを判断す
る。0になっていなければ最初に戻る。
<< Step 6 '>> It is determined whether the updated T1 or T2 is zero. If it is not 0, it returns to the beginning.

《ステップ7′》 T1が0になった場合、ネジ整列装置が起動され、T2が0
になった場合ネジ整列装置は停止する。
<< Step 7 '>> When T1 becomes 0, the screw aligner is activated and T2 becomes 0.
If so, the screw aligner stops.

このように、本実施例の光電センサの制御システムによ
れば、外乱光の侵入がエラーカウンタが0になるまでア
ラームが起動しないので、例えば長時間に渡る外乱光の
影響でシュート位置にネジが送られているにも拘らずネ
ジが存在しないものと判断されたためにネジ供給装置が
作動を継続し、装置が破損してしまうような事故を防止
することができる。また、そのような事故や機器の損傷
の生じない程度の時間の外乱光の侵入に対しては、エラ
ーカウンタの設定により、ある一定時間以上外乱光を継
続して受光しなければ、アラームを起動させるなどの対
応を行なわないようになっている。
As described above, according to the photoelectric sensor control system of the present embodiment, since the alarm does not start until the error counter reaches 0 when the disturbance light enters, the screw is attached to the shooting position due to the influence of the disturbance light for a long time. It is possible to prevent an accident in which the screw supply device continues to operate and the device is damaged because it is determined that the screw does not exist despite being sent. In addition, if there is an incident of ambient light for a time that does not cause such an accident or damage to the equipment, an alarm is activated if the ambient light is not received continuously for a certain period of time by setting an error counter. It is designed not to take measures such as letting it happen.

よって機器の運転に影響を及ぼさないような短時間の外
乱光の侵入に対しては影響されず、長時間に渡る外乱光
に侵入のみに対応することができる。
Therefore, it is not affected by the intrusion of ambient light for a short time that does not affect the operation of the device, and only the invasion of ambient light for a long time can be dealt with.

以上本発明の実施例について説明したが、本発明は上記
実施例に限定されるものではなく、本発明の要旨の範囲
内において適宜変形実施可能であることは言うまでもな
い。
Although the embodiments of the present invention have been described above, it is needless to say that the present invention is not limited to the above embodiments and can be appropriately modified within the scope of the gist of the present invention.

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

第1図は本発明に係る光電センサの制御システムを具体
化したハード構成を示す回路ブロック図であり、第2図
は第1図の回路の各部分のデジタル信号を表わすタイミ
ングチャートであり、第3図は第1図の回路からの入力
に対する制御の流れを示すフローチャートであり、第4
図は従来の光電センサ装置の構成を示す回路ブロック図
であり、第5図は第4図の光電センサの出力を示す図で
ある。 1……発振回路、3……フォトダイオード、4……AND
回路、6……フリップフロップ、7……フォトトランジ
スタ、9……AND回路、10……モノマルチバイブレー
タ。
FIG. 1 is a circuit block diagram showing a hardware configuration embodying a control system of a photoelectric sensor according to the present invention, and FIG. 2 is a timing chart showing digital signals of respective portions of the circuit of FIG. FIG. 3 is a flow chart showing a control flow for an input from the circuit of FIG.
FIG. 5 is a circuit block diagram showing the configuration of a conventional photoelectric sensor device, and FIG. 5 is a diagram showing the output of the photoelectric sensor of FIG. 1 ... Oscillation circuit, 3 ... Photo diode, 4 ... AND
Circuit, 6 ... Flip-flop, 7 ... Phototransistor, 9 ... AND circuit, 10 ... Mono multivibrator.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】断続的に発光素子を発光させる発光パルス
信号と、該発光素子に対応する受光素子からの受光信号
とを比較して発光素子の非発光時に受光素子が受光して
いるか否かにより光電センサの受光素子に外乱光が入光
しているか否かを判断する過程と、受光素子に外乱光が
入光したと判断している状態が継続している間、外乱光
の入光時間をカウントする過程と、入光時間が一定の長
さに達した時に異常対応手段を起動させる過程とを含む
ことを特徴とする光電センサの制御方法。
1. A light emitting pulse signal for intermittently emitting a light emitting element and a light receiving signal from a light receiving element corresponding to the light emitting element are compared to determine whether or not the light receiving element is receiving light when the light emitting element is not emitting light. The process of determining whether the ambient light is incident on the light receiving element of the photoelectric sensor and the state that the ambient light is incident on the light receiving element continues for a while. A method of controlling a photoelectric sensor, comprising: a step of counting time; and a step of activating an abnormality handling means when a light incident time reaches a certain length.
【請求項2】断続的に発光素子を発光させる発光パルス
信号と、該発光素子に対応する受光素子からの受光信号
とを比較して発光素子の非発光時に受光素子が受光した
場合にエラー出力を行い、エラー出力数を計数して外乱
光の侵入を判定する光電センサの制御システム。
2. A light emitting pulse signal for intermittently emitting a light emitting element and a light receiving signal from a light receiving element corresponding to the light emitting element are compared to output an error when the light receiving element receives light when the light emitting element is not emitting light. The control system of the photoelectric sensor that determines the intrusion of ambient light by counting the number of error outputs.
JP13038490A 1990-05-22 1990-05-22 Photoelectric sensor control method and control system Expired - Lifetime JPH0687035B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13038490A JPH0687035B2 (en) 1990-05-22 1990-05-22 Photoelectric sensor control method and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13038490A JPH0687035B2 (en) 1990-05-22 1990-05-22 Photoelectric sensor control method and control system

Publications (2)

Publication Number Publication Date
JPH0425728A JPH0425728A (en) 1992-01-29
JPH0687035B2 true JPH0687035B2 (en) 1994-11-02

Family

ID=15033044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13038490A Expired - Lifetime JPH0687035B2 (en) 1990-05-22 1990-05-22 Photoelectric sensor control method and control system

Country Status (1)

Country Link
JP (1) JPH0687035B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107192495B (en) * 2017-07-04 2023-08-08 江苏大全凯帆电器股份有限公司 Intelligent screw fastening device

Also Published As

Publication number Publication date
JPH0425728A (en) 1992-01-29

Similar Documents

Publication Publication Date Title
US3825745A (en) Object detecting system
JPS59149000A (en) Apparatus for monitoring action of output converter of central controller/monitor for machining equipment
JPH0687035B2 (en) Photoelectric sensor control method and control system
JPS6158364B2 (en)
US4482237A (en) Device for detecting stop value data from flash unit used with camera
JPH04188455A (en) Tape-end detecting apparatus
JPH0530697U6 (en) Ambient light countermeasure circuit
JP2515136B2 (en) Reflective photoelectric detector
JP3347199B2 (en) Multi-optical axis photoelectric switch
JP3062265B2 (en) Photoelectric switch
KR930009344A (en) TV system protection method
JP3351901B2 (en) Photoelectric sensor
JPH04327416A (en) Abnormality detecting device for detector in carrier system
JPH0352916B2 (en)
SU391563A1 (en)
JPS57199057A (en) Error detecting device
GB1579020A (en) Machine guards
JP2516711B2 (en) Watchdog timer device
JPS5852519Y2 (en) photoelectric smoke detector
JPH05180952A (en) Photoelectric sensor
KR910008938Y1 (en) Automatic power on circuit
SU1241271A2 (en) Device for automatic accounting of visitors
JPH0352915B2 (en)
JPH04147085A (en) Photo sensor
JPH0936725A (en) Photoelectric sensor