JPS6262643A - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JPS6262643A
JPS6262643A JP20261185A JP20261185A JPS6262643A JP S6262643 A JPS6262643 A JP S6262643A JP 20261185 A JP20261185 A JP 20261185A JP 20261185 A JP20261185 A JP 20261185A JP S6262643 A JPS6262643 A JP S6262643A
Authority
JP
Japan
Prior art keywords
data
terminal
center device
computer
address
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.)
Granted
Application number
JP20261185A
Other languages
Japanese (ja)
Other versions
JPH0531978B2 (en
Inventor
Shigeru Hattori
滋 服部
Kikuo Kawasaki
川崎 紀久雄
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP20261185A priority Critical patent/JPS6262643A/en
Publication of JPS6262643A publication Critical patent/JPS6262643A/en
Publication of JPH0531978B2 publication Critical patent/JPH0531978B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To attain a data transmission between a host computer and a center equipment at high speed by adopting a bus coupling using a dual port RAM (common RAM) between a computer and the center equipment and providing a communication mail box and a private data memory in the common RAM. CONSTITUTION:The main box MB is transferred from the computer 41 to the center equipment 43 or vice versa, its content is analyzed and decoded. If a change requiring urgent communication takes place as to a Di data at the terminal 45 of an address an, the new Di data is transferred and set to the mail box MB, an interruption iNT signal is outputted and informed to the computer 41 to transmit a data between the computer 41 and the center equipment 43 at the high speed.

Description

【発明の詳細な説明】[Detailed description of the invention] 【発明の属する技術分野】[Technical field to which the invention pertains]

本発明は伝送の制御を行うセンタ装置(主局ともいう)
と、複数の端末装置(端末局または端末ともいう)と、
上位計算a (nLに計算機ともいう)とを備え、主局
と端末局間、もしくは端末局同土間でデータの授受を行
うとともに、主局と上位計算機間でデータの授受を行う
伝送システムにおいて、上位計算機と端末間のデータ授
受の緩急の要求に応じたデータ伝送を行うことができる
システムに関する。
The present invention is a center device (also referred to as a master station) that controls transmission.
, a plurality of terminal devices (also referred to as terminal stations or terminals),
In a transmission system that is equipped with a host computer a (also referred to as a computer in nL) and exchanges data between a main station and a terminal station or between the terminal station and the same dome, and also exchanges data between the main station and a host computer. The present invention relates to a system that can perform data transmission according to requests for speeding up data exchange between a host computer and a terminal.

【従来技術とその問題点】[Prior art and its problems]

以下各図の説明において同一の符号は同一または相当部
分を示す。本出願に最も近い従来技術としては、本出願
人による特願昭59−244251号「データ伝送シス
テム」 (以下出願(1)という)、特願昭59−24
4254号口データ伝送システム」 (以下出願(2)
という)、がある。これらの発明を適用した汎用多重信
号伝送装置(商品名:リモートターミナル)のように、
各所に散在する機器の集中監視・制御を行うために中央
の計算機(例えばパソコン)などに、散在機器から入力
データを集めたり、前記計算機から、散在機器に対する
制御出力を伝送したりする目的で、種々のデータ伝送装
置が作られている。 これらのデータ伝送システムは、一般にデータ伝送の交
信制御及び端末とのデータ授受を行うセンタ装置(主局
)と、複数の端末とを持っているのが一般的であるが、
端末からセンタ装置に集めたデータを計算機にどのよう
に伝送するか、あるいは、計算機が端末に出力させよう
と装備した制御出力データを、上記のセンタ装置を介し
て端末にどのように伝達すべきかという問題が生じてく
る。このため従来は、センタ装置に外部の上位計算機と
の通信用インターフェースを持たせ、このインターフェ
ースを介してセンタ装置と上位の計算機との間のデータ
伝送を行うのが一般的であった。このインターフェース
には汎用的なものとして、パソコンなどにも装備されて
いるR3232CやGPiBインターフェースが用いら
れている。 しかし、これらのインターフェースを用いても、どうし
ても通信用のプロトコル(制御手順)が必要であり、ま
た、データ交信時のエラー処理などの他に、上記手順を
実行するためのデータも付加されるため、計算機とセン
タ装置間のデータ伝送時間が遅くなってしまうという欠
点がある。このため、折角センタ装置が端末から高速に
データを収集しても、センタ装置から計算機側へのデー
タ到着時間が遅れてしまったり、計算機からの端末に対
する制御出力が、端末へ伝わる時間が遅れてしまうとい
う問題点がある。 これらを解決するためには、計算機内にあるバスを用い
て、センタ装置を結合すればデータの伝送スピードを高
速に実現できることが考えられる。 このハスは計算機がその内部のメモリあるいは人。 出力デバイスをコントロールするためのハスであるから
、基本的にコンピュータの動作スピードに合った形で、
データの交換が図れるので、便利であり、上記の問題点
つまり、伝送時間がかかり、データ伝送が遅くなるとい
う点が太き(改善される。 このハスを用いた方式には、例えばマルチパス(インテ
ル社の商標)のように、業界で標準的に利用されている
ものから、計算機側で独自に設計された方式も存在する
。 これらのハス結合の方式には色々な方式が存在するが、
この場合、計算機側からセンタ装置側へのアクセス、あ
るいは逆にセンタ装置側から計算機側へのアクセスの2
つのモードが存在する。またセンタ装置側には、端末か
らのデータを収集するタイミングがあり、計算機側には
プログラムの流れから決ってくるタイミングがあり、こ
れらは特に協調を取らなければぶつかり合うことになる
。 このため、多くのデータ伝送システムではこれらのタイ
ミングの制御と優先順位をどのように決定するかが重要
な問題になっている。 またこれらの交信制御の1つの方法としてデータ交換が
異常なく行えるようにデュアルポートRAMを用いて、
メールボックス方式で、データの交換を行うことが行わ
れる。このデュアルポートRAMは、計算機側のデータ
バス及びアドレスバス用のボートとセンタ装置側のデー
タバス及びアドレスバス用のボートを持ったRAM装置
であり、この装置にはさらに、そのいずれかのボートが
RAM装置に書き込み、あるいは読み出しをするための
バスコントロール回路が設けられている。 ところでデュアルポートRAMを用いて、データの交換
を行う方法には前述のようにメールボックス方式が用い
られているが、しかしながら、この方式でも、シリアル
伝送を行うのと同様に種々の情報を付加し、エラーや異
常対策を行うために、どうしても正味データの伝送時間
が遅くなるという問題点が残る。また、計算機からの端
末への制御出力の送出の方法にも、何個所か端末に定期
的にデータを伝送する場合と、1個所の端末に優先して
データを伝送し出力させたい場合が存在するので、この
ような色々なデータ伝送が効率よく行えることが望まれ
ている。
In the following description of each figure, the same reference numerals indicate the same or corresponding parts. The prior art closest to the present application is Japanese Patent Application No. 59-244251 "Data Transmission System" (hereinafter referred to as Application (1)) by the present applicant;
No. 4254 Data Transmission System” (hereinafter referred to as application (2)
). Like the general-purpose multiplex signal transmission device (product name: remote terminal) to which these inventions are applied,
For the purpose of collecting input data from scattered devices to a central computer (e.g., a personal computer) in order to perform centralized monitoring and control of devices scattered in various places, and transmitting control outputs to the scattered devices from the computer, Various data transmission devices have been made. These data transmission systems generally have a center device (main station) that controls communication for data transmission and exchanges data with terminals, and a plurality of terminals.
How should the data collected from the terminal to the center device be transmitted to the computer, or how should the control output data that the computer is equipped to output to the terminal be transmitted to the terminal via the above-mentioned center device? A problem arises. Conventionally, therefore, it has been common practice to provide a center device with a communication interface with an external host computer, and to perform data transmission between the center device and the host computer via this interface. As a general-purpose interface, the R3232C or GPiB interface, which is also installed in personal computers, is used. However, even if these interfaces are used, a communication protocol (control procedure) is still required, and in addition to error handling during data communication, data to execute the above procedure is also added. However, there is a drawback that the data transmission time between the computer and the center device becomes slow. For this reason, even if the center device collects data from the terminal at high speed, there may be a delay in the arrival time of the data from the center device to the computer side, or a delay in the time for control output from the computer to the terminal to be transmitted to the terminal. There is a problem with storing it away. In order to solve these problems, it is conceivable that data transmission speed can be increased by connecting a center device using a bus within a computer. This lotus is a computer with its internal memory or a person. Since it is a lotus for controlling output devices, it basically matches the operating speed of the computer.
It is convenient because data can be exchanged, and the above problem, that is, it takes time to transmit and the data transmission is slow, is improved. There are methods that are used as standard in the industry, such as Intel Corporation's trademark), as well as methods that are independently designed on the computer side.There are various methods for these hash combinations, but
In this case, there are two types of access: from the computer side to the center device side, or conversely from the center device side to the computer side.
There are two modes. In addition, the center device side has a timing for collecting data from terminals, and the computer side has a timing determined by the flow of the program, and these will conflict unless they cooperate. For this reason, in many data transmission systems, how to control these timings and determine priorities has become an important issue. In addition, as one method for controlling these communications, dual port RAM is used to ensure data exchange without abnormalities.
Data is exchanged using a mailbox method. This dual port RAM is a RAM device that has a port for the data bus and address bus on the computer side and a port for the data bus and address bus on the center device side, and this device also has one of the ports. A bus control circuit is provided for writing to or reading from the RAM device. By the way, as mentioned above, the mailbox method is used as a method for exchanging data using dual-port RAM, but even with this method, various information is added in the same way as with serial transmission. However, in order to take measures against errors and abnormalities, the problem remains that the net data transmission time inevitably becomes slower. Also, regarding the method of sending control output from a computer to a terminal, there are cases where data is periodically transmitted to several terminals, and cases where data should be transmitted and output with priority to one terminal. Therefore, it is desired that such various data transmissions can be carried out efficiently.

【発明の目的】[Purpose of the invention]

本発明は、前記の問題点を除去し、上位計算機とセンタ
装置間でのデータ伝送を高速に行うことができ、かつ、
上位計算機と多数の端末との間の順次かつ周期的な通常
時のデータ伝送(以下サイクリック交信という)、及び
ある指定された端末との間の緊急時のデータ伝送(以下
個別交信という)を効率的に行うことができるデータ伝
送システムを提供することを目的とする。
The present invention eliminates the above-mentioned problems, enables high-speed data transmission between a host computer and a center device, and
Sequential and periodic normal data transmission between a host computer and a large number of terminals (hereinafter referred to as cyclic communication), and emergency data transmission between a specified terminal (hereinafter referred to as individual communication). The purpose is to provide a data transmission system that can be carried out efficiently.

【発明の要点】[Key points of the invention]

本発明の要点は、上位計算機とセンタ装置とをデュアル
ポートRAMを用いてバス結合し、デュアルポートRA
M内に次の2つの領域、即ちその時々のデータ転送を優
先すべき端末のアドレス、Di、Doデータ、登録デー
タなどをサイクリ・ツク交信に優先する個別交信により
転送するためのメールボックス(領域)と、サイクリ・
ツク交信のために、全端末のアドレス別に配置されたD
i。 DOデータ格納用の専用データメモリ (領域)とを設
け、計算機側からはDOデータを書き込み。 Diデータを読み出し、センタ装置側からはDOデータ
の読み出し、Diデータの書き込みを可能とすることに
より、 前記のメールボックスを用いて当該アドレスの端末との
個別交信、及び前記専用データメモリを用いて、端末へ
のサイクリック交信をすることにより、優先順位を付し
たデータ伝送を効率よ〈実施しようとする点にある。 換言すれば本発明の要点は、センタ装置、センタ装置か
ら伝送路を介して結合された複数のアドレス別端末、セ
ンタ装置と共通RAM (コモンRA Mなど)を介し
て結合された上位計算機を備え、センタ装置は、データ
伝送の制御を行うと共に端末とデータ授受を行い、上位
計算機は、共通RAMに書込んだデータをセンタ装置を
介して端末に送信し、かつセンタ装置が端末から受信し
て共通RA Mに書込んだデータを読み取ることにより
端末とのデータ授受を行うようにしたデータ伝送システ
ムにおいて、 共通RAMに通常交信用(サイクリック交信用など)の
データ記憶領域(専用データメモリなど)と、緊急交信
用(個別交信用など)等に用いられるデータ記憶領域(
以下メールボックスという)とを設け、前記通常交信用
データ記憶領域は、各端末のアドレス毎に設けられ、か
つ上位計算機が端末と授及び受を行う(Doデータ及び
Diデータの)各データ領域を備えるように、また前記
メールボックスには、少くとも緊急交信に係る端末のア
ドレスと、上位計算機が当該端末に送信を行うデータ(
Doデータなど)とを記憶させるようにするとともに、 センタ装置は、前記通常交信用データ記憶領域を読み、
書きしつつ、各端末のアドレス又はこれに対応するアド
レス(ブロックアドレスなど)を所定の順序で繰り返し
指定して、データ授受を行い、かつ少くとも前記メール
ボックスを読み、該データ授受に優先して、当該緊急交
信に係るアドレスの端末を指定しデータ送信を行うよう
にした点にある。
The main point of the present invention is to connect a host computer and a center device via a bus using a dual port RAM.
There are two areas within M, namely, a mailbox (area) for transferring terminal addresses, Di, Do data, registration data, etc., which should be given priority to data transfer at any given time, through individual communication giving priority to cyclic communication. ) and cycle
D arranged by address of all terminals for Tsuk communication
i. A dedicated data memory (area) is provided for storing DO data, and DO data is written from the computer side. By reading the Di data and allowing the center device to read the DO data and write the Di data, it is possible to individually communicate with the terminal at the address using the mailbox and to use the dedicated data memory. The aim is to efficiently transmit prioritized data through cyclic communication with terminals. In other words, the main point of the present invention is to provide a system that includes a center device, a plurality of address-specific terminals connected from the center device via transmission paths, and a host computer connected to the center device via a common RAM (common RAM, etc.). , the center device controls data transmission and exchanges data with the terminal, and the host computer sends the data written in the common RAM to the terminal via the center device, and the center device receives the data from the terminal. In a data transmission system in which data is exchanged with a terminal by reading data written to a common RAM, a data storage area (dedicated data memory, etc.) for normal communication (such as cyclic communication) is provided in the common RAM. and data storage area used for emergency communications (individual communications, etc.)
(hereinafter referred to as a mailbox), and the data storage area for normal communication is provided for each address of each terminal, and each data area (Do data and Di data) that the host computer sends to and receives from the terminal. In addition, the mailbox should contain at least the address of the terminal related to emergency communication and the data (
Do data, etc.), and the center device reads the data storage area for normal communication,
While writing, repeatedly specify the address of each terminal or the corresponding address (block address, etc.) in a predetermined order to exchange data, read at least the mailbox, and give priority to the data exchange. , the data transmission is performed by specifying the terminal with the address related to the emergency communication.

【発明の実施例】[Embodiments of the invention]

以下第1図〜第4図に基づいて本発明の詳細な説明する
。第1図は本発明の一実施例としてのRAM割付図、第
2図は同じく、交信順序の説明図、第3図は同じく、デ
ータ伝送システムの構成図、第4図は、同じ(、デュア
ルポートRAMの構成図である。 第3図において、45(45−1,45−2・−)はア
ドレス別の端末、43はセンタ装置で、該装置43は、
端末45相互間又はセンタ装置43と端末45間のデー
タ伝送を制御すると共に、この伝送を介して端末45と
データの授受を行う。44はセンタ装置43と各端末4
5を結合する共通の伝送路、41はセンタ装置43とデ
ュアルポートRAM42を介してデータの授受を行う上
位計算機(単に計算機ともいう)である。また46は、
このシステムの外部から端末45に入力され、さらにセ
ンタ装置43を介し計算機41に送られるDiデータ、
47は、計算機41からセンタ装置43を介し端末45
に送られ、さらに端末45からこのシステムの外部に出
力されるDoデータである。 なおこの伝送路44の構成は、第3図ではマルチドロッ
プの形式で示されているが、これはループ状に接続され
ても良いので、その伝送路の形式は特に問うものではな
い。 次に第4図のデュアルポートRAM42において、同図
の左側は計算機41用のハスであり、右側はセンタ装置
43用のバスである。このデュアルポートRA M42
は、計算機41側とセンタ装置43側とに2つのボート
を持って、コモンRAM1にはいずれか一方から書込み
または読み出しが行われる。コモンRAMIは2にバイ
トのアドレス空間を所有しているので、アドレスバス2
.5.8はl1bitで構成されている。計算機41側
では所定の(例えば1Mバイトの)アドレス空間を持っ
ているので、12ビット以上のアドレス分はアドレスバ
ス12に与えられ、コモンRAMIがメモリアドレス的
に指定されたことをアドレスデコーダ11が検出すると
、デコーダ11からチップセレクト信号口がコモンRA
M選択回路10に向けて発生する。またこの例では8ビ
ツトのマイクロコンピュータを用いているので、データ
バス3,6.9は8ビツト分を示している。この図のよ
うに構成してコモンRAM選択回路10は、計算機41
側か又はセンタ装置43側かのいずれか一方のみが、コ
モンRAMIを使用できるように制御する。即ち選択回
路10は、いずれか一方がチップセレクトα])信号を
発生していれば、コモンRAMIの使用権を優先的に与
え、バスコントローラ4又は7に信号を与えるとともに
、コモンRAMIにも、チップセレクト(63)信号と
り一ド/ライト (WR/π下)信号13又は17が、
使用権を与えられたバス側から与えられるように制御す
る。またコモンRAM選択回路10は、計算機41側が
優先的にコモンRAMIを使用する時には、LOCK信
号15を選択回路10に与えると、センタ装置43側を
ウェイト状態にし、逆にセンタ装置43が選択回路10
にオーバライド信号19を与えれば、計算機41側をウ
ェイト状態にし、オーバライド信号19が無くなってか
ら計算機41に初めてコモンRAMIを使用させ、XA
CK信号14を計算機41に向は発生して、次のステッ
プに進むことができる。 また計算機41側とセンタ装置43例の相互の動きの連
絡のために、計算機41側からはシステムリセット信号
21が与えられ、センタ装置43側からは伝送すべきデ
ータが発生すると、割込用iNT信号16が与えられる
。 このように構成されたコモンRAMIのRAM割付図が
第1図である。コモンRAMIは2にバイトであり、(
a)のように、ここでは4つの領域に分割されている。 即ち上段2つのMB(MBI。 MB 2)が通信用メールボックス(単にメールボック
スともいう)、下段2つのMD (MDI、MD2)が
、それぞれDiデータ46.Doデータ47の記憶領域
としての専用データメモリである。(b)は専用データ
メモリMD内における端末45のアドレスa別の割付図
を示している。また(C)は後に詳述するメールボック
スMB内の割付図であり、MBFはフラグコントロール
データ、MBPはパラメータデータ、MBDはデータ域
である。 第2図はこのデータ伝送システムにおける交信順序を示
す。同図(a)は通常行われるサイクリック交信T1の
例である。即ち例えば、端末45のアドレスを、予め、
所定個数のアドレスからなる群(ただしこの群内での各
アドレスは予め順序付けされる)ごとに区分して、この
各群にブロックアドレスB(Bl〜B4)を割付け、セ
ンタ装置43が、ブロックアドレスB1〜B4を(Bl
−B2−B3−B4→B1 ・・−・・−のように)順
次指定することを周期的に繰返し、同図中の各ブロック
アドレス81〜B4で示した期間内に、さらに必要に応
じ当該ブロックに属する各端末のアドレスを順次指定し
ながら、当該端末にセンタ装置43からD0データ47
を与えたり、各端末45から順次Diデータをセンタ装
置43が受取ったり、また端末間の交信を行わせたりす
るものである。 また第2図(b)はサイクリック交信TI中に個別交信
T2を含む例であり、この例では、前記のサイクリック
交信TIの途中で、ある特定の、つまりこの例では計算
[41側からの指示により、アドレスa  (a4.a
m、an)の3つの端末45とセンタ装置43との交信
T2が、同図中の各端末アドレスan、am、anで示
した期間内に行われ、その後に再びサイクリック交信T
lに復帰している。これらの伝送制御についてはすでに
前記出願(1)で明らかにしているので、詳細な説明を
省略する。 第1図に戻って、同図(blに示した専用データメモリ
のDiデータ46.あるいはDOデータ47は、端末4
5のアドレスaの順に配置され、Diデータ46、即ち
センタ装置43が得た端末45の人力データは、第2図
に示したサイクリック交信TIで、センタ装置43によ
り、コモンRAMI内の専用データメモリMDIに書き
込まれ、計算i41によって必要な時に読み出される。 また計算機41によってコモンRAMIの専用データメ
モリMD2に書き込まれたDoデータ47は、センタ装
置43によって読み出され、第2図に示したサイクリッ
ク交信T1における端末出力用データに用いられる。こ
のように構成することによって、専用データメモリMD
内のDOデータ47あるいはDiデータ46は、計算機
41あるいはセンタ装置43により順序よく、制御する
たび、あるいはデータ受信されるごとにコモンRAMI
に書き込まれ、必要な時に引き出して使用するという、
極めて単純な動作、つまりデータ交換を短時間で実現す
ることができる。 しかしこのサイクリック交信TIの方式では、もしサイ
クリックの周期が長い場合には、DOデータ47をコモ
ンRAMIに書き込んでも、その周期中の当該データの
伝送タイミングにならなければ伝送できなかったり、あ
るいはDiデータ46の中で、あるデータが変化しても
、計算機41側でこれを検出するには、種々の操作をし
なければならず、検出が遅れるという欠点がある。 これらを補う方法として、第1図の通信用メールボック
スMB (MHI、MB2)を用いることができる。通
信用メールボックスMBとしてMBl、MB2の2つを
準備したのは、もし一方のメールボックスが受信処理中
であれば、他方に次のメールを書き込むことが可能であ
るようにするためである。 このメールボックスMBは、他に種々の方法で使用され
るが、個別交信T2 (第2図)においては、第1図(
C1のようにフラグコントロールデータMBF部には、
当該メールボックスの中のデータ域MBDにおけるデー
タ(便宜上主データという)の有/無、主データのデー
タ長、主データの内容の指定区分、当該メールボックス
を使用中であるか否か、メツセージの転送良否など、を
示すフラグやデータが格納される。次にパラメータデー
タMBPには、前記の主データ内容の指定区分について
、そのデータ形式の詳細を示すためのパラメータデータ
が格納される。またデータ域MBDには主データ、即ち
計算機41から端末45に緊急に送るDOデータ47と
当該端末のアドレス、又は端末45から計算機41に緊
急に送るDiデータ46(ただしこのデータ46は一旦
センタ装置43が前記のサイクリック交信T1等で端末
45から受取ったのち、センタ装置43によってメール
ボックスMBに転送される)と当該端末のアドレスが格
納される。 このようなメールボックスMBは計算機41−センタ装
置43、又はセンタ装置43−計算機41に転送されて
、その内容が分析されて解釈される。このようなメール
ボックスを用いることによって、例えばアドレスan、
am、anの端末に、それぞれのDoデータ47を伝送
するように計算機41からセンタ装置43に指示したり
、あるいはセンタ装置43が端末45から入手したD+
データ46(これはデータメモリMDIに格納される)
の中で、成るアドレスanの端末45で、Diデータ4
6について緊急連絡を要するような変化を生じた場合、
その新しいDiデータ46をメールボックスMBに転送
セソトして、第4図の割込用iNT信号16を出力し2
て計算機41に通知することにより、計算allとセン
タ装置43相互間で高速のデータ伝送が可能となる。 なお前述のようにセンタ装置43が計算機41からメー
ルボックスMBを介してアドレスal、am。 anの端末45向けのDoデータ47を受取ると、第2
図(b)のようにサイクリック交信T1を中断して、ア
ドレスall、am、anの端末45との各個別交信T
2を優先的に順次実行する。そしてこの個別交信T2終
了後にサイクリック交信T1に復帰する。 またこの個別交信T2を行うとともに、センタ装置43
は当該のDOデータ47を、コモンRAMI内の専用デ
ータメモリMDZ内の当該アドレス部に新たなりoデー
タとして更新格納し、次回からのサイクリック交信TI
に反映させる。 なお、前述の変化したDiデータ46の計算機41側へ
の伝送の詳細については、前記出願(2)に記載されて
いる。 さて一方、この通信用メールボックスMBを用いれば、
どのような制御やデータ伝送も可能ではあるが、第1図
(C1に示したように、種々のフラグコントロールデー
タやパラメータデータが付加されているので、このよう
なデータの解釈を行う必要があるために、第1図fa)
の専用データメモリMDI、MDZ内のDiデータ46
.Doデータ47を直接的にやりとりするのに比較する
と、データ伝送に時間がかかるという問題が存在する(
但しこの比較ではサイクリック交信で端末がその更新の
順番を待つ時間は除く)。 ある試算によれば、Diデータなどを専用データメモリ
MDIから直接読み出すのと、Diデータをメールボッ
クスMBを介して受信するのでは、後者の手順の例とし
て、計算機がコマンドをメールボックスに入れて、セン
タ装置側へ要求するコマンドを伝送し、次にセンタ装置
がDiデータをメールボックスに書き込み、これを計算
機で読み出す場合と、比較すると、10倍もの時間を必
要とする。このことは計算機側の処理能力がそれだけ低
下することになり、メールボックスMBを多用するごと
は好ましいことではない。 しかし1、前述のように、端末側の変化Diデータ46
の伝送とか、ある端末へ至急Doデータ47を出ツノし
たい時などでは、サイクリック交信の手順のみでは、最
終的なデータ伝送が遅れ、好ましくないので、メールボ
ックスを用いた方が合理的である。 またサイクリック交信された専用データメモ+JMDI
、MDZ内のD1データ46.Doデータ47は、端末
の動作状態を表示する時などには1.そのまま使用すれ
ば良いので、プログラム作成などが非常に簡4’l、に
なるというメリットも存在する。
The present invention will be described in detail below based on FIGS. 1 to 4. FIG. 1 is a RAM layout diagram as an embodiment of the present invention, FIG. 2 is an explanatory diagram of communication order, FIG. 3 is a configuration diagram of a data transmission system, and FIG. This is a configuration diagram of a port RAM. In FIG. 3, 45 (45-1, 45-2, -) is a terminal for each address, 43 is a center device, and the device 43 is
It controls data transmission between the terminals 45 or between the center device 43 and the terminal 45, and also exchanges data with the terminal 45 through this transmission. 44 is a center device 43 and each terminal 4
A common transmission path 41 connects the two terminals 5 and 41 is a host computer (also simply referred to as a computer) that exchanges data with the center device 43 via the dual port RAM 42. Also, 46 is
Di data inputted to the terminal 45 from outside this system and further sent to the computer 41 via the center device 43;
47 is from the computer 41 to the terminal 45 via the center device 43.
This is Do data that is sent to the terminal 45 and is further output from the terminal 45 to the outside of this system. Although the configuration of the transmission path 44 is shown in a multi-drop format in FIG. 3, it may be connected in a loop, so the format of the transmission path is not particularly important. Next, in the dual port RAM 42 shown in FIG. 4, the left side of the figure is a bus for the computer 41, and the right side is a bus for the center device 43. This dual port RAM M42
has two ports, one on the computer 41 side and one on the center device 43 side, and writing to or reading from the common RAM 1 is performed from either one. Common RAMI owns address space of 2 bytes, so address bus 2
.. 5.8 consists of l1 bit. Since the computer 41 side has a predetermined address space (for example, 1 Mbyte), addresses of 12 bits or more are given to the address bus 12, and the address decoder 11 detects that the common RAMI has been designated as a memory address. When detected, the chip select signal port from the decoder 11 is connected to the common RA.
The signal is generated toward the M selection circuit 10. Furthermore, since an 8-bit microcomputer is used in this example, data buses 3, 6.9 represent 8 bits. The common RAM selection circuit 10 configured as shown in this figure is connected to the computer 41.
Control is performed so that only either the side or the center device 43 side can use the common RAMI. That is, if either one of them is generating the chip select α]) signal, the selection circuit 10 gives the right to use the common RAMI preferentially, gives the signal to the bus controller 4 or 7, and also outputs the signal to the common RAMI. Chip select (63) signal read/write (WR/π lower) signal 13 or 17
Control is performed so that the right to use is granted from the bus side to which it has been granted. Further, when the computer 41 side preferentially uses the common RAM, the common RAM selection circuit 10 puts the center device 43 side in a wait state by applying the LOCK signal 15 to the selection circuit 10, and conversely, the center device 43 side uses the selection circuit 10
If you give override signal 19 to
A CK signal 14 is generated to the computer 41 and the process can proceed to the next step. In addition, in order to communicate mutual movements between the computer 41 side and the center device 43, the computer 41 side provides a system reset signal 21, and when data to be transmitted is generated from the center device 43 side, the interrupt iNT A signal 16 is provided. FIG. 1 is a RAM layout diagram of the common RAMI configured in this manner. Common RAMI is 2 bytes and (
As shown in a), it is divided into four areas here. That is, the upper two MBs (MBI, MB 2) are communication mailboxes (also simply referred to as mailboxes), and the lower two MDs (MDI, MD2) are Di data 46. This is a dedicated data memory as a storage area for Do data 47. (b) shows an allocation diagram for each address a of the terminal 45 in the dedicated data memory MD. Further, (C) is a layout diagram of the mailbox MB, which will be described in detail later, in which MBF is flag control data, MBP is parameter data, and MBD is a data area. FIG. 2 shows the communication order in this data transmission system. FIG. 5A shows an example of cyclic communication T1 that is normally performed. That is, for example, if the address of the terminal 45 is set in advance,
It is divided into groups consisting of a predetermined number of addresses (however, each address within this group is ordered in advance), and block addresses B (Bl to B4) are assigned to each group. B1 to B4 (Bl
-B2-B3-B4→B1 . While sequentially specifying the address of each terminal belonging to the block, the D0 data 47 is transmitted from the center device 43 to the terminal.
, the center device 43 receives Di data sequentially from each terminal 45, and allows communication between the terminals. In addition, FIG. 2(b) is an example in which the individual communication T2 is included in the cyclic communication TI. In this example, in the middle of the cyclic communication TI, a certain Address a (a4.a
Communication T2 between the three terminals 45 (m, an) and the center device 43 is performed within the period indicated by each terminal address an, am, an in the same figure, and then cyclic communication T2 is performed again.
It has returned to l. These transmission controls have already been disclosed in the above-mentioned application (1), so a detailed explanation will be omitted. Returning to FIG. 1, the Di data 46. or DO data 47 in the dedicated data memory shown in FIG.
The Di data 46, that is, the manual data of the terminal 45 obtained by the center device 43, is transferred to the dedicated data in the common RAMI by the center device 43 in the cyclic communication TI shown in FIG. It is written to the memory MDI and read out when required by calculation i41. Further, the Do data 47 written to the dedicated data memory MD2 of the common RAMI by the computer 41 is read out by the center device 43 and used as terminal output data in the cyclic communication T1 shown in FIG. With this configuration, the dedicated data memory MD
The DO data 47 or Di data 46 in
It is written in the memory and can be pulled out and used when necessary.
Extremely simple operations, that is, data exchange, can be realized in a short time. However, in this cyclic communication TI method, if the cyclic cycle is long, even if the DO data 47 is written to the common RAMI, it may not be transmitted until the transmission timing of the data in that cycle is reached. Even if certain data changes in the Di data 46, various operations must be performed in order to detect this change on the computer 41 side, which has the disadvantage that detection is delayed. As a method for supplementing these, the communication mailbox MB (MHI, MB2) shown in FIG. 1 can be used. The reason why two mailboxes MB1 and MB2 are prepared as communication mailboxes MB is so that if one mailbox is in the process of receiving, it is possible to write the next mail in the other mailbox. This mailbox MB is used in various other ways, but in individual communication T2 (Fig. 2), it is used in Fig. 1 (Fig. 1).
In the flag control data MBF section like C1,
The presence/absence of data (referred to as main data for convenience) in the data area MBD in the mailbox, the data length of the main data, the designated classification of the contents of the main data, whether the mailbox is in use or not, and the message type. Flags and data indicating transfer quality, etc. are stored. Next, the parameter data MBP stores parameter data for indicating the details of the data format for the specified classification of the main data contents. In addition, the data area MBD contains main data, that is, DO data 47 sent urgently from the computer 41 to the terminal 45 and the address of the terminal, or Di data 46 sent urgently from the terminal 45 to the computer 41 (however, this data 46 is temporarily sent to the center device 43 is received from the terminal 45 through the above-mentioned cyclic communication T1, etc., and then transferred to the mailbox MB by the center device 43) and the address of the terminal are stored. Such a mailbox MB is transferred to the computer 41-center device 43, or the center device 43-computer 41, and its contents are analyzed and interpreted. By using such a mailbox, for example, the address an,
The computer 41 instructs the center device 43 to transmit the Do data 47 to the am and an terminals, or the center device 43 receives the D+ data obtained from the terminal 45.
Data 46 (this is stored in data memory MDI)
In the terminal 45 with the address an consisting of, Di data 4
If a change occurs that requires emergency notification regarding 6.
The new Di data 46 is transferred to the mailbox MB, and the interrupt iNT signal 16 shown in FIG. 4 is output.
By notifying the computer 41 of the information, high-speed data transmission between the calculation all and the center device 43 becomes possible. As mentioned above, the center device 43 receives the addresses al and am from the computer 41 via the mailbox MB. Upon receiving the Do data 47 for an's terminal 45, the second
As shown in FIG.
2 is executed sequentially with priority. After this individual communication T2 ends, the process returns to cyclic communication T1. In addition to performing this individual communication T2, the center device 43
updates and stores the corresponding DO data 47 in the corresponding address section in the dedicated data memory MDZ in the common RAMI as new o data, and performs the next cyclic communication TI.
be reflected in. The details of the transmission of the changed Di data 46 to the computer 41 side are described in the above-mentioned application (2). On the other hand, if you use this communication mailbox MB,
Any kind of control and data transmission is possible, but as shown in Figure 1 (C1), various flag control data and parameter data are added, so it is necessary to interpret such data. Therefore, Figure 1 fa)
Dedicated data memory MDI, Di data 46 in MDZ
.. Compared to directly exchanging Do data 47, there is a problem that data transmission takes time (
However, this comparison excludes the time during which the terminal waits for its turn to update during cyclic communication). According to some calculations, there is a difference between reading Di data directly from the dedicated data memory MDI and receiving Di data via the mailbox MB. , it takes 10 times as much time as when a request command is transmitted to the center device side, and then the center device writes Di data into a mailbox and reads it out with a computer. This will reduce the processing power of the computer, and it is not desirable to use the mailbox MB frequently. However, 1. As mentioned above, the change Di data 46 on the terminal side
, or when you want to send Do data 47 to a certain terminal as soon as possible, it is more rational to use a mailbox, as using only the cyclic communication procedure will delay the final data transmission, which is undesirable. . Also, cyclically communicated dedicated data memo + JMDI
, D1 data in MDZ 46. The Do data 47 is 1. when displaying the operating status of the terminal. Since it can be used as is, there is also the advantage that creating programs is extremely easy.

【発明の効果】【Effect of the invention】

以上の説明から明らかなように本発明によれば、計算機
とセンタ装置をデュアルボー1・RAM(コモンRAM
) ヲ用いたハス結合とし、このコモンRAM内に、端
末との個別交信用の通信用メールボックスと、各端末に
ついての′ザイクリック交に用のD i及びDOデータ
を直接アクセスできる専用データメモリとを設け、前記
通信用メールボックスと専用データメモリを用いて、高
速でデータ伝送する必要があるときには前記通信用メー
ルボックスを用いて個別交信方式で優先的に、また高速
伝送が必要でないときには、前記専用データメモリを用
いてサイクリック交信方式で、端末からセンタ装置を介
し計算機側に、変化Diデータや故障Diデータを送信
し、同様に計算機側からセンタ装置を介し端末側に、制
御出力用DOデータを送信することとしたので、柔軟性
のあるデータ伝送を実現することができる。
As is clear from the above description, according to the present invention, the computer and the center device can be connected to a dual-baud RAM (common RAM).
), and this common RAM includes a communication mailbox for individual communication with terminals, and a dedicated data memory that allows direct access to D i and DO data for cyclic communication for each terminal. is provided, and when it is necessary to transmit data at high speed using the communication mailbox and dedicated data memory, the communication mailbox is used preferentially in an individual communication method, and when high-speed transmission is not required, the Using a cyclic communication method using a dedicated data memory, change Di data and failure Di data are transmitted from the terminal to the computer side via the center device, and similarly, control output DO is sent from the computer side to the terminal side via the center device. Since data is transmitted, flexible data transmission can be realized.

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

第1図は本発明の一実施例としてのコモンRAMの割付
図、第2図は同じく、交信順序の説明図、第3図は同じ
く、データ伝送システムの構成図、第4図は同じくデュ
アルポートRAMの構成図である。 1:コモンRAM、41:上位計算機(計算機)、42
ニデユアルポ一トRAM、43:センタ装置、44:伝
送路、45(45−1、45−2−・−・):端末、4
6:Diデータ、47:Doデータ、MB :  (M
B 1゜MB2):通信用メールボックス(メールポ・
ノクス) 、MD (MD I 、 MD 2)  :
専用データメモリ、Bニブロックアドレス、a  (a
ff、  am、  an):端末アドレス、T1:サ
イクリ・ツク交信、T2:個別交信。 (Q) コモンRAM 1 (C) 通信用〆−ルボ“ツクス M3
Fig. 1 is a common RAM layout diagram as an embodiment of the present invention, Fig. 2 is also an explanatory diagram of the communication order, Fig. 3 is also a configuration diagram of the data transmission system, and Fig. 4 is also a dual port It is a block diagram of RAM. 1: Common RAM, 41: Upper computer (computer), 42
dual port RAM, 43: center device, 44: transmission line, 45 (45-1, 45-2--): terminal, 4
6: Di data, 47: Do data, MB: (M
B 1゜MB2): Communication mailbox (mailbox)
Nox), MD (MD I, MD 2):
Dedicated data memory, B block address, a (a
ff, am, an): terminal address, T1: cyclic communication, T2: individual communication. (Q) Common RAM 1 (C) Communication endpoint M3

Claims (1)

【特許請求の範囲】 1)センタ装置、センタ装置から伝送路を介して結合さ
れた複数のアドレス別端末、センタ装置と共通RAMを
介して結合された上位計算機を備え、センタ装置は、デ
ータ伝送の制御を行うと共に端末とデータ授受を行い、
上位計算機は、共通RAMに書込んだデータをセンタ装
置を介して端末に送信し、かつセンタ装置が端末から受
信して共通RAMに書込んだデータを読み取ることによ
り端末とのデータ授受を行うようにしたデータ伝送シス
テムにおいて、 共通RAMに通常交信用のデータ記憶領域と、緊急交信
用等に用いられるデータ記憶領域(以下メールボックス
という)とを設け、前記通常交信用データ記憶領域は、
各端末のアドレス毎に設けられ、かつ上位計算機が端末
と授及び受を行う各データ領域を備えるように、また前
記メールボックスには、少くとも緊急交信に係る端末の
アドレスと、上位計算機が当該端末に送信を行うデータ
とを記憶させるようにするとともに、 センタ装置は、前記通常交信用データ記憶領域を読み、
書きしつつ、各端末のアドレス又はこれに対応するアド
レスを所定の順序で繰り返し指定して、データ授、受を
行い、かつ少くとも前記メールボックスを読み、該デー
タ授受に優先して、当該緊急交信に係るアドレスの端末
を指定しデータ送信を行うようにしたことを特徴とする
データ伝送システム。
[Scope of Claims] 1) A center device, a plurality of address-specific terminals connected from the center device via a transmission path, and a host computer connected to the center device via a common RAM, the center device is capable of transmitting data. In addition to controlling the terminal, it also exchanges data with the terminal.
The host computer sends data written to the common RAM to the terminal via the center device, and the center device reads the data received from the terminal and written to the common RAM, thereby exchanging data with the terminal. In the data transmission system, a common RAM is provided with a data storage area for normal communication and a data storage area (hereinafter referred to as mailbox) used for emergency communication, etc., and the data storage area for normal communication is
The mailbox is provided with each data area for each terminal address, and the host computer sends and receives data to and from the terminal. The center device reads the data storage area for normal communication, and stores the data to be transmitted in the terminal.
While writing, repeatedly specify the address of each terminal or the corresponding address in a predetermined order to send and receive data, read at least the mailbox, and give priority to the data transfer and receive the relevant emergency message. A data transmission system characterized in that data transmission is performed by specifying a terminal having an address related to communication.
JP20261185A 1985-09-13 1985-09-13 Data transmission system Granted JPS6262643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20261185A JPS6262643A (en) 1985-09-13 1985-09-13 Data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20261185A JPS6262643A (en) 1985-09-13 1985-09-13 Data transmission system

Publications (2)

Publication Number Publication Date
JPS6262643A true JPS6262643A (en) 1987-03-19
JPH0531978B2 JPH0531978B2 (en) 1993-05-13

Family

ID=16460275

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20261185A Granted JPS6262643A (en) 1985-09-13 1985-09-13 Data transmission system

Country Status (1)

Country Link
JP (1) JPS6262643A (en)

Also Published As

Publication number Publication date
JPH0531978B2 (en) 1993-05-13

Similar Documents

Publication Publication Date Title
JPH056223B2 (en)
CN1307569C (en) Method and apparatus for transferring data at high speed using direct memory access in multi-processor environments
JPS63255760A (en) Control system
US6189075B1 (en) Circuit for the management of memories in a multiple-user environment with access request and priority
US6128689A (en) System for exchanging data through data memory area of common memory in synchronous and asynchronous modes
US5528768A (en) Multiprocessor communication system having a paritioned main memory where individual processors write to exclusive portions of the main memory and read from the entire main memory
JPS6262643A (en) Data transmission system
KR20010091900A (en) Multi-ported memory with asynchronous and synchronous protocol
CN100361433C (en) Communication device using three step communication buffer storage
JP3265026B2 (en) I / O data exchange method
JPS6232748A (en) Data transfer equipment
JPS6190204A (en) Linking method of programmable controller
JPH01157143A (en) Network system with token passing bus system
JP2576236B2 (en) Communication method of programmable controller
CN117608207A (en) Communication system and method based on reflective memory network
JPS6220006A (en) Remote i/o link system for programmable controller
JPH04120648A (en) Common bus connecting device
JPS61170859A (en) Computer connecting system
JP2000172307A (en) Method for updating process data collection device
JPH0410050A (en) Computer system
JPS6018039A (en) Local network system
JPS6115461B2 (en)
JPH0786869B2 (en) Information transmission method of multiprocessor system
JPH04188350A (en) Memory circuit and decentralized processing system
JPH09135260A (en) Hierarchical method for programmable logic controller by network