JPH0361390B2 - - Google Patents
Info
- Publication number
- JPH0361390B2 JPH0361390B2 JP60086820A JP8682085A JPH0361390B2 JP H0361390 B2 JPH0361390 B2 JP H0361390B2 JP 60086820 A JP60086820 A JP 60086820A JP 8682085 A JP8682085 A JP 8682085A JP H0361390 B2 JPH0361390 B2 JP H0361390B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- information
- data length
- read command
- cpu
- 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
Links
Landscapes
- Communication Control (AREA)
Description
【発明の詳細な説明】
〔目次〕
概 要
産業上の利用分野
従来の技術
発明が解決しようとする問題点
問題点が解決する為の手段
作 用
実施例
発明の効果
〔概要〕
中央処理装置CPUからのサブチヤネルに対す
る入出力命令で指示されたコマンドにより動作
し、マイクロプログラム制御でハイレベル手順を
サポートする通信制御装置CCUにおいて、リー
ドコマンドと、特定のセンスコマンドにより構成
されるコマンド列により、情報フレームを受信す
る時、該リードコマンドで指示された受信バツフ
ア域以上の情報フイールドを受信した場合、該リ
ードコマンドよりチエインされた、該特定のセン
スコマンドで、上記情報フイールドの続きをカウ
ントし、そのカウント値と、リードコマンドで求
められているカウント値とを加算して、一連の情
報フイールドのデータ長を作成し、該作成したデ
ータ長を、P/Fビツトが“1”の情報フレーム
の受信をトリガとして、中央処理装置CPUに転
送することにより、該中央処理装置CPUにおけ
るビジー状態の検出と、解除を容易にしたもので
ある。[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Examples Effects of the Invention [Summary] Central Processing Unit CPU In the communication control unit CCU, which operates according to commands specified by input/output instructions for subchannels from the CCU and supports high-level procedures under microprogram control, information frames are When receiving an information field, if an information field larger than the receive buffer area specified by the read command is received, the continuation of the information field is counted by the specific sense command chained from the read command, and the count is The data length of a series of information fields is created by adding the value and the count value obtained by the read command, and the created data length is used to receive an information frame with the P/F bit set to "1". By transferring the signal to the central processing unit CPU as a trigger, it is possible to easily detect and release the busy state in the central processing unit CPU.
本発明は、通信制御装置CCUにおいて処理さ
れるハイレベル手順に係り、特に通信制御装置
CCUにおいて、情報フイールド受信中のバツフ
ア不足を検出し、中央処理装置CPUへ報告でき
るハイレベル手順制御方式に関する。
The present invention relates to high-level procedures processed in a communication control unit CCU, and particularly relates to high-level procedures processed in a communication control unit CCU.
This invention relates to a high-level procedural control method that can detect a buffer shortage during information field reception in a CCU and report it to the central processing unit CPU.
最近のオンラインシステムの普及に伴つて、ホ
スト計算機と端末との間のデータ通信を効率的に
行う必要が生じてきた。 With the recent spread of online systems, there has been a need for efficient data communication between host computers and terminals.
一般に、ホスト計算機と端末との間を、通信制
御装置CCUを通して行うデータ通信は、所謂ハ
イレベル手順(HDLC手順)で行われることが多
いが、従来のハイレベル手順においては、端末か
ら受信した情報フイールドの内、中央処理装置
CPUが生成したコマンドが指示するバイト数分
しか中央処理装置CPUに転送していない為、該
端末からの情報フイールドのバイト数が多いと、
バツフア不足(即ち、ビジー状態)となり、該中
央処理装置CPUはRNR(RECELVE NOT
READY)フレームを送信して、端末側からの情
報フレームの送信を抑止する方法が取られてい
た。 In general, data communication between a host computer and a terminal through the communication control unit CCU is often performed using a so-called high-level procedure (HDLC procedure), but in the conventional high-level procedure, information received from the terminal is Central processing unit within the field
Since only the number of bytes specified by the command generated by the CPU is transferred to the central processing unit CPU, if the number of bytes of the information field from the terminal is large,
Due to lack of buffer (i.e., busy state), the central processing unit CPU is RNR (RECELVE NOT
READY) frame to suppress the transmission of information frames from the terminal side.
この方式においては、中央処理装置CPUから
の上記RNRフレームの送信が多くなり、端末に
対するサービスが良くないと云う問題があり、該
端末に対するサービスを向上させるデータ転送制
御手順が待たれていた。 In this system, there is a problem in that the central processing unit CPU sends many RNR frames, resulting in poor service to the terminals, and a data transfer control procedure that improves the service to the terminals has been awaited.
第3図は、一般の通信制御装置CCUの構成を
示したものであり、第4図は該通信制御装置
CCUを構成する各機能ブロツクの詳細を模式的
に示したものである。
Figure 3 shows the configuration of a general communication control unit CCU, and Figure 4 shows the configuration of the communication control unit CCU.
This figure schematically shows the details of each functional block that makes up the CCU.
一般に、通信制御装置CCU2においては、回
線制御部21からマイクロプログラム22に割り
込む時、制御レジスタ25に、各回線に対応した
ラインコントロールワード(以下、LCWと云う)
24の内容を編集してコピーした後割り込むよう
に動作する。 Generally, in the communication control unit CCU2, when the line control unit 21 interrupts the microprogram 22, a line control word (hereinafter referred to as LCW) corresponding to each line is stored in the control register 25.
It operates to interrupt after editing and copying the contents of 24.
又、マイクロプログラム22は、加工した制御
レジスタ25の内容を、各回線に対応したLCW
にストアした後、回線制御部21に処理を戻すよ
うに機能する。 The microprogram 22 also stores the processed contents of the control register 25 in the LCW corresponding to each line.
The function functions to return the processing to the line control unit 21 after storing the data.
ハイレベル手順のリードコマンドは以下の処理
を行う。 The high-level procedure read command performs the following processing.
(1) 中央処理装置(以下、CPUと云う)1から
回線制御部21に入出力命令が発行されると、
入出力命令受領部が起動され、マイクロプログ
ラム22に対する割り込みコードが作成され
る。(1) When an input/output command is issued from the central processing unit (hereinafter referred to as CPU) 1 to the line control unit 21,
The input/output instruction receiving section is activated and an interrupt code for the microprogram 22 is created.
(2) 回線制御部21より起動されたマイクロプロ
グラム22は割り込み分類部により、該割り込
みの内容を分類する。(2) The microprogram 22 activated by the line control unit 21 classifies the contents of the interrupt using the interrupt classification unit.
(3) マイクロプログラム部22においては、当該
割り込みの内容が、入出力命令受領の時、コマ
ンド分類部によりコマンドの分類を行う。(3) In the microprogram unit 22, when the content of the interrupt is input/output command reception, the command classification unit classifies the command.
(4) 該コマンドがリードコマンドの時は、LCW
24の受信モードを文字受信(モード1)にセ
ツトすると同時に、ローカルストレージ(以
下、LSと云う)23のプログラムシーケンス
(以下、PSQと云う)をアドレスフイールド受
信待ちPSQ1にセツトする。(4) When the command is a read command, LCW
At the same time, the program sequence (hereinafter referred to as PSQ) of local storage (hereinafter referred to as LS) 23 is set to address field reception wait PSQ1.
(5) 回線制御部21においては、受信モード分類
部により、常時LCW24のモードを検索して
分類しており、該受信モードが文字処理要求で
あると、そのモードに対応した処理を行う。(5) In the line control unit 21, the reception mode classification unit constantly searches and classifies the mode of the LCW 24, and if the reception mode is a character processing request, processing corresponding to that mode is performed.
即ち、該受信した文字、例えばアドレスAに
対する巡回信号CRC値を生成して「チエツク
加算」を行い、LCW24のCRC値格納部に格
納すると、同時に受信文字組立部で組立られた
文字{即ち、アドレスA}があることを指示す
る割り込みコードを割り込み作成部で作成す
る。 That is, when a cyclic signal CRC value for the received character, for example address A, is generated, "check addition" is performed, and stored in the CRC value storage section of the LCW 24, at the same time, the character assembled in the received character assembly section {i.e., the address A} is created by the interrupt creation unit.
(6) マイクロプログラム22は(2)で説明した割り
込みコードの分類を行い、例えばアドレスAが
組立られた文字処理の割り込みであることをプ
ログラムシーケンス分類部により、LS23の
PSQ格納部を検索して確認する。(6) The microprogram 22 classifies the interrupt code as described in (2), and determines, for example, that address A is an assembled character processing interrupt, using the program sequence classification unit of the LS 23.
Search and confirm the PSQ storage area.
この場合、該PSQは“1”の為、予め他の
コマンド(例えば、セツトコマンド)によつて
セツトされている制御情報(コマンド)のアド
レスと、LCW24のデータバツフア0に格納
されたアドレスフイールドの内容との比較を行
う。 In this case, since the PSQ is "1", the address of the control information (command) that has been set in advance by another command (for example, a set command) and the contents of the address field stored in data buffer 0 of the LCW 24. Make a comparison with
該比較の結果、一致した場合は、正しい情報
フレームと認識して、LS23のPSQをコント
ロールフイールド受信待ちPSQ2にセツトす
る。 If the comparison results in a match, it is recognized as a correct information frame and the PSQ of the LS 23 is set to the control field reception waiting PSQ2.
又、該コマンドのバイトカウント(以下、
BCと云う)のコピーをLS23のBC格納部に
格納する。 Also, the byte count of the command (hereinafter,
BC) is stored in the BC storage section of the LS23.
(7) 回線制御部21はコントロールフイールド分
類部により、受信した文字の種類を分類し、そ
の種類と内部コードに変換し、制御レジスタ2
5の内部コード応納レジスタに格納する。(7) The line control unit 21 uses the control field classification unit to classify the type of received character, convert it into the type and internal code, and send it to the control register 2.
5 is stored in the internal code register.
その後、上記「チエツク加算」を行い、
LCW24のCRC値格納部に格納すると同時に、
受信文字組立部で組立られた文字(コントロー
ルフイールド情報)であることを指示する割り
込みコードを割り込み作成部で作成する。 After that, perform the above "check addition",
At the same time as storing in the CRC value storage section of LCW24,
An interrupt creation section creates an interrupt code that indicates that the character is a character (control field information) assembled by the received character assembly section.
(8) マイクロプログラム22は上記と同様にし
て、割り込みコードの分類を行い、文字処理の
割り込みであることを認識すると、プログラム
シーケンス分類部によりLS23のPSQ応納部
を検索して、その時のPSQを認識する。(8) The microprogram 22 classifies the interrupt code in the same way as above, and when it recognizes that it is a character processing interrupt, searches the PSQ response section of the LS 23 using the program sequence classification section, and calculates the current PSQ. Recognize.
この時点では該PSQは“2”である為、コ
ントロールフイールド処理部により、制御レジ
スタ25内の内部コード格納レジスタの内容を
認識する。 At this point, the PSQ is "2", so the control field processing section recognizes the contents of the internal code storage register in the control register 25.
若し、該認識した内容が、
(a) P/F=0の情報フレームの時は、
P/F“0”情報フレーム処理部により、
LS23のPSQを情報フレーム終了待ちPSQ
3にセツトすると同時に、LCW24の受信
モードを、情報フイールド受信(モード3)
にセツトする。 If the recognized content is (a) an information frame with P/F=0, the P/F “0” information frame processing unit will:
PSQ of LS23 waits for information frame to end PSQ
At the same time, set the LCW24 reception mode to information field reception (mode 3).
Set to .
(b) P/F=1の情報フレームの時は、
P/F“1”情報フレーム処理部により、
LS23のPSQを情報フレーム終了待ちPST
4にセツトすると同時に、LCW24の受信
モードを、情報フイールド受信(モード3)
にセツトする。 (b) When the information frame is P/F=1, the P/F “1” information frame processing unit:
Waiting for information frame end for PSQ of LS23 PST
4, and at the same time change the reception mode of LCW24 to information field reception (mode 3).
Set to .
該P/F“1”の情報フレームが受信され
ると、情報フレームの送信権がCPU1の方
に渡り、通信制御装置CCU2は該CPU1か
らの応答フレームを待つようになる。 When the information frame of P/F "1" is received, the right to transmit the information frame is transferred to the CPU1, and the communication control unit CCU2 waits for a response frame from the CPU1.
(9) 回線制御部21は、該情報フイールドを受信
すると、転送処理部により、該情報フイールド
を制御レジスタ25のデータバツフア0を経由
して主記憶装置MS3に転送すると同時に、前
述の「チエツク加算」処理を行う。(9) When the line control section 21 receives the information field, the transfer processing section transfers the information field to the main storage device MS3 via the data buffer 0 of the control register 25, and at the same time performs the above-mentioned "check addition". Perform processing.
この時、該情報フイールドの内容を、LS2
3に格納されているBCの値に対応するバイト
数のみ転送していた。 At this time, the contents of the information field are transferred to LS2.
Only the number of bytes corresponding to the BC value stored in 3 was transferred.
上記の転送処理において、バツフア不足の発
生、即ちBCの値より情報フイールドのバイト
数が大きいことを認識すると、バツフア不足発
生の割り込みを割り込み作成部で作成し、
CPU1に対する割り込みを行つて、バツフア
不足の発生をCPU1に通知していた。 In the above transfer process, when it is recognized that a buffer shortage has occurred, that is, the number of bytes in the information field is larger than the value of BC, an interrupt for the buffer shortage occurrence is created in the interrupt creation section,
An interrupt was issued to CPU1 to notify CPU1 of the occurrence of buffer shortage.
従つて、従来方式においては、CPU1はデー
タバツフアの不足を認識することはできたが、該
不足分に関するデータ長を認識することができな
かつた為、必要なデータバツフアが用意できず、
上記BCが示す情報フイールド以上のデータはロ
ストデータとなつてしまう問題があつた。
Therefore, in the conventional method, although the CPU 1 was able to recognize the shortage of data buffer, it was unable to recognize the data length related to the shortage, so the necessary data buffer could not be prepared.
There was a problem that data beyond the information field indicated by the above BC became lost data.
即ち、CPU1では、続く情報フイールドの受
信に対して、ビジー状態を維持できない為、端末
4より無駄な情報フイールドを受信してしまうと
云う問題があつた。 That is, since the CPU 1 cannot maintain a busy state for receiving subsequent information fields, there is a problem in that the CPU 1 ends up receiving useless information fields from the terminal 4.
又、当該CPU1が用意するコマンド列でのBC
の値と、端末4からの情報フイールド量とが一致
しない為、CPU1でのビジー(続く情報フイー
ルドの受信の抑止)の制御が困難となる問題があ
つた。 Also, BC in the command string prepared by the CPU1
Since the value of the information field does not match the amount of information field from the terminal 4, there was a problem in which it was difficult to control the CPU 1 from being busy (suppressing reception of subsequent information fields).
本発明は上記従来の欠点に鑑み、通信制御装置
CCU2において、情報フイールド受信中のバツ
フア不足の検出、及び該バツフア不足が発生した
情報フイールドのデータ長をカウントしてCPU
1に報告することにより、CPU1におけるビジ
ー状態の検出、及び解除を容易にすると共に、デ
ータ長分のバツフアが獲得できる迄、ビジー状態
を維持させることにより、端末側において無駄な
情報フレームを送信するのを抑止する方法を提供
することを目的とするものである。 In view of the above-mentioned conventional drawbacks, the present invention provides a communication control device.
The CCU2 detects buffer shortage during information field reception, counts the data length of the information field where the buffer shortage has occurred, and then
By reporting to CPU 1, it is easy to detect and release the busy state in CPU 1, and by maintaining the busy state until the buffer for the data length can be obtained, the terminal side can send unnecessary information frames. The purpose is to provide a method to prevent this.
第1図は本発明の概念を示した図であつて、a
はCPU1で生成されたコマンド列の例を示し、
bは通常のリードコマンドと、本発明のセンスコ
マンドとの情報フレームに対する処理関係を模式
的に示したものである。
FIG. 1 is a diagram showing the concept of the present invention, and a
shows an example of a command string generated by CPU1,
b schematically shows the processing relationship between a normal read command and a sense command of the present invention with respect to an information frame.
本図のbにおいて、
F:同期の為のFパターンと呼ばれるフラグ・シ
ーケンス、
A:アドレスフイールド、
C:コントロールフイールド、
I:情報(データ)フイールド、
FCS:誤り検出の為のフレームチエツクシーケン
ス、
をそれぞれ示している。 In b of this figure, F: flag sequence called F pattern for synchronization, A: address field, C: control field, I: information (data) field, FCS: frame check sequence for error detection. are shown respectively.
本図aに示すような、リードコマンド、センス
コマンドより構成されたコマンド列により、上記
情報フレームを受信する時、該リードコマンドの
BCが指定したデータ量、即ち、bの部分以上
の情報フイールドを受信した場合、該リードコマ
ンドからチエインされた特定のセンスコマンドに
より、上記情報フイールドの続きであるの部分
のデータ長をカウントし、そのカウント値と、上
記リードコマンドで読み取つたの部分のカウン
ト値、即ちBCの値とを加算して、当該情報フイ
ールドのデータ長(+)を作成し、第データ
長を、前述のP/Fビツトが“1”のフレームを
トリガとしてCPU1に転送するようにしたもの
である。 When the above information frame is received by a command string consisting of a read command and a sense command as shown in figure a, the read command is
When the BC receives an information field with a specified amount of data, that is, part b or more, it counts the data length of the part that is the continuation of the information field using a specific sense command chained from the read command, The data length (+) of the information field is created by adding that count value and the count value of the part read by the above read command, that is, the value of BC. The frame with "1" is used as a trigger to transfer the frame to the CPU 1.
即ち、本発明によれば、中央処理装置CPUか
らのサブチヤネルに対する入出力命令で指示され
たコマンドにより動作し、マイクロプログラム制
御でハイレベル手順をサポートする通信制御装置
CCUにおいて、リードコマンドと、特定のセン
スコマンドにより構成されるコマンド列により、
情報フレームを受信する時、該リードコマンドで
指示された受信バツフア域以上の情報フイールド
を受信した場合、該リードコマンドよりチエイン
された、該特定のセンスコマンドで、上記情報フ
イールドの続きをカウントし、そのカウント値
と、リードコマンドで求められているカウント値
とを加算して、一連の情報フイールドのデータ長
を作成し、該作成したデータ長を、P/Fビツト
が“1”の情報フレームの受信をトリガとして、
中央処理装置CPUに転送することにより、該中
央処理装置CPUにおけるビジー状態の検出と、
解除を容易にしたものであるので、CPU1は
CCU2から転送されてきたデータ長に対応した
データバツフアを用意することができ、CPU1
におけるビジー状態の検出、及び解除が容易にな
ると共に、該データ長分のバツフアが獲得できる
迄、該ビジー状態を維持させることにより、端末
側において無駄な情報フレームが送信されるのを
抑止する効果がある。
That is, according to the present invention, there is provided a communication control device that operates according to commands instructed by input/output instructions for subchannels from a central processing unit CPU, and supports high-level procedures under microprogram control.
In the CCU, a command string consisting of a read command and a specific sense command allows
When receiving an information frame, if an information field larger than the reception buffer area specified by the read command is received, count the continuation of the information field with the specific sense command chained from the read command, The data length of a series of information fields is created by adding the count value and the count value obtained by the read command, and the created data length is used for the information frame whose P/F bit is "1". With reception as a trigger,
detecting a busy state in the central processing unit CPU by transferring the information to the central processing unit CPU;
Since it is made easy to release, CPU1 is
A data buffer corresponding to the data length transferred from CCU2 can be prepared, and CPU1
This has the effect of making it easier to detect and release the busy state in the terminal, and preventing unnecessary information frames from being sent on the terminal side by maintaining the busy state until the buffer for the data length can be acquired. There is.
以下本発明の実施例を図面によつて詳述する。
第2図は本発明の一実施例を模式的に示した図
で、回線制御部21のデータ長カウント部21
1、マイクロプログラム22のバツフア不足処理
部221、バツフア不足チエツク部222、LS
23のデータ長格納域231、LCW24のデー
タ長格納部241が本発明を実施するのに必要な
機能である。
Embodiments of the present invention will be described in detail below with reference to the drawings.
FIG. 2 is a diagram schematically showing an embodiment of the present invention.
1. Buffer shortage processing section 221, buffer shortage check section 222, LS of microprogram 22
The data length storage area 231 of No. 23 and the data length storage section 241 of LCW 24 are functions necessary to implement the present invention.
先ず、リードコマンドの処理において、従来方
式で説明した(1)〜(9)の動作は同じであるが、本発
明を実施した場合には、以下の動作が付加され
る。即ち、
(10) マイクロプログラム22は、前記と同様にし
て、割り込みコードの分類を行い、バツフア不
足の割り込みだとバツフア不足処理部221に
より、バツフア不足発生の旨を記憶すると同時
に、LS23の上記BC格納部の内容(即ち、
BC)を、データ長格納域231にコピーする。 First, in processing a read command, operations (1) to (9) described in the conventional method are the same, but when the present invention is implemented, the following operations are added. That is, (10) the microprogram 22 classifies the interrupt code in the same manner as described above, and if it is an interrupt with a buffer shortage, the buffer shortage processing unit 221 stores the occurrence of the buffer shortage, and at the same time stores the above-mentioned BC of the LS 23. The contents of the storage (i.e.
BC) to the data length storage area 231.
この後、当該リードコマンドのチエインフラ
グの指示に基づいて、次の特定のセンスコマン
ドにチエインされる。 Thereafter, the next specific sense command is chained based on the instruction of the chain flag of the read command.
(11) (9)の動作において、若しバツフア不足が検出
されなかつた時は、LS23のPSQを“0”と
して、次のコマンドを待つ状態となる。(11) In the operation (9), if no buffer shortage is detected, the PSQ of LS23 is set to "0" and the state waits for the next command.
上記のチエインされた特定のセンスコマンド
は、以下の処理を行う。 The chained specific sense commands described above perform the following processing.
(1) CPU1から回線制御部21に入出力命令が
発行されると、入出力命令受領部が起動され、
マイクロプログラム22に対する割り込みコー
ドが作成される。(1) When an input/output command is issued from the CPU 1 to the line control unit 21, the input/output command receiving unit is activated,
An interrupt code for the microprogram 22 is created.
(2) 回線制御部21より起動されたマイクロプロ
グラム22は割り込み分類部により、該割り込
みの内容を分類する。(2) The microprogram 22 activated by the line control unit 21 classifies the contents of the interrupt using the interrupt classification unit.
(3) マイクロプログラム部22においては、当該
割り込みの内容が、入出力命令受領の時、コマ
ンド分類部によりコマンドの分類を行う。(3) In the microprogram unit 22, when the content of the interrupt is input/output command reception, the command classification unit classifies the command.
上記、(1)〜(3)の動作は、CPU1から入出力命
令が発行された時の動作であるが、前述のように
チエインされた時は、マイクロプログラム部22
はコマンド分類部の処理を行つており、次の(4)に
移る。 The operations (1) to (3) above are operations when an input/output instruction is issued from the CPU 1, but when chained as described above, the microprogram unit 22
is processing the command classification section and moves on to the next step (4).
(4) 該コマンドが特定のセンスコマンドの時は、
バツフア不足が発生しているかどうかのチエツ
クをバツフア不足チエツク部222で行う。(4) When the command is a specific sense command,
A buffer shortage check section 222 checks whether a buffer shortage has occurred.
(5) 若し、バツフア不足が発生していた場合に
は、LCW24の受信モードを情報フイールド
カウント(モード4)にセツトする。(5) If a buffer shortage has occurred, set the reception mode of the LCW 24 to information field count (mode 4).
回線制御部21は受信モード分類部により、
常時LCW24のモードを検索しており、文字
処理要求があると、そのモードに応じた処理を
行う。 The line control unit 21 uses the reception mode classification unit to
The mode of the LCW 24 is constantly searched, and when a character processing request is received, processing according to the mode is performed.
即ち、回線制御部21は上記リードコマンド
が転送した残りの情報フイールドを受信する
と、前記の「チエツク加算」を行い、LCW2
4のCRC値格納部に格納すると同時に、デー
タ長カウント部211により、該情報フイール
ドのデータ長を更新し、LCW24のデータ長
格納部24に格納する。 That is, when the line control unit 21 receives the remaining information field transferred by the read command, it performs the above-mentioned "check addition" and adds the LCW2.
At the same time, the data length counter 211 updates the data length of the information field and stores it in the data length storage 24 of the LCW 24.
そして、当該情報フレームの終了フラグFを
受信すると、チエツク加算部CRCにより、
LCW24のCRC値格納部の内容と、該情報フ
レームのFCSシーケンスとを見て、チエツク加
算値のチエツクを行い、正常か、異常かを内部
コードに変換して制御レジスタ25の内部コー
ド格納部に格納すると同時に、受信文字組立部
で、組立られた文字{即ち、終了フラグF}が
あることを指示する割り込みコードを割り込み
作成部で作成する。 When the end flag F of the information frame is received, the check adder CRC performs
The contents of the CRC value storage section of the LCW 24 and the FCS sequence of the information frame are checked, the check addition value is checked, and whether it is normal or abnormal is converted into an internal code and stored in the internal code storage section of the control register 25. At the same time as the storage, the reception character assembling section creates an interrupt code that indicates the existence of the assembled character {ie, end flag F} in the interrupt generation section.
(6) マイクロプログラム22は、前述と同じよう
にして該割り込みコードの分類を行い、文字処
理の割り込みであることを認識すると、プログ
ラムシーケンス分類部により、LS23のPSQ
を検索して、現在のPSQを認識する。(6) The microprogram 22 classifies the interrupt code in the same manner as described above, and when it recognizes that it is a character processing interrupt, the program sequence classification unit classifies the interrupt code as the PSQ of the LS 23.
Search for and recognize the current PSQ.
この場合、該PSQはリードコマンドより継
続して保持されているので、PSQは“3”か、
又は“4”の何れかになつている。 In this case, the PSQ has been held continuously since the read command, so the PSQ is “3” or
or "4".
(a) PSQ=3の場合(即ち、P/F“0”情報
フレーム受信の場合):
制御レジスタ25の内部コード格納レジス
タの内容を分類する。 (a) When PSQ=3 (that is, when receiving a P/F “0” information frame): Classify the contents of the internal code storage register of the control register 25.
該分類した内容が正常の場合は、LS23
のデータ長格納域231の内容(リードコマ
ンドで転送したデータ長、即ちBCの値)と、
LCW24のデータ長格納部241の内容
(本センスコマンドでカウントしたデータ長)
とを加算し、LS23のデータ長格納域23
1に再格納する。 If the classified content is normal, LS23
The contents of the data length storage area 231 (the data length transferred by the read command, that is, the value of BC),
Contents of data length storage section 241 of LCW24 (data length counted by this sense command)
and the data length storage area 23 of LS23.
Restore to 1.
その後、P/F“1”情報フレームを受信
するのを待つ。 Thereafter, it waits to receive a P/F "1" information frame.
(b) PSQ=4の場合(即ち、P/F“1”情報
フレーム受信の場合):
制御レジスタ25の内部コード格納レジス
タの内容を分類する。 (b) When PSQ=4 (that is, when receiving a P/F “1” information frame): The contents of the internal code storage register of the control register 25 are classified.
該分類した内容が正常の場合は、LS23
のデータ長格納域231の内容(リードコマ
ンドで転送したデータ長、即ちBCの値)と、
LCW24のデータ長格納部241の内容
(本センスコマンドでカウントしたデータ長)
とを加算して、LS23のデータ長格納域2
31に再格納すると同時に次の(7)項の処理を
行う。 If the classified content is normal, LS23
The contents of the data length storage area 231 (the data length transferred by the read command, that is, the value of BC),
Contents of data length storage section 241 of LCW24 (data length counted by this sense command)
and the data length storage area 2 of LS23.
At the same time as re-storing to 31, the following process (7) is performed.
(7) P/F“1”の情報フレームを受信すると、
前述のように、P/F“1”は情報フレームの
送信権を相手側、例えばCPU1に渡すフラグ
であるので、マイクロプログラム22の転送指
示部によりLS23のデータ長格納域231の
内容(当該情報フイールドのデータ長)の転送
を回線制御部21に要求すると同時に、LS2
3のPSQをデータ長転送待ちPSQ5にセツト
し、LCW24の受信モードをデータ長転送待
ち(モード5)にセツトする。(7) Upon receiving the information frame of P/F “1”,
As mentioned above, P/F "1" is a flag that passes the right to transmit an information frame to the other party, for example, the CPU 1, so the transfer instruction section of the microprogram 22 transfers the contents of the data length storage area 231 of the LS 23 (the relevant information At the same time as requesting the line control unit 21 to transfer the field data length), the LS2
PSQ 3 is set to data length transfer wait PSQ5, and the reception mode of LCW 24 is set to data length transfer wait (mode 5).
(8) 回線制御部21は転送処理部により、主記憶
装置MS3に対して、データ長の転送を行う。(8) The line control unit 21 uses the transfer processing unit to transfer the data length to the main storage device MS3.
(9) 続いて、マイクロプログラム22は、該デー
タ長の転送終了を確認して、当該特定のセンス
コマンドの動作を終了させ、CPU1からの応
答情報フレームを待つ。(9) Next, the microprogram 22 confirms that the data length has been transferred, ends the operation of the specific sense command, and waits for a response information frame from the CPU 1.
(10) (4)のバツフア不足のチエツクにおいて、バツ
フア不足が検出されなかつた場合には、LS2
3のPSQを“1”にして、P/F“1”の情報
フレーム受信をモニタし、該情報フレームを受
信した時点において、該コマンドの動作を終了
する。(10) If buffer shortage is not detected in the buffer shortage check in (4), LS2
PSQ of P/F "1" is set to "1", and reception of an information frame of P/F "1" is monitored, and when the information frame is received, the operation of the command is terminated.
このように、本発明においては、リードコマン
ドで情報フレームを受信して、バツフア不足を検
出すると、特定のセンスコマンドにチエインさ
れ、該センスコマンドで、当該情報フレームの残
りの情報フイールドを監視し、該情報フレームの
総データ長を計算し、P/F“1”情報フレーム
の受信をトリガとして、該データ長の中央処理装
置CPUに送信するようにし、該中央処理装置
CPUでのビジー制御を精度良く行えるようにし
た所に特徴がある。 In this way, in the present invention, when an information frame is received with a read command and a buffer shortage is detected, it is chained to a specific sense command, and the remaining information field of the information frame is monitored with the sense command, The total data length of the information frame is calculated, and the reception of the P/F "1" information frame is used as a trigger to transmit the data length to the central processing unit CPU.
The feature is that the CPU can perform busy control with high precision.
以上、詳細に説明したように、本発明のハイレ
ベル手順制御方式は、中央処理装置CPUからの
サブチヤネルに対する入出力命令で指示されたコ
マンドにより動作し、マイクロプログラム制御で
ハイレベル手順をサポートする通信制御装置
CCUにおいて、リードコマンドと、特定のセン
スコマンドにより構成されるコマンド列により、
情報フレームを受信する時、該リードコマンドで
指示された受信バツフア域以上の情報フイールド
を受信した場合、該リードコマンドよりチエイン
された、該特定のセンスコマンドで、上記情報フ
イールドの続きをカウントし、そのカウント値
と、リードコマンドで求められたカウント値とを
加算して、一連の情報フイールドのデータ長を作
成し、該作成したデータ長を、P/Fビツトが
“1”の情報フレームの受信をトリガとして、中
央処理装置CPUに転送することにより、該中央
処理装置CPUにおけるビジー状態の検出し、解
除を容易にしたものであるので、CPU1はCCU
2から転送されてきたデータ長に対応したデータ
バツフアを用意することができ、CPU1におけ
るビジー状態の検出、及び解除が容易になると共
に、該データ長分のバツフアが獲得できる迄、該
ビジー状態を維持させることにより、端末側にお
いて無駄な情報フレームが送信されるのを抑止す
る効果がある。
As described above in detail, the high-level procedure control method of the present invention operates according to commands specified by input/output instructions for subchannels from the central processing unit CPU, and communicates to support high-level procedures using microprogram control. Control device
In the CCU, a command string consisting of a read command and a specific sense command allows
When receiving an information frame, if an information field larger than the reception buffer area specified by the read command is received, count the continuation of the information field with the specific sense command chained from the read command, The count value is added to the count value obtained by the read command to create the data length of a series of information fields, and the created data length is used to receive the information frame with the P/F bit "1". This makes it easy to detect and release the busy state in the central processing unit CPU by using the CPU as a trigger to transfer the busy state to the central processing unit CPU.
A data buffer corresponding to the data length transferred from CPU 2 can be prepared, making it easy to detect and release the busy state in CPU 1, and maintain the busy state until the buffer for the data length can be acquired. This has the effect of suppressing the transmission of useless information frames on the terminal side.
第1図は本発明の概念を説明する図、第2図は
本発明の一実施例を模式的に示した図、第3図は
一般の通信制御装置CCUの構成を示した図、第
4図は第3図の通信制御装置CCUに含まれる各
機能ブロツクの詳細を模式的に示した図、であ
る。
図面において、1は中央処理装置CPU、2は
通信制御装置CCU、3は主記憶装置MS、4は端
末、21は回線制御部、22はマイクロプログラ
ム部、又はマイクロプログラム、23はローカル
ストレージLS、24はラインコントロールワー
ドLCW、25は制御レジスタ、をそれぞれ示す。
Fig. 1 is a diagram explaining the concept of the present invention, Fig. 2 is a diagram schematically showing an embodiment of the invention, Fig. 3 is a diagram showing the configuration of a general communication control device CCU, and Fig. The figure is a diagram schematically showing details of each functional block included in the communication control unit CCU of FIG. 3. In the drawing, 1 is a central processing unit CPU, 2 is a communication control unit CCU, 3 is a main storage device MS, 4 is a terminal, 21 is a line control unit, 22 is a microprogram unit or microprogram, 23 is a local storage LS, 24 represents a line control word LCW, and 25 represents a control register.
Claims (1)
対する入出力命令で指示されたコマンドにより動
作し、マイクロプログラム制御でハイレベル手順
をサポートする通信制御装置CCU2において、 リードコマンドと、センスコマンドにより構成
されるコマンド列により、情報フレームを受信す
る時、上記リードコマンドで指示された受信バツ
フア域以上の情報フイールドIを受信した場合に
おいて、 該リードコマンドよりチエインされた、特定の
センスコマンドにより、上記情報フイールドIの
続き()をカウントする手段211と、 該カウント値と、上記リードコマンドで求めら
れたカウント値とを加算することにより、一連の
情報フイールドのデータ長を作成する手段23
1,241と、 該作成されたデータ長をポール・フアイナル
(P/F)ビツト“1”のフレーム受信をトリガ
として、上記中央処理装置CPU1へ転送する手
段、 とを備えたことを特徴とするハイレベル手順制御
方式。[Claims] 1. In the communication control unit CCU2, which operates according to commands instructed by input/output commands for subchannels from the central processing unit CPU1 and supports high-level procedures under microprogram control, according to read commands and sense commands. When an information frame is received using the configured command string, if an information field I larger than the receive buffer area specified by the read command is received, the above is executed by a specific sense command chained from the read command. Means 211 for counting the continuation () of information field I; Means 23 for creating the data length of a series of information fields by adding the count value and the count value obtained by the read command.
1,241, and means for transmitting the created data length to the central processing unit CPU1 using reception of a frame with a poll/final (P/F) bit "1" as a trigger. High-level procedural control method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60086820A JPS61244150A (en) | 1985-04-23 | 1985-04-23 | High level procedure control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60086820A JPS61244150A (en) | 1985-04-23 | 1985-04-23 | High level procedure control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61244150A JPS61244150A (en) | 1986-10-30 |
| JPH0361390B2 true JPH0361390B2 (en) | 1991-09-19 |
Family
ID=13897440
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60086820A Granted JPS61244150A (en) | 1985-04-23 | 1985-04-23 | High level procedure control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61244150A (en) |
-
1985
- 1985-04-23 JP JP60086820A patent/JPS61244150A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61244150A (en) | 1986-10-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6397244B1 (en) | Distributed data processing system and error analysis information saving method appropriate therefor | |
| JPH0361390B2 (en) | ||
| JP2856617B2 (en) | Programmable controller | |
| CN110532204A (en) | A method of multi-module control command transmission and imprint analysis equipment | |
| JPH0351938A (en) | Host computer device | |
| JPS5890852A (en) | Information transfer control system | |
| JPH02219334A (en) | Exclusive control processing system | |
| JPS6055752A (en) | Packet processing system | |
| CN118606239A (en) | FPGA-based data transmission method and system, and electronic device | |
| JPS6253046A (en) | Industrial robot data communication equipment | |
| JPH056284A (en) | Error control system | |
| JPS6252641A (en) | Program trace device | |
| JPS62111340A (en) | Communication control system | |
| JPS61165160A (en) | Bus controlling system | |
| JPS602705B2 (en) | Optional connection method | |
| JPS63179644A (en) | Line control processing method | |
| JPS63132360A (en) | Input and output processing system | |
| JPH02177639A (en) | Communication control system | |
| JPS6249461A (en) | Communication system | |
| JPH04156146A (en) | Data division system for communication controller | |
| JPS6245575B2 (en) | ||
| JPS58144932A (en) | Data transmission and reception controller having decentralized processing function | |
| JPH05250300A (en) | Information processor | |
| JPS6228876A (en) | Information processing system | |
| JPS6182260A (en) | Input and output interruption control system |