JPH04115649A - Data communication system - Google Patents

Data communication system

Info

Publication number
JPH04115649A
JPH04115649A JP2231295A JP23129590A JPH04115649A JP H04115649 A JPH04115649 A JP H04115649A JP 2231295 A JP2231295 A JP 2231295A JP 23129590 A JP23129590 A JP 23129590A JP H04115649 A JPH04115649 A JP H04115649A
Authority
JP
Japan
Prior art keywords
processing
station
primary station
response
primary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2231295A
Other languages
Japanese (ja)
Inventor
Chiharu Osawa
大澤 千春
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 JP2231295A priority Critical patent/JPH04115649A/en
Publication of JPH04115649A publication Critical patent/JPH04115649A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To reduce the occupancy ratio of a communication network at the time of data exchange between primary and secondary stations and to improve communication efficiency by waiting for the time till processing is ended at a secondary station and transmitting the requirement of a CRQ and so on to the secondary station. CONSTITUTION:A processing requirement REQ prepared by a requirement preparing means 12 is analyzed by a requirement analyzing means 22 at a secondary station 20 side and is notified to a secondary station communication control means 24 by the instruction of a primary station communication control 14. When the secondary station control means 24 judges that it is required constant time till required processing is ended from the analyzed result of it, it allows a standby positive responding signal WAK prepared by a response preparing means 23 to be transmitted to a communication network. The instruction of the transmission of a CRQ is not outputted from a waiting time control means 31 during the processing of a secondary requirement CRQ is outputted to the primary communication control means 14 at the time when the end of the processing at the secondary station 20 is detected. Thus, the occupancy ratio of the communication network on data exchange between the primary and the secondary stations can be reduced and communication efficiency can be improved.

Description

【発明の詳細な説明】 〔概  要〕 各種の処理要求を発行する一次局と、要求された処理を
実行し、その処理結果を一次局に返送する二次局とから
なるデータ通信システムに関し、−次、二次局間のデー
タ交換の際の通信網の占有率を低減し、通信効率をより
向上させることを目的とし、 各種の処理要求を発行する一次局と、一次局からの処理
要求に基づいて処理を実行し、処理結果を一次局に返送
する二次局と、それら一次局及び二次局を接続する通信
網とで構成されるデータ通信システムにおいて、一次局
が、二次局に対する処理要求を作成する要求作成手段と
、二次局からの応答を解析する応答解析手段と、二次局
での処理の完了を問い合わせるまでの待ち時間を管理す
る待ち時間管理手段と、この待ち時間管理手段の指示に
従って二次局との通信を行う一次局通信制御手段とを備
え、二次局が、一次局からの処理要求を解析する要求解
析手段と、一次局に対する応答を作成する応答作成手段
と、一次局との通信を行う一次局通信制御手段とを備え
るように構成する。
[Detailed Description of the Invention] [Summary] This invention relates to a data communication system consisting of a primary station that issues various processing requests, and a secondary station that executes the requested processing and returns the processing results to the primary station. -Next, with the aim of reducing the occupancy rate of the communication network during data exchange between secondary stations and further improving communication efficiency, the primary station issues various processing requests, and the processing requests from the primary station. In a data communication system consisting of a secondary station that executes processing based on the data and sends the processing result back to the primary station, and a communication network that connects these primary stations and secondary stations, the primary station a request creation means for creating a processing request for a processing request, a response analysis means for analyzing a response from a secondary station, a waiting time management means for managing a waiting time until the secondary station inquires about the completion of processing, and a primary station communication control means for communicating with the secondary station according to instructions from the time management means; the secondary station includes a request analysis means for analyzing a processing request from the primary station; and a response for creating a response to the primary station. The apparatus is configured to include a creating means and a primary station communication control means for communicating with the primary station.

〔産業上の利用分野〕[Industrial application field]

本発明は、各種の処理要求を発行する一次局と、要求さ
れた処理を実行し、その処理結果を一次局に返送する二
次局とからなるデータ通信システムに関する。
The present invention relates to a data communication system comprising a primary station that issues various processing requests, and a secondary station that executes the requested processing and returns the processing results to the primary station.

〔従来の技術〕[Conventional technology]

データ通信システムは、そこに含まれる情報処理装置の
数、通信路の形態等により、第8図(a)に示すような
2台の情報処理装置40a、40bが通信′fI42を
介して接続されている1対1形、同図(b)に示すよう
に複数の情報処理装置40a〜40dが通信網2を介し
て並列に接続されているマルチドロップ形、(又はツリ
ー形)、同図(C)に示すように複数の情報処理装置4
0a〜40dがリング状に接続されたリング形(又はル
ープ形)などがある。
In a data communication system, two information processing apparatuses 40a and 40b as shown in FIG. 8(a) are connected via a communication 'fI42, depending on the number of information processing apparatuses included therein, the form of communication paths, etc. one-to-one type, as shown in FIG. As shown in C), a plurality of information processing devices 4
There is a ring type (or loop type) in which 0a to 40d are connected in a ring shape.

ところで、それらの通信システムにおいて情報処理装置
が実現する機能に着目とすると、ある情報処理装置が他
の情報処理装置に対して何らかの処理を要求し、要求さ
れた情報処理装置が処理を行った後、その処理結果を要
求元に返送することに一般化できる。すなわち、第8図
(a)〜(C)のデータ通信システムは、第9図に示す
処理要求を発行する一次局10と、その処理を実行し、
処理結果を一次局10に返送する二次局20と、それら
一次局lO及び二次局20を結ふ通信網2とで表現する
ことができる。
By the way, if we focus on the functions realized by information processing devices in these communication systems, one information processing device requests some processing from another information processing device, and after the requested information processing device performs the processing, , and can be generalized to sending the processing results back to the request source. That is, the data communication system shown in FIGS. 8(a) to 8(C) includes the primary station 10 that issues the processing request shown in FIG. 9, and the data communication system that executes the processing,
It can be expressed as a secondary station 20 that returns processing results to the primary station 10, and a communication network 2 that connects the primary station IO and the secondary station 20.

第10図は、上記一次局10及び二次局20からなる従
来のデータ通信システムのシステム構成図である。
FIG. 10 is a system configuration diagram of a conventional data communication system consisting of the primary station 10 and secondary station 20.

一次局10は、二次局20に行わせる処理を決める一次
局アプリケーション11と、その一次局アプリケーショ
ン11の指示に従って二次層20に対する処理要求を発
行する要求作成手段12と、二次層20からの応答を解
析する応答解析手段13と、二次層20に対する通信タ
イミングを指示する定周期タイマ30と、定周期タイマ
30で指示されるタイミングで所定の通信手順を実行す
る一次局通信制御手段14とで構成されている。
The primary station 10 includes a primary station application 11 that determines the processing to be performed by the secondary station 20, a request creation means 12 that issues a processing request to the secondary layer 20 according to instructions from the primary station application 11, and a a response analysis means 13 for analyzing the response of the secondary layer 20, a fixed period timer 30 for instructing the communication timing to the secondary layer 20, and a primary station communication control means 14 for executing a predetermined communication procedure at the timing instructed by the fixed period timer 30. It is made up of.

同様に二次層20も、一次局10からの処理要求を解析
する局要求解析手段22と、要求された処理を実行する
二次層アプリケーション21と、一次局10に対する応
答を作成する応答作成手段23と、通信手順を実行する
二次層通信制御手段24とで構成されている。
Similarly, the secondary layer 20 includes a station request analysis means 22 that analyzes a processing request from the primary station 10, a secondary layer application 21 that executes the requested processing, and a response creation means that creates a response to the primary station 10. 23, and a secondary layer communication control means 24 that executes communication procedures.

次に、上述したデータ通信システムの動作を、一次局1
0から二次層20内のデータを読み出す場合を例に取り
、第11図の通信手順の説明図を参照しながら説明する
Next, the operation of the data communication system described above will be explained at the primary station 1.
Taking as an example the case where data in the secondary layer 20 is read from 0, a description will be given with reference to an explanatory diagram of a communication procedure in FIG.

二次局内のデータを読み出す場合には、先ず、一次局ア
プリケーション11から、読み出すべきデータが格納さ
れているアドレス及び読み出すデータ量等を指定するパ
ラメータが一次局通信制御手段14に与えられる。一次
局通信制御手段14は、そのパラメータに従って要求作
成手段12に処理要求REQの作成を指示し、定周期タ
イマ30で指示されるタイミングでその処理要求REQ
を通信網2に送出する。
When reading data in the secondary station, first, the primary station application 11 provides the primary station communication control means 14 with parameters specifying the address where the data to be read is stored, the amount of data to be read, etc. The primary station communication control means 14 instructs the request creation means 12 to create a processing request REQ according to the parameters, and generates the processing request REQ at the timing instructed by the fixed period timer 30.
is sent to the communication network 2.

二次層20側では、通信網2を介して受は取った要求を
要求解析手段22で解析し、その解析結果に基づいて二
次層通信制御手段24が、二次層アプリケーション21
に対して要求された処理、この場合指定された領域から
のデータの読み出し処理の実行を指示する。
On the secondary layer 20 side, the request analysis unit 22 analyzes the request received via the communication network 2, and based on the analysis result, the secondary layer communication control unit 24 analyzes the request received via the communication network 2.
Instructs to execute the requested process, in this case the process of reading data from the specified area.

データの読み出し処理では、指定されたアドレスからの
データの収集及び収集したデータを通信に適した形式へ
変換する処理等を行うので、処理に一定の時間がかかる
。そこで、二次層通信制御手段24は、応答作成手段2
3に処理要求は受付だがデータの返送までに時間を要す
る旨を知らせる待機応答WAKの作成を指示し、WAK
信号を通信網2に送出させる。
The data read process requires a certain amount of time because it involves collecting data from a specified address and converting the collected data into a format suitable for communication. Therefore, the second layer communication control means 24 controls the response generation means 2.
3 to create a standby response WAK informing that the processing request has been accepted but it will take time to return the data, and the WAK
The signal is sent to the communication network 2.

一次局10側では、応答解析手段13でそのWAK信号
を認識し、データの読み出しに時間がかかることが判っ
たなら、一次局通信制御手段11は、要求作成手段12
に前回のデータ読み出し要求が引き続き有効であること
を知らせる継続要求CRQの作成を指示する。そして、
定周期タイマ30により指示されるタイミングでそのC
RQ信号を通信W12に送出する。
On the primary station 10 side, the response analysis means 13 recognizes the WAK signal, and if it is determined that it will take time to read the data, the primary station communication control means 11 sends the request creation means 12
to create a continuation request CRQ that informs that the previous data read request is still valid. and,
C at the timing instructed by the periodic timer 30.
The RQ signal is sent to communication W12.

このCRQ信号を二次層通信制御手段24が認識すると
、要求されたデータが準備できるまでの間、第11図に
示すようにCRQ信号の応答信号としてWAK信号を繰
り返し返送する。このCRQ信号とWAK信号の授受は
、定周期タイマ30によって決定される時間間隔Tcで
繰り返される。
When the secondary layer communication control means 24 recognizes this CRQ signal, it repeatedly returns a WAK signal as a response signal to the CRQ signal, as shown in FIG. 11, until the requested data is ready. This transmission and reception of the CRQ signal and WAK signal is repeated at time intervals Tc determined by the fixed-cycle timer 30.

二次層20側での返送データの準備が完了した時点で、
応答作成手段23において返送データを含む処理完了応
答信号ENDが作成され、そのEND信号がCRQ信号
に対する応答として一次局に返送される。
When the preparation of the return data on the secondary layer 20 side is completed,
The response generation means 23 generates a processing completion response signal END including return data, and the END signal is returned to the primary station as a response to the CRQ signal.

このEND信号を一次局10が受信すると、データを受
領したことを通知する肯定応答信号ACKを作成して二
次層20に送出し、そのACK信号に対して二次層20
からACK信号が返送された時点で読み出し処理が完了
する。
When the primary station 10 receives this END signal, it creates an acknowledgment signal ACK notifying that it has received the data and sends it to the secondary layer 20.
The read process is completed at the time when an ACK signal is returned from the ACK signal.

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

しかしながら、上述した通信手順で一次局10と二次層
20との間で信号の授受を行った場合、定周期用タイマ
の時間Tcの長さにより以下のような問題が生じる。
However, when signals are exchanged between the primary station 10 and the secondary layer 20 using the communication procedure described above, the following problem occurs due to the length of the period Tc of the fixed-cycle timer.

(1)定周期タイマ30の時間Tcが短い場合。(1) When the time Tc of the fixed-cycle timer 30 is short.

通信網2にデータを送信し、またデータ取り込む部分(
例えば、要求信号作成手段12、応答解析手段13など
)の起動、停止、あるいは受信データの解析等の処理が
頻繁に繰り返されるので、小規模のマイクロコンピュー
タ装置などで通信用に専用のプロセッサを装備できない
ものでは、装置本来の処理(機器の制御、状態監視、計
測など)が圧迫され、装置の目的とする機能を充分に発
揮できなくなるという問題点が生じる。
The part that sends data to communication network 2 and imports data (
For example, processing such as starting and stopping request signal generation means 12, response analysis means 13, etc., or analysis of received data is frequently repeated, so a small-scale microcomputer device is equipped with a dedicated processor for communication. If this is not possible, the device's original processing (equipment control, status monitoring, measurement, etc.) will be strained, resulting in the problem that the device will not be able to fully perform its intended functions.

また、例えばデータの読み出し要求が発行された場合に
は、2次局側でデータを準備する処理の実行中に通信系
の処理、例えばCRQ信号の受信処理の割り込みが発生
すると、データの読み出し処理が中断されデータの準備
が完了するまでの時間が長くなるという不都合も生じる
For example, when a data read request is issued, if an interrupt occurs in communication system processing, such as CRQ signal reception processing, while data preparation processing is being executed on the secondary station side, the data read processing There is also the inconvenience that the process is interrupted and it takes a long time to complete data preparation.

さらに、二次局20の処理中にCRQ信号とWAK信号
とが短い時間間隔Tcで繰り返し送出されので、それら
の信号により通信網2が占有され、他の情報処理装置の
通信が妨げられるという問題点が生じる。
Furthermore, since the CRQ signal and WAK signal are repeatedly sent out at short time intervals Tc during processing by the secondary station 20, the communication network 2 is occupied by these signals, and communication of other information processing devices is hindered. A point occurs.

(2)定周期タイマ30の時間T〔が長い場合。(2) When the time T of the fixed-cycle timer 30 is long.

上述した問題は生じないが、例えば二次局側の処理が短
時間で終了する場合でも、最初にCRQ信号を送出して
WAK信号が返送された後、次にCRQ信号を送出する
タイミングとなる時間Tcの間、一次局は二次局の処理
結果を受信することができない。すなわち、時間16間
一次局10が待たされることとなり、通信システムの処
理効率が低下するという問題点が生じる。
Although the above-mentioned problem does not occur, for example, even if the processing on the secondary station side is completed in a short time, the CRQ signal is sent first, the WAK signal is returned, and then the next CRQ signal is sent. During the time Tc, the primary station cannot receive the processing results of the secondary station. That is, the primary station 10 is forced to wait for 16 hours, resulting in a problem that the processing efficiency of the communication system is reduced.

本発明は、−次、二次局間のデータ交換の際の通信網の
占有率を低減し、通信効率をより向上させることを目的
とする。
An object of the present invention is to reduce the occupancy rate of a communication network during data exchange between secondary and secondary stations, and to further improve communication efficiency.

(課題を解決するための手段〕 第1図は、本発明の原理説明図である。(Means for solving problems) FIG. 1 is a diagram explaining the principle of the present invention.

同図において、一次局10の要求作成手段3は、各種の
要求を作成する手段であり、例えば二次局20内に格納
されているデータの読み出し、あるいはそれらのデータ
に対す演算などの処理を要求する処理要求REQや、−
度出力した処理要求が引き続き有効であることを知らせ
る継続要求CRQ等の要求を出力する。
In the figure, the request creation means 3 of the primary station 10 is a means for creating various requests, and for example, reads out data stored in the secondary station 20 or performs processing on such data. Request processing request REQ, -
A request such as a continuation request CRQ is output to inform that the processing request outputted once is still valid.

応答解析手段4は、二次局20からの出力される応答を
解析する。
The response analysis means 4 analyzes the response output from the secondary station 20.

待ち時間管理手段5は、二次局20に処理完了を問い合
わせるまでの時間を管理する。
The waiting time management means 5 manages the time until the secondary station 20 is inquired about the completion of processing.

一次局通信制御手段6は、待ち時間管理手段5で管理さ
れる待ち時間に基づいて二次局20との通信タイミング
を制御する。
The primary station communication control means 6 controls the timing of communication with the secondary station 20 based on the waiting time managed by the waiting time managing means 5.

要求解析手段7は、一次局10から送出されるREQ、
CRQ等の要求を解析し、解析結果を一次局通信制御手
段9に出力する。
The request analysis means 7 receives the REQ sent from the primary station 10,
It analyzes requests such as CRQ and outputs the analysis results to the primary station communication control means 9.

一次局通信制御手段9は、要求解析手段7の解析結果に
基づいて、その要求に対する応答の作成を応答作成手段
8に指示する。
Based on the analysis result of the request analysis means 7, the primary station communication control means 9 instructs the response creation means 8 to create a response to the request.

応答作成手段8は、その一次局通信制御手段9の指示に
従って、例えばデータの返送までに時間を要する旨を一
次局10に伝える待機肯定応答WAK、あるいは返送デ
ータを含む処理完了応答ENDなどを等の応答を作成し
て通信網2に送出する。
In accordance with the instructions from the primary station communication control means 9, the response creation means 8 generates, for example, a standby acknowledgment WAK that informs the primary station 10 that it will take time to send back the data, or a processing completion response END that includes the returned data. A response is created and sent to the communication network 2.

また、上記の待ち時間管理手段5は、例えば要求作成手
段3に与えられる処理要求に関する情報から、二次局2
0からデータが返送されるまでの時間を予測し、待ち時
間を決定するようにしてもよい。
Further, the above-mentioned waiting time management means 5 calculates, for example, from the information regarding the processing request given to the request creation means 3,
The waiting time may be determined by predicting the time from 0 until the data is returned.

第1図に破線で示した部分は、請求項3記載の発明に対
応した原理説明図である。
The part indicated by the broken line in FIG. 1 is a diagram for explaining the principle of the invention according to claim 3.

二次局20の所要時間予測手段1は、要求解析手段7で
の解析結果に基づいて一次局通信制御手段9から出力さ
れる情報から、要求された処理に要する時間を予測し、
その処理時間を応答作成手段8に出力する。
The required time prediction means 1 of the secondary station 20 predicts the time required for the requested processing from the information output from the primary station communication control means 9 based on the analysis result by the request analysis means 7,
The processing time is output to the response creation means 8.

応答作成手段8は、その処理時間を予測処理時間情報と
して、一次局10に対する応答に付加して送出する。な
お、この応答作成手段8においては、予測された処理時
間から待ち時間を求め、その待ち時間情報を応答に付加
して一次局10に送出することもできる。
The response creation means 8 adds the processing time to the response to the primary station 10 as predicted processing time information and sends it out. Note that the response creation means 8 can also calculate the waiting time from the predicted processing time, add the waiting time information to the response, and send it to the primary station 10.

一次局10側の時間管理手段5aは、上記の予測時間情
報(又は待ち時間情報)に基づいて、CRQ信号等の送
出タイミングを決定し、一次局通信制御手段6に指示す
る。
The time management means 5a on the primary station 10 side determines the transmission timing of the CRQ signal etc. based on the above predicted time information (or waiting time information) and instructs the primary station communication control means 6.

〔作  用〕[For production]

請求項1記載の発明では、待ち時間管理手段5は、二次
局20での処理の終了に合わせて継続要求CRQ等の送
出タイミングを決定する。
In the first aspect of the invention, the waiting time management means 5 determines the timing for sending the continuation request CRQ, etc. in accordance with the completion of processing at the secondary station 20.

これにより、処理が終了するタイミングで継続要求CR
Q等を送出できるので、二次局20での処理に時間がか
かる場合にも、処理中に継続要求CRQと待機肯定応答
WAKとが繰り返し送出されて、それらの信号に、より
通信tIR2が占有されるのを防止できる。
As a result, the continuation request CR is issued at the timing when the process ends.
Q, etc. can be sent, so even if processing at the secondary station 20 takes time, the continuation request CRQ and standby acknowledgment WAK are repeatedly sent during processing, and these signals occupy more communication tIR2. You can prevent this from happening.

また、請求項3記載の発明では、二次局20の所要時間
予測手段1が、要求された処理内容から処理に要する時
間を予測し、その予測処理時間情報を一次局10に返送
し、一次局10側では、その予測処理時間情報に基づい
てCRQ信号等の送出タイミングを決定する。
Further, in the invention as claimed in claim 3, the required time prediction means 1 of the secondary station 20 predicts the time required for processing from the requested processing content, returns the predicted processing time information to the primary station 10, and On the station 10 side, the transmission timing of the CRQ signal etc. is determined based on the predicted processing time information.

従って、一次局10からは、二次局20の処理が終了す
るタイミングで、CRQ等が送出されるので、処理待ち
の間CRQ、WAKなどが繰り返し送出され、それらの
信号により通信!ii2が占有さることがなくなる。
Therefore, CRQ, etc. are sent from the primary station 10 at the timing when the processing of the secondary station 20 is completed, so CRQ, WAK, etc. are repeatedly sent while waiting for processing, and communication is performed using these signals! ii2 is no longer occupied.

また、CRQ等の信号が送出されるタイミングが固定さ
れていないので、二次局20での処理が終了したなら、
一次局10は直ちにその処理結果を受は取ることができ
る。よって、従来のように継続要求CRQ等の送出タイ
ミングとなるまで、一次局10が待たされることがなく
なり、システムの通信効率が向上する。
Also, since the timing at which signals such as CRQ are sent is not fixed, once the processing at the secondary station 20 is completed,
The primary station 10 can immediately receive the processing results. Therefore, the primary station 10 is not forced to wait until the timing to send a continuation request CRQ or the like as in the past, and the communication efficiency of the system is improved.

〔実  施  例〕〔Example〕

以下、本発明の実施例を図面を参照しながら説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第2図は、本発明の第1実施例のデータ通信システムの
システム構成図である。
FIG. 2 is a system configuration diagram of a data communication system according to a first embodiment of the present invention.

以下の説明では、第10 図の従来のデータ通信システ
ムにおいて述べた各手段と同じものには、同じ符号を引
用しそれらの説明を省略する。
In the following explanation, the same reference numerals will be used for the same means as those described in the conventional data communication system shown in FIG. 10, and the explanation thereof will be omitted.

第2図の待ち時間管理手段31は、二次局20での処理
の終了に合わせたタイミングで、一次局通信制御手段1
4に継続要求CRQなどの送出を指示する手段である。
The waiting time management means 31 in FIG.
4 to send a continuation request CRQ, etc.

待ち時間管理手段31が二次局20の処理の終了を検出
する方法としては、例えば一次局10と二次局20とが
近接して配置されている場合には、両者を専用の信号線
で結び、その信号線により二次局20での処理の終了を
通知するようにすることで実現できる。
For example, when the primary station 10 and the secondary station 20 are located close to each other, a method for the waiting time management means 31 to detect the end of the processing of the secondary station 20 is to connect them using a dedicated signal line. This can be realized by connecting the signal line and notifying the completion of processing at the secondary station 20 through the signal line.

次に、上記第1実施例における一次局10と二次局20
との動作を、第3図の通信手順の説明図を参照して説明
する。
Next, the primary station 10 and the secondary station 20 in the first embodiment
The operation will be explained with reference to the explanatory diagram of the communication procedure in FIG.

先ず、一次局通信制御手段14の指示により、要求作成
手段12は、何らかの処理要求REQ、例えば二次局2
0内のデータの読み出し処理要求を作成し通信網2に送
出する。
First, in response to an instruction from the primary station communication control means 14, the request creation means 12 generates some processing request REQ, for example, from the secondary station 2.
A read processing request for data in 0 is created and sent to the communication network 2.

二次局20側では、要求解析手段22がその処理要求R
EQを解析し、要求された処理が何であるかを一次局通
信制御手段24に知らせる。一次局通信制御手段24は
、その解析結果から要求された処理を終了するまでに一
定の時間を要すると判断したなら、応答作成手段23に
待機肯定応答WAKの作成を指示し、その応答信号WA
Kを通信!i12に送出させる。
On the secondary station 20 side, the request analysis means 22 processes the processing request R.
It analyzes the EQ and notifies the primary station communication control means 24 of the requested processing. If the primary station communication control means 24 determines from the analysis result that a certain amount of time is required to complete the requested process, it instructs the response generation means 23 to generate a standby acknowledgment WAK, and sends the response signal WAK.
Communicate K! i12 to send it.

二次局20の処理中は、待ち時間管理手段31からはC
RQの送出の指示は出されず、二次局20での処理の終
了を検出した時点で、CRQの送出の指示が一次局通信
制御手段14に出力される。
During processing at the secondary station 20, the waiting time management means 31 sends C
An instruction to send an RQ is not issued, and an instruction to send a CRQ is output to the primary station communication control means 14 at the time when the completion of processing at the secondary station 20 is detected.

そして、一次局10からのCRQ信号に応答して、二次
局20から処理により得られた返送データを含む処理完
了応答ENDが送出される。一次局10では、返送デー
タを受信したなら肯定応答ACKを送出し、二次局20
から肯定応答ACKが出力された時点で一連の処理を終
わる。
Then, in response to the CRQ signal from the primary station 10, the secondary station 20 sends out a processing completion response END containing the return data obtained through the processing. When the primary station 10 receives the return data, it sends an acknowledgment ACK, and the secondary station 20
The series of processing ends when an affirmative response ACK is output from.

上記第1実施例では、CRQなどを送出するタイミング
が固定的に決められていないので、二次局20での処理
中にCRQとAWKとが、一定時間間隔で繰り返し送出
されることがなく、それらの信号により通信網2が占有
されることがなくなる。
In the first embodiment, since the timing of transmitting CRQ and the like is not fixed, CRQ and AWK are not repeatedly transmitted at fixed time intervals during processing at the secondary station 20. The communication network 2 is no longer occupied by those signals.

また、二次局20の処理の終了を検出した時点でCRQ
が出力され、そのCRQに応答して直ちに二次局20か
ら処理結果が返送されるので、CRQの出力タイミング
となる時間まで、一次局10が二次局20の処理結果を
待たされることがなくなり、システムの通信効率が向上
する。
Also, at the time when the end of the processing of the secondary station 20 is detected, the CRQ
is output and the processing result is immediately returned from the secondary station 20 in response to the CRQ, so the primary station 10 is not forced to wait for the processing result from the secondary station 20 until the time when the CRQ is output. , the communication efficiency of the system is improved.

次に、本発明の第2実施例を、第4図のシステム構成図
を参照して説明する。
Next, a second embodiment of the present invention will be described with reference to the system configuration diagram of FIG. 4.

この実施例では、待ち時間管理手段32は、要求作成手
段12に与えられる情報、すなわち二次層20にどのよ
うな処理を要求するかを示す情報から、二次層20でど
のくらいの処理時間を必要とするかを判断し、その処理
時間を見込んでCRQ等を送出するまでの待ち時間を決
定するようにしている。
In this embodiment, the waiting time management means 32 determines how much processing time it will take in the secondary layer 20 based on information given to the request creation means 12, that is, information indicating what kind of processing is requested from the secondary layer 20. It is determined whether a CRQ or the like is required, and the waiting time until sending out a CRQ or the like is determined by taking into account the processing time.

そこで、例えば待ち時間管理手段32内に、処理内容と
その処理の所要時間とを対応づけたテーブルを設け、そ
のテーブルを参照して処理に要する時間を求め、その処
理時間からCRQ等を送出するまでの待ち時間を決定し
ている。
Therefore, for example, a table is provided in the waiting time management means 32 that correlates the processing contents with the time required for the processing, the time required for the processing is determined by referring to the table, and a CRQ etc. is sent based on the processing time. The waiting time is determined.

ここで、上記第2実施例の一次局10と二次層20との
動作を、第5図の通信手順の説明図を参照して説明する
Here, the operation of the primary station 10 and the secondary layer 20 of the second embodiment will be explained with reference to the explanatory diagram of the communication procedure in FIG. 5.

同図に示すように、先ず一次局10から二次層20に対
して何らかの処理要求REQが送出されると、その処理
が一定の処理時間を要するものであれば、二次層20か
ら待機肯定応答WAKが返送される。
As shown in the figure, first, when some processing request REQ is sent from the primary station 10 to the secondary layer 20, if the processing requires a certain amount of processing time, the secondary layer 20 issues a standby response. A response WAK is sent back.

このとき、一次局10の待ち時間管理手段32では、要
求した処理内容から処理に必要な時間から待ち時間T−
を求め、第5図に示すように時間T8が経過した時点で
、CRQの送出を指示する。
At this time, the waiting time management means 32 of the primary station 10 calculates the waiting time T - from the time required for processing based on the requested processing content.
is determined, and when time T8 has elapsed as shown in FIG. 5, the transmission of CRQ is instructed.

このとき二次層20では必要な処理が終了しているので
、そのCRQに応答して処理結果と共に終了応答END
が一次局20に返送される。
At this time, since the necessary processing has been completed in the secondary layer 20, in response to the CRQ, a completion response END is sent along with the processing results.
is sent back to the primary station 20.

上記第2実施例では、一次局10から要求された処理内
容により処理に要する時間を求め、その処理時間が経過
した後、CRQ等を送出するようにしているので1、二
次層20での処理中にCRQ。
In the second embodiment, the time required for processing is determined based on the processing content requested by the primary station 10, and after the processing time has elapsed, CRQ etc. are sent. CRQ during processing.

WAK等の信号が送出されて、通信網2がそれらの信号
で占有されることがなくなる。また、二次層20の処理
が終了したなら直ちに処理結果が一次局10に返送され
るので、一次局IOが待たされることもなくなり、シス
テムの通信効率が向上する。
Signals such as WAK are sent out, and the communication network 2 is no longer occupied by those signals. Further, as soon as the processing of the secondary layer 20 is completed, the processing result is sent back to the primary station 10, so the primary station IO is not kept waiting, and the communication efficiency of the system is improved.

次に、本発明の第3実施例を、第6図のシステム構成図
及び第7図の通信手順の説明図を参照して説明する。
Next, a third embodiment of the present invention will be described with reference to a system configuration diagram in FIG. 6 and an explanatory diagram of a communication procedure in FIG. 7.

この実施例では、二次層20の所要時間予測手段34は
、一次局10から要求された処理内容から処理に必要な
時間を予測し、その予測処理時間を応答作成手段23に
出力する。応答作成手段23は、予測処理時間に基づい
て待ち時間T−を作成し、第7図に示すように、待ち時
間T9を待機肯定応答WAKに付加して通信網2に送出
する。
In this embodiment, the required time prediction means 34 of the secondary layer 20 predicts the time required for processing from the processing content requested by the primary station 10, and outputs the predicted processing time to the response generation means 23. The response creation means 23 creates a waiting time T- based on the predicted processing time, adds the waiting time T9 to the standby acknowledgment WAK, and sends it to the communication network 2, as shown in FIG.

一次局10の応答解析手段13でWAKが認識されと、
そのWAKに付加された待ち時間T8が待ち時間管理手
段33に出力される。
When the WAK is recognized by the response analysis means 13 of the primary station 10,
The waiting time T8 added to the WAK is output to the waiting time management means 33.

待ち時間管理手段33は、待ち時間Twが経過したとき
一次局通信制御手段14にCRQの送出を指示する。
The waiting time management means 33 instructs the primary station communication control means 14 to send a CRQ when the waiting time Tw has elapsed.

このとき二次層20では、要求された処理が終了してい
るので、このCRQに応答して処理結果のデータと共に
処理完了応答ENDが一次局10に返送される。
At this time, the secondary layer 20 has completed the requested processing, so in response to this CRQ, a processing completion response END is sent back to the primary station 10 together with the processing result data.

上記第3実施例では、二次層20が、一次局10から要
求された処理に要する時間を予測し、その予測した処理
時間から待ち時間T。を決定してWAK信号に付加して
一次局10に送出している。
In the third embodiment, the secondary layer 20 predicts the time required for processing requested by the primary station 10, and calculates the waiting time T from the predicted processing time. is determined, added to the WAK signal, and sent to the primary station 10.

一次局10側では、その待ち時間T1.l経過したとき
にCRQを送出するようにしている。
On the primary station 10 side, the waiting time T1. A CRQ is sent when l has elapsed.

従って、二次層20の処理中にはCRQ及びWAK等の
信号が送出されず、それらの信号により通信網2が占有
され、通信効率が低下するのを防止できる。また、二次
層20に要求された処理内容から必要な処理時間を予測
するようにしたので、実際に処理に要する時間をより正
確に予測することができる。
Therefore, signals such as CRQ and WAK are not sent during processing in the secondary layer 20, and it is possible to prevent these signals from occupying the communication network 2 and reducing communication efficiency. Furthermore, since the required processing time is predicted from the processing content requested of the secondary layer 20, the time actually required for processing can be predicted more accurately.

さらに、第6図に破線で示した部分は、所要時間予測手
段34が、二次層アプリケーション21の情報を用いて
、要求された処理に要する時間を予測する場合の構成を
示している。この場合、二次層アプリケーションが実行
する二次層20例の処理の緊急性、プロセッサの現状負
荷量などを考慮して、処理に要する時間を予測できるの
で、より確度の高い待ち時間Twを算出して一次局10
に送出することができる。
Further, the portion indicated by a broken line in FIG. 6 shows a configuration in which the required time prediction means 34 uses information of the secondary layer application 21 to predict the time required for the requested processing. In this case, the time required for processing can be predicted by taking into consideration the urgency of the processing of the 20 examples of the secondary layer executed by the secondary layer application, the current load on the processor, etc., so a more accurate waiting time Tw can be calculated. Primary station 10
can be sent to.

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

本発明によれば、二次局側の処理が終了するまでの時間
だけ待ってから、CRQ等の要求を二次局に送出するよ
うにしたので、二次局の処理中にそれらの要求及び応答
が繰り返し送出されて通信網が占有されるのを防止でき
る。また、二次局での処理が終了した時点でCRQ等の
要求が送出されるので、一次局が次のCRQ等の送出タ
イミングまで待たされることがなくなり、システムの通
信効率がさらに向上する。
According to the present invention, requests such as CRQ are sent to the secondary station after waiting for the time until the processing on the secondary station side is completed. It is possible to prevent the communication network from being monopolized by repeated sending of responses. Further, since a request such as a CRQ is sent out when the processing at the secondary station is completed, the primary station is not forced to wait until the timing to send out the next CRQ, etc., and the communication efficiency of the system is further improved.

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

第1図は、本発明の原理説明図、 第2図は、第1実施例のシステム構成図、第3図は、第
1実施例の通信手順の説明図、第4図は、第2実施例の
システム構成図、第5図は、第2実施例の通信手順の説
明図、第6図は、第3実施例のシステム構成図、第7図
は、第3実施例の通信手順の説明図、第8図は、通信シ
ステムの構成例を示す図、第9図は、一般化したデータ
通信システトの概要を示す図、 第10図は、従来のデータ通信システムのシステム構成
図、 第11図は、従来のデータ通信システムの通信手順の説
明図である。 1・・・所要時間予測手段、 2・・・通信網、 3・・・要求作成手段、 4・・・応答解析手段、 5.5a・・・待ち時間管理手段、 6・・・一次局通信制御手段、 7・・・要求解析手段、 8.8a・・・応答作成手段、 9・・・一次局通信制御手段。 特許出願人  富士電機株式会社 ′#3°j!施例の^4盲千11廟の吉丸1月図第 図 (a) (b) 」百tシステムの構成4列をホず図
Fig. 1 is an explanatory diagram of the principle of the present invention, Fig. 2 is a system configuration diagram of the first embodiment, Fig. 3 is an explanatory diagram of the communication procedure of the first embodiment, and Fig. 4 is a diagram of the second embodiment. Example system configuration diagram, FIG. 5 is an explanatory diagram of the communication procedure of the second embodiment, FIG. 6 is a system configuration diagram of the third embodiment, and FIG. 7 is an explanation of the communication procedure of the third embodiment. 8 is a diagram showing a configuration example of a communication system, FIG. 9 is a diagram showing an overview of a generalized data communication system, FIG. 10 is a system configuration diagram of a conventional data communication system, and FIG. The figure is an explanatory diagram of a communication procedure of a conventional data communication system. 1...Required time prediction means, 2...Communication network, 3...Request creation means, 4...Response analysis means, 5.5a...Waiting time management means, 6...Primary station communication Control means, 7... Request analysis means, 8.8a... Response creation means, 9... Primary station communication control means. Patent applicant Fuji Electric Co., Ltd.'#3°j! Example of ^4 Yoshimaru January map of the 1111 Blind Mausoleum Diagram (a) (b) A diagram of the four rows of the configuration of the 100-ton system

Claims (1)

【特許請求の範囲】 1)各種の処理要求を発行する一次局(10)と、一次
局(10)からの要求に基づいて処理を実行し、処理結
果を一次局(10)に返送する二次局(20)と、それ
ら一次局(10)及び二次局(20)を接続する通信網
(2)とで構成されるデータ通信システムにおいて、 一次局(10)が、 二次局(20)に対する処理要求を作成する要求作成手
段(3)と、 二次局(20)からの応答を解析する応答解析手段(4
)と、 二次局での処理の完了を問い合わせるまでの待ち時間を
管理する待ち時間管理手段(5)と、この待ち時間管理
手段(5)の指示に従って二次局(20)との通信を行
う一次局通信制御手段(6)とを備え、 二次局(20)が、 一次局(10)からの処理要求を解析する要求解析手段
(7)と、 一次局(10)に対する応答を作成する応答作成手段(
8)と、 一次局(10)との通信を行う一次局通信制御手段(9
)とを備えることを特徴とするデータ通信システム。 2)前記待ち時間管理手段(5)は、要求作成手段(3
)で作成される処理要求に基づいて待ち時間を決定する
ことを特徴とする請求項1記載のデータ通信システム。 3)各種の処理要求を発行する一次局(10)と、一次
局(10)からの要求に基づいて処理を実行し、処理結
果を一次局(10)に返送する二次局(20)と、それ
ら一次局(10)及び二次局(20)を接続する通信網
(2)とで構成されるデータ通信システムにおいて、 二次局(20)が、 一次局(10)からの処理要求を解析する要求解析手段
(7)と、 一次局(10)との通信を行う一次局通信制御手段(9
)と、 一次局(10)から要求された処理に要する時間を予測
する所要時間予測手段(1)と、 この所要時間予測手段(1)で予測された処理時間情報
を、応答に付加して一次局(10)に返送する応答作成
手段(8a)とを備え、 一次局(10)が、 二次局(20)に対する処理要求を作成する要求作成手
段(3)と、 二次局からの応答を解析する応答解析手段(4)と、 この応答解析手段(4)で解析される応答に付加された
処理時間情報に基づいて二次局での処理の完了を問い合
わせるタイミングを決定する待ち時間管理手段(5a)
と この待ち時間管理手段(5a)の指示に従って二次局(
20)との通信を行う局通信制御手段(6)とを備える
ことを特徴とするデータ通信システム。
[Claims] 1) A primary station (10) that issues various processing requests, and a secondary station that executes processing based on requests from the primary station (10) and returns processing results to the primary station (10). In a data communication system consisting of a next station (20) and a communication network (2) that connects the primary station (10) and the secondary station (20), the primary station (10) ), and a response analysis means (4) that analyzes a response from the secondary station (20).
), a waiting time management means (5) for managing the waiting time until inquiring about the completion of processing at the secondary station, and communication with the secondary station (20) according to instructions from the waiting time management means (5). The secondary station (20) includes request analysis means (7) for analyzing the processing request from the primary station (10), and creating a response to the primary station (10). response creation means (
8) and primary station communication control means (9) that communicates with the primary station (10).
) A data communication system comprising: 2) The waiting time management means (5) includes a request creation means (3).
2. The data communication system according to claim 1, wherein the waiting time is determined based on a processing request created in ). 3) A primary station (10) that issues various processing requests, and a secondary station (20) that executes processing based on requests from the primary station (10) and returns processing results to the primary station (10). In a data communication system consisting of a communication network (2) connecting the primary station (10) and the secondary station (20), the secondary station (20) receives a processing request from the primary station (10). A request analysis means (7) for analyzing a request, and a primary station communication control means (9) for communicating with a primary station (10).
), a required time prediction means (1) for predicting the time required for processing requested by the primary station (10), and processing time information predicted by the required time prediction means (1), which is added to the response. response creation means (8a) for sending back to the primary station (10); A response analysis means (4) that analyzes the response; and a waiting time that determines the timing to inquire about the completion of processing at the secondary station based on the processing time information added to the response analyzed by the response analysis means (4). Management means (5a)
The secondary station (
20) A data communication system comprising: a station communication control means (6) for communicating with the station communication control means (6).
JP2231295A 1990-08-31 1990-08-31 Data communication system Pending JPH04115649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2231295A JPH04115649A (en) 1990-08-31 1990-08-31 Data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2231295A JPH04115649A (en) 1990-08-31 1990-08-31 Data communication system

Publications (1)

Publication Number Publication Date
JPH04115649A true JPH04115649A (en) 1992-04-16

Family

ID=16921375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2231295A Pending JPH04115649A (en) 1990-08-31 1990-08-31 Data communication system

Country Status (1)

Country Link
JP (1) JPH04115649A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002358282A (en) * 2001-06-04 2002-12-13 Nec Eng Ltd Communication control mode in server client type system
JP2010049543A (en) * 2008-08-22 2010-03-04 Fuji Electric Systems Co Ltd Programmable controller, input/output device and operation parameter access system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002358282A (en) * 2001-06-04 2002-12-13 Nec Eng Ltd Communication control mode in server client type system
JP2010049543A (en) * 2008-08-22 2010-03-04 Fuji Electric Systems Co Ltd Programmable controller, input/output device and operation parameter access system

Similar Documents

Publication Publication Date Title
JPH04115649A (en) Data communication system
KR19990074982A (en) Control device and method of switching network management system
JPS5887621A (en) Information transmission and reception system
JPS63155249A (en) Inter-equipment communication system
KR940003442B1 (en) Information collective method of optical transmission apparatus
JP2573332B2 (en) Data transfer control method
JPH0332245A (en) Alarm information collection system
KR950005587B1 (en) Method measuring intelligent network protocol traffic for electronic exchanger
JPH10233792A (en) Polling system/method
JPS61278235A (en) Data collection system of optical transmission system
JPS6315546A (en) Reply confirming system
Amiot et al. Evaluating a remote batch processing system
JP3861649B2 (en) Message communication method between modules
JPS6376541A (en) Communication control system for loop-like communication system
JPH11234768A (en) Telemeter information collection system and method therefor
JPS5975331A (en) Bus transferring system
JP3042198B2 (en) Switching event data simulation method
JPS63227149A (en) Communication control method in loop communication system
JPH04144446A (en) Device for collecting alarm information
JPH04181836A (en) Communication system
KR20000046557A (en) Apparatus for processing output of execution result in intelligent peripheral
JP2000244539A (en) Data collecting transmitter
JPH06105928B2 (en) Half-duplex line data transmission / reception method
JPH0342939A (en) Polling control system for data communication
JPH0685943A (en) Communication control system for computer