JPH03214228A - Control system for serial printer - Google Patents

Control system for serial printer

Info

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
Application number
JP2009652A
Other languages
Japanese (ja)
Inventor
Shuichi Oe
修一 大江
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2009652A priority Critical patent/JPH03214228A/en
Publication of JPH03214228A publication Critical patent/JPH03214228A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To print the new data before the data remaining in a reception buffer memory are printed by providing a reset-only command and clearing immediately the reception buffer memory at the reception of the command and simultaneously discontinuing the printing operation. CONSTITUTION:When the data are received, a CPU 11 performs the discrimination processing 1 to discriminate whether the received data are equal to a reset command or not. If so, the reset processing 2 is carried out and a reception buffer memory 13 is stopped in regard of its clearing and printing operations in preference to the processing of the data storing in the memory 13. If not, the received data are stored in the memory 13 and the normal processing is carried out. In this case, the action programs stored in a ROM 12 are used. In such a constitution, the new data can be printed before the data remaining in the memory 13 are printed.

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.

〔従来の技術〕[Conventional technology]

従来のシリアルプリンタは、ホストコンピュータから受
信したデータを大量に受信バッファへ蓄えておき、それ
を順次読出して印字動作を行い、受信バッファ内のデー
タが無くなるまで印字動作を続けている。
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.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように従来のシリアルプリンタでは、印字動作
を途中で中断させるためにホストコンピュータからのデ
ータ送信を停止しても、プリンタの受信バッファ内にデ
ータが残っていて、そのデータの印字を完了するまでプ
リンタは印字動作を続けるため、印字に失敗したとき、
現在行っている印字を打切って別の文章を印字したいよ
うなときに非常に不便であるという欠点がある。
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.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のシリアルプリンタの制御方式は、ホストコンピ
ュータからコマンドを受取って処理する処理部と、前記
処理部を動作させるためのプログラムを格納する読出し
専用メモリと、受信したデータを記憶する受信バッファ
メモリとを有するシリアルプリンタの制御方式において
、受信したデータを受信バッファへ蓄える前に受信デー
タがプリンタをリセットしてバッファをクリアするため
のリセットコマンドか否かを判別し、リセットコマンド
のときはプリンタを停止させてバッファの内容をクリア
する処理を他の処理よりも優先して行うことを含んでい
る。
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.

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

以上説明したように、本発明のシリアルプリンタの制御
方式は、他のコマンドとは別に特別なリセット専用コマ
ンドを設け、そのコマンドを受信した時点で直ちに受信
バッファメモリをクリアすると共に印字動作を停止させ
ることにより、受信バッファメモリに残ったデータの印
字の終了を待つことなく新しいデータの印字を行う動作
を、ホストコンピュータからのコマンドによって容易に
実現できるという効果がある。
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.

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

第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)

【特許請求の範囲】[Claims]  ホストコンピュータからコマンドを受取って処理する
処理部と、前記処理部を動作させるためのプログラムを
格納する読出し専用メモリと、受信したデータを記憶す
る受信バッファメモリとを有するシリアルプリンタの制
御方式において、受信したデータを受信バッファへ蓄え
る前に受信データがプリンタをリセットしてバッファを
クリアするためのリセットコマンドか否かを判別し、リ
セットコマンドのときはプリンタを停止させてバッファ
の内容をクリアする処理を他の処理よりも優先して行う
ことを含むことを特徴とするシリアルプリンタの制御方
式。
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.
JP2009652A 1990-01-19 1990-01-19 Control system for serial printer Pending JPH03214228A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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
JP3305042B2 (en) Printing control device
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
JPH01150568A (en) Printer device
JP2738696B2 (en) Printing control device
JP3217485B2 (en) Printing device
JPH0577525A (en) Printer having cancel function
JPH024925B2 (en)
JP2002373073A (en) Printer
JPH08127166A (en) Printing system
JP3027849B2 (en) Printing device
JPH06155820A (en) Data management system for printer
JP3158693B2 (en) Printer control device
JP3596974B2 (en) Image forming device
JPH05138995A (en) Printer
JPH0664252A (en) Printing equipment having emulation mode
JPH11170668A (en) Image formation apparatus
JPH04201471A (en) Controller of page printer
JPH05119938A (en) Printer
JPS60104358A (en) Character processing apparatus
JPS6316323A (en) Printer interface controller