[go: up one dir, main page]

JP3364557B2 - Data processing system and programmable controller - Google Patents

Data processing system and programmable controller

Info

Publication number
JP3364557B2
JP3364557B2 JP22823995A JP22823995A JP3364557B2 JP 3364557 B2 JP3364557 B2 JP 3364557B2 JP 22823995 A JP22823995 A JP 22823995A JP 22823995 A JP22823995 A JP 22823995A JP 3364557 B2 JP3364557 B2 JP 3364557B2
Authority
JP
Japan
Prior art keywords
area
data
programmable controller
link
low
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
Application number
JP22823995A
Other languages
Japanese (ja)
Other versions
JPH0973305A (en
Inventor
賢一 長倉
厚 伊東
勉 須永
憲弘 會田
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.)
Hitachi Ltd
Hitachi KE Systems Ltd
Original Assignee
Hitachi Ltd
Hitachi KE Systems Ltd
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 Hitachi Ltd, Hitachi KE Systems Ltd filed Critical Hitachi Ltd
Priority to JP22823995A priority Critical patent/JP3364557B2/en
Publication of JPH0973305A publication Critical patent/JPH0973305A/en
Application granted granted Critical
Publication of JP3364557B2 publication Critical patent/JP3364557B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Multi Processors (AREA)
  • Computer And Data Communications (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ネットワークを介して
接続された複数のプログラマブルコントローラ間で、相
互に各プログラマブルコントローラのデータを参照可能
とするするデータリンクの技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data link technique that allows a plurality of programmable controllers connected via a network to mutually refer to the data of each programmable controller.

【0002】[0002]

【従来の技術】従来より、図10aに示すように複数の
プログラマブルコントローラ1をネットワーク2を介して
接続した制御システムが広く用いられている。このよう
な制御システムでは、各プログラマブルコントローラ1
(ST0ーST3)が協調してプラント3などの制御を行う。こ
のような制御システムは、前述した協調制御やプラント
の管理などに用いるデータを相互に授受するために、デ
ータリンクと呼ばれる機能を有している。データリンク
機能は、各プログラマブルコントローラ1のローカルな
メモリ上に設けられたリンクエリアと呼ぶ領域上のデー
タの内容を全て一致させる。リンクエリアは、リンクエ
リアを分割した領域毎に各プログラマブルコントローラ
1に排他的に割り当てられており、プログラマブルコン
トローラ1が他のプログラマブルコントローラに送りた
いデータをリンクエリアの自身に割り当てられている領
域に書き込むと、このデータがデータリンク機能によっ
て他の全てのプログラマブルコントローラ1のリンクエ
リア上の対応する領域に複製される。図10bは、各プロ
グラマブルコントローラのリンクエリアの割当を示して
いる。この図は、各プログラマブルコントローラの各リ
ンクエリアを各々4つの領域に等分割し、各リンクエリ
アの一番上の領域をプログラマブルコントローラST0
に、各リンクエリアの二番目の領域をプログラマブルコ
ントローラST1に、各リンクエリアの三番目の領域をプ
ログラマブルコントローラST2に、各リンクエリアの一
番下の領域をプログラマブルコントローラST3に割り当
てた場合を示している。このような割当がなされている
場合、プログラマブルコントローラST0が、自身のリン
クエリアの一番上の領域に書き込んだデータは、データ
リンク機能によって他の全てのプログラマブルコントロ
ーラST1、ST2、ST03のリンクエリアの一番上の領域にそ
れぞれ複製される。
2. Description of the Related Art Conventionally, a control system in which a plurality of programmable controllers 1 are connected via a network 2 as shown in FIG. 10a has been widely used. In such a control system, each programmable controller 1
(ST0-ST3) cooperate to control the plant 3 and so on. Such a control system has a function called a data link in order to mutually exchange the data used for the above-mentioned coordinated control and plant management. The data link function matches all the contents of data in an area called a link area provided on the local memory of each programmable controller 1. The link area is a programmable controller for each divided area.
When the programmable controller 1 writes the data that it wants to send to another programmable controller to the area assigned to itself in the link area, this data is assigned to all other programmable controllers by the data link function. It is duplicated in the corresponding area on the link area of 1. FIG. 10b shows the link area allocation of each programmable controller. In this figure, each link area of each programmable controller is equally divided into four areas, and the top area of each link area is programmable controller ST0.
Shows the case where the second area of each link area is assigned to the programmable controller ST1, the third area of each link area is assigned to the programmable controller ST2, and the bottom area of each link area is assigned to the programmable controller ST3. There is. When such an allocation is made, the programmable controller ST0 writes the data written in the uppermost area of its own link area to the link areas of all other programmable controllers ST1, ST2, ST03 by the data link function. Each is duplicated in the top area.

【0003】[0003]

【発明が解決しようとする課題】従来の複数のプログラ
マブルコントローラをネットワークで接続した制御シス
テムは、以上のように構成されていたので、前述したリ
ンクデータ機能を用いて、各プログラマブルコントロー
ラが他のプログラマブルコントローラに一度に送ること
のできるデータ量はリンクエリアの容量をプログラマブ
ルコントローラ数で割った容量分に限られていた。この
ため、あるプログラマブルコントローラが他のプログラ
マブルコントローラに、より多くのデータ量のデータを
送りたい場合には、別途ユーザがラダープログラム等
で、このデータを分割してリンクデータ機能を利用でき
るようにするか、リンクデータ機能を利用せずに、ユー
ザがラダープログラム等で、このデータの送受信を制御
する必要があった。一方、リンクエリアの容量を大きく
すれば、リンクデータ機能を利用して他プログラマブル
コントローラに送ることのできるデータ量は増加する
が、このようにすることは、ハードウェアの規模の増大
や、リンクデータ機能の処理負荷の増大や、ネットワー
ク上のトラヒックの増大を招くことになる。
Since the conventional control system in which a plurality of programmable controllers are connected by a network is configured as described above, each programmable controller uses the above-described link data function to be programmable by another programmable controller. The amount of data that can be sent to the controller at one time was limited to the capacity of the link area divided by the number of programmable controllers. Therefore, when one programmable controller wants to send a larger amount of data to another programmable controller, a separate user can use a ladder program or the like to divide this data and use the link data function. Or, the user needs to control the transmission / reception of this data by a ladder program or the like without using the link data function. On the other hand, if the capacity of the link area is increased, the amount of data that can be sent to other programmable controllers by using the link data function also increases. This will increase the processing load of the function and increase the traffic on the network.

【0004】そこで、本発明は、リンクエリアの容量
を、さほど増大することなしに、リンクデータ機能を利
用して、まとめて送受できるデータのデータ量を増大す
ることを目的とする。
Therefore, an object of the present invention is to increase the amount of data that can be collectively transmitted / received by utilizing the link data function without increasing the capacity of the link area so much.

【0005】[0005]

【課題を解決するための手段】前記目的達成にために、
本発明は、複数のデータ処理装置がネットワークを介し
て接続されたデータ処理システムであって、前記各デー
タ処理装置は、データを処理するプロセッサ部と、前記
プロセッサがアクセス可能なリンクエリアメモリと、当
該リンクエリアメモリと他のデータ処理装置との間の前
記ネットワークを介したデータの転送を制御するリンク
制御部とを備え、前記リンクエリアメモリの記憶エリア
は、前記複数のデータ処理装置の各々に排他的に割り当
てられた複数の領域よりなる高速エリアと、1以上の低
速エリアとを含み、前記リンク制御部は、自データ処理
装置に割り当てられた前記高速エリアの領域のデータの
他の全てのデータ処理装置への転送と、他のデータ処理
装置の高速エリアの領域から転送されたデータの当該デ
ータの送信元のデータ処理装置に割り当てられた前記高
速エリアの領域への格納と、前記低速エリアメモリの一
つのデータ処理装置への割当とを行うと共に、前記低速
エリアに自データ処理装置へ割り当てた場合には低速エ
リアに格納されているデータの他の全てのデータ処理装
置への転送を行い、前記低速エリアを他のデータ処理装
置へ割り当てた場合には、当該低速エリアを割り当てた
他のデータ処理装置の低速エリアより転送されたデータ
の低速エリアへの格納を行い、各データ処理装置のリン
ク制御部は、相互に協調して、全てのデータ処理装置に
おいて前記低速エリアが一時に同じデータ処理装置にの
み割り当てられると共に、前記低速エリアに割り当てら
れる前記データ処理装置が順次交代するように自データ
処理装置の低速エリアの前記割当を行うことを特徴とす
るデータ処理システムを提供する。
[Means for Solving the Problems] In order to achieve the above object,
The present invention is a data processing system in which a plurality of data processing devices are connected via a network, wherein each of the data processing devices includes a processor unit that processes data, and a link area memory accessible by the processor. A link control unit that controls transfer of data between the link area memory and another data processing device via the network, and a storage area of the link area memory is provided in each of the plurality of data processing devices. The link control unit includes a high-speed area consisting of a plurality of areas that are exclusively allocated and one or more low-speed areas, and the link control unit includes all other data in the area of the high-speed area allocated to the own data processing device. Data transferred to a data processing device and data transferred from a high-speed area of another data processing device is de-sourced. Data is stored in the area of the high-speed area allocated to the data processing device, and the low-speed area memory is allocated to one data processing device. When the data stored in the area is transferred to all other data processing devices and the low speed area is assigned to another data processing device, the low speed of the other data processing device to which the low speed area is assigned is low. The data transferred from the area is stored in the low speed area, and the link control units of the respective data processing devices cooperate with each other to allocate the low speed area to only the same data processing device at a time in all the data processing devices. At the same time, the allocation of the low-speed area of the own data processing device is performed so that the data processing devices allocated to the low-speed area are sequentially replaced. To provide a data processing system according to claim Ukoto.

【0006】[0006]

【作用】本発明に係る制御システムでは、各データ処理
装置のエリアの自データ処理装置に割り当てられた領域
のデータは、従来のリンクデータ機能による場合と同様
に、他の全てのデータ処理装置の高速エリアに複写され
る。一方、低速エリアのデータは自データ処理装置が低
速エリアに割り当てられた場合のみ、他の全てのデータ
処理装置の低速エリアに複写される。その他の場合は、
他のデータ処理装置の低速エリアのデータの転送を受け
るために用いられる。すなわち、各データ処理装置にお
いて低速エリアは、あるときはリンクデータ機能を利用
して送信するデータの格納用に、あるときは特定の他の
データ処理装置からリンクデータ機能を利用して受信す
るデータの格納用に、時分割に共用される。したがい、
各データ処理装置のリンクエリアメモリ低速エリアと同
容量の、リンクデータ機能を利用して送信するデータの
格納用の領域と、データ機能を利用して受信するデータ
の格納用の他のプログラマブルコントローラ毎の領域を
各々確保する場合に比べて、少ない容量で低速エリアの
容量分のデータをまとめて転送することができる。
In the control system according to the present invention, the data of the area assigned to the own data processing device in the area of each data processing device is the same as that of all other data processing devices as in the case of the conventional link data function. Copied to the high speed area. On the other hand, the data in the low speed area is copied to the low speed areas of all the other data processing apparatuses only when the own data processing apparatus is assigned to the low speed area. Otherwise,
It is used to receive the data transfer in the low speed area of another data processing device. That is, in each data processing device, the low-speed area is used for storing data to be transmitted by using the link data function at one time, and data received by using the link data function from another specific data processing device at some time. Shared time-shared for storage of Therefore,
Link area memory of each data processing device Each area of the same capacity as the low-speed area for storing data to be transmitted by using the link data function and each other programmable controller for storing data to be received by using the data function It is possible to collectively transfer the data for the capacity of the low speed area with a smaller capacity than in the case where each area is secured.

【0007】[0007]

【実施例】以下、本発明の一実施例について説明する。EXAMPLES An example of the present invention will be described below.

【0008】まず、図1に本実施例に係る制御システム
の構成を示す。
First, FIG. 1 shows the configuration of a control system according to this embodiment.

【0009】図中、1はプログラマブルコントローラ
(ST0-ST3)である。また、2は各プログラマブルコント
ローラをリング状に連結する伝送路であり、プログラマ
ブルコントローラがデータの伝送に用いるネットワーク
を形成する。また、3は各プログラマブルコントローラ
によって制御される制御対象システムであり、たとえば
プラントなどである。
In the figure, 1 is a programmable controller (ST0-ST3). Reference numeral 2 denotes a transmission path that connects the programmable controllers in a ring shape, and forms a network used by the programmable controller for data transmission. Reference numeral 3 denotes a controlled system controlled by each programmable controller, such as a plant.

【0010】このような構成において、プログラマブル
コントローラ1(ST0ーST3)を連結する伝送路2は一方
向(図では時計回り)に、データを格納したフレームを
伝送する。図2に示すように、各フレームは、当該フレ
ームの伝送先のプログラマブルコントローラのアドレス
である送信先アドレス21と、このフレームの送信元のプ
ログラマブルコントローラのアドレスである送信元アド
レス22と、データ23を含んでいる。送信先アドレスとし
ては、予め定めたブロードキャストアドレスを用いるこ
とができる。ブロードキャストアドレスは、全てのプロ
グラマブルコントローラが、フレームの送信先であるこ
とを表す。
In such a configuration, the transmission path 2 connecting the programmable controllers 1 (ST0-ST3) transmits a frame storing data in one direction (clockwise in the figure). As shown in FIG. 2, each frame includes a destination address 21 that is the address of the programmable controller that is the destination of the frame, a source address 22 that is the address of the programmable controller that is the source of the frame, and data 23. Contains. A predetermined broadcast address can be used as the destination address. The broadcast address indicates that all programmable controllers are destinations of the frame.

【0011】各プログラマブルコントローラ1は、フレ
ームの伝送方向上上流の伝送路2からフレームを受信す
ると、フレームの送信元アドレスが自身のアドレスであ
るか否かを調べ、自身のアドレスであれば、自身が発信
した後に既に伝送路のリングを周回してきたフレームで
あるので、受信したフレームを廃棄する。もし、自身の
アドレスでなければ、フレームの送信先アドレスが自身
のアドレスもしくはブロードキャストアドレスであるか
否かを調べ、フレームの送信先アドレスが自身のアドレ
スもしくはブロードキャストアドレスであれば、このフ
レーム中のデータを取り込むと共に、受信したフレーム
を下流の伝送路に中継する。一方、自身のアドレスもし
くはブロードキャストアドレスでなければ受信したフレ
ームの下流の伝送路への中継のみを行い、データの取り
込みは行わない。このようにしてフレームは、送信元の
プログラマブルコントローラを起点として伝送路のリン
グ上を一周するように順次中継される。また、この間
に、フレームの送信先アドレスで指定されるプログラマ
ブルコントローラによって、フレーム内のデータが取り
込まれることになる。本実施例では、リンクエリアのデ
ータは、ブロードキャストアドレスを送信先アドレスと
したフレームによって、送信元のプログラマブルコント
ローラより他の全てのプログラマブルコントローラに送
られることになる。
When each programmable controller 1 receives a frame from the upstream transmission path 2 in the transmission direction of the frame, it checks whether the source address of the frame is its own address, and if it is its own address, Since it is a frame that has already circulated around the ring of the transmission path after being transmitted, the received frame is discarded. If it is not its own address, check whether the destination address of the frame is its own address or broadcast address. If the destination address of the frame is its own address or broadcast address, the data in this frame Is received, and the received frame is relayed to the downstream transmission path. On the other hand, if it is not its own address or broadcast address, it only relays the received frame to the downstream transmission path, and does not capture the data. In this way, the frames are sequentially relayed around the ring of the transmission path starting from the programmable controller of the transmission source. Further, during this period, the data in the frame is taken in by the programmable controller designated by the destination address of the frame. In the present embodiment, the data in the link area is transmitted from the source programmable controller to all other programmable controllers in a frame in which the broadcast address is the destination address.

【0012】なお、複数のプログラマブルコントローラ
1(ST0ーST3)のうちの一つのプログラマブルコントロ
ーラ(本実施例ではST0)は親局として選定されてお
り、各プログラマブルコントローラ1の送信のタイタイ
ミングは、この親局に良って制御される。具体的には、
各子局のプログラマブルコントローラは、親局からのポ
ーリングコマンドによって送信権を与えられた場合に、
自身のデータを格納したフレームを送信する。
One programmable controller (ST0 in this embodiment) of the plurality of programmable controllers 1 (ST0-ST3) is selected as the master station, and the tie timing of transmission of each programmable controller 1 is It is well controlled by the master station. In particular,
The programmable controller of each slave station, when given the transmission right by the polling command from the master station,
Sends a frame containing its own data.

【0013】図3に、各プログラマブルコントローラ1
の内部構成を示す。
FIG. 3 shows each programmable controller 1
The internal structure of is shown.

【0014】図示するように、プログラマブルコントロ
ーラ1は、CPU部100、リンク部110、制御入出力部120、
外部入出力部130より構成されている。
As shown in the figure, the programmable controller 1 includes a CPU section 100, a link section 110, a control input / output section 120,
It is composed of an external input / output unit 130.

【0015】CPU部100は、CPU101、メインメモリ1
02を備え、リンク部はリンクエリアメモリ111、リ
ンク制御プロセッサ112、送受信バッファ114を備え
た通信制御部113を備えている。また、制御入出力部
120は、制御対象システム3の状態信号を取り込む入
力回路121、制御対象3を制御するための制御信号を
出力する出力回路122を備え、外部入出力部130は、
外部よりCPU101が実行する処理を特定するユーザプログ
ラムや、ユーザの各種操作を取り込むための入力インタ
フェース131や、各種情報や、状態を出力したり、表
示するための出力インタフェース132を備えている。
また、CPU101は、バス103を介して、リンクエリ
アメモリ111、入力回路121、出力回路122、入力
インタフェース131、出力インタフェース132に直
接アクセスすることができる構成となっている。また、
前述したフレームの送信や、中継や、廃棄や、フレーム
のデータの取り込みは、通信制御部113によって行わ
れる。通信制御部113は、前述したように送信先アド
レスに応じてフレームよりデータを、内部に備えた送受
信データバッファ114に取り込むと、その旨をリンク
制御プロセッサ112に通知する。通知を受けたリンク
制御プロセッサ112は、送受信データバッファ114
に取り込まれたデータをリンクエリアメモリ111に転
送する。また、逆に、リンク制御プロセッサ112にリ
ンクエリアメモリ111より送受信バッファ114に転
送されたデータや、リンク制御プロセッサ112によっ
て書き込まれたデータは、通信制御部113によってリ
ンク制御プロセッサ112が指定する送信先アドレス
と、自プログラマブルコントローラ1のアドレスを示す
送信元アドレスを含んだフレームに格納され送信され
る。
The CPU section 100 includes a CPU 101 and a main memory 1.
02, the link unit includes a link area memory 111, a link control processor 112, and a communication control unit 113 including a transmission / reception buffer 114. Further, the control input / output unit 120 includes an input circuit 121 that takes in the state signal of the controlled system 3, an output circuit 122 that outputs a control signal for controlling the controlled system 3, and the external input / output unit 130.
It is provided with a user program for externally specifying the process executed by the CPU 101, an input interface 131 for fetching various user operations, and an output interface 132 for outputting and displaying various information and states.
Further, the CPU 101 is configured to be able to directly access the link area memory 111, the input circuit 121, the output circuit 122, the input interface 131, and the output interface 132 via the bus 103. Also,
The communication control unit 113 performs the above-described frame transmission, relay, discard, and frame data capture. As described above, the communication control unit 113 fetches the data from the frame in the transmission / reception data buffer 114 provided therein according to the destination address, and notifies the link control processor 112 of the fact. The link control processor 112 that has received the notification transmits and receives the data buffer 114.
The data taken in by is transferred to the link area memory 111. On the contrary, the data transferred to the link control processor 112 from the link area memory 111 to the transmission / reception buffer 114 and the data written by the link control processor 112 are the destinations specified by the link control processor 112 by the communication control unit 113. It is stored and transmitted in a frame including an address and a transmission source address indicating the address of its own programmable controller 1.

【0016】このような構成において、CPU101は、
入力インタフェース131からメインメモリ102に取
り込んだユーザプログラムに従って処理を行う。この処
理では、入力回路121を介した制御対象の状態の取り
込みや、出力回路122を介した制御対象3の制御や、
入力インタフェース131、出力インタフェースを介し
た各種入出力や、リンクエリアメモリ111よりのデータ
の取り込みや、リンクエリアメモリ111へのデータの
書込や、各種データの処理などを行う。
In such a configuration, the CPU 101
Processing is performed in accordance with the user program loaded from the input interface 131 into the main memory 102. In this process, the state of the controlled object is captured via the input circuit 121, the controlled object 3 is controlled via the output circuit 122,
Various input / output through the input interface 131 and the output interface, data acquisition from the link area memory 111, data writing to the link area memory 111, processing of various data, and the like are performed.

【0017】以下、本実施例において行うリンクエリア
メモリ111を利用したリンクデータ処理ついて説明す
る。
Link data processing using the link area memory 111 in this embodiment will be described below.

【0018】本実施例においては、図4に示すようにリ
ンクエリアメモリの記憶空間を分割する。
In this embodiment, the storage space of the link area memory is divided as shown in FIG.

【0019】すなわち、各プログラマブルコントローラ
1の各リンクエリアメモリ111の記憶空間を、管理エリ
ア1112、高速エリア1113、低速エリア1114
に、同じように分割する。また、高速エリアは、さらに
プログラマブルコントローラの数分に分割する。そし
て、高速エリアを分割した各領域は各プログラマブルコ
ントローラ1にひとつづつ排他的に割り当てる。本実施
例では、各高速エリアの一番上の領域をプログラマブル
コントローラST0に、二番目の領域をプログラマブルコ
ントローラST1に、三番目の領域をプログラマブルコン
トローラST2に、一番下の領域をプログラマブルコント
ローラST3に割り当てる。なお、ここで、本実施例で
は、メインメモリ102の記憶空間を所定の容量毎に、
複数のページに分割して用いている。そして、高速エリ
アの容量及び低速エリアの容量を、このページの容量と
等しくしている。
That is, the storage space of each link area memory 111 of each programmable controller 1 is set as a management area 1112, a high speed area 1113, and a low speed area 1114.
And split in the same way. Further, the high speed area is further divided into a number of programmable controllers. Each area obtained by dividing the high speed area is exclusively allocated to each programmable controller 1 one by one. In this embodiment, the top area of each high-speed area is the programmable controller ST0, the second area is the programmable controller ST1, the third area is the programmable controller ST2, and the bottom area is the programmable controller ST3. assign. Here, in the present embodiment, the storage space of the main memory 102 is set for each predetermined capacity.
It is used by dividing it into multiple pages. Then, the capacity of the high speed area and the capacity of the low speed area are made equal to the capacity of this page.

【0020】次に、本実施例では、このように分割した
リンクエリアメモリ111の各領域を、図4に示したよ
うに、メインメモリ102の各ページと対応づける。ここ
では、各プログラマブルコントローラにおける、この対
応づけは全て等しいものとして説明する。
Next, in this embodiment, each area of the link area memory 111 thus divided is associated with each page of the main memory 102 as shown in FIG. Here, it is assumed that all the correspondences in each programmable controller are the same.

【0021】各プログラマブルコントローラ1におい
て、高速エリア1113にはメインメモリ102のペー
ジを一つ対応づけ、低速エリア1114には制御システ
ム内のプログラマブルコントローラ数分のページを対応
づける。図示した例では、高速エリア1113にページ
1を、低速エリア1114にページ2ー5の4つのペー
ジを対応づけている。また、さらに、低速エリア111
4に割付けた各ページには、各プログラマブルコントロ
ーラ(ST0-ST4)を一つづつ排他的に割り当てる。ここ
では、ページ2をST0に、ページ3をST1に、ページ4
をST2に、ページ5をST3に割り当てる。
In each programmable controller 1, the high speed area 1113 is associated with one page of the main memory 102, and the low speed area 1114 is associated with as many pages as the number of programmable controllers in the control system. In the illustrated example, page 1 is associated with the high speed area 1113 and four pages 2-5 are associated with the low speed area 1114. In addition, the low speed area 111
Each programmable controller (ST0 to ST4) is exclusively allocated to each page allocated to page 4. Here, page 2 is ST0, page 3 is ST1, page 4 is
To ST2 and page 5 to ST3.

【0022】ここで、図5に、管理エリア1112の内
部構成を示す。
FIG. 5 shows the internal structure of the management area 1112.

【0023】図示するように、管理エリア1112は、
転送要求フラグ50、転送完了フラグ51、ページ番号5
2、全ページ数53を記述する領域を含んでいる。
As shown, the management area 1112 is
Transfer request flag 50, transfer completion flag 51, page number 5
2. It includes an area for describing the total number of pages 53.

【0024】さて、このようなリンクエリアメモリ11
1の内容は、リンク制御プロセッサ112の制御によっ
て、リフレッシュサイクルと呼ぶサイクル毎に更新され
る。一回のリフレッシュサイクルにおいて、各プログラ
マブルコントローラ1(ST0-ST3)は、それぞれ一度づつ
データの送信を行う。
Now, such a link area memory 11
The content of 1 is updated by the control of the link control processor 112 every cycle called a refresh cycle. In one refresh cycle, each programmable controller 1 (ST0 to ST3) transmits data once.

【0025】各リフレッシュサイクルにおいて、親局の
プログラマブルコントローラのリンク制御プロセッサ1
03はリフレッシュサイクル毎に、管理エリア111のペ
ージ番号52を、低速エリア1114に割り当てたメイン
メモリ102のページのうちからサイクリックに選択し
た一つのページの番号を順番に表すように更新する。す
なわち、管理エリア111のページ番号を、ページ2、ペ
ージ3、ページ4、ページ5、ページ2、ページ3、…
…というように順次、リフレッシュサイクル毎に更新す
る。また、各リフレッシュサイクルにおいて、親局のプ
ログラマブルコントローラのリンク制御プロセッサ10
3は、管理エリア1112のページ番号に設定したペー
ジ番号と、高速エリア113の自身に割り当てられてい
る領域のデータをブロードキャストアドレスを送信先ア
ドレスとして含むフレームに格納して送信する。ただ
し、もし、管理エリア1112のページ番号に設定した
ページ番号が自プログラマブルコントローラST0に割り
当てられているページ番号である場合には、さらに低速
エリア1114のデータも併せて送信する。そして、送
信が終了したならば、他の子局に順番にポーリングコマ
ンドを送信し、順番に送信権を与える。
In each refresh cycle, the link control processor 1 of the master station programmable controller
03 updates the page number 52 of the management area 111 so as to sequentially represent the number of one page cyclically selected from the pages of the main memory 102 allocated to the low speed area 1114 every refresh cycle. That is, the page number of the management area 111 is set to page 2, page 3, page 4, page 5, page 2, page 3, ...
... and so on, and are sequentially updated every refresh cycle. In each refresh cycle, the link control processor 10 of the master station programmable controller
3 stores the page number set as the page number of the management area 1112 and the data of the area allocated to itself in the high speed area 113 in a frame including a broadcast address as a destination address and transmits the frame. However, if the page number set in the page number of the management area 1112 is the page number assigned to the own programmable controller ST0, the data of the low speed area 1114 is also transmitted. Then, when the transmission is completed, the polling commands are sequentially transmitted to the other slave stations, and the transmission right is sequentially given.

【0026】一方、他の子局のプログラマブルコントロ
ーラ1(ST1-ST3)のリンク制御プロセッサ112は、各
リフレッシュサイクルにおいて、親局より送信権が与え
られると、高速エリア113の自身に割り当てられてい
る領域のデータをブロードキャストアドレスを送信先ア
ドレスとして含むフレームに格納して送信する。ただ
し、もし、親局から先に受信したページ番号が自プログ
ラマブルコントローラに割り当てられているページ番号
である場合には、さらに低速エリア1114のデータも
併せて送信する。
On the other hand, the link control processor 112 of the programmable controller 1 (ST1-ST3) of the other slave station is assigned to itself in the high speed area 113 when the transmission right is given from the master station in each refresh cycle. The data of the area is stored in a frame including a broadcast address as a destination address and transmitted. However, if the page number received earlier from the master station is the page number assigned to the own programmable controller, the data in the low speed area 1114 is also transmitted.

【0027】なお、以上のような親局および子局のプロ
グラマブルコントローラ1のリンク制御プロセッサ11
2による送信は、前述したように通信制御部113を介
して行われる。
The link control processor 11 of the programmable controller 1 of the master station and the slave stations as described above.
The transmission by 2 is performed via the communication control unit 113 as described above.

【0028】また、以上のようなリフレッシュサイクル
の動作において、親局および子局のプログラマブルコン
トローラのリンク制御プロセッサ112は、ブロードキ
ャストアドレスを送信先アドレスとして送信され、通信
制御部113によって送純データバッファ114に取り
込まれたデータを、リンクエリアメモリ111に転送す
る。受信した他のプログラマブルコントローラの低速エ
リア114のデータはリンクエリアメモリ111の低速
エリア1114に転送し、受信した他のプログラマブル
コントローラの高速エリア1113の領域のデータは、リン
クエリアメモリ111の当該データの送信元のプログラ
マブルコントローラ1に割り当てられている領域に転送
する。また、各子局において親局から受信したページ番
号は管理エリアのページ番号52に転送する。すなわ
ち、送信先のプログラマブルコントローラにおいては、
送信元のプログラマブルコントローラのリンクエリアメ
モリ111において記憶されていた場所と同じ、リンク
エリアメモリ112の場所にデータは格納されることに
なる。
In the operation of the refresh cycle as described above, the link control processors 112 of the programmable controllers of the master station and the slave stations are transmitted with the broadcast address as the destination address, and the communication control unit 113 transmits the pure data buffer 114. The data taken in by is transferred to the link area memory 111. The received data of the low-speed area 114 of the other programmable controller is transferred to the low-speed area 1114 of the link area memory 111, and the received data of the high-speed area 1113 of the other programmable controller is the transmission of the relevant data of the link area memory 111. Transfer to the area assigned to the original programmable controller 1. The page number received from the parent station in each child station is transferred to the page number 52 in the management area. That is, in the programmable controller of the destination,
The data will be stored in the same location in the link area memory 112 as the location stored in the link area memory 111 of the programmable controller of the transmission source.

【0029】以上のようなリフレッシュサイクルの動作
によって、図6に示すような異なるプログラマブルコン
トローラのリンクエリアメモリ112のデータ転送が実
現されることになる。図では、白丸が転送元を黒丸が転
送先を表わしている。
By the operation of the refresh cycle as described above, the data transfer of the link area memories 112 of different programmable controllers as shown in FIG. 6 is realized. In the figure, the white circles represent the transfer source and the black circles represent the transfer destination.

【0030】すなわち、1回目のリフレッシュサイクル
では、まず、親局(ST0)のリンクエリアメモリ111
の管理エリア1112のページ番号と高速エリア113の
親局に割り当てられている領域のデータと低速エリア1
114のデータが各子局(ST1,ST2, ST3)のリンクエリ
アメモリ111に転送された後、各子局(ST1,ST2,ST3)
の高速エリア1113の、その子局に割り当てられてい
る領域のデータが他の全ての子局と親局のリンクエリア
メモリ111に転送される。
That is, in the first refresh cycle, first, the link area memory 111 of the master station (ST0).
Management area 1112 page number, high-speed area 113 area data assigned to the master station, and low-speed area 1
After the 114 data is transferred to the link area memory 111 of each slave station (ST1, ST2, ST3), each slave station (ST1, ST2, ST3)
The data of the area allocated to the slave station in the high speed area 1113 is transferred to the link area memories 111 of all other slave stations and the master station.

【0031】2回目のリフレッシュサイクルでは、ま
ず、親局(ST0)のリンクエリアメモリ111の管理エ
リア1112のページ番号と高速エリア113の親局に割
り当てられている領域のデータ各子局(ST1,ST2, ST3)
のリンクエリアメモリ111に転送された後、子局(ST
2,ST3)については、1回目と同様に高速エリア1113
の、その子局に割り当てられている領域のデータが他の
全ての子局と親局のリンクエリアメモリ111に転送さ
れるが。子局(ST1)については、リンクエリアメモリ
111の高速エリア113の子局(ST1)に割り当てられ
ている領域のデータに加えて、リンクエリアメモリ11
1の低速エリア1114のデータも他の子局(ST2, ST
3)と親局(ST0)のリンクエリアメモリ111に転送さ
れる。
In the second refresh cycle, first, the page numbers of the management area 1112 of the link area memory 111 of the master station (ST0) and the data of each area slave station (ST1, ST1, (ST2, ST3)
Of the slave station (ST
For 2, ST3), same as the first time, high speed area 1113
However, the data of the area allocated to the slave station is transferred to the link area memories 111 of all other slave stations and the master station. For the slave station (ST1), in addition to the data of the area allocated to the slave station (ST1) in the high speed area 113 of the link area memory 111, the link area memory 11
The data of the low speed area 1114 of 1 is also used for other slave stations (ST2, ST
3) and the link area memory 111 of the master station (ST0).

【0032】3回目のリフレッシュサイクルでは、ま
ず、親局(ST0)のリンクエリアメモリ111の管理エ
リア1112のページ番号と高速エリア113の親局に割
り当てられている領域のデータ各子局(ST1,ST2, ST3)
のリンクエリアメモリ111に転送された後、子局(ST
1,ST3)については、1回目と同様に高速エリア111
3の、その子局に割り当てられている領域のデータが他
の全ての子局と親局のリンクエリアメモリ111に転送
されるが。子局(ST2)については、リンクエリアメモ
リ111の高速エリア113の子局(ST2)に割り当てら
れている領域のデータに加えて、リンクエリアメモリ1
11の低速エリア1114のデータも他の子局(ST1 S
T3)と親局(ST0)のリンクエリアメモリ111に転送
される。
In the third refresh cycle, first, the page number of the management area 1112 of the link area memory 111 of the master station (ST0) and the data of each area slave station (ST1, ST1, (ST2, ST3)
Of the slave station (ST
For 1, ST3), same as the first time, high-speed area 111
The data of the area of No. 3 assigned to the slave station is transferred to the link area memories 111 of all other slave stations and the master station. Regarding the slave station (ST2), in addition to the data of the area allocated to the slave station (ST2) in the high speed area 113 of the link area memory 111, the link area memory 1
The data of 11 low-speed areas 1114 is also used for other slave stations (ST1 S
It is transferred to the link area memory 111 of the master station (ST0).

【0033】4回目のリフレッシュサイクルでは、ま
ず、親局(ST0)のリンクエリアメモリ111の管理エ
リア1112のページ番号と高速エリア113の親局に割
り当てられている領域のデータ各子局(ST1,ST2, ST3)
のリンクエリアメモリ111に転送された後、子局(ST
1,ST2)については、1回目と同様に高速エリア111
3の、その子局に割り当てられている領域のデータが他
の全ての子局と親局のリンクエリアメモリ111に転送
されるが。子局(ST3)については、リンクエリアメモ
リ111の高速エリア113の子局(ST3)に割り当てら
れている領域のデータに加えて、リンクエリアメモリ1
11の低速エリア1114のデータも他の子局(ST1 S
T2)と親局(ST0)のリンクエリアメモリ111に転送
される。
In the fourth refresh cycle, first, the page numbers of the management area 1112 of the link area memory 111 of the master station (ST0) and the data of each area slave station (ST1, ST1, (ST2, ST3)
Of the slave station (ST
For 1, ST2), same as the first time, high speed area 111
The data of the area of No. 3 assigned to the slave station is transferred to the link area memories 111 of all other slave stations and the master station. For the slave station (ST3), in addition to the data of the area allocated to the slave station (ST3) in the high-speed area 113 of the link area memory 111, the link area memory 1
The data of 11 low-speed areas 1114 is also used for other slave stations (ST1 S
It is transferred to the link area memory 111 of T2) and the master station (ST0).

【0034】以下、同様に1回目と同様のリフレッシュ
サイクル、2回目のリフレッシュサイクルと同様のリフ
レッシュサイクル、3回目のリフレッシュサイクルと同
様のリフレッシュサイクルといったようにリフレッシュ
サイクルが繰り返される。
Similarly, the refresh cycle is repeated like the first refresh cycle, the second refresh cycle, the same refresh cycle, the third refresh cycle, and the like.

【0035】さて、図6より理解されるように、本実施
例では、各プログラマブルコントローのリンクエリアメ
モリ111の高速エリア113の自プログラマブルコン
トローラに割り当てられた領域のデータは、従来のリン
クデータ機能による場合と同様に、毎リフレッシュサイ
クル毎に、他の全てのプログラマブルコントローラのリ
ンクエリアメモリ113に複写される。一方、低速エリ
ア1114のデータはプログラマブルコントローラ数分
のリフレッシュサイクル毎に一度(本実施例えでは4リ
フレッシュサイクル毎に一度だけ、他の全てのプログラ
マブルコントローラのリンクエリアメモリ113に複写
される。したがい、本実施例によれば、CPU101は、リン
ク部110が提供する以上のようなリンクデータ機能を利
用して、高速に他のプログラマブルコントローラに転送
したいデータについては高速エリア1113の自プログ
ラマブルコントローラに割り当てられている領域に書き
込むにことにより高速に転送し、高速性は必要ないがデ
ータ量が大きいデータについては低速エリア1114に
書き込むことにより、まとめて転送することができるよ
うになる。また、低速エリア111は、あるときはリン
クデータ機能を利用して送信するデータの格納用に、あ
るときは特定の他のプログラマブルコントローラからリ
ンクデータ機能を利用して受信するデータの格納用に、
時分割に共用されるので、各プログラマブルコントロー
ラのリンクエリアメモリ111に、本実施例に係る低速
エリア111と同容量の、リンクデータ機能を利用して
送信するデータの格納用の領域と、データ機能を利用し
て受信するデータの格納用の他のプログラマブルコント
ローラ毎の領域を各々確保する場合に比べて、少ない容
量で大きなデータ量のデータをまとめて送受信すること
ができる。したがい、プラントなどの制御対象の協調制
御のために必要なデータや、緊急のデータについては、
高速エリア1113を用いたリンクデータ機能を利用し
て高速に各プログラマブルコントローラ間で交換し、日
々の稼働状況の統計データなど、データ量は大きいが高
速に交換したり集約したりする必要のないデータについ
ては低速エリアを用いたリンクデータ機能を利用して、
まとめて転送することができる。
As will be understood from FIG. 6, in this embodiment, the data of the area assigned to the own programmable controller in the high-speed area 113 of the link area memory 111 of each programmable controller depends on the conventional link data function. Similar to the case, it is copied to the link area memories 113 of all other programmable controllers every refresh cycle. On the other hand, the data in the low-speed area 1114 is copied once in every refresh cycle corresponding to the number of programmable controllers (in this embodiment, only once in every four refresh cycles, it is copied to the link area memories 113 of all other programmable controllers. According to the embodiment, the CPU 101 uses the link data function provided by the link unit 110 as described above and allocates to the own programmable controller in the high speed area 1113 the data to be transferred to another programmable controller at high speed. Data can be transferred at a high speed by writing in an area in which data is stored, and data that does not require high speed can be transferred collectively by writing in a low speed area 1114. , Sometimes link day To store the data to be transmitted by using the function, to store the data received is time to use the link data function from certain other programmable controller,
Since it is shared by time division, the area for storing data to be transmitted using the link data function, which has the same capacity as the low speed area 111 according to the present embodiment, is stored in the link area memory 111 of each programmable controller. It is possible to collectively transmit and receive a large amount of data with a small capacity, as compared with a case where each area for each programmable controller for storing the data to be received is secured by using the. Therefore, regarding the data required for coordinated control of controlled objects such as plants and emergency data,
Data that is exchanged at high speed between the programmable controllers using the link data function using the high speed area 1113, and has a large amount of data such as daily operation status statistical data, but does not need to be exchanged or aggregated at high speed. For, please use the link data function using the low speed area,
You can transfer them all at once.

【0036】以下、以上説明してきたリンクデータ処理
を実現するリンク制御プロセッサ112とCPU100の
処理について詳細に説明する。
The processes of the link control processor 112 and the CPU 100 that realize the link data process described above will be described in detail below.

【0037】まず、親局および各子局のプログラマブル
コントローラ1のCPU101が行う処理について説明す
る。
First, the processing performed by the CPU 101 of the programmable controller 1 of the master station and each slave station will be described.

【0038】まず、設置時などの初期処理においては、
CPU101によって次のような処理が行われる。すなわ
ち、管理エリア1112の全ページ数53には、低速エ
リア1114に対応付けたページ数が初期処理において
CPU101によって書き込まれる。また、各プログラマ
ブルコントローラにおいて自局に割り当てたページのペ
ージ番号や時局に割り当てる高速エリア1113の領域
や他局のプログラマブルコントローラの数やアドレスな
ども、初期処理においてCPU101からリンク制御プロ
セッサ112に管理エリア1111を用いて伝えられ
る。
First, in initial processing such as installation,
The CPU 101 performs the following processing. That is, the total number of pages 53 in the management area 1112 is the number of pages associated with the low speed area 1114 in the initial processing.
Written by the CPU 101. In addition, the page number of the page assigned to its own station in each programmable controller, the area of the high-speed area 1113 assigned to the time station, the number and addresses of programmable controllers of other stations, and the like are managed areas from the CPU 101 to the link control processor 112 in the initial processing. It is transmitted using 1111.

【0039】これ以降は、CPU101は、リンクデータ
機能に関して図7に示す処理を行う。
After that, the CPU 101 performs the processing shown in FIG. 7 regarding the link data function.

【0040】すなわち、CPU101は、定期的に図7に
示す処理を実行する。
That is, the CPU 101 periodically executes the processing shown in FIG.

【0041】この処理では、まず、管理エリア112の
転送要求フラグ50がセットされているか否かを調べ
(ステップ701)、セットされていなければ処理を終了
する。一方、セットされていれば、まず、高速エリア1
13の自局に割り当てられている領域に、当該領域に対
応するメインメモリ102のページ1中の領域のデータ
を転送し、高速エリア113の自局に割り当てられてい
ない各領域のデータを、対応するメインメモリ102の
ページ1中の各領域に転送する(ステップ703)。そ
して、次に、管理エリア112のページ番号52が自局
に割り当てられているページ番号か否かを調べ(ステッ
プ703)、自局に割り当てられているページのページ
番号であれば、メインメモリ102の、この自局に割り
当てられているページを低速エリア114に転送する
(ステップ704)。一方、ページ番号50が自局に割
り当てられているページのページ番号でなければ、低速
エリア1114のページ番号が示すメインメモリ102のペ
ージに転送する(ステップ705)。
In this process, first, it is checked whether or not the transfer request flag 50 in the management area 112 is set (step 701), and if it is not set, the process ends. On the other hand, if it is set, first, high speed area 1
The data of the area in page 1 of the main memory 102 corresponding to the area is transferred to the area assigned to the own station of 13 and the data of each area not assigned to the own station of the high speed area 113 is handled. The data is transferred to each area of page 1 of the main memory 102 (step 703). Then, it is checked whether or not the page number 52 of the management area 112 is the page number assigned to the own station (step 703), and if it is the page number of the page assigned to the own station, the main memory 102 is displayed. , The page allocated to this own station is transferred to the low speed area 114.
(Step 704). On the other hand, if the page number 50 is not the page number of the page assigned to the own station, the page number is transferred to the page of the main memory 102 indicated by the page number of the low speed area 1114 (step 705).

【0042】そして、最後に管理エリア1112の転送
完了フラグ51をセットし、処理を終了する。
Finally, the transfer completion flag 51 in the management area 1112 is set, and the processing is ended.

【0043】以上、CPU101が、リンクデータ機能に
関して行う処理について説明した。
The processing performed by the CPU 101 regarding the link data function has been described above.

【0044】次に、親局のプログラマブルコントローラ
(ST0)のリンク制御プロセッサ112が行う処理につい
て説明する。
Next, the processing performed by the link control processor 112 of the master station programmable controller (ST0) will be described.

【0045】図8に、この処理の処理手順を示す。この
処理では、まず、パラメータNを、低速エリアに割り当
てた複数のページの内の先頭のページ番号(本実施例で
は2)にセットする(ステップ801)。そして、このN
の値を管理エリア1112のページ番号52にセットす
る(ステップ803)。そして、管理エリア1112の
転送要求フラグ50をセットし(ステップ803)、転
送完了フラグ51がCPU101によってセットされるの
待つ(ステップ804)。そして、セットされたなら
ば、転送要求フラグ50、転送完了フラグ51をリセッ
トし(ステップ805)、管理エリア1112のページ
番号52、すなわち、Nの値と、高速エリア1113の
自局に割り当てられた領域のデータを送信する。また、
このとき、Nの値が自局に割り当てられているページの
ページ番号であれば、低速エリア1114のデータも併
せて送信する(ステップ806)。
FIG. 8 shows a processing procedure of this processing. In this process, first, the parameter N is set to the top page number (2 in this embodiment) of the plurality of pages assigned to the low speed area (step 801). And this N
Is set to the page number 52 of the management area 1112 (step 803). Then, the transfer request flag 50 in the management area 1112 is set (step 803), and the CPU 101 waits for the transfer completion flag 51 to be set (step 804). Then, if set, the transfer request flag 50 and the transfer completion flag 51 are reset (step 805), and the page number 52 of the management area 1112, that is, the value of N and the own station in the high speed area 1113 are assigned. Send area data. Also,
At this time, if the value of N is the page number of the page assigned to the own station, the data of the low speed area 1114 is also transmitted (step 806).

【0046】そして、各子局に順番(ステップ812)
にポーリングコマンドによって送信権を与え(ステップ
807)、子局から受信したフレームから通信制御部1
13が取り込んだデータをリンクエリアメモリ111に
前述したように格納する(ステップ808)。そして、
管理エリア1112の転送要求フラグ50をセットし
(ステップ809)、転送完了フラグ51がCPU101に
よってセットされるの待つ(ステップ810)。そし
て、セットされたならば、転送要求フラグ50、転送完
了フラグ51をリセットする(ステップ811)。
Then, turn to each slave station (step 812)
A transmission right is given to the communication control unit 1 by a polling command (step 807).
The data taken in by 13 is stored in the link area memory 111 as described above (step 808). And
Set the transfer request flag 50 in the management area 1112
(Step 809), wait for the transfer completion flag 51 to be set by the CPU 101 (step 810). If set, the transfer request flag 50 and the transfer completion flag 51 are reset (step 811).

【0047】そして、全ての子局について処理したら
(ステップ813)、パラメータNを1増加させる(ステ
ップ814)。そして、低速エリア1114に対応付け
られた次のページについて以上に説明した送信と受信
(ステップ802-ステップ813)の処理を行う。そ
して、管理エリア1112の全ページ数53によって特
定される数分のページについて処理が終了したならば
(ステップ815)、ステップ801に戻り、Nを低速エ
リア1114に対応付けられた最初のページのページ番
号に戻し、初めから処理を繰り返す。
When all the slave stations are processed
The parameter N is incremented by 1 (step 813) (step 814). Then, the transmission and reception (steps 802 to 813) described above are performed for the next page associated with the low speed area 1114. If the processing is completed for the number of pages specified by the total number of pages 53 in the management area 1112,
(Step 815) Then, the process returns to step 801, N is returned to the page number of the first page associated with the low speed area 1114, and the process is repeated from the beginning.

【0048】次に、各子局のプログラマブルコントロー
ラ1(ST1ーST3)のリンク制御プロセッサが行う処
理について説明する。
Next, the processing performed by the link control processor of the programmable controller 1 (ST1-ST3) of each slave station will be described.

【0049】図9に、この処理の処理手順を示す。FIG. 9 shows a processing procedure of this processing.

【0050】図示するように、この処理では、通信制御
部113が受信したデータを取り込むと(ステップ90
1)、受信したデータがポーリングコマンドか否かを判
定し(ステップ902)、ポーリングコマンドでなけれ
ば、親局(ST0)から受信したデータか否かを判定し、
親局からのデータであれば、当該データに含まれるペー
ジ番号を管理エリア1112のページ番号52にセット
し(ステップ904)、その他の通信制御部113が取
り込んだデータについてはデータをリンクエリアメモリ
111に前述したように格納する。また、ステップ90
3において親局からのデータではないと判定されたなら
ば、単に、通信制御部113が取り込んだデータをデー
タをリンクエリアメモリ111に前述したように格納す
る。そして、管理エリア1112の転送要求フラグ50
をセットし(ステップ910)、転送完了フラグ51がC
PU101によってセットされるの待つ(ステップ91
1)。そして、セットされたならば、転送要求フラグ5
0、転送完了フラグ51をリセットし(ステップ912)
する。
As shown in the figure, in this process, when the communication control unit 113 takes in the received data (step 90).
1), determine whether the received data is a polling command (step 902), and if it is not a polling command, determine whether it is data received from the master station (ST0),
If it is the data from the master station, the page number included in the data is set to the page number 52 of the management area 1112 (step 904), and the data fetched by the other communication control unit 113 is the link area memory 111. Store as described above. Also, step 90
If it is determined in 3 that the data is not the data from the master station, the data taken in by the communication control unit 113 is simply stored in the link area memory 111 as described above. Then, the transfer request flag 50 of the management area 1112
Is set (step 910), and the transfer completion flag 51 is set to C.
Wait for it to be set by PU 101 (step 91
1). Then, if set, the transfer request flag 5
0, reset the transfer completion flag 51 (step 912)
To do.

【0051】一方、ステップ902においてデータがポ
ーリングコマンドであると判定された場合には、ポーリ
ングコマンドが自局に送信権を与えるポーリングコマン
ドであるか否かを判定し(ステップ905)、自局に送
信権を与えるポーリングコマンドであれば、管理エリア
1112の転送要求フラグ50をセットし(ステップ9
06)、転送完了フラグ51がCPU101によってセッ
トされるの待つ(ステップ907)。そして、セットさ
れたならば、転送要求フラグ50、転送完了フラグ51
をリセットし(ステップ908)、高速エリア1113の自
局に割り当てられた領域のデータをブロードキャスト送
信する。また、このとき、管理エリア1112のページ
番号52の値が自局に割り当てられているページのペー
ジ番号であれば、低速エリア1114のデータも併せて
ブロードキャスト送信する(ステップ909)。
On the other hand, when it is determined in step 902 that the data is the polling command, it is determined whether the polling command is a polling command that gives the transmission right to the local station (step 905), and the local station is notified. If the polling command gives a transmission right, the transfer request flag 50 in the management area 1112 is set (step 9
06), and waits for the transfer completion flag 51 to be set by the CPU 101 (step 907). Then, if set, the transfer request flag 50 and the transfer completion flag 51
Is reset (step 908), and the data of the area allocated to the own station in the high speed area 1113 is broadcasted. At this time, if the value of the page number 52 of the management area 1112 is the page number of the page assigned to the own station, the data of the low speed area 1114 is also broadcast (step 909).

【0052】各子局のリンク制御プロセッサは、以上の
処理を通信制御部113が受信データを、その送信先ア
ドレスに応じて取り込む度に実行する。
The link control processor of each slave station executes the above processing every time the communication control unit 113 fetches the received data according to the destination address thereof.

【0053】以上のように、図8、図9のリンク制御プ
ロセッサ112の処理において、リンク制御プロセッサ
112は、自局からのリンクエリメモリ111のデータ
の送信前および他局からの受信データをリンクエリアデ
ータメモリに取り込んだ際に、CPU101に対して管理
エリア1112転送要求フラグ50を介して、メインメ
モリ102とリンクエリアメモリ111との間のデータ
転送を要求する。そして、CPU101は、図7の処理に
示したように、この転送要求に応じて、リンクエリアメ
モリ111に他のプログラマブルコントローラ1から送
られたデータをメインメモリ102に取り込むと共に、
送信するデータをリンクエリアメモリ111に書き込
む。また、この際、低速エリア1114に関しては、親
局が管理、制御するページ番号に応じて、メインメモリ
102からリンクエリアメモリ111への転送行うか、
リンクエリアメモリ111からメインメモリ102への
転送を行うかが制御される。また、同様に、親局が管
理、制御するページ番号に応じて、低速エリア1114
に受信データを取り込むか制御される。したがい、低速
エリア1114を用いた各プログラマブルコントローラ
1間のデータ転送に関して矛盾が生じることはない。
As described above, in the processing of the link control processor 112 of FIG. 8 and FIG. 9, the link control processor 112 links the data of the link query memory 111 from its own station before the transmission of the data and the data of the reception from other stations. When fetched in the area data memory, the CPU 101 is requested to transfer data between the main memory 102 and the link area memory 111 via the management area 1112 transfer request flag 50. Then, as shown in the processing of FIG. 7, the CPU 101 loads the data sent from the other programmable controller 1 into the link area memory 111 into the main memory 102 in response to this transfer request, and
The data to be transmitted is written in the link area memory 111. At this time, the low speed area 1114 is transferred from the main memory 102 to the link area memory 111 according to the page number managed and controlled by the master station.
Whether to transfer from the link area memory 111 to the main memory 102 is controlled. Similarly, according to the page number managed and controlled by the master station, the low speed area 1114
It is controlled whether or not to receive the received data. Therefore, there is no inconsistency in data transfer between the programmable controllers 1 using the low speed area 1114.

【0054】以上、本発明の一実施例について説明し
た。
The embodiment of the present invention has been described above.

【0055】なお、以上の説明では、図7のCPU101
の処理は、定期的に行うものとして説明したが、リンク
制御プロセッサ102が、転送要求フラグ50のセット
と共にCPU101に割り込みを要求し、CPU101がこの
割り込み要求に応じて図7の処理を実行するようにして
もよい。また、この図7の処理では、転送要求フラグ5
0がセットされている場合には、常に、メインメモリ1
02からリンクエリアメモリ111への転送と、リンク
エリアメモリ111からメインメモリ102への転送と
の双方を行ったが、他局へデータを送信するときに行わ
れる転送要求フラグのセット(図8ステップ803、図
9ステップ906)に応答した処理おいてはメインメモ
リ102からリンクエリアメモリ111への転送のみを
行い、他局からのデータをリンクエリアメモリに取り込
んだときに行われる転送要求フラグのセット(図8ステ
ップ809、図9ステップ910)に応答した処理おい
てはリンクエリアメモリ111からメインメモリ102
からへの転送のみを行うようにしてもよい。この切り替
えは、管理エリア1112に書込を要求するのかを指定
するフラグを設け、リンク制御プロセッサ112が転送
要求フラグと共に、このフラグの値を制御するように
し、CPU101が、このフラグに応じて処理を切り替え
るようにすればよい
In the above description, the CPU 101 of FIG.
The processing of No. is described as being performed periodically, but the link control processor 102 requests the CPU 101 to interrupt along with the setting of the transfer request flag 50, and the CPU 101 executes the processing of FIG. 7 in response to this interrupt request. You may Further, in the processing of FIG. 7, the transfer request flag 5
When 0 is set, the main memory 1 is always
02 from the link area memory 111 to the link area memory 111 and from the link area memory 111 to the main memory 102 are both performed, but the transfer request flag is set when the data is transmitted to another station (see FIG. 8 step). 803, step 906 in FIG. 9), only the transfer from the main memory 102 to the link area memory 111 is performed, and the transfer request flag is set when the data from another station is fetched into the link area memory. In the processing in response to (step 809 in FIG. 8 and step 910 in FIG. 9), the link area memory 111 to the main memory 102
Alternatively, only the transfer from to may be performed. For this switching, a flag designating whether to request writing is provided in the management area 1112, the link control processor 112 controls the value of this flag together with the transfer request flag, and the CPU 101 performs processing in accordance with this flag. Should be switched

【0056】[0056]

【発明の効果】以上のように、本発明によれば、リンク
エリアの容量を、さほど増大することなしに、リンクデ
ータ機能を利用して、まとめて送受できるデータのデー
タ量を増大することができる。
As described above, according to the present invention, it is possible to increase the amount of data that can be collectively transmitted / received by using the link data function without increasing the capacity of the link area. it can.

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

【図1】制御システムの構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a control system.

【図2】伝送されるフレームの構成を示す図である。FIG. 2 is a diagram showing a structure of a frame to be transmitted.

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

【図4】メインメモリとリンクエリアメモリの構成と対
応を示す図である。
FIG. 4 is a diagram showing a configuration and correspondence of a main memory and a link area memory.

【図5】管理エリアの構成を示す図である。FIG. 5 is a diagram showing a configuration of a management area.

【図6】プログラマブルコントローラ間のデータ転送の
ようすを示す図である。
FIG. 6 is a diagram showing how data is transferred between programmable controllers.

【図7】プログラマブルコントローラのCPUが行う処理
の処理手順を示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure of processing performed by the CPU of the programmable controller.

【図8】親局のプログラマブルコントローラのリンク制
御プロセッサの行う処理の処理手順を示すフローチャー
トである。
FIG. 8 is a flowchart showing a processing procedure of processing performed by the link control processor of the programmable controller of the master station.

【図9】子局のプログラマブルコントローラのリンク制
御プロセッサの行う処理の処理手順を示すフローチャー
トである。
FIG. 9 is a flowchart showing a processing procedure of processing performed by a link control processor of a programmable controller of a slave station.

【図10】従来の制御システムを示す図である。FIG. 10 is a diagram showing a conventional control system.

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

1 プログラマブルコントローラ 2 伝送路 3 制御対象システム 102 メインメモリ 111 リンクエリアメモリ 1111 管理エリア 1112 高速エリア 1114 低速エリア 1 programmable controller 2 transmission lines 3 controlled system 102 main memory 111 Link area memory 1111 Management area 1112 high speed area 1114 low speed area

───────────────────────────────────────────────────── フロントページの続き (72)発明者 伊東 厚 新潟県北蒲原郡中条町大字富岡46番地1 株式会社日立製作所 産業機器事業部 内 (72)発明者 須永 勉 新潟県北蒲原郡中条町大字富岡46番地1 株式会社日立製作所 産業機器事業部 内 (72)発明者 會田 憲弘 新潟県北蒲原郡中条町大字富岡46番地1 株式会社日立製作所 産業機器事業部 内 (56)参考文献 特開 昭59−205640(JP,A) 特開 昭57−45606(JP,A) 特開 平7−13482(JP,A) 実開 平3−59755(JP,U) (58)調査した分野(Int.Cl.7,DB名) G05B 19/00 - 19/16 G06F 15/16 - 15/177 682 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Atsushi Ito 46 Tomioka, Nakajo-machi, Kitakanbara-gun, Niigata Prefecture 1 1 Industrial equipment division, Hitachi, Ltd. (72) Tsutomu Sunaga 46 Tomioka, Nakajo-machi, Kitakanbara-gun, Niigata Prefecture Address 1 Hitachi Industrial Co., Ltd. Industrial Equipment Division (72) Inventor Norihiro Aida 46 Tomioka, Nakajo-cho, Kitakanbara-gun, Niigata Prefecture Address 1 Hitachi Industrial Co., Ltd. Industrial Equipment Division (56) Reference JP-A-59-205640 ( JP, A) JP 57-45606 (JP, A) JP 7-13482 (JP, A) Actually open 3-59755 (JP, U) (58) Fields investigated (Int.Cl. 7 , DB name) G05B 19/00-19/16 G06F 15/16-15/177 682

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のデータ処理装置がネットワークを介
して接続されたデータ処理システムであって、 前記各データ処理装置は、データを処理するプロセッサ
部と、前記プロセッサがアクセス可能なリンクエリアメ
モリと、当該リンクエリアメモリと他のデータ処理装置
との間の前記ネットワークを介したデータの転送を制御
するリンク制御部とを備え、 前記リンクエリアメモリの記憶エリアは、前記複数のデ
ータ処理装置の各々に排他的に割り当てられた複数の領
域よりなる高速エリアと、1以上の低速エリアとを含
み、 前記リンク制御部は、自データ処理装置に割り当てられ
た前記高速エリアの領域のデータの他の全てのデータ処
理装置への転送と、他のデータ処理装置の高速エリアの
領域から転送されたデータの当該データの送信元のデー
タ処理装置に割り当てられた前記高速エリアの領域への
格納と、前記低速エリアメモリの一つのデータ処理装置
への割当とを行うと共に、前記低速エリアに自データ処
理装置へ割り当てた場合には低速エリアに格納されてい
るデータの他の全てのデータ処理装置への転送を行い、
前記低速エリアを他のデータ処理装置へ割り当てた場合
には、当該低速エリアを割り当てた他のデータ処理装置
の低速エリアより転送されたデータの低速エリアへの格
納を行い、 各データ処理装置のリンク制御部は、相互に協調して、
全てのデータ処理装置において前記低速エリアが一時に
同じデータ処理装置にのみ割り当てられると共に、前記
低速エリアに割り当てられる前記データ処理装置が順次
交代するように自データ処理装置の低速エリアの前記割
当を行うことを特徴とするデータ処理システム。
1. A data processing system in which a plurality of data processing devices are connected via a network, wherein each of the data processing devices includes a processor unit for processing data, and a link area memory accessible by the processor. A link control unit that controls transfer of data via the network between the link area memory and another data processing device, wherein a storage area of the link area memory is one of the plurality of data processing devices. Includes a high-speed area consisting of a plurality of areas exclusively allocated to each other, and one or more low-speed areas, wherein the link control unit includes all other data of the area of the high-speed area allocated to the own data processing device. Other data processing device and the source of the data transferred from the high-speed area of another data processing device Storing in the area of the high speed area allocated to the data processing device and allocation of the low speed area memory to one data processing device, and low speed when the low speed area is allocated to the own data processing device Transfers the data stored in the area to all other data processing devices,
When the low-speed area is assigned to another data processing device, the data transferred from the low-speed area of the other data processing device to which the low-speed area is assigned is stored in the low-speed area, and the link of each data processing device is performed. The control units cooperate with each other,
In all the data processing devices, the low-speed area is assigned only to the same data processing device at a time, and the low-speed area of the own data processing device is assigned so that the data processing devices assigned to the low-speed area are sequentially replaced. A data processing system characterized by the above.
【請求項2】請求項1記載のデータ処理システムであっ
て、 データ処理装置は、制御対象システムを各々制御する複
数のプログラマブルコントローラであって、 各プログラマブルコントローラは、前記プロセッサがデ
ータ処理に利用するメインメモリを備え、 前記メモリの記憶エリアは、前記複数のプログラマブル
コントローラの各々に排他的に割り当てられた複数の領
域よりなる共用ページと、前記複数のプログラマブルコ
ントローラの各々に排他的に割り当てられた複数の専用
ページとを含み、 前記プロセッサは、前記共用ページの自プログラマブル
コントローラに割り当てられた領域から前記自プログラ
マブルコントローラに割り当てられた高速エリアの領域
にデータを転送し、他のプログラマブルコントローラに
割り当てられた高速エリアの各領域から前記共用ページ
の当該他のプログラマブルコントローラに割り当てられ
た領域にデータを転送し、前記低速エリアが自プログラ
マブルコントローラへ割り当てられている場合にプログ
ラマブルコントローラに割り当てられた専用ページから
低速エリアにデータを転送し、前記低速エリアが他のプ
ログラマブルコントローラへ割り当られている場合に
は、当該他のプログラマブルコントローラへ割り当られ
ている専用ページに低速エリアからデータを転送するこ
とを特徴とするデータ処理システム。
2. The data processing system according to claim 1, wherein the data processing device is a plurality of programmable controllers that respectively control the controlled system, and each programmable controller is used by the processor for data processing. A main memory is provided, and a storage area of the memory is a shared page including a plurality of areas exclusively allocated to each of the plurality of programmable controllers, and a plurality of shared pages exclusively allocated to each of the plurality of programmable controllers. And a dedicated page of the shared page, the processor transfers data from an area assigned to the own programmable controller of the shared page to an area of a high-speed area assigned to the own programmable controller, and is assigned to another programmable controller. High Data is transferred from each area of the high speed area to the area of the shared page allocated to the other programmable controller, and when the low speed area is allocated to the own programmable controller, the low speed is transferred from the dedicated page allocated to the programmable controller. Data is transferred to an area, and when the low speed area is assigned to another programmable controller, the data is transferred from the low speed area to a dedicated page assigned to the other programmable controller. Data processing system.
【請求項3】ネットワークを介して他の1以上のプログ
ラマブルコントローラと接続されるプログラマブルコン
トローラであって、 データを処理するプロセッサと、前記プロセッサがアク
セス可能なリンクエリアメモリと、当該リンクエリアメ
モリと他のプログラマブルコントローラとの間の前記ネ
ットワークを介したデータの転送を制御するリンク制御
部と、前記リンクエリアメモリの記憶エリアを、前記複
数のプログラマブルコントローラの各々に排他的に割り
当てられる複数の領域よりなる高速エリアと、低速エリ
アとに分割する手段とを備え、 前記リンク制御部は、 自プログラマブルコントローラに割り当てられた前記高
速エリアの領域のデータのネットワークを介して接続し
た他の全てのプログラマブルコントローラへの転送と、
ネットワークを介して接続した他のプログラマブルコン
トローラの高速エリアの領域から転送されたデータの当
該データの送信元のプログラマブルコントローラに割り
当てられた前記高速エリアの領域への格納とを行う高速
リンクデータ手段と、 前記低速エリアメモリの一つのプログラマブルコントロ
ーラへの割当を行う割当手段と、 前記低速エリアに自プログラマブルコントローラへ割り
当てた場合には低速エリアのデータの他の全てのプログ
ラマブルコントローラへの転送を行い、前記低速エリア
を他のプログラマブルコントローラへ割り当てた場合に
は、当該低速エリアを割り当てた他のプログラマブルコ
ントローラの低速エリアより転送されたのデータの低速
エリアへの格納を行う低速リンクデータ手段とを備え、 前記割当手段は、ネットワークを介して接続した他のプ
ログラマブルコントローラのリンク制御部と協調して、
全てのプログラマブルコントローラにおいて前記低速エ
リアが一時に同じプログラマブルコントローラにのみ割
り当てられると共に、前記低速エリアに割り当てられる
前記プログラマブルコントローラが順次交代するように
自プログラマブルコントローラの低速エリアの前記割当
を行うことを特徴とするプログラマブルコントローラ。
3. A programmable controller connected to one or more other programmable controllers via a network, the processor processing data, a link area memory accessible by the processor, the link area memory, and the like. A link controller for controlling data transfer between the programmable controller and the programmable controller, and a storage area of the link area memory, the plurality of areas being exclusively assigned to each of the plurality of programmable controllers. The link control unit includes a means for dividing into a high-speed area and a low-speed area, and the link control unit is connected to all other programmable controllers connected via the network of the data of the area of the high-speed area assigned to the own programmable controller. Transfer and
High-speed link data means for storing data transferred from a high-speed area region of another programmable controller connected via a network in the high-speed area region assigned to the programmable controller that is the transmission source of the data, Allocating means for allocating the low-speed area memory to one programmable controller, and when allocating the low-speed area to its own programmable controller, transfers the data of the low-speed area to all other programmable controllers, When the area is assigned to another programmable controller, the low-speed link data means for storing the data transferred from the low-speed area of the other programmable controller to which the low-speed area is assigned in the low-speed area is provided. Means In cooperation with the link controller of another programmable controller which is connected via a network,
In all programmable controllers, the low-speed area is assigned only to the same programmable controller at a time, and the low-speed area of the own programmable controller is assigned so that the programmable controllers assigned to the low-speed area are sequentially replaced. Programmable controller.
JP22823995A 1995-09-05 1995-09-05 Data processing system and programmable controller Expired - Fee Related JP3364557B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22823995A JP3364557B2 (en) 1995-09-05 1995-09-05 Data processing system and programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22823995A JP3364557B2 (en) 1995-09-05 1995-09-05 Data processing system and programmable controller

Publications (2)

Publication Number Publication Date
JPH0973305A JPH0973305A (en) 1997-03-18
JP3364557B2 true JP3364557B2 (en) 2003-01-08

Family

ID=16873345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22823995A Expired - Fee Related JP3364557B2 (en) 1995-09-05 1995-09-05 Data processing system and programmable controller

Country Status (1)

Country Link
JP (1) JP3364557B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171833A (en) * 2004-12-13 2006-06-29 Fuji Electric Fa Components & Systems Co Ltd PLC data exchange system and control method of PLC data exchange system
JP5082801B2 (en) * 2007-11-27 2012-11-28 三菱電機株式会社 Elevator control device
CN107407921A (en) * 2015-03-11 2017-11-28 三菱电机株式会社 Control system

Also Published As

Publication number Publication date
JPH0973305A (en) 1997-03-18

Similar Documents

Publication Publication Date Title
CN100412848C (en) Computer architecture and software cells for broadband networks
KR890006019A (en) Network system using token passing bus method
JPH06295336A (en) Video display device
JPS63280365A (en) Control system for direct memory access order contention
JP3364557B2 (en) Data processing system and programmable controller
JP6900690B2 (en) Control device
US5528768A (en) Multiprocessor communication system having a paritioned main memory where individual processors write to exclusive portions of the main memory and read from the entire main memory
JP6817827B2 (en) Accelerator processing management device, host device, accelerator processing execution system, method and program
CN1331096C (en) Data-processing arrangement for processing different types of data
JP2006171833A (en) PLC data exchange system and control method of PLC data exchange system
JP2611388B2 (en) Data processing device
JP3327900B2 (en) Data processing device
JPH0471060A (en) Semiconductor integrated circuit
EP4202767A1 (en) Neuron core synchronization
KR0179882B1 (en) PLC's communication parameter setting method and data transmission / reception method
JP2715849B2 (en) Communication device for display device
JP2724373B2 (en) Distributed controller
JP2730189B2 (en) Distributed controller
JP3360487B2 (en) Method of data transfer between programmable controllers
JPH06161521A (en) Remote i/o transmission system of programmable controller
JPH07319823A (en) Inter-processor communication system
JP2002196975A (en) Data processing device
JP2775630B2 (en) Link system for programmable controller
JPS648501B2 (en)
JPS5955507A (en) Control system of parallel processing type programmable controller

Legal Events

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

Free format text: PAYMENT UNTIL: 20071025

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081025

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091025

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091025

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101025

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111025

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121025

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121025

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131025

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees