[go: up one dir, main page]

JPH03175064A - Data buffer device - Google Patents

Data buffer device

Info

Publication number
JPH03175064A
JPH03175064A JP1315065A JP31506589A JPH03175064A JP H03175064 A JPH03175064 A JP H03175064A JP 1315065 A JP1315065 A JP 1315065A JP 31506589 A JP31506589 A JP 31506589A JP H03175064 A JPH03175064 A JP H03175064A
Authority
JP
Japan
Prior art keywords
data
block
buffer
printer
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1315065A
Other languages
Japanese (ja)
Inventor
Makoto Sato
誠 佐藤
Takahiro Atsuizumi
隆広 温泉
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP1315065A priority Critical patent/JPH03175064A/en
Publication of JPH03175064A publication Critical patent/JPH03175064A/en
Priority to US08/218,831 priority patent/US5729708A/en
Priority to US08/506,402 priority patent/US5687396A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To process data from a data sender with a block as a unit and to recognize the block during reception by mounting this device in the sender, receiving and storing the data sent from the sender, mounting again this device in a data receiver, and transmitting the stored data to the receiver. CONSTITUTION:A printer buffer 1 is connected to a connector 41 through an opposite computer port connector 3 to receive print output data output from a computer 40. The buffer 1 is connected to a connector 43 through an opposite printer port 2, print output data already received from the computer 40 and stored in the buffer 1 is sent from the buffer 1 to a printer 42, and resultantly printed out from the printer 42.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はたとえばコンピュータ等のデータ送出装置と、
たとえばプリンタ等のデータ受入装置との間で大量のデ
ータを送受信する際、送受信を効率よく行う目的で両者
の間に設置されるデータ・バッファ装置に関するもので
ある。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a data transmission device such as a computer,
For example, the present invention relates to a data buffer device installed between a data receiving device such as a printer for the purpose of efficiently transmitting and receiving a large amount of data to and from the data receiving device.

〔従来の技術〕[Conventional technology]

一般的なコンピュータとプリンタ間のデータ送受のため
の信号線は第58図に示すようになっている。図中、D
ATAO−DATA7はコンピュータからプリンタに送
られるバイト・データ(パラレル・データ〉を構成する
各ビットの情報を乗せる態(アサート状態)の時前記D
ATAO−DATA7信号線に有効なデータが存在する
ことを表わす。
A typical signal line for transmitting and receiving data between a computer and a printer is shown in FIG. In the figure, D
ATAO-DATA7 is in a state (asserted state) in which information of each bit constituting byte data (parallel data) sent from the computer to the printer is carried (asserted state).
This indicates that valid data exists on the ATAO-DATA7 signal line.

−ACKNLGはプリンタからコンピュータに送られる
制御信号線で、“Low”状態(アサート状態)の時バ
イト・データの受信処理が終了し、次のバイト・データ
を受信する用意ができていることを示す。またプリンタ
から送出される制御信号線BUSYは“High”状態
(アサート状態)の時バイト・データの受信が不可能で
あることを示し、逆に“Low”状態(ネゲート状態)
の時バイト・データの受信が可能であることを示す。5
LCTはプリンタが送出する制御信号線で“High”
状態(アサート状態)の時プリンタがセレクト状態であ
ることを示す。−ERRORはプリンタが送出する制御
信号線で“Low”状態(アサート状態)の時プリンタ
がエラー状態であることを示す。またPEもプリンタか
ら送出される制御信号線で前記−ERROR信号線がア
サート状態の時にこの信号線がHigh”状態(アサー
ト状態)であると、プリンタが紙無し状態であることを
表わしている。=INITはコンピュータからプリンタ
へ送られる制御信号線で“Low”状態(アサート状態
)にするとプリンタは初期状態にセットされる。
-ACKNLG is a control signal line sent from the printer to the computer, and when in the “Low” state (asserted state), it indicates that the byte data reception process has been completed and the next byte data is ready to be received. . In addition, when the control signal line BUSY sent from the printer is in the "High" state (asserted state), it indicates that it is impossible to receive byte data, and conversely, it is in the "Low" state (negate state).
Indicates that byte data reception is possible. 5
LCT is a control signal line sent by the printer and is “High”
state (asserted state) indicates that the printer is in the selected state. -ERROR is a control signal line sent by the printer, and when it is in a "Low" state (asserted state), it indicates that the printer is in an error state. PE is also a control signal line sent from the printer, and if this signal line is in a high state (asserted state) when the -ERROR signal line is asserted, it indicates that the printer is out of paper. =INIT is a control signal line sent from the computer to the printer, and when set to "Low" state (asserted state), the printer is set to the initial state.

−AUTOFEEDITはコンピュータからプリンタへ
送出される制御信号線で“Low”状態(アサート状態
)にするとプリンタはキャリッジ・リターン・コードの
受信で自動的に1行政行動作を行う。
-AUTOFEEDIT is a control signal line sent from the computer to the printer, and when set to "Low" state (asserted state), the printer automatically performs one administrative action upon reception of the carriage return code.

ただしこの信号線−AUTOFEEDXTはプリンタの
初期状態においてのみモニタされる。同様にコンピュー
タから送出される制御信号線−5LCTINもプリンタ
の初期状態においてのみモニタされ、“Low”状態(
アサート状態)であるとプリンタはDCIまたはDC3
制御コードを無視する。
However, this signal line -AUTOFEEDXT is monitored only in the initial state of the printer. Similarly, the control signal line -5LCTIN sent from the computer is also monitored only in the initial state of the printer, and is in the "Low" state (
(asserted state), the printer outputs DCI or DC3.
Ignore control codes.

次に前記第58図に示したコンピュータとプリンタの信
号線を用いた一般的なプリント出力データの送受のフロ
ーを説明する。第59図は主要信号線のタイミング・チ
ャートである。コンピュータ側におけるプリント出力デ
ータの送信動作フローは第60図に示すように、まずス
テップ5IO−1で5TROBE信号線を“High”
状態にして現在送信動作中で無いことを示した後、ステ
ップ5IO−2およびステップ5IO−3”r−AUT
OFEEDXT信号線および−5LCTIN信号線をH
i g h″または″Low″状態に設定して、ステッ
プ5IO−4およびステップ5IO−5で−INIT信
号線に“Lowパルスを送出しプリンタを初期化する。
Next, a general flow of transmitting and receiving print output data using the signal lines between the computer and the printer shown in FIG. 58 will be explained. FIG. 59 is a timing chart of main signal lines. The print output data transmission operation flow on the computer side is as shown in FIG.
Step 5IO-2 and Step 5IO-3”r-AUT
Set the OFEEDXT signal line and -5LCTIN signal line to H.
i g h" or "Low" state, and sends a "Low pulse to the -INIT signal line in steps 5IO-4 and 5IO-5 to initialize the printer.

実際のバイト・データの送信動作に際してはステップ5
IO−6でプリンタがセレクト状態であること、ステッ
プ510−7でプリンタがエラー状態でないこと、さら
にステップ5IO−8でプリンタが受信可能状態である
ことをあらかじめ確認した後、ステップ5IO−9でプ
リント出力データを構成するバイト・データをDATA
O〜DATA7信号線に送出する。そしてステップ5I
O−10およびステップ5IO−11で一5TROBE
信号線に’Low  パルスを送出してプリンタにバイ
ト・データを送信したことを知らせる。コンピュータは
その後ステップ5IO−12で−ACKNLG信号線を
モニタして″Low状態(アサート状態)になったなら
ばひとつのバイト・データの送信動作の終了として、5
IO−13でプリント出力データを構成するすべてのバ
イト・データを送信し終ったかを判定し、プリント出力
データが終了していなければステップ5IO−6に戻り
、再びバイト・データの送信動作を繰り返す。
Step 5 for actual byte data transmission operation
After confirming in advance that the printer is in the selected state at IO-6, that the printer is not in an error state at step 510-7, and that the printer is ready for reception at step 5IO-8, the printer is printed at step 5IO-9. DATA the byte data that makes up the output data
Send to O~DATA7 signal line. And step 5I
5 TROBE at O-10 and step 5IO-11
Sends a 'Low pulse to the signal line to notify the printer that byte data has been sent. Thereafter, the computer monitors the -ACKNLG signal line in step 5IO-12, and if it becomes a "Low state (asserted state)", it determines that the transmission operation of one byte data is completed.
At IO-13, it is determined whether all the byte data constituting the print output data has been transmitted. If the print output data has not been completed, the process returns to step 5IO-6 and the byte data transmission operation is repeated again.

一方プリンタ側におけるプリント出力データの受信動作
のフローは第61図のようになっており、まずステップ
5ll−1で−INIT信号が”Low状態(アサート
状態)になるのを待ち、“Low状態になったら、ステ
ップ5ll−2およびステップ5ll−3で−AUTO
FEEDXT信号線と一5LCTIN信号線の状態をそ
れぞれセーブする。次にステップ5ll−4で−ACK
NLG信号線を“High”状態(ネゲート状態)に、
ステップ5ll−5で5LCT信号線を“Hi g h
”状態(アサート状態)に、ステップ5ll−6でBU
SY信号線を”High”状態(アサート状態)に、ス
テップ5ll−7でPE信号線を“Low“状態(ネゲ
ート状態)に、ステップ5ll−8で−ERROR信号
線を“High”状態(ネゲート状態)に設定し、コン
ピュータに対して現在プリンタはセレクト状態で、エラ
ー状態では無いが受信は不可能であることを通知する。
On the other hand, the flow of the print output data reception operation on the printer side is as shown in FIG. Then, -AUTO is set in step 5ll-2 and step 5ll-3.
Save the states of the FEEDXT signal line and -5LCTIN signal line. Then in step 5ll-4 -ACK
Set the NLG signal line to “High” state (negate state),
In step 5ll-5, set the 5LCT signal line to “High
” state (asserted state), in step 5ll-6
The SY signal line is set to "High" state (asserted state), the PE signal line is set to "Low" state (negate state) at step 5ll-7, and the -ERROR signal line is set to "high" state (negate state) at step 5ll-8. ) to notify the computer that the printer is currently in the selected state and is not in an error state, but that reception is not possible.

実際のバイト・データの受信動作に際してはあらかじめ
ステップ5ll−9からステップ5ll−11にかけて
−ACKNLG信号線に“Low”パルスを送出しつつ
、BUSYを“Low”状態(ネゲート状態)にしてプ
リンタが受信可能状態であることを示した後、ステップ
5ll−12においてコンピュータから送出される一5
TROBE信号線をモニタし“Low”状態(アサート
状態)になったならばまずステップ5ll−13でBU
SY信号線を“High“状態(アサート状態)にして
コンピュータに現在プリンタは受信処理中で次のバイト
・データの受信は不可能であることを知らせた後、ステ
ップSl ! −14でバイト・データをDATAO〜
DATA7信号線から読み取り、エントリ動作あるいは
実際の印字動作を行う。その後ステップ5ll−15で
エラーが発生しなければ再びステップ5ll−9に戻り
次のバイト・データの受信動作を再開する。エラーが発
生した時はステップ5ll−16で−ERROR信号線
を“Low状態(アサート状態)にして、さらにステッ
プ5ll−17で紙無し状態を検出した場合は加えてス
テップ5it−18でPE信号線を“High”状態(
アサート状態)にした後受信動作を終了する。
During the actual reception of byte data, in advance from step 5ll-9 to step 5ll-11, while sending a "low" pulse to the ACKNLG signal line, the printer sets BUSY to the "low" state (negate state) and receives the byte data. After indicating that it is possible, the one 5 sent from the computer in step 5ll-12
Monitor the TROBE signal line, and if it becomes “Low” state (asserted state), first, in step 5ll-13, BU
After setting the SY signal line to a "High" state (asserted state) to inform the computer that the printer is currently undergoing reception processing and cannot receive the next byte data, step Sl! -14 byte data DATAO~
It reads from the DATA7 signal line and performs entry operation or actual printing operation. After that, if no error occurs in step 5ll-15, the process returns to step 5ll-9 and restarts the reception operation of the next byte data. When an error occurs, the -ERROR signal line is set to the "Low" state (asserted state) in step 5ll-16, and if a paper out state is detected in step 5ll-17, the PE signal line is also set to the "LOW" state (asserted state) in step 5ll-17. to “High” state (
(asserted state) and then ends the reception operation.

従来のプリンタ・バッファ装置は第62図に示されるよ
うな使用形態をとっていた。図中、100はデータ送出
装置であるコンピュータ、101はプリンタ・バッファ
装置本体、102はデータ受入装置であるプリンタ、1
03はコンピュータとプリンタバッファ装置を接続する
ケーブル、104はプリンタとプリンタ・バッファ装置
を接続するケーブル、105は商用AC電源、106は
AC電源ケーブルである。
A conventional printer buffer device was used as shown in FIG. 62. In the figure, 100 is a computer which is a data sending device, 101 is a printer/buffer device main body, 102 is a printer which is a data receiving device, 1
03 is a cable that connects the computer and the printer buffer device, 104 is a cable that connects the printer and the printer/buffer device, 105 is a commercial AC power source, and 106 is an AC power cable.

すなわち従来のプリンタ・バッファ装置lotは、デー
タの送受信を行うためにデータ送出装置であるコンピュ
ータ100.およびデータ受入装置でネAプリンタ10
2との間に専用の信号ケーブル103および104を用
いて接続を行い、また商用AC電力の供給をうけるため
に専用のAC電源ケーブル106を使用していた。
In other words, the conventional printer/buffer device lot uses a computer 100, which is a data sending device, to send and receive data. and data receiving device NeA printer 10
2 using dedicated signal cables 103 and 104, and a dedicated AC power cable 106 for receiving commercial AC power.

そしてこのように接続した後、前記データ送出装置であ
るコンピュータ100から専用ケーブル103を介して
プリント出力データが出力されるとプリンタ・バッファ
装置102はこのデータを受信し、旦、内部バッファに
蓄積した後専用ケーブル104を介してデータ受入装置
であるプリンタ102に送出していた。
After connecting in this manner, when print output data is output from the computer 100, which is the data sending device, via the dedicated cable 103, the printer/buffer device 102 receives this data and temporarily stores it in the internal buffer. The data is sent to the printer 102, which is a data receiving device, via a rear-dedicated cable 104.

この際のプリント出力データの送受信方法は、前記の一
般的なコンピュータとプリンタ間の送受信方法と全く同
様である。すなわち、データ送出装置であるコンピュー
タからプリント出力データを受信する際にはプリンタ・
バッファ装置は前記の一般的なプリンタの受信動作をエ
ミュレートし、またデータ受入装置であるプリンタへプ
リント出力データを送信する際には、プリンタ・バッフ
ァ装置は前記の一般的なコンピュータの送信動作をエミ
ュレートしている。
The method of transmitting and receiving print output data at this time is exactly the same as the method of transmitting and receiving the print output data between the general computer and printer described above. In other words, when receiving print output data from a computer, which is a data sending device, the printer
The buffer device emulates the receiving operation of the general printer described above, and when transmitting print output data to the printer, which is the data receiving device, the printer buffer device emulates the sending operation of the general computer described above. It's emulating.

但しここで一般的なプリンタ動作をエミュレートする際
、プリンタの“紙無し”はプリンタ・バッファ装置の内
部バッファ残容量によりエミュレートされている。すな
わちプリンタ・バッファ装置の内部バッファ残容量が0
のとき“紙無し”となっている。
However, when emulating a general printer operation, the "out of paper" state of the printer is emulated by the internal buffer remaining capacity of the printer buffer device. In other words, the remaining internal buffer capacity of the printer buffer device is 0.
When , it is “out of paper”.

そして実際には従来のプリンタ・バッファ装置は上記の
プリント出力データの送受信を同時に行っている。その
処理の手順は第63図に示されるようなものである。す
なわち、まずステップ563−1で内部バッファ残容量
の判定を行う。残容量−0の場合、制御をステップ56
3−2へ移行し、PE信号線を“H3gh″にし、その
後ステップS63−6へ移行する。一方、残容量≠Oの
場合、ステップ5633でPE信号線を“Low”にし
次にステップ563−4でコンピュータからデータが送
信されてきたかどうか判定を行う。ここでデータが送信
されてきた場合にはステップ563−5でデータを受信
し内部バッファに蓄積しその後ステップ563−6へ移
行する。ここでデータの受信は前記の一般のプリンタの
受信動作をエミュレートすることにより行われる。
In reality, the conventional printer buffer device simultaneously transmits and receives the print output data. The processing procedure is as shown in FIG. That is, first, in step 563-1, the internal buffer remaining capacity is determined. If the remaining capacity is -0, the control goes to step 56.
The process moves to step S63-2, the PE signal line is set to "H3gh", and then the process moves to step S63-6. On the other hand, if the remaining capacity≠O, the PE signal line is set to "Low" in step 5633, and then it is determined in step 563-4 whether data has been transmitted from the computer. If data is transmitted here, the data is received in step 563-5 and stored in the internal buffer, and then the process moves to step 563-6. Here, data reception is performed by emulating the reception operation of the general printer described above.

次にステップS63−6ではプリンタが受信可能状態で
あるかどうか判定を行う。ここでプリンタが受信可能状
態でない場合、制御は即時ステップ563−1へ戻る。
Next, in step S63-6, it is determined whether the printer is in a receiving state. If the printer is not ready, control immediately returns to step 563-1.

一方、プリンタが受信可能状態である場合、制御はステ
ップS63−7へ移行し、内部バッファにデータがある
か否か判定を行う。
On the other hand, if the printer is ready to receive data, control moves to step S63-7, where it is determined whether there is data in the internal buffer.

ここでデータがない場合制御はステップ563−4へ戻
る。一方データがある場合制御はステップ563−8へ
移行しコンピュータから受信し蓄積したプリント出力デ
ータを、先頭からファースト・イン・ファースト・アウ
トの方式でプリンタへ送信する。ここでデータの送信は
前記の一般のコンピュータの送信動作をエミュレートす
ることにより行われる。次に制御はステップ563−9
へ移行しプリンタへの送信が終了したプリント出力デー
タを内部バッファから即時消去し内部バッファを整理す
ることにより次の受信データのために内部バッファを解
放する。そしてこの後制御は再びステップS63−1へ
戻り上記処理を繰り返す。
If there is no data, control returns to step 563-4. On the other hand, if there is data, the control moves to step 563-8, and the print output data received from the computer and stored is transmitted to the printer in a first-in first-out manner from the beginning. Here, data transmission is performed by emulating the transmission operation of the general computer described above. Control then proceeds to step 563-9.
The print output data that has been sent to the printer is immediately erased from the internal buffer, and the internal buffer is cleaned up to free up the internal buffer for the next received data. Then, the control returns to step S63-1 again and repeats the above processing.

以上のように従来のプリンタ・バッファ装置はプリント
出力データの送受信を行っていた。
As described above, conventional printer buffer devices transmit and receive print output data.

〔発明が解決しようとしている課題〕[Problem that the invention is trying to solve]

しかし従来のプリンタ・バッファ装置はデータ送出装置
であるコンピュータと、またデータ受入装置であるプリ
ンタとの間を専用の信号ケーブルでそれぞれ常時接続し
、さらに商用AC電力をAC電源ケーブルを用いて供給
するといったようにその接地場所に各々のケーブルの長
さが制限を与えていた。また複数のコンピュータで1台
のプリンタを共用するといった使用環境、または1台の
コンピュータが複数のプリンタを使い別けるといった使
用環境、あるいは複数のコンピュータと複数のプリンタ
を用いる使用環境に対してそれぞれ入力ボートあるいは
出力ポートの数の組み合わせの点で工夫されたプリンタ
・バッファが考案されているが、ポート数以上の装置は
接続できないといった欠点があった。
However, in conventional printer/buffer devices, a computer, which is a data sending device, and a printer, which is a data receiving device, are always connected using dedicated signal cables, and commercial AC power is also supplied using an AC power cable. The length of each cable placed a limit on its grounding location. In addition, for usage environments where multiple computers share one printer, usage environments where one computer uses multiple printers separately, or usage environments where multiple computers and multiple printers are used, each input port Alternatively, printer buffers have been devised that have a clever combination of output ports, but they have the drawback of not being able to connect more devices than the number of ports.

本発明の目的は、距離的に離れて設置されるデータ送出
装置とデータ受入装置間でデータの授受を行うことを可
能とするデータ・バッファ装置を提供することである。
An object of the present invention is to provide a data buffer device that allows data to be exchanged between a data sending device and a data receiving device that are installed at a distance.

また従来のプリンタ・バッファ装置はデータ送出装置で
あるコンピュータから送信されるプリント出力データを
受信および蓄積中、データ受入装置であるプリンタが受
信可能状態である限り、即時蓄積されているプリント出
力データを先頭からファースト・イン・ファースト・ア
ウトの方式でプリンタに送信してしまうため、基本的に
プリンタ・バッファ装置は複数のプリント出力データ(
例えば複数のファイル)を区別して管理している訳では
無いので機能的にあまり高度なことはできなかった。
Furthermore, while the conventional printer buffer device is receiving and storing print output data transmitted from a computer, which is a data sending device, as long as the printer, which is a data receiving device, is in a receiving state, the stored print output data can be immediately stored. Since data is sent to the printer in a first-in, first-out manner from the beginning, the printer buffer device basically handles multiple print output data (
For example, it does not manage multiple files separately, so it is not possible to do very advanced functions.

さらに従来のプリンタ・バッファ装置はデータ送出装置
であるコンピュータから送信されるプリント出力データ
をブロッキングして受信および蓄積する手段が無いため
、当然ながら現在受信中のプリント出力データのブロッ
ク(データ・ブロック)をユーザーは識別できなかった
Furthermore, since conventional printer buffer devices do not have a means to block, receive and store print output data sent from a computer, which is a data sending device, it is natural that the block (data block) of print output data currently being received is The user could not be identified.

したがって本発明の他の目的は、データ送出装置からの
データをブロックを単位として処理することが可能であ
り、またユーザーが受信中のブロックを認識することが
できるデータ・バッファ装置を提供することである。
Therefore, another object of the present invention is to provide a data buffer device that is capable of processing data from a data sending device in units of blocks and that allows a user to recognize the block being received. be.

〔課題を解決するための手段及び作用〕上記目的を達成
するために、本発明に従うデータ・バッファ装置は、デ
ータ送出装置のコネクタに直接嵌合可能な第1コネクタ
と、データ受入装置のコネクタに直接嵌合可能な第2コ
ネクタと、データを蓄積する蓄積手段とを含み、前記デ
ータ送出装置のコネクタと前記第1コネクタとを嵌合し
た状態でデータ送出装置から第1コネクタを介して入力
されたデータを蓄積手段に蓄積する機能と、前記データ
受入装置のコネクタと前記第2コネクタとを嵌合した状
態で蓄積手段に蓄積されているデータを第2コネクタを
介してデータ受入装置に送信する機能とを有することを
特徴とする。
[Means and effects for solving the problem] In order to achieve the above object, a data buffer device according to the present invention includes a first connector that can be directly fitted to a connector of a data sending device, and a connector of a data receiving device. a second connector that can be directly fitted, and an accumulation means for accumulating data, and in a state where the connector of the data sending device and the first connector are fitted, data is input from the data sending device through the first connector. and transmitting the data stored in the storage means to the data reception device via the second connector in a state where the connector of the data reception device and the second connector are fitted together. It is characterized by having the following functions.

また本発明は、データ送出装置から送信されるデータを
受信するための対データ送出装置インターフェイスと、
前記データ送出装置から送信されるデータを前記対デー
タ送出装置インターフェイスを通じて受信して蓄積する
蓄積手段と、データ受入装置にデータを送信するための
対データ受入装置インターフェイスと、前記蓄積手段に
蓄積されたデータを、前記対データ受入装置インターフ
ェイスを通じてデータ受入装置に送信する手段と、前記
対データ送出装置インターフェイスのコネクタであって
データ送出装置の送信部のコネクタと直接嵌合するハウ
ジング形状である第1コネクタと、前記対データ受入装
置インターフェイスのコネクタであってデータ受入装置
の受信部のコネクタと直接嵌合するハウジング形状であ
る第2コネクタと、蓄積手段のデータをバックアップし
、電池により構成される電源部とを具備することを特徴
とするデータ・バッファ装置を提供する。
The present invention also provides a data transmission device interface for receiving data transmitted from the data transmission device;
storage means for receiving and storing data transmitted from the data transmission device through the data transmission device interface; a data reception device interface for transmitting data to the data reception device; means for transmitting data to a data receiving device through the data receiving device interface; and a first connector of the data sending device interface having a housing shape that directly fits with a connector of a transmitting section of the data sending device. a second connector which is a connector for the data receiving device interface and has a housing shape that directly fits into the connector of the receiving section of the data receiving device; and a power source section which backs up data in the storage means and is constituted by a battery. A data buffer device is provided.

本発明によれば、データ送出装置に装着してデータ送出
装置から送信されたアウトプット・データを受信および
蓄積した後、目的のデータ受入装置に装着し直し、蓄積
したアウトプット・データをデータ受入装置に送信する
といった簡単な操作で距離的に離れたデータ送出装置と
データ受入装置間でアウトプット・データの転送が可能
になる。
According to the present invention, after being attached to a data sending device and receiving and accumulating output data transmitted from the data sending device, the device is attached again to a target data receiving device and the accumulated output data is received. Output data can be transferred between a data sending device and a data receiving device that are separated by a distance by a simple operation such as sending data to a device.

また上記性の目的を達成するために、本発明に従うデー
タ・バッファ装置は、データ送出装置からブロック単位
に送出されたデータを受信するとともに受信したデータ
をブロック毎に、ブロック識別データであるブロック・
インデックスと対応させて前記蓄積手段に蓄積させる手
段を設けたことを特徴とする。
Further, in order to achieve the above object, the data buffer device according to the present invention receives data sent out in blocks from the data sending device, and also divides the received data into block identification data, which is block identification data.
The present invention is characterized in that means is provided for causing the storage means to store data in correspondence with the index.

さらに、受信中のデータを含むブロックに対応する前記
ブロック・インデックスを表示する手段を具備してもよ
い。
Furthermore, it may include means for displaying the block index corresponding to the block containing the data being received.

このようなデータ・バッファ装置においては、データ送
出装置からのデータをブロック毎にブロック・インデッ
クスを対応つけて蓄積するので、容易にブロック毎の管
理又は処理を行うことができるとともに、上記表示手段
を設けた場合には、ユーザーは受信中のデータを含むブ
ロック・インデックスを容易に確認することができる。
In such a data buffer device, the data from the data sending device is stored by associating the block index with each block, so that it is possible to easily manage or process each block, and the display means described above can be easily managed or processed. If provided, the user can easily confirm the block index containing the data being received.

〔実施例〕〔Example〕

(1)  第1図から第57図は本発明の実施例を表わ
している。
(1) FIGS. 1 to 57 show embodiments of the present invention.

ある。第1図および第2図において1はプリンタ・バッ
ファ本体、2は対プリンタ・ポート・コネクタ、3は対
コンピュータ・ポート・コネクタ、4はリセット・ボタ
ン、5はクリア・ボタン、6は受信開始/終了ボタン、
7は受信中断ボタン、8は送信開始、′終了ボタン、9
は送信中断ボタン、10はブロック・インデックス・ボ
タンで全部で20個ありそれぞれ1から20まで番号が
付けられている。11は全ブロック選択ボタンである。
be. In Figures 1 and 2, 1 is the printer buffer body, 2 is the printer port connector, 3 is the computer port connector, 4 is the reset button, 5 is the clear button, and 6 is the reception start/reception button. end button,
7 is the reception stop button, 8 is the transmission start button, 'end button, 9
10 is a transmission interrupt button, 10 is a block index button, and there are 20 buttons in total, each numbered from 1 to 20. 11 is an all block selection button.

12は電源インジケータ・ランプ、13は受信中表示ラ
ンプ、14は送信中表示ランプ、15はバッファ空表示
ランプ、16はバッファ・フル表示ランプ、17は残バ
ッファ/未送信データ容量表示ランプでOから100ま
での整数を表示できる。18はブロック・インデックス
表示ランプで全部で20個ありそれぞれ1から2゜まで
の番号が付けられている。19は電源スィッチである。
12 is the power indicator lamp, 13 is the receiving indicator lamp, 14 is the sending indicator lamp, 15 is the buffer empty indicator lamp, 16 is the buffer full indicator lamp, 17 is the remaining buffer/unsent data capacity indicator lamp, starting from O. Can display integers up to 100. Reference numeral 18 indicates block index display lamps, of which there are 20 in total, each numbered from 1 to 2 degrees. 19 is a power switch.

第3図は本発明の実施例であるところのプリンタ・バッ
ファのブロック図を表わしており、図中21は電源部で
あり電池およびレギュレータ等で構成される。19は電
源部21に接続されシステムへの電源供給を制御する電
源スィッチ、12は電源部21に接続され電源供給のオ
ン/オフを表示する電源インジケータ・ランプ、22は
該プリンタ・バッファの動作制御の中枢であるところの
CPU、23は前記CPU22に接続され後述する各機
能ブロックとの間でデータを授受するためのバス、24
は前記CPU22上で動く動作制御プログラムが格納さ
れているROM、25は前記CPU22がある一定時間
の経過したことを認知し得る機能を有するタイマ、26
は対プリンタ・ポートであり、前記対プリンタ・ポート
・コネクタ2に対するデータ及び制御信号線のり一ド/
ライトを前記CPU22から可能にしている。27は対
コンピュータ・ポートであり、前記対コンピュータ・ポ
ート・コネクタ3に対するデータ及び制御信号線のり一
ド/ライトを前記CPU22から可能にしていると同時
に−INIT  C信号がアクティブになったことをリ
セット割込み信号線28を用いて前記CPU22に通知
する機能を有する。
FIG. 3 shows a block diagram of a printer buffer according to an embodiment of the present invention. In the figure, reference numeral 21 denotes a power supply section, which is composed of a battery, a regulator, and the like. 19 is a power switch that is connected to the power supply unit 21 and controls the power supply to the system; 12 is a power indicator lamp that is connected to the power supply unit 21 and indicates whether the power supply is on/off; and 22 is the operation control of the printer buffer. A CPU 23 is the central part of the CPU 22, and a bus 24 is connected to the CPU 22 and is used to exchange data with each functional block to be described later.
25 is a ROM in which an operation control program running on the CPU 22 is stored; 25 is a timer that allows the CPU 22 to recognize that a certain period of time has elapsed; 26;
is a printer port, and the data and control signal lines connected to the printer port connector 2 are
Writing is possible from the CPU 22. 27 is a computer port, which enables data and control signal lines to be read/written from the CPU 22 to the computer port connector 3, and at the same time resets when the -INIT C signal becomes active. It has a function of notifying the CPU 22 using the interrupt signal line 28.

28は前述したようにリセット割込み信号線である。28 is a reset interrupt signal line as described above.

2つは入カバネルであり、ここには前述したリセット・
ボタン4、クリア・ボタン5、受信開始/終了ボタン6
、受信中断ボタン7、送信開始/終了ボタン8、送信中
断ボタン9、ブロック・インデックス・ボタン10、お
よび全ブロック選択ボタン11が配置されて′いる。3
0は入力ポートであり、前記入カバネル29上の前記各
ボタンの操作状況(押下されているか否か)の読み出し
を前記CPU22から可能にするとともに、前記リセッ
ト・ボタン4が押下された時には前記CPU22に対し
てリセット割込み信号線28を用いて通知する機能を有
する。
The second is the input panel, where the reset and
Button 4, Clear button 5, Reception start/end button 6
, a reception interrupt button 7, a transmission start/end button 8, a transmission interrupt button 9, a block index button 10, and an all block selection button 11 are arranged. 3
0 is an input port, which enables the CPU 22 to read out the operation status (whether or not it is pressed) of each button on the input cover panel 29, and when the reset button 4 is pressed, the CPU 22 It has a function of notifying the user using the reset interrupt signal line 28.

31は表示パネルであり、ここには前述し、た受信中表
示ランプ13、送信中表示ランプ14、バッファ空表示
ランプ15、バッファ・フル表示ランプ16、残バッフ
ァ/未送信データ容量表示ランプ17、およびブロック
・インデックス表示ランプ18が配置されている。32
は出力ポートであり、前記表示パネル31上の前記各ラ
ンプへの点燈設定(点燈/点滅/消燈)の書き込みを前
記CPU22から可能にしている。
31 is a display panel, which includes the above-mentioned receiving indicator lamp 13, sending indicator lamp 14, buffer empty indicator lamp 15, buffer full indicator lamp 16, remaining buffer/unsent data capacity indicator lamp 17, and a block index display lamp 18. 32
is an output port, which enables the CPU 22 to write lighting settings (lighting/flashing/lighting out) to each of the lamps on the display panel 31.

33は主メモリで後述する制御パラメータ・テーブルの
格納場所として一部使用する他はほとんどプリント出力
データの受信バッファとして用いられる。
A main memory 33 is used partly as a storage location for a control parameter table to be described later, but mostly as a receiving buffer for print output data.

第4図は本発明の実施例であるところのプリンタ・バッ
ファ1の使用形態を表わした図である。
FIG. 4 is a diagram showing how the printer buffer 1 is used as an embodiment of the present invention.

該図左側はデータ送出装置であるところのコンピュータ
からのプリント出力データの受信動作の使用形態を表わ
しており、図中40はプリント出力データを送信するコ
ンピュータであり、41は前記コンピュータ40に装備
されているプリンタ・ポート・コネクタであり、プリン
タ・バッファ1は該コネクタ41に前記対コンピュータ
・ポート・コネクタ3を介して接続されている。このよ
うに接続された後、プリンタ・バッファlは前記コンピ
ュータ40から出力されたプリント出力データを受信す
る。
The left side of the figure shows a usage pattern for receiving print output data from a computer, which is a data sending device. The printer buffer 1 is connected to the connector 41 via the computer port connector 3. After being connected in this manner, the printer buffer I receives print output data output from the computer 40.

一方策4図の右側はデータ受入装置であるところのプリ
ンタへのプリント出力データの送信動作の使用形態を表
わしており、図中42はプリント出力データを受信し実
際プリント・アウトを行うプリンタであり、43は前記
プリンタ42に装備されているコンピュータ・ポート・
コネクタであり、プリンタ・バッファlは該コネクタ4
3に前記対プリンタ・ポート2を介して接続されている
。このように接続された後、すでに前記コンピュータ4
0から受信され、プリンタ・バッファlに蓄積されてい
るプリント出力データをプリンタ・バッファ1から前記
プリンタ42へ送信して結果的にプリンタ42からプリ
ント・アウトを得る。
On the other hand, the right side of Figure 4 shows the usage of the operation of transmitting print output data to a printer, which is a data receiving device. In the figure, 42 is the printer that receives the print output data and actually prints it out. , 43 is a computer port equipped in the printer 42.
connector, and the printer buffer l is connected to the connector 4.
3 via the printer port 2. After being connected in this way, the computer 4
The print output data received from printer buffer 1 and stored in printer buffer 1 is transmitted from printer buffer 1 to printer 42, resulting in a printout from printer 42.

第5図は本発明の実施例であるところのプリンタ・バッ
ファの前記対プリンタ・ポート2及び対コンピュータ・
ポート3それぞれにおけるデータおよび制御信号線の取
り扱いを表わしたものである。
FIG. 5 shows the printer port 2 and the computer port of the printer buffer according to an embodiment of the present invention.
It shows how data and control signal lines are handled in each port 3.

この図を見るとわかるように各々のポートに入力する信
号はすべて非接続時(コンピュータあるいはプリンタに
接続されていない時)に“High″状態となるように
電気的にプル・アップされている。また−AUTOFE
EDXT  Cおよび−5LCTINCの対コンピュー
タ・ポートの2つの制御信号線については、イニシャラ
イズ時にのみモニタされその情報が主メモリ33に保存
される。
As can be seen from this figure, all the signals input to each port are electrically pulled up so that they are in the "High" state when not connected (when not connected to a computer or printer). Also - AUTOFE
The two control signal lines of the computer port EDXT C and -5LCTINC are monitored only at the time of initialization, and the information is stored in the main memory 33.

対コンピュータ・ポートの制御信号線−INITCはリ
セット信号線として扱われ、”Low”状態がコンピュ
ータから入力されると前記リセット割込み信号線28が
アサートされCPU22に通知された後、イニシャライ
ズ動作に移行する。
The control signal line for the computer port - INITC is treated as a reset signal line, and when a "Low" state is input from the computer, the reset interrupt signal line 28 is asserted and the CPU 22 is notified, and then the process moves to the initialization operation. .

出力信号線のうち対コンピュータ・ポートの制御信号線
5LCT  Cは常に“High”状態が出力されるよ
うになっている。また対プリンタ・ポートの−INIT
  P、−AUTOFEEDXT  Pそして一3LC
TIN  Pの3つの制御信号線はすべて送信動作開始
時にのみ出力される。
Among the output signal lines, the control signal line 5LCTC of the computer port is always outputted in a "High" state. Also, -INIT of the printer port
P, -AUTOFEEDXT P and -3LC
All three control signal lines of TIN P are output only at the start of a transmission operation.

第6図は本発明の実施例であるところのプリンタ・バッ
ファにおけるデータ・ブロックの概念を表わしたもので
ある。
FIG. 6 shows the concept of data blocks in a printer buffer according to an embodiment of the present invention.

図中、上段に示したブロック終了コードによるデータ・
ブロッキングはコンピュータから送出されるプリント出
力データが各々あらかじめ決められたブロック終了コー
ドによって終結している場合であり、このような場合プ
リンタ・バッファはそのブロック終了コードを検知して
ひとつのデータ・ブロックの終結とみなす。すなわちコ
ンピュータから送出されるプリント出力データとプリン
タ・バッファ内で管理されるデータ・ブロックは完全に
1対1で対応づけされる。
In the figure, the data and block end codes shown in the upper row are
Blocking is when each piece of printout data sent from a computer is terminated by a predetermined block end code; in such cases, the printer buffer detects the block end code and prints out one data block. Consider it the end. That is, there is a complete one-to-one correspondence between print output data sent from the computer and data blocks managed within the printer buffer.

図中、中段はブロック終了操作によるデータ・ブロッキ
ングを示しており、この場合コンピュータから送出され
るプリント出力データは前述のブロック終了コードによ
って終結しておらず、ユーザー(オペレータ)のあらか
じめ決められた手順に従ったブロック終了操作によって
プリンタ・バッファはひとつのデータ・ブロックを終結
する。ここに示しである例のようにプリンタ・バッファ
内で管理されるデータ・ブロックは複数のプリント出力
データによって構成される場合があり、同図上段の場合
と違ってプリント出力データとデータ・ブロックは完全
に1対lで対応づけされない。
In the figure, the middle row shows data blocking due to a block end operation; in this case, the print output data sent from the computer is not terminated by the aforementioned block end code, and is based on the user's (operator's) predetermined procedure. The end-of-block operation according to the end-of-block operation causes the printer buffer to end one data block. As in the example shown here, the data block managed in the printer buffer may consist of multiple print output data, and unlike the case in the upper part of the figure, the print output data and data block are There is not a complete one-to-l correspondence.

図中、下段は受信バッファ・フル時におけるデータ・ブ
ロッキングを示しており、この場合プリンタ・バッファ
はプリント出力データ受信中にその格納メモリ領域であ
るところの受信バッファが満杯になったことを検知して
、その後ユーザーのあらかじめ決められた手順に従った
ブロック中断あるいは終了操作によってデータ・ブロッ
クの終結動作を行う。
The lower part of the figure shows data blocking when the receive buffer is full. In this case, the printer buffer detects that the receive buffer, which is its storage memory area, is full while receiving print output data. Then, the data block is terminated by a block interruption or termination operation according to a user's predetermined procedure.

いずれの場合にせよ、データ・ブロックは該プリンタ・
バッファで管理されるプリント出力データの単位である
ことには変わりない。
In either case, the data block is
It is still a unit of print output data managed in a buffer.

第7図は本発明の実施例であるところのプリンタ・バッ
ファにおける前記主メモリ33の内容を表わしたもので
ある。
FIG. 7 shows the contents of the main memory 33 in the printer buffer according to the embodiment of the present invention.

図中、割込みペクタ・テーブルはCPUの例外処理及び
外部割込みサービス・ルーチンのポインタが格納されて
いる領域、制御パラメータ・テーブルは該プリンタ・バ
ッファの動作制御に必要な各種パラメータが格納されて
いる領域、スタック領域は文字どおり前記CPU22に
とってのスタック領域、そして受信バッファは該プリン
タ・バッファがコンピュータから受信するデータ・ブロ
ックの格納用に使用できる領域である。便宜的に、以後
そのスタート・アドレスをMEMSTAおよびそのサイ
ズ(バイト数)をMEMMAXとする。
In the figure, the interrupt vector table is an area where pointers for CPU exception handling and external interrupt service routines are stored, and the control parameter table is an area where various parameters necessary for controlling the operation of the printer buffer are stored. , the stack area is literally the stack area for the CPU 22, and the receive buffer is the area that the printer buffer can use to store blocks of data that it receives from the computer. For convenience, the start address will hereinafter be referred to as MEMSTA and its size (number of bytes) as MEMMAX.

第8図は前記主メモリ33上に設けられた前記制御パラ
メータ・テーブルの構成の概要を表わしたものである。
FIG. 8 shows an outline of the structure of the control parameter table provided on the main memory 33.

図を見ると明らかなように該制御パラメータ・テーブル
は環境テーブル、ブロック登録テーブル、受信順テーブ
ル、そして送信順テーブルの4つの部分によって構成さ
れている。
As is clear from the figure, the control parameter table is composed of four parts: an environment table, a block registration table, a reception order table, and a transmission order table.

前記環境テーブルは当該プリンタ・バッファの動作制御
における動作環境を表わすパラメータによって構成され
るテーブルであり、前記ブロック登録テーブルはコンピ
ュータから受信され登録されたデータ・ブロック個々の
パラメータによって構成されるテーブルであり、前記受
信順ブロックはコンピュータから受信され登録されたデ
ータ・ブロックの受信順序を表わすパラメータによって
構成されるテーブルであり、前記送信順ブロックはプリ
ンタへ送信されるデータ・ブロックの送信順序を表わす
パラメータによって構成されるテーブルである。
The environment table is a table composed of parameters representing an operating environment for controlling the operation of the printer buffer, and the block registration table is a table composed of parameters for each data block received and registered from the computer. , the reception order block is a table made up of parameters representing the reception order of data blocks received and registered from the computer, and the transmission order block is a table made up of parameters representing the transmission order of data blocks sent to the printer. This is a table composed of

第9図は第8図で示した前記環境テーブルの構成を詳し
く表わしたものである。
FIG. 9 shows in detail the structure of the environment table shown in FIG. 8.

図中、RB L OCK Iは次にコンピュータから受
信されるデータ・ブロックに与えるブロック・インデッ
クスあるいは現在コンピュータから受信中のデータ・ブ
ロックのブロック・インデックスが格納されている1バ
イトの領域で、lから20のうちいずれかの値をとり得
る。イニシャライズ時はデフォルト値として“1”が設
定されている。
In the figure, RB L OCK I is a 1-byte area in which the block index given to the next data block received from the computer or the block index of the data block currently being received from the computer is stored, starting from l. It can take any value out of 20. At initialization, "1" is set as a default value.

TBLOCKIは次にプリンタへ送信されるデータ・ブ
ロックのブロック・インデックスあるいは現在プリンタ
へ送信中のデータ・ブロックのブロック・インデックス
が格納されている1バイトの領域で、lから20のうち
いずれかの値をとり得る。イニシャライズ時はデフォル
ト値として“l”が設定されている。
TBLOCKI is a 1-byte area that stores the block index of the next data block to be sent to the printer or the block index of the data block currently being sent to the printer, and can be any value from 1 to 20. can be taken. At initialization, "l" is set as a default value.

RBLOCKSは現在すでにコンピュータから受信され
、登録されているデータ・ブロックの総数が格納されて
いる1バイトの領域で、Oから20の間の値をとり得る
。この値がOの時は登録されているデータ・ブロックが
皆無であることを表わし、20の時は登録されているデ
ータ・ブロックの総数が最大ブロック登録数に達してい
ることを表わしている。イニシャライズ時は“O”にク
リアされている。TBLOCKSは現在プリンタへ送信
中のデータ・ブロックも含めて送信動作開始後すでにプ
リンタへ送信したデータ・ブロックの総数が格納されて
いる1バイトの領域で、0から20の間の値をとり得る
が、前記登録済ブロック数RBLOCKSの値を越える
ことは無い。すなわち、 0≦TBLOCKS≦RBLOCKS≦20の関係が成
り立つ。この値が0の時は該プリンタ・バッファのプリ
ンタへの送信動作が行われていないことを表わし、RB
LOCKSの値に一致している時は登録されているすべ
てのデータ・ブロックをプリンタへ送信したかあるいは
最後のひとつのデータ・ブロックをプリンタへ送信中で
あるかのいずれかの動作状態であることを表わしている
RBLOCKS is a 1-byte area in which the total number of data blocks currently registered and received from the computer is stored, and can take a value between 0 and 20. When this value is O, it means that there are no registered data blocks, and when it is 20, it means that the total number of registered data blocks has reached the maximum number of registered blocks. At initialization, it is cleared to "O". TBLOCKS is a 1-byte area that stores the total number of data blocks that have already been sent to the printer since the start of the sending operation, including the data block that is currently being sent to the printer, and can take a value between 0 and 20. , will never exceed the value of the registered block number RBLOCKS. That is, the following relationship holds: 0≦TBLOCKS≦RBLOCKS≦20. When this value is 0, it means that the printer buffer is not being sent to the printer, and the RB
When it matches the LOCKS value, the operating state is either that all registered data blocks have been sent to the printer, or that the last data block is being sent to the printer. It represents.

イニシャライズ時は0″にクリアされている。At initialization, it is cleared to 0''.

U M E Mは当該プリンタ・バッファがコンピュー
タから受信するデータ・ブロックの格納用に使用できる
領域すなわち第7図で示した前記受信バッファのサイズ
(総バイト数)が格納されている3バイト(24ビツト
)長の領域で、イニシャライズ時に値MEMMAXが設
定されている。
U M E M is an area that can be used to store data blocks that the printer buffer receives from the computer, that is, 3 bytes (24 The value MEMMAX is set at initialization in the area of length (bits).

RREMは前記受信バッファの総バイト数から現在すで
にコンピュータから受信したデータ・ブロックが格納さ
れている部分の総バイト数を差し引いた残りのメモリf
f1(バイト数)が格納されている3バイト(24ビツ
ト)長の領域でOから前記受信バッファのサイズU M
 E Mの値(M E M M A X )の間の値を
とり得る。この値がMEMMAXの時は、残受信バッフ
ァ量が最大値すなわち“バッファ空”状態であることを
表わし、Oの時は残受信バッファ量が皆無すなわち“バ
ッファ・フル”状態であることを表わしている。イニシ
ャライズ時は値MEMMAXが設定されている。
RREM is the remaining memory f obtained by subtracting the total number of bytes of the part where data blocks already received from the computer are currently stored from the total number of bytes of the receive buffer.
In the 3-byte (24-bit) long area where f1 (number of bytes) is stored, the size of the receive buffer from O to U M
It can take values between the values of E M (M E M M A X ). When this value is MEMMAX, it indicates that the remaining receive buffer amount is at its maximum value, that is, the buffer is empty, and when this value is O, it indicates that there is no remaining receive buffer amount, that is, the buffer is full. There is. At initialization, the value MEMMAX is set.

TBLOCKSIZは現在プリンタへ送信中のデータ・
ブロックについてすでにプリンタへ送信したバイト・デ
ータの総数(バイト数)が格納されている3バイト(2
4ビツト)長の領域で、Oから当該データ・ブロックの
サイズ(バイト数)までの値をとり得る。この値がOの
時は当該データ・ブロックのプリンタへの送信動作が行
われていないことを表わし、当該データ・ブロックのサ
イズに一致している時は該データ・ブロックのプリンタ
への送信動作が終了したことを表わしている。
TBLOCKSIZ is the data currently being sent to the printer.
The 3 bytes (2
This is a 4-bit) long area that can take values from O to the size (number of bytes) of the data block. When this value is O, it means that the data block is not being sent to the printer, and when it matches the size of the data block, the data block is not being sent to the printer. It indicates that it has finished.

イニシャライズ時は0にクリアされている。It is cleared to 0 at initialization.

TSIZはプリンタへ送信すべきすべてのデータ・ブロ
ックのサイズ(バイト数)の総数が格納さflている3
バイト(24ビツト)長の領域である。この値が0の時
はプリンタへ送信すべきデータ・ブロックが存在しない
ことを表わしている。イニシャライズ時は“O“にクリ
アされている。
TSIZ stores the total size (in bytes) of all data blocks to be sent to the printer.3
This is a byte (24 bit) long area. When this value is 0, it indicates that there is no data block to be sent to the printer. At initialization, it is cleared to "O".

TREMは前記プリンタへ送信すべきすべてのデータ・
ブロックの総バイト数TSIZから現在すでにプリンタ
へ送信したバイト・データの総バイト数を差し引いた残
りのメモリ量(バイト数)が格納されている3バイト(
24ビツト)長の領域で0から前記送信すべきすべての
バイト・データ数TSIZの間の値をとり得る。この値
がTSIZの値と一致するときは、送信動作開始後プリ
ンタへ現在まだ1バイトのデータも送信していないこと
を表わし、0の時は送信すべきすべてのデータ・ブロッ
クの送信動作が終了したことを表わしている。
TREM sends all data to be sent to the printer.
The 3 bytes (number of bytes) that store the remaining memory amount (number of bytes) after subtracting the total number of bytes and data that have already been sent to the printer from the total number of bytes of the block TSIZ (
It is a 24-bit) long area and can take a value between 0 and the total number of byte data to be transmitted TSIZ. When this value matches the value of TSIZ, it means that not even a single byte of data has been sent to the printer after the start of the sending operation, and when it is 0, the sending operation of all data blocks to be sent has been completed. represents what has been done.

イニシャライズ時はO”にクリアされている。At initialization, it is cleared to "O".

5TATEは対コンピュータ・ポートの制御信号線のイ
ニシャライズ時における状態が格納されている1バイト
(8ビツト)の領域である。
5TATE is a 1-byte (8-bit) area in which the state of the control signal line of the computer port at the time of initialization is stored.

第10図は前記対コンピュータ・ボートの制御信号線の
イニシャル状態5TATEのビット構成を表わしたもの
である。
FIG. 10 shows the bit configuration of the initial state 5TATE of the control signal line for the computer board.

図中ビット−Oにあたる5LINには前記制御信号線、
−5LCTIN  Cの状態(High”または” L
 o w ” )が、ビット−1にあたるAFDXTに
は前記制御信号線−AUTOFEEDXT  Cの状態
 (“H4gh”または“Low”)がそれぞれ格納さ
れている。またビット−7からビット−2にあたる 5
ビツトは定義されておらず未使用である。
The control signal line 5LIN corresponding to bit -O in the figure,
-5LCTIN C status (High” or “L”
The state of the control signal line -AUTOFEEDXTC ("H4gh" or "Low") is stored in AFDXT, which corresponds to bit -1.Furthermore, the state of the control signal line -AUTOFEEDXTC ("H4gh" or "Low") corresponds to bit -7 to bit -2.
Bit is undefined and unused.

第11図は第8図で示した前記ブロック登録テーブルの
構成を詳しく表わしたものである。
FIG. 11 shows in detail the structure of the block registration table shown in FIG. 8.

図中、BLOCKADR(i:l (1≦i≦20)は
、ブロック・インデックスがiとして登録された(また
はコンピュータから受信中の)データ・ブロックの受信
バッファにおけるスタート・アドレスが格納されている
3バイト(24ビツト)長の領域であり、13LOCK
SIZ (i)(1≦i≦20)は該データ・ブロック
のサイズ(バイト数)が格納されている3バイト(24
ビツト)長の領域である。イニシャライズ時BLOCK
ADH(1)にはデフォルト値として前記受信バッファ
のスタート・アドレスMEMSTAが設定されBLOC
KSIZ (1)は0にクリアされている。
In the figure, BLOCKADR(i:l (1≦i≦20) is 3 where the start address in the reception buffer of the data block whose block index is registered as i (or which is being received from the computer) is stored. It is a byte (24 bits) long area and has 13 LOCKs.
SIZ (i) (1≦i≦20) is 3 bytes (24
This is the area of length (bits). BLOCK at initialization
The start address MEMSTA of the receive buffer is set as a default value in ADH (1), and the BLOC
KSIZ (1) is cleared to 0.

第12図は第8図で示した前記受信順テーブルの内容を
詳しく表わしたものである。
FIG. 12 shows in detail the contents of the reception order table shown in FIG. 8.

図中、RBLOCKSEQ (m)(1≦m≦20)は
受信動作開始後m番目に受信登録されたデータ・ブロッ
クのブロック・インデックスの値がそれぞれ格納されて
いる各々1バイトの領域で1から20あるいはOの値を
とり得る。例えばRBLOCKSEQ(3) =4は3
番目に受信登録されたデータ・ブロックのブロック・イ
ンデックスが4であることを表わしている。値が0のと
きは登録されたデータ・ブロックが存在しないことを表
わす。
In the figure, RBLOCKSEQ (m) (1≦m≦20) is an area of 1 to 20, each of 1 byte, in which the value of the block index of the m-th data block registered for reception after the start of the reception operation is stored. Alternatively, it can take a value of O. For example, RBLOCKSEQ(3) = 4 is 3
This indicates that the block index of the data block registered for reception is 4. A value of 0 indicates that there is no registered data block.

このテーブルは、順番を表わすという性質上RBLOC
KSEQ (1)から順に見た場合0の値を持つ領域以
降に有効なデータは存在しないように管理されている。
Due to the nature of this table representing the order, the RBLOC
When viewed in order from KSEQ (1), it is managed so that no valid data exists after the area with a value of 0.

すなわちRBLOCKSEQ [N)≠OかつRBLO
CKSEQ (N+1)=Oならばそれ以降のすべての
領域についてRBLOCKSEQ (N+2)=RBL
OCKSEQ (N+3)=・・・=RBLOCKSE
Q(20) =Oとなるように設定されている。
That is, RBLOCKSEQ [N)≠O and RBLO
If CKSEQ (N+1)=O, then RBLOCKSEQ (N+2)=RBL for all areas after that
OCKSEQ (N+3)=...=RBLOCKSE
It is set so that Q(20)=O.

この場合登録されているデータ・ブロックの数(前記環
境テーブルの中のRBLOCKSの値)はNである。
In this case, the number of registered data blocks (the value of RBLOCKS in the environment table) is N.

またO以外の値が複数個重複して設定されることはない
。イニシャル時はすべての領域が0にクリアされている
。すなわち RBLOCKSEQ (m)=O(1≦m≦20)とな
っている。
Further, multiple values other than O are not set redundantly. At initialization, all areas are cleared to 0. That is, RBLOCKSEQ (m)=O (1≦m≦20).

第13図は第8図で示した前記送信順テーブルの内容を
詳しく表わしたものである。
FIG. 13 shows in detail the contents of the transmission order table shown in FIG. 8.

図中、TBLOCKSEQ [m〕(1≦m≦20)は
送信動作開始後m番目に送信されるデータ・ブロックの
ブロック・インデックスの値がそれぞれ格納されている
各々1バイトの領域で1から20あるいはOの値をとり
得る。例えばTBLOCKSEQ (3)=4は3番目
に送信されるデータ・ブロックのブロック・インデック
スが4であることを表わしている。値が0のときは送信
されるブロックが存在しないことを表わす。
In the figure, TBLOCKSEQ [m] (1≦m≦20) is an area of 1 byte each in which the value of the block index of the m-th data block to be transmitted after the start of the transmission operation is stored. It can take a value of O. For example, TBLOCKSEQ (3)=4 indicates that the block index of the third data block to be transmitted is 4. A value of 0 indicates that there is no block to be transmitted.

このテーブルは、順番を表わすという性質上TBLOC
KSEQ (1)から順に見た場合0の値を持つ領域以
降に有効なデータは存在しないように管理されている。
This table is TBLOC because it represents the order.
When viewed in order from KSEQ (1), it is managed so that no valid data exists after the area with a value of 0.

すなわちT B L OCK S E Q [: N 
)≠OかつTBLOCKSEQ (N+1〕=Oならば
それ以降のすべての領域について置0CR3EQ (N
+2)=TBLOCKSEQ [N+3]=・・・= 
T B L OCK S E Q〔20〕=0となるよ
うに設定されている。
That is, T B L OCK S E Q [: N
)≠O and TBLOCKSEQ (N+1) = O, set 0CR3EQ (N
+2)=TBLOCKSEQ [N+3]=...=
It is set so that T B L O C K S E Q [20] = 0.

この場合送信されるデータ・ブロックの数(前記環境テ
ーブルの中のTBLOCKSの値)はNである。
The number of data blocks transmitted in this case (the value of TBLOCKS in the environment table) is N.

またO以外の値が複数個重複して設定されることはない
。イニシャル時はすべての領域がOにクリアされている
。すなわち TBLOCKSEQ Cm)=O(1≦m≦20)とな
っている。
Further, multiple values other than O are not set redundantly. At initialization, all areas are cleared to O. That is, TBLOCKSEQ Cm)=O (1≦m≦20).

(II)  つぎに以上説明してきた本発明の実施例で
あるところのプリンタ・バッファ動作制御フローを第1
4図〜第57図を参照して詳しく説明する。
(II) Next, the printer buffer operation control flow in the embodiment of the present invention explained above will be explained in the first section.
This will be explained in detail with reference to FIGS. 4 to 57.

第14図は本発明の実施例であるところのプリンタ・バ
ッファの動作制御の概略を表わしたものである。
FIG. 14 schematically shows the operation control of a printer buffer according to an embodiment of the present invention.

動作制御の概略は第14図に示すように、電源が投入さ
れたり、各動作中にリセット・ボタン4が押下されたり
、あるいは受信動作中に対コンピュータ・ポートの制御
信号線−INIT  Cがアクティブになると当該プリ
ンタ・バッファの動作制御は速やかにステップSlに移
行しイニシャライズ動作を行う。ステップS1でのイニ
シャライズ動作が終了するとステップS2に移行してア
イドル状態になり動作指示を待つことになる。ここで前
記受信開始/終了ボタン5が押下されるとステップS3
へ移行し受信動作を開始する。またステップS2で前記
送信開始/終了ボタン6が押下されるとステップS4へ
移行し送信動作を開始する。またステップS2で前記ク
リア・ボタン5が押下されるとステップS5へ移行しデ
ータ・ブロックの選択クリア動作を開始する。ステップ
S3.S4およびS5のいずれの動作においてもその動
作が終了した場合は再びステップS2のアイドル状態に
戻り次の動作指示を待つことになる。
The outline of operation control is shown in Figure 14, when the power is turned on, when the reset button 4 is pressed during each operation, or when the control signal line -INIT C of the computer port is activated during reception operation. When this happens, the operation control of the printer buffer immediately moves to step Sl to perform an initialization operation. When the initialization operation in step S1 is completed, the process moves to step S2, where it enters an idle state and waits for an operation instruction. If the reception start/end button 5 is pressed here, step S3
and starts receiving operation. Further, when the transmission start/end button 6 is pressed in step S2, the process moves to step S4 and a transmission operation is started. Further, when the clear button 5 is pressed in step S2, the process moves to step S5 and a data block selection clear operation is started. Step S3. When the operation in either S4 or S5 is completed, the process returns to the idle state of step S2 and waits for the next operation instruction.

第15図は第14図で示したステップS1のイニシャラ
イズ動作での動作制御の概略を表わすフローチャートで
ある。上記イニシャライズ動作は第15図に示すように
、まずステップ5t−iで対コンピュータ・ポート27
および対プリンタ・ポート26それぞれの出力側制御信
号線の出力設定を行う。
FIG. 15 is a flowchart showing an outline of operation control in the initialization operation of step S1 shown in FIG. 14. As shown in FIG. 15, the above initialization operation is performed first in step 5t-i to connect the computer to the port 27.
and the output side control signal line of each of the printer ports 26.

ここで設定する出力側制御信号線とその状態(“Hig
h”または“Low″)は以下のようになっている。
The output side control signal line and its status (“High
h” or “Low”) is as follows.

(1)対コンピュータ・ポート制御信号線−ACKNL
G  C4−High” BUSY  C←“1(igh″ PE  C+″Low −ERRORC←“High” (2)対プリンタ・ポート制御信号線 −3TROBE  p4−“High”−INIT  
P4− ’High” −AUTOFEEDXT  P、−“High”−3L
CTIN  P4−H4gh” ここで(1)対コンピュータ・ポート制御信号線の設定
では、コンピュータに対して当該プリンタ・バッファは
紙無し状態ではないが、BUSYCを’High”とし
てビジー状態であることを示している。一方、(2)対
プリンタ・ポート制御信号線の設定ではプリンタに対し
て当該プリンタ・バッファはプリント出力データを送出
していないことを示している。
(1) Computer port control signal line - ACKNL
G C4-High” BUSY C←“1(igh” PE C+”Low -ERRORC←“High” (2) Printer/port control signal line-3 TROBE p4-“High”-INIT
P4-'High'-AUTOFEEDXT P,-“High”-3L
CTIN P4-H4gh" Here, in (1) the setting of the computer port control signal line, the printer buffer is not out of paper, but BUSYC is set to 'High' to indicate to the computer that it is busy. ing. On the other hand, (2) the setting of the printer port control signal line indicates that the printer buffer is not sending print output data to the printer.

つぎにステップ5l−2へ進み対コンピュータ・ポート
27の入力側制御信号線−AUTOFEEDXTCおよ
び−5LCTIN  Cの状態(“High”または“
Low”)を読み取りその情報を前記環境テーブル(第
9図)の中の5TATEに格納する。すなわち AFDXT ←−AUTOFEEDXT   C3LI
N ←−8LIN   C という操作を行う。
Next, the process proceeds to step 5l-2, and the state of the input side control signal lines -AUTOFEEDXTC and -5LCTIN C of the computer port 27 ("High" or "
Low”) and stores the information in 5TATE in the environment table (Figure 9). That is, AFDXT ←-AUTOFEEDXT C3LI
Perform the operation N ←-8LIN C.

つぎにステップ51−3へ進み表示パネル31上のそれ
ぞれの表示ランプの設定を行う。ここで設定する表示ラ
ンプとその表示状態(“点燈”点滅”または“消燈”)
は以下のようになっている。
Next, the process proceeds to step 51-3, and settings for each display lamp on the display panel 31 are performed. Display lamps and their display states to be set here (“on”, “blinking”, or “off”)
is as follows.

受信中表示ランプ13←“消燈” 送信中表示ランプ14←“消燈” バッファ空表示ランプ15←“点燈” バッファ・フル表示ランプ16←“消煙”残バッファ/
未送信データ容量表示ランプ17←“100%”ブロッ
ク・インデックス表示ランプ18←すべて“消煙”上記
の表示状態によってユーザーに現在送信、受信いずれの
動作も行われていないことを、および受信バッファが空
の状態であることを知らせる。
Receiving indicator lamp 13 ← “Turn off” Sending indicator lamp 14 ← “Turn off” Buffer empty indicator lamp 15 ← “Turn on” Buffer full indicator lamp 16 ← “Smoke removed” Remaining buffer/
Unsent data capacity display lamp 17 ← “100%” Block index display lamp 18 ← All “smoke cleared” The above display status indicates to the user that neither transmitting nor receiving operations are currently being performed, and that the receive buffer is Indicates that it is empty.

つぎにステップ5l−4へ進み制御パラメータ・テーブ
ル(第8図)の初期設定を行う。ここで設定する制御パ
ラメータ・テーブルのパラメータとその設定値はそれぞ
れ以下のようになっている。
Next, the process advances to step 5l-4 to initialize the control parameter table (FIG. 8). The parameters of the control parameter table set here and their setting values are as follows.

(1)環境テーブル(第9図) RBLOCKI←“1″ TBLOCKI 4−“1” RBLOCKS 4−“0″ TBLOCKS 4−10” UMEM 4−“MEMMAX” RREM←“MEMMAX” TBLOCKSIZ 4−’O” TSIZ4−“0” TREM4−0′ (2)ブロック登録テーブル(第11図)BLOCKA
DR[1)←“MEMSTA”BLOCKADR〔2〕
〜〔2o〕←″′0”BLOCKSIZ (1) 〜[
20〕←”O”(3)受信順テーブル(第12図) RBLOCKSEQ (1) 〜(20) ←“o″(
4)送信順テーブル(第13図) TBLOCKSEQC1〕〜〔2o〕←“o”ただし環
境テーブルの中の5TATEについてはすでにステップ
5l−2で値が設定されているので、ここでは初期値設
定の対象からはずしである。
(1) Environment table (Figure 9) RBLOCKI←“1” TBLOCKI 4-“1” RBLOCKS 4-“0” TBLOCKS 4-10” UMEM 4-“MEMMAX” RREM←“MEMMAX” TBLOCKSIZ 4-'O” TSI Z4 -“0” TREM4-0′ (2) Block registration table (Figure 11) BLOCKA
DR[1)←“MEMSTA”BLOCKADR[2]
~[2o]←″′0”BLOCKSIZ (1) ~[
20] ← “O” (3) Reception order table (Figure 12) RBLOCKSEQ (1) ~ (20) ← “o” (
4) Transmission order table (Figure 13) TBLOCKSEQC1] ~ [2o] ← “o” However, since the value of 5TATE in the environment table has already been set in step 5l-2, it is the target of initial value setting here. It is removed from the

以上でステップSlのイニシャライズ動作は終了する。With this, the initialization operation in step Sl is completed.

第16図は第14図で示したステップs2におけるアイ
ドル状態での動作制御のフローチャートである。上記ア
イドル状態では、第16図に示すように、まずステップ
52−1で受信開始/終了ボタン6が押下されたか否か
を検知して、押下された場合はステップS3へ移行し受
信動作を行う。押下されていなかった場合はステップ5
2−2へ移行し、送信開始/終了ボタン8が押下された
か否かを検知して、押下された場合はステップS4へ移
行し送信動作を行う。押下されていなかった場合はステ
ップ52−3へ移行し、クリア・ボタン5が押下された
か否かを検知して、押下された場合はS5へ移行しデー
タ・ブロックの選択クリア動作を行う。押下されていな
かった場合は再びステップ52−1へ戻る。すなわち受
信開始/終了ボタン6、送信開始/終了ボタン7あるい
はクリア・ボタン5のいずれかのボタンが押下されるの
を待つことになる。ただしリセット・ボタン4が押下さ
れた場合は割込みシーケンスによって速やかにステップ
Slのイニシャライズ動作へ移行する。
FIG. 16 is a flowchart of operation control in the idle state in step s2 shown in FIG. 14. In the idle state, as shown in FIG. 16, it is first detected in step 52-1 whether or not the reception start/end button 6 has been pressed, and if it has been pressed, the process moves to step S3 and a reception operation is performed. . If not pressed, step 5
2-2, it is detected whether or not the transmission start/end button 8 has been pressed. If it has been pressed, the process moves to step S4 and a transmission operation is performed. If it has not been pressed, the process moves to step 52-3, and it is detected whether or not the clear button 5 has been pressed. If it has been pressed, the process moves to S5 and a data block selection clear operation is performed. If the button has not been pressed, the process returns to step 52-1. That is, it waits until any one of the reception start/end button 6, transmission start/end button 7, or clear button 5 is pressed. However, if the reset button 4 is pressed, the interrupt sequence immediately moves to the initialization operation of step Sl.

第17図は第14図で示した受信動作ステップS3での
動作制御の概略を表わしたものである。この受信動作ス
テップS3では、第17図に示すように、まずステップ
53−1で受信動作条件判定を行う。
FIG. 17 shows an outline of the operation control in the reception operation step S3 shown in FIG. 14. In this reception operation step S3, as shown in FIG. 17, reception operation conditions are first determined in step 53-1.

第18図はこの受信動作条件判定ステップ53−1での
動作制御のフローチャートである。第18図に示した詳
しいフローを見ればわかるように、ここでは登録済ブロ
ック数と受信バッファの残容量の判定を行う。登録済ブ
ロック数の判定ステップ53−1−1では登録済ブロッ
ク数RBLOCKSが最大登録数20未満であること、
すなわち RBLOCKS<20 を判定し、さらに受信バッファの残容量の判定ステップ
53−1−2では残受信バッファ量が0でないこと、す
なわち RREM>0 を判定する。この2つの条件をいずれも満たす場合制御
はステップ53−2に移行し、いずれかが満たされなか
った場合は受信動作ステップs3を終了する。
FIG. 18 is a flowchart of the operation control in this receiving operation condition determination step 53-1. As can be seen from the detailed flow shown in FIG. 18, here the number of registered blocks and the remaining capacity of the reception buffer are determined. In step 53-1-1 of determining the number of registered blocks, the number of registered blocks RBLOCKS is less than the maximum number of registrations 20;
That is, it is determined that RBLOCKS<20, and further, in step 53-1-2 for determining the remaining capacity of the reception buffer, it is determined that the remaining reception buffer capacity is not 0, that is, RREM>0. If both of these two conditions are satisfied, the control moves to step 53-2, and if either of these conditions is not satisfied, the receiving operation step s3 is ended.

第17図に戻って、ステップ53−2では受信中ランプ
13を点燈させユーザーに受信動作が開始し°たことを
知らせステップ53−3へ進む。
Returning to FIG. 17, in step 53-2, the receiving lamp 13 is turned on to inform the user that the receiving operation has started, and the process proceeds to step 53-3.

第19図は第17図で示した開始バイト受信ステップ5
3−3での動作制御のフローチャートである。
Figure 19 shows the start byte reception step 5 shown in Figure 17.
3-3 is a flowchart of operation control.

ステップ53−3ではブロック・インデックスiのデー
タ・ブロックの最初のバイト・データの受信を行う。バ
イト・データの受信動作は第19図に示すごとく、−A
CKNLG  Cのアサート(ステップ53−3−1)
→BUSY  Cのネゲート(ステップ53−3−2)
→−ACKNLG  Cのネゲート(ステップ53−3
−3)→−5TROBE  Cのアサート検出(ステッ
プ53−3−5)→BUSY  Cのアサート(ステッ
プ53−3−6)→DATAOC〜DATA7Cからバ
イト・データの読み出しくステップ53−3−7)とい
うシーケンスで行われる。ステップS−3−3−7で読
み出されたバイト・データdはステップ53−3−8に
おいてメモリ・アドレスB L OCK A D H(
i )で示される受信バッファ内の領域に格納される。
In step 53-3, the first byte data of the data block of block index i is received. The byte data reception operation is as shown in Figure 19.
Assertion of CKNLG C (step 53-3-1)
→Negate BUSY C (step 53-3-2)
→-ACKNLG C negate (step 53-3
-3) → -Detection of assertion of -5 TROBE C (step 53-3-5) → Assertion of BUSY C (step 53-3-6) → Read byte data from DATAOC to DATA7C (step 53-3-7) done in sequence. The byte data d read in step S-3-3-7 is stored at the memory address B LOCK A DH (
i) is stored in the area within the receive buffer.

その後ステップ53−3−9においてデータ・ブロック
のサイズBLOCKSIZ (i)に1が加えられる。
Thereafter, in step 53-3-9, one is added to the data block size BLOCKSIZ (i).

ステップ53−3−10における判定において、ステッ
プ53−3−8で格納したバイト・データdが受信バッ
ファに格納した最初のバイト・データであった場合、つ
まりステップ53−3−10の時点で残受信バッファ量
RREMの値が受信バッファのサイズUMEMの値と等
しい、いわゆる“バッファ空状態”であった場合はステ
ップ53−3−8のバイト・データdの格納によって少
なくとも“バッファ空状態“で無くなった訳であるから
ステップ53−3−11においてバッファ空表示ランプ
15が消燈される。ステップ53−3−12では残受信
バッファfiRREMから1が減じられる。
In the determination at step 53-3-10, if the byte data d stored at step 53-3-8 is the first byte data stored in the receive buffer, that is, there is no remaining byte data at step 53-3-10. If the value of the receive buffer amount RREM is equal to the value of the receive buffer size UMEM, which is the so-called "buffer empty state," at least the "buffer empty state" is eliminated by storing the byte data d in step 53-3-8. Therefore, the buffer empty indicator lamp 15 is turned off in step 53-3-11. In step 53-3-12, 1 is subtracted from the remaining reception buffer fiRREM.

続くステップ53−3−13では残受信バッファ量RR
EMの受信バッファのサイズUMEMに対する割合を百
分率で残バッファ/未送信データ容量表示ランプ17に
表示する。ここで割合の百分率は次の式によって算出す
る。
In the following step 53-3-13, the remaining receive buffer amount RR
The ratio of the EM reception buffer to the size UMEM is displayed as a percentage on the remaining buffer/unsent data capacity display lamp 17. Here, the percentage is calculated using the following formula.

最後にステップ53−3−14で残受信バッファiRR
EMがOすなわち“バッファ・フル状態”になったか否
かを判定する。バッファ・フル状態に陥った場合はステ
ップ53−4に移行し、そうで無い場合はステップ53
−3における開始バイト受信の正常受信としてステップ
53−5に移行する。またステップ53−3−4におい
て一8TROBE  Cアサート検出ステップ53−3
−5の前に受信開始/終了ボタン6が押下された場合、
受信動作の中止とみなし、ステップ53−3−15でB
USY  Cをアサートした後、ステップ53−6へ移
行し、そこで点燈中の受信中表示ランプ13を消燈して
受信動作ステップS3は終了する。
Finally, in step 53-3-14, the remaining reception buffer iRR is
It is determined whether EM has become O, that is, a "buffer full state". If the buffer is full, proceed to step 53-4; otherwise, proceed to step 53.
The start byte reception at -3 is determined to be normal and the process moves to step 53-5. Also, in step 53-3-4, 8 TROBE C assertion detection step 53-3
If reception start/end button 6 is pressed before -5,
It is considered that the reception operation is stopped, and B is determined in step 53-3-15.
After asserting USY C, the process moves to step 53-6, where the lit receiving indicator lamp 13 is turned off, and the receiving operation step S3 ends.

再び第17図を参照して開始バイト受信53−3におい
て、上述したように正常受信後ステップ53−5に制御
が移り、ここでブロック・インデックスiに対応するブ
ロック・インデックス表示ランプ18を点滅させ、ユー
ザーに現在ブロック・インデックスiのデータ・ブロッ
クの受信中であることを知らせる。その後ステップ53
−7へ移行する。
Referring again to FIG. 17, in the start byte reception 53-3, after normal reception as described above, control is transferred to step 53-5, where the block index display lamp 18 corresponding to block index i is blinked. , informs the user that the data block with block index i is currently being received. Then step 53
-Move to 7.

第20図は第17図で示したデータ・ブロック受信ステ
ップ53−7での動作制御のフローチャートである。ス
テップ53−7ではブロック・インデックスiのデータ
・ブロックの受信を行う。バイト・データの受信動作は
第20図に示すごとく、−ACKNLG  Cのアサー
ト(ステップ53−7−1)→BUSY  C(7)ネ
ゲート(ステップ53−7−2)−−ACKNLG  
Cのネゲート(ステップ53−7−3)→−5TROB
E  Cのアサート検出(ステップ53−7−6) →
BUSY  C(7)7サート(ステップ837−7)
→DATAOC〜DATA7  Cからバイト・データ
の読み出しくステップ53−7−8)というシーケンス
で行われる。ステップS−3−7−8で読み出されたバ
イト・データdに対してステップ53−7−9において
データ・ブロックの終了を示すコード“EOF”(=O
BH)であるか否かを判別し、“EOF”であった場合
には現在受信中のブロック・インデックスiのデータ・
ブロックの受信が終了したものとみなし、ステップ53
−8へ移行する。
FIG. 20 is a flowchart of operation control in the data block receiving step 53-7 shown in FIG. 17. In step 53-7, the data block with block index i is received. As shown in FIG. 20, the byte data reception operation is as follows: -ACKNLG C asserted (step 53-7-1) → BUSY C (7) negated (step 53-7-2) --ACKNLG
Negate C (step 53-7-3) → -5TROB
EC assertion detection (step 53-7-6) →
BUSY C(7) 7sert (step 837-7)
→Reading byte data from DATAOC to DATA7C is performed in a sequence of steps 53-7-8). In step 53-7-9, a code "EOF" (=O
BH), and if it is “EOF”, the data of the block index i currently being received is
It is assumed that the reception of the block has been completed, and step 53
-Move to 8.

“EOF″で無かった場合は ステップ53−7−10
へ進みステップ53−7−8で読み出されたバイト・デ
ータdをメモリ・アトL/スBLOCKADR[i)+
BLOCKSIZ (i)で示される受信バッファ内の
領域に格納する。その後ステップ53−7−11におい
てデータ・ブロックのサイズBLOCKSIZ (i〕
に1が加えられ、ステップ53−7−12において残受
信バッファ量RREMからlが減じられる。
If it is not “EOF”, step 53-7-10
Proceeding to step 53-7-8, the byte data d read out is stored in the memory at L/S BLOCKADR[i)+
BLOCKSIZ Store in the area in the receive buffer indicated by (i). Thereafter, in step 53-7-11, the data block size BLOCKSIZ (i)
1 is added to , and l is subtracted from the remaining receive buffer amount RREM in step 53-7-12.

続くステップ53−7−13では残受信バッファ量RR
EMの受信バッファのサイズUMEMに対する割合を百
分率で残バッファ/未送信データ容量表示ランプ17に
表示する。割合の百分率の算出式は前記ステップ53−
3−13で用いたものと同一である。最後にステップ5
3−7−14で残受信バッファーfiRREMが0すな
わち“バッファ・フル状態”になったか否かを判定する
。バッファ・フル状態に陥った場合はステップ53−4
に移行し、そうで無い場合は再びステップ53−7−1
に戻り、次のバイト・データの受信を行う。また−3T
ROBECアサート検出ステツプ53−7−6の前にス
テップ53−7−4において受信開始/終了ボタン6が
押下された場合、受信動作の中止とみなしステップ53
−7−15でBUSY  Cをアサートした後ステップ
S3−10へ移行し受信中のデータ・ブロックを消去す
る。同様にステップ53−7−5において受信中断ボタ
ン7が押下された場合、受信動作の中断とみなしステッ
プ53−7−16でBUSY  Cをアサートした後ス
テップS3−11へ移行する。
In the following step 53-7-13, the remaining receive buffer amount RR
The ratio of the EM reception buffer to the size UMEM is displayed as a percentage on the remaining buffer/unsent data capacity display lamp 17. The formula for calculating the percentage is the same as in step 53-
It is the same as that used in 3-13. Finally step 5
In 3-7-14, it is determined whether the remaining receiving buffer fiRREM has become 0, that is, the "buffer full state". If the buffer is full, step 53-4
If not, go to step 53-7-1 again.
Return to , and receive the next byte data. Also -3T
If the reception start/end button 6 is pressed in step 53-7-4 before ROBEC assertion detection step 53-7-6, it is assumed that the reception operation is stopped and step 53
After asserting BUSY C at -7-15, the process moves to step S3-10 and the data block being received is erased. Similarly, if the reception interrupt button 7 is pressed in step 53-7-5, this is regarded as an interruption of the reception operation, and after asserting BUSY C in step 53-7-16, the process moves to step S3-11.

前記データ・ブロック受信ステップ53−7においてブ
ロック終了コード“EOF″を受信した場合はステップ
53−8へ制御が移り、ここで受信したデータ・ブロッ
クの登録を行う。
If the block end code "EOF" is received in the data block receiving step 53-7, control moves to step 53-8, where the received data block is registered.

第21図は第17図で示した受信データ・ブロック登録
ステップ53−8での動作制御のフローチャートである
。ここでは第21図に示すように最初にステップ53−
8−1で登録済ブロック数RBLOCKSにlを加えた
後、ステップ53−8−2で受信順テーブルに登録済み
のデータ・ブロックのブロック・インデックスiを格納
する。その際、受信順テーブルRBLOCKSEQ (
1)〜〔20〕における格納位置(1〜20)はステッ
プ53−8−1で加算済みの登録済ブロック数RBLO
CKSの値であり、格納領域はRBLOCKSEQ (
RBLOCKSIで表わすことができる。またブロック
・インデックスiはRBLOCKIに格納されている値
である。
FIG. 21 is a flowchart of operation control at the received data block registration step 53-8 shown in FIG. 17. Here, as shown in FIG. 21, first step 53-
After adding l to the number of registered blocks RBLOCKS in step 8-1, the block index i of the registered data block is stored in the reception order table in step 53-8-2. At that time, the reception order table RBLOCKSEQ (
The storage positions (1 to 20) in 1) to [20] are the registered block number RBLO that has been added in step 53-8-1.
CKS value, and the storage area is RBLOCKSEQ (
It can be expressed as RBLOCKSI. Further, block index i is a value stored in RBLOCKI.

すなわちここでの操作は RBLOCKSEQ (RBLOCKS)←RBLOC
KIで表わすことができる。その後ステップ53−8−
3で点滅中のブロック・インデックスiに対応するブロ
ック・インデックス表示ランプ18を点燈させ、ユーザ
ーにブロック・インデックスiのデータ・ブロックが登
録されたことを知らせた後ステップ53−9へ移行する
In other words, the operation here is RBLOCKSEQ (RBLOCKS)←RBLOC
It can be expressed as KI. Then step 53-8-
At step 3, the block index display lamp 18 corresponding to the blinking block index i is turned on to inform the user that the data block with the block index i has been registered, and then the process moves to step 53-9.

第22図は第17図で示した次ブロック・インデックス
設定ステップ53−9での動作制御のフローチャートで
ある。
FIG. 22 is a flowchart of operation control in the next block index setting step 53-9 shown in FIG. 17.

ステップ53−9では次にコンピュータから受信される
データ・ブロックに与えるブロック・インデックスRB
LOCKIの設定を行なう。第22図に示すようにまず
ステップ53−9−1において現在登録済みのデータ・
ブロック数RBLOCKSが最大HLi数20未満であ
ることを判定し、条件を満たさない場合はステップ53
−6へ移行し、速やかに受信動作を終了する。条件を満
足した場合はステップ53−9−2へ進み、ここで候補
となる未使用のブロック・インデックスXの初期値とし
て“1”を代入する。その後ステップ53−9−3にお
いてブロック・インデックスXのデータ・ブロックがす
でに登録済みか否かをそのサイズであるところ(7) 
BLOCKSIZ (x))が0かどうかによって判定
する。Oの場合は、ブロック・インデックスXのデータ
・ブロックは未登録であるとみなしステップ539−5
へ進みそこでブロック・インデックスXのデータ・ブロ
ックを格納する受信バッファでのスタート・アドレスB
LOCKADH(x)を設定する。
In step 53-9, the block index RB given to the next data block received from the computer is
Configure LOCKI. As shown in FIG. 22, first, in step 53-9-1, the currently registered data
It is determined that the number of blocks RBLOCKS is less than the maximum HLi number 20, and if the condition is not satisfied, step 53
-6, and promptly terminate the reception operation. If the conditions are satisfied, the process proceeds to step 53-9-2, where "1" is substituted as the initial value of the candidate unused block index X. Thereafter, in step 53-9-3, it is determined whether the data block with block index X has already been registered or not (7)
The determination is made based on whether BLOCKSIZ (x)) is 0 or not. If O, the data block with block index X is considered unregistered, step 539-5.
Start address B in the receive buffer where the data block with block index X will be stored.
Set LOCKADH(x).

ここで設定するスタート・アドレスの値は最後にステッ
プ53−7で受信していたブロック・インデックスiの
データ・ブロックのスタート・アドレスBLOCKAD
R[i)とそのサイズBLOCKSIZ (i)の和を
用いている。すなわち BLOCKADH(x) ←BLOCKADR(i) 
+ BLOCKSTZ (i〕で表わすことができる。
The start address value set here is the start address BLOCKAD of the data block with block index i that was last received in step 53-7.
The sum of R[i) and its size BLOCKSIZ (i) is used. That is, BLOCKADH(x) ←BLOCKADR(i)
+ BLOCKSTZ (i).

これは次に受信するデータ・ブロックは受信バッファに
おいて最後に受信登録されたデータ・ブロックに続けて
格納されることを意味する。スタート・アドレスの設定
ステップ53−9−5の後ステップ53−9−6へ進み
いよいよ次に受信するデータ・ブロックに与えるブロッ
ク・インデックスRBLOCKIにXが格納される。一
方、ステップ53−9−3の判定においてBLOCKS
IZ [x)が0で無かった場合はブロック・インデッ
クスXのデータ・ブロックは既に登録されている訳であ
るからステップ53−9−4へ進み、候補となるブロッ
ク・インデックスXに1を加えた後再びステップ53−
9−3の判定を繰り返す。この方法において使用されて
いないブロック・インデックスはステップ53−9−1
における判定で少なくともひとつは存在することがわか
っているので、必ず未登録のデータ・ブロックに対する
ブロック・インデックスXが得られる。以上のようにス
テップ53−9−6において新たにコンピュータから受
信するデータ・ブロックのブロック・インデックスRB
LOCKIが設定されたら再びステップ53−3に戻り
、新たなデータ・ブロックの最初のバイト・データの受
信を行なう。
This means that the next received data block is stored in the receive buffer following the last registered data block. After the start address setting step 53-9-5, the process proceeds to step 53-9-6, where X is finally stored in the block index RBLOCKI given to the next data block to be received. On the other hand, in the determination at step 53-9-3, BLOCKS
If IZ [x) is not 0, this means that the data block with block index Then step 53-
Repeat the judgment in 9-3. Block indexes that are not used in this method are stored in step 53-9-1.
Since it is known from the determination in that at least one exists, the block index X for the unregistered data block is always obtained. As described above, in step 53-9-6, the block index RB of the data block newly received from the computer
Once LOCKI is set, the process returns to step 53-3 to receive the first byte of the new data block.

前記データ・ブロック受信ステップ53−7において受
信開始/終了ボタン6が押下された場合にはステップS
3−10に制御が移り、ここで、受信中のデータ・ブロ
ックの強制消去を行なう。
If the reception start/end button 6 is pressed in the data block reception step 53-7, step S
Control passes to step 3-10, where the data block being received is forcibly erased.

第23図は第17図で示した受信データ・ブロック消去
ステップS3−10での動作制御のフローチャートであ
る。ここではまずステップ53−10−1で残受信バッ
ファfiRREMに現在までステップ53−7で受信し
ていたブロック・インデックスiのデータ・ブロックの
サイズBLOCKSIZ [i)を加えることにより残
受信バッファfiRREMの値をブロック・インデック
スiのデータ・ブロックの受信開始時の状態に戻す。つ
ぎにステップ53−10−2で復元した残受信バッファ
量RREMの受信バッファのサイズUMEMに対する割
合を百分率で残バッファ/未送信データ容量表示ランプ
17に表示する。割合の百分率の算出式は前記ステップ
53−3−13で用いたものと同一である。続いてステ
ップ53−10−3で復元した残受信バッファ@RRE
Mの値が受信バッファのサイズUMEMの値と等しいい
わゆる“バッファ空状態”であるか否かを判定し、バッ
ファ空状態ならばステップ53−10−4においてバッ
ファ空表示ランプ15を点燈する。そしてステップ53
−10−5において現在までステップ53−7で受信し
ていたブロック・インデックスiのデータ・ブロックの
サイズBLOCKSIZ (i)をOにクリアすること
により受信データ・ブロック消去が終了し、ステップ5
3−10−6で点滅中のブロック・インデックスiに対
応するブロック・インデックス表示ランプ18を消煙さ
せ、ユーザーにブロック・インデックスiのデータ・ブ
ロックが消去されたことを知らせた後ステップ83−6
へ進むことにより受信動作が終了する。
FIG. 23 is a flowchart of operation control in the received data block erasing step S3-10 shown in FIG. 17. Here, first, in step 53-10-1, the size BLOCKSIZ [i) of the data block of the block index i that has been received in step 53-7 up to the present is added to the remaining receive buffer fiRREM, thereby obtaining the value of the remaining receive buffer fiRREM. is returned to the state at the start of reception of the data block with block index i. Next, the ratio of the remaining receive buffer amount RREM restored in step 53-10-2 to the receive buffer size UMEM is displayed as a percentage on the remaining buffer/unsent data capacity display lamp 17. The formula for calculating the percentage is the same as that used in step 53-3-13. Subsequently, the remaining reception buffer @RRE restored in step 53-10-3
It is determined whether the value of M is equal to the value of the receiving buffer size UMEM, which is the so-called "buffer empty state", and if the buffer is empty, the buffer empty indicator lamp 15 is turned on in step 53-10-4. and step 53
-10-5, the received data block erasure is completed by clearing the size BLOCKSIZ (i) of the data block of block index i that has been received in step 53-7 to O, and step 5
After extinguishing the block index display lamp 18 corresponding to the blinking block index i in step 3-10-6 and informing the user that the data block with the block index i has been erased, step 83-6
The reception operation is completed by proceeding to .

前記データ・ブロック受信ステップ53−7において受
信中断ボタン7が押下された場合にはステップS3−1
1に制御が移り、ここで点燈中の受信中表示ランプ13
を点滅させユーザーに受信動作が中断中であることを知
らせた後ステップS3−12へ進む。
If the reception interrupt button 7 is pressed in the data block reception step 53-7, the process proceeds to step S3-1.
Control is transferred to 1, where the receiving indicator lamp 13 is lit.
After blinking to inform the user that the reception operation is being interrupted, the process advances to step S3-12.

第24図は第17図で示した指示待ちS3−12での動
作制御のフローチャートである。
FIG. 24 is a flowchart of operation control in instruction waiting S3-12 shown in FIG. 17.

ステップS3−12は受信動作中断時における動作指示
待ち状態であり、第24図に示すように動作指示のボタ
ンのいずれかが押下されるまで待機している。受信中断
ボタン7が押下された場合(ステップ53−12−1)
、制御はステップS3−13に移行し、受信開始/終゛
了ボタン6が押下された場合(ステップ53−12−2
)制御はステップS3−14に移行し、クリア・ボタン
5が押下された場合(ステップ53−12−3)、制御
はステップS3−16に移行する。
Step S3-12 is a state of waiting for an operation instruction when the reception operation is interrupted, and waits until one of the operation instruction buttons is pressed as shown in FIG. When reception interrupt button 7 is pressed (step 53-12-1)
, the control moves to step S3-13, and if the reception start/end button 6 is pressed (step S3-12-2
) Control moves to step S3-14, and if clear button 5 is pressed (step 53-12-3), control moves to step S3-16.

ステップS3−12の中断時の動作指示待ち状態におい
て受信中断ボタン7が押下されると受信動作再開(中断
解除)として扱い、ステップS3−13へ移行し、ここ
で点滅中の受信中表示ランプ13を点燈させユーザーに
受信動作が再開したことを知らせた後、ステップ53−
7へ戻り再びブロック・インデックスiのデータ・ブロ
ックの受信を続行する。
When the reception interruption button 7 is pressed while waiting for an operation instruction at the time of interruption in step S3-12, it is treated as restarting the reception operation (cancellation of interruption), and the process moves to step S3-13, where the reception indicator lamp 13 is blinking. After lighting up to inform the user that reception operation has resumed, step 53-
7 and continues receiving the data block of block index i again.

ステップS3−12の中断時の動作指示待ち状態におい
て受信開始/終了ボタン6が押下されるとステップS3
−14へ制御が移り、ここで現在まで受信したデータ・
ブロックの登録を行なう。
When the reception start/end button 6 is pressed while waiting for an operation instruction at the time of interruption in step S3-12, step S3
The control is transferred to -14, where the data received so far is
Register the block.

第25図は第17図で示した受信データ・プロツり登録
S3−14での動作制御のフローチャートである。ここ
でのフローは前記受信データ・ブロック登録ステップ5
3−8のものと同様で、第25図に示すように登録済ブ
ロック数RBLOCKSに1を加え(ステップ53−1
4−1)、受信順テーブル(RBLOKSEQ [RB
LOCKS])にブロック・インデックスiを(=RB
LOCKI)を格納し、(ステップ53−14−2)、
点滅中のブロック・インデックスiに対応するブロック
・インデックス表示ランプ18を点燈させた後(ステッ
プ53−14−3)、ステップS3−15へ移行する。
FIG. 25 is a flowchart of operation control at received data processing registration S3-14 shown in FIG. 17. The flow here is the received data block registration step 5.
3-8, 1 is added to the number of registered blocks RBLOCKS as shown in FIG. 25 (step 53-1).
4-1), reception order table (RBLOKSEQ [RB
LOCKS]) with block index i (=RB
LOCKI), (step 53-14-2),
After the block index display lamp 18 corresponding to the blinking block index i is turned on (step 53-14-3), the process moves to step S3-15.

第26図は第17図で示した次ブロック・インデックス
設定ステップS3−15での動作制御のフローチャート
である。
FIG. 26 is a flowchart of operation control in the next block index setting step S3-15 shown in FIG. 17.

ステップS3−15では次にコンピュータから受信され
るデータ・ブロックに与えるブロック・インデックスR
BLOCKIの設定を行なう。ここでのフローは前記次
ブロック・インデックス設定ステップ33−9のものと
同様で、第26図に示すように登録済みのデータ・ブロ
ック数RBLOCKSが最大登録数20未満であること
を判定しくステップ53−15−1)、条件を満たさな
い場合はステップ53−6へ移行し、速やかに受信動作
を終了する。条件を満足した場合は、候補となる未使用
のブロック・インデックスXの初期値として“1″を代
入して(ステップ53−15−=2)、ブロック・イン
デックスXのデータ・ブロックがすでに登録済みか否か
を判定しくステップ53−15−3)、未登録であった
場合は、受信バッファでのスタート・アドレスB L 
OCK A D H(x )を設定しくステップ53−
15−5)、ブロック・ インデックスRBLOCKI
にXを格納する(ステップ53−15−6)。一方、5
3−15−3の判定において登録済みであった場合は候
補となるブロック・インデックスXに1を加えた後(ス
テップ53−15−4)、再びステップS3−15−3
の判定を繰り返す。こうして新たにコンピュータから受
信するデータ・ブロックのブロック・インデックスRB
LOCKIが設定されたらステップS3−17へ進む。
In step S3-15, the block index R given to the next data block received from the computer is
Configure BLOCKI. The flow here is similar to that of the next block index setting step 33-9, and as shown in FIG. 26, it is determined that the registered data block number RBLOCKS is less than the maximum number of registrations 20. -15-1) If the conditions are not met, the process moves to step 53-6 and the reception operation is promptly ended. If the conditions are satisfied, "1" is assigned as the initial value of the candidate unused block index X (step 53-15-=2), and the data block with the block index X is already registered. Step 53-15-3). If it is unregistered, start address B L in the reception buffer is determined.
Set OCK ADH(x) Step 53-
15-5), block index RBLOCKI
X is stored in (step 53-15-6). On the other hand, 5
If it has been registered in the determination of step 3-15-3, 1 is added to the candidate block index X (step 53-15-4), and then step S3-15-3 is performed again.
Repeat the judgment. The block index RB of the data block newly received from the computer in this way
Once LOCKI is set, the process advances to step S3-17.

一方、第17図ステップS3−12の中断時の動作指示
待ち状態においてクリア・ボタン5が押下されると33
−16へ制御が移り、ここで現在まで受信したデータ・
ブロックの強制消去を行なう。第27図は第17図で示
した受信データ・ブロック消去5316での動作制御の
フローチャートである。
On the other hand, if the clear button 5 is pressed in the state of waiting for an operation instruction at the time of interruption in step S3-12 in FIG.
The control is transferred to -16, where the data received so far is
Performs forced erasure of blocks. FIG. 27 is a flowchart of operation control in the received data block erase 5316 shown in FIG.

ここでのフローは前記受信データ・ブロック消去ステッ
プS3−10のものと同様で、第27図に示すようにま
ず残受信バッファ量RREMの値をブロック・インデッ
クスiのデータ・ブロックの受信開始時の状態に戻しく
ステップ53−16−1)、復元した残受信バッファ量
RREMの受信バッファのサイズUMEMに対する割合
を百分率で残バッファ/未送信データ容量表示ランプ1
7に表示しくステップ53−16−2)、ステップ53
−16−3でバッファ空状態かどうかを判定し、バッフ
ァ空状態ならばステップ53−16−4においてバッフ
ァ空表示ランプ15を点燈する。そして、現在までステ
ップ53−7で受信していたブロック・インデックスi
のデータ・ブロックのサイズをOにクリアしくステップ
53−16−5)、点滅中のブロック・インデックスi
に対応するブロック・インデックス表示ランプ18を消
煙させた後(ステップ53−16−6)、ステップS3
−17へ進む。
The flow here is similar to that of the received data block erasing step S3-10, and as shown in FIG. In step 53-16-1), the remaining buffer/unsent data capacity display lamp 1 indicates the ratio of the restored remaining receive buffer amount RREM to the receive buffer size UMEM as a percentage.
Step 53-16-2), Step 53
-16-3, it is determined whether the buffer is empty, and if the buffer is empty, the buffer empty indicator lamp 15 is turned on in step 53-16-4. Then, the block index i received up to now in step 53-7
Clear the size of the data block to O (step 53-16-5), and set the blinking block index i to
After extinguishing the block index display lamp 18 corresponding to (step 53-16-6), step S3
Proceed to -17.

第28図は第17図で示した指示待ちステップS3−1
7での動作制御フローチャートである。
FIG. 28 shows the instruction waiting step S3-1 shown in FIG. 17.
7 is an operation control flowchart.

ステップS3−17は受信動作中断処理後における動作
指示待ち状態であり、第28図に示すように動作指示の
ボタンのいずれかが押下されるまで待機している。受信
開始/終了ボタン6が押下された場合(ステップ53−
17−1)、受信動作の中止とみなし、ステップ53−
6へ移行し受信動作は終了する。一方受信中断ボタン7
が押下された場合(ステップ53−17−2)、受信動
作再開として扱い、ステップS3−18へ移行し、ここ
で点滅中の受信中表示ランプ13を点燈させユーザーに
受信動作が再開したことを知らせた後再びステップ53
−3に戻り、新たなデータ・ブロックの最初のバイト・
データの受信を行なう。
Step S3-17 is a state of waiting for an operation instruction after the receiving operation interruption process, and waits until one of the operation instruction buttons is pressed as shown in FIG. When the reception start/end button 6 is pressed (step 53-
17-1), the receiving operation is considered to be stopped, step 53-
The process moves to step 6 and the receiving operation ends. On the other hand, reception interrupt button 7
If is pressed (step 53-17-2), it is treated as restarting the reception operation, and the process moves to step S3-18, where the flashing reception indicator lamp 13 is turned on and the user is notified that the reception operation has resumed. After informing the
-3 and write the first byte of the new data block.
Receive data.

第17図において前記開始バイト受信ステップ53−3
あるいはデータ・ブロック受信ステップ53−7におい
てバッファ・フル状態になったと判定された場合には、
ステップ53−4に制御が移り、ここで点燈中の受信中
表示ランプ13を点滅させユーザーに受信動作が中断中
であることを知らせた後ステップS3−19へ進む。
In FIG. 17, the start byte receiving step 53-3
Alternatively, if it is determined in the data block receiving step 53-7 that the buffer is full,
The control moves to step 53-4, where the lit receiving indicator lamp 13 is made to blink to inform the user that the receiving operation is being interrupted, and then the process proceeds to step S3-19.

第29図は第17図で示したバッファ・フル状態通知ス
テップS3−19での動作制御のフローを表わしたもの
である。
FIG. 29 shows the flow of operation control in the buffer full state notification step S3-19 shown in FIG. 17.

ステップS3−19ではバッファ・フル状態の通知を行
なう。第29図に示すようにまずステップ53−19−
1でバッファ・フル表示ランプ16を点燈させユーザー
にバッファ・フル状態に陥ったことを知らせ、ステップ
53−19−2で対コンピュータ制御信号線PE  C
を、ステップ53−19−3で対コンピュータ制御信号
線−ERRORCをそれぞれアサートすることによりコ
ンピュータに、当該プリンタ・バッファが“紙なし状態
”に陥ったことを知らせる。その後ステップS3−20
へ移行する。
In step S3-19, a buffer full state is notified. As shown in FIG. 29, first step 53-19-
In Step 1, the buffer full indicator lamp 16 is turned on to notify the user that the buffer is full, and in Step 53-19-2, the computer control signal line PE C is turned on.
By asserting the computer control signal line -ERRORC in step 53-19-3, the computer is informed that the printer buffer is in the "out of paper state". Then step S3-20
Move to.

第30図は第17図で示した指示待ちステップS3−2
0での動作制御のフローチャートである。
FIG. 30 shows the instruction waiting step S3-2 shown in FIG. 17.
2 is a flowchart of operation control at 0.

ステップS3−20はバッファ・フル時における動作指
示待ち状態であり、第30図に示すように動作指示ボタ
ンのいずれかが押下されるまで待機している。受信開始
/終了ボタン6が押下された場合(ステップ53−2O
−1)、制御はステップS3−21に移行し、クリア・
ボタン5が押下された場合(ステップ53−2O−2)
、制御はステップS3−23に移行する。
Step S3-20 is a state of waiting for an operation instruction when the buffer is full, and waits until one of the operation instruction buttons is pressed as shown in FIG. When the reception start/end button 6 is pressed (step 53-2O
-1), the control moves to step S3-21, and the clear
When button 5 is pressed (step 53-2O-2)
, control moves to step S3-23.

ステップS3−20のバッファ・フル時の動作指示待ち
状態において受信開始/終了ボタン6が押下されるとス
テップS3−21へ制御が移り、ここでバッファ・フル
状態になるまで受信していたデータ・ブロックの登録を
行なう。
When the reception start/end button 6 is pressed while waiting for an operation instruction when the buffer is full in step S3-20, control moves to step S3-21, where the data that was being received until the buffer is full is... Register the block.

第31図は第17図で示した受信データ・ブロック登録
ステップS3−21での動作制御のフローチャートであ
る。
FIG. 31 is a flowchart of operation control in the received data block registration step S3-21 shown in FIG. 17.

ここでのフローは前記受信データ・ブロック登録ステッ
プ53−8のものと同様で、第31図に示すように登録
済ブロック数RBLOCKSに1を加え(ステップ53
−2l−1)、受信中テーブル(RBLOCKSEQ 
(RBLOCKS))にブロック・インデックスi (
==RBLOCKI)を格納しくステップ53−2l−
2)、点滅中のブロック・インデックスiに対応するブ
ロック・インデックス表示ランプ18を点燈させた後(
ステップ53−2l−3)、ステップS3−22へ移行
する。
The flow here is similar to that of the received data block registration step 53-8, and as shown in FIG. 31, 1 is added to the registered block number RBLOCKS (step 53
-2l-1), receiving table (RBLOCKSEQ
(RBLOCKS)) with block index i (
==RBLOCKI) Step 53-2l-
2) After lighting up the block index display lamp 18 corresponding to the blinking block index i (
Step 53-2l-3), the process moves to step S3-22.

第32図は第17図で示した次ブロック・インデックス
設定ステップS3−22での動作制御のフローチャート
である。
FIG. 32 is a flowchart of operation control in the next block index setting step S3-22 shown in FIG. 17.

ステップS3−22では次にコンピュータから受信され
るデータ・ブロックに与えるブロック・インデックスR
BLOCKIの設定を行なう。ここでのフローは前記次
ブロック・インデックス設定ステップ53−9のものと
同様で、第32図に示すように登録済みのデータ・ブロ
ック数RBLOCKSが最大登録数20未満であること
を判定しくステップ53−22−1)、条件を満たさな
い場合はステップ53−6へ移行し、速やかに受信動作
を終了する。
In step S3-22, the block index R given to the next data block received from the computer is
Configure BLOCKI. The flow here is similar to that of the next block index setting step 53-9, and as shown in FIG. -22-1) If the conditions are not met, the process moves to step 53-6 and the reception operation is promptly terminated.

条件を満足した場合は候補となる未使用のブロック・イ
ンデックスXの初期値として“l”を代入して(ステッ
プ53−22−2)、ブロック・インデックスXのデー
タ・ブロックがすでに登録済みか否かを判定しくステッ
プ53−22−3)、未登録であった場合は受信バッフ
ァでのスタート・アドレスBLOCKADR(x)を設
定しくステップ53−22−5)、ブロック・インデッ
クスRBLOCKIにXを格納する(ステップ53−2
2−6)。一方ステップ53−22−3の判定において
登録済みであった場合は候補となるブロック・インデッ
クスXに1を加えた後(ステップ53−22−4)、再
びステップ53−22−3の判定を繰り返す。こうして
新たにコンピュータから受信するデータ・ブロックのブ
ロック・インデックスRBLOCKIが設定されたらス
テップ53−6へ移行し、速やかに受信動作をn了する
If the conditions are satisfied, "l" is assigned as the initial value of the candidate unused block index X (step 53-22-2), and it is determined whether the data block with the block index X has already been registered. If it is unregistered, set the start address BLOCKADR(x) in the receive buffer (Step 53-22-5), and store X in the block index RBLOCKI. (Step 53-2
2-6). On the other hand, if the determination at step 53-22-3 indicates that the block has been registered, 1 is added to the candidate block index X (step 53-22-4), and the determination at step 53-22-3 is repeated again. . Once the block index RBLOCKI of the data block newly received from the computer is set in this way, the process moves to step 53-6, and the receiving operation is promptly terminated.

ステップS3−21のバッファ・フル時の動作指示待ち
状態においてクリア・ボタン5が押下されるとステップ
S3−23へ制御が移り、ここでバッファ・フル状態の
通知の停止を行なう。
When the clear button 5 is pressed while waiting for an operation instruction when the buffer is full in step S3-21, control moves to step S3-23, where notification of the buffer full state is stopped.

第a3図は第17図で示したバッファ・フル状態通知停
止ステップS3−23での動作制御のフローチャートで
ある。
FIG. a3 is a flowchart of the operation control in the buffer full state notification stop step S3-23 shown in FIG. 17.

第33図に示すようにまずステップ53−23−1で対
コンピュータ制御信号線−ERRORCを、ステップ5
3−23−2で対コンピュータ制御線PECをそれぞれ
ネゲートすることによりコンピュータに当該プリンタ・
バッファが“紙なし状態”を回避したことを知らせ、さ
らにステップS3−23−3で点燈中のバッファ・フル
表示ランプ16を消燈させユーザーにバッファ・フル状
態で無くなったことを知らせた後、バッファ・フル状態
になるまで受信していたデータ・ブロックの強制消去を
行なうべく、受信データ・ブロック消去ステップS3−
16へ移行する。
As shown in FIG. 33, first, in step 53-23-1, the computer control signal line -ERRORC is connected to the
By negating the computer control line PEC in step 3-23-2, the computer is informed of the printer.
After notifying the user that the buffer has avoided the "out of paper state" and further turning off the lit buffer full indicator lamp 16 in step S3-23-3, the user is informed that the buffer is no longer in the full state. In order to forcibly erase the data blocks that have been received until the buffer becomes full, the received data block erase step S3-
Move to 16.

以上が受信動作ステップS3のフローである。The above is the flow of the receiving operation step S3.

第34図は、第14図で示した送信動作S4での動作制
御の概略を表わしたものである。送信動作ステップS4
では、まずステップ54−1で送信動作条件判定を行な
う。
FIG. 34 schematically shows the operation control in the transmission operation S4 shown in FIG. 14. Transmission operation step S4
First, in step 54-1, transmission operating conditions are determined.

第35図は、第34図で示した送信動作条件判定ステッ
プ54−1での動作制御のフローチャートである。
FIG. 35 is a flowchart of operation control in the transmission operation condition determination step 54-1 shown in FIG. 34.

第35図を見るとわかるようにここでは登録済ブロック
数と対プリンタ・ポート制御信号線5LCTPの判定が
行なわれる。登録済ブロック数の判定ステップ54−1
−1では登録済ブロック数RBLOCKSが0を越えて
いるか否か、すなわち RBLOCKS>0 を判定し、さらに5LCT  Pの判定ステップS4−
1−2では5LCT  Pがネゲート状態であることす
なわち 5LCT  P=“Low を判定する。この2つの条件をいずれも満たす場合制御
はステップ54−2に移行し、いずれかが満たされなか
った場合は送信動作ステップS4を終了する。
As can be seen from FIG. 35, the number of registered blocks and the printer port control signal line 5LCTP are determined here. Step 54-1 of determining the number of registered blocks
-1, it is determined whether the number of registered blocks RBLOCKS exceeds 0, that is, RBLOCKS>0, and further, the determination step S4- of 5LCTP P is performed.
In step 1-2, it is determined that 5LCTP is in the negated state, that is, 5LCTP is "Low". If both of these two conditions are satisfied, the control moves to step 54-2, and if either is not satisfied, The transmission operation step S4 is completed.

ステップ54−2では送信動作の準備を行なう。In step 54-2, preparations for a transmission operation are made.

第36図は、第34図で示した送信動作準備ステップ5
4−2での動作制御のフローを表わしたものである。第
36図を見るとわかるように、まずステップ54−2−
1で残バッファ/未送信データ容量表示ランプ17を消
燈し、ステップ54−2−2で送信中表示ランプ14を
点滅させ、ユーザーに送信動作が開始したことを知らせ
る。次にステップS4−23で送信データ・ブロック総
数TBLOCKSを0クリアし、ステップ34−2−4
で対プリンタ・ポート制御信号線−5LCTIN  P
に前記ステップ5l−2において格納した5LINの値
を出力し、ステップ54−2−5で対プリンタ・ポート
制御信号線−AUTOFEEDXTPに前記ステップ5
1−2において格納したAFDXTの値を出力する。す
なわち、ステップ54−2−3〜4−2−5 TBLOCKS 4−O −3LCTIN  P 4−st、Im−AUTOFE
EDXT   P−AFDXTという操作を行なう。
FIG. 36 shows the transmission operation preparation step 5 shown in FIG. 34.
4-2 shows the flow of operation control in step 4-2. As can be seen from FIG. 36, first step 54-2-
Step 1 turns off the remaining buffer/unsent data capacity display lamp 17, and step 54-2-2 flashes the transmitting display lamp 14 to notify the user that the transmission operation has started. Next, in step S4-23, the total number of transmission data blocks TBLOCKS is cleared to 0, and in step 34-2-4
To printer port control signal line - 5LCTIN P
In step 54-2-5, the value of 5LIN stored in the step 5l-2 is outputted to the printer port control signal line -AUTOFEEDXTP in the step 5l-2.
The value of AFDXT stored in step 1-2 is output. That is, steps 54-2-3 to 4-2-5 TBLOCKS 4-O -3LCTIN P 4-st, Im-AUTOFE
Perform the operation EDXT P-AFDXT.

そして次にステップ54−2−6で対プリンタ制御信号
線−INIT  Pをアサートしステップ54−2−7
で−INIT  Pをネゲートすることにより“Low
パルス信号を送出し、対プリンタ・ポートに接続されて
いるプリンタをイニシャライズする。
Then, in step 54-2-6, the printer control signal line -INIT P is asserted, and in step 54-2-7
By negating -INIT P in
Sends a pulse signal to initialize the printer connected to the printer port.

次に制御はステップ54−3に移行し送信ブロック選択
入力待ち状態になる。
Next, the control moves to step 54-3 and enters a transmission block selection input waiting state.

第37図は第34図で示した送信ブロック選択入力待ち
ステップ54−3での動作制御のフローチャートである
FIG. 37 is a flowchart of operation control at the transmission block selection input waiting step 54-3 shown in FIG. 34.

すなわち、送信ブロック選択入力待ちステップ54−3
では、第37図に示すように動作指示のボタンのいずれ
かが押下されるまで待機している。
That is, step 54-3 of waiting for transmission block selection input.
Now, as shown in FIG. 37, the process waits until one of the operation instruction buttons is pressed.

送信開始/終了ボタン8が押下された場合(ステップ5
4−3−1)、送信動作の終了とみなし制御はステップ
S4−16へ移行し、送信動作は終了する。
When the transmission start/end button 8 is pressed (step 5)
4-3-1), the end of the transmission operation and the control proceed to step S4-16, and the transmission operation ends.

またクリア・ボタン5が押下された場合(ステップ54
−3−2)、制御はステップ4−4へ移行し送信類テー
ブルの消去を行なう。また20個存在するブロック・イ
ンデックス・ボタン10のいずれかが押下された場合(
ステップ54−3−3)、制御はステップ54−5へ移
行し送信選択ブロックの判定を行なう。(便宜的にステ
ップ54−3−3で押下されたブロック・インデックス
・ボタン10に対応するブロック・インデックスをXと
する)また、全ブロックボタン11が押下された場合(
ステップ54−s−4)制御はステップ54−6へ移行
し、全受信済ブロックの登録を行なう。また中断ボタン
9が押下された場合(ステップ54−3−5)制御はス
テップ54−7へ移行し送信順テーブルの判定を行なう
Also, if clear button 5 is pressed (step 54)
-3-2), the control moves to step 4-4 and the transmission type table is erased. Also, if any of the 20 block index buttons 10 is pressed (
Step 54-3-3), control moves to step 54-5, and a transmission selection block is determined. (For convenience, the block index corresponding to the block index button 10 pressed in step 54-3-3 is assumed to be X.) Also, when the all block button 11 is pressed (
Step 54-s-4) Control moves to step 54-6, where all received blocks are registered. If the interrupt button 9 is pressed (step 54-3-5), control proceeds to step 54-7, where the transmission order table is determined.

前記送信ブロック選択入力待ちステップ54−3におい
てクリア・ボタン5が押下されると制御はステップ54
−4に移行し、送信順テーブルTBLOCKSEQ (
i) (i=1.2.・・・、20)の消去が行なわれ
る。
When the clear button 5 is pressed in the transmission block selection input waiting step 54-3, control proceeds to step 54.
-4, and the transmission order table TBLOCKSEQ (
i) (i=1.2...,20) is erased.

第38図は第34図で示した送信順テーブル消去ステッ
プ54−4での動作制御のフローチャートである。
FIG. 38 is a flowchart of operation control in the transmission order table erasing step 54-4 shown in FIG. 34.

第38図を見るとわかるようにステップ54−4−1か
らステップ54−4−4において、 TBLOCKSEQ (i)←0   (i=1.2.
・・・20)を実行することにより、送信順テーブルを
Oにクリアする。この後、制御は再びステップ54−3
へ戻る。
As can be seen from FIG. 38, from step 54-4-1 to step 54-4-4, TBLOCKSEQ (i)←0 (i=1.2.
...20), the transmission order table is cleared to O. After this, control returns to step 54-3.
Return to

前記送信ブロック選択入力待ち状態ステップ54−3に
おいてブロック・インデックス・ボタン10が押下され
ると、制御はステップ54−5に移行し、送信選択され
たブロック・インデックスXの判定を行なう。
When the block index button 10 is pressed in the transmission block selection input waiting state step 54-3, control moves to step 54-5, where the block index X selected for transmission is determined.

第39図は、第34図で示した送信選択ブロック判定ス
テップ54−5での動作制御のフローを表わしたもので
ある。
FIG. 39 shows the flow of operation control in the transmission selection block determination step 54-5 shown in FIG. 34.

第39図を見るとわかるように判定条件は、ブロック・
インデックスXで参照されるデータ・ブロックが受信登
録済であること。すなわち該データ・ブロックのサイズ
BLOCKSIZ [x]が1(バイト)以上であるこ
と BLOCKSIZ  (x)>O(ステップ54−5−
1)及びブロック・インデックスXで参照されるデ゛−
タ・ブロックが送信登録済でないこと、すなわち送信順
テーブルTBLOCKSEQ (i)(i=1.2.・
・・20)に該データ・ブロック・インデックスXが登
録されていないこと TBLOCKSEQ  (i)  ≠x    (i=
1.2. ・** 、 20)(ステップ34−6−2
〜54−5−5)の2つである。
As can be seen from Figure 39, the judgment conditions are
The data block referenced by index X must be registered for reception. In other words, the size BLOCKSIZ [x] of the data block is 1 (byte) or more. BLOCKSIZ (x)>O (step 54-5-
1) and the data referenced by block index
The data block is not registered for transmission, that is, the transmission order table TBLOCKSEQ (i) (i=1.2.
...20) The data block index X is not registered in TBLOCKSEQ (i) ≠x (i=
1.2.・** , 20) (Step 34-6-2
~54-5-5).

いずれかが満たされなかった場合、制御は再びステップ
54−3へ戻り送信ブロック選択入力待ち状態になる。
If either condition is not satisfied, control returns to step 54-3 again to wait for a transmission block selection input.

一方、この2つの条件がいずれも満たされる場合、制御
はステップ54−6へ移行し、ブロック・インデックス
Xは送信順テーブルに登録される。
On the other hand, if both of these conditions are met, control moves to step 54-6, and block index X is registered in the transmission order table.

第40図は第34図で示した送信選択ブロック登録ステ
ップ54−6での動作制御のフローを表わしたものであ
る。
FIG. 40 shows the flow of operation control in the transmission selection block registration step 54-6 shown in FIG. 34.

ステップ54−6では送信選択されたブロック・インデ
ックスXの送信順テーブルへの登録が行なわれる。第4
0図を見るとわかるようにここではまず送信選択された
ブロック・インデックスXが送信動作後、何番目に選択
されたのかを知り得るためにステップ54−6−1で送
信順番iの初期値として“l”を代入する。次にステッ
プ54−6−2で送信順テーブルのi番目の領域TBL
OCKSEQ (t)の内容が“O”であるか否かを判
定する“O”であった場合、ブロック・インデックスX
はi番目に送信選択されたものであるとしてステップ5
4−6−4に進み、“0”でなかった場合、送信順テー
ブルを次々と検索すべくステップ54−6−3で送信順
番iに“1”を加えた後、再びステップ54−6−2の
判定を繰り返す。このステップ54−6−1からステッ
プ54−6−4での送信順番iの検索方法において送信
順バッファに登録済のブロック・インデックス数は、前
記ステップ54−5の判定により19以下となっている
ため必ずT B L OCK S E Q [i ] 
= Oなるiが存在する。
In step 54-6, the block index X selected for transmission is registered in the transmission order table. Fourth
As can be seen from Figure 0, here, in order to know the block index X selected for transmission, it is first set as the initial value of the transmission order i in step 54-6-1 in order to know which block index X was selected after the transmission operation. Substitute “l”. Next, in step 54-6-2, the i-th area TBL of the transmission order table is
Determine whether the content of OCKSEQ (t) is “O”. If it is “O”, block index
is the i-th transmission selected, and in step 5
Proceeding to 4-6-4, if it is not "0", "1" is added to the transmission order i in step 54-6-3 to search the transmission order table one after another, and then again in step 54-6- Repeat judgment 2. In the transmission order i search method from step 54-6-1 to step 54-6-4, the number of block indexes registered in the transmission order buffer is 19 or less as determined in step 54-5. Therefore, TBL OCK S E Q [i]
= O exists.

ステップ54−6−4では、送信選択されたブロック・
インデックスXを送信順テーブルのi番目の領域に登録
する。すなわち TBLOCKSEQ’(i) ←x を実行する。次に制御はステップ54−6−5に移行し
、送信選択されたブロック・インデックスXに対応する
ブロック・インデックス表示ランプ18を点滅させ、ユ
ーザーにブロック・インデックスXのデータ・ブロック
が送信選択されたことを知らせる。そしてこの後、制御
は再びステップ54−3へ戻り、送信選択入力待ち状態
になる。
In step 54-6-4, the block selected for transmission is
Register index X in the i-th area of the transmission order table. That is, TBLOCKSEQ'(i) ←x is executed. Control then moves to step 54-6-5, where the block index display lamp 18 corresponding to the block index X selected for transmission is flashed, indicating to the user that the data block with block index X has been selected for transmission. Let me know. After this, the control returns to step 54-3 again and enters a transmission selection input waiting state.

前記送信ブロック選択入力待ち状態ステップ54−3に
おいて全ブロック選択ボタン11が押下されると制御は
54−7へ移行し、全受信登録済ブロック・インデック
スの送信順テーブルへの登録が行なわれる。
When the all block selection button 11 is pressed in the transmission block selection input waiting state step 54-3, control moves to 54-7, where all block indexes registered for reception are registered in the transmission order table.

第41図は、第34図で示した全ブロック登録ステップ
54−7での動作制御のフローチャートである。
FIG. 41 is a flowchart of operation control in the all block registration step 54-7 shown in FIG. 34.

第41図を見るとわかるようにここでは受信順テーブル
の内容を送信順テーブルにコピーすることにより、受信
登録済のブロック・インデックスを受信された順番に従
い送信順テーブルに登録し、またここで点燈中の現在受
信登録されているすべてのデータ・ブロックに対応する
ブロック・インデックス表示ランプを点滅させ、ユーザ
ーにすべての受信登録されているデータ・ブロックが現
在、送信選択されていることを知らせる。すなわちステ
ップ54−7−1で順番を表わす便宜的なカウンタ“i
”に初期値として“1“を代入し、続<ステップ34−
7−2で受信順テーブルのi番目の領域RBLOC3E
Q (i)の内容を読み出し便宜的にXとしておく。つ
まり受信順番iのデータ・ブロックに対応するブロック
・インデックスはXとなる。
As can be seen from FIG. 41, here, by copying the contents of the reception order table to the transmission order table, block indexes that have been registered for reception are registered in the transmission order table according to the order in which they were received. The block index display lamps corresponding to all the data blocks currently registered for reception are flashed to inform the user that all the data blocks currently registered for reception are currently selected for transmission. That is, in step 54-7-1, a convenient counter "i" representing the order is set.
” is assigned “1” as an initial value, and the process continues <Step 34-
7-2, the i-th area RBLOC3E of the reception order table
Read out the contents of Q (i) and write it as X for convenience. In other words, the block index corresponding to the data block of reception order i is X.

ステップ54−7−3では、前記ステップ54−7−2
で読み出されたブロック・インデックスXが0で無いこ
とを判定する。もし0でなければステップ54−7−4
に移行し、受信順テーブルのi番目の領域RBLOCK
SEQ (i)の内容を送信順テーブル0)i 番目(
7)領域TBLOCKSEQ (i〕!−:]コピする
In step 54-7-3, the step 54-7-2
It is determined that the block index X read out is not 0. If not 0, step 54-7-4
and moves to the i-th area RBLOCK of the reception order table.
The contents of SEQ (i) are sent to the transmission order table 0) i-th (
7) Copy area TBLOCKSEQ (i]!-:].

そして次にステップ54−7−5に進み、点燈中のブロ
ック・インデックスXに対応するブロック・インデック
ス表示ランプ18を点滅させ、ステップ54−7−6で
受信順番で次のデータ・ブロックを選択すべく順番iに
“1”を加えた後、再びステップ54−7−2で制御に
戻す。一方、ステップ54−7−3の判定で0であった
場合は、受信順テーブル内の有効データの終了を意味す
るのでステップ54−7の動作を終了させ、制御を再び
ステップ54−3へ移行し、送信ブロック選択入力待ち
状態になる。
Then, the process proceeds to step 54-7-5, where the block index display lamp 18 corresponding to the lit block index After adding "1" to the order i, the control is returned to step 54-7-2. On the other hand, if the determination in step 54-7-3 is 0, it means that the valid data in the reception order table has ended, so the operation in step 54-7 is ended and the control returns to step 54-3. Then, the device enters the state of waiting for transmission block selection input.

前記送信ブロック選択入力待ち状態ステップ54−3に
おいて中断ボタン9が押下されると制御はステップ54
−8へ移行し、送信順テーブルの判定を行う。判定は送
信順テーブルの第1番目の領域TBLOCKSEQ (
1)の内容がOであるか否かによって行なう。すなわち TBLOCKSEQ (1)≠O を満足する場合は少なくとも1つ以上のブロック・イン
デックスが送信順テーブルに登録されているわけである
から送信動作を行うべく制御をステップ54−9へ移行
する。一方、上記条件を満たさなかった場合は、送信順
テーブルには現在1つもブロック・インデックスが登録
されていない訳であるから制御を再びステップ54−3
に戻し送信ブロック選択入力待ち状態になる。
When the interrupt button 9 is pressed in the transmission block selection input waiting state step 54-3, control proceeds to step 54.
-8, and the transmission order table is determined. The determination is made in the first area TBLOCKSEQ of the transmission order table (
This is done depending on whether the content of 1) is O or not. That is, if TBLOCKSEQ (1)≠O is satisfied, at least one block index is registered in the transmission order table, and therefore control is shifted to step 54-9 to perform a transmission operation. On the other hand, if the above conditions are not met, since no block index is currently registered in the transmission order table, control is returned to step 54-3.
It returns to the state of waiting for transmission block selection input.

第42図は、第34図で示した送信動作開始ステップ5
4−9での動作制御のフローチャートである。
FIG. 42 shows the transmission operation start step 5 shown in FIG. 34.
4-9 is a flowchart of operation control.

ステップ54−9では、送信動作が開始させられる。第
42図を見るとわかるようにステップ54−9−1でブ
ロック・インデックス表示ランプ18を全消煙し、ステ
ップ54−9−2で送信データ・ブロックサイズ総数T
SIZを0でクリアしておく、次にステップ54−9−
3では送信順番を表わす便宜的なカウンタ“i″を設は
初期値として“1”を代入し、続くステップ54−9−
4で送信順テーブルのi番目の領域TBLOCKSEQ
 [i)の内容を読み出し、便宜的にXとしておく。つ
まり送信順番iのデータ・ブロックに対応するブロック
・インデックスはXとなる。次にステップ54−9−5
で前記ステップ54−9−4で読み出されたブロック・
インデックスXがOで無いことを判定する。もしOでな
ければ制御をステップ54−9−6に移行しブロック・
インデックスXに対応するブロック・インデックス表示
ランプ18を点燈させる。そして次にステップ54−9
−7で送信データ・ブロックサイズ総数TSIZにブロ
ック・インデックスXのデータ・ブロックサイズBLO
CKSIZ [xlを加えて設定し直し、ステップ54
−9−8で送信順番で次のデータ・ブロックを選択すべ
く送信順番iに1を加えた後、再びステップ54−9−
4に制御を戻す。
In step 54-9, a transmit operation is initiated. As can be seen from FIG. 42, in step 54-9-1, the block/index display lamp 18 is completely extinguished, and in step 54-9-2, the total number of transmission data/block sizes T
Clear SIZ with 0, then step 54-9-
In step 3, a convenient counter "i" representing the transmission order is set and "1" is assigned as an initial value, and the subsequent step 54-9-
4, the i-th area TBLOCKSEQ of the transmission order table
Read the contents of [i) and set it as X for convenience. In other words, the block index corresponding to the data block of transmission order i is X. Next step 54-9-5
The block read out in step 54-9-4
It is determined that index X is not O. If not O, control is transferred to step 54-9-6 and block
The block index display lamp 18 corresponding to index X is turned on. and then step 54-9
-7, the total number of transmit data block sizes TSIZ and block index X data block size BLO
Add CKSIZ [xl and reconfigure, step 54
-9-8, after adding 1 to the transmission order i to select the next data block in the transmission order, the process returns to step 54-9-.
Return control to 4.

一方ステップ54−9−5の判定でOであった場合は、
送信順テーブル内の有効データの終了を意味するので制
御をステップ54−9−9へ移行する。
On the other hand, if the determination at step 54-9-5 is O,
Since this means the end of valid data in the transmission order table, the control moves to step 54-9-9.

こうして現在送信登録されているすべてのデータ・ブロ
ックに対応するブロック・インデックス表示ランプ18
を点燈させ、ユーザーに送信選択されているすべてのデ
ータ・ブロックのインデックスを知らせると共に、現在
送信登録されているデータ・ブロックのサイズの総数を
TSIZに設定する。次にステップ54−9−9では、
設定されたTSIZの内容を未送信バイトデータ量TR
EMにコピーする。
Block index display lamps 18 corresponding to all data blocks currently registered for transmission in this way
is turned on to inform the user of the indexes of all data blocks selected for transmission, and the total number of sizes of data blocks currently registered for transmission is set in TSIZ. Next, in step 54-9-9,
Untransmitted byte data amount TR of set TSIZ contents
Copy to EM.

これは、現在まだプリンタへ1バイトのデータも送信し
ていないため、TSIZ=TREMとなるためである。
This is because not even one byte of data has been sent to the printer yet, so TSIZ=TREM.

次にステップ54−9−10で送信データ・ブロック・
インデックスTBLOCK Iに第1番目に送信すべき
データ・ブロック・インデックスの設定を行なう。すな
わち第1番目に送信選択されたデータ・ブロック・イン
デックスTBLOCKSEQ〔1〕の内容をTBLOC
K Iに設定する。次に、ステップ54−9−11で現
在点滅中の送信中表示ランプ14を点燈にし、制御をス
テップS4−10へ移行する。
Next, in step 54-9-10, the transmission data block
The data block index to be transmitted first is set in index TBLOCK I. In other words, the contents of the data block index TBLOCKSEQ [1] that was selected for transmission first are stored as TBLOC.
Set to KI. Next, in step S54-9-11, the currently blinking transmitting indicator lamp 14 is turned on, and the control proceeds to step S4-10.

第43図は、第34図で示したデータ・ブロック送信ス
テップS4−10での動作制御のフローチャートである
FIG. 43 is a flowchart of operation control in the data block transmission step S4-10 shown in FIG. 34.

ステップS4−10では、ブロック・インデックスTB
LOCK Iのデータ・ブロックの送信を行なう。第4
3図を見るとわかるように、ここではまずステップ54
−10−1で送信データ・ブロック総数TBLOCKS
i、:1を加える。次ニステップ54−10−2でブロ
ック・インデックスTBLOCK Iに対応するブロッ
ク・インデックス表示ランプ18を点滅させ、ユーザー
に現在ブロック・インデックスTBLOCK Iのデー
タ・ブロックの送信中であることを知らせ、次にステッ
プ54−10−3で送信中データ・ブロックの送信済バ
イト数TBLOCKSIZをOでクリアしておく。ここ
で送信開始/終了ボタン8が押下された場合(ステップ
54−1O−4)、送信動作の中止とみなし、制御はス
テップS4−17へ移行し送信動作は中止する。また中
断ボタン9が押下された場合(ステップ54−1O−5
)、制御はステップS4−15へ移行し、送信中断入力
待ち状態となる。いずれのボタンも押下されていない場
合、制御はステップ54−10−6に移行し対プリンタ
・ポートに接続されたプリンタがエラー状態となりてい
るか否かを対プリンタ制御信号線の状態を見ることによ
り判定する。判定条件はPE  Pかネゲート状態であ
ること、すなわち PE  P=  “Low        (ステップ
54−1O−6)SELECT  Pがアサート状態で
あること、すなわち 5ELECT   P=  ”High”  (ステッ
プ54−1O−7)および−ERRORPがアサート状
態であること、すなわち −ERRORP=  Low   (ステップ54−1
O−8)である。上記条件がすべて満たされた場合、制
御はステップ54−10−9へ移行する。一方、いずれ
かが満たされなかった場合、制御はステップS4−15
へ移行し、送信中断入力待ち状態となる。ステップ54
−10−9では対プリンタ・ポートに接続されたプリン
タが受信可能状態であるか否かを、対プリンタ・ポート
制御信号線のBUSY  Pを見ることにより判定する
。ここでBUSY  Pがアサート状態である場合、プ
リンタは受信不可能状態であることを意味するから、制
御はステップ54−1O−10に移行し、単位時間ウェ
イト状態となる。そしてこの後、再び制御は、ステップ
54−10−9へ戻り判定を繰り返す。こうしてプリン
タが受信可能状態となるのを待つ。一方BUSY  P
がネゲート状態である場合、プリンタは受信可能状態で
あることを意味するから制御はステップ54−1O−1
1へ移行し、データ送信が行なわれる。
In step S4-10, the block index TB
LOCK I data block is transmitted. Fourth
As you can see from Figure 3, here we first perform step 54.
-10-1 = total number of transmit data blocks TBLOCKS
i,: Add 1. In the next step 54-10-2, the block index indicator lamp 18 corresponding to the block index TBLOCK I is blinked to inform the user that the data block with the block index TBLOCK I is currently being transmitted. In step 54-10-3, the number of transmitted bytes TBLOCKSIZ of the data block currently being transmitted is cleared to O. If the transmission start/end button 8 is pressed here (step 54-1O-4), it is assumed that the transmission operation has been stopped, and control moves to step S4-17, where the transmission operation is stopped. Also, if the interrupt button 9 is pressed (step 54-1O-5
), the control moves to step S4-15, and enters a transmission interrupt input waiting state. If neither button is pressed, control moves to step 54-10-6, and determines whether the printer connected to the printer port is in an error state by checking the state of the printer control signal line. judge. The judgment condition is that PE P is in a negated state, that is, PE P = "Low" (Step 54-1O-6), and that SELECT P is in an asserted state, that is, 5ELECT P = "High" (Step 54-1O-7). and -ERRORP is in the asserted state, i.e. -ERRORP=Low (step 54-1
O-8). If all of the above conditions are met, control moves to step 54-10-9. On the other hand, if any of the conditions is not satisfied, the control proceeds to step S4-15.
, and enters a state where it waits for a transmission interruption input. Step 54
-10-9, it is determined whether the printer connected to the printer port is in a receiving state by checking the BUSY P of the printer port control signal line. If BUSY P is in the asserted state, this means that the printer is in a non-receivable state, so control moves to step 54-1O-10 and enters a wait state for a unit time. After this, the control returns to step 54-10-9 and repeats the determination. In this way, the printer waits until the printer becomes ready to receive data. On the other hand, BUSY P
If the printer is in the negated state, it means that the printer is ready to receive data, so the control goes to step 54-1O-1.
1, and data transmission is performed.

54−1O−11では、受信バッファ内に格納されてい
るバイトデータを対プリンタ・ポート制御信号線DAT
AOP〜DATA7  Pに送出する。ここで送信すべ
きバイト・データのアドレスは、現在送信中のブロック
・インデックスTBLOCKIのデータ・ブロックのス
タートアドレスB L OCK A D R(TBLO
CK I)と送信中データ・ブロックの送信済バイト数
TBLOCKSIZの和で得られる。すなわち送信すべ
きバイト・データの格納されているアドレスは、 BLOCKADR(TBLOCK I ) + TBL
OCKSIZで表わされ、このアドレスに格納されてい
るバイト・データが対プリンタ・ポート制御信号線に送
出される。
54-1O-11 transfers the byte data stored in the receive buffer to the printer/port control signal line DAT.
AOP to DATA7 Send to P. The address of the byte data to be transmitted here is the start address of the data block with the block index TBLOCKI currently being transmitted.
CK I) and the number of transmitted bytes TBLOCKSIZ of the data block currently being transmitted. In other words, the address where the byte data to be sent is stored is BLOCKADR(TBLOCK I) + TBL
The byte data represented by OCKSIZ and stored at this address is sent to the printer port control signal line.

続いて、この後すぐに対プリンタ制御信号線5TROB
E  Pのアサート(ステップ54−1O−12)→−
3TROBE  Pのネゲート(ステップ54−1O−
13)が行なわれ、プリンタにLowパルス信号が送信
される。ここでlバイトのデータの送信が終了したので
、次にステップ54−1O−14において送信中データ
・ブロックの送信済バイト数TBLOCKSIZ!:1
が加えられ、ステップ54−1O−15において未送信
バイト・データ量TREMからlが減じられる。
Next, immediately after this, the printer control signal line 5TROB is
Assertion of EP (step 54-1O-12) →-
Negate 3TROBE P (step 54-1O-
13) is performed and a Low pulse signal is sent to the printer. At this point, the transmission of 1 byte of data is completed, so in step 54-1O-14, the number of transmitted bytes of the data block currently being transmitted TBLOCKSIZ! :1
is added, and l is subtracted from the untransmitted byte data amount TREM in step 54-1O-15.

続くステップ54−1O−16では、未送信バイト・デ
ータ量のTREMの送信データ・ブロックサイズの総数
TSIZに対する割合を百分率で残バッファ/未送信デ
ータ容量表示ランプ17に表示する。ここで割合の百分
率は次の式によって算出する。
In the subsequent step 54-1O-16, the ratio of the amount of untransmitted byte data to the total number TSIZ of the TREM transmission data block size is displayed as a percentage on the remaining buffer/untransmitted data capacity display lamp 17. Here, the percentage is calculated using the following formula.

TREM=Oのとき 未送信データ割合=O TREM≠0のとき 次に制御はステップ54−1O−17に移行し、現在送
信中のデータ・ブロックにおいて未送信データがまだ残
っているか否かを判定する。判定は、現在送信中のデー
タ・ブロックのサイズBLOCKSIZ(TBLOCK
 I)の内容と送信中データ・ブロック送信済バイト数
TBLOCKSIZの内容とを比較することにより行な
われる。すなわち BLOCKSIZ [TBLOCK I )≠TBLO
CKSIZの場合未送信データがまだ残っていることを
意味するから制御は再びステップ54−10−4に戻り
次のバイト・データの送信を開始する。一方、BLOC
KSIZ (TBLOCK I ) = TBLOCK
SIZの場合送信中データ・ブロックのすべてのデータ
が送信されたことを意味するから制御はデータ・ブロッ
クの送信を終了し、ステップS4−11へ移行する。ス
テップS4−11ではデータ・ブロック送信終了処理が
行なわれる。すなわち点滅中のブロックやインデックス
TBLOCK Iに対応するブロック・インデックス表
示ランプ18を消煙させ、ユーザーにブロック・インデ
ックスTBLOCK Iのデータ・ブロックの送信が終
了したことを知らせる。
When TREM=O, unsent data ratio=O When TREM≠0, control then moves to step 54-1O-17, and it is determined whether unsent data still remains in the data block currently being transmitted. do. The determination is based on the size of the data block currently being transmitted BLOCKSIZ(TBLOCK
This is done by comparing the contents of I) with the contents of the data block being transmitted/transmitted byte count TBLOCKSIZ. That is, BLOCKSIZ [TBLOCK I)≠TBLO
In the case of CKSIZ, it means that untransmitted data still remains, so control returns to step 54-10-4 again to begin transmitting the next byte of data. On the other hand, BLOC
KSIZ (TBLOCK I) = TBLOCK
In the case of SIZ, it means that all data in the data block being transmitted has been transmitted, so control ends the transmission of the data block and moves to step S4-11. In step S4-11, data block transmission termination processing is performed. That is, the block/index display lamp 18 corresponding to the blinking block or index TBLOCK I is extinguished to notify the user that the transmission of the data block with the block index TBLOCK I has been completed.

次に処理は、S4−12に移行し、次送信データ・ブロ
ックの選択が行なわれる。
The process then moves to S4-12, where the next transmission data block is selected.

第44図は第34図で示した次ブロツク選択S4−12
での動作制御のフローチャートである。
Figure 44 shows the next block selection S4-12 shown in Figure 34.
2 is a flowchart of operation control in FIG.

第44図を見るとわかるよう4こ、ここではまずステッ
プ54−12−1で送信順テーブルのTBLOGKS+
1番目の領域TBLOCKSEQ [:TBLOCKS
+1)の内容を読みし便宜的にXとしておく。次にステ
ップ54−12−2で読み出されたブロック・インデッ
クスXがOであるか否かを判定する。も・しOでなけれ
ば、Xが次に送信すべきデータ・ブロックのインデック
スということになり、制御をステップS4−12−3へ
移行し、送信データ・ブロックのインデックスを表わす
TBLOCK Iにブロック・インデックスXを格納す
る。そしてこの後、制御を再びステップS4−10へ戻
し次データ・ブロックの送信を開始する。一方ステップ
54−12−2の判定でXがOであった場合は、送信順
テーブルに登録されたデータ・ブロックはすべて送信が
終了して次送信データ・ブロックは存在しないことを意
味するため制御をステップS4−13へ移行し送信動作
中断入力待ち状態となる。
As can be seen from FIG. 44, in step 54-12-1, the transmission order table TBLOGKS
1st area TBLOCKSEQ [:TBLOCKS
Read the contents of +1) and write it as X for convenience. Next, in step 54-12-2, it is determined whether the read block index X is O or not. If it is not O, then X is the index of the next data block to be transmitted, and control is transferred to step S4-12-3, where the block is set to TBLOCK I, which represents the index of the data block to be transmitted. Store index X. Thereafter, control is returned to step S4-10 to begin transmitting the next data block. On the other hand, if X is O in the judgment at step 54-12-2, this means that all data blocks registered in the transmission order table have been transmitted and there is no next transmission data block. The process moves to step S4-13 and enters a state of waiting for an input to interrupt the transmission operation.

第45図は、第34図で示した送信動作中断入力持ちS
4−13での動作制御のフローチャートである。
FIG. 45 shows the transmission operation interruption input S shown in FIG. 34.
4-13 is a flowchart of operation control.

ステップS4−13では、第45図を見るとわかるよう
に、まずステップ54−13−1で現在点燈中の送信中
表示ランプ14を点滅させユーザーに送信動作が中断さ
れていることを知らせる。そしてこの後、動作ボタンの
いずれかが押下されるまで待機している。ここで送信開
始/終了ボタン8が押下された場合(ステップ54−1
3−2)送信動作の中止終了とみなし、制御はステップ
S4−17へ移行する。また中断ボタン9が押下された
場合(ステップ54−13−3)制御は、ステップS4
−14へ移行し再送信の準備が行なわれる。
In step S4-13, as can be seen from FIG. 45, first, in step 54-13-1, the transmitting display lamp 14, which is currently lit, is blinked to inform the user that the transmitting operation is interrupted. After this, it waits until any of the operation buttons is pressed. If the transmission start/end button 8 is pressed here (step 54-1
3-2) It is assumed that the transmission operation has been canceled and the control moves to step S4-17. Further, when the interrupt button 9 is pressed (step 54-13-3), the control is performed in step S4.
-14, and preparations for retransmission are made.

第46図は、第34図で示した再送信準備ステップS4
−14での動作制御のフローを表わしたものである。
FIG. 46 shows the retransmission preparation step S4 shown in FIG.
-14 shows the flow of operation control.

第46図を見るとわかるように、ここではまずステップ
54−14−1からステップ54−14−4において TBLOCKSEQ  (i)  ←0    (i=
1.2.・・・、20)を実行することにより送信順テ
ーブルをOにクリアする。次にステップ54−14−5
において送信データ・ブロック総数TBLOCKSをO
にクリアし、ステップ54−14−6で残バッファ/未
送信データ容量表示ランプ17を清澄する。次にステッ
プ54−14−7からステップS4−14’−10にお
いて現在受信登録されているすべてのデータ・ブロック
に対応するブロック・インデックス表示ランプを点燈さ
せ、ユーザーにすべての受信登録済データ・ブロックの
インデックスを知らせる。すなわちステップ54−14
−7で受信順番を表わす便宜的なカウンタ“j”に初期
値として“1”を代入し、続くステップ54−14−8
で受信順テーブルのj番目の領域RBLOCKSEQ 
[j)の内容を読み出し、便宜的にXとしておく。つま
り受信順番jのデータ・ブロックに対応するブロック・
インデックスはXとなる。次にステップ54−14−9
では、前記ステップ54−14−8で読み出されたブロ
ック・インデックスが0であるか否かを判定する。もし
0でなければ制御をステップ54−14−10に移行し
ブロック・インデックスXに対応するブロック・インデ
ックス表示ランプ18を点燈させる。そして次にステッ
プ54−14−11で受信順番で次のデータ・ブロック
を選択すべく受信順番jに1を加えた後、再びステップ
54−14−8に制御を戻す。一方、ステップ54−1
4−9の判定でXがOであった場合は受信順テーブル内
の有効データの終了を意味するのでステップS4−14
の制御を終了し、制御をステップ54−3に戻し再び送
信選択入力待ち状態となる。
As can be seen from FIG. 46, first, from step 54-14-1 to step 54-14-4, TBLOCKSEQ (i) ←0 (i=
1.2. ..., 20) to clear the transmission order table to O. Next step 54-14-5
The total number of transmitted data blocks TBLOCKS is O
In step 54-14-6, the remaining buffer/unsent data capacity display lamp 17 is cleared. Next, in steps 54-14-7 to S4-14'-10, the block index display lamps corresponding to all the data blocks currently registered for reception are lit, and the user is asked to display all the registered data blocks. Tells the index of the block. That is, step 54-14
-7, assign "1" as an initial value to a convenient counter "j" representing the reception order, and proceed to step 54-14-8.
j-th area RBLOCKSEQ of reception order table
Read the contents of [j) and set it as X for convenience. In other words, the block corresponding to the data block of reception order j
The index will be X. Next step 54-14-9
Then, it is determined whether the block index read in step 54-14-8 is 0 or not. If it is not 0, the control moves to step 54-14-10 and the block index display lamp 18 corresponding to the block index X is lit. Then, in step 54-14-11, 1 is added to the reception order j to select the next data block in the reception order, and then control is returned to step 54-14-8. On the other hand, step 54-1
If X is O in the determination in step S4-9, it means the end of valid data in the reception order table, so proceed to step S4-14.
The control is terminated and the control returns to step 54-3 to wait for a transmission selection input again.

前記、データ・ブロック送信ステップS4−10におい
て中断ボタン9が押下された場合、あるいは同じく、ス
テップS4−10において対プリンタポートに接続され
たプリンタのエラー状態が検出された場合、制御はステ
ップS4−15へ移行し送信中断入力待ち状態になる。
If the interrupt button 9 is pressed in the data block transmission step S4-10, or if an error state of the printer connected to the printer port is detected in step S4-10, the control proceeds to step S4-10. The process moves to step 15 and enters a transmission interruption input waiting state.

第47図は第34図で示した、送信中断入力持ちS4−
15での動作制御のフローを表わしたものである。
Figure 47 shows S4-, which has the transmission interrupt input shown in Figure 34.
15 shows the flow of operation control in step 15.

第47図を見るとわかるようにここでは、まずステップ
54−15−1で現在点燈中の送信中表示ランプ14を
点滅させユーザーに送信が中断されていることを知らせ
る。そしてこの後動作ボタンのいずれかが押下されるま
で待機している。ここで送信開始/終了ボタン8が押下
された場合(ステップ54−15−2)送信動作の中止
終了とみなし制御はステップS4−17へ移行する。ま
たクリア・ボタン5が押下された場合(ステップ54−
15−3)制御はステップS4−16へ移行し送信中断
中のデータ・ブロック送信をスキップする。また、中断
ボタン9が押下された場合(ステップ54−15−4)
、制御はステップ54−15−5に移行し点滅中の送信
中表示ランプ14を点燈させ、送信中断されていたデー
タ・ブロックの送信を再開すべく制御を再びステップS
4−10へ戻す。
As can be seen from FIG. 47, first, in step 54-15-1, the transmitting display lamp 14, which is currently lit, is blinked to notify the user that the transmission is being interrupted. After this, it waits until any of the operation buttons is pressed. If the transmission start/end button 8 is pressed here (step 54-15-2), it is assumed that the transmission operation has been canceled and the control proceeds to step S4-17. Also, if clear button 5 is pressed (step 54-
15-3) Control moves to step S4-16 to skip data block transmission during transmission suspension. Also, if the interrupt button 9 is pressed (step 54-15-4)
, the control moves to step 54-15-5, turns on the blinking transmitting indicator lamp 14, and returns the control to step S to restart the transmission of the data block whose transmission was interrupted.
Return to 4-10.

前記送信中断入力待ち状態ステップS4−15において
クリア・ボタン5が押下されると制御はステップS4−
16へ移行し送信中断中データ・ブロック送信のスキッ
プを行なう。この処理は送信中断されたデータ・ブロッ
クにおいて、何バイトのデータが未送信であったかを計
算し、その値を未送信データバイト−!!tTREMか
ら減じることにより行なわれる。
When the clear button 5 is pressed in step S4-15 in the transmission interrupt input waiting state, control proceeds to step S4-15.
16, data block transmission is skipped during transmission suspension. This process calculates how many bytes of data have not been transmitted in the data block whose transmission has been interrupted, and calculates the value as untransmitted data bytes -! ! This is done by subtracting from tTREM.

送信中断データ・ブロックにおける未送信デ−タ量を求
めるには、送信中断されたデータ・ブロックのサイズB
LOCKSIZ [TBLOCK I]から送信中デー
タ・ブロックの送信済バイト数TBLOCKSIZを減
ずればよい。すなわち BLOCKSIZ (TBLOCK I ) −TBL
OCKSIZを計算すればよい。
To determine the amount of untransmitted data in a data block whose transmission has been interrupted, the size B of the data block whose transmission has been interrupted is
The number of transmitted bytes TBLOCKSIZ of the data block currently being transmitted can be subtracted from LOCKSIZ [TBLOCK I]. That is, BLOCKSIZ (TBLOCK I) -TBL
All you have to do is calculate OCKSIZ.

よってここでは TREM 4−TREM−(BLOCKSIZ: (T
BLOCK I ) −TBLOCKSIZ)を実行す
る。そしてこの後制御を34−10へ移行し、送信中断
データ・ブロックの送信を再開させる。
Therefore, here, TREM 4-TREM-(BLOCKSIZ: (T
BLOCK I )-TBLOCKSIZ) is executed. Thereafter, control is transferred to 34-10, and transmission of the transmission interrupted data block is resumed.

前記データ・ブロック送信ステップS4−1oにおいて
、送信開始/終了ボタン8が押下された場合、前記送信
動作中断入力待ち状態S4−13において送信開始/終
了ボタン8が押下された場合、あるいは前記送信中断入
力待ち状態S4−15で送信開始/終了ボタン8が押下
された場合には、制御はステップS4−17へ移行し送
信中止となる。
When the transmission start/end button 8 is pressed in the data block transmission step S4-1o, when the transmission start/end button 8 is pressed in the transmission operation interruption input waiting state S4-13, or when the transmission interruption If the transmission start/end button 8 is pressed in the input waiting state S4-15, control moves to step S4-17 and transmission is stopped.

第48図は、第34図で示した送信中止ステップS4−
17での動作制御のフローチャートである。
FIG. 48 shows the transmission stop step S4- shown in FIG. 34.
17 is a flowchart of operation control in step 17.

第48図を見るとわかるように、ここではまず54−1
7−1から34−17−4においてTBLOCKSEQ
 (i)←0   (i=1.2.・・・、20)を実
行することにより送信順テーブルをOにクリアする。次
にステップ54−17−5において残受信バッファ@R
REMの受信バッファのサイズUMEMに対する割合を
百分率で残バッファ/未送信データ容量表示ランプ17
に表示する。割合の百分率の算出式は前記受信動作ステ
ップ53−3−13で用いたものと同一である。次にス
テップ54−17−6からステップ54−17−10に
おいて現在受信登録されているすべてのデータ・ブロッ
クに対応する、ブロック・インデックス表示ランプを点
燈させユーザーにすべての受信登録済データ・ブロック
のインデックスを知らせる。この処理の方法は前記再送
信準備ステップS4−14のステップ5414−7から
ステップ54−14−11における処理とまったく同様
である。この後処理はステップS4−18に移行する。
As you can see from Figure 48, here we will start with 54-1.
TBLOCKSEQ from 7-1 to 34-17-4
The transmission order table is cleared to O by executing (i)←0 (i=1.2...,20). Next, in step 54-17-5, the remaining reception buffer @R
Remaining buffer/unsent data capacity display lamp 17 showing the ratio of REM reception buffer to size UMEM as a percentage
to be displayed. The formula for calculating the percentage is the same as that used in the receiving operation step 53-3-13. Next, in steps 54-17-6 to 54-17-10, the block index display lamps corresponding to all the data blocks currently registered for reception are lit, and the user is asked to check all the registered data blocks. Inform the index of. The method of this processing is exactly the same as the processing from step 5414-7 to step 54-14-11 of the retransmission preparation step S4-14. This post-processing moves to step S4-18.

ステップS4−18では送信中表示ランプ14を消煙し
すべての送信動作を終了する。
In step S4-18, the transmitting indicator lamp 14 is extinguished and all transmitting operations are completed.

第49図は第14図で示したデータ・ブロックの選択的
クリア動作ステップS5での動作制御の概略を表わした
ものである。選択的クリア動作ステップS5は、第49
図に示すようなフローで行なわれる。すなわち、まずス
テップ55−1で登録済ブロック数の判定を行なう。以
下に述べるデータ・ブロックの選択的クリア動作ステッ
プS5は現在コンピュータから受信登録されているデー
タ・ブロックを対象にしている訳であるから、少なくと
も登録済ブロック数が1以上であることが必要になる。
FIG. 49 schematically shows the operation control in the data block selective clear operation step S5 shown in FIG. 14. The selective clearing operation step S5 is the 49th
The process is carried out according to the flow shown in the figure. That is, first, in step 55-1, the number of registered blocks is determined. Since the data block selective clear operation step S5 described below targets data blocks currently registered for reception from the computer, it is necessary that the number of registered blocks is at least 1 or more. .

すなわちこの登録済ブロック数判定ステップ55−1で
は登録済ブロック数RBLOCKSに対してRBLOC
KS>0 を満足するか否かを判定し、満足する場合はステップ8
5−2に移行し、条件を満たさなかった場合はデータ・
ブロックの選択的クリア動作ステップS5を終了する。
That is, in this registered block number determination step 55-1, RBLOCKS is determined for the registered block number RBLOCKS.
Determine whether KS>0 is satisfied, and if so, proceed to step 8.
5-2, and if the conditions are not met, the data
The block selective clearing operation step S5 is completed.

第50図は第49図で示したブロック・インデックス入
力待ちステップ55−2での動作制御のフローチャート
である。
FIG. 50 is a flowchart of operation control at block index input waiting step 55-2 shown in FIG. 49.

ステップ55−2は消去するブロック・インデックスの
入力待ち状態であり、第50図に示すように動作指示の
ボタンのいずれかが押下されるまで待機している。クリ
ア・ボタン5が押下された場合は(ステップ55−2−
1)、データ・ブロックの選択的クリア動作の終了指示
とみなし速やかに当該動作ステップS5を終了する。ま
た、20個存在するブロック・インデックス・ボタン1
oのいずれかが押下された場合(ステップ55−2−2
)、制御はステップ55−3に移行しく便宜的にステッ
プ55−2−2で押下されたブロック・インデックス。
Step 55-2 is a state of waiting for input of a block index to be erased, and waits until one of the operation instruction buttons is pressed as shown in FIG. If clear button 5 is pressed (step 55-2-
1) This is regarded as an instruction to end the selective clearing operation of the data block, and the operation step S5 is immediately terminated. In addition, there are 20 block index buttons 1
o is pressed (step 55-2-2
), control moves to step 55-3 and the block index pressed in step 55-2-2 for convenience.

ボタン10に対応するブロック・インデックスをXとす
る)、全ブロック選択ボタン11が押下された場合(ス
テップ55−2−3)、制御はステップ55−4に移行
する。
(Let the block index corresponding to button 10 be X), if the all block selection button 11 is pressed (step 55-2-3), control moves to step 55-4.

ステップ55−3では、前記ブロック・インデックス入
力待ちステップ55−2でブロック・インデックスボタ
ン10によって入力されたブロック・インデックスXで
参照されるデータ・ブロックが登録されているか否かを
判定する。判定は該データ・ブロックのサイズBLOC
KSIZ (x)がl(バイト)以上であるか否かによ
って行なう。すなわちBLOCKSIZ (x) >0 を満足する場合は、ブロック・インデックスXのデータ
・ブロックは現在登録されている訳であるから消去動作
を行なうべくステップ55−5へ進む。
In step 55-3, it is determined whether the data block referred to by the block index X input using the block index button 10 in the block index input waiting step 55-2 is registered. Determination is based on the size of the data block BLOC
This is done depending on whether KSIZ (x) is greater than or equal to l (byte). That is, if BLOCKSIZ (x) > 0 is satisfied, the data block with block index X is currently registered, and the process advances to step 55-5 to perform an erase operation.

一方条件を満たさなかった場合はブロック・インデック
スXのデータ・ブロックは現在登録されていない訳であ
るから再びブロック・インデックス入力待ちステップ5
5−2に制御を戻す。
On the other hand, if the condition is not met, the data block with block index
Control is returned to 5-2.

ステップ55−5では点燈中のブロック・インデックス
Xに対応するブロック・インデックス表示ランプ18を
点滅させ、ユーザーにブロック・インデックスXのデー
タ・ブロックが現在消去の対象として選択されているこ
とを知らせた後、ステップ55−6へ進む。
In step 55-5, the block index display lamp 18 corresponding to the lit block index X is blinked to inform the user that the data block with block index X is currently selected for erasure. After that, the process advances to step 55-6.

第51図は第49図で示した消去動作確認待ちステップ
55−6での動作制御のフローチャートである。
FIG. 51 is a flowchart of the operation control at the erase operation confirmation waiting step 55-6 shown in FIG. 49.

ステップ55−6は消去動作確認待ち状態であり、第5
1図に示すようにブロック・インデックスXに対応する
ブロック・インデックス・ボタン10またはクリア・ボ
タン5のいずれかが押下されるまで待機している。ブロ
ック・インデックスXのブロック・インデックス・ボタ
ンlOが押下された場合は(ステップ55−6−1)、
ブロック・インデックスXのデータ・ブロックに対する
消去動作のキャンセル指示とみなしステップ55−7に
移行し、クリア・ボタン5が押下された場合は(ステッ
プ55−6−2)、ブロック・インデックスXのデータ
・ブロックに対する消去動作の実行指示とみなしステッ
プ55−8へ移行する。
Step 55-6 is a state of waiting for confirmation of the erase operation, and the fifth
As shown in FIG. 1, the process waits until either the block index button 10 or the clear button 5 corresponding to block index X is pressed. If block index button lO of block index X is pressed (step 55-6-1),
This is regarded as an instruction to cancel the erase operation for the data block with block index This is regarded as an instruction to execute an erase operation on the block, and the process moves to step 55-8.

ステップ55−7では点滅中のブロック・インデックス
Xに対応するブロック・インデックス表示ランプ18を
点燈させ、ユーザーにブロック・インデックスXのデー
タ・ブロックが消去の対象にされていないことを知らせ
た後、再びブロック・インデックス入力待ちステップ5
5−2に制御を戻す。
In step 55-7, the block index display lamp 18 corresponding to the flashing block index X is turned on to inform the user that the data block of block index X is not targeted for erasure. Waiting for block index input again Step 5
Control is returned to 5-2.

消去動作確認待ち状態ステップ55−6において、クリ
ア・ボタン5が押下された場合にはステップ55−8に
制御が移り、ここでブロック・インデックスXのデータ
・ブロックに対する消去が行なわれる。
If the clear button 5 is pressed in the erase operation confirmation waiting state step 55-6, control moves to step 55-8, where the data block of block index X is erased.

第52図は第49図で示したデータ・ブロック消去ステ
ップ55−8での動作制御のフローチャートである。
FIG. 52 is a flowchart of operation control in the data block erase step 55-8 shown in FIG. 49.

ここでは第52図に示すようにまず消去の対象として選
択されたブロック・インデックスXのデータ・ブロック
が受信動作開始後何番目(m番目)に受信したデータ・
ブロックなのかを知り得るために、ステップ55−8−
1で求める受信順番mの初期値として”1”を代入する
。次にステップ55−8−2で受信順テーブルのm番目
の領域RBLOCKSEQ〔m〕の内容と、消去の対象
として選択されたブロック・インデックスXが一致する
か否かを判定し、一致した場合はmがブロック・インデ
ックスXのデータ・ブロックの受信順番であるとしてス
テップ55−8−4に進み、一致しなかった場合は受信
順テーブルを次々と検索すべくステップ55−8−3で
受信順番mに1を加えた後再びステップ55−8−2の
判定を繰り返す。このステップ55−8−1からステッ
プ55−8−3での受信順番mの検索方法において消去
の対象として選択されたブロック・インデックスXのデ
ータ・ブロックは前記データ・ブロック登録判定ステッ
プ35−3によって現在登録されていることがわかって
いるので必ずブロック・インデックスXのデータ・ブロ
ックに対する受信順番mが得られる。続くステップ55
−8−4では以降ステップ55−8−13に渡って行な
われるところの消去の対象として選択されたブロック・
インデックスXのデータ・ブロックよりも受信順番で後
に受信されたいくつかのデータ・ブロックに対して受信
バッファ内での格納位置をそれぞれずらして消去される
ブロック・インデックスXのデータ・ブロックが格納さ
れていた領域に詰める操作の準備として、ブロック・イ
ンデックスXのデータ・ブロックよりも後に受信された
いくつかのデータ・ブロックに対する受信順番を表わす
便宜的なカウンタ“n”を設け、その初期値としてm 
+ 1を代入する。ここで受信順番nの取り得る最大値
は現在受信バッファに登録済のデータ・ブロックの総数
RBLOCKSであるからこの受信順番nの取り得る値
の範囲は m+1≦n≦RBLOCKS と考えられるが、消去されるブロック・インデックスX
のデータ・ブロックが受信順番で最後のデータ・ブロッ
クであった場合、すなわち m = RB L OCK S であった場合はブロック・インデックスXのデータ・ブ
ロックよりも受信順番で後に受信されたデータ・ブロッ
クは存在しないので以下に述べる格納位置の修正の操作
は必要ない。ステップ55−8−5ではデータ・ブロッ
クの格納位置の修正が必要なのか否かを受信順番nが登
録済ブロック数RBLOCKS以下であるか否かで判定
する。条件を満たす場合はステップ55−8−6に進み
、満たさない場合はステップ55−8−14へ進む。前
述した消去されるブロック・インデックスXのデータ・
ブロックが受信順番で最後のデータ・ブロックであった
場合はステップ55−8−5の判定条件を満たさないの
で速やかにステップ55−8−14へ移行することにな
る。
Here, as shown in FIG. 52, first, the data block with the block index
In order to know whether it is a block, step 55-8-
Substitute "1" as the initial value of the reception order m determined by 1. Next, in step 55-8-2, it is determined whether the contents of the m-th area RBLOCKSEQ [m] of the reception order table match the block index X selected for erasure, and if they match, The process proceeds to step 55-8-4 assuming that m is the reception order of the data block with the block index After adding 1 to , the determination in step 55-8-2 is repeated again. The data block with the block index Since it is known that it is currently registered, the reception order m for the data block of block index X can be obtained without fail. Next step 55
-8-4, the block selected for erasure, which will be carried out in step 55-8-13.
The data block with index X is stored in a block that is erased by shifting the storage position in the receive buffer for some data blocks that were received later in the reception order than the data block with index X. In preparation for the operation of filling the area with block index
Substitute +1. Here, the maximum value that the reception order n can take is the total number of data blocks RBLOCKS currently registered in the reception buffer, so the range of possible values for the reception order n is m + 1 ≦ n ≦ RBLOCKS. block index
If the data block of is the last data block in the reception order, i.e. m = RB LOCKS, then the data block is received after the data block of block index X in the reception order. does not exist, so there is no need to modify the storage location described below. In step 55-8-5, it is determined whether the storage position of the data block needs to be corrected or not based on whether the reception order n is less than or equal to the number of registered blocks RBLOCKS. If the conditions are met, the process proceeds to step 55-8-6; if not, the process proceeds to step 55-8-14. The data of block index X to be erased mentioned above.
If the block is the last data block in the receiving order, the judgment condition of step 55-8-5 is not satisfied, and the process immediately moves to step 55-8-14.

ステップ55−8−6では受信順番nのデータ・ブロッ
クに与えられたブロック・インデックスy″を得るため
に、受信順テーブルのn番目の領域RBLOCKSEQ
 (n)の内容を読み出す。続くステップ55−8−7
ではこの受信順番nのブロック・インデックスyのデー
タ・ブロックの格納されたそれぞれのバイト・データを
計数する便宜的なカウンタ“i”を設け、その初期値と
して0を代入する。こうしてステップ55−8−8でブ
ロック・インデックスyのデータ・ブロックを構成する
各々のバイト・データを、消去されるブロック・インデ
ックスXのデータ・ブロックのサイズであるBLOCK
SIZ (x)(バイト)分受信バッファ内で前方(ア
ドレス下位方向)に転送する操作を行う。
In step 55-8-6, in order to obtain the block index y'' given to the data block of reception order n, the nth area RBLOCKSEQ of the reception order table is
Read the contents of (n). Subsequent step 55-8-7
Now, a convenient counter "i" is provided to count the byte data stored in each data block of the block index y in the reception order n, and 0 is assigned as its initial value. Thus, in step 55-8-8, each byte of data constituting the data block with block index y is divided into BLOCK, which is the size of the data block with block index X to be erased.
Perform an operation to transfer SIZ (x) (bytes) forward (in the lower address direction) within the receive buffer.

ここで転送するバイト・データが格納されている領域の
アドレスはブロック インデックスyのデータ・ブロッ
クのスタートアドレスBLOCKADR〔y〕とカウン
タiの和で得られ、新しい格納領域(転送先)アドレス
は前述の転送元アドレスから消去されるブロック・イン
デックスXのデータ・ブロックの サイズBLOCKS
IZで(X)を引いたものである。すなわち転送元アド
レスは、BLOCKADH[y] + i で表わされ、転送先アドレスは BLOCKADH(y) −BLOCKSIZ [x]
+ iで表わされる。ステップ55−8−9では次のバ
イト・データを指し示すべくカウンタiに1を加え、ス
テップ55−8−10でブロック・インデックスyのデ
ータ・ブロックを構成するすべてのバイト・データが転
送されたか否かを判定すべくカウンタiがブロック・イ
ンデックスyのデータ・ブロックのサイズBLOCKS
IZ (y)未満であるかを判定する。条件を満たす場
合はまた転送すべきバイト・データが残っている訳であ
るからバイト・データの転送を行なうべく再びステップ
55−8−8に戻り、条件を満たさない場合はすべての
バイト・データの転送が終了した訳であるからステップ
55−8−11に進む。ステップ55−8−11では転
送が終了したブロック・インデックスyのデータ・ブロ
ックのスタートアドレスBLOCKADH[:Y]から
消去されるブロック・インデックスXのデータ・ブロッ
クのサイズBLOCKSIZ (x)を引いて設定し直
す。続くステップ55−8−12で受信順テーブルにお
いて転送されたブロック・インデックスyのデータ・ブ
ロックの受信順番をひとつ前にずらす操作を行なう。す
なわち RBLOCKSEQ (n−1) ←RBLOCKSE
Q [n)を行なう。以上述べてきたステップ55−8
−6からステップ55−8−12にかけての操作によっ
て消去されるブロック・インデックスXのデータ・ブロ
ックよりも受信順番で後に受信されたひとつのデータ・
ブロックであるところの受信順番nのデータ・ブロック
の格納位置の修正が行なわれた訳であるがステップ55
−8−13では受信順番でさらに次のデータ・ブロック
の格納位置の修正を行なうべく受信順番nに1を加えた
後再び前記ステップ55−8−5に戻る。受信順番で最
後のデータ・ブロックまでのすべてのデータ・プロツり
に対する格納位置の修正が終了するとステップ55−8
−5での判定条件を満たさなくなるので結果的にステッ
プ55−8−14へ移行する。消去されるブロック・イ
ンデックスXのデータ・ブロックが受信順番で最後のデ
ータ・ブロックであった場合、または消去されるブロッ
ク・インデックスXのデータ・ブロックよりも受信順番
で後に受信されたすべてのデータ・ブロックに対して前
述したような格納位置の修正が行なわれた後制御はステ
ップ55−8−14へ移り、ここで結果的に意味の無く
なった(空き領域になった)受信順番で最後に受信した
データ・ブロックに対するブロワ゛り・インデックスが
格納されている受信順テーブルの領域RBLOCKSE
Q (RBLOCKS)を0でクリアする。
The address of the area where the byte data to be transferred is stored is obtained by the sum of the start address BLOCKADR[y] of the data block with block index y and the counter i, and the new storage area (transfer destination) address is the above-mentioned address. Size of data block with block index X to be erased from transfer source address BLOCKS
It is IZ minus (X). That is, the transfer source address is expressed as BLOCKADH[y] + i, and the transfer destination address is expressed as BLOCKADH(y) - BLOCKSIZ [x]
It is represented by +i. In step 55-8-9, 1 is added to counter i to point to the next byte data, and in step 55-8-10, it is determined whether all byte data constituting the data block of block index y has been transferred. In order to determine whether the counter i is the size of the data block with block index y BLOCKS
It is determined whether it is less than IZ (y). If the condition is met, there is still byte data to be transferred, so the process returns to step 55-8-8 to transfer the byte data; if the condition is not met, all byte data is transferred. Since the transfer has ended, the process advances to step 55-8-11. In step 55-8-11, the size BLOCKSIZ (x) of the data block of block index fix. In the following step 55-8-12, the reception order of the transferred data block with block index y is shifted forward by one in the reception order table. That is, RBLOCKSEQ (n-1) ←RBLOCKSE
Do Q [n). Step 55-8 mentioned above
-6 to step 55-8-12, one piece of data received later in reception order than the data block with index
This means that the storage position of the data block with reception order n, which is a block, has been corrected, but in step 55
-8-13, 1 is added to the reception order n in order to correct the storage position of the next data block in the reception order, and then the process returns to step 55-8-5. When the storage positions have been corrected for all data blocks up to the last data block in the receiving order, step 55-8
Since the determination condition at -5 is no longer satisfied, the process moves to step 55-8-14. If the data block with block index X to be erased is the last data block in reception order, or all data blocks received after the data block with block index After the storage position of the block has been corrected as described above, the control moves to step 55-8-14, where the last received in the reception order that has lost its meaning (has become an empty area) Area RBLOCKSE of the reception order table that stores the blower index for the data block
Clear Q (RBLOCKS) to 0.

次にブロック・インデックスXのデータ・ブロックを消
去することによってバッファ・フル状態が回避されるの
か否かを判定するためにステップ55−8−15で現在
の残受信バッファ量RREMが0以上であるか否かを判
定する。条件を満たす場合はブロック・インデックスX
のデータ・ブロックを消去する前もバッファ・フル状態
で無い訳であるからステップ55−8−19に進む。条
件を満たさない場合はブロック・インデックスXのデー
タ・ブロックの消去によってバッファ・フル状態から回
避される訳であるから、ステップ55−8−16へ進み
ここで対コンピュータ制御信号線−ERRORCを、ス
テップ55−8−17で、対コンピュータ制御信号線P
E  Cをそれぞれネゲートすることによりコンピュー
タに当該プリンタ・バッファが“紙なし状態”を回避し
たことを知らせ、さらに、ステップ55−8−18で点
燈中のバッファ・フル表示ランプ16を消燈させ、ユー
ザーにバッファ・フル状態で無くなったことを知らせた
後ステップ55−8−19へ進む。ステップ55−8−
19では残受信バッファiRREMに消去されるブロッ
ク・インデックスXのデータ・ブロックのサイズBLO
CKSIZ (x)を加えて設定し直す。続くステップ
55−8−20ではステップ55−8−19で修正され
た残受信バッファ:lRREMの受信バッファのサイズ
UMEMに対する割合を百分率で基バッファ/未送信デ
ータ容量表示ランプ17に表示する。ステップ55−8
−21ではステップ55−8−19での残受信バッファ
量RREMの修正によってバッファ空状態になったか否
かを残受信バッファ・量RREMの値が受信バッファの
サイズUMEMの値と等しいか否かによって判定し、条
件を満足する場合すなわちバッファ空状態になった場合
はステップS5−8−22でバッファ空表示ランプ15
を点燈させステップ55−8−23に進む。一方条件を
満足しない場合は速やかにステップ55−8−23へ移
行する。ステップ55−8−23ではいよいよ消去の対
象として選択されたブロック・インデックスXのデータ
・ブロックを消去すべくそのサイズBLOCKSIZ 
(x)をOにクリアする。続くステップ55−8−24
で登録済ブロック数RBLOCKSから1を減じること
によってこのデータ・ブロック消去ステップ55−8は
終了しステップ55−9へ移行する。
Next, in order to determine whether the buffer full state can be avoided by erasing the data block with block index Determine whether or not. If the condition is met, block index X
Since the buffer is not full even before erasing the data block, the process advances to step 55-8-19. If the condition is not met, the buffer full state is avoided by erasing the data block with block index 55-8-17, computer control signal line P
By negating each of E and C, the computer is informed that the printer buffer has avoided the "out of paper state", and furthermore, in step 55-8-18, the lit buffer full indicator lamp 16 is turned off. , informs the user that the buffer is full and then proceeds to step 55-8-19. Step 55-8-
19, the size BLO of the data block with block index X to be erased in the remaining reception buffer iRREM
Add CKSIZ (x) and reset. In the subsequent step 55-8-20, the ratio of the remaining receive buffer: lRREM corrected in step 55-8-19 to the receive buffer size UMEM is displayed as a percentage on the base buffer/unsent data capacity display lamp 17. Step 55-8
-21, it is determined whether or not the buffer becomes empty due to the correction of the remaining receive buffer amount RREM in step 55-8-19, depending on whether the value of the remaining receive buffer amount RREM is equal to the value of the receive buffer size UMEM. If the condition is satisfied, that is, if the buffer becomes empty, the buffer empty indicator lamp 15 is turned on in step S5-8-22.
is turned on and the process proceeds to step 55-8-23. On the other hand, if the conditions are not satisfied, the process immediately moves to step 55-8-23. In step 55-8-23, in order to erase the data block of block index X selected for erasure, its size BLOCKSIZ is finally
Clear (x) to O. Subsequent step 55-8-24
By subtracting 1 from the registered block number RBLOCKS, this data block erasing step 55-8 ends and the process moves to step 55-9.

ステップ55−8におけるブロック◆インデックスXの
データ・ブロックに対する消去が終了するとステップ5
5−9へ制御が移り、ここで点滅中のブロック・インデ
ックスXに対応するブロック・インデックス表示ランプ
18を消燈させ、ユーザーにブロック・インデックスX
のデータ・ブロックが消去されたことを知らせた後ステ
ップS5−10へ進む。
Block in step 55-8 ◆ When erasing for the data block of index X is completed, step 5
Control is transferred to 5-9, where the block index display lamp 18 corresponding to the blinking block index
After informing that the data block has been erased, the process advances to step S5-10.

第53図は第49図で示した次ブロック・インデックス
設定ステップS5−10での動作制御でのフローチャー
トである。
FIG. 53 is a flow chart of operation control in the next block index setting step S5-10 shown in FIG. 49.

ステップS5−10では今後再び受信動作ステップS3
が行なわれる場合に備えて次にコンピュータから受信さ
れるデータ・ブロックに与えるブロック・インデックス
RBLOCKIの設定を行なう。
In step S5-10, the receiving operation will be performed again in step S3.
The block index RBLOCKI to be given to the next data block received from the computer is set in preparation for the case where the next data block is received from the computer.

第53図に示すようにまずステップ55−10−1にお
いて現在登録されているブロック数RBLOCKSが0
であるか否かを判定し条件を満たす場合は、ステップ5
5−10−2に移行し、条件を満たさない場合はステッ
プ55−10−4に進む。現在登録されているデータ・
ブロックがひとつも存在しない場合は前記イニシャライ
ズ動作ステップSlで設定した様に最初に受信登録され
るデータ・ブロックに与えるブロック・インデックスに
デフォルト値として“1”を与えるべくステップ55−
10−2でブロック・インデックス“1nのデータ・ブ
ロックのスタート・アドレスBLOCKADR(1)に
受信バッファのスタート・アドレスMEMSTAを設定
し、ステップ55−10−3で次に受信されるデータ・
ブロックに与えるブロック・インデックスRBLOCK
Iに1を格納する。一方ステップ55−101の判定で
現在登録されているデータ・ブロックがいくつか存在す
る場合は前記受信動作ステップS3での次ブロック・イ
ンデックス設定ステップ53−9のフローに従って制御
が進められる。まずステップ55−10−4で候補とな
る未使用のブロック・インデックスXの初期値として“
l”を代入する。その後ステップ55−10−5におい
てブロック・インデックスXのデータ・ブロックが現在
登録済みか否かをそのサイズであるところのBLOCK
SIZ(X)がOかどうかによって判定する。0の場合
はブロック・インデックスXのデータ・ブロックは未登
録であるとみなしステップ55−10−7へ進む。
As shown in FIG. 53, first, in step 55-10-1, the currently registered block number RBLOCKS is 0.
If the condition is satisfied, step 5
The process moves to step 5-10-2, and if the condition is not satisfied, the process moves to step 55-10-4. Currently registered data/
If there is no block, step 55-- in order to give "1" as a default value to the block index given to the data block to be registered for reception first, as set in the initialization operation step Sl.
In step 55-10-2, the start address MEMSTA of the receive buffer is set to the start address BLOCKADR(1) of the data block with block index "1n," and in step 55-10-3, the next received data
Block index RBLOCK given to the block
Store 1 in I. On the other hand, if it is determined in step 55-101 that there are several currently registered data blocks, control proceeds according to the flow of the next block index setting step 53-9 in the receiving operation step S3. First, in step 55-10-4, as the initial value of the candidate unused block index
Then, in step 55-10-5, it is determined whether the data block with block index
Determination is made based on whether SIZ(X) is O. If it is 0, it is assumed that the data block with block index X is unregistered, and the process proceeds to step 55-10-7.

一方Oで無かった場合はブロック・インデックスXのデ
ータ・ブロックは現在登録されている訳であるからステ
ップ55−10−6へ進み、候補となるブロック・イン
デックスXにlを加えた後再びステップ55−10−5
の判定を繰り返す。この方法において使用されていない
ブロック・インデックスは前記データ・ブロック消去ス
テップ55−8によって少なくともひとつは存在するの
で必ず未登録のデータ・ブロックに対するブロック・イ
ンデックスXが得られる。このようにして未使用のブロ
ック・インデックスXが見つかるとステップS 5−1
0−7で現在受信バッファに登録されているいくつかの
データ・ブロックのなかで、受信順番で最後のデータ・
ブロックに対応するブロック・インデックスyを得るた
めに、受信順テーブルのRBLOCKS番目の領域RB
LOCKSEQ (RBLOCKS)の内容を読み出す
。続くステップ55−10−8で未登録のブロック・イ
ンデックスXのデータ・ブロックノスタート・アトL/
スBLOCKADR(x)l、:最後に受信登録された
ブロック・インデックスyのデータ・ブロックのスター
ト・アドレスBLOCKADR(y)とそのサイズBL
OCKSIZ (y)の和を設定する。すなわち、 BLOCKADH(x)←BLOCKADR(y) +
BLOCKSIZ (y〕の操作を行なう。この後ステ
ップ55−10−9で次に受信されるデータ・ブロック
に与えるブロック・インデックスRBLOCKIにXを
格納する。
On the other hand, if it is not O, the data block with the block index -10-5
Repeat the judgment. In this method, since at least one unused block index exists due to the data block erasing step 55-8, a block index X for an unregistered data block is always obtained. If an unused block index X is found in this way, step S5-1
0-7, the last data block in reception order among several data blocks currently registered in the reception buffer.
In order to obtain the block index y corresponding to the block, the RBLOCKSth region RB of the reception order table is
Read the contents of LOCKSEQ (RBLOCKS). In the following step 55-10-8, the data block no start at L/of the unregistered block index
BLOCKADR(x)l: Start address BLOCKADR(y) of the data block with block index y that was last registered for reception and its size BL
OCKSIZ Set the sum of (y). That is, BLOCKADH(x)←BLOCKADR(y) +
The operation BLOCKSIZ (y) is performed. Thereafter, in step 55-10-9, X is stored in the block index RBLOCKI to be given to the next received data block.

ステップ55−10−3あるいはステップ55−10−
9のいずれかにおいて新たにコンピュータから受信する
データ・ブロックのブロック・インデックスRBLOC
KIが設定されたら再びステップ55−1に戻り、登録
済みのデータ・ブロックの総数がOでない限りデータ・
ブロックの消去動作を繰り返す。
Step 55-10-3 or Step 55-10-
Block index RBLOC of a data block newly received from the computer in any of 9.
Once the KI is set, the process returns to step 55-1, and unless the total number of registered data blocks is O, the data block is
Repeat block erase operation.

前記ブロック・インデックス入力待ちステップ55−2
で全ブロック選択ボタン11が押下された場合、ステッ
プ55−4へ制御が移り、ここで点燈中の現在登録され
ているすべてのデータ・ブロックに対応するブロック・
インデックス表示ランプ18を点滅させ、ユーザーにす
べての登録されているデータ・ブロック現在消去の対象
として選択されていることを知らせる。
Waiting for block index input step 55-2
If the all block selection button 11 is pressed in step 55-4, the control moves to step 55-4, where the blocks corresponding to all currently registered data blocks that are lit are selected.
The index display lamp 18 is flashed to inform the user that all registered data blocks are currently selected for deletion.

第54図は第49図で示した全登録ブロック・インデッ
クス表示18点滅ステップ55−4での動作制御のフロ
ーチャートである。
FIG. 54 is a flowchart of operation control in step 55-4 of all registered block index display 18 blinking shown in FIG. 49.

フローは第54図に示すように受信順番を表わす便宜的
なカウンタ“m”を設はステップ55−4−1で初期値
として“1″を代入し、続くステップ55−4−2で受
信順デープルのm番目の領域RBLOCKSEQ(m)
の内容を読み出し、便宜的にXとしておく。
As shown in FIG. 54, the flow is such that a convenient counter "m" representing the reception order is set, "1" is assigned as an initial value at step 55-4-1, and the reception order is set at step 55-4-2. m-th area of the daple RBLOCKSEQ(m)
Read the contents of and set it as X for convenience.

つまり受信順番mのデータ・ブロックに対応するブロッ
ク・インデックスは又となる。ステップ554−3では
前記ステップ55−4−2で読み出されたブロック・イ
ンデックスXがOで無いことを判定する。もし0でなけ
ればステップ55−4−4に移行し点燈中のブロック・
インデックスXに対応するブロック・インデックス表示
ランプ18を点滅させ、ステップ55−4−5で受信順
番で次のデータ・ブロックを選択すべく受信順番mに1
を加えた後再びステップ55−4−2に制御を戻す。一
方、ステップ55−4−3の判定でOであった場合は受
信順テーブル内の有効データの終了を意味するのでステ
ップ55−4での動作を終了する。こうして現在登録さ
れているすべてのデータ・ブロックに対するブロック・
インデックス表示ランプ18を点滅させたら次にステッ
プS5−11に進む。
In other words, the block index corresponding to the data block of reception order m is MATA. In step 554-3, it is determined that the block index X read in step 55-4-2 is not O. If it is not 0, the process moves to step 55-4-4 and the lit block/
The block index display lamp 18 corresponding to index
After adding , control is returned to step 55-4-2. On the other hand, if the determination in step 55-4-3 is O, it means that the valid data in the reception order table has ended, and therefore the operation in step 55-4 is ended. In this way, the block
After the index display lamp 18 is blinked, the process proceeds to step S5-11.

第55図は第49図で示した消去動作確認待ちステップ
S5−11での動作制御のフローチャートである。
FIG. 55 is a flowchart of the operation control at the erase operation confirmation waiting step S5-11 shown in FIG. 49.

ステップS5−11は消去動作確認待ち状態である。第
55図に示すように全ブロック選択ボタン11又はクリ
ア・ボタン5のいずれかが押下されるまで待機している
。全ブロック選択ボタン11が押下された場合は(ステ
ップ55−1l−1)、すべてのデータ・ブロックに対
する消去動作のキャンセル指示とみなしステップS5−
12に移行し、クリア・ボタン5が押下された場合は(
ステップ55−1l−2)、すべてのデータ・ブロック
に対する消去動作の実行指示とみなしステップS5−1
3へ移行する。
Step S5-11 is a wait state for confirming the erase operation. As shown in FIG. 55, the process waits until either the all block selection button 11 or the clear button 5 is pressed. If the all block selection button 11 is pressed (step 55-1l-1), this is regarded as an instruction to cancel the erase operation for all data blocks, and step S5-
12 and if clear button 5 is pressed (
Step 55-1l-2) is regarded as an instruction to execute an erase operation for all data blocks, and step S5-1
Move to 3.

第56図は第49図で示した全登録ブロック・インデッ
クス表示18点燈ステップS5−12での動作制御のフ
ローチャートである。
FIG. 56 is a flowchart of the operation control in step S5-12 for displaying all registered blocks and indexes 18 shown in FIG. 49.

ステップS5−12では点滅中の現在登録されているす
べてのデータ・ブロックに対応するブロック・インデッ
クス表示ランプ18を点燈させ、ユーザーにいかなるデ
ータ・ブロックも消去の対象にされていないことを知ら
せる。ここでのフローは前記全登録ブロック・インデッ
クス表示点滅ステップ55−4のものと基本的に同様で
、第56図に示すように受信順番mに初期値“1“を代
入しくステップ55−12−1)、受信順番mのデータ
・ブロックに対応するブロック・インデックスXを読み
出しく55−12−2)、そのブロック・インデックス
Xが0で無いことを確認しくステップ55−12−3)
、0で無ければ点滅中のブロック・インデックスXに対
応するブロック・インデックス表示ランプ18を点燈さ
せ(ステップ55−12−4)、受信順番mに1を加え
た後(ステップ55−12−5)、再びステップ55−
12−2に戻る。一方ステップ55−12−3の判定で
Oであった場合はステップS5−12での動作を終了す
る。こうして現在登録されているすべてのデータ・ブロ
ックに対するブロック・インデックス表示ランプ18が
再び点燈されたら再度ブロック・インデックス入力待ち
ステップ55−2に制御を戻す。
In step S5-12, the blinking block index display lamps 18 corresponding to all currently registered data blocks are lit to inform the user that no data blocks are targeted for erasure. The flow here is basically the same as that of the all registered block index display blinking step 55-4, and as shown in FIG. 56, the initial value "1" is substituted for the reception order m. 1) Read the block index X corresponding to the data block of reception order m 55-12-2), and check that the block index X is not 0 Step 55-12-3)
, if it is not 0, the block index display lamp 18 corresponding to the blinking block index ), again step 55-
Return to 12-2. On the other hand, if the determination in step S55-12-3 is O, the operation in step S5-12 is ended. When the block index display lamps 18 for all currently registered data blocks are lit again, control is returned to step 55-2 for waiting for block index input.

消去動作確認待ち状態ステップS5−11においてクリ
ア・ボタン5が押下された場合にはS5−13に制御が
移り、ここで現在登録されているすべてのデータ・ブロ
ックに対する消去が行なわれる。
When the clear button 5 is pressed in the erase operation confirmation waiting state step S5-11, control moves to S5-13, where all currently registered data blocks are erased.

第57図は第49図で示した全データ・ブロック消去S
5−13での動作制御のフローチャートである。ここで
は第57図に示すように、まずステップ55−13−1
ですべての受信順テーブルの領域RBLOCKSEQ 
(1)〜RBLOCKSEQ (20)を0でクリアす
る。次にこの消去動作によってバッファ・フル状態が回
避されるのか否かを判定するためにステップ55−13
−2で現在の残受信バッファ量RREMが0以上である
か否かを判定する。
Figure 57 shows the all data block erase S shown in Figure 49.
5-13 is a flowchart of operation control. Here, as shown in FIG. 57, first step 55-13-1
area RBLOCKSEQ of all reception order tables in
(1) - Clear RBLOCKSEQ (20) with 0. Step 55-13 is then performed to determine whether this erase operation avoids a buffer full condition.
-2, it is determined whether the current remaining reception buffer amount RREM is 0 or more.

条件を満たす場合はこの消去動作の前もバッファ・フル
状態で無い訳であるからステップ55−13−6に進む
。条件を満たさない場合はこの消去動作によってバッフ
ァ・フル状態から回避される訳であるから、ステップ5
5−13−3へ進みここで対コンピュータ制御信号線−
ERRORCをステップ55−13−4で対コンピュー
タ制御信号線PECをそれぞれネゲートすることにより
コンピュータに当該プリンタ・バッファが“紙なし状態
”を回避したことを知らせ、さらにステップ55−13
5で点燈中のバッファ・フル表示ランプ16を消煙させ
、ユーザーにバッファ・フル状態で無くなったことを知
らせた後ステップ55−13−6へ進む。ステップ55
−13−6では残受信バッファ量RREMをイニシャル
時同様にバッファ空状態すなわち受信バッファのサイズ
UMEMの内容を代入する。続くステップ55−13−
7では残受信バッファ量RREMの受信バッファのサイ
ズUMEMに対する割合として“100%”を残バッフ
ァ/未送信データ容量表示ランプ17に表示する。ステ
ップ55−13−8でバッファ空表示ランプ15を点燈
させた後ステップ55−13−9ですべてのデータ・ブ
ロックのサイズBLOCKSIZ (1)〜BLOCK
SIZ〔20〕をOでクリアする。続くステップ55−
13−10で登録済ブロック数RBLOCKSをOでク
リアしてこの全データ・ブロック消去ステップS5−1
3は終了しステップS5−14へ移行する。
If the conditions are met, the buffer is not in a full state even before this erase operation, so the process advances to step 55-13-6. If the conditions are not met, this erase operation will avoid the buffer full state, so step 5
Proceed to 5-13-3 and here the computer control signal line-
In step 55-13-4, the computer control signal line PEC is negated to notify the computer that the printer buffer has avoided the "out of paper condition", and further in step 55-13.
At step 5, the lit buffer full indicator lamp 16 is extinguished to notify the user that the buffer is no longer full, and then the process proceeds to step 55-13-6. Step 55
-13-6, the content of the empty buffer state, that is, the size of the receive buffer UMEM, is substituted for the remaining receive buffer amount RREM, as in the initial case. Subsequent step 55-13-
At 7, "100%" is displayed on the remaining buffer/unsent data capacity display lamp 17 as a ratio of the remaining receiving buffer amount RREM to the receiving buffer size UMEM. After turning on the buffer empty indicator lamp 15 in step 55-13-8, in step 55-13-9 all data block sizes BLOCKSIZ (1) to BLOCK are set.
Clear SIZ [20] with O. Subsequent step 55-
At step 13-10, the number of registered blocks RBLOCKS is cleared with O, and all data blocks are erased step S5-1.
Step 3 is completed and the process moves to step S5-14.

ステップS5−14ではすべてのブロック・インデック
ス表示ランプ18を消煙させ、ユーザーにすべてのデー
タ・ブロックが消去されたことを知らせた後、前記次ブ
ロック・インデックス設定ステップS 5−10へ進む
In step S5-14, all block index display lamps 18 are extinguished to notify the user that all data blocks have been erased, and then the process proceeds to the next block index setting step S5-10.

ステップS5−10では前述したように今後再び受信動
作ステップS3が行なわれる場合に備えて次にコンピュ
ータから受信されるデータ・ブロックに与えるブロック
・インデックスRBLOCKIの設定を行なう。ただし
この場合現在登録されているデータ・ブロックはひとつ
も存在しないので第53図に示すようにRBLOCKI
にデフォルト値“l”が設定され(ステップ55−1O
−3)またブロック・インデックス“l”のデータ・ブ
ロックのスタート・アドレスBLOCKADH(1)に
受信バッファのスタート・アドレスMEMSTAが設定
される(ステップ55−1O−2)。
In step S5-10, as described above, a block index RBLOCKI to be given to the next data block to be received from the computer is set in preparation for the case where the receiving operation step S3 is performed again in the future. However, in this case, there is no currently registered data block, so as shown in Figure 53, RBLOCKI
is set to the default value “l” (step 55-1O
-3) Also, the start address MEMSTA of the receive buffer is set to the start address BLOCKADH(1) of the data block with block index "1" (step 55-1O-2).

その後ステップ55−1に移行して登録ブロック数の判
定が行なわれるがこの場合現在登録されているデータ・
ブロックはひとつも存在しないのでデータ・ブロックの
選択的クリア動作ステップS5を速やかに終了する。
Thereafter, the process moves to step 55-1, where the number of registered blocks is determined, but in this case, the currently registered data
Since there is no block, the data block selective clearing operation step S5 is immediately terminated.

以上がデータ・ブロックの選択的クリア動作ステップS
5のフローである。
The above is the data block selective clearing operation step S
This is the flow of step 5.

以上が本発明の実施例であるところのプリンタ・バッフ
ァの動作制御のフローである。
The above is the flow of operation control of the printer buffer according to the embodiment of the present invention.

(m)  以上説明してきた本発明の実施例であるとこ
ろのプリンタ・バッファにおいて対コンピュータ・ポー
ト27および対コンピュータ・ポート・コネクタ3から
なる対コンピュータ・インターフェイス、受信動作ステ
ップS3、対プリンタ・ポート26および対プリンタ・
ポート・コネクタ2からなる対プリンタ・インターフェ
イス、送信動作ステップS4、コンピュータのプリンタ
・ポート・コネクタと直接嵌合するハウジング形状であ
る対コンピュータ・ポート・コネクタ3、プリンタのコ
ンピュータ・ポート・コネクタと直接嵌合するハウジン
グ形状である対プリンタ・ポート・コネクタ2、さらに
電池で槽底される電源部21を設けることによって本装
置をコンピュータに装着し、コンピュータから送信され
たプリント出力データを受信および蓄積した後、本装置
を目的のプリンタに装着し直し、蓄積したプリント出力
データをプリンタに送信するといった簡単な操作で距離
的に離れたコンピュータとプリンタ間でプリント出力デ
ータの転送が可能になる。また複数のコンピュータに対
しても各コンピュータに順次装置することによって、1
つ又は複数のプリンタで出力することができる。
(m) In the printer buffer according to the embodiment of the present invention described above, a computer-to-computer interface consisting of a computer-to-computer port 27 and a computer-to-computer port connector 3, a receiving operation step S3, and a printer-to-printer port 26; and printer vs.
A printer-to-printer interface consisting of a port connector 2, a sending operation step S4, a computer-to-computer port connector 3 having a housing shape that directly fits into the computer's printer port connector, and a computer-to-computer port connector that directly fits into the printer's computer port connector. By providing a printer port connector 2 with a matching housing shape and a power supply section 21 powered by a battery, this device is attached to a computer, and after receiving and storing print output data sent from the computer. Print output data can be transferred between a computer and a printer that are separated by a simple operation such as reinstalling the device into the target printer and transmitting the accumulated print output data to the printer. Also, for multiple computers, by sequentially installing the device on each computer, one
You can output to one or more printers.

また受信動作ステップS3および主メモリ33上に設け
られた制御パラメータ・テーブル等を設けることによっ
てコンピュータから送信されるプリント出力データをブ
ロック毎に受信することによって上述したようにユーザ
ーの裁量で自由に組み合わせて(ブロッキングして)処
理および管理を容易に行うことが可能になる。
In addition, by providing a receiving operation step S3 and a control parameter table provided on the main memory 33, print output data transmitted from the computer can be received block by block, and can be freely combined at the user's discretion as described above. (blocking) to facilitate processing and management.

しかもブロック・インデックス表示ランプ18およびブ
ロック・インデックス(i)表示ランプ18点滅ステッ
プ53−5を設けることによってユーザーの裁量で自由
に組み合わせて(ブロッキングして)受信中のプリント
出力データ(データ・ブロック)に対応するブロック・
インデックスを容易に確認することが可能になる。
Moreover, by providing the block index display lamp 18 and the block index (i) display lamp 18 blinking step 53-5, the print output data (data blocks) being received can be freely combined (blocked) at the user's discretion. Blocks corresponding to
It becomes possible to easily check the index.

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

以上説明したように本発明によれば、本装置をデータ送
出装置に装着し、データ送出装置から送信されたデータ
を受信および蓄積した後、本装置を目的のデータ受入装
置に装着し直し、蓄積したデータをデータ受入装置に送
信するといった簡単な操作で、距離的に離れたデータ送
出装置とデータ受入装置間でデータの転送が可能になる
。しかも複数のデータ送出装置からのデータを1つ又は
複数のデータ受入装置に送信することも可能になる。
As explained above, according to the present invention, this device is attached to a data sending device, and after receiving and accumulating data transmitted from the data sending device, the device is attached again to a target data receiving device, and the data is stored. Data can be transferred between a data sending device and a data receiving device that are separated by a distance by a simple operation such as transmitting the data to the data receiving device. Moreover, it is also possible to transmit data from a plurality of data sending devices to one or more data receiving devices.

データ送出装置から送信されるアウトプット・データを
ユーザーの裁量で自由に組み合わせて(ブロツキングし
て)処理および管理することが容易になるとともに、受
信中のアウトプット・データ(データ・ブロック)に対
応するブロック・インデックスを容易に確認することが
可能になる。
It is easy to process and manage the output data sent from the data sending device by freely combining (blocking) it at the user's discretion, and it also supports the output data (data blocks) being received. This makes it possible to easily check the block index.

(以下余白)(Margin below)

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

第1図は本発明の実施例のプリンタ・バッファの外観図
、 第2図は本発明の実施例のプリンタ・バッファの平面図
、 第3図は本発明の実施例のプリンタ・バッファのブロッ
ク図、 第4図は本発明の実施例のプリンタ・バッファの使用形
態を表わした図、 第5図は本発明の実施例のプリンタ・バッファの各ポー
トにおけるデータおよび制御信号線の取扱いを表わした
図、 第6図は本発明の実施例のプリンタ・バッファにおける
データ・ブロックの概念図、 第7図は本発明の実施例のプリンタ・バッファにおける
主メモリ33の内容を表わし゛た図、第8図は制御パラ
メータ・テーブルの構成の概要図、 第9図は第8図で示した環境テーブルの構成図、第1O
図は対コンピュータ・ポートの制御信号線のイニシャル
状態5TATEのビット構成図、第11図は第8図で示
したブロック登録テーブルの構成図、 第12図は第8図で示した受信順テーブルの内容を表わ
した図、 第13図は第8図で示した送信順テーブルの内容を表わ
した図、 第14図は本発明の実施例のプリンタ・バッファにおけ
る動作制御の概略図、 第16図は第14図で示したアイドル状態ステップS2
での動作制御のフローチャート、第17図は第14図で
示した受信動作ステップS3での動作制御の概略図、 第18図は第17図で示した受信動作条件判定ステップ
53−1での動作制御のフローチャート、第19図は第
17図で示した開始バイト受信ステップ53−3での動
作制御のフローチャート、第20図は第17図で示した
データ・ブロック受信ステップ53−7での動作制御の
フローチャート、 第21図は第17図で示した受信データ・ブロック登録
ステップ53−8での動作制御のフローチャート、 第22図は第17図で示した次ブロック・インデックス
設定ステップ53−9での動作制御のフローチャート、 第23図は第17図で示した受信データ・ブロック消去
ステップS3−10での動作制御のフローチャート、 第24図は第17図で示した指示待ちステップS3−1
2での動作制御のフローチャート、第25図は第17図
で示した受信データ・ブロック登録ステップS3−14
での動作制御のフローチャート、 第26図は第17図で示した次ブロック・インデックス
設定ステップS3−15での動作制御のフローチャート
、 第27図は第17図で示した受信データ・プロツり消去
ステップS3−16での動作制御のフローチャート、 第28図は第17図で示した指示待ちステップS3−1
7での動作制御のフローチャート、第29図は第17図
で示したバッファ・フル状態通知ステップS3−19で
の動作制御のフローチャート、 第30図は第17図で示した指示待ちステップS3−2
0での動作制御のフローチャート、第31図は第17図
で示した受信データ・ブロック登録ステップS3−21
での動作制御のフローチャート、 第32図は第17図で示した次ブロック・インデックス
設定ステップS3−22での動作制御のフローチャート
、 第33図は第17図で示したバッファ・フル状態通知停
止ステップS3−23での動作制御のフロー制御の概略
図、 第35図は、第34図で示した送信動作条件判定ステッ
プ54−1での動作制御のフローチャート、第36図は
第34図で示した送信動作準備ステップ54−2での動
作制御のフローチャート、第37図は第34図で示した
送信ブロック選択入力待ちステップ54−3での動作制
御のフローチャート、 第38図は第34図で示した送信順テーブル消去ステッ
プ54−4での動作制御のフローチャート、第39図は
第34図で示した送信選択ブロック判定ステップ54−
5での動作制御のフローチャート、 第40図は第34図で示した送信選択ブロック登録ステ
ップ54−6での動作制御のフローチャート、 第41図は第34図で示した全ブロック登録ステップ5
4−7での動作制御のフローチャート、第42図は第1
4図で示した送信動作開始ステップ54−9での動作制
御のフローチャート、第43図は第34図で示したデー
タ・ブロック送信ステップS4−10での動作制御のフ
ローチャート、 第44図は第34図で示した次ブロツク選択ステップS
4−12での動作制御のフローチャート、第45図は第
34図で示した送信動作中断入力待ちステップS4−1
3での動作制御のフローチャート、 第46図は第34図で示した再送信準備ステップS4−
14での動作制御のフローチャート、第47図は第34
図で示した送信中断入力待ちステップS4−15での動
作制御のフローチャート、第48図は第34図で示した
送信中止ステップS4−17での動作制御のフローチャ
ート、第49図は第14図で示したデータ・ブロックの
選択的クリア動作ステップS5での動作制御の概略図、 第50図は第49図で示したブロック・インデックス入
力待ちステップ55−2での動作制御のフローチャート
、 第51図は第49図で示した消去動作確認待ちステップ
55−6での動作制御のフローチャート、第52図は第
49図で示したデータ・ブロック消去ステップ55−8
での動作制御のフローチャート、 第53図は第49図で示した次ブロック・インデックス
設定ステップS5−10での動作制御のフローチャート
、 第54図は第49図で示した全登録ブロック・インデッ
クス表示18点滅ステップ55−4での動作制御のフロ
ーチャート、 第55図は第49図で示した消去動作確認待ちステップ
S5−11での動作制御のフローチャート、第56図は
第49図で示した全登録ブロック・インデックス表示1
8点燈ステップS5−12での動作制御の フローチャ
ート、 第57図は第49図で示した全データ・ブロック消去ス
テップS5−13での動作制御のフローチャート、 第58図は一般的なコンピュータとプリンタ間のデータ
送受のための信号線を表わした図、第59図は一般的な
コンピュータとプリンタ間のデータ送受のための主要信
号線のタイミングチャート、 第60図は一般的なコンピュータとプリンタ間のデータ
送受のためのコンピュータ側におけるプリント出力デー
タの送信動作のフローチャート、第61図は一般的なコ
ンピュータとプリンタ間のデータ送受のためのプリンタ
側におけるプリント出力データの受信動作のフローチャ
ート、第62図は従来のプリンタ・バッファ装置の使用
形態を表わした図、 第63図は従来のプリンタ・バッファ装置におけるプリ
ント出力データの送受信動作のフローチャートである。 1はプリンタ・バッファ本体、 2は対プリンタ・ボート・コネクタ、 3は対コンピュータ・ボート・コネクタ、4はリセット
・ボタン、 5はクリア・ボタン、 6は受信開始/終了ボタン、 7は受信中断ボタン、 8は送信開始/終了ボタン、 9は送信中断ボタン、 10はブロック・インデックス・ボタン、11は全ブロ
ック選択ボタン、 12は電源インジケータ・ランプ、 13は受信中表示ランプ、 14は送信中表示ランプ、 15はバッファ空表示ランプ、 16はバッファ・フル表示ランプ、 17は残バッファ/未送信データ容量表示ランプ、18
はブロック・インデックス表示ランプ、19は電源スィ
ッチ、 21は電源部、 22はCPU。 26は対プリンタ・ボート、 27は対コンピュータ・ボート、 29は入カバネル、 31は表示パネル、 33は主メモリである。 旬掲rパラメータ・子−フ゛°)シ フ ・ ・ ・ ・ 21 S丁ATE     Unde干iハe1   ^トD
X丁  5L丁N侵イ言順テープ7し 諌翳ち1・面テニフ゛)し ↓目は−ひにT−(77六)” 2 二5ミ3−72: S3J’7 L=                Jさダーゴ 鉾−ケ 第4θ図 、S′4−/3 55−2 S5−乙 1色56じ召
FIG. 1 is an external view of a printer buffer according to an embodiment of the present invention, FIG. 2 is a plan view of a printer buffer according to an embodiment of the present invention, and FIG. 3 is a block diagram of a printer buffer according to an embodiment of the present invention. , FIG. 4 is a diagram showing how the printer buffer is used in the embodiment of the present invention, and FIG. 5 is a diagram showing the handling of data and control signal lines at each port of the printer buffer in the embodiment of the present invention. , FIG. 6 is a conceptual diagram of data blocks in the printer buffer according to the embodiment of the present invention, FIG. 7 is a diagram showing the contents of the main memory 33 in the printer buffer according to the embodiment of the present invention, and FIG. The figure is a schematic diagram of the configuration of the control parameter table. Figure 9 is a diagram of the configuration of the environment table shown in Figure 8.
The figure is a bit configuration diagram of the initial state 5TATE of the control signal line of the computer port, Figure 11 is a configuration diagram of the block registration table shown in Figure 8, and Figure 12 is a diagram of the reception order table shown in Figure 8. FIG. 13 is a diagram showing the contents of the transmission order table shown in FIG. 8, FIG. 14 is a schematic diagram of operation control in the printer buffer according to the embodiment of the present invention, and FIG. 16 is a diagram showing the contents of the transmission order table shown in FIG. 8. Idle state step S2 shown in FIG.
17 is a schematic diagram of the operation control in the receiving operation step S3 shown in FIG. 14, and FIG. 18 is a flowchart of the operation control in the receiving operation condition determination step 53-1 shown in FIG. 17. Flowchart of control; FIG. 19 is a flowchart of operation control in the start byte reception step 53-3 shown in FIG. 17; FIG. 20 is a flowchart of operation control in the data block reception step 53-7 shown in FIG. 17. 21 is a flowchart of the operation control in the received data block registration step 53-8 shown in FIG. 17, and FIG. 22 is a flowchart of the operation control in the next block index setting step 53-9 shown in FIG. 17. Flowchart of operation control. FIG. 23 is a flowchart of operation control in the received data block erasing step S3-10 shown in FIG. 17. FIG. 24 is a flowchart of operation control in the instruction waiting step S3-1 shown in FIG. 17.
25 is a flowchart of the operation control in step 2, and FIG. 25 shows the received data block registration step S3-14 shown in FIG.
26 is a flowchart of operation control in the next block index setting step S3-15 shown in FIG. 17. FIG. 27 is a flowchart of operation control in the next block index setting step S3-15 shown in FIG. Flowchart of operation control in S3-16, FIG. 28 shows the instruction waiting step S3-1 shown in FIG.
7, FIG. 29 is a flowchart of operation control at buffer full status notification step S3-19 shown in FIG. 17, and FIG. 30 is a flowchart of operation control at step S3-2 for waiting for instructions shown in FIG.
FIG. 31 is a flowchart of operation control at step 0, and FIG. 31 shows the received data block registration step S3-21 shown in FIG. 17.
32 is a flowchart of operation control in the next block index setting step S3-22 shown in FIG. 17. FIG. 33 is a flowchart of operation control in the next block index setting step S3-22 shown in FIG. A schematic diagram of the flow control of the operation control in S3-23, FIG. 35 is a flowchart of the operation control in the transmission operation condition determination step 54-1 shown in FIG. 34, and FIG. 37 is a flowchart of the operation control in the transmission operation preparation step 54-2, FIG. 37 is a flowchart of the operation control in the transmission block selection input waiting step 54-3 shown in FIG. 34, and FIG. A flowchart of operation control in the transmission order table erasing step 54-4, FIG. 39 shows the transmission selection block determination step 54- shown in FIG.
FIG. 40 is a flowchart of operation control at transmission selection block registration step 54-6 shown in FIG. 34; FIG. 41 is a flowchart of operation control at step 54 of registering all blocks shown in FIG.
The flowchart of the operation control in 4-7, Fig. 42 is the 1st
4 is a flowchart of the operation control at the transmission operation start step S4-9 shown in FIG. 4, FIG. 43 is a flowchart of the operation control at the data block transmission step S4-10 shown in FIG. Next block selection step S shown in the figure
4-12, the flowchart of the operation control in FIG. 45 is the transmission operation interruption input waiting step S4-1 shown in FIG. 34.
The flowchart of the operation control in step 3, FIG. 46, is the retransmission preparation step S4- shown in FIG. 34.
The flowchart of operation control in 14, FIG. 47 is the flowchart of operation control in 34
48 is a flowchart of the operation control in the transmission abort step S4-17 shown in FIG. 34, and FIG. 50 is a flowchart of the operation control in the block index input waiting step 55-2 shown in FIG. 49; FIG. A flowchart of operation control at the erase operation confirmation waiting step 55-6 shown in FIG. 49, and FIG. 52 is a flowchart of the operation control at the data block erase step 55-8 shown in FIG.
53 is a flowchart of operation control in the next block index setting step S5-10 shown in FIG. 49. FIG. 54 is a flowchart of operation control in the next block index setting step S5-10 shown in FIG. A flowchart of the operation control at the blinking step 55-4, FIG. 55 is a flowchart of the operation control at the erase operation confirmation waiting step S5-11 shown in FIG. 49, and FIG. 56 is a flowchart of the operation control at the erase operation confirmation waiting step S5-11 shown in FIG. 49.・Index display 1
A flowchart of the operation control in the 8-point light step S5-12, FIG. 57 is a flowchart of the operation control in the all data block erase step S5-13 shown in FIG. 49, and FIG. Figure 59 is a timing chart of the main signal lines for data transmission and reception between a general computer and a printer, and Figure 60 is a diagram showing the signal lines for data transmission and reception between a general computer and a printer. FIG. 61 is a flowchart of the print output data transmission operation on the computer side for data transmission and reception. FIG. 62 is a flowchart of the print output data reception operation on the printer side for data transmission and reception between a general computer and printer. FIG. 63 is a flowchart of the print output data transmission/reception operation in the conventional printer/buffer device. 1 is the printer buffer body, 2 is the printer boat connector, 3 is the computer boat connector, 4 is the reset button, 5 is the clear button, 6 is the reception start/end button, 7 is the reception interrupt button , 8 is the transmission start/end button, 9 is the transmission interrupt button, 10 is the block index button, 11 is the all block selection button, 12 is the power indicator lamp, 13 is the receiving indicator lamp, 14 is the transmitting indicator lamp , 15 is a buffer empty indicator lamp, 16 is a buffer full indicator lamp, 17 is a remaining buffer/unsent data capacity indicator lamp, 18
is the block index display lamp, 19 is the power switch, 21 is the power supply section, and 22 is the CPU. 26 is a printer board, 27 is a computer board, 29 is an input panel, 31 is a display panel, and 33 is a main memory. Parameter ・ Child - ゛ °) Shift ・ ・ ・ ・ 21
X D 5 L D D N Invasion Order Tape 7, Scroll 1, Surface Tenifi Hoko-ke 4theta figure, S'4-/3 55-2 S5-Otsu 1 color 56 ji

Claims (4)

【特許請求の範囲】[Claims] (1)データ送出装置のコネクタに直接嵌合可能な第1
コネクタと、 データ受入装置のコネクタに直接嵌合可能な第2コネク
タと、 データを蓄積する蓄積手段とを含み、 前記データ送出装置のコネクタと前記第1コネクタとを
嵌合した状態でデータ送出装置から第1コネクタを介し
て入力されたデータを蓄積手段に蓄積する機能と、 前記データ受入装置のコネクタと前記第2コネクタとを
嵌合した状態で蓄積手段に蓄積されているデータを第2
コネクタを介してデータ受入装置に送信する機能とを有
することを特徴とするデータ・バッファ装置。
(1) The first part that can be directly fitted to the connector of the data transmission device
A data transmitting device including a connector, a second connector that can be directly fitted to a connector of a data receiving device, and an accumulation means for accumulating data, and in a state where the connector of the data transmitting device and the first connector are fitted together. a function of accumulating data input through a first connector in an accumulating means;
A data buffer device characterized by having a function of transmitting data to a data receiving device via a connector.
(2)データ送出装置から送信されるデータを受信する
ための対データ送出装置インターフェイスと、前記デー
タ送出装置から送信されるデータを前記対データ送出装
置インターフェイスを通じて受信して蓄積する蓄積手段
と、 データ受入装置にデータを送信するための対データ受入
装置インターフェイスと、 前記蓄積手段に蓄積されたデータを、前記対データ受入
装置インターフェイスを通じてデータ受入装置に送信す
る手段と、 前記対データ送出装置インターフェイスのコネクタであ
ってデータ送出装置の送信部のコネクタと直接嵌合する
ハウジング形状である第1コネクタと、 前記対データ受入装置インターフェイスのコネクタであ
ってデータ受入装置の受信部のコネクタと直接嵌合する
ハウジング形状である第2コネクタと、 蓄積手段のデータをバックアップし、電池により構成さ
れる電源部とを具備することを特徴とするデータ・バッ
ファ装置。
(2) a data transmission device interface for receiving data transmitted from the data transmission device; and storage means for receiving and accumulating data transmitted from the data transmission device through the data transmission device interface; a data receiving device interface for transmitting data to the receiving device; means for transmitting the data accumulated in the storage means to the data receiving device through the data receiving device interface; and a connector for the data sending device interface. a first connector having a housing shape that directly fits with the connector of the transmitting section of the data sending device; and a housing that is the connector of the data receiving device interface and directly fits with the connector of the receiving section of the data receiving device. What is claimed is: 1. A data buffer device comprising: a second connector having a similar shape; and a power supply unit configured with a battery and backing up data in storage means.
(3)前記データ送出装置からブロック単位に送出され
たデータを受信するとともに、受信したデータをブロッ
ク毎に、ブロック識別データであるブロック・インデッ
クスと対応させて前記蓄積手段に蓄積させる手段を設け
たことを特徴とする請求項第1項又は第2項記載のデー
タ・バッファ装置。
(3) Means is provided for receiving data sent out in blocks from the data sending device, and for storing the received data in the storage means in association with a block index, which is block identification data, for each block. 3. A data buffer device according to claim 1 or 2, characterized in that:
(4)受信中のデータを含むブロックに対応する前記ブ
ロック・インデックスを表示する手段を具備することを
特徴とする請求項第3項記載のデータ・バッファ装置。
4. The data buffer device according to claim 3, further comprising means for displaying the block index corresponding to the block containing the data being received.
JP1315065A 1989-12-04 1989-12-04 Data buffer device Pending JPH03175064A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP1315065A JPH03175064A (en) 1989-12-04 1989-12-04 Data buffer device
US08/218,831 US5729708A (en) 1989-12-04 1994-03-28 Portable data buffer apparatus with manually controlled reception/transmission
US08/506,402 US5687396A (en) 1989-12-04 1995-07-24 Data buffer apparatus with interrupted transmission/reception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1315065A JPH03175064A (en) 1989-12-04 1989-12-04 Data buffer device

Publications (1)

Publication Number Publication Date
JPH03175064A true JPH03175064A (en) 1991-07-30

Family

ID=18061012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1315065A Pending JPH03175064A (en) 1989-12-04 1989-12-04 Data buffer device

Country Status (1)

Country Link
JP (1) JPH03175064A (en)

Similar Documents

Publication Publication Date Title
CN101971154B (en) Method and system for determining state of I/O operation
CN102685350B (en) Image forming apparatus
EP2849078A1 (en) Electronic device, control method of electronic device, and image forming apparatus
US11509778B2 (en) Communication system and printing apparatus
CN101339541B (en) DMA data-transmission method and DMA controller
JP2008211327A (en) Information processing device
JP2008271215A (en) Usb hub
US5729708A (en) Portable data buffer apparatus with manually controlled reception/transmission
JPH03175064A (en) Data buffer device
US6496901B1 (en) Mapping variable size data blocks into a fixed block structure
JP3305042B2 (en) Printing control device
CN110704341A (en) Device and method for upgrading code by serial port single line
CN103777909A (en) Data printing method and data printing system
JPH03175066A (en) Data buffer device
JPH03175069A (en) Data buffer device
JPS60232978A (en) Printer
JPH03175065A (en) Data buffer device
JPH03175068A (en) Data buffer device
JPH03175067A (en) Data buffer device
CA2309833A1 (en) Digital appliance data download device for data storage
EP0473017B1 (en) Printing apparatus
US20120311254A1 (en) Information processing apparatus and method of controlling the same
JP2738435B2 (en) Print data processing device
JP7319951B2 (en) Erasing method and erasing system
KR100271807B1 (en) Usb device and data structure