JPH0425728A - Control method and control system for photoelectronic sensor - Google Patents

Control method and control system for photoelectronic sensor

Info

Publication number
JPH0425728A
JPH0425728A JP2130384A JP13038490A JPH0425728A JP H0425728 A JPH0425728 A JP H0425728A JP 2130384 A JP2130384 A JP 2130384A JP 13038490 A JP13038490 A JP 13038490A JP H0425728 A JPH0425728 A JP H0425728A
Authority
JP
Japan
Prior art keywords
light
circuit
output
inputted
photoelectric sensor
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
JP2130384A
Other languages
Japanese (ja)
Other versions
JPH0687035B2 (en
Inventor
Hajime Ishikawa
元 石川
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.)
Kanematsu NNK Corp
Original Assignee
Kanematsu NNK Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kanematsu NNK Corp filed Critical Kanematsu NNK Corp
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

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

PURPOSE:To flexibly cope with the influence of disturbing light by counting the incidence time of the disturbing light and actuating an abnormality correspondence means when the light incidence time reaches certain length. CONSTITUTION:The light emission pulse signal of an oscillation circuit 1 is inputted to an FF 6 through an amplifier 2, and a photodiode 3, an AND circuit 4, and further an inverter 5. The photodiode 3 illuminates intermittently accord ing to the light emission pulse signal and the optical axis of the photodiode 2 enters the phototransistor (FTR) 7. The output of the FTR 7 is inverted by an inverter 8 and inputted to the set side of the FF 6, and inputted to the reset side as it is. Further, the output is inverted and inputted to the AND circuit 4. Then the outputs of the AND circuit 4 and FF 6 are inputted to an AND circuit 9, whose output is inputted to a monostable multivibrator 10. The output of the AND circuit 4 and the output of the vibrator 10 are inputted to a controller. Consequently, the influence of the disturbing light is handled flexibly.

Description

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

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

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

同図において、光電センサ21は発光素子22と受光素
子23とからなり、発光素子22は光軸りを受光素子2
3に向けて発している。典型的には発光素子22はフォ
トダイオードであり、受光素子23はフォトトランジス
タである。
In the same figure, a photoelectric sensor 21 consists of a light emitting element 22 and a light receiving element 23, and the light emitting element 22 has an optical axis that is aligned with the light receiving element 2.
It is emitted towards 3. 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 an object exists 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,
Controller section 25 controls equipment 26 .

なお、一般に光電センサ21の発光素子22にはパルス
波が入力されて一定周期で断続的に点灯するようになっ
ており、アンプ部24はこのパルス波に同期するパルス
信号との比較により物体の存否を判断していた。
Generally, a pulse wave is input to the light emitting element 22 of the photoelectric sensor 21, and the light is turned on intermittently at a certain period, and the amplifier section 24 detects the object by comparing it with a pulse signal synchronized with this pulse wave. I was deciding whether or not it existed.

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

しかし、外乱光が入光している場合には、アンプ部24
には細かいデータ処理が不可能なため、(イ)が入力し
ているものと判断して同じ信号をコントローラ部25に
送ってしまい、外乱光の原因が西日の差し込みや機器内
への光の漏れ等であって長時間継続する場合にはその結
果機器26の損傷や事故が生じたりすることがある。
However, when disturbance light is incident, the amplifier section 24
Since it is not possible to process detailed data, it judges that (a) is being input and sends the same signal to the controller unit 25, indicating that the cause of the disturbance light is the setting sun or light entering the equipment. If the leakage continues for a long time, it may result in damage to the equipment 26 or an accident.

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

本発明の目的は、外乱光の影響に対してフレキシブルに
対応を行わせることが可能な光電センサの制御方法及び
制御システムを提供することにある。
An object of the present invention is to provide a photoelectric sensor control method and control system that can flexibly respond 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 process for determining whether or not disturbance light is incident on the light receiving element of a photoelectric sensor, and A process of counting the incident time of the disturbance light while the state in which it is determined that the disturbance light has entered the light continues, and a process of activating the abnormality response means when the large light time reaches a certain length. A control method for a photoelectric sensor was constructed including the following.

請求項2に記載の発明は、断続的に発光素子を発光させ
る発光パルス信号と、該発光素子に対応する受光素子か
らの受光信号とを比較して発光素子の非発光時に受光素
子が受光した場合にエラー出力を行い、エラー出力数を
計数して外乱光の侵入を判定するように光電センサの制
御システムを構成した。
The invention according to claim 2 compares a light emission pulse signal that causes a light emitting element to emit light intermittently and a light reception signal from a light receiving element corresponding to the light emitting element, and determines whether light is received by the light receiving element when the light emitting element is not emitting light. The control system for the photoelectric sensor was configured to output an error in the event of an error, count the number of error outputs, and determine the intrusion of disturbance light.

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

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

よって、請求項1に記載の発明に係る光電センサの制御
方法によると、外乱光が一定時間以上継続しない場合に
はアラームは起動せず、従って事故が生じたり機器が故
障したりするに至らない軽微な原因による短時間の外乱
光の侵入に対して過敏に対応す′ることなく、しかし被
制御機器の異常作動に基づくような長時間継続する外乱
光の侵入に対しては異常対応手段を起動させて事故や誤
作動を未然に防止することができる。カウントされる大
光時間の長さは適当に調整される。
Therefore, according to the method for controlling a photoelectric sensor according to the invention set forth in claim 1, if the disturbance light does not continue for a certain period of time or more, the alarm will not be activated, and therefore an accident or equipment failure will not occur. Rather than reacting too sensitively to the intrusion of disturbance light for a short period of time due to minor causes, it is necessary to take abnormal response measures against the intrusion of disturbance light that continues for a long time due to abnormal operation of controlled equipment. By starting the system, you can prevent accidents and malfunctions. The length of the great light time to be counted is adjusted appropriately.

本発明に係る光電センサの制御システムによれば、受光
信号は発光パルス信号と比較され、発光素子の非発光時
に受光素子が受光した場合にはエラー出力を行う。そし
てエラー出力数を計数し、ある一定の数に達した場合に
外乱光が侵入しているものと判定するようにした。
According to the control system for a photoelectric sensor according to the present invention, a light reception signal is compared with a light emission pulse signal, and if the light reception element receives 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 a certain number is reached, it is determined that disturbance light is intruding.

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

(実施例) 以下図示の実施例について説明する。(Example) The illustrated embodiment will be described below.

第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に入光する。
In the figure, 1 is an oscillation circuit which outputs a light emission pulse signal of a constant period. The light emission pulse signal of the oscillation circuit 1 is inputted to the photodiode 3 via the amplifier 2,
The signal is input to an AND circuit 4 and then to a flip-flop 6 via an inverter 5. The photodiode 3 is intermittently lit according to this light emission pulse signal, and the optical axis of the photodiode 2 enters the phototransistor 7 .

フォトトランジスタ7はフォトダイオード3がらの入光
に従い出力を行う。
The phototransistor 7 outputs an output according to the incident light from the photodiode 3.

フォトトランジスタ7の出力は、フリップフロップ6の
セット側に、インバータ8により反転されて入力され、
リセット側にそのまま入力される。また反転されてAN
D回路4に入力される。
The output of the phototransistor 7 is inverted and inputted to the set side of the flip-flop 6 by an inverter 8.
It is input as is to the reset side. It is also reversed AN
It is input to the D 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 an AND circuit 9, and the output of the AND circuit 9 is input to a mono multi-by-break 10. The pressure of the AND circuit 4 becomes the N output, and the output of the mono-multivibrator 10 becomes the Z output, which is input to a controller (not shown).

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

同図において、(イ)は入光のない場合、すなわちフォ
トダイオード3とフォトトランジスタ7との間に物体が
介在するために光軸りが遮光されている時の波形を示す
。この状態においては、発振回路1の発光パルス信号に
従い、フォトダイオードは断続的に光を発しているが、
光軸りが遮光されているためにフォトトランジスタ7に
は入光せず、従ってそのフォトトランジスタ7はOFF
のまま変化しない。よってCの受光信号出力はlのまま
である。
In the figure, (a) shows a waveform when no light is incident, that is, when an object is interposed between the photodiode 3 and the phototransistor 7, so that the optical axis is blocked. In this state, the photodiode emits light intermittently according to the light emission pulse signal of the oscillation circuit 1;
Since the optical axis is blocked, no light enters the phototransistor 7, so the phototransistor 7 is turned off.
It remains unchanged. Therefore, the light reception signal output of C remains at l.

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

(ロ)は入光のある場合、すなわちフォトダイオード3
とフォトトランジスタ7との間に光軸を遮る物が存在し
ない時の波形を示す。このとき、フォトトランジスタ7
はフォトダイオードの断続的な発光によりON、OFF
を繰り返し、受光信号出力dは発振回路1の発光パルス
信号aとは位相の逆転したパルス信号となる。これが反
転してAND回路4に入力すると、そのN出力は元のパ
ルス信号aと同相のパルス信号となる。
(b) is when there is incident light, that is, photodiode 3
The waveform is shown when there is nothing blocking the optical axis between the phototransistor 7 and the phototransistor 7. At this time, phototransistor 7
is turned on and off by intermittent light emission from the photodiode.
is repeated, and the light reception signal output d becomes a pulse signal whose phase is reversed from that of the light emission 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 that is in phase with the original pulse signal a.

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

(ハ)は入光エラーの場合、すなわち外乱光が入光して
いる場合である。このとき、フォトトランジスタ7はO
Nの状態が継続するので、受光信号Cは継続してOを示
す。
(C) is a case of a light entry error, that is, a case where disturbance light is incident. At this time, the phototransistor 7 is
Since the N state continues, the light reception signal C continues to indicate O.

よってAND回路4にはlが入力され、N出力gは(ロ
)の入光ありの時と同様、パルス信号となる。よって、
これだけでは入光ありの場合と外乱光が影響している場
合との区別をすることができない。
Therefore, l is input to the AND circuit 4, and the N output g becomes a pulse signal as in the case (b) when light is incident. Therefore,
With this alone, it is not possible to distinguish between cases where light is incident and cases where disturbance light is affecting.

そこで本発明においてはフリップフロップ6、AND回
路9及びモノマルチバイブレーク10を利用して2出力
を得るようにしている。
Therefore, in the present invention, a flip-flop 6, an AND circuit 9, and a mono multi-by-break 10 are used to obtain two outputs.

外乱光が入光した時には、フリップフロップ6には継続
したOがセット側に、継続した1がリセット側に人力す
る。クロックパルスとしてパルス信号が発振回路1から
反転して入力するので、NGクラッチETdは入光エラ
ー(ハ)の時パルス信号、その他の時は1を出力する。
When disturbance light enters, a continuous O is applied to the set side of the flip-flop 6, and a continuous 1 is applied to the reset side of the flip-flop 6. Since a pulse signal is inverted and input from the oscillation circuit 1 as a clock pulse, the NG clutch ETd outputs a pulse signal when there is a light input error (c), and outputs 1 at other times.

NGラッチRESeはその逆となる。フリップフロップ
6の圧力fは(イ)(ロ)の時0、(ハ)の時1となる
The NG latch RESe is the opposite. The pressure f of the flip-flop 6 is 0 in (a) and (b), and 1 in (c).

この圧力とAND回路4の出力との論理和をAND回路
9でとるとhのようになり、モノマルチバイブレーク1
0の出力2は第2図のiに示すように(イ)(ロ)の時
O1(ハ)の時1となる。
When the AND circuit 9 takes the logical sum of this pressure and the output of the AND circuit 4, it becomes h, and the mono multi-by-break 1
As shown at i in FIG. 2, the output 2 of 0 becomes 1 when O1 is (A) and (B) (C).

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

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

(ステップ1) まず、外乱光の有無を判断する。上述の例に従えば、2
出力がOで、N出力に1が人力した時に外乱光ありと判
断する。
(Step 1) First, the presence or absence of disturbance light is determined. Following the example above, 2
When the output is O and the N output is manually set to 1, it is determined that there is ambient light.

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

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

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

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

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

(ステップ2′) 外乱光がない時には、エラーカウンタは再セットされ、
0に戻される。
(Step 2') When there is no disturbance light, the error counter is reset,
Returned to 0.

従って、外乱光がエラーカウンタにより設定された時間
よりも短い間侵入し、それから外乱光が一旦侵入しな(
なったとすると、エラーカウンタは再セットされるので
、前回のカウント分は無効になる。よってネジ整列装置
に影響のない決められた時間よりも短い間の外乱光の侵
入によりアラームが起動することはない。
Therefore, the disturbance light enters for a shorter time than the time set by the error counter, and then the disturbance light stops entering (
If this occurs, the error counter will be reset and the previous count will become invalid. Therefore, an alarm will not be activated due to the intrusion of ambient light for a period shorter than a predetermined time period 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 is no screw present, there is light reception and the screw alignment device must be activated.

ネジが存在する場合には受光がなく、ネジ整列装置を作
動させる必要はない。
If a screw is present, no light is received and there is no need to activate the screw alignment device.

(ステップ4′) 受光ありの場合には、ネジ整列装置停止のデイレイタイ
ムであるT2が再セットされ。
(Step 4') If light is received, T2, which is the delay time for stopping the screw alignment device, is reset.

同様に、受光なしの場合にはネジ整列装置起動のデイレ
イタイムであるT1が再セットされる。
Similarly, when no light is received, T1, which is the delay time for starting the screw alignment device, is reset.

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

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

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

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

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

以上本発明の実施例について説明したが。The embodiments of the present invention have been described above.

本発明は上記実施例に限定されるものではなく、本発明
の要旨の範囲内において適宜変形実施可能であることは
言うまでもない。
It goes without saying that the present invention is not limited to the above-mentioned embodiments, and can be modified as appropriate within the scope of the gist of the present invention.

【図面の簡単な説明】[Brief explanation of the drawing]

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

Claims (2)

【特許請求の範囲】[Claims] (1)光電センサの受光素子に外乱光が入光しているか
否かを判断する過程と、受光素子に外乱光が入光したと
判断している状態が継続している間、外乱光の入光時間
をカウントする過程と、入光時間が一定の長さに達した
時に異常対応手段を起動させる過程とを含むことを特徴
とする光電センサの制御方法。
(1) During the process of determining whether or not ambient light has entered the light-receiving element of the photoelectric sensor, and while the state in which it is determined that ambient light has entered the light-receiving element continues, 1. A method of controlling a photoelectric sensor, comprising the steps of counting the light incident time and activating an abnormality response means when the light incident time reaches a certain length.
(2)断続的に発光素子を発光させる発光パルス信号と
、該発光素子に対応する受光素子からの受光信号とを比
較して発光素子の非発光時に受光素子が受光した場合に
エラー出力を行い、エラー出力数を計数して外乱光の侵
入を判定する光電センサの制御システム。
(2) Compares the light emitting pulse signal that causes the light emitting element to emit light intermittently and the light reception signal from the light receiving element corresponding to the light emitting element, and outputs an error if the light receiving element receives light while the light emitting element is not emitting light. , a photoelectric sensor control system that counts the number of error outputs and determines the intrusion of disturbance light.
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 true JPH0425728A (en) 1992-01-29
JPH0687035B2 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)

Cited By (1)

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

Cited By (2)

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

Also Published As

Publication number Publication date
JPH0687035B2 (en) 1994-11-02

Similar Documents

Publication Publication Date Title
US5148378A (en) Sensor controller system
US3970846A (en) Presence detecting system with self-checking
US4210226A (en) Elevator control apparatus
JPS59149000A (en) Apparatus for monitoring action of output converter of central controller/monitor for machining equipment
EP0707250A4 (en) Failure detection apparatus and method
JPH0425728A (en) Control method and control system for photoelectronic sensor
US4063085A (en) Method of and apparatus for electronic scanning
DE69223020D1 (en) Fault detection in a redundant duplex system
CA1176733A (en) Positioning control device
US5297149A (en) Emergency circuit for, e.g., numerical control unit
JPS6158364B2 (en)
JPH04188455A (en) tape end detection device
RU2090931C1 (en) Items counting system
GB1579020A (en) Machine guards
US10761505B2 (en) Safety controller and safety system
JPH05277854A (en) Screwing work managing device
JP3343307B2 (en) Home security equipment
SU1293761A1 (en) Device for checking blocks of buffer memory
JPS57199057A (en) Error detecting device
JPH04182211A (en) Malfunction detection of carrier detector
JPS57191762A (en) Abnormality detecting device
IT8303337A1 (en) FUNCTIONAL CONTROL SYSTEM FOR INPUT TRANSDUCERS OF A CENTRAL CONTROL AND COMMAND UNIT FOR MACHINES AND / OR DEVICES THAT CAN BE USED IN PRODUCTION LINES AND / OR PACKAGING OF PRODUCTS
JPS56157504A (en) Control device
JPH04327416A (en) Abnormality detecting device for detector in carrier system
JPH0277854A (en) Resetting system for microprocessor