JPH0828727B2 - Programmable controller network communication method - Google Patents
Programmable controller network communication methodInfo
- Publication number
- JPH0828727B2 JPH0828727B2 JP63244635A JP24463588A JPH0828727B2 JP H0828727 B2 JPH0828727 B2 JP H0828727B2 JP 63244635 A JP63244635 A JP 63244635A JP 24463588 A JP24463588 A JP 24463588A JP H0828727 B2 JPH0828727 B2 JP H0828727B2
- Authority
- JP
- Japan
- Prior art keywords
- programmable controller
- command
- token
- response
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Small-Scale Networks (AREA)
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、各々のプログラマブルコントローラ(以
下、PCと記す)をノードとして、複数のPCが接続されて
成るPCネットワークの前記各々のPCが、トークンパッシ
ング方式で相互に通信を行なうPCネットワークの通信方
法に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a programmable controller (hereinafter, referred to as a PC) as a node, in which a plurality of PCs are connected to each other in a PC network. The present invention relates to a communication method of a PC network that communicates with each other by a token passing method.
[従来の技術] トークンパッシング方式とは、トークンと呼ばれる制
御パケットをシステムネットワークに巡回(パッシン
グ)させ、これを受けとったノード(通信装置)が送信
権を得る通信方式である。[Prior Art] The token passing method is a communication method in which a control packet called a token is circulated (passed) in a system network and a node (communication device) receiving the control packet obtains a transmission right.
周知のように、PCは、通信専用の端末とは異なり、シ
ーケンスコントローラであってそれ自体が果たされなけ
ればならない、通信以外の、本来のタスクを持ってい
る。したがって、それぞれのPCが自分に与えられたマス
クを実行しながら行う通信には、通常の通信ネットワー
クで行われるコマンド・レスポンスシーケンス(汎用シ
ーケンス)のほかに、そのPCネットワークのPCモジュー
ル間専用の(PCリンク内専用の)コマンド・レスポンス
シーケンス(以下、専用シーケンスと記す)が必要にな
る。PCネットワークの汎用シーケンスとしては、例え
ば、シーケンサとモニタとの間の通信がそれに該当す
る。また、専用シーケンスとしては、例えば、データを
送信しようとするPCからそれを受信すべきPCへ送信され
るI/O割り付け指示とそれに対するレスポンスがこれに
該当する。As is well known, a PC, unlike a terminal dedicated to communication, has an original task other than communication, which is a sequence controller and must be performed by itself. Therefore, in addition to the command / response sequence (general-purpose sequence) performed in a normal communication network, each PC performs communication while performing the mask given to itself, and ( A command / response sequence (dedicated to PC link) (hereinafter referred to as a dedicated sequence) is required. As the general-purpose sequence of the PC network, for example, the communication between the sequencer and the monitor corresponds thereto. Further, as the dedicated sequence, for example, the I / O allocation instruction transmitted from the PC that is going to transmit the data to the PC that should receive the data and the response thereto correspond thereto.
以下の記述において、PC間の通信とは、専用シーケン
スを指すものとし、したがって、コマンド、レスポンス
とは、専用シーケンスのコマンド、レスポンスを指すも
のとする。In the following description, communication between PCs refers to a dedicated sequence, and therefore commands and responses refer to commands and responses in a dedicated sequence.
従来、PCネットワーク内において、トークンパッシン
グ方式によってPC間の通信を行なうとき、その通信手順
は、必要に応じて任意に定められたマスタ(仮のマス
タ)PCと、マスタPCがコマンドを送信する相手先である
スレーブPCとが1対1で通信をする方式であった。すな
わち、マスタPCはスレーブPCへ送信するコマンドを作成
し、トークンを保有している時に該コマンドをスレーブ
PCへ送信する。一方、スレーブPCはコマンドを受取ると
レスポンスを作成し、トークンを保有してい時に該レス
ポンスをマスタPCに返信する。Conventionally, when communication between PCs is performed by token passing in a PC network, the communication procedure is such that a master (temporary master) PC arbitrarily defined as necessary and a partner with which the master PC sends a command. It was a system that communicates with the slave PC, which is the destination, on a one-to-one basis. That is, the master PC creates a command to send to the slave PC, and when the token is held, the slave PC sends the command.
Send to PC. On the other hand, when the slave PC receives the command, it creates a response, and when the token is held, it returns the response to the master PC.
第2図は、従来のこの種の通信方法を適用したPCネッ
トワーク内PC間のコマンド・レスポンスシーケンスの一
例を示す図である。FIG. 2 is a diagram showing an example of a command / response sequence between PCs in a PC network to which this conventional communication method is applied.
この例では、システムネットワークはn個のノードPC
1,2,…,n−1,nと、これらのノードを接続する伝送媒体
(リンク)で構成されている。第2図の縦軸は時間軸で
ある。トークンは、PC1,PC2,…,PCn−1,PCn,PC1,PC2,…
の順に巡回する。In this example, the system network is n node PCs.
It is composed of 1, 2, ..., N−1, n and a transmission medium (link) that connects these nodes. The vertical axis of FIG. 2 is the time axis. Tokens are PC1, PC2, ..., PCn-1, PCn, PC1, PC2, ...
Patrol in the order of.
ここで、マスタPCは、その時その時の必要に応じて定
められている。いま、PC1がマスタPCに定められたと
き、PC1から各スレーブPC2,3…,nに送信されるコマンド
が同一である場合には、コマンド・レスポンスシーケン
スは次のようになる。先ず、PC1はコマンドを作成し、
トークンが巡回してくるのを待つ。PC1はトークンを保
有するとPC2,PC3…に、トークン保有時間が終了するま
でコマンドを送信する。第2図の例ではコマンドがPC3
に送信された後にトークン保有時間が終了している。一
方、PC2,PC3はコマンドを受信すると、それに対応して
それぞれレスポンスを作成し、トークンが巡回して来る
のを待つ。PC2はトークンを受渡されると、レスポンス
をPC1に返信し、PC1は該レスポンスを処理する。次に、
トークンがPC3に渡されるとPC3はPC1にレスポンスを返
信し、PC1はPC3から受信したレスポンスを処理する。ト
ークンはさらにPC4,…,PCnに順次に受渡されるけれど、
これらのPCにはPC1からコマンドが送信されないので、
それぞれのトークン保有時間に、PC1へのレスポンスの
返信はない。Here, the master PC is determined according to the needs at that time. Now, when the command transmitted from PC1 to each slave PC2,3 ..., n is the same when PC1 is set as the master PC, the command / response sequence is as follows. First, PC1 creates a command,
Wait for the tokens to cycle. When PC1 holds the token, it sends a command to PC2, PC3 ... Until the token holding time expires. In the example of Fig. 2, the command is PC3
The token holding time has expired after being sent to. On the other hand, when PC2 and PC3 receive the command, they respectively create a response and wait for the token to circulate. When the token is passed, PC2 returns a response to PC1, and PC1 processes the response. next,
When the token is passed to PC3, PC3 returns a response to PC1, and PC1 processes the response received from PC3. The tokens will be handed over to PC4, ..., PCn in sequence,
Since commands are not sent from PC1 to these PCs,
No response is returned to PC1 at each token holding time.
このようにトークンが1回巡回して再びPC1に渡され
ると、PC1はPC4,PC5にコマンドを送信し(第2図の例で
は、PC1は1回のトークン保有時間に2つのスレーブPC
にコマンド送信し、nは奇数である。)、PC2,PC3のと
きと同様のシーケンスが実行される(図示せず)。この
ときにおいてもトークンはPC2,PC3,PC6,…,PCnに巡回す
るけれど、これらのスレーブPCからは、レスポンスが返
信されない。In this way, when the token is circulated once and passed to PC1 again, PC1 sends a command to PC4 and PC5 (in the example of Fig. 2, PC1 has two slave PCs at one token holding time).
Command is transmitted to n, and n is an odd number. ), The same sequence as in PC2, PC3 is executed (not shown). At this time, the token circulates to PC2, PC3, PC6, ..., PCn, but no response is returned from these slave PCs.
このようなシーケンスを繰返してトークンが(n−
3)/2回巡回して、再びPC1に渡されると、PC1はPCn−
1,PCnにコマンドを送信し、前述と同様の処理が行なわ
れて、すべてのスレーブPCからのレスポンス処理が終了
する。By repeating such a sequence, the token becomes (n-
3) / 2 rounds and when it is handed to PC1 again, PC1
1, the command is sent to PCn, the same processing as described above is performed, and the response processing from all slave PCs is completed.
[発明が解決しようとする課題] 上述した従来のPCネットワークの通信方法は、全スレ
ーブPCに同一のコマンドを送信するとき、コマンドを作
成するマスタPCはPCネットワーク内に存在する相手PCの
数だけコマンドを送信しなければならない。その結果、
PC数が多く、1回のトークン保有時間ではすべてのスレ
ーブPCにコマンドを送信できない場合には、コマンド・
レスポンスのシーケンスを完了するためには、トークン
が数回巡回することが必要になり、通信処理の効率を低
下させるという欠点がある。[Problems to be Solved by the Invention] In the conventional communication method of the PC network described above, when the same command is transmitted to all slave PCs, the master PC that creates the command is as many as the number of partner PCs existing in the PC network. You must send the command. as a result,
If the number of PCs is large and commands cannot be sent to all slave PCs within one token holding time, the command
In order to complete the response sequence, it is necessary for the token to make several rounds, which has the drawback of reducing the efficiency of communication processing.
[課題を解決するための手段] 本発明のPCネットワークの通信方法は、 各々のPCをノードとして、複数のPCが接続されて成る
PCネットワークの前記各々のPCが、トークンパッシング
方式で相互に通信を行なうPCネットワークの通信方法に
おいて、 必要に応じて任意に定められたマスタPCは、トークン
を保有している時にブロードキャスト方式でコマンドを
送信し、それぞれのスレーブPCは、トークンを保有して
いる時、マスタPCに対してレスポンスを返信する。[Means for Solving the Problems] A communication method of a PC network according to the present invention is configured by connecting a plurality of PCs with each PC as a node.
In the communication method of the PC network in which each of the PCs of the PC network communicates with each other by the token passing method, the master PC, which is arbitrarily determined as necessary, sends the command by the broadcast method while holding the token. Each slave PC sends a response to the master PC when it has a token.
[作用] 全スレーブPCに同一のコマンドを送信するとき、マス
タPCは、PCリンク内専用コマンドを作成し、トークンを
保有した時、そのコマンドを全スレーブPCへブロードキ
ャスト送信(一斉同報、すなわち、送信される情報の受
信者を特定せず、該情報を受取る必要があり、かつ、受
取る権利があるすべての受信者が該情報を受信する通信
方式)する。スレーブPCはコマンドを受け取ると、レス
ポンスを作成し、それぞれトークンを保有したときに該
レスポンスをマスタPCへ返信する。[Operation] When sending the same command to all slave PCs, the master PC creates a dedicated command in the PC link, and when it holds a token, broadcasts that command to all slave PCs (simultaneous broadcast, that is, A communication method in which it is necessary to receive the information without specifying the recipient of the transmitted information, and all the recipients who have the right to receive the information receive the information). When the slave PC receives the command, it creates a response, and when the token is held, it returns the response to the master PC.
したがって、PCの数が多くなってもマスタPCからのコ
マンドの送信は、1回のトークン保有時間で完了するの
で、コマンド・レスポンスのシーケンスはトークンが1
回巡回すると完了し、通信処理の効率を高めることがで
きる。Therefore, even if the number of PCs increases, the command transmission from the master PC is completed in one token holding time, so the sequence of command response is 1 token.
It is completed when the circuit is circulated, and the efficiency of communication processing can be improved.
[実施例] 次に、本発明の実施例について図面を参照して説明す
る。Example Next, an example of the present invention will be described with reference to the drawings.
第1図は本発明の通信方法を適用した、PCネットワー
ク内PC間のコマンド・レスポンスシーケンスの一実施例
を示す図である。FIG. 1 is a diagram showing an embodiment of a command / response sequence between PCs in a PC network to which the communication method of the present invention is applied.
本実施例も、PCネットワークは第2図のPCネットワー
クと同様にn個のPC1,2,…,nで成り、PC1がマスタPCに
定められた場合である。また、トークンはPC1,PC2,…PC
n−1,PCnの順に巡回する。Also in this embodiment, the PC network is composed of n PCs 1, 2, ..., N similarly to the PC network of FIG. 2, and PC1 is set as the master PC. Also, the tokens are PC1, PC2,… PC
It cycles in the order of n−1 and PCn.
PC1は、全スレーブPCに送るためPCリンク内専用のコ
マンドを作成してトークンが回って来るのを待ち、トー
クンを保有すると、作成したコマンドをブロードキャス
ト送信によって全スレーブPC2,3,…,n−1,nへ送る。各
スレーブPC2,3,…,n−1,nは、そのコマンドを受取る
と、それぞれレスポンスを作成してトークンが回って来
るのを待つ。PC2はトークンを保有すると、作成したレ
スポンスをPC1へ返信する。PC1は、そのレスポンスを受
け取るとレスポンス処理を行なう。PC3〜PCnについても
同様である。PC1 creates a dedicated command in the PC link to send to all slave PCs, waits for the token to come around, and when it holds the token, broadcasts the created command to all slave PCs2,3, ..., n- Send to 1, n. When each slave PC2,3, ..., n-1, n receives the command, it creates a response and waits for a token to come around. When PC2 holds the token, it returns the created response to PC1. When PC1 receives the response, it performs response processing. The same applies to PC3 to PCn.
[発明の効果] 以上説明したように本発明は、トークンパッシング方
式を用いてPCネットワーク内PC間のデータ授受をする場
合において、定められたPCからその他の全PCへ同一のコ
マンドを送るときにはブロードキャスト方式で送信する
ことにより、1回のトークン保有時間で各PCにコマンド
を送信することができ、その結果、PCネットワーク内の
通信の効率を高めることができる効果がある。[Effect of the Invention] As described above, the present invention broadcasts when the same command is sent from a specified PC to all other PCs in the case of exchanging data between PCs in the PC network using the token passing method. By transmitting by the method, the command can be transmitted to each PC in one token holding time, and as a result, the efficiency of communication in the PC network can be improved.
第1図は本発明の通信方法を適用したPCネットワーク内
PC間のコマンド・レスポンスシーケンスの一実施例を示
す図、第2図は従来のトークンパッシング方式を適用し
たPCネットワーク内PC間のコマンド・レスポンスシーケ
ンスの一例を示す図である。FIG. 1 shows a PC network to which the communication method of the present invention is applied.
FIG. 2 is a diagram showing an example of a command / response sequence between PCs, and FIG. 2 is a diagram showing an example of a command / response sequence between PCs in a PC network to which a conventional token passing system is applied.
Claims (1)
ドとし、任意の2つのプログラマブルコントローラが他
のプログラマブルコントローラに独立に相互通信可能に
接続されている複数のプログラマブルコントローラを有
するプログラマブルコントローラネットワークの前記各
々のプログラマブルコントローラが、トークンパッシン
グ方式で相互に通信を行うプログラマブルコントローラ
ネットワークの通信方法において、 コントロール動作中の任意のプログラマブルコントロー
ラから他のコントロール動作中のプログラマブルコント
ローラに通信をするときには、当該任意のプログラマブ
ルコントローラを仮のマスタプログラマブルコントロー
ラと定め、当該仮のマスタプログラマブルコントローラ
は、トークンを保有している時にブロードキャスト方式
で、プログラマブルコントローラリンク内専用のコマン
ドを送信し、それぞれのスレーブプログラマブルコント
ローラは、トークンを保有している時、マスタプログラ
マブルコントローラに対してレスポンスを返信すること
を特徴とするプログラマブルコントローラネットワーク
の通信方法。1. A programmable controller network comprising a plurality of programmable controllers, each programmable controller being a node, wherein any two programmable controllers are independently communicatively connected to another programmable controller. However, in the communication method of the programmable controller network that performs mutual communication by the token passing method, when communicating from any programmable controller in control operation to another programmable controller in control operation, that programmable controller is temporarily The master programmable controller is defined as the master programmable controller, and the temporary master programmable controller A dedicated controller network communication that transmits a dedicated command in the programmable controller link by the broadcast mode, and each slave programmable controller returns a response to the master programmable controller when holding the token. Method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63244635A JPH0828727B2 (en) | 1988-09-30 | 1988-09-30 | Programmable controller network communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63244635A JPH0828727B2 (en) | 1988-09-30 | 1988-09-30 | Programmable controller network communication method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0294848A JPH0294848A (en) | 1990-04-05 |
| JPH0828727B2 true JPH0828727B2 (en) | 1996-03-21 |
Family
ID=17121687
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63244635A Expired - Fee Related JPH0828727B2 (en) | 1988-09-30 | 1988-09-30 | Programmable controller network communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0828727B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW360829B (en) | 1997-02-10 | 1999-06-11 | Siemens Ag | Auditory active communication-subscriber, communication-method and communication system with auditory active communication-subscriber |
| CN116300542B (en) * | 2021-12-20 | 2026-02-10 | 浙江捷昌线性驱动科技股份有限公司 | A brushless motor lifting table control system and method based on RS485 bus communication |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS609247A (en) * | 1983-06-28 | 1985-01-18 | Fujitsu Ltd | Confirmation system for multiple address communication of token ring |
| JPS61228750A (en) * | 1985-04-02 | 1986-10-11 | Nec Corp | Management system of loop network |
| JPS62183239A (en) * | 1986-02-07 | 1987-08-11 | Hitachi Ltd | Multiple address communication system |
-
1988
- 1988-09-30 JP JP63244635A patent/JPH0828727B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0294848A (en) | 1990-04-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7149786B1 (en) | Network for data transmission | |
| JPH0828727B2 (en) | Programmable controller network communication method | |
| EP0638863A1 (en) | Distributed data processing system having uniform load distribution | |
| JPS6244808A (en) | Control method for nc working machine group | |
| CN116488961B (en) | Public unit gateway, communication method and communication system | |
| JPH0358214B2 (en) | ||
| JPS62159549A (en) | Data transfer system | |
| JPS63296538A (en) | Conference communication system in packet switching network | |
| JP2861385B2 (en) | Multiplexer | |
| JPS5962244A (en) | Network control method | |
| JPS621342A (en) | Exchange system for selective connection with terminal equipment | |
| JP3489717B2 (en) | Resource Initialization Method for Distributed Processing Service Control Station | |
| JPH04100439A (en) | Data transfer control system | |
| JPS6116652A (en) | Circuit switched transmission method | |
| JPH022246A (en) | Communication network control method | |
| JPH02222240A (en) | Transmission method for hierarchical system | |
| JPH10150455A (en) | Data transmission control method and device | |
| JPH02181538A (en) | Inter-multipoint communication control system | |
| JP2001211176A (en) | Automatic setting system for identification number of terminal in network | |
| JPS63187937A (en) | Network connection system | |
| JPS6374239A (en) | Data transmission equipment | |
| JPH04368034A (en) | Communication equipment | |
| JPH01225255A (en) | Communication control equipment | |
| JPS63135037A (en) | Establishing method for data link | |
| JPH06350666A (en) | Gate system between communication protocols |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |