JPH02113746A - Signal synchronizing system - Google Patents
Signal synchronizing systemInfo
- Publication number
- JPH02113746A JPH02113746A JP63267710A JP26771088A JPH02113746A JP H02113746 A JPH02113746 A JP H02113746A JP 63267710 A JP63267710 A JP 63267710A JP 26771088 A JP26771088 A JP 26771088A JP H02113746 A JPH02113746 A JP H02113746A
- Authority
- JP
- Japan
- Prior art keywords
- station
- data frame
- synchronization
- main
- 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.)
- Granted
Links
Landscapes
- Small-Scale Networks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、データ伝送方式に係り、特にトークン・パッ
シング・バスを用いて互いに離れた複数地点のデータ(
例えば電圧・電流等の瞬時値)を同時にサンプリングす
るための信号同期方式に関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a data transmission method, and in particular, the present invention relates to a data transmission method, and in particular, the present invention relates to a data transmission system that uses a token passing bus to transmit data (
The invention relates to a signal synchronization method for simultaneously sampling instantaneous values of voltage, current, etc., for example.
ローカルエリアネットワーク(以下、L A、 Nとい
う)は近年急速に普及しつつあるが、その中で注目すべ
き動向のひとつに、米国ゼネラルモーターズ社の提唱し
たにAP(マニュファクチュアリングオートメーション
プロトコルM anufacturj ngA uto
mation P rotocol)と呼ばれる工業用
LANに対する関心の高まりがあげられる。FA、(フ
ァクトリ−オートメーション F actory A
utoma=2
tjo口)、OA(オフィス オートメーションOff
iceAutomatjon)のためにロボット、コン
ピュータ等多数の機器が工場、事務所に導入されている
が、これらの機器の相互接続を容易かつ安価に行えるこ
とを目的として前記MAPの標準化が進められている。Local area networks (hereinafter referred to as LA, N) have been rapidly becoming popular in recent years, and one notable trend is the manufacturing automation protocol (AP) proposed by General Motors of the United States. uto
There is a growing interest in industrial LANs called industrial LANs. FA, (factory automation F factory A
utoma=2 tjoguchi), OA (Office Automation Off)
A large number of devices such as robots and computers have been introduced into factories and offices for ice automation, and the standardization of the MAP is being promoted with the aim of interconnecting these devices easily and at low cost.
一企業のL A、 Nというよりは業界の標準を目ざし
ており、多数の有力企業が参加している。国際標準化機
構(ISO)の08I(オープン システム インター
コネクションOpCn S ystem T nter
conection)階層モデルの各層を埋める形で標
準化が進められており、下位2層(物理層、データリン
ク層)のうちの論理リンク制御サブレイヤを除く部分は
、米国の電気・電子技術者会議(The In5tit
ute of Electricaland E 1e
ctronics E ngineers I nc、
以下IEEEという)802.4委員会のトークン・パ
ッシング・バスが使用される。現在IEEE802゜4
規格では物理層の伝送媒体としては同軸ケーブルを使用
する事としているが、光フアイバケーブルの適用につい
ても検討されつつあり、媒体を光フアイバケーブルとし
てもデータリンク層の通信方式としては全く同一である
。It aims to become an industry standard rather than a single company's LA, N, and many leading companies are participating. International Organization for Standardization (ISO) 08I (Open System Interconnection)
Standardization is progressing by filling in each layer of the hierarchical model (physical layer, data link layer), and the lower two layers (physical layer, data link layer), excluding the logical link control sublayer, are standardized by the American Council of Electrical and Electronics Engineers (The In5tit
Ute of Electricaland E 1e
ctronics engineers Inc.
The token passing bus of the IEEE 802.4 committee is used. Currently IEEE802゜4
Although the standard specifies that coaxial cable be used as the physical layer transmission medium, the application of optical fiber cable is also being considered, and even if the medium is optical fiber cable, the data link layer communication method is exactly the same. .
第5図はこのトークン・パッシング・バスを光ファイバ
で構成したネットワークを示す構成図である。図におい
て、11〜1nはネットワークを構成する局、21〜2
nは光フアイバケーブル、3はこの光ファイバ2.〜2
nを介して前記局1゜〜1nの相互を接続する光スター
カブラである。FIG. 5 is a block diagram showing a network in which this token passing bus is constructed using optical fibers. In the figure, 11 to 1n are stations configuring the network, and 21 to 2
n is an optical fiber cable, 3 is this optical fiber 2. ~2
This is an optical star coupler that connects the stations 1° to 1n with each other via the optical star coupler.
次に動作について説明する。バス形ネッl−ワクには各
局が任意にデータを送信する方式(C8M、A/CD)
もあるが、伝送データ量が増大し負荷が大きくなると伝
送効率が急速に低下するという欠点がある。これに対し
て、トークン・パッシング・バスは、決定論的アクセス
方式によりこの欠点を避けている。即ちトークンと呼ば
れる送信権がトークン・パッシング・バスに加入してい
る各局間で順番に受けわたされ、同一時刻に複数の局が
送信することが防止される。トークンはアドレスの大き
い局から小さい局へ順番にわたされ、また各局は自局が
トークンをわたすべき局(後続=3−
局)を記憶しており、これによりトークンが巡回する論
理上のリング(以下、論理リングという)が構成される
。Next, the operation will be explained. A method in which each station arbitrarily transmits data to a bus network (C8M, A/CD)
However, as the amount of transmitted data increases and the load increases, the transmission efficiency decreases rapidly. Token passing buses, on the other hand, avoid this drawback through a deterministic access scheme. That is, a transmission right called a token is passed in order among the stations participating in the token passing bus, thereby preventing a plurality of stations 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 remembers the station to which it should pass the token (successive = 3-stations), which allows the token to circulate through a logical ring ( (hereinafter referred to as a logical ring) is configured.
しかしこの論理リングが固定的なものであると、新しく
局が加入したい場合に加入できず、まず加入局のいずれ
かが故障すると論理リングが壊れて通信が停止してしま
うことになる。それ故に、トークン・パッシング・バス
では次のようなリング維持機能を備えている。However, if this logical ring is fixed, if a new station wants to join, it will not be able to join, and if any of the joining stations breaks down, the logical ring will break and communication will stop. Therefore, the token passing bus has the following ring maintenance function.
0) ノイズ等によりトークンが一時的に消失した時は
前トークン保持局がトークン再発行を行う。0) When a token is temporarily lost due to noise, etc., the previous token holding station will reissue the token.
(2)後続局が故障した場合は、故障局の後続局に1−
−クンをわたし、故障局を論理リングから除去する。(2) If the subsequent station fails, the subsequent station of the failed station will receive 1-
− Handle the node and remove the faulty station from the logical ring.
(3) はぼ一定の周期で新局勧誘を行い、論理リン
グに加入を希望する局の加入を許可する。(3) New stations are invited at regular intervals, and stations that wish to join the logical ring are allowed to do so.
一方、このトークン・パッシング・バスを用いて、機器
の高速制御を行う応用分野があり、この中で各局で特定
信号を同時刻に繰り返し発生する必要があるシステムが
ある。例えば、複数地点で同一時刻における電圧・電流
等の瞬時値を求めるためのサンプリング信号の同期が必
要なシステムを考える。このようなシステムの場合、ト
ークン・パッシング・バスを用いて信号同期を行う方法
としては、特定局、例えば局1.を信号同期に関する主
局、他の局12〜1nを信号同期に関する従局とし、主
局1.が周期的に送信するデータフレムを利用して従局
12〜1nが主局1.に合わせて同期をとる方法が考え
られる。On the other hand, there are applications in which this token passing bus is used to control devices at high speed, and among these, there are systems in which it is necessary for each station to repeatedly generate a specific signal at the same time. For example, consider a system that requires synchronization of sampling signals to obtain instantaneous values of voltage, current, etc. at the same time at multiple points. In such a system, a method of signal synchronization using a token passing bus is to synchronize a particular station, for example, station 1. is the master station for signal synchronization, the other stations 12 to 1n are slave stations for signal synchronization, and the master station 1. The slave stations 12 to 1n use the data frames periodically transmitted by the master station 1. One possible method is to synchronize according to the
第6図はこのような従来の信号同期方式を示すタイムチ
ャートであり、主局1.は主同期信号S1を周期t。で
発生させるとともに、この主同期信号S1に同期して主
局11のデータフレームD、を送信し、従局12〜1n
はデータフレームD、の着信時刻から逆算して主同期信
号S1の発生時刻を知るもので、これによってネットワ
ークに参加する全ての局の信号同期を可能とする。ここ
で、主局11が送信する同期のための前記データフレム
D、を主同期データフレームとする。さらに主同期信号
S1に同期して主同期データフレームD。FIG. 6 is a time chart showing such a conventional signal synchronization method. is the period t of the main synchronizing signal S1. At the same time, the data frame D of the main station 11 is transmitted in synchronization with this main synchronization signal S1, and the data frame D of the main station 11 is transmitted to the slave stations 12 to 1n.
is used to determine the generation time of the main synchronization signal S1 by calculating backward from the arrival time of the data frame D, thereby making it possible to synchronize the signals of all stations participating in the network. Here, the data frame D for synchronization transmitted by the main station 11 is assumed to be a main synchronization data frame. Furthermore, a main synchronization data frame D is generated in synchronization with the main synchronization signal S1.
を一定周期で送信するため、主局11は主同期ブタフレ
ームD1の送信に先立って空データフレムDsを送信し
、かつ主同期データフレームI)1の送信完了時刻と主
同期信号S1の時間差に応じて空データフレームDsの
長さを変えている。In order to transmit at a constant cycle, the main station 11 transmits an empty data frame Ds before transmitting the main synchronization pig frame D1, and also calculates the time difference between the transmission completion time of the main synchronization data frame I)1 and the main synchronization signal S1. The length of the empty data frame Ds is changed accordingly.
これにより、主局1.は主同期信号S、に同期した主同
期データフレームD1の送信が可能となる。As a result, main station 1. It becomes possible to transmit the main synchronization data frame D1 synchronized with the main synchronization signal S.
一方従局では、前記主同期データフレームD、の受信完
了時刻と局同期制御信号との時間差により自局内の局同
期制御信号を位相制御することで、主同期信号S、に追
随して局同期信号の信号同期が行オ〕れる。On the other hand, the slave station controls the phase of the station synchronization control signal within its own station based on the time difference between the reception completion time of the main synchronization data frame D and the station synchronization control signal, so that the station synchronization signal follows the main synchronization signal S. signal synchronization is performed.
従来の信号同期方式は以上のように構成されているので
、ネットワークの維持・拡張のためにネットワークの参
加局が定周期毎に勧誘フレームを送信して新局の勧誘を
行う場合、従来の信号同期方式では新局勧誘が各周毎に
独立に行われるため、例えば第6図のイ)、つ)に示す
ように新局勧誘が実行される度に主同期データフレーム
の送信完了時刻が大きく変動し、そのため従局のデータ
送信時刻が変動し、主局の空データフレームの調整方法
によっては一時的に信号同期外れとなる場合があるなど
の問題点があった。Conventional signal synchronization systems are configured as described above, so when stations participating in the network send solicitation frames at regular intervals to solicit new stations in order to maintain and expand the network, conventional signal synchronization systems In the synchronization method, new station solicitation is performed independently every cycle, so the transmission completion time of the main synchronization data frame increases each time new station solicitation is executed, as shown in Figure 6 (a) and (c), for example. As a result, the data transmission time of the slave station fluctuates, and depending on the method of adjusting the empty data frame of the master station, there are problems such as temporary loss of signal synchronization.
この発明は上記のような問題点を解消するためになされ
たもので、従局のデータ送信時刻の変動を少なくすると
ともに、主局の同期制御の手順が容易となる信号同期方
式を得ることを目的とする。This invention was made to solve the above-mentioned problems, and aims to provide a signal synchronization method that reduces fluctuations in the data transmission time of slave stations and facilitates the synchronization control procedure of the master station. shall be.
この発明に係る信号同期方式は、主局より主同期データ
フレームに先立って、主同期データフレムの送信完了時
刻と主同期信号との時間差に基づいて長さが設定された
空データフレームを送信し、この空データフレームの長
さを、ネットワクの構成局情報に基づいて予測した、1
−−クンの周回時間および新局勧誘のタイミングによっ
て修正するようにし、従局ではこの主同期データフレム
の受信完了の検知により、自局の局同期信号を前記主同
期信号に同期させるものである。In the signal synchronization method according to the present invention, the main station transmits, prior to the main synchronization data frame, an empty data frame whose length is set based on the time difference between the transmission completion time of the main synchronization data frame and the main synchronization signal. , the length of this empty data frame is predicted based on the network constituent station information, 1
--The slave station synchronizes its own station synchronization signal with the main synchronization signal by detecting the completion of reception of this main synchronization data frame.
=8−
この発明における信号同期に関する主局は、同期のため
に送信する主同期データフレームの送信に先立って、主
同期データフレームの送信完了時刻と主同期信号との時
間差に基づいて長さを設定して空データフレームを送信
し、その際、ネットワークの構成局情報に基づいて予測
したトークンの周回時間および新局勧誘のタイミングを
用いて、前記空データフレームの長さの修正を行い、ま
た、信号同期に関する従局は、その主同期データフレム
の受信完了を検知して自局の局同期信号を前記主同期信
号に同期させることにより、各局間のデータ送信のタイ
ミングの変動を少なくする。=8- In the present invention, the main station regarding signal synchronization calculates the length based on the time difference between the transmission completion time of the main synchronization data frame and the main synchronization signal, prior to transmitting the main synchronization data frame to be transmitted for synchronization. setting and transmitting an empty data frame, at that time, the length of the empty data frame is corrected using the token circulation time predicted based on network constituent station information and the timing of new station invitation, and A slave station related to signal synchronization detects the completion of reception of the main synchronization data frame and synchronizes its own station synchronization signal with the main synchronization signal, thereby reducing fluctuations in timing of data transmission between each station.
以下、この発明の一実施例を図について説明する。第1
図はこの発明の一実施例による信号同期方式を示すタイ
ムチャートであり、図において。An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a time chart showing a signal synchronization method according to an embodiment of the present invention.
A1〜Anは各々第5図における局11〜1nの局アド
レスを示し、八〇〉A、〉・・・・Anの関係が成り立
っている。A1 to An indicate the station addresses of stations 11 to 1n in FIG. 5, respectively, and the relationship 80〉A, 〉...An holds true.
ここで、従来の場合と同様に、第5図のトークン・パッ
シング・バスにおいて局1.を信号同期に関する主局、
局12〜]nを信号同期に関する従局とする。また、第
2図は主局11による勧誘同期指令の送信方法を説明す
るための主同期データフレームの構成図、第3図は主局
]、の動作を示すフロチャート、第4図は従局12〜1
nの動作を示すフローチャートである。Now, as in the conventional case, station 1.1 on the token passing bus of FIG. The signal synchronization regarding the main station,
Stations 12 to]n are assumed to be slave stations regarding signal synchronization. 2 is a configuration diagram of a main synchronization data frame for explaining a method for transmitting solicitation synchronization commands by the main station 11, FIG. 3 is a flowchart showing the operation of the master station, and FIG. 4 is a flowchart showing the operation of the slave station ~1
12 is a flowchart showing the operation of n.
次に動作について説明する。説明は、まず信号同期に関
する主局となる局1.の動作について行う。Next, the operation will be explained. First, the explanation will begin with station 1, which is the main station regarding signal synchronization. We will discuss the operation of
主局j−+はトークンを接続局へ渡す度に第3図に示す
フローチャートの動作を実行する。すなわち、トークン
の周回を実行する度に1ずつ減算する勧誘同期制御用の
カウンタを有し、ステップST1にて現在のカウンタの
計数値CNTを調べ、それがOでないなら計数値CNT
より1を減算し、0の際にはこの計数値CNTとして最
大設定値CNTmaxを代入する。ステップST2にて
主同期信号S、と主同期データフレームD、の送信完了
時刻との時間差し、を計測する。ステップST3に一
て、前回送信された空データフレームDs以外のフレー
ムの長さの総和、およびサイレンスの総和が変更されな
いものとして、前回空データフレムのr、 前と計測し
た前記時間差t、とにより、本来送信すべき空データフ
レームの長さts現を計算する。通常この空データフレ
ームの長さの計算式は例えば、”S ’A= ts 前
−t”となるが、その他t5現=t8ゴ2・t1或いは
t5現=2tS前tS@ヶーt□現+11盲官等が考え
られるが、この発明の特徴ではないので、ts現=f(
t、)とする。The master station j-+ executes the operations shown in the flowchart shown in FIG. 3 every time it passes a token to the connected station. That is, it has a counter for solicitation synchronization control that is decremented by 1 each time the token is circulated, and in step ST1, the current count value CNT of the counter is checked, and if it is not O, the count value CNT is
1 is subtracted from the count value CNT, and when the count value is 0, the maximum set value CNTmax is substituted as the count value CNT. In step ST2, the time difference between the transmission completion time of the main synchronization signal S and the main synchronization data frame D is measured. In step ST3, assuming that the sum of lengths of frames other than the empty data frame Ds transmitted last time and the sum of silences are not changed, r of the previous empty data frame and the time difference t measured from before are determined. , calculate the length ts of the empty data frame that should originally be transmitted. Normally, the formula for calculating the length of this empty data frame is, for example, "S 'A = ts previous - t", but other times, t5 current = t8 go2 t1 or t5 current = 2tS previous tS @ kart □ current + 11 Blind officers etc. are possible, but since this is not a feature of this invention, ts current = f(
t, ).
次にステップST4にて前記カウンタの計数値CNTと
、ネットワークの参加湯中の最小アドレス局1− nの
アドレスA、 nに既定定数8を乗算した結果が一致し
ているかどうか判定し、一致していればステップST8
、一致していなければステップST5の動作を行う。ス
テップST5では、カウンタの計数値CNTとネットワ
ークの参加湯中の最小アドレス局1n以外の局のアドレ
スA、〜A、、、に既定定数aを乗算した結果が1つで
も一致しているか否か判定し、いずれか一致しでいれば
ステップST7、全て一致していなければステップST
6の動作を行う。Next, in step ST4, it is determined whether or not the counted value CNT of the counter matches the result of multiplying the address A, n of the lowest address station 1-n of the participating stations in the network by a predetermined constant 8. If so, step ST8
, if they do not match, the operation of step ST5 is performed. In step ST5, whether or not the result of multiplying the count value CNT of the counter by the predetermined constant a by the addresses A, ~A, , of stations other than the lowest address station 1n among participating stations in the network match. Determine, if any match, step ST7; if all match, step ST
Perform step 6.
ステップST6では、ネットワークの参加湯中の何れの
局も新局勧誘は行わないと判断し、今回送信すべき空デ
ータフレームDsの長さ鴨川として前記本来送信すべき
空データフレームの長さts現を使用する。ステップS
T7ではネットワク中の最小アドレス局を除く局1.〜
In−1の新局勧誘を予知し、今回送信すべき空データ
フレムDsの長さt3現として、前記本来送信すべき空
データフレームの長さt8現より勧誘フレームC1〜C
,−ユの長さし および1応答ウインドウの長さt を
減算した値を使用する。ステップST8では、ネジ1〜
ワーク中の最小アドレス局」nの新局勧誘を予知し、今
回送信すべき空データフレムDsの長さ11.現として
、前記本来送信すべき空データフレー11の長さts現
より勧誘フレムCnの長さt および2応答ウインドウ
の長さ2・t を減算した値を使用する。In step ST6, it is determined that no new station will be invited to participate in the network, and the length of the empty data frame Ds to be transmitted this time is assumed to be the length of the empty data frame Ds to be transmitted this time. use. Step S
At T7, station 1 except the lowest address station in the network. ~
Forecasting In-1's new station invitation, assuming the length t3 of the empty data frame Ds to be transmitted this time, the length t8 of the empty data frame to be originally transmitted is now the invitation frame C1 to C.
Use the value obtained by subtracting the length of , -U and the length of one response window, t. In step ST8, screws 1 to
The length of the empty data frame Ds to be transmitted this time is 11. Currently, a value obtained by subtracting the length t of the invitation frame Cn and the length 2·t of the two response windows from the length ts of the empty data frame 11 to be originally transmitted is used.
これらステップST6〜ST8が終了すると動作はステ
ップST9へ移される。ステップST9ではこのように
して求められた今回送信すべき空データフレームの長さ
階現を有する空データフレームDsを送信待ち行列に加
える。ステップ5TIOでは、カウンタを参照し、その
計数値CNTが0であればステップ5TII、Oでなけ
ればステップ5T12の動作を行う。ステップ5T11
では、例えば第2図に示すような勧誘同期指令SS付き
の主同期データフレームD1を送信待ち行列に追加する
。ステップ5T12では勧誘同期指令SSなしの主同期
データフレームD1を送信待ち行列に追加する。When these steps ST6 to ST8 are completed, the operation moves to step ST9. In step ST9, the empty data frame Ds having the length distribution of the empty data frame to be transmitted this time thus determined is added to the transmission queue. In step 5TIO, the counter is referred to, and if the count value CNT is 0, step 5TII is performed, and if it is not 0, step 5T12 is performed. Step 5T11
Now, for example, a main synchronization data frame D1 with a solicitation synchronization command SS as shown in FIG. 2 is added to the transmission queue. In step 5T12, the main synchronization data frame D1 without the solicitation synchronization command SS is added to the transmission queue.
ネットワークの構成局情報の収集方法としては、例えば
データフレーム受信毎にフレームの送信元アドレスを抽
出し、受信順内部メモリ内に配列しておくことにより可
能となる。また前記最大設定値CNT+maxは主局と
なる局1.のアドレスA1の既定定数a倍より大きい値
を選択しておく必要がある。また、主局11は第3図に
示すフローチャ】2
トの動作ばかりでなく、第4図に示すフローチャートの
動作も行う。その際にはステップ5T21とステップ2
2の動作は省略される。第4図のフローチャートに示す
動作は次の従局の動作で説明する。A method for collecting network constituent station information is, for example, by extracting the frame transmission source address every time a data frame is received and arranging them in an internal memory in the order of reception. Further, the maximum setting value CNT+max is the maximum setting value CNT+max of station 1. It is necessary to select a value larger than the predetermined constant a times the address A1. Further, the main station 11 performs not only the operations shown in the flowchart shown in FIG. 3, but also the operations shown in the flowchart shown in FIG. In that case, step 5T21 and step 2
Operation 2 is omitted. The operation shown in the flowchart of FIG. 4 will be explained with reference to the operation of the slave station below.
次に信号同期に関する従局となる局12〜]nの動作に
ついて説明する。Next, the operation of the stations 12 to ]n, which are slave stations regarding signal synchronization, will be explained.
従局1.〜1nはトークンを接続局へ渡す度に第4図に
示すフローチャートの動作を実行する。Follower 1. ~1n executes the operation of the flowchart shown in FIG. 4 every time the token is passed to the connecting station.
すなわち、ステップST2 ]−では、主局J1より受
信した主同期データフレーム受信毎に勧誘同期指令SS
があるか否かを判定し、あればステップ5T22にて勧
誘同期制御用のカウンタの計数値CNTに○を代入し、
ステップ5T23の動作を実行する。勧誘同期指令SS
なしの場合はそのままステップ5T23の動作を実行す
る。That is, in step ST2]-, the invitation synchronization command SS is sent every time the main synchronization data frame received from the main station J1 is received.
If there is, in step 5T22, substitute ○ for the count value CNT of the counter for solicitation synchronization control,
The operation in step 5T23 is executed. Solicitation synchronization command SS
If not, the operation of step 5T23 is executed as is.
ステップ5T23ではカウンタを参照し、その計数値C
NTが0でなければ計数値CNTよりjを減算し、Oで
あれば計数値CNTに最大設定値CNTmaxを代入す
る。ステップ5T24にて前記カウンタの計数値CNT
と、自局のアドレスA、〜Anに既定定数aを乗算した
結果が一致していればステップS T 26にて新局勧
誘製実行し、一致していなければステップ5T25にて
勧誘禁止を実行する。In step 5T23, the counter is referred to and its count value C
If NT is not 0, j is subtracted from the count value CNT, and if it is 0, the maximum set value CNTmax is substituted for the count value CNT. At step 5T24, the count value CNT of the counter is
If the results of multiplying the own station's addresses A and ~An by the predetermined constant a match, a new station invitation is executed in step ST26, and if they do not match, solicitation is prohibited in step ST25. do.
以上の様な主局1.および従局]2〜1nの動作を図示
すると第1図に示すタイムチャートとなる。Main station 1 as above. and slave station] The operations of 2 to 1n are illustrated in the time chart shown in FIG.
すなわち第1図ア)のケースではカウンタの計数値CN
Tに最大設定値CNTmaxが設定されてから、トーク
ンの周回毎に1ずつ前記計数値CN Tが減算されてい
く過程の状態で、新局勧誘は行われず、今回送信すべき
空データフレームDsの長さ譜現として、本来の空デー
タフレームの長さt;s、ct5現=f(t+))を使
用して、主同期データフレームD、の送信完了時刻と主
同期信号Siが同期する。In other words, in the case of Figure 1 A), the count value CN of the counter
After the maximum setting value CNTmax is set in T, the count value CNT is subtracted by 1 every time the token goes around, and new station solicitation is not performed, and the empty data frame Ds to be transmitted this time is The transmission completion time of the main synchronization data frame D is synchronized with the main synchronization signal Si using the length of the original empty data frame t; s, ct5 = f(t+)) as the length representation.
イ)のケースで主局11の新局勧誘が行われ、主局1□
は今回送信すべき空データフレームDsの長さt、現と
して本来の空データフレームの長さtS現から勧誘フレ
ームC1の長さも と1応答ウインドウの長さt を減
算した結果D8.呪1s、−1−1w)を使用し、主同
期データフレームD1の送信完了時刻と主同期信号S、
が同期する。つ)のケースでは、従局12が新局勧誘を
行い、イ)のケースと同様に主同期データフレームD、
の送信完了時刻と主同期信S、が同期する。In case b), main station 11 solicits a new station, and main station 1□
is the length t of the empty data frame Ds to be transmitted this time, the length t of the original empty data frame tS, the length of the solicitation frame C1, and the length t of one response window are subtracted from the current length tS, resulting in D8. 1s, -1-1w), the transmission completion time of the main synchronization data frame D1 and the main synchronization signal S,
are synchronized. In case A), the slave station 12 solicits a new station, and as in case A), the main synchronization data frame D,
The transmission completion time and the main synchronization signal S are synchronized.
工)のケースでは、最小アドレス局]nが新局勧誘を行
い、主局】−1の今回送信すべき空データフレームDs
の長さ譜現として、t0シーj:o−2・tWを使用し
、同じく主同期データフレームD、の送信完了時刻と、
主同期信号S、が同期する。In the case of [4], the lowest address station [n] invites a new station, and the empty data frame Ds to be transmitted this time is sent by the main station]-1.
Using t0 seaj:o-2・tW as the length representation, and also the transmission completion time of the main synchronization data frame D,
The main synchronization signal S is synchronized.
オ)のケースでは、前記カウンタの計数値CNTが最小
局1.のアドレスAnの既定定数a倍より小さくなった
場合で、新局勧誘は行われず、主局11の今回送信すべ
き空データフレームDsの長さt、現として本来送信す
べき空データフレムの長さしS現を使用する。従って、
主同期ブタフレームD1の送信完了時刻と、主同期信号
S。In case e), the count value CNT of the counter is the minimum station 1. is smaller than the predetermined constant a times the address An, no new station invitation is performed, and the length t of the empty data frame Ds that the main station 11 should send this time is the length t of the empty data frame that should originally be sent. Use Sashi S Gen. Therefore,
The transmission completion time of the main synchronization pig frame D1 and the main synchronization signal S.
は同期する。are synchronized.
勧誘フレームC1〜Cnの長さt。はIEEE802.
4規格の中で長さが規定されており、応答ウィンドウの
長さ鴎はシステム固有の値として予じめ設定される。し
たがって前記勧誘フレムのC1〜Cnの長さt および
応答ウィンドウの長さtWは固定値として主局11で保
持しておく必要がある。また、主局11.従局1.〜1
n共第3図、第4図に示す以外の動作も必要であるが1
本発明の特徴ではないので説明は省略する。Length t of solicitation frames C1 to Cn. is IEEE802.
The length is defined in the four standards, and the length of the response window is set in advance as a system-specific value. Therefore, the length t of C1 to Cn of the solicitation frame and the length tW of the response window must be held as fixed values in the main station 11. In addition, the main station 11. Follower 1. ~1
Operations other than those shown in Figures 3 and 4 are also necessary for both cases, but 1
Since this is not a feature of the present invention, its explanation will be omitted.
なお、」二組実施例では新局勧誘の同期方法として、親
局にて定周期的に勧誘同期指令を送信して各周毎に勧誘
同期制御用のカウンタを設け、ネットワーク中の全参加
局が信号同期に関する主局に同期して定周期的に新局勧
誘を行っているが、親局にて毎回前記カウンタの計数値
を送信し、従局は受信したカウンタの計数値を毎回参照
し、前記と同様の判定にて新局勧誘の制御を行ってもよ
く、上記実施例と同様の効果を奏する。In the second embodiment, as a synchronization method for soliciting new stations, the master station periodically transmits solicitation synchronization commands, and a counter for solicitation synchronization control is provided for each cycle, so that all participating stations in the network The master station periodically solicits new stations in synchronization with the master station regarding signal synchronization, but the master station transmits the count value of the counter each time, and the slave stations refer to the received count value of the counter every time. New station solicitation may be controlled using the same determination as described above, and the same effects as in the above embodiment can be achieved.
以上のように、この発明によれば、主同期ブタフレーム
に先立って主局より送信される空データフレームの長さ
を、ネットワークの構成局情報に基づいて予測した1−
−クンの周回時間および新局勧誘のタイミングによって
修正するように構成したので、主局の主同期データフレ
ームの送信終了時刻を本則信号に同期して一定に保つこ
とができ、従って、従局の送信タイミングも主同期信号
に同期して一定のタイミングに保たれるため、安定な信
号同期が得られ、なおかつ、同期制御の手順が容易とな
り、システム運用側のソフトウェアへの制約を軽減でき
るなどの効果がある。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 pig frame is predicted based on the network constituent station information.
- Since it is configured to be corrected according to the rotation time of the master station and the timing of new station invitation, the transmission end time of the master station's main synchronization data frame can be kept constant in synchronization with the main signal, and therefore the slave station's transmission Since the timing is kept constant in synchronization with the main synchronization signal, stable signal synchronization can be obtained, and the synchronization control procedure becomes easier, reducing constraints on the software on the system operation side. There is.
第1図はこの発明の一実施例による信号同期方式を示す
タイムチャート、第2図はこの実施例で伝送される主同
期データフレームの構成図、第3図はこの実施例の信号
同期に関する主局の動作を示すフローチャート、第4図
はこの実施例の信号同期に関する従局の動作を示すフロ
ーチャート、第5図はこの発明が適用されるバス形ネッ
トワークの構成図、第6図は従来の信号同期方式を示す
タイムチャートである。
1、は主局、12〜1nは従局、21〜2nは光ファイ
バケーブル、3は光スターカブセラ、丁。
〜Tnはトークンフレーム、Dlは主同期データフレー
ム、S、は主同期信号、1.は主同期データフレームの
送信完了時刻との時間差と主同期信号との時間差、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. FIG. 4 is a flowchart showing the operation of the slave station regarding signal synchronization in this embodiment. FIG. 5 is a configuration diagram of a bus network to which the present invention is applied. FIG. 6 is a flowchart showing the operation of the slave station regarding signal synchronization in this embodiment. It is a time chart showing the method. 1 is a main station, 12 to 1n are slave stations, 21 to 2n are optical fiber cables, and 3 is an optical star capsuleer. ~Tn is a token frame, Dl is a main synchronization data frame, S is a main synchronization signal, 1. is the time difference between the transmission completion time of the main synchronization data frame and the main synchronization signal, Ds
is an empty data frame, and SS is a solicitation synchronization command. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Agent Masuo Oiwa
Claims (1)
ングにトークンを巡回させ、前記トークンを保有してい
る局にのみデータの送信権を与えるトークン・パッシン
グ・バス、あるいはそれに類似した通信規約を有するネ
ットワークにて、前記各局の送信するデータの送信タイ
ミングを同期させる信号同期方式において、前記複数の
局の中の1つを信号同期に関する主局、他を信号同期に
関する従局とし、前記主局は同期のために送信する主同
期データフレームの送信に先立って、前記主同期データ
フレームの送信完了時刻と主同期信号との時間差に基づ
いて長さを定めた空データフレームを送信するとともに
、前記空データフレームの送信に際して、ネットワーク
の構成局情報に基づいて前記トークンの周回時間および
新局勧誘のタイミングを予測し、それらに基づいて前記
空データフレームの長さの修正を行い、前記従局は前記
主同期データフレームの受信完了を検知することにより
、自局の局同期信号を前記主同期信号に同期させること
を特徴とする信号同期方式。A token passing bus, in which a plurality of stations form a logical ring, circulate tokens around the logical ring, and grant the right to transmit data only to the station that holds the token, or a similar device. In a signal synchronization method for synchronizing the transmission timing of data transmitted by each station in a network having a communication protocol, one of the plurality of stations is a master station for signal synchronization, the others are slave stations for signal synchronization, and the Prior to transmitting a main synchronization data frame for synchronization, the main station transmits an empty data frame whose length is determined based on the time difference between the transmission completion time of the main synchronization data frame and the main synchronization signal. , when transmitting the empty data frame, predict the circulation time of the token and the timing of new station invitation based on network constituent station information, modify the length of the empty data frame based on them, The signal synchronization method is characterized in that the station synchronization signal of the own station is synchronized with the main synchronization signal by detecting the completion of reception of the main synchronization data frame.
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 true JPH02113746A (en) | 1990-04-25 |
| JPH0666793B2 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) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8155796B2 (en) | 2009-02-09 | 2012-04-10 | Mitsubishi Electric Corporation | Protective relay device |
| CN110347122A (en) * | 2018-04-03 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of outbound moment determination, data determination method, device and its equipment |
-
1988
- 1988-10-24 JP JP63267710A patent/JPH0666793B2/en not_active Expired - Lifetime
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8155796B2 (en) | 2009-02-09 | 2012-04-10 | Mitsubishi Electric Corporation | Protective relay device |
| CN110347122A (en) * | 2018-04-03 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of outbound moment determination, data determination method, device and its equipment |
| 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 |
|---|---|
| JPH0666793B2 (en) | 1994-08-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR920001576B1 (en) | Network system using token passing bus method | |
| US6990540B2 (en) | Method and device for transmitting information on a bus system, and a bus system in which different information is uniquely assigned different information identifiers | |
| JP2535615B2 (en) | Data synchronous transmission system | |
| US6320871B1 (en) | Communication network | |
| EP0961977A1 (en) | Method and apparatus for distributing a cycle clock to a plurality of bus nodes in a bus bridge | |
| CN112821979A (en) | Decentralized fast network time synchronization method | |
| JPH11261579A (en) | Synchronization method and bridge | |
| US8452843B2 (en) | Data communication system and data communication device | |
| JPH065841B2 (en) | Circuit competition method and circuit competition apparatus for communication network | |
| US6519634B1 (en) | Method of generating IEEE 1394 virtual network in which a virtual network controller is connected to generate self ID packets as virtual node ID | |
| CN111865551A (en) | A device and management method based on fast bus, multi-level system coordination management | |
| JPH02113746A (en) | Signal synchronizing system | |
| US11337184B2 (en) | Method and apparatus for transmitting and receiving data stream performed in vehicle network | |
| CN110098886B (en) | FC network time synchronization method based on complex network structure | |
| JPH02135834A (en) | Signal synchronizing system | |
| KR20060026711A (en) | Method of Approving Identifier of Can Message to Humanoid Robot and Arbitration Method of Can Message Transmission | |
| Upender et al. | Embedded communication protocol options | |
| JPH063921B2 (en) | Signal synchronization method | |
| Ibe | Performance comparison of explicit and implicit token-passing networks | |
| JPH01238243A (en) | Signal synchronizing system | |
| US12506683B2 (en) | Method of cable redundacy and distributed clock synchronization based on ethercat and master device thereof | |
| JPH0279637A (en) | Signal synchronizing system | |
| JPH01227547A (en) | Data communication system | |
| JPH05191418A (en) | Transmission control system | |
| JPS6276839A (en) | Data transfer control system |
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 (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070824 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080824 Year of fee payment: 14 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080824 Year of fee payment: 14 |
|
| FPAY | Renewal fee payment (event 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 (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090824 Year of fee payment: 15 |