JPH0675612A - Office number duplication testing method for programmable controller - Google Patents

Office number duplication testing method for programmable controller

Info

Publication number
JPH0675612A
JPH0675612A JP5077174A JP7717493A JPH0675612A JP H0675612 A JPH0675612 A JP H0675612A JP 5077174 A JP5077174 A JP 5077174A JP 7717493 A JP7717493 A JP 7717493A JP H0675612 A JPH0675612 A JP H0675612A
Authority
JP
Japan
Prior art keywords
station
slave
programmable controller
master
stations
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5077174A
Other languages
Japanese (ja)
Other versions
JP2790234B2 (en
Inventor
Mikio Takano
幹夫 高野
Akira Nagasawa
明 長沢
Masakatsu Nagase
正勝 長瀬
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP5077174A priority Critical patent/JP2790234B2/en
Publication of JPH0675612A publication Critical patent/JPH0675612A/en
Application granted granted Critical
Publication of JP2790234B2 publication Critical patent/JP2790234B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To prevent a malfunction due to the office number duplication of a data link system by securely testing the duplication or absence of the office number of the data link. CONSTITUTION:A master station sends a command frame to a station with a specified office number and the station receives the command frame, sets the gate of a line driver to 'H' and waits for a certain time, and sends a response frame and then sets the gate of the line driver to 'L' with the lapse of a certain time. If the office number is duplicate, the response is not received normally by the master station and a time-out state is entered; and then the master station sends a command frame to itself to efficiently detect whether the station (tested office number) is present or duplicate.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、バス型のトポロジー
によりデータリンクを構成する機能を有するプログラマ
ブルコントローラの局番重複テスト方法、および、プロ
グラマブルコントローラをバス伝送路形態のネットワー
クユニットを介してデータを通信するプログラマブルコ
ントローラ用ネットワークを用いたプログラマブルコン
トローラの局番重複テスト方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a station number duplication test method for a programmable controller having a function of forming a data link by a bus type topology, and a programmable controller for communicating data via a network unit in the form of a bus transmission path. To a programmable controller station number duplication test method using a programmable controller network.

【0002】[0002]

【従来の技術】図18は、データリンク機能を有するプ
ログラマブルコントローラのハードウェア構成を示すブ
ロック図である。図18において、1はデータリンクを
制御するリンク制御ユニットであり、1aはリンク制御
ユニット1を制御するCPU、1bはリンクデータを回
線から授受するための通信インターフェース(I/
F)、1cはリンク制御ユニット1のソフトウェアを格
納するマイクロROM、1dは回線から受信したリンク
データや回線へ送信するリンクデータ等を格納するRA
M、1eはシーケンス制御ユニット2とのインターフェ
ースのための2ポートRAMである。
2. Description of the Related Art FIG. 18 is a block diagram showing a hardware configuration of a programmable controller having a data link function. In FIG. 18, 1 is a link control unit that controls a data link, 1a is a CPU that controls the link control unit 1, and 1b is a communication interface (I / I) for transmitting and receiving link data from a line.
F) 1c is a micro ROM for storing the software of the link control unit 1 and 1d is an RA for storing the link data received from the line or the link data transmitted to the line.
M and 1e are 2-port RAMs for interfacing with the sequence control unit 2.

【0003】また、2はシーケンスプログラムおよび入
出力部を制御するシーケンス制御ユニットであり、2a
はシーケンス制御ユニット2を制御するCPU、2bは
シーケンス制御ユニット2のソフトウェアを格納するマ
イクロROM、2cはシーケンスプログラムでの演算結
果やその他の情報を一時的に格納するRAM、2dは入
出力部と入出力のON/OFF情報を交換するための入
出力インターフェース(I/F)、2eは周辺装置と情
報を交換するための周辺装置インターフェース(I/
F)、2fはシーケンスプログラムを格納するメモリで
ある。
Reference numeral 2 is a sequence control unit for controlling a sequence program and an input / output unit, and 2a
Is a CPU for controlling the sequence control unit 2, 2b is a micro ROM for storing the software of the sequence control unit 2, 2c is a RAM for temporarily storing the operation result of the sequence program and other information, 2d is an input / output unit An input / output interface (I / F) for exchanging input / output ON / OFF information, and a peripheral device interface (I / F) 2e for exchanging information with peripheral devices.
F) and 2f are memories for storing the sequence program.

【0004】図19は、図18に示した通信インターフ
ェース(I/F)1bの詳細な構成を示す回路図であ
り、図19において、3a,3bはデータ回線へ出力す
るためのラインドライバおよび、回線からデータを入力
するためのラインレシーバを示す。
FIG. 19 is a circuit diagram showing a detailed structure of the communication interface (I / F) 1b shown in FIG. 18. In FIG. 19, 3a and 3b are line drivers for outputting to a data line, and A line receiver for inputting data from the line is shown.

【0005】図20は、図18に示したデータリンク機
能を有するプログラマブルコントローラのデータリンク
システムの概略構成を示すブロック図であり、図20に
おいて、5a,5bの2局が誤って局番重複している例
を示している。
FIG. 20 is a block diagram showing a schematic configuration of a data link system of a programmable controller having the data link function shown in FIG. 18. In FIG. 20, two stations 5a and 5b are mistakenly duplicated in their station numbers. It shows an example.

【0006】また、図21は、図20に示した1局(マ
スタ局)4の処理動作を示すフローチャートであり、ま
た、図22は、図20に示した2局,4局(スレーブ
局)5a,5b,5cの処理動作を示すフローチャート
である。さらに、図23は、上記スレーブ局がマスタ局
からのコマンドフレームを同時に処理できたときの状態
を示すタイミングチャートであり、また、図24は、上
記スレーブ局がマスタ局からのコマンドフレームの処理
に時間差ができたときの状態を示すタイミングチャート
である。
FIG. 21 is a flow chart showing the processing operation of the 1 station (master station) 4 shown in FIG. 20, and FIG. 22 is the 2 station, 4 station (slave station) shown in FIG. It is a flow chart which shows processing operation of 5a, 5b, and 5c. Further, FIG. 23 is a timing chart showing a state in which the slave station can simultaneously process a command frame from the master station, and FIG. 24 shows the slave station in processing a command frame from the master station. It is a timing chart which shows a state when there is a time difference.

【0007】次に、上記図20に示したように構成され
たマスタ局4の処理動作について図21のフローチャー
トを参照し、スレーブ局5a,5bの処理動作について
図22のフローチャートを参照して説明する。
Next, the processing operation of the master station 4 configured as shown in FIG. 20 will be described with reference to the flowchart of FIG. 21, and the processing operation of the slave stations 5a and 5b will be described with reference to the flowchart of FIG. To do.

【0008】図21に示すように、マスタ局4は、デー
タを送信するためラインドライバ3aのゲートEを“H
(アクティブ)”に設定する(S115)。次に、スレ
ーブ局5a,5bにコマンドフレームを送信し(S11
6)、データ送信終了のためラインドライバ3aのゲー
トEを“L(インアクティブ)”に設定する(S11
7)。
As shown in FIG. 21, the master station 4 sets the gate E of the line driver 3a to "H" to transmit data.
(Active) ”(S115). Next, the command frame is transmitted to the slave stations 5a and 5b (S11).
6) The gate E of the line driver 3a is set to "L (inactive)" to end the data transmission (S11).
7).

【0009】次に、図22に示すように、スレーブ局5
a,5bは、コマンドフレームの受信が完了したと判断
すると(S122)、ラインドライバ3bのゲートEを
“H”に設定し(S123)、マスタ局に受信完了を知
らせるためのレスポンスフレームを送信する(S12
4)。その後、ラインドライバ3bのゲートを“L”に
設定する(S125)。しかし、スレーブ局5a,5b
の受信完了のタイミングが同じ(図23参照)か、異な
る(図24参照)かによって、マスタ局4の処理が異な
る。
Next, as shown in FIG. 22, the slave station 5
When a and 5b determine that the reception of the command frame is completed (S122), the gate E of the line driver 3b is set to "H" (S123), and a response frame for notifying the completion of reception to the master station is transmitted. (S12
4). Then, the gate of the line driver 3b is set to "L" (S125). However, slave stations 5a and 5b
The processing of the master station 4 is different depending on whether the reception completion timings are the same (see FIG. 23) or different (see FIG. 24).

【0010】ここで、スレーブ局5a,5bの受信完了
(S118)のタイミングが同時のときは、図23に示
すような処理になる。すなわち、スレーブ局5a,5b
は各々にゲートEを“H”に設定し、マスタ局4に対し
てレスポンスフレームを送信する。このとき、スレーブ
局が複数のため(5a,5b)、回線上で“H”の状態
の局(5a,5b)の出力が衝突してしまい、マスタ局
4はレスポンスフレームを正常に受信できず、受信待ち
タイムアップ(S119)となり、異常通信となる(S
121)。反対に、上記ステップ118において、スレ
ーブ局5a,5bの受信完了のタイミングが異なるとき
は、図24に示すような処理になる。すなわち、スレー
ブ局5aは5bより先に受信完了したため、レスポンス
フレームを送信する。スレーブ局5bは、5aより遅れ
てマスタ局4にレスポンスフレームを送信する。マスタ
局4は最初に送信したスレーブ局5aのレスポンスフレ
ームを受信し、スレーブ局との交信を正常に終わる(正
常通信する)ことができる(S120)。
Here, when the reception completion (S118) timings of the slave stations 5a and 5b are the same, the processing as shown in FIG. 23 is performed. That is, the slave stations 5a and 5b
Sets the gate E to "H" for each and sends a response frame to the master station 4. At this time, since there are a plurality of slave stations (5a, 5b), the outputs of the stations (5a, 5b) in the "H" state on the line collide, and the master station 4 cannot receive the response frame normally. , The waiting time is up (S119), and abnormal communication occurs (S
121). On the contrary, in step 118, when the reception completion timings of the slave stations 5a and 5b are different, the processing is as shown in FIG. That is, since the slave station 5a has completed the reception before 5b, it transmits the response frame. The slave station 5b transmits the response frame to the master station 4 later than 5a. The master station 4 can receive the response frame of the slave station 5a transmitted first, and normally complete the communication with the slave station (communicate normally) (S120).

【0011】その他、この発明に関連する参考技術文献
として、特開平2−230840号公報に開示されてい
る「ネットワーク・アドレスのテスト方法」、特開平2
−170637号公報に開示されている「通信局アドレ
ス自動設定方法」、特開平1−192241号公報に開
示されている「アドレス確認方式」、特開平2−290
347号公報に開示されている「ネットワークシステム
および重複アドレスのテスト方法」、特開平1−228
345号公報に開示されている「局アドレスチェック処
理方法」、特開昭61−287349号公報に開示され
ている「アドレスの重複検出方式」、特開平2−108
341号公報に開示されている「局アドレスの重複設定
検知方式」、特開平3−267845号公報に開示され
ている「データ伝送システム」、特開平4−33433
号公報に開示されている「不正アドレス管理方法」、特
開平4−84537号公報に開示されている「データ伝
送システムの重複ノードアドレス検出方式」、特開平4
−200131号公報に開示されている「LAN間相互
接続装置」がある。
In addition, as a reference technical document related to the present invention, "Network address test method" disclosed in JP-A-2-230840, JP-A-2-
-170637, "Communication station address automatic setting method", "Address confirmation method", disclosed in JP-A-1-192241, JP-A-2-290
"Network system and method for testing duplicate address" disclosed in Japanese Patent No.
"Station address check processing method" disclosed in Japanese Patent No. 345, "Address duplication detection method" disclosed in Japanese Patent Laid-Open No. 61-287349, Japanese Patent Laid-Open No. 2-108.
No. 341, “Station address duplication setting detection method”, Japanese Patent Laid-Open No. 3-267845, “Data transmission system”, Japanese Patent Laid-Open No. 4-33433.
"Unauthorized address management method" disclosed in Japanese Patent Laid-Open No. 4-84537, "Duplicate node address detection method for data transmission system" disclosed in Japanese Patent Laid-Open No. 4-84537,
There is a "LAN interconnection device" disclosed in Japanese Patent Laid-Open No. 200131.

【0012】[0012]

【発明が解決しようとする課題】従来におけるバス型ト
ポロジー方式のデータリンクシステムにあっては、上記
のようにスレーブ局における受信完了のタイミングが同
じか、異なるかによりマスタ局の処理が異なるため、局
番重複の検出が正常に実行できず、データリンクシステ
ム/ネットワークシステムの局番重複に起因する誤動作
を招来するという問題点があった。
In the conventional bus-type topology data link system, the processing of the master station is different depending on whether the reception completion timings in the slave stations are the same or different, as described above. There is a problem in that the duplicated station number cannot be detected normally, resulting in a malfunction due to the duplicated station number of the data link system / network system.

【0013】この発明は、上記のような課題を解決する
ためになされたもので、バス型トポロジー方式における
データリンクの局番の重複や抜けを確実にテストするこ
とができるようにし、データリンクシステムの局番重複
に起因する誤動作を防止することができるプログラマブ
ルコントローラの局番重複テスト方法を得ることを第1
の目的とする。
The present invention has been made in order to solve the above problems, and makes it possible to reliably test the duplication or omission of the station number of a data link in a bus type topology system, and to realize a data link system. A first object is to obtain a programmable controller station number duplication test method capable of preventing malfunction due to station number duplication.
The purpose of.

【0014】また、この発明は、バス伝送路形態のネッ
トワークユニットを介して各ユニットの局番設定の重複
や抜けを確実にテストできるようにしてネットワークシ
ステムの局番重複に起因する誤動作を防止することがで
きるプログラマブルコントローラの局番重複テスト方法
を得ることを第2の目的とする。
Further, according to the present invention, it is possible to surely test the duplication or omission of the station number setting of each unit via the network unit in the form of a bus transmission line, thereby preventing the malfunction caused by the duplication of the station number of the network system. A second object is to obtain a programmable controller station number duplication test method.

【0015】また、バス伝送路形態の局番設定の重複局
が誤動作してシステム全体に悪影響を与えないようにす
るプログラマブルコントローラの局番重複テスト方法を
得ることを第3の目的とする。
A third object of the present invention is to obtain a programmable controller station number duplication test method which prevents a duplicate station having a station number setting in a bus transmission line from malfunctioning and adversely affecting the entire system.

【0016】また、バス伝送路形態の局番設定の重複局
を解列や設定を修正することにより重複エラーがなくな
ったときに自動的に復列して、プログラマブルコントロ
ーラの動作効率を向上させるプログラマブルコントロー
ラの局番重複テスト方法を得ることを第4の目的とす
る。
A programmable controller for automatically re-establishing a duplicated station having a station number setting in the bus transmission line mode when the duplication error disappears by unconstraining or correcting the setting to improve the operation efficiency of the programmable controller. A fourth object is to obtain the station number duplication test method of.

【0017】また、バス伝送路形態における局番設定の
重複局数を測定でき、重複局の設定を早期に修正し、ネ
ットワークシステムの局番重複に起因する誤動作を防止
することができるプログラマブルコントローラの局番重
複テスト方法を得ることを第5の目的とする。
Further, it is possible to measure the number of duplicated stations in the station number setting in the bus transmission line form, correct the setting of the duplicated stations early, and prevent malfunction due to duplicated station numbers in the network system. A fifth purpose is to obtain a test method.

【0018】[0018]

【課題を解決するための手段】この発明に係るプログラ
マブルコントローラの局番重複テスト方法は、バス型の
トポロジーによりデータリンクを構成する機能を有する
プログラマブルコントローラの局番重複テスト方法にお
いて、データリンク交信中に、任意の局を局番重複テス
トを実行する局(マスタ局)として指定し、テストする
局(スレーブ局)を指定し、前記マスタ局はスレーブ局
に対してコマンドフレームを送信し、前記スレーブ局は
コマンドフレームを受信し、ラインドライバのゲートを
“アクティブ”に設定して一定時間待ち、レスポンスフ
レームを送信して一定時間待ち、前記ラインドライバの
ゲートを“ノンアクティブ”に設定し、前記スレーブ局
が重複していれば、前記レスポンスフレームは前記マス
タ局に正常に受信されずタイムアウトとなり、前記マス
タ局はタイムアウト後自局宛のコマンドフレームを送信
し、正しく受信できるか否かによりスレーブ局が存在す
るのか、スレーブ局が重複しているのかを判別するもの
である。
A station number duplication test method for a programmable controller according to the present invention is a station number duplication test method for a programmable controller having a function of configuring a data link by a bus type topology, during data link communication. Any station is designated as a station (master station) to execute the station number duplication test, a station to be tested (slave station) is designated, the master station sends a command frame to the slave station, and the slave station sends a command. Receives a frame, sets the gate of the line driver to "active" and waits for a certain period of time, sends a response frame and waits for a certain period of time, sets the gate of the line driver to "non-active", and duplicates the slave station If so, the response frame is normally received by the master station. Is not timed out, the master station transmits a command frame of the receiving apparatus after a timeout, whether slave station exists by determining whether or not it received correctly, it is to determine whether the slave station is duplicated.

【0019】また、バス型のトポロジーによりデータリ
ンクを構成する機能を有するプログラマブルコントロー
ラの局番重複テスト方法において、データリンク交信開
始前に、任意の局を局番重複テストを実行する局(マス
タ局)として指定し、前記データリンクを構成する全て
の局をテストする局(スレーブ局)として、前記マスタ
局はスレーブ局に対してコマンドフレームを送信し、前
記スレーブ局はコマンドフレームを受信し、ラインドラ
イバのゲートを“アクティブ”に設定して一定時間待
ち、レスポンスフレームを送信して一定時間待ち、前記
ラインドライバのゲートを“ノンアクティブ”に設定
し、前記スレーブ局が重複していれば、前記レスポンス
フレームは前記マスタ局に正常に受信されずタイムアウ
トとなり、前記マスタ局はタイムアウト後自局宛のコマ
ンドフレームを送信し、正しく受信できるか否かにより
スレーブ局が存在するのか、スレーブ局が重複している
のかを判別するものである。
Further, in the station number duplication test method of the programmable controller having the function of forming the data link by the bus type topology, an arbitrary station is set as a station (master station) for executing the station number duplication test before the data link communication is started. As a station (slave station) that designates and tests all stations configuring the data link, the master station transmits a command frame to the slave station, the slave station receives the command frame, and the line driver If the gate is set to “active” and waits for a certain time, the response frame is transmitted and waits for a certain time, the gate of the line driver is set to “non-active”, and if the slave stations are duplicated, the response frame Is not normally received by the master station and has timed out. Sends a command frame of the receiving apparatus after a timeout, whether slave station exists by determining whether or not it received correctly, it is to determine whether the slave station is duplicated.

【0020】また、プログラマブルコントローラをバス
伝送路形態のネットワークユニットを介してデータを通
信するプログラマブルコントローラ用ネットワークを用
い、任意の局を局番重複テストを実行する局(マスタ
局)として指定し、前記マスタ局からテストする局(ス
レーブ局)にテスト伝文を送信し、前記スレーブ局から
のレスポンス伝文の受信状態によりスレーブ局の局番が
重複しているか、スレーブ局が存在しているかを検出す
るものである。
The programmable controller uses a programmable controller network that communicates data via a network unit in the form of a bus transmission line, and an arbitrary station is designated as a station (master station) for executing a station number duplication test. A test message is sent from a station to a test station (slave station), and it is detected whether the station number of the slave station is duplicated or the slave station exists depending on the reception status of the response message from the slave station. Is.

【0021】また、前記スレーブ局からのレスポンス伝
文の受信状態によりスレーブ局の局番が重複しているこ
とを検出したとき、該検出された局番重複のスレーブ局
が送信できないようにするものである。
Further, when it is detected that the station numbers of the slave stations are duplicated according to the reception status of the response message from the slave station, the slave stations having the duplicated station numbers cannot be transmitted. .

【0022】また、プログラマブルコントローラをバス
伝送路形態のネットワークユニットを介してデータを通
信するプログラマブルコントローラ用ネットワークを用
い、任意の局を局番重複テストを実行する局(マスタ
局)として指定し、テストする局(スレーブ局)を指定
し、局番重複局を検出したとき、前記マスタ局から局番
重複のスレーブ局へ定期的にテストを実行し、重複エラ
ーがなくなったとき、自動復列させるものである。
Further, the programmable controller is tested by designating an arbitrary station as a station (master station) for executing the station number duplication test by using a programmable controller network that communicates data via a bus transmission line type network unit. When a station (slave station) is designated and a station number duplication station is detected, a test is periodically executed from the master station to the slave station having the station number duplication, and when the duplication error disappears, automatic recovery is performed.

【0023】また、プログラマブルコントローラをバス
伝送路形態のネットワークユニットを介してデータを通
信するプログラマブルコントローラ用ネットワークを用
い、任意の局から各プログラマブルコントローラの局番
の設定状態をテストし、該局番が重複している重複局数
を測定するものである。
Further, the programmable controller uses a programmable controller network that communicates data via a network unit in the form of a bus transmission line, tests the setting state of the station number of each programmable controller from an arbitrary station, and the station number is duplicated. The number of duplicate stations is measured.

【0024】[0024]

【作用】この発明に係るプログラマブルコントローラの
局番重複テストにおいては、マスタ局は指定された局番
に対してコマンドフレームを送信する。その局番はコマ
ンドフレームを受信し、ラインドライバのゲートを
“H”に設定し、一定時間待ち、レスポンスフレームを
送信し、一定時間待ちした後、ラインドライバのゲート
を“L”に設定する。局番が重複であればレスポンスは
マスタ局に正常受信されずタイムアウトとなり、マスタ
局はタイムアウト後自局宛にコマンドフレームを送信す
ることにより該局(テストした局番)が存在するのか、
局番が重複しているのかを効率よく検出する。
In the station number duplication test of the programmable controller according to the present invention, the master station transmits the command frame to the designated station number. The station number receives the command frame, sets the gate of the line driver to "H", waits for a fixed time, transmits the response frame, waits for a fixed time, and then sets the gate of the line driver to "L". If the station number is duplicated, the response is not normally received by the master station and times out, and the master station sends a command frame to itself and then the station (tested station number) exists.
Efficiently detect whether station numbers are duplicated.

【0025】また、データリンクを構成している全ての
局をスレーブ局として局番重複テストを実行する。
Further, the station number duplication test is executed by using all the stations forming the data link as slave stations.

【0026】さらに、マスタ局は指定された局番に対し
てコマンドフレームを送信する。スレーブ局はコマンド
フレームを受信し、レスポンスをマスタ局に送信する。
マスタ局は受信状態によりスレーブ局が重複している
か、局抜けしているかを効率よく検出する。
Further, the master station transmits a command frame to the designated station number. The slave station receives the command frame and sends a response to the master station.
The master station efficiently detects whether the slave stations are overlapping or missing depending on the reception status.

【0027】[0027]

【実施例】【Example】

〔実施例1〕以下、この発明の一実施例を図について説
明する。図1は、上記図20に示した1局(マスタ局)
4の処理動作を示すフローチャートであり、マスタ局の
処理を示す。また、図2は、上記図20に示した2局
(スレーブ局)5a,5bの処理動作を示すフローチャ
ートであり、スレーブ局の処理を示す。また、図3,図
4,図5は、各々上記図1に示した局番重複テスト処理
のタイミングチャートを示す。
[Embodiment 1] An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows one station (master station) shown in FIG.
4 is a flowchart showing the processing operation of No. 4, showing the processing of the master station. 2 is a flowchart showing the processing operation of the two stations (slave stations) 5a and 5b shown in FIG. 20 and shows the processing of the slave station. Further, FIGS. 3, 4 and 5 are timing charts of the station number duplication test process shown in FIG.

【0028】図20に示した、この実施例における1局
(マスタ局)4の動作について図1に示したフローチャ
ートを参照し、2局(スレーブ局)5a,5bの動作に
ついて図2に示したフローチャートを参照して以下に説
明する。
The operation of the first station (master station) 4 in this embodiment shown in FIG. 20 is referred to the flow chart shown in FIG. 1, and the operation of the second station (slave stations) 5a and 5b is shown in FIG. This will be described below with reference to the flowchart.

【0029】1局(マスタ局)4は、図1のフローチャ
ートに示すように、1局(マスタ局)4のラインドライ
バ3aのゲートを“H”に設定する(S1)。次に、局
番2へコマンドフレーム1を送信し(S2)、1局(マ
スタ局)4のゲートを“L”に設定する(S3)。
As shown in the flowchart of FIG. 1, the first station (master station) 4 sets the gate of the line driver 3a of the first station (master station) 4 to "H" (S1). Next, the command frame 1 is transmitted to the station number 2 (S2), and the gate of the first station (master station) 4 is set to "L" (S3).

【0030】2局(スレーブ局)5a,5bは、図2の
フローチャートに示すように、コマンドフレームの受信
が完了したと判断すると(S15a)、スレーブ局3b
のゲートを“H”に設定し(S15)、時間待ちをする
(S16)。この時間待ちの意味は、同局番で受信のタ
イミングが異なることがあるため、時間待ちをすること
により、受信のタイミングが異なっても対処できるよう
にするものである。この時間は、図3,図4に示すレス
ポンス送信前ゲート“H”時間t3 である。上記ステッ
プ16の時間待ち後、1局(マスタ局)4にレスポンス
フレームを送信し(S17)、時間待ちをする(S1
8)。この時間待ちは1局(マスタ局)4が正常にレス
ポンスフレームを受信できないときに、1局(マスタ
局)4が再度自局に対してコマンドフレームを送信し、
局番重複か、局番なしかを判別するための時間待ちであ
る。この時間は、図3,図4に示すレスポンス送信後ゲ
ート“H”時間t4 である。上記ステップ18の時間待
ち後スレーブ局5a,5bのゲートを“L”にする(S
19)。
When the two stations (slave stations) 5a and 5b judge that the command frame has been received (S15a), as shown in the flowchart of FIG. 2, the slave station 3b.
Is set to "H" (S15) and waits for a time (S16). The meaning of this waiting time is that the reception timing may be different for the same station number, so by waiting for a time, it is possible to cope with different reception timings. This time is the response pre-transmission gate “H” time t 3 shown in FIGS. After waiting the time of step 16 above, a response frame is transmitted to the 1 station (master station) 4 (S17) and waits for the time (S1).
8). In this waiting time, when the 1 station (master station) 4 cannot normally receive the response frame, the 1 station (master station) 4 transmits the command frame to itself,
It is waiting for the time to determine whether the station number is duplicated or not. This time is the gate "H" time t 4 after the response transmission shown in FIGS. After waiting the time of step 18, the gates of the slave stations 5a and 5b are set to "L" (S
19).

【0031】図1に戻り、1局(マスタ局)4は、局番
に異常があるか否かの判断のためタイムアップまで受信
待ちをする(S4)。ここで、スレーブ局が1つのと
き、すなわち、正常に局番設定したときは受信ができ正
常に終了する(S6)が、この実施例においては、スレ
ーブ局が5a,5bと2つあるため、図4に示したタイ
ミングチャートのように、ゲート3bが2箇所で同一タ
イミング的に“H”となるため、1局(マスタ局)4
は、正常に受信ができず、受信待ちタイムアップする
(S5)。1局(マスタ局)4は、受信待ちタイムアッ
プのため、自局との交信を実行する。その後、ゲートを
“H”に設定し(S7)、自局へコマンドフレーム2を
送信した(S8)後、ゲートを“L”に設定する(S
9)。
Returning to FIG. 1, the first station (master station) 4 waits for reception until the time is up to judge whether or not there is an abnormality in the station number (S4). Here, when there is one slave station, that is, when the station number is normally set, reception is possible and the processing ends normally (S6). However, in this embodiment, there are two slave stations, 5a and 5b. As shown in the timing chart of FIG. 4, since the gate 3b becomes “H” at two points at the same timing, one station (master station) 4
Cannot receive normally, and the reception waiting time is up (S5). The first station (master station) 4 communicates with its own station in order to increase the reception waiting time. After that, the gate is set to "H" (S7), the command frame 2 is transmitted to the own station (S8), and then the gate is set to "L" (S).
9).

【0032】次に、1局(マスタ局)4は、受信待ちを
し(S10)、未受信であると判断すると、さらに受信
待ちタイムアップか否かを判断する(S11)。ここ
で、図4のタイムチャートが示すように、スレーブ局5
a,5bのゲートが“H”のため、1局(マスタ局)4
から出力されたコマンドフレーム2は、回線上で衝突し
てしまい、1局(マスタ局)4は正常に受信できない。
このことによりテストした局番2は局番重複の異常であ
ると判定できる(S13)。異常と判定された後、時間
待ちして(S14)、一連の処理を終了する。この時間
待ちはテストした局のゲートが“L”に設定されるまで
の時間であり、図3,図4,図5に示す待ち時間t2
ある。
Next, the first station (master station) 4 waits for reception (S10), and when it judges that it has not received, it further judges whether or not the reception waiting time is up (S11). Here, as shown in the time chart of FIG. 4, the slave station 5
1 station (master station) 4 because the gates of a and 5b are "H"
The command frame 2 output from the device collides on the line, and the first station (master station) 4 cannot receive it normally.
This makes it possible to determine that the tested station number 2 is an abnormal station number duplication (S13). After it is determined that there is an abnormality, the process waits for a time (S14), and the series of processes is ended. This waiting time is the time until the gate of the tested station is set to "L" and is the waiting time t 2 shown in FIGS. 3, 4 and 5.

【0033】また、存在しない局番3について上記と同
様のテストを行った場合について説明する。1局(マス
タ局)4は、局番3(存在しない)にコマンドフレーム
を送信する。しかし、スレーブ局となる局が存在しない
ので、1局(マスタ局)4は、レスポンスフレームが受
信できないため受信タイムアップする(S4,S5)。
1局(マスタ局)4は上記と同様の処理を行い、1局
(マスタ局)4は、受信待ちをする(S10,S1
1)。そこで、図5のタイミングチャートが示すよう
に、スレーブ局が存在しないため、1局(マスタ局)4
のゲート以外はどこのゲートも“H”に設定されておら
ず、自局に送信したコマンドフレーム2は、正常に受信
される。
A case in which the same test as above is performed on the station number 3 which does not exist will be described. The first station (master station) 4 transmits the command frame to the station number 3 (not present). However, since there is no slave station, the first station (master station) 4 cannot receive the response frame and the reception time is up (S4, S5).
The first station (master station) 4 performs the same process as above, and the first station (master station) 4 waits for reception (S10, S1).
1). Therefore, as shown in the timing chart of FIG. 5, since there is no slave station, one station (master station) 4
No gate is set to "H" other than the gates, and the command frame 2 transmitted to the local station is normally received.

【0034】このように、スレーブ局からのレスポンス
フレームが受信できず、自局へのコマンドフレーム2が
受信できることから、局番3は局番抜け(なし)の異常
である(S12)ことが確認できる。
As described above, since the response frame from the slave station cannot be received and the command frame 2 to the local station can be received, it can be confirmed that the station number 3 is an abnormal station number omission (none) (S12).

【0035】〔実施例2〕次に、この発明に係る第2の
実施例について説明する。上記実施例1は、指定した局
(1つの局)について実行するものであるが、図6に示
したフローチャートに示すように、局番1から順に(S
24)、リンクしている全ての局について(S26,S
27)、上記実施例1において説明した局番重複のテス
トを実行し(S25)、テスト終了後、テスト結果を図
7に示した周辺機器インターフェース(I/F)2eを
介して、周辺機器へ返信する(S28)。
[Second Embodiment] Next, a second embodiment according to the present invention will be described. The above-described first embodiment is executed for the designated station (one station). However, as shown in the flowchart in FIG.
24) for all linked stations (S26, S
27), the station number duplication test described in the first embodiment is executed (S25), and after the test is completed, the test result is returned to the peripheral device via the peripheral device interface (I / F) 2e shown in FIG. Yes (S28).

【0036】〔実施例3〕次に、この発明に係る第3の
実施例について説明する。図7は、図20に示した1局
(マスタ局)4の局番重複テストの処理動作を示すフロ
ーチャートであり、マスタ局の処理を示す。また、図8
は、図20に示した2局(スレーブ局)5a,5bの局
番重複テストを実施される局の処理動作を示すフローチ
ャートであり、スレーブ局の処理を示す。また、図9
は、局番が重複していない場合におけるタイミングを示
すタイミングチャートであり、図10は、図20に示し
た2局(スレーブ局)5a,5bの局番重複テストを実
行した場合におけるタイミングを示すタイミングチャー
トである。図11は、各局の通信インタフェースを示
し、該通信インタフェースは、ラインドライバ51、ラ
インレシーバ52、重複送信検出回路53から構成され
ている。ラインドライバ51は時局が送信するときのみ
ゲートをアクティブにし、通常はインアクティブになっ
ている。また、ラインレシーバ52は常時アクティブに
設定してあり、伝送路のデータを常時受信できるように
設定されている。
[Embodiment 3] Next, a third embodiment of the present invention will be described. FIG. 7 is a flowchart showing the processing operation of the station number duplication test of the one station (master station) 4 shown in FIG. 20, showing the processing of the master station. Also, FIG.
FIG. 21 is a flowchart showing the processing operation of a station for which the station number duplication test of the two stations (slave stations) 5a and 5b shown in FIG. 20 is performed, showing the processing of the slave station. In addition, FIG.
10 is a timing chart showing the timing when the station numbers do not overlap, and FIG. 10 is a timing chart showing the timing when the station number duplication test of the two stations (slave stations) 5a and 5b shown in FIG. 20 is executed. Is. FIG. 11 shows a communication interface of each station, which is composed of a line driver 51, a line receiver 52, and a duplicate transmission detection circuit 53. The line driver 51 activates the gate only when the time station transmits, and is normally inactive. Further, the line receiver 52 is always set to be active so that it can always receive the data of the transmission line.

【0037】局番重複テスト実施局であるマスタ局の処
理は、図7に示すように、1局(マスタ局)4のライン
ドライバ51のゲートをアクティブに設定し(S2
9)、送信権を獲得する。次に、テスト伝文をテスト局
のn局に送信(S30)後、マスタ局はラインドライバ
51のゲートをインアクティブに設定し(S31)、送
信権を開放する。その後、スレーブ局のレスポンスを受
信するまで監視タイマをセットし(S32)、スレーブ
局のレスポンス受信状態を監視する。図11に示した重
複送信検出回路53が重複送信エラー信号を検出した場
合(S33)、異常受信回数を+1とし(S36)、重
複局が存在することを記憶しておく。
In the processing of the master station which is the station number duplication test execution station, as shown in FIG. 7, the gate of the line driver 51 of the first station (master station) 4 is set to active (S2
9) Obtain the transmission right. Next, after transmitting the test message to the n stations of the test station (S30), the master station sets the gate of the line driver 51 to inactive (S31) and releases the transmission right. After that, the monitoring timer is set until the response of the slave station is received (S32), and the response reception state of the slave station is monitored. When the duplicated transmission detection circuit 53 shown in FIG. 11 detects a duplicated transmission error signal (S33), the abnormal reception number is set to +1 (S36), and it is stored that the duplicated station exists.

【0038】また、スレーブ局からレスポンス伝文を正
常に受信した場合(S34)、正常受信回数を+1とす
る(S37)。その後、スレーブ局からのレスポンスを
確実に受信できる監視時間が経過したとき(S35)、
監視タイマをリセットして(S38)、受信状態をチェ
ックする。チェック方法は、異常回数が0以外の場合
(S39)、スレーブ局の重複エラーとする(S4
4)。異常回数が0であり、正常回数が0の場合(S4
1)、スレーブ局なしとする(S43)。異常回数が0
であり、正常回数が1の場合(S40)、スレーブ局正
常,重複局なしとする(S42)。
When the response message is normally received from the slave station (S34), the number of normal receptions is incremented by 1 (S37). After that, when the monitoring time that can surely receive the response from the slave station has elapsed (S35),
The monitoring timer is reset (S38) and the reception state is checked. As a checking method, if the number of abnormalities is other than 0 (S39), it is determined that a slave station duplication error occurs (S4).
4). When the abnormal count is 0 and the normal count is 0 (S4
1), there is no slave station (S43). The number of abnormalities is 0
If the number of normal times is 1 (S40), the slave station is normal and there is no duplicate station (S42).

【0039】次に、スレーブ局の処理は、図8に示すよ
うに自局宛伝文か否かをチェックして(S45)、自局
宛伝文であるとき、レスポンスフレーム(データ)を作
成し(S46)、ラインドライバ51をアクティブに設
定し(S47)、送信権を獲得する。その後、時間待ち
t2をして(S48)、自局の図11に示した重複送信
検出回路53が重複送信エラー信号を検出したか否かを
チェックし(S49)、正常の場合には、重複局がない
のでレスポンスフレームをマスタ局に送信し(S5
2)、時間待ちt3をした(S53)後、ラインドライ
バ51の送信ゲートをインアクティブにして(S5
1)、送信権を解放する。
Next, in the process of the slave station, as shown in FIG. 8, it is checked whether or not the message is addressed to the own station (S45), and if the message is addressed to the own station, a response frame (data) is created (S46). , The line driver 51 is set active (S47), and the transmission right is acquired. Then, after waiting for time t2 (S48), it is checked whether or not the duplicated transmission detection circuit 53 of the own station shown in FIG. 11 has detected the duplicated transmission error signal (S49). Since there is no station, the response frame is sent to the master station (S5
2) After waiting for time t3 (S53), the transmission gate of the line driver 51 is deactivated (S5).
1) Release the transmission right.

【0040】上記テストにおいて、図20に示した4局
5cの局番重複していないタイミングを図9に示す。ま
た、図10に図20に示した2局(スレーブ局)5a,
5bの重複局が存在した場合におけるタイミングを示
す。
In the above test, FIG. 9 shows the timing when the station numbers of the 4 stations 5c shown in FIG. 20 do not overlap. In addition, the two stations (slave stations) 5a shown in FIG.
5 shows the timing when there is an overlapping station of 5b.

【0041】〔実施例4〕次に、この発明に係る第4の
実施例について説明する。図20に示した1局(マスタ
局)4の局番重複テストの処理動作を示すマスタ局のフ
ローチャートは、上記実施例3の図7に示したものと同
じであり、また、局番が重複していない場合におけるタ
イミングチャートや図20に示した2局(スレーブ局)
5a,5bの局番重複テストを実行した場合におけるタ
イミングチャートは、上記実施例3における図9、図1
0に示したものと同じである。また、図11に示した通
信インタフェースを使用する。図20に示した2局(ス
レーブ局)5a,5bの局番重複テストを実施される局
の処理動作を示すフローチャートを図12に示す。
[Fourth Embodiment] Next, a fourth embodiment according to the present invention will be described. The flow chart of the master station showing the processing operation of the station number duplication test of the one station (master station) 4 shown in FIG. 20 is the same as that shown in FIG. 7 of the third embodiment, and the station numbers are duplicated. 2 stations (slave station) shown in the timing chart and Fig. 20 when there is no such station
Timing charts when the station number duplication test of 5a and 5b is executed are shown in FIG. 9 and FIG.
It is the same as that shown in 0. Further, the communication interface shown in FIG. 11 is used. FIG. 12 is a flow chart showing the processing operation of the stations to be subjected to the station number duplication test of the two stations (slave stations) 5a and 5b shown in FIG.

【0042】局番重複テスト実施局であるマスタ局の処
理は、上記実施例3において図7に示した処理と同じで
ある。次に、スレーブ局の処理は図12に示すように、
テスト伝文が自局宛伝文か否かをチェックして(S5
4)、自局宛伝文の場合、前回のテストのときに局番重
複エラーが検出されているかフラグをチェックし(S5
5)、エラー検出中の場合には、それ以降、スレーブ局
からは何も送信できないように構成されている。エラー
を検出していない場合にはレスポンスフレーム(デー
タ)を作成し(S56)、ラインドライバ51をアクテ
ィブに設定して(S57)、送信権を獲得する。時間待
ちt2をした(S58)後に自局の図11に示した重複
送信検出回路53が重複送信エラー信号を検出したか否
かをチェックし(S59)、正常の場合には、重複局が
ないので、レスポンスフレームをマスタ局へ送信し(S
63)、時間待ちt3をした(S64)後、ラインドラ
イバ51の送信ゲートをインアクティブにする(S6
2)。このように局番重複エラーを検出した場合、それ
以降、スレーブ局が同時にデータ送信を実行しないた
め、システム全体に悪影響を与えることがない。ステッ
プ59において、重複送信エラー信号を検出したときに
は、局番重複エラーフラグをセットし(S60)、時間
待ちrt+t3した(S61)後、ラインドライバ51
の送信ゲートをインアクティブにする(S62)。
The processing of the master station which is the station number duplication test execution station is the same as the processing shown in FIG. 7 in the third embodiment. Next, the processing of the slave station is as shown in FIG.
Check whether the test message is a message addressed to your own station (S5
4) If the message is addressed to the own station, check the flag whether a station number duplication error was detected in the previous test (S5
5) When an error is being detected, nothing is transmitted from the slave station thereafter. When no error is detected, a response frame (data) is created (S56), the line driver 51 is set to active (S57), and the transmission right is acquired. After waiting for time t2 (S58), it is checked whether or not the duplicated transmission detection circuit 53 of its own station shown in FIG. 11 has detected the duplicated transmission error signal (S59). If it is normal, there is no duplicated station. Therefore, the response frame is sent to the master station (S
63), after waiting for time t3 (S64), the transmission gate of the line driver 51 is deactivated (S6).
2). When the station number duplication error is detected in this way, the slave stations do not simultaneously perform data transmission thereafter, so that the entire system is not adversely affected. When the duplicate transmission error signal is detected in step 59, the station number duplication error flag is set (S60), and after waiting for time rt + t3 (S61), the line driver 51 is set.
The transmission gate of is made inactive (S62).

【0043】〔実施例5〕次に、この発明に係る第5の
実施例について説明する。図13は、図20に示した1
局(マスタ局)4の局番重複テストの処理動作を示すフ
ローチャートであり、マスタ局の処理を示す。図20に
示した2局(スレーブ局)5a,5bの局番重複テスト
を実施される局の処理動作を示すフローチャートは、上
記実施例3の図8に示したものと同じであり、スレーブ
局の処理を示す。また、局番が重複していない場合のタ
イミングチャートや図20に示した2局(スレーブ局)
5a,5bの局番重複テストを実行した場合のタイミン
グチャートは上記実施例3に示した図9,図10に示し
たものと同じである。また、図11に示した各局におけ
る通信インタフェースを使用する。
[Fifth Embodiment] Next, a fifth embodiment according to the present invention will be described. 13 is the same as that shown in FIG.
It is a flow chart which shows the processing operation of the station number duplication test of the station (master station) 4, and shows the processing of the master station. The flowchart showing the processing operation of the stations to be subjected to the station number duplication test of the two stations (slave stations) 5a and 5b shown in FIG. 20 is the same as that shown in FIG. Indicates processing. Also, the timing chart when the station numbers do not overlap and the two stations (slave stations) shown in Fig. 20.
Timing charts when the station number duplication test of 5a and 5b is executed are the same as those shown in FIGS. 9 and 10 shown in the third embodiment. Further, the communication interface in each station shown in FIG. 11 is used.

【0044】局番重複テスト実施局であるマスタ局の処
理は、図13に示すように、局番重複テストが1回目か
否かをチェックし(S65)、1回目の場合、図20に
示した実施マスタ局4のラインドライバ51のゲートを
アクティブに設定し(S67)、送信権を獲得する。次
に、テスト伝文をテスト局のn局に送信(S68)後、
マスタ局はラインドライバ51のゲートをインアクティ
ブに設定し(S69)、送信権を解放する。その後、ス
レーブ局のレスポンスを受信するまでの監視タイマをセ
ットし(S70)、スレーブ局のレスポンス受信状態を
監視する。図11に示した重複送信検出回路53が重複
送信エラー信号を検出した場合には、異常受信回数を+
1とし(S74)、重複局が存在することを記憶してお
く。
The process of the master station which is the station number duplication test execution station checks whether or not the station number duplication test is the first time as shown in FIG. 13 (S65). The gate of the line driver 51 of the master station 4 is set active (S67), and the transmission right is acquired. Next, after transmitting the test message to the n stations of the test station (S68),
The master station sets the gate of the line driver 51 to inactive (S69) and releases the transmission right. After that, the monitoring timer until the response of the slave station is received is set (S70), and the response reception state of the slave station is monitored. When the duplicated transmission detection circuit 53 shown in FIG. 11 detects a duplicated transmission error signal, the number of abnormal reception is +
It is set to 1 (S74), and it is stored that there is an overlapping station.

【0045】また、スレーブ局からレスポンスを正常に
受信したとき(S72)には、正常受信回数を+1にす
る(S75)。スレーブ局からのレスポンスを確実に受
信できる監視時間が経過したとき(S73)、監視タイ
マをリセットし(S76)、受信状態をチェックする。
チェック方法は、異常回数が0以外の場合(S77)、
スレーブ局の重複エラーとする(S84)。異常回数が
0で正常回数が0の場合(S79)、スレーブ局なしと
し(S82)、局番重複エラーフラグをセットする(S
83)。異常回数が0で、正常回数が1の場合(S7
8)、スレーブ局正常とし(S80)、局番重複エラー
フラグをリセットする(S81)。
When the response is normally received from the slave station (S72), the number of normal receptions is incremented by 1 (S75). When the monitoring time period during which the response from the slave station can be reliably received has elapsed (S73), the monitoring timer is reset (S76) and the reception state is checked.
If the number of abnormalities is other than 0 (S77), the check method is
A slave station duplication error is determined (S84). If the number of abnormalities is 0 and the number of normal times is 0 (S79), there is no slave station (S82), and the station number duplication error flag is set (S).
83). When the abnormal count is 0 and the normal count is 1 (S7
8), normalize the slave station (S80), and reset the station number duplication error flag (S81).

【0046】マスタ局は、テスト2回目以降(S65)
は、局番重複エラーフラグをチェックし(S66)、エ
ラーがある場合には、上記処理を繰り返し、マスタ局は
局番重複のスレーブ局へ上記処理を定期的にテストを実
行することで重複エラーがなくなったときに、エラー局
を自動復列する。図20に示した2局(スレーブ局)5
a,5bの局番重複テストを実施される局の処理動作を
示すフローチャートは、上記実施例3の図8に示したも
のと同じであり、スレーブ局の処理を示す。また、局番
が重複していない場合のタイミングチャートや図20に
示した2局(スレーブ局)5a、5bの局番重複テスト
を行った場合のタイミングチャートは、上記実施例3の
図9、図10に示したものと同じである。また、図11
に示した各局の通信インターフェースを使用する。
The master station is the second and subsequent tests (S65)
Checks the station number duplication error flag (S66), and if there is an error, repeats the above process, and the master station periodically performs the above process on the slave stations with station number duplication to eliminate duplication error. When the error occurs, the error station is automatically restored. 2 stations (slave station) 5 shown in FIG.
The flow chart showing the processing operation of the stations to be subjected to the station number duplication test of a and 5b is the same as that shown in FIG. 8 of the third embodiment and shows the processing of the slave station. Further, the timing chart when the station numbers do not overlap and the timing chart when the station number duplication test of the two stations (slave stations) 5a and 5b shown in FIG. 20 are performed are shown in FIGS. Is the same as that shown in. In addition, FIG.
Use the communication interface of each station shown in.

【0047】〔実施例6〕次に、この発明に係る第6の
実施例について説明する。図15は、図20に示した1
局(マスタ局)4の局番重複テストの処理動作を示すフ
ローチャートであり、マスタ局の処理を示す。図16
は、図20に示した2局(スレーブ局)5a,5bの局
番重複テストを実施される局の処理動作を示すフローチ
ャートであり、スレーブ局の処理を示す。また、局番が
重複していない場合のタイミングチャートは、上記実施
例3の図9に示したものと同じであり、図20に示した
2局(スレーブ局)5a,5bの局番重複テストを行っ
た場合のタイミングチャートは図10に示したものと同
じである。また、図11に示した各局の通信インタフェ
ースを使用する。
[Sixth Embodiment] Next, a sixth embodiment according to the present invention will be described. 15 is the same as that shown in FIG.
It is a flow chart which shows the processing operation of the station number duplication test of the station (master station) 4, and shows the processing of the master station. FIG.
FIG. 21 is a flowchart showing the processing operation of a station for which the station number duplication test of the two stations (slave stations) 5a and 5b shown in FIG. 20 is performed, showing the processing of the slave station. The timing chart when the station numbers do not overlap is the same as that shown in FIG. 9 of the third embodiment, and the station number duplication test of the two stations (slave stations) 5a and 5b shown in FIG. 20 is performed. The timing chart in the case of turning on is the same as that shown in FIG. Further, the communication interface of each station shown in FIG. 11 is used.

【0048】局番重複テスト実施局のマスタ局の処理
は,図15に示すように,1局(マスタ局)4のライン
ドライバ51のゲートをアクティブに設定し(S8
5)、送信権を獲得する。次に、テスト伝文をテスト局
のn局に送信後(S86)、マスタ局はラインドライバ
51のゲートをインアクティブに設定し(S87)、送
信権を開放する。その後、スレーブ局のレスポンスを受
信するまでの監視タイマをセットし(S88)、スレー
ブ局のレスポンス受信状態を監視する。図11に示した
重複送信検出回路53が重複送信エラー信号を検出した
場合(S89)は、異常受信回数を+1し(S92)、
重複局が存在することを記憶しておく。
As shown in FIG. 15, the processing of the master station of the station number duplication test execution station sets the gate of the line driver 51 of the first station (master station) 4 to active (S8).
5) Obtain the transmission right. Next, after transmitting the test message to the n stations of the test station (S86), the master station sets the gate of the line driver 51 to inactive (S87) and releases the transmission right. After that, a monitoring timer until the response of the slave station is received is set (S88), and the response reception state of the slave station is monitored. When the duplicate transmission detection circuit 53 shown in FIG. 11 detects the duplicate transmission error signal (S89), the number of abnormal reception is incremented by 1 (S92),
Remember that there are duplicate stations.

【0049】また、スレーブ局からレスポンス伝文を正
常に受信した場合(S90)には、正常受信回数を+1
にする(S93)。スレーブ局からのレスポンス伝文を
確実に受信できる監視時間が経過したとき(S91)、
監視タイマをリセットして(S94)、受信状態をチェ
ックする。チェック方法は、異常受信回数が0の場合
(S95)、スレーブ局の重複エラーとし(S10
0)、正常受信回数を重複局数とする(S101)。異
常受信回数が0であり、正常受信回数が0の場合(S9
7)の場合、スレーブ局なしとする(S99)。異常受
信回数が0であり、正常受信回数が1の場合(S9
6)、スレーブ局正常とする(S98)。異常受信回数
が0でない場合、プロトコルエラーとしてテスト失敗と
する(S102)。
When the response message is normally received from the slave station (S90), the normal reception number is incremented by +1.
(S93). When the monitoring time that can surely receive the response message from the slave station has elapsed (S91),
The monitoring timer is reset (S94) and the reception state is checked. As a checking method, if the number of abnormal receptions is 0 (S95), a slave station duplication error is determined (S10).
0), the number of normal receptions is set as the number of duplicate stations (S101). If the abnormal reception count is 0 and the normal reception count is 0 (S9
In the case of 7), there is no slave station (S99). If the abnormal reception count is 0 and the normal reception count is 1 (S9
6) The slave station is set to normal (S98). If the number of abnormal receptions is not 0, the test fails as a protocol error (S102).

【0050】次に、スレーブ局の処理は、図10に示す
ように、自局宛伝文か否かをチェックして自局宛伝文の
場合(S103)レスポンスフレーム(データ)を作成
し(S104)、ラインドライバ51をアクティブに設
定して(S105)、送信権を要求する。重複送信エラ
ー信号が検出できず(S106)、送信権を得られた場
合、時間待ちt2をした(S111)後に、レスポンス
フレームをマスタ局に送信し(S112)、時間待ちt
3をした(S113)後、ラインドライバ51の送信ゲ
ートをインアクティブにする(S114)。送信権が得
られなかった場合、送信ゲートをインアクティブにし
(S107)、送信権を持っている局がレスポンスを送
信し終わるまでt2時間待ち(S108)、その棒状
材、レスポンス伝文を受信完了したか否かを判断し(S
109)、時間待ちt3(S110)をして再度ゲート
をアクティブにして(S105)、送信権を要求する。
送信権が得られるまで、この処理を繰り返す。また,こ
れらのテストで図20の2局(スレーブ局)5a、5b
の重複局が存在した場合におけるタイミングを図17に
示す。
Next, in the processing of the slave station, as shown in FIG. 10, it is checked whether or not the message is addressed to the own station (S103), a response frame (data) is created (S104), and the line is transmitted. The driver 51 is set to active (S105) and a transmission right is requested. When the duplicate transmission error signal cannot be detected (S106) and the transmission right is obtained, after waiting for time t2 (S111), the response frame is transmitted to the master station (S112) and waiting for time t
After 3 (S113), the transmission gate of the line driver 51 is made inactive (S114). If the transmission right is not obtained, the transmission gate is deactivated (S107), and waits t2 hours until the station having the transmission right finishes transmitting the response (S108), and the reception of the rod-shaped material and the response message is completed. It is judged whether or not (S
109), wait for time t3 (S110), activate the gate again (S105), and request the transmission right.
This process is repeated until the transmission right is obtained. Also, in these tests, the two stations (slave stations) 5a and 5b in FIG.
FIG. 17 shows the timing in the case where there is an overlapping station.

【0051】[0051]

【発明の効果】以上のように、この発明によれば、バス
式データリンクシステムの局番重複テストにおいて、指
定局はある局番に対し通信を行い、正常に通信できない
とき、再度指定局が自局に対し通信を行うことで局番の
抜けか、局番の重複かを判別して作業効率を飛躍的に向
上させることができる効果がある。
As described above, according to the present invention, in the station number duplication test of the bus-type data link system, the designated station communicates with a certain station number, and when the communication cannot be performed normally, the designated station again makes its own station. On the other hand, there is an effect that it is possible to dramatically improve the work efficiency by determining whether the station number is missing or the station number is duplicated by performing communication.

【0052】また、この発明によれば、バス伝送路形態
のネットワークユニットを介してデータ通信しているシ
ステムにおいて、指定局はある局番に対して通信を行
い、正常に通信できないとき、再度指定局が自局に対し
通信を行うことで局番の抜けか、局番の重複かを判別
し、作業効率を飛躍的に向上させることができる効果が
ある。
Further, according to the present invention, in a system in which data communication is performed via a network unit in the form of a bus transmission line, a designated station communicates with a certain station number, and when communication cannot be performed normally, the designated station is re-established. By communicating with itself, it is possible to determine whether the station number is missing or the station number is duplicated, and it is possible to dramatically improve the work efficiency.

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

【図1】この発明に係るマスタ局の局番重複テスト処理
動作を示すフローチャートである。
FIG. 1 is a flowchart showing a station number duplication test processing operation of a master station according to the present invention.

【図2】この発明に係るスレーブ局の処理動作を示すフ
ローチャートである。
FIG. 2 is a flowchart showing a processing operation of a slave station according to the present invention.

【図3】局番重複テスト処理を示すタイミングチャート
である。
FIG. 3 is a timing chart showing a station number duplication test process.

【図4】局番重複テスト処理を示すタイミングチャート
である。
FIG. 4 is a timing chart showing a station number duplication test process.

【図5】局番重複テスト処理を示すタイミングチャート
である。
FIG. 5 is a timing chart showing a station number duplication test process.

【図6】この発明に係る他の実施例に基づくマスタ局の
局番重複テスト処理動作を示すフローチャートである。
FIG. 6 is a flowchart showing a station number duplication test processing operation of a master station according to another embodiment of the present invention.

【図7】この発明に係る局番重複テストのマスタ局の処
理動作を示すフローチャートである。
FIG. 7 is a flow chart showing the processing operation of the master station of the station number duplication test according to the present invention.

【図8】この発明に係る局番重複テストのスレーブ局の
処理動作を示すフローチャートである。
FIG. 8 is a flowchart showing a processing operation of a slave station in the station number duplication test according to the present invention.

【図9】局番重複テストにおける正常時のタイミングチ
ャートである。
FIG. 9 is a timing chart of a normal station number duplication test.

【図10】局番重複テストにおける異常時のタイミング
チャートである。
FIG. 10 is a timing chart at the time of abnormality in the station number duplication test.

【図11】この発明に係るプログラマブルコントローラ
の通信インターフェースの概略構成を示す回路図であ
る。
FIG. 11 is a circuit diagram showing a schematic configuration of a communication interface of the programmable controller according to the present invention.

【図12】この発明に係る局番重複テストのスレーブ局
の処理動作を示すフローチャートである。
FIG. 12 is a flowchart showing a processing operation of a slave station in the station number duplication test according to the present invention.

【図13】この発明に係る局番重複テストのマスタ局の
処理動作を示すフローチャートである。
FIG. 13 is a flowchart showing the processing operation of the master station in the station number duplication test according to the present invention.

【図14】この発明に係る局番重複テストのマスタ局の
処理動作を示すフローチャートである。
FIG. 14 is a flowchart showing the processing operation of the master station of the station number duplication test according to the present invention.

【図15】この発明に係る局番重複テストのマスタ局の
処理動作を示すフローチャートである。
FIG. 15 is a flowchart showing the processing operation of the master station in the station number duplication test according to the present invention.

【図16】この発明に係る局番重複テストのスレーブ局
の処理動作を示すフローチャートである。
FIG. 16 is a flowchart showing a processing operation of a slave station in the station number duplication test according to the present invention.

【図17】この発明に係る局番重複テストの異常時にお
けるタイミングを示すタイミングチャートである。
FIG. 17 is a timing chart showing the timing when the station number duplication test according to the present invention is abnormal.

【図18】データリンク機能を有するプログラマブルコ
ントローラのハードウェア構成を示すブロック図であ
る。
FIG. 18 is a block diagram showing a hardware configuration of a programmable controller having a data link function.

【図19】図7に示したプログラマブルコントローラに
おける通信インタフェースの詳細を示す回路図である。
19 is a circuit diagram showing details of a communication interface in the programmable controller shown in FIG.

【図20】バス型データリンクシステムの構成を示すブ
ロック図である。
FIG. 20 is a block diagram showing a configuration of a bus type data link system.

【図21】従来におけるマスタ局のデータリンク処理動
作を示すフローチャートである。
FIG. 21 is a flowchart showing a data link processing operation of a conventional master station.

【図22】従来におけるスレーブ局のデータリンク処理
動作を示すフローチャートである。
FIG. 22 is a flowchart showing a conventional data link processing operation of a slave station.

【図23】従来におけるデータリンク処理を示すタイミ
ングチャートである。
FIG. 23 is a timing chart showing a conventional data link process.

【図24】従来におけるデータリンク処理を示すタイミ
ングチャートである。
FIG. 24 is a timing chart showing conventional data link processing.

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

1 リンク制御ユニット 2 シーケンス制御ユニット 3 重複送信検出回路 3a マスタ局のラインドライバのゲート 3b スレーブ局のラインドライバのゲート 4 マスタ局 5a スレーブ局 5b スレーブ局 51 ラインドライバ 52 ラインレシーバ 53 重複送信検出回路 1 Link control unit 2 Sequence control unit 3 Duplicate transmission detection circuit 3a Master station line driver gate 3b Slave station line driver gate 4 Master station 5a Slave station 5b Slave station 51 Line driver 52 Line receiver 53 Duplicate transmission detection circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 長瀬 正勝 名古屋市北区東大曽根町上五丁目1071番地 三菱電機メカトロニクスソフトウエア株 式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masakatsu Nagase 5107-1071, Kamie 5-chome, Higashioosone-cho, Kita-ku, Nagoya-shi Mitsubishi Electric Mechatronics Software Co., Ltd.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 バス型のトポロジーによりデータリンク
を構成する機能を有するプログラマブルコントローラの
局番重複テスト方法において、データリンク交信中に、
任意の局を局番重複テストを実行する局(マスタ局)と
して指定し、テストする局(スレーブ局)を指定し、前
記マスタ局はスレーブ局に対してコマンドフレームを送
信し、前記スレーブ局はコマンドフレームを受信し、ラ
インドライバのゲートを“アクティブ”に設定して一定
時間待ち、レスポンスフレームを送信して一定時間待
ち、前記ラインドライバのゲートを“ノンアクティブ”
に設定し、前記スレーブ局が重複していれば、前記レス
ポンスフレームは前記マスタ局に正常に受信されずタイ
ムアウトとなり、前記マスタ局はタイムアウト後自局宛
のコマンドフレームを送信し、正しく受信できるか否か
によりスレーブ局が存在するのか、スレーブ局が重複し
ているのかを判別することを特徴とするプログラマブル
コントローラの局番重複テスト方法。
1. A station number duplication test method for a programmable controller having a function of forming a data link by a bus type topology, during data link communication.
Any station is designated as a station (master station) to execute the station number duplication test, a station to be tested (slave station) is designated, the master station sends a command frame to the slave station, and the slave station sends a command. Receives a frame, sets the line driver gate to "active" and waits for a certain period of time, sends a response frame and waits for a certain period of time, and sets the line driver gate to "non-active"
If the slave stations are duplicated, the response frame is not normally received by the master station and times out, and after the timeout, the master station sends a command frame addressed to itself and can receive correctly. A station number duplication test method for a programmable controller, which is characterized by determining whether a slave station exists or whether a slave station is duplicated.
【請求項2】 バス型のトポロジーによりデータリンク
を構成する機能を有するプログラマブルコントローラの
局番重複テスト方法において、データリンク交信開始前
に、任意の局を局番重複テストを実行する局(マスタ
局)として指定し、前記データリンクを構成する全ての
局をテストする局(スレーブ局)として、前記マスタ局
はスレーブ局に対してコマンドフレームを送信し、前記
スレーブ局はコマンドフレームを受信し、ラインドライ
バのゲートを“アクティブ”に設定して一定時間待ち、
レスポンスフレームを送信して一定時間待ち、前記ライ
ンドライバのゲートを“ノンアクティブ”に設定し、前
記スレーブ局が重複していれば、前記レスポンスフレー
ムは前記マスタ局に正常に受信されずタイムアウトとな
り、前記マスタ局はタイムアウト後自局宛のコマンドフ
レームを送信し、正しく受信できるか否かによりスレー
ブ局が存在するのか、スレーブ局が重複しているのかを
判別することを特徴とするプログラマブルコントローラ
の局番重複テスト方法。
2. In a station number duplication test method for a programmable controller having a function of configuring a data link by a bus type topology, an arbitrary station is set as a station (master station) that executes a station number duplication test before starting data link communication. As a station (slave station) that designates and tests all stations configuring the data link, the master station transmits a command frame to the slave station, the slave station receives the command frame, and the line driver Set the gate to "active" and wait for a certain time,
After transmitting a response frame and waiting for a certain period of time, setting the gate of the line driver to “non-active”, and if the slave stations are duplicated, the response frame is not normally received by the master station and a timeout occurs, The master station transmits a command frame addressed to itself after a timeout, and determines whether there is a slave station or whether slave stations are duplicated depending on whether or not it can correctly receive the station frame number of the programmable controller. Duplicate test method.
【請求項3】 プログラマブルコントローラをバス伝送
路形態のネットワークユニットを介してデータを通信す
るプログラマブルコントローラ用ネットワークを用い、
任意の局を局番重複テストを実行する局(マスタ局)と
して指定し、前記マスタ局からテストする局(スレーブ
局)にテスト伝文を送信し、前記スレーブ局からのレス
ポンス伝文の受信状態によりスレーブ局の局番が重複し
ているか、スレーブ局が存在しているかを検出すること
を特徴とするプログラマブルコントローラの局番重複テ
スト方法。
3. A programmable controller network for communicating data through a programmable controller via a network unit in the form of a bus transmission path,
Designate any station as the station (master station) that executes the station number duplication test, send a test message from the master station to the test station (slave station), and check the reception status of the response message from the slave station. A station number duplication test method for a programmable controller, characterized by detecting whether station numbers of slave stations are duplicated or whether slave stations exist.
【請求項4】 前記スレーブ局からのレスポンス伝文の
受信状態によりスレーブ局の局番が重複していることを
検出したとき、該検出された局番重複のスレーブ局が送
信できないようにすることを特徴とする請求項3記載の
プログラマブルコントローラの局番重複テスト方法。
4. When it is detected that the station numbers of the slave stations are duplicated according to the reception status of the response message from the slave station, the slave stations having the duplicated station numbers are prevented from transmitting. The station number duplication test method for a programmable controller according to claim 3.
【請求項5】 プログラマブルコントローラをバス伝送
路形態のネットワークユニットを介してデータを通信す
るプログラマブルコントローラ用ネットワークを用い、
任意の局を局番重複テストを実行する局(マスタ局)と
して指定し、テストする局(スレーブ局)を指定し、局
番重複局を検出したとき、前記マスタ局から局番重複の
スレーブ局へ定期的にテストを実行し、重複エラーがな
くなったとき、自動復列させることを特徴とするプログ
ラマブルコントローラの局番重複テスト方法。
5. A programmable controller network for communicating data through a programmable controller via a network unit in the form of a bus transmission path,
When an arbitrary station is designated as the station (master station) that executes the station number duplication test, the station (slave station) to be tested is designated, and when a station number duplication station is detected, the master station periodically sends it to the slave station with the station number duplication. A method of testing the station number duplication of a programmable controller, which is characterized in that when the duplication error disappears, the automatic recovery is performed.
【請求項6】 プログラマブルコントローラをバス伝送
路形態のネットワークユニットを介してデータを通信す
るプログラマブルコントローラ用ネットワークを用い、
任意の局から各プログラマブルコントローラの局番の設
定状態をテストし、該局番が重複している重複局数を測
定することを特徴とするプログラマブルコントローラの
局番重複テスト方法。
6. A programmable controller network for communicating data through a programmable controller via a network unit in the form of a bus transmission line,
A station number duplication test method for a programmable controller, characterized in that the station number setting state of each programmable controller is tested from an arbitrary station and the number of duplicate stations having the same station number is measured.
JP5077174A 1992-06-25 1993-04-02 Station number duplication test method for programmable controller Expired - Lifetime JP2790234B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5077174A JP2790234B2 (en) 1992-06-25 1993-04-02 Station number duplication test method for programmable controller

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP4-167148 1992-06-25
JP16714892 1992-06-25
JP5077174A JP2790234B2 (en) 1992-06-25 1993-04-02 Station number duplication test method for programmable controller

Publications (2)

Publication Number Publication Date
JPH0675612A true JPH0675612A (en) 1994-03-18
JP2790234B2 JP2790234B2 (en) 1998-08-27

Family

ID=26418278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5077174A Expired - Lifetime JP2790234B2 (en) 1992-06-25 1993-04-02 Station number duplication test method for programmable controller

Country Status (1)

Country Link
JP (1) JP2790234B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8734067B2 (en) 2009-03-13 2014-05-27 Fuji Jukogyo Kabushiki Kaisha Drill
US9168593B2 (en) 2008-12-26 2015-10-27 Fuji Jukogyo Kabushiki Kaisha Drill
US9180531B2 (en) 2008-12-23 2015-11-10 Fuji Jukogyo Kabushiki Kaisha Drill and drilling method for workpiece
US9656328B2 (en) 2011-03-30 2017-05-23 Fuji Jukogyo Kabushiki Kaisha Cutting tool
US9827617B2 (en) 2014-05-22 2017-11-28 Subaru Corporation Drill and method of manufacturing drill
KR20190028711A (en) 2017-08-22 2019-03-19 스미또모 덴꼬오 하드메탈 가부시끼가이샤 Rotary cutting tool and manufacturing method thereof
US10547535B2 (en) 2016-12-22 2020-01-28 Mitsubishi Electric Corporation Relay device, display device, connection information transmission method, and network configuration display method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9180531B2 (en) 2008-12-23 2015-11-10 Fuji Jukogyo Kabushiki Kaisha Drill and drilling method for workpiece
US9981322B2 (en) 2008-12-23 2018-05-29 Subaru Corporation Drill and drilling method for workpiece
US9168593B2 (en) 2008-12-26 2015-10-27 Fuji Jukogyo Kabushiki Kaisha Drill
US8734067B2 (en) 2009-03-13 2014-05-27 Fuji Jukogyo Kabushiki Kaisha Drill
US9656328B2 (en) 2011-03-30 2017-05-23 Fuji Jukogyo Kabushiki Kaisha Cutting tool
US9827617B2 (en) 2014-05-22 2017-11-28 Subaru Corporation Drill and method of manufacturing drill
US10547535B2 (en) 2016-12-22 2020-01-28 Mitsubishi Electric Corporation Relay device, display device, connection information transmission method, and network configuration display method
KR20190028711A (en) 2017-08-22 2019-03-19 스미또모 덴꼬오 하드메탈 가부시끼가이샤 Rotary cutting tool and manufacturing method thereof

Also Published As

Publication number Publication date
JP2790234B2 (en) 1998-08-27

Similar Documents

Publication Publication Date Title
US4745597A (en) Reconfigurable local area network
US20040001449A1 (en) System and method for supporting automatic protection switching between multiple node pairs using common agent architecture
JPH05276175A (en) Data communication method and communication system
US7424640B2 (en) Hybrid agent-oriented object model to provide software fault tolerance between distributed processor nodes
JP3123417B2 (en) Communication method in small-scale network and control device and subordinate device applied to the communication method
JP2790234B2 (en) Station number duplication test method for programmable controller
JPH08510615A (en) Communication network having a plurality of stations and operating method thereof
KR920009402B1 (en) Communication device
JP3251440B2 (en) Station number duplicate station detection method, station number duplicate station return method, station number duplicate station number measurement method, and station number duplicate station disconnection method of programmable controller
JPH10232704A (en) Duplex programmable controller
JP2501335B2 (en) Gateway backup method
JPH04503434A (en) How to monitor computer networks
JPS62206946A (en) Remote test circuit
JP3576001B2 (en) Optical double loop transmission device
JPH0630009A (en) Master back-up system for ring-shaped lan
JP2880021B2 (en) Station number duplication state / connection order state confirmation method in programmable controller network system
JP4564412B2 (en) Network device, network system, and toughness confirmation method
JP3171443B2 (en) Multiplex transmission system and primary station in the multiple transmission system
JP5052779B2 (en) Inter-station test execution method in ring network system and ring network system
JP3161243B2 (en) Data transmission system for distributed control
JPH0764472A (en) Remote i/o system of programmable controller
JPH03277032A (en) Token ring system
JP2644204B2 (en) Signal link test execution judgment method
JP2001060959A (en) High reliability system
JPS63267038A (en) Communication system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080612

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20080612

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090612

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100612

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100612

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110612

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20130612

Year of fee payment: 15