JPH0690237A - Data communication method - Google Patents

Data communication method

Info

Publication number
JPH0690237A
JPH0690237A JP4240806A JP24080692A JPH0690237A JP H0690237 A JPH0690237 A JP H0690237A JP 4240806 A JP4240806 A JP 4240806A JP 24080692 A JP24080692 A JP 24080692A JP H0690237 A JPH0690237 A JP H0690237A
Authority
JP
Japan
Prior art keywords
master station
data
station
priority
received
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
JP4240806A
Other languages
Japanese (ja)
Other versions
JP2798329B2 (en
Inventor
Sadayuki Tsukada
貞幸 塚田
Katsuyuki Miyauchi
克幸 宮内
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 JP4240806A priority Critical patent/JP2798329B2/en
Publication of JPH0690237A publication Critical patent/JPH0690237A/en
Application granted granted Critical
Publication of JP2798329B2 publication Critical patent/JP2798329B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To improve data communication processing efficiency by performing control by the same link device, and executing the control of another slave station by a deputy master station when a priority master station goes down. CONSTITUTION:In a data communication method using a local area network consisting of the priority master station, plural master stations set on the deputy master station, and one or plural slave stations remote-controlled by the master station, the slave station performs the reception awaiting of data from the master station (S10), and judges whether or not it is the data reception from the priority master station when it receives the data (S12), and executes data transmission when it is the data reception from the priority master station (S14), and judges whether or not abnormality occurs in the priority master station when it is the data reception from the deputy master station (S15), and deletes the data reception from the deputy master station when it is judged that no abnormality occurs in the priority master station (S16), and executes data communication with the deputy master station when it is judged that the abnormality occurs.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、各種制御に用いられ
るプログラマブルコントローラによるライン制御やプラ
ント制御といった分散制御を実現するためのプログラマ
ブルコントローラのデータ通信方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller data communication method for realizing distributed control such as line control and plant control by a programmable controller used for various controls.

【0002】[0002]

【従来の技術】図6は、データ通信機能をもつプログラ
マブルコントローラ(以下、PCという)のハードウェ
ア構成例であり、構成されたローカルエリアネットワー
ク(LAN)において、親局或いは子局となる。図にお
いて、1はデータ通信機能を具備するPC、2はPC1
のうちデータ通信制御部であり、そのデータ通信制御部
2の各部を制御するCPU2a、通信を実行するための
バスを制御するシリアルバスコントローラ2b、ROM
2c、RAM2d、後述するシーケンス制御部3とのイ
ンターフェースのための2ポートRAM2eから構成さ
れる。3はシーケンスプログラムの実行及びPC1の入
出力部を制御するシーケンス制御部であり、そのシーケ
ンス制御部3の各部を制御するCPU3a、ROM3
b、RAM3c、入出力インターフェース3d、シーケ
ンスプログラムが格納されるメモリ3eから構成され
る。4は各PC1(PC1 ,PC2 ,・・・PCn )間
の通信を実行するための通信ケーブルである。
2. Description of the Related Art FIG. 6 shows an example of a hardware configuration of a programmable controller (hereinafter referred to as a PC) having a data communication function, which serves as a master station or a slave station in a configured local area network (LAN). In the figure, reference numeral 1 is a PC having a data communication function, and 2 is a PC 1.
Of these, a data communication control unit, a CPU 2a that controls each unit of the data communication control unit 2, a serial bus controller 2b that controls a bus for executing communication, and a ROM
2c, a RAM 2d, and a 2-port RAM 2e for interfacing with the sequence control unit 3 described later. Reference numeral 3 denotes a sequence control unit that controls execution of a sequence program and an input / output unit of the PC 1, and a CPU 3a and a ROM 3 that control each unit of the sequence control unit 3.
b, a RAM 3c, an input / output interface 3d, and a memory 3e in which a sequence program is stored. Reference numeral 4 is a communication cable for executing communication between the PCs 1 (PC 1 , PC 2 , ... PC n ).

【0003】図7は、図6に示した各PC1(PC1
PC2 ,・・・PCn )の従来におけるサイクリック伝
送使用デバイス(以下、リンクデバイスという)の制御
範囲例であり、図において、11は図6に示した2ポー
トRAM2e内にある親局のリンクデバイス全体、12
は子局1のリンクデバイス全体、13は子局nのリンク
デバイス全体である。14は親局が各子局に送信するリ
ンクデバイス範囲、15は各子局が親局から受信するリ
ンクデバイス範囲、16は子局1が親局に送信するリン
クデバイス範囲、17は親局が子局1から受信するリン
クデバイス範囲、18は子局nが親局に送信するリンク
デバイス範囲、19は親局が子局nから受信するリンク
デバイス範囲、20は親局から各子局に実行されるデー
タ交信におけるデータの流れ、21は子局1から親局に
実行されるデータ交信におけるデータの流れ、22は子
局nから親局に実行されるデータ交信におけるデータの
流れを各々示す。
FIG. 7 shows each PC 1 (PC 1 ,
PC 2 , ... PC n ) is an example of a control range of a conventional cyclic transmission using device (hereinafter referred to as a link device), in which 11 is a master station in the 2-port RAM 2e shown in FIG. Link device as a whole, 12
Is the entire link device of the slave station 1, and 13 is the entire link device of the slave station n. 14 is a link device range that the master station transmits to each slave station, 15 is a link device range that each slave station receives from the master station, 16 is a link device range that slave station 1 transmits to the master station, and 17 is a master station Link device range received from the slave station 1, 18 is a link device range transmitted by the slave station n to the master station, 19 is a link device range received by the master station from the slave station n, 20 is executed from the master station to each slave station 21 shows a data flow in the data communication performed by the slave station 1, the data flow in the data communication performed by the master station from the slave station 1 to the master station, and the data flow 22 in the data communication performed by the master station from the slave station n.

【0004】次に、動作について説明する。図7に示し
たようなリンクデバイスのデータ交信を行うため、図8
のフローチャートに示すような親局の送受信処理を実行
する。まず、親局はデータを送信する子局を選択する
(S50)。次に、選択した子局に対して、図7に示し
たデータの流れ20に示すようにデータを送信し(S5
1)、子局からのデータを受信するまでの時間を監視す
るタイマを起動して(S52)、子局からのデータ受信
待ちを行い(S53)、図7に示したデータの流れ2
1,22に示すような子局からのデータを受信したか否
かを判断し(S54)、受信したと判断した場合には上
記ステップ50へ戻り、反対に、受信していないと判断
した場合には、次に、上記タイマがタイムアウトしたか
否かを判断し(S55)、タイムアウトしたと判断した
場合には上記ステップ50へ戻り、反対に、タイムアウ
トしていないと判断した場合には上記ステップ53へ戻
る動作を行う。
Next, the operation will be described. In order to perform the data communication of the link device as shown in FIG.
The transmission / reception processing of the master station is executed as shown in the flowchart of FIG. First, the master station selects a slave station that transmits data (S50). Next, data is transmitted to the selected slave station as shown in the data flow 20 shown in FIG. 7 (S5
1), start a timer for monitoring the time until receiving data from the slave station (S52), wait for data reception from the slave station (S53), and set the data flow 2 shown in FIG.
It is determined whether or not the data from the slave station as shown in Nos. 1 and 22 is received (S54), and if it is determined that the data is received, the process returns to step 50, and conversely, if it is determined that the data is not received. Next, it is determined whether or not the timer has timed out (S55). If it is determined that the timer has timed out, the process returns to step 50. Conversely, if it is determined that the timer has not timed out, the above step is performed. The operation of returning to 53 is performed.

【0005】また、図9に示すように、子局の送受信処
理は、まず、親局からのデータ受信待ちの状態にあり
(S60)、データを受信したか否かを判断し(S6
1)、受信していないと判断した場合には上記ステップ
60に戻り、反対に、図7のデータの流れ20に示すよ
うに受信したと判断した場合は、子局のデータを親局に
伝えるために、図7のデータの流れ21或いは22に示
すように子局のデータを親局へ送信し(S62)、上記
ステップ60へ戻る動作を行う。
Further, as shown in FIG. 9, in the transmission / reception processing of the slave station, first, in the waiting state for receiving data from the master station (S60), it is judged whether or not the data is received (S6).
1) If it is determined that the data has not been received, the process returns to step 60. On the contrary, if it is determined that the data has been received as shown in the data flow 20 of FIG. 7, the data of the child station is transmitted to the parent station. For this purpose, as shown in the data flow 21 or 22 of FIG. 7, the data of the slave station is transmitted to the master station (S62), and the operation returns to step 60.

【0006】その他、この発明に関連する参考技術文献
として、特開平3−127104号公報に開示されてい
る「プログラマブルコントローラのデータリンク装
置」、特開平2−310695号公報に開示されている
「商品販売管理装置」がある。
In addition, as reference technical documents related to the present invention, "data link device of programmable controller" disclosed in Japanese Patent Application Laid-Open No. 3-127104 and "commodity product" disclosed in Japanese Patent Application Laid-Open No. 2-310695. There is a sales management device.

【0007】[0007]

【発明が解決しようとする課題】従来におけるプログラ
マブルコントローラのデータ通信方法にあっては、以上
のように実行されていたため、親局がダウンすることに
よりシステム全体がダウンし、データ通信処理効率が悪
いという問題点があった。
Since the conventional data communication method of the programmable controller is executed as described above, when the master station goes down, the whole system goes down, resulting in poor data communication processing efficiency. There was a problem.

【0008】この発明は、上記のような問題を解決する
ためになされたもので、優先親局がダウンしたとしても
代理親局が代わりに他子局の制御を実行し、同一リンク
デバイスにて制御を行うことができデータ通信処理効率
を向上させることができるデータ通信方法を得ることを
目的とする。
The present invention has been made to solve the above problems. Even if the priority master station goes down, the proxy master station executes control of other slave stations instead, and the same link device is used. An object of the present invention is to obtain a data communication method capable of controlling and improving the data communication processing efficiency.

【0009】[0009]

【課題を解決するための手段】この発明に係るデータ通
信方法は、優先親局と代理親局に設定される複数台の親
局と、前記親局から遠隔制御される1台或いは複数の子
局とから構成されるローカルエリアネットワークを利用
したデータ通信方法において、前記子局は前記親局から
のデータの受信待ちをし、データを受信した場合には、
前記優先親局からのデータ受信か否かを判断し、前記優
先親局からのデータ受信である場合にはデータ送信を実
行する、代理親局からのデータ受信の場合には優先親局
が異常か否かを判断し、異常でないと判断すれば前記代
理親局からのデータ受信を廃棄し、異常であると判断す
れば前記代理親局とデータ交信を実行するものである。
A data communication method according to the present invention comprises a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled from the master station. In a data communication method using a local area network composed of stations, the slave station waits for reception of data from the master station, and when data is received,
It judges whether or not the data is received from the priority master station, and if the data is received from the priority master station, the data transmission is executed. When the data is received from the proxy master station, the priority master station is abnormal. If it is not abnormal, data reception from the proxy master station is discarded, and if it is abnormal, data communication with the proxy master station is executed.

【0010】また、優先親局と代理親局に設定される複
数台の親局と、前記親局から遠隔制御される1台或いは
複数の子局とから構成されるローカルエリアネットワー
クを利用したデータ通信方法において、前記子局は前記
親局からのデータの受信待ちをし、データを受信した場
合には、前記優先親局からのデータ受信か否かを判断
し、前記優先親局からのデータ受信である場合にはデー
タ交信の間隔を監視するタイマを起動し、データ送信を
実行する、代理親局からのデータ受信の場合には前記タ
イマがタイムアウトか否かを判断し、タイムアウトして
いないと判断すれば前記代理親局からのデータ受信を廃
棄し、タイムアウトしていると判断すれば前記代理親局
とデータ交信を実行するものである。
Data using a local area network composed of a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled by the master station. In the communication method, the slave station waits for reception of data from the master station, and when data is received, it is determined whether or not data is received from the priority master station, and data from the priority master station is received. If it is a reception, it starts a timer that monitors the interval of data communication and executes data transmission.In the case of data reception from a proxy master station, it judges whether or not the timer has timed out and has not timed out. If it is determined that the data reception from the proxy master station is abandoned, if it is determined that a time-out has occurred, data communication with the proxy master station is executed.

【0011】また、優先親局と代理親局に設定される複
数台の親局と、前記親局から遠隔制御される1台或いは
複数の子局とから構成されるローカルエリアネットワー
クを利用したデータ通信方法において、前記代理親局
は、通常、前記優先親局或いは子局からのデータを受信
し、前記優先親局或いは子局に対しデータ交信をせず
に、前記優先親局を異常と判断した場合のみ、前記子局
とデータ交信を実行するものである。
Data using a local area network composed of a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled by the master station. In the communication method, the proxy master station normally receives the data from the priority master station or the slave station and determines that the priority master station is abnormal without data communication with the priority master station or the slave station. Only in this case, data communication is executed with the slave station.

【0012】また、優先親局と代理親局に設定される複
数台の親局と、前記親局から遠隔制御される1台或いは
複数の子局とから構成されるローカルエリアネットワー
クを利用したデータ通信方法において、前記代理親局
は、優先親局からデータを交信するまでの時間を測定す
るためのタイマを起動し、子局或いは優先親局からのデ
ータの受信待ちを行い、子局或いは優先親局からのデー
タを受信したか否かを判断し、受信データがなかったと
判断した場合には前記タイマがタイムアウトしているか
否かを判断し、タイムアウトしていると判断した場合に
は、優先親局が異常であるとしてデータを送信する子局
を選択し、選択した子局に対してデータを送信し、子局
からデータを受信するまでの時間を測定するためのタイ
マを起動して、子局或いは優先親局からのデータ受信待
ちを実行し、子局或いは優先親局からデータを受信した
か否かを判断し、受信したと判断した場合、受信データ
内の発信局データにより優先親局から受信したか否かを
判断し、優先親局からのデータを受信したと判断した場
合には優先親局が復帰したと判断し、反対に、受信して
いないと判断した場合には前記タイマがタイムアウトし
ているか否かを判断するものである。
Data using a local area network composed of a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled by the master station. In the communication method, the proxy master station activates a timer for measuring the time until data communication from the priority master station, waits for reception of data from the slave station or priority master station, and then the slave station or priority If it judges that the data from the master station has been received, if it judges that there is no received data, it judges whether the timer has timed out, and if it judges that it has timed out, it gives priority. Select a slave station that transmits data as the master station is abnormal, send data to the selected slave station, start a timer to measure the time until data is received from the slave station, Slave station Or wait for data reception from the priority master station to determine whether or not data has been received from the slave station or priority master station. If it is judged that the data from the priority master station has been received, it is judged that the priority master station has returned. Conversely, if it is judged that the data has not been received, the timer Is to determine whether or not has timed out.

【0013】また、前記優先親局と代理親局において前
記子局を制御するリンクデバイスの範囲が同一に設定さ
れているものである。
Further, the range of the link device controlling the slave station is set to be the same in the priority master station and the proxy master station.

【0014】[0014]

【作用】この発明におけるデータ通信方法は、優先親局
と代理親局で各子局を制御するリンクデバイスの範囲を
同一に設定し、通常、各子局は優先親局からのデータ交
信により制御され、代理親局からのデータ交信は破棄す
ると同時に優先親局からのデータ交信の間隔を測定し、
一定時間の経過により優先親局を異常と判断したとき、
代理親局とデータ交信を実行する。
In the data communication method according to the present invention, the range of the link device for controlling each slave station is set to be the same in the priority master station and the proxy master station, and normally each slave station is controlled by data communication from the priority master station. The data communication from the proxy master station is discarded, and at the same time the data communication interval from the priority master station is measured.
When the priority master station is judged to be abnormal due to the passage of a certain time,
Executes data communication with the proxy master station.

【0015】また、優先親局と代理親局で各子局を制御
するリンクデバイスの範囲を同一に設定し、通常、代理
親局は他の局からのデータは受信するが他の局に対しデ
ータ交信を実行せず、優先親局からのデータ交信の間隔
を測定し、一定時間の経過により優先親局を異常と判断
したとき、他の局に対してデータ交信を実行する。
In addition, the range of the link device that controls each slave station is set to the same in the priority master station and the proxy master station, and normally, the proxy master station receives data from other stations but The data communication interval from the priority master station is measured without executing data communication, and when it is determined that the priority master station is abnormal after the elapse of a certain time, data communication is executed to other stations.

【0016】[0016]

【実施例】以下、この発明の一実施例を図について説明
する。図1は、図6に示した各PC1(PC1 ,P
2 ,・・・PCn )のリンクデバイス制御範囲例であ
り、図1において、31は図6に示した2ポートRAM
2e内にある優先親局リンクデバイス全体、32は代理
親局リンクデバイス全体、33は子局1リンクデバイス
全体、34は子局nリンクデバイス全体である。35は
優先親局が各子局に送信するリンクデバイス範囲、36
は代理親局が各子局に送信するリンクデバイス範囲、3
7は親局から受信するリンクデバイス範囲、38は子局
1が親局に送信するリンクデバイス範囲、39は親局が
子局1から受信するリンクデバイス範囲、40は子局n
が親局に送信するリンクデバイス範囲、41は親局が子
局nから受信するリンクデバイス範囲、42は優先親局
から各子局に実行されるデータ交信におけるデータの流
れ、43は優先親局ダウン時に代理親局から各子局に実
行されるデータ交信におけるデータの流れ、44は子局
1から親局に行われるデータ交信におけるデータの流
れ、45は子局nから親局に行われるデータ交信におけ
るデータの流れを各々示す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows each PC 1 (PC 1 , P 1 shown in FIG.
C 2 , ... PC n ) is an example of a link device control range, and in FIG. 1, 31 is the 2-port RAM shown in FIG.
2e is the whole priority master station link device, 32 is the whole substitute master station link device, 33 is the whole slave station 1 link device, and 34 is the whole slave station n link device. 35 is a link device range transmitted from the priority master station to each slave station, and 36
Is the range of link devices that the proxy master station sends to each slave station, 3
7 is a link device range received from the master station, 38 is a link device range transmitted from the slave station 1 to the master station, 39 is a link device range received from the slave station 1 by the master station, and 40 is a slave station n.
Is a link device range transmitted to the master station, 41 is a link device range received from the slave station n by the master station, 42 is a data flow in data communication executed from the priority master station to each slave station, and 43 is the priority master station Data flow in data communication executed from the proxy master station to each slave station at the time of down, 44 is a data flow in data communication performed from the slave station 1 to the master station, and 45 is data performed from the slave station n to the master station The data flow in communication is shown respectively.

【0017】図2は、図6に示したROM2cの優先/
代理親局の送受信処理動作を示すフローチャートであ
り、図3は、図2に示した動作に対応する子局の送受信
処理動作を示すフローチャートである。また、図4は、
図6に示したROM2cの代理親局の送受信処理動作を
示すフローチャートであり、図5は、図4に示した動作
に対応する子局の送受信処理動作を示すフローチャート
である。
FIG. 2 shows the prioritization of the ROM 2c shown in FIG.
3 is a flowchart showing a transmission / reception processing operation of a proxy master station, and FIG. 3 is a flowchart showing a transmission / reception processing operation of a slave station corresponding to the operation shown in FIG. In addition, FIG.
6 is a flowchart showing a transmission / reception processing operation of a proxy master station of the ROM 2c shown in FIG. 6, and FIG. 5 is a flowchart showing a transmission / reception processing operation of a slave station corresponding to the operation shown in FIG.

【0018】〔実施例1〕次に、実施例1を説明する。
図1に示したようなリンクデバイスのデータ交信を行う
ため、図2のフローチャートに示すように優先/代理親
局の送受信処理を実行する。まず、親局はデータを送信
する子局を選択する(S1)。次に、選択した子局に対
して、図1に示したデータの流れ42或いは43に示す
ようにデータを送信し(S2)、子局からのデータを受
信するまでの時間を監視するタイマを起動して(S
3)、子局からのデータの受信待ちを行い(S4)、子
局からのデータを受信したか否かを判断し(S5)、図
1に示したデータの流れ44或いは45に示すような受
信をしたと判断した場合上記ステップ1へ戻り、反対
に、受信していないと判断した場合には、次に、上記タ
イマがタイムアウトしているか否かを判断し(S6)、
タイムアウトしていると判断した場合には上記ステップ
1へ戻り、反対に、タイムアウトしていないと判断した
場合には上記ステップ4へ戻る処理を実行する。
[Embodiment 1] Next, Embodiment 1 will be described.
In order to perform the data communication of the link device as shown in FIG. 1, the transmission / reception processing of the priority / proxy master station is executed as shown in the flowchart of FIG. First, the master station selects a slave station that transmits data (S1). Next, a timer is transmitted to the selected slave station as shown in data flow 42 or 43 of FIG. 1 to transmit data (S2) and monitor the time until data is received from the slave station. Start up (S
3) Waiting for data to be received from the slave station (S4), determining whether or not the data from the slave station has been received (S5), as shown in the data flow 44 or 45 of FIG. When it is determined that the timer has been received, the process returns to step 1, and when it is determined that the timer has not been received, it is then determined whether the timer has timed out (S6).
If it is determined that the time-out has occurred, the process returns to the step 1, and conversely, if it is determined that the time-out has not occurred, the process returns to the step 4 described above.

【0019】また、図3に示す子局の送受信処理は、ま
ず、親局からのデータ受信待ちを行い(S10)、親局
からのデータを受信したか否かを判断し(S11)、受
信していないと判断した場合には上記ステップ10へ戻
り、反対に、受信したと判断した場合には、図1に示し
たデータの流れ42或いは43のように受信データ内の
発信データにより、優先親局からのデータ受信か否かを
判断する(S12)。優先親局からの受信であると判断
した場合には優先親局監視用タイマを起動し(S1
3)、図1に示したデータの流れ44或いは45に示す
ようにデータを送信する(S14)。反対に、上記ステ
ップ12において、代理親局からのデータ受信であると
判断した場合は、監視用のタイマがタイムアウトしてい
るか否かを判断し(S15)、タイムアウトしていると
判断した場合には上記ステップ14の処理を実行して、
代理親局とデータ交信を行い、タイムアウトしていない
と判断した場合には優先親局は正常動作中であるので、
受信した代理親局からのデータを廃棄した後、上記ステ
ップ14の処理(データ送信)を実行する。
In the transmission / reception processing of the slave station shown in FIG. 3, first, data reception from the master station is waited for (S10), and it is judged whether data from the master station is received (S11). If it is determined that the received data has not been received, the process returns to step 10. On the contrary, if it is determined that the received data has been received, priority is given to the transmission data in the received data as in the data flow 42 or 43 shown in FIG. It is determined whether or not the data is received from the master station (S12). When it is determined that the reception is from the priority master station, the priority master station monitoring timer is activated (S1
3), the data is transmitted as shown in the data flow 44 or 45 of FIG. 1 (S14). On the contrary, if it is determined in step 12 that the data is received from the proxy master station, it is determined whether the monitoring timer has timed out (S15). Executes the processing in step 14 above,
If data communication is performed with the proxy master station and it is determined that the timeout has not occurred, the priority master station is operating normally.
After discarding the received data from the proxy master station, the processing of step 14 (data transmission) is executed.

【0020】〔実施例2〕次に、実施例2を説明する。
図1に示したような、リンクデバイスのデータ交信う行
うため、図4のフローチャートに示す代理親局の送受信
処理を実行する。まず、優先親局からデータを交信する
までの時間を測定するための監視タイマを起動し(S2
3)、子局或いは優先親局からのデータの受信待ちを行
い(S20)、子局或いは優先親局からデータを受信し
たか否かを判断し(S21)、受信したと判断した場
合、次に優先親局からの受信か否かを判断し(S2
2)、優先親局からの受信ではない場合、即ち、子局か
ら送信されたデータであると判断した場合には上記ステ
ップ20に戻り、優先親局から送信されたデータである
と判断した場合には上記ステップ23に戻る。また、上
記ステップ21において、受信データがなかったと判断
した場合は、次に、監視タイマがタイムアウトしている
か否かを判断し(S24)、タイムアウトしていないと
判断した場合には、上記ステップ20へ戻る。反対に、
タイムアウトしていると判断した場合には、優先親局が
異常であると判断してデータを送信する子局を選択する
(S25)。
[Second Embodiment] Next, a second embodiment will be described.
In order to perform data communication of the link device as shown in FIG. 1, the transmission / reception process of the proxy master station shown in the flowchart of FIG. 4 is executed. First, a monitoring timer for measuring the time until data communication from the priority master station is started (S2
3) Wait for reception of data from the slave station or priority master station (S20), determine whether or not data has been received from the slave station or priority master station (S21), and if it is determined that the data has been received, First, it is determined whether or not the reception is from the priority master station (S2
2) If it is not received from the priority master station, that is, if it is determined that the data is transmitted from the child station, the process returns to step 20 and it is determined that the data is transmitted from the priority master station. Returns to step 23 above. If it is determined in step 21 that there is no received data, it is then determined whether or not the monitoring timer has timed out (S24). Return to. Conversely,
If it is determined that the time-out has occurred, it is determined that the priority master station is abnormal, and the slave station that transmits data is selected (S25).

【0021】次に、選択した子局に対して図1に示した
データの流れ43に示すようにデータを送信し(S2
6)、子局からデータを受信するまでの時間を測定する
ための監視タイマを起動して(S27)、子局或いは優
先親局からのデータ受信待ちを行い(S28)、子局或
いは優先親局からデータを受信したか否かを判断し(S
29)、受信したと判断した場合、受信データ内の発信
局データにより優先親局から受信したのか否かを判断し
(S31)、優先親局からのデータを受信したと判断し
た場合には優先親局が復帰したとして上記ステップ23
へ戻り、反対に、子局からのデータを受信したと判断し
た場合には上記ステップ25へ戻る。また、上記ステッ
プ29において、受信していないと判断した場合には監
視タイマがタイムアウトしているか否かを判断し(S3
0)、タイムアウトしていると判断した場合には上記ス
テップ25へ戻り、反対に、タイムアウトしていないと
判断した場合には上記ステップ28へ戻る処理を実行す
る。
Next, data is transmitted to the selected slave station as shown in the data flow 43 shown in FIG. 1 (S2
6) Start a monitoring timer for measuring the time until data is received from the slave station (S27), wait for data reception from the slave station or priority master station (S28), and It is judged whether or not the data is received from the station (S
29) If it is determined that the data has been received, it is determined whether the data has been received from the priority master station based on the source station data in the received data (S31). If it is determined that the data from the priority master station has been received, priority is given. Assuming that the master station is back, step 23 above
If it is determined that the data from the slave station is received, the process returns to step 25. If it is determined in step 29 that the reception has not been performed, it is determined whether the monitoring timer has timed out (S3
0) If it is determined that the time-out has occurred, the process returns to the step 25. On the contrary, if it is determined that the time-out has not occurred, the process returns to the step 28.

【0022】図5に示す子局の送受信処理は、まず、親
局からのデータ受信待ちの状態にあり(S40)、デー
タを受信したか否かを判断し(S41)、受信していな
いと判断した場合には上記ステップ40へ戻り、反対
に、受信したと判断した場合には子局のデータを親局に
伝えるために、図1に示したデータの流れ44或いは4
5に示すように子局のデータを送信し(S42)、上記
ステップ40へ戻る。また、優先親局の送受信処理動作
は、上記実施例1で説明した図2に示すフローチャート
と同一内容である。
In the transmission / reception process of the slave station shown in FIG. 5, first, in the state of waiting for data reception from the master station (S40), it is judged whether or not the data is received (S41), and if it is not received. If it is determined, the process returns to step 40. Conversely, if it is determined that the data has been received, the data flow 44 or 4 shown in FIG.
The data of the slave station is transmitted as shown in FIG. 5 (S42), and the process returns to step 40. The transmission / reception processing operation of the priority master station has the same contents as the flowchart shown in FIG. 2 described in the first embodiment.

【0023】[0023]

【発明の効果】以上のように、この発明によれば、優先
親局と代理親局の2台の親局にて各子局を制御し、優先
親局ダウン時にあっては代理親局が代わりに各子局を制
御するためシステムがダウンせず、データ通信処理効率
を向上させることができる。また、制御局が代わっても
リンクデバイスの範囲が同一であるため、各子局にて制
御局が代わったときのためのシーケンスプログラムを作
る必要がないという効果もある。
As described above, according to the present invention, each master station is controlled by the two master stations, the priority master station and the proxy master station, and the proxy master station is operated when the priority master station is down. Instead, since each slave station is controlled, the system does not go down, and the data communication processing efficiency can be improved. Further, since the range of the link device is the same even if the control station is changed, there is also an effect that it is not necessary to create a sequence program for each child station when the control station is changed.

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

【図1】この発明に係る親局と子局のリンクデバイス制
御範囲を示す説明図である。
FIG. 1 is an explanatory diagram showing a link device control range of a master station and a slave station according to the present invention.

【図2】この発明に係る優先/代理親局の送受信処理動
作(実施例1)を示すフローチャートである。
FIG. 2 is a flow chart showing a transmission / reception processing operation (embodiment 1) of the priority / proxy master station according to the present invention.

【図3】この発明に係る子局の送受信処理動作(実施例
1)を示すフローチャートである。
FIG. 3 is a flowchart showing a transmission / reception processing operation (embodiment 1) of a child station according to the present invention.

【図4】この発明に係る代理親局送受信処理動作(実施
例2)を示すフローチャートである。
FIG. 4 is a flowchart showing a proxy master station transmission / reception processing operation (second embodiment) according to the present invention.

【図5】この発明に係る子局の送受信処理動作(実施例
2)を示すフローチャートである。
FIG. 5 is a flowchart showing a transmission / reception processing operation (embodiment 2) of the child station according to the present invention.

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

【図7】従来における親局と子局のリンクデバイス制御
範囲を示す説明図である。
FIG. 7 is an explanatory diagram showing a conventional link device control range of a master station and a slave station.

【図8】従来における親局の送受信処理動作を示すフロ
ーチャートである。
FIG. 8 is a flowchart showing a transmission / reception processing operation of a conventional parent station.

【図9】従来における子局の送受信処理動作を示すフロ
ーチャートである。
FIG. 9 is a flowchart showing a transmission / reception processing operation of a conventional slave station.

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

1 プログラマブルコントローラ 2 データ通信制御部 3 シーケンス制御部 4 ケーブル 31 優先親局リンクデバイス全体 32 代理親局リンクデバイス全体 33 子局1リンクデバイス全体 34 子局nリンクデバイス全体 35 優先親局送信リンクデバイス範囲 36 代理親局送信リンクデバイス範囲 37 子局受信リンクデバイス範囲 38 子局1送信リンクデバイス範囲 39 親局の子局1リンクデバイス範囲 40 子局n送信リンクデバイス範囲 41 親局の子局nリンクデバイス範囲 42 優先親局のデータ通信におけるデータの流れ 43 代理親局のデータ通信におけるデータの流れ 44 子局1のデータ通信におけるデータの流れ 45 子局nのデータ通信におけるデータの流れ 1 programmable controller 2 data communication control unit 3 sequence control unit 4 cable 31 whole priority master station link device 32 whole substitute master station link device 33 slave station 1 link device whole 34 slave station n link device whole 35 priority master station transmission link device range 36 Substitute master station transmission link device range 37 Slave station reception link device range 38 Slave station 1 transmission link device range 39 Master station slave station 1 link device range 40 Slave station n transmission link device range 41 Master station slave station n link device Range 42 Data flow in data communication of priority master station 43 Data flow in data communication of proxy master station 44 Data flow in data communication of slave station 1 45 Data flow in data communication of slave station n

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 優先親局と代理親局に設定される複数台
の親局と、前記親局から遠隔制御される1台或いは複数
の子局とから構成されるローカルエリアネットワークを
利用したデータ通信方法において、前記子局は前記親局
からのデータの受信待ちをし、データを受信した場合に
は、前記優先親局からのデータ受信か否かを判断し、前
記優先親局からのデータ受信である場合にはデータ送信
を実行する、代理親局からのデータ受信の場合には優先
親局が異常か否かを判断し、異常でないと判断すれば前
記代理親局からのデータ受信を廃棄し、異常であると判
断すれば前記代理親局とデータ交信を実行することを特
徴とするデータ通信方法。
1. Data using a local area network composed of a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled by the master station. In the communication method, the slave station waits for reception of data from the master station, and when data is received, it is determined whether or not data is received from the priority master station, and data from the priority master station is received. If it is a reception, data transmission is executed.If it is a data reception from the proxy master station, it is judged whether or not the priority master station is abnormal. If it is judged that it is not abnormal, the data reception from the proxy master station is performed. A data communication method, characterized by discarding and performing data communication with the proxy master station if it is judged to be abnormal.
【請求項2】 優先親局と代理親局に設定される複数台
の親局と、前記親局から遠隔制御される1台或いは複数
の子局とから構成されるローカルエリアネットワークを
利用したデータ通信方法において、前記子局は前記親局
からのデータの受信待ちをし、データを受信した場合に
は、前記優先親局からのデータ受信か否かを判断し、前
記優先親局からのデータ受信である場合にはデータ交信
の間隔を監視するタイマを起動し、データ送信を実行す
る、代理親局からのデータ受信の場合には前記タイマが
タイムアウトか否かを判断し、タイムアウトしていない
と判断すれば前記代理親局からのデータ受信を廃棄し、
タイムアウトしていると判断すれば前記代理親局とデー
タ交信を実行することを特徴とするデータ通信方法。
2. Data using a local area network composed of a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled by the master station. In the communication method, the slave station waits for reception of data from the master station, and when data is received, it is determined whether or not data is received from the priority master station, and data from the priority master station is received. If it is a reception, it starts a timer that monitors the interval of data communication and executes data transmission.In the case of data reception from a proxy master station, it judges whether or not the timer has timed out and has not timed out. If it is judged that the data reception from the proxy master station is discarded,
A data communication method, wherein data communication is executed with the proxy master station if it is determined that a time-out has occurred.
【請求項3】 優先親局と代理親局に設定される複数台
の親局と、前記親局から遠隔制御される1台或いは複数
の子局とから構成されるローカルエリアネットワークを
利用したデータ通信方法において、前記代理親局は、通
常、前記優先親局或いは子局からのデータを受信し、前
記優先親局或いは子局に対しデータ交信をせずに、前記
優先親局を異常と判断した場合のみ、前記子局とデータ
交信を実行することを特徴とするデータ通信方法。
3. Data using a local area network comprising a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled by the master station. In the communication method, the proxy master station normally receives the data from the priority master station or the slave station and determines that the priority master station is abnormal without data communication with the priority master station or the slave station. The data communication method is characterized in that the data communication is executed with the slave station only when the communication is performed.
【請求項4】 優先親局と代理親局に設定される複数台
の親局と、前記親局から遠隔制御される1台或いは複数
の子局とから構成されるローカルエリアネットワークを
利用したデータ通信方法において、前記代理親局は、優
先親局からデータを交信するまでの時間を測定するため
のタイマを起動し、子局或いは優先親局からのデータの
受信待ちを行い、子局或いは優先親局からのデータを受
信したか否かを判断し、受信データがなかったと判断し
た場合には前記タイマがタイムアウトしているか否かを
判断し、タイムアウトしていると判断した場合には、優
先親局が異常であるとしてデータを送信する子局を選択
し、選択した子局に対してデータを送信し、子局からデ
ータを受信するまでの時間を測定するためのタイマを起
動して、子局或いは優先親局からのデータ受信待ちを実
行し、子局或いは優先親局からデータを受信したか否か
を判断し、受信したと判断した場合、受信データ内の発
信局データにより優先親局から受信したか否かを判断
し、優先親局からのデータを受信したと判断した場合に
は優先親局が復帰したと判断し、反対に、受信していな
いと判断した場合には前記タイマがタイムアウトしてい
るか否かを判断することを特徴とするデータ通信方法。
4. Data using a local area network composed of a plurality of master stations set as a priority master station and a proxy master station, and one or a plurality of slave stations remotely controlled by the master station. In the communication method, the proxy master station activates a timer for measuring the time until data communication from the priority master station, waits for reception of data from the slave station or priority master station, and then the slave station or priority If it judges that the data from the master station has been received, if it judges that there is no received data, it judges whether the timer has timed out, and if it judges that it has timed out, it gives priority. Select a slave station that transmits data as the master station is abnormal, send data to the selected slave station, start a timer to measure the time until data is received from the slave station, Child station or Wait for data reception from the priority master station, judge whether or not data is received from the slave station or priority master station, and if it is judged that it is received, receive it from the priority master station according to the source station data in the received data. If it is judged that the data from the priority master station has been received, it is judged that the priority master station has returned. Conversely, if it is judged that the data has not been received, the timer times out. A data communication method characterized by determining whether or not the data communication is being performed.
【請求項5】 前記優先親局と代理親局において前記子
局を制御するリンクデバイスの範囲が同一に設定されて
いることを特徴とする請求項1,2,3または4記載の
データ通信方法。
5. The data communication method according to claim 1, wherein the range of link devices controlling the slave station is set to be the same in the priority master station and the proxy master station. .
JP4240806A 1992-09-09 1992-09-09 Data communication method Expired - Lifetime JP2798329B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4240806A JP2798329B2 (en) 1992-09-09 1992-09-09 Data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4240806A JP2798329B2 (en) 1992-09-09 1992-09-09 Data communication method

Publications (2)

Publication Number Publication Date
JPH0690237A true JPH0690237A (en) 1994-03-29
JP2798329B2 JP2798329B2 (en) 1998-09-17

Family

ID=17064968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4240806A Expired - Lifetime JP2798329B2 (en) 1992-09-09 1992-09-09 Data communication method

Country Status (1)

Country Link
JP (1) JP2798329B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4444688A1 (en) * 1994-12-15 1996-06-20 Abb Patent Gmbh Process for highly reliable and consistent message transmission

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4393517B2 (en) 2004-03-01 2010-01-06 パナソニック株式会社 Terminal capable of acting as a control station

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61152141A (en) * 1984-12-25 1986-07-10 Nec Corp Radio station monitor system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61152141A (en) * 1984-12-25 1986-07-10 Nec Corp Radio station monitor system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4444688A1 (en) * 1994-12-15 1996-06-20 Abb Patent Gmbh Process for highly reliable and consistent message transmission

Also Published As

Publication number Publication date
JP2798329B2 (en) 1998-09-17

Similar Documents

Publication Publication Date Title
Hartwich et al. CAN network with time triggered communication
US20130145025A1 (en) Programmable controller
JPH0690237A (en) Data communication method
JPH1041964A (en) Network system for programmable controller
JPH10185634A (en) Measuring system
JPH08102755A (en) Method for monitoring station to be controlled
JP2004260562A (en) Method and device for transmitting and receiving packet
JP2724572B2 (en) Token passing LAN device
JPS6058741A (en) Method for transmitting supervising instruction in remote supervisory and controlling equipment
JPH11284642A (en) Data transmission system, polling method, and polling frequency setting method
JP3205823B2 (en) Monitoring device for devices connected by communication line
JPH0764472A (en) Remote i/o system of programmable controller
JP2541502B2 (en) Control message transmission / reception method
JP2930264B2 (en) Data transmission equipment
JPH02164157A (en) System test mode
JP2000163112A (en) Controller for industrial robot
JPH02217039A (en) Poling/selecting control procedure system
JP2003141280A (en) Operating state monitoring system, merchandise information processor and monitoring device, and program therefor
JP2000244539A (en) Data collecting transmitter
JPH01149637A (en) System for monitoring polling control response
JPS6258745A (en) Multiple address communication system
JPH09102986A (en) Process control system and i/o data collecting method for the same
JPS63267038A (en) Communication system
JPH06244852A (en) Diagnostic system
JPH1023046A (en) Poling type monitoring method

Legal Events

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

Free format text: PAYMENT UNTIL: 20070703

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080703

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090703

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100703

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100703

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110703

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20110703

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20130703

Year of fee payment: 15

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

Free format text: PAYMENT UNTIL: 20130703

Year of fee payment: 15