JPS6089145A - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JPS6089145A
JPS6089145A JP19621483A JP19621483A JPS6089145A JP S6089145 A JPS6089145 A JP S6089145A JP 19621483 A JP19621483 A JP 19621483A JP 19621483 A JP19621483 A JP 19621483A JP S6089145 A JPS6089145 A JP S6089145A
Authority
JP
Japan
Prior art keywords
data
signal
address signal
shift register
input
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
Application number
JP19621483A
Other languages
Japanese (ja)
Inventor
Tadao Totsuka
戸塚 忠男
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP19621483A priority Critical patent/JPS6089145A/en
Publication of JPS6089145A publication Critical patent/JPS6089145A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To ensure error detection by adding two data signals having contents equal to an address signal and adopting the data when two signals at the reception side are identical in an in-factory centralized control system or the like. CONSTITUTION:When a master device 1 is brought into the transmission mode, data of the identical content is loaded to shift registers 3, 4 and an address signal is loaded to a shift register 5. When the loading of data is finished, a clock signal is inputted to shift registers 3-5 and the data is shifted serially. Moreover, a signal from the shift register 5 is transmitted to a transmission line 38. A sub-device 2 separates a transmitted signal into data and a clock, the data signal and the address signal are shifted sequentially and the data corresponding to the content of the shift registers 3, 4 enters the shift registers 23, 24. The contents of the registers 23, 24 are compared and when they are coincident, the data is adopted and the mode is inverted.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は、工業用ロボットの工場内遠隔操作等におけ
るデータ伝送方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a data transmission system for remote control of industrial robots in factories, etc.

〔従来技術〕[Prior art]

データ伝送において、誤シ検出のためにパリティ・チェ
ック符号を従来からよく用いている。しかし、パリティ
−チェック符号による誤り検出は、2ビット以上のエラ
ーチェックをすることができない。一方、工場内では高
圧電源のスイッチ切換がよく行なわれ、そのとき発生す
る電磁波の影響のために工場内の集中制御システムのデ
ータ伝送においては伝送路で誤シが混入する確率が高く
2ビット以上のエラーが発生することも少なくない。
In data transmission, parity check codes have traditionally been used to detect false alarms. However, error detection using a parity check code cannot check errors of two or more bits. On the other hand, high-voltage power supplies are often switched in factories, and due to the effects of electromagnetic waves generated at that time, there is a high probability that 2 or more bits will be erroneously mixed into the data transmission path of the central control system in the factory. Errors often occur.

出し得ないことがある。これを放置すれば、誤ったデー
タにもとづいて端末機であるロボットが動作してしまう
ことになシ、不良品の発生を余儀なくされるだけでなく
、場合によってはきわめて危険な事態をまねく。
There are some things I can't do. If this is left unaddressed, the robot terminal will operate based on incorrect data, which will not only result in the production of defective products, but also lead to an extremely dangerous situation in some cases.

〔発明の概要〕[Summary of the invention]

この発明は上記の問題点に鑑みてなされたものであシ、
その目的とするところは、工場内集中制御システム等に
おけるデータ伝送のようにデータ誤シの発生率が高い場
合であっても確実に誤シ検出をすることができるデータ
伝送方式を提供することにある。
This invention was made in view of the above problems.
The purpose is to provide a data transmission method that can reliably detect data errors even in cases where the incidence of data errors is high, such as in data transmission in a factory centralized control system. be.

かかる目的を達成するために、本発明は、1つのアドレ
ス信号に対して、同一内容の2つのデータ信号を付加し
て伝送し、受信側でこの2つのデータ信号を比較して同
一の場合だけ当該データを採用するものである。
In order to achieve such an object, the present invention transmits two data signals with the same contents added to one address signal, and compares these two data signals on the receiving side and only if they are the same, This data will be adopted.

〔実施例〕〔Example〕

以下、実施例とともに本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail along with examples.

第1図は本発明の一実施例を説明するためのブロック図
である。1は主装置を示し、2は複数の副装置のうちの
1つを示す。3及び4は16ビツトのシフトレジスタで
あ)、主装置1が送信モードのときは同一内容のデータ
信号がノくラレルに入力され、受信モードのときは、副
装置から伝送されて来たデータ信号がシリアルに入力さ
れる。5は8ビツトのシフトレジスタであり、送信モー
ドのときは、アドレス信号発生器6から副装置を指定す
るアドレス信号が入力され、受信モードのときは、副装
置から伝送されて来たアドレス信号が入力される。アド
レス信号発生器6はすべての副装置のアドレスを選択的
にシフトレジスタ5又は比較器7に出力する。比較器7
はシフトレジスタ5の内容とアドレス信号発生器6の出
力とを比較して同一の場合にはアンドゲート回路8に論
理値「1」を出力する。9は比較器であり、シフトレジ
スタ3及び4の内容を比較して、同一の場合にはアンド
ゲート回路8の他の入力端子に論理値rlJを出力する
。また、比較器9のデータの内容はアンドゲート回路2
0からのラッチ信号によシラッチ回路10にラッチされ
る。
FIG. 1 is a block diagram for explaining one embodiment of the present invention. 1 indicates a main device, and 2 indicates one of a plurality of sub devices. 3 and 4 are 16-bit shift registers), when the main device 1 is in the transmission mode, data signals with the same content are input in parallel, and when it is in the reception mode, the data signals transmitted from the sub device are input in parallel. Signals are input serially. Reference numeral 5 designates an 8-bit shift register, in which an address signal specifying a sub-device is input from the address signal generator 6 in the transmission mode, and an address signal transmitted from the sub-device is input in the reception mode. is input. Address signal generator 6 selectively outputs the addresses of all sub-devices to shift register 5 or comparator 7. Comparator 7
compares the contents of the shift register 5 and the output of the address signal generator 6, and outputs a logical value "1" to the AND gate circuit 8 if they are the same. A comparator 9 compares the contents of the shift registers 3 and 4, and outputs a logical value rlJ to the other input terminal of the AND gate circuit 8 if they are the same. Also, the content of the data of the comparator 9 is the same as that of the AND gate circuit 2.
It is latched into the silatch circuit 10 by the latch signal from 0.

11は送信部であシ、クロック発生器12からアンドゲ
ート回路13及びオアゲート回路14を介してクロック
信号を入力するとともに、シフトレジスタ5からアドレ
ス信号及びデータ信号を入力し、マンチェスターコード
に変換して伝送路38に出力する。16は副装置2から
伝送されて来た信号を受信する受信部であシ、マンチェ
スターコード化された受信信号をデータとクロックに分
離する。このデータはシフトレジスタ3に、クロックは
アンドゲート回路15にそれぞれ入力される。
Reference numeral 11 denotes a transmitting section, which inputs a clock signal from a clock generator 12 via an AND gate circuit 13 and an OR gate circuit 14, and also inputs an address signal and a data signal from a shift register 5, and converts them into Manchester code. It is output to the transmission line 38. A receiving section 16 receives the signal transmitted from the sub-device 2, and separates the Manchester coded received signal into data and a clock. This data is input to the shift register 3, and the clock is input to the AND gate circuit 15.

17はカウンタ回路であシ、アンドゲート回路13を介
して得られるクロック発生器12からのクロックパルス
を所定数カウントすると1パルス出力する。18はR−
87リツプフロツプ回路でsb、リセット端子にはカウ
ンタ回路17の出力が入力され、セット端子にはオアゲ
ート回路19の出力が入力される。几−Sフリップフロ
ップ回路18のQ出力はアンドゲート回路13に入力さ
れておシ、クロック発生器12のクロックパルスをゲー
トする。なお、アンドゲート回路13にはさらにゲート
信号(C)が入力されている。Q出力は、アンドゲート
回路8の出力を一方の入力とするアンドゲート回路20
並びにアンドゲート回路15にそれぞれ入力されておシ
、アンドゲート回路8の出力並びに受信部16により分
離されたクロック出力をそれぞれゲートする。この几−
Sフリップフロップ回路18の出力状態は主装置1のモ
ードを決定しておシ、Q出力が論理値rlJのとき、す
なわちQ出力が論理値「0」のときは受信モードとなっ
ておシ、逆にQ出力が論理値「0」のときは送信モード
となっている。
A counter circuit 17 outputs one pulse after counting a predetermined number of clock pulses from the clock generator 12 obtained via the AND gate circuit 13. 18 is R-
In the 87 lip-flop circuit, the output of the counter circuit 17 is input to the sb and reset terminal, and the output of the OR gate circuit 19 is input to the set terminal. The Q output of the S-S flip-flop circuit 18 is input to an AND gate circuit 13, which gates the clock pulse of the clock generator 12. Note that a gate signal (C) is further input to the AND gate circuit 13. The Q output is an AND gate circuit 20 whose one input is the output of the AND gate circuit 8.
The output of the AND gate circuit 8 and the clock output separated by the receiving section 16 are respectively input to the AND gate circuit 15 and gated. This pot-
The output state of the S flip-flop circuit 18 determines the mode of the main device 1, and when the Q output is a logical value rlJ, that is, when the Q output is a logical value "0", it is in the receiving mode. Conversely, when the Q output has a logical value of "0", it is in the transmission mode.

副装置2は、主装置1から送られて来たデータに基づい
て端末機であるロボットを動かすものであル、その構成
は主装置1とほとんど同じである。
The sub-device 2 operates a robot, which is a terminal device, based on data sent from the main device 1, and its configuration is almost the same as that of the main device 1.

21及び22は受信部及び送信部である。23及び24
は16ビツトシフトレジスタであり、25は8ビツトシ
フトレジスタである。26及び27は比較器、28はラ
ッチ回路、29はカウンタ回路、30はR−8フリップ
フロップ回路、31はクロック発生器である。32はア
ドレス信号発生器であるが、主装置1のアドレス信号発
生器と異なシ、自己のアドレスのみを出力する。33な
いし36はアンドゲート回路であシ、37及び38はオ
アゲート回路でおる。
21 and 22 are a receiving section and a transmitting section. 23 and 24
is a 16-bit shift register, and 25 is an 8-bit shift register. 26 and 27 are comparators, 28 is a latch circuit, 29 is a counter circuit, 30 is an R-8 flip-flop circuit, and 31 is a clock generator. 32 is an address signal generator, which is different from the address signal generator of the main device 1 and outputs only its own address. 33 to 36 are AND gate circuits, and 37 and 38 are OR gate circuits.

次に第2図の波形図を用いてこの装置の動作を説明する
。主装置1のR−8フリップフロップ回路18のセット
端子に、時刻t1のときにイニシャルリセットがオアゲ
ート回路19を介して入力されるとQ出力は論理値「1
」となシ、主装置1は送信モードとなる(第2図(a)
の11)。その後、時刻t2において、シフトレジスタ
3及び4に同一内容のデータがロードされ、シフトレジ
スタ5にアドレス信号発生器6から副装置2を指定する
アドレス信号がロードされる。データロードの終了時点
をひろってアンドゲート回路13のゲートをゲート信号
(C)によって開くとクロック発生器12からのクロッ
ク信号がシフトレジスタ3〜6に入力されてデータがシ
リアルにシフトされる(第2図(C))。また、クロッ
ク信号は送信部11にも入力されておシ、シフトレジス
タ5からの信号をマンチェスターコード変換して伝送路
38に送出される。このとき、クロック信号はカウンタ
回路11にも入力されておシ、40カウント(16+1
6+8 )計数すると送信エンド信号(第2図(d))
を出力して几−Sフリップフロップ回路18のQ出力を
論理値「0」とする。 これによって主装置1は受信モ
ードに変わる。
Next, the operation of this device will be explained using the waveform diagram shown in FIG. When an initial reset is input to the set terminal of the R-8 flip-flop circuit 18 of the main device 1 via the OR gate circuit 19 at time t1, the Q output is set to a logic value of "1".
”, the main device 1 enters the transmission mode (Fig. 2 (a)
11). Thereafter, at time t2, data with the same contents are loaded into shift registers 3 and 4, and an address signal specifying sub-device 2 is loaded into shift register 5 from address signal generator 6. When the gate of the AND gate circuit 13 is opened by the gate signal (C) at the end point of the data load, the clock signal from the clock generator 12 is input to the shift registers 3 to 6, and the data is serially shifted. Figure 2 (C)). The clock signal is also input to the transmitter 11, which converts the signal from the shift register 5 into a Manchester code and sends it to the transmission line 38. At this time, the clock signal is also input to the counter circuit 11 and counts 40 (16+1).
6+8) When counted, the transmission end signal (Figure 2 (d))
is output, and the Q output of the S-S flip-flop circuit 18 is set to the logical value "0". This changes the main device 1 to the reception mode.

一方、副装置2では時刻t1にイニシャルリセットがオ
アゲート回路38を介してR−8フリップフロップ回路
30のリセット端子に入力されてQ出力は論理値「0」
となシ、受信モードとなっている(第2図(e))。し
たがって、アンドゲート回路34は開いておシ、アンド
ゲート回路33は閉じている。主装置1から送られて来
たデータは受信部21で受信され、データとクロックに
分離される。このクロックはアンドゲート回路34に入
力されると、アンドゲート回路34は開いているのでオ
アゲート回路37を介してシフトレジスタ23ないし2
5に入力される。一方受信部21で分離されたデータ信
号およびアドレス信号は前述のクロックに基づいて順次
シフトされ、シフトレジスタ23及び24には主装置1
のシフトレジスタ3及び4にロードされた内容に対応す
るデータ信号が入力、シフトレジスタ25にはシフトレ
ジスタ5にロードされた内容に対応するアドレス信号が
入る。その後、比較器26においてシフトレジスタ23
及び24の内容を比較して同一の場合にはアンドゲート
回路36の一方の端子にパルス信号を出力する。比較器
27では、シフトレジスタ25とアドレス信号発生器3
2の内容を比較して同一の場合にはアンドゲート回路3
6の他方の端子にパルス信号を出力する。したがって、
シフトレジスタ23及び24の内容が一致し、しかもシ
フトレジスタ25の内容が正しいアドレスのときに限シ
アンドゲート回路3Bは論理値「1」を出力する。この
とき、副装置2は受信モードになっておj9、R,−8
フリップフロップ回路30のQ出力は論理値「1」を出
力している。そのため、アンドゲート回路35は開いて
おシ、アンドゲート回路36の出力はアンドゲート回路
35を介してラッチ回路28に入力しく第2図(f) 
) 、このタイミングで比較器26に取シ込まれた内容
をラッチする。ラッチ回路28の内容はさらに図示しな
いコントローラに送られ、ロボットを動作させる。
On the other hand, in the sub-device 2, the initial reset is inputted to the reset terminal of the R-8 flip-flop circuit 30 via the OR gate circuit 38 at time t1, and the Q output becomes the logical value "0".
It is now in reception mode (Fig. 2(e)). Therefore, the AND gate circuit 34 is open and the AND gate circuit 33 is closed. Data sent from the main device 1 is received by the receiving section 21 and separated into data and a clock. When this clock is input to the AND gate circuit 34, since the AND gate circuit 34 is open, it is passed through the OR gate circuit 37 to the shift register 23 or 2.
5 is input. On the other hand, the data signal and address signal separated by the receiving section 21 are sequentially shifted based on the aforementioned clock, and the shift registers 23 and 24 are stored in the main device 1.
Data signals corresponding to the contents loaded into the shift registers 3 and 4 are input to the shift register 25, and an address signal corresponding to the contents loaded to the shift register 5 is input to the shift register 25. After that, in the comparator 26, the shift register 23
and 24, and if they are the same, a pulse signal is output to one terminal of the AND gate circuit 36. In the comparator 27, the shift register 25 and the address signal generator 3
Compare the contents of 2 and if they are the same, AND gate circuit 3
A pulse signal is output to the other terminal of 6. therefore,
Only when the contents of the shift registers 23 and 24 match and the contents of the shift register 25 is a correct address, the SAND gate circuit 3B outputs a logical value "1". At this time, the secondary device 2 is in reception mode and j9, R, -8
The Q output of the flip-flop circuit 30 outputs a logical value of "1". Therefore, the AND gate circuit 35 is left open, and the output of the AND gate circuit 36 is input to the latch circuit 28 via the AND gate circuit 35, as shown in FIG. 2(f).
), the contents taken into the comparator 26 at this timing are latched. The contents of the latch circuit 28 are further sent to a controller (not shown) to operate the robot.

なお、アンドゲート回路35の出力(第2図(f))は
、几−Sフリップフロップ回路30のセット端子にも入
力されておシ、ラッチ回路28にデータがラッチされた
と同時にQ出力が論理値rlJとなシ送信モードとなる
The output of the AND gate circuit 35 (FIG. 2(f)) is also input to the set terminal of the S-S flip-flop circuit 30, and at the same time the data is latched into the latch circuit 28, the Q output becomes logic. When the value rlJ is reached, the transmission mode is set.

次に、副装置2から主装置1ヘデータが伝送される。こ
の場合のデータは、例えば前段になされた動作結果を主
装置1に報告するものなどである。
Next, data is transmitted from the secondary device 2 to the main device 1. The data in this case is, for example, data that reports the results of the previous operation to the main device 1.

主装置1はそのデータ内容に応じて副装置2に次の動作
指令をするものである。副装置2から主装置1へのデー
タ伝送は前述した主装置1から副装置2へのデータ伝送
と全く同じ手順でなされるものである。また、主装置1
側でのデータ誤シチェックの手順も前述した副装置2(
itlIで○データ誤りチェックと同じ手順でなされる
。このように主装置1と副装置2との間で誤シなく相互
にデータ伝送をしている間はロボットは正常に動作する
ものであり、いずれかの装置においてデータ誤シを発見
した場合にはデータのラッチがなされないと同時に送・
受信モードの反転がなされないので、主装置では副装置
■0で受けたデータが誤シであったことを確認できる。
The main device 1 issues the next operation command to the sub device 2 according to the data contents. Data transmission from the sub-device 2 to the main device 1 is performed using exactly the same procedure as the data transmission from the main device 1 to the sub-device 2 described above. In addition, the main device 1
The procedure for checking data errors on the side is also the same as the above-mentioned sub-device 2 (
ItlI is performed using the same procedure as the data error check. As long as data is being transmitted between the main device 1 and the sub device 2 without errors, the robot will operate normally, and if a data error is discovered in either device, The data is not latched and sent at the same time.
Since the reception mode is not reversed, the main device can confirm that the data received by the sub device 0 was incorrect.

このような場合、主装置は副装置の電源を切り、ロボッ
トの動作を停止させる。
In such a case, the main device turns off the power to the sub device and stops the operation of the robot.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、1つのアドレス信
号に対して、同一内容の2つのデータ信号を付加して伝
送し、受信側でこの2つのデータ信号を比較して同一の
場合だけ当該データを採用するので、確実に誤シ検出を
することができ、誤)が検出された場合には早急に電源
を断つなどの手段を講することができる。
As explained above, according to the present invention, two data signals with the same content are added to one address signal and transmitted, and the receiving side compares these two data signals and only if they are the same, the corresponding Since the data is used, it is possible to reliably detect false alarms, and if false alarms are detected, measures such as immediately turning off the power can be taken.

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

第1図は本発明の一実施例を示すブロック図、第2図は
その波形図である。 3.4,23.24−・・・16ビツトシフトレジスタ
、5,25・・・拳8ビットシフトレジスタ、6,32
・・・・アドレス信号発生器、9.7,26,27・砕
−・比較器、10,28−・・・ラッチ回路、38・・
Φ・伝送路。 特許出願人 戸 塚 忠 男 代理人 山川数構(ζ勃X1名)
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a waveform diagram thereof. 3.4,23.24--16-bit shift register, 5,25...Fist 8-bit shift register, 6,32
...Address signal generator, 9.7, 26, 27 - Comparator, 10, 28 - ... Latch circuit, 38...
Φ・Transmission line. Patent applicant: Tadashi Totsuka Male agent: Kazuki Yamakawa (1 person with ζerect)

Claims (1)

【特許請求の範囲】[Claims] 受信側を指定するアドレス信号に同一内容の2つのデー
タ信号を付加して送信側から受信側に伝送し、受信側に
おいて、送信側からの前記アドレス信号の内容が自己の
アドレスと一致し、且つ前記2つのデータ信号を相互に
比較して一致した場合に限ル前記データ信号の内容を採
用することを特徴とするデータ伝送方式。
Two data signals with the same content are added to an address signal specifying the receiving side and transmitted from the sending side to the receiving side, and on the receiving side, the content of the address signal from the sending side matches its own address, and A data transmission method characterized in that the two data signals are compared with each other and the content of the data signal is adopted only when they match.
JP19621483A 1983-10-21 1983-10-21 Data transmission system Pending JPS6089145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19621483A JPS6089145A (en) 1983-10-21 1983-10-21 Data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19621483A JPS6089145A (en) 1983-10-21 1983-10-21 Data transmission system

Publications (1)

Publication Number Publication Date
JPS6089145A true JPS6089145A (en) 1985-05-20

Family

ID=16354100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19621483A Pending JPS6089145A (en) 1983-10-21 1983-10-21 Data transmission system

Country Status (1)

Country Link
JP (1) JPS6089145A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5224419A (en) * 1975-08-20 1977-02-23 Nec Home Electronics Ltd Dynam ic convergence device
JPS551072U (en) * 1979-04-26 1980-01-07
JPS5535025A (en) * 1978-09-05 1980-03-11 Akira Oota Liquid remedy for dermatophytosis and its preparation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5224419A (en) * 1975-08-20 1977-02-23 Nec Home Electronics Ltd Dynam ic convergence device
JPS5535025A (en) * 1978-09-05 1980-03-11 Akira Oota Liquid remedy for dermatophytosis and its preparation
JPS551072U (en) * 1979-04-26 1980-01-07

Similar Documents

Publication Publication Date Title
US3648256A (en) Communications link for computers
US4009469A (en) Loop communications system with method and apparatus for switch to secondary loop
US5411536A (en) Method and apparatus for communicating data between medical devices to improve detectability of errors
US3652993A (en) Rapid polling method for digital communications network
US3836956A (en) Method and apparatus for decoding biphase signals
JP2019083007A (en) Sensor and method for serial transmission of sensor data
US4347609A (en) Method and system for transmission of serial data
JPS63296425A (en) Communication system
JPS6089145A (en) Data transmission system
KR100284992B1 (en) Data transfer devices and terminal units used in these devices
JPH0560133B2 (en)
JPS60127850A (en) Detecting system of digital data
EP0657046B1 (en) Fault tolerant three port communications module
JPS61136135A (en) Detecting circuit for external bus error
JPH0315788A (en) Mode c code correlation processing system
JPH02180444A (en) Transfer data deciding circuit
JPH02301339A (en) Bus type information transmitter
SU1644169A1 (en) Interruptions processing system controller
JPH0211040A (en) Trouble diagnostic method for loop-shaped data transmission system
JPS62147556A (en) Bus error detecting circuit
JPH06296292A (en) Wiring saving transmission equipment
JPH0714233B2 (en) Autopilot
JPH0324601A (en) Control method
JP2002255034A (en) Electronic interlocking device
JPS59140730A (en) Indoor wiring signal superposing and carrying device