JPH082742A - Printer - Google Patents

Printer

Info

Publication number
JPH082742A
JPH082742A JP13605594A JP13605594A JPH082742A JP H082742 A JPH082742 A JP H082742A JP 13605594 A JP13605594 A JP 13605594A JP 13605594 A JP13605594 A JP 13605594A JP H082742 A JPH082742 A JP H082742A
Authority
JP
Japan
Prior art keywords
paper
printer
computer
page
lines
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
JP13605594A
Other languages
Japanese (ja)
Inventor
Yasushi Kususe
康 楠瀬
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 JP13605594A priority Critical patent/JPH082742A/en
Publication of JPH082742A publication Critical patent/JPH082742A/en
Pending legal-status Critical Current

Links

Landscapes

  • Handling Of Cut Paper (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

PURPOSE:To provide a printer facilitating handling, on a computer side, when generated paper exhaustion, so that it can be quickly further regularly recognized and restarted, without wastefully using paper. CONSTITUTION:In a control part 4 in a printer 2, when reporting paper exhaustion relating to a computer 1 is controlled to be based on line number information preregistered in a line number/page register part 5 and on paper exhaustion detecting position information detected by a paper exhaustion detecting part 10, by inputting the rest of line number information, calculated in an arithmetic part 6, through a comparator part 7 from a relation between the line number information and page information received from the line number/page register part 5 after generating paper exhaustion, reporting the paper short is controlled in accordance with a data processing condition of the computer 1 by page control. In the control part 4, by switching a data route through the comparator part 7, sampling a synchronous control code by a synchronous control code detecting part 8 is not performed, at ordinary time with no paper exhaustion, but performed after detecting the paper exhaustion.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータから伝送
される印字データを所定の用紙に印字処理するプリンタ
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer for printing print data transmitted from a computer on a predetermined paper.

【0002】[0002]

【従来の技術】従来、この種のプリンタにおいてコンピ
ュータへと用紙切れ通知を行う場合、用紙切れを検出す
る用紙切れ検出回路がプリンタに備えられているため、
用紙切れが生じると用紙切れ検出回路によって連動的に
検出され、用紙切れ検出後に直ちにコンピュータへ通知
されるようになっている。
2. Description of the Related Art Conventionally, in this type of printer, when a paper out notification is sent to a computer, the printer is equipped with a paper out detection circuit for detecting paper out.
When a paper shortage occurs, the paper shortage detection circuit detects the paper shortage, and the computer is notified immediately after the paper shortage is detected.

【0003】又、プリンタ及びコンピュータ間のアプリ
ケーションの位相一致機能はページ単位の同期コードを
使用することによって得られている。
Further, the phase matching function of the application between the printer and the computer is obtained by using the page-by-page synchronization code.

【0004】因みに、用紙切れ通知を行うプリンタ及び
その印字制御に関連した技術としては、特開平4−10
3376号公報に開示されたプリンタ装置や特開平3−
258580号公報に開示された用紙切れ予告機能付プ
リンタ、或いは特開平2−111583号公報に開示さ
れたプリンタ印字制御方式等が挙げられる。
Incidentally, as a technique related to a printer for notifying a paper out and its print control, Japanese Patent Laid-Open No. 4-10 is available.
The printer device disclosed in Japanese Patent No.
For example, a printer with an out-of-paper notice function disclosed in Japanese Patent No. 258580, or a printer print control system disclosed in Japanese Patent Application Laid-Open No. 2-111583 can be used.

【0005】[0005]

【発明が解決しようとする課題】上述したプリンタによ
る用紙切れ通知の場合、コンピュータからプリンタへ伝
送される印字データが異なるとコンピュータ側へと通知
する用紙切れ通知のタイミングも常時異なることになる
ため、用紙切れ通知が行われるまでの時間が一貫性の無
いまちまちな状態になってしまう。
In the above-described paper out notification by the printer, when the print data transmitted from the computer to the printer is different, the paper out notification timing for notifying the computer side is always different. The time until the out-of-paper notification is inconsistent and inconsistent.

【0006】又、用紙切れ検出回路ではページ当たりの
行数によらず用紙切れ検出位置を一定として行っている
ため、ページの途中まで印字が行われた状態で用紙切れ
検出される場合が殆どであり、用紙が無駄になってしま
う。
Further, the paper-out detection circuit keeps the paper-out detection position constant irrespective of the number of lines per page. Therefore, in most cases, the paper-out detection is performed in the state where printing is performed up to the middle of the page. Yes, the paper is wasted.

【0007】更に、無駄となったページに関する印字デ
ータは再びコンピュータからそのページの先頭より再送
する必要があるため、用紙切れを生じた場合は印字時間
がかかり過ぎてしまう。
Further, since the print data relating to the wasted page needs to be retransmitted from the beginning of the page from the computer again, if the paper runs out, it takes too much printing time.

【0008】加えて、用紙切れ後に印字を再開すると、
プリンタ側の印字継続位置とコンピュータ側のアプリケ
ーションの用紙切れ認識後の再開位置とが必ずしも一致
していないため、行ずれを発生することがある。
In addition, when printing is restarted after the paper runs out,
Since the print continuation position on the printer side and the restart position after the paper-out recognition of the application on the computer side do not always match, line misalignment may occur.

【0009】本発明は、かかる問題点を解決すべくなさ
れたもので、その技術的課題は、用紙が無駄に使用され
ず、用紙切れ発生時の取り扱いをコンピュータ側で容易
にして迅速且つ規則的に認識・再開し得るプリンタを提
供することにある。
The present invention has been made in order to solve such a problem, and its technical problem is that paper is not wasted, and when a paper shortage occurs, the computer can easily handle the paper and quickly and regularly. To provide a printer that can recognize and restart.

【0010】[0010]

【課題を解決するための手段】本発明によれば、コンピ
ュータから伝送される印字データを所定の用紙に印字処
理すると共に、1ページ当たりの行数情報を登録した行
数登録手段,及び該所定の用紙の用紙切れを検出して用
紙切れ検出位置情報を得る用紙切れ検出手段を含むプリ
ンタであって、行数情報及び用紙切れ検出位置情報に基
づいてコンピュータのデータ処理状況に応じた用紙切れ
通知の制御を行う制御部を備えたプリンタが得られる。
According to the present invention, print data transmitted from a computer is printed on a predetermined sheet and line number registration means for registering line number information per page, and the predetermined number. Is a printer including a paper-out detection unit that obtains paper-out detection position information by detecting an out-of-paper detection of the paper, and a paper-out notification according to the data processing status of the computer based on the line number information and the paper-out detection position information. It is possible to obtain a printer including a control unit that controls the above.

【0011】又、本発明によれば、上記プリンタにおい
て、制御部は用紙切れ通知をページ管理によって制御す
るプリンタが得られる。
Further, according to the present invention, in the above printer, the control unit can obtain a printer in which a paper out notification is controlled by page management.

【0012】更に、本発明によれば、上記何れかのプリ
ンタにおいて、同期制御コードを認識するための同期制
御コード認識手段を備え、制御部は、通常時は同期制御
コード認識手段による同期制御コードのサンプリングを
行わせず、用紙切れ検出後に該同期制御コードのサンプ
リングを行わせるプリンタが得られる。
Further, according to the present invention, in any one of the above printers, a synchronization control code recognizing means for recognizing the synchronization control code is provided, and the control unit is normally operated by the synchronization control code recognizing means. It is possible to obtain a printer that does not perform sampling of No. 1 but does not perform sampling of the synchronous control code after detection of paper shortage.

【0013】[0013]

【実施例】以下に実施例を挙げ、本発明のプリンタにつ
いて、図面を参照して詳細に説明する。
The printer of the present invention will be described in detail below with reference to the accompanying drawings.

【0014】図1は、本発明の一実施例に係るプリンタ
2の基本構成をブロック図により示したものである。こ
のプリンタ2もコンピュータ1から制御線を介して伝送
される印字データを所定の用紙に印字処理するものであ
る。
FIG. 1 is a block diagram showing the basic configuration of a printer 2 according to an embodiment of the present invention. The printer 2 also prints the print data transmitted from the computer 1 via the control line on a predetermined sheet.

【0015】このプリンタ2には、一連の印字動作開始
前にコンピュータ1から1ページ当たりの行数情報を印
字を行うページ毎に対応させて登録した行数登録手段と
しての行数/ページ登録部5と、用紙切れ発生後に行数
/ページ登録部5から伝送される受信済み行数情報とペ
ージ情報との関係から残り何行を印字すべきかを決定す
るための残り行数情報を演算する演算部6と、用紙切れ
検出後に演算部6からの残り行数情報に基づいて残り印
字可能行数をカウントし,後述するデータ格納部9側か
ら同期コード検出部8側へとスイッチングすると共に、
同期コードをカウントして印字を継続すべきかを決定す
る比較部7と、用紙切れが発生していない通常時は動作
しないが、用紙切れ発生後に同期コードをサンプリング
して同期コードを発見したときに比較部7へ通知する同
期コード認識手段としての同期コード検出部8と、これ
らの各部を制御する制御部4とが備えられている。
In the printer 2, the line number / page registration unit as the line number registration means in which the information on the number of lines per page is registered from the computer 1 in association with each page to be printed before starting a series of printing operations. 5 and a calculation for calculating the remaining line number information for determining how many remaining lines should be printed from the relationship between the line number / page number information transmitted from the line number / page registration unit 5 after the occurrence of paper shortage The number of remaining printable lines is counted based on the remaining number of lines information from the calculation unit 6 and the number of remaining lines from the calculation unit 6 after the paper run-out is detected, and switching is performed from the data storage unit 9 side described later to the synchronization code detection unit 8 side.
When the sync code is found by detecting the sync code by counting the sync code and determining whether to continue printing, the comparator 7 does not operate in the normal time when the paper runs out. A synchronization code detecting unit 8 as a synchronization code recognizing means for notifying the comparing unit 7 and a control unit 4 for controlling each of these units are provided.

【0016】又、このプリンタ2は、所定の用紙に対し
て印字データの印字処理を行う印字処理部11と、用紙
切れが発生していないか否かを検出して用紙切れ発生時
にデータ格納部9及び比較部7へそれを通知するための
用紙切れ検出信号(用紙切れ検出位置情報を含む)を発
生する用紙切れ検出手段としての用紙切れ検出部10
と、用紙切れ検出信号に従って演算部6へ受信済み行数
情報を通知するデータ格納部9とを備えている。
The printer 2 also includes a print processing section 11 for printing print data on a predetermined sheet, and a data storage section for detecting whether or not a sheet shortage has occurred and detecting a paper shortage. 9 and the paper-out detection unit 10 as paper-out detection means for generating a paper-out detection signal (including paper-out detection position information) for notifying it to the comparison unit 7.
And a data storage unit 9 for notifying the arithmetic unit 6 of the received line number information in accordance with the paper-out detection signal.

【0017】即ち、このプリンタ2における制御部4
は、行数/ページ登録部5に登録された行数情報と用紙
切れ検出部10で検出された用紙切れ検出位置情報とに
基づいてコンピュータ1のデータ処理状況に応じた用紙
切れ通知の制御を行う。即ち、このプリンタ2では、制
御部4がコンピュータ1によるデータ処理が行い易い単
位となるまで用紙切れ通知を一時的に保留する。
That is, the control unit 4 in this printer 2
Controls the out-of-paper notification according to the data processing status of the computer 1 based on the number-of-lines / page-number information registered in the page registration unit 5 and the out-of-paper detection position information detected by the out-of-paper detection unit 10. To do. That is, in the printer 2, the control unit 4 temporarily suspends the paper out notification until the unit becomes a unit in which the data processing by the computer 1 is easy.

【0018】そこで、以下はこのプリンタ2の動作を説
明する。コンピュータ1はプリンタ2に対して制御線3
を介して印字データ及び印字完了/プリンタ側ステータ
スを送受信する。
Therefore, the operation of the printer 2 will be described below. The computer 1 has a control line 3 for the printer 2
Print data and print completion / printer side status are transmitted and received via.

【0019】印字に際してプリンタ2では、制御部4の
駆動により行数/ページ登録部5及び比較部7が駆動制
御される。行数/ページ登録部5では、一連の印字動作
開始前にコンピュータ1から制御線3を介して1ページ
当たりの行数情報を受け取って登録するが、この値は必
要に応じて演算部6へ供給される。演算部6は、データ
格納部9から用紙切れ後の受信済み行数情報と行数/ペ
ージ登録部5からの行数情報及びページ情報の関係から
残り何行印字すべきかを決定し、残り行数情報として比
較部7へ通知する。
In printing, in the printer 2, the number of lines / page registration unit 5 and the comparison unit 7 are driven and controlled by driving the control unit 4. The line number / page registration unit 5 receives and registers the line number information per page from the computer 1 via the control line 3 before the start of a series of printing operations, and this value is input to the calculation unit 6 as necessary. Supplied. The calculation unit 6 determines how many lines should be printed from the data storage unit 9 based on the relationship between the received line number information after the paper runs out and the line number / page number information from the line number / page registration unit 5, and the remaining lines to be printed. The comparison unit 7 is notified as numerical information.

【0020】比較部7は演算部6からの残り行数情報と
制御部4からの新たな行数情報を比較してカウントダウ
ンする。又、比較部7は用紙切れ検出部10からの用紙
切れをトリガに同期コード検出部8へのデータルートを
スイッチングする。更に、比較部7は同期コード検出部
8からの同期コードのカウントを行い、制御部4からの
印字データ入力及びその印字処理を継続すべきか否かを
決定する。同期コード検出部8は、用紙切れ発生後に同
期コードをサンプリングして発見したときには比較部7
へ通知を行うので、この結果、用紙切れ発生後のプリン
タ2による印字再開時にコンピュータ1及びプリンタ2
の位相が合致する。
The comparing section 7 compares the remaining row number information from the computing section 6 with the new row number information from the control section 4 and counts down. Further, the comparison unit 7 switches the data route to the synchronization code detection unit 8 triggered by the paper out from the paper out detection unit 10. Furthermore, the comparison unit 7 counts the synchronization code from the synchronization code detection unit 8 and determines whether or not the print data input from the control unit 4 and the print processing should be continued. The synchronization code detection unit 8 samples the synchronization code after the occurrence of paper shortage, and when it is found, the comparison unit 7
As a result, the notification is sent to the computer 1 and the printer 2 when printing is restarted by the printer 2 after the paper out.
The phases of match.

【0021】データ格納部9は、比較部7又は同期コー
ド検出部8を介して印字データを受信し、印字処理部1
1へ印字データを出力する。又、データ格納部9は用紙
切れ検出部10から用紙切れ検出信号により演算部6へ
受信済みデータとして印字待ち行数情報を通知する機能
を有する。用紙切れ検出部10は印刷処理部11で用紙
切れが発生していないか否かを監視して用紙切れ検出時
には比較部7及びデータ格納部9へ用紙切れ検出信号を
送出する。印字処理部11は、データ格納部9からの印
字データに基づいて印字処理を行う。
The data storage unit 9 receives the print data via the comparison unit 7 or the synchronization code detection unit 8, and the print processing unit 1
Print data is output to 1. Further, the data storage unit 9 has a function of notifying the arithmetic unit 6 of the print waiting line number information as the received data by the paper-out detection signal from the paper-out detection unit 10. The out-of-paper detection unit 10 monitors whether or not the out-of-paper has occurred in the print processing unit 11, and sends out an out-of-paper detection signal to the comparison unit 7 and the data storage unit 9 when out-of-paper is detected. The print processing unit 11 performs print processing based on the print data from the data storage unit 9.

【0022】以下は、このプリンタ2による用紙切れ通
知の動作を幾つかのパターンに場合分けして具体的に説
明する。
The operation of the paper out notification by the printer 2 will be specifically described below by classifying into several patterns.

【0023】図2及び図3は、それぞれ1ページ当たり
の印字行数aよりも用紙切れ検出後の印字可能行数bが
小さい場合であって、図2は[印字済み行数g+受信済
み行数h]よりも1ページ当たりの印字行数aが大きい
場合の用紙切れ通知のタイミングを示したものであり、
図3は[印字済み行数g+受信済み行数h]よりも1ペ
ージ当たりの印字行数aが小さい場合の用紙切れ通知の
タイミングを示したものである。
FIGS. 2 and 3 show the case where the number of printable lines b after the detection of the paper out is smaller than the number of print lines a per page, respectively. When the number of printed lines a per page is larger than several h], the timing of the paper out notification is shown.
FIG. 3 shows the timing of the paper out notification when the number of printed lines a per page is smaller than [the number of printed lines g + the number of received lines h].

【0024】図2に示すパターンでは、プリンタ2の印
字ヘッド位置dが図示の位置に達したときにPE(用紙
切れ)位置eで用紙切れが検出される。このとき、プリ
ンタ2には既にコンピュータ1からの受信済み行数hが
ある。ここでは1ページ当たりの印字行数aに印字行数
が達するまで印字可能・受信可能行数iをコンピュータ
1から引き続き受信し、印字完了後にコンピュータ1に
対して“印字完了後用紙切れ発生”のステータスを用紙
切れ通知cとして伝送する。コンピュータ1はそのステ
ータスを受信後、用紙切れが解除になるのを待って次の
ページの先頭から印字要求の再開を行うことになる。因
みに、以下も同様であるが、印字済み行数gはミシン目
位置fと印字ヘッド位置dとの間隔に相当する。
In the pattern shown in FIG. 2, when the print head position d of the printer 2 reaches the position shown in the drawing, the paper out is detected at the PE (paper out) position e. At this time, the printer 2 already has the number of rows h already received from the computer 1. Here, the number of printable / receivable lines i is continuously received from the computer 1 until the number of print lines a per page reaches the number of print lines a, and after the completion of printing, the computer 1 is notified of "paper out after completion of printing". The status is transmitted as a paper out notification c. After receiving the status, the computer 1 waits for the paper out to be released and restarts the print request from the beginning of the next page. Incidentally, the same applies to the following, but the number of printed lines g corresponds to the distance between the perforation position f and the print head position d.

【0025】図3に示すパターンでは、プリンタ2の印
字ヘッド位置dの図示の位置に達したときにPE(用紙
切れ)位置eで用紙切れが検出される。このとき、プリ
ンタ2には既にコンピュータ1から受信済み行数hがあ
り、この受信済み行数hは用紙切れ後の印字可能行数b
より大きいため、現在の用紙には印字できない。ここで
は受信中のページが完了するまで印字データを先行受信
行数j分先行受信し、コンピュータ1に対して“印字保
留完了、用紙切れ発生”のステータスを用紙切れ通知c
として伝送する。コンピュータ1はそのステータスを受
信後、用紙切れが解除されるのを待って印字保留の完了
した次のページの先頭から印字要求の再開を行う。用紙
切れ再セット後、プリンタ2は印字保留ページを印字
後、コンピュータ1からの次のページの印字を引き続き
行う。
In the pattern shown in FIG. 3, when the print head position d of the printer 2 reaches the illustrated position, the PE (paper out) position e is detected as a paper out. At this time, the printer 2 already has the number of received lines h from the computer 1, and the received number of lines h is the printable number of lines b after the paper runs out.
It is too large to print on the current paper. Here, the print data is received in advance by the number j of preceding reception lines until the page being received is completed, and the status of "print pending completion, paper out occurrence" is sent to the computer 1 as a paper out notification c.
To transmit as. After receiving the status, the computer 1 restarts the print request from the beginning of the next page for which the print suspension is completed after waiting for the paper out. After resetting the paper out, the printer 2 prints the print-hold page, and then continues to print the next page from the computer 1.

【0026】一方、図4,図5,及び図6は、それぞれ
1ページ当たりの印字行数aよりも用紙切れ検出後の印
字可能行数bが大きい場合であって、図4は印字可能・
受信可能行数iよりも1ページ当たりの印字行数aが小
さい場合の用紙切れ通知のタイミングを示したものであ
り、図5は印字可能・受信可能行数iよりも1ページ当
たりの印字行数aが小さい場合の用紙切れ通知のタイミ
ングを示したものであり、図6は受信済み行数hよりも
用紙切れ検出後の印字可能行数bが小さい場合の用紙切
れ通知のタイミングを示したものである。
On the other hand, FIGS. 4, 5 and 6 show the case where the number of printable lines b after the detection of the paper out is larger than the number of printable lines per page a, respectively.
FIG. 5 shows the timing of the paper out notification when the print line number a per page is smaller than the receivable line number i. FIG. 5 shows the print line per page than the printable / receivable line number i. FIG. 6 shows the timing of the paper out notification when the number a is small, and FIG. 6 shows the timing of the paper out notification when the number of printable lines b after the paper out is detected is smaller than the received line number h. It is a thing.

【0027】図4に示すパターンでは、プリンタ2の印
字ヘッド位置dが図示の位置に達したときにPE(用紙
切れ)位置eで用紙切れが検出される。このとき、プリ
ンタ2には既にコンピュータ1からの受信済み行数hが
あるが、1ページ当たりの印字行数aよりも大きな印字
可能受信可能行数iがあるため、ここでは最終ページの
最終行の印字行数に達するまでi分コンピュータ1側か
ら引き続き受信し、印字完了後にコンピュータ1に対し
て“印字完了後、用紙切れ発生”のステータスを用紙切
れ通知cとして伝送する。コンピュータ1はそのステー
タスを受信後、用紙切れが解除されるのを待って次のペ
ージの先頭から印字要求の再開を行うことになる。
In the pattern shown in FIG. 4, when the print head position d of the printer 2 reaches the position shown in the figure, the PE (paper out) position e is detected as a paper out. At this time, the printer 2 already has the received line number h from the computer 1, but since the printable receivable line number i is larger than the print line number a per page, the last line of the last page is shown here. Until the number of print lines is reached, i minutes are continuously received from the computer 1 side, and after printing is completed, the status of “paper out after printing is completed” is transmitted to the computer 1 as a paper out notification c. After receiving the status, the computer 1 waits until the paper out is released and restarts the print request from the beginning of the next page.

【0028】図5に示すパターンでは、プリンタ2の印
字ヘッド位置dが図示の位置に達したときにPE(用紙
切れ)位置eで用紙切れが検出される。このとき、プリ
ンタ2には既にコンピュータ1からの受信済み行数hが
あるが、ここでは印字可能受信可能行数i分をコンピュ
ータ1から引き続き受信し、印字完了後にコンピュータ
1に対して“印字完了後、用紙切れ発生”のステータス
を用紙切れ通知cとして伝送する。コンピュータ1はそ
のステータスを受信後、用紙切れが解除になるのを待っ
て次のページの先頭から印字要求の再開を行うことにな
る。
In the pattern shown in FIG. 5, when the print head position d of the printer 2 reaches the position shown in the figure, the PE (paper out) position e is detected as a paper out. At this time, the printer 2 already has the number h of lines already received from the computer 1, but here the number of printable receivable lines i is continuously received from the computer 1, and after printing is completed Then, the status "paper out" has been transmitted as a paper out notification c. After receiving the status, the computer 1 waits for the paper out to be released and restarts the print request from the beginning of the next page.

【0029】図6に示すパターンでは、プリンタ2の印
字ヘッド位置dが図示の位置に達したときにPE(用紙
切れ)位置eで用紙切れが検出される。このとき、プリ
ンタ2には既にコンピュータ1から受信済み行数hがあ
るが、この受信済み行数hは用紙切れ後には印字可能行
数bより大きいため、現在の用紙には印字できない。そ
こで、ここでは受信中のページが完了するまで印字デー
タを先行受信行数j分先行受信し、コンピュータ1に対
して“印字保留完了、用紙切れ”のステータスを用紙切
れ通知cとして伝送する。コンピュータ1はそのステー
タスを受信後、用紙切れが解除されるのを待って印字保
留の完了した次のページの先頭から印字要求の再開を行
う。用紙再セット後、プリンタ2は印字保留ページを印
字後、コンピュータ1からの次のページの印字を引き続
き行う。
In the pattern shown in FIG. 6, when the print head position d of the printer 2 reaches the position shown in the figure, the PE (paper out) position e is detected as a paper out. At this time, the printer 2 already has the received line number h from the computer 1, but since the received line number h is larger than the printable line number b after the paper runs out, the current paper cannot be printed. Therefore, here, the print data is received in advance by the number of preceding reception lines j until the page being received is completed, and the status of "print pending completion, paper out" is transmitted to the computer 1 as a paper out notification c. After receiving the status, the computer 1 restarts the print request from the beginning of the next page for which the print suspension is completed after waiting for the paper out. After the paper is reset, the printer 2 prints the print-holding page, and then continues to print the next page from the computer 1.

【0030】[0030]

【発明の効果】以上に説明したように、本発明のプリン
タによれば、予め登録した1ページ当たりの行数情報と
印字動作時に検出される用紙切れ検出位置情報との関係
に基づいて、用紙切れ検出位置から用紙最終ページ最終
行までの印字可能行数を計算し、その行数を格納した上
で用紙切れ検出後の印字済み行数を格納された印字可能
行数と比較することにより、上位コンピュータ1への用
紙切れ通知を制御しているので、用紙の最終ページ・最
終行まで印字できると共に、用紙切れのタイミングが常
時全ページ印字完了後に行われてコンピュータ側へのア
プリケーションソフトウェアの用紙切れ処理が簡単とな
る。これにより、用紙が無駄に使用されること無く、し
かも用紙切れ発生時の取り扱いをコンピュータ側で容易
にして迅速且つ規則的に認識・再開し得るプリンタが提
供可能になる。又、このプリンタの場合、用紙切れ発生
時には同期制御コードによる同期制御を行ってコンピュ
ータ及びプリンタ間の位相を合致させているので、プリ
ンタ側の印字継続位置とコンピュータ側のアプリケーシ
ョンの用紙切れ認識後の再開位置とが適確に一致して行
ずれが発生せず、用紙切れ発生以外の通常時には同期制
御コードによる同期制御を行わないのでスループットが
向上するという長所を奏する。
As described above, according to the printer of the present invention, the paper is detected based on the relationship between the line number information per page registered in advance and the paper-out detection position information detected during the printing operation. By calculating the number of printable lines from the break detection position to the last line of the last page of the paper, storing the number of lines, and comparing the number of printed lines after detecting the paper break with the stored number of printable lines, Since the out-of-paper notification to the host computer 1 is controlled, the last page and the last line of the paper can be printed, and the paper out timing is always performed after the printing of all pages is completed. Processing becomes easy. As a result, it is possible to provide a printer in which the paper is not wastefully used, and the computer can easily handle when the paper is out and can recognize and restart the paper quickly and regularly. Further, in the case of this printer, when the paper is out, the synchronous control by the sync control code is performed to match the phase between the computer and the printer. There is an advantage that the throughput is improved because the resumption position does not coincide with each other properly, the line misalignment does not occur, and the synchronization control is not performed by the synchronization control code at a normal time except when the paper runs out.

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

【図1】本発明の一実施例に係るプリンタの基本構成を
示したブロック図である。
FIG. 1 is a block diagram showing a basic configuration of a printer according to an embodiment of the present invention.

【図2】図1に示すプリンタにおいて1ページ当たりの
印字行数aよりも用紙切れ検出後の印字可能行数bが小
さい場合であって、[印字済み行数g+受信済み行数
h]よりも1ページ当たりの印字行数aが大きい場合の
用紙切れ通知のタイミングを示したものである。
FIG. 2 shows a case where the number of printable lines b after detection of a paper out is smaller than the number of print lines a per page in the printer shown in FIG. 1, and [the number of printed lines g + the number of received lines h] Also shows the timing of the paper out notification when the number of print lines a per page is large.

【図3】図1に示すプリンタにおいて1ページ当たりの
印字行数aよりも用紙切れ検出後の印字可能行数bが小
さい場合であって、[印字済み行数g+受信済み行数
h]よりも1ページ当たりの印字行数aが小さい場合の
用紙切れ通知のタイミングを示したものである。
FIG. 3 shows a case where the number of printable lines b after detection of paper shortage is smaller than the number of print lines a per page in the printer shown in FIG. 1, and [printed line number g + received line number h] Also shows the timing of the paper out notification when the number of print lines a per page is small.

【図4】図1に示すプリンタにおいて1ページ当たりの
印字行数aよりも用紙切れ検出後の印字可能行数bが大
きい場合であって、印字可能・受信可能行数iよりも1
ページ当たりの印字行数aが小さい場合の用紙切れ通知
のタイミングを示したものである。
FIG. 4 is a case where the number of printable lines b after detection of a paper out is greater than the number of printable lines per page a in the printer shown in FIG. 1 and is 1 more than the number of printable / receivable lines i.
It shows the timing of the paper out notification when the number of printed lines a per page is small.

【図5】図1に示すプリンタにおいて1ページ当たりの
印字行数aよりも用紙切れ検出後の印字可能行数bが大
きい場合であって、印字可能・受信可能行数iよりも1
ページ当たりの印字行数aが小さい場合の用紙切れ通知
のタイミングを示したものである。
5 is a case in which the number of printable lines b after detection of a paper out is larger than the number of printable lines per page a in the printer shown in FIG. 1, and is 1 more than the number of printable / receivable lines i.
It shows the timing of the paper out notification when the number of printed lines a per page is small.

【図6】図1に示すプリンタにおいて1ページ当たりの
印字行数aよりも用紙切れ検出後の印字可能行数bが大
きい場合であって、受信済み行数hよりも用紙切れ検出
後の印字可能行数bが小さい場合の用紙切れ通知のタイ
ミングを示したものである。
6 is a diagram illustrating a case where the number of printable lines b after a paper out detection is larger than the number of print lines a per page in the printer shown in FIG. It shows the timing of the paper out notification when the number of possible lines b is small.

【符号の説明】[Explanation of symbols]

1 コンピュータ 2 プリンタ 3 制御線 4 制御部 5 行数/ページ登録部 6 演算部 7 比較部 8 同期コード検出部 9 データ格納部 10 用紙切れ検出部 11 印字処理部 1 Computer 2 Printer 3 Control Line 4 Control Section 5 Number of Lines / Page Registration Section 6 Calculation Section 7 Comparison Section 8 Sync Code Detection Section 9 Data Storage Section 10 Paper Out Detection Section 11 Print Processing Section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータから伝送される印字データ
を所定の用紙に印字処理すると共に、1ページ当たりの
行数情報を登録した行数登録手段,及び該所定の用紙の
用紙切れを検出して用紙切れ検出位置情報を得る用紙切
れ検出手段を含むプリンタであって、前記行数情報及び
前記用紙切れ検出位置情報に基づいて前記コンピュータ
のデータ処理状況に応じた用紙切れ通知の制御を行う制
御部を備えたことを特徴とするプリンタ。
1. A sheet number registration means for performing print processing of print data transmitted from a computer on a prescribed sheet, and a sheet number registering means for registering information on the number of rows per page, and detecting a sheet out of the prescribed sheet. A printer including a paper-out detection unit that obtains paper-out detection position information, the control unit performing control of paper-out notification according to the data processing status of the computer based on the line number information and the paper-out detection position information. A printer characterized by being provided.
【請求項2】 請求項1記載のプリンタにおいて、前記
制御部は前記用紙切れ通知をページ管理によって制御す
ることを特徴とするプリンタ。
2. The printer according to claim 1, wherein the control unit controls the paper out notification by page management.
【請求項3】 請求項1,又は2記載のプリンタにおい
て、同期制御コードを認識するための同期制御コード認
識手段を備え、前記制御部は、通常時は前記同期制御コ
ード認識手段による前記同期制御コードのサンプリング
を行わせず、用紙切れ検出後に該同期制御コードのサン
プリングを行わせることを特徴とするプリンタ。
3. The printer according to claim 1, further comprising: a synchronization control code recognition unit for recognizing a synchronization control code, wherein the control unit normally performs the synchronization control by the synchronization control code recognition unit. A printer characterized in that the synchronization control code is sampled after detection of paper shortage without sampling the code.
JP13605594A 1994-06-17 1994-06-17 Printer Pending JPH082742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13605594A JPH082742A (en) 1994-06-17 1994-06-17 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13605594A JPH082742A (en) 1994-06-17 1994-06-17 Printer

Publications (1)

Publication Number Publication Date
JPH082742A true JPH082742A (en) 1996-01-09

Family

ID=15166136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13605594A Pending JPH082742A (en) 1994-06-17 1994-06-17 Printer

Country Status (1)

Country Link
JP (1) JPH082742A (en)

Similar Documents

Publication Publication Date Title
JP2001056751A (en) Printer controller and recording medium
JP3027468B2 (en) Printing error recovery processing method
JP2871370B2 (en) Output control method and device
JPH082742A (en) Printer
US6906815B1 (en) Print system capable of inform user of progress of print operations
JPS59129182A (en) Printing apparatus
JP2003305906A (en) Printer and print control method
JP2001318775A (en) Printer, control method therefor and computer readable storage medium storing control program therefor
JP3123426B2 (en) Printer device
JP2004178124A (en) Print automatic recovery device
JPH05162409A (en) Printing apparatus equipped with recovery function
JP2001113791A (en) Printer system
JP2003266886A (en) Printer
JPH0239967A (en) Printing control
JP2739293B2 (en) Printing equipment
JP2003127502A (en) Printer
JPH07121318A (en) Remote printing system
JP2003300362A (en) Printer
JPS6021235Y2 (en) Print control device
JPH0647976A (en) Detecting apparatus for exhaustion of printing paper
JPH1049314A (en) Printer system and its control method
JP2915703B2 (en) Print control apparatus and method
JPH07129338A (en) Device and method for controlling printing
JP3236421B2 (en) Printing device
JP2002264447A (en) Printer and method for avoiding error

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980212