JPH05252168A - Data link method - Google Patents

Data link method

Info

Publication number
JPH05252168A
JPH05252168A JP4044733A JP4473392A JPH05252168A JP H05252168 A JPH05252168 A JP H05252168A JP 4044733 A JP4044733 A JP 4044733A JP 4473392 A JP4473392 A JP 4473392A JP H05252168 A JPH05252168 A JP H05252168A
Authority
JP
Japan
Prior art keywords
data
station
local
stations
master
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
JP4044733A
Other languages
Japanese (ja)
Other versions
JP3024345B2 (en
Inventor
Toshiya Takahashi
俊哉 高橋
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 JP4044733A priority Critical patent/JP3024345B2/en
Publication of JPH05252168A publication Critical patent/JPH05252168A/en
Application granted granted Critical
Publication of JP3024345B2 publication Critical patent/JP3024345B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

PURPOSE:To obtain a data link method enabling plural master stations to be present and also, easy to configure a multiplex system when cyclic data communication is performed. CONSTITUTION:A data link parameter consisting of a master station number at every master station 1 or 2, the number of corresponding local stations, a local station number at every local stations 36, an output data leading address to a corresponding local station, output data size, the relative address of output data, input data leading addresses from the local stations 3-6, input data size, and the relative address of input data is inputted to the master stations 1, 2 and the local stations 3-6 in advance, and a message frame including the data addressed to corresponding plural local stations 3-6 from either the plural master stations 1, 2 when a timing is the one at which its own station performs transmission, and the message frame including the data addressed to its own station from the plural local stations 3-6 is received.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はマスタ局と対応する複
数のロ−カル局間で、ト−クンバッシング方式にて1:
1でサイクリックに常時データ交信を行なうデータリン
ク方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention uses a token-bashing method between a master station and a plurality of local stations corresponding to each other.
The present invention relates to a data link method for performing constant data communication cyclically in 1.

【0002】[0002]

【従来の技術】制御対象をシーケンス制御するシーケン
ス制御部とサイクリックに交信を行なうデータリンク制
御部とを備えた複数のプログラマブルコントローラをマ
スタ局と対応する複数のロ−カル局とに位置付け、上記
マスタ局及び上記複数のロ−カル局間で、ト−クンバッ
シング方式にて1:1でサイクリックに常時データ交信
を行なうデータリンクが多用されている。
2. Description of the Related Art A plurality of programmable controllers having a sequence controller for controlling a sequence of a controlled object and a data link controller for cyclically communicating are positioned in a master station and a plurality of corresponding local stations. A data link is frequently used in which the master station and the above-mentioned plurality of local stations perform constant data communication cyclically at a ratio of 1: 1 by the token-bashing method.

【0003】図10は従来のデータリンク装置の構成を
示す説明図である。図において、1〜4は、各々データ
リンクを行うプログラマブルコントローラ(以下、PC
と言う)である。1は、データリンクをコントロールす
るマスタ局(以下、MPC1と言う)と位置付されたP
Cであり、3及び4は、MPC1とそれぞれ1:1でデ
ータリンクを行うローカル局(以下、LPC3及びLP
C4)と位置付されたPCである。
FIG. 10 is an explanatory diagram showing the structure of a conventional data link device. In the figure, 1 to 4 are programmable controllers (hereinafter, referred to as PC
Is said). 1 is a P station positioned as a master station (hereinafter referred to as MPC1) that controls a data link.
C is a local station that performs a data link with MPC1 at a ratio of 1: 1 (hereinafter, LPC3 and LP).
It is a PC positioned as C4).

【0004】図11は、PC1〜4の概略構成を示す説
明である。図11において、7は制御対象をシーケンス
制御するシーケンス制御部、8は、他のPCとサイクリ
ック交信を行うデータリンク制御部、9はシーケンス制
御部7とデータリンク制御部8との間でサイクリックデ
ータをそれぞれリード/ライトするためのコモンメモリ
である。
FIG. 11 is an illustration showing a schematic configuration of the PCs 1 to 4. In FIG. 11, 7 is a sequence control unit that controls the sequence of the controlled object, 8 is a data link control unit that performs cyclic communication with another PC, and 9 is a sequence between the sequence control unit 7 and the data link control unit 8. It is a common memory for reading / writing click data.

【0005】図12は、MPC1とLPC3及びLPC
4との間でサイクリックに交信を行うリンク入出力(マ
スタ局からローカル局にサイクリックに出力するデータ
を以下Yと言い、ローカル局からマスタ局にサイクリッ
クに入力するデータを以下Xと言う)のイメージを示す
説明図である。図12において、60はリンク入出力全
体を示し、61は、マスタ局内のリンク入出力の割り付
け状態を示し、63及び64はLPC3及びLPC4そ
れぞれの割り付け状態を示したものである。
FIG. 12 shows MPC1, LPC3, and LPC.
Link input / output for cyclic communication with 4 (Data that is cyclically output from the master station to the local station is referred to as Y below, and data that is cyclically input from the local station to the master station is referred to as X below. ) Is an explanatory diagram showing an image of FIG. In FIG. 12, reference numeral 60 denotes the entire link input / output, 61 denotes the link input / output allocation state in the master station, and 63 and 64 denote the allocation states of LPC3 and LPC4, respectively.

【0006】図13は、図12で示したリンク入出力の
割り付けを実際に実行するためのリンクパラメータ70
の構成を示す説明図である。図13においてNはデータ
リンクを行うローカル局数、NoはLPC3の局番、X
adrはLPC3と交信を行うXの先頭アドレス、Xs
izeは上記Xのデータサイズ、Yadrは同じくLP
C3と交信を行うYの先頭アドレス、Ysizeは、上
記Yのデータサイズを示す。LPC4に対する同様の情
報もセットされている。
FIG. 13 shows a link parameter 70 for actually executing the link input / output allocation shown in FIG.
It is explanatory drawing which shows the structure of. In FIG. 13, N is the number of local stations that perform data link, No is the station number of LPC3, X
adr is the start address of X that communicates with LPC3, Xs
size is the data size of X above, and Yadr is also LP.
The Y start address for communicating with C3, Ysize, indicates the Y data size. Similar information for LPC4 is also set.

【0007】図14は、サイクリック交信を行うための
伝文のフレーム21の構造を示す図であり、ハイレベル
データリンク制御手順(HDLC手順)として知られて
いるフレーム構成に準拠している。ここで、Fはフラグ
シーケンス、Aは送信先アドレス、Cは制御部(コマン
ド)、Iは情報部、FCSはフレーム検査シーケンスを
各々表す。
FIG. 14 is a diagram showing the structure of a frame 21 of a message for performing cyclic communication, which is based on a frame structure known as a high level data link control procedure (HDLC procedure). Here, F is a flag sequence, A is a destination address, C is a control unit (command), I is an information unit, and FCS is a frame inspection sequence.

【0008】図15は、図13のパラメータに基づきマ
スタ局が出力データを送信するためのフレーム71の構
成で、Aは、ローカル局各局を示す送信先アドレス、Y
Cは出力(Y)コマンド、YDは出力データを各々表
す。
FIG. 15 shows the structure of a frame 71 for the master station to transmit output data based on the parameters of FIG. 13, where A is the destination address indicating each station of the local station, and Y is the destination address.
C represents an output (Y) command, and YD represents output data.

【0009】図16は、図13のパラメータに基づきロ
ーカル局が入力データを送信するためのフレーム72の
構成で、Aは、マスタ局を示す送信先アドレス、XCは
入力(X)コマンド、XDは入力データを各々表す。
FIG. 16 shows the structure of a frame 72 for the local station to transmit input data based on the parameters of FIG. 13, where A is the destination address indicating the master station, XC is the input (X) command, and XD is Represents each input data.

【0010】次に動作について説明する。図10に示し
た各PC1〜4において、通常のデータリンク制御部8
が図13で示すパラメータをデータリンク前に何等かの
方法で入手する。例えばサイクリック交信前に、パラメ
ータ交信をマスタ局と各ローカル局で行う。各局は、こ
のデータリンクパラメータの情報から各局が行うデータ
リンク範囲をチェックし、以後、この情報に基づきサイ
クリック交信を行えるようにする。
Next, the operation will be described. In each of the PCs 1 to 4 shown in FIG. 10, a normal data link control unit 8
Acquires the parameters shown in FIG. 13 by some method before data link. For example, before cyclic communication, parameter communication is performed between the master station and each local station. Each station checks the data link range performed by each station from the information of this data link parameter, and thereafter enables cyclic communication based on this information.

【0011】次に、MPC1のデータリンク制御部8
は、シーケンス制御部7の動作に関係無く、コモンメモ
リ9から出力(Y)データをリードしてLPC3及びL
PC4に出力し、かつ、LPC3及びLPC4から入力
(X)データを入力してコモンメモリ9にライトするこ
とで一連のサイクリック交信を行う。また、シーケンス
制御部7は、必要に応じてコモンメモリ9をリード/ラ
イトすることで、サイクリックデータをアクセスする。
Next, the data link control unit 8 of the MPC 1
Irrespective of the operation of the sequence control unit 7, the output (Y) data is read from the common memory 9 and LPC3 and LPC are read.
A series of cyclic communication is performed by outputting to PC4, inputting (X) data from LPC3 and LPC4, and writing to the common memory 9. The sequence controller 7 also accesses the cyclic data by reading / writing the common memory 9 as necessary.

【0012】更に、LPC3及びLPC4のデータリン
ク制御部8は、逆にMPC1からの出力(Y)データを
入力してコモンメモリ9にライトを行い、コモンメモリ
9から入力(X)データをリードして、MPC1に出力
することで一連のサイクリック交信を行う。LPC3及
びLPC4のシーケンス制御部7は、MPC1のシーケ
ンス制御部7と同様の動作を行う。
Further, the data link control units 8 of the LPC3 and LPC4, conversely, input the output (Y) data from the MPC1, write to the common memory 9, and read the input (X) data from the common memory 9. Then, a series of cyclic communication is performed by outputting to MPC1. The sequence control unit 7 of the LPC3 and LPC4 performs the same operation as the sequence control unit 7 of the MPC1.

【0013】図17はMPC1のデータリンク制御部8
における送受信時の処理シーケンスのフロー図を示す。
図において、MPC1はサイクリック交信を行うローカ
ル局数をクリアし(S80)、LPC3に出力(Y)す
るデータをコモンメモリ9からリードして図15で示す
様なフレーム71でLPC3に送信を行い(S81)、
LPC3からの図16で示す様なフレーム72の受信完
了を待ち(S82)、受信完了したらLPC3からの入
力(X)データをコモンメモリ9にライトする(S8
3)。次に全LPCとのサイクリック交信が完了したか
をチェックし(S84)、完了未であるから次のLPC
4をセットする(S85)。そして、ステップS81か
らS85を繰り返し、全LPCとのサイクリック交信が
完了したら、ステップS80に戻り次のサイクルを実行
する。
FIG. 17 shows the data link controller 8 of MPC1.
The flowchart of the processing sequence at the time of transmission / reception in is shown.
In the figure, MPC1 clears the number of local stations that perform cyclic communication (S80), reads the data output (Y) to LPC3 from common memory 9, and transmits it to LPC3 in frame 71 as shown in FIG. (S81),
The completion of reception of the frame 72 from the LPC 3 as shown in FIG. 16 is waited (S82), and when the reception is completed, the input (X) data from the LPC 3 is written to the common memory 9 (S8).
3). Next, it is checked whether or not the cyclic communication with all LPCs is completed (S84), and the next LPC is not completed.
4 is set (S85). Then, steps S81 to S85 are repeated, and when cyclic communication with all LPCs is completed, the process returns to step S80 to execute the next cycle.

【0014】図18はLPC3及びLPC4のデータリ
ンク制御部8における送受信時の処理シーケンスのフロ
ー図を示す。図において、LPC3はMPC1からの図
20で示す様なフレーム71の受信を待ち(S90)、
受信完了したらMPC1の出力(Y)データをコモンメ
モリ9にライトする(S91)。次に、MPC1へ入力
(X)するデータをコモンメモリ9からリードして図1
6で示す様なフレーム72でMPC1へ送信を行い(S
92)、ステップS90の処理にもどる。
FIG. 18 shows a flow chart of a processing sequence at the time of transmission / reception in the data link control unit 8 of the LPC3 and LPC4. In the figure, LPC3 waits for reception of frame 71 from MPC1 as shown in FIG. 20 (S90),
When the reception is completed, the output (Y) data of MPC1 is written in the common memory 9 (S91). Next, the data to be input (X) to the MPC 1 is read from the common memory 9 and the data shown in FIG.
A frame 72 as shown by 6 is transmitted to MPC1 (S
92), and returns to the process of step S90.

【0015】図19はMPC1のシーケンス制御部7に
おけるサイクリックデータリード/ライト時の処理シー
ケンスのフロー図を示す。図において、MPC1のシー
ケンス制御部7は、まず、出力(Y)データをシーケン
ス処理に基づきコモンメモリ9にライトし(S40)、
コモンメモリ9より入力(X)データをリードしてシー
ケンス処理を行う(S41)。
FIG. 19 shows a flow chart of a processing sequence at the time of cyclic data read / write in the sequence controller 7 of the MPC 1. In the figure, the sequence control unit 7 of the MPC 1 first writes the output (Y) data in the common memory 9 based on the sequence processing (S40),
Input (X) data is read from the common memory 9 and sequence processing is performed (S41).

【0016】図20はLPC3及びLPC4のシーケン
ス制御部7におけるサイクリックデータリード/ライト
時の処理シーケンスのフロー図を示す。図において、L
PC3及びLPC4のシーケンス制御部7はまず入力
(X)データをシーケンス処理に基づきコモンメモリ9
にライトし(S45)、コモンメモリ9より出力(Y)
データをリードしてシーケンス処理を行う(S46)。
FIG. 20 shows a flow chart of a processing sequence at the time of cyclic data read / write in the sequence control section 7 of the LPC3 and LPC4. In the figure, L
The sequence control unit 7 of the PC 3 and the LPC 4 firstly processes the input (X) data by the common memory 9 based on the sequence processing.
Write to (S45) and output from common memory 9 (Y)
Data is read and sequence processing is performed (S46).

【0017】図21は、サイクリック交信を2重化した
場合の概略構成を示す説明図である。図において、1は
マスタ局(MPC1)2は待機マスタ局(MPC2)で
ある。3A及び4Aはローカル局(LPC3A及びLP
C4A)示す。
FIG. 21 is an explanatory diagram showing a schematic configuration when the cyclic communication is duplicated. In the figure, 1 is a master station (MPC1) and 2 is a standby master station (MPC2). 3A and 4A are local stations (LPC 3A and LP
C4A) is shown.

【0018】図22は、2重化した場合のPCのローカ
ル局LPC3A及びLPC4Aの概略構成を示す説明図
であり、LPC3A及び4Aにおいて、7は図2と同様
にシーケンスを制御するシーケンス制御部、8はMPC
1とサイクリック交信を行うデータリンク制御部8A及
びMPC2とサイクリック交信を行うデータリンク制御
部8B、9はシーケンス制御部とデータリンク制御部1
及びデータリンク制御部2との間でサイクリックデータ
をそれぞれリード/ライトするためのコモンメモリ9A
及びコモンメモリ9Bである。
FIG. 22 is an explanatory diagram showing a schematic configuration of the local stations LPC3A and LPC4A of the PC in the case of duplication. In the LPCs 3A and 4A, 7 is a sequence control unit for controlling the sequence as in FIG. 8 is MPC
1 is a data link control unit 8A that performs cyclic communication with the MPC 2 and a data link control unit 8B and 9 that performs cyclic communication with the MPC 2 are a sequence control unit and a data link control unit 1.
And a common memory 9A for reading / writing cyclic data from / to the data link control unit 2, respectively.
And a common memory 9B.

【0019】図21で示す様に、サイクリック交信を2
重化した場合の動作について説明する。図21で示した
MPC1及びMPC2の動作は図10に示したものの動
作例と同様であるが、LPC3A及びLPC4Aでは、
図22で示す様にデータリンク制御部8A及びデータリ
ンク制御部8Bで構成されている。各々のデータリンク
制御部は独立しているため、図10に示したものの動作
例と同様であるが、シーケンス制御部7では、図23で
示すようなサイクリックデータリード/ライト時の処理
シーケンスが実施される。
As shown in FIG. 21, two cyclic communication is performed.
The operation in the case of duplication will be described. The operation of MPC1 and MPC2 shown in FIG. 21 is similar to the operation example of that shown in FIG. 10, but in LPC3A and LPC4A,
As shown in FIG. 22, it is composed of a data link control unit 8A and a data link control unit 8B. Since each data link control unit is independent, it is similar to the operation example shown in FIG. 10, but the sequence control unit 7 has a processing sequence at the time of cyclic data read / write as shown in FIG. Be implemented.

【0020】まず、入力(X)データをシーケンス処理
に基づきコモンメモリ9A、コモンメモリ9Bにライト
し(S100)、次に、データリンク制御部8Aが正常
か、つまりMPC1が正常かのチェックを行い(S10
1)、正常ならば、データリンク制御部8Aつまりコモ
ンメモリ9Aより出力(Y)データをリードしてシーケ
ンス処理を行う(S102)。もしデータリンク制御部
8Aが異常ならば、データリンク制御部8Bが正常か、
つまりMPC2が、正常かのチェックをおこない(S1
03)、正常ならば、データリンク制御部8Bつまりコ
モンメモリ9Bより出力(Y)データをリードしてシー
ケンス処理を行う(S104)。もし、両データリンク
制御部が8A、8Bが異常ならばエラー処理を行う(S
105)。
First, the input (X) data is written to the common memory 9A and the common memory 9B based on the sequence processing (S100), and then it is checked whether the data link control unit 8A is normal, that is, MPC1 is normal. (S10
1) If normal, the output (Y) data is read from the data link control unit 8A, that is, the common memory 9A, and sequence processing is performed (S102). If the data link control unit 8A is abnormal, is the data link control unit 8B normal?
In other words, MPC2 checks whether it is normal (S1
03), if normal, the output (Y) data is read from the data link controller 8B, that is, the common memory 9B, and the sequence processing is performed (S104). If both data link control units 8A and 8B are abnormal, error processing is performed (S
105).

【0021】[0021]

【発明が解決しようとする課題】従来のPCによるデー
タリンクは、以上のように構成されているので、第1に
1データリンク中にマスタ局は、1局のみしか存在でき
ず、また、1サイクルを実現するためにマスタ局は、ロ
ーカル局数分それぞれ別々に転送されるため、交信時間
が長くかかり、更に、2重化システムを実現するために
データリンク制御部が複数枚必要であるなどの問題点が
あった。
Since the conventional PC-based data link is configured as described above, firstly, only one master station can exist in one data link. In order to realize the cycle, the master stations are separately transferred for the number of local stations, so the communication time is long, and more than one data link control unit is required to realize the duplex system. There was a problem.

【0022】この発明は、上記のような問題点を解決す
るためになされたもので、マスタ局の局数の制限を無く
し、さらに1サイクルの交信時間を短縮でき、容易に多
重化システムを実現できるデータリンク方法を得ること
を目的とする。
The present invention has been made in order to solve the above-mentioned problems, and eliminates the limitation of the number of master stations, and further shortens the communication time of one cycle, thus easily realizing a multiplexing system. The purpose is to obtain a possible data link method.

【0023】[0023]

【課題を解決するための手段】第1の発明に係わるデー
タリンク方法は、複数のマスタ局と対応する複数のロ−
カル局間で、ト−クンバッシング方式にて1:1でサイ
クリックに常時データ交信を行なうに際し、各マスタ局
ごとのマスタ局番号、対応するロ−カル局数、各ロ−カ
ル局ごとのロ−カル局番号、対応する上記ロ−カル局へ
の出力データ先頭アドレス、上記出力データサイズ、上
記出力データの相対アドレス、上記ロ−カル局からの入
力データ先頭アドレス、上記入力データサイズ、上記入
力データの相対アドレスとからなるデータリンクパラメ
−タを上記複数のマスタ局の何れかより、他のマスタ局
及び各ロ−カル局へ予め出力する段階と、上記複数のマ
スタ局の何れかにて、自局が送信するタイミングかをチ
ェックし、自局が送信するタイミングであれば対応する
上記複数のロ−カル局宛のデータを含む伝文フレームを
送信する段階と、上記複数のロ−カル局から自局宛のデ
ータを含む伝文フレームを受信する段階とからなるもの
である。
A data link method according to a first aspect of the present invention is directed to a plurality of master stations and a plurality of rosters corresponding to the master stations.
When cyclically communicating 1: 1 cyclically between Cull stations using the token-bashing method, the master station number of each master station, the corresponding number of local stations, and the number of each local station Local station number, corresponding output data start address to the local station, the output data size, the output data relative address, input data start address from the local station, the input data size, the above A step of outputting a data link parameter consisting of a relative address of input data from one of the plurality of master stations to another master station and each of the local stations in advance, and one of the plurality of master stations. A step of transmitting a message frame including data addressed to the plurality of corresponding local stations if the timing of transmitting data is checked by the local station. Serial plurality of Russia - in which the local station comprising a step of receiving the Denbun frames containing data addressed to the own station.

【0024】第2の発明に係わるデータリンク方法は、
複数のマスタ局と対応する複数のロ−カル局間で、ト−
クンバッシング方式にて1:1でサイクリックに常時デ
ータ交信を行なうに際し、各マスタ局ごとのマスタ局番
号、対応するロ−カル局数、各ロ−カル局ごとのロ−カ
ル局番号、対応する上記ロ−カル局への出力データ先頭
アドレス、上記出力データサイズ、上記出力データの相
対アドレス、上記ロ−カル局からの入力データ先頭アド
レス、上記入力データサイズ、上記入力データの相対ア
ドレスとからなるデータリンクパラメ−タを上記複数の
マスタ局の何れかから上記複数のロ−カル局に予め入力
する段階と、上記複数のロ−カル局にて、対応するマス
タ局から自局宛のデータを含む伝文フレームを受信した
かをチェックし、受信しておれば自局宛のデータを取り
込む段階と、自局が送信するタイミングかをチェック
し、自局が送信するタイミングであれば対応するマスタ
局宛のデータを含む伝文フレームを送信する段階とから
なるものである。
A data link method according to the second invention is
Between the master stations and the corresponding local stations,
When performing constant 1: 1 cyclic data communication with the Kumbashing method, the master station number for each master station, the number of corresponding local stations, the local station number for each local station, and the corresponding From the output data start address to the local station, the output data size, the output data relative address, the input data start address from the local station, the input data size, the input data relative address Data link parameters from one of the plurality of master stations to the plurality of local stations in advance, and data addressed to the own station from the corresponding master station at the plurality of local stations. Checks whether a message frame containing a message has been received, and if so, checks the stage at which the data addressed to the own station is captured and the timing at which the own station transmits The Denbun frames containing data addressed to the master station corresponding If timing is made of a step of transmitting.

【0025】第3の発明に係わるデータリンク方法は、
主マスタ局、待機マスタ局及び複数のロ−カル局とを備
え、上記主マスタ局と上記複数のロ−カル局間で、ト−
クンバッシング方式にて1:1でサイクリックに常時デ
ータ交信するに際し、上記複数のロ−カル局は上記主マ
スタ局と正常にリンクしているかチェックし、正常なら
ば上記主マスタ局から送信された自局宛のデータを含む
伝文フレームを受信して取り込み、もし正常でなければ
上記待機マスタ局と正常にリンクしているかチェック
し、正常ならば上記待機マスタ局から送信された自局宛
のデータを含む伝文フレームを受信して取り込む段階と
からなるものである。
The data link method according to the third invention is
A main master station, a standby master station, and a plurality of local stations are provided, and the main master station and the plurality of local stations are connected to each other.
When performing constant 1: 1 cyclic data communication using the Kumbashing method, it is checked whether the plurality of local stations are normally linked to the main master station. If they are normal, the data is transmitted from the main master station. Receives and captures a message frame containing data addressed to its own station, and if it is not normal, checks if it is normally linked to the above standby master station, and if it is normal, it is addressed to its own station sent from the above standby master station. The step of receiving and capturing a message frame including the data of the above.

【0026】[0026]

【作用】第1の発明においては、複数のマスタ局と対応
する複数のロ−カル局間で、ト−クンバッシング方式に
て1:1でサイクリックに常時データ交信を行なうのに
先立ち、各マスタ局ごとのマスタ局番号、対応するロ−
カル局数、各ロ−カル局ごとのロ−カル局番号、対応す
る上記ロ−カル局への出力データ先頭アドレス、上記出
力データサイズ、上記出力データの相対アドレス、上記
ロ−カル局からの入力データ先頭アドレス、上記入力デ
ータサイズ、上記入力データの相対アドレスとからなる
データリンクパラメ−タが上記複数のマスタ局の何れか
より、他のマスタ局及び各ロ−カル局へ出力され、上記
複数のマスタ局の何れかにて、自局が送信するタイミン
グかがチェックされ、自局が送信するタイミングであれ
ば対応する上記複数のロ−カル局宛のデータを含む伝文
フレームが送信され、上記複数のロ−カル局から自局宛
のデータを含む伝文フレームが受信される。
According to the first aspect of the present invention, prior to constant cyclic data communication at a ratio of 1: 1 between a plurality of master stations and a plurality of corresponding local stations by the token-bashing method, each of the stations is provided. Master station number for each master station and the corresponding
The number of local stations, the local station number for each local station, the start address of the output data to the corresponding local station, the output data size, the relative address of the output data, the local address from the local station. A data link parameter consisting of the input data start address, the input data size, and the relative address of the input data is output from any of the plurality of master stations to the other master station and each of the local stations. At any of the plurality of master stations, it is checked whether or not the transmission timing of the own station is transmitted, and if it is the transmission timing of the own station, a message frame including the data addressed to the corresponding plurality of local stations is transmitted. , A message frame including data addressed to itself is received from the plurality of local stations.

【0027】第2の発明においては、複数のマスタ局と
対応する複数のロ−カル局間で、ト−クンバッシング方
式にて1:1でサイクリックに常時データ交信を行なう
のに先立ち、各マスタ局ごとのマスタ局番号、対応する
ロ−カル局数、各ロ−カル局ごとのロ−カル局番号、対
応する上記ロ−カル局への出力データ先頭アドレス、上
記出力データサイズ、上記出力データの相対アドレス、
上記ロ−カル局からの入力データ先頭アドレス、上記入
力データサイズ、上記入力データの相対アドレスとから
なるデータリンクパラメ−タが上記複数のマスタ局の何
れかから上記複数のロ−カル局に入力され、上記複数の
ロ−カル局にて、対応するマスタ局から自局宛のデータ
を含む伝文フレームが受信されたかをチェックされ、受
信しておれば自局宛のデータが取り込まれ、自局が送信
するタイミングかをチェックされ、自局が送信するタイ
ミングであれば対応するマスタ局宛のデータを含む伝文
フレームが送信される。
In the second aspect of the present invention, prior to constant cyclic data communication in a 1: 1 ratio between the plurality of local stations and the plurality of corresponding local stations by the token-bashing method. Master station number for each master station, corresponding number of local stations, local station number for each local station, corresponding start address of output data to the above local station, above output data size, above output Relative address of data,
A data link parameter consisting of the input data start address from the local station, the input data size, and the relative address of the input data is input to the plurality of local stations from any of the plurality of master stations. Then, the plurality of local stations checks whether or not a message frame including data addressed to the own station is received from the corresponding master station. It is checked whether the transmission timing is from the station. If the transmission timing is from the station itself, a message frame including data addressed to the corresponding master station is transmitted.

【0028】第3の発明においては、主マスタ局と複数
のロ−カル局間で、ト−クンバッシング方式にて1:1
でサイクリックに常時データ交信するに際し、上記複数
のロ−カル局にて上記主マスタ局と正常にリンクしてい
るかチェックされ、正常ならば上記主マスタ局から送信
された自局宛のデータを含む伝文フレームが受信されて
取り込まれ、もし正常でなければ上記待機マスタ局と正
常にリンクしているかチェックされ、正常ならば上記待
機マスタ局から送信された自局宛のデータを含む伝文フ
レームが受信されて取り込まれる。
According to the third aspect of the present invention, the main master station and the plurality of local stations are arranged in a 1: 1 ratio by the token combing system.
When cyclically communicating data continuously with, check whether the multiple local stations are normally linked to the main master station, and if normal, send the data addressed to the own station sent from the main master station. A message frame containing the received message frame is received, and if it is not normal, it is checked whether it is normally linked with the standby master station. If it is normal, a message containing the data addressed to its own station transmitted from the standby master station. The frame is received and captured.

【0029】[0029]

【実施例】実施例1.第1及び第2の発明の一実施例を
図1〜図7により説明する。図中、従来例と同じ符号で
示されたものは従来例のそれと同一もしくは同等なもの
を示す。なお、データリンク装置としてのプログラマブ
ルコントローラの構成は従来例において説明した図11
のものと同一であり、改めて説明することを省略する。
EXAMPLES Example 1. An embodiment of the first and second inventions will be described with reference to FIGS. In the figure, the same reference numerals as those of the conventional example indicate the same or equivalent elements as those of the conventional example. The configuration of the programmable controller as the data link device is shown in FIG.
It is the same as the one described above and will not be described again.

【0030】図1はこの実施例によるデータリンクシス
テムの構成を示す図である。図1において、1〜6は、
各々データリンクを行うPCであり、1及び2はマスタ
局(MPC1及びMPC2)として位置付されたPC、
3及び4はMPC1とそれぞれ1:1でデータリンクを
行うローカル局(LPC3及びLPC4)として位置付
されたPC、5及び6はMPC2とそれぞれ1:1でデ
ータリンクを行うローカル局(LPC5及びLPC6)
として位置付されたPCである。
FIG. 1 is a diagram showing the structure of a data link system according to this embodiment. In FIG. 1, 1 to 6 are
PCs that perform data links, 1 and 2 are PCs positioned as master stations (MPC1 and MPC2),
PCs 3 and 4 are positioned as local stations (LPC3 and LPC4) that perform a data link with MPC1 at a ratio of 1: 1 respectively, and 5 and 6 are local stations (LPC5 and LPC6) that perform a data link with MPC2 at a ratio of 1: 1. )
It is a PC positioned as.

【0031】図2は、MPC1とLPC3及びLPC4
との間で、サイクリックに交信を行うリンク入出力及び
MPC2とLPC5及びLPC6との間で、サイクリッ
クに交信を行うリンク入出力のイメージを示す説明図で
あり、10はリンク入出力全体を示し、11はMPC1
内のリンク入出力の割り付け状態を示し、12はMPC
2内のリンク入出力の割り付け状態を示す。13、1
4、15及び16は、LPC3、LPC4、LPC5及
びLPC6それぞれのリンク入出力の割り付け状態を示
したものである。
FIG. 2 shows MPC1, LPC3 and LPC4.
Is an explanatory diagram showing an image of a link input / output for performing cyclic communication with and between the MPC2 and the LPC5, LPC6 for cyclic communication with each other, and 10 is the entire link input / output. Shown, 11 is MPC1
Shows the link input / output allocation status in the above, and 12 is MPC
2 shows the link input / output allocation status. 13, 1
Reference numerals 4, 15 and 16 show the link input / output allocation states of the LPC3, LPC4, LPC5 and LPC6, respectively.

【0032】図3は、図2で示すようなリンク入出力の
割り付けを実際に実行するリンクパラメータ20の構成
を示す説明図であり、Mはマスタ局数、MNoはMPC
1の局番、LはMPC1とデータリンクを行うローカル
局数、LNoはLPC3の局番、XadrはLPC3と
交信を行うXの先頭アドレス、Xsizeは上記Xのデ
ータサイズ、Xofsetは、LPC3が送信するフレ
ーム中のMPC1宛のXの先頭アドレス、Yadrは同
じくLPC3と交信を行うYの先頭アドレス、Ysiz
eは、上記Yのデータサイズ、Yofsetは、MPC
1が送信するフレーム中のLPC3宛のYの先頭アドレ
スを示す。また、同様に、LPC4に対する同様の情報
もセットされ、さらに、MPC2に対する同様の情報も
セットされる。
FIG. 3 is an explanatory diagram showing the structure of the link parameter 20 for actually executing the link input / output allocation as shown in FIG. 2, where M is the number of master stations and MNo is MPC.
1 is the station number, L is the number of local stations that perform data link with MPC1, LNo is the station number of LPC3, Xadr is the start address of X that communicates with LPC3, Xsize is the data size of the above X, and Xofset is the frame transmitted by LPC3. The start address of X addressed to MPC1, Yadr is the start address of Y that also communicates with LPC3, Ysiz
e is the above data size of Y, Yofset is MPC
1 shows the start address of Y addressed to LPC3 in the frame transmitted by 1. Similarly, similar information for LPC4 is also set, and similar information for MPC2 is also set.

【0033】図4は、図3に示したパラメータに基づき
マスタ局MPC1、MPC2が各ローカル局LPC3〜
LPC6への出力データを送信するためのフレーム22
の構成で、GAは全局に有効であることを示すグローバ
ルアドレス、YCは出力(Y)コマンド、DAは送信元
アドレス、YDnは各ローカル局宛の出力データを各々
表す。
In FIG. 4, the master stations MPC1 and MPC2 use the parameters shown in FIG.
Frame 22 for transmitting output data to LPC6
In the configuration, GA is a global address indicating that it is valid for all stations, YC is an output (Y) command, DA is a source address, and YDn is output data addressed to each local station.

【0034】図5は、図3に示したパラメータに基づき
ローカル局LPC3〜LPC6がマスタ局MPC1、M
PC2への入力データを送信するためのフレーム23構
成で、GAは全局に有効であることを示すグローバルア
ドレス、XCは入力(X)コマンド、DAは送信元アド
レス、XDnは各マスタ局宛の入力データを各々表す。
In FIG. 5, the local stations LPC3 to LPC6 operate as the master stations MPC1 and MPC based on the parameters shown in FIG.
In the frame 23 structure for transmitting input data to the PC 2, GA is a global address indicating that it is valid for all stations, XC is an input (X) command, DA is a source address, and XDn is an input to each master station. Represent each data.

【0035】次に動作について説明する。図1に示した
各PC1〜6において、通常データリンク制御部8が図
3で示すパラメータをデータリンク前に何等かの方法で
入手する。例えば、サイクリック交信前に、パラメータ
交信をマスタ局(MPC1)と全ローカル局及びマスタ
局(MPC1)とマスタ局(MPC2)で行う。このデ
ータリンクパラメータ情報から各局が行うデータリンク
範囲のチェックを行い、以後、その情報に基づくサイク
リック交信を行えるようにする。
Next, the operation will be described. In each of the PCs 1 to 6 shown in FIG. 1, the normal data link control unit 8 acquires the parameters shown in FIG. 3 by some method before the data link. For example, before cyclic communication, parameter communication is performed by the master station (MPC1), all local stations, the master station (MPC1), and the master station (MPC2). From this data link parameter information, the data link range performed by each station is checked, and thereafter, cyclic communication based on that information can be performed.

【0036】次に、MPC1のデータリンク制御部8
は、シーケンス制御部7の動作に関係無くコモンメモリ
9からローカル局への出力(Y)データをリードし、か
つ、LPC3及びLPC4へ出力し、かつ、LPC3及
びLPC4から入力(X)データを入力してコモンメモ
リ9にライトすることで一連のサイクリック交信を行
う。また、シーケンス制御部7は、必要に応じてコモン
メモリ9をリード/ライトすることで、サイクリックデ
ータをアクセスする。また、MPC2も同様な処理を行
う。さらに、LPC3及びLPC4のデータリンク制御
部8は、逆にMPC1からの出力(Y)データを入力し
てコモンメモリ9にライトし、コモンメモリ9から入力
(X)データをリードして、MPC1に出力することで
一連のサイクリック交信を行う。LPC3及びLPC4
のシーケンス制御部7も、MPC1のシーケンス制御部
7と同様の動作を行う。また、LPC5及びLPC6も
同様な処理を行う。
Next, the data link control unit 8 of the MPC 1
Reads the output (Y) data from the common memory 9 to the local station, outputs it to the LPC3 and LPC4, and inputs the input (X) data from the LPC3 and LPC4 regardless of the operation of the sequence controller 7. Then, the common memory 9 is written to perform a series of cyclic communication. The sequence controller 7 also accesses the cyclic data by reading / writing the common memory 9 as necessary. The MPC2 also performs similar processing. Further, the data link control units 8 of the LPC3 and LPC4, on the contrary, input the output (Y) data from the MPC1 and write it in the common memory 9, read the input (X) data from the common memory 9, and read it in the MPC1. A series of cyclic communication is performed by outputting. LPC3 and LPC4
The sequence control unit 7 also performs the same operation as the sequence control unit 7 of the MPC 1. Further, LPC5 and LPC6 also perform similar processing.

【0037】さらに、LPC3及びLPC4のデータリ
ンク制御部8は、逆にMPC1からの出力(Y)データ
を入力してコモンメモリ9にライトし、コモンメモリ9
から入力(X)データをリードして、MPC1に出力す
ることで一連のサイクリック交信を行う。LPC3及び
LPC4のシーケンス制御部7もMPC1のシーケンス
制御部7と同様の動作を行う。また、LPC5及びLP
C6も同様な処理を行う。
Further, the data link control units 8 of the LPC 3 and LPC 4 conversely input the output (Y) data from the MPC 1 and write it in the common memory 9, and the common memory 9
The input (X) data is read from and output to MPC1 to perform a series of cyclic communication. The sequence control unit 7 of the LPC3 and LPC4 also performs the same operation as the sequence control unit 7 of the MPC1. Also, LPC5 and LP
C6 also performs similar processing.

【0038】図6は、第1、第2の発明を実施するため
のMPC1のデータリンク制御部8における送受信時の
処理シーケンスのフロー図を示す。図において、MPC
1は、まず、自局が送信するタイミングか、つまり自局
がバトンを持っているかをチェックして(S30)、自
局が送信できるタイミングならば、自局が送信必要な各
ローカル局宛に出力(Y)するデータをコモンメモリ9
からリードして、図4で示すようなフレーム22で送信
を行い(S31)、各ローカル局から図5で示すような
自局宛の入力(X)データを含んだフレーム23を受信
したかをチェックし(S32)、受信完了していたら自
局宛の入力(X)データをコモンメモリ9にライトする
(S33)。ステップS30〜S33を繰り返すことに
よりサイクリック交信を実現する。また、MPC2も同
様な処理を行う。
FIG. 6 shows a flow chart of a processing sequence at the time of transmission / reception in the data link control unit 8 of the MPC 1 for carrying out the first and second inventions. In the figure, MPC
First of all, 1 checks whether it is the transmission timing of the own station, that is, whether the own station has a baton (S30), and if it is the timing when the own station can transmit, it sends to each local station that needs to transmit. Output (Y) data to common memory 9
From the local station to transmit the frame 22 as shown in FIG. 4 (S31), and whether the frame 23 containing the input (X) data addressed to the own station as shown in FIG. 5 is received. If checked (S32) and the reception is completed, the input (X) data addressed to the own station is written to the common memory 9 (S33). Cyclic communication is realized by repeating steps S30 to S33. The MPC2 also performs similar processing.

【0039】次に図7はLPC3及びLPC4のデータ
リンク制御部8における送受信時の処理シーケンスのフ
ロー図を示す。図において、LPC3又はLPC4はま
ず、各マスタ局から図4で示す様な自局宛の出力(Y)
データを含んだフレーム22が受信したかをチェックし
(S35)、受信完了していたら自局宛の(Y)データ
をコモンメモリ9にライトする(S36)。次に、自局
が送信するタイミングか、つまり、自局がバトンを持っ
ているかチェックし(S37)、自局が送信できるタイ
ミングならば、自局が送信必要な各マスタ局宛の入力
(X)データをコモンメモリ9からリードして図5で示
すようなフレーム23で送信を行う(S38)。ステッ
プS35〜S38を繰り返すことによりサイクリック交
信を実現する。また、LPC5及びLPC6も同様な処
理を行う。
Next, FIG. 7 shows a flow chart of a processing sequence at the time of transmission / reception in the data link control unit 8 of the LPC 3 and the LPC 4. In the figure, LPC3 or LPC4 first outputs from each master station to its own station as shown in FIG. 4 (Y).
It is checked whether the frame 22 including the data has been received (S35), and if the reception is completed, the (Y) data addressed to the own station is written to the common memory 9 (S36). Next, it is checked whether it is the timing at which the local station transmits, that is, whether the local station has a baton (S37), and if it is the timing at which the local station can transmit, the local station that needs to transmit (X ) Data is read from the common memory 9 and transmitted in the frame 23 as shown in FIG. 5 (S38). Cyclic communication is realized by repeating steps S35 to S38. Further, LPC5 and LPC6 also perform similar processing.

【0040】また、各マスタ局及び各ローカル局のシー
ケンス制御部7のサイクリックデータリード/ライト処
理に関しては図19、図20にて既に説明してあるので
省略する。
The cyclic data read / write processing of the sequence control unit 7 of each master station and each local station has already been described with reference to FIGS.

【0041】実施例2.第3に発明の一実施例を、再
度、図1により説明する。図1示す構成において、1を
マスタ局(MPC1)、2を待機マスタ局(MPC2)
と位置付け、3及び4はMPC1及びMPC2とそれぞ
れ1:1でデータリンクを行うローカル局(LPC3及
びLPC4)で2重化したものとしての動作を行うもの
である。図1において、ローカル局LPC5及びLPC
6は対象外とする。
Example 2. Thirdly, one embodiment of the invention will be described again with reference to FIG. In the configuration shown in FIG. 1, 1 is a master station (MPC1), 2 is a standby master station (MPC2)
Positioned as 3 and 4, the local stations (LPC3 and LPC4) that perform a data link with MPC1 and MPC2 at a ratio of 1: 1 perform the operation as duplicated. In FIG. 1, the local stations LPC5 and LPC
6 is excluded.

【0042】図8は2重化するためのリンク入出力のイ
メージを示す説明図である。図8において、MPC1と
LPC3及びLPC4との間で、サイクリックに交信を
行うリンク入出力及びMPC2とLPC3及びLPC4
との間で、サイクリックに交信を行うリンク入出力のイ
メージで、10はリンク入出力全体を示し、11はMP
C1内のリンク入出力の割り付け状態を示し、17はM
PC2内のリンク入出力の割り付け状態を示す。13、
14はLPC3、LPC4のMPC1とのそれぞれのリ
ンク入出力の割り付け状態を示したものであり、18、
19はLPC3、LPC4のMPC2とのそれぞれのリ
ンク入出力の割り付け状態を示したものである。
FIG. 8 is an explanatory diagram showing an image of link input / output for duplication. 8, link input / output for cyclic communication between MPC1, LPC3, and LPC4, and MPC2, LPC3, and LPC4
Image of link input / output for cyclic communication with and, 10 indicates the entire link input / output, 11 indicates MP
Shows the link input / output allocation status in C1, 17 is M
The link input / output allocation state in the PC 2 is shown. 13,
Reference numeral 14 denotes the link input / output allocation state of the LPC3 and LPC4 with the MPC1.
Reference numeral 19 shows the link input / output allocation state of the LPC3 and LPC4 with the MPC2.

【0043】図8で示す様なリンク入出力の割り付けを
実際に実行するリンクパラメータ20の構成は、第1、
第2の発明の実施例1で説明した図3のものと同様であ
る。また、図1に示した各PC1〜4のデータリンク制
御部8の動作及びマスタ局のシーケンス制御部7の動作
についても実施例1で説明したものと同様である。
The configuration of the link parameter 20 for actually executing the link input / output allocation as shown in FIG.
This is the same as that of FIG. 3 described in the first embodiment of the second invention. The operation of the data link control unit 8 of each of the PCs 1 to 4 and the operation of the sequence control unit 7 of the master station shown in FIG. 1 are the same as those described in the first embodiment.

【0044】次に、図9を用いて2重化した場合のLP
C3及びLPC4の各ローカル局のシーケンス制御部7
の動作について説明する。まず、MPC1及びMPC2
に送信する入力(X)データをシーケンス処理に基づき
コモンメモリ9にライトし(S50)、次にMPC1が
正常にリンクしているかチェックを行い(S51)正常
ならば、MPC1が送信した出力(Y)データをリード
してシーケンス処理を行う(S52)。もしMPC1が
異常ならば、待機マスタ局であるMPC2が、正常かチ
ェックを行い(S53)、正常ならば、MPC2が送信
した出力(Y)データをリードしてシーケンス処理を行
う(S54)。もし待機マスタ局MPC2が異常ならば
エラー処理を行う(S55)。
Next, the LP in the case of duplication using FIG.
Sequence control unit 7 of each local station of C3 and LPC4
The operation will be described. First, MPC1 and MPC2
The input (X) data to be transmitted to the common memory 9 is written to the common memory 9 based on the sequence processing (S50), and then it is checked whether the MPC1 is normally linked (S51). If the MPC1 is normal, the output (Y) transmitted by the MPC1 is sent. ) Data is read and sequence processing is performed (S52). If the MPC1 is abnormal, the standby master station MPC2 checks whether it is normal (S53), and if it is normal, the output (Y) data transmitted by the MPC2 is read and sequence processing is performed (S54). If the standby master station MPC2 is abnormal, error processing is performed (S55).

【0045】上述の実施例1、2では、PCにおけるデ
ータリンクを説明したが、FAコントローラ、パソコン
等で、データリンクを実施しても同様の効果が得られ
る。また、実施例ではマスタ局が2局の例を示したが、
マスタ局数を2局以上の多数局にしても、同様に作動す
るものが得られる。また、データリンクの構成をバス型
で示しているが、ループ型、スター型等の構成でも同様
の効果が得られる。同様にフレーム構成にHDLCを使
用したが、他のフォーマットを使用しても同様の効果が
得られる。
In the above-described first and second embodiments, the data link in the PC has been described, but the same effect can be obtained even if the data link is implemented by the FA controller, the personal computer or the like. Further, in the embodiment, the example in which the master station is two stations is shown.
Even if the number of master stations is two or more, a similar one can be obtained. Further, although the data link configuration is shown as a bus type, the same effect can be obtained with a loop type, star type, or the like. Similarly, although HDLC is used for the frame structure, the same effect can be obtained by using other formats.

【0046】[0046]

【発明の効果】以上のように、第1及び第2の発明によ
れば、ト−クンバッシング方式にて1:1でサイクリッ
クに常時データ交信を行なうのに先立ち、各マスタ局ご
とのマスタ局番号、対応するロ−カル局数、各ロ−カル
局ごとのロ−カル局番号、対応する上記ロ−カル局への
出力データ先頭アドレス、上記出力データサイズ、上記
出力データの相対アドレス、上記ロ−カル局からの入力
データ先頭アドレス、上記入力データサイズ、上記入力
データの相対アドレスとからなるデータリンクパラメ−
タをマスタ局及びロ−カル局の全てに予め入力したの
で、複数のマスタ局の存在を可能とし、かつ、上記複数
のマスタ局は対応する上記複数のロ−カル局宛のデータ
を1つの伝文フレームで送信でき、1サイクルの交信時
間を短縮できるものが得られる効果がある。
As described above, according to the first and second aspects of the present invention, the master for each master station is provided before the cyclic constant data communication of 1: 1 by the token-bashing method. Station number, number of corresponding local stations, local station number for each local station, corresponding start address of output data to the local station, output data size, relative address of the output data, A data link parameter consisting of the start address of the input data from the local station, the input data size, and the relative address of the input data.
Since all the master stations and the local stations are preliminarily input with the data, a plurality of master stations can exist, and the plurality of master stations can transfer data addressed to the plurality of local stations into one data. There is an effect that a message frame can be transmitted and the communication time of one cycle can be shortened.

【0047】又、第3の発明によれば、主マスタ局と複
数のロ−カル局間で、ト−クンバッシング方式にて1:
1でサイクリックに常時データ交信するに際し、上記複
数のロ−カル局にて上記主マスタ局と正常にリンクして
いるかチェックし、正常でなければ待機マスタ局と正常
にリンクしているか確認して上記待機マスタ局から送信
された自局宛のデータを含む伝文フレームを受信して取
り込むようにしたので、多重化システムが容易に構築で
きるものが得られる効果がある。
According to the third aspect of the invention, the token-bashing method is used between the main master station and a plurality of local stations in a 1:
When cyclically performing continuous data communication with 1, check whether the above multiple master stations are normally linked to the main master station, and if they are not normal, check that they are normally linked to the standby master station. Since the message frame including the data addressed to the own station transmitted from the standby master station is received and fetched, there is an effect that a multiplexing system can be easily constructed.

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

【図1】第1及び第2の発明の一実施例によるデータリ
ンクシステムの構成を示す図である。
FIG. 1 is a diagram showing a configuration of a data link system according to an embodiment of the first and second inventions.

【図2】図1に示したデータリンクシステムのリンク入
出力の説明図である。
2 is an explanatory diagram of link input / output of the data link system shown in FIG.

【図3】図1に示したデータリンクシステムのデータリ
ンクパラメ−タを示す図である。
FIG. 3 is a diagram showing data link parameters of the data link system shown in FIG.

【図4】図1に示したマスタ局が送信する伝文のフレー
ムの構成を示す図である。
FIG. 4 is a diagram showing a configuration of a frame of a message transmitted by the master station shown in FIG.

【図5】図1に示したロ−カル局が送信する伝文のフレ
ームの構成を示す図である。
5 is a diagram showing the structure of a frame of a message transmitted by the local station shown in FIG.

【図6】図1に示したマスタ局におけるデータリンク制
御部の送受信処理の動作を示すフロー図である。
6 is a flowchart showing an operation of transmission / reception processing of a data link control unit in the master station shown in FIG.

【図7】図1に示したロ−カル局におけるデータリンク
制御部の送受信処理の動作を示すフロー図である。
7 is a flowchart showing an operation of transmission / reception processing of a data link control unit in the local station shown in FIG.

【図8】第3の発明の一実施例による2重化データリン
クシステムのリンク入出力の説明図である。
FIG. 8 is an explanatory diagram of link input / output of the duplicated data link system according to the embodiment of the third invention.

【図9】図8に示したロ−カル局におけるシーケンス制
御部のサイクリックデータのリード/ライト処理動作を
示すフロー図である。
9 is a flowchart showing the cyclic data read / write processing operation of the sequence controller in the local station shown in FIG.

【図10】従来のデータリンクシステムの構成を示す図
である。
FIG. 10 is a diagram showing a configuration of a conventional data link system.

【図11】プログラマブルコントローラの概略構成を示
すブロック図である。
FIG. 11 is a block diagram showing a schematic configuration of a programmable controller.

【図12】図10に示したデータリンクシステムのリン
ク入出力の説明図である。
12 is an explanatory diagram of link input / output of the data link system shown in FIG.

【図13】図10に示したデータリンクシステムのデー
タリンクパラメ−タを示す図である。
13 is a diagram showing data link parameters of the data link system shown in FIG.

【図14】プログラマブルコントローラにて用いる伝文
のフレームの構成を示す図である。
FIG. 14 is a diagram showing a structure of a message frame used in a programmable controller.

【図15】図10に示したマスタ局が送信する伝文のフ
レームの構成を示す図である。
15 is a diagram showing a structure of a message frame transmitted by the master station shown in FIG.

【図16】図10に示したロ−カル局が送信する伝文の
フレームの構成を示す図である。
16 is a diagram showing a structure of a frame of a message transmitted by the local station shown in FIG.

【図17】図10に示したマスタ局におけるデータリン
ク制御部の送受信処理の動作を示すフロー図である。
17 is a flowchart showing an operation of transmission / reception processing of a data link control unit in the master station shown in FIG.

【図18】図10に示したロ−カル局におけるデータリ
ンク制御部の送受信処理の動作を示すフロー図である。
18 is a flowchart showing the operation of transmission / reception processing of the data link control unit in the local station shown in FIG.

【図19】図10に示したマスタ局におけるシーケンス
制御部のサイクリックデータのリード/ライト処理動作
を示すフロー図である。
19 is a flowchart showing the cyclic data read / write processing operation of the sequence controller in the master station shown in FIG.

【図20】図10に示したロ−カル局におけるシーケン
ス制御部のサイクリックデータのリード/ライト処理動
作を示すフロー図である。
20 is a flowchart showing the cyclic data read / write processing operation of the sequence controller in the local station shown in FIG.

【図21】従来の2重化データリンクシステムの構成を
示す図である。
FIG. 21 is a diagram showing a configuration of a conventional duplex data link system.

【図22】図21に示したロ−カル局を構成するプログ
ラマブルコントローラの概略構成を示すブロック図であ
る。
22 is a block diagram showing a schematic configuration of a programmable controller which constitutes the local station shown in FIG. 21. FIG.

【図23】図21に示したロ−カル局におけるシーケン
ス制御部のサイクリックデータのリード/ライト処理動
作を示すフロー図である。
23 is a flowchart showing the cyclic data read / write processing operation of the sequence controller in the local station shown in FIG. 21.

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

1、2 マスタ局(プログラマブルコントローラ) 3〜6 ロ−カル局(プログラマブルコントローラ) 7 シーケンス制御部 8 データリンク制御部 9 コモンメモリ 10 リンク入出力エリア 22、23 伝文のフレーム 1, 2 Master station (programmable controller) 3 to 6 Local station (programmable controller) 7 Sequence control unit 8 Data link control unit 9 Common memory 10 Link input / output area 22, 23 Message frame

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のマスタ局と対応する複数のロ−カ
ル局間で、ト−クンバッシング方式にて1:1でサイク
リックに常時データ交信を行なうに際し、各マスタ局ご
とのマスタ局番号、対応するロ−カル局数、各ロ−カル
局ごとのロ−カル局番号、対応する上記ロ−カル局への
出力データ先頭アドレス、上記出力デ−タサイズ、上記
出力データの相対アドレス、上記ロ−カル局からの入力
データ先頭アドレス、上記入力データサイズ、上記入力
データの相対アドレスとからなるデータリンクパラメ−
タを上記複数のマスタ局の何れかより、他のマスタ局及
び各ロ−カル局へ予め出力する段階と、上記複数のマス
タ局の何れかにて、自局が送信するタイミングかをチェ
ックし、自局が送信するタイミングであれば対応する上
記複数のロ−カル局宛のデータを含む伝文フレームを送
信する段階と、上記複数のロ−カル局から自局宛のデー
タを含む伝文フレームを受信する段階とからなるデータ
リンク方法。
1. A master station number for each master station when cyclically performing 1: 1 cyclical data communication between a plurality of master stations and a plurality of corresponding local stations by a token-bashing method. , The number of corresponding local stations, the local station number for each local station, the start address of the output data to the corresponding local station, the output data size, the relative address of the output data, the above A data link parameter consisting of the start address of the input data from the local station, the input data size, and the relative address of the input data.
Data from one of the above master stations to the other master station and each local station in advance, and at any of the above master stations, check whether it is the timing for transmission by the own station. , A step of transmitting a message frame including data addressed to the plurality of corresponding local stations at the timing of transmission by the station, and a message including data addressed to the station from the plurality of local stations. A data link method comprising the steps of receiving a frame.
【請求項2】 複数のマスタ局と対応する複数のロ−カ
ル局間で、ト−クンバッシング方式にて1:1でサイク
リックに常時データ交信を行なうに際し、各マスタ局ご
とのマスタ局番号、対応するロ−カル局数、各ロ−カル
局ごとのロ−カル局番号、対応する上記ロ−カル局への
出力データ先頭アドレス、上記出力デ−タサイズ、上記
出力データの相対アドレス、上記ロ−カル局からの入力
データ先頭アドレス、上記入力データサイズ、上記入力
データの相対アドレスとからなるデータリンクパラメ−
タを上記複数のマスタ局の何れかから上記複数のロ−カ
ル局に予め入力する段階と、上記複数のロ−カル局に
て、対応するマスタ局から自局宛のデータを含む伝文フ
レームを受信したかをチェックし、受信しておれば自局
宛のデータを取り込む段階と、自局が送信するタイミン
グかをチェックし、自局が送信するタイミングであれば
対応するマスタ局宛のデータを含む伝文フレームを送信
する段階とからなるデータリンク方法。
2. A master station number for each master station when cyclically performing 1: 1 cyclical data communication between a plurality of master stations and a plurality of corresponding local stations by a token-bashing method. , The number of corresponding local stations, the local station number for each local station, the start address of the output data to the corresponding local station, the output data size, the relative address of the output data, the above A data link parameter consisting of the start address of the input data from the local station, the input data size, and the relative address of the input data.
Data in advance from any of the plurality of master stations to the plurality of local stations, and a message frame including data addressed to the own station from the corresponding master station at the plurality of local stations. Is received, and if it is received, it is checked at the stage of fetching the data addressed to its own station and at the timing of its own transmission, and if it is the timing of its own transmission, the data addressed to the corresponding master station And a step of transmitting a message frame including the.
【請求項3】 主マスタ局、待機マスタ局及び複数のロ
−カル局とを備え、上記主マスタ局と上記複数のロ−カ
ル局間で、ト−クンバッシング方式にて1:1でサイク
リックに常時データ交信するに際し、上記複数のロ−カ
ル局は上記主マスタ局と正常にリンクしているかチェッ
クし、正常ならば上記主マスタ局から送信された自局宛
のデータを含む伝文フレームを受信して取り込み、もし
正常でなければ上記待機マスタ局と正常にリンクしてい
るかチェックし、正常ならば上記待機マスタ局から送信
された自局宛のデータを含む伝文フレームを受信して取
り込む段階とからなることを特徴とするデータリンク方
法。
3. A main master station, a standby master station, and a plurality of local stations, wherein the main master station and the plurality of local stations are cyclically 1: 1 in a token-bashing system. When constantly communicating data for clicks, it is checked whether the plurality of local stations are normally linked to the main master station, and if they are normal, a message including the data addressed to the own station transmitted from the main master station. If the frame is received and captured, if it is not normal, it is checked whether it is normally linked with the standby master station, and if it is normal, the message frame containing the data addressed to itself and transmitted from the standby master station is received. And a data link method comprising the steps of:
JP4044733A 1992-03-02 1992-03-02 Data link method Expired - Lifetime JP3024345B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4044733A JP3024345B2 (en) 1992-03-02 1992-03-02 Data link method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4044733A JP3024345B2 (en) 1992-03-02 1992-03-02 Data link method

Publications (2)

Publication Number Publication Date
JPH05252168A true JPH05252168A (en) 1993-09-28
JP3024345B2 JP3024345B2 (en) 2000-03-21

Family

ID=12699651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4044733A Expired - Lifetime JP3024345B2 (en) 1992-03-02 1992-03-02 Data link method

Country Status (1)

Country Link
JP (1) JP3024345B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197522A (en) * 2005-01-17 2006-07-27 Meidensha Corp Network communication system between computers
US7609714B2 (en) 2003-09-18 2009-10-27 Omron Corporation Programmable controller and duplexed network system
WO2009147714A1 (en) * 2008-06-02 2009-12-10 三菱電機株式会社 Data communication system and data communication device
JP2010525626A (en) * 2007-04-05 2010-07-22 フェニックス コンタクト ゲーエムベーハー ウント コムパニー カーゲー Method and system for secure transmission of processing data to be cyclically transmitted
CN102265557A (en) * 2008-12-25 2011-11-30 三菱电机株式会社 Data communication system and data communication device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61129938A (en) * 1984-11-29 1986-06-17 Toshiba Corp Polling system remote supervisory controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61129938A (en) * 1984-11-29 1986-06-17 Toshiba Corp Polling system remote supervisory controller

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7609714B2 (en) 2003-09-18 2009-10-27 Omron Corporation Programmable controller and duplexed network system
JP4635616B2 (en) * 2005-01-17 2011-02-23 株式会社明電舎 Network communication method between computers
JP2006197522A (en) * 2005-01-17 2006-07-27 Meidensha Corp Network communication system between computers
US8321613B2 (en) 2007-04-05 2012-11-27 Phoenix Contact Gmbh & Co. Kg Method and system for secure transmission of process data to be transmitted cyclically via a transmission channel between a master and a slave
JP2010525626A (en) * 2007-04-05 2010-07-22 フェニックス コンタクト ゲーエムベーハー ウント コムパニー カーゲー Method and system for secure transmission of processing data to be cyclically transmitted
US20110093559A1 (en) * 2008-06-02 2011-04-21 Mitsubishi Electric Corporation Data communication system and data communication device
CN102047616A (en) * 2008-06-02 2011-05-04 三菱电机株式会社 Data communication system and data communication device
DE112008003889T5 (en) 2008-06-02 2011-06-09 Mitsubishi Electric Corporation Data communication system and data communication device
WO2009147714A1 (en) * 2008-06-02 2009-12-10 三菱電機株式会社 Data communication system and data communication device
KR101218003B1 (en) * 2008-06-02 2013-01-02 미쓰비시덴키 가부시키가이샤 Data communication system and data communication device
US8452843B2 (en) 2008-06-02 2013-05-28 Mitsubishi Electric Corporation Data communication system and data communication device
KR101398346B1 (en) * 2008-06-02 2014-05-22 미쓰비시덴키 가부시키가이샤 Data communication system and data communication device
TWI483583B (en) * 2008-06-02 2015-05-01 Mitsubishi Electric Corp Data communication system and data communication device
CN102265557A (en) * 2008-12-25 2011-11-30 三菱电机株式会社 Data communication system and data communication device

Also Published As

Publication number Publication date
JP3024345B2 (en) 2000-03-21

Similar Documents

Publication Publication Date Title
CN114285695B (en) Communication method, device, apparatus, system and storage medium
JPH03206751A (en) Station number setting method for loop data link system
JPH05252168A (en) Data link method
CN111464398A (en) Self-organizing centreless network high-level protocol testing method, equipment and storage medium
JP2006171833A (en) Plc data exchange system and method for controlling it
JP2839384B2 (en) Programmable controller
JP3785795B2 (en) Data processing device
JP2740031B2 (en) Data receiving device
JP3888588B2 (en) Data transfer method
CN106170022B (en) Distributed multimedia sensor control system
JPH07319515A (en) Distributed control system for programmable controller
CN116052583A (en) Control method and device of LED control system, computer equipment and storage medium
JPH11296211A (en) Input/output device
CN116074481A (en) Data transmission system for online configuration of communication link, transmission box and LED display screen
JP2000032554A (en) Communication control system, wired system and communication equipment
JPS62196947A (en) Data transmission system for remote input/output device
JPS6255704A (en) Decentralized control system
JP2640487B2 (en) Programmable controller system
JP2003124952A (en) Data-access controlling method
CN114746816A (en) PLC analog module with HART transparent transmission interface
JPH0235844A (en) Control system
JP2001331460A (en) Plant controller and plant control system
JPH07212863A (en) Data transmission system
JP2007129667A (en) Communication node apparatus
JPH08263461A (en) Dual port ram communication method

Legal Events

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

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120121

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130121

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20130121

Year of fee payment: 13