JPH11215167A - Network system and data communication method in network - Google Patents

Network system and data communication method in network

Info

Publication number
JPH11215167A
JPH11215167A JP10009981A JP998198A JPH11215167A JP H11215167 A JPH11215167 A JP H11215167A JP 10009981 A JP10009981 A JP 10009981A JP 998198 A JP998198 A JP 998198A JP H11215167 A JPH11215167 A JP H11215167A
Authority
JP
Japan
Prior art keywords
message
transmission
frame
time
station
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.)
Withdrawn
Application number
JP10009981A
Other languages
Japanese (ja)
Inventor
Eiji Okajima
英治 岡嶋
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.)
Fuji Electric Co Ltd
FFC Ltd
Original Assignee
Fuji Electric Co Ltd
FFC Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd, FFC Ltd filed Critical Fuji Electric Co Ltd
Priority to JP10009981A priority Critical patent/JPH11215167A/en
Publication of JPH11215167A publication Critical patent/JPH11215167A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable each station in a network to obtain a transmission opportunity of a message data frame by adding information for controlling transmission of the message data frame on a message token frame. SOLUTION: Information for controlling transmission of a message data frame is added on a message token frame, a master station and a slave station are made to store information corresponding to them and to judge. That is, a master station A takes out information from a message transmission wait priority flag area 8 inside of the master station A in order to transfer the right to transmit the message data frame to the slave station, adds it to a message transmission wait priority flag area 42 and transmits it. Then, the master station A that receives a message token frame 40 which is returned by way of each of each of slave stations B to D stores message transmission wait flag information 42 in a message transmission wait priority flag 8 inside.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、トークン・パッ
シング(Token Passing) 方式によりデータ通信を行うネ
ットワークシステムに関し、さらに詳しくは、トークン
・パッシング方式のネットワークに接続された複数の局
が均等にメッセージデータフレームの送信機会を与えら
れるネットワークシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a network system for performing data communication by a token passing system, and more particularly, to a network system in which a plurality of stations connected to a network of a token passing system uniformly transmit message data. The present invention relates to a network system provided with an opportunity to transmit a frame.

【0002】[0002]

【従来の技術】トークン・パッシング(Token Passing)
方式とは、トークンという特定の信号あるいはフレーム
を物理的あるいは論理的なリング上に巡回させて、ネッ
トワーク等の伝送媒体へのアクセス権を授受していく方
式である。送信要求が発生した局は、巡回してきたトー
クンを捕獲し、リングへのアクセス権を得て、メッセー
ジ等のデータフレーム等を送出する。又、そのデータフ
レーム等の送出後は、トークンを送出して下流の局にア
クセス権を渡す。
2. Description of the Related Art Token Passing
The scheme is a scheme in which a specific signal or frame called a token is circulated on a physical or logical ring to give and receive an access right to a transmission medium such as a network. The station that has issued the transmission request captures the circulating token, obtains the right to access the ring, and transmits a data frame such as a message. After transmitting the data frame or the like, a token is transmitted to pass the access right to a downstream station.

【0003】トークン・パッシング(Token Passing) 方
式では、トークンが消滅してしまうと、端末から送信が
不可能になってしまうため、トークンの消滅と再生を監
視して、一定時間以上トークンが巡回しなくなったこと
を検出すると、伝送媒体上の残存するデータフレーム等
を消去して新たなトークンを発生するマスター局が必要
であり、このマスター局の機能はいずれの局に持たせて
も良いが、一時点にマスター局は一つでなければならな
い。
[0003] In the token passing method, if the token expires, it becomes impossible to transmit from the terminal. Therefore, the token disappearance and reproduction are monitored, and the token circulates for a certain time or more. Upon detecting that the station has disappeared, a master station that generates a new token by erasing a data frame or the like remaining on the transmission medium is required, and any station may have the function of this master station. There must be one master station at a time.

【0004】このトークン・パッシング(Token Passin
g) 方式のマスター局とその他のスレーブ局の各局は、
順次接続されて物理的又は論理的にリングを形成してお
り、各局はリピート(再生中継)機能を有する。スレー
ブ局の各局では、上流から送られてきたメッセージ等の
データフレーム等のビット列をFIFO(First in Firs
t out)レジスタに入れ、リピート機能でわずかな遅れで
再生して下流の局に送出すると同時に、そのデータフレ
ーム等に付加されたアドレスを認識して、自局宛のデー
タフレームを複写してメモリに取り込む。
[0004] This token passing (Token Passin)
g) The master station and other slave stations of the system
They are sequentially connected to form a physical or logical ring, and each station has a repeat (regeneration relay) function. Each of the slave stations uses a FIFO (First in Firs) to transmit a bit sequence of a data frame such as a message transmitted from the upstream.
t out) register, reproduce it with a slight delay by the repeat function and send it to the downstream station, and at the same time recognize the address added to the data frame etc., copy the data frame addressed to the own station and store it in memory Take in.

【0005】さらに、トークン・パッシング(Token Pas
sing) 方式の各局では、メッセージ等のデータフレーム
等がFIFOレジスタに入れられている間に、ビット列
を書き換える機能も有し、トークンをデータフレームの
先頭を示すコードに変更して、続けてデータを送信した
り、1巡したデータフレームを消去したりでき、データ
フレーム等の宛先アドレスに示された局では、アドレス
を認識してデータフレーム等を複写したことを示すビッ
トを更新して、データフレーム送出元の局に宛先局にデ
ータフレームが届いたことを認識させること等ができ
る。
Further, token passing (Token Pas)
Each station of the sing) system also has a function of rewriting the bit string while a data frame such as a message is stored in the FIFO register, and changes the token to a code indicating the head of the data frame, and then continuously transmits the data. The station indicated by the destination address of the data frame or the like can transmit the data frame or erase the data frame, and at the station indicated by the destination address of the data frame, updates the bit indicating that the data frame or the like has been copied and updates the data frame. It is possible to make the transmitting station recognize that the data frame has reached the destination station.

【0006】このようなトークン・パッシング(Token P
assing) 方式により、データ通信を行うリング状のネッ
トワークに接続された各局が、トークンを受信した際に
メッセージ等のデータフレーム等の送信を行うか否かを
判定する方法としては、各局が固定値として内部に記憶
しているネットワークにおけるトークンの1巡時間から
実測により得たトークンの1巡時間(前回のトークン受
信から今回のトークン受信までの時間)を減算し、その
減算により得られた時間がメッセージデータフレームを
送信するのに十分な時間であれば、すなわち、メッセー
ジデータフレームを送信するための残り時間がある場合
に、メッセージデータフレームの送信が可能であると判
定する方法が知られている。この場合、各局は、該残り
時間がある場合にのみ、メッセージデータフレームの送
信を行う。
[0006] Such token passing (Token P)
Each station connected to the ring network that performs data communication by the assing method determines whether or not to transmit a data frame such as a message when receiving a token. Is subtracted from the actually measured token round time (time from the previous token reception to the current token reception) from the token round time in the network stored internally as, and the time obtained by the subtraction is There is known a method of determining that transmission of a message data frame is possible if the time is sufficient to transmit the message data frame, that is, if there is a remaining time to transmit the message data frame. . In this case, each station transmits a message data frame only when there is the remaining time.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
メッセージデータフレームの送信方法では、次のような
問題が起こる。
However, the conventional message data frame transmission method has the following problems.

【0008】例えば、A、B、Cの3局で横成されてい
るリング状ネットワークで、トークンがA→B→Cの順
に廻るようにし、かつ、トークン1巡で1局しかメッセ
ージデータフレームの送信を行うことができないような
トークン1巡時間を設定している場合には、A局が毎卜
一クン受信時にメッセージデータフレームを送信するよ
うにした場合、B局、C局は、A局がメッセージデータ
フレームの送信を終了するまでメッセージデータフレー
ムを送信することができなくなる。
For example, in a ring network composed of three stations A, B, and C, the tokens are turned in the order of A → B → C, and only one station is transmitted in one cycle of the token. If the token A round time is set such that transmission cannot be performed, if station A transmits a message data frame at the time of each token reception, stations B and C will be station A Until the transmission of the message data frame ends, the message data frame cannot be transmitted.

【0009】また、上記の例において、トークン1巡で
A、B、Cの3局全てがメッセージデータフレームの送
信を行うことができるようなトークン1巡時間を設定し
た場合には、該トークン1巡時間は3局がメッセージデ
ータフレームを送信するために必要な時間となり、その
分だけ長くなることと、各局がトークン受信時にメッセ
ージデータフレームを送信するかどうかはその時々によ
り異なるため、メッセージデータが全く送信されない場
合と、1局だけがメッセージデータフレームを送信する
場合と、2局がメッセージデータフレームを送信する場
合と、3局がメッセージデータフレームを送信する場合
があり得るためそれぞれの場合において、トークンがネ
ットワークを1巡するために要する時間は異なり、トー
クン1巡時間が均一とはならない。
Further, in the above example, if a token round time is set such that all three stations A, B, and C can transmit a message data frame in one token round, the token 1 round The tour time is the time required for three stations to transmit a message data frame, and is longer by that amount, and whether each station transmits a message data frame when receiving a token differs from time to time. In each case, there may be a case where no message is transmitted, a case where only one station transmits a message data frame, a case where two stations transmit a message data frame, and a case where three stations transmit a message data frame. The time required for the token to make one round of the network is different, and the time for one round of the token is equal. Not a.

【0010】したがって、3局全てがメッセージデータ
フレームを送信できるようなトークン1巡時間を設定し
た場合には、トークン1巡時間よりも短い周期である特
定フレームを送信したり、ある一定周期で特定フレーム
を送信したりすることができない。
Therefore, when a token round time is set such that all three stations can transmit a message data frame, a specific frame having a cycle shorter than the token round time is transmitted, or a specific frame is transmitted at a certain fixed cycle. Unable to transmit frames.

【0011】本発明が解決しようとする課題は、トーク
ンパッシング方式によりデータ通信を行うネットワーク
において、ネットワーク内の各局が均等にメッセージデ
ータフレームの送信機会を得られるようにすることであ
り、さらには、ネットワークの接続構成が変化した場合
にも設定された通信サイクル周期を乱すことなく、ネッ
トワーク上の各局に均等な送信機会を与えるようにする
ことである。
[0011] An object of the present invention is to provide a network in which data communication is performed by the token passing method so that each station in the network can obtain a message data frame transmission opportunity evenly. An object is to provide each station on the network with an even transmission opportunity without disturbing the set communication cycle period even when the network connection configuration changes.

【0012】[0012]

【課題を解決するための手段】第1の発明によれば、ネ
ットワークを監視してネットワーク内を1巡するメッセ
ージトークンフレームの生成と消去を行うマスター局と
該メッセージトークンフレームによりメッセージデータ
フレームの送信機会を与えられる少なくとも一つのスレ
ーブ局を有するネットワークシステムにおいて、前記メ
ッセージトークンフレームには、ネットワーク内の少な
くとも1局がメッセージデータフレームの送信待ち状態
である事を示すメッセージ送信待ちフラグ領域と、前回
のメッセージトークンフレームの1巡で得られた前記メ
ッセージ送信待ちフラグ領域の結果を示すメッセージ送
信待ち優先権フラグ領域を有し、前記マスター局には、
制御コードやメッセージデータフレーム等のフレームを
ネットワークへ送受信する伝送手段と、送信データ領域
と受信データ領域とメッセージデータフレームの送信完
了を示す送信完了フラグ領域と前記メッセージトークン
フレームのメッセージデータ送信待ちフラグ領域のデー
タを得てネットワーク上にメッセージデータフレームの
送信待ちをしている局が存在する事を示すメッセージ送
信待ち優先権フラグ領域とを有する記憶手段と、ネット
ワーク上に接続されている他局がメッセージデータフレ
ームの送信を行えるようにするためのメッセージトーク
ンフレームを管理するトークンフレーム管理手段と、前
記各手段の制御を行う制御・演算手段とを有し、前記ス
レーブ局には、制御コードやメッセージデータフレーム
等のフレームを前記ネットワークへ送受信する伝送手段
と、送信データ領域と受信データ領域とメッセージデー
タフレームの送信完了を示す送信完了フラグ領域を有す
る記憶手段と、前記各手段の制御を行う制御・演算手段
とを有し、前記メッセージトークンフレームを受信した
各局の制御・演算手段では、受信したメッセージトーク
ンフレーム内の前記メッセージ送信待ち優先権フラグ領
域のデータと、自局内の前記送信完了フラグ領域のデー
タにより、自局内の記憶手段の送信データ領域に記憶さ
れたメッセージデータを送信する権利が有るか否かを判
定処理が可能であることを特徴とする。
According to a first aspect of the present invention, a master station for monitoring a network and generating and erasing a message token frame that makes a round in the network, and transmitting a message data frame by using the message token frame. In a network system having at least one slave station provided with an opportunity, the message token frame includes a message transmission waiting flag area indicating that at least one station in the network is in a message data frame transmission waiting state, A message transmission waiting priority flag area indicating a result of the message transmission waiting flag area obtained in one round of a message token frame;
Transmission means for transmitting and receiving frames such as control codes and message data frames to and from the network; a transmission data area, a reception data area, a transmission completion flag area indicating completion of transmission of the message data frame, and a message data transmission waiting flag area of the message token frame Storage means having a message transmission waiting priority flag area indicating that there is a station waiting for transmission of a message data frame on the network after obtaining the data of the other station connected to the network. A token frame management unit for managing a message token frame for enabling transmission of a data frame, and a control / arithmetic unit for controlling each of the units, wherein the slave station includes a control code and a message data. In front of frames such as frames Transmission means for transmitting and receiving to and from the network, storage means having a transmission data area, a reception data area, and a transmission completion flag area indicating the completion of transmission of the message data frame, and a control / arithmetic means for controlling the respective means, The control / arithmetic unit of each station that has received the message token frame stores the message in the received message token frame in the own station by using the data in the message transmission waiting priority flag area and the data in the transmission completion flag area in the own station. It is characterized in that it is possible to determine whether or not there is a right to transmit the message data stored in the transmission data area of the means.

【0013】また、上記第1の発明における作用は以下
の(1)のようになる。 (1) (1)各スレーブ局は、電源を立ち上げた後、各スレーブ
局内部のメッセージ送信完了フラグの初期化を行う。
The operation of the first invention is as follows (1). (1) (1) After turning on the power, each slave station initializes a message transmission completion flag inside each slave station.

【0014】(2)マスター局は、電源を立ち上げた後、
マスター局内部のメッセージ送信完了フラグとメッセー
ジ送信待ち優先権フラグの初期化を行う。 (3)マスター局は、メッセージデータフレームを送信で
きる権利をスレーブ局に譲渡するため、内部の送信待ち
優先権フラグ情報を付加したメッセージトークンフレー
ムを送信する。
(2) After turning on the power, the master station
The message transmission completion flag and the message transmission waiting priority flag in the master station are initialized. (3) In order to transfer the right to transmit the message data frame to the slave station, the master station transmits a message token frame to which internal transmission wait priority flag information is added.

【0015】(4)メッセージトークンフレームを受信し
たスレーブ局では、受信したメッセージトークンフレー
ム上のメッセージ送信待ち優先権フラグをチェックし、
ネットワーク上のどの局もメッセージデータフレームの
送信待ちをしていない事を示す「0」であれば、そのス
レーブ局内部の送信完了フラグを「0」クリアする。
(4) The slave station receiving the message token frame checks the message transmission waiting priority flag on the received message token frame,
If "0" indicates that no station on the network is waiting for transmission of the message data frame, the transmission completion flag inside the slave station is cleared to "0".

【0016】受信したトークンフレーム上のメッセージ
送信待ち優先権フラグがネットワーク上のどれかの局が
メッセージデータフレームの送信待ちをしている事を示
す「1」であれば、そのスレーブ局内部の送信完了フラ
グの「0」クリアは行わない。
If the message transmission waiting priority flag on the received token frame is "1" indicating that any station on the network is waiting for transmission of the message data frame, the transmission inside the slave station is performed. The completion flag is not cleared to "0".

【0017】その後に、そのスレーブ局内部の送信完了
フラグとメッセージデータフレームの送信要求のチェッ
クが行われ、送信完了フラグが「0」で且つメッセージ
データフレームの送信要求が有る場合には、更に、メッ
セージデータフレームの送信時間が有るか否かのチェッ
クが行われ、送信時間が足りる場合にはメッセージデー
タフレームの送信が行われて送信完了後にそのスレーブ
局内部の送信完了フラグを「1」にし、トークンフレー
ムを送信して次局へメッセージデータフレームを送信で
きる権利を譲渡する。
Thereafter, the transmission completion flag inside the slave station and the message data frame transmission request are checked. If the transmission completion flag is "0" and there is a message data frame transmission request, furthermore, It is checked whether there is a transmission time for the message data frame. If the transmission time is short, the transmission of the message data frame is performed, and after the transmission is completed, the transmission completion flag in the slave station is set to “1”. The right to transmit the message data frame to the next station by transmitting the token frame is transferred.

【0018】また、上記の送信時間のチェックまでは同
様で、送信するための時間が足りない場合には、メッセ
ージデータフレームの送信やスレーブ局内部の送信完了
フラグの変更は行われずに先に受信したメッセージトー
クンフレームのメッセージ送信待ちフラグを「1」にし
てメッセージトークンフレームを送信することで、次局
にメッセージデータフレームを送信できる権利を譲渡す
る。
[0018] The same applies to the above-mentioned check of the transmission time. If the time for transmission is not enough, the message data frame is not transmitted or the transmission completion flag in the slave station is not changed before receiving. The right to transmit the message data frame is transferred to the next station by transmitting the message token frame by setting the message transmission waiting flag of the message token frame to “1”.

【0019】更に、そのスレーブ局内部の送信完了フラ
グとメッセージデータフレームの送信要求のチェック
で、送信完了フラグが「1」である場合にはメッセージ
データフレームの送信要求の有る無しに関わらず、受信
したメッセージトークンフレームをそのまま送信し、送
信完了フラグが「0」であってもメッセージデータフレ
ームの送信要求が無い場合にも、受信したメッセージト
ークンフレームをそのまま送信して、時局へメッセージ
データフレームを送信できる権利を譲渡する。
Further, when the transmission completion flag in the slave station and the transmission request of the message data frame are checked, if the transmission completion flag is "1", the reception is completed regardless of whether the transmission request of the message data frame is present or not. Even if the transmission completion flag is "0" and there is no message data frame transmission request, the received message token frame is transmitted as it is and the message data frame is transmitted to the time station. Transfer the right to send.

【0020】(5)各スレーブ局を経由して戻ってきたメ
ッセージトークンフレームを受信したマスター局は、受
信したメッセージトークンフレーム上のメッセージ送信
待ちフラグ情報を、マスター局内部のメッセージ送信待
ち優先権フラグ領域に格納する。
(5) The master station that has received the message token frame returned via each slave station updates the message transmission waiting flag information in the received message token frame with the message transmission waiting priority flag inside the master station. Store in area.

【0021】その後は、上記(4) のスレーブ局とほぼ同
じ処理を行う。即ち、受信したトークンフレーム上のメ
ッセージ送信待ち優先権フラグをチェックして、ネット
ワーク上のどの局もメッセージデータフレームの送信待
ちをしていない事の「0」を示していれば、マスター局
内部の送信完了フラグを「0」クリアする。
Thereafter, the same processing as that of the slave station (4) is performed. That is, the message transmission wait priority flag on the received token frame is checked, and if it indicates "0" indicating that no station on the network is waiting for transmission of the message data frame, the master station internal The transmission completion flag is cleared to "0".

【0022】受信したトークンフレーム上のメッセージ
送信待ち優先権フラグがネットワーク上のどれかの局が
メッセージデータフレームの送信待ちをしている事を示
す「1」であれば、そのスレーブ局内部の送信完了フラ
グの「0」クリアは行わない。
If the message transmission waiting priority flag on the received token frame is "1" indicating that any station on the network is waiting for transmission of the message data frame, the transmission inside the slave station is performed. The completion flag is not cleared to "0".

【0023】その後に、そのスレーブ局内部の送信完了
フラグとメッセージデータフレームの送信要求のチェッ
クが行われ、送信完了フラグが「0」で且つメッセージ
データフレームの送信要求が有る場合には、更に、メッ
セージデータフレームの送信時間が有るか否かのチェッ
クがマスター局内部に記憶されたトークンフレームの1
巡時の固定時間と実測されたトークン1巡時間とにより
行われ、送信時間が足りる場合にはメッセージデータフ
レームの送信が行われて送信完了後にマスター局内部の
送信完了フラグを「1」にし、トークンフレームを送信
して次局へメッセージデータフレームを送信できる権利
を譲渡する。 また、上記の送信時間のチェックまでは
同様で、送信するための時間が足りない場合には、メッ
セージデータフレームの送信やスレーブ局内部の送信完
了フラグの変更は行われずに先に受信したメッセージト
ークンフレームのメッセージ送信待ちフラグを「1」に
してメッセージトークンフレームを送信することで、次
局にメッセージデータフレームを送信できる権利を譲渡
する。
Thereafter, the transmission completion flag and the message data frame transmission request in the slave station are checked. If the transmission completion flag is "0" and there is a message data frame transmission request, furthermore, Checking whether there is a message data frame transmission time or not is performed by checking one of the token frames stored in the master station.
The transmission is performed based on the fixed time during the tour and the actually measured token one round time. If the transmission time is sufficient, the message data frame is transmitted, and after the transmission is completed, the transmission completion flag in the master station is set to “1”. The right to transmit the message data frame to the next station by transmitting the token frame is transferred. The same applies to the above transmission time check. If the transmission time is insufficient, the message token received earlier without transmitting the message data frame or changing the transmission completion flag in the slave station is not performed. By transmitting the message token frame with the message transmission waiting flag of the frame set to “1”, the right to transmit the message data frame is transferred to the next station.

【0024】更に、そのスレーブ局内部の送信完了フラ
グとメッセージデータフレームの送信要求のチェック
で、送信完了フラグが「1」である場合にはメッセージ
データフレームの送信要求の有る無しに関わらず、受信
したメッセージトークンフレームをそのまま送信し、送
信完了フラグが「0」であってもメッセージデータフレ
ームの送信要求が無い場合にも、受信したメッセージト
ークンフレームをそのまま送信して、次局へメッセージ
データフレームを送信できる権利を譲渡する。
Further, when the transmission completion flag in the slave station and the transmission request of the message data frame are checked, if the transmission completion flag is "1", regardless of whether the transmission request of the message data frame is present or not, the reception is completed. Even if the transmission completion flag is "0" and there is no request to transmit a message data frame, the received message token frame is transmitted as it is, and the message data frame is transmitted to the next station. Transfer the right to send.

【0025】(6)上記の(1) 〜(5) により、ネットワー
ク内の各局では、自局が送信できた場合には送信完了フ
ラグが「1」になって、最初にメッセージトークンフレ
ームが1巡する間に検出されたネットワーク内のメッセ
ージデータの送信待ちをしている他局が全て送信できる
までは、その「1」になった送信完了フラグが「0」ク
リアされないので、その間のメッセージトークンフレー
ムの巡回によりメッセージデータを送信する権利が多局
に回り、多局が順にメッセージデータの送信を行うの
で、メッセージデータを送信する権利を得る機会が各局
に順番に回るようになり、メッセージデータを送信する
権利を得る機会の均等化が行われる。
(6) According to the above (1) to (5), each station in the network sets the transmission completion flag to "1" when the own station can transmit, and the message token frame is first set to 1 Until all other stations waiting for transmission of the message data in the network detected during the tour can transmit, the transmission completion flag that has become “1” is not cleared to “0”. The right to transmit the message data is circulated to the multiple stations due to the circulation of the frame, and since the multiple stations transmit the message data in order, the opportunity to obtain the right to transmit the message data is sequentially turned to each station, and the message data is transmitted. Equalization of the opportunity to get the right to send is performed.

【0026】また、第2の発明によれば、ネットワーク
を監視してネットワーク内を1巡するメッセージトーク
ンフレームの生成と消去を行うマスター局と該メッセー
ジトークンフレームによりメッセージデータフレームの
送信機会を与えられる少なくとも一つのスレーブ局を有
するネットワークシステムにおいて、前記マスター局
は、前記ネットワークにおいて1巡時間を測定するため
送信される特殊メッセージトークンフレームを管理する
特殊メッセージトークンフレーム管理手段と、前記ネッ
トワークにおいて一定周期に設定された送信サイクル周
期に従い特定フレームを順次送出する特定フレーム管理
手段と、自局宛のデータ長1バイトの基準メッセージデ
ータフレームを送信して1巡後受信し1巡時間を測定し
該1巡時間を送信基準時間として他スレーブ局へ該送信
基準時間と前記基準メッセージトークンフレームの1巡
時間と共に一斉同報フレームで送信する送信基準時間管
理手段と、前記特定フレーム及び前記基準メッセージデ
ータフレームの送信時刻を収納する送信時刻領域と受信
時刻を収納する受信時刻領域と前記送信基準時間を収納
する送信基準時間領域と前記特定フレームの送出周期間
隔を収納する今回周期時間領域を有する記憶手段と、前
記各手段の制御を行う制御・演算手段とを有し、前記ス
レーブ局は、受信した前記特定フレームの受信間隔から
前記特定フレームの送信サイクル周期を得る特定フレー
ム周期測定手段と、マスター局から受信した送信基準時
間を収納する送信基準時間領域と前記特定フレームの受
信時刻を収納する受信時刻領域と前記特定フレームの周
期間隔を収納する今回周期時間領域を有する記憶手段
と、前記各手段の制御を行う制御・演算手段とを有し、
通常のメッセージトークンフレームを受信した各局の制
御・演算手段では、各局における各々の前記記憶手段内
の記憶内容を元に、前記特定フレームの前記受信時刻と
前記メッセージトークンフレームを受信した時刻の差の
時間と、前記基準メッセージトークンフレームの1巡時
間と前記送信基準時間と前記基準メッセージデータフレ
ームのデータ長から演算された前記メッセージデータフ
レームの送信時間により、前記周期間隔内に前記メッセ
ージデータフレームが送信可能か否かを判断することを
特徴とする。
According to the second aspect of the present invention, a master station that monitors a network and generates and deletes a message token frame that makes a round in the network, and a message data frame transmission opportunity can be given by the message token frame. In a network system having at least one slave station, the master station manages a special message token frame transmitted to measure one round time in the network, A specific frame management means for sequentially transmitting specific frames in accordance with the set transmission cycle period; a reference message data frame having a data length of 1 byte addressed to the own station; Send time to As the time, the transmission reference time management means for transmitting the transmission reference time and the reference message token frame together with one round time to the other slave station in a broadcast frame, and the transmission time of the specific frame and the reference message data frame are stored. Storage means having a transmission time area, a reception time area for storing a reception time, a transmission reference time area for storing the transmission reference time, and a current cycle time area for storing a transmission cycle interval of the specific frame; The slave station has a specific frame period measuring unit for obtaining a transmission cycle period of the specific frame from a reception interval of the specific frame received, and a transmission reference time received from the master station. A transmission reference time area for storing the reception time area for storing the reception time of the specific frame; A memory means having a current cycle time domain for accommodating a periodic interval of a constant frame, wherein a control and operation means for performing control of each unit,
The control / arithmetic unit of each station that has received the normal message token frame, based on the content stored in each of the storage units in each station, calculates the difference between the reception time of the specific frame and the time of receiving the message token frame. The message data frame is transmitted within the periodic interval according to the time, one round time of the reference message token frame, the transmission reference time, and the transmission time of the message data frame calculated from the data length of the reference message data frame. It is characterized in that it is determined whether or not it is possible.

【0027】また、上記第2の発明における作用は以下
の(2)のようになる。 (2) (1)ネットワーク上の接続構成の変化を検出したマスタ
ー局は、特定フレームを送信し、さらに該特定フレーム
の送信周期内で該特定フレームの送信後のなるべく早い
任意の時刻に特殊メッセージトークンフレームの送信を
行うと同時にその送信時刻を保存する。
The operation of the second invention is as follows (2). (2) (1) The master station that detects a change in the connection configuration on the network transmits a specific frame, and further transmits a special message at an arbitrary time as soon as possible after the transmission of the specific frame within the transmission cycle of the specific frame. At the same time as transmitting the token frame, the transmission time is stored.

【0028】(2)特殊メッセージトークンフレームを受
信した各スレーブ局は、メッセージデータフレームの送
信は行わず、通常のメッセージトークンフレームを受信
した際におけるメッセージデータフレームの送信を行わ
ずに次局へトークンを譲渡するのに要する時間分だけト
ークンの送信を遅延させた上で、受信した特殊メッセー
ジトークンフレームの送信を行う。
(2) Each slave station receiving the special message token frame does not transmit a message data frame, and transmits a token to the next station without transmitting a message data frame when a normal message token frame is received. After the transmission of the token is delayed by the time required to transfer the special message token, the received special message token frame is transmitted.

【0029】(3)各スレーブ局を経由して戻ってきた特
殊メッセージトークンフレームを受信したマスター局
は、その受信した受信時刻と送信時に保存しておいた送
信時刻により新たな接続構成下におけるメッセージトー
クンフレームの1巡時間を求め、そのトークン1巡時間
を記憶部のトークン1巡時間領域に格納する。
(3) The master station that has received the special message token frame returned via each slave station determines the message under the new connection configuration based on the received time and the transmission time saved at the time of transmission. One cycle time of the token frame is obtained, and the token one cycle time is stored in the token one cycle time area of the storage unit.

【0030】(4)次に、送信基準時間を得るために、自
局のアドレスを宛先アドレスとし、データ部の長さを基
準の1バイトとした自局向けの基準メッセージデータフ
レームを送信すると同時に、その送信時刻を記憶部に保
存する。
(4) Next, in order to obtain a transmission reference time, a reference message data frame for the own station with the address of the own station as the destination address and the length of the data portion as 1 byte of the reference is transmitted. The transmission time is stored in the storage unit.

【0031】(5)各スレーブ局を経由して戻ってきた自
局向け基準メッセージデータフレームを受信したマスタ
ー局では、そのメッセージデータフレームを受信した受
信時刻と送信時に保存しておいた送信時刻により新たな
接続構成下における1バイトの送信に要する送信基準時
間を求め、それを送信基準時間領域に格納する。
(5) The master station that has received the reference message data frame for its own station that has returned via each slave station uses the reception time at which the message data frame was received and the transmission time stored at the time of transmission. A transmission reference time required for transmission of one byte under the new connection configuration is obtained and stored in a transmission reference time area.

【0032】(6)次に、マスター局では、(5) で得た送
信基準時間と(3) で得たトークン1巡時間を各スレーブ
局宛に一斉同報通信フレームに付加して送信する。 (7)送信基準時間とトークン1巡時間が付加された一斉
同報通信フレームを受信した各スレーブ局では、記憶部
内の送信基準時間領域とトークン1巡時間領域に格納す
る。
(6) Next, at the master station, the transmission reference time obtained at (5) and the token round time obtained at (3) are added to the broadcast frame to each slave station and transmitted. . (7) Each slave station receiving the broadcast frame to which the transmission reference time and the token round time are added stores them in the transmission reference time area and the token round time area in the storage unit.

【0033】(8)また、スレーブ局では、マスター局か
ら送られてくる特定フレームを受信した場合に、特定フ
レーム周期測定部内又は時間測定部内に設けられた周期
計測タイマーの停止と再起動を行い、そのタイマー値を
記憶部の今回周期時間領域に格納する。
(8) When the slave station receives a specific frame sent from the master station, the slave station stops and restarts the period measurement timer provided in the specific frame period measurement unit or the time measurement unit. And stores the timer value in the current cycle time area of the storage unit.

【0034】(9)その後に通常の前記メッセージトーク
ンフレームを受信したスレーブ局の各局では、前記記憶
部内の今回周期時間領域の記憶内容を元に、前記受信時
刻領域に記憶された特定フレームの受信時刻と前記メッ
セージトークンフレームを受信した時刻の差の時間と、
前記トークン1巡時間と前記送信基準時間と前記メッセ
ージデータフレームのデータ長から演算した前記メッセ
ージデータフレームの送信時間により、前記今回周期時
間領域に記憶された時間内に送信が可能なメッセージデ
ータフレームの送信時間を算出し、前記メッセージデー
タフレームが送信可能か否かを判断する。 (10)通常の前記メッセージトークンフレームを受信した
マスター局では、前記記憶部内の今回周期時間領域の記
憶内容を元に、前記送信時刻領域に記憶された特定フレ
ームの送信時刻と前記メッセージトークンフレームを送
信した時刻の差の時間と、前記メッセージトークンフレ
ームの1巡時間と、前記送信基準時間と前記メッセージ
データフレームのデータ長から演算した前記メッセージ
データフレームの送信時間により、前記今回周期時間領
域に記憶された時間内に送信が可能なメッセージデータ
フレームの送信時間を算出し、前記メッセージデータフ
レームが送信可能か否かを判断する。
(9) Thereafter, each of the slave stations receiving the normal message token frame receives the specific frame stored in the reception time area based on the storage content of the current cycle time area in the storage unit. The time of the difference between the time and the time when the message token frame was received,
By the transmission time of the message data frame calculated from the token one round time, the transmission reference time, and the data length of the message data frame, a message data frame that can be transmitted within the time stored in the current cycle time area is determined. A transmission time is calculated to determine whether the message data frame can be transmitted. (10) The master station that has received the normal message token frame stores the transmission time of the specific frame stored in the transmission time area and the message token frame based on the stored content of the current cycle time area in the storage unit. Stored in the current cycle time area according to the time difference between the transmission times, the one round time of the message token frame, the transmission time of the message data frame calculated from the transmission reference time and the data length of the message data frame. The transmission time of a message data frame that can be transmitted within the set time is calculated, and it is determined whether the message data frame can be transmitted.

【0035】上記(2)の(1) 〜(10)の動作を行うこと
により、マスター局とスレーブ局において、以下に述べ
る動作が可能になる。マスター局は、システム構成に応
じた一定周期期間内において、メッセージトークンフレ
ーム受信時に、メッセージデータの送信を行える残り時
間を算出すると共に、今回送信するメッセージデータフ
レームのデータ長の送信に要する時間を送信基準時間よ
り算出し、算出した両者の結果を比較することにより自
局メッセージデータフレームの送信が可能であるか否か
を判定する。
By performing the operations (1) to (10) of the above (2), the following operations can be performed in the master station and the slave stations. The master station calculates the remaining time during which message data can be transmitted when a message token frame is received within a fixed period according to the system configuration, and transmits the time required to transmit the data length of the message data frame to be transmitted this time. It is calculated from the reference time, and by comparing the calculated results, it is determined whether or not transmission of the own station message data frame is possible.

【0036】また、マスター局は、一定周期期間内にお
ける現時点でのメッセージ送信に与えられる残り時間
と、スレーブ局にメッセージトークンフレームを送信
し、それを受信したいずれかのスレーブ局にて、システ
ムで決められている最小バイト数のメッセージデータフ
レームの送信が行われ、メッセージトークンフレームが
再びマスター局に戻ってくるまでの時間を比較すること
により、これからスレーブ局にメッセージトークンフレ
ームを送信した場合に、一定周期期間を乱すことがなく
送信が可能であるか否かの判定を行ってからメッセージ
トークンフレームの送出を行うことができる。
Further, the master station transmits the message token frame to the slave station at the present time within the fixed period, and transmits a message token frame to the slave station. By transmitting the message data frame of the determined minimum number of bytes and comparing the time until the message token frame returns to the master station again, when the message token frame is transmitted to the slave station from now on, The message token frame can be transmitted after determining whether transmission is possible without disturbing the fixed period.

【0037】一方、スレーブ局では、記憶部に記憶され
た今回周期時間を元に、記憶部に記憶された特定フレー
ムの受信時刻からメッセージトークンフレーム受信時ま
での経過時間とからメッセージ送信に与えれる残り時間
を算出し、さらに、送信予定のメッセージデータフレー
ムのデータ長から、該メッセージデータフレームの送信
に要する時間を記憶された送信基準時間より算出し、両
者を比較することにより、上記自局が送信予定のメッセ
ージデータフレームを送信するか否かを判定することが
可能になる。
On the other hand, the slave station gives the message transmission based on the current cycle time stored in the storage unit and the elapsed time from the reception time of the specific frame stored in the storage unit to the reception time of the message token frame. By calculating the remaining time, and further calculating the time required for transmitting the message data frame from the stored transmission reference time from the data length of the message data frame to be transmitted, and comparing the two, the own station can determine It is possible to determine whether to transmit a message data frame to be transmitted.

【0038】[0038]

【発明の実施の形態】本発明の実施の形態を以下に図面
を参照しながら詳細に説明する。図1は、第1の発明の
マスター局Aとスレーブ局B〜Dをリング状のネットワ
ークに構成した場合の一実施形態の全体構成を示す図で
ある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a diagram showing an overall configuration of an embodiment when a master station A and slave stations B to D according to the first invention are configured in a ring network.

【0039】尚、ネットワーク上における各々の局アド
レスは、マスター局が局A、第1のスレーブ局が局B、
第2のスレーブ局が局C、第3のスレーブ局が局Dと
し、本図で用いられるメッセージトークンフレーム40
は、1ビットのメッセージ送信待ちフラグ41と1ビッ
トのメッセージ送信待ち優先権フラグ42を含み、局
A、局B、局C、局D、そして局Aに戻るという順番に
渡されていくものとする。
The station addresses on the network are as follows: the master station is station A, the first slave station is station B,
The second slave station is station C, and the third slave station is station D.
Includes a 1-bit message transmission waiting flag 41 and a 1-bit message transmission waiting priority flag 42, which are passed in the order of station A, station B, station C, station D, and station A. I do.

【0040】また、現状で、全ての局は電源立ち上げ後
で各局の内部メモリは初期化されている状態とする。 (i)マスター局Aは、メッセージデータフレームを送信
できる権利をスレーブ局に譲渡するため、マスター局A
内部のメッセージ送信待ち優先権フラグ領域8より情報
を取り出し、それをメッセージトークンフレーム40の
メッセージ送信待ち優先権フラグ領域42に付加して送
信する。
At present, all the stations are initialized after power-on. (i) The master station A transfers the right to transmit the message data frame to the slave station,
The information is extracted from the internal message transmission waiting priority flag area 8 and added to the message transmission waiting priority flag area 42 of the message token frame 40 and transmitted.

【0041】(ii)メッセージトークンフレームを受信
したスレーブ局Bは、受信したメッセージトークンフレ
ーム40上のメッセージ送信待ち優先権フラグ42をチ
ェックし、「0」であれば内部の送信完了フラグ27−
1を初期化して「0」クリアする。また、優先権フラグ
42が「1」であれば、スレーブ局B内部の送信完了フ
ラグ27−1の状態はそのまま現状維持とする。次に、
内部の送信完了フラグ27−1が「0」で、かつ、メッ
セージデータフレームの送信要求が有るか無いかを確認
し、送信要求があれば、さらにメッセージデータフレー
ムの送信時間があるかを、スレーブ局B内部のトークン
1巡時の固定時間領域26の内容と実測されたトークン
1巡時間(前回のメッセージトークンフレーム受信から
今回のメッセージトークンフレーム受信迄の時間)とに
より残りの時間を求める。
(Ii) The slave station B that has received the message token frame checks the message transmission waiting priority flag 42 on the received message token frame 40. If “0”, the internal transmission completion flag 27-
Initialize 1 and clear to "0". If the priority flag 42 is "1", the state of the transmission completion flag 27-1 in the slave station B is maintained as it is. next,
It is checked whether the internal transmission completion flag 27-1 is "0" and whether or not there is a message data frame transmission request. If there is a transmission request, it is determined whether there is further message data frame transmission time. The remaining time is obtained from the contents of the fixed time area 26 of the token B inside the station B and the actually measured token one round time (the time from the reception of the previous message token frame to the reception of the current message token frame).

【0042】残り時間があればメッセージデータフレー
ムの送信を行い、送信完了後にスレーブ局B内部の送信
完了フラグ27−1を「1」にする。そして、先に受信
したメッセージトークンフレーム40を送信すること
で、次局(スレーブ局C)にメッセージデータフレーム
を送信できる権利を譲渡する。
If there is remaining time, the message data frame is transmitted, and after the transmission is completed, the transmission completion flag 27-1 inside the slave station B is set to "1". Then, by transmitting the previously received message token frame 40, the right to transmit the message data frame to the next station (slave station C) is transferred.

【0043】あるいは、スレーブ局B内部の送信完了フ
ラグ27−1が「0」で、メッセージデータフレームの
送信要求が有り、時間が無かった場合には、先に受信し
たメッセージトークンフレーム40のメッセージ送信待
ちフラグ41を「1」にしたメッセージトークンフレー
ム40を送信する。
Alternatively, if the transmission completion flag 27-1 inside the slave station B is "0" and there is a request to transmit a message data frame, and there is no time, the message transmission of the previously received message token frame 40 is performed. The message token frame 40 in which the wait flag 41 is set to “1” is transmitted.

【0044】また、スレーブ局B内部の送信完了フラグ
27−1が「1」、あるいは、メッセージデータフレー
ムの送信要求が無かった湯合には、先に受信したメッセ
ージトークンフレーム40をそのまま送信することで、
次局(スレーブ局C)にメッセージデータフレームを送
信できる権利を譲渡する。
When the transmission completion flag 27-1 inside the slave station B is "1" or when there is no request to transmit a message data frame, the previously received message token frame 40 is transmitted as it is. so,
The right to transmit the message data frame is transferred to the next station (slave station C).

【0045】その後、各スレーブ局C、Dでも、スレー
ブ局Bと同様な処理が繰り返される。 (iii) 各スレーブ局B、C、Dを経由して戻ってきた
メッセージトークンフレーム40を受信したマスター局
Aは、受信したメッセージトークンフレーム上のメッセ
ージ送信待ちフラグ情報42を、内部のメッセージ送信
待ち優先権フラグ領域8に格納する。後は、スレーブ局
B、C、Dと同じ処理をする。即ち、受信したメッセー
ジトークンフレーム40上のメッセージ送信待ち優先権
フラグ42をチェックし、「0」であればマスター局A
内部の送信完了フラグを「0」クリアする。
Thereafter, in each of the slave stations C and D, the same processing as in the slave station B is repeated. (Iii) Upon receiving the message token frame 40 returned via each of the slave stations B, C and D, the master station A changes the message transmission waiting flag information 42 on the received message token frame to the internal message transmission waiting state. It is stored in the priority flag area 8. Thereafter, the same processing as that of the slave stations B, C, and D is performed. That is, the message transmission waiting priority flag 42 on the received message token frame 40 is checked.
The internal transmission completion flag is cleared to "0".

【0046】メッセージ送信待ち優先権フラグ42が
「1」であれば、マスター局A内部の送信完了フラグ領
域7に対する「0」クリアは行わず現状を維持する。次
に、マスター局A内部の送信完了フラグ領域7が「0」
で、かつ、メッセージデータフレームの送信要求を確認
し、送信要求があればメッセージデータフレームの送信
時間があるか、マスター局A内部のトークン1巡時の固
定時間と実測されたトークン1巡時間とにより残り時間
を求める。残り時間が前記メッセージデータフレームの
送信時間に足りていればメッセージデータフレームの送
信を行い、その送信完了後にマスター局A内部の送信完
了フラグ7を「1」にする。そして、先に受信したメッ
セージトークンフレーム40を送信することで、次局に
メッセージデータフレームを送信できる権利を譲渡す
る。
If the message transmission waiting priority flag 42 is "1", "0" is not cleared to the transmission completion flag area 7 inside the master station A, and the current state is maintained. Next, the transmission completion flag area 7 inside the master station A is set to “0”.
And confirms the message data frame transmission request, and if there is a transmission request, determines whether there is a message data frame transmission time or whether the fixed time during the token 1 round inside the master station A and the actually measured token 1 round time To obtain the remaining time. If the remaining time is shorter than the message data frame transmission time, the message data frame is transmitted, and after the transmission is completed, the transmission completion flag 7 in the master station A is set to “1”. Then, by transmitting the previously received message token frame 40, the right to transmit the message data frame is transferred to the next station.

【0047】あるいは、マスター局A内部の送信完了フ
ラグ7が「0」で、メッセージデータフレームの送信要
求が有り、残り時間が前記メッセージデータフレームの
送信時間に足り無かった場合には、先に受信したメッセ
ージトークンフレーム40のメッセージ送信待ちフラグ
41を「1」にしたメッセージトークンフレーム40を
送信する。
Alternatively, if the transmission completion flag 7 in the master station A is "0" and there is a request to transmit a message data frame, and the remaining time is less than the transmission time of the message data frame, the reception is performed first. The message token frame 40 with the message transmission waiting flag 41 of the message token frame 40 set to “1” is transmitted.

【0048】また、マスター局A内部の送信完了フラグ
7が「1」、あるいは、メッセージデータフレームの送
信要求が無い場合には、メッセージデータフレームの送
信は行わない。
When the transmission completion flag 7 in the master station A is "1" or when there is no request to transmit a message data frame, no message data frame is transmitted.

【0049】上記 (i)から(iii) の動作を行うことによ
り、ネットワーク上の全ての局は、順番かつ均等にメッ
セージデータフレームの送信を行うことができるように
なる。
By performing the above operations (i) to (iii), all stations on the network can transmit message data frames in order and evenly.

【0050】図2は、本発明におけるマスター局Aの一
実施形態の構成を示す図である。伝送部1は、ネットワ
ークに接続されてメッセージフレームやデータフレーム
等の各種のフレームの送受信を行う。
FIG. 2 is a diagram showing the configuration of an embodiment of the master station A according to the present invention. The transmission unit 1 is connected to a network and transmits and receives various frames such as a message frame and a data frame.

【0051】時間測定部2は、メッセージトークンフレ
ーム等の各種フレームの送信時刻や受信時刻及びその間
の1巡時間や同種のフレームの送信間隔や受信間隔の測
定を行う。
The time measuring unit 2 measures the transmission time and reception time of various frames such as a message token frame, the round trip time between them, and the transmission interval and reception interval of the same type of frame.

【0052】記憶部3は、時刻や時間に関する各種のデ
ータや設定値、送受信されるメッセージ、状態や条件を
示すフラグ等が記憶され、以下にその詳細を記述する。
送信データ領域4は、マスター局Aから通常は他のスレ
ーブ局B〜Dに宛ててネットワークに送信出力されるメ
ッセージデータ等が記憶される領域である。
The storage unit 3 stores various data and set values relating to time and time, messages to be transmitted and received, flags indicating states and conditions, and the like, and details thereof will be described below.
The transmission data area 4 is an area for storing message data and the like transmitted from the master station A to the other slave stations B to D and transmitted to the network.

【0053】受信データ領域5は、逆に他のスレーブ局
B〜Dからマスター局Aに宛ててネットワーク経由で受
信したメッセージデータ等が記憶される領域である。ト
ークン1巡時間領域6は、各局A〜Dにメッセージデー
タの送信する権利を与えるメッセージトークンフレーム
40が、単独で現状のネットワーク構成においてネット
ワークを1巡するのに要する時間が記憶される領域であ
る。
The reception data area 5 is an area for storing message data and the like received from other slave stations B to D to the master station A via the network. The token cycle time area 6 is an area in which the time required for the message token frame 40 that gives each station A to D the right to transmit message data to make a single round of the network in the current network configuration is stored. .

【0054】送信完了フラグ領域7は、送信データ領域
4で送信を待っていたメッセージデータが、メッセージ
トークンフレーム40を受信した結果、ネットワークに
送出された場合に「0」から「1」になって送信済みで
あることを示す送信完了フラグが格納される領域であ
る。
The transmission completion flag area 7 changes from “0” to “1” when the message data waiting for transmission in the transmission data area 4 is transmitted to the network as a result of receiving the message token frame 40. This area stores a transmission completion flag indicating that transmission has been completed.

【0055】メッセージ送信待ち優先権フラグ領域8
は、前回ネットワークの各局を1巡したメッセージトー
クンフレームにより収集されたネットワーク各局の少な
くとも何れか1局がメッセージデータフレームの送信待
ちをしていることを示すメッセージ送信待ち優先権フラ
グの内容が格納される領域である。
Message transmission waiting priority flag area 8
Stores the contents of the message transmission waiting priority flag indicating that at least one of the stations of the network is waiting for transmission of the message data frame collected by the message token frame that has made one round of the stations of the network last time. Area.

【0056】送信時刻領域9は、メッセージトークンフ
レームの送信周期を固定値にした場合で、周期の残り時
間とメッセージデータフレームの送信時間を算出するた
めのデータとして各種フレームの送信時刻を記憶する領
域である。
The transmission time area 9 is an area for storing the transmission time of various frames as data for calculating the remaining time of the cycle and the transmission time of the message data frame when the transmission cycle of the message token frame is fixed. It is.

【0057】受信時刻領域10は、メッセージトークン
フレームの送信周期を固定値とした場合で、送信周期の
残り時間とメッセージデータフレームの送信時間を算出
するためのデータとして各種フレームの受信時刻を記憶
する領域である。
The reception time area 10 stores the reception time of various frames as data for calculating the remaining time of the transmission cycle and the transmission time of the message data frame when the transmission cycle of the message token frame is a fixed value. Area.

【0058】送信基準時間領域11は、現状のネットワ
ークで送信された1バイトのメッセージデータがネット
ワークを1巡するために必要な時間を記憶する領域であ
る。今回周期時間領域12は、現状のネットワークにお
ける各局のメッセージデータフレームの送信周期を決め
るためのフレームを送信する周期の時間間隔を記憶する
領域である。
The transmission reference time area 11 is an area for storing a time required for 1-byte message data transmitted on the current network to make one round of the network. The current cycle time area 12 is an area for storing a time interval of a frame transmission cycle for determining a message data frame transmission cycle of each station in the current network.

【0059】制御・演算部13は、マスター局Aの各部
の制御やデータのやりとりの制御、及び、時間や時刻の
演算等を行う。トークンフレーム管理部14は、伝送部
1を介して一定周期毎や任意のタイミングで新しいメッ
セージトークンフレーム送信したり、送信後にネットワ
ークを1巡したメッセージトークンフレームを伝送部1
を介して受信して必要な処理を行う管理部である。
The control / arithmetic unit 13 controls each unit of the master station A, controls data exchange, and calculates time and time. The token frame management unit 14 transmits a new message token frame at regular intervals or at an arbitrary timing via the transmission unit 1 or transmits a message token frame that has made one round of the network after transmission.
Is a management unit that performs necessary processing by receiving the information via the Internet.

【0060】特定フレーム管理部15は、伝送部1を介
して一定周期毎に新しい特定フレームをネットワークへ
送信させてその送信間隔を送信サイクル周期とさせる管
理部である。
The specific frame management unit 15 is a management unit that transmits a new specific frame to the network at regular intervals via the transmission unit 1 and sets the transmission interval as a transmission cycle period.

【0061】送信基準時間管理部16は、伝送部1を介
して自局向けの1バイトの基準メッセージデータフレー
ムを作成して送信すると共に送信時刻を送信時刻領域9
に記憶し、その基準メッセージデータフレームがネット
ワークを1巡して受信された時刻と記憶された送信時刻
から送信基準時間を送信基準時間量域11に設定し、一
斉同報フレームによりネットワーク内の全スレーブ局に
その送信基準時間をトークン1巡時間と共に通知する管
理部である。
The transmission reference time management unit 16 creates and transmits a 1-byte reference message data frame for the own station via the transmission unit 1 and transmits the transmission time to the transmission time area 9.
The transmission reference time is set in the transmission reference time area 11 from the time when the reference message data frame is received in one round of the network and the stored transmission time, and all broadcasts in the network are sent by the broadcast frame. This is a management unit that notifies the slave station of the transmission reference time together with the token one round time.

【0062】図3は、本発明におけるスレーブ局B〜D
の一実施形態の構成を示す図である。伝送部21は、図
2の伝送部1と同様にネットワーク35に接続されてメ
ッセージフレームやデータフレーム等の各種のフレーム
の送受信を行う。
FIG. 3 shows slave stations B to D according to the present invention.
FIG. 2 is a diagram showing a configuration of one embodiment. The transmission unit 21 is connected to the network 35 in the same manner as the transmission unit 1 of FIG. 2, and performs transmission and reception of various frames such as a message frame and a data frame.

【0063】時間測定部22は、図2の時間測定部2と
同様にメッセージトークンフレーム等の各種フレームの
送信時刻や受信時刻及びその間の1巡時間や同種のフレ
ームの送信間隔や受信間隔の測定を行う。
The time measurement unit 22 measures the transmission time and reception time of various frames such as a message token frame, the round-trip time therebetween, and the transmission interval and reception interval of the same type of frame, similarly to the time measurement unit 2 of FIG. I do.

【0064】記憶部23は、図2の記憶部3と同様に時
刻や時間に関する各種のデータや設定値、送受信される
メッセージ、状態や条件を示すフラグ等が記憶される
が、詳細な内容は一部で異なる。以下にその詳細を記述
する。
The storage unit 23 stores various data and set values relating to time and time, messages to be transmitted and received, flags indicating states and conditions, and the like, similar to the storage unit 3 in FIG. Some are different. The details are described below.

【0065】送信データ領域24は、図2の送信データ
領域4と同様であるがこの領域の存在する局がマスター
局Aではなくスレーブ局B〜Dであるので、通常は送信
元がスレーブ局B〜Dのどれかであり、送信先が通常は
他のスレーブ局B〜Dの残りのどれかかマスター局A宛
てになり、ネットワークに送信出力されるメッセージデ
ータ等が記憶される領域である。
The transmission data area 24 is the same as the transmission data area 4 in FIG. 2 except that the station in which this area exists is not the master station A but the slave stations B to D. To D, where the transmission destination is usually one of the remaining slave stations B to D and is destined to the master station A, and is an area where message data and the like to be transmitted and output to the network are stored.

【0066】受信データ領域25は、逆に、通常は他の
スレーブ局B〜Dの残りの何れかかマスター局Aから、
自局であるスレーブ局B〜Dのどれかに宛ててネットワ
ーク経由で受信したメッセージデータ等が記憶される領
域である。
On the other hand, the reception data area 25 normally contains, from the master station A, one of the remaining slave stations BD.
This is an area in which message data and the like received via the network to any of the slave stations B to D as the own station are stored.

【0067】トークン1巡時間領域26は、図2のトー
クン1巡時間領域6と同様に、現状のネットワークにお
いて、各局にメッセージデータの送信する権利を与える
メッセージトークンフレームがネットワークを1巡する
のに要する時間が記憶される領域であるが、記憶される
トークン1巡時間は、一定周期期間毎にメッセージトー
クンフレームが送出される場合には、その一定周期期間
内に設定されたメッセージの量に応じた伝送期間が付加
されたトークン1巡時間として記憶される。
The token one round time area 26 is similar to the token one round time area 6 in FIG. 2 in that the message token frame which gives each station the right to transmit message data in the current network makes one round of the network. Although the required time is stored in the area, the stored token round time depends on the amount of messages set within the fixed cycle period when a message token frame is transmitted every fixed cycle period. The transmission period is stored as one token round time with the added transmission period.

【0068】送信完了フラグ領域27は、図2の送信完
了フラグ領域7と同様に、送信データ領域24で送信を
待っていたメッセージデータが、メッセージトークンの
受信によりネットワークに送出されたことを示す送信完
了フラグが格納される領域である。
As in the transmission completion flag area 7 of FIG. 2, the transmission completion flag area 27 indicates that the message data waiting to be transmitted in the transmission data area 24 has been transmitted to the network by receiving the message token. This is an area where a completion flag is stored.

【0069】受信時刻領域28は、図2の受信時刻領域
10と同様にメッセージトークンフレームの送信周期を
固定値とした場合で、周期の残り時間とメッセージデー
タフレームの送信時間を算出するための基礎データを得
るために送信された各種フレームの受信時刻を記憶する
領域である。
The reception time area 28 is the same as the reception time area 10 in FIG. 2 when the transmission cycle of the message token frame is a fixed value and the remaining time of the cycle and the transmission time of the message data frame are calculated. This is an area for storing reception times of various frames transmitted to obtain data.

【0070】送信基準時間領域29は、図2の送信基準
時間領域11と同様に現状のネットワークで1バイトの
基準メッセージデータを送信するために必要な時間を記
憶する領域であるが、図2の送信基準時間領域11とは
異なりこの送信基準時間は通常はマスター局Aから一斉
同報フレームで通知される。
The transmission reference time area 29 is an area for storing the time required for transmitting 1-byte reference message data in the current network, similarly to the transmission reference time area 11 in FIG. Unlike the transmission reference time area 11, the transmission reference time is usually notified from the master station A by a broadcast frame.

【0071】今回周期時間領域30は、図2の今回周期
時間領域12と同様に現状のネットワークにおいて、送
信周期を決める特定フレームが受信された周期の時間間
隔を記憶する領域である。
The current cycle time area 30 is an area for storing a time interval of a cycle in which a specific frame for determining a transmission cycle is received in the current network, similarly to the current cycle time area 12 in FIG.

【0072】特定フレーム周期測定部31は、図2の特
定フレーム管理部15に対応するが、図2の特定フレー
ム管理部15では送信する特定フレームの周期の管理で
あったのに対し、特定フレーム周期管理部31は受信し
た特定フレームの周期を時間測定部22と共に測定す
る。
The specific frame period measuring unit 31 corresponds to the specific frame managing unit 15 in FIG. 2. The specific frame managing unit 15 in FIG. 2 manages the period of the specific frame to be transmitted. The cycle management unit 31 measures the cycle of the received specific frame together with the time measurement unit 22.

【0073】制御・演算部32は、図2の制御・演算部
13と同様に自局であるスレーブ局B〜Dのいずれかの
局の各部の制御やデータのやりとりの制御、及び、時間
や時刻の演算等を行う。
The control / arithmetic unit 32 controls each unit of any one of the slave stations B to D, which is its own station, controls the exchange of data, and controls time and time, similarly to the control / arithmetic unit 13 of FIG. The time is calculated.

【0074】図4は、マスター局Aにおける本発明の実
施の形態の動作を説明するフローチャートである。ステ
ップS1では、マスター局Aの電源が投入される。
FIG. 4 is a flowchart illustrating the operation of the master station A according to the embodiment of the present invention. In step S1, the power of the master station A is turned on.

【0075】ステップS2では、自局の電源投入に伴
い、記憶部3内のメッセージの送信完了フラグ領域7と
メッセージ送信待ち優先権フラグ領域8の初期化が行わ
れてどちらの領域も「0」となる。この状態は、現時点
では、自局に送信待ちをしているメッセージデータは無
く、ネットワーク上のどの他局にも送信待ちをしている
メッセージデータは無い事を意味する。
In step S2, when the power of the own station is turned on, the message transmission completion flag area 7 and the message transmission waiting priority flag area 8 in the storage unit 3 are initialized, and both areas are set to "0". Becomes This state means that, at present, there is no message data waiting to be transmitted to the own station, and there is no message data waiting to be transmitted to any other station on the network.

【0076】ステップS3は、自局に電源投入後の最初
のメッセージトークンフレームの送信であり、この送信
によりメッセージデータを送信する権利をスレーブ局に
譲渡する。 メッセージトークンフレームには、メッセ
ージ送信待ちフラグ41とメッセージ送信待ち優先権フ
ラグ42が付加されており、この場合はどちらのフラグ
も初期状態の「0」である。
Step S3 is the transmission of the first message token frame after power is supplied to the own station, and the right to transmit message data is transferred to the slave station by this transmission. A message transmission waiting flag 41 and a message transmission waiting priority flag 42 are added to the message token frame. In this case, both flags are "0" in the initial state.

【0077】ステップS4は、ネットワークを1巡して
自局に戻ってきたメッセージトークンフレームの受信で
ある。ステップS5は、受信したメッセージトークンフ
レームがネットワークを1巡する間に得たメッセージ送
信待ちフラグの情報を、時局(マスター局)のメッセー
ジ送信待ち優先権フラグ領域8へ格納し、メッセージ送
信待ちフラグを初期化する。
Step S4 is the reception of the message token frame that has returned to its own station after making a round of the network. In step S5, the information of the message transmission waiting flag obtained while the received message token frame makes one round of the network is stored in the message transmission waiting priority flag area 8 of the time station (master station). Is initialized.

【0078】ステップS6は、自局にメッセージデータ
を送信する優先権があるか否かの確認で、受信したメッ
セージトークンフレームのメッセージ送信待ち優先権フ
ラグは「0」であるか否か、すなわち、ネットワーク内
の局にメッセージ送信待ちをしている局が有るか無いか
を確認している。尚、この場合のメッセージ送信待ちを
している局でないこととは、後述するように一旦メッセ
ージデータを送信できて優先権が1巡するまでは次のメ
ッセージデータを送信する優先権を受け取ることができ
ない局を含む。
In step S6, it is confirmed whether or not the own station has a priority for transmitting the message data. The message transmission waiting priority flag of the received message token frame is "0", that is, It checks if any station in the network is waiting for message transmission. In this case, a station that is not waiting for message transmission means that, as described later, it is possible to temporarily transmit message data and receive the priority of transmitting the next message data until the priority goes round. Including stations that cannot.

【0079】メッセージトークンフレームのメッセージ
送信待ちフラグが「0」、すなわち、メッセージ送信待
ちをしている局がネットワーク内に無いか、送信待ち優
先権がネットワーク内の各局を1巡していれば自局(マ
スター局)内のメッセージ送信完了フラグ領域7の初期
化を行うステップS7に進み、メッセージ送信待ちフラ
グが「1」、すなわち、メッセージ送信待ちをしている
局がネットワーク内に有れば、そのメッセージ送信待ち
をしている局が自局であるかの確認を行うステップS8
へ進む。
If the message transmission waiting flag of the message token frame is “0”, that is, if there is no station waiting for message transmission in the network, or if the transmission waiting priority has made a round of each station in the network, the self Proceeding to step S7 for initializing the message transmission completion flag area 7 in the station (master station), if the message transmission waiting flag is "1", that is, if there is a station waiting for message transmission in the network, Step S8 for checking whether the station waiting for the message transmission is the own station.
Proceed to.

【0080】ステップS7は、メッセージトークンフレ
ームのメッセージ送信待ち優先権フラグによりネットワ
ーク内にメッセージデータの送信待ちをしている局が存
在しないこと、すなわち次のメッセージデータを送信す
る優先権が有ることを受けて、自局内のメッセージ送信
完了フラグ領域7を初期化して次のメッセージデータの
送信を可能にする。
In step S7, the message transmission priority flag in the message token frame indicates that there is no station waiting for transmission of message data in the network, that is, that there is a priority for transmitting the next message data. Then, the message transmission completion flag area 7 in the own station is initialized to enable transmission of the next message data.

【0081】ステップS8は、メッセージトークンフレ
ームのメッセージ送信待ち優先権フラグがネットワーク
内に送信待ちをしている局が存在することを示している
ことを受けて、さらに、自局にその権利が有るかどうか
を確認するため自局内のメッセージ送信完了フラグ領域
7が「0」であるか否かを確認する。メッセージ送信完
了フラグ領域7が「0」であれば、対象となるメッセー
ジデータはまだ送信されておらず、自局に優先権が有る
ということであるので、送信データ領域4に記憶された
メッセージデータを送信するために次のステップS9へ
進む。メッセージ送信完了フラグが「1」であれば、自
局に優先権が無いということであるので、メッセージト
ークンフレームを次の局へ送信するためのステップS1
4へ進む。
In step S8, in response to the message transmission waiting priority flag of the message token frame indicating that there is a station waiting for transmission in the network, the own station further has the right. In order to confirm whether or not the message transmission completion flag area 7 in the own station is "0", it is confirmed. If the message transmission completion flag area 7 is “0”, it means that the target message data has not been transmitted yet and that the own station has a priority, so the message data stored in the transmission data area 4 To the next step S9 in order to transmit. If the message transmission completion flag is "1", it means that the own station does not have priority, and therefore, step S1 for transmitting the message token frame to the next station.
Proceed to 4.

【0082】ステップS9は、前のステップS7とステ
ップS8で、自局にメッセージデータを送信する優先権
が有る事になるので、実際に送信するメッセージデータ
フレームの送信要求が有るか否かの確認を行う。この確
認は送信データ領域4にメッセージデータが格納されて
いるか、あるいは、メッセージデータの記憶とは別にフ
ラグ等を設けて確認するようにしてもよい。メッセージ
データフレームの送信要求が有れば、メッセージデータ
フレームの送信時間を確認するための次のステップS1
0へ進む。メッセージデータフレームの送信要求が無け
れば、優先権は有っても実際に送信するメッセージデー
タは無いということであるので、メッセージトークンフ
レームを次の局へ送信するためのステップS14へ進
む。
In step S9, the previous station S7 and step S8 determine that there is a request to transmit a message data frame to be actually transmitted because the own station has a priority to transmit message data. I do. This confirmation may be made by confirming whether the message data is stored in the transmission data area 4 or by providing a flag or the like separately from the storage of the message data. If there is a message data frame transmission request, the next step S1 for confirming the message data frame transmission time
Go to 0. If there is no message data frame transmission request, it means that there is no message data to be actually transmitted even though there is a priority, and the process proceeds to step S14 for transmitting a message token frame to the next station.

【0083】ステップS10は、メッセージデータフレ
ームの送信前に、メッセージトークンフレームの1巡時
間内で、今回送信しようとしているメッセージデータフ
レームが送信可能であるか否かの確認を行っている。こ
の場合はトークン1巡時間領域6に格納された固定値で
あるメッセージトークンフレームの1巡時間の設定値か
らトークンフレーム管理部14や時間測定部2での実際
の測定によるメッセージトークン1巡時間を引いた残り
時間が有るか無いかで判断する。残り時間が有る場合に
はメッセージデータフレームの送信のステップS11に
進む。残り時間が無い場合には送信待ちをすることにな
るので、受信したメッセージトークンフレーム中のメッ
セージ送信待ちフラグを「1」にするステップS12へ
進む。
In step S10, before transmitting the message data frame, it is confirmed whether or not the message data frame to be transmitted this time can be transmitted within one round of the message token frame. In this case, the message token one round time actually measured by the token frame management unit 14 and the time measuring unit 2 is calculated from the fixed value of the message token frame one round time stored in the token one round time area 6. Judge whether there is remaining time or not. If there is remaining time, the process proceeds to step S11 of transmitting a message data frame. If there is no remaining time, transmission waits, so that the process proceeds to step S12 in which the message transmission wait flag in the received message token frame is set to "1".

【0084】ステップS11は、記憶部3の送信データ
領域4に記憶されたメッセージデータフレームの送信を
伝送部1を介して行う。ステップS12は、メッセージ
データを送信しようとしたが、メッセージデータフレー
ムの送信時間が無いので送信できなかった場合で、自局
が送信待ちをしていることを他局にわからせるためにネ
ットワークに送信されるメッセージトークンフレーム中
のメッセージ送信待ちフラグを「1」にする処理を行
う。
In step S 11, the transmission of the message data frame stored in the transmission data area 4 of the storage unit 3 is performed via the transmission unit 1. Step S12 is a case in which the transmission of the message data is attempted, but the transmission was not completed due to the lack of the transmission time of the message data frame. The message transmission waiting flag in the message token frame to be set to “1”.

【0085】ステップS13は、メッセージデータフレ
ーム送信後の処理である。この前のステップのステップ
S11の処理により自局(マスター局)でメッセージデ
ータフレームが一旦送信できたので、その後に受信した
メッセージデータ送信の優先権は、その優先権がネット
ワークの各局を1巡するまでは他局に譲る必要がある。
ここでは、自局のメッセージ送信完了フラグを「1」に
して、今後のメッセージトークンフレームの受信時に自
局の優先権は使用済みであることを示す。
Step S13 is processing after transmission of the message data frame. Since the message data frame can be transmitted once by the own station (master station) by the processing of step S11 of the previous step, the priority of the message data transmission received after that goes through each station of the network once. Until it is necessary to transfer to another station.
Here, the own station's message transmission completion flag is set to "1", indicating that the own station's priority has been used when a future message token frame is received.

【0086】ステップS14は、自局のメッセージ送信
待ち優先権フラグ領域8のデータをメッセージトークン
フレーム40のメッセージ送信待ち優先権フラグ42へ
格納したメッセージトークンフレーム40の送信を行
う。送信したメッセージトークンフレーム40はネット
ワークを1巡してステップS4で受信されて、ステップ
S4〜ステップS11までの処理が繰り返される。
At step S14, the message token frame 40 in which the data of the message transmission waiting priority flag area 8 of the own station is stored in the message transmission waiting priority flag 42 of the message token frame 40 is transmitted. The transmitted message token frame 40 makes a round of the network and is received in step S4, and the processing from step S4 to step S11 is repeated.

【0087】図5は、スレーブ局B〜Dの何れか一局に
おける本発明の実施の形態の動作を説明するフローチャ
ートである。ステップS21では、スレーブ局B〜Dの
何れか一局の電源が投入される。
FIG. 5 is a flowchart illustrating the operation of one of the slave stations B to D according to the embodiment of the present invention. In step S21, the power of any one of the slave stations B to D is turned on.

【0088】ステップS22では、スレーブ局B〜Dの
何れか一局の電源投入に伴い、記憶部23内のメッセー
ジの送信完了フラグ領域27の初期化が行われてその領
域が「0」になる。この状態は、現時点では、自局に送
信待ちをしているメッセージデータは無い事を意味す
る。
In step S22, when any one of the slave stations B to D is powered on, the message transmission completion flag area 27 in the storage unit 23 is initialized and the area becomes "0". . This state means that there is no message data waiting to be transmitted to the own station at present.

【0089】ステップS23は、ネットワークを経由し
て自局に来たメッセージトークンフレームの受信であ
る。 ステップS24は、自局にメッセージデータを送
信する優先権があるか否かの確認で、受信したメッセー
ジトークンフレームのメッセージ送信待ち優先権フラグ
は「0」であるか否か、すなわち、ネットワーク内の局
にメッセージ送信待ちをしている局が有るか無いかを確
認している。尚、この場合のメッセージ送信待ちをして
いない局とは、後述するように一旦メッセージデータを
送信できて優先権が1巡するまでは優先権を受け取らな
い局を含む。メッセージトークンフレームのメッセージ
送信待ちフラグが「0」、すなわち、メッセージ送信待
ちをしている局がネットワーク内に無いか送信待ち優先
権が1巡していれば自局内のメッセージ送信完了フラグ
領域27の初期化を行うステップS25に進み、メッセ
ージ送信待ちフラグが「1」、すなわち、メッセージ送
信待ちをしている局がネットワーク内に有れば、そのメ
ッセージ送信待ちをしている局が自局であるかの確認を
行うステップS26へ進む。
Step S23 is the reception of the message token frame that has arrived at the own station via the network. A step S24 checks whether or not the own station has a priority to transmit the message data. The message transmission waiting priority flag of the received message token frame is "0", that is, whether or not the Check if there are any stations waiting for message transmission. Note that, in this case, the stations that are not waiting for message transmission include stations that can transmit message data once and do not receive the priority until the priority goes around once as described later. If the message transmission waiting flag of the message token frame is "0", that is, if there is no station waiting for message transmission in the network or the transmission waiting priority has made one round, the message transmission completion flag area 27 in the own station is set. Proceeding to step S25 for performing initialization, if the message transmission waiting flag is "1", that is, if there is a station waiting for message transmission in the network, the station waiting for message transmission is its own station. The process proceeds to step S26 for confirming whether or not the process is complete.

【0090】ステップS25は、メッセージトークンフ
レームのメッセージ送信待ち優先権フラグにより、ネッ
トワーク内にメッセージデータの送信待ちをしている他
局が存在しないこと、すなわち、次のメッセージデータ
を送信する優先権が自局に有ることを受けて、自局内の
メッセージ送信完了フラグ領域27を初期化して次のメ
ッセージデータの送信を可能にする。
In step S25, the message transmission priority flag in the message token frame indicates that there is no other station waiting for transmission of the message data in the network, that is, the priority of transmitting the next message data is not determined. In response to the presence of the own station, the message transmission completion flag area 27 in the own station is initialized to enable transmission of the next message data.

【0091】ステップS26は、メッセージトークンフ
レームのメッセージ送信待ち優先権フラグがネットワー
ク内に送信待ちをしている局が存在することを示してい
ることを受けて、さらに、自局にその権利が有るかどう
かを確認するため自局内のメッセージ送信完了フラグ領
域27が「0」であるか否かを確認する。メッセージ送
信完了フラグ領域27が「0」であれば、自局に優先権
が有るということであるので、送信データ領域24に記
憶されたメッセージデータを送信するために次のステッ
プS27へ進む。メッセージ送信完了フラグが「1」で
あれば、自局に優先権が無いということであるので、メ
ッセージトークンフレームを次の局へ送信するためのス
テップS32へ進む。
In step S26, in response to the message transmission priority flag in the message token frame indicating that there is a station waiting for transmission in the network, the own station further has the right. In order to confirm whether or not the message transmission completion flag area 27 in the own station is “0”, it is confirmed. If the message transmission completion flag area 27 is “0”, it means that the own station has priority, and the process proceeds to the next step S27 to transmit the message data stored in the transmission data area 24. If the message transmission completion flag is "1", it means that the own station has no priority, and the process proceeds to step S32 for transmitting the message token frame to the next station.

【0092】ステップS27は、今までのステップS2
6までのステップで、自局にメッセージデータを送信す
る優先権が有る事がわかったので、実際に送信するメッ
セージデータフレームの送信要求が有るか否かの確認を
行っている。この確認は送信データ領域24にメッセー
ジデータが格納されているか、あるいは、メッセージデ
ータの記憶とは別にフラグ等を設けて確認するようにし
てもよい。メッセージデータフレームの送信要求が有れ
ば、メッセージデータフレームを送信するための次のス
テップS28へ進む。メッセージデータフレームの送信
要求が無ければ、優先権は有っても実際に送信するメッ
セージデータは無いということであるので、メッセージ
トークンフレームを次の局へ送信するためのステップS
31へ進む。
Step S27 is the same as step S2
In the steps up to 6, since it has been found that the own station has the priority of transmitting the message data, it is confirmed whether or not there is a request to transmit the message data frame to be actually transmitted. This confirmation may be made by confirming whether the message data is stored in the transmission data area 24 or by providing a flag or the like separately from the storage of the message data. If there is a message data frame transmission request, the process proceeds to the next step S28 for transmitting the message data frame. If there is no request to transmit a message data frame, it means that there is no message data to be actually transmitted even though there is a priority, so that step S for transmitting the message token frame to the next station is performed.
Proceed to 31.

【0093】ステップS28は、メッセージデータフレ
ームの送信前に、メッセージトークンフレームの1巡時
間内で、今回送信しようとしているメッセージデータフ
レームが送信可能であるか否かの確認を行っている。こ
の場合はトークン1巡時間領域26に格納された固定値
であるメッセージトークンフレームの1巡時間の設定値
から時間測定部22での実際の測定によるメッセージト
ークン1巡時間を引いた残り時間が有るか無いかで判断
する。残り時間が有る場合にはメッセージデータフレー
ムの送信のステップS29に進む。残り時間が無い場合
には送信待ちをすることになるので、受信したメッセー
ジトークンフレーム中のメッセージ送信待ちフラグを
「1」にするステップS30へ進む。
In step S28, before transmitting the message data frame, it is confirmed whether or not the message data frame to be transmitted this time can be transmitted within one round of the message token frame. In this case, there is a remaining time obtained by subtracting the message token one round time actually measured by the time measuring unit 22 from the message token frame one round time set value which is a fixed value stored in the token one round time area 26. Or not. If there is remaining time, the process proceeds to step S29 for transmitting a message data frame. If there is no remaining time, transmission waits, so the process proceeds to step S30 in which the message transmission wait flag in the received message token frame is set to "1".

【0094】ステップS29は、記憶部23の送信デー
タ領域24に記憶されたメッセージデータフレームの送
信を伝送部21を介して行う。ステップS30は、メッ
セージデータを送信しようとしたが、メッセージデータ
フレームの送信時間が無い場合で、自局が送信待ちをし
ていることを他局にわからせるためにネットワーク35
に送信されるメッセージトークンフレーム中のメッセー
ジ送信待ちフラグを「1」にする処理を行う。
In step S29, the transmission of the message data frame stored in the transmission data area 24 of the storage unit 23 is performed via the transmission unit 21. Step S30 is to transmit message data, but when there is no transmission time for the message data frame, the network 35 is used to inform other stations that the own station is waiting for transmission.
Is performed to set the message transmission waiting flag in the message token frame to be transmitted to "1".

【0095】ステップS31は、メッセージデータフレ
ーム送信後の処理である。ここ以前のステップの処理に
より自局でメッセージデータフレームが一旦送信できた
ので、その後に受信したメッセージデータ送信の優先権
は、その優先権がネットワーク35を1巡するまでは他
局に譲る必要がある。ここでは、自局のメッセージ送信
完了フラグを「1」にして、今後のメッセージトークン
フレームの受信時に自局の優先権は使用済みであること
を示す。
Step S31 is processing after transmission of the message data frame. Since the message data frame was once transmitted by the own station by the processing of the previous step, the priority of the message data transmission received thereafter must be transferred to another station until the priority goes around the network 35 once. is there. Here, the own station's message transmission completion flag is set to "1", indicating that the own station's priority has been used when a future message token frame is received.

【0096】ステップS32は、ステップS23で受信
したメッセージトークンフレームの送信を行う。メッセ
ージトークンフレームはネットワークへ送り出されて自
局はメッセージトークンフレームの待ち受け状態となり
ステップS24に戻り、新しいメッセージトークンフレ
ームが受信されると、ステップS24〜ステップS32
までの処理が繰り返される。
In step S32, the message token frame received in step S23 is transmitted. The message token frame is sent out to the network, the own station enters a message token frame waiting state, and returns to step S24. When a new message token frame is received, steps S24 to S32 are performed.
The processing up to is repeated.

【0097】図6は、送信サイクルの周期を、図1のメ
ッセージトークンフレームの周期によるものから、特定
フレームによる一定のものへ変え、更にその周期内の残
り時間と送信しようとするメッセージデータの長さか
ら、周期内に送信できるか否かの判断をより明確にする
第2の実施の形態を説明する図(タイミングチャート)
である。尚、特記していない各局の設定条件は図1と同
様である。
FIG. 6 shows that the cycle of the transmission cycle is changed from the cycle of the message token frame shown in FIG. 1 to a fixed cycle of the specific frame, and the remaining time within the cycle and the length of the message data to be transmitted are shown. Therefore, a diagram (timing chart) for explaining the second embodiment for clarifying the determination as to whether or not transmission is possible within a period
It is. The setting conditions of each station that are not specified are the same as those in FIG.

【0098】(A)今、ネットワーク上の接続構成の変
化を検出したマスター局Aは、特定フレーム50−1、
51−1の送信を送信サイクル周期に従って送信を順次
行うと同時に送信時刻を記憶する。
(A) Now, the master station A, which has detected a change in the connection configuration on the network, sends the specific frame 50-1,
The transmission of 51-1 is sequentially performed according to the transmission cycle period, and the transmission time is stored.

【0099】(B)特定フレーム50−1の送信後の送
信サイクル周期内でなるべく早い任意の時刻に、メッセ
ージトークンフレーム自体の1巡時間を求めるために、
特殊メッセージトークンフレーム60−1の送信を行う
と同時に送信時刻を記憶する。
(B) In order to determine one round time of the message token frame itself at an arbitrary time as early as possible within the transmission cycle period after the transmission of the specific frame 50-1,
The transmission time is stored at the same time as the transmission of the special message token frame 60-1.

【0100】(C)特殊メッセージトークンフレーム6
0−2を受信したスレーブ局Bは、メッセージデータフ
レームの送信は行わず、通常のメッセージトークンフレ
ームを受信した際におけるメッセージデータフレームの
送信を行わずに次局ヘトークンを譲渡するのに要する時
間分だけトークンの送信を遅延させた上で、受信した特
殊メッセージトークンフレーム60−2の送信を行う。
(C) Special message token frame 6
The slave station B that has received 0-2 does not transmit the message data frame, and the time required to transfer the token to the next station without transmitting the message data frame when a normal message token frame is received. The transmission of the received special message token frame 60-2 is performed after delaying the transmission of the token.

【0101】(D)各スレーブ局B、C、Dを経由して
戻ってきた特殊メッセージトークンフレーム60−5を
受信したマスター局Aは、受信時刻と送信時に保存して
おいた送信時刻により、新たな接続構成下におけるメッ
セージトークンフレームの1巡時間(Tl)を求め、そ
れをマスター局Aのトークン1巡時間領域6に格納す
る。
(D) The master station A, which has received the special message token frame 60-5 returned via each of the slave stations B, C, D, determines the reception time and the transmission time saved at the time of transmission. The one round time (Tl) of the message token frame under the new connection configuration is obtained and stored in the token one round time area 6 of the master station A.

【0102】(E)次に、マスター局Aは、送信基準時
間(T2)を求めるために、自局アドレスを宛先アドレ
スとした1バイトのデータ部長の自局向けメッセージデ
ータフレーム70−1を送信すると同時に送信時刻を保
存する。
(E) Next, the master station A transmits a message data frame 70-1 for its own station having a 1-byte data part length with its own station address as the destination address, in order to obtain the transmission reference time (T2). And save the sending time at the same time.

【0103】(F)各スレーブ局B、C、Dを経由して
マスター局Aに戻ってきた自局向けメッセージデータフ
レーム70−5を受信したマスター局Aは、受信時刻と
送信時に保存しておいた送信時刻により新たな接続構成
下における1バイト送信に要する送信基準時間(T2)
を求め、それをマスター局Aの送信基準時間領域11に
格納する。
(F) The master station A, which has received the message data frame 70-5 for its own station which has returned to the master station A via each of the slave stations B, C, D, stores the reception time and the transmission time. Transmission reference time (T2) required for 1-byte transmission under a new connection configuration based on the set transmission time
And store it in the transmission reference time area 11 of the master station A.

【0104】(G)そして、マスター局Aは、上記
(D)で得たメッセージトークンフレームのトークン1
巡時間(Tl)と上記(F)で得た送信基準時間(T
2)を一斉同報通信フレーム80−1に付加して送信す
る。
(G) Then, the master station A transmits the token 1 of the message token frame obtained in the above (D).
The traveling time (Tl) and the transmission reference time (T
2) is added to the broadcast frame 80-1 and transmitted.

【0105】(H)トークン1巡時間(Tl)と送信基
準時間(T2)が付加された一斉同報通信フレーム80
−2、80−3、80−4を受信した各スレーブ局B、
C、Dは、それを内部の送信基準時間領域29に格納す
る。
(H) A broadcast frame 80 to which a token round time (T1) and a transmission reference time (T2) are added.
-2, 80-3, 80-4, each slave station B receiving
C and D store it in the internal transmission reference time area 29.

【0106】(I)マスター局Aは、特定フレーム50
−1を送信して送信サイクル周期(T)の後に特定フレ
ーム51−1を送信したら、その時間を送信サイクル周
期(T)として、今回周期時間領域12に格納する。
(I) The master station A transmits the specific frame 50
When the specific frame 51-1 is transmitted after the transmission cycle period (T) by transmitting −1, the time is stored in the current cycle time area 12 as the transmission cycle period (T).

【0107】(J)また、各スレーブ局B,C,Dはマ
スター局Aから送られてくる特定フレーム51−2、5
1−3、51−4を受信したら内部の特定フレーム周期
測定部31か時間測定部22に有る周期計測タイマーを
停止し、そのタイマー値を送信サイクル周期(T)とし
て、今回周期時間領域30に格納すると共に、周期計測
タイマーを再起動する。
(J) Further, each of the slave stations B, C, and D receives a specific frame 51-2, 5
When 1-3 and 51-4 are received, the internal period measuring timer in the internal specific frame period measuring unit 31 or the time measuring unit 22 is stopped, and the timer value is set as the transmission cycle period (T) in the current period time region 30. At the same time, the period measurement timer is restarted.

【0108】上記(A)から(J)の動作を行うことに
より、マスター局Aは、システム横成に応じた送信サイ
クル周期(T)期間内において、メッセ−ジトークンフ
レーム90−1受信時に、メッセージ送信を行える残り
時間(t5)と、今回の送信データ長に対するメッセー
ジデータフレームの送信に要する時間をトークン1巡時
間(Tl)と送信基準時間(T2)より算出し、比較す
ることにより、送信サイクル周期の残り時間内で自局の
メッセージデータフレームの送信を行いうるか否かを判
定することができるようになる。
By performing the above operations (A) to (J), the master station A receives the message token frame 90-1 within the transmission cycle period (T) corresponding to the system traffic. The remaining time (t5) during which the message can be transmitted and the time required for transmitting the message data frame with respect to the current transmission data length are calculated from the token 1 round time (Tl) and the transmission reference time (T2), and are compared to be transmitted. It becomes possible to determine whether or not the own station's message data frame can be transmitted within the remaining time of the cycle period.

【0109】また、送信サイクル周期(T)期間内にお
ける現時点でのメッセージ送信に与えられる残り時間
(tl)および(t5)と、マスター局Aから送信され
たメッセージトークンフレーム90−1を受信したスレ
ーブ局B、C、Dのいづれかの局にて、システムで決め
られている最小バイト数のメッセージデータフレーム1
00の送信を行い、マスター局Aでメッセージトークン
フレーム90−6を再び受け取るまでの時間を比較する
ことにより、これからスレーブ局にメッセージトークン
フレームを送信しても、送信サイクル周期(T)期間を
乱すことがなく送信が可能であるか否かの判定を行うよ
うにすることができる。
Further, the remaining time (tl) and (t5) given to the current message transmission within the transmission cycle period (T) and the slave receiving the message token frame 90-1 transmitted from the master station A. In any one of the stations B, C and D, the message data frame 1 having the minimum number of bytes determined by the system
00, and the time until the master station A receives the message token frame 90-6 again is compared. Even if a message token frame is transmitted to the slave station, the transmission cycle period (T) is disturbed. It can be determined whether or not transmission is possible without any problem.

【0110】スレーブ局B,C,Dは、今回周期時間
(送信サイクル周期(T))とメッセージトークンフレ
ーム90−2、90−4、90−5受信時の特定フレー
ム50−2、50−3、50−4受信からの経過時間と
からメッセージ送信に与えれる残り時間(t2)、(t
3)、(t4)を算出し、その時間と今回の送信データ
長に対するメッセージデータフレームの送信に要する時
間をトークン1巡時間(T1)と送信基準時間(T2)
より算出し、比較することにより、自局メッセージデー
タフレームの送信を行うかを判定することができるよう
になる。
The slave stations B, C, and D transmit the current cycle time (transmission cycle cycle (T)) and the specific frames 50-2, 50-3 when receiving the message token frames 90-2, 90-4, and 90-5. , 50-4, and the remaining time (t2), (t2) given to the message transmission from the elapsed time from the reception.
3) and (t4) are calculated, and the time and the time required for transmitting the message data frame with respect to the current transmission data length are defined as token 1 round time (T1) and transmission reference time (T2).
By calculating and comparing, it is possible to determine whether to transmit the own station message data frame.

【0111】尚、上記の実施の形態では、トークン・リ
ング・ネットワークとして記載したが、本発明は上記の
トークン・リング・ネットワークに限定されることはな
く、トークン・バス・ネットワークに対しても適用する
ことができる。
Although the above embodiment has been described as a token ring network, the present invention is not limited to the above token ring network, and is applicable to a token bus network. can do.

【0112】[0112]

【発明の効果】本発明によれば、マスター局とスレーブ
局から構成されるリング状のネットワークシステムにお
いて、メッセージデータフレームを送信できる権利を譲
渡するメッセージトークンフレーム上にメッセージデー
タフレームの送信を制御する例えば2ビットの情報を付
加し、マスター局とスレーブ局にもそれに相応する情報
を記憶させて判断することにより、ネットワーク上に接
続されている各局が均等にメッセージデータフレームの
送信機会を得ることができるようになり、トークンの趨
回順番、局により異なるメッセージデータフレーム送信
の発生頻度、あるいは、トークン1巡に要する時間等に
より発生する、特定局でのメッセージ送信の集中や渋滞
といった問題を回避することができるようなる。
According to the present invention, transmission of a message data frame on a message token frame that transfers the right to transmit a message data frame is controlled in a ring network system including a master station and a slave station. For example, by adding 2-bit information and storing the corresponding information in the master station and the slave station and making a judgment, each station connected on the network can obtain a message data frame transmission opportunity equally. It is possible to avoid problems such as concentration of message transmissions at specific stations and congestion caused by the trend order of tokens, the frequency of transmission of message data frames that differ from station to station, or the time required for one round of tokens. Will be able to do it.

【0113】このことは更に、システム設計におけるメ
ッセージ通信の設計を容易に、かつ、把握しやすくする
ことにも貢献できる。さらに、特定フレーム、特殊メッ
セージトークンフレームと送信基準時間測定用のメッセ
ージデータフレームを用意し、マスター局とスレーブ局
にもそれに相応する情報を記憶させて判断することによ
り、通信サイクル周期を乱すことなく、かつ、各局が均
等にメッセージ通信の機会を得ることができるようにな
る。
This can further contribute to making the design of the message communication in the system design easy and easy to grasp. Furthermore, by preparing a specific frame, a special message token frame and a message data frame for measuring the transmission reference time, and storing and judging the corresponding information in the master station and the slave station, the communication cycle period is not disturbed. In addition, each station can obtain a message communication opportunity equally.

【0114】これにより、例えばFA等の制御用、計測
用のネットワークシステムにおいて、メッセージ通信の
頻度あるいはデータ量に関係なくネットワーク上のある
I/O機器に対して高速に、かつ、一定の周期でデータ
の読み出し、書込みが行えるようになる。
Thus, for example, in a network system for controlling or measuring an FA or the like, a certain I / O device on the network can be transmitted at a high speed and at a constant period regardless of the frequency of message communication or the amount of data. Data can be read and written.

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

【図1】ネットワークでの第1の実施の形態の全体の構
成を示す図である。
FIG. 1 is a diagram illustrating an overall configuration of a first embodiment in a network.

【図2】マスター局の概略構成を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a schematic configuration of a master station.

【図3】スレーブ局の概略構成を示すブロック図であ
る。
FIG. 3 is a block diagram illustrating a schematic configuration of a slave station.

【図4】マスター局の概略動作を示すフローチャートで
ある。
FIG. 4 is a flowchart showing a schematic operation of a master station.

【図5】スレーブ局の概略動作を示すフローチャートで
ある。
FIG. 5 is a flowchart showing a schematic operation of a slave station.

【図6】送信サイクル周期を一定とした第2の実施の形
態のタイミングチャートである。
FIG. 6 is a timing chart of a second embodiment in which a transmission cycle period is fixed.

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

1、21 伝送部 2、22 時間測定部 3、23 記憶部 4、24 送信データ領域 5、25 受信データ領域 6、26 トークン1巡時間領域 7、27 送信完了フラグ領域 8 メッセージ送信待ち優先権フラグ領域 9 送信時刻領域 10、28 受信時刻領域 11、29 送信基準時間領域 12、30 今回周期時間領域 13、32 制御・演算部 14 トークンフレーム管理部 15 特定フレーム管理部 16 送信基準時間管理部 31 特定フレーム周期測定部 40 メッセージトークンフレーム 41 メッセージ送信待ちフラグ 42 メッセージ送信待ち優先権フラグ 1, 21 Transmission unit 2, 22 Time measurement unit 3, 23 Storage unit 4, 24 Transmission data area 5, 25 Receive data area 6, 26 Token one round time area 7, 27 Transmission completion flag area 8 Message transmission waiting priority flag Area 9 Transmission time area 10, 28 Reception time area 11, 29 Transmission reference time area 12, 30 Current cycle time area 13, 32 Control / calculation section 14 Token frame management section 15 Specific frame management section 16 Transmission reference time management section 31 Specification Frame period measurement unit 40 Message token frame 41 Message transmission waiting flag 42 Message transmission waiting priority flag

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークを監視してネットワーク内
を1巡するメッセージトークンフレームの生成と消去を
行うマスター局と、該メッセージトークンフレームによ
りメッセージデータフレームの送信機会を与えられる少
なくとも一つのスレーブ局を有するネットワークシステ
ムにおいて、 前記メッセージトークンフレームには、ネットワーク内
の少なくとも1局がメッセージデータフレームの送信待
ち状態である事を示すメッセージ送信待ちフラグ領域
と、前回のメッセージトークンフレームの1巡で得られ
た前記メッセージ送信待ちフラグ領域の結果を示すメッ
セージ送信待ち優先権フラグ領域を有し、前記マスター
局には、制御コードやメッセージデータフレーム等のフ
レームをネットワークへ送受信する伝送手段と、送信デ
ータ領域と受信データ領域とメッセージデータフレーム
の送信完了を示す送信完了フラグ領域と前記メッセージ
トークンフレームのメッセージデータ送信待ちフラグ領
域のデータを得てネットワーク上にメッセージデータフ
レームの送信待ちをしている局が存在する事を示すメッ
セージ送信待ち優先権フラグ領域とを有する記憶手段
と、ネットワーク上に接続されている他局がメッセージ
データフレームの送信を行えるようにするためのメッセ
ージトークンフレームを管理するトークンフレーム管理
手段と、前記各手段の制御を行う制御・演算手段とを有
し、 前記スレーブ局には、制御コードやメッセージデータフ
レーム等のフレームを前記ネットワークへ送受信する伝
送手段と、送信データ領域と受信データ領域とメッセー
ジデータフレームの送信完了を示す送信完了フラグ領域
を有する記憶手段と、前記各手段の制御を行う制御・演
算手段とを有し、 前記メッセージトークンフレームを受信した各局の制御
・演算手段では、受信したメッセージトークンフレーム
内の前記メッセージ送信待ち優先権フラグ領域のデータ
と、自局内の前記送信完了フラグ領域のデータにより、
自局内の記憶手段の送信データ領域に記憶されたメッセ
ージデータを送信する権利が有るか否かを判定処理が可
能であることを特徴とするネットワークシステム。
1. A master station for monitoring a network and generating and erasing a message token frame that makes a round in the network, and at least one slave station provided with a transmission opportunity of a message data frame by the message token frame. In the network system, the message token frame includes a message transmission waiting flag area indicating that at least one station in the network is in a message data frame transmission waiting state, and the message token frame obtained in one round of the previous message token frame. The master station has a message transmission waiting priority flag area indicating a result of the message transmission waiting flag area, and the master station includes: a transmission unit for transmitting / receiving a frame such as a control code and a message data frame to / from the network; There is a station waiting for transmission of a message data frame on the network by obtaining data of a reception data area, a transmission completion flag area indicating completion of transmission of the message data frame, and data of the message data transmission waiting flag area of the message token frame. Storage means having a message transmission wait priority flag area indicating that a message data frame is to be transmitted, and a token frame management means for managing a message token frame for enabling another station connected on the network to transmit a message data frame. And a control / arithmetic unit for controlling each of the units. The slave station includes a transmission unit for transmitting / receiving a frame such as a control code or a message data frame to / from the network, a transmission data area and a reception data area. And message data frame transmission Storage means having a transmission completion flag area indicating completion, and control / arithmetic means for controlling each of the means, wherein the control / arithmetic means of each station receiving the message token frame stores the The data of the message transmission waiting priority flag area, and the data of the transmission completion flag area in the own station,
A network system capable of determining whether or not there is a right to transmit message data stored in a transmission data area of a storage unit in its own station.
【請求項2】 前記メッセージトークンフレームにおけ
る、前記メッセージ送信待ちフラグ領域と、メッセージ
送信待ち優先権フラグ領域が各1ビットであり、メッセ
ージトークンフレームに付加される情報の合計が2ビッ
トであることを特徴とする請求項1のネットワークシス
テム。
2. A message transmission waiting flag area and a message transmission waiting priority flag area in the message token frame are each 1 bit, and a total of information added to the message token frame is 2 bits. The network system according to claim 1, wherein
【請求項3】 前記マスター局又はスレーブ局は、前記
メッセージデータフレームの送信する権利が有る場合
に、前記記憶手段の送信データ領域にメッセージデータ
が存在することを示す信号或いは記憶されたメッセージ
データの送信要求を示す信号或いは記憶されたメッセー
ジデータの送信待ちを示す信号を検出して、送信すべき
メッセージデータの存在を確認することを特徴とする請
求項1のネットワークシステム。
3. When the master station or the slave station has a right to transmit the message data frame, a signal indicating that message data exists in a transmission data area of the storage means or a signal of the stored message data is transmitted. 2. The network system according to claim 1, wherein a signal indicating a transmission request or a signal indicating waiting for transmission of stored message data is detected to confirm the presence of message data to be transmitted.
【請求項4】 前記マスター局及びスレーブ局は、送受
信されるフレームの送出時刻や受信時刻及びフレームの
1巡時間を測定する時間測定手段と、各局の記憶手段内
にメッセージトークンフレームがネットワークを1巡す
る設定時間を記憶するトークン1巡時間領域を、各局毎
に有し、その各局の制御・演算手段では、前記時間測定
手段で得られた時刻等のデータを演算し、前記トークン
1巡時間領域に記憶されたトークン1巡時間内で、前記
記憶手段に記憶されたメッセージデータを送信するため
のメッセージデータフレームを送信する時間が足りるか
否かを判断することを特徴とする請求項1のネットワー
クシステム。
4. The master station and the slave station each include a time measuring unit for measuring a transmission time and a reception time of a frame to be transmitted and received and a round time of the frame, and a message token frame in a storage unit of each station. Each station has a token one round time area for storing a set time to go around, and the control / calculation means of each station calculates data such as the time obtained by the time measuring means, and obtains the token one round time. 2. The method according to claim 1, wherein it is determined whether the time for transmitting a message data frame for transmitting the message data stored in the storage means is insufficient within one round of the token stored in the area. Network system.
【請求項5】 ネットワークを監視してネットワーク内
を1巡するメッセージトークンフレームの生成と消去を
行うマスター局と、該メッセージトークンフレームによ
りメッセージデータフレームの送信機会を与えられる少
なくとも一つのスレーブ局を有するネットワークシステ
ムにおいて、 前記マスター局は、前記ネットワークにおいて1巡時間
を測定するため送信される特殊メッセージトークンフレ
ームを管理する特殊メッセージトークンフレーム管理手
段と、前記ネットワークにおいて一定周期に設定された
送信サイクル周期に従い特定フレームを順次送出する特
定フレーム管理手段と、自局宛のデータ長1バイトの基
準メッセージデータフレームを送信して1巡後受信し1
巡時間を測定し該1巡時間を送信基準時間として他スレ
ーブ局へ該送信基準時間と前記基準メッセージトークン
フレームの1巡時間と共に一斉同報フレームで送信する
送信基準時間管理手段と、前記特定フレーム及び前記基
準メッセージデータフレームの送信時刻を収納する送信
時刻領域と受信時刻を収納する受信時刻領域と前記送信
基準時間を収納する送信基準時間領域と前記特定フレー
ムの送出周期間隔を収納する今回周期時間領域を有する
記憶手段と、前記各手段の制御を行う制御・演算手段と
を有し、 前記スレーブ局は、受信した前記特定フレームの受信間
隔から前記特定フレームの送信サイクル周期を得る特定
フレーム周期測定手段と、マスター局から受信した送信
基準時間を収納する送信基準時間領域と前記特定フレー
ムの受信時刻を収納する受信時刻領域と前記特定フレー
ムの周期間隔を収納する今回周期時間領域を有する記憶
手段と、前記各手段の制御を行う制御・演算手段とを有
し、 通常のメッセージトークンフレームを受信した各局の制
御・演算手段では、各局における各々の前記記憶手段内
の記憶内容を元に、前記特定フレームの前記受信時刻と
前記メッセージトークンフレームを受信した時刻の差の
時間と、前記基準メッセージトークンフレームの1巡時
間と前記送信基準時間と前記基準メッセージデータフレ
ームのデータ長から演算された前記メッセージデータフ
レームの送信時間により、前記周期間隔内に前記メッセ
ージデータフレームが送信可能か否かを判断することを
特徴とするネットワークシステム。
5. A master station for monitoring a network and generating and erasing a message token frame that makes a round in the network, and at least one slave station provided with a transmission opportunity of a message data frame by the message token frame. In the network system, the master station may include a special message token frame management unit that manages a special message token frame transmitted for measuring one round time in the network, and a transmission cycle period set to a constant period in the network. A specific frame management means for sequentially transmitting a specific frame; a reference message data frame having a data length of 1 byte addressed to the own station;
Transmission reference time management means for measuring a cycle time and using the one cycle time as a transmission reference time to transmit to the other slave station in a broadcast frame together with the transmission reference time and one cycle of the reference message token frame; And a transmission time area storing the transmission time of the reference message data frame, a reception time area storing the reception time, a transmission reference time area storing the transmission reference time, and a current cycle time storing the transmission cycle interval of the specific frame. A storage unit having an area; and a control / arithmetic unit for controlling each of the units, wherein the slave station measures a specific frame period to obtain a transmission cycle period of the specific frame from a reception interval of the received specific frame. Means, a transmission reference time area containing a transmission reference time received from a master station, and reception of the specific frame. A storage unit having a reception time area for storing the time and a current cycle time area for storing the cycle interval of the specific frame; and a control / calculation means for controlling each of the units, and receives a normal message token frame. The control / calculation means of each station, based on the contents stored in each of the storage means in each station, the time of the difference between the reception time of the specific frame and the time of receiving the message token frame, and the reference message token It is determined whether or not the message data frame can be transmitted within the periodic interval, based on one round time of a frame, the transmission reference time, and the transmission time of the message data frame calculated from the data length of the reference message data frame. A network system, characterized in that:
【請求項6】 ネットワークを監視してネットワーク内
を1巡するメッセージトークンフレームの生成と消去を
行うマスター局と、該メッセージトークンフレームによ
りメッセージデータフレームの送信機会を与えられる少
なくとも一つのスレーブ局を有するネットワークにおい
て、 前記メッセージトークンフレームのフラグ領域で、ネッ
トワーク内の少なくとも1局がメッセージデータフレー
ムの送信待ち状態である事を示し、また、前回のメッセ
ージトークンフレームの1巡で得られた前記メッセージ
送信待ちフラグ領域の結果を示し、 前記マスター局において、制御コードやメッセージデー
タフレーム等のフレームをネットワークへ送受信し、送
信データと受信データとメッセージデータフレームの送
信完了を示す送信完了フラグと前記メッセージトークン
フレームのメッセージデータ送信待ちフラグのデータを
得てネットワーク上にメッセージデータフレームの送信
待ちをしている局が存在する事を示すメッセージ送信待
ち優先権フラグを記憶し、ネットワーク上に接続されて
いる他局がメッセージデータフレームの送信を行えるよ
うにするためのメッセージトークンフレームを管理する
と共に前記各手段の制御を行い、 前記スレーブ局において、制御コードやメッセージデー
タフレーム等のフレームを前記ネットワークへ送受信
し、送信データと受信データとメッセージデータフレー
ムの送信完了を示す送信完了フラグを記憶すると共に前
記各手段の制御を行い、 前記メッセージトークンフレームを受信した場合に、受
信したメッセージトークンフレーム内の前記メッセージ
送信待ち優先権フラグのデータと、自局内の前記送信完
了フラグのデータにより、自局内の送信データとして記
憶されたメッセージデータを送信する権利が有るか否か
を判定することを特徴とするネットワークにおけるデー
タ通信方法。
6. A master station for monitoring a network to generate and delete a message token frame that makes a round in the network, and at least one slave station provided with a transmission opportunity of a message data frame by the message token frame. In the network, the flag area of the message token frame indicates that at least one station in the network is in a message data frame transmission waiting state, and the message transmission waiting state obtained in one round of the previous message token frame is indicated. In the master station, a frame such as a control code or a message data frame is transmitted / received to / from the network, and a transmission completion flag indicating transmission completion of transmission data, reception data, and a message data frame is indicated by the master station. Obtains the data of the message data transmission waiting flag of the message token frame and stores a message transmission waiting priority flag indicating that there is a station waiting for transmission of the message data frame on the network, and is connected to the network. The other station manages a message token frame for enabling transmission of a message data frame and controls each of the units. The slave station transmits and receives frames such as a control code and a message data frame to and from the network. And storing a transmission completion flag indicating transmission completion of transmission data, reception data, and a message data frame, and controlling each of the units. When the message token frame is received, the message in the received message token frame is stored. Message transmission priority flag data and the data of the transmission completion flag in the own station to determine whether there is a right to transmit the message data stored as the transmission data in the own station. Data communication method in a network.
【請求項7】 ネットワークを監視してネットワーク内
を1巡するメッセージトークンフレームの生成と消去を
行うマスター局と、該メッセージトークンフレームによ
りメッセージデータフレームの送信機会を与えられる少
なくとも一つのスレーブ局を有するネットワークにおい
て、 前記マスター局において、前記ネットワークにおいて1
巡時間を測定するため送信される特殊メッセージトーク
ンフレームを管理し、前記ネットワークにおいて一定周
期に設定された送信サイクル周期に従い特定フレームを
順次送出し、自局宛のデータ長1バイトの基準メッセー
ジデータフレームを送信して1巡後受信し1巡時間を測
定し該1巡時間を送信基準時間として他スレーブ局へ該
送信基準時間と前記基準メッセージトークンフレームの
1巡時間と共に一斉同報フレームで送信し、前記特定フ
レーム及び前記基準メッセージデータフレームの送信時
刻と受信時刻と前記送信基準時間と前記特定フレームの
送出周期間隔を記憶すると共に前記各手段の制御を行
い、 前記スレーブ局において、受信した前記特定フレームの
受信間隔から前記特定フレームの送信サイクル周期を得
て、マスター局から受信した送信基準時間と前記特定フ
レームの受信時刻と前記特定フレームの周期間隔を記憶
し、前記各手段の制御を行い、 通常のメッセージトークンフレームを受信した場合に、
各局における各々の記憶内容を元に、前記特定フレーム
の前記受信時刻と前記メッセージトークンフレームを受
信した時刻の差の時間と、前記基準メッセージトークン
フレームの1巡時間と前記送信基準時間と前記基準メッ
セージデータフレームのデータ長から演算された前記メ
ッセージデータフレームの送信時間により、前記周期間
隔内に前記メッセージデータフレームが送信可能か否か
を判断することを特徴とするネットワークにおけるデー
タ通信方法。
7. A master station for monitoring a network and generating and erasing a message token frame that goes around the network, and at least one slave station provided with a transmission opportunity of a message data frame by the message token frame. In the network, in the master station, in the network, 1
It manages a special message token frame transmitted to measure the cycle time, sequentially transmits specific frames in accordance with a transmission cycle period set at a constant period in the network, and transmits a 1-byte reference message data frame addressed to its own station. Is transmitted and received after one round, the one round time is measured, and the one round time is transmitted as a transmission reference time to another slave station in a broadcast frame together with the transmission reference time and the one round time of the reference message token frame. The transmission time and reception time of the specific frame and the reference message data frame, the transmission reference time, and the transmission cycle interval of the specific frame are stored and the respective units are controlled. The transmission cycle period of the specific frame is obtained from the reception interval of the frame, and the master station The transmission reference time received from the storage unit stores the reception time of the specific frame and the periodic interval of the specific frame, controls the units, and receives a normal message token frame.
Based on the contents stored in each station, the time of the difference between the reception time of the specific frame and the time at which the message token frame was received, one round time of the reference message token frame, the transmission reference time, and the reference message A data communication method in a network, comprising: determining whether the message data frame can be transmitted within the periodic interval based on a transmission time of the message data frame calculated from a data length of the data frame.
【請求項8】 ネットワークを監視してネットワーク内
を1巡するメッセージトークンフレームの生成と消去を
行うマスター局と、該メッセージトークンフレームによ
りメッセージデータフレームの送信機会を与えられる少
なくとも一つのスレーブ局とを有するネットワークシス
テムにおいて、 ネットワーク内の少なくとも1局がメッセージデータフ
レームの送信待ち状態であるか否かを示す第1の情報
と、前回のメッセージトークンフレームの1巡で得られ
た前記第1の情報に応じた、メッセージデータフレーム
を優先的に送信する権利を有する局がネットワーク内に
存在するか否かを示す第2の情報とを、前記メッセージ
トークンフレームに付加し、 前記メッセージトークンフレームを受信した局では、そ
の受信したメッセージトークンフレーム内の前記第2の
情報と、自局内でメッセージデータフレームの送信を完
了したか否かを示す第3の情報とにより、自局がメッセ
ージデータを送信する権利が有るか否かを判定するこ
と、 を特徴とするネットワークシステム。
8. A master station that monitors a network and generates and deletes a message token frame that goes around the network, and at least one slave station that is given a message data frame transmission opportunity by the message token frame. The first information indicating whether at least one station in the network is in a message data frame transmission waiting state, and the first information obtained in one round of the previous message token frame. And the second information indicating whether or not a station having a right to transmit the message data frame preferentially in the network is added to the message token frame, and the station that has received the message token frame Now, the received message token Based on the second information in the frame and the third information indicating whether transmission of the message data frame has been completed in the own station, it is determined whether the own station has a right to transmit the message data. A network system, characterized in that:
JP10009981A 1998-01-22 1998-01-22 Network system and data communication method in network Withdrawn JPH11215167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10009981A JPH11215167A (en) 1998-01-22 1998-01-22 Network system and data communication method in network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10009981A JPH11215167A (en) 1998-01-22 1998-01-22 Network system and data communication method in network

Publications (1)

Publication Number Publication Date
JPH11215167A true JPH11215167A (en) 1999-08-06

Family

ID=11735086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10009981A Withdrawn JPH11215167A (en) 1998-01-22 1998-01-22 Network system and data communication method in network

Country Status (1)

Country Link
JP (1) JPH11215167A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011113415A (en) * 2009-11-27 2011-06-09 Hitachi Ltd Control system and cpu unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011113415A (en) * 2009-11-27 2011-06-09 Hitachi Ltd Control system and cpu unit

Similar Documents

Publication Publication Date Title
US6343331B1 (en) Local communication system and apparatus for use therein
EP0971508A2 (en) Method and apparatus for transmitting data over data bus
JPS60246151A (en) Data transmission system
JPH11215167A (en) Network system and data communication method in network
JPS63238736A (en) Loop transmission system and data transmission control method
JPH11177593A (en) Address setting method and communication system to which the method is applied
JP3276307B2 (en) Transmission right management method and communication system
JP3247074B2 (en) Address setting method and communication system to which the address setting method is applied
JPS634379B2 (en)
JP3034406B2 (en) Local area network device
JPS5827449A (en) Route selecting system for packet exchange
JP3228573B2 (en) Transmission request control device in LAN
JP2004166074A (en) Data transmitting method
JPH1132065A (en) Transmission system and communication method for the same
JPH11205365A (en) Token passing type data transfer system
JPS6046150A (en) Method for controlling data transmission of loop-like transmission system
JP2005026906A (en) Data communication system
JPS6342990B2 (en)
JPH05145564A (en) Information transmitter
JP3146864B2 (en) Unidirectional loop transmission circuit
JPH01233855A (en) Plural multiple-address response system
US6862266B1 (en) Loop test apparatus of packet routing bus in communication system and loop test method
JPH06104908A (en) Distributed control type band management communication method
JP2000293454A (en) Equipment and method for data communication, and recording medium
JPH07131479A (en) Line concentrating device and method for recognizing and controlling node under its control

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050405