JP2888405B2 - Cyclic data control method - Google Patents

Cyclic data control method

Info

Publication number
JP2888405B2
JP2888405B2 JP19886993A JP19886993A JP2888405B2 JP 2888405 B2 JP2888405 B2 JP 2888405B2 JP 19886993 A JP19886993 A JP 19886993A JP 19886993 A JP19886993 A JP 19886993A JP 2888405 B2 JP2888405 B2 JP 2888405B2
Authority
JP
Japan
Prior art keywords
data
cyclic
latest
circuit
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP19886993A
Other languages
Japanese (ja)
Other versions
JPH0738594A (en
Inventor
康博 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP19886993A priority Critical patent/JP2888405B2/en
Publication of JPH0738594A publication Critical patent/JPH0738594A/en
Application granted granted Critical
Publication of JP2888405B2 publication Critical patent/JP2888405B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、制御用データの送受
信をループ状伝送路と外部制御装置とに接続された複数
のステーションで制御する機能を有した分散処理システ
ムに関し、特にループ状伝送路を伝送するサイクリック
データの変化を検出しサイクリックデータを制御するサ
イクリックデータ制御方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed processing system having a function of controlling transmission and reception of control data by a plurality of stations connected to a loop transmission line and an external control device, and more particularly to a loop transmission line. The present invention relates to a method of controlling cyclic data by detecting a change in cyclic data transmitting the data.

【0002】[0002]

【従来の技術】図15は、プロトコルを実現するための
従来の制御用データウェイのステーションの一構成例を
示すブロック図である。図15において、19はステー
ションである。回線11に接続された回線接続部12に
は、メディアアクセス部13が接続されている。メディ
アアクセス部13とデータの送受を行なうバッファメモ
リ14は送信バッファメモリ14aと受信バッファメモ
リ14bを有する。ステーション19には、この他にD
MA転送制御部15、サイクリックメモリ16及びイベ
ント伝送制御部17が設けられ、外部制御装置8が接続
されている。
2. Description of the Related Art FIG. 15 is a block diagram showing a configuration example of a conventional control dataway station for implementing a protocol. In FIG. 15, 19 is a station. A media access unit 13 is connected to a line connection unit 12 connected to the line 11. The buffer memory 14 for transmitting and receiving data to and from the media access unit 13 has a transmission buffer memory 14a and a reception buffer memory 14b. Station 19 also has D
An MA transfer control unit 15, a cyclic memory 16, and an event transmission control unit 17 are provided, and an external control device 8 is connected.

【0003】図17には、フレームの構成図を示す。図
17(a)はトークンフレーム20の構成を示すもので
あり、(10−SD)は開始デリミタ、(10−FC)
はフレーム制御、(10−ED)は終了デリミタであ
る。
FIG. 17 shows a configuration diagram of a frame. FIG. 17A shows the structure of the token frame 20, where (10-SD) is the start delimiter and (10-FC)
Is a frame control, and (10-ED) is an end delimiter.

【0004】また図17(b)はデータフレーム21の
構成を示す図であり、(11−SD)は開始デリミタ、
(11−FC)はフレーム制御、(11−DA)は宛先
アドレス、(11−SA)は送信元アドレス、(11−
INFO)は情報エリア、(11−FCS)はフレーム
チェックシーケンス、(11−ED)は終了デリミタ、
(11−FS)はフレームステータスである。さらに、
サイクリックデータを送信するデータフレームの場合、
(11−INFO)はさらに送信制御情報22とサイク
リックデータ23に分割され、送信制御情報22は、ア
ドレスオフセット情報(12−OFFSET)と送信デ
ータ量(12−LENGTH)から構成される。
FIG. 17B is a diagram showing the structure of a data frame 21, where (11-SD) shows a start delimiter,
(11-FC) is the frame control, (11-DA) is the destination address, (11-SA) is the source address, and (11-FC)
(INFO) is an information area, (11-FCS) is a frame check sequence, (11-ED) is an end delimiter,
(11-FS) is a frame status. further,
For data frames that transmit cyclic data,
(11-INFO) is further divided into transmission control information 22 and cyclic data 23, and the transmission control information 22 includes address offset information (12-OFFSET) and transmission data amount (12-LENGTH).

【0005】図16は上記ステーションを用いて構成し
た制御データウェイ(分散処理システム)の全体概要図
である。この図16においては、ループ状伝送路25に
は複数のステーション19a,19b,19cが接続さ
れ、各ステーション19a,19b,19cにはそれぞ
れ前記図15にも示すように、メディアアクセス部1
3、サイクリックメモリ16およびイベント伝送制御部
17が設けられ、外部制御装置18a,18b,18c
が接続されている。
FIG. 16 is an overall schematic diagram of a control data way (distributed processing system) configured by using the above stations. In FIG. 16, a plurality of stations 19a, 19b, and 19c are connected to the loop transmission path 25, and each of the stations 19a, 19b, and 19c is connected to the media access unit 1 as shown in FIG.
3, a cyclic memory 16 and an event transmission control unit 17 are provided, and external control devices 18a, 18b, 18c
Is connected.

【0006】次に、本従来例の動作について説明する。
ループ状伝送路25に接続されたステーション19が図
17(a)に示した構成のトークンフレーム20を獲得
すると、該ステーション19は同図(b)に示された構
成のデータフレーム21を送信する権利を獲得する。こ
のデータフレーム21には、自ステーションが送信する
ように設定されたサイクリックメモリのエリアのデータ
を載せて送信する。つまり、送信制御情報22のアドレ
スオフセット情報(12−OFFSET)に送信するサ
イクリックデータブロックのサイクリックメモリ先頭か
らのオフセットアドレスを、送信データ量(12−LE
NGTH)には送信するサイクリックデータブロックの
ワード数を載せ、サイクリックデータ23には送信エリ
アに従ったサイクリックメモリ上の実際のデータを載せ
て送信する。
Next, the operation of the conventional example will be described.
When the station 19 connected to the loop transmission path 25 acquires the token frame 20 having the configuration shown in FIG. 17A, the station 19 transmits the data frame 21 having the configuration shown in FIG. Acquire rights. In this data frame 21, the data in the area of the cyclic memory set to be transmitted by the own station is carried and transmitted. That is, the offset address from the beginning of the cyclic memory of the cyclic data block to be transmitted to the address offset information (12-OFFSET) of the transmission control information 22 is determined by the transmission data amount (12-LE
NGTH) carries the number of words of the cyclic data block to be transmitted, and the cyclic data 23 carries actual data on the cyclic memory according to the transmission area.

【0007】さらにこのデータフレーム21の宛先アド
レス(11−DA)はすべてのステーションが受信でき
るようにブロードキャストアドレスとして送信する(図
18参照)。また送信元アドレスは、送信ステーション
の個別アドレスが設定される。このデータフレーム21
を受信したステーションでは受信した送信制御情報22
のアドレスオフセット情報(12−OFFSET)で示
されたオフセットアドレス分サイクリックメモリの先頭
から隔たったアドレスから送信データ量(12−LEN
GTH)に示されたデータ長だけ受信したサイクリック
データ23を展開する(図16参照)。
Further, the destination address (11-DA) of the data frame 21 is transmitted as a broadcast address so that all stations can receive it (see FIG. 18). As the source address, an individual address of the transmitting station is set. This data frame 21
The station that has received the transmission control information 22
From the address separated from the top of the cyclic memory by the offset address indicated by the address offset information (12-OFFSET) of (12-LEN).
GTH) expands the received cyclic data 23 by the data length shown in FIG. 16 (see FIG. 16).

【0008】トークンは伝送路上の接続順序に従って全
ステーションにパスされるため、トークン獲得時に自己
のサイクリックデータフレームを送信することにより、
すべてのステーションがもつサイクリックメモリの内容
はある遅延時間をもって同一に保たれる。従って、外部
制御装置18a,18b,18cがサイクリックメモリ
16内の自己の接続ステーションの送信エリアにデータ
を書き込むとある時間遅延を経てループに接続された全
ステーション19a,19b,19cのサイクリックメ
モリ16の同一エリアに書き込み内容が反映さる。これ
を外部制御装置18a,18b、18cが読むことによ
って外部制御装置間のサイクリックメモリ16を介した
データ伝送がおこなえる。
[0008] Since the token is passed to all stations according to the connection order on the transmission path, by transmitting its own cyclic data frame when acquiring the token,
The contents of the cyclic memories of all the stations are kept the same with a certain delay time. Therefore, when the external control devices 18a, 18b and 18c write data in the transmission area of their own connected station in the cyclic memory 16, the cyclic memories of all the stations 19a, 19b and 19c connected to the loop after a certain time delay. The written contents are reflected in the same area of No. 16. By reading this by the external control devices 18a, 18b, 18c, data transmission between the external control devices via the cyclic memory 16 can be performed.

【0009】こうしたサイクリックデータ伝送におい
て、ある外部制御装置が任意のアドレスのサイクリック
データの変化を検出するためには、外部制御装置が変化
検出したいサイクリックデータを定期的にリードし、前
回値と比較し、最新値を前回値に格納するといったソフ
トウェアによるポーリング方式がとられていた。
In such a cyclic data transmission, in order for a certain external control device to detect a change in cyclic data at an arbitrary address, the external control device periodically reads the cyclic data whose change is to be detected, and reads the previous value. The polling method by software, such as storing the latest value in the previous value, was used.

【0010】[0010]

【発明が解決しようとする課題】従来の分散処理システ
ムにおいてサイクリックデータ伝送方法とサイクリック
データの変化検出方法は以上のような構成により行なわ
れているが、しかしながら、ソフトウェアによるポーリ
ング方式であるため、サイクリックデータの変化検出を
速やかに行なうことができず、また、外部制御装置の負
荷増加を招くという問題点があった。
In the conventional distributed processing system, the method of transmitting cyclic data and the method of detecting change of cyclic data are performed by the above-mentioned configuration. However, there has been a problem that the change of the cyclic data cannot be detected quickly, and the load on the external control device is increased.

【0011】この発明は上記のような問題点を解消する
ためになされたもので、サイクリックデータの変化の検
出を外部制御装置で行なわずに、各ステーションの転送
制御部で行なうようにすることにより、外部制御装置の
負荷を減少させ、また、サイクリックデータの変化検出
を速やかに行なうことができるサイクリックデータ制御
方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and the detection of a change in cyclic data is performed not by an external control device but by a transfer control unit of each station. Accordingly, an object of the present invention is to provide a cyclic data control method capable of reducing the load on an external control device and promptly detecting a change in cyclic data.

【0012】[0012]

【課題を解決するための手段】請求項1の発明において
は、変化検出制御回路9は、最新のサイクリックデータ
受信時に一旦このデータを最新値レジスタ5aに格納
し、最新値サイクリックメモリ4aにデータを書き込む
のと同じサイクルで、前回値サイクリックメモリ4bか
ら前回値を、論理和回路6bの出力によって検定し、該
出力が無意であれば最新サイクリックデータの受信を継
続し、該出力が有意であれば割り込み信号生成回路7に
より外部に対して割り込み信号を生成させるとともに最
新値レジスタ5aに格納されている最新サイクリックデ
ータを前回値サイクリックメモリ4bの同一アドレスに
書き込み、その後最新サイクリックデータの受信を継続
するが、外部から変化検出ロック解除されるまでは最新
値サイクリックメモリ4aに最新サイクリックデータを
書き込むのみとする制御を行なうことを特徴とするもの
である。
According to the first aspect of the present invention, when the latest cyclic data is received, the change detection control circuit 9 temporarily stores the data in the latest value register 5a and stores the data in the latest value cyclic memory 4a. In the same cycle as writing the data, the previous value from the previous value cyclic memory 4b is tested by the output of the OR circuit 6b, and if the output is insignificant, the reception of the latest cyclic data is continued, and the output is If significant, an interrupt signal is generated externally by the interrupt signal generation circuit 7 and the latest cyclic data stored in the latest value register 5a is written to the same address of the previous value cyclic memory 4b, and then the latest cyclic data is written. Continues receiving data, but keeps the latest cyclic memo until the change detection lock is released from outside. It is characterized in that for performing control to only write the latest cyclic data 4a.

【0013】請求項2の発明においては、請求項1の構
成を有し、更にサイクリックデータの変化が検出された
サイクリックメモリのアドレスと排他的論理和回路6a
の出力を格納するレジスタ5b,5dをそれぞれ設け、
外部からレジスタ5b,5bの内容を読み出す外部イン
タフェース回路8を備えたことを特徴とするものであ
る。
According to a second aspect of the present invention, there is provided the configuration of the first aspect, further comprising an address of the cyclic memory at which the change of the cyclic data is detected and the exclusive OR circuit 6a.
Registers 5b and 5d for storing the outputs of
An external interface circuit 8 for reading the contents of the registers 5b and 5b from outside is provided.

【0014】請求項3の発明においては、変化検出制御
回路9は、最新のサイクリックデータ受信時に一旦この
データを最新値レジスタ5aに格納し、最新値サイクリ
ックメモリ4aにデータを書き込むのと同じサイクル
で、前回値サイクリックメモリ4bから前回値を、変化
検出マスクメモリ4cからマスクデータを読み出し、論
理和回路6bの出力を検定し、該出力が無意であれば最
新サイクリックデータの受信を継続し、該出力が有意で
あれば割り込み信号生成回路7により外部に対して割り
込み信号を生成させるとともに最新値レジスタ5aに格
納されている最新サイクリックデータを前回値サイクリ
ックメモリ4bの同一アドレスに書き込み、その後最新
サイクリックデータの受信を継続するが、外部から変化
検出ロックが解除されるまでは最新値サイクリックメモ
リ4aに最新サイクリックデータを書き込むのみとする
制御を行なうことを特徴とするものである。
According to the third aspect of the present invention, the change detection control circuit 9 stores the latest cyclic data in the latest value register 5a when receiving the latest cyclic data, and writes the data into the latest value cyclic memory 4a. In the cycle, the previous value is read from the previous value cyclic memory 4b, the mask data is read from the change detection mask memory 4c, and the output of the OR circuit 6b is tested. If the output is insignificant, the reception of the latest cyclic data is continued. If the output is significant, an interrupt signal is generated externally by the interrupt signal generation circuit 7 and the latest cyclic data stored in the latest value register 5a is written to the same address of the previous value cyclic memory 4b. After that, reception of the latest cyclic data is continued, but the change detection lock is externally released. Until that is characterized in carrying out the control to only write the latest cyclic data current value cyclically memory 4a.

【0015】請求項4の発明においては、請求項3の構
成を有し、サイクリックデータの変化が検出されたサイ
クリックメモリのアドレスと論理積回路6cの出力を格
納するレジスタ5b,5dをそれぞれ設け、外部から読
み出す外部インタフェース回路8を備えたことを特徴と
するものである。
According to a fourth aspect of the present invention, there is provided the configuration of the third aspect, wherein the registers 5b and 5d for storing the address of the cyclic memory in which the change of the cyclic data is detected and the output of the AND circuit 6c are respectively provided. And an external interface circuit 8 for reading from outside.

【0016】請求項5の発明においては、変化検出制御
回路9は、最新のサイクリックデータ受信時に一旦この
データを最新値レジスタ5aに格納し、最新値サイクリ
ックメモリ4aにデータを書き込むのと同じサイクル
で、前回値サイクリックメモリ4bから前回値を、オン
変化検出マスクメモリ4dからオン変化変化検出マスク
データを、オフ変化検出マスクメモリ4eからオフ変化
検出マスクデータを読み出し、論理和回路6hの出力を
検定し、該出力が無意であれば最新サイクリックデータ
の受信を継続し、該出力が有意であれば上記割り込み信
号生成回路7により外部に対して割り込み信号を生成さ
せるとともに最新値レジスタ5aに格納されている最新
サイクリックデータを前回値サイクリックメモリ4bの
同一アドレスに書き込み、その後最新サイクリックデー
タの受信を継続するが、外部から変化検出ロックが解除
されるまでは最新値サイクリックメモリ4aに最新サイ
クリックデータを書き込むのみとする制御を行なうこと
を特徴とするものである。
In the invention of claim 5, the change detection control circuit 9 stores the data in the latest value register 5a once when the latest cyclic data is received, and writes the data in the latest value cyclic memory 4a. In the cycle, the previous value is read from the previous value cyclic memory 4b, the ON change detection mask data is read from the ON change detection mask memory 4d, and the OFF change detection mask data is read from the OFF change detection mask memory 4e. If the output is insignificant, the reception of the latest cyclic data is continued. If the output is significant, an interrupt signal is generated externally by the interrupt signal generation circuit 7 and stored in the latest value register 5a. The latest cyclic data stored is written to the same address of the previous value cyclic memory 4b. Receiving the latest cyclic data thereafter, but performing control such that only the latest cyclic data is written to the latest value cyclic memory 4a until the change detection lock is released from the outside. It is.

【0017】請求項6の発明においては、請求項5の構
成を有し、更に、サイクリックデータ変化検出されたサ
イクリックメモリのアドレスとオン変化論理積回路6e
の出力を格納するレジスタ5b,5gと、オフ変化論理
積回路6gの出力を格納するレジスタ5hとをそれぞれ
設け、上記レジスタの内容を外部から読み出す外部イン
タフェース回路8を備えたことを特徴とするものであ
る。
According to a sixth aspect of the present invention, there is provided the configuration of the fifth aspect, further comprising an address of the cyclic memory in which the cyclic data change is detected and an on-change AND circuit 6e.
And an external interface circuit 8 for reading the contents of the register from the outside, provided respectively with registers 5b and 5g for storing the output of the register 5h and a register 5h for storing the output of the off-change AND circuit 6g. It is.

【0018】[0018]

【作用】請求項1の発明においては、最新のサイクリッ
クデータを受信すると、このデータは一旦最新値レジス
タ5aに格納される。前回値サイクリックメモリ4bか
らの前回値は、最新値サイクリックメモリ4aにデータ
を書き込むのと同じサイクルで、論理和回路6bの出力
によって検定される。該出力が無意であれば最新サイク
リックデータの受信が継続され、該出力が有意であれば
割り込み信号生成回路7により外部に対して割り込み信
号が生成される。また、最新値レジスタ5aに格納され
ている最新サイクリックデータは前回値サイクリックメ
モリ4bの同一アドレスに書き込まれ、その後、最新サ
イクリックデータの受信は継続するが、外部から変化検
出ロックが解除されるまでは最新値サイクリックメモリ
4aに最新サイクリックデータが書き込まれる。
According to the first aspect of the present invention, when the latest cyclic data is received, the data is temporarily stored in the latest value register 5a. The previous value from the previous value cyclic memory 4b is tested by the output of the OR circuit 6b in the same cycle as writing data to the latest value cyclic memory 4a. If the output is insignificant, reception of the latest cyclic data is continued, and if the output is significant, the interrupt signal generation circuit 7 generates an interrupt signal to the outside. Further, the latest cyclic data stored in the latest value register 5a is written to the same address of the previous value cyclic memory 4b, and thereafter, the reception of the latest cyclic data continues, but the change detection lock is externally released. Until the latest cyclic data is written to the latest cyclic memory 4a.

【0019】請求項2の発明においては、レジスタ5b
には、サイクリックデータの変化が検出されたサイクリ
ックメモリのアドレスが格納され、レジスタ5dには排
他的論理和回路6aの出力が格納される。外部インタフ
ェース回路8は外部からレジスタ5b,5dの内容を読
み出す。
According to the second aspect of the present invention, the register 5b
Stores the address of the cyclic memory at which the change of the cyclic data is detected, and the register 5d stores the output of the exclusive OR circuit 6a. The external interface circuit 8 reads the contents of the registers 5b and 5d from outside.

【0020】請求項3の発明においては、最新のサイク
リックデータの受信時に、このデータは一旦最新値レジ
スタ5aに格納され、最新値サイクリックメモリ4aに
データを書き込むのと同じサイクルで、前回値サイクリ
ックメモリ4bから前回値が読み出され、変化検出マス
クメモリ4cからマスクデータが読み出され、論理和回
路6bの出力が検定される。該出力が無意であれば最新
サイクリックデータの受信が継続され、該出力が有意で
あれば割り込み信号生成回路7により外部に対して割り
込み信号が生成される。また、最新値レジスタ5aに格
納されている最新サイクリックデータは前回値サイクリ
ックメモリ4bの同一アドレスに書き込まれ、その後、
最新サイクリックデータの受信は継続するが、外部から
変化検出ロックが解除されるまでは最新値サイクリック
メモリ4aに最新サイクリックデータが書き込まれる。
According to the third aspect of the present invention, when the latest cyclic data is received, the data is temporarily stored in the latest value register 5a, and in the same cycle as writing the data to the latest value cyclic memory 4a, the previous value is stored. The previous value is read from the cyclic memory 4b, the mask data is read from the change detection mask memory 4c, and the output of the OR circuit 6b is tested. If the output is insignificant, reception of the latest cyclic data is continued, and if the output is significant, the interrupt signal generation circuit 7 generates an interrupt signal to the outside. The latest cyclic data stored in the latest value register 5a is written to the same address of the previous value cyclic memory 4b, and thereafter,
The reception of the latest cyclic data continues, but the latest cyclic data is written to the latest value cyclic memory 4a until the change detection lock is released from outside.

【0021】請求項4の発明においては、レジスタ5b
には、サイクリックデータの変化が検出されたサイクリ
ックメモリのアドレスが格納され、レジスタ5dには論
理積回路6cの出力が格納される。外部インタフェース
回路8は外部からレジスタ5b,5dの内容を読み出
す。
According to the fourth aspect of the present invention, the register 5b
Stores the address of the cyclic memory at which the change of the cyclic data is detected, and the register 5d stores the output of the AND circuit 6c. The external interface circuit 8 reads the contents of the registers 5b and 5d from outside.

【0022】請求項5の発明においては、最新のサイク
リックデータの受信時に、このデータは最新値レジスタ
5aに格納され、最新値サイクリックメモリ4aにデー
タを書き込むのと同じサイクルで、前回値サイクリック
メモリ4bから前回値が読み出され、オン変化検出マス
クメモリ4dからオン変化検出マスクデータが読み出さ
れ、オフ変化検出マスクメモリ4eからオフ変化検出マ
スクデータが読み出される。そして論理和回路6hの出
力が検定され、該出力が無意であれば最新サイクリック
データの受信が継続され、該出力が有意であれば割り込
み信号生成回路7により外部に対して割り込み信号が生
成される。また、最新値レジスタ5aに格納されている
最新サイクリックデータは前回値サイクリックメモリ4
bの同一アドレスに書き込まれ、その後最新サイクリッ
クデータの受信は継続するが、外部から変化検出ロック
が解除されるまでは、最新値サイクリックメモリ4aに
最新サイクリックデータが書き込まれる。
In the present invention, when the latest cyclic data is received, this data is stored in the latest value register 5a, and in the same cycle as writing the data to the latest value cyclic memory 4a, the previous value data is stored. The previous value is read from the click memory 4b, the ON change detection mask data is read from the ON change detection mask memory 4d, and the OFF change detection mask data is read from the OFF change detection mask memory 4e. Then, the output of the OR circuit 6h is tested. If the output is insignificant, reception of the latest cyclic data is continued. If the output is significant, an interrupt signal is generated by the interrupt signal generating circuit 7 to the outside. You. Also, the latest cyclic data stored in the latest value register 5a is stored in the previous value cyclic memory 4.
b, the reception of the latest cyclic data continues, but the latest cyclic data is written to the latest value cyclic memory 4a until the change detection lock is released from the outside.

【0023】請求項6の発明においては、レジスタ5b
には、サイクリックデータが変化検出されたサイクリッ
クメモリのアドレスが格納され、レジスタ5gにはオン
変化論理積回路6eの出力が格納される。外部インタフ
ェース回路8は外部からレジスタ5b,5gの内容を読
み出す。
According to the invention of claim 6, the register 5b
Stores the address of the cyclic memory at which the change of the cyclic data is detected, and the register 5g stores the output of the on-change AND circuit 6e. The external interface circuit 8 reads the contents of the registers 5b and 5g from outside.

【0024】[0024]

【実施例】実施例1(請求項1,2).図1は、本発明
の実施例1の構成を示すブロック図である。図1は、従
来例のDMA転送制御部15の内容を改良した実施例1
としてのDMA転送制御部の構成を示している。図1に
おいて、サイクリックデータ受信回路1にアドレスバス
2とデータバス3aを介して、最新値サイクリックメモ
リ4aが接続されている。さらに、データバス3aには
最新値レジスタ5aが接続され、アドレスバス2にはア
ドレスレジスタ5bが接続されている。前回値サイクリ
ックメモリ4bは、アドレス入力にアドレスバス2が接
続され、データ入出力にはデータバス3bが接続されて
いる。データバス3bには最新値レジスタ5aと前回値
レジスタ5cが接続されている。排他的論理和回路6a
のA入力には、最新値レジスタ5aの出力が、B入力に
は前回値レジスタ5cの出力が接続されている。排他的
論理和回路6aの出力には、変化ビットレジスタ5dと
論理和回路6bが接続され、論理和回路6bの出力に
は、割り込み信号生成回路7が接続されている。アドレ
スレジスタ5bと変化ビットレジスタ5dの出力は、外
部インタフェース回路8に接続されている。そして、上
記の各構成要素を制御するために変化検出制御回路9が
ある。
Embodiment 1 (Claims 1 and 2). FIG. 1 is a block diagram showing the configuration of the first embodiment of the present invention. FIG. 1 shows a first embodiment in which the contents of a conventional DMA transfer control unit 15 are improved.
1 shows a configuration of a DMA transfer control unit. In FIG. 1, a latest value cyclic memory 4a is connected to a cyclic data receiving circuit 1 via an address bus 2 and a data bus 3a. Further, the latest value register 5a is connected to the data bus 3a, and the address register 5b is connected to the address bus 2. In the previous value cyclic memory 4b, the address bus 2 is connected to the address input, and the data bus 3b is connected to the data input / output. The latest value register 5a and the previous value register 5c are connected to the data bus 3b. Exclusive OR circuit 6a
The A input is connected to the output of the latest value register 5a, and the B input is connected to the output of the previous value register 5c. The output of the exclusive OR circuit 6a is connected to the change bit register 5d and the OR circuit 6b, and the output of the OR circuit 6b is connected to the interrupt signal generation circuit 7. Outputs of the address register 5b and the change bit register 5d are connected to the external interface circuit 8. Then, there is a change detection control circuit 9 for controlling each of the above components.

【0025】図2にこの実施例1における典型的な処理
の流れを時系列的に示す。また、図3,図4にこの処理
のフローチャートを示す。図1〜図4を用いて本実施例
1の動作を説明する。変化検出制御回路9は、最新のサ
イクリックデータ受信時に一旦このデータを最新値レジ
スタ5aに格納し(ステップ31)、最新値サイクリッ
クメモリ4aにデータを書き込む(ステップ32)のと
同じサイクルで、前回値サイクリックメモリ4bから前
回値を読み出す(ステップ33)。このとき、最新値サ
イクリックメモリ4aと前回値サイクリックメモリ4b
は同じアドレスバス2に接続されているため、同一アド
レスオフセットをもつデータをアクセスする。データバ
ス3b経由で前回値データは前回値レジスタ5cにセッ
トされる。その後、最新値レジスタ5aの出力と前回値
レジスタ5cの出力は排他的論理和回路6aでビット毎
に排他的論理和演算が行なわれる(ステップ34)。も
し、前回値と最新値に相違があると、変化のあったビッ
トは有意になる。排他的論理和回路6aのビット毎の出
力全てを論理和回路6bで論理和演算を行なう。もし、
いずれかのビットが有意である場合(ステップ35)、
つまり、いずれかのビットで前回値と最新値に相違があ
ると、この論理和回路6bの出力は有意になる。
FIG. 2 shows a typical flow of processing in the first embodiment in chronological order. FIGS. 3 and 4 show flowcharts of this processing. The operation of the first embodiment will be described with reference to FIGS. When the latest cyclic data is received, the change detection control circuit 9 temporarily stores the data in the latest value register 5a (step 31) and writes the data to the latest value cyclic memory 4a (step 32) in the same cycle as The previous value is read from the previous value cyclic memory 4b (step 33). At this time, the latest value cyclic memory 4a and the previous value cyclic memory 4b
Are connected to the same address bus 2 and therefore access data having the same address offset. The previous value data is set in the previous value register 5c via the data bus 3b. Then, the exclusive OR circuit 6a performs an exclusive OR operation for each bit of the output of the latest value register 5a and the output of the previous value register 5c (step 34). If there is a difference between the previous value and the latest value, the changed bit becomes significant. All the outputs for each bit of the exclusive OR circuit 6a are subjected to a logical OR operation by the logical OR circuit 6b. if,
If any bits are significant (step 35),
That is, if there is a difference between the previous value and the latest value in any of the bits, the output of the OR circuit 6b becomes significant.

【0026】論理和回路6bの出力を、該出力が無意で
あれば変化検出制御回路9は次のサイクリックデータの
受信を継続し、変化検出処理はここでキャンセルされ
る。該出力が有意であれば割り込み信号生成回路7は外
部に対して割り込み信号を生成させる(ステップ3
7)。このとき、変化検出制御回路9は最新値レジスタ
5aに格納されている最新サイクリックデータを前回値
サイクリックメモリ4bのアドレスレジスタ5bに格納
されているアドレスに書き込み(ステップ36)、その
後最新サイクリックデータの受信を継続する。
If the output of the OR circuit 6b is insignificant, the change detection control circuit 9 continues to receive the next cyclic data, and the change detection processing is canceled here. If the output is significant, the interrupt signal generation circuit 7 generates an interrupt signal to the outside (step 3).
7). At this time, the change detection control circuit 9 writes the latest cyclic data stored in the latest value register 5a to the address stored in the address register 5b of the previous value cyclic memory 4b (step 36), and thereafter updates the latest cyclic data. Continue receiving data.

【0027】外部からは、外部インタフェース回路8を
通じてアドレスレジスタ5bと変化ビットレジスタ5d
の値を任意の時点で読むことが可能である。
From outside, the address register 5b and the change bit register 5d are passed through the external interface circuit 8.
Can be read at any time.

【0028】ただし、サイクリックデータ変化検出後、
連続してサイクリックデータ変化検出処理を行なうと、
外部から外部インタフェース回路8を通じてアドレスレ
ジスタ5bと変化ビットレジスタ5dの値を読む前に、
新たなサイクリックデータ変化検出が発生し新規のデー
タで上書きされる可能性があるため、これを避けるた
め、外部から外部インタフェース回路8を経由して変化
検出ロック(ステップ38)が解除されるまでは(ステ
ップ39)、最新値サイクリックメモリに最新サイクリ
ックデータを書き込む(ステップ40,41)のみとし
上記の変化検出処理は行なわない。
However, after detecting a change in cyclic data,
If the cyclic data change detection process is performed continuously,
Before reading the values of the address register 5b and the change bit register 5d from outside through the external interface circuit 8,
Since new cyclic data change detection may occur and be overwritten with new data, in order to avoid this, the change detection lock (step 38) is released from the outside via the external interface circuit 8. (Step 39), only the latest cyclic data is written in the latest value cyclic memory (steps 40 and 41), and the above change detection processing is not performed.

【0029】実施例2(請求項3,4対応).図5,図
6は、本発明の実施例2を示す図である。図5,図6
は、従来例のDMA転送制御部15の内容を改良した実
施例2としてのDMA転送制御部の構成を示している。
図5,図6において、サイクリックデータ受信回路1に
アドレスバス2とデータバス3aを介して、最新値サイ
クリックメモリ4aが接続されている。さらに、データ
バス3aには、最新値レジスタ5aが、アドレスバス2
にはアドレスレジスタ5bが接続されている。前回値サ
イクリックメモリ4bは、アドレス入力にアドレスバス
2が接続され、データ入出力にはデータバス3bが接続
されている。変化検出マスクメモリ4cは、アドレス入
力にアドレスバス3が接続され、データ入出力にはデー
タバス3cが接続されている。データバス3bには最新
値レジスタ5aと前回値レジスタ5cが接続されてい
る。データバス3bには変化検出マスクレジスタ5dが
接続されている。排他的論理和回路6aのA入力には、
最新値レジスタ5aの出力が、B入力には前回値レジス
タ5bの出力が接続されている。論理積回路6cのA入
力には排他的論理和回路6aの出力が、B入力には変化
検出マスクレジスタ5dの出力が接続されている。論理
積回路6cの出力には、変化ビットレジスタ5dと論理
和回路6bが接続され、論理和回路6bの出力には、割
り込み信号生成回路7が接続されている。アドレスレジ
スタ5bと変化ビットレジスタ5dの出力は、外部イン
タフェース回路8に接続されている。そして、上記の各
構成要素を制御するために変化検出制御回路9がある。
Embodiment 2 (corresponding to claims 3 and 4). 5 and 6 are diagrams showing a second embodiment of the present invention. 5 and 6
2 shows a configuration of a DMA transfer control unit according to a second embodiment in which the contents of the DMA transfer control unit 15 of the conventional example are improved.
5 and 6, the latest value cyclic memory 4a is connected to the cyclic data receiving circuit 1 via the address bus 2 and the data bus 3a. Further, the latest value register 5a is provided on the data bus 3a.
Is connected to an address register 5b. In the previous value cyclic memory 4b, the address bus 2 is connected to the address input, and the data bus 3b is connected to the data input / output. In the change detection mask memory 4c, the address bus 3 is connected to the address input, and the data bus 3c is connected to the data input / output. The latest value register 5a and the previous value register 5c are connected to the data bus 3b. A change detection mask register 5d is connected to the data bus 3b. The A input of the exclusive OR circuit 6a includes:
The output of the latest value register 5a is connected to the output of the last value register 5b, and the B input is connected to the output of the previous value register 5b. The output of the exclusive OR circuit 6a is connected to the A input of the AND circuit 6c, and the output of the change detection mask register 5d is connected to the B input. The output of the AND circuit 6c is connected to the change bit register 5d and the OR circuit 6b, and the output of the OR circuit 6b is connected to the interrupt signal generation circuit 7. Outputs of the address register 5b and the change bit register 5d are connected to the external interface circuit 8. Then, there is a change detection control circuit 9 for controlling each of the above components.

【0030】次に、図5〜図9を参照して本実施例2の
動作について説明する。図7に本実施例2の典型的な処
理の流れを時系列的に示す。図8,図9にその処理のフ
ローチャートを示す。図5,図6において、変化検出制
御回路9は、最新のサイクリックデータ受信時に一旦こ
のデータを最新値レジスタ5aに格納し(ステップ6
1)、最新値サイクリックメモリ4aにデータを書き込
む(ステップ62)のと同じサイクルで、前回値サイク
リックメモリ4bから前回値を(ステップ63)、変化
検出マスクメモリ4cから変化検出マスクデータを読み
出す(ステップ64)。このとき、最新値サイクリック
メモリ4aと前回値サイクリックメモリ4bと変化検出
マスクメモリ4cは同じアドレスバス2に接続されてい
るため、同一アドレスオフセットもつデータをアクセス
する。データバス3b経由で前回値データは前回値レジ
スタ5cにセットされる。また、データバス3c経由で
変化検出マスクデータは変化検出マスクレジスタ5dに
セットされる。
Next, the operation of the second embodiment will be described with reference to FIGS. FIG. 7 shows a typical processing flow of the second embodiment in chronological order. 8 and 9 show flowcharts of the processing. 5 and 6, the change detection control circuit 9 temporarily stores the latest cyclic data in the latest value register 5a when receiving the latest cyclic data (step 6).
1) In the same cycle as writing data to the latest value cyclic memory 4a (step 62), the previous value is read from the previous value cyclic memory 4b (step 63), and the change detection mask data is read from the change detection mask memory 4c. (Step 64). At this time, since the latest value cyclic memory 4a, previous value cyclic memory 4b, and change detection mask memory 4c are connected to the same address bus 2, data having the same address offset is accessed. The previous value data is set in the previous value register 5c via the data bus 3b. The change detection mask data is set in the change detection mask register 5d via the data bus 3c.

【0031】その後、最新値レジスタ5aの出力と前回
値レジスタ5cの出力は排他的論理和回路6aでビット
毎に排他的論理和演算が行なわれる(ステップ65)。
もし、前回値と最新値に相違があると、変化のあったビ
ットは有意になる。排他的論理和回路6aの出力は、変
化検出マスクレジスタ5dの出力と、論理積回路6cで
ビット毎に論理積がとられる。前回値と最新値に相違が
あっても、変化検出マスクデータの該当ビットは有意で
なければ(ステップ66)、論理積の結果は有意にはな
らない。論理積回路6cのビット毎の出力全てを論理和
回路6bで論理和演算を行なう。もし、いずれかのビッ
トが有意である場合、つまり、いずれかのビットで前回
値と最新値に相違があり変化検出マスクされていない場
合、この論理和回路6bの出力は有意になる。
Thereafter, the exclusive OR circuit 6a performs an exclusive OR operation for each bit of the output of the latest value register 5a and the output of the previous value register 5c (step 65).
If there is a difference between the previous value and the latest value, the changed bit becomes significant. The output of the exclusive OR circuit 6a is ANDed with the output of the change detection mask register 5d for each bit by the AND circuit 6c. Even if there is a difference between the previous value and the latest value, if the corresponding bit of the change detection mask data is not significant (step 66), the result of the logical product is not significant. The logical sum circuit 6b performs a logical sum operation on all the outputs for each bit of the logical product circuit 6c. If any bit is significant, that is, if there is a difference between the previous value and the latest value in any bit and the change detection is not masked, the output of the OR circuit 6b becomes significant.

【0032】論理和回路6bの出力を、該出力が無意で
あれば変化検出制御回路9は次のサイクリックデータの
受信を継続し、変化検出処理はここでキャンセルされ
る。該出力が有意であれば割り込み信号生成回路7は外
部に対して割り込み信号を生成させる(ステップ6
8)。このとき、変化検出制御回路9は最新値レジスタ
5aに格納されている最新サイクリックデータを前回値
サイクリックメモリ4bのアドレスレジスタ5bに格納
されているアドレスに書き込み(ステップ67)、その
後最新サイクリックデータの受信を継続する。外部から
は、外部インタフェース回路8を通じてアドレスレジス
タ5bと変化ビットレジスタ5dの値を任意の時点で読
むことが可能である。
If the output of the OR circuit 6b is insignificant, the change detection control circuit 9 continues to receive the next cyclic data, and the change detection processing is canceled here. If the output is significant, the interrupt signal generation circuit 7 generates an interrupt signal to the outside (step 6).
8). At this time, the change detection control circuit 9 writes the latest cyclic data stored in the latest value register 5a to the address stored in the address register 5b of the previous value cyclic memory 4b (step 67), and thereafter updates the latest cyclic data. Continue receiving data. From outside, the values of the address register 5b and the change bit register 5d can be read at any time through the external interface circuit 8.

【0033】ただし、サイクリックデータ変化検出後、
連続してサイクリックデータ変化検出処理を行なうと、
外部から外部インタフェース回路8を通じてアドレスレ
ジスタ5bと変化ビットレジスタ5dの値を読む前に、
新たなサイクリックデータ変化検出が発生し新規のデー
タで上書きされる可能性があるため、これを避けるた
め、外部から外部インタフェース回路8を経由して変化
検出ロック(ステップ69)が解除されるまでは(ステ
ップ70)、最新値サイクリックメモリに最新サイクリ
ックデータを書き込む(ステップ71,72)のみとし
上記の変化検出処理は行なわない。
However, after detecting a change in cyclic data,
If the cyclic data change detection process is performed continuously,
Before reading the values of the address register 5b and the change bit register 5d from outside through the external interface circuit 8,
Since new cyclic data change detection may occur and be overwritten with new data, in order to avoid this, until the change detection lock (step 69) is released from the outside via the external interface circuit 8. (Step 70), only the latest cyclic data is written into the latest value cyclic memory (steps 71 and 72), and the above-described change detection processing is not performed.

【0034】実施例3(請求項5,6対応).図10,
図11は、本発明の実施例3を示す図である。図10,
図11は、従来例のDMA転送制御部15の内容を改良
した実施例3としてのDMA転送制御部の構成を示して
いる。図10,図11において、サイクリックデータ受
信回路1にアドレスバス2とデータバス3aを介して、
最新値サイクリックメモリ4aが接続されている。さら
に、データバス3aには、最新値レジスタ5aが、アド
レスバス2にはアドレスレジスタ5bが接続されてい
る。前回値サイクリックメモリ4bは、アドレス入力に
アドレスバス2が接続され、データ入出力にはデータバ
ス3bが接続されている。オン変化検出マスクメモリ4
dは、アドレス入力にアドレスバス2が接続され、デー
タ入出力にはデータバス3dが接続されている。オフ変
化検出マスクメモリ4eは、アドレス入力にアドレスバ
ス2が接続され、データ入出力にはデータバス3eが接
続されている。データバス3bには最新値レジスタ5a
と前回値レジスタ5cが接続されている。データバス3
dにはオン変化検出マスクレジスタ5eが接続されてい
る。
Embodiment 3 (corresponding to claims 5 and 6). FIG.
FIG. 11 is a diagram showing a third embodiment of the present invention. FIG.
FIG. 11 shows a configuration of a DMA transfer control unit according to a third embodiment in which the contents of the DMA transfer control unit 15 of the conventional example are improved. 10 and 11, a cyclic data receiving circuit 1 is connected to an address bus 2 and a data bus 3a via a data bus 3a.
The latest value cyclic memory 4a is connected. Further, the latest value register 5a is connected to the data bus 3a, and the address register 5b is connected to the address bus 2. In the previous value cyclic memory 4b, the address bus 2 is connected to the address input, and the data bus 3b is connected to the data input / output. ON change detection mask memory 4
As for d, the address bus 2 is connected to the address input, and the data bus 3d is connected to the data input / output. In the OFF change detection mask memory 4e, the address bus 2 is connected to the address input, and the data bus 3e is connected to the data input / output. The latest value register 5a is connected to the data bus 3b.
And the previous value register 5c. Data bus 3
The ON change detection mask register 5e is connected to d.

【0035】データバス3eにはオフ変化検出マスクレ
ジスタ5fが接続されている。前回値レジスタ5bの出
力には前回値反転回路6dが接続され、オン変化論理積
回路6eのA入力には該前回値反転回路6dの出力が、
B入力には最新値レジスタ5aの出力が接続されてい
る。最新値レジスタ5aの出力には最新値反転回路6f
が接続され、オフ変化論理積回路6gのA入力には該最
新値反転回路6fの出力が、B入力には前回値レジスタ
5bの出力が接続されている。オン変化論理積回路6e
の出力には、オン変化ビットレジスタ5gが接続され、
オフ変化論理積回路6gの出力には、オフ変化ビットレ
ジスタ5hが接続されている。オン変化ビットレジスタ
5gの出力とオフ変化ビットレジスタ5hの出力の全ビ
ットの論理和をとる論理和回路6hが接続され、該論理
和回路6hの出力には、割り込み信号生成回路7が接続
されている。アドレスレジスタ5bとオン変化ビットレ
ジスタ5gとオフ変化ビットレジスタ5hの出力は、外
部インタフェース回路8に接続されている。そして、上
記の各構成要素を制御するために変化検出制御回路9が
ある。
The off change detection mask register 5f is connected to the data bus 3e. The output of the previous value register 5b is connected to the previous value inversion circuit 6d. The A input of the ON change AND circuit 6e receives the output of the previous value inversion circuit 6d.
The output of the latest value register 5a is connected to the B input. The latest value register 5a outputs the latest value inverting circuit 6f.
The output of the latest value inversion circuit 6f is connected to the A input of the OFF change AND circuit 6g, and the output of the previous value register 5b is connected to the B input. ON change AND circuit 6e
Is connected to an on-change bit register 5g.
An OFF change bit register 5h is connected to the output of the OFF change AND circuit 6g. An OR circuit 6h for ORing all the bits of the output of the ON change bit register 5g and the output of the OFF change bit register 5h is connected, and an interrupt signal generation circuit 7 is connected to the output of the OR circuit 6h. I have. Outputs of the address register 5b, the ON change bit register 5g, and the OFF change bit register 5h are connected to the external interface circuit 8. Then, there is a change detection control circuit 9 for controlling each of the above components.

【0036】次に、図10〜図14を用いて本実施例3
の動作について説明する。図12に本実施例3の典型的
な処理の流れを時系列的に示す。図13,図14にその
処理のフローチャートを示す。図10,図11におい
て、変化検出制御回路9は、最新のサイクリックデータ
受信時に一旦このデータを最新値レジスタ5aに格納し
(ステップ91)、最新値サイクリックメモリ4aにデ
ータを書き込む(ステップ92)のと同じサイクルで、
前回値サイクリックメモリ4bから前回値を(ステップ
93)、オン変化検出マスクメモリ4dからオン変化検
出マスクデータを(ステップ94)、オフ変化検出マス
クメモリ4eからオフ変化検出マスクデータを読み出す
(ステップ95)。このとき、最新値サイクリックメモ
リ4aと前回値サイクリックメモリ4bとオン変化検出
マスクメモリ4dとオフ変化検出マスクメモリ4eは同
じアドレスバス2に接続されているため、同一アドレス
オフセットをもつデータをアクセスする。データバス3
b経由で前回値データは前回値レジスタ5cにセットさ
れる。また、データバス3d経由でオン変化検出マスク
データはオン変化検出マスクレジスタ5eにセットさ
れ、データバス3e経由でオフ変化検出マスクデータは
オフ変化検出マスクレジスタ5fにセットされる。
Next, a third embodiment will be described with reference to FIGS.
Will be described. FIG. 12 shows a typical processing flow of the third embodiment in chronological order. 13 and 14 show flowcharts of the processing. 10 and 11, when the latest cyclic data is received, the change detection control circuit 9 temporarily stores the data in the latest value register 5a (step 91), and writes the data in the latest value cyclic memory 4a (step 92). ) In the same cycle,
The previous value is read from the previous value cyclic memory 4b (step 93), the ON change detection mask data is read from the ON change detection mask memory 4d (step 94), and the OFF change detection mask data is read from the OFF change detection mask memory 4e (step 95). ). At this time, since the latest value cyclic memory 4a, previous value cyclic memory 4b, ON change detection mask memory 4d, and OFF change detection mask memory 4e are connected to the same address bus 2, data having the same address offset is accessed. I do. Data bus 3
The previous value data is set in the previous value register 5c via b. The ON change detection mask data is set in the ON change detection mask register 5e via the data bus 3d, and the OFF change detection mask data is set in the OFF change detection mask register 5f via the data bus 3e.

【0037】その後、前回値レジスタ5cの出力は前回
値反転回路6dでビット毎に反転演算が行なわれ、該前
回値反転回路6dの出力と最新値レジスタ5aの出力は
オン変化論理積回路6eでビット毎に論理積演算が行な
われる(ステップ96)。もし、前回値が無意で最新値
が有意であると、変化のあったビットは有意になる。該
オン変化論理積回路6eの出力は、オン変化ビットレジ
スタ5gでラッチされる。上記オン変化検出動作と同時
に、最新値レジスタ5aの出力は最新値反転回路6fで
ビット毎に反転演算が行なわれ、該最新値反転回路6f
の出力と前回値レジスタ5cの出力はオフ変化論理積回
路6gでビット毎に論理積演算が行なわれる(ステップ
97)。もし、最新値が無意で前回値が有意であると、
変化のあったビットは有意になる。該オフ変化論理積回
路6gの出力は、オフ変化ビットレジスタ5hでラッチ
される。
Thereafter, the output of the previous value register 5c is subjected to an inversion operation for each bit by the previous value inversion circuit 6d, and the output of the previous value inversion circuit 6d and the output of the latest value register 5a are output by the on-change AND circuit 6e. An AND operation is performed for each bit (step 96). If the previous value is insignificant and the latest value is significant, the changed bit becomes significant. The output of the on-change AND circuit 6e is latched by the on-change bit register 5g. Simultaneously with the on-change detection operation, the output of the latest value register 5a is inverted for each bit by a latest value inversion circuit 6f.
And the output of the previous value register 5c are subjected to an AND operation for each bit in the OFF change AND circuit 6g (step 97). If the latest value is insignificant and the previous value is significant,
Bits that have changed become significant. The output of the off change AND circuit 6g is latched by the off change bit register 5h.

【0038】オン変化論理積回路6eとオフ変化ビット
レジスタ5hの出力のビット毎の出力全てを論理和回路
6hで論理和演算を行なう(ステップ98)。もし、い
ずれかのビットが有意である場合(ステップ99)、つ
まり、いずれかのビットで前回値と最新値に相違があ
り、オン変化検出マスクあるいはオフ変化検出マスクさ
れていない場合、この論理和回路6hの出力は有意にな
る。論理和回路6hの出力が無意であれば変化検出制御
回路9は次のサイクリックデータの受信を継続し、変化
検出処理はここでキャンセルされる。該出力が有意であ
れば割り込み信号生成回路7は外部に対して割り込み信
号を生成させる(ステップ101)。このとき、変化検
出制御回路9は最新値レジスタ5aに格納されている最
新サイクリックデータを前回値サイクリックメモリ4b
のアドレスレジスタ5bに格納されているアドレスに書
き込み(ステップ100)、その後最新サイクリックデ
ータの受信を継続する。外部からは、外部インタフェー
ス回路8を通じてアドレスレジスタ5bとオン変化ビッ
トレジスタ5gとオフ変化ビットレジスタ5hの値を任
意の時点で読むことが可能である。
The logical sum circuit 6h performs a logical sum operation on all of the outputs of the on-change logical product circuit 6e and the off-change bit register 5h for each bit (step 98). If any of the bits is significant (step 99), that is, if there is a difference between the previous value and the latest value in any of the bits and the on-change detection mask or the off-change detection mask is not set, the logical sum is calculated. The output of circuit 6h becomes significant. If the output of the OR circuit 6h is insignificant, the change detection control circuit 9 continues to receive the next cyclic data, and the change detection processing is canceled here. If the output is significant, the interrupt signal generation circuit 7 generates an interrupt signal to the outside (step 101). At this time, the change detection control circuit 9 stores the latest cyclic data stored in the latest value register 5a in the previous value cyclic memory 4b.
(Step 100), and then the reception of the latest cyclic data is continued. From outside, the values of the address register 5b, the on-change bit register 5g, and the off-change bit register 5h can be read at any time through the external interface circuit 8.

【0039】ただし、サイクリックデータ変化検出後、
連続してサイクリックデータ変化検出処理を行なうと、
外部から外部インタフェース回路8を通じてアドレスレ
ジスタ5bとオン変化ビットレジスタ5gとオフ変化ビ
ットレジスタ5fの値を読む前に、新たなサイクリック
データ変化検出が発生し新規のデータで上書きされる可
能性があるため、これを避けるため、外部から外部イン
タフェース回路8を経由して変化検出ロックが解除され
るまでは(ステップ103)、最新値サイクリックメモ
リに最新サイクリックデータを書き込むのみ(ステップ
104,105)とし上記の変化検出処理は行なわな
い。
However, after detecting a change in cyclic data,
If the cyclic data change detection process is performed continuously,
Before reading the values of the address register 5b, the on-change bit register 5g, and the off-change bit register 5f from outside through the external interface circuit 8, a new cyclic data change detection may occur and may be overwritten with new data. Therefore, in order to avoid this, until the change detection lock is released from the outside via the external interface circuit 8 (step 103), only the latest cyclic data is written to the latest value cyclic memory (steps 104 and 105). And the above change detection process is not performed.

【0040】以上のように上記実施例1によれば、外部
制御装置が、ポーリング方式によるサイクリックデータ
の変化検出を行なう必要がなく、検出の高速性が得ら
れ、また、外部制御装置の負荷が低減できる。
As described above, according to the first embodiment, it is not necessary for the external control device to detect the change of the cyclic data by the polling method, so that the detection can be performed at high speed and the load on the external control device can be increased. Can be reduced.

【0041】上記実施例2によれば、変化検出マスクデ
ータを設定することにより、サイクリックデータワード
中の変化検出するビットを詳細に指定することができ
る。また、変化検出マスクデータをすべて無意にするこ
とにより、変化検出対象から外すことができる。
According to the second embodiment, by setting the change detection mask data, it is possible to specify in detail the bits for detecting the change in the cyclic data word. Further, by making all the change detection mask data insignificant, it can be excluded from the change detection target.

【0042】上記実施例3によれば、オン変化検出マス
クデータを設定することにより、サイクリックデータワ
ード中の0から1に変化したとき検出するビットを詳細
に指定することができる。また、オフ変化検出マスクデ
ータを設定することにより、サイクリックデータワード
中の1から0に変化したとき検出するビットを詳細に指
定することができる。
According to the third embodiment, by setting the ON change detection mask data, it is possible to specify in detail the bit to be detected when the value changes from 0 to 1 in the cyclic data word. Further, by setting the OFF change detection mask data, it is possible to specify in detail the bit to be detected when the value changes from 1 to 0 in the cyclic data word.

【0043】[0043]

【発明の効果】以上のように請求項1の発明によれば、
最新のサイクリックデータ受信時に一旦このデータを最
新値レジスタに格納し、最新値サイクリックメモリにデ
ータを書き込むのと同じサイクルで、前回値サイクリッ
クメモリから前回値を、論理和回路の出力によって検定
し、該出力が無意であれば最新サイクリックデータの受
信を継続し、該出力が有意であれば割り込み信号生成回
路により外部に対して割り込み信号を生成させるととも
に最新値レジスタに格納されている最新サイクリックデ
ータを前回値サイクリックメモリの同一アドレスに書き
込み、その後最新サイクリックデータの受信を継続する
が、外部から変化検出ロック解除されるまでは最新値サ
イクリックメモリに最新サイクリックデータを書き込む
のみとする制御を行なうようにしたので、外部制御装置
がポーリング方式によるサイクリックデータの変化検出
を行なう必要がなくなり、これにより外部制御装置の負
荷が減少し、また、サイクリックデータの変化検出を速
やかに行なうことができるという効果が得られる。
As described above, according to the first aspect of the present invention,
When the latest cyclic data is received, this data is temporarily stored in the latest value register, and the previous value from the previous value cyclic memory is tested by the output of the OR circuit in the same cycle as writing the data to the latest value cyclic memory. If the output is insignificant, reception of the latest cyclic data is continued, and if the output is significant, an interrupt signal is generated by an interrupt signal generation circuit to the outside and the latest cyclic data stored in the latest value register is stored. Writes cyclic data to the same address in the previous value cyclic memory and then continues receiving the latest cyclic data, but only writes the latest cyclic data to the latest value cyclic memory until change detection lock is released from outside The external control device uses a polling method. It is not necessary to perform change detection in cyclic data by which the load is reduced in the external control device, also, there is an advantage that it is possible to perform quickly the change detection of cyclic data.

【0044】請求項2の発明によれば、サイクリックデ
ータの変化が検出されたサイクリックメモリのアドレス
と排他的論理和回路の出力を格納するレジスタをそれぞ
れ設け、外部から上記レジスタの内容を読み出す外部イ
ンタフェース回路を備えたので、サイクリックデータの
変化に関する情報を外部から読み出すことが可能とな
り、請求項1と同様な効果が得られる。
According to the second aspect of the present invention, there is provided a register for storing the address of the cyclic memory at which the change of the cyclic data is detected and the output of the exclusive OR circuit, and reads the contents of the register from outside. Since the external interface circuit is provided, it is possible to read out information on the change of the cyclic data from the outside, and the same effect as the first aspect can be obtained.

【0045】請求項3の発明によれば、最新のサイクリ
ックデータ受信時に一旦このデータを最新値レジスタに
格納し、最新値サイクリックメモリにデータを書き込む
のと同じサイクルで、前回値サイクリックメモリから前
回値を、変化検出マスクメモリからマスクデータを読み
出し、論理和回路の出力を検定し、該出力が無意であれ
ば最新サイクリックデータの受信を継続し、該出力が有
意であれば割り込み信号生成回路により外部に対して割
り込み信号を生成させるとともに最新値レジスタに格納
されている最新サイクリックデータを前回値サイクリッ
クメモリの同一アドレスに書き込み、その後最新サイク
リックデータの受信を継続するが、外部から変化検出ロ
ックが解除されるまでは最新値サイクリックメモリに最
新サイクリックデータを書き込むのみとする制御を行な
うようにしたので、変化検出マスクデータを設定するこ
とにより、サイクリックデータワード中の変化を検出す
るビットを詳細に指定することができ、また、変化検出
マスクデータをすべて無意にすることにより、変化検出
対象から外すことができ、したがってサイクリックデー
タの変化検出を速やかに行なうことができるという効果
が得られる。
According to the third aspect of the present invention, when the latest cyclic data is received, the data is temporarily stored in the latest value register, and the previous value cyclic memory is written in the same cycle as writing the data to the latest value cyclic memory. From the previous value, the mask data is read from the change detection mask memory, and the output of the OR circuit is tested. If the output is insignificant, the reception of the latest cyclic data is continued, and if the output is significant, an interrupt signal is output. The generation circuit generates an interrupt signal to the outside, writes the latest cyclic data stored in the latest value register to the same address of the previous value cyclic memory, and then continuously receives the latest cyclic data. Until the change detection lock is released. The change detection mask data is set so that the bit for detecting a change in the cyclic data word can be specified in detail, and the change detection mask data can be specified. Can be excluded from the change detection target, and the effect that the change of the cyclic data can be promptly detected can be obtained.

【0046】請求項4の発明によれば、サイクリックデ
ータの変化が検出されたサイクリックメモリのアドレス
と論理積回路の出力を格納するレジスタをそれぞれ設
け、外部から上記レジスタの内容を読み出す外部インタ
フェース回路を備えたので、サイクリックデータの変化
に関する情報を外部から読み出すことが可能となり、請
求項3と同様な効果が得られる。
According to the fourth aspect of the present invention, a register is provided for storing the address of the cyclic memory in which the change of the cyclic data is detected and the output of the AND circuit, and the external interface for reading the contents of the register from outside is provided. Since the circuit is provided, it is possible to read out information on the change of the cyclic data from the outside, and the same effect as the third aspect can be obtained.

【0047】請求項5の発明によれば、最新のサイクリ
ックデータ受信時に一旦このデータを最新値レジスタに
格納し、最新値サイクリックメモリにデータを書き込む
のと同じサイクルで、前回値サイクリックメモリから前
回値を、オン変化検出マスクメモリからオン変化検出マ
スクデータを、オフ変化検出マスクメモリからオフ変化
検出マスクデータを読み出し、論理和回路の出力を検定
し、該出力が無意であれば最新サイクリックデータの受
信を継続し、該出力が有意であれば割り込み信号生成回
路により外部に対して割り込み信号を生成させるととも
に最新値レジスタに格納されている最新サイクリックデ
ータを前回値サイクリックメモリの同一アドレスに書き
込み、その後最新サイクリックデータの受信を継続する
が、外部から変化検出ロック解除されるまでは、最新値
サイクリックメモリに最新サイクリックデータを書き込
むのみとする制御を行なうようにしたので、オン変化検
出マスクデータを設定することにより、例えばサイクリ
ックデータワード中の0から1に変化したとき検出する
ビットを詳細に指定することができ、また、オフ変化検
出マスクデータを設定することにより、サイクリックデ
ータワード中の1から0に変化したとき検出するビット
を詳細に指定することができ、したがってサイクリック
データの変化検出を速やかに行なうことができるという
効果が得られる。
According to the fifth aspect of the present invention, when the latest cyclic data is received, this data is temporarily stored in the latest value register, and the previous value cyclic memory is written in the same cycle as writing the data to the latest value cyclic memory. From the previous change, the on-change detection mask data from the on-change detection mask memory, and the off-change detection mask data from the off-change detection mask memory, and examines the output of the OR circuit. Continue to receive the click data, and if the output is significant, cause the interrupt signal generation circuit to generate an interrupt signal to the outside and replace the latest cyclic data stored in the latest value register with the previous value cyclic memory. Write to the address, then continue receiving the latest cyclic data, but change from outside Until the output lock is released, control is performed such that only the latest cyclic data is written to the latest value cyclic memory. Therefore, by setting the ON change detection mask data, for example, 0 in the cyclic data word can be set. The bit to be detected when changing from 1 to 0 in the cyclic data word can be specified in detail by setting the OFF change detection mask data. Thus, an effect is obtained that the change of cyclic data can be detected quickly.

【0048】請求項6の発明によれば、サイクリックデ
ータ変化検出されたサイクリックメモリのアドレスとオ
ン変化論理積回路の出力を格納するレジスタとオフ変化
論理積回路の出力を格納するレジスタをそれぞれ設け、
上記レジスタの内容を外部から読み出す外部インタフェ
ース回路を備えたので、サイクリックデータの変化に関
する情報を外部から読み出すことが可能となり、請求項
5と同様な効果が得られる。
According to the sixth aspect of the present invention, the register storing the address of the cyclic memory where the cyclic data change is detected and the register storing the output of the on-change AND circuit and the register storing the output of the off-change AND circuit are respectively provided. Provided,
Since an external interface circuit for reading the contents of the register from the outside is provided, it is possible to read information on a change in cyclic data from the outside, and the same effect as that of the fifth aspect can be obtained.

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

【図1】この発明の実施例1の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of a first embodiment of the present invention.

【図2】この実施例1における典型的な処理の流れを時
系列的に示す図である。
FIG. 2 is a diagram illustrating a typical processing flow in the first embodiment in a time-series manner.

【図3】この実施例1における上記処理の流れを示すフ
ローチャートである。
FIG. 3 is a flowchart showing a flow of the above processing in the first embodiment.

【図4】この実施例1における上記処理の流れを示すフ
ローチャートである。
FIG. 4 is a flowchart showing a flow of the processing in the first embodiment.

【図5】この発明の実施例2の構成を示すブロック図で
ある。
FIG. 5 is a block diagram showing a configuration of a second embodiment of the present invention.

【図6】この発明の実施例2の構成を示すブロック図で
ある。
FIG. 6 is a block diagram showing a configuration of a second embodiment of the present invention.

【図7】この実施例2における典型的な処理の流れを時
系列的に示す図である。
FIG. 7 is a diagram showing a typical processing flow in the second embodiment in a time-series manner.

【図8】この実施例2における上記処理の流れを示すフ
ローチャートである。
FIG. 8 is a flowchart showing a flow of the above processing in the second embodiment.

【図9】この実施例2における上記処理の流れを示すフ
ローチャートである。
FIG. 9 is a flowchart showing a flow of the above processing in the second embodiment.

【図10】この発明の実施例3の構成を示すブロック図
である。
FIG. 10 is a block diagram showing a configuration of a third embodiment of the present invention.

【図11】この発明の実施例3の構成を示すブロック図
である。
FIG. 11 is a block diagram showing a configuration of a third embodiment of the present invention.

【図12】この実施例3における典型的な処理の流れを
時系列的に示す図である。
FIG. 12 is a diagram showing a typical processing flow in a time series according to the third embodiment.

【図13】この実施例3における上記処理の流れを示す
フローチャートである。
FIG. 13 is a flowchart illustrating a flow of the above-described processing in the third embodiment.

【図14】この実施例3における上記処理の流れを示す
フローチャートである。
FIG. 14 is a flowchart illustrating a flow of the above-described processing in the third embodiment.

【図15】実施例又は従来例における制御用データウェ
イのステーションの構成を示すブロック図である。
FIG. 15 is a block diagram showing a configuration of a station of a control dataway in an embodiment or a conventional example.

【図16】上記ステーションを用いて構成した制御デー
タウェイの全体概要図である。
FIG. 16 is an overall schematic diagram of a control dataway configured using the stations.

【図17】フレームの構成を示す図である。FIG. 17 is a diagram showing a configuration of a frame.

【図18】従来例におけるサイクリックメモリデータと
送受信フレームの関係を示す図である。
FIG. 18 is a diagram showing a relationship between cyclic memory data and transmission / reception frames in a conventional example.

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

4a 最新値サイクリックメモリ 4b 前回値サイクリックメモリ 5a 最新値レジスタ 5b アドレスレジスタ 5c 前回値レジスタ 6a 排他的論理和回路 6b 論理和回路 7 割り込み信号生成回路 8 外部インタフェース回路 9 変化検出制御回路 4c 変化検出マスクメモリ 5d 変化ビットレジスタ 6c 論理積回路 5e オン変化検出マスクレジスタ 5f オフ変化検出マスクレジスタ 4d オン変化検出マスクメモリ 4e オフ変化検出マスクメモリ 18,18a,18b,18c 外部制御装置 19,19a,19b,19c ステーション 25 ループ状伝送路 4a Latest value cyclic memory 4b Previous value cyclic memory 5a Latest value register 5b Address register 5c Previous value register 6a Exclusive OR circuit 6b OR circuit 7 Interrupt signal generation circuit 8 External interface circuit 9 Change detection control circuit 4c Change detection Mask memory 5d change bit register 6c AND circuit 5e ON change detection mask register 5f OFF change detection mask register 4d ON change detection mask memory 4e OFF change detection mask memory 18, 18a, 18b, 18c External control devices 19, 19a, 19b, 19c station 25 loop transmission path

フロントページの続き (56)参考文献 特開 平7−38593(JP,A) 特開 平5−130175(JP,A) 特開 昭62−281611(JP,A) 特開 昭61−228599(JP,A) 特開 昭61−147630(JP,A) 特開 昭58−18740(JP,A) 特開 昭54−136244(JP,A) 三菱電気技報,Vol.65 No. 7,1991年7月号,勝原二郎 他「プラ ント制御用基幹データウェイシステ ム」,pages.675−680 三菱電機技報,Vol.69 No. 8,1995年8月号,春田正俊 他「情報 制御基本システム−大規模プラント用統 合制御バスー」,pages.715−720 (58)調査した分野(Int.Cl.6,DB名) H04L 12/42 H04Q 9/00 321 JICSTファイル(JOIS)Continuation of the front page (56) References JP-A-7-38593 (JP, A) JP-A-5-130175 (JP, A) JP-A-62-281611 (JP, A) JP-A-61-228599 (JP, A) JP-A-61-147630 (JP, A) JP-A-58-18740 (JP, A) JP-A-54-136244 (JP, A) Mitsubishi Electric Technical Report, Vol. 65 No. 7, July 1991, Jiro Katsuhara, et al., "Plant Control Core Dataway System", pages. 675-680 Mitsubishi Electric Technical Report, Vol. 69 No. 8, August 1995 issue, Masatoshi Haruta et al., "Information Control Basic System-Integrated Control Bus for Large-Scale Plants," pages. 715-720 (58) Field surveyed (Int. Cl. 6 , DB name) H04L 12/42 H04Q 9/00 321 JICST file (JOIS)

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 制御用データの送受信をループ状伝送路
と外部制御装置とに接続された複数のステーションで制
御し、上記ステーションの各々のトークン獲得時には、
サイクリックメモリ内のトークンを獲得したステーショ
ンの送信エリアのデータとサイクリックメモリの先頭か
らのアドレスオフセットと送信データ量とからなる送信
エリア情報を載せたデータフレームの宛先アドレスをブ
ロードキャストアドレスに設定することにより全ステー
ションに該データフレームを送信し、該データフレーム
を受信したステーションは、自己のサイクリックメモリ
の先頭から受信した送信エリア情報のアドレスオフセッ
トをもったアドレスから送信エリア情報の送信データ量
だけ、受信データを展開するようにした分散処理システ
ムにおいて、最新のサイクリックデータを格納する最新
値サイクリックメモリと、前回値を格納する前回値サイ
クリックメモリと、ネットワークから受信した最新のサ
イクリックデータを一旦格納する最新値レジスタと、該
サイクリックデータの最新値サイクリックメモリ上のア
ドレスを格納するアドレスレジスタと、最新値と前回値
の排他的論理和をとる排他的論理和回路と、該排他的論
理和回路の出力の全ビットの論理和をとる論理和回路
と、該論理和回路の出力が有意のとき外部に対して割り
込み信号を生成する割り込み信号生成回路と、上記各構
成要素を制御してサイクリックデータの変化を検出する
制御を行なう変化検出制御回路を備え、上記変化検出制
御回路は、最新のサイクリックデータ受信時に一旦この
データを上記最新値レジスタに格納し、上記最新値サイ
クリックメモリにデータを書き込むのと同じサイクル
で、上記前回値サイクリックメモリから前回値を、上記
論理和回路の出力によって検定し、該出力が無意であれ
ば最新サイクリックデータの受信を継続し、該出力が有
意であれば上記割り込み信号生成回路により外部に対し
て割り込み信号を生成させるとともに上記最新値レジス
タに格納されている最新サイクリックデータを前回値サ
イクリックメモリの同一アドレスに書き込み、その後最
新サイクリックデータの受信を継続するが、外部から変
化検出ロック解除されるまでは上記最新値サイクリック
メモリに最新サイクリックデータを書き込むのみとする
制御を行なうことを特徴とするサイクリックデータ制御
方法。
1. The control data transmission / reception is controlled by a plurality of stations connected to a loop-shaped transmission line and an external control device.
A broadcast address is set as a destination address of a data frame in which transmission area information including the transmission area data of the station that has acquired the token in the cyclic memory, the address offset from the beginning of the cyclic memory, and the transmission data amount is set. By transmitting the data frame to all the stations, the station receiving the data frame, from the address having the address offset of the transmission area information received from the beginning of its own cyclic memory, the transmission data amount of the transmission area information, In a distributed processing system that expands received data, the latest cyclic memory that stores the latest cyclic data, the previous cyclic memory that stores the previous value, and the latest cyclic data that is received from the network A latest value register that temporarily stores the address, an address register that stores an address of the latest value of the cyclic data in the cyclic memory, an exclusive OR circuit that takes an exclusive OR of the latest value and the previous value, A logical sum circuit for calculating a logical sum of all the bits of the output of the logical sum circuit, an interrupt signal generating circuit for generating an interrupt signal to the outside when the output of the logical sum circuit is significant, and controlling each of the above components. A change detection control circuit for performing control to detect a change in cyclic data, and the change detection control circuit temporarily stores the data in the latest value register when receiving the latest cyclic data, and In the same cycle as writing data to the memory, the previous value from the previous value cyclic memory is tested by the output of the OR circuit. If the output is significant, the reception of the latest cyclic data is continued, and if the output is significant, the interrupt signal generation circuit generates an interrupt signal to the outside and the latest cyclic data stored in the latest value register. The data is written to the same address of the previous value cyclic memory, and then the reception of the latest cyclic data is continued. A cyclic data control method, comprising:
【請求項2】 サイクリックデータの変化が検出された
サイクリックメモリのアドレスと排他的論理和回路の出
力を格納するレジスタをそれぞれ設け、外部から上記レ
ジスタの内容を読み出す外部インタフェース回路を備え
たことを特徴とする請求項第1項記載のサイクリックデ
ータ制御方法。
2. An external interface circuit for providing a register for storing an address of a cyclic memory in which a change in cyclic data is detected and an output of an exclusive OR circuit, and for reading the contents of the register from outside The method according to claim 1, wherein:
【請求項3】 制御用データの送受信をループ状伝送路
と外部制御装置とに接続された複数のステーションで制
御し、上記ステーションの各々のトークン獲得時には、
サイクリックメモリ内のトークンを獲得したステーショ
ンの送信エリアのデータとサイクリックメモリの先頭か
らのアドレスオフセットと送信データ量からなる送信エ
リア情報を載せたデータフレームを宛先アドレスをブロ
ードキャストアドレスに設定することにより全ステーシ
ョンに送信し、該データフレームを受信したステーショ
ンは、自己のサイクリックメモリの先頭から受信した送
信エリア情報のアドレスオフセットをもったアドレスか
ら送信エリア情報の送信データ量だけ、受信データを展
開するようにした分散処理システムにおいて、最新のサ
イクリックデータを格納する最新値サイクリックメモリ
と、前回値を格納する前回値サイクリックメモリと、サ
イクリックデータのどのビットに対して変化検出するの
か指定した変化検出マスクデータを格納する変化検出マ
スクメモリと、ネットワークから受信した最新のサイク
リックデータを一旦格納する最新値レジスタと、該サイ
クリックデータの最新サイクリックメモリ上のアドレス
を格納するアドレスレジスタと、最新値と前回値の排他
的論理和をとる排他的論理和回路と、該排他的論理和回
路の出力と変化検出マスクデータとの論理積をとる論理
積回路と、該論理積回路出力の全ビットの論理和をとる
論理和回路と、該論理和回路の出力が有意のとき外部に
対して割り込み信号を生成する割り込み信号生成回路
と、上記各構成要素を制御してサイクリックデータの変
化を検出する制御を行なう変化検出制御回路を備え、上
記変化検出制御回路は、最新のサイクリックデータ受信
時に一旦このデータを上記最新値レジスタに格納し、上
記最新値サイクリックメモリにデータを書き込むのと同
じサイクルで、上記前回値サイクリックメモリから前回
値を、上記変化検出マスクメモリからマスクデータを読
み出し、上記論理和回路の出力を検定し、該出力が無意
であれば最新サイクリックデータの受信を継続し、該出
力が有意であれば上記割り込み信号生成回路により外部
に対して割り込み信号を生成させるとともに上記最新値
レジスタに格納されている最新サイクリックデータを上
記前回値サイクリックメモリの同一アドレスに書き込
み、その後最新サイクリックデータの受信を継続する
が、外部から変化検出ロックが解除されるまでは上記最
新値サイクリックメモリに最新サイクリックデータを書
き込むのみとする制御を行なうことを特徴とするサイク
リックデータ制御方法。
3. The transmission and reception of control data is controlled by a plurality of stations connected to a loop transmission path and an external control device.
By setting the destination address to the broadcast address, the data frame containing the transmission area data consisting of the data of the transmission area of the station that has acquired the token in the cyclic memory, the address offset from the beginning of the cyclic memory, and the transmission data amount is set. The station that has transmitted the data frame to all stations and received the data frame expands the received data from the address having the address offset of the transmission area information received from the head of its own cyclic memory by the transmission data amount of the transmission area information. In such a distributed processing system, the latest value cyclic memory for storing the latest cyclic data, the previous value cyclic memory for storing the previous value, and the bit of the cyclic data for which the change is detected are specified. Change detection A change detection mask memory for storing the mask data, a latest value register for temporarily storing the latest cyclic data received from the network, an address register for storing the address of the latest cyclic data on the cyclic memory, An exclusive OR circuit that takes the exclusive OR of the previous value and the previous value; an AND circuit that takes the logical product of the output of the exclusive OR circuit and the change detection mask data; A logical sum circuit for calculating a logical sum, an interrupt signal generating circuit for generating an interrupt signal to the outside when the output of the logical sum circuit is significant, and detecting a change in cyclic data by controlling the above-described components. A change detection control circuit for performing control, and the change detection control circuit temporarily receives the latest cyclic data when receiving the latest cyclic data. In the same cycle as writing data to the latest value cyclic memory, the previous value is read from the previous value cyclic memory, the mask data is read from the change detection mask memory, and the output of the logical sum circuit is stored. If the output is insignificant, the reception of the latest cyclic data is continued, and if the output is significant, an interrupt signal is generated externally by the interrupt signal generation circuit and stored in the latest value register. The latest cyclic data is written to the same address in the previous value cyclic memory, and then the reception of the latest cyclic data continues.However, until the change detection lock is released from the outside, the latest Cyclic characterized by performing control to write only cyclic data Data control method.
【請求項4】 サイクリックデータの変化が検出された
サイクリックメモリのアドレスと論理積回路の出力を格
納するレジスタをそれぞれ設け、外部から上記レジスタ
の内容を読み出す外部インタフェース回路を備えたこと
を特徴とする請求項第3項記載のサイクリックデータ制
御方法。
4. A register for storing an address of a cyclic memory in which a change in cyclic data is detected and an output of an AND circuit, and an external interface circuit for reading the contents of the register from outside. 4. The method according to claim 3, wherein:
【請求項5】 制御用データの送受信をループ状伝送路
と外部制御装置とに接続された複数のステーションで制
御し、前記ステーションの各々のトークン獲得時には、
サイクリックメモリ内のトークンを獲得したステーショ
ンの送信エリアのデータとサイクリックメモリの先頭か
らのアドレスオフセットと送信データ量からなる送信エ
リア情報を載せたデータフレームの宛先アドレスをブロ
ードキャストアドレスに設定することにより全ステーシ
ョンに該データフレームを送信し、該データフレームを
受信したステーションは、自己のサイクリックメモリの
先頭から受信した送信エリア情報のアドレスオフセット
をもったアドレスから送信エリア情報の送信データ量だ
け、受信データを展開するようにした分散処理システム
において、最新のサイクリックデータを格納する最新値
サイクリックメモリと、前回値を格納する前回値サイク
リックメモリと、サイクリックデータのどのビットに対
してオン変化検出するのかを指定したオン変化検出マス
クデータを格納するオン変化検出マスクメモリと、サイ
クリックデータのどのビットに対してオフ変化検出する
のか指定したオフ変化検出マスクデータを格納するオフ
変化検出マスクメモリと、ネットワークから受信した最
新のサイクリックデータを一旦格納する最新値レジスタ
と、該サイクリックデータの最新サイクリックメモリ上
のアドレスを格納するアドレスレジスタと、最新値と前
回値の反転値とオン変化検出マスクデータとの論理積を
とるオン変化論理積回路と、最新値の反転と前回値とオ
フ変化検出マスクデータとの論理積をとるオフ変化論理
積回路と、該オン論理積回路出力の全ビットと該オフ論
理積回路出力の全ビットとの論理和をとる論理和回路
と、該論理和回路の出力が有意のとき外部に対して割り
込み信号を生成する割り込み信号生成回路と、上記各構
成要素を制御してサイクリックデータの変化を検出する
制御を行なう変化検出制御回路を備え、上記変化検出制
御回路は、最新のサイクリックデータ受信時に一旦この
データを最新値レジスタに格納し、上記最新値サイクリ
ックメモリにデータを書き込むのと同じサイクルで、上
記前回値サイクリックメモリから前回値を、上記オン変
化検出マスクメモリからオン変化検出マスクデータを、
上記オフ変化検出マスクメモリからオフ変化検出マスク
データを読み出し、上記論理和回路の出力を検定し、該
出力が無意であれば最新サイクリックデータの受信を継
続し、該出力が有意であれば上記割り込み信号生成回路
により外部に対して割り込み信号を生成させるとともに
上記最新値レジスタに格納されている最新サイクリック
データを上記前回値サイクリックメモリの同一アドレス
に書き込み、その後最新サイクリックデータの受信を継
続するが、外部から変化検出ロック解除されるまでは、
上記最新値サイクリックメモリに最新サイクリックデー
タを書き込むのみとする制御を行なうことを特徴とする
サイクリックデータ制御方法。
5. The transmission and reception of control data is controlled by a plurality of stations connected to a loop transmission path and an external controller, and when each of the stations acquires a token,
By setting the broadcast address to the destination address of the data frame that carries the transmission area data consisting of the data in the transmission area of the station that acquired the token in the cyclic memory, the address offset from the beginning of the cyclic memory, and the amount of transmission data The data frame is transmitted to all the stations, and the station receiving the data frame receives the transmission data amount of the transmission area information from the address having the address offset of the transmission area information received from the head of its own cyclic memory. In a distributed processing system that expands data, the latest cyclic memory that stores the latest cyclic data, the previous cyclic memory that stores the previous value, and which bits of the cyclic data are turned on detection An on-change detection mask memory that stores on-change detection mask data that specifies whether the off-change detection is performed, and an off-change detection mask memory that stores off-change detection mask data that specifies which bit of the cyclic data is to be detected as an off-change. A latest value register for temporarily storing the latest cyclic data received from the network, an address register for storing the address of the latest cyclic data in the cyclic memory, and a detection of the latest value, the inverted value of the previous value, and the ON change. An on-change AND circuit for performing an AND operation with the mask data, an OFF-change AND circuit for performing an AND operation of inversion of the latest value and the previous value and the OFF change detection mask data, and all bits of the output of the ON AND circuit circuit And an OR circuit for performing an OR operation with all the bits of the output of the OFF AND circuit, and when the output of the OR circuit is significant An interrupt signal generation circuit for generating an interrupt signal for the unit, and a change detection control circuit for controlling each of the above components to detect a change in cyclic data. When the cyclic data is received, this data is temporarily stored in the latest value register, and in the same cycle as writing the data to the latest value cyclic memory, the previous value from the previous value cyclic memory is read from the ON change detection mask memory. ON change detection mask data
The off-change detection mask data is read from the off-change detection mask memory, and the output of the OR circuit is tested. If the output is insignificant, reception of the latest cyclic data is continued. An interrupt signal is generated externally by the interrupt signal generation circuit, and the latest cyclic data stored in the latest value register is written to the same address of the previous value cyclic memory, and then the reception of the latest cyclic data is continued. However, until the change detection lock is externally released,
A method of controlling cyclic data, characterized in that control is performed such that only the latest cyclic data is written to the latest value cyclic memory.
【請求項6】 サイクリックデータ変化検出されたサイ
クリックメモリのアドレスとオン変化論理積回路の出力
を格納するレジスタと、オフ変化論理積回路の出力を格
納するレジスタをそれぞれ設け、上記レジスタの内容を
外部から読み出す外部インタフェース回路を備えたこと
を特徴とする請求項第5項記載のサイクリックデータ制
御方法。
6. A register for storing an address of a cyclic memory in which a change in cyclic data has been detected and an output of an on-change AND circuit, and a register for storing an output of an off-change AND circuit. 6. A cyclic data control method according to claim 5, further comprising an external interface circuit for reading data from outside.
JP19886993A 1993-07-16 1993-07-16 Cyclic data control method Expired - Lifetime JP2888405B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19886993A JP2888405B2 (en) 1993-07-16 1993-07-16 Cyclic data control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19886993A JP2888405B2 (en) 1993-07-16 1993-07-16 Cyclic data control method

Publications (2)

Publication Number Publication Date
JPH0738594A JPH0738594A (en) 1995-02-07
JP2888405B2 true JP2888405B2 (en) 1999-05-10

Family

ID=16398283

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19886993A Expired - Lifetime JP2888405B2 (en) 1993-07-16 1993-07-16 Cyclic data control method

Country Status (1)

Country Link
JP (1) JP2888405B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101429622B1 (en) * 2013-07-22 2014-08-13 남동철 Electric powered roll curtain apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
三菱電機技報,Vol.69 No.8,1995年8月号,春田正俊 他「情報制御基本システム−大規模プラント用統合制御バスー」,pages.715−720
三菱電気技報,Vol.65 No.7,1991年7月号,勝原二郎 他「プラント制御用基幹データウェイシステム」,pages.675−680

Also Published As

Publication number Publication date
JPH0738594A (en) 1995-02-07

Similar Documents

Publication Publication Date Title
CA2170458C (en) Multi-cluster computer system
US4719622A (en) System bus means for inter-processor communication
JP2888405B2 (en) Cyclic data control method
US5163049A (en) Method for assuring data-string-consistency independent of software
JPH08316973A (en) Communication processing means
JPS633351B2 (en)
WO1987006365A1 (en) Signal trace control system for pmc
JP3355053B2 (en) Cyclic data transmission method for distributed processing system
JP2533958B2 (en) Data preceding set device
JPS6362083A (en) Projection data generation system
JP2616490B2 (en) Shared data storage method
JPH0448306B2 (en)
JP2613399B2 (en) Alarm information monitoring method
JP2608771B2 (en) Control method of data processing device
JPS6385841A (en) Memory system
JP3179891B2 (en) Bus control method
JP2560757B2 (en) Display data processing device
SU1198505A2 (en) Device for preprocessing information
JP2923869B2 (en) Event input circuit
JP3264336B2 (en) Image conversion processor
JPH11306076A (en) Common memory control device
JPH08106430A (en) Data transfer method
JPH0756647B2 (en) Shared memory system by network
JPH05268198A (en) Transmission reception data storage method
JPS6232505B2 (en)

Legal Events

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

Free format text: PAYMENT UNTIL: 20080219

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090219

Year of fee payment: 10

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100219

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

Free format text: PAYMENT UNTIL: 20100219

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110219

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120219

Year of fee payment: 13

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

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20130219

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

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20130219

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

Free format text: PAYMENT UNTIL: 20140219

Year of fee payment: 15

EXPY Cancellation because of completion of term