JPH02166849A - data extraction circuit - Google Patents
data extraction circuitInfo
- Publication number
- JPH02166849A JPH02166849A JP63321822A JP32182288A JPH02166849A JP H02166849 A JPH02166849 A JP H02166849A JP 63321822 A JP63321822 A JP 63321822A JP 32182288 A JP32182288 A JP 32182288A JP H02166849 A JPH02166849 A JP H02166849A
- Authority
- JP
- Japan
- Prior art keywords
- data
- error
- detection means
- latched
- circuit
- 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.)
- Pending
Links
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、各種産業機械(プレス機械、NC工作機械
、ロボット等々)や無人搬送車などにおいて数多く用い
られるセンサやアクチュエータ等の端末要素を集中管理
する制御装置、その池の各種データ処理装置等に採用さ
れて、各々所望とされるデータの変化履歴を抽出するデ
ータ抽出回路に関する。[Detailed Description of the Invention] [Field of Industrial Application] This invention concentrates terminal elements such as sensors and actuators used in various industrial machines (press machines, NC machine tools, robots, etc.) and automatic guided vehicles. The present invention relates to a data extraction circuit that is employed in a controlling control device, various data processing devices, etc., and extracts desired data change history.
上記の制御装置として例えば、データ入力対象端末(セ
ンサ)からの出力抽出あるいはデータ出力対象端末(ア
クチュエータ)への信号出力を直接的に行なう多数のノ
ードコントローラと、これらノードコントローラを統轄
管理するメインコントローラとを分割するとともに、こ
れらノードコントローラおよびメインコントローラを直
列接続して、上記各端末の集中管理を実現する直列制御
装置がある。The above control devices include, for example, a large number of node controllers that directly extract output from data input terminals (sensors) or output signals to data output terminals (actuators), and a main controller that centrally manages these node controllers. There is a serial control device that divides the terminals and connects these node controllers and main controllers in series to realize centralized management of each terminal.
こうした直列制御装置の詳細については、例えば本出願
人による特願昭63−120337号発明の名称「直列
制御装置」や特願昭63−120338号発明の名称「
直列制御装置」、更には特願昭63−209868号発
明の名称「直列制御装置」、特I昭63−237263
号発明の名称「直列制御装置」、等々によって明らかで
あるが、特にこの構成として、第1および第2の2つの
信号線を用い、上記各ノードコントローラ(以下単にノ
ードという)とメインコントローラとを2重ループ状に
直列接続したものについて、その概略を示せば、第6図
のようである。For details of such a series control device, for example, the name of the invention in Japanese Patent Application No. 120337/1988 "Series Control Device" and the name of the invention in Japanese Patent Application No. 120338/1982 "
``Series Control Device'', and furthermore, the title of the invention in Patent Application No. 1983-209868 is ``Series Control Device'', Patent Application No. 1983-237263.
As is clear from the title of the invention, ``Series Control Device,'' etc., in particular, this configuration uses two signal lines, the first and second, to connect each of the above-mentioned node controllers (hereinafter simply referred to as nodes) and the main controller. FIG. 6 shows a schematic diagram of a double loop connected in series.
すなわちこの第6図に示す直列制御装置において、該制
御装置がプレス機械に適用されるものとすると、メイン
コントローラ100は、プレスのコントローラ部に設け
られ、センサ群1−1〜1−nはプレスの各部の状態を
検出するセンサに対応し、アクチュエータ群2−1〜2
− nはプレス各部を駆動する各種アクチュエータに対
応する。That is, in the series control device shown in FIG. 6, if the control device is applied to a press machine, the main controller 100 is provided in the controller section of the press, and the sensor groups 1-1 to 1-n are connected to the press machine. Actuator groups 2-1 to 2-2 correspond to sensors that detect the status of each part.
- n corresponds to various actuators that drive each part of the press.
センサ群1−1およびアクチュエータ群2−1はノード
10−1に接続され、センサ群1−2およびアクチュエ
ータ群2−2はノード10−2に接続され、センサ群1
−3およびアクチュエータ群2−3はノード10−3に
接続され、同様にしてセンサ群1−nおよびアクチュエ
ータ群2− nはノード10−nに接続される。またノ
ード1〇−1〜10−nおよびメインコントローラ10
0はループエおよびループ■の2つのループを介して直
列に接続される。これらループ■、■には、正、副の優
先順位はつけられていない。Sensor group 1-1 and actuator group 2-1 are connected to node 10-1, sensor group 1-2 and actuator group 2-2 are connected to node 10-2, and sensor group 1
-3 and actuator group 2-3 are connected to node 10-3, and similarly sensor group 1-n and actuator group 2-n are connected to node 10-n. In addition, the nodes 10-1 to 10-n and the main controller 10
0 is connected in series through two loops, Loop E and Loop ■. These loops ■ and ■ are not given priority as primary or secondary.
かかる構成においては、メインコントローラ100は各
ノード10−1〜10−nに接続されたセンサ群1−1
〜1− nの検出信号(センサデータ)を収集するとと
もに、各ノード10−1〜10−nに接続されたアクチ
ュエータ群2−1〜2− nに対して駆動データを順次
送出する。これには例えば、第7図に示すようなフレー
ム構成の信号が用いられる。In such a configuration, the main controller 100 controls the sensor group 1-1 connected to each node 10-1 to 10-n.
~1-n detection signals (sensor data) are collected, and drive data is sequentially sent to actuator groups 2-1 to 2-n connected to each node 10-1 to 10-n. For this purpose, for example, a signal having a frame structure as shown in FIG. 7 is used.
すなわち、メインコントローラ100から先頭のノード
10−1に対してセンサデータ収集、並びにアクチュエ
ータ駆動データ分配のための第7図(a)に示される形
態を有したフレーム信号(フレームSOIおよびSOI
[)を送出し、これらフレーム信号の、各ループを介し
な「ノード101→ノード10−2→・・・−ノード1
0−n→メインコントローラ100」といった順次の伝
播に件なって、これら各ノードの管理対象となるセンサ
群データDIの該フレーム信号への取り込み、並びにメ
インコントローラ100を通じて同フレーム信号に予め
割り付けられた上記アクチュエータ駆動データDOの各
対応するノードへの振り分け、を実現するようにしてい
る。この結果、フレームSOIおよびSO■としてメイ
ンコントローラ100から発せられた上記のフレーム信
号が、フレームSnIおよび5nIIとして同メインコ
ントローラ100に帰還されるときには、該フレーム信
号に一括搭載された上記アクチュエータ駆動データのD
O全てが、各対応するノードに割り振られ、かつ管理対
象となる全てのセンサのセンサデータDIが、各対応す
るノードを通じて同フレーム信号に取り込まれるように
なる。この間、各ノードでは、各々管理対象となるセン
サ群については、そのセンサ出力を常時取り込んで、上
記フレーム信号が到来する毎に、この取り込んだセンサ
出力を、所定態様のデータとして該フレーム信号の所定
位置に付加し、またアクチュエータ群については、同フ
レーム信号が到来する毎に、この所定位置に含まれる当
該アクチュエータ群に関する駆動データを所定のタイミ
ングで抜き収るとともに、これを所定のアクチュエータ
駆動信号に変換して、各対応するアクチュエータの駆動
を実制御する。That is, frame signals (frame SOI and SOI
[), and these frame signals are transmitted through each loop to "node 101→node 10-2→...-node 1".
0-n→main controller 100'', the sensor group data DI to be managed by each node is incorporated into the frame signal, and the data assigned in advance to the frame signal through the main controller 100 is Distribution of the actuator drive data DO to each corresponding node is realized. As a result, when the above-mentioned frame signals emitted from the main controller 100 as frames SOI and SO■ are returned to the main controller 100 as frames SnI and 5nII, the above-mentioned actuator drive data collectively loaded in the frame signals are D
All sensor data DI of all the sensors to be managed are allocated to each corresponding node, and the sensor data DI of all the sensors to be managed are incorporated into the same frame signal through each corresponding node. During this time, each node constantly captures the sensor outputs of the sensor groups to be managed, and each time the frame signal arrives, the captured sensor outputs are used as data in a predetermined format in the predetermined format of the frame signal. For the actuator group, each time the same frame signal arrives, the drive data related to the actuator group included in the predetermined position is extracted at a predetermined timing, and this is converted into a predetermined actuator drive signal. Then, the drive of each corresponding actuator is actually controlled.
なお、第7図に示す各フレーム信号において、rsTr
、は、入力用データ(センサデータ)DIの先頭位置を
示すために、所定の論理構造をもつビット列として、メ
インコントローラ100から同フレームに予め付加され
る入力データ用スタートコードであり、rsTo、は、
出力用データ(アクチュエータ駆動データ)DOの先頭
位置を示すために、上記rSTI、とは異なる所定の論
理構造3もつビット列として、メインコントローラ10
0から同フレームに予め付加される出力データ用スター
トコードであり、「SP」は、同フレーム中に存在する
、若しくは同フレームに取り込まれるべきデータ列の終
端位置を示すために、上記のrSTl、あるいはrsT
o、と更に異なる所定の論理構造をもつビット列として
、メインコントローラ100から同フレームに予め付加
されるストップコードであり、rDL、は、エラーチエ
ツク用のデータの1つとして、例えば各フレーム中の上
記rSTI、の1!を端部分から上記rsPJの後端部
分までのデータ長を各々次段のノード若しくはメインコ
ントローラ100に指示するために、メインコントロー
ラ100および各ノードにおいて同フレームに都度付加
されるデータ長データであり、rCRC,は、同じくエ
ラーチエツク用のデータの1つとして、上記各データ列
を対象に周知のCRCチエツク(循環冗長検査)を行な
うべく、メインコントローラ100および各ノードにお
いて同フレームに都度付加されるエラーチエツクコード
(CRCコード)であり、各ノード並びにメインコント
ローラ100では、上記rsTI、、”5TOJおよび
rsp、の検出に基づき、先のデータDIおよびDOに
関して各フレーム信号との間での授受を実行し、また上
記rDLJやrCRC,の参照のもとに、データ伝送エ
ラー発生の有無をチエツクする。また、「ERRJは、
こうしたエラーチエツクにおいてデータ伝送エラーの発
生が検出された場合に付加されるエラーコードであり、
通常そのコード内容に応じて種々のエラー内容を表わす
ことができるが、ここでは例えば、上記rDLJおよび
rcRcJを用いたエラーチエツクに応じて検出される
エラー内容を表わすものとする。同第7図の例では、ノ
ード10−1とノード10−2との間のループ■におい
て何らかのデータ伝送エラーが発生したことを示す。Note that in each frame signal shown in FIG.
, is an input data start code that is added in advance from the main controller 100 to the same frame as a bit string with a predetermined logical structure in order to indicate the start position of input data (sensor data) DI, and rsTo is ,
In order to indicate the start position of the output data (actuator drive data) DO, the main controller 10 uses a bit string having a predetermined logical structure 3 different from the above rSTI.
0 is a start code for output data that is added to the same frame in advance, and "SP" is the above-mentioned rSTl, Or rsT
rDL is a stop code that is added in advance to the same frame from the main controller 100 as a bit string with a predetermined logical structure that is further different from rDL. rSTI, No. 1! is data length data that is added to the same frame each time in the main controller 100 and each node in order to instruct the next stage node or the main controller 100 about the data length from the end part to the rear end part of the rsPJ, rCRC is also one of the data for error checking, and is an error value that is added to the same frame each time in the main controller 100 and each node in order to perform a well-known CRC check (cyclic redundancy check) on each of the above data strings. This is a check code (CRC code), and each node and the main controller 100 exchange the previous data DI and DO with each frame signal based on the detection of rsTI, 5TOJ and rsp. , and also checks whether a data transmission error has occurred by referring to the above rDLJ and rCRC.
This is an error code that is added when a data transmission error is detected during such an error check.
Normally, various error contents can be expressed depending on the code contents, but here, for example, the error contents detected according to the error check using the above-mentioned rDLJ and rcRcJ are expressed. The example shown in FIG. 7 shows that some data transmission error has occurred in the loop (2) between the node 10-1 and the node 10-2.
こうした直列制御装置にあって、当のデータ抽出回路は
、各ノードにおけるアクチュエータ駆動データ(データ
Do)抽出部、あるいはメインコントローラ100にお
けるセンサデータ(データDI)抽出部に配され、例え
ばループIおよび■をそれぞれ介して周期的に繰り返し
伝送される各同−の端末に関するデータ(上記フレーム
信号に搭載される)の突き合わせに基づいて、各所望デ
ータの変化履歴を抽出することとなる。In such a series control device, the relevant data extraction circuit is disposed in the actuator drive data (data Do) extraction section in each node or in the sensor data (data DI) extraction section in the main controller 100, for example, loop I and The change history of each desired data is extracted based on the comparison of data (included in the frame signal) regarding each same terminal that is periodically and repeatedly transmitted via the respective terminals.
なお、直列制御装置の構成として、第6図においては、
図示の便宜上、
<a>メインコントローラに直列接続される全てのノー
ドが、センサ群とアクチュエータ群との双方を併せ管理
する。In addition, in FIG. 6, the configuration of the series control device is as follows.
For convenience of illustration, <a> All nodes connected in series to the main controller jointly manage both the sensor group and the actuator group.
構成についてのみ示したが、池に、
<b>センサ群とアクチュエータ群との双方を併せ管理
する第1種のノードと、センサ群のみを管理する第2種
のノードと、アクチュエータ群のみを管理する第3種の
ノードと、の第3種のノードのうちの少なくとも2種の
ノードが、混在して前記メインコントローラに直列接続
される。Although only the configuration is shown, <b> a first type node that manages both the sensor group and the actuator group, a second type node that manages only the sensor group, and a second type node that manages only the actuator group. At least two types of nodes of the third type of nodes, and the third type of nodes, are connected in series to the main controller in a mixed manner.
<C>メインコントローラに直列接続される全てのノー
ドが、センサ群のみを管理する。<C> All nodes connected in series to the main controller manage only sensor groups.
<d>メインコントローラに直列接続される全てのノー
ドが、アクチュエータ群のみを管理する。<d> All nodes connected in series to the main controller manage only actuator groups.
<e>メインコントローラに直列接続される全てのノー
ドがアクチュエータ群のみを管理する場合であって、終
段の第nノード1〇−nとメインコントローラ100と
が切り離され、いわゆるデジーチェーン状の直列接続と
なる。<e> In the case where all the nodes connected in series to the main controller manage only the actuator group, the n-th node 10-n at the final stage and the main controller 100 are separated, and the series is connected in a so-called daisy chain. It becomes a connection.
<f>メインコントローラに直列接続される全てのノー
ドがセンサ群のみを管理する場合であって、メインコン
トローラ100と先頭のノード10−1とが切り離され
、いわゆるデジーチェーン状の直列接続となる。ただし
この場合、先頭のノード10−1は、前記のフレーム信
号を周期的に発生する機能も併せ具える。<f> This is a case where all the nodes connected in series to the main controller manage only the sensor group, and the main controller 100 and the first node 10-1 are separated, forming a so-called daisy chain series connection. However, in this case, the leading node 10-1 also has the function of periodically generating the frame signal.
構成などら、適用対象となる機械の実情に応じて適宜採
用される。The configuration etc. may be adopted as appropriate depending on the actual situation of the machine to which it is applied.
また、上記においては、より一般的な態様として、セン
サあるいはアクチュエータがいくつかずつにグループ分
けされ、群として各ノードに管理されるとしたが、これ
らセンサあるいはアクチュエータが各々単体で1つのノ
ードに管理されることらある。Furthermore, in the above, in a more general manner, sensors or actuators are divided into several groups and managed by each node as a group, but each of these sensors or actuators is managed individually by one node. There are things that are done.
更にはまた、第7図に示したフレーム信号の構造ら一例
にすぎず、実際には、種々のプロトコルに基づく種々の
構造のフレーム信号が採用される。Furthermore, the structure of the frame signal shown in FIG. 7 is only one example, and in reality, frame signals with various structures based on various protocols are employed.
これらフレーム信号としても、要は、前記センサデータ
やアクチュエータ駆動データ等の所望データについて当
のデータ抽出回路によりその変化履歴が判然と抽出でき
るよう、所定の高い周期をもって、これらデータの状態
(内容)を繰り返し伝送できるものであればよい。The key point of these frame signals is to change the state (contents) of these data at a predetermined high frequency so that the data extraction circuit can clearly extract the change history of desired data such as the sensor data and actuator drive data. It is sufficient if the information can be transmitted repeatedly.
〔発明が解決しようとする課題〕
上記の例のように、2つの信号線を用いて各ノードとメ
インコントローラとを2重ループ状に直列接続すること
は、ループ断線時のシステムダウンを防止するためのバ
ックアップ対策として有効であり、また特に、上述の如
く、第1および第2の各ループに正、副の優先順位を設
けずに、これら各ループを対等に汲い、これらループに
各々伝送される各同−のデータ発生源からのデータの突
き合わせに基づいてその変化Jii歴を抽出するように
すれば、これら抽出されるデータの信頼性ら更に高まる
こととなる。[Problems to be Solved by the Invention] As in the above example, connecting each node and the main controller in series in a double loop using two signal lines prevents system failure in the event of loop breakage. In particular, as mentioned above, it is effective as a backup measure for the first and second loops, without setting a priority order of primary and secondary for each loop, and transmitting data to each of these loops equally. If the change history is extracted based on matching data from the same data source, the reliability of the extracted data will be further increased.
しかし反面、このような2重の系においては、微妙なタ
イミングのすれ等から、データエラーが発生していない
にもかかわらず双方の系におけるデータ内容に異なりが
生じたり、片方の系のみにデータエラーが発生していた
り、更にはまた、片方の系が断線状態から正常な状態に
復帰したりしたような場合に、いずれの系のいかなるデ
ータを真のデータとして抽出すべきかが判断し難く、正
常時には高い信頼性をもって抽出し得たデータも、いざ
何らかの異常が来たすと、その信頼性が急速に低下して
しまう、といった不都合も避は得ない実情にあった。However, on the other hand, in such a dual system, due to subtle timing discrepancies, the data content in both systems may differ even though no data error has occurred, or data may be stored in only one system. When an error occurs, or even when one system returns to a normal state from a disconnection state, it is difficult to judge which system's data should be extracted as the true data. The unavoidable inconvenience is that even though data can be extracted with high reliability during normal times, when some kind of abnormality occurs, the reliability of that data rapidly declines.
こうした実情は、前述した直列制御装置に限らず、池の
2重ループを用いたデータ処理装置にあっても大宮同様
である。This situation is not limited to the above-mentioned serial control device, but also applies to data processing devices using Ike's double loop, as in Omiya.
この発明は、これらの実情に鑑みてなされたものであり
、上記の如く、同一のデータ発生源から第1および第2
の2つの信号線をそれぞれ介して周期的に繰り返し伝送
されるデータの突き合わせに基づき、その変化履歴を抽
出する回路を特に対象として、上記2つの系、あるいは
いずれか一方の系に、何らかの異常が来たしたような場
合であれ、当該データについての真の変化履歴を高い信
頼性のもとに抽出することのできるデータ抽出回路を提
供することを目的とする。This invention has been made in view of these circumstances, and as mentioned above, the first and second data are generated from the same data source.
The circuit that extracts the change history based on the matching of the data that is periodically and repeatedly transmitted through the two signal lines, respectively, is specifically targeted, and if there is any abnormality in the above two systems or either system. An object of the present invention is to provide a data extraction circuit that can extract the true change history of the data with high reliability even in such cases.
この発明では、前記第1の信号線を介して伝送されるデ
ータについて、都度の最新のデータがラッチされる第1
の新データラッチ手段と、この第1の新データラッチ手
段に新たにデータがラッチされて以降、同第1の新デー
タラッチ手段にラッチされたデータが旧データとして別
途ラッチされる第1の旧データラッチ手段と、前記第2
の信号線を介して伝送されるデータについて、都度の最
新のデータがラッチされる第2の新データラッチ手段と
、この第2の新データラッチ手段に新たにデータがラッ
チされて以降、同第2の新データラッチ手段にラッチさ
れたデータが旧データとして別途ラッチされる第2の旧
データラッチ手段と、前記第1の新データラッチ手段に
ラッチされたデータと前記第1の旧データラッチ手段に
ラッチされたデータとを比較する第1の比較手段と、前
記第2の新データラッチ手段にラッチされたデータと前
記第2の旧データラッチ手段にラッチされたデータとを
比較する第2の比較手段と、前記第1の新データラッチ
手段にラッチされたデータと前記第2の新データラッチ
手段にラッチされたデータとを比較する第3の比較手段
と、前記第3の比較手段による都度の比較結果が一致し
ていることを条件に、前記第1および第2の比較手段の
少なくとも一方での比較結果が所定の複数のデータ数に
対応して一致するとき2、当該一致データを真のデータ
と判定してこれを抽出出力する判定手段と、を少なくと
も具えるようにする。In this invention, for data transmitted via the first signal line, the latest data is latched in the first signal line.
a new data latch means, and a first old data latch means in which, after new data is latched in the first new data latch means, the data latched in the first new data latch means is separately latched as old data. data latch means;
Regarding the data transmitted via the signal line, a second new data latch means latches the latest data each time, and after new data is latched in this second new data latch means, the latest data is latched each time. a second old data latch means in which the data latched by the second new data latch means is separately latched as old data; and the data latched by the first new data latch means and the first old data latch means. a first comparison means for comparing the data latched in the second data latch means, and a second comparison means for comparing the data latched in the second new data latch means and the data latched in the second old data latch means. a comparing means, a third comparing means for comparing the data latched by the first new data latch means and the data latched by the second new data latch means, each time the third comparing means 2, when the comparison results of at least one of the first and second comparison means match corresponding to a predetermined number of data, the matching data is set as true. and determining means for determining the data and extracting and outputting the data.
上記の構成により、特に上記判定手段の配設により、
(イ)2つの系に同時にラッチされるデータは、少なく
ともその内容が一致(第3の比較手段による比較結果が
一致)していない限り、真のデータとして取り込まれる
ことはない。With the above configuration, and especially with the arrangement of the determination means, (a) unless the data latched simultaneously in two systems match at least the contents (the comparison results by the third comparison means match), It is never captured as real data.
(ロ)これら2つの系での内容が一致していても、各々
の系において所定の複数回だけ同一の内容が維持されな
い限り、これが真のデータとして取り込まれることはな
い。(b) Even if the contents in these two systems match, unless the same contents are maintained a predetermined number of times in each system, this will not be taken in as true data.
(ハ)上記(イ)および(ロ)の真のデータとして取り
込まれるための条件は、2つの系の双方で満足される必
要はなく、これらのうちのいずれか一方の系において満
足されればよい、該条件が満足された時点で、この該当
する系のデータが直ちに取り込まれる(抽出出力される
)ようになる。(c) The conditions in (a) and (b) above to be taken as true data do not need to be satisfied in both systems, but as long as they are satisfied in either one of them. As soon as this condition is satisfied, the data of this corresponding system will be immediately taken in (extracted and output).
といった、データ抽出のための取り決めがなされるよう
になる。すなわちこのことは、一般に不安定とされてい
た多くの場合にも、実際に取り込まれる(抽出される)
データの信頼性は維持されるようになる(上記(イ)お
よび(ロ)の条件設定による)とともに、例えば上記〈
口)の条件を単一の系に採用した場合よりも安定がっ遠
やかに、都度のデータ抽出が達成され得るようになる(
上記(ハ)の条件設定による)ことを意味する。Arrangements for data extraction will be made. In other words, this fact is actually incorporated (extracted) even in many cases that are generally considered unstable.
The reliability of the data will be maintained (by setting the conditions (a) and (b) above), and for example, the
This makes it possible to achieve data extraction on a case-by-case basis with far greater stability than if the conditions of
(according to the condition setting in (c) above)).
また、これに加えて、上記(ハ)の条件成立後は、その
該当する系はもとより、他方の系に対しても、上記(ロ
)の条件を強制的に初期化する手段を上記判定手段に併
せ持たせるようにすれば、片方の系が断線状態から正常
な状態に復帰したような場合でも、その際の抽出データ
の信頼性を良好に維持することができるようになり、更
にはまた、上記(イ)の条件の不成立原因が相手側の系
にあることが明らかである場合(例えば相手側の系にお
いてデータ伝送エラー等が検知されたような場合)に、
この(イ)の条件を強制的に解除せしめる手段を同判定
手段に併せ持たせるようにすれば、これら2つの系を利
用した更に速やかなるデータ抽出が実現されるようにな
る。In addition to this, after the condition (c) above is satisfied, the determination means includes a means for forcibly initializing the condition (b) above not only for the corresponding system but also for the other system. By combining this with the system, even if one system returns to a normal state from a disconnected state, the reliability of the extracted data can be maintained well, and furthermore, , when it is clear that the cause of the failure of condition (a) above is in the other party's system (for example, when a data transmission error, etc. is detected in the other party's system),
If the determination means is also provided with a means for forcibly canceling the condition (a), even faster data extraction using these two systems can be realized.
なお、こうした態様でのデータ抽出が、(データ伝送周
期)X(条件(ロ)でいう所定の複数回)<(データの
安定時間:データ内容が変化しない時間)
を前提として行なわれるものであることはいうまでもな
い。Note that data extraction in this manner is performed on the premise that (data transmission period) Needless to say.
第1図〜第5図に、この発明にかかるデータ抽出回路の
一実施例を示す。1 to 5 show an embodiment of a data extraction circuit according to the present invention.
この実施例は、先の第6図に示したような直列制御装置
のメインコントローラ100にあって、各ノードを通じ
て収集されるセンサデータを抽出しつつ、各回−のセン
サ(データ発生源)に関しての各データ変化履歴をプレ
スコントローラ等の対象tlI M 1lilJ御部に
出力する回路に、この発明にかかるデータ抽出回路を適
用したものである。すなわち第1図において、ループ■
およびループ■は、それぞれ第6図に示した2つのルー
プを示すものであり、特にここでは、終段のノード1〇
−nからの2つの信号出力線(メインコントローラ10
0の2つの信号入力線)に相当するものとして示されて
いる。This embodiment is installed in the main controller 100 of the series control device as shown in FIG. 6 above, and extracts sensor data collected through each node. The data extraction circuit according to the present invention is applied to a circuit that outputs each data change history to a target control unit such as a press controller. In other words, in Figure 1, the loop ■
and loop ■ respectively indicate the two loops shown in FIG.
0 signal input lines).
さてこの実施例回路は、第1図に示されるように上記ル
ープ■に関してこれに伝送されるフレーム信号を所定の
規則に基づき処理するためのループI処理回路10と、
上記ループ■に関してこれに伝送されるフレーム信号を
所定の規則に基づき処理するためのループ■処理回路2
0と、これらループI処理回路10およびループ■処理
回路20によって各フレーム信号中から抜き取られたデ
ータに基づきその変化履歴を抽出するための抽出処理回
路30と、の大きくは3つの回路部分を有して構成され
る。As shown in FIG. 1, this embodiment circuit includes a loop I processing circuit 10 for processing a frame signal transmitted to the loop (2) based on a predetermined rule;
A loop ■processing circuit 2 for processing the frame signal transmitted to the above loop ■ based on a predetermined rule.
0, and an extraction processing circuit 30 for extracting the change history based on the data extracted from each frame signal by the loop I processing circuit 10 and the loop II processing circuit 20. It is composed of
このうち、上記ループI処理回路10およびループ■処
理回路20はそれぞれ、各該当するループを介して伝送
される例えば先の第7図(d)に示される如くのフレー
ム信号の変調信号(例えばCMI変調等の、データとデ
ータクロックとが直接復調分離できる形式での変調が施
されている)を入力して、これをいわゆるNRZからな
るフレーム信号とこの各単位ビット期間に同期した周期
を有するデータクロックDCKとに復調するデータ入力
復調回路11および21、予めのスイッチ設定あるいは
各ノードからの予めのセンサ数情報の受入登録動作等に
基づき、都度のフレーム信号に搭載されて入力されるセ
ンサデータ(以下では便宜上、1センサにつき1とヅト
データとする)の数が記憶保持されるデータ数保持回路
12および22、上記復調回路11あるいは21によっ
て復調されたフレーム信号から各々前記入力データ用ス
タートコードrsTIJを検出するSTI検出回路13
および23、これらSTI検出回路13あるいは23に
よる検出信号A1あるいはA2により(スイッチSll
あるいはS21のオンにより)起動されて、上記データ
数保持回路12あるいは22の記憶保持データB1ある
いはB2をプリセット値として読み込み、以後上記復調
されたデータクロックDCKに基づき、この読み込んだ
値から順にダウンカウント動作を行なうダウンカウンタ
14および24、上記復調回路11あるいは21によっ
て復調されたフレーム1言号から各々前記ストップコー
ドrsPJを検出するSP検出回路15および25、こ
れらSP検出回路15あるいは25による検出信号を各
々上記フレーム信号のrsPJ終端からエラーチエツク
コードrcRc、終端までのビット数分だけ遅延出力す
る第1遅延回路16aおよび26a、これら第1遅延回
路16aあるいは26aによる遅延出力F1あるいはF
2を各々更に前記エラーコードrERRJのビット数分
だけ、すなわち各フレーム信号のエラーコードrBRR
,を見込んだ終端(フレームエンド)までのビット数分
だけ遅延出力する(この遅延出力はフレームエンド信号
FE1あるいはFB2となる)第2遅延回路16bおよ
び26b、各々フレーム信号の到来時間間隔(到来周期
)に基づきフレーム信号の到来か有無を監視し、例えば
ここでは、あるフレーム信号到来の後、
(1フレ一ム信号にかかる伝送時間)+(フレーム間隔
にかかる時間)+(1フレ一ム信号にかかる伝送時間)
+(フレーム間隔の半分にかかる時間)
を経過しても次のフレーム信号が到来しなかったとき、
各対応するループが断線している旨判断して、断線検出
信号BRIあるいはBH3を出力する断線検出回路17
および27、上記STI検出回路13あるいは23によ
る検出信号A1あるいはA2の発生時から上記第1遅延
回路16aあるいは26aによる遅延出力F1あるいは
F2の発生時までの間(スイッチS12あるいはS22
がオン状態にある間)、各該当するフレーム信号(正確
にはそのrDIJ 、rsTOJ 、rsp、、。Of these, the loop I processing circuit 10 and the loop II processing circuit 20 each process a modulation signal (for example, a CMI signal) of a frame signal as shown in FIG. A frame signal consisting of so-called NRZ and data having a period synchronized with each unit bit period are input. The data input demodulation circuits 11 and 21 demodulate to the clock DCK, and sensor data (which is loaded and inputted into each frame signal) is input based on the pre-switch settings or the pre-acceptance registration operation of sensor number information from each node. In the following, for convenience, the data number holding circuits 12 and 22, which store and hold the number 1 per sensor, and the frame signal demodulated by the demodulation circuit 11 or 21, respectively, obtain the input data start code rsTIJ. STI detection circuit 13 to detect
and 23, by the detection signal A1 or A2 from these STI detection circuits 13 or 23 (switch Sll
or by turning on S21), reads the stored data B1 or B2 of the data number holding circuit 12 or 22 as a preset value, and thereafter counts down in order from this read value based on the demodulated data clock DCK. Down counters 14 and 24 that operate, SP detection circuits 15 and 25 that detect the stop code rsPJ from one frame word demodulated by the demodulation circuit 11 or 21, and detection signals from these SP detection circuits 15 or 25. First delay circuits 16a and 26a that delay output by the number of bits from the rsPJ end of the frame signal to the error check code rcRc and the end, and delayed outputs F1 or F by these first delay circuits 16a or 26a, respectively.
2 and the number of bits of the error code rERRJ, that is, the error code rBRR of each frame signal.
, the second delay circuits 16b and 26b delay the output by the number of bits up to the end (frame end) taking into account the frame signal (this delayed output becomes the frame end signal FE1 or FB2). ), and for example, in this case, after the arrival of a certain frame signal, (transmission time for one frame signal) + (time for frame interval) + (one frame signal) transmission time)
+ (time required for half the frame interval) when the next frame signal does not arrive,
A disconnection detection circuit 17 that determines that each corresponding loop is disconnected and outputs a disconnection detection signal BRI or BH3.
and 27, from the generation of the detection signal A1 or A2 by the STI detection circuit 13 or 23 to the generation of the delayed output F1 or F2 by the first delay circuit 16a or 26a (switch S12 or S22
is in the on state), each corresponding frame signal (precisely its rDIJ , rsTOJ , rsp, . . . ).
rDLJおよびrCRC,の部分)を取り込んで、その
伝送エラーの発生の有無をチエツクするエラーチエツク
回路18および28、各該当するフレーム信号から前記
エラーコードrERR,の有無、すなわち、各該当フレ
ーム信号のエラー経歴の有無を検出するエラーコード検
出回路19および29、そして上記断線検出口#117
あるいは27から出力される断線検出信号BRIあるい
はBH3をはじめ、上記エラーチエツク回路18あるい
は28によるエラー検出出力、上記エラーコード検出回
路19あるいは29によるエラーコード検出出力の各論
理和信号を異常検出信号EBIあるいはEB2として出
力するオア回路0RIOおよび0R20、を具えて構成
され、それぞれ以下に説明する抽出処理回F430に対
するタイミング信号、ないしは処理条件信号の形成回路
として機能する回路部分である。Error check circuits 18 and 28 take in the error code (rDLJ and rCRC) and check whether a transmission error has occurred. Error code detection circuits 19 and 29 that detect the presence or absence of a history, and the disconnection detection port #117
Alternatively, the OR signal of the disconnection detection signal BRI or BH3 outputted from the circuit 27, the error detection output from the error check circuit 18 or 28, and the error code detection output from the error code detection circuit 19 or 29 is used as the abnormality detection signal EBI. Alternatively, it is configured with OR circuits 0RIO and 0R20 that output as EB2, and is a circuit portion that functions as a circuit for forming a timing signal or a processing condition signal for the extraction processing circuit F430, which will be described below.
また、上記抽出処理回路30は、ループI処理回路10
のSTI検出回路13による検出信号A1の発生時から
同ループI処理回路10のダウンカウンタ14によるボ
ロー(借り)信号C1の発生時までの間(スイッチ31
4がオン状態にある間)、データ入力復調回路11を通
じて復調されたループIに関してのフレーム信号に含ま
れる全データ(センサデータDI)を取り込み、これを
前記データクロックDCKに基づきラッチ(−時記憶)
するループエ用の第1データラツチ31a、ループ■処
理回路20のSTI検出回路23による検出信号A2の
発生時がら同ループ■処理回路20のダウンカウンタ1
4によるボロー信号C2の発生時までの間(スイッチS
24がオン状態にある間)、データ入力復調回路21を
通じて復調されたループ■に関してのフレーム信号に含
まれる全データ(センサデータDI)を取り込み、これ
を同様にデータクロックDCKに基づきラッチ(−時記
憶)するループ■用の第1データラツチ32a、これら
ループI用あるいはループ■用の第1データラツチ31
aあるいは32aにラッチされたデータが、この実施例
では特に、後述する転送許可信号n1あるいはn2か能
動(オン)となっている期間に、後述する判定回路36
を通じて書き込み許可が与えられていることを条件に、
再ラツチされるルーブエ用およびループ■用の第2デー
タラツチ31bおよび32b、上記ループI処理回路1
0およびループ■処理回路20を通じて形成されるフレ
ームエンド信号FEIおよびFE2 (第2遅延回路1
6bおよび26bの出力)、ボロー信号C1およびC2
(ダウンカウンタ14および24の出力)、断線検出信
号BR1およびBH3(1!Ii線検出回路17および
27の出力)に基づいて、各々第1データラツチ31a
あるいは32aから第2データラツチ31bあるいは3
2bへのデータ転送を許可する(スイッチS31および
S32をオンとする)ための転送許可信号n1およびn
2を形成出力する(ただし、この実施例では、この許可
期間に後述する判定回路36から書き込み許可信号が出
力されてはじめて実質的なデータ転送が完了される)転
送タイミング発生回路33、上記第2データラツチ31
bおよび32bへのデータ書き込みタイミングをはじめ
とする該抽出処理回路3014Cとしての処理タイミン
グ〈処理速度)を決定するためのタロツク信号W(前記
データクロックDCKよりも周波数の高いタロツクを想
定する)を発生する書き込みタロツク発生回路34、オ
ア回路0R32を介した上記転送許可信号n1あるいは
B2によるスイッチS35のオンに基づき起動されて上
記クロック信号Wに基づく計数動作を開始し、上記第1
データラヅチ31aおよび32a、第2データラツチ3
1bおよび32b、IIt述する判定回路36、のそれ
ぞれアドレス信号ADとするその出力カウント値とオア
回fI?l0R33を介して与えられるデータ数情報値
B1あるいはB2(データ数保持回路12あるいは22
の記憶情報)とが一致したとき、すなわち排他的オア回
路(ディジタル比較器)EOR34の出力が論理“0”
レベルとなったとき、上記計数を終了して、例えば上記
クロック信号Wの次の立ち上がりタイミングをもってリ
セットされるアドレスカウンタ35、上記ループエ用の
第1データラツチ31aにラッチされたデータと同じく
ルーグI用の第2データラツチ31bにラッチされたデ
ータとのそれぞれ同一アドレス信号に係わる、すなわち
同一センサに係わるデータ(各1ビツトのデータ)につ
いて比較を行なう第1排他的オア回路EOR31、上記
ループ■用の第1データラツチ32aにラッチされたデ
ータと同じくループ■用の第2データラツチ32bにラ
ッチされたデータとのそれぞれ同一アドレス信号に係わ
る、すなわち同一センサに係わるデータ(各1ビツトの
データ)について比較を行なう第2排池的オア回1?1
EOR32、上記ルーグI用の第1データラツチ31a
にラッチされたデータと上記ループ■用の第1データラ
ツチ32aにランチされたデータとのそれぞれ同一アド
レス信号に係わる、すなわち同一センサに隔わるデータ
(各1ビツトのデータ)について比較を行なう第3排他
的オア回1lEOR33、これら第1〜第3排他的オア
回路EOR31〜EOR33の各比較出力、並びに上記
ループ1処理回#110あるいはループ■処理回路20
からの異常検出信号EBIあるいはEB2に基づき、上
記第2データラツチ31bおよび32bにラッチされて
いる各センサ別のデータの真、偽を判定し、真と判定さ
れるデータについてのみこれを、その対応するアドレス
が指定されている期間に、スイッチS33あるいはS3
4を通じて、該第2データラツチ31bあるいは32b
から出力せしめる判定回路36、そしてこの出力される
データの論理和出力を、該実施例データ抽出回路による
抽出データとしてデータ処理・制御回路(例えばプレス
コントローラ)40に対し出力するオア回路OR31、
をそれぞれ具えて構成される、該実施例データ抽出回路
の主要部を構成する回路部分である。Further, the extraction processing circuit 30 includes the loop I processing circuit 10.
The period from the time when the detection signal A1 is generated by the STI detection circuit 13 of the same loop until the time when the borrow signal C1 is generated by the down counter 14 of the same loop I processing circuit 10 (switch 31
4 is in the on state), all data (sensor data DI) included in the demodulated frame signal regarding loop I is taken in through the data input demodulation circuit 11, and is latched (- time memory) based on the data clock DCK. )
When the detection signal A2 is generated by the STI detection circuit 23 of the loop processing circuit 20, the down counter 1 of the loop processing circuit 20 is activated.
4 until the borrow signal C2 is generated (switch S
24 is in the on state), all the data (sensor data DI) included in the frame signal regarding the demodulated loop 2 is taken in through the data input demodulation circuit 21, and is similarly latched (at - time) based on the data clock DCK. A first data latch 32a for loop (2) to store), a first data latch 31 for loop I or loop (2)
In this embodiment, the data latched in a or 32a is transmitted to the determination circuit 36, which will be described later, especially during a period when the transfer permission signal n1 or n2, which will be described later, is active (on).
Provided that write permission is granted through
Second data latches 31b and 32b for Louve and loop 2 to be relatched, the loop I processing circuit 1
0 and loop ■ Frame end signals FEI and FE2 formed through the processing circuit 20 (second delay circuit 1
6b and 26b outputs), borrow signals C1 and C2
(outputs of down counters 14 and 24), disconnection detection signals BR1 and BH3 (outputs of 1!Ii line detection circuits 17 and 27), respectively, the first data latch 31a
Or from 32a to second data latch 31b or 3
Transfer permission signals n1 and n for permitting data transfer to 2b (turning on switches S31 and S32)
2 (however, in this embodiment, the actual data transfer is completed only after a write permission signal is output from the determination circuit 36, which will be described later, during this permission period); Data latch 31
Generates a tally signal W (assuming a tally signal with a higher frequency than the data clock DCK) for determining the processing timing (processing speed) of the extraction processing circuit 3014C, including the data writing timing to data clocks DCK and 32b. When the switch S35 is turned on by the transfer permission signal n1 or B2 via the OR circuit 0R32, the write tally generating circuit 34 starts counting operation based on the clock signal W, and starts the counting operation based on the clock signal W.
Data latch 31a and 32a, second data latch 3
1b and 32b, respectively of the determination circuit 36 described above, and their output count values to be used as address signals AD and OR times fI? Data number information value B1 or B2 (data number holding circuit 12 or 22
(stored information), that is, the output of the exclusive OR circuit (digital comparator) EOR34 becomes logic "0".
The address counter 35, which is reset at the next rising timing of the clock signal W, completes the counting process and resets the data latched in the first data latch 31a for the Loop I. A first exclusive OR circuit EOR31 compares the data latched in the second data latch 31b with respect to data related to the same address signal, that is, data related to the same sensor (each 1-bit data); The data latched in the data latch 32a is compared with the data latched in the second data latch 32b for loop (2), which are related to the same address signal, that is, data related to the same sensor (each 1-bit data). Or time 1?1
EOR32, first data latch 31a for the above Rogue I
A third exclusive operation is performed to compare the data latched in the first data latch 32a and the data launched in the first data latch 32a for the loop (2), which are related to the same address signal, that is, data (each 1-bit data) separated by the same sensor. target OR circuit 11EOR33, each comparison output of these first to third exclusive OR circuits EOR31 to EOR33, and the above-mentioned loop 1 processing circuit #110 or loop ■processing circuit 20
Based on the abnormality detection signal EBI or EB2 from the sensor, it is determined whether the data for each sensor latched in the second data latches 31b and 32b is true or false, and only the data determined to be true is transmitted to its corresponding data. During the period when the address is specified, switch S33 or S3
4, the second data latch 31b or 32b
and an OR circuit OR31 that outputs the OR output of the output data to the data processing/control circuit (for example, press controller) 40 as extracted data by the data extraction circuit of the embodiment.
These are the circuit parts constituting the main part of the data extraction circuit of the embodiment, each of which includes the following.
データ処理・制御回路40では、上記アドレス信号AD
(およびタロツク信号W)に基づき、上記オア回路OR
31を介して都度出力されるデータがとのセンサのデー
タであるかを判別しつつ、これらセンサデータに応じた
所要の制御を実行するようになる0例えば、この制御の
ためのデータとして、メインコントローラ100から発
せられるフレーム信号に搭載されて各ノードに分配され
る前記のアクチュエータ駆動データDo(第7図参照)
が利用される。In the data processing/control circuit 40, the address signal AD
(and tarok signal W), the above OR circuit OR
For example, as data for this control, the main The above-mentioned actuator drive data Do (see FIG. 7) is included in the frame signal emitted from the controller 100 and distributed to each node.
is used.
第2図および第3図は、上述した抽出処理回路30にお
ける上記転送タイミング発生回路33および判定回路3
6の具#構成例をそれぞれ示したものであり、また第4
図は、ループIを例としてこれに関する該実施例回路の
動作の概略を示すタイミングチャートであり、以下、こ
れら第2図、第3図および第4図を併せ参照して、同実
施例回路のデータ判定処理にかかる構成並びに動作を更
に詳述する。2 and 3 show the transfer timing generation circuit 33 and determination circuit 3 in the extraction processing circuit 30.
This figure shows each of the 6 ingredients # configuration examples, and the 4th
The figure is a timing chart showing an outline of the operation of the circuit according to the embodiment, taking Loop I as an example. The configuration and operation related to data determination processing will be explained in further detail.
はじめに、第2図に示す転送タイミング発生回路33の
詳細について説明する。First, details of the transfer timing generation circuit 33 shown in FIG. 2 will be explained.
この回路33は、上記のように、ループI処理回路10
およびループ■処理回路20からそれぞれ、第2遅延回
路16bおよび26bの出力であるフレームエンド信号
FEZおよびFE2、ダウンカウンタ14および24の
いわば計数終了出力であるボロー信号C1およびC2、
そして断線検出回路17および27の出力である断線検
出信号BRIおよびBH3を受入して、各々第1データ
ラツチ31aあるいは32aから第2データラツチ31
bあるいは32bへのデータ転送(再ラツチ)を許可す
るための転送許可信号n1およびB2を形成出力する回
路であるが、これら転送許可信号n1およびB2が形成
されるに至るメカニズムは次のようになっている。This circuit 33 is connected to the loop I processing circuit 10 as described above.
and frame end signals FEZ and FE2, which are the outputs of the second delay circuits 16b and 26b, borrow signals C1 and C2, which are so-called counting end outputs of the down counters 14 and 24, from the loop processing circuit 20, respectively;
Then, the disconnection detection signals BRI and BH3, which are the outputs of the disconnection detection circuits 17 and 27, are received, and the signals are switched from the first data latch 31a or 32a to the second data latch 31, respectively.
This is a circuit that forms and outputs transfer permission signals n1 and B2 to permit data transfer (re-latching) to b or 32b.The mechanism by which these transfer permission signals n1 and B2 are formed is as follows. It has become.
すなわちいま、第4図[a)、 (b)、 (c)およ
び(f)に示される関係にて、ループI処理回路10の
ダウンカウンタ14からボロー信号C1が出力されたと
すると(この時点で、ループエを介して到来したフレー
ム信号に含まれるデータ(列)DIの第1データラツチ
31aへの書き込みは完了されている:第4図ff)お
よびfi)参照)、フリツプフロツプFF301がセッ
トされ、このセット出力によってアンド回路AD301
が能動状態となる。第2遅延回路16bからのフレーム
エンド信号FBI(ループエを介して到来したフレーム
信号のエラーコードrERR,を見込んだ終端位置の通
過を示す信号:第4図[a)および(0)参照)は、こ
の状態にあるときに、オア回路0R301に入力される
。したがって、こうしたフレームエンド信号FEZの入
力に伴なって、上記アンド回路AD301の論理積条件
が成立し、フリップフロップFF302にこの論理積出
力(論理レベル″1”)がラッチされ、かつ同フリップ
フロップFF302のQ出力、オア回路0R301およ
びアンド回路AD301のループを通じてこの論理積出
力がラッチされ続ける。なお、このフリップフロップF
F302のクロツク端子に加えられるクロツクSCKは
、数MH2の周波数を有するシステムクロックを想定し
ている。That is, suppose that the borrow signal C1 is output from the down counter 14 of the loop I processing circuit 10 in the relationships shown in FIG. 4 [a], (b), (c), and (f) (at this point , writing of the data (column) DI included in the frame signal that has arrived via the looper to the first data latch 31a has been completed (see ff) and fi) in Figure 4), the flip-flop FF 301 is set, and this set AND circuit AD301 by output
becomes active. The frame end signal FBI from the second delay circuit 16b (signal indicating passage of the end position taking into account the error code rERR of the frame signal that has arrived via the looper: see FIGS. 4(a) and (0)) is as follows: In this state, the signal is input to the OR circuit 0R301. Therefore, with the input of the frame end signal FEZ, the logical product condition of the AND circuit AD301 is satisfied, and the logical product output (logic level "1") is latched in the flip-flop FF302. This AND output continues to be latched through the loop of the Q output of , the OR circuit 0R301, and the AND circuit AD301. Furthermore, this flip-flop F
The clock SCK applied to the clock terminal of F302 is assumed to be a system clock having a frequency of several MH2.
他方、第4図のタイミングチャートにおいては図示を省
略したループHに関しても、ダウンカウンタ24から出
力されるボロー信号C2によってフリップフロツプFF
303がセットされ、このセット信号と第2遅延回路2
6からオア回路0R302を介して加えられるフレーム
エンド信号FE2との、アンド回路AD302による論
理積出力(論理レベル“1”)が、フリップフロップF
F304にラッチされ、かつラッチされ続ける。On the other hand, regarding loop H, which is not shown in the timing chart of FIG.
303 is set, and this set signal and the second delay circuit 2
The AND circuit AD302 outputs an AND signal (logic level "1") with the frame end signal FE2 applied from 6 through the OR circuit 0R302 to the flip-flop F
It is latched to F304 and continues to be latched.
そして、これらループIおよび■に関するフリップフロ
ップFF302およびFF304の双方において、上記
論理レベル“1”の信号がラッチされ、かつラッチされ
続けることにより、アンド回路AD303およびAD3
04がそれぞれ論理積条件成立状態となり、上記ラッチ
状態が続く限り、これらアンド回路AD303およびA
D304からは、前記転送許可信号n1およびB2とし
て、オア回路0R303および0R304をそれぞれ介
して、その論理積信号(論理レベル“1”)が出力され
る(第4図(j)参照)、これら出力される転送許可信
号n1およびB2が、それぞれスイッチS31およびS
32をオンとして、第1データラツチ31aあるいは3
2aから第2データランチ31bあるいは32bへのデ
ータ転送を許可する(データ転送の可能な状態とする)
よう作用するようになることは前述した通りである。Then, in both flip-flops FF302 and FF304 related to loops I and (2), the logic level "1" signal is latched, and by continuing to be latched, AND circuits AD303 and AD3
As long as the above-mentioned latched state continues, these AND circuits AD303 and A
D304 outputs the AND signal (logic level "1") as the transfer permission signals n1 and B2 via OR circuits 0R303 and 0R304, respectively (see FIG. 4(j)). Transfer permission signals n1 and B2 are sent to switches S31 and S, respectively.
32 is turned on, the first data latch 31a or 3
Allow data transfer from 2a to the second data launch 31b or 32b (make data transfer possible)
As mentioned above, it works in this way.
また前述の如く、これら転送許可信号n1およびB2は
、スイッチS35をもオンせしめることによって、アド
レスカウンタ35に起動をかける(第1図、第4図(j
)および(k)参照)。Furthermore, as described above, these transfer permission signals n1 and B2 also turn on the switch S35, thereby starting up the address counter 35 (Figs. 1 and 4 (j
) and (k)).
起動されたアドレスカウンタ35は、これも前述の如く
、書き込みクロック発生回路34から発生されるタロツ
ク信号Wに基づき計数動作を開始し、アドレス信号AD
となるその出力カウント値とデータ数情報値B1あるい
はB2(第4図の例では便宜上、データ数=4としてい
る)とが一致したときの排他的オア回路EOR34の出
力(論理レベル“0”)に基づきこの計数動作を終了す
る(第4図fk)参照)ようになるが、実質的にこのア
ドレスカウンタ35の能動信号(イネーブル信号)とし
て作用する上記排他的オア回路EOR34の出力信号E
は、当の転送タイミング発生回路33にとっても、いわ
ば能動信号の1つとして作用する。The activated address counter 35 starts counting based on the tarock signal W generated from the write clock generation circuit 34, as described above, and receives the address signal AD.
The output of the exclusive OR circuit EOR34 (logic level "0") when the output count value matches the data number information value B1 or B2 (in the example of FIG. 4, the number of data is set to 4 for convenience). (see FIG. 4 fk)), the output signal E of the exclusive OR circuit EOR 34, which essentially acts as an active signal (enable signal) for the address counter 35.
also acts as one of the active signals for the transfer timing generation circuit 33 in question.
すなわちこの回路33は、第1図および第2図に示され
るように、上記排他的オア回路EOR34の出力信号E
をフリップフロップFF301およびFF303の各リ
セット端子R(論理反転入力となっている)に受入する
ようになっており、同信号Eの論理“1パレベルから論
理″0”レベルへの切り替わりに基づいて、フリップフ
ロップFF302およびFF304の上述したラッチ持
続のためのループを遮断するようにしている。したがっ
て、該転送タイミング発生回路33から出力された上記
の転送許可信号n1およびn2は、アドレスカウンタ3
5の計数動作終了に略同期して、非能動レベル(論理“
0”レベル)にリセットされることとなる(第4図Fk
)およびfj)参照)。That is, as shown in FIGS. 1 and 2, this circuit 33 receives the output signal E of the exclusive OR circuit EOR34.
is received by each reset terminal R (which serves as a logic inversion input) of flip-flops FF301 and FF303, and based on the switching of the signal E from the logic "1" level to the logic "0" level, The above-described loop for sustaining the latch of the flip-flops FF302 and FF304 is cut off.Therefore, the above-mentioned transfer permission signals n1 and n2 outputted from the transfer timing generation circuit 33 are transmitted to the address counter 3.
Approximately in synchronization with the end of the counting operation in step 5, the inactive level (logic “
0” level) (Fig. 4 Fk
) and fj)).
ところで、この転送タイミング発生回路33の以上の動
作は、ループ■および■が共に正常で、フレーム信号が
これら両ループに確実に伝送される場合を想定したもの
であるが、例えばループ■に断線が生じ、ループ■側に
はフレーム信号が到来しなくなったような場合には、該
回路33は、次の態様で動作する。By the way, the above operation of the transfer timing generation circuit 33 is based on the assumption that loops ■ and ■ are both normal and the frame signal is reliably transmitted to both loops, but if, for example, there is a break in loop ■, If this occurs and the frame signal no longer arrives on the loop (2) side, the circuit 33 operates in the following manner.
すなわちこの場合、ループIIPIは正常であることか
ら、該ループIを介したフレーム信号の到来に応じて、
フリップフロップFF302での上述した論理“1”レ
ベル信号のラッチは実現されるが、ループ■側に対応す
るフリップフロップFF304には論理“1”レベル信
号はラッチされない(ボロー信号C2もフレームエンド
信号FB2も生じない)。That is, in this case, since loop IIPI is normal, in response to the arrival of the frame signal via loop I,
Although the flip-flop FF302 latches the logic "1" level signal as described above, the logic "1" level signal is not latched in the flip-flop FF304 corresponding to the loop (2) side (borrow signal C2 and frame end signal FB2 does not occur).
またこの場合、ループ■側の断線検出回路27は、その
前述した機能に基づき、例えば第4図(g)に破線で示
すタイミングにて、すなわち同第4図(a)に示す最初
のフレーム信号の1つ前のフレーム信号が到来した後に
該ループ■に断線か生じたものとして、ループ■に換算
してこの最初のフレーム信号とその次のフレーム信号と
の間隔に相当する時間の略半分の時間に相当するタイミ
ングにて、断線検出信号BR2を出力する。In this case, the disconnection detection circuit 27 on the loop (2) side, based on the above-mentioned function, receives the first frame signal shown in FIG. 4(a), for example, at the timing shown by the broken line in FIG. Assuming that a disconnection occurs in the loop (2) after the frame signal one before the previous one arrives, approximately half of the time corresponding to the interval between this first frame signal and the next frame signal in terms of the loop (2). A disconnection detection signal BR2 is output at a timing corresponding to the time.
この結果、該転送タイミング発生回路33では、上記断
線検出信号BR2が出力された時点から、アンド回路A
D305の論理積条件が満たされることとなり、該アン
ド回路AD305から、前記転送許可信号n1として、
その論理積信号(論理レベル“1′”)がオア回路0R
303を介して出力されるようになる(第4図(g)お
よび(j)の破線図参照)、この転送許可信号n1のリ
セットにかかる動作は、先の例の場合と同様である。As a result, in the transfer timing generation circuit 33, from the time when the disconnection detection signal BR2 is output, the AND circuit A
The logical AND condition of D305 is satisfied, and the AND circuit AD305 outputs the transfer permission signal n1 as the transfer permission signal n1.
The AND signal (logic level "1'") is the OR circuit 0R
303 (see the broken line diagrams in FIGS. 4(g) and (j)), the operation for resetting the transfer permission signal n1 is the same as in the previous example.
このように、第2図に示す転送タイミング発生回路33
によれば、一方のループか断線した場合であっても、他
方の正常なループに関する転送許可信号は出力される。In this way, the transfer timing generation circuit 33 shown in FIG.
According to the above, even if one loop is disconnected, a transfer permission signal for the other normal loop is output.
また、正常なループに関していえば、いかなる場合も、
次のフレーム信号が到来する以前に、上記転送許可信号
が出力されることにらなる。Also, when it comes to normal loops, in any case,
The transfer permission signal will be output before the next frame signal arrives.
次に、第3図に示す判定回路36について、その詳細を
説明する。Next, details of the determination circuit 36 shown in FIG. 3 will be explained.
この判定回路36は、前述のように、第1〜第3排池的
オア回路EOR31〜EOR33の各比較出力、並びに
ループ■処理回路10あるいはループ■処理回路20か
らの異常検出信号EBIあるいはEB2に基づき、各第
2データラツチ31bおよび32bにラッチされている
センサ別データの真、偽を判定し、真と判定されるデー
タについてのみこれを、その対応するアドレスが指定さ
れている期間に、スイッチ333あるいはS34を通じ
て、同第2データラツチ31bあるいは32bから出力
せしめる回路であるが、これらデータ判定が行なわれる
に至るメカニズムは次のようになっている。As described above, this judgment circuit 36 receives the comparison outputs of the first to third exhaustive OR circuits EOR31 to EOR33, as well as the abnormality detection signal EBI or EB2 from the loop processing circuit 10 or the loop processing circuit 20. Based on this, the sensor-specific data latched in each of the second data latches 31b and 32b is determined to be true or false, and only the data determined to be true is sent to the switch 333 during the period in which its corresponding address is specified. Alternatively, the circuit outputs the data from the second data latch 31b or 32b through S34.The mechanism by which these data decisions are made is as follows.
いま、ループ■および■の双方のループにおけるある到
来フレーム信号に関しての各第1データラツチ31aお
よび32aへのデータラッチか完了しく第4図(a)〜
(i)参照)、かつ前記転送タイミング発生回路33か
ら出力された転送許可信号n1およびn2に基づき、ス
イッチ531および332がオンとなり、またアドレス
カウンタ35がアドレス信号ADについてその計数(ア
ドレス指定)を開始したとすると(第4図Fk)参照)
、まず、このアドレス信号ADによるアドレス「1(計
数値1)」の指定に応じて、第1排他的オア回路EOR
31は、上記第1データラツチ31aの「1」番地に格
納されたデータ(第1のセンサのデータDi)と第2デ
ータランチ31bの「1」番地にそれまでに格納されて
いるデータ(第1のセンサのデータDI)とを比較して
その比較結果を、また第2排他的オア回路EOR32は
、上記第1データラツチ32aの「1」番地に格納され
たデータ(第1のセンサのデータDi)と第2データラ
ツチ32bの「1」番地にそれまで格納されているデー
タ(第1のセンサのデータDI)とを比較してその比較
結果を5そして第3排他的オア回路EOR33は、上記
第1データラヅチ31aの「1」番地に格納されたデー
タ(第1のセンサのデータDI)と上記第1データラン
チ32aの「1」番地に格納されたデータ(第1のセン
サのデータDI>とを比較してその比較結果を、それぞ
れこの判定回路36に対して出力する。Now, data latching to each of the first data latches 31a and 32a regarding a certain incoming frame signal in both loops ① and ② has been completed.
(i)) and based on the transfer permission signals n1 and n2 output from the transfer timing generation circuit 33, the switches 531 and 332 are turned on, and the address counter 35 performs the count (address designation) of the address signal AD. (See Figure 4 Fk)
, First, in response to the designation of address "1 (count value 1)" by this address signal AD, the first exclusive OR circuit EOR
31 is the data (first sensor data Di) stored at address "1" of the first data latch 31a and the data (first sensor data) previously stored at address "1" of the second data latch 31b. The second exclusive OR circuit EOR32 compares the data (data DI) of the first sensor with the data DI of the first sensor and outputs the comparison result. and the data (first sensor data DI) stored up to that point in the address "1" of the second data latch 32b. Compare the data stored at address "1" of the data launcher 31a (first sensor data DI) and the data stored at address "1" of the first data launch 32a (first sensor data DI>) The comparison results are outputted to the determination circuit 36, respectively.
ここで、判定回路36においては、上記第3排他的オア
回路EOR33の比較出力について、アンド回路AD6
01および排他的オア回路EOR601およびオア回路
0R601からなる第1保護回路61、並びにアンド回
路AD602および排他的オア回路EOR602および
オア回路0R602からなる第2保護回路62を通じて
、(A)前記異常検出信号EBIおよびEB2のいずれ
も出力されない場合に、その比較出力(第3排他的オア
回i?−3E OR33の比較出力)が論理“0”レベ
ル(比較結果=同一内容)であれば、アンド回路AD6
03〜AD606を全て能動状態とする。Here, in the determination circuit 36, the comparison output of the third exclusive OR circuit EOR33 is determined by the AND circuit AD6.
(A) the abnormality detection signal EBI and EB2 are not output, and if the comparison output (comparison output of the third exclusive OR circuit i?-3E OR33) is at logic "0" level (comparison result = same content), AND circuit AD6
03 to AD606 are all activated.
(B)前記異常検出信号EBIおよびEB2のいずれも
出力されない場合に、その比較出力が論理“1”レベル
(比較結果=異なる内容)であれば、アンド回路AD6
03〜AD606の全てを非能動状態とする。(B) If neither of the abnormality detection signals EBI and EB2 is output, and the comparison output is at logic "1" level (comparison result = different content), AND circuit AD6
03 to AD606 are all inactive.
(C)その比較出力が論理” 1 ”レベル(比12結
果−異なる内容)であっても、ループ■側から異常検出
信号EB2が出力されておれば、ループエ側のアンド回
路AD603およびAD605についてはこれを能動状
態とし、ループ■側のアンド回路AD604およびAD
606についてはこれを非能動状態とする。(C) Even if the comparison output is at the logic "1" level (ratio 12 result - different contents), if the abnormality detection signal EB2 is output from the loop ■ side, the AND circuits AD603 and AD605 on the loop E side will be With this active, the AND circuit AD604 and AD on the loop ■ side
606 is inactive.
CD)その比較出力が論理“1′ルベル(比較結果=異
なる内容)であっても、ループ1側から異常検出信号E
BIが出力されておれば、ループ■側のアンド回路AD
604およびAD606についてはこれを能動状態とし
、ループ■側のアンド回路AD603およびAD605
についてはこれを非能動状態とする。CD) Even if the comparison output is a logic “1” level (comparison result = different content), the abnormality detection signal E is output from the loop 1 side.
If BI is output, the AND circuit AD on the loop ■ side
604 and AD606 are activated, and the AND circuits AD603 and AD605 on the loop ■ side
This is set to be inactive.
(E)前記異常検出信号EBIおよびEB2が共に出力
されている場合には、その比較出力に係わらずに、アン
ド回路AD603〜AD606の全てを非能動状態とす
る。(E) When both the abnormality detection signals EBI and EB2 are output, all AND circuits AD603 to AD606 are rendered inactive, regardless of the comparison output.
といっな5通りの論理を設定しており、これら5通りの
論理と上記第1排他的オア回路EOR31による比較結
果あるいは上記第2排池的オア回路EOR32による比
較結果との更なる組み合わせ条件に応じて、以下に述べ
るデータ判定動ずtが制御されるようになっている。Five types of logic are set, and further combination conditions of these five types of logic and the comparison result by the first exclusive OR circuit EOR31 or the comparison result by the second exclusive OR circuit EOR32 are set. Accordingly, the data determination movement t described below is controlled.
例えば、ループエ側に関していえば、アンド回路AD6
03およびAD605か非能動状態におかれる上記(B
)および(D)および(E)の条件は別として、同アン
ド回路AD603およびAD605が能動状態となる上
記(A )および(C)の条件下にあっては、上記第1
排池的オア回路EOR31の比較出力に応じて、
(I−1)この比較出力か論理“0”レベル(比較結果
=同一内容)であれば、アンド回路AD603は非能動
(論理積出カー論理“0”レベル)となり、アンド回路
(ノア回路)AD605は論理積条件か成立する(論理
積出力=論理“1パレベル)。For example, on the loop-e side, AND circuit AD6
03 and AD605 are placed in an inactive state (B
), (D), and (E), under the conditions (A) and (C) above, in which the AND circuits AD603 and AD605 are active, the first
According to the comparison output of the exclusive OR circuit EOR31, (I-1) If this comparison output is at the logic "0" level (comparison result = same content), the AND circuit AD603 becomes inactive (logical product logic). The AND circuit (NOR circuit) AD605 satisfies the AND condition (AND output = logic "1" level).
(I−2)この比較出力が論理“1”レベル(比較結果
=異なる内容)であれば、アンド回路AD603は論理
積条件が成立し
く論理積出力=論理“1”レベル)、アンド回路(ノア
回路)AD605は非能動(論理積出カー論理“0パレ
ベル)となる。(I-2) If this comparison output is at logic “1” level (comparison result = different content), the AND circuit AD603 meets the AND condition, and the AND circuit (NOR output = logic “1” level). (Circuit) AD605 becomes inactive (logical product logic "0" level).
といった態様での制御が実行される。なおここで、上記
アンド回1iAD603が非能動に制御されるというこ
とは、同判定回路36内のアンド回路AD615が非能
動に保たれて、「1」データ発生回路65から発生され
る「1」データのカウント数ラッチ67へのランチが禁
止されるとともに、前記第2データラツチ31bのライ
トマスクゲートとして機能するアンド回路AD31(第
1図)も非能動に保たれて、該第2データラツチ31b
へのデータ書き込み(ラッチ)が禁止され、逆に、同ア
ンド回路AD603の論理積条件か成立されるというこ
とは、上記アンド回路AD615が能動状態に制御され
て、「1」データ発生回路65から発生される「1」デ
ータがオア回路0R603を介してカウント数ラッチ6
7の前記アドレス信号ADによる当該指定番地に書き込
まれる(ただし、アンド回路AD613の能動状態にお
いて)とともに、上記アンド回路AD31(第1図)も
能動状態に制御されて(これが前述した書き込み許可信
号となる)、第2データラツチ31bへの前記クロック
信号Wに基づくデータ書き込みが実行されることをそれ
ぞれ意味する。Control is executed in such a manner. Here, the fact that the AND circuit 1iAD603 is controlled to be inactive means that the AND circuit AD615 in the determination circuit 36 is kept inactive, and the “1” generated from the “1” data generation circuit 65 is Launching of data to the count number latch 67 is prohibited, and the AND circuit AD31 (FIG. 1) functioning as a write mask gate of the second data latch 31b is also kept inactive, and the second data latch 31b is
The fact that data writing (latching) is prohibited and, conversely, the AND condition of the AND circuit AD603 is satisfied means that the AND circuit AD615 is controlled to be active, and "1" is output from the data generation circuit 65. The generated “1” data is sent to count number latch 6 via OR circuit 0R603.
7 is written to the specified address by the address signal AD (provided that the AND circuit AD613 is in the active state), and the AND circuit AD31 (FIG. 1) is also controlled to be in the active state (this is the write enable signal mentioned above). ) means that data writing to the second data latch 31b based on the clock signal W is executed.
第2データラツチ31bは、上記アンド回路AD31の
出力の立ち上がりタイミングをもって、そのとき第1デ
ータラツチ31aから転送されるデータをラッチするよ
うになっている。また、上記アンド回路(ノア回路)A
D605の論理積条件が成立されるということは、同判
定回路36内のアンド回路AD607およびAD611
が共に能動状態に制御されて、カウント数ラッチ67か
ら読み出された当該指定番地(アドレス「1」)のカウ
ント数データが「+1」加算器63を通じて「1」だけ
増加されたデータが新たなカウント数データとして同カ
ウント数ラッチ67の同指定番地に再書き込みされ(た
だし、アンド回路AD609およびAD613の能動状
態において)、逆に、同アンド回路(ノア回路)AD6
05が非能動に制御されるということは、上記アンド回
路AD607およびAD611が非能動に保たれて、カ
ウント数うン千67の当該指定番地(アドレス「1」)
におけるカウント数データの更新が禁止されることをそ
れぞれ意味する。判定回路36のこうした制御は、上記
第2排池的オア回路EOR32の比較出力が入力される
ルー1■側に関しても、ループl1lllとは別途にで
はあるが、上記と全く同様の態様をちって実施される。The second data latch 31b latches the data transferred from the first data latch 31a at the rising timing of the output of the AND circuit AD31. In addition, the above AND circuit (NOR circuit) A
The fact that the AND condition of D605 is satisfied means that AND circuits AD607 and AD611 in the determination circuit 36 are satisfied.
are both controlled to be active, and the count number data at the specified address (address "1") read from the count number latch 67 is incremented by "1" through the "+1" adder 63, and the new data is added. It is rewritten as count number data to the same specified address of the same count number latch 67 (however, when the AND circuits AD609 and AD613 are in the active state), and conversely, the same AND circuit (NOR circuit) AD6
05 is controlled to be inactive, which means that the AND circuits AD607 and AD611 are kept inactive, and the specified address (address "1") with a count of 1,000 and 67 is controlled.
Each means that updating of count data is prohibited. This control of the determination circuit 36 is carried out in exactly the same manner as above for the loop 1■ side to which the comparison output of the second exhaustive OR circuit EOR32 is input, although separately from the loop l1llll. Implemented.
またこの判定回路36において、排他的オア回路(ディ
ジタル比較器)EOR603およびEOR604は、そ
れぞれループ■あるいは■側の「+IJ加算器63ある
いは64を介して更新されたカウント数データ(アンド
回路AD607あるいはAD608の出力)とカウント
数設定器60に予め設定されたある任意のカウント数N
を示すデータとを比較して、これらが等しい内容となっ
たとき、すなわち各対応する側の更新カウント数が上記
設定カウント数Nに達したとき、それぞれその比較出力
(論理“O”レベル信号)をもって、前記スイッチ33
3あるいは534(第1図)をオンにするとともに、ル
ープI側の排他的オア回路EOR603の場合には、ア
ンド回路A D 609と他方のループ■側のアンド回
路AD614とを共に非能動とし、ループ■側の排他的
オア回路EOR604の場合には、アンド回路AD61
0と他方のルーグエ側のアンド回路AD613とを共に
非能動とするよう機能する。上記のスイッチ333ある
いはS34がオンに制御されるとき、第2データラツチ
31bあるいは32bの対応する側から、アドレス信号
ADによりその時点で指定されている番地のデータが、
オア回路0R31(第1図)を介して、データ処理・制
御回路40に出力されるようになることは前述した通り
である。また、上記アンド回路AD609あるいはAD
613が非能動に制御されるということは、ループ■側
におけるカウント数ラッチロ7の、アドレス信号ADに
よる当該指定番地に、カウント数「0」 (初期値)か
書き込まれることを意味し、同様に、上記アンド回路A
D610あるいはAD614が非能動に制御されるとい
うことは、ループ■側におけるカウント数ラッチ68の
、アドレス信号ADによる当該指定番地に、カウント数
「0」が書き込まれることを意味する。In addition, in this judgment circuit 36, exclusive OR circuits (digital comparators) EOR603 and EOR604 receive the count number data (AND circuit AD607 or AD608) updated via the +IJ adder 63 or 64 on the loop ■ or ■ side, respectively. output) and a certain arbitrary count number N preset in the count number setting device 60
When these data are equal, that is, when the update count number on each corresponding side reaches the set count number N, the comparison output (logic "O" level signal) With this, the switch 33
3 or 534 (FIG. 1), and in the case of the exclusive OR circuit EOR603 on the loop I side, both the AND circuit AD 609 and the AND circuit AD614 on the other loop ■ side are made inactive, In the case of the exclusive OR circuit EOR604 on the loop ■ side, the AND circuit AD61
0 and the other AND circuit AD613 on the Rougue side are both inactive. When the switch 333 or S34 is turned on, the data at the address currently specified by the address signal AD is transferred from the corresponding side of the second data latch 31b or 32b.
As described above, the signal is output to the data processing/control circuit 40 via the OR circuit 0R31 (FIG. 1). In addition, the AND circuit AD609 or AD
613 being controlled inactive means that the count number "0" (initial value) is written to the address specified by the address signal AD of the count number latch lo 7 on the loop ■ side. , the above AND circuit A
Controlling D610 or AD614 inactive means that the count number "0" is written to the address specified by the address signal AD of the count number latch 68 on the loop (2) side.
以上により明らかなように、この第3図に示す判定回路
36の動作論理は、例えばループ■に関していえば、大
旨次のように集約される0条件の強いものから順に列記
する。As is clear from the above, the operational logic of the determination circuit 36 shown in FIG. 3, for example with respect to loop (2), is summarized as follows, listed in descending order of the 0 condition.
(1)自らのループ■において異常が検出されている場
合(異常検出信号EBIが出力されている場合)、およ
び自らのループ■の第1データラツチ31aにラッチさ
れたデータと他方のループ■の第1データラツチ32a
にラッチされたデータとで内容が異なる場合(ただし、
自らのループIが正常で他方のループ■から異常検出信
号EB2が出力されている場合を除く)には、上記第1
データラツチ31aにラッチされたデータの第2データ
ラツチ31bへのラッチも、カウント数ラッチ67にラ
ッチされているカウント数の更新も行なわない。(1) When an abnormality is detected in the own loop ■ (when the abnormality detection signal EBI is output), and the data latched in the first data latch 31a of the own loop ■ and the data latched in the first data latch 31a of the other loop ■ 1 data latch 32a
If the contents differ from the data latched in (however,
(except when its own loop I is normal and the abnormality detection signal EB2 is output from the other loop ■), the first
Neither the data latched in the data latch 31a is latched into the second data latch 31b nor the count latched in the count latch 67 is updated.
(2)カウント数うヅチ67にラッチされているカウン
ト数が「0」のとき第1データラツチ31aへのデータ
ラッチがあった場合には、同カウント数を’IJ(’÷
IJを含む)とする。(2) If the count latched in the count holder 67 is "0" and data is latched to the first data latch 31a, the count is divided by 'IJ('÷
(including IJ).
(3)カウント数ラッチ67にラッチされているカウン
ト数が「OJ以外のときに、第2データラツチ31bに
ラッチされているデータと異なる内容のデータが第1デ
ータラツチ31aにラッチされた場合には、同カウント
数を「1」とし、かつ第2データラツチ31bにランチ
されているデータをこの第1データラツチ31aにラッ
チされたデータによって更新する(第2データラツチ3
1bへの書き込みを行なう)。(3) When the count number latched in the count number latch 67 is other than "OJ", if data different from the data latched in the second data latch 31b is latched in the first data latch 31a, The same count number is set to "1", and the data launched in the second data latch 31b is updated with the data latched in the first data latch 31a (the second data latch 3
1b).
(4)第2データラツチ31bにラッチされているデー
タと同一内容のデータが第1データラツチ31aにラッ
チされた場合には、カウント数うヅチ67にラッチされ
ているカウント数を「+1」だけ更新する。(4) When data with the same content as the data latched in the second data latch 31b is latched in the first data latch 31a, the count number latched in the count number switch 67 is updated by "+1". .
(5)上記■のカウント数の更新によって、該カウント
数が、カウント数設定器60に予設定されているカウン
ト数Nとなった場合、上記第2データラツチ31bにラ
ッチされているデータを真のデータとみなして、これを
データ処理・制御回路40に出力せしめるとともに、カ
ウント数ラッチ67および68共に、そのラッチされて
いるカウント数を「0」とする。(5) When the count number becomes the count number N preset in the count number setter 60 by updating the count number in the above (2), the data latched in the second data latch 31b is changed to the true value. Regarded as data, this is output to the data processing/control circuit 40, and both count number latches 67 and 68 set the latched count number to "0".
こうした論理に基づく判定動作が、フレーム信号が到来
する毎に、対象センサ別の時分割処理をもって、すなわ
ち前記アドレス信号ADの更新に基づく指定番地の順次
走査をもって、繰り返し実行される。The determination operation based on such logic is repeatedly executed every time a frame signal arrives, with time-division processing for each target sensor, that is, with sequential scanning of specified addresses based on updates of the address signal AD.
したがって、例えば第4図に示す例のように、図示上第
1番目のフレーム信号■(第4図(a)参照)の到来に
よって、仮りに、対象となるセンサデータ(データD1
〜D4)の全てについて、上記(2)あるいは(3)の
条件に相当する状態になったとすると、判定回路36で
は、前記アドレス信号ADの順次の指定番地更新に応じ
て、カウント数ラッチ67にラッチされる各カウント数
をそれぞれ「1」とする(第4図(k)および(1)g
照)。Therefore, as in the example shown in FIG. 4, for example, when the first frame signal (see FIG. 4(a)) arrives, the target sensor data (data D1
- D4), if the state corresponds to the condition (2) or (3) above, the determination circuit 36 sets the count number latch 67 in response to the sequential update of the specified address of the address signal AD. Each latched count number is set to "1" (Fig. 4 (k) and (1) g
(see).
特に、上記(3)の条件に相当する場合には、第1デー
タラツチ31aにラッチされたデータによって第2デー
タラツチ31bのラッチ内容を更新する(第4図fk)
および(Q)9照)。In particular, when the condition (3) above is met, the latched contents of the second data latch 31b are updated by the data latched in the first data latch 31a (FIG. 4 fk).
and (Q)9).
また次に、同第4図の図示上第2#目のフレーム信号■
が到来した際、そのエラーコード検索(第4図(e)参
照)によって、該フレーム(言号に前記エラーコードr
ERR,が(寸前されている旨検出されたとすると、ル
ープエ処理回路10を通じて異常検出信号EBI (第
4図(h)参照)が出力されることから、判定回路36
ではこの場合、上記(1)の論理のもとに、その時点で
第2データラッチ31bにラッチされているデータ内容
を維持しく第4図[Q)I照)、かつその時点でカウン
ト数ラッチ67にラッチされているカウント数を維持す
る(第4図(1)#照)、なお、第1図での正確な図示
は省略したが、上記異常検出信号EBl若しくはBH2
)は、第4図(h)に示されるように、少なくともアド
レス信号ADが出力されている期間を覆い得るある時間
幅を有して出力されるようになっている。これは例えば
、エラーチエツク回路18(若しくは28)によるエラ
ー検出出力(エラーチエツク態様は第4図(d)参照)
や、エラーコード検出回路19(若しくは29)による
上記のエラーコード検出出力を、タイマ回路等によって
所定の時間だけ引き延ばすようにするとか、あるいは出
力維持されるようにしたこれら検出出力を、次に到来さ
れるフレーム信号の「ST■」検出出力AI(若しくは
A2>によってリセットせしめる、等々によって実現さ
れる。Next, the second # frame signal ■ in the diagram of FIG.
When the error code r is found in the frame (word), the error code r is searched (see FIG.
If it is detected that ERR is on the verge of being exceeded, an abnormality detection signal EBI (see FIG. 4(h)) is outputted through the loop processing circuit 10, so that the determination circuit 36
In this case, based on the logic in (1) above, the data content latched in the second data latch 31b at that point is maintained (see FIG. 4 [Q)I), and the count number latch is maintained at that point. The count number latched in 67 is maintained (see FIG. 4 (1) #).Although exact illustration is omitted in FIG. 1, the abnormality detection signal EBl or BH2 is
) is output with a certain time width that can cover at least the period during which the address signal AD is output, as shown in FIG. 4(h). This is, for example, an error detection output by the error check circuit 18 (or 28) (see FIG. 4(d) for the error check mode).
Alternatively, the above-mentioned error code detection output from the error code detection circuit 19 (or 29) may be extended for a predetermined time using a timer circuit or the like, or these detection outputs that have been kept output may be This is realized by resetting the "ST■" detection output AI (or A2> of the frame signal), etc.
次にまた、第4図の図示上第3番目のフレーム信号■が
到来し、これに含まれる各センサのデータ(データD1
〜D4)が全て上記(4)の条件を満足するものであっ
たとすると、判定回路36では、同(4)の論理のもと
に、その時点でカウント数ラッチ67にラッチされてい
る各カウント数「1」を、アドレス信号ADによる番地
指定に応じて各々「+1jずつ更新する。すなわち、各
カウント数は「2ノとなる(第4図[k)〜(1)参照
)。Next, the third frame signal ■ shown in FIG. 4 arrives, and the data of each sensor included in this (data D1
-D4) all satisfy the condition (4) above, the determination circuit 36 calculates each count latched in the count latch 67 at that point based on the logic (4). The number "1" is updated by "+1j" in response to the address designation by the address signal AD. That is, each count becomes "2" (see FIG. 4 [k] to (1)).
そして更に、同第4図の図示上第4番目のフレーム信号
■が到来し、これに含まれる各センサのデータ(データ
D1〜D4)も全て上記(4)の条件を満足するもので
あったとし、しかも前記カウント数設定器60に予設定
されているカウント数Nが「3」であるとすると、この
フレーム信号■の到来に基づくカウント数の更新(第4
図(1゛)参照)によって、今度は上記(5)の条件が
満足されるようになる。したがってこの場合、判定回路
36では、同(5)の論理のらとに、それまで第2デー
タラツチ31bにラッチされているデータ(データD1
〜D4)を各々真のデータとみなして、これらをオア回
路0R33を介して順次出力せしめる(第4図(Ω)お
よび(n)参照)とともに、カウント数ラッチ67およ
び68共に、その各対応するアドレス(同第4図の例の
場合は全て)のカウント数を「0」とする(第4図(0
)参照)。Furthermore, the fourth frame signal ■ shown in FIG. 4 has arrived, and the data of each sensor (data D1 to D4) included therein all satisfy the condition (4) above. However, if the count number N preset in the count number setter 60 is "3", then the count number is updated based on the arrival of this frame signal (fourth
(See Figure (1)), the condition (5) above is now satisfied. Therefore, in this case, the determination circuit 36 uses the logic (5) to determine the data (data D1) that has been latched in the second data latch 31b.
~D4) are regarded as true data, and are sequentially outputted via the OR circuit 0R33 (see FIG. 4 (Ω) and (n)), and both the count number latches 67 and 68 Set the count number of the addresses (all in the case of the example in Figure 4) to "0" (Figure 4 (0
)reference).
その後到来するフレーム信号に関しても、各々上記に準
じた態様をちって、該判定回路36を通じたデータ判定
、抽出動作が繰り遅し実行される。Regarding the frame signals that arrive thereafter, data determination and extraction operations through the determination circuit 36 are repeatedly executed in a manner similar to the above.
なおここでは、説明の便宜上、判定回路36の、ループ
Iに関して実行される動作を主として例示したが、同判
定回路36の上記の動作が、ループ■に関しても同様に
実行されるものであることは勿論である。Here, for convenience of explanation, the operation performed by the determination circuit 36 regarding loop I has been mainly illustrated, but it is to be understood that the above-mentioned operation of the determination circuit 36 is similarly executed regarding loop ■. Of course.
第5図は、こうした実施例データ抽出回路の動作につい
ての理解を更に容易とするために、ある1つのセンサデ
ータ(例えば第4図の例でいうデータD1〜D4のいず
れか1つ)について、フレーム信号か到来する毎に実施
される上述したデータ判定、抽出動作の推移例を参考ま
でに一覧したものである。In order to further facilitate understanding of the operation of the data extraction circuit of this embodiment, FIG. For reference, examples of the transition of the data determination and extraction operations described above, which are performed each time a frame signal arrives, are listed below.
この第5図において、各々1ビツトのデータであるとす
るデータrA」は例えば論理レベル“1パのデータ、デ
ータrB、は例えば論理レベル°゛O”のデータ、をそ
れぞれ示す、また同第5図の備考の欄にも示すように、
各ラッチデータの欄で、記号「×jは、何らかのデータ
エラーが生じていること(異常検出信号EBI若しくは
BH2が出力されたこと)を示し、記号「××」は、該
当するループが断線されていること(断線検出信号BH
1若しくはBH3が出力されたこと)を示す。In FIG. 5, data rA'', each of which is 1-bit data, represents data at a logic level of 1 bit, and data rB represents data at a logic level of 0, for example. As shown in the remarks column of the figure,
In each latch data column, the symbol "xj" indicates that some data error has occurred (abnormality detection signal EBI or BH2 was output), and the symbol "XX" indicates that the corresponding loop has been disconnected. (Disconnection detection signal BH
1 or BH3) is output.
この第5図においても、前記カウント数設定器60に予
設定されているカウント数Nが「3」であるとしてその
動作推移を例示しており、第5図(a)中の注釈記号「
※1」の部分として示されるように、ループエあるいは
■のいずれか一方で(回倒ではたまたま両方となってい
る)そのカウント数が「3」となったとき、該当するデ
ータ「A」が、真のデータとして抽出される(データ処
理・制御回路40に出力される)。In this FIG. 5 as well, the operation transition is illustrated assuming that the count number N preset in the count number setting device 60 is "3", and the annotation symbol "
As shown in the part "*1", when the count number becomes "3" for either Loope or ■ (which happen to be both in the turn), the corresponding data "A" is The data is extracted as true data (output to the data processing/control circuit 40).
また、第5図(a)の注釈記号「:に2」の部分のよう
に、ループIとループ■とで、同時に異なるデータがラ
ッチされた場合には、各々このデータはなかったものと
して前記(1)の論理の如く処理される。すなわち、デ
ータ判定、抽出に関して、何らの処理も行なわれない。In addition, if different data is latched at the same time in loop I and loop ■, as in the part with the annotation symbol ": ni 2" in FIG. It is processed according to the logic in (1). That is, no processing is performed regarding data determination or extraction.
これは、各々自ループ側にエラーが生じている場合(「
※3」の部分)も同様である。This occurs when an error occurs on the loop side ("
The same applies to the part marked *3).
また、第5図(a)の注釈記号「※4」あるいはr ′
:’< 5 Jの部分のように、ループIあるいは■の
いずれか一方でそのカウント数が「3」となって、該当
するデータが抽出されるときには、他方のループのカウ
ント数が未だ「3」に達していない場合であっても、こ
れらカウント数は双方共に「0」にリセットされる。こ
れがもし、カウント数「3」に達していない側で、その
カウント数がリセットされずに維持される場合(第3図
の構成例においては、アンド回路AD613および°A
D614が配されずに、オア回路0R603あるいは0
R604の出力が直接カウント数ラッチ67あるいは6
8に入力される場合に相当)には、別途第5図(b)に
示されるように、ある一方のループにおいて、特に
(断線時間)L(設定カウント数N)
といったような断線が生じ、かつこれが復帰された場合
に、好ましくない結果が生じることとなる。In addition, the annotation symbol "*4" or r' in Fig. 5(a)
:'< 5 As in the part J, when the count number of either loop I or ■ becomes "3" and the corresponding data is extracted, the count number of the other loop is still "3". ”, both of these counts are reset to “0”. If this is the case where the count number is maintained without being reset on the side that has not reached the count number "3" (in the configuration example of FIG. 3, the AND circuit AD613 and °A
OR circuit 0R603 or 0 without D614
The output of R604 is directly connected to the count number latch 67 or 6.
8), as shown in FIG. 5(b), a break occurs in one of the loops, especially (break time) L (set count number N). And if this is restored, undesirable results will occur.
すなわち、第5図(b)の注釈記号「※7」の部分のよ
うに、例えばループIにおいて、カウント数が「2」で
あるときに断線が生じ、またこのとき、他方のループ■
においては、カウント数が「3」となって、該当データ
rB、が抽出され、そのカウント数が「0」にリセット
されたにもかかわらず、上記断線したループIのカウン
ト数「2」は、リセットされずに維持されるものとする
と、その後、同第5図(b)の注釈記号「※8」の部分
のように断線が復帰され、しかもこのとき到来したデー
タが、たまたま断線する直前のラッチデータ(データ「
B」)と同一内容のデータ(データ「B」)であった場
合には、カウント数が「3」に更新され、この到来デー
タ(データ「B」)の信頼性は未だ低いにもかかわらず
、これが真のデータとして抽出されてしまうことになる
(「※9」)。That is, as shown in the part marked with the annotation symbol "*7" in FIG. 5(b), for example, in loop I, a disconnection occurs when the count number is "2", and at this time, the other loop ■
In , the count number becomes "3", the corresponding data rB is extracted, and even though the count number is reset to "0", the count number of the broken loop I is "2". Assuming that it is maintained without being reset, the disconnection will be restored after that as shown in the part marked with the annotation symbol "*8" in Figure 5(b), and the data that has arrived at this time happens to be the data immediately before the disconnection. Latch data (data “
If the data (data "B") has the same content as "B"), the count number is updated to "3", even though the reliability of this incoming data (data "B") is still low. , this will be extracted as true data (*9).
こうした点、少なくとも前記(5)として示した動作論
理を有するこの実施例回路によれは、上記のような不都
合は生じない、また、第5図fa)におけるその他の推
移結果も、全て前記(1)〜(5)として示した動作論
理に一致している。In this respect, at least with this embodiment circuit having the operation logic shown as (5) above, the above-mentioned inconvenience does not occur, and all other transition results in FIG. ) to (5).
以上説明したように、この実施例データ抽出回路によれ
ば、2重のループ■および■を介してそれぞれ周期的に
繰り返し伝送されるデータを、いかなる状況下にあって
も高い信頼性を維持して、しから2重ループとしての特
性を最大限に生かして高能率に、抽出することができる
ようになる。As explained above, according to the data extraction circuit of this embodiment, the data that is periodically and repeatedly transmitted through the double loops ① and ② can be maintained with high reliability under any circumstances. This makes it possible to extract with high efficiency by making full use of the characteristics of the double loop.
なおこの実施例において、前記設定カウント数N(カウ
ント数設定器60に設定される値)は、(データ伝送周
期)xN< (データの安定時間:データ内容が変化し
ない時間)
が満足される値として設定される。In this embodiment, the set count number N (value set in the count number setter 60) is a value that satisfies (data transmission period) x N < (data stabilization time: time during which data contents do not change). is set as .
ところで、上記の実施例においては、一方の例えば第1
ループに関するカウント数(カウント数ラッチ67ある
いは68の内容)が「0」にリセットされるための条件
を
0 該第1ループに関するカウント数が前記設定カウン
ト数Nに達したとき。By the way, in the above embodiment, one, for example, the first
The condition for the count number related to the loop (the contents of the count number latch 67 or 68) to be reset to "0" is 0. When the count number related to the first loop reaches the set count number N.
0 他方の第2ループに関するカウント数が前記設定カ
ウント数Nに達したとき。0 When the count number regarding the other second loop reaches the set count number N.
のいずれかに定める構成としたが、同条件については池
に、
0 該第1ループに関するカウント数が前記設定カウン
ト数Nに達したとき。However, regarding the same conditions, 0: When the count number related to the first loop reaches the set count number N.
0 同第1ループの断線か検出されたとき。0 When a break in the first loop is detected.
のいずれかに定めるようにしてもよい。これによっても
、断線復帰時における抽出データの信頼性は維持される
。It may be set as either one of the following. This also maintains the reliability of the extracted data when the disconnection is restored.
また、上記実施例では、各々第2データラツチ31bあ
るいは32bへのデータ書き込みが、各々のループにお
いてデータエラーや断線かなく、かつこれら第2データ
ラツチ31bあるいは32bにラッチされているデータ
の内容とフレーム信号の到来に件って各対応する第1デ
ータラッチ31aあるいは32aにラッチされたデータ
の内容とが異なる場合に限られる構成としているが、こ
れら第2データラツチ31bあるいは32bへのデータ
書き込みは、各々のループにおいてデータエラーや断線
がない限り、上記比較内容とは無関係に常時、すなわち
各対応する第1データラツチ31aあるいは32aにラ
ンチされたデータによってその都度、実施される構成と
しても勿論よい、これらいずれの場合であれ、各第2デ
ータラツチ31bあるいは32bにラッチされるデータ
内容は同一のものとなり、また、上記第1データラツチ
31aあるいは32aが、フレーム1言号に搭載されて
伝送される都度のれ新のデータがラッチされるいわば新
データラッチ手段として機能するのに対し、これら第2
データラツチ31bあるいは32bが、上記新データラ
ッチ手段に新たにデータがランチされて以降、同新デー
タランチ手段にラッチされたデータが旧データとしてラ
ッチされるいわば旧データラッチ手段として機能するこ
とにもかわりがない。Further, in the above embodiment, data writing to the second data latches 31b or 32b is performed without data errors or disconnections in each loop, and the content of the data latched in the second data latches 31b or 32b and the frame signal are However, data writing to these second data latches 31b or 32b is limited to the case where the content of the data latched in each corresponding first data latch 31a or 32a differs due to the arrival of the data. As long as there is no data error or disconnection in the loop, any of these may of course be implemented, regardless of the content of the comparison described above, that is, it may be performed each time with the data launched into the corresponding first data latch 31a or 32a. Regardless of the case, the data content latched in each second data latch 31b or 32b is the same, and each time the first data latch 31a or 32a is transmitted in one frame word, a new data content is latched. These second functions function as a new data latch means in which data is latched.
Alternatively, the data latch 31b or 32b functions as an old data latch means in which, after new data is launched into the new data latch means, the data latched by the new data launch means is latched as old data. There is no.
また、上記実施例においては、便宜上洛センサデータ(
第4図でいうデータD1〜D4)が1ビツトからなるデ
ータであるとしたが、これら各データは複数ビットから
なるデータであってもよい。In addition, in the above embodiment, for convenience, Raku sensor data (
Although the data D1 to D4 in FIG. 4 are made up of one bit, each of these data may be made up of a plurality of bits.
前記アドレス信号ADの発生態様はこれらデータの形態
(ビット数)に応じて多少変更される乙のの、こうした
場合であれ、該実施例回路としての基本的なデータ判定
、抽出動作は、前述同様に実現される。Although the manner in which the address signal AD is generated may change somewhat depending on the format (number of bits) of these data, even in such a case, the basic data judgment and extraction operations of the circuit of this embodiment are the same as described above. will be realized.
また、都度伝送されるデータが、単一のデータ発生源(
センサ)からのものである場合には、上記アドレス信号
ADは不要であり、したがって、前記アドレスカウンタ
35やデータ数保持回路12および22等の配設ら不要
となる。In addition, the data transmitted each time is transmitted from a single data source (
If the signal is from a sensor), the address signal AD is unnecessary, and therefore the address counter 35, the data number holding circuits 12 and 22, etc. are not required.
また、上記実施例においては、前記カウント数設定器6
0にカウント数Nを設定し、各々のルーズにおけるラッ
チカウント数がこのカウント数Nに達したとき、真のデ
ータとして当該ラッチブタを抽出するようにしているが
、池に例えは、プリセット値Nから上記ラッチカウント
数に対応してダウンカウントせしめ、この値が「0」に
達したとき当該ラッチデータを抽出する構成としたり、
あるいは各々のループに対応してN明のラッチ手段を設
け、コレ98個のラッチ手段にラッチされたデータが全
て等しいことを条件に、当該ラッチデータを抽出する構
成としたりしてもよい。Further, in the above embodiment, the count number setting device 6
The count number N is set to 0, and when the latch count number for each loose reaches this count number N, the relevant latch pig is extracted as true data. A configuration is adopted in which the latch data is counted down in accordance with the latch count number and when this value reaches "0", the latch data is extracted.
Alternatively, N latch means may be provided corresponding to each loop, and the latch data may be extracted on the condition that the data latched by these 98 latch means are all equal.
また、上記の実施例においては、第6図にな示したよう
な直列制御5I+装置のメインコントローラ100に配
されて、これに伝送される各センサ群からの出力データ
についてその変1ヒ履歴を抽出する回路に、この発明を
適用した場合についてその構成例を示したが、この発明
にかかるデータ抽出回路が、同直列制御装置の各ノード
に配されて、メインコントローラ100から伝送される
アクチュエータ群の駆動データについてその変化層、歴
を抽出する回路についても、同様に適用できることは勿
論である。In addition, in the above embodiment, the change history of the output data from each sensor group that is arranged in the main controller 100 of the series control 5I+ device as shown in FIG. 6 and transmitted thereto is recorded. Although a configuration example has been shown for the case where the present invention is applied to the data extraction circuit, the data extraction circuit according to the present invention is arranged in each node of the same series control device and is connected to a group of actuators transmitted from the main controller 100. It goes without saying that the present invention can be similarly applied to a circuit that extracts the change layer and history of drive data.
また、この発明にかかるデータ抽出回路を直列制御装置
に適用する場合、この直列制御装置が、第6図に示され
る構成、すなわち先の<a>として示した構成、に限ら
す、他の<b>〜<f>とじて示した構成についても同
様に適用されるものであることも勿論である。Further, when the data extraction circuit according to the present invention is applied to a serial control device, the serial control device is limited to the configuration shown in FIG. 6, that is, the configuration shown as <a> above, and other < Of course, the same applies to the configurations shown together as b> to <f>.
また因みに、前記フレーム信号も、これら直列制御装置
の構成に応じて任意のフレーム構成か採用されたもので
あり、この発明にかかるデータ抽出回路かこれらフレー
ム信号のフレーム構成によって限定を受けることはない
。要は、これらフレーム信号からその所望とされるデー
タ部分のみを抜き取るための回路部分を少なくとも有す
るものであればよい。Incidentally, the frame signal may also have an arbitrary frame configuration depending on the configuration of these serial control devices, and is not limited by the data extraction circuit according to the present invention or the frame configuration of these frame signals. . In short, it is sufficient that it has at least a circuit section for extracting only the desired data portion from these frame signals.
その池、この発明にかかるデータ抽出回路は、同一のデ
ータ発生源から第1および第2の2の信号線をそれぞれ
介して周期的に繰り返し伝送されるデータの変化履歴に
基づいて各種の処理、制御を行なうシステムであれば、
上記の直列制御装置に限られないいかなるシステムにつ
いても、同様に適用される。The data extraction circuit according to the present invention performs various processing based on the change history of data that is periodically and repeatedly transmitted from the same data source through the first and second signal lines, respectively. If the system performs control,
The same applies to any system other than the above-mentioned series control device.
以上説明したように、この発明によれば、2重のデータ
伝送系を介して周期的に繰り返し伝送されるデータにつ
いて、これを高い信頼性のもとに効率良く抽出すること
が可能となる。As described above, according to the present invention, it is possible to efficiently extract data that is periodically and repeatedly transmitted via a double data transmission system with high reliability.
第1図はこの発明にかかるデータ抽出回路の一実施例を
示すブロック図、第2図は第1図に示される転送タイミ
ング発生回路についてその具体構成例を示すブロック図
、第3図は同第1図に示される判定回路についてその具
体構成例を示すブロック図、第4図は第1図に示す実施
例回路の動作例を示すタイミングタヤート、第5図は同
実施例回路の特にデータ判定、抽出動産についてその具
体例を簡略して示す図表、第6図は2重ループ横遣を採
用した直列制御装置の一般構成を示すブロック図、第7
図はこうした直列制御装置に採用されるフレーム信号の
構成例並びに信号授受のプロトコル例を示すタイムチャ
ートである910・・・ループ■処理回路、20・・・
ループ■処理回路、30・・・抽出処理回路、31a、
31b32a、32b・・・データラッチ、33・・・
転送タイミンク発生回路、34・・・書き込みクロック
発生回路、35・・・アドレスカウンタ、36・・・判
定回路、EOR31〜EOR33・・・第1〜第3デー
タ比較器としての排他的オア回路。
第5図FIG. 1 is a block diagram showing an embodiment of the data extraction circuit according to the present invention, FIG. 2 is a block diagram showing a specific configuration example of the transfer timing generation circuit shown in FIG. 1, and FIG. 1 is a block diagram showing a specific configuration example of the determination circuit shown in FIG. 1, FIG. 4 is a timing diagram showing an example of the operation of the embodiment circuit shown in FIG. 1, and FIG. , a diagram briefly showing specific examples of extracted movable assets, FIG. 6 is a block diagram showing the general configuration of a series control device that adopts a double loop horizontal transfer, and FIG.
The figure is a time chart showing an example of the structure of a frame signal and an example of a protocol for signal transmission/reception adopted in such a serial control device. 910...Loop ■Processing circuit, 20...
Loop ■ Processing circuit, 30... Extraction processing circuit, 31a,
31b32a, 32b...data latch, 33...
Transfer timing generation circuit, 34... Write clock generation circuit, 35... Address counter, 36... Judgment circuit, EOR31 to EOR33... Exclusive OR circuits as first to third data comparators. Figure 5
Claims (5)
信号線をそれぞれ介して周期的に繰り返し伝送されるデ
ータの突き合わせに基づき、該データの変化履歴を抽出
するデータ抽出回路であって、 前記第1の信号線を介して伝送されるデータについて、
都度の最新のデータがラッチされる第1の新データラッ
チ手段と、 この第1の新データラッチ手段に新たにデータがラッチ
されて以降、同第1の新データラッチ手段にラッチされ
たデータが旧データとして別途ラッチされる第1の旧デ
ータラッチ手段と、 前記第2の信号線を介して伝送されるデータについて、
都度の最新のデータがラッチされる第2の新データラッ
チ手段と、 この第2の新データラッチ手段に新たにデータがラッチ
されて以降、同第2の新データラッチ手段にラッチされ
たデータが旧データとして別途ラッチされる第2の旧デ
ータラッチ手段と、 前記第1の新データラッチ手段にラッチされたデータと
前記第1の旧データラッチ手段にラッチされたデータと
を比較する第1の比較手段と、前記第2の新データラッ
チ手段にラッチされたデータと前記第2の旧データラッ
チ手段にラッチされたデータとを比較する第2の比較手
段と、前記第1の新データラッチ手段にラッチされたデ
ータと前記第2の新データラッチ手段にラッチされたデ
ータとを比較する第3の比較手段と、前記第3の比較手
段による都度の比較結果が一致していることを条件に、
前記第1および第2の比較手段の少なくとも一方での比
較結果が所定の複数のデータ数に対応して一致するとき
、当該一致データを真のデータと判定してこれを抽出出
力する判定手段と、 を具えるデータ抽出回路。(1) A data extraction circuit that extracts a history of changes in data based on matching data that is periodically and repeatedly transmitted from the same data source via first and second signal lines, respectively. , regarding the data transmitted via the first signal line,
A first new data latch means that latches the latest data each time, and after new data is latched in the first new data latch means, the data latched in the first new data latch means is Regarding the first old data latch means that is separately latched as old data, and the data transmitted via the second signal line,
A second new data latch means that latches the latest data each time, and after new data is latched in the second new data latch means, the data latched in the second new data latch means is a second old data latch means that is separately latched as old data; and a first method that compares the data latched by the first new data latch means and the data latched by the first old data latch means. a comparing means, a second comparing means for comparing the data latched by the second new data latch means and the data latched by the second old data latch means, and the first new data latch means and a third comparing means for comparing the data latched by the second new data latch means with the data latched by the second new data latch means, on the condition that the comparison results each time by the third comparing means match. ,
When the comparison result of at least one of the first and second comparing means matches a predetermined number of data, a determining means determines the matching data as true data and extracts and outputs the same. , a data extraction circuit comprising:
ることを条件に、前記第1の比較手段での比較結果が一
致するとき、一致する毎に、初期値から1ずつカウント
アップし、同第1の比較手段での比較結果が一致しない
とき、カウント値を強制的に第1カウント値とする第1
のカウンタ回路と、 前記第3の比較手段による都度の比較結果が一致してい
ることを条件に、前記第2の比較手段での比較結果が一
致するとき、一致する毎に、初期値から1ずつカウント
アップし、同第2の比較手段での比較結果が一致しない
とき、カウント値を強制的に第1カウント値とする第2
のカウンタ回路と、 前記第1および第2のカウンタ手段によるカウント値に
ついて所定の値が予設定された設定器と、前記第1のカ
ウンタ回路によるカウント値が前記設定器に予設定され
た所定の値に達したとき、前記第1の旧データラッチ手
段若しくは第1の新データラッチ手段にラッチされてい
るデータを出力するとともに、前記第1および第2のカ
ウンタ回路のカウント値を初期値にする第1の制御回路
と、 前記第2のカウンタ回路によるカウント値が前記設定器
に予設定された所定の値に達したとき、前記第2の旧デ
ータラッチ手段若しくは第2の新データラッチ手段にラ
ッチされているデータを出力するとともに、前記第2お
よび第1のカウンタ回路のカウント値を初期値にする第
2の制御回路と、 これら第1および第2の制御回路による出力データの論
理和出力を前記真のデータ抽出出力とする論理和回路と
、 を具えて構成される請求項(1)記載のデータ抽出回路
。(2) On the condition that the comparison results each time by the third comparison means match, when the comparison results by the first comparison means match, each time the comparison result matches, the determination means performs an initial A first unit that counts up by one from the value and forcibly sets the count value to the first count value when the comparison results in the first comparison unit do not match.
On the condition that the comparison results of the counter circuit and the third comparison means match each time, when the comparison results of the second comparison means match, each time there is a match, 1 is removed from the initial value. and when the comparison results of the second comparison means do not match, the second comparison means forcibly sets the count value to the first count value.
a counter circuit, a setting device in which a predetermined value is preset for the count value by the first and second counter means, and a predetermined value preset in the setting device for the count value by the first counter circuit. When the value is reached, the data latched by the first old data latch means or the first new data latch means is output, and the count values of the first and second counter circuits are set to initial values. When the count value by the first control circuit and the second counter circuit reaches a predetermined value preset in the setting device, the second old data latch means or the second new data latch means a second control circuit that outputs the latched data and initializes the count values of the second and first counter circuits; and outputs a logical sum of the output data from the first and second control circuits. 2. The data extraction circuit according to claim 1, further comprising: an OR circuit whose output is the true data extraction output.
1の断線検出手段と、 前記第2の信号線についてのその断線の有無を検出する
第2の断線検出手段と、 前記第1の信号線を介して伝送されるデータについてそ
のエラーの有無を検出する第1のエラー検出手段と、 前記第2の信号線を介して伝送されるデータについてそ
のエラーの有無を検出する第2のエラー検出手段と、 前記第1の断線検出手段により断線が検出されたとき、
若しくは前記第1のエラー検出手段によりエラーが検出
されたとき、前記第1の新データラッチ手段にラッチさ
れているデータの、前記第1の旧データラッチ手段への
ラッチを禁止する第1の禁止手段と、 前記第2の断線検出手段により断線が検出されたとき、
若しくは前記第2のエラー検出手段によりエラーが検出
されたとき、前記第2の新データラッチ手段にラッチさ
れているデータの、前記第2の旧データラッチ手段への
ラッチを禁止する第2の禁止手段と、 を更に具える請求項(2)記載のデータ抽出回路。(3) The data extraction circuit includes a first disconnection detection means for detecting whether or not the first signal line is disconnected; and a second disconnection that detects whether or not the second signal line is disconnected. detection means; first error detection means for detecting the presence or absence of an error in the data transmitted via the first signal line; and detection means for detecting the presence or absence of an error in the data transmitted via the second signal line. a second error detection means for detecting the presence or absence of a wire; and when a wire breakage is detected by the first wire breakage detection means;
or a first prohibition that prohibits the data latched by the first new data latch means from being latched to the first old data latch means when an error is detected by the first error detection means; and when a disconnection is detected by the second disconnection detection means,
or a second prohibition that prohibits the data latched by the second new data latch means from being latched by the second old data latch means when an error is detected by the second error detection means; The data extraction circuit according to claim 2, further comprising: means.
手段により断線が検出されたとき、若しくは前記第1の
エラー検出手段によりエラーが検出されたとき、そのと
きのカウント値を保持し、これら第1の断線検出手段お
よび第1のエラー検出手段による断線およびエラーの検
出がなされずに、前記第2の断線検出手段により断線が
検出されたとき、若しくは前記第2のエラー検出手段に
よりエラーが検出されたとき、前記第3の比較手段によ
る比較結果によらず、この比較結果一致条件が満足され
たものとして、前記カウント動作を遂行し、 前記第2のカウンタ回路は、前記第2の断線検出手段に
より断線が検出されたとき、若しくは前記第2のエラー
検出手段によりエラーが検出されたとき、そのときのカ
ウント値を保持し、これら第2の断線検出手段および第
2のエラー検出手段による断線およびエラーの検出がな
されずに、前記第1の断線検出手段により断線が検出さ
れたとき、若しくは前記第1のエラー検出手段によりエ
ラーが検出されたとき、前記第3の比較手段による比較
結果によらず、この比較結果一致条件が満足されたもの
として、前記カウント動作を遂行する 請求項(3)記載のデータ抽出回路。(4) The first counter circuit holds the current count value when a disconnection is detected by the first disconnection detection means or when an error is detected by the first error detection means. , when a wire breakage and an error are not detected by the first wire breakage detection means and the first error detection means and a wire breakage is detected by the second wire breakage detection means, or when the wire breakage is detected by the second wire breakage detection means, or by the second error detection means. When an error is detected, regardless of the comparison result by the third comparing means, the counting operation is performed on the assumption that the comparison result matching condition is satisfied; When a wire breakage is detected by the wire breakage detection means, or when an error is detected by the second error detection means, the count value at that time is held, and the second wire breakage detection means and the second error detection means When a wire breakage and an error are not detected by the means and the first wire breakage detection means detects a wire breakage, or when an error is detected by the first error detection means, the third comparison means detects a wire breakage and an error. 4. The data extraction circuit according to claim 3, wherein the counting operation is performed on the assumption that the comparison result matching condition is satisfied, regardless of the comparison result.
手段により断線が検出されたとき、カウント値を初期値
とし、前記第1のエラー検出手段によりエラーが検出さ
れたとき、そのときのカウント値を保持し、これら第1
の断線検出手段および第1のエラー検出手段による断線
およびエラーの検出がなされずに、前記第2の断線検出
手段により断線が検出されたとき、若しくは前記第2の
エラー検出手段によりエラーが検出されたとき、前記第
3の比較手段による比較結果によらず、この比較結果一
致条件が満足されたものとして、前記カウント動作を遂
行し、 前記第2のカウンタ回路は、前記第2の断線検出手段に
より断線が検出されたとき、カウント値を初期値とし、
前記第2のエラー検出手段によりエラーが検出されたと
き、そのときのカウント値を保持し、これら第2の断線
検出手段第2のエラー検出手段による断線およびエラー
の検出がなされずに、前記第1の断線検出手段により断
線が検出されたとき、若しくは前記第1のエラー検出手
段によりエラーが検出されたとき、前記第3の比較手段
による比較結果によらず、この比較結果一致条件が満足
されたものとして、前記カウント動作を遂行する 請求項(3)記載のデータ抽出回路。(5) The first counter circuit sets the count value to an initial value when a wire breakage is detected by the first wire breakage detection means, and when an error is detected by the first error detection means. The count values of these first
When a wire breakage and an error are not detected by the wire breakage detection means and the first error detection means, and a wire breakage is detected by the second wire breakage detection means, or when an error is detected by the second error detection means. the second counter circuit performs the counting operation on the assumption that the comparison result match condition is satisfied, regardless of the comparison result by the third comparison means, and the second counter circuit When a disconnection is detected, the count value is set as the initial value,
When an error is detected by the second error detection means, the count value at that time is held, and if the second error detection means does not detect the wire breakage or error, the second error detection means detects the error. When a wire breakage is detected by the first wire breakage detection means or an error is detected by the first error detection means, this comparison result matching condition is satisfied regardless of the comparison result by the third comparison means. 4. The data extraction circuit according to claim 3, wherein the data extraction circuit performs the counting operation.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63321822A JPH02166849A (en) | 1988-12-20 | 1988-12-20 | data extraction circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63321822A JPH02166849A (en) | 1988-12-20 | 1988-12-20 | data extraction circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02166849A true JPH02166849A (en) | 1990-06-27 |
Family
ID=18136807
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63321822A Pending JPH02166849A (en) | 1988-12-20 | 1988-12-20 | data extraction circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02166849A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012144068A1 (en) * | 2011-04-22 | 2012-10-26 | 三菱電機株式会社 | Communication device using plurality of communication paths |
-
1988
- 1988-12-20 JP JP63321822A patent/JPH02166849A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012144068A1 (en) * | 2011-04-22 | 2012-10-26 | 三菱電機株式会社 | Communication device using plurality of communication paths |
| CN103404066A (en) * | 2011-04-22 | 2013-11-20 | 三菱电机株式会社 | Communication device using multiple communication paths |
| JP5683689B2 (en) * | 2011-04-22 | 2015-03-11 | 三菱電機株式会社 | Communication device using multiple communication paths |
| US9071549B2 (en) | 2011-04-22 | 2015-06-30 | Mitsubishi Electric Corporation | Communication device using plurality of communication paths |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1877808B1 (en) | Method, apparatus, and system for improving ethernet ring convergence time | |
| KR940011489B1 (en) | Security system network | |
| KR101483045B1 (en) | System and method for signal failure detection in a ring bus system | |
| JPS5947906B2 (en) | loop transmission system | |
| JPH09107353A (en) | Interface circuit to connect digital subscriber's line to digital transmission equipment, and its method | |
| CN112187646B (en) | Message table item processing method and device | |
| US10038571B2 (en) | Method for reading and writing forwarding information base, and network processor | |
| CN101611615A (en) | Redundant frame filtering in network nodes | |
| JP4024876B2 (en) | Redundant termination | |
| US5461617A (en) | Serial controller | |
| JPH0424702A (en) | control system | |
| JPH02166849A (en) | data extraction circuit | |
| JP2914433B2 (en) | Multi-stage switch connection information check method | |
| US12348332B2 (en) | Master device, arithmetic processing device, programmable logic controller, network, and method | |
| JP2562703B2 (en) | Data input controller for serial controller | |
| JP5494028B2 (en) | Switch device | |
| CN119583251B (en) | Ring network based on time sensitive network | |
| CN111052682B (en) | Master device for a bus system | |
| US5271006A (en) | Frame aligner and method and system for control thereof | |
| JPH0350927A (en) | Frame alinger and its control method | |
| JPS6022849A (en) | Method for setting automatically address in transmission system | |
| JP2001186142A (en) | Packet buffer device and packet switch device | |
| JP3636091B2 (en) | Network, node information setting method used therefor, and program therefor | |
| KR102657337B1 (en) | Communication node for performing lossless transfer of p2mp traffic and operating method thereof | |
| CN110059046A (en) | A kind of method, system and the readable medium of the transmission path of switch data signal |