JPH09298513A - Optical communication equipment - Google Patents

Optical communication equipment

Info

Publication number
JPH09298513A
JPH09298513A JP8134339A JP13433996A JPH09298513A JP H09298513 A JPH09298513 A JP H09298513A JP 8134339 A JP8134339 A JP 8134339A JP 13433996 A JP13433996 A JP 13433996A JP H09298513 A JPH09298513 A JP H09298513A
Authority
JP
Japan
Prior art keywords
station
slave station
optical communication
slave
signal
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
JP8134339A
Other languages
Japanese (ja)
Inventor
Yukihide Ushio
行秀 牛尾
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP8134339A priority Critical patent/JPH09298513A/en
Publication of JPH09298513A publication Critical patent/JPH09298513A/en
Pending legal-status Critical Current

Links

Landscapes

  • Optical Communication System (AREA)

Abstract

PROBLEM TO BE SOLVED: To realize a communication means not requiring a new optical transmission line by using a communication execution request signal in a slave station so as to minimize the number of times of use of optical communication as required. SOLUTION: A loop transmission channel is formed by the central processing unit 1 decided to be a start point and electric board units 2-5 having an equipment in itself whose start sequence are decided in advance, the optical communication equipment of the central processing unit 1 is used for a master station and the optical communication equipment of the electric board units 2-5 is used for a slave station and optical communication is executed among the master station and the slave stations. Communication data and a synchronization clock sent from the master station are received by the slave station, where they are converted into electric signals. The electric signals are sent in the loop transmission line in the order of the master station, the slave station 1, the slave station 2, the slave station 3, the slave station 4, and the master station 1. Then the content of the communication data are all replaced with input data from each slave station finally and the resulting data are received by the CPU of the master station.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の電気基盤ユ
ニット間の情報交換を実行する光通信装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical communication device for exchanging information between a plurality of electric base units.

【0002】[0002]

【従来の技術】従来、複数の電気基盤ユニット間の情報
交換を実行する光通信装置は、装置全体の動作制御をす
る中央処理装置が有するCPUを光通信の主局と位置付
け、その他の複数の電気基盤ユニットを光通信の従局と
位置付けて、装置内の情報交換を実施するように構成さ
れている。
2. Description of the Related Art Conventionally, an optical communication apparatus for exchanging information between a plurality of electrical base units positions a CPU of a central processing unit for controlling the operation of the entire apparatus as a main station for optical communication, and a plurality of other units. The electric board unit is positioned as a slave station for optical communication to exchange information in the device.

【0003】この光通信の伝送路構成は、主局と複数の
従局が1対1で接続される場合や、主局と複数の従局が
ループ状に接続されるループ式伝送通信手段などがあ
る。ループ式伝送通信手段は主局から送信するデータを
1つの従局が受信し、そして次に位置する従局へ引き継
いだデータを送信する。そして、次々と従局から従局へ
引き継いだデータを受信し送信する。最後には、従局か
ら主局へと引き継いだデータが戻ってくる。
This optical communication transmission line configuration includes a case where a master station and a plurality of slave stations are connected in a one-to-one manner, and a loop type transmission and communication means in which a master station and a plurality of slave stations are connected in a loop. . The loop transmission communication means receives data transmitted from the master station by one slave station and transmits the succeeded data to the slave station located next. Then, the slave station sequentially receives and transmits the data that the slave station has inherited. At the end, the data taken over from the slave station to the master station returns.

【0004】また、情報交換は引き継いだデータにおい
て、予め決められた位置又は識別子で確保された情報部
分を各従局が主局からの出力データとして取り込み、デ
ータの同じ位置にその従局で発生した入力データを付加
することで、最終的には各従局の入力データは主局に取
り込まれる。
Further, in the data which has been exchanged for information exchange, each slave station takes in an information portion secured at a predetermined position or identifier as output data from the master station, and inputs generated at that slave station at the same position of the data. By adding data, the input data of each slave station is finally taken in by the master station.

【0005】このようにループ式伝送通信手段は、1種
類の信号に対し各局が有する受光素子や発光素子が1組
あれば光通信の伝送路が構成できるため、例えば主局と
複数の従局が1対1で接続される場合などの伝送路に比
べて、容易な構成で比較的低コストで実現できる。
As described above, in the loop type transmission communication means, a transmission line for optical communication can be constructed if there is only one set of light receiving element or light emitting element possessed by each station for one type of signal, so that, for example, a master station and a plurality of slave stations are provided. Compared to a transmission line such as one-to-one connection, it can be realized with a simple structure and at a relatively low cost.

【0006】一方、伝送信号形態については同期式と非
同期式とに大別できるが、非同期式の場合は、各局毎に
クロック発生器と同期取り回路等が必要となるため、コ
スト的にはクロックとデータを一対にして2本の伝送路
で転送する同期式を用いる場合が多い。
On the other hand, the transmission signal form can be roughly classified into a synchronous type and an asynchronous type, but in the case of the asynchronous type, a clock generator and a synchronization circuit etc. are required for each station, so that the clock is costly. In many cases, a synchronous method is used in which data and data are paired and transferred via two transmission lines.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述の
従来例であるループ式伝送通信手段では、複数の従局の
入力情報の変化を時間と共に検知するために、或る特定
の短い周期で光通信の実行を繰り返し行わなくてはなら
ない。このことは、主局であるCPUからの出力情報の
状態変化の有無に拘わらず、また従局である電気基盤ユ
ニットの入力情報の変化の有無に拘わらず、光通信を実
行し続けなくてはならないため、特に発光素子である赤
外LEDが短命化する虞れがある。つまり、装置に電源
が入っている限り、従局での入力情報を常に把握するた
めには、主局は入出力情報の収集を常に実行しなくては
ならない。そのことにより、ループ式伝送通信手段では
次のような欠点がある。
However, in the above-mentioned conventional loop type transmission communication means, in order to detect a change in the input information of a plurality of slave stations with time, the optical communication of a certain short cycle is performed. The execution must be repeated. This means that the optical communication must be continuously executed regardless of whether or not there is a change in the state of the output information from the CPU, which is the master station, and whether or not there is a change in the input information of the electrical base unit, which is the slave station. Therefore, there is a fear that the life of the infrared LED, which is a light emitting element, may be shortened. In other words, as long as the device is powered on, the master station must always collect input / output information in order to always grasp the input information at the slave station. As a result, the loop-type transmission communication means has the following drawbacks.

【0008】(1) より長寿命の赤外LEDを用いなけれ
ばならないために、コストアップとなる。
(1) Since the infrared LED having a longer life has to be used, the cost is increased.

【0009】(2) 一般的な赤外LEDで構成する場合
に、従局での入力情報に変化があった場合に、主局に対
して通信実行の要求を発するように構成する。そのこと
で、主局は従局に対する出力情報に変化があったとき、
或いは複数の従局からの通信実行要求信号を受信したと
きにのみ光通信を実行することにより、必要最低限の回
数で光通信が実行できる。従って、赤外LEDを延命し
なくても対応できるが、通信実行要求信号を追加すると
いうことは、主局において一対の発光素子と受光素子を
新たに設ける必要があり、その分のコストアップが生ず
る。
(2) In the case of using a general infrared LED, when the input information in the slave station changes, a request to execute communication is issued to the master station. Therefore, when the master station changes the output information for the slave station,
Alternatively, the optical communication is executed only when the communication execution request signals from the plurality of slave stations are received, so that the optical communication can be executed a minimum number of times. Therefore, although it is possible to cope without extending the life of the infrared LED, the addition of the communication execution request signal requires a pair of light emitting element and light receiving element to be newly provided in the main station, which increases the cost. Occurs.

【0010】(3) 発光素子は赤外LEDであるため、何
れかの局の発光素子や受光素子等の装置に異常が発生し
た場合に、その故障局を探して交換するために多大な時
間が必要になる。つまり、1対1通信では返信のない局
のユニット交換で済むところを、ループ状で構成されて
いるため異常な局を特定することが難しい。
(3) Since the light emitting element is an infrared LED, when an abnormality occurs in the device such as the light emitting element or the light receiving element of any station, it takes a lot of time to find and replace the faulty station. Will be required. In other words, it is difficult to identify an abnormal station because the loop-shaped configuration replaces a station that does not respond in one-to-one communication.

【0011】本発明の目的は、上述の問題点を解消し、
従局における通信実行要求信号を用いて光通信の使用回
数を必要最低限に抑制し、かつ新たな光伝送路を追加し
ない通信手段を実現すると共に、光通信のループ状伝送
路の異常を検出し、異常個所を指示することができる光
通信装置を提供することにある。
An object of the present invention is to solve the above-mentioned problems,
Using the communication execution request signal in the slave station, it realizes a communication means that suppresses the number of times of optical communication use to the necessary minimum and does not add a new optical transmission line, and detects an abnormality in the loop transmission line of optical communication. An object of the present invention is to provide an optical communication device capable of indicating an abnormal point.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
の本発明に係る光通信装置は、複数の電気基盤ユニット
間の情報交換を実行する光通信手段であって、主局と複
数の従局によりループ状に接続したループ式伝送通信手
段を有する光通信装置において、前記複数の従局が有す
る受信装置には、上位局から発する光信号を受信する受
光素子を有し、前記上位局から発する光信号とは別に前
記受光素子に光信号を照射可能な位置に設けた第2の発
光素子を有し、前記第2の発光素子は前記上位局から発
する光信号を受信する従局自身により点滅制御する自己
発光指示制御手段を有することを特徴とする。
An optical communication apparatus according to the present invention for achieving the above object is an optical communication means for exchanging information between a plurality of electrical base units, and is a master station and a plurality of slave stations. In an optical communication device having a loop-type transmission communication means connected in a loop, the receiving device included in the plurality of slave stations has a light receiving element that receives an optical signal emitted from a higher station, and the light emitted from the higher station. In addition to the signal, the light receiving element has a second light emitting element provided at a position capable of irradiating an optical signal, and the second light emitting element is controlled to blink by the slave station itself which receives the optical signal emitted from the upper station. It is characterized by having a self-luminous instruction control means.

【0013】[0013]

【発明の実施の形態】本発明を図示の実施例に基づいて
詳細に説明する。図1は本光通信のループ状伝送路を示
すブロック回路構成図である。図1において、装置全体
の動作を制御する中央処理装置1に対し、複数の電気基
盤ユニット2〜5が設けられている。本実施例の光通信
は、中央処理装置1を起点に装置内に配置された電気基
盤ユニット2〜5を閉ループ光路の都合に応じて、順番
を予め決定してループ状伝送路を構成している。そし
て、中央処理装置1が有する光通信装置を主局とし、電
気基盤ユニット2〜5が有する光通信装置を従局とし
て、光通信を実行する。なお、本実施例で説明するルー
プ状伝送路を用いた光通信形態は、本発明を説明する上
でのものであり、特に限定された光通信形態ではない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail with reference to the illustrated embodiment. FIG. 1 is a block circuit configuration diagram showing a loop-shaped transmission line of the present optical communication. In FIG. 1, a plurality of electric board units 2 to 5 are provided for a central processing unit 1 that controls the operation of the entire apparatus. In the optical communication of the present embodiment, the electrical processing base units 2 to 5 arranged in the apparatus from the central processing unit 1 are preliminarily determined in order in accordance with the convenience of the closed loop optical path to form a loop transmission path. There is. Then, the optical communication device included in the central processing unit 1 is used as a master station, and the optical communication devices included in the electrical base units 2 to 5 are used as slave stations to perform optical communication. The optical communication mode using the loop-shaped transmission line described in this embodiment is for explaining the present invention, and is not particularly limited.

【0014】図2は従局の回路構成図であり、11はパ
ワーオンリセット回路であり、抵抗器とコンデンサによ
る時定数回路である。12は上位局から発する光信号を
受信する受光素子と光電変換回路を有する受光部であ
り、13は同期用クロックを受信する受信部、14はL
ED駆動回路とLEDを有する発光部であって、受光部
13に属している。15は次の従局へ同期用クロックの
を発するLEDとLED駆動回路から成る発光部であ
り、16は光信号を発する同様の発光部である。
FIG. 2 is a circuit configuration diagram of the slave station, and 11 is a power-on reset circuit, which is a time constant circuit composed of a resistor and a capacitor. Reference numeral 12 is a light receiving unit having a light receiving element for receiving an optical signal emitted from a higher station and a photoelectric conversion circuit, 13 is a receiving unit for receiving a synchronizing clock, and 14 is L
It is a light emitting unit having an ED drive circuit and an LED, and belongs to the light receiving unit 13. Reference numeral 15 is a light emitting portion including an LED for emitting a synchronization clock to the next slave station and an LED driving circuit, and 16 is a similar light emitting portion for emitting an optical signal.

【0015】17は光電変換されたデータ長をシフトラ
ッチするシフトレジスタであり、18はシフトレジスタ
17を制御するシフトレジスタ制御用タイミング取り回
路であって、主にカウンタ回路で構成されている。19
〜22はモータ、ソレノイドから成る出力部であって、
シフトレジスタ17からの出力される主局からの出力デ
ータはラッチ回路23〜26で保持され、各駆動回路2
7〜30により駆動されるようになっている。31〜3
4はフォトインタラプタ、タクトスイッチから成る入力
部であって、レシーブ回路35〜38で受け、ラッチ回
路39〜42で保持されシフトレジスタ17に入力され
主局へ送信されるようになっている。
Reference numeral 17 is a shift register for shifting and latching the photoelectrically converted data length, and 18 is a shift register controlling timing adjusting circuit for controlling the shift register 17, which is mainly composed of a counter circuit. 19
22 is an output unit consisting of a motor and a solenoid,
The output data from the main station, which is output from the shift register 17, is held in the latch circuits 23 to 26, and each of the drive circuits 2
It is driven by 7 to 30. 31-3
Reference numeral 4 denotes an input unit composed of a photo interrupter and a tact switch, which is received by the receive circuits 35 to 38, held by the latch circuits 39 to 42, input to the shift register 17, and transmitted to the main station.

【0016】43はイクスクルーシブOR回路44〜4
7の出力を入力とする多入力OR回路、48はシフトレ
ジスタ制御用タイミング取り回路18からの制御信号で
出力の有無が決定するAND回路、49はOR回路であ
る。
Reference numeral 43 is an exclusive OR circuit 44-4.
A multi-input OR circuit that receives the output of 7 as an input, 48 is an AND circuit that determines the presence or absence of output by the control signal from the shift register controlling timing circuit 18, and 49 is an OR circuit.

【0017】なお、主局については、図2に示す従局に
対して、シフトレジスタ17の並列入出力端子に接続さ
れているラッチ回路23〜26、39〜42に、中央処
理装置1のCPUが接続された構成とされ、基本的には
従局の構成と同様なので図示は省略する。
As for the master station, the CPU of the central processing unit 1 is connected to the latch circuits 23 to 26 and 39 to 42 connected to the parallel input / output terminals of the shift register 17 as compared with the slave station shown in FIG. The configuration is connected and basically the same as the configuration of the slave station, and therefore the illustration is omitted.

【0018】主局から発した同期用クロックは、光信号
として次に位置する従局の受信部13で受光され電気信
号に変換される。通信データは受光部12で受信され、
電気信号に変換されてシフトレジスタ17のシフトイン
端子に入力される。同期用クロックの一方はシフトレジ
スタ17のシフトクロックとして、またシフトレジスタ
制御用タイミング取り回路18に入力されて後述する通
信データ処理が実行される。もう一方は発光部15によ
り再び光信号に変換され、次に位置する局へと光伝送さ
れる。
The synchronizing clock emitted from the master station is received as an optical signal by the receiving section 13 of the slave station located next and is converted into an electrical signal. Communication data is received by the light receiving unit 12,
It is converted into an electric signal and input to the shift-in terminal of the shift register 17. One of the synchronizing clocks is used as a shift clock of the shift register 17 and is input to the shift register controlling timing circuit 18 to execute communication data processing described later. The other side is converted into an optical signal again by the light emitting unit 15 and is optically transmitted to the next station.

【0019】図3は受信部13の構成図を示し、電気基
盤ユニットを構成する基盤51上に発光部14である信
号チェック用LED52及び受光素子53が設けられて
おり、受光素子53はLED52が発光した光が入射す
る位置に配置されている。LED52、受光素子53は
窓54が設けられた遮光ケース55により覆われ、受光
素子53は窓54を介して上位局からの光信号を受光可
能とされており、受光素子53は上位局からの光信号と
LED52からの光信号を光状態でワイヤードORが可
能になるよう構成されている。
FIG. 3 is a block diagram of the receiving section 13. A signal checking LED 52 and a light receiving element 53, which are the light emitting section 14, are provided on a board 51 which constitutes an electric board unit. It is arranged at a position where the emitted light is incident. The LED 52 and the light receiving element 53 are covered with a light shielding case 55 provided with a window 54, and the light receiving element 53 is capable of receiving an optical signal from a higher station through the window 54. The optical signal and the optical signal from the LED 52 are configured to be wired OR in an optical state.

【0020】このように、LED52は受光素子53に
対して間近に配置されているため、最も安価である基盤
チェック用のLED52で代用可能であり、極く簡単で
容易な構成で光信号のワイヤードORが実現できる。
As described above, since the LED 52 is arranged close to the light receiving element 53, the LED 52 for substrate check, which is the cheapest, can be used as a substitute, and the wired optical signal can be formed with a very simple and easy structure. OR can be realized.

【0021】次に、図4のタイミングチャート図を用い
て、本実施例での光通信の通信データ処理について説明
をする。このタイミングチャート図は主局から送信され
るデータとクロックを入力とし、主局1での処理の他
に、従局2、従局3、従局4についても図示している。
Next, communication data processing of optical communication in this embodiment will be described with reference to the timing chart of FIG. In this timing chart, the data and clock transmitted from the master station are input, and in addition to the processing in the master station 1, the slave station 2, the slave station 3, and the slave station 4 are also illustrated.

【0022】主局から発した通信データと同期用クロッ
クは、従局の各受光部12、受信部13により受信され
電気信号に変換される。同期用クロックはシフトレジス
タ制御用タイミング取り回路18に入力され、主に分周
されて所定のタイミング信号を発し、シフトレジスタ1
7を制御する。なお、本実施例における1従局のデータ
長は8ビットに定義されている。
The communication data and the synchronizing clock transmitted from the master station are received by the light receiving sections 12 and the receiving sections 13 of the slave stations and converted into electric signals. The synchronization clock is input to the shift register control timing acquisition circuit 18 and is mainly frequency-divided to generate a predetermined timing signal.
7 is controlled. The data length of one slave station in this embodiment is defined as 8 bits.

【0023】従局では、通信データの始めから8ビット
分シフトレジスタ17にシフトインしたところでラッチ
信号が出力され、並列出力端子のラッチ回路23〜26
に主局からの出力データとして各出力部を制御する。な
お、説明の都合上、主局の次に位置する従局を従局1と
し、それ以降の従局を順に従局2、従局3、従局4と定
義する。従って、ループ状伝送路では、主局、従局1、
従局2、従局3、従局4、主局の順に伝達されてゆくこ
とになる。
In the slave station, a latch signal is output when 8 bits are shifted into the shift register 17 from the beginning of the communication data, and the latch circuits 23 to 26 of the parallel output terminals are output.
It controls each output unit as output data from the main station. For convenience of description, the slave station located next to the master station is defined as the slave station 1, and the slave stations subsequent thereto are defined as the slave station 2, the slave station 3, and the slave station 4 in order. Therefore, in the loop transmission line, the master station, the slave station 1,
The slave station 2, the slave station 3, the slave station 4, and the master station are transmitted in this order.

【0024】また、ラッチ信号は同時に電気基盤ユニッ
ト2〜5の入力部からの状態をラッチ回路39〜42で
保持され、シフトレジスタ17に取り入れられて順次に
シフトアウトされる。従って、従局1では通信データの
始めに8ビットが従局1への出力データから従局1から
の入力データへと入れ換わったことになる。同様に、従
局2では受信した通信データをシフトインして、始めか
ら24ビットごとにラッチ信号が出力され、通信データ
を入れ換える。従局3、従局4でもラッチ信号の出力タ
イミングが異なるだけで後は同様に動作する。そして、
最終的に通信データ内容は全て各従局からの入力データ
に置き換えられて、主局のCPUへ取り込まれる。
The states of the latch signals from the input portions of the electric board units 2 to 5 are simultaneously held in the latch circuits 39 to 42, taken into the shift register 17, and sequentially shifted out. Therefore, in the slave station 1, the 8 bits at the beginning of the communication data are replaced with the output data from the slave station 1 to the input data from the slave station 1. Similarly, the slave station 2 shifts in the received communication data, and a latch signal is output every 24 bits from the beginning to replace the communication data. The slave stations 3 and 4 operate similarly except that the output timing of the latch signal is different. And
Finally, the contents of the communication data are all replaced with the input data from each slave station and taken into the CPU of the master station.

【0025】なお、主局においての通信制御動作につい
て説明をする前に、図2を用いて従局で発生する通信要
求信号について説明することにする。各従局には、主局
への入力データに対し1対1でイクスクルーシブOR回
路44〜47が構成されている。これらのイクスクルー
シブOR回路44〜47はレシーブ回路35〜38から
ラッチ回路39〜42、そして、シフトレジスタ17の
並列入力端子に接続される中で、ラッチ回路39〜42
の入力状態と出力状態を比較して状態変化の有無を検出
する。
Before explaining the communication control operation in the master station, the communication request signal generated in the slave station will be described with reference to FIG. Each slave station is provided with exclusive OR circuits 44 to 47 for the input data to the master station one to one. These exclusive OR circuits 44 to 47 are connected from the receive circuits 35 to 38 to the latch circuits 39 to 42 and the parallel input terminals of the shift register 17, and the latch circuits 39 to 42.
The presence or absence of state change is detected by comparing the input state and the output state of.

【0026】つまり、通信実行時のシフトレジスタ制御
用タイミング取り回路18からのラッチ信号が出力され
るまでの間、保持されたシフトアウトしたラッチ回路3
9〜42の出力に対して、変化更新された入力状態にな
った場合に、信号状態が異なることによりイクスクルー
シブOR回路44〜47が反応する。勿論、入力状態の
変化が無い場合にはイクスクルーシブOR回路44〜4
7は反応しない。
That is, the latch circuit 3 that has been shifted out and held until the latch signal is output from the timing register circuit 18 for controlling the shift register during communication execution.
When the input state is changed and updated with respect to the outputs of 9 to 42, the exclusive OR circuits 44 to 47 react due to the different signal states. Of course, if there is no change in the input state, the exclusive OR circuits 44-4
7 does not react.

【0027】図5はタイミングチャート図を示し、これ
らのイクスクルーシブOR回路44〜47が各入力に構
成されているため、最新の通信実行後に何れか1つの入
力状態が変化すれば、OR回路43の出力に通信要求信
号が発生する。このように通信要求信号は各従局単位で
発生するよう構成されており、通信実行中はシフトレジ
スタ制御用タイミング取り回路18により、AND回路
48で遮断されている。通信実行中を判断する方法につ
いては特に限定されないが、例えば同期用クロックが入
力されているうちは通信中と判断すればよい。具体的に
は、シフトレジスタ制御用タイミング取り回路18に分
周回路を1段増加し、1/128分周出力でAND回路
48の入力を制御する。
FIG. 5 shows a timing chart. Since these exclusive OR circuits 44 to 47 are configured for each input, if any one of the input states changes after the latest communication is executed, the OR circuit A communication request signal is generated at the output of 43. As described above, the communication request signal is generated for each slave station, and is cut off by the AND circuit 48 by the timing register circuit 18 for shift register control during communication execution. The method for determining whether communication is in progress is not particularly limited, but it may be determined that communication is in progress while the synchronization clock is being input, for example. Specifically, the frequency divider circuit is increased by one stage in the shift register control timing adjustment circuit 18, and the input of the AND circuit 48 is controlled by the 1/128 frequency division output.

【0028】従って、非通信実行中に通信要求信号が発
生すると受信部13内に設けられた発光部14のLED
52が発光し、通信中に同期用クロック伝送路として使
用していた伝送路にワイヤードORされた光信号が重畳
される。
Therefore, when a communication request signal is generated during non-communication, the LED of the light emitting section 14 provided in the receiving section 13
52 emits light, and the wired OR optical signal is superimposed on the transmission path used as the synchronization clock transmission path during communication.

【0029】このように、主局を起点とするループ状伝
送路の光通信が実行される中で、各従局は通信が実行さ
れていないときに通信要求信号を検出し、同期用クロッ
クラインである伝送路を利用して主局へ信号を伝達する
動作を実行している。この通信要求信号により、光通信
による情報交換を信号状態が変化したときのみ実行する
ため、必要最低限の通信回数で情報伝達が行われる。つ
まり、主局である中央処理装置1は従局である各電気基
盤ユニット2〜5への出力信号に変化があったときと、
各従局からの通信要求信号を受信したときにのみ通信を
実行するよう設定することで、必要最低限の通信回数で
情報伝達が実行される。その結果として、光通信装置の
延命化を図ることができる。
As described above, while the optical communication of the loop-shaped transmission line starting from the master station is executed, each slave station detects the communication request signal when the communication is not executed, and the slave clock station uses the clock line for synchronization. An operation of transmitting a signal to the main station is performed using a certain transmission path. By this communication request signal, information exchange by optical communication is executed only when the signal state changes, so that information is transmitted with the minimum necessary number of times of communication. That is, when the central processing unit 1 which is the master station changes the output signals to the electric base units 2 to 5 which are slave stations,
By setting the communication to be executed only when the communication request signal from each slave station is received, the information transmission is executed with the minimum necessary number of times of communication. As a result, the life of the optical communication device can be extended.

【0030】主局での通信制御について図6のフローチ
ャート図を用いて説明をする。なお、主局の回路構成は
従局と同様な通信装置、受信部を有し、シフトレジスタ
から成るものであり、CPUがシフトレジスタの並列入
出力端子に接続され、かつCPUによる制御が実行され
る。また、この場合のシフトレジスタのビット長は、8
ビットデータの従局数分である32ビット構成とされて
いる。なお、この主局の回路構成は本発明に関与しない
ため図示を省略している。
Communication control in the main station will be described with reference to the flowchart of FIG. The circuit configuration of the master station has a communication device and a receiver similar to those of the slave station and is composed of a shift register. The CPU is connected to the parallel input / output terminals of the shift register and the control by the CPU is executed. . The bit length of the shift register in this case is 8
It has a 32-bit structure which is the number of slave stations of bit data. The circuit configuration of this main station is not shown because it does not participate in the present invention.

【0031】図6においては、説明を容易にするため、
装置の光通信制御以外の制御については省略している。
CPUのメインプログラムは装置の各制御をそれぞれタ
スク形式で支配しており、所定周期で各タスクを入力し
て並列処理を実行している。図6に示すプログラムのフ
ローはこのタスクの1つであり、本実施例での光通信を
制御する。
In FIG. 6, for ease of explanation,
Controls other than the optical communication control of the device are omitted.
The main program of the CPU controls each control of the device in a task form, and inputs each task at a predetermined cycle to execute parallel processing. The flow of the program shown in FIG. 6 is one of the tasks and controls the optical communication in this embodiment.

【0032】図6において、メインプログラムから光通
信タスクが入力されると、ステップ70でスタートし、
ステップ72で電源が投入されてから5秒経過したかを
チェックする。これは、後述する第2、第3の実施例で
述べるループ状伝送路の異常チェックを実行するか否か
を判断するものである。本実施例では、ステップ71に
移らずにステップ72からステップ73へ移る。ステッ
プ73では、CPU処理における通信の有無を出力デー
タ更新フラグでチェックする。これは、各制御タスク中
で電気基盤ユニットへの出力データ更新がなされたと
き、所定のメモリに指示データを保持するとセットされ
るフラグであって、複数の電気基盤ユニット2〜5の出
力データの内の何れか1つでも更新されると、光通信要
求としてセットされる。
In FIG. 6, when an optical communication task is input from the main program, it starts at step 70,
In step 72, it is checked whether 5 seconds have passed since the power was turned on. This is to determine whether or not to execute a loop-shaped transmission line abnormality check described in the second and third embodiments described later. In this embodiment, the process proceeds from step 72 to step 73 without proceeding to step 71. In step 73, the presence or absence of communication in the CPU processing is checked by the output data update flag. This is a flag that is set when the instruction data is held in a predetermined memory when the output data to the electric board unit is updated in each control task. If any one of them is updated, it is set as an optical communication request.

【0033】出力データ更新が無い場合にはリセット状
態であるためステップ74に進み、光通信のための同期
用クロック出力端子を入力モードに切換える。そして、
ステップ75で前述した従局からの通信要求信号をチェ
ックする。通信要求信号が無いと判断すると、ステップ
76で入力モードに切換えた同期用クロック出力端子を
再び出力モードに戻すために切換えを実行する。そし
て、ステップ77で本タスクを終了し再び入力されるの
を待つ。
If the output data is not updated, the reset state is entered, and therefore the process proceeds to step 74, and the synchronizing clock output terminal for optical communication is switched to the input mode. And
In step 75, the communication request signal from the slave station described above is checked. If it is determined that there is no communication request signal, switching is executed to return the synchronizing clock output terminal switched to the input mode in step 76 to the output mode again. Then, in step 77, this task is terminated and the input is waited for again.

【0034】一方、ステップ73で出力データ更新があ
ると判断された場合、又はステップ75で通信要求信号
を受信していると判断した場合にはステップ78に移
り、光通信の実行を実施する。ステップ78では、ステ
ップ74で同期用クロック出力を入力モードに切換えた
ものを出力モードに戻し、同期用クロック信号を出力可
能にする。そして、ステップ79で通信のための出力デ
ータをシフトレジスタに移行して、ステップ80で同期
用クロックの出力数を制御するクロック計数値をリセッ
トする。
On the other hand, if it is determined in step 73 that the output data has been updated, or if it is determined in step 75 that the communication request signal has been received, the process proceeds to step 78, and optical communication is executed. In step 78, the synchronization clock output switched to the input mode in step 74 is returned to the output mode, and the synchronization clock signal can be output. Then, in step 79, the output data for communication is transferred to the shift register, and in step 80, the clock count value for controlling the output number of the synchronization clock is reset.

【0035】ステップ81では、同期用クロックを出力
することでシフトレジスタにセットされた出力データの
シフト動作を開始する。そして、出力した同期用クロッ
ク計数をステップ82でチェックし、ステップ83でク
ロック計数値をインクリメントしてステップ81に戻
る。このステップ81からステップ83を繰り返し実行
することで、同期用クロック計数値が所定値に達してス
テップ82からステップ84に移る。ステップ84に移
ると、シフトレジスタには図4のタイミングチャート図
で示すように、各従局からの返信入力データがシフトイ
ンされている。従って、ステップ84でデータ情報をシ
フトレジスタから読み込み、所定のメモリに格納され
る。データインされた情報は、本タスク以外の制御タス
クで個々に引き出されて装置全体の動作制御が実行され
る。
At step 81, the shift operation of the output data set in the shift register is started by outputting the synchronizing clock. Then, the output synchronization clock count is checked in step 82, the clock count value is incremented in step 83, and the process returns to step 81. By repeating the steps 81 to 83, the synchronization clock count value reaches a predetermined value, and the process moves from step 82 to step 84. At step 84, the reply input data from each slave station is shifted in the shift register as shown in the timing chart of FIG. Therefore, in step 84, the data information is read from the shift register and stored in a predetermined memory. The data-in information is individually extracted by a control task other than this task, and the operation control of the entire apparatus is executed.

【0036】以上説明したように、第1の実施例では本
来は中央処理装置1から各電気基盤ユニット2〜5への
出力データを伝達する光通信実行のためのループ状伝送
路において、主局を起点とする光通信を実行していると
きには、従局から発する通信要求信号をゲート回路で遮
断して光通信を実行し、一方で同期用クロック計数を検
出することで、主局を起点とする光通信を実行していな
いと判断すると、ゲート回路を開いて従局から発する通
信要求信号を主局に伝達できるようにしている。
As described above, in the first embodiment, the main station is originally in the loop transmission line for executing the optical communication for transmitting the output data from the central processing unit 1 to each of the electric base units 2-5. When the optical communication starting from the starting point is executed, the master station is set to the starting point by blocking the communication request signal from the slave station with the gate circuit and executing the optical communication, while detecting the synchronization clock count. When it is determined that the optical communication is not being executed, the gate circuit is opened so that the communication request signal issued from the slave station can be transmitted to the master station.

【0037】また、通信要求信号を伝達する伝送路は、
受光した信号をそのまま送信発光する同期用クロック伝
送路中の受信部に発光素子を内蔵し、通信要求信号に応
じて点滅制御することで、光信号レベルでのワイヤード
ORがなされ、主局まで光伝送が可能になる。また、従
局は光通信を実行していないときに同期用クロック伝送
路を検知することで、従局からの通信要求の有無を確認
できる。
The transmission line for transmitting the communication request signal is
A light-emitting element is built in the receiving part in the synchronization clock transmission line that transmits the received signal as it is and emits light. By controlling the blinking according to the communication request signal, wired OR at the optical signal level is performed and the light is transmitted to the main station. Transmission becomes possible. Further, the slave station can detect the presence / absence of a communication request from the slave station by detecting the synchronization clock transmission line when not performing optical communication.

【0038】従って、光通信を実行する1つのループ状
伝送路は、新たな伝送路を増設せずに本来の主局を起点
とする光通信以外に、従局自身が容易にこの伝送路に入
り込め、予め定義した別のことを意味する従局からの信
号を主局に伝達できる。これにより、光通信は新たに光
伝送路を増設することなく、主局でのデータ更新時、或
いは従局からのデータ更新に伴う通信要求時にのみ通信
を実行でき、必要最低限の回数で情報伝達が実施され、
光通信装置のコストアップを抑え長寿命化な対応でき
る。
Therefore, one loop-shaped transmission line for executing optical communication can be easily entered by the slave station itself in addition to the optical communication starting from the original master station without adding a new transmission line. In addition, a signal from a slave station, which means another predefined meaning, can be transmitted to the master station. As a result, optical communication can be executed only when data is updated at the master station or when a communication request is issued from a slave station due to data update without newly adding an optical transmission line, and information is transmitted at the minimum necessary number of times. Is carried out,
The cost increase of the optical communication device can be suppressed and the service life can be extended.

【0039】次に、図7のタイミングチャート図と図8
のフローチャート図を用いて、第2の実施例について説
明をする。なお、第2の実施例は第1の実施例と同様に
本来の光通信のためのループ状伝送路に新たな意味を持
つ第2の信号源を同期用クロック信号の受信伝送路に付
加している。ただし、第1の実施例の通信回数を必要最
低限にするためのものではなく、光通信のループ状伝送
路の断線などの異常チェックを行うものである。
Next, the timing chart of FIG. 7 and FIG.
The second embodiment will be described with reference to the flowchart of FIG. In the second embodiment, as in the first embodiment, a second signal source having a new meaning is added to the original loop transmission line for optical communication to the synchronization clock signal reception transmission line. ing. However, this is not for minimizing the number of times of communication in the first embodiment, but for checking an abnormality such as disconnection of a loop transmission line of optical communication.

【0040】図2において、同期用クロック信号を受信
する受信部13に内蔵された発光部14は、第1の実施
例の通信要求信号の他にパワーオンリセット回路11か
らの出力信号によっても、発光部14の点滅制御が実行
できるようになっている。また、第2の実施例での光通
信は、図6に示すように電源投入から5秒間は通信動作
を実行しないように設定されている。つまり、第2の実
施例では電源投入から光通信動作が実行されるまでの間
に、ループ状の伝送路の状態チェックを実行する。
In FIG. 2, the light emitting portion 14 built in the receiving portion 13 for receiving the synchronizing clock signal is provided with an output signal from the power-on reset circuit 11 in addition to the communication request signal of the first embodiment. The flashing control of the light emitting unit 14 can be executed. Further, the optical communication in the second embodiment is set so that the communication operation is not executed for 5 seconds after the power is turned on, as shown in FIG. In other words, in the second embodiment, the state check of the looped transmission line is executed from the time when the power is turned on until the optical communication operation is executed.

【0041】各従局が有するパワーオンリセット回路1
1は、従局毎にパワーオンリセット信号の時間が異なっ
て設定されている。具体的な回路は特に図示していない
が、極く一般的な抵抗器とコンデンサにより構成される
リセット回路であって、時定数回路の定数を換えて対応
している。図7は各従局のリセット時間を示すタイミン
グチャート図を示し、リセット時間は主局の光信号を受
信時点から見て、最も近い従局4から従局1へと順にリ
セット時間が長くなるように設定されている。更に、主
局は矢印で示すように、予め設定されたタイミングで光
通信のループ状伝送路の同期用クロックラインを検出す
る。
Power-on reset circuit 1 of each slave station
1 is set so that the time of the power-on reset signal is different for each slave station. Although a specific circuit is not shown in the drawing, it is a reset circuit composed of a very general resistor and capacitor, and the constant of the time constant circuit is changed to correspond to it. FIG. 7 is a timing chart showing the reset time of each slave station. The reset time is set so that the reset time becomes longer from the closest slave station 4 to slave station 1 in sequence when the optical signal of the master station is received. ing. Further, as shown by the arrow, the main station detects the synchronizing clock line of the loop transmission line of optical communication at a preset timing.

【0042】電源投入直後の主局に伝送される同期用ク
ロックによる信号は、従局1から従局4までの光による
ワイヤードORが伝達される。その後に、予め設定され
た時間、本実施例の場合は2.3秒付近で従局4がオフ
し、そして同様に予め設定された時間間隔、本実施例の
場合は0.5秒の間隔で順次に従局3、従局2、従局1
とオフされていく。一方、主局は従局4がオン中に同期
用クロックでの信号をチェックすることで、従局4から
のループ状伝送路が正常であることを確認できる。そし
て、従局4がオフしかつ従局3がオン中に、同期用クロ
ックによる信号をチェックすることにより、同様に従局
3からのループ状伝送路が正常であることが確認でき
る。このように、従局2、従局2へとループ状伝送路の
チェックが可能となる。
The signal from the synchronization clock transmitted to the master station immediately after the power is turned on is transmitted by the wired OR of light from the slave stations 1 to 4. After that, the slave station 4 is turned off at a preset time, in the vicinity of 2.3 seconds in the case of this embodiment, and similarly at a preset time interval, in the case of this embodiment, at an interval of 0.5 seconds. Slave station 3, slave station 2, slave station 1
Is turned off. On the other hand, the master station can confirm that the loop transmission line from the slave station 4 is normal by checking the signal at the synchronization clock while the slave station 4 is on. Then, while the slave station 4 is off and the slave station 3 is on, it is possible to confirm that the loop transmission line from the slave station 3 is normal by checking the signal based on the synchronization clock. In this way, it becomes possible to check the slave station 2 and the slave station 2 for the looped transmission path.

【0043】仮に、図7に示すように従局2の伝送路に
異常があった場合には、従局3までのループ状伝送路オ
フまでは正常に受信できるが、従局2では信号がオフの
まま検出され、従局2のエラーが検出できる。なお、第
2の実施例では複数のループ状伝送路の異常があって
も、故障個所判断は1つでしか検出できない。つまり、
従局2のエラーが検出できるものの、他の従局について
は不明である。しかしループ状伝送路の場合は、1つで
も伝送路が断たれると機能を果たせないことより、サー
ビスマンコールによる故障回避が必要となる。従って、
故障個所が1個所でも発見されればよく、その後は修理
中にループ状伝送路のエラー個所を個々に対処してゆけ
ばよい。なお、1回の制御で複数の異常個所の全てが指
摘できる制御例については、第3の実施例で述べること
にする。
If there is an abnormality in the transmission line of the slave station 2 as shown in FIG. 7, normal reception is possible until the looped transmission line to the slave station 3 is turned off, but the signal remains off in the slave station 2. As a result, the error of the slave station 2 can be detected. In addition, in the second embodiment, even if there are abnormalities in a plurality of loop-shaped transmission lines, only one failure point determination can be detected. That is,
Although the error of the slave station 2 can be detected, other slave stations are unknown. However, in the case of a loop-shaped transmission line, if even one transmission line is cut off, it will not be able to function, so it is necessary to avoid a failure by a serviceman call. Therefore,
It suffices if even one failure point is found, and then the error points of the loop transmission line are individually dealt with during repair. Note that a control example in which all of a plurality of abnormal points can be pointed out by one control will be described in the third embodiment.

【0044】次に、図8のフローチャート図を用いて、
主局での制御について説明をする。図8において、電源
投入後5秒以内の場合、図6のステップ72からステッ
プ90へ移行され、ステップ90で電源投入から2秒経
過したか否かを判断する。このステップ72での5秒、
ステップ90での2秒を計数するタイマは特に図示して
いないが、CPUが独自で有するイベントタイマでの各
タスク処理を制御する上位に位置するタイマを利用して
いる。このイベントタイマについては、本発明の意図す
るものでないために説明を省略する。ステップ90で2
秒経過していないと判断するとステップ91に移り、本
通信タスクを終了する。一方、2秒が経過するとステッ
プ92に進み、図7で示すようなループ状伝送路の異常
チェックプログラム制御が開始される。
Next, using the flow chart of FIG.
The control at the main station will be described. In FIG. 8, if it is within 5 seconds after the power is turned on, the process proceeds from step 72 to step 90 in FIG. 6, and it is determined in step 90 whether 2 seconds have elapsed since the power was turned on. 5 seconds in step 72,
Although the timer for counting 2 seconds in step 90 is not shown in the figure, a high-order timer that controls each task processing by an event timer that the CPU has is used. Since this event timer is not intended by the present invention, its explanation is omitted. 2 in step 90
If it is determined that the second has not elapsed, the process moves to step 91, and this communication task ends. On the other hand, when 2 seconds have passed, the routine proceeds to step 92, and the abnormality check program control of the loop-shaped transmission line as shown in FIG. 7 is started.

【0045】先ず、ステップ92でスレーブカウンタと
呼ばれるメモリ内容を従局4という意味で4に設定す
る。そして、ステップ93で0.5秒にタイマをセット
しステップ94でタイムアップを待つ。タイムアップす
ると、ステップ95で同期用クロック計数で設定されて
いる出力端子を入力信号モードに切換えて、入力端子の
信号状態を検出する。これが、図7で説明した1つの従
局からのリセットパルスとしてループ状伝送路チェック
のための信号源として判断することになる。通常はオン
状態であるためにステップ97に進み、従局の数だけ実
行したか否かをスレーブカウンタでチェックする。従局
の数分に達していなければ、ステップ98でスレーブカ
ウンタをディクリメントする。
First, in step 92, the memory content called the slave counter is set to 4 in the sense of the slave station 4. Then, in step 93, the timer is set to 0.5 seconds, and in step 94, the time is up. When the time is up, the output terminal set by the clock count for synchronization is switched to the input signal mode in step 95, and the signal state of the input terminal is detected. This is judged as the reset pulse from one slave station explained in FIG. 7 as the signal source for the loop transmission line check. Since it is normally on, the routine proceeds to step 97, where it is checked with the slave counter whether or not it has been executed by the number of slave stations. If the number of slave stations has not been reached, step 98 decrements the slave counter.

【0046】そして、再びステップ93に戻り同様な動
作を繰り返す。ステップ98でスレーブカウンタをディ
クリメントした結果、スレーブ計数が1、つまり従局1
を示すとステップ93に戻り、ステップ97で所定値に
達したと判断し、ステップ99において先にステップ9
5で入力モードに切換えた入力信号端子を、元の同期用
クロックで設定される出力端子に戻す。そして、本実施
例による光通信のループ状伝送路の回線チェックを終了
し、異常無しと判断してその後の光通信を実行すること
になる。一方、何れかの従局の光通信の受送信に異常が
あった場合には、ステップ196で信号オフと判断され
てステップ101へ移る。
Then, the process returns to step 93 and the same operation is repeated. As a result of decrementing the slave counter in step 98, the slave count is 1, that is, slave station 1
Is returned to step 93, it is determined in step 97 that the predetermined value has been reached, and in step 99, step 9 is executed first.
The input signal terminal switched to the input mode in 5 is returned to the output terminal set by the original synchronization clock. Then, the line check of the loop transmission line of the optical communication according to the present embodiment is completed, it is determined that there is no abnormality, and the subsequent optical communication is executed. On the other hand, if there is an abnormality in the optical transmission / reception of any of the slave stations, it is determined in step 196 that the signal is off, and the process proceeds to step 101.

【0047】ステップ101では、計数動作を続けてい
たスレーブ計数を保持するために、スレーブ計数をメモ
リに格納してステップ102に移る。ステップ102で
は、別のエラー処理タスクによりサービスマンコールと
して連絡し、修理要求を発する処理を実行指示するため
の伝送路故障エラー処理実行フラグをセットする。実際
のサービスマンコールやエラー内容表示は、機器特有の
定義による処理により実行されるものであって、本発明
で特に限定されるものではないので詳細な発明は省略す
る。
In step 101, the slave count is stored in the memory in order to hold the slave count which has continued the counting operation, and the process proceeds to step 102. In step 102, a transmission line failure error process execution flag for instructing to execute a process for issuing a repair request by contacting as a serviceman call by another error processing task is set. The actual serviceman call and the display of the error content are executed by the processing according to the definition unique to the device, and are not particularly limited in the present invention, so the detailed invention will be omitted.

【0048】そして、ステップ102からステップ9
9、ステップ100に移り、本光通信タスクは終了され
る。更に、本プログラムの場合は一旦サービスマンエラ
ーと判断すると、CPUのメインプログラムは装置の各
制御を終了し装置動作を停止するため、所定周期で各タ
スクを入力に従って並列処理を実行しなくなる。従っ
て、光通信も中断されて処理を待つことになる。
Then, step 102 to step 9
9. Moving to step 100, this optical communication task is ended. Further, in the case of this program, once it is judged as a serviceman error, the main program of the CPU ends each control of the apparatus and stops the operation of the apparatus, so that the parallel processing is not executed according to the input of each task at a predetermined cycle. Therefore, the optical communication is also interrupted and waits for processing.

【0049】以上の第2の実施例の制御により、新たな
光通信装置を追加せずに、ループ状伝送路の異常チェッ
クが容易にできることになる。つまり、予め設定された
電源投入後などの特定タイミングにおいて、光通信を実
行させずに光通信のループ状伝送路をチェックし、かつ
エラーがあればメモリにエラー個所を記憶保持すること
で、本来の通信以外の信号を1つの回線で伝達できると
いう作用がある。
By the control of the second embodiment described above, it is possible to easily check the abnormality of the loop-shaped transmission line without adding a new optical communication device. In other words, by checking the loop transmission line of optical communication without executing optical communication at a specific timing such as after preset power-on, and if there is an error, the error location is stored and retained in the memory. There is an effect that signals other than the above communication can be transmitted by one line.

【0050】次に、図9のタイミングチャート図と図1
0のフローチャート図を用いて、第3の実施例について
説明をする。なお、この第3の実施例は第1の実施例と
同様に、本来の光通信のためのループ状伝送路に新たな
意味を持つ第2の信号源を同期用クロック信号受信伝送
路に付加している。ただし、第1の実施例の通信回数を
必要最低限にするためのものではなく、光通信のループ
状伝送路の断線などの異常チェックを行うものである。
Next, the timing chart of FIG. 9 and FIG.
The third embodiment will be described with reference to the flowchart of FIG. As in the first embodiment, the third embodiment adds a second signal source having a new meaning to the original loop transmission line for optical communication to the synchronization clock signal reception transmission line. are doing. However, this is not for minimizing the number of times of communication in the first embodiment, but for checking an abnormality such as disconnection of a loop transmission line of optical communication.

【0051】また、この第3の実施例は第2の実施例が
ループ状伝送路のチェックを1つの従局による回線故障
しか検出、表示できない制御例に比べて、複数の従局に
よる回線故障の検出、表示できる制御例について述べ
る。従って、説明を容易にするために、第2の実施例で
述べたと同様な個所についての説明は省略する。
Further, in the third embodiment, as compared with the control example in which the second embodiment can detect and display only the line failure by one slave station for the check of the loop transmission line, the line failure is detected by a plurality of slave stations. An example of control that can be displayed will be described. Therefore, in order to facilitate the description, the description of the same parts as those described in the second embodiment will be omitted.

【0052】第3の実施例と第2の実施例の大きな違い
は、各従局からのリセットパルス信号形態と、主局での
エラー検出後の処理制御である。また、第2の実施例の
場合に、主局の受光部から近いもの順といった定義があ
るのに対し、第3の実施例の場合は特に順番に関しての
限定された定義はない。
The major differences between the third embodiment and the second embodiment are the reset pulse signal form from each slave station and the processing control after error detection in the master station. Further, in the case of the second embodiment, there is a definition such as the order of being closer to the light receiving portion of the main station, whereas in the case of the third embodiment, there is no particular definition regarding the order.

【0053】図2において、同期用クロック信号を受信
する受信部13内に内蔵された発光部14は、第1の実
施例の通信要求信号の他にパワーオンリセット回路1か
らの出力信号によっても、発光部14の点滅制御が実行
できるようになっている。また、第3の実施例での光通
信は、第2の実施例と同様に電源投入から5秒間は、通
信動作を実行しないように設定されている。つまり、第
3の実施例は電源投入から光通信動作が実行されるまで
の間に、ループ状の伝送路の状態チェックを実行する。
In FIG. 2, the light emitting portion 14 built in the receiving portion 13 for receiving the synchronizing clock signal is not limited to the communication request signal of the first embodiment, but may be output by the power-on reset circuit 1. The blinking control of the light emitting unit 14 can be executed. The optical communication in the third embodiment is set so that the communication operation is not executed for 5 seconds after the power is turned on as in the second embodiment. That is, in the third embodiment, the state check of the loop-shaped transmission line is executed from the time when the power is turned on until the optical communication operation is executed.

【0054】各従局が有するリセットパルス信号形態
は、電源投入直後に抵抗器とコンデンサから構成される
時定数回路により、予め設定された時間、停止を維持す
るよう構成されている。更に、停止時間が過ぎると各従
局共通のリセット信号を出力されるように構成されてい
る。具体的な回路構成は特に図示していないが、一般的
な抵抗器とコンデンサにより構成されるリセット回路を
2段直列に接続されていて、前段に構成される時定数回
路の定数を換えることで、各従局で発生するパルスの位
相を換えることができる。
The reset pulse signal form of each slave station is configured to maintain the stop for a preset time by a time constant circuit composed of a resistor and a capacitor immediately after the power is turned on. Further, when the stop time has passed, a reset signal common to each slave station is output. Although the specific circuit configuration is not shown in the figure, a reset circuit composed of a general resistor and a capacitor is connected in two stages in series, and by changing the constant of the time constant circuit configured in the preceding stage. , The phase of the pulse generated in each slave station can be changed.

【0055】図9は各従局のリセット時間を示すタイミ
ングチャート図を示し、リセットパルスは各従局毎に異
なるタイミングで主局に対し伝達するように設定されて
いる。また、主局は矢印で示すように予め設定されたタ
イミングで光通信のループ状伝送路の同期用クロックラ
インを検出する。電源投入直後の主局に伝送される同期
用クロックでの信号は、従局1から従局4までの順に伝
達されている。
FIG. 9 is a timing chart showing the reset time of each slave station, and the reset pulse is set to be transmitted to the master station at a different timing for each slave station. Further, the main station detects the synchronizing clock line of the loop transmission line of the optical communication at the preset timing as shown by the arrow. The signal with the synchronization clock transmitted to the master station immediately after the power is turned on is transmitted in order from the slave station 1 to the slave station 4.

【0056】本実施例の場合に、先ず従局1が予め設定
された時間、本実施例の場合は約2.0秒で従局1がオ
ンし、そして同様に予め設定された時間、本実施例の場
合は約0.3秒でオフする。従局2は従局1のオンタイ
ミングから所定時間後、本実施例の場合は約0.25秒
後にオンされ、従局1と同様の時間でオフされる。更
に、従局3、従局4も同様に各従局が重ならないように
オン、オフされている。
In the case of the present embodiment, first, the slave station 1 is turned on in a preset time, in the case of this embodiment, the slave station 1 is turned on in about 2.0 seconds, and similarly, in the present embodiment, the preset time is set. In the case of, it turns off in about 0.3 seconds. The slave station 2 is turned on after a predetermined time from the turn-on timing of the slave station 1, about 0.25 seconds in the case of this embodiment, and is turned off at the same time as the slave station 1. Further, the slave stations 3 and 4 are similarly turned on and off so that the slave stations do not overlap.

【0057】一方、主局は各従局からの信号が重ならな
いタイミングで、各従局からの同期用クロックでの信号
をチェックすることで、ループ状伝送路が正常であるか
否かが判断できる。仮に、伝送路が正常であれば、図9
に示すエラー無しのように連続してオン状態が検出され
る。一方、従局2と従局4がエラーの場合は、図示する
ようにオン状態の中にオフ状態が存在することになる。
従って、第2の実施例と異なり、複数の伝送路異常が確
認できることになる。
On the other hand, the master station can determine whether or not the loop transmission line is normal by checking the signals from the slave stations with the synchronization clock at the timings when the signals from the slave stations do not overlap. If the transmission path is normal, then FIG.
The ON state is continuously detected as in the case of no error shown in. On the other hand, when the slave station 2 and the slave station 4 have an error, the OFF state exists in the ON state as illustrated.
Therefore, unlike the second embodiment, a plurality of transmission path abnormalities can be confirmed.

【0058】第3の実施例において、第2の実施例の制
御と大きく異なる点は、エラーが検出された時点で伝送
路チェックを終了していたのに対し、第3の実施例では
エラーの有無に拘わらず全従局からの信号チェックを実
行し、エラー個所を全て記憶する。
The third embodiment is largely different from the control of the second embodiment in that the transmission line check is ended when an error is detected, whereas in the third embodiment, an error occurs. Regardless of the presence or absence, the signal check from all slave stations is executed and all error points are stored.

【0059】図10のフローチャート図において、第2
の実施例と同様にステップ90からステップ96まで進
み、ステップ96で同期用クロック信号ラインの入力信
号をチェックして、オン状態であればステップ97へ進
む。一方、ステップ96で入力信号がオフ状態と判断す
ると、ステップ110で現状のチェックしている従局番
号を意味するスレーブ計数を読み込み、それに対応する
従局エラーメモリの該当ビットをセットする。そのこと
で、エラー従局の発生個所を記憶保持する。
In the flowchart of FIG. 10, the second
Similar to the embodiment of the above, the process proceeds from step 90 to step 96, the input signal of the synchronizing clock signal line is checked in step 96, and if it is in the on state, the process proceeds to step 97. On the other hand, if it is determined in step 96 that the input signal is in the off state, in step 110 the slave count which means the slave station number currently being checked is read and the corresponding bit of the slave station error memory corresponding thereto is set. As a result, the occurrence location of the error slave station is stored and retained.

【0060】そして、再びステップ97に移り、次の従
局についてのチェックを実施する。従局でのエラー状況
をチェックし終わると、ステップ97からステップ11
1へ移り、ステップ110で記憶した従局エラーメモリ
の全ビットをチェックする。セットされたビットが無け
れば光通信のループ状伝送路は正常であると判断され、
ステップ99から入力信号を再び同期用クロック信号出
力モードに戻し、所定時間移行から光通信が実行され
る。逆に、従局エラーメモリの何れかのビットがセット
されていれば、ステップ112に移り、第2の実施例と
同様の伝送路故障エラー処理実行フラグがセットされ、
ステップ99を経て光通信タスクが終了する。この場合
に、第2の実施例と同様にその後の光通信は中断され
て、装置の動作は停止となる。
Then, the process goes to step 97 again to check the next slave station. After checking the error status in the slave station, step 97 to step 11
Moving to 1, all bits of the slave error memory stored in step 110 are checked. If there is no bit set, it is determined that the optical communication loop transmission line is normal,
From step 99, the input signal is returned to the synchronization clock signal output mode again, and optical communication is executed after a predetermined time. On the contrary, if any bit of the slave error memory is set, the process proceeds to step 112, and the same transmission line failure error processing execution flag as in the second embodiment is set,
After step 99, the optical communication task ends. In this case, similar to the second embodiment, the subsequent optical communication is interrupted and the operation of the device is stopped.

【0061】一方、サービスマンコールは第2の実施例
とは異なり、異常の従局の全てが表示可能であるため
に、予め交換すべき電気基盤ユニットが用意でき、更に
容易な処理の実施が可能になる。
On the other hand, unlike the second embodiment, the serviceman call can display all the abnormal slave stations, so that an electric base unit to be replaced can be prepared in advance, and further easier processing can be performed. become.

【0062】このような第3の実施例の制御により、新
たな光通信装置を追加せずに、ループ状伝送路の異常チ
ェックが容易にできることになる。つまり、予め設定さ
れた電源投入後などの特定タイミングにおいて、光通信
を実行させずに光通信のループ状伝送路をチェックし、
かつエラーがあればメモリにエラー個所を記憶保持する
ことで、本来の通信以外の信号を1つの回線で伝達でき
る。
By the control of the third embodiment, it is possible to easily check the abnormality of the loop transmission line without adding a new optical communication device. In other words, at a specific timing such as after preset power-on, check the loop transmission line of optical communication without executing optical communication,
If there is an error, the error location is stored and held in the memory so that a signal other than the original communication can be transmitted through one line.

【0063】[0063]

【発明の効果】以上説明したように本発明に係る光通信
装置によれば、従局は従局自身が有する受信部中の第2
の発光素子を自己発光指示制御手段により点滅制御する
ことで、ループ状伝送路に別の指示を意味する信号を主
局まで伝送できるようになる。一方、主局は主局自身が
起点である光通信がループ状伝送路を使用してないとき
にループ状伝送路に変化を検出すれば、従局からの別の
指示を意味する信号として信号処理を実行するよう動作
する。このことで、1つのループ状伝送路は予め定義さ
れた条件により、1つの回線で複数の意味を持つ信号を
伝達できる。従って、従局自身の判断で主局が起点とな
る光通信のループ状伝送路に割り込んで、主局へ別の意
味を持つ信号伝達ができるため、新たな伝送路のための
発光素子や受光素子を追加しなくとも必要最低限の回線
数で光通信制御が実行できる。
As described above, according to the optical communication device of the present invention, the slave station is the second station in the receiving section of the slave station itself.
By controlling the flashing of the light emitting element by the self-emission instruction control means, a signal indicating another instruction can be transmitted to the main station through the loop-shaped transmission path. On the other hand, if the master station detects a change in the loop-shaped transmission line when the optical communication originating from the master station itself does not use the loop-shaped transmission line, the master station processes the signal as a signal indicating another instruction from the slave station. To run. As a result, one loop-shaped transmission line can transmit a signal having a plurality of meanings by one line under a predefined condition. Therefore, it is possible for the slave station to interrupt the optical communication loop transmission line from which the master station originates and transmit a signal with a different meaning to the master station at the discretion of the slave station. Optical communication control can be executed with the minimum required number of lines without adding.

【0064】更に、例えば電源投入直後などの特定時期
に予め定められたシーケンスで各従局から光信号を個々
のタイミングで主局が受信することにより、ループ状伝
送路の異常チェックが可能になると共に異常の従局が容
易に判断するようにすることもできるため、処理を容易
にできる。
Further, the master station receives the optical signal from each slave station at each timing in a predetermined sequence immediately after the power is turned on, for example, so that the loop-shaped transmission line can be checked for abnormality. Since it is also possible for the slave station having an abnormality to easily judge, the processing can be facilitated.

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

【図1】光通信のループ状伝送路を示すブロック回路構
成図である。
FIG. 1 is a block circuit configuration diagram showing a loop transmission line of optical communication.

【図2】従局の回路構成図である。FIG. 2 is a circuit configuration diagram of a slave station.

【図3】受信部の構成図である。FIG. 3 is a configuration diagram of a receiving unit.

【図4】光通信制御のタイミングチャート図である。FIG. 4 is a timing chart of optical communication control.

【図5】通信要求信号制御のタイミングチャート図であ
る。
FIG. 5 is a timing chart of communication request signal control.

【図6】光通信制御のフローチャート図である。FIG. 6 is a flowchart of optical communication control.

【図7】第2の実施例の光通信制御のタイミングチャー
ト図である。
FIG. 7 is a timing chart of the optical communication control of the second embodiment.

【図8】第2の実施例の光通信制御のフローチャート図
である。
FIG. 8 is a flow chart of optical communication control according to the second embodiment.

【図9】第3の実施例の光通信制御のタイミングチャー
ト図である。
FIG. 9 is a timing chart of the optical communication control of the third embodiment.

【図10】第3の実施例の光通信制御のフローチャート
図である。
FIG. 10 is a flowchart of optical communication control according to the third embodiment.

【符号の説明】[Explanation of symbols]

1 中央処理装置 2〜5 電気基盤ユニット 11 パワーオンリセット回路 12 受光部 13 受信部 14、15、16 発光部 17 シフトレジスタ 44〜47 イクスクルーシブOR回路 1 Central Processing Unit 2-5 Electric Board Unit 11 Power-on Reset Circuit 12 Light Receiving Section 13 Receiving Section 14, 15, 16 Light Emitting Section 17 Shift Register 44-47 Exclusive OR Circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の電気基盤ユニット間の情報交換を
実行する光通信手段であって、主局と複数の従局により
ループ状に接続したループ式伝送通信手段を有する光通
信装置において、前記複数の従局が有する受信装置に
は、上位局から発する光信号を受信する受光素子を有
し、前記上位局から発する光信号とは別に前記受光素子
に光信号を照射可能な位置に設けた第2の発光素子を有
し、前記第2の発光素子は前記上位局から発する光信号
を受信する従局自身により点滅制御する自己発光指示制
御手段を有することを特徴とする光通信装置。
1. An optical communication device for exchanging information between a plurality of electric infrastructure units, the optical communication device having a loop type transmission communication means connected in a loop by a master station and a plurality of slave stations, wherein: In the receiving device of the slave station, a light receiving element for receiving an optical signal emitted from the higher station is provided, and the light receiving element is provided at a position where the light signal can be emitted to the light receiving element separately from the optical signal emitted from the upper station. 2. The optical communication device according to claim 1, wherein the second light emitting element includes a self light emission instruction control unit that controls blinking by a slave station itself that receives an optical signal emitted from the upper station.
【請求項2】 前記従局が有する自己発光指示制御手段
は、主局からの光通信を実行中か否かを判断する非通信
検出手段を有し、前記非通信検出手段によってループ状
伝送路が未使用であると判断されると、予め設定した従
局自身で発生する自己信号内容で前記第2の発光素子を
点滅させる発光制御信号を有し、前記主局は非通信中に
前記第2の発光素子からの光信号を受信したか否かを判
断する従局信号伝達判断手段を有する請求項1に記載の
光通信装置。
2. The self-emission instruction control means included in the slave station has non-communication detecting means for determining whether or not optical communication from the master station is being executed, and the non-communication detecting means forms a loop transmission line. When it is determined that the master station has not been used, the master station has a light emission control signal that causes the second light emitting element to blink with a self-signal content generated by the slave station, which is set in advance, and the master station is configured to transmit the second The optical communication device according to claim 1, further comprising slave station signal transmission determining means for determining whether or not an optical signal from the light emitting element is received.
【請求項3】 前記従局が有する自己発光指示制御手段
は、予め設定したタイミングでかつ所定時間だけ前記第
2の発光素子を点灯させる発光制御手段を有し、前記主
局は前記複数の従局が有する第2の発光素子からの光信
号を予め設定されたタイミングで受信したか否かを検出
する光検出判断手段を有し、前記光検出判断手段での検
出結果によりループ状伝送路の異常チェックを実行し、
かつ異常個所の警告表示を実行可能な伝送路自己診断手
段を有する請求項1に記載の光通信装置。
3. The self-emission instruction control means included in the slave station has a light emission control means for turning on the second light-emitting element at a preset timing and for a predetermined time, and the master station is the plurality of slave stations. It has an optical detection judging means for detecting whether or not an optical signal from the second light emitting element which it has has been received at a preset timing, and the abnormality detection of the loop-shaped transmission line is carried out by the detection result of the optical detection judging means. Run
The optical communication device according to claim 1, further comprising a transmission line self-diagnosis means capable of displaying a warning of an abnormal point.
JP8134339A 1996-04-30 1996-04-30 Optical communication equipment Pending JPH09298513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8134339A JPH09298513A (en) 1996-04-30 1996-04-30 Optical communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8134339A JPH09298513A (en) 1996-04-30 1996-04-30 Optical communication equipment

Publications (1)

Publication Number Publication Date
JPH09298513A true JPH09298513A (en) 1997-11-18

Family

ID=15126046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8134339A Pending JPH09298513A (en) 1996-04-30 1996-04-30 Optical communication equipment

Country Status (1)

Country Link
JP (1) JPH09298513A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100337157B1 (en) * 1999-12-29 2002-05-18 차 동 해 A optical communication sharing system for fieldbus
JP2008027402A (en) * 2006-07-25 2008-02-07 National Institute Of Advanced Industrial & Technology Automatic circling collection type data collection system
JP2008252729A (en) * 2007-03-30 2008-10-16 National Institute Of Advanced Industrial & Technology Automatic circulating collection type data collection system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100337157B1 (en) * 1999-12-29 2002-05-18 차 동 해 A optical communication sharing system for fieldbus
JP2008027402A (en) * 2006-07-25 2008-02-07 National Institute Of Advanced Industrial & Technology Automatic circling collection type data collection system
JP4644791B2 (en) * 2006-07-25 2011-03-02 独立行政法人産業技術総合研究所 Automatic loop collection type data collection system
JP2008252729A (en) * 2007-03-30 2008-10-16 National Institute Of Advanced Industrial & Technology Automatic circulating collection type data collection system

Similar Documents

Publication Publication Date Title
US8324824B2 (en) 1-wire communication protocol and interface circuit
JPS581584B2 (en) Data communication loop method
US5978352A (en) Multiplex transmission system
EP1724903A2 (en) Integrated system for lighting and emergency lighting
CN114039993B (en) System and method for establishing a data connection between a main unit and at least one device unit
JPH09298513A (en) Optical communication equipment
JP3145942B2 (en) Power system
JP3451345B2 (en) Synchronous control method of photoelectric sensor
JP2009141898A (en) Bidirectional radio system
JP2001053615A (en) Method for sampling biphase-encoded digital signal by receiving means and usage of the same method
JPH11338518A (en) I/o device, input and output method, and control system using i/o device
US11064581B2 (en) Dimmer system control
JPS61133499A (en) Mutual monitor for a plurality of residenses
JP2000268689A (en) Photoelectric sensor system
JPH10134965A (en) Lighting system
Choutka et al. Decentralization of the Lights Control by a DALI Bus with a Connection Node
JP2004032429A (en) Communication speed setting device
KR20020009167A (en) UART Serial Communication Controller And Control Method In Multi-Processor Board
KR100279714B1 (en) Clock generator device
JPH11261615A (en) Double loop type data transmitter
JPS6216589B2 (en)
JP2006279676A (en) Detection unit, and sensor system
JP4471435B2 (en) Wireless meter reading system
JP4688154B2 (en) Sensor system and sensor unit
JPH10117202A (en) Control communication system