Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5851289B2 - data transfer device - Google Patents
[go: Go Back, main page]

JPS5851289B2 - data transfer device - Google Patents

data transfer device

Info

Publication number
JPS5851289B2
JPS5851289B2 JP51120606A JP12060676A JPS5851289B2 JP S5851289 B2 JPS5851289 B2 JP S5851289B2 JP 51120606 A JP51120606 A JP 51120606A JP 12060676 A JP12060676 A JP 12060676A JP S5851289 B2 JPS5851289 B2 JP S5851289B2
Authority
JP
Japan
Prior art keywords
data
output
computer
signal
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP51120606A
Other languages
Japanese (ja)
Other versions
JPS5345945A (en
Inventor
勇 横江
茂夫 野田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP51120606A priority Critical patent/JPS5851289B2/en
Publication of JPS5345945A publication Critical patent/JPS5345945A/en
Publication of JPS5851289B2 publication Critical patent/JPS5851289B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 本発明はデータ転送装置、詳しくはコンピュータから出
力されたデータを、直列的に接続された複数のデータバ
スを介して被制御機器側へ転送するようにしたデータ転
送装置に関するもので、その目的はデータ転送ミスが生
じた場合にはこれを自動的に検出して異常を報知すると
ともに、どのデータバスにおいてデータの転送ミスが生
じたかをコンピュータ側において容易にかつ迅速に検出
できるようにすることにある。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data transfer device, specifically a data transfer device that transfers data output from a computer to a controlled device via a plurality of serially connected data buses. The purpose of this is to automatically detect a data transfer error when it occurs and notify an error, and also to easily and quickly inform the computer on which data bus the data transfer error occurred. The purpose is to make it detectable.

一般にコンピュータによって被制御機器の制御を行う場
合には、コンピュータによって演算されたデータをコン
ピュータ側に設けられたインタフェースと被制御機器側
に設けられたインタフェースとを介して被制御機器に与
えるようになっている。
Generally, when a controlled device is controlled by a computer, data calculated by the computer is given to the controlled device via an interface provided on the computer side and an interface provided on the controlled device side. ing.

したがって、コンピュータとインタフェース、インタフ
ェースとインタフェース、インタフェースと被制御機器
との間には当然接続ケーブルが必要となり、この接続ケ
ーブルに誘起される雑音信号がデータとして被制御機器
に与えられてしまうことがある。
Therefore, connection cables are naturally required between computers and interfaces, interfaces and interfaces, and interfaces and controlled equipment, and noise signals induced in these connection cables may be given to the controlled equipment as data. .

このような誤ったデータが被制御機器に与えられたまま
で制御を続行すると被制御機器が誤動作を起こしてしま
うため、誤ったデータが転送された場合には異常として
検出する必要がある。
If control continues with such erroneous data being given to the controlled device, the controlled device will malfunction, so if erroneous data is transferred, it must be detected as an abnormality.

このため、従来では被制御機器の動作を検出してコンピ
ュータにフィードバックするとともに、コンピュータ側
ではデータを送出した後でフィードバックされた信号を
入力データとして読込み、読込まれた信号と送出したデ
ータを比較して異常であるかを判定していた。
For this reason, conventionally, the operation of the controlled device is detected and fed back to the computer, and the computer side reads the feedback signal as input data after sending the data, and compares the read signal with the sent data. It was determined whether there was an abnormality or not.

このような動作を行わせるには通常の出力命令のプログ
ラムの後に入力命令、判定命令のプログラムを組込めば
よいが、かかる動作をデータが送出される度に行わせる
とプログラムが長くなるばかりでなくコンピュータによ
る制御速度が遅くなってしまう欠点を有していた。
To perform such an operation, it is possible to incorporate the input command and judgment command program after the normal output command program, but if such an operation is performed every time data is sent, the program will only become longer. However, it had the disadvantage that the control speed by the computer was slow.

また、かかる従来のものでは、データの転送ミスが生じ
た場合にどの部分において転送ミスが生じたを知ること
はできず、異常箇所の発見に時間がかかる問題があった
In addition, with such conventional devices, when a data transfer error occurs, it is impossible to know in which part the transfer error occurred, and there is a problem in that it takes time to discover the abnormal location.

本発明はかかる欠点をなくすためになされたもので、直
列的に接続される複数のデータバスのそれぞれ毎に、各
データバス上に出力されたデータと受信手段によって受
信されたデータとを比較することによってデータの転送
ミスを検出する比較手段を設けるとともに、この複数の
比較手段を異なる出力命令の実行に応じてコンピュータ
から出力される複数の出力信号のそれぞれに応答して順
番に作動させるようにし、どの出力命令実行時にデータ
の転送ミスが検出されたかによって転送ミスが発生した
データバスを特定できるようにしたことを特徴とするも
のである。
The present invention has been made to eliminate such drawbacks, and for each of a plurality of serially connected data buses, the data output on each data bus is compared with the data received by the receiving means. Comparing means for detecting a data transfer error is provided, and the plurality of comparing means are operated in sequence in response to each of a plurality of output signals outputted from the computer in response to execution of different output commands. The present invention is characterized in that a data bus on which a transfer error has occurred can be identified based on which output instruction execution time the data transfer error was detected.

まず、単一のデータバスにおけるデータ転送ミスを検出
する回路について説明する。
First, a circuit for detecting a data transfer error on a single data bus will be described.

第1図において1はコンピュータ、2はコンピュータ1
側に設けられたインタフェース、3は被制御機器4側に
設けられたインタフェースで、コンピュータ1より出力
される間欠的なデータはデータバスDB1を介してイン
タフェース2に与えられる。
In Figure 1, 1 is a computer, 2 is a computer 1
An interface 3 provided on the side is an interface provided on the controlled equipment 4 side, and intermittent data outputted from the computer 1 is given to the interface 2 via the data bus DB1.

このインタフェース2はコンピュータ1より送出される
間欠的なデータを記憶して連続的なデータとして出力す
るもので、この連続的なデータはデータバスDB2を介
して被制御機器側のインタフェース3に与えられる。
This interface 2 stores intermittent data sent from the computer 1 and outputs it as continuous data, and this continuous data is given to the controlled device side interface 3 via the data bus DB2. .

この被制御機器側のインタフェース3は例えばバッファ
アンプ30とAD変換器31とで構成されており、デー
タバスDB2を介して与えられたデータをアナログ信号
に変換して被制御機器4に与える。
The controlled device side interface 3 is composed of, for example, a buffer amplifier 30 and an AD converter 31, and converts data applied via the data bus DB2 into an analog signal and provides it to the controlled device 4.

これにより被制御機器4はコンピュータ1より送出され
たデータに基づいて制御される。
Thereby, the controlled device 4 is controlled based on the data sent from the computer 1.

前記コンピュータ1は主にプログラムカウンタ10、メ
モリ11.インストラクションデコーダ12、演算器1
3、出力レジスタ14から構成されており、プログラム
カウンタ10によってメモリ11の1つのアドレスが指
定されると、指定されたアドレスに記憶されているプロ
グラムが読出される。
The computer 1 mainly includes a program counter 10, a memory 11 . Instruction decoder 12, arithmetic unit 1
3. It is composed of an output register 14, and when one address of the memory 11 is designated by the program counter 10, the program stored at the designated address is read out.

そして、この読出されたプログラムはインストラクショ
ンデコーダ12によって解読され、読出されたプログラ
ムが出力命令であれば出力信号DOAが出力される。
The read program is decoded by the instruction decoder 12, and if the read program is an output instruction, an output signal DOA is output.

この出力信号DOAは演算器13とアンドゲートAG1
に与えられるようになっており、演算器13に出力信号
DOAが与えられると、演算器13からは演算結果に基
づく制御データが出力され出力レジスタ14に与えられ
る。
This output signal DOA is connected to the arithmetic unit 13 and the AND gate AG1.
When the output signal DOA is applied to the arithmetic unit 13, the arithmetic unit 13 outputs control data based on the calculation result and is applied to the output register 14.

また前記アンドゲートAG1には図示しないタイミング
信号発生回路より信号IRQが第2図すに示すように実
行サイクルのCL6〜CLI Oの間に与えられるよう
になっており、このアントゲ−1−AG、に信号IRQ
が与えられると、インストラクションデコーダ12より
送出された出力信号DOAがインタフェース2に与えら
れる。
Further, a signal IRQ is applied to the AND gate AG1 from a timing signal generation circuit (not shown) between CL6 and CLIO of the execution cycle as shown in FIG. Signal IRQ
is applied, the output signal DOA sent from the instruction decoder 12 is applied to the interface 2.

出力レジスタ14は図示しないタイミング信号発生回路
よりロード信号LO,ADが第2図aに示すように実行
サイクルCL6のタイミングで与えられると、演算器1
3より出力されたデータを読込んで一時記憶し、この記
憶されたデータを出力するもので、この出力レジスタ1
4より出力されたテ゛−タは後述するゲートG、を介し
てデータバスDB。
When the output register 14 receives load signals LO and AD from a timing signal generation circuit (not shown) at the timing of the execution cycle CL6 as shown in FIG.
This output register 1 reads the data output from 3, stores it temporarily, and outputs this stored data.
The data output from 4 is connected to the data bus DB via a gate G, which will be described later.

に出力されインタフェース2に与えられる。is output to and given to interface 2.

このインタフェース2は主にバッファアンプ20.22
と受信レジスタ21とから構成されており、コンピュー
タ1から出力されたデータはバッファアンプ20を介し
て受信レジスタ21に与えられる。
This interface 2 is mainly a buffer amplifier 20.22
and a reception register 21, and data output from the computer 1 is given to the reception register 21 via a buffer amplifier 20.

この受信レジスタ21はコンピュータより出力信号DO
Aが与えられると、コンピュータ1より与えられたデー
タを読込んで記憶するもので、この記憶されたデータは
バッファアンプ22を介してデータバス上ダクト出力さ
れインタフェース3に与えられる。
This receiving register 21 receives the output signal DO from the computer.
When A is given, the data given by the computer 1 is read and stored, and this stored data is output to the data bus via the buffer amplifier 22 and given to the interface 3.

さらに前記コンピュータ1とインタフェース2には本発
明の特徴であるデータ転送の異常を検出する回路が設け
られており、この回路はコンピュータ1に設けられたゲ
ートG1、インバータINV、比較器16、アンドゲー
トAG2、フリップフロップFFとインタフェース2に
設けられたタイマ23、ワンショット回路24、ゲート
G2とによって構成されている。
Furthermore, the computer 1 and the interface 2 are provided with a circuit for detecting an abnormality in data transfer, which is a feature of the present invention. It is composed of AG2, a flip-flop FF, a timer 23 provided in the interface 2, a one-shot circuit 24, and a gate G2.

タイマ23はコンピュータ1より出力される出力信号D
OAによって付勢されるタイマで、このタイマ23がタ
イムアツプすると、ワンショット回路24より一定時間
幅twのエコーバック信号EBが出力される。
The timer 23 receives the output signal D output from the computer 1.
When the timer 23, which is activated by the OA, times out, the one-shot circuit 24 outputs an echo back signal EB with a fixed time width tw.

そして、このエコーバック信号EBはゲートG2とアン
ドゲートAG2とに与えられ、インバータINVを介し
てゲートG1に与えられるようになっている。
This echo back signal EB is applied to the gate G2 and the AND gate AG2, and is applied to the gate G1 via the inverter INV.

したがって、コンピュータ1より出力信号DOAが送出
されるまではゲートG、が開かれており、コンピュータ
1より出力信号DOAが送出されて一定時間後にエコー
バック信号EBが送出されると、ゲートG1は閉じられ
ゲートG2が開かれる。
Therefore, the gate G is open until the output signal DOA is sent out from the computer 1, and when the echo back signal EB is sent out after a certain period of time after the output signal DOA is sent out from the computer 1, the gate G1 is closed. Gate G2 is opened.

これにより、受信レジスタ21より出力されているデー
タはゲートG2を介してデータバスDB、にフィードバ
ックされる。
As a result, the data output from the reception register 21 is fed back to the data bus DB via the gate G2.

比較器16は出力レジスタ14から出力されるデータと
テ゛−タバスDB1に出力されているデータを比較する
もので、両者が一致していない場合には不一致信号DI
Fが出力されアンドゲートAG2の一方の入力端子に与
えられる。
The comparator 16 compares the data output from the output register 14 and the data output to the data bus DB1, and if the two do not match, a mismatch signal DI is output.
F is output and applied to one input terminal of AND gate AG2.

また、このアンドゲートAG2の他方の入力端子には前
記したようにエコーバック信号EBが与えられるように
なっているため、このアンドゲートAG2はエコーバッ
ク信号EBが出力されている間、すなわち受信レジスタ
21によって受信されたデータがデ゛−タバスDB1に
出力されている間のみ開かれ、比較器16から出力され
た不一致信号DIFがフリップフロップFFのセット端
子Sに与えられる。
Moreover, since the echo back signal EB is applied to the other input terminal of this AND gate AG2 as described above, this AND gate AG2 is operated while the echo back signal EB is being output, that is, the receiving register It is opened only while the data received by the comparator 21 is being output to the data bus DB1, and the discrepancy signal DIF output from the comparator 16 is applied to the set terminal S of the flip-flop FF.

このフリップフロップFFはセット端子Sに不一致信号
DIFが与えられるとセットしてこれを記憶するもので
、セットした場合には出力端子Qより異常信号ERRO
Rが送出され図示しない異常報知器によって異常が報知
される。
This flip-flop FF is set and memorized when the mismatch signal DIF is given to the set terminal S. When set, the abnormal signal ERRO is output from the output terminal Q.
R is transmitted and an abnormality is notified by an abnormality alarm (not shown).

また、このフリップフロップFFの出力端子Qは、プロ
グラムカウンタ10の歩進信号を制御するアントゲ−I
−AG3に与えられるようになっており、異常が生じた
場合にはこのアンドゲートAG3を閉じてプログラムカ
ウンタ10の歩進を停止させる。
Further, the output terminal Q of this flip-flop FF is an ant game I which controls the step signal of the program counter 10.
-AG3, and if an abnormality occurs, this AND gate AG3 is closed to stop the program counter 10 from advancing.

これにより、コンピュータ1による被制御機器4の制御
は停止され被制御機器4の誤動作を防止する。
As a result, control of the controlled device 4 by the computer 1 is stopped, thereby preventing the controlled device 4 from malfunctioning.

次に以上の横取によるデータ転送装置の動作を説明する
Next, the operation of the data transfer device based on the above-mentioned interception will be explained.

今、図示しない起動スイッチによりコンピュータ1の運
転が開始されたとすると、プログラムカウンタ10によ
って指定されたアドレスのプログラムが、第2図に示す
読出しサイクルCL2のタイミングでメモリ11から読
出される。
Assuming that operation of the computer 1 is started by a start switch (not shown), the program at the address specified by the program counter 10 is read out from the memory 11 at the timing of the read cycle CL2 shown in FIG.

そして、この読出されたプログラムはインストラクショ
ンデコーダ12によってCL4のタイミングで解読され
、解読されたプログラムが出力命令である場合には出力
信号DOAが送出され、演算器13から出力レジスタ1
4に制御データが与えられる。
The read program is decoded by the instruction decoder 12 at the timing of CL4, and if the decoded program is an output instruction, an output signal DOA is sent out from the arithmetic unit 13 to the output register 1.
Control data is given to 4.

このようにして読出しサイクルを終了し実行サイクルに
入ると、CL5のタイミングで出力レジスタ14にロー
ド信号LOADが与えられる。
When the read cycle ends in this way and the execution cycle begins, the load signal LOAD is applied to the output register 14 at the timing of CL5.

これにより出力レジスタ14は演算器13より出力され
ているデータを読込んで一時記憶し、記憶されたデータ
を出力する。
As a result, the output register 14 reads the data output from the arithmetic unit 13, temporarily stores it, and outputs the stored data.

この時、信号IRQはまだ送出されていないため、出力
信号DOAはインタフェース2に与えられず、エコーバ
ック信号EBも送出されない。
At this time, since the signal IRQ has not yet been sent out, the output signal DOA is not given to the interface 2, and the echo back signal EB is not sent out either.

したがって、ゲ゛−トG、は開かれたままとなっており
、出力レジスタ14から出力されたデ゛−夕はゲ゛−1
−G、、デ゛−タバスDB、、バッファアンプ20を介
して受信レジスタ21に与えられる。
Therefore, gate G remains open, and the data output from output register 14 is gate G-1.
-G, data bus DB, is applied to the reception register 21 via the buffer amplifier 20.

そして、CL6のタイミングで信号IRQがアントゲ゛
−)AG、に与えられると、出力信号DOAが受信レジ
スタ21に与えられるため、出力レジスタ14から出力
されたデータが受信レジスタ21にて読込まれる。
Then, when the signal IRQ is applied to the analog gate (AG) at the timing of CL6, the output signal DOA is applied to the receiving register 21, so that the data output from the output register 14 is read by the receiving register 21.

そして、この読込まれたデータがバッファアンプ22、
データバスDB2を介してインタフェース3に与えられ
、被制御機器4にデータに応じた信号が与えられる。
This read data is then sent to the buffer amplifier 22,
The signal is applied to the interface 3 via the data bus DB2, and a signal corresponding to the data is applied to the controlled device 4.

コンピュータ1より出力信号DOAが出力されると、こ
の出力信号DOAはタイマ23にも与えられるため、タ
イマ23は付勢される。
When the output signal DOA is output from the computer 1, this output signal DOA is also given to the timer 23, so the timer 23 is activated.

そして、このタイマ23が設定時間tsだけ経過した後
でタイムアツプすると、ワンショット回路23より第2
図dに示すような時間幅twのエコーバック信号FBが
送出される。
When the timer 23 times out after the set time ts has elapsed, the one-shot circuit 23 outputs a second
An echo back signal FB having a time width tw as shown in FIG. d is sent out.

なお、タイマ23の設定時間tsは受信レジスタ21が
データの読込みを終了する時間より長く設定すればよく
、エコーバック信号BBの時間幅twは比較器16によ
ってデータの一致が判別されるのに必要な時間より長け
ればよい。
Note that the set time ts of the timer 23 may be set longer than the time for the reception register 21 to finish reading data, and the time width tw of the echo back signal BB is necessary for the comparator 16 to determine whether the data match. The length of time should be longer than that.

エコーバック信号EBが送出されると前記したようにゲ
ートG1が閉じられ、ゲートG2とアンドゲートAG2
が開かれる。
When the echo back signal EB is sent out, the gate G1 is closed as described above, and the gate G2 and the AND gate AG2 are closed.
will be held.

これにより、受信レジスタ21より送出されるデータが
ゲートG2、データバスDB1を介して比較器16に与
えられる。
As a result, data sent from the reception register 21 is provided to the comparator 16 via the gate G2 and the data bus DB1.

この時、転送されたデータに異常がなければ比較器16
から不一致信号DIFは出力されることはなく、プログ
ラムカウンタ10は歩進じて次のプログラムが実行され
る。
At this time, if there is no abnormality in the transferred data, the comparator 16
The discrepancy signal DIF is not output from then on, and the program counter 10 advances to execute the next program.

しかし、データバスDB1に雑音電圧が誘起したり、バ
ッファアンプ20、受信レジスタ21等が故障して、出
力レジスタ14より送出したデータと受信レジスタ21
より送出されているデータが異っている場合には、これ
が比較器16にて判別され、比較器16から第2図eに
示すような不一致信号DIFが出力される。
However, if a noise voltage is induced in the data bus DB1 or the buffer amplifier 20, reception register 21, etc. fail, the data sent from the output register 14 and the reception register 21
If the data being sent out are different, this is determined by the comparator 16, and the comparator 16 outputs a discrepancy signal DIF as shown in FIG. 2e.

そして、この不一致信号DIFがアンドゲートAG2を
介してフリップフロップFFに与えられフリップフロッ
プFFをセットする。
This mismatch signal DIF is then applied to flip-flop FF via AND gate AG2 to set flip-flop FF.

これによりプログラムカウンタ10の歩進は停止され被
制御機器4の制御は停止される。
As a result, the program counter 10 stops advancing, and the control of the controlled device 4 is stopped.

また、図示しない異常報知回路によって異常が報知され
る。
Further, an abnormality is notified by an abnormality notification circuit (not shown).

以上本発明の実施例を図面に基づいて説明する。Embodiments of the present invention will be described above based on the drawings.

第3図において、コンピュータ1は第1図に示すものと
ほぼ同様の構成となっているが、インタフェース2には
、受信レジスタ21とデータバスDB2との間に設けら
れたゲ゛−トG3と、インタフェース3より与えられる
エコーバック信号EBを反転してゲートG3に与えるイ
ンバータ■N■2と、受信レジスタ21から出力された
データとデータバスDB2に出力されているデータを比
較する比較器25と、この比較器25をエコーバック信
号送出時のみ有効にするアンドゲートAG4が設けられ
ている。
In FIG. 3, the computer 1 has almost the same configuration as that shown in FIG. 1, but the interface 2 includes a gate G3 and a , an inverter ■N■2 that inverts the echo back signal EB applied from the interface 3 and applies it to the gate G3, and a comparator 25 that compares the data output from the reception register 21 and the data output to the data bus DB2. , an AND gate AG4 is provided that makes the comparator 25 valid only when transmitting an echo back signal.

また、インタフェース3には、コンピュータ1より出力
信号DOBが与えられるとインタフェース2より出力さ
れたデータを読込んで記憶し、この記憶されたデータを
出力する受信レジスタ32と、出力信号DOBによって
付勢されるタイマ33と、このタイマ33のタイムアツ
プによって有効にされ、一定時間幅のエコーバック信号
EBを送出するワンショット回路34と、このエコーバ
ック信号EBによって開かれ受信レジスタ32より出力
されているデータをデ′−タバスDB2ヘフィードバッ
クするゲートG4とが付加されている。
The interface 3 also includes a reception register 32 that reads and stores data output from the interface 2 when the output signal DOB is applied from the computer 1, and outputs the stored data, and a reception register 32 that is activated by the output signal DOB. a timer 33, a one-shot circuit 34 which is activated by the time-up of this timer 33 and sends out an echo back signal EB of a fixed time width, and a one-shot circuit 34 which is opened by this echo back signal EB and receives the data output from the receiving register 32. A gate G4 for feeding back to the data bus DB2 is added.

さらに、ワンショット回路34から送出されたエコーバ
ック信号EBはインタフェース2のインバータINV2
とアンドゲートAG4にも与えられるようになっている
Further, the echo back signal EB sent from the one-shot circuit 34 is sent to the inverter INV2 of the interface 2.
and is also given to AND gate AG4.

したがってインタフェース2からインタフェース3にデ
ータが与えられている状態でコンピュータ1より出力信
号DOBが送出されると、与えられたデータが受信レジ
スタ32に読込まれるとともにタイマ33が付勢される
Therefore, when the output signal DOB is sent from the computer 1 while data is being applied from the interface 2 to the interface 3, the applied data is read into the reception register 32 and the timer 33 is activated.

このタイマ33が付勢されると一定時間が経過した後で
エコーバック信号EBが送出されるため、ゲートG3が
閉じられるとともにゲートG4が開かれ、受信レジスタ
32によって読込まれたデータがゲートG4を介してデ
ータバスDB2にフィードバックされる。
When this timer 33 is activated, the echo back signal EB is sent out after a certain period of time has elapsed, so that the gate G3 is closed and the gate G4 is opened, and the data read by the receiving register 32 is sent to the gate G4. It is fed back to the data bus DB2 via the data bus DB2.

これにより、インタフェース2の受信レジスタ21から
送出されたデータとインタフェース3の受信レジスタ3
2によって読込まれたデータとが比較器25によって比
較される。
As a result, the data sent from the reception register 21 of the interface 2 and the reception register 3 of the interface 3 are
The comparator 25 compares the data read by the comparator 25 with the data read by the comparator 25.

そして、インタフェース2とインタフェース3との間で
データ転送の異常が生じ、送出したデータと受信された
データが異なる場合にはこれが比較器25によって判別
され、不一致信号DIFがアンドゲートAG4を介して
コンピュータ1に送出される。
If an abnormality occurs in data transfer between interface 2 and interface 3, and the sent data and received data are different, this is determined by comparator 25, and a discrepancy signal DIF is sent to the computer via AND gate AG4. 1.

このコンピュータ1に送出された不一致信号DIFはオ
アゲートORを介してフリップフロップFFのセット端
子Sに与えられるようになっているため、このフリップ
フロップFFはセットされ、プログラムカウンタ10の
歩進が停止されるとともに異常が報知される。
Since the discrepancy signal DIF sent to the computer 1 is applied to the set terminal S of the flip-flop FF via the OR gate OR, the flip-flop FF is set and the progress of the program counter 10 is stopped. An abnormality will be reported as soon as the error occurs.

以上のように本実施例では、コンピュータ1より出力信
号DOAが出力されると、コンピュータ1からインタフ
ェース2ヘデータが転送されるとともに、この間に生じ
たデータ転送の異常検出が行われ、出力信号DOBが出
力されると、インタフェース2からインタフェース3ヘ
データが転送されるとともに、この間に生じたデータ転
送の異常が検出されるのである。
As described above, in this embodiment, when the output signal DOA is output from the computer 1, data is transferred from the computer 1 to the interface 2, and an abnormality in data transfer that has occurred during this time is detected, and the output signal DOB is When the data is output, the data is transferred from interface 2 to interface 3, and any abnormality in data transfer that occurs during this time is detected.

したがって、出力命令DOAの次に出力命令DOBをプ
ログラムしておけば、コンピュータ1カラインタフエー
ス2へのデータ転送と異常のチェック、インタフェース
2からインタフェース3へのデータ転送と異常のチェッ
クが自動的に行われる。
Therefore, by programming the output command DOB after the output command DOA, data transfer to the computer 1 interface 2 and abnormality check, and data transfer from interface 2 to interface 3 and abnormality check will be automatically performed. It will be done.

そして、もしデータ転送の異常が生じた場合でもプログ
ラムカウンタ10の内容から出力命令DOAが実行され
た後で停止したのか、出力命令DOBが実行された後で
停止したのかを調べれば、データ転送の異常がコンピュ
ータ1とインタフェース2との間で生じたのか、インタ
フェース2と3の間で生じたのかが直ちに判断でき、異
常個所の検出時間を大幅に短縮できる。
Even if a data transfer error occurs, if you check from the contents of the program counter 10 whether it stopped after the output command DOA was executed or whether it stopped after the output command DOB was executed, you can check the data transfer. It can be immediately determined whether the abnormality has occurred between the computer 1 and the interface 2 or between the interfaces 2 and 3, and the time required to detect the abnormality can be significantly shortened.

なお、コンピュータ1に多数のインタフェースが接続さ
れていて、どのインタフェースが異常であるかを自動的
検出したい場合には、コンピュータ1内に各インタフェ
ースに対応したレジスタを設けるとともに各インタフェ
ースより送出される不一致信号DIFを記憶するように
し、プログラムカウンタ10を停止させないで、異常検
出プログラムで前記レジスタの内容をサーチするように
すればよい。
Note that if a large number of interfaces are connected to the computer 1 and you want to automatically detect which interface is abnormal, provide a register corresponding to each interface in the computer 1 and register the discrepancy sent from each interface. The signal DIF may be stored and the contents of the register may be searched by the abnormality detection program without stopping the program counter 10.

以上述べたように本発明においては、直列的に接続され
る複数のデータバスのそれぞれ毎に、各データバス上に
出力されたデータと受信手段によって受信されたデータ
とを比較することによってデータの転送ミスを検出する
比較手段を設けるとともに、この複数の比較手段を異な
る出力命令の実行に応じてコンピュータから出力される
複数の出力信号のそれぞれに応答して順番に作動させる
ようにしたので、どの出力命令を実行した時点で転送ミ
スが検出されたかにより、転送ミスの発生したデータバ
スを容易に特定でき、異常箇所を短時間に発見できる利
点がある。
As described above, in the present invention, for each of a plurality of serially connected data buses, the data is determined by comparing the data output on each data bus with the data received by the receiving means. In addition to providing comparison means for detecting transfer errors, the plurality of comparison means are activated in sequence in response to each of the plurality of output signals output from the computer in response to the execution of different output commands. Depending on whether a transfer error is detected at the time an output command is executed, the data bus on which the transfer error occurred can be easily identified, which has the advantage of allowing abnormalities to be discovered in a short time.

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

第1図は単一のデータバスにおける転送ミスを検出する
ようにしたデータ転送装置を示すブロック図、第2図は
第1図における各信号のタイミングを示す図、第3図は
本発明の実施例を示すブロック図である。 1・・・・・・コンピュータ、2,3・・・・・・イン
タフェース、14・・・・・・出力レジスタ、16,2
5・・・・・・比較器、2L32・・・・・・受信レジ
スタ、23 、33・・・・・・タイマ、24,34・
・・・・・ワンショット回路、AGl、AG2.AG3
.AG4・・・・・・アンドゲート、FF・・・・・・
フリップフロップ、G1.G2.G3.G4・・・・・
・ゲート、■N■、■N■2・・・・・・インバータ。
FIG. 1 is a block diagram showing a data transfer device designed to detect a transfer error on a single data bus, FIG. 2 is a diagram showing the timing of each signal in FIG. 1, and FIG. 3 is an implementation of the present invention. FIG. 2 is a block diagram illustrating an example. 1... Computer, 2, 3... Interface, 14... Output register, 16, 2
5... Comparator, 2L32... Reception register, 23, 33... Timer, 24, 34...
...One-shot circuit, AGl, AG2. AG3
.. AG4...and gate, FF...
Flip-flop, G1. G2. G3. G4...
・Gate, ■N■, ■N■2...Inverter.

Claims (1)

【特許請求の範囲】[Claims] 1 コンピュータから出力されるデータを直列的に接続
された複数のデータバスを経由して被制御機器に転送す
るようにしたデータ転送装置において、前記複数のデー
タバスのそれぞれに対応して、各データバスの始端に接
続され転送すべきデータをデータバスに出力するデータ
出力手段と、各データバスの後端に接続されデータバス
に送出されたデータを受信するデータ受信手段と、この
データ受信手段によって受信されたデータと前記のデー
タ出力手段より出力されたデータとを比較し一致しない
場合には信号を送出する比較手段とを設けるとともに、
異なる出力命令の実行によって前記コンピュータから異
なるタイミングで出力される複数の出力信号のそれぞれ
に応答して前記複数のデータバスのそれぞれに対応して
設けられた複数の比較手段を順番に有効にする制御手段
と、前記複数の比較手段のいずれかより信号が出力され
た場合はこれを記憶して前記コンピュータに異常信号を
送出する記憶手段とより構成されることを特徴とするデ
ータ転送装置。
1. In a data transfer device configured to transfer data output from a computer to a controlled device via a plurality of serially connected data buses, each data A data output means connected to the starting end of the bus and outputting the data to be transferred to the data bus; a data receiving means connected to the rear end of each data bus receiving the data sent to the data bus; Comparing means for comparing the received data and the data output from the data output means and transmitting a signal if they do not match, and
control for sequentially enabling a plurality of comparison means provided corresponding to each of the plurality of data buses in response to each of a plurality of output signals output from the computer at different timings by executing different output instructions; and storage means for storing a signal outputted from any one of the plurality of comparison means and transmitting an abnormality signal to the computer.
JP51120606A 1976-10-07 1976-10-07 data transfer device Expired JPS5851289B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP51120606A JPS5851289B2 (en) 1976-10-07 1976-10-07 data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP51120606A JPS5851289B2 (en) 1976-10-07 1976-10-07 data transfer device

Publications (2)

Publication Number Publication Date
JPS5345945A JPS5345945A (en) 1978-04-25
JPS5851289B2 true JPS5851289B2 (en) 1983-11-15

Family

ID=14790401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP51120606A Expired JPS5851289B2 (en) 1976-10-07 1976-10-07 data transfer device

Country Status (1)

Country Link
JP (1) JPS5851289B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61188602A (en) * 1985-02-16 1986-08-22 Omron Tateisi Electronics Co Monitoring circuit of input/output bus
JPS6476246A (en) * 1987-09-18 1989-03-22 Fujitsu Ltd System for testing common bus

Also Published As

Publication number Publication date
JPS5345945A (en) 1978-04-25

Similar Documents

Publication Publication Date Title
JPS61163444A (en) Error tester for data processor
JPS5851289B2 (en) data transfer device
US4339797A (en) Microcontroller with auxiliary register for duplicating storage of data in one memory location
JPH1115661A (en) CPU self-diagnosis method
JP2503980B2 (en) Memory diagnostic circuit
JPH022176B2 (en)
JPH04236645A (en) Memory diagnostic system
JPH04135275A (en) Pipeline control system
JPS5834854B2 (en) information processing equipment
JP2548378B2 (en) RAS check function inspection method
JPH10135951A (en) Communication system, image forming apparatus, and communication system abnormality diagnosis method
JPH02173852A (en) Bus diagnostic device
JPH03266154A (en) Information processor
JP3104761B2 (en) Diagnostic method of sequence controller
SU1035596A2 (en) Device for interfacing two computers
JPS58121459A (en) Service processor of electronic computer
JPS592585Y2 (en) data processing equipment
JPS6013592B2 (en) Sequence controller data bus failure diagnosis device
JPS5935456B2 (en) arithmetic processing unit
JP2981275B2 (en) Programmable controller
JPS5931800B2 (en) Control memory diagnostic method
JPS6091461A (en) Expanding device for data address space of microprocessor
JPH03184133A (en) Pseudo fault generating mechanism for data processor
JPS59160898A (en) Fault diagnostic device of storage device
JPH10307601A (en) CPU output control circuit