JPH07210494A - Periodic communication processor - Google Patents

Periodic communication processor

Info

Publication number
JPH07210494A
JPH07210494A JP6004686A JP468694A JPH07210494A JP H07210494 A JPH07210494 A JP H07210494A JP 6004686 A JP6004686 A JP 6004686A JP 468694 A JP468694 A JP 468694A JP H07210494 A JPH07210494 A JP H07210494A
Authority
JP
Japan
Prior art keywords
processing
unit
cyclic
periodic
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP6004686A
Other languages
Japanese (ja)
Other versions
JP3397425B2 (en
Inventor
Hiroo Nogi
啓生 野木
Masahiro Ashi
賢浩 芦
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
Original Assignee
Hitachi 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 filed Critical Hitachi Ltd
Priority to JP00468694A priority Critical patent/JP3397425B2/en
Publication of JPH07210494A publication Critical patent/JPH07210494A/en
Application granted granted Critical
Publication of JP3397425B2 publication Critical patent/JP3397425B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To reduce the load of CPU accompanying the execution of a periodic processing. CONSTITUTION:A scanning part 107 requires a meditation part 122 to connect a buss in accordance with the periodic processing start-up request of a periodic counter 101. In accordance with request, the meditation part 122 registers the scanning part 107 making the pertient request in a standby list 112. Besides, the meditation part 122 specifies one of the scanning parts registered in the standby list 112, instructs a selector 121 to connect this and a bus communication control part 123, and informs the scanning part 107 of the connection of the bus. In accordance with this bus connection information, the scanning part 107 reads out periodic processing information registered in a cyclic table 111 to transfer to the bus communication control part 123. The bus communication control part executes the periodic processing based on received periodic processing information.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、バスを介して、一以上
の対象にデータを転送する処理を周期的に起動するシス
テムの周期通信処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a periodic communication processing device for a system which periodically activates a process of transferring data to one or more objects via a bus.

【0002】[0002]

【従来の技術】一以上の対象にデータを転送する処理を
周期的に起動するシステムの例を図2に示す。このシス
テムでは、一以上のデータ転送対象3が通信用バス2を
介して、中央処理装置(CPU)102を有するデータ
処理部1に接続されており、データ処理部1は、周期的
にデータ転送処理を実行する。
2. Description of the Related Art FIG. 2 shows an example of a system in which a process of transferring data to one or more targets is periodically activated. In this system, one or more data transfer targets 3 are connected via a communication bus 2 to a data processing unit 1 having a central processing unit (CPU) 102, and the data processing unit 1 periodically transfers data. Execute the process.

【0003】CPUを介さずにバスの制御を行う方法と
しては、「68000マイクロコンピュータ」(喜田祐三他
著、丸善(株)発行、120〜127頁」に示されているDMAC
(Direct Memory Access Contoller)に用いられている
DMA方式がある。以下に、DMA方式の説明を行う。DMA方
式はCPUを介さずにメモリとメモリの間のデータ転送
を直接行う方式である。この間、CPUは通信用バスか
ら切り離された状態にあり、DMACのようなDMA制御用I
Cがバスの使用権を持ち、データの転送を制御する。DM
A方式においてはCPUが先ず、DMAのコントローラであ
るDMACに対し、アクセスすべきメモリアドレスと、アク
セスするデータサイズを設定し、DMAデータ転送要求を
行う。これを受け、DMACは以後、指定されたデータサイ
ズのデータ転送が完了するまでバスの使用権を持ち、デ
ータの転送を行う。この間CPUは通信用バスから切り
離されており、データ転送以外の処理を行うことが出来
る。しかし、このDMA方式においては、大量のデータを
転送している間だけ、CPUリソースを開放する用しか
なさず、周期的に反復してデータ転送を行う場合も、そ
のつど、CPUからDMA転送要求をDMACに対し設定しな
くてはならない。また、転送後のデータはCPUにより
処理される。さらに、複数の周期処理があり、複数の処
理起動要求が同時に発生した場合はCPUが調停を行
う。
As a method of controlling the bus without going through the CPU, the DMAC shown in "68000 Microcomputer" (edited by Yuzo Kida et al., Published by Maruzen Co., Ltd., pages 120-127).
(Direct Memory Access Controller)
There is a DMA method. The DMA method will be described below. The DMA method is a method of directly transferring data between memories without going through the CPU. During this time, the CPU is in a state of being disconnected from the communication bus, and DMA control I such as DMAC is used.
C has the right to use the bus and controls the data transfer. DM
In the A method, the CPU first sets a memory address to be accessed and a data size to be accessed, and makes a DMA data transfer request to the DMAC, which is a DMA controller. In response to this, the DMAC thereafter has the right to use the bus and transfers the data until the data transfer of the specified data size is completed. During this time, the CPU is disconnected from the communication bus and can perform processing other than data transfer. However, in this DMA method, the CPU resource is only released while a large amount of data is being transferred, and when the data transfer is repeated cyclically, the DMA transfer request is issued from the CPU each time. Must be set to the DMAC. Further, the data after the transfer is processed by the CPU. Further, there are a plurality of periodic processes, and when a plurality of process activation requests are simultaneously generated, the CPU arbitrates.

【0004】なお、ここで周期処理とは、ある定められ
た周期で繰り返して起動されるデータ転送処理をいう。
周期処理は、その実行形態により、恒常的に行なわれる
周期処理と、随時行なわれる周期処理とがある。恒常的
周期処理の例としては、複数の管理対象をバスに接続
し、同じくバスに接続されたCPUでこれらを管理する
場合に、CPUがリアルタイムにシステムを監視する際
の、管理対象内に用意されたシステム管理情報を周期的
にスキャンする処理などがある。随時行なわれる周期処
理の例としては、管理対象内に用意された測定機能を起
動したばあいの、測定情報のリアルタイムモニタ処理に
おける、測定情報の周期的スキャンなどがある。近年の
システム管理の高機能化、複雑化に伴い、高速に、多種
類かつ大量のシステム管理情報あるいは測定情報をリア
ルタイムで収集する必要が生じた。当該機能をCPUに
よる周期的なスキャンで実現しようとした場合、CPU
は、ある限られた時間内に、大量かつ多種の処理を行な
い、かつこれを周期的に繰り返さなくてはならず、CP
Uの付加が増大するという問題がある。
Here, the periodic processing means a data transfer processing which is repeatedly activated at a predetermined cycle.
The periodic process includes a periodic process that is constantly performed and a periodic process that is occasionally performed, depending on its execution form. As an example of the constant cycle processing, when a plurality of management targets are connected to a bus and the CPUs also connected to the bus manage these, it is prepared in the management target when the CPU monitors the system in real time. There is a process of periodically scanning the generated system management information. An example of the periodic processing performed as needed is a periodic scan of the measurement information in the real-time monitoring processing of the measurement information when the measurement function prepared in the management target is activated. Accompanied by the advanced function and complexity of system management in recent years, it has become necessary to collect a large amount of various kinds of system management information or measurement information in real time at high speed. When trying to realize the function by periodical scanning by the CPU,
Must perform a large amount of various processing within a limited time, and must repeat this periodically.
There is a problem that the addition of U increases.

【0005】[0005]

【発明が解決しようとする課題】第一に、上記DMA方
式による周期処理の場合は、周期処理が起動されるつ
ど、CPUが、起動された周期処理に対応するプログラ
ムを実行する方式であるため、複数のデータ転送処理が
ある場合、CPUの処理時間に占める周期処理の割合が
多くなり、周期処理以外の処理の実行、特にアプリケー
ションに近い処理プログラムの実行を阻害していた。ま
た、周期的に大量のデータ転送を行う必要が発生するた
め、周期処理を行うことで、CPUの負担が重くなって
いた。さらに、データ転送を行う場合、CPUには、D
MAコントローラとの間に通信が確立するまでの待機時
間、および、制御時間が必要となるが、複数のデータ転
送との間に複数のデータ転送処理を行う場合において
は、これらの時間の総和は、CPUの処理における占有
時間をさらに長くしてしまうことになる。このため、周
期処理以外の処理の実行が圧迫されることになる。
First, in the case of the periodic processing by the DMA method, the CPU executes the program corresponding to the activated periodic processing every time the periodic processing is activated. When there are a plurality of data transfer processes, the ratio of the periodic processing to the processing time of the CPU increases, which hinders the execution of the processing other than the cyclic processing, especially the execution of the processing program close to the application. Further, since it becomes necessary to transfer a large amount of data periodically, the load on the CPU becomes heavy by performing the periodic processing. Furthermore, when performing data transfer, the CPU is
The waiting time until the communication is established with the MA controller and the control time are required. However, when a plurality of data transfer processes are performed between a plurality of data transfers, the sum of these times is , The occupation time in the processing of the CPU is further lengthened. For this reason, the execution of processing other than the periodic processing is stressed.

【0006】第二に、複数の異なる周期で起動される周
期処理の競合が生じた場合、CPUが調停処理をプログ
ラムの実行により行うため、周期処理に要する時間のC
PUの処理時間全体に占める割合がさらに増加し、周期
処理以外の処理の実行を阻害していた。
Secondly, when there is a conflict between the periodic processes activated in a plurality of different cycles, the CPU performs the arbitration process by executing the program, so that the time C required for the periodic process is increased.
The ratio of PU to the entire processing time is further increased, which hinders the execution of processes other than the periodic process.

【0007】第三に、周期処理に付随して、周期処理結
果の応答に対する処理が応答到着時に随時CPUにより
行われているが、応答に対するCPU処理の詳細は、先
ず、応答に対して行う演算処理の属性をそのつどCPU
が判定し、判定結果に相当する演算プログラムを実行す
ることにより実現している。このため、CPUの処理時
間に占める周期処理結果の応答に対する処理の割合が多
くなり、これ以外の処理の実行を阻害していた。
Thirdly, accompanying the cyclic processing, processing for the response of the cyclic processing result is performed by the CPU at any time when the response arrives. For details of the CPU processing for the response, first, the calculation performed for the response CPU of processing attributes each time
Is executed and an arithmetic program corresponding to the judgment result is executed. For this reason, the ratio of the processing to the response of the periodic processing result in the processing time of the CPU increases, which hinders the execution of other processing.

【0008】そこで、本発明は、周期処理の実行による
CPUの負荷を軽減し、CPUのスループットを向上さ
せることのできる、周期通信処理装置を提供することを
目的とする。
Therefore, an object of the present invention is to provide a cyclic communication processing device capable of reducing the load on the CPU due to the execution of the cyclic processing and improving the throughput of the CPU.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明では、演算部とメモリとを備え、少なくとも
一つの周期処理対象に通信用バスを介して接続され、該
周期処理対象に対して、あらかじめ定められた周期で、
あらかじめ定められたデータ転送処理を繰返し実行する
周期通信処理装置において、上記メモリは、少なくとも
一つの、一以上の上記データ転送処理の情報である周期
処理情報があらかじめ登録されたサイクリックテーブル
と、バス接続要求を登録するため格納領域である待機リ
ストとを有し、上記演算部は、バス通信制御部と、周期
カウンタと、サイクリックテーブル走査部と、走査部セ
レクタと、調停部とを有し、上記バス通信制御部は、上
記周期処理情報の転送を受け付け、受け付けた上記周期
処理情報を基に、該周期処理情報により指定された上記
周期処理対象に対して、該周期処理情報により指定され
たデータ転送処理を実行する手段を備え、上記周期カウ
ンタは、少なくとも一つの、あらかじめ定められた周期
で周期処理起動要求を発行する手段を備え、上記サイク
リックテーブル走査部は、上記周期カウンタの周期処理
起動要求に応じて、上記調停部に対してバスの接続要求
を発行する手段と、上記調停部からのバス接続通知に応
じて、上記サイクリックテーブルに登録された周期処理
情報を読み出し、上記バス通信制御部に該周期処理情報
を転送する手段とを備え、上記調停部は、上記待機リス
トへの登録を行なう待機リスト登録部と、上記走査部セ
レクタの制御を行なうセレクタ制御部とを備え、上記待
機リスト登録部は、上記サイクリックテーブル走査部の
上記バス接続要求に応じて、該要求を発行したサイクリ
ックテーブル走査部を上記待機リストに登録する手段を
備え、上記セレクタ制御部は、上記待機リストに登録さ
れた上記サイクリックテーブル走査部のうち、いずれか
を接続対象として決定する接続対象決定手段と、上記接
続対象とされた上記サイクリックテーブル走査部と、上
記バス通信制御部とを接続するよう、走査部セレクタに
指示する手段とを備え、上記走査部セレクタは、上記セ
レクタ制御部の指示に応じて、指示された上記サイクリ
ックテーブル走査部と、上記バス通信制御部とを接続す
る手段を有することを特徴とする周期通信処理装置が提
供される。
In order to achieve the above object, according to the present invention, an arithmetic unit and a memory are provided, which are connected to at least one periodic processing target via a communication bus, and are connected to the periodic processing target. On the other hand, at a predetermined cycle,
In a cyclic communication processing device that repeatedly executes a predetermined data transfer process, the memory includes at least one cyclic table in which cyclic process information, which is information of the one or more data transfer processes, is registered in advance, and a bus. It has a standby list which is a storage area for registering a connection request, and the arithmetic unit has a bus communication control unit, a cycle counter, a cyclic table scanning unit, a scanning unit selector, and an arbitration unit. The bus communication control unit receives the transfer of the cyclic processing information, and based on the received cyclic processing information, specifies the cyclic processing information for the cyclic processing target specified by the cyclic processing information. Means for executing the data transfer processing, and the cycle counter is required to start the cyclic processing at at least one predetermined cycle. And a means for issuing a bus connection request to the arbitration unit in response to a periodic process activation request of the period counter, and a bus connection from the arbitration unit. In response to the notification, the cyclic processing information registered in the cyclic table is read out, and means for transferring the cyclic processing information to the bus communication control unit is provided, and the arbitration unit registers in the waiting list. A standby list registration unit and a selector control unit for controlling the scanning unit selector are provided, and the standby list registration unit responds to the bus connection request of the cyclic table scanning unit by issuing the cyclic request. The selector control unit includes means for registering a table scanning unit in the standby list, and the selector control unit is configured to scan the cyclic table in the standby list. Of these, a connection target determining unit that determines any one of them as a connection target, a unit for instructing the scanning unit selector to connect the cyclic table scanning unit that is the connection target, and the bus communication control unit, And a scanning unit selector having means for connecting the instructed cyclic table scanning unit and the bus communication control unit in response to an instruction from the selector control unit. A device is provided.

【0010】なお、上記接続対象決定手段は、上記待機
リストに登録された上記サイクリックテーブル走査部の
うち、最も優先順位の高いものを接続対象として決定す
る手段を有するようにしてもよい。また、前記周期処理
情報は、データ転送対象の識別子と、データ転送開始ア
ドレスと、データ転送処理が読み出しであるか書き込み
であるかを示す処理種別と、転送するデータのサイズと
を有することが望ましい。
The connection target determining means may have a means for determining, as the connection target, the one having the highest priority among the cyclic table scanning units registered in the waiting list. Further, it is preferable that the cyclic processing information includes an identifier of a data transfer target, a data transfer start address, a processing type indicating whether the data transfer processing is reading or writing, and a size of data to be transferred. .

【0011】さらに、本発明では、前記演算部は、入力
されたデータに、あらかじめ定められた処理を行なう、
少なくとも一つの個別処理部と、前記データ転送処理に
より読み出されたデータを上記個別処理部に振り分ける
振り分け処理部とをさらに有し、前記メモリは、前記デ
ータ転送処理により読み出されたデータの振り分け先
と、振り分け先による該データの処理結果を格納する格
納領域内の位置とを保持する個別処理テーブルと、上記
処理結果の格納領域とを、さらに有し、上記個別処理部
は、入力されたデータに、あらかじめ定められた処理を
行ない、処理結果を、上記処理結果の格納領域の入力に
より指定された位置に格納する手段を有し、上記振り分
け処理部は、上記個別処理テーブルを参照して、前記デ
ータ転送処理により読み出されたデータを処理させる上
記個別処理部を判定し、該個別処理部に該データを転送
する手段を有することを特徴とする周期通信処理装置が
提供される。
Further, in the present invention, the arithmetic unit performs a predetermined process on the input data,
The memory further includes at least one individual processing unit and a distribution processing unit that distributes the data read by the data transfer process to the individual processing unit, and the memory distributes the data read by the data transfer process. And a storage area for storing the processing result of the data by the distribution destination and a storage area for the processing result, and the individual processing unit receives the input. The data has a means for performing a predetermined processing and storing the processing result in a position designated by the input of the processing result storage area. The distribution processing unit refers to the individual processing table. A means for determining the individual processing unit for processing the data read by the data transfer processing and transferring the data to the individual processing unit. Periodic communication processing apparatus according to claim is provided.

【0012】なお、前記個別処理テーブルは複数備えら
れ、前記演算部は、複数の上記個別処理テーブルのうち
の指定された一つと、前記振り分け処理部とを接続させ
る手段を備えるテーブルセレクタをさらに有し、前記セ
レクタ制御部は、上記振り分け処理部と接続する上記個
別処理テーブルを決定する個別処理テーブル決定手段
と、上記決定した個別処理テーブルと上記振り分け処理
部との接続を上記テーブルセレクタに指示する手段とを
さらに有するようにすることもできる。
A plurality of the individual processing tables are provided, and the arithmetic unit further has a table selector having means for connecting a designated one of the plurality of individual processing tables to the distribution processing unit. Then, the selector control unit instructs the table selector to connect an individual processing table determining unit that determines the individual processing table to be connected to the allocation processing unit, and the connection between the determined individual processing table and the allocation processing unit. It is also possible to further have means.

【0013】また、上記個別処理テーブル決定手段は、
前記接続対象決定手段により記接続対象とされた前記サ
イクリックテーブル走査部に対応するものとしてあらか
じめ定められた上記個別処理テーブルを、前記振り分け
処理部と接続する個別処理テーブルとして決定する手段
を有することを特徴とする周期通信処理装置も提供され
る。
The individual processing table determining means is
A means for determining the individual processing table previously determined as corresponding to the cyclic table scanning unit that is the connection target by the connection target determining unit, as an individual processing table to be connected to the distribution processing unit. Also provided is a periodic communication processing device characterized by:

【0014】[0014]

【作用】本発明の周期通信処理装置は、メモリに、周期
処理情報があらかじめ登録されたサイクリックテーブル
と、待機リストとを有し、演算部に、バス通信制御部
と、あらかじめ定められた周期で周期処理起動要求を発
行する周期カウンタと、サイクリックテーブル走査部
と、走査部セレクタと、調停部とを有する。
A cyclic communication processing apparatus of the present invention has a cyclic table in which cyclic processing information is registered in advance in a memory and a standby list, and a bus communication control section and a predetermined cycle in an arithmetic section. And a cyclic table scanning unit, a scanning unit selector, and an arbitration unit.

【0015】サイクリックテーブル走査部は、周期カウ
ンタの周期処理起動要求に応じて、上記調停部に対して
バスの接続要求を発行する。このバス接続要求を受け
て、調停部の待機リスト登録部は、該要求を行なったサ
イクリックテーブル走査部を待機リストに登録する。ま
た、調停部のセレクタ制御部は、待機リストに登録され
たもののうちの一つを定め、これとバス通信制御部とを
接続するよう、走査部セレクタに指示して、バスの接続
をサイクリックテーブル走査部に通知する。この際、あ
らかじめ定められた優先順位に従って、最も優先順位の
高いもの接続するよう指示することが望ましい。この調
停部の働きにより、異なる周期で起動される処理要求の
競合が生じた場合の調停を行なうことができる。このバ
ス接続通知に応じて、サイクリックテーブル走査部は、
サイクリックテーブルに登録された周期処理情報を読み
出し、バス通信制御部に転送する。バス通信制御部は、
受け付けた周期処理情報を基に、周期処理を実行する。
The cyclic table scanning unit issues a bus connection request to the arbitration unit in response to the periodic process activation request from the period counter. In response to this bus connection request, the waiting list registration unit of the arbitration unit registers the cyclic table scanning unit that made the request in the waiting list. Also, the selector control unit of the arbitration unit determines one of those registered in the waiting list, instructs the scanning unit selector to connect this to the bus communication control unit, and cyclically connects the bus. Notify the table scanning unit. At this time, it is desirable to instruct to connect the one having the highest priority according to a predetermined priority. By the function of the arbitration unit, it is possible to perform arbitration in the case where competition of processing requests activated in different cycles occurs. In response to this bus connection notification, the cyclic table scanning unit
The cyclic processing information registered in the cyclic table is read out and transferred to the bus communication control unit. The bus communication control unit
Cycle processing is executed based on the received cycle processing information.

【0016】このようにすることにより、自律的に周期
処理の命令を発行することができ、バスシステムを統括
するCPUは、周期処理の命令を発行する処理を、周期
的に繰り返して行う必要が無くなり、CPUのスループ
ットが向上する。
By doing so, the cyclic processing command can be issued autonomously, and the CPU that supervises the bus system needs to periodically repeat the processing for issuing the cyclic processing command. It is eliminated, and the throughput of the CPU is improved.

【0017】また、演算部に、入力されたデータに、あ
らかじめ定められた処理を行なう、少なくとも一つの個
別処理部と、周期処理により読み出されたデータを個別
処理部に振り分ける振り分け処理部とを設け、メモリ
に、データ転送処理により読み出されたデータの振り分
け先と、振り分け先による該データの処理結果を格納す
る格納領域内の位置とを保持する個別処理テーブルと、
処理結果の格納領域とを、さらに備えるようにすること
もできる。この場合、個別処理部は、入力されたデータ
に、あらかじめ定められた処理を行ない、処理結果を指
定された位置に格納する。また、振り分け処理部は、個
別処理テーブルを参照して、データ転送処理により読み
出されたデータを処理させる個別処理部を判定し、該個
別処理部に該データを転送する。
Further, the arithmetic unit includes at least one individual processing unit for performing predetermined processing on the input data, and a distribution processing unit for distributing the data read by the periodic processing to the individual processing unit. An individual processing table that is provided in the memory and holds a distribution destination of the data read by the data transfer processing and a position in a storage area that stores a processing result of the data by the distribution destination,
A storage area for processing results may be further provided. In this case, the individual processing unit performs a predetermined process on the input data and stores the process result at the designated position. Further, the distribution processing unit refers to the individual processing table, determines the individual processing unit that processes the data read by the data transfer processing, and transfers the data to the individual processing unit.

【0018】このようにすることにより、周期処理、お
よび周期処理によって読み出されたデータの演算処理を
CPUに依存せずに行うことができるため、バスシステ
ムを統括するCPUは、周期処理により読み出されたデ
ータの後処理を実行する必要が無くなり、CPUのスル
ープットが向上する。
By doing so, since the cyclic processing and the arithmetic processing of the data read by the cyclic processing can be performed without depending on the CPU, the CPU controlling the bus system reads the data by the cyclic processing. There is no need to perform post-processing of the output data, and the CPU throughput is improved.

【0019】本発明により提供される周期処理を自律的
に発行する周期通信処理装置によれば、周期的に起動さ
れるデータ転送制御を、CPUのプログラム実行に依ら
ず、実現できる。周期的に起動されるデータ転送制御を
CPUで行った場合、定期的にCPUで行われる周期処
理以外の処理に対する中断が入り、全体の処理の実行時
間が伸びる。一方、本発明の周期通信処理装置により、
周期的なデータ転送処理をCPUの直接の管理下から外
せば、CPUの負荷を軽減でき、かつ、CPUの行う処
理の高速化が期待できる。また、本発明の周期通信処理
装置は、調停部を有し、調停部は、周期処理の起動要求
が同時に発生した場合であっても、優先順位に従って、
その実行順を決定するため、異なる複数の周期間の競合
に対する処理の調停をCPUのプログラム処理に依存す
ることなく実現できる。
According to the periodic communication processing device for autonomously issuing the periodic process provided by the present invention, the data transfer control activated periodically can be realized without depending on the program execution of the CPU. When the CPU performs the data transfer control that is periodically activated, the processes other than the periodic process periodically performed by the CPU are interrupted, and the execution time of the entire process is extended. On the other hand, according to the periodic communication processing device of the present invention,
By removing the periodic data transfer process from the direct control of the CPU, the load on the CPU can be reduced and the speed of the process performed by the CPU can be expected. Further, the periodic communication processing device of the present invention has an arbitration unit, and the arbitration unit, according to the priority order, even when the activation requests for the periodic processing are simultaneously generated.
Since the execution order is determined, arbitration of processing for competition between different cycles can be realized without depending on the program processing of the CPU.

【0020】また、本発明により提供される周期処理に
よって入力されたデータを処理する周期通信処理装置に
よれば、入力データの処理内容と処理結果の格納場所を
あらかじめ定めておくことにより、周期処理に対する応
答もCPUに依らずに実行することができる。ゆえに、
入力されたデータを処理する周期通信処理装置において
も、CPUの処理負担の軽減、処理の高速化等の効果が
期待できる。
Further, according to the periodic communication processing apparatus for processing the data input by the periodic processing provided by the present invention, the processing contents of the input data and the storage location of the processing result are determined in advance, so that the periodic processing is performed. Can also be executed independently of the CPU. therefore,
Also in the periodic communication processing device for processing the input data, effects such as reduction of the processing load on the CPU and speeding up of the processing can be expected.

【0021】さらに、周期処理の発行、および、入力デ
ータの処理の両方を実行する手段を有する周期通信処理
装置においては、CPUから独立して周期処理とその後
処理、応答を実行することができるため、CPUが周期
処理を意識して処理を行う必要が無くなる。このような
周期通信処理装置は、処理結果が変化した場合、または
処理結果があらかじめ定められた通知条件を満たした場
合のみ、CPUに対して、周期処理部より通知を行なう
ようにすることができる。このようにした周期通信処理
装置を用いた場合、CPUはこの通知を受けた時だけ監
視データベースの更新等の処理を行えば良い。これによ
り、CPUがこれまで行っていた周期処理とそれに伴う
他の処理の中断、再開等の処理を行う必要が無くなり、
また、通信する場合に生ずる、通信応答の待ち時間、あ
るいは、DMAコントローラへのアクセス制御時間が、
周期処理に伴う分だけ節約でき、CPUが周期処理に占
有されてしまうことがなくなるため、CPUの周期処理
以外の処理能力が向上する。
Further, in the periodic communication processing device having means for executing both the issuance of the periodic processing and the processing of the input data, the periodic processing, the subsequent processing and the response can be executed independently of the CPU. , The CPU does not need to be aware of the periodic processing and perform the processing. Such a periodic communication processing device can cause the periodic processing unit to notify the CPU only when the processing result changes or when the processing result satisfies a predetermined notification condition. . When the periodic communication processing device as described above is used, the CPU may perform processing such as updating the monitoring database only when receiving this notification. This eliminates the need for the CPU to perform the processing such as interruption and resumption of the periodic processing and other processing accompanying it, which has been performed so far.
In addition, the communication response waiting time or the access control time to the DMA controller, which occurs when communicating,
It is possible to save only the amount associated with the periodic processing, and the CPU is not occupied by the periodic processing, so that the processing capability of the CPU other than the periodic processing is improved.

【0022】[0022]

【実施例】以下、本発明の実施例を図面を用いて説明す
る。 (実施例1)第一の実施例における周期通信処理装置の
構成を図1に示す。本実施例のデータ処理部1は、CP
U102と、RAM(ランダムアクセスメモリ)103
と、ROM(リードオンリメモリ)104と、周期通信
処理装置100とを備える。CPU102と、RAM1
03と、ROM104とは、CPUバス106を介して
周期通信処理装置100に接続されており、さらに、周
期通信処理装置100を介して通信用バス2に接続され
ている。
Embodiments of the present invention will be described below with reference to the drawings. (Embodiment 1) FIG. 1 shows the configuration of the periodic communication processing apparatus in the first embodiment. The data processing unit 1 of this embodiment uses the CP
U102 and RAM (random access memory) 103
A ROM (Read Only Memory) 104 and a periodic communication processing device 100. CPU102 and RAM1
03 and the ROM 104 are connected to the periodic communication processing device 100 via the CPU bus 106, and are further connected to the communication bus 2 via the periodic communication processing device 100.

【0023】本実施例の周期通信処理装置100は、図
8に示すように、演算部109と、メモリ108とを備
える。演算部109は、CPU通信制御部124と、バ
ス通信制御部123と、調停部122と、セレクタ12
1と、3つの周期カウンタ101と、3つのサイクリッ
クテーブル走査部107とを有する。また、上記CPU
バス106はCPU通信制御部124に接続されてお
り、通信用バス2は、バス通信制御部123に接続され
ている。なお、ここで、点線の矢印はデータ信号の流れ
を、実線の矢印は制御信号の流れを、それぞれ示してい
る。
As shown in FIG. 8, the periodic communication processing device 100 of this embodiment comprises a computing unit 109 and a memory 108. The arithmetic unit 109 includes a CPU communication control unit 124, a bus communication control unit 123, an arbitration unit 122, and a selector 12.
It has 1 and 3 cycle counters 101 and 3 cyclic table scanning units 107. Also, the CPU
The bus 106 is connected to the CPU communication control unit 124, and the communication bus 2 is connected to the bus communication control unit 123. Here, the dotted arrows indicate the flow of data signals, and the solid arrows indicate the flow of control signals.

【0024】メモリ108は、周期処理が登録されてい
る3つのサイクリックテーブル111と、バス接続要求
中のサイクリックテーブル走査部107またはCPU通
信制御部124が登録される待機リスト112と、サイ
クリックテーブル走査部107およびCPU通信制御部
124の識別子とその優先順位とが対応付けられてがあ
らかじめ登録されている優先順位保持部113とを備え
る。なお、サイクリックテーブル111への登録、更新
は、CPU通信制御部124を介してCPU102によ
り行なわれる。恒常的周期処理は、システム初期立ち上
げ時に登録され、随時的周期処理は、システム運用中に
随時、登録、更新、削除される。
The memory 108 includes three cyclic tables 111 in which cyclic processing is registered, a standby list 112 in which the cyclic table scanning unit 107 or the CPU communication control unit 124 requesting bus connection is registered, and cyclic. The table scanning unit 107 and the CPU communication control unit 124 are provided with a priority order holding unit 113 in which the identifiers are associated with their priorities and registered in advance. Note that the registration and update in the cyclic table 111 are performed by the CPU 102 via the CPU communication control unit 124. The constant periodic process is registered at the initial startup of the system, and the occasional periodic process is registered, updated, or deleted at any time during system operation.

【0025】メモリ108は、周期通信処理装置100
にCPU通信制御部124を介して接続されるバス制御
用RAMとして、周期通信処理装置100の外側に設け
てもよい。この場合は、メモリ内のデータの授受は、C
PU通信制御部124を介して行なわれる。このように
バス制御用RAMを設ければ、メモリ容量の制約にかか
わらず、周期通信処理装置100をLSI(大規模集積
回路)として実現することができる。
The memory 108 is a periodic communication processing device 100.
It may be provided outside the periodic communication processing device 100 as a bus control RAM connected to the CPU communication control unit 124. In this case, the data in the memory is sent and received by C
This is performed via the PU communication control unit 124. By providing the bus control RAM in this way, the periodic communication processing device 100 can be realized as an LSI (large-scale integrated circuit) regardless of the restrictions on the memory capacity.

【0026】なお、本実施例では、周期カウンタ101
およびサイクリックテーブル111は、それぞれ3つず
つ備えられているが、この数には限られない。周期カウ
ンタ101は、少なくとも、この周期通信処理装置10
0が処理する周期処理の周期の種類の分だけ用意され
る。サイクリックテーブル走査部107およびサイクリ
ックテーブル111は、使用される周期カウンタ101
の数だけ用意される。ひとつのサイクリックテーブル走
査部107には、それぞれ、ひとつずつの周期カウンタ
101とサイクリックテーブル111とが接続されてい
る。なお、同一の周期で実行される周期処理内で優先順
位が異なる場合は、同一の周期カウンタ101に接続さ
れるサイクリックテーブル111とサイクリックテーブ
ル走査部107とを優先順位ごとにさらに設けるか、ま
たは、同一の周期を有する周期カウンタを優先順位の種
類だけ設け、これにそれぞれ接続されるサイクリックテ
ーブル走査部107と該走査部107に接続されるサイ
クリックテーブル111とを設ければよい。周期処理
を、優先順位ごとに異なるサイクリックテーブル111
に登録し、異なるサイクリックテーブル走査部107に
よって読み出されるようにすれば、優先順位の高い処理
を先に実行するようにできる。
In this embodiment, the cycle counter 101
The number of cyclic tables 111 and the number of cyclic tables 111 are each three, but the number is not limited to three. The cycle counter 101 has at least this cycle communication processing device 10
0 is prepared for the number of cycle types of the cycle processing. The cyclic table scanning unit 107 and the cyclic table 111 are used as the cycle counter 101.
Will be prepared. One cycle counter 101 and one cyclic table 111 are connected to each cyclic table scanning unit 107. If the priority order is different in the cycle processing executed in the same cycle, the cyclic table 111 and the cyclic table scanning unit 107 connected to the same cycle counter 101 may be further provided for each priority order. Alternatively, cycle counters having the same cycle may be provided only for the types of priority order, and the cyclic table scanning unit 107 connected to each of them may be provided and the cyclic table 111 connected to the scanning unit 107. Cyclic table 111, which is different for each priority
If it is registered in the above and is read by a different cyclic table scanning unit 107, a process with a high priority can be executed first.

【0027】本実施例の周期通信処理装置100は、サ
イクリックテーブル111に登録された周期処理を、C
PUを介さず、自律的に実行する装置である。サイクリ
ックテーブル111、周期カウンタ101およびサイク
リックテーブル走査部107は、周期処理の実行のため
に備えられている。また、周期通信処理装置100は、
CPU102を介さず、自律的に実行順の調整を行うた
めに、調停部122とセレクタ121を含んでいる。さ
らに、周期通信処理装置100は、サイクリックテーブ
ル111より読み出したデータ転送対象情報に従い、実
際のデータ転送制御を行うため、通信制御手段123を
備えている。
The periodic communication processing device 100 of the present embodiment executes the periodic processing registered in the cyclic table 111 as C
It is a device that executes autonomously without going through the PU. The cyclic table 111, the cycle counter 101, and the cyclic table scanning unit 107 are provided for executing the cyclic processing. Further, the periodic communication processing device 100 is
An arbitration unit 122 and a selector 121 are included in order to autonomously adjust the execution order without going through the CPU 102. Further, the periodic communication processing device 100 includes a communication control unit 123 in order to perform actual data transfer control according to the data transfer target information read from the cyclic table 111.

【0028】周期カウンタ101は、あらかじめ定めら
れた周期で、カウンタの初期化、該周期カウンタ101
の接続されたサイクリックテーブル走査部107に対す
る走査起動要求110の発行、および一定時間のカウン
トを繰り返す。
The cycle counter 101 initializes the counter at a predetermined cycle, and the cycle counter 101
The issuance of the scan activation request 110 to the connected cyclic table scanning unit 107 and the counting of the fixed time are repeated.

【0029】サイクリックテーブル111は特定の周期
(サイクリックテーブル走査部を介して接続された周期
カウンタ101が走査起動要求110を発行する周期と
同じ周期)により繰り返す必要のある周期処理に関する
情報が、処理メニューとして予め登録してある一覧表で
ある。各処理の情報は、処理を実行すべき順番に従って
登録されている。本実施例では、処理の情報は、アクセ
ス対象の識別子(アクセス対象ID)と、データ転送開
始アドレスと、処理種別(読出/書込)と、アクセスする
データのサイズとを有する。また、処理種別が書き込み
のときは、アクセスするデータの内容を、さらに有す
る。
The cyclic table 111 has information about cyclic processing that needs to be repeated at a specific cycle (the cycle in which the cycle counter 101 connected via the cyclic table scanning unit issues the scan activation request 110). It is a list registered in advance as a processing menu. The information of each process is registered according to the order in which the process should be executed. In this embodiment, the processing information includes an access target identifier (access target ID), a data transfer start address, a processing type (read / write), and the size of data to be accessed. Further, when the processing type is write, it further has the contents of data to be accessed.

【0030】本実施例におけるサイクリックテーブル1
11の構成について説明する。図3はサイクリックテー
ブル111の構成例を示したものである。サイクリック
テーブル111には、特定の周期毎に実行するデータ転
送対象に関する情報群が処理の実行順序に従い、順番に
書き込まれている。サイクリックテーブル111は、図
3に示すように、アクセス対象ID格納領域132、デ
ータ転送開始アドレス格納領域133、処理種別(読出
/書込)格納領域134、アクセスサイズ格納領域13
5、および、アクセスデータ格納領域136を有する。
このサイクリックテーブル111を備える周期通信処理
装置100は、通信用バス2に接続され、この通信用バ
ス2には、さらに複数の転送対象3が接続されている。
Cyclic table 1 in this embodiment
The configuration of 11 will be described. FIG. 3 shows an example of the structure of the cyclic table 111. In the cyclic table 111, an information group regarding a data transfer target to be executed in each specific cycle is written in order according to the processing execution order. As shown in FIG. 3, the cyclic table 111 includes an access target ID storage area 132, a data transfer start address storage area 133, a processing type (readout).
/ Write) storage area 134, access size storage area 13
5 and access data storage area 136.
The periodic communication processing device 100 including the cyclic table 111 is connected to the communication bus 2, and a plurality of transfer targets 3 are further connected to the communication bus 2.

【0031】サイクリックテーブル111に登録されて
いる周期処理情報は、バス通信制御部123の処理にお
いて、以下のようにして使用される。まず、アクセス対
象ID格納領域132に保持されたアクセス対象3の識
別子は、バス上に接続されている複数のデータ転送対象
3の中から、特定の対象を指定するために用いられる。
すなわち、バス上に接続された複数のデータ転送対象の
うち、アクセス対象IDと一致するIDを持つもの3a
と、バス通信制御部123との間に、通信が確立され
る。データ転送開始アドレス格納領域133に保持され
たアドレスは、アクセス対象3aの中のデータ転送を開
始する位置139の先頭を示すポインタとして用いられ
る。アクセスサイズ格納領域134に保持された値は、
データ転送開始点からのデータ領域(データ転送領域)
138の範囲137を示すために用いられる。また、こ
の値は、転送するデータ長をも表す。データ転送処理種
別格納領域133に保持された符号は、読み出しまたは
書き込みを表わしており、転送処理が、読み出しおよび
書き込みのうち、いずれの処理であるかを指定するため
に用いられる。
The cyclic process information registered in the cyclic table 111 is used in the process of the bus communication control unit 123 as follows. First, the identifier of the access target 3 held in the access target ID storage area 132 is used to specify a specific target from the plurality of data transfer targets 3 connected on the bus.
That is, of the plurality of data transfer targets connected on the bus, the one having an ID that matches the access target ID 3a
And the bus communication control unit 123 are established. The address held in the data transfer start address storage area 133 is used as a pointer indicating the beginning of the position 139 in the access target 3a where the data transfer is started. The value held in the access size storage area 134 is
Data area from the data transfer start point (data transfer area)
Used to indicate the range 137 of 138. This value also represents the length of data to be transferred. The code held in the data transfer process type storage area 133 represents read or write, and is used to specify which of the read and write processes the transfer process is.

【0032】つぎに、サイクリックテーブル走査部10
7の処理の流れを図9を用いて説明する。サイクリック
テーブル走査部107は、接続された周期カウンタ10
1の発行した走査起動要求110に応じて起動する。ま
ず、走査起動要求110を受けたサイクリックテーブル
走査部107は、調停部122に対して、バスの接続を
要求し(ステップ901)、セレクタ121によってバ
スが接続されるのを待つ(ステップ902)。バスが接
続されると、サイクリックテーブル走査部107は、サ
イクリックテーブル111に保持されたすべての周期処
理の情報を読み出し、該情報をセレクタ121を介し
て、バス通信制御部123へ転送する(ステップ90
3)。サイクリックテーブル111内に保持された周期
処理の情報をすべて読み出すと、サイクリックテーブル
走査部107は、調停部122に対し終了通知を行ない
(ステップ904)、処理を終了する。ステップ903
でデータの転送を受けたバス通信制御部123は、転送
された周期処理情報に従って、指定された周期処理対象
3に対して、指定された処理を実行する。
Next, the cyclic table scanning unit 10
The processing flow of No. 7 will be described with reference to FIG. The cyclic table scanning unit 107 connects the cycle counter 10
It is activated in response to the scan activation request 110 issued by 1. First, the cyclic table scanning unit 107 that receives the scan activation request 110 requests the arbitration unit 122 to connect the bus (step 901) and waits for the bus to be connected by the selector 121 (step 902). . When the bus is connected, the cyclic table scanning unit 107 reads out all the cyclic processing information held in the cyclic table 111, and transfers the information to the bus communication control unit 123 via the selector 121 ( Step 90
3). When all the cyclic processing information held in the cyclic table 111 is read, the cyclic table scanning unit 107 notifies the arbitration unit 122 of the end (step 904) and ends the processing. Step 903
The bus communication control unit 123, which has received the data transfer in step 1, executes the specified process on the specified cyclic process target 3 in accordance with the transferred cyclic process information.

【0033】なお、本実施例では、CPU102からの
通信も、バス通信制御部123を介して行なわれる。C
PU102からの通信要求があると、CPU通信制御部
124は、サイクリックテーブル走査部107と同様
に、調停部122に対して、バスの接続要求を行ない、
接続が通知されると、CPU102からのデータを、バ
ス通信制御部123へ転送する。転送を受けたバス通信
制御部123はCPU102により指示された通信を行
なう。なお、あらかじめCPU通信制御部124の優先
順位をサイクリックテーブル走査部107の優先順位よ
り高く設定しておけば、周期処理よりもCPU102の
通信を優先的に行なうようにすることができ、逆に、優
先順位を低くしておけば、周期処理を優先的に行なうよ
うにすることができる。
In this embodiment, communication from the CPU 102 is also performed via the bus communication control section 123. C
When there is a communication request from the PU 102, the CPU communication control unit 124 makes a bus connection request to the arbitration unit 122, as with the cyclic table scanning unit 107.
When the connection is notified, the data from the CPU 102 is transferred to the bus communication control unit 123. The bus communication control unit 123 that has received the transfer performs the communication instructed by the CPU 102. If the priority order of the CPU communication control unit 124 is set higher than the priority order of the cyclic table scanning unit 107, the communication of the CPU 102 can be prioritized over the periodic processing, and conversely. If the priority order is set low, the periodic processing can be preferentially performed.

【0034】バス通信制御部123は、上述の各データ
を用いて、指定されたデータ転送対象3aとの間で通信
を行なう。すなわち、バス通信制御部123は、処理種
別格納領域134に保持された符号に従って、書き込み
処理の場合は、アクセスサイズ格納領域134に示され
るデータ長に等しいデータ長を持つ、アクセスデータ格
納領域135に保持されているデータを、データ転送開
始アドレス格納領域133に保持されたアドレスを先頭
とする、アクセスサイズ格納領域134に示されるサイ
ズを有する領域(データ転送対象領域138)に格納す
る。また、読み出し処理の場合、バス通信制御部123
は、データ転送開始アドレス(データ転送開始アドレス
格納領域133に保持されたアドレス)から、アクセス
サイズ格納領域134に示されるデータ長に等しいデー
タ長を持つデータを読み出す。なお、読み出し処理の場
合、本実施例では、バス通信制御部123は、セレクタ
121に指示してバスをCPU通信制御部124に接続
させ、読み出されたデータを、CPU通信制御部124
を介してCPU102に転送し、CPU102に割込み
要求を発生させる。読み出されたデータを受け取ったC
PU102は、割込み要求に従って、受け取ったデータ
を用いて、あらかじめ定められた処理を行なう。本実施
例では、調停部122によるバス接続指示と、バス通信
制御部123によるバス接続指示が同時に発生した場
合、セレクタ121は、バス通信制御部123のバスの
接続を優先して行なう。
The bus communication control unit 123 communicates with the designated data transfer target 3a using each of the above-mentioned data. That is, according to the code held in the processing type storage area 134, the bus communication control unit 123 stores in the access data storage area 135, which has a data length equal to the data length shown in the access size storage area 134 in the case of writing processing. The held data is stored in the area having the size shown in the access size storage area 134 (data transfer target area 138), which starts from the address held in the data transfer start address storage area 133. In the case of read processing, the bus communication control unit 123
Reads data having a data length equal to the data length indicated in the access size storage area 134 from the data transfer start address (address held in the data transfer start address storage area 133). In the case of read processing, in the present embodiment, the bus communication control unit 123 instructs the selector 121 to connect the bus to the CPU communication control unit 124, and reads the read data from the CPU communication control unit 124.
To the CPU 102, and causes the CPU 102 to generate an interrupt request. C that received the read data
PU 102 performs a predetermined process using the received data in accordance with the interrupt request. In this embodiment, when the bus connection instruction from the arbitration unit 122 and the bus connection instruction from the bus communication control unit 123 occur at the same time, the selector 121 gives priority to the bus connection of the bus communication control unit 123.

【0035】調停部122は、CPU102によらず、
自律的に複数の異なる周期で起動された処理間の調停を
行うための手段である。本実施例の調停部122の構成
を図4に示す。調停部122には、バス接続要求を行な
ったサイクリックテーブル走査部107およびCPU通
信制御部124を、待機リスト112に登録する待機リ
スト登録部143と、優先順位保持部113を参照し
て、待機リスト112に登録されているもののうち最も
優先順位の高いものを検出し、そのデータバスをバス通
信制御部123に接続するよう、セレクタ121に指示
するセレクタ制御部142とを有している。
The arbitration unit 122 does not depend on the CPU 102,
It is a means for performing arbitration between processes autonomously started in a plurality of different cycles. The configuration of the arbitration unit 122 of this embodiment is shown in FIG. The arbitration unit 122 waits by referring to the standby list registration unit 143 that registers the cyclic table scanning unit 107 and the CPU communication control unit 124 that have issued the bus connection request in the standby list 112 and the priority order holding unit 113. It has a selector control unit 142 for instructing the selector 121 to detect the one having the highest priority among those registered in the list 112 and connect the data bus to the bus communication control unit 123.

【0036】待機リスト登録部143の処理の流れを図
10に示す。待機リスト登録部143は、サイクリック
テーブル走査部107またはCPU通信制御部124に
よるバス接続要求147により起動される。バス接続要
求147を受け付けると、待機リスト登録部143は、
該要求147を発行したサイクリックテーブル走査部1
07またはCPU通信制御部124の識別子を、待機リ
スト112に格納して(ステップ1001)、処理を終
了する。
FIG. 10 shows the flow of processing of the standby list registration unit 143. The standby list registration unit 143 is activated by the bus connection request 147 by the cyclic table scanning unit 107 or the CPU communication control unit 124. Upon receiving the bus connection request 147, the standby list registration unit 143
The cyclic table scanning unit 1 which issued the request 147
07 or the identifier of the CPU communication control unit 124 is stored in the standby list 112 (step 1001), and the process is terminated.

【0037】セレクタ制御部142の処理の流れは、図
11に示す通りである。セレクタ制御部142は、CP
U通信制御部124を介して調停部122に入力され
る、CPU102の開始指示により起動される。なお、
本実施例では、CPU102は、システム立ち上げ時に
調停部122に対して開始指示を出す。
The processing flow of the selector control unit 142 is as shown in FIG. The selector control unit 142 uses the CP
It is activated by a start instruction of the CPU 102 input to the arbitration unit 122 via the U communication control unit 124. In addition,
In this embodiment, the CPU 102 issues a start instruction to the arbitration unit 122 when the system starts up.

【0038】セレクタ制御部142は、まず、待機リス
ト112が空かどうか検査し(ステップ1101)、待
機リスト112が空では無くなるまで待つ。待機リスト
112に登録されている識別子があると、セレクタ制御
部142は、優先順位保持部113を参照しながら、待
機リスト112に登録されているもののうち、最も高い
優先順位を有するサイクリックテーブル走査部107ま
たはCPU通信制御部124(以下、これらをまとめて
通信出力部と呼ぶ)を検出する(ステップ1102:接
続対象決定手段)。なお、優先順位保持部113は、図
4に示すように、接続された通信出力部の識別子の格納
領域145と、対応する識別子の示す通信出力部の優先
順位の格納領域146とを有する。
The selector control unit 142 first checks whether the waiting list 112 is empty (step 1101) and waits until the waiting list 112 is not empty. If there is an identifier registered in the waiting list 112, the selector control unit 142 refers to the priority holding unit 113 and refers to the cyclic table scan having the highest priority among those registered in the waiting list 112. The unit 107 or the CPU communication control unit 124 (hereinafter collectively referred to as a communication output unit) is detected (step 1102: connection target determining unit). As shown in FIG. 4, the priority order holding unit 113 has a storage area 145 for the identifier of the connected communication output section and a storage area 146 for the priority order of the communication output section indicated by the corresponding identifier.

【0039】つぎに、セレクタ制御部142は、検出し
た通信出力部のデータバス141をバス通信制御部12
3に接続するように、セレクタ121に指示し(ステッ
プ1103)、検出した通信出力部に対して、バス接続
通知を発行する(ステップ1104)。セレクタ制御部
142は、バス接続通知を受け取った通信出力部からの
終了通知を待ち、終了通知があると(ステップ110
5)、待機リストから該通信出力部の登録を削除し(ス
テップ1106)、セレクタ121に、バスを切断する
よう指示する(1107)。CPU通信制御部124を
介して、CPU102から終了指示があると、セレクタ
制御部142は処理を終了するが(ステップ110
8)、終了指示がなければ、セレクタ制御部142は、
ステップ1101に戻って、上記の処理を繰り返す。
Next, the selector control unit 142 sets the detected data bus 141 of the communication output unit to the bus communication control unit 12.
Then, the selector 121 is instructed to connect to No. 3 (step 1103), and a bus connection notification is issued to the detected communication output unit (step 1104). The selector control unit 142 waits for the end notification from the communication output unit that has received the bus connection notification, and when the end notification is received (step 110).
5) The registration of the communication output unit is deleted from the standby list (step 1106), and the selector 121 is instructed to disconnect the bus (1107). When the CPU 102 issues an end instruction via the CPU communication control unit 124, the selector control unit 142 ends the process (step 110).
8) If there is no end instruction, the selector control unit 142
Returning to step 1101, the above processing is repeated.

【0040】3つのサイクリックテーブル走査部107
から、バス接続要求147が発行されるときの、調停処
理のタイムチャートを図5に示す。ここでは、3つのサ
イクリックテーブル走査部107を、それぞれサイクリ
ックテーブル走査部A,B,Cとし、それぞれ、サイク
リックテーブルA,B,Cに接続されているとする。ま
た、各サイクリックテーブル走査部の優先順位は、B,
A,Cの順に低くなるものとする。また、サイクリック
テーブルA,B,Cには、それぞれ周期処理151,1
52,153が登録されている。
Three cyclic table scanning units 107
FIG. 5 shows a time chart of the arbitration processing when the bus connection request 147 is issued from the above. Here, it is assumed that the three cyclic table scanning units 107 are cyclic table scanning units A, B, and C, and are connected to the cyclic tables A, B, and C, respectively. The priority of each cyclic table scanning unit is B,
It becomes lower in the order of A and C. In addition, the cyclic tables A, B, and C have periodic processes 151 and 1 respectively.
52 and 153 are registered.

【0041】まず、各サイクリックテーブル走査部A,
B,Cの処理は、各々の周期に対応した起動割込(周期
カウンタにより発行される周期起動要求)154〜15
6により起動される。例えば、T1のように、この周期
起動要求154〜156のうちの複数が同時に発生する
時がある。もし、周期起動要求154、155、および
156が同時に発生した場合、優先順位の高いサイクリ
ックテーブル走査部Bの周期処理152が優先的に実行
される。この間、サイクリックテーブルAおよびCは待
たされ157、周期処理152が終了した後に、次に優
先順位の高いサイクリックテーブル走査部Aの周期処理
151が実行される。この間、サイクリックテーブルC
はさらに待たされ158、周期処理151の処理終了後
に、最も優先順位の低いサイクリックテーブル走査部C
の周期処理153が実行される。
First, each cyclic table scanning unit A,
The processes of B and C are the start interrupts (cycle start requests issued by the cycle counter) 154 to 15 corresponding to the respective cycles.
6 is activated. For example, like T1, a plurality of the periodic activation requests 154 to 156 may occur at the same time. If the cyclic activation requests 154, 155, and 156 are simultaneously generated, the cyclic process 152 of the cyclic table scanning unit B having a higher priority is preferentially executed. During this period, the cyclic tables A and C are kept waiting 157, and after the cyclic process 152 is completed, the cyclic process 151 of the cyclic table scanning unit A having the next highest priority is executed. During this time, cyclic table C
Is further waited 158, and after the processing of the periodic processing 151 is completed, the cyclic table scanning unit C having the lowest priority is
The periodic processing 153 is executed.

【0042】(実施例2)以上の処理により、待機リス
トに登録された通信出力部が、優先順位の順に、バス通
信制御部123へのデータの転送を実行することにな
る。なお、上記の処理では、サイクリックテーブル11
1に登録されたすべての周期処理が一括してバス通信制
御部123へ転送され、実行されるが、ステップ903
において読みだされる周期処理を一つだけにし、周期処
理ごとに、バス接続要求147を発行するようにしても
よい。この場合のサイクリックテーブル走査部107の
処理の流れを図12に示す。なお、この場合は、サイク
リックテーブル111の各周期処理情報の格納領域内
に、転送ポインタ格納領域を設ける。ここでは、転送ポ
インタ格納領域の保持する値は、つぎに転送すべき周期
処理情報を示している。なお、サイクリックテーブル1
11内の周期処理情報は、先頭から順番に転送される。
まず、この場合のサイクリックテーブル走査部107
は、図9に示した場合と同様に、調停部122に対し
て、バスの接続を要求し(ステップ901)、セレクタ
121によってバスが接続されるのを待つ(ステップ9
02)。バスが接続されると、この場合のサイクリック
テーブル走査部107は、サイクリックテーブル111
に保持された周期処理の情報のうち、転送ポインタ格納
領域に保持された値が示す周期処理情報を読み出し、該
情報をセレクタ121を介して、バス通信制御部123
へ転送し(ステップ1201)、調停部122に対し終
了通知を行なう(ステップ904)。転送した周期情報
が最後の情報(サイクリックテーブル111の最後部に
登録された情報)ではなければ(ステップ1202)、
サイクリックテーブル走査部107は、転送ポインタ格
納領域に周期処理情報のデータ長を加えてつぎの情報を
指すようにし(ステップ1203)、上述のステップ9
01から1202までの処理を繰返し、転送した周期情
報が最後の情報であれば、転送ポインタ格納領域に、先
頭の周期処理情報のアドレスを格納して(ステップ14
04)処理を終了する。このようにすれば、一つのサイ
クリックテーブルに登録された周期処理が登録された順
番に実行されている間に、もっと優先順位の高い通信出
力部によるバス接続要求があった場合、上記登録された
順番の処理の間に、優先順位の高い処理を割り込ませる
ことができる。
(Embodiment 2) By the above processing, the communication output units registered in the standby list execute the data transfer to the bus communication control unit 123 in the order of priority. In the above process, the cyclic table 11
All the cyclic processes registered in No. 1 are collectively transferred to the bus communication control unit 123 and executed.
It is also possible to limit the number of the periodic processes read in (1) to issue the bus connection request 147 for each periodic process. FIG. 12 shows a processing flow of the cyclic table scanning unit 107 in this case. In this case, a transfer pointer storage area is provided in the cyclic table 111 storage area for each cyclic processing information. Here, the value held in the transfer pointer storage area indicates the periodic processing information to be transferred next. In addition, cyclic table 1
The periodic processing information in 11 is transferred in order from the beginning.
First, the cyclic table scanning unit 107 in this case
Requests the bus connection to the arbitration unit 122 (step 901) and waits for the bus to be connected by the selector 121 (step 9), as in the case shown in FIG.
02). When the bus is connected, the cyclic table scanning unit 107 in this case changes the cyclic table 111.
Of the cyclic processing information stored in the transfer pointer storage area, the cyclic processing information indicated by the value stored in the transfer pointer storage area is read out, and the information is transferred via the selector 121 to the bus communication control unit 123.
To the arbitration unit 122 (step 904). If the transferred cycle information is not the last information (information registered in the last part of the cyclic table 111) (step 1202),
The cyclic table scanning unit 107 adds the data length of the cyclic processing information to the transfer pointer storage area so as to point to the next information (step 1203), and the above step 9
The processing from 01 to 1202 is repeated, and if the transferred cycle information is the last information, the address of the first cycle processing information is stored in the transfer pointer storage area (step 14
04) The process ends. By doing this, if there is a bus connection request from the communication output unit with a higher priority while the cyclic processes registered in one cyclic table are executed in the order in which they are registered, the above-mentioned registration will be performed. High-priority processing can be interrupted during the processing in the specified order.

【0043】(実施例3)つぎに、第3の実施例につい
て説明する。本実施例2は、周期処理に伴い、周期処理
対象3から入力されたデータを、CPU102を介さず
に処理し、あらかじめ定められた領域に格納するための
周期通信処理装置160の実施例である。
(Third Embodiment) Next, a third embodiment will be described. The second embodiment is an embodiment of the periodic communication processing device 160 for processing the data input from the periodic processing target 3 without the intervention of the CPU 102 in accordance with the periodic processing and storing the data in a predetermined area. .

【0044】本実施例の周期通信処理装置160の構成
例を図14に示す。本実施例のデータ処理部1は、CP
U102と、CPU用RAM103と、CPU用ROM
104と、周期通信処理装置160とを備える。CPU
102と、RAM103と、ROM104とは、CPU
バス106を介して周期通信処理装置160に接続され
ており、さらに、周期通信処理装置160を介して通信
用バス2に接続されている。
FIG. 14 shows an example of the configuration of the periodic communication processing device 160 of this embodiment. The data processing unit 1 of this embodiment uses the CP
U102, CPU RAM 103, CPU ROM
And a periodic communication processing device 160. CPU
102, RAM 103, and ROM 104 are a CPU
It is connected to the periodic communication processing device 160 via the bus 106, and is further connected to the communication bus 2 via the periodic communication processing device 160.

【0045】本実施例の周期通信処理装置160は、演
算部166と、メモリ165とを備える。演算部166
は、CPU通信制御部164と、バス通信制御部163
と、振り分け処理部162と、3つの個別処理部(個別
処理部A171、個別処理部B172、個別処理部C1
73)とを有する。また、上記CPUバス106は、C
PU通信制御部164に接続されており、通信用バス2
は、バス通信制御部163に接続されている。
The periodic communication processing device 160 of this embodiment comprises an arithmetic unit 166 and a memory 165. Calculation unit 166
Is a CPU communication control unit 164 and a bus communication control unit 163.
And a distribution processing unit 162 and three individual processing units (an individual processing unit A171, an individual processing unit B172, an individual processing unit C1.
73) and. The CPU bus 106 is C
The communication bus 2 is connected to the PU communication control unit 164.
Are connected to the bus communication control unit 163.

【0046】なお、個別処理部の数は、3つに限られ
ず、周期処理対象3から読み込んだデータに対して実行
する個別処理の種類に応じて、各個別処理ごとに設けら
れる。本実施例では、図6に示すように、個別処理部A
171は前回の処理結果に入力データを加算する算術加
算処理を、個別処理部B172は前回の処理結果と入力
データとの論理和を求める論理加算処理を、個別処理部
C173は、前回の処理結果と入力データとの論理積を
求める処理を、それぞれ行なうようあらかじめ定められ
ている。
The number of individual processing units is not limited to three, and is provided for each individual processing depending on the type of individual processing to be executed on the data read from the periodic processing target 3. In this embodiment, as shown in FIG.
171 is an arithmetic addition process for adding input data to the previous processing result, an individual processing unit B172 is a logical addition process for obtaining a logical sum of the previous processing result and the input data, and an individual processing unit C173 is a previous processing result. It is predetermined to perform a process of obtaining a logical product of the input data and the input data.

【0047】メモリ165は、入力データの振り分け先
および処理結果の格納先があらかじめ登録されている入
力データ属性テーブル161を保持する。入力データ属
性テーブル161の内容は、CPU通信制御部164を
介して、CPU102により登録、更新される。
The memory 165 holds the input data attribute table 161 in which the distribution destination of the input data and the storage destination of the processing result are registered in advance. The contents of the input data attribute table 161 are registered and updated by the CPU 102 via the CPU communication control unit 164.

【0048】なお、メモリ165は、周期通信処理装置
160にCPU通信制御部164を介して接続されるバ
ス制御用RAMとして、周期通信処理装置160の外側
に設けてもよい。この場合は、演算部166によるメモ
リ165内のデータの授受は、CPU通信制御部164
を介して行なわれる。このようにバス制御用RAMを設
ければ、メモリ容量の制約にかかわらず、周期通信処理
装置100をLSIとして実現することができる。入力
データ属性テーブル161は、図6に示すように、入力
データの識別子を保持する入力データ識別子格納領域1
81と、データの振り分け先の個別処理部のアドレスを
保持する振り分け先アドレス格納領域182と、個別処
理部による処理結果を格納するアドレスを保持する格納
先アドレス格納領域183とを有する。
The memory 165 may be provided outside the periodic communication processing device 160 as a bus control RAM connected to the periodic communication processing device 160 via the CPU communication control unit 164. In this case, the CPU communication control unit 164 exchanges data in the memory 165 by the arithmetic unit 166.
Through. By providing the bus control RAM in this way, the periodic communication processing device 100 can be realized as an LSI regardless of the restrictions on the memory capacity. The input data attribute table 161 is, as shown in FIG. 6, an input data identifier storage area 1 for holding an identifier of input data.
81, a distribution destination address storage area 182 for holding the address of the individual processing unit of the data distribution destination, and a storage destination address storage area 183 for storing the address of the processing result by the individual processing unit.

【0049】また、本実施例の周期通信処理装置160
には、演算結果を格納するためのRAM176〜178
が用意されている。この演算結果格納用RAM176〜
178は、CPU通信制御部164に接続されている。
また、CPU102は、CPU通信制御部164を介し
て、演算結果格納用RAM176〜178の保持する情
報を参照することができる。本実施例では、演算結果格
納用RAM176〜178は、それぞれ、個別処理部A
171、個別処理部B172、個別処理部C173に対
応しており、個別処理部A171の処理結果は演算結果
格納用RAM176〜178に、個別処理部B172の
処理結果は演算結果格納用RAM176〜178に、個
別処理部C173の処理結果は演算結果格納用RAM1
76〜178に、それぞれ格納される。
Further, the periodic communication processing device 160 of the present embodiment.
Includes RAMs 176 to 178 for storing calculation results.
Is prepared. This calculation result storage RAM 176-
178 is connected to the CPU communication control unit 164.
Further, the CPU 102 can refer to the information held in the calculation result storage RAMs 176 to 178 via the CPU communication control unit 164. In this embodiment, the calculation result storage RAMs 176 to 178 are respectively provided in the individual processing units A.
171, the individual processing unit B172, and the individual processing unit C173. The processing result of the individual processing unit A171 is stored in the calculation result storage RAMs 176 to 178, and the processing result of the individual processing unit B172 is stored in the calculation result storage RAMs 176 to 178. The processing result of the individual processing unit C173 is the calculation result storage RAM1.
76 to 178, respectively.

【0050】本実施例では、CPU102により周期的
に周期処理対象3に対して、読み出し処理および書き込
み処理が実行される。このうち、読み出し処理が行なわ
れた場合、読み出されたデータの処理を、CPU102
が実行するのではなく、周期通信処理装置160が、あ
らかじめ登録された入力データ属性テーブル161の内
容に従って処理する。このようにすれば、CPU102
は、周期処理による読み書きを実行したのち、周期処理
対象3からの応答を待つことなく、周期処理のための割
込み処理を終了することができ、周期処理に伴うCPU
102の負荷を軽減することができる。
In this embodiment, the CPU 102 periodically executes the reading process and the writing process on the periodic processing target 3. If the read process is performed, the CPU 102 processes the read data.
However, the periodic communication processing device 160 processes according to the contents of the input data attribute table 161 registered in advance. In this way, the CPU 102
Can execute the interrupt processing for the periodic processing without waiting for the response from the periodic processing target 3 after executing the reading and writing by the periodic processing.
The load on 102 can be reduced.

【0051】本実施例の振り分け処理部162は、バス
通信制御部164から入力データを受けとって、あらか
じめ登録された入力データ属性テーブル161の内容に
従って、該データを処理する個別処理部を定め、該個別
処理部に、入力データと、処理結果の格納場所とを通知
する。本実施例のバス通信制御部164は、振り分け処
理部162に、通信用バス2を介して周期処理対象3か
ら転送されたデータと、該データの転送元のアドレスと
を通知する。振り分け処理部162の処理は、このバス
通信制御部163からのデータの転送により起動され
る。
The distribution processing unit 162 of this embodiment receives the input data from the bus communication control unit 164, determines the individual processing unit for processing the data according to the contents of the input data attribute table 161 registered in advance, and The individual processing unit is notified of the input data and the storage location of the processing result. The bus communication control unit 164 of this embodiment notifies the distribution processing unit 162 of the data transferred from the cyclic processing target 3 via the communication bus 2 and the address of the transfer source of the data. The processing of the distribution processing unit 162 is activated by the transfer of data from the bus communication control unit 163.

【0052】振り分け処理部162の処理の流れを図1
3に示す。まず、振り分け処理部162は、バス通信制
御部163から通知された転送元のアドレスを基に、入
力データ識別子を判定する(ステップ1301)。つぎ
に、振り分け処理部162は、この判定した入力データ
識別子を基に、入力データ属性テーブル161を検索
し、入力データ識別子格納領域181に該入力データ識
別子を保持する項目の、振り分け先アドレス格納領域1
82および格納先アドレス格納領域183を読み込む
(ステップ1302)。最後に、振り分け処理部162
は、振り分け先アドレス格納領域182から読み込んだ
アドレス(このアドレスはあらかじめ定められた個別処
理部(171〜173のいずれか)を示している)に、
入力データと、読み込んだ格納先アドレス格納領域18
3の内容とを転送して(ステップ1303)、処理を終
了する。
FIG. 1 shows the flow of processing of the distribution processing unit 162.
3 shows. First, the distribution processing unit 162 determines the input data identifier based on the transfer source address notified from the bus communication control unit 163 (step 1301). Next, the distribution processing unit 162 searches the input data attribute table 161 based on the determined input data identifier, and allocates the input data identifier storage area 181 to the distribution destination address storage area of the item holding the input data identifier. 1
82 and the storage destination address storage area 183 are read (step 1302). Finally, the distribution processing unit 162
Indicates an address read from the allocation destination address storage area 182 (this address indicates a predetermined individual processing unit (any of 171 to 173)),
Input data and read storage destination address storage area 18
3 is transferred (step 1303), and the process is terminated.

【0053】ステップ1303において、転送を受けた
個別処理部は、転送された入力データに、あらかじめ定
められた処理を行ない、結果を、転送された格納先アド
レス格納領域183の保持していたアドレスに、CPU
通信制御部164を介して格納する。
In step 1303, the transferred individual processing unit performs a predetermined process on the transferred input data, and outputs the result to the address held in the transferred storage destination address storage area 183. , CPU
It is stored via the communication control unit 164.

【0054】本実施例の振り分け処理部162の動作例
を図6に示す。ここでは、それぞれ入力データ301〜
310の識別子に相当するアドレスから転送された入力
データがバス通信制御部163より、振り分け処理部1
62に入力された場合を例に説明する。本実施例におい
て、入力データ301〜310の振り分け先のアドレス
は、入力データ301、302、307、310は個別
処理部A171と、入力データ304、305、309
は個別処理部B172と、入力データ303、306、
308は個別処理部C173と、それぞれ入力データ属
性テーブル161上に規定されている。
FIG. 6 shows an operation example of the distribution processing section 162 of this embodiment. Here, the input data 301 to
The input data transferred from the address corresponding to the identifier of 310 is transferred from the bus communication control unit 163 to the distribution processing unit 1
The case where the data is input to 62 will be described as an example. In this embodiment, the addresses of the distribution destinations of the input data 301 to 310 are the input data 301, 302, 307, and 310, the individual processing unit A171, and the input data 304, 305, and 309.
Is the individual processing unit B172 and the input data 303, 306,
308 are defined in the individual processing unit C173 and the input data attribute table 161 respectively.

【0055】入力データは、それぞれ、ステップ130
1において、振り分け処理部162によりその識別子が
入力データ301〜310であると判定され、ステップ
1302により、その転送先および格納アドレスが入力
データ属性テーブル161から読み込まれ、ステップ1
303において、入力データ301、302、307、
310は個別処理部A171に、入力データ304、3
05、309は個別処理部B172に、入力データ30
3、306、308は個別処理部C173に、それぞれ
転送される。
The input data are obtained in step 130, respectively.
In step 1, the distribution processing unit 162 determines that the identifier is the input data 301 to 310, and in step 1302, the transfer destination and storage address are read from the input data attribute table 161.
In 303, input data 301, 302, 307,
Reference numeral 310 denotes the input data 304, 3
05 and 309 are input data 30 to the individual processing unit B172.
3, 306, and 308 are transferred to the individual processing unit C173, respectively.

【0056】個別処理部A171に振り分けられた入力
データ301、302、307、310は、各々、演算
結果格納用RAM176内のアドレス321、322、
327、330に保持された値との算術加算処理を受
け、演算結果は、それぞれ、演算結果格納用RAM17
6内のアドレス321、322、327、330に格納
される。個別処理部B172に振り分けられた入力デー
タ304、305、309は各々演算結果格納用RAM
177内のアドレス324、325、329に保持され
た値との論理加算処理を受け、演算結果は、それぞれ演
算結果格納用RAM格納領域177内のアドレス32
4、325、329に格納される。個別処理部C173
に振り分けられた入力データ303、306、308は
各々演算結果格納用RAM178内のアドレス323、
326、328に保持された値との論理積算処理を受
け、演算結果は、それぞれ演算結果格納用RAM格納領
域178内のアドレス323、326、328に格納さ
れる。
The input data 301, 302, 307, and 310 distributed to the individual processing unit A171 are respectively stored in the addresses 321 and 322 in the calculation result storage RAM 176.
The arithmetic results are subjected to arithmetic addition processing with the values held in 327 and 330, and the arithmetic results are respectively stored in the arithmetic result storage RAM 17
6 are stored at addresses 321, 322, 327, and 330. The input data 304, 305, and 309 distributed to the individual processing unit B172 are RAMs for storing calculation results, respectively.
177, the logical addition processing with the values held in the addresses 324, 325, and 329 in 177 is performed, and the calculation result is calculated as the address 32 in the calculation result storage RAM storage area 177.
4, 325, 329. Individual processing unit C173
The input data 303, 306, and 308 assigned to each are assigned to the address 323 in the calculation result storage RAM 178,
After undergoing logical integration processing with the values held in 326 and 328, the operation results are stored in addresses 323, 326 and 328 in the operation result storage RAM storage area 178, respectively.

【0057】なお、本実施例では、周期処理の発行はC
PU102が実行するが、実施例1の周期通信処理装置
100により、周期処理の発行も、CPU102から独
立して実行するようにしてもよい。
In the present embodiment, the issuance of the periodic processing is C
Although executed by the PU 102, the periodic communication processing device 100 according to the first embodiment may also issue the periodic processing independently of the CPU 102.

【0058】(実施例4)次に、第4の実施例について
説明する。本実施例の周期通信処理装置は、CPU10
2との入出力なしに、登録された周期処理を自律的に行
ない、さらに、この周期処理により読み込まれたデータ
についても、あらかじめ定められた処理を実行し、出力
する装置である。本実施例4の周期通信処理装置の構成
を図7に示す。本実施例の周期通信処理装置200は、
演算部209と、メモリ208と、入出力部211とを
備える。
(Fourth Embodiment) Next, a fourth embodiment will be described. The periodic communication processing device according to the present embodiment includes a CPU 10
It is a device that autonomously performs a registered periodic process without inputting / outputting data to and from the data, and further executes and outputs a predetermined process for the data read by the periodic process. The configuration of the periodic communication processing device of the fourth embodiment is shown in FIG. The periodic communication processing device 200 of this embodiment is
The arithmetic unit 209, the memory 208, and the input / output unit 211 are provided.

【0059】演算部209は、バス通信制御部202
と、調停部210と、走査部セレクタ204と、3つの
周期カウンタ101と、3つのサイクリックテーブル走
査部107と、振り分け処理部203と、テーブルセレ
クタ207と、3つの個別処理部205とを有する。バ
ス通信制御部202は、通信用バス2に接続されてい
る。なお、周期カウンタ101の数は3に限られず、実
行する周期処理の周期の数だけ用意される。また、サイ
クリックテーブル走査部107は、周期カウンタ101
の数だけ用意される。個別処理部205の数も3に限ら
れず、実行する個別処理の種類に応じて用意される。
The arithmetic unit 209 is a bus communication control unit 202.
An arbitration unit 210, a scanning unit selector 204, three cycle counters 101, three cyclic table scanning units 107, a distribution processing unit 203, a table selector 207, and three individual processing units 205. . The bus communication control unit 202 is connected to the communication bus 2. Note that the number of cycle counters 101 is not limited to three, and as many cycles as the cycle processing to be executed are prepared. Further, the cyclic table scanning unit 107 uses the cycle counter 101.
Will be prepared. The number of individual processing units 205 is not limited to three, and may be prepared according to the type of individual processing to be executed.

【0060】メモリ208は、3つのサイクリックテー
ブル111a〜cと、待機リスト112と、優先順位保
持部113と、3つの個別処理テーブル201a〜c
と、3つの結果格納領域206とを備える。なお、結果
格納領域は、個別処理部205の数だけ用意される。ま
た、サイクリックテーブル111a〜cはサイクリック
テーブル走査部107の数だけ用意される。さらに、本
実施例では、個別処理テーブル201a〜cがサイクリ
ックテーブル111の数だけ用意される。個別処理テー
ブル201a〜cには、それぞれ、対応するサイクリッ
クテーブル111a〜cに登録された周期処理のうち、
読み出し処理により読み出されるデータを処理する個別
処理部205のアドレスおよび処理結果を格納するアド
レスが、処理する順に(すなわち、サイクリックテーブ
ルに登録されている読み出し周期処理と同じ順に)登録
されている。なお、本実施例では、個別処理手テーブル
201aはサイクリックテーブル111aに、個別処理
手テーブル201bはサイクリックテーブル111b
に、個別処理手テーブル201cはサイクリックテーブ
ル111cに、それぞれ対応している。
The memory 208 includes three cyclic tables 111a to 111c, a standby list 112, a priority holding unit 113, and three individual processing tables 201a to 201c.
And three result storage areas 206. Note that the result storage areas are prepared as many as the individual processing units 205. Further, the cyclic tables 111a to 111c are prepared as many as the cyclic table scanning units 107. Further, in this embodiment, the individual processing tables 201a to 201c are prepared by the number of the cyclic tables 111. In the individual process tables 201a to 201c, among the periodic processes registered in the corresponding cyclic tables 111a to 111c, respectively,
The address of the individual processing unit 205 that processes the data read by the reading process and the address that stores the processing result are registered in the processing order (that is, in the same order as the reading cycle processing registered in the cyclic table). In this embodiment, the individual processing hand table 201a is the cyclic table 111a, and the individual processing hand table 201b is the cyclic table 111b.
In addition, the individual processing table 201c corresponds to the cyclic table 111c.

【0061】本実施例の入出力部211は、キーボード
と、印書出力装置と、画面表示装置とを備え、優先順位
保持部113、サイクリックテーブル111、個別処理
テーブル201の登録、更新を受け付け、実行する。ま
た、入力に応じて、結果格納領域206の内容を参照
し、出力する。さらに、バス通信制御部202を監視す
ることにより、実行した周期処理を出力するようにして
もよい。また、個別処理部205が結果格納領域206
に処理結果を格納する際に、同じデータを入出力部21
1にも通知するようにし、この処理結果があらかじめ定
められた条件を満たす場合には、入出力部211は、C
PU102にこれを通知するようにしてもよい。
The input / output unit 211 of this embodiment includes a keyboard, a print output device, and a screen display device, and receives registration and update of the priority holding unit 113, the cyclic table 111, and the individual processing table 201. ,Run. In addition, the contents of the result storage area 206 are referred to and output according to the input. Further, the executed cycle process may be output by monitoring the bus communication control unit 202. In addition, the individual processing unit 205 uses the result storage area 206.
When the processing result is stored in the
1 is also notified, and when the processing result satisfies a predetermined condition, the input / output unit 211 outputs C
You may make it notify this to PU102.

【0062】本実施例の周期通信処理装置200の各構
成要素は、周期処理を発行する機能ブロック241と、
周期処理により読み込まれたデータを処理する機能ブロ
ック242と、入出力に関する機能ブロック(図示せ
ず)とに大別することができる。
Each component of the periodic communication processing device 200 of this embodiment includes a functional block 241 for issuing periodic processing,
It can be roughly divided into a functional block 242 that processes data read by the periodic processing and a functional block (not shown) related to input / output.

【0063】入出力に関する機能ブロックには、バス通
信制御部202と、入出力部211とが含まれる。バス
通信制御部202は、走査部セレクタ204から転送さ
れた周期処理情報を基に、周期処理の命令を作成し、通
信用バス2に対して発行する。また、バス通信制御部2
02は、通信用バス2を介して転送されてきたデータ
を、振り分け処理部203に転送する。入出力部211
は、入力を受け付け、該入力に応じて調停部210への
処理開始指示および処理終了指示、メモリ208上のデ
ータの登録および更新、処理結果の参照および出力など
を実行する。
The functional blocks relating to input / output include a bus communication control unit 202 and an input / output unit 211. The bus communication control unit 202 creates a cyclic processing command based on the cyclic processing information transferred from the scanning unit selector 204, and issues it to the communication bus 2. In addition, the bus communication control unit 2
02 transfers the data transferred via the communication bus 2 to the distribution processing unit 203. Input / output unit 211
Receives an input, and executes a processing start instruction and a processing end instruction to the arbitration unit 210, registration and update of data in the memory 208, reference and output of a processing result, and the like in response to the input.

【0064】周期処理を発行する機能ブロック241に
は、調停部210、走査部セレクタ204、周期カウン
タ101、サイクリックテーブル走査部107、優先順
位保持部113、待機リスト112、およびサイクリッ
クテーブル111a〜bが含まれる。これら各構成要素
の動作は、実施例1の場合と同様である。すなわち、周
期カウンタ101の発行する周期起動要求に応じて、サ
イクリックテーブル走査部107が調停部210にバス
の接続を要求し、該要求に応じて調停部210は該サイ
クリックテーブル走査部107を待機リスト112に登
録する。また、調停部210は、待機リスト112に登
録されたサイクリックテーブル走査部107のうち、最
も高い優先順位を有するものを優先順位保持部113を
もとに検出し、このサイクリックテーブル走査部107
をバス通信制御部202に接続するよう走査部セレクタ
204(実施例1のセレクタ121に相当する)に指示
し、バスの接続を該サイクリックテーブル走査部107
に通知する。この通知を受けたサイクリックテーブル走
査部107は、サイクリックテーブルに登録された周期
処理情報を、登録されている順番に読み出し、バス通信
制御部202に転送する。
The function block 241 which issues the periodic process includes the arbitration unit 210, the scanning unit selector 204, the period counter 101, the cyclic table scanning unit 107, the priority order holding unit 113, the waiting list 112, and the cyclic tables 111a to 111a. b is included. The operation of each of these components is the same as in the first embodiment. That is, the cyclic table scanning unit 107 requests the arbitration unit 210 to connect the bus in response to the cyclic activation request issued by the cycle counter 101, and the arbitration unit 210 causes the cyclic table scanning unit 107 to respond to the request. Register in the waiting list 112. Further, the arbitration unit 210 detects the one having the highest priority among the cyclic table scanning units 107 registered in the waiting list 112 based on the priority holding unit 113, and the cyclic table scanning unit 107.
To the bus communication control unit 202 to instruct the scanning unit selector 204 (corresponding to the selector 121 of the first embodiment) to connect the bus to the cyclic table scanning unit 107.
To notify. Upon receiving this notification, the cyclic table scanning unit 107 reads the cyclic processing information registered in the cyclic table in the order in which it is registered, and transfers it to the bus communication control unit 202.

【0065】なお、本実施例4の調停部210も、実施
例1と同様にセレクタ制御部と待機リスト登録部とを備
えている。しかし、本実施例4の調停部210のセレク
タ制御部は、実施例1のセレクタ制御部142とは、テ
ーブルセレクタ207に振り分け処理部203と接続す
る個別処理テーブルを決定する手段と、その接続をテー
ブルセレクタ207に指示する手段とをさらに有する点
で異なっている。
The arbitration unit 210 of the fourth embodiment also includes a selector control unit and a standby list registration unit, as in the first embodiment. However, the selector control unit of the arbitration unit 210 of the fourth embodiment differs from the selector control unit 142 of the first embodiment in that the table selector 207 determines the individual processing table to be connected to the distribution processing unit 203 and its connection. The difference is that it further includes means for instructing the table selector 207.

【0066】本実施例4の調停部210のセレクタ制御
部は、走査部セレクタ204に対して、バスの接続を指
示する際に、テーブルセレクタに対しても、振り分け処
理部203に接続するデータバスの接続を指示する。こ
のとき、本実施例のセレクタ制御部は、振り分け処理部
203と接続する個別処理テーブルには、セレクタ制御
部が走査部セレクタ204に対して接続を指示したサイ
クリックテーブル走査部107に、あらかじめ対応付け
られている個別処理テーブルを、振り分け処理部203
と接続する個別処理テーブルとして決定する。すなわ
ち、本実施例では、サイクリックテーブル111aに接
続されたサイクリックテーブル走査部107がバス通信
制御部202に接続される場合は、個別処理テーブル2
01aが振り分け処理部203に接続される。また、サ
イクリックテーブル111bに接続されたサイクリック
テーブル走査部107がバス通信制御部202に接続さ
れる場合は、個別処理テーブル201bが振り分け処理
部203に接続され、サイクリックテーブル111cに
接続されたサイクリックテーブル走査部107がバス通
信制御部202に接続される場合は、個別処理テーブル
201cが振り分け処理部203に接続される。
The selector control unit of the arbitration unit 210 according to the fourth embodiment, when instructing the scanning unit selector 204 to connect the bus, also connects the table selector with the data bus connected to the distribution processing unit 203. To connect. At this time, the selector control unit of the present embodiment corresponds in advance to the cyclic table scanning unit 107 for which the selector control unit has instructed the scanning unit selector 204 to connect to the individual processing table connected to the distribution processing unit 203. The assigned individual processing table is assigned to the distribution processing unit 203.
It is decided as an individual processing table to be connected with. That is, in this embodiment, when the cyclic table scanning unit 107 connected to the cyclic table 111a is connected to the bus communication control unit 202, the individual processing table 2
01a is connected to the distribution processing unit 203. When the cyclic table scanning unit 107 connected to the cyclic table 111b is connected to the bus communication control unit 202, the individual processing table 201b is connected to the distribution processing unit 203 and is connected to the cyclic table 111c. When the cyclic table scanning unit 107 is connected to the bus communication control unit 202, the individual processing table 201c is connected to the distribution processing unit 203.

【0067】周期処理により読み込まれたデータを処理
する機能ブロック242には、振り分け処理部203
と、テーブルセレクタ207と、個別処理部205と、
結果格納領域206と、個別処理テーブル201a〜2
01cとが含まれる。振り分け処理部203、個別処理
部205、および結果格納領域206(実施例3の演算
結果格納用RAM176〜178に相当する)の動作
は、実施例3と同様である。ただし、振り分け処理部2
03は、入力データの識別子を判定することなく、テー
ブルセレクタ207により接続された個別処理テーブル
(201a〜cのいずれか)に登録された情報を、順番
に参照して、データを転送する個別処理部205と、処
理結果を格納するアドレスを決定する点で、実施例3と
異なっている。
The function block 242 for processing the data read by the periodic processing includes a distribution processing unit 203.
A table selector 207, an individual processing unit 205,
Result storage area 206 and individual processing tables 201a-2
01c is included. The operations of the distribution processing unit 203, the individual processing unit 205, and the result storage area 206 (corresponding to the calculation result storage RAMs 176 to 178 of the third embodiment) are the same as those of the third embodiment. However, the distribution processing unit 2
Reference numeral 03 denotes an individual process for transferring data by sequentially referring to the information registered in the individual process table (any of 201a to 201c) connected by the table selector 207 without determining the identifier of the input data. This is different from the third embodiment in that the unit 205 and the address for storing the processing result are determined.

【0068】本実施例の周期通信処理装置200によれ
ば、CPU102に負荷を掛けることなく、あらかじめ
登録された周期処理を周期に従って実行することがで
き、さらに、実行した周期処理により読み込まれたデー
タの処理についても、CPU102になんら負荷を掛け
ることなく実行することができる。
According to the cyclic communication processing device 200 of this embodiment, it is possible to execute the cyclic process registered in advance according to the cycle without imposing a load on the CPU 102, and further, the data read by the executed cyclic process. This process can also be executed without imposing any load on the CPU 102.

【0069】[0069]

【発明の効果】本発明によれば、周期処理の実行による
CPUの負荷を軽減し、CPUのスループットを向上さ
せることができる。
According to the present invention, it is possible to reduce the load on the CPU due to the execution of the periodic processing and improve the throughput of the CPU.

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

【図1】実施例1のバスシステムを示す説明図である。FIG. 1 is an explanatory diagram illustrating a bus system according to a first embodiment.

【図2】本発明を適用するバスシステムの例を示す説明
図である。
FIG. 2 is an explanatory diagram showing an example of a bus system to which the present invention is applied.

【図3】実施例のサイクリックテーブルの構成を示す説
明図である。
FIG. 3 is an explanatory diagram showing a configuration of a cyclic table according to an embodiment.

【図4】実施例1における調停部の構成を示す説明図で
ある。
FIG. 4 is an explanatory diagram illustrating a configuration of an arbitration unit according to the first embodiment.

【図5】実施例1における調停処理のタイムチャートで
ある。
FIG. 5 is a time chart of arbitration processing in the first embodiment.

【図6】実施例3における入力データ属性テーブルの構
成と作用とを示す説明図である。
FIG. 6 is an explanatory diagram showing the structure and operation of an input data attribute table in the third embodiment.

【図7】実施例4の周期通信処理装置の構成を示す説明
図である。
FIG. 7 is an explanatory diagram illustrating a configuration of a periodic communication processing device according to a fourth embodiment.

【図8】実施例1の周期通信処理装置の構成を示す説明
図である。
FIG. 8 is an explanatory diagram showing a configuration of the periodic communication processing device according to the first embodiment.

【図9】実施例1のサイクリックテーブル走査部の処理
を示す流れ図である。
FIG. 9 is a flowchart showing the processing of the cyclic table scanning unit according to the first embodiment.

【図10】実施例1の調停部の待機リスト登録部の処理
を示す流れ図である。
FIG. 10 is a flowchart showing processing of a waiting list registration unit of the arbitration unit according to the first embodiment.

【図11】実施例1の調停部のセレクタ制御部の処理を
示す流れ図である。
FIG. 11 is a flowchart showing the processing of the selector control unit of the arbitration unit according to the first embodiment.

【図12】実施例2のサイクリックテーブル走査部の処
理を示す流れ図である。
FIG. 12 is a flowchart showing the processing of the cyclic table scanning unit according to the second embodiment.

【図13】実施例3の振り分け処理部の処理を示す流れ
図である。
FIG. 13 is a flowchart showing the processing of a distribution processing unit according to the third embodiment.

【図14】実施例3の周期通信処理装置の構成を示す説
明図である。
FIG. 14 is an explanatory diagram illustrating a configuration of a periodic communication processing device according to a third embodiment.

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

1…データ処理部、 2…通信用バス、 3…データ転
送対象、 101…周期カウンタ、 102…CPU、
103…CPU用RAM、 104…CPU用RO
M、 106…CPU用バス、 107…サイクリック
テーブル走査部、108…メモリ、 109…演算部、
110…周期起動要求信号、 111…サイクリック
テーブル、 112…待機リスト、 113…優先順位
保持部、121…セレクタ、 122…調停部、 12
3…バス通信制御部、 124…CPU通信制御部、
132…アクセス対象ID格納領域、 133…データ
転送開始アドレス格納領域、 134…処理種別格納領
域、 135…アクセスサイズ格納領域、 136…ア
クセスデータ格納領域、 137…データ転送対象領域
のサイズ、 138…データ転送対象領域、 139…
データ転送開始位置、 141…周期処理情報のデータ
バス、 142…セレクタ制御部、 143…待機リス
ト登録部、 145…通信出力部識別子格納領域、 1
46…優先順位格納領域、 147…バス接続、 15
1〜153…周期処理、 154〜156…サイクリッ
クテーブル起動割込、 160…周期通信処理装置、
161…入力データ属性テーブル、 162…振分処理
部、 163…バス通信制御部、 164…CPU通信
制御部、 165…メモリ、 166…演算部、 17
1…個別処理部A(算術加算用)、 172…個別処理
部B(論理加算用)、173…個別処理部C(論理積算
用)、 176〜178…演算結果格納用RAM、 1
81…入力データ識別子格納領域、 182…振り分け
先アドレス格納領域、 183…格納先アドレス格納領
域、 201a〜c…個別処理テーブル、 202…バ
ス通信制御部、 203…振り分け処理部、 204…
走査部セレクタ、 205…個別処理部、 206…結
果格納領域、 207…テーブルセレクタ、 208…
メモリ、 209…演算部、 210…調停部、 21
1…入出力部、 241…周期処理発行ブロック、 2
42…入力データ処理ブロック。
1 ... Data processing unit, 2 ... Communication bus, 3 ... Data transfer target, 101 ... Cycle counter, 102 ... CPU,
103 ... CPU RAM, 104 ... CPU RO
M, 106 ... CPU bus, 107 ... Cyclic table scanning unit, 108 ... Memory, 109 ... Arithmetic unit,
110 ... Periodic activation request signal, 111 ... Cyclic table, 112 ... Standby list, 113 ... Priority holding unit, 121 ... Selector, 122 ... Arbitration unit, 12
3 ... Bus communication control unit, 124 ... CPU communication control unit,
132 ... Access target ID storage area, 133 ... Data transfer start address storage area, 134 ... Processing type storage area, 135 ... Access size storage area, 136 ... Access data storage area, 137 ... Data transfer target area size, 138 ... Data Transfer target area, 139 ...
Data transfer start position, 141 ... Data bus for periodic processing information, 142 ... Selector control section, 143 ... Standby list registration section, 145 ... Communication output section identifier storage area, 1
46 ... Priority storage area, 147 ... Bus connection, 15
1-153 ... Cyclic processing, 154-156 ... Cyclic table start interruption, 160 ... Cyclic communication processing device,
161 ... Input data attribute table, 162 ... Distribution processing unit, 163 ... Bus communication control unit, 164 ... CPU communication control unit, 165 ... Memory, 166 ... Arithmetic unit, 17
1 ... Individual processing unit A (for arithmetic addition), 172 ... Individual processing unit B (for logical addition), 173 ... Individual processing unit C (for logical integration), 176 to 178 ... RAM for storing operation result, 1
81 ... Input data identifier storage area, 182 ... Allocation destination address storage area, 183 ... Storage destination address storage area, 201a-c ... Individual processing table, 202 ... Bus communication control unit, 203 ... Allocation processing unit, 204 ...
Scan unit selector, 205 ... Individual processing unit, 206 ... Result storage area, 207 ... Table selector, 208 ...
Memory, 209 ... Arithmetic unit, 210 ... Arbitration unit, 21
1 ... I / O unit, 241 ... Periodic processing issue block, 2
42 ... Input data processing block.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】演算部とメモリとを備え、少なくとも一つ
の周期処理対象に通信用バスを介して接続され、該周期
処理対象に対して、あらかじめ定められた周期で、あら
かじめ定められたデータ転送処理を繰返し実行する周期
通信処理装置において、 上記メモリは、 少なくとも一つの、一以上の上記データ転送処理の情報
である周期処理情報があらかじめ登録されたサイクリッ
クテーブルと、 バス接続要求を登録するための格納領域である待機リス
トとを有し、 上記演算部は、バス通信制御部と、周期カウンタと、サ
イクリックテーブル走査部と、走査部セレクタと、調停
部とを有し、 上記バス通信制御部は、上記周期処理情報の転送を受け
付け、受け付けた上記周期処理情報を基に、該周期処理
情報により指定された上記周期処理対象に対して、該周
期処理情報により指定されたデータ転送処理を実行する
手段を備え、 上記周期カウンタは、少なくとも一つの、あらかじめ定
められた周期で周期処理起動要求を発行する手段を備
え、 上記サイクリックテーブル走査部は、 上記周期カウンタの周期処理起動要求に応じて、上記調
停部に対してバスの接続要求を発行する手段と、 上記調停部からのバス接続通知に応じて、上記サイクリ
ックテーブルに登録された周期処理情報を読み出し、上
記バス通信制御部に該周期処理情報を転送する手段とを
備え、 上記調停部は、上記待機リストへの登録を行なう待機リ
スト登録部と、上記走査部セレクタの制御を行なうセレ
クタ制御部とを備え、 上記待機リスト登録部は、 上記サイクリックテーブル走査部の上記バス接続要求に
応じて、該要求を発行したサイクリックテーブル走査部
を上記待機リストに登録する手段を備え、 上記セレクタ制御部は、 上記待機リストに登録された上記サイクリックテーブル
走査部のうち、いずれかを接続対象として決定する接続
対象決定手段と、 上記接続対象とされた上記サイクリックテーブル走査部
と、上記バス通信制御部とを接続するよう、走査部セレ
クタに指示する手段とを備え、 上記走査部セレクタは、上記セレクタ制御部の指示に応
じて、指示された上記サイクリックテーブル走査部と、
上記バス通信制御部とを接続する手段を有することを特
徴とする周期通信処理装置。
1. An arithmetic unit and a memory, which are connected to at least one periodic processing target via a communication bus, and predetermined data transfer to the periodic processing target at a predetermined cycle. In the cyclic communication processing device that repeatedly executes processing, the memory stores at least one cyclic table in which cyclic processing information, which is information of one or more data transfer processing, is registered in advance and a bus connection request. And a standby list which is a storage area of the bus communication control unit, the arithmetic unit having a bus communication control unit, a cycle counter, a cyclic table scanning unit, a scanning unit selector, and an arbitration unit. The unit receives the transfer of the cyclic processing information, and based on the received cyclic processing information, sets the cyclic processing target specified by the cyclic processing information to the cyclic processing target. The cyclic counter comprises means for executing a data transfer process specified by the cyclic process information, and the cycle counter comprises at least one means for issuing a cyclic process activation request at a predetermined cycle. The table scanning unit issues means for issuing a bus connection request to the arbitration unit in response to the periodic process activation request of the period counter, and the cyclic table in the cyclic table in response to the bus connection notification from the arbitration unit. Means for reading the registered periodic processing information and transferring the periodic processing information to the bus communication control section, wherein the arbitration section registers the standby list with a standby list registration section and the scanning section selector. And a selector control unit for controlling the above, wherein the standby list registration unit responds to the bus connection request from the cyclic table scanning unit. The selector control unit includes means for registering the cyclic table scanning unit that has issued the request in the standby list, and the selector control unit determines any one of the cyclic table scanning units registered in the standby list as a connection target. Connection means determining means, means for instructing the scanning section selector to connect the cyclic table scanning section to be connected and the bus communication control section, wherein the scanning section selector is the selector In response to an instruction from the control unit, the instructed cyclic table scanning unit,
A periodic communication processing device comprising means for connecting to the bus communication control unit.
【請求項2】請求項1において、 上記接続対象決定手段は、上記待機リストに登録された
上記サイクリックテーブル走査部のうち、最も優先順位
の高いものを接続対象として決定する手段を有すること
を特徴とする周期通信処理装置。
2. The connection target determining means according to claim 1, further comprising means for determining, as the connection target, one of the cyclic table scanning units registered in the waiting list, which has the highest priority. A characteristic periodic communication processing device.
【請求項3】請求項1において、 前記周期処理情報は、データ転送対象の識別子と、デー
タ転送開始アドレスと、データ転送処理が読み出しであ
るか書き込みであるかを示す処理種別と、転送するデー
タのサイズとを有することを特徴とする周期通信処理装
置。
3. The cyclic processing information according to claim 1, wherein the data transfer target identifier, a data transfer start address, a processing type indicating whether the data transfer processing is read or write, and data to be transferred. And a periodic communication processing device.
【請求項4】請求項1において、 前記演算部は、 入力されたデータに、あらかじめ定められた処理を行な
う、少なくとも一つの個別処理部と、 前記データ転送処理により読み出されたデータを上記個
別処理部に振り分ける振り分け処理部とをさらに有し、 前記メモリは、 前記データ転送処理により読み出されたデータの振り分
け先と、振り分け先による該データの処理結果を格納す
る格納領域内の位置とを保持する個別処理テーブルと、 上記処理結果の格納領域とを、さらに有し、 上記個別処理部は、入力されたデータに、あらかじめ定
められた処理を行ない、処理結果を、上記処理結果の格
納領域の入力により指定された位置に格納する手段を有
し、 上記振り分け処理部は、上記個別処理テーブルを参照し
て、前記データ転送処理により読み出されたデータを処
理させる上記個別処理部を判定し、該個別処理部に該デ
ータを転送する手段を有することを特徴とする周期通信
処理装置。
4. The arithmetic unit according to claim 1, wherein the arithmetic unit performs at least one individual processing unit that performs predetermined processing on the input data, and the data read by the data transfer processing by the individual processing unit. The memory further includes a distribution processing unit that distributes the data to the processing unit, and the memory has a distribution destination of the data read by the data transfer processing and a position in a storage area that stores a processing result of the data by the distribution destination. An individual processing table to be held and a storage area for the processing result are further included, and the individual processing unit performs predetermined processing on the input data, and stores the processing result in the storage area for the processing result. Has a means for storing it at a position designated by the input of, and the distribution processing unit refers to the individual processing table to perform the data transfer processing. Ri read data determines the individual processing unit for processing, periodic communication processing device characterized by having means for transferring the data to the individual specific processing sections.
【請求項5】請求項4において、 前記個別処理テーブルは複数備えられ、 前記演算部は、 複数の上記個別処理テーブルのうちの指定された一つ
と、前記振り分け処理部とを接続させる手段を備えるテ
ーブルセレクタをさらに有し、 前記セレクタ制御部は、 上記振り分け処理部と接続する上記個別処理テーブルを
決定する個別処理テーブル決定手段と、 上記決定した個別処理テーブルと上記振り分け処理部と
の接続を上記テーブルセレクタに指示する手段とをさら
に有することを特徴とする周期通信処理装置。
5. The individual processing table according to claim 4, wherein a plurality of the individual processing tables are provided, and the arithmetic unit includes means for connecting a designated one of the plurality of individual processing tables to the distribution processing unit. The selector control unit further includes: an individual processing table determining unit that determines the individual processing table connected to the distribution processing unit; and a connection between the determined individual processing table and the distribution processing unit. A periodic communication processing device, further comprising means for instructing a table selector.
【請求項6】請求項5において、 上記個別処理テーブル決定手段は、前記接続対象決定手
段により記接続対象とされた前記サイクリックテーブル
走査部に対応するものとしてあらかじめ定められた上記
個別処理テーブルを、前記振り分け処理部と接続する個
別処理テーブルとして決定する手段を有することを特徴
とする周期通信処理装置。
6. The individual processing table determining means according to claim 5, wherein the individual processing table determined in advance as the one corresponding to the cyclic table scanning unit which is the connection target by the connection target determining means. A periodic communication processing device, comprising means for determining as an individual processing table connected to the distribution processing unit.
JP00468694A 1994-01-20 1994-01-20 Periodic communication processing device Expired - Fee Related JP3397425B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00468694A JP3397425B2 (en) 1994-01-20 1994-01-20 Periodic communication processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00468694A JP3397425B2 (en) 1994-01-20 1994-01-20 Periodic communication processing device

Publications (2)

Publication Number Publication Date
JPH07210494A true JPH07210494A (en) 1995-08-11
JP3397425B2 JP3397425B2 (en) 2003-04-14

Family

ID=11590786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00468694A Expired - Fee Related JP3397425B2 (en) 1994-01-20 1994-01-20 Periodic communication processing device

Country Status (1)

Country Link
JP (1) JP3397425B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011022781A (en) * 2009-07-15 2011-02-03 Mitsubishi Electric Corp Data transfer apparatus, data transfer method and data transfer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011022781A (en) * 2009-07-15 2011-02-03 Mitsubishi Electric Corp Data transfer apparatus, data transfer method and data transfer program

Also Published As

Publication number Publication date
JP3397425B2 (en) 2003-04-14

Similar Documents

Publication Publication Date Title
US4954945A (en) Processor-selection system
EP0644487A2 (en) Scalable system interrupt structure for a multiprocessing system
JPH02267634A (en) Interrupt system
JPH04328665A (en) Multiprocessor and interrupt arbitrator thereof
JPH04232558A (en) Multiprocessor system
EP0644489A2 (en) Method and apparatus for signalling interrupt information in a data processing system
JPH06236344A (en) Method and apparatus for arbitration between plurality of data transfer requests
JPH0926885A (en) Circuit and method for control for multiple priority interrupt request with reference to microprocessor
JP3397425B2 (en) Periodic communication processing device
US20050066093A1 (en) Real-time processor system and control method
JPH08292932A (en) Multiprocessor system and method for executing task in the same
JPH02171846A (en) Transaction processing system
JPH0612395A (en) Task allocating method in multiprocessor system
JPH10232849A (en) Disk controller
JP2638290B2 (en) Job input processing device
JP2998721B2 (en) An exclusive control method between a parallel processing program and a coprocessor and a computing system having the exclusive control function
JPH09190317A (en) Printing device and printing method
JPH08278939A (en) Method and device for data transfer
JPH0258151A (en) Common bus system
JPH05233479A (en) Panel monitor system
JPH09319708A (en) On-line control process substitution system
JPH05151147A (en) Computer system
JP3206013B2 (en) Direct memory access transfer controller
JPH09146786A (en) Conflict test system and its method
JPH05282243A (en) Bus master device and electronic equipment using the same

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees