JPH0828735B2 - Multiple data link - Google Patents

Multiple data link

Info

Publication number
JPH0828735B2
JPH0828735B2 JP63044100A JP4410088A JPH0828735B2 JP H0828735 B2 JPH0828735 B2 JP H0828735B2 JP 63044100 A JP63044100 A JP 63044100A JP 4410088 A JP4410088 A JP 4410088A JP H0828735 B2 JPH0828735 B2 JP H0828735B2
Authority
JP
Japan
Prior art keywords
data
error
code
circuit
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63044100A
Other languages
Japanese (ja)
Other versions
JPH01220546A (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.)
Komatsu Ltd
Original Assignee
Komatsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP63044100A priority Critical patent/JPH0828735B2/en
Priority to KR1019890701995A priority patent/KR900701112A/en
Priority to EP19890902830 priority patent/EP0367830A4/en
Priority to PCT/JP1989/000209 priority patent/WO1989008362A1/en
Priority to US07/434,694 priority patent/US5170338A/en
Publication of JPH01220546A publication Critical patent/JPH01220546A/en
Publication of JPH0828735B2 publication Critical patent/JPH0828735B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、各種産業機械やNC機械、無人搬送車、ロボ
ット等において数多く用いられる各種センサやアクチュ
エータを、制御用コントローラにある中央処理装置にて
集中管理する多重データリンクの誤出力抑制装置に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention provides various sensors and actuators used in various industrial machines, NC machines, automated guided vehicles, robots, etc., in a central processing unit in a controller for control. The present invention relates to an erroneous output suppressing device for a multiple data link that is centrally managed by using a single data link.

〔従来の技術〕[Conventional technology]

第8図に従来の多重データリンクの全体の構成を示
す。
FIG. 8 shows the overall structure of a conventional multiple data link.

すなわち第8図において、10は、制御用コントローラ
として対象機械を統括的に制御するマシンコントロー
ラ、2−1、2−2、2−3、…、2−nは同機械内の
各部に配設されたセンサまたはアクチュエータ、30は、
中央処理装置としてマシンコントローラ10に配設される
LAN(ローカルエリアネットワーク)コントローラ、4
−1、4−4、4−3、…、4−nは、複数のセンサま
たはアクチュエータ2−1〜2−n各々に対応して配さ
れて各種データ(センサデータまたはアクチュエータ制
御データ)を前記LANコントローラ30との間で中継処理
するLANコントローラであり、上述の如くこの多重デー
タリンクでは、中央処理装置としてのLANコントローラ3
0と周辺処理装置としてのLANコントローラ4−1〜4−
nとが環状に直列に接続される。
That is, in FIG. 8, 10 is a machine controller that integrally controls the target machine as a control controller, 2-1, 2-2, 2-3, ..., 2-n are provided in each part of the machine. Sensor or actuator, 30
Arranged in the machine controller 10 as a central processing unit
LAN (Local Area Network) controller, 4
-1, 4-4, 4-3, ..., 4-n are arranged corresponding to each of a plurality of sensors or actuators 2-1 to 2-n, and various data (sensor data or actuator control data) are described above. It is a LAN controller that performs relay processing with the LAN controller 30. As described above, in this multiple data link, the LAN controller 3 as a central processing unit is used.
0 and LAN controllers 4-1 to 4- as peripheral processing devices
and n are connected in series in a ring shape.

また、第9図は、こうした多重データリンクにおいて
各LANコントローラ30、4−1〜4−n間を伝送される
信号S0〜Snのプロトコルの一例を示すものである。
Further, FIG. 9 shows an example of a protocol of the signals S 0 to Sn transmitted between the LAN controllers 30 and 4-1 to 4-n in such a multiplex data link.

この例において、前記信号S0〜Snは、各センサからの
センサ出力を示すセンサデータまたは各アクチュエータ
の駆動態様を制御するための制御内容を示す制御データ
等の列からなるデータ列と、このデータ列の直前に配さ
れて複数ビットの所定の論理構造をもってデータ列の先
頭を指示するスタートコードと、前記データ列の直後に
配されて同様に複数ビット所定の論理構造(スタートコ
ードの論理構造とは異なる)をもって同データ列の末尾
を指示するストップコードと、各ポート間(各LANコン
トローラ間)でのエラー発生の有無検知用として前記LA
Nコントローラ4−1〜4−nの各々において各別に生
成されて前記ストップコードの直後に所定ビット数から
なるコード信号として付加されるエラーチェックコード
とをそれぞれ具えて構成されており、各LANコントロー
ラ30、4−1〜4−nにおいては、上記スタートコード
およびストップコードと検出に基づいてデータ(データ
列)の存在を知り、また前記エラーチェックコードの検
査に基づいてエラー発生の有無を知る。
In this example, the signals S 0 to Sn are a data string consisting of sensor data indicating sensor output from each sensor or a column of control data indicating control content for controlling the driving mode of each actuator, and this data. A start code, which is arranged immediately before the column and indicates the beginning of the data string with a predetermined logical structure of a plurality of bits, and a plurality of bits, which is arranged immediately after the data string and similarly has a predetermined logical structure (the logical structure of the start code, The stop code that indicates the end of the same data string and the above LA for detecting the occurrence of an error between each port (between each LAN controller)
Each of the N controllers 4-1 to 4-n is provided with an error check code which is individually generated and added immediately after the stop code as a code signal having a predetermined number of bits. In 30, 4-1 to 4-n, the existence of data (data string) is known based on the start code and the stop code and detection, and the presence or absence of an error is known based on the inspection of the error check code.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

こうした多重データリンクにおいては、その各LANコ
ントローラ4−1〜4−n間に伝送する信号として上記
のようなプロトコルを有する信号を採用することで、デ
ータの授受並びにエラーチェックについては確かに、こ
れを有効に達成することができるが、LANコントローラ
4−1〜4−nの内部でデータ列に1ビット抜けや、1
ビット付加という異常が起きても、その異常を検出する
能力がなく、誤ったデータ伝送が行われていた。
In such a multiplex data link, by adopting a signal having the above-mentioned protocol as a signal transmitted between the respective LAN controllers 4-1 to 4-n, it is sure that this will be done for the data transfer and the error check. Can be effectively achieved, but within the LAN controllers 4-1 to 4-n, there is a 1-bit loss in the data string or 1
Even if an abnormality such as bit addition occurs, there is no ability to detect the abnormality and incorrect data transmission is performed.

本発明は上記の事情に鑑みなされたものであって、そ
の目的とするところは、周辺処理装置の内部でデータ列
のビット異常が生じた場合、このビット異常を検出し得
て誤ったデータ伝送を防止することができる多重データ
リンクを提供することができる。
The present invention has been made in view of the above circumstances, and an object of the present invention is to detect an abnormal bit when a bit abnormality of a data string occurs inside a peripheral processing device and to perform erroneous data transmission. It is possible to provide a multiple data link capable of preventing the above.

〔課題を解決するための手段〕 上記の目的を達成するために本発明は、複数のセンサ
またはアクチュエータのデータを1つの中央処理装置と
の間で通信してこれを集中管理するにあたり、前記複数
のセンサまたはアクチュエータの各々に対応して、エラ
ー発生の有無をチェックするために前記データとともに
伝送されるエラーチェックコードを少なくとも具えた信
号の入力に伴ないこのエラーチェックコードの内容を検
査してエラー発生の有無を監視しつつ各データの各対応
するセンサまたはアクチュエータとの間での授受並びに
前記信号の出力を行う周辺処理装置を設け、前記中央処
理装置を介してこれら周辺処理装置を接続した多重デー
タリンクで、かつ前記周辺処理装置の各々に、データ列
のビット数が正常か否かをチェックし、データ列にビッ
ト異常を検出したら伝送データにエラーコードを付加す
る手段を設けた多重データリンクのエラーチェック方式
において、前記データ列のビット数を複ビット化すると
ともに、データ列とストップコードのビット数が偶数か
否かをチェックするデータ列長検査回路を設けた構成と
なっている。
[Means for Solving the Problems] In order to achieve the above-mentioned object, the present invention provides a method of communicating data of a plurality of sensors or actuators with one central processing unit and centrally managing the data. In response to each sensor or actuator of the above, the contents of this error check code are inspected with the input of a signal having at least an error check code transmitted together with the above-mentioned data in order to check whether or not an error has occurred. A peripheral processing unit that transmits and receives each data to and from each corresponding sensor or actuator and outputs the signal while monitoring the presence or absence of occurrence is provided, and these peripheral processing units are connected via the central processing unit. In the data link and for each of the peripheral processing devices, check whether the number of bits of the data string is normal, and In the error check method of the multiple data link provided with means for adding an error code to the transmission data when a bit abnormality is detected in the data string, the number of bits of the data string is doubled and the number of bits of the data string and stop code Is provided with a data string length inspection circuit for checking whether or not is even.

〔作 用〕[Work]

データ列のビット数が正常か否かをチェックしデータ
列にビット異常を検出したら伝送データにエラーコード
が付加される。そしてこのとき、正常の場合にはデータ
列はかならず偶数ビットとして伝送され、データ列長検
査回路では受信した信号のうち、データ列+ストップコ
ードのビット数が偶数個になっているか否かがチェック
され、データ列に1ビット抜けや、付加という異常が検
知される。
It is checked whether the number of bits of the data string is normal, and if a bit abnormality is detected in the data string, an error code is added to the transmission data. At this time, if it is normal, the data string is always transmitted as even bits, and the data string length inspection circuit checks whether or not the number of bits of the data string + stop code is even among the received signals. Then, an abnormality of one bit missing or addition in the data string is detected.

〔実 施 例〕〔Example〕

以下、本発明の実施例を第1図乃至第7図に基づいて
説明する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 7.

第1図乃至第3図に示すものは本出願人が、特願昭62
−248881号において提唱した多重データリンクである。
そして第1図は、データリンクとして先の第8図に示し
た構成のものを前提として、その各周辺処理装置として
のLANコントローラ4−1〜4−nの具体構成例を示し
たものである。
What is shown in FIG. 1 to FIG.
It is a multiple data link proposed in -248881.
Then, FIG. 1 shows an example of a specific configuration of LAN controllers 4-1 to 4-n as respective peripheral processing devices on the premise of the configuration shown in FIG. 8 as a data link. .

勿論、これらLANコントローラ4−1〜4−nは全て
同一の構成を有する。
Of course, these LAN controllers 4-1 to 4-n all have the same configuration.

そして、LANコントローラ4−1〜4−nは、各々中
央のLANコントローラ30若しくは前段のLANコントローラ
から伝送される信号を受信してこれを所要に復調する受
信回路401と、この受信復調された信号から所定の理論
構造をもってデータ列の先頭を示す前記スタートコード
を検出するスタートコード検出回路402と、同受信復調
された信号から更に所定の論理構造をもってデータ列の
末尾を示す前記ストップコードを検出するストップコー
ド検出回路403と、同受信復調信号のうちの前記エラー
チェックコード(エラーの有無を検索するためのコード
として前段LANコントローラの後述するエラーチェック
コード生成回路407を通じて生成出力される)に基づい
て前段(前ポート)の自段(自ポート)間でのエラー発
生の有無を検査するエラーチェック回路404と、同受信
復調信号にエラーの発生を通知するためのエラーコード
(エラー発生の検知に基づき前段LANコントローラの後
述するエラーコード付加回路408を通じて生成付加され
る)が付加されているか否か監視して付加されている場
合にこの旨検出するエラーコード検出回路405と、エラ
ーチェックコード検査回路404、エラーコード検出回路4
05の各々の出力側に入力部が接続されたオア回路ORと、
前記受信復調信号(正確にはこのうちのデータ列)とセ
ンサまたはアクチュエータ2−1〜2−nとの間でのデ
ータ変換を行う回路であって、これがセンサである場合
には、各対応するセンサのセンサ出力に基づいて自段の
転送すべきセンサデータを生成出力し、またこれがアク
チュエータである場合には、各対応するアクチュエータ
に対する制御データに基づいてこれを駆動するための駆
動信号を生成出力するデータ変換回路406と、同受信復
調信号に基づいて新たにエラーチェックコードを生成出
力するエラーチェックコード生成回路407と、同受信復
調信号のこのエラーチェックコード生成回路407への入
力を開閉制御する第1スイッチ回路SW1と、エラーコー
ドの生成を行い必要に応じて(後述する第2スイッチ回
路SW2による選択に応じて)これを受信復調信号に付加
するエラーコード付加回路408と、前記受信復調信号
(データ変換回路406を通じてデータが付加される場合
はこれも含む)および、前記エラーチェックコード生成
回路407から生成出力される信号(エラーチェックコー
ド)および前記エラーコード付加回路408から出力され
る信号(エラーコード)のうちのいずれかを経時的に選
択出力する第2スイッチ回路SW2と、この第2スイッチ
回路SW2から選択出力される信号を所要に変調してこれ
を次段LANコントローラ若しくは中央LANコントローラ3
へ送出する送信回路409とを具えて構成されている。
The LAN controllers 4-1 to 4-n each receive a signal transmitted from the central LAN controller 30 or the LAN controller in the preceding stage and demodulate the signal as required, and the reception demodulated signal. From the start code detection circuit 402 for detecting the start code indicating the beginning of the data string with a predetermined theoretical structure, and the stop code indicating the end of the data string with a predetermined logical structure from the received and demodulated signal. Based on the stop code detection circuit 403 and the error check code of the reception demodulated signal (generated and output as an error check code generation circuit 407 of the preceding LAN controller as a code for searching for an error) Error check to inspect whether an error has occurred between the previous stage (previous port) and its own stage (local port) Whether or not an error code (which is generated and added through an error code adding circuit 408 of the preceding LAN controller based on the detection of the error occurrence) for notifying the occurrence of an error is added to the path 404 and the received demodulated signal. Error code detection circuit 405 that detects this when monitored and added, error check code inspection circuit 404, error code detection circuit 4
OR circuit OR whose input section is connected to each output side of 05,
A circuit for performing data conversion between the received demodulated signal (correctly, a data string of them) and the sensor or the actuators 2-1 to 2-n. Generates and outputs the sensor data to be transferred in its own stage based on the sensor output of the sensor, and when it is an actuator, generates and outputs the drive signal for driving it based on the control data for each corresponding actuator. A data conversion circuit 406, an error check code generation circuit 407 that newly generates and outputs an error check code based on the reception demodulation signal, and an input / output control of the reception demodulation signal to the error check code generation circuit 407. Generates an error code with the first switch circuit SW1 as necessary (depending on the selection by the second switch circuit SW2 described later) An error code adding circuit 408 for adding this to the received demodulated signal, the received demodulated signal (including this when data is added through the data conversion circuit 406), and the error check code generation circuit 407 are generated and output. A second switch circuit SW2 for selectively outputting either a signal (error check code) or a signal (error code) output from the error code adding circuit 408, and a selective output from the second switch circuit SW2. The required signal is modulated and this signal is transmitted to the next LAN controller or central LAN controller 3
And a transmitting circuit 409 for transmitting the signal to

第2図は、前記LANコントローラ4−1〜4−nのう
ちのLANコントローラ4−2を例にとってその動作例を
示したタイミングチャートであり、以下、これら各LAN
コントローラにて実行される信号処理動作を詳述する。
FIG. 2 is a timing chart showing an operation example of the LAN controller 4-2 among the LAN controllers 4-1 to 4-n.
The signal processing operation executed by the controller will be described in detail.

ここでは、LANコントローラ4−1とLANコントローラ
4−2との間における信号伝送に際してエラーが発生し
たことを想定する。
Here, it is assumed that an error has occurred during signal transmission between the LAN controller 4-1 and the LAN controller 4-2.

いま、前段LANコントローラ(LANコントローラ4−
1)から次段LANコントローラ(LANコントローラ4−
2)に対して第2図(a)に示す態様の信号伝送があ
り、これが受信回路401にて受信復調されたとすると、
スタートコード検出回路402では第2図(b)に示すタ
イミングにてこの受信信号のスタートコードを検出して
第1スイッチ回路SW1をオン(初期はオフとなってい
る)に切換制御する(第2図(g)参照)。これによ
り、エラーチェックコード生成回路407は、その入力さ
れる信号(主にデータ列)に基づいて次段LANコントロ
ーラ(LANコントローラ4−3)へ伝送すべきエラーチ
ェックコードの生成動作を開始する。
Now, the front LAN controller (LAN controller 4-
1) to the next LAN controller (LAN controller 4-
2), there is signal transmission in the mode shown in FIG. 2A, and if this is received and demodulated by the receiving circuit 401,
The start code detection circuit 402 detects the start code of this received signal at the timing shown in FIG. 2 (b) and controls the switching of the first switch circuit SW1 to ON (initially OFF) (second). (See FIG. (G)). As a result, the error check code generation circuit 407 starts an operation of generating an error check code to be transmitted to the next stage LAN controller (LAN controller 4-3) based on the input signal (mainly the data string).

なお、この時点においては、第2スイッチ回路SW2
が、第2図(h)に示すように初期状態である端子1入
力選択状態に維持されており、前記スタートコードやデ
ータ列は、第2スイッチ回路SW2を介してそのまま送信
回路409に加えられ、送信回路409を通じて信号S2として
次段のLANコントローラ4−3へ転送出力される(第2
図(h)および(i)参照)。
At this point, the second switch circuit SW2
However, as shown in FIG. 2 (h), the terminal 1 input selection state which is the initial state is maintained, and the start code and the data string are directly added to the transmission circuit 409 via the second switch circuit SW2. , Is transmitted and output as a signal S 2 to the LAN controller 4-3 at the next stage through the transmission circuit 409 (second
See figures (h) and (i)).

またこの間、データ変換回路406においては、各対応
するセンサまたはアクチュエータ2−2との間での上述
したデータ変換(データ生成)動作を実行する。
During this period, the data conversion circuit 406 executes the above-described data conversion (data generation) operation with each corresponding sensor or actuator 2-2.

こうして伝送された信号は、次に第2図(c)に示す
タイミングにてそのストップコードが検出される。
The stop code of the signal thus transmitted is then detected at the timing shown in FIG. 2 (c).

ストップコード検出回路403では、こうしてストップ
コードを検出すると、第1スイッチ回路SW1を初期状態
のオフ、そして第2スイッチ回路SW2を端子2入力選択
状態にそれぞれ切換制御する(第2図(c),(g)お
よび(h)参照)。
When the stop code is detected in this way, the stop code detection circuit 403 controls switching of the first switch circuit SW1 to the initial state of OFF and the second switch circuit SW2 to the terminal 2 input selected state (FIG. 2 (c), (See (g) and (h)).

こうした第2スイッチ回路SW2の切換に応じて、第2
スイッチ回路SW2からは、上記検出済みのストップコー
ドに引き続き、エラーチェックコード生成回路407にて
新たに生成されたエラーチェックコードが選択出力さ
れ、送信回路409を通じて転送される(第2図(i)参
照)。
In response to such switching of the second switch circuit SW2, the second switch circuit SW2
Following the detected stop code, an error check code newly generated by the error check code generation circuit 407 is selectively output from the switch circuit SW2 and transferred through the transmission circuit 409 (FIG. 2 (i)). reference).

またこれと並行して、エラーチェック回路404では、
前段のLANコントローラ4−1から転送されたエラーチ
ェックコード1についての検査を実行する。
In parallel with this, in the error check circuit 404,
The inspection for the error check code 1 transferred from the LAN controller 4-1 in the preceding stage is executed.

この結果、データエラーが発生していなければ、この
エラーチェック回路404からは何らの信号も出力されな
いが、ここで想定するように、このエラーチェックコー
ド1によってエラーの発生が確認される場合には、この
確認と同時に、短時間ではあるが論理“1"レベルとなる
エラー検知信号がエラーチェック回路404から出力され
る(第2図(d)参照)。したがって、この間(エラー
検知信号が出力されている間)、オア回路ORの出力も論
理“1"レベルとなる。
As a result, if no data error has occurred, no signal is output from the error check circuit 404. However, as assumed here, when the error check code 1 confirms the occurrence of an error, Simultaneously with this confirmation, an error detection signal which becomes a logic "1" level for a short time is output from the error check circuit 404 (see FIG. 2 (d)). Therefore, during this period (while the error detection signal is being output), the output of the OR circuit OR is also at the logical "1" level.

このオア回路ORの出力は、前記エラーチェックコード
生成回路407から、自ら生成したエラーチェックコード
の出力の完了に伴なって発せられるエラーチェックコー
ド送信完了信号(第2図(i)および(e)参照)とと
もに、第2スイッチ回路SW2に加えられる。
The output of the OR circuit OR is an error check code transmission completion signal (FIG. 2 (i) and (e)) issued from the error check code generation circuit 407 upon completion of output of the error check code generated by itself. (Refer to FIG. 3), and is added to the second switch circuit SW2.

第2スイッチ回路SW2は、エラーチェックコード生成
回路407からその生成コードの送信完了信号が加えられ
ることを条件に、オア回路ORから加えられる信号の論理
レベルに応じて、これが論理“0"レベルであれば初期状
態の端子1入力選択状態に、ここでの例のように論理
“1"レベルであれば端子3入力選択状態にそれぞれ切換
制御されるスイッチ回路である。したがって、この場
合、前記エラーチェックコード送信完了信号が発せられ
ると同時に、この第2スイッチ回路SW2が端子3入力選
択状態となり、送信回路409を通じて転送出力される信
号には、エラーチェックコード生成回路407にて生成出
力されたエラーチェックコード(エラーチェックコード
2)に引き続き、エラーコード付加回路408から出力さ
れるエラーコードが付加されることとなる(第2図
(h)およひび(i)参照)。
The second switch circuit SW2 is set to the logic "0" level according to the logic level of the signal added from the OR circuit OR, on condition that the transmission completion signal of the generated code is added from the error check code generation circuit 407. If so, the switch circuit is controlled to switch to the terminal 1 input selection state in the initial state, and to switch to the terminal 3 input selection state if the logic "1" level as in this example. Therefore, in this case, at the same time when the error check code transmission completion signal is issued, the second switch circuit SW2 enters the terminal 3 input selected state, and the signal transferred and output through the transmission circuit 409 includes the error check code generation circuit 407. The error code output from the error code adding circuit 408 is added to the error check code (error check code 2) generated and output in (see FIG. 2 (h) and (i)). ).

この後、前記エラーコード付加回路408では、エラー
コードの付加を完了すると、第2スイッチ回路SW2に対
してエラーコード付加完了信号を発して(第2図(i)
および(f)参照)、第2スイッチ回路SW2を初期状態
の端子1入力選択状態とする(第2図(h)参照)。
After that, when the error code addition circuit 408 completes the addition of the error code, it issues an error code addition completion signal to the second switch circuit SW2 (FIG. 2 (i)).
And (f)), the second switch circuit SW2 is set to the terminal 1 input selection state in the initial state (see FIG. 2 (h)).

LANコントローラ4−2の以上の動作によって、このL
ANコントローラ4−2から次段のLANコントローラ4−
3へ転送出力される信号S2には、エラー発生状態である
ことを通知するエラーコードが付加される。そしてLAN
コントローラ4−3以降では、各々そのエラーコード検
出回路405を通じて上記付加されたエラーコードを検出
し、この検出に基づいてエラーチェックコード送信完了
信号が発せられたときのオア回路ORの出力を上記同様論
理“1"レベルとする。これによりLANコントローラ4−
3以降の全てのLANコントローラからも、エラーコード
の付加された信号が転送出力されることとなる。
With the above operation of the LAN controller 4-2, this L
AN controller 4-2 to the next LAN controller 4-
An error code for notifying that an error has occurred is added to the signal S 2 transferred and output to the signal No. 3. And LAN
In the controller 4-3 and thereafter, the added error code is detected through the error code detection circuit 405, and the output of the OR circuit OR when the error check code transmission completion signal is issued based on this detection is the same as the above. Set to logical "1" level. With this, LAN controller 4-
Signals to which error codes have been added are also transferred and output from all LAN controllers 3 and later.

第3図は、こうして各LANコントローラ間を伝送され
る信号S0,S1,S2…Snの上記想定(LANコントローラ4−
1とLANコントローラ4−2との間でエラーが発生)に
基づくプロトコルを総括して示したものであり、LANコ
ントローラ4−1〜4−nの各々において上述した動作
が繰り返し実行されることにより、前記中央のLANコン
トローラ30からの第3図(a)に示す形態を有するとす
る信号S0の送出に応じて、これらLANコントローラ4−
1〜4−nからは、それぞれ第3図(b),(c),
(d)および(e)に示す形態を有してその各々の信号
S1,S2,S3…Snが送出されるようになる。
FIG. 3 shows the above assumption of the signals S 0 , S 1 , S 2 ... Sn transmitted between the LAN controllers (LAN controller 4-
1 and an error occurs between the LAN controller 4-2) and a protocol based on the above. The above-described operations are repeatedly executed in each of the LAN controllers 4-1 to 4-n. In response to the transmission of the signal S 0 from the central LAN controller 30 having the form shown in FIG.
From 1 to 4-n, FIG. 3 (b), (c),
(D) and (e) have the form and their respective signals
S 1 , S 2 , S 3 ... Sn will be transmitted.

そして、最後のLANコントローラ4−nからの出力信
号とSnのみが中央のLANコントローラ30に取り込まれ
る。マシンコントローラ10では、このLANコントローラ3
0に取り込まれる信号Snに付加されたエラーコードに基
づいて該データリンク内にエラーが発生したことを認知
する。
Then, only the last output signal from the LAN controller 4-n and Sn are taken into the central LAN controller 30. In machine controller 10, this LAN controller 3
It is recognized that an error has occurred in the data link based on the error code added to the signal Sn taken in by 0.

このように、各LANコントローラ間で時間遅れを持た
せることなく信号S0〜Snを伝送する場合であっても、す
なわち第3図に示すプロトコルに付記した時刻T00〜Tn3
についていえばこれらが T00=T11=T21=T31=Tn1 といった関係に設定される場合であっても、中央のLAN
コントローラ30を含む全てのLANコントローラに対して
有効にエラー通知を行なうことができる。
As described above, even when the signals S 0 to Sn are transmitted without a time delay between the LAN controllers, that is, the times T 00 to Tn 3 added to the protocol shown in FIG.
For example, even if these are set in the relationship of T 00 = T 11 = T 21 = T 31 = Tn 1 , the central LAN
It is possible to effectively notify the error to all LAN controllers including the controller 30.

なお、より一般的には、上記時刻について、T11
T01、T21<T12、T31<T22…といった関係が少なくとも
維持される場合にこの実施例によるエラー通知手法は有
効である。
Note that, more generally, T 11 <
The error notification method according to this embodiment is effective when at least the relationship of T 01 , T 21 <T 12 , T 31 <T 22, ... Is maintained.

ところで、上記の実施例によれば、中央のLANコント
ローラ30(マシンコントローラ10)は、LANコントロー
ラ4nから送信出力される信号Snに付加されたエラーコー
ドに基づいて当該データリンク内にエラーが発生したこ
とを知ることはできるものの、LANコントローラ4−1
〜4−nの内部でデータ列に1ビット抜けや、1ビット
付加という異常が起きてもその異常を摘出する能力はな
く、誤ったデータ伝送が行われる。
By the way, according to the above-described embodiment, the central LAN controller 30 (machine controller 10) has an error in the data link based on the error code added to the signal Sn transmitted and output from the LAN controller 4n. LAN controller 4-1 though I can know that
Even if an abnormality such as 1-bit omission or 1-bit addition occurs in the data string within 4 to 4-n, there is no ability to identify the abnormality, and erroneous data transmission is performed.

第4図乃至第7図は、上記の点に鑑みて、上記エラー
の発生箇所についてもこれを中央のLANコントローラ30
に有効に知らしめることができるようにした本発明に係
る多重データリンクを示すものである。
In view of the above points, FIGS. 4 to 7 show the LAN controller 30 at the center of the error occurrence location.
2 shows a multiple data link according to the present invention, which can be effectively notified to a user.

すなわち、この実施例において第4図に示すようにLA
Nコントローラ4−1〜4−n中に、受信した信号のう
ち、データ列+ストップコードのビット数が偶数個にな
っているかどうかをチェックするデータ列長検査回路41
0を組み入れたものであり、他の構成は第1図に示す多
重データリンクのものと同様である。そして、LANコン
トローラ4−n内の前記データ変換回路406でのデータ
列の変換は次のように行われる。
That is, in this embodiment, as shown in FIG.
In the N controllers 4-1 to 4-n, a data string length inspection circuit 41 for checking whether or not the number of bits of the data string + stop code is an even number among the received signals.
0 is incorporated, and the other structure is similar to that of the multiple data link shown in FIG. Then, the conversion of the data string in the data conversion circuit 406 in the LAN controller 4-n is performed as follows.

(1)出力用データ列の場合 第5図のプロトコルに示すようにLANコントローラ4
−n内では信号Sn−1と信号nとのデータ列を2ビット
削除することとする。そのデータを例えばLANコントロ
ーラ4−nで出力すべきデータとの対応を表1のように
する。
(1) Output data string LAN controller 4 as shown in the protocol of FIG.
In -n, 2 bits of the data string of the signal Sn-1 and the signal n are deleted. Table 1 shows the correspondence between the data and the data to be output by the LAN controller 4-n.

表1の関係は第1図中のLANコントローラ30が付加し
てくるものである。
The relationship shown in Table 1 is added by the LAN controller 30 shown in FIG.

(2)入力用データ列の場合 第6図のプロトコルに示すようにLANコントローラ4
−n内では信号Sn−1と信号nとのデータ列を2ビット
付加するものとする。LANコントローラnに入力されて
くる1ビットデータとデータ列に付加される2ビットデ
ータの関係は表2のようにする。
(2) In case of input data string LAN controller 4 as shown in the protocol of FIG.
In -n, 2 bits are added to the data sequence of the signal Sn-1 and the signal n. Table 2 shows the relationship between 1-bit data input to the LAN controller n and 2-bit data added to the data string.

表2の関係は前記データ変換回路406が行う。 The data conversion circuit 406 performs the relationship shown in Table 2.

各LANコントローラ4−1〜4−nでデータ列を第5
図、表1および第6図、表2のように変換することによ
り正常な場合にはデータ列はかならず偶数ビットとして
伝送される。
Each LAN controller 4-1 to 4-n sets the fifth data string.
By converting as shown in FIG. 1, Table 1, FIG. 6 and Table 2, in the normal case, the data string is always transmitted as an even bit.

そこで、第3図に示すプロトコル中データ列のストッ
プコードも例えば8ビットとして偶数個にしておけば、
前記データ列長検査回路410では受信した信号のうち、
データ列+ストップコードのビット数が偶数個になって
いるかどうかをチェックすることにより、LANコントロ
ーラ4−1〜4−nの内部で、データ列に1ビット抜け
や、1ビット付加という異常が起きても、その異常が検
知される。
Therefore, if the stop code of the data string in the protocol shown in FIG.
Of the signals received by the data string length inspection circuit 410,
By checking whether the number of bits of the data string + stop code is an even number, an error such as a missing 1 bit or an addition of 1 bit occurs in the LAN controller 4-1 to 4-n. However, the abnormality is detected.

なお、表1、表2においてデータの対応を1→10、0
→01と2ビット化したが、これは1例であり、(1→1
1、0→00)、(1→10、0→00)等種々考えることが
できる。
In addition, the correspondence of the data in Table 1 and Table 2 is 1 → 10, 0
→ 01 was converted to 2 bits, but this is an example, and (1 → 1
Various ideas such as (1, 0 → 00), (1 → 10, 0 → 00) can be considered.

また2ビット化以外にも(1→100、0→001)等3ビ
ット化してデータ列が3の倍数かどうかチェックしても
よいし、また、4ビット化して、偶数かどうか、4の倍
数かどうかをチェックするようにしてもよい。
In addition to 2-bit conversion, it may be converted into 3-bit data such as (1 → 100, 0 → 001) to check whether the data string is a multiple of 3, or 4-bit conversion to see whether it is an even multiple or a multiple of 4. You may check whether or not.

更に、第5図および第6図においてLANコントローラ
内でデータ列を削除したり、付加したりしたが、これは
本方式を応用するに当っての1例のプロトコルを示した
だけで、LANコントローラ4−n内で、データ列の削除
も付加もしないプロトコルへも同様に応用できる。この
プロトコルを第7図に示す。
Furthermore, the data string was deleted or added in the LAN controller in FIGS. 5 and 6, but this shows only one example of a protocol for applying this method. The same can be applied to a protocol in which data strings are neither deleted nor added within 4-n. This protocol is shown in FIG.

さらに本方式は第8図のようなループ状に接続された
もの以外に、第8図のSn部分が接続されていない、デジ
−チェーン状に接続されたものにも同様に適用できる。
Further, this system can be applied to not only those connected in a loop shape as shown in FIG. 8 but also those connected in a digital chain shape where the Sn portion in FIG. 8 is not connected.

また、本発明に係る多重データリンクにおいて、LAN
コントローラ4−1中のビット異常を検出するのに効果
が大であり、LANコントローラ4−1→LANコントローラ
4−2への伝送中に発生するビット異常はエラーチェッ
クコード検査回路でも検出することができる。
Also, in the multiple data link according to the present invention, LAN
The effect is great in detecting a bit abnormality in the controller 4-1, and a bit abnormality that occurs during transmission from the LAN controller 4-1 to the LAN controller 4-2 can also be detected by the error check code inspection circuit. it can.

〔発明の効果〕〔The invention's effect〕

以上詳述したように、本発明に係る多重データリンク
は、周辺処理装置の各々に、データ列のビット数が正常
か否かをチェックしデータ列にビット異常を検出したら
伝送データにエラーコードを付加する手段を設け、特
に、前記データ列のビット数を複数ビット化するととも
に、データ列とストップコードのビット数が偶数か否か
をチェックするデータ列長検査回路を設けたことによ
り、周辺処理装置の内部でデータ列に、例えば1ビット
抜けや1ビット付加という異常が生じた場合、このビッ
ト異常を検出し得て誤ったデータ伝送を防止することが
できる。そしてこのビット異常のチェックは、プレス用
等における数千点にも及び制御対象のものを、略同等に
信号伝送する必要がある場合においても、簡単に、かつ
正確に行うことができる。
As described above in detail, in the multiplex data link according to the present invention, each peripheral processing device checks whether the number of bits of the data string is normal, and if a bit abnormality is detected in the data string, an error code is transmitted to the transmission data. Peripheral processing is provided by providing means for adding, in particular, by providing a data string length inspection circuit for checking whether or not the number of bits of the data string and the stop code is even, while making the number of bits of the data string into a plurality of bits. When an abnormality such as a missing 1 bit or an addition of 1 bit occurs in the data string inside the device, this abnormal bit can be detected and erroneous data transmission can be prevented. Then, this bit abnormality check can be easily and accurately performed even when it is necessary to transmit the signals to the control target of several thousand points for press or the like substantially equally.

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

第1図は、本出願人が先に提唱した多重データリンクの
実施例において周辺処理装置を構成するLANコントロー
ラの具体構成例を示すブロック図、第2図は第1図に示
したLANコントローラの動作例を示すタイミングチャー
ト、第3図は同実施例において各LANコントローラ間を
伝送される信号のプロトコル例を示す略図、第4図は本
発明に係る多重データリンクのブロック図、第5図は出
力用データ信号のプロトコル例を示す略図、第6図は入
力用データ信号のプロトコル例を示す略図、第7図は信
号のプロトコル例を示す略図、第8図は本発明が適用さ
れる多重データリンクの構成を示すブロック図、第9図
は第8図に示した多重データリンクにおいての伝送信号
のプロトコルを示す略図である。 10……マシンコントローラ、21〜2n……センサまたはア
クチュエータ、30,4−1〜4−n……LANコントロー
ラ、401……受信回路、402……スタートコード検出回
路、403……ストップコード検出回路、404……エラーチ
ェック回路、405……エラーコード検出回路、406……デ
ータ変換回路、407……エラーチェックコード生成回
路、408……エラーコード付加回路、409……送信回路、
410……データ列長検査回路。
FIG. 1 is a block diagram showing a concrete configuration example of a LAN controller which constitutes a peripheral processing device in the embodiment of the multiple data link previously proposed by the applicant, and FIG. 2 is a block diagram showing the LAN controller shown in FIG. FIG. 3 is a timing chart showing an operation example, FIG. 3 is a schematic diagram showing a protocol example of a signal transmitted between LAN controllers in the embodiment, FIG. 4 is a block diagram of a multiple data link according to the present invention, and FIG. 6 is a schematic diagram showing a protocol example of an output data signal, FIG. 6 is a schematic diagram showing a protocol example of an input data signal, FIG. 7 is a schematic diagram showing a protocol example of a signal, and FIG. 8 is multiplex data to which the present invention is applied. FIG. 9 is a block diagram showing the structure of the link, and FIG. 9 is a schematic diagram showing a protocol of a transmission signal in the multiplex data link shown in FIG. 10 …… Machine controller, 2 1 to 2n …… Sensor or actuator, 30,4-1 to 4-n …… LAN controller, 401 …… Reception circuit, 402 …… Start code detection circuit, 403 …… Stop code detection Circuit, 404 ... Error check circuit, 405 ... Error code detection circuit, 406 ... Data conversion circuit, 407 ... Error check code generation circuit, 408 ... Error code addition circuit, 409 ... Transmission circuit,
410 …… Data string length inspection circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のセンサまたはアクチュエータのデー
タを1つの中央処理装置との間で通信してこれを集中管
理するにあたり、前記複数のセンサまたはアクチュエー
タの各々に対応して、エラー発生の有無をチェックする
ために前記データとともに伝送されるエラーチェックコ
ードを少なくとも具えた信号の入力に伴ないこのエラー
チェックコードの内容を検査してエラー発生の有無を監
視しつつ各データの各対応するセンサまたはアクチュエ
ータとの間での授受並びに前記信号の出力を行う周辺処
理装置を設け、前記中央処理装置を介してこれら周辺処
理装置を接続した多重データリンクで、かつ前記周辺処
理装置の各々に、データ列のビット数が正常か否かをチ
ェックし、データ列にビット異常を検出したら伝送デー
タにエラーコードを付加する手段を設けた多重データリ
ンクのエラーチェック方式において、 前記データ列のビット数を複ビット化するとともに、デ
ータ列とストップコードのビット数が偶数か否かをチェ
ックするデータ列長検査回路を設けたことを特徴とする
多重データリンク。
1. When data of a plurality of sensors or actuators is communicated with one central processing unit and is centrally managed, it is determined whether or not an error has occurred for each of the plurality of sensors or actuators. The sensor or actuator corresponding to each data is checked while checking the content of this error check code by inputting a signal having at least an error check code transmitted together with said data for checking and checking whether or not an error has occurred. A peripheral data processing unit for transmitting and receiving data to and from the peripheral device is provided, and a data string is provided to each of the peripheral data processing units by a multiple data link in which these peripheral data processing units are connected via the central processing unit. Check if the number of bits is normal, and if a bit error is detected in the data string, send an error code to the transmission data. In a multiple data link error check method provided with a means for adding, a data string length inspection circuit for checking whether or not the number of bits of the data string and the number of bits of the stop string are even, while making the number of bits of the data string double Multiple data link characterized by being provided.
JP63044100A 1988-02-29 1988-02-29 Multiple data link Expired - Lifetime JPH0828735B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP63044100A JPH0828735B2 (en) 1988-02-29 1988-02-29 Multiple data link
KR1019890701995A KR900701112A (en) 1988-02-29 1989-02-28 Serial control device and control method
EP19890902830 EP0367830A4 (en) 1988-02-29 1989-02-28 Series control unit and method of control
PCT/JP1989/000209 WO1989008362A1 (en) 1988-02-29 1989-02-28 Series control unit and method of control
US07/434,694 US5170338A (en) 1988-02-29 1989-02-28 Apparatus for carrying out serial control and method of controlling said apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63044100A JPH0828735B2 (en) 1988-02-29 1988-02-29 Multiple data link

Publications (2)

Publication Number Publication Date
JPH01220546A JPH01220546A (en) 1989-09-04
JPH0828735B2 true JPH0828735B2 (en) 1996-03-21

Family

ID=12682197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63044100A Expired - Lifetime JPH0828735B2 (en) 1988-02-29 1988-02-29 Multiple data link

Country Status (1)

Country Link
JP (1) JPH0828735B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57188159A (en) * 1981-05-15 1982-11-19 Nec Corp Error check system
JPS60160740A (en) * 1984-02-01 1985-08-22 Nec Corp Communication control equipment
JPS61224750A (en) * 1985-03-29 1986-10-06 Fujitsu Ltd System for informing detection of transmission line fault section
JPS62146042A (en) * 1985-12-20 1987-06-30 Nec Corp Data communication system

Also Published As

Publication number Publication date
JPH01220546A (en) 1989-09-04

Similar Documents

Publication Publication Date Title
US5105426A (en) Device for detecting the position of broken line in a series controller
EP0738059A2 (en) Method and apparatus for testing links between network switches
US5163056A (en) Apparatus for carrying out serial control
JPH0828735B2 (en) Multiple data link
JPH0445697A (en) Polling system
JPS62226271A (en) Automatic switching device for pos loop
EP0156654B1 (en) Control method for a half-duplex data transmission system
JPH0793614B2 (en) Series controller
JPS61295738A (en) Transmission controller
EP0390920B1 (en) Series controller
JPH01220549A (en) Detector for disconnection position of multiplex data link
JPH088581B2 (en) Multiple data link
JPH088579B2 (en) Series controller
JPH01136498A (en) Information transmitter for status monitor
JPH04306029A (en) Method for locating a fault device in simplex communication
JPH04273738A (en) Supervisory and controlling equipment
JPH0785561B2 (en) Series controller
JPH01220545A (en) Equipment for suppressing erroneous output of transmission data of multiplex data link
JPH03201845A (en) Abnormality generating position detector for serial controller
JPH0311701B2 (en)
JPS6225530A (en) Fault detector of loop data link system
JPS62102642A (en) Detecting method for fault position of network
JPS63314939A (en) Line abnormality detecting system
JPS63115434A (en) Error detecting system for multi-address calling
JPS63299625A (en) Data transfer system