JPH0666793B2 - Signal synchronization method - Google Patents

Signal synchronization method

Info

Publication number
JPH0666793B2
JPH0666793B2 JP63267710A JP26771088A JPH0666793B2 JP H0666793 B2 JPH0666793 B2 JP H0666793B2 JP 63267710 A JP63267710 A JP 63267710A JP 26771088 A JP26771088 A JP 26771088A JP H0666793 B2 JPH0666793 B2 JP H0666793B2
Authority
JP
Japan
Prior art keywords
station
synchronization
data frame
signal
main
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
JP63267710A
Other languages
Japanese (ja)
Other versions
JPH02113746A (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
Tokyo Electric Power Co Inc
Hitachi Ltd
Mitsubishi Electric Corp
Original Assignee
Toshiba Corp
Tokyo Electric Power Co Inc
Hitachi Ltd
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Tokyo Electric Power Co Inc, Hitachi Ltd, Mitsubishi Electric Corp filed Critical Toshiba Corp
Priority to JP63267710A priority Critical patent/JPH0666793B2/en
Publication of JPH02113746A publication Critical patent/JPH02113746A/en
Publication of JPH0666793B2 publication Critical patent/JPH0666793B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ伝送方式に係り、特にトークン・パッ
シング・バスを用いて互いに離れた複数地点のデータ
(例えば電圧・電流等の瞬時値)を同時にサンプリング
するための信号同期方式に関するものである。
The present invention relates to a data transmission system, and in particular, data at a plurality of points separated from each other by using a token passing bus (for example, instantaneous values of voltage, current, etc.). The present invention relates to a signal synchronization method for sampling simultaneously.

〔従来の技術〕[Conventional technology]

ローカルエリアネットワーク(以下、LANという)は
近年急速に普及しつつあるが、その中で注目すべき動向
のひとつに、米国ゼネラルモーターズ社の提唱したMAP
(マニュファクチュアリングオートメーション プロト
コル、Manufacturing Automation Protocol)と呼ばれ
る工業用LANに対する関心の高まりがあげられる。F
A(ファクトリーオートメーション、Factory Automati
on)、OA(オフィス オートメーション Office Aut
omation)のためにロボット、コンピュータ等多数の機
器が工場、事務所に導入されているが、これらの機器の
相互接続が容易かつ安価に行えることを目的として前記
MAPの標準化が進められている。一企業のLANとい
うよりは業界の標準を目ざしており、多数の有力企業が
参加している。国際標準化機構(ISO)のOSI(オ
ープン システム インターコネクション Open Syste
m Interconection)階層モデルの各層を埋める形で標準
化が進められており、下位2層(物理層、データリンク
層)のうちの論理リンク制御サブレイヤを除く部分は、
米国の電気・電子技術者会議(The Institute of Elect
rical and Electronics Engineers Tnc.以下IEEEと
いう)802.4委員会のトークン・パッシング・バス
が使用される。現在IEEE802.4規格では物理層
の伝送媒体としては同軸ケーブルを使用する事としてい
るが、光ファイバケーブルの適用についても検討されつ
つあり、媒体を光フアイバケーブルとしてもデータリン
ク層の通信方式としては全く同一である。
Local area networks (hereinafter referred to as LANs) have been rapidly spreading in recent years, and one of the notable trends in them is the MAP proposed by General Motors, Inc. in the United States.
There is a growing interest in industrial LANs called (Manufacturing Automation Protocol). F
A (Factory Automation, Factory Automati
on), OA (Office Automation Office Aut
A large number of devices such as robots and computers have been introduced into factories and offices for the purpose of automation, but the standardization of the MAP is being promoted for the purpose of easily and inexpensively connecting these devices. It aims to be an industry standard rather than a LAN for one company, and many leading companies are participating. International Organization for Standardization (ISO) OSI (Open System Interconnection Open Syste
(m Interconection) Standardization is underway by filling each layer of the hierarchical model, and the lower two layers (physical layer, data link layer) except for the logical link control sublayer are
American Institute of Electrical and Electronic Engineers (The Institute of Elect
rical and Electronics Engineers Tnc. hereafter referred to as IEEE) 802.4 Committee token passing bus is used. At present, the IEEE802.4 standard uses a coaxial cable as a transmission medium of a physical layer, but application of an optical fiber cable is also under consideration. As a medium, an optical fiber cable or a data link layer communication method is used. Exactly the same.

第5図はこのトークン・パッシング・バスを光フアイバ
で構成したネットワークを示す構成図である。図におい
て、11〜1nはネットワークを構成する局、21〜2n
光ファイバケーブル、3はこの光ファイバ21〜2nを介
して前記局11〜1nの相互を接続する光スターカプラで
ある。
FIG. 5 is a block diagram showing a network in which this token passing bus is composed of optical fibers. In the figure, 1 1 to 1 n are stations forming a network, 2 1 to 2 n are optical fiber cables, and 3 is the optical fibers 2 1 to 2 n, which connect the stations 1 1 to 1 n to each other. It is an optical star coupler.

次に動作について説明する。バス形ネットワークには各
局が任意にデータを送信する方式(CSMA/CD)も
あるが、伝送データ量が増大し負荷が大きくなると伝送
効率が急速に低下するという欠点がある。これに対し
て、トークン・パッシング・バスは、決定論的アクセス
方式によりこの欠点を避けている。即ちトークンと呼ば
れる送信権がトークン・パッシング・バスに加入してい
る各局間で順番に受けわたされ、同一時刻に複数の局が
送信することが防止される。トークンはアドレスの大き
い局から小さい局へ順番にわたされ、また各局が自局が
トークンをわたすべき局(後続局)を記憶しており、こ
れによりトークンが巡回する論理上のリング(以下、論
理リングという)が構成される。
Next, the operation will be described. Although there is a system (CSMA / CD) in which each station arbitrarily transmits data in the bus type network, it has a drawback that the transmission efficiency rapidly decreases when the amount of transmission data increases and the load increases. The token passing bus, on the other hand, avoids this drawback with a deterministic access scheme. That is, the transmission right called a token is sequentially transmitted between the stations subscribing to the token passing bus, and a plurality of stations are prevented from transmitting at the same time. Tokens are passed in order from the station with the largest address to the station with the smallest address, and each station stores the station (successor station) to which the station should give the token. Called a ring) is configured.

しかしこの論理リングが固定的なものであると、新しく
局が加入したい場合に加入できず、まず加入局のいずれ
かが故障すると論理リングが壊れて通信が停止してしま
うことになる。それ故に、トークン・パッシング・バス
では次のようなリング維持機能を備えている。
However, if this logical ring is fixed, it cannot be joined when a new station wants to join, and if one of the joining stations fails, the logical ring is broken and communication stops. Therefore, the token passing bus has the following ring maintenance function.

(1)ノイズ等によりトークンが一時的に消失した時は前
トークン保持局がトークン再発行を行う。
(1) When the token temporarily disappears due to noise, the previous token holding station reissues the token.

(2)後続局が故障した場合は、故障局の後続局にトーク
ンをわたし、故障局を論理リングから除去する。
(2) If the subsequent station fails, give the token to the subsequent station of the failed station and remove the failed station from the logical ring.

(3)ほぼ一定の周期で新局勧誘を行い、論理リングに加
入を希望する局の加入を許可する。
(3) New stations are solicited at almost constant intervals and stations that wish to join the logical ring are allowed to join.

一方、このトークン・パッシング・バスを用いて、機器
の高速制御を行う応用分野があり、この中で各局で特定
信号を同時刻に繰り返し発生する必要があるシステムが
ある。例えば、複数地点で同一時刻における電圧・電流
等の瞬時値を求めるためのサンプリング信号の同期が必
要なシステムを考える。このようなシステムの場合、ト
ークン・パッシング・バスを用いて信号同期を行う方法
としては、特定局、例えば局11を信号同期に関する主
局、他の局12〜1nを信号同期に関する従局とし、主局
1が周期的に送信するデータフレームを利用して従局
2〜1nが主局11に合わせて同期をとる方法が考えら
れる。
On the other hand, there is an application field in which the token passing bus is used for high-speed control of equipment, and there is a system in which each station needs to repeatedly generate a specific signal at the same time. For example, consider a system that requires synchronization of sampling signals for obtaining instantaneous values of voltage, current, etc. at a plurality of points at the same time. In such a system, a method of performing signal synchronization using a token-passing bus, the particular station, for example station 1 1 master station relating to signal synchronization, the slave station concerning the signal synchronization other stations 1 2 to 1 n and then, the main station 1 1 is using the data frame to be transmitted cyclically slave stations 1 2 to 1 n is conceivable method to synchronize in accordance with the master station 1 1.

第6図はこのような従来の信号同期方式を示すタイムチ
ャートであり、主局11は主同期信号S1を周期t0で発
生させるとともに、この主同期信号S1に同期して主局
1のデータフレームD1を送信し、従局12〜1nはデー
タフレームD1の着信時刻から逆算して主同期信号S1
発生時刻を知るもので、これによってネットワークに参
加する全ての局の信号同期を可能とする。ここで、主局
1が送信する同期のための前記データフレームD1を主
同期データフレームとする。さらに主同期信号S1に同
期して主同期データフレームD1を一定周期で送信する
ため、主局11は主同期データフレームD1の送信に先立
って空データフレームDsを送信し、かつ主同期データ
フレームD1の送信完了時刻と主同期信号S1の時間差に
応じて空データフレームDsの長さを変えている。これ
により、主局11は主同期信号S1に同期した主同期デー
タフレームD1の送信が可能となる。一方従局では、前
記主同期データフレームD1の受信完了時刻と局同期制
御信号との時間差により自局内の局同期制御信号を位相
制御することで、主同期信号S1に追随して局同期信号
の信号同期が行われる。
Figure 6 is a time chart showing such a conventional signal synchronization method, the main station 1 1 has a main synchronization signals S 1 causes generated in the period t 0, the main station in synchronization with the main synchronization signals S 1 1 1 transmits a data frame D 1, slave station 1 2 to 1 n is intended to know the occurrence time of the data frame D 1 of the arrival time by calculating back from the main synchronization signal S 1, which by all participating in the network Enables signal synchronization of stations. Here, the data frame D 1 for synchronization transmitted by the main station 1 1 will be referred to as a main synchronization data frame. To send further main synchronization signal in synchronization with the S 1 main sync data frame D 1 at a predetermined period, the main station 1 1 sends an empty data frame D s prior to the transmission of the main synchronization data frame D 1, and The length of the empty data frame D s is changed according to the time difference between the transmission completion time of the main synchronization data frame D 1 and the main synchronization signal S 1 . As a result, the master station 1 1 can transmit the main synchronization data frame D 1 synchronized with the main synchronization signal S 1 . On the other hand, in the slave station, by phase-controlling the station synchronization control signal in the own station by the time difference between the reception completion time of the main synchronization data frame D 1 and the station synchronization control signal, the slave synchronization signal follows the main synchronization signal S 1. Signal synchronization is performed.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

従来の信号同期方式は以上のように構成されているの
で、ネットワークの維持・拡張のためにネットワークの
参加局が定周期毎に勧誘フレームを送信して新局の勧誘
を行う場合、従来の信号同期方式では新局勧誘が各局毎
に独立に行われるため、例えば第6図のイ)、ウ)に示
すように新局勧誘が実行される度に主同期データフレー
ムの送信完了時刻が大きく変動し、そのため従局のデー
タ送信時刻が変動し、主局の空データフレームの調整方
法によっては一時的に信号同期外れとなる場合があるな
どの問題点があった。
Since the conventional signal synchronization method is configured as above, when the participating stations of the network send solicitation frames at regular intervals to solicit new stations in order to maintain and expand the network, the conventional signal synchronization method is used. Since the new station solicitation is performed independently for each station in the synchronization method, the transmission completion time of the main synchronization data frame fluctuates greatly every time the new station solicitation is executed, as shown in (a) and (c) of FIG. 6, for example. However, there is a problem that the data transmission time of the slave station fluctuates, and signal synchronization may be temporarily lost depending on the method of adjusting the empty data frame of the master station.

この発明は上記のような問題点を解消するためになされ
たもので、従局のデータ送信時刻の変動を少なくすると
ともに、主局の同期制御の手順が容易となる信号同期方
式を得ることを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to obtain a signal synchronization method that reduces fluctuations in data transmission time of a slave station and facilitates a synchronization control procedure of a master station. And

〔課題を解決するための手段〕 この発明に係る信号同期方式は、主局より主同期データ
フレームに先立って、主同期データフレームの送信完了
時刻と主同期信号との時間差に基づいて長さが設定され
た空データフレームを送信し、この空データフレームの
長さを、ネットワークの構成局情報に基づいて予測し
た、トークンの周回時間および新局勧誘のタイミングに
よって修正するようにし、従局ではこの主同期データフ
レームの受信完了の検知により、自局の局同期信号を前
記主同期信号に同期させるものである。
[Means for Solving the Problems] The signal synchronization system according to the present invention has a length based on the time difference between the transmission completion time of the main synchronization data frame and the main synchronization signal prior to the main synchronization data frame from the main station. A set empty data frame is transmitted, and the length of this empty data frame is corrected by the token circulation time and the timing of solicitation of new stations predicted based on the information on the constituent stations of the network. Upon detection of completion of reception of the synchronization data frame, the station synchronization signal of the own station is synchronized with the main synchronization signal.

〔作用〕[Action]

この発明における信号同期に関する主局は、同期のため
に送信する主同期データフレームの送信に先立って、主
同期データフレームの送信完了時刻と主同期信号との時
間差に基づいて長さを設定して空データフレームを送信
し、その際、ネットワークの構成局情報に基づいて予測
したトークンの周回時間および新局勧誘のタイミングを
用いて、前記空データフレームの長さの修正を行い、ま
た、信号同期に関する従局は、その主同期データフレー
ムの受信完了を検知して自局の局同期信号を前記主同期
信号に同期させることにより、各局間のデータ送信のタ
イミングの変動を少なくする。
The main station relating to signal synchronization in the present invention sets the length based on the time difference between the main synchronization data frame transmission completion time and the main synchronization signal before transmitting the main synchronization data frame to be transmitted for synchronization. An empty data frame is transmitted, and at this time, the length of the empty data frame is corrected by using the token circulation time predicted based on the network constituent station information and the new station solicitation timing, and the signal synchronization is performed. The slave station concerned detects the completion of reception of the main synchronization data frame and synchronizes the station synchronization signal of its own station with the main synchronization signal to reduce fluctuations in the timing of data transmission between the stations.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図はこの発明の一実施例による信号同期方式を示すタイ
ムチャートであり、図において、A1〜Anは各々第5図
における局11〜1nの局アドレスを示し、A1>A2>…
…Anの関係が成り立っている。
An embodiment of the present invention will be described below with reference to the drawings. First
The figure is a time chart showing a signal synchronization system according to an embodiment of the present invention. In the figure, A 1 to A n respectively indicate station addresses of the stations 1 1 to 1 n in FIG. 5, and A 1 > A 2 > ...
... The relationship of A n is established.

ここで、従来の場合と同様に、第5図のトークン・パッ
シング・バスにおいて局11を信号同期に関する主局、
局12〜1nを信号同期に関する従局とする。また、第2
図は主局11による勧誘同期指令の送信方法を説明する
ための主同期データフレームの構成図、第3図は主局1
1の動作を示すフロチャート、第4図は従局12〜1n
動作を示すフローチャートである。
Here, as in the prior art, the main station a station 1 1 to signal synchronized in the token-passing bus of FIG. 5,
The station 1 2 to 1 n and the slave station to signal synchronization. Also, the second
Figure is a diagram showing the construction of a primary synchronization data frame to explain a method of transmitting invitation synchronization command by the master station 1 1, Figure 3 is the main station 1
Flow chart showing the first operation, Fig. 4 is a flowchart showing the operation of the slave station 1 2 to 1 n.

次に動作について説明する。説明は、まず信号同期に関
する主局となる局11の動作について行う。
Next, the operation will be described. First, the operation of the station 1 1 which is the main station for signal synchronization will be described.

主局11はトークンを後続局へ渡す度に第3図に示すフ
ローチャートの動作を実行する。すなわち、トークンの
周回を実行する度に1ずつ減算する勧誘同期制御用のカ
ウンタを有し、ステップST1にて現在のカウンタの計
数値CNTを調べ、それが0でないなら計数値CNTよ
り1を減算し、0の際にはこの計数値CNTとして最大
設定値CNTmaxを代入する。ステップST2にて主同
期信号S1と主同期データフレームD1の送信完了時刻と
の時間差t1を計測する。ステップST3にて、前回送
信された空データフレームDs以外のフレームの長さの
総和、およびサイレンスの総和が変更されないものとし
て、前回空データフレームの長さts前と計測した前記
時間差t1とにより、本来送信すべき空データフレーム
の長さts現を計算する。通常この空データフレームの
長さの計算式は例えば、ts現=ts前−t1となるが、
その他 或いはts現=2ts前−ts前々−t1現+t1前等が考
えられるが、この発明の特徴ではないので、ts現=f
(t1)とする。
Main station 1 1 executes the operation of the flow chart shown in Figure 3 whenever the pass tokens to subsequent stations. That is, it has a counter for invitation synchronization control that decrements by 1 each time the token is circulated, checks the current counter count value CNT in step ST1, and if it is not 0, subtracts 1 from the count value CNT. However, when it is 0, the maximum set value CNT max is substituted as this count value CNT. In step ST2 measuring a time difference t 1 between the main synchronization signals S 1 and the main synchronization transmission completion time of the data frame D 1. At step ST3, the sum of the lengths of the last transmitted null data frame D s other frames, and assuming that silence sum is not changed, the time difference t 1 measured before and length t s of the previous empty data frame By using, the length t s of the empty data frame to be originally transmitted is calculated. Usually, the formula for calculating the length of this empty data frame is, for example, t s present = t s previous −t 1 ,
Other Or t s current = 2t s before -t s but before the previous -t 1 current + t 1 before the like are considered, it is not a feature of the invention, t s current = f
(T 1 ).

次にステップST4にて前記カウンタの計数値CNT
と、ネットワークの参加局中の最小アドレス局1nのア
ドレスnに既定定数aを乗算した結果が一致しているか
どうか判定し、一致していればステップST8、一致し
ていなければステップST5の動作を行う。ステップS
T5では、カウンタの計数値CNTとネットワークの参
加局中の最小アドレス局1n以外の局のアドレスA1〜A
n-1に既定定数aを乗算した結果が1つでも一致してい
るか否か判定し、いずれか一致していればステップST
7、全て一致していなければステップST6の動作を行
う。
Next, in step ST4, the count value CNT of the counter is
And the result obtained by multiplying the address n of the smallest address station 1 n among the participating stations of the network by a predetermined constant a are coincident, and if they are coincident, the operation of step ST8 is performed, and if they are not coincident, the operation of step ST5 is performed. I do. Step S
At T5, the count value CNT of the counter and the addresses A 1 to A of the stations other than the minimum address station 1 n among the participating stations of the network.
It is determined whether or not one of the results obtained by multiplying n-1 by the predetermined constant a matches, and if any of them matches, step ST
7. If they do not match, the operation of step ST6 is performed.

ステップST6では、ネットワークの参加局中の何れの
局も新局勧誘は行わないと判断し、今回送信すべき空デ
ータフレームDsの長さts′現として前記本来送信すべ
き空データフレームの長さts現を使用する。ステップ
ST7ではネットワーク中の最小アドレス局を除く局1
1〜1n-1の新局勧誘を予知し、今回送信すべき空データ
フレームDsの長さts′現として、前記本来送信すべき
空データフレームの長さts現より勧誘フレームC1〜C
n-1の長さtcおよび1応答ウィンドウの長さtwを減算
した値を使用する。ステップST8では、ネットワーク
中の最小アドレス局1nの新局勧誘を予知し、今回送信
すべき空データフレームDsの長さts′現として、前記
本来送信すべき空データフレームの長さts現より勧誘
フレームCnの長さtcおよび2応答ウィンドウの長さ2
・twを減算した値を使用する。
In step ST6, none of the stations in the network of participating stations is determined that the new station invitation is not performed, an empty data frame D s length t s' of null data frames to send the original as a current to be transmitted this time Use length t s current. In step ST7, station 1 excluding the lowest address station in the network
1 to 1 new station invitation n-1 to predict, as the length t s' current of the current transmission null data frame D s to be solicitation than the length t s current empty data frames to send the original frame C 1 to C
The value obtained by subtracting the length t c of n−1 and the length t w of one response window is used. In step ST8, the solicitation of a new station of the smallest address station 1 n in the network is predicted, and the length t s ′ of the empty data frame D s to be transmitted this time is set as the current length t s of the empty data frame to be originally transmitted. s the length t c of the solicitation frame C n from the present and 2 the length of the response window 2
· T w a using a value obtained by subtracting.

これらステップST6〜ST8が終了すると動作はステ
ップST9へ移されれる。ステップST9ではこのよう
にして求められた今回送信すべき空データフレームの長
さts′現を有する空データフレームDsを送信待ち行列
に加える。ステップST10では、カウンタを参照し
て、その計数値CNTが0であればステップST11、
0でなければステップST12の動作を行う。ステップ
ST11では、例えば第2図に示すような勧誘同期指令
SS付きの主同期データフレームD1を送信待ち行列に
追加する。ステップST12では勧誘同期指令SSなし
の主同期データフレームD1を送信待ち行列に追加す
る。
When these steps ST6 to ST8 are completed, the operation is moved to step ST9. In step ST9, the empty data frame D s having the length t s ′ of the empty data frame to be transmitted this time obtained in this way is added to the transmission queue. In step ST10, the counter is referred to, and if the count value CNT is 0, step ST11,
If not 0, the operation of step ST12 is performed. In step ST11, for example, the main synchronization data frame D 1 with the solicitation synchronization command SS as shown in FIG. 2 is added to the transmission queue. In step ST12, the main synchronization data frame D 1 without the solicitation synchronization command SS is added to the transmission queue.

ネットワークの構成局情報の収集方法としては、例えば
データフレーム受信毎にフレームの送信元アドレスを抽
出し、受信順内部メモリ内に配列しておくことにより可
能となる。また前記最大設定値CNTmaxは主局となる
局11のアドレスA1の既定定数a倍より大きい値を選択
しておく必要がある。また、主局11は第3図に示すフ
ローチャートの動作ばかりでなく、第4図に示すフロー
チャートの動作も行う。その際にはステップST21と
ステップ22の動作は省略される。第4図のフローチャ
ートに示す動作は次の従局の動作で説明する。
A method of collecting the network constituent station information can be obtained, for example, by extracting the source address of the frame each time a data frame is received and arranging it in the reception order internal memory. Further, it is necessary to select the maximum set value CNT max which is larger than the predetermined constant a times the address A 1 of the station 1 1 which is the main station. Further, the main station 1 1 is not only the operation of the flow chart shown in FIG. 3, also the operation of the flow chart shown in Figure 4 perform. In that case, the operations of steps ST21 and ST22 are omitted. The operation shown in the flowchart of FIG. 4 will be described in the operation of the following slave station.

次に信号同期に関する従局となる局12〜1nの動作につ
いて説明する。
Next, the operation of the stations 1 2 to 1 n that are slave stations related to signal synchronization will be described.

従局12〜1nはトークンを後続局へ渡す度に第4図に示
すフローチャートの動作を実行する。すなわち、ステッ
プST21では、主局11より受信した主同期データフ
レームD1中に勧誘同期指令SSがあるか否かを判定
し、あればステップST22にて勧誘同期制御用のカウ
ンタの計数値CNTに0を代入し、ステップST23の
動作を実行する。勧誘同期指令SSなしの場合はそのま
まステップST23の動作を実行する。
Each of the slave stations 1 2 to 1 n executes the operation of the flowchart shown in FIG. 4 every time the token is passed to the succeeding station. That is, in step ST21, determines whether or not there is invitation synchronization instruction SS to the main synchronization in the data frame D 1 received from the master station 1 1, the count value of the counter for invitation synchronous control at step ST22, if CNT 0 is substituted for and the operation of step ST23 is executed. If there is no solicitation synchronization command SS, the operation of step ST23 is executed as it is.

ステップST23ではカウンタを参照し、その計数値C
NTが0でなければ計数値CNTより1を減算し、0で
あれば計数値CNTに最大設定値CNTmaxを代入す
る。ステップST24にて前記カウンタの計数値CNT
と、自局のアドレスA1〜Anに既定定数aを乗算した結
果が一致していればステップST26にて新局勧誘を実
行し、一致していなければステップST25にて勧誘禁
止を実行する。
In step ST23, the counter is referred to and its count value C
If NT is not 0, 1 is subtracted from the count value CNT, and if it is 0, the maximum set value CNT max is substituted for the count value CNT. In step ST24, the count value CNT of the counter
And the result of multiplying the addresses A 1 to A n of the own station by the predetermined constant a are in agreement, the new station solicitation is executed in step ST26, and if they are not in agreement, solicitation prohibition is executed in step ST25. .

以上の様な主局11および従局12〜1nの動作を図示す
ると第1図に示すタイムチャートとなる。すなわち第1
図ア)のケースではカウンタの計数値CNTに最大設定
値CNTmaxが設定されてから、トークンの周回毎に1
ずつ前記計数値CNTが減算されていく過程の状態で、
新局勧誘は行われず、今回送信すべき空データフレーム
sの長さts′現として、本来の空データフレームの長
さts現(ts現=f(t1))を使用して、主同期デー
タフレームD1の送信完了時刻を主同期信号S1が同期す
る。
The operation of the master station 1 1 and the slave stations 1 2 to 1 n as described above is illustrated in the time chart of FIG. Ie the first
In the case of (a), the maximum set value CNT max is set to the count value CNT of the counter, and then 1 is set for each lap of the token.
In the process of subtracting the count value CNT one by one,
The new station solicitation is not performed, and the original empty data frame length t s present (t s present = f (t 1 )) is used as the length t s ′ present of the empty data frame D s to be transmitted this time. Thus, the main synchronization signal S 1 synchronizes the transmission completion time of the main synchronization data frame D 1 .

イ)のケースで主局11の新局勧誘が行われ、主局11
今回送信すべき空データフレームDsの長さts′現とし
て本来の空データフレームの長さts現から勧誘フレー
ムC1の長さtcと1応答ウィンドウの長さtwを減算し
た結果(ts′現=ts現−tc−tw)を使用し、主同期
データフレームD1の送信完了時刻と主同期信号S1が同
期する。ウ)のケースでは、従局12が新局勧誘を行
い、イ)のケースと同様に主同期データフレームD1
送信完了時刻と主同期信S1が同期する。エ)のケース
では、最小アドレス局1nが新局勧誘を行い、主局11
今回送信すべき空データフレームDsの長さts′現とし
て、ts現−tc−2・twを使用し、同じく主同期デー
タフレームD1の送信完了時刻と、主同期信号S1が同期
する。
Case in the new station solicitation of the main station 1 1 Lee) is performed, the main station 1 1 length t s current of the original empty data frame as the length of t s' current of empty data frame D s to be transmitted this time from using the solicitation frame C 1 length t c and 1 response window of the result of subtracting length t w (t s' current = t s current -t c -t w), the main synchronization data frame D 1 The transmission completion time is synchronized with the main synchronization signal S 1 . In the case of c), the slave station 1 2 performs new station invitation, transmission completion time and the main synchronization signal S 1 of the same as the case of i) primary synchronization data frame D 1 are synchronized. In the case of d), the new station invitation minimum address station 1 n, as the length t s' current empty data frame D s to be transmitted this time the master station 1 1, t s current -t c -2 · using the t w, also primary synchronization transmission completion time of the data frame D 1, the main synchronization signal S 1 is synchronized.

オ)のケースでは、前記カウンタの計数値CNTが最小
局11のアドレスAnの既定定数a倍より小さくなった場
合で、新局勧誘は行われず、主局11の今回送信すべき
空データフレームDsの長さts′現として本来送信すべ
き空データフレームの長さts現を使用する。従って、
主同期データフレームD1の送信完了時刻と、主同期信
号S1は同期する。
In the case of (e), when the count value CNT of the counter becomes smaller than the predetermined constant a times the address A n of the minimum station 1 1 , the new station is not solicited and the empty space to be transmitted by the main station 1 1 this time. using the length t s current empty data frame to be transmitted originally as the length t s' current data frame D s. Therefore,
The main synchronization signal S 1 is synchronized with the transmission completion time of the main synchronization data frame D 1 .

勧誘フレームC1〜Cnの長さtcはIEEE802.4
規格の中で長さが規定されており、応答ウィンドウの長
さtwはシステム固有の値として予じめ設定される。し
たがって前記勧誘フレームのC1〜Cnの長さtcおよび
応答ウィンドウの長さtwは固定値として主局11で保持
しておく必要がある。また、主局11、従局12〜1n
第3図、第4図に示す以外の動作も必要であるが、本発
明の特徴ではないので説明は省略する。
The length t c of the solicitation frames C 1 to C n is IEEE802.4.
The length in the standards are defined, the length t w of the response window is pre Ji because set as system-specific value. Thus the length t w of length t c and response window of C 1 -C n of the invitation frame needs to be held by the main station 1 1 as a fixed value. Further, although operations other than those shown in FIGS. 3 and 4 are required for the master station 1 1 and the slave stations 1 2 to 1 n, they are not a feature of the present invention, and therefore description thereof will be omitted.

なお、上記実施例では新局勧誘の同期方法として、親局
にて定周期的に勧誘同期指令を送信して各局毎に勧誘同
期制御用のカウンタを設け、ネットワーク中の全参加局
が信号同期に関する主局に同期して定周期的に新局勧誘
を行っているが、親局にて毎回前記カウンタの計数値を
送信し、従局は受信したカウンタの計数値を毎回参照
し、前記と同様の判定にて新局勧誘の制御を行ってもよ
く、上記実施例と同様の効果を奏する。
In the above embodiment, as a synchronization method for soliciting new stations, a solicitation synchronization command is periodically sent from the master station and a counter for solicitation synchronization control is provided for each station so that all participating stations in the network perform signal synchronization. The new station is solicited at regular intervals in synchronization with the master station, but the master station transmits the count value of the counter each time, and the slave station refers to the received counter value each time. The control for soliciting a new station may be performed based on the determination of the above, and the same effect as that of the above-described embodiment is obtained.

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

以上のように、この発明によれば、主同期データフレー
ムに先立って主局より送信される空データフレームの長
さを、ネットワークの構成局情報に基づいて予測したト
ークンの周回時間および新局勧誘のタイミングによって
修正するように構成したので、主局の主同期データフレ
ームの送信終了時刻を主期信号に同期して一定に保つこ
とがき、従って、従局の送信タイミングも主同期信号に
同期して一定のタイミングに保たれるため、安定な信号
同期が得られ、なおかつ、同期制御の手順が容易とな
り、システム運用側のソフトウェアへの制約を軽減でき
るなどの効果がある。
As described above, according to the present invention, the length of the empty data frame transmitted from the main station prior to the main synchronization data frame is predicted based on the information about the constituent stations of the network, and the token circulation time and new station invitation Since it is configured to correct the transmission end time of the master synchronization data frame of the master station in synchronization with the master signal, the slave station transmission timing is also synchronized with the master synchronization signal. Since it is maintained at a constant timing, stable signal synchronization can be obtained, and the synchronization control procedure can be facilitated, and restrictions on software on the system operation side can be reduced.

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

第1図はこの発明の一実施例による信号同期方式を示す
タイムチャート、第2図はこの実施例で伝送される主同
期データフレームの構成図、第3図はこの実施例の信号
同期に関する主局の動作を示すフローチャート、第4図
はこの実施例の信号同期に関する従局の動作を示すフロ
ーチャート、第5図はこの発明が適用されるバス形ネッ
トワークの構成図、第6図は従来の信号同期方式を示す
タイムチャートである。 11は主局、12〜1nは従局、21〜2nは光ファイバケ
ーブル、3は光スターカプセラ,T1〜Tnはトークンフ
レーム、D1は主同期データフレーム、S1は主同期信
号、t1は主同期データフレームの送信完了時刻との時
間差と主同期信号との時間差、Dsは空データフレー
ム、SSは勧誘同期指令。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a time chart showing a signal synchronization method according to an embodiment of the present invention, FIG. 2 is a configuration diagram of a main synchronization data frame transmitted in this embodiment, and FIG. 3 is a main relating to signal synchronization of this embodiment. FIG. 4 is a flow chart showing the operation of the station, FIG. 4 is a flow chart showing the operation of the slave station concerning the signal synchronization of this embodiment, FIG. 5 is a block diagram of the bus network to which the present invention is applied, and FIG. 6 is the conventional signal synchronization. It is a time chart which shows a system. 1 1 master station, 1 2 to 1 n are slave stations, 2 1 to 2 n denotes an optical fiber cable, 3 an optical star Kapusera, T 1 through T n is a token frame, D 1 is the main synchronization data frame, S 1 The main synchronization signal, t 1 is the time difference between the transmission completion time of the main synchronization data frame and the main synchronization signal, D s is an empty data frame, and SS is an invitation synchronization command. In the drawings, the same reference numerals indicate the same or corresponding parts.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 鈴木 守 東京都千代田区内幸町1丁目1番3号 東 京電力株式会社内 (72)発明者 星野 裕司 東京都府中市東芝町1番地 株式会社東芝 府中工場内 (72)発明者 瀬島 幸人 茨城県日立市国分町1丁目1番1号 株式 会社日立製作所国分工場内 (72)発明者 安斉 俊夫 兵庫県神戸市兵庫区和田崎町1丁目1番2 号 三菱電機株式会社制御製作所内 (56)参考文献 特開 昭63−263938(JP,A) 特開 昭63−263939(JP,A) 特開 昭63−318842(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Mamoru Suzuki 1-3-1, Uchisaiwaicho, Chiyoda-ku, Tokyo Within Tokyo Electric Power Co., Inc. (72) Yuji Hoshino 1st, Toshiba-cho, Fuchu-shi, Tokyo Toshiba Fuchu, Ltd. Inside the factory (72) Inventor Sachito Sejima 1-1-1, Kokubuncho, Hitachi City, Ibaraki Hitachi Co., Ltd. Inside Kokubun Factory (72) Inventor Toshio Anzai 1-2-1, Wadazakicho, Hyogo-ku, Kobe-shi, Hyogo (56) Reference JP-A-63-263938 (JP, A) JP-A-63-263939 (JP, A) JP-A-63-318842 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の局が論理上のリングを形成して、前
記論理上のリングにトークンを巡回させ、前記トークン
を保有している局にのみデータの送信権を与えるトーク
ン・パッシング・バス、あるいはそれに類似した通信規
約を有するネットワークにて、前記各局の送信するデー
タの送信タイミングを同期させる信号同期方式におい
て、前記複数の局の中の一つを信号同期に関する主局、
他を信号同期に関する従局とし、前記主局は同期のため
に送信する主同期データフレームの送信に先立って、前
記主同期データフレームの送信完了時刻と主同期信号と
の時間差に基づいて長さを定めた空データフレームを送
信するとともに、前記空データフレームの送信に際し
て、ネットワークの構成局情報に基づいて前記トークン
の周回時間および新局勧誘のタイミングを予測し、それ
らに基づいて前記空データフレームの長さの修正を行
い、前記従局は前記主同期データフレームの受信完了を
検知することにより、自局の局同期信号を前記主同期信
号に同期させることを特徴とする信号同期方式。
1. A token passing bus in which a plurality of stations form a logical ring, a token is circulated in the logical ring, and only stations holding the token are allowed to transmit data. , Or in a network having a communication protocol similar thereto, in a signal synchronization method for synchronizing the transmission timing of data transmitted by each station, one of the plurality of stations is a master station for signal synchronization,
The other is a slave station for signal synchronization, and the master station determines the length based on the time difference between the transmission completion time of the master synchronization data frame and the master synchronization signal before transmitting the master synchronization data frame to be transmitted for synchronization. While transmitting the determined empty data frame, at the time of transmitting the empty data frame, predict the token circulation time and new station solicitation timing based on the network constituent station information, and based on them, the empty data frame A signal synchronization system characterized in that the slave station synchronizes the station synchronization signal of its own station with the main synchronization signal by correcting the length and detecting completion of reception of the main synchronization data frame.
JP63267710A 1988-10-24 1988-10-24 Signal synchronization method Expired - Lifetime JPH0666793B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63267710A JPH0666793B2 (en) 1988-10-24 1988-10-24 Signal synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63267710A JPH0666793B2 (en) 1988-10-24 1988-10-24 Signal synchronization method

Publications (2)

Publication Number Publication Date
JPH02113746A JPH02113746A (en) 1990-04-25
JPH0666793B2 true JPH0666793B2 (en) 1994-08-24

Family

ID=17448473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63267710A Expired - Lifetime JPH0666793B2 (en) 1988-10-24 1988-10-24 Signal synchronization method

Country Status (1)

Country Link
JP (1) JPH0666793B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5419485B2 (en) 2009-02-09 2014-02-19 三菱電機株式会社 Protective relay device
CN110347122B (en) * 2018-04-03 2022-07-22 阿里巴巴集团控股有限公司 Method, device and equipment for determining outbound time and data

Also Published As

Publication number Publication date
JPH02113746A (en) 1990-04-25

Similar Documents

Publication Publication Date Title
US6680903B1 (en) Network system, network terminal, and method for specifying location of failure in network system
US5065397A (en) Data synchronous transfer system using a fiber distributed data exchange interface
JP3160350B2 (en) Communication network control method
Strole The IBM token-ring network—A Functional Overview
Kopetz A solution to an automotive control system benchmark
US8452843B2 (en) Data communication system and data communication device
JPH0666793B2 (en) Signal synchronization method
JPH0750895B2 (en) Signal synchronization method
CN110098886B (en) FC network time synchronization method based on complex network structure
JP3120910B2 (en) Network synchronization setting method in loop type LAN
JPH05191418A (en) Transmission control system
JPH063921B2 (en) Signal synchronization method
JPH02309732A (en) Start type network communication system
Upender et al. Embedded communication protocol options
JPH0695681B2 (en) Signal synchronization method
US6714540B1 (en) Data communication method, communication frame generating method, and medium on which program for carrying out the methods are recorded
CN110138683B (en) QoS-supported Internet of things data transmission method and system
JPH0813043B2 (en) Signal synchronization method
JPH0787463B2 (en) Signal synchronization method
JPH0767110B2 (en) Signal synchronization method
CN115695585A (en) Method for bearing Ethernet UDP communication by TTP/C bus
JPH01122230A (en) Data transmission system for network system
JPH0748735B2 (en) Data communication method
CN116192724A (en) Task planning tool design method based on satellite-borne time triggering
CN115150016A (en) Time synchronization main controller circuit

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20070824

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20080824

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20080824

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20090824

Year of fee payment: 15

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090824

Year of fee payment: 15