JPH0755574B2 - Data prefetch control method in printer - Google Patents

Data prefetch control method in printer

Info

Publication number
JPH0755574B2
JPH0755574B2 JP1110889A JP1110889A JPH0755574B2 JP H0755574 B2 JPH0755574 B2 JP H0755574B2 JP 1110889 A JP1110889 A JP 1110889A JP 1110889 A JP1110889 A JP 1110889A JP H0755574 B2 JPH0755574 B2 JP H0755574B2
Authority
JP
Japan
Prior art keywords
paper
line feed
data
line
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1110889A
Other languages
Japanese (ja)
Other versions
JPH02190372A (en
Inventor
和宏 田中
Original Assignee
株式会社ピーエフユー
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 株式会社ピーエフユー filed Critical 株式会社ピーエフユー
Priority to JP1110889A priority Critical patent/JPH0755574B2/en
Publication of JPH02190372A publication Critical patent/JPH02190372A/en
Publication of JPH0755574B2 publication Critical patent/JPH0755574B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概 要〕 プリンタにおけるスループット向上のための印字データ
の先取り制御方法に関し, データ先取りの制限をよく限定的なものにして処理効率
を改善することを目的とし, 本体装置から行単位にデータを受け取り印字を行うとと
もに改行動作中に次のデータを本体装置から先取りする
ことができるプリンタにおいて,用紙長カウンタと用紙
送り長カウンタとを設け,1枚目の用紙の印刷処理の際,
上記用紙長カウンタにより総改行量をカウントして用紙
長を求め,2枚目以降の用紙の印刷処理では上記用紙送り
長カウンタにより各改行コマンドが指定する改行量を逐
次カウントして現位置までの用紙送り長を求め,改行コ
マンドの実行時にその指定する改行量が上記用紙長と用
紙送り長の差よりも大きいときはデータ先取りを行わな
いように構成した。
The present invention relates to a print data prefetch control method for improving the throughput in a printer, and aims to improve the processing efficiency by making the data prefetch restrictions well limited. In a printer that receives data in line units from the main unit and prints while receiving line data from the main unit during line feed operation, a paper length counter and a paper feed length counter are provided to control the printing process of the first sheet. When
The total line feed amount is counted by the paper length counter to obtain the paper length, and in the printing process of the second and subsequent sheets, the paper feed length counter sequentially counts the line feed amount specified by each line feed command and feeds the paper to the current position. The length is calculated, and when the line feed amount specified when the line feed command is executed is larger than the difference between the above paper length and paper feed length, data prefetching is not performed.

〔産業上の利用分野〕[Industrial application field]

本発明はプリンタにおけるスループット向上のための印
字データの先取り制御方法に関する。
The present invention relates to a print data prefetch control method for improving throughput in a printer.

本体装置から印字データを1行単位で貰い,印字処理を
行うプリンタでは,印字処理が終了する前に次の行の印
字データを本体装置に要求し,次行の印字データの転送
を現行の印字処理と並列実行して,プリンタの処理速度
を高めている。
Printers that receive print data from the main unit in units of lines and perform print processing request the print data of the next line from the main unit before the print processing is completed, and transfer the print data of the next line to the current print. It is executed in parallel with processing to increase the processing speed of the printer.

しかし次行が紙切れにかかり,印刷不可能であるときは
先取りしたデータが失われるため,紙切れを検出した場
合にはデータの先取りを禁止している。本発明は,この
データ先取り禁止の制御を効率化するものである。
However, when the next line is out of paper and printing is not possible, the prefetched data is lost. Therefore, when the paper is detected, preemption of the data is prohibited. The present invention improves the efficiency of this data prefetch prohibition control.

〔従来の技術〕[Conventional technology]

第4図は,従来のシリアル方式のプリンタの概要図であ
る。図において1は用紙のスタッカ,2は印字ヘッド,3は
プラテン,4は用紙切れセンサ,5は用紙を示している。
FIG. 4 is a schematic diagram of a conventional serial printer. In the figure, 1 is a paper stacker, 2 is a print head, 3 is a platen, 4 is a paper out sensor, and 5 is paper.

本体装置からの給紙コマンドにしたがってスタッカ1か
ら用紙5は,1枚ずつ給送制御され,プラテン3において
印字ヘッド2により印字される。用紙切れセンサ4は,
用紙5の存在/不存在を検出し,用紙の不存在を検出し
たとき用紙切れ信号を出力する。
Feeding control of the sheets 1 from the stacker 1 sheet by sheet according to a sheet feeding command from the main body device, and printing is performed by the print head 2 on the platen 3. The out-of-paper sensor 4
The presence / absence of the paper 5 is detected, and when the absence of the paper is detected, a paper out signal is output.

プリンタが本体装置に対して次行データの先取りを要求
できる条件は,先取りした次行データが確実に印字され
ることが保証できることである。このためには,現行の
印字データ中の改行コマンドが指定する改行量にしたが
って改行を実行した結果,なおかつ印字可能な領域が用
紙上に残っていることが必要である。
The condition that the printer can request the main unit to prefetch the next line data is that the prefetched next line data can be reliably printed. To this end, it is necessary that the printable area remains on the paper as a result of executing a line feed according to the line feed amount specified by the line feed command in the current print data.

しかし従来のプリンタでは,用紙切れセンサ4が印字ヘ
ッド2の印字位置からかなり離れた位置に設けられてい
て,実際に印字位置で用紙切れとなる前の時点の状態を
検出し,用紙切れセンサ4が用紙5の途中を検出してい
る状態では,現在印字中の行位置以降の印字可能領域の
長さは不明であるため,前述したようなデータ先取り条
件の厳密な検出ができず,もっと簡略化された方法がと
られていた。
However, in the conventional printer, the paper-out sensor 4 is provided at a position considerably distant from the print position of the print head 2, and the paper-out sensor 4 detects the condition before the paper runs out at the actual print position. In the state where the paper 5 is detected in the middle, the length of the printable area after the line position currently being printed is unknown, so the above-mentioned data prefetching condition cannot be detected strictly, and it is simpler. The method adopted was adopted.

従来のプリンタにおけるデータ先取り制御方法を,第5
図により説明する。
A conventional data prefetch control method for a printer is described in
It will be described with reference to the drawings.

第5図の(a)は,用紙5の印字可能な最終行位置,す
なわち実際に用紙切れとなる直前の位置に印字を行って
いる動作状態であり,用紙切れセンサ4は用紙5を検出
していない。そしてこのときの用紙5の終端(用紙切れ
位置という)と用紙切れセンサ4との間の距離をnとす
る。
FIG. 5A shows an operating state in which printing is performed at the printable last line position of the paper 5, that is, the position immediately before the paper actually runs out, and the paper-out sensor 4 detects the paper 5. Not not. The distance between the trailing edge of the sheet 5 (referred to as the sheet-out position) and the sheet-out sensor 4 at this time is n.

第5図の(b)は,(a)の状態よりも遡って,用紙切
れセンサ4が用紙5を検出しているときの印字動作状態
を示している。この状態のとき改行コマンドが距離n以
上の改行量(tとする)を指示している場合には,なお
長さkだけの印字可能な領域が残されていたにしても用
紙切れの場合と同様に扱い,データ先取りを行わず,現
行の印字処理を終了してから次行データを本体装置に要
求する。
FIG. 5B shows the printing operation state when the paper-out sensor 4 is detecting the paper 5, going back from the state of FIG. In this state, if the line feed command indicates a line feed amount (t) equal to or greater than the distance n, even if the printable area of the length k is left, the case of running out of paper may occur. The same processing is performed, data prefetching is not performed, and the next line data is requested to the main unit after the current print processing is completed.

このように,従来のプリンタのデータ先取り制御方法で
は,用紙切れセンサ4が用紙5を検出していて,次に改
行コマンドが指定する改行量tが固定量nに満たない場
合に限りデータ先取りを行うようにしている。
As described above, according to the data prefetch control method of the conventional printer, the data prefetch is performed only when the paper out sensor 4 detects the paper 5 and the line feed amount t specified by the line feed command next is less than the fixed amount n. I am trying to do it.

第6図に,このようなデータ先取り制御を行う従来のプ
リンタの印刷処理の制御フローを示す。
FIG. 6 shows a control flow of a printing process of a conventional printer which performs such data prefetch control.

給紙コマンドにより用紙が給送されると印字動作が開始
され,本体装置から受け取った1行分の印字データを逐
次解析する。
When the paper is fed by the paper feed command, the printing operation is started, and the print data for one line received from the main body device is sequentially analyzed.

,,ではコマンドの識別を行い,では印字コマ
ンド,では改行コマンド,では排出コマンドを識別
する。
,, identify the command, identify the print command, identify the line feed command, and identify the eject command.

印字コマンドの場合は,で改行実行中のときその終了
まで待ってからで印字を実行する。
In the case of a print command, if a line feed is being executed with, wait until the end of line feed before printing with.

改行コマンドの場合は,その指定する改行量tがn(第
5図参照)よりも小さいときを実行し他の場合はを
実行する。では用紙切れセンサが用紙を検出している
かどうかを調べ,検出していればを実行し他の場合は
を実行する。はデータ先取り条件が満たされた場合
の動作であり,改行動作を起動し,その終了を待たずに
(置いてけぼり方式で実行)処理を終わり,で本体装
置に次行データを要求する。他方,はデータ先取り条
件が満たされない場合の動作であり,改行動作を起動し
てその終了を待ってから,の次行データ要求を行う。
In the case of a line feed command, it executes when the specified line feed amount t is smaller than n (see FIG. 5), and otherwise executes. Then, check whether the paper-out sensor is detecting paper, and if so, execute. If other, execute. Is an operation when the data prefetch condition is satisfied. The line feed operation is activated, the processing is ended without waiting for the end (execution by the skipping method), and the next line data is requested to the main device. On the other hand, is the operation when the data prefetch condition is not satisfied. After starting the line feed operation and waiting for its completion, the next line data request is issued.

排出コマンドの場合は,で用紙の排出を実行する。If the command is the eject command, execute to eject the paper.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

従来のプリンタのデータ先取り制御方法では,データ先
取り条件が厳密でなく,改行コマンドで指定された改行
量が用紙の用紙切れ位置と用紙切れセンサの位置との距
離の値nを超えるかどうかと,用紙切れセンサが用紙を
検出しているかどうかで,データ先取りを行うか改行終
了を待ってデータを要求するかを判定していた。そのた
め改行後に印字可能な領域が残るときでもデータ先取り
が行われない場合があり,それだけプリンタの処理効率
を低下させていた。
In the conventional data prefetch control method of the printer, the data prefetch condition is not strict, and whether the line feed amount specified by the line feed command exceeds the value n of the distance between the paper out position of the paper and the position of the paper out sensor, Depending on whether the out-of-paper sensor detects a paper, it was determined whether to prefetch the data or wait for the end of line feed to request the data. For this reason, data prefetching may not be performed even when there is a printable area after a line feed, which reduces the processing efficiency of the printer.

本発明は,データ先取りの制限をより限定的なものにし
て処理効率を改善することを目的とする。
It is an object of the present invention to make the data prefetching restriction more restrictive and improve the processing efficiency.

〔課題を解決するための手段〕[Means for Solving the Problems]

本発明は,改行コマンドが指定する改行量tに対して,
データ先取りの可否を正確に判定し,改行後の印字が可
能であるにもかかわらずデータ先取りが制限されること
がないようにするものである。
The present invention, for the line feed amount t specified by the line feed command,
Whether or not to prefetch data is accurately determined so that prefetching of data is not restricted even though printing after line feed is possible.

そのため1枚目の用紙の印刷処理で用紙長lを測定し,
また2枚目以降の用紙の印刷では先頭から現行までの用
紙送り長mを測定して,それらの差(l−m)から残り
印字可能行数を求め,これを改行コマンドの指定改行量
tが超えない限り,データ先取りを行うように制御す
る。
Therefore, measure the paper length l in the printing process of the first sheet,
When printing the second and subsequent sheets of paper, measure the paper feed length m from the beginning to the present and find the remaining printable line number from the difference (lm) between them. Controls to prefetch data unless it exceeds the limit.

第1図は,本発明の原理的構成図である。FIG. 1 is a principle block diagram of the present invention.

第1図において, 10は,CPUなどの本体装置である。In FIG. 1, reference numeral 10 is a main unit such as a CPU.

11は,シリアル方式のプリンタである。11 is a serial printer.

12は,印字ヘッドである。12 is a print head.

13は,プラテンである。13 is a platen.

14は,用紙切れセンサである。14 is a paper out sensor.

15は,用紙である。15 is a paper.

16は,印字ヘッド12の送り制御を行うキャリアモータ
(CRM)である。
Reference numeral 16 is a carrier motor (CRM) that controls the feed of the print head 12.

17は,改行の送り制御を行うラインフィードモータ(LF
M)である。
17 is a line feed motor (LF
M).

18は,用紙15の総改行送り量をカウントする用紙長カウ
ンタである。
A paper length counter 18 counts the total line feed amount of the paper 15.

19は,用紙15の先頭から現在までの改行送り量をカウン
トする用紙送り長カウンタである。
Reference numeral 19 is a paper feed length counter that counts the line feed amount from the beginning of the paper 15 to the present.

20は,主制御部であり,本体装置10との間のインタフェ
ース制御を行い本体装置10から受け取った印字データを
解析して印字コマンド,改行コマンド,給紙コマンド,
排出コマンド等のコマンドに対応する制御を起動し,ま
たデータ先取り制御を実行する。
Reference numeral 20 denotes a main control unit, which performs interface control with the main body device 10 and analyzes print data received from the main body device 10 to print commands, line feed commands, paper feed commands,
The control corresponding to the command such as the discharge command is activated, and the data prefetch control is executed.

21は,印字コマンドに対応する制御を行う印字コマンド
制御部であり,印字ヘッド12,キャリアモータ(CRM)16
を駆動して印字を実行する。
Reference numeral 21 denotes a print command control unit that performs control corresponding to print commands, and includes a print head 12, a carrier motor (CRM) 16
To print.

22は,改行コマンドに対応する制御を行う改行コマンド
制御部であり,ラインフィードモータ(LFM)17を駆動
して改行送りを実行する。
A line feed command control unit 22 performs control corresponding to a line feed command, and drives the line feed motor (LFM) 17 to execute line feed.

23は,給紙コマンドに対応する制御を行う給紙コマンド
制御部であり,図示されていないスタッカから用紙15を
給送し,プラテン13上の印字動作開始位置にセットす
る。
Reference numeral 23 denotes a paper feed command control unit that performs control corresponding to a paper feed command, and feeds the paper 15 from a stacker (not shown) and sets it at the printing operation start position on the platen 13.

24は,排出コマンドに対応する制御を行う排出コマンド
制御部であり,印字を終了した用紙15を排出する。
Reference numeral 24 is a discharge command control unit that performs control corresponding to the discharge command, and discharges the paper 15 for which printing has been completed.

主制御部20は,連続印刷処理する用紙の1枚目と2枚目
以降とでデータ先取り制御の内容を切り分ける。
The main control unit 20 divides the content of the data prefetch control between the first sheet and the second and subsequent sheets of paper to be continuously printed.

1枚目の用紙の印刷処理では従来方法と同様に,用紙切
れセンサ14が用紙15を検出しているとき,用紙切れ位置
と用紙切れセンサ14の位置との間の固定距離nと各改行
コマンドの改行量tとを比較し,n>tである場合に限り
データ先取りを実行する。
In the print processing of the first sheet, as in the conventional method, when the paper-out sensor 14 detects the paper 15, a fixed distance n between the paper-out position and the position of the paper-out sensor 14 and each line feed command. Is compared with the line feed amount t of, and data prefetching is executed only when n> t.

またこの1枚目の用紙の印刷では,用紙長カウンタ18に
より全改行送りをカウントし,用紙長lを行数で測定し
て,2枚目以降の印刷処理におけるデータ先取り制御で使
用する。
In the printing of the first sheet, the total line feed is counted by the sheet length counter 18, the sheet length 1 is measured by the number of lines, and used for the data prefetch control in the print processing of the second and subsequent sheets.

2枚目以降の用紙の印刷処理では,各改行コマンドごと
にその改行量tを用紙送り長カウンタ19でカウントして
累算し,用紙先頭から現在の印字行までの用紙送り長m
を行数で測定する。次に差(l−m)を演算して印字可
能な残りの有効行数を求め,これを次に実行する改行コ
マンドの改行量tと比較し,改行量tが差(l−m)よ
りも大きくない(l−m)tのときにだけデータ先取
りを実行する。つまり改行量tが差(l−m)よりも大
きい(l−m)<tであれば,改行量tの改行後その用
紙には印字可能な有効行が残らないことになるので,改
行は行うがデータ先取りは行わず,続くデータは,次の
用紙に印字されることになる。
In the print processing of the second and subsequent sheets, the line feed amount t is counted by the paper feed length counter 19 for each line feed command and accumulated, and the paper feed length m from the top of the paper to the current print line is calculated.
Is measured by the number of rows. Next, the difference (lm) is calculated to obtain the remaining number of valid lines that can be printed, and this is compared with the line feed amount t of the line feed command to be executed next. The data prefetching is executed only when t is not too large. That is, if the line feed amount t is larger than the difference (l-m) (l-m) <t, there will be no valid lines that can be printed on the paper after the line feed of the line feed amount t. Yes, but without prefetching data, the following data will be printed on the next sheet.

〔作 用〕[Work]

第1図に示されている本発明の構成によれば,同一サイ
ズの用紙を複数枚用いてデータを連続印刷する場合,1枚
目は用紙長lの測定に当てて,データ先取り制御は簡略
的な従来方式で行い,2枚目以降においては1枚目の処理
で測定した用紙長lと現在の行位置を示す用紙送り長m
とからデータ先取りの制限の可否を正確に判定し,デー
タ先取りを可能な限界ぎりぎりまで行うように制御して
いる。
According to the configuration of the present invention shown in FIG. 1, when data is continuously printed using a plurality of sheets of the same size, the first sheet is used for measuring the sheet length l, and the data prefetch control is simplified. The conventional method is used, and for the second and subsequent sheets, the sheet length 1 measured in the first sheet process and the sheet feed length m indicating the current line position.
Based on the above, it is accurately determined whether or not the data prefetching is restricted, and the data prefetching is controlled to the maximum limit.

これにより,連続印刷する用紙枚数が多い場合,データ
先取りが行われる割合が増加し,処理効率が向上する。
As a result, when the number of sheets to be continuously printed is large, the ratio of data prefetching is increased and the processing efficiency is improved.

〔実施例〕〔Example〕

第2図および第3図に,本発明の実施例によるプリンタ
の全体制御のフローを示す。
2 and 3 show the flow of overall control of the printer according to the embodiment of the present invention.

第2図は1枚目の用紙の印刷処理の制御フロー,第3図
は2枚目以降の用紙の印刷処理の制御フローである。
FIG. 2 is a control flow of the print processing of the first sheet, and FIG. 3 is a control flow of the print processing of the second and subsequent sheets.

以下,第1図の構成を参照しつつ,第2図および第3図
により実施例の動作を説明する。
The operation of the embodiment will be described below with reference to FIGS. 2 and 3 while referring to the configuration of FIG.

第2図の1枚目の処理において, では,給紙コマンドにより1枚目の用紙を給送する。
また用紙長カウンタをクリアする。用紙送り長カウンタ
19は使用されない。
In the processing of the first sheet in FIG. 2, in step 1, the first sheet is fed by the paper feed command.
It also clears the paper length counter. Paper feed length counter
19 is not used.

本体装置から受け取った印字データを順次解析し,で
は印字コマンド,では改行コマンド,では排出コマ
ンドをそれぞれ識別する。
The print data received from the main unit is analyzed sequentially to identify the print command, the line feed command, and the discharge command, respectively.

印字コマンドの場合,改行実行中でなければ直ちに,ま
た改行実行中であればで終了を待ってから,で印字
を実行し,へ戻る。
In the case of a print command, if line feed is not being executed immediately, or if line feed is being executed, wait for the end and then print with and return to.

改行コマンドの場合,で用紙長カウンタ18にコマンド
指定している改行量tを加算する。次にでt<nを満
たすかどうかを調べ,満たす場合にはさらにで用紙切
れ検出センサが用紙を検出しているかどうかを調べ,用
紙を検出していればで改行動作を起動し,その動作終
了を待たずに改行コマンド処理を終了し,で次のデー
タを要求,すなわちデータを先取りする。一方,でt
nあるいは用紙切れセンサ14が用紙を検出していない
ときは,で改行動作を行い,その終了を待ってから
で次のデータを要求する。すなわち先取りでない方法で
データを要求する。
In the case of a line feed command, the line feed amount t specified by the command is added to the paper length counter 18. Then, it is checked whether t <n is satisfied, and if it is satisfied, it is further checked whether the out-of-paper detection sensor detects the paper. If the paper is detected, the line feed operation is started by and the operation is performed. The line feed command processing ends without waiting for the end, and the next data is requested with, that is, the data is prefetched. On the other hand, t
If n or the paper-out sensor 14 does not detect a paper, a line feed operation is performed at, and after waiting for the end, the next data is requested. That is, it requests data in a non-preemptive manner.

排出コマンドの場合は,で用紙切れとなるまで改行送
りし,またそのときの送り量を用紙長カウンタ18に加算
してで排出する。このとき用紙長カウンタ18には,用
紙長lに対応する改行数が設定されている。
In the case of the discharge command, line feed is performed until the paper runs out, and the feed amount at that time is added to the paper length counter 18, and the paper is discharged. At this time, the number of line feeds corresponding to the sheet length 1 is set in the sheet length counter 18.

続いて第3図の2枚目以降の処理に入る。給紙コマンド
を受信すると,で用紙を給送し,同時に用紙送り長カ
ウンタ19をクリアする。
Then, the process for the second and subsequent sheets in FIG. 3 is started. When the paper feed command is received, the paper is fed by and the paper feed length counter 19 is cleared at the same time.

次に,,で印字コマンド,改行コマンド,排出コ
マンドを識別し,それぞれ対応する制御を行う。印字コ
マンドについて行われる,のステップおよび排出コ
マンドについて行われるのステップは,第2図におけ
る1枚目の処理のときと同様であるのでここでは説明は
省略する。
Next, the print command, line feed command, and discharge command are identified with, and the corresponding control is performed. The steps executed for the print command and the steps executed for the discharge command are the same as those in the case of the processing of the first sheet in FIG. 2, and therefore description thereof will be omitted here.

改行コマンドの場合,でその改行量tを用紙送り長カ
ウンタ19に加算し,用紙送り長mを求める。ここでその
用紙の先頭から現在までの各改行コマンドが指定した改
行量をt1,t2,…,trとすると,mは次のように表される。
In the case of a line feed command, the line feed amount t is added to the paper feed length counter 19 to obtain the paper feed length m. Here, if the line feed amount specified by each line feed command from the beginning of the sheet to the present is t 1 , t 2 , ..., T r , m is expressed as follows.

次にで改行量t(tr)が(l−m)よりも小さいかど
うかを判定し,l−mtであればで改行動作を起動し
て直ぐに改行コマンド処理を終了し,で次のデータ要
求を行う。他方,l−m<tであれば改行動作を起動して
その動作が終了するのを待ち,へ戻る。後者の場合は
次にで排出コマンドを処理することになる。
Then, it is judged whether the line feed amount t (t r ) is smaller than (l-m). If it is l-mt, the line feed operation is started with and the line feed command processing is immediately terminated, and with Make a request. On the other hand, if l−m <t, the line feed operation is started, waits for the end of the operation, and returns to. In the latter case, the eject command will be processed next.

第3図の制御フローによる動作は,以後データが続く限
り繰り返される。
The operation according to the control flow of FIG. 3 is repeated as long as data continues thereafter.

〔発明の効果〕〔The invention's effect〕

本発明では,2枚目以降の印刷において,改行後に印字可
能な有効行が残るかどうかを確実に知ることができるた
め,改行コマンドの実行の際データ先取りを過剰に制限
することがなく,プリンタの処理効率が向上し,スルー
プットが改善される。
According to the present invention, in printing the second and subsequent sheets, it is possible to surely know whether or not a valid line that can be printed remains after a line feed. Therefore, when the line feed command is executed, data prefetching is not excessively limited, and the printer can be used. Processing efficiency is improved and throughput is improved.

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

第1図は本発明の原理的構成図,第2図は本発明実施例
によるプリンタの1枚目の印刷処理の制御フロー図,第
3図は本発明実施例によるプリンタの2枚目以降の印刷
処理の制御フロー図,第4図は従来のプリンタの概要
図,第5図は従来のプリンタのデータ先取り制御方法の
説明図,第6図は従来のプリンタの印刷処理の制御フロ
ー図である。 第1図中, 10:本体装置, 11:プリンタ, 12:印字ヘッド, 13:プラテン, 14:用紙切れセンサ, 15:用紙, 18:用紙長カウンタ, 19:用紙送り長カウンタ, 20:主制御部, 21:印字コマンド制御部, 22:改行コマンド制御部, 23:給紙コマンド制御部, 24:排出コマンド制御部。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a control flow chart of the printing process of the first sheet of the printer according to the embodiment of the present invention, and FIG. FIG. 4 is a control flow diagram of the printing process, FIG. 4 is a schematic diagram of the conventional printer, FIG. 5 is an explanatory diagram of a data prefetch control method of the conventional printer, and FIG. 6 is a control flow diagram of the printing process of the conventional printer. . In Fig. 1, 10: Main unit, 11: Printer, 12: Print head, 13: Platen, 14: Out of paper sensor, 15: Paper, 18: Paper length counter, 19: Paper feed length counter, 20: Main controller , 21: Print command controller, 22: Line feed command controller, 23: Paper feed command controller, 24: Ejection command controller.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】本体装置から行単位にデータを受け取り印
字を行うとともに改行動作中に次のデータを本体装置か
ら先取りすることができるプリンタにおいて, 用紙長カウンタと用紙送り長カウンタとを設け, 1枚目の用紙の印刷処理の際,上記用紙長カウンタによ
り総改行量をカウントして用紙長を求め, 2枚目以降の用紙の印刷処理では上記用紙送り長カウン
タにより各改行コマンドが指定する改行量を逐次カウン
トして現位置までの用紙送り長を求め, 改行コマンドの実行時にその指定する改行量が上記用紙
長と用紙送り長の差よりも大きくないときは改行とデー
タ先取りを行い,また当該改行量が上記用紙長と用紙送
り長の差よりも大きいときはデータ先取りを行わず,改
行のみを行うことを特徴とするプリンタにおけるデータ
先取り制御方法。
1. A printer capable of receiving and printing data line by line from the main body device and prefetching the next data from the main body device during a line feed operation, wherein a paper length counter and a paper feed length counter are provided. When printing the second sheet of paper, the total length of line feed is counted by the above paper length counter to obtain the paper length. In the printing of the second and subsequent sheets, the line feed amount specified by each line feed command is specified by the above paper feed length counter. The paper feed length up to the current position is calculated by counting sequentially. If the specified line feed amount is not larger than the difference between the above paper length and paper feed length when the line feed command is executed, line feed and data prefetch are performed, and the line feed amount is When the difference between the paper length and the paper feed length is greater than the above, data prefetching is not performed, and only line feed is performed. Control method.
JP1110889A 1989-01-20 1989-01-20 Data prefetch control method in printer Expired - Fee Related JPH0755574B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1110889A JPH0755574B2 (en) 1989-01-20 1989-01-20 Data prefetch control method in printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1110889A JPH0755574B2 (en) 1989-01-20 1989-01-20 Data prefetch control method in printer

Publications (2)

Publication Number Publication Date
JPH02190372A JPH02190372A (en) 1990-07-26
JPH0755574B2 true JPH0755574B2 (en) 1995-06-14

Family

ID=11768816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1110889A Expired - Fee Related JPH0755574B2 (en) 1989-01-20 1989-01-20 Data prefetch control method in printer

Country Status (1)

Country Link
JP (1) JPH0755574B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3441767B2 (en) * 1992-07-28 2003-09-02 キヤノン株式会社 Image recording device
JP5661667B2 (en) 2012-03-02 2015-01-28 東芝テック株式会社 Printer system and printer

Also Published As

Publication number Publication date
JPH02190372A (en) 1990-07-26

Similar Documents

Publication Publication Date Title
US20030007180A1 (en) Printing control method for long pages
US5639171A (en) Media length sensing for increased throughput efficiency of electronic printers
JP3778033B2 (en) Paper discharge method, paper discharge device, recording device, and print control device in a recording apparatus
EP0768187B1 (en) Ink jet recording method
US5169249A (en) Printer control device and method thereof
JPH0755574B2 (en) Data prefetch control method in printer
EP0369467B1 (en) Device and method for controlling a paper feed motor of a printer
JP3149174B2 (en) Printer
JPH0422668A (en) Printer fitted with paper width detector
US8523177B2 (en) Conveying apparatus
JPH0688437B2 (en) Printer control method
JP4402870B2 (en) Print processing apparatus, image forming apparatus, paper feed method, and paper feed control program
JP2000044092A (en) Printing device, control method thereof, and information recording medium
JP2008023961A (en) Printer, its control method, and network system
JP4529324B2 (en) Continuous paper printer
JP3091989U (en) Printing device
JP3316028B2 (en) Printer paper feeder
JP5732009B2 (en) Image forming apparatus and medium discharging method
JPH0644222B2 (en) Bar code reading control method in serial printer
JPH02209283A (en) Printer and printing method thereof
JPH044168A (en) Recording device
JPH11292324A (en) Printer and printing system
JPH0367324A (en) Printer sharing controller
JP2008047045A (en) Print controller, and printer
JPH0422667A (en) Printer fitted with paper width detector

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees