JP3719039B2 - Ring coupled network system - Google Patents

Ring coupled network system Download PDF

Info

Publication number
JP3719039B2
JP3719039B2 JP08028199A JP8028199A JP3719039B2 JP 3719039 B2 JP3719039 B2 JP 3719039B2 JP 08028199 A JP08028199 A JP 08028199A JP 8028199 A JP8028199 A JP 8028199A JP 3719039 B2 JP3719039 B2 JP 3719039B2
Authority
JP
Japan
Prior art keywords
station
frame
station address
information
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP08028199A
Other languages
Japanese (ja)
Other versions
JP2000278299A (en
Inventor
隆雄 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric FA Components and Systems Co Ltd
Original Assignee
Fuji Electric FA Components and Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric FA Components and Systems Co Ltd filed Critical Fuji Electric FA Components and Systems Co Ltd
Priority to JP08028199A priority Critical patent/JP3719039B2/en
Publication of JP2000278299A publication Critical patent/JP2000278299A/en
Application granted granted Critical
Publication of JP3719039B2 publication Critical patent/JP3719039B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、リング結合型ネットワークシステムに関し、更に詳しくはネットワーク上の通信局の局アドレスの自動設定に関する。
【0002】
【従来の技術】
一般的に、ネットワーク上でデータの転送を行う場合、ネットワーク内の全局に予めその局を識別する局アドレスを設定しておき、送信側はその局アドレスによって転送先を指定してデータの送信を行う。
【0003】
ネットワーク内の各局にこの局アドレスを設定する場合、プロセス入出力機器の接続に用いられる接続局数が最大300程度までのネットワークでは、従来オペレータがネットワークの局となる伝送装置にあるロータリスイッチやディップスイッチなどを操作して各局毎に物理的に設定するか、全ての局に局アドレス設定のためのインタフェースを設け、局アドレス設定ツールにより論理的に設定を行っていた。
【0004】
これに対しプロセス入出力機器の接続ネットワーク等の、中、小規模ネットワークで用いられるリング結合型ネットワークに対して、この局アドレスの設定を手動ではなく伝送フレームを利用して自動設定する方式が特開平10−224388号公報で提案されている。
【0005】
図7及び図8は、上記公報に開示された方式における局アドレスの生成及び設定時のネットワーク内の各局の動作を表す図であり、図7はマスタ局がReqフレーム102を送信し、ネットワーク内のスレーブ局の存在とその接続順の認識を行うときの、図8はマスタ局が局アドレス設定フレーム103を送信し、各スレーブ局がその局アドレス設定フレーム103による情報に基づいて局アドレスを設定を行うときのネットワーク内での動作を示すものである。
【0006】
図7及び図8での局アドレス設定は、図7の様にまずマスタ局Aがリング結合型ネットワーク101内の各スレーブ局B〜Nに対してネットワーク内の局接続構成を示す情報を要求するReqフレーム102を送信する。このReqフレーム102は、マスタ局Aより送信時、先頭にReqコマンド(Req)のみを有する構成である。
【0007】
マスタ局Aからネットワーク101上に流されたReqフレーム102は、ネットワーク101上でマスタ局Aに最も近いスレーブ局Bが最初に受信する。スレーブ局Bは、受信フレームの先頭部のReqコマンドよりこのフレームが局接続構成を要求するReqフレームと判断する。そして、このフレームの最後(Reqの次)に自局構成情報IDbを付加して下流の局に送信する。
【0008】
次にスレーブ局Bの次の局であるスレーブ局Cは、スレーブ局Bが送信したフレーム(Req,IDb)102を受信し、このフレームがReqフレームであると判断すると、受信したフレームの最後(IDbの次)に自局構成情報IDcを付加して下流の局に送信する。以下、各スレーブ局は順次同様に、自局構成情報をフレームの最後に付加して下流へ送信する。そして最下流のスレーブ局Nも同様に受信したフレームの最後に自局構成情報IDnを付加したフレーム(Req,IDb,IDc,・・,IDn)2を下流の局(マスタ局A)に送信する。
【0009】
以上の動作により、マスタ局Aが送信したReqフレーム102は、スレーブ局B〜Nを順に巡り、リング結合型ネットワーク101を一巡してマスタ局Aに戻って来る。マスタ局Aに戻ってきたReqフレーム102内には、各スレーブ局で付加された自局構成情報IDb〜IDnが、スレーブ局のネットワーク101上での接続順に続いている。
【0010】
マスタ局AはこのReqフレーム102を受信し、Reqコマンドの後に付加している各スレーブ局の自局構成情報(IDb,IDc,・・,IDn)とその接続順より、ネットワーク101上のスレーブ局B〜Nの存在とその接続順序を認識する。そしてこのReqフレーム102からの情報に基づいて、マスタ局Aはネットワーク101上のスレーブ局B〜Nの局アドレス#1〜#nを決定する。
【0011】
次にマスタ局Aは、スレーブ局に対して局アドレス設定フレーム103をReqフレーム102のときと同様にネットワーク101上に流す。この局アドレス設定フレーム103により各スレーブ局が自局の局アドレスを設定する処理を図8に示す。
【0012】
この局アドレス設定フレーム103は、先頭に局アドレス設定フレームであることを表すSetコマンドと、それに続いてスレーブ局B〜Nの局アドレスを含む局アドレス情報#1〜#nを格納している。この局アドレス情報は、Setコマンドの次に局Bの局アドレス情報、その次に局Cの局アドレス情報と、Setコマンドに続いて各スレーブ局の局アドレス情報がネットワーク内の接続順に続いている。
【0013】
マスタ局Aからの局アドレス設定フレーム103(Set,#1,#2,・・,#n)を受信した局Bは、フレーム中のSetコマンドよりこのフレームが局アドレス設定フレームであると認識する。そしてSetコマンドの次に続く局アドレス情報#1を自局アドレスとして取り込むと同時にフレーム内より削除し、その局アドレス設定フレーム103(Set,#2,・・,#n)を下流の局に送信する。そしてこの局アドレス情報#1に基づいて、局アドレスの設定を行う。次のスレーブ局Cは、スレーブ局Bが送信したフレーム(Set,#2,・・,#n)3を受信し、先頭のSetコマンドよりこのフレームが局アドレス設定フレームであると判断すると、局Bと同様、受信したフレームのSetコマンドの次に続く局アドレス情報#2を自局アドレスとして取込むと同時にフレームから削除し、その局アドレス設定フレーム(Set,#3,・・,#n)3を下流の局へ流し、この局アドレス情報#2に基づいて局アドレス設定を行う。以下スレーブ局D〜Nも同様に、受信した局アドレス設定フレーム103からSetコマンドの次に続く局アドレス情報を自局のアドレス情報として取り込むと同時にフレームから削除して下流の局に送信し、取込んだ局アドレス情報に基づいて局アドレス設定を行う。
【0014】
以上の動作によりマスタ局Aが送信した局アドレス設定フレーム103は、各スレーブ局B〜Nで局アドレス情報#1〜#nが削除され、リング結合型ネットワーク101を一巡してSetコマンドだけになってマスタ局Aに戻って来る。マスタ局Aは、このSetコマンドだけになった局アドレス設定フレーム103を受信すると、スレーブ局B〜Nが各々局アドレス情報を取り込み、各スレーブ局B〜Nに局アドレスが設定されたことを確認する。また各スレーブ局B〜Nは、取込んだ自局の局アドレス情報(#1〜#n)に基づいて自局に局アドレスをセットする。
【0015】
この様にして、ネットワーク101上でのフレームデータのやり取りにより各スレーブ局に自動的に局アドレスが設定される。
【0016】
【発明が解決しようとする課題】
図7及び図8で示した従来の方式によるアドレスの自動設定では、スレーブ局がReqフレーム102に自局構成情報IDbを付加して送信してから、局アドレス設定フレーム103を送受信して局アドレスの設定が完了するまでの間に、スレーブ局が脱落したり或は新規局がネットワーク101に参加するなどネットワーク構成が変化した場合、局アドレスが間違って設定され、これがシステムの障害の要因となる。
【0017】
図9に、送信したReqフレーム102が一巡してマスタ局Aに戻ってきてから、局アドレス設定フレーム103を送信して局アドレスの設定が完了するまでの間に局Cがネットワーク101に参加してきた例を示す。
【0018】
図9の場合、局Cが参加したことにより本来局Dの設定に用いられるはずの局アドレス情報#2が局Cに取込まれてしまい、下流局の局D以降の局アドレスが1つづつずれて設定されてしまう。又局Nは、割り振られる局アドレス情報が局アドレス設定フレーム103には残っておらず、局アドレスを設定することが出来ない。
【0019】
また、図10は、図9とは逆に、送信したReqフレーム102が一巡してマスタ局Aに戻ってきてから、局アドレス設定フレーム103を送信し、局アドレスの設定が完了する前に局Cがネットワーク101から脱落した場合の例である。この場合も局Cが脱落したことにより、局Cの設定に用いられるはずであった局アドレス情報#2が局Dの設定に用いられ、以降の下流局では1つづつずれて設定されてしまい、局アドレス情報#nが余った状態になる。
【0020】
本発明は上記問題点を考慮し、アドレス設定途中でネットワーク構成に変化が有っても正しくアドレスの自動設定を行うことが出来るリング結合型ネットワーク及びその局となる情報伝送装置を提供することを目的とする。
【0021】
【課題を解決するための手段】
上記課題を解決するための手段として、本発明のうちの請求項1に記載のリング結合型ネットワークは、マスタ局とスレーブ局を有することを前提とする。
【0022】
請求項1のマスタ局は、情報要求フレーム送信手段、局アドレス生成手段及び局アドレス設定フレーム生成手段とを備える。情報要求フレーム送信手段は、上記スレーブ局に対して局接続構成の情報を要求する情報要求フレームを生成し、該情報要求フレームをネットワークの下流局へ送信する。局アドレス生成手段は、上記情報要求フレーム送信手段が送信し、上記ネットワークを一巡して戻ってきた上記情報要求フレームから、スレーブ局に対する局アドレス情報を生成する。局アドレス設定フレーム生成手段は、上記局アドレス情報を含む局アドレス設定フレームを生成し、該局アドレス設定フレームをネットワークの下流局へ送信する。
【0023】
請求項1のスレーブ局は、送信記憶手段、情報要求フレーム処理手段、局アドレス設定フレーム処理手段及び局アドレス設定手段を備える。送信記憶手段は、自局構成情報を送信したことを記憶する。情報要求フレーム処理手段は、ネットワークの上流局より受信したフレームが上記情報要求フレームであるとき、該情報要求フレームに自局構成情報を付加してネットワークの下流局へ送信すると共に該自局構成情報を送信したことを上記送信記憶手段に記憶する。局アドレス設定フレーム処理手段は、ネットワークの上流局より受信したフレームが上記局アドレス設定フレームであるとき、上記送信記憶手段に上記局接続構成の情報を送信したことが記憶されていれば該局アドレス設定フレーム内の自局が対応する位置より上記局アドレス情報を取得し、該局アドレス設定フレームをネットワークの下流局へ送信する。局アドレス設定手段は、上記局アドレス設定フレーム処理手段が取得した上記局アドレス情報に基づき自局の局アドレスを設定する。
【0024】
この請求項1に記載の発明によれば、各スレーブ局は、局アドレス設定フレーム受信時に自局構成情報を送信したかどうか送信記憶手段を調べるので、送信している時に局アドレスの設定が行われ、未送信時には局アドレス設定が行われない。
【0025】
また本発明のうち請求項2に記載のリング結合型ネットワークシステムは、マスタ局とスレーブ局を有することを前提とする。
請求項2のマスタ局は、情報要求フレーム送信手段、局アドレス生成手段及び局アドレス設定フレーム生成手段を備える。情報要求フレーム送信手段は、上記スレーブ局に対して局接続構成の情報を要求する情報要求フレームを生成し、該情報要求フレームをネットワークの下流局へ送信する。局アドレス生成手段は、上記情報要求フレーム送信手段が送信し上記ネットワークを一巡して戻ってきた上記情報要求フレームから、スレーブ局に対する局アドレス及びそのスレーブ局の位置情報を求める。局アドレス設定フレーム生成手段は、上記局アドレスと該局アドレス情報が対応するスレーブ局の上記位置情報とを対応させて格納する局アドレス設定フレームを生成し、ネットワークの下流局へ送信する。
【0026】
また請求項2各スレーブ局は、情報要求フレーム処理手段、局アドレス設定フレーム処理手段及び局アドレス設定手段を備える。情報要求フレーム処理手段は、ネットワークの上流局より受信したフレームが上記情報要求フレームであるとき、該情報要求フレーム内の情報から自局のネットワーク上での位置を認識し、また該情報要求フレームに自局構成情報を付加してネットワークの下流局へ送信する。局アドレス設定フレーム処理手段は、ネットワークの上流局より受信したフレームが上記局アドレス設定フレームであるとき、該局アドレス設定フレーム内の、上記情報要求フレーム処理手段が認識した位置と一致する位置情報に対応する局アドレスを取得し、該局アドレス設定フレームをネットワークの下流局へ送信する。局アドレス設定手段は、上記局アドレス設定フレーム処理手段が取得した上記局アドレス情報に基づき自局の局アドレスを設定する。
【0027】
この請求項2に記載の発明によれば、各スレーブ局では、局アドレス設定フレーム受信時に、情報要求フレーム受信時に情報要求フレーム処理手段が認識した自局のネットワーク上での位置と一致する位置情報に対応する局アドレスを取得し、局アドレス設定が行われる。
【0028】
また本発明のうち請求項3に記載のリング結合型ネットワークシステムは、マスタ局とスレーブ局を有することを前提とする。
請求項3のマスタ局は、情報要求フレーム送信手段、局アドレス生成手段及び局アドレス設定フレーム生成手段を備える。
【0029】
情報要求フレーム送信手段は、上記スレーブ局に対して局接続構成の情報を要求する情報要求フレームを生成し、該情報要求フレームをネットワークの下流局へ送信する。局アドレス生成手段は、上記情報要求フレームに対してスレーブ局が返信するフレームからネットワーク上のスレーブ局の接続状態を認識し、スレーブ局に対する局アドレス情報を生成する。局アドレス設定フレーム生成手段は、上記局アドレスを、上記スレーブ局を一意に識別できる識別情報と対応させて格納して局アドレス設定フレームを生成し、該局アドレス設定フレームをネットワークの下流局へ送信する。
【0030】
また請求項3スレーブ局は、情報要求フレーム処理手段、局アドレス設定フレーム処理手段及び局アドレス設定手段を備える。
情報要求フレーム処理手段は、ネットワークの上流局より受信したフレームが上記情報要求フレームであるとき、該情報要求フレームに自局構成情報を上記識別情報と対応させて付加してネットワークの下流局へ送信する。局アドレス設定フレーム処理手段は、ネットワークの上流局より受信したフレームが上記局アドレス設定フレームであるとき、該アドレス設定フレーム内の、自己の識別情報と対応させて格納されている局アドレスを取得し、該局アドレス設定フレームをネットワークの下流局へ送信する。局アドレス設定手段は、上記局アドレス設定フレーム処理手段が取得した上記局アドレス情報に基づき自局の局アドレスを設定する。
【0031】
この請求項3に記載の発明によれば、各スレーブ局では、局アドレス設定フレーム受信時に、アドレス設定フレーム内の自己の識別情報と対応させて格納されている局アドレスが設定される。
【0032】
また本発明のうち請求項4に記載のリング結合型ネットワークシステムは、請求項1乃至3の何れか1項記載のリング結合型ネットワークシステムにおいて、上記スレーブ局は、上記情報要求フレーム若しくは局アドレス設定フレームを受信時、自己に既に局アドレスが設定されていれば、受信した情報要求フレーム若しくは局アドレス設定フレームをそのまま下流局へ送信することを特徴とする。
【0033】
この請求項4に記載の発明によれば、既に局アドレスが設定されているスレーブ局は、新たに局アドレス設定処理が行われない。
また本発明のうち請求項5に記載のリング結合型ネットワークシステムは、請求項1乃至4の何れか1項記載のリング結合型ネットワークシステムにおいて、上記マスタ局は、上記スレーブ局に対して設定されている局アドレスを要求する局アドレス読み出しフレームを生成し、該局アドレス読み出しフレームをネットワークの下流局へ送信する局アドレス読み出しフレーム送信手段と、上記局アドレス読み出しフレーム手段が送信し、上記ネットワークを一巡して戻ってきた上記局アドレス読み出しフレームから、スレーブ局に局アドレスが正しく設定されたかどうかをチェックする局アドレスチェック手段を更に備えることを特徴とする。
【0034】
この請求項5に記載の発明によれば、ネットワーク上のスレーブ局に設定された局アドレスのチェックを行える。
また本発明のうち請求項5に記載のリング結合型ネットワークシステムは、請求項5項記載のリング結合型ネットワークシステムにおいて、上記チェック手段によるチェックの結果、上記局アドレスが正しく設定されていない時、上記局アドレス設定フレーム生成手段は、再度局アドレス設定フレームを下流局へ送信することを特徴とする。
【0035】
この請求項6の発明によれば、局アドレスが正しく設定されていないスレーブ局がある時、局アドレスの再設定を行える。
また本発明のうち請求項6に記載のリング結合型ネットワークシステム上の1つの局となる情報伝送装置は、自局構成情報を送信したことを記憶する送信記憶手段と、ネットワークの上流局より受信したフレームが局接続構成の情報を要求する情報要求フレームであるとき、該情報要求フレームに自局構成情報を付加してネットワークの下流局へ送信すると共に該自局構成情報を送信したことを上記送信記憶手段に記憶する情報要求フレーム処理手段と、ネットワークの上流局より受信したフレームが局アドレスの設定を行う局アドレス設定フレームであるとき、上記送信記憶手段に上記局接続構成の情報を送信したことが記憶されていれば該局アドレス設定フレーム内の自局が対応する位置より上記局アドレス情報を取得し、該局アドレス設定フレームをネットワークの下流局へ送信する局アドレス設定フレーム処理手段と、上記局アドレス設定フレーム処理手段が取得した上記局アドレス情報に基づき自局の局アドレスを設定する局アドレス設定手段と、
を備えることを特徴とする。
【0036】
この請求項7に記載の発明によれば、局アドレス設定フレーム受信時に自局構成情報を送信したかどうか送信記憶手段を調べるので、送信している時に局アドレスの設定が行われ、未送信時には局アドレス設定が行われない。
【0037】
【発明の実施の形態】
以下に本発明の実施形態を図面を参照しながら説明する。
図1は、第1の実施形態でのネットワーク内での動作例を示す図である。
【0038】
図1の構成では、リング結合型ネットワーク1上に任意の数の局A〜Nが接続されており、そのうち局Aがマスタ局、局B〜Nがスレーブ局で、初期段階では、全てのスレーブ局B〜Nにはまだ局アドレスは設定されておらず、また局Cはネットワーク1に参加していないものとする。尚各実施形態でのマスタ局は、アドレス設定の管理を行う局であり、その他のネットワークの管理を行うマスタ局と必ずしも同一である必要はない。また図1において、リング結合型ネットワーク1上の矢印はフレームデータが流れる方向を示すものであり、マスタ局Aに対してネットワーク上1で最も近いスレーブ局を局B、その次を局C、・・・、と最も下流にある局を局Nとする。そしてネットワーク1はリング結合型ネットワークなので、最下流のスレーブ局Nからの出力は、マスタ局Aに入力されるものとする。
【0039】
第1の実施形態では、各スレーブ局B〜Nは、Reqフレームに自局構成情報を付加して下流局に送信したかどうかをフラグなどの形で記憶しておくメモリやレジスタ等の記憶手段をそれぞれ備えている。このフラグは初期時は“0”に、自局構成情報送信後は“1”にセットされ、各スレーブ局はこのフラグの状態を調べることにより自局構成情報をマスタ局Aに送信したかどうかを確認することができる。
【0040】
アドレス設定を行う際、第1の実施形態では、図7で示した従来の方式と同様、まずマスタ局Aはネットワーク1上の各スレーブ局B〜Nに対して局接続構成を要求するReqフレーム2を送信する。このReqフレーム2は図7のReqフレーム102と同様、先頭にReqコマンド(Req)のみを有する構成である。尚各実施形態の記述では、フレーム構成については制御データなどの本発明の要旨とは直接関係ない部分については省略してある。また説明を簡略化するため、局間で送受信されるフレーム内のデータは本発明に必要な最小限のみのものを示す。
【0041】
各スレーブ局B〜NはこのReqフレーム2を受信すると、Reqフレーム2の最後に自局構成情報IDを付加して下流の局に順次送信してゆく。またこの時、各スレーブ局B〜NはReqフレーム2に自局構成情報を付加して送信したことを記憶しておく為に、フラグを“0”から“1”にセットする。ここでReqフレーム2に付加する自局構成情報は、スレーブ局の種別や、型式を表す情報で、例えばその局にプロセス入出力機器が接続されている場合、その機器がアナログ入力、アナログ出力、デジタル入力、デジタル出力のどれであるか、またそのデータ幅などを表す情報である。
【0042】
このReqフレーム2が局B、D、・・、Nと巡回してゆき、ネットワーク1を一巡してマスタ局Aに戻ってくると、Reqフレーム2内にはセットワーク1に接続している全てのスレーブ局の自局構成情報がその接続順に格納されている。マスタ局AはこのReqフレーム2内の各スレーブ局の自局構成情報(IDb,IDd,・・,IDn)とその接続順からネットワーク1上のスレーブ局(B,D,・・,N)の存在とその接続順序を認識する。そしてこのReqフレーム2からの情報に基づいて、従来の方式と同様マスタ局Aは、ネットワーク1上のスレーブ局B〜Nの局アドレスを決定する。この局アドレスの決定の仕方は、同じ局アドレスが複数の局に重複設定されないよう、例えば局Bは#1、局Dは#2とネットワーク上での接続順に決定したり、或は各スレーブ局より得た自局構成情報に基づいて決定される。そしてマスタ局Aはこの局アドレスを含む局アドレス情報を格納した局アドレス設定フレーム3を下流局へ送信する。
【0043】
この局アドレス設定フレーム3は、図7の局アドレス設定フレーム103と同様、先頭に局アドレス設定フレームであることを表すSetコマンドと、それに続いてスレーブ局B〜Nの局アドレスの設定に用いる局アドレス情報#1〜#n−1を含む構成となっている。この局アドレス情報は、Setコマンドの次に局Bの局アドレス情報#1、その次に局Dの局アドレス情報#2と、Setコマンドに続いて、各スレーブ局の局アドレス情報が、Reqフレーム2送信時のネットワーク1の構成での接続順に続いている。
【0044】
各スレーブ局はこの局アドレス設定フレーム3を受信すると、自己のフラグをチェックし、“1”が設定されていれば局アドレス設定フレーム3内からSetコマンドの次に続く局アドレス情報を自局のアドレス情報として取り込むと同時にフレームから削除して下流の局に送信する。そして取込んだ局アドレス情報に基づいて局アドレス設定を行う。またフラグに“0”が設定されている局は、局アドレス設定フレーム3をそのまま中継して下流局へ送信する。
【0045】
図1の例では、局BからReqフレーム2が送信されてから局アドレス設定フレーム3が送信されるまでの間に、局Cが局BとDの間に新規参加したとする。マスタ局Aからの局アドレス設定フレーム3(Set,#1,#2,・・,#n)を受信した局Bは、フレーム中のSetコマンドよりこのフレームが局アドレス設定フレームであると認識する。次に局Bは自己のフラグを調べると、局Bは自局構成情報をReqフレーム2と共にマスタ局Aに送っているので、フラグには“1”が設定されている。よって局Bは局アドレス設定フレーム3内のSetコマンドの次に続く局アドレス情報#1を取り込むと同時にフレーム内より削除し、その局アドレス設定フレーム3(Set,#2,・・,#n)を下流の局に送信する。そして、局アドレス設定フレーム3から取込んだ局アドレス情報#1から自局の局アドレスを設定すると共にフラグを“0”にリセットする。
【0046】
次のスレーブ局Cは、スレーブ局Bが送信したフレーム(Set,#2,・・,#n)3を受信し、先頭のSetコマンドよりこのフレームが局アドレス設定フレームであると判断すると、やはり自己のフラグを調べる。局Cは新規にネットワーク1に参加してきた局なのでReqフレーム2に自局構成情報を付加してマスタ局Aに送信していないので、フラグは“0”が設定されている。よって局Cは、局アドレスの設定を行わず、局アドレス設定フレーム3をそのまま下流局に流す。
【0047】
次のスレーブ局Dは、スレーブ局Cが送信したフレーム(Req,#2,・・,#n)3を受信し、先頭のSetコマンドよりこのフレームが局アドレス設定フレームであると判断すると次にフラグを調べる。局Dのフラグは“1”が設定されているので、局Bの場合と同様、受信したフレームのSetコマンドの次に続く局アドレス情報#2を自局アドレスとして取込むと同時にフレームから削除し、その局アドレス設定フレーム(Set,#3,・・,#n)3を下流の局へ流す。そして局アドレスの設定及びフラグのリセットを行う。以下スレーブ局D〜Nも同様に、局アドレス設定フレーム3を受信すると自己のフラグを調べ、“1”が設定されているので受信した局アドレス設定フレーム3からSetコマンドの次に続く局アドレス情報を自局のアドレス情報として取り込むと同時にフレームから削除して下流の局に送信する。
【0048】
図2は上記第1の実施形態における各スレーブ局での処理フローである。
図2において、ネットワークに参加して電源投入等によって起動開始したスレーブ局は、初期化処理が完了するとまずステップS1として受信待ち状態に入り、ネットワークからフレームが送信されてくるのを待つ。フレームを受信するとスレーブ局は受信フレームの先頭部分にあるコマンドからフレームの種類を判断する(ステップS2)。その結果、受信フレームがReqフレームであったなら、ステップS3としてフレームの最後に自己の自局構成情報を付加して下流局に流すと共にステップS4としてフラグを“1”にセットする。そしてステップS1に処理を移し再び受信待ち状態に移る。
【0049】
またステップS2で受信フレームが局アドレス設定フレームであったなら、次にステップS5として自己のフラグが“1”にセットされているかどうかが判断される。フラグが“1”にセットされてていれば(ステップS5、Yes)、ステップS6として受信フレーム内の局アドレス情報を自局のアドレスとして取込むと共にステップS7としてその局アドレス情報を削除したフレームを下流局へ中継する。そしてステップS8として自己のフラグを“1”から“0”にリセットして局アドレス設定処理を終了する。またステップS5で、フラグが“1”にセットされていなければ(ステップS5、No)、局アドレス設定フレームをそのまま下流局へ中継して(ステップS9)、局アドレス設定処理を終了する。
【0050】
この様に第1の実施形態によれば、局アドレス設定処理の途中でネットワークに新規加入する局が有っても、その局には局アドレスが設定されないので、他の局に対しては、正常な局アドレスが設定される。
【0051】
次に第2の実施形態について説明する。
第2の実施形態では、各スレーブ局は、受信したReqフレームに付加されている自局構成情報の個数をカウントし、自局がマスタ局から何局目に接続されているかを局数情報として記憶するメモリやレジスタ等の記憶手段を備えている。マスタ局は一巡してきたReqフレームから各スレーブ局の局アドレスを決定し、局アドレス設定フレームを生成するが、この局アドレス設定フレームには局アドレス情報の他に接続順位を位置情報として格納して送信する。局アドレス設定フレームを受信したスレーブ局は、フレーム内の位置情報と自局が記憶している局数情報とを比較してゆき、一致した場合にそれに対応する局番情報が自局宛てであることを認識し、その局番情報を内部に取り込む。
【0052】
図3は第2の実施形態でのネットワーク内での動作例を示す図である。
図3(a)は図1に示した第1の実施形態の例と同様、リング結合型ネットワーク11にマスタ局A及びスレーブ局B〜Nが接続された構成において、局BからReqフレーム12が送信されてから局アドレス設定フレーム13が送信されるまでの間に、局Cが局BとDの間に新規参加した場合を例としている。
【0053】
アドレス設定を行う際、第2の実施形態では、第1の実施形態と同様まずマスタ局Aがネットワーク1上の各スレーブ局B〜Nに対して局接続構成を要求するReqフレーム12を送信する。このReqフレーム12は図1のReqフレーム2と同様、先頭にReqコマンド(Req)のみを有する構成である。
【0054】
このReqフレーム12を受信すると、各スレーブ局B〜NはこのReqフレーム12の最後に自局構成情報IDを付加して下流の局に順次送信してゆく。またこの時、スレーブ局B〜Nは受信したReqフレーム12に付加されている自局構成情報の個数をカウントし、ネットワーク11上で自局がマスタ局Aから何局目に接続されているかを認識する。そしてこれを局数情報としてレジスタやメモリ等の記憶手段に記憶する。図3(a)の場合では、局Bは“1”を、局Dは“2”をReqフレーム12受信時に局数情報として記憶する。尚各スレーブ局では、この局数情報の初期値として“0”を記憶している。
【0055】
このReqフレーム12が局B、D、・・、Nと巡回してゆき、ネットワーク11を一巡してマスタ局Aに戻ってきた時、Reqフレーム12内にはネットワーク1に接続されている全てのスレーブ局の自局構成情報がその接続順に格納されている。マスタ局Aはこの自局構成情報(IDb,IDd,・・,IDn)とその接続順からネットワーク11上のスレーブ局(B,D,・・,N)の存在とその接続順序を認識する。そしてこれらの情報に基づいて、スレーブ局B〜Nの局アドレスを決定する。そしてマスタ局Aは、Reqフレーム12での接続順位から求めた各局のネットワーク11での位置情報をこの局アドレスと共に、アドレスの設定に用いる局アドレス情報#1〜#n−1として局アドレス設定フレーム13に格納して送信する。
【0056】
この局アドレス設定フレーム13の構成例を図3(b)に示す。このフレーム構成では局アドレス設定フレーム13を示すSetコマンドに続いて、スレーブ局Bに対する局アドレス情報#1として局Bに設定する局アドレスとB局の位置情報“1”が、続いて局Dに対する局アドレス情報#2として局Dに設定する局アドレスと位置情報“2”が格納され、以降局Nまでの局アドレス情報がその接続順に格納されている。
【0057】
各スレーブ局B〜Nはこの局アドレス設定フレーム13を受信すると、フレーム内の位置情報と自己の記憶手段に記憶している局数情報と一致する局アドレス情報を取り出すと共に局アドレス設定フレーム13から削除し、下流局へ送信する。そして取り出した局アドレス情報を基に自己の局アドレスを設定する。図2(a)においては、例えば局Bは局数情報として“1”を記憶しているので、受信した局アドレス設定フレーム13内の位置情報として“1”が設定されている局アドレス情報#1を取り出すと共に削除して、下流局へ流す。そしてこの局アドレス情報#1内の局アドレスを自局のアドレスとして設定する。
【0058】
また途中参加した局Cは、局数情報として初期値の“0”が設定されているので、受信した局アドレス設定フレーム13には対応する位置情報がなく、受信フレームをそのまま下流局へ流し、局アドレスの設定は行われない。或は図2(a)において、ネットワーク11上のスレーブ局の1つが、Reqフレーム12送信後、局アドレス設定フレーム13受信前にネットワーク11上から脱落しても、残りのスレーブ局は、自己が記憶している局数情報と一致する位置情報をもつ局アドレス情報を局アドレス設定フレーム13から読み出すので、各スレーブ局はマスタ局Aが自己に対して設定した正しい局アドレスを設定することが出来る。
【0059】
この様に第2の実施形態によれば、局アドレス設定処理の途中でネットワーク構成に変更が有っても、各スレーブ局は自己が記憶している局数情報と、局アドレス設定フレーム内の位置情報を比較することにより、正常な局アドレス設定を行うことが出来る。
【0060】
尚上記第2の実施形態の説明では、各スレーブ局は局アドレス設定フレーム13から局アドレス情報を取り出すと同時に削除している。これにより一巡して戻ってきた局アドレス設定フレームからマスタ局Aは、ネットワーク構成の変更の有無を認識することが出来るが、第2の実施形態はこの様なもののみに限らず、局アドレス情報取り出し時に削除を行わずにそのまま局アドレス設定フレーム13を下流局に送信してもよい。
【0061】
次に第3の実施形態について説明する。
第3の実施形態では、各スレーブ局には自局を他局と一意に識別できる情報(以降、識別情報)が設定されている。そして各スレーブ局はReqフレームを受信すると、自局構成情報と共にこの識別情報を付加して下流局へ送信する。マスタ局は、局アドレス情報をこの識別情報と対応させて局アドレス設定フレームに格納し、送信する。そして各スレーブ局は、局アドレス設定フレーム内の自局の識別情報に対応する局アドレス情報を取込む。
【0062】
図4は第3の実施形態でのネットワーク内での動作例を示す図である。
図4の例では、リング結合型ネットワーク21に局A〜Nが接続されており、そのうち局Aがマスタ局、局B〜Nがスレーブ局とする。各スレーブB〜Nには、例えば製造シリアル番号等から決めた、各局を一意に識別する識別情報b〜nが事前に設定されている。
【0063】
局アドレスの設定は、これまでと同様マスタ局Aが、Reqフレーム22をネットワーク21からスレーブ局B〜Nに送信して行われる。このReqフレーム22は、まず局Aの隣に接続されている局Bが受信する。局Bは、受信フレーム22に自局構成情報と共に自局の識別情報bを付加して下流局に送信する。以降局C〜Nも局Bと同様に自局構成情報と共に自局の識別情報c〜nを付加して下流の局に送信してゆく。そしてReqフレーム22は、リング結合型ネットワーク22を一巡してマスタ局Aに戻ってくる。この時のフレーム構成は、図4(b)に示すように、Reqコマンドに続いて、局Bが付加した局アドレス情報IDbとして局Bの識別情報bと局Bの自局構成情報が対応づけられて格納され、以下局C〜Nの局アドレス情報IDc〜IDnが続いている。
【0064】
次にマスタ局Aは、Reqフレーム22内の情報から、各スレーブ局B〜Nの局アドレスを決定し、これを各局の識別情報b〜nと対応させて局アドレス設定フレーム23内に格納してゆく。この局アドレス設定フレーム23の構成例は、図4(c)に示すように、局アドレス設定フレーム23を示すSetコマンドに続いて、局Bの識別情報b及び局Bに設定される局アドレスが局Bに対する局アドレス情報#1として格納され、以下局C〜Nの局アドレス情報#2〜#nがその接続順に格納されている。
【0065】
マスタ局Aが局アドレス設定フレーム23を送信すると、これを局B、C、・・と順次受信し、受信フレーム23内に自己の識別情報が有れば、その局アドレス情報を取込むと共にフレームから削除し、下流局に送信する。そしてこの局アドレスを自局に設定する。また途中でネットワーク21に参加した局が有っても、その局と同じ識別情報は局アドレス設定フレーム23内には無いので、その局は局アドレス設定は行われず、局アドレス設定フレーム23をそのまま下流局へ送信する。
【0066】
この様に第3の実施形態によれば、各スレーブ局は局アドレス設定フレーム23内の、自局の識別情報と対応させて格納されている局アドレスを自己の局アドレスとして設定するので、局アドレス設定処理の途中でネットワーク構成に変更が有っても、正常な局アドレス設定を行うことが出来る。
【0067】
尚上記第3の実施形態の説明では、各スレーブ局は局アドレス設定フレーム23から局アドレス情報を取り出すと同時に削除しているが第3の実施形態はこの様なもののみに限らず、局アドレス情報取り出し時に削除を行わずにそのまま局アドレス設定フレーム23を下流局に送信してもよい。
【0068】
次に第4の実施形態について説明する。
これまでの例では、局アドレス設定処理を行う際、ネットワーク上の全てのスレーブ局にはまだ局アドレスが設定されていなかった。しかし、第4の実施形態では、ネットワーク上のいくつかのスレーブ局には既に局アドレスが設定されている場合に残りのスレーブ局に対して局アドレスを設定することを前提とする。
【0069】
図5は第4の実施形態でのネットワーク内での動作例を示す図である。
図5では、リング結合型ネットワーク31に局A〜Nが接続されており局Aがマスタ局、局B〜Nがスレーブ局とする。またスレーブ局B〜Nのうち局Cには既に局アドレスが設定されており、他のスレーブ局には未設定の状態であったとする。尚以下の説明で、マスタ局A及び局アドレスが未設定のスレーブ局B、D〜Nの動作は、これまで述べてきた第1〜3の実施形態での動作、或は図7及び図8で説明した動作のいずれでもよい。
【0070】
これまでの実施形態と同様、マスタ局AがReqフレーム32を送信すると、これを受信したスレーブ局B〜Nのうち局アドレスが未設定のスレーブ局B、D〜Nは、自己の自局構成情報を付加して下流局に送信する。しかし既に局アドレスが設定されている局Cは、Reqフレーム32を受信するとそのフレームをそのまま下流局に中継する。
【0071】
Reqフレーム32がネットワーク31を一巡してマスタ局Aに戻ってくると、次にマスタ局Aは局アドレス設定フレーム33を送信する。局アドレスが未設定のスレーブ局B、D〜Nがこれを受信すると、自己に対応する局アドレス情報を受信フレームから取込むと共に削除して下流局に送信する。そしてこれに基づいて局アドレスの設定を行う。また局アドレスが既に設定されている局Cは、この局アドレス設定フレーム33を受信しても、Reqフレーム32の時と同様、局アドレス設定フレーム33を受信するとそのフレームをそのまま下流局に中継する。
【0072】
この様に第4の実施形態では、ネットワーク上に局アドレスが設定済の局と未設定の局が混在していても、正常な局アドレス設定を行うことが出来る。また既に局アドレスが設定されている局は局アドレスが従来のままなのでネットワーク構成に変更が有っても既に局アドレスが設定されている局の局アドレスを壊すことはない。
【0073】
次に第5の実施形態について説明する。
第5の実施形態では、第1〜4の実施形態での処理或は図7及び図8での処理によって各局に局アドレスが設定された後、マスタ局が各スレーブ局に設定されている局アドレスをチェックし、正しく設定されていない場合には局アドレスの再設定を行うものである。
【0074】
図6は、第5の実施形態でのネットワーク内での動作例を示す図である。
図6では、リング結合型ネットワーク41に局A〜Nが接続されており局Aがマスタ局、局B〜Nがスレーブ局である。各スレーブ局には局アドレス設定フレームによって既に局アドレスが設定されているものとする。
【0075】
ネットワーク41上のスレーブ局B〜Nの局アドレス設定が完了後、マスタ局Aは、各スレーブ局に局アドレスの送信を要求する局アドレス読み出しフレーム42を送信する。この局アドレス読み出しフレーム42は、マスタ局Aより送信時、先頭に局アドレス読み出しフレームで有ることを示すReqAコマンド(ReqA)のみを有する構成である。
【0076】
この局アドレス読み出しフレーム42を受信すると、各スレーブ局B〜Nは自己の局アドレスADb〜ADnを受信フレームの最後に付加して下流局に送信する。ネットワーク42を一巡してマスタ局Aに戻ってくると、局アドレス読み出しフレーム42には、各スレーブ局の局アドレスADb〜ADnがその接続順に格納されている。マスタ局Aは、この局アドレス読み出しフレーム42内の局アドレスとその接続順から各スレーブ局に自己が意図した通りに局アドレスか設定されているかどうかをチェックする。そしてもし正常に局アドレスが設定されてない場合には、局アドレスの再設定を試み、或はハードウエア要因等による致命的な故障(重故障)としてネットワークをダウンさせる。
【0077】
局アドレスの再設定を行う場合、まず再度正常な局アドレスを格納した局アドレス設定フレーム43をネットワーク41上に送信し、各スレーブ局B〜Nに再度局設定を行わせる。そして設定完了後再び局アドレス読み出しフレーム42を送信して、正常にアドレス設定が完了したかを確認する。そして、この局アドレスの再設定と確認処理を既定回数繰り返しても、正常な局アドレス設定が行えない場合には、重故障が発生したものとしてネットワークをダウンさせる。
【0078】
この様に第5の実施形態では、マスタ局が各スレーブ局への局アドレス設定が自己の意図した通りに設定されたかどうかを確認することが出来る。そして、正常に設定されていない場合には、アドレス局の再設定、若しくはネットワークをダウンさせるので、システム全体として障害を引き起こすことはない。
【0079】
【発明の効果】
本発明によれば、アドレスの設定処理途中に、局の追加や脱落等のネットワーク構成の変化があっても、局アドレスがずれて設定されてしまう等の不整合を防止することが出来、正常な局アドレス設定を行うことが出来る。
【0080】
また既に局アドレスが設定されている局があっても、正常な局アドレス設定を行え、また既に局アドレスが設定されている局の局アドレスを壊すことはない。更に局アドレスが正常に設定されているかどうかをチェック出来、システム全体に障害を引き起こすことはない。
【0081】
また局アドレスが正常に設定されていない場合には、再設定を行うことが出来る。
【図面の簡単な説明】
【図1】第1の実施形態でのネットワーク内での動作例を示す図である。
【図2】第1の実施形態における各スレーブ局での処理フローを示す図である。
【図3】第2の実施形態でのネットワーク内での動作例を示す図である。
【図4】第3の実施形態でのネットワーク内での動作例を示す図である。
【図5】第4の実施形態でのネットワーク内での動作例を示す図である。
【図6】第5の実施形態でのネットワーク内での動作例を示す図である。
【図7】従来の局接続構成要求時のネットワーク内での動作を示す図である。
【図8】従来の局アドレス設定時のネットワーク内での動作を示す図である。
【図9】局アドレス設定フレームを送信して局アドレスの設定が完了する前に局Cがネットワークに参加してきた例を示す図である。
【図10】局アドレス設定フレームを送信し、局アドレスの設定が完了する前に局Cがネットワークから脱落した場合の例を示す図である。
【符号の説明】
1、11、21、31、41、101 リング結合型ネットワーク
2、12、22、32、102 Reqフレーム
3、13、23、33、43、103 局アドレス設定フレーム
42 アドレス読み出しフレーム
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a ring-coupled network system, and more particularly to automatic setting of a station address of a communication station on a network.
[0002]
[Prior art]
In general, when transferring data on a network, a station address that identifies the station is set in advance for all stations in the network, and the transmission side specifies the transfer destination by the station address and transmits data. Do.
[0003]
When this station address is set for each station in the network, in a network where the number of connected stations used for connection of process input / output devices is up to about 300, a conventional operator uses a rotary switch or dip in a transmission device serving as a network station. Each station is physically set by operating a switch or the like, or an interface for setting a station address is provided for all stations, and logical setting is performed by a station address setting tool.
[0004]
On the other hand, for the ring-coupled network used in medium and small-scale networks such as connection networks for process input / output devices, this station address setting is not automatically set using a transmission frame but manually. This is proposed in Japanese Laid-Open Patent Publication No. 10-224388.
[0005]
7 and 8 are diagrams showing the operation of each station in the network at the time of generating and setting the station address in the method disclosed in the above publication. FIG. 7 shows the master station transmitting the Req frame 102 and FIG. 8 shows a case where the master station transmits the station address setting frame 103 and each slave station sets the station address based on the information in the station address setting frame 103. It shows the operation in the network when performing.
[0006]
In the station address setting in FIGS. 7 and 8, the master station A first requests information indicating the station connection configuration in the network from the slave stations B to N in the ring-coupled network 101 as shown in FIG. Req frame 102 is transmitted. The Req frame 102 is configured to have only a Req command (Req) at the head when transmitted from the master station A.
[0007]
The Req frame 102 sent from the master station A to the network 101 is first received by the slave station B closest to the master station A on the network 101. The slave station B determines that this frame is a Req frame requesting a station connection configuration from the Req command at the head of the received frame. Then, the local station configuration information IDb is added to the end of this frame (next to Req) and transmitted to the downstream station.
[0008]
Next, the slave station C, which is the next station of the slave station B, receives the frame (Req, IDb) 102 transmitted by the slave station B and determines that this frame is a Req frame. The local station configuration information IDc is added to (next to IDb) and transmitted to the downstream station. Thereafter, each slave station sequentially adds its own station configuration information to the end of the frame and transmits it downstream. Similarly, the most downstream slave station N transmits a frame (Req, IDb, IDc,..., IDn) 2 with its own station configuration information IDn added to the end of the received frame to the downstream station (master station A). .
[0009]
Through the above operation, the Req frame 102 transmitted from the master station A goes around the slave stations B to N in order, and goes around the ring coupled network 101 and returns to the master station A. In the Req frame 102 returned to the master station A, the own station configuration information IDb to IDn added by each slave station is continued in the order of connection on the network 101 of the slave station.
[0010]
Master station A receives this Req frame 102, and determines the slave station on network 101 from its own station configuration information (IDb, IDc,..., IDn) and the connection order of each slave station added after the Req command. Recognize the existence of B to N and their connection order. Based on the information from the Req frame 102, the master station A determines the station addresses # 1 to #n of the slave stations B to N on the network 101.
[0011]
Next, the master station A sends a station address setting frame 103 to the slave station on the network 101 as in the case of the Req frame 102. FIG. 8 shows a process in which each slave station sets its own station address using this station address setting frame 103.
[0012]
The station address setting frame 103 stores therein a Set command indicating that it is a station address setting frame, followed by station address information # 1 to #n including station addresses of slave stations B to N. In this station address information, the station address information of the station B follows the Set command, the station address information of the station C, and the station address information of each slave station following the Set command in the order of connection in the network. .
[0013]
The station B that has received the station address setting frame 103 (Set, # 1, # 2,..., #N) from the master station A recognizes that this frame is a station address setting frame from the Set command in the frame. . Then, the station address information # 1 following the Set command is fetched as the own station address and simultaneously deleted from the frame, and the station address setting frame 103 (Set, # 2,..., #N) is transmitted to the downstream station. To do. Then, the station address is set based on the station address information # 1. When the next slave station C receives the frame (Set, # 2,..., #N) 3 transmitted from the slave station B and determines that this frame is a station address setting frame from the top Set command, Similarly to B, the station address information # 2 following the Set command of the received frame is taken as the own station address and simultaneously deleted from the frame, and the station address setting frame (Set, # 3,..., #N) 3 is sent to the downstream station, and the station address is set based on the station address information # 2. Similarly, the slave stations D to N capture the station address information subsequent to the Set command from the received station address setting frame 103 as the address information of the own station, and simultaneously delete it from the frame and transmit it to the downstream station. The station address is set based on the station address information entered.
[0014]
In the station address setting frame 103 transmitted by the master station A by the above operation, the station address information # 1 to #n is deleted in each of the slave stations B to N, and only the Set command is made through the ring coupled network 101. And come back to master station A. When the master station A receives the station address setting frame 103 including only the Set command, the slave stations B to N capture the station address information, and confirm that the station addresses are set to the slave stations B to N. To do. Each slave station B to N sets a station address in its own station based on the captured station address information (# 1 to #n).
[0015]
In this way, the station address is automatically set to each slave station by exchanging frame data on the network 101.
[0016]
[Problems to be solved by the invention]
In the automatic address setting according to the conventional method shown in FIGS. 7 and 8, the slave station transmits the Req frame 102 with its own station configuration information IDb added, and then transmits and receives the station address setting frame 103 to transmit the station address. If the slave station is dropped or a new station joins the network 101 before the setting is completed, the station address is set incorrectly, which causes a system failure. .
[0017]
In FIG. 9, the station C participates in the network 101 after the transmitted Req frame 102 returns to the master station A until the station address setting frame 103 is transmitted and the station address setting is completed. An example is shown.
[0018]
In the case of FIG. 9, the station address information # 2 that should originally be used for setting the station D due to the participation of the station C is taken into the station C, and the station addresses after the downstream station D are one by one. It will be set off. Also, the station N does not have the assigned station address information left in the station address setting frame 103 and cannot set the station address.
[0019]
In contrast to FIG. 9, FIG. 10 transmits a station address setting frame 103 after the transmitted Req frame 102 returns to the master station A once before the station address setting frame 103 is completed. This is an example when C is dropped from the network 101. Also in this case, since the station C has dropped out, the station address information # 2 that should have been used for the setting of the station C is used for the setting of the station D, and is set one by one at the subsequent downstream stations. Station address information #n is left in a surplus state.
[0020]
In consideration of the above-described problems, the present invention provides a ring-coupled network capable of correctly performing automatic address setting even when there is a change in the network configuration during address setting, and an information transmission apparatus serving as a station thereof. Objective.
[0021]
[Means for Solving the Problems]
As means for solving the above-mentioned problems, the ring coupled network according to claim 1 of the present invention is premised on having a master station and a slave station.
[0022]
The master station according to claim 1 comprises information request frame transmitting means, station address generating means, and station address setting frame generating means. The information request frame transmitting means generates an information request frame for requesting the station connection configuration information from the slave station, and transmits the information request frame to the downstream station of the network. The station address generation means generates station address information for the slave station from the information request frame transmitted from the information request frame transmission means and returned around the network. The station address setting frame generating means generates a station address setting frame including the station address information and transmits the station address setting frame to a downstream station of the network.
[0023]
The slave station of claim 1 comprises a transmission storage means, an information request frame processing means, a station address setting frame processing means, and a station address setting means. The transmission storage means stores that the local station configuration information has been transmitted. When the frame received from the upstream station of the network is the information request frame, the information request frame processing means adds the local station configuration information to the information request frame and transmits the frame to the downstream station of the network, and the local station configuration information Is stored in the transmission storage means. The station address setting frame processing means, if the frame received from the upstream station of the network is the station address setting frame, if the information indicating that the station connection configuration has been transmitted is stored in the transmission storage means, the station address The station address information is acquired from the position corresponding to the own station in the setting frame, and the station address setting frame is transmitted to the downstream station of the network. The station address setting means sets the station address of the own station based on the station address information acquired by the station address setting frame processing means.
[0024]
According to the first aspect of the present invention, each slave station checks the transmission storage means whether or not it has transmitted its own station configuration information when receiving the station address setting frame, so that the station address is set during transmission. The station address is not set when not transmitted.
[0025]
The ring-coupled network system according to claim 2 of the present invention is premised on having a master station and a slave station.
The master station of claim 2 comprises information request frame transmission means, station address generation means, and station address setting frame generation means. The information request frame transmitting means generates an information request frame for requesting the station connection configuration information from the slave station, and transmits the information request frame to the downstream station of the network. The station address generation means obtains a station address for the slave station and position information of the slave station from the information request frame transmitted from the information request frame transmission means and returned through the network. The station address setting frame generating means generates a station address setting frame for storing the station address and the position information of the slave station to which the station address information corresponds, and transmits the frame to the downstream station of the network.
[0026]
Further, each slave station comprises information request frame processing means, station address setting frame processing means and station address setting means. When the frame received from the upstream station of the network is the information request frame, the information request frame processing means recognizes the position of the local station on the network from the information in the information request frame, and also includes the information request frame. It adds its own station configuration information and transmits it to the downstream station of the network. When the frame received from the upstream station of the network is the station address setting frame, the station address setting frame processing means sets the position information matching the position recognized by the information request frame processing means in the station address setting frame. The corresponding station address is acquired, and the station address setting frame is transmitted to the downstream station of the network. The station address setting means sets the station address of the own station based on the station address information acquired by the station address setting frame processing means.
[0027]
According to the second aspect of the present invention, in each slave station, when the station address setting frame is received, the position information that matches the position on the network of the local station recognized by the information request frame processing means when the information request frame is received The station address corresponding to is acquired and the station address is set.
[0028]
The ring-coupled network system according to claim 3 of the present invention is premised on having a master station and a slave station.
The master station of claim 3 comprises information request frame transmission means, station address generation means, and station address setting frame generation means.
[0029]
The information request frame transmitting means generates an information request frame for requesting the station connection configuration information from the slave station, and transmits the information request frame to the downstream station of the network. The station address generation means recognizes the connection state of the slave station on the network from the frame returned by the slave station in response to the information request frame, and generates station address information for the slave station. The station address setting frame generating means stores the station address in association with identification information that can uniquely identify the slave station, generates a station address setting frame, and transmits the station address setting frame to a downstream station of the network. To do.
[0030]
The slave station further comprises information request frame processing means, station address setting frame processing means and station address setting means.
When the frame received from the upstream station of the network is the information request frame, the information request frame processing means adds the local station configuration information in association with the identification information to the information request frame and transmits it to the downstream station of the network. To do. The station address setting frame processing means obtains a station address stored in association with its own identification information in the address setting frame when the frame received from the upstream station of the network is the station address setting frame. The station address setting frame is transmitted to the downstream station of the network. The station address setting means sets the station address of the own station based on the station address information acquired by the station address setting frame processing means.
[0031]
According to the third aspect of the present invention, at each slave station, when a station address setting frame is received, a station address stored in association with its own identification information in the address setting frame is set.
[0032]
According to a fourth aspect of the present invention, there is provided the ring coupled network system according to any one of the first to third aspects, wherein the slave station is configured to set the information request frame or the station address. When the frame is received, if the station address is already set in itself, the received information request frame or the station address setting frame is transmitted to the downstream station as it is.
[0033]
According to the fourth aspect of the present invention, a new station address setting process is not performed for a slave station for which a station address has already been set.
A ring coupled network system according to claim 5 of the present invention is the ring coupled network system according to any one of claims 1 to 4, wherein the master station is set for the slave station. A station address read frame transmitting means for generating a station address read frame requesting a station address to be transmitted, and transmitting the station address read frame to a downstream station of the network, and the station address read frame means transmitting, and making a round of the network And a station address check means for checking whether the station address is correctly set in the slave station from the station address read frame returned.
[0034]
According to the fifth aspect of the present invention, the station address set in the slave station on the network can be checked.
Further, in the ring coupled network system according to claim 5 of the present invention, in the ring coupled network system according to claim 5, when the station address is not set correctly as a result of the check by the checking means, The station address setting frame generating means transmits the station address setting frame to the downstream station again.
[0035]
According to the invention of claim 6, when there is a slave station whose station address is not set correctly, the station address can be reset.
An information transmission apparatus which is one station on the ring-coupled network system according to claim 6 of the present invention receives transmission storage means for storing that its own station configuration information has been transmitted and received from an upstream station of the network. When the received frame is an information request frame requesting station connection configuration information, the local station configuration information is added to the information request frame and transmitted to the downstream station of the network and the local station configuration information is transmitted. When the information request frame processing means stored in the transmission storage means and the frame received from the upstream station of the network are the station address setting frame for setting the station address, the information on the station connection configuration is transmitted to the transmission storage means. Is stored in the station address setting frame, the station address information is acquired from the corresponding position in the station address setting frame. A station address setting frame processing means for transmitting a constant frame to the downstream stations of the network, and a station address setting means for setting the station address of the own station based on the station address information the station address setting frame processing unit has acquired,
It is characterized by providing.
[0036]
According to the seventh aspect of the invention, since the transmission storage means is checked to see if the local station configuration information has been transmitted when the station address setting frame is received, the station address is set during transmission, and when not transmitted The station address is not set.
[0037]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram illustrating an operation example in a network according to the first embodiment.
[0038]
In the configuration of FIG. 1, an arbitrary number of stations A to N are connected on the ring-coupled network 1, and the station A is a master station and the stations B to N are slave stations. It is assumed that no station address has been set for the stations B to N and that the station C has not joined the network 1. The master station in each embodiment is a station that manages address setting, and is not necessarily the same as the master station that manages other networks. In FIG. 1, the arrow on the ring-coupled network 1 indicates the direction in which the frame data flows. The slave station closest to the master station A on the network 1 is the station B, the next is the station C,. .., And the station that is most downstream is referred to as station N. Since the network 1 is a ring-coupled network, the output from the most downstream slave station N is input to the master station A.
[0039]
In the first embodiment, each of the slave stations B to N stores storage means such as a flag or the like that stores whether or not the station configuration information is added to the Req frame and transmitted to the downstream station. Each is equipped. This flag is initially set to “0” and set to “1” after transmitting its own station configuration information. Whether each slave station has transmitted its own station configuration information to the master station A by checking the state of this flag. Can be confirmed.
[0040]
When performing address setting, in the first embodiment, as in the conventional method shown in FIG. 7, first, the master station A first requests a Req frame for requesting a station connection configuration to each of the slave stations B to N on the network 1. 2 is transmitted. This Req frame 2 has a configuration having only a Req command (Req) at the head, similarly to the Req frame 102 of FIG. In the description of each embodiment, the part of the frame configuration that is not directly related to the gist of the present invention, such as control data, is omitted. In order to simplify the explanation, the data in the frame transmitted and received between the stations is only the minimum necessary for the present invention.
[0041]
When each of the slave stations B to N receives the Req frame 2, it adds its own station configuration information ID to the end of the Req frame 2 and sequentially transmits it to the downstream stations. At this time, each of the slave stations B to N sets the flag from “0” to “1” in order to store that the Req frame 2 is transmitted with its own station configuration information added. Here, the local station configuration information added to the Req frame 2 is information indicating the type and model of the slave station. For example, when a process input / output device is connected to the station, the device is connected to an analog input, an analog output, This is information indicating whether it is a digital input or a digital output, and its data width.
[0042]
When this Req frame 2 circulates with the stations B, D,..., N and returns to the master station A through the network 1, all of the Req frame 2 connected to the setwork 1 The local station configuration information of the slave stations is stored in the order of connection. The master station A determines the slave station (B, D,..., N) on the network 1 from its own station configuration information (IDb, IDd,..., IDn) and its connection order in the Req frame 2. Recognize existence and connection order. Based on the information from the Req frame 2, the master station A determines the station addresses of the slave stations B to N on the network 1 as in the conventional method. For determining the station address, for example, station B is determined as # 1 and station D is determined as # 2 in the order of connection on the network so that the same station address is not duplicated in a plurality of stations. It is determined based on the obtained local station configuration information. Then, the master station A transmits a station address setting frame 3 storing station address information including the station address to the downstream station.
[0043]
This station address setting frame 3 is the same as the station address setting frame 103 in FIG. 7, and a Set command indicating that it is a station address setting frame at the head, followed by a station used for setting the station addresses of the slave stations B to N. The address information # 1 to # n-1 are included. The station address information includes station address information # 1 of station B next to the Set command, then station address information # 2 of station D, and the station address information of each slave station following the Set command. 2 in the order of connection in the configuration of the network 1 at the time of transmission.
[0044]
When each slave station receives this station address setting frame 3, it checks its own flag. If “1” is set, the station address information following the Set command is received from the station address setting frame 3. At the same time as the address information, it is deleted from the frame and transmitted to the downstream station. Then, the station address is set based on the fetched station address information. A station whose flag is set to “0” relays the station address setting frame 3 as it is and transmits it to the downstream station.
[0045]
In the example of FIG. 1, it is assumed that the station C newly joins between the stations B and D after the Req frame 2 is transmitted from the station B until the station address setting frame 3 is transmitted. The station B that has received the station address setting frame 3 (Set, # 1, # 2,..., #N) from the master station A recognizes that this frame is a station address setting frame from the Set command in the frame. . Next, when the station B checks its own flag, since the station B sends its own station configuration information to the master station A together with the Req frame 2, “1” is set in the flag. Therefore, the station B takes in the station address information # 1 following the Set command in the station address setting frame 3 and simultaneously deletes it from the frame, and the station address setting frame 3 (Set, # 2,..., #N) To the downstream station. Then, the station address of the own station is set from the station address information # 1 fetched from the station address setting frame 3, and the flag is reset to “0”.
[0046]
When the next slave station C receives the frame (Set, # 2,..., #N) 3 transmitted by the slave station B and determines that this frame is a station address setting frame from the first Set command, Check self flag. Since the station C has newly joined the network 1, since its own station configuration information is not added to the Req frame 2 and transmitted to the master station A, the flag is set to “0”. Therefore, the station C does not set the station address, and flows the station address setting frame 3 as it is to the downstream station.
[0047]
When the next slave station D receives the frame (Req, # 2,..., #N) 3 transmitted by the slave station C and determines that this frame is a station address setting frame from the first Set command, Check the flag. Since the flag of the station D is set to “1”, as in the case of the station B, the station address information # 2 following the Set command of the received frame is fetched as its own address and simultaneously deleted from the frame. The station address setting frame (Set, # 3,..., #N) 3 is sent to the downstream station. The station address is set and the flag is reset. Similarly, the slave stations D to N check their own flags when receiving the station address setting frame 3, and since “1” is set, the station address information following the Set command from the received station address setting frame 3 At the same time as the address information of the local station is deleted from the frame and transmitted to the downstream station.
[0048]
FIG. 2 is a processing flow in each slave station in the first embodiment.
In FIG. 2, the slave station that has joined the network and started to start by turning on the power or the like enters a reception wait state as step S1 when the initialization process is completed, and waits for a frame to be transmitted from the network. When receiving the frame, the slave station determines the type of frame from the command at the head of the received frame (step S2). As a result, if the received frame is a Req frame, its own station configuration information is added to the end of the frame at step S3, and it is sent to the downstream station. At step S4, a flag is set to “1”. Then, the process proceeds to step S1 and again shifts to a reception waiting state.
[0049]
If the received frame is a station address setting frame in step S2, it is next determined in step S5 whether or not its own flag is set to "1". If the flag is set to “1” (step S5, Yes), the station address information in the received frame is fetched as the address of the own station as step S6, and the frame from which the station address information is deleted is set as step S7. Relay to downstream station. In step S8, the own flag is reset from "1" to "0", and the station address setting process ends. If the flag is not set to “1” in step S5 (step S5, No), the station address setting frame is relayed to the downstream station as it is (step S9), and the station address setting process is terminated.
[0050]
Thus, according to the first embodiment, even if there is a station that newly joins the network in the middle of the station address setting process, the station address is not set for the station, so for other stations, Normal station address is set.
[0051]
Next, a second embodiment will be described.
In the second embodiment, each slave station counts the number of local station configuration information added to the received Req frame, and the station number information indicates which station is connected to the master station from the master station. Storage means such as a memory and a register for storing are provided. The master station determines the station address of each slave station from the Req frame that has made a round, and generates a station address setting frame. In this station address setting frame, in addition to the station address information, the connection order is stored as position information. Send. The slave station that has received the station address setting frame compares the position information in the frame with the station number information stored in its own station, and if they match, the corresponding station number information is addressed to itself. Is recognized and the station number information is taken in.
[0052]
FIG. 3 is a diagram illustrating an operation example in the network according to the second embodiment.
FIG. 3A shows a configuration in which the master station A and slave stations B to N are connected to the ring-coupled network 11 and the Req frame 12 is transmitted from the station B as in the example of the first embodiment shown in FIG. An example is shown in which station C newly joins between stations B and D between the transmission and the transmission of station address setting frame 13.
[0053]
When performing address setting, in the second embodiment, as in the first embodiment, first, the master station A transmits a Req frame 12 for requesting a station connection configuration to each of the slave stations B to N on the network 1. . This Req frame 12 has a configuration having only a Req command (Req) at the head, similar to the Req frame 2 of FIG.
[0054]
When the Req frame 12 is received, each of the slave stations B to N adds its own station configuration information ID to the end of the Req frame 12 and sequentially transmits it to downstream stations. At this time, the slave stations B to N count the number of the own station configuration information added to the received Req frame 12, and determine which station the master station A is connected to from the master station A on the network 11. recognize. This is stored in the storage means such as a register or memory as station number information. In the case of FIG. 3A, the station B stores “1” and the station D stores “2” as station number information when the Req frame 12 is received. Each slave station stores “0” as the initial value of the station number information.
[0055]
When this Req frame 12 circulates with the stations B, D,..., N and makes a round of the network 11 and returns to the master station A, all the Req frames 12 connected to the network 1 are included in the Req frame 12. The slave station's own station configuration information is stored in the order of connection. The master station A recognizes the existence of the slave stations (B, D,..., N) on the network 11 and their connection order from the local station configuration information (IDb, IDd,..., IDn) and their connection order. Based on these pieces of information, the station addresses of the slave stations B to N are determined. Then, the master station A uses the station address setting frame as station address information # 1 to # n-1 used for address setting together with the station address of the position information of each station in the network 11 obtained from the connection order in the Req frame 12. 13 is stored and transmitted.
[0056]
A configuration example of the station address setting frame 13 is shown in FIG. In this frame configuration, following the Set command indicating the station address setting frame 13, the station address set to the station B as the station address information # 1 for the slave station B and the position information “1” of the B station are The station address set in the station D and the position information “2” are stored as the station address information # 2, and the station address information up to the station N is stored in the order of connection.
[0057]
When each of the slave stations B to N receives this station address setting frame 13, it extracts the station address information that matches the position information in the frame and the station number information stored in its storage means, and from the station address setting frame 13. Delete and send to downstream station. Then, the own station address is set based on the extracted station address information. In FIG. 2A, for example, the station B stores “1” as the station number information. Therefore, the station address information # in which “1” is set as the position information in the received station address setting frame 13 is stored. 1 is taken out and deleted, and then sent to the downstream station. The station address in the station address information # 1 is set as the address of the own station.
[0058]
In addition, since the station C that has joined in the middle is set to the initial value “0” as the station number information, the received station address setting frame 13 has no corresponding position information, and the received frame is directly sent to the downstream station. The station address is not set. Alternatively, in FIG. 2A, even if one of the slave stations on the network 11 drops out of the network 11 after transmitting the Req frame 12 and before receiving the station address setting frame 13, the remaining slave stations Since station address information having position information that matches the stored station number information is read from the station address setting frame 13, each slave station can set the correct station address set by itself for the master station A. .
[0059]
As described above, according to the second embodiment, even if the network configuration is changed during the station address setting process, each slave station stores the station number information stored in itself and the station address setting frame. A normal station address can be set by comparing the position information.
[0060]
In the description of the second embodiment, each slave station extracts the station address information from the station address setting frame 13 and deletes it at the same time. As a result, the master station A can recognize whether or not the network configuration has changed from the station address setting frame returned in a round. However, the second embodiment is not limited to this, and the station address information The station address setting frame 13 may be transmitted to the downstream station without being deleted at the time of extraction.
[0061]
Next, a third embodiment will be described.
In the third embodiment, each slave station is set with information (hereinafter, identification information) that can uniquely identify the own station from other stations. When each slave station receives the Req frame, it adds this identification information together with its own station configuration information and transmits it to the downstream station. The master station stores the station address information in association with this identification information in the station address setting frame and transmits it. Each slave station takes in the station address information corresponding to the identification information of the own station in the station address setting frame.
[0062]
FIG. 4 is a diagram illustrating an operation example in the network according to the third embodiment.
In the example of FIG. 4, stations A to N are connected to the ring-coupled network 21, of which station A is a master station and stations B to N are slave stations. For each slave B to N, for example, identification information b to n for uniquely identifying each station determined from a manufacturing serial number or the like is set in advance.
[0063]
The station address is set by the master station A transmitting the Req frame 22 from the network 21 to the slave stations B to N as before. The Req frame 22 is first received by the station B connected next to the station A. The station B adds its own identification information b together with its own station configuration information to the reception frame 22 and transmits it to the downstream station. Thereafter, the stations C to N add their own station identification information c to n together with their own station configuration information in the same way as the station B, and transmit them to downstream stations. The Req frame 22 returns to the master station A through the ring coupling type network 22. As shown in FIG. 4B, the frame configuration at this time is such that the identification information b of the station B and the local station configuration information of the station B are associated as the station address information IDb added by the station B following the Req command. The station address information IDc to IDn of the stations C to N follows.
[0064]
Next, the master station A determines the station addresses of the slave stations B to N from the information in the Req frame 22, and stores them in the station address setting frame 23 in association with the identification information b to n of each station. Go. In the configuration example of the station address setting frame 23, as shown in FIG. 4C, following the Set command indicating the station address setting frame 23, the identification information b of the station B and the station address set in the station B are Stored as station address information # 1 for the station B, the station address information # 2 to #n of the stations C to N are stored in the order of connection.
[0065]
When the master station A transmits the station address setting frame 23, it sequentially receives the stations B, C,..., And if the reception frame 23 has its own identification information, the station address information is taken in and the frame is received. To be transmitted to the downstream station. This station address is set in the own station. Even if there is a station that has joined the network 21 on the way, the same identification information as that station is not included in the station address setting frame 23, so the station address is not set for the station, and the station address setting frame 23 is used as it is. Send to downstream station.
[0066]
Thus, according to the third embodiment, each slave station sets the station address stored in association with the identification information of its own station in the station address setting frame 23 as its own station address. Even if the network configuration is changed during the address setting process, normal station address setting can be performed.
[0067]
In the description of the third embodiment, each slave station deletes the station address information from the station address setting frame 23 and deletes it at the same time. However, the third embodiment is not limited to this, and the station address The station address setting frame 23 may be transmitted to the downstream station without being deleted at the time of information extraction.
[0068]
Next, a fourth embodiment will be described.
In the examples so far, when the station address setting process is performed, station addresses have not yet been set for all slave stations on the network. However, in the fourth embodiment, it is assumed that station addresses are set for the remaining slave stations when station addresses are already set for some slave stations on the network.
[0069]
FIG. 5 is a diagram illustrating an operation example in the network according to the fourth embodiment.
In FIG. 5, stations A to N are connected to a ring-coupled network 31, and station A is a master station and stations B to N are slave stations. Further, it is assumed that a station address has already been set for the station C among the slave stations B to N and has not been set for the other slave stations. In the following description, the operations of the master station A and the slave stations B and D to N whose station addresses are not set are the operations in the first to third embodiments described above, or FIG. 7 and FIG. Any of the operations described in the above may be used.
[0070]
As in the previous embodiments, when the master station A transmits the Req frame 32, the slave stations B and D to N whose station addresses are not set among the slave stations B to N that have received the Req frame 32 are their own station configurations. Add information and send to downstream station. However, when the station C to which the station address has already been set receives the Req frame 32, the station C relays the frame to the downstream station as it is.
[0071]
When the Req frame 32 goes around the network 31 and returns to the master station A, the master station A transmits a station address setting frame 33 next. When the slave station B, D to N, whose station address is not set, receives this, the station address information corresponding to itself is taken from the received frame, deleted, and transmitted to the downstream station. Based on this, the station address is set. Even if the station C in which the station address has already been set receives the station address setting frame 33, when the station address setting frame 33 is received, the frame is directly relayed to the downstream station as in the case of the Req frame 32. .
[0072]
As described above, in the fourth embodiment, normal station address setting can be performed even if a station having a station address set and a station not set exist on the network. In addition, since the station address is already set in the station where the station address has already been set, the station address of the station in which the station address has already been set is not destroyed even if the network configuration is changed.
[0073]
Next, a fifth embodiment will be described.
In the fifth embodiment, after the station address is set in each station by the processing in the first to fourth embodiments or the processing in FIGS. 7 and 8, the master station is set in each slave station. The address is checked, and if it is not set correctly, the station address is reset.
[0074]
FIG. 6 is a diagram illustrating an operation example in the network according to the fifth embodiment.
In FIG. 6, stations A to N are connected to a ring-coupled network 41, where station A is a master station and stations B to N are slave stations. It is assumed that the station address has already been set for each slave station by the station address setting frame.
[0075]
After the station address setting of the slave stations B to N on the network 41 is completed, the master station A transmits a station address read frame 42 that requests each slave station to transmit a station address. This station address read frame 42 is configured to have only a ReqA command (ReqA) indicating that it is a station address read frame at the head when transmitted from the master station A.
[0076]
When this station address read frame 42 is received, each slave station B to N adds its own station address ADb to ADn to the end of the received frame and transmits it to the downstream station. When returning to the master station A through the network 42, the station address read frame 42 stores the station addresses ADb to ADn of each slave station in the order of connection. The master station A checks whether the station address is set as intended by each slave station from the station address in the station address read frame 42 and the connection order thereof. If the station address is not normally set, the station address is reset or the network is brought down as a fatal failure (serious failure) due to hardware factors.
[0077]
When resetting the station address, first, the station address setting frame 43 storing the normal station address is transmitted again on the network 41, and the slave stations B to N are again set for the station. Then, after the setting is completed, the station address read frame 42 is transmitted again to check whether the address setting is completed normally. Then, if normal station address setting cannot be performed even if the station address resetting and checking processes are repeated a predetermined number of times, the network is brought down because a serious failure has occurred.
[0078]
As described above, in the fifth embodiment, the master station can check whether the station address setting for each slave station is set as intended. If it is not set correctly, the address station is reset or the network is brought down, so that the system as a whole does not cause a failure.
[0079]
【The invention's effect】
According to the present invention, even if there is a change in the network configuration such as addition or deletion of a station during the address setting process, it is possible to prevent inconsistencies such as a station address being shifted and set normally. Station address can be set.
[0080]
Even if there is a station for which a station address has already been set, normal station address setting can be performed, and the station address of a station for which a station address has already been set is not destroyed. Furthermore, it is possible to check whether the station address is set normally, and it does not cause a failure in the entire system.
[0081]
If the station address is not set normally, it can be reset.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an operation example in a network according to a first embodiment.
FIG. 2 is a diagram showing a processing flow in each slave station in the first embodiment.
FIG. 3 is a diagram illustrating an operation example in a network according to a second embodiment.
FIG. 4 is a diagram illustrating an operation example in a network according to a third embodiment.
FIG. 5 is a diagram illustrating an operation example in a network according to a fourth embodiment.
FIG. 6 is a diagram illustrating an operation example in a network according to a fifth embodiment.
FIG. 7 is a diagram showing an operation in a network when a conventional station connection configuration request is made.
FIG. 8 is a diagram illustrating an operation in a network when a conventional station address is set.
FIG. 9 is a diagram illustrating an example in which the station C has joined the network before the station address setting frame is transmitted and the setting of the station address is completed.
FIG. 10 is a diagram illustrating an example of a case where a station C is dropped from the network before a station address setting frame is transmitted and station address setting is completed.
[Explanation of symbols]
1, 11, 21, 31, 41, 101 Ring coupled network
2, 12, 22, 32, 102 Req frames
3, 13, 23, 33, 43, 103 Station address setting frame
42 Address read frame

Claims (7)

マスタ局とスレーブ局を有するリング結合型ネットワークシステムにおいて、
前記マスタ局は、
前記スレーブ局に対して局接続構成の情報を要求する情報要求フレームを生成し、該情報要求フレームをネットワークの下流局へ送信する情報要求フレーム送信手段と、
前記情報要求フレーム送信手段が送信し、前記ネットワークを一巡して戻ってきた前記情報要求フレームから、スレーブ局に対する局アドレス情報を生成する局アドレス生成手段と、
前記局アドレス情報を含む局アドレス設定フレームを生成し、該局アドレス設定フレームをネットワークの下流局へ送信する局アドレス設定フレーム生成手段とを備え、
前記スレーブ局は、
自局構成情報を送信したことを記憶する送信記憶手段と、
ネットワークの上流局より受信したフレームが前記情報要求フレームであるとき、該情報要求フレームに自局構成情報を付加してネットワークの下流局へ送信すると共に該自局構成情報を送信したことを前記送信記憶手段に記憶する情報要求フレーム処理手段と、
ネットワークの上流局より受信したフレームが前記局アドレス設定フレームであるとき、前記送信記憶手段に前記局接続構成の情報を送信したことが記憶されていれば該局アドレス設定フレーム内の自局が対応する位置より前記局アドレス情報を取得し、該局アドレス設定フレームをネットワークの下流局へ送信する局アドレス設定フレーム処理手段と、
前記局アドレス設定フレーム処理手段が取得した前記局アドレス情報に基づき自局の局アドレスを設定する局アドレス設定手段と、
を備えることを特徴とするリング結合型ネットワークシステム。
In a ring coupled network system having a master station and a slave station,
The master station
An information request frame transmitting means for generating an information request frame for requesting station connection configuration information to the slave station, and transmitting the information request frame to a downstream station of the network;
Station address generation means for generating station address information for a slave station from the information request frame transmitted by the information request frame transmission means and returned around the network;
A station address setting frame generating means for generating a station address setting frame including the station address information and transmitting the station address setting frame to a downstream station of the network;
The slave station
Transmission storage means for storing that the local station configuration information has been transmitted;
When the frame received from the upstream station of the network is the information request frame, the local station configuration information is added to the information request frame and transmitted to the downstream station of the network, and the transmission of the local station configuration information is transmitted. Information request frame processing means stored in the storage means;
When the frame received from the upstream station of the network is the station address setting frame, the local station in the station address setting frame corresponds if the transmission storage means stores the information of the station connection configuration. Station address setting frame processing means for acquiring the station address information from a position to be transmitted and transmitting the station address setting frame to a downstream station of the network;
Station address setting means for setting the station address of the own station based on the station address information acquired by the station address setting frame processing means;
A ring-coupled network system comprising:
マスタ局とスレーブ局を有するリング結合型ネットワークシステムにおいて、
前記マスタ局は、
前記スレーブ局に対して局接続構成の情報を要求する情報要求フレームを生成し、該情報要求フレームをネットワークの下流局へ送信する情報要求フレーム送信手段と、
前記情報要求フレーム送信手段が送信し前記ネットワークを一巡して戻ってきた前記情報要求フレームから、スレーブ局に対する局アドレス及びそのスレーブ局の位置情報を求める局アドレス生成手段と、
前記局アドレスと該局アドレス情報が対応するスレーブ局の前記位置情報とを対応させて格納する局アドレス設定フレームを生成し、ネットワークの下流局へ送信する局アドレス設定フレーム生成手段とを備え、
前記スレーブ局は、
ネットワークの上流局より受信したフレームが前記情報要求フレームであるとき、該情報要求フレーム内の情報から自局のネットワーク上での位置を認識し、また該情報要求フレームに自局構成情報を付加してネットワークの下流局へ送信する情報要求フレーム処理手段と、
ネットワークの上流局より受信したフレームが前記局アドレス設定フレームであるとき、該局アドレス設定フレーム内の、前記情報要求フレーム処理手段が認識した位置と一致する位置情報に対応する局アドレスを取得し、該局アドレス設定フレームをネットワークの下流局へ送信する局アドレス設定フレーム処理手段と、
前記局アドレス設定フレーム処理手段が取得した前記局アドレス情報に基づき自局の局アドレスを設定する局アドレス設定手段と、
を備えることを特徴とするリング結合型ネットワークシステム。
In a ring coupled network system having a master station and a slave station,
The master station
An information request frame transmitting means for generating an information request frame for requesting station connection configuration information to the slave station, and transmitting the information request frame to a downstream station of the network;
Station address generation means for obtaining a station address for the slave station and position information of the slave station from the information request frame transmitted by the information request frame transmission means and returned around the network;
A station address setting frame generating means for generating a station address setting frame for storing the station address and the position information of the slave station corresponding to the station address information in association with each other, and transmitting to a downstream station of the network,
The slave station
When the frame received from the upstream station of the network is the information request frame, the position on the network of the local station is recognized from the information in the information request frame, and the local station configuration information is added to the information request frame. Information request frame processing means for transmitting to a downstream station of the network,
When the frame received from the upstream station of the network is the station address setting frame, obtain a station address corresponding to the position information matching the position recognized by the information request frame processing means in the station address setting frame, Station address setting frame processing means for transmitting the station address setting frame to a downstream station of the network;
Station address setting means for setting the station address of the own station based on the station address information acquired by the station address setting frame processing means;
A ring-coupled network system comprising:
マスタ局とスレーブ局を有するリング結合型ネットワークシステムにおいて、
前記マスタ局は、
前記スレーブ局に対して局接続構成の情報を要求する情報要求フレームを生成し、該情報要求フレームをネットワークの下流局へ送信する情報要求フレーム送信手段と、
前記情報要求フレームに対してスレーブ局が返信するフレームからネットワーク上のスレーブ局の接続状態を認識し、スレーブ局に対する局アドレス情報を生成する局アドレス生成手段と、
前記局アドレスを、前記スレーブ局を一意に識別できる識別情報と対応させて格納して局アドレス設定フレームを生成し、該局アドレス設定フレームをネットワークの下流局へ送信する局アドレス設定フレーム生成手段とを備え、
前記スレーブ局は、
ネットワークの上流局より受信したフレームが前記情報要求フレームであるとき、該情報要求フレームに自局構成情報を前記識別情報と対応させて付加してネットワークの下流局へ送信する情報要求フレーム処理手段と、
ネットワークの上流局より受信したフレームが前記局アドレス設定フレームであるとき、該アドレス設定フレーム内の、自己の識別情報と対応させて格納されている局アドレスを取得し、該局アドレス設定フレームをネットワークの下流局へ送信する局アドレス設定フレーム処理手段と、
前記局アドレス設定フレーム処理手段が取得した前記局アドレス情報に基づき自局の局アドレスを設定する局アドレス設定手段と、
を備えることを特徴とするリング結合型ネットワークシステム。
In a ring coupled network system having a master station and a slave station,
The master station
An information request frame transmitting means for generating an information request frame for requesting station connection configuration information to the slave station, and transmitting the information request frame to a downstream station of the network;
A station address generating means for recognizing a connection state of the slave station on the network from a frame returned by the slave station in response to the information request frame, and generating station address information for the slave station;
Station address setting frame generating means for storing the station address in association with identification information capable of uniquely identifying the slave station, generating a station address setting frame, and transmitting the station address setting frame to a downstream station of the network; With
The slave station
An information request frame processing means for adding, when the frame received from the upstream station of the network is the information request frame, adding the local station configuration information in association with the identification information to the information request frame and transmitting it to the downstream station of the network; ,
When the frame received from the upstream station of the network is the station address setting frame, the station address stored in correspondence with the identification information in the address setting frame is acquired, and the station address setting frame is Station address setting frame processing means for transmitting to the downstream station of
Station address setting means for setting the station address of the own station based on the station address information acquired by the station address setting frame processing means;
A ring-coupled network system comprising:
前記スレーブ局は、前記情報要求フレーム若しくは局アドレス設定フレームを受信時、自己に既に局アドレスが設定されていれば、受信した情報要求フレーム若しくは局アドレス設定フレームをそのまま下流局へ送信することを特徴とする請求項1乃至3の何れか1項記載のリング結合型ネットワークシステム。When receiving the information request frame or the station address setting frame, the slave station transmits the received information request frame or the station address setting frame as it is to the downstream station if the station address has already been set. The ring coupling type network system according to any one of claims 1 to 3. 前記マスタ局は、
前記スレーブ局に対して設定されている局アドレスを要求する局アドレス読み出しフレームを生成し、該局アドレス読み出しフレームをネットワークの下流局へ送信する局アドレス読み出しフレーム送信手段と、
前記局アドレス読み出しフレーム手段が送信し、前記ネットワークを一巡して戻ってきた前記局アドレス読み出しフレームから、スレーブ局に局アドレスが正しく設定されたかどうかをチェックする局アドレスチェック手段を更に備えることを特徴とする請求項1乃至4の何れか1項記載のリング結合型ネットワークシステム。
The master station
A station address read frame transmitting means for generating a station address read frame for requesting a station address set for the slave station, and transmitting the station address read frame to a downstream station of the network;
The station address reading frame means further comprises a station address checking means for checking whether or not the station address is correctly set in the slave station from the station address reading frame transmitted and returned around the network. The ring coupling type network system according to any one of claims 1 to 4.
前記チェック手段によるチェックの結果、前記局アドレスが正しく設定されていない時、前記局アドレス設定フレーム生成手段は、再度局アドレス設定フレームを下流局へ送信することを特徴とする請求項5項記載のリング結合型ネットワークシステム。6. The station address setting frame generating means again transmits a station address setting frame to a downstream station when the station address is not set correctly as a result of checking by the checking means. Ring coupled network system. リング結合型ネットワークシステム上の1つの局となる情報伝送装置であって、
自局構成情報を送信したことを記憶する送信記憶手段と、
ネットワークの上流局より受信したフレームが局接続構成の情報を要求する情報要求フレームであるとき、該情報要求フレームに自局構成情報を付加してネットワークの下流局へ送信すると共に該自局構成情報を送信したことを前記送信記憶手段に記憶する情報要求フレーム処理手段と、
ネットワークの上流局より受信したフレームが局アドレスの設定を行う局アドレス設定フレームであるとき、前記送信記憶手段に前記局接続構成の情報を送信したことが記憶されていれば該局アドレス設定フレーム内の自局が対応する位置より前記局アドレス情報を取得し、該局アドレス設定フレームをネットワークの下流局へ送信する局アドレス設定フレーム処理手段と、
前記局アドレス設定フレーム処理手段が取得した前記局アドレス情報に基づき自局の局アドレスを設定する局アドレス設定手段と、
を備えることを特徴とする伝送装置。
An information transmission apparatus as one station on a ring-coupled network system,
Transmission storage means for storing that the local station configuration information has been transmitted;
When the frame received from the upstream station of the network is an information request frame requesting information on the station connection configuration, the local station configuration information is added to the information request frame and transmitted to the downstream station of the network, and the local station configuration information Information request frame processing means for storing in the transmission storage means,
When the frame received from the upstream station of the network is a station address setting frame for setting a station address, if the information indicating that the station connection configuration has been transmitted is stored in the transmission storage means, the station address setting frame Station address setting frame processing means for acquiring the station address information from a position corresponding to the own station and transmitting the station address setting frame to a downstream station of the network;
Station address setting means for setting the station address of the own station based on the station address information acquired by the station address setting frame processing means;
A transmission apparatus comprising:
JP08028199A 1999-03-24 1999-03-24 Ring coupled network system Expired - Lifetime JP3719039B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08028199A JP3719039B2 (en) 1999-03-24 1999-03-24 Ring coupled network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08028199A JP3719039B2 (en) 1999-03-24 1999-03-24 Ring coupled network system

Publications (2)

Publication Number Publication Date
JP2000278299A JP2000278299A (en) 2000-10-06
JP3719039B2 true JP3719039B2 (en) 2005-11-24

Family

ID=13713901

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08028199A Expired - Lifetime JP3719039B2 (en) 1999-03-24 1999-03-24 Ring coupled network system

Country Status (1)

Country Link
JP (1) JP3719039B2 (en)

Also Published As

Publication number Publication date
JP2000278299A (en) 2000-10-06

Similar Documents

Publication Publication Date Title
US4510492A (en) Message communication method and system
JP3307508B2 (en) Communication network configuration detection method
JP3857317B2 (en) Automatic negotiation progress monitor
JP2000307624A (en) Transmission information repeating system and its repeating device
JPH0666806B2 (en) Token ring transmission method
JPH03289738A (en) Address setting and filtering method for terminal housing circuit in packet exchange system
JP3719039B2 (en) Ring coupled network system
CN106535101B (en) Bluetooth communication method, system and wireless router
JPH10229533A (en) Image forming device, image forming system and image forming method
JP3837987B2 (en) Ring network system, information transmission apparatus, and address setting method thereof
JP2554302B2 (en) Ultra high speed ring network test system
US7317690B2 (en) Method of constructing network topology and interface circuit
US20020046272A1 (en) Central management system for peripheral apparatus
JP2763394B2 (en) Communication control device
JPH0329225B2 (en)
KR100259859B1 (en) An apparatu sending charging data using a couple of lan, method thereof and collection method
JPH04124933A (en) Sequential multi-address data verifying system
JPH0923245A (en) Inter-network connector
KR100629555B1 (en) Data transmission method between Service Management System and Wireless Information Service Center in intelligence network system
JPH04109792A (en) Automatic sales data collection system
JPH11284645A (en) Data transfer system for ring-shaped network
JP2851676B2 (en) Message notification confirmation method in ISDN
CN109831762A (en) The POS data means of communication, device, terminal device and system
JPS59207763A (en) Loop type full duplex communication system of data transmission line
JP2003153312A5 (en)

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050808

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050816

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050829

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080916

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090916

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090916

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20090916

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090916

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100916

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110916

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110916

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20110916

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110916

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120916

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120916

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130916

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term