JPH0587522A - Signal-detection device - Google Patents

Signal-detection device

Info

Publication number
JPH0587522A
JPH0587522A JP9111491A JP9111491A JPH0587522A JP H0587522 A JPH0587522 A JP H0587522A JP 9111491 A JP9111491 A JP 9111491A JP 9111491 A JP9111491 A JP 9111491A JP H0587522 A JPH0587522 A JP H0587522A
Authority
JP
Japan
Prior art keywords
output
shift register
noise
signal
object exists
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.)
Pending
Application number
JP9111491A
Other languages
Japanese (ja)
Inventor
Nobuyuki Tatsumi
信之 龍見
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.)
Shimadzu Corp
Original Assignee
Shimadzu 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 Shimadzu Corp filed Critical Shimadzu Corp
Priority to JP9111491A priority Critical patent/JPH0587522A/en
Publication of JPH0587522A publication Critical patent/JPH0587522A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

PURPOSE:To prevent malfunction of an object-detection device due to noise. CONSTITUTION:An output of a sensor 2 which detects an object is converted to a binary signal indicating whether the object exists or not, is input to a shift register 5 which is shifted by a certain clock, and then it is determined that the object exists when the number of data indicating that the object exists among parallel outputs of the shift register exceeds a specified number, thus enabling it to be judged whether the object exists or not with a certain width of confirmation time for improved resistance against noise.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はホトセンサ等を用いた物
体位置検出装置等におけるセンサ等の出力信号の検出装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an output signal detecting device for a sensor or the like in an object position detecting device or the like using a photo sensor or the like.

【0002】[0002]

【従来の技術】物体の位置をホトセンサを用いて検出す
るには、物体の通過軌跡に沿ってホトセンサを配置し、
物体によりホトセンサへの光の入射が遮断されるのを検
出する。従来はホトセンサ出力のノイズによる誤動作を
避けるため、ホトセンサの出力が物体在りのレベルにな
っても直ちに物体在りと判定せず、物体在りの信号レベ
ルが一定時間以上例えば数100μs乃至数msの間継
続したことを確認して物体在りと判定するようにしてい
た。
2. Description of the Related Art In order to detect the position of an object using a photo sensor, the photo sensor is arranged along the passage of the object,
It is detected that an object blocks light from entering the photo sensor. Conventionally, in order to avoid malfunction due to noise from the photo sensor output, even if the photo sensor output reaches the level of the object, it is not immediately determined that the object is present, and the signal level of the object continues for a certain time or longer, for example, for several 100 μs to several ms. After confirming that it was done, it was determined that there was an object.

【0003】上述したような構成によると、ホトセンサ
出力が物体在りのレベルになった時点から確認時間の間
にノイズにより一時的にホトセンサ出力が物体なしのレ
ベルになると、始めの確認時間は御破算になり、ノイズ
が消えた時点から確認時間がスタートする。このためノ
イズが多いときは、物体が既に存在しているのに、物体
在りの判定が下される時点は段々ずれて来て装置の誤動
作を招く。逆にこのような誤動作を避けるため確認時間
を短くすると、ホトセンサの出力がノイズ等によりこの
確認時間より長い時間物体在りのレベルになって、物体
在りと誤認する危険が増大してくる。
According to the above-mentioned configuration, if the photosensor output temporarily becomes the level of no object due to noise during the confirmation time from the time when the photosensor output becomes the level of the object, the initial confirmation time is broken. The confirmation time starts from the moment the noise disappears. For this reason, when there is a lot of noise, although the object already exists, the time point at which it is determined that there is an object gradually shifts, causing a malfunction of the device. On the contrary, if the confirmation time is shortened to avoid such a malfunction, the output of the photosensor will be at the level of the object existing for a longer time than the confirmation time due to noise or the like, and the risk of misidentifying the existence of the object increases.

【0004】[0004]

【発明が解決しようとする課題】本発明はホトセンサに
よる物体位置検出において、上述したようなノイズ等に
よる誤判定を回避することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to avoid erroneous determination due to noise or the like as described above when detecting an object position by a photo sensor.

【0005】[0005]

【課題を解決するための手段】ホトセンサ等の出力が判
定レベル以上か以下に応じた一定値を一定のクロックパ
ルスでシフトせしめられるシフトレジスタに入力し、こ
のシフトレジスタの並列出力で物体ありの信号を記録し
ているビット数が或る値以上或は以下であるとき物体在
りと判定するようにした。
Means for Solving the Problems A fixed value corresponding to the output of a photosensor or the like which is above or below a judgment level is input to a shift register which can be shifted by a fixed clock pulse, and a parallel output of this shift register is used to output a signal indicating that an object exists. When the number of recorded bits is above or below a certain value, it is determined that there is an object.

【0006】[0006]

【作用】今ホトセンサの出力の物体在りに対応する数値
を1、なしに対応する数値を0とし、このデータを一定
周期のクロックでシフトされているシフトレジスタに書
き込んでいると、シフトレジスタのビット数をnとする
とき、シフトレジスタの並列出力は現時点から過去nク
ロック分の期間のホトセンサの出力状態の記録を表して
いる。仮にノイズがない場合で、物体在りの場合、シフ
トレジスタの並列出力はn桁全部1となっている。こゝ
で確認時間内に2クロックパルス幅のノイズが入ったと
すると、シフトレジスタの並列出力は1がn−2個、0
が2個となっている。そこで1の個数が何個以上の場合
物体在りと判定する。確認時間の更新はノイズとかホト
センサの出力の立上り、立下りとは無関係にシフトレジ
スタのクロックパルスの周期で行われており、従ってノ
イズが途中に入っても、そのため確認がおくれると云う
ことがなくなる。
Now, assuming that the value corresponding to the existence of an object in the output of the photosensor is 1, and the value corresponding to the absence is 0, and this data is written in the shift register which is shifted by the clock of a constant cycle, the bit of the shift register is changed. When the number is n, the parallel output of the shift register represents a record of the output state of the photosensor from the present time to the past n clocks. If there is no noise and there is an object, the parallel output of the shift register is 1 for all n digits. If noise of 2 clock pulse width is entered within the confirmation time, the parallel output of the shift register is n-2 1 and 0.
Is 2. Therefore, when the number of 1 is more than one, it is determined that an object exists. The confirmation time is updated at the cycle of the clock pulse of the shift register regardless of the noise or the rise and fall of the photosensor output, so even if noise enters the middle, the confirmation is delayed. Disappear.

【0007】[0007]

【実施例】図1に本発明の一実施例を示す。図で1は検
出すべき物体、2はホトセンサ、3は光源でホトセンサ
2と光源3の間を物体1が通るようになっている。4は
コンパレータでホトセンサ出力を基準レベルと比較し、
基準レベル以下のとき信号“1”を出力する。5は8ビ
ットシフトレジスタでクロックパルス発生器6から出力
される1ms周期のクロックによりシフトされ、コンパ
レータ4の出力を読込んでいる。従ってレジスタ5には
常に現時点から過去8msの間のホトセンサ3の出力状
態が保持されている。このレジスタ5の並列出力が判定
回路7に入力され、シフトレジスタ5の各ビットのうち
出力が1であるものが何個か数えられ、それが基準値以
上である場合、判定回路7から物体在りの信号が発信さ
れる。
FIG. 1 shows an embodiment of the present invention. In the figure, 1 is an object to be detected, 2 is a photo sensor, 3 is a light source, and the object 1 passes between the photo sensor 2 and the light source 3. 4 is a comparator for comparing the photo sensor output with a reference level,
When it is below the reference level, the signal "1" is output. Reference numeral 5 is an 8-bit shift register, which is shifted by the clock of 1 ms period output from the clock pulse generator 6 and reads the output of the comparator 4. Therefore, the register 5 always holds the output state of the photo sensor 3 for the past 8 ms from the present time. The parallel output of the register 5 is input to the determination circuit 7, and some of the bits of the shift register 5 whose output is 1 are counted. If the number is equal to or more than the reference value, the determination circuit 7 determines that an object exists. Is transmitted.

【0008】上述した判定は1ms毎に行う。判定はコ
ンピュータによりソフト的に行うこともできるが、ハー
ド的にも行えるもので、図2に上記判定回路の一例を示
す。シフトレジスタ5の各ビット出力はアンド回路A1
〜A8を通してカウンタCに入力される。アンド回路A
1〜A8はシフトレジスタRの各ビットの出力がゲート
パルスとして入力される。シフトレジスタはリングレジ
スタになっており、装置始動の際第1桁に“1”が書き
込まれ、以後この“1”のデータがレジスタ内を循環し
ている。このシフトレジスタRは1msの1/8の周期
のクロックでシフトされており、レジスタ5の内容が書
き代えられる1msの間に一循して、アンドゲートA1
〜A8を順に開いて行く。そしてA1〜A8の出力が順
次カウンタCに入力されて行くので、カウンタCは1m
s周期でシフトレジスタ5内の“1”のビット数を数計
していることになる。この計数値が比較器Kで基準数6
と比較され、計数値が6以上のとき、比較器Kから物体
在りの信号が発信されることになる。8は基準クロック
発生器でその周期をクロックパルス発生器6で1/8に
分周したものがシフトパルスとしてレジスタ5に印加さ
れている。
The above-mentioned determination is performed every 1 ms. The determination can be performed by software using a computer, but can also be performed by hardware, and an example of the determination circuit is shown in FIG. Each bit output of the shift register 5 is an AND circuit A1.
Is input to the counter C through A8. AND circuit A
In 1 to A8, the output of each bit of the shift register R is input as a gate pulse. The shift register is a ring register, and "1" is written in the first digit when the apparatus is started, and thereafter, the data of "1" is circulated in the register. The shift register R is shifted by a clock having a period of 1/8 of 1 ms, and the contents of the register 5 are rewritten once during 1 ms, and the AND gate A1
Open A8 in order. Then, the outputs of A1 to A8 are sequentially input to the counter C, so that the counter C is 1 m.
This means that the number of "1" bits in the shift register 5 is counted every s period. This count value is the reference number 6 in the comparator K.
When the count value is 6 or more, the comparator K outputs a signal that an object is present. Reference numeral 8 is a reference clock generator whose frequency is divided by 1/8 by the clock pulse generator 6 and is applied to the register 5 as a shift pulse.

【0009】[0009]

【発明の効果】図3で本発明の効果を説明する。この図
でAはコンパレータ4(ホトセンサの出力を基準レベル
と比較したもの)の出力でハイレベルが物体在りの検出
信号である。図で時間軸の1目盛はmsで、物体検知信
号が出てから3目盛時間後に2目盛分のノイズがあっ
た。本発明の場合時刻tから8目盛時間即ち8ms後カ
ウンタKの計数出力は6となりTの時点で物体在りの信
号が発信される。従来例ではt’の時点で確認時間は御
破算になり、dの時点から確認時間が再開されるので、
本発明より物体在りの判定が遅れる。本発明ではこのよ
うなおくれはなくなる。
The effect of the present invention will be described with reference to FIG. In this figure, A is the output of the comparator 4 (comparing the output of the photo sensor with the reference level), and the high level is the detection signal of the presence of an object. In the figure, one graduation on the time axis is ms, and there was noise for two graduations three graduations after the object detection signal was output. In the case of the present invention, the count output of the counter K becomes 6 after 8 graduation time, that is, 8 ms from the time t, and at the time of T, the signal of the existence of the object is transmitted. In the conventional example, the confirmation time is broken at the time t ', and the confirmation time is restarted from the time d,
The determination of the existence of an object is delayed as compared with the present invention. The present invention eliminates such a delay.

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

【図1】 本発明の一実施例の全体の回路図FIG. 1 is an overall circuit diagram of an embodiment of the present invention.

【図2】 上記における判定回路の回路図FIG. 2 is a circuit diagram of the determination circuit described above.

【図3】 本発明の効果説明図1 物体 2 ホトセンサ 5 シフトレジスタ 7 判定回路FIG. 3 is a diagram for explaining the effects of the present invention. 1 Object 2 Photosensor 5 Shift register 7 Judgment circuit

Claims (1)

【特許請求の範囲】[Claims] センサの出力を信号の有無に応じて二値化し一定クロッ
クでシフトされるシフトレジスタに入力し、このシフト
レジスタの並列出力中、信号在りの信号の個数が所定数
以上であるとき信号在りとする判定手段を設けたことを
特徴とする信号検出装置。
The sensor output is binarized according to the presence / absence of a signal and input to a shift register that is shifted with a constant clock, and when the number of signals present in the shift register parallel output is greater than or equal to a predetermined number, the signal is present. A signal detecting device, characterized in that a judging means is provided.
JP9111491A 1991-03-28 1991-03-28 Signal-detection device Pending JPH0587522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9111491A JPH0587522A (en) 1991-03-28 1991-03-28 Signal-detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9111491A JPH0587522A (en) 1991-03-28 1991-03-28 Signal-detection device

Publications (1)

Publication Number Publication Date
JPH0587522A true JPH0587522A (en) 1993-04-06

Family

ID=14017493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9111491A Pending JPH0587522A (en) 1991-03-28 1991-03-28 Signal-detection device

Country Status (1)

Country Link
JP (1) JPH0587522A (en)

Similar Documents

Publication Publication Date Title
US4747116A (en) Sync signal detecting device
KR950010770B1 (en) Error detect & correction method of wide data transmition
JPH0587522A (en) Signal-detection device
KR900017015A (en) Error Correction Control
US4096471A (en) Method and apparatus for transfer of asynchronously changing data words
JPS6255110B2 (en)
JPH10197578A (en) Pulse detecting method and device using it
KR100207652B1 (en) Error detector of tsx in the optical transmitter
JPS606143B2 (en) Input data state change detection circuit
JP2984802B2 (en) Input signal abnormality detection circuit
JPH0420296B2 (en)
JPH04360334A (en) Start-stop synchronization reception circuit
JP2834881B2 (en) Data judgment device
JPH01223675A (en) Seek control circuit
JP2717577B2 (en) Sector mark detection device
JPS63312726A (en) Ppm signal data discriminating circuit
JP2535840B2 (en) Start pattern detector
SU1619264A1 (en) Generator of pseudorandom binary sequence
JPH0120393B2 (en)
JPH03113644A (en) Detection circuit for majority decision error
JPS63131610A (en) Detection circuit
JPH0522360A (en) Fifo test diagnostic circuit
KR910015987A (en) Burst Error Correction Circuit and Method
JPH05191236A (en) Clock interruption detection circuit
JPH08201448A (en) Period measuring/determining apparatus