JPH086614A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH086614A
JPH086614A JP14030994A JP14030994A JPH086614A JP H086614 A JPH086614 A JP H086614A JP 14030994 A JP14030994 A JP 14030994A JP 14030994 A JP14030994 A JP 14030994A JP H086614 A JPH086614 A JP H086614A
Authority
JP
Japan
Prior art keywords
data
node
communication
information
plc
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.)
Withdrawn
Application number
JP14030994A
Other languages
Japanese (ja)
Inventor
Naoaki Ikeno
直暁 池野
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 JP14030994A priority Critical patent/JPH086614A/en
Publication of JPH086614A publication Critical patent/JPH086614A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the whole user program by simplifying the communication process by the user program. CONSTITUTION:The table memory 11e of an PLC1 is stored with data transmission information tables, wherein network addresses and node addresses of other nodes, data exchange areas showing data areas to be interchanged, and execution condition information showing communication timing are registered, by the opposite communication nodes. To send data to other nodes through a network A1, the PLC1 refers to the data transmission information table stored in the table memory 11e by the CPU 11b in a communication unit 11, and sends the data in the data exchange area specified by area specification information to another node specified by node specification information when there is the node reaches a communication timing point.

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 for performing data communication with other nodes.

【0002】[0002]

【従来の技術】従来、FAの分野では、複数のプログラ
マブルコントローラ(以下、PLCという)でネットワ
ークを構築し、各PLC間でネットワークを介してN:
Nデータ通信等によりデータの交換が行われている。
2. Description of the Related Art Conventionally, in the field of FA, a network is constructed by a plurality of programmable controllers (hereinafter referred to as PLCs), and N:
Data is exchanged by N data communication or the like.

【0003】このようなデータ通信を行うためには、ユ
ーザがデータ通信用にラダープログラムを作成してPL
Cに組み込んでおく必要がある。
In order to perform such data communication, a user creates a ladder program for data communication and PL
It must be built into C.

【0004】[0004]

【発明が解決しようとする課題】しかし、このようなP
LCによるデータ通信では、SEND(送信)やREC
V(受信)等の複数の命令を使用して同一通信ポートで
データ通信を行う場合、通常の命令処理とは異なり、ラ
ダープログラムの量が増えてしまうため、データ通信用
のラダープログラムが1スキャンタイム以内に収まらな
くなってしまう、という問題がある。
However, such a P
In data communication by LC, SEND (transmission) and REC
When data communication is performed using the same communication port using multiple commands such as V (reception), the ladder program for data communication increases in one scan, unlike the normal command processing. There is a problem that it will not fit within the time.

【0005】つまり、同一通信ポートで2つ以上の通信
命令を使用する場合には、各通信命令のタイミングの注
意を払う必要性があるため、各通信命令の排他制御を行
うプログラムが必要となると共に、通信命令を増やせば
それ以上にタイミング制御用の命令が増えていき、通信
命令以外のタイミング制御用の命令がプログラムの半分
を占めることになるため、データ通信用のラダープログ
ラムが複雑かつ膨大になり、1スキャンタイム以内に収
まらなくなってしまう。
In other words, when two or more communication commands are used in the same communication port, it is necessary to pay attention to the timing of each communication command, so a program for exclusive control of each communication command is required. At the same time, if the number of communication commands is increased, the number of commands for timing control will further increase, and since the commands for timing control other than communication commands will occupy half of the program, the ladder program for data communication is complicated and enormous. Therefore, it does not fit within one scan time.

【0006】そこで、本発明は、このような問題に着目
してなされたもので、ユーザプログラム中からデータ通
信用のプログラムを極力省くことにより、ユーザプログ
ラム中の通信処理の簡略化、ひいてはユーザプログラム
全体を簡素化することができるプログラマブルコントロ
ーラを提供することを目的とする。
Therefore, the present invention has been made in view of such a problem. By omitting a program for data communication from the user program as much as possible, simplification of communication processing in the user program, and by extension, the user program. An object is to provide a programmable controller that can be simplified in its entirety.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明では、他ノードとの間でネット
ワークを介してデータ通信を行うプログラマブルコント
ローラにおいて、通信相手となる他ノードを指定したノ
ード指定情報、自ノードおよび当該他ノードのメモリに
おけるデータ交換エリアを指定したエリア指定情報、お
よび当該他ノードとの通信タイミングを指定した実行条
件情報が予め登録された通信情報登録手段と、上記通信
情報登録手段に登録された実行条件情報を参照して、あ
る他ノードと実行条件が成立していると判断した場合に
は、そのノード指定情報により指定された他ノードとの
間で、そのエリア指定情報により指定されたデータ交換
エリアのデータ通信を行うデータ通信手段と、を具備す
ることを特徴とする。
In order to achieve the above object, in the invention according to claim 1, in a programmable controller that performs data communication with another node via a network, another node to be a communication partner is designated. Communication information registration means in which the node specification information, the area specification information that specifies the data exchange area in the memory of the own node and the other node, and the execution condition information that specifies the communication timing with the other node are registered in advance, When the execution condition information registered in the communication information registration means is referred to, and it is determined that the execution condition is satisfied with a certain other node, the other node specified by the node designation information Data communication means for performing data communication in the data exchange area designated by the area designation information.

【0008】また、請求項2記載の発明では、請求項1
記載のプログラマブルコントローラにおいて、通信情報
登録手段に登録された実行条件は、通信時間間隔により
通信タイミングを指定する、ことを特徴とする。
According to the second aspect of the invention, the first aspect is
In the programmable controller described above, the execution condition registered in the communication information registration means is that the communication timing is designated by a communication time interval.

【0009】[0009]

【作用】請求項1記載の発明では、通信相手となる他ノ
ードを指定したノード指定情報、自ノードおよび当該他
ノードのメモリにおけるデータ交換エリアを指定したエ
リア指定情報、および当該他ノードとの通信タイミング
を指定した実行条件を予め登録しておき、通信処理の際
は、予め登録した各実行条件を参照して、実行条件が成
立していると判断した場合、そのノード指定情報により
指定された他ノードとの間で、そのエリア指定情報によ
り指定されたデータ交換エリアのデータ通信を行うよう
にする。
According to the first aspect of the present invention, node designation information designating another node as a communication partner, area designation information designating a data exchange area in the memory of the self node and the other node, and communication with the other node. Execution conditions that specify timing are registered in advance, and when it is determined that the execution conditions are satisfied by referring to each execution condition registered in advance during communication processing, the node is specified by the node specification information. Data communication of the data exchange area designated by the area designation information is performed with another node.

【0010】また、請求項2記載の発明では、実行条件
は、通信時間間隔により通信タイミングを指定するよう
にする。
According to the second aspect of the invention, the execution condition is such that the communication timing is designated by the communication time interval.

【0011】[0011]

【実施例】以下、本発明に係るプログラマブルコントロ
ーラの実施例について、図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of a programmable controller according to the present invention will be described below with reference to the drawings.

【0012】図1は、本発明に係るPLCと他ノードと
の接続を示している。
FIG. 1 shows a connection between a PLC according to the present invention and another node.

【0013】この図では、本発明に係るPLC1はネッ
トワークA1によりPLC2に接続されており、PLC
2はネットワークA2によりPLC3に接続されてお
り、PLC3はネットワークA3によりPLC4に接続
されている。
In this figure, a PLC1 according to the present invention is connected to a PLC2 by a network A1.
2 is connected to the PLC 3 by the network A2, and the PLC 3 is connected to the PLC 4 by the network A3.

【0014】なお、PLC1はネットワークA1と通信
ユニット11により、PLC2はネットワークA1とは
通信ユニット21により、ネットワークA2とは通信ユ
ニット22により、PLC3はネットワークA2とは通
信ユニットa2により、ネットワークA3とは通信ユニ
ット31により、PLC4はネットワークA3と通信ユ
ニット41により各々接続されている。また、各PLC
1〜4は、それぞれ通信ユニットの他に図示はしないが
CPUユニット等のユニットを有している。
The PLC1 is connected to the network A1 and the communication unit 11, the PLC2 is connected to the network A1 and the communication unit 21, the network A2 is connected to the communication unit 22, and the PLC3 is connected to the network A2 and the communication unit a2. The PLC 4 is connected to the network A3 by the communication unit 31 and the communication unit 41, respectively. In addition, each PLC
Each of 1 to 4 has a unit such as a CPU unit (not shown) in addition to the communication unit.

【0015】図2に、本発明に係るPLC1の構成を示
す。
FIG. 2 shows the configuration of the PLC 1 according to the present invention.

【0016】PLC1は、上述したように、通信ユニッ
ト11の他に、ユーザプログラムが格納されたユーザプ
ログラムメモリユニット12や、そのユーザプログラム
を実行するCPUユニット13、処理結果等のデータを
格納するデータメモリユニット14等を有している。
As described above, the PLC 1 includes, in addition to the communication unit 11, a user program memory unit 12 in which a user program is stored, a CPU unit 13 for executing the user program, and data for storing data such as processing results. It has a memory unit 14 and the like.

【0017】通信ユニット11は、ネットワークA1と
接続される通信インタフェース(I/F)11a、通信
処理を行うCPU11bと、通信処理のためのシステム
プログラムが格納されたシステムROM11cと、ワー
クメモリ11dと、テーブルメモリ11eと、ユニット
I/F11fとを有する。
The communication unit 11 includes a communication interface (I / F) 11a connected to the network A1, a CPU 11b for performing communication processing, a system ROM 11c storing a system program for communication processing, and a work memory 11d. It has a table memory 11e and a unit I / F 11f.

【0018】テーブルメモリ11eには、後述するよう
にデータ送信用の各種情報が設定されるデータ送信情報
テーブルと、データ受信用の各種情報が設定されるデー
タ受信情報テーブルとが格納される。
The table memory 11e stores a data transmission information table in which various information for data transmission is set and a data reception information table in which various information for data reception is set, as described later.

【0019】なお、他のPLC2〜4についても、上記
PLC1と同様に構成されている。図3に、テーブルメ
モリ11eに格納されるデータ送信情報テーブルと、デ
ータ受信情報テーブルとを示す。
The other PLCs 2 to 4 are also constructed similarly to the PLC 1. FIG. 3 shows a data transmission information table and a data reception information table stored in the table memory 11e.

【0020】(a)は、データ送信情報テーブルTB1
を示しており、このPLC1がデータ送信を行う他ノー
ド毎にテーブル番号(NO)が付けられ、各種送信用の
情報が格納されている。つまり、他ノード毎に、テーブ
ル番号(NO)と、ネットワークアドレス(NET)お
よびノードアドレス(NODE)からなる他ノードアド
レスと、自ノードPLC1のデータメモリユニット14
におけるデータ送信エリアを指定する自ノード送信エリ
ア指定情報と、当該他ノードPLCのデータメモリユニ
ットにおけるデータ受信エリアを指定する他ノード受信
エリア指定情報と、送信データ長と、送信タイミングを
通信時間間隔で指定した実行条件情報とが格納されてい
る。
(A) is a data transmission information table TB1
The table number (NO) is attached to each of the other nodes to which the PLC 1 transmits data, and various kinds of information for transmission are stored. That is, for each other node, the table number (NO), the other node address including the network address (NET) and the node address (NODE), and the data memory unit 14 of the own node PLC1.
, The other node reception area designation information that designates the data reception area in the data memory unit of the other node PLC, the transmission data length, and the transmission timing in communication time intervals. Stores the specified execution condition information.

【0021】(b)は、データ受信情報テーブルTB2
を示しており、データ送信情報テーブルTB1と同様
に、このPLC1がデータ受信を行う他ノード毎にテー
ブル番号(NO)が付けられ、各種受信用の情報が格納
されている。つまり、他ノード毎に、テーブル番号(N
O)と、ネットワークアドレス(NET)およびノード
アドレス(NODE)からなる他ノードアドレスと、自
ノードPLC1のデータメモリユニット14におけるデ
ータ受信エリアを指定する自ノード受信エリア指定情報
と、当該他ノードPLCのデータメモリユニットにおけ
るデータ送信エリアを指定する他ノード送信エリア指定
情報と、送信データ長と、受信タイミングを通信時間間
隔で指定した実行条件情報とが格納されている。
(B) is a data reception information table TB2
Similarly to the data transmission information table TB1, a table number (NO) is attached to each other node that receives data from the PLC 1, and various types of information for reception are stored. That is, the table number (N
O), another node address including a network address (NET) and a node address (NODE), own node reception area designation information that designates a data reception area in the data memory unit 14 of the own node PLC 1, and another node PLC of the other node PLC. Other node transmission area designation information that designates a data transmission area in the data memory unit, transmission data length, and execution condition information that designates reception timing in communication time intervals are stored.

【0022】次に、このように構成されたPLC1のデ
ータ通信ユニット11における送受信処理について、図
面を参照して説明する。
Next, the transmission / reception processing in the data communication unit 11 of the PLC 1 configured as described above will be described with reference to the drawings.

【0023】まず、データ通信ユニット11によるデー
タ送信処理から説明する。
First, the data transmission processing by the data communication unit 11 will be described.

【0024】図4は、データ通信ユニット11によるデ
ータ送信処理を示しており、また図5は、PLC1から
PLC2へのデータ送信時の命令やデータの流れを示し
ている。
FIG. 4 shows a data transmission process by the data communication unit 11, and FIG. 5 shows a flow of commands and data at the time of data transmission from PLC1 to PLC2.

【0025】まず、データ送信処理の開始により、この
PLC1の通信ユニット11内では、CPU11bが、
テーブルメモリ11eに格納された図3(a)に示すデ
ータ送信情報テーブルTB1を参照して、送信相手とな
る他ノードの各実行条件情報を参照して、実行条件が成
立しているか否かを判別し(ステップ100)、実行条
件が成立した他ノードがあれば(ステップ100“Ye
s”)、続いて自ノード内のデータ読出し処理を実行す
る(ステップ110)。
First, when the data transmission process is started, the CPU 11b in the communication unit 11 of the PLC 1
By referring to the data transmission information table TB1 shown in FIG. 3A stored in the table memory 11e, the execution condition information of the other node as the transmission partner is referred to and whether the execution condition is satisfied or not is determined. It is determined (step 100), and if there is another node that satisfies the execution condition (step 100 "Ye
s "), and then the data reading process in the own node is executed (step 110).

【0026】例えば、データ送信処理開始より時間T1
が経過して、図3(a)に示すデータ送信情報テーブル
TB1の最初に登録されているテーブルNo.1、すな
わちPLC2の実行条件情報T1が成立していると判断
した場合には、図5に示すように自ノードPLC1の通
信ユニット11が自ノード送信エリア指定情報x1およ
びデータ長L1に基づいて、データメモリユニット14
のデータアドレス領域x1を先頭にデータ長L1分だけ
データを読み出すデータ読出し指令()をCPUユニ
ット13に対し送る。そして、通信ユニット11は、そ
の読出し指令に対してCPU13が送ってきたレスポン
ス()から、PLC2へ送信すべきデータを取り出
す。
For example, time T1 has elapsed since the start of the data transmission process.
Has passed, the first registered table No. of the data transmission information table TB1 shown in FIG. 1, that is, when it is determined that the execution condition information T1 of PLC2 is established, the communication unit 11 of the own node PLC1 determines, based on the own node transmission area designation information x1 and the data length L1 as shown in FIG. Data memory unit 14
A data read command () for reading the data for the data length L1 is sent to the CPU unit 13 starting from the data address area x1. Then, the communication unit 11 extracts the data to be transmitted to the PLC 2 from the response () sent by the CPU 13 in response to the read command.

【0027】次いで、通信ユニット11は、その読出し
処理結果が正常か否かについて判断して(ステップ12
0)、読出し結果が正常であると判断した場合には(ス
テップ120“Yes”)、他ノードPLCに送信データ
の書込み処理を実行させ(ステップ130)、その後P
LC2からのレスポンスを待つ。
Next, the communication unit 11 judges whether or not the read processing result is normal (step 12).
0) If it is determined that the read result is normal (step 120 “Yes”), the other node PLC is made to execute the write processing of the transmission data (step 130), and then P
Wait for a response from LC2.

【0028】書込み処理は、図5に示すように、PLC
1の通信ユニットがネットワークアドレス(NET)A
1およびノードアドレス(NODE)a1からなる他ノ
ードアドレスに基づいてネットワークA1の他ノードP
LC2にデータ()を送信して、さらにその他ノード
PLC2に他ノード受信エリア指定情報y1に基づいて
その当該PLC2のデータメモリユニットのデータアド
レス領域y1を先頭にそのデータを書き込ませる。その
後、PLC1の通信ユニット11は、当該PLC2のC
PUユニット23からその通信ユニット21を介しての
レスポンス()を待つ。
As shown in FIG. 5, the writing process is performed by the PLC.
1 communication unit is network address (NET) A
1 and the other node P of the network A1 based on the other node address including the node address (NODE) a1.
The data () is transmitted to LC2, and the other node PLC2 is caused to write the data starting from the data address area y1 of the data memory unit of the relevant PLC2 based on the other node reception area designating information y1. After that, the communication unit 11 of the PLC1 is connected to the C of the PLC2.
It waits for a response () from the PU unit 23 via the communication unit 21.

【0029】PLC1では、通信ユニット11がPLC
2からのレスポンス()を受信して、PLC2におい
てデータの書込み処理が正常に行われたか否かを判断し
(ステップ140)、書込み処理が正常に行われていれ
ば(ステップ140“Yes”)、正常終了処理を行い
(ステップ150)、データ送信情報テーブルTB1の
実行条件情報を参照して次の実行条件の成立を待機する
(ステップ100)。
In PLC 1, communication unit 11 is PLC
The response () from # 2 is received, and it is determined whether or not the data writing process is normally performed in the PLC 2 (step 140). If the writing process is normally performed (step 140 “Yes”). Then, normal termination processing is performed (step 150), and the execution condition information of the data transmission information table TB1 is referred to wait for the next execution condition to be satisfied (step 100).

【0030】そして、他の他ノードについて実行条件が
成立した場合には、PLC1の通信ユニット11は、そ
の実行条件が成立した他ノードについて上記と同様のス
テップ100〜160までの各処理を行い、当該他ノー
ドへデータを送信するようにする。
When the execution condition is satisfied with respect to the other other node, the communication unit 11 of the PLC 1 performs the same processes as the above steps 100 to 160 with respect to the other node with which the execution condition is satisfied, The data is transmitted to the other node.

【0031】ところで、上記送信処理において、自ノー
ドPLCにおけるデータ読み出し処理結果が正常でない
場合(ステップ120“NO”)、および他ノードPL
Cにおけるデータ書込み処理結果が正常でない場合には
(ステップ140“NO”)、異常終了処理を行って
(ステップ160)、他の他ノードの実行条件の成立を
待機するようにする(ステップ100)。
By the way, in the above transmission process, when the result of the data read process in the own node PLC is not normal (step 120 "NO"), and in the other node PL.
If the result of the data writing process in C is not normal (step 140 “NO”), abnormal end processing is performed (step 160) and the execution conditions of other nodes are waited for (step 100). .

【0032】次に、PLC1におけるデータ受信処理か
ら説明する。
Next, the data receiving process in the PLC 1 will be described.

【0033】図6は、この場合のPLC1におけるデー
タ受信処理を示しており、図7は、PLC1におけるP
LC2からのデータの受信状態を示している。
FIG. 6 shows the data reception processing in the PLC 1 in this case, and FIG. 7 shows the P reception in the PLC 1.
The reception state of data from LC2 is shown.

【0034】まず、データ受信処理の開始により、通信
ユニット11内では、CPU11bが、テーブルメモリ
11eに格納された図3(b)に示すデータ受信情報テ
ーブルTB2を参照して、送信相手となる他ノードの各
実行条件情報を参照して、実行条件が成立しているか否
かを判別し(ステップ200)、実行条件が成立した他
ノードがあれば(ステップ200“Yes”)、続いて実
行条件が成立している他ノードPLCのデータ読出し処
理を実行する(ステップ210)。
First, when the data receiving process is started, the CPU 11b in the communication unit 11 refers to the data reception information table TB2 shown in FIG. By referring to each execution condition information of the node, it is judged whether or not the execution condition is satisfied (step 200), and if there is another node for which the execution condition is satisfied (step 200 “Yes”), the execution condition is continued. Then, the data reading process of the other node PLC which is satisfied is executed (step 210).

【0035】例えば、データ受信処理開始より時間T1
´が経過して、図3(b)に示すデータ受信情報テーブ
ルTB2の最初に登録されているテーブルNo.1、す
なわちPLC2の実行条件情報T1´が成立していると
判断した場合には(ステップ200“Yes”)、その他
ノードPLC2についてデータ読出し処理を実行する
(ステップ210)。
For example, time T1 has elapsed since the start of the data reception process.
′ Has passed, the first registered table No. of the data reception information table TB2 shown in FIG. When 1 is determined, that is, the execution condition information T1 'of the PLC2 is established (step 200 "Yes"), the data reading process is executed for the other node PLC2 (step 210).

【0036】つまり、図7に示すように、図3(b)に
示すデータ受信情報テーブルTB2を参照してテーブル
No.1のネットワークアドレス(NET)A1および
ノードアドレス(NODE)a1からなる他ノードアド
レスに基づいてネットワークA1の当該他ノードPLC
2へ、そのデータメモリにおいて他ノード送信エリア指
定情報y1´により送信データ長L1´のデータの読出
し指令()を送出する。一方、PLC2では、その読
出し指令()を通信ユニット21を介してCPU23
が受信して、その読出し指令によりレスポンス()を
PLC1へ返送する。
That is, as shown in FIG. 7, referring to the data reception information table TB2 shown in FIG. The other node PLC of the network A1 based on the other node address consisting of the network address (NET) A1 of 1 and the node address (NODE) a1
2, the read command () for the data having the transmission data length L1 ′ is sent to the data memory in accordance with the other node transmission area designation information y1 ′. On the other hand, in the PLC 2, the read command () is sent to the CPU 23 via the communication unit 21.
Is received and the response () is returned to the PLC 1 by the read command.

【0037】PLC1では、PLC2から返送されてき
たレスポンス()を受信して、他ノードPLC2のデ
ータ読出し処理が正常か否かを判断して(ステップ22
0)、他ノードPLC2のデータ読出し処理が正常な場
合には(ステップ220“Yes”)、続いてデータ受信
情報テーブルTB2の自ノード受信エリア指定情報x1
´に基づいて自ノードPLC1に対してデータ書込み指
令を送り、自ノードPLC1にデータの書込み処理を実
行させる(ステップ230)。
The PLC 1 receives the response () returned from the PLC 2 and judges whether the data reading process of the other node PLC 2 is normal (step 22).
0) If the data read process of the other node PLC2 is normal (step 220 “Yes”), then the own node reception area designation information x1 of the data reception information table TB2.
Based on ', a data write command is sent to the own node PLC1 to cause the own node PLC1 to execute a data write process (step 230).

【0038】書込み処理は、図7に示すようにPLC1
の通信ユニット11がPLC2からのレスポンス()
を受信して、そのレスポンスからデータを読出し、その
データと共にデータ書込み命令()を自ノードPLC
1のCPUユニット13に対して送る。CPUユニット
13は、PLC2からのデータを自ノード受信エリア指
定情報x1´に基づいてそのデータメモリユニットのデ
ータアドレス領域x1´を先頭にデータを書き込み、そ
のデータ書込み処理終了後に、レスポンス()を通信
ユニット11へ送信する。
As shown in FIG. 7, the writing process is performed by PLC1.
Communication unit 11 responds from PLC2 ()
Is received, data is read from the response, and a data write command () is sent together with the data to the local node PLC.
1 to the CPU unit 13. The CPU unit 13 writes the data from the PLC 2 based on the own node reception area designating information x1 'starting from the data address area x1' of the data memory unit, and after the data writing process is completed, the response () is communicated. Send to unit 11.

【0039】通信ユニット11は、CPUユニット13
からのそのレスポンス()により自ノードPLC1に
おけるデータ書込み処理結果が正常に行われたか否かを
判断して(ステップ240)、データ書込み処理が正常
に行われていれば(ステップ240“Yes”)、正常終
了処理を行い(ステップ250)、データ受信情報テー
ブルTB2の実行情報を参照して次の実行条件の成立を
待機する(ステップ200)。
The communication unit 11 is a CPU unit 13
From the response () from (1), it is judged whether or not the result of the data write processing in the own node PLC1 is normally performed (step 240), and if the data write processing is normally performed (step 240 “Yes”). Then, normal termination processing is performed (step 250), and the execution information of the data reception information table TB2 is referred to wait for the next execution condition to be satisfied (step 200).

【0040】そして、他の他ノードについて実行条件が
成立した場合には、PLC1の通信ユニット11は、そ
の実行条件が成立した他ノードについて上記と同様のス
テップ200〜260までの各処理を行い、当該他ノー
ドからデータを受信するようにする。
Then, when the execution condition is satisfied for the other other node, the communication unit 11 of the PLC 1 performs the respective processes from step 200 to 260 similar to the above for the other node for which the execution condition is satisfied, Data is received from the other node.

【0041】ところで、上記受信処理において、他ノー
ドPLCにおけるデータ読出し処理結果が正常でない場
合(ステップ220“NO”)、および自ノードPLC
におけるデータ書込み処理結果が正常でない場合には
(ステップ240“NO”)、上記送信処理の場合と同
様に異常終了処理を行って(ステップ260)、他の他
ノードの実行条件の成立を待機するようにする(ステッ
プ200)。
By the way, in the above receiving process, when the result of the data reading process in the other node PLC is not normal (step 220 "NO"), and in the own node PLC.
If the result of the data writing process in step S2 is not normal (step 240 “NO”), the abnormal end process is performed as in the case of the above transmission process (step 260), and the execution condition of another node is waited for. (Step 200).

【0042】従って、本実施例によれば、ネットワーク
を介した他ノードとのデータ通信をデータ送信情報テー
ブルおよびデータ受信情報テーブルを参照して実行する
ようにしたため、従来のようにデータ通信のための排他
制御プログラムやタイミング制御用の命令をラダープロ
グラム中に組み込む必要がなくなるため、ユーザプログ
ラム中における通信処理を簡略でき、ひいてはユーザプ
ログラム全体を簡素化することができる。
Therefore, according to this embodiment, the data communication with the other node via the network is executed by referring to the data transmission information table and the data reception information table. Since it is not necessary to incorporate the exclusive control program and the instruction for timing control in the ladder program, the communication process in the user program can be simplified, and the entire user program can be simplified.

【0043】また、本実施例によれば、データ送信情報
テーブルやデータ受信情報テーブルの内容を読み出すこ
とにより、実際の通信実行状況の把握も簡単に行うこと
ができる。
Further, according to the present embodiment, by reading the contents of the data transmission information table and the data reception information table, it is possible to easily grasp the actual communication execution status.

【0044】なお、本実施例では、他ノードとの通信タ
イミングを指示する実行条件を通信時間間隔の設定によ
り説明したが、ユーザプログラムからユーザメモリのO
N/OFFで指定できるようにしても良い。
In this embodiment, the execution condition for instructing the communication timing with another node is explained by setting the communication time interval.
The designation may be made by N / OFF.

【0045】また、本実施例では、通信相手となる他ノ
ードをネットワークアドレスおよびノードアドレスによ
り指定すると共に、そのデータ交換エリアや通信タイミ
ングも指定するようにして説明したが、本発明では、当
該他ノードやそのデータ交換エリア、通信タイミング等
が予め決まっていれば、それらを予め固定としておき、
ユーザ等が設定しないで済むようにしても良い。
Further, in the present embodiment, the description has been made such that the other node as the communication partner is designated by the network address and the node address, and the data exchange area and the communication timing are also designated. If the node, its data exchange area, communication timing, etc. are predetermined, fix them in advance,
The user or the like may not be required to make the setting.

【0046】さらに、本実施例では、PLC1からの送
信処理と受信処理とを図4および図6に示すように別け
て説明したが、本発明では、送受信指定フラグ等を設け
て、送受信テーブルを一つにし、かつ、図8に示すよう
にその送受指定フラグを参照して送信処理、あるいは受
信処理のいずれか判断して(ステップ310)、その判
断に基いて図4と同様の送信処理(ステップ320〜3
45)、あるいは図6と同様の受信処理(ステップ35
0〜370,345)を行うようにしても良い。
Further, in the present embodiment, the transmission processing and the reception processing from the PLC 1 are separately described as shown in FIGS. 4 and 6, but in the present invention, the transmission / reception table is provided with the transmission / reception designation flag and the like. Further, as shown in FIG. 8, the transmission / reception designation flag is referred to, and it is judged whether the transmission process or the reception process (step 310). Based on the judgment, the same transmission process as in FIG. Steps 320-3
45), or the same receiving process as in FIG. 6 (step 35).
0-370, 345) may be performed.

【0047】[0047]

【発明の効果】以上説明したように、本発明では、通信
相手となる他ノードを指定したノード指定情報、自ノー
ドおよび当該他ノードのメモリにおけるデータ交換エリ
アを指定したエリア指定情報、および当該他ノードとの
通信タイミングを指定した実行条件を予め登録してお
き、通信処理の際は、予め登録した各実行条件を参照し
て、実行条件が成立していると判断した場合、そのノー
ド指定情報により指定された他ノードとの間で、そのエ
リア指定情報により指定されたデータ交換エリアのデー
タ通信を行うようにしたため、従来のようにデータ通信
のための排他制御プログラムやタイミング制御用の命令
をラダープログラム中に組み込む必要がなくなり、ユー
ザプログラム中における通信処理を簡略でき、ひいては
ユーザプログラム全体を簡素化することができる。
As described above, according to the present invention, node designation information designating another node as a communication partner, area designation information designating a data exchange area in the memory of the self node and the other node, and the other Execution conditions that specify the communication timing with the node are registered in advance, and when it is determined that the execution conditions are satisfied by referring to each execution condition registered in advance during communication processing, the node specification information Since data communication of the data exchange area specified by the area specification information is performed with the other node specified by, the exclusive control program for data communication and the instruction for timing control are executed as before. It is not necessary to incorporate it in the ladder program, communication processing in the user program can be simplified, and eventually the entire user program It is possible to simplify the.

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

【図1】本発明に係るPLCと他ノードとの接続を示す
説明図。
FIG. 1 is an explanatory diagram showing a connection between a PLC according to the present invention and another node.

【図2】本発明に係るPLCの実施例を示す説明図。FIG. 2 is an explanatory diagram showing an embodiment of a PLC according to the present invention.

【図3】(a),(b)、各々、送信テーブル、受信テ
ーブルを示す説明図。
3A and 3B are explanatory diagrams showing a transmission table and a reception table, respectively.

【図4】データ送信時の処理手順を示すフローチャー
ト。
FIG. 4 is a flowchart showing a processing procedure when transmitting data.

【図5】データ送信処理の具体例を示す説明図。FIG. 5 is an explanatory diagram showing a specific example of data transmission processing.

【図6】データ受信時の処理手順を示すフローチャー
ト。
FIG. 6 is a flowchart showing a processing procedure when receiving data.

【図7】データ受信処理の具体例を示す説明図。FIG. 7 is an explanatory diagram showing a specific example of data reception processing.

【図8】データ送信処理と受信処理とを1つにした場合
の処理手順を示すフローチャート。
FIG. 8 is a flowchart showing a processing procedure when the data transmission processing and the reception processing are combined.

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

A1〜A3 ネットワーク 1〜4 PLC 11 通信ユニット 11a 通信I/F 11b CPU(データ通信手段) 11c システムROM 11d ワークメモリ 11e テーブルメモリ(通信情報登録手段) 11f ユニットI/F 12 ユーザプログラムユニット 13 CPUユニット 14 データメモリユニット TB1 データ送信情報テーブル TB2 データ受信情報テーブル A1 to A3 networks 1 to 4 PLC 11 communication unit 11a communication I / F 11b CPU (data communication means) 11c system ROM 11d work memory 11e table memory (communication information registration means) 11f unit I / F 12 user program unit 13 CPU unit 14 data memory unit TB1 data transmission information table TB2 data reception information table

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 他ノードとの間でデータ通信を行うプロ
グラマブルコントローラにおいて、 通信相手となる他ノードを指定したノード指定情報、自
ノードおよび当該他ノードのメモリにおけるデータ交換
エリアを指定したエリア指定情報、および当該他ノード
との通信タイミングを指定した実行条件情報が予め登録
された通信情報登録手段と、 上記通信情報登録手段に登録された実行条件情報を参照
して、ある他ノードと実行条件が成立していると判断し
た場合には、そのノード指定情報により指定された他ノ
ードとの間で、そのエリア指定情報により指定されたデ
ータ交換エリアのデータ通信を行うデータ通信手段と、 を具備することを特徴とするプログラマブルコントロー
ラ。
1. A programmable controller for performing data communication with another node, node designation information designating another node as a communication partner, and area designation information designating a data exchange area in a memory of the self node and the memory of the other node. , And communication condition registration means in which execution condition information designating communication timing with the other node is registered in advance, and execution condition information registered in the communication information registration means is referred to, and execution condition When it is determined that the condition is satisfied, the data communication means performs data communication of the data exchange area designated by the area designation information with another node designated by the node designation information. A programmable controller characterized in that
【請求項2】 通信情報登録手段に登録された実行条件
は、通信時間間隔により通信タイミングを指定する、 ことを特徴とする請求項1記載のプログラマブルコント
ローラ。
2. The programmable controller according to claim 1, wherein the execution condition registered in the communication information registration means specifies a communication timing by a communication time interval.
JP14030994A 1994-06-22 1994-06-22 Programmable controller Withdrawn JPH086614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14030994A JPH086614A (en) 1994-06-22 1994-06-22 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14030994A JPH086614A (en) 1994-06-22 1994-06-22 Programmable controller

Publications (1)

Publication Number Publication Date
JPH086614A true JPH086614A (en) 1996-01-12

Family

ID=15265804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14030994A Withdrawn JPH086614A (en) 1994-06-22 1994-06-22 Programmable controller

Country Status (1)

Country Link
JP (1) JPH086614A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10307611A (en) * 1997-05-09 1998-11-17 Mitsubishi Electric Corp Remote controller
JPH11305810A (en) * 1998-04-16 1999-11-05 Mitsubishi Electric Corp Network unit for programmable controller
JP2000047717A (en) * 1998-05-29 2000-02-18 Omron Corp Programmable controller system
JP2002063083A (en) * 2001-06-12 2002-02-28 Digital Electronics Corp Control device
SG103245A1 (en) * 1998-06-26 2004-04-29 Sony Corp Information processing apparatus and method, and distribution medium
JP2008181572A (en) * 2005-03-01 2008-08-07 Omron Corp Plc system
WO2012117500A1 (en) * 2011-02-28 2012-09-07 三菱電機株式会社 Communication device
JP2018136745A (en) * 2017-02-22 2018-08-30 オムロン株式会社 Control system, controller and control program

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10307611A (en) * 1997-05-09 1998-11-17 Mitsubishi Electric Corp Remote controller
JPH11305810A (en) * 1998-04-16 1999-11-05 Mitsubishi Electric Corp Network unit for programmable controller
JP2000047717A (en) * 1998-05-29 2000-02-18 Omron Corp Programmable controller system
SG103245A1 (en) * 1998-06-26 2004-04-29 Sony Corp Information processing apparatus and method, and distribution medium
JP2002063083A (en) * 2001-06-12 2002-02-28 Digital Electronics Corp Control device
JP4697484B2 (en) * 2005-03-01 2011-06-08 オムロン株式会社 PLC system
JP2008181572A (en) * 2005-03-01 2008-08-07 Omron Corp Plc system
WO2012117500A1 (en) * 2011-02-28 2012-09-07 三菱電機株式会社 Communication device
JP5490307B2 (en) * 2011-02-28 2014-05-14 三菱電機株式会社 Communication device
JP2018136745A (en) * 2017-02-22 2018-08-30 オムロン株式会社 Control system, controller and control program
CN110168456A (en) * 2017-02-22 2019-08-23 欧姆龙株式会社 Control system, control device and control program
EP3588215A4 (en) * 2017-02-22 2020-12-09 Omron Corporation Control system, control device, and control program
US11169500B2 (en) 2017-02-22 2021-11-09 Omron Corporation Control system, control device and control program for verifying soundness of data on a transmission path
CN110168456B (en) * 2017-02-22 2021-12-10 欧姆龙株式会社 Control system, control device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
US6327511B1 (en) Input/output (I/O) scanner for a control system with peer determination
US5978593A (en) Programmable logic controller computer system with micro field processor and programmable bus interface unit
JPH086614A (en) Programmable controller
CN115941102A (en) Method for synchronous communication between controllers by connecting MCU and FPGA through SPI
CN114285695A (en) Communication method, device, equipment, system and storage medium
US20050169306A1 (en) Protocol converter for communication between data processing devices and a data transmission system using said converter
JPH01135150A (en) Node address setting system for network
JP2000138725A (en) Host computer for control and recording medium with program recorded therein
JP3024345B2 (en) Data link method
JP3358045B2 (en) Programmable controller
JP3329399B2 (en) Data link system
JPH11288307A (en) Fa system
JPH09153902A (en) Operating setting method for network equipment
JP2000227803A (en) Method and system for controlling transmission in data link system of programmable controller
JP3190627B2 (en) Control host computer and recording medium on which the program is recorded
JP3293090B2 (en) PLC remote I / O system, execution method of PLC remote I / O system, and PLC main body in PLC remote I / O system
JPH0722288B2 (en) Communication control device for local area network
JP2001016664A (en) Control display device and recording medium recording its program
JPH06216909A (en) Programmable controller
JP2640487B2 (en) Programmable controller system
JP3350699B2 (en) Programmable controller
JP2000137505A (en) Controlling host computer and recording medium recording its program
JP2745464B2 (en) Token passing LAN device
JPH0441365B2 (en)
JPH06168014A (en) Inter-station communication system for programmable controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010904