JPH0531978B2 - - Google Patents

Info

Publication number
JPH0531978B2
JPH0531978B2 JP20261185A JP20261185A JPH0531978B2 JP H0531978 B2 JPH0531978 B2 JP H0531978B2 JP 20261185 A JP20261185 A JP 20261185A JP 20261185 A JP20261185 A JP 20261185A JP H0531978 B2 JPH0531978 B2 JP H0531978B2
Authority
JP
Japan
Prior art keywords
data
terminal
center device
address
communication
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
JP20261185A
Other languages
Japanese (ja)
Other versions
JPS6262643A (en
Inventor
Shigeru Hatsutori
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)

Description

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

本発明は伝送の制御を行うセンタ装置(主局と
もいう)と、複数の端末装置(端末局または端末
ともいう)と、上位計算機(単に計算機ともい
う)とを備え、主局と端末局間、もしくは端末局
同士間でデータの授受を行うとともに、主局と上
位計算機間でデータの授受を行う伝送システムに
おいて、上位計算機と端末間のデータ授受の緩急
の要求に応じたデータ伝送を行うことができるシ
ステムに関する。
The present invention includes a center device (also referred to as a master station) that controls transmission, a plurality of terminal devices (also referred to as a terminal station or a terminal), and a host computer (also simply referred to as a computer), and provides communication between the master station and the terminal stations. Or, in a transmission system that sends and receives data between terminal stations and also sends and receives data between a master station and a host computer, performing data transmission according to the speed and speed of data transfer between the host computer and the terminal. Regarding the system that can.

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

以下各図の説明において同一の符号は同一また
は相当部分を示す。本出願に最も近い従来技術と
しては、本出願人による特願昭59−244251号(特
開昭61−123233号公報)「データ伝送システム」
(以下出願(1)という)、特願昭59−244254号(特開
昭61−123235号公報)「データ伝送システム」(以
下出願(2)という)、がある。これらの発明を適用
した汎用多重信号伝送装置(商品名:リモートタ
ーミナル)のように、各所に散在する機器の集中
監視・制御を行うために中央の計算機(例えばパ
ソコン)などに、散在機器から入力データを集め
たり、前記計算機から、散在機器に対する制御出
力を伝送したりする目的で、種々のデータ伝送装
置が作られている。 これらのデータ伝送システムは、一般にデータ
伝送の交信制御及び端末とのデータ授受を行うセ
ンタ装置(主局)と、複数の端末とを持つている
のが一般的であるが、端末からセンタ装置に集め
たデータを計算機にどのように伝送するか、ある
いは、計算機が端末に出力させようと準備した制
御出力データを、上記のセンタ装置を介して端末
にどのように伝送すべきかという問題が生じてく
る。このため従来は、センタ装置に外部の上位計
算機との通信用インターフエースを持たせ、この
インターフエースを介してセンタ装置と上位の計
算機との間のデータ伝送を行うのが一般的であつ
た。このインターフエースには汎用的なものとし
て、パソコンなどにも装備されているRS232Cや
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 closest prior art to the present application is Japanese Patent Application No. 59-244251 (Japanese Unexamined Patent Publication No. 61-123233) filed by the present applicant entitled "Data Transmission System".
(hereinafter referred to as application (1)) and Japanese Patent Application No. 59-244254 (Japanese Patent Application Laid-open No. 61-123235) entitled "Data Transmission System" (hereinafter referred to as application (2)). A general-purpose multiplex signal transmission device (product name: Remote Terminal) to which these inventions are applied is capable of transmitting input from scattered devices to a central computer (e.g., a personal computer) in order to centrally monitor and control devices scattered in various locations. Various data transmission devices have been manufactured for the purpose of collecting data and transmitting control outputs from the computer to scattered devices. These data transmission systems generally have a center device (main station) that controls communication for data transmission and exchanges data with terminals, and multiple terminals. The problem arises as to how to transmit the collected data to the computer, or how to transmit the control output data that the computer has prepared to output to the terminal via the above-mentioned center device. come. 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. This interface can be used as a general-purpose interface such as RS232C, which is also installed in personal computers.
GPiB interface 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. Therefore, 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 data arriving from the center device to the computer side, or a delay in the transmission of control output from the computer to the terminal. There is a problem with this. 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 bus is used by a computer to control its internal memory or input/output devices, so data can basically be exchanged in a manner that matches the operating speed of the computer.
It is convenient and greatly improves the above-mentioned problems of long transmission time and slow data transmission. Methods using this bus include those that are standard in the industry, such as Multibus (a trademark of Intel Corporation), as well as methods that are uniquely designed on the computer side. There are various methods for these bus connections, and in this case, there are two modes: access from the computer side to the center device side, and conversely, access from the center device side to the computer side. Furthermore, 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, one method of controlling these communications is to use dual ports to ensure data exchange without any abnormalities.
Data is exchanged using a mailbox method using RAM. This dual port RAM is a RAM device that has ports for the data bus and address bus on the computer side and ports 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 enables sequential and periodic normal communication between a host computer and a large number of terminals. The object of the present invention is to provide a data transmission system that can efficiently perform data transmission (hereinafter referred to as cyclic communication) and emergency data transmission (hereinafter referred to as individual communication) with a designated terminal.

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

本発明の要点は、上位計算機とセンタ装置とを
デユアルポートRAMを用いてバス結合し、デユ
アルポートRAM内に次の2つの領域、即ちその
時々のデータ転送を優先すべき端末のアドレス、
Di,Doデータ、登録データなどをサイクリツク
交信に優先する個別交信により輸送するためのメ
ールボツクス(領域)と、サイクリツク交信のた
めに、全端末のアドレス別に配置されたDi,Do
データ格納用の専用データメモリ(領域)とを設
け、計算機側からはDoデータを書き込み、Diデ
ータを読み出し、センタ装置側からはDoデータ
の読み出し、Diデータの書き込みを可能とする
ことにより、 前記メールボツクスを用いて当該アドレスの端
末との個別交信、及び前記専用データメモリを用
いて、端末へのサイクリツク交信をすることによ
り、優先順位を付したデータ伝送を効率よく実施
しようとする点にある。 換言すれば本発明の要点は、センタ装置、セン
タ装置から伝送路を介して結合された複数のアド
レス別端末、センタ装置と共通RAM(コモン
RAMなど)を介して結合された上位計算機を備
え、センタ装置は、データ伝送の制御を行うと共
に端末とデータ授受を行い、上位計算機は、共通
RAMに書込んだデータをセンタ装置を介して端
末に送信し、かつセンタ装置が端末から受信して
共通RAMに書込んだデータを読み取ることによ
り端末とのデータ授受を行うようにしたデータ伝
送システムにおいて、 共通RAMに通常交信用(サイクリツク交信用
など)のデータ記憶領域(専用データメモリな
ど)と、緊急交信用(個別交信用など)等に用い
られるデータ記憶領域(以下メールボツクスとい
う)とを設け、前記通常交信用データ記憶領域
は、各端末のアドレス毎に設けられ、かつ上位計
算機が端末と授及び受を行う(Doデータ及びDi
データの)各データ領域を備えるように、また前
記メールボツクスには、少くとも緊急交信に係る
端末のアドレスと、上位計算機が当該端末に送信
を行うデータ(Doデータなど)とを記憶させる
ようにするとともに、 センタ装置は、前記通常交信用データ記憶領域
を読み、書きしつつ、各端末のアドレス又はこれ
に対応するアドレス(ブロツクアドレスなど)を
所定の順序で繰り返し指定して、データ授受を行
い、かつ少くとも前記メールボツクスを読み、該
データ授受に優先して、当該緊急交信に係るアド
レスの端末を指定しデータ送信を行うようにした
点にある。
The gist of the present invention is to connect a host computer and a center device via a bus using a dual port RAM, and to store the following two areas in the dual port RAM: addresses of terminals to which data transfer should be prioritized at any given time;
A mail box (area) for transporting Di, Do data, registered data, etc. by individual communication that takes precedence over cyclic communication, and a Di, Do area arranged by address of all terminals for cyclic communication.
A dedicated data memory (area) for data storage is provided, and the computer side can write Do data and read Di data, and the center device side can read Do data and write Di data. The purpose of this invention is to efficiently carry out prioritized data transmission by individually communicating with the terminal at the address using a mailbox and by cyclically communicating with the terminal using the dedicated data memory. . In other words, the main points of the present invention are a center device, a plurality of address-specific terminals connected from the center device via transmission paths, and a common RAM (common RAM) with the center device.
The center device controls data transmission and exchanges data with terminals.
A data transmission system in which data written in RAM is sent to a terminal via a 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 common RAM, a data storage area (dedicated data memory, etc.) for normal communication (for cyclic communication, etc.) and a data storage area (hereinafter referred to as mailbox) used for emergency communication (for individual communication, etc.) are installed. The data storage area for normal communication is provided for each address of each terminal, and the host computer sends and receives data to and from the terminal (Do data and Di
data), and the mailbox is configured to store at least the address of the terminal related to emergency communication and the data (Do data, etc.) to be sent by the host computer to the terminal. At the same time, the center device repeatedly specifies the address of each terminal or the corresponding address (block address, etc.) in a predetermined order while reading and writing to the data storage area for normal communication, and exchanges data. , and at least read the mailbox and give priority to the data exchange by specifying the terminal of the address related to the emergency communication and transmitting the data.

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

以下第1図〜第4図に基づいて本発明の実施例
を説明する。第1図は本発明の一実施例としての
RAM割付図、第2図は同じく、交信順序の説明
図、第3図は同じく、データ伝送システムの構成
図、第4図は、同じく、デユアルポートRAMの
構成図である。 第3図において、45,45−1,45−2…
はアドレス別の端末、43はセンタ装置で、該装
置43は、端末45相互間又はセンタ装置43と
端末45間のデータ伝送を制御すると共に、この
伝送を介して端末45とデータの授受を行う。4
4はセンタ装置43と各端末45を結合する共通
の伝送路、41はセンタ装置43とデユアルポー
トRAM42を介してデータの授受を行う上位計
算機(単に計算機ともいう)である。また46
は、このシステムの外部から端末45に入力さ
れ、さらにセンタ装置43を介し計算機41に送
られるDiデータ、47は、計算機41からセン
タ装置43を介し端末45に送られ、さらに端末
45からこのシステムの外部に出力されるDoデ
ータである。 なおこの伝送路44の構成は、第3図ではマル
チドロツプの形式で示されているが、これはルー
プ状に接続されても良いので、その伝送路の形式
は特に問うものではない。 次に第4図のデユアルポートRAM42におい
て、同図の左側は計算機41用のバスであり、右
側はセンタ装置43用のバスである。このデユア
ルポートRAM42は、計算機41側とセンタ装
置43側とに2つのポートを持つて、コモン
RAM1にはいずれか一方から書込みまたは読み
出しが行われる。コモンRAM1は2Kバイトのア
ドレス空間を所有しているので、アドレスバス
2,5,8は11bitで構成されている。計算機4
1側では所定の(例えば1Mバイトの)アドレス
空間を持つているので、12ビツト以上のアドレス
分はアドレスバス12に与えられ、コモンRAM
1がメモリアドレス的に指定されたことをアドレ
スデコーダ11が検出すると、デコーダ11から
チツプセレクト信号がコモンRAM選択回路1
0に向けて発生する。またこの例では8ビツトの
マイクロコンピユータを用いているので、データ
バス3,6,9は8ビツト分を示している。この
図のように構成してコモンRAM選択回路10
は、計算機41側か又はセンタ装置43側かのい
ずれか一方のみが、コモンRAM1を使用できる
ように制御する。即ち選択回路10は、いずれか
一方がチツプセレクト()信号を発生してい
れば、コモンRAM1の使用権を優先的に与え、
バスコントローラ4又は7に信号を与えるととも
に、コモンRAM1にも、チツプセレクト()
信号とリード/ライト(WR/)信号13又
は17が、使用権を与えられたバス側から与えら
れるように制御する。またコモンRAM選択回路
10は、計算機41側が優先的にコモンRAM1
を使用する時には、LOCK信号15を選択回路1
0に与えると、センタ装置43側をウエイト状態
にし、逆にセンタ装置43が選択回路10にオー
バライド信号19を与えれば、計算機41側をウ
エイト状態にし、オーバライド信号19が無くな
つてから計算機41に初めてコモンRAM1を使
用させ、XACK信号14を計算機41に向け発
生して、次のステツプに進むことができる。 また計算機41側とセンタ装置43側の相互の
動きの連絡のために、計算機41側からはシステ
ムリセツト信号21が与えられ、センタ装置43
側からは伝送すべきデータが発生すると、割込用
iNT信号16が与えられる。 このように構成されたコモンRAM1のRAM
割付図が第1図である。コモンRAM1は2Kバイ
トであり、aのように、ここでは4つの領域に分
割されている。即ち上段2つのMB,MB1,
MB2が通信用メールボツクス(単にメールボツ
クスともいう)、下段2つのMD,MD1,MD2
がそれぞれDiデータ46,Doデータ47の記憶
領域としての専用データメモリである。bは専用
データメモリMD内における端末45のアドレス
a別の割付図を示している。またcは後に詳述す
るメールボツクスMB内の割付図であり、MBF
はフラグコントロールデータ、MBPはパラメー
タデータ、MBDはデータ域である。 第2図はこのデータ伝送システムにおける交信
順序を示す。同図aは通常行われるサイクリツク
交信T1の例である。即ち例えば、端末45のア
ドレスを、予め、所定個数のアドレスからなる群
(ただしこの群内での各アドレスは予め順序付け
される)ごとに区分して、この各群にブロツクア
ドレスB,B1〜B4を割付け、センタ装置43
が、ブロツクアドレスB1〜B4をB1→B2→
B3→B4→B1……のように)順次指定するこ
とを周期的に繰返し、同図中の各ブロツクアドレ
スB1〜B4で示した期間内に、さらに必要に応
じ当該ブロツクに属する各端末のアドレスを順次
指定しながら、当該端末にセンタ装置43から
Doデータ47を与えたり、各端末45から順次
Diデータをセンタ装置43が受取つたり、また
端末間の交信を行わせたりするものである。 また第2図bはサイクリツク交信T1中に個別
交信T2を含む例であり、この例では、前記のサ
イクリツク交信T1での途中で、ある特定の、つ
まりこの例では計算機41側からの指示により、
アドレスa,a,am,anの3つの端末45と
センタ装置43との交信T2が、同図中の各端末
アドレスa、am,anで示した期間内に行わ
れ、その後に再びサイクリツク交信T1に復帰し
ている。これらの伝送制御についてはすでに前記
出願(1)で明らかにしているので、詳細な説明を省
略する。 第1図に戻つて、同図bに示した専用データ
MD内のDiデータ46、あるいはDoデータ47
は、端末45のアドレスaの順に配置され、Di
データ46、即ちセンタ装置43が得た端末45
の入力データは、第2図に示したサイクリツク交
信T1で、センタ装置43により、コモンRAM
1内の専用データメモリMD1に書き込まれ、計
算機41によつて必要な時に読み出される。 また計算機41によつてコモンRAM1の専用
データメモリMD2に書き込まれたDoデータ4
7は、センタ装置43によつて読み出され、第2
図に示したサイクリツク交信T1における端末出
力用データに用いられる。このように構成するこ
とによつて、専用データメモリMD内のDoデー
タ47あるいはDiデータ46は、計算機41あ
るいはセンタ装置43により順序よく、制御する
たび、あるいはデータ受信されるごとにコモン
RAM1に書き込まれ、必要な時に引き出して使
用するという、極めて単純な動作、つまりデータ
交換を短時間で実現することができる。 しかしこのサイクリツク交信T1の方式では、
もしサイクリツクの周期が長い場合には、Doデ
ータ47をコモンRAM1に書き込んでも、その
周期中の当該データの伝送タイミングにならなけ
れば伝送できなかつたり、あるいはDiデータ4
6の中で、あるデータが変化しても、計算機41
側でこれを検出するには、種々の操作をしなけれ
ばならず、検出が遅れるという欠点がある。 これらを補う方法として、第1図の通信用メー
ルボツクスMB,MB1,MB2を用いることが
できる。通信用メールボツクスMBとしてMB
1,MB2の2つを準備したのは、もし一方のメ
ールボツクスが受信処理中であれば、他方に次の
メールを書き込むことが可能であるようにするた
めである。 このメールボツクスMBは、他に種々の方法で
使用されるが、個別交信T2(第2図)において
は、第1図cのようにフラグコントロールデータ
MBF部には、当該メールボツクスの中のデータ
域MBDにおけるデータ(便宜上主データとい
う)の有/無、主データのデータ長、主データの
内容の指定区分、当該メールボツクスを使用中で
あるか否か、メツセージの転送良否など、を示す
フラグやデータが格納される。次にパラメータデ
ータMBPには、前記の主データ内容の指定区分
について、そのデータ形式の詳細を示すためのパ
ラメータデータが格納される。またデータ域
MBDには主データ、即ち計算機41から端末4
5に緊急に送るDoデータ47と当該端末のアド
レス、又は端末45から計算機41に緊急に送る
Diデータ46(ただしこのデータ46は一旦セ
ンタ装置43が前記のサイクリツク交信T1等で
端末45から受取つたのち、センタ装置43によ
つてメールボツクスMBに転送される)と当該端
末のアドレスが格納される。 このようなメールボツクスMBは計算機41→
センタ装置43、又はセンタ装置43→計算機4
1に転送されて、その内容が分析されて解釈され
る。このようなメールボツクスを用いることによ
つて、例えばアドレスa,am,anの端末に、
それぞれのDoデータ47を伝送するように計算
機41からセンタ装置43に指定したり、あるい
はセンタ装置43が端末45から入手したDiデ
ータ46(これはデータメモリMD1に格納され
る)の中で、或るアドレスanの端末45で、Di
データ46について緊急連絡を要するような変化
を生じた場合、その新しいDiデータ46をメー
ルボツクスMBに転送セツトして、第4図の割込
用iNT信号16を出力して計算機41に通知す
ることにより、計算機41とセンタ装置43相互
間で高速のデータ伝送が可能となる。 なお前述のようにセンタ装置43が計算機41
からメールボツクスMBを介してアドレスa,
am,anの端末45向けのDoデータ47を受取る
と、第2図bのようにサイクリツク交信T1を中
断して、アドレスa,am,anの端末45との
各個別交信T2を優先的に順次実行する。そして
この個別交信T2終了後にサイクリツク交信T1
に復帰する。 またこの個別交信T2を行うとともに、センタ
装置43は当該のDoデータ47を、コモンRAM
1内の専用データメモリMD2内の当該アドレス
部に新たなDoデータとして更新格納し、次回か
らのサイクリツク交信T1に反映させる。 なお、前述の変化したDiデータ46の計算機
41側への伝送の詳細については、前記出願(2)に
記載されている。 さて一方、この通信用メールボツクスMBを用
いれば、どのような制御やデータ伝送も可能では
あるが、第1図cに示したように、種々のフラグ
コントロールデータやパラメータデータが付加さ
れているので、このようなデータの解釈を行う必
要があるために、第1図aの専用データメモリ
MD1,MD2内のDiデータ46、Doデータ47
を直接的にやりとりするのに比較すると、データ
伝送に時間がかかるという問題が存在する(但し
この比較ではサイクリツク交信で端末がその更新
の順番を待つ時間は除く)。 ある試算によれば、Diデータなどを専用デー
タメモリMD1から直接読み出すのと、Diデータ
をメールボツクスMBを介して受信するのでは、
後者の手順の例として、計算機がコマンドをメー
ルボツクスに入れて、センタ装置側へ要求するコ
マンドを伝送し、次にセンタ装置がDiデータを
メールボツクスに書き込み、これを計算機で読み
出す場合と、比較すると、10倍もの時間を必要と
する。このことは計算機側の処理能力がそれだけ
低下することになり、メールボツクスMBを多用
することは好ましいことではない。 しかし、前述のように、端末側の変化Diデー
タ46の伝送とか、ある端末へ至急Doデータ4
7を出力したい時などでは、サイクリツク交信の
手順のみでは、最終的なデータ伝送が遅れ、好ま
しくないので、メールボツクスを用いた方が合理
的である。 またサイクリツク交信された専用データメモリ
MD1,MD2内のDiデータ46、Doデータ47
は、端末の動作状態を表示する時などには、その
まま使用すれば良いので、プログラム作成などが
非常に簡単になるというメリツトも存在する。
Embodiments of the present invention will be described below based on FIGS. 1 to 4. Figure 1 shows an embodiment of the present invention.
Similarly, FIG. 2 is an explanatory diagram of the communication order, FIG. 3 is a block diagram of the data transmission system, and FIG. 4 is a diagram of the dual port RAM. In FIG. 3, 45, 45-1, 45-2...
is a terminal by address, and 43 is a center device, which controls data transmission between the terminals 45 or between the center device 43 and the terminal 45, and sends and receives data to and from the terminal 45 through this transmission. . 4
4 is a common transmission line connecting the center device 43 and each terminal 45; 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 that is input from the outside of this system to the terminal 45 and is further sent to the computer 41 via the center device 43, and 47 is sent from the computer 41 to the terminal 45 via the center device 43, and is further sent from the terminal 45 to the computer 41. This is Do data that is output externally. 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 42 has two ports on the computer 41 side and the center device 43 side, and has two ports on the computer 41 side and the center device 43 side.
Writing or reading is performed from either one of the RAM1. Since the common RAM 1 has an address space of 2K bytes, the address buses 2, 5, and 8 are composed of 11 bits. calculator 4
Since the 1 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 common RAM
When the address decoder 11 detects that 1 is specified as a memory address, the chip select signal from the decoder 11 is sent to the common RAM selection circuit 1.
Occurs towards 0. Furthermore, since an 8-bit microcomputer is used in this example, data buses 3, 6, and 9 represent 8 bits. The common RAM selection circuit 10 is configured as shown in this figure.
controls so that only either the computer 41 side or the center device 43 side can use the common RAM 1. That is, the selection circuit 10 gives the right to use the common RAM 1 preferentially if either one generates the chip select ( ) signal, and
In addition to giving a signal to bus controller 4 or 7, chip select () is also applied to common RAM 1.
Control is performed so that the signal and read/write (WR/) signal 13 or 17 are provided from the bus side to which usage rights have been granted. In addition, the common RAM selection circuit 10 selects the common RAM 1 on the computer 41 side preferentially.
When using LOCK signal 15, select circuit 1
0, the center device 43 side is placed in a wait state, and conversely, if the center device 43 gives the override signal 19 to the selection circuit 10, the computer 41 side is placed in a wait state, and after the override signal 19 disappears, the computer 41 side is placed in a wait state. By using the common RAM 1 for the first time and generating the XACK signal 14 to the computer 41, it is possible to proceed to the next step. Further, in order to communicate mutual movements between the computer 41 side and the center device 43 side, a system reset signal 21 is given from the computer 41 side, and the center device 43
When data to be transmitted occurs from the side, an interrupt is sent
An iNT signal 16 is provided. Common RAM1 RAM configured in this way
The layout diagram is shown in Figure 1. The common RAM 1 is 2K bytes, and is divided into four areas as shown in a. That is, the upper two MBs, MB1,
MB2 is a communication mailbox (also simply called a mailbox), and the two lower rows are MD, MD1, and MD2.
are dedicated data memories as storage areas for Di data 46 and Do data 47, respectively. b shows an allocation diagram of each address a of the terminal 45 in the dedicated data memory MD. In addition, c is a layout diagram of the mailbox MB, which will be explained in detail later, and MBF
is flag control data, MBP is parameter data, and MBD is data area. FIG. 2 shows the communication order in this data transmission system. Figure a shows an example of cyclic communication T1 that is normally performed. That is, for example, the addresses of the terminal 45 are divided in advance into groups consisting of a predetermined number of addresses (however, each address within this group is ordered in advance), and block addresses B, B1 to B4 are assigned to each group. Assigned to the center device 43
However, block addresses B1 to B4 are changed from B1→B2→
B3→B4→B1...) is periodically repeated, and within the period indicated by each block address B1 to B4 in the figure, the address of each terminal belonging to the block is further specified as necessary. from the center device 43 to the terminal while sequentially specifying the
Do give data 47 or sequentially from each terminal 45
The center device 43 receives Di data and allows communication between terminals. FIG. 2b shows an example in which individual communication T2 is included in cyclic communication T1.
Communication T2 between the three terminals 45 with addresses a, a, am, and an and the center device 43 is performed within the period indicated by each terminal address a, am, and an in the figure, and then cyclic communication T1 is performed again. has returned to. These transmission controls have already been disclosed in the above-mentioned application (1), so a detailed explanation will be omitted. Returning to Figure 1, the dedicated data shown in Figure b
Di data 46 or Do data 47 in MD
are arranged in the order of the address a of the terminal 45, and Di
Data 46, that is, the terminal 45 obtained by the center device 43
The input data is sent to the common RAM by the center device 43 in the cyclic communication T1 shown in FIG.
1, and read out by the computer 41 when necessary. In addition, Do data 4 written to the dedicated data memory MD2 of the common RAM 1 by the computer 41
7 is read by the center device 43 and the second
It is used for terminal output data in the cyclic communication T1 shown in the figure. With this configuration, the Do data 47 or Di data 46 in the dedicated data memory MD can be shared in a common order by the computer 41 or the center device 43 every time it is controlled or every time data is received.
It is written in RAM 1 and pulled out and used when necessary, making it possible to perform extremely simple operations, that is, data exchange in a short time. However, in this cyclic communication T1 method,
If the cyclic cycle is long, even if Do data 47 is written to common RAM 1, it may not be possible to transmit it until the transmission timing of the data in that cycle is reached, or the Di data 4
Even if certain data changes in 6, the calculator 41
In order to detect this on the side, various operations must be performed, which has the disadvantage that detection is delayed. As a method for supplementing these, communication mailboxes MB, MB1, and MB2 shown in FIG. 1 can be used. MB as communication mailbox MB
The reason for preparing two mailboxes, 1 and MB2, is so that if one mailbox is in the process of receiving, the next mail can be written to the other mailbox. This mailbox MB is used in various other ways, but in individual communication T2 (Fig. 2), flag control data is used as shown in Fig. 1c.
The MBF section contains 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 specified classification of the contents of the main data, and whether the mailbox is in use. Flags and data indicating whether the message was transferred successfully or not are stored. Next, the parameter data MBP stores parameter data for indicating the details of the data format for the designated classification of the main data content. Also data area
The MBD contains main data, that is, from the computer 41 to the terminal 4.
Do data 47 and the address of the terminal to be urgently sent to 5, or urgently sent from the terminal 45 to the computer 41
Di data 46 (however, this data 46 is once received by the center device 43 from the terminal 45 through the above-mentioned cyclic communication T1, etc., and then transferred by the center device 43 to the mailbox MB) and the address of the terminal are stored. Ru. Such mailbox MB is calculated by computer 41→
Center device 43 or center device 43 → computer 4
1 and its contents are analyzed and interpreted. By using such a mailbox, you can, for example, send messages to terminals with addresses a, am, and an.
The computer 41 specifies the center device 43 to transmit the respective Do data 47, or the center device 43 receives a command from the Di data 46 (which is stored in the data memory MD1) obtained from the terminal 45. Di on terminal 45 with address an.
When a change occurs in the data 46 that requires emergency notification, the new Di data 46 is set to be transferred to the mailbox MB, and the interrupt iNT signal 16 shown in FIG. 4 is output to notify the computer 41. This enables high-speed data transmission between the computer 41 and the center device 43. Note that, as mentioned above, the center device 43 is the computer 41.
from address a, via mailbox MB.
When the Do data 47 for the terminals 45 at addresses a, am, and an are received, the cyclic communication T1 is interrupted as shown in FIG. Execute. After this individual communication T2 ends, cyclic communication T1
to return to. In addition to performing this individual communication T2, the center device 43 transfers the relevant Do data 47 to the common RAM
The new Do data is updated and stored in the corresponding address section in the dedicated data memory MD2 in the Do data memory MD2, and is reflected in the next cyclic communication T1. Note that 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 this communication mailbox MB is used, any kind of control or data transmission is possible, but as shown in Figure 1c, various flag control data and parameter data are added. , because it is necessary to interpret such data, the dedicated data memory shown in Figure 1a is
Di data 46 and Do data 47 in MD1 and MD2
There is a problem in that data transmission takes time compared to direct exchange (however, this comparison excludes the time required for terminals to wait for their turn to update during cyclic communication). According to some calculations, there is a difference between reading Di data directly from the dedicated data memory MD1 and receiving Di data via the mailbox MB.
As an example of the latter procedure, compare the case where the computer puts a command into a mailbox, transmits the requested command to the center device, and then the center device writes Di data to the mailbox, which is then read out by the computer. Then it would take 10 times as long. This will reduce the processing power of the computer, and it is not desirable to use the mailbox MB extensively. However, as mentioned above, when transmitting change Di data 46 on the terminal side or urgently transmitting Do data 46 to a certain terminal,
7, it is more rational to use a mailbox, since using only the cyclic communication procedure will delay the final data transmission, which is not preferable. Dedicated data memory with cyclic communication
Di data 46 and Do data 47 in MD1 and MD2
can be used as is when displaying the operating status of a terminal, so it has the advantage of making programming extremely easy.

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

以上の説明から明らかなように本発明によれ
ば、計算機とセンタ装置をデユアルポートRAM
(コモンRAM)を用いたバス結合とし、このコ
モンRAM内に、端末との個別交信用の通信メー
ルボツクスと、各端末についてのサイクリツク交
信用のDi及びDoデータを直接アクセスできる専
用データメモリとを設け、前記通信用メールボツ
クスと専用データメモリを用いて、高速でデータ
伝送する必要があるときには前記通信用メールボ
ツクスを用いて個別交信方式で優先的に、また高
速伝送が必要でないときには、前記専用データメ
モリを用いてサイクリツク交信方式で、端末から
センタ装置を介し計算機側に、変化Diデータや
故障Diデータを送信し、同様に計算機側からセ
ンタ装置を介し端末側に、制御出力用Doデータ
を送信することとしたので、柔軟性のあるデータ
伝送を実現することができる。
As is clear from the above explanation, according to the present invention, the computer and the center device can be connected to dual port RAM.
This common RAM is equipped with a communication mailbox for individual communication with terminals, and a dedicated data memory that allows direct access to Di and Do data for cyclic communication for each terminal. When it is necessary to transmit data at high speed using the communication mailbox and the dedicated data memory, the communication mailbox is used to preferentially transmit data in an individual communication method, and when high-speed transmission is not required, the dedicated data Using the cyclic communication method using memory, change Di data and fault Di data are sent from the terminal to the computer side via the center device, and Do data for control output is similarly sent from the computer side to the terminal side via the center device. As a result, 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……端末、46……Diデータ、4
7……Doデータ、MB,MB1,MB2……通信
用メールボツクス(メールボツクス)、MD,
MD1,MD2……専用データメモリ、B……ブ
ロツクアドレス、a,a,am,an……端末ア
ドレス、T1……サイクリツク交信、T2……個
別交信。
Figure 1 shows a common example as an embodiment of the present invention.
Similarly, FIG. 2 is an explanatory diagram of the communication order, FIG. 3 is a configuration diagram of the data transmission system, and FIG. 4 is a diagram of the configuration of the dual port RAM. 1... Common RAM, 41... Host computer (computer), 42... Dual port RAM, 43...
...Center device, 44...Transmission line, 45, 45-
1, 45-2...terminal, 46...Di data, 4
7...Do data, MB, MB1, MB2... Communication mailbox (mailbox), MD,
MD1, MD2...dedicated data memory, B...block address, a, a, am, an...terminal address, T1...cyclic communication, T2...individual communication.

Claims (1)

【特許請求の範囲】 1 センタ装置、センタ装置から伝送路を介して
結合された複数のアドレス別端末、センタ装置と
共通RAMを介して結合された上位計算機を備
え、センタ装置は、データ伝送の制御を行うと共
に端末とデータ授受を行い、上位計算機は、共通
RAMに書込んだデータをセンタ装置を介して端
末に送信し、かつセンタ装置が端末から受信して
共通RAMに書込んだデータを読み取ることによ
り端末とのデータ授受を行うようにしたデータ伝
送システムにおいて、 共通RAMに通常交信用のデータ記憶領域と、
緊急交信用等に用いられるデータ記憶領域(以下
メールボツクスという)とを設け、前記通常交信
用データ記憶領域は、各端末のアドレス毎に設け
られ、かつ上位計算機が端末と授及び受を行う各
データ領域を備えるように、また前記メールボツ
クスには、少くとも緊急交信に係る端末のアドレ
スと、上位計算機が当該端末に送信を行うデータ
とを記憶させるようにするとともに、 センタ装置は、前記通常交信用データ記憶領域
を読み、書きしつつ、各端末のアドレス又はこれ
に対応するアドレスを所定の順序で繰り返し指定
して、データ授、受を行い、かつ少くとも前記メ
ールボツクスを読み、該データ授受に優先して、
当該緊急交信に係るアドレスの端末を指定しデー
タ送信を行うようにしたことを特徴とするデータ
伝送システム。
[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, and the center device is configured to perform data transmission. It performs control and exchanges data with the terminal, and the host computer is a common
A data transmission system in which data written in RAM is sent to a terminal via a 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 common RAM, there is a data storage area for normal communication,
A data storage area (hereinafter referred to as a mailbox) used for emergency communication, etc. is provided, and the data storage area for normal communication is provided for each address of each terminal, and is provided for each address where the host computer sends and receives data from and to the terminal. The center device is configured to have a data area, and the mailbox is configured to store at least the address of a terminal related to emergency communication and the data to be sent to the terminal by the host computer. While reading and writing the communication data storage area, the address of each terminal or the corresponding address is repeatedly specified in a predetermined order to send and receive data, and at least the mailbox is read and the data is Prioritize giving and receiving,
A data transmission system characterized in that data transmission is performed by specifying a terminal having an address related to the emergency 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 JPS6262643A (en) 1987-03-19
JPH0531978B2 true 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
JPS6262643A (en) 1987-03-19

Similar Documents

Publication Publication Date Title
US4882702A (en) Programmable controller with I/O expansion module located in one of I/O module positions for communication with outside I/O modules
KR920001576B1 (en) Network system using token-passing bus with multiple priority levels
US4975838A (en) Duplex data processing system with programmable bus configuration
JP3645281B2 (en) Multiprocessor system having shared memory
US5765036A (en) Shared memory device with arbitration to allow uninterrupted access to memory
EP0451938A2 (en) Multiple cluster signal processor
US5283869A (en) Interrupt structure for network interface circuit
US4417303A (en) Multi-processor data communication bus structure
JPS6336586B2 (en)
US7484028B2 (en) Burst-capable bus bridges for coupling devices to interface buses
US7334061B2 (en) Burst-capable interface buses for device-to-device communications
EP0479702A2 (en) System for transferring data between buses, using direct memory access devices
JPS63255760A (en) Control system
JPS63215134A (en) Communication control equipment
EP0073239A1 (en) Multi-processor office system complex
US6523077B1 (en) Data processing apparatus and data processing method accessing a plurality of memories in parallel
JPH0531978B2 (en)
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
EP0174446A2 (en) Distributed multiprocessing system
JP3659481B2 (en) Display system for PLC and data communication method between PLC and display
WO1991010958A1 (en) Computer bus system
JPH0471060A (en) Semiconductor integrated circuit
JPH01157143A (en) Network system with token passing bus system
JPH09261226A (en) Programmable controller
JP2000134197A (en) Inter-duplex device data transfer capability adjustment method