Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0795101B2 - Function photoelectric switch - Google Patents
[go: Go Back, main page]

JPH0795101B2 - Function photoelectric switch - Google Patents

Function photoelectric switch

Info

Publication number
JPH0795101B2
JPH0795101B2 JP60254348A JP25434885A JPH0795101B2 JP H0795101 B2 JPH0795101 B2 JP H0795101B2 JP 60254348 A JP60254348 A JP 60254348A JP 25434885 A JP25434885 A JP 25434885A JP H0795101 B2 JPH0795101 B2 JP H0795101B2
Authority
JP
Japan
Prior art keywords
light
output signal
output
photoelectric switch
switch
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
JP60254348A
Other languages
Japanese (ja)
Other versions
JPS62113089A (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 JP60254348A priority Critical patent/JPH0795101B2/en
Publication of JPS62113089A publication Critical patent/JPS62113089A/en
Publication of JPH0795101B2 publication Critical patent/JPH0795101B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は光電スイッチに係り、特には、入光中の僅かの
遮光の無視、あるいは遮光中の僅かの入光の無視などを
任意に行う機能を備えた機能光電スイッチに関する。
Description: TECHNICAL FIELD The present invention relates to a photoelectric switch, and in particular, it arbitrarily ignores slight light blocking during light entering, or ignores slight light entering during light blocking. The present invention relates to a functional photoelectric switch having a function.

(従来の技術) 従来の光電スイッチは、主として、投光器と、この投光
器から照射された光を受光する受光器と、前記受光器の
出力を基準電圧と比較する比較器から構成されている。
(Prior Art) A conventional photoelectric switch mainly includes a light emitter, a light receiver for receiving the light emitted from the light emitter, and a comparator for comparing the output of the light receiver with a reference voltage.

このような光電スイッチでは、外乱光などの雑音の影響
により、比較器の出力信号中に雑音パルスを含むことが
ある。このような雑音パルスは、この光電スイッチが接
続される電気機器に誤動作を引き起こすおそれがあるか
ら、これを除去する必要がある。
In such a photoelectric switch, a noise pulse may be included in the output signal of the comparator due to the influence of noise such as ambient light. Such a noise pulse may cause a malfunction in an electric device to which the photoelectric switch is connected, so it is necessary to remove it.

また、雑音成分でなくとも、入光中の僅かの遮光を無視
したり、あるいは遮光中の僅かの入光を無視したい場合
もある。例えば、ある部品を、いわゆるパーツフィーダ
で搬送路に整列供給する場合などには、搬送路の適宜の
箇所に光電スイッチを設けて、搬送路における部品の有
無を検出している。そして、搬送路に一定以上の部品が
詰まっているときは、パーツフィーダを停止させて部品
の摩耗などを防止する一方、搬送路に一定以下の部品し
かない場合には、パーツフィーダを連続運転して搬送路
に部品を供給している。
In addition, even if it is not a noise component, there is a case where it is desired to ignore a slight light blocking during light entering, or to ignore a slight light entering during light blocking. For example, when a certain component is aligned and supplied to the transport path by a so-called parts feeder, a photoelectric switch is provided at an appropriate position of the transport path to detect the presence or absence of the component in the transport path. Then, when there are more than a certain number of parts in the transport path, the parts feeder is stopped to prevent wear of the parts, while when there are less than a certain number of parts in the transport path, the parts feeder is operated continuously. Supplies parts to the transport path.

後者の場合に、搬送路に供給されつつある部品が、その
搬送路途中に設けられた光電スイッチを横切るときに短
いパルス幅の出力信号が前記光電スイッチから出力され
る。しかし、この場合は部品の供給途中であるから、前
記出力信号によってはパーツフィーダを停止させたくな
い。もし、このような場合にも、パーツフィーダが停止
すると、搬送路に部品が通過するごとにパーツフィーダ
が停止、始動を繰り返すから、部品の供給が円滑に行な
われないばかりでなく、パーツフィーダの停止、始動に
伴う雑音が発生して、他の電気機器が誤動作を引き起こ
す原因にもなり不都合である。
In the latter case, an output signal having a short pulse width is output from the photoelectric switch when a component being supplied to the transport path crosses a photoelectric switch provided on the way of the transport path. However, in this case, since the parts are being supplied, it is not desirable to stop the parts feeder depending on the output signal. Even in such a case, when the parts feeder stops, the parts feeder stops and starts every time the parts pass through the transport path, so that not only the parts are not smoothly supplied, but also the parts feeder is stopped. Noise accompanying stop and start may cause malfunction of other electric devices, which is inconvenient.

そこで、光電スイッチの比較器の出力信号中に含まれる
雑音成分や、入光中の僅かの遮光を無視したり、あるい
は遮光中の僅かの入光を無視するために、次のような手
段が採られている。
Therefore, in order to ignore the noise component included in the output signal of the comparator of the photoelectric switch, the slight light blocking during the light reception, or the slight light input during the light blocking, the following means is provided. Has been taken.

第1には、このような光電スイッチが接続される電気機
器側に、雑音除去のためのフイルタをハード的に設置す
る手段がある。
Firstly, there is a means for installing a filter for removing noise in a hardware manner on the side of an electric device to which such a photoelectric switch is connected.

第2には、光電スイッチの出力信号を、電気機器の制御
部であるマイクロコンピュータに取り込む場合に、前記
出力信号中に含まれる雑音などをソフト的に取り除く手
段がある。
Secondly, there is a means for removing noise or the like contained in the output signal by software when the output signal of the photoelectric switch is taken into the microcomputer which is the control unit of the electric device.

(発明が解決しようとする問題点) しかしながら、前記第1の手段によれば、フイルタの定
数が固定されてしまうために、例えば、入光中に無視し
たい遮光の時間幅を変更する場合などには、その都度、
フイルタを作り直さなければならないという煩わしさが
ある。
(Problems to be Solved by the Invention) However, according to the first means, since the constant of the filter is fixed, for example, when changing the light-shielding time width to be ignored during light reception, etc. Each time,
There is the annoyance of having to recreate the filter.

また、第2の手段によれば、第1の手段を採る場合のよ
うな煩わしさは回避されるが、光電スイッチの出力信号
の処理に、この光電スイッチが接続される電気機器のマ
イクロコンピュータが占有されている間は、その電気機
器の本来の信号処理が出来なくなってその電気機器の制
御において不都合を来すことがある。
Further, according to the second means, the inconvenience of the first means is avoided, but the microcomputer of the electric device to which the photoelectric switch is connected is used for processing the output signal of the photoelectric switch. While occupied, the original signal processing of the electric device cannot be performed, which may cause inconvenience in control of the electric device.

本発明は、このような事情に鑑みてなされたものであっ
て、無視したい入光や遮光の時間幅を容易に設定変更す
ることができる機能光電スイッチを提供することを目的
としている。
The present invention has been made in view of such circumstances, and an object of the present invention is to provide a functional photoelectric switch capable of easily changing the setting of the time width of light reception or light shielding to be ignored.

また、本発明は、光電スイッチの出力信号の処理にあた
って、光電スイッチが接続される電気機器の制御部を占
有することがない機能光電スイッチを提供することも目
的としている。
Another object of the present invention is to provide a functional photoelectric switch that does not occupy the control unit of the electric device to which the photoelectric switch is connected in processing the output signal of the photoelectric switch.

(問題点を解決するための手段) 本発明は上記目的を達成するために、次のような特徴を
備えている。
(Means for Solving the Problems) The present invention has the following features in order to achieve the above object.

即ち、本発明に係る機能光電スイッチは、投光手段と、
前記投光手段から照射された光を受光検知する受光手段
と、前記受光手段の出力信号を基準電圧と比較する比較
手段と、前記比較手段の出力信号の処理手順を任意に選
択して設定する機能選択手段と、前記機能選択手段によ
り設定された処理手順で前記比較手段からの出力信号を
処理して出力する制御手段と、前記制御手段の出力信号
のワンショットパルス幅あるいは、ディレー時間を任意
に設定するタイマセット手段とを具備したことを特徴と
している。
That is, the functional photoelectric switch according to the present invention comprises a light projecting means,
A light receiving means for receiving and detecting the light emitted from the light emitting means, a comparing means for comparing the output signal of the light receiving means with a reference voltage, and a processing procedure of the output signal of the comparing means are arbitrarily selected and set. The function selecting means, the control means for processing and outputting the output signal from the comparing means by the processing procedure set by the function selecting means, and the one-shot pulse width or the delay time of the output signal of the controlling means are arbitrary. And a timer setting means for setting.

(実施例) 第1図は本発明の実施例に係る機能光電スイッチの外観
の概略図、第2図は第1図に示した機能光電スイッチの
構成の概略を示したブロック図である。
(Embodiment) FIG. 1 is a schematic view of the appearance of a functional photoelectric switch according to an embodiment of the present invention, and FIG. 2 is a block diagram showing the outline of the configuration of the functional photoelectric switch shown in FIG.

第1図において、1はスイッチ本体を示している。スイ
ッチ本体1は、第2図に示した構成の電気回路を備えて
いる。即ち、スイッチ本体1は、投光手段としての発光
ダイオード11と、前記発光ダイオード11から照射された
光を受光検知する受光手段としてのホトダイオード12と
を備えている。
In FIG. 1, reference numeral 1 indicates a switch body. The switch body 1 includes an electric circuit having the configuration shown in FIG. That is, the switch body 1 includes a light emitting diode 11 as a light projecting means, and a photodiode 12 as a light receiving means for detecting the light emitted from the light emitting diode 11.

前記発光ダイオード11は、投光回路13によって駆動され
る。また、前記ホトダイオード12の出力は、増幅比較回
路14の一方入力として与えられる。増幅比較回路14の他
方入力として、基準電圧源Vrefに接続された可変抵抗1
5によって分圧された基準電圧が与えられる。
The light emitting diode 11 is driven by a light projecting circuit 13. The output of the photodiode 12 is given as one input of the amplification / comparison circuit 14. As the other input of the amplification comparison circuit 14, the variable resistor 1 connected to the reference voltage source Vref
A reference voltage divided by 5 is given.

増幅比較回路14の出力信号は、この出力信号を処理する
制御手段としてのマイクロコンピュータ16に与えられ
る。このマイクロコンピュータ16に関連して、機能選択
スイッチSW1と、タイマセットスイッチSW2とが設けられ
ている。
The output signal of the amplification comparison circuit 14 is given to the microcomputer 16 as a control means for processing the output signal. A function selection switch SW1 and a timer set switch SW2 are provided in association with the microcomputer 16.

機能選択スイッチSW1は、前記増幅比較回路14の出力信
号の処理手順をマイクロコンピュータ16に指示する機能
選択手段に対応する。また、タイマセットスイッチSW2
は、前記増幅比較回路14の出力信号に関連して、マイク
ロコンピュータ16の出力信号のワンショットパルス幅あ
るいはディレー時間を任意に設定して前記マイクロコン
ピュータ16に指示するタイマセット手段に対応する。
The function selection switch SW1 corresponds to a function selection means for instructing the microcomputer 16 to process the output signal of the amplification comparison circuit 14. In addition, timer set switch SW2
Corresponds to timer setting means for arbitrarily setting the one-shot pulse width or the delay time of the output signal of the microcomputer 16 and instructing the microcomputer 16 in relation to the output signal of the amplification comparison circuit 14.

一方、スイッチ本体1には光ファイバ2の一端が取り付
けられている。前記光ファイバの一端は、発光ダイオー
ド11とホトダイオード12に光学的に結合している。発光
ダイオード11から照射された光は、この光ファイバ2を
伝送して、この光ファイバ2の他端から照射される。光
ファイバ2の他端は、被検出物体に関連して適宜に設置
される。この光ファイバ2から照射された光は、前記被
検出物体などによって反射され、さらに、この反射光は
光ファイバ2を伝送して、ホトダイオード12に入射す
る。
On the other hand, one end of an optical fiber 2 is attached to the switch body 1. One end of the optical fiber is optically coupled to the light emitting diode 11 and the photodiode 12. The light emitted from the light emitting diode 11 is transmitted through the optical fiber 2 and is emitted from the other end of the optical fiber 2. The other end of the optical fiber 2 is appropriately installed in relation to the detected object. The light emitted from the optical fiber 2 is reflected by the object to be detected, and the reflected light is transmitted through the optical fiber 2 and is incident on the photodiode 12.

なお、第1図に示した3は、可変抵抗器15の抵抗値調整
ネジであり、増幅比較回路14に与えられる基準電圧の設
定に使用される。また、同図に示す4は、マイクロコン
ピュータ16の出力信号を、図示しない電気機器に伝達す
るためのケーブルを示している。
Reference numeral 3 shown in FIG. 1 is a resistance value adjusting screw of the variable resistor 15, which is used for setting the reference voltage applied to the amplification comparison circuit 14. Reference numeral 4 shown in the figure denotes a cable for transmitting the output signal of the microcomputer 16 to an electric device (not shown).

次に、上述した構成を備えた機能光電スイッチの作用に
ついて説明する。
Next, the operation of the functional photoelectric switch having the above configuration will be described.

第3図〜第9図は、マイクロコンピュータ16の動作手順
を示したフローチャート、第10図〜第17図は各機能にお
ける増幅比較回路14の出力波形図とマイクロコンピュー
タ16の出力波形図を示している。
3 to 9 are flowcharts showing the operation procedure of the microcomputer 16, and FIGS. 10 to 17 show output waveform charts of the amplification comparison circuit 14 and output waveform charts of the microcomputer 16 in each function. There is.

まず、機能選択スイッチSW1の設定により、マイクロコ
ンピュータ16に、比較増幅回路14の出力信号の処理手順
が指示される。機能選択スイッチSW1は、4ビットのデ
ジタルスイッチによって構成されており、16種類の処理
手順を指示できるようになっている。本実施例では、8
種類の処理手順を指示している。
First, by setting the function selection switch SW1, the microcomputer 16 is instructed to process the output signal of the comparison and amplification circuit 14. The function selection switch SW1 is composed of a 4-bit digital switch and is capable of instructing 16 kinds of processing procedures. In this embodiment, 8
Instructing the kind of processing procedure.

さらに、タイマセットスイッチSW2にタイマセット時間
が適宜に設定される。タイマセットスイッチSW2は、4
ビットのデジタルスイッチから構成されており、下2桁
のスイッチの組み合わせにより、タイマセット時間の桁
(例えば、msec、10msec、100msec、1sec)を指示す
る。また、上2桁のスイッチの組み合わせにより、タイ
マセット時間の数値(例えば、1、2、3、4)を指示
する。
Further, the timer set time is appropriately set in the timer set switch SW2. Timer set switch SW2 is 4
It is composed of a bit digital switch, and indicates the digit (for example, msec, 10 msec, 100 msec, 1 sec) of the timer set time by the combination of the switches of the last two digits. In addition, a numerical value (for example, 1, 2, 3, 4) of the timer set time is instructed by the combination of the upper two digit switches.

以下、これらのスイッチによる指示が行なわれた後にお
けるマイクロコンピュータ16の信号処理手順を説明す
る。
Hereinafter, the signal processing procedure of the microcomputer 16 after the instruction by these switches is performed will be described.

第3図に示すように、マイクロコンピュータ16は、機能
選択スイッチSW1の状態を読み取る。
As shown in FIG. 3, the microcomputer 16 reads the state of the function selection switch SW1.

機能選択スイッチSW1が『0000』になっている場合は、
増幅比較回路14の出力信号をそのまま出力する手順の指
示を意味する。そこで、マイクロコンピュータ16は、第
4図に示すように、予め記憶している当該手順に従って
前記出力信号を処理する。即ち、入光が有るか否かの
判別を行い、入光があれば『H』を出力し、入光が
なければ『L』を出力する。そして、機能選択スイッチ
SW1の状態を読み取り、同様の信号処理手順を繰り返
す。その結果、第10図(a)に示すような比較増幅回路
14の出力信号(以下、比較出力信号という)が、第10図
(b)に示すようなマイクロコンピュータ16の出力信号
(以下、処理出力信号という)としてそのまま出力され
る。
If the function selection switch SW1 is set to "0000",
It means an instruction of a procedure for outputting the output signal of the amplification comparison circuit 14 as it is. Therefore, the microcomputer 16 processes the output signal in accordance with the procedure stored in advance as shown in FIG. That is, it is determined whether or not light is incident, and "H" is output if light is incident, and "L" is output if light is not incident. And the function selection switch
Read the status of SW1 and repeat the same signal processing procedure. As a result, the comparison and amplification circuit as shown in FIG.
The 14 output signals (hereinafter referred to as comparison output signals) are directly output as the output signals of the microcomputer 16 (hereinafter referred to as processing output signals) as shown in FIG. 10 (b).

機能選択スイッチSW1が『0001』になっている場合は、
比較出力信号を反転させて出力する処理手順の指示を意
味する。そこで、マイクロコンピュータ16は、第5図に
示すように、入光が有るか否かの判断を行い、入光
があれば『L』を出力し、入光がなければ『H』を出
力する。その結果、第11図(a)に示すような比較出力
信号に対して、第11図(b)に示すような反転した処理
出力信号が出力される。
If the function selection switch SW1 is set to "0001",
It means an instruction of a processing procedure for inverting and outputting the comparison output signal. Therefore, as shown in FIG. 5, the microcomputer 16 determines whether or not there is light incident, outputs “L” if light is incident, and outputs “H” if light is not incident. . As a result, an inverted processed output signal as shown in FIG. 11 (b) is output with respect to the comparison output signal as shown in FIG. 11 (a).

機能選択スイッチSW1が『0010』になっている場合は、
入光があったときにワンショット『H』出力を与える手
順の指示を意味する。そこで、マイクロコンピュータ16
は、第6図に示すように、入光があるか否かの判断を
行う。入光があるとタイマセットスイッチSW2の指示
を読んで、タイマをセットする。そして、『H』を出
力し、タイマが終了するまでこの状態を維持する。
タイマが終了すると『L』を出力する。入光が続く限
り、前記『L』状態が維持される。一方、入光がなくな
ると、再び、機能選択スイッチSW1の状態読み取りが行
なわれる。その結果、第12図(a)に示した比較出力信
号が、第12図(b)に示したような処理出力信号として
出力される。第12図より明らかなように、比較出力信号
の立ち上がりからタイマセット時間内に現れるパルス波
形は無視されることになる。
If the function selection switch SW1 is "0010",
It means the instruction of the procedure to give a one-shot “H” output when there is light incident. Therefore, the microcomputer 16
Determines whether or not light is incident, as shown in FIG. When light is received, read the instruction of the timer set switch SW2 and set the timer. Then, "H" is output and this state is maintained until the timer expires.
When the timer expires, "L" is output. The "L" state is maintained as long as the light continues to enter. On the other hand, when there is no light incident, the state of the function selection switch SW1 is read again. As a result, the comparison output signal shown in FIG. 12 (a) is output as the processed output signal as shown in FIG. 12 (b). As is clear from FIG. 12, the pulse waveform appearing within the timer set time from the rising of the comparison output signal is ignored.

機能選択スイッチSW1が『0011』になっている場合は、
遮光されたときにワンショット『H』出力を与える手順
の指示を意味する。そこで、マイクロコンピュータ16
は、第7図に示すように、入光があるか否かの判断を
行う。遮光されるとタイマセットスイッチSW2の指示
を読んで、タイマをセットする。そして、『H』を出
力し、タイマが終了するまでこの状態を維持する。
タイマが終了すると『L』を出力する。遮光が続く限
り、前記『L』状態が維持される。一方、入光がある
と、再び、機能選択スイッチSW1の状態読み取りが行な
われる。その結果、第13図(a)に示した比較出力信号
が、第13図(b)に示したような処理出力信号として出
力される。第13図より明らかなように、比較出力信号の
立ち下がりからタイマセット時間内に現れるハルス波形
は無視されることになる。
If the function selection switch SW1 is set to "0011",
It means the instruction of the procedure to give a one-shot “H” output when shielded from light. Therefore, the microcomputer 16
Determines whether or not light is incident, as shown in FIG. When the light is blocked, read the instruction of the timer set switch SW2 and set the timer. Then, "H" is output and this state is maintained until the timer expires.
When the timer expires, "L" is output. The "L" state is maintained as long as the light is blocked. On the other hand, when light is incident, the state of the function selection switch SW1 is read again. As a result, the comparison output signal shown in FIG. 13 (a) is output as the processed output signal as shown in FIG. 13 (b). As is clear from FIG. 13, the Hals waveform appearing within the timer set time from the fall of the comparison output signal is ignored.

一方、機能選択スイッチSW1が『0100』になっている場
合は、入光されたときにワンショット『L』出力を与え
る手順の指示を意味する。この指示に基づく、マイクロ
コンピュータ16の処理手順は、第6図とほぼ同様にな
る。ただし、同図におけるステップで『L』出力、ス
テップで『H』出力となる。このときの比較出力信号
を第14図(a)に、処理出力信号を第14図(b)に示
す。
On the other hand, when the function selection switch SW1 is set to "0100", it means the instruction of the procedure to give the one-shot "L" output when the light is incident. The processing procedure of the microcomputer 16 based on this instruction is almost the same as that in FIG. However, "L" is output at the step in the figure and "H" is output at the step. The comparison output signal at this time is shown in FIG. 14 (a), and the processed output signal is shown in FIG. 14 (b).

また、機能選択スイッチSW1が『0101』になっている場
合は、遮光されたときにワンショット『L』出力を与え
る手順の指示を意味する。この指示に基づく、マイクロ
コンピュータ16の処理手順は、第7図とほぼ同様に示さ
れる。ただし、ステップにおいて『L』出力、ステッ
プにおいて『H』出力となる。このときの比較出力信
号を第15図(a)に、処理出力信号を第15図(b)に示
す。
Further, when the function selection switch SW1 is "0101", it means the instruction of the procedure to give the one-shot "L" output when the light is shielded. The processing procedure of the microcomputer 16 based on this instruction is shown almost in the same manner as in FIG. However, "L" is output at step and "H" is output at step. The comparison output signal at this time is shown in FIG. 15 (a), and the processed output signal is shown in FIG. 15 (b).

機能選択スイッチSW1が『0110』になっている場合は、
一瞬の入光を無視する手順の指示を意味する。そこで、
マイクロコンピュータ16は、第8図に示すように、ま
ず、入光があるか否かの判断を行う。入光されると、
タイマスイッチSW2の指示を読み取って、タイマをセッ
トする。このときのタイマセット時間は、無視したい遮
光時間に関連して予め適宜に定められる。そして、タ
イマセット時間が終了したか否かの判断を行う。タイ
マセット時間が終了すると『H』が出力される。入光
している間、前記『H』状態が維持され、遮光状態に
なると『L』が出力される。その結果、第16図(a)に
示すような比較出力信号における一瞬の入光が無視され
て、第16図(b)に示すような処理出力信号が出力され
る。
If the function selection switch SW1 is "0110",
It means the instruction of the procedure to ignore the momentary incoming light. Therefore,
As shown in FIG. 8, the microcomputer 16 first determines whether or not there is light incident. When light enters,
Read the instruction from the timer switch SW2 and set the timer. The timer set time at this time is appropriately determined in advance in relation to the light-shielding time to be ignored. Then, it is determined whether or not the timer set time has expired. When the timer set time ends, "H" is output. The "H" state is maintained while light is entering, and "L" is output when the light is blocked. As a result, the momentary incident light in the comparison output signal as shown in FIG. 16 (a) is ignored, and the processed output signal as shown in FIG. 16 (b) is output.

機能選択スイッチSW1が『0111』になっている場合は、
一瞬の遮光を無視する手順の指示を意味する。そこで、
マイクロコンピュータ17は、第9図に示すように、入
光があるか否かの判断をし、入光があると『H』を出
力する。次に、タイマセット時間が読み取られ、再
び、入光があるか否かの判断がされる。入光されている
時間は、ステップにもどり、前記『H』状態が維持さ
れる。遮光されるとタイマセット時間が終了している
か否かが判断される。タイマセット時間が終了していな
い場合は、ステップにもどる。タイマセット時間が
終了すると、『L』が出力される。その結果、第17図
(a)に示す比較出力信号における一瞬の遮光が無視さ
れて、第17図(b)に示すような処理出力信号が出力さ
れる。
If the function selection switch SW1 is "0111",
It means the instruction of the procedure to ignore the momentary shading. Therefore,
As shown in FIG. 9, the microcomputer 17 determines whether or not light is incident, and outputs "H" when light is incident. Next, the timer set time is read, and it is judged again whether or not there is light incident. The time during which the light is incident returns to the step, and the "H" state is maintained. When the light is shielded, it is determined whether or not the timer set time has expired. If the timer set time has not expired, return to step. When the timer set time ends, "L" is output. As a result, the momentary shading in the comparison output signal shown in FIG. 17 (a) is ignored, and the processed output signal as shown in FIG. 17 (b) is output.

なお、実施例の説明では、8種類の比較出力信号の処理
について説明したが、本発明はこれに限られるものでは
ない。例えば、第8図及び第9図では入光によって
『H』を出力する場合を例に採って説明したが、これは
逆出力を与えるものであってもよい。また、第8図に示
す手順は、いわゆるオンディレー機能であり、第9図に
示す手順は、いわゆるオフディレー機能であるが、この
ようなオン・オフ両デイレーを組み合わせて比較出力信
号を処理することも可能である。
In the description of the embodiments, the processing of eight types of comparison output signals has been described, but the present invention is not limited to this. For example, in FIGS. 8 and 9, the case where "H" is output by the incident light has been described as an example, but this may give a reverse output. The procedure shown in FIG. 8 is a so-called on-delay function, and the procedure shown in FIG. 9 is a so-called off-delay function. The comparison output signal is processed by combining both such on-off delays. It is also possible.

(効果) 以上の説明より明らかなように、本発明に係る機能光電
スイッチは、機能選択手段とタイマセット手段とに指示
された手順に従って、比較手段の出力信号の処理をこの
機能光電スイッチに含まれる制御部が行っている。した
がって、本発明によれば、無視したい入光や遮光の時間
幅を変更する場合などに、これに応じた比較手段の出力
信号の処理手順の変更設定を、前記機能選択手段とタイ
マセット手段の指示の変更によって容易に行うことがで
きるので、フィルタ回路を作り直していた従来と比較し
て、たいへん便利になるうえ、遮光時間幅の設定や処理
手順の変更等を伴う検出物の変更にも容易に対応するこ
とができるようになった。
(Effect) As is apparent from the above description, the functional photoelectric switch according to the present invention includes the processing of the output signal of the comparing unit in the functional photoelectric switch according to the procedure instructed by the function selecting unit and the timer setting unit. The control unit is doing this. Therefore, according to the present invention, when changing the time width of light input or light blocking to be ignored, the change setting of the processing procedure of the output signal of the comparing means corresponding to this is set by the function selecting means and the timer setting means. Since it can be easily done by changing the instruction, it is much more convenient compared to the conventional method where the filter circuit was recreated, and it is also easy to change the detected object such as setting the light shielding time width and changing the processing procedure. Can now correspond to.

さらに、本発明に係る機能光電スイッチは、比較手段の
出力信号を指示された手順にしたがって処理する制御部
を備えているから、前記出力信号の処理に当たって、こ
の光電スイッチが接続される電気機器の制御部を占有す
ることがない。したがって、本発明によれば、光電スイ
ッチが接続される電気機器の制御部の利用効率が向上
し、当該電気機器の本来の制御を行う上で好都合であ
る。
Furthermore, since the functional photoelectric switch according to the present invention includes the control unit that processes the output signal of the comparison unit according to the instructed procedure, in processing the output signal, the electrical device to which the photoelectric switch is connected is processed. Does not occupy the control unit. Therefore, according to the present invention, the utilization efficiency of the control unit of the electric device to which the photoelectric switch is connected is improved, which is convenient for performing the original control of the electric device.

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

第1図は実施例に係る機能光電スイッチの外観図、第2
図は第1図に示した機能光電スイッチの構成を示したブ
ロック図、第3図〜第9図は実施例に係る光電スイッチ
の比較出力信号の処理手順を示すフローチャート、第10
図〜第17図は各信号処理における比較出力信号と処理出
力信号の動作波形図である。 11……発光ダイオード、12……ホトダイオード、13……
投光回路、14……比較増幅回路、15……可変抵抗器、16
……マイクロコンピュータ。SW1……機能選択スイッ
チ、SW2……タイマセットスイッチ。
FIG. 1 is an external view of a functional photoelectric switch according to an embodiment, FIG.
FIG. 10 is a block diagram showing the configuration of the functional photoelectric switch shown in FIG. 1, FIGS. 3 to 9 are flowcharts showing the processing procedure of the comparative output signal of the photoelectric switch according to the embodiment, and FIG.
FIG. 17 to FIG. 17 are operation waveform diagrams of the comparison output signal and the processed output signal in each signal processing. 11 …… Light emitting diode, 12 …… Photodiode, 13 ……
Emitter circuit, 14 …… Comparison amplifier circuit, 15 …… Variable resistor, 16
…… Microcomputer. SW1 …… Function selection switch, SW2 …… Timer set switch.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】投光手段と、 前記投光手段から照射された光を受光検知する受光手段
と、 前記受光手段の出力信号を基準電圧と比較する比較手段
と、 前記比較手段の出力信号の処理手順を任意に選択して設
定する機能選択手段と、 前記機能選択手段により設定された処理手順で前記比較
手段からの出力信号を処理して出力する制御手段と、 前記制御手段の出力信号のワンショットパルス幅、ある
いはディレー時間を任意に設定するタイマセット手段と
を具備したことを特徴とする機能光電スイッチ。
1. A light projecting means, a light receiving means for receiving and detecting light emitted from the light projecting means, a comparing means for comparing an output signal of the light receiving means with a reference voltage, and an output signal of the comparing means. A function selecting means for arbitrarily selecting and setting a processing procedure, a control means for processing and outputting an output signal from the comparing means by the processing procedure set by the function selecting means, and an output signal of the control means. A functional photoelectric switch comprising a timer setting means for arbitrarily setting a one-shot pulse width or a delay time.
JP60254348A 1985-11-13 1985-11-13 Function photoelectric switch Expired - Lifetime JPH0795101B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60254348A JPH0795101B2 (en) 1985-11-13 1985-11-13 Function photoelectric switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60254348A JPH0795101B2 (en) 1985-11-13 1985-11-13 Function photoelectric switch

Publications (2)

Publication Number Publication Date
JPS62113089A JPS62113089A (en) 1987-05-23
JPH0795101B2 true JPH0795101B2 (en) 1995-10-11

Family

ID=17263743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60254348A Expired - Lifetime JPH0795101B2 (en) 1985-11-13 1985-11-13 Function photoelectric switch

Country Status (1)

Country Link
JP (1) JPH0795101B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014133184A1 (en) * 2013-03-01 2014-09-04 三菱レイヨン株式会社 Method for detecting defect in porous membrane, and defect inspection device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0736305Y2 (en) * 1988-10-03 1995-08-16 竹中エンジニアリング工業株式会社 Moving object detector

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5488159A (en) * 1977-12-26 1979-07-13 Kayaba Industry Co Ltd Detecting circuit of body
JPS59195179A (en) * 1983-04-20 1984-11-06 Uro Denshi Kogyo Kk Alarming device for intruder
JPS60129743U (en) * 1984-02-08 1985-08-30 オムロン株式会社 Combination unit for modulated light type photoelectric switch

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014133184A1 (en) * 2013-03-01 2014-09-04 三菱レイヨン株式会社 Method for detecting defect in porous membrane, and defect inspection device
JPWO2014133184A1 (en) * 2013-03-01 2017-02-09 三菱レイヨン株式会社 Porous film defect detection method and defect inspection apparatus

Also Published As

Publication number Publication date
JPS62113089A (en) 1987-05-23

Similar Documents

Publication Publication Date Title
US4935733A (en) Remote controlled switch
EP0356123A3 (en) Control circuit for a video camera
US4851689A (en) Photodetecting circuit
EP0393664A3 (en) User programmable switching arrangement
JPS6437134A (en) Optical regenerator for locating fault in optical transmission system
AU3804793A (en) Optical receiver
JPH0795101B2 (en) Function photoelectric switch
ATE166197T1 (en) INTEGRATED SUBSCRIBE LINE INTERFACE SWITCH WITH SLOW POLARITY SWITCH
JPS6377171A (en) Optical receiver
US5047765A (en) Remote controlled switch
JP2772452B2 (en) Multi-optical axis photoelectric switch
JPS6465624A (en) Optical type coordinate input device
JPS63105541A (en) Optical receiver
CA2121610A1 (en) Image Scanning Device
GB2286920B (en) An optical transmitter having an APC circuit with automatic bias current control
KR200189859Y1 (en) Switching controller operating with laser
JPS63151205A (en) Optical receiving circuit
JPH08321806A (en) Light receiving device for optical remote operation device
JPH0444478B2 (en)
JPH0537551Y2 (en)
JPH0727744Y2 (en) Magnetic recording / reproducing device
JPS62123841A (en) Optical transmission output control method
KR940002619B1 (en) Apparatus for interface laser machine and cnc
JP3328954B2 (en) Photoelectric switch and method for setting sensitivity of photoelectric switch
KR940004471B1 (en) Music signal automatic switching circuit