JPH09128019A - Remote i/o system for plc - Google Patents

Remote i/o system for plc

Info

Publication number
JPH09128019A
JPH09128019A JP28595095A JP28595095A JPH09128019A JP H09128019 A JPH09128019 A JP H09128019A JP 28595095 A JP28595095 A JP 28595095A JP 28595095 A JP28595095 A JP 28595095A JP H09128019 A JPH09128019 A JP H09128019A
Authority
JP
Japan
Prior art keywords
slave
data
remote
remote master
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
JP28595095A
Other languages
Japanese (ja)
Other versions
JP3293089B2 (en
Inventor
Takashi Miyake
高志 三宅
Bunichi Imae
文一 今江
Hiroaki Takemura
宏昭 竹村
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP28595095A priority Critical patent/JP3293089B2/en
Publication of JPH09128019A publication Critical patent/JPH09128019A/en
Application granted granted Critical
Publication of JP3293089B2 publication Critical patent/JP3293089B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the superposition of IN data received from respective IN slaves and to surely receive the IN data. SOLUTION: At the time of receiving OUT data frame OF from a remote master by batch transmitting/receiving method, respective IN slaves transmit IN data frames IF0 to IF2 to the remote master at each timing of reference idle time in which frames are not mutually superposed by considering frame length and physical delay. The remote master receives the IN data frames IF0 to IF2 with the time slot of each slave based upon the basic idle time and enters respective IN data IN0 to IN2 based upon start bits to be the headers of respective data frames IF0 to IF2.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、リモートマスタ
と、そのリモートマスタと通信ケーブルを介し接続され
た複数のスレーブとからなり、リモートマスタと各スレ
ーブとの間でINデータおよびOUTデータを一括送受
信方式で送受信するようにしたプログラマブルコントロ
ーラ(以下、「PLC」という。)のリモートI/Oシ
ステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention comprises a remote master and a plurality of slaves connected to the remote master via a communication cable, and collectively transmits and receives IN data and OUT data between the remote master and each slave. The present invention relates to a remote I / O system of a programmable controller (hereinafter, referred to as "PLC") that transmits and receives by a method.

【0002】[0002]

【従来の技術】PLCのリモートI/Oシステムでは、
リモートマスタと、そのリモートマスタと通信ケーブル
を介し接続された各スレーブとの間で、INデータおよ
びOUTデータを送受信する方法として、いわゆる一括
送受信方式がある。
2. Description of the Related Art In a PLC remote I / O system,
There is a so-called batch transmission / reception method as a method of transmitting and receiving IN data and OUT data between a remote master and each slave connected to the remote master via a communication cable.

【0003】一括送受信方式では、図6に示すように、
リモートマスタからOUTスレーブへのOUTデータの
送受信は、リモートマスタがOUTデータの先頭にヘッ
ダを付けたOUTデータフレームOFを一括で全スレー
ブへ送信する一方、各OUTスレーブでは、各ノードの
タイミングでそのOUTデータフレームOF中から自ノ
ード宛てのOUTデータを受信するようにする。
In the batch transmission / reception system, as shown in FIG.
In the transmission and reception of OUT data from the remote master to the OUT slave, the remote master collectively transmits the OUT data frame OF in which the header of the OUT data is attached to all the slaves, while each OUT slave transmits the OUT data frame OF at the timing of each node. The OUT data addressed to the own node is received from the OUT data frame OF.

【0004】その一方、INスレーブからリモートマス
タへのINデータの送受信は、各INスレーブがOUT
データフレームOFの受信時等を基準に各ノードのタイ
ミングでINデータを含むINデータフレームIFを送
信する一方、リモートマスタは、INデータフレームI
F中から各INスレーブのノードアドレスの順で各IN
スレーブからのINデータを受信するようにする。
On the other hand, when transmitting and receiving IN data from the IN slave to the remote master, each IN slave outputs OUT.
While the IN data frame IF including the IN data is transmitted at the timing of each node with reference to the time of receiving the data frame OF, the remote master transmits the IN data frame I
Each IN in the order of the node address of each IN slave from F
Receive IN data from slave.

【0005】[0005]

【発明が解決しようとする課題】ところで、このような
PLCのリモートI/Oシステムでは、通常、I/Oデ
ータ処理、すなわちINデータの入力、PLC本体処
理、OUTデータの出力を高速に行いたいという要求
と、リモートI/Oシステムを構築しているため、各ス
レーブの状態や通信状態等の管理情報を収集して信頼性
を確保したいという要求とがある。
By the way, in such a PLC remote I / O system, it is usually desired to perform high-speed I / O data processing, that is, IN data input, PLC main body processing, and OUT data output. There is also a request to collect the management information such as the status of each slave and the communication status, and to ensure the reliability because the remote I / O system is constructed.

【0006】しかしながら、上記従来の一括送受信方式
では、リモートマスタがスレーブに対しOUTデータフ
レームを一括送信した後、各INスレーブが各々INデ
ータフレームを続けて送信してリモートマスタが受信す
るプロトコルであるため、トランシーバや、通信ケーブ
ル、送受信処理による遅延等の物理的遅延により、IN
データフレーム同士が重なって、INデータを受信でき
ない場合がある、という問題がある。
However, in the conventional batch transmission / reception method described above, after the remote master batch-transmits OUT data frames to the slaves, each IN slave continuously transmits each IN data frame and the remote master receives it. Therefore, due to physical delay such as delay due to transceiver, communication cable, transmission / reception processing, IN
There is a problem that IN frames cannot be received because the data frames overlap each other.

【0007】つまり、図7に示すように、上記物理的遅
延により、リモートマスタにおけるINスレーブ2から
のINデータ2の受信タイミングがサンプリングポイン
トより遅れて、次のINスレーブ3からのINデータフ
レーム3と重なって、INデータ2,3を受信できない
場合がある。
That is, as shown in FIG. 7, due to the physical delay, the reception timing of the IN data 2 from the IN slave 2 in the remote master is delayed from the sampling point, and the IN data frame 3 from the next IN slave 3 is received. And IN data 2 and 3 may not be received.

【0008】また、この上記従来の一括送受信方式で
は、リモートマスタとスレーブ間では、IN,OUTデ
ータのみしか送受信していないため、管理情報の収集に
よるネットワークの信頼性が確保できない、という問題
があった。
In the conventional batch transmission / reception method described above, since only IN and OUT data is transmitted / received between the remote master and the slave, there is a problem that the reliability of the network cannot be secured by collecting the management information. It was

【0009】このため、上記一括送受信方式によってス
レーブから管理情報をリモートマスタに通知しようとす
ると、INスレーブが送信するINデータ用のデータビ
ットを使用するしかなく、このようにした場合、INデ
ータビットの消費によって、リモートマスタ側のアプリ
ケーションプログラムが使用可能なI/O点数が減少す
ると共に、OUTスレーブにはINスレーブへ管理情報
を送信する機能を追加しなければならない、という新た
な問題が発生することになる。
Therefore, when the slave sends notification of management information to the remote master by the batch transmission / reception method, the data bit for IN data transmitted by the IN slave must be used. In this case, the IN data bit is transmitted. Consumption reduces the number of I / O points that can be used by the application program on the remote master side, and causes a new problem that the OUT slave must be added with a function of transmitting management information to the IN slave. It will be.

【0010】そこで、本発明は、このような問題に着目
してなされたもので、各INスレーブからのINデータ
フレームの重なりを防止して、確実に各INスレーブか
らのINデータを受信できると共に、伝送効率を下げず
に各スレーブからの管理情報を収集して信頼性を高めた
PLCのリモートI/Oシステムを提供することを目的
とする。
Therefore, the present invention has been made in view of such a problem, and prevents the IN data frames from the IN slaves from overlapping with each other and can reliably receive the IN data from the IN slaves. An object of the present invention is to provide a PLC remote I / O system in which the management information from each slave is collected without lowering the transmission efficiency and the reliability is improved.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明では、リモートマスタと、その
リモートマスタと通信ケーブルを介し接続された複数の
INスレーブおよびOUTスレーブとからなり、上記リ
モートマスタと上記各スレーブとの間でINデータおよ
びOUTデータを一括送受信方式で送受信するようにし
たPLCのリモートI/Oシステムにおいて、OUTデ
ータの送受信については、リモートマスタは各スレーブ
に対しOUTデータを一括で送信すると共に、各OUT
スレーブは自ノードのタイミングでOUTデータを受信
する一方、INデータの送受信については、各INスレ
ーブは上記OUTデータの受信後、フレーム長および物
理的遅延を考慮した基本アイドル時間毎にリモートマス
タに対しスタートコードを付して各々INデータを送信
する一方、リモートマスタは上記基本アイドル時間に基
づく各INスレーブ毎のタイムスロットで、各INデー
タに付された上記スタートコードに基づき各INスレー
ブからのINデータを受信する、ことを特徴とする。
In order to achieve the above object, the invention according to claim 1 comprises a remote master and a plurality of IN slaves and OUT slaves connected to the remote master via a communication cable. In a PLC remote I / O system in which IN data and OUT data are transmitted and received between the remote master and each slave by a batch transmission / reception method, regarding transmission / reception of OUT data, the remote master outputs OUT to each slave. Sends data in batch and outputs each OUT
While the slave receives OUT data at the timing of its own node, each IN slave transmits / receives IN data to the remote master at every basic idle time after considering the frame length and physical delay after receiving the OUT data. The remote master transmits the IN data with the start code, while the remote master sends the IN data from each IN slave in the time slot of each IN slave based on the basic idle time based on the start code attached to each IN data. Receiving data.

【0012】請求項2記載の発明では、リモートマスタ
と、そのリモートマスタと通信ケーブルを介し接続され
た複数のINスレーブおよびOUTスレーブとからな
り、上記リモートマスタと上記各スレーブとの間でIN
データおよびOUTデータを一括送受信方式で送受信す
るようにしたPLCのリモートI/Oシステムにおい
て、OUTデータの送受信については、リモートマスタ
は各スレーブに対しOUTデータを一括で送信すると共
に、各OUTスレーブは自ノードのタイミングでOUT
データを受信する一方、INデータの送受信について
は、各INスレーブは上記OUTデータの受信後、フレ
ーム長および物理的遅延を考慮した基本アイドル時間毎
にリモートマスタに対し自ノードアドレスを付して各々
INデータを送信する一方、リモートマスタは各INデ
ータに付されたノードアドレスに基づき各INスレーブ
からのINデータを受信する、ことを特徴とする。
According to a second aspect of the present invention, the remote master includes a plurality of IN slaves and OUT slaves connected to the remote master via a communication cable, and the IN is provided between the remote master and each slave.
In a PLC remote I / O system in which data and OUT data are transmitted / received in a batch transmission / reception method, regarding transmission / reception of OUT data, the remote master transmits OUT data to each slave in a batch and each OUT slave transmits OUT at the timing of its own node
While receiving data, each IN slave sends and receives IN data after receiving the OUT data, by assigning its own node address to the remote master every basic idle time in consideration of the frame length and the physical delay. While transmitting IN data, the remote master receives IN data from each IN slave based on the node address attached to each IN data.

【0013】請求項3記載の発明では、請求項1または
請求項2記載のPLCのリモートI/Oシステムにおい
て、基本アイドル時間は、INデータのフレーム長と、
INスレーブの物理的遅延の最大のものと最小のものと
の差との加算値である、ことを特徴とする。
According to a third aspect of the present invention, in the PLC remote I / O system according to the first or second aspect, the basic idle time is a frame length of IN data,
It is a sum of the difference between the maximum physical delay and the minimum physical delay of the IN slave.

【0014】請求項4記載の発明では、請求項1、請求
項2または請求項3記載のPLCのリモートI/Oシス
テムにおいて、リモートマスタは、各スレーブに対しO
UTデータを一括で送信した後、INデータ送信開始コ
マンドを送信する一方、各INスレーブは、INデータ
送信開始コマンドの受信時を基準として基本アイドル時
間毎にリモートマスタに対し各々INデータを送信す
る、ことを特徴とする。
According to a fourth aspect of the present invention, in the PLC remote I / O system according to the first, second or third aspect, the remote master outputs O to each slave.
After transmitting the UT data all at once, while transmitting the IN data transmission start command, each IN slave transmits each IN data to the remote master every basic idle time based on the time of receiving the IN data transmission start command. , Is characterized.

【0015】請求項5記載の発明では、請求項1、請求
項2、請求項3または請求項4記載のPLCのリモート
I/Oシステムにおいて、リモートマスタは、各スレー
ブに対しOUTデータを一括で送信する際、特定のスレ
ーブのアドレスを指定した管理情報要求を送信する一
方、上記管理情報要求によりアドレスが指定された特定
のスレーブは、上記OUTデータおよび管理情報要求の
受信後、直ぐに当該スレーブにおける管理情報を送信
し、上記リモートマスタは、各INスレーブからINデ
ータを受信する前に、上記アドレスを指定した特定のス
レーブからの管理情報を受信する、ことを特徴とする。
According to a fifth aspect of the present invention, in the PLC remote I / O system according to the first, second, third or fourth aspect, the remote master collectively outputs OUT data to each slave. At the time of transmission, while transmitting a management information request designating the address of a specific slave, the specific slave whose address is designated by the management information request immediately receives the OUT data and the management information request. It is characterized in that the remote master transmits management information and receives the management information from a specific slave having the specified address before receiving the IN data from each IN slave.

【0016】請求項6記載の発明では、請求項5記載の
PLCのリモートI/Oシステムにおいて、リモートマ
スタは、管理情報要求中で指定する特定のスレーブのア
ドレスを通信サイクル毎に次のスレーブのアドレスに更
新する、ことを特徴とする。
According to a sixth aspect of the present invention, in the PLC remote I / O system according to the fifth aspect, the remote master specifies the address of a specific slave specified in the management information request for each next slave. The feature is that the address is updated.

【0017】このため、本発明では、INデータの送受
信の際、各INスレーブは、OUTデータの受信後、フ
レーム長および物理的遅延を考慮した基本アイドル時間
毎にリモートマスタに対しスタートコードあるいはノー
ドアドレスを付して各々INデータを送信する。
For this reason, in the present invention, when transmitting / receiving IN data, each IN slave receives a start code or a node from the remote master after receiving the OUT data at each basic idle time in consideration of the frame length and the physical delay. Each IN data is sent with an address.

【0018】すると、リモートマスタは、上記基本アイ
ドル時間に基づく各INスレーブ毎のタイムスロット
で、各INデータに付された上記スタートコードに基づ
き各INスレーブからのINデータを受信するので、通
信ケーブル等の物理的遅延によるINデータの重なりが
なくなる。
Then, the remote master receives IN data from each IN slave in the time slot for each IN slave based on the basic idle time based on the start code attached to each IN data. IN data does not overlap due to physical delay such as.

【0019】[0019]

【発明の実施の形態】以下、本発明に係るPLCのリモ
ートI/Oシステムの各実施形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Each embodiment of a PLC remote I / O system according to the present invention will be described below.

【0020】図1に、本発明に係るPLCのリモートI
/Oシステムの第1実施形態の構成を示す。
FIG. 1 shows a PLC remote I according to the present invention.
1 shows a configuration of a first embodiment of an / O system.

【0021】このPLCのリモートI/Oシステムは、
図に示すように、1台のPLC本体1と、複数台(便宜
上、6台とする。)の各種リモートスレーブ2〜7とを
シリアルI/Fの通信ケーブル8を介し接続して構成さ
れている。
The remote I / O system of this PLC is
As shown in the figure, one PLC main body 1 and a plurality of remote slaves 2 to 7 (6 for convenience) are connected via a serial I / F communication cable 8. There is.

【0022】PLC本体1は、通信ケーブル8と接続さ
れるリモートマスタであるマスタユニット11と、ユー
ザプログラム処理を行うCPUユニット12とが搭載さ
れており、図示はしていないがその他に外部の入出力機
器と接続されるI/Oユニット等を搭載しており、パラ
レルI/Fで接続している。
The PLC main body 1 is equipped with a master unit 11 which is a remote master connected to the communication cable 8 and a CPU unit 12 which executes user program processing. It is equipped with an I / O unit that is connected to output devices, and is connected by parallel I / F.

【0023】リモートスレーブ2〜7は、各々、スイッ
チやセンサ等と接続され、それらからINデータを取込
むINスレーブ2,4,6と、リレーやバルブ等と接続
され、それらへOUTデータを出力するOUTスレーブ
3,5,7とである。
Each of the remote slaves 2 to 7 is connected to a switch, a sensor or the like, and is connected to IN slaves 2, 4 and 6 for fetching IN data from them, a relay or a valve, and outputs OUT data to them. The OUT slaves 3, 5, and 7 are connected.

【0024】INスレーブ2,4,6には、各々、ノー
ドアドレスとしてスレーブアドレス#0〜2が付与され
ており、INデータとしてIN0〜IN2をPLC本体
1へ送信する一方、OUTスレーブ3,5,7には、ぞ
れぞれ、スレーブアドレス#3〜5が与えられているも
のとする。
The slave addresses # 0 to 2 are assigned to the IN slaves 2, 4 and 6 as node addresses, and IN0 to IN2 are transmitted to the PLC main body 1 as IN data, while the OUT slaves 3 and 5 are transmitted. , 7 are given slave addresses # 3 to 5, respectively.

【0025】図2に、この第1実施形態におけるPLC
本体1のマスタユニット11が各スレーブ2〜7との間
で送受信するOUTデータおよびINデータ、およびそ
の送受信タイミングを示す。
FIG. 2 shows the PLC according to the first embodiment.
The OUT data and IN data which the master unit 11 of the main body 1 transmits / receives to / from each slave 2 to 7 and the transmission / reception timing thereof are shown.

【0026】この図2において、OUTデータフレーム
OFは、マスタユニット11がINおよびOUTの各ス
レーブ2〜7に対し一括で送信するもので、ヘッダと、
OUTスレーブ3,5,7へのOUTデータとから構成
されている。
In FIG. 2, the OUT data frame OF is transmitted collectively by the master unit 11 to the IN and OUT slaves 2 to 7, and includes a header and
It is composed of OUT data to OUT slaves 3, 5, and 7.

【0027】また、INデータフレームIF0 〜IF2
は、INスレーブ2,4,6がそれぞれ送信するもの
で、各INデータ0〜2の先頭には、各INデータ0〜
2の読込みタイミングを示すスタートコードであるヘッ
ダが付されている。
In addition, IN data frames IF0 to IF2
Are transmitted by the IN slaves 2, 4, and 6, respectively. At the beginning of each IN data 0 to 2, each IN data 0 to
A header, which is a start code indicating the reading timing of 2, is attached.

【0028】また、図中、AO,A1,A2・・・は、
それぞれ、マスタユニット11がOUTデータフレーム
OFの送信を完了してから、スレーブアドレス#0〜2
のINスレーブ2,4,6からINデータを受信するま
での時間を示しており、一般には以下に示すようにな
る。 AO(INスレーブ2からのINデータフレームの着信タイミング) =INスレーブ2からの物理的遅延+基本アイドル時間×0 =INスレーブ2からの物理的遅延
Further, in the figure, AO, A1, A2 ...
After the master unit 11 completes the transmission of the OUT data frame OF, the slave addresses # 0 to 2 are transmitted.
It shows the time until the IN data is received from the IN slaves 2, 4, and 6, and is generally as follows. AO (incoming timing of IN data frame from IN slave 2) = physical delay from IN slave 2 + basic idle time x 0 = physical delay from IN slave 2

【0029】ここで、“基本アイドル時間”とは、各I
Nスレーブ2,4,6におけるINデータフレームIF
0 〜IF2 の送信タイミングの基となる時間で、マスタ
ユニット11が各INスレーブ2,4,6からのINデ
ータフレームIF0 〜IF2を受信する際にINデータ
フレーム同士が重複しないように設定したものである。
Here, the "basic idle time" means each I
IN data frame IF in N slaves 2, 4 and 6
A time that is the base of the transmission timing of 0 to IF2 and is set so that the IN data frames do not overlap when the master unit 11 receives the IN data frames IF0 to IF2 from the IN slaves 2, 4, and 6. Is.

【0030】この基本アイドル時間の具体例を説明する
と、例えばINデータフレームIF0 〜IF2 のフレー
ム長と、最長INスレーブ、すなわち図1上マスタユニ
ット11からの距離が最大で、通信ケーブル8等による
物理的遅延が最大となるINスレーブ6の物理的遅延か
ら最短INスレーブ、すなわち図1上マスタユニット1
1からの距離が最も小さく、通信ケーブル8等による物
理的遅延が最小であるINスレーブ2の物理的遅延を減
算した結果との加算結果をいい、式で表すと以下に示す
ようになる。 基本アイドル時間 =フレーム長+(最長スレーブの物理的遅延−最短スレーブの物理的遅延) としている。
A concrete example of the basic idle time will be explained. For example, the frame length of the IN data frames IF0 to IF2 and the longest IN slave, that is, the distance from the master unit 11 in FIG. From the physical delay of the IN slave 6 having the maximum dynamic delay to the shortest IN slave, that is, the master unit 1 in FIG.
It is the addition result with the result of subtracting the physical delay of the IN slave 2 having the smallest distance from 1 and the minimum physical delay due to the communication cable 8 or the like, and is expressed by the following formula. Basic idle time = frame length + (longest slave physical delay-shortest slave physical delay).

【0031】なお、本実施形態では、物理的遅延は通信
ケーブル8等に比例して大きいものとして説明している
が、通信ケーブル8以外の要因に物理的遅延が左右され
るのであれば、通信ケーブル8以外の要因も考慮するよ
うにする。
In this embodiment, the physical delay is described as being large in proportion to the communication cable 8 and the like. However, if the physical delay is influenced by a factor other than the communication cable 8, communication will be performed. Factors other than the cable 8 should be taken into consideration.

【0032】また、図2中、A1、A2は、 A1(INスレーブ3からのINデータフレームの着信タイミング) =INスレーブ3からの物理的遅延+基本アイドル時間×1 A2(INスレーブ4からのINデータフレームの着信タイミング) =INスレーブ4からの物理的遅延+基本アイドル時間×2In FIG. 2, A1 and A2 are A1 (incoming timing of IN data frame from IN slave 3) = physical delay from IN slave 3 + basic idle time × 1 A2 (from IN slave 4) IN data frame arrival timing) = physical delay from IN slave 4 + basic idle time x 2

【0033】このため、マスタユニット11で連続して
受信される隣接するINスレーブ2,4,6からの各I
NデータフレームIF0 〜IF2 間の時間差、すなわち
具体的には上記A0とA1との差、または上記A1とA
2との差は、基本アイドル時間より大きくなり、少なく
てもINデータフレーム長よりも大きくなるので、マス
タユニット11におけるINデータフレーム受信時のフ
レームの重複がなくなることになる。
For this reason, each I from the adjacent IN slaves 2, 4 and 6 which is continuously received by the master unit 11 is transmitted.
Time difference between the N data frames IF0 to IF2, specifically, the difference between A0 and A1 or the difference between A1 and A
The difference from 2 is larger than the basic idle time, and at least larger than the IN data frame length, so that there is no frame overlap when the master unit 11 receives the IN data frame.

【0034】また、マスタユニット11が各INスレー
ブ2,4,6からのINデータフレームIF0 〜IF2
をノード毎に受信するための監視タイムスロットである
IN0〜IN2タイムスロットは、上記基本アイドル時
間と、隣接する各INスレーブ2,4,6からの各IN
データフレームIF0 〜IF2 間の時間差との加算値を
基準に、その値、もしくはその値前後の値にすることが
望ましいことになる。
Further, the master unit 11 sends IN data frames IF0 to IF2 from the IN slaves 2, 4, and 6 respectively.
The IN0 to IN2 time slots, which are monitoring time slots for receiving each IN from each node, include the above basic idle time and each IN from the adjacent IN slaves 2, 4, and 6.
It is desirable to set the value or a value around the value based on the added value with the time difference between the data frames IF0 to IF2.

【0035】次に、このように構成された第1実施形態
の動作を、主に図2を参照して説明する。
Next, the operation of the first embodiment thus constructed will be described mainly with reference to FIG.

【0036】まず、マスタユニット11から各OUTス
レーブ3,5,7へのOUTデータの送信は、図2に示
すように一括送信方式により行い、そのOUTデータを
載せたOUTデータフレームOFを全スレーブ2〜7へ
向けて送信する。
First, OUT data is transmitted from the master unit 11 to the OUT slaves 3, 5, and 7 by a batch transmission method as shown in FIG. 2, and the OUT data frame OF carrying the OUT data is transmitted to all slaves. Send to 2-7.

【0037】OUTデータフレームOFを受信したOU
Tスレーブ3,5,7では、このフレームOF中に自ノ
ードで受取るべきOUTデータがあるので、このフレー
ムOF中のヘッダを基準にカウントを開始して、各々、
自ノードのタイミングでOUTデータを受取るようにす
る。
OU receiving the OUT data frame OF
Since the T slaves 3, 5, and 7 have OUT data to be received by their own node in this frame OF, they start counting based on the header in this frame OF, and
The OUT data is received at the timing of its own node.

【0038】また、このOUTデータフレームOFを受
信した各INスレーブ2,4,6では、このOUTデー
タフレームOF中からデータを受け取らず、そのOUT
データフレームOF受信後、タイマを走らせて、各々の
アイドル時間(=基本アイドル時間×スレーブアドレ
ス)でINデータフレームIF0 〜IF2 を送信する。
Further, the IN slaves 2, 4 and 6 that have received this OUT data frame OF do not receive data from this OUT data frame OF, and
After receiving the data frame OF, the timer is run to transmit the IN data frames IF0 to IF2 at each idle time (= basic idle time × slave address).

【0039】このため、この送信されたINデータフレ
ームIF0 〜IF2 は、上記基本アイドル時間毎に時間
間隔を開けて送信されるので、マスタユニット11がそ
のINデータフレームIF0 〜IF2 を受信した際に、
INデータフレーム同士が重なることがなくなる。
Therefore, the transmitted IN data frames IF0 to IF2 are transmitted at intervals of the basic idle time, so that when the master unit 11 receives the IN data frames IF0 to IF2. ,
The IN data frames do not overlap each other.

【0040】ところで、マスタユニット11では、OU
TデータフレームOFの送信後、タイマを走らせて、各
INスレーブ2,4,6毎のIN0〜IN2タイムスロ
ットで、各INスレーブ2,4,6から各々INデータ
フレームF0〜F2が来るか否かを監視し、各タイムス
ロット内に各INデータフレームF0〜F2が来ている
場合には、そのヘッダであるスタートビットに基づいて
カウントして、そのヘッダに続く各IN0〜IN2を取
込むようにする。
By the way, in the master unit 11, the OU
After the transmission of the T data frame OF, a timer is run to determine whether or not the IN data frames F0 to F2 come from the IN slaves 2, 4 and 6 in the IN0 to IN2 time slots of the IN slaves 2, 4 and 6, respectively. If each IN data frame F0 to F2 is coming in each time slot, it is counted based on the start bit which is the header, and each IN0 to IN2 following the header is taken in. To

【0041】その際、IN0〜IN2タイムスロット
は、INデータフレームが互いに重ならないように設定
した上記基本アイドル時間等に基づいて設定され、各I
Nデータフレーム長に対してマージンを持つため、マス
タユニット11では、通信ケーブル8等による物理的遅
延を吸収でき、各INスレーブからのINデータを確実
に受け取ることができる。
At this time, the IN0 to IN2 time slots are set based on the basic idle time set so that the IN data frames do not overlap each other, and each I slot
Since there is a margin for the N data frame length, the master unit 11 can absorb the physical delay due to the communication cable 8 and the like, and can reliably receive IN data from each IN slave.

【0042】従って、この第1実施形態によれば、各I
Nスレーブ2,4,6からは、INデータフレームが互
いに重ならないように設定した上記基本アイドル時間毎
に時間間隔を開けてINデータフレームF0〜F2が送
信され、しかもスレーブ毎の監視タイムスロットも上記
基本アイドル時間等に基づいて設定されているので、マ
スタユニット11がそのINデータフレームIF0 〜I
F2 を受信した際、フレーム同士が重なることがなくな
り、INデータフレームF0〜F2中のヘッダに基づい
て各IN0〜IN2を確実に取込むことが可能になる。
Therefore, according to this first embodiment, each I
From the N slaves 2, 4, and 6, IN data frames F0 to F2 are transmitted at intervals of the basic idle time set so that the IN data frames do not overlap each other, and the monitoring time slot for each slave is also provided. Since the master unit 11 is set based on the basic idle time and the like, the IN unit of the IN data frames IF0 to I
When F2 is received, the frames do not overlap each other, and it becomes possible to reliably capture each IN0 to IN2 based on the headers in the IN data frames F0 to F2.

【0043】このため、この第1実施形態によれば、ト
ランシーバや、通信ケーブル等の物理的遅延によるIN
データの受信ができないということがなくなるので、信
頼性が高くなる。
Therefore, according to the first embodiment, the IN due to the physical delay of the transceiver, the communication cable, etc.
The reliability is improved because the data cannot be received.

【0044】また、この第1実施形態では、各INスレ
ーブ毎にコマンドを送信することなく、連続してINデ
ータを受信することができるので、物理的遅延と、IN
データフレーム長と応じて、各スレーブにおけるINデ
ータフレーム送信のアイドル時間と、リモートマスタに
おけるINデータフレーム受信のためのタイムスロット
を調整することで、伝送速度の高速化も可能となる。
In the first embodiment, since IN data can be continuously received without transmitting a command to each IN slave, physical delay and IN
By adjusting the idle time of IN data frame transmission in each slave and the time slot for IN data frame reception in the remote master according to the data frame length, the transmission speed can be increased.

【0045】なお、この第1実施形態では、リモートマ
スタとスレーブ間のフレーム伝送速度や、アイドル時
間、タイムスロットの設定をするための方法や手段等に
ついては何等説明しなかったが、本発明では、マスタユ
ニット11や、スレーブ2〜7のそれぞれに、伝送速度
切り替えSWや、アイドル時間切替えスイッチ、タイム
スロット切替えSWを設けるようにして、伝送速度可変
なPLCのリモートI/Oシステムを構築するようにし
ても良い。
In the first embodiment, the frame transmission rate between the remote master and the slave, the idle time, the method and means for setting the time slot, etc. were not described, but the present invention does not. , The master unit 11 and each of the slaves 2 to 7 are provided with a transmission speed changeover switch, an idle time changeover switch, and a time slot changeover switch to construct a PLC remote I / O system with a variable transmission speed. You can

【0046】また、この第1実施形態では、各INスレ
ーブは、マスタユニット11からOUTデータフレーム
の受信タイミングに基づきタイマを走らせて、各ノード
がそれぞれ各INデータを送信するように説明したが、
本発明では、OUTデータフレームの受信タイミングに
基づくのではなく、マスタユニット11がOUTデータ
フレームの送信後、続いてINデータ送信開始コマンド
を送信するようにして、このINデータ送信開始コマン
ドを受信してから各INスレーブがINデータフレーム
の送信処理を開始するようにしても良い。
In the first embodiment, it has been described that each IN slave runs the timer based on the reception timing of the OUT data frame from the master unit 11 and each node transmits each IN data.
According to the present invention, the master unit 11 receives the IN data transmission start command by transmitting the IN data transmission start command after the transmission of the OUT data frame, not based on the reception timing of the OUT data frame. After that, each IN slave may start the transmission process of the IN data frame.

【0047】このようにした場合、データ長の長いOU
Tデータフレームがノイズ等により、あるINスレーブ
で受信エラーとなった場合でも、当該INスレーブで
は、INデータ送信開始コマンドフレームに基づいてI
Nデータを送信できることになる。
In this case, the OU having a long data length
Even if a T data frame causes a reception error in an IN slave due to noise or the like, the IN slave does not receive the I data based on the IN data transmission start command frame.
N data can be transmitted.

【0048】このため、この方式によれば、OUTデー
タ送受信処理と、INデータ送受信処理とが独立するこ
とになり、ノイズ等によってI/Oデータの交換サイク
ルが長くなる確率を減少することができる。
Therefore, according to this method, the OUT data transmission / reception processing and the IN data transmission / reception processing are independent, and the probability that the I / O data exchange cycle becomes long due to noise or the like can be reduced. .

【0049】次に、本発明に係るPLCのリモートI/
Oシステムの第2実施形態を説明する。
Next, the PLC remote I / O according to the present invention will be described.
A second embodiment of the O system will be described.

【0050】この第2実施形態では、図1に示す上記第
1実施形態とシステム構成が同じであり、第1実施形態
と異なる点は、マスタユニット11に、各INスレーブ
からのINデータフレームを受信するための監視タイム
スロットを設けずに、各INスレーブが送信するINデ
ータフレーム中のヘッダに各スレーブのスレーブアドレ
スを設けることを特徴としている。
The second embodiment has the same system configuration as that of the first embodiment shown in FIG. 1 and is different from the first embodiment in that the master unit 11 is provided with an IN data frame from each IN slave. The feature is that the slave address of each slave is provided in the header in the IN data frame transmitted by each IN slave without providing the monitoring time slot for receiving.

【0051】図3に、この第2実施形態におけるマスタ
ユニット11が送受信するOUTデータおよびINデー
タ、およびその送受信タイミングを示す。
FIG. 3 shows OUT data and IN data transmitted / received by the master unit 11 in the second embodiment, and transmission / reception timing thereof.

【0052】図に示すように、マスタユニット11は、
第1実施形態のものと同じOUTデータフレームOF′
の送信後、INスレーブ2,4,6からヘッダとして各
スレーブのスレーブアドレスが付されたINデータフレ
ームIF′0 〜IF′2 を受信するが、ノード監視タイ
ムスロットに基づくことなく、そのヘッダである各スレ
ーブのスレーブアドレスに基づいてINデータフレーム
IF′0 〜IF′2 の送信元スレーブを判断して受信す
ることになる。
As shown in the figure, the master unit 11 is
Same OUT data frame OF 'as in the first embodiment
After the transmission of, the IN data frames IF'0 to IF'2 with the slave address of each slave as a header are received from the IN slaves 2, 4, and 6, but not in the node monitoring time slot. Based on the slave address of each slave, the source slaves of the IN data frames IF'0 to IF'2 are determined and received.

【0053】このため、この第2実施形態によれば、ヘ
ッダとして各スレーブのスレーブアドレスを設定してい
るので、INデータフレーム長が長くなり、サイクルタ
イムが遅くなるという欠点はあるが、その分マスタユニ
ット11において予め各スレーブ毎の監視タイムスロッ
トを登録しておく必要がないので、容易かつ簡単に物理
的遅延によるINデータの重なりを防止して、信頼性を
向上させることが可能になる。
Therefore, according to the second embodiment, since the slave address of each slave is set as the header, there is a drawback that the IN data frame length becomes long and the cycle time becomes slow, but that much. Since it is not necessary to register the monitoring time slot for each slave in the master unit 11 in advance, it is possible to easily and easily prevent the IN data from overlapping due to physical delay and improve the reliability.

【0054】なお、この第2実施例においては、上記第
1実施形態と同様に、各INスレーブがマスタユニット
11からOUTデータフレームの受信に基づいて各ノー
ドがそれぞれ各INデータを送信するように説明した
が、本発明では、OUTデータフレームの受信に基づく
のではなく、マスタユニット11がOUTデータフレー
ムの送信後、INデータ送信開始コマンドフレームを送
信するようにして、このコマンドを受信してからINス
レーブがINデータフレームの送信処理を開始するよう
にしても良い。
In the second embodiment, like the first embodiment, each IN slave transmits each IN data based on the reception of the OUT data frame from the master unit 11. As described above, according to the present invention, the master unit 11 transmits the IN data transmission start command frame after transmitting the OUT data frame, and after receiving this command, it is not based on the reception of the OUT data frame. The IN slave may start the IN data frame transmission process.

【0055】次に、本発明に係るPLCのリモートI/
Oシステムの第3実施形態を説明する。
Next, the PLC remote I / O according to the present invention will be described.
A third embodiment of the O system will be described.

【0056】この第3実施形態では、上記第1実施形態
や上記第2実施形態を改良したもので、一括送受信方式
では今までINビットを使う方法でしか実行できないで
いたマスタユニット11における管理情報の収集を、I
Nビットを使用することなく可能にしたことを特徴とし
ている。
The third embodiment is an improvement of the first embodiment and the second embodiment, and the management information in the master unit 11 which can be executed only by the method of using the IN bit in the batch transmission / reception system up to now. The collection of
The feature is that it is possible without using N bits.

【0057】なお、この第3実施形態は、上記第2実施
形態と同様、図1に示す上記第1実施形態とシステム構
成が同じであるので、この第3実施形態におけるマスタ
ユニット11が送受信するOUTデータおよびINデー
タおよび送受信タイミングでこの第3実施形態の特徴を
説明する。
Since the third embodiment has the same system configuration as that of the first embodiment shown in FIG. 1 like the second embodiment, the master unit 11 in the third embodiment transmits and receives. The features of the third embodiment will be described with reference to OUT data, IN data, and transmission / reception timing.

【0058】図4に、この第3実施形態におけるマスタ
ユニット11が送受信するOUTデータおよびINデー
タ、およびその送受信タイミングを示す。
FIG. 4 shows OUT data and IN data transmitted / received by the master unit 11 in the third embodiment, and transmission / reception timing thereof.

【0059】この第3実施形態では、図2に示す第1実
施形態のフレーム送受信、および図3に示す第2実施形
態のフレーム送受信とは異なり、マスタユニット11が
各スレーブに対し一括で送信するOUTデータフレーム
OF″には、ヘッダと、OUTスレーブへのOUTデー
タとの他に、INおよびOUTの各スレーブに対し管理
情報(ステータス)レスポンスを要求する管理情報要求
としてのスレーブアドレスを付加し、しかもこのスレー
ブアドレスを通信サイクル毎にこのスレーブアドレスを
更新するようにしたことを特徴としている。
In the third embodiment, unlike the frame transmission / reception of the first embodiment shown in FIG. 2 and the frame transmission / reception of the second embodiment shown in FIG. 3, the master unit 11 collectively transmits to each slave. In addition to the header and the OUT data to the OUT slave, the OUT data frame OF ″ is added with a slave address as a management information request for requesting management information (status) response to each of the IN and OUT slaves, Moreover, it is characterized in that the slave address is updated every communication cycle.

【0060】なお、スレーブアドレスの更新はせずに、
特定スレーブのスレーブアドレスのみを指定するように
しても良い。この図4では、スレーブアドレス#1のI
Nスレーブ4のアドレス“アドレス#1”を指定してい
る。
Incidentally, without updating the slave address,
You may make it specify only the slave address of a specific slave. In FIG. 4, I of slave address # 1
The address "address # 1" of the N slave 4 is designated.

【0061】図において、フレームIF″0 〜IF″2
は、スレーブアドレス#0〜2のINスレーブ2,4,
6がそれぞれ送信するINデータのフレームを示してお
り、各INデータの先頭に各INデータの取込みタイミ
ングを示すスタートコードまたはスレーブアドレスがヘ
ッダとして付加されている点は、図2に示す第1実施形
態、および図3に示す第2実施形態は同様であるが、各
INスレーブでは、管理情報要求としてのスレーブアド
レスが指定されたスレーブが送信する管理情報フレーム
の分だけ発信タイミングを遅らせてINデータフレーム
IF″0 〜IF″2 を送信している。
In the figure, frames IF "0 to IF" 2
Is an IN slave with slave addresses # 0 to 2, 2, 4,
6 shows a frame of IN data to be transmitted, and the point that a start code or a slave address indicating the fetching timing of each IN data is added as a header to the beginning of each IN data is the first embodiment shown in FIG. The form is the same as that of the second embodiment shown in FIG. 3, but in each IN slave, the IN data is delayed by the transmission timing of the management information frame transmitted by the slave whose slave address is specified as the management information request. The frames IF ″ 0 to IF ″ 2 are transmitted.

【0062】また、フレームSFは、OUTデータフレ
ームOF″中の“アドレス#1”によりスレーブアドレ
スが指定されたスレーブアドレス#1のINスレーブ4
が送信した管理情報フレームを示しており、スレーブア
ドレス#1のINスレーブ4は、マスタユニット11か
らOUTデータフレームOF″の受信後直ぐにこの管理
情報フレームSFを送信することを示している。
The frame SF is the IN slave 4 of the slave address # 1 whose slave address is designated by "address # 1" in the OUT data frame OF ".
Shows that the IN slave 4 having the slave address # 1 transmits the management information frame SF immediately after receiving the OUT data frame OF ″ from the master unit 11.

【0063】なお、この図4では、図2に示す第1実施
形態や、図3に示す第2実施形態のようにマスタユニッ
ト11におけるINデータフレームIF″0 〜IF″2
の受信タイミングや監視タイムスロットを図示していな
いが、この第3実施形態は、図2に示す第1実施形態や
図3に示す第2実施形態を改良したものであるので、そ
れらの説明は省略しただけである。
In FIG. 4, as in the first embodiment shown in FIG. 2 and the second embodiment shown in FIG. 3, the IN data frames IF ″ 0 to IF ″ 2 in the master unit 11 are shown.
Although the reception timing and the monitoring time slot are not shown in the figure, the third embodiment is an improvement of the first embodiment shown in FIG. 2 and the second embodiment shown in FIG. I just omitted it.

【0064】次に、このように構成されたこの第3実施
形態の動作を説明すると、まず、マスタユニット11
が、一括送信方式によりOUTデータの後に管理情報要
求としてのスレーブアドレスを設定したOUTデータフ
レームOF″を全スレーブへ向けて送信する。
Next, the operation of the third embodiment thus constructed will be described. First, the master unit 11
However, the OUT data frame OF ″ in which the slave address as the management information request is set after the OUT data is transmitted to all the slaves by the batch transmission method.

【0065】OUTデータフレームOFを受信したOU
Tスレーブでは、このOUTデータフレームOF中のヘ
ッダからカウントを開始して、自ノードのタイミングで
OUTデータを受取る一方、OUTデータフレームOF
を受信した各INスレーブでは、上記第1実施例等とは
異なり管理情報送信時間を余分に取ったそれぞれのアイ
ドル時間(=管理情報送信時間+基本アイドル時間×ス
レーブアドレス)を開けて、INデータフレームを送信
する。
OU receiving the OUT data frame OF
The T slave starts counting from the header in the OUT data frame OF and receives the OUT data at the timing of its own node, while the OUT data frame OF is received.
In each IN slave that has received the IN data, the idle time (= management information transmission time + basic idle time × slave address), which is an extra management information transmission time, is opened unlike the first embodiment and the like, and the IN data is opened. Send the frame.

【0066】その際、OUTデータフレームOF″には
“アドレス#1”が設定されているので、スレーブアド
レス#1のINスレーブ4は、マスタユニット11から
OUTデータフレームOF″を受信すると、直ぐに図に
示すようにヘッダと、ステータス(管理情報)からなる
当該INスレーブにおける管理情報フレームSFを送信
して、その後自ノードのINデータフレームを送信する
ようにする。
At this time, since the "address # 1" is set in the OUT data frame OF ", the IN slave 4 having the slave address # 1 receives the OUT data frame OF" from the master unit 11 and immediately receives the message. As shown in (1), the management information frame SF in the IN slave including the header and the status (management information) is transmitted, and then the IN data frame of the own node is transmitted.

【0067】すると、マスタユニット11では、INス
レーブからINデータフレームIF0〜IF2を受信す
る前に、スレーブアドレス#1のINスレーブからの管
理情報フレームSFを受信することができる。
Then, the master unit 11 can receive the management information frame SF from the IN slave having the slave address # 1 before receiving the IN data frames IF0 to IF2 from the IN slave.

【0068】以上のことを全ノード数サイクル、すなわ
ちINおよびOUTのスレーブ2〜7全てについて行う
と、マスタユニット11では、OUTデータフレームO
F″に付加するスレーブアドレスを全スレーブ2〜7分
更新したことになるので、全スレーブ2〜7の管理情報
を収集できることになる。
When the above process is carried out for all the cycles of all the nodes, that is, for all the slaves 2 to 7 of IN and OUT, the master unit 11 outputs the OUT data frame O.
Since the slave address added to F ″ has been updated for all the slaves 2 to 7, the management information of all the slaves 2 to 7 can be collected.

【0069】従って、この第3実施形態によれば、1通
信サイクルごとに1つのスレーブから管理情報を収集す
ると共に、スレーブアドレスを通信サイクル毎に更新す
ることにより、全ノード数サイクルで全てのスレーブの
管理情報を収集できるので、通信サイクルをそれ程低下
させずに、リモートI/Oシステムの信頼性を確保する
ことが可能になる。
Therefore, according to the third embodiment, management information is collected from one slave in each communication cycle, and the slave address is updated in each communication cycle, so that all slaves can be processed in several cycles of all nodes. Since the management information can be collected, the reliability of the remote I / O system can be ensured without significantly reducing the communication cycle.

【0070】また、スレーブアドレスを更新せずに、ま
たは更新する方法を変えることにより、特定のスレーブ
または任意のスレーブのみの管理情報の収集も可能にな
る。
Further, by not updating the slave address or by changing the method of updating, it becomes possible to collect the management information of only a specific slave or an arbitrary slave.

【0071】なお、以上説明した第1実施形態〜第3実
施形態では、図1に示すPLC本体1にリモートマスタ
であるマスタユニット11が搭載されたリモートI/O
システムを参照して説明したが、本発明では、図5に示
すように、PLC本体11′にはマスタユニット11′
を搭載せずに、PLC本体1′に搭載されたI/Oユニ
ット13にパラレルI/Fでマスタユニット11′を接
続して、このリモートマスタユニット11′にシリアル
I/Fの通信ケーブル8を介し各種スレーブを接続する
ようにしても良い。
In the first to third embodiments described above, the remote I / O in which the master unit 11 as the remote master is mounted on the PLC main body 1 shown in FIG.
Although described with reference to the system, in the present invention, as shown in FIG. 5, the PLC main body 11 'includes a master unit 11'.
Without installing, the master unit 11 'is connected to the I / O unit 13 mounted on the PLC main body 1'by a parallel I / F, and the serial I / F communication cable 8 is connected to the remote master unit 11'. You may make it connect various slaves via.

【0072】[0072]

【発明の効果】以上説明したように本発明では、各IN
スレーブからリモートマスタに対しては物理的遅延を考
慮したアイドル時間毎にINデータフレームが送信され
るので、リモートマスタがそのINデータフレームを受
信した際、フレーム同士が重なることがなくなると共
に、INデータフレーム中のヘッダに基づいて各INデ
ータを取込むことが可能になる。
As described above, according to the present invention, each IN
Since the IN data frame is transmitted from the slave to the remote master at each idle time in consideration of the physical delay, when the remote master receives the IN data frame, the frames do not overlap each other and the IN data frame does not overlap. It becomes possible to capture each IN data based on the header in the frame.

【0073】このため、本発明によれば、トランシーバ
や、通信ケーブル、送受信処理による遅延等の物理的遅
延によるINデータの受信ができないということがなく
なるので、信頼性が高くなると共に、各INスレーブ毎
にコマンドを送信することなく、連続してINデータを
受信することができるので、物理的遅延とフレーム長に
合わせてアイドル時間とタイムスロットを調整すること
で、伝送速度の高速化も可能となる。
Therefore, according to the present invention, since the IN data cannot be received due to a physical delay such as a transceiver, a communication cable, and a delay due to transmission / reception processing, reliability is improved and each IN slave is improved. Since IN data can be received continuously without sending a command every time, the transmission speed can be increased by adjusting the idle time and time slot according to the physical delay and the frame length. Become.

【0074】また、本発明では、OUTデータフレーム
に管理情報を要求するスレーブアドレスを付加して送信
すると共に、通信サイクル毎にこのスレーブアドレスを
更新するようにしたので、全ノード数サイクルで全ての
スレーブの管理情報を収集することができ、通信サイク
ルをそれ程低下させずに、リモートI/Oシステムの信
頼性を確保することが可能になる。
Further, according to the present invention, the slave address for requesting the management information is added to the OUT data frame and transmitted, and the slave address is updated every communication cycle. The slave management information can be collected, and the reliability of the remote I / O system can be ensured without significantly reducing the communication cycle.

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

【図1】本発明に係るPLCのリモートI/Oシステム
の第1実施形態の構成を示す構成図。
FIG. 1 is a configuration diagram showing a configuration of a first embodiment of a PLC remote I / O system according to the present invention.

【図2】第1実施形態におけるリモートマスタが送受信
するOUTデータおよびINデータ、およびその送受信
タイミングを示す説明図。
FIG. 2 is an explanatory diagram showing OUT data and IN data transmitted / received by a remote master in the first embodiment, and transmission / reception timing thereof.

【図3】第2実施形態におけるリモートマスタが送受信
するOUTデータおよびINデータ、およびその送受信
タイミングを示す説明図。
FIG. 3 is an explanatory diagram showing OUT data and IN data transmitted / received by a remote master and a transmission / reception timing thereof in the second embodiment.

【図4】第3実施形態におけるリモートマスタが送受信
するOUTデータおよびINデータ、およびその送受信
タイミングを示す説明図。
FIG. 4 is an explanatory diagram showing OUT data and IN data transmitted / received by a remote master in the third embodiment, and transmission / reception timing thereof.

【図5】本発明に係るPLCのリモートI/Oシステム
の他の構成を示す構成図。
FIG. 5 is a configuration diagram showing another configuration of the PLC remote I / O system according to the present invention.

【図6】従来技術におけるリモートマスタが送受信する
OUTデータおよびINデータ、およびその送受信タイ
ミングを示す説明図。
FIG. 6 is an explanatory diagram showing OUT data and IN data transmitted / received by a remote master and transmission / reception timing thereof in the related art.

【図7】従来技術の問題点を示す説明図。FIG. 7 is an explanatory diagram showing a problem of the conventional technique.

【符号の説明】 1 PLC本体 11 マスタユニット(リモートマスタ) 12 CPUユニット 13 I/Oユニット 11′ マスタユニット(リモートマスタ) 2,4,6 INスレーブ 3、5、7 OUTスレーブ 8 通信ケーブル OF OUTデータフレーム OF′ OUTデータフレーム OF″ OUTデータフレーム IF0 〜IF2 INデータフレーム IF′0 〜IF′2 INデータフレーム IF″0 〜IF″2 INデータフレーム SF 管理情報フレーム[Explanation of reference symbols] 1 PLC main body 11 Master unit (remote master) 12 CPU unit 13 I / O unit 11 'Master unit (remote master) 2, 4, 6 IN slave 3, 5, 7 OUT slave 8 Communication cable OF OUT Data frame OF ′ OUT data frame OF ″ OUT data frame IF0 to IF2 IN data frame IF′0 to IF′2 IN data frame IF ″ 0 to IF ″ 2 IN data frame SF management information frame

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 リモートマスタと、そのリモートマスタ
と通信ケーブルを介し接続された複数のINスレーブお
よびOUTスレーブとからなり、上記リモートマスタと
上記各スレーブとの間でINデータおよびOUTデータ
を一括送受信方式で送受信するようにしたPLCのリモ
ートI/Oシステムにおいて、 OUTデータの送受信については、 リモートマスタは各スレーブに対しOUTデータを一括
で送信すると共に、各OUTスレーブは自ノードのタイ
ミングでOUTデータを受信する一方、 INデータの送受信については、 各INスレーブは上記OUTデータの受信後、フレーム
長および物理的遅延を考慮した基本アイドル時間毎にリ
モートマスタに対しスタートコードを付して各々INデ
ータを送信する一方、リモートマスタは上記基本アイド
ル時間に基づく各INスレーブ毎のタイムスロットで、
各INデータに付された上記スタートコードに基づき各
INスレーブからのINデータを受信する、 ことを特徴とするPLCのリモートI/Oシステム。
1. A remote master and a plurality of IN slaves and OUT slaves connected to the remote master via a communication cable, and collectively transmits and receives IN data and OUT data between the remote master and each slave. In the remote I / O system of PLC that is configured to perform transmission / reception by the method, for transmission / reception of OUT data, the remote master transmits OUT data to each slave all at once, and each OUT slave transmits OUT data at its own node timing. On the other hand, for IN data transmission / reception, after each IN slave receives the OUT data, each IN slave attaches a start code to the remote master at each basic idle time in consideration of the frame length and the physical delay. While the remote master is on Each IN slave each time slot based on the basic idle time,
A remote I / O system for a PLC, characterized in that it receives IN data from each IN slave based on the start code attached to each IN data.
【請求項2】 リモートマスタと、そのリモートマスタ
と通信ケーブルを介し接続された複数のINスレーブお
よびOUTスレーブとからなり、上記リモートマスタと
上記各スレーブとの間でINデータおよびOUTデータ
を一括送受信方式で送受信するようにしたPLCのリモ
ートI/Oシステムにおいて、 OUTデータの送受信については、 リモートマスタは各スレーブに対しOUTデータを一括
で送信すると共に、各OUTスレーブは自ノードのタイ
ミングでOUTデータを受信する一方、 INデータの送受信については、 各INスレーブは上記OUTデータの受信後、フレーム
長および物理的遅延を考慮した基本アイドル時間毎にリ
モートマスタに対し自ノードアドレスを付して各々IN
データを送信する一方、リモートマスタは各INデータ
に付されたノードアドレスに基づき各INスレーブから
のINデータを受信する、 ことを特徴とするPLCのリモートI/Oシステム。
2. A remote master and a plurality of IN slaves and OUT slaves connected to the remote master via a communication cable, and collectively transmits and receives IN data and OUT data between the remote master and each slave. In the remote I / O system of PLC that is configured to perform transmission / reception by the method, for transmission / reception of OUT data, the remote master transmits OUT data to each slave all at once, and each OUT slave transmits OUT data at its own node timing. On the other hand, for IN data transmission / reception, after receiving the OUT data, each IN slave attaches its own node address to the remote master at each basic idle time in consideration of the frame length and the physical delay.
A remote I / O system of PLC, wherein while transmitting data, the remote master receives IN data from each IN slave based on the node address attached to each IN data.
【請求項3】 基本アイドル時間は、 INデータのフレーム長と、INスレーブの物理的遅延
の最大のものと最小のものとの差との加算値である、 ことを特徴とする請求項1または請求項2記載のPLC
のリモートI/Oシステム。
3. The basic idle time is an addition value of a frame length of IN data and a difference between a maximum physical delay and a minimum physical delay of the IN slave. The PLC according to claim 2.
Remote I / O system.
【請求項4】 リモートマスタは、各スレーブに対しO
UTデータを一括で送信した後、INデータ送信開始コ
マンドを送信する一方、 各INスレーブは、INデータ送信開始コマンドの受信
時を基準として基本アイドル時間毎にリモートマスタに
対し各々INデータを送信する、 ことを特徴とする請求項1、請求項2または請求項3記
載のPLCのリモートI/Oシステム。
4. The remote master sends O to each slave.
After transmitting the UT data in a batch, while transmitting the IN data transmission start command, each IN slave transmits each IN data to the remote master every basic idle time based on the time of receiving the IN data transmission start command. The remote I / O system of PLC according to claim 1, 2 or 3, characterized in that.
【請求項5】 リモートマスタは、各スレーブに対しO
UTデータを一括で送信する際、特定のスレーブのアド
レスを指定した管理情報要求を送信する一方、 上記管理情報要求によりアドレスが指定された特定のス
レーブは、上記OUTデータおよび管理情報要求の受信
後、直ぐに当該スレーブにおける管理情報を送信し、 上記リモートマスタは、各INスレーブからINデータ
を受信する前に、上記アドレスを指定した特定のスレー
ブからの管理情報を受信する、 ことを特徴とする請求項1、請求項2、請求項3または
請求項4記載のPLCのリモートI/Oシステム。
5. The remote master sends O to each slave.
When transmitting the UT data in a batch, while sending the management information request specifying the address of the specific slave, the specific slave whose address is specified by the management information request is , The management information of the slave is immediately transmitted, and the remote master receives the management information from a specific slave that specifies the address before receiving the IN data from each IN slave. The PLC remote I / O system according to claim 1, claim 2, claim 3, or claim 4.
【請求項6】 リモートマスタは、管理情報要求中で指
定する特定のスレーブのアドレスを通信サイクル毎に次
のスレーブのアドレスに更新する、 ことを特徴とする請求項5記載のPLCのリモートI/
Oシステム。
6. The remote I / C of PLC according to claim 5, wherein the remote master updates the address of the specific slave specified in the management information request to the address of the next slave in every communication cycle.
O system.
JP28595095A 1995-11-02 1995-11-02 PLC remote I / O system and PLC remote I / O system execution method Expired - Lifetime JP3293089B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28595095A JP3293089B2 (en) 1995-11-02 1995-11-02 PLC remote I / O system and PLC remote I / O system execution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28595095A JP3293089B2 (en) 1995-11-02 1995-11-02 PLC remote I / O system and PLC remote I / O system execution method

Publications (2)

Publication Number Publication Date
JPH09128019A true JPH09128019A (en) 1997-05-16
JP3293089B2 JP3293089B2 (en) 2002-06-17

Family

ID=17698071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28595095A Expired - Lifetime JP3293089B2 (en) 1995-11-02 1995-11-02 PLC remote I / O system and PLC remote I / O system execution method

Country Status (1)

Country Link
JP (1) JP3293089B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1731977A2 (en) 2005-06-09 2006-12-13 Omron Corporation Communication master station startup period control method
EP3076592A1 (en) 2015-03-31 2016-10-05 Omron Corporation Setting method, communication device, and master device
EP3076604A1 (en) 2015-03-31 2016-10-05 Omron Corporation Communication device and link establishment method
JPWO2019111561A1 (en) * 2017-12-05 2020-11-26 日本電産株式会社 Automatic devices and communication systems

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1731977A2 (en) 2005-06-09 2006-12-13 Omron Corporation Communication master station startup period control method
EP2241951A1 (en) 2005-06-09 2010-10-20 Omron Corporation Communication master station startup period control method
EP2241950A1 (en) 2005-06-09 2010-10-20 Omron Corporation Communication master station startup period control method
US7852790B2 (en) 2005-06-09 2010-12-14 Omron Corporation Communication master station startup period control method
EP3076592A1 (en) 2015-03-31 2016-10-05 Omron Corporation Setting method, communication device, and master device
EP3076604A1 (en) 2015-03-31 2016-10-05 Omron Corporation Communication device and link establishment method
US9965406B2 (en) 2015-03-31 2018-05-08 Omron Corporation Setting method, communication device, and master device
US9971715B2 (en) 2015-03-31 2018-05-15 Omron Corporation Communication device and link establishment method
JPWO2019111561A1 (en) * 2017-12-05 2020-11-26 日本電産株式会社 Automatic devices and communication systems

Also Published As

Publication number Publication date
JP3293089B2 (en) 2002-06-17

Similar Documents

Publication Publication Date Title
US5761435A (en) Multiprocessor bridge having storage for spanning tree operation mode information indicating whether each port of the bridge is operable under spanning tree protocol
EP3881521B1 (en) Prioritized low power neighboring node discovery in an iot network
JPS61212940A (en) Data transmission method for multi-network system
CN101385296A (en) Gateway for the automatic routing of messages between buses
JP2523882B2 (en) Data transmission equipment
JP7348293B2 (en) Data processing methods and equipment
JPH09128019A (en) Remote i/o system for plc
JP5372699B2 (en) In-vehicle network device
JP3345546B2 (en) Data delivery method and information communication device
CN210780847U (en) EtherCAT bus clock distribution system
JPS6054549A (en) Data transmitting method and device
CN110138819B (en) Host state detection method and system of network switch
JPH05211686A (en) Gateway data collection system
US9473597B2 (en) Implementing multiple MAC protocols using a single wireless communication unit
CN108446131B (en) ATM firmware upgrading method, device, equipment and storage medium
JPH0250541A (en) Bus type lan
JPH0482437A (en) Packet transmission time control system
US20040131066A1 (en) Electronic switching circuit and method for a communication interface with cut through buffer memory
JP3178804B2 (en) Multiplexed communication control method and communication control device
Facchinetti et al. Wireless real-time communication protocol for cooperating mobile units
JPH0354940A (en) Centralized monitoring system for connecting information in computer network system
JP2845918B2 (en) Transmission system
Catalfo et al. LAN node for industrial environments
JPS62196947A (en) Data transmission system for remote input/output device
CN117478203A (en) Solidified satellite-borne CAN bus communication system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020301

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

Free format text: PAYMENT UNTIL: 20090405

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100405

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110405

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130405

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130405

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20140405

Year of fee payment: 12

EXPY Cancellation because of completion of term