JP2856884B2 - Train line wear treatment equipment - Google Patents

Train line wear treatment equipment

Info

Publication number
JP2856884B2
JP2856884B2 JP2281793A JP28179390A JP2856884B2 JP 2856884 B2 JP2856884 B2 JP 2856884B2 JP 2281793 A JP2281793 A JP 2281793A JP 28179390 A JP28179390 A JP 28179390A JP 2856884 B2 JP2856884 B2 JP 2856884B2
Authority
JP
Japan
Prior art keywords
address
detected
data
start address
train line
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
JP2281793A
Other languages
Japanese (ja)
Other versions
JPH04161002A (en
Inventor
三四一 広岡
洋 吉田
秀明 饗庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Kinki Nippon Railway Co Ltd
Original Assignee
Toshiba Corp
Kinki Nippon Railway Co Ltd
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 Toshiba Corp, Kinki Nippon Railway Co Ltd filed Critical Toshiba Corp
Priority to JP2281793A priority Critical patent/JP2856884B2/en
Publication of JPH04161002A publication Critical patent/JPH04161002A/en
Application granted granted Critical
Publication of JP2856884B2 publication Critical patent/JP2856884B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、電車のパンタグラフが摺動する電車線の摩
耗量、すなわち摺面の摩耗している部分の幅である摺面
幅を算出する電車線摩耗処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a sliding amount which is a wear amount of a train line on which a pantograph of a train slides, that is, a width of a worn portion of a sliding surface. The present invention relates to a train line abrasion treatment device for calculating a surface width.

(従来の技術) この種の電車線摩耗処理装置に使用し得る方法とし
て、ITVカメラを使用した方式とレーザを使用した方式
の2種類の光学式方法がある。
(Prior Art) There are two types of optical methods that can be used in this type of train wire abrasion treatment apparatus: a method using an ITV camera and a method using a laser.

ITVカメラを使用した方式は、第5図(a)に示すよ
うに、電車のパンタグラフ60が摺動する電車線51に対し
て投光器50から光を照射し、この光の電車線51からの反
射光を測定用電車の屋根に取り付けられたガラス52を通
し、更に第1のミラー53、第2のミラー54、第3のミラ
ー55を介してITVカメラ56で受光して映像信号に変換
し、この映像信号をリード線78を介して処理装置57に供
給している。
In the system using an ITV camera, as shown in FIG. 5 (a), a light is emitted from a projector 50 to a train line 51 on which a pantograph 60 of a train slides, and this light is reflected from the train line 51. The light passes through a glass 52 attached to the roof of the measuring train, is further received by an ITV camera 56 via a first mirror 53, a second mirror 54, and a third mirror 55, and is converted into a video signal. This video signal is supplied to the processing device 57 via the lead wire 78.

ところで、電車線51の高さは一定でなく、5400mm〜42
00mmの範囲で変動するため、電車線51の摺動面から反射
した光はITVカメラ56に達するまでの距離が異なって焦
点がずれてしまうので、これを防止するために、電車線
51の高さによって回動角度が変化するパンタグラフ60の
軸に取り付けたポテンショメータ61の信号を高さ検出器
62に取り込んで電車線51の高さを算出し、この算出した
高さ信号を追従機構63に供給している。追従機構63は油
圧装置65の油圧を利用して高さに応じてアーム64を作動
し、これにより第2および第3のミラー54,55を図にお
いて左右に移動し、ITVカメラ56の焦点を合わせるよう
にしている。
By the way, the height of the train line 51 is not constant, 5400mm ~ 42
Since the light fluctuates within the range of 00 mm, the light reflected from the sliding surface of the trolley wire 51 has a different distance until it reaches the ITV camera 56, and is out of focus.
The signal of the potentiometer 61 attached to the axis of the pantograph 60 whose rotation angle changes according to the height of 51 is detected by a height detector.
The calculated height signal is supplied to the follow-up mechanism 63 by calculating the height of the train line 51 by taking it into the track 62. The follow-up mechanism 63 operates the arm 64 according to the height by using the hydraulic pressure of the hydraulic device 65, thereby moving the second and third mirrors 54 and 55 left and right in the figure, and focusing the ITV camera 56. I try to match.

一方、レーザを使用した方式は、第5図(b)に示す
ように、レーザ装置70からのレーザ光線71を回転鏡72お
よびミラー73によって照射幅74内を矢印で示す方向に少
しずつ角度を変えて走査しながら、横断面で示す電車線
51の摺動面Aを照射し、該摺動面Aで反射されたレーザ
光線をハーフミラー75で反射して受光素子76に取り込ん
で映像信号に変換し、この映像信号を増幅器77で増幅
し、リード線79を介して処理装置80に供給している。
On the other hand, in the method using a laser, as shown in FIG. 5 (b), a laser beam 71 from a laser device 70 is gradually tilted in a direction indicated by an arrow in an irradiation width 74 by a rotating mirror 72 and a mirror 73. Train line shown in cross section while changing and scanning
The sliding surface A of 51 is irradiated, the laser beam reflected by the sliding surface A is reflected by a half mirror 75, taken into a light receiving element 76, converted into a video signal, and the video signal is amplified by an amplifier 77. , To a processing device 80 via a lead wire 79.

以上のように処理装置57および80にそれぞれ供給され
る映像信号は、第6図(a),(b)に示すような信号
波形として得られる。なお、同図において、横軸は時間
であり、縦軸は電圧である。また、電車線の摩耗量とし
ては、パンタグラフが摺動する電車線の摺面の幅、すな
わち第5図(b)の電車線51において図示するように摺
面Aの幅Bを算出するものとする。
As described above, the video signals supplied to the processing devices 57 and 80 are obtained as signal waveforms as shown in FIGS. 6 (a) and 6 (b). In the figure, the horizontal axis represents time, and the vertical axis represents voltage. In addition, as the wear amount of the trolley wire, the width of the slidable surface of the trolley wire on which the pantograph slides, that is, the width B of the slidable surface A as shown in the trolley wire 51 of FIG. 5B is calculated. I do.

第6図(a)においては、映像信号に対して一定のス
ライスレベルを設け、このスライスレベルを映像信号が
超えた時を立ち上がり、スライスレベルより下がった時
を立ち下がりと定義し、この立ち上がりから立ち下がり
までの距離を摺面幅とする方法である。
In FIG. 6 (a), a fixed slice level is provided for the video signal, a time when the video signal exceeds this slice level is defined as a rise, and a time when the video signal falls below the slice level is defined as a fall. In this method, the distance to the fall is set as the sliding surface width.

第6図(b)においては、映像信号の立ち上がりでの
ピーク値を求め、このピーク値の1/2点を立ち上がり点
と見なすとともに、同時に映像信号の波形を1/2点を通
るように遅延させた遅延信号が0レベルに達したところ
を立ち下がり点と見なし、この立ち上がり点から立ち下
がり点までの距離を摺面幅とする方法である。
In FIG. 6 (b), a peak value at the rising edge of the video signal is obtained, and a half point of this peak value is regarded as a rising point, and at the same time, the waveform of the video signal is delayed so as to pass through a half point. In this method, the point at which the delayed signal reaches the 0 level is regarded as a falling point, and the distance from the rising point to the falling point is used as the sliding surface width.

(発明が解決しようとする課題) 上述した従来の両方法は、電車線の摺面で反射した光
を受光して映像信号を得ているものであるが、電車線に
おける反射の程度によって映像信号の波形は種々変化
し、一様でないため、電車線の摺面幅を正確に求めるこ
とができないという問題がある。
(Problems to be Solved by the Invention) In both of the conventional methods described above, a video signal is obtained by receiving light reflected on the sliding surface of a train line. Since the waveforms vary variously and are not uniform, there is a problem that the sliding surface width of the train line cannot be accurately obtained.

詳しくは、1本の電車線の摺面幅であっても、第7図
(a)に示すように映像信号が途中でスライスレベルよ
りも低い値となることがあり、このような波形から検出
された摺面幅は2つに分割されることになる。すなわ
ち、この場合の実際の電車線の摺面幅は左側の波形の立
ち上がりから右側の波形の立ち下がりまでであるが、ス
ライスレベルだけで摺面幅を決定しようとすると、電車
線は1本とならず、2本となってしまい、正確な摺面幅
を算出することができない。また、このような状態を回
避するために、スライスレベルを低下しようとすると、
摺面幅は実際の値よりも幅広く算出され、スライスレベ
ルを極力上げたいという要求と矛盾することになり、望
ましくない。
More specifically, even if the sliding surface width is one train line, the video signal may have a value lower than the slice level in the middle as shown in FIG. The obtained sliding surface width is divided into two. That is, in this case, the actual sliding line width of the train line is from the rising of the left waveform to the falling of the right waveform, but if the sliding surface width is determined only by the slice level, the number of the sliding lines is one. In other words, the number is two, and it is not possible to calculate an accurate sliding surface width. Also, if you try to lower the slice level to avoid such a situation,
The sliding surface width is calculated to be wider than the actual value, and contradicts the demand for increasing the slice level as much as possible, which is not desirable.

また、第7図(b)に示すように、立ち上がりのピー
ク点の1/2の映像信号を検出することはできても、立ち
下がりのピーク点の1/2の映像信号を検出することがで
きないため、0レベルを検知した所を立ち下がりとして
いるため、摺面幅が実際の値よりも幅広に算出されると
いう問題がある。ちなみに、立ち下がりのピーク点の1/
2の映像信号Aと比較して摺面幅が幅広であることがわ
かる。
Further, as shown in FIG. 7 (b), it is possible to detect a video signal at half the rising peak point, but it is possible to detect a video signal at half the falling peak point. Since it is not possible, since the point where the 0 level is detected is set to fall, there is a problem that the sliding surface width is calculated to be wider than the actual value. By the way, 1/1 of the falling peak point
It can be seen that the sliding surface width is wider than that of the video signal A of No. 2.

本発明は、上記に鑑みてなされたもので、この目的と
するところは、電車線の摩耗量、すなわち本数、摺面幅
および偏位を1回の走査で同時に、かつ適確に算出し得
る電車線摩耗処理装置を提供することにある。
The present invention has been made in view of the above, and it is an object of the present invention to be able to simultaneously and accurately calculate the amount of abrasion of a trolley line, that is, the number, the sliding surface width, and the deviation in a single scan. An object of the present invention is to provide a train line wear treatment device.

〔発明の構成〕[Configuration of the invention]

(課題を解決するための手段) 上記目的を達成するため、本発明の電車線摩耗処理装
置は、所定のクロックパルスに同期して1アドレス毎に
走査しながら電車線の摺面を撮像する撮像手段と、該撮
像手段からの前記アドレス毎の映像信号を所定の基準値
と比較して2値化する比較手段と、該比較手段からの連
続する3つのアドレスの2値化信号の組合せが「000」
から「001」(反転論理では「111」から「110」)に変
化する最新のアドレスを立ち上がり開始アドレスとして
検出し、連続する3つのアドレスの2値化信号の組合せ
が「111」から「110」(反転論理では「000」から「00
1」)に変化する最新のアドレスを立ち下がり開始アド
レスとして検出する検出手段と、該検出手段により検出
された立ち下がり開始アドレスと次に検出された立ち上
がり開始アドレスとの差を所定値と比較し、所定値より
大きい場合には前記次に検出された立ち上がり開始アド
レスから別の電車線が存在することを判定し、所定値よ
り小さい場合には前記次に検出された立ち上がり開始ア
ドレスではその前に検出された立ち上がり開始アドレス
から同一の電車線が存在することを判定し、前記検出手
段により検出された立ち上がり開始アドレスと立ち下が
り開始アドレスとに基づいて前記電車線の本数、摺面幅
および偏位を算出する算出手段とを有することを要旨と
する。
(Means for Solving the Problems) In order to achieve the above object, an electric wire wear processing apparatus according to the present invention is an imaging device for imaging a sliding surface of an electric wire while scanning every address in synchronization with a predetermined clock pulse. Means, a comparing means for comparing the video signal for each address from the imaging means with a predetermined reference value to binarize the image signal, and a combination of three consecutive binarized signals from the comparing means. 000 "
Is detected as the rising start address, and the combination of the binary signals of the three consecutive addresses is changed from "111" to "110" (from "111" to "110" in the inverted logic). (Inverted logic from "000" to "00
1)), a detecting means for detecting the latest address that changes to the falling start address, and a difference between the falling start address detected by the detecting means and the next rising start address detected is compared with a predetermined value. If it is larger than a predetermined value, it is determined that there is another train line from the next detected rising start address, and if it is smaller than the predetermined value, the next detected rising start address is before that. It is determined from the detected rise start address that the same train line exists, and the number, the slide surface width, and the deviation of the train lines are determined based on the rise start address and the fall start address detected by the detection unit. And a calculating means for calculating.

(作用) 本発明の電車線摩耗処理装置では、所定のクロックパ
ルスに同期して1アドレス毎に走査しながら電車線の摺
面を撮像し、アドレス毎の映像信号を所定の基準値と比
較して2値化し、連続する3つのアドレスの2値化信号
の組合せが「000」から「001」(反転論理では「111」
から「110」)に変化する最新のアドレスを立ち上がり
開始アドレスとして検出し、また連続する3つのアドレ
ス2値化信号の組合せが「111」から「110」(反転論理
では「000」から「001」)に変化する最新のアドレスを
立ち下がり開始アドレスとして検出し、さらに、検出さ
れた立ち下がり開始アドレスと次に検出された立ち上が
り開始アドレスとの差を所定値と比較し、所定値より大
きい場合には前記次に検出された立ち上がり開始アドレ
スから別の電車線が存在すると判定し、所定値より小さ
い場合には前記次に検出された立ち上がり開始アドレス
ではその前に検出された立ち上がり開始アドレスから同
一の電車線が存在すると判定し、電車線毎の立ち上がり
開始アドレスと立ち下がり開始アドレスとに基づいて電
車線の本数、摺面幅および偏位を算出している。
(Operation) In the trolley line wear processing apparatus of the present invention, the sliding surface of the trolley line is imaged while scanning for each address in synchronization with a predetermined clock pulse, and a video signal for each address is compared with a predetermined reference value. The combination of the binarized signals of three consecutive addresses is changed from “000” to “001” (“111” in the inverted logic).
Is detected as the rising start address, and the combination of three consecutive address binary signals is from "111" to "110" (inverted logic is "000" to "001"). ) Is detected as the falling start address, and the difference between the detected falling start address and the next detected rising start address is compared with a predetermined value. Determines that there is another train line from the next detected rising start address, and if it is smaller than the predetermined value, the next detected rising start address is the same as the previously detected rising start address. It is determined that there is a train line, and the number of the train lines, the sliding surface width, and the sliding surface width are determined based on the rising start address and falling start address of each train line. And calculates the deviation.

(実施例) 以下、図面を用いて本発明の実施例を説明する。(Example) Hereinafter, an example of the present invention is described using a drawing.

第1図(a)は本発明の一実施例に係わる電車線摩耗
処理装置の構成を示すブロック図である。同図に示す電
車線摩耗処理装置は、電車線の摺面を撮像するイメージ
センサ11からなる撮像部41と、該撮像部41からの映像信
号を供給され、該映像信号から電車線の摺面の幅および
偏位を算出する処理装置12とから構成されている。該処
理装置12は前記撮像部41からの映像信号を基準値と比較
して2値化する比較部43と、前記基準値を前記比較部43
に供給すべく記憶している基準値収納部42と、前記比較
部43からの2値化信号の過去から現在までを複数記憶す
るとともに、予め立ち上がりまたは立ち下がりパターン
を構成した回路を通して一致しているか否かを判定する
検出部44と、該検出部44からの検出結果を一時記憶する
記憶部45と、該記憶部45に記憶した結果を読み出して電
車線の本数を算出する本数算出部46と、1本ずつの電車
線の偏位アドレスと摺面幅を算出する偏位摺面幅算出部
47と、全体のタイミング信号を発生するタイミング制御
部48とから構成されている。なお、前記本数算出部46と
偏位摺面幅算出部47は演算処理部121を構成している。
FIG. 1 (a) is a block diagram showing a configuration of a train line wear treatment apparatus according to one embodiment of the present invention. The trolley line wear processing apparatus shown in the figure is provided with an imaging unit 41 including an image sensor 11 for imaging the sliding surface of the trolley line, and a video signal from the imaging unit 41. And a processing device 12 for calculating the width and the deviation of the distance. The processing device 12 compares a video signal from the imaging unit 41 with a reference value and binarizes the comparison result.
The reference value storage unit 42 stored to be supplied to the storage unit 42 stores a plurality of values from the past to the present of the binarized signal from the comparison unit 43, and matches them through a circuit that has previously formed a rising or falling pattern. A detection unit 44 for determining whether or not there is, a storage unit 45 for temporarily storing the detection result from the detection unit 44, and a number calculation unit 46 for reading out the result stored in the storage unit 45 and calculating the number of train lines. And a deviation sliding surface width calculator for calculating a deviation address and a sliding surface width of each of the train lines.
47, and a timing control unit 48 for generating an entire timing signal. The number calculating section 46 and the eccentric sliding surface width calculating section 47 constitute an arithmetic processing section 121.

第1図(b)はパンタグラフ舟体13に埋め込まれた第
1図(a)の電車線摩耗処理装置の撮像部41を構成する
イメージセンサ11と電車線51との関係を示す説明図であ
る。同図に示すように、イメージセンサ11はパンタグラ
フ舟体13に埋め込まれ、電車線51の摺面と摺動するよう
に構成され、これにより電車線51の摺面の画像を撮像
し、その映像信号をイメージセンサ11から処理装置12に
供給し、処理装置12において電車線51の摺面幅Bおよび
パンタグラフ舟体13の中心Cから電車線51の中心までの
距離Cである偏位量および電車線51の摺面幅Bを算出し
ている。
FIG. 1 (b) is an explanatory diagram showing the relationship between the image sensor 11 and the electric line 51 constituting the imaging unit 41 of the electric line wear processing device of FIG. 1 (a) embedded in the pantograph boat 13. . As shown in the figure, the image sensor 11 is embedded in the pantograph hull 13 and is configured to slide on the sliding surface of the train line 51, thereby capturing an image of the sliding surface of the train line 51, The signal is supplied from the image sensor 11 to the processing device 12, and the displacement amount and the amount of displacement of the sliding surface width B of the electric line 51 and the distance C from the center C of the pantograph hull 13 to the center of the electric line 51 are supplied to the processing device 12. The sliding surface width B of the line 51 is calculated.

イメージセンサ11は、一方の端部から順次他方の端部
に向かって走査し、すなわちアドレス1から最終アドレ
スまでを走査し、その1走査毎の各アドレスの映像信号
を処理装置12に供給している。なお、前記偏位量はパン
タグラフ舟体13の中心からの偏位であるが、本実施例で
はアドレス1からの偏位量としている。また、前記タイ
ミング制御部48は撮像部41に1アドレス毎に走査して撮
像するクロックパルスを供給するとともに、検出部44、
記憶部45および演算処理部121を制御するためのタイミ
ングパルスを発生している。
The image sensor 11 scans sequentially from one end to the other end, that is, scans from address 1 to the last address, and supplies a video signal of each address for each scan to the processing device 12. I have. Note that the above-mentioned deviation amount is a deviation amount from the center of the pantograph boat 13, but in this embodiment, it is a deviation amount from the address 1. Further, the timing control unit 48 supplies the imaging unit 41 with a clock pulse for scanning and imaging for each address, and the detection unit 44,
A timing pulse for controlling the storage unit 45 and the arithmetic processing unit 121 is generated.

以上のように構成される電車線摩耗処理装置におい
て、撮像部41で1アドレス毎に撮像した映像信号は比較
部43に供給され、基準値収納部42からの基準値αと比較
されて2値化される。この2値化された映像信号は検出
部44に供給され、該検出部44においては1アドレス毎に
過去から現在までに記憶した複数の2値化映像信号を取
り込み、予め回路的に構成している立ち上がりおよび立
ち下がりパターンと一致しているか否かを判定し、その
立ち上がりまたは立ち下がり時点のアドレスとその立ち
上がりまたは立ち下がりを示す立ち上がりフラグまたは
立ち下がりフラグを記憶部45に記憶する。演算処理部12
1の本数算定部46は、前記記憶部45に記憶された各アド
レスおよび立ち上がり/立ち下がりフラグデータのすべ
ての組を記憶部45から読み出し、複数の組のデータが存
在していれば、電車線が1本か2本かをそれぞれ判定し
て電車線の本数を検出し、偏位摺面幅算出部47で各1本
ずつの電車線に対する偏位アドレスおよび摺面幅を算出
するようになっている。
In the trolley wire abrasion processing device configured as described above, the video signal captured by the imaging unit 41 for each address is supplied to the comparison unit 43, and is compared with the reference value α from the reference value storage unit 42 to obtain a binary signal. Be transformed into The binarized video signal is supplied to the detection unit 44, and the detection unit 44 fetches a plurality of binarized video signals stored from the past to the present for each address and configures the circuit in advance as a circuit. It is determined whether the pattern matches the rising and falling patterns, and the address at the time of the rising or falling and the rising or falling flag indicating the rising or falling are stored in the storage unit 45. Arithmetic processing unit 12
The one number calculation unit 46 reads all the sets of each address and the rising / falling flag data stored in the storage unit 45 from the storage unit 45, and if there are a plurality of sets of data, the train line Is determined to determine whether the number is one or two, and the number of the trolley lines is detected, and the eccentric sliding surface width calculating section 47 calculates the eccentric address and the slid surface width for each one of the trolley lines. ing.

第2図は本発明の他の実施例に係わる電車線摩耗処理
装置の構成を示すブロック図である。同図に示す電車線
摩耗処理装置は、第1図(a),(b)に示したように
イメージセンサから構成され、電車線51を撮像する撮像
部100を有する。該撮像部100は、タイミングコントロー
ラ200からスタートパルスとクロックパルスを供給され
ると、アドレス1から最終アドレスまで(有効画素信
号)の映像信号をクロックパルスに同期して撮像に有効
な期間だけ出力し、A/D変換器101に供給する。A/D変換
器101は、この撮像部100からのアナログ映像信号をディ
ジタル映像信号に変換し、セーブレジスタ102に数値デ
ータとして一時保存する。セーブレジスタ102に保存さ
れた映像信号は比較器103に供給され、基準値レジスタ1
19からの基準値αと比較され、0または1の信号として
出力される。該比較器103にセーブレジスタ102から供給
される映像信号をPとすると、比較器103は映像信号P
が基準値αより大きい場合、0を出力し、映像信号Pが
基準値α以下の場合、1を出力する。この比較器103か
らの0または1の信号はインバータ104で反転され、シ
フトレジスタ105a、シフトレジスタ105bおよびシフトレ
ジスタ105cに順次供給される。このシフトレジスタ105
a、シフトレジスタ105bおよびシフトレジスタ105cは、
それぞれインバータ104から供給される今回の1,0のデー
タ、1パルス前である前回の1,0のデータおよび2パル
ス前である前前回の1,0のデータを保存するものであ
り、この3個のシフトレジスタ105a,105bおよび105cは
1個のチップで構成され、電源投入時にハード的に0に
リセットされるようになっている。3個のシフトレジス
タ105a,105bおよび105cからの今回、前回および前前回
の1,0のデータは、一部入力反転機能付アンドゲートか
らなる立ち上がり検出器107および立ち下がり検出器108
に供給される。
FIG. 2 is a block diagram showing a configuration of a trolley line wear treatment apparatus according to another embodiment of the present invention. The trolley wire abrasion processing apparatus shown in FIG. 1 is configured by an image sensor as shown in FIGS. 1A and 1B and has an imaging unit 100 that captures an image of the trolley wire 51. When the start pulse and the clock pulse are supplied from the timing controller 200, the imaging unit 100 outputs the video signal from the address 1 to the last address (effective pixel signal) in synchronization with the clock pulse for a period effective for imaging. , A / D converter 101. The A / D converter 101 converts the analog video signal from the imaging unit 100 into a digital video signal, and temporarily stores the digital video signal in the save register 102 as numerical data. The video signal stored in the save register 102 is supplied to the comparator 103, and the reference value register 1
It is compared with the reference value α from 19 and output as a signal of 0 or 1. Assuming that the video signal supplied from the save register 102 to the comparator 103 is P, the comparator 103
Is greater than the reference value α, 0 is output, and if the video signal P is less than or equal to the reference value α, 1 is output. The signal of 0 or 1 from the comparator 103 is inverted by the inverter 104, and is sequentially supplied to the shift register 105a, the shift register 105b, and the shift register 105c. This shift register 105
a, shift register 105b and shift register 105c
The current 1,0 data supplied from the inverter 104, the previous 1,0 data one pulse before, and the previous 1,0 data two pulses before are stored. Each of the shift registers 105a, 105b and 105c is constituted by one chip, and is reset to 0 by hardware when power is turned on. The present, previous and previous 1,0 data from the three shift registers 105a, 105b, and 105c are respectively provided with a rising detector 107 and a falling detector 108 which are partially constituted by AND gates having an input inversion function.
Supplied to

立ち上がり検出器107は、シフトレジスタ105a,105bお
よび105cからの今回、前回および前前回の1,0のデータ
が「110」の場合、立ち上がりを検出して、高論理レベ
ル1の出力信号を出力し、また立ち下がり検出器108は
シフトレジスタ105a,105bおよび105cからの今回、前回
および前前回の1,0のデータが「011」の場合、立ち下が
りを検出して、高論理レベルの出力信号を出力する。立
ち上がり検出器107および立ち下がり検出器108からの出
力信号はオア回路109を通ってゲート110に供給される。
該ゲート110はタイミングコントローラ200から供給され
る有効画素パルスの立ち上がりのタイミングでゲートを
開き、オア回路109からのパルス信号を通過させ、リザ
ルトRAMカウンタ111に供給する。リザルトRAMカウンタ1
11はパルス信号の数をカウントし、このカウント値を保
存する。このカウント値はバッファレジタ112に一時的
に保存される。
The rise detector 107 detects the rise and outputs a high logic level 1 output signal when the current, previous, and previous 1,0 data from the shift registers 105a, 105b, and 105c are "110". In addition, the falling detector 108 detects the falling when the current, previous and previous 1,0 data from the shift registers 105a, 105b, and 105c are "011", and outputs a high logic level output signal. Output. Output signals from the rise detector 107 and the fall detector 108 are supplied to a gate 110 through an OR circuit 109.
The gate 110 opens at the timing of the rising edge of the effective pixel pulse supplied from the timing controller 200, passes the pulse signal from the OR circuit 109, and supplies it to the result RAM counter 111. Result RAM counter 1
11 counts the number of pulse signals and stores this count value. This count value is temporarily stored in the buffer register 112.

更に、第2図の電車線摩耗処理装置は、リザルトRAM1
15を有し、該リザルトRAM115はアドレスゲート113が指
定したアドレスにデータゲート114に設定されたデータ
を書き込み保存するものであり、2組設けられている。
アドレスゲート113はカウント値を入力され、これによ
りリザルトRAM115のアドレスをデコードして書き込みア
ドレスのゲートを開く回路であり、同様に2組設けられ
ている。また、データゲート114はアドレスカウント値
を入力すると、リザルトRAM115の該当するビットに対応
する所のゲートを開く回路であり、同様に2組設けられ
ている。データゲート114に接続されているセレクタ118
は2組のリザルトRAM115のうち選択された方のデータに
データゲート114の接続を行う回路である。
In addition, the train line wear treatment device shown in FIG.
The result RAM 115 is for writing and storing the data set in the data gate 114 at the address specified by the address gate 113, and is provided in two sets.
The address gate 113 is a circuit to which a count value is input, decodes the address of the result RAM 115 and opens the gate of the write address, and two sets are provided similarly. The data gate 114 is a circuit that opens a gate corresponding to a corresponding bit of the result RAM 115 when an address count value is input, and two sets of data gates are similarly provided. Selector 118 connected to data gate 114
Is a circuit for connecting the data gate 114 to the selected one of the two result RAMs 115.

ところで、タイミングコントローラ200は、前述した
ようにスタートパルスおよびクロックパルスに加えて、
有効画素パルスおよびセレクトパルスを出力するが、こ
れらの各パルスは第3図(b)に示すような関係にあ
る。スタートパルスの間隔はクロックパルスを所定数カ
ウントして発生させ、有効画素パルスの開始、終了を予
め決められたカウント数だけ進むと発生、停止が行われ
る。
By the way, the timing controller 200, in addition to the start pulse and the clock pulse as described above,
An effective pixel pulse and a select pulse are output, and these pulses have a relationship as shown in FIG. 3 (b). The interval of the start pulse is generated by counting a predetermined number of clock pulses, and when the start and end of the effective pixel pulse are advanced by a predetermined count, generation and stop are performed.

そして、該タイミングコントローラ200に接続された
アドレスカウンタ201には前記有効画素パルスが供給さ
れているが、アドレスカウンタ201は該有効画素パルス
をカウントしてアドレスを形成し、このアドレスはデー
タゲート114に供給されている。また、アドレスカウン
タ201は有効画素パルスを予め決められたカウント値ま
でカウントすると、0に戻るようになっている。
The valid pixel pulse is supplied to the address counter 201 connected to the timing controller 200.The address counter 201 counts the valid pixel pulse to form an address. Supplied. The address counter 201 returns to 0 when the valid pixel pulse is counted up to a predetermined count value.

また、第2図は電車線摩耗処理装置はCPU300を有する
が、該CPU300はバッファレジタ112、基準値レジスタ119
の初期化を行ったり、リザルトRAM115の記憶内容を読み
出して演算処理を行い、その結果を次段の処理部に供給
するようになっている。このCPU300にはデータバス210
およびアドレスバス220を介してRAM/ROM301に接続され
ているが、このRAM/ROM301はRAM部およびROM部からな
り、ROM部は演算を実行するためのプログラムを記憶
し、RAM部はリザルトRAM115、バッファレジタ112の内容
等を一時的に記憶したり、CPU300で演算した途中結果を
一時的に記憶したり、演算結果を外部に出力するまでの
一時的に記憶するようになっている。なお、CPU300はデ
コーダ305を介して前記RAM/ROM301およびアドレスゲー
ト113に接続され、これによりCPU300をデコーダ305を介
してこれらの各々を選択し得るようになっている。
FIG. 2 shows that the train line wear processing device has a CPU 300, which has a buffer register 112 and a reference value register 119.
, Or read out the contents stored in the result RAM 115 to perform an arithmetic process, and supply the result to a processing unit in the next stage. The CPU 300 has a data bus 210
And the RAM / ROM 301 are connected to the RAM / ROM 301 via an address bus 220.The RAM / ROM 301 includes a RAM unit and a ROM unit. The ROM unit stores a program for executing an operation. The contents of the buffer register 112 and the like are temporarily stored, intermediate results calculated by the CPU 300 are temporarily stored, and the calculation results are temporarily stored until output to the outside. The CPU 300 is connected to the RAM / ROM 301 and the address gate 113 via the decoder 305, so that the CPU 300 can select each of them via the decoder 305.

更に、第2図において、302はディジタル入力モジュ
ール(DIM)であり、スイッチ307の接点信号を取り込
み、データバス210に供給するようになっている。303は
ペリフェラルインタフェース(PI/F)であり、演算結果
を次段の処理部へ出力するインタフェースである。304
はデコーダであり、デバイス番号が入力されると、バッ
ファレジタ112、ディジタル入力モジュール302等の接続
したいデバイスを選択してデータの書き込み、読み出し
をできるようにする回路である。
Further, in FIG. 2, reference numeral 302 denotes a digital input module (DIM) which receives a contact signal of the switch 307 and supplies it to the data bus 210. Reference numeral 303 denotes a peripheral interface (PI / F) that outputs an operation result to a processing unit in the next stage. 304
Is a decoder which, when a device number is input, selects a device to be connected, such as the buffer register 112, the digital input module 302, etc., and enables data writing and reading.

次に作用を説明する。 Next, the operation will be described.

撮像部100からの映像信号はクロックパルス間隔で有
効画素送出期間だけA/D変換器101に供給されると、タイ
ミングコントローラ200からの有効画素パルスの立ち上
がりでラッチされ、ディジタル信号に変換され、セーブ
レジスタ102に供給される。セーブレジスタ102も有効画
素パルスのオン期間中A/D変換器101からのディジタル信
号を取り込み、ディジタルデータとして次の有効画素パ
ルスがオンになるまでラッチし、比較器103に出力す
る。比較器103はセーブレジスタ102からの映像信号Pと
基準値レジスタ119からの基準値αとを比較し、映像信
号Pが基準値αより大きい場合、0を出力し、映像信号
Pが基準値α以下の場合、1を出力する。この比較器10
3からの出力信号はインバータ104で反転され、シフトレ
ジスタ105a、シフトレジスタ105bおよびシフトレジスタ
105cに順次供給される。
When the video signal from the imaging unit 100 is supplied to the A / D converter 101 for the effective pixel transmission period at the clock pulse interval, it is latched at the rising edge of the effective pixel pulse from the timing controller 200, converted to a digital signal, and saved. The data is supplied to the register 102. The save register 102 also takes in the digital signal from the A / D converter 101 during the ON period of the effective pixel pulse, latches it as digital data until the next effective pixel pulse is turned on, and outputs it to the comparator 103. The comparator 103 compares the video signal P from the save register 102 with the reference value α from the reference value register 119, and outputs 0 when the video signal P is larger than the reference value α, and outputs the video signal P with the reference value α. In the following case, 1 is output. This comparator 10
The output signal from 3 is inverted by the inverter 104, and the shift register 105a, the shift register 105b and the shift register
105c.

このシフトレジスタ105a、シフトレジスタ105bおよび
シフトレジスタ105cは、タイミングコントローラ200か
らの有効画素パルスの立ち上がりでシフトレジスタ105b
の内容をシフトレジスタ105cに移し、その後シフトレジ
スタ105aの内容をシフトレジスタ105bに移しておいてイ
ンバータ104からの出力信号をシフトレジスタ105aに保
存するというようにインバータ104からの出力信号、す
なわち比較器103の比較結果の反転信号を有効画素パル
スに同期して順次入力しながらシフトし、これによりイ
ンバータ104から供給される今回の比較結果のデータ、
1パルス前である前回の比較結果データおよび2パルス
前である前前回の比較結果データを保存し、これらの各
比較結果データを立ち上がり検出器107および立ち下が
り検出器108に供給する。また、シフトレジスタ105aの
出力信号はデータゲート114の0ビットであるフラグビ
ットに供給される。
The shift register 105a, the shift register 105b, and the shift register 105c are shifted by the rising edge of the effective pixel pulse from the timing controller 200.
Is transferred to the shift register 105c, then the contents of the shift register 105a are transferred to the shift register 105b, and the output signal from the inverter 104 is stored in the shift register 105a. The inverted signal of the comparison result of 103 is shifted while sequentially inputting in synchronization with the effective pixel pulse, whereby the data of the current comparison result supplied from the inverter 104,
The previous comparison result data that is one pulse before and the previous comparison result data that is two pulses before are stored, and these comparison result data are supplied to the rise detector 107 and the fall detector 108. The output signal of the shift register 105a is supplied to a flag bit which is 0 bit of the data gate 114.

立ち上がり検出器107は、シフトレジスタ105a,105bお
よび105cからの今回、前回および前前回の比較結果デー
タが「110」(第3図(a)に示すようにインバータ104
の入力側では「001」となるデータの反転データ)の場
合、立ち上がりを検出して、高論理レベル1の出力信号
を出力し、また立ち下がり検出器108はシフトレジスタ1
05a,105bおよび105cからの今回、前回および前前回の比
較結果データが「001」(インバータ104の入力側では
「110」となるデータの反転データ)の場合、立ち下が
りを検出して、高論理レベルの出力信号を出力する。
The rise detector 107 determines that the comparison result data from the shift registers 105a, 105b, and 105c for the current, previous, and previous and previous times is "110" (as shown in FIG.
In the case of inverted data of the data which becomes "001" on the input side of, the rising edge is detected and the output signal of the high logic level 1 is output.
If the comparison result data of the current, previous, and previous times from 05a, 105b, and 105c is “001” (inverted data of “110” on the input side of the inverter 104), the falling is detected and a high logic Output level output signal.

立ち上がり検出器107および立ち下がり検出器108から
立ち上がりおよび立ち下がり検出出力信号はオア回路10
9を通ってゲート110に供給される。ゲート110はタイミ
ングコントローラ200からの有効画素パルスのオン期間
中にゲートを開いて、オア回路109を通った立ち上がり
および立ち下がり検出信号をリザルトRAMカウンタ111に
供給する。リザルトRAMカウンタ111はオア回路109を通
った立ち上がりおよび立ち下がり検出信号をカウント
し、このカウント値をアドレスゲート113およびバッフ
ァレジタ112に供給する。アドレスゲート113はカウント
値を2進数から10進数に変換してリザルトRAM115のアド
レスを選択する。一方、リザルトRAM115のデータゲート
114に対しては、アドレスカウンタ201がタイミングコン
トローラ200からの有効画素パルスをカウントして得た
アドレスカウント値が供給され、このアドレスカウント
値が前記シフトレジスタ105aの出力信号であるフラグデ
ータとともに前記アドレスゲート113で選択されたアド
レスのリザルトRAM115に記憶される。なお、このシフト
レジスタ105aの出力信号であるフラグデータはこの時リ
ザルトRAM115に記憶されたアドレスにおいて検出した立
ち上がりまたは立ち下がり信号が立ち上がり信号である
かまたは立ち下がり信号であるかを意味しているもので
あり、該シフトレジスタ105aの出力信号が1である場合
は、立ち上がり信号であることを意味し、0である場合
は、立ち下がり信号であることを意味している。すなわ
ち、リザルトRAM115には、撮像部100で撮像した摺面幅
の映像信号の立ち上がりおよび立ち下がりが発生する毎
に、その時のアドレスが記憶されるとともに、かつこの
アドレスの時が立ち上がりであるかまたは立ち下がりで
あるかの情報もフラグデータとして記憶し、この処理が
有効画素パルスが発生する有効画素送出期間(第3図
(b)の(ロ)参照)の全体にわたって行われるように
なっている。
The rise and fall detection output signals from the rise detector 107 and the fall detector 108 are
It is supplied to the gate 110 through 9. The gate 110 opens the gate during the ON period of the valid pixel pulse from the timing controller 200, and supplies the rise and fall detection signal passed through the OR circuit 109 to the result RAM counter 111. The result RAM counter 111 counts the rise and fall detection signals passed through the OR circuit 109, and supplies the count value to the address gate 113 and the buffer register 112. The address gate 113 converts the count value from a binary number to a decimal number and selects an address of the result RAM 115. On the other hand, the data gate of the result RAM 115
An address count value obtained by the address counter 201 counting valid pixel pulses from the timing controller 200 is supplied to the address register 114, and this address count value is transmitted to the address register together with flag data as an output signal of the shift register 105a. The result is stored in the result RAM 115 at the address selected by the gate 113. Note that the flag data, which is the output signal of the shift register 105a, indicates whether the rising or falling signal detected at the address stored in the result RAM 115 at this time is a rising signal or a falling signal. When the output signal of the shift register 105a is 1, it means a rising signal, and when it is 0, it means a falling signal. That is, in the result RAM 115, each time the rising and falling of the video signal of the sliding surface width captured by the imaging unit 100 occurs, the address at that time is stored, and the time of this address is the rising or The information as to whether the edge is falling is also stored as flag data, and this process is performed throughout the effective pixel transmission period in which the effective pixel pulse is generated (see (b) in FIG. 3B). .

なお、リザルトRAM115、アドレスゲート113およびデ
ータゲート114はそれぞれ#0および#1の2組ずつあ
り、タイミングコントローラ200からのセレクトパルス
によっていずれのリザルトRAM115に記憶するかが選択さ
れるようになっている。すなわち、セレクトパルスがオ
ンの時には、#0のアドレスゲート113およびデータゲ
ート114を書き込み側として#0のリザルトRAM115に対
して書き込み動作を行い、他方の#1のアドレスゲート
113およびデータゲート114を読み出し側として#1のリ
ザルトRAM115に対して読み出し動作を行うようにゲート
制御し、セレクトパルスがオフの時には、インバータ11
6,117を介してオン状態となり、#1のアドレスゲート1
13およびデータゲート114を書き込み側として#1のリ
ザルトRAM115に対して書き込み動作を行い、他方の#0
のアドレスゲート113およびデータゲート114を読み出し
側として#0のリザルトRAM115に対して読み出し動作を
行うようにしている。
The result RAM 115, the address gate 113, and the data gate 114 are two sets of # 0 and # 1, respectively, and the selection pulse from the timing controller 200 selects which one of the result RAMs 115 is to be stored. . That is, when the select pulse is on, the write operation is performed on the # 0 result RAM 115 with the # 0 address gate 113 and the data gate 114 as the write side, and the other # 1 address gate is performed.
Gate control is performed so that the read operation is performed on the # 1 result RAM 115 with the read gate 113 and the data gate 114 serving as the read side.
It is turned on via 6,117 and the address gate 1 of # 1
13 and the data gate 114 on the write side to perform a write operation on the result RAM 115 of # 1 and the other # 0
The read operation is performed on the # 0 result RAM 115 with the address gate 113 and the data gate 114 of FIG.

一方、CPU300はプログラム処理によって動作するが、
このCPU300の動作を第4図(a),(b)を参照して説
明する。
On the other hand, the CPU 300 operates by program processing,
The operation of the CPU 300 will be described with reference to FIGS. 4 (a) and 4 (b).

CPU300は電源を投入されると、リセットパルスが入力
され、ハードウェアで決められている特定アドレスに書
き込まれている先頭アドレスから始まるプログラムをRA
M/ROM301のROMエリアから1ステップずつ読み出して解
読実行する。
When the power is turned on, the CPU 300 receives a reset pulse and executes a program starting from a head address written at a specific address determined by hardware.
The data is read from the ROM area of the M / ROM 301 one step at a time and decrypted and executed.

この実行は、第4図(a)に示すように、まず、スイ
ッチ307の接点状態(すなわち、予めマニアルで設定さ
れた前記基準値レジスタ119に設定される基準値α)が
ディジタル入力モジュール302に接続されて、1,0のディ
ジタルデータとして取り込まれる。すなわち、CPU300は
ディジタル入力モジュール302の入力データの状態を読
み取るためにデコーダ304に対してディジタル入力モジ
ュール302のデバイス番号を与えて選択し、ディジタル
入力モジュール302の状態をデータバス210を介して取り
込み、RAM/ROM301のRAMエリアのアドレスd1に書き込む
(ステップ501)。なお、CPU300がRAM/ROM301を選択す
るか、またはリザルトRAM115を選択するかは、プログラ
ムによってデコーダ305にRAM/ROM301またはアドレスゲ
ート113のアドレス番号を選択してリザルトRAM115のデ
ータの読出しはアドレスバス220を介しRDに読出しアド
レス(バッファレジスタ112の読出し内容(カウント
数))をアドレスゲート113に与えることによりリザル
トRAM115のアドレスを選択するものである。
In this execution, as shown in FIG. 4 (a), first, the contact state of the switch 307 (that is, the reference value α set in the reference value register 119 previously set manually) is transmitted to the digital input module 302. Connected and taken in as digital data of 1,0. That is, the CPU 300 gives the device number of the digital input module 302 to the decoder 304 to read the state of the input data of the digital input module 302 and selects it, and captures the state of the digital input module 302 via the data bus 210. The data is written to the address d1 in the RAM area of the RAM / ROM 301 (step 501). Whether the CPU 300 selects the RAM / ROM 301 or the result RAM 115 is determined by selecting the address number of the RAM / ROM 301 or the address gate 113 to the decoder 305 by the program and reading the data of the result RAM 115 by the address bus 220. The address of the result RAM 115 is selected by giving the read address (the read content (count number) of the buffer register 112) to the address gate 113 through the RD to the RD.

次に、CPU300はRAM/ROM301のRAMエリアのアドレスd1
をアドレスバス220を介して指定して、アドレスd1の内
容をデータバス210に取り出し、基準値レジスタ119に供
給する(ステップ520)。すなわち、基準値レジスタ119
には基準値αが設定される。次のステップ530は、後述
する割り込み処理を無視するために設けたスイッチ機能
であり、RAM/ROM301のRAMエリアのアドレスd2に「1」
を書き込み、これにより本処理を終了する。
Next, the CPU 300 sets the address d1 of the RAM area of the RAM / ROM 301.
Is specified via the address bus 220, the contents of the address d1 are taken out to the data bus 210, and supplied to the reference value register 119 (step 520). That is, the reference value register 119
Is set to a reference value α. The next step 530 is a switch function provided for ignoring interrupt processing described later, and "1" is set in the address d2 of the RAM area of the RAM / ROM 301.
Is written, thereby ending this processing.

次に、タイミングコントローラ200からのセレクトパ
ルスが割り込み回路306に供給されると、割り込み回路3
06は第3図(b)の(イ)に示すセレクトパルスの変化
を検出し、割り込みをCPU300にかける。この結果、CPU3
00は割り込み先をハード的に検出して、割り込み先の先
頭アドレスである第4図(b)に示すステップ610に飛
び込み、第4図(b)に示す処理を実行する。
Next, when the select pulse from the timing controller 200 is supplied to the interrupt circuit 306, the interrupt circuit 3
06 detects a change in the select pulse shown in (a) of FIG. 3 (b) and interrupts the CPU 300. As a result, CPU3
00 detects the interrupt destination in a hardware manner, jumps to step 610 shown in FIG. 4B, which is the start address of the interrupt destination, and executes the processing shown in FIG. 4B.

第4図(b)に示すステップ610においては、CPU300
はリザルトRAMカウンタ111のデバイス番号をデコーダ30
4に出力して選択し、該リザルトRAMカウンタ111にリセ
ットパルスを供給して該カウンタを0にクリアする。次
に、第4図(a)の前記ステップ530で実行したRAM/ROM
301のRAMエリアのアドレスd1の内容が1であるか否かチ
ェックする(ステップ620)。アドレスd1の内容が1で
ある場合には、ステップ630に進み、1でない場合に
は、ステップ640に進む。ステップ620はこの時点ではリ
ザルトRAM115にデータが書き込まれていないので、読み
出すことができない。したがって、これは読み出しを無
視するための処理である。ステップ630は次の割り込み
で読み出しを許可するための処理であり、タグのリセッ
ト、すなわちRAM/ROM301のアドレスd2に0を書き込み、
本処理を終了する。
In step 610 shown in FIG.
Indicates the device number of the result RAM counter 111 in the decoder 30
The result is output to 4 and selected, and a reset pulse is supplied to the result RAM counter 111 to clear the counter to zero. Next, the RAM / ROM executed in step 530 of FIG.
It is checked whether the contents of the address d1 in the RAM area 301 are 1 (step 620). If the content of the address d1 is 1, the process proceeds to step 630; otherwise, the process proceeds to step 640. In step 620, since no data has been written to the result RAM 115 at this time, it cannot be read. Therefore, this is a process for ignoring the reading. Step 630 is a process for permitting reading at the next interrupt, resetting the tag, that is, writing 0 to the address d2 of the RAM / ROM 301,
This processing ends.

ステップ640はバッファレジタ112を選択して、該バッ
ファレジタ112の内容であるカウント数をRAM/ROM301のR
AMエリアのアドレスmoに書き込む。なお、本実施例で
は、カウント数を「4」として説明する。
In step 640, the buffer register 112 is selected, and the count number, which is the content of the buffer
Write to address mo of AM area. In the present embodiment, the description will be made assuming that the count number is “4”.

次に、ステップ650に進むと、アドレスゲート113を選
択し、RAM/ROM301のRAMエリアのアドレスmoの内容であ
るカウント数「4」だけアドレスゲート113にアドレス
1から4まで順番にプログラムによって読み取りアドレ
スを設定し、リザルトRAM115の読み取り側のメモリより
データゲート114を通してタイミングコントローラ200が
発生するセレクトパルスの信号レベルに応じた読み取り
側のデータゲート114を選択して、セレクタ118に一旦読
み出し、RAM/ROM301のRAMエリアのアドレスm1,m2,・・
・,m4に書き込む。また、同時に、0ビット目のフラグ
をチェックし、該フラグが「1010」、すなわち立ち上が
り、立ち下がり、立ち上がり、立ち下がりの順になって
いるか否をチェックし、このようになっていれば、フラ
グをすべて0にリセットし、次のステップ660に進む
が、このようになっていない場合には、エラーとして、
本処理を終了する(ステップ655)。
Next, at step 650, the address gate 113 is selected, and the address read from the address gate 113 is sequentially read from the address 1 to 4 by the program by the count number "4" which is the content of the address mo of the RAM area of the RAM / ROM 301. Is selected from the memory on the reading side of the result RAM 115 through the data gate 114 to select the data gate 114 on the reading side in accordance with the signal level of the select pulse generated by the timing controller 200. RAM area addresses m1, m2, ...
• Write to m4. At the same time, the flag of the 0th bit is checked, and it is checked whether the flag is “1010”, that is, in the order of rising, falling, rising, and falling. Reset all to 0 and proceed to the next step 660. If this is not the case,
This processing ends (step 655).

ステップ660では、電車線が1本かまたは2本かを判
定する。これは、RAM/ROM301のRAMエリアのアドレスm2
の内容に判定値βを加えて、RAM/ROM301のRAMエリアの
アドレスm3の内容と比較し、アドレスm3の内容が大きい
場合には、2本とみなして、ステップ690に進み、そう
でない場合には、1本とみなして、ステップ670に進
む。ステップ670では、RAM/ROM301のRAMエリアのアドレ
スm4の内容(アドレスa4)を同アドレスm2に移す。それ
から、RAM/ROM301のRAMエリアのアドレスmoの内容から
2減算する(ステップ680)。すなわち、電車線はアド
レスa1で立ち上がり、アドレスa4で立ち下がるものとし
て、途中のアドレスa2,a3を無視し、アドレスa1からa4
までを1本としたのである。
In step 660, it is determined whether the number of the train lines is one or two. This is the address m2 of the RAM area of the RAM / ROM 301.
Is added to the determination value β and compared with the content of the address m3 in the RAM area of the RAM / ROM 301. If the content of the address m3 is large, it is regarded as two, and the process proceeds to step 690. Is regarded as one, and the process proceeds to step 670. In step 670, the contents (address a4) of the address m4 in the RAM area of the RAM / ROM 301 are moved to the same address m2. Then, 2 is subtracted from the contents of the address mo in the RAM area of the RAM / ROM 301 (step 680). That is, assuming that the train line rises at the address a1 and falls at the address a4, ignoring the addresses a2 and a3 in the middle, the addresses a1 to a4
Up to one.

ステップ690では、電車線1の偏位を求めるために、
摺面幅の中心アドレスを算出する。すなわち、RAM/ROM3
01のRAMエリアのアドレスm1とm2の内容をそれぞれ右に
1ビットシフトすることにより値を1/2にし、それから
各々を加えると、中心アドレスが求まり、これをRAM/RO
M301のRAMエリアのアドレスm11に書き込む。次に、電車
線1の摺面幅を求めるために、アドレスm2の内容からア
ドレスm1の内容を引いた値をアドレスm21に書き込む
(ステップ700)。
In step 690, to determine the deviation of the line 1,
Calculate the center address of the sliding surface width. That is, RAM / ROM3
The contents of the addresses m1 and m2 in the RAM area 01 are shifted by one bit to the right, respectively, to halve the value. Then, when each is added, the center address is obtained.
Write to address m11 in RAM area of M301. Next, a value obtained by subtracting the content of the address m1 from the content of the address m2 is written to the address m21 in order to obtain the sliding surface width of the train line 1 (step 700).

次に、アドレスmoの内容を調べて、カウント数が4か
否か、すなわち電車線が2本か否かをチェックし、カウ
ント数が4の場合には、次のステップ720にすすみ、そ
うでない場合には、ステップ740に進む(ステップ71
0)。カウント数が4である場合には、ステップ720にお
いて、電車線2の偏位アドレスを求めるために、アドレ
スm3,m4の各内容を右に1ビットシフトして、各々を加
え、アドレスm12に書き込む。それから、電車線2の摺
面幅を求めるために、アドレスm4の内容からアドレスm3
の内容をひいて、その値をアドレスm22に書き込む(ス
テップ730)。
Next, the contents of the address mo are examined to check whether the count number is 4, that is, whether there are two train lines. If the count number is 4, proceed to the next step 720, otherwise. If so, proceed to step 740 (step 71
0). If the count number is 4, in step 720, the contents of the addresses m3 and m4 are shifted to the right by one bit, and added to each other, and written to the address m12 in order to obtain the deviation address of the train line 2. . Then, in order to obtain the sliding surface width of the train line 2, the address m3 is obtained from the content of the address m4.
And writes the value to the address m22 (step 730).

以上のようにして、電車線の本数、偏位アドレス、摺
面幅の各データが求まり、電車線2本の場合には、それ
ぞれアドレスmo,m11,m21,m12,m22に記憶され、また電車
線1本の場合には、それぞれアドレスmo,m11,m12に記憶
されたことになる。これらの各データをペリフェラルイ
ンタフェース303を介してRAM/ROM301のRAMエリアから読
み出し、次段の処理部へ出力して本処理を終了する(ス
テップ740)。
As described above, the data of the number of trolley lines, the deviation address, and the width of the sliding surface are obtained. In the case of two trolley lines, the data are stored at addresses mo, m11, m21, m12, and m22, respectively. In the case of one line, it is stored at addresses mo, m11, and m12, respectively. These data are read out from the RAM area of the RAM / ROM 301 via the peripheral interface 303, output to the next processing unit, and the processing is terminated (step 740).

このように2組のリザルトRAM115の一方への書き込み
と同時に他方のリザルトRAM115から読み出しを行い、プ
ログラム処理を実行し、外部に結果を出力するまでを並
行して行っている。なお、最終の有効画素パルス以内に
電車線摺面幅が検出できるように多少検出幅を広げ、立
ち下がり検知が必ず行われ、エラーにならないようにし
ている。また、1サイクル約4000画素データの中から摺
面幅の立ち上がりおよび立ち下がり検出データのみに絞
り込んだ上、検出データを一時記憶できるので、書き込
みと同時に既に書き込まれた検出データを並行して読み
出しすることができ、ソフト処理が可能となり、従来の
アナログ処理と比較して格段に処理能力が向上し、その
結果立ち上がりおよび立ち下がり検出データから無効な
データを消去し、電車線として適正なデータのみを残
し、電車線本数、摺面幅、偏位アドレスを算出すること
ができる。
As described above, the writing to one of the two result RAMs 115 and the reading from the other result RAM 115 are performed at the same time, the program processing is executed, and the result is output to the outside in parallel. Note that the detection width is slightly widened so that the width of the train line sliding surface can be detected within the last effective pixel pulse, so that the fall detection is always performed and no error occurs. In addition, since only the rising and falling detection data of the sliding surface width is narrowed down from about 4000 pixel data in one cycle and the detection data can be temporarily stored, the already written detection data is read in parallel with writing. Software processing becomes possible, and the processing capacity is remarkably improved as compared with the conventional analog processing.As a result, invalid data is eliminated from the rising and falling detection data, and only the data appropriate for the train line is removed. In addition, the number of train lines, the sliding surface width, and the deviation address can be calculated.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、クロックパル
スに同期して1アドレス毎に走査しながら電車線の摺面
を撮像したアドレス毎の映像信号を所定の基準値と比較
して2値化し、連続する3つのアドレスの2値化信号の
組合せが「000」から「001」(反転論理では「111」か
ら「110」)に変化する最新のアドレスを立ち上がり開
始アドレスとして検出し、また連続する3つのアドレス
の2値化信号の組合せが「111」から「110」(反転論理
では「000」から「001」)に変化する最新のアドレスを
立ち下がり開始アドレスとして検出し、さらに、検出さ
れた立ち下がり開始アドレスと次に検出された立ち上が
り開始アドレスとの差を所定値と比較し、所定値より大
きい場合には前記次に検出された立ち上がり開始アドレ
スから別の電車線が存在すると判定し、所定値より小さ
い場合には前記次に検出された立ち上がり開始アドレス
ではその前に検出された立ち上がり開始アドレスから同
一の電車線が存在すると判定し、電車線毎の立ち上がり
開始アドレスと立ち下がり開始アドレスとに基づいて電
車線の本数、摺面幅および偏位を算出しているので、電
車線の摺面幅の立ち上がりおよび立ち下がりを確実に検
出することができ、ノイズや映像信号レベルの低下を救
済し、安定した計測を行うことができる。また、一回の
走査で電車線の摺面幅だけではなく、本数、または各電
車線の偏位をも同時に得られるので、従来のように偏位
データや本数を求めるための別の手段が不要となり、設
備が簡単になる。
As described above, according to the present invention, a video signal for each address obtained by imaging the sliding surface of a train line while scanning for each address in synchronization with a clock pulse is binarized by comparing with a predetermined reference value. , The latest address in which the combination of the binarized signals of the three consecutive addresses changes from “000” to “001” (“111” to “110” in the inverted logic) is detected as the rising start address, and is detected again. The latest address in which the combination of the binary signals of the three addresses changes from "111" to "110"("000" to "001" in the inverted logic) is detected as the fall start address, and further detected. The difference between the falling start address and the next detected rising start address is compared with a predetermined value.If the difference is larger than the predetermined value, it is determined that another train line exists from the next detected rising start address. If the value is smaller than the predetermined value, the next detected rising start address determines that the same train line exists from the previously detected rising start address. Since the number of train lines, the sliding surface width, and the deviation are calculated based on the start address, the rising and falling of the sliding line width of the train line can be reliably detected, and noise and video signal levels can be detected. The decrease can be relieved, and stable measurement can be performed. In addition, not only the sliding surface width of the train lines but also the number of train lines or the deviation of each train line can be obtained at the same time in one scan, so there is another means for obtaining deviation data and the number of lines as in the past. It becomes unnecessary and the equipment becomes simple.

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

第1図は本発明の一実施例に係わる電車線摩耗処理装置
の構成を示すブロック図、第2図は本発明の他の実施例
に係わる電車線摩耗処理装置の構成を示すブロック図、
第3図(a),(b)はそれぞれ電車線の立ち上がりお
よび立ち下がりを説明する波形図およびタイミングコン
トローラからの各種出力信号を示すタイミングチャー
ト、第4図は第2図の電車線摩耗処理装置の作用を示す
フローチャート、第5図は従来の電車線摩耗処理装置の
説明図、第6図は第5図に示す従来の電車線摩耗処理装
置の映像信号と摺面幅との関係を示す波形図、第7図は
従来の電車線摩耗処理装置の映像信号におけるエラーを
示す説明図である。 11……イメージセンサ、 41……撮像部、 43……比較部、 44……検出部、 45……記憶部、 46……本数算定部、 47……偏位摺面幅算出部。 51……電車線
FIG. 1 is a block diagram showing a configuration of a trolley wire wear treatment apparatus according to one embodiment of the present invention, FIG. 2 is a block diagram showing a configuration of a trolley wire wear treatment apparatus according to another embodiment of the present invention,
3 (a) and 3 (b) are waveform diagrams for explaining rising and falling of a train line and timing charts showing various output signals from a timing controller, respectively, and FIG. 4 is a train line wear processing apparatus of FIG. FIG. 5 is an explanatory view of the conventional electric wire wear processing device, and FIG. 6 is a waveform showing the relationship between the video signal and the sliding surface width of the conventional electric wire wear processing device shown in FIG. FIG. 7 is an explanatory view showing an error in a video signal of the conventional train line wear processing device. 11 image sensor, 41 imaging unit, 43 comparison unit, 44 detection unit, 45 storage unit, 46 number calculation unit, 47 deviating sliding surface width calculation unit. 51 ... Train line

フロントページの続き (72)発明者 饗庭 秀明 東京都港区芝浦1丁目1番1号 株式会 社東芝本社事務所内 (56)参考文献 特開 昭54−138466(JP,A) 特開 昭52−73055(JP,A) (58)調査した分野(Int.Cl.6,DB名) B60L 5/00 - 5/42Continuation of front page (72) Inventor Hideaki Aiba 1-1-1, Shibaura, Minato-ku, Tokyo Inside the Toshiba head office (56) References JP-A-54-138466 (JP, A) JP-A-52- 73055 (JP, A) (58) Field surveyed (Int. Cl. 6 , DB name) B60L 5/00-5/42

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】所定のクロックパルスに同期して1アドレ
ス毎に走査しながら電車線の摺面を撮像する撮像手段
と、 該撮像手段からの前記アドレス毎の映像信号を所定の基
準値と比較して2値化する比較手段と、 該比較手段からの連続する3つのアドレスの2値化信号
の組合せが「000」から「001」(反転論理では「111」
から「110」)に変化する最新のアドレスを立ち上がり
開始アドレスとして検出し、連続する3つのアドレスの
2値化信号の組合せが「111」から「110」(反転論理で
は「000」から「001」)に変化する最新のアドレスを立
ち下がり開始アドレスとして検出する検出手段と、 該検出手段により検出された立ち下がり開始アドレスと
次に検出された立ち上がり開始アドレスとの差を所定値
と比較し、所定値より大きい場合には前記次に検出され
た立ち上がり開始アドレスから別の電車線が存在するこ
とを判定し、所定値より小さい場合には前記次に検出さ
れた立ち上がり開始アドレスではその前に検出された立
ち上がり開始アドレスから同一の電車線が存在すること
を判定し、前記検出手段により検出された立ち上がり開
始アドレスと立ち下がり開始アドレスとに基づいて前記
電車線の本数、摺面幅および偏位を算出する算出手段と
を有することを特徴とする電車線摩耗処理装置。
1. An image pickup means for picking up an image of a sliding surface of a train line while scanning for each address in synchronization with a predetermined clock pulse, and comparing a video signal for each address from the image pickup means with a predetermined reference value. The combination of the comparing means for binarizing the data and the binarized signals of three consecutive addresses from the comparing means is changed from "000" to "001"("111" in the inverted logic).
Is detected as the rising start address, and the combination of the binary signals of three consecutive addresses is changed from "111" to "110" (in the inverted logic, from "000" to "001"). Detecting means for detecting the latest address changing to the falling start address, and comparing a difference between the falling start address detected by the detecting means and the next rising start address with a predetermined value. If the value is larger than the value, it is determined that another train line exists from the next detected rising start address, and if smaller than the predetermined value, the next detected rising start address is detected before that. It is determined from the rising start address that the same train line exists, and the rising start address detected by the detection means and the falling start are detected. Calculating means for calculating the number, the sliding surface width, and the deviation of the lines based on the address.
JP2281793A 1990-10-22 1990-10-22 Train line wear treatment equipment Expired - Lifetime JP2856884B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2281793A JP2856884B2 (en) 1990-10-22 1990-10-22 Train line wear treatment equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2281793A JP2856884B2 (en) 1990-10-22 1990-10-22 Train line wear treatment equipment

Publications (2)

Publication Number Publication Date
JPH04161002A JPH04161002A (en) 1992-06-04
JP2856884B2 true JP2856884B2 (en) 1999-02-10

Family

ID=17644059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2281793A Expired - Lifetime JP2856884B2 (en) 1990-10-22 1990-10-22 Train line wear treatment equipment

Country Status (1)

Country Link
JP (1) JP2856884B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5273055A (en) * 1975-12-15 1977-06-18 Japanese National Railways<Jnr> Trolley line dislocation signal separating circuit
JPS5823564B2 (en) * 1978-04-19 1983-05-16 日本国有鉄道 Trolley wire sliding surface width measurement method

Also Published As

Publication number Publication date
JPH04161002A (en) 1992-06-04

Similar Documents

Publication Publication Date Title
AU576722B2 (en) Optical reader for printed bit-encoded data and method of reading same
US4832049A (en) Apparatus for detecting abnormality of the spinal column
JPS6170407A (en) Instrument for measuring distance
EP0067414A2 (en) Method and apparatus for reading a bar code
JPH05215518A (en) Optical type inspection probe
KR940001000A (en) Adaptive bar code scanner
JP2856884B2 (en) Train line wear treatment equipment
JPS5856972B2 (en) position detection device
JPH06331317A (en) Dimension measuring device
JP2715897B2 (en) IC foreign matter inspection apparatus and method
JPH056549A (en) Reproducing signal processor
JP2576370B2 (en) ID mark reading device
JPS6122837B2 (en)
JP2849311B2 (en) Optical reader
JPS63108204A (en) Size measuring method
JP3275004B2 (en) Inspection device
JP2833006B2 (en) Shading correction circuit
JPH0781960B2 (en) Defect detection device for continuous objects
JPS6126716B2 (en)
JP2001175804A (en) Bar code reader
JPS6230114Y2 (en)
JPH05124461A (en) Wear processing device for electric overhead line
JPS63296461A (en) Image area discriminating device
JP5284115B2 (en) Bar code reader
JPH07120402A (en) Measuring method for transmission distortion and device therefor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071127

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081127

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091127

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101127

Year of fee payment: 12

EXPY Cancellation because of completion of term