JPH0418500B2 - - Google Patents

Info

Publication number
JPH0418500B2
JPH0418500B2 JP60292097A JP29209785A JPH0418500B2 JP H0418500 B2 JPH0418500 B2 JP H0418500B2 JP 60292097 A JP60292097 A JP 60292097A JP 29209785 A JP29209785 A JP 29209785A JP H0418500 B2 JPH0418500 B2 JP H0418500B2
Authority
JP
Japan
Prior art keywords
transmission
control unit
communication control
buffer memory
flag
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
JP60292097A
Other languages
Japanese (ja)
Other versions
JPS62152252A (en
Inventor
Koji Kobayashi
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.)
Azbil Corp
Original Assignee
Azbil Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Azbil Corp filed Critical Azbil Corp
Priority to JP60292097A priority Critical patent/JPS62152252A/en
Publication of JPS62152252A publication Critical patent/JPS62152252A/en
Publication of JPH0418500B2 publication Critical patent/JPH0418500B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、判断処理機能を有する主制御部によ
り、相手側とのデータ送受信を行なう通信制御方
式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a communication control system in which a main control unit having a judgment processing function transmits and receives data to and from a counterpart party.

〔従来の技術〕[Conventional technology]

ビル管理制御装置、プロセス制御装置等におい
ては、分散して配置された各機器間を伝送路によ
り接続し、互にデータの送受信を行ないながら各
機器が所定の制御を行なうものとなつており、各
機器には、局部的な制御上の判断およびデータ送
受信の制御を行なうため、判断処理機能を有する
主制御部が設けてあり、データ送受信は、伝送路
と主制御部との間へ設けた判断処理機能を備えな
い通信用のインターフエイスを介し、主制御部の
制御により行なうものとなつている。
In building management control equipment, process control equipment, etc., each piece of equipment is distributed and connected through a transmission path, and each piece of equipment performs predetermined control while transmitting and receiving data to and from each other. Each device is equipped with a main control section that has a decision processing function in order to make local control decisions and control data transmission and reception. This is carried out under the control of the main control unit via a communication interface that does not have a judgment processing function.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、主制御装置をマイクロプロセツサ等の
プロセツサにより構成する場合、主制御装置がデ
ータ送受信の通信制御まで行なうため、相手側の
呼出および応答確認等の通信手順を含むプログラ
ムを必要とし、これの実行により稼働負荷が増大
すると共に、受信データの量が大となるときはプ
ロセツサによる処理速度との関係上、大容量のバ
ツフアメモリを別途に設けねばならず、構成が複
雑化し、高価となる問題を生じている。
However, when the main control device is configured with a processor such as a microprocessor, the main control device performs communication control such as data transmission and reception, and therefore requires a program that includes communication procedures such as calling the other party and confirming the response. In addition to increasing the operating load due to execution, when the amount of received data becomes large, it is necessary to separately provide a large-capacity buffer memory due to the processing speed of the processor, which causes problems such as the configuration becoming complicated and expensive. It is occurring.

〔問題点を解決するための手段〕[Means for solving problems]

前述の問題を解決するため、本発明はつぎの手
段により構成するものとなつている。
In order to solve the above-mentioned problem, the present invention is constructed by the following means.

すなわち、本願の第1発明(特許請求の範囲第
1項記載の発明)では、複数の通信装置を備え互
いにデータの送受信を行う通信制御方式であつ
て、各通信装置は、伝送路へ接続された通信制御
部と、この通信制御部を介して他の通信装置とデ
ータの送受信を行なう主制御部とを備えると共
に、主制御部へ受信データを蓄積する第1の受信
バツフアメモリを設け、通信制御部へ受信データ
を蓄積する第2の受信バツフアメモリおよび送信
データを蓄積する送信バツフアメモリを設け、か
つ、主制御部および通信制御部の共用メモリを設
け、第1の受信バツフアメモリが満杯になつたと
き主制御部が共用メモリへ受信保留フラグをセツ
トし、この受信保留フラグのセツト状況に応じて
通信制御部が第2の受信バツフアメモリへ受信デ
ータを蓄積し、この第2の受信バツフアメモリも
満杯になれば通信制御部が相手側に対し自己への
送信を中止させる送信保留信号を送出すると共に
送信保留信号送信済フラグをセツトし、送信バツ
フアメモリが満杯となつたとき通信制御部が共用
メモリへ第1の送信保留フラグをセツトし、この
第1の送信保留フラグのセツト状況に応じて主制
御部が通信制御部への送信データの送出を中止
し、第1の受信バツフアメモリが満杯でなくなれ
ば、主制御部は、受信保留フラグをリセツトし、
かつ通信制御部へ割込信号を送出し、この割込信
号に応じて通信制御が第2の受信バツフアメモリ
の内容を第1の受信バツフアメモリへ転送し、受
信保留フラグがリセツト状況にあつて送信保留信
号送信済フラグがセツト状況にあるとき、通信制
御部は、相手側に対して自己への送信を許す送信
許容信号を送出し、他の通信装置からの送信保留
信号を受信したとき、通信制御部は、第2の送信
保留フラグをセツトすることにより、他の通信装
置への送信データの送出を中止し、他の通信装置
からの送信許容信号を受信したとき、通信制御部
は、第2の送信保留フラグをリセツトし、送信を
再開するようにしている。
That is, the first invention of the present application (the invention described in claim 1) is a communication control system that includes a plurality of communication devices and transmits and receives data to and from each other, and each communication device is connected to a transmission path. a communication control unit, and a main control unit that transmits and receives data to and from other communication devices via the communication control unit, and a first reception buffer memory that stores received data in the main control unit. A second reception buffer memory for storing received data in the main control part and a transmission buffer memory for storing transmission data in the main control part and a shared memory for the main control part and the communication control part are provided. The control section sets a reception suspension flag in the shared memory, and the communication control section stores reception data in the second reception buffer memory according to the setting status of the reception suspension flag, and when the second reception buffer memory is also full. The communication control unit sends a transmission hold signal to the other party to stop transmission to itself, and sets a transmission hold signal sent flag, and when the transmission buffer memory becomes full, the communication control unit sends the first transmission hold signal to the shared memory. A transmission suspension flag is set, and the main control section stops sending the transmission data to the communication control section according to the setting status of the first transmission suspension flag, and when the first reception buffer memory is no longer full, the main control section The unit resets the reception pending flag,
Then, an interrupt signal is sent to the communication control unit, and in response to this interrupt signal, the communication control transfers the contents of the second reception buffer memory to the first reception buffer memory, and when the reception hold flag is reset, the transmission is put on hold. When the signal transmission completed flag is set, the communication control unit sends a transmission permission signal to the other party to allow transmission to itself, and when it receives a transmission hold signal from another communication device, it controls the communication. The communication control unit stops sending the transmission data to the other communication device by setting the second transmission suspension flag, and when the transmission permission signal is received from the other communication device, the communication control unit sets the second transmission suspension flag. The transmission pending flag of the terminal is reset and transmission is restarted.

また、本願の第2発明(特許請求の範囲第2項
記載の発明)では、第1発明とその主要部を同一
とし、第2の受信バツフアメモリも満杯になれば
通信制御部が相手側に対し自己への送信を中止さ
せる送信保留信号を送出すると共に再送信タイマ
をプリセツトし、第1の受信バツフアメモリが満
杯でなくなれば、主制御部は、受信保留フラグを
リセツトし、かつ通信制御部へ割込信号を送出
し、この割込信号に応じて通信制御部が第2の受
信バツフアメモリの内容を第1の受信バツフアメ
モリへ転送し、再送信タイマがタイムアウトし、
かつ、第2の受信バツフアメモリが満杯のとき、
通信制御部は、送信保留信号を再送出すると共
に、再送信タイマを再プリセツトし、他の通信装
置からの送信保留信号を受信したとき、通信制御
部は、送信保留タイマをプリセツトし、かつ、第
2の送信保留フラグをセツトすることにより、他
の通信装置への送信データの送出を中止し、送信
保留タイマがタイムアウトしたとき、通信制御部
は、第2の送信保留フラグをリセツトし、送信を
再開するようにしている。
In addition, in the second invention of the present application (the invention described in claim 2), the main parts are the same as the first invention, and when the second reception buffer memory is also full, the communication control unit sends the communication to the other party. The main control unit sends a transmission hold signal to stop transmission to itself and presets the retransmission timer, and when the first reception buffer memory is no longer full, the main control unit resets the reception hold flag and sends an allocation to the communication control unit. the communication control unit transfers the contents of the second reception buffer memory to the first reception buffer memory in response to the interrupt signal, and the retransmission timer times out;
And when the second reception buffer memory is full,
The communication control section retransmits the transmission suspension signal and re-presets the retransmission timer, and when receiving the transmission suspension signal from another communication device, the communication control section presets the transmission suspension timer, and By setting the second transmission suspension flag, the transmission of the transmission data to another communication device is stopped, and when the transmission suspension timer times out, the communication control unit resets the second transmission suspension flag and stops sending the transmission data to another communication device. I'm trying to restart it.

〔作用〕[Effect]

したがつて、その第1発明によれば、以下のよ
うな作用がある。
Therefore, the first invention has the following effects.

主制御部の他に備えた通信制御部が通信上の各
制御を行なうと共に、両制御部へ受信用のバツフ
アメモリが分散され、特に別途のバツフアメモリ
を設けることが不要となる。
A communication control section provided in addition to the main control section performs various communication controls, and reception buffer memories are distributed to both control sections, making it unnecessary to provide a separate buffer memory.

第1および第2の受信バツフアメモリが共に満
杯となれば、相手側に対し送信保留信号が送出さ
れると共に、送信保留信号送信済フラグがセツト
される。送信保留信号を受信した相手側の通信制
御部は、第2の送信保留フラグをセツトすること
により、他の通信装置への送信データの送出を中
止する。このようにして、相手側が送信を中断す
るため、より以上の受信データが到来しなくな
る。
When both the first and second reception buffer memories are full, a transmission suspension signal is sent to the other party, and a transmission suspension signal transmission completed flag is set. The communication control unit of the other party that has received the transmission suspension signal sets the second transmission suspension flag to stop sending the transmission data to the other communication device. In this way, no more received data will arrive because the other party interrupts transmission.

第1の受信バツフアメモリが満杯でなくなれ
ば、割込信号の送出に応じ、第2の受信バツフア
メモリの内容が第1の受信バツフアメモリへ直ち
に転送され、主制御部の受信データ処理が速やか
に円滑に行われる。また、これと同時に、共用メ
モリの受信保留フラグがリセツトされる。第2の
受信バツフアメモリが満杯であつた場合には、送
信保留信号送信済フラグがセツトされている。し
たがつて、この場合、受信保留フラグがリセツト
状況にあつて送信保留信号送信済フラグがセツト
状況にあるとして、通信制御部が、相手側に対し
て送信許容信号を送出する。送信許容信号を受信
した相手側の通信制御部は、第2の送信保留フラ
グをリセツトする。これにより、相手側が送信を
再開し得る状態となる。
When the first receive buffer memory is no longer full, the contents of the second receive buffer memory are immediately transferred to the first receive buffer memory in response to the transmission of an interrupt signal, allowing the main control unit to quickly and smoothly process the received data. be exposed. At the same time, the reception pending flag in the shared memory is reset. If the second reception buffer memory is full, the transmission pending signal transmission completed flag is set. Therefore, in this case, the communication control unit sends a transmission permission signal to the other party, assuming that the reception suspension flag is reset and the transmission suspension signal transmission completed flag is set. The communication control section of the other party, which has received the transmission permission signal, resets the second transmission suspension flag. This allows the other party to resume transmission.

なお、送信バツフアメモリが満杯となれば、共
用メモリに第1の送信保留フラグがセツトされ、
主制御部からの通信制御への送信データの送出が
中止される。
Note that when the transmission buffer memory becomes full, the first transmission pending flag is set in the shared memory.
Sending of transmission data from the main control unit to communication control is stopped.

また、その第2発明によれば、第1発明の主要
作用に加え、送信許容信号の送受信が省略され、
送信保留信号の確実化が図られる。
Further, according to the second invention, in addition to the main effects of the first invention, the transmission and reception of the transmission permission signal is omitted,
The transmission hold signal is ensured.

〔実施例〕〔Example〕

以下、実施例を示す図によつて本発明の詳細を
説明する。
Hereinafter, details of the present invention will be explained with reference to figures showing examples.

第1図は構成を示すブロツク図であり、マイク
ロプロセツサ等のプロセツサ(以下、CPU)お
よびメモリ等からなる主制御部(以下、MCT)
1には、メモリ中の特定エリアを用いた第1の
受信バツフアメモリ(以下、RBM)111が設け
てあり、伝送路2と接続されたMCT11と同様な
通信制御部(以下、CCT)31には、メモリの
各々特定エリアを用い第2のRBM311および送
信バツフアメモリ(以下、SBM)321が設けて
ある。
Figure 1 is a block diagram showing the configuration, and the main control unit (hereinafter referred to as MCT) consists of a processor such as a microprocessor (hereinafter referred to as CPU), memory, etc.
1 1 is provided with a first reception buffer memory (hereinafter referred to as RBM) 11 1 using a specific area in the memory, and a communication control unit (hereinafter referred to as CCT) similar to the MCT 1 1 connected to the transmission line 2. 3 1 is provided with a second RBM 31 1 and a transmission buffer memory (hereinafter referred to as SBM) 32 1 , each using a specific area of memory.

また、MCT11とCCT31との共用メモリ(以
下、CMM)41が設けてあり、これに対しては
MCT11とCCT31との双方からフラグのセツト
およびリセツトが可能となつており、これらによ
つて通信装置(以下、CE)51が構成されてい
る。
In addition, a shared memory (hereinafter referred to as CMM) 4 1 is provided for MCT 1 1 and CCT 3 1 , and for this
It is possible to set and reset flags from both the MCT 11 and the CCT 31 , and these constitute a communication device (hereinafter referred to as CE) 51 .

一方、CE52も同様にMCT12,CCT32
CMM42により構成され、MCT12にはRBM1
2,CCT32にはRBM312およびSBM322
各々前述と同様に設けてあり、MCT11,12は、
各々CCT31,32を介し相手側とのデータ送受信
を行ない、図上省略した各種センサまたはスイツ
チ等からの入力データ送信、入力データおよび受
信データに基づく制御上の判断を行なうと共に、
図上省略した制御対象機器に対する出力データの
送出等を行なうものとなつている。
On the other hand, CE5 2 also has MCT1 2 , CCT3 2 ,
Consists of CMM4 2 , MCT1 2 has RBM1
1 2 and CCT3 2 are respectively provided with RBM31 2 and SBM32 2 in the same manner as described above, and MCT1 1 and 1 2 are
Each transmits and receives data to and from the other party via the CCTs 3 1 and 3 2 , transmits input data from various sensors or switches, etc. not shown in the diagram, and makes control decisions based on the input data and received data.
It is used to send output data to controlled equipment, which is omitted in the figure.

なお、伝送路2には、状況に応じより多数の
CE5が接続され、各々が必要にしたがつて相互
間の通信を行ない、あるいは、いずれかゞ他のす
べてに対して同一内容の送信を行ない、これらに
よつて全般的に統制のある制御が行なわれる。
In addition, depending on the situation, transmission path 2 may include a larger number of
The CE5s are connected, each communicating with each other as required, or transmitting the same content to all others, thereby providing overall disciplined control. It will be done.

また、MCT11,12は、CCT31,32から与
えられる受信データをRBM111,112へ一旦
蓄積し、これの内容を逐次CPUにより解読して
使用すると共に、送信データはCCT31,32へ送
出し、これをCCT31,32がSBM321,322
へ一旦蓄積してから伝送路2へ送信するものとな
つており、RBM111,112が受信データによ
り満杯となれば、CCT31,32がRBM311,3
2への受信データ蓄積を行なう一方、SBM32
,322が満杯となれば、MCT11,12に対し
送信動作の保留を指令するものとなつており、こ
れらのMCT11,12とCCT31,32との間の情
報授受は、CMM41,42へセツトされるフラグ
により行なうものとなつている。
Furthermore, the MCTs 1 1 and 1 2 temporarily store the received data given from the CCTs 3 1 and 3 2 in the RBMs 11 1 and 11 2 , and sequentially decode and use the contents by the CPU, while transmitting data to the CCTs 3 1 and 3 2. CCT3 1 , 3 2 sends this to SBM 32 1 , 32 2
Once the RBMs 11 1 and 11 2 are full with received data, the CCTs 3 1 and 3 2 are stored in the RBMs 31 1 and 3.
While storing received data in 1 2 , SBM32
1 and 32 2 are full, a command is given to MCTs 1 1 and 1 2 to suspend transmission operations, and the exchange of information between these MCTs 1 1 and 1 2 and CCTs 3 1 and 3 2 is , CMM 4 1 , 4 2 .

第2図は、MCT1のCPUによる制御状況のフ
ローチヤートであり、「RBMチエツク」101によ
り、これの受信データ蓄積状況をチエツクし、
「RBM満杯?」102を判断し、これがY(YES)
であれば「CMMへ受信保留フラグ・セツト」
103を行ない、ステツプ102がN(NO)のときは、
CMM4の「受信保留フラグ・セツト?」111を
チエツクし、これがYであれば「CMMの受信保
留フラグ・リセツト」112を行なつてから、
「CCTへ割込信号送出」113により、CCT3の割
込入力INTへ割込信号を送出する。
FIG. 2 is a flowchart of the control status by the CPU of MCT1, in which the received data storage status is checked by "RBM check" 101,
“RBM full?” Determine 102 and this is Y (YES)
If so, "Set reception pending flag to CMM"
Perform step 103 and if step 102 is N (NO),
Check "Receive pending flag set?" 111 of CMM4, and if this is Y, perform "CMM receive pending flag reset" 112, and then
"Send interrupt signal to CCT" 113 sends an interrupt signal to the interrupt input INT of CCT3.

ついで、後述の条件によりセツトされる
「CMMの送信保留フラグ(第1の送信保留フラ
グ)・チエツク」121を行ない、「送信保留フラグ
(第1の送信保留フラグ)・セツト?」122を判断
し、これがYであれば「送信中止」123により、
CTT3への送信データ送出を一時停止するのに
対し、ステツプ122がNのときは「送信許容」124
により、必要に応じて送信データをCCT3へ送
出し、制御演算等な他のルーチンを介してステツ
プ101以降を反復する。
Then, it performs a "CMM transmission suspension flag (first transmission suspension flag) check" 121 that is set according to the conditions described later, and determines whether the "transmission suspension flag (first transmission suspension flag) is set?" 122. , if this is Y, "Cancel sending" 123 will cause
In contrast to temporarily stopping sending data to CTT3, when step 122 is N, "transmission permitted" 124
Accordingly, the transmission data is sent to the CCT 3 as necessary, and steps 101 and subsequent steps are repeated via other routines such as control calculations.

第3図は、CCT3のCPUによる制御状況のフ
ローチヤートであり、MCT1からの「送信デー
タあり?」201を判断し、これがYであれば「送
信データをSBMへ蓄積」202を行ない、「SBM満
杯?」203をチエツクし、これがYになると
「CMMへ送信保留フラグ(第1の送信保留フラ
グ)・セツト」211を第2図のステツプ121と対応
して行なう。
Figure 3 is a flowchart of the control status by the CPU of CCT3, in which it judges ``Is there transmission data?'' 201 from MCT1, and if this is Y, performs ``store transmission data in SBM'' 202, and ``SBM Full?'' 203 is checked, and when it becomes Y, ``Set transmission pending flag (first transmission pending flag) to CMM'' 211 is performed corresponding to step 121 in FIG.

ついで、伝送路2からの自己宛「受信データあ
り?」221を判断し、これのYに応じて受信デー
タの内容が「送信保留指令?」222を判断のうえ、
これがYのときはCCT3中のメモリへ「送信保
留フラグ(第2の送信保留フラグ)・セツト」223
を行なうのに対し、ステツプ222のNに応じて同
様に「送信許容指令?」231を判断し、これがY
であればステツプ223と対応する「送信保留フラ
グ(第2の送信保留フラグ)・リセツト」232を行
なう。
Next, it determines whether there is any received data sent to itself from transmission line 2, 221, and depending on this, it determines whether the content of the received data is ``Is it a transmission hold command?'' 222, and then
If this is Y, "Set transmission pending flag (second transmission pending flag)" 223 to the memory in CCT3.
Similarly, in response to N in step 222, "Transmission permission command?" 231 is determined, and this is determined as Y.
If so, "transmission suspension flag (second transmission suspension flag) reset" 232 corresponding to step 223 is performed.

したがつて、ステツプ223によつてCCT3が送
信を中止する一方、ステツプ232によつてはCCT
3による送信の再開が可能となる。
Therefore, step 223 causes CCT3 to stop transmitting, while step 232 causes CCT3 to stop transmitting.
3, transmission can be resumed.

また、ステツプ231もNのときは、第2図のス
テツプ103と対応して「CMMの受信保留フラ
グ・チエツク」241を行ない、「受信保留フラグ・
セツト?」242を判断し、これがYであればMCT
1のRBM11が満杯のため、「受信データを
RBMへ蓄積」251により、RBM31へ蓄積し、
これが「RBM満杯?」252のYとなれば、ステ
ツプ222と対応する「受信保留指令・送信」253を
相手側に対して行ない、CCT3中のメモリへ
「送信保留指令・送信済フラグ・セツト」254を行
なう。
If step 231 is also N, a "CMM reception pending flag check" 241 is performed corresponding to step 103 in FIG.
Set? ”242, and if this is Y, MCT
Because RBM 11 of 1 is full, “Receive data
Accumulate in RBM”251, accumulate in RBM31,
If this is Y for ``RBM full?'' 252, execute ``receive hold command/send'' 253 corresponding to step 222 to the other party, and send ``send hold command/send flag set'' to the memory in CCT3. Do 254.

一方、ステツプ242のNに応じては、「RBMか
ら受信データ送出」261により、MCT1へ受信デ
ータの転送を行ない、ステツプ254と対応して
「送信保留指令・送信済フラグ・セツト?」262を
チエツクし、これがYであれば、ステツプ231と
対応する「送信許容指令・送信」263を相手側へ
行ない、ステツプ254と対応して「送信保留指
令・送信済フラグ・リセツト」264を行なつてか
ら、送受信制御等の他のルーチンを介しステツプ
201以降を反復する。
On the other hand, in response to N in step 242, the received data is transferred to the MCT 1 by "Send received data from RBM" 261, and in response to step 254, "Set transmission pending command/sent flag?" 262 is executed. Check, and if this is Y, perform "Transmission permission command/send" 263 corresponding to step 231 to the other party, and perform "transmission hold command/sent flag reset" 264 corresponding to step 254. , and then step through other routines such as transmission/reception control.
Repeat steps 201 onwards.

第4図は、第2図のステツプ113に応ずるCCT
3のCPUによる割込動作のフローチヤートであ
り、「割込信号あり?」301がYとなれば、
「RBMから受信データ送出」311により、MCT
1に対し受信データの転送を行なう。
Figure 4 shows the CCT corresponding to step 113 in Figure 2.
This is a flowchart of the interrupt operation by the CPU in step 3. If "Interrupt signal present?" 301 is Y,
"Send received data from RBM" 311 allows MCT
Transfers received data to 1.

したがつて、MCT1のBRM11が満杯でな
くなれば、CCT3のRBM31から受信データの
転送が行なわれ、MCT1のCPUによる受信デー
タの処理が連続的に行なわれ、受信データに対す
る応動が円滑かつ速やかに実行される。
Therefore, when the BRM 11 of MCT 1 is no longer full, the received data is transferred from RBM 31 of CCT 3, the received data is continuously processed by the CPU of MCT 1, and the response to the received data is executed smoothly and quickly. be done.

また、MCT1のRBM11が満杯となれば、
CMM4の受信保留フラグ・セツトにより、CCT
3がRBM31へ受信データを蓄積するため、受
信を継続して行なえるものとなり、受信不能を極
力回避することができると共に、RBM31も満
杯となれば、相手側へ送信保留指令が送信され、
これに応じて相手側が送信を中断するものとな
り、無効な送信が阻止される。
Also, if RBM11 of MCT1 is full,
By setting the reception pending flag of CMM4, CCT
3 stores the received data in the RBM 31, so it is possible to continue receiving, and it is possible to avoid failure to receive as much as possible, and when the RBM 31 is also full, a transmission hold command is sent to the other party,
In response, the other party interrupts the transmission, thereby preventing invalid transmission.

ここで、相手側に対して送出する送信保留指令
に着目してみる。この送信保留指令を受信して、
相手側の通信制御部CCT3は送信保留フラグ
(第2の送信保留フラグ)をセツトする。この送
信保留フラグがセツトされている間、すなわち送
信許容信号が受信されるまで、相手側の通信制御
部CCT3は他の通信装置5への送信データの送
出を中止する。したがつて、本実施例において、
相手側に対する送信保留指令は、連続的に送出し
ている必要はなく、その間、他の通信装置5に対
して送信データを送ることができる。
Here, let's focus on the transmission hold command sent to the other party. Upon receiving this transmission hold command,
The communication control unit CCT3 on the other side sets a transmission suspension flag (second transmission suspension flag). While this transmission suspension flag is set, that is, until the transmission permission signal is received, the communication control unit CCT3 on the other side stops sending the transmission data to the other communication device 5. Therefore, in this example,
The transmission hold command to the other party does not need to be sent continuously, and transmission data can be sent to other communication devices 5 during that time.

一方、CCT3のSBM32が満杯となれば、
CMM4への送信保留フラグ(第1の送信保留フ
ラグ)・セツトによりMCT1が送信データの送出
を中止するため、MCT1からの無効な送信デー
タの送出が阻止される。
On the other hand, if SBM32 of CCT3 becomes full,
The setting of the transmission suspension flag (first transmission suspension flag) to the CMM 4 causes the MCT 1 to stop transmitting data, thereby preventing the MCT 1 from transmitting invalid transmission data.

第5図は、CE5が3台以上伝送路2へ接続さ
れ、伝送路2を共通に用いると共に、いずれか送
信権を取得したものゝみが送信を行ない、これに
したがつて特定の相手側との通信を開始し、通信
の終了に応じて送信権引継信号を送信し、これを
受信した他のCE5が送信権を取得する動作を各
CE5が順次に行なう場合、CCT3のCPUによる
送信権取得制御のフローチヤートであり、「送信
権引継信号・受信?」401がYとなれば、SBM3
2中の「送信データあり?」402をチエツクし、
これがYのときは、第3図のステツプ223による
「送信保留フラグ・セツト?」411をチエツクのう
え、これのYまたはステツプ402のNに応じて
「送信権取得せず」412により、受信状態を維持す
る。
Figure 5 shows that three or more CE5s are connected to the transmission line 2, the transmission line 2 is used in common, and the one that has acquired the transmission right performs the transmission, and accordingly the specific partner side Start communication with the CE5, send a transmission right takeover signal in response to the end of the communication, and other CE5s that receive this signal acquire the transmission right.
This is a flowchart of transmission right acquisition control by the CPU of CCT3 when CE5 performs sequentially.
Check “Is there data to send?” 402 in 2.
If this is Y, check ``Set transmission pending flag?'' 411 in step 223 of FIG. maintain.

これに対し、ステツプ411がNであれば、前述
のとおり「送信権取得」421を行ない、ついで
「データ送信」422を行ない、「SBM満杯?」423
をチエツクし、これがNのときは第3図のステツ
プ212と同じく「CMMの送信保留フラグ(第1
の送信保留フラグ)・リセツト」424を行ない、第
3図および他のルーチンを介しステツプ401以降
を反復する。
On the other hand, if step 411 is N, "acquire transmission right" 421 is performed as described above, then "data transmission" 422 is performed, and "SBM full?" 423 is performed.
If this is N, check the "CMM transmission pending flag (1st
424, and repeats steps 401 and subsequent steps through FIG. 3 and other routines.

したがつて、第3図のステツプ231により送信
許容指令が受信されない限り、送信権を取得せず
受信状態を維持するため、この間に他のCE5に
よる通信が行なわれ、伝送路2の運用効率が向上
する。
Therefore, unless a transmission permission command is received in step 231 of FIG. 3, the transmission right will not be acquired and the reception state will be maintained, and other CEs will communicate during this time, reducing the operational efficiency of the transmission path 2. improves.

第6図は、第3図と同様であるが、送信許容指
令の送受信を省略し、かつ、送信保留指令の確実
化を図つた他の実施例を示すフローチヤートであ
り、「送信データあり?」501乃至「CMMへ送信
保留フラグ(第1の送信保留フラグ)・セツト」
511、および「受信データあり?」521、「送信保
留指令?」522までは第3図と同一であるのに対
し、ステツプ522がYであればCCT3のCPU中へ
構成した「送信保留タイマー・プリセツト」523
により、これをスタートさせてから、ステツプ
223と同じく「送信保留フラグ(第2の送信保留
フラグ)・セツト」524を行なう。
FIG. 6 is a flowchart that is similar to FIG. 3, but shows another embodiment in which the transmission and reception of the transmission permission command is omitted and the transmission suspension command is ensured. ” 501 to “Set transmission pending flag to CMM (first transmission pending flag)”
511, "Received data available?" 521, and "Transmission hold command?" 522 are the same as in FIG. Preset” 523
to start this and then step
Similarly to 223, "Set transmission suspension flag (second transmission suspension flag)" 524 is performed.

また、ステツプ522のNに応じては、ステツプ
241,242と同じく「CMMの受信保留フラグ・チ
エツク」531および「受信保留フラグ・セツト?」
532の判断を行ない、ステツプ532がYのときはス
テツプ251,252と同じく「受信データをRBMへ
蓄積」541および「RBM満杯?」542の判断を行
ない、これがYであれば、ステツプ262と同じく
「送信保留指令・送信済フラグ・セツト?」543を
チエツクし、これのNに応じて「再送信タイマ
ー・プリセツト」551により、ステツプ523と同様
にCPUによる再送信タイマー・をスタートさせ、
「送信保留指令・送信」552および「送信保留指
令・送信済フラグ・セツト」553をステツプ253,
254と同じく行なう。
Also, depending on N in step 522, the step
Same as 241 and 242, "CMM reception pending flag check" 531 and "Reception pending flag set?"
532, and if step 532 is Y, make the same judgments as in steps 251 and 252, ``store received data in RBM'' 541 and ``RBM full?'' 542, and if this is Y, make the same judgment as in step 262. Check "Transmission hold command/sent flag set?" 543, and in response to N, start the retransmission timer by the CPU using "retransmission timer preset" 551 in the same way as step 523.
Step 253: "Transmission hold command/Send" 552 and "Transmission hold command/Set sent flag" 553.
Do the same as 254.

なお、ステツプ532からNのときは、ステツプ
261と同じく「RBMから受信データ送出」561を
行なう。
Note that from step 532 to N, the step
Similarly to 261, "send received data from RBM" 561 is performed.

ついで、「送信保留タイマー・タイムアウト?」
571をチエツクし、これがYとなれば、ステツプ
524と対応して「送信保留フラグ(第2の送信保
留フラグ)・リセツト」572を行ない、「再送信タ
イマー・タイムアウト?」581をチエツクし、こ
れがYとなるのに応じて「RBM満杯?」582を
判断し、これのYによつては再び「再送信タイマ
ー・プリセツト」591をステツプ551と同じく行な
い、ステツプ551と同じく行ない、ステツプ552と
同じく「送信保留指令・送信」592行なうのに対
し、ステツプ582がNのときはステツプ553と対応
して「送信保留指令・送信済フラグ・リセツト」
593を行なう。
Then, "Send pending timer timeout?"
Check 571, if this is Y, step
Corresponding to 524, perform "Reset transmission pending flag (second transmission pending flag)" 572, check "Retransmission timer timeout?" 581, and when this becomes Y, check "RBM full?" 582, and depending on Y of this, ``retransmission timer preset'' 591 is performed again in the same manner as step 551, and ``transmission hold command and transmission'' 592 is performed in the same manner as step 552. , when step 582 is N, "transmission hold command/sent flag reset" corresponds to step 553.
Do 593.

したがつて、送信保留タイマーのタイムアウト
に応じて送信中止状態が自動的に解除されるた
め、送信許容信号の送受信を省略することができ
ると共に、送送信タイマーのタイムアウトにより
RBM31が満杯か否かゞチエツクされ、この結
果、未だ満杯であれば送信保留指令の送信が反復
してなされるため、送信保留指令の確実化が実現
する。
Therefore, the transmission suspension state is automatically canceled when the transmission hold timer times out, so it is possible to omit the transmission and reception of the transmission permission signal, and also when the transmission suspension timer times out.
It is checked whether the RBM 31 is full or not. As a result, if the RBM 31 is still full, the transmission suspension command is repeatedly transmitted, thereby realizing the reliability of the transmission suspension command.

また、RBM11,31をMCT1およびCCT
3へ各個に設けたゝめ、別途にバツフアメモリを
設ける必要性が排除されると共に、CCT3は通
信専用であり、メモリの容量中相当の範囲を
RBM31へ充当することが自在となる。
In addition, RBM11 and 31 are used as MCT1 and CCT.
Since CCT 3 is provided separately, the need for separate buffer memory is eliminated, and since CCT 3 is dedicated for communication, a considerable range of memory capacity is used.
It will be possible to allocate it to RBM31 freely.

なお、MCT1のRBM11が満杯でなくなれ
ば、割込信号の送出に応じてCCT3のRBM31
から直ちに受信データが転送され、MCT1の
CPUによる受信データの処理が中断せず、受信
データに対するMCT1の応動が速やかになると
共に、MCT1は通信に関する制御を行なう必要
がなく、稼働負荷が減少し、制御状況をより高速
かつ広範囲なものとすることができる。
Note that when RBM11 of MCT1 is no longer full, RBM31 of CCT3 is
The received data is immediately transferred from MCT1 to MCT1.
Processing of received data by the CPU is not interrupted, MCT1 responds quickly to received data, and MCT1 does not need to control communication, reducing operating load and making control conditions faster and more comprehensive. can do.

たゞし、CMM4は、MCT1またはCCT3の
メモリを用い、DMA(Direct Memory Access.)
により共用化してもよく、RBM11,31,
SBM32,CMM4としてレジスタ等を適用し
てもよい。
However, CMM4 uses the memory of MCT1 or CCT3 and uses DMA (Direct Memory Access.)
It may be shared by RBM11, 31,
Registers or the like may be used as the SBM 32 and CMM 4.

また、第2図乃至第6図においては、条件に応
じてステツプを入替え、または、同等の他のもの
と置換し、あるいは、不要なものを省略してもよ
い等、種々の変形が自在である。
Furthermore, in Figures 2 to 6, various modifications can be made, such as replacing the steps or replacing them with other equivalent steps, or omitting unnecessary steps, depending on the conditions. be.

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

以上の説明により明らかなとおり本発明によれ
ば、MCTの稼働負荷が減少すると共に、受信デ
ータ用のバツフアメモリを別途に設ける必要がな
く、MCTの制御機能向上および全般的な構成の
簡略化が実現し、かつ、MCTのRBMに対する
CCTのRBMからの受信データ転送が必要に応じ
て直ちに行われ、受信データの処理およびこれに
対するMCTの応動が速やかとなり、また相手側
に対する送信保留信号は連続的に送出している必
要がなく、さらにMCTからの無効な送信データ
の送出が阻止される、各種用途のデータ通信制御
において顕著な効果が得られる。
As is clear from the above explanation, according to the present invention, the operating load of the MCT is reduced, there is no need to separately provide a buffer memory for received data, and the control function of the MCT is improved and the overall configuration is simplified. And, for RBM of MCT
Transfer of received data from the RBM of the CCT is performed immediately as necessary, processing of the received data and the MCT's response to it are prompt, and there is no need to continuously send transmission hold signals to the other party. Furthermore, the transmission of invalid transmission data from the MCT is prevented, and a remarkable effect can be obtained in data communication control for various applications.

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

図は本発明の実施例を示し、第1図は構成を示
すブロツク図、第2図はMCTのCPUによる制御
状況のフローチヤート、第3図乃至第5図は
CCTのCPUによる制御状況のフローチヤート、
第6図は第3図と対応する他の実施例を示すフロ
ーチヤートである。 11,12……MCT(主制御部)、2……伝送路、
1,32……CCT(通信制御部)、41,42……
CMM(共用メモリ)、51,52……CE(通信装
置)、111,112,311,312……RBM(受
信バツフアメモリ)、321,322……SBM(送
信バツフアメモリ)。
The figures show an embodiment of the present invention, Fig. 1 is a block diagram showing the configuration, Fig. 2 is a flowchart of the control situation by the MCT CPU, and Figs. 3 to 5 are
Flowchart of control status by CCT CPU,
FIG. 6 is a flowchart showing another embodiment corresponding to FIG. 3. 1 1 , 1 2 ...MCT (main control section), 2 ... transmission line,
3 1 , 3 2 ... CCT (communication control section), 4 1 , 4 2 ...
CMM (shared memory), 5 1 , 5 2 ... CE (communication equipment), 11 1 , 11 2 , 31 1 , 31 2 ... RBM (reception buffer memory), 32 1 , 32 2 ... SBM (transmission buffer memory) .

Claims (1)

【特許請求の範囲】 1 複数の通信装置を備え互いにデータの送受信
を行う通信制御方式であつて、 各通信装置は、 伝送路へ接続された通信制御部と、この通信制
御部を介して他の通信装置とデータの送受信を行
なう主制御部とを備えると共に、 前記主制御部へ受信データを蓄積する第1の受
信バツフアメモリを設け、前記通信制御部へ前記
受信データを蓄積する第2の受信バツフアメモリ
および送信データを蓄積する送信バツフアメモリ
を設け、かつ、前記主制御部および通信制御部の
共用メモリを設け、 前記第1の受信バツフアメモリが満杯になつた
とき前記主制御部が共用メモリへ受信保留フラグ
をセツトし、 この受信保留フラグのセツト状況に応じて前記
通信制御部が第2の受信バツフアメモリへ前記受
信データを蓄積し、 この第2の受信バツフアメモリも満杯になれば
前記通信制御部が相手側に対し自己への送信を中
止させる送信保留信号を送出すると共に送信保留
信号送信済フラグをセツトし、 前記送信バツフアメモリが満杯となつたとき前
記通信制御部が共用メモリへ第1の送信保留フラ
グをセツトし、 この第1の送信保留フラグのセツト状況に応じ
て前記主制御部が前記通信制御部への前記送信デ
ータの送出を中止し、 前記第1の受信バツフアメモリが満杯でなくな
れば、前記主制御部は、前記受信保留フラグをリ
セツトし、かつ前記通信制御部へ割込信号を送出
し、 この割込信号に応じて前記通信制御部が第2の
受信バツフアメモリの内容を前記第1の受信バツ
フアメモリへ転送し、 前記受信保留フラグがリセツト状況にあつて前
記送信保留信号送信済フラグがセツト状況にある
とき、前記通信制御部は、相手側に対して自己へ
の送信を許す送信許容信号を送出し、 他の通信装置からの送信保留信号を受信したと
き、前記通信制御部は、第2の送信保留フラグを
セツトすることにより、他の通信装置への前記送
信データの送出を中止し、 他の通信装置からの送信許容信号を受信したと
き、前記通信制御部は、前記第2の送信保留フラ
グをリセツトし、送信を再開する ことを特徴とした通信制御方式。 2 複数の通信装置を備え互いにデータの送受信
を行う通信制御方式であつて、 各通信装置は、 伝送路へ接続された通信制御部と、この通信制
御部を介して他の通信装置とデータの送受信を行
なう主制御部とを備えると共に、 前記主制御部へ受信データを蓄積する第1の受
信バツフアメモリを設け、前記通信制御部へ前記
受信データを蓄積する第2の受信バツフアメモリ
および送信データを蓄積する送信バツフアメモリ
を設け、かつ、前記主制御部および通信制御部の
共用メモリを設け、 前記第1の受信バツフアメモリが満杯になつた
とき前記主制御部が共用メモリへ受信保留フラグ
をセツトし、 この受信保留フラグのセツト状況に応じて前記
通信制御部が第2の受信バツフアメモリへ前記受
信データを蓄積し、 この第2の受信バツフアメモリも満杯になれば
前記通信制御部が相手側に対し自己への送信を中
止させる送信保留信号を送出すると共に再送信タ
イマをプリセツトし、 前記送信バツフアメモリが満杯となつたとき前
記通信制御部が共用メモリへ第1の送信保留フラ
グをセツトし、 この第1の送信保留フラグのセツト状況に応じ
て前記主制御部が前記通信制御部への前記送信デ
ータの送出を中止し、 前記第1の受信バツフアメモリが満杯でなくな
れば、前記主制御部は、前記受信保留フラグをリ
セツトし、かつ前記通信制御部へ割込信号を送出
し、 この割込信号に応じて前記通信制御部が第2の
受信バツフアメモリの内容を前記第1の受信バツ
フアメモリへ転送し、 前記再送信タイマがタイムアウトし、かつ、前
記第2の受信バツフアメモリが満杯のとき、前記
通信制御部は、前記送信保留信号を再送出すると
共に、前記再送信タイマを再プリセツトし、 他の通信装置からの送信保留信号を受信したと
き、前記通信制御部は、送信保留タイマをプリセ
ツトし、かつ、第2の送信保留フラグをセツトす
ることにより、他の通信装置への前記送信データ
の送出を中止し、 前記送信保留タイマがタイムアウトしたとき、
前記通信制御部は、前記第2の送信保留フラグを
リセツトし、送信を再開する ことを特徴とした通信制御方式。
[Claims] 1. A communication control system that includes a plurality of communication devices and transmits and receives data to and from each other, wherein each communication device has a communication control section connected to a transmission path, and a communication control system that communicates with other devices via the communication control section. a main control unit that transmits and receives data to and from a communication device, a first reception buffer memory that stores received data in the main control unit, and a second reception buffer memory that stores the received data in the communication control unit. A buffer memory and a transmission buffer memory for storing transmission data are provided, and a shared memory for the main control section and the communication control section is provided, and when the first reception buffer memory becomes full, the main control section stores the reception on the shared memory. The communication control unit stores the received data in the second reception buffer memory according to the setting status of the reception hold flag, and when the second reception buffer memory is also full, the communication control unit transmitting a transmission hold signal to the side to stop transmission to itself, and setting a transmission hold signal sent flag, and when the transmission buffer memory is full, the communication control unit sends a first transmission hold flag to the shared memory. is set, the main control unit stops sending the transmission data to the communication control unit according to the setting status of the first transmission suspension flag, and if the first reception buffer memory is no longer full, the The main control section resets the reception hold flag and sends an interrupt signal to the communication control section, and in response to this interrupt signal, the communication control section transfers the contents of the second reception buffer memory to the first reception buffer memory. When the reception pending flag is in a reset state and the transmission pending signal sent flag is in a set state, the communication control section generates a transmission permission signal that allows the other party to transmit to itself. When the communication control unit transmits the transmission data and receives a transmission suspension signal from another communication device, the communication control unit stops sending the transmission data to the other communication device by setting a second transmission suspension flag. . A communication control method, wherein when receiving a transmission permission signal from another communication device, the communication control unit resets the second transmission suspension flag and resumes transmission. 2. A communication control system that includes a plurality of communication devices and sends and receives data to and from each other, in which each communication device has a communication control unit connected to a transmission path and a communication control unit that exchanges data with other communication devices via this communication control unit. a main control unit that performs transmission and reception; a first reception buffer memory that stores received data in the main control unit; a second reception buffer memory that stores the received data in the communication control unit; and a second reception buffer memory that stores transmission data. and a shared memory for the main control unit and the communication control unit, and when the first reception buffer memory becomes full, the main control unit sets a reception hold flag in the shared memory; The communication control unit stores the received data in the second reception buffer memory according to the setting status of the reception hold flag, and when the second reception buffer memory is also full, the communication control unit transmits the data to the other party. A transmission hold signal is sent to stop the transmission, and a retransmission timer is preset, and when the transmission buffer memory is full, the communication control section sets a first transmission hold flag in the shared memory, and the first transmission is stopped. The main control unit stops sending the transmission data to the communication control unit according to the set status of the hold flag, and when the first reception buffer memory is no longer full, the main control unit sets the reception hold flag. and transmitting an interrupt signal to the communication control unit, and in response to the interrupt signal, the communication control unit transfers the contents of the second reception buffer memory to the first reception buffer memory, and the retransmission. When the timer times out and the second reception buffer memory is full, the communication control unit resends the transmission hold signal, re-presets the retransmission timer, and prevents transmission from another communication device. When receiving the hold signal, the communication control unit presets a transmission hold timer and sets a second transmission hold flag to stop sending the transmission data to another communication device, and When the send hold timer times out,
The communication control method is characterized in that the communication control unit resets the second transmission suspension flag and resumes transmission.
JP60292097A 1985-12-26 1985-12-26 Communicating control system Granted JPS62152252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60292097A JPS62152252A (en) 1985-12-26 1985-12-26 Communicating control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60292097A JPS62152252A (en) 1985-12-26 1985-12-26 Communicating control system

Publications (2)

Publication Number Publication Date
JPS62152252A JPS62152252A (en) 1987-07-07
JPH0418500B2 true JPH0418500B2 (en) 1992-03-27

Family

ID=17777503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60292097A Granted JPS62152252A (en) 1985-12-26 1985-12-26 Communicating control system

Country Status (1)

Country Link
JP (1) JPS62152252A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0644760B2 (en) * 1987-09-16 1994-06-08 日本電気株式会社 Network monitoring method
JP2536656B2 (en) * 1989-11-06 1996-09-18 日本電気株式会社 Terminal interface device
JP2542461B2 (en) * 1990-12-17 1996-10-09 三菱電機株式会社 Collision detection transmission system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51100653A (en) * 1975-03-04 1976-09-06 Nippon Telegraph & Telephone
JPS5955528A (en) * 1982-09-24 1984-03-30 Fujitsu Ltd Data transfer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51100653A (en) * 1975-03-04 1976-09-06 Nippon Telegraph & Telephone
JPS5955528A (en) * 1982-09-24 1984-03-30 Fujitsu Ltd Data transfer system

Also Published As

Publication number Publication date
JPS62152252A (en) 1987-07-07

Similar Documents

Publication Publication Date Title
JP2745521B2 (en) Frame transmission method
JPH0418500B2 (en)
JPH0213158A (en) Message transmission method
JPH0377700B2 (en)
JPS6163141A (en) Communication control system
JPS62172840A (en) Transferring system for data
JPH0337340B2 (en)
CN112422238B (en) Method for improving safety of parallel sending data and heterogeneous system
JPH054040Y2 (en)
JP3421492B2 (en) Bus stack monitoring method
JPH0256662A (en) Memory protecting system
JPS6154556A (en) Inter-memory data transfer system
JPH01251267A (en) Data transfer system
JPS62152246A (en) Communicating control system
JPH0341543A (en) Data buffer control system for controller on communication network
JPH0421896B2 (en)
JPS60169256A (en) Transmission controller
JPS6188351A (en) Program load system
JPS61118803A (en) Programmable controller system
JPH0264838A (en) Communication controller
JPH10313345A (en) Communication controller
JPH01125643A (en) Control system for divided transmission/reception of message
JPH03113554A (en) Data transfer system
JPS58101322A (en) Data transfer controlling circuit
JPS61131058A (en) Data transfer control system