JP2692255B2 - Multi-drop communication method - Google Patents

Multi-drop communication method

Info

Publication number
JP2692255B2
JP2692255B2 JP1103033A JP10303389A JP2692255B2 JP 2692255 B2 JP2692255 B2 JP 2692255B2 JP 1103033 A JP1103033 A JP 1103033A JP 10303389 A JP10303389 A JP 10303389A JP 2692255 B2 JP2692255 B2 JP 2692255B2
Authority
JP
Japan
Prior art keywords
character
break
mpu
character sequence
station
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
JP1103033A
Other languages
Japanese (ja)
Other versions
JPH02281844A (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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP1103033A priority Critical patent/JP2692255B2/en
Publication of JPH02281844A publication Critical patent/JPH02281844A/en
Application granted granted Critical
Publication of JP2692255B2 publication Critical patent/JP2692255B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は非同期方式のマルチドロップデータ通信方式
に関する。
The present invention relates to an asynchronous multi-drop data communication system.

〔従来の技術〕[Conventional technology]

第3図に示すような主局と複数の従局が接続されるマ
ルチドロップ通信において、主局が特定の従局と通信を
行なう場合、まずその従局番号を含むキャラクタシーケ
ンスを送信し、主局と該従局との間でデータリンクを確
立してからデータの送受信を実行する。
In multi-drop communication in which a master station and a plurality of slave stations are connected as shown in FIG. 3, when the master station communicates with a specific slave station, first, a character sequence including the slave station number is transmitted, and the master station and the master station are connected. After establishing a data link with a slave station, data transmission / reception is executed.

この際、該従局は応答シーケンスを返送するが他の従
局は自局宛で無いことを認識し、受信したキャラクタシ
ーケンスを破棄する。
At this time, the slave station returns the response sequence, but the other slave stations recognize that they are not addressed to themselves and discard the received character sequence.

以後、主局と該従局との間のキャラクタ送受信が実行
されるが、他の従局はこれらの受信データを全て破棄し
続けていた。
After that, character transmission / reception between the master station and the slave station is executed, but other slave stations continue to discard all the received data.

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

上述した従来の方法では、実際にデータの送受信の必
要が無い他の従局も不要なキャラクタシーケンスを受信
し、破棄し続けることとなり従局のMPU(マイクロプロ
セッサ)は、そのための処理を継続的に実行する必要が
あった。
In the conventional method described above, other slave stations that do not actually need to send and receive data also receive and discard the unnecessary character sequences, and the slave station MPU (microprocessor) continuously executes the processing for that purpose. Had to do.

このため、従局のMPUが他の処理を並行して実行する
場合その処理能力が低下しシステムの性能が低下すると
いった欠点があり、場合によっては通信専用のMPUが必
要となっていた。
Therefore, when the slave MPU executes other processing in parallel, there is a drawback that the processing capacity of the slave station decreases and the performance of the system deteriorates. In some cases, a communication dedicated MPU is required.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は上述の欠点を解決するためになされたもの
で、主局にはキャラクタシーケンス及びブレークキャラ
クタの送信手段を備え、従局にはキャラクタシーケンス
及びブレークキャラクタの受信手段とキャラクタシーケ
ンスの受信を禁止する手段とを備え、従局はブレークキ
ャラクタ受信後のみキャラクタシーケンスを受信可能と
し、それが自局宛でない場合には以後のキャラクタシー
ケンスの受信を禁止し、主局と該従局とのデータ通信の
間、自局宛でないキャラクタを受信しないようにしたも
のである。
The present invention has been made to solve the above-mentioned drawbacks, in which a master station is provided with a character sequence and break character transmission means, and a slave station is prohibited from receiving character sequence and break character and character sequence reception. Means, the slave station can receive the character sequence only after receiving the break character, and if it is not addressed to itself, the subsequent character sequence reception is prohibited, during data communication between the master station and the slave station, It is designed so that characters not addressed to itself are not received.

〔作用〕[Action]

上記手段によりマルチドロップ方式の通信において、
データ送受信に関係無い他の従局のMPUは不要のキャラ
クタ処理を実行する必要が無くなり、MPUが実行すべき
他の並行処理の処理能力の低下を防止することができ
る。
In the communication of the multi-drop method by the above means,
It is not necessary for the MPUs of other slave stations that are not related to data transmission / reception to execute unnecessary character processing, and it is possible to prevent a reduction in the processing capacity of other parallel processing that the MPU should execute.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は各従局内部のブロック図である。 FIG. 1 is a block diagram inside each slave station.

主局からのキャラクタシーケンス及びブレークキャラ
クタは通信ライン1を経由しトランシーバ2のレシーバ
21を通りUART3(通信制御装置)に送られる。受信キャ
ラクタがブレークキャラクタである場合にはブレークキ
ャラクタ検出部32で検出され、MPU5へブレーク割り込み
信号52を発生させる。MPU5は前記ブレーク割り込みを受
け、受信割り込み禁止信号53を許可レベルへ反転する。
ブレークキャラクタに続き主局より送信される従局番号
を含むキゃラクターシーケンスはUART3のキャラクタ受
信部31で受信され受信完了信号55はAND回路4を通過し
受信割り込み信号51となってMPU5に通知される。従局は
受信したキャラクタシーケンスが自局宛であるかどうか
を確認し、自局宛であった場合にはトランスミッタ22を
動作モードとする為に送信許可信号54を出力し、UART3
の送信部33から応答キャラクタシーケンスを送出する。
The character sequence and the break character from the main station pass through the communication line 1 and the receiver of the transceiver 2
It is sent to UART3 (communication control device) through 21. When the received character is a break character, it is detected by the break character detection unit 32, and the break interrupt signal 52 is generated to the MPU 5. Upon receiving the break interrupt, the MPU 5 inverts the reception interrupt disable signal 53 to the enable level.
After the break character, the character sequence including the slave station number transmitted from the master station is received by the character receiver 31 of the UART3, the reception completion signal 55 passes through the AND circuit 4, and the reception interrupt signal 51 is notified to the MPU5. It The slave station confirms whether or not the received character sequence is addressed to itself, and if it is addressed to itself, outputs a transmission permission signal 54 to put the transmitter 22 into the operation mode, and the UART3
The response character sequence is transmitted from the transmission unit 33 of.

一方、受信キャラクタシーケンスが自局宛でなかった
場合にはMPUは受信割り込み禁止信号53を禁止レベルに
反転し、以後のキャラクタシーケンスの受信を禁止す
る。
On the other hand, when the received character sequence is not addressed to itself, the MPU inverts the reception interrupt prohibition signal 53 to the prohibition level and prohibits the reception of the subsequent character sequence.

第2図は前記シーケンスを実行する場合の主局及び各
従局の内部処理を示したフローチャートである。
FIG. 2 is a flowchart showing the internal processing of the master station and each slave station when the above sequence is executed.

まず主局はブレークキャラクタを送信し(201)、そ
の後データリンクを確立したい相手の従局番号を含むキ
ャラクタシーケンスを送信し(202)た後、自らは受信
待ちの状態(203)となる。
First, the master station transmits a break character (201), then transmits a character sequence including the slave station number of the other party with whom the data link is desired to be established (202), and then enters a reception waiting state (203).

従局からの応答が受信(204)され、データリンクが
確立されると、その後該従局との通信を実行する(20
5)。
When the response from the slave station is received (204) and the data link is established, the communication with the slave station is executed (20).
Five).

一方、従局ではブレークキャラクタの受信(206)の
後、受信割り込みを許可状態(207)とする。
On the other hand, in the slave station, after receiving the break character (206), the reception interrupt is enabled (207).

その後主局からのキャラクタシーケンスを受信する
(208)とその内容をチェックする(209)。
After that, the character sequence from the main station is received (208) and its contents are checked (209).

主局から指定する従局番号が自局宛でない場合は以後
の受信割り込みを禁止(213)し、処理を終了する。
When the slave station number designated by the master station is not addressed to itself, the subsequent reception interrupt is prohibited (213), and the processing is terminated.

また、自局宛である場合には必要な応答キャラクタシ
ーケンスを主局に送信(210)し、その後受信割り込み
を許可状態とする(211)。
If it is addressed to itself, the necessary response character sequence is transmitted to the main station (210), and then the reception interrupt is enabled (211).

以後は主局からのコマンドに従ってデータ通信を実行
する(212)。
After that, the data communication is executed according to the command from the master station (212).

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

以上述べたように本発明によれば、マルチドロップ方
式の通信において、データ送受信に関係無い他の従局の
MPUはブレーク割り込みの発生するデータリンク確立時
のみキャラクタ処理を実行すればよく、その他の不要の
キャラクタ処理を実行する必要が無くなるので、MPUが
実行すべき他の並行処理の処理能力の低下を防止するこ
とができ、並行処理の性能を大幅に向上させる事が出来
るという効果がある。
As described above, according to the present invention, in multi-drop communication, other slave stations irrelevant to data transmission / reception
The MPU only needs to execute the character processing when the data link is established when a break interrupt occurs, and it is not necessary to execute other unnecessary character processing, preventing a decrease in the processing capacity of other parallel processing that the MPU should execute. This has the effect that the performance of parallel processing can be greatly improved.

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

第1図は本発明の実施例で各従局側の内部のブロック
図、第2図は主局と従局の内部処理を示すフローチャー
ト、第3図は一般的なマルチドロップ通信方式の構成を
示す図である。
FIG. 1 is a block diagram of the inside of each slave station in an embodiment of the present invention, FIG. 2 is a flowchart showing the internal processing of the master station and slave stations, and FIG. 3 is a diagram showing the configuration of a general multi-drop communication system. Is.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】時系列に並んだ複数のキャラクタであるキ
ャラクタシーケンスを送信する手段と、そのキャラクタ
シーケンスの送信に先立ちデータリンクの確立を行う場
合に特別なビットパターンを持ち通常のデータとは区別
されるブレークキャラクタを送信する手段を有する主局
と、 前記ブレークキャラクタを含むキャラクタシーケンスを
受信する手段を有する複数の従局とからなり、1つの主
局と複数の従局との間で通信が行われる非同期方式のマ
ルチドロップ通信装置において、 前記各従局は、 MPUと、キャラクタ受信部と、ブレークキャラクタを検
出すると前記MPUに対しブレーク割り込み信号を発生す
るブレークキャラクタ検出部と、前記キャラクタ受信部
の出力を前記MPUに出力するか否か選択できるゲート回
路とを備え、 前記MPUが前記ブレーク割り込み信号を入力すると、前
記MPUが前記ゲート回路に受信割り込み禁止信号を許可
レベルへ反転することにより、ブレークキャラクタの受
信を検出すると、前記ブレークキャラクタに引き続く自
局宛のキャラクタシーケンスを受信した場合には以後の
キャラクタシーケンスを受けつけ、自局宛でないキャラ
クタシーケンスを受信した場合には以後のキャラクタシ
ーケンスの受け付けを禁止するようにしたことを特徴と
するマルチドロップ通信装置。
1. A means for transmitting a character sequence, which is a plurality of characters arranged in time series, and a normal data having a special bit pattern when establishing a data link prior to the transmission of the character sequence. A master station having means for transmitting a break character and a plurality of slave stations having means for receiving a character sequence including the break character, and communication is performed between one master station and a plurality of slave stations. In an asynchronous multi-drop communication device, each slave station outputs the MPU, a character receiver, a break character detector that generates a break interrupt signal to the MPU when a break character is detected, and the output of the character receiver. A gate circuit capable of selecting whether to output to the MPU, When the break interrupt signal is input, the MPU inverts the reception interrupt disable signal to the gate circuit to the enable level, and when the reception of the break character is detected, the character sequence for the own station following the break character is received. In this case, the multi-drop communication device is characterized in that it accepts a subsequent character sequence and prohibits the subsequent character sequence from being accepted when a character sequence not addressed to itself is received.
JP1103033A 1989-04-21 1989-04-21 Multi-drop communication method Expired - Lifetime JP2692255B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1103033A JP2692255B2 (en) 1989-04-21 1989-04-21 Multi-drop communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1103033A JP2692255B2 (en) 1989-04-21 1989-04-21 Multi-drop communication method

Publications (2)

Publication Number Publication Date
JPH02281844A JPH02281844A (en) 1990-11-19
JP2692255B2 true JP2692255B2 (en) 1997-12-17

Family

ID=14343348

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1103033A Expired - Lifetime JP2692255B2 (en) 1989-04-21 1989-04-21 Multi-drop communication method

Country Status (1)

Country Link
JP (1) JP2692255B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58130649A (en) * 1982-01-29 1983-08-04 Ricoh Co Ltd Data communication system
JPS58177053A (en) * 1982-04-09 1983-10-17 Mitsubishi Electric Corp Data communication system

Also Published As

Publication number Publication date
JPH02281844A (en) 1990-11-19

Similar Documents

Publication Publication Date Title
US5740174A (en) Method and apparatus for performing collision detection and arbitration within an expansion bus having multiple transmission repeater units
JPH01117445A (en) Intermodule data communication serial data bus
EP0634853A2 (en) Wireless communication network system
JPH01125652A (en) Data intermediation and collision detection for data bus
EP0196870B1 (en) Interface circuit for transmitting and receiving data
US4416008A (en) Dual loop type data highway system
JPS58119247A (en) Data communication system
JP2692255B2 (en) Multi-drop communication method
JPS62107543A (en) Radio communication equipment
GB2324688A (en) A modem in which bit rate is determined using the width of a start bit
GB1427545A (en) Checking the characteristics of an incoming signal
GB2101457A (en) Data communication system
JPH06232879A (en) Token detection control network
JPS59161956A (en) Transmission controller
JP2623816B2 (en) Signal transmission method
JP2985180B2 (en) Wireless communication device
JP2949118B1 (en) Encoder data output method for bus communication type encoder device
JPH0276339A (en) Transmission control system
JP2923992B2 (en) Access Channel Control Method for Demand Assignment Communication System
JPS6361356A (en) Serial data transfer device
JPS62175042A (en) Terminal system for data communication
JPS61240737A (en) Line control diagnostic system
JPH0484531A (en) Communication system for local network system
JPH0353642A (en) Asynchronous serial data transmitter and transmission system and transmission method for same
JPH04267644A (en) Radio transmitter-receiver by time division multiplex access system