JPH03214228A - Control system for serial printer - Google Patents
Control system for serial printerInfo
- Publication number
- JPH03214228A JPH03214228A JP2009652A JP965290A JPH03214228A JP H03214228 A JPH03214228 A JP H03214228A JP 2009652 A JP2009652 A JP 2009652A JP 965290 A JP965290 A JP 965290A JP H03214228 A JPH03214228 A JP H03214228A
- Authority
- JP
- Japan
- Prior art keywords
- data
- processing
- reception buffer
- memory
- reset
- 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
Links
- 238000000034 method Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、シリアルプリンタの制御方式に関し、特に受
信したデータを大量に受信バッファメモリに蓄えておき
、それを順次読出して印字を行うシリアルプリンタの制
御方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a control system for a serial printer, and in particular to a serial printer that stores a large amount of received data in a reception buffer memory and sequentially reads and prints the received data. Regarding the control method.
従来のシリアルプリンタは、ホストコンピュータから受
信したデータを大量に受信バッファへ蓄えておき、それ
を順次読出して印字動作を行い、受信バッファ内のデー
タが無くなるまで印字動作を続けている。A conventional serial printer stores a large amount of data received from a host computer in a reception buffer, reads the data sequentially, performs a printing operation, and continues printing until there is no more data in the reception buffer.
上述したように従来のシリアルプリンタでは、印字動作
を途中で中断させるためにホストコンピュータからのデ
ータ送信を停止しても、プリンタの受信バッファ内にデ
ータが残っていて、そのデータの印字を完了するまでプ
リンタは印字動作を続けるため、印字に失敗したとき、
現在行っている印字を打切って別の文章を印字したいよ
うなときに非常に不便であるという欠点がある。As mentioned above, in conventional serial printers, even if data transmission from the host computer is stopped in order to interrupt the printing operation, the data remains in the printer's reception buffer and printing of that data is completed. Since the printer continues printing until
The drawback is that it is very inconvenient when you want to cancel the current printing and print another text.
一部のプリンタには、操作盤の操作によって停止できる
ものや、ホストコンピュータからのコマンドによってプ
リンタをデイセレクト状態としてデータの受信を停止す
る機能を有するものがあるが、ホストコンピュータから
のコマンドによって直ちにプリンタを停止してバッファ
をクリアできるものは存在しない。Some printers can be stopped by operating the operation panel, or have a function to put the printer in the day select state and stop receiving data by a command from the host computer. There is nothing that can stop the printer and clear the buffer.
本発明のシリアルプリンタの制御方式は、ホストコンピ
ュータからコマンドを受取って処理する処理部と、前記
処理部を動作させるためのプログラムを格納する読出し
専用メモリと、受信したデータを記憶する受信バッファ
メモリとを有するシリアルプリンタの制御方式において
、受信したデータを受信バッファへ蓄える前に受信デー
タがプリンタをリセットしてバッファをクリアするため
のリセットコマンドか否かを判別し、リセットコマンド
のときはプリンタを停止させてバッファの内容をクリア
する処理を他の処理よりも優先して行うことを含んでい
る。The control method for a serial printer of the present invention includes a processing unit that receives and processes commands from a host computer, a read-only memory that stores a program for operating the processing unit, and a reception buffer memory that stores received data. In a control method for a serial printer that has a function, before storing received data in the reception buffer, it is determined whether the received data is a reset command to reset the printer and clear the buffer, and if it is a reset command, the printer is stopped. This includes giving priority to processing to clear the contents of the buffer over other processing.
〔実施例〕 次に本発明の実施例について図面を参照して説明する。〔Example〕 Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例を示すフローチャー1・、第
2図は第1図の実施例を適用した装置の一例のブロック
図である。FIG. 1 is a flowchart 1 showing an embodiment of the present invention, and FIG. 2 is a block diagram of an example of an apparatus to which the embodiment of FIG. 1 is applied.
第】図および第2図に示すように、データを受信すると
、CPUIIは判別処理1を行って受信したデータがリ
セットコマンドか否かを判別する。リセットコマンドで
あれば、リセット処理2を行って受信バッファメモリ1
3内に格納しているデータの処理よりも優先して受信バ
ッファメモリ13のクリアと印字動作の停止とを行う。As shown in FIG. 1 and FIG. 2, when data is received, the CPU II performs determination processing 1 to determine whether or not the received data is a reset command. If it is a reset command, perform reset processing 2 and store reception buffer memory 1.
The receiving buffer memory 13 is cleared and the printing operation is stopped with priority over the processing of data stored in the memory 3.
受信したデータがリセットコマンドでないときは、デー
タを受信バッファメモリ13へ格納して通常の処理を行
う。これらの動作プロゲラl\はROM 12に格納し
ているプログラムを使用する。When the received data is not a reset command, the data is stored in the reception buffer memory 13 and normal processing is performed. These operating programs use programs stored in the ROM 12.
以上説明したように、本発明のシリアルプリンタの制御
方式は、他のコマンドとは別に特別なリセット専用コマ
ンドを設け、そのコマンドを受信した時点で直ちに受信
バッファメモリをクリアすると共に印字動作を停止させ
ることにより、受信バッファメモリに残ったデータの印
字の終了を待つことなく新しいデータの印字を行う動作
を、ホストコンピュータからのコマンドによって容易に
実現できるという効果がある。As explained above, the control method for the serial printer of the present invention provides a special reset-only command separately from other commands, and immediately clears the reception buffer memory and stops the printing operation when that command is received. This has the advantage that the operation of printing new data without waiting for the completion of printing of the data remaining in the reception buffer memory can be easily realized by a command from the host computer.
第1図は本発明の一実施例を示すフローチャート、第2
図は第1図の実施例を適用した装置の一例のブロック図
である。
1・・・判別処理、2・・・リセット処理、11・・・
CPU、12・・・R,OM、13・・・受信バッファ
メモリ。FIG. 1 is a flowchart showing one embodiment of the present invention, and FIG.
The figure is a block diagram of an example of an apparatus to which the embodiment of FIG. 1 is applied. 1...Discrimination processing, 2...Reset processing, 11...
CPU, 12...R, OM, 13... Reception buffer memory.
Claims (1)
処理部と、前記処理部を動作させるためのプログラムを
格納する読出し専用メモリと、受信したデータを記憶す
る受信バッファメモリとを有するシリアルプリンタの制
御方式において、受信したデータを受信バッファへ蓄え
る前に受信データがプリンタをリセットしてバッファを
クリアするためのリセットコマンドか否かを判別し、リ
セットコマンドのときはプリンタを停止させてバッファ
の内容をクリアする処理を他の処理よりも優先して行う
ことを含むことを特徴とするシリアルプリンタの制御方
式。In a control method for a serial printer, the serial printer has a processing unit that receives and processes commands from a host computer, a read-only memory that stores a program for operating the processing unit, and a reception buffer memory that stores received data. Before storing the received data in the reception buffer, it is determined whether the received data is a reset command to reset the printer and clear the buffer, and if it is a reset command, the printer is stopped and the contents of the buffer are cleared. A control method for a serial printer characterized by including performing processing with priority over other processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009652A JPH03214228A (en) | 1990-01-19 | 1990-01-19 | Control system for serial printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009652A JPH03214228A (en) | 1990-01-19 | 1990-01-19 | Control system for serial printer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03214228A true JPH03214228A (en) | 1991-09-19 |
Family
ID=11726148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009652A Pending JPH03214228A (en) | 1990-01-19 | 1990-01-19 | Control system for serial printer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03214228A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6975423B2 (en) | 1993-11-08 | 2005-12-13 | Seiko Epson Corporation | Printing apparatus and a control method therefor |
-
1990
- 1990-01-19 JP JP2009652A patent/JPH03214228A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6975423B2 (en) | 1993-11-08 | 2005-12-13 | Seiko Epson Corporation | Printing apparatus and a control method therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3385836B2 (en) | Print control device and print control method | |
JPH03214228A (en) | Control system for serial printer | |
US4709349A (en) | Method for maintaining display/print mode in display printer | |
US5630030A (en) | Output method and apparatus for a recording device | |
JP3179695B2 (en) | Image forming apparatus and control method thereof | |
JP3261233B2 (en) | Printing apparatus and processing method | |
JPH05309871A (en) | Control device of printer | |
JP2738696B2 (en) | Printing control device | |
JP3217485B2 (en) | Printing device | |
JPH024925B2 (en) | ||
JP2002373073A (en) | Printer | |
JPH08127166A (en) | Printing system | |
JP3250118B2 (en) | Printing device data management method | |
JP3027849B2 (en) | Printing device | |
JP3158693B2 (en) | Printer control device | |
JP3596974B2 (en) | Image forming device | |
JPH0537308Y2 (en) | ||
JPH0671978A (en) | Printer | |
JPH05138995A (en) | Printer | |
JPH0664252A (en) | Printing equipment having emulation mode | |
JPH07101111A (en) | Printer | |
JPH11170668A (en) | Image formation apparatus | |
JPS60104358A (en) | Character processing apparatus | |
JPS6316323A (en) | Printer interface controller | |
JPH01178473A (en) | Printer controller |