Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6231389B2 - - Google Patents
[go: Go Back, main page]

JPS6231389B2 - - Google Patents

Info

Publication number
JPS6231389B2
JPS6231389B2 JP56010651A JP1065181A JPS6231389B2 JP S6231389 B2 JPS6231389 B2 JP S6231389B2 JP 56010651 A JP56010651 A JP 56010651A JP 1065181 A JP1065181 A JP 1065181A JP S6231389 B2 JPS6231389 B2 JP S6231389B2
Authority
JP
Japan
Prior art keywords
control unit
command
communication control
word
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
Application number
JP56010651A
Other languages
Japanese (ja)
Other versions
JPS57125435A (en
Inventor
Yoshiharu Tobe
Tatsuo Ushiki
Yoshio Kuboyama
Tsunehachi Ishitani
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP56010651A priority Critical patent/JPS57125435A/en
Publication of JPS57125435A publication Critical patent/JPS57125435A/en
Publication of JPS6231389B2 publication Critical patent/JPS6231389B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • G06F13/285Halt processor DMA

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 この発明はデータ通信における通信制御方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a communication control method in data communication.

HDLC手順等の伝送制御手順に基づいた処理を
行ないつつ、通信回線とのデータ送受信を行なう
データ通信制御装置、例えばパケツト交換機やパ
ケツト多重化装置は、中央制御部と主記憶部と通
信制御部で構成されるものが広く採用されてい
る。中央制御部は、通信回線とのデータ送受信動
作を直接制御せず、通信制御部に通信回線とのデ
ータ送受信動作を行なわせるための命令語、即ち
コマンドワードを編集し、主記憶部に格納して通
信制御部を起動する。
A data communication control device, such as a packet switch or a packet multiplexer, which sends and receives data to and from a communication line while performing processing based on transmission control procedures such as HDLC procedures, has a central control section, a main storage section, and a communication control section. The configuration has been widely adopted. The central control unit does not directly control data transmission and reception operations with the communication line, but edits command words, that is, command words, for causing the communication control unit to perform data transmission and reception operations with the communication line, and stores them in the main memory. to start the communication control section.

通信制御部は、中央制御部から起動を受ける
と、主記憶部に格納されたコマンドワードを取り
出し、そのコマンドワードに従つて、通信回線と
のデータ送受信を開始し、通信制御部と主記憶部
間の送信データ、或いは、受信データの転送を行
なう。コマンドワードは、チエーンコマンドを指
示するフラグを持つており、通信制御部は、この
チエーンコマンドが指示されたコマンドワードを
実行完了すると、引き続き次のコマンドワードを
実行する。このようにして、コマンドワードをチ
エーンして動作が遂行され、チエーンコマンドが
指示されていないコマンドワードの実行完了後、
初めて完了した状態をステータスワードとして主
記憶部に格納し、中央制御部に完了報告を行な
う。
When the communication control unit receives activation from the central control unit, it retrieves a command word stored in the main memory, starts sending and receiving data to and from the communication line according to the command word, and communicates between the communication control unit and the main memory. Transfers transmitted data or received data during the period. The command word has a flag indicating a chain command, and when the communication control unit completes execution of the command word specified by the chain command, it subsequently executes the next command word. In this way, an operation is performed by chaining command words, and after completion of execution of command words for which no chain command is specified,
The state completed for the first time is stored in the main memory as a status word, and a completion report is sent to the central control unit.

しかしながら、中央制御部は、チエーンコマン
ドが指示されている送信用の一連のコマンドワー
ドを通信制御部が実行中である時、その遂行状態
を全く知ることができない。このため中央制御部
が別の送信コマンドワードの実行を通信制御部に
指示する必要が生じた場合、一連のコマンドワー
ド実行が完了した通信制御部からの完了報告を待
つて前記別の送信コマンドワードを実行させるし
かなく、この方式では前記別の送信コマンドワー
ドの実行が現行コマンドワードの実行よりも緊急
を要する場合でも何ら対処することができない。
However, the central controller has no knowledge of the execution status of a chain command when the communication controller is executing a series of command words for transmission to which a chain command is directed. For this reason, when the central control unit needs to instruct the communication control unit to execute another transmission command word, it waits for a completion report from the communication control unit that has completed the execution of a series of command words, and then instructs the communication control unit to execute another transmission command word. This system cannot handle the case where the execution of the other transmission command word is more urgent than the execution of the current command word.

この解決法として従来は、中央制御部が通信制
御部の現行送信動作を即時リセツトする方式が採
用されているが、この方式では、中央制御部は送
信動作中断時のコマンドの遂行状態および通信制
御部の状態の検出、判別が非常に困難である。こ
のため緊急を要する前記別の送信コマンドワード
実行完了後、中断していた送信動作の再開が非常
に複雑になる欠点がある。
Conventionally, as a solution to this problem, a method has been adopted in which the central control section immediately resets the current transmission operation of the communication control section. It is extremely difficult to detect and determine the state of the parts. For this reason, there is a drawback that restarting the interrupted transmission operation after completion of execution of the other urgent transmission command word is extremely complicated.

本発明は上述した従来欠点に鑑みてなされたも
のであり、その目的は、チエーンされたコマンド
ワードの実行中であつてもこれを中断させて緊急
を要する別のコマンドワードを優先的に実行させ
るとともに中断を容易に再開させることができる
通信制御方式を実現することにある。
The present invention has been made in view of the above-mentioned conventional drawbacks, and its purpose is to interrupt chained command words even if they are being executed, and to prioritize execution of another command word that requires more urgency. Another object of the present invention is to realize a communication control method that can easily restart an interrupted communication.

以下本発明の詳細を実施例により説明する。 The details of the present invention will be explained below with reference to Examples.

第1図は、本発明の一実施例に使用するデータ
通信制御装置の基本構成例を示すもので、1は中
央制御部、2は主記憶部、3は通信制御部であ
り、これらは共通バス100で接続される。10
1及び102は、中央制御部1から通信制御部3
にそれぞれ起動指示及び中断指示を伝達するため
の制御線、30は制御線102から受けた中断指
示フラグをセツトするレジスタ、103は、通信
制御部3が、中央制御部1に対して完了報告や中
断報告を行なう割込用制御線である。以下、第1
図のデータ通信制御装置が通信回線へ送信を行な
う場合の動作について順を追つて説明する。
FIG. 1 shows an example of the basic configuration of a data communication control device used in an embodiment of the present invention, in which 1 is a central control section, 2 is a main storage section, and 3 is a communication control section, which are common to each other. They are connected via a bus 100. 10
1 and 102 are from the central control unit 1 to the communication control unit 3
A control line 30 is a register for setting a suspension instruction flag received from the control line 102, and a control line 103 is a register used by the communication control unit 3 to send a completion report to the central control unit 1. This is an interrupt control line for reporting interruptions. Below, the first
The operation when the data communication control device shown in the figure performs transmission to a communication line will be explained step by step.

中央制御部1は、通信制御部3が送信動作を行
なうための1つまたは、複数のコマンドワードを
編集し、主記憶部2内の領域20に格納し、最初
に実行すべきコマンドワードの先頭アドレスをコ
マンドアドレスワード領域21に格納する。続い
て中央制御部1は制御線101を介して通信制御
部3を起動する。通信制御部3は、起動を受ける
と主記憶部2内のコマンドアドレスワード領域2
1を参照して、最初にフエツチすべきコマンドワ
ードの格納アドレスを認知し、領域20内からコ
マンドワードをフエツチする。
The central control unit 1 edits one or more command words for the communication control unit 3 to perform a transmission operation, stores them in an area 20 in the main storage unit 2, and edits the first command word to be executed first. The address is stored in the command address word area 21. Subsequently, the central control section 1 activates the communication control section 3 via the control line 101. When the communication control unit 3 receives the activation, the communication control unit 3 stores the command address word area 2 in the main storage unit 2.
1, the storage address of the command word to be fetched is first recognized, and the command word is fetched from within the area 20.

このコマンドワードは、第2図の構成例に示す
ようにコマンド種別40、チエーンコマンド指示
フラグ41、送信データの格納アドレスや送信バ
イト数等の各種パラメータ42を有する。従つ
て、現行コマンドワードにチエーンコマンド指示
フラグ41がセツトされている時は、制御部3は
現行コマンドワードを完了すると、主記憶部2に
おける領域20内の上記現行コマンドワードの次
のコマンドワードを実行する。このようにして一
度起動を受けた通信制御部3は、一連のコマンド
ワードをチエーンして実行できる。通信制御部3
は、1つのコマンドワードを実行完了するとチエ
ーンコマンド指示フラグ41をチエツクし、チエ
ーンコマンド指示フラグ41が、セツトされてい
る場合は、更にレジスタ30内の中断指示フラグ
のチエツクを行なう。
This command word has a command type 40, a chain command instruction flag 41, and various parameters 42 such as the storage address of the transmission data and the number of transmission bytes, as shown in the configuration example of FIG. Therefore, when the chain command instruction flag 41 is set in the current command word, the control unit 3, upon completing the current command word, starts the command word next to the current command word in the area 20 in the main storage unit 2. Execute. Once activated in this way, the communication control section 3 can chain and execute a series of command words. Communication control unit 3
When the execution of one command word is completed, the chain command instruction flag 41 is checked, and if the chain command instruction flag 41 is set, the interrupt instruction flag in the register 30 is further checked.

まず、チエーンコマンド指示フラグ41がセツ
トされていない場合の通信制御部の動作について
説明する。この場合、実行完了したコマンドワー
ドは、最終コマンドワードであるから、完了した
状態をステータスワードとして主記憶部2内の領
域22に格納し、制御線103によつて中央制御
部1に完了報告を行なう。
First, the operation of the communication control section when the chain command instruction flag 41 is not set will be explained. In this case, since the executed command word is the final command word, the completed state is stored as a status word in the area 22 in the main storage unit 2, and a completion report is sent to the central control unit 1 via the control line 103. Let's do it.

上述のステータスワードの構成例を第3図に示
す。ステータスワードは、割込みによる報告時の
割込み原因を表わす完了報告指示フラグ50と中
断報告指示フラグ51を有し、完了報告時は、完
了報告指示フラグ50をセツトし、中断報告時
は、中断報告指示フラグ51をセツトする。完了
コマンドワードアドレス52は、実行完了した最
後のコマンドワードが格納されている主記憶部2
内の先頭アドレスを示す。例えば、中断報告の場
合には、この完了コマンドワードアドレスは中断
時に完了している最後のコマンドワードが格納さ
れている先頭アドレスを示す。
An example of the structure of the above-mentioned status word is shown in FIG. The status word has a completion report instruction flag 50 and an interruption report instruction flag 51 that indicate the cause of interruption when reporting by an interrupt.When reporting completion, the completion report instruction flag 50 is set, and when reporting an interruption, the interruption report instruction flag 51 is set. Set flag 51. The completed command word address 52 is the main memory 2 in which the last command word that has completed execution is stored.
Indicates the first address within. For example, in the case of an interruption report, this completed command word address indicates the starting address where the last command word completed at the time of interruption is stored.

次にチエーンコマンド指示フラグ41がセツト
されている場合の通信制御部3の動作について説
明する。この場合、通信制御部3は中央制御部1
からの中断指示の有無を調べるために、レジスタ
30内の中断指示フラグをチエツクし、中断指示
フラグがセツトされてない時は、次に実行すべき
コマンドワードをフエツチして実行する。中断指
示フラグがセツトされている時は、ステータスワ
ードを主記憶部2内の領域22に格納し、レジス
タ30内の中断指示フラグをリセツトし、中央制
御部1に対して、制御線103により割込み、中
断報告する。この場合のステータスワードは、中
断報告指示フラグ51がセツトされ、中断時点で
完了した最後のコマンドワードの先頭アドレスを
有している。
Next, the operation of the communication control section 3 when the chain command instruction flag 41 is set will be explained. In this case, the communication control section 3 is the central control section 1
The interrupt instruction flag in the register 30 is checked to see if there is an interrupt instruction from the register 30, and if the interrupt instruction flag is not set, the next command word to be executed is fetched and executed. When the interrupt instruction flag is set, the status word is stored in the area 22 in the main memory 2, the interrupt instruction flag in the register 30 is reset, and an interrupt is sent to the central controller 1 via the control line 103. , report an interruption. The status word in this case has the interruption report instruction flag 51 set and has the start address of the last command word completed at the time of interruption.

このように通信制御部3は、中央制御部1から
中断指示を受けると、実行中のコマンドワードを
完了した時点で動作を中断することができる。通
信制御部3に中断した送信動作を再開させるため
に、中央制御部1は、中断時に主記憶部2内の領
域22に格納されたステータスワードを解読し、
中断報告指示フラグ51と完了コマンドワードア
ドレス52により、完了コマンドワードアドレス
52で示されたアドレスに格納されたコマンドワ
ードを実行完了した時点で中断状態になつている
ことを認知し、完了コマンドワードアドレス52
で示されたアドレスに格納されたコマンドワード
の次のコマンドワードの先頭アドレスをコマンド
アドレスワード領域21に格納して通信制御部3
を起動する。これにより、通信制御部3は、中断
時点で完了した最後のコマンドワードの次のコマ
ンドワードから実行開始することになり、中断点
再開が可能となる。
In this way, when the communication control section 3 receives an interruption instruction from the central control section 1, it can interrupt the operation when the command word being executed is completed. In order to cause the communication control unit 3 to resume the interrupted transmission operation, the central control unit 1 decodes the status word stored in the area 22 in the main storage unit 2 at the time of interruption,
By using the interruption report instruction flag 51 and the completed command word address 52, it is recognized that the command word stored at the address indicated by the completed command word address 52 has been executed and is in the suspended state, and the completed command word address is 52
The start address of the command word next to the command word stored at the address indicated by is stored in the command address word area 21, and the communication control unit 3
Start. As a result, the communication control unit 3 starts execution from the command word next to the last command word completed at the time of interruption, making it possible to resume the execution at the interruption point.

以上詳細に説明したように、本発明は、通信制
御部は中央制御部からの中断指示に従つて現行コ
マンド実行完了時点で送信動作を完了する構成で
あるから送信動作の速かな中断ができ、また、中
断時の状態をステータスワードとして記憶するの
で、極めて容易に中断の再開ができる利点があ
る。
As described above in detail, the present invention is configured such that the communication control unit completes the transmission operation upon completion of execution of the current command in accordance with the interruption instruction from the central control unit, so that the transmission operation can be quickly interrupted. Furthermore, since the state at the time of interruption is stored as a status word, there is an advantage that the interruption can be resumed very easily.

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

第1図は、本発明の一実施例に使用するデータ
通信制御装置の基本構成例を示すブロツク図、第
2図及び第3図はそれぞれコマンドワード及びス
テータスワードの構成例を示す概念図である。 1……中央制御部、2……主記憶部、3……通
信制御部、20……コマンドワード領域、21…
…コマンドアドレスワード領域、22……ステー
タスワード格納領域、30……中断指示フラグレ
ジスタ、100……共通バス、101……起動指
示制御線、102……中断指示制御線、103…
…割込み用制御線、40……コマンド種別、41
……チエーンコマンド指示フラグ、42……各種
パラメータ、50……完了報告指示フラグ、51
……中断報告指示フラグ、52……完了コマンド
ワードアドレス。
FIG. 1 is a block diagram showing an example of the basic configuration of a data communication control device used in an embodiment of the present invention, and FIGS. 2 and 3 are conceptual diagrams showing examples of the configuration of a command word and a status word, respectively. . DESCRIPTION OF SYMBOLS 1...Central control unit, 2...Main storage unit, 3...Communication control unit, 20...Command word area, 21...
...Command address word area, 22...Status word storage area, 30...Suspension instruction flag register, 100...Common bus, 101...Start instruction control line, 102...Suspension instruction control line, 103...
...Interrupt control line, 40...Command type, 41
...Chain command instruction flag, 42...Various parameters, 50...Completion report instruction flag, 51
. . . Interruption report instruction flag, 52 . . . Completion command word address.

Claims (1)

【特許請求の範囲】[Claims] 1 中央制御部、主記憶部及び通信制御部を備え
たデータ通信制御装置を通信回線で相互接続して
データの送受信を行なうデータ通信制御方式にお
いて、中央制御部からの起動命令により起動され
た通信制御部がチエーンされたコマンドワードの
実行により通信回線を介して送信を行なつている
場合において中央制御部からの中断指示を受けた
ときは、該通信制御部は現行のコマンドワードに
関する動作を完了した時点で前記送信動作を中断
し、該中断時の状態をステータスワードとして主
記憶部に格納したのち中央制御部に中断報告を行
なうことを特徴とする通信制御方式。
1. In a data communication control system in which data communication control devices equipped with a central control unit, a main storage unit, and a communication control unit are interconnected via a communication line to transmit and receive data, communication activated by an activation command from the central control unit When a control unit is transmitting via a communication line by executing chained command words and receives an interrupt instruction from the central control unit, the communication control unit completes the operation related to the current command word. The communication control system is characterized in that the transmission operation is interrupted at the moment when the transmission operation is stopped, the state at the time of the interruption is stored in a main storage unit as a status word, and then an interruption report is sent to a central control unit.
JP56010651A 1981-01-27 1981-01-27 System for communication control Granted JPS57125435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56010651A JPS57125435A (en) 1981-01-27 1981-01-27 System for communication control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56010651A JPS57125435A (en) 1981-01-27 1981-01-27 System for communication control

Publications (2)

Publication Number Publication Date
JPS57125435A JPS57125435A (en) 1982-08-04
JPS6231389B2 true JPS6231389B2 (en) 1987-07-08

Family

ID=11756119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56010651A Granted JPS57125435A (en) 1981-01-27 1981-01-27 System for communication control

Country Status (1)

Country Link
JP (1) JPS57125435A (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PANAFACOM UýÞ-þ´ ¸-n´cda=S53 *

Also Published As

Publication number Publication date
JPS57125435A (en) 1982-08-04

Similar Documents

Publication Publication Date Title
JPH03175560A (en) Method of communication between plural programmable logic controllers
JPS6231389B2 (en)
JPH086614A (en) Programmable controller
JP3460502B2 (en) Serial transmission system
JPH0234518B2 (en)
JPS62190544A (en) Higher link unit for programmable controller
JP2595697B2 (en) Message processing system
JPH058902B2 (en)
JPH0648473B2 (en) Message transmission / reception processing method
JP3463146B2 (en) Communication control method and device
JP3611166B2 (en) Data processing method and apparatus
JPH0378066A (en) Data processor
JPS6314261A (en) Microprogram controller
JPH02272658A (en) Data processor
JPH0480419B2 (en)
JPH08179999A (en) Dma transfer data guarantee system
JPS63143603A (en) Programmable controller
JPH0238970B2 (en)
JPH01149637A (en) System for monitoring polling control response
JPS5918733B2 (en) Data transmission/reception control device
JPS63229560A (en) Microprogram control system
JPS61128351A (en) Communication system
JPH0126098B2 (en)
JPH01232455A (en) Protocol controller
JPS61290839A (en) Data transferring method